diff --git a/Linux_Workspace.vpw b/Linux_Workspace.vpw index 717a724f..80f082f2 100644 --- a/Linux_Workspace.vpw +++ b/Linux_Workspace.vpw @@ -8,6 +8,8 @@ + + diff --git a/Projects/3dClientGui/makefile b/Projects/3dClientGui/makefile index 4b56aebb..5674c7e6 100644 --- a/Projects/3dClientGui/makefile +++ b/Projects/3dClientGui/makefile @@ -1,579 +1,323 @@ -# SlickEdit generated file. Do not edit this file except in designated areas. - -# Make command to use for dependencies -MAKE=make -RM=rm -MKDIR=mkdir - -# -----Begin user-editable area----- - -# -----End user-editable area----- - -# If no configuration is specified, "Debug" will be used -ifndef CFG -CFG=Debug -endif - -# -# Configuration: Debug -# -ifeq "$(CFG)" "Debug" -OUTDIR=Debug -OUTFILE=$(OUTDIR)/3dClientGui -CFG_INC=-I/usr/local/Qt-5.9.5/include -I/usr/local/include \ - -I/usr/include -CFG_LIB=-lssl -lcrypto -lpthread `pkg-config --libs libavcodec \ - libavdevice libavfilter libavformat libavresample libavutil \ - libswresample libswscale libconfig++ libcurl opencv Qt53DAnimation \ - Qt53DCore Qt53DExtras Qt53DInput Qt53DLogic Qt53DQuickAnimation \ - Qt53DQuickExtras Qt53DQuickInput Qt53DQuick Qt53DQuickRender \ - Qt53DQuickScene2D Qt53DRender Qt5Bluetooth Qt5Charts Qt5Concurrent \ - Qt5Core Qt5DataVisualization Qt5DBus Qt5Gamepad Qt5Gui Qt5Help \ - Qt5Location Qt5Multimedia Qt5MultimediaWidgets Qt5NetworkAuth \ - Qt5Network Qt5Nfc Qt5OpenGLExtensions Qt5OpenGL Qt5Positioning \ - Qt5PrintSupport Qt5Purchasing Qt5Qml Qt5QuickControls2 Qt5Quick \ - Qt5QuickTest Qt5QuickWidgets Qt5RemoteObjects Qt5Script \ - Qt5ScriptTools Qt5Scxml Qt5Sensors Qt5SerialBus Qt5SerialPort Qt5Sql \ - Qt5Svg Qt5Test Qt5TextToSpeech Qt5UiTools Qt5WaylandClient \ - Qt5WaylandCompositor Qt5WebChannel Qt5WebSockets Qt5Widgets \ - Qt5X11Extras Qt5XmlPatterns Qt5Xml` -lGL -lGLU -lc -lm -lz -CFG_OBJ= -COMMON_OBJ=$(OUTDIR)/arrowpoint.o $(OUTDIR)/bingapimapadapter.o \ - $(OUTDIR)/circlepoint.o $(OUTDIR)/curve.o \ - $(OUTDIR)/emptymapadapter.o $(OUTDIR)/fixedimageoverlay.o \ - $(OUTDIR)/geometry.o $(OUTDIR)/geometrylayer.o \ - $(OUTDIR)/googleapimapadapter.o $(OUTDIR)/googlemapadapter.o \ - $(OUTDIR)/gps_position.o $(OUTDIR)/imagemanager.o \ - $(OUTDIR)/imagepoint.o $(OUTDIR)/invisiblepoint.o $(OUTDIR)/layer.o \ - $(OUTDIR)/layermanager.o $(OUTDIR)/linestring.o \ - $(OUTDIR)/mapadapter.o $(OUTDIR)/mapcontrol.o \ - $(OUTDIR)/mapcontrol_moc.o $(OUTDIR)/maplayer.o \ - $(OUTDIR)/mapnetwork.o $(OUTDIR)/openaerialmapadapter.o \ - $(OUTDIR)/osmmapadapter.o $(OUTDIR)/point.o \ - $(OUTDIR)/tilemapadapter.o $(OUTDIR)/wmsmapadapter.o \ - $(OUTDIR)/addDeviceDialog.o $(OUTDIR)/addSourceDialog.o \ - $(OUTDIR)/DeviceChooser.o $(OUTDIR)/EventViewWidget.o \ - $(OUTDIR)/FSVideoWidget.o $(OUTDIR)/LrfSensorWidget.o \ - $(OUTDIR)/OGLCameraWidget.o $(OUTDIR)/OGLRadarWidget.o \ - $(OUTDIR)/point2dWidget.o $(OUTDIR)/RadarMapWidget.o \ - $(OUTDIR)/RangeMapWidget.o $(OUTDIR)/ReportsManagerWindow.o \ - $(OUTDIR)/SettingsCamera.o $(OUTDIR)/SettingsLGS.o \ - $(OUTDIR)/targetDisplay.o $(OUTDIR)/TimeShowWidget.o \ - $(OUTDIR)/VideoSourceChooser.o $(OUTDIR)/VideoThumbWidget.o \ - $(OUTDIR)/VideoWidget.o $(OUTDIR)/guiClass.o $(OUTDIR)/mask.o \ - $(OUTDIR)/base64.o $(OUTDIR)/libzip.o $(OUTDIR)/md5.o \ - $(OUTDIR)/Transform.o $(OUTDIR)/utm.o $(OUTDIR)/basicCamera.o \ - $(OUTDIR)/basicCameraInfo.o $(OUTDIR)/basicCameraPTZ.o \ - $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEvent.o \ - $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ - $(OUTDIR)/basicEvtDispatcher.o $(OUTDIR)/basicFIFO.o \ - $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLIBAV.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMediaDestination.o $(OUTDIR)/basicMediaSource.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o \ - $(OUTDIR)/basicPosition.o $(OUTDIR)/basicReportRecord.o \ - $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ - $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ - $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/basicTypes.o $(OUTDIR)/basicVideoAnalyzer.o \ - $(OUTDIR)/OnvifVideoSourceFinder.o $(OUTDIR)/lapsedVideoRecorder.o \ - $(OUTDIR)/mediaVideoSourceManager.o \ - $(OUTDIR)/videoAVLIBDestination.o $(OUTDIR)/videoAVLIBSource.o \ - $(OUTDIR)/videoNode.o $(OUTDIR)/objectCameraPTZ.o \ - $(OUTDIR)/objectDVR.o $(OUTDIR)/objectEventReport.o \ - $(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/objectLGS.o \ - $(OUTDIR)/objectSensorsEnumirator.o $(OUTDIR)/objectStaticCamera.o \ - $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/storageProvider.o \ - $(OUTDIR)/clientPort.o $(OUTDIR)/curlRequest.o \ - $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/joystick.o \ - $(OUTDIR)/serialPort.o $(OUTDIR)/transportSerial.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/dom.o $(OUTDIR)/duration.o \ - $(OUTDIR)/mecevp.o $(OUTDIR)/nsmap.o $(OUTDIR)/onvifclientdevice.o \ - $(OUTDIR)/onvifclientevent.o $(OUTDIR)/onvifclientimaging.o \ - $(OUTDIR)/onvifclientmedia.o $(OUTDIR)/onvifclientptz.o \ - $(OUTDIR)/onvifclientreceiver.o $(OUTDIR)/onvifclientrecording.o \ - $(OUTDIR)/onvifclientremotediscovery.o $(OUTDIR)/onvifclientreplay.o \ - $(OUTDIR)/onvifclientsearch.o $(OUTDIR)/smdevp.o $(OUTDIR)/soapC.o \ - $(OUTDIR)/soapDeviceBindingProxy.o $(OUTDIR)/soapMediaBindingProxy.o \ - $(OUTDIR)/soapMediaBindingService.o $(OUTDIR)/soapPTZBindingProxy.o \ - $(OUTDIR)/soapPTZBindingService.o \ - $(OUTDIR)/soapPullPointSubscriptionBindingProxy.o \ - $(OUTDIR)/soapPullPointSubscriptionBindingService.o \ - $(OUTDIR)/soapReceiverBindingProxy.o \ - $(OUTDIR)/soapReceiverBindingService.o \ - $(OUTDIR)/soapRecordingBindingProxy.o \ - $(OUTDIR)/soapRecordingBindingService.o \ - $(OUTDIR)/soapRemoteDiscoveryBindingProxy.o \ - $(OUTDIR)/soapRemoteDiscoveryBindingService.o \ - $(OUTDIR)/soapReplayBindingProxy.o \ - $(OUTDIR)/soapReplayBindingService.o \ - $(OUTDIR)/soapSearchBindingProxy.o \ - $(OUTDIR)/soapSearchBindingService.o $(OUTDIR)/soapwsddProxy.o \ - $(OUTDIR)/soapwsddService.o $(OUTDIR)/stdsoap2.o $(OUTDIR)/threads.o \ - $(OUTDIR)/wsaapi.o $(OUTDIR)/wsseapi.o \ - $(OUTDIR)/onvifMediaObserver.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolHTTP.o $(OUTDIR)/protocolLGS.o \ - $(OUTDIR)/protocolPTZ.o $(OUTDIR)/protocolPTZ_ONVIF.o \ - $(OUTDIR)/protocolPTZ_PELCO.o $(OUTDIR)/protocolPTZ_VISCA.o \ - $(OUTDIR)/xmlParser.o $(OUTDIR)/main-qt.o $(OUTDIR)/main_window.o -OBJ=$(COMMON_OBJ) $(CFG_OBJ) -ALL_OBJ=$(OUTDIR)/arrowpoint.o $(OUTDIR)/bingapimapadapter.o \ - $(OUTDIR)/circlepoint.o $(OUTDIR)/curve.o \ - $(OUTDIR)/emptymapadapter.o $(OUTDIR)/fixedimageoverlay.o \ - $(OUTDIR)/geometry.o $(OUTDIR)/geometrylayer.o \ - $(OUTDIR)/googleapimapadapter.o $(OUTDIR)/googlemapadapter.o \ - $(OUTDIR)/gps_position.o $(OUTDIR)/imagemanager.o \ - $(OUTDIR)/imagepoint.o $(OUTDIR)/invisiblepoint.o $(OUTDIR)/layer.o \ - $(OUTDIR)/layermanager.o $(OUTDIR)/linestring.o \ - $(OUTDIR)/mapadapter.o $(OUTDIR)/mapcontrol.o \ - $(OUTDIR)/mapcontrol_moc.o $(OUTDIR)/maplayer.o \ - $(OUTDIR)/mapnetwork.o $(OUTDIR)/openaerialmapadapter.o \ - $(OUTDIR)/osmmapadapter.o $(OUTDIR)/point.o \ - $(OUTDIR)/tilemapadapter.o $(OUTDIR)/wmsmapadapter.o \ - $(OUTDIR)/addDeviceDialog.o $(OUTDIR)/addSourceDialog.o \ - $(OUTDIR)/DeviceChooser.o $(OUTDIR)/EventViewWidget.o \ - $(OUTDIR)/FSVideoWidget.o $(OUTDIR)/LrfSensorWidget.o \ - $(OUTDIR)/OGLCameraWidget.o $(OUTDIR)/OGLRadarWidget.o \ - $(OUTDIR)/point2dWidget.o $(OUTDIR)/RadarMapWidget.o \ - $(OUTDIR)/RangeMapWidget.o $(OUTDIR)/ReportsManagerWindow.o \ - $(OUTDIR)/SettingsCamera.o $(OUTDIR)/SettingsLGS.o \ - $(OUTDIR)/targetDisplay.o $(OUTDIR)/TimeShowWidget.o \ - $(OUTDIR)/VideoSourceChooser.o $(OUTDIR)/VideoThumbWidget.o \ - $(OUTDIR)/VideoWidget.o $(OUTDIR)/guiClass.o $(OUTDIR)/mask.o \ - $(OUTDIR)/base64.o $(OUTDIR)/libzip.o $(OUTDIR)/md5.o \ - $(OUTDIR)/Transform.o $(OUTDIR)/utm.o $(OUTDIR)/basicCamera.o \ - $(OUTDIR)/basicCameraInfo.o $(OUTDIR)/basicCameraPTZ.o \ - $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEvent.o \ - $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ - $(OUTDIR)/basicEvtDispatcher.o $(OUTDIR)/basicFIFO.o \ - $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLIBAV.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMediaDestination.o $(OUTDIR)/basicMediaSource.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o \ - $(OUTDIR)/basicPosition.o $(OUTDIR)/basicReportRecord.o \ - $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ - $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ - $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/basicTypes.o $(OUTDIR)/basicVideoAnalyzer.o \ - $(OUTDIR)/OnvifVideoSourceFinder.o $(OUTDIR)/lapsedVideoRecorder.o \ - $(OUTDIR)/mediaVideoSourceManager.o \ - $(OUTDIR)/videoAVLIBDestination.o $(OUTDIR)/videoAVLIBSource.o \ - $(OUTDIR)/videoNode.o $(OUTDIR)/objectCameraPTZ.o \ - $(OUTDIR)/objectDVR.o $(OUTDIR)/objectEventReport.o \ - $(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/objectLGS.o \ - $(OUTDIR)/objectSensorsEnumirator.o $(OUTDIR)/objectStaticCamera.o \ - $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/storageProvider.o \ - $(OUTDIR)/clientPort.o $(OUTDIR)/curlRequest.o \ - $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/joystick.o \ - $(OUTDIR)/serialPort.o $(OUTDIR)/transportSerial.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/dom.o $(OUTDIR)/duration.o \ - $(OUTDIR)/mecevp.o $(OUTDIR)/nsmap.o $(OUTDIR)/onvifclientdevice.o \ - $(OUTDIR)/onvifclientevent.o $(OUTDIR)/onvifclientimaging.o \ - $(OUTDIR)/onvifclientmedia.o $(OUTDIR)/onvifclientptz.o \ - $(OUTDIR)/onvifclientreceiver.o $(OUTDIR)/onvifclientrecording.o \ - $(OUTDIR)/onvifclientremotediscovery.o $(OUTDIR)/onvifclientreplay.o \ - $(OUTDIR)/onvifclientsearch.o $(OUTDIR)/smdevp.o $(OUTDIR)/soapC.o \ - $(OUTDIR)/soapDeviceBindingProxy.o $(OUTDIR)/soapMediaBindingProxy.o \ - $(OUTDIR)/soapMediaBindingService.o $(OUTDIR)/soapPTZBindingProxy.o \ - $(OUTDIR)/soapPTZBindingService.o \ - $(OUTDIR)/soapPullPointSubscriptionBindingProxy.o \ - $(OUTDIR)/soapPullPointSubscriptionBindingService.o \ - $(OUTDIR)/soapReceiverBindingProxy.o \ - $(OUTDIR)/soapReceiverBindingService.o \ - $(OUTDIR)/soapRecordingBindingProxy.o \ - $(OUTDIR)/soapRecordingBindingService.o \ - $(OUTDIR)/soapRemoteDiscoveryBindingProxy.o \ - $(OUTDIR)/soapRemoteDiscoveryBindingService.o \ - $(OUTDIR)/soapReplayBindingProxy.o \ - $(OUTDIR)/soapReplayBindingService.o \ - $(OUTDIR)/soapSearchBindingProxy.o \ - $(OUTDIR)/soapSearchBindingService.o $(OUTDIR)/soapwsddProxy.o \ - $(OUTDIR)/soapwsddService.o $(OUTDIR)/stdsoap2.o $(OUTDIR)/threads.o \ - $(OUTDIR)/wsaapi.o $(OUTDIR)/wsseapi.o \ - $(OUTDIR)/onvifMediaObserver.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolHTTP.o $(OUTDIR)/protocolLGS.o \ - $(OUTDIR)/protocolPTZ.o $(OUTDIR)/protocolPTZ_ONVIF.o \ - $(OUTDIR)/protocolPTZ_PELCO.o $(OUTDIR)/protocolPTZ_VISCA.o \ - $(OUTDIR)/xmlParser.o $(OUTDIR)/main-qt.o $(OUTDIR)/main_window.o \ - -lssl -lcrypto -lpthread `pkg-config --libs libavcodec libavdevice \ - libavfilter libavformat libavresample libavutil libswresample \ - libswscale libconfig++ libcurl opencv Qt53DAnimation Qt53DCore \ - Qt53DExtras Qt53DInput Qt53DLogic Qt53DQuickAnimation \ - Qt53DQuickExtras Qt53DQuickInput Qt53DQuick Qt53DQuickRender \ - Qt53DQuickScene2D Qt53DRender Qt5Bluetooth Qt5Charts Qt5Concurrent \ - Qt5Core Qt5DataVisualization Qt5DBus Qt5Gamepad Qt5Gui Qt5Help \ - Qt5Location Qt5Multimedia Qt5MultimediaWidgets Qt5NetworkAuth \ - Qt5Network Qt5Nfc Qt5OpenGLExtensions Qt5OpenGL Qt5Positioning \ - Qt5PrintSupport Qt5Purchasing Qt5Qml Qt5QuickControls2 Qt5Quick \ - Qt5QuickTest Qt5QuickWidgets Qt5RemoteObjects Qt5Script \ - Qt5ScriptTools Qt5Scxml Qt5Sensors Qt5SerialBus Qt5SerialPort Qt5Sql \ - Qt5Svg Qt5Test Qt5TextToSpeech Qt5UiTools Qt5WaylandClient \ - Qt5WaylandCompositor Qt5WebChannel Qt5WebSockets Qt5Widgets \ - Qt5X11Extras Qt5XmlPatterns Qt5Xml` -lGL -lGLU -lc -lm -lz - -COMPILE=g++ -c "-DDEBUG" "-D__GUI__" "-D__STDC_CONSTANT_MACROS" "-DWITH_OPENSSL" "-D_CLIENT_APPLICATION_" "-D_CRT_SECURE_NO_WARNINGS" "-D__STDC_CONSTANT_MACROS" "-DWITH_PURE_VIRTUAL" -g -fPIC `pkg-config --cflags Qt53DAnimation Qt53DCore Qt53DExtras Qt53DInput Qt53DLogic Qt53DQuickAnimation Qt53DQuickExtras Qt53DQuickInput Qt53DQuick Qt53DQuickRender Qt53DQuickScene2D Qt53DRender Qt5Bluetooth Qt5Charts Qt5Concurrent Qt5Core Qt5DataVisualization Qt5DBus Qt5Gamepad Qt5Gui Qt5Help Qt5Location Qt5Multimedia Qt5MultimediaWidgets Qt5NetworkAuth Qt5Network Qt5Nfc Qt5OpenGLExtensions Qt5OpenGL Qt5Positioning Qt5PrintSupport Qt5Purchasing Qt5Qml Qt5QuickControls2 Qt5Quick Qt5QuickTest Qt5QuickWidgets Qt5RemoteObjects Qt5Script Qt5ScriptTools Qt5Scxml Qt5Sensors Qt5SerialBus Qt5SerialPort Qt5Sql Qt5Svg Qt5Test Qt5TextToSpeech Qt5UiTools Qt5WaylandClient Qt5WaylandCompositor Qt5WebChannel Qt5WebSockets Qt5Widgets opencv Qt5X11Extras Qt5XmlPatterns Qt5Xml` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< -LINK=g++ -g -o "$(OUTFILE)" $(ALL_OBJ) - -# Pattern rules -$(OUTDIR)/%.o : ../../lib/data/storage/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/net/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/onvif/onvifgen/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/gui/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/media/video/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/transport/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/gui/controls/mapControl/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/gui/controls/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/components/object/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/onvif/gsoap/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/App/3dGUI/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/onvif/include/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/hardware/uart/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/hardware/stick/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/components/base/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/media/%.cpp - $(COMPILE) - -# Build rules -all: $(OUTFILE) - -$(OUTFILE): $(OUTDIR) $(OBJ) - $(LINK) - -$(OUTDIR): - $(MKDIR) -p "$(OUTDIR)" - -# Rebuild this project -rebuild: cleanall all - -# Clean this project -clean: - $(RM) -f $(OUTFILE) - $(RM) -f $(OBJ) - -# Clean this project and all dependencies -cleanall: clean -endif - -# -# Configuration: Release -# -ifeq "$(CFG)" "Release" -OUTDIR=Release -OUTFILE=$(OUTDIR)/3dClientGui -CFG_INC=-I/usr/local/Qt-5.9.5/include -I/usr/local/include \ - -I/usr/include -CFG_LIB=-lssl -lcrypto -lpthread `pkg-config --libs libavcodec \ - libavdevice libavfilter libavformat libavresample libavutil \ - libswresample libswscale libconfig++ libcurl opencv Qt53DAnimation \ - Qt53DCore Qt53DExtras Qt53DInput Qt53DLogic Qt53DQuickAnimation \ - Qt53DQuickExtras Qt53DQuickInput Qt53DQuick Qt53DQuickRender \ - Qt53DQuickScene2D Qt53DRender Qt5Bluetooth Qt5Charts Qt5Concurrent \ - Qt5Core Qt5DataVisualization Qt5DBus Qt5Gamepad Qt5Gui Qt5Help \ - Qt5Location Qt5Multimedia Qt5MultimediaWidgets Qt5NetworkAuth \ - Qt5Network Qt5Nfc Qt5OpenGLExtensions Qt5OpenGL Qt5Positioning \ - Qt5PrintSupport Qt5Purchasing Qt5Qml Qt5QuickControls2 Qt5Quick \ - Qt5QuickTest Qt5QuickWidgets Qt5RemoteObjects Qt5Script \ - Qt5ScriptTools Qt5Scxml Qt5Sensors Qt5SerialBus Qt5SerialPort Qt5Sql \ - Qt5Svg Qt5Test Qt5TextToSpeech Qt5UiTools Qt5WaylandClient \ - Qt5WaylandCompositor Qt5WebChannel Qt5WebSockets Qt5Widgets \ - Qt5X11Extras Qt5XmlPatterns Qt5Xml` -lGL -lGLU -lc -lm -lz -CFG_OBJ= -COMMON_OBJ=$(OUTDIR)/arrowpoint.o $(OUTDIR)/bingapimapadapter.o \ - $(OUTDIR)/circlepoint.o $(OUTDIR)/curve.o \ - $(OUTDIR)/emptymapadapter.o $(OUTDIR)/fixedimageoverlay.o \ - $(OUTDIR)/geometry.o $(OUTDIR)/geometrylayer.o \ - $(OUTDIR)/googleapimapadapter.o $(OUTDIR)/googlemapadapter.o \ - $(OUTDIR)/gps_position.o $(OUTDIR)/imagemanager.o \ - $(OUTDIR)/imagepoint.o $(OUTDIR)/invisiblepoint.o $(OUTDIR)/layer.o \ - $(OUTDIR)/layermanager.o $(OUTDIR)/linestring.o \ - $(OUTDIR)/mapadapter.o $(OUTDIR)/mapcontrol.o \ - $(OUTDIR)/mapcontrol_moc.o $(OUTDIR)/maplayer.o \ - $(OUTDIR)/mapnetwork.o $(OUTDIR)/openaerialmapadapter.o \ - $(OUTDIR)/osmmapadapter.o $(OUTDIR)/point.o \ - $(OUTDIR)/tilemapadapter.o $(OUTDIR)/wmsmapadapter.o \ - $(OUTDIR)/addDeviceDialog.o $(OUTDIR)/addSourceDialog.o \ - $(OUTDIR)/DeviceChooser.o $(OUTDIR)/EventViewWidget.o \ - $(OUTDIR)/FSVideoWidget.o $(OUTDIR)/LrfSensorWidget.o \ - $(OUTDIR)/OGLCameraWidget.o $(OUTDIR)/OGLRadarWidget.o \ - $(OUTDIR)/point2dWidget.o $(OUTDIR)/RadarMapWidget.o \ - $(OUTDIR)/RangeMapWidget.o $(OUTDIR)/ReportsManagerWindow.o \ - $(OUTDIR)/SettingsCamera.o $(OUTDIR)/SettingsLGS.o \ - $(OUTDIR)/targetDisplay.o $(OUTDIR)/TimeShowWidget.o \ - $(OUTDIR)/VideoSourceChooser.o $(OUTDIR)/VideoThumbWidget.o \ - $(OUTDIR)/VideoWidget.o $(OUTDIR)/guiClass.o $(OUTDIR)/mask.o \ - $(OUTDIR)/base64.o $(OUTDIR)/libzip.o $(OUTDIR)/md5.o \ - $(OUTDIR)/Transform.o $(OUTDIR)/utm.o $(OUTDIR)/basicCamera.o \ - $(OUTDIR)/basicCameraInfo.o $(OUTDIR)/basicCameraPTZ.o \ - $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEvent.o \ - $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ - $(OUTDIR)/basicEvtDispatcher.o $(OUTDIR)/basicFIFO.o \ - $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLIBAV.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMediaDestination.o $(OUTDIR)/basicMediaSource.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o \ - $(OUTDIR)/basicPosition.o $(OUTDIR)/basicReportRecord.o \ - $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ - $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ - $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/basicTypes.o $(OUTDIR)/basicVideoAnalyzer.o \ - $(OUTDIR)/OnvifVideoSourceFinder.o $(OUTDIR)/lapsedVideoRecorder.o \ - $(OUTDIR)/mediaVideoSourceManager.o \ - $(OUTDIR)/videoAVLIBDestination.o $(OUTDIR)/videoAVLIBSource.o \ - $(OUTDIR)/videoNode.o $(OUTDIR)/objectCameraPTZ.o \ - $(OUTDIR)/objectDVR.o $(OUTDIR)/objectEventReport.o \ - $(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/objectLGS.o \ - $(OUTDIR)/objectSensorsEnumirator.o $(OUTDIR)/objectStaticCamera.o \ - $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/storageProvider.o \ - $(OUTDIR)/clientPort.o $(OUTDIR)/curlRequest.o \ - $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/joystick.o \ - $(OUTDIR)/serialPort.o $(OUTDIR)/transportSerial.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/dom.o $(OUTDIR)/duration.o \ - $(OUTDIR)/mecevp.o $(OUTDIR)/nsmap.o $(OUTDIR)/onvifclientdevice.o \ - $(OUTDIR)/onvifclientevent.o $(OUTDIR)/onvifclientimaging.o \ - $(OUTDIR)/onvifclientmedia.o $(OUTDIR)/onvifclientptz.o \ - $(OUTDIR)/onvifclientreceiver.o $(OUTDIR)/onvifclientrecording.o \ - $(OUTDIR)/onvifclientremotediscovery.o $(OUTDIR)/onvifclientreplay.o \ - $(OUTDIR)/onvifclientsearch.o $(OUTDIR)/smdevp.o $(OUTDIR)/soapC.o \ - $(OUTDIR)/soapDeviceBindingProxy.o $(OUTDIR)/soapMediaBindingProxy.o \ - $(OUTDIR)/soapMediaBindingService.o $(OUTDIR)/soapPTZBindingProxy.o \ - $(OUTDIR)/soapPTZBindingService.o \ - $(OUTDIR)/soapPullPointSubscriptionBindingProxy.o \ - $(OUTDIR)/soapPullPointSubscriptionBindingService.o \ - $(OUTDIR)/soapReceiverBindingProxy.o \ - $(OUTDIR)/soapReceiverBindingService.o \ - $(OUTDIR)/soapRecordingBindingProxy.o \ - $(OUTDIR)/soapRecordingBindingService.o \ - $(OUTDIR)/soapRemoteDiscoveryBindingProxy.o \ - $(OUTDIR)/soapRemoteDiscoveryBindingService.o \ - $(OUTDIR)/soapReplayBindingProxy.o \ - $(OUTDIR)/soapReplayBindingService.o \ - $(OUTDIR)/soapSearchBindingProxy.o \ - $(OUTDIR)/soapSearchBindingService.o $(OUTDIR)/soapwsddProxy.o \ - $(OUTDIR)/soapwsddService.o $(OUTDIR)/stdsoap2.o $(OUTDIR)/threads.o \ - $(OUTDIR)/wsaapi.o $(OUTDIR)/wsseapi.o \ - $(OUTDIR)/onvifMediaObserver.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolHTTP.o $(OUTDIR)/protocolLGS.o \ - $(OUTDIR)/protocolPTZ.o $(OUTDIR)/protocolPTZ_ONVIF.o \ - $(OUTDIR)/protocolPTZ_PELCO.o $(OUTDIR)/protocolPTZ_VISCA.o \ - $(OUTDIR)/xmlParser.o $(OUTDIR)/main-qt.o $(OUTDIR)/main_window.o -OBJ=$(COMMON_OBJ) $(CFG_OBJ) -ALL_OBJ=$(OUTDIR)/arrowpoint.o $(OUTDIR)/bingapimapadapter.o \ - $(OUTDIR)/circlepoint.o $(OUTDIR)/curve.o \ - $(OUTDIR)/emptymapadapter.o $(OUTDIR)/fixedimageoverlay.o \ - $(OUTDIR)/geometry.o $(OUTDIR)/geometrylayer.o \ - $(OUTDIR)/googleapimapadapter.o $(OUTDIR)/googlemapadapter.o \ - $(OUTDIR)/gps_position.o $(OUTDIR)/imagemanager.o \ - $(OUTDIR)/imagepoint.o $(OUTDIR)/invisiblepoint.o $(OUTDIR)/layer.o \ - $(OUTDIR)/layermanager.o $(OUTDIR)/linestring.o \ - $(OUTDIR)/mapadapter.o $(OUTDIR)/mapcontrol.o \ - $(OUTDIR)/mapcontrol_moc.o $(OUTDIR)/maplayer.o \ - $(OUTDIR)/mapnetwork.o $(OUTDIR)/openaerialmapadapter.o \ - $(OUTDIR)/osmmapadapter.o $(OUTDIR)/point.o \ - $(OUTDIR)/tilemapadapter.o $(OUTDIR)/wmsmapadapter.o \ - $(OUTDIR)/addDeviceDialog.o $(OUTDIR)/addSourceDialog.o \ - $(OUTDIR)/DeviceChooser.o $(OUTDIR)/EventViewWidget.o \ - $(OUTDIR)/FSVideoWidget.o $(OUTDIR)/LrfSensorWidget.o \ - $(OUTDIR)/OGLCameraWidget.o $(OUTDIR)/OGLRadarWidget.o \ - $(OUTDIR)/point2dWidget.o $(OUTDIR)/RadarMapWidget.o \ - $(OUTDIR)/RangeMapWidget.o $(OUTDIR)/ReportsManagerWindow.o \ - $(OUTDIR)/SettingsCamera.o $(OUTDIR)/SettingsLGS.o \ - $(OUTDIR)/targetDisplay.o $(OUTDIR)/TimeShowWidget.o \ - $(OUTDIR)/VideoSourceChooser.o $(OUTDIR)/VideoThumbWidget.o \ - $(OUTDIR)/VideoWidget.o $(OUTDIR)/guiClass.o $(OUTDIR)/mask.o \ - $(OUTDIR)/base64.o $(OUTDIR)/libzip.o $(OUTDIR)/md5.o \ - $(OUTDIR)/Transform.o $(OUTDIR)/utm.o $(OUTDIR)/basicCamera.o \ - $(OUTDIR)/basicCameraInfo.o $(OUTDIR)/basicCameraPTZ.o \ - $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEvent.o \ - $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ - $(OUTDIR)/basicEvtDispatcher.o $(OUTDIR)/basicFIFO.o \ - $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLIBAV.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMediaDestination.o $(OUTDIR)/basicMediaSource.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o \ - $(OUTDIR)/basicPosition.o $(OUTDIR)/basicReportRecord.o \ - $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ - $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ - $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/basicTypes.o $(OUTDIR)/basicVideoAnalyzer.o \ - $(OUTDIR)/OnvifVideoSourceFinder.o $(OUTDIR)/lapsedVideoRecorder.o \ - $(OUTDIR)/mediaVideoSourceManager.o \ - $(OUTDIR)/videoAVLIBDestination.o $(OUTDIR)/videoAVLIBSource.o \ - $(OUTDIR)/videoNode.o $(OUTDIR)/objectCameraPTZ.o \ - $(OUTDIR)/objectDVR.o $(OUTDIR)/objectEventReport.o \ - $(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/objectLGS.o \ - $(OUTDIR)/objectSensorsEnumirator.o $(OUTDIR)/objectStaticCamera.o \ - $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/storageProvider.o \ - $(OUTDIR)/clientPort.o $(OUTDIR)/curlRequest.o \ - $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/joystick.o \ - $(OUTDIR)/serialPort.o $(OUTDIR)/transportSerial.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/dom.o $(OUTDIR)/duration.o \ - $(OUTDIR)/mecevp.o $(OUTDIR)/nsmap.o $(OUTDIR)/onvifclientdevice.o \ - $(OUTDIR)/onvifclientevent.o $(OUTDIR)/onvifclientimaging.o \ - $(OUTDIR)/onvifclientmedia.o $(OUTDIR)/onvifclientptz.o \ - $(OUTDIR)/onvifclientreceiver.o $(OUTDIR)/onvifclientrecording.o \ - $(OUTDIR)/onvifclientremotediscovery.o $(OUTDIR)/onvifclientreplay.o \ - $(OUTDIR)/onvifclientsearch.o $(OUTDIR)/smdevp.o $(OUTDIR)/soapC.o \ - $(OUTDIR)/soapDeviceBindingProxy.o $(OUTDIR)/soapMediaBindingProxy.o \ - $(OUTDIR)/soapMediaBindingService.o $(OUTDIR)/soapPTZBindingProxy.o \ - $(OUTDIR)/soapPTZBindingService.o \ - $(OUTDIR)/soapPullPointSubscriptionBindingProxy.o \ - $(OUTDIR)/soapPullPointSubscriptionBindingService.o \ - $(OUTDIR)/soapReceiverBindingProxy.o \ - $(OUTDIR)/soapReceiverBindingService.o \ - $(OUTDIR)/soapRecordingBindingProxy.o \ - $(OUTDIR)/soapRecordingBindingService.o \ - $(OUTDIR)/soapRemoteDiscoveryBindingProxy.o \ - $(OUTDIR)/soapRemoteDiscoveryBindingService.o \ - $(OUTDIR)/soapReplayBindingProxy.o \ - $(OUTDIR)/soapReplayBindingService.o \ - $(OUTDIR)/soapSearchBindingProxy.o \ - $(OUTDIR)/soapSearchBindingService.o $(OUTDIR)/soapwsddProxy.o \ - $(OUTDIR)/soapwsddService.o $(OUTDIR)/stdsoap2.o $(OUTDIR)/threads.o \ - $(OUTDIR)/wsaapi.o $(OUTDIR)/wsseapi.o \ - $(OUTDIR)/onvifMediaObserver.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolHTTP.o $(OUTDIR)/protocolLGS.o \ - $(OUTDIR)/protocolPTZ.o $(OUTDIR)/protocolPTZ_ONVIF.o \ - $(OUTDIR)/protocolPTZ_PELCO.o $(OUTDIR)/protocolPTZ_VISCA.o \ - $(OUTDIR)/xmlParser.o $(OUTDIR)/main-qt.o $(OUTDIR)/main_window.o \ - -lssl -lcrypto -lpthread `pkg-config --libs libavcodec libavdevice \ - libavfilter libavformat libavresample libavutil libswresample \ - libswscale libconfig++ libcurl opencv Qt53DAnimation Qt53DCore \ - Qt53DExtras Qt53DInput Qt53DLogic Qt53DQuickAnimation \ - Qt53DQuickExtras Qt53DQuickInput Qt53DQuick Qt53DQuickRender \ - Qt53DQuickScene2D Qt53DRender Qt5Bluetooth Qt5Charts Qt5Concurrent \ - Qt5Core Qt5DataVisualization Qt5DBus Qt5Gamepad Qt5Gui Qt5Help \ - Qt5Location Qt5Multimedia Qt5MultimediaWidgets Qt5NetworkAuth \ - Qt5Network Qt5Nfc Qt5OpenGLExtensions Qt5OpenGL Qt5Positioning \ - Qt5PrintSupport Qt5Purchasing Qt5Qml Qt5QuickControls2 Qt5Quick \ - Qt5QuickTest Qt5QuickWidgets Qt5RemoteObjects Qt5Script \ - Qt5ScriptTools Qt5Scxml Qt5Sensors Qt5SerialBus Qt5SerialPort Qt5Sql \ - Qt5Svg Qt5Test Qt5TextToSpeech Qt5UiTools Qt5WaylandClient \ - Qt5WaylandCompositor Qt5WebChannel Qt5WebSockets Qt5Widgets \ - Qt5X11Extras Qt5XmlPatterns Qt5Xml` -lGL -lGLU -lc -lm -lz - -COMPILE=g++ -c "-D__GUI__" "-D__STDC_CONSTANT_MACROS" "-DWITH_OPENSSL" "-D_CLIENT_APPLICATION_" "-D_CRT_SECURE_NO_WARNINGS" "-D__STDC_CONSTANT_MACROS" "-DWITH_PURE_VIRTUAL" -fPIC `pkg-config --cflags Qt53DAnimation Qt53DCore Qt53DExtras Qt53DInput Qt53DLogic Qt53DQuickAnimation Qt53DQuickExtras Qt53DQuickInput Qt53DQuick Qt53DQuickRender Qt53DQuickScene2D Qt53DRender Qt5Bluetooth Qt5Charts Qt5Concurrent Qt5Core Qt5DataVisualization Qt5DBus Qt5Gamepad Qt5Gui Qt5Help Qt5Location Qt5Multimedia Qt5MultimediaWidgets Qt5NetworkAuth Qt5Network Qt5Nfc Qt5OpenGLExtensions Qt5OpenGL Qt5Positioning Qt5PrintSupport Qt5Purchasing Qt5Qml Qt5QuickControls2 Qt5Quick Qt5QuickTest Qt5QuickWidgets Qt5RemoteObjects Qt5Script Qt5ScriptTools Qt5Scxml Qt5Sensors Qt5SerialBus Qt5SerialPort Qt5Sql Qt5Svg Qt5Test Qt5TextToSpeech Qt5UiTools Qt5WaylandClient Qt5WaylandCompositor Qt5WebChannel Qt5WebSockets Qt5Widgets opencv Qt5X11Extras Qt5XmlPatterns Qt5Xml` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< -LINK=g++ -o "$(OUTFILE)" $(ALL_OBJ) - -# Pattern rules -$(OUTDIR)/%.o : ../../lib/data/storage/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/net/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/onvif/onvifgen/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/gui/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/media/video/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/transport/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/gui/controls/mapControl/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/gui/controls/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/components/object/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/onvif/gsoap/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/App/3dGUI/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/onvif/include/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/hardware/uart/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/hardware/stick/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/components/base/%.cpp - $(COMPILE) - -$(OUTDIR)/%.o : ../../lib/data/media/%.cpp - $(COMPILE) - -# Build rules -all: $(OUTFILE) - -$(OUTFILE): $(OUTDIR) $(OBJ) - $(LINK) - -$(OUTDIR): - $(MKDIR) -p "$(OUTDIR)" - -# Rebuild this project -rebuild: cleanall all - -# Clean this project -clean: - $(RM) -f $(OUTFILE) - $(RM) -f $(OBJ) - -# Clean this project and all dependencies -cleanall: clean -endif +# SlickEdit generated file. Do not edit this file except in designated areas. + +# Make command to use for dependencies +MAKE=make +RM=rm +MKDIR=mkdir + +# -----Begin user-editable area----- + +# -----End user-editable area----- + +# If no configuration is specified, "Debug" will be used +ifndef CFG +CFG=Debug +endif + +# +# Configuration: Debug +# +ifeq "$(CFG)" "Debug" +OUTDIR=Debug +OUTFILE=$(OUTDIR)/pathfinder +CFG_INC= +CFG_LIB=-lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig \ + -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec libavdevice \ + libavfilter libavformat libavutil libpostproc libswresample \ + libswscale --libs` -lssl -lwiringPi -lwiringPiDev -lgphoto2 \ + -lgphoto2_port +CFG_OBJ= +COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicDualThread.o \ + $(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \ + $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ + $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMutex.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ + $(OUTDIR)/basicTypes.o $(OUTDIR)/BNO055.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/curlRequest.o $(OUTDIR)/curlRequestsManager.o \ + $(OUTDIR)/database_class.o $(OUTDIR)/gPhotoCamera.o \ + $(OUTDIR)/heapDebug.o $(OUTDIR)/i2cPort.o $(OUTDIR)/json_reader.o \ + $(OUTDIR)/json_value.o $(OUTDIR)/json_writer.o $(OUTDIR)/libzip.o \ + $(OUTDIR)/lrfScanner.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/objectConsoleLoggingService.o \ + $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectPathfinderBinaryLog.o $(OUTDIR)/objectSystemAnchor.o \ + $(OUTDIR)/Pathfinder_Kernel.o $(OUTDIR)/PathfinderBackend.o \ + $(OUTDIR)/pathfinderDBConnector.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolHTTP.o $(OUTDIR)/serialPort.o \ + $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/Transform.o \ + $(OUTDIR)/transportBus.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/UBLOX_I2C.o $(OUTDIR)/utm.o \ + $(OUTDIR)/xmlParser.o +OBJ=$(COMMON_OBJ) $(CFG_OBJ) +ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicDualThread.o \ + $(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \ + $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ + $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMutex.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ + $(OUTDIR)/basicTypes.o $(OUTDIR)/BNO055.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/curlRequest.o $(OUTDIR)/curlRequestsManager.o \ + $(OUTDIR)/database_class.o $(OUTDIR)/gPhotoCamera.o \ + $(OUTDIR)/heapDebug.o $(OUTDIR)/i2cPort.o $(OUTDIR)/json_reader.o \ + $(OUTDIR)/json_value.o $(OUTDIR)/json_writer.o $(OUTDIR)/libzip.o \ + $(OUTDIR)/lrfScanner.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/objectConsoleLoggingService.o \ + $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectPathfinderBinaryLog.o $(OUTDIR)/objectSystemAnchor.o \ + $(OUTDIR)/Pathfinder_Kernel.o $(OUTDIR)/PathfinderBackend.o \ + $(OUTDIR)/pathfinderDBConnector.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolHTTP.o $(OUTDIR)/serialPort.o \ + $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/Transform.o \ + $(OUTDIR)/transportBus.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/UBLOX_I2C.o $(OUTDIR)/utm.o \ + $(OUTDIR)/xmlParser.o -lpthread -lmysqlclient -lssl -lcurl -lm \ + -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config \ + libavcodec libavdevice libavfilter libavformat libavutil libpostproc \ + libswresample libswscale --libs` -lssl -lwiringPi -lwiringPiDev \ + -lgphoto2 -lgphoto2_port + +COMPILE=g++ -c -x c++ "-DDEBUG" "-D__STDC_CONSTANT_MACROS" -g -ggdb -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< +LINK=g++ -g -ggdb -o "$(OUTFILE)" $(ALL_OBJ) + +# Pattern rules +$(OUTDIR)/%.o : ../../lib/hardware/sensors/gps/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/transport/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/9dof/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ssdp/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/pathfinder/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/App/Pathfinder/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ponvif/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/components/base/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/i2c/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/uart/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/components/object/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/gphoto/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/lrf/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/net/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/mysql/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/json/%.cpp + $(COMPILE) + +# Build rules +all: $(OUTFILE) + +$(OUTFILE): $(OUTDIR) $(OBJ) + $(LINK) + +$(OUTDIR): + $(MKDIR) -p "$(OUTDIR)" + +# Rebuild this project +rebuild: cleanall all + +# Clean this project +clean: + $(RM) -f $(OUTFILE) + $(RM) -f $(OBJ) + +# Clean this project and all dependencies +cleanall: clean +endif + +# +# Configuration: Release +# +ifeq "$(CFG)" "Release" +OUTDIR=Release +OUTFILE=$(OUTDIR)/pathfinder +CFG_INC= +CFG_LIB=-lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig \ + -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec libavdevice \ + libavfilter libavformat libavutil libpostproc libswresample \ + libswscale --libs` -lssl -lwiringPi -lwiringPiDev -lgphoto2 \ + -lgphoto2_port +CFG_OBJ= +COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicDualThread.o \ + $(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \ + $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ + $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMutex.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ + $(OUTDIR)/basicTypes.o $(OUTDIR)/BNO055.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/curlRequest.o $(OUTDIR)/curlRequestsManager.o \ + $(OUTDIR)/database_class.o $(OUTDIR)/gPhotoCamera.o \ + $(OUTDIR)/heapDebug.o $(OUTDIR)/i2cPort.o $(OUTDIR)/json_reader.o \ + $(OUTDIR)/json_value.o $(OUTDIR)/json_writer.o $(OUTDIR)/libzip.o \ + $(OUTDIR)/lrfScanner.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/objectConsoleLoggingService.o \ + $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectPathfinderBinaryLog.o $(OUTDIR)/objectSystemAnchor.o \ + $(OUTDIR)/Pathfinder_Kernel.o $(OUTDIR)/PathfinderBackend.o \ + $(OUTDIR)/pathfinderDBConnector.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolHTTP.o $(OUTDIR)/serialPort.o \ + $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/Transform.o \ + $(OUTDIR)/transportBus.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/UBLOX_I2C.o $(OUTDIR)/utm.o \ + $(OUTDIR)/xmlParser.o +OBJ=$(COMMON_OBJ) $(CFG_OBJ) +ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicDualThread.o \ + $(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \ + $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ + $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMutex.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ + $(OUTDIR)/basicTypes.o $(OUTDIR)/BNO055.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/curlRequest.o $(OUTDIR)/curlRequestsManager.o \ + $(OUTDIR)/database_class.o $(OUTDIR)/gPhotoCamera.o \ + $(OUTDIR)/heapDebug.o $(OUTDIR)/i2cPort.o $(OUTDIR)/json_reader.o \ + $(OUTDIR)/json_value.o $(OUTDIR)/json_writer.o $(OUTDIR)/libzip.o \ + $(OUTDIR)/lrfScanner.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/objectConsoleLoggingService.o \ + $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectPathfinderBinaryLog.o $(OUTDIR)/objectSystemAnchor.o \ + $(OUTDIR)/Pathfinder_Kernel.o $(OUTDIR)/PathfinderBackend.o \ + $(OUTDIR)/pathfinderDBConnector.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolHTTP.o $(OUTDIR)/serialPort.o \ + $(OUTDIR)/ssdpAnnouncer.o $(OUTDIR)/Transform.o \ + $(OUTDIR)/transportBus.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/UBLOX_I2C.o $(OUTDIR)/utm.o \ + $(OUTDIR)/xmlParser.o -lpthread -lmysqlclient -lssl -lcurl -lm \ + -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config \ + libavcodec libavdevice libavfilter libavformat libavutil libpostproc \ + libswresample libswscale --libs` -lssl -lwiringPi -lwiringPiDev \ + -lgphoto2 -lgphoto2_port + +COMPILE=g++ -c -x c++ "-DDEBUG" "-D__STDC_CONSTANT_MACROS" -ggdb -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< +LINK=g++ -ggdb -o "$(OUTFILE)" $(ALL_OBJ) + +# Pattern rules +$(OUTDIR)/%.o : ../../lib/hardware/sensors/gps/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/transport/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/9dof/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ssdp/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/pathfinder/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/App/Pathfinder/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ponvif/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/components/base/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/i2c/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/uart/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/components/object/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/gphoto/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/lrf/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/net/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/mysql/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/json/%.cpp + $(COMPILE) + +# Build rules +all: $(OUTFILE) + +$(OUTFILE): $(OUTDIR) $(OBJ) + $(LINK) + +$(OUTDIR): + $(MKDIR) -p "$(OUTDIR)" + +# Rebuild this project +rebuild: cleanall all + +# Clean this project +clean: + $(RM) -f $(OUTFILE) + $(RM) -f $(OBJ) + +# Clean this project and all dependencies +cleanall: clean +endif diff --git a/Projects/Pathfinder/Debug/data b/Projects/Pathfinder/Debug/data new file mode 120000 index 00000000..b6187b15 --- /dev/null +++ b/Projects/Pathfinder/Debug/data @@ -0,0 +1 @@ +/srv/samba/data \ No newline at end of file diff --git a/Projects/Pathfinder/Debug/default.conf b/Projects/Pathfinder/Debug/default.conf new file mode 100644 index 00000000..8479d748 --- /dev/null +++ b/Projects/Pathfinder/Debug/default.conf @@ -0,0 +1,47 @@ +KERNEL : +{ + SSDP : + { + SERVER_STRING = "POSIX UPnP/1.0 Pathfinder/1.0.5"; + DEVICE_TYPE = "urn:schemas-upnp-org:device:InternetGatewayDevice:1"; + DEVICE_FRIENDLY_NAME = "Pathfinder LRF surface Scaner"; + DEVICE_UUID = "15f39804-6df1-44fb-903c-f55d6c1cbca4"; + MANUFACTURER = "DFSL(Dr.Frucht Systems ltd.)"; + PRESENTATION_URL = "http://%%s/"; + ICONS : + { + }; + SERVICES : + { + }; + }; + BNO055 : + { + }; + DBC : + { + DATABASE_HOST = "localhost"; + DATABASE_NAME = "pathfinder"; + DATABASE_USER = "dbroot"; + DATABASE_PASSWORD = "NoGud4U"; + }; + GP_CAMERA : + { + MOUNT_POINT = "/srv/samba/data/camera"; + UID = 65534; + GID = 65534; + }; + LRFSCAN : + { + BOARD_SPEED = 8; + PROTOCOL : + { + }; + }; + OPTIC_FLOW : + { + }; + UBLOX : + { + }; +}; diff --git a/Projects/Pathfinder/Debug/pathfinder b/Projects/Pathfinder/Debug/pathfinder new file mode 100755 index 00000000..9d83a1ff Binary files /dev/null and b/Projects/Pathfinder/Debug/pathfinder differ diff --git a/Projects/Pathfinder/Debug/server.pid b/Projects/Pathfinder/Debug/server.pid new file mode 100644 index 00000000..e3a7b92c --- /dev/null +++ b/Projects/Pathfinder/Debug/server.pid @@ -0,0 +1 @@ +6343 diff --git a/Projects/Pathfinder/Pathfinder.vpj b/Projects/Pathfinder/Pathfinder.vpj new file mode 100644 index 00000000..ecb57930 --- /dev/null +++ b/Projects/Pathfinder/Pathfinder.vpj @@ -0,0 +1,372 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Projects/Pathfinder/Pathfinder.vpw b/Projects/Pathfinder/Pathfinder.vpw new file mode 100644 index 00000000..5baf3690 --- /dev/null +++ b/Projects/Pathfinder/Pathfinder.vpw @@ -0,0 +1,6 @@ + + + + + + diff --git a/Projects/Pathfinder/Release/pathfinder b/Projects/Pathfinder/Release/pathfinder new file mode 100755 index 00000000..c2020da0 Binary files /dev/null and b/Projects/Pathfinder/Release/pathfinder differ diff --git a/Projects/Pathfinder/build b/Projects/Pathfinder/build new file mode 100755 index 00000000..731ab3d9 --- /dev/null +++ b/Projects/Pathfinder/build @@ -0,0 +1,9 @@ +#! /bin/sh + + +#make clean -e "CFG=Debug" +#make -e "CFG=Debug" + + +make clean -e "CFG=Release" +make -j4 -e "CFG=Release" diff --git a/Projects/Pathfinder/makefile b/Projects/Pathfinder/makefile new file mode 100644 index 00000000..65108223 --- /dev/null +++ b/Projects/Pathfinder/makefile @@ -0,0 +1,339 @@ +# SlickEdit generated file. Do not edit this file except in designated areas. + +# Make command to use for dependencies +MAKE=make +RM=rm +MKDIR=mkdir + +# -----Begin user-editable area----- + +# -----End user-editable area----- + +# If no configuration is specified, "Debug" will be used +ifndef CFG +CFG=Debug +endif + +# +# Configuration: Debug +# +ifeq "$(CFG)" "Debug" +OUTDIR=Debug +OUTFILE=$(OUTDIR)/pathfinder +CFG_INC= +CFG_LIB=-lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig \ + -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec libavdevice \ + libavfilter libavformat libavutil libpostproc libswresample \ + libswscale --libs` -lssl -lwiringPi -lwiringPiDev -lgphoto2 \ + -lgphoto2_port +CFG_OBJ= +COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicDualThread.o \ + $(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \ + $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ + $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMutex.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ + $(OUTDIR)/basicTypes.o $(OUTDIR)/BNO055.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/curlRequest.o $(OUTDIR)/curlRequestsManager.o \ + $(OUTDIR)/database_class.o $(OUTDIR)/gPhotoCamera.o \ + $(OUTDIR)/heapDebug.o $(OUTDIR)/i2cPort.o $(OUTDIR)/json_reader.o \ + $(OUTDIR)/json_value.o $(OUTDIR)/json_writer.o $(OUTDIR)/libzip.o \ + $(OUTDIR)/lrfScanner.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/objectConsoleLoggingService.o \ + $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectPathfinderBinaryLog.o $(OUTDIR)/objectSystemAnchor.o \ + $(OUTDIR)/opticFlowADNS.o $(OUTDIR)/Pathfinder_Kernel.o \ + $(OUTDIR)/PathfinderBackend.o $(OUTDIR)/pathfinderDBConnector.o \ + $(OUTDIR)/ponvif.o $(OUTDIR)/protocol.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/serialPort.o $(OUTDIR)/spiPort.o $(OUTDIR)/ssdpAnnouncer.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportBus.o \ + $(OUTDIR)/transportSerial.o $(OUTDIR)/transportSocket.o \ + $(OUTDIR)/UBLOX_I2C.o $(OUTDIR)/utm.o $(OUTDIR)/XA1110_I2C.o \ + $(OUTDIR)/xmlParser.o +OBJ=$(COMMON_OBJ) $(CFG_OBJ) +ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicDualThread.o \ + $(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \ + $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ + $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMutex.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ + $(OUTDIR)/basicTypes.o $(OUTDIR)/BNO055.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/curlRequest.o $(OUTDIR)/curlRequestsManager.o \ + $(OUTDIR)/database_class.o $(OUTDIR)/gPhotoCamera.o \ + $(OUTDIR)/heapDebug.o $(OUTDIR)/i2cPort.o $(OUTDIR)/json_reader.o \ + $(OUTDIR)/json_value.o $(OUTDIR)/json_writer.o $(OUTDIR)/libzip.o \ + $(OUTDIR)/lrfScanner.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/objectConsoleLoggingService.o \ + $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectPathfinderBinaryLog.o $(OUTDIR)/objectSystemAnchor.o \ + $(OUTDIR)/opticFlowADNS.o $(OUTDIR)/Pathfinder_Kernel.o \ + $(OUTDIR)/PathfinderBackend.o $(OUTDIR)/pathfinderDBConnector.o \ + $(OUTDIR)/ponvif.o $(OUTDIR)/protocol.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/serialPort.o $(OUTDIR)/spiPort.o $(OUTDIR)/ssdpAnnouncer.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportBus.o \ + $(OUTDIR)/transportSerial.o $(OUTDIR)/transportSocket.o \ + $(OUTDIR)/UBLOX_I2C.o $(OUTDIR)/utm.o $(OUTDIR)/XA1110_I2C.o \ + $(OUTDIR)/xmlParser.o -lpthread -lmysqlclient -lssl -lcurl -lm \ + -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config \ + libavcodec libavdevice libavfilter libavformat libavutil libpostproc \ + libswresample libswscale --libs` -lssl -lwiringPi -lwiringPiDev \ + -lgphoto2 -lgphoto2_port + +COMPILE=g++ -c -x c++ "-DDEBUG" "-D__STDC_CONSTANT_MACROS" -O3 -g -ggdb -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< +LINK=g++ -O3 -g -ggdb -o "$(OUTFILE)" $(ALL_OBJ) + +# Pattern rules +$(OUTDIR)/%.o : ../../lib/hardware/sensors/gps/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/transport/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/optic_flow/adns3080/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/9dof/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ssdp/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/pathfinder/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/App/Pathfinder/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ponvif/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/components/base/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/i2c/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/spi/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/uart/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/components/object/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/gphoto/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/lrf/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/net/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/mysql/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/json/%.cpp + $(COMPILE) + +# Build rules +all: $(OUTFILE) + +$(OUTFILE): $(OUTDIR) $(OBJ) + $(LINK) + +$(OUTDIR): + $(MKDIR) -p "$(OUTDIR)" + +# Rebuild this project +rebuild: cleanall all + +# Clean this project +clean: + $(RM) -f $(OUTFILE) + $(RM) -f $(OBJ) + +# Clean this project and all dependencies +cleanall: clean +endif + +# +# Configuration: Release +# +ifeq "$(CFG)" "Release" +OUTDIR=Release +OUTFILE=$(OUTDIR)/pathfinder +CFG_INC= +CFG_LIB=-lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig \ + -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec libavdevice \ + libavfilter libavformat libavutil libpostproc libswresample \ + libswscale --libs` -lssl -lwiringPi -lwiringPiDev -lgphoto2 \ + -lgphoto2_port +CFG_OBJ= +COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicDualThread.o \ + $(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \ + $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ + $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMutex.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ + $(OUTDIR)/basicTypes.o $(OUTDIR)/BNO055.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/curlRequest.o $(OUTDIR)/curlRequestsManager.o \ + $(OUTDIR)/database_class.o $(OUTDIR)/gPhotoCamera.o \ + $(OUTDIR)/heapDebug.o $(OUTDIR)/i2cPort.o $(OUTDIR)/json_reader.o \ + $(OUTDIR)/json_value.o $(OUTDIR)/json_writer.o $(OUTDIR)/libzip.o \ + $(OUTDIR)/lrfScanner.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/objectConsoleLoggingService.o \ + $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectPathfinderBinaryLog.o $(OUTDIR)/objectSystemAnchor.o \ + $(OUTDIR)/opticFlowADNS.o $(OUTDIR)/Pathfinder_Kernel.o \ + $(OUTDIR)/PathfinderBackend.o $(OUTDIR)/pathfinderDBConnector.o \ + $(OUTDIR)/ponvif.o $(OUTDIR)/protocol.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/serialPort.o $(OUTDIR)/spiPort.o $(OUTDIR)/ssdpAnnouncer.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportBus.o \ + $(OUTDIR)/transportSerial.o $(OUTDIR)/transportSocket.o \ + $(OUTDIR)/UBLOX_I2C.o $(OUTDIR)/utm.o $(OUTDIR)/XA1110_I2C.o \ + $(OUTDIR)/xmlParser.o +OBJ=$(COMMON_OBJ) $(CFG_OBJ) +ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicDualThread.o \ + $(OUTDIR)/basicEngine.o $(OUTDIR)/basicEvent.o \ + $(OUTDIR)/basicEventHandler.o $(OUTDIR)/basicEventHeap.o \ + $(OUTDIR)/basicFunctionality.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMutex.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTimeStamp.o $(OUTDIR)/basicTransport.o \ + $(OUTDIR)/basicTypes.o $(OUTDIR)/BNO055.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/curlRequest.o $(OUTDIR)/curlRequestsManager.o \ + $(OUTDIR)/database_class.o $(OUTDIR)/gPhotoCamera.o \ + $(OUTDIR)/heapDebug.o $(OUTDIR)/i2cPort.o $(OUTDIR)/json_reader.o \ + $(OUTDIR)/json_value.o $(OUTDIR)/json_writer.o $(OUTDIR)/libzip.o \ + $(OUTDIR)/lrfScanner.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/objectConsoleLoggingService.o \ + $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectPathfinderBinaryLog.o $(OUTDIR)/objectSystemAnchor.o \ + $(OUTDIR)/opticFlowADNS.o $(OUTDIR)/Pathfinder_Kernel.o \ + $(OUTDIR)/PathfinderBackend.o $(OUTDIR)/pathfinderDBConnector.o \ + $(OUTDIR)/ponvif.o $(OUTDIR)/protocol.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/serialPort.o $(OUTDIR)/spiPort.o $(OUTDIR)/ssdpAnnouncer.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportBus.o \ + $(OUTDIR)/transportSerial.o $(OUTDIR)/transportSocket.o \ + $(OUTDIR)/UBLOX_I2C.o $(OUTDIR)/utm.o $(OUTDIR)/XA1110_I2C.o \ + $(OUTDIR)/xmlParser.o -lpthread -lmysqlclient -lssl -lcurl -lm \ + -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config \ + libavcodec libavdevice libavfilter libavformat libavutil libpostproc \ + libswresample libswscale --libs` -lssl -lwiringPi -lwiringPiDev \ + -lgphoto2 -lgphoto2_port + +COMPILE=g++ -c -x c++ "-D__STDC_CONSTANT_MACROS" -O3 -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< +LINK=g++ -O3 -s -o "$(OUTFILE)" $(ALL_OBJ) + +# Pattern rules +$(OUTDIR)/%.o : ../../lib/hardware/sensors/gps/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/transport/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/optic_flow/adns3080/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/9dof/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ssdp/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/pathfinder/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/App/Pathfinder/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ponvif/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/components/base/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/i2c/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/spi/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/uart/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/components/object/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/gphoto/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/sensors/lrf/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/net/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/mysql/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/json/%.cpp + $(COMPILE) + +# Build rules +all: $(OUTFILE) + +$(OUTFILE): $(OUTDIR) $(OBJ) + $(LINK) + +$(OUTDIR): + $(MKDIR) -p "$(OUTDIR)" + +# Rebuild this project +rebuild: cleanall all + +# Clean this project +clean: + $(RM) -f $(OUTFILE) + $(RM) -f $(OBJ) + +# Clean this project and all dependencies +cleanall: clean +endif diff --git a/Projects/Pathfinder/spi-test/spidev_test b/Projects/Pathfinder/spi-test/spidev_test new file mode 100755 index 00000000..5a870538 Binary files /dev/null and b/Projects/Pathfinder/spi-test/spidev_test differ diff --git a/Projects/Pathfinder/spi-test/spidev_test.c b/Projects/Pathfinder/spi-test/spidev_test.c new file mode 100644 index 00000000..16feda90 --- /dev/null +++ b/Projects/Pathfinder/spi-test/spidev_test.c @@ -0,0 +1,210 @@ +/* + * SPI testing utility (using spidev driver) + * + * Copyright (c) 2007 MontaVista Software, Inc. + * Copyright (c) 2007 Anton Vorontsov + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License. + * + * Cross-compile with cross-gcc -I/path/to/cross-kernel/include + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) + +static void pabort(const char *s) +{ + perror(s); + abort(); +} + +static const char *device = "/dev/spidev1.1"; +static uint8_t mode; +static uint8_t bits = 8; +static uint32_t speed = 500000; +static uint16_t delay; + +static void transfer(int fd) +{ + int ret; + uint8_t tx[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0x40, 0x00, 0x00, 0x00, 0x00, 0x95, + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0xDE, 0xAD, 0xBE, 0xEF, 0xBA, 0xAD, + 0xF0, 0x0D, + }; + uint8_t rx[ARRAY_SIZE(tx)] = {0, }; + struct spi_ioc_transfer tr = { + .tx_buf = (unsigned long)tx, + .rx_buf = (unsigned long)rx, + .len = ARRAY_SIZE(tx), + .delay_usecs = delay, + .speed_hz = speed, + .bits_per_word = bits, + }; + + ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr); + if (ret < 1) + pabort("can't send spi message"); + + for (ret = 0; ret < ARRAY_SIZE(tx); ret++) { + if (!(ret % 6)) + puts(""); + printf("%.2X ", rx[ret]); + } + puts(""); +} + +static void print_usage(const char *prog) +{ + printf("Usage: %s [-DsbdlHOLC3]\n", prog); + puts(" -D --device device to use (default /dev/spidev1.1)\n" + " -s --speed max speed (Hz)\n" + " -d --delay delay (usec)\n" + " -b --bpw bits per word \n" + " -l --loop loopback\n" + " -H --cpha clock phase\n" + " -O --cpol clock polarity\n" + " -L --lsb least significant bit first\n" + " -C --cs-high chip select active high\n" + " -3 --3wire SI/SO signals shared\n"); + exit(1); +} + +static void parse_opts(int argc, char *argv[]) +{ + while (1) { + static const struct option lopts[] = { + { "device", 1, 0, 'D' }, + { "speed", 1, 0, 's' }, + { "delay", 1, 0, 'd' }, + { "bpw", 1, 0, 'b' }, + { "loop", 0, 0, 'l' }, + { "cpha", 0, 0, 'H' }, + { "cpol", 0, 0, 'O' }, + { "lsb", 0, 0, 'L' }, + { "cs-high", 0, 0, 'C' }, + { "3wire", 0, 0, '3' }, + { "no-cs", 0, 0, 'N' }, + { "ready", 0, 0, 'R' }, + { NULL, 0, 0, 0 }, + }; + int c; + + c = getopt_long(argc, argv, "D:s:d:b:lHOLC3NR", lopts, NULL); + + if (c == -1) + break; + + switch (c) { + case 'D': + device = optarg; + break; + case 's': + speed = atoi(optarg); + break; + case 'd': + delay = atoi(optarg); + break; + case 'b': + bits = atoi(optarg); + break; + case 'l': + mode |= SPI_LOOP; + break; + case 'H': + mode |= SPI_CPHA; + break; + case 'O': + mode |= SPI_CPOL; + break; + case 'L': + mode |= SPI_LSB_FIRST; + break; + case 'C': + mode |= SPI_CS_HIGH; + break; + case '3': + mode |= SPI_3WIRE; + break; + case 'N': + mode |= SPI_NO_CS; + break; + case 'R': + mode |= SPI_READY; + break; + default: + print_usage(argv[0]); + break; + } + } +} + +int main(int argc, char *argv[]) +{ + int ret = 0; + int fd; + + parse_opts(argc, argv); + + fd = open(device, O_RDWR); + if (fd < 0) + pabort("can't open device"); + + /* + * spi mode + */ + ret = ioctl(fd, SPI_IOC_WR_MODE, &mode); + if (ret == -1) + pabort("can't set spi mode"); + + ret = ioctl(fd, SPI_IOC_RD_MODE, &mode); + if (ret == -1) + pabort("can't get spi mode"); + + /* + * bits per word + */ + ret = ioctl(fd, SPI_IOC_WR_BITS_PER_WORD, &bits); + if (ret == -1) + pabort("can't set bits per word"); + + ret = ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, &bits); + if (ret == -1) + pabort("can't get bits per word"); + + /* + * max speed hz + */ + ret = ioctl(fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed); + if (ret == -1) + pabort("can't set max speed hz"); + + ret = ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed); + if (ret == -1) + pabort("can't get max speed hz"); + + printf("spi mode: %d\n", mode); + printf("bits per word: %d\n", bits); + printf("max speed: %d Hz (%d KHz)\n", speed, speed/1000); + + transfer(fd); + + close(fd); + + return ret; +} diff --git a/Projects/Pathfinder/spi-test/test_me b/Projects/Pathfinder/spi-test/test_me new file mode 100755 index 00000000..cc4c2ead --- /dev/null +++ b/Projects/Pathfinder/spi-test/test_me @@ -0,0 +1,22 @@ +#!/bin/bash + +gpio write 21 1 +sleep 1 +gpio read 21 +gpio write 21 0 +sleep 1 +gpio read 21 +echo "Reset issued" +gpio write 10 0 +gpio write 10 1 +gpio write 10 0 +gpio write 10 1 +gpio write 10 0 +gpio write 10 1 +gpio write 10 0 +gpio write 10 1 +gpio write 10 0 +gpio write 10 1 +gpio write 10 0 +gpio write 10 1 +echo "Blonk Done!" diff --git a/Projects/Pathfinder/wiringpi-latest.deb b/Projects/Pathfinder/wiringpi-latest.deb new file mode 100644 index 00000000..36dbdaa2 Binary files /dev/null and b/Projects/Pathfinder/wiringpi-latest.deb differ diff --git a/Projects/argus/argus.vpj b/Projects/argus/argus.vpj index c71ae5d9..75cd011d 100644 --- a/Projects/argus/argus.vpj +++ b/Projects/argus/argus.vpj @@ -272,38 +272,49 @@ + + + + + + + + + + + + - + + + + + + + + - + + Log( "main", 0, X ) +#define LOG_ERROR( X ) m_pLog->Log( "main", 0, _LOG_ERROR, X ) + +PF_Kernel * Kernel = NULL; +//LRF_HardwareManager * HWManager = NULL; +basicLogCollection * m_pLog = NULL; +//networkServer * NetworkManager = NULL; + +void (*old_update_handler_2)(int); //SIGINT +void (*old_kill_handler_3)(int); //SIGQUIT +void (*old_kill_handler_9)(int); //SIGKILL +void (*old_alarm_handler_14)(int); //SIGALRM +void (*old_kill_handler_15)(int); //SIGTERM + + + + +void signal_SIGKILL_handler( int SIG ){ + if( Kernel!= NULL ){ + if( gSignal_Handler_Enabled ){ + m_pLog->Log("SIG", 0, _LOG_DEBUG, "Shutdown Service by Signal" ); + Kernel->setStatus( TH_ENDED ); // Closing all Connections; + } else { + m_pLog->Log("SIG", 0, _LOG_DEBUG, "Shutdown Signal Handler Disabled" ); + }; + }; +}; + +void myInterrupt4(void){ + //LOG("HW_SIGNAL_PIO4"); + Kernel->armStatusChanged(); +}; + +int main (int argc, char *argv[]){ + MySQL_Connector * DBC = NULL; + basicSettingsProvider * SETTINGS = NULL; + bool WBG; // Working Background + bool SSE; // Server Statistics Engine + bool NDC; // No Default Configuration + CSTR FLE_NAME; + CSTR DCF_NAME; + CSTR SSP_NAME; + objectFileLoggingService * FLE = NULL; + objectConsoleLoggingService * CLE = NULL; + // default init + WBG = true; + FLE_NAME = (CSTR) DEFAULT_SERVER_LOG_FILE; + SSE = true; + NDC = true; + DCF_NAME = (CSTR) DEFAULT_SERVER_CONFIG_PATH; + SSP_NAME = (CSTR) DEFAULT_SERVER_SOCKET_PATH; + gsSOFT_INFO.SW_BUILD_DATE = UNIX_TIMESTAMP; + gsSOFT_INFO.DATA_VALID = false; + m_pLog = basicLogCollection::getInstance(); + gsSOFT_INFO.SW_MODE_FLAGS = 0 +#ifdef SKIP_TARGET_LOG + | SW_INFO_NO_TARGET_LOG +#endif +#ifdef HIBERNATE_ENABLE + | SW_INFO_HIBERNATE_ENA +#endif +#ifdef TGD + | SW_INFO_TGD_MOTORS + #ifdef TGD_VERSION_2 + | SW_INFO_TGD_VER_2 + #endif +#endif +#ifdef ENCODER_8192 + | SW_INFO_EU_PROJECT +#endif +#ifdef NO_BLACK_TARGETS + | SW_INFO_NO_BLACK_TARGETS +#endif +#ifndef NO_MOTORS + | SW_INFO_MOTOR_CTRL_ENA +#endif +#ifdef THREADED_FLIP + | SW_INFO_THREAD_FLIP +#endif +#ifndef PRU_SLAVE + | SW_INFO_FLAG_MASTER +#endif +#ifdef DEBUG + | SW_INFO_DEBUG_MODE +#endif + ; + + + // Reading Config + if( argc > 1 ){ + for( int i = 0; i < argc; i++ ){ + switch( argv[i][0] ){ + case '-': + case '\\': + case '/':{ + switch( argv[i][1] ){ + case 'h': case 'H': case 'v': case 'V': case '?':{ + printf( "Dr Frucht Systems R-Goose Server\n"); + printf( "Software version <%s>\n", VERSION_NUMBER ); + printf( " -h -H This Message\n" ); + printf( " -i -I Interactive Mode\n" ); + return 0; + break; + }; + case 'i': case 'I':{ + WBG = false; + CLE = new objectConsoleLoggingService(); + if( CLE != NULL ) { + m_pLog->addHandler( CLE ); + }; + break; + }; + case 'c': case 'C':{ + DCF_NAME = (CSTR) malloc( MAX_PATH_LEN ); + if( DCF_NAME != NULL ) { + sprintf( DCF_NAME, "%s", argv[i+1] ); + } else { + printf("ERROR!\n\n"); + return -1; + }; + break; + }; + }; + break; + }; + }; + }; + }; + + FLE = new objectFileLoggingService( FLE_NAME ); + if( FLE != NULL ) { + m_pLog->addHandler( FLE ); + }; + LOG("Starting Log Engne!"); + if ( fileExist( DCF_NAME ) ){ + SETTINGS = basicSettingsProvider::getInstance(DCF_NAME); + } else { + SETTINGS = basicSettingsProvider::getInstance(); + }; + + // Demonizing or not + if( WBG ){ + printf( "Dr Frucht Systems LRF Server ver. %s\n", VERSION_NUMBER ); + printf( "Configuration Applied:\n"); + printf( " Service Established %s at %d\n", gsCFG_ADDRESS, guCFG_PORT ); + printf( " PID File: %s\n", gsCFG_PID_FILE ); + printf( " Log File: %s\n", FLE_NAME ); + printf( " License: %s\n", gsCFG_LICENSE ); + printf( " Database Server: %s Database: %s\n", gsCFG_DB_SERVER, gsCFG_DB_NAME ); + if( NDC ){ + printf( " No configuration file (%s) supplied.\n", DCF_NAME); + } else { + printf( " Configuration read from: %s\n", DCF_NAME ); + }; + + //Demonizing + pid_t pid, sid; + sync(); + close( STDIN_FILENO ); + close( STDOUT_FILENO ); + close( STDERR_FILENO ); + + pid = fork(); + if( pid < 0 ){ + return pid; + }; + if( pid > 0 ){ + return 0; + }; + //umask(0); + sid = setsid(); + if (sid < 0) { + return sid; + }; + + pid = fork(); + if( pid < 0 ){ + return pid; + }; + if( pid > 0 ){ + FILE *pPIDF = fopen( gsCFG_PID_FILE, "w+" ); + if( pPIDF ){ + fprintf( pPIDF, "%d\n", pid ); + fclose( pPIDF ); + } + return 0; + }; + }; + if( wiringPiSetup() == -1 ){ + LOG_ERROR("WiringPI Init failure!"); + char tBuffer[256]; + sprintf( tBuffer, "Error code: %d", errno ); + LOG_ERROR( tBuffer ); + return -1; + } else { +#ifdef DEBUG + LOG("WiringPI Init OK"); +#endif + //wiringPiSetupGpio(); + pinMode( 4, INPUT ); // ARM BTN + pinMode( 21, OUTPUT ); // Reset ADNS + //pinMode( 10, OUTPUT ); // NCS ADNS + //pinMode( 30, OUTPUT ); + }; + // Starting Services^ + uint8_t m_bKernelExitCode = 0; + + do{ + Kernel = new PF_Kernel(); + if( Kernel == NULL ) { + // Aborting Work + LOG_ERROR( "++++ Kernel failed to born ++++" ); + unlink( gsCFG_PID_FILE ); + LOG( "PID File Deleted" ); + delete( m_pLog ); + return -1; + }; + //Loop till some Restart action + if( Kernel != NULL ){ + LOG( "++++ Server Started ++++" ); + if ( Kernel->create() == false ){ + LOG_ERROR("Kernel create failure!"); + } else { + //Instal HW ISR Listener + if( wiringPiISR( 4, INT_EDGE_RISING, &myInterrupt4 ) == -1 ){ + LOG_ERROR("Can not setup ISR handler!"); + char tBuffer[256]; + sprintf( tBuffer, "Error code: %d", errno ); + LOG_ERROR( tBuffer ); + } else { + //Install Signal Listeners + old_kill_handler_15 = signal( 15, signal_SIGKILL_handler ); + old_kill_handler_9 = signal( 9, signal_SIGKILL_handler ); + // Waiting for Worker to Shut Down + Kernel->WaitFinish( false ); + m_bKernelExitCode = Kernel->getExitCause(); + signal( 9, old_kill_handler_9 ); + signal( 15, old_kill_handler_15 ); + }; + }; + delete( Kernel ); + LOG( "++++ Server Ended ++++" ); + }; + } while( m_bKernelExitCode > 0 ); + + //delete( NetworkManager ); + //LOG( "++++ CDC DEL ++++" ); + unlink( gsCFG_PID_FILE ); + LOG( "PID File Deleted" ); + if( FLE!= NULL ) delete( FLE ); + if( CLE!= NULL ) delete( CLE ); + delete( m_pLog ); + return(0); +} + diff --git a/lib/App/Pathfinder/PathfinderBackend.h b/lib/App/Pathfinder/PathfinderBackend.h new file mode 100644 index 00000000..576cfc90 --- /dev/null +++ b/lib/App/Pathfinder/PathfinderBackend.h @@ -0,0 +1,46 @@ +/******************************************************************* +* +* DESCRIPTION: Argus project main header file +* +* AUTHOR: Gagua +* +* HISTORY: +* +* DATE:5/29/2019 +* +*******************************************************************/ +#ifndef __ARGUS_BACKEND_MAIN_HEADER__ +#define __ARGUS_BACKEND_MAIN_HEADER__ + +/** include files **/ + +#include +#include +#include + +#include "../../components/base/basicSettings.h" +#include "../../components/base/basicLogCollection.h" +#include "../../components/base/basicMemoryOperation.h" +#include "../../components/object/objectFileLoggingService.h" +#include "../../components/object/objectConsoleLoggingService.h" +#include "Pathfinder_Kernel.h" + +/** local definitions **/ +//http://xmsecu.com:8080/ocx/NewActive.exe +/* default settings */ + +/** external functions **/ + +/** external data **/ + +/** internal functions **/ + +/** public data **/ + +/** private data **/ + +/** public functions **/ + +/** private functions **/ + +#endif diff --git a/lib/App/Pathfinder/Pathfinder_Kernel.cpp b/lib/App/Pathfinder/Pathfinder_Kernel.cpp new file mode 100644 index 00000000..62a37f19 --- /dev/null +++ b/lib/App/Pathfinder/Pathfinder_Kernel.cpp @@ -0,0 +1,736 @@ +/******************************************************************* +* +* DESCRIPTION: ARGUS Kernel source +* +* AUTHOR: gagua +* +* HISTORY: +* +* DATE:5/29/2019 +* +*******************************************************************/ +#include "Pathfinder_Kernel.h" +#include + +#define LOG( X ) m_pLog->Log( "KRNL", this, X ) +#define LOG_ERROR( X ) m_pLog->Log( "KRNL", this, _LOG_ERROR, X ) + + +PF_Kernel::PF_Kernel( config_setting_t *Settings ):basicThread(){ + m_bExitCause = 0; + m_bCreatedDBC = false; + m_pDBC = NULL; + m_pBNO = NULL; + m_pGPS = NULL; + m_pCamera = NULL; + m_pScanner = NULL; + m_tTimeTSeconds = time( NULL ); + m_bArmed = ( bool ) digitalRead ( 4 ); + m_pLog = basicLogCollection::getInstance(); + m_pSettings = basicSettingsProvider::getInstance()->getSubNode( Settings, "KERNEL" ); + m_pServiceAnnouncer = new ssdpAnnouncer( m_pSettings ); + m_pBLOG = objectPathfinderBinaryLog::getInstance(); + m_bGPSis3D = false; + m_bStartMode = PF_START_ON_ALT; + m_bHWFlags = PF_HW_NONE; +}; + + + +PF_Kernel::~PF_Kernel(){ +#ifdef DEBUG + LOG("Destructor"); +#endif + WaitFinish(true); +#ifdef DEBUG + LOG("Deleting Components"); +#endif + if( m_pGPS!= NULL ) delete( m_pGPS ); + if( m_pBNO!= NULL ) delete( m_pBNO ); + if( m_pCamera!= NULL ) delete( m_pCamera ); + if( m_pScanner!= NULL ) delete( m_pScanner ); +#ifdef DEBUG + LOG("Unregister Server DBC"); +#endif + if( m_pDBC != NULL ) { + m_pDBC->unregisterServer(); + if(m_bCreatedDBC) { + delete( m_pDBC ); + }; + }; +#ifdef DEBUG + LOG("Destructor Finished"); +#endif +}; + +#include +#include + +bool PF_Kernel::create( void ){ + char tBuffer[256]; + if( m_pSettings != NULL ) { + config_setting_t * pSetting; + int tVal; + const char * tBuf; + + + //Connect( CSTR DBName, CSTR DBHost, CSTR DBUser, CSTR DBPassword, uint16_t Port = 3300 ); + LOG("Getting Settings ..."); + + /*if( !config_setting_lookup_string( m_pSettings, ARGUS_KERNEL_TAG_SERVER_IDENTITY, &tBuf ) ){ + char * tVar; + char * tTS; + tTS = getTStr(NULL); + tVar = MD5String(tTS); + free(tTS); + sprintf( m_sIdentity, tVar ); + pSetting = config_setting_add( m_pSettings, ARGUS_KERNEL_TAG_SERVER_IDENTITY, CONFIG_TYPE_STRING ); + config_setting_set_string( pSetting, tVar ); + free( tVar ); + basicSettingsProvider::getInstance()->compromise(); + LOG("Server Identity not defined - generating new!"); + } else { + sprintf( m_sIdentity, tBuf ); + sprintf( tBuffer, "Server Identity Read From Settings: %s", tBuf ); + LOG( tBuffer ); + }; + if( !config_setting_lookup_int( m_pSettings, ARGUS_KERNEL_TAG_SITE_ID, &tVal ) ){ + tVal = m_nSiteID = 1; + pSetting = config_setting_add( m_pSettings, ARGUS_KERNEL_TAG_SITE_ID, CONFIG_TYPE_INT ); + config_setting_set_int( pSetting, tVal ); + basicSettingsProvider::getInstance()->compromise(); + LOG("Site ID not defined - using [1] as number!"); + } else { + m_nSiteID = tVal; + sprintf( tBuffer, "Site ID Read From Settings: %d", m_nSiteID ); + LOG( tBuffer ); + }; + + */ + + + +/* +#ifdef __EU_PROJECT__ + if( !config_setting_lookup_bool( m_pSettings, KNL_SETTINGS_SAFE_SHORE, &tVal ) ){ + tVal = m_bSafeShoreSupport = true; + pSetting = config_setting_add( m_pSettings, KNL_SETTINGS_SAFE_SHORE, CONFIG_TYPE_BOOL ); + config_setting_set_bool( pSetting, tVal ); + m_pSettingsProvider->compromise(); + LOG("Safe-Shore support not defined"); + } else { + m_bSafeShoreSupport = (bool)tVal; + sprintf( tBuffer, "Safe-Shore support Read From Settings: %d", tVal ); + LOG( tBuffer ); + }; +#endif + if( !config_setting_lookup_bool( m_pSettings, KNL_SETTINGS_DEFENDER, &tVal ) ){ + tVal = m_bDefenderSupport = true; + pSetting = config_setting_add( m_pSettings, KNL_SETTINGS_DEFENDER, CONFIG_TYPE_BOOL ); + config_setting_set_bool( pSetting, tVal ); + m_pSettingsProvider->compromise(); + LOG("Defender support not defined"); + } else { + m_bDefenderSupport = (bool)tVal; + sprintf( tBuffer, "Defender support Read From Settings: %d", tVal ); + LOG( tBuffer ); + }; + + if (!config_setting_lookup_int(m_pSettings, KNL_SETTINGS_DETECTOR_WIDTH, &tVal )){ + tVal = m_nWidth = 1000; + pSetting = config_setting_add(m_pSettings, KNL_SETTINGS_DETECTOR_WIDTH, CONFIG_TYPE_INT); + config_setting_set_int(pSetting, tVal ); + m_pSettingsProvider->compromise(); + LOG("No Detector Width"); + } else { + m_nWidth = tVal; + sprintf( tBuffer, "Detector Width Read From Settings: %d", tVal ); + LOG( tBuffer ); + }; + if (!config_setting_lookup_int(m_pSettings, KNL_SETTINGS_FILTER_KERNELS, &tVal )){ + tVal = m_nKernelFilter = 0x000000ff; + pSetting = config_setting_add(m_pSettings, KNL_SETTINGS_FILTER_KERNELS, CONFIG_TYPE_INT); + config_setting_set_int(pSetting, tVal ); + m_pSettingsProvider->compromise(); + LOG("No Fltered Kernels Defined - All LRF Will Work"); + } else { + m_nKernelFilter = tVal; + sprintf( tBuffer, "Filter Kernels Read From Settings: %d", tVal ); + LOG( tBuffer ); + }; + if (!config_setting_lookup_int(m_pSettings, KNL_SETTINGS_DETECTOR_SST, &tVal )){ + tVal = m_nSST = 0; + pSetting = config_setting_add(m_pSettings, KNL_SETTINGS_DETECTOR_SST, CONFIG_TYPE_INT); + config_setting_set_int(pSetting, tVal ); + m_pSettingsProvider->compromise(); + LOG("No Detector SST"); + } else { + m_nSST = tVal; + sprintf( tBuffer, "Detector SST Read From Settings: %d", tVal ); + LOG( tBuffer ); + }; + if( m_pSettingsProvider->isCompromised() ) { + LOG("Save Settings"); + m_pSettingsProvider->validate(); + }; +*/ + } else { + LOG_ERROR("Failed Read Config Settings!"); + return false; + }; + m_bCreatedDBC = false; + if( m_pDBC == NULL ) { + LOG("Explicitly Create DBC Object"); + m_bCreatedDBC = true; + m_pDBC = new PATHFINDER_DBC( m_pSettings ); + if( m_pDBC == NULL ){ + LOG_ERROR("DBC Object Creation Failure!"); + return false; + }; + if( !m_pDBC->connect() ){ + LOG_ERROR("DBC Connection Failure!"); + SLEEP(5000); + //ToDO: Set Restart Kernel! + return false; + }; + }; + + //char tBuffer[CTEXT]; + struct ifaddrs * ifaddr = NULL; + struct ifaddrs * ifa; + + /* Add Network Interfaces */ + if( -1 == getifaddrs(&ifaddr)) { + LOG_ERROR("Cannot get Net Integfaces!"); + m_pDBC->registerServer( "--NA--" ); + } else { + bool regs = false; + for( ifa = ifaddr; ifa; ifa = ifa->ifa_next ) { + if (ifa->ifa_addr->sa_family != AF_INET) continue; + char ip[16]; + struct sockaddr_in *inn; + unsigned char A,B,C,D; + inn = (struct sockaddr_in *)ifa->ifa_addr; + D = ( inn->sin_addr.s_addr >> 24) & 0xFF; + C = ( inn->sin_addr.s_addr >> 16) & 0xFF; + B = ( inn->sin_addr.s_addr >> 8) & 0xFF; + A = ( inn->sin_addr.s_addr >> 0) & 0xFF; + sprintf( ip, "%d.%d.%d.%d", A, B, C, D ); + sprintf( tBuffer, "Network Interface: %s [%s]", ifa->ifa_name, ip ); + if( strncmp( ifa->ifa_name,"eth", 3) == 0 ) { + regs = true; + m_pDBC->registerServer( ip ); + }; + LOG(tBuffer); + //m_pDBC->addNodeSocket( m_nServerNodeID, ARGUS_NODE_SOCK_TYPE_NETWORK, ifa->ifa_name, ip ); + }; + if(!regs) { + LOG_ERROR("Ethernet IP address Not Defined!"); + m_pDBC->registerServer( "--NA--" ); + }; + freeifaddrs( ifaddr ); + }; +#ifdef DEBUG + LOG( "Settings Read Done" ); +#endif + m_pDBC->clenupCommandQueue(); + m_pDBC->setArmMode( m_bArmed ); + m_pBLOG->attachDBC( m_pDBC ); +#ifdef DEBUG + LOG("Init Optic Flow"); +#endif + m_pFlow = new opticFlow( m_pSettings, m_pDBC ); + if( m_pFlow != NULL ) { + if( !m_pFlow->create() ){ + LOG_ERROR("FLOW Creation failure!"); + } else { + m_bHWFlags |= PF_HW_OPF; + }; + } else { + LOG_ERROR("FLOW Construction failure!"); + }; + +#ifdef DEBUG + LOG("Init IMU"); +#endif + m_pBNO = new sensorBNO( m_pSettings, m_pDBC ); + if( m_pBNO != NULL ) { + if( !m_pBNO->create() ){ + LOG_ERROR("BNO Creation failure!"); + } else { + m_bHWFlags |= PF_HW_BNO; + }; + } else { + LOG_ERROR("BNO Construction failure!"); + }; + +#ifdef DEBUG + LOG("Init GPS"); +#endif + m_pGPS = new sensorXA1110( m_pSettings, m_pDBC ); + if( m_pGPS != NULL ) { + if( !m_pGPS->create() ){ + LOG_ERROR("GPS Creation failure!"); + } else { + m_bHWFlags |= PF_HW_GPS; + }; + }; + +#ifdef DEBUG + LOG( "Start SSDP Beacon" ); +#endif + if( m_pServiceAnnouncer != NULL ) { + if( !m_pServiceAnnouncer->init() ){ + delete(m_pServiceAnnouncer); + m_pServiceAnnouncer = NULL; + }; + }; + +#ifdef DEBUG + LOG("Init Camera"); +#endif + m_pCamera = new gPhotoCamera( m_pSettings, m_pDBC ); + if( m_pCamera != NULL ) { + if( !m_pCamera->create() ){ + LOG_ERROR("Photo Creation failure!"); + } else { + m_bHWFlags |= PF_HW_PHO; + }; + }; +#ifdef DEBUG + LOG("Init LRF Scanner"); +#endif + m_pScanner = new LRF_techScanner( m_pSettings, m_pDBC ); + if( m_pScanner != NULL ) { + if( !m_pScanner->create() ){ + LOG_ERROR( "Error Create LRF Scanner!" ); + } else { + m_bHWFlags |= PF_HW_LRF; + }; + }; + + m_pDBC->updateHW_STATUS( m_bHWFlags ); + + + if( ( m_bHWFlags & PF_HW_LRF ) == PF_HW_LRF ) { + uint8_t tStartModeLRF; + if( m_pDBC->getStartModeLRF( &tStartModeLRF )) { + if ( tStartModeLRF == PF_START_ON_PWR ) { + m_pScanner->startScan(); + }; + if( tStartModeLRF == PF_START_ON_ARM ) { + if( m_bArmed ) m_pScanner->startScan(); + }; + }; + }; + +#ifdef DEBUG + LOG( "Kernel Trhead is about to be Created" ); +#endif + if( init() == false ){ + LOG_ERROR("Error in starting Kernel Thread!"); + return false; + }; +#ifdef DEBUG + LOG( "Kernel Thread Created" ); +#endif + +#ifdef DEBUG + //sprintf( tBuffer, "Server is registered as id[%d]", m_nServerID ); + //LOG( tBuffer ); +#endif + return true; +}; + +void PF_Kernel::WaitFinish( bool Force ){ + if( Force ){ +#ifdef DEBUG + LOG( "Thread End Forced" ); +#endif + } else { + // 3 seconds sleep to settle down processes + SLEEP(3000); + }; + waitThreadEnd( Force ); +#ifdef DEBUG + LOG( "Thread is Detached" ); +#endif +}; + +/* Main Kernel Thread Procedure */ +void PF_Kernel::m_fThreadProc( void ){ + char Buffer[CTEXT]; + time_t tTimeTSeconds; + int lastTSS = 0; + int lastTMS = 0; + DB_COMMAND * tCMD; + char pidBuf[16]; + + pid_t pid = gettid(); + + sprintf(pidBuf,"pid:%d", pid); + LOG(pidBuf); + m_bThreadStatus = TH_WORKING; + while( m_bThreadStatus < TH_ENDED ){ + + m_tTimeTSeconds = time( NULL ); + + // Command Processing Loop + tCMD = m_pDBC->fetchCommand(); + if( tCMD != NULL ){ + switch( tCMD->cmd ) { + case PF_CMD_START_SCANER:{ + LOG("KK - Start Scanner"); + if( m_pScanner!= NULL ) { + m_pScanner->startScan(); + }; + break; + }; + case PF_CMD_RESET_SCANER:{ + LOG("KK - Reset Scanner"); + if( m_pScanner!= NULL ) { + m_pScanner->resetDevice(); + }; + break; + }; + case PF_CMD_STOP_SCANER:{ + LOG("KK - Stop Scanner"); + if( m_pScanner!= NULL ) { + m_pScanner->stopScan(); + }; + break; + }; + case PF_CMD_SHOT_CAMERA:{ + LOG("KK - Shot"); + if( m_pCamera!= NULL ) { + m_pCamera->makeShot(); + }; + break; + }; + case PF_CMD_START_BURST_CAMERA:{ + LOG("KK - Burst Start"); + if( m_pCamera!= NULL ) { + m_pCamera->startBurst(); + }; + break; + }; + case PF_CMD_STOP_BURST_CAMERA:{ + LOG("KK - Burst Stop"); + if( m_pCamera!= NULL ) { + m_pCamera->stopBurst(); + }; + break; + }; + case PF_CMD_SWITCH_CAMERA:{ + LOG("KK - Switch Camera"); + if( m_pCamera!= NULL ) { + m_pCamera->switchToCamera(); + }; + break; + }; + case PF_CMD_SWITCH_STORAGE:{ + LOG("KK - Switch Storage"); + if( m_pCamera!= NULL ) { + m_pCamera->switchToStorage(); + + }; + break; + }; + case PF_CMD_PREV_CAMERA:{ + LOG("KK - Switch Preview"); + if( m_pCamera!= NULL ) { + m_pCamera->startPreview(); + + }; + break; + }; + case PF_CMD_UPDATE_IMU:{ + LOG("KK - Update IMU"); + if( m_pBNO!= NULL ) { + if( !m_pBNO->updateSettings() ) LOG_ERROR("Failure IMU Settings Update"); + }; + break; + }; + case PF_CMD_START_PROCESS:{ + LOG("KK - Start Log"); + startDataAsqusition(); + break; + }; + case PF_CMD_STOP_PROCESS:{ + LOG("KK - Stop Log"); + stopDataAsqusition(); + break; + }; + case PF_CMD_SET_CURRENT_ALT:{ + if( m_pGPS ) { + m_fGSAlt = m_pGPS->getCurrentAlt(); + if( m_pDBC != NULL ) { + m_pDBC->updateGS_ALT( m_fGSAlt ); + }; + }; + break; + }; + case PF_CMD_OFSENSOR_SET_CAM:{ + LOG("KK - Set OF Cam"); + if( m_pFlow ) { + m_pFlow->setMode( OF_WM_PICTURES ); + }; + break; + }; + case PF_CMD_OFSENSOR_SET_OF:{ + LOG("KK - Set OF OF"); + if( m_pFlow ) { + m_pFlow->setMode( OF_WM_MOVEMENT ); + }; + break; + }; + case PF_CMD_DELETE_CAM_PHOTOS:{ + LOG("KK - Delete Photos"); + if( m_pCamera ) { + m_pCamera->deleteAllPictures(); + }; + break; + }; + }; + m_pDBC->finishCommand( tCMD->id ); + free( tCMD ); + tCMD = NULL; + }; + + if( m_tTimeTSeconds != tTimeTSeconds ){ // Each Second Process + tTimeTSeconds = m_tTimeTSeconds; + if( m_bHWFlags != PF_HW_ALL ) { + if( ( m_bHWFlags & PF_HW_GPS ) != PF_HW_GPS ) { + if( m_pGPS ) { + delete( m_pGPS ); + m_pGPS = NULL; + }; + m_pGPS = new sensorXA1110( m_pSettings, m_pDBC ); + if( m_pGPS != NULL ) { + if( !m_pGPS->create() ){ + LOG_ERROR("GPS ReCreation failure!"); + } else { + m_bHWFlags |= PF_HW_GPS; + m_pDBC->updateHW_STATUS( m_bHWFlags ); + }; + } else { + LOG_ERROR("GPS ReConstruction failure!"); + }; + }; + if( ( m_bHWFlags & PF_HW_BNO ) != PF_HW_BNO ) { + if( m_pBNO ) { + delete( m_pBNO ); + m_pBNO = NULL; + }; + m_pBNO = new sensorBNO( m_pSettings, m_pDBC ); + if( m_pBNO != NULL ) { + if( !m_pBNO->create() ){ + LOG_ERROR("BNO ReCreation failure!"); + } else { + m_bHWFlags |= PF_HW_BNO; + m_pDBC->updateHW_STATUS( m_bHWFlags ); + }; + } else { + LOG_ERROR("BNO ReConstruction failure!"); + }; + }; + if( ( m_bHWFlags & PF_HW_OPF ) != PF_HW_OPF ) { + if( m_pFlow ) { + delete( m_pFlow ); + m_pFlow = NULL; + }; + m_pFlow = new opticFlow( m_pSettings, m_pDBC ); + if( m_pFlow != NULL ) { + if( !m_pFlow->create() ){ + LOG_ERROR("FLOW ReCreation failure!"); + } else { + m_bHWFlags |= PF_HW_OPF; + m_pDBC->updateHW_STATUS( m_bHWFlags ); + }; + } else { + LOG_ERROR("FLOW ReConstruction failure!"); + }; + }; + if( ( m_bHWFlags & PF_HW_LRF ) != PF_HW_LRF ) { + if( m_pScanner ) { + delete( m_pScanner ); + m_pScanner = NULL; + }; + m_pScanner = new LRF_techScanner( m_pSettings, m_pDBC ); + if( m_pScanner != NULL ) { + if( !m_pScanner->create() ){ + LOG_ERROR( "Error ReCreate LRF Scanner!" ); + } else { + m_bHWFlags |= PF_HW_LRF; + m_pDBC->updateHW_STATUS( m_bHWFlags ); + }; + } else { + LOG_ERROR("LRF ReConstruction failure!"); + }; + }; + } else { + if( m_pGPS->isDead() ) { + m_bHWFlags &= ~PF_HW_GPS; + delete( m_pGPS ); + m_pGPS = NULL; + m_pDBC->updateHW_STATUS( m_bHWFlags ); + }; + if( m_pBNO->isDead() ) { + m_bHWFlags &= ~PF_HW_BNO; + delete( m_pBNO ); + m_pBNO = NULL; + m_pDBC->updateHW_STATUS( m_bHWFlags ); + }; + if( m_pFlow->isDead() ) { + m_bHWFlags &= ~PF_HW_OPF; + delete( m_pFlow ); + m_pFlow = NULL; + m_pDBC->updateHW_STATUS( m_bHWFlags ); + }; + if( m_pScanner->isDead() ) { + m_bHWFlags &= ~PF_HW_LRF; + delete( m_pScanner ); + m_pScanner = NULL; + m_pDBC->updateHW_STATUS( m_bHWFlags ); + }; + }; + if( !m_bGPSis3D ) { + if( m_pGPS != NULL ) { + if( m_pGPS->getCurrentFixType() == PF_GPS_FIX_3D ) { + m_bGPSis3D = true; + m_fGSAlt = m_pGPS->getCurrentAlt(); + if( m_pDBC != NULL ) { + m_pDBC->updateGS_ALT( m_fGSAlt ); + }; + }; + }; + }; + if( !m_bActive ) { + // Entering Active Mode + switch( m_bStartMode ){ + case PF_START_ON_ALT:{ + float tAlt; + if( !m_bArmed ) break; + if( !m_bGPSis3D ) break; + if( m_pBLOG == NULL ) break; + tAlt = m_pGPS->getCurrentAlt(); + if( tAlt > m_fGSAlt ) { + // Start Scan + if( m_pFlow != NULL ) { + m_pFlow->setMode( OF_WM_MOVEMENT ); + }; + m_pBLOG->activate(); + }; + break; + }; + case PF_START_ON_ARM:{ + if( !m_bArmed ) break; + if( m_pBLOG == NULL ) break; + // Start Scan + if( m_pFlow != NULL ) { + m_pFlow->setMode( OF_WM_MOVEMENT ); + }; + m_pBLOG->activate(); + break; + }; + }; + } else { + // Exit Active Mode + switch( m_bStartMode ){ + case PF_START_ON_ALT:{ + float tAlt; + if( !m_bArmed || !m_bGPSis3D ){ + // Stop Scan + m_pBLOG->finish(); + } else { + tAlt = m_pGPS->getCurrentAlt(); + if( tAlt < ( m_fGSAlt / 2.f ) ) { + // Stop Scan + m_pBLOG->finish(); + }; + } + break; + }; + case PF_START_ON_ARM:{ + if( m_bArmed ) break; + // Stop Scan + m_pBLOG->finish(); + break; + }; + }; + }; + }; + SLEEP( SLEEP_KERNEL_INTERVAL ); + }; +}; + +bool PF_Kernel::setStatus( int A ){ + m_bThreadStatus = (thredStatus)A; + return true; +}; + +bool PF_Kernel::signalEvent( void ){ + //if( m_pDBC->getLastEvents( m_vEvtRecords, 0,0 ) ){ + + + + //}; + return true; +}; +void PF_Kernel::armStatusChanged( void ){ + int tPinVal = digitalRead ( 4 ); + if( tPinVal == 1 && !m_bArmed ) { + LOG("!!!!!!!ARMED!!!!!!!"); + m_bArmed = true; + } else { + if( tPinVal == 0 && m_bArmed ) { + LOG("!!!!!DISARMED!!!!!!"); + m_bArmed = false; + }; + }; + if( m_pDBC == NULL ) return; + m_pDBC->setArmMode( m_bArmed ); + if( ( m_bHWFlags & PF_HW_LRF ) == PF_HW_LRF ) { + uint8_t tStartModeLRF; + if( m_pDBC->getStartModeLRF( &tStartModeLRF )) { + if( tStartModeLRF == PF_START_ON_ARM ) { + if( m_bArmed ) { + m_pScanner->startScan(); + } else { + m_pScanner->stopScan(); + }; + }; + }; + }; +}; + +void PF_Kernel::startDataAsqusition( void ){ + if( m_pDBC == NULL ) return; + if( m_pBLOG == NULL ) return; + if( m_pBLOG->activate() ) { + m_pDBC->setAsqusitionMode( 1 ); + if( m_pCamera!= NULL ) { + m_pCamera->switchToCamera(); + m_pCamera->startBurst(); + }; + if( m_pFlow!= NULL ) { + m_pFlow->setMode( OF_WM_MOVEMENT ); + }; + if( m_pScanner != NULL ) { + //m_pScanner->startScan(); + }; + }; +}; + +void PF_Kernel::stopDataAsqusition( void ){ + if( m_pDBC == NULL ) return; + if( m_pBLOG == NULL ) return; + if( m_pBLOG->finish() ) { + m_pCamera->stopBurst(); + m_pDBC->setAsqusitionMode( 0 ); + }; +}; + +#undef LOG +#undef LOG_ERROR + diff --git a/lib/App/Pathfinder/Pathfinder_Kernel.h b/lib/App/Pathfinder/Pathfinder_Kernel.h new file mode 100644 index 00000000..44b6ec11 --- /dev/null +++ b/lib/App/Pathfinder/Pathfinder_Kernel.h @@ -0,0 +1,155 @@ +/******************************************************************* +* +* DESCRIPTION: Pathfinder Kernel Header File +* +* AUTHOR: gagua +* +* HISTORY: +* +* DATE:1/20/2020 +* +*******************************************************************/ +#ifndef __ARGUS_KERNEL_HEADER__ +#define __ARGUS_KERNEL_HEADER__ + +#include +#include + +#include +#include +#include +#include + +#include /* getopt_long() */ + +#include /* low-level i/o */ +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +struct serial_struct { + int type; + int line; + unsigned int port; + int irq; + int flags; + int xmit_fifo_size; + int custom_divisor; + int baud_base; + unsigned short close_delay; + char io_type; + char reserved_char[1]; + int hub6; + unsigned short closing_wait; /* time to wait before closing */ + unsigned short closing_wait2; /* no longer used... */ + unsigned char * iomem_base; + unsigned short iomem_reg_shift; + unsigned int port_high; + unsigned long iomap_base; /* cookie passed into ioremap */ +}; + +#include "../../alg/generic/md5.h" +#include "../../components/base/basicThread.h" +#include "../../components/base/basicEngine.h" +#include "../../components/base/basicSettingsProvider.h" +#include "../../components/object/objectPathfinderBinaryLog.h" +#include "../../data/ponvif/ponvif.h" +#include "../../data/protocol/onvifMediaObserver.h" +#include "../../data/ssdp/ssdpAnnouncer.h" +#include "../../components/base/basicEventHeap.h" +#include "../../data/net/netServer.h" +#include "../../pathfinder/pathfinderDBConnector.h" +#include "../../hardware/sensors/9dof/BNO055.h" +#include "../../hardware/sensors/gps/XA1110_I2C.h" +#include "../../hardware/sensors/gphoto/gPhotoCamera.h" +#include "../../hardware/sensors/optic_flow/adns3080/opticFlowADNS.h" +#include "../../hardware/sensors/lrf/lrfScanner.h" +#include + + +#define SLEEP_KERNEL_INTERVAL 10 +#define ONVIF_DISCOVERY_INTERVAL 300 // 5 min +#define ONVIF_DISCOVERY_RESULT_TIME 5 + +typedef enum E_PF_COMMANDS{ + PF_CMD_ARM_APPLICATION = 1, + PF_CMD_DISARM_APPLICATION = 2, + PF_CMD_OFSENSOR_SET_CAM = 3, + PF_CMD_OFSENSOR_SET_OF = 4, + PF_CMD_START_SCANER = 10, + PF_CMD_RESET_SCANER = 13, + PF_CMD_STOP_SCANER = 15, + PF_CMD_SHOT_CAMERA = 22, + PF_CMD_START_BURST_CAMERA = 23, + PF_CMD_STOP_BURST_CAMERA = 24, + PF_CMD_SWITCH_CAMERA = 25, + PF_CMD_SWITCH_STORAGE = 26, + PF_CMD_PREV_CAMERA = 27, + PF_CMD_UPDATE_IMU = 28, + PF_CMD_START_PROCESS = 29, + PF_CMD_STOP_PROCESS = 30, + PF_CMD_SET_CURRENT_ALT = 31, + PF_CMD_DELETE_CAM_PHOTOS = 32 +} PF_COMMANDS; + + +#define PF_HW_NONE 0 +#define PF_HW_GPS 1 +#define PF_HW_BNO 2 +#define PF_HW_OPF 4 +#define PF_HW_LRF 8 +#define PF_HW_PHO 16 +#define PF_HW_ALL 31 + +class PF_Kernel: public basicThread { + private: + time_t m_tTimeTSeconds; + basicLogCollection * m_pLog; + + config_setting_t * m_pSettings; + ssdpAnnouncer * m_pServiceAnnouncer; + uint8_t m_bExitCause; + bool m_bCreatedDBC; + uint8_t m_bStartMode; + uint8_t m_bHWFlags; + float m_fStartAlt; + float m_fGSAlt; + bool m_bGPSis3D; + bool m_bActive; + PATHFINDER_DBC * m_pDBC; + objectPathfinderBinaryLog * m_pBLOG; + + /* Sensors and Devices */ + sensorBNO * m_pBNO; + sensorXA1110 * m_pGPS; + LRF_techScanner * m_pScanner; + gPhotoCamera * m_pCamera; + opticFlow * m_pFlow; + /* Flags */ + bool m_bArmed; + protected: + void m_fThreadProc( void ); + void startDataAsqusition( void ); + void stopDataAsqusition( void ); + public: + // Constructor + explicit PF_Kernel( config_setting_t *Settings = NULL ); + // Destructor + virtual ~PF_Kernel(); + bool create( void ); + bool signalEvent( void ); + void WaitFinish( bool Force = false ); + bool setStatus( int ); + uint8_t getExitCause( void ){ return m_bExitCause;}; + void armStatusChanged(void); +}; + + +#endif diff --git a/lib/App/argus/RGoose_Kernel.cpp b/lib/App/argus/RGoose_Kernel.cpp index 5be94bb5..a344915c 100644 --- a/lib/App/argus/RGoose_Kernel.cpp +++ b/lib/App/argus/RGoose_Kernel.cpp @@ -31,6 +31,7 @@ ARGUS_Kernel::ARGUS_Kernel( config_setting_t *Settings ):basicThread(){ basicSettingsProvider::getInstance()->validate(); }; m_pNodeFactory = argusNodeFactory::getInstance(); + m_pModuleFactory = argusModuleFactory::getInstance(); }; ARGUS_Kernel::~ARGUS_Kernel(){ @@ -186,7 +187,9 @@ bool ARGUS_Kernel::create( void ){ m_pNodeFactory->setDBC( m_pDBC ); m_pNodeFactory->loadNodes( m_nSiteID ); - //m_pDBC->getIPCamRecords( m_vCamRecords ); + + m_pModuleFactory->setDBC( m_pDBC ); //m_pDBC->getIPCamRecords( m_vCamRecords ); + m_pModuleFactory->loadModules( m_nSiteID ); #ifdef DEBUG LOG( "Start SSDP Beacon" ); @@ -198,7 +201,7 @@ bool ARGUS_Kernel::create( void ){ m_pServiceAnnouncer = NULL; }; }; - +/* #ifdef DEBUG LOG("Init IP Cameras"); #endif @@ -220,7 +223,9 @@ bool ARGUS_Kernel::create( void ){ }; }; }; - }; + }; + */ + #ifdef DEBUG LOG("Start OnVIF Discovery"); #endif @@ -239,6 +244,7 @@ bool ARGUS_Kernel::create( void ){ #ifdef DEBUG LOG( "Kernel Thread Created" ); #endif +/* m_pServletWS = new servletWS(); if( m_pServletWS != NULL ) { LOG("ServletWS Created"); @@ -251,6 +257,7 @@ bool ARGUS_Kernel::create( void ){ //}; }; }; + */ #ifdef DEBUG sprintf( tBuffer, "Server is registered as id[%d]", m_nServerID ); LOG( tBuffer ); @@ -472,6 +479,7 @@ void ARGUS_Kernel::m_fThreadProc( void ){ m_tTimeTSeconds = time( NULL ); // Network IP OnVif Discovery +//* if( m_pOnvifMediaObserver!= NULL ){ if( !m_bDiscoveryStarted ) { if((m_tTimeTSeconds%ONVIF_DISCOVERY_INTERVAL)==0){ @@ -491,7 +499,8 @@ void ARGUS_Kernel::m_fThreadProc( void ){ }; }; }; - +//*/ +//* // Event Processing Loop if( !m_pDBC->getLastEvents( m_vEvtRecords, lastTSS, lastTMS ) ){ // Error In DB Access @@ -503,10 +512,15 @@ void ARGUS_Kernel::m_fThreadProc( void ){ if( m_vEvtRecords.size() > 0 ){ validateEvents( lastTSS, lastTMS ); }; - +//*/ if( m_tTimeTSeconds != tTimeTSeconds ){ // Each Second Process tTimeTSeconds = m_tTimeTSeconds; - + if( m_pModuleFactory != NULL ) { + m_pModuleFactory->validate(); + }; + //if( m_pNodeFactory != NULL ) { + //m_pNodeFactory->validate(); + //}; }; SLEEP( SLEEP_KERNEL_INTERVAL ); }; @@ -574,14 +588,43 @@ void ARGUS_Kernel::validateEvents( int &lastTSS, int &lastTMS ){ bool ARGUS_Kernel::setStatus( int A ){ m_bThreadStatus = (thredStatus)A; + return true; }; bool ARGUS_Kernel::signalEvent( void ){ if( m_pDBC->getLastEvents( m_vEvtRecords, 0,0 ) ){ + + + }; return true; }; +int ARGUS_Kernel::getNetNodes( ARGUS_NODE_TYPE type, argusNetNode **&RA ){ + RA = NULL; + int cnt = 0; + if( m_pNodeFactory != NULL ){ + cnt = m_pNodeFactory->getNodeCount( type ); + if( cnt ) { + RA = (argusNetNode **) calloc( cnt, sizeof( argusNetNode * ) ); + m_pNodeFactory->fetchNodes(type, RA ); + }; + }; + return cnt; +}; + +argusNetNode *ARGUS_Kernel::getNetNode( int id ){ + return NULL; +}; + +int ARGUS_Kernel::getModules( ARGUS_MODULE_TYPE type, argusKernelModule **&RA ){ + return 0; +}; + +argusKernelModule *ARGUS_Kernel::getModule( int id ){ + return NULL; +}; + #undef LOG #undef LOG_ERROR diff --git a/lib/App/argus/RGoose_Kernel.h b/lib/App/argus/RGoose_Kernel.h index f8b9a7ad..8bb7c434 100644 --- a/lib/App/argus/RGoose_Kernel.h +++ b/lib/App/argus/RGoose_Kernel.h @@ -55,7 +55,6 @@ struct serial_struct { unsigned long iomap_base; /* cookie passed into ioremap */ }; - #include "../../alg/generic/md5.h" #include "../../components/base/basicThread.h" #include "../../components/base/basicEngine.h" @@ -67,6 +66,7 @@ struct serial_struct { #include "../../rgoose/rgooseDBConnector.h" #include "../../rgoose/rgooseIPCamera.h" #include "../../rgoose/rgooseNodeFactory.h" +#include "../../rgoose/rgooseModuleFactory.h" #include "../../data/net/netServer.h" #include "../../data/servletWS/servletWS.h" @@ -78,8 +78,11 @@ struct serial_struct { #define ARGUS_KERNEL_TAG_SERVER_IDENTITY "IDENTITY" #define ARGUS_NODE_SOCK_TYPE_SERIAL_PORT 1 -#define ARGUS_NODE_SOCK_TYPE_VIDEO_GRABBER 2 -#define ARGUS_NODE_SOCK_TYPE_NETWORK 3 +#define ARGUS_NODE_SOCK_TYPE_NETWORK 2 +#define ARGUS_NODE_SOCK_TYPE_DC 3 +#define ARGUS_NODE_SOCK_TYPE_VIDEO_GRABBER 4 +#define ARGUS_NODE_SOCK_TYPE_AUDIO_GRABBER 5 +#define ARGUS_NODE_SOCK_TYPE_VIDEO_DIGITAL 6 class ARGUS_Kernel: public basicThread { private: @@ -101,7 +104,8 @@ class ARGUS_Kernel: public basicThread { vectorCamRecords m_vCamRecords; vectorEventRecords m_vEvtRecords; argusNodeFactory * m_pNodeFactory; - servletWS * m_pServletWS; + argusModuleFactory * m_pModuleFactory; + //servletWS * m_pServletWS; int isCameraListed( CSTR uid ); void validateCameras( void ); void validateEvents( int &lastTSS, int &lastTMS ); @@ -118,6 +122,10 @@ class ARGUS_Kernel: public basicThread { void WaitFinish( bool Force = false ); bool setStatus( int ); uint8_t getExitCause( void ){ return m_bExitCause;}; + int getNetNodes( ARGUS_NODE_TYPE type, argusNetNode **&RA ); + argusNetNode * getNetNode( int id ); + int getModules( ARGUS_MODULE_TYPE type, argusKernelModule **&RA ); + argusKernelModule * getModule( int id ); }; diff --git a/lib/alg/generic/heapDebug.cpp b/lib/alg/generic/heapDebug.cpp new file mode 100644 index 00000000..183f720b --- /dev/null +++ b/lib/alg/generic/heapDebug.cpp @@ -0,0 +1,95 @@ +#include "heapDebug.h" + +#ifndef DEBUG + size_t getPeakRSS( ){ return 0; }; + size_t getCurrentRSS( ){ return 0; }; +#else + /** + * Returns the peak (maximum so far) resident set size (physical + * memory use) measured in bytes, or zero if the value cannot be + * determined on this OS. + */ + size_t getPeakRSS( ) + { + #if defined(_WIN32) + /* Windows -------------------------------------------------- */ + PROCESS_MEMORY_COUNTERS info; + GetProcessMemoryInfo( GetCurrentProcess( ), &info, sizeof(info) ); + return (size_t)info.PeakWorkingSetSize; + + #elif (defined(_AIX) || defined(__TOS__AIX__)) || (defined(__sun__) || defined(__sun) || defined(sun) && (defined(__SVR4) || defined(__svr4__))) + /* AIX and Solaris ------------------------------------------ */ + struct psinfo psinfo; + int fd = -1; + if ( (fd = open( "/proc/self/psinfo", O_RDONLY )) == -1 ) + return (size_t)0L; /* Can't open? */ + if ( read( fd, &psinfo, sizeof(psinfo) ) != sizeof(psinfo) ) + { + close( fd ); + return (size_t)0L; /* Can't read? */ + } + close( fd ); + return (size_t)(psinfo.pr_rssize * 1024L); + + #elif defined(__unix__) || defined(__unix) || defined(unix) || (defined(__APPLE__) && defined(__MACH__)) + /* BSD, Linux, and OSX -------------------------------------- */ + struct rusage rusage; + getrusage( RUSAGE_SELF, &rusage ); + #if defined(__APPLE__) && defined(__MACH__) + return (size_t)rusage.ru_maxrss; + #else + return (size_t)(rusage.ru_maxrss * 1024L); + #endif + + #else + /* Unknown OS ----------------------------------------------- */ + return (size_t)0L; /* Unsupported. */ + #endif + } + + + + + + /** + * Returns the current resident set size (physical memory use) measured + * in bytes, or zero if the value cannot be determined on this OS. + */ + size_t getCurrentRSS( ) + { + #if defined(_WIN32) + /* Windows -------------------------------------------------- */ + PROCESS_MEMORY_COUNTERS info; + GetProcessMemoryInfo( GetCurrentProcess( ), &info, sizeof(info) ); + return (size_t)info.WorkingSetSize; + + #elif defined(__APPLE__) && defined(__MACH__) + /* OSX ------------------------------------------------------ */ + struct mach_task_basic_info info; + mach_msg_type_number_t infoCount = MACH_TASK_BASIC_INFO_COUNT; + if ( task_info( mach_task_self( ), MACH_TASK_BASIC_INFO, + (task_info_t)&info, &infoCount ) != KERN_SUCCESS ) + return (size_t)0L; /* Can't access? */ + return (size_t)info.resident_size; + + #elif defined(__linux__) || defined(__linux) || defined(linux) || defined(__gnu_linux__) + /* Linux ---------------------------------------------------- */ + long rss = 0L; + FILE* fp = NULL; + if ( (fp = fopen( "/proc/self/statm", "r" )) == NULL ) + return (size_t)0L; /* Can't open? */ + if ( fscanf( fp, "%*s%ld", &rss ) != 1 ) + { + fclose( fp ); + return (size_t)0L; /* Can't read? */ + } + fclose( fp ); + return (size_t)rss * (size_t)sysconf( _SC_PAGESIZE); + + #else + /* AIX, BSD, Solaris, and Unknown OS ------------------------ */ + return (size_t)0L; /* Unsupported. */ + #endif + } + +#endif // DEBUG \ No newline at end of file diff --git a/lib/alg/generic/heapDebug.h b/lib/alg/generic/heapDebug.h new file mode 100644 index 00000000..583752d0 --- /dev/null +++ b/lib/alg/generic/heapDebug.h @@ -0,0 +1,45 @@ +/* + * Author: David Robert Nadeau + * Site: http://NadeauSoftware.com/ + * License: Creative Commons Attribution 3.0 Unported License + * http://creativecommons.org/licenses/by/3.0/deed.en_US + */ +#ifndef DEBUG + #include + size_t getPeakRSS( ); + size_t getCurrentRSS( ); +#else + #if defined(_WIN32) + #include + #include + + #elif defined( __linux__ )|| defined(__unix__) || defined(__unix) || defined(unix) || (defined(__APPLE__) && defined(__MACH__)) + #include + #include + #if defined(__APPLE__) && defined(__MACH__) + #include + #elif (defined(_AIX) || defined(__TOS__AIX__)) || (defined(__sun__) || defined(__sun) || defined(sun) && (defined(__SVR4) || defined(__svr4__))) + #include + #include + #elif defined(__linux__) || defined(__linux) || defined(linux) || defined(__gnu_linux__) + #include + #include + #endif + #else + #error "Cannot define getPeakRSS( ) or getCurrentRSS( ) for an unknown OS." + #endif + + /** + * Returns the peak (maximum so far) resident set size (physical + * memory use) measured in bytes, or zero if the value cannot be + * determined on this OS. + */ + size_t getPeakRSS( ); + + /** + * Returns the current resident set size (physical memory use) measured + * in bytes, or zero if the value cannot be determined on this OS. + */ + size_t getCurrentRSS( ); + +#endif // DEBUG \ No newline at end of file diff --git a/lib/components/base/basicFunctionality.cpp b/lib/components/base/basicFunctionality.cpp index cb0da060..36d07391 100644 --- a/lib/components/base/basicFunctionality.cpp +++ b/lib/components/base/basicFunctionality.cpp @@ -191,6 +191,7 @@ CSTR getTStr( CSTR Fmt ){ }; #ifdef __linux__ + long long getMilliseconds( void ){ long long tMilliseconds; struct timeval tData; diff --git a/lib/components/base/basicFunctionality.h b/lib/components/base/basicFunctionality.h index a69e1885..ac18dc5a 100644 --- a/lib/components/base/basicFunctionality.h +++ b/lib/components/base/basicFunctionality.h @@ -24,16 +24,42 @@ #endif -bool fileExist( const char *strFilename ); -CSTR trim( CSTR string ); -uint8_t checksum8( uint8_t *Buffer, size_t BufferSize ); -uint16_t checksum16( uint8_t *Buffer, size_t BufferSize ); -uint8_t checksumLGS( uint8_t *Buffer, size_t BufferSize ); -CArray *explode( char Delim, CSTR S_Str ); -CSTR implode( CArray *Data, CSTR S_Str, U8 Start, U8 End ); -CSTR getTStr( CSTR Fmt = NULL ); - +bool fileExist( const char *strFilename ); +CSTR trim( CSTR string ); +uint8_t checksum8( uint8_t *Buffer, size_t BufferSize ); +uint16_t checksum16( uint8_t *Buffer, size_t BufferSize ); +uint8_t checksumLGS( uint8_t *Buffer, size_t BufferSize ); +CArray * explode( char Delim, CSTR S_Str ); +CSTR implode( CArray *Data, CSTR S_Str, U8 Start, U8 End ); +CSTR getTStr( CSTR Fmt = NULL ); #ifdef __linux__ + inline PF_TIMESTAMP * getPFTS( PF_TIMESTAMP * ptr = NULL ){ + struct timeval tData; + struct timezone tTZ; + if( ptr == NULL ) { + PF_TIMESTAMP *retVal; + retVal = (PF_TIMESTAMP *) malloc(sizeof(PF_TIMESTAMP)); + if( retVal != NULL ) { + if( gettimeofday( &tData, &tTZ ) == -1 ){ + free(retVal); + retVal = NULL; + } else { + retVal->seconds = tData.tv_sec; + retVal->milliseconds = ( tData.tv_usec / 1000 ); + }; + }; + return retVal; + } else { + if( gettimeofday( &tData, &tTZ ) == -1 ){ + ptr->seconds = 0; + ptr->milliseconds = 0; + } else { + ptr->seconds = tData.tv_sec; + ptr->milliseconds = ( tData.tv_usec / 1000 ); + }; + return ptr; + }; + }; pid_t gettid( void ); #define SLEEP(X) usleep(X*1000) long long getMilliseconds( void ); @@ -57,15 +83,6 @@ int getIP4( if_info **arrParam, int max_ifs = 10 ); bool enumerateDevices(enumeratorInfo *mlist, REFGUID category); #endif -typedef struct S_localIp4Info{ - char address[16]; - char netmask[16]; - char broadcast[16]; - char gateway[16]; -}localIp4Info; - -typedef vector localIpAddresses; - localIpAddresses *getLocalIP(); #endif diff --git a/lib/components/base/basicTimeStamp.cpp b/lib/components/base/basicTimeStamp.cpp index 66b8240a..4c55f4d9 100644 --- a/lib/components/base/basicTimeStamp.cpp +++ b/lib/components/base/basicTimeStamp.cpp @@ -18,10 +18,10 @@ void basicTimeStamp::setLocal( time_t TS ){ }; time_t basicTimeStamp::getUTS( void ){ - + return 0; }; time_t basicTimeStamp::getLocal( void ){ - + return 0; }; diff --git a/lib/components/base/basicTypes.h b/lib/components/base/basicTypes.h index 1d4287f1..74423122 100644 --- a/lib/components/base/basicTypes.h +++ b/lib/components/base/basicTypes.h @@ -352,6 +352,161 @@ template struct basicRingElement{ basicRingElement *next; }; +typedef struct S_BNO_DATA{ + uint8_t temperature; + int16_t gravity_z; + int16_t gravity_y; + int16_t gravity_x; + int16_t lacc_z; + int16_t lacc_y; + int16_t lacc_x; + int16_t quaterion_z; + int16_t quaterion_y; + int16_t quaterion_x; + int16_t quaterion_w; + int16_t pitch; + int16_t roll; + int16_t yaw; + int16_t gyro_z; + int16_t gyro_y; + int16_t gyro_x; + int16_t mag_z; + int16_t mag_y; + int16_t mag_x; + int16_t acc_z; + int16_t acc_y; + int16_t acc_x; +} BNO_DATA;//45 bytes + +#define PF_EVT_REC_GPS 1 +#define PF_EVT_REC_PIC 2 +#define PF_EVT_REC_OPF 3 +#define PF_EVT_REC_BNO 4 +#define PF_EVT_REC_LRF 5 + +#define PF_START_ON_PWR 0 +#define PF_START_ON_ALT 1 +#define PF_START_ON_ARM 2 +#define PF_START_ON_MAN 3 + +typedef struct S_BNO_3D_VECTOR{ + float x; + float y; + float z; +}BNO_3D_VECTOR; + +typedef struct S_BNO_Quat{ + float w; + float x; + float y; + float z; +} BNO_Quat; + +typedef struct S_PF_TIMESTAMP{ + uint32_t seconds; + uint16_t milliseconds; +} PF_TIMESTAMP; + +typedef struct S_BNO_EVTREC{ + uint32_t seconds; + uint16_t milliseconds; + uint8_t wm_mode; + BNO_3D_VECTOR acc; + BNO_3D_VECTOR mag; + BNO_3D_VECTOR gyr; + BNO_3D_VECTOR eul; + BNO_Quat quat; + BNO_3D_VECTOR mov; + BNO_3D_VECTOR grav; +}BNO_EVTREC; + +typedef struct S_BNO_SETTINGS{ + uint8_t wmode; + uint8_t map_x; + uint8_t map_y; + uint8_t map_z; +}BNO_SETTINGS; + +typedef struct S_GPS_EVTREC{ + uint32_t seconds; + uint16_t milliseconds; + uint8_t fix_type; + uint8_t fix_mode; + float lat; + float lon; + float msl_alt; + float mag_variation; + float og_speed; + float og_course; + float geo_separation; +}GPS_EVTREC; + +typedef struct S_GPS_SAT_INFO{ + uint8_t sat_id; + uint8_t const_id; + uint8_t elevation; + uint16_t azimuth; + uint8_t SNR; +}GPS_SAT_INFO; + +typedef struct S_GPS_INFO{ + +}GPS_INFO; + +typedef struct S_GPS_SETTINGS{ + uint16_t bFix_Rate; + uint8_t bGLL_Rate; + uint8_t bRMC_Rate; + uint8_t bVTG_Rate; + uint8_t bGGA_Rate; + uint8_t bGSA_Rate; + uint8_t bGSV_Rate; + uint8_t bZDA_Rate; + uint8_t bDGPS_Mode; + bool bDEBUG_Mode; +}GPS_SETTINGS; + +typedef struct S_OPF_MOTION{ + uint8_t bFLAGS; + int8_t dX; + int8_t dY; + uint8_t bSurfaceQuality; + uint16_t nShutter; + uint8_t bMaxPixel; +}OPF_MOTION; + +typedef struct S_OPF_EVTREC{ + uint32_t seconds; + uint16_t milliseconds; + uint8_t bFLAGS; + int8_t dX; + int8_t dY; + uint8_t bSurfaceQuality; + uint16_t nShutter; + uint8_t bMaxPixel; +}OPF_EVTREC; + +typedef struct S_LRF_EVTREC{ + uint32_t begin_seconds; + uint16_t begin_milliseconds; + uint32_t end_seconds; + uint16_t end_milliseconds; + uint8_t sps; + uint16_t samples_count; + uint16_t * samples; +}LRF_EVTREC; + +typedef struct S_localIp4Info{ + char address[16]; + char netmask[16]; + char broadcast[16]; + char gateway[16]; +}localIp4Info; + + + +typedef vector localIpAddresses; + #ifdef __linux__ #define SLEEP(X) usleep(X*1000) #else diff --git a/lib/components/object/objectKernelResource.cpp b/lib/components/object/objectKernelResource.cpp new file mode 100644 index 00000000..6562503c --- /dev/null +++ b/lib/components/object/objectKernelResource.cpp @@ -0,0 +1,9 @@ +#include "objectKernelResource.h" + +static uint32_t g_nResourceId = 0; + +objectKernelResource::objectKernelResource( RESOURCE_TYPE T ){ + m_nResourceId = g_nResourceId++; + m_eType = T; + +}; diff --git a/lib/components/object/objectKernelResource.h b/lib/components/object/objectKernelResource.h new file mode 100644 index 00000000..c3c6943d --- /dev/null +++ b/lib/components/object/objectKernelResource.h @@ -0,0 +1,36 @@ +#ifndef __OBJECT_KERNEL_RESOURCE_HEADER__ + +#define __OBJECT_KERNEL_RESOURCE_HEADER__ + +#define RES_CAP_INPUT 0x0001 +#define RES_CAP_OUTPUT 0x0002 +#define RES_CAP_BLOCK 0x0004 +#define RES_CAP_STREAM 0x0008 +#define RES_CAP_LOCKING 0x0010 +#define RES_CAP_SINGLE 0x0020 +#define RES_CAP_ONE_SHOT_INIT 0x0040 + +typedef enum E_RESOURCE_TYPE { + ERT_NONE 0, + ERT_SERIAL_LINK 1, + ERT_SERIAL_BUS 2 + ERT_BINARY_APPF 3, + ERT_SHARED_MEM 4, + ERT_DATABASE_LINK 5, + ERT_MULTIMEDIA_CTRL 6 +} RESOURCE_TYPE; + +class objectKernelResource{ + private: + uint32_t m_nResourceId; + uint32_t m_nCapabilities; + RESOURCE_TYPE m_eType; + public: + explicit objectKernelResource( RESOURCE_TYPE T ); + vortual ~objectKernelResource(); + uint32_t getResourceCaps(void) const { return m_nCapabilities; }; + RESOURCE_TYPE getResourceType(void) const { return m_eType; }; +}; + + +#endif \ No newline at end of file diff --git a/lib/components/object/objectKernelResourcesCage.cpp b/lib/components/object/objectKernelResourcesCage.cpp new file mode 100644 index 00000000..4867bdb6 --- /dev/null +++ b/lib/components/object/objectKernelResourcesCage.cpp @@ -0,0 +1,16 @@ +#include "objectKernelResourcesCage.h" + +static objectKernelResourcesCage *objectKernelResourcesCage::_instance = NULL; + +objectKernelResourcesCage *objectKernelResourcesCage::getInstance(){ + if(_instance == NULL ){ + _instance = new objectKernelResourcesCage(); + }; + return _instance; +}; + +objectKernelResourcesCage::objectKernelResourcesCage(){ +}; + +objectKernelResourcesCage::~objectKernelResourcesCage(){ +}; diff --git a/lib/components/object/objectKernelResourcesCage.h b/lib/components/object/objectKernelResourcesCage.h new file mode 100644 index 00000000..c7ecdbe1 --- /dev/null +++ b/lib/components/object/objectKernelResourcesCage.h @@ -0,0 +1,17 @@ +#ifndef __OBJECT_KERNEL_RESOUCES_CAGE_HEADER__ + +#define __OBJECT_KERNEL_RESOUCES_CAGE_HEADER__ + +#include "objectKernelResource.h" + +class objectKernelResourcesCage{ + public: + bool create( objectKernelResource * R ); + objectKernelResourcesCage * getInstance(); + private: + objectKernelResourcesCage(); + virtual ~objectKernelResourcesCage(); + static objectKernelResourcesCage * _instance; +}; + +#endif \ No newline at end of file diff --git a/lib/components/object/objectLGS.h b/lib/components/object/objectLGS.h index 32dd102d..e508149d 100644 --- a/lib/components/object/objectLGS.h +++ b/lib/components/object/objectLGS.h @@ -23,7 +23,7 @@ #include -#define LGS_TIMEOUT_COUNT 100 +#define LGS_TIMEOUT_COUNT 100 #define LGS_MAX_IDLE_DELAY 40 // x10 msec #define LGS_MIN_IDLE_DELAY 1 // x10 msec @@ -108,78 +108,78 @@ class objectLGS : public basicObject, basicDualThread, protocolLGS_CLIENT{ protected: void m_fThreadAProc(void); void m_fThreadBProc(void); - bool packetHandler(protocolPackage* Package); + bool packetHandler( protocolPackage* Package ); public: //explicit objectLGS( PLGS_PARAMETERS Settings, basicTransport *Transport); explicit objectLGS( config_setting_t *Settings = NULL, bool Master = true ); - ~objectLGS(); - bool create( void ); - bool startGetScanData( uint8_t kID = 0, uint32_t *th_zone = NULL ); - bool startGetParameters( uint32_t timeout=0 ); - bool startUploadMask(void); - bool startDeviceReset( bool FullReset = true ); - bool startStopMotors( void ); - bool startStartMotors( void ); - bool startMasksStatus(bool Active); - uint8_t getCompelition(void); - SOFTWARE_INFO *getSoftwareInfo(void){ - return &m_sDeviceSoftNFO; - }; - E_LGS_CMD getCurrentCMD(void){ - E_LGS_CMD tVal; - m_mStatusMutex.lock(); - tVal = m_sDeviceStatus.CurrentOperation; - m_mStatusMutex.unlock(); - return tVal; - }; - E_LGS_STAGE getCurrentSTG(void){ - E_LGS_STAGE tVal; - m_mStatusMutex.lock(); - tVal = m_sDeviceStatus.Status; - m_mStatusMutex.unlock(); - return tVal; - }; - PLGS_PARAMETERS getSettings(void){ return m_pLGS_PARAMETERS; }; - CSTR getHost( void ){ return m_pHost; }; - int getPort( void ){ return m_nPort; }; - bool getDeviceStatus(DEVICE_STATUS &STAT); - ShadowMask *getMask( void ){ return m_pShadow; }; - bool setHost( CSTR Host ); - bool setPort( int Port ); - bool setSettings( PLGS_PARAMETERS Params ); - bool isMaster( void ){ - return m_bIsMaster; - }; - bool areMasksLoadded(void){ - if( !m_bMasksAreLoadded ) SLEEP(10); - return m_bMasksAreLoadded; - }; - bool areMasksActive( void ){ - if( m_bMasksAreLoadded ){ - if( m_pShadow!= NULL ){ - return m_pShadow->isActive(); + ~objectLGS(); + bool create( void ); + bool startGetScanData( uint8_t kID = 0, uint32_t *th_zone = NULL ); + bool startGetParameters( uint32_t timeout=0 ); + bool startUploadMask(void); + bool startDeviceReset( bool FullReset = true ); + bool startStopMotors( void ); + bool startStartMotors( void ); + bool startMasksStatus(bool Active); + uint8_t getCompelition(void); + SOFTWARE_INFO * getSoftwareInfo(void){ + return &m_sDeviceSoftNFO; + }; + E_LGS_CMD getCurrentCMD(void){ + E_LGS_CMD tVal; + m_mStatusMutex.lock(); + tVal = m_sDeviceStatus.CurrentOperation; + m_mStatusMutex.unlock(); + return tVal; + }; + E_LGS_STAGE getCurrentSTG(void){ + E_LGS_STAGE tVal; + m_mStatusMutex.lock(); + tVal = m_sDeviceStatus.Status; + m_mStatusMutex.unlock(); + return tVal; + }; + PLGS_PARAMETERS getSettings(void){ return m_pLGS_PARAMETERS; }; + CSTR getHost( void ){ return m_pHost; }; + int getPort( void ){ return m_nPort; }; + bool getDeviceStatus(DEVICE_STATUS &STAT); + ShadowMask * getMask( void ){ return m_pShadow; }; + bool setHost( CSTR Host ); + bool setPort( int Port ); + bool setSettings( PLGS_PARAMETERS Params ); + bool isMaster( void ){ + return m_bIsMaster; + }; + bool areMasksLoadded(void){ + if( !m_bMasksAreLoadded ) SLEEP(10); + return m_bMasksAreLoadded; + }; + bool areMasksActive( void ){ + if( m_bMasksAreLoadded ){ + if( m_pShadow!= NULL ){ + return m_pShadow->isActive(); + }; }; + return false; + }; + bool isConnected(void){ + bool tVal; + m_mStatusMutex.lock(); + tVal = (m_sDeviceStatus.Status > STG_DISCONNECTED); + m_mStatusMutex.unlock(); + return tVal; }; - return false; - }; - bool isConnected(void){ - bool tVal; - m_mStatusMutex.lock(); - tVal = (m_sDeviceStatus.Status > STG_DISCONNECTED); - m_mStatusMutex.unlock(); - return tVal; - }; - void attachRadarWidget( GLRadar *ptr ){ m_pRadarWidget = ptr;}; - void attachMapWidget( RangeMapWidget *ptr ){ m_pMapWidget = ptr;}; - basicPosition *getPosition(void){ return m_pPosition; }; - void updateSettings(void); + void attachRadarWidget( GLRadar *ptr ){ m_pRadarWidget = ptr;}; + void attachMapWidget( RangeMapWidget *ptr ){ m_pMapWidget = ptr;}; + basicPosition * getPosition(void){ return m_pPosition; }; + void updateSettings(void); // New Order - thresholdNode *grabDataAccess( void ); - void releaseDataAccess( void ); + thresholdNode * grabDataAccess( void ); + void releaseDataAccess( void ); - bool lastTaskComplete( void ); - void cleanLastTaskStatus( void ); + bool lastTaskComplete( void ); + void cleanLastTaskStatus( void ); }; typedef struct S_SENSOR_INFO{ diff --git a/lib/components/object/objectPathfinderBinaryLog.cpp b/lib/components/object/objectPathfinderBinaryLog.cpp new file mode 100644 index 00000000..823a902b --- /dev/null +++ b/lib/components/object/objectPathfinderBinaryLog.cpp @@ -0,0 +1,250 @@ +#include "objectPathfinderBinaryLog.h" + +#define LOG( X ) m_pLog->Log( "BILO", this, X ) +#define LOG_ERROR( X ) m_pLog->Log( "BILO", this, _LOG_ERROR, X ) + +#define PACKAGE_NAME "PATHFINDER_BIN_LOG" + +objectPathfinderBinaryLog *objectPathfinderBinaryLog::_instance = NULL; + +objectPathfinderBinaryLog *objectPathfinderBinaryLog::getInstance(){ + if( _instance == NULL ){ + _instance = new objectPathfinderBinaryLog(); + }; + return _instance; +}; + +objectPathfinderBinaryLog::objectPathfinderBinaryLog(){ + m_pLog = basicLogCollection::getInstance(); + m_pFID = NULL; + m_nDBID = 0; + m_pDBC = NULL; + m_bActive = false; + //uuidgen(); +}; + +objectPathfinderBinaryLog::~objectPathfinderBinaryLog(){ + finish(); +}; + + +void objectPathfinderBinaryLog::attachDBC( PATHFINDER_DBC *DBC ){ + m_pDBC = DBC; +}; + +bool objectPathfinderBinaryLog::activate(){ + if( m_bActive ) + if( !finish() ) return false; + if( m_pDBC == NULL ) return false; + uuidgen(); + char tBuff[256]; + sprintf( tBuff, "data/%s.bin", m_sUUID ); + m_pFID = fopen( tBuff, "wb+" ); + if( m_pFID != NULL ) { + PF_TIMESTAMP ts; + getPFTS( &ts ); + m_nDBID = m_pDBC->registerBinaryLog( ts.seconds, ts.milliseconds, m_sUUID ); + if( m_nDBID ) { + m_bActive = true; + } else { + fclose( m_pFID ); + unlink( tBuff ); + }; + }; + return m_bActive; +}; + +bool objectPathfinderBinaryLog::finish(){ + if( !m_bActive ) return true; + if( m_pFID == NULL ) return false; + m_bActive = false; + m_mProtector.lock(); + fclose( m_pFID ); + m_pFID = NULL; + m_mProtector.unlock(); + if( m_pDBC != NULL ) { + PF_TIMESTAMP ts; + getPFTS( &ts ); + m_pDBC->unregisterBinaryLog( m_nDBID, ts.seconds, ts.milliseconds ); + }; + m_nDBID = 0; + return true; +}; + +void objectPathfinderBinaryLog::registerGPS( GPS_EVTREC *ptr ){ + if( !m_bActive ) return; + if( ptr == NULL ) return; + if( m_pFID == NULL ){ + LOG_ERROR("Data File Not Opened!"); + return; + }; + uint16_t recSize; + uint8_t recType = PF_EVT_REC_GPS; + + m_mProtector.lock(); + recSize = sizeof(GPS_EVTREC); + fwrite( &recType, 1, 1, m_pFID ); + fwrite( &recSize, 2, 1, m_pFID ); + // ----------------------------------------------- + fwrite( ptr, recSize, 1, m_pFID ); + if( m_nDBID ) { + m_pDBC->updateBLOG_DATA( m_nDBID, recType, recSize + 3 ); + }; + m_mProtector.unlock(); +}; + +void objectPathfinderBinaryLog::registerBNO( BNO_EVTREC *ptr ){ + if( !m_bActive ) return; + if( ptr == NULL ) return; + if( m_pFID == NULL ){ + LOG_ERROR("Data File Not Opened!"); + return; + }; + uint16_t recSize; + uint8_t recType = PF_EVT_REC_GPS; + + m_mProtector.lock(); + recSize = sizeof(BNO_EVTREC); + fwrite( &recType, 1, 1, m_pFID ); + fwrite( &recSize, 2, 1, m_pFID ); + // ----------------------------------------------- + fwrite( ptr, recSize, 1, m_pFID ); + if( m_nDBID ) { + m_pDBC->updateBLOG_DATA( m_nDBID, recType, recSize + 3 ); + }; + m_mProtector.unlock(); +}; + +void objectPathfinderBinaryLog::registerOPF( OPF_EVTREC *ptr ){ + if( !m_bActive ) return; + if( ptr == NULL ) return; + if( m_pFID == NULL ){ + LOG_ERROR("Data File Not Opened!"); + return; + }; + uint16_t recSize; + uint8_t recType = PF_EVT_REC_OPF; + + m_mProtector.lock(); + recSize = sizeof(OPF_EVTREC); + fwrite( &recType, 1, 1, m_pFID ); + fwrite( &recSize, 2, 1, m_pFID ); + // ----------------------------------------------- + fwrite( ptr, recSize, 1, m_pFID ); + if( m_nDBID ) { + m_pDBC->updateBLOG_DATA( m_nDBID, recType, recSize + 3 ); + }; + m_mProtector.unlock(); +}; + +void objectPathfinderBinaryLog::registerPIC( PF_TIMESTAMP *ts, CSTR name ){ + if( !m_bActive ) return; + if( ts == NULL ) return; + if( name == NULL ) return; + if( m_pFID == NULL ){ + LOG_ERROR("Data File Not Opened!"); + return; + }; + uint16_t recSize; + uint8_t recType = PF_EVT_REC_PIC; + + m_mProtector.lock(); + recSize = 7 + strlen(name); + fwrite( &recType, 1, 1, m_pFID ); + fwrite( &recSize, 2, 1, m_pFID ); + // ----------------------------------------------- + fwrite( &ts->seconds, 4, 1, m_pFID ); + fwrite( &ts->milliseconds, 2, 1, m_pFID ); + fwrite( name, 1, recSize - 6, m_pFID ); + if( m_nDBID ) { + m_pDBC->updateBLOG_DATA( m_nDBID, recType, recSize + 3 ); + }; + m_mProtector.unlock(); +}; + +void objectPathfinderBinaryLog::registerLFS( LRF_EVTREC *ptr ){ + if( !m_bActive ) return; + if( ptr == NULL ) return; + if( ptr->samples == NULL ) { + LOG_ERROR("EVT Data Corrupted!"); + }; + if( m_pFID == NULL ){ + LOG_ERROR("Data File Not Opened!"); + return; + }; + uint16_t recSize; + uint8_t recType = PF_EVT_REC_LRF; + + m_mProtector.lock(); + recSize = 15 + ( ptr->samples_count << 1 ); + fwrite( &recType, 1, 1, m_pFID ); + fwrite( &recSize, 2, 1, m_pFID ); + // ----------------------------------------------- + fwrite( &ptr->begin_seconds, 4, 1, m_pFID ); + fwrite( &ptr->begin_milliseconds, 2, 1, m_pFID ); + fwrite( &ptr->end_seconds, 4, 1, m_pFID ); + fwrite( &ptr->end_milliseconds, 2, 1, m_pFID ); + fwrite( &ptr->sps, 1, 1, m_pFID ); + fwrite( &ptr->samples_count, 2, 1, m_pFID ); + fwrite( ptr->samples, 2, ptr->samples_count, m_pFID ); + if( m_nDBID ) { + m_pDBC->updateBLOG_DATA( m_nDBID, recType, recSize + 3 ); + }; + m_mProtector.unlock(); +}; + +void objectPathfinderBinaryLog::uuidgen(void){ + FILE * fp; + char buf[CTEXT]; +#ifdef DEBUG + char tBuf[CTEXT]; +#endif + const char * file = _PATH_VARDB PACKAGE_NAME ".cache"; + fp = fopen(file, "r"); + + if (!fp) { + fp = fopen(file, "w"); + if (!fp){ + sprintf( buf, "Cannot create UUID cache, %s: %s", file, strerror(errno)); + LOG_ERROR( buf ); + }; +generate: + srand(time(NULL)); + snprintf( buf, 42, "%8.8x-%4.4x-%4.4x-%4.4x-%6.6x%6.6x", + rand() & 0xFFFFFFFF, + rand() & 0xFFFF, + (rand() & 0x0FFF) | 0x4000, /* M 4 MSB version => version 4 */ + (rand() & 0x1FFF) | 0x8000, /* N: 3 MSB variant => variant 1 */ + rand() & 0xFFFFFF, rand() & 0xFFFFFF + ); + if (fp) { +#ifdef DEBUG + sprintf( tBuf, "Creating new UUID cache file, %s", file); + LOG( tBuf ); +#endif + fprintf(fp, "%s\n", buf); + fclose(fp); + }; + } else { +#ifdef DEBUG + sprintf( tBuf, "Cache file [%s] is Ok", file); + LOG( tBuf ); +#endif + if (!fgets(buf, sizeof(buf), fp)) { + fclose(fp); + goto generate; + } + buf[strlen(buf) - 1] = 0; + fclose(fp); + }; + strcpy( m_sUUID, buf ); +#ifdef DEBUG + sprintf( tBuf, "URN: %s", m_sUUID ); + LOG( tBuf ); +#endif +}; + + +#undef LOG +#undef LOG_ERROR + diff --git a/lib/components/object/objectPathfinderBinaryLog.h b/lib/components/object/objectPathfinderBinaryLog.h new file mode 100644 index 00000000..56b0c3e8 --- /dev/null +++ b/lib/components/object/objectPathfinderBinaryLog.h @@ -0,0 +1,57 @@ +#ifndef __PATHFINDER_BINARY_LOG_HEADER__ +#define __PATHFINDER_BINARY_LOG_HEADER__ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /* MIN() */ +#include + +#include "../base/basicSettingsProvider.h" +#include "../base/basicFunctionality.h" +#include "../base/basicMutex.h" +#include "../../pathfinder/pathfinderDBConnector.h" + +class objectPathfinderBinaryLog{ + protected: + char m_sUUID[42]; + PATHFINDER_DBC * m_pDBC; + public: + static objectPathfinderBinaryLog * getInstance(); + void attachDBC( PATHFINDER_DBC *DBC ); + bool activate(); + bool finish(); + void registerGPS( GPS_EVTREC *ptr ); + void registerBNO( BNO_EVTREC *ptr ); + void registerOPF( OPF_EVTREC *ptr ); + void registerPIC( PF_TIMESTAMP *ts, CSTR name ); + void registerLFS( LRF_EVTREC *ptr ); + private: + basicLogCollection * m_pLog; + static objectPathfinderBinaryLog * _instance; + basicMutex m_mProtector; + objectPathfinderBinaryLog(); + virtual ~objectPathfinderBinaryLog(); + uint32_t m_nDBID; + bool m_bActive; + void uuidgen(void); + FILE * m_pFID; +}; + + +#endif \ No newline at end of file diff --git a/lib/data/curl/curlRequest.h b/lib/data/curl/curlRequest.h index c6e9604b..5a3da75b 100644 --- a/lib/data/curl/curlRequest.h +++ b/lib/data/curl/curlRequest.h @@ -8,7 +8,8 @@ #include #include "../../components/base/basicLogCollection.h" -#define DEFAULT_CONTENT_TYPE ((CSTR)"application/xml") +#define DEFAULT_CONTENT_TYPE ((CSTR)"application/xml") +#define DEFAULT_CONTENT_TYPE_JSON ((CSTR)"application/json") /*struct CURLMsg { CURLMSG msg; // what this message means diff --git a/lib/data/mysql/database_class.cpp b/lib/data/mysql/database_class.cpp index 8011d872..02102bc9 100644 --- a/lib/data/mysql/database_class.cpp +++ b/lib/data/mysql/database_class.cpp @@ -69,6 +69,7 @@ MySQL_Connector::~MySQL_Connector(){ if( m_pDBUser != NULL ) delete( m_pDBUser ); if( m_pDBPassword != NULL ) delete( m_pDBPassword ); if ( m_pDBLink != NULL ) mysql_close( m_pDBLink ); + mysql_library_end(); m_bIsConnected = false; }; @@ -160,9 +161,8 @@ bool MySQL_Connector::ReConnect( void ){ AAssoc *MySQL_Connector::Query( CSTR QS, bool useCache ){ AAssoc * RetVal = NULL; Assoc * tElement; - unsigned int i; unsigned int num_Fields; - MYSQL_RES * Result; + MYSQL_RES * Result = NULL; m_mAccessMutex.lock(); #ifdef DEBUG_MYSQL_QUERIES LOG( QS ); @@ -304,6 +304,18 @@ void MySQL_Connector::SilentQuery( CSTR QS ){ m_mAccessMutex.unlock(); }; +void deleteResult( AAssoc *R ){ + if (R) { + //while( R->size() ){ + // delete( (Assoc *) R->at(0) ); + // R->erase( R->begin()); + //}; + R->clear(); + delete( R ); + R = NULL; + }; +}; + #undef LOG #undef LOG_ERROR diff --git a/lib/data/mysql/database_class.h b/lib/data/mysql/database_class.h index f524c708..ec235d25 100644 --- a/lib/data/mysql/database_class.h +++ b/lib/data/mysql/database_class.h @@ -39,6 +39,7 @@ class MySQL_Connector{ AAssoc * Query( CSTR QS, bool useCache = false ); }; +void deleteResult( AAssoc * ); //extern MySQL_Connector DBC; #endif diff --git a/lib/data/protocol/protocol.cpp b/lib/data/protocol/protocol.cpp index cc5f35de..6307f91d 100644 --- a/lib/data/protocol/protocol.cpp +++ b/lib/data/protocol/protocol.cpp @@ -47,6 +47,7 @@ CONNECTION_STATUS protocolParser::getConnectionStatus( void ){ return m_eConnectionStatus; }; bool protocolParser::parse( U8 *Buffer, size_t BufferSize ){ + LOG("P"); if( m_pParserBuffer != NULL ) { m_mBufferProtectorMutex.lock(); memcpy( m_pParserBuffer+m_nParserDataCount, Buffer, BufferSize ); @@ -63,7 +64,7 @@ void protocolParser::m_fThreadProc(void){ while(m_bThreadStatus < TH_ENDED){ if( m_eConnectionStatus < CS_DISCONNECTED ){ if( ( m_bBufferAltered == false ) && ( m_bThreadStatus < TH_ENDED ) ) { - SLEEP(1); + SLEEP(3); continue; }; m_mBufferProtectorMutex.lock(); @@ -77,8 +78,8 @@ void protocolParser::m_fThreadProc(void){ #endif if( RetVal < 0 ){ // Note: RetVal is NEGATIVE!!?? - //memcpy( m_pParserBuffer, m_pParserBuffer-RetVal, m_nParserDataCount+RetVal ); - //m_nParserDataCount+=RetVal; + m_nParserDataCount+=RetVal; + memcpy( m_pParserBuffer, m_pParserBuffer-RetVal, m_nParserDataCount ); } else if ( RetVal == 0 ) { protocolPackage* tVal = NULL; tVal = packetExtractor(m_pParserBuffer, m_nParserDataCount); @@ -93,7 +94,7 @@ void protocolParser::m_fThreadProc(void){ m_nParserDataCount -= tVal->m_nSize; memcpy(m_pParserBuffer, m_pParserBuffer + tVal->m_nSize, m_nParserDataCount); // In Case implementation of packetHandler - handler must return !true! - if (!packetHandler(tVal)) { + if( !packetHandler(tVal) ){ m_vPackagePool.push_back( tVal ); if (m_vPackagePool.size() > PROTO_QUEUE_MAX_PACKAGES) { // Delete oldest package in queue @@ -102,18 +103,20 @@ void protocolParser::m_fThreadProc(void){ free(tVal); }; } else { - dataEraser(tVal->m_pData); + dataEraser(tVal->m_pData); free(tVal); }; } else { // All data consumed in MAVLINK proto but not parsed into message m_nParserDataCount = 0; }; - }; + } else { + break; + }; }; m_bBufferAltered = false; m_mBufferProtectorMutex.unlock(); - }else{ + } else { // Handle Disconnect m_bThreadStatus = TH_ENDED; }; diff --git a/lib/data/protocol/protocolHTTP.cpp b/lib/data/protocol/protocolHTTP.cpp index 31983805..ca345e59 100644 --- a/lib/data/protocol/protocolHTTP.cpp +++ b/lib/data/protocol/protocolHTTP.cpp @@ -5,22 +5,27 @@ // Constructor protocolHTTP::protocolHTTP(config_setting_t *Settings){ m_pSettings = Settings; - config_setting_t * pSetting; m_pCurlPostType = (CSTR)malloc(128); if( m_pCurlPostType == NULL ) return; - if (!config_setting_lookup_string(m_pSettings, HTTP_PROTOCOL_CONTENT_SETTINGS, (const char**)&m_pCurlPostType)){ - sprintf( m_pCurlPostType, DEFAULT_CONTENT_TYPE ); - pSetting = config_setting_add(m_pSettings, HTTP_PROTOCOL_CONTENT_SETTINGS, CONFIG_TYPE_STRING); - config_setting_set_string( pSetting, m_pCurlPostType ); - basicSettingsProvider::getInstance()->compromise(); - }; + if( m_pSettings != NULL ) { + config_setting_t * pSetting; + if (!config_setting_lookup_string(m_pSettings, HTTP_PROTOCOL_CONTENT_SETTINGS, (const char**)&m_pCurlPostType)){ + sprintf( m_pCurlPostType, DEFAULT_CONTENT_TYPE ); + pSetting = config_setting_add(m_pSettings, HTTP_PROTOCOL_CONTENT_SETTINGS, CONFIG_TYPE_STRING); + config_setting_set_string( pSetting, m_pCurlPostType ); + basicSettingsProvider::getInstance()->compromise(); + }; + basicSettingsProvider::getInstance()->validate(); + } else { + sprintf( m_pCurlPostType, DEFAULT_CONTENT_TYPE_JSON ); + }; LOG( m_pCurlPostType ); - basicSettingsProvider::getInstance()->validate(); m_pHttpAccessManager = curlRequestsManager::getInstance(); }; protocolHTTP::~protocolHTTP(){ - delete m_pHttpAccessManager; + // Its singletone!! + //delete m_pHttpAccessManager; m_pHttpAccessManager = NULL; }; diff --git a/lib/data/protocol/protocolZLMEDIA.cpp b/lib/data/protocol/protocolZLMEDIA.cpp index 27743b75..07b1896d 100644 --- a/lib/data/protocol/protocolZLMEDIA.cpp +++ b/lib/data/protocol/protocolZLMEDIA.cpp @@ -4,12 +4,12 @@ #include #include -#define LOG( X ) basicLogCollection::getInstance()->Log( "ZLMEDIA", this, X ) -#define LOG_ERROR( X ) basicLogCollection::getInstance()->Log( "ZLMEDIA", this, _LOG_ERROR, X ) +#define LOG( X ) basicLogCollection::getInstance()->Log( "ZLMP", this, X ) +#define LOG_ERROR( X ) basicLogCollection::getInstance()->Log( "ZLMP", this, _LOG_ERROR, X ) -protocolZLMEDIA::protocolZLMEDIA( config_setting_t *Settings ): protocolHTTP( basicSettingsProvider::getInstance()->getSubNode(Settings, "ZLMEDIA_CONNECTION") ){ +protocolZLMEDIA::protocolZLMEDIA( config_setting_t *Settings ): protocolHTTP( basicSettingsProvider::getInstance()->getSubNode(Settings, "ZLMEDIA_PROTOCOL") ){ m_pLog = basicLogCollection::getInstance(); - m_pSettings = basicSettingsProvider::getInstance()->getSubNode(Settings, "ZLMEDIA_CONNECTION"); + m_pSettings = basicSettingsProvider::getInstance()->getSubNode(Settings, "ZLMEDIA_PROTOCOL"); /* if( m_pSettings != NULL ){ @@ -47,19 +47,57 @@ protocolZLMEDIA::protocolZLMEDIA( config_setting_t *Settings ): protocolHTTP( ba }; //*/ }; +protocolZLMEDIA::protocolZLMEDIA( CSTR key, CSTR host, CSTR ip, uint32_t port ): protocolHTTP( NULL ){ + m_pLog = basicLogCollection::getInstance(); + m_pSettings = NULL; + LOG("Param1"); + strncpy( m_pSecret, key, 255 ); + LOG("Param2"); + strncpy( m_pAccessPoint, key, 255 ); + LOG("Param3"); + strncpy( m_pIP, ip, 16 ); + LOG("Done!"); + m_bSessionOnGo = false; + m_bServerIsPresent = false; + m_nPort = port; + m_bUseSSL = ( m_nPort == 433 ); + LOG("Check Online!"); + isOnline(); + LOG("Done!"); +}; + protocolZLMEDIA::~protocolZLMEDIA(){ }; bool protocolZLMEDIA::packetHandler( protocolPackage *Package ){ - if( Package == NULL )return false; - if( Package->m_nSize == 0 ) return false; - if( Package->m_pData == NULL ) return false; - if( Package->m_nCode != 200 ) return false; + LOG("Pack Handler!!"); + if( Package == NULL ){ + m_bSessionOnGo = false; + return false; + }; + LOG("Pack not NULL"); + if( Package->m_nSize == 0 ) { + m_bSessionOnGo = false; + return false; + }; + LOG("Size not NULL"); + if( Package->m_pData == NULL ){ + m_bSessionOnGo = false; + return false; + }; + LOG("Data not NULL"); + if( Package->m_nCode != 200 ){ + m_bSessionOnGo = false; + return false; + }; + LOG("Code is 200"); + m_bServerIsPresent = true; try{ Json::Value root; Json::Reader reader; if( !reader.parse( (char *)Package->m_pData, root ) ){ LOG_ERROR( "Error parsing the string" ); + m_bSessionOnGo = false; return false; }; for( Json::Value::const_iterator outer = root.begin() ; outer != root.end() ; outer++ ){ @@ -70,29 +108,80 @@ bool protocolZLMEDIA::packetHandler( protocolPackage *Package ){ }; }; } catch (exception e ){ + LOG_ERROR("Exception!!"); + m_bSessionOnGo = false; return false; }; + m_bSessionOnGo = false; return true; }; // Issue New Online Check but return current value bool protocolZLMEDIA::isOnline(){ - if( !m_bSessionOnGo ) { - char URL[256]; - uint8_t timeout = 100; // 1 sec. - m_bSessionOnGo = true; - if( m_bUseSSL ) { - sprintf(URL,"https://%s:%d/%s?secret=%s", m_pIP, m_nPort, m_pAccessPoint, m_pSecret ); + if( !m_bServerIsPresent ) { // Just First Time to set initial flag + if( !m_bSessionOnGo ) { + char URL[256]; + uint8_t timeout = 100; // 1 sec. + m_bSessionOnGo = true; + if( m_bUseSSL ) { + sprintf(URL,"https://%s:%d/%s?secret=%s", m_pIP, m_nPort, ZL_LIST_API, m_pSecret ); + } else { + sprintf(URL,"http://%s:%d/%s?secret=%s", m_pIP, m_nPort, ZL_LIST_API, m_pSecret ); //m_pAccessPoint + }; + LOG( URL ); + //ToDo: Check if OK to send nothing for checking Onlines + //int len = 0; + //issuePost( URL, NULL, len ); + issueGet( URL ); + while( m_bSessionOnGo && timeout-- ) SLEEP(10); + }; + #ifdef DEBUG + if(m_bServerIsPresent) { + LOG("Server is Online"); } else { - sprintf(URL,"http://%s:%d/%s?secret=%s", m_pIP, m_nPort, m_pAccessPoint, m_pSecret ); + LOG("Server is Onffline"); }; - //ToDo: Check if OK to send nothing for checking Onlines - int len = 0; - issuePost( URL, NULL, len ); - while( m_bSessionOnGo && timeout-- ) SLEEP(10); - }; + #endif + } return m_bServerIsPresent; }; - +bool protocolZLMEDIA::restartServer(){ + return false; +}; +bool protocolZLMEDIA::getConfig(){ + return false; +}; +CSTR protocolZLMEDIA::addStreamProxy(){ + return NULL; +}; +bool protocolZLMEDIA::delStreamProxy(CSTR key){ + return false; +}; +bool protocolZLMEDIA::listMedia(){ + if( m_bServerIsPresent ) { // Just First Time to set initial flag + LOG("LIST MEDIA"); + if( !m_bSessionOnGo ) { + char URL[256]; + uint8_t timeout = 100; // 1 sec. + m_bSessionOnGo = true; + if( m_bUseSSL ) { + sprintf(URL,"https://%s:%d/%s?secret=%s", m_pIP, m_nPort, ZL_LIST_MEDIA, m_pSecret ); + } else { + sprintf(URL,"http://%s:%d/%s?secret=%s", m_pIP, m_nPort, ZL_LIST_MEDIA, m_pSecret ); //m_pAccessPoint + }; + LOG( URL ); + //ToDo: Check if OK to send nothing for checking Onlines + //int len = 0; + //issuePost( URL, NULL, len ); + issueGet( URL ); + while( m_bSessionOnGo && timeout-- ) SLEEP(10); + return ( timeout > 0 ); + } else LOG("LIST MEDIA - SESSION BUSY!"); + }; + return false; +}; +bool protocolZLMEDIA::requestIsFinished(){ + return (m_bSessionOnGo == false); +}; #undef LOG #undef LOG_ERROR diff --git a/lib/data/protocol/protocolZLMEDIA.h b/lib/data/protocol/protocolZLMEDIA.h index 5f7c9c34..7eee0708 100644 --- a/lib/data/protocol/protocolZLMEDIA.h +++ b/lib/data/protocol/protocolZLMEDIA.h @@ -18,6 +18,21 @@ #include "../../components/base/basicLogCollection.h" #include "../../components/base/basicSettingsProvider.h" +#define ZL_ADD_ENCODER_SOURCE ((CSTR) "index/api/addFFmpegSource" ) +#define ZL_ADD_STREAM_PROXY ((CSTR) "index/api/addStreamProxy" ) +#define ZL_CLOSE_STREAM ((CSTR) "index/api/close_stream" ) +#define ZL_DEL_ENCODER_SOURCE ((CSTR) "index/api/delFFmepgSource" ) +#define ZL_DEL_STREAM_PROXY ((CSTR) "index/api/delStreamProxy" ) +#define ZL_LIST_SESSIONS ((CSTR) "index/api/getAllSession" ) +#define ZL_LIST_API ((CSTR) "index/api/getApiList" ) +#define ZL_LIST_MEDIA ((CSTR) "index/api/getMediaList" ) +#define ZL_GET_SERVER_CONFIG ((CSTR) "index/api/getServerConfig" ) +#define ZL_GET_LOAD_STATS ((CSTR) "index/api/getThreadsLoad" ) +#define ZL_GET_WORK_LOAD_STATS ((CSTR) "index/api/getWorkThreadsLoad" ) +#define ZL_KICK_SESSION ((CSTR) "index/api/kick_session" ) +#define ZL_RESTART_SERVER ((CSTR) "index/api/restartServer" ) +#define ZL_SET_SERVER_CONFIG ((CSTR) "index/api/setServerConfig" ) + class protocolZLMEDIA : public protocolHTTP { private: basicLogCollection * m_pLog; @@ -33,8 +48,15 @@ class protocolZLMEDIA : public protocolHTTP { virtual bool packetHandler( protocolPackage *Package ); public: explicit protocolZLMEDIA( config_setting_t *Settings = NULL ); + explicit protocolZLMEDIA( CSTR key, CSTR host, CSTR ip, uint32_t port ); ~protocolZLMEDIA(); bool isOnline(); + bool restartServer(); + bool getConfig(); + CSTR addStreamProxy(); + bool delStreamProxy(CSTR key); + bool listMedia(); + bool requestIsFinished(); }; diff --git a/lib/data/servletWS/servletClientHandlerWS.h b/lib/data/servletWS/servletClientHandlerWS.h index 3c876e9a..7bd6b828 100644 --- a/lib/data/servletWS/servletClientHandlerWS.h +++ b/lib/data/servletWS/servletClientHandlerWS.h @@ -74,7 +74,7 @@ class servletClientHandlerWS: public basicThread{ servletWS * m_pParent; zipDataPackage * m_pDeflatener; bool m_bDeflatePerMessage; - bool parseFrame(){}; + bool parseFrame(){ return true; }; bool assembleFrame( bool FIN, bool RSV1, bool RSV2, bool RSV3, WS_OPCODE code, uint8_t *in_buffer, size_t in_size, uint8_t *&out_buffer, size_t &out_size, bool bmask=false, uint32_t mask=0xffff ); public: explicit servletClientHandlerWS( servletWS *pPtr, int Socket ); diff --git a/lib/data/ssdp/ssdpAnnouncer.cpp b/lib/data/ssdp/ssdpAnnouncer.cpp index 4a29166d..5db6a4bf 100644 --- a/lib/data/ssdp/ssdpAnnouncer.cpp +++ b/lib/data/ssdp/ssdpAnnouncer.cpp @@ -318,7 +318,7 @@ void ssdpAnnouncer::compose_xml( CSTR peerIP ){ sprintf(cPtr," %s\r\n",m_sUniversalProductCode); cPtr = m_pXMLTEMPLATE+strlen(m_pXMLTEMPLATE); }; - sprintf(tBuf,m_sDevicePresentationURL,peerIP); + sprintf(tBuf, m_sDevicePresentationURL, peerIP ); sprintf(cPtr," %s\r\n",tBuf); cPtr = m_pXMLTEMPLATE+strlen(m_pXMLTEMPLATE); if(m_sIcons.size) { diff --git a/lib/data/stbi/stb_image.h b/lib/data/stbi/stb_image.h new file mode 100644 index 00000000..d0fa9c21 --- /dev/null +++ b/lib/data/stbi/stb_image.h @@ -0,0 +1,6437 @@ +/* stb_image - v2.06 - public domain image loader - http://nothings.org/stb_image.h + no warranty implied; use at your own risk + + Do this: + #define STB_IMAGE_IMPLEMENTATION + before you include this file in *one* C or C++ file to create the implementation. + + // i.e. it should look like this: + #include ... + #include ... + #include ... + #define STB_IMAGE_IMPLEMENTATION + #include "stb_image.h" + + You can #define STBI_ASSERT(x) before the #include to avoid using assert.h. + And #define STBI_MALLOC, STBI_REALLOC, and STBI_FREE to avoid using malloc,realloc,free + + + QUICK NOTES: + Primarily of interest to game developers and other people who can + avoid problematic images and only need the trivial interface + + JPEG baseline & progressive (12 bpc/arithmetic not supported, same as stock IJG lib) + PNG 1/2/4/8-bit-per-channel (16 bpc not supported) + + TGA (not sure what subset, if a subset) + BMP non-1bpp, non-RLE + PSD (composited view only, no extra channels) + + GIF (*comp always reports as 4-channel) + HDR (radiance rgbE format) + PIC (Softimage PIC) + PNM (PPM and PGM binary only) + + - decode from memory or through FILE (define STBI_NO_STDIO to remove code) + - decode from arbitrary I/O callbacks + - SIMD acceleration on x86/x64 (SSE2) and ARM (NEON) + + Full documentation under "DOCUMENTATION" below. + + + Revision 2.00 release notes: + + - Progressive JPEG is now supported. + + - PPM and PGM binary formats are now supported, thanks to Ken Miller. + + - x86 platforms now make use of SSE2 SIMD instructions for + JPEG decoding, and ARM platforms can use NEON SIMD if requested. + This work was done by Fabian "ryg" Giesen. SSE2 is used by + default, but NEON must be enabled explicitly; see docs. + + With other JPEG optimizations included in this version, we see + 2x speedup on a JPEG on an x86 machine, and a 1.5x speedup + on a JPEG on an ARM machine, relative to previous versions of this + library. The same results will not obtain for all JPGs and for all + x86/ARM machines. (Note that progressive JPEGs are significantly + slower to decode than regular JPEGs.) This doesn't mean that this + is the fastest JPEG decoder in the land; rather, it brings it + closer to parity with standard libraries. If you want the fastest + decode, look elsewhere. (See "Philosophy" section of docs below.) + + See final bullet items below for more info on SIMD. + + - Added STBI_MALLOC, STBI_REALLOC, and STBI_FREE macros for replacing + the memory allocator. Unlike other STBI libraries, these macros don't + support a context parameter, so if you need to pass a context in to + the allocator, you'll have to store it in a global or a thread-local + variable. + + - Split existing STBI_NO_HDR flag into two flags, STBI_NO_HDR and + STBI_NO_LINEAR. + STBI_NO_HDR: suppress implementation of .hdr reader format + STBI_NO_LINEAR: suppress high-dynamic-range light-linear float API + + - You can suppress implementation of any of the decoders to reduce + your code footprint by #defining one or more of the following + symbols before creating the implementation. + + STBI_NO_JPEG + STBI_NO_PNG + STBI_NO_BMP + STBI_NO_PSD + STBI_NO_TGA + STBI_NO_GIF + STBI_NO_HDR + STBI_NO_PIC + STBI_NO_PNM (.ppm and .pgm) + + - You can request *only* certain decoders and suppress all other ones + (this will be more forward-compatible, as addition of new decoders + doesn't require you to disable them explicitly): + + STBI_ONLY_JPEG + STBI_ONLY_PNG + STBI_ONLY_BMP + STBI_ONLY_PSD + STBI_ONLY_TGA + STBI_ONLY_GIF + STBI_ONLY_HDR + STBI_ONLY_PIC + STBI_ONLY_PNM (.ppm and .pgm) + + Note that you can define multiples of these, and you will get all + of them ("only x" and "only y" is interpreted to mean "only x&y"). + + - If you use STBI_NO_PNG (or _ONLY_ without PNG), and you still + want the zlib decoder to be available, #define STBI_SUPPORT_ZLIB + + - Compilation of all SIMD code can be suppressed with + #define STBI_NO_SIMD + It should not be necessary to disable SIMD unless you have issues + compiling (e.g. using an x86 compiler which doesn't support SSE + intrinsics or that doesn't support the method used to detect + SSE2 support at run-time), and even those can be reported as + bugs so I can refine the built-in compile-time checking to be + smarter. + + - The old STBI_SIMD system which allowed installing a user-defined + IDCT etc. has been removed. If you need this, don't upgrade. My + assumption is that almost nobody was doing this, and those who + were will find the built-in SIMD more satisfactory anyway. + + - RGB values computed for JPEG images are slightly different from + previous versions of stb_image. (This is due to using less + integer precision in SIMD.) The C code has been adjusted so + that the same RGB values will be computed regardless of whether + SIMD support is available, so your app should always produce + consistent results. But these results are slightly different from + previous versions. (Specifically, about 3% of available YCbCr values + will compute different RGB results from pre-1.49 versions by +-1; + most of the deviating values are one smaller in the G channel.) + + - If you must produce consistent results with previous versions of + stb_image, #define STBI_JPEG_OLD and you will get the same results + you used to; however, you will not get the SIMD speedups for + the YCbCr-to-RGB conversion step (although you should still see + significant JPEG speedup from the other changes). + + Please note that STBI_JPEG_OLD is a temporary feature; it will be + removed in future versions of the library. It is only intended for + near-term back-compatibility use. + + + Latest revision history: + 2.06 (2015-04-19) fix bug where PSD returns wrong '*comp' value + 2.05 (2015-04-19) fix bug in progressive JPEG handling, fix warning + 2.04 (2015-04-15) try to re-enable SIMD on MinGW 64-bit + 2.03 (2015-04-12) additional corruption checking + stbi_set_flip_vertically_on_load + fix NEON support; fix mingw support + 2.02 (2015-01-19) fix incorrect assert, fix warning + 2.01 (2015-01-17) fix various warnings + 2.00b (2014-12-25) fix STBI_MALLOC in progressive JPEG + 2.00 (2014-12-25) optimize JPEG, including x86 SSE2 & ARM NEON SIMD + progressive JPEG + PGM/PPM support + STBI_MALLOC,STBI_REALLOC,STBI_FREE + STBI_NO_*, STBI_ONLY_* + GIF bugfix + 1.48 (2014-12-14) fix incorrectly-named assert() + 1.47 (2014-12-14) 1/2/4-bit PNG support (both grayscale and paletted) + optimize PNG + fix bug in interlaced PNG with user-specified channel count + + See end of file for full revision history. + + + ============================ Contributors ========================= + + Image formats Bug fixes & warning fixes + Sean Barrett (jpeg, png, bmp) Marc LeBlanc + Nicolas Schulz (hdr, psd) Christpher Lloyd + Jonathan Dummer (tga) Dave Moore + Jean-Marc Lienher (gif) Won Chun + Tom Seddon (pic) the Horde3D community + Thatcher Ulrich (psd) Janez Zemva + Ken Miller (pgm, ppm) Jonathan Blow + Laurent Gomila + Aruelien Pocheville + Extensions, features Ryamond Barbiero + Jetro Lauha (stbi_info) David Woo + Martin "SpartanJ" Golini (stbi_info) Martin Golini + James "moose2000" Brown (iPhone PNG) Roy Eltham + Ben "Disch" Wenger (io callbacks) Luke Graham + Omar Cornut (1/2/4-bit PNG) Thomas Ruf + Nicolas Guillemot (vertical flip) John Bartholomew + Ken Hamada + Optimizations & bugfixes Cort Stratton + Fabian "ryg" Giesen Blazej Dariusz Roszkowski + Arseny Kapoulkine Thibault Reuille + Paul Du Bois + Guillaume George + If your name should be here but Jerry Jansson + isn't, let Sean know. Hayaki Saito + Johan Duparc + Ronny Chevalier + Michal Cichon + Tero Hanninen + Sergio Gonzalez + Cass Everitt + Engin Manap + Martins Mozeiko + Joseph Thomson + Phil Jordan + +License: + This software is in the public domain. Where that dedication is not + recognized, you are granted a perpetual, irrevocable license to copy + and modify this file however you want. + +*/ + +#ifndef STBI_INCLUDE_STB_IMAGE_H +#define STBI_INCLUDE_STB_IMAGE_H + +// DOCUMENTATION +// +// Limitations: +// - no 16-bit-per-channel PNG +// - no 12-bit-per-channel JPEG +// - no JPEGs with arithmetic coding +// - no 1-bit BMP +// - GIF always returns *comp=4 +// +// Basic usage (see HDR discussion below for HDR usage): +// int x,y,n; +// unsigned char *data = stbi_load(filename, &x, &y, &n, 0); +// // ... process data if not NULL ... +// // ... x = width, y = height, n = # 8-bit components per pixel ... +// // ... replace '0' with '1'..'4' to force that many components per pixel +// // ... but 'n' will always be the number that it would have been if you said 0 +// stbi_image_free(data) +// +// Standard parameters: +// int *x -- outputs image width in pixels +// int *y -- outputs image height in pixels +// int *comp -- outputs # of image components in image file +// int req_comp -- if non-zero, # of image components requested in result +// +// The return value from an image loader is an 'unsigned char *' which points +// to the pixel data, or NULL on an allocation failure or if the image is +// corrupt or invalid. The pixel data consists of *y scanlines of *x pixels, +// with each pixel consisting of N interleaved 8-bit components; the first +// pixel pointed to is top-left-most in the image. There is no padding between +// image scanlines or between pixels, regardless of format. The number of +// components N is 'req_comp' if req_comp is non-zero, or *comp otherwise. +// If req_comp is non-zero, *comp has the number of components that _would_ +// have been output otherwise. E.g. if you set req_comp to 4, you will always +// get RGBA output, but you can check *comp to see if it's trivially opaque +// because e.g. there were only 3 channels in the source image. +// +// An output image with N components has the following components interleaved +// in this order in each pixel: +// +// N=#comp components +// 1 grey +// 2 grey, alpha +// 3 red, green, blue +// 4 red, green, blue, alpha +// +// If image loading fails for any reason, the return value will be NULL, +// and *x, *y, *comp will be unchanged. The function stbi_failure_reason() +// can be queried for an extremely brief, end-user unfriendly explanation +// of why the load failed. Define STBI_NO_FAILURE_STRINGS to avoid +// compiling these strings at all, and STBI_FAILURE_USERMSG to get slightly +// more user-friendly ones. +// +// Paletted PNG, BMP, GIF, and PIC images are automatically depalettized. +// +// =========================================================================== +// +// Philosophy +// +// stb libraries are designed with the following priorities: +// +// 1. easy to use +// 2. easy to maintain +// 3. good performance +// +// Sometimes I let "good performance" creep up in priority over "easy to maintain", +// and for best performance I may provide less-easy-to-use APIs that give higher +// performance, in addition to the easy to use ones. Nevertheless, it's important +// to keep in mind that from the standpoint of you, a client of this library, +// all you care about is #1 and #3, and stb libraries do not emphasize #3 above all. +// +// Some secondary priorities arise directly from the first two, some of which +// make more explicit reasons why performance can't be emphasized. +// +// - Portable ("ease of use") +// - Small footprint ("easy to maintain") +// - No dependencies ("ease of use") +// +// =========================================================================== +// +// I/O callbacks +// +// I/O callbacks allow you to read from arbitrary sources, like packaged +// files or some other source. Data read from callbacks are processed +// through a small internal buffer (currently 128 bytes) to try to reduce +// overhead. +// +// The three functions you must define are "read" (reads some bytes of data), +// "skip" (skips some bytes of data), "eof" (reports if the stream is at the end). +// +// =========================================================================== +// +// SIMD support +// +// The JPEG decoder will try to automatically use SIMD kernels on x86 when +// supported by the compiler. For ARM Neon support, you must explicitly +// request it. +// +// (The old do-it-yourself SIMD API is no longer supported in the current +// code.) +// +// On x86, SSE2 will automatically be used when available based on a run-time +// test; if not, the generic C versions are used as a fall-back. On ARM targets, +// the typical path is to have separate builds for NEON and non-NEON devices +// (at least this is true for iOS and Android). Therefore, the NEON support is +// toggled by a build flag: define STBI_NEON to get NEON loops. +// +// The output of the JPEG decoder is slightly different from versions where +// SIMD support was introduced (that is, for versions before 1.49). The +// difference is only +-1 in the 8-bit RGB channels, and only on a small +// fraction of pixels. You can force the pre-1.49 behavior by defining +// STBI_JPEG_OLD, but this will disable some of the SIMD decoding path +// and hence cost some performance. +// +// If for some reason you do not want to use any of SIMD code, or if +// you have issues compiling it, you can disable it entirely by +// defining STBI_NO_SIMD. +// +// =========================================================================== +// +// HDR image support (disable by defining STBI_NO_HDR) +// +// stb_image now supports loading HDR images in general, and currently +// the Radiance .HDR file format, although the support is provided +// generically. You can still load any file through the existing interface; +// if you attempt to load an HDR file, it will be automatically remapped to +// LDR, assuming gamma 2.2 and an arbitrary scale factor defaulting to 1; +// both of these constants can be reconfigured through this interface: +// +// stbi_hdr_to_ldr_gamma(2.2f); +// stbi_hdr_to_ldr_scale(1.0f); +// +// (note, do not use _inverse_ constants; stbi_image will invert them +// appropriately). +// +// Additionally, there is a new, parallel interface for loading files as +// (linear) floats to preserve the full dynamic range: +// +// float *data = stbi_loadf(filename, &x, &y, &n, 0); +// +// If you load LDR images through this interface, those images will +// be promoted to floating point values, run through the inverse of +// constants corresponding to the above: +// +// stbi_ldr_to_hdr_scale(1.0f); +// stbi_ldr_to_hdr_gamma(2.2f); +// +// Finally, given a filename (or an open file or memory block--see header +// file for details) containing image data, you can query for the "most +// appropriate" interface to use (that is, whether the image is HDR or +// not), using: +// +// stbi_is_hdr(char *filename); +// +// =========================================================================== +// +// iPhone PNG support: +// +// By default we convert iphone-formatted PNGs back to RGB, even though +// they are internally encoded differently. You can disable this conversion +// by by calling stbi_convert_iphone_png_to_rgb(0), in which case +// you will always just get the native iphone "format" through (which +// is BGR stored in RGB). +// +// Call stbi_set_unpremultiply_on_load(1) as well to force a divide per +// pixel to remove any premultiplied alpha *only* if the image file explicitly +// says there's premultiplied data (currently only happens in iPhone images, +// and only if iPhone convert-to-rgb processing is on). +// + + +#ifndef STBI_NO_STDIO +#include +#endif // STBI_NO_STDIO + +#define STBI_VERSION 1 + +enum +{ + STBI_default = 0, // only used for req_comp + + STBI_grey = 1, + STBI_grey_alpha = 2, + STBI_rgb = 3, + STBI_rgb_alpha = 4 +}; + +typedef unsigned char stbi_uc; + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef STB_IMAGE_STATIC +#define STBIDEF static +#else +#define STBIDEF extern +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// PRIMARY API - works on images of any type +// + +// +// load image by filename, open file, or memory buffer +// + +typedef struct +{ + int (*read) (void *user,char *data,int size); // fill 'data' with 'size' bytes. return number of bytes actually read + void (*skip) (void *user,int n); // skip the next 'n' bytes, or 'unget' the last -n bytes if negative + int (*eof) (void *user); // returns nonzero if we are at end of file/data +} stbi_io_callbacks; + +STBIDEF stbi_uc *stbi_load (char const *filename, int *x, int *y, int *comp, int req_comp); +STBIDEF stbi_uc *stbi_load_from_memory (stbi_uc const *buffer, int len , int *x, int *y, int *comp, int req_comp); +STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk , void *user, int *x, int *y, int *comp, int req_comp); + +#ifndef STBI_NO_STDIO +STBIDEF stbi_uc *stbi_load_from_file (FILE *f, int *x, int *y, int *comp, int req_comp); +// for stbi_load_from_file, file pointer is left pointing immediately after image +#endif + +#ifndef STBI_NO_LINEAR + STBIDEF float *stbi_loadf (char const *filename, int *x, int *y, int *comp, int req_comp); + STBIDEF float *stbi_loadf_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp); + STBIDEF float *stbi_loadf_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp); + + #ifndef STBI_NO_STDIO + STBIDEF float *stbi_loadf_from_file (FILE *f, int *x, int *y, int *comp, int req_comp); + #endif +#endif + +#ifndef STBI_NO_HDR + STBIDEF void stbi_hdr_to_ldr_gamma(float gamma); + STBIDEF void stbi_hdr_to_ldr_scale(float scale); +#endif + +#ifndef STBI_NO_LINEAR + STBIDEF void stbi_ldr_to_hdr_gamma(float gamma); + STBIDEF void stbi_ldr_to_hdr_scale(float scale); +#endif // STBI_NO_HDR + +// stbi_is_hdr is always defined, but always returns false if STBI_NO_HDR +STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user); +STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len); +#ifndef STBI_NO_STDIO +STBIDEF int stbi_is_hdr (char const *filename); +STBIDEF int stbi_is_hdr_from_file(FILE *f); +#endif // STBI_NO_STDIO + + +// get a VERY brief reason for failure +// NOT THREADSAFE +STBIDEF const char *stbi_failure_reason (void); + +// free the loaded image -- this is just free() +STBIDEF void stbi_image_free (void *retval_from_stbi_load); + +// get image dimensions & components without fully decoding +STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp); +STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp); + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_info (char const *filename, int *x, int *y, int *comp); +STBIDEF int stbi_info_from_file (FILE *f, int *x, int *y, int *comp); + +#endif + + + +// for image formats that explicitly notate that they have premultiplied alpha, +// we just return the colors as stored in the file. set this flag to force +// unpremultiplication. results are undefined if the unpremultiply overflow. +STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply); + +// indicate whether we should process iphone images back to canonical format, +// or just pass them through "as-is" +STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert); + +// flip the image vertically, so the first pixel in the output array is the bottom left +STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip); + +// ZLIB client - used by PNG, available for other purposes + +STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen); +STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header); +STBIDEF char *stbi_zlib_decode_malloc(const char *buffer, int len, int *outlen); +STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, const char *ibuffer, int ilen); + +STBIDEF char *stbi_zlib_decode_noheader_malloc(const char *buffer, int len, int *outlen); +STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen); + + +#ifdef __cplusplus +} +#endif + +// +// +//// end header file ///////////////////////////////////////////////////// +#endif // STBI_INCLUDE_STB_IMAGE_H + +#ifdef STB_IMAGE_IMPLEMENTATION + +#if defined(STBI_ONLY_JPEG) || defined(STBI_ONLY_PNG) || defined(STBI_ONLY_BMP) \ + || defined(STBI_ONLY_TGA) || defined(STBI_ONLY_GIF) || defined(STBI_ONLY_PSD) \ + || defined(STBI_ONLY_HDR) || defined(STBI_ONLY_PIC) || defined(STBI_ONLY_PNM) \ + || defined(STBI_ONLY_ZLIB) + #ifndef STBI_ONLY_JPEG + #define STBI_NO_JPEG + #endif + #ifndef STBI_ONLY_PNG + #define STBI_NO_PNG + #endif + #ifndef STBI_ONLY_BMP + #define STBI_NO_BMP + #endif + #ifndef STBI_ONLY_PSD + #define STBI_NO_PSD + #endif + #ifndef STBI_ONLY_TGA + #define STBI_NO_TGA + #endif + #ifndef STBI_ONLY_GIF + #define STBI_NO_GIF + #endif + #ifndef STBI_ONLY_HDR + #define STBI_NO_HDR + #endif + #ifndef STBI_ONLY_PIC + #define STBI_NO_PIC + #endif + #ifndef STBI_ONLY_PNM + #define STBI_NO_PNM + #endif +#endif + +#if defined(STBI_NO_PNG) && !defined(STBI_SUPPORT_ZLIB) && !defined(STBI_NO_ZLIB) +#define STBI_NO_ZLIB +#endif + + +#include +#include // ptrdiff_t on osx +#include +#include + +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) +#include // ldexp +#endif + +#ifndef STBI_NO_STDIO +#include +#endif + +#ifndef STBI_ASSERT +#include +#define STBI_ASSERT(x) assert(x) +#endif + + +#ifndef _MSC_VER + #ifdef __cplusplus + #define stbi_inline inline + #else + #define stbi_inline + #endif +#else + #define stbi_inline __forceinline +#endif + + +#ifdef _MSC_VER +typedef unsigned short stbi__uint16; +typedef signed short stbi__int16; +typedef unsigned int stbi__uint32; +typedef signed int stbi__int32; +#else +#include +typedef uint16_t stbi__uint16; +typedef int16_t stbi__int16; +typedef uint32_t stbi__uint32; +typedef int32_t stbi__int32; +#endif + +// should produce compiler error if size is wrong +typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1]; + +#ifdef _MSC_VER +#define STBI_NOTUSED(v) (void)(v) +#else +#define STBI_NOTUSED(v) (void)sizeof(v) +#endif + +#ifdef _MSC_VER +#define STBI_HAS_LROTL +#endif + +#ifdef STBI_HAS_LROTL + #define stbi_lrot(x,y) _lrotl(x,y) +#else + #define stbi_lrot(x,y) (((x) << (y)) | ((x) >> (32 - (y)))) +#endif + +#if defined(STBI_MALLOC) && defined(STBI_FREE) && defined(STBI_REALLOC) +// ok +#elif !defined(STBI_MALLOC) && !defined(STBI_FREE) && !defined(STBI_REALLOC) +// ok +#else +#error "Must define all or none of STBI_MALLOC, STBI_FREE, and STBI_REALLOC." +#endif + +#ifndef STBI_MALLOC +#define STBI_MALLOC(sz) malloc(sz) +#define STBI_REALLOC(p,sz) realloc(p,sz) +#define STBI_FREE(p) free(p) +#endif + +// x86/x64 detection +#if defined(__x86_64__) || defined(_M_X64) +#define STBI__X64_TARGET +#elif defined(__i386) || defined(_M_IX86) +#define STBI__X86_TARGET +#endif + +#if defined(__GNUC__) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET)) && !defined(__SSE2__) && !defined(STBI_NO_SIMD) +// NOTE: not clear do we actually need this for the 64-bit path? +// gcc doesn't support sse2 intrinsics unless you compile with -msse2, +// (but compiling with -msse2 allows the compiler to use SSE2 everywhere; +// this is just broken and gcc are jerks for not fixing it properly +// http://www.virtualdub.org/blog/pivot/entry.php?id=363 ) +#define STBI_NO_SIMD +#endif + +#if defined(__MINGW32__) && defined(STBI__X86_TARGET) && !defined(STBI_MINGW_ENABLE_SSE2) && !defined(STBI_NO_SIMD) +// Note that __MINGW32__ doesn't actually mean 32-bit, so we have to avoid STBI__X64_TARGET +// +// 32-bit MinGW wants ESP to be 16-byte aligned, but this is not in the +// Windows ABI and VC++ as well as Windows DLLs don't maintain that invariant. +// As a result, enabling SSE2 on 32-bit MinGW is dangerous when not +// simultaneously enabling "-mstackrealign". +// +// See https://github.com/nothings/stb/issues/81 for more information. +// +// So default to no SSE2 on 32-bit MinGW. If you've read this far and added +// -mstackrealign to your build settings, feel free to #define STBI_MINGW_ENABLE_SSE2. +#define STBI_NO_SIMD +#endif + +#if !defined(STBI_NO_SIMD) && defined(STBI__X86_TARGET) +#define STBI_SSE2 +#include + +#ifdef _MSC_VER + +#if _MSC_VER >= 1400 // not VC6 +#include // __cpuid +static int stbi__cpuid3(void) +{ + int info[4]; + __cpuid(info,1); + return info[3]; +} +#else +static int stbi__cpuid3(void) +{ + int res; + __asm { + mov eax,1 + cpuid + mov res,edx + } + return res; +} +#endif + +#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name + +static int stbi__sse2_available() +{ + int info3 = stbi__cpuid3(); + return ((info3 >> 26) & 1) != 0; +} +#else // assume GCC-style if not VC++ +#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16))) + +static int stbi__sse2_available() +{ +#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 // GCC 4.8 or later + // GCC 4.8+ has a nice way to do this + return __builtin_cpu_supports("sse2"); +#else + // portable way to do this, preferably without using GCC inline ASM? + // just bail for now. + return 0; +#endif +} +#endif +#endif + +// ARM NEON +#if defined(STBI_NO_SIMD) && defined(STBI_NEON) +#undef STBI_NEON +#endif + +#ifdef STBI_NEON +#include +// assume GCC or Clang on ARM targets +#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16))) +#endif + +#ifndef STBI_SIMD_ALIGN +#define STBI_SIMD_ALIGN(type, name) type name +#endif + +/////////////////////////////////////////////// +// +// stbi__context struct and start_xxx functions + +// stbi__context structure is our basic context used by all images, so it +// contains all the IO context, plus some basic image information +typedef struct +{ + stbi__uint32 img_x, img_y; + int img_n, img_out_n; + + stbi_io_callbacks io; + void *io_user_data; + + int read_from_callbacks; + int buflen; + stbi_uc buffer_start[128]; + + stbi_uc *img_buffer, *img_buffer_end; + stbi_uc *img_buffer_original; +} stbi__context; + + +static void stbi__refill_buffer(stbi__context *s); + +// initialize a memory-decode context +static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len) +{ + s->io.read = NULL; + s->read_from_callbacks = 0; + s->img_buffer = s->img_buffer_original = (stbi_uc *) buffer; + s->img_buffer_end = (stbi_uc *) buffer+len; +} + +// initialize a callback-based context +static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user) +{ + s->io = *c; + s->io_user_data = user; + s->buflen = sizeof(s->buffer_start); + s->read_from_callbacks = 1; + s->img_buffer_original = s->buffer_start; + stbi__refill_buffer(s); +} + +#ifndef STBI_NO_STDIO + +static int stbi__stdio_read(void *user, char *data, int size) +{ + return (int) fread(data,1,size,(FILE*) user); +} + +static void stbi__stdio_skip(void *user, int n) +{ + fseek((FILE*) user, n, SEEK_CUR); +} + +static int stbi__stdio_eof(void *user) +{ + return feof((FILE*) user); +} + +static stbi_io_callbacks stbi__stdio_callbacks = +{ + stbi__stdio_read, + stbi__stdio_skip, + stbi__stdio_eof, +}; + +static void stbi__start_file(stbi__context *s, FILE *f) +{ + stbi__start_callbacks(s, &stbi__stdio_callbacks, (void *) f); +} + +//static void stop_file(stbi__context *s) { } + +#endif // !STBI_NO_STDIO + +static void stbi__rewind(stbi__context *s) +{ + // conceptually rewind SHOULD rewind to the beginning of the stream, + // but we just rewind to the beginning of the initial buffer, because + // we only use it after doing 'test', which only ever looks at at most 92 bytes + s->img_buffer = s->img_buffer_original; +} + +#ifndef STBI_NO_JPEG +static int stbi__jpeg_test(stbi__context *s); +static stbi_uc *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp); +static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PNG +static int stbi__png_test(stbi__context *s); +static stbi_uc *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp); +static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_BMP +static int stbi__bmp_test(stbi__context *s); +static stbi_uc *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp); +static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_TGA +static int stbi__tga_test(stbi__context *s); +static stbi_uc *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp); +static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PSD +static int stbi__psd_test(stbi__context *s); +static stbi_uc *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp); +static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_HDR +static int stbi__hdr_test(stbi__context *s); +static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp); +static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PIC +static int stbi__pic_test(stbi__context *s); +static stbi_uc *stbi__pic_load(stbi__context *s, int *x, int *y, int *comp, int req_comp); +static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_GIF +static int stbi__gif_test(stbi__context *s); +static stbi_uc *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp); +static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PNM +static int stbi__pnm_test(stbi__context *s); +static stbi_uc *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp); +static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +// this is not threadsafe +static const char *stbi__g_failure_reason; + +STBIDEF const char *stbi_failure_reason(void) +{ + return stbi__g_failure_reason; +} + +static int stbi__err(const char *str) +{ + stbi__g_failure_reason = str; + return 0; +} + +static void *stbi__malloc(size_t size) +{ + return STBI_MALLOC(size); +} + +// stbi__err - error +// stbi__errpf - error returning pointer to float +// stbi__errpuc - error returning pointer to unsigned char + +#ifdef STBI_NO_FAILURE_STRINGS + #define stbi__err(x,y) 0 +#elif defined(STBI_FAILURE_USERMSG) + #define stbi__err(x,y) stbi__err(y) +#else + #define stbi__err(x,y) stbi__err(x) +#endif + +#define stbi__errpf(x,y) ((float *) (stbi__err(x,y)?NULL:NULL)) +#define stbi__errpuc(x,y) ((unsigned char *) (stbi__err(x,y)?NULL:NULL)) + +STBIDEF void stbi_image_free(void *retval_from_stbi_load) +{ + STBI_FREE(retval_from_stbi_load); +} + +#ifndef STBI_NO_LINEAR +static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp); +#endif + +#ifndef STBI_NO_HDR +static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp); +#endif + +static int stbi__vertically_flip_on_load = 0; + +STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip) +{ + stbi__vertically_flip_on_load = flag_true_if_should_flip; +} + +static unsigned char *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + #ifndef STBI_NO_JPEG + if (stbi__jpeg_test(s)) return stbi__jpeg_load(s,x,y,comp,req_comp); + #endif + #ifndef STBI_NO_PNG + if (stbi__png_test(s)) return stbi__png_load(s,x,y,comp,req_comp); + #endif + #ifndef STBI_NO_BMP + if (stbi__bmp_test(s)) return stbi__bmp_load(s,x,y,comp,req_comp); + #endif + #ifndef STBI_NO_GIF + if (stbi__gif_test(s)) return stbi__gif_load(s,x,y,comp,req_comp); + #endif + #ifndef STBI_NO_PSD + if (stbi__psd_test(s)) return stbi__psd_load(s,x,y,comp,req_comp); + #endif + #ifndef STBI_NO_PIC + if (stbi__pic_test(s)) return stbi__pic_load(s,x,y,comp,req_comp); + #endif + #ifndef STBI_NO_PNM + if (stbi__pnm_test(s)) return stbi__pnm_load(s,x,y,comp,req_comp); + #endif + + #ifndef STBI_NO_HDR + if (stbi__hdr_test(s)) { + float *hdr = stbi__hdr_load(s, x,y,comp,req_comp); + return stbi__hdr_to_ldr(hdr, *x, *y, req_comp ? req_comp : *comp); + } + #endif + + #ifndef STBI_NO_TGA + // test tga last because it's a crappy test! + if (stbi__tga_test(s)) + return stbi__tga_load(s,x,y,comp,req_comp); + #endif + + return stbi__errpuc("unknown image type", "Image not of any known type, or corrupt"); +} + +static unsigned char *stbi__load_flip(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + unsigned char *result = stbi__load_main(s, x, y, comp, req_comp); + + if (stbi__vertically_flip_on_load && result != NULL) { + int w = *x, h = *y; + int depth = req_comp ? req_comp : *comp; + int row,col,z; + stbi_uc temp; + + // @OPTIMIZE: use a bigger temp buffer and memcpy multiple pixels at once + for (row = 0; row < (h>>1); row++) { + for (col = 0; col < w; col++) { + for (z = 0; z < depth; z++) { + temp = result[(row * w + col) * depth + z]; + result[(row * w + col) * depth + z] = result[((h - row - 1) * w + col) * depth + z]; + result[((h - row - 1) * w + col) * depth + z] = temp; + } + } + } + } + + return result; +} + +static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp) +{ + if (stbi__vertically_flip_on_load && result != NULL) { + int w = *x, h = *y; + int depth = req_comp ? req_comp : *comp; + int row,col,z; + float temp; + + // @OPTIMIZE: use a bigger temp buffer and memcpy multiple pixels at once + for (row = 0; row < (h>>1); row++) { + for (col = 0; col < w; col++) { + for (z = 0; z < depth; z++) { + temp = result[(row * w + col) * depth + z]; + result[(row * w + col) * depth + z] = result[((h - row - 1) * w + col) * depth + z]; + result[((h - row - 1) * w + col) * depth + z] = temp; + } + } + } + } +} + + +#ifndef STBI_NO_STDIO + +static FILE *stbi__fopen(char const *filename, char const *mode) +{ + FILE *f; +#if defined(_MSC_VER) && _MSC_VER >= 1400 + if (0 != fopen_s(&f, filename, mode)) + f=0; +#else + f = fopen(filename, mode); +#endif + return f; +} + + +STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + unsigned char *result; + if (!f) return stbi__errpuc("can't fopen", "Unable to open file"); + result = stbi_load_from_file(f,x,y,comp,req_comp); + fclose(f); + return result; +} + +STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + unsigned char *result; + stbi__context s; + stbi__start_file(&s,f); + result = stbi__load_flip(&s,x,y,comp,req_comp); + if (result) { + // need to 'unget' all the characters in the IO buffer + fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR); + } + return result; +} +#endif //!STBI_NO_STDIO + +STBIDEF stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__load_flip(&s,x,y,comp,req_comp); +} + +STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__load_flip(&s,x,y,comp,req_comp); +} + +#ifndef STBI_NO_LINEAR +static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + unsigned char *data; + #ifndef STBI_NO_HDR + if (stbi__hdr_test(s)) { + float *hdr_data = stbi__hdr_load(s,x,y,comp,req_comp); + if (hdr_data) + stbi__float_postprocess(hdr_data,x,y,comp,req_comp); + return hdr_data; + } + #endif + data = stbi__load_flip(s, x, y, comp, req_comp); + if (data) + return stbi__ldr_to_hdr(data, *x, *y, req_comp ? req_comp : *comp); + return stbi__errpf("unknown image type", "Image not of any known type, or corrupt"); +} + +STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} + +STBIDEF float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} + +#ifndef STBI_NO_STDIO +STBIDEF float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + float *result; + FILE *f = stbi__fopen(filename, "rb"); + if (!f) return stbi__errpf("can't fopen", "Unable to open file"); + result = stbi_loadf_from_file(f,x,y,comp,req_comp); + fclose(f); + return result; +} + +STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_file(&s,f); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} +#endif // !STBI_NO_STDIO + +#endif // !STBI_NO_LINEAR + +// these is-hdr-or-not is defined independent of whether STBI_NO_LINEAR is +// defined, for API simplicity; if STBI_NO_LINEAR is defined, it always +// reports false! + +STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len) +{ + #ifndef STBI_NO_HDR + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__hdr_test(&s); + #else + STBI_NOTUSED(buffer); + STBI_NOTUSED(len); + return 0; + #endif +} + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_is_hdr (char const *filename) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result=0; + if (f) { + result = stbi_is_hdr_from_file(f); + fclose(f); + } + return result; +} + +STBIDEF int stbi_is_hdr_from_file(FILE *f) +{ + #ifndef STBI_NO_HDR + stbi__context s; + stbi__start_file(&s,f); + return stbi__hdr_test(&s); + #else + return 0; + #endif +} +#endif // !STBI_NO_STDIO + +STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user) +{ + #ifndef STBI_NO_HDR + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__hdr_test(&s); + #else + return 0; + #endif +} + +static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f; +static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f; + +#ifndef STBI_NO_LINEAR +STBIDEF void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; } +STBIDEF void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; } +#endif + +STBIDEF void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; } +STBIDEF void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; } + + +////////////////////////////////////////////////////////////////////////////// +// +// Common code used by all image loaders +// + +enum +{ + STBI__SCAN_load=0, + STBI__SCAN_type, + STBI__SCAN_header +}; + +static void stbi__refill_buffer(stbi__context *s) +{ + int n = (s->io.read)(s->io_user_data,(char*)s->buffer_start,s->buflen); + if (n == 0) { + // at end of file, treat same as if from memory, but need to handle case + // where s->img_buffer isn't pointing to safe memory, e.g. 0-byte file + s->read_from_callbacks = 0; + s->img_buffer = s->buffer_start; + s->img_buffer_end = s->buffer_start+1; + *s->img_buffer = 0; + } else { + s->img_buffer = s->buffer_start; + s->img_buffer_end = s->buffer_start + n; + } +} + +stbi_inline static stbi_uc stbi__get8(stbi__context *s) +{ + if (s->img_buffer < s->img_buffer_end) + return *s->img_buffer++; + if (s->read_from_callbacks) { + stbi__refill_buffer(s); + return *s->img_buffer++; + } + return 0; +} + +stbi_inline static int stbi__at_eof(stbi__context *s) +{ + if (s->io.read) { + if (!(s->io.eof)(s->io_user_data)) return 0; + // if feof() is true, check if buffer = end + // special case: we've only got the special 0 character at the end + if (s->read_from_callbacks == 0) return 1; + } + + return s->img_buffer >= s->img_buffer_end; +} + +static void stbi__skip(stbi__context *s, int n) +{ + if (n < 0) { + s->img_buffer = s->img_buffer_end; + return; + } + if (s->io.read) { + int blen = (int) (s->img_buffer_end - s->img_buffer); + if (blen < n) { + s->img_buffer = s->img_buffer_end; + (s->io.skip)(s->io_user_data, n - blen); + return; + } + } + s->img_buffer += n; +} + +static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n) +{ + if (s->io.read) { + int blen = (int) (s->img_buffer_end - s->img_buffer); + if (blen < n) { + int res, count; + + memcpy(buffer, s->img_buffer, blen); + + count = (s->io.read)(s->io_user_data, (char*) buffer + blen, n - blen); + res = (count == (n-blen)); + s->img_buffer = s->img_buffer_end; + return res; + } + } + + if (s->img_buffer+n <= s->img_buffer_end) { + memcpy(buffer, s->img_buffer, n); + s->img_buffer += n; + return 1; + } else + return 0; +} + +static int stbi__get16be(stbi__context *s) +{ + int z = stbi__get8(s); + return (z << 8) + stbi__get8(s); +} + +static stbi__uint32 stbi__get32be(stbi__context *s) +{ + stbi__uint32 z = stbi__get16be(s); + return (z << 16) + stbi__get16be(s); +} + +static int stbi__get16le(stbi__context *s) +{ + int z = stbi__get8(s); + return z + (stbi__get8(s) << 8); +} + +static stbi__uint32 stbi__get32le(stbi__context *s) +{ + stbi__uint32 z = stbi__get16le(s); + return z + (stbi__get16le(s) << 16); +} + +#define STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) // truncate int to byte without warnings + + +////////////////////////////////////////////////////////////////////////////// +// +// generic converter from built-in img_n to req_comp +// individual types do this automatically as much as possible (e.g. jpeg +// does all cases internally since it needs to colorspace convert anyway, +// and it never has alpha, so very few cases ). png can automatically +// interleave an alpha=255 channel, but falls back to this for other cases +// +// assume data buffer is malloced, so malloc a new one and free that one +// only failure mode is malloc failing + +static stbi_uc stbi__compute_y(int r, int g, int b) +{ + return (stbi_uc) (((r*77) + (g*150) + (29*b)) >> 8); +} + +static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y) +{ + int i,j; + unsigned char *good; + + if (req_comp == img_n) return data; + STBI_ASSERT(req_comp >= 1 && req_comp <= 4); + + good = (unsigned char *) stbi__malloc(req_comp * x * y); + if (good == NULL) { + STBI_FREE(data); + return stbi__errpuc("outofmem", "Out of memory"); + } + + for (j=0; j < (int) y; ++j) { + unsigned char *src = data + j * x * img_n ; + unsigned char *dest = good + j * x * req_comp; + + #define COMBO(a,b) ((a)*8+(b)) + #define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b) + // convert source image with img_n components to one with req_comp components; + // avoid switch per pixel, so use switch per scanline and massive macros + switch (COMBO(img_n, req_comp)) { + CASE(1,2) dest[0]=src[0], dest[1]=255; break; + CASE(1,3) dest[0]=dest[1]=dest[2]=src[0]; break; + CASE(1,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=255; break; + CASE(2,1) dest[0]=src[0]; break; + CASE(2,3) dest[0]=dest[1]=dest[2]=src[0]; break; + CASE(2,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=src[1]; break; + CASE(3,4) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2],dest[3]=255; break; + CASE(3,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break; + CASE(3,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = 255; break; + CASE(4,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break; + CASE(4,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = src[3]; break; + CASE(4,3) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2]; break; + default: STBI_ASSERT(0); + } + #undef CASE + } + + STBI_FREE(data); + return good; +} + +#ifndef STBI_NO_LINEAR +static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp) +{ + int i,k,n; + float *output = (float *) stbi__malloc(x * y * comp * sizeof(float)); + if (output == NULL) { STBI_FREE(data); return stbi__errpf("outofmem", "Out of memory"); } + // compute number of non-alpha components + if (comp & 1) n = comp; else n = comp-1; + for (i=0; i < x*y; ++i) { + for (k=0; k < n; ++k) { + output[i*comp + k] = (float) (pow(data[i*comp+k]/255.0f, stbi__l2h_gamma) * stbi__l2h_scale); + } + if (k < comp) output[i*comp + k] = data[i*comp+k]/255.0f; + } + STBI_FREE(data); + return output; +} +#endif + +#ifndef STBI_NO_HDR +#define stbi__float2int(x) ((int) (x)) +static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp) +{ + int i,k,n; + stbi_uc *output = (stbi_uc *) stbi__malloc(x * y * comp); + if (output == NULL) { STBI_FREE(data); return stbi__errpuc("outofmem", "Out of memory"); } + // compute number of non-alpha components + if (comp & 1) n = comp; else n = comp-1; + for (i=0; i < x*y; ++i) { + for (k=0; k < n; ++k) { + float z = (float) pow(data[i*comp+k]*stbi__h2l_scale_i, stbi__h2l_gamma_i) * 255 + 0.5f; + if (z < 0) z = 0; + if (z > 255) z = 255; + output[i*comp + k] = (stbi_uc) stbi__float2int(z); + } + if (k < comp) { + float z = data[i*comp+k] * 255 + 0.5f; + if (z < 0) z = 0; + if (z > 255) z = 255; + output[i*comp + k] = (stbi_uc) stbi__float2int(z); + } + } + STBI_FREE(data); + return output; +} +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// "baseline" JPEG/JFIF decoder +// +// simple implementation +// - doesn't support delayed output of y-dimension +// - simple interface (only one output format: 8-bit interleaved RGB) +// - doesn't try to recover corrupt jpegs +// - doesn't allow partial loading, loading multiple at once +// - still fast on x86 (copying globals into locals doesn't help x86) +// - allocates lots of intermediate memory (full size of all components) +// - non-interleaved case requires this anyway +// - allows good upsampling (see next) +// high-quality +// - upsampled channels are bilinearly interpolated, even across blocks +// - quality integer IDCT derived from IJG's 'slow' +// performance +// - fast huffman; reasonable integer IDCT +// - some SIMD kernels for common paths on targets with SSE2/NEON +// - uses a lot of intermediate memory, could cache poorly + +#ifndef STBI_NO_JPEG + +// huffman decoding acceleration +#define FAST_BITS 9 // larger handles more cases; smaller stomps less cache + +typedef struct +{ + stbi_uc fast[1 << FAST_BITS]; + // weirdly, repacking this into AoS is a 10% speed loss, instead of a win + stbi__uint16 code[256]; + stbi_uc values[256]; + stbi_uc size[257]; + unsigned int maxcode[18]; + int delta[17]; // old 'firstsymbol' - old 'firstcode' +} stbi__huffman; + +typedef struct +{ + stbi__context *s; + stbi__huffman huff_dc[4]; + stbi__huffman huff_ac[4]; + stbi_uc dequant[4][64]; + stbi__int16 fast_ac[4][1 << FAST_BITS]; + +// sizes for components, interleaved MCUs + int img_h_max, img_v_max; + int img_mcu_x, img_mcu_y; + int img_mcu_w, img_mcu_h; + +// definition of jpeg image component + struct + { + int id; + int h,v; + int tq; + int hd,ha; + int dc_pred; + + int x,y,w2,h2; + stbi_uc *data; + void *raw_data, *raw_coeff; + stbi_uc *linebuf; + short *coeff; // progressive only + int coeff_w, coeff_h; // number of 8x8 coefficient blocks + } img_comp[4]; + + stbi__uint32 code_buffer; // jpeg entropy-coded buffer + int code_bits; // number of valid bits + unsigned char marker; // marker seen while filling entropy buffer + int nomore; // flag if we saw a marker so must stop + + int progressive; + int spec_start; + int spec_end; + int succ_high; + int succ_low; + int eob_run; + + int scan_n, order[4]; + int restart_interval, todo; + +// kernels + void (*idct_block_kernel)(stbi_uc *out, int out_stride, short data[64]); + void (*YCbCr_to_RGB_kernel)(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step); + stbi_uc *(*resample_row_hv_2_kernel)(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs); +} stbi__jpeg; + +static int stbi__build_huffman(stbi__huffman *h, int *count) +{ + int i,j,k=0,code; + // build size list for each symbol (from JPEG spec) + for (i=0; i < 16; ++i) + for (j=0; j < count[i]; ++j) + h->size[k++] = (stbi_uc) (i+1); + h->size[k] = 0; + + // compute actual symbols (from jpeg spec) + code = 0; + k = 0; + for(j=1; j <= 16; ++j) { + // compute delta to add to code to compute symbol id + h->delta[j] = k - code; + if (h->size[k] == j) { + while (h->size[k] == j) + h->code[k++] = (stbi__uint16) (code++); + if (code-1 >= (1 << j)) return stbi__err("bad code lengths","Corrupt JPEG"); + } + // compute largest code + 1 for this size, preshifted as needed later + h->maxcode[j] = code << (16-j); + code <<= 1; + } + h->maxcode[j] = 0xffffffff; + + // build non-spec acceleration table; 255 is flag for not-accelerated + memset(h->fast, 255, 1 << FAST_BITS); + for (i=0; i < k; ++i) { + int s = h->size[i]; + if (s <= FAST_BITS) { + int c = h->code[i] << (FAST_BITS-s); + int m = 1 << (FAST_BITS-s); + for (j=0; j < m; ++j) { + h->fast[c+j] = (stbi_uc) i; + } + } + } + return 1; +} + +// build a table that decodes both magnitude and value of small ACs in +// one go. +static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h) +{ + int i; + for (i=0; i < (1 << FAST_BITS); ++i) { + stbi_uc fast = h->fast[i]; + fast_ac[i] = 0; + if (fast < 255) { + int rs = h->values[fast]; + int run = (rs >> 4) & 15; + int magbits = rs & 15; + int len = h->size[fast]; + + if (magbits && len + magbits <= FAST_BITS) { + // magnitude code followed by receive_extend code + int k = ((i << len) & ((1 << FAST_BITS) - 1)) >> (FAST_BITS - magbits); + int m = 1 << (magbits - 1); + if (k < m) k += (-1 << magbits) + 1; + // if the result is small enough, we can fit it in fast_ac table + if (k >= -128 && k <= 127) + fast_ac[i] = (stbi__int16) ((k << 8) + (run << 4) + (len + magbits)); + } + } + } +} + +static void stbi__grow_buffer_unsafe(stbi__jpeg *j) +{ + do { + int b = j->nomore ? 0 : stbi__get8(j->s); + if (b == 0xff) { + int c = stbi__get8(j->s); + if (c != 0) { + j->marker = (unsigned char) c; + j->nomore = 1; + return; + } + } + j->code_buffer |= b << (24 - j->code_bits); + j->code_bits += 8; + } while (j->code_bits <= 24); +} + +// (1 << n) - 1 +static stbi__uint32 stbi__bmask[17]={0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535}; + +// decode a jpeg huffman value from the bitstream +stbi_inline static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h) +{ + unsigned int temp; + int c,k; + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + + // look at the top FAST_BITS and determine what symbol ID it is, + // if the code is <= FAST_BITS + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + k = h->fast[c]; + if (k < 255) { + int s = h->size[k]; + if (s > j->code_bits) + return -1; + j->code_buffer <<= s; + j->code_bits -= s; + return h->values[k]; + } + + // naive test is to shift the code_buffer down so k bits are + // valid, then test against maxcode. To speed this up, we've + // preshifted maxcode left so that it has (16-k) 0s at the + // end; in other words, regardless of the number of bits, it + // wants to be compared against something shifted to have 16; + // that way we don't need to shift inside the loop. + temp = j->code_buffer >> 16; + for (k=FAST_BITS+1 ; ; ++k) + if (temp < h->maxcode[k]) + break; + if (k == 17) { + // error! code not found + j->code_bits -= 16; + return -1; + } + + if (k > j->code_bits) + return -1; + + // convert the huffman code to the symbol id + c = ((j->code_buffer >> (32 - k)) & stbi__bmask[k]) + h->delta[k]; + STBI_ASSERT((((j->code_buffer) >> (32 - h->size[c])) & stbi__bmask[h->size[c]]) == h->code[c]); + + // convert the id to a symbol + j->code_bits -= k; + j->code_buffer <<= k; + return h->values[c]; +} + +// bias[n] = (-1<code_bits < n) stbi__grow_buffer_unsafe(j); + + sgn = (stbi__int32)j->code_buffer >> 31; // sign bit is always in MSB + k = stbi_lrot(j->code_buffer, n); + STBI_ASSERT(n >= 0 && n < (int) (sizeof(stbi__bmask)/sizeof(*stbi__bmask))); + j->code_buffer = k & ~stbi__bmask[n]; + k &= stbi__bmask[n]; + j->code_bits -= n; + return k + (stbi__jbias[n] & ~sgn); +} + +// get some unsigned bits +stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg *j, int n) +{ + unsigned int k; + if (j->code_bits < n) stbi__grow_buffer_unsafe(j); + k = stbi_lrot(j->code_buffer, n); + j->code_buffer = k & ~stbi__bmask[n]; + k &= stbi__bmask[n]; + j->code_bits -= n; + return k; +} + +stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg *j) +{ + unsigned int k; + if (j->code_bits < 1) stbi__grow_buffer_unsafe(j); + k = j->code_buffer; + j->code_buffer <<= 1; + --j->code_bits; + return k & 0x80000000; +} + +// given a value that's at position X in the zigzag stream, +// where does it appear in the 8x8 matrix coded as row-major? +static stbi_uc stbi__jpeg_dezigzag[64+15] = +{ + 0, 1, 8, 16, 9, 2, 3, 10, + 17, 24, 32, 25, 18, 11, 4, 5, + 12, 19, 26, 33, 40, 48, 41, 34, + 27, 20, 13, 6, 7, 14, 21, 28, + 35, 42, 49, 56, 57, 50, 43, 36, + 29, 22, 15, 23, 30, 37, 44, 51, + 58, 59, 52, 45, 38, 31, 39, 46, + 53, 60, 61, 54, 47, 55, 62, 63, + // let corrupt input sample past end + 63, 63, 63, 63, 63, 63, 63, 63, + 63, 63, 63, 63, 63, 63, 63 +}; + +// decode one 64-entry block-- +static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi_uc *dequant) +{ + int diff,dc,k; + int t; + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + t = stbi__jpeg_huff_decode(j, hdc); + if (t < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + + // 0 all the ac values now so we can do it 32-bits at a time + memset(data,0,64*sizeof(data[0])); + + diff = t ? stbi__extend_receive(j, t) : 0; + dc = j->img_comp[b].dc_pred + diff; + j->img_comp[b].dc_pred = dc; + data[0] = (short) (dc * dequant[0]); + + // decode AC components, see JPEG spec + k = 1; + do { + unsigned int zig; + int c,r,s; + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + r = fac[c]; + if (r) { // fast-AC path + k += (r >> 4) & 15; // run + s = r & 15; // combined length + j->code_buffer <<= s; + j->code_bits -= s; + // decode into unzigzag'd location + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) ((r >> 8) * dequant[zig]); + } else { + int rs = stbi__jpeg_huff_decode(j, hac); + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (rs != 0xf0) break; // end block + k += 16; + } else { + k += r; + // decode into unzigzag'd location + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) (stbi__extend_receive(j,s) * dequant[zig]); + } + } + } while (k < 64); + return 1; +} + +static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b) +{ + int diff,dc; + int t; + if (j->spec_end != 0) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + + if (j->succ_high == 0) { + // first scan for DC coefficient, must be first + memset(data,0,64*sizeof(data[0])); // 0 all the ac values now + t = stbi__jpeg_huff_decode(j, hdc); + diff = t ? stbi__extend_receive(j, t) : 0; + + dc = j->img_comp[b].dc_pred + diff; + j->img_comp[b].dc_pred = dc; + data[0] = (short) (dc << j->succ_low); + } else { + // refinement scan for DC coefficient + if (stbi__jpeg_get_bit(j)) + data[0] += (short) (1 << j->succ_low); + } + return 1; +} + +// @OPTIMIZE: store non-zigzagged during the decode passes, +// and only de-zigzag when dequantizing +static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac) +{ + int k; + if (j->spec_start == 0) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + + if (j->succ_high == 0) { + int shift = j->succ_low; + + if (j->eob_run) { + --j->eob_run; + return 1; + } + + k = j->spec_start; + do { + unsigned int zig; + int c,r,s; + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + r = fac[c]; + if (r) { // fast-AC path + k += (r >> 4) & 15; // run + s = r & 15; // combined length + j->code_buffer <<= s; + j->code_bits -= s; + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) ((r >> 8) << shift); + } else { + int rs = stbi__jpeg_huff_decode(j, hac); + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (r < 15) { + j->eob_run = (1 << r); + if (r) + j->eob_run += stbi__jpeg_get_bits(j, r); + --j->eob_run; + break; + } + k += 16; + } else { + k += r; + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) (stbi__extend_receive(j,s) << shift); + } + } + } while (k <= j->spec_end); + } else { + // refinement scan for these AC coefficients + + short bit = (short) (1 << j->succ_low); + + if (j->eob_run) { + --j->eob_run; + for (k = j->spec_start; k <= j->spec_end; ++k) { + short *p = &data[stbi__jpeg_dezigzag[k]]; + if (*p != 0) + if (stbi__jpeg_get_bit(j)) + if ((*p & bit)==0) { + if (*p > 0) + *p += bit; + else + *p -= bit; + } + } + } else { + k = j->spec_start; + do { + int r,s; + int rs = stbi__jpeg_huff_decode(j, hac); // @OPTIMIZE see if we can use the fast path here, advance-by-r is so slow, eh + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (r < 15) { + j->eob_run = (1 << r) - 1; + if (r) + j->eob_run += stbi__jpeg_get_bits(j, r); + r = 64; // force end of block + } else { + // r=15 s=0 should write 16 0s, so we just do + // a run of 15 0s and then write s (which is 0), + // so we don't have to do anything special here + } + } else { + if (s != 1) return stbi__err("bad huffman code", "Corrupt JPEG"); + // sign bit + if (stbi__jpeg_get_bit(j)) + s = bit; + else + s = -bit; + } + + // advance by r + while (k <= j->spec_end) { + short *p = &data[stbi__jpeg_dezigzag[k++]]; + if (*p != 0) { + if (stbi__jpeg_get_bit(j)) + if ((*p & bit)==0) { + if (*p > 0) + *p += bit; + else + *p -= bit; + } + } else { + if (r == 0) { + *p = (short) s; + break; + } + --r; + } + } + } while (k <= j->spec_end); + } + } + return 1; +} + +// take a -128..127 value and stbi__clamp it and convert to 0..255 +stbi_inline static stbi_uc stbi__clamp(int x) +{ + // trick to use a single test to catch both cases + if ((unsigned int) x > 255) { + if (x < 0) return 0; + if (x > 255) return 255; + } + return (stbi_uc) x; +} + +#define stbi__f2f(x) ((int) (((x) * 4096 + 0.5))) +#define stbi__fsh(x) ((x) << 12) + +// derived from jidctint -- DCT_ISLOW +#define STBI__IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \ + int t0,t1,t2,t3,p1,p2,p3,p4,p5,x0,x1,x2,x3; \ + p2 = s2; \ + p3 = s6; \ + p1 = (p2+p3) * stbi__f2f(0.5411961f); \ + t2 = p1 + p3*stbi__f2f(-1.847759065f); \ + t3 = p1 + p2*stbi__f2f( 0.765366865f); \ + p2 = s0; \ + p3 = s4; \ + t0 = stbi__fsh(p2+p3); \ + t1 = stbi__fsh(p2-p3); \ + x0 = t0+t3; \ + x3 = t0-t3; \ + x1 = t1+t2; \ + x2 = t1-t2; \ + t0 = s7; \ + t1 = s5; \ + t2 = s3; \ + t3 = s1; \ + p3 = t0+t2; \ + p4 = t1+t3; \ + p1 = t0+t3; \ + p2 = t1+t2; \ + p5 = (p3+p4)*stbi__f2f( 1.175875602f); \ + t0 = t0*stbi__f2f( 0.298631336f); \ + t1 = t1*stbi__f2f( 2.053119869f); \ + t2 = t2*stbi__f2f( 3.072711026f); \ + t3 = t3*stbi__f2f( 1.501321110f); \ + p1 = p5 + p1*stbi__f2f(-0.899976223f); \ + p2 = p5 + p2*stbi__f2f(-2.562915447f); \ + p3 = p3*stbi__f2f(-1.961570560f); \ + p4 = p4*stbi__f2f(-0.390180644f); \ + t3 += p1+p4; \ + t2 += p2+p3; \ + t1 += p2+p4; \ + t0 += p1+p3; + +static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64]) +{ + int i,val[64],*v=val; + stbi_uc *o; + short *d = data; + + // columns + for (i=0; i < 8; ++i,++d, ++v) { + // if all zeroes, shortcut -- this avoids dequantizing 0s and IDCTing + if (d[ 8]==0 && d[16]==0 && d[24]==0 && d[32]==0 + && d[40]==0 && d[48]==0 && d[56]==0) { + // no shortcut 0 seconds + // (1|2|3|4|5|6|7)==0 0 seconds + // all separate -0.047 seconds + // 1 && 2|3 && 4|5 && 6|7: -0.047 seconds + int dcterm = d[0] << 2; + v[0] = v[8] = v[16] = v[24] = v[32] = v[40] = v[48] = v[56] = dcterm; + } else { + STBI__IDCT_1D(d[ 0],d[ 8],d[16],d[24],d[32],d[40],d[48],d[56]) + // constants scaled things up by 1<<12; let's bring them back + // down, but keep 2 extra bits of precision + x0 += 512; x1 += 512; x2 += 512; x3 += 512; + v[ 0] = (x0+t3) >> 10; + v[56] = (x0-t3) >> 10; + v[ 8] = (x1+t2) >> 10; + v[48] = (x1-t2) >> 10; + v[16] = (x2+t1) >> 10; + v[40] = (x2-t1) >> 10; + v[24] = (x3+t0) >> 10; + v[32] = (x3-t0) >> 10; + } + } + + for (i=0, v=val, o=out; i < 8; ++i,v+=8,o+=out_stride) { + // no fast case since the first 1D IDCT spread components out + STBI__IDCT_1D(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7]) + // constants scaled things up by 1<<12, plus we had 1<<2 from first + // loop, plus horizontal and vertical each scale by sqrt(8) so together + // we've got an extra 1<<3, so 1<<17 total we need to remove. + // so we want to round that, which means adding 0.5 * 1<<17, + // aka 65536. Also, we'll end up with -128 to 127 that we want + // to encode as 0..255 by adding 128, so we'll add that before the shift + x0 += 65536 + (128<<17); + x1 += 65536 + (128<<17); + x2 += 65536 + (128<<17); + x3 += 65536 + (128<<17); + // tried computing the shifts into temps, or'ing the temps to see + // if any were out of range, but that was slower + o[0] = stbi__clamp((x0+t3) >> 17); + o[7] = stbi__clamp((x0-t3) >> 17); + o[1] = stbi__clamp((x1+t2) >> 17); + o[6] = stbi__clamp((x1-t2) >> 17); + o[2] = stbi__clamp((x2+t1) >> 17); + o[5] = stbi__clamp((x2-t1) >> 17); + o[3] = stbi__clamp((x3+t0) >> 17); + o[4] = stbi__clamp((x3-t0) >> 17); + } +} + +#ifdef STBI_SSE2 +// sse2 integer IDCT. not the fastest possible implementation but it +// produces bit-identical results to the generic C version so it's +// fully "transparent". +static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64]) +{ + // This is constructed to match our regular (generic) integer IDCT exactly. + __m128i row0, row1, row2, row3, row4, row5, row6, row7; + __m128i tmp; + + // dot product constant: even elems=x, odd elems=y + #define dct_const(x,y) _mm_setr_epi16((x),(y),(x),(y),(x),(y),(x),(y)) + + // out(0) = c0[even]*x + c0[odd]*y (c0, x, y 16-bit, out 32-bit) + // out(1) = c1[even]*x + c1[odd]*y + #define dct_rot(out0,out1, x,y,c0,c1) \ + __m128i c0##lo = _mm_unpacklo_epi16((x),(y)); \ + __m128i c0##hi = _mm_unpackhi_epi16((x),(y)); \ + __m128i out0##_l = _mm_madd_epi16(c0##lo, c0); \ + __m128i out0##_h = _mm_madd_epi16(c0##hi, c0); \ + __m128i out1##_l = _mm_madd_epi16(c0##lo, c1); \ + __m128i out1##_h = _mm_madd_epi16(c0##hi, c1) + + // out = in << 12 (in 16-bit, out 32-bit) + #define dct_widen(out, in) \ + __m128i out##_l = _mm_srai_epi32(_mm_unpacklo_epi16(_mm_setzero_si128(), (in)), 4); \ + __m128i out##_h = _mm_srai_epi32(_mm_unpackhi_epi16(_mm_setzero_si128(), (in)), 4) + + // wide add + #define dct_wadd(out, a, b) \ + __m128i out##_l = _mm_add_epi32(a##_l, b##_l); \ + __m128i out##_h = _mm_add_epi32(a##_h, b##_h) + + // wide sub + #define dct_wsub(out, a, b) \ + __m128i out##_l = _mm_sub_epi32(a##_l, b##_l); \ + __m128i out##_h = _mm_sub_epi32(a##_h, b##_h) + + // butterfly a/b, add bias, then shift by "s" and pack + #define dct_bfly32o(out0, out1, a,b,bias,s) \ + { \ + __m128i abiased_l = _mm_add_epi32(a##_l, bias); \ + __m128i abiased_h = _mm_add_epi32(a##_h, bias); \ + dct_wadd(sum, abiased, b); \ + dct_wsub(dif, abiased, b); \ + out0 = _mm_packs_epi32(_mm_srai_epi32(sum_l, s), _mm_srai_epi32(sum_h, s)); \ + out1 = _mm_packs_epi32(_mm_srai_epi32(dif_l, s), _mm_srai_epi32(dif_h, s)); \ + } + + // 8-bit interleave step (for transposes) + #define dct_interleave8(a, b) \ + tmp = a; \ + a = _mm_unpacklo_epi8(a, b); \ + b = _mm_unpackhi_epi8(tmp, b) + + // 16-bit interleave step (for transposes) + #define dct_interleave16(a, b) \ + tmp = a; \ + a = _mm_unpacklo_epi16(a, b); \ + b = _mm_unpackhi_epi16(tmp, b) + + #define dct_pass(bias,shift) \ + { \ + /* even part */ \ + dct_rot(t2e,t3e, row2,row6, rot0_0,rot0_1); \ + __m128i sum04 = _mm_add_epi16(row0, row4); \ + __m128i dif04 = _mm_sub_epi16(row0, row4); \ + dct_widen(t0e, sum04); \ + dct_widen(t1e, dif04); \ + dct_wadd(x0, t0e, t3e); \ + dct_wsub(x3, t0e, t3e); \ + dct_wadd(x1, t1e, t2e); \ + dct_wsub(x2, t1e, t2e); \ + /* odd part */ \ + dct_rot(y0o,y2o, row7,row3, rot2_0,rot2_1); \ + dct_rot(y1o,y3o, row5,row1, rot3_0,rot3_1); \ + __m128i sum17 = _mm_add_epi16(row1, row7); \ + __m128i sum35 = _mm_add_epi16(row3, row5); \ + dct_rot(y4o,y5o, sum17,sum35, rot1_0,rot1_1); \ + dct_wadd(x4, y0o, y4o); \ + dct_wadd(x5, y1o, y5o); \ + dct_wadd(x6, y2o, y5o); \ + dct_wadd(x7, y3o, y4o); \ + dct_bfly32o(row0,row7, x0,x7,bias,shift); \ + dct_bfly32o(row1,row6, x1,x6,bias,shift); \ + dct_bfly32o(row2,row5, x2,x5,bias,shift); \ + dct_bfly32o(row3,row4, x3,x4,bias,shift); \ + } + + __m128i rot0_0 = dct_const(stbi__f2f(0.5411961f), stbi__f2f(0.5411961f) + stbi__f2f(-1.847759065f)); + __m128i rot0_1 = dct_const(stbi__f2f(0.5411961f) + stbi__f2f( 0.765366865f), stbi__f2f(0.5411961f)); + __m128i rot1_0 = dct_const(stbi__f2f(1.175875602f) + stbi__f2f(-0.899976223f), stbi__f2f(1.175875602f)); + __m128i rot1_1 = dct_const(stbi__f2f(1.175875602f), stbi__f2f(1.175875602f) + stbi__f2f(-2.562915447f)); + __m128i rot2_0 = dct_const(stbi__f2f(-1.961570560f) + stbi__f2f( 0.298631336f), stbi__f2f(-1.961570560f)); + __m128i rot2_1 = dct_const(stbi__f2f(-1.961570560f), stbi__f2f(-1.961570560f) + stbi__f2f( 3.072711026f)); + __m128i rot3_0 = dct_const(stbi__f2f(-0.390180644f) + stbi__f2f( 2.053119869f), stbi__f2f(-0.390180644f)); + __m128i rot3_1 = dct_const(stbi__f2f(-0.390180644f), stbi__f2f(-0.390180644f) + stbi__f2f( 1.501321110f)); + + // rounding biases in column/row passes, see stbi__idct_block for explanation. + __m128i bias_0 = _mm_set1_epi32(512); + __m128i bias_1 = _mm_set1_epi32(65536 + (128<<17)); + + // load + row0 = _mm_load_si128((const __m128i *) (data + 0*8)); + row1 = _mm_load_si128((const __m128i *) (data + 1*8)); + row2 = _mm_load_si128((const __m128i *) (data + 2*8)); + row3 = _mm_load_si128((const __m128i *) (data + 3*8)); + row4 = _mm_load_si128((const __m128i *) (data + 4*8)); + row5 = _mm_load_si128((const __m128i *) (data + 5*8)); + row6 = _mm_load_si128((const __m128i *) (data + 6*8)); + row7 = _mm_load_si128((const __m128i *) (data + 7*8)); + + // column pass + dct_pass(bias_0, 10); + + { + // 16bit 8x8 transpose pass 1 + dct_interleave16(row0, row4); + dct_interleave16(row1, row5); + dct_interleave16(row2, row6); + dct_interleave16(row3, row7); + + // transpose pass 2 + dct_interleave16(row0, row2); + dct_interleave16(row1, row3); + dct_interleave16(row4, row6); + dct_interleave16(row5, row7); + + // transpose pass 3 + dct_interleave16(row0, row1); + dct_interleave16(row2, row3); + dct_interleave16(row4, row5); + dct_interleave16(row6, row7); + } + + // row pass + dct_pass(bias_1, 17); + + { + // pack + __m128i p0 = _mm_packus_epi16(row0, row1); // a0a1a2a3...a7b0b1b2b3...b7 + __m128i p1 = _mm_packus_epi16(row2, row3); + __m128i p2 = _mm_packus_epi16(row4, row5); + __m128i p3 = _mm_packus_epi16(row6, row7); + + // 8bit 8x8 transpose pass 1 + dct_interleave8(p0, p2); // a0e0a1e1... + dct_interleave8(p1, p3); // c0g0c1g1... + + // transpose pass 2 + dct_interleave8(p0, p1); // a0c0e0g0... + dct_interleave8(p2, p3); // b0d0f0h0... + + // transpose pass 3 + dct_interleave8(p0, p2); // a0b0c0d0... + dct_interleave8(p1, p3); // a4b4c4d4... + + // store + _mm_storel_epi64((__m128i *) out, p0); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p0, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p2); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p2, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p1); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p1, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p3); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p3, 0x4e)); + } + +#undef dct_const +#undef dct_rot +#undef dct_widen +#undef dct_wadd +#undef dct_wsub +#undef dct_bfly32o +#undef dct_interleave8 +#undef dct_interleave16 +#undef dct_pass +} + +#endif // STBI_SSE2 + +#ifdef STBI_NEON + +// NEON integer IDCT. should produce bit-identical +// results to the generic C version. +static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64]) +{ + int16x8_t row0, row1, row2, row3, row4, row5, row6, row7; + + int16x4_t rot0_0 = vdup_n_s16(stbi__f2f(0.5411961f)); + int16x4_t rot0_1 = vdup_n_s16(stbi__f2f(-1.847759065f)); + int16x4_t rot0_2 = vdup_n_s16(stbi__f2f( 0.765366865f)); + int16x4_t rot1_0 = vdup_n_s16(stbi__f2f( 1.175875602f)); + int16x4_t rot1_1 = vdup_n_s16(stbi__f2f(-0.899976223f)); + int16x4_t rot1_2 = vdup_n_s16(stbi__f2f(-2.562915447f)); + int16x4_t rot2_0 = vdup_n_s16(stbi__f2f(-1.961570560f)); + int16x4_t rot2_1 = vdup_n_s16(stbi__f2f(-0.390180644f)); + int16x4_t rot3_0 = vdup_n_s16(stbi__f2f( 0.298631336f)); + int16x4_t rot3_1 = vdup_n_s16(stbi__f2f( 2.053119869f)); + int16x4_t rot3_2 = vdup_n_s16(stbi__f2f( 3.072711026f)); + int16x4_t rot3_3 = vdup_n_s16(stbi__f2f( 1.501321110f)); + +#define dct_long_mul(out, inq, coeff) \ + int32x4_t out##_l = vmull_s16(vget_low_s16(inq), coeff); \ + int32x4_t out##_h = vmull_s16(vget_high_s16(inq), coeff) + +#define dct_long_mac(out, acc, inq, coeff) \ + int32x4_t out##_l = vmlal_s16(acc##_l, vget_low_s16(inq), coeff); \ + int32x4_t out##_h = vmlal_s16(acc##_h, vget_high_s16(inq), coeff) + +#define dct_widen(out, inq) \ + int32x4_t out##_l = vshll_n_s16(vget_low_s16(inq), 12); \ + int32x4_t out##_h = vshll_n_s16(vget_high_s16(inq), 12) + +// wide add +#define dct_wadd(out, a, b) \ + int32x4_t out##_l = vaddq_s32(a##_l, b##_l); \ + int32x4_t out##_h = vaddq_s32(a##_h, b##_h) + +// wide sub +#define dct_wsub(out, a, b) \ + int32x4_t out##_l = vsubq_s32(a##_l, b##_l); \ + int32x4_t out##_h = vsubq_s32(a##_h, b##_h) + +// butterfly a/b, then shift using "shiftop" by "s" and pack +#define dct_bfly32o(out0,out1, a,b,shiftop,s) \ + { \ + dct_wadd(sum, a, b); \ + dct_wsub(dif, a, b); \ + out0 = vcombine_s16(shiftop(sum_l, s), shiftop(sum_h, s)); \ + out1 = vcombine_s16(shiftop(dif_l, s), shiftop(dif_h, s)); \ + } + +#define dct_pass(shiftop, shift) \ + { \ + /* even part */ \ + int16x8_t sum26 = vaddq_s16(row2, row6); \ + dct_long_mul(p1e, sum26, rot0_0); \ + dct_long_mac(t2e, p1e, row6, rot0_1); \ + dct_long_mac(t3e, p1e, row2, rot0_2); \ + int16x8_t sum04 = vaddq_s16(row0, row4); \ + int16x8_t dif04 = vsubq_s16(row0, row4); \ + dct_widen(t0e, sum04); \ + dct_widen(t1e, dif04); \ + dct_wadd(x0, t0e, t3e); \ + dct_wsub(x3, t0e, t3e); \ + dct_wadd(x1, t1e, t2e); \ + dct_wsub(x2, t1e, t2e); \ + /* odd part */ \ + int16x8_t sum15 = vaddq_s16(row1, row5); \ + int16x8_t sum17 = vaddq_s16(row1, row7); \ + int16x8_t sum35 = vaddq_s16(row3, row5); \ + int16x8_t sum37 = vaddq_s16(row3, row7); \ + int16x8_t sumodd = vaddq_s16(sum17, sum35); \ + dct_long_mul(p5o, sumodd, rot1_0); \ + dct_long_mac(p1o, p5o, sum17, rot1_1); \ + dct_long_mac(p2o, p5o, sum35, rot1_2); \ + dct_long_mul(p3o, sum37, rot2_0); \ + dct_long_mul(p4o, sum15, rot2_1); \ + dct_wadd(sump13o, p1o, p3o); \ + dct_wadd(sump24o, p2o, p4o); \ + dct_wadd(sump23o, p2o, p3o); \ + dct_wadd(sump14o, p1o, p4o); \ + dct_long_mac(x4, sump13o, row7, rot3_0); \ + dct_long_mac(x5, sump24o, row5, rot3_1); \ + dct_long_mac(x6, sump23o, row3, rot3_2); \ + dct_long_mac(x7, sump14o, row1, rot3_3); \ + dct_bfly32o(row0,row7, x0,x7,shiftop,shift); \ + dct_bfly32o(row1,row6, x1,x6,shiftop,shift); \ + dct_bfly32o(row2,row5, x2,x5,shiftop,shift); \ + dct_bfly32o(row3,row4, x3,x4,shiftop,shift); \ + } + + // load + row0 = vld1q_s16(data + 0*8); + row1 = vld1q_s16(data + 1*8); + row2 = vld1q_s16(data + 2*8); + row3 = vld1q_s16(data + 3*8); + row4 = vld1q_s16(data + 4*8); + row5 = vld1q_s16(data + 5*8); + row6 = vld1q_s16(data + 6*8); + row7 = vld1q_s16(data + 7*8); + + // add DC bias + row0 = vaddq_s16(row0, vsetq_lane_s16(1024, vdupq_n_s16(0), 0)); + + // column pass + dct_pass(vrshrn_n_s32, 10); + + // 16bit 8x8 transpose + { +// these three map to a single VTRN.16, VTRN.32, and VSWP, respectively. +// whether compilers actually get this is another story, sadly. +#define dct_trn16(x, y) { int16x8x2_t t = vtrnq_s16(x, y); x = t.val[0]; y = t.val[1]; } +#define dct_trn32(x, y) { int32x4x2_t t = vtrnq_s32(vreinterpretq_s32_s16(x), vreinterpretq_s32_s16(y)); x = vreinterpretq_s16_s32(t.val[0]); y = vreinterpretq_s16_s32(t.val[1]); } +#define dct_trn64(x, y) { int16x8_t x0 = x; int16x8_t y0 = y; x = vcombine_s16(vget_low_s16(x0), vget_low_s16(y0)); y = vcombine_s16(vget_high_s16(x0), vget_high_s16(y0)); } + + // pass 1 + dct_trn16(row0, row1); // a0b0a2b2a4b4a6b6 + dct_trn16(row2, row3); + dct_trn16(row4, row5); + dct_trn16(row6, row7); + + // pass 2 + dct_trn32(row0, row2); // a0b0c0d0a4b4c4d4 + dct_trn32(row1, row3); + dct_trn32(row4, row6); + dct_trn32(row5, row7); + + // pass 3 + dct_trn64(row0, row4); // a0b0c0d0e0f0g0h0 + dct_trn64(row1, row5); + dct_trn64(row2, row6); + dct_trn64(row3, row7); + +#undef dct_trn16 +#undef dct_trn32 +#undef dct_trn64 + } + + // row pass + // vrshrn_n_s32 only supports shifts up to 16, we need + // 17. so do a non-rounding shift of 16 first then follow + // up with a rounding shift by 1. + dct_pass(vshrn_n_s32, 16); + + { + // pack and round + uint8x8_t p0 = vqrshrun_n_s16(row0, 1); + uint8x8_t p1 = vqrshrun_n_s16(row1, 1); + uint8x8_t p2 = vqrshrun_n_s16(row2, 1); + uint8x8_t p3 = vqrshrun_n_s16(row3, 1); + uint8x8_t p4 = vqrshrun_n_s16(row4, 1); + uint8x8_t p5 = vqrshrun_n_s16(row5, 1); + uint8x8_t p6 = vqrshrun_n_s16(row6, 1); + uint8x8_t p7 = vqrshrun_n_s16(row7, 1); + + // again, these can translate into one instruction, but often don't. +#define dct_trn8_8(x, y) { uint8x8x2_t t = vtrn_u8(x, y); x = t.val[0]; y = t.val[1]; } +#define dct_trn8_16(x, y) { uint16x4x2_t t = vtrn_u16(vreinterpret_u16_u8(x), vreinterpret_u16_u8(y)); x = vreinterpret_u8_u16(t.val[0]); y = vreinterpret_u8_u16(t.val[1]); } +#define dct_trn8_32(x, y) { uint32x2x2_t t = vtrn_u32(vreinterpret_u32_u8(x), vreinterpret_u32_u8(y)); x = vreinterpret_u8_u32(t.val[0]); y = vreinterpret_u8_u32(t.val[1]); } + + // sadly can't use interleaved stores here since we only write + // 8 bytes to each scan line! + + // 8x8 8-bit transpose pass 1 + dct_trn8_8(p0, p1); + dct_trn8_8(p2, p3); + dct_trn8_8(p4, p5); + dct_trn8_8(p6, p7); + + // pass 2 + dct_trn8_16(p0, p2); + dct_trn8_16(p1, p3); + dct_trn8_16(p4, p6); + dct_trn8_16(p5, p7); + + // pass 3 + dct_trn8_32(p0, p4); + dct_trn8_32(p1, p5); + dct_trn8_32(p2, p6); + dct_trn8_32(p3, p7); + + // store + vst1_u8(out, p0); out += out_stride; + vst1_u8(out, p1); out += out_stride; + vst1_u8(out, p2); out += out_stride; + vst1_u8(out, p3); out += out_stride; + vst1_u8(out, p4); out += out_stride; + vst1_u8(out, p5); out += out_stride; + vst1_u8(out, p6); out += out_stride; + vst1_u8(out, p7); + +#undef dct_trn8_8 +#undef dct_trn8_16 +#undef dct_trn8_32 + } + +#undef dct_long_mul +#undef dct_long_mac +#undef dct_widen +#undef dct_wadd +#undef dct_wsub +#undef dct_bfly32o +#undef dct_pass +} + +#endif // STBI_NEON + +#define STBI__MARKER_none 0xff +// if there's a pending marker from the entropy stream, return that +// otherwise, fetch from the stream and get a marker. if there's no +// marker, return 0xff, which is never a valid marker value +static stbi_uc stbi__get_marker(stbi__jpeg *j) +{ + stbi_uc x; + if (j->marker != STBI__MARKER_none) { x = j->marker; j->marker = STBI__MARKER_none; return x; } + x = stbi__get8(j->s); + if (x != 0xff) return STBI__MARKER_none; + while (x == 0xff) + x = stbi__get8(j->s); + return x; +} + +// in each scan, we'll have scan_n components, and the order +// of the components is specified by order[] +#define STBI__RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7) + +// after a restart interval, stbi__jpeg_reset the entropy decoder and +// the dc prediction +static void stbi__jpeg_reset(stbi__jpeg *j) +{ + j->code_bits = 0; + j->code_buffer = 0; + j->nomore = 0; + j->img_comp[0].dc_pred = j->img_comp[1].dc_pred = j->img_comp[2].dc_pred = 0; + j->marker = STBI__MARKER_none; + j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff; + j->eob_run = 0; + // no more than 1<<31 MCUs if no restart_interal? that's plenty safe, + // since we don't even allow 1<<30 pixels +} + +static int stbi__parse_entropy_coded_data(stbi__jpeg *z) +{ + stbi__jpeg_reset(z); + if (!z->progressive) { + if (z->scan_n == 1) { + int i,j; + STBI_SIMD_ALIGN(short, data[64]); + int n = z->order[0]; + // non-interleaved data, we just need to process one block at a time, + // in trivial scanline order + // number of blocks to do just depends on how many actual "pixels" this + // component has, independent of interleaved MCU blocking and such + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequant[z->img_comp[n].tq])) return 0; + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data); + // every data block is an MCU, so countdown the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + // if it's NOT a restart, then just bail, so we get corrupt data + // rather than no data + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } else { // interleaved + int i,j,k,x,y; + STBI_SIMD_ALIGN(short, data[64]); + for (j=0; j < z->img_mcu_y; ++j) { + for (i=0; i < z->img_mcu_x; ++i) { + // scan an interleaved mcu... process scan_n components in order + for (k=0; k < z->scan_n; ++k) { + int n = z->order[k]; + // scan out an mcu's worth of this component; that's just determined + // by the basic H and V specified for the component + for (y=0; y < z->img_comp[n].v; ++y) { + for (x=0; x < z->img_comp[n].h; ++x) { + int x2 = (i*z->img_comp[n].h + x)*8; + int y2 = (j*z->img_comp[n].v + y)*8; + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequant[z->img_comp[n].tq])) return 0; + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*y2+x2, z->img_comp[n].w2, data); + } + } + } + // after all interleaved components, that's an interleaved MCU, + // so now count down the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } + } else { + if (z->scan_n == 1) { + int i,j; + int n = z->order[0]; + // non-interleaved data, we just need to process one block at a time, + // in trivial scanline order + // number of blocks to do just depends on how many actual "pixels" this + // component has, independent of interleaved MCU blocking and such + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); + if (z->spec_start == 0) { + if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) + return 0; + } else { + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block_prog_ac(z, data, &z->huff_ac[ha], z->fast_ac[ha])) + return 0; + } + // every data block is an MCU, so countdown the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } else { // interleaved + int i,j,k,x,y; + for (j=0; j < z->img_mcu_y; ++j) { + for (i=0; i < z->img_mcu_x; ++i) { + // scan an interleaved mcu... process scan_n components in order + for (k=0; k < z->scan_n; ++k) { + int n = z->order[k]; + // scan out an mcu's worth of this component; that's just determined + // by the basic H and V specified for the component + for (y=0; y < z->img_comp[n].v; ++y) { + for (x=0; x < z->img_comp[n].h; ++x) { + int x2 = (i*z->img_comp[n].h + x); + int y2 = (j*z->img_comp[n].v + y); + short *data = z->img_comp[n].coeff + 64 * (x2 + y2 * z->img_comp[n].coeff_w); + if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) + return 0; + } + } + } + // after all interleaved components, that's an interleaved MCU, + // so now count down the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } + } +} + +static void stbi__jpeg_dequantize(short *data, stbi_uc *dequant) +{ + int i; + for (i=0; i < 64; ++i) + data[i] *= dequant[i]; +} + +static void stbi__jpeg_finish(stbi__jpeg *z) +{ + if (z->progressive) { + // dequantize and idct the data + int i,j,n; + for (n=0; n < z->s->img_n; ++n) { + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); + stbi__jpeg_dequantize(data, z->dequant[z->img_comp[n].tq]); + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data); + } + } + } + } +} + +static int stbi__process_marker(stbi__jpeg *z, int m) +{ + int L; + switch (m) { + case STBI__MARKER_none: // no marker found + return stbi__err("expected marker","Corrupt JPEG"); + + case 0xDD: // DRI - specify restart interval + if (stbi__get16be(z->s) != 4) return stbi__err("bad DRI len","Corrupt JPEG"); + z->restart_interval = stbi__get16be(z->s); + return 1; + + case 0xDB: // DQT - define quantization table + L = stbi__get16be(z->s)-2; + while (L > 0) { + int q = stbi__get8(z->s); + int p = q >> 4; + int t = q & 15,i; + if (p != 0) return stbi__err("bad DQT type","Corrupt JPEG"); + if (t > 3) return stbi__err("bad DQT table","Corrupt JPEG"); + for (i=0; i < 64; ++i) + z->dequant[t][stbi__jpeg_dezigzag[i]] = stbi__get8(z->s); + L -= 65; + } + return L==0; + + case 0xC4: // DHT - define huffman table + L = stbi__get16be(z->s)-2; + while (L > 0) { + stbi_uc *v; + int sizes[16],i,n=0; + int q = stbi__get8(z->s); + int tc = q >> 4; + int th = q & 15; + if (tc > 1 || th > 3) return stbi__err("bad DHT header","Corrupt JPEG"); + for (i=0; i < 16; ++i) { + sizes[i] = stbi__get8(z->s); + n += sizes[i]; + } + L -= 17; + if (tc == 0) { + if (!stbi__build_huffman(z->huff_dc+th, sizes)) return 0; + v = z->huff_dc[th].values; + } else { + if (!stbi__build_huffman(z->huff_ac+th, sizes)) return 0; + v = z->huff_ac[th].values; + } + for (i=0; i < n; ++i) + v[i] = stbi__get8(z->s); + if (tc != 0) + stbi__build_fast_ac(z->fast_ac[th], z->huff_ac + th); + L -= n; + } + return L==0; + } + // check for comment block or APP blocks + if ((m >= 0xE0 && m <= 0xEF) || m == 0xFE) { + stbi__skip(z->s, stbi__get16be(z->s)-2); + return 1; + } + return 0; +} + +// after we see SOS +static int stbi__process_scan_header(stbi__jpeg *z) +{ + int i; + int Ls = stbi__get16be(z->s); + z->scan_n = stbi__get8(z->s); + if (z->scan_n < 1 || z->scan_n > 4 || z->scan_n > (int) z->s->img_n) return stbi__err("bad SOS component count","Corrupt JPEG"); + if (Ls != 6+2*z->scan_n) return stbi__err("bad SOS len","Corrupt JPEG"); + for (i=0; i < z->scan_n; ++i) { + int id = stbi__get8(z->s), which; + int q = stbi__get8(z->s); + for (which = 0; which < z->s->img_n; ++which) + if (z->img_comp[which].id == id) + break; + if (which == z->s->img_n) return 0; // no match + z->img_comp[which].hd = q >> 4; if (z->img_comp[which].hd > 3) return stbi__err("bad DC huff","Corrupt JPEG"); + z->img_comp[which].ha = q & 15; if (z->img_comp[which].ha > 3) return stbi__err("bad AC huff","Corrupt JPEG"); + z->order[i] = which; + } + + { + int aa; + z->spec_start = stbi__get8(z->s); + z->spec_end = stbi__get8(z->s); // should be 63, but might be 0 + aa = stbi__get8(z->s); + z->succ_high = (aa >> 4); + z->succ_low = (aa & 15); + if (z->progressive) { + if (z->spec_start > 63 || z->spec_end > 63 || z->spec_start > z->spec_end || z->succ_high > 13 || z->succ_low > 13) + return stbi__err("bad SOS", "Corrupt JPEG"); + } else { + if (z->spec_start != 0) return stbi__err("bad SOS","Corrupt JPEG"); + if (z->succ_high != 0 || z->succ_low != 0) return stbi__err("bad SOS","Corrupt JPEG"); + z->spec_end = 63; + } + } + + return 1; +} + +static int stbi__process_frame_header(stbi__jpeg *z, int scan) +{ + stbi__context *s = z->s; + int Lf,p,i,q, h_max=1,v_max=1,c; + Lf = stbi__get16be(s); if (Lf < 11) return stbi__err("bad SOF len","Corrupt JPEG"); // JPEG + p = stbi__get8(s); if (p != 8) return stbi__err("only 8-bit","JPEG format not supported: 8-bit only"); // JPEG baseline + s->img_y = stbi__get16be(s); if (s->img_y == 0) return stbi__err("no header height", "JPEG format not supported: delayed height"); // Legal, but we don't handle it--but neither does IJG + s->img_x = stbi__get16be(s); if (s->img_x == 0) return stbi__err("0 width","Corrupt JPEG"); // JPEG requires + c = stbi__get8(s); + if (c != 3 && c != 1) return stbi__err("bad component count","Corrupt JPEG"); // JFIF requires + s->img_n = c; + for (i=0; i < c; ++i) { + z->img_comp[i].data = NULL; + z->img_comp[i].linebuf = NULL; + } + + if (Lf != 8+3*s->img_n) return stbi__err("bad SOF len","Corrupt JPEG"); + + for (i=0; i < s->img_n; ++i) { + z->img_comp[i].id = stbi__get8(s); + if (z->img_comp[i].id != i+1) // JFIF requires + if (z->img_comp[i].id != i) // some version of jpegtran outputs non-JFIF-compliant files! + return stbi__err("bad component ID","Corrupt JPEG"); + q = stbi__get8(s); + z->img_comp[i].h = (q >> 4); if (!z->img_comp[i].h || z->img_comp[i].h > 4) return stbi__err("bad H","Corrupt JPEG"); + z->img_comp[i].v = q & 15; if (!z->img_comp[i].v || z->img_comp[i].v > 4) return stbi__err("bad V","Corrupt JPEG"); + z->img_comp[i].tq = stbi__get8(s); if (z->img_comp[i].tq > 3) return stbi__err("bad TQ","Corrupt JPEG"); + } + + if (scan != STBI__SCAN_load) return 1; + + if ((1 << 30) / s->img_x / s->img_n < s->img_y) return stbi__err("too large", "Image too large to decode"); + + for (i=0; i < s->img_n; ++i) { + if (z->img_comp[i].h > h_max) h_max = z->img_comp[i].h; + if (z->img_comp[i].v > v_max) v_max = z->img_comp[i].v; + } + + // compute interleaved mcu info + z->img_h_max = h_max; + z->img_v_max = v_max; + z->img_mcu_w = h_max * 8; + z->img_mcu_h = v_max * 8; + z->img_mcu_x = (s->img_x + z->img_mcu_w-1) / z->img_mcu_w; + z->img_mcu_y = (s->img_y + z->img_mcu_h-1) / z->img_mcu_h; + + for (i=0; i < s->img_n; ++i) { + // number of effective pixels (e.g. for non-interleaved MCU) + z->img_comp[i].x = (s->img_x * z->img_comp[i].h + h_max-1) / h_max; + z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max; + // to simplify generation, we'll allocate enough memory to decode + // the bogus oversized data from using interleaved MCUs and their + // big blocks (e.g. a 16x16 iMCU on an image of width 33); we won't + // discard the extra data until colorspace conversion + z->img_comp[i].w2 = z->img_mcu_x * z->img_comp[i].h * 8; + z->img_comp[i].h2 = z->img_mcu_y * z->img_comp[i].v * 8; + z->img_comp[i].raw_data = stbi__malloc(z->img_comp[i].w2 * z->img_comp[i].h2+15); + + if (z->img_comp[i].raw_data == NULL) { + for(--i; i >= 0; --i) { + STBI_FREE(z->img_comp[i].raw_data); + z->img_comp[i].data = NULL; + } + return stbi__err("outofmem", "Out of memory"); + } + // align blocks for idct using mmx/sse + z->img_comp[i].data = (stbi_uc*) (((size_t) z->img_comp[i].raw_data + 15) & ~15); + z->img_comp[i].linebuf = NULL; + if (z->progressive) { + z->img_comp[i].coeff_w = (z->img_comp[i].w2 + 7) >> 3; + z->img_comp[i].coeff_h = (z->img_comp[i].h2 + 7) >> 3; + z->img_comp[i].raw_coeff = STBI_MALLOC(z->img_comp[i].coeff_w * z->img_comp[i].coeff_h * 64 * sizeof(short) + 15); + z->img_comp[i].coeff = (short*) (((size_t) z->img_comp[i].raw_coeff + 15) & ~15); + } else { + z->img_comp[i].coeff = 0; + z->img_comp[i].raw_coeff = 0; + } + } + + return 1; +} + +// use comparisons since in some cases we handle more than one case (e.g. SOF) +#define stbi__DNL(x) ((x) == 0xdc) +#define stbi__SOI(x) ((x) == 0xd8) +#define stbi__EOI(x) ((x) == 0xd9) +#define stbi__SOF(x) ((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2) +#define stbi__SOS(x) ((x) == 0xda) + +#define stbi__SOF_progressive(x) ((x) == 0xc2) + +static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan) +{ + int m; + z->marker = STBI__MARKER_none; // initialize cached marker to empty + m = stbi__get_marker(z); + if (!stbi__SOI(m)) return stbi__err("no SOI","Corrupt JPEG"); + if (scan == STBI__SCAN_type) return 1; + m = stbi__get_marker(z); + while (!stbi__SOF(m)) { + if (!stbi__process_marker(z,m)) return 0; + m = stbi__get_marker(z); + while (m == STBI__MARKER_none) { + // some files have extra padding after their blocks, so ok, we'll scan + if (stbi__at_eof(z->s)) return stbi__err("no SOF", "Corrupt JPEG"); + m = stbi__get_marker(z); + } + } + z->progressive = stbi__SOF_progressive(m); + if (!stbi__process_frame_header(z, scan)) return 0; + return 1; +} + +// decode image to YCbCr format +static int stbi__decode_jpeg_image(stbi__jpeg *j) +{ + int m; + for (m = 0; m < 4; m++) { + j->img_comp[m].raw_data = NULL; + j->img_comp[m].raw_coeff = NULL; + } + j->restart_interval = 0; + if (!stbi__decode_jpeg_header(j, STBI__SCAN_load)) return 0; + m = stbi__get_marker(j); + while (!stbi__EOI(m)) { + if (stbi__SOS(m)) { + if (!stbi__process_scan_header(j)) return 0; + if (!stbi__parse_entropy_coded_data(j)) return 0; + if (j->marker == STBI__MARKER_none ) { + // handle 0s at the end of image data from IP Kamera 9060 + while (!stbi__at_eof(j->s)) { + int x = stbi__get8(j->s); + if (x == 255) { + j->marker = stbi__get8(j->s); + break; + } else if (x != 0) { + return stbi__err("junk before marker", "Corrupt JPEG"); + } + } + // if we reach eof without hitting a marker, stbi__get_marker() below will fail and we'll eventually return 0 + } + } else { + if (!stbi__process_marker(j, m)) return 0; + } + m = stbi__get_marker(j); + } + if (j->progressive) + stbi__jpeg_finish(j); + return 1; +} + +// static jfif-centered resampling (across block boundaries) + +typedef stbi_uc *(*resample_row_func)(stbi_uc *out, stbi_uc *in0, stbi_uc *in1, + int w, int hs); + +#define stbi__div4(x) ((stbi_uc) ((x) >> 2)) + +static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + STBI_NOTUSED(out); + STBI_NOTUSED(in_far); + STBI_NOTUSED(w); + STBI_NOTUSED(hs); + return in_near; +} + +static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate two samples vertically for every one in input + int i; + STBI_NOTUSED(hs); + for (i=0; i < w; ++i) + out[i] = stbi__div4(3*in_near[i] + in_far[i] + 2); + return out; +} + +static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate two samples horizontally for every one in input + int i; + stbi_uc *input = in_near; + + if (w == 1) { + // if only one sample, can't do any interpolation + out[0] = out[1] = input[0]; + return out; + } + + out[0] = input[0]; + out[1] = stbi__div4(input[0]*3 + input[1] + 2); + for (i=1; i < w-1; ++i) { + int n = 3*input[i]+2; + out[i*2+0] = stbi__div4(n+input[i-1]); + out[i*2+1] = stbi__div4(n+input[i+1]); + } + out[i*2+0] = stbi__div4(input[w-2]*3 + input[w-1] + 2); + out[i*2+1] = input[w-1]; + + STBI_NOTUSED(in_far); + STBI_NOTUSED(hs); + + return out; +} + +#define stbi__div16(x) ((stbi_uc) ((x) >> 4)) + +static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate 2x2 samples for every one in input + int i,t0,t1; + if (w == 1) { + out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2); + return out; + } + + t1 = 3*in_near[0] + in_far[0]; + out[0] = stbi__div4(t1+2); + for (i=1; i < w; ++i) { + t0 = t1; + t1 = 3*in_near[i]+in_far[i]; + out[i*2-1] = stbi__div16(3*t0 + t1 + 8); + out[i*2 ] = stbi__div16(3*t1 + t0 + 8); + } + out[w*2-1] = stbi__div4(t1+2); + + STBI_NOTUSED(hs); + + return out; +} + +#if defined(STBI_SSE2) || defined(STBI_NEON) +static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate 2x2 samples for every one in input + int i=0,t0,t1; + + if (w == 1) { + out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2); + return out; + } + + t1 = 3*in_near[0] + in_far[0]; + // process groups of 8 pixels for as long as we can. + // note we can't handle the last pixel in a row in this loop + // because we need to handle the filter boundary conditions. + for (; i < ((w-1) & ~7); i += 8) { +#if defined(STBI_SSE2) + // load and perform the vertical filtering pass + // this uses 3*x + y = 4*x + (y - x) + __m128i zero = _mm_setzero_si128(); + __m128i farb = _mm_loadl_epi64((__m128i *) (in_far + i)); + __m128i nearb = _mm_loadl_epi64((__m128i *) (in_near + i)); + __m128i farw = _mm_unpacklo_epi8(farb, zero); + __m128i nearw = _mm_unpacklo_epi8(nearb, zero); + __m128i diff = _mm_sub_epi16(farw, nearw); + __m128i nears = _mm_slli_epi16(nearw, 2); + __m128i curr = _mm_add_epi16(nears, diff); // current row + + // horizontal filter works the same based on shifted vers of current + // row. "prev" is current row shifted right by 1 pixel; we need to + // insert the previous pixel value (from t1). + // "next" is current row shifted left by 1 pixel, with first pixel + // of next block of 8 pixels added in. + __m128i prv0 = _mm_slli_si128(curr, 2); + __m128i nxt0 = _mm_srli_si128(curr, 2); + __m128i prev = _mm_insert_epi16(prv0, t1, 0); + __m128i next = _mm_insert_epi16(nxt0, 3*in_near[i+8] + in_far[i+8], 7); + + // horizontal filter, polyphase implementation since it's convenient: + // even pixels = 3*cur + prev = cur*4 + (prev - cur) + // odd pixels = 3*cur + next = cur*4 + (next - cur) + // note the shared term. + __m128i bias = _mm_set1_epi16(8); + __m128i curs = _mm_slli_epi16(curr, 2); + __m128i prvd = _mm_sub_epi16(prev, curr); + __m128i nxtd = _mm_sub_epi16(next, curr); + __m128i curb = _mm_add_epi16(curs, bias); + __m128i even = _mm_add_epi16(prvd, curb); + __m128i odd = _mm_add_epi16(nxtd, curb); + + // interleave even and odd pixels, then undo scaling. + __m128i int0 = _mm_unpacklo_epi16(even, odd); + __m128i int1 = _mm_unpackhi_epi16(even, odd); + __m128i de0 = _mm_srli_epi16(int0, 4); + __m128i de1 = _mm_srli_epi16(int1, 4); + + // pack and write output + __m128i outv = _mm_packus_epi16(de0, de1); + _mm_storeu_si128((__m128i *) (out + i*2), outv); +#elif defined(STBI_NEON) + // load and perform the vertical filtering pass + // this uses 3*x + y = 4*x + (y - x) + uint8x8_t farb = vld1_u8(in_far + i); + uint8x8_t nearb = vld1_u8(in_near + i); + int16x8_t diff = vreinterpretq_s16_u16(vsubl_u8(farb, nearb)); + int16x8_t nears = vreinterpretq_s16_u16(vshll_n_u8(nearb, 2)); + int16x8_t curr = vaddq_s16(nears, diff); // current row + + // horizontal filter works the same based on shifted vers of current + // row. "prev" is current row shifted right by 1 pixel; we need to + // insert the previous pixel value (from t1). + // "next" is current row shifted left by 1 pixel, with first pixel + // of next block of 8 pixels added in. + int16x8_t prv0 = vextq_s16(curr, curr, 7); + int16x8_t nxt0 = vextq_s16(curr, curr, 1); + int16x8_t prev = vsetq_lane_s16(t1, prv0, 0); + int16x8_t next = vsetq_lane_s16(3*in_near[i+8] + in_far[i+8], nxt0, 7); + + // horizontal filter, polyphase implementation since it's convenient: + // even pixels = 3*cur + prev = cur*4 + (prev - cur) + // odd pixels = 3*cur + next = cur*4 + (next - cur) + // note the shared term. + int16x8_t curs = vshlq_n_s16(curr, 2); + int16x8_t prvd = vsubq_s16(prev, curr); + int16x8_t nxtd = vsubq_s16(next, curr); + int16x8_t even = vaddq_s16(curs, prvd); + int16x8_t odd = vaddq_s16(curs, nxtd); + + // undo scaling and round, then store with even/odd phases interleaved + uint8x8x2_t o; + o.val[0] = vqrshrun_n_s16(even, 4); + o.val[1] = vqrshrun_n_s16(odd, 4); + vst2_u8(out + i*2, o); +#endif + + // "previous" value for next iter + t1 = 3*in_near[i+7] + in_far[i+7]; + } + + t0 = t1; + t1 = 3*in_near[i] + in_far[i]; + out[i*2] = stbi__div16(3*t1 + t0 + 8); + + for (++i; i < w; ++i) { + t0 = t1; + t1 = 3*in_near[i]+in_far[i]; + out[i*2-1] = stbi__div16(3*t0 + t1 + 8); + out[i*2 ] = stbi__div16(3*t1 + t0 + 8); + } + out[w*2-1] = stbi__div4(t1+2); + + STBI_NOTUSED(hs); + + return out; +} +#endif + +static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // resample with nearest-neighbor + int i,j; + STBI_NOTUSED(in_far); + for (i=0; i < w; ++i) + for (j=0; j < hs; ++j) + out[i*hs+j] = in_near[i]; + return out; +} + +#ifdef STBI_JPEG_OLD +// this is the same YCbCr-to-RGB calculation that stb_image has used +// historically before the algorithm changes in 1.49 +#define float2fixed(x) ((int) ((x) * 65536 + 0.5)) +static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step) +{ + int i; + for (i=0; i < count; ++i) { + int y_fixed = (y[i] << 16) + 32768; // rounding + int r,g,b; + int cr = pcr[i] - 128; + int cb = pcb[i] - 128; + r = y_fixed + cr*float2fixed(1.40200f); + g = y_fixed - cr*float2fixed(0.71414f) - cb*float2fixed(0.34414f); + b = y_fixed + cb*float2fixed(1.77200f); + r >>= 16; + g >>= 16; + b >>= 16; + if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; } + if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } + if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; } + out[0] = (stbi_uc)r; + out[1] = (stbi_uc)g; + out[2] = (stbi_uc)b; + out[3] = 255; + out += step; + } +} +#else +// this is a reduced-precision calculation of YCbCr-to-RGB introduced +// to make sure the code produces the same results in both SIMD and scalar +#define float2fixed(x) (((int) ((x) * 4096.0f + 0.5f)) << 8) +static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step) +{ + int i; + for (i=0; i < count; ++i) { + int y_fixed = (y[i] << 20) + (1<<19); // rounding + int r,g,b; + int cr = pcr[i] - 128; + int cb = pcb[i] - 128; + r = y_fixed + cr* float2fixed(1.40200f); + g = y_fixed + (cr*-float2fixed(0.71414f)) + ((cb*-float2fixed(0.34414f)) & 0xffff0000); + b = y_fixed + cb* float2fixed(1.77200f); + r >>= 20; + g >>= 20; + b >>= 20; + if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; } + if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } + if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; } + out[0] = (stbi_uc)r; + out[1] = (stbi_uc)g; + out[2] = (stbi_uc)b; + out[3] = 255; + out += step; + } +} +#endif + +#if defined(STBI_SSE2) || defined(STBI_NEON) +static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step) +{ + int i = 0; + +#ifdef STBI_SSE2 + // step == 3 is pretty ugly on the final interleave, and i'm not convinced + // it's useful in practice (you wouldn't use it for textures, for example). + // so just accelerate step == 4 case. + if (step == 4) { + // this is a fairly straightforward implementation and not super-optimized. + __m128i signflip = _mm_set1_epi8(-0x80); + __m128i cr_const0 = _mm_set1_epi16( (short) ( 1.40200f*4096.0f+0.5f)); + __m128i cr_const1 = _mm_set1_epi16( - (short) ( 0.71414f*4096.0f+0.5f)); + __m128i cb_const0 = _mm_set1_epi16( - (short) ( 0.34414f*4096.0f+0.5f)); + __m128i cb_const1 = _mm_set1_epi16( (short) ( 1.77200f*4096.0f+0.5f)); + __m128i y_bias = _mm_set1_epi8((char) (unsigned char) 128); + __m128i xw = _mm_set1_epi16(255); // alpha channel + + for (; i+7 < count; i += 8) { + // load + __m128i y_bytes = _mm_loadl_epi64((__m128i *) (y+i)); + __m128i cr_bytes = _mm_loadl_epi64((__m128i *) (pcr+i)); + __m128i cb_bytes = _mm_loadl_epi64((__m128i *) (pcb+i)); + __m128i cr_biased = _mm_xor_si128(cr_bytes, signflip); // -128 + __m128i cb_biased = _mm_xor_si128(cb_bytes, signflip); // -128 + + // unpack to short (and left-shift cr, cb by 8) + __m128i yw = _mm_unpacklo_epi8(y_bias, y_bytes); + __m128i crw = _mm_unpacklo_epi8(_mm_setzero_si128(), cr_biased); + __m128i cbw = _mm_unpacklo_epi8(_mm_setzero_si128(), cb_biased); + + // color transform + __m128i yws = _mm_srli_epi16(yw, 4); + __m128i cr0 = _mm_mulhi_epi16(cr_const0, crw); + __m128i cb0 = _mm_mulhi_epi16(cb_const0, cbw); + __m128i cb1 = _mm_mulhi_epi16(cbw, cb_const1); + __m128i cr1 = _mm_mulhi_epi16(crw, cr_const1); + __m128i rws = _mm_add_epi16(cr0, yws); + __m128i gwt = _mm_add_epi16(cb0, yws); + __m128i bws = _mm_add_epi16(yws, cb1); + __m128i gws = _mm_add_epi16(gwt, cr1); + + // descale + __m128i rw = _mm_srai_epi16(rws, 4); + __m128i bw = _mm_srai_epi16(bws, 4); + __m128i gw = _mm_srai_epi16(gws, 4); + + // back to byte, set up for transpose + __m128i brb = _mm_packus_epi16(rw, bw); + __m128i gxb = _mm_packus_epi16(gw, xw); + + // transpose to interleave channels + __m128i t0 = _mm_unpacklo_epi8(brb, gxb); + __m128i t1 = _mm_unpackhi_epi8(brb, gxb); + __m128i o0 = _mm_unpacklo_epi16(t0, t1); + __m128i o1 = _mm_unpackhi_epi16(t0, t1); + + // store + _mm_storeu_si128((__m128i *) (out + 0), o0); + _mm_storeu_si128((__m128i *) (out + 16), o1); + out += 32; + } + } +#endif + +#ifdef STBI_NEON + // in this version, step=3 support would be easy to add. but is there demand? + if (step == 4) { + // this is a fairly straightforward implementation and not super-optimized. + uint8x8_t signflip = vdup_n_u8(0x80); + int16x8_t cr_const0 = vdupq_n_s16( (short) ( 1.40200f*4096.0f+0.5f)); + int16x8_t cr_const1 = vdupq_n_s16( - (short) ( 0.71414f*4096.0f+0.5f)); + int16x8_t cb_const0 = vdupq_n_s16( - (short) ( 0.34414f*4096.0f+0.5f)); + int16x8_t cb_const1 = vdupq_n_s16( (short) ( 1.77200f*4096.0f+0.5f)); + + for (; i+7 < count; i += 8) { + // load + uint8x8_t y_bytes = vld1_u8(y + i); + uint8x8_t cr_bytes = vld1_u8(pcr + i); + uint8x8_t cb_bytes = vld1_u8(pcb + i); + int8x8_t cr_biased = vreinterpret_s8_u8(vsub_u8(cr_bytes, signflip)); + int8x8_t cb_biased = vreinterpret_s8_u8(vsub_u8(cb_bytes, signflip)); + + // expand to s16 + int16x8_t yws = vreinterpretq_s16_u16(vshll_n_u8(y_bytes, 4)); + int16x8_t crw = vshll_n_s8(cr_biased, 7); + int16x8_t cbw = vshll_n_s8(cb_biased, 7); + + // color transform + int16x8_t cr0 = vqdmulhq_s16(crw, cr_const0); + int16x8_t cb0 = vqdmulhq_s16(cbw, cb_const0); + int16x8_t cr1 = vqdmulhq_s16(crw, cr_const1); + int16x8_t cb1 = vqdmulhq_s16(cbw, cb_const1); + int16x8_t rws = vaddq_s16(yws, cr0); + int16x8_t gws = vaddq_s16(vaddq_s16(yws, cb0), cr1); + int16x8_t bws = vaddq_s16(yws, cb1); + + // undo scaling, round, convert to byte + uint8x8x4_t o; + o.val[0] = vqrshrun_n_s16(rws, 4); + o.val[1] = vqrshrun_n_s16(gws, 4); + o.val[2] = vqrshrun_n_s16(bws, 4); + o.val[3] = vdup_n_u8(255); + + // store, interleaving r/g/b/a + vst4_u8(out, o); + out += 8*4; + } + } +#endif + + for (; i < count; ++i) { + int y_fixed = (y[i] << 20) + (1<<19); // rounding + int r,g,b; + int cr = pcr[i] - 128; + int cb = pcb[i] - 128; + r = y_fixed + cr* float2fixed(1.40200f); + g = y_fixed + cr*-float2fixed(0.71414f) + ((cb*-float2fixed(0.34414f)) & 0xffff0000); + b = y_fixed + cb* float2fixed(1.77200f); + r >>= 20; + g >>= 20; + b >>= 20; + if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; } + if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } + if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; } + out[0] = (stbi_uc)r; + out[1] = (stbi_uc)g; + out[2] = (stbi_uc)b; + out[3] = 255; + out += step; + } +} +#endif + +// set up the kernels +static void stbi__setup_jpeg(stbi__jpeg *j) +{ + j->idct_block_kernel = stbi__idct_block; + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_row; + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2; + +#ifdef STBI_SSE2 + if (stbi__sse2_available()) { + j->idct_block_kernel = stbi__idct_simd; + #ifndef STBI_JPEG_OLD + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; + #endif + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd; + } +#endif + +#ifdef STBI_NEON + j->idct_block_kernel = stbi__idct_simd; + #ifndef STBI_JPEG_OLD + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; + #endif + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd; +#endif +} + +// clean up the temporary component buffers +static void stbi__cleanup_jpeg(stbi__jpeg *j) +{ + int i; + for (i=0; i < j->s->img_n; ++i) { + if (j->img_comp[i].raw_data) { + STBI_FREE(j->img_comp[i].raw_data); + j->img_comp[i].raw_data = NULL; + j->img_comp[i].data = NULL; + } + if (j->img_comp[i].raw_coeff) { + STBI_FREE(j->img_comp[i].raw_coeff); + j->img_comp[i].raw_coeff = 0; + j->img_comp[i].coeff = 0; + } + if (j->img_comp[i].linebuf) { + STBI_FREE(j->img_comp[i].linebuf); + j->img_comp[i].linebuf = NULL; + } + } +} + +typedef struct +{ + resample_row_func resample; + stbi_uc *line0,*line1; + int hs,vs; // expansion factor in each axis + int w_lores; // horizontal pixels pre-expansion + int ystep; // how far through vertical expansion we are + int ypos; // which pre-expansion row we're on +} stbi__resample; + +static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp) +{ + int n, decode_n; + z->s->img_n = 0; // make stbi__cleanup_jpeg safe + + // validate req_comp + if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error"); + + // load a jpeg image from whichever source, but leave in YCbCr format + if (!stbi__decode_jpeg_image(z)) { stbi__cleanup_jpeg(z); return NULL; } + + // determine actual number of components to generate + n = req_comp ? req_comp : z->s->img_n; + + if (z->s->img_n == 3 && n < 3) + decode_n = 1; + else + decode_n = z->s->img_n; + + // resample and color-convert + { + int k; + unsigned int i,j; + stbi_uc *output; + stbi_uc *coutput[4]; + + stbi__resample res_comp[4]; + + for (k=0; k < decode_n; ++k) { + stbi__resample *r = &res_comp[k]; + + // allocate line buffer big enough for upsampling off the edges + // with upsample factor of 4 + z->img_comp[k].linebuf = (stbi_uc *) stbi__malloc(z->s->img_x + 3); + if (!z->img_comp[k].linebuf) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); } + + r->hs = z->img_h_max / z->img_comp[k].h; + r->vs = z->img_v_max / z->img_comp[k].v; + r->ystep = r->vs >> 1; + r->w_lores = (z->s->img_x + r->hs-1) / r->hs; + r->ypos = 0; + r->line0 = r->line1 = z->img_comp[k].data; + + if (r->hs == 1 && r->vs == 1) r->resample = resample_row_1; + else if (r->hs == 1 && r->vs == 2) r->resample = stbi__resample_row_v_2; + else if (r->hs == 2 && r->vs == 1) r->resample = stbi__resample_row_h_2; + else if (r->hs == 2 && r->vs == 2) r->resample = z->resample_row_hv_2_kernel; + else r->resample = stbi__resample_row_generic; + } + + // can't error after this so, this is safe + output = (stbi_uc *) stbi__malloc(n * z->s->img_x * z->s->img_y + 1); + if (!output) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); } + + // now go ahead and resample + for (j=0; j < z->s->img_y; ++j) { + stbi_uc *out = output + n * z->s->img_x * j; + for (k=0; k < decode_n; ++k) { + stbi__resample *r = &res_comp[k]; + int y_bot = r->ystep >= (r->vs >> 1); + coutput[k] = r->resample(z->img_comp[k].linebuf, + y_bot ? r->line1 : r->line0, + y_bot ? r->line0 : r->line1, + r->w_lores, r->hs); + if (++r->ystep >= r->vs) { + r->ystep = 0; + r->line0 = r->line1; + if (++r->ypos < z->img_comp[k].y) + r->line1 += z->img_comp[k].w2; + } + } + if (n >= 3) { + stbi_uc *y = coutput[0]; + if (z->s->img_n == 3) { + z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n); + } else + for (i=0; i < z->s->img_x; ++i) { + out[0] = out[1] = out[2] = y[i]; + out[3] = 255; // not used if n==3 + out += n; + } + } else { + stbi_uc *y = coutput[0]; + if (n == 1) + for (i=0; i < z->s->img_x; ++i) out[i] = y[i]; + else + for (i=0; i < z->s->img_x; ++i) *out++ = y[i], *out++ = 255; + } + } + stbi__cleanup_jpeg(z); + *out_x = z->s->img_x; + *out_y = z->s->img_y; + if (comp) *comp = z->s->img_n; // report original components, not output + return output; + } +} + +static unsigned char *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi__jpeg j; + j.s = s; + stbi__setup_jpeg(&j); + return load_jpeg_image(&j, x,y,comp,req_comp); +} + +static int stbi__jpeg_test(stbi__context *s) +{ + int r; + stbi__jpeg j; + j.s = s; + stbi__setup_jpeg(&j); + r = stbi__decode_jpeg_header(&j, STBI__SCAN_type); + stbi__rewind(s); + return r; +} + +static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp) +{ + if (!stbi__decode_jpeg_header(j, STBI__SCAN_header)) { + stbi__rewind( j->s ); + return 0; + } + if (x) *x = j->s->img_x; + if (y) *y = j->s->img_y; + if (comp) *comp = j->s->img_n; + return 1; +} + +static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp) +{ + stbi__jpeg j; + j.s = s; + return stbi__jpeg_info_raw(&j, x, y, comp); +} +#endif + +// public domain zlib decode v0.2 Sean Barrett 2006-11-18 +// simple implementation +// - all input must be provided in an upfront buffer +// - all output is written to a single output buffer (can malloc/realloc) +// performance +// - fast huffman + +#ifndef STBI_NO_ZLIB + +// fast-way is faster to check than jpeg huffman, but slow way is slower +#define STBI__ZFAST_BITS 9 // accelerate all cases in default tables +#define STBI__ZFAST_MASK ((1 << STBI__ZFAST_BITS) - 1) + +// zlib-style huffman encoding +// (jpegs packs from left, zlib from right, so can't share code) +typedef struct +{ + stbi__uint16 fast[1 << STBI__ZFAST_BITS]; + stbi__uint16 firstcode[16]; + int maxcode[17]; + stbi__uint16 firstsymbol[16]; + stbi_uc size[288]; + stbi__uint16 value[288]; +} stbi__zhuffman; + +stbi_inline static int stbi__bitreverse16(int n) +{ + n = ((n & 0xAAAA) >> 1) | ((n & 0x5555) << 1); + n = ((n & 0xCCCC) >> 2) | ((n & 0x3333) << 2); + n = ((n & 0xF0F0) >> 4) | ((n & 0x0F0F) << 4); + n = ((n & 0xFF00) >> 8) | ((n & 0x00FF) << 8); + return n; +} + +stbi_inline static int stbi__bit_reverse(int v, int bits) +{ + STBI_ASSERT(bits <= 16); + // to bit reverse n bits, reverse 16 and shift + // e.g. 11 bits, bit reverse and shift away 5 + return stbi__bitreverse16(v) >> (16-bits); +} + +static int stbi__zbuild_huffman(stbi__zhuffman *z, stbi_uc *sizelist, int num) +{ + int i,k=0; + int code, next_code[16], sizes[17]; + + // DEFLATE spec for generating codes + memset(sizes, 0, sizeof(sizes)); + memset(z->fast, 0, sizeof(z->fast)); + for (i=0; i < num; ++i) + ++sizes[sizelist[i]]; + sizes[0] = 0; + for (i=1; i < 16; ++i) + if (sizes[i] > (1 << i)) + return stbi__err("bad sizes", "Corrupt PNG"); + code = 0; + for (i=1; i < 16; ++i) { + next_code[i] = code; + z->firstcode[i] = (stbi__uint16) code; + z->firstsymbol[i] = (stbi__uint16) k; + code = (code + sizes[i]); + if (sizes[i]) + if (code-1 >= (1 << i)) return stbi__err("bad codelengths","Corrupt PNG"); + z->maxcode[i] = code << (16-i); // preshift for inner loop + code <<= 1; + k += sizes[i]; + } + z->maxcode[16] = 0x10000; // sentinel + for (i=0; i < num; ++i) { + int s = sizelist[i]; + if (s) { + int c = next_code[s] - z->firstcode[s] + z->firstsymbol[s]; + stbi__uint16 fastv = (stbi__uint16) ((s << 9) | i); + z->size [c] = (stbi_uc ) s; + z->value[c] = (stbi__uint16) i; + if (s <= STBI__ZFAST_BITS) { + int k = stbi__bit_reverse(next_code[s],s); + while (k < (1 << STBI__ZFAST_BITS)) { + z->fast[k] = fastv; + k += (1 << s); + } + } + ++next_code[s]; + } + } + return 1; +} + +// zlib-from-memory implementation for PNG reading +// because PNG allows splitting the zlib stream arbitrarily, +// and it's annoying structurally to have PNG call ZLIB call PNG, +// we require PNG read all the IDATs and combine them into a single +// memory buffer + +typedef struct +{ + stbi_uc *zbuffer, *zbuffer_end; + int num_bits; + stbi__uint32 code_buffer; + + char *zout; + char *zout_start; + char *zout_end; + int z_expandable; + + stbi__zhuffman z_length, z_distance; +} stbi__zbuf; + +stbi_inline static stbi_uc stbi__zget8(stbi__zbuf *z) +{ + if (z->zbuffer >= z->zbuffer_end) return 0; + return *z->zbuffer++; +} + +static void stbi__fill_bits(stbi__zbuf *z) +{ + do { + STBI_ASSERT(z->code_buffer < (1U << z->num_bits)); + z->code_buffer |= stbi__zget8(z) << z->num_bits; + z->num_bits += 8; + } while (z->num_bits <= 24); +} + +stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n) +{ + unsigned int k; + if (z->num_bits < n) stbi__fill_bits(z); + k = z->code_buffer & ((1 << n) - 1); + z->code_buffer >>= n; + z->num_bits -= n; + return k; +} + +static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z) +{ + int b,s,k; + // not resolved by fast table, so compute it the slow way + // use jpeg approach, which requires MSbits at top + k = stbi__bit_reverse(a->code_buffer, 16); + for (s=STBI__ZFAST_BITS+1; ; ++s) + if (k < z->maxcode[s]) + break; + if (s == 16) return -1; // invalid code! + // code size is s, so: + b = (k >> (16-s)) - z->firstcode[s] + z->firstsymbol[s]; + STBI_ASSERT(z->size[b] == s); + a->code_buffer >>= s; + a->num_bits -= s; + return z->value[b]; +} + +stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z) +{ + int b,s; + if (a->num_bits < 16) stbi__fill_bits(a); + b = z->fast[a->code_buffer & STBI__ZFAST_MASK]; + if (b) { + s = b >> 9; + a->code_buffer >>= s; + a->num_bits -= s; + return b & 511; + } + return stbi__zhuffman_decode_slowpath(a, z); +} + +static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes +{ + char *q; + int cur, limit; + z->zout = zout; + if (!z->z_expandable) return stbi__err("output buffer limit","Corrupt PNG"); + cur = (int) (z->zout - z->zout_start); + limit = (int) (z->zout_end - z->zout_start); + while (cur + n > limit) + limit *= 2; + q = (char *) STBI_REALLOC(z->zout_start, limit); + if (q == NULL) return stbi__err("outofmem", "Out of memory"); + z->zout_start = q; + z->zout = q + cur; + z->zout_end = q + limit; + return 1; +} + +static int stbi__zlength_base[31] = { + 3,4,5,6,7,8,9,10,11,13, + 15,17,19,23,27,31,35,43,51,59, + 67,83,99,115,131,163,195,227,258,0,0 }; + +static int stbi__zlength_extra[31]= +{ 0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0 }; + +static int stbi__zdist_base[32] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193, +257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0}; + +static int stbi__zdist_extra[32] = +{ 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13}; + +static int stbi__parse_huffman_block(stbi__zbuf *a) +{ + char *zout = a->zout; + for(;;) { + int z = stbi__zhuffman_decode(a, &a->z_length); + if (z < 256) { + if (z < 0) return stbi__err("bad huffman code","Corrupt PNG"); // error in huffman codes + if (zout >= a->zout_end) { + if (!stbi__zexpand(a, zout, 1)) return 0; + zout = a->zout; + } + *zout++ = (char) z; + } else { + stbi_uc *p; + int len,dist; + if (z == 256) { + a->zout = zout; + return 1; + } + z -= 257; + len = stbi__zlength_base[z]; + if (stbi__zlength_extra[z]) len += stbi__zreceive(a, stbi__zlength_extra[z]); + z = stbi__zhuffman_decode(a, &a->z_distance); + if (z < 0) return stbi__err("bad huffman code","Corrupt PNG"); + dist = stbi__zdist_base[z]; + if (stbi__zdist_extra[z]) dist += stbi__zreceive(a, stbi__zdist_extra[z]); + if (zout - a->zout_start < dist) return stbi__err("bad dist","Corrupt PNG"); + if (zout + len > a->zout_end) { + if (!stbi__zexpand(a, zout, len)) return 0; + zout = a->zout; + } + p = (stbi_uc *) (zout - dist); + if (dist == 1) { // run of one byte; common in images. + stbi_uc v = *p; + if (len) { do *zout++ = v; while (--len); } + } else { + if (len) { do *zout++ = *p++; while (--len); } + } + } + } +} + +static int stbi__compute_huffman_codes(stbi__zbuf *a) +{ + static stbi_uc length_dezigzag[19] = { 16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15 }; + stbi__zhuffman z_codelength; + stbi_uc lencodes[286+32+137];//padding for maximum single op + stbi_uc codelength_sizes[19]; + int i,n; + + int hlit = stbi__zreceive(a,5) + 257; + int hdist = stbi__zreceive(a,5) + 1; + int hclen = stbi__zreceive(a,4) + 4; + + memset(codelength_sizes, 0, sizeof(codelength_sizes)); + for (i=0; i < hclen; ++i) { + int s = stbi__zreceive(a,3); + codelength_sizes[length_dezigzag[i]] = (stbi_uc) s; + } + if (!stbi__zbuild_huffman(&z_codelength, codelength_sizes, 19)) return 0; + + n = 0; + while (n < hlit + hdist) { + int c = stbi__zhuffman_decode(a, &z_codelength); + if (c < 0 || c >= 19) return stbi__err("bad codelengths", "Corrupt PNG"); + if (c < 16) + lencodes[n++] = (stbi_uc) c; + else if (c == 16) { + c = stbi__zreceive(a,2)+3; + memset(lencodes+n, lencodes[n-1], c); + n += c; + } else if (c == 17) { + c = stbi__zreceive(a,3)+3; + memset(lencodes+n, 0, c); + n += c; + } else { + STBI_ASSERT(c == 18); + c = stbi__zreceive(a,7)+11; + memset(lencodes+n, 0, c); + n += c; + } + } + if (n != hlit+hdist) return stbi__err("bad codelengths","Corrupt PNG"); + if (!stbi__zbuild_huffman(&a->z_length, lencodes, hlit)) return 0; + if (!stbi__zbuild_huffman(&a->z_distance, lencodes+hlit, hdist)) return 0; + return 1; +} + +static int stbi__parse_uncomperssed_block(stbi__zbuf *a) +{ + stbi_uc header[4]; + int len,nlen,k; + if (a->num_bits & 7) + stbi__zreceive(a, a->num_bits & 7); // discard + // drain the bit-packed data into header + k = 0; + while (a->num_bits > 0) { + header[k++] = (stbi_uc) (a->code_buffer & 255); // suppress MSVC run-time check + a->code_buffer >>= 8; + a->num_bits -= 8; + } + STBI_ASSERT(a->num_bits == 0); + // now fill header the normal way + while (k < 4) + header[k++] = stbi__zget8(a); + len = header[1] * 256 + header[0]; + nlen = header[3] * 256 + header[2]; + if (nlen != (len ^ 0xffff)) return stbi__err("zlib corrupt","Corrupt PNG"); + if (a->zbuffer + len > a->zbuffer_end) return stbi__err("read past buffer","Corrupt PNG"); + if (a->zout + len > a->zout_end) + if (!stbi__zexpand(a, a->zout, len)) return 0; + memcpy(a->zout, a->zbuffer, len); + a->zbuffer += len; + a->zout += len; + return 1; +} + +static int stbi__parse_zlib_header(stbi__zbuf *a) +{ + int cmf = stbi__zget8(a); + int cm = cmf & 15; + /* int cinfo = cmf >> 4; */ + int flg = stbi__zget8(a); + if ((cmf*256+flg) % 31 != 0) return stbi__err("bad zlib header","Corrupt PNG"); // zlib spec + if (flg & 32) return stbi__err("no preset dict","Corrupt PNG"); // preset dictionary not allowed in png + if (cm != 8) return stbi__err("bad compression","Corrupt PNG"); // DEFLATE required for png + // window = 1 << (8 + cinfo)... but who cares, we fully buffer output + return 1; +} + +// @TODO: should statically initialize these for optimal thread safety +static stbi_uc stbi__zdefault_length[288], stbi__zdefault_distance[32]; +static void stbi__init_zdefaults(void) +{ + int i; // use <= to match clearly with spec + for (i=0; i <= 143; ++i) stbi__zdefault_length[i] = 8; + for ( ; i <= 255; ++i) stbi__zdefault_length[i] = 9; + for ( ; i <= 279; ++i) stbi__zdefault_length[i] = 7; + for ( ; i <= 287; ++i) stbi__zdefault_length[i] = 8; + + for (i=0; i <= 31; ++i) stbi__zdefault_distance[i] = 5; +} + +static int stbi__parse_zlib(stbi__zbuf *a, int parse_header) +{ + int final, type; + if (parse_header) + if (!stbi__parse_zlib_header(a)) return 0; + a->num_bits = 0; + a->code_buffer = 0; + do { + final = stbi__zreceive(a,1); + type = stbi__zreceive(a,2); + if (type == 0) { + if (!stbi__parse_uncomperssed_block(a)) return 0; + } else if (type == 3) { + return 0; + } else { + if (type == 1) { + // use fixed code lengths + if (!stbi__zdefault_distance[31]) stbi__init_zdefaults(); + if (!stbi__zbuild_huffman(&a->z_length , stbi__zdefault_length , 288)) return 0; + if (!stbi__zbuild_huffman(&a->z_distance, stbi__zdefault_distance, 32)) return 0; + } else { + if (!stbi__compute_huffman_codes(a)) return 0; + } + if (!stbi__parse_huffman_block(a)) return 0; + } + } while (!final); + return 1; +} + +static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header) +{ + a->zout_start = obuf; + a->zout = obuf; + a->zout_end = obuf + olen; + a->z_expandable = exp; + + return stbi__parse_zlib(a, parse_header); +} + +STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(initial_size); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer + len; + if (stbi__do_zlib(&a, p, initial_size, 1, 1)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen) +{ + return stbi_zlib_decode_malloc_guesssize(buffer, len, 16384, outlen); +} + +STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(initial_size); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer + len; + if (stbi__do_zlib(&a, p, initial_size, 1, parse_header)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen) +{ + stbi__zbuf a; + a.zbuffer = (stbi_uc *) ibuffer; + a.zbuffer_end = (stbi_uc *) ibuffer + ilen; + if (stbi__do_zlib(&a, obuffer, olen, 0, 1)) + return (int) (a.zout - a.zout_start); + else + return -1; +} + +STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(16384); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer+len; + if (stbi__do_zlib(&a, p, 16384, 1, 0)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen) +{ + stbi__zbuf a; + a.zbuffer = (stbi_uc *) ibuffer; + a.zbuffer_end = (stbi_uc *) ibuffer + ilen; + if (stbi__do_zlib(&a, obuffer, olen, 0, 0)) + return (int) (a.zout - a.zout_start); + else + return -1; +} +#endif + +// public domain "baseline" PNG decoder v0.10 Sean Barrett 2006-11-18 +// simple implementation +// - only 8-bit samples +// - no CRC checking +// - allocates lots of intermediate memory +// - avoids problem of streaming data between subsystems +// - avoids explicit window management +// performance +// - uses stb_zlib, a PD zlib implementation with fast huffman decoding + +#ifndef STBI_NO_PNG +typedef struct +{ + stbi__uint32 length; + stbi__uint32 type; +} stbi__pngchunk; + +static stbi__pngchunk stbi__get_chunk_header(stbi__context *s) +{ + stbi__pngchunk c; + c.length = stbi__get32be(s); + c.type = stbi__get32be(s); + return c; +} + +static int stbi__check_png_header(stbi__context *s) +{ + static stbi_uc png_sig[8] = { 137,80,78,71,13,10,26,10 }; + int i; + for (i=0; i < 8; ++i) + if (stbi__get8(s) != png_sig[i]) return stbi__err("bad png sig","Not a PNG"); + return 1; +} + +typedef struct +{ + stbi__context *s; + stbi_uc *idata, *expanded, *out; +} stbi__png; + + +enum { + STBI__F_none=0, + STBI__F_sub=1, + STBI__F_up=2, + STBI__F_avg=3, + STBI__F_paeth=4, + // synthetic filters used for first scanline to avoid needing a dummy row of 0s + STBI__F_avg_first, + STBI__F_paeth_first +}; + +static stbi_uc first_row_filter[5] = +{ + STBI__F_none, + STBI__F_sub, + STBI__F_none, + STBI__F_avg_first, + STBI__F_paeth_first +}; + +static int stbi__paeth(int a, int b, int c) +{ + int p = a + b - c; + int pa = abs(p-a); + int pb = abs(p-b); + int pc = abs(p-c); + if (pa <= pb && pa <= pc) return a; + if (pb <= pc) return b; + return c; +} + +static stbi_uc stbi__depth_scale_table[9] = { 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 }; + +// create the png data from post-deflated data +static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color) +{ + stbi__context *s = a->s; + stbi__uint32 i,j,stride = x*out_n; + stbi__uint32 img_len, img_width_bytes; + int k; + int img_n = s->img_n; // copy it into a local for later + + STBI_ASSERT(out_n == s->img_n || out_n == s->img_n+1); + a->out = (stbi_uc *) stbi__malloc(x * y * out_n); // extra bytes to write off the end into + if (!a->out) return stbi__err("outofmem", "Out of memory"); + + img_width_bytes = (((img_n * x * depth) + 7) >> 3); + img_len = (img_width_bytes + 1) * y; + if (s->img_x == x && s->img_y == y) { + if (raw_len != img_len) return stbi__err("not enough pixels","Corrupt PNG"); + } else { // interlaced: + if (raw_len < img_len) return stbi__err("not enough pixels","Corrupt PNG"); + } + + for (j=0; j < y; ++j) { + stbi_uc *cur = a->out + stride*j; + stbi_uc *prior = cur - stride; + int filter = *raw++; + int filter_bytes = img_n; + int width = x; + if (filter > 4) + return stbi__err("invalid filter","Corrupt PNG"); + + if (depth < 8) { + STBI_ASSERT(img_width_bytes <= x); + cur += x*out_n - img_width_bytes; // store output to the rightmost img_len bytes, so we can decode in place + filter_bytes = 1; + width = img_width_bytes; + } + + // if first row, use special filter that doesn't sample previous row + if (j == 0) filter = first_row_filter[filter]; + + // handle first byte explicitly + for (k=0; k < filter_bytes; ++k) { + switch (filter) { + case STBI__F_none : cur[k] = raw[k]; break; + case STBI__F_sub : cur[k] = raw[k]; break; + case STBI__F_up : cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break; + case STBI__F_avg : cur[k] = STBI__BYTECAST(raw[k] + (prior[k]>>1)); break; + case STBI__F_paeth : cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(0,prior[k],0)); break; + case STBI__F_avg_first : cur[k] = raw[k]; break; + case STBI__F_paeth_first: cur[k] = raw[k]; break; + } + } + + if (depth == 8) { + if (img_n != out_n) + cur[img_n] = 255; // first pixel + raw += img_n; + cur += out_n; + prior += out_n; + } else { + raw += 1; + cur += 1; + prior += 1; + } + + // this is a little gross, so that we don't switch per-pixel or per-component + if (depth < 8 || img_n == out_n) { + int nk = (width - 1)*img_n; + #define CASE(f) \ + case f: \ + for (k=0; k < nk; ++k) + switch (filter) { + // "none" filter turns into a memcpy here; make that explicit. + case STBI__F_none: memcpy(cur, raw, nk); break; + CASE(STBI__F_sub) cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); break; + CASE(STBI__F_up) cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break; + CASE(STBI__F_avg) cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1)); break; + CASE(STBI__F_paeth) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],prior[k],prior[k-filter_bytes])); break; + CASE(STBI__F_avg_first) cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); break; + CASE(STBI__F_paeth_first) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],0,0)); break; + } + #undef CASE + raw += nk; + } else { + STBI_ASSERT(img_n+1 == out_n); + #define CASE(f) \ + case f: \ + for (i=x-1; i >= 1; --i, cur[img_n]=255,raw+=img_n,cur+=out_n,prior+=out_n) \ + for (k=0; k < img_n; ++k) + switch (filter) { + CASE(STBI__F_none) cur[k] = raw[k]; break; + CASE(STBI__F_sub) cur[k] = STBI__BYTECAST(raw[k] + cur[k-out_n]); break; + CASE(STBI__F_up) cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break; + CASE(STBI__F_avg) cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-out_n])>>1)); break; + CASE(STBI__F_paeth) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],prior[k],prior[k-out_n])); break; + CASE(STBI__F_avg_first) cur[k] = STBI__BYTECAST(raw[k] + (cur[k-out_n] >> 1)); break; + CASE(STBI__F_paeth_first) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break; + } + #undef CASE + } + } + + // we make a separate pass to expand bits to pixels; for performance, + // this could run two scanlines behind the above code, so it won't + // intefere with filtering but will still be in the cache. + if (depth < 8) { + for (j=0; j < y; ++j) { + stbi_uc *cur = a->out + stride*j; + stbi_uc *in = a->out + stride*j + x*out_n - img_width_bytes; + // unpack 1/2/4-bit into a 8-bit buffer. allows us to keep the common 8-bit path optimal at minimal cost for 1/2/4-bit + // png guarante byte alignment, if width is not multiple of 8/4/2 we'll decode dummy trailing data that will be skipped in the later loop + stbi_uc scale = (color == 0) ? stbi__depth_scale_table[depth] : 1; // scale grayscale values to 0..255 range + + // note that the final byte might overshoot and write more data than desired. + // we can allocate enough data that this never writes out of memory, but it + // could also overwrite the next scanline. can it overwrite non-empty data + // on the next scanline? yes, consider 1-pixel-wide scanlines with 1-bit-per-pixel. + // so we need to explicitly clamp the final ones + + if (depth == 4) { + for (k=x*img_n; k >= 2; k-=2, ++in) { + *cur++ = scale * ((*in >> 4) ); + *cur++ = scale * ((*in ) & 0x0f); + } + if (k > 0) *cur++ = scale * ((*in >> 4) ); + } else if (depth == 2) { + for (k=x*img_n; k >= 4; k-=4, ++in) { + *cur++ = scale * ((*in >> 6) ); + *cur++ = scale * ((*in >> 4) & 0x03); + *cur++ = scale * ((*in >> 2) & 0x03); + *cur++ = scale * ((*in ) & 0x03); + } + if (k > 0) *cur++ = scale * ((*in >> 6) ); + if (k > 1) *cur++ = scale * ((*in >> 4) & 0x03); + if (k > 2) *cur++ = scale * ((*in >> 2) & 0x03); + } else if (depth == 1) { + for (k=x*img_n; k >= 8; k-=8, ++in) { + *cur++ = scale * ((*in >> 7) ); + *cur++ = scale * ((*in >> 6) & 0x01); + *cur++ = scale * ((*in >> 5) & 0x01); + *cur++ = scale * ((*in >> 4) & 0x01); + *cur++ = scale * ((*in >> 3) & 0x01); + *cur++ = scale * ((*in >> 2) & 0x01); + *cur++ = scale * ((*in >> 1) & 0x01); + *cur++ = scale * ((*in ) & 0x01); + } + if (k > 0) *cur++ = scale * ((*in >> 7) ); + if (k > 1) *cur++ = scale * ((*in >> 6) & 0x01); + if (k > 2) *cur++ = scale * ((*in >> 5) & 0x01); + if (k > 3) *cur++ = scale * ((*in >> 4) & 0x01); + if (k > 4) *cur++ = scale * ((*in >> 3) & 0x01); + if (k > 5) *cur++ = scale * ((*in >> 2) & 0x01); + if (k > 6) *cur++ = scale * ((*in >> 1) & 0x01); + } + if (img_n != out_n) { + // insert alpha = 255 + stbi_uc *cur = a->out + stride*j; + int i; + if (img_n == 1) { + for (i=x-1; i >= 0; --i) { + cur[i*2+1] = 255; + cur[i*2+0] = cur[i]; + } + } else { + STBI_ASSERT(img_n == 3); + for (i=x-1; i >= 0; --i) { + cur[i*4+3] = 255; + cur[i*4+2] = cur[i*3+2]; + cur[i*4+1] = cur[i*3+1]; + cur[i*4+0] = cur[i*3+0]; + } + } + } + } + } + + return 1; +} + +static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced) +{ + stbi_uc *final; + int p; + if (!interlaced) + return stbi__create_png_image_raw(a, image_data, image_data_len, out_n, a->s->img_x, a->s->img_y, depth, color); + + // de-interlacing + final = (stbi_uc *) stbi__malloc(a->s->img_x * a->s->img_y * out_n); + for (p=0; p < 7; ++p) { + int xorig[] = { 0,4,0,2,0,1,0 }; + int yorig[] = { 0,0,4,0,2,0,1 }; + int xspc[] = { 8,8,4,4,2,2,1 }; + int yspc[] = { 8,8,8,4,4,2,2 }; + int i,j,x,y; + // pass1_x[4] = 0, pass1_x[5] = 1, pass1_x[12] = 1 + x = (a->s->img_x - xorig[p] + xspc[p]-1) / xspc[p]; + y = (a->s->img_y - yorig[p] + yspc[p]-1) / yspc[p]; + if (x && y) { + stbi__uint32 img_len = ((((a->s->img_n * x * depth) + 7) >> 3) + 1) * y; + if (!stbi__create_png_image_raw(a, image_data, image_data_len, out_n, x, y, depth, color)) { + STBI_FREE(final); + return 0; + } + for (j=0; j < y; ++j) { + for (i=0; i < x; ++i) { + int out_y = j*yspc[p]+yorig[p]; + int out_x = i*xspc[p]+xorig[p]; + memcpy(final + out_y*a->s->img_x*out_n + out_x*out_n, + a->out + (j*x+i)*out_n, out_n); + } + } + STBI_FREE(a->out); + image_data += img_len; + image_data_len -= img_len; + } + } + a->out = final; + + return 1; +} + +static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi_uc *p = z->out; + + // compute color-based transparency, assuming we've + // already got 255 as the alpha value in the output + STBI_ASSERT(out_n == 2 || out_n == 4); + + if (out_n == 2) { + for (i=0; i < pixel_count; ++i) { + p[1] = (p[0] == tc[0] ? 0 : 255); + p += 2; + } + } else { + for (i=0; i < pixel_count; ++i) { + if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2]) + p[3] = 0; + p += 4; + } + } + return 1; +} + +static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n) +{ + stbi__uint32 i, pixel_count = a->s->img_x * a->s->img_y; + stbi_uc *p, *temp_out, *orig = a->out; + + p = (stbi_uc *) stbi__malloc(pixel_count * pal_img_n); + if (p == NULL) return stbi__err("outofmem", "Out of memory"); + + // between here and free(out) below, exitting would leak + temp_out = p; + + if (pal_img_n == 3) { + for (i=0; i < pixel_count; ++i) { + int n = orig[i]*4; + p[0] = palette[n ]; + p[1] = palette[n+1]; + p[2] = palette[n+2]; + p += 3; + } + } else { + for (i=0; i < pixel_count; ++i) { + int n = orig[i]*4; + p[0] = palette[n ]; + p[1] = palette[n+1]; + p[2] = palette[n+2]; + p[3] = palette[n+3]; + p += 4; + } + } + STBI_FREE(a->out); + a->out = temp_out; + + STBI_NOTUSED(len); + + return 1; +} + +static int stbi__unpremultiply_on_load = 0; +static int stbi__de_iphone_flag = 0; + +STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply) +{ + stbi__unpremultiply_on_load = flag_true_if_should_unpremultiply; +} + +STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert) +{ + stbi__de_iphone_flag = flag_true_if_should_convert; +} + +static void stbi__de_iphone(stbi__png *z) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi_uc *p = z->out; + + if (s->img_out_n == 3) { // convert bgr to rgb + for (i=0; i < pixel_count; ++i) { + stbi_uc t = p[0]; + p[0] = p[2]; + p[2] = t; + p += 3; + } + } else { + STBI_ASSERT(s->img_out_n == 4); + if (stbi__unpremultiply_on_load) { + // convert bgr to rgb and unpremultiply + for (i=0; i < pixel_count; ++i) { + stbi_uc a = p[3]; + stbi_uc t = p[0]; + if (a) { + p[0] = p[2] * 255 / a; + p[1] = p[1] * 255 / a; + p[2] = t * 255 / a; + } else { + p[0] = p[2]; + p[2] = t; + } + p += 4; + } + } else { + // convert bgr to rgb + for (i=0; i < pixel_count; ++i) { + stbi_uc t = p[0]; + p[0] = p[2]; + p[2] = t; + p += 4; + } + } + } +} + +#define STBI__PNG_TYPE(a,b,c,d) (((a) << 24) + ((b) << 16) + ((c) << 8) + (d)) + +static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp) +{ + stbi_uc palette[1024], pal_img_n=0; + stbi_uc has_trans=0, tc[3]; + stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0; + int first=1,k,interlace=0, color=0, depth=0, is_iphone=0; + stbi__context *s = z->s; + + z->expanded = NULL; + z->idata = NULL; + z->out = NULL; + + if (!stbi__check_png_header(s)) return 0; + + if (scan == STBI__SCAN_type) return 1; + + for (;;) { + stbi__pngchunk c = stbi__get_chunk_header(s); + switch (c.type) { + case STBI__PNG_TYPE('C','g','B','I'): + is_iphone = 1; + stbi__skip(s, c.length); + break; + case STBI__PNG_TYPE('I','H','D','R'): { + int comp,filter; + if (!first) return stbi__err("multiple IHDR","Corrupt PNG"); + first = 0; + if (c.length != 13) return stbi__err("bad IHDR len","Corrupt PNG"); + s->img_x = stbi__get32be(s); if (s->img_x > (1 << 24)) return stbi__err("too large","Very large image (corrupt?)"); + s->img_y = stbi__get32be(s); if (s->img_y > (1 << 24)) return stbi__err("too large","Very large image (corrupt?)"); + depth = stbi__get8(s); if (depth != 1 && depth != 2 && depth != 4 && depth != 8) return stbi__err("1/2/4/8-bit only","PNG not supported: 1/2/4/8-bit only"); + color = stbi__get8(s); if (color > 6) return stbi__err("bad ctype","Corrupt PNG"); + if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG"); + comp = stbi__get8(s); if (comp) return stbi__err("bad comp method","Corrupt PNG"); + filter= stbi__get8(s); if (filter) return stbi__err("bad filter method","Corrupt PNG"); + interlace = stbi__get8(s); if (interlace>1) return stbi__err("bad interlace method","Corrupt PNG"); + if (!s->img_x || !s->img_y) return stbi__err("0-pixel image","Corrupt PNG"); + if (!pal_img_n) { + s->img_n = (color & 2 ? 3 : 1) + (color & 4 ? 1 : 0); + if ((1 << 30) / s->img_x / s->img_n < s->img_y) return stbi__err("too large", "Image too large to decode"); + if (scan == STBI__SCAN_header) return 1; + } else { + // if paletted, then pal_n is our final components, and + // img_n is # components to decompress/filter. + s->img_n = 1; + if ((1 << 30) / s->img_x / 4 < s->img_y) return stbi__err("too large","Corrupt PNG"); + // if SCAN_header, have to scan to see if we have a tRNS + } + break; + } + + case STBI__PNG_TYPE('P','L','T','E'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (c.length > 256*3) return stbi__err("invalid PLTE","Corrupt PNG"); + pal_len = c.length / 3; + if (pal_len * 3 != c.length) return stbi__err("invalid PLTE","Corrupt PNG"); + for (i=0; i < pal_len; ++i) { + palette[i*4+0] = stbi__get8(s); + palette[i*4+1] = stbi__get8(s); + palette[i*4+2] = stbi__get8(s); + palette[i*4+3] = 255; + } + break; + } + + case STBI__PNG_TYPE('t','R','N','S'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (z->idata) return stbi__err("tRNS after IDAT","Corrupt PNG"); + if (pal_img_n) { + if (scan == STBI__SCAN_header) { s->img_n = 4; return 1; } + if (pal_len == 0) return stbi__err("tRNS before PLTE","Corrupt PNG"); + if (c.length > pal_len) return stbi__err("bad tRNS len","Corrupt PNG"); + pal_img_n = 4; + for (i=0; i < c.length; ++i) + palette[i*4+3] = stbi__get8(s); + } else { + if (!(s->img_n & 1)) return stbi__err("tRNS with alpha","Corrupt PNG"); + if (c.length != (stbi__uint32) s->img_n*2) return stbi__err("bad tRNS len","Corrupt PNG"); + has_trans = 1; + for (k=0; k < s->img_n; ++k) + tc[k] = (stbi_uc) (stbi__get16be(s) & 255) * stbi__depth_scale_table[depth]; // non 8-bit images will be larger + } + break; + } + + case STBI__PNG_TYPE('I','D','A','T'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG"); + if (scan == STBI__SCAN_header) { s->img_n = pal_img_n; return 1; } + if ((int)(ioff + c.length) < (int)ioff) return 0; + if (ioff + c.length > idata_limit) { + stbi_uc *p; + if (idata_limit == 0) idata_limit = c.length > 4096 ? c.length : 4096; + while (ioff + c.length > idata_limit) + idata_limit *= 2; + p = (stbi_uc *) STBI_REALLOC(z->idata, idata_limit); if (p == NULL) return stbi__err("outofmem", "Out of memory"); + z->idata = p; + } + if (!stbi__getn(s, z->idata+ioff,c.length)) return stbi__err("outofdata","Corrupt PNG"); + ioff += c.length; + break; + } + + case STBI__PNG_TYPE('I','E','N','D'): { + stbi__uint32 raw_len, bpl; + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (scan != STBI__SCAN_load) return 1; + if (z->idata == NULL) return stbi__err("no IDAT","Corrupt PNG"); + // initial guess for decoded data size to avoid unnecessary reallocs + bpl = (s->img_x * depth + 7) / 8; // bytes per line, per component + raw_len = bpl * s->img_y * s->img_n /* pixels */ + s->img_y /* filter mode per row */; + z->expanded = (stbi_uc *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, raw_len, (int *) &raw_len, !is_iphone); + if (z->expanded == NULL) return 0; // zlib should set error + STBI_FREE(z->idata); z->idata = NULL; + if ((req_comp == s->img_n+1 && req_comp != 3 && !pal_img_n) || has_trans) + s->img_out_n = s->img_n+1; + else + s->img_out_n = s->img_n; + if (!stbi__create_png_image(z, z->expanded, raw_len, s->img_out_n, depth, color, interlace)) return 0; + if (has_trans) + if (!stbi__compute_transparency(z, tc, s->img_out_n)) return 0; + if (is_iphone && stbi__de_iphone_flag && s->img_out_n > 2) + stbi__de_iphone(z); + if (pal_img_n) { + // pal_img_n == 3 or 4 + s->img_n = pal_img_n; // record the actual colors we had + s->img_out_n = pal_img_n; + if (req_comp >= 3) s->img_out_n = req_comp; + if (!stbi__expand_png_palette(z, palette, pal_len, s->img_out_n)) + return 0; + } + STBI_FREE(z->expanded); z->expanded = NULL; + return 1; + } + + default: + // if critical, fail + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if ((c.type & (1 << 29)) == 0) { + #ifndef STBI_NO_FAILURE_STRINGS + // not threadsafe + static char invalid_chunk[] = "XXXX PNG chunk not known"; + invalid_chunk[0] = STBI__BYTECAST(c.type >> 24); + invalid_chunk[1] = STBI__BYTECAST(c.type >> 16); + invalid_chunk[2] = STBI__BYTECAST(c.type >> 8); + invalid_chunk[3] = STBI__BYTECAST(c.type >> 0); + #endif + return stbi__err(invalid_chunk, "PNG not supported: unknown PNG chunk type"); + } + stbi__skip(s, c.length); + break; + } + // end of PNG chunk, read and skip CRC + stbi__get32be(s); + } +} + +static unsigned char *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp) +{ + unsigned char *result=NULL; + if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error"); + if (stbi__parse_png_file(p, STBI__SCAN_load, req_comp)) { + result = p->out; + p->out = NULL; + if (req_comp && req_comp != p->s->img_out_n) { + result = stbi__convert_format(result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y); + p->s->img_out_n = req_comp; + if (result == NULL) return result; + } + *x = p->s->img_x; + *y = p->s->img_y; + if (n) *n = p->s->img_out_n; + } + STBI_FREE(p->out); p->out = NULL; + STBI_FREE(p->expanded); p->expanded = NULL; + STBI_FREE(p->idata); p->idata = NULL; + + return result; +} + +static unsigned char *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi__png p; + p.s = s; + return stbi__do_png(&p, x,y,comp,req_comp); +} + +static int stbi__png_test(stbi__context *s) +{ + int r; + r = stbi__check_png_header(s); + stbi__rewind(s); + return r; +} + +static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp) +{ + if (!stbi__parse_png_file(p, STBI__SCAN_header, 0)) { + stbi__rewind( p->s ); + return 0; + } + if (x) *x = p->s->img_x; + if (y) *y = p->s->img_y; + if (comp) *comp = p->s->img_n; + return 1; +} + +static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp) +{ + stbi__png p; + p.s = s; + return stbi__png_info_raw(&p, x, y, comp); +} +#endif + +// Microsoft/Windows BMP image + +#ifndef STBI_NO_BMP +static int stbi__bmp_test_raw(stbi__context *s) +{ + int r; + int sz; + if (stbi__get8(s) != 'B') return 0; + if (stbi__get8(s) != 'M') return 0; + stbi__get32le(s); // discard filesize + stbi__get16le(s); // discard reserved + stbi__get16le(s); // discard reserved + stbi__get32le(s); // discard data offset + sz = stbi__get32le(s); + r = (sz == 12 || sz == 40 || sz == 56 || sz == 108 || sz == 124); + return r; +} + +static int stbi__bmp_test(stbi__context *s) +{ + int r = stbi__bmp_test_raw(s); + stbi__rewind(s); + return r; +} + + +// returns 0..31 for the highest set bit +static int stbi__high_bit(unsigned int z) +{ + int n=0; + if (z == 0) return -1; + if (z >= 0x10000) n += 16, z >>= 16; + if (z >= 0x00100) n += 8, z >>= 8; + if (z >= 0x00010) n += 4, z >>= 4; + if (z >= 0x00004) n += 2, z >>= 2; + if (z >= 0x00002) n += 1, z >>= 1; + return n; +} + +static int stbi__bitcount(unsigned int a) +{ + a = (a & 0x55555555) + ((a >> 1) & 0x55555555); // max 2 + a = (a & 0x33333333) + ((a >> 2) & 0x33333333); // max 4 + a = (a + (a >> 4)) & 0x0f0f0f0f; // max 8 per 4, now 8 bits + a = (a + (a >> 8)); // max 16 per 8 bits + a = (a + (a >> 16)); // max 32 per 8 bits + return a & 0xff; +} + +static int stbi__shiftsigned(int v, int shift, int bits) +{ + int result; + int z=0; + + if (shift < 0) v <<= -shift; + else v >>= shift; + result = v; + + z = bits; + while (z < 8) { + result += v >> z; + z += bits; + } + return result; +} + +static stbi_uc *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi_uc *out; + unsigned int mr=0,mg=0,mb=0,ma=0, fake_a=0; + stbi_uc pal[256][4]; + int psize=0,i,j,compress=0,width; + int bpp, flip_vertically, pad, target, offset, hsz; + if (stbi__get8(s) != 'B' || stbi__get8(s) != 'M') return stbi__errpuc("not BMP", "Corrupt BMP"); + stbi__get32le(s); // discard filesize + stbi__get16le(s); // discard reserved + stbi__get16le(s); // discard reserved + offset = stbi__get32le(s); + hsz = stbi__get32le(s); + if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108 && hsz != 124) return stbi__errpuc("unknown BMP", "BMP type not supported: unknown"); + if (hsz == 12) { + s->img_x = stbi__get16le(s); + s->img_y = stbi__get16le(s); + } else { + s->img_x = stbi__get32le(s); + s->img_y = stbi__get32le(s); + } + if (stbi__get16le(s) != 1) return stbi__errpuc("bad BMP", "bad BMP"); + bpp = stbi__get16le(s); + if (bpp == 1) return stbi__errpuc("monochrome", "BMP type not supported: 1-bit"); + flip_vertically = ((int) s->img_y) > 0; + s->img_y = abs((int) s->img_y); + if (hsz == 12) { + if (bpp < 24) + psize = (offset - 14 - 24) / 3; + } else { + compress = stbi__get32le(s); + if (compress == 1 || compress == 2) return stbi__errpuc("BMP RLE", "BMP type not supported: RLE"); + stbi__get32le(s); // discard sizeof + stbi__get32le(s); // discard hres + stbi__get32le(s); // discard vres + stbi__get32le(s); // discard colorsused + stbi__get32le(s); // discard max important + if (hsz == 40 || hsz == 56) { + if (hsz == 56) { + stbi__get32le(s); + stbi__get32le(s); + stbi__get32le(s); + stbi__get32le(s); + } + if (bpp == 16 || bpp == 32) { + mr = mg = mb = 0; + if (compress == 0) { + if (bpp == 32) { + mr = 0xffu << 16; + mg = 0xffu << 8; + mb = 0xffu << 0; + ma = 0xffu << 24; + fake_a = 1; // @TODO: check for cases like alpha value is all 0 and switch it to 255 + STBI_NOTUSED(fake_a); + } else { + mr = 31u << 10; + mg = 31u << 5; + mb = 31u << 0; + } + } else if (compress == 3) { + mr = stbi__get32le(s); + mg = stbi__get32le(s); + mb = stbi__get32le(s); + // not documented, but generated by photoshop and handled by mspaint + if (mr == mg && mg == mb) { + // ?!?!? + return stbi__errpuc("bad BMP", "bad BMP"); + } + } else + return stbi__errpuc("bad BMP", "bad BMP"); + } + } else { + STBI_ASSERT(hsz == 108 || hsz == 124); + mr = stbi__get32le(s); + mg = stbi__get32le(s); + mb = stbi__get32le(s); + ma = stbi__get32le(s); + stbi__get32le(s); // discard color space + for (i=0; i < 12; ++i) + stbi__get32le(s); // discard color space parameters + if (hsz == 124) { + stbi__get32le(s); // discard rendering intent + stbi__get32le(s); // discard offset of profile data + stbi__get32le(s); // discard size of profile data + stbi__get32le(s); // discard reserved + } + } + if (bpp < 16) + psize = (offset - 14 - hsz) >> 2; + } + s->img_n = ma ? 4 : 3; + if (req_comp && req_comp >= 3) // we can directly decode 3 or 4 + target = req_comp; + else + target = s->img_n; // if they want monochrome, we'll post-convert + out = (stbi_uc *) stbi__malloc(target * s->img_x * s->img_y); + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + if (bpp < 16) { + int z=0; + if (psize == 0 || psize > 256) { STBI_FREE(out); return stbi__errpuc("invalid", "Corrupt BMP"); } + for (i=0; i < psize; ++i) { + pal[i][2] = stbi__get8(s); + pal[i][1] = stbi__get8(s); + pal[i][0] = stbi__get8(s); + if (hsz != 12) stbi__get8(s); + pal[i][3] = 255; + } + stbi__skip(s, offset - 14 - hsz - psize * (hsz == 12 ? 3 : 4)); + if (bpp == 4) width = (s->img_x + 1) >> 1; + else if (bpp == 8) width = s->img_x; + else { STBI_FREE(out); return stbi__errpuc("bad bpp", "Corrupt BMP"); } + pad = (-width)&3; + for (j=0; j < (int) s->img_y; ++j) { + for (i=0; i < (int) s->img_x; i += 2) { + int v=stbi__get8(s),v2=0; + if (bpp == 4) { + v2 = v & 15; + v >>= 4; + } + out[z++] = pal[v][0]; + out[z++] = pal[v][1]; + out[z++] = pal[v][2]; + if (target == 4) out[z++] = 255; + if (i+1 == (int) s->img_x) break; + v = (bpp == 8) ? stbi__get8(s) : v2; + out[z++] = pal[v][0]; + out[z++] = pal[v][1]; + out[z++] = pal[v][2]; + if (target == 4) out[z++] = 255; + } + stbi__skip(s, pad); + } + } else { + int rshift=0,gshift=0,bshift=0,ashift=0,rcount=0,gcount=0,bcount=0,acount=0; + int z = 0; + int easy=0; + stbi__skip(s, offset - 14 - hsz); + if (bpp == 24) width = 3 * s->img_x; + else if (bpp == 16) width = 2*s->img_x; + else /* bpp = 32 and pad = 0 */ width=0; + pad = (-width) & 3; + if (bpp == 24) { + easy = 1; + } else if (bpp == 32) { + if (mb == 0xff && mg == 0xff00 && mr == 0x00ff0000 && ma == 0xff000000) + easy = 2; + } + if (!easy) { + if (!mr || !mg || !mb) { STBI_FREE(out); return stbi__errpuc("bad masks", "Corrupt BMP"); } + // right shift amt to put high bit in position #7 + rshift = stbi__high_bit(mr)-7; rcount = stbi__bitcount(mr); + gshift = stbi__high_bit(mg)-7; gcount = stbi__bitcount(mg); + bshift = stbi__high_bit(mb)-7; bcount = stbi__bitcount(mb); + ashift = stbi__high_bit(ma)-7; acount = stbi__bitcount(ma); + } + for (j=0; j < (int) s->img_y; ++j) { + if (easy) { + for (i=0; i < (int) s->img_x; ++i) { + unsigned char a; + out[z+2] = stbi__get8(s); + out[z+1] = stbi__get8(s); + out[z+0] = stbi__get8(s); + z += 3; + a = (easy == 2 ? stbi__get8(s) : 255); + if (target == 4) out[z++] = a; + } + } else { + for (i=0; i < (int) s->img_x; ++i) { + stbi__uint32 v = (bpp == 16 ? (stbi__uint32) stbi__get16le(s) : stbi__get32le(s)); + int a; + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mr, rshift, rcount)); + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mg, gshift, gcount)); + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mb, bshift, bcount)); + a = (ma ? stbi__shiftsigned(v & ma, ashift, acount) : 255); + if (target == 4) out[z++] = STBI__BYTECAST(a); + } + } + stbi__skip(s, pad); + } + } + if (flip_vertically) { + stbi_uc t; + for (j=0; j < (int) s->img_y>>1; ++j) { + stbi_uc *p1 = out + j *s->img_x*target; + stbi_uc *p2 = out + (s->img_y-1-j)*s->img_x*target; + for (i=0; i < (int) s->img_x*target; ++i) { + t = p1[i], p1[i] = p2[i], p2[i] = t; + } + } + } + + if (req_comp && req_comp != target) { + out = stbi__convert_format(out, target, req_comp, s->img_x, s->img_y); + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + + *x = s->img_x; + *y = s->img_y; + if (comp) *comp = s->img_n; + return out; +} +#endif + +// Targa Truevision - TGA +// by Jonathan Dummer +#ifndef STBI_NO_TGA +static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp) +{ + int tga_w, tga_h, tga_comp; + int sz; + stbi__get8(s); // discard Offset + sz = stbi__get8(s); // color type + if( sz > 1 ) { + stbi__rewind(s); + return 0; // only RGB or indexed allowed + } + sz = stbi__get8(s); // image type + // only RGB or grey allowed, +/- RLE + if ((sz != 1) && (sz != 2) && (sz != 3) && (sz != 9) && (sz != 10) && (sz != 11)) return 0; + stbi__skip(s,9); + tga_w = stbi__get16le(s); + if( tga_w < 1 ) { + stbi__rewind(s); + return 0; // test width + } + tga_h = stbi__get16le(s); + if( tga_h < 1 ) { + stbi__rewind(s); + return 0; // test height + } + sz = stbi__get8(s); // bits per pixel + // only RGB or RGBA or grey allowed + if ((sz != 8) && (sz != 16) && (sz != 24) && (sz != 32)) { + stbi__rewind(s); + return 0; + } + tga_comp = sz; + if (x) *x = tga_w; + if (y) *y = tga_h; + if (comp) *comp = tga_comp / 8; + return 1; // seems to have passed everything +} + +static int stbi__tga_test(stbi__context *s) +{ + int res; + int sz; + stbi__get8(s); // discard Offset + sz = stbi__get8(s); // color type + if ( sz > 1 ) return 0; // only RGB or indexed allowed + sz = stbi__get8(s); // image type + if ( (sz != 1) && (sz != 2) && (sz != 3) && (sz != 9) && (sz != 10) && (sz != 11) ) return 0; // only RGB or grey allowed, +/- RLE + stbi__get16be(s); // discard palette start + stbi__get16be(s); // discard palette length + stbi__get8(s); // discard bits per palette color entry + stbi__get16be(s); // discard x origin + stbi__get16be(s); // discard y origin + if ( stbi__get16be(s) < 1 ) return 0; // test width + if ( stbi__get16be(s) < 1 ) return 0; // test height + sz = stbi__get8(s); // bits per pixel + if ( (sz != 8) && (sz != 16) && (sz != 24) && (sz != 32) ) + res = 0; + else + res = 1; + stbi__rewind(s); + return res; +} + +static stbi_uc *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + // read in the TGA header stuff + int tga_offset = stbi__get8(s); + int tga_indexed = stbi__get8(s); + int tga_image_type = stbi__get8(s); + int tga_is_RLE = 0; + int tga_palette_start = stbi__get16le(s); + int tga_palette_len = stbi__get16le(s); + int tga_palette_bits = stbi__get8(s); + int tga_x_origin = stbi__get16le(s); + int tga_y_origin = stbi__get16le(s); + int tga_width = stbi__get16le(s); + int tga_height = stbi__get16le(s); + int tga_bits_per_pixel = stbi__get8(s); + int tga_comp = tga_bits_per_pixel / 8; + int tga_inverted = stbi__get8(s); + // image data + unsigned char *tga_data; + unsigned char *tga_palette = NULL; + int i, j; + unsigned char raw_data[4]; + int RLE_count = 0; + int RLE_repeating = 0; + int read_next_pixel = 1; + + // do a tiny bit of precessing + if ( tga_image_type >= 8 ) + { + tga_image_type -= 8; + tga_is_RLE = 1; + } + /* int tga_alpha_bits = tga_inverted & 15; */ + tga_inverted = 1 - ((tga_inverted >> 5) & 1); + + // error check + if ( //(tga_indexed) || + (tga_width < 1) || (tga_height < 1) || + (tga_image_type < 1) || (tga_image_type > 3) || + ((tga_bits_per_pixel != 8) && (tga_bits_per_pixel != 16) && + (tga_bits_per_pixel != 24) && (tga_bits_per_pixel != 32)) + ) + { + return NULL; // we don't report this as a bad TGA because we don't even know if it's TGA + } + + // If I'm paletted, then I'll use the number of bits from the palette + if ( tga_indexed ) + { + tga_comp = tga_palette_bits / 8; + } + + // tga info + *x = tga_width; + *y = tga_height; + if (comp) *comp = tga_comp; + + tga_data = (unsigned char*)stbi__malloc( (size_t)tga_width * tga_height * tga_comp ); + if (!tga_data) return stbi__errpuc("outofmem", "Out of memory"); + + // skip to the data's starting position (offset usually = 0) + stbi__skip(s, tga_offset ); + + if ( !tga_indexed && !tga_is_RLE) { + for (i=0; i < tga_height; ++i) { + int y = tga_inverted ? tga_height -i - 1 : i; + stbi_uc *tga_row = tga_data + y*tga_width*tga_comp; + stbi__getn(s, tga_row, tga_width * tga_comp); + } + } else { + // do I need to load a palette? + if ( tga_indexed) + { + // any data to skip? (offset usually = 0) + stbi__skip(s, tga_palette_start ); + // load the palette + tga_palette = (unsigned char*)stbi__malloc( tga_palette_len * tga_palette_bits / 8 ); + if (!tga_palette) { + STBI_FREE(tga_data); + return stbi__errpuc("outofmem", "Out of memory"); + } + if (!stbi__getn(s, tga_palette, tga_palette_len * tga_palette_bits / 8 )) { + STBI_FREE(tga_data); + STBI_FREE(tga_palette); + return stbi__errpuc("bad palette", "Corrupt TGA"); + } + } + // load the data + for (i=0; i < tga_width * tga_height; ++i) + { + // if I'm in RLE mode, do I need to get a RLE stbi__pngchunk? + if ( tga_is_RLE ) + { + if ( RLE_count == 0 ) + { + // yep, get the next byte as a RLE command + int RLE_cmd = stbi__get8(s); + RLE_count = 1 + (RLE_cmd & 127); + RLE_repeating = RLE_cmd >> 7; + read_next_pixel = 1; + } else if ( !RLE_repeating ) + { + read_next_pixel = 1; + } + } else + { + read_next_pixel = 1; + } + // OK, if I need to read a pixel, do it now + if ( read_next_pixel ) + { + // load however much data we did have + if ( tga_indexed ) + { + // read in 1 byte, then perform the lookup + int pal_idx = stbi__get8(s); + if ( pal_idx >= tga_palette_len ) + { + // invalid index + pal_idx = 0; + } + pal_idx *= tga_bits_per_pixel / 8; + for (j = 0; j*8 < tga_bits_per_pixel; ++j) + { + raw_data[j] = tga_palette[pal_idx+j]; + } + } else + { + // read in the data raw + for (j = 0; j*8 < tga_bits_per_pixel; ++j) + { + raw_data[j] = stbi__get8(s); + } + } + // clear the reading flag for the next pixel + read_next_pixel = 0; + } // end of reading a pixel + + // copy data + for (j = 0; j < tga_comp; ++j) + tga_data[i*tga_comp+j] = raw_data[j]; + + // in case we're in RLE mode, keep counting down + --RLE_count; + } + // do I need to invert the image? + if ( tga_inverted ) + { + for (j = 0; j*2 < tga_height; ++j) + { + int index1 = j * tga_width * tga_comp; + int index2 = (tga_height - 1 - j) * tga_width * tga_comp; + for (i = tga_width * tga_comp; i > 0; --i) + { + unsigned char temp = tga_data[index1]; + tga_data[index1] = tga_data[index2]; + tga_data[index2] = temp; + ++index1; + ++index2; + } + } + } + // clear my palette, if I had one + if ( tga_palette != NULL ) + { + STBI_FREE( tga_palette ); + } + } + + // swap RGB + if (tga_comp >= 3) + { + unsigned char* tga_pixel = tga_data; + for (i=0; i < tga_width * tga_height; ++i) + { + unsigned char temp = tga_pixel[0]; + tga_pixel[0] = tga_pixel[2]; + tga_pixel[2] = temp; + tga_pixel += tga_comp; + } + } + + // convert to target component count + if (req_comp && req_comp != tga_comp) + tga_data = stbi__convert_format(tga_data, tga_comp, req_comp, tga_width, tga_height); + + // the things I do to get rid of an error message, and yet keep + // Microsoft's C compilers happy... [8^( + tga_palette_start = tga_palette_len = tga_palette_bits = + tga_x_origin = tga_y_origin = 0; + // OK, done + return tga_data; +} +#endif + +// ************************************************************************************************* +// Photoshop PSD loader -- PD by Thatcher Ulrich, integration by Nicolas Schulz, tweaked by STB + +#ifndef STBI_NO_PSD +static int stbi__psd_test(stbi__context *s) +{ + int r = (stbi__get32be(s) == 0x38425053); + stbi__rewind(s); + return r; +} + +static stbi_uc *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + int pixelCount; + int channelCount, compression; + int channel, i, count, len; + int w,h; + stbi_uc *out; + + // Check identifier + if (stbi__get32be(s) != 0x38425053) // "8BPS" + return stbi__errpuc("not PSD", "Corrupt PSD image"); + + // Check file type version. + if (stbi__get16be(s) != 1) + return stbi__errpuc("wrong version", "Unsupported version of PSD image"); + + // Skip 6 reserved bytes. + stbi__skip(s, 6 ); + + // Read the number of channels (R, G, B, A, etc). + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) + return stbi__errpuc("wrong channel count", "Unsupported number of channels in PSD image"); + + // Read the rows and columns of the image. + h = stbi__get32be(s); + w = stbi__get32be(s); + + // Make sure the depth is 8 bits. + if (stbi__get16be(s) != 8) + return stbi__errpuc("unsupported bit depth", "PSD bit depth is not 8 bit"); + + // Make sure the color mode is RGB. + // Valid options are: + // 0: Bitmap + // 1: Grayscale + // 2: Indexed color + // 3: RGB color + // 4: CMYK color + // 7: Multichannel + // 8: Duotone + // 9: Lab color + if (stbi__get16be(s) != 3) + return stbi__errpuc("wrong color format", "PSD is not in RGB color format"); + + // Skip the Mode Data. (It's the palette for indexed color; other info for other modes.) + stbi__skip(s,stbi__get32be(s) ); + + // Skip the image resources. (resolution, pen tool paths, etc) + stbi__skip(s, stbi__get32be(s) ); + + // Skip the reserved data. + stbi__skip(s, stbi__get32be(s) ); + + // Find out if the data is compressed. + // Known values: + // 0: no compression + // 1: RLE compressed + compression = stbi__get16be(s); + if (compression > 1) + return stbi__errpuc("bad compression", "PSD has an unknown compression format"); + + // Create the destination image. + out = (stbi_uc *) stbi__malloc(4 * w*h); + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + pixelCount = w*h; + + // Initialize the data to zero. + //memset( out, 0, pixelCount * 4 ); + + // Finally, the image data. + if (compression) { + // RLE as used by .PSD and .TIFF + // Loop until you get the number of unpacked bytes you are expecting: + // Read the next source byte into n. + // If n is between 0 and 127 inclusive, copy the next n+1 bytes literally. + // Else if n is between -127 and -1 inclusive, copy the next byte -n+1 times. + // Else if n is 128, noop. + // Endloop + + // The RLE-compressed data is preceeded by a 2-byte data count for each row in the data, + // which we're going to just skip. + stbi__skip(s, h * channelCount * 2 ); + + // Read the RLE data by channel. + for (channel = 0; channel < 4; channel++) { + stbi_uc *p; + + p = out+channel; + if (channel >= channelCount) { + // Fill this channel with default data. + for (i = 0; i < pixelCount; i++, p += 4) + *p = (channel == 3 ? 255 : 0); + } else { + // Read the RLE data. + count = 0; + while (count < pixelCount) { + len = stbi__get8(s); + if (len == 128) { + // No-op. + } else if (len < 128) { + // Copy next len+1 bytes literally. + len++; + count += len; + while (len) { + *p = stbi__get8(s); + p += 4; + len--; + } + } else if (len > 128) { + stbi_uc val; + // Next -len+1 bytes in the dest are replicated from next source byte. + // (Interpret len as a negative 8-bit int.) + len ^= 0x0FF; + len += 2; + val = stbi__get8(s); + count += len; + while (len) { + *p = val; + p += 4; + len--; + } + } + } + } + } + + } else { + // We're at the raw image data. It's each channel in order (Red, Green, Blue, Alpha, ...) + // where each channel consists of an 8-bit value for each pixel in the image. + + // Read the data by channel. + for (channel = 0; channel < 4; channel++) { + stbi_uc *p; + + p = out + channel; + if (channel > channelCount) { + // Fill this channel with default data. + for (i = 0; i < pixelCount; i++, p += 4) + *p = channel == 3 ? 255 : 0; + } else { + // Read the data. + for (i = 0; i < pixelCount; i++, p += 4) + *p = stbi__get8(s); + } + } + } + + if (req_comp && req_comp != 4) { + out = stbi__convert_format(out, 4, req_comp, w, h); + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + + if (comp) *comp = 4; + *y = h; + *x = w; + + return out; +} +#endif + +// ************************************************************************************************* +// Softimage PIC loader +// by Tom Seddon +// +// See http://softimage.wiki.softimage.com/index.php/INFO:_PIC_file_format +// See http://ozviz.wasp.uwa.edu.au/~pbourke/dataformats/softimagepic/ + +#ifndef STBI_NO_PIC +static int stbi__pic_is4(stbi__context *s,const char *str) +{ + int i; + for (i=0; i<4; ++i) + if (stbi__get8(s) != (stbi_uc)str[i]) + return 0; + + return 1; +} + +static int stbi__pic_test_core(stbi__context *s) +{ + int i; + + if (!stbi__pic_is4(s,"\x53\x80\xF6\x34")) + return 0; + + for(i=0;i<84;++i) + stbi__get8(s); + + if (!stbi__pic_is4(s,"PICT")) + return 0; + + return 1; +} + +typedef struct +{ + stbi_uc size,type,channel; +} stbi__pic_packet; + +static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest) +{ + int mask=0x80, i; + + for (i=0; i<4; ++i, mask>>=1) { + if (channel & mask) { + if (stbi__at_eof(s)) return stbi__errpuc("bad file","PIC file too short"); + dest[i]=stbi__get8(s); + } + } + + return dest; +} + +static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src) +{ + int mask=0x80,i; + + for (i=0;i<4; ++i, mask>>=1) + if (channel&mask) + dest[i]=src[i]; +} + +static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result) +{ + int act_comp=0,num_packets=0,y,chained; + stbi__pic_packet packets[10]; + + // this will (should...) cater for even some bizarre stuff like having data + // for the same channel in multiple packets. + do { + stbi__pic_packet *packet; + + if (num_packets==sizeof(packets)/sizeof(packets[0])) + return stbi__errpuc("bad format","too many packets"); + + packet = &packets[num_packets++]; + + chained = stbi__get8(s); + packet->size = stbi__get8(s); + packet->type = stbi__get8(s); + packet->channel = stbi__get8(s); + + act_comp |= packet->channel; + + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (reading packets)"); + if (packet->size != 8) return stbi__errpuc("bad format","packet isn't 8bpp"); + } while (chained); + + *comp = (act_comp & 0x10 ? 4 : 3); // has alpha channel? + + for(y=0; ytype) { + default: + return stbi__errpuc("bad format","packet has bad compression type"); + + case 0: {//uncompressed + int x; + + for(x=0;xchannel,dest)) + return 0; + break; + } + + case 1://Pure RLE + { + int left=width, i; + + while (left>0) { + stbi_uc count,value[4]; + + count=stbi__get8(s); + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pure read count)"); + + if (count > left) + count = (stbi_uc) left; + + if (!stbi__readval(s,packet->channel,value)) return 0; + + for(i=0; ichannel,dest,value); + left -= count; + } + } + break; + + case 2: {//Mixed RLE + int left=width; + while (left>0) { + int count = stbi__get8(s), i; + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (mixed read count)"); + + if (count >= 128) { // Repeated + stbi_uc value[4]; + int i; + + if (count==128) + count = stbi__get16be(s); + else + count -= 127; + if (count > left) + return stbi__errpuc("bad file","scanline overrun"); + + if (!stbi__readval(s,packet->channel,value)) + return 0; + + for(i=0;ichannel,dest,value); + } else { // Raw + ++count; + if (count>left) return stbi__errpuc("bad file","scanline overrun"); + + for(i=0;ichannel,dest)) + return 0; + } + left-=count; + } + break; + } + } + } + } + + return result; +} + +static stbi_uc *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp) +{ + stbi_uc *result; + int i, x,y; + + for (i=0; i<92; ++i) + stbi__get8(s); + + x = stbi__get16be(s); + y = stbi__get16be(s); + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pic header)"); + if ((1 << 28) / x < y) return stbi__errpuc("too large", "Image too large to decode"); + + stbi__get32be(s); //skip `ratio' + stbi__get16be(s); //skip `fields' + stbi__get16be(s); //skip `pad' + + // intermediate buffer is RGBA + result = (stbi_uc *) stbi__malloc(x*y*4); + memset(result, 0xff, x*y*4); + + if (!stbi__pic_load_core(s,x,y,comp, result)) { + STBI_FREE(result); + result=0; + } + *px = x; + *py = y; + if (req_comp == 0) req_comp = *comp; + result=stbi__convert_format(result,4,req_comp,x,y); + + return result; +} + +static int stbi__pic_test(stbi__context *s) +{ + int r = stbi__pic_test_core(s); + stbi__rewind(s); + return r; +} +#endif + +// ************************************************************************************************* +// GIF loader -- public domain by Jean-Marc Lienher -- simplified/shrunk by stb + +#ifndef STBI_NO_GIF +typedef struct +{ + stbi__int16 prefix; + stbi_uc first; + stbi_uc suffix; +} stbi__gif_lzw; + +typedef struct +{ + int w,h; + stbi_uc *out; // output buffer (always 4 components) + int flags, bgindex, ratio, transparent, eflags; + stbi_uc pal[256][4]; + stbi_uc lpal[256][4]; + stbi__gif_lzw codes[4096]; + stbi_uc *color_table; + int parse, step; + int lflags; + int start_x, start_y; + int max_x, max_y; + int cur_x, cur_y; + int line_size; +} stbi__gif; + +static int stbi__gif_test_raw(stbi__context *s) +{ + int sz; + if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') return 0; + sz = stbi__get8(s); + if (sz != '9' && sz != '7') return 0; + if (stbi__get8(s) != 'a') return 0; + return 1; +} + +static int stbi__gif_test(stbi__context *s) +{ + int r = stbi__gif_test_raw(s); + stbi__rewind(s); + return r; +} + +static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp) +{ + int i; + for (i=0; i < num_entries; ++i) { + pal[i][2] = stbi__get8(s); + pal[i][1] = stbi__get8(s); + pal[i][0] = stbi__get8(s); + pal[i][3] = transp == i ? 0 : 255; + } +} + +static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info) +{ + stbi_uc version; + if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') + return stbi__err("not GIF", "Corrupt GIF"); + + version = stbi__get8(s); + if (version != '7' && version != '9') return stbi__err("not GIF", "Corrupt GIF"); + if (stbi__get8(s) != 'a') return stbi__err("not GIF", "Corrupt GIF"); + + stbi__g_failure_reason = ""; + g->w = stbi__get16le(s); + g->h = stbi__get16le(s); + g->flags = stbi__get8(s); + g->bgindex = stbi__get8(s); + g->ratio = stbi__get8(s); + g->transparent = -1; + + if (comp != 0) *comp = 4; // can't actually tell whether it's 3 or 4 until we parse the comments + + if (is_info) return 1; + + if (g->flags & 0x80) + stbi__gif_parse_colortable(s,g->pal, 2 << (g->flags & 7), -1); + + return 1; +} + +static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp) +{ + stbi__gif g; + if (!stbi__gif_header(s, &g, comp, 1)) { + stbi__rewind( s ); + return 0; + } + if (x) *x = g.w; + if (y) *y = g.h; + return 1; +} + +static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code) +{ + stbi_uc *p, *c; + + // recurse to decode the prefixes, since the linked-list is backwards, + // and working backwards through an interleaved image would be nasty + if (g->codes[code].prefix >= 0) + stbi__out_gif_code(g, g->codes[code].prefix); + + if (g->cur_y >= g->max_y) return; + + p = &g->out[g->cur_x + g->cur_y]; + c = &g->color_table[g->codes[code].suffix * 4]; + + if (c[3] >= 128) { + p[0] = c[2]; + p[1] = c[1]; + p[2] = c[0]; + p[3] = c[3]; + } + g->cur_x += 4; + + if (g->cur_x >= g->max_x) { + g->cur_x = g->start_x; + g->cur_y += g->step; + + while (g->cur_y >= g->max_y && g->parse > 0) { + g->step = (1 << g->parse) * g->line_size; + g->cur_y = g->start_y + (g->step >> 1); + --g->parse; + } + } +} + +static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g) +{ + stbi_uc lzw_cs; + stbi__int32 len, code; + stbi__uint32 first; + stbi__int32 codesize, codemask, avail, oldcode, bits, valid_bits, clear; + stbi__gif_lzw *p; + + lzw_cs = stbi__get8(s); + if (lzw_cs > 12) return NULL; + clear = 1 << lzw_cs; + first = 1; + codesize = lzw_cs + 1; + codemask = (1 << codesize) - 1; + bits = 0; + valid_bits = 0; + for (code = 0; code < clear; code++) { + g->codes[code].prefix = -1; + g->codes[code].first = (stbi_uc) code; + g->codes[code].suffix = (stbi_uc) code; + } + + // support no starting clear code + avail = clear+2; + oldcode = -1; + + len = 0; + for(;;) { + if (valid_bits < codesize) { + if (len == 0) { + len = stbi__get8(s); // start new block + if (len == 0) + return g->out; + } + --len; + bits |= (stbi__int32) stbi__get8(s) << valid_bits; + valid_bits += 8; + } else { + stbi__int32 code = bits & codemask; + bits >>= codesize; + valid_bits -= codesize; + // @OPTIMIZE: is there some way we can accelerate the non-clear path? + if (code == clear) { // clear code + codesize = lzw_cs + 1; + codemask = (1 << codesize) - 1; + avail = clear + 2; + oldcode = -1; + first = 0; + } else if (code == clear + 1) { // end of stream code + stbi__skip(s, len); + while ((len = stbi__get8(s)) > 0) + stbi__skip(s,len); + return g->out; + } else if (code <= avail) { + if (first) return stbi__errpuc("no clear code", "Corrupt GIF"); + + if (oldcode >= 0) { + p = &g->codes[avail++]; + if (avail > 4096) return stbi__errpuc("too many codes", "Corrupt GIF"); + p->prefix = (stbi__int16) oldcode; + p->first = g->codes[oldcode].first; + p->suffix = (code == avail) ? p->first : g->codes[code].first; + } else if (code == avail) + return stbi__errpuc("illegal code in raster", "Corrupt GIF"); + + stbi__out_gif_code(g, (stbi__uint16) code); + + if ((avail & codemask) == 0 && avail <= 0x0FFF) { + codesize++; + codemask = (1 << codesize) - 1; + } + + oldcode = code; + } else { + return stbi__errpuc("illegal code in raster", "Corrupt GIF"); + } + } + } +} + +static void stbi__fill_gif_background(stbi__gif *g) +{ + int i; + stbi_uc *c = g->pal[g->bgindex]; + // @OPTIMIZE: write a dword at a time + for (i = 0; i < g->w * g->h * 4; i += 4) { + stbi_uc *p = &g->out[i]; + p[0] = c[2]; + p[1] = c[1]; + p[2] = c[0]; + p[3] = c[3]; + } +} + +// this function is designed to support animated gifs, although stb_image doesn't support it +static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp) +{ + int i; + stbi_uc *old_out = 0; + + if (g->out == 0) { + if (!stbi__gif_header(s, g, comp,0)) return 0; // stbi__g_failure_reason set by stbi__gif_header + g->out = (stbi_uc *) stbi__malloc(4 * g->w * g->h); + if (g->out == 0) return stbi__errpuc("outofmem", "Out of memory"); + stbi__fill_gif_background(g); + } else { + // animated-gif-only path + if (((g->eflags & 0x1C) >> 2) == 3) { + old_out = g->out; + g->out = (stbi_uc *) stbi__malloc(4 * g->w * g->h); + if (g->out == 0) return stbi__errpuc("outofmem", "Out of memory"); + memcpy(g->out, old_out, g->w*g->h*4); + } + } + + for (;;) { + switch (stbi__get8(s)) { + case 0x2C: /* Image Descriptor */ + { + stbi__int32 x, y, w, h; + stbi_uc *o; + + x = stbi__get16le(s); + y = stbi__get16le(s); + w = stbi__get16le(s); + h = stbi__get16le(s); + if (((x + w) > (g->w)) || ((y + h) > (g->h))) + return stbi__errpuc("bad Image Descriptor", "Corrupt GIF"); + + g->line_size = g->w * 4; + g->start_x = x * 4; + g->start_y = y * g->line_size; + g->max_x = g->start_x + w * 4; + g->max_y = g->start_y + h * g->line_size; + g->cur_x = g->start_x; + g->cur_y = g->start_y; + + g->lflags = stbi__get8(s); + + if (g->lflags & 0x40) { + g->step = 8 * g->line_size; // first interlaced spacing + g->parse = 3; + } else { + g->step = g->line_size; + g->parse = 0; + } + + if (g->lflags & 0x80) { + stbi__gif_parse_colortable(s,g->lpal, 2 << (g->lflags & 7), g->eflags & 0x01 ? g->transparent : -1); + g->color_table = (stbi_uc *) g->lpal; + } else if (g->flags & 0x80) { + for (i=0; i < 256; ++i) // @OPTIMIZE: stbi__jpeg_reset only the previous transparent + g->pal[i][3] = 255; + if (g->transparent >= 0 && (g->eflags & 0x01)) + g->pal[g->transparent][3] = 0; + g->color_table = (stbi_uc *) g->pal; + } else + return stbi__errpuc("missing color table", "Corrupt GIF"); + + o = stbi__process_gif_raster(s, g); + if (o == NULL) return NULL; + + if (req_comp && req_comp != 4) + o = stbi__convert_format(o, 4, req_comp, g->w, g->h); + return o; + } + + case 0x21: // Comment Extension. + { + int len; + if (stbi__get8(s) == 0xF9) { // Graphic Control Extension. + len = stbi__get8(s); + if (len == 4) { + g->eflags = stbi__get8(s); + stbi__get16le(s); // delay + g->transparent = stbi__get8(s); + } else { + stbi__skip(s, len); + break; + } + } + while ((len = stbi__get8(s)) != 0) + stbi__skip(s, len); + break; + } + + case 0x3B: // gif stream termination code + return (stbi_uc *) s; // using '1' causes warning on some compilers + + default: + return stbi__errpuc("unknown code", "Corrupt GIF"); + } + } +} + +static stbi_uc *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi_uc *u = 0; + stbi__gif g; + memset(&g, 0, sizeof(g)); + + u = stbi__gif_load_next(s, &g, comp, req_comp); + if (u == (stbi_uc *) s) u = 0; // end of animated gif marker + if (u) { + *x = g.w; + *y = g.h; + } + + return u; +} + +static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp) +{ + return stbi__gif_info_raw(s,x,y,comp); +} +#endif + +// ************************************************************************************************* +// Radiance RGBE HDR loader +// originally by Nicolas Schulz +#ifndef STBI_NO_HDR +static int stbi__hdr_test_core(stbi__context *s) +{ + const char *signature = "#?RADIANCE\n"; + int i; + for (i=0; signature[i]; ++i) + if (stbi__get8(s) != signature[i]) + return 0; + return 1; +} + +static int stbi__hdr_test(stbi__context* s) +{ + int r = stbi__hdr_test_core(s); + stbi__rewind(s); + return r; +} + +#define STBI__HDR_BUFLEN 1024 +static char *stbi__hdr_gettoken(stbi__context *z, char *buffer) +{ + int len=0; + char c = '\0'; + + c = (char) stbi__get8(z); + + while (!stbi__at_eof(z) && c != '\n') { + buffer[len++] = c; + if (len == STBI__HDR_BUFLEN-1) { + // flush to end of line + while (!stbi__at_eof(z) && stbi__get8(z) != '\n') + ; + break; + } + c = (char) stbi__get8(z); + } + + buffer[len] = 0; + return buffer; +} + +static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp) +{ + if ( input[3] != 0 ) { + float f1; + // Exponent + f1 = (float) ldexp(1.0f, input[3] - (int)(128 + 8)); + if (req_comp <= 2) + output[0] = (input[0] + input[1] + input[2]) * f1 / 3; + else { + output[0] = input[0] * f1; + output[1] = input[1] * f1; + output[2] = input[2] * f1; + } + if (req_comp == 2) output[1] = 1; + if (req_comp == 4) output[3] = 1; + } else { + switch (req_comp) { + case 4: output[3] = 1; /* fallthrough */ + case 3: output[0] = output[1] = output[2] = 0; + break; + case 2: output[1] = 1; /* fallthrough */ + case 1: output[0] = 0; + break; + } + } +} + +static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + char buffer[STBI__HDR_BUFLEN]; + char *token; + int valid = 0; + int width, height; + stbi_uc *scanline; + float *hdr_data; + int len; + unsigned char count, value; + int i, j, k, c1,c2, z; + + + // Check identifier + if (strcmp(stbi__hdr_gettoken(s,buffer), "#?RADIANCE") != 0) + return stbi__errpf("not HDR", "Corrupt HDR image"); + + // Parse header + for(;;) { + token = stbi__hdr_gettoken(s,buffer); + if (token[0] == 0) break; + if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1; + } + + if (!valid) return stbi__errpf("unsupported format", "Unsupported HDR format"); + + // Parse width and height + // can't use sscanf() if we're not using stdio! + token = stbi__hdr_gettoken(s,buffer); + if (strncmp(token, "-Y ", 3)) return stbi__errpf("unsupported data layout", "Unsupported HDR format"); + token += 3; + height = (int) strtol(token, &token, 10); + while (*token == ' ') ++token; + if (strncmp(token, "+X ", 3)) return stbi__errpf("unsupported data layout", "Unsupported HDR format"); + token += 3; + width = (int) strtol(token, NULL, 10); + + *x = width; + *y = height; + + if (comp) *comp = 3; + if (req_comp == 0) req_comp = 3; + + // Read data + hdr_data = (float *) stbi__malloc(height * width * req_comp * sizeof(float)); + + // Load image data + // image data is stored as some number of sca + if ( width < 8 || width >= 32768) { + // Read flat data + for (j=0; j < height; ++j) { + for (i=0; i < width; ++i) { + stbi_uc rgbe[4]; + main_decode_loop: + stbi__getn(s, rgbe, 4); + stbi__hdr_convert(hdr_data + j * width * req_comp + i * req_comp, rgbe, req_comp); + } + } + } else { + // Read RLE-encoded data + scanline = NULL; + + for (j = 0; j < height; ++j) { + c1 = stbi__get8(s); + c2 = stbi__get8(s); + len = stbi__get8(s); + if (c1 != 2 || c2 != 2 || (len & 0x80)) { + // not run-length encoded, so we have to actually use THIS data as a decoded + // pixel (note this can't be a valid pixel--one of RGB must be >= 128) + stbi_uc rgbe[4]; + rgbe[0] = (stbi_uc) c1; + rgbe[1] = (stbi_uc) c2; + rgbe[2] = (stbi_uc) len; + rgbe[3] = (stbi_uc) stbi__get8(s); + stbi__hdr_convert(hdr_data, rgbe, req_comp); + i = 1; + j = 0; + STBI_FREE(scanline); + goto main_decode_loop; // yes, this makes no sense + } + len <<= 8; + len |= stbi__get8(s); + if (len != width) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("invalid decoded scanline length", "corrupt HDR"); } + if (scanline == NULL) scanline = (stbi_uc *) stbi__malloc(width * 4); + + for (k = 0; k < 4; ++k) { + i = 0; + while (i < width) { + count = stbi__get8(s); + if (count > 128) { + // Run + value = stbi__get8(s); + count -= 128; + for (z = 0; z < count; ++z) + scanline[i++ * 4 + k] = value; + } else { + // Dump + for (z = 0; z < count; ++z) + scanline[i++ * 4 + k] = stbi__get8(s); + } + } + } + for (i=0; i < width; ++i) + stbi__hdr_convert(hdr_data+(j*width + i)*req_comp, scanline + i*4, req_comp); + } + STBI_FREE(scanline); + } + + return hdr_data; +} + +static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp) +{ + char buffer[STBI__HDR_BUFLEN]; + char *token; + int valid = 0; + + if (strcmp(stbi__hdr_gettoken(s,buffer), "#?RADIANCE") != 0) { + stbi__rewind( s ); + return 0; + } + + for(;;) { + token = stbi__hdr_gettoken(s,buffer); + if (token[0] == 0) break; + if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1; + } + + if (!valid) { + stbi__rewind( s ); + return 0; + } + token = stbi__hdr_gettoken(s,buffer); + if (strncmp(token, "-Y ", 3)) { + stbi__rewind( s ); + return 0; + } + token += 3; + *y = (int) strtol(token, &token, 10); + while (*token == ' ') ++token; + if (strncmp(token, "+X ", 3)) { + stbi__rewind( s ); + return 0; + } + token += 3; + *x = (int) strtol(token, NULL, 10); + *comp = 3; + return 1; +} +#endif // STBI_NO_HDR + +#ifndef STBI_NO_BMP +static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp) +{ + int hsz; + if (stbi__get8(s) != 'B' || stbi__get8(s) != 'M') { + stbi__rewind( s ); + return 0; + } + stbi__skip(s,12); + hsz = stbi__get32le(s); + if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108 && hsz != 124) { + stbi__rewind( s ); + return 0; + } + if (hsz == 12) { + *x = stbi__get16le(s); + *y = stbi__get16le(s); + } else { + *x = stbi__get32le(s); + *y = stbi__get32le(s); + } + if (stbi__get16le(s) != 1) { + stbi__rewind( s ); + return 0; + } + *comp = stbi__get16le(s) / 8; + return 1; +} +#endif + +#ifndef STBI_NO_PSD +static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp) +{ + int channelCount; + if (stbi__get32be(s) != 0x38425053) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 1) { + stbi__rewind( s ); + return 0; + } + stbi__skip(s, 6); + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) { + stbi__rewind( s ); + return 0; + } + *y = stbi__get32be(s); + *x = stbi__get32be(s); + if (stbi__get16be(s) != 8) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 3) { + stbi__rewind( s ); + return 0; + } + *comp = 4; + return 1; +} +#endif + +#ifndef STBI_NO_PIC +static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp) +{ + int act_comp=0,num_packets=0,chained; + stbi__pic_packet packets[10]; + + stbi__skip(s, 92); + + *x = stbi__get16be(s); + *y = stbi__get16be(s); + if (stbi__at_eof(s)) return 0; + if ( (*x) != 0 && (1 << 28) / (*x) < (*y)) { + stbi__rewind( s ); + return 0; + } + + stbi__skip(s, 8); + + do { + stbi__pic_packet *packet; + + if (num_packets==sizeof(packets)/sizeof(packets[0])) + return 0; + + packet = &packets[num_packets++]; + chained = stbi__get8(s); + packet->size = stbi__get8(s); + packet->type = stbi__get8(s); + packet->channel = stbi__get8(s); + act_comp |= packet->channel; + + if (stbi__at_eof(s)) { + stbi__rewind( s ); + return 0; + } + if (packet->size != 8) { + stbi__rewind( s ); + return 0; + } + } while (chained); + + *comp = (act_comp & 0x10 ? 4 : 3); + + return 1; +} +#endif + +// ************************************************************************************************* +// Portable Gray Map and Portable Pixel Map loader +// by Ken Miller +// +// PGM: http://netpbm.sourceforge.net/doc/pgm.html +// PPM: http://netpbm.sourceforge.net/doc/ppm.html +// +// Known limitations: +// Does not support comments in the header section +// Does not support ASCII image data (formats P2 and P3) +// Does not support 16-bit-per-channel + +#ifndef STBI_NO_PNM + +static int stbi__pnm_test(stbi__context *s) +{ + char p, t; + p = (char) stbi__get8(s); + t = (char) stbi__get8(s); + if (p != 'P' || (t != '5' && t != '6')) { + stbi__rewind( s ); + return 0; + } + return 1; +} + +static stbi_uc *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi_uc *out; + if (!stbi__pnm_info(s, (int *)&s->img_x, (int *)&s->img_y, (int *)&s->img_n)) + return 0; + *x = s->img_x; + *y = s->img_y; + *comp = s->img_n; + + out = (stbi_uc *) stbi__malloc(s->img_n * s->img_x * s->img_y); + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + stbi__getn(s, out, s->img_n * s->img_x * s->img_y); + + if (req_comp && req_comp != s->img_n) { + out = stbi__convert_format(out, s->img_n, req_comp, s->img_x, s->img_y); + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + return out; +} + +static int stbi__pnm_isspace(char c) +{ + return c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r'; +} + +static void stbi__pnm_skip_whitespace(stbi__context *s, char *c) +{ + while (!stbi__at_eof(s) && stbi__pnm_isspace(*c)) + *c = (char) stbi__get8(s); +} + +static int stbi__pnm_isdigit(char c) +{ + return c >= '0' && c <= '9'; +} + +static int stbi__pnm_getinteger(stbi__context *s, char *c) +{ + int value = 0; + + while (!stbi__at_eof(s) && stbi__pnm_isdigit(*c)) { + value = value*10 + (*c - '0'); + *c = (char) stbi__get8(s); + } + + return value; +} + +static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp) +{ + int maxv; + char c, p, t; + + stbi__rewind( s ); + + // Get identifier + p = (char) stbi__get8(s); + t = (char) stbi__get8(s); + if (p != 'P' || (t != '5' && t != '6')) { + stbi__rewind( s ); + return 0; + } + + *comp = (t == '6') ? 3 : 1; // '5' is 1-component .pgm; '6' is 3-component .ppm + + c = (char) stbi__get8(s); + stbi__pnm_skip_whitespace(s, &c); + + *x = stbi__pnm_getinteger(s, &c); // read width + stbi__pnm_skip_whitespace(s, &c); + + *y = stbi__pnm_getinteger(s, &c); // read height + stbi__pnm_skip_whitespace(s, &c); + + maxv = stbi__pnm_getinteger(s, &c); // read max value + + if (maxv > 255) + return stbi__err("max value > 255", "PPM image not 8-bit"); + else + return 1; +} +#endif + +static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp) +{ + #ifndef STBI_NO_JPEG + if (stbi__jpeg_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PNG + if (stbi__png_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_GIF + if (stbi__gif_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_BMP + if (stbi__bmp_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PSD + if (stbi__psd_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PIC + if (stbi__pic_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PNM + if (stbi__pnm_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_HDR + if (stbi__hdr_info(s, x, y, comp)) return 1; + #endif + + // test tga last because it's a crappy test! + #ifndef STBI_NO_TGA + if (stbi__tga_info(s, x, y, comp)) + return 1; + #endif + return stbi__err("unknown image type", "Image not of any known type, or corrupt"); +} + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result; + if (!f) return stbi__err("can't fopen", "Unable to open file"); + result = stbi_info_from_file(f, x, y, comp); + fclose(f); + return result; +} + +STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp) +{ + int r; + stbi__context s; + long pos = ftell(f); + stbi__start_file(&s, f); + r = stbi__info_main(&s,x,y,comp); + fseek(f,pos,SEEK_SET); + return r; +} +#endif // !STBI_NO_STDIO + +STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__info_main(&s,x,y,comp); +} + +STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) c, user); + return stbi__info_main(&s,x,y,comp); +} + +#endif // STB_IMAGE_IMPLEMENTATION + +/* + revision history: + 2.06 (2015-04-19) fix bug where PSD returns wrong '*comp' value + 2.05 (2015-04-19) fix bug in progressive JPEG handling, fix warning + 2.04 (2015-04-15) try to re-enable SIMD on MinGW 64-bit + 2.03 (2015-04-12) extra corruption checking (mmozeiko) + stbi_set_flip_vertically_on_load (nguillemot) + fix NEON support; fix mingw support + 2.02 (2015-01-19) fix incorrect assert, fix warning + 2.01 (2015-01-17) fix various warnings; suppress SIMD on gcc 32-bit without -msse2 + 2.00b (2014-12-25) fix STBI_MALLOC in progressive JPEG + 2.00 (2014-12-25) optimize JPG, including x86 SSE2 & NEON SIMD (ryg) + progressive JPEG (stb) + PGM/PPM support (Ken Miller) + STBI_MALLOC,STBI_REALLOC,STBI_FREE + GIF bugfix -- seemingly never worked + STBI_NO_*, STBI_ONLY_* + 1.48 (2014-12-14) fix incorrectly-named assert() + 1.47 (2014-12-14) 1/2/4-bit PNG support, both direct and paletted (Omar Cornut & stb) + optimize PNG (ryg) + fix bug in interlaced PNG with user-specified channel count (stb) + 1.46 (2014-08-26) + fix broken tRNS chunk (colorkey-style transparency) in non-paletted PNG + 1.45 (2014-08-16) + fix MSVC-ARM internal compiler error by wrapping malloc + 1.44 (2014-08-07) + various warning fixes from Ronny Chevalier + 1.43 (2014-07-15) + fix MSVC-only compiler problem in code changed in 1.42 + 1.42 (2014-07-09) + don't define _CRT_SECURE_NO_WARNINGS (affects user code) + fixes to stbi__cleanup_jpeg path + added STBI_ASSERT to avoid requiring assert.h + 1.41 (2014-06-25) + fix search&replace from 1.36 that messed up comments/error messages + 1.40 (2014-06-22) + fix gcc struct-initialization warning + 1.39 (2014-06-15) + fix to TGA optimization when req_comp != number of components in TGA; + fix to GIF loading because BMP wasn't rewinding (whoops, no GIFs in my test suite) + add support for BMP version 5 (more ignored fields) + 1.38 (2014-06-06) + suppress MSVC warnings on integer casts truncating values + fix accidental rename of 'skip' field of I/O + 1.37 (2014-06-04) + remove duplicate typedef + 1.36 (2014-06-03) + convert to header file single-file library + if de-iphone isn't set, load iphone images color-swapped instead of returning NULL + 1.35 (2014-05-27) + various warnings + fix broken STBI_SIMD path + fix bug where stbi_load_from_file no longer left file pointer in correct place + fix broken non-easy path for 32-bit BMP (possibly never used) + TGA optimization by Arseny Kapoulkine + 1.34 (unknown) + use STBI_NOTUSED in stbi__resample_row_generic(), fix one more leak in tga failure case + 1.33 (2011-07-14) + make stbi_is_hdr work in STBI_NO_HDR (as specified), minor compiler-friendly improvements + 1.32 (2011-07-13) + support for "info" function for all supported filetypes (SpartanJ) + 1.31 (2011-06-20) + a few more leak fixes, bug in PNG handling (SpartanJ) + 1.30 (2011-06-11) + added ability to load files via callbacks to accomidate custom input streams (Ben Wenger) + removed deprecated format-specific test/load functions + removed support for installable file formats (stbi_loader) -- would have been broken for IO callbacks anyway + error cases in bmp and tga give messages and don't leak (Raymond Barbiero, grisha) + fix inefficiency in decoding 32-bit BMP (David Woo) + 1.29 (2010-08-16) + various warning fixes from Aurelien Pocheville + 1.28 (2010-08-01) + fix bug in GIF palette transparency (SpartanJ) + 1.27 (2010-08-01) + cast-to-stbi_uc to fix warnings + 1.26 (2010-07-24) + fix bug in file buffering for PNG reported by SpartanJ + 1.25 (2010-07-17) + refix trans_data warning (Won Chun) + 1.24 (2010-07-12) + perf improvements reading from files on platforms with lock-heavy fgetc() + minor perf improvements for jpeg + deprecated type-specific functions so we'll get feedback if they're needed + attempt to fix trans_data warning (Won Chun) + 1.23 fixed bug in iPhone support + 1.22 (2010-07-10) + removed image *writing* support + stbi_info support from Jetro Lauha + GIF support from Jean-Marc Lienher + iPhone PNG-extensions from James Brown + warning-fixes from Nicolas Schulz and Janez Zemva (i.stbi__err. Janez (U+017D)emva) + 1.21 fix use of 'stbi_uc' in header (reported by jon blow) + 1.20 added support for Softimage PIC, by Tom Seddon + 1.19 bug in interlaced PNG corruption check (found by ryg) + 1.18 (2008-08-02) + fix a threading bug (local mutable static) + 1.17 support interlaced PNG + 1.16 major bugfix - stbi__convert_format converted one too many pixels + 1.15 initialize some fields for thread safety + 1.14 fix threadsafe conversion bug + header-file-only version (#define STBI_HEADER_FILE_ONLY before including) + 1.13 threadsafe + 1.12 const qualifiers in the API + 1.11 Support installable IDCT, colorspace conversion routines + 1.10 Fixes for 64-bit (don't use "unsigned long") + optimized upsampling by Fabian "ryg" Giesen + 1.09 Fix format-conversion for PSD code (bad global variables!) + 1.08 Thatcher Ulrich's PSD code integrated by Nicolas Schulz + 1.07 attempt to fix C++ warning/errors again + 1.06 attempt to fix C++ warning/errors again + 1.05 fix TGA loading to return correct *comp and use good luminance calc + 1.04 default float alpha is 1, not 255; use 'void *' for stbi_image_free + 1.03 bugfixes to STBI_NO_STDIO, STBI_NO_HDR + 1.02 support for (subset of) HDR files, float interface for preferred access to them + 1.01 fix bug: possible bug in handling right-side up bmps... not sure + fix bug: the stbi__bmp_load() and stbi__tga_load() functions didn't work at all + 1.00 interface to zlib that skips zlib header + 0.99 correct handling of alpha in palette + 0.98 TGA loader by lonesock; dynamically add loaders (untested) + 0.97 jpeg errors on too large a file; also catch another malloc failure + 0.96 fix detection of invalid v value - particleman@mollyrocket forum + 0.95 during header scan, seek to markers in case of padding + 0.94 STBI_NO_STDIO to disable stdio usage; rename all #defines the same + 0.93 handle jpegtran output; verbose errors + 0.92 read 4,8,16,24,32-bit BMP files of several formats + 0.91 output 24-bit Windows 3.0 BMP files + 0.90 fix a few more warnings; bump version number to approach 1.0 + 0.61 bugfixes due to Marc LeBlanc, Christopher Lloyd + 0.60 fix compiling as c++ + 0.59 fix warnings: merge Dave Moore's -Wall fixes + 0.58 fix bug: zlib uncompressed mode len/nlen was wrong endian + 0.57 fix bug: jpg last huffman symbol before marker was >9 bits but less than 16 available + 0.56 fix bug: zlib uncompressed mode len vs. nlen + 0.55 fix bug: restart_interval not initialized to 0 + 0.54 allow NULL for 'int *comp' + 0.53 fix bug in png 3->4; speedup png decoding + 0.52 png handles req_comp=3,4 directly; minor cleanup; jpeg comments + 0.51 obey req_comp requests, 1-component jpegs return as 1-component, + on 'test' only check type, not whether we support this variant + 0.50 (2006-11-19) + first released version +*/ diff --git a/lib/data/stbi/stb_image_write.h b/lib/data/stbi/stb_image_write.h new file mode 100644 index 00000000..f5250b31 --- /dev/null +++ b/lib/data/stbi/stb_image_write.h @@ -0,0 +1,730 @@ +/* stb_image_write - v0.98 - public domain - http://nothings.org/stb/stb_image_write.h + writes out PNG/BMP/TGA images to C stdio - Sean Barrett 2010 + no warranty implied; use at your own risk + + + Before #including, + + #define STB_IMAGE_WRITE_IMPLEMENTATION + + in the file that you want to have the implementation. + + Will probably not work correctly with strict-aliasing optimizations. + +ABOUT: + + This header file is a library for writing images to C stdio. It could be + adapted to write to memory or a general streaming interface; let me know. + + The PNG output is not optimal; it is 20-50% larger than the file + written by a decent optimizing implementation. This library is designed + for source code compactness and simplicitly, not optimal image file size + or run-time performance. + +BUILDING: + + You can #define STBIW_ASSERT(x) before the #include to avoid using assert.h. + You can #define STBIW_MALLOC(), STBIW_REALLOC(), and STBIW_FREE() to replace + malloc,realloc,free. + You can define STBIW_MEMMOVE() to replace memmove() + +USAGE: + + There are four functions, one for each image file format: + + int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes); + int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data); + int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data); + int stbi_write_hdr(char const *filename, int w, int h, int comp, const void *data); + + Each function returns 0 on failure and non-0 on success. + + The functions create an image file defined by the parameters. The image + is a rectangle of pixels stored from left-to-right, top-to-bottom. + Each pixel contains 'comp' channels of data stored interleaved with 8-bits + per channel, in the following order: 1=Y, 2=YA, 3=RGB, 4=RGBA. (Y is + monochrome color.) The rectangle is 'w' pixels wide and 'h' pixels tall. + The *data pointer points to the first byte of the top-left-most pixel. + For PNG, "stride_in_bytes" is the distance in bytes from the first byte of + a row of pixels to the first byte of the next row of pixels. + + PNG creates output files with the same number of components as the input. + The BMP format expands Y to RGB in the file format and does not + output alpha. + + PNG supports writing rectangles of data even when the bytes storing rows of + data are not consecutive in memory (e.g. sub-rectangles of a larger image), + by supplying the stride between the beginning of adjacent rows. The other + formats do not. (Thus you cannot write a native-format BMP through the BMP + writer, both because it is in BGR order and because it may have padding + at the end of the line.) + + HDR expects linear float data. Since the format is always 32-bit rgb(e) + data, alpha (if provided) is discarded, and for monochrome data it is + replicated across all three channels. + +CREDITS: + + PNG/BMP/TGA + Sean Barrett + HDR + Baldur Karlsson + TGA monochrome: + Jean-Sebastien Guay + misc enhancements: + Tim Kelsey + bugfixes: + github:Chribba +*/ + +#ifndef INCLUDE_STB_IMAGE_WRITE_H +#define INCLUDE_STB_IMAGE_WRITE_H + +#ifdef __cplusplus +extern "C" { +#endif + +extern int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes); +extern int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data); +extern int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data); +extern int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data); + +#ifdef __cplusplus +} +#endif + +#endif//INCLUDE_STB_IMAGE_WRITE_H + +#ifdef STB_IMAGE_WRITE_IMPLEMENTATION + +#include +#include +#include +#include +#include + +#if defined(STBIW_MALLOC) && defined(STBIW_FREE) && defined(STBIW_REALLOC) +// ok +#elif !defined(STBIW_MALLOC) && !defined(STBIW_FREE) && !defined(STBIW_REALLOC) +// ok +#else +#error "Must define all or none of STBIW_MALLOC, STBIW_FREE, and STBIW_REALLOC." +#endif + +#ifndef STBIW_MALLOC +#define STBIW_MALLOC(sz) malloc(sz) +#define STBIW_REALLOC(p,sz) realloc(p,sz) +#define STBIW_FREE(p) free(p) +#endif +#ifndef STBIW_MEMMOVE +#define STBIW_MEMMOVE(a,b,sz) memmove(a,b,sz) +#endif + + +#ifndef STBIW_ASSERT +#include +#define STBIW_ASSERT(x) assert(x) +#endif + +typedef unsigned int stbiw_uint32; +typedef int stb_image_write_test[sizeof(stbiw_uint32)==4 ? 1 : -1]; + +static void writefv(FILE *f, const char *fmt, va_list v) +{ + while (*fmt) { + switch (*fmt++) { + case ' ': break; + case '1': { unsigned char x = (unsigned char) va_arg(v, int); fputc(x,f); break; } + case '2': { int x = va_arg(v,int); unsigned char b[2]; + b[0] = (unsigned char) x; b[1] = (unsigned char) (x>>8); + fwrite(b,2,1,f); break; } + case '4': { stbiw_uint32 x = va_arg(v,int); unsigned char b[4]; + b[0]=(unsigned char)x; b[1]=(unsigned char)(x>>8); + b[2]=(unsigned char)(x>>16); b[3]=(unsigned char)(x>>24); + fwrite(b,4,1,f); break; } + default: + STBIW_ASSERT(0); + return; + } + } +} + +static void write3(FILE *f, unsigned char a, unsigned char b, unsigned char c) +{ + unsigned char arr[3]; + arr[0] = a, arr[1] = b, arr[2] = c; + fwrite(arr, 3, 1, f); +} + +static void write_pixels(FILE *f, int rgb_dir, int vdir, int x, int y, int comp, void *data, int write_alpha, int scanline_pad, int expand_mono) +{ + unsigned char bg[3] = { 255, 0, 255}, px[3]; + stbiw_uint32 zero = 0; + int i,j,k, j_end; + + if (y <= 0) + return; + + if (vdir < 0) + j_end = -1, j = y-1; + else + j_end = y, j = 0; + + for (; j != j_end; j += vdir) { + for (i=0; i < x; ++i) { + unsigned char *d = (unsigned char *) data + (j*x+i)*comp; + if (write_alpha < 0) + fwrite(&d[comp-1], 1, 1, f); + switch (comp) { + case 1: fwrite(d, 1, 1, f); + break; + case 2: if (expand_mono) + write3(f, d[0],d[0],d[0]); // monochrome bmp + else + fwrite(d, 1, 1, f); // monochrome TGA + break; + case 4: + if (!write_alpha) { + // composite against pink background + for (k=0; k < 3; ++k) + px[k] = bg[k] + ((d[k] - bg[k]) * d[3])/255; + write3(f, px[1-rgb_dir],px[1],px[1+rgb_dir]); + break; + } + /* FALLTHROUGH */ + case 3: + write3(f, d[1-rgb_dir],d[1],d[1+rgb_dir]); + break; + } + if (write_alpha > 0) + fwrite(&d[comp-1], 1, 1, f); + } + fwrite(&zero,scanline_pad,1,f); + } +} + +static int outfile(char const *filename, int rgb_dir, int vdir, int x, int y, int comp, int expand_mono, void *data, int alpha, int pad, const char *fmt, ...) +{ + FILE *f; + if (y < 0 || x < 0) return 0; + f = fopen(filename, "wb"); + if (f) { + va_list v; + va_start(v, fmt); + writefv(f, fmt, v); + va_end(v); + write_pixels(f,rgb_dir,vdir,x,y,comp,data,alpha,pad,expand_mono); + fclose(f); + } + return f != NULL; +} + +int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data) +{ + int pad = (-x*3) & 3; + return outfile(filename,-1,-1,x,y,comp,1,(void *) data,0,pad, + "11 4 22 4" "4 44 22 444444", + 'B', 'M', 14+40+(x*3+pad)*y, 0,0, 14+40, // file header + 40, x,y, 1,24, 0,0,0,0,0,0); // bitmap header +} + +int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data) +{ + int has_alpha = (comp == 2 || comp == 4); + int colorbytes = has_alpha ? comp-1 : comp; + int format = colorbytes < 2 ? 3 : 2; // 3 color channels (RGB/RGBA) = 2, 1 color channel (Y/YA) = 3 + return outfile(filename, -1,-1, x, y, comp, 0, (void *) data, has_alpha, 0, + "111 221 2222 11", 0,0,format, 0,0,0, 0,0,x,y, (colorbytes+has_alpha)*8, has_alpha*8); +} + +// ************************************************************************************************* +// Radiance RGBE HDR writer +// by Baldur Karlsson +#define stbiw__max(a, b) ((a) > (b) ? (a) : (b)) + +void stbiw__linear_to_rgbe(unsigned char *rgbe, float *linear) +{ + int exponent; + float maxcomp = stbiw__max(linear[0], stbiw__max(linear[1], linear[2])); + + if (maxcomp < 1e-32) { + rgbe[0] = rgbe[1] = rgbe[2] = rgbe[3] = 0; + } else { + float normalize = (float) frexp(maxcomp, &exponent) * 256.0f/maxcomp; + + rgbe[0] = (unsigned char)(linear[0] * normalize); + rgbe[1] = (unsigned char)(linear[1] * normalize); + rgbe[2] = (unsigned char)(linear[2] * normalize); + rgbe[3] = (unsigned char)(exponent + 128); + } +} + +void stbiw__write_run_data(FILE *f, int length, unsigned char databyte) +{ + unsigned char lengthbyte = (unsigned char) (length+128); + STBIW_ASSERT(length+128 <= 255); + fwrite(&lengthbyte, 1, 1, f); + fwrite(&databyte, 1, 1, f); +} + +void stbiw__write_dump_data(FILE *f, int length, unsigned char *data) +{ + unsigned char lengthbyte = (unsigned char )(length & 0xff); + STBIW_ASSERT(length <= 128); // inconsistent with spec but consistent with official code + fwrite(&lengthbyte, 1, 1, f); + fwrite(data, length, 1, f); +} + +void stbiw__write_hdr_scanline(FILE *f, int width, int comp, unsigned char *scratch, const float *scanline) +{ + unsigned char scanlineheader[4] = { 2, 2, 0, 0 }; + unsigned char rgbe[4]; + float linear[3] = {0}; + int x; + + scanlineheader[2] = (width&0xff00)>>8; + scanlineheader[3] = (width&0x00ff); + + /* skip RLE for images too small or large */ + if (width < 8 || width >= 32768) { + for (x=0; x < width; x++) { + switch (comp) { + case 4: /* fallthrough */ + case 3: linear[2] = scanline[x*comp + 2]; + linear[1] = scanline[x*comp + 1]; + linear[0] = scanline[x*comp + 0]; + break; + case 2: /* fallthrough */ + case 1: linear[0] = linear[1] = linear[2] = scanline[x*comp + 0]; + break; + } + stbiw__linear_to_rgbe(rgbe, linear); + fwrite(rgbe, 4, 1, f); + } + } else { + int c,r; + /* encode into scratch buffer */ + for (x=0; x < width; x++) { + switch(comp) { + case 4: /* fallthrough */ + case 3: linear[2] = scanline[x*comp + 2]; + linear[1] = scanline[x*comp + 1]; + linear[0] = scanline[x*comp + 0]; + break; + case 2: /* fallthrough */ + case 1: linear[0] = linear[1] = linear[2] = scanline[x*comp + 0]; + break; + } + stbiw__linear_to_rgbe(rgbe, linear); + scratch[x + width*0] = rgbe[0]; + scratch[x + width*1] = rgbe[1]; + scratch[x + width*2] = rgbe[2]; + scratch[x + width*3] = rgbe[3]; + } + + fwrite(scanlineheader, 4, 1, f); + + /* RLE each component separately */ + for (c=0; c < 4; c++) { + unsigned char *comp = &scratch[width*c]; + + x = 0; + while (x < width) { + // find first run + r = x; + while (r+2 < width) { + if (comp[r] == comp[r+1] && comp[r] == comp[r+2]) + break; + ++r; + } + if (r+2 >= width) + r = width; + // dump up to first run + while (x < r) { + int len = r-x; + if (len > 128) len = 128; + stbiw__write_dump_data(f, len, &comp[x]); + x += len; + } + // if there's a run, output it + if (r+2 < width) { // same test as what we break out of in search loop, so only true if we break'd + // find next byte after run + while (r < width && comp[r] == comp[x]) + ++r; + // output run up to r + while (x < r) { + int len = r-x; + if (len > 127) len = 127; + stbiw__write_run_data(f, len, comp[x]); + x += len; + } + } + } + } + } +} + +int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data) +{ + int i; + FILE *f; + if (y <= 0 || x <= 0 || data == NULL) return 0; + f = fopen(filename, "wb"); + if (f) { + /* Each component is stored separately. Allocate scratch space for full output scanline. */ + unsigned char *scratch = (unsigned char *) STBIW_MALLOC(x*4); + fprintf(f, "#?RADIANCE\n# Written by stb_image_write.h\nFORMAT=32-bit_rle_rgbe\n" ); + fprintf(f, "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n" , y, x); + for(i=0; i < y; i++) + stbiw__write_hdr_scanline(f, x, comp, scratch, data + comp*i*x); + STBIW_FREE(scratch); + fclose(f); + } + return f != NULL; +} + +///////////////////////////////////////////////////////// +// PNG + +// stretchy buffer; stbiw__sbpush() == vector<>::push_back() -- stbiw__sbcount() == vector<>::size() +#define stbiw__sbraw(a) ((int *) (a) - 2) +#define stbiw__sbm(a) stbiw__sbraw(a)[0] +#define stbiw__sbn(a) stbiw__sbraw(a)[1] + +#define stbiw__sbneedgrow(a,n) ((a)==0 || stbiw__sbn(a)+n >= stbiw__sbm(a)) +#define stbiw__sbmaybegrow(a,n) (stbiw__sbneedgrow(a,(n)) ? stbiw__sbgrow(a,n) : 0) +#define stbiw__sbgrow(a,n) stbiw__sbgrowf((void **) &(a), (n), sizeof(*(a))) + +#define stbiw__sbpush(a, v) (stbiw__sbmaybegrow(a,1), (a)[stbiw__sbn(a)++] = (v)) +#define stbiw__sbcount(a) ((a) ? stbiw__sbn(a) : 0) +#define stbiw__sbfree(a) ((a) ? STBIW_FREE(stbiw__sbraw(a)),0 : 0) + +static void *stbiw__sbgrowf(void **arr, int increment, int itemsize) +{ + int m = *arr ? 2*stbiw__sbm(*arr)+increment : increment+1; + void *p = STBIW_REALLOC(*arr ? stbiw__sbraw(*arr) : 0, itemsize * m + sizeof(int)*2); + STBIW_ASSERT(p); + if (p) { + if (!*arr) ((int *) p)[1] = 0; + *arr = (void *) ((int *) p + 2); + stbiw__sbm(*arr) = m; + } + return *arr; +} + +static unsigned char *stbiw__zlib_flushf(unsigned char *data, unsigned int *bitbuffer, int *bitcount) +{ + while (*bitcount >= 8) { + stbiw__sbpush(data, (unsigned char) *bitbuffer); + *bitbuffer >>= 8; + *bitcount -= 8; + } + return data; +} + +static int stbiw__zlib_bitrev(int code, int codebits) +{ + int res=0; + while (codebits--) { + res = (res << 1) | (code & 1); + code >>= 1; + } + return res; +} + +static unsigned int stbiw__zlib_countm(unsigned char *a, unsigned char *b, int limit) +{ + int i; + for (i=0; i < limit && i < 258; ++i) + if (a[i] != b[i]) break; + return i; +} + +static unsigned int stbiw__zhash(unsigned char *data) +{ + stbiw_uint32 hash = data[0] + (data[1] << 8) + (data[2] << 16); + hash ^= hash << 3; + hash += hash >> 5; + hash ^= hash << 4; + hash += hash >> 17; + hash ^= hash << 25; + hash += hash >> 6; + return hash; +} + +#define stbiw__zlib_flush() (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount)) +#define stbiw__zlib_add(code,codebits) \ + (bitbuf |= (code) << bitcount, bitcount += (codebits), stbiw__zlib_flush()) +#define stbiw__zlib_huffa(b,c) stbiw__zlib_add(stbiw__zlib_bitrev(b,c),c) +// default huffman tables +#define stbiw__zlib_huff1(n) stbiw__zlib_huffa(0x30 + (n), 8) +#define stbiw__zlib_huff2(n) stbiw__zlib_huffa(0x190 + (n)-144, 9) +#define stbiw__zlib_huff3(n) stbiw__zlib_huffa(0 + (n)-256,7) +#define stbiw__zlib_huff4(n) stbiw__zlib_huffa(0xc0 + (n)-280,8) +#define stbiw__zlib_huff(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : (n) <= 255 ? stbiw__zlib_huff2(n) : (n) <= 279 ? stbiw__zlib_huff3(n) : stbiw__zlib_huff4(n)) +#define stbiw__zlib_huffb(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : stbiw__zlib_huff2(n)) + +#define stbiw__ZHASH 16384 + +unsigned char * stbi_zlib_compress(unsigned char *data, int data_len, int *out_len, int quality) +{ + static unsigned short lengthc[] = { 3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258, 259 }; + static unsigned char lengtheb[]= { 0,0,0,0,0,0,0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0 }; + static unsigned short distc[] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577, 32768 }; + static unsigned char disteb[] = { 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13 }; + unsigned int bitbuf=0; + int i,j, bitcount=0; + unsigned char *out = NULL; + unsigned char **hash_table[stbiw__ZHASH]; // 64KB on the stack! + if (quality < 5) quality = 5; + + stbiw__sbpush(out, 0x78); // DEFLATE 32K window + stbiw__sbpush(out, 0x5e); // FLEVEL = 1 + stbiw__zlib_add(1,1); // BFINAL = 1 + stbiw__zlib_add(1,2); // BTYPE = 1 -- fixed huffman + + for (i=0; i < stbiw__ZHASH; ++i) + hash_table[i] = NULL; + + i=0; + while (i < data_len-3) { + // hash next 3 bytes of data to be compressed + int h = stbiw__zhash(data+i)&(stbiw__ZHASH-1), best=3; + unsigned char *bestloc = 0; + unsigned char **hlist = hash_table[h]; + int n = stbiw__sbcount(hlist); + for (j=0; j < n; ++j) { + if (hlist[j]-data > i-32768) { // if entry lies within window + int d = stbiw__zlib_countm(hlist[j], data+i, data_len-i); + if (d >= best) best=d,bestloc=hlist[j]; + } + } + // when hash table entry is too long, delete half the entries + if (hash_table[h] && stbiw__sbn(hash_table[h]) == 2*quality) { + STBIW_MEMMOVE(hash_table[h], hash_table[h]+quality, sizeof(hash_table[h][0])*quality); + stbiw__sbn(hash_table[h]) = quality; + } + stbiw__sbpush(hash_table[h],data+i); + + if (bestloc) { + // "lazy matching" - check match at *next* byte, and if it's better, do cur byte as literal + h = stbiw__zhash(data+i+1)&(stbiw__ZHASH-1); + hlist = hash_table[h]; + n = stbiw__sbcount(hlist); + for (j=0; j < n; ++j) { + if (hlist[j]-data > i-32767) { + int e = stbiw__zlib_countm(hlist[j], data+i+1, data_len-i-1); + if (e > best) { // if next match is better, bail on current match + bestloc = NULL; + break; + } + } + } + } + + if (bestloc) { + int d = (int) (data+i - bestloc); // distance back + STBIW_ASSERT(d <= 32767 && best <= 258); + for (j=0; best > lengthc[j+1]-1; ++j); + stbiw__zlib_huff(j+257); + if (lengtheb[j]) stbiw__zlib_add(best - lengthc[j], lengtheb[j]); + for (j=0; d > distc[j+1]-1; ++j); + stbiw__zlib_add(stbiw__zlib_bitrev(j,5),5); + if (disteb[j]) stbiw__zlib_add(d - distc[j], disteb[j]); + i += best; + } else { + stbiw__zlib_huffb(data[i]); + ++i; + } + } + // write out final bytes + for (;i < data_len; ++i) + stbiw__zlib_huffb(data[i]); + stbiw__zlib_huff(256); // end of block + // pad with 0 bits to byte boundary + while (bitcount) + stbiw__zlib_add(0,1); + + for (i=0; i < stbiw__ZHASH; ++i) + (void) stbiw__sbfree(hash_table[i]); + + { + // compute adler32 on input + unsigned int i=0, s1=1, s2=0, blocklen = data_len % 5552; + int j=0; + while (j < data_len) { + for (i=0; i < blocklen; ++i) s1 += data[j+i], s2 += s1; + s1 %= 65521, s2 %= 65521; + j += blocklen; + blocklen = 5552; + } + stbiw__sbpush(out, (unsigned char) (s2 >> 8)); + stbiw__sbpush(out, (unsigned char) s2); + stbiw__sbpush(out, (unsigned char) (s1 >> 8)); + stbiw__sbpush(out, (unsigned char) s1); + } + *out_len = stbiw__sbn(out); + // make returned pointer freeable + STBIW_MEMMOVE(stbiw__sbraw(out), out, *out_len); + return (unsigned char *) stbiw__sbraw(out); +} + +unsigned int stbiw__crc32(unsigned char *buffer, int len) +{ + static unsigned int crc_table[256]; + unsigned int crc = ~0u; + int i,j; + if (crc_table[1] == 0) + for(i=0; i < 256; i++) + for (crc_table[i]=i, j=0; j < 8; ++j) + crc_table[i] = (crc_table[i] >> 1) ^ (crc_table[i] & 1 ? 0xedb88320 : 0); + for (i=0; i < len; ++i) + crc = (crc >> 8) ^ crc_table[buffer[i] ^ (crc & 0xff)]; + return ~crc; +} + +#define stbiw__wpng4(o,a,b,c,d) ((o)[0]=(unsigned char)(a),(o)[1]=(unsigned char)(b),(o)[2]=(unsigned char)(c),(o)[3]=(unsigned char)(d),(o)+=4) +#define stbiw__wp32(data,v) stbiw__wpng4(data, (v)>>24,(v)>>16,(v)>>8,(v)); +#define stbiw__wptag(data,s) stbiw__wpng4(data, s[0],s[1],s[2],s[3]) + +static void stbiw__wpcrc(unsigned char **data, int len) +{ + unsigned int crc = stbiw__crc32(*data - len - 4, len+4); + stbiw__wp32(*data, crc); +} + +static unsigned char stbiw__paeth(int a, int b, int c) +{ + int p = a + b - c, pa = abs(p-a), pb = abs(p-b), pc = abs(p-c); + if (pa <= pb && pa <= pc) return (unsigned char) a; + if (pb <= pc) return (unsigned char) b; + return (unsigned char) c; +} + +unsigned char *stbi_write_png_to_mem(unsigned char *pixels, int stride_bytes, int x, int y, int n, int *out_len) +{ + int ctype[5] = { -1, 0, 4, 2, 6 }; + unsigned char sig[8] = { 137,80,78,71,13,10,26,10 }; + unsigned char *out,*o, *filt, *zlib; + signed char *line_buffer; + int i,j,k,p,zlen; + + if (stride_bytes == 0) + stride_bytes = x * n; + + filt = (unsigned char *) STBIW_MALLOC((x*n+1) * y); if (!filt) return 0; + line_buffer = (signed char *) STBIW_MALLOC(x * n); if (!line_buffer) { STBIW_FREE(filt); return 0; } + for (j=0; j < y; ++j) { + static int mapping[] = { 0,1,2,3,4 }; + static int firstmap[] = { 0,1,0,5,6 }; + int *mymap = j ? mapping : firstmap; + int best = 0, bestval = 0x7fffffff; + for (p=0; p < 2; ++p) { + for (k= p?best:0; k < 5; ++k) { + int type = mymap[k],est=0; + unsigned char *z = pixels + stride_bytes*j; + for (i=0; i < n; ++i) + switch (type) { + case 0: line_buffer[i] = z[i]; break; + case 1: line_buffer[i] = z[i]; break; + case 2: line_buffer[i] = z[i] - z[i-stride_bytes]; break; + case 3: line_buffer[i] = z[i] - (z[i-stride_bytes]>>1); break; + case 4: line_buffer[i] = (signed char) (z[i] - stbiw__paeth(0,z[i-stride_bytes],0)); break; + case 5: line_buffer[i] = z[i]; break; + case 6: line_buffer[i] = z[i]; break; + } + for (i=n; i < x*n; ++i) { + switch (type) { + case 0: line_buffer[i] = z[i]; break; + case 1: line_buffer[i] = z[i] - z[i-n]; break; + case 2: line_buffer[i] = z[i] - z[i-stride_bytes]; break; + case 3: line_buffer[i] = z[i] - ((z[i-n] + z[i-stride_bytes])>>1); break; + case 4: line_buffer[i] = z[i] - stbiw__paeth(z[i-n], z[i-stride_bytes], z[i-stride_bytes-n]); break; + case 5: line_buffer[i] = z[i] - (z[i-n]>>1); break; + case 6: line_buffer[i] = z[i] - stbiw__paeth(z[i-n], 0,0); break; + } + } + if (p) break; + for (i=0; i < x*n; ++i) + est += abs((signed char) line_buffer[i]); + if (est < bestval) { bestval = est; best = k; } + } + } + // when we get here, best contains the filter type, and line_buffer contains the data + filt[j*(x*n+1)] = (unsigned char) best; + STBIW_MEMMOVE(filt+j*(x*n+1)+1, line_buffer, x*n); + } + STBIW_FREE(line_buffer); + zlib = stbi_zlib_compress(filt, y*( x*n+1), &zlen, 8); // increase 8 to get smaller but use more memory + STBIW_FREE(filt); + if (!zlib) return 0; + + // each tag requires 12 bytes of overhead + out = (unsigned char *) STBIW_MALLOC(8 + 12+13 + 12+zlen + 12); + if (!out) return 0; + *out_len = 8 + 12+13 + 12+zlen + 12; + + o=out; + STBIW_MEMMOVE(o,sig,8); o+= 8; + stbiw__wp32(o, 13); // header length + stbiw__wptag(o, "IHDR"); + stbiw__wp32(o, x); + stbiw__wp32(o, y); + *o++ = 8; + *o++ = (unsigned char) ctype[n]; + *o++ = 0; + *o++ = 0; + *o++ = 0; + stbiw__wpcrc(&o,13); + + stbiw__wp32(o, zlen); + stbiw__wptag(o, "IDAT"); + STBIW_MEMMOVE(o, zlib, zlen); + o += zlen; + STBIW_FREE(zlib); + stbiw__wpcrc(&o, zlen); + + stbiw__wp32(o,0); + stbiw__wptag(o, "IEND"); + stbiw__wpcrc(&o,0); + + STBIW_ASSERT(o == out + *out_len); + + return out; +} + +int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes) +{ + FILE *f; + int len; + unsigned char *png = stbi_write_png_to_mem((unsigned char *) data, stride_bytes, x, y, comp, &len); + if (!png) return 0; + f = fopen(filename, "wb"); + if (!f) { STBIW_FREE(png); return 0; } + fwrite(png, 1, len, f); + fclose(f); + STBIW_FREE(png); + return 1; +} +#endif // STB_IMAGE_WRITE_IMPLEMENTATION + +/* Revision history + 0.98 (2015-04-08) + added STBIW_MALLOC, STBIW_ASSERT etc + 0.97 (2015-01-18) + fixed HDR asserts, rewrote HDR rle logic + 0.96 (2015-01-17) + add HDR output + fix monochrome BMP + 0.95 (2014-08-17) + add monochrome TGA output + 0.94 (2014-05-31) + rename private functions to avoid conflicts with stb_image.h + 0.93 (2014-05-27) + warning fixes + 0.92 (2010-08-01) + casts to unsigned char to fix warnings + 0.91 (2010-07-17) + first public release + 0.90 first internal release +*/ diff --git a/lib/data/transport/transportBus.cpp b/lib/data/transport/transportBus.cpp index 2cf0ead2..4141e155 100644 --- a/lib/data/transport/transportBus.cpp +++ b/lib/data/transport/transportBus.cpp @@ -7,10 +7,10 @@ transportBus::transportBus() :basicTransport(), basicDualThread(){ m_pLog = basicLogCollection::getInstance(); m_nInputBufferSize = -1; m_nOutputBufferSize = -1; - m_pInputBuffer = ( U8 * ) malloc ( MAXIMAL_SERIAL_PACKET_LENGTH ); + m_pInputBuffer = ( U8 * ) malloc ( MAXIMAL_BUS_PACKET_LENGTH ); if( m_pInputBuffer != NULL ) { m_nInputBufferSize = 0; - m_pOutputBuffer = ( U8 * ) malloc ( MAXIMAL_SERIAL_PACKET_LENGTH ); + m_pOutputBuffer = ( U8 * ) malloc ( MAXIMAL_BUS_PACKET_LENGTH ); if( m_pOutputBuffer != NULL ) { m_nOutputBufferSize = 0; //LOG("Starting"); @@ -30,7 +30,7 @@ transportBus::~transportBus(){ bool transportBus::sendData( unsigned char *Data, int DataSize ){ m_mBufferProtectorMutex.lock(); - if( m_nOutputBufferSize+DataSize > MAXIMAL_SERIAL_PACKET_LENGTH ) { + if( m_nOutputBufferSize+DataSize > MAXIMAL_BUS_PACKET_LENGTH ) { m_mBufferProtectorMutex.unlock(); LOG("Data Too Long"); return false; diff --git a/lib/data/transport/transportBus.h b/lib/data/transport/transportBus.h index b8560190..6c69593a 100644 --- a/lib/data/transport/transportBus.h +++ b/lib/data/transport/transportBus.h @@ -7,6 +7,8 @@ #define MAXIMAL_BUS_PACKET_LENGTH 2048 class transportBus: public basicTransport, public basicDualThread { + private: + basicLogCollection * m_pLog; protected: U8 *m_pInputBuffer; int m_nInputBufferSize; diff --git a/lib/data/transport/transportSerial.cpp b/lib/data/transport/transportSerial.cpp index 0bb9c081..2f04caea 100644 --- a/lib/data/transport/transportSerial.cpp +++ b/lib/data/transport/transportSerial.cpp @@ -58,7 +58,8 @@ void transportSerial::m_fThreadAProc( void ){ m_nOutputBufferSize = 0; }; m_mBufferProtectorMutex.unlock(); - SLEEP(10); + //SLEEP(10); + SLEEP(1); }; }; @@ -77,11 +78,14 @@ void transportSerial::m_fThreadBProc(void){ if (m_nInputBufferSize > 0 && m_bThreadBStatus == TH_WORKING) { m_mQueueProtectorMutex.lock(); for (parseQueue::iterator index = m_vParsers.begin(); index != m_vParsers.end(); index++) { - if (m_bThreadBStatus == TH_WORKING) (*index)->parse(m_pInputBuffer, m_nInputBufferSize); + if (m_bThreadBStatus == TH_WORKING) { + (*index)->parse(m_pInputBuffer, m_nInputBufferSize); + } }; m_mQueueProtectorMutex.unlock(); }; - SLEEP(5); + //SLEEP(5); + SLEEP(1); }; }; }; diff --git a/lib/data/zlMediaServer/zlMediaConnector.cpp b/lib/data/zlMediaServer/zlMediaConnector.cpp index e69de29b..c37dfd01 100644 --- a/lib/data/zlMediaServer/zlMediaConnector.cpp +++ b/lib/data/zlMediaServer/zlMediaConnector.cpp @@ -0,0 +1,35 @@ +#include "zlMediaConnector.h" + +#define LOG( X ) m_pLog->Log( "ZLMEDIA_Ñ", this, X ) +#define LOG_ERROR( X ) m_pLog->Log( "ZLMEDIA_Ñ", this, _LOG_ERROR, X ) + +ZL_MEDIA_Connector::ZL_MEDIA_Connector( config_setting_t * Settings ){ + //m_bIsConnected = false; + m_pLog = basicLogCollection::getInstance(); + m_pSettings = basicSettingsProvider::getInstance()->getSubNode( Settings, "ZLMEDIA_SERVER" ); + if( m_pSettings != NULL ) { + config_setting_t * tSetting = NULL; + tSetting = config_setting_get_member( m_pSettings, "SERVER_HOST" ); + if( tSetting == NULL ){ + tSetting = config_setting_add(m_pSettings, "SERVER_HOST", CONFIG_TYPE_STRING ); + config_setting_set_string( tSetting, "localhost" ); + basicSettingsProvider::getInstance()->compromise(); + LOG("No MEDIA Host Setting! Using default!"); + }; + m_pProtocol = new protocolZLMEDIA( m_pSettings ); + }; +}; + +ZL_MEDIA_Connector::~ZL_MEDIA_Connector(){ + if(m_pProtocol!=NULL) delete(m_pProtocol); +}; + +bool ZL_MEDIA_Connector::isConnected( void ){ + if(m_pProtocol == NULL) return false; + return m_pProtocol->isOnline(); +}; + +#undef LOG +#undef LOG_ERROR + + diff --git a/lib/data/zlMediaServer/zlMediaConnector.h b/lib/data/zlMediaServer/zlMediaConnector.h index e69de29b..76e5e0dd 100644 --- a/lib/data/zlMediaServer/zlMediaConnector.h +++ b/lib/data/zlMediaServer/zlMediaConnector.h @@ -0,0 +1,24 @@ +#ifndef __ZLMEDIA_SERVER_INTERFACE_HEADER__ +#define __ZLMEDIA_SERVER_INTERFACE_HEADER__ + +#include "../../components/base/basicTypes.h" +#include "../../components/base/basicSettingsProvider.h" +#include "../../components/base/basicLogCollection.h" +#include "../protocol/protocolZLMEDIA.h" +#include "../data/mysql/database_class.h" + + +class ZL_MEDIA_Connector{ + private: + basicLogCollection * m_pLog; + config_setting_t * m_pSettings; + protocolZLMEDIA * m_pProtocol; + public: + explicit ZL_MEDIA_Connector( config_setting_t * Settings = NULL ); + explicit ZL_MEDIA_Connector( int id, MySQL_Connector *DBC ); + virtual ~ZL_MEDIA_Connector(); + bool isConnected( void ); + +}; + +#endif diff --git a/lib/hardware/i2c/i2cPort.cpp b/lib/hardware/i2c/i2cPort.cpp new file mode 100644 index 00000000..87edb6fd --- /dev/null +++ b/lib/hardware/i2c/i2cPort.cpp @@ -0,0 +1,187 @@ +#include "i2cPort.h" + +#define LOG( X ) m_pLog->Log( "I2CP", this, X ) +#define LOG_ERROR( X ) m_pLog->Log( "I2CP", this, _LOG_ERROR, X ) + +i2cPort::i2cPort( CSTR DevicePath, uint8_t DevBusAddr, int Speed, uint8_t RegAddrBytes ){ + m_pLog = basicLogCollection::getInstance(); + m_nFID = open( DevicePath, O_RDWR ); + + if( RegAddrBytes > 1 ) m_bRegAddrBytes = 2; else m_bRegAddrBytes = RegAddrBytes; + + m_bAddress = DevBusAddr & 0x7F; // 7 bit bus address + if( m_nFID >= 0 ) { + ioctl( m_nFID, I2C_TIMEOUT, 3); // i2c timeout, 1 for 10ms ; if too small, i2c may lose response + ioctl( m_nFID, I2C_RETRIES, 3); // i2c retry limit + }; +}; + +i2cPort::~i2cPort(){ + if( m_nFID >= 0 ) { + close( m_nFID ); + }; +}; + +int i2cPort::_write( int fd, int device_addr, uint16_t offset, const char* data, int data_len ){ + struct i2c_rdwr_ioctl_data at24c256; // structure pass to i2c driver + struct i2c_msg i2cmsg; + if( m_nFID < 0 ) return -1; + if( data_len > I2C_PAGE_BYTES ){ + char tBuf[256]; + sprintf( tBuf, "*** Warning: Page write mode should not exceed %d bytes, otherwise the current page will be rolled over!",I2C_PAGE_BYTES, data_len ); + LOG( tBuf ); + }; + + at24c256.nmsgs = 1; // message count in the structure + at24c256.msgs = &i2cmsg; + at24c256.msgs[0].len = m_bRegAddrBytes + data_len; // the offset address word is m_bRegAddrBytes bytes long, plus the buf_len + at24c256.msgs[0].addr = device_addr; // i2c slave device address + at24c256.msgs[0].flags = 0; // 0 for write; 1 for read +#ifdef _LINUX_I2C_DEV_H + at24c256.msgs[0].buf = (char *)malloc( at24c256.msgs[0].len ); +#else + at24c256.msgs[0].buf = (uint8_t *)malloc( at24c256.msgs[0].len ); +#endif + if(!at24c256.msgs[0].buf){ + LOG("_write(): Failed to allocate memory for i2c message buffer!"); + return -1; + } +#ifdef _LINUX_I2C_DEV_H + switch( m_bRegAddrBytes ) { + case 1:{ + at24c256.msgs[0].buf[0] = (char)(offset & 0xFF); + break; + }; + case 2:{ + at24c256.msgs[0].buf[0] = (char)(offset >> 8); // MSB first + at24c256.msgs[0].buf[1] = (char)(offset); // LSB + }; + }; +#else + switch( m_bRegAddrBytes ) { + case 1:{ + at24c256.msgs[0].buf[0] = (uint8_t)(offset & 0xFF); + break; + }; + case 2:{ + at24c256.msgs[0].buf[0] = (uint8_t)(offset >> 8); // MSB first + at24c256.msgs[0].buf[1] = (uint8_t)(offset); // LSB + }; + }; +#endif + memcpy( at24c256.msgs[0].buf + m_bRegAddrBytes, data, data_len ); // copy user's data to the structure buffer + if(ioctl(fd, I2C_RDWR, (unsigned long)&at24c256 ) < 0 ){ // write ioctl data to the i2c bus + LOG("_write(): Failed to write data to i2c device!"); + free( at24c256.msgs[0].buf ); + return -1; + }; + free(at24c256.msgs[0].buf); + return 0; +}; + +int i2cPort::_read(int fd, int device_addr, uint16_t offset, char* data, int data_len){ + struct i2c_rdwr_ioctl_data at24c256; // structure pass to i2c driver + struct i2c_msg i2cmsg[2]; // message count in the structure +#ifdef _LINUX_I2C_DEV_H + char dummy_write_buf[2]; +#else + uint8_t dummy_write_buf[2]; +#endif + if( m_nFID < 0 ) return -1; + if(data_len>I2C_PAGE_BYTES){ + char tBuf[256]; + sprintf( tBuf, "*** Warning: Sequential read should not exceed %d bytes, otherwise the read data will be rolled over! [%d]", I2C_PAGE_BYTES, data_len ); + LOG(tBuf); + }; + if( m_bRegAddrBytes > 0 ) { + // A dummy write operation should be done according to the AT24C256 i2c protocol + + at24c256.nmsgs = 2; // message count in the structure + at24c256.msgs = i2cmsg; + at24c256.msgs[0].len = m_bRegAddrBytes; // the offset address word is m_bRegAddrBytes bytes long + at24c256.msgs[0].addr = device_addr; + at24c256.msgs[0].flags = 0; // 0 for write; + at24c256.msgs[0].buf = dummy_write_buf; + switch( m_bRegAddrBytes ){ + case 1:{ + at24c256.msgs[0].buf[0] = (offset) & 0xFF; // write address + break; + }; + case 2:{ + at24c256.msgs[0].buf[0] = (offset >> 8) & 0xFF; // write address MSB + at24c256.msgs[0].buf[1] = (offset) & 0xFF; // write address LSB + break; + }; + }; + + // read operation + at24c256.msgs[1].len = data_len; + at24c256.msgs[1].addr = device_addr; + at24c256.msgs[1].flags = 1; // 1 for read; 0 for write +#ifdef _LINUX_I2C_DEV_H + at24c256.msgs[1].buf = data; +#else + at24c256.msgs[1].buf = (uint8_t *)data; +#endif + } else { + at24c256.nmsgs = 1; // message count in the structure + at24c256.msgs = i2cmsg; + at24c256.msgs[0].len = data_len; + at24c256.msgs[0].addr = device_addr; + at24c256.msgs[0].flags = 1; // 1 for read; 0 for write +#ifdef _LINUX_I2C_DEV_H + at24c256.msgs[0].buf = data; +#else + at24c256.msgs[0].buf = (uint8_t *)data; +#endif + }; + if (ioctl(fd, I2C_RDWR, (unsigned long)&at24c256) < 0) { + LOG("_read(): Failed to read data from EEPROM via i2c!"); + return -1; + }; + return 0; +}; + +bool i2cPort::readMZ( uint16_t offset, uint8_t *buffer, int len ){ + if( m_nFID >= 0 ) { + if( _read( m_nFID, m_bAddress, offset, (char*)buffer, len ) < 0 ) return false; + return true; + } else LOG_ERROR("Port is Closed!"); + return false; +}; +bool i2cPort::writeMZ( uint16_t offset, uint8_t *buffer, int len ){ + if( m_nFID >= 0 ) { + if( _write( m_nFID, m_bAddress, offset, (char*)buffer, len ) < 0 ) return false; + return true; + } else LOG_ERROR("Port is Closed!"); + return false; +}; + +uint8_t i2cPort::read8( uint16_t offset ){ + uint8_t retVal; + if( m_nFID >= 0 ) { + if( _read( m_nFID, m_bAddress, offset, (char*)&retVal, 1 ) < 0 ) LOG_ERROR("Read8 Error!"); + } else LOG_ERROR("Port is Closed!"); + return retVal; +}; + +bool i2cPort::write8( uint16_t offset, uint8_t byte ){ + if( m_nFID >= 0 ) { + if( _write( m_nFID, m_bAddress, offset, (char*)&byte, 1 ) < 0 ){ + LOG_ERROR("Write8 Error!"); + } else return true; + } else LOG_ERROR("Port is Closed!"); + return false; +}; + +/* +int i2cPort::sendBlock(unsigned char *Data, int DataSize){ + return 0; +}; +int i2cPort::recptBlock(unsigned char *Buffer, int *BufferLength){ + return 0; +}; +*/ + +#undef LOG +#undef LOG_ERROR diff --git a/lib/hardware/i2c/i2cPort.h b/lib/hardware/i2c/i2cPort.h new file mode 100644 index 00000000..d4e597eb --- /dev/null +++ b/lib/hardware/i2c/i2cPort.h @@ -0,0 +1,39 @@ +#ifndef __I2C_PORT_HEADERS__ +#define __I2C_PORT_HEADERS__ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#undef _LINUX_I2C_DEV_H + + +#include "../../data/transport/transportBus.h" + +#define I2C_PAGE_BYTES 128 //64 + +class i2cPort { + private: + int m_nFID; + basicLogCollection * m_pLog; + uint8_t m_bAddress; + uint8_t m_bRegAddrBytes; + int _write( int fd, int device_addr, uint16_t offset, const char* data, int data_len ); + int _read( int fd, int device_addr, uint16_t offset, char* data, int data_len ); + public: + explicit i2cPort( CSTR DevicePath, uint8_t DevBusAddr, int Speed = 0, uint8_t RegAddrBytes = 1 ); + virtual ~i2cPort(); + bool readMZ( uint16_t offset, uint8_t *buffer, int len ); + bool writeMZ( uint16_t offset, uint8_t *buffer, int len ); + uint8_t read8( uint16_t offset ); + bool write8( uint16_t offset, uint8_t byte ); + +}; + + #endif \ No newline at end of file diff --git a/lib/hardware/sensors/9dof/BNO055.cpp b/lib/hardware/sensors/9dof/BNO055.cpp new file mode 100644 index 00000000..451adca2 --- /dev/null +++ b/lib/hardware/sensors/9dof/BNO055.cpp @@ -0,0 +1,957 @@ +#include "BNO055.h" + +#define LOG( X ) m_pLog->Log( "BNO055", this, X ) +#define LOG_ERROR( X ) m_pLog->Log( "BNO055", this, _LOG_ERROR, X ) + +const char * BNO_ERROR_MESSAGES[11] = { + "No error", + "Peripheral initialization error", + "System initialization error", + "Self test result failed", + "Register map value out of range", + "Register map address out of range", + "Register map write error", + "BNO low power mode not available for selected operation mode", + "Accelerometer power mode not available", + "Fusion algorithm configuration error", + "Sensor configuration error" +}; +const char * BNO_STATUS_MESSAGES[7] = { + "System idle", + "System Error", + "Initializing peripherals", + "System Initialization", + "Executing selftest", + "Sensor fusion algorithm running", + "System running without fusion algorithm" +}; + +const uint32_t BNO_OUTPUT_DATA_DELAY[12] = { + 1000, + 10, + 50, + 10, + 20, + 100, + 20, + 10, + 50, + 20, + 10, + 10 +}; + +sensorBNO::sensorBNO( config_setting_t *Settings, PATHFINDER_DBC *DBC ): basicThread(){ + m_pLog = basicLogCollection::getInstance(); + m_pSettings = basicSettingsProvider::getInstance()->getSubNode( Settings, "BNO055" ); + m_pBLOG = objectPathfinderBinaryLog::getInstance(); + m_pBus = NULL; + m_pDBC = DBC; + m_pDevicePath = "/dev/i2c-1"; + m_bDeviceAddress = 0x29; + m_nSampleDelay = 100; + m_bTargetWM = BNO_WM_CONFIG; + m_bActualWM = 0; + memset( &m_sSettings, 0 , sizeof(BNO_SETTINGS) ); + m_sSettings.wmode = BNO_WM_IMU; + m_sSettings.map_x = 1; + m_sSettings.map_y = 2; + m_sSettings.map_z = 3; + + memset( &m_sID, 0, sizeof(BNO_ID_MAP) ); + memset( &m_sDATA, 0, sizeof(BNO_DATA_MAP) ); + memset( &m_sSTATUS, 0, sizeof(BNO_STATUS_MAP) ); + memset( &m_sCONFIG0, 0, sizeof(BNO_CONFIG0_MAP) ); + memset( &m_sCONFIG1, 0, sizeof(BNO_CONFIG1_MAP) ); +}; + +sensorBNO::~sensorBNO(){ + waitThreadEnd( true ); + if(m_pBus != NULL ) delete( m_pBus ); +}; + +void sensorBNO::logConfig(){ + char tBuff[256]; + sprintf( tBuff, "OPR_MODE: 0x%02X", m_sCONFIG0.OP_MODE ); + LOG( tBuff ); + switch( m_sCONFIG0.OP_MODE & BNO_WMODE_MASK ) { + case BNO_WM_CONFIG: LOG("CHIP WM is CONFIG"); break; + case BNO_WM_ACC_ONLY: LOG("CHIP WM is Acc Only"); break; + case BNO_WM_MAG_ONLY: LOG("CHIP WM is Magnetometer Only"); break; + case BNO_WM_GYR_ONLY: LOG("CHIP WM is Gyroscope Only"); break; + case BNO_WM_ACC_MAG: LOG("CHIP WM is Acc and Magnetometer"); break; + case BNO_WM_ACC_GYR: LOG("CHIP WM is Acc and Gyroscope"); break; + case BNO_WM_MAG_GYR: LOG("CHIP WM is Magnetometer and Gyroscope"); break; + case BNO_WM_AMG_NO_FUSION: LOG("CHIP WM is All sensors - No Fusion!"); break; + case BNO_WM_IMU: LOG("CHIP WM is Fusion IMU"); break; + case BNO_WM_COMPAS: LOG("CHIP WM is Fusion Compas"); break; + case BNO_WM_M4G: LOG("CHIP WM is Fusion Magnetometer and Gyroscope"); break; + case BNO_WM_NDOF_FMC_OFF: LOG("CHIP WM is Fusion NDOF no fast Mag calibartion"); break; + case BNO_WM_NDOF: LOG("CHIP WM is Fusion NDOF"); break; + default: LOG_ERROR("CHIP WM is Unknown!"); + }; + switch( m_eAccWorkMode ) { + case BNO_ACC_NORMAL: LOG("ACC WM is Normal"); break; + case BNO_ACC_SUSPEND: LOG("ACC WM is Suspended"); break; + case BNO_ACC_LP1: LOG("ACC WM is Low Power 1"); break; + case BNO_ACC_STANDBY: LOG("ACC WM is Standby"); break; + case BNO_ACC_LP2: LOG("ACC WM is Low Power 2"); break; + case BNO_ACC_DEEP_SUSPEND: LOG("ACC WM is Deep Suspend"); break; + }; + switch( m_eAccRange ) { + case BNO_ACC_2G: LOG("ACC Range is 2G"); break; + case BNO_ACC_4G: LOG("ACC Range is 4G"); break; + case BNO_ACC_8G: LOG("ACC Range is 8G"); break; + case BNO_ACC_16G: LOG("ACC Range is 16G"); break; + }; + switch( m_eAccBandwidth ) { + case BNO_ACC_7_81HZ: LOG("ACC Bandwidth is 7.81Hz"); break; + case BNO_ACC_15_36HZ: LOG("ACC Bandwidth is 15.36Hz"); break; + case BNO_ACC_31_25HZ: LOG("ACC Bandwidth is 31.25Hz"); break; + case BNO_ACC_62_50HZ: LOG("ACC Bandwidth is 62.5Hz"); break; + case BNO_ACC_125HZ: LOG("ACC Bandwidth is 125Hz"); break; + case BNO_ACC_250HZ: LOG("ACC Bandwidth is 250Hz"); break; + case BNO_ACC_500HZ: LOG("ACC Bandwidth is 500Hz"); break; + case BNO_ACC_1000HZ: LOG("ACC Bandwidth is 1KHz"); break; + }; +}; + +bool sensorBNO::updateSettings(){ + if( m_pDevicePath == NULL ) return false; + if( m_pBus == NULL ) return false; + if( m_pDBC!= NULL ) { + if( !m_pDBC->getSettingsIMU( &m_sSettings ) ) return false; + }; + m_bTargetWM = BNO_WM_CONFIG; + setMode( BNO_WM_CONFIG ); + LOG("Mode Set to Config"); + /* Reset */ + LOG("Trigger Reset"); + m_pBus->write8( BNO055_SYS_TRIGGER_ADDR, 0x20 ); + /* Delay incrased to 30ms due to power issues https://tinyurl.com/y375z699 */ + SLEEP(1000); + LOG("Read Chip ID"); + while( m_pBus->read8( BNO055_CHIP_ID_ADDR) != BNO055_ID ){ + SLEEP(10); + }; + LOG("Done!" ); + SLEEP(50); + LOG("Set PowerMode"); + /* Set to normal power mode */ + m_pBus->write8( BNO055_PWR_MODE_ADDR, BNO_PM_NORMAL ); + SLEEP(10); + LOG("Set Page 0"); + m_pBus->write8( BNO055_PAGE_ID_ADDR, 0 ); + /* Set the output units */ + + uint8_t unitsel = (0 << 7) | // Orientation = Android + (0 << 4) | // Temperature = Celsius + (0 << 2) | // Euler = Degrees + (1 << 1) | // Gyro = Rads + (0 << 0); // Accelerometer = m/s^2 + m_pBus->write8(BNO055_UNIT_SEL_ADDR, unitsel); + + + /* Configure axis mapping (see section 3.4) */ + uint8_t axis_map_cfg = 0; + axis_map_cfg = ((m_sSettings.map_z & 3) << 4) | ((m_sSettings.map_y & 3) << 2) | (m_sSettings.map_x & 3); + m_pBus->write8(BNO055_AXIS_MAP_CONFIG_ADDR, axis_map_cfg );//REMAP_CONFIG_P2); // P0-P7, Default is P1 + SLEEP(10); + uint8_t axis_sign_cfg = 0; + axis_sign_cfg = (m_sSettings.map_x & 4) | ((m_sSettings.map_y & 4) >> 1) || ((m_sSettings.map_x & 4) >> 2); + m_pBus->write8(BNO055_AXIS_MAP_SIGN_ADDR, axis_sign_cfg );//REMAP_SIGN_P2); // P0-P7, Default is P1 + SLEEP(10); + LOG("Clear Triggers"); + m_pBus->write8( BNO055_SYS_TRIGGER_ADDR, 0x0 ); + SLEEP( 10 ); + LOG("Start WM"); + setMode( m_sSettings.wmode ); + SLEEP(20); + m_bTargetWM = m_sSettings.wmode; + return true; +}; + +bool sensorBNO::create(){ + if( m_pDevicePath == NULL ) return false; + if( m_pBus != NULL ) delete( m_pBus ); + m_pBus = new i2cPort( m_pDevicePath, m_bDeviceAddress ); + if( m_pBus != NULL ) { + if( m_pDBC!= NULL ) { + if( m_pDBC->getSettingsIMU( &m_sSettings ) ){ + m_bTargetWM = m_sSettings.wmode; + }; + }; + LOG("Read Chip ID"); + uint8_t id = m_pBus->read8( BNO055_CHIP_ID_ADDR ); + if( id != BNO055_ID ){ + SLEEP( 1000 ); // hold on for boot + id = m_pBus->read8( BNO055_CHIP_ID_ADDR ); + if( id != BNO055_ID ){ + return false; // still not? ok -> fail + }; + }; + LOG("Chip ID - OK"); + //setExtCrystalUse( true ); + //SLEEP(1000); + LOG("Mode Seting"); + /* Switch to config mode (just in case since this is the default) */ + setMode( BNO_WM_CONFIG ); + LOG("Mode Set to Config"); + /* Reset */ + LOG("Trigger Reset"); + m_pBus->write8( BNO055_SYS_TRIGGER_ADDR, 0x20 ); + /* Delay incrased to 30ms due to power issues https://tinyurl.com/y375z699 */ + SLEEP(1000); + LOG("Read Chip ID"); + while( m_pBus->read8( BNO055_CHIP_ID_ADDR) != BNO055_ID ){ + SLEEP(10); + }; + LOG("Done!" ); + SLEEP(50); + LOG("Set PowerMode"); + /* Set to normal power mode */ + m_pBus->write8( BNO055_PWR_MODE_ADDR, BNO_PM_NORMAL ); + SLEEP(10); + LOG("Set Page 0"); + m_pBus->write8( BNO055_PAGE_ID_ADDR, 0 ); + /* Set the output units */ + + uint8_t unitsel = (0 << 7) | // Orientation = Android + (0 << 4) | // Temperature = Celsius + (0 << 2) | // Euler = Degrees + (1 << 1) | // Gyro = Rads + (0 << 0); // Accelerometer = m/s^2 + m_pBus->write8(BNO055_UNIT_SEL_ADDR, unitsel); + + + /* Configure axis mapping (see section 3.4) */ + uint8_t axis_map_cfg = 0; + axis_map_cfg = ((m_sSettings.map_z & 3) << 4) | ((m_sSettings.map_y & 3) << 2) | (m_sSettings.map_x & 3); + m_pBus->write8(BNO055_AXIS_MAP_CONFIG_ADDR, axis_map_cfg );//REMAP_CONFIG_P2); // P0-P7, Default is P1 + SLEEP(10); + uint8_t axis_sign_cfg = 0; + axis_sign_cfg = (m_sSettings.map_x & 4) | ((m_sSettings.map_y & 4) >> 1) || ((m_sSettings.map_x & 4) >> 2); + m_pBus->write8(BNO055_AXIS_MAP_SIGN_ADDR, axis_sign_cfg );//REMAP_SIGN_P2); // P0-P7, Default is P1 + SLEEP(10); + + LOG("Clear Triggers"); + m_pBus->write8( BNO055_SYS_TRIGGER_ADDR, 0x0 ); + SLEEP( 10 ); + /* + LOG("Trigger Self Test"); + m_pBus->write8( BNO055_SYS_TRIGGER_ADDR, 0x01 ); + SLEEP( 5000 ); + LOG("Read Test Results"); + uint8_t tr = m_pBus->read8( BNO055_SELFTEST_RESULT_ADDR ); + if( ( tr & 0x0F ) == 0x0F ) { + LOG("Self Test Passed"); + char tBuff[64]; + sprintf( tBuff, "Code: 0x%02X", tr ); + LOG( tBuff ); + } else { + LOG_ERROR("Self Test Failure!"); + char tBuff[64]; + sprintf( tBuff, "Code: 0x%02X", tr ); + LOG( tBuff ); + return false; + }; + LOG("Clear Triggers"); + m_pBus->write8( BNO055_SYS_TRIGGER_ADDR, 0x0 ); + SLEEP(10); + */ + /* Set the requested operating mode (see section 3.3) */ + LOG("Start WM"); + if( setMode( m_bTargetWM ) ) { + SLEEP(20); + return init(); + }; + } else LOG_ERROR("No I2C Bus Created!"); + return false; +}; + +bool sensorBNO::validate(){ + if( getStatus( &m_sSTATUS ) ){ +#ifdef DEBUG + char tBuff[256]; + sprintf( tBuff, "Temperature: %02X", m_sSTATUS.temper ); + LOG( tBuff ); + sprintf( tBuff, "Calibration: %02X", m_sSTATUS.cal_status ); + LOG( tBuff ); + sprintf( tBuff, "ST Result: %02X", m_sSTATUS.st_result ); + LOG( tBuff ); + sprintf( tBuff, "INT Status: %02X", m_sSTATUS.int_status ); + LOG( tBuff ); + sprintf( tBuff, "CLC Status: %02X", m_sSTATUS.sys_clc_status ); + LOG( tBuff ); + sprintf( tBuff, "SYS Status: %02X", m_sSTATUS.system_status ); + LOG( tBuff ); + sprintf( tBuff, "SYS Error: %02X [%s]", m_sSTATUS.system_error, BNO_ERROR_MESSAGES[m_sSTATUS.system_error] ); + LOG( tBuff ); +#endif + return true; + }; + return false; +}; + +void sensorBNO::m_fThreadProc( void ){ + m_bThreadStatus = TH_WORKING; + while( m_bThreadStatus < TH_ENDED ){ + if( m_bTargetWM != 0 ){ + uint8_t S_S, STS, S_E; + if( m_bActualWM == 0 ) { + m_bActualWM = getMode(); + if( m_bActualWM != 0 ) continue; + // Config Procedures + } else { + BNO_EVTREC * tDATA; + tDATA = getEVT_REC(); + if( tDATA != NULL ) { + if(m_pBLOG != NULL ) { + m_pBLOG->registerBNO( tDATA ); + }; + if( m_pDBC != NULL ) { + m_pDBC->updateBNO_DATA( tDATA ); + }; + free( tDATA ); + }; + }; + /* + if( getSystemStatus( &S_S, &STS, &S_E ) ){ + switch( S_S ) { + case 0: { + char tBuffer[64]; + uint8_t tMode = + sprintf( tBuffer, "Idle Mode %d:%d", tMode, m_eWorkMode ); + LOG(tBuffer); + sprintf( tBuffer, "Temperature: %d", getTemp() ); + LOG(tBuffer); + if( isFullyCalibrated() ) { + LOG("Fully Calibrated!"); + } else { + LOG("Not Calibrated!"); + + }; + if( tMode != m_eWorkMode ) { + if( setMode( m_eWorkMode ) ){ + LOG("Mode Changed"); + SLEEP( 200 ); + } else { + LOG("Mode Changed Failure"); + }; + }; + break; + }; + case 1: LOG("System Error"); break; + case 2: LOG("Initializing Peripherals"); break; + case 3: LOG("System Iniitalization"); break; + case 4: LOG("Executing Self-Test"); break; + case 5: LOG("Sensor fusion algorithm running"); break; + case 6: LOG("System running without fusion algorithms"); break; + }; + }; */ + SLEEP( BNO_OUTPUT_DATA_DELAY[ m_bActualWM ] ); + } else SLEEP( 1000 ); + }; +}; + +/*! + * @brief Puts the chip in the specified operating mode + * @param mode + * mode values + * [OPERATION_MODE_CONFIG, + * OPERATION_MODE_ACCONLY, + * OPERATION_MODE_MAGONLY, + * OPERATION_MODE_GYRONLY, + * OPERATION_MODE_ACCMAG, + * OPERATION_MODE_ACCGYRO, + * OPERATION_MODE_MAGGYRO, + * OPERATION_MODE_AMG, + * OPERATION_MODE_IMUPLUS, + * OPERATION_MODE_COMPASS, + * OPERATION_MODE_M4G, + * OPERATION_MODE_NDOF_FMC_OFF, + * OPERATION_MODE_NDOF] + */ +bool sensorBNO::setMode( uint8_t mode ){ + if( m_pBus != NULL ){ + if( m_pBus->write8( BNO055_OPR_MODE_ADDR, mode ) ) { + SLEEP( 30 ); + return true; + }; + }; + return false; +}; + +uint8_t sensorBNO::getMode(){ + uint8_t retVal = 255; + if( m_pBus != NULL ){ + retVal = m_pBus->read8( BNO055_OPR_MODE_ADDR ) & BNO_WMODE_MASK; + }; + return retVal; +}; + +/*! + * @brief Use the external 32.768KHz crystal + * @param usextal + * use external crystal boolean + */ +bool sensorBNO::setExtCrystalUse( bool usextal) { + if( m_pBus != NULL ){ + uint8_t tMode = m_bActualWM; + + /* Switch to config mode (just in case since this is the default) */ + setMode( BNO_WM_CONFIG ); + SLEEP( 25 ); + m_pBus->write8( BNO055_PAGE_ID_ADDR, 0 ); + if( usextal ){ + m_pBus->write8( BNO055_SYS_TRIGGER_ADDR, 0x80 ); + } else { + m_pBus->write8( BNO055_SYS_TRIGGER_ADDR, 0x00 ); + }; + SLEEP( 10 ); + /* Set the requested operating mode (see section 3.3) */ + setMode( tMode ); + SLEEP( 20 ); + }; + return false; +}; + +/*! + * @brief Gets the latest system status info + * @param system_status + * system status info + * @param self_test_result + * self test result + * @param system_error + * system error info + */ +bool sensorBNO::getSystemStatus( uint8_t *system_status, uint8_t *self_test_result, uint8_t *system_error ){ + if( m_pBus != NULL ){ + m_pBus->write8( BNO055_PAGE_ID_ADDR, 0 ); + + /* System Status (see section 4.3.58) + 0 = Idle + 1 = System Error + 2 = Initializing Peripherals + 3 = System Iniitalization + 4 = Executing Self-Test + 5 = Sensor fusion algorithm running + 6 = System running without fusion algorithms + */ + + if( system_status != NULL ) *system_status = m_pBus->read8(BNO055_SYS_STAT_ADDR); + + /* Self Test Results + 1 = test passed, 0 = test failed + Bit 0 = Accelerometer self test + Bit 1 = Magnetometer self test + Bit 2 = Gyroscope self test + Bit 3 = MCU self test + 0x0F = all good! + */ + + if( self_test_result != NULL ) *self_test_result = m_pBus->read8(BNO055_SELFTEST_RESULT_ADDR); + + /* System Error (see section 4.3.59) + 0 = No error + 1 = Peripheral initialization error + 2 = System initialization error + 3 = Self test result failed + 4 = Register map value out of range + 5 = Register map address out of range + 6 = Register map write error + 7 = BNO low power mode not available for selected operat ion mode + 8 = Accelerometer power mode not available + 9 = Fusion algorithm configuration error + A = Sensor configuration error + */ + + if( system_error != NULL ) *system_error = m_pBus->read8(BNO055_SYS_ERR_ADDR); + SLEEP( 200 ); + return true; + }; + return false; +}; + + +/*! + * @brief Gets the chip revision numbers + * @param info + * revision info + */ +bool sensorBNO::getRevInfo( bno055_rev_info_t *info ){ + if( m_pBus != NULL ){ + uint8_t a, b; + memset( info, 0, sizeof( bno055_rev_info_t ) ); + /* Check the accelerometer revision */ + info->accel_rev = m_pBus->read8(BNO055_ACCEL_REV_ID_ADDR); + /* Check the magnetometer revision */ + info->mag_rev = m_pBus->read8(BNO055_MAG_REV_ID_ADDR); + /* Check the gyroscope revision */ + info->gyro_rev = m_pBus->read8(BNO055_GYRO_REV_ID_ADDR); + /* Check the SW revision */ + info->bl_rev = m_pBus->read8(BNO055_BL_REV_ID_ADDR); + a = m_pBus->read8( BNO055_SW_REV_ID_LSB_ADDR ); + b = m_pBus->read8( BNO055_SW_REV_ID_MSB_ADDR ); + info->sw_rev = (((uint16_t)b) << 8) | ((uint16_t)a); + return true; + }; + return false; +}; + +/*! + * @brief Gets current calibration state. Each value should be a uint8_t + * pointer and it will be set to 0 if not calibrated and 3 if + * fully calibrated. + * See section 34.3.54 + * @param sys + * Current system calibration status, depends on status of all sensors, + * read-only + * @param gyro + * Current calibration status of Gyroscope, read-only + * @param accel + * Current calibration status of Accelerometer, read-only + * @param mag + * Current calibration status of Magnetometer, read-only + */ +bool sensorBNO::getCalibration( uint8_t *sys, uint8_t *gyro, uint8_t *accel, uint8_t *mag ){ + if( m_pBus != NULL ){ + uint8_t calData = m_pBus->read8( BNO055_CALIB_STAT_ADDR ); + if( sys != NULL ) *sys = (calData >> 6) & 0x03; + if( gyro != NULL ) *gyro = (calData >> 4) & 0x03; + if( accel != NULL ) *accel = (calData >> 2) & 0x03; + if( mag != NULL ) *mag = calData & 0x03; + return true; + }; + return false; +}; + +/*! + * @brief Gets the temperature in degrees celsius + * @return temperature in degrees celsius + */ +int8_t sensorBNO::getTemp(){ + if( m_pBus != NULL ){ + int8_t temp = (int8_t)(m_pBus->read8(BNO055_TEMP_ADDR)); + return temp; + }; + return -128; +}; + +/*! + * @brief Checks of all cal status values are set to 3 (fully calibrated) + * @return status of calibration + */ +bool sensorBNO::isFullyCalibrated(){ + uint8_t system, gyro, accel, mag; + if( getCalibration( &system, &gyro, &accel, &mag ) ){ + char tBuff[128]; + sprintf( tBuff, "Calibration Sys: %d Gyr: %d Acc: %d Mag: %d", system, gyro, accel, mag ); + LOG( tBuff ); + switch( m_bActualWM ){ + case BNO_WM_ACC_ONLY: return (accel == 3); + case BNO_WM_MAG_ONLY: return (mag == 3); + case BNO_WM_GYR_ONLY: + case BNO_WM_M4G: /* No magnetometer calibration required. */ + return (gyro == 3); + case BNO_WM_ACC_MAG: + case BNO_WM_COMPAS: + return (accel == 3 && mag == 3); + case BNO_WM_ACC_GYR: + case BNO_WM_IMU: + return (accel == 3 && gyro == 3); + case BNO_WM_MAG_GYR: + return (mag == 3 && gyro == 3); + default: + return (system == 3 && gyro == 3 && accel == 3 && mag == 3); + }; + }; + return false; +}; + +/*! + * @brief Enter Suspend mode (i.e., sleep) + */ +bool sensorBNO::enterSuspendMode(){ + if( m_pBus != NULL ){ + uint8_t tMode = m_bActualWM; + /* Switch to config mode (just in case since this is the default) */ + setMode( BNO_WM_CONFIG ); + SLEEP( 25 ); + m_pBus->write8( BNO055_PWR_MODE_ADDR, 0x02 ); + /* Set the requested operating mode (see section 3.3) */ + setMode( tMode ); + SLEEP( 20 ); + return true; + }; + return false; +}; + +/*! + * @brief Enter Normal mode (i.e., wake) + */ +bool sensorBNO::enterNormalMode(){ + if( m_pBus != NULL ){ + uint8_t tMode = m_bActualWM; + /* Switch to config mode (just in case since this is the default) */ + setMode( BNO_WM_CONFIG ); + SLEEP( 25 ); + m_pBus->write8( BNO055_PWR_MODE_ADDR, 0x00 ); + /* Set the requested operating mode (see section 3.3) */ + setMode( tMode ); + SLEEP( 20 ); + return true; + }; + return false; +}; + + +/*! + * @brief Gets a vector reading from the specified source + * @param vector_type + * possible vector type values + * [VECTOR_ACCELEROMETER + * VECTOR_MAGNETOMETER + * VECTOR_GYROSCOPE + * VECTOR_EULER + * VECTOR_LINEARACCEL + * VECTOR_GRAVITY] + * @return vector from specified source + */ +bool sensorBNO::getVector( uint16_t vector_type, BNO_3D_VECTOR *xyz ){ + if( xyz != NULL ) { + if( m_pBus != NULL ){ + uint8_t buffer[6]; + memset(buffer, 0, 6); + int16_t x, y, z; + x = y = z = 0; + /* Read vector data (6 bytes) */ + if( m_pBus->readMZ( vector_type, buffer, 6 ) ){ + x = ((int16_t)buffer[0]) | (((int16_t)buffer[1]) << 8); + y = ((int16_t)buffer[2]) | (((int16_t)buffer[3]) << 8); + z = ((int16_t)buffer[4]) | (((int16_t)buffer[5]) << 8); + /*! + * Convert the value to an appropriate range (section 3.6.4) + * and assign the value to the Vector type + */ + switch( vector_type ){ + case VECTOR_MAGNETOMETER: + /* 1uT = 16 LSB */ + xyz->x = ((double)x) / 16.0; + xyz->y = ((double)y) / 16.0; + xyz->z = ((double)z) / 16.0; + break; + case VECTOR_GYROSCOPE: + /* 1dps = 16 LSB */ + xyz->x = ((double)x) / 16.0; + xyz->y = ((double)y) / 16.0; + xyz->z = ((double)z) / 16.0; + break; + case VECTOR_EULER: + /* 1 degree = 16 LSB */ + xyz->x = ((double)x) / 16.0; + xyz->y = ((double)y) / 16.0; + xyz->z = ((double)z) / 16.0; + break; + case VECTOR_ACCELEROMETER: + /* 1m/s^2 = 100 LSB */ + xyz->x = ((double)x) / 100.0; + xyz->y = ((double)y) / 100.0; + xyz->z = ((double)z) / 100.0; + break; + case VECTOR_LINEARACCEL: + /* 1m/s^2 = 100 LSB */ + xyz->x = ((double)x) / 100.0; + xyz->y = ((double)y) / 100.0; + xyz->z = ((double)z) / 100.0; + break; + case VECTOR_GRAVITY: + /* 1m/s^2 = 100 LSB */ + xyz->x = ((double)x) / 100.0; + xyz->y = ((double)y) / 100.0; + xyz->z = ((double)z) / 100.0; + break; + }; + return true; + }; + }; + }; + return false; +}; + + +/*! + * @brief Gets a quaternion reading from the specified source + * @return quaternion reading + */ +bool sensorBNO::getQuat( BNO_Quat *quat ){ + if( quat != NULL ){ + if( m_pBus != NULL ){ + uint8_t buffer[8]; + memset(buffer, 0, 8); + int16_t x, y, z, w; + x = y = z = w = 0; + /* Read quat data (8 bytes) */ + if( m_pBus->readMZ( BNO055_QUATERNION_DATA_W_LSB_ADDR, buffer, 8 ) ){ + w = (((uint16_t)buffer[1]) << 8) | ((uint16_t)buffer[0]); + x = (((uint16_t)buffer[3]) << 8) | ((uint16_t)buffer[2]); + y = (((uint16_t)buffer[5]) << 8) | ((uint16_t)buffer[4]); + z = (((uint16_t)buffer[7]) << 8) | ((uint16_t)buffer[6]); + + /*! + * Assign to Quaternion + * See + * http://ae-bst.resource.bosch.com/media/products/dokumente/bno055/BST_BNO055_DS000_12~1.pdf + * 3.6.5.5 Orientation (Quaternion) + */ + const double scale = ( 1.0 / (1 << 14) ); + quat->w = scale * w; + quat->x = scale * x; + quat->y = scale * y; + quat->z = scale * z; + return true; + }; + }; + }; + return false; +}; + + +BNO_EVTREC *sensorBNO::getEVT_REC(){ + const double scale = ( 1.0 / (1 << 14) ); + BNO_EVTREC * retVal = NULL; + PF_TIMESTAMP * tTS1 = NULL; + PF_TIMESTAMP * tTS2 = NULL; + tTS1 = getPFTS(); + if( tTS1 != NULL ) { + BNO_DATA_MAP * tDATA; + tDATA = getData(); + if( tDATA != NULL ) { + tTS2 = getPFTS(); + if( tTS2 != NULL ) { + retVal = (BNO_EVTREC *) malloc(sizeof(BNO_EVTREC)); + if( retVal != NULL ) { + uint32_t tVal; + memset(retVal, 0 , sizeof(BNO_EVTREC)); + retVal->wm_mode = m_bTargetWM;//m_bActualWM; + if( tTS2->seconds > tTS1->seconds ) { + tVal = ( tTS1->milliseconds + 1000 + tTS2->milliseconds ) >> 1; + } else { + tVal = ( tTS1->milliseconds + tTS2->milliseconds ) >> 1; + }; + if( tVal > 999 ) { + retVal->milliseconds = tVal - 1000; + retVal->seconds = tTS1->seconds + 1; + } else { + retVal->milliseconds = tVal; + retVal->seconds = tTS1->seconds; + }; + switch( m_bActualWM ) { + case BNO_WM_ACC_ONLY: + /* 1m/s^2 = 100 LSB */ + retVal->acc.x = ((double)tDATA->ACC_DATA_X) / 100.0; + retVal->acc.y = ((double)tDATA->ACC_DATA_Y) / 100.0; + retVal->acc.z = ((double)tDATA->ACC_DATA_Z) / 100.0; + case BNO_WM_MAG_ONLY: + /* 1uT = 16 LSB */ + retVal->mag.x = ((double)tDATA->MAG_DATA_X) / 16.0; + retVal->mag.y = ((double)tDATA->MAG_DATA_Y) / 16.0; + retVal->mag.z = ((double)tDATA->MAG_DATA_Z) / 16.0; + case BNO_WM_GYR_ONLY: + /* 1uT = 16 LSB */ + retVal->gyr.x = ((double)tDATA->GYR_DATA_X) / 16.0; + retVal->gyr.y = ((double)tDATA->GYR_DATA_Y) / 16.0; + retVal->gyr.z = ((double)tDATA->GYR_DATA_Z) / 16.0; + case BNO_WM_ACC_MAG: + /* 1m/s^2 = 100 LSB */ + retVal->acc.x = ((double)tDATA->ACC_DATA_X) / 100.0; + retVal->acc.y = ((double)tDATA->ACC_DATA_Y) / 100.0; + retVal->acc.z = ((double)tDATA->ACC_DATA_Z) / 100.0; + /* 1uT = 16 LSB */ + retVal->mag.x = ((double)tDATA->MAG_DATA_X) / 16.0; + retVal->mag.y = ((double)tDATA->MAG_DATA_Y) / 16.0; + retVal->mag.z = ((double)tDATA->MAG_DATA_Z) / 16.0; + case BNO_WM_ACC_GYR: + /* 1m/s^2 = 100 LSB */ + retVal->acc.x = ((double)tDATA->ACC_DATA_X) / 100.0; + retVal->acc.y = ((double)tDATA->ACC_DATA_Y) / 100.0; + retVal->acc.z = ((double)tDATA->ACC_DATA_Z) / 100.0; + /* 1uT = 16 LSB */ + retVal->gyr.x = ((double)tDATA->GYR_DATA_X) / 16.0; + retVal->gyr.y = ((double)tDATA->GYR_DATA_Y) / 16.0; + retVal->gyr.z = ((double)tDATA->GYR_DATA_Z) / 16.0; + case BNO_WM_MAG_GYR: + /* 1uT = 16 LSB */ + retVal->mag.x = ((double)tDATA->MAG_DATA_X) / 16.0; + retVal->mag.y = ((double)tDATA->MAG_DATA_Y) / 16.0; + retVal->mag.z = ((double)tDATA->MAG_DATA_Z) / 16.0; + /* 1uT = 16 LSB */ + retVal->gyr.x = ((double)tDATA->GYR_DATA_X) / 16.0; + retVal->gyr.y = ((double)tDATA->GYR_DATA_Y) / 16.0; + retVal->gyr.z = ((double)tDATA->GYR_DATA_Z) / 16.0; + case BNO_WM_AMG_NO_FUSION: + /* 1m/s^2 = 100 LSB */ + retVal->acc.x = ((double)tDATA->ACC_DATA_X) / 100.0; + retVal->acc.y = ((double)tDATA->ACC_DATA_Y) / 100.0; + retVal->acc.z = ((double)tDATA->ACC_DATA_Z) / 100.0; + /* 1uT = 16 LSB */ + retVal->mag.x = ((double)tDATA->MAG_DATA_X) / 16.0; + retVal->mag.y = ((double)tDATA->MAG_DATA_Y) / 16.0; + retVal->mag.z = ((double)tDATA->MAG_DATA_Z) / 16.0; + /* 1uT = 16 LSB */ + retVal->gyr.x = ((double)tDATA->GYR_DATA_X) / 16.0; + retVal->gyr.y = ((double)tDATA->GYR_DATA_Y) / 16.0; + retVal->gyr.z = ((double)tDATA->GYR_DATA_Z) / 16.0; + case BNO_WM_IMU: // Fusion Modes -> All datas Update! + case BNO_WM_COMPAS: + case BNO_WM_M4G: + case BNO_WM_NDOF_FMC_OFF: + case BNO_WM_NDOF: + /* 1m/s^2 = 100 LSB */ + retVal->acc.x = ((double)tDATA->ACC_DATA_X) / 100.0; + retVal->acc.y = ((double)tDATA->ACC_DATA_Y) / 100.0; + retVal->acc.z = ((double)tDATA->ACC_DATA_Z) / 100.0; + /* 1uT = 16 LSB */ + retVal->mag.x = ((double)tDATA->MAG_DATA_X) / 16.0; + retVal->mag.y = ((double)tDATA->MAG_DATA_Y) / 16.0; + retVal->mag.z = ((double)tDATA->MAG_DATA_Z) / 16.0; + /* 1uT = 16 LSB */ + retVal->gyr.x = ((double)tDATA->GYR_DATA_X) / 16.0; + retVal->gyr.y = ((double)tDATA->GYR_DATA_Y) / 16.0; + retVal->gyr.z = ((double)tDATA->GYR_DATA_Z) / 16.0; + /* 1 degree = 16 LSB */ + retVal->eul.x = ((double)tDATA->EUL_PITCH) / 16.0; + retVal->eul.y = ((double)tDATA->EUL_ROLL) / 16.0; + retVal->eul.z = ((double)tDATA->EUL_YAW) / 16.0; + /* 1m/s^2 = 100 LSB */ + retVal->mov.x = ((double)tDATA->LIA_X) / 100.0; + retVal->mov.y = ((double)tDATA->LIA_Y) / 100.0; + retVal->mov.z = ((double)tDATA->LIA_Z) / 100.0; + /* 1m/s^2 = 100 LSB */ + retVal->grav.x = ((double)tDATA->GRV_X ) / 100.0; + retVal->grav.y = ((double)tDATA->GRV_Y ) / 100.0; + retVal->grav.z = ((double)tDATA->GRV_Z ) / 100.0; + /* Quat */ + retVal->quat.w = scale * tDATA->QUA_W;//(((uint16_t)buffer[1]) << 8) | ((uint16_t)buffer[0]); + retVal->quat.x = scale * tDATA->QUA_X;//(((uint16_t)buffer[3]) << 8) | ((uint16_t)buffer[2]); + retVal->quat.y = scale * tDATA->QUA_Y;//(((uint16_t)buffer[5]) << 8) | ((uint16_t)buffer[4]); + retVal->quat.z = scale * tDATA->QUA_Z;//(((uint16_t)buffer[7]) << 8) | ((uint16_t)buffer[6]); + }; + }; + free( tTS2 ); + }; + //free( tDATA ); + // No free - getdata uses Class mem + }; + free( tTS1 ); + }; + return retVal; +}; + +BNO_DATA_MAP *sensorBNO::getData(){ + if( switchPage(0) ) { + m_pBus->readMZ( BNO_DATA_OFFSET, (uint8_t *)&m_sDATA, sizeof(BNO_DATA_MAP)); + }; + return &m_sDATA; +}; + +bool sensorBNO::getStatus( BNO_STATUS_MAP *tPtr ){ + if( switchPage(0) ) { + if( m_pBus->readMZ( BNO_STATUS_OFFSET, (uint8_t *)tPtr, sizeof(BNO_STATUS_MAP))) { + return true; + }; + }; + return false; +}; + +bool sensorBNO::resetInterupts(){ + if( m_pBus != NULL ) { + uint8_t tVal; + tVal = 0x40; + if( m_pBus->writeMZ( BNO_SYS_TRIG_OFFSET, (uint8_t *)&tVal, 1 ) ){ + SLEEP( 30 ); + return true; + }; + }; + return false; +}; + +bool sensorBNO::resetSystem(){ + if( m_pBus != NULL ) { + uint8_t tVal; + tVal = 0x20; + if( m_pBus->writeMZ( BNO_SYS_TRIG_OFFSET, (uint8_t *)&tVal, 1 ) ){ + SLEEP( 30 ); + return true; + }; + }; + return false; +}; + +bool sensorBNO::startBIST(){ + if( m_pBus != NULL ) { + uint8_t tVal; + tVal = 0x01; + if( m_pBus->writeMZ( BNO_SYS_TRIG_OFFSET, (uint8_t *)&tVal, 1 ) ){ + SLEEP( 30 ); + return true; + }; + }; + return false; +}; + +bool sensorBNO::setConfigPage0( BNO_CONFIG0_MAP *tPtr ){ + if( switchPage(0) ) { + if( m_pBus->writeMZ( BNO_CONFIG0_OFFSET, (uint8_t *)tPtr, sizeof(BNO_CONFIG0_MAP))) { + return true; + }; + }; + return false; +}; + +bool sensorBNO::getConfigPage0( BNO_CONFIG0_MAP *tPtr ){ + if( switchPage(0) ) { + if( m_pBus->readMZ( BNO_CONFIG0_OFFSET, (uint8_t *)tPtr, sizeof(BNO_CONFIG0_MAP))) { + return true; + }; + }; + return false; +}; + +bool sensorBNO::getConfigPage1( BNO_CONFIG1_MAP *tPtr ){ + if( switchPage(1) ) { + if( m_pBus->readMZ( BNO_CONFIG1_OFFSET, (uint8_t *)tPtr, sizeof(BNO_CONFIG1_MAP))) { + return true; + }; + }; + return false; +}; + +bool sensorBNO::switchPage( uint8_t PageID ){ + if( m_pBus!= NULL ){ + if( m_sID.PAGE_ID != PageID ) { + if( m_pBus->readMZ( BNO_ID_OFFSET, (uint8_t *)&m_sID, sizeof(BNO_ID_MAP))) { + if( m_sID.PAGE_ID == PageID ) return true; + m_sID.PAGE_ID = PageID; + if( m_pBus->writeMZ( BNO_ID_OFFSET, (uint8_t *)&m_sID, sizeof(BNO_ID_MAP)) ) { + return true; + }; + }; + } else return true; + }; + return false; +}; + +bool sensorBNO::isDead(){ + if( m_pBus!= NULL ){ + uint8_t id; + id = m_pBus->read8( BNO055_CHIP_ID_ADDR ); + if( id == BNO055_ID ){ + return false; + }; + }; + return true; +}; + +#undef LOG +#undef LOG_ERROR diff --git a/lib/hardware/sensors/9dof/BNO055.h b/lib/hardware/sensors/9dof/BNO055.h new file mode 100644 index 00000000..e2a3aa14 --- /dev/null +++ b/lib/hardware/sensors/9dof/BNO055.h @@ -0,0 +1,494 @@ +#ifndef __BNO_9DOF_SENSOR_HEADER__ +#define __BNO_9DOF_SENSOR_HEADER__ + +#include "../../../components/base/basicSettingsProvider.h" +#include "../../../components/base/basicLogCollection.h" +#include "../../../components/object/objectPathfinderBinaryLog.h" +#include "../../../hardware/i2c/i2cPort.h" +#include "../../../pathfinder/pathfinderDBConnector.h" + + +typedef struct S_BNO_ID_MAP{ + uint8_t CHIP_ID; + uint8_t ACC_ID; + uint8_t MAG_ID; + uint8_t GYR_ID; + uint16_t SW_REV_ID; + uint8_t BL_REV_ID; + uint8_t PAGE_ID; +}BNO_ID_MAP; + +typedef struct S_bno055_rev_info_t { + uint8_t accel_rev; /**< acceleration rev */ + uint8_t mag_rev; /**< magnetometer rev */ + uint8_t gyro_rev; /**< gyroscrope rev */ + uint16_t sw_rev; /**< SW rev */ + uint8_t bl_rev; /**< bootloader rev */ +} bno055_rev_info_t; + +typedef struct S_BNO_CONFIG0_MAP{ + uint8_t UNIT_SELECT; + uint8_t RSRVD_0; + uint8_t OP_MODE; + uint8_t PWR_MODE; + uint8_t SYS_TRIGG; + uint8_t TEMP_SRC; + uint8_t AXIS_MAP_CONF; + uint8_t AXIS_MAP_SIGN; + uint8_t RSRVD_1[12]; + int16_t ACC_OFFSET_X; + int16_t ACC_OFFSET_Y; + int16_t ACC_OFFSET_Z; + int16_t MAG_OFFSET_X; + int16_t MAG_OFFSET_Y; + int16_t MAG_OFFSET_Z; + int16_t GYR_OFFSET_X; + int16_t GYR_OFFSET_Y; + int16_t GYR_OFFSET_Z; + uint16_t ACC_RADIUS; + uint16_t MAG_RADIUS; +}BNO_CONFIG0_MAP; + +typedef struct S_BNO_CONFIG1_MAP{ + uint8_t ACC_CONFIG; + uint8_t MAG_CONFIG; + uint8_t GYR_CONFIG_0; + uint8_t GYR_CONFIG_1; + uint8_t ACC_SLEEP_CFG; + uint8_t GYR_SLEEP_CFG; + uint8_t RSRVD_0; + uint8_t INT_MSK; + uint8_t INT_ENA; + uint8_t ACC_EM_THRESHOLD; + uint8_t ACC_INT_SETTINGS; + uint8_t ACC_HG_DURATION; + uint8_t ACC_HG_THRESHOLD; + uint8_t ACC_NM_THRESHOLD; + uint8_t ACC_NM_SETTINGS; + uint8_t GYR_INT_SETTINGS; + uint8_t GYR_HR_X_SETTINGS; + uint8_t GYR_DUR_X; + uint8_t GYR_HR_Y_SETTINGS; + uint8_t GYR_DUR_Y; + uint8_t GYR_HR_Z_SETTINGS; + uint8_t GYR_DUR_Z; + uint8_t GYR_AM_THRESHOLD; + uint8_t GYR_AM_SETTINGS; + uint8_t RSRVD_1[47]; + uint8_t UNIQUE_ID[15]; +}BNO_CONFIG1_MAP; + +typedef struct S_BNO_DATA_MAP{ + int16_t ACC_DATA_X; + int16_t ACC_DATA_Y; + int16_t ACC_DATA_Z; + int16_t MAG_DATA_X; + int16_t MAG_DATA_Y; + int16_t MAG_DATA_Z; + int16_t GYR_DATA_X; + int16_t GYR_DATA_Y; + int16_t GYR_DATA_Z; + int16_t EUL_YAW; + int16_t EUL_ROLL; + int16_t EUL_PITCH; + int16_t QUA_W; + int16_t QUA_X; + int16_t QUA_Y; + int16_t QUA_Z; + int16_t LIA_X; + int16_t LIA_Y; + int16_t LIA_Z; + int16_t GRV_X; + int16_t GRV_Y; + int16_t GRV_Z; +}BNO_DATA_MAP; + +typedef struct S_BNO_STATUS_MAP{ + uint8_t temper; + uint8_t cal_status; + uint8_t st_result; + uint8_t int_status; + uint8_t sys_clc_status; + uint8_t system_status; + uint8_t system_error; +}BNO_STATUS_MAP; + +#define BNO_ID_OFFSET 0x0000 +#define BNO_DATA_OFFSET 0x0008 +#define BNO_STATUS_OFFSET 0x0034 +#define BNO_SYS_TRIG_OFFSET 0x003F +#define BNO_CONFIG0_OFFSET 0x003B +#define BNO_CONFIG1_OFFSET 0x0008 + +/** BNO055 Address A **/ +#define BNO055_ADDRESS_A (0x28) +/** BNO055 Address B **/ +#define BNO055_ADDRESS_B (0x29) +/** BNO055 ID **/ +#define BNO055_ID (0xA0) + +/** Offsets registers **/ +#define NUM_BNO055_OFFSET_REGISTERS (22) + + /* Page id register definition */ +#define BNO055_PAGE_ID_ADDR 0X07 + + /* PAGE0 REGISTER DEFINITION START*/ +#define BNO055_CHIP_ID_ADDR 0x00 +#define BNO055_ACCEL_REV_ID_ADDR 0x01 +#define BNO055_MAG_REV_ID_ADDR 0x02 +#define BNO055_GYRO_REV_ID_ADDR 0x03 +#define BNO055_SW_REV_ID_LSB_ADDR 0x04 +#define BNO055_SW_REV_ID_MSB_ADDR 0x05 +#define BNO055_BL_REV_ID_ADDR 0X06 + + /* Accel data register */ +#define BNO055_ACCEL_DATA_X_LSB_ADDR 0X08 +#define BNO055_ACCEL_DATA_X_MSB_ADDR 0X09 +#define BNO055_ACCEL_DATA_Y_LSB_ADDR 0X0A +#define BNO055_ACCEL_DATA_Y_MSB_ADDR 0X0B +#define BNO055_ACCEL_DATA_Z_LSB_ADDR 0X0C +#define BNO055_ACCEL_DATA_Z_MSB_ADDR 0X0D + + /* Mag data register */ +#define BNO055_MAG_DATA_X_LSB_ADDR 0X0E +#define BNO055_MAG_DATA_X_MSB_ADDR 0X0F +#define BNO055_MAG_DATA_Y_LSB_ADDR 0X10 +#define BNO055_MAG_DATA_Y_MSB_ADDR 0X11 +#define BNO055_MAG_DATA_Z_LSB_ADDR 0X12 +#define BNO055_MAG_DATA_Z_MSB_ADDR 0X13 + + /* Gyro data registers */ +#define BNO055_GYRO_DATA_X_LSB_ADDR 0X14 +#define BNO055_GYRO_DATA_X_MSB_ADDR 0X15 +#define BNO055_GYRO_DATA_Y_LSB_ADDR 0X16 +#define BNO055_GYRO_DATA_Y_MSB_ADDR 0X17 +#define BNO055_GYRO_DATA_Z_LSB_ADDR 0X18 +#define BNO055_GYRO_DATA_Z_MSB_ADDR 0X19 + + /* Euler data registers */ +#define BNO055_EULER_H_LSB_ADDR 0X1A +#define BNO055_EULER_H_MSB_ADDR 0X1B +#define BNO055_EULER_R_LSB_ADDR 0X1C +#define BNO055_EULER_R_MSB_ADDR 0X1D +#define BNO055_EULER_P_LSB_ADDR 0X1E +#define BNO055_EULER_P_MSB_ADDR 0X1F + + /* Quaternion data registers */ +#define BNO055_QUATERNION_DATA_W_LSB_ADDR 0X20 +#define BNO055_QUATERNION_DATA_W_MSB_ADDR 0X21 +#define BNO055_QUATERNION_DATA_X_LSB_ADDR 0X22 +#define BNO055_QUATERNION_DATA_X_MSB_ADDR 0X23 +#define BNO055_QUATERNION_DATA_Y_LSB_ADDR 0X24 +#define BNO055_QUATERNION_DATA_Y_MSB_ADDR 0X25 +#define BNO055_QUATERNION_DATA_Z_LSB_ADDR 0X26 +#define BNO055_QUATERNION_DATA_Z_MSB_ADDR 0X27 + + /* Linear acceleration data registers */ +#define BNO055_LINEAR_ACCEL_DATA_X_LSB_ADDR 0X28 +#define BNO055_LINEAR_ACCEL_DATA_X_MSB_ADDR 0X29 +#define BNO055_LINEAR_ACCEL_DATA_Y_LSB_ADDR 0X2A +#define BNO055_LINEAR_ACCEL_DATA_Y_MSB_ADDR 0X2B +#define BNO055_LINEAR_ACCEL_DATA_Z_LSB_ADDR 0X2C +#define BNO055_LINEAR_ACCEL_DATA_Z_MSB_ADDR 0X2D + + /* Gravity data registers */ +#define BNO055_GRAVITY_DATA_X_LSB_ADDR 0X2E +#define BNO055_GRAVITY_DATA_X_MSB_ADDR 0X2F +#define BNO055_GRAVITY_DATA_Y_LSB_ADDR 0X30 +#define BNO055_GRAVITY_DATA_Y_MSB_ADDR 0X31 +#define BNO055_GRAVITY_DATA_Z_LSB_ADDR 0X32 +#define BNO055_GRAVITY_DATA_Z_MSB_ADDR 0X33 + + /* Temperature data register */ +#define BNO055_TEMP_ADDR 0X34 + + /* Status registers */ +#define BNO055_CALIB_STAT_ADDR 0X35 +#define BNO055_SELFTEST_RESULT_ADDR 0X36 +#define BNO055_INTR_STAT_ADDR 0X37 + +#define BNO055_SYS_CLK_STAT_ADDR 0X38 +#define BNO055_SYS_STAT_ADDR 0X39 +#define BNO055_SYS_ERR_ADDR 0X3A + + /* Unit selection register */ +#define BNO055_UNIT_SEL_ADDR 0X3B +#define BNO055_DATA_SELECT_ADDR 0X3C + + /* Mode registers */ +#define BNO055_OPR_MODE_ADDR 0X3D +#define BNO055_PWR_MODE_ADDR 0X3E + +#define BNO055_SYS_TRIGGER_ADDR 0X3F +#define BNO055_TEMP_SOURCE_ADDR 0X40 + + /* Axis remap registers */ +#define BNO055_AXIS_MAP_CONFIG_ADDR 0X41 +#define BNO055_AXIS_MAP_SIGN_ADDR 0X42 + + /* SIC registers */ +#define BNO055_SIC_MATRIX_0_LSB_ADDR 0X43 +#define BNO055_SIC_MATRIX_0_MSB_ADDR 0X44 +#define BNO055_SIC_MATRIX_1_LSB_ADDR 0X45 +#define BNO055_SIC_MATRIX_1_MSB_ADDR 0X46 +#define BNO055_SIC_MATRIX_2_LSB_ADDR 0X47 +#define BNO055_SIC_MATRIX_2_MSB_ADDR 0X48 +#define BNO055_SIC_MATRIX_3_LSB_ADDR 0X49 +#define BNO055_SIC_MATRIX_3_MSB_ADDR 0X4A +#define BNO055_SIC_MATRIX_4_LSB_ADDR 0X4B +#define BNO055_SIC_MATRIX_4_MSB_ADDR 0X4C +#define BNO055_SIC_MATRIX_5_LSB_ADDR 0X4D +#define BNO055_SIC_MATRIX_5_MSB_ADDR 0X4E +#define BNO055_SIC_MATRIX_6_LSB_ADDR 0X4F +#define BNO055_SIC_MATRIX_6_MSB_ADDR 0X50 +#define BNO055_SIC_MATRIX_7_LSB_ADDR 0X51 +#define BNO055_SIC_MATRIX_7_MSB_ADDR 0X52 +#define BNO055_SIC_MATRIX_8_LSB_ADDR 0X53 +#define BNO055_SIC_MATRIX_8_MSB_ADDR 0X54 + + /* Accelerometer Offset registers */ +#define ACCEL_OFFSET_X_LSB_ADDR 0X55 +#define ACCEL_OFFSET_X_MSB_ADDR 0X56 +#define ACCEL_OFFSET_Y_LSB_ADDR 0X57 +#define ACCEL_OFFSET_Y_MSB_ADDR 0X58 +#define ACCEL_OFFSET_Z_LSB_ADDR 0X59 +#define ACCEL_OFFSET_Z_MSB_ADDR 0X5A + /* Magnetometer Offset registers */ +#define MAG_OFFSET_X_LSB_ADDR 0X5B +#define MAG_OFFSET_X_MSB_ADDR 0X5C +#define MAG_OFFSET_Y_LSB_ADDR 0X5D +#define MAG_OFFSET_Y_MSB_ADDR 0X5E +#define MAG_OFFSET_Z_LSB_ADDR 0X5F +#define MAG_OFFSET_Z_MSB_ADDR 0X60 + + /* Gyroscope Offset register s*/ +#define GYRO_OFFSET_X_LSB_ADDR 0X61 +#define GYRO_OFFSET_X_MSB_ADDR 0X62 +#define GYRO_OFFSET_Y_LSB_ADDR 0X63 +#define GYRO_OFFSET_Y_MSB_ADDR 0X64 +#define GYRO_OFFSET_Z_LSB_ADDR 0X65 +#define GYRO_OFFSET_Z_MSB_ADDR 0X66 + + /* Radius registers */ +#define ACCEL_RADIUS_LSB_ADDR 0X67 +#define ACCEL_RADIUS_MSB_ADDR 0X68 +#define MAG_RADIUS_LSB_ADDR 0X69 +#define MAG_RADIUS_MSB_ADDR 0X6A + +#define VECTOR_ACCELEROMETER BNO055_ACCEL_DATA_X_LSB_ADDR +#define VECTOR_MAGNETOMETER BNO055_MAG_DATA_X_LSB_ADDR +#define VECTOR_GYROSCOPE BNO055_GYRO_DATA_X_LSB_ADDR +#define VECTOR_EULER BNO055_EULER_H_LSB_ADDR +#define VECTOR_LINEARACCEL BNO055_LINEAR_ACCEL_DATA_X_LSB_ADDR +#define VECTOR_GRAVITY BNO055_GRAVITY_DATA_X_LSB_ADDR + + +typedef enum E_BNO_WMODE : uint8_t{ + BNO_WM_CONFIG = 0, + BNO_WM_ACC_ONLY = 1, + BNO_WM_MAG_ONLY = 2, + BNO_WM_GYR_ONLY = 3, + BNO_WM_ACC_MAG = 4, + BNO_WM_ACC_GYR = 5, + BNO_WM_MAG_GYR = 6, + BNO_WM_AMG_NO_FUSION = 7, + /* Fusion Modes */ + BNO_WM_IMU = 8, + BNO_WM_COMPAS = 9, + BNO_WM_M4G = 10, + BNO_WM_NDOF_FMC_OFF = 11, + BNO_WM_NDOF = 12 +} BNO_WMODE; +#define BNO_WMODE_MASK 0x0F + +typedef enum E_BNO_PMODE : uint8_t{ + BNO_PM_NORMAL = 0, + BNO_PM_LOW_POWER = 1, + BNO_PN_SUSPEND = 2 +} BNO_PMODE; +#define BNO_PMODE_MASK 0x03 + +typedef enum E_BNO_AXIS_MAP : uint8_t{ + BNO_AXIS_X = 0, + BNO_AXIS_Y = 1, + BNO_AXIS_Z = 2, + BNO_AXIS_INVALID = 3 +} BNO_AXIS_MAP; + +typedef enum E_BNO_ACC_RANGE : uint8_t{ + BNO_ACC_2G = 0, + BNO_ACC_4G = 1, + BNO_ACC_8G = 2, + BNO_ACC_16G = 3 +} BNO_ACC_RANGE; +#define BNO_ACC_RANGE_MASK 0x03 + +typedef enum E_BNO_ACC_BANDWIDTH : uint8_t{ + BNO_ACC_7_81HZ = 0, + BNO_ACC_15_36HZ = 4, + BNO_ACC_31_25HZ = 8, + BNO_ACC_62_50HZ = 12, + BNO_ACC_125HZ = 16, + BNO_ACC_250HZ = 20, + BNO_ACC_500HZ = 24, + BNO_ACC_1000HZ = 28 +} BNO_ACC_BANDWIDTH; +#define BNO_ACC_BANDWIDTH_MASK 0x1C + +typedef enum E_BNO_ACC_WMODE : uint8_t{ + BNO_ACC_NORMAL = 0, + BNO_ACC_SUSPEND = 32, + BNO_ACC_LP1 = 64, + BNO_ACC_STANDBY = 96, + BNO_ACC_LP2 = 128, + BNO_ACC_DEEP_SUSPEND = 160 +} BNO_ACC_WMODE; +#define BNO_ACC_WMODE_MASK 0xE0 + +typedef enum E_BNO_GYR_RANGE : uint8_t{ + BNO_GYR_2000_DPS = 0, + BNO_GYR_1000_DPS = 1, + BNO_GYR_500_DPS = 2, + BNO_GYR_250_DPS = 3, + BNO_GYR_125_DPS = 4 +}BNO_GYR_RANGE; +#define BNO_GYR_RANGE_MASK 0x07 + +typedef enum E_BNO_GYR_BANDWIDTH : uint8_t{ + BNO_GYR_523HZ = 0, + BNO_GYR_230HZ = 8, + BNO_GYR_116HZ = 16, + BNO_GYR_47HZ = 24, + BNO_GYR_23HZ = 32, + BNO_GYR_12HZ = 40, + BNO_GYR_64HZ = 48, + BNO_GYR_32HZ = 56 +}BNO_GYR_BANDWIDTH; +#define BNO_GYR_BANDWIDTH_MASK 0x38 + +typedef enum E_BNO_GYR_WMODE : uint8_t{ + BNO_GYR_NORMAL = 0, + BNO_GYR_FAST_POWER_UP = 1, + BNO_GYR_DEEP_SUSPEND = 2, + BNO_GYR_SUSPEND = 3, + BNO_GYR_ADVANCED_PS = 4 +}BNO_GYR_WMODE; +#define BNO_GYR_WMODE_MASK 0x07 + +typedef enum E_BNO_MAG_RATE : uint8_t{ + BNO_MAG_2HZ = 0, + BNO_MAG_6HZ = 1, + BNO_MAG_8HZ = 2, + BNO_MAG_10HZ = 3, + BNO_MAG_15HZ = 4, + BNO_MAG_20HZ = 5, + BNO_MAG_25HZ = 6, + BNO_MAG_30HZ = 7 +}BNO_MAG_RATE; +#define BNO_MAG_RATE_MASK 0x07 + +typedef enum E_BNO_MAG_WMODE : uint8_t{ + BNO_MAG_LOW_POWER = 0, + BNO_MAG_REGULAR = 8, + BNO_MAG_E_REGULAR = 16, + BNO_MAG_HIGH_ACURACY = 24 +}BNO_MAG_WMODE; +#define BNO_MAG_WMODE_MASK 0x18 + +typedef enum E_BNO_MAG_PMODE : uint8_t{ + BNO_MAG_NORMAL = 0, + BNO_MAG_SLEEP = 32, + BNO_MAG_SUSPEND = 64, + BNO_MAG_FORCE_MODE = 96 +}BNO_MAG_PMODE; +#define BNO_MAG_PMODE_MASK 0x60 + +typedef enum E_BNO_FUSION_DATA_OUTPUT_FORMAT : uint8_t{ + BNO_FUSION_DO_WINDOWS = 0, + BNO_FUSION_DO_ANDROID = 128 +}BNO_FUSION_DATA_OUTPUT_FORMAT; + +#define BNO_AXIS_POSITIVE 0 +#define BNO_AXIS_NEGATIVE 1 + +#define BNO_TAG_WORK_MODE "WORK_MODE" +#define BNO_TAG_POWER_MODE "POWER_MODE" +#define BNO_TAG_AXIS_MAP_X "MAP_TO_X" +#define BNO_TAG_AXIS_MAP_Y "MAP_TO_Y" +#define BNO_TAG_AXIS_MAP_Z "MAP_TO_Z" + +class sensorBNO: public basicThread { + private: + basicLogCollection * m_pLog; + config_setting_t * m_pSettings; + i2cPort * m_pBus; + PATHFINDER_DBC * m_pDBC; + BNO_SETTINGS m_sSettings; + + objectPathfinderBinaryLog * m_pBLOG; + + CSTR m_pDevicePath; + uint8_t m_bDeviceAddress; + uint32_t m_nSampleDelay; + // internal config vars + uint8_t m_ePowerMode; + uint8_t m_bTargetWM; + uint8_t m_bActualWM; + uint8_t m_eAccRange; + uint8_t m_eAccBandwidth; + uint8_t m_eAccWorkMode; + uint8_t m_eGyrRange; + uint8_t m_eGyrBandwidth; + uint8_t m_eGyrWorkMode; + uint8_t m_eMagRate; + uint8_t m_eMagWorkMode; + uint8_t m_eMagPowerMode; + + BNO_CONFIG0_MAP m_sCONFIG0; + BNO_CONFIG1_MAP m_sCONFIG1; + BNO_STATUS_MAP m_sSTATUS; + BNO_ID_MAP m_sID; + BNO_DATA_MAP m_sDATA; + + + bool getConfigPage0( BNO_CONFIG0_MAP *tPtr ); + bool getConfigPage1( BNO_CONFIG1_MAP *tPtr ); + bool getStatus( BNO_STATUS_MAP *tPtr ); + void logConfig(); + bool resetInterupts(); + bool resetSystem(); + bool startBIST(); + bool setConfigPage0( BNO_CONFIG0_MAP *tPtr ); + uint8_t getMode(); + bool switchPage( uint8_t PageID ); + bool setExtCrystalUse(bool); + bool getSystemStatus(uint8_t*, uint8_t*, uint8_t*); + bool getRevInfo(bno055_rev_info_t*); + bool getCalibration(uint8_t*, uint8_t*, uint8_t*, uint8_t*); + int8_t getTemp(); + bool isFullyCalibrated(); + /* Power managments functions */ + bool enterSuspendMode(); + bool enterNormalMode(); + + bool getVector( uint16_t vector_type, BNO_3D_VECTOR *xyz ); + bool getQuat( BNO_Quat *quat ); + BNO_EVTREC * getEVT_REC(); + bool setMode( uint8_t mode ); + private: + void m_fThreadProc( void ); + public: + explicit sensorBNO( config_setting_t *Settings = NULL, PATHFINDER_DBC *DBC = NULL ); + ~sensorBNO(); + bool create(); + bool validate(); + bool isDead(); + BNO_DATA_MAP * getData(); + bool updateSettings(); + //void setWM( BNO_WMODE Mode ); +}; + + + +#endif \ No newline at end of file diff --git a/lib/hardware/sensors/9dof/bno055.c b/lib/hardware/sensors/9dof/bno055.c new file mode 100644 index 00000000..007438c4 --- /dev/null +++ b/lib/hardware/sensors/9dof/bno055.c @@ -0,0 +1,19255 @@ +/** +* Copyright (c) 2020 Bosch Sensortec GmbH. All rights reserved. +* +* BSD-3-Clause +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its +* contributors may be used to endorse or promote products derived from +* this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @file bno055.c +* @date 10/01/2020 +* @version 2.0.6 +* +*/ + +/*********************************************************/ +/* INCLUDES */ +/*******************************************************/ +#include "bno055.h" + +#ifdef __KERNEL__ +#include +#include +#else +#include +#include +#endif + +#ifndef NULL +#ifdef __cplusplus +#define NULL 0 +#else +#define NULL ((void *) 0) +#endif +#endif + +/*! file + * brief */ + +/* STRUCTURE DEFINITIONS */ +static struct bno055_t *p_bno055; + +/* LOCAL FUNCTIONS */ + +/*! + * @brief + * This API is used for initialize + * bus read, bus write function pointers,device + * address,accel revision id, gyro revision id + * mag revision id, software revision id, boot loader + * revision id and page id + * + * @param bno055 - structure pointer + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While changing the parameter of the bno055_t + * consider the following point: + * Changing the reference value of the parameter + * will changes the local copy or local reference + * make sure your changes will not + * affect the reference value of the parameter + * (Better case don't change the reference value of the parameter) + */ +BNO055_RETURN_FUNCTION_TYPE bno055_init(struct bno055_t *bno055) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8 = BNO055_INIT_VALUE; + u8 bno055_page_zero_u8 = BNO055_PAGE_ZERO; + + /* Array holding the Software revision id + */ + u8 a_SW_ID_u8[BNO055_REV_ID_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + + /* stuct parameters are assign to bno055*/ + p_bno055 = bno055; + + /* Write the default page as zero*/ + com_rslt = p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_PAGE_ID_REG, + &bno055_page_zero_u8, + BNO055_GEN_READ_WRITE_LENGTH); + + /* Read the chip id of the sensor from page + * zero 0x00 register*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_CHIP_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + p_bno055->chip_id = data_u8; + + /* Read the accel revision id from page + * zero 0x01 register*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_REV_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + p_bno055->accel_rev_id = data_u8; + + /* Read the mag revision id from page + * zero 0x02 register*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_REV_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + p_bno055->mag_rev_id = data_u8; + + /* Read the gyro revision id from page + * zero 0x02 register*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_REV_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + p_bno055->gyro_rev_id = data_u8; + + /* Read the boot loader revision from page + * zero 0x06 register*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_BL_REV_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + p_bno055->bl_rev_id = data_u8; + + /* Read the software revision id from page + * zero 0x04 and 0x05 register( 2 bytes of data)*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SW_REV_ID_LSB_REG, + a_SW_ID_u8, + BNO055_LSB_MSB_READ_LENGTH); + a_SW_ID_u8[BNO055_SW_ID_LSB] = BNO055_GET_BITSLICE(a_SW_ID_u8[BNO055_SW_ID_LSB], BNO055_SW_REV_ID_LSB); + p_bno055->sw_rev_id = + (u16)((((u32)((u8)a_SW_ID_u8[BNO055_SW_ID_MSB])) << BNO055_SHIFT_EIGHT_BITS) | (a_SW_ID_u8[BNO055_SW_ID_LSB])); + + /* Read the page id from the register 0x07*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_PAGE_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + p_bno055->page_id = data_u8; + + return com_rslt; +} + +/*! + * @brief + * This API gives data to the given register and + * the data is written in the corresponding register address + * + * @param addr_u8 : Address of the register + * @param data_u8 : Data to be written to the register + * @param len_u8 : Length of the Data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_register(u8 addr_u8, u8 *data_u8, u8 len_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* Write the values of respective given register */ + com_rslt = p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, addr_u8, data_u8, len_u8); + } + + return com_rslt; +} + +/*! + * @brief This API reads the data from + * the given register address + * + * @param addr_u8 : Address of the register + * @param data_u8 : address of the variable, + * read value will be kept + * @param len_u8 : Length of the data + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_register(u8 addr_u8, u8 *data_u8, u8 len_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* Read the value from given register*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, addr_u8, data_u8, len_u8); + } + + return com_rslt; +} + +/*! + * @brief This API reads chip id + * from register 0x00 it is a byte of data + * + * + * @param chip_id_u8 : The chip id value 0xA0 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_chip_id(u8 *chip_id_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8 = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the chip id*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_CHIP_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + *chip_id_u8 = data_u8; + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads software revision id + * from register 0x04 and 0x05 it is a two byte of data + * + * @param sw_id_u8 : The SW revision id + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_sw_rev_id(u16 *sw_id_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* array having the software revision id + * data_u8[0] - LSB + * data_u8[1] - MSB*/ + u8 data_u8[BNO055_REV_ID_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty*/ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value of software + * revision id*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SW_REV_ID_LSB_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SW_ID_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SW_ID_LSB], BNO055_SW_REV_ID_LSB); + *sw_id_u8 = + (u16)((((u32)((u8)data_u8[BNO055_SW_ID_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SW_ID_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads page id + * from register 0x07 it is a byte of data + * + * + * @param page_id_u8 : The value of page id + * + * BNO055_PAGE_ZERO -> 0x00 + * BNO055_PAGE_ONE -> 0x01 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_page_id(u8 *page_id_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8 = BNO055_INIT_VALUE; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* Read the page id form 0x07*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_PAGE_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8 = BNO055_GET_BITSLICE(data_u8, BNO055_PAGE_ID); + *page_id_u8 = data_u8; + p_bno055->page_id = data_u8; + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write + * the page id register 0x07 + * + * @param page_id_u8 : The value of page id + * + * BNO055_PAGE_ZERO -> 0x00 + * BNO055_PAGE_ONE -> 0x01 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_page_id(u8 page_id_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* Read the current page*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_PAGE_ID_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + + /* Check condition for communication BNO055_SUCCESS*/ + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_PAGE_ID, page_id_u8); + + /* Write the page id*/ + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_PAGE_ID_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + p_bno055->page_id = page_id_u8; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads accel revision id + * from register 0x01 it is a byte of value + * + * @param accel_rev_id_u8 : The accel revision id 0xFB + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_rev_id(u8 *accel_rev_id_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8 = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the accel revision id */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_REV_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_rev_id_u8 = data_u8; + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads mag revision id + * from register 0x02 it is a byte of value + * + * @param mag_rev_id_u8 : The mag revision id 0x32 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_rev_id(u8 *mag_rev_id_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8 = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the mag revision id */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_REV_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + *mag_rev_id_u8 = data_u8; + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads gyro revision id + * from register 0x03 it is a byte of value + * + * @param gyro_rev_id_u8 : The gyro revision id 0xF0 + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_rev_id(u8 *gyro_rev_id_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8 = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the gyro revision id */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_REV_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_rev_id_u8 = data_u8; + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read boot loader revision id + * from register 0x06 it is a byte of value + * + * @param bl_rev_id_u8 : The boot loader revision id + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_bl_rev_id(u8 *bl_rev_id_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8 = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the boot loader revision id */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_BL_REV_ID_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + *bl_rev_id_u8 = data_u8; + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads acceleration data X values + * from register 0x08 and 0x09 it is a two byte data + * + * + * + * + * @param accel_x_s16 : The X raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_x(s16 *accel_x_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the accel x value + * data_u8[BNO055_SENSOR_DATA_LSB] - x-LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - x-MSB + */ + u8 data_u8[BNO055_ACCEL_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the accel x axis two byte value*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_ACCEL_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_ACCEL_DATA_X_MSB_VALUEX); + *accel_x_s16 = + (s16)((((s32)(s8)(data_u8[BNO055_SENSOR_DATA_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads acceleration data Y values + * from register 0x0A and 0x0B it is a two byte data + * + * + * + * + * @param accel_y_s16 : The Y raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_y(s16 *accel_y_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the accel y value + * data_u8[BNO055_SENSOR_DATA_LSB] - y-LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - y-MSB + */ + u8 data_u8[BNO055_ACCEL_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the accel y axis two byte value*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_DATA_Y_LSB_VALUEY_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_ACCEL_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_ACCEL_DATA_Y_MSB_VALUEY); + *accel_y_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads acceleration data z values + * from register 0x0C and 0x0D it is a two byte data + * + * + * + * + * @param accel_z_s16 : The z raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_z(s16 *accel_z_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the accel z value + * data_u8[BNO055_SENSOR_DATA_LSB] - z-LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - z-MSB + */ + u8 data_u8[BNO055_ACCEL_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the accel z axis two byte value*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_DATA_Z_LSB_VALUEZ_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_ACCEL_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_ACCEL_DATA_Z_MSB_VALUEZ); + *accel_z_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads acceleration data xyz values + * from register 0x08 to 0x0D it is a six byte data + * + * + * @param accel : The value of accel xyz data + * + * Parameter | result + * --------- | ----------------- + * x | The accel x data + * y | The accel y data + * z | The accel z data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_xyz(struct bno055_accel_t *accel) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the accel xyz value + * data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB] - x->LSB + * data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB] - x->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB] - z->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB] - z->MSB + */ + u8 data_u8[BNO055_ACCEL_XYZ_DATA_SIZE] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_ACCEL_XYZ_DATA_SIZE); + + /* Data X*/ + data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB], + BNO055_ACCEL_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB], + BNO055_ACCEL_DATA_X_MSB_VALUEX); + accel->x = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB])); + + /* Data Y*/ + data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB], + BNO055_ACCEL_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB], + BNO055_ACCEL_DATA_Y_MSB_VALUEY); + accel->y = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB])); + + /* Data Z*/ + data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB], + BNO055_ACCEL_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB], + BNO055_ACCEL_DATA_Z_MSB_VALUEZ); + accel->z = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads mag data x values + * from register 0x0E and 0x0F it is a two byte data + * + * + * + * + * @param mag_x_s16 : The x raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_x(s16 *mag_x_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the mag x value + * data_u8[BNO055_SENSOR_DATA_LSB] - x->LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - x->MSB + */ + u8 data_u8[BNO055_MAG_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /*Read the mag x two bytes of data */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_MAG_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_MAG_DATA_X_MSB_VALUEX); + *mag_x_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads mag data y values + * from register 0x10 and 0x11 it is a two byte data + * + * + * + * + * @param mag_y_s16 : The y raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_y(s16 *mag_y_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the mag y value + * data_u8[BNO055_SENSOR_DATA_LSB] - y->LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - y->MSB + */ + u8 data_u8[BNO055_MAG_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /*Read the mag y two bytes of data */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_DATA_Y_LSB_VALUEY_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_MAG_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_MAG_DATA_Y_MSB_VALUEY); + *mag_y_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads mag data z values + * from register 0x12 and 0x13 it is a two byte data + * + * + * + * + * @param mag_z_s16 : The z raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_z(s16 *mag_z_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the mag z value + * data_u8[BNO055_SENSOR_DATA_LSB] - z->LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - z->MSB + */ + u8 data_u8[BNO055_MAG_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_DATA_Z_LSB_VALUEZ_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + + /*Read the mag z two bytes of data */ + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_MAG_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_MAG_DATA_Z_MSB_VALUEZ); + *mag_z_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads mag data xyz values + * from register 0x0E to 0x13 it is a six byte data + * + * + * @param mag : The mag xyz values + * + * Parameter | result + * --------- | ----------------- + * x | The mag x data + * y | The mag y data + * z | The mag z data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_xyz(struct bno055_mag_t *mag) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the mag xyz value + * data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB] - x->LSB + * data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB] - x->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB] - z->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB] - z->MSB + */ + u8 data_u8[BNO055_MAG_XYZ_DATA_SIZE] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /*Read the six byte value of mag xyz*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_MAG_XYZ_DATA_SIZE); + + /* Data X*/ + data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB], + BNO055_MAG_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB], + BNO055_MAG_DATA_X_MSB_VALUEX); + mag->x = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB])); + + /* Data Y*/ + data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB], + BNO055_MAG_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB], + BNO055_MAG_DATA_Y_MSB_VALUEY); + mag->y = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB])); + + /* Data Z*/ + data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB], + BNO055_MAG_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB], + BNO055_MAG_DATA_Z_MSB_VALUEZ); + mag->z = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads gyro data x values + * from register 0x14 and 0x15 it is a two byte data + * + * + * + * + * @param gyro_x_s16 : The x raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_x(s16 *gyro_x_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8[BNO055_GYRO_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the gyro 16 bit x value*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_GYRO_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_GYRO_DATA_X_MSB_VALUEX); + *gyro_x_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads gyro data y values + * from register 0x16 and 0x17 it is a two byte data + * + * + * + * + * @param gyro_y_s16 : The y raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_y(s16 *gyro_y_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8[BNO055_GYRO_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of gyro y */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_DATA_Y_LSB_VALUEY_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_GYRO_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_GYRO_DATA_Y_MSB_VALUEY); + *gyro_y_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads gyro data z values + * from register 0x18 and 0x19 it is a two byte data + * + * @param gyro_z_s16 : The z raw data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_z(s16 *gyro_z_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8[BNO055_GYRO_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the gyro z 16 bit value*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_DATA_Z_LSB_VALUEZ_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_GYRO_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_GYRO_DATA_Z_MSB_VALUEZ); + *gyro_z_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads gyro data xyz values + * from register 0x14 to 0x19 it is a six byte data + * + * + * @param gyro : The value of gyro xyz data's + * + * Parameter | result + * --------- | ----------------- + * x | The gyro x data + * y | The gyro y data + * z | The gyro z data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_xyz(struct bno055_gyro_t *gyro) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the gyro xyz value + * data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB] - x->LSB + * data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB] - x->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB] - z->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB] - z->MSB + */ + u8 data_u8[BNO055_GYRO_XYZ_DATA_SIZE] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the six bytes data of gyro xyz*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_GYRO_XYZ_DATA_SIZE); + + /* Data x*/ + data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB], + BNO055_GYRO_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB], + BNO055_GYRO_DATA_X_MSB_VALUEX); + gyro->x = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB])); + + /* Data y*/ + data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB], + BNO055_GYRO_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB], + BNO055_GYRO_DATA_Y_MSB_VALUEY); + gyro->y = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB])); + + /* Data z*/ + data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB], + BNO055_GYRO_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB], + BNO055_GYRO_DATA_Z_MSB_VALUEZ); + gyro->z = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads gyro data z values + * from register 0x1A and 0x1B it is a two byte data + * + * @param euler_h_s16 : The raw h data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_euler_h(s16 *euler_h_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the Euler h value + * data_u8[BNO055_SENSOR_DATA_EULER_LSB] - h->LSB + * data_u8[BNO055_SENSOR_DATA_EULER_MSB] - h->MSB + */ + u8 data_u8[BNO055_EULER_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the eulre heading data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_EULER_H_LSB_VALUEH_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_EULER_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_EULER_LSB], + BNO055_EULER_H_LSB_VALUEH); + data_u8[BNO055_SENSOR_DATA_EULER_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_EULER_MSB], + BNO055_EULER_H_MSB_VALUEH); + *euler_h_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_EULER_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_EULER_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads Euler data r values + * from register 0x1C and 0x1D it is a two byte data + * + * @param euler_r_s16 : The raw r data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_euler_r(s16 *euler_r_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the Euler r value + * data_u8[BNO055_SENSOR_DATA_EULER_LSB] - r->LSB + * data_u8[BNO055_SENSOR_DATA_EULER_MSB] - r->MSB + */ + u8 data_u8[BNO055_EULER_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the Euler roll data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_EULER_R_LSB_VALUER_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_EULER_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_EULER_LSB], + BNO055_EULER_R_LSB_VALUER); + data_u8[BNO055_SENSOR_DATA_EULER_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_EULER_MSB], + BNO055_EULER_R_MSB_VALUER); + *euler_r_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_EULER_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_EULER_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads Euler data p values + * from register 0x1E and 0x1F it is a two byte data + * + * @param euler_p_s16 : The raw p data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_euler_p(s16 *euler_p_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the Euler p value + * data_u8[BNO055_SENSOR_DATA_EULER_LSB] - p->LSB + * data_u8[BNO055_SENSOR_DATA_EULER_MSB] - p->MSB + */ + u8 data_u8[BNO055_EULER_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the Euler p data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_EULER_P_LSB_VALUEP_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_EULER_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_EULER_LSB], + BNO055_EULER_P_LSB_VALUEP); + data_u8[BNO055_SENSOR_DATA_EULER_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_EULER_MSB], + BNO055_EULER_P_MSB_VALUEP); + *euler_p_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_EULER_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_EULER_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads Euler data hrp values + * from register 0x1A to 0x1F it is a six byte data + * + * + * @param euler : The Euler hrp data's + * + * Parameter | result + * --------- | ----------------- + * h | The Euler h data + * r | The Euler r data + * p | The Euler p data + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_euler_hrp(struct bno055_euler_t *euler) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the Euler hrp value + * data_u8[BNO055_SENSOR_DATA_EULER_HRP_H_LSB] - h->LSB + * data_u8[BNO055_SENSOR_DATA_EULER_HRP_H_MSB] - h->MSB + * data_u8[BNO055_SENSOR_DATA_EULER_HRP_R_LSB] - r->MSB + * data_u8[BNO055_SENSOR_DATA_EULER_HRP_R_MSB] - r->MSB + * data_u8[BNO055_SENSOR_DATA_EULER_HRP_P_LSB] - p->MSB + * data_u8[BNO055_SENSOR_DATA_EULER_HRP_P_MSB] - p->MSB + */ + u8 data_u8[BNO055_EULER_HRP_DATA_SIZE] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the six byte of Euler hrp data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_EULER_H_LSB_VALUEH_REG, + data_u8, + BNO055_EULER_HRP_DATA_SIZE); + + /* Data h*/ + data_u8[BNO055_SENSOR_DATA_EULER_HRP_H_LSB] = BNO055_GET_BITSLICE( + data_u8[BNO055_SENSOR_DATA_EULER_HRP_H_LSB], + BNO055_EULER_H_LSB_VALUEH); + data_u8[BNO055_SENSOR_DATA_EULER_HRP_H_MSB] = BNO055_GET_BITSLICE( + data_u8[BNO055_SENSOR_DATA_EULER_HRP_H_MSB], + BNO055_EULER_H_MSB_VALUEH); + euler->h = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_EULER_HRP_H_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_EULER_HRP_H_LSB])); + + /* Data r*/ + data_u8[BNO055_SENSOR_DATA_EULER_HRP_R_LSB] = BNO055_GET_BITSLICE( + data_u8[BNO055_SENSOR_DATA_EULER_HRP_R_LSB], + BNO055_EULER_R_LSB_VALUER); + data_u8[BNO055_SENSOR_DATA_EULER_HRP_R_MSB] = BNO055_GET_BITSLICE( + data_u8[BNO055_SENSOR_DATA_EULER_HRP_R_MSB], + BNO055_EULER_R_MSB_VALUER); + euler->r = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_EULER_HRP_R_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_EULER_HRP_R_LSB])); + + /* Data p*/ + data_u8[BNO055_SENSOR_DATA_EULER_HRP_P_LSB] = BNO055_GET_BITSLICE( + data_u8[BNO055_SENSOR_DATA_EULER_HRP_P_LSB], + BNO055_EULER_P_LSB_VALUEP); + data_u8[BNO055_SENSOR_DATA_EULER_HRP_P_MSB] = BNO055_GET_BITSLICE( + data_u8[BNO055_SENSOR_DATA_EULER_HRP_P_MSB], + BNO055_EULER_P_MSB_VALUEP); + euler->p = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_EULER_HRP_P_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_EULER_HRP_P_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads quaternion data w values + * from register 0x20 and 0x21 it is a two byte data + * + * @param quaternion_w_s16 : The raw w data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_quaternion_w(s16 *quaternion_w_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the Quaternion w value + * data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB] - w->LSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB] - w->MSB + */ + u8 data_u8[BNO055_QUATERNION_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value + * of quaternion w data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_QUATERNION_DATA_W_LSB_VALUEW_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB], + BNO055_QUATERNION_DATA_W_LSB_VALUEW); + data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB], + BNO055_QUATERNION_DATA_W_MSB_VALUEW); + *quaternion_w_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads quaternion data x values + * from register 0x22 and 0x23 it is a two byte data + * + * @param quaternion_x_s16 : The raw x data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_quaternion_x(s16 *quaternion_x_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the quaternion x value + * data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB] - x->LSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB] - x->MSB + */ + u8 data_u8[BNO055_QUATERNION_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value + * of quaternion x data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_QUATERNION_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB], + BNO055_QUATERNION_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB], + BNO055_QUATERNION_DATA_X_MSB_VALUEX); + *quaternion_x_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads quaternion data y values + * from register 0x24 and 0x25 it is a two byte data + * + * @param quaternion_y_s16 : The raw y data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_quaternion_y(s16 *quaternion_y_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the quaternion y value + * data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB] - y->LSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB] - y->MSB + */ + u8 data_u8[BNO055_QUATERNION_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value + * of quaternion y data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_QUATERNION_DATA_Y_LSB_VALUEY_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB], + BNO055_QUATERNION_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB], + BNO055_QUATERNION_DATA_Y_MSB_VALUEY); + *quaternion_y_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads quaternion data z values + * from register 0x26 and 0x27 it is a two byte data + * + * @param quaternion_z_s16 : The raw z data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_quaternion_z(s16 *quaternion_z_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the quaternion z value + * data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB] - z->LSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB] - z->MSB + */ + u8 data_u8[BNO055_QUATERNION_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value + * of quaternion z data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_QUATERNION_DATA_Z_LSB_VALUEZ_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB], + BNO055_QUATERNION_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB], + BNO055_QUATERNION_DATA_Z_MSB_VALUEZ); + *quaternion_z_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_QUATERNION_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_QUATERNION_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads Quaternion data wxyz values + * from register 0x20 to 0x27 it is a six byte data + * + * + * @param quaternion : The value of quaternion wxyz data's + * + * Parameter | result + * --------- | ----------------- + * w | The quaternion w data + * x | The quaternion x data + * y | The quaternion y data + * z | The quaternion z data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_quaternion_wxyz(struct bno055_quaternion_t *quaternion) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the quaternion wxyz value + * data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_W_LSB] - w->LSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_W_MSB] - w->MSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_X_LSB] - x->LSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_X_MSB] - x->MSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Y_LSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Y_MSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Z_LSB] - z->MSB + * data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Z_MSB] - z->MSB + */ + u8 data_u8[BNO055_QUATERNION_WXYZ_DATA_SIZE] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the eight byte value + * of quaternion wxyz data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_QUATERNION_DATA_W_LSB_VALUEW_REG, + data_u8, + BNO055_QUATERNION_WXYZ_DATA_SIZE); + + /* Data W*/ + data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_W_LSB] = + BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_W_LSB], + BNO055_QUATERNION_DATA_W_LSB_VALUEW); + data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_W_MSB] = + BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_W_MSB], + BNO055_QUATERNION_DATA_W_MSB_VALUEW); + quaternion->w = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_W_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_W_LSB])); + + /* Data X*/ + data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_X_LSB] = + BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_X_LSB], + BNO055_QUATERNION_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_X_MSB] = + BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_X_MSB], + BNO055_QUATERNION_DATA_X_MSB_VALUEX); + quaternion->x = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_X_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_X_LSB])); + + /* Data Y*/ + data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Y_LSB] = + BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Y_LSB], + BNO055_QUATERNION_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Y_MSB] = + BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Y_MSB], + BNO055_QUATERNION_DATA_Y_MSB_VALUEY); + quaternion->y = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Y_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Y_LSB])); + + /* Data Z*/ + data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Z_LSB] = + BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Z_LSB], + BNO055_QUATERNION_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Z_MSB] = + BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Z_MSB], + BNO055_QUATERNION_DATA_Z_MSB_VALUEZ); + quaternion->z = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Z_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_QUATERNION_WXYZ_Z_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads Linear accel data x values + * from register 0x29 and 0x2A it is a two byte data + * + * @param linear_accel_x_s16 : The raw x data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_linear_accel_x(s16 *linear_accel_x_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the linear accel x value + * data_u8[BNO055_SENSOR_DATA_LSB] - x->LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - x->MSB + */ + u8 data_u8[BNO055_ACCEL_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value + * of linear accel x data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_LINEAR_ACCEL_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_LINEAR_ACCEL_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_LINEAR_ACCEL_DATA_X_MSB_VALUEX); + *linear_accel_x_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads Linear accel data x values + * from register 0x2B and 0x2C it is a two byte data + * + * @param linear_accel_y_s16 : The raw y data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_linear_accel_y(s16 *linear_accel_y_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the linear accel y value + * data_u8[BNO055_SENSOR_DATA_LSB] - y->LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - y->MSB + */ + u8 data_u8[BNO055_ACCEL_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value + * of linear accel y data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_LINEAR_ACCEL_DATA_Y_LSB_VALUEY_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_LINEAR_ACCEL_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_LINEAR_ACCEL_DATA_Y_MSB_VALUEY); + *linear_accel_y_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads Linear accel data x values + * from register 0x2C and 0x2D it is a two byte data + * + * @param linear_accel_z_s16 : The raw z data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_linear_accel_z(s16 *linear_accel_z_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the linear accel z value + * data_u8[BNO055_SENSOR_DATA_LSB] - z->LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - z->MSB + */ + u8 data_u8[BNO055_ACCEL_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value + * of linear accel z data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_LINEAR_ACCEL_DATA_Z_LSB_VALUEZ_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_LINEAR_ACCEL_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_LINEAR_ACCEL_DATA_Z_MSB_VALUEZ); + *linear_accel_z_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads Linear accel data xyz values + * from register 0x28 to 0x2D it is a six byte data + * + * + * @param linear_accel : The value of linear accel xyz data's + * + * Parameter | result + * --------- | ----------------- + * x | The linear accel x data + * y | The linear accel y data + * z | The linear accel z data + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_linear_accel_xyz(struct bno055_linear_accel_t *linear_accel) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the linear accel xyz value + * data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB] - x->LSB + * data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB] - x->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB] - z->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB] - z->MSB + */ + u8 data_u8[BNO055_ACCEL_XYZ_DATA_SIZE] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the six byte value + * of linear accel xyz data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_LINEAR_ACCEL_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_ACCEL_XYZ_DATA_SIZE); + + /* Data x*/ + data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB], + BNO055_LINEAR_ACCEL_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB], + BNO055_LINEAR_ACCEL_DATA_X_MSB_VALUEX); + linear_accel->x = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB])); + + /* Data y*/ + data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB], + BNO055_LINEAR_ACCEL_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB], + BNO055_LINEAR_ACCEL_DATA_Y_MSB_VALUEY); + linear_accel->y = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB])); + + /* Data z*/ + data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB], + BNO055_LINEAR_ACCEL_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB], + BNO055_LINEAR_ACCEL_DATA_Z_MSB_VALUEZ); + linear_accel->z = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads gravity data x values + * from register 0x2E and 0x2F it is a two byte data + * + * @param gravity_x_s16 : The raw x data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gravity_x(s16 *gravity_x_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the gravity x value + * data_u8[BNO055_SENSOR_DATA_LSB] - x->LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - x->MSB + */ + u8 data_u8[BNO055_GRAVITY_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value + * of gravity x data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GRAVITY_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_GRAVITY_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_GRAVITY_DATA_X_MSB_VALUEX); + *gravity_x_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads gravity data y values + * from register 0x30 and 0x31 it is a two byte data + * + * @param gravity_y_s16 : The raw y data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gravity_y(s16 *gravity_y_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the gravity y value + * data_u8[BNO055_SENSOR_DATA_LSB] - y->LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - y->MSB + */ + u8 data_u8[BNO055_GRAVITY_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value + * of gravity y data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GRAVITY_DATA_Y_LSB_VALUEY_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_GRAVITY_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_GRAVITY_DATA_Y_MSB_VALUEY); + *gravity_y_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads gravity data z values + * from register 0x32 and 0x33 it is a two byte data + * + * @param gravity_z_s16 : The raw z data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gravity_z(s16 *gravity_z_s16) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the gravity z value + * data_u8[BNO055_SENSOR_DATA_LSB] - z->LSB + * data_u8[BNO055_SENSOR_DATA_MSB] - z->MSB + */ + u8 data_u8[BNO055_GRAVITY_DATA_SIZE] = { BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the two byte value + * of gravity z data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GRAVITY_DATA_Z_LSB_VALUEZ_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + data_u8[BNO055_SENSOR_DATA_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_LSB], + BNO055_GRAVITY_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_MSB], + BNO055_GRAVITY_DATA_Z_MSB_VALUEZ); + *gravity_z_s16 = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads gravity data xyz values + * from register 0x2E to 0x33 it is a six byte data + * + * + * @param gravity : The value of gravity xyz data's + * + * Parameter | result + * --------- | ----------------- + * x | The gravity x data + * y | The gravity y data + * z | The gravity z data + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gravity_xyz(struct bno055_gravity_t *gravity) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the gravity xyz value + * data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB] - x->LSB + * data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB] - x->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB] - y->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB] - z->MSB + * data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB] - z->MSB + */ + u8 data_u8[BNO055_GRAVITY_XYZ_DATA_SIZE] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the six byte value + * of gravity xyz data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GRAVITY_DATA_X_LSB_VALUEX_REG, + data_u8, + BNO055_GRAVITY_XYZ_DATA_SIZE); + + /* Data x*/ + data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB], + BNO055_GRAVITY_DATA_X_LSB_VALUEX); + data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB], + BNO055_GRAVITY_DATA_X_MSB_VALUEX); + gravity->x = + (s16)(((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_X_MSB]) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_X_LSB])); + + /* Data y*/ + data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB], + BNO055_GRAVITY_DATA_Y_LSB_VALUEY); + data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB], + BNO055_GRAVITY_DATA_Y_MSB_VALUEY); + gravity->y = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_Y_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_Y_LSB])); + + /* Data z*/ + data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB], + BNO055_GRAVITY_DATA_Z_LSB_VALUEZ); + data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB], + BNO055_GRAVITY_DATA_Z_MSB_VALUEZ); + gravity->z = + (s16)((((s32)((s8)data_u8[BNO055_SENSOR_DATA_XYZ_Z_MSB])) << BNO055_SHIFT_EIGHT_BITS) | + (data_u8[BNO055_SENSOR_DATA_XYZ_Z_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API reads temperature values + * from register 0x33 it is a byte data + * + * @param temp_s8 : The raw temperature data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_temp_data(s8 *temp_s8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8 = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the raw temperature data */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_TEMP_REG, + &data_u8, + BNO055_GEN_READ_WRITE_LENGTH); + *temp_s8 = data_u8; + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} +#ifdef BNO055_FLOAT_ENABLE + +/*! + * @brief This API is used to convert the accel x raw data + * to meterpersecseq output as float + * + * @param accel_x_f : The accel x meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_x_msq(float *accel_x_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_x_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as m/s2 if the unit is in mg*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MSQ) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MSQ); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw x data*/ + com_rslt += bno055_read_accel_x(®_accel_x_s16); + p_bno055->delay_msec(BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw accel x to m/s2*/ + data_f = (float)(reg_accel_x_s16 / BNO055_ACCEL_DIV_MSQ); + *accel_x_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel x raw data + * to millig output as float + * + * @param accel_x_f : The accel x millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_x_mg(float *accel_x_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_x_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as mg if the unit is in m/s2*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MG) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw x data*/ + com_rslt += bno055_read_accel_x(®_accel_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw accel x to m/s2*/ + data_f = (float)(reg_accel_x_s16 / BNO055_ACCEL_DIV_MG); + *accel_x_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel x raw data + * to meterpersecseq output as float + * + * @param accel_y_f : The accel y meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_y_msq(float *accel_y_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_y_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as m/s2 if the unit is in mg*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MSQ) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MSQ); + } + if (com_rslt == BNO055_SUCCESS) + { + com_rslt += bno055_read_accel_y(®_accel_y_s16); + p_bno055->delay_msec(BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw accel y to m/s2*/ + data_f = (float)(reg_accel_y_s16 / BNO055_ACCEL_DIV_MSQ); + *accel_y_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel y raw data + * to millig output as float + * + * @param accel_y_f : The accel y millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_y_mg(float *accel_y_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_y_s16 = BNO055_INIT_VALUE; + float data = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as mg if the unit is in m/s2*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MG) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw z data*/ + com_rslt += bno055_read_accel_y(®_accel_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw accel z to mg*/ + data = (float)(reg_accel_y_s16 / BNO055_ACCEL_DIV_MG); + *accel_y_f = data; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel z raw data + * to meterpersecseq output as float + * + * @param accel_z_f : The accel z meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_z_msq(float *accel_z_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_z_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as m/s2 if the unit is in mg*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MSQ) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MSQ); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw z data*/ + com_rslt += bno055_read_accel_z(®_accel_z_s16); + p_bno055->delay_msec(BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw accel z to m/s2*/ + data_f = (float)(reg_accel_z_s16 / BNO055_ACCEL_DIV_MSQ); + *accel_z_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel z raw data + * to millig output as float + * + * @param accel_z_f : The accel z millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_z_mg(float *accel_z_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_z_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as mg if the unit is in m/s2 */ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MG) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw z data*/ + com_rslt += bno055_read_accel_z(®_accel_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw accel x to mg*/ + data_f = (float)(reg_accel_z_s16 / BNO055_ACCEL_DIV_MG); + *accel_z_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel xyz raw data + * to meterpersecseq output as float + * + * @param accel_xyz : The meterpersecseq data of accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of accel + * y | meterpersecseq data of accel + * z | meterpersecseq data of accel + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_xyz_msq(struct bno055_accel_float_t *accel_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_accel_t reg_accel_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as m/s2 if the unit is in mg*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MSQ) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MSQ); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw xyz data*/ + com_rslt += bno055_read_accel_xyz(®_accel_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the accel raw xyz to meterpersecseq*/ + accel_xyz->x = (float)(reg_accel_xyz.x / BNO055_ACCEL_DIV_MSQ); + accel_xyz->y = (float)(reg_accel_xyz.y / BNO055_ACCEL_DIV_MSQ); + accel_xyz->z = (float)(reg_accel_xyz.z / BNO055_ACCEL_DIV_MSQ); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel xyz raw data + * to millig output as float + * + * @param accel_xyz : The millig data of accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | millig data of accel + * y | millig data of accel + * z | millig data of accel + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_xyz_mg(struct bno055_accel_float_t *accel_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_accel_t reg_accel_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as mg if the unit is in m/s2*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MG) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw y data*/ + com_rslt += bno055_read_accel_xyz(®_accel_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /*Convert the accel raw xyz to millig */ + accel_xyz->x = (float)(reg_accel_xyz.x / BNO055_ACCEL_DIV_MG); + accel_xyz->y = (float)(reg_accel_xyz.y / BNO055_ACCEL_DIV_MG); + accel_xyz->z = (float)(reg_accel_xyz.z / BNO055_ACCEL_DIV_MG); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the mag x raw data + * to microTesla output as float + * + * @param mag_x_f : The mag x microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_mag_x_uT(float *mag_x_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_mag_x_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + + /* Read raw mag x data */ + com_rslt = bno055_read_mag_x(®_mag_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw mag x to microTesla*/ + data_f = (float)(reg_mag_x_s16 / BNO055_MAG_DIV_UT); + *mag_x_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the mag y raw data + * to microTesla output as float + * + * @param mag_y_f : The mag y microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_mag_y_uT(float *mag_y_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_mag_y_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + + /* Read raw mag y data */ + com_rslt = bno055_read_mag_y(®_mag_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw mag y to microTesla*/ + data_f = (float)(reg_mag_y_s16 / BNO055_MAG_DIV_UT); + *mag_y_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the mag z raw data + * to microTesla output as float + * + * @param mag_z_f : The mag z microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_mag_z_uT(float *mag_z_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_mag_z_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + + /* Read raw mag z data */ + com_rslt = bno055_read_mag_z(®_mag_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw mag z to microTesla*/ + data_f = (float)(reg_mag_z_s16 / BNO055_MAG_DIV_UT); + *mag_z_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the mag yz raw data + * to microTesla output as float + * + * @param mag_xyz_data : The microTesla data of mag xyz + * + * Parameter | result + * --------- | ----------------- + * x | microTesla data of mag + * y | microTesla data of mag + * z | microTesla data of mag + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_mag_xyz_uT(struct bno055_mag_float_t *mag_xyz_data) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_mag_t mag_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + + /* Read raw mag x data */ + com_rslt = bno055_read_mag_xyz(&mag_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert mag raw xyz to microTesla*/ + mag_xyz_data->x = (float)(mag_xyz.x / BNO055_MAG_DIV_UT); + mag_xyz_data->y = (float)(mag_xyz.y / BNO055_MAG_DIV_UT); + mag_xyz_data->z = (float)(mag_xyz.z / BNO055_MAG_DIV_UT); + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro x raw data + * to dps output as float + * + * @param gyro_x_f : The gyro x dps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_x_dps(float *gyro_x_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_x_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as dps if the unit is in rps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_DPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_DPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw x data */ + com_rslt += bno055_read_gyro_x(®_gyro_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw gyro x to dps*/ + data_f = (float)(reg_gyro_x_s16 / BNO055_GYRO_DIV_DPS); + *gyro_x_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro x raw data + * to rps output as float + * + * @param gyro_x_f : The gyro x dps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_x_rps(float *gyro_x_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_x_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as rps if the unit is in dps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_RPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_RPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw x data */ + com_rslt += bno055_read_gyro_x(®_gyro_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw gyro x to rps*/ + data_f = (float)(reg_gyro_x_s16 / BNO055_GYRO_DIV_RPS); + *gyro_x_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro y raw data + * to dps output as float + * + * @param gyro_y_f : The gyro y dps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_y_dps(float *gyro_y_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_y_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as dps if the unit is in rps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_DPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_DPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw y data */ + com_rslt += bno055_read_gyro_y(®_gyro_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw gyro x to dps*/ + data_f = (float)(reg_gyro_y_s16 / BNO055_GYRO_DIV_DPS); + *gyro_y_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro y raw data + * to rps output as float + * + * @param gyro_y_f : The gyro y dps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_y_rps(float *gyro_y_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_y_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as rps if the unit is in dps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_RPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_RPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw y data */ + com_rslt += bno055_read_gyro_y(®_gyro_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw gyro x to rps*/ + data_f = (float)(reg_gyro_y_s16 / BNO055_GYRO_DIV_RPS); + *gyro_y_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro z raw data + * to dps output as float + * + * @param gyro_z_f : The gyro z dps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_z_dps(float *gyro_z_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_z_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as dps if the unit is in rps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_DPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_DPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw z data */ + com_rslt += bno055_read_gyro_z(®_gyro_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw gyro x to dps*/ + data_f = (float)(reg_gyro_z_s16 / BNO055_GYRO_DIV_DPS); + *gyro_z_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro z raw data + * to rps output as float + * + * @param gyro_z_f : The gyro z rps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_z_rps(float *gyro_z_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_z_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as rps if the unit is in dps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_RPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_RPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw x data */ + com_rslt += bno055_read_gyro_z(®_gyro_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw gyro x to rps*/ + data_f = (float)(reg_gyro_z_s16 / BNO055_GYRO_DIV_RPS); + *gyro_z_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro xyz raw data + * to dps output as float + * + * @param gyro_xyz_data : The dps data of gyro xyz + * + * Parameter | result + * --------- | ----------------- + * x | dps data of gyro + * y | dps data of gyro + * z | dps data of gyro + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_xyz_dps(struct bno055_gyro_float_t *gyro_xyz_data) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_gyro_t gyro_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as dps if the unit is in rps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_DPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_DPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw xyz data */ + com_rslt += bno055_read_gyro_xyz(&gyro_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert gyro raw xyz to dps*/ + gyro_xyz_data->x = (float)(gyro_xyz.x / BNO055_GYRO_DIV_DPS); + gyro_xyz_data->y = (float)(gyro_xyz.y / BNO055_GYRO_DIV_DPS); + gyro_xyz_data->z = (float)(gyro_xyz.z / BNO055_GYRO_DIV_DPS); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro xyz raw data + * to rps output as float + * + * @param gyro_xyz_data : The rps data of gyro xyz + * + * Parameter | result + * --------- | ----------------- + * x | rps data of gyro + * y | rps data of gyro + * z | rps data of gyro + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_xyz_rps(struct bno055_gyro_float_t *gyro_xyz_data) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_gyro_t gyro_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as rps if the unit is in dps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_RPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_RPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw xyz data */ + com_rslt += bno055_read_gyro_xyz(&gyro_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert gyro raw xyz to rps*/ + gyro_xyz_data->x = (float)(gyro_xyz.x / BNO055_GYRO_DIV_RPS); + gyro_xyz_data->y = (float)(gyro_xyz.y / BNO055_GYRO_DIV_RPS); + gyro_xyz_data->z = (float)(gyro_xyz.z / BNO055_GYRO_DIV_RPS); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler h raw data + * to degree output as float + * + * @param euler_h_f : The float value of Euler h degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_h_deg(float *euler_h_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_h_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as degree if the unit is in radians */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_DEG) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_DEG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw h data*/ + com_rslt += bno055_read_euler_h(®_euler_h_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler h data to degree*/ + data_f = (float)(reg_euler_h_s16 / BNO055_EULER_DIV_DEG); + *euler_h_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler h raw data + * to radians output as float + * + * @param euler_h_f : The float value of Euler h radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_h_rad(float *euler_h_f) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_h_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_RAD) + { + /* Read the current Euler unit and set the + * unit as radians if the unit is in degree */ + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_RAD); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw h data*/ + com_rslt += bno055_read_euler_h(®_euler_h_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler h data to degree*/ + data_f = (float)(reg_euler_h_s16 / BNO055_EULER_DIV_RAD); + *euler_h_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler r raw data + * to degree output as float + * + * @param euler_r_f : The float value of Euler r degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_r_deg(float *euler_r_f) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_r = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as degree if the unit is in radians */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_DEG) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_DEG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw r data*/ + com_rslt += bno055_read_euler_r(®_euler_r); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler r data to degree*/ + data_f = (float)(reg_euler_r / BNO055_EULER_DIV_DEG); + *euler_r_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler r raw data + * to radians output as float + * + * @param euler_r_f : The float value of Euler r radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_r_rad(float *euler_r_f) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_r_f = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as radians if the unit is in degree */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_RAD) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_RAD); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw r data*/ + com_rslt += bno055_read_euler_r(®_euler_r_f); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler r data to radians*/ + data_f = (float)(reg_euler_r_f / BNO055_EULER_DIV_RAD); + *euler_r_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler p raw data + * to degree output as float + * + * @param euler_p_f : The float value of Euler p degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_p_deg(float *euler_p_f) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_p_f = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as degree if the unit is in radians */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_DEG) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_DEG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw p data*/ + com_rslt += bno055_read_euler_p(®_euler_p_f); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler p data to degree*/ + data_f = (float)(reg_euler_p_f / BNO055_EULER_DIV_DEG); + *euler_p_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler p raw data + * to radians output as float + * + * @param euler_p_f : The float value of Euler p radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_p_rad(float *euler_p_f) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_p_f = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as radians if the unit is in degree */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_RAD) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_RAD); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw r data*/ + com_rslt += bno055_read_euler_p(®_euler_p_f); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler r data to radians*/ + data_f = (float)(reg_euler_p_f / BNO055_EULER_DIV_RAD); + *euler_p_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler hrp raw data + * to degree output as float + * + * @param euler_hpr : The degree data of Euler hrp + * + * Parameter | result + * --------- | ----------------- + * h | degree data of Euler + * r | degree data of Euler + * p | degree data of Euler + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_hpr_deg(struct bno055_euler_float_t *euler_hpr) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_euler_t reg_euler = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as degree if the unit is in radians */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_DEG) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_DEG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw hrp data*/ + com_rslt += bno055_read_euler_hrp(®_euler); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler hrp to degree*/ + euler_hpr->h = (float)(reg_euler.h / BNO055_EULER_DIV_DEG); + euler_hpr->p = (float)(reg_euler.p / BNO055_EULER_DIV_DEG); + euler_hpr->r = (float)(reg_euler.r / BNO055_EULER_DIV_DEG); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler xyz raw data + * to radians output as float + * + * @param euler_hpr : The radians data of Euler hrp + * + * Parameter | result + * --------- | ----------------- + * h | radians data of Euler + * r | radians data of Euler + * p | radians data of Euler + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_hpr_rad(struct bno055_euler_float_t *euler_hpr) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_euler_t reg_euler = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as radians if the unit is in degree */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_RAD) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_RAD); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw hrp data*/ + com_rslt += bno055_read_euler_hrp(®_euler); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw hrp to radians */ + euler_hpr->h = (float)(reg_euler.h / BNO055_EULER_DIV_RAD); + euler_hpr->p = (float)(reg_euler.p / BNO055_EULER_DIV_RAD); + euler_hpr->r = (float)(reg_euler.r / BNO055_EULER_DIV_RAD); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the linear + * accel x raw data to meterpersecseq output as float + * + * @param linear_accel_x_f : The float value of linear accel x meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_linear_accel_x_msq(float *linear_accel_x_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_linear_accel_x_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + + /* Read the raw x of linear accel */ + com_rslt = bno055_read_linear_accel_x(®_linear_accel_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw linear accel x to m/s2*/ + data_f = (float)(reg_linear_accel_x_s16 / BNO055_LINEAR_ACCEL_DIV_MSQ); + *linear_accel_x_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the linear + * accel y raw data to meterpersecseq output as float + * + * @param linear_accel_y_f : The float value of linear accel y meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_linear_accel_y_msq(float *linear_accel_y_f) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_linear_accel_y = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + + /* Read the raw y of linear accel */ + com_rslt = bno055_read_linear_accel_y(®_linear_accel_y); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw linear accel x to m/s2*/ + data_f = (float)(reg_linear_accel_y / BNO055_LINEAR_ACCEL_DIV_MSQ); + *linear_accel_y_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the linear + * accel z raw data to meterpersecseq output as float + * + * @param linear_accel_z_f : The float value of linear accel z meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_linear_accel_z_msq(float *linear_accel_z_f) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_linear_accel_z = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + + /* Read the raw x of linear accel */ + com_rslt = bno055_read_linear_accel_z(®_linear_accel_z); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw linear accel z to m/s2*/ + data_f = (float)(reg_linear_accel_z / BNO055_LINEAR_ACCEL_DIV_MSQ); + *linear_accel_z_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the linear accel xyz raw data + * to meterpersecseq output as float + * + * @param linear_accel_xyz : The meterpersecseq data of linear accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of linear accel + * y | meterpersecseq data of linear accel + * z | meterpersecseq data of linear accel + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_linear_accel_xyz_msq( + struct bno055_linear_accel_float_t *linear_accel_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_linear_accel_t reg_linear_accel = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + + /* Read the raw x of linear accel */ + com_rslt = bno055_read_linear_accel_xyz(®_linear_accel); + if (com_rslt == BNO055_SUCCESS) + { + linear_accel_xyz->x = (float)(reg_linear_accel.x / BNO055_LINEAR_ACCEL_DIV_MSQ); + linear_accel_xyz->y = (float)(reg_linear_accel.y / BNO055_LINEAR_ACCEL_DIV_MSQ); + linear_accel_xyz->z = (float)(reg_linear_accel.z / BNO055_LINEAR_ACCEL_DIV_MSQ); + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gravity + * x raw data to meterpersecseq output as float + * + * @param gravity_x_f : The float value of gravity x meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_float_x_msq(float *gravity_x_f) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gravity_x_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + + /* Read raw gravity of x*/ + com_rslt = bno055_read_gravity_x(®_gravity_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw gravity x to m/s2*/ + data_f = (float)(reg_gravity_x_s16 / BNO055_GRAVITY_DIV_MSQ); + *gravity_x_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gravity + * y raw data to meterpersecseq output as float + * + * @param gravity_y_f : The float value of gravity y meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_float_y_msq(float *gravity_y_f) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gravity_y_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + + /* Read raw gravity of y*/ + com_rslt = bno055_read_gravity_y(®_gravity_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw gravity y to m/s2*/ + data_f = (float)(reg_gravity_y_s16 / BNO055_GRAVITY_DIV_MSQ); + *gravity_y_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gravity + * z raw data to meterpersecseq output as float + * + * @param gravity_z_f : The float value of gravity z meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_float_z_msq(float *gravity_z_f) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gravity_z_s16 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + + /* Read raw gravity of z */ + com_rslt = bno055_read_gravity_z(®_gravity_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw gravity z to m/s2*/ + data_f = (float)(reg_gravity_z_s16 / BNO055_GRAVITY_DIV_MSQ); + *gravity_z_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gravity xyz raw data + * to meterpersecseq output as float + * + * @param gravity_xyz : The meterpersecseq data of gravity xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of gravity + * y | meterpersecseq data of gravity + * z | meterpersecseq data of gravity + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gravity_xyz_msq(struct bno055_gravity_float_t *gravity_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_gravity_t reg_gravity_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + + /* Read raw gravity of xyz */ + com_rslt = bno055_read_gravity_xyz(®_gravity_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw gravity xyz to meterpersecseq */ + gravity_xyz->x = (float)(reg_gravity_xyz.x / BNO055_GRAVITY_DIV_MSQ); + gravity_xyz->y = (float)(reg_gravity_xyz.y / BNO055_GRAVITY_DIV_MSQ); + gravity_xyz->z = (float)(reg_gravity_xyz.z / BNO055_GRAVITY_DIV_MSQ); + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the temperature + * data to Fahrenheit output as float + * + * @param temp_f : The float value of temperature Fahrenheit + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_temp_fahrenheit(float *temp_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s8 reg_temp_s8 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 temp_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current temperature unit and set the + * unit as Fahrenheit if the unit is in Celsius */ + com_rslt = bno055_get_temp_unit(&temp_unit_u8); + if (temp_unit_u8 != BNO055_TEMP_UNIT_FAHRENHEIT) + { + com_rslt += bno055_set_temp_unit(BNO055_TEMP_UNIT_FAHRENHEIT); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the raw temperature data */ + com_rslt += bno055_read_temp_data(®_temp_s8); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw temperature data to Fahrenheit*/ + data_f = (float)(reg_temp_s8 / BNO055_TEMP_DIV_FAHRENHEIT); + *temp_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the temperature + * data to Celsius output as float + * + * @param temp_f : The float value of temperature Celsius + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_temp_celsius(float *temp_f) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s8 reg_temp_s8 = BNO055_INIT_VALUE; + float data_f = BNO055_INIT_VALUE; + u8 temp_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current temperature unit and set the + * unit as Fahrenheit if the unit is in Celsius */ + com_rslt = bno055_get_temp_unit(&temp_unit_u8); + if (temp_unit_u8 != BNO055_TEMP_UNIT_CELSIUS) + { + com_rslt += bno055_set_temp_unit(BNO055_TEMP_UNIT_CELSIUS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the raw temperature data */ + com_rslt += bno055_read_temp_data(®_temp_s8); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw temperature data to Fahrenheit*/ + data_f = (float)(reg_temp_s8 / BNO055_TEMP_DIV_CELSIUS); + *temp_f = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} +#endif +#ifdef BNO055_DOUBLE_ENABLE + +/*! + * @brief This API is used to convert the accel x raw data + * to meterpersecseq output as double + * + * @param accel_x_d : The accel x meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_x_msq(double *accel_x_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_x_s16 = BNO055_INIT_VALUE; + double data_f = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as m/s2 if the unit is in mg*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MSQ) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MSQ); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw y data*/ + com_rslt += bno055_read_accel_x(®_accel_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw x to m/s2 */ + data_f = (double)(reg_accel_x_s16 / BNO055_ACCEL_DIV_MSQ); + *accel_x_d = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel x raw data + * to millig output as double + * + * @param accel_x_d : The accel x millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_x_mg(double *accel_x_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_x_s16 = BNO055_INIT_VALUE; + double data_f = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as mg if the unit is in m/s2*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MG) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw y data*/ + com_rslt += bno055_read_accel_x(®_accel_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw x to mg */ + data_f = (double)(reg_accel_x_s16 / BNO055_ACCEL_DIV_MG); + *accel_x_d = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel y raw data + * to meterpersecseq output as double + * + * @param accel_y_d : The accel y meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_y_msq(double *accel_y_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_y_s16 = BNO055_INIT_VALUE; + double data_f = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as m/s2 if the unit is in mg*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MSQ) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MSQ); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw y data*/ + com_rslt += bno055_read_accel_y(®_accel_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw x to m/s2 */ + data_f = (double)(reg_accel_y_s16 / BNO055_ACCEL_DIV_MSQ); + *accel_y_d = data_f; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel y raw data + * to millig output as double + * + * @param accel_y_d : The accel y millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_y_mg(double *accel_y_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_y_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as mg if the unit is in m/s2*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MG) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw y data*/ + com_rslt += bno055_read_accel_y(®_accel_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw y to mg */ + data_d = (double)(reg_accel_y_s16 / BNO055_ACCEL_DIV_MG); + *accel_y_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel z raw data + * to meterpersecseq output as double + * + * @param accel_z_d : The accel z meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_z_msq(double *accel_z_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_z_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as m/s2 if the unit is in mg*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MSQ) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MSQ); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw z data*/ + com_rslt += bno055_read_accel_z(®_accel_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw z to m/s2 */ + data_d = (double)(reg_accel_z_s16 / BNO055_ACCEL_DIV_MSQ); + *accel_z_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel z raw data + * to millig output as double + * + * @param accel_z_d : The accel z millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_z_mg(double *accel_z_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_accel_z_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as mg if the unit is in m/s2*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MG) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw z data*/ + com_rslt += bno055_read_accel_z(®_accel_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw z to mg */ + data_d = (double)(reg_accel_z_s16 / BNO055_ACCEL_DIV_MG); + *accel_z_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel xyz raw data + * to meterpersecseq output as double + * + * @param accel_xyz : The meterpersecseq data of accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of accel + * y | meterpersecseq data of accel + * z | meterpersecseq data of accel + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_xyz_msq(struct bno055_accel_double_t *accel_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_accel_t reg_accel_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as m/s2 if the unit is in mg*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MSQ) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MSQ); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw xyz data*/ + com_rslt += bno055_read_accel_xyz(®_accel_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw xyz to m/s2*/ + accel_xyz->x = (double)(reg_accel_xyz.x / BNO055_ACCEL_DIV_MSQ); + accel_xyz->y = (double)(reg_accel_xyz.y / BNO055_ACCEL_DIV_MSQ); + accel_xyz->z = (double)(reg_accel_xyz.z / BNO055_ACCEL_DIV_MSQ); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the accel xyz raw data + * to millig output as double + * + * @param accel_xyz : The millig data of accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | millig data of accel + * y | millig data of accel + * z | millig data of accel + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_xyz_mg(struct bno055_accel_double_t *accel_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_accel_t reg_accel_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 accel_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current accel unit and set the + * unit as m/s2 if the unit is in mg*/ + com_rslt = bno055_get_accel_unit(&accel_unit_u8); + if (accel_unit_u8 != BNO055_ACCEL_UNIT_MG) + { + com_rslt += bno055_set_accel_unit(BNO055_ACCEL_UNIT_MG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the accel raw xyz data*/ + com_rslt += bno055_read_accel_xyz(®_accel_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw xyz to mg*/ + accel_xyz->x = (double)(reg_accel_xyz.x / BNO055_ACCEL_DIV_MG); + accel_xyz->y = (double)(reg_accel_xyz.y / BNO055_ACCEL_DIV_MG); + accel_xyz->z = (double)(reg_accel_xyz.z / BNO055_ACCEL_DIV_MG); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the mag x raw data + * to microTesla output as double + * + * @param mag_x_d : The mag x microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_mag_x_uT(double *mag_x_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_mag_x_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + + /* Read raw mag x data */ + com_rslt = bno055_read_mag_x(®_mag_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw mag x to microTesla */ + data_d = (double)(reg_mag_x_s16 / BNO055_MAG_DIV_UT); + *mag_x_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the mag y raw data + * to microTesla output as double + * + * @param mag_y_d : The mag y microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_mag_y_uT(double *mag_y_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_mag_y_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + + /* Read raw mag y data */ + com_rslt = bno055_read_mag_y(®_mag_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw mag y to microTesla */ + data_d = (double)(reg_mag_y_s16 / BNO055_MAG_DIV_UT); + *mag_y_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the mag z raw data + * to microTesla output as double + * + * @param mag_z_d : The mag z microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_mag_z_uT(double *mag_z_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_mag_z_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + + /* Read raw mag x */ + com_rslt = bno055_read_mag_z(®_mag_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw mag x to microTesla */ + data_d = (double)(reg_mag_z_s16 / BNO055_MAG_DIV_UT); + *mag_z_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the mag yz raw data + * to microTesla output as double + * + * @param mag_xyz : The microTesla data of mag xyz + * + * Parameter | result + * --------- | ----------------- + * x | microTesla data of mag + * y | microTesla data of mag + * z | microTesla data of mag + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_mag_xyz_uT(struct bno055_mag_double_t *mag_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_mag_t reg_mag_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + + /* Read raw mag xyz data */ + com_rslt = bno055_read_mag_xyz(®_mag_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw mag xyz to microTesla*/ + mag_xyz->x = (double)(reg_mag_xyz.x / BNO055_MAG_DIV_UT); + mag_xyz->y = (double)(reg_mag_xyz.y / BNO055_MAG_DIV_UT); + mag_xyz->z = (double)(reg_mag_xyz.z / BNO055_MAG_DIV_UT); + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro x raw data + * to dps output as double + * + * @param gyro_x_d : The gyro x dps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_x_dps(double *gyro_x_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_x_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as dps if the unit is in rps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_DPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_DPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw x data */ + com_rslt += bno055_read_gyro_x(®_gyro_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw gyro x to dps */ + data_d = (double)(reg_gyro_x_s16 / BNO055_GYRO_DIV_DPS); + *gyro_x_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro x raw data + * to rps output as double + * + * @param gyro_x_d : The gyro x dps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_x_rps(double *gyro_x_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_x_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as rps if the unit is in dps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_RPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_RPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw x data */ + com_rslt += bno055_read_gyro_x(®_gyro_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw gyro x to rps */ + data_d = (double)(reg_gyro_x_s16 / BNO055_GYRO_DIV_RPS); + *gyro_x_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro y raw data + * to dps output as double + * + * @param gyro_y_d : The gyro y dps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_y_dps(double *gyro_y_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_y_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as dps if the unit is in rps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_DPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_DPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw y data */ + com_rslt += bno055_read_gyro_y(®_gyro_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw gyro y to dps */ + data_d = (double)(reg_gyro_y_s16 / BNO055_GYRO_DIV_DPS); + *gyro_y_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro y raw data + * to rps output as double + * + * @param gyro_y_d : The gyro y dps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_y_rps(double *gyro_y_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_y_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as rps if the unit is in dps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_RPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_RPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw y data */ + com_rslt += bno055_read_gyro_y(®_gyro_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw gyro y to rps */ + data_d = (double)(reg_gyro_y_s16 / BNO055_GYRO_DIV_RPS); + *gyro_y_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro z raw data + * to dps output as double + * + * @param gyro_z_d : The gyro z dps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_z_dps(double *gyro_z_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_z_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as dps if the unit is in rps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_DPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_DPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw z data */ + com_rslt += bno055_read_gyro_z(®_gyro_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw gyro z to dps */ + data_d = (double)(reg_gyro_z_s16 / BNO055_GYRO_DIV_DPS); + *gyro_z_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro z raw data + * to rps output as double + * + * @param gyro_z_d : The gyro z rps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_z_rps(double *gyro_z_d) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gyro_z_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as rps if the unit is in dps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_RPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_RPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw x data */ + com_rslt += bno055_read_gyro_z(®_gyro_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw gyro x to rps */ + data_d = (double)(reg_gyro_z_s16 / BNO055_GYRO_DIV_RPS); + *gyro_z_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro xyz raw data + * to dps output as double + * + * @param gyro_xyz : The dps data of gyro xyz + * + * Parameter | result + * --------- | ----------------- + * x | dps data of gyro + * y | dps data of gyro + * z | dps data of gyro + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_xyz_dps(struct bno055_gyro_double_t *gyro_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_gyro_t reg_gyro_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as dps if the unit is in rps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_DPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_DPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw xyz data */ + com_rslt += bno055_read_gyro_xyz(®_gyro_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert gyro raw xyz to dps*/ + gyro_xyz->x = (double)(reg_gyro_xyz.x / BNO055_GYRO_DIV_DPS); + gyro_xyz->y = (double)(reg_gyro_xyz.y / BNO055_GYRO_DIV_DPS); + gyro_xyz->z = (double)(reg_gyro_xyz.z / BNO055_GYRO_DIV_DPS); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gyro xyz raw data + * to rps output as double + * + * @param gyro_xyz : The rps data of gyro xyz + * + * Parameter | result + * --------- | ----------------- + * x | rps data of gyro + * y | rps data of gyro + * z | rps data of gyro + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_xyz_rps(struct bno055_gyro_double_t *gyro_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_gyro_t reg_gyro_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 gyro_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current gyro unit and set the + * unit as rps if the unit is in dps */ + com_rslt = bno055_get_gyro_unit(&gyro_unit_u8); + if (gyro_unit_u8 != BNO055_GYRO_UNIT_RPS) + { + com_rslt += bno055_set_gyro_unit(BNO055_GYRO_UNIT_RPS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro raw x data */ + com_rslt += bno055_read_gyro_xyz(®_gyro_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw gyro xyz to rps*/ + gyro_xyz->x = (double)(reg_gyro_xyz.x / BNO055_GYRO_DIV_RPS); + gyro_xyz->y = (double)(reg_gyro_xyz.y / BNO055_GYRO_DIV_RPS); + gyro_xyz->z = (double)(reg_gyro_xyz.z / BNO055_GYRO_DIV_RPS); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler h raw data + * to degree output as double + * + * @param euler_h_d : The double value of Euler h degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_h_deg(double *euler_h_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_h_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as degree if the unit is in radians */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_DEG) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_DEG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw h data*/ + com_rslt += bno055_read_euler_h(®_euler_h_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler h to degree */ + data_d = (double)(reg_euler_h_s16 / BNO055_EULER_DIV_DEG); + *euler_h_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler h raw data + * to radians output as double + * + * @param euler_h_d : The double value of Euler h radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_h_rad(double *euler_h_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_h_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as radians if the unit is in degree */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_RAD) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_RAD); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw h data*/ + com_rslt += bno055_read_euler_h(®_euler_h_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler h to radians */ + data_d = (double)(reg_euler_h_s16 / BNO055_EULER_DIV_RAD); + *euler_h_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler r raw data + * to degree output as double + * + * @param euler_r_d : The double value of Euler r degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_r_deg(double *euler_r_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_r_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as degree if the unit is in radians */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_DEG) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_DEG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw r data*/ + com_rslt += bno055_read_euler_r(®_euler_r_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler r to degree */ + data_d = (double)(reg_euler_r_s16 / BNO055_EULER_DIV_DEG); + *euler_r_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler r raw data + * to radians output as double + * + * @param euler_r_d : The double value of Euler r radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_r_rad(double *euler_r_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_r_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as radians if the unit is in degree */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_RAD) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_RAD); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw r data*/ + com_rslt += bno055_read_euler_r(®_euler_r_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler r to radians */ + data_d = (double)(reg_euler_r_s16 / BNO055_EULER_DIV_RAD); + *euler_r_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler p raw data + * to degree output as double + * + * @param euler_p_d : The double value of Euler p degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_p_deg(double *euler_p_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_p_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as degree if the unit is in radians */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_DEG) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_DEG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw p data*/ + com_rslt += bno055_read_euler_p(®_euler_p_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler p to degree*/ + data_d = (double)(reg_euler_p_s16 / BNO055_EULER_DIV_DEG); + *euler_p_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler p raw data + * to radians output as double + * + * @param euler_p_d : The double value of Euler p radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_p_rad(double *euler_p_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_euler_p_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as radians if the unit is in degree */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_RAD) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_RAD); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw p data*/ + com_rslt += bno055_read_euler_p(®_euler_p_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw p to radians*/ + data_d = (double)(reg_euler_p_s16 / BNO055_EULER_DIV_RAD); + *euler_p_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler hpr raw data + * to degree output as double + * + * @param euler_hpr : The degree data of Euler hpr + * + * Parameter | result + * --------- | ----------------- + * h | degree data of Euler + * r | degree data of Euler + * p | degree data of Euler + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_hpr_deg(struct bno055_euler_double_t *euler_hpr) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_euler_t reg_euler = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as degree if the unit is in radians */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_DEG) + { + com_rslt += bno055_set_euler_unit(BNO055_EULER_UNIT_DEG); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read Euler raw h data*/ + com_rslt += bno055_read_euler_hrp(®_euler); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler hrp to degree*/ + euler_hpr->h = (double)(reg_euler.h / BNO055_EULER_DIV_DEG); + euler_hpr->p = (double)(reg_euler.p / BNO055_EULER_DIV_DEG); + euler_hpr->r = (double)(reg_euler.r / BNO055_EULER_DIV_DEG); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the Euler hpr raw data + * to radians output as double + * + * @param euler_hpr : The radians data of Euler hpr + * + * Parameter | result + * --------- | ----------------- + * h | radians data of Euler + * r | radians data of Euler + * p | radians data of Euler + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_hpr_rad(struct bno055_euler_double_t *euler_hpr) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_euler_t reg_euler = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + u8 euler_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current Euler unit and set the + * unit as radians if the unit is in degree */ + com_rslt = bno055_get_euler_unit(&euler_unit_u8); + if (euler_unit_u8 != BNO055_EULER_UNIT_RAD) + { + com_rslt = bno055_set_euler_unit(BNO055_EULER_UNIT_RAD); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the raw hrp */ + com_rslt = bno055_read_euler_hrp(®_euler); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw Euler hrp to radians*/ + euler_hpr->h = (double)(reg_euler.h / BNO055_EULER_DIV_RAD); + euler_hpr->p = (double)(reg_euler.p / BNO055_EULER_DIV_RAD); + euler_hpr->r = (double)(reg_euler.r / BNO055_EULER_DIV_RAD); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the linear + * accel x raw data to meterpersecseq output as double + * + * @param linear_accel_x_d : The double value of + * linear accel x meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_linear_accel_x_msq(double *linear_accel_x_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_linear_accel_x_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + + /* Read the raw x of linear accel */ + com_rslt = bno055_read_linear_accel_x(®_linear_accel_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw x to m/s2 */ + data_d = (double)(reg_linear_accel_x_s16 / BNO055_LINEAR_ACCEL_DIV_MSQ); + *linear_accel_x_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the linear + * accel y raw data to meterpersecseq output as double + * + * @param linear_accel_y_d : The double value of + * linear accel y meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_linear_accel_y_msq(double *linear_accel_y_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_linear_accel_y_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + + /* Read the raw x of linear accel */ + com_rslt = bno055_read_linear_accel_y(®_linear_accel_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw y to m/s2 */ + data_d = (double)(reg_linear_accel_y_s16 / BNO055_LINEAR_ACCEL_DIV_MSQ); + *linear_accel_y_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the linear + * accel z raw data to meterpersecseq output as double + * + * @param linear_accel_z_d : The double value of + * linear accel z meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_linear_accel_z_msq(double *linear_accel_z_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_linear_accel_z_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + + /* Read the raw x of linear accel */ + com_rslt = bno055_read_linear_accel_z(®_linear_accel_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw z to m/s2 */ + data_d = (double)(reg_linear_accel_z_s16 / BNO055_LINEAR_ACCEL_DIV_MSQ); + *linear_accel_z_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the linear accel xyz raw data + * to meterpersecseq output as double + * + * @param linear_accel_xyz : The meterpersecseq data of linear accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of linear accel + * y | meterpersecseq data of linear accel + * z | meterpersecseq data of linear accel + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_linear_accel_xyz_msq( + struct bno055_linear_accel_double_t *linear_accel_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_linear_accel_t reg_linear_accel_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + + /* Read the raw xyz of linear accel */ + com_rslt = bno055_read_linear_accel_xyz(®_linear_accel_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert the raw xyz of linear accel to m/s2 */ + linear_accel_xyz->x = (double)(reg_linear_accel_xyz.x / BNO055_LINEAR_ACCEL_DIV_MSQ); + linear_accel_xyz->y = (double)(reg_linear_accel_xyz.y / BNO055_LINEAR_ACCEL_DIV_MSQ); + linear_accel_xyz->z = (double)(reg_linear_accel_xyz.z / BNO055_LINEAR_ACCEL_DIV_MSQ); + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gravity + * x raw data to meterpersecseq output as double + * + * @param gravity_x_d : The double value of gravity x meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_double_x_msq(double *gravity_x_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gravity_x_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + + /* Read raw gravity of x*/ + com_rslt = bno055_read_gravity_x(®_gravity_x_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw gravity of x to m/s2 */ + data_d = (double)(reg_gravity_x_s16 / BNO055_GRAVITY_DIV_MSQ); + *gravity_x_d = data_d; + } + else + { + com_rslt = BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gravity + * y raw data to meterpersecseq output as double + * + * @param gravity_y_d : The double value of gravity y meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_double_y_msq(double *gravity_y_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gravity_y_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + + /* Read raw gravity of y */ + com_rslt = bno055_read_gravity_y(®_gravity_y_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* convert raw gravity of y to m/s2 */ + data_d = (double)(reg_gravity_y_s16 / BNO055_GRAVITY_DIV_MSQ); + *gravity_y_d = data_d; + } + else + { + com_rslt += BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gravity + * z raw data to meterpersecseq output as double + * + * @param gravity_z_d : The double value of gravity z meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_double_z_msq(double *gravity_z_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s16 reg_gravity_z_s16 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + + /* Read raw gravity of z */ + com_rslt = bno055_read_gravity_z(®_gravity_z_s16); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw gravity of z to m/s2 */ + data_d = (double)(reg_gravity_z_s16 / BNO055_GRAVITY_DIV_MSQ); + *gravity_z_d = data_d; + } + else + { + com_rslt += BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the gravity xyz raw data + * to meterpersecseq output as double + * + * @param gravity_xyz : The meterpersecseq data of gravity xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of gravity + * y | meterpersecseq data of gravity + * z | meterpersecseq data of gravity + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gravity_xyz_msq(struct bno055_gravity_double_t *gravity_xyz) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + struct bno055_gravity_t reg_gravity_xyz = { BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE }; + + /* Read raw gravity of xyz */ + com_rslt = bno055_read_gravity_xyz(®_gravity_xyz); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw gravity of xyz to m/s2 */ + gravity_xyz->x = (double)(reg_gravity_xyz.x / BNO055_GRAVITY_DIV_MSQ); + gravity_xyz->y = (double)(reg_gravity_xyz.y / BNO055_GRAVITY_DIV_MSQ); + gravity_xyz->z = (double)(reg_gravity_xyz.z / BNO055_GRAVITY_DIV_MSQ); + } + else + { + com_rslt += BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the temperature + * data to Fahrenheit output as double + * + * @param temp_d : The double value of temperature Fahrenheit + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_temp_fahrenheit(double *temp_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s8 reg_temp_s8 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 temp_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current temperature unit and set the + * unit as Fahrenheit if the unit is in Celsius */ + com_rslt = bno055_get_temp_unit(&temp_unit_u8); + if (temp_unit_u8 != BNO055_TEMP_UNIT_FAHRENHEIT) + { + com_rslt += bno055_set_temp_unit(BNO055_TEMP_UNIT_FAHRENHEIT); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the raw temperature data */ + com_rslt += bno055_read_temp_data(®_temp_s8); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw temperature data to Fahrenheit*/ + data_d = (double)(reg_temp_s8 / BNO055_TEMP_DIV_FAHRENHEIT); + *temp_d = data_d; + } + else + { + com_rslt += BNO055_ERROR; + } + } + else + { + com_rslt += BNO055_ERROR; + } + + return com_rslt; +} + +/*! + * @brief This API is used to convert the temperature + * data to Celsius output as double + * + * @param temp_d : The double value of temperature Celsius + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_temp_celsius(double *temp_d) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + s8 reg_temp_s8 = BNO055_INIT_VALUE; + double data_d = BNO055_INIT_VALUE; + u8 temp_unit_u8 = BNO055_INIT_VALUE; + + /* Read the current temperature unit and set the + * unit as Fahrenheit if the unit is in Celsius */ + com_rslt = bno055_get_temp_unit(&temp_unit_u8); + if (temp_unit_u8 != BNO055_TEMP_UNIT_CELSIUS) + { + com_rslt += bno055_set_temp_unit(BNO055_TEMP_UNIT_CELSIUS); + } + if (com_rslt == BNO055_SUCCESS) + { + /* Read the raw temperature data */ + com_rslt += bno055_read_temp_data(®_temp_s8); + if (com_rslt == BNO055_SUCCESS) + { + /* Convert raw temperature data to Fahrenheit*/ + data_d = (double)(reg_temp_s8 / BNO055_TEMP_DIV_CELSIUS); + *temp_d = data_d; + } + else + { + com_rslt += BNO055_ERROR; + } + } + else + { + com_rslt += BNO055_ERROR; + } + + return com_rslt; +} +#endif + +/*! + * @brief This API used to read + * mag calibration status from register from 0x35 bit 0 and 1 + * + * @param mag_calib_u8 : The value of mag calib status + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_calib_stat(u8 *mag_calib_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, mag calib + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the mag calib stat_s8 */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_CALIB_STAT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *mag_calib_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_MAG_CALIB_STAT); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read + * accel calibration status from register from 0x35 bit 2 and 3 + * + * @param accel_calib_u8 : The value of accel calib status + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_calib_stat(u8 *accel_calib_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty*/ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel calib + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the accel calib stat_s8 */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_CALIB_STAT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_calib_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_CALIB_STAT); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read + * gyro calibration status from register from 0x35 bit 4 and 5 + * + * @param gyro_calib_u8 : The value of gyro calib status + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_calib_stat(u8 *gyro_calib_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro calib + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the gyro calib status */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_CALIB_STAT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_calib_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_CALIB_STAT); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read + * system calibration status from register from 0x35 bit 6 and 7 + * + * @param sys_calib_u8 : The value of system calib status + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_sys_calib_stat(u8 *sys_calib_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty*/ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page,system calib + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the system calib */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SYS_CALIB_STAT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *sys_calib_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_SYS_CALIB_STAT); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read + * self test of accel from register from 0x36 bit 0 + * + * @param selftest_accel_u8 : The value of self test of accel + * + * selftest_accel_u8 | result + * -------------------- | --------------------- + * 0x00 | indicates test failed + * 0x01 | indicated test passed + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_selftest_accel(u8 *selftest_accel_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel self test is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the accel self test */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SELFTEST_ACCEL_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *selftest_accel_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_SELFTEST_ACCEL); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read + * self test of mag from register from 0x36 bit 1 + * + * @param selftest_mag_u8 : The value of self test of mag + * + * selftest_mag_u8 | result + * -------------------- | --------------------- + * 0x00 | indicates test failed + * 0x01 | indicated test passed + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_selftest_mag(u8 *selftest_mag_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, self test of mag is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the mag self test */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SELFTEST_MAG_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *selftest_mag_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_SELFTEST_MAG); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read + * self test of gyro from register from 0x36 bit 2 + * + * @param selftest_gyro_u8 : The value of self test of gyro + * + * selftest_gyro_u8 | result + * -------------------- | --------------------- + * 0x00 | indicates test failed + * 0x01 | indicated test passed + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_selftest_gyro(u8 *selftest_gyro_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page self test of gyro is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the gyro self test */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SELFTEST_GYRO_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *selftest_gyro_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_SELFTEST_GYRO); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read + * self test of micro controller from register from 0x36 bit 3 + * + * @param selftest_mcu_u8 : The value of self test of micro controller + * + * selftest_mcu_u8 | result + * -------------------- | --------------------- + * 0x00 | indicates test failed + * 0x01 | indicated test passed + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_selftest_mcu(u8 *selftest_mcu_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page self test of micro controller + * is available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the self test of micro controller*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SELFTEST_MCU_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *selftest_mcu_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_SELFTEST_MCU); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the stat_s8 of + * gyro anymotion interrupt from register from 0x37 bit 2 + * + * @param gyro_any_motion_u8 : The value of gyro anymotion interrupt + * + * gyro_any_motion_u8 | result + * -------------------- | --------------------- + * 0x00 | indicates no interrupt triggered + * 0x01 | indicates interrupt triggered + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro anymotion interrupt can be BNO055_BIT_ENABLE + * by the following APIs + * + * bno055_set_intr_mask_gyro_any_motion() + * + * bno055_set_intr_gyro_any_motion() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_stat_gyro_any_motion(u8 *gyro_any_motion_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro anymotion interrupt + * status is available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the gyro anymotion interrupt stat_s8*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_INTR_STAT_GYRO_ANY_MOTION_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_any_motion_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_INTR_STAT_GYRO_ANY_MOTION); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the stat_s8 of + * gyro highrate interrupt from register from 0x37 bit 3 + * + * @param gyro_highrate_u8 : The value of gyro highrate interrupt + * + * gyro_highrate_u8 | result + * ------------------- | --------------------- + * 0x00 | indicates no interrupt triggered + * 0x01 | indicates interrupt triggered + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate interrupt can be configured + * by the following APIs + * + * bno055_set_intr_mask_gyro_highrate() + * + * bno055_set_intr_gyro_highrate() + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_stat_gyro_highrate(u8 *gyro_highrate_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the gyro highrate interrupt stat_s8*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_INTR_STAT_GYRO_HIGHRATE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_INTR_STAT_GYRO_HIGHRATE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the stat_s8 of + * accel highg interrupt from register from 0x37 bit 5 + * + * @param accel_high_g_u8 : The value of accel highg interrupt + * + * accel_high_g_u8 | result + * ------------------- | --------------------- + * 0x00 | indicates no interrupt triggered + * 0x01 | indicates interrupt triggered + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel highg interrupt can be configured + * by the following APIs + * + * bno055_set_intr_mask_accel_high_g() + * + * bno055_set_intr_accel_high_g() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_stat_accel_high_g(u8 *accel_high_g_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel highg is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the accel highg interrupt stat_s8 */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_INTR_STAT_ACCEL_HIGH_G_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_high_g_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_INTR_STAT_ACCEL_HIGH_G); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the stat_s8 of + * accel anymotion interrupt from register from 0x37 bit 6 + * + * @param accel_any_motion_u8 : The value of accel anymotion interrupt + * + * accel_any_motion_u8 | result + * ------------------- | --------------------- + * 0x00 | indicates no interrupt triggered + * 0x01 | indicates interrupt triggered + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel anymotion interrupt can be configured + * by the following APIs + * + * bno055_set_intr_mask_accel_any_motion() + * + * bno055_set_intr_accel_any_motion() + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_stat_accel_any_motion(u8 *accel_any_motion_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel anymotion is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the accel anymotion interrupt stat_s8 */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_INTR_STAT_ACCEL_ANY_MOTION_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_any_motion_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_INTR_STAT_ACCEL_ANY_MOTION); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the stat_s8 of + * accel nomotion/slowmotion interrupt from register from 0x37 bit 6 + * + * @param accel_no_motion_u8 : The value of accel + * nomotion/slowmotion interrupt + * + * accel_no_motion_u8 | result + * ------------------- | --------------------- + * 0x00 | indicates no interrupt triggered + * 0x01 | indicates interrupt triggered + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel nomotion/slowmotion interrupt can be configured + * by the following APIs + * + * bno055_set_intr_mask_accel_nomotion() + * + * bno055_set_intr_accel_nomotion() + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_stat_accel_no_motion(u8 *accel_no_motion_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel + * nomotion/slowmotion interrupt + * is available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the stat_s8 of accel + * nomotion/slowmotion interrupt*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_INTR_STAT_ACCEL_NO_MOTION_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_no_motion_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_INTR_STAT_ACCEL_NO_MOTION); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API is used to read status of main clock + * from the register 0x38 bit 0 + * + * @param stat_main_clk_u8 : the status of main clock + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_stat_main_clk(u8 *stat_main_clk_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, status of main clk is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the status of main clk */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SYS_MAIN_CLK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *stat_main_clk_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_SYS_MAIN_CLK); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API is used to read system status + * code from the register 0x39 it is a byte of data + * + * @param sys_stat_u8 : the status of system + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_sys_stat_code(u8 *sys_stat_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, the status of system is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the the status of system*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SYS_STAT_CODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *sys_stat_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_SYS_STAT_CODE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API is used to read system BNO055_ERROR + * code from the register 0x3A it is a byte of data + * + * @param sys_error_u8 : The value of system BNO055_ERROR code + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_sys_error_code(u8 *sys_error_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, system BNO055_ERROR code is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the system BNO055_ERROR code*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SYS_ERROR_CODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *sys_error_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_SYS_ERROR_CODE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel unit + * from register from 0x3B bit 0 + * + * @param accel_unit_u8 : The value of accel unit + * + * accel_unit_u8 | result + * ------------- | --------------- + * 0x00 | BNO055_ACCEL_UNIT_MSQ + * 0x01 | BNO055_ACCEL_UNIT_MG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_unit(u8 *accel_unit_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel unit is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the accel unit */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_unit_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_UNIT); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel unit + * from register from 0x3B bit 0 + * + * @param accel_unit_u8 : The value of accel unit + * + * accel_unit_u8 | result + * ------------- | --------------- + * 0x00 | BNO055_ACCEL_UNIT_MSQ + * 0x01 | BNO055_ACCEL_UNIT_MG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_unit(u8 accel_unit_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the accel unit */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_UNIT, accel_unit_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro unit + * from register from 0x3B bit 1 + * + * @param gyro_unit_u8 : The value of accel unit + * + * gyro_unit_u8 | result + * ------------- | ----------- + * 0x00 | BNO055_GYRO_UNIT_DPS + * 0x01 | BNO055_GYRO_UNIT_RPS + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_unit(u8 *gyro_unit_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro unit is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the gyro unit */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_unit_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_UNIT); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro unit + * from register from 0x3B bit 1 + * + * @param gyro_unit_u8 : The value of accel unit + * + * gyro_unit_u8 | result + * ------------- | ----------- + * 0x00 | BNO055_GYRO_UNIT_DPS + * 0x01 | BNO055_GYRO_UNIT_RPS + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_unit(u8 gyro_unit_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the gyro unit */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_UNIT, gyro_unit_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the Euler unit + * from register from 0x3B bit 2 + * + * @param euler_unit_u8 : The value of accel unit + * + * euler_unit_u8 | result + * -------------- | ----------- + * 0x00 | BNO055_EULER_UNIT_DEG + * 0x01 | BNO055_EULER_UNIT_RAD + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_euler_unit(u8 *euler_unit_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, Euler unit is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the Euler unit */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_EULER_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *euler_unit_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_EULER_UNIT); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the Euler unit + * from register from 0x3B bit 2 + * + * @param euler_unit_u8 : The value of Euler unit + * + * euler_unit_u8 | result + * -------------- | ----------- + * 0x00 | BNO055_EULER_UNIT_DEG + * 0x01 | BNO055_EULER_UNIT_RAD + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_euler_unit(u8 euler_unit_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the Euler unit*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_EULER_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_EULER_UNIT, euler_unit_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_EULER_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to write the tilt unit + * from register from 0x3B bit 3 + * + * @param tilt_unit_u8 : The value of tilt unit + * + * tilt_unit_u8 | result + * --------------- | --------- + * 0x00 | degrees + * 0x01 | radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_tilt_unit(u8 *tilt_unit_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, chip id is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_TILT_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *tilt_unit_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_TILT_UNIT); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the tilt unit + * from register from 0x3B bit 3 + * + * @param tilt_unit_u8 : The value of tilt unit + * + * tilt_unit_u8 | result + * --------------- | --------- + * 0x00 | degrees + * 0x01 | radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + * \return Communication results + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_tilt_unit(u8 tilt_unit_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_TILT_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_TILT_UNIT, tilt_unit_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_TILT_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the temperature unit + * from register from 0x3B bit 4 + * + * @param temp_unit_u8 : The value of temperature unit + * + * temp_unit_u8 | result + * ----------- | -------------- + * 0x00 | BNO055_TEMP_UNIT_CELSIUS + * 0x01 | BNO055_TEMP_UNIT_FAHRENHEIT + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_temp_unit(u8 *temp_unit_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, temperature unit is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the temperature unit */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_TEMP_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *temp_unit_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_TEMP_UNIT); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the temperature unit + * from register from 0x3B bit 4 + * + * @param temp_unit_u8 : The value of temperature unit + * + * temp_unit_u8 | result + * ----------- | -------------- + * 0x00 | BNO055_TEMP_UNIT_CELSIUS + * 0x01 | BNO055_TEMP_UNIT_FAHRENHEIT + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_temp_unit(u8 temp_unit_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the temperature unit */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_TEMP_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_TEMP_UNIT, temp_unit_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_TEMP_UNIT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the current selected orientation mode + * from register from 0x3B bit 7 + * + * @param data_output_format_u8 : The value of data output format + * + * data_output_format_u8 | result + * -------------------- | -------- + * 0x00 | Windows + * 0x01 | Android + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_data_output_format(u8 *data_output_format_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, data output format is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the data output format */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_DATA_OUTPUT_FORMAT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_output_format_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_DATA_OUTPUT_FORMAT); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the current selected orientation mode + * from register from 0x3B bit 7 + * + * @param data_output_format_u8 : The value of data output format + * + * data_output_format_u8 | result + * -------------------- | -------- + * 0x00 | Windows + * 0x01 | Android + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_data_output_format(u8 data_output_format_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the data output format */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_DATA_OUTPUT_FORMAT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_DATA_OUTPUT_FORMAT, data_output_format_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_DATA_OUTPUT_FORMAT_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! @brief This API used to read the operation mode + * from register from 0x3D bit 0 to 3 + * + * @param operation_mode_u8 : The value of operation mode + * + * operation_mode_u8 | result | comments + * ----------|----------------------------|---------------------------- + * 0x00 | BNO055_OPERATION_MODE_CONFIG | Configuration mode + * 0x01 | BNO055_OPERATION_MODE_ACCONLY | Reads accel data alone + * 0x02 | BNO055_OPERATION_MODE_MAGONLY | Reads mag data alone + * 0x03 | BNO055_OPERATION_MODE_GYRONLY | Reads gyro data alone + * 0x04 | BNO055_OPERATION_MODE_ACCMAG | Reads accel and mag data + * 0x05 | BNO055_OPERATION_MODE_ACCGYRO | Reads accel and gyro data + * 0x06 | BNO055_OPERATION_MODE_MAGGYRO | Reads accel and mag data + * 0x07 | OPERATION_MODE_ANY_MOTION | Reads accel mag and gyro data + * 0x08 | BNO055_OPERATION_MODE_IMUPLUS | Inertial measurement unit + * - | - | Reads accel,gyro and fusion data + * 0x09 | BNO055_OPERATION_MODE_COMPASS | Reads accel, mag data + * - | - | and fusion data + * 0x0A | BNO055_OPERATION_MODE_M4G | Reads accel, mag data + * - | - | and fusion data + * 0x0B | BNO055_OPERATION_MODE_NDOF_FMC_OFF| Nine degrees of freedom with + * - | - | fast magnetic calibration + * - | - | Reads accel,mag, gyro + * - | - | and fusion data + * 0x0C | BNO055_OPERATION_MODE_NDOF | Nine degrees of freedom + * - | - | Reads accel,mag, gyro + * - | - | and fusion data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note In the config mode, all sensor and fusion data + * becomes zero and it is mainly derived + * to configure the various settings of the BNO + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_operation_mode(u8 *operation_mode_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, operation mode is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of operation mode*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_OPERATION_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *operation_mode_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_OPERATION_MODE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! @brief This API used to write the operation mode + * from register from 0x3D bit 0 to 3 + * + * @param operation_mode_u8 : The value of operation mode + * + * operation_mode_u8 | result | comments + * ---------|-----------------------------------|-------------------------- + * 0x00 | BNO055_OPERATION_MODE_CONFIG | Configuration mode + * 0x01 | BNO055_OPERATION_MODE_ACCONLY | Reads accel data alone + * 0x02 | BNO055_OPERATION_MODE_MAGONLY | Reads mag data alone + * 0x03 | BNO055_OPERATION_MODE_GYRONLY | Reads gyro data alone + * 0x04 | BNO055_OPERATION_MODE_ACCMAG | Reads accel and mag data + * 0x05 | BNO055_OPERATION_MODE_ACCGYRO | Reads accel and gyro data + * 0x06 | BNO055_OPERATION_MODE_MAGGYRO | Reads accel and mag data + * 0x07 | OPERATION_MODE_ANY_MOTION | Reads accel mag and + * | - | gyro data + * 0x08 | BNO055_OPERATION_MODE_IMUPLUS | Inertial measurement unit + * - | | Reads accel,gyro and + * | - | fusion data + * 0x09 | BNO055_OPERATION_MODE_COMPASS | Reads accel, mag data + * - | - | and fusion data + * 0x0A | BNO055_OPERATION_MODE_M4G | Reads accel, mag data + * - | - | and fusion data + * 0x0B | BNO055_OPERATION_MODE_NDOF_FMC_OFF| Nine degrees of freedom with + * - | - | fast magnetic calibration + * - | - | Reads accel,mag, gyro + * - | - | and fusion data + * 0x0C | BNO055_OPERATION_MODE_NDOF | Nine degrees of freedom + * - | - | Reads accel,mag, gyro + * - | - | and fusion data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note In the config mode, all sensor and fusion data + * becomes zero and it is mainly derived + * to configure the various settings of the BNO + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_operation_mode(u8 operation_mode_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + /* If the previous operation mode is config it is + * directly write the operation mode */ + if (prev_opmode_u8 == BNO055_OPERATION_MODE_CONFIG) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_OPERATION_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_OPERATION_MODE, operation_mode_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_OPERATION_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + + /* Config mode to other + * operation mode switching + * required delay of 600ms*/ + p_bno055->delay_msec(BNO055_MODE_SWITCHING_DELAY); + } + } + else + { + /* If the previous operation + * mode is not config it is + * write the config mode */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_OPERATION_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_OPERATION_MODE, BNO055_OPERATION_MODE_CONFIG); + com_rslt += + bno055_write_register(BNO055_OPERATION_MODE_REG, &data_u8r, BNO055_GEN_READ_WRITE_LENGTH); + + /* other mode to config mode switching + * required delay of 20ms*/ + p_bno055->delay_msec(BNO055_CONFIG_MODE_SWITCHING_DELAY); + } + + /* Write the operation mode */ + if (operation_mode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_OPERATION_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_OPERATION_MODE, operation_mode_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_OPERATION_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + + /* Config mode to other + * operation mode switching + * required delay of 600ms*/ + p_bno055->delay_msec(BNO055_MODE_SWITCHING_DELAY); + } + } + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! @brief This API used to read the power mode + * from register from 0x3E bit 0 to 1 + * + * @param power_mode_u8 : The value of power mode + * + * power_mode_u8| result | comments + * ---------|---------------------------|------------------------------------- + * 0x00 |BNO055_POWER_MODE_NORMAL | In the NORMAL mode the register + * - | - | map and the internal peripherals + * - | - | of the MCU are always + * - | - | operative in this mode + * 0x01 |BNO055_POWER_MODE_LOWPOWER | This is first level of power + * | - | saving mode + * 0x02 |BNO055_POWER_MODE_SUSPEND | In suspend mode the system is + * - | - | paused and all the sensors and + * - | - | the micro controller are + * - | - | put into sleep mode. + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note For detailed about LOWPOWER mode + * refer data sheet 3.4.2 + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_power_mode(u8 *power_mode_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, power mode is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of power mode */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *power_mode_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_POWER_MODE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! @brief This API used to write the power mode + * from register from 0x3E bit 0 to 1 + * + * @param power_mode_u8 : The value of power mode + * + * + * power_mode_u8| result | comments + * -------|----------------------------|--------------------------------- + * 0x00 | BNO055_POWER_MODE_NORMAL | In the NORMAL mode the register + * - | - | map and the internal peripherals + * - | - | of the MCU are always + * - | - | operative in this mode + * 0x01 | BNO055_POWER_MODE_LOWPOWER | This is first level of power + * | - | saving mode + * 0x02 | BNO055_POWER_MODE_SUSPEND | In suspend mode the system is + * - | - | paused and all the sensors and + * - | - | the micro controller are + * - | - | put into sleep mode. + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note For detailed about LOWPOWER mode + * refer data sheet 3.4.2 + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_power_mode(u8 power_mode_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the value of power mode */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_POWER_MODE, power_mode_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the reset interrupt + * from register from 0x3F bit 6 + * It resets all the interrupt bit and interrupt output + * + * @param intr_rst_u8 : The value of reset interrupt + * + * intr_rst_u8 | result + * ------------ |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_rst(u8 *intr_rst_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, reset interrupt is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of reset interrupt*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_INTR_RST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *intr_rst_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_INTR_RST); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the reset interrupt + * from register from 0x3F bit 6 + * It resets all the interrupt bit and interrupt output + * + * @param intr_rst_u8 : The value of reset interrupt + * + * intr_rst_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_rst(u8 intr_rst_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, reset interrupt + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Write the value of reset interrupt */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_INTR_RST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_INTR_RST, intr_rst_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_INTR_RST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the clk source + * from register from 0x3F bit 7 + * + * @param clk_src_u8 : The value of clk source + * + * clk_src_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_clk_src(u8 *clk_src_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, clk source is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of clk source */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_CLK_SRC_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *clk_src_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_CLK_SRC); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the clk source + * from register from 0x3F bit 7 + * + * @param clk_src_u8 : The value of clk source + * + * clk_src_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_clk_src(u8 clk_src_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, clk source is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Write the value of clk source */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_CLK_SRC_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_CLK_SRC, clk_src_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_CLK_SRC_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the reset system + * from register from 0x3F bit 5 + * + * @param sys_rst_u8 : The value of reset system + * + * sys_rst_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note It resets the whole system + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_sys_rst(u8 *sys_rst_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, reset system is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of reset system */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SYS_RST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *sys_rst_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_SYS_RST); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the reset system + * from register from 0x3F bit 5 + * + * @param sys_rst_u8 : The value of reset system + * + * sys_rst_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note It resets the whole system + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_sys_rst(u8 sys_rst_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, reset system is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Write the value of reset system */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SYS_RST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_SYS_RST, sys_rst_u8); + com_rslt = p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SYS_RST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the self test + * from register from 0x3F bit 0 + * + * @param selftest_u8 : The value of self test + * + * selftest_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note It triggers the self test + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_selftest(u8 *selftest_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, self test is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of self test */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SELFTEST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *selftest_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_SELFTEST); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the self test + * from register from 0x3F bit 0 + * + * @param selftest_u8 : The value of self test + * + * selftest_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note It triggers the self test + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_selftest(u8 selftest_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the value of self test */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SELFTEST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_SELFTEST, selftest_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SELFTEST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the temperature source + * from register from 0x40 bit 0 and 1 + * + * @param temp_source_u8 : The value of selected temperature source + * + * temp_source_u8 | result + * ---------------- |--------------- + * 0x00 | BNO055_ACCEL_TEMP_EN + * 0X01 | BNO055_GYRO_TEMP_EN + * 0X03 | BNO055_MCU_TEMP_EN + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_temp_source(u8 *temp_source_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, temperature source is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of temperature source */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_TEMP_SOURCE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *temp_source_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_TEMP_SOURCE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the temperature source + * from register from 0x40 bit 0 and 1 + * + * @param temp_source_u8 : The value of selected temperature source + * + * temp_source_u8 | result + * ---------------- |--------------- + * 0x00 | BNO055_ACCEL_TEMP_EN + * 0X01 | BNO055_GYRO_TEMP_EN + * 0X03 | BNO055_MCU_TEMP_EN + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_temp_source(u8 temp_source_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the value of temperature source*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_TEMP_SOURCE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_TEMP_SOURCE, temp_source_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_TEMP_SOURCE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the axis remap value + * from register from 0x41 bit 0 and 5 + * + * @param remap_axis_u8 : The value of axis remapping + * + * remap_axis_u8 | result | comments + * ------------|-------------------|------------ + * 0X21 | BNO055_REMAP_X_Y | Z=Z;X=Y;Y=X + * 0X18 | BNO055_REMAP_Y_Z | X=X;Y=Z;Z=Y + * 0X06 | BNO055_REMAP_Z_X | Y=Y;X=Z;Z=X + * 0X12 | BNO055_REMAP_X_Y_Z_TYPE0 | X=Z;Y=X;Z=Y + * 0X09 | BNO055_REMAP_X_Y_Z_TYPE1 | X=Y;Y=Z;Z=X + * 0X24 | BNO055_DEFAULT_AXIS | X=X;Y=Y;Z=Z + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note : For axis sign remap refer the following APIs + * x-axis : + * + * bno055_set_x_remap_sign() + * + * y-axis : + * + * bno055_set_y_remap_sign() + * + * z-axis : + * + * bno055_set_z_remap_sign() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_axis_remap_value(u8 *remap_axis_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, axis remap is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of axis remap*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_REMAP_AXIS_VALUE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *remap_axis_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_REMAP_AXIS_VALUE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the axis remap value + * from register from 0x41 bit 0 and 5 + * + * @param remap_axis_u8 : The value of axis remapping + * + * remap_axis_u8 | result | comments + * ------------|-------------------|------------ + * 0X21 | BNO055_REMAP_X_Y | Z=Z;X=Y;Y=X + * 0X18 | BNO055_REMAP_Y_Z | X=X;Y=Z;Z=Y + * 0X06 | BNO055_REMAP_Z_X | Y=Y;X=Z;Z=X + * 0X12 | BNO055_REMAP_X_Y_Z_TYPE0 | X=Z;Y=X;Z=Y + * 0X09 | BNO055_REMAP_X_Y_Z_TYPE1 | X=Y;Y=Z;Z=X + * 0X24 | BNO055_DEFAULT_AXIS | X=X;Y=Y;Z=Z + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note : For axis sign remap refer the following APIs + * x-axis : + * + * bno055_set_x_remap_sign() + * + * y-axis : + * + * bno055_set_y_remap_sign() + * + * z-axis : + * + * bno055_set_z_remap_sign() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_axis_remap_value(u8 remap_axis_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + + /* Write the value of axis remap */ + if (stat_s8 == BNO055_SUCCESS) + { + switch (remap_axis_u8) + { + case BNO055_REMAP_X_Y: + case BNO055_REMAP_Y_Z: + case BNO055_REMAP_Z_X: + case BNO055_REMAP_X_Y_Z_TYPE0: + case BNO055_REMAP_X_Y_Z_TYPE1: + case BNO055_DEFAULT_AXIS: + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_REMAP_AXIS_VALUE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_REMAP_AXIS_VALUE, remap_axis_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_REMAP_AXIS_VALUE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + default: + + /* Write the default axis remap value */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_REMAP_AXIS_VALUE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_REMAP_AXIS_VALUE, BNO055_DEFAULT_AXIS); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_REMAP_AXIS_VALUE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the x-axis remap + * sign from register from 0x42 bit 2 + * + * @param remap_x_sign_u8 : The value of x-axis remap sign + * + * remap_x_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_remap_x_sign(u8 *remap_x_sign_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, x-axis remap sign is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of x-axis remap sign */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_REMAP_X_SIGN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *remap_x_sign_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_REMAP_X_SIGN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the x-axis remap + * sign from register from 0x42 bit 2 + * + * @param remap_x_sign_u8 : The value of x-axis remap sign + * + * remap_x_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_remap_x_sign(u8 remap_x_sign_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the value of x-axis remap */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_REMAP_X_SIGN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_REMAP_X_SIGN, remap_x_sign_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_REMAP_X_SIGN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the y-axis remap + * sign from register from 0x42 bit 1 + * + * @param remap_y_sign_u8 : The value of y-axis remap sign + * + * remap_y_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_remap_y_sign(u8 *remap_y_sign_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, y-axis remap sign is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of y-axis remap sign*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_REMAP_Y_SIGN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *remap_y_sign_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_REMAP_Y_SIGN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the y-axis remap + * sign from register from 0x42 bit 1 + * + * @param remap_y_sign_u8 : The value of y-axis remap sign + * + * remap_y_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_remap_y_sign(u8 remap_y_sign_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the value of y-axis remap sign*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_REMAP_Y_SIGN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_REMAP_Y_SIGN, remap_y_sign_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_REMAP_Y_SIGN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the z-axis remap + * sign from register from 0x42 bit 0 + * + * @param remap_z_sign_u8 : The value of z-axis remap sign + * + * remap_z_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_remap_z_sign(u8 *remap_z_sign_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, z-axis remap sign is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read the value of z-axis remap sign*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_REMAP_Z_SIGN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *remap_z_sign_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_REMAP_Z_SIGN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the z-axis remap + * sign from register from 0x42 bit 0 + * + * @param remap_z_sign_u8 : The value of z-axis remap sign + * + * remap_z_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_remap_z_sign(u8 remap_z_sign_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write the value of z-axis remap sign*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_REMAP_Z_SIGN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_REMAP_Z_SIGN, remap_z_sign_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_REMAP_Z_SIGN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API is used to read soft iron calibration matrix + * from the register 0x43 to 0x53 it is a 18 bytes of data + * + * @param sic_matrix : The value of soft iron calibration matrix + * + * sic_matrix | result + * --------------------|---------------------------------- + * sic_0 | soft iron calibration matrix zero + * sic_1 | soft iron calibration matrix one + * sic_2 | soft iron calibration matrix two + * sic_3 | soft iron calibration matrix three + * sic_4 | soft iron calibration matrix four + * sic_5 | soft iron calibration matrix five + * sic_6 | soft iron calibration matrix six + * sic_7 | soft iron calibration matrix seven + * sic_8 | soft iron calibration matrix eight + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note : Each soft iron calibration matrix range from -32768 to +32767 + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_sic_matrix(struct bno055_sic_matrix_t *sic_matrix) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the soft iron calibration matrix values + * data_u8[BNO055_SOFT_IRON_CALIB_0_LSB] - sic_0->LSB + * data_u8[BNO055_SOFT_IRON_CALIB_0_MSB] - sic_0->MSB + * data_u8[BNO055_SOFT_IRON_CALIB_1_LSB] - sic_1->LSB + * data_u8[BNO055_SOFT_IRON_CALIB_1_MSB] - sic_1->MSB + * data_u8[BNO055_SOFT_IRON_CALIB_2_LSB] - sic_2->LSB + * data_u8[BNO055_SOFT_IRON_CALIB_2_MSB] - sic_2->MSB + * data_u8[BNO055_SOFT_IRON_CALIB_3_LSB] - sic_3->LSB + * data_u8[BNO055_SOFT_IRON_CALIB_3_MSB] - sic_3->MSB + * data_u8[BNO055_SOFT_IRON_CALIB_4_LSB] - sic_4->LSB + * data_u8[BNO055_SOFT_IRON_CALIB_4_MSB] - sic_4->MSB + * data_u8[BNO055_SOFT_IRON_CALIB_5_LSB] - sic_5->LSB + * data_u8[BNO055_SOFT_IRON_CALIB_5_MSB] - sic_5->MSB + * data_u8[BNO055_SOFT_IRON_CALIB_6_LSB] - sic_6->LSB + * data_u8[BNO055_SOFT_IRON_CALIB_6_MSB] - sic_6->MSB + * data_u8[BNO055_SOFT_IRON_CALIB_7_LSB] - sic_7->LSB + * data_u8[BNO055_SOFT_IRON_CALIB_7_MSB] - sic_7->MSB + * data_u8[BNO055_SOFT_IRON_CALIB_8_LSB] - sic_8->LSB + * data_u8[BNO055_SOFT_IRON_CALIB_8_MSB] - sic_8->MSB + */ + u8 data_u8[BNO055_SOFT_IRON_CALIBRATION_MATRIX_SIZE] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, soft iron calibration matrix is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read soft iron calibration matrix value + * it is eighteen bytes of data */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_0_LSB_REG, + data_u8, + BNO055_SOFT_IRON_CALIBRATION_MATRIX_SIZE); + if (com_rslt == BNO055_SUCCESS) + { + /*soft iron calibration matrix zero*/ + data_u8[BNO055_SOFT_IRON_CALIB_0_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_0_LSB], + BNO055_SIC_MATRIX_0_LSB); + data_u8[BNO055_SOFT_IRON_CALIB_0_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_0_MSB], + BNO055_SIC_MATRIX_0_MSB); + sic_matrix->sic_0 = + (s16)((((s32)(s8)(data_u8[BNO055_SOFT_IRON_CALIB_0_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SOFT_IRON_CALIB_0_LSB])); + + /*soft iron calibration matrix one*/ + data_u8[BNO055_SOFT_IRON_CALIB_1_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_1_LSB], + BNO055_SIC_MATRIX_1_LSB); + data_u8[BNO055_SOFT_IRON_CALIB_1_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_1_MSB], + BNO055_SIC_MATRIX_1_MSB); + sic_matrix->sic_1 = + (s16)((((s32)(s8)(data_u8[BNO055_SOFT_IRON_CALIB_1_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SOFT_IRON_CALIB_1_LSB])); + + /*soft iron calibration matrix two*/ + data_u8[BNO055_SOFT_IRON_CALIB_2_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_2_LSB], + BNO055_SIC_MATRIX_2_LSB); + data_u8[BNO055_SOFT_IRON_CALIB_2_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_2_MSB], + BNO055_SIC_MATRIX_2_MSB); + sic_matrix->sic_2 = + (s16)((((s32)(s8)(data_u8[BNO055_SOFT_IRON_CALIB_2_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SOFT_IRON_CALIB_2_LSB])); + + /*soft iron calibration matrix three*/ + data_u8[BNO055_SOFT_IRON_CALIB_3_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_3_LSB], + BNO055_SIC_MATRIX_3_LSB); + data_u8[BNO055_SOFT_IRON_CALIB_3_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_3_MSB], + BNO055_SIC_MATRIX_3_LSB); + sic_matrix->sic_3 = + (s16)((((s32)(s8)(data_u8[BNO055_SOFT_IRON_CALIB_3_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SOFT_IRON_CALIB_3_LSB])); + + /*soft iron calibration matrix four*/ + data_u8[BNO055_SOFT_IRON_CALIB_4_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_4_LSB], + BNO055_SIC_MATRIX_4_LSB); + data_u8[BNO055_SOFT_IRON_CALIB_4_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_4_MSB], + BNO055_SIC_MATRIX_4_LSB); + sic_matrix->sic_4 = + (s16)((((s32)(s8)(data_u8[BNO055_SOFT_IRON_CALIB_4_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SOFT_IRON_CALIB_4_LSB])); + + /*soft iron calibration matrix five*/ + data_u8[BNO055_SOFT_IRON_CALIB_5_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_5_LSB], + BNO055_SIC_MATRIX_5_LSB); + data_u8[BNO055_SOFT_IRON_CALIB_5_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_5_MSB], + BNO055_SIC_MATRIX_5_LSB); + sic_matrix->sic_5 = + (s16)((((s32)(s8)(data_u8[BNO055_SOFT_IRON_CALIB_5_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SOFT_IRON_CALIB_5_LSB])); + + /*soft iron calibration matrix six*/ + data_u8[BNO055_SOFT_IRON_CALIB_6_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_6_LSB], + BNO055_SIC_MATRIX_6_LSB); + data_u8[BNO055_SOFT_IRON_CALIB_6_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_6_MSB], + BNO055_SIC_MATRIX_6_LSB); + sic_matrix->sic_6 = + (s16)((((s32)(s8)(data_u8[BNO055_SOFT_IRON_CALIB_6_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SOFT_IRON_CALIB_6_LSB])); + + /*soft iron calibration matrix seven*/ + data_u8[BNO055_SOFT_IRON_CALIB_7_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_7_LSB], + BNO055_SIC_MATRIX_7_LSB); + data_u8[BNO055_SOFT_IRON_CALIB_7_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_7_MSB], + BNO055_SIC_MATRIX_7_LSB); + sic_matrix->sic_7 = + (s16)((((s32)(s8)(data_u8[BNO055_SOFT_IRON_CALIB_7_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SOFT_IRON_CALIB_7_LSB])); + + /*soft iron calibration matrix eight*/ + data_u8[BNO055_SOFT_IRON_CALIB_8_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_8_LSB], + BNO055_SIC_MATRIX_8_LSB); + data_u8[BNO055_SOFT_IRON_CALIB_8_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SOFT_IRON_CALIB_8_MSB], + BNO055_SIC_MATRIX_8_LSB); + sic_matrix->sic_8 = + (s16)((((s32)(s8)(data_u8[BNO055_SOFT_IRON_CALIB_8_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SOFT_IRON_CALIB_8_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API is used to write soft iron calibration matrix + * from the register 0x43 to 0x53 it is a 18 bytes of data + * + * @param sic_matrix : The value of soft iron calibration matrix + * + * sic_matrix | result + * --------------------|---------------------------------- + * sic_0 | soft iron calibration matrix zero + * sic_1 | soft iron calibration matrix one + * sic_2 | soft iron calibration matrix two + * sic_3 | soft iron calibration matrix three + * sic_4 | soft iron calibration matrix four + * sic_5 | soft iron calibration matrix five + * sic_6 | soft iron calibration matrix six + * sic_7 | soft iron calibration matrix seven + * sic_8 | soft iron calibration matrix eight + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note : Each soft iron calibration matrix range from -32768 to +32767 + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_sic_matrix(struct bno055_sic_matrix_t *sic_matrix) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data1_u8r = BNO055_INIT_VALUE; + u8 data2_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* write soft iron calibration + * matrix zero value*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_0_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_0 & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_0_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_0_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_0_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_0 >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_0_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_0_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write soft iron calibration + * matrix one value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_1_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_1 & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_1_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_1_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_1_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_1 >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_1_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_1_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write soft iron calibration + * matrix two value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_2_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_2 & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_2_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_2_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_2_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_2 >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_2_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_2_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write soft iron calibration + * matrix three value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_3_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_3 & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_3_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_3_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_3_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_3 >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_3_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_3_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write soft iron calibration + * matrix four value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_4_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_4 & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_4_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_4_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_4_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_4 >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_4_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_4_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write soft iron calibration + * matrix five value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_5_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_5 & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_5_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_5_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_5_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_5 >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_5_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_5_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write soft iron calibration + * matrix six value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_6_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_6 & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_6_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_6_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_6_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_6 >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_6_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_6_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write soft iron calibration + * matrix seven value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_7_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_7 & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_7_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_7_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_7_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_7 >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_7_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_7_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write soft iron calibration + * matrix eight value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_8_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_8 & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_8_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_8_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_8_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(sic_matrix->sic_8 >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_SIC_MATRIX_8_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_SIC_MATRIX_8_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API is used to read accel offset and accel radius + * offset form register 0x55 to 0x5A and radius form 0x67 and 0x68 + * + * @param accel_offset : The value of accel offset and radius + * + * bno055_accel_offset_t | result + * ------------------- | ---------------- + * x | accel offset x + * y | accel offset y + * z | accel offset z + * r | accel offset r + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the accel offset varies based on + * the G-range of accel sensor. + * + * accel G range | offset range + * --------------- | -------------- + * BNO055_ACCEL_RANGE_2G | +/-2000 + * BNO055_ACCEL_RANGE_4G | +/-4000 + * BNO055_ACCEL_RANGE_8G | +/-8000 + * BNO055_ACCEL_RANGE_16G | +/-16000 + * + * accel G range can be configured by using the + * bno055_set_accel_range() API + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_offset(struct bno055_accel_offset_t *accel_offset) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the accel offset values + * data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB] - offset x->LSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB] - offset x->MSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB] - offset y->LSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB] - offset y->MSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB] - offset z->LSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB] - offset z->MSB + */ + u8 data_u8[BNO055_ACCEL_OFFSET_ARRAY] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel offset is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read accel offset value it is six bytes of data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_X_LSB_REG, + data_u8, + BNO055_ACCEL_OFFSET_ARRAY); + if (com_rslt == BNO055_SUCCESS) + { + /* Read accel x offset value*/ + data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB], + BNO055_ACCEL_OFFSET_X_LSB); + data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB], + BNO055_ACCEL_OFFSET_X_MSB); + accel_offset->x = + (s16)((((s32)(s8)(data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB])); + + /* Read accel y offset value*/ + data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB], + BNO055_ACCEL_OFFSET_Y_LSB); + data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB], + BNO055_ACCEL_OFFSET_Y_MSB); + accel_offset->y = + (s16)((((s32)(s8)(data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB])); + + /* Read accel z offset value*/ + data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB], + BNO055_ACCEL_OFFSET_Z_LSB); + data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB], + BNO055_ACCEL_OFFSET_Z_MSB); + accel_offset->z = + (s16)((((s32)(s8)(data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB])); + + /* Read accel radius value + * it is two bytes of data*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_RADIUS_LSB_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + + /* Array holding the accel radius values + * data_u8[BNO055_OFFSET_RADIUS_LSB] - radius->LSB + * data_u8[BNO055_OFFSET_RADIUS_MSB] - radius->MSB + */ + if (com_rslt == BNO055_SUCCESS) + { + data_u8[BNO055_OFFSET_RADIUS_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_OFFSET_RADIUS_LSB], + BNO055_ACCEL_RADIUS_LSB); + data_u8[BNO055_OFFSET_RADIUS_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_OFFSET_RADIUS_MSB], + BNO055_ACCEL_RADIUS_MSB); + accel_offset->r = + (s16)((((s32)(s8)(data_u8[BNO055_OFFSET_RADIUS_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_OFFSET_RADIUS_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API is used to write accel offset and accel radius + * offset form register 0x55 to 0x5A and radius form 0x67 and 0x68 + * + * @param accel_offset : The value of accel offset and radius + * + * bno055_accel_offset_t | result + * ------------------- | ---------------- + * x | accel offset x + * y | accel offset y + * z | accel offset z + * r | accel offset r + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the accel offset varies based on + * the G-range of accel sensor. + * + * accel G range | offset range + * --------------- | -------------- + * BNO055_ACCEL_RANGE_2G | +/-2000 + * BNO055_ACCEL_RANGE_4G | +/-4000 + * BNO055_ACCEL_RANGE_8G | +/-8000 + * BNO055_ACCEL_RANGE_16G | +/-16000 + * + * accel G range can be configured by using the + * bno055_set_accel_range() API + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_accel_offset(struct bno055_accel_offset_t *accel_offset) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data1_u8r = BNO055_INIT_VALUE; + u8 data2_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* write accel offset x value*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_X_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(accel_offset->x & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_ACCEL_OFFSET_X_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_X_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_X_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(accel_offset->x >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_ACCEL_OFFSET_X_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_X_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write accel offset y value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_Y_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(accel_offset->y & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_ACCEL_OFFSET_Y_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_Y_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_Y_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(accel_offset->y >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_ACCEL_OFFSET_Y_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_Y_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write accel offset z value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_Z_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(accel_offset->z & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_ACCEL_OFFSET_Z_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_Z_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_Z_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(accel_offset->z >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_ACCEL_OFFSET_Z_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_OFFSET_Z_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /*write accel radius value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_RADIUS_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(accel_offset->r & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_ACCEL_RADIUS_LSB, data1_u8r); + com_rslt = p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_RADIUS_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_RADIUS_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(accel_offset->r >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_ACCEL_RADIUS_MSB, data1_u8r); + com_rslt = p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_RADIUS_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API is used to read mag offset + * offset form register 0x69 to 0x6A + * + * @param mag_offset : The value of mag offset and radius + * + * bno055_mag_offset_t | result + * ------------------- | ---------------- + * x | mag offset x + * y | mag offset y + * z | mag offset z + * r | mag radius r + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the magnetometer offset is +/-6400 in LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_offset(struct bno055_mag_offset_t *mag_offset) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the mag offset values + * data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB] - offset x->LSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB] - offset x->MSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB] - offset y->LSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB] - offset y->MSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB] - offset z->LSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB] - offset z->MSB + */ + u8 data_u8[BNO055_MAG_OFFSET_ARRAY] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, mag offset is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read mag offset value it the six bytes of data */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_X_LSB_REG, + data_u8, + BNO055_MAG_OFFSET_ARRAY); + if (com_rslt == BNO055_SUCCESS) + { + /* Read mag x offset value*/ + data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB], + BNO055_MAG_OFFSET_X_LSB); + data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB], + BNO055_MAG_OFFSET_X_MSB); + mag_offset->x = + (s16)((((s32)(s8)(data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB])); + + /* Read mag y offset value*/ + data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB], + BNO055_MAG_OFFSET_Y_LSB); + data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB], + BNO055_MAG_OFFSET_Y_MSB); + mag_offset->y = + (s16)((((s32)(s8)(data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB])); + + /* Read mag z offset value*/ + data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB], + BNO055_MAG_OFFSET_Z_LSB); + data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB], + BNO055_MAG_OFFSET_Z_MSB); + mag_offset->z = + (s16)((((s32)(s8)(data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB])); + + /* Read mag radius value + * it the two bytes of data */ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_RADIUS_LSB_REG, + data_u8, + BNO055_LSB_MSB_READ_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Array holding the mag radius values + * data_u8[BNO055_OFFSET_RADIUS_LSB] - + * radius->LSB + * data_u8[BNO055_OFFSET_RADIUS_MSB] - + * radius->MSB + */ + data_u8[BNO055_OFFSET_RADIUS_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_OFFSET_RADIUS_LSB], + BNO055_MAG_RADIUS_LSB); + data_u8[BNO055_OFFSET_RADIUS_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_OFFSET_RADIUS_MSB], + BNO055_MAG_RADIUS_MSB); + mag_offset->r = + (s16)((((s32)(s8)(data_u8[BNO055_OFFSET_RADIUS_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_OFFSET_RADIUS_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API is used to read mag offset + * offset form register 0x69 to 0x6A + * + * @param mag_offset : The value of mag offset and radius + * + * bno055_mag_offset_t | result + * ------------------- | ---------------- + * x | mag offset x + * y | mag offset y + * z | mag offset z + * r | mag radius r + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the magnetometer offset is +/-6400 in LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_mag_offset(struct bno055_mag_offset_t *mag_offset) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data1_u8r = BNO055_INIT_VALUE; + u8 data2_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* write Mag offset x value*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_X_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(mag_offset->x & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_MAG_OFFSET_X_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_X_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_X_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(mag_offset->x >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_MAG_OFFSET_X_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_X_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write Mag offset y value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_Y_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(mag_offset->y & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_MAG_OFFSET_Y_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_Y_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_Y_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(mag_offset->y >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_MAG_OFFSET_Y_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_Y_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write Mag offset z value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_Z_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(mag_offset->z & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_MAG_OFFSET_Z_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_Z_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_Z_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(mag_offset->z >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_MAG_OFFSET_Z_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_OFFSET_Z_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write Mag radius value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_RADIUS_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(mag_offset->r & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_MAG_RADIUS_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_RADIUS_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_RADIUS_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(mag_offset->r >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_MAG_RADIUS_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_RADIUS_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API is used to read gyro offset + * offset form register 0x61 to 0x66 + * + * @param gyro_offset : The value of gyro offset + * + * bno055_gyro_offset_t | result + * ------------------- | ---------------- + * x | gyro offset x + * y | gyro offset y + * z | gyro offset z + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the gyro offset varies based on + * the range of gyro sensor + * + * gyro G range | offset range + * -------------------- | ------------ + * BNO055_GYRO_RANGE_2000DPS | +/-32000 + * BNO055_GYRO_RANGE_1000DPS | +/-16000 + * BNO055_GYRO_RANGE_500DPS | +/-8000 + * BNO055_GYRO_RANGE_250DPS | +/-4000 + * BNO055_GYRO_RANGE_125DPS | +/-2000 + * + * Gyro range can be configured by using the + * bno055_set_gyro_range() API + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_offset(struct bno055_gyro_offset_t *gyro_offset) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + + /* Array holding the gyro offset values + * data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB] - offset x->LSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB] - offset x->MSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB] - offset y->LSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB] - offset y->MSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB] - offset z->LSB + * data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB] - offset z->MSB + */ + u8 data_u8[BNO055_GYRO_OFFSET_ARRAY] = { + BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE, BNO055_INIT_VALUE + }; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro offset is + * available in the page zero*/ + if (p_bno055->page_id != BNO055_PAGE_ZERO) + { + /* Write the page zero*/ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ZERO); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ZERO)) + { + /* Read gyro offset value it the six bytes of data*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_X_LSB_REG, + data_u8, + BNO055_GYRO_OFFSET_ARRAY); + if (com_rslt == BNO055_SUCCESS) + { + /* Read gyro x offset value*/ + data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB], + BNO055_GYRO_OFFSET_X_LSB); + data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB], + BNO055_GYRO_OFFSET_X_MSB); + gyro_offset->x = + (s16)((((s32)(s8)(data_u8[BNO055_SENSOR_OFFSET_DATA_X_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SENSOR_OFFSET_DATA_X_LSB])); + + /* Read gyro y offset value*/ + data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB], + BNO055_GYRO_OFFSET_Y_LSB); + data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB], + BNO055_GYRO_OFFSET_Y_MSB); + gyro_offset->y = + (s16)((((s32)(s8)(data_u8[BNO055_SENSOR_OFFSET_DATA_Y_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SENSOR_OFFSET_DATA_Y_LSB])); + + /* Read gyro z offset value*/ + data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB], + BNO055_GYRO_OFFSET_Z_LSB); + data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB] = BNO055_GET_BITSLICE(data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB], + BNO055_GYRO_OFFSET_Z_MSB); + gyro_offset->z = + (s16)((((s32)(s8)(data_u8[BNO055_SENSOR_OFFSET_DATA_Z_MSB])) << (BNO055_SHIFT_EIGHT_BITS)) | + (data_u8[BNO055_SENSOR_OFFSET_DATA_Z_LSB])); + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API is used to read gyro offset + * offset form register 0x61 to 0x66 + * + * @param gyro_offset : The value of gyro offset + * + * bno055_gyro_offset_t | result + * ------------------- | ---------------- + * x | gyro offset x + * y | gyro offset y + * z | gyro offset z + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the gyro offset varies based on + * the range of gyro sensor + * + * gyro G range | offset range + * -------------------- | ------------ + * BNO055_GYRO_RANGE_2000DPS | +/-32000 + * BNO055_GYRO_RANGE_1000DPS | +/-16000 + * BNO055_GYRO_RANGE_500DPS | +/-8000 + * BNO055_GYRO_RANGE_250DPS | +/-4000 + * BNO055_GYRO_RANGE_125DPS | +/-2000 + * + * Gyro range can be configured by using the + * bno055_set_gyro_range() API + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_gyro_offset(struct bno055_gyro_offset_t *gyro_offset) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data1_u8r = BNO055_INIT_VALUE; + u8 data2_u8r = BNO055_INIT_VALUE; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* write gryo offset x value*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_X_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(gyro_offset->x & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_GYRO_OFFSET_X_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_X_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_X_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(gyro_offset->x >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_GYRO_OFFSET_X_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_X_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write gryo offset y value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_Y_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(gyro_offset->y & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_GYRO_OFFSET_Y_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_Y_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_Y_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(gyro_offset->y >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_GYRO_OFFSET_Y_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_Y_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + + /* write gryo offset z value*/ + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_Z_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(gyro_offset->z & BNO055_SIC_HEX_0_0_F_F_DATA)); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_GYRO_OFFSET_Z_LSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_Z_LSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt += p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_Z_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data1_u8r = ((s8)(gyro_offset->z >> BNO055_SHIFT_EIGHT_BITS) & BNO055_SIC_HEX_0_0_F_F_DATA); + data2_u8r = BNO055_SET_BITSLICE(data2_u8r, BNO055_GYRO_OFFSET_Z_MSB, data1_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_OFFSET_Z_MSB_REG, + &data2_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/********************************************************/ +/************** PAGE1 Functions *********************/ +/********************************************************/ + +/*! + * @brief This API used to read the accel range + * from page one register from 0x08 bit 0 and 1 + * + * @param accel_range_u8 : The value of accel range + * accel_range_u8 | result + * ----------------- | -------------- + * 0x00 | BNO055_ACCEL_RANGE_2G + * 0x01 | BNO055_ACCEL_RANGE_4G + * 0x02 | BNO055_ACCEL_RANGE_8G + * 0x03 | BNO055_ACCEL_RANGE_16G + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_range(u8 *accel_range_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel range is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel g range */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_RANGE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_range_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_RANGE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel range + * from page one register from 0x08 bit 0 and 1 + * + * @param accel_range_u8 : The value of accel range + * + * accel_range_u8 | result + * ----------------- | -------------- + * 0x00 | BNO055_ACCEL_RANGE_2G + * 0x01 | BNO055_ACCEL_RANGE_4G + * 0x02 | BNO055_ACCEL_RANGE_8G + * 0x03 | BNO055_ACCEL_RANGE_16G + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_range(u8 accel_range_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + if (accel_range_u8 < BNO055_ACCEL_RANGE) + { + /* Write the value of accel range*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_RANGE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_RANGE, accel_range_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_RANGE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel bandwidth + * from page one register from 0x08 bit 2 to 4 + * + * @param accel_bw_u8 : The value of accel bandwidth + * + * accel_bw_u8 | result + * ----------------- | --------------- + * 0x00 | BNO055_ACCEL_BW_7_81HZ + * 0x01 | BNO055_ACCEL_BW_15_63HZ + * 0x02 | BNO055_ACCEL_BW_31_25HZ + * 0x03 | BNO055_ACCEL_BW_62_5HZ + * 0x04 | BNO055_ACCEL_BW_125HZ + * 0x05 | BNO055_ACCEL_BW_250HZ + * 0x06 | BNO055_ACCEL_BW_500HZ + * 0x07 | BNO055_ACCEL_BW_1000HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_bw(u8 *accel_bw_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel bandwidth is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel bandwidth */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_BW_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_bw_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_BW); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel bandwidth + * from page one register from 0x08 bit 2 to 4 + * + * @param accel_bw_u8 : The value of accel bandwidth + * + * accel_bw_u8 | result + * ----------------- | --------------- + * 0x00 | BNO055_ACCEL_BW_7_81HZ + * 0x01 | BNO055_ACCEL_BW_15_63HZ + * 0x02 | BNO055_ACCEL_BW_31_25HZ + * 0x03 | BNO055_ACCEL_BW_62_5HZ + * 0x04 | BNO055_ACCEL_BW_125HZ + * 0x05 | BNO055_ACCEL_BW_250HZ + * 0x06 | BNO055_ACCEL_BW_500HZ + * 0x07 | BNO055_ACCEL_BW_1000HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_bw(u8 accel_bw_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + if (accel_bw_u8 < BNO055_ACCEL_GYRO_BW_RANGE) + { + /* Write the accel */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_BW_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_BW, accel_bw_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_BW_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel power mode + * from page one register from 0x08 bit 5 to 7 + * + * @param accel_power_mode_u8 : The value of accel power mode + * accel_power_mode_u8 | result + * ----------------- | ------------- + * 0x00 | BNO055_ACCEL_NORMAL + * 0x01 | BNO055_ACCEL_SUSPEND + * 0x02 | BNO055_ACCEL_LOWPOWER_1 + * 0x03 | BNO055_ACCEL_STANDBY + * 0x04 | BNO055_ACCEL_LOWPOWER_2 + * 0x05 | BNO055_ACCEL_DEEPSUSPEND + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_power_mode(u8 *accel_power_mode_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel power mode is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel bandwidth */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_power_mode_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_POWER_MODE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel power mode + * from page one register from 0x08 bit 5 to 7 + * + * @param accel_power_mode_u8 : The value of accel power mode + * accel_power_mode_u8 | result + * ----------------- | ------------- + * 0x00 | BNO055_ACCEL_NORMAL + * 0x01 | BNO055_ACCEL_SUSPEND + * 0x02 | BNO055_ACCEL_LOWPOWER_1 + * 0x03 | BNO055_ACCEL_STANDBY + * 0x04 | BNO055_ACCEL_LOWPOWER_2 + * 0x05 | BNO055_ACCEL_DEEPSUSPEND + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_power_mode(u8 accel_power_mode_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + if (accel_power_mode_u8 < BNO055_ACCEL_POWER_MODE_RANGE) + { + /* Write the value of accel bandwidth*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_POWER_MODE, accel_power_mode_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the mag output data rate + * from page one register from 0x09 bit 0 to 2 + * + * @param mag_data_output_rate_u8 : The value of mag output data rate + * + * mag_data_output_rate_u8 | result + * ---------------------- |---------------------- + * 0x00 | MAG_DATA_OUTPUT_RATE_2HZ + * 0x01 | MAG_DATA_OUTPUT_RATE_6HZ + * 0x02 | MAG_DATA_OUTPUT_RATE_8HZ + * 0x03 | MAG_DATA_OUTPUT_RATE_10HZ + * 0x04 | MAG_DATA_OUTPUT_RATE_15HZ + * 0x05 | MAG_DATA_OUTPUT_RATE_20HZ + * 0x06 | MAG_DATA_OUTPUT_RATE_25HZ + * 0x07 | MAG_DATA_OUTPUT_RATE_30HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_data_output_rate(u8 *mag_data_output_rate_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, output data rate + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the mag output data rate*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_DATA_OUTPUT_RATE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *mag_data_output_rate_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_MAG_DATA_OUTPUT_RATE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the mag output data rate + * from page one register from 0x09 bit 0 to 2 + * + * @param mag_data_output_rate_u8 : The value of mag output data rate + * + * mag_data_output_rate_u8 | result + * ---------------------- |---------------------- + * 0x00 | MAG_DATA_OUTPUT_RATE_2HZ + * 0x01 | MAG_DATA_OUTPUT_RATE_6HZ + * 0x02 | MAG_DATA_OUTPUT_RATE_8HZ + * 0x03 | MAG_DATA_OUTPUT_RATE_10HZ + * 0x04 | MAG_DATA_OUTPUT_RATE_15HZ + * 0x05 | MAG_DATA_OUTPUT_RATE_20HZ + * 0x06 | MAG_DATA_OUTPUT_RATE_25HZ + * 0x07 | MAG_DATA_OUTPUT_RATE_30HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_mag_data_output_rate(u8 mag_data_output_rate_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + if (mag_data_output_rate_u8 < BNO055_MAG_OUTPUT_RANGE) + { + /* Write the value of + * mag output data rate*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_DATA_OUTPUT_RATE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, + BNO055_MAG_DATA_OUTPUT_RATE, + mag_data_output_rate_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_DATA_OUTPUT_RATE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the mag operation mode + * from page one register from 0x09 bit 3 to 4 + * + * @param mag_operation_mode_u8 : The value of mag operation mode + * + * mag_operation_mode_u8 | result + * ------------------------- |-------------------------- + * 0x00 | MAG_OPR_MODE_LOWPOWER + * 0x01 | MAG_OPR_MODE_REGULAR + * 0x02 | MAG_OPR_MODE_ENHANCED_REGULAR + * 0x03 | MAG_OPR_MODE_HIGH_ACCURACY + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_operation_mode(u8 *mag_operation_mode_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, mag operation mode is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of mag operation mode*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_OPERATION_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *mag_operation_mode_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_MAG_OPERATION_MODE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the mag operation mode + * from page one register from 0x09 bit 3 to 4 + * + * @param mag_operation_mode_u8 : The value of mag operation mode + * + * mag_operation_mode_u8 | result + * ------------------------- |-------------------------- + * 0x00 | MAG_OPR_MODE_LOWPOWER + * 0x01 | MAG_OPR_MODE_REGULAR + * 0x02 | MAG_OPR_MODE_ENHANCED_REGULAR + * 0x03 | MAG_OPR_MODE_HIGH_ACCURACY + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_mag_operation_mode(u8 mag_operation_mode_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + if (mag_operation_mode_u8 < BNO055_MAG_OPR_MODE_RANGE) + { + /* Write the value + * of mag operation mode*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_OPERATION_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_MAG_OPERATION_MODE, mag_operation_mode_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_OPERATION_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the mag power mode + * from page one register from 0x09 bit 4 to 6 + * + * @param mag_power_mode_u8 : The value of mag power mode + * + * mag_power_mode_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_MAG_POWER_MODE_NORMAL + * 0x01 | BNO055_MAG_POWER_MODE_SLEEP + * 0x02 | BNO055_MAG_POWER_MODE_SUSPEND + * 0x03 | BNO055_MAG_POWER_MODE_FORCE_MODE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_power_mode(u8 *mag_power_mode_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, mag power mode is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of mag power mode */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *mag_power_mode_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_MAG_POWER_MODE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the mag power mode + * from page one register from 0x09 bit 4 to 6 + * + * @param mag_power_mode_u8 : The value of mag power mode + * + * mag_power_mode_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_MAG_POWER_MODE_NORMAL + * 0x01 | BNO055_MAG_POWER_MODE_SLEEP + * 0x02 | BNO055_MAG_POWER_MODE_SUSPEND + * 0x03 | BNO055_MAG_POWER_MODE_FORCE_MODE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_mag_power_mode(u8 mag_power_mode_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + if (mag_power_mode_u8 < BNO055_MAG_POWER_MODE_RANGE) + { + /* Write the value of mag power mode*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_MAG_POWER_MODE, mag_power_mode_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro range + * from page one register from 0x0A bit 0 to 3 + * + * @param gyro_range_u8 : The value of gyro range + * + * gyro_range_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_GYRO_RANGE_2000DPS + * 0x01 | BNO055_GYRO_RANGE_1000DPS + * 0x02 | BNO055_GYRO_RANGE_500DPS + * 0x03 | BNO055_GYRO_RANGE_250DPS + * 0x04 | BNO055_GYRO_RANGE_125DPS + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_range(u8 *gyro_range_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro range is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro range */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_RANGE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_range_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_RANGE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro range + * from page one register from 0x0A bit 0 to 3 + * + * @param gyro_range_u8 : The value of gyro range + * + * gyro_range_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_GYRO_RANGE_2000DPS + * 0x01 | BNO055_GYRO_RANGE_1000DPS + * 0x02 | BNO055_GYRO_RANGE_500DPS + * 0x03 | BNO055_GYRO_RANGE_250DPS + * 0x04 | BNO055_GYRO_RANGE_125DPS + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_range(u8 gyro_range_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + if (gyro_range_u8 < BNO055_GYRO_RANGE) + { + /* Write the value of gyro range*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_RANGE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_RANGE, gyro_range_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_RANGE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro bandwidth + * from page one register from 0x0A bit 3 to 5 + * + * @param gyro_bw_u8 : The value of gyro bandwidth + * + * gyro_bw_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_GYRO_BW_523HZ + * 0x01 | BNO055_GYRO_BW_230HZ + * 0x02 | BNO055_GYRO_BW_116HZ + * 0x03 | BNO055_GYRO_BW_47HZ + * 0x04 | BNO055_GYRO_BW_23HZ + * 0x05 | BNO055_GYRO_BW_12HZ + * 0x06 | BNO055_GYRO_BW_64HZ + * 0x07 | BNO055_GYRO_BW_32HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_bw(u8 *gyro_bw_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro bandwidth is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_BW_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_bw_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_BW); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro bandwidth + * from page one register from 0x0A bit 3 to 5 + * + * @param gyro_bw_u8 : The value of gyro bandwidth + * + * gyro_bw_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_GYRO_BW_523HZ + * 0x01 | BNO055_GYRO_BW_230HZ + * 0x02 | BNO055_GYRO_BW_116HZ + * 0x03 | BNO055_GYRO_BW_47HZ + * 0x04 | BNO055_GYRO_BW_23HZ + * 0x05 | BNO055_GYRO_BW_12HZ + * 0x06 | BNO055_GYRO_BW_64HZ + * 0x07 | BNO055_GYRO_BW_32HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_bw(u8 gyro_bw_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 gyro_opmode = BNO055_INIT_VALUE; + u8 gyro_auto_sleep_durn = BNO055_INIT_VALUE; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of gyro bandwidth */ + if ((gyro_bw_u8 == BNO055_INIT_VALUE || gyro_bw_u8 > BNO055_INIT_VALUE) && + gyro_bw_u8 < BNO055_ACCEL_GYRO_BW_RANGE) + { + switch (gyro_bw_u8) + { + case BNO055_GYRO_BW_523HZ: + gyro_bw_u8 = BNO055_GYRO_BW_523HZ; + break; + case BNO055_GYRO_BW_230HZ: + gyro_bw_u8 = BNO055_GYRO_BW_230HZ; + break; + case BNO055_GYRO_BW_116HZ: + gyro_bw_u8 = BNO055_GYRO_BW_116HZ; + break; + case BNO055_GYRO_BW_47HZ: + gyro_bw_u8 = BNO055_GYRO_BW_47HZ; + break; + case BNO055_GYRO_BW_23HZ: + gyro_bw_u8 = BNO055_GYRO_BW_23HZ; + break; + case BNO055_GYRO_BW_12HZ: + gyro_bw_u8 = BNO055_GYRO_BW_12HZ; + break; + case BNO055_GYRO_BW_64HZ: + gyro_bw_u8 = BNO055_GYRO_BW_64HZ; + break; + case BNO055_GYRO_BW_32HZ: + gyro_bw_u8 = BNO055_GYRO_BW_32HZ; + break; + default: + break; + } + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_BW_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_BW, gyro_bw_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_BW_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + com_rslt = bno055_get_gyro_power_mode(&gyro_opmode); + if (com_rslt == BNO055_SUCCESS) + { + if (gyro_opmode == BNO055_GYRO_POWER_MODE_ADVANCE_POWERSAVE) + { + com_rslt += bno055_get_gyro_auto_sleep_durn(&gyro_auto_sleep_durn); + if (com_rslt == BNO055_SUCCESS) + { + com_rslt += bno055_gyro_set_auto_sleep_durn(gyro_auto_sleep_durn, gyro_bw_u8); + } + } + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro power mode + * from page one register from 0x0B bit 0 to 2 + * + * @param gyro_power_mode_u8 : The value of gyro power mode + * + * gyro_power_mode_u8 | result + * ----------------------|---------------------------- + * 0x00 | GYRO_OPR_MODE_NORMAL + * 0x01 | GYRO_OPR_MODE_FASTPOWERUP + * 0x02 | GYRO_OPR_MODE_DEEPSUSPEND + * 0x03 | GYRO_OPR_MODE_SUSPEND + * 0x04 | GYRO_OPR_MODE_ADVANCE_POWERSAVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_power_mode(u8 *gyro_power_mode_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro power mode is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Write the value of gyro power mode*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_power_mode_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_POWER_MODE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro power mode + * from page one register from 0x0B bit 0 to 2 + * + * @param gyro_power_mode_u8 : The value of gyro power mode + * + * gyro_power_mode_u8 | result + * ----------------------|---------------------------- + * 0x00 | GYRO_OPR_MODE_NORMAL + * 0x01 | GYRO_OPR_MODE_FASTPOWERUP + * 0x02 | GYRO_OPR_MODE_DEEPSUSPEND + * 0x03 | GYRO_OPR_MODE_SUSPEND + * 0x04 | GYRO_OPR_MODE_ADVANCE_POWERSAVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_power_mode(u8 gyro_power_mode_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 gyro_auto_sleep_durn = BNO055_INIT_VALUE; + u8 gyro_bw_u8 = BNO055_INIT_VALUE; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of power mode*/ + if ((gyro_power_mode_u8 == BNO055_INIT_VALUE || gyro_power_mode_u8 > BNO055_INIT_VALUE) && + gyro_power_mode_u8 < BNO055_GYRO_RANGE) + { + switch (gyro_power_mode_u8) + { + case BNO055_GYRO_POWER_MODE_NORMAL: + gyro_power_mode_u8 = BNO055_GYRO_POWER_MODE_NORMAL; + break; + case BNO055_GYRO_POWER_MODE_FASTPOWERUP: + gyro_power_mode_u8 = BNO055_GYRO_POWER_MODE_FASTPOWERUP; + break; + case BNO055_GYRO_POWER_MODE_DEEPSUSPEND: + gyro_power_mode_u8 = BNO055_GYRO_POWER_MODE_DEEPSUSPEND; + break; + case BNO055_GYRO_POWER_MODE_SUSPEND: + gyro_power_mode_u8 = BNO055_GYRO_POWER_MODE_SUSPEND; + break; + case BNO055_GYRO_POWER_MODE_ADVANCE_POWERSAVE: + com_rslt = bno055_get_gyro_bw(&gyro_bw_u8); + com_rslt += bno055_get_gyro_auto_sleep_durn(&gyro_auto_sleep_durn); + if (com_rslt == BNO055_SUCCESS) + { + com_rslt += bno055_gyro_set_auto_sleep_durn(gyro_auto_sleep_durn, gyro_bw_u8); + } + com_rslt += bno055_write_page_id(BNO055_PAGE_ONE); + gyro_power_mode_u8 = BNO055_GYRO_POWER_MODE_ADVANCE_POWERSAVE; + break; + default: + break; + } + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_POWER_MODE, gyro_power_mode_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_POWER_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel sleep mode + * from page one register from 0x0C bit 0 + * + * @param sleep_tmr_u8 : The value of accel sleep mode + * + * sleep_tmr_u8 | result + * ----------------- |------------------------------------ + * 0x00 | enable EventDrivenSampling(EDT) + * 0x01 | enable Equidistant sampling mode(EST) + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_sleep_tmr_mode(u8 *sleep_tmr_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel sleep mode is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* read the value of accel sleep mode */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLEEP_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *sleep_tmr_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_SLEEP_MODE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel sleep mode + * from page one register from 0x0C bit 0 + * + * @param sleep_tmr_u8 : The value of accel sleep mode + * + * sleep_tmr_u8 | result + * ----------------- |------------------------------------ + * 0x00 | enable EventDrivenSampling(EDT) + * 0x01 | enable Equidistant sampling mode(EST) + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_sleep_tmr_mode(u8 sleep_tmr_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + if (sleep_tmr_u8 < BNO055_ACCEL_SLEEP_MODE_RANGE) + { + /*Write the value + * of accel sleep mode*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLEEP_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_SLEEP_MODE, sleep_tmr_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLEEP_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel sleep duration + * from page one register from 0x0C bit 1 to 4 + * + * @param sleep_durn_u8 : The value of accel sleep duration + * + * sleep_durn_u8 | result + * ---------------- |----------------------------- + * 0x05 | BNO055_ACCEL_SLEEP_DURN_0_5MS + * 0x06 | BNO055_ACCEL_SLEEP_DURN_1MS + * 0x07 | BNO055_ACCEL_SLEEP_DURN_2MS + * 0x08 | BNO055_ACCEL_SLEEP_DURN_4MS + * 0x09 | BNO055_ACCEL_SLEEP_DURN_6MS + * 0x0A | BNO055_ACCEL_SLEEP_DURN_10MS + * 0x0B | BNO055_ACCEL_SLEEP_DURN_25MS + * 0x0C | BNO055_ACCEL_SLEEP_DURN_50MS + * 0x0D | BNO055_ACCEL_SLEEP_DURN_100MS + * 0x0E | BNO055_ACCEL_SLEEP_DURN_500MS + * 0x0F | BNO055_ACCEL_SLEEP_DURN_1S + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_sleep_durn(u8 *sleep_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel sleep duration + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel sleep duration */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *sleep_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_SLEEP_DURN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel sleep duration + * from page one register from 0x0C bit 1 to 4 + * + * @param sleep_durn_u8 : The value of accel sleep duration + * + * sleep_durn_u8 | result + * ---------------|----------------------------- + * 0x05 | BNO055_ACCEL_SLEEP_DURN_0_5MS + * 0x06 | BNO055_ACCEL_SLEEP_DURN_1MS + * 0x07 | BNO055_ACCEL_SLEEP_DURN_2MS + * 0x08 | BNO055_ACCEL_SLEEP_DURN_4MS + * 0x09 | BNO055_ACCEL_SLEEP_DURN_6MS + * 0x0A | BNO055_ACCEL_SLEEP_DURN_10MS + * 0x0B | BNO055_ACCEL_SLEEP_DURN_25MS + * 0x0C | BNO055_ACCEL_SLEEP_DURN_50MS + * 0x0D | BNO055_ACCEL_SLEEP_DURN_100MS + * 0x0E | BNO055_ACCEL_SLEEP_DURN_500MS + * 0x0F | BNO055_ACCEL_SLEEP_DURN_1S + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_sleep_durn(u8 sleep_durn_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + if (sleep_durn_u8 < BNO055_ACCEL_SLEEP_DURATION_RANGE) + { + /* Write the accel + * sleep duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_SLEEP_DURN, sleep_durn_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro sleep duration + * from page one register from 0x0D bit 0 to 2 + * + * @param sleep_durn_u8 : The value of gyro sleep duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_sleep_durn(u8 *sleep_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel range is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the gyro sleep duration */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *sleep_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_SLEEP_DURN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro sleep duration + * from page one register from 0x0D bit 0 to 2 + * + * @param sleep_durn_u8 : The value of gyro sleep duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_sleep_durn(u8 sleep_durn_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + if (sleep_durn_u8 < BNO055_GYRO_AUTO_SLEEP_DURATION_RANGE) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the gyro + * sleep duration */ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_SLEEP_DURN, sleep_durn_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro auto sleep duration + * from page one register from 0x0D bit 3 to 5 + * + * @param auto_sleep_durn_u8 : The value of gyro auto sleep duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_auto_sleep_durn(u8 *auto_sleep_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel range is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro auto sleep duration */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_AUTO_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *auto_sleep_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_AUTO_SLEEP_DURN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro auto sleep duration + * from page one register from 0x0D bit 3 to 5 + * + * @param auto_sleep_durn_u8 : The value of gyro auto sleep duration + * @param bw : The value of gyro bandwidth + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_gyro_set_auto_sleep_durn(u8 auto_sleep_durn_u8, u8 bw) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 auto_sleep_durn_u8r; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of gyro sleep duration */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_AUTO_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (auto_sleep_durn_u8 < BNO055_GYRO_AUTO_SLEEP_DURATION_RANGE) + { + switch (bw) + { + case BNO055_GYRO_BW_523HZ: + if (auto_sleep_durn_u8 > BNO055_GYRO_4MS_AUTOSLPDUR) + { + auto_sleep_durn_u8r = auto_sleep_durn_u8; + } + else + { + auto_sleep_durn_u8r = BNO055_GYRO_4MS_AUTOSLPDUR; + } + break; + case BNO055_GYRO_BW_230HZ: + if (auto_sleep_durn_u8 > BNO055_GYRO_4MS_AUTOSLPDUR) + { + auto_sleep_durn_u8r = auto_sleep_durn_u8; + } + else + { + auto_sleep_durn_u8r = BNO055_GYRO_4MS_AUTOSLPDUR; + } + break; + case BNO055_GYRO_BW_116HZ: + if (auto_sleep_durn_u8 > BNO055_GYRO_4MS_AUTOSLPDUR) + { + auto_sleep_durn_u8r = auto_sleep_durn_u8; + } + else + { + auto_sleep_durn_u8r = BNO055_GYRO_4MS_AUTOSLPDUR; + } + break; + case BNO055_GYRO_BW_47HZ: + if (auto_sleep_durn_u8 > BNO055_GYRO_5MS_AUTOSLPDUR) + { + auto_sleep_durn_u8r = auto_sleep_durn_u8; + } + else + { + auto_sleep_durn_u8r = BNO055_GYRO_5MS_AUTOSLPDUR; + } + break; + case BNO055_GYRO_BW_23HZ: + if (auto_sleep_durn_u8 > BNO055_GYRO_10MS_AUTOSLPDUR) + { + auto_sleep_durn_u8r = auto_sleep_durn_u8; + } + else + { + auto_sleep_durn_u8r = BNO055_GYRO_10MS_AUTOSLPDUR; + } + break; + case BNO055_GYRO_BW_12HZ: + if (auto_sleep_durn_u8 > BNO055_GYRO_20MS_AUTOSLPDUR) + { + auto_sleep_durn_u8r = auto_sleep_durn_u8; + } + else + { + auto_sleep_durn_u8r = BNO055_GYRO_20MS_AUTOSLPDUR; + } + break; + case BNO055_GYRO_BW_64HZ: + if (auto_sleep_durn_u8 > BNO055_GYRO_10MS_AUTOSLPDUR) + { + auto_sleep_durn_u8r = auto_sleep_durn_u8; + } + else + { + auto_sleep_durn_u8r = BNO055_GYRO_10MS_AUTOSLPDUR; + } + break; + case BNO055_GYRO_BW_32HZ: + if (auto_sleep_durn_u8 > BNO055_GYRO_20MS_AUTOSLPDUR) + { + auto_sleep_durn_u8r = auto_sleep_durn_u8; + } + else + { + auto_sleep_durn_u8r = BNO055_GYRO_20MS_AUTOSLPDUR; + } + break; + default: + if (auto_sleep_durn_u8 > BNO055_GYRO_4MS_AUTOSLPDUR) + { + auto_sleep_durn_u8r = auto_sleep_durn_u8; + } + else + { + auto_sleep_durn_u8r = BNO055_GYRO_4MS_AUTOSLPDUR; + } + break; + } + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_AUTO_SLEEP_DURN, auto_sleep_durn_u8r); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_AUTO_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_OUT_OF_RANGE; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the mag sleep mode + * from page one register from 0x0E bit 0 + * + * @param sleep_mode_u8 : The value of mag sleep mode + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_sleep_mode(u8 *sleep_mode_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page,mag sleep mode is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of mag sleep mode*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_SLEEP_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *sleep_mode_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_MAG_SLEEP_MODE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the mag sleep mode + * from page one register from 0x0E bit 0 + * + * @param sleep_mode_u8 : The value of mag sleep mode + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_mag_sleep_mode(u8 sleep_mode_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_SLEEP_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value + * of mag sleep mode*/ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_MAG_SLEEP_MODE, sleep_mode_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_SLEEP_MODE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the mag sleep duration + * from page one register from 0x0E bit 1 to 4 + * + * @param sleep_durn_u8 : The value of mag sleep duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_sleep_durn(u8 *sleep_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page,mag sleep duration is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of mag sleep duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *sleep_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_MAG_SLEEP_DURN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the mag sleep duration + * from page one register from 0x0E bit 1 to 4 + * + * @param sleep_durn_u8 : The value of mag sleep duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_mag_sleep_durn(u8 sleep_durn_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_MAG_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of + * mag sleep duration */ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_MAG_SLEEP_DURN, sleep_durn_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_MAG_SLEEP_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro anymotion interrupt mask + * from page one register from 0x0F bit 2 + * + * @param gyro_any_motion_u8 : The value of gyro anymotion interrupt mask + * gyro_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro anymotion interrupt + * configure the following settings + * + * Axis: + * bno055_set_gyro_any_motion_axis_enable() + * + * Filter setting: + * bno055_set_gyro_any_motion_filter() + * + * Threshold : + * + * bno055_set_gyro_any_motion_thres() + * + * Slope samples : + * + * bno055_set_gyro_any_motion_slope_samples() + * + * Awake duration : + * + * bno055_set_gyro_any_motion_awake_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_mask_gyro_any_motion(u8 *gyro_any_motion_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro anymotion interrupt mask is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro anymotion interrupt mask*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_any_motion_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_INTR_MASK); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro anymotion interrupt mask + * from page one register from 0x0F bit 2 + * + * @param gyro_any_motion_u8 : The value of gyro anymotion interrupt mask + * gyro_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro anymotion interrupt + * configure the following settings + * + * Axis: + * bno055_set_gyro_any_motion_axis_enable() + * + * Filter setting: + * bno055_set_gyro_any_motion_filter() + * + * Threshold : + * + * bno055_set_gyro_any_motion_thres() + * + * Slope samples : + * + * bno055_set_gyro_any_motion_slope_samples() + * + * Awake duration : + * + * bno055_set_gyro_any_motion_awake_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_mask_gyro_any_motion(u8 gyro_any_motion_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel range is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Write the value of gyro anymotion interrupt mask*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_INTR_MASK, gyro_any_motion_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro highrate interrupt mask + * from page one register from 0x0F bit 3 + * + * @param gyro_highrate_u8 : The value of gyro highrate interrupt mask + * gyro_highrate_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro highrate interrupt + * configure the below settings by using + * the following API + * + * Axis : + * + * bno055_set_gyro_highrate_axis_enable() + * + * Filter : + * + * bno055_set_gyro_highrate_filter() + * + * Threshold : + * + * bno055_get_gyro_highrate_x_thres() + * + * bno055_get_gyro_highrate_y_thres() + * + * bno055_get_gyro_highrate_z_thres() + * + * Hysteresis : + * + * bno055_set_gyro_highrate_x_hyst() + * + * bno055_set_gyro_highrate_y_hyst() + * + * bno055_set_gyro_highrate_z_hyst() + * + * Duration : + * + * bno055_set_gyro_highrate_x_durn() + * + * bno055_set_gyro_highrate_y_durn() + * + * bno055_set_gyro_highrate_z_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_mask_gyro_highrate(u8 *gyro_highrate_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate interrupt mask is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate interrupt mask*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_INTR_MASK); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro highrate interrupt mask + * from page one register from 0x0F bit 3 + * + * @param gyro_highrate_u8 : The value of gyro highrate interrupt mask + * gyro_highrate_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro highrate interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_gyro_highrate_axis_enable() + * + * Filter : + * + * bno055_set_gyro_highrate_filter() + * + * Threshold : + * + * bno055_get_gyro_highrate_x_thres() + * + * bno055_get_gyro_highrate_y_thres() + * + * bno055_get_gyro_highrate_z_thres() + * + * Hysteresis : + * + * bno055_set_gyro_highrate_x_hyst() + * + * bno055_set_gyro_highrate_y_hyst() + * + * bno055_set_gyro_highrate_z_hyst() + * + * Duration : + * + * bno055_set_gyro_highrate_x_durn() + * + * bno055_set_gyro_highrate_y_durn() + * + * bno055_set_gyro_highrate_z_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_mask_gyro_highrate(u8 gyro_highrate_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate interrupt mask is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of gyro + * highrate interrupt mask*/ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_INTR_MASK, gyro_highrate_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel highg interrupt mask + * from page one register from 0x0F bit 5 + * + * @param accel_high_g_u8 : The value of accel highg interrupt mask + * accel_high_g_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel highg interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_accel_high_g_axis_enable() + * + * Threshold : + * + * bno055_set_accel_high_g_thres() + * + * Duration : + * + * bno055_set_accel_high_g_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_mask_accel_high_g(u8 *accel_high_g_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel highg interrupt mask is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel highg interrupt mask*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_high_g_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_INTR_MASK); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel highg interrupt mask + * from page one register from 0x0F bit 5 + * + * @param accel_high_g_u8 : The value of accel highg interrupt mask + * accel_high_g_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel highg interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_accel_high_g_axis_enable() + * + * Threshold : + * + * bno055_set_accel_high_g_thres() + * + * Duration : + * + * bno055_set_accel_high_g_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_mask_accel_high_g(u8 accel_high_g_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel highg interrupt mask is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of accel + * highg interrupt mask*/ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_INTR_MASK, accel_high_g_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel anymotion interrupt mask + * from page one register from 0x0F bit 6 + * + * @param accel_any_motion_u8 : The value of accel anymotion interrupt mask + * accel_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel highg interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_accel_high_g_axis_enable() + * + * Threshold : + * + * bno055_set_accel_high_g_thres() + * + * Duration : + * + * bno055_set_accel_high_g_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_mask_accel_any_motion(u8 *accel_any_motion_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel anymotion interrupt mask is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* The value of accel anymotion interrupt mask*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_any_motion_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_INTR_MASK); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel anymotion interrupt mask + * from page one register from 0x0F bit 6 + * + * @param accel_any_motion_u8 : The value of accel anymotion interrupt mask + * accel_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel anymotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Duration: + * + * bno055_set_accel_any_motion_durn() + * + * Threshold: + * + * bno055_set_accel_any_motion_thres() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_mask_accel_any_motion(u8 accel_any_motion_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel anymotion interrupt mask is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Write the value of accel anymotion interrupt mask*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_INTR_MASK, accel_any_motion_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel nomotion interrupt mask + * from page one register from 0x0F bit 7 + * + * @param accel_nomotion_u8 : The value of accel nomotion interrupt mask + * accel_nomotion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * + * @note While enabling the accel anymotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Duration: + * + * bno055_set_accel_any_motion_durn() + * + * Threshold: + * + * bno055_set_accel_any_motion_thres()) + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_mask_accel_no_motion(u8 *accel_nomotion_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel nomotion interrupt mask is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel nomotion interrupt mask*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_NO_MOTION_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_nomotion_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_NO_MOTION_INTR_MASK); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel nomotion interrupt mask + * from page one register from 0x0F bit 7 + * + * @param accel_nomotion_u8 : The value of accel nomotion interrupt mask + * accel_nomotion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel nomotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Threshold : + * + * bno055_set_accel_slow_no_motion_thres() + * + * Duration : + * + * bno055_set_accel_slow_no_motion_durn() + * + * Slow/no motion enable: + * + * bno055_set_accel_slow_no_motion_enable() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_mask_accel_no_motion(u8 accel_nomotion_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel + * nomotion interrupt mask is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_NO_MOTION_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of accel + * nomotion interrupt mask*/ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_NO_MOTION_INTR_MASK, accel_nomotion_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_NO_MOTION_INTR_MASK_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro anymotion interrupt + * from page one register from 0x10 bit 2 + * + * @param gyro_any_motion_u8 : The value of gyro anymotion interrupt + * gyro_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro anymotion interrupt + * configure the following settings + * + * Axis: + * bno055_set_gyro_any_motion_axis_enable() + * + * Filter setting: + * bno055_set_gyro_any_motion_filter() + * + * Threshold : + * + * bno055_set_gyro_any_motion_thres() + * + * Slope samples : + * + * bno055_set_gyro_any_motion_slope_samples() + * + * Awake duration : + * + * bno055_set_gyro_any_motion_awake_durn() + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_gyro_any_motion(u8 *gyro_any_motion_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro anymotion interrupt is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro anymotion interrupt */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_any_motion_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_INTR); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro anymotion interrupt + * from page one register from 0x10 bit 2 + * + * @param gyro_any_motion_u8 : The value of gyro anymotion interrupt + * gyro_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro anymotion interrupt + * configure the following settings + * + * Axis: + * bno055_set_gyro_any_motion_axis_enable() + * + * Filter setting: + * bno055_set_gyro_any_motion_filter() + * + * Threshold : + * + * bno055_set_gyro_any_motion_thres() + * + * Slope samples : + * + * bno055_set_gyro_any_motion_slope_samples() + * + * Awake duration : + * + * bno055_set_gyro_any_motion_awake_durn() + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_gyro_any_motion(u8 gyro_any_motion_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro anymotion interrupt is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Write the value of gyro anymotion interrupt */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_INTR, gyro_any_motion_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro highrate interrupt + * from page one register from 0x10 bit 3 + * + * @param gyro_highrate_u8 : The value of gyro highrate interrupt + * gyro_highrate_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro highrate interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_gyro_highrate_axis_enable() + * + * Filter : + * + * bno055_set_gyro_highrate_filter() + * + * Threshold : + * + * bno055_get_gyro_highrate_x_thres() + * + * bno055_get_gyro_highrate_y_thres() + * + * bno055_get_gyro_highrate_z_thres() + * + * Hysteresis : + * + * bno055_set_gyro_highrate_x_hyst() + * + * bno055_set_gyro_highrate_y_hyst() + * + * bno055_set_gyro_highrate_z_hyst() + * + * Duration : + * + * bno055_set_gyro_highrate_x_durn() + * + * bno055_set_gyro_highrate_y_durn() + * + * bno055_set_gyro_highrate_z_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_gyro_highrate(u8 *gyro_highrate_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate interrupt is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate interrupt */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_INTR); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro highrate interrupt + * from page one register from 0x10 bit 3 + * + * @param gyro_highrate_u8 : The value of gyro highrate interrupt + * gyro_highrate_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro highrate interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_gyro_highrate_axis_enable() + * + * Filter : + * + * bno055_set_gyro_highrate_filter() + * + * Threshold : + * + * bno055_get_gyro_highrate_x_thres() + * + * bno055_get_gyro_highrate_y_thres() + * + * bno055_get_gyro_highrate_z_thres() + * + * Hysteresis : + * + * bno055_set_gyro_highrate_x_hyst() + * + * bno055_set_gyro_highrate_y_hyst() + * + * bno055_set_gyro_highrate_z_hyst() + * + * Duration : + * + * bno055_set_gyro_highrate_x_durn() + * + * bno055_set_gyro_highrate_y_durn() + * + * bno055_set_gyro_highrate_z_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_gyro_highrate(u8 gyro_highrate_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate interrupt is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of gyro highrate interrupt */ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_INTR, gyro_highrate_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel highg interrupt + * from page one register from 0x10 bit 5 + * + * @param accel_high_g_u8 : The value of accel highg interrupt + * accel_high_g_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel highg interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_accel_high_g_axis_enable() + * + * Threshold : + * + * bno055_set_accel_high_g_thres() + * + * Duration : + * + * bno055_set_accel_high_g_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_accel_high_g(u8 *accel_high_g_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel highg interrupt is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel highg interrupt*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_high_g_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_INTR); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel highg interrupt + * from page one register from 0x10 bit 5 + * + * @param accel_high_g_u8 : The value of accel highg interrupt + * accel_high_g_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel highg interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_accel_high_g_axis_enable() + * + * Threshold : + * + * bno055_set_accel_high_g_thres() + * + * Duration : + * + * bno055_set_accel_high_g_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_accel_high_g(u8 accel_high_g_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel highg interrupt is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of accel highg interrupt*/ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_INTR, accel_high_g_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel anymotion interrupt + * from page one register from 0x10 bit 6 + * + * @param accel_any_motion_u8 : The value of accel anymotion interrupt + * accel_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel anymotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Duration: + * + * bno055_set_accel_any_motion_durn() + * + * Threshold: + * + * bno055_set_accel_any_motion_thres() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_accel_any_motion(u8 *accel_any_motion_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel anymotion interrupt is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel anymotion interrupt */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_any_motion_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_INTR); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel anymotion interrupt + * from page one register from 0x10 bit 6 + * + * @param accel_any_motion_u8 : The value of accel anymotion interrupt + * accel_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel anymotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Duration: + * + * bno055_set_accel_any_motion_durn() + * + * Threshold: + * + * bno055_set_accel_any_motion_thres() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_accel_any_motion(u8 accel_any_motion_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel range is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Write the value of accel anymotion interrupt */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_INTR, accel_any_motion_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel nomotion interrupt + * from page one register from 0x10 bit 6 + * + * @param accel_nomotion_u8 : The value of accel nomotion interrupt + * accel_nomotion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel nomotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Threshold : + * + * bno055_set_accel_slow_no_motion_thres() + * + * Duration : + * + * bno055_set_accel_slow_no_motion_durn() + * + * Slow/no motion enable: + * + * bno055_set_accel_slow_no_motion_enable() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_accel_no_motion(u8 *accel_nomotion_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel nomotion interrupt is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel nomotion interrupt*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_NO_MOTION_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_nomotion_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_NO_MOTION_INTR); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel nomotion interrupt + * from page one register from 0x10 bit 6 + * + * @param accel_nomotion_u8 : The value of accel nomotion interrupt + * accel_nomotion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel nomotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Threshold : + * + * bno055_set_accel_slow_no_motion_thres() + * + * Duration : + * + * bno055_set_accel_slow_no_motion_durn() + * + * Slow/no motion enable: + * + * bno055_set_accel_slow_no_motion_enable() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_accel_no_motion(u8 accel_nomotion_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, + * accel nomotion interrupt is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_NO_MOTION_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of + * accel nomotion interrupt */ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_NO_MOTION_INTR, accel_nomotion_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_NO_MOTION_INTR_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel any motion threshold + * from page one register from 0x11 bit 0 to 7 + * + * @param accel_any_motion_thres_u8 : The value of any motion threshold + * accel_any_motion_thres_u8 | result + * ------------------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel anymotion threshold dependent on the + * range values + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 3.19mg | 1LSB + * 4g | 7.81mg | 1LSB + * 8g | 15.63mg | 1LSB + * 16g | 31.25mg | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_any_motion_thres(u8 *accel_any_motion_thres_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel any motion threshold is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel any motion threshold */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_any_motion_thres_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_THRES); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel any motion threshold + * from page one register from 0x11 bit 0 to 7 + * + * @param accel_any_motion_thres_u8 : The value of any motion threshold + * accel_any_motion_thres_u8 | result + * ------------------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel anymotion threshold dependent on the + * range values + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 3.19mg | 1LSB + * 4g | 7.81mg | 1LSB + * 8g | 15.63mg | 1LSB + * 16g | 31.25mg | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_any_motion_thres(u8 accel_any_motion_thres_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of + * accel any motion threshold*/ + data_u8r = BNO055_SET_BITSLICE(data_u8r, + BNO055_ACCEL_ANY_MOTION_THRES, + accel_any_motion_thres_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel anymotion duration + * from page one register from 0x12 bit 0 to 1 + * + * @param accel_any_motion_durn_u8 : The value of accel anymotion duration + * accel_any_motion_durn_u8 | result + * ------------------------- | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_any_motion_durn(u8 *accel_any_motion_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel anymotion duration is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel anymotion duration */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_DURN_SET_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_any_motion_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_DURN_SET); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel anymotion duration + * from page one register from 0x12 bit 0 to 1 + * + * @param accel_any_motion_durn_u8 : The value of accel anymotion duration + * + * accel_any_motion_durn_u8 | result + * ------------------------- | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_any_motion_durn(u8 accel_any_motion_durn_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_DURN_SET_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of + * accel anymotion duration*/ + data_u8r = BNO055_SET_BITSLICE(data_u8r, + BNO055_ACCEL_ANY_MOTION_DURN_SET, + accel_any_motion_durn_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_DURN_SET_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel anymotion enable + * from page one register from 0x12 bit 2 to 4 + * + * @param data_u8 : The value of accel anymotion enable + * data_u8 | result + * ------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of accel anymotion axis selection + * channel_u8 | value + * -------------------------- | ---------- + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_X_AXIS | 0 + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_Y_AXIS | 1 + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_Y_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_any_motion_no_motion_axis_enable(u8 channel_u8, u8 *data_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel anymotion enable is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + switch (channel_u8) + { + case BNO055_ACCEL_ANY_MOTION_NO_MOTION_X_AXIS: + + /* Read the value of accel anymotion x enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_X_AXIS); + break; + case BNO055_ACCEL_ANY_MOTION_NO_MOTION_Y_AXIS: + + /* Read the value of accel anymotion y enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_Y_AXIS); + break; + case BNO055_ACCEL_ANY_MOTION_NO_MOTION_Z_AXIS: + + /* Read the value of accel anymotion z enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_Z_AXIS); + break; + default: + com_rslt = BNO055_OUT_OF_RANGE; + break; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel anymotion enable + * from page one register from 0x12 bit 2 to 4 + * + * @param data_u8 : The value of accel anymotion enable + * data_u8 | result + * ------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of accel anymotion axis selection + * channel_u8 | value + * -------------------------- | ---------- + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_X_AXIS | 0 + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_Y_AXIS | 1 + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_Y_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_any_motion_no_motion_axis_enable(u8 channel_u8, u8 data_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + switch (channel_u8) + { + case BNO055_ACCEL_ANY_MOTION_NO_MOTION_X_AXIS: + + /* Write the value of + * accel anymotion x enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_X_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + case BNO055_ACCEL_ANY_MOTION_NO_MOTION_Y_AXIS: + + /* Write the value of + * accel anymotion y enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_Y_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + case BNO055_ACCEL_ANY_MOTION_NO_MOTION_Z_AXIS: + + /* Write the value of + * accel anymotion z enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_ANY_MOTION_Z_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_ANY_MOTION_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + default: + com_rslt = BNO055_OUT_OF_RANGE; + break; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel highg enable + * from page one register from 0x12 bit 5 to 7 + * + * @param data_u8 : The value of accel highg enable + * data_u8| result + * ------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of accel highg axis selection + * channel_u8 | value + * -------------------------- | ---------- + * BNO055_ACCEL_HIGH_G_X_AXIS | 0 + * BNO055_ACCEL_HIGH_G_Y_AXIS | 1 + * BNO055_ACCEL_HIGH_G_Z_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_high_g_axis_enable(u8 channel_u8, u8 *data_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel highg enable is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + switch (channel_u8) + { + case BNO055_ACCEL_HIGH_G_X_AXIS: + + /* Read the value of accel x highg enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_X_AXIS); + break; + case BNO055_ACCEL_HIGH_G_Y_AXIS: + + /* Read the value of accel y highg enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_Y_AXIS); + break; + case BNO055_ACCEL_HIGH_G_Z_AXIS: + + /* Read the value of accel z highg enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_Z_AXIS); + break; + default: + com_rslt = BNO055_OUT_OF_RANGE; + break; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel highg enable + * from page one register from 0x12 bit 5 to 7 + * + * @param data_u8 : The value of accel highg enable + * data_u8| result + * ------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of accel highg axis selection + * channel_u8 | value + * -------------------------- | ---------- + * BNO055_ACCEL_HIGH_G_X_AXIS | 0 + * BNO055_ACCEL_HIGH_G_Y_AXIS | 1 + * BNO055_ACCEL_HIGH_G_Z_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_high_g_axis_enable(u8 channel_u8, u8 data_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + switch (channel_u8) + { + case BNO055_ACCEL_HIGH_G_X_AXIS: + + /* Write the value of + * accel x highg enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_X_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + case BNO055_ACCEL_HIGH_G_Y_AXIS: + + /* Write the value of + * accel y highg enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_Y_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + case BNO055_ACCEL_HIGH_G_Z_AXIS: + + /* Write the value of + * accel z highg enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_Z_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + default: + com_rslt = BNO055_OUT_OF_RANGE; + break; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel highg duration + * from page one register from 0x13 bit 0 to 7 + * + * @param accel_high_g_durn_u8 : The value of accel highg duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The high-g interrupt trigger delay according + * to [highg duration + 1] * 2 ms + * + * in a range from 2 ms to 512 ms + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_high_g_durn(u8 *accel_high_g_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel highg duration is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel highg duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_high_g_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_DURN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel highg duration + * from page one register from 0x13 bit 0 to 7 + * + * @param accel_high_g_durn_u8 : The value of accel highg duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The high-g interrupt trigger delay according + * to [highg duration + 1] * 2 ms + * + * in a range from 2 ms to 512 ms + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_high_g_durn(u8 accel_high_g_durn_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of + * accel highg duration*/ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_DURN, accel_high_g_durn_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel highg threshold + * from page one register from 0x14 bit 0 to 7 + * + * @param accel_high_g_thres_u8 : The value of accel highg threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel highg interrupt threshold dependent + * for accel g range + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 7.81mg | 1LSB + * 4g | 15.63mg | 1LSB + * 8g | 31.25mg | 1LSB + * 16g | 62.5mg | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_high_g_thres(u8 *accel_high_g_thres_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, highg threshold is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of highg threshold */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_high_g_thres_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_THRES); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel highg threshold + * from page one register from 0x14 bit 0 to 7 + * + * @param accel_high_g_thres_u8 : The value of accel highg threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel highg interrupt threshold dependent + * for accel g range + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 7.81mg | 1LSB + * 4g | 15.63mg | 1LSB + * 8g | 31.25mg | 1LSB + * 16g | 62.5mg | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_high_g_thres(u8 accel_high_g_thres_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Write the value of + * accel highg threshold */ + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_ACCEL_HIGH_G_THRES, accel_high_g_thres_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_HIGH_G_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the accel slownomotion threshold + * from page one register from 0x15 bit 0 to 7 + * + * @param accel_slow_no_motion_thres_u8 : + * The value of accel slownomotion threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel slow no motion interrupt threshold dependent + * for accel g range + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 3.19mg | 1LSB + * 4g | 7.81mg | 1LSB + * 8g | 15.63mg | 1LSB + * 16g | 31.25mg | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_slow_no_motion_thres(u8 *accel_slow_no_motion_thres_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel slownomotion threshold is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of slownomotion threshold */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLOW_NO_MOTION_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_slow_no_motion_thres_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_SLOW_NO_MOTION_THRES); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the accel slownomotion threshold + * from page one register from 0x15 bit 0 to 7 + * + * @param accel_slow_no_motion_thres_u8 : + * The value of accel slownomotion threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel slow no motion interrupt threshold dependent + * for accel g range + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 3.19mg | 1LSB + * 4g | 7.81mg | 1LSB + * 8g | 15.63mg | 1LSB + * 16g | 31.25mg | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_slow_no_motion_thres(u8 accel_slow_no_motion_thres_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of + * slownomotion threshold */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLOW_NO_MOTION_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, + BNO055_ACCEL_SLOW_NO_MOTION_THRES, + accel_slow_no_motion_thres_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLOW_NO_MOTION_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read accel slownomotion enable + * from page one register from 0x16 bit 0 + * + * @param accel_slow_no_motion_en_u8 : The value of accel slownomotion enable + * accel_slow_no_motion_en_u8 | result + * ------------------------ | -------- + * 0x01 | Slow motion + * 0x00 | No motion + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_slow_no_motion_enable(u8 *accel_slow_no_motion_en_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel slownomotion enable is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of accel slownomotion enable */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLOW_NO_MOTION_ENABLE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_slow_no_motion_en_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_SLOW_NO_MOTION_ENABLE); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write accel slownomotion enable + * from page one register from 0x16 bit 0 + * + * @param accel_slow_no_motion_en_u8 : The value of accel slownomotion enable + * accel_slow_no_motion_en_u8 | result + * ------------------------ | -------- + * 0x01 | Slow motion + * 0x00 | No motion + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_slow_no_motion_enable(u8 accel_slow_no_motion_en_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLOW_NO_MOTION_ENABLE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /* Read the value of + * accel slownomotion enable */ + data_u8r = BNO055_SET_BITSLICE(data_u8r, + BNO055_ACCEL_SLOW_NO_MOTION_ENABLE, + accel_slow_no_motion_en_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLOW_NO_MOTION_ENABLE_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read accel slownomotion duration + * from page one register from 0x16 bit 1 to 6 + * + * @param accel_slow_no_motion_durn_u8 : + * The value of accel slownomotion duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_slow_no_motion_durn(u8 *accel_slow_no_motion_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, accel slownomotion duration is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /*read value of accel slownomotion duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLOW_NO_MOTION_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *accel_slow_no_motion_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_ACCEL_SLOW_NO_MOTION_DURN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write accel slownomotion duration + * from page one register from 0x16 bit 1 to 6 + * + * @param accel_slow_no_motion_durn_u8 : + * The value of accel slownomotion duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_slow_no_motion_durn(u8 accel_slow_no_motion_durn_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLOW_NO_MOTION_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + /*Write the value of accel + * slownomotion duration*/ + data_u8r = BNO055_SET_BITSLICE(data_u8r, + BNO055_ACCEL_SLOW_NO_MOTION_DURN, + accel_slow_no_motion_durn_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_ACCEL_SLOW_NO_MOTION_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro anymotion enable + * from page one register from 0x17 bit 0 to 2 + * + * @param data_u8 : The value of gyro anymotion enable + * data_u8 | result + * ----------------- |------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of gyro anymotion axis selection + * channel_u8 | value + * --------------------------- | ---------- + * BNO055_GYRO_ANY_MOTIONX_AXIS | 0 + * BNO055_GYRO_ANY_MOTIONY_AXIS | 1 + * BNO055_GYRO_ANY_MOTIONZ_AXIS | 2 + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_any_motion_axis_enable(u8 channel_u8, u8 *data_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro anymotion axis is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + switch (channel_u8) + { + case BNO055_GYRO_ANY_MOTION_X_AXIS: + + /* Read the gyro anymotion x enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_X_AXIS); + break; + case BNO055_GYRO_ANY_MOTION_Y_AXIS: + + /* Read the gyro anymotion y enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_Y_AXIS); + break; + case BNO055_GYRO_ANY_MOTION_Z_AXIS: + + /* Read the gyro anymotion z enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_Z_AXIS); + break; + default: + com_rslt = BNO055_OUT_OF_RANGE; + break; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro anymotion enable + * from page one register from 0x17 bit 0 to 2 + * + * @param data_u8 : The value of gyro anymotion enable + * data_u8 | result + * ----------------- |------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of gyro anymotion axis selection + * channel_u8 | value + * --------------------------- | ---------- + * BNO055_GYRO_ANY_MOTIONX_AXIS | 0 + * BNO055_GYRO_ANY_MOTIONY_AXIS | 1 + * BNO055_GYRO_ANY_MOTIONZ_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_any_motion_axis_enable(u8 channel_u8, u8 data_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + switch (channel_u8) + { + case BNO055_GYRO_ANY_MOTION_X_AXIS: + + /* Write the gyro + * anymotion x enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_X_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + case BNO055_GYRO_ANY_MOTION_Y_AXIS: + + /* Write the gyro + * anymotion y enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_Y_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + case BNO055_GYRO_ANY_MOTION_Z_AXIS: + + /* Write the gyro + * anymotion z enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_Z_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + default: + com_rslt = BNO055_OUT_OF_RANGE; + break; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read the gyro highrate enable + * from page one register from 0x17 bit 3 to 5 + * + * @param data_u8 : The value of gyro highrate enable + * data_u8 | result + * ---------------- |------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of gyro highrate axis selection + * channel_u8 | value + * ------------------------ | ---------- + * BNO055_GYRO_HIGHRATE_X_AXIS | 0 + * BNO055_GYRO_HIGHRATE_Y_AXIS | 1 + * BNO055_GYRO_HIGHRATE_Z_AXIS | 2 + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_axis_enable(u8 channel_u8, u8 *data_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate enable is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + switch (channel_u8) + { + case BNO055_GYRO_HIGHRATE_X_AXIS: + + /* Read the gyro highrate x enable */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_X_AXIS); + break; + case BNO055_GYRO_HIGHRATE_Y_AXIS: + + /* Read the gyro highrate y enable */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Y_AXIS); + break; + case BNO055_GYRO_HIGHRATE_Z_AXIS: + + /* Read the gyro highrate z enable */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *data_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Z_AXIS); + break; + default: + com_rslt = BNO055_OUT_OF_RANGE; + break; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write the gyro highrate enable + * from page one register from 0x17 bit 3 to 5 + * + * @param data_u8 : The value of gyro highrate enable + * data_u8 | result + * ---------------- |------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of gyro highrate axis selection + * channel_u8 | value + * ------------------------ | ---------- + * BNO055_GYRO_HIGHRATE_X_AXIS | 0 + * BNO055_GYRO_HIGHRATE_Y_AXIS | 1 + * BNO055_GYRO_HIGHRATE_Z_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_axis_enable(u8 channel_u8, u8 data_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + switch (channel_u8) + { + case BNO055_GYRO_HIGHRATE_X_AXIS: + + /* Write the value of + * gyro highrate x enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_X_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + case BNO055_GYRO_HIGHRATE_Y_AXIS: + + /* Write the value of + * gyro highrate y enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Y_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + case BNO055_GYRO_HIGHRATE_Z_AXIS: + + /* Write the value of + * gyro highrate z enable*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Z_AXIS, data_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_AXIS_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + break; + default: + com_rslt = BNO055_OUT_OF_RANGE; + break; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro anymotion filter + * from page one register from 0x17 bit 6 + * + * @param gyro_any_motion_filter_u8 : The value of gyro anymotion filter + * gyro_any_motion_filter_u8 | result + * --------------------------- |------------ + * 0x00 | BNO055_GYRO_FILTERED_CONFIG + * 0x01 | BNO055_GYRO_UNFILTERED_CONFIG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_any_motion_filter(u8 *gyro_any_motion_filter_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro anymotion filter is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro anymotion filter*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_FILTER_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_any_motion_filter_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_FILTER); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro anymotion filter + * from page one register from 0x17 bit 6 + * + * @param gyro_any_motion_filter_u8 : The value of gyro anymotion filter + * gyro_any_motion_filter_u8 | result + * --------------------------- |------------ + * 0x00 | BNO055_GYRO_FILTERED_CONFIG + * 0x01 | BNO055_GYRO_UNFILTERED_CONFIG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_any_motion_filter(u8 gyro_any_motion_filter_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of + * gyro anymotion filter*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_FILTER_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, + BNO055_GYRO_ANY_MOTION_FILTER, + gyro_any_motion_filter_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_FILTER_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro highrate filter + * from page one register from 0x17 bit 7 + * + * @param gyro_highrate_filter_u8 : The value of gyro highrate filter + * gyro_highrate_filter_u8 | result + * --------------------------- |------------ + * 0x00 | BNO055_GYRO_FILTERED_CONFIG + * 0x01 | BNO055_GYRO_UNFILTERED_CONFIG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_filter(u8 *gyro_highrate_filter_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate filter is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate filter */ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_FILTER_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_filter_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_FILTER); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro highrate filter + * from page one register from 0x17 bit 7 + * + * @param gyro_highrate_filter_u8 : The value of gyro highrate filter + * gyro_highrate_filter_u8 | result + * --------------------------- |------------ + * 0x00 | BNO055_GYRO_FILTERED_CONFIG + * 0x01 | BNO055_GYRO_UNFILTERED_CONFIG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_filter(u8 gyro_highrate_filter_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of + * gyro highrate filter*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_FILTER_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_FILTER, gyro_highrate_filter_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_FILTER_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro highrate x threshold + * from page one register from 0x18 bit 0 to 4 + * + * @param gyro_highrate_x_thres_u8 : The value of gyro x highrate threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_x_thres(u8 *gyro_highrate_x_thres_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate x threshold is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate threshold*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_x_thres_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_X_THRES); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro highrate x threshold + * from page one register from 0x18 bit 0 to 4 + * + * @param gyro_highrate_x_thres_u8 : The value of gyro x highrate threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_x_thres(u8 gyro_highrate_x_thres_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of + * gyro highrate x threshold*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = + BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_X_THRES, gyro_highrate_x_thres_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro highrate x hysteresis + * from page one register from 0x18 bit 5 to 6 + * + * @param gyro_highrate_x_hyst_u8 : The value of gyro highrate x hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_x_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_x_hyst(u8 *gyro_highrate_x_hyst_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page,gyro highrate x hysteresis is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate x hysteresis*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_HYST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_x_hyst_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_X_HYST); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro highrate x hysteresis + * from page one register from 0x18 bit 5 to 6 + * + * @param gyro_highrate_x_hyst_u8 : The value of gyro highrate x hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_x_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_x_hyst(u8 gyro_highrate_x_hyst_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /*Write the value of + * gyro highrate x hysteresis*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_HYST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_X_HYST, gyro_highrate_x_hyst_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_HYST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro highrate x duration + * from page one register from 0x19 bit 0 to 7 + * + * @param gyro_highrate_x_durn_u8 : The value of gyro highrate x duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_x_durn_u8)*2.5ms + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_x_durn(u8 *gyro_highrate_x_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate x duration is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate x duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_x_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_X_DURN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro highrate x duration + * from page one register from 0x19 bit 0 to 7 + * + * @param gyro_highrate_x_durn_u8 : The value of gyro highrate x duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_x_durn_u8)*2.5ms + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_x_durn(u8 gyro_highrate_x_durn_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value + * of gyro highrate x duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_X_DURN, gyro_highrate_x_durn_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_X_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro highrate y threshold + * from page one register from 0x1A bit 0 to 4 + * + * @param gyro_highrate_y_thres_u8 : The value of gyro highrate y threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_y_thres(u8 *gyro_highrate_y_thres_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate y threshold is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate y threshold*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_y_thres_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Y_THRES); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro highrate y threshold + * from page one register from 0x1A bit 0 to 4 + * + * @param gyro_highrate_y_thres_u8 : The value of gyro highrate y threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_y_thres(u8 gyro_highrate_y_thres_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value + * of gyro highrate y threshold*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = + BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Y_THRES, gyro_highrate_y_thres_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro highrate y hysteresis + * from page one register from 0x1A bit 5 to 6 + * + * @param gyro_highrate_y_hyst_u8 : The value of gyro highrate y hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_y_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_y_hyst(u8 *gyro_highrate_y_hyst_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate y hysteresis is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate y hysteresis*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_HYST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_y_hyst_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Y_HYST); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro highrate y hysteresis + * from page one register from 0x1A bit 5 to 6 + * + * @param gyro_highrate_y_hyst_u8 : The value of gyro highrate y hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_y_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_y_hyst(u8 gyro_highrate_y_hyst_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of + * gyro highrate y hysteresis*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_HYST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Y_HYST, gyro_highrate_y_hyst_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_HYST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro highrate y duration + * from page one register from 0x1B bit 0 to 7 + * + * @param gyro_highrate_y_durn_u8 : The value of gyro highrate y duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_y_durn_u8)*2.5ms + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_y_durn(u8 *gyro_highrate_y_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate y duration is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate y duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_y_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Y_DURN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro highrate y duration + * from page one register from 0x1B bit 0 to 7 + * + * @param gyro_highrate_y_durn_u8 : The value of gyro highrate y duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_y_durn_u8)*2.5ms + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_y_durn(u8 gyro_highrate_y_durn_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value + * of gyro highrate y duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Y_DURN, gyro_highrate_y_durn_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Y_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro highrate z threshold + * from page one register from 0x1C bit 0 to 4 + * + * @param gyro_highrate_z_thres_u8 : The value of gyro highrate z threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_z_thres(u8 *gyro_highrate_z_thres_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate z threshold is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate z threshold*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_z_thres_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Z_THRES); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro highrate z threshold + * from page one register from 0x1C bit 0 to 4 + * + * @param gyro_highrate_z_thres_u8 : The value of gyro highrate z threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_z_thres(u8 gyro_highrate_z_thres_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value + * of gyro highrate z threshold*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = + BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Z_THRES, gyro_highrate_z_thres_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro highrate z hysteresis + * from page one register from 0x1C bit 5 to 6 + * + * @param gyro_highrate_z_hyst_u8 : The value of gyro highrate z hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_z_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_z_hyst(u8 *gyro_highrate_z_hyst_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate z hysteresis is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate z hysteresis*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_HYST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_z_hyst_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Z_HYST); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro highrate z hysteresis + * from page one register from 0x1C bit 5 to 6 + * + * @param gyro_highrate_z_hyst_u8 : The value of gyro highrate z hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_z_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_z_hyst(u8 gyro_highrate_z_hyst_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value + * of gyro highrate z hysteresis*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_HYST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Z_HYST, gyro_highrate_z_hyst_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_HYST_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro highrate z duration + * from page one register from 0x1D bit 0 to 7 + * + * @param gyro_highrate_z_durn_u8 : The value of gyro highrate z duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_z_durn_u8)*2.5ms + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_z_durn(u8 *gyro_highrate_z_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro highrate z duration is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro highrate z duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_highrate_z_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Z_DURN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro highrate z duration + * from page one register from 0x1D bit 0 to 7 + * + * @param gyro_highrate_z_durn_u8 : The value of gyro highrate z duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_z_durn_u8)*2.5ms + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_z_durn(u8 gyro_highrate_z_durn_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of + * gyro highrate z duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_HIGHRATE_Z_DURN, gyro_highrate_z_durn_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_HIGHRATE_Z_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro anymotion threshold + * from page one register from 0x1E bit 0 to 6 + * + * @param gyro_any_motion_thres_u8 : The value of gyro anymotion threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro anymotion interrupt threshold dependent + * on the selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 1dps | 1LSB + * 1000 | 0.5dps | 1LSB + * 500 | 0.25dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_any_motion_thres(u8 *gyro_any_motion_thres_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page,gyro anymotion threshold is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro anymotion threshold*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_any_motion_thres_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_THRES); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro anymotion threshold + * from page one register from 0x1E bit 0 to 6 + * + * @param gyro_any_motion_thres_u8 : The value of gyro anymotion threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro anymotion interrupt threshold dependent + * on the selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 1dps | 1LSB + * 1000 | 0.5dps | 1LSB + * 500 | 0.25dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_any_motion_thres(u8 gyro_any_motion_thres_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + s8 pg_stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value + * of gyro anymotion threshold*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = + BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_ANY_MOTION_THRES, gyro_any_motion_thres_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_ANY_MOTION_THRES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro anymotion slope samples + * from page one register from 0x1F bit 0 to 1 + * + * @param gyro_any_motion_slope_samples_u8 : + * The value of gyro anymotion slope samples + * gyro_any_motion_slope_samples_u8 | result + * ---------------------------------- | ----------- + * 0 | 8 samples + * 1 | 16 samples + * 2 | 32 samples + * 3 | 64 samples + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_any_motion_slope_samples(u8 *gyro_any_motion_slope_samples_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro anymotion slope samples is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /*Read the value of gyro anymotion slope samples*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_SLOPE_SAMPLES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_any_motion_slope_samples_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_SLOPE_SAMPLES); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro anymotion slope samples + * from page one register from 0x1F bit 0 to 1 + * + * @param gyro_any_motion_slope_samples_u8 : + * The value of gyro anymotion slope samples + * gyro_any_motion_slope_samples_u8 | result + * ---------------------------------- | ----------- + * 0 | 8 samples + * 1 | 16 samples + * 2 | 32 samples + * 3 | 64 samples + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_any_motion_slope_samples(u8 gyro_any_motion_slope_samples_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of + * gyro anymotion slope samples*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_SLOPE_SAMPLES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, + BNO055_GYRO_SLOPE_SAMPLES, + gyro_any_motion_slope_samples_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_SLOPE_SAMPLES_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode of + * previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} + +/*! + * @brief This API used to read gyro anymotion awake duration + * from page one register from 0x1F bit 2 to 3 + * + * @param gyro_awake_durn_u8 : The value of gyro anymotion awake duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_any_motion_awake_durn(u8 *gyro_awake_durn_u8) +{ + /* Variable used to return value of + * communication routine*/ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /*condition check for page, gyro anymotion awake duration is + * available in the page one*/ + if (p_bno055->page_id != BNO055_PAGE_ONE) + { + /* Write page as one */ + stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + } + if ((stat_s8 == BNO055_SUCCESS) || (p_bno055->page_id == BNO055_PAGE_ONE)) + { + /* Read the value of gyro anymotion awake duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_AWAKE_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + *gyro_awake_durn_u8 = BNO055_GET_BITSLICE(data_u8r, BNO055_GYRO_AWAKE_DURN); + } + else + { + com_rslt = BNO055_ERROR; + } + } + + return com_rslt; +} + +/*! + * @brief This API used to write gyro anymotion awake duration + * from page one register from 0x1F bit 2 to 3 + * + * @param gyro_awake_durn_u8 : The value of gyro anymotion awake duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_any_motion_awake_durn(u8 gyro_awake_durn_u8) +{ + BNO055_RETURN_FUNCTION_TYPE com_rslt = BNO055_ERROR; + u8 data_u8r = BNO055_INIT_VALUE; + s8 stat_s8 = BNO055_ERROR; + s8 pg_stat_s8 = BNO055_ERROR; + u8 prev_opmode_u8 = BNO055_OPERATION_MODE_CONFIG; + + /* Check the struct p_bno055 is empty */ + if (p_bno055 == NULL) + { + return BNO055_E_NULL_PTR; + } + else + { + /* The write operation effective only if the operation + * mode is in config mode, this part of code is checking the + * current operation mode and set the config mode */ + stat_s8 = bno055_get_operation_mode(&prev_opmode_u8); + if (stat_s8 == BNO055_SUCCESS) + { + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + stat_s8 += bno055_set_operation_mode(BNO055_OPERATION_MODE_CONFIG); + } + if (stat_s8 == BNO055_SUCCESS) + { + /* Write page as one */ + pg_stat_s8 = bno055_write_page_id(BNO055_PAGE_ONE); + if (pg_stat_s8 == BNO055_SUCCESS) + { + /* Write the value of gyro + * anymotion awake duration*/ + com_rslt = p_bno055->BNO055_BUS_READ_FUNC(p_bno055->dev_addr, + BNO055_GYRO_AWAKE_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + if (com_rslt == BNO055_SUCCESS) + { + data_u8r = BNO055_SET_BITSLICE(data_u8r, BNO055_GYRO_AWAKE_DURN, gyro_awake_durn_u8); + com_rslt += p_bno055->BNO055_BUS_WRITE_FUNC(p_bno055->dev_addr, + BNO055_GYRO_AWAKE_DURN_REG, + &data_u8r, + BNO055_GEN_READ_WRITE_LENGTH); + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + else + { + com_rslt = BNO055_ERROR; + } + } + if (prev_opmode_u8 != BNO055_OPERATION_MODE_CONFIG) + { + /* set the operation mode + * of previous operation mode*/ + com_rslt += bno055_set_operation_mode(prev_opmode_u8); + } + + return com_rslt; +} diff --git a/lib/hardware/sensors/9dof/bno055_.h b/lib/hardware/sensors/9dof/bno055_.h new file mode 100644 index 00000000..fcdcce58 --- /dev/null +++ b/lib/hardware/sensors/9dof/bno055_.h @@ -0,0 +1,8138 @@ +/** +* Copyright (c) 2020 Bosch Sensortec GmbH. All rights reserved. +* +* BSD-3-Clause +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its +* contributors may be used to endorse or promote products derived from +* this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @file bno055.h +* @date 10/01/2020 +* @version 2.0.6 +* +*/ + +/*! \file bno055.h + * \brief BNO055 Sensor Driver Support Header File */ + +#ifndef __BNO055_H__ +#define __BNO055_H__ + +/****************************************************************/ +/**\name DATA TYPES INCLUDES */ +/************************************************************/ + +/*! + * @brief The following definition uses for define the data types + * + * @note While porting the API please consider the following + * @note Please check the version of C standard + * @note Are you using Linux platform + */ + +/*! + * @brief For the Linux platform support + * Please use the types.h for your data types definitions + */ +#ifdef __KERNEL__ + +#include + +/* singed integer type*/ +typedef int8_t s8; /**< used for signed 8bit */ +typedef int16_t s16; /**< used for signed 16bit */ +typedef int32_t s32; /**< used for signed 32bit */ +typedef int64_t s64; /**< used for signed 64bit */ +typedef u_int8_t u8; /**< used for unsigned 8bit */ +typedef u_int16_t u16; /**< used for unsigned 16bit */ +typedef u_int32_t u32; /**< used for unsigned 32bit */ +typedef u_int64_t u64; /**< used for unsigned 64bit */ + +#else /* ! __KERNEL__ */ + +/********************************************************** + * These definition uses for define the C + * standard version data types + ***********************************************************/ +# if !defined(__STDC_VERSION__) + +/************************************************ +* compiler is C11 C standard +************************************************/ +#if (__STDC_VERSION__ == 201112L) + +/************************************************/ +#include + +/************************************************/ +/*unsigned integer types*/ +typedef uint8_t u8; /**< used for unsigned 8bit */ +typedef uint16_t u16; /**< used for unsigned 16bit */ +typedef uint32_t u32; /**< used for unsigned 32bit */ +typedef uint64_t u64; /**< used for unsigned 64bit */ +/*signed integer types*/ +typedef int8_t s8; /**< used for signed 8bit */ +typedef int16_t s16; /**< used for signed 16bit */ +typedef int32_t s32; /**< used for signed 32bit */ +typedef int64_t s64; /**< used for signed 64bit */ + +/************************************************ +* compiler is C99 C standard +************************************************/ + +#elif (__STDC_VERSION__ == 199901L) + +/* stdint.h is a C99 supported c library. + * which is used to fixed the integer size*/ + +/************************************************/ +#include + +/************************************************/ +/*unsigned integer types*/ +typedef uint8_t u8; /**< used for unsigned 8bit */ +typedef uint16_t u16; /**< used for unsigned 16bit */ +typedef uint32_t u32; /**< used for unsigned 32bit */ +typedef uint64_t u64; /**< used for unsigned 64bit */ +/*signed integer types*/ +typedef int8_t s8; /**< used for signed 8bit */ +typedef int16_t s16; /**< used for signed 16bit */ +typedef int32_t s32; /**< used for signed 32bit */ +typedef int64_t s64; /**< used for signed 64bit */ + +/************************************************ +* compiler is C89 or other C standard +************************************************/ + +#else /* !defined(__STDC_VERSION__) */ + +/*! + * @brief By default it is defined as 32 bit machine configuration + * define your data types based on your + * machine/compiler/controller configuration + */ +#define MACHINE_32_BIT + +/*! @brief + * If your machine support 16 bit + * define the MACHINE_16_BIT + */ +#ifdef MACHINE_16_BIT +#include + +/*signed integer types*/ +typedef signed char s8; /**< used for signed 8bit */ +typedef signed short int s16; /**< used for signed 16bit */ +typedef signed long int s32; /**< used for signed 32bit */ + +#if defined(LONG_MAX) && LONG_MAX == 0x7fffffffffffffffL +typedef long int s64; /**< used for signed 64bit */ +typedef unsigned long int u64; /**< used for unsigned 64bit */ +#elif defined(LLONG_MAX) && (LLONG_MAX == 0x7fffffffffffffffLL) +typedef long long int s64; /**< used for signed 64bit */ +typedef unsigned long long int u64; /**< used for unsigned 64bit */ +#else +#warning Either the correct data type for signed 64 bit integer \ + could not be found, or 64 bit integers are not supported in your environment. +#warning If 64 bit integers are supported on your platform, \ + please set s64 manually. +#endif + +/*unsigned integer types*/ +typedef unsigned char u8; /**< used for unsigned 8bit */ +typedef unsigned short int u16; /**< used for unsigned 16bit */ +typedef unsigned long int u32; /**< used for unsigned 32bit */ + +/* If your machine support 32 bit + * define the MACHINE_32_BIT*/ +#elif defined MACHINE_32_BIT + +/*signed integer types*/ +typedef signed char s8; /**< used for signed 8bit */ +typedef signed short int s16; /**< used for signed 16bit */ +typedef signed int s32; /**< used for signed 32bit */ +typedef signed long long int s64; /**< used for signed 64bit */ +/*unsigned integer types*/ +typedef unsigned char u8; /**< used for unsigned 8bit */ +typedef unsigned short int u16; /**< used for unsigned 16bit */ +typedef unsigned int u32; /**< used for unsigned 32bit */ +typedef unsigned long long int u64; /**< used for unsigned 64bit */ + +/* If your machine support 64 bit + * define the MACHINE_64_BIT*/ +#elif defined MACHINE_64_BIT + +/*signed integer types*/ +typedef signed char s8; /**< used for signed 8bit */ +typedef signed short int s16; /**< used for signed 16bit */ +typedef signed int s32; /**< used for signed 32bit */ +typedef signed long int s64; /**< used for signed 64bit */ +/*unsigned integer types*/ +typedef unsigned char u8; /**< used for unsigned 8bit */ +typedef unsigned short int u16; /**< used for unsigned 16bit */ +typedef unsigned int u32; /**< used for unsigned 32bit */ +typedef unsigned long int u64; /**< used for unsigned 64bit */ + +#else +#warning The data types defined above which not supported \ + define the data types manually +#endif +#endif + +/*** This else will execute for the compilers + * which are not supported the C standards + * Like C89/C99/C11***/ +#else + +/*! + * @brief By default it is defined as 32 bit machine configuration + * define your data types based on your + * machine/compiler/controller configuration + */ +#define MACHINE_32_BIT + +/* If your machine support 16 bit + * define the MACHINE_16_BIT*/ +#ifdef MACHINE_16_BIT +#include + +/*signed integer types*/ +typedef signed char s8; /**< used for signed 8bit */ +typedef signed short int s16; /**< used for signed 16bit */ +typedef signed long int s32; /**< used for signed 32bit */ + +#if defined(LONG_MAX) && LONG_MAX == 0x7fffffffffffffffL +typedef long int s64; /**< used for signed 64bit */ +typedef unsigned long int u64; /**< used for unsigned 64bit */ +#elif defined(LLONG_MAX) && (LLONG_MAX == 0x7fffffffffffffffLL) +typedef long long int s64; /**< used for signed 64bit */ +typedef unsigned long long int u64; /**< used for unsigned 64bit */ +#else +#warning Either the correct data type for signed 64 bit integer \ + could not be found, or 64 bit integers are not supported in your environment. +#warning If 64 bit integers are supported on your platform, \ + please set s64 manually. +#endif + +/*unsigned integer types*/ +typedef unsigned char u8; /**< used for unsigned 8bit */ +typedef unsigned short int u16; /**< used for unsigned 16bit */ +typedef unsigned long int u32; /**< used for unsigned 32bit */ + +/*! @brief If your machine support 32 bit + * define the MACHINE_32_BIT*/ +#elif defined MACHINE_32_BIT + +/*signed integer types*/ +typedef signed char s8; /**< used for signed 8bit */ +typedef signed short int s16; /**< used for signed 16bit */ +typedef signed int s32; /**< used for signed 32bit */ +typedef signed long long int s64; /**< used for signed 64bit */ +/*unsigned integer types*/ +typedef unsigned char u8; /**< used for unsigned 8bit */ +typedef unsigned short int u16; /**< used for unsigned 16bit */ +typedef unsigned int u32; /**< used for unsigned 32bit */ +typedef unsigned long long int u64; /**< used for unsigned 64bit */ + +/* If your machine support 64 bit + * define the MACHINE_64_BIT*/ +#elif defined MACHINE_64_BIT + +/*signed integer types*/ +typedef signed char s8; /**< used for signed 8bit */ +typedef signed short int s16; /**< used for signed 16bit */ +typedef signed int s32; /**< used for signed 32bit */ +typedef signed long int s64; /**< used for signed 64bit */ +/*unsigned integer types*/ +typedef unsigned char u8; /**< used for unsigned 8bit */ +typedef unsigned short int u16; /**< used for unsigned 16bit */ +typedef unsigned int u32; /**< used for unsigned 32bit */ +typedef unsigned long int u64; /**< used for unsigned 64bit */ + +#else +#warning The data types defined above which not supported \ + define the data types manually +#endif +#endif +#endif + +/***************************************************************/ +/**\name BUS READ AND WRITE FUNCTIONS */ +/***************************************************************/ +#define BNO055_WR_FUNC_PTR s8 (*bus_write) \ + (u8, u8, u8 *, u8) + +#define BNO055_BUS_WRITE_FUNC(dev_addr, reg_addr, reg_data, wr_len) \ + bus_write(dev_addr, reg_addr, reg_data, wr_len) + +#define BNO055_RD_FUNC_PTR s8 \ + (*bus_read)(u8, u8, u8 *, u8) + +#define BNO055_BUS_READ_FUNC(dev_addr, reg_addr, reg_data, r_len) \ + bus_read(dev_addr, reg_addr, reg_data, r_len) + +#define BNO055_DELAY_RETURN_TYPE void + +#define BNO055_DELAY_PARAM_TYPES u32 + +#define BNO055_DELAY_FUNC(delay_in_msec) \ + delay_func(delay_in_msec) + +/********************************************************/ +/**\name I2C ADDRESS DEFINITION FOR BNO055 */ +/********************************************************/ +/* bno055 I2C Address */ +#define BNO055_I2C_ADDR1 (0x28) +#define BNO055_I2C_ADDR2 (0x29) + +/***************************************************/ +/**\name REGISTER ADDRESS DEFINITION */ +/***************************************************/ +/* Page id register definition*/ +#define BNO055_PAGE_ID_ADDR (0X07) + +/* PAGE0 REGISTER DEFINITION START*/ +#define BNO055_CHIP_ID_ADDR (0x00) +#define BNO055_ACCEL_REV_ID_ADDR (0x01) +#define BNO055_MAG_REV_ID_ADDR (0x02) +#define BNO055_GYRO_REV_ID_ADDR (0x03) +#define BNO055_SW_REV_ID_LSB_ADDR (0x04) +#define BNO055_SW_REV_ID_MSB_ADDR (0x05) +#define BNO055_BL_REV_ID_ADDR (0X06) + +/* Accel data register*/ +#define BNO055_ACCEL_DATA_X_LSB_ADDR (0X08) +#define BNO055_ACCEL_DATA_X_MSB_ADDR (0X09) +#define BNO055_ACCEL_DATA_Y_LSB_ADDR (0X0A) +#define BNO055_ACCEL_DATA_Y_MSB_ADDR (0X0B) +#define BNO055_ACCEL_DATA_Z_LSB_ADDR (0X0C) +#define BNO055_ACCEL_DATA_Z_MSB_ADDR (0X0D) + +/*Mag data register*/ +#define BNO055_MAG_DATA_X_LSB_ADDR (0X0E) +#define BNO055_MAG_DATA_X_MSB_ADDR (0X0F) +#define BNO055_MAG_DATA_Y_LSB_ADDR (0X10) +#define BNO055_MAG_DATA_Y_MSB_ADDR (0X11) +#define BNO055_MAG_DATA_Z_LSB_ADDR (0X12) +#define BNO055_MAG_DATA_Z_MSB_ADDR (0X13) + +/*Gyro data registers*/ +#define BNO055_GYRO_DATA_X_LSB_ADDR (0X14) +#define BNO055_GYRO_DATA_X_MSB_ADDR (0X15) +#define BNO055_GYRO_DATA_Y_LSB_ADDR (0X16) +#define BNO055_GYRO_DATA_Y_MSB_ADDR (0X17) +#define BNO055_GYRO_DATA_Z_LSB_ADDR (0X18) +#define BNO055_GYRO_DATA_Z_MSB_ADDR (0X19) + +/*Euler data registers*/ +#define BNO055_EULER_H_LSB_ADDR (0X1A) +#define BNO055_EULER_H_MSB_ADDR (0X1B) + +#define BNO055_EULER_R_LSB_ADDR (0X1C) +#define BNO055_EULER_R_MSB_ADDR (0X1D) + +#define BNO055_EULER_P_LSB_ADDR (0X1E) +#define BNO055_EULER_P_MSB_ADDR (0X1F) + +/*Quaternion data registers*/ +#define BNO055_QUATERNION_DATA_W_LSB_ADDR (0X20) +#define BNO055_QUATERNION_DATA_W_MSB_ADDR (0X21) +#define BNO055_QUATERNION_DATA_X_LSB_ADDR (0X22) +#define BNO055_QUATERNION_DATA_X_MSB_ADDR (0X23) +#define BNO055_QUATERNION_DATA_Y_LSB_ADDR (0X24) +#define BNO055_QUATERNION_DATA_Y_MSB_ADDR (0X25) +#define BNO055_QUATERNION_DATA_Z_LSB_ADDR (0X26) +#define BNO055_QUATERNION_DATA_Z_MSB_ADDR (0X27) + +/* Linear acceleration data registers*/ +#define BNO055_LINEAR_ACCEL_DATA_X_LSB_ADDR (0X28) +#define BNO055_LINEAR_ACCEL_DATA_X_MSB_ADDR (0X29) +#define BNO055_LINEAR_ACCEL_DATA_Y_LSB_ADDR (0X2A) +#define BNO055_LINEAR_ACCEL_DATA_Y_MSB_ADDR (0X2B) +#define BNO055_LINEAR_ACCEL_DATA_Z_LSB_ADDR (0X2C) +#define BNO055_LINEAR_ACCEL_DATA_Z_MSB_ADDR (0X2D) + +/*Gravity data registers*/ +#define BNO055_GRAVITY_DATA_X_LSB_ADDR (0X2E) +#define BNO055_GRAVITY_DATA_X_MSB_ADDR (0X2F) +#define BNO055_GRAVITY_DATA_Y_LSB_ADDR (0X30) +#define BNO055_GRAVITY_DATA_Y_MSB_ADDR (0X31) +#define BNO055_GRAVITY_DATA_Z_LSB_ADDR (0X32) +#define BNO055_GRAVITY_DATA_Z_MSB_ADDR (0X33) + +/* Temperature data register*/ +#define BNO055_TEMP_ADDR (0X34) + +/* Status registers*/ +#define BNO055_CALIB_STAT_ADDR (0X35) +#define BNO055_SELFTEST_RESULT_ADDR (0X36) +#define BNO055_INTR_STAT_ADDR (0X37) +#define BNO055_SYS_CLK_STAT_ADDR (0X38) +#define BNO055_SYS_STAT_ADDR (0X39) +#define BNO055_SYS_ERR_ADDR (0X3A) + +/* Unit selection register*/ +#define BNO055_UNIT_SEL_ADDR (0X3B) +#define BNO055_DATA_SELECT_ADDR (0X3C) + +/* Mode registers*/ +#define BNO055_OPR_MODE_ADDR (0X3D) +#define BNO055_PWR_MODE_ADDR (0X3E) + +#define BNO055_SYS_TRIGGER_ADDR (0X3F) +#define BNO055_TEMP_SOURCE_ADDR (0X40) + +/* Axis remap registers*/ +#define BNO055_AXIS_MAP_CONFIG_ADDR (0X41) +#define BNO055_AXIS_MAP_SIGN_ADDR (0X42) + +/* SIC registers*/ +#define BNO055_SIC_MATRIX_0_LSB_ADDR (0X43) +#define BNO055_SIC_MATRIX_0_MSB_ADDR (0X44) +#define BNO055_SIC_MATRIX_1_LSB_ADDR (0X45) +#define BNO055_SIC_MATRIX_1_MSB_ADDR (0X46) +#define BNO055_SIC_MATRIX_2_LSB_ADDR (0X47) +#define BNO055_SIC_MATRIX_2_MSB_ADDR (0X48) +#define BNO055_SIC_MATRIX_3_LSB_ADDR (0X49) +#define BNO055_SIC_MATRIX_3_MSB_ADDR (0X4A) +#define BNO055_SIC_MATRIX_4_LSB_ADDR (0X4B) +#define BNO055_SIC_MATRIX_4_MSB_ADDR (0X4C) +#define BNO055_SIC_MATRIX_5_LSB_ADDR (0X4D) +#define BNO055_SIC_MATRIX_5_MSB_ADDR (0X4E) +#define BNO055_SIC_MATRIX_6_LSB_ADDR (0X4F) +#define BNO055_SIC_MATRIX_6_MSB_ADDR (0X50) +#define BNO055_SIC_MATRIX_7_LSB_ADDR (0X51) +#define BNO055_SIC_MATRIX_7_MSB_ADDR (0X52) +#define BNO055_SIC_MATRIX_8_LSB_ADDR (0X53) +#define BNO055_SIC_MATRIX_8_MSB_ADDR (0X54) + +/* Accelerometer Offset registers*/ +#define BNO055_ACCEL_OFFSET_X_LSB_ADDR (0X55) +#define BNO055_ACCEL_OFFSET_X_MSB_ADDR (0X56) +#define BNO055_ACCEL_OFFSET_Y_LSB_ADDR (0X57) +#define BNO055_ACCEL_OFFSET_Y_MSB_ADDR (0X58) +#define BNO055_ACCEL_OFFSET_Z_LSB_ADDR (0X59) +#define BNO055_ACCEL_OFFSET_Z_MSB_ADDR (0X5A) + +/* Magnetometer Offset registers*/ +#define BNO055_MAG_OFFSET_X_LSB_ADDR (0X5B) +#define BNO055_MAG_OFFSET_X_MSB_ADDR (0X5C) +#define BNO055_MAG_OFFSET_Y_LSB_ADDR (0X5D) +#define BNO055_MAG_OFFSET_Y_MSB_ADDR (0X5E) +#define BNO055_MAG_OFFSET_Z_LSB_ADDR (0X5F) +#define BNO055_MAG_OFFSET_Z_MSB_ADDR (0X60) + +/* Gyroscope Offset registers*/ +#define BNO055_GYRO_OFFSET_X_LSB_ADDR (0X61) +#define BNO055_GYRO_OFFSET_X_MSB_ADDR (0X62) +#define BNO055_GYRO_OFFSET_Y_LSB_ADDR (0X63) +#define BNO055_GYRO_OFFSET_Y_MSB_ADDR (0X64) +#define BNO055_GYRO_OFFSET_Z_LSB_ADDR (0X65) +#define BNO055_GYRO_OFFSET_Z_MSB_ADDR (0X66) + +/* Radius registers*/ +#define BNO055_ACCEL_RADIUS_LSB_ADDR (0X67) +#define BNO055_ACCEL_RADIUS_MSB_ADDR (0X68) +#define BNO055_MAG_RADIUS_LSB_ADDR (0X69) +#define BNO055_MAG_RADIUS_MSB_ADDR (0X6A) + +/* PAGE0 REGISTERS DEFINITION END*/ +/* PAGE1 REGISTERS DEFINITION START*/ +/* Configuration registers*/ +#define BNO055_ACCEL_CONFIG_ADDR (0X08) +#define BNO055_MAG_CONFIG_ADDR (0X09) +#define BNO055_GYRO_CONFIG_ADDR (0X0A) +#define BNO055_GYRO_MODE_CONFIG_ADDR (0X0B) +#define BNO055_ACCEL_SLEEP_CONFIG_ADDR (0X0C) +#define BNO055_GYRO_SLEEP_CONFIG_ADDR (0X0D) +#define BNO055_MAG_SLEEP_CONFIG_ADDR (0x0E) + +/* Interrupt registers*/ +#define BNO055_INT_MASK_ADDR (0X0F) +#define BNO055_INT_ADDR (0X10) +#define BNO055_ACCEL_ANY_MOTION_THRES_ADDR (0X11) +#define BNO055_ACCEL_INTR_SETTINGS_ADDR (0X12) +#define BNO055_ACCEL_HIGH_G_DURN_ADDR (0X13) +#define BNO055_ACCEL_HIGH_G_THRES_ADDR (0X14) +#define BNO055_ACCEL_NO_MOTION_THRES_ADDR (0X15) +#define BNO055_ACCEL_NO_MOTION_SET_ADDR (0X16) +#define BNO055_GYRO_INTR_SETING_ADDR (0X17) +#define BNO055_GYRO_HIGHRATE_X_SET_ADDR (0X18) +#define BNO055_GYRO_DURN_X_ADDR (0X19) +#define BNO055_GYRO_HIGHRATE_Y_SET_ADDR (0X1A) +#define BNO055_GYRO_DURN_Y_ADDR (0X1B) +#define BNO055_GYRO_HIGHRATE_Z_SET_ADDR (0X1C) +#define BNO055_GYRO_DURN_Z_ADDR (0X1D) +#define BNO055_GYRO_ANY_MOTION_THRES_ADDR (0X1E) +#define BNO055_GYRO_ANY_MOTION_SET_ADDR (0X1F) + +/* PAGE1 REGISTERS DEFINITION END*/ + +#define BNO055_MDELAY_DATA_TYPE u32 + +/*< This refers BNO055 return type as s8 */ +#define BNO055_RETURN_FUNCTION_TYPE s8 + +/* Compile switch definition for Float and double*/ +#define BNO055_FLOAT_ENABLE +#define BNO055_DOUBLE_ENABLE + +/**************************************************************/ +/**\name STRUCTURE DEFINITIONS */ +/**************************************************************/ + +/*! + * @brief bno055 struct + */ +struct bno055_t +{ + u8 chip_id; /**< chip_id of bno055 */ + u16 sw_rev_id; /**< software revision id of bno055 */ + u8 page_id; /**< page_id of bno055 */ + u8 accel_rev_id; /**< accel revision id of bno055 */ + u8 mag_rev_id; /**< mag revision id of bno055 */ + u8 gyro_rev_id; /**< gyro revision id of bno055 */ + u8 bl_rev_id; /**< boot loader revision id of bno055 */ + u8 dev_addr; /**< i2c device address of bno055 */ + BNO055_WR_FUNC_PTR; /**< bus write function pointer */ + BNO055_RD_FUNC_PTR; /**> bitname##_POS) + +#define BNO055_SET_BITSLICE(regvar, bitname, val) \ + ((regvar & ~bitname##_MSK) | ((val << bitname##_POS) & bitname##_MSK)) + +/*************************************************/ +/**\name FUNCTION DECLARATION */ +/*************************************************/ +/**************************************************/ +/**\name INITIALIZATION AND REVISION ID FUNCTIONS */ +/**************************************************/ + +/*! + * @brief + * This API is used for initialize + * bus read, bus write function pointers,device + * address,accel revision id, gyro revision id + * mag revision id, software revision id, boot loader + * revision id and page id + * + * @param bno055 - structure pointer + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While changing the parameter of the bno055_t + * consider the following point: + * Changing the reference value of the parameter + * will changes the local copy or local reference + * make sure your changes will not + * affect the reference value of the parameter + * (Better case don't change the reference value of the parameter) + */ +BNO055_RETURN_FUNCTION_TYPE bno055_init(struct bno055_t *bno055); + +/*! + * @brief + * This API gives data to the given register and + * the data is written in the corresponding register address + * + * @param addr_u8 : Address of the register + * @param data_u8 : Data to be written to the register + * @param len_u8 : Length of the Data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_register(u8 addr_u8, u8 *data_u8, u8 len_u8); + +/*! + * @brief This API reads the data from + * the given register address + * + * @param addr_u8 : Address of the register + * @param data_u8 : address of the variable, + * read value will be kept + * @param len_u8 : Length of the data + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_register(u8 addr_u8, u8 *data_u8, u8 len_u8); + +/*! + * @brief This API reads chip id + * from register 0x00 it is a byte of data + * + * + * @param chip_id_u8 : The chip id value 0xA0 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_chip_id(u8 *chip_id_u8); + +/*! + * @brief This API reads software revision id + * from register 0x04 and 0x05 it is a two byte of data + * + * @param sw_id_u8 : The SW revision id + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_sw_rev_id(u16 *sw_id_u8); + +/*! + * @brief This API reads page id + * from register 0x07 it is a byte of data + * + * + * @param page_id_u8 : The value of page id + * + * BNO055_PAGE_ZERO -> 0x00 + * BNO055_PAGE_ONE -> 0x01 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_page_id(u8 *page_id_u8); + +/*! + * @brief This API used to write + * the page id register 0x07 + * + * @param page_id_u8 : The value of page id + * + * BNO055_PAGE_ZERO -> 0x00 + * BNO055_PAGE_ONE -> 0x01 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_page_id(u8 page_id_u8); + +/*! + * @brief This API reads accel revision id + * from register 0x01 it is a byte of value + * + * @param accel_rev_id_u8 : The accel revision id 0xFB + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_rev_id(u8 *accel_rev_id_u8); + +/*! + * @brief This API reads mag revision id + * from register 0x02 it is a byte of value + * + * @param mag_rev_id_u8 : The mag revision id 0x32 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_rev_id(u8 *mag_rev_id_u8); + +/*! + * @brief This API reads gyro revision id + * from register 0x03 it is a byte of value + * + * @param gyro_rev_id_u8 : The gyro revision id 0xF0 + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_rev_id(u8 *gyro_rev_id_u8); + +/*! + * @brief This API used to read boot loader revision id + * from register 0x06 it is a byte of value + * + * @param bl_rev_id_u8 : The boot loader revision id + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_bl_rev_id(u8 *bl_rev_id_u8); + +/**************************************************/ +/**\name ACCEL DATA READ FUNCTIONS */ +/**************************************************/ + +/*! + * @brief This API reads acceleration data X values + * from register 0x08 and 0x09 it is a two byte data + * + * + * + * + * @param accel_x_s16 : The X raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_x(s16 *accel_x_s16); + +/*! + * @brief This API reads acceleration data Y values + * from register 0x0A and 0x0B it is a two byte data + * + * + * + * + * @param accel_y_s16 : The Y raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_y(s16 *accel_y_s16); + +/*! + * @brief This API reads acceleration data z values + * from register 0x0C and 0x0D it is a two byte data + * + * + * + * + * @param accel_z_s16 : The z raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_z(s16 *accel_z_s16); + +/*! + * @brief This API reads acceleration data xyz values + * from register 0x08 to 0x0D it is a six byte data + * + * + * @param accel : The value of accel xyz data + * + * Parameter | result + * --------- | ----------------- + * x | The accel x data + * y | The accel y data + * z | The accel z data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_xyz(struct bno055_accel_t *accel); + +/**************************************************/ +/**\name MAG DATA READ FUNCTIONS */ +/**************************************************/ + +/*! + * @brief This API reads mag data x values + * from register 0x0E and 0x0F it is a two byte data + * + * + * + * + * @param mag_x_s16 : The x raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_x(s16 *mag_x_s16); + +/*! + * @brief This API reads mag data y values + * from register 0x10 and 0x11 it is a two byte data + * + * + * + * + * @param mag_y_s16 : The y raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_y(s16 *mag_y_s16); + +/*! + * @brief This API reads mag data z values + * from register 0x12 and 0x13 it is a two byte data + * + * + * + * + * @param mag_z_s16 : The z raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_z(s16 *mag_z_s16); + +/*! + * @brief This API reads mag data xyz values + * from register 0x0E to 0x13 it is a six byte data + * + * + * @param mag : The mag xyz values + * + * Parameter | result + * --------- | ----------------- + * x | The mag x data + * y | The mag y data + * z | The mag z data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_xyz(struct bno055_mag_t *mag); + +/**************************************************/ +/**\name GYRO DATA READ FUNCTIONS */ +/**************************************************/ + +/*! + * @brief This API reads gyro data x values + * from register 0x14 and 0x15 it is a two byte data + * + * + * + * + * @param gyro_x_s16 : The x raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_x(s16 *gyro_x_s16); + +/*! + * @brief This API reads gyro data y values + * from register 0x16 and 0x17 it is a two byte data + * + * + * + * + * @param gyro_y_s16 : The y raw data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_y(s16 *gyro_y_s16); + +/*! + * @brief This API reads gyro data z values + * from register 0x18 and 0x19 it is a two byte data + * + * @param gyro_z_s16 : The z raw data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_z(s16 *gyro_z_s16); + +/*! + * @brief This API reads gyro data xyz values + * from register 0x14 to 0x19 it is a six byte data + * + * + * @param gyro : The value of gyro xyz data's + * + * Parameter | result + * --------- | ----------------- + * x | The gyro x data + * y | The gyro y data + * z | The gyro z data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_xyz(struct bno055_gyro_t *gyro); + +/**************************************************/ +/**\name EULER DATA READ FUNCTIONS */ +/**************************************************/ + +/*! + * @brief This API reads gyro data z values + * from register 0x1A and 0x1B it is a two byte data + * + * @param euler_h_s16 : The raw h data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_euler_h(s16 *euler_h_s16); + +/*! + * @brief This API reads Euler data r values + * from register 0x1C and 0x1D it is a two byte data + * + * @param euler_r_s16 : The raw r data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_euler_r(s16 *euler_r_s16); + +/*! + * @brief This API reads Euler data p values + * from register 0x1E and 0x1F it is a two byte data + * + * @param euler_p_s16 : The raw p data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_euler_p(s16 *euler_p_s16); + +/*! + * @brief This API reads Euler data hrp values + * from register 0x1A to 0x1F it is a six byte data + * + * + * @param euler : The Euler hrp data's + * + * Parameter | result + * --------- | ----------------- + * h | The Euler h data + * r | The Euler r data + * p | The Euler p data + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_euler_hrp(struct bno055_euler_t *euler); + +/**************************************************/ +/**\name QUATERNION DATA READ FUNCTIONS */ +/**************************************************/ + +/*! + * @brief This API reads quaternion data w values + * from register 0x20 and 0x21 it is a two byte data + * + * @param quaternion_w_s16 : The raw w data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_quaternion_w(s16 *quaternion_w_s16); + +/*! + * @brief This API reads quaternion data x values + * from register 0x22 and 0x23 it is a two byte data + * + * @param quaternion_x_s16 : The raw x data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_quaternion_x(s16 *quaternion_x_s16); + +/*! + * @brief This API reads quaternion data y values + * from register 0x24 and 0x25 it is a two byte data + * + * @param quaternion_y_s16 : The raw y data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_quaternion_y(s16 *quaternion_y_s16); + +/*! + * @brief This API reads quaternion data z values + * from register 0x26 and 0x27 it is a two byte data + * + * @param quaternion_z_s16 : The raw z data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_quaternion_z(s16 *quaternion_z_s16); + +/*! + * @brief This API reads Quaternion data wxyz values + * from register 0x20 to 0x27 it is a six byte data + * + * + * @param quaternion : The value of quaternion wxyz data's + * + * Parameter | result + * --------- | ----------------- + * w | The quaternion w data + * x | The quaternion x data + * y | The quaternion y data + * z | The quaternion z data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_quaternion_wxyz(struct bno055_quaternion_t *quaternion); + +/**************************************************/ +/**\name LINEAR ACCEL DATA READ FUNCTIONS */ +/**************************************************/ + +/*! + * @brief This API reads Linear accel data x values + * from register 0x29 and 0x2A it is a two byte data + * + * @param linear_accel_x_s16 : The raw x data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_linear_accel_x(s16 *linear_accel_x_s16); + +/*! + * @brief This API reads Linear accel data x values + * from register 0x2B and 0x2C it is a two byte data + * + * @param linear_accel_y_s16 : The raw y data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_linear_accel_y(s16 *linear_accel_y_s16); + +/*! + * @brief This API reads Linear accel data x values + * from register 0x2C and 0x2D it is a two byte data + * + * @param linear_accel_z_s16 : The raw z data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_linear_accel_z(s16 *linear_accel_z_s16); + +/*! + * @brief This API reads Linear accel data xyz values + * from register 0x28 to 0x2D it is a six byte data + * + * + * @param linear_accel : The value of linear accel xyz data's + * + * Parameter | result + * --------- | ----------------- + * x | The linear accel x data + * y | The linear accel y data + * z | The linear accel z data + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_linear_accel_xyz(struct bno055_linear_accel_t *linear_accel); + +/**************************************************/ +/**\name GRAVITY DATA READ FUNCTIONS */ +/**************************************************/ + +/*! + * @brief This API reads gravity data x values + * from register 0x2E and 0x2F it is a two byte data + * + * @param gravity_x_s16 : The raw x data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gravity_x(s16 *gravity_x_s16); + +/*! + * @brief This API reads gravity data y values + * from register 0x30 and 0x31 it is a two byte data + * + * @param gravity_y_s16 : The raw y data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gravity_y(s16 *gravity_y_s16); + +/*! + * @brief This API reads gravity data z values + * from register 0x32 and 0x33 it is a two byte data + * + * @param gravity_z_s16 : The raw z data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gravity_z(s16 *gravity_z_s16); + +/*! + * @brief This API reads gravity data xyz values + * from register 0x2E to 0x33 it is a six byte data + * + * + * @param gravity : The value of gravity xyz data's + * + * Parameter | result + * --------- | ----------------- + * x | The gravity x data + * y | The gravity y data + * z | The gravity z data + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gravity_xyz(struct bno055_gravity_t *gravity); + +/**************************************************/ +/**\name TEMPERATURE DATA READ FUNCTIONS */ +/**************************************************/ + +/*! + * @brief This API reads temperature values + * from register 0x33 it is a byte data + * + * @param temp_s8 : The raw temperature data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_temp_data(s8 *temp_s8); + +#ifdef BNO055_FLOAT_ENABLE + +/********************************************************************/ +/**\name FUNCTIONS FOR READING ACCEL DATA OUTPUT AS FLOAT PRECISION */ +/********************************************************************/ + +/*! + * @brief This API is used to convert the accel x raw data + * to meterpersecseq output as float + * + * @param accel_x_f : The accel x meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_x_msq(float *accel_x_f); + +/*! + * @brief This API is used to convert the accel x raw data + * to meterpersecseq output as float + * + * @param accel_y_f : The accel y meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_y_msq(float *accel_y_f); + +/*! + * @brief This API is used to convert the accel z raw data + * to meterpersecseq output as float + * + * @param accel_z_f : The accel z meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_z_msq(float *accel_z_f); + +/*! + * @brief This API is used to convert the accel y raw data + * to millig output as float + * + * @param accel_x_f : The accel y millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_x_mg(float *accel_x_f); + +/*! + * @brief This API is used to convert the accel y raw data + * to millig output as float + * + * @param accel_y_f : The accel y millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_y_mg(float *accel_y_f); + +/*! + * @brief This API is used to convert the accel z raw data + * to millig output as float + * + * @param accel_z_f : The accel z millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_z_mg(float *accel_z_f); + +/*! + * @brief This API is used to convert the accel xyz raw data + * to meterpersecseq output as float + * + * @param accel_xyz : The meterpersecseq data of accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of accel + * y | meterpersecseq data of accel + * z | meterpersecseq data of accel + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_xyz_msq(struct bno055_accel_float_t *accel_xyz); + +/*! + * @brief This API is used to convert the accel xyz raw data + * to millig output as float + * + * @param accel_xyz : The millig data of accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | millig data of accel + * y | millig data of accel + * z | millig data of accel + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_accel_xyz_mg(struct bno055_accel_float_t *accel_xyz); + +/********************************************************************/ +/**\name FUNCTIONS FOR READING MAG DATA OUTPUT AS FLOAT PRECISION */ +/********************************************************************/ + +/*! + * @brief This API is used to convert the mag x raw data + * to microTesla output as float + * + * @param mag_x_f : The mag x microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_mag_x_uT(float *mag_x_f); + +/*! + * @brief This API is used to convert the mag y raw data + * to microTesla output as float + * + * @param mag_y_f : The mag y microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_mag_y_uT(float *mag_y_f); + +/*! + * @brief This API is used to convert the mag z raw data + * to microTesla output as float + * + * @param mag_z_f : The mag z microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_mag_z_uT(float *mag_z_f); + +/*! + * @brief This API is used to convert the mag yz raw data + * to microTesla output as float + * + * @param mag_xyz_data : The microTesla data of mag xyz + * + * Parameter | result + * --------- | ----------------- + * x | microTesla data of mag + * y | microTesla data of mag + * z | microTesla data of mag + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_mag_xyz_uT(struct bno055_mag_float_t *mag_xyz_data); + +/********************************************************************/ +/**\name FUNCTIONS FOR READING GYRO DATA OUTPUT AS FLOAT PRECISION */ +/********************************************************************/ + +/*! + * @brief This API is used to convert the gyro x raw data + * to dps output as float + * + * @param gyro_x_f : The gyro x dps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_x_dps(float *gyro_x_f); + +/*! + * @brief This API is used to convert the gyro x raw data + * to rps output as float + * + * @param gyro_x_f : The gyro x dps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_x_rps(float *gyro_x_f); + +/*! + * @brief This API is used to convert the gyro y raw data + * to dps output as float + * + * @param gyro_y_f : The gyro y dps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_y_dps(float *gyro_y_f); + +/*! + * @brief This API is used to convert the gyro y raw data + * to rps output as float + * + * @param gyro_y_f : The gyro y dps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_y_rps(float *gyro_y_f); + +/*! + * @brief This API is used to convert the gyro z raw data + * to dps output as float + * + * @param gyro_z_f : The gyro z dps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_z_dps(float *gyro_z_f); + +/*! + * @brief This API is used to convert the gyro z raw data + * to rps output as float + * + * @param gyro_z_f : The gyro z rps float data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_z_rps(float *gyro_z_f); + +/*! + * @brief This API is used to convert the gyro xyz raw data + * to dps output as float + * + * @param gyro_xyz_data : The dps data of gyro xyz + * + * Parameter | result + * --------- | ----------------- + * x | dps data of gyro + * y | dps data of gyro + * z | dps data of gyro + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_xyz_dps(struct bno055_gyro_float_t *gyro_xyz_data); + +/*! + * @brief This API is used to convert the gyro xyz raw data + * to rps output as float + * + * @param gyro_xyz_data : The rps data of gyro xyz + * + * Parameter | result + * --------- | ----------------- + * x | rps data of gyro + * y | rps data of gyro + * z | rps data of gyro + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gyro_xyz_rps(struct bno055_gyro_float_t *gyro_xyz_data); + +/********************************************************************/ +/**\name FUNCTIONS FOR READING EULER DATA OUTPUT AS FLOAT PRECISION */ +/********************************************************************/ + +/*! + * @brief This API is used to convert the Euler h raw data + * to degree output as float + * + * @param euler_h_f : The float value of Euler h degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_h_deg(float *euler_h_f); + +/*! + * @brief This API is used to convert the Euler h raw data + * to radians output as float + * + * @param euler_h_f : The float value of Euler h radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_h_rad(float *euler_h_f); + +/*! + * @brief This API is used to convert the Euler r raw data + * to degree output as float + * + * @param euler_r_f : The float value of Euler r degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_r_deg(float *euler_r_f); + +/*! + * @brief This API is used to convert the Euler r raw data + * to radians output as float + * + * @param euler_r_f : The float value of Euler r radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_r_rad(float *euler_r_f); + +/*! + * @brief This API is used to convert the Euler p raw data + * to degree output as float + * + * @param euler_p_f : The float value of Euler p degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_p_deg(float *euler_p_f); + +/*! + * @brief This API is used to convert the Euler p raw data + * to radians output as float + * + * @param euler_p_f : The float value of Euler p radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_p_rad(float *euler_p_f); + +/*! + * @brief This API is used to convert the Euler hrp raw data + * to degree output as float + * + * @param euler_hpr : The degree data of Euler hrp + * + * Parameter | result + * --------- | ----------------- + * h | degree data of Euler + * r | degree data of Euler + * p | degree data of Euler + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_hpr_deg(struct bno055_euler_float_t *euler_hpr); + +/*! + * @brief This API is used to convert the Euler xyz raw data + * to radians output as float + * + * @param euler_hpr : The radians data of Euler hrp + * + * Parameter | result + * --------- | ----------------- + * h | radians data of Euler + * r | radians data of Euler + * p | radians data of Euler + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_euler_hpr_rad(struct bno055_euler_float_t *euler_hpr); + +/***************************************************************************/ +/**\name FUNCTIONS FOR READING LINEAR ACCEL DATA OUTPUT AS FLOAT PRECISION */ +/**************************************************************************/ + +/*! + * @brief This API is used to convert the linear + * accel x raw data to meterpersecseq output as float + * + * @param linear_accel_x_f : The float value of linear accel x meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_linear_accel_x_msq(float *linear_accel_x_f); + +/*! + * @brief This API is used to convert the linear + * accel y raw data to meterpersecseq output as float + * + * @param linear_accel_y_f : The float value of linear accel y meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_linear_accel_y_msq(float *linear_accel_y_f); + +/*! + * @brief This API is used to convert the linear + * accel z raw data to meterpersecseq output as float + * + * @param linear_accel_z_f : The float value of linear accel z meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_linear_accel_z_msq(float *linear_accel_z_f); + +/*! + * @brief This API is used to convert the linear accel xyz raw data + * to meterpersecseq output as float + * + * @param linear_accel_xyz : The meterpersecseq data of linear accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of linear accel + * y | meterpersecseq data of linear accel + * z | meterpersecseq data of linear accel + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_linear_accel_xyz_msq( + struct bno055_linear_accel_float_t *linear_accel_xyz); + +/********************************************************************/ +/**\name FUNCTIONS FOR READING GRAVITY DATA OUTPUT AS FLOAT PRECISION */ +/********************************************************************/ + +/*! + * @brief This API is used to convert the gravity + * x raw data to meterpersecseq output as float + * + * @param gravity_x_f : The float value of gravity x meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_float_x_msq(float *gravity_x_f); + +/*! + * @brief This API is used to convert the gravity + * y raw data to meterpersecseq output as float + * + * @param gravity_y_f : The float value of gravity y meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_float_y_msq(float *gravity_y_f); + +/*! + * @brief This API is used to convert the gravity + * z raw data to meterpersecseq output as float + * + * @param gravity_z_f : The float value of gravity z meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_float_z_msq(float *gravity_z_f); + +/*! + * @brief This API is used to convert the gravity xyz raw data + * to meterpersecseq output as float + * + * @param gravity_xyz : The meterpersecseq data of gravity xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of gravity + * y | meterpersecseq data of gravity + * z | meterpersecseq data of gravity + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_gravity_xyz_msq(struct bno055_gravity_float_t *gravity_xyz); + +/**************************************************************************/ +/**\name FUNCTIONS FOR READING TEMPERATURE DATA OUTPUT AS FLOAT PRECISION */ +/*************************************************************************/ + +/*! + * @brief This API is used to convert the temperature + * data to Fahrenheit output as float + * + * @param temp_f : The float value of temperature Fahrenheit + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_temp_fahrenheit(float *temp_f); + +/*! + * @brief This API is used to convert the temperature + * data to Celsius output as float + * + * @param temp_f : The float value of temperature Celsius + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_float_temp_celsius(float *temp_f); + +#endif +#ifdef BNO055_DOUBLE_ENABLE + +/**************************************************************************/ +/**\name FUNCTIONS FOR READING ACCEL DATA OUTPUT AS DOUBLE PRECISION */ +/*************************************************************************/ + +/*! + * @brief This API is used to convert the accel x raw data + * to meterpersecseq output as double + * + * @param accel_x_d : The accel x meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_x_msq(double *accel_x_d); + +/*! + * @brief This API is used to convert the accel y raw data + * to meterpersecseq output as double + * + * @param accel_y_d : The accel y meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_y_msq(double *accel_y_d); + +/*! + * @brief This API is used to convert the accel z raw data + * to meterpersecseq output as double + * + * @param accel_z_d : The accel z meterpersecseq data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_z_msq(double *accel_z_d); + +/*! + * @brief This API is used to convert the accel x raw data + * to millig output as double + * + * @param accel_x_d : The accel x millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_x_mg(double *accel_x_d); + +/*! + * @brief This API is used to convert the accel y raw data + * to millig output as double + * + * @param accel_y_d : The accel y millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_y_mg(double *accel_y_d); + +/*! + * @brief This API is used to convert the accel z raw data + * to millig output as double + * + * @param accel_z_d : The accel z millig data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_z_mg(double *accel_z_d); + +/*! + * @brief This API is used to convert the accel xyz raw data + * to meterpersecseq output as double + * + * @param accel_xyz : The meterpersecseq data of accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of accel + * y | meterpersecseq data of accel + * z | meterpersecseq data of accel + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_xyz_msq(struct bno055_accel_double_t *accel_xyz); + +/*! + * @brief This API is used to convert the accel xyz raw data + * to millig output as double + * + * @param accel_xyz : The millig data of accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | millig data of accel + * y | millig data of accel + * z | millig data of accel + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_accel_xyz_mg(struct bno055_accel_double_t *accel_xyz); + +/**************************************************************************/ +/**\name FUNCTIONS FOR READING MAG DATA OUTPUT AS DOUBLE PRECISION */ +/*************************************************************************/ + +/*! + * @brief This API is used to convert the mag x raw data + * to microTesla output as double + * + * @param mag_x_d : The mag x microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_mag_x_uT(double *mag_x_d); + +/*! + * @brief This API is used to convert the mag x raw data + * to microTesla output as double + * + * @param mag_y_d : The mag x microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_mag_y_uT(double *mag_y_d); + +/*! + * @brief This API is used to convert the mag z raw data + * to microTesla output as double + * + * @param mag_z_d : The mag z microTesla data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_mag_z_uT(double *mag_z_d); + +/*! + * @brief This API is used to convert the mag yz raw data + * to microTesla output as double + * + * @param mag_xyz : The microTesla data of mag xyz + * + * Parameter | result + * --------- | ----------------- + * x | microTesla data of mag + * y | microTesla data of mag + * z | microTesla data of mag + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_mag_xyz_uT(struct bno055_mag_double_t *mag_xyz); + +/**************************************************************************/ +/**\name FUNCTIONS FOR READING GYRO DATA OUTPUT AS DOUBLE PRECISION */ +/*************************************************************************/ + +/*! + * @brief This API is used to convert the gyro x raw data + * to dps output as double + * + * @param gyro_x_d : The gyro x dps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_x_dps(double *gyro_x_d); + +/*! + * @brief This API is used to convert the gyro y raw data + * to dps output as double + * + * @param gyro_y_d : The gyro y dps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_y_dps(double *gyro_y_d); + +/*! + * @brief This API is used to convert the gyro z raw data + * to dps output as double + * + * @param gyro_z_d : The gyro z dps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_z_dps(double *gyro_z_d); + +/*! + * @brief This API is used to convert the gyro x raw data + * to rps output as double + * + * @param gyro_x_d : The gyro x dps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_x_rps(double *gyro_x_d); + +/*! + * @brief This API is used to convert the gyro y raw data + * to rps output as double + * + * @param gyro_y_d : The gyro y dps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_y_rps(double *gyro_y_d); + +/*! + * @brief This API is used to convert the gyro z raw data + * to rps output as double + * + * @param gyro_z_d : The gyro z rps double data + * + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_z_rps(double *gyro_z_d); + +/*! + * @brief This API is used to convert the gyro xyz raw data + * to dps output as double + * + * @param gyro_xyz : The dps data of gyro xyz + * + * Parameter | result + * --------- | ----------------- + * x | dps data of gyro + * y | dps data of gyro + * z | dps data of gyro + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_xyz_dps(struct bno055_gyro_double_t *gyro_xyz); + +/*! + * @brief This API is used to convert the gyro xyz raw data + * to rps output as double + * + * @param gyro_xyz : The rps data of gyro xyz + * + * Parameter | result + * --------- | ----------------- + * x | rps data of gyro + * y | rps data of gyro + * z | rps data of gyro + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gyro_xyz_rps(struct bno055_gyro_double_t *gyro_xyz); + +/**************************************************************************/ +/**\name FUNCTIONS FOR READING EULER DATA OUTPUT AS DOUBLE PRECISION */ +/*************************************************************************/ + +/*! + * @brief This API is used to convert the Euler h raw data + * to degree output as double + * + * @param euler_h_d : The double value of Euler h degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_h_deg(double *euler_h_d); + +/*! + * @brief This API is used to convert the Euler p raw data + * to degree output as double + * + * @param euler_p_d : The double value of Euler p degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_p_deg(double *euler_p_d); + +/*! + * @brief This API is used to convert the Euler r raw data + * to degree output as double + * + * @param euler_r_d : The double value of Euler r degree + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_r_deg(double *euler_r_d); + +/*! + * @brief This API is used to convert the Euler h raw data + * to radians output as double + * + * @param euler_h_d : The double value of Euler h radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_h_rad(double *euler_h_d); + +/*! + * @brief This API is used to convert the Euler p raw data + * to radians output as double + * + * @param euler_p_d : The double value of Euler p radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_p_rad(double *euler_p_d); + +/*! + * @brief This API is used to convert the Euler r raw data + * to radians output as double + * + * @param euler_r_d : The double value of Euler r radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_r_rad(double *euler_r_d); + +/*! + * @brief This API is used to convert the Euler hpr raw data + * to degree output as double + * + * @param euler_hpr : The degree data of Euler hpr + * + * Parameter | result + * --------- | ----------------- + * h | degree data of Euler + * r | degree data of Euler + * p | degree data of Euler + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_hpr_deg(struct bno055_euler_double_t *euler_hpr); + +/*! + * @brief This API is used to convert the Euler hpr raw data + * to radians output as double + * + * @param euler_hpr : The radians data of Euler hpr + * + * Parameter | result + * --------- | ----------------- + * h | radians data of Euler + * r | radians data of Euler + * p | radians data of Euler + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_euler_hpr_rad(struct bno055_euler_double_t *euler_hpr); + +/****************************************************************************/ +/**\name FUNCTIONS FOR READING LINEAR ACCEL DATA OUTPUT AS DOUBLE PRECISION */ +/****************************************************************************/ + +/*! + * @brief This API is used to convert the linear + * accel x raw data to meterpersecseq output as double + * + * @param linear_accel_x_d : The double value of + * linear accel x meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_linear_accel_x_msq(double *linear_accel_x_d); + +/*! + * @brief This API is used to convert the linear + * accel y raw data to meterpersecseq output as double + * + * @param linear_accel_y_d : The double value of + * linear accel y meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_linear_accel_y_msq(double *linear_accel_y_d); + +/*! + * @brief This API is used to convert the linear + * accel z raw data to meterpersecseq output as double + * + * @param linear_accel_z_d : The double value of + * linear accel z meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_linear_accel_z_msq(double *linear_accel_z_d); + +/*! + * @brief This API is used to convert the linear accel xyz raw data + * to meterpersecseq output as double + * + * @param linear_accel_xyz : The meterpersecseq data of linear accel xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of linear accel + * y | meterpersecseq data of linear accel + * z | meterpersecseq data of linear accel + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_linear_accel_xyz_msq( + struct bno055_linear_accel_double_t *linear_accel_xyz); + +/**************************************************************************/ +/**\name FUNCTIONS FOR READING GRAVITY DATA OUTPUT AS DOUBLE PRECISION */ +/*************************************************************************/ + +/*! + * @brief This API is used to convert the gravity + * x raw data to meterpersecseq output as double + * + * @param gravity_x_d : The double value of gravity x meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_double_x_msq(double *gravity_x_d); + +/*! + * @brief This API is used to convert the gravity + * y raw data to meterpersecseq output as double + * + * @param gravity_y_d : The double value of gravity y meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_double_y_msq(double *gravity_y_d); + +/*! + * @brief This API is used to convert the gravity + * z raw data to meterpersecseq output as double + * + * @param gravity_z_d : The double value of gravity z meterpersecseq + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_gravity_double_z_msq(double *gravity_z_d); + +/*! + * @brief This API is used to convert the gravity xyz raw data + * to meterpersecseq output as double + * + * @param gravity_xyz : The meterpersecseq data of gravity xyz + * + * Parameter | result + * --------- | ----------------- + * x | meterpersecseq data of gravity + * y | meterpersecseq data of gravity + * z | meterpersecseq data of gravity + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_gravity_xyz_msq(struct bno055_gravity_double_t *gravity_xyz); + +/**************************************************************************/ +/**\name FUNCTIONS FOR READING TEMPERATURE DATA OUTPUT AS DOUBLE PRECISION*/ +/*************************************************************************/ + +/*! + * @brief This API is used to convert the temperature + * data to Fahrenheit output as double + * + * @param temp_d : The double value of temperature Fahrenheit + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_temp_fahrenheit(double *temp_d); + +/*! + * @brief This API is used to convert the temperature + * data to Celsius output as double + * + * @param temp_d : The double value of temperature Celsius + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_convert_double_temp_celsius(double *temp_d); + +#endif + +/**************************************************************************/ +/**\name FUNCTIONS FOR READING ACCEL,MAG,GYRO AND SYSTEM CALIBRATION STATUS*/ +/*************************************************************************/ + +/*! + * @brief This API used to read + * mag calibration status from register from 0x35 bit 0 and 1 + * + * @param mag_calib_u8 : The value of mag calib status + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_calib_stat(u8 *mag_calib_u8); + +/*! + * @brief This API used to read + * accel calibration status from register from 0x35 bit 2 and 3 + * + * @param accel_calib_u8 : The value of accel calib status + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_calib_stat(u8 *accel_calib_u8); + +/*! + * @brief This API used to read + * gyro calibration status from register from 0x35 bit 4 and 5 + * + * @param gyro_calib_u8 : The value of gyro calib status + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_calib_stat(u8 *gyro_calib_u8); + +/*! + * @brief This API used to read + * system calibration status from register from 0x35 bit 6 and 7 + * + * @param sys_calib_u8 : The value of system calib status + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_sys_calib_stat(u8 *sys_calib_u8); + +/******************************************************************/ +/**\name FUNCTIONS FOR READING ACCEL,MAG,GYRO AND SYSTEM SELF TEST */ +/******************************************************************/ + +/*! + * @brief This API used to read + * self test of accel from register from 0x36 bit 0 + * + * @param selftest_accel_u8 : The value of self test of accel + * + * selftest_accel_u8 | result + * -------------------- | --------------------- + * 0x00 | indicates test failed + * 0x01 | indicated test passed + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_selftest_accel(u8 *selftest_accel_u8); + +/*! + * @brief This API used to read + * self test of mag from register from 0x36 bit 1 + * + * @param selftest_mag_u8 : The value of self test of mag + * + * selftest_mag_u8 | result + * -------------------- | --------------------- + * 0x00 | indicates test failed + * 0x01 | indicated test passed + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_selftest_mag(u8 *selftest_mag_u8); + +/*! + * @brief This API used to read + * self test of gyro from register from 0x36 bit 2 + * + * @param selftest_gyro_u8 : The value of self test of gyro + * + * selftest_gyro_u8 | result + * -------------------- | --------------------- + * 0x00 | indicates test failed + * 0x01 | indicated test passed + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_selftest_gyro(u8 *selftest_gyro_u8); + +/*! + * @brief This API used to read + * self test of micro controller from register from 0x36 bit 3 + * + * @param selftest_mcu_u8 : The value of self test of micro controller + * + * selftest_mcu_u8 | result + * -------------------- | --------------------- + * 0x00 | indicates test failed + * 0x01 | indicated test passed + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_selftest_mcu(u8 *selftest_mcu_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR READING GYRO INTERRUPT STATUS */ +/*****************************************************/ + +/*! + * @brief This API used to read the stat_s8 of + * gyro anymotion interrupt from register from 0x37 bit 2 + * + * @param gyro_any_motion_u8 : The value of gyro anymotion interrupt + * + * gyro_any_motion_u8 | result + * -------------------- | --------------------- + * 0x00 | indicates no interrupt triggered + * 0x01 | indicates interrupt triggered + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro anymotion interrupt can be BNO055_BIT_ENABLE + * by the following APIs + * + * bno055_set_intr_mask_gyro_any_motion() + * + * bno055_set_intr_gyro_any_motion() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_stat_gyro_any_motion(u8 *gyro_any_motion_u8); + +/*! + * @brief This API used to read the stat_s8 of + * gyro highrate interrupt from register from 0x37 bit 3 + * + * @param gyro_highrate_u8 : The value of gyro highrate interrupt + * + * gyro_highrate_u8 | result + * ------------------- | --------------------- + * 0x00 | indicates no interrupt triggered + * 0x01 | indicates interrupt triggered + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate interrupt can be configured + * by the following APIs + * + * bno055_set_intr_mask_gyro_highrate() + * + * bno055_set_intr_gyro_highrate() + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_stat_gyro_highrate(u8 *gyro_highrate_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR READING ACCEL INTERRUPT STATUS */ +/*****************************************************/ + +/*! + * @brief This API used to read the status of + * accel highg interrupt from register from 0x37 bit 5 + * + * @param accel_high_g_u8 : The value of accel highg interrupt + * + * accel_high_g_u8 | result + * ------------------- | --------------------- + * 0x00 | indicates no interrupt triggered + * 0x01 | indicates interrupt triggered + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel highg interrupt can be configured + * by the following APIs + * + * bno055_set_intr_mask_accel_high_g() + * + * bno055_set_intr_accel_high_g() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_stat_accel_high_g(u8 *accel_high_g_u8); + +/*! + * @brief This API used to read the stat_s8 of + * accel anymotion interrupt from register from 0x37 bit 6 + * + * @param accel_any_motion_u8 : The value of accel anymotion interrupt + * + * accel_any_motion_u8 | result + * ------------------- | --------------------- + * 0x00 | indicates no interrupt triggered + * 0x01 | indicates interrupt triggered + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel anymotion interrupt can be configured + * by the following APIs + * + * bno055_set_intr_mask_accel_any_motion() + * + * bno055_set_intr_accel_any_motion() + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_stat_accel_any_motion(u8 *accel_any_motion_u8); + +/*! + * @brief This API used to read the stat_s8 of + * accel nomotion/slowmotion interrupt from register from 0x37 bit 6 + * + * @param accel_no_motion_u8 : + * The value of accel nomotion/slowmotion interrupt + * + * accel_no_motion_u8 | result + * ------------------- | --------------------- + * 0x00 | indicates no interrupt triggered + * 0x01 | indicates interrupt triggered + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel nomotion/slowmotion interrupt can be configured + * by the following APIs + * + * bno055_set_intr_mask_accel_nomotion() + * + * bno055_set_intr_accel_nomotion() + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_stat_accel_no_motion(u8 *accel_no_motion_u8); + +/**************************************************************************/ +/**\name FUNCTIONS FOR READING SYSTEM CLOCK, STATUS AND BNO055_ERROR CODE */ +/*************************************************************************/ + +/*! + * @brief This API is used to read status of main clock + * from the register 0x38 bit 0 + * + * @param stat_main_clk_u8 : the status of main clock + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_stat_main_clk(u8 *stat_main_clk_u8); + +/*! + * @brief This API is used to read system status + * code from the register 0x39 it is a byte of data + * + * @param sys_stat_u8 : the status of system + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_sys_stat_code(u8 *sys_stat_u8); + +/*! + * @brief This API is used to read system BNO055_ERROR + * code from the register 0x3A it is a byte of data + * + * @param sys_error_u8 : The value of system BNO055_ERROR code + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_sys_error_code(u8 *sys_error_u8); + +/********************************************/ +/**\name FUNCTIONS FOR ACCEL UNIT SELECTION */ +/********************************************/ + +/*! + * @brief This API used to read the accel unit + * from register from 0x3B bit 0 + * + * @param accel_unit_u8 : The value of accel unit + * + * accel_unit_u8 | result + * ------------- | --------------- + * 0x00 | BNO055_ACCEL_UNIT_MSQ + * 0x01 | BNO055_ACCEL_UNIT_MG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_unit(u8 *accel_unit_u8); + +/*! + * @brief This API used to write the accel unit + * from register from 0x3B bit 0 + * + * @param accel_unit_u8 : The value of accel unit + * + * accel_unit_u8 | result + * ------------- | --------------- + * 0x00 | BNO055_ACCEL_UNIT_MSQ + * 0x01 | BNO055_ACCEL_UNIT_MG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_unit(u8 accel_unit_u8); + +/********************************************/ +/**\name FUNCTIONS FOR GYRO UNIT SELECTION */ +/********************************************/ + +/*! + * @brief This API used to read the gyro unit + * from register from 0x3B bit 1 + * + * @param gyro_unit_u8 : The value of accel unit + * + * gyro_unit_u8 | result + * ------------- | ----------- + * 0x00 | BNO055_GYRO_UNIT_DPS + * 0x01 | BNO055_GYRO_UNIT_RPS + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_unit(u8 *gyro_unit_u8); + +/*! + * @brief This API used to write the gyro unit + * from register from 0x3B bit 1 + * + * @param gyro_unit_u8 : The value of accel unit + * + * gyro_unit_u8 | result + * ------------- | ----------- + * 0x00 | BNO055_GYRO_UNIT_DPS + * 0x01 | BNO055_GYRO_UNIT_RPS + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_unit(u8 gyro_unit_u8); + +/********************************************/ +/**\name FUNCTIONS FOR EULER UNIT SELECTION */ +/********************************************/ + +/*! + * @brief This API used to read the Euler unit + * from register from 0x3B bit 2 + * + * @param euler_unit_u8 : The value of accel unit + * + * euler_unit_u8 | result + * -------------- | ----------- + * 0x00 | BNO055_EULER_UNIT_DEG + * 0x01 | BNO055_EULER_UNIT_RAD + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_euler_unit(u8 *euler_unit_u8); + +/*! + * @brief This API used to write the Euler unit + * from register from 0x3B bit 2 + * + * @param euler_unit_u8 : The value of Euler unit + * + * euler_unit_u8 | result + * -------------- | ----------- + * 0x00 | BNO055_EULER_UNIT_DEG + * 0x01 | BNO055_EULER_UNIT_RAD + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_euler_unit(u8 euler_unit_u8); + +/********************************************/ +/**\name FUNCTIONS FOR TILT UNIT SELECTION */ +/********************************************/ + +/*! + * @brief This API used to write the tilt unit + * from register from 0x3B bit 3 + * + * @param tilt_unit_u8 : The value of tilt unit + * + * tilt_unit_u8 | result + * --------------- | --------- + * 0x00 | degrees + * 0x01 | radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_tilt_unit(u8 *tilt_unit_u8); + +/*! + * @brief This API used to write the tilt unit + * from register from 0x3B bit 3 + * + * @param tilt_unit_u8 : The value of tilt unit + * + * tilt_unit_u8 | result + * --------------- | --------- + * 0x00 | degrees + * 0x01 | radians + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + * + * \return Communication results + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_tilt_unit(u8 tilt_unit_u8); + +/**************************************************/ +/**\name FUNCTIONS FOR TEMPERATURE UNIT SELECTION */ +/**************************************************/ + +/*! + * @brief This API used to read the temperature unit + * from register from 0x3B bit 4 + * + * @param temp_unit_u8 : The value of temperature unit + * + * temp_unit_u8 | result + * ----------- | -------------- + * 0x00 | BNO055_TEMP_UNIT_CELSIUS + * 0x01 | BNO055_TEMP_UNIT_FAHRENHEIT + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_temp_unit(u8 *temp_unit_u8); + +/*! + * @brief This API used to write the temperature unit + * from register from 0x3B bit 4 + * + * @param temp_unit_u8 : The value of temperature unit + * + * temp_unit_u8 | result + * ----------- | -------------- + * 0x00 | BNO055_TEMP_UNIT_CELSIUS + * 0x01 | BNO055_TEMP_UNIT_FAHRENHEIT + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_temp_unit(u8 temp_unit_u8); + +/**************************************************/ +/**\name FUNCTIONS FOR DATA OUTPUT FORMAT SELECT */ +/**************************************************/ + +/*! + * @brief This API used to read the current selected orientation mode + * from register from 0x3B bit 7 + * + * @param data_output_format_u8 : The value of data output format + * + * data_output_format_u8 | result + * -------------------- | -------- + * 0x00 | Windows + * 0x01 | Android + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_data_output_format(u8 *data_output_format_u8); + +/*! + * @brief This API used to read the current selected orientation mode + * from register from 0x3B bit 7 + * + * @param data_output_format_u8 : The value of data output format + * + * data_output_format_u8 | result + * -------------------- | -------- + * 0x00 | Windows + * 0x01 | Android + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_data_output_format(u8 data_output_format_u8); + +/**************************************************/ +/**\name FUNCTIONS FOR DATA OPERATION MODE */ +/**************************************************/ + +/*! @brief This API used to read the operation mode + * from register from 0x3D bit 0 to 3 + * + * @param operation_mode_u8 : The value of operation mode + * + * operation_mode_u8 | result | comments + * ----------|----------------------------|---------------------------- + * 0x00 | BNO055_OPERATION_MODE_CONFIG | Configuration mode + * 0x01 | BNO055_OPERATION_MODE_ACCONLY | Reads accel data alone + * 0x02 | BNO055_OPERATION_MODE_MAGONLY | Reads mag data alone + * 0x03 | BNO055_OPERATION_MODE_GYRONLY | Reads gyro data alone + * 0x04 | BNO055_OPERATION_MODE_ACCMAG | Reads accel and mag data + * 0x05 | BNO055_OPERATION_MODE_ACCGYRO | Reads accel and gyro data + * 0x06 | BNO055_OPERATION_MODE_MAGGYRO | Reads accel and mag data + * 0x07 | OPERATION_MODE_ANY_MOTION | Reads accel mag and gyro data + * 0x08 | BNO055_OPERATION_MODE_IMUPLUS | Inertial measurement unit + * - | - | Reads accel,gyro and fusion data + * 0x09 | BNO055_OPERATION_MODE_COMPASS | Reads accel, mag data + * - | - | and fusion data + * 0x0A | BNO055_OPERATION_MODE_M4G | Reads accel, mag data + * - | - | and fusion data + * 0x0B | BNO055_OPERATION_MODE_NDOF_FMC_OFF| Nine degrees of freedom with + * - | - | fast magnetic calibration + * - | - | Reads accel,mag, gyro + * - | - | and fusion data + * 0x0C | BNO055_OPERATION_MODE_NDOF | Nine degrees of freedom + * - | - | Reads accel,mag, gyro + * - | - | and fusion data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note In the config mode, all sensor and fusion data + * becomes zero and it is mainly derived + * to configure the various settings of the BNO + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_operation_mode(u8 *operation_mode_u8); + +/*! @brief This API used to write the operation mode + * from register from 0x3D bit 0 to 3 + * + * @param operation_mode_u8 : The value of operation mode + * + * operation_mode_u8 | result | comments + * ---------|-----------------------------------|-------------------------- + * 0x00 | BNO055_OPERATION_MODE_CONFIG | Configuration mode + * 0x01 | BNO055_OPERATION_MODE_ACCONLY | Reads accel data alone + * 0x02 | BNO055_OPERATION_MODE_MAGONLY | Reads mag data alone + * 0x03 | BNO055_OPERATION_MODE_GYRONLY | Reads gyro data alone + * 0x04 | BNO055_OPERATION_MODE_ACCMAG | Reads accel and mag data + * 0x05 | BNO055_OPERATION_MODE_ACCGYRO | Reads accel and gyro data + * 0x06 | BNO055_OPERATION_MODE_MAGGYRO | Reads accel and mag data + * 0x07 | OPERATION_MODE_ANY_MOTION | Reads accel mag and + * | - | gyro data + * 0x08 | BNO055_OPERATION_MODE_IMUPLUS | Inertial measurement unit + * - | | Reads accel,gyro and + * | - | fusion data + * 0x09 | BNO055_OPERATION_MODE_COMPASS | Reads accel, mag data + * - | - | and fusion data + * 0x0A | BNO055_OPERATION_MODE_M4G | Reads accel, mag data + * - | - | and fusion data + * 0x0B | BNO055_OPERATION_MODE_NDOF_FMC_OFF| Nine degrees of freedom with + * - | - | fast magnetic calibration + * - | - | Reads accel,mag, gyro + * - | - | and fusion data + * 0x0C | BNO055_OPERATION_MODE_NDOF | Nine degrees of freedom + * - | - | Reads accel,mag, gyro + * - | - | and fusion data + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note In the config mode, all sensor and fusion data + * becomes zero and it is mainly derived + * to configure the various settings of the BNO + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_operation_mode(u8 operation_mode_u8); + +/**************************************************/ +/**\name FUNCTIONS FOR POWER MODE */ +/**************************************************/ + +/*! @brief This API used to read the power mode + * from register from 0x3E bit 0 to 1 + * + * @param power_mode_u8 : The value of power mode + * + * power_mode_u8| result | comments + * ---------|---------------------------|------------------------------------- + * 0x00 |BNO055_POWER_MODE_NORMAL | In the NORMAL mode the register + * - | - | map and the internal peripherals + * - | - | of the MCU are always + * - | - | operative in this mode + * 0x01 |BNO055_POWER_MODE_LOWPOWER | This is first level of power + * | - | saving mode + * 0x02 |BNO055_POWER_MODE_SUSPEND | In suspend mode the system is + * - | - | paused and all the sensors and + * - | - | the micro controller are + * - | - | put into sleep mode. + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note For detailed about LOWPOWER mode + * refer data sheet 3.4.2 + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_power_mode(u8 *power_mode_u8); + +/*! @brief This API used to write the power mode + * from register from 0x3E bit 0 to 1 + * + * @param power_mode_u8 : The value of power mode + * + * + * power_mode_u8| result | comments + * -------|----------------------------|--------------------------------- + * 0x00 | BNO055_POWER_MODE_NORMAL | In the NORMAL mode the register + * - | - | map and the internal peripherals + * - | - | of the MCU are always + * - | - | operative in this mode + * 0x01 | BNO055_POWER_MODE_LOWPOWER | This is first level of power + * | - | saving mode + * 0x02 | BNO055_POWER_MODE_SUSPEND | In suspend mode the system is + * - | - | paused and all the sensors and + * - | - | the micro controller are + * - | - | put into sleep mode. + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note For detailed about LOWPOWER mode + * refer data sheet 3.4.2 + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_power_mode(u8 power_mode_u8); + +/**************************************************/ +/**\name FUNCTIONS FOR RESET INTERRUPT */ +/**************************************************/ + +/*! + * @brief This API used to read the reset interrupt + * from register from 0x3F bit 6 + * It resets all the interrupt bit and interrupt output + * + * @param intr_rst_u8 : The value of reset interrupt + * + * intr_rst_u8 | result + * -------------|---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_rst(u8 *intr_rst_u8); + +/*! + * @brief This API used to write the reset interrupt + * from register from 0x3F bit 6 + * It resets all the interrupt bit and interrupt output + * + * @param intr_rst_u8 : The value of reset interrupt + * + * intr_rst_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_rst(u8 intr_rst_u8); + +/**************************************************/ +/**\name FUNCTIONS FOR CLOCK SOURCE */ +/**************************************************/ + +/*! + * @brief This API used to read the clk source + * from register from 0x3F bit 7 + * + * @param clk_src_u8 : The value of clk source + * + * clk_src_u8 | result + * -------------|---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_clk_src(u8 *clk_src_u8); + +/*! + * @brief This API used to write the clk source + * from register from 0x3F bit 7 + * + * @param clk_src_u8 : The value of clk source + * + * clk_src_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_clk_src(u8 clk_src_u8); + +/**************************************************/ +/**\name FUNCTIONS FOR RESET SYSTEM */ +/**************************************************/ + +/*! + * @brief This API used to read the reset system + * from register from 0x3F bit 5 + * + * @param sys_rst_u8 : The value of reset system + * + * sys_rst_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note It resets the whole system + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_sys_rst(u8 *sys_rst_u8); + +/*! + * @brief This API used to write the reset system + * from register from 0x3F bit 5 + * + * @param sys_rst_u8 : The value of reset system + * + * sys_rst_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note It resets the whole system + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_sys_rst(u8 sys_rst_u8); + +/**************************************************/ +/**\name FUNCTIONS FOR SELF TEST */ +/**************************************************/ + +/*! + * @brief This API used to read the self test + * from register from 0x3F bit 0 + * + * @param selftest_u8 : The value of self test + * + * selftest_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note It triggers the self test + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_selftest(u8 *selftest_u8); + +/*! + * @brief This API used to write the self test + * from register from 0x3F bit 0 + * + * @param selftest_u8 : The value of self test + * + * selftest_u8 | result + * -------------- |---------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note It triggers the self test + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_selftest(u8 selftest_u8); + +/**************************************************/ +/**\name FUNCTIONS FOR TEMPERATURE SOURCE */ +/**************************************************/ + +/*! + * @brief This API used to read the temperature source + * from register from 0x40 bit 0 and 1 + * + * @param temp_source_u8 : The value of selected temperature source + * + * temp_source_u8 | result + * ---------------- |--------------- + * 0x00 | BNO055_ACCEL_TEMP_EN + * 0X01 | BNO055_GYRO_TEMP_EN + * 0X03 | BNO055_MCU_TEMP_EN + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_temp_source(u8 *temp_source_u8); + +/*! + * @brief This API used to write the temperature source + * from register from 0x40 bit 0 and 1 + * + * @param temp_source_u8 : The value of selected temperature source + * + * temp_source_u8 | result + * ---------------- |--------------- + * 0x00 | BNO055_ACCEL_TEMP_EN + * 0X01 | BNO055_GYRO_TEMP_EN + * 0X03 | BNO055_MCU_TEMP_EN + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_temp_source(u8 temp_source_u8); + +/**************************************************/ +/**\name APIs FOR AXIS REMAP */ +/**************************************************/ + +/*! + * @brief This API used to read the axis remap value + * from register from 0x41 bit 0 and 5 + * + * @param remap_axis_u8 : The value of axis remapping + * + * remap_axis_u8 | result | comments + * ------------|-------------------|------------ + * 0X21 | BNO055_REMAP_X_Y | Z=Z;X=Y;Y=X + * 0X18 | BNO055_REMAP_Y_Z | X=X;Y=Z;Z=Y + * 0X06 | BNO055_REMAP_Z_X | Y=Y;X=Z;Z=X + * 0X12 | BNO055_REMAP_X_Y_Z_TYPE0 | X=Z;Y=X;Z=Y + * 0X09 | BNO055_REMAP_X_Y_Z_TYPE1 | X=Y;Y=Z;Z=X + * 0X24 | BNO055_DEFAULT_AXIS | X=X;Y=Y;Z=Z + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note : For axis sign remap refer the following APIs + * x-axis : + * + * bno055_set_x_remap_sign() + * + * y-axis : + * + * bno055_set_y_remap_sign() + * + * z-axis : + * + * bno055_set_z_remap_sign() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_axis_remap_value(u8 *remap_axis_u8); + +/*! + * @brief This API used to write the axis remap value + * from register from 0x41 bit 0 and 5 + * + * @param remap_axis_u8 : The value of axis remapping + * + * remap_axis_u8 | result | comments + * ------------|--------------------------|------------ + * 0X21 | BNO055_REMAP_X_Y | Z=Z;X=Y;Y=X + * 0X18 | BNO055_REMAP_Y_Z | X=X;Y=Z;Z=Y + * 0X06 | BNO055_REMAP_Z_X | Y=Y;X=Z;Z=X + * 0X12 | BNO055_REMAP_X_Y_Z_TYPE0 | X=Z;Y=X;Z=Y + * 0X09 | BNO055_REMAP_X_Y_Z_TYPE1 | X=Y;Y=Z;Z=X + * 0X24 | BNO055_DEFAULT_AXIS | X=X;Y=Y;Z=Z + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note : For axis sign remap refer the following APIs + * x-axis : + * + * bno055_set_x_remap_sign() + * + * y-axis : + * + * bno055_set_y_remap_sign() + * + * z-axis : + * + * bno055_set_z_remap_sign() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_axis_remap_value(u8 remap_axis_u8); + +/**************************************************/ +/**\name APIs FOR AXIS REMAP SIGN */ +/**************************************************/ + +/*! + * @brief This API used to read the x-axis remap + * sign from register from 0x42 bit 2 + * + * @param remap_x_sign_u8 : The value of x-axis remap sign + * + * remap_x_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_remap_x_sign(u8 *remap_x_sign_u8); + +/*! + * @brief This API used to write the x-axis remap + * sign from register from 0x42 bit 2 + * + * @param remap_x_sign_u8 : The value of x-axis remap sign + * + * remap_x_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_remap_x_sign(u8 remap_x_sign_u8); + +/*! + * @brief This API used to read the y-axis remap + * sign from register from 0x42 bit 1 + * + * @param remap_y_sign_u8 : The value of y-axis remap sign + * + * remap_y_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_remap_y_sign(u8 *remap_y_sign_u8); + +/*! + * @brief This API used to write the y-axis remap + * sign from register from 0x42 bit 1 + * + * @param remap_y_sign_u8 : The value of y-axis remap sign + * + * remap_y_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_remap_y_sign(u8 remap_y_sign_u8); + +/*! + * @brief This API used to read the z-axis remap + * sign from register from 0x42 bit 0 + * + * @param remap_z_sign_u8 : The value of z-axis remap sign + * + * remap_z_sign_u8 | result + * ------------------- |-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_remap_z_sign(u8 *remap_z_sign_u8); + +/*! + * @brief This API used to write the z-axis remap + * sign from register from 0x42 bit 0 + * + * @param remap_z_sign_u8 : The value of z-axis remap sign + * + * remap_z_sign_u8 | result + * ------------------|-------------------- + * 0X00 | BNO055_REMAP_AXIS_POSITIVE + * 0X01 | BNO055_REMAP_AXIS_NEGATIVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_remap_z_sign(u8 remap_z_sign_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR SOFT IRON CALIBRATION MATRIX */ +/*****************************************************/ + +/*! + * @brief This API is used to read soft iron calibration matrix + * from the register 0x43 to 0x53 it is a 18 bytes of data + * + * @param sic_matrix : The value of soft iron calibration matrix + * + * sic_matrix | result + * --------------------|---------------------------------- + * sic_0 | soft iron calibration matrix zero + * sic_1 | soft iron calibration matrix one + * sic_2 | soft iron calibration matrix two + * sic_3 | soft iron calibration matrix three + * sic_4 | soft iron calibration matrix four + * sic_5 | soft iron calibration matrix five + * sic_6 | soft iron calibration matrix six + * sic_7 | soft iron calibration matrix seven + * sic_8 | soft iron calibration matrix eight + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note : Each soft iron calibration matrix range from -32768 to +32767 + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_sic_matrix(struct bno055_sic_matrix_t *sic_matrix); + +/*! + * @brief This API is used to write soft iron calibration matrix + * from the register 0x43 to 0x53 it is a 18 bytes of data + * + * @param sic_matrix : The value of soft iron calibration matrix + * + * sic_matrix | result + * --------------------|---------------------------------- + * sic_0 | soft iron calibration matrix zero + * sic_1 | soft iron calibration matrix one + * sic_2 | soft iron calibration matrix two + * sic_3 | soft iron calibration matrix three + * sic_4 | soft iron calibration matrix four + * sic_5 | soft iron calibration matrix five + * sic_6 | soft iron calibration matrix six + * sic_7 | soft iron calibration matrix seven + * sic_8 | soft iron calibration matrix eight + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note : Each soft iron calibration matrix range from -32768 to +32767 + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_sic_matrix(struct bno055_sic_matrix_t *sic_matrix); + +/*****************************************************/ +/**\name FUNCTIONS FOR ACCEL OFFSET AND RADIUS */ +/*****************************************************/ + +/*! + * @brief This API is used to read accel offset and accel radius + * offset form register 0x55 to 0x5A and radius form 0x67 and 0x68 + * + * @param accel_offset : The value of accel offset and radius + * + * bno055_accel_offset_t | result + * ------------------- | ---------------- + * x | accel offset x + * y | accel offset y + * z | accel offset z + * r | accel offset r + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the accel offset varies based on + * the G-range of accel sensor. + * + * accel G range | offset range + * --------------- | -------------- + * BNO055_ACCEL_RANGE_2G | +/-2000 + * BNO055_ACCEL_RANGE_4G | +/-4000 + * BNO055_ACCEL_RANGE_8G | +/-8000 + * BNO055_ACCEL_RANGE_16G | +/-16000 + * + * accel G range can be configured by using the + * bno055_set_accel_range() API + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_accel_offset(struct bno055_accel_offset_t *accel_offset); + +/*! + * @brief This API is used to write accel offset and accel radius + * offset form register 0x55 to 0x5A and radius form 0x67 and 0x68 + * + * @param accel_offset : The value of accel offset and radius + * + * bno055_accel_offset_t | result + * ------------------- | ---------------- + * x | accel offset x + * y | accel offset y + * z | accel offset z + * r | accel offset r + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the accel offset varies based on + * the G-range of accel sensor. + * + * accel G range | offset range + * --------------- | -------------- + * BNO055_ACCEL_RANGE_2G | +/-2000 + * BNO055_ACCEL_RANGE_4G | +/-4000 + * BNO055_ACCEL_RANGE_8G | +/-8000 + * BNO055_ACCEL_RANGE_16G | +/-16000 + * + * accel G range can be configured by using the + * bno055_set_accel_range() API + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_accel_offset(struct bno055_accel_offset_t *accel_offset); + +/*****************************************************/ +/**\name FUNCTIONS FOR MAG OFFSET AND RADIUS*/ +/*****************************************************/ + +/*! + * @brief This API is used to read mag offset + * offset form register 0x69 to 0x6A + * + * @param mag_offset : The value of mag offset and radius + * + * bno055_mag_offset_t | result + * ------------------- | ---------------- + * x | mag offset x + * y | mag offset y + * z | mag offset z + * r | mag radius r + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the magnetometer offset is +/-6400 in LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_mag_offset(struct bno055_mag_offset_t *mag_offset); + +/*! + * @brief This API is used to read mag offset + * offset form register 0x69 to 0x6A + * + * @param mag_offset : The value of mag offset and radius + * + * bno055_mag_offset_t | result + * ------------------- | ---------------- + * x | mag offset x + * y | mag offset y + * z | mag offset z + * r | mag radius r + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the magnetometer offset is +/-6400 in LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_mag_offset(struct bno055_mag_offset_t *mag_offset); + +/*****************************************************/ +/**\name FUNCTIONS FOR GYRO OFFSET */ +/*****************************************************/ + +/*! + * @brief This API is used to read gyro offset + * offset form register 0x61 to 0x66 + * + * @param gyro_offset : The value of gyro offset + * + * bno055_gyro_offset_t | result + * ------------------- | ---------------- + * x | gyro offset x + * y | gyro offset y + * z | gyro offset z + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the gyro offset varies based on + * the range of gyro sensor + * + * gyro G range | offset range + * -------------------- | ------------ + * BNO055_GYRO_RANGE_2000DPS | +/-32000 + * BNO055_GYRO_RANGE_1000DPS | +/-16000 + * BNO055_GYRO_RANGE_500DPS | +/-8000 + * BNO055_GYRO_RANGE_250DPS | +/-4000 + * BNO055_GYRO_RANGE_125DPS | +/-2000 + * + * Gyro range can be configured by using the + * bno055_set_gyro_range() API + */ +BNO055_RETURN_FUNCTION_TYPE bno055_read_gyro_offset(struct bno055_gyro_offset_t *gyro_offset); + +/*! + * @brief This API is used to read gyro offset + * offset form register 0x61 to 0x66 + * + * @param gyro_offset : The value of gyro offset + * + * bno055_gyro_offset_t | result + * ------------------- | ---------------- + * x | gyro offset x + * y | gyro offset y + * z | gyro offset z + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The range of the gyro offset varies based on + * the range of gyro sensor + * + * gyro G range | offset range + * -------------------- | ------------ + * BNO055_GYRO_RANGE_2000DPS | +/-32000 + * BNO055_GYRO_RANGE_1000DPS | +/-16000 + * BNO055_GYRO_RANGE_500DPS | +/-8000 + * BNO055_GYRO_RANGE_250DPS | +/-4000 + * BNO055_GYRO_RANGE_125DPS | +/-2000 + * + * Gyro range can be configured by using the + * bno055_set_gyro_range() API + */ +BNO055_RETURN_FUNCTION_TYPE bno055_write_gyro_offset(struct bno055_gyro_offset_t *gyro_offset); + +/********************************************************/ +/************** PAGE1 Functions *********************/ +/********************************************************/ +/*****************************************************/ +/**\name FUNCTIONS FOR ACCEL CONFIGURATION */ +/*****************************************************/ + +/*! + * @brief This API used to read the accel range + * from page one register from 0x08 bit 0 and 1 + * + * @param accel_range_u8 : The value of accel range + * accel_range_u8 | result + * ----------------- | -------------- + * 0x00 | BNO055_ACCEL_RANGE_2G + * 0x01 | BNO055_ACCEL_RANGE_4G + * 0x02 | BNO055_ACCEL_RANGE_8G + * 0x03 | BNO055_ACCEL_RANGE_16G + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_range(u8 *accel_range_u8); + +/*! + * @brief This API used to write the accel range + * from page one register from 0x08 bit 0 and 1 + * + * @param accel_range_u8 : The value of accel range + * + * accel_range_u8 | result + * ----------------- | -------------- + * 0x00 | BNO055_ACCEL_RANGE_2G + * 0x01 | BNO055_ACCEL_RANGE_4G + * 0x02 | BNO055_ACCEL_RANGE_8G + * 0x03 | BNO055_ACCEL_RANGE_16G + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_range(u8 accel_range_u8); + +/*! + * @brief This API used to read the accel bandwidth + * from page one register from 0x08 bit 2 to 4 + * + * @param accel_bw_u8 : The value of accel bandwidth + * + * accel_bw_u8 | result + * ----------------- | --------------- + * 0x00 | BNO055_ACCEL_BW_7_81HZ + * 0x01 | BNO055_ACCEL_BW_15_63HZ + * 0x02 | BNO055_ACCEL_BW_31_25HZ + * 0x03 | BNO055_ACCEL_BW_62_5HZ + * 0x04 | BNO055_ACCEL_BW_125HZ + * 0x05 | BNO055_ACCEL_BW_250HZ + * 0x06 | BNO055_ACCEL_BW_500HZ + * 0x07 | BNO055_ACCEL_BW_1000HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_bw(u8 *accel_bw_u8); + +/*! + * @brief This API used to write the accel bandwidth + * from page one register from 0x08 bit 2 to 4 + * + * @param accel_bw_u8 : The value of accel bandwidth + * + * accel_bw_u8 | result + * ----------------- | --------------- + * 0x00 | BNO055_ACCEL_BW_7_81HZ + * 0x01 | BNO055_ACCEL_BW_15_63HZ + * 0x02 | BNO055_ACCEL_BW_31_25HZ + * 0x03 | BNO055_ACCEL_BW_62_5HZ + * 0x04 | BNO055_ACCEL_BW_125HZ + * 0x05 | BNO055_ACCEL_BW_250HZ + * 0x06 | BNO055_ACCEL_BW_500HZ + * 0x07 | BNO055_ACCEL_BW_1000HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_bw(u8 accel_bw_u8); + +/*! + * @brief This API used to read the accel power mode + * from page one register from 0x08 bit 5 to 7 + * + * @param accel_power_mode_u8 : The value of accel power mode + * accel_power_mode_u8 | result + * ----------------- | ------------- + * 0x00 | BNO055_ACCEL_NORMAL + * 0x01 | BNO055_ACCEL_SUSPEND + * 0x02 | BNO055_ACCEL_LOWPOWER_1 + * 0x03 | BNO055_ACCEL_STANDBY + * 0x04 | BNO055_ACCEL_LOWPOWER_2 + * 0x05 | BNO055_ACCEL_DEEPSUSPEND + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_power_mode(u8 *accel_power_mode_u8); + +/*! + * @brief This API used to write the accel power mode + * from page one register from 0x08 bit 5 to 7 + * + * @param accel_power_mode_u8 : The value of accel power mode + * accel_power_mode_u8 | result + * ----------------- | ------------- + * 0x00 | BNO055_ACCEL_NORMAL + * 0x01 | BNO055_ACCEL_SUSPEND + * 0x02 | BNO055_ACCEL_LOWPOWER_1 + * 0x03 | BNO055_ACCEL_STANDBY + * 0x04 | BNO055_ACCEL_LOWPOWER_2 + * 0x05 | BNO055_ACCEL_DEEPSUSPEND + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_power_mode(u8 accel_power_mode_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR MAG CONFIGURATION */ +/*****************************************************/ + +/*! + * @brief This API used to read the mag output data rate + * from page one register from 0x09 bit 0 to 2 + * + * @param mag_data_output_rate_u8 : The value of mag output data rate + * + * mag_data_output_rate_u8 | result + * ---------------------- |---------------------- + * 0x00 | MAG_DATA_OUTPUT_RATE_2HZ + * 0x01 | MAG_DATA_OUTPUT_RATE_6HZ + * 0x02 | MAG_DATA_OUTPUT_RATE_8HZ + * 0x03 | MAG_DATA_OUTPUT_RATE_10HZ + * 0x04 | MAG_DATA_OUTPUT_RATE_15HZ + * 0x05 | MAG_DATA_OUTPUT_RATE_20HZ + * 0x06 | MAG_DATA_OUTPUT_RATE_25HZ + * 0x07 | MAG_DATA_OUTPUT_RATE_30HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_data_output_rate(u8 *mag_data_output_rate_u8); + +/*! + * @brief This API used to write the mag output data rate + * from page one register from 0x09 bit 0 to 2 + * + * @param mag_data_output_rate_u8 : The value of mag output data rate + * + * mag_data_output_rate_u8 | result + * ---------------------- |---------------------- + * 0x00 | MAG_DATA_OUTPUT_RATE_2HZ + * 0x01 | MAG_DATA_OUTPUT_RATE_6HZ + * 0x02 | MAG_DATA_OUTPUT_RATE_8HZ + * 0x03 | MAG_DATA_OUTPUT_RATE_10HZ + * 0x04 | MAG_DATA_OUTPUT_RATE_15HZ + * 0x05 | MAG_DATA_OUTPUT_RATE_20HZ + * 0x06 | MAG_DATA_OUTPUT_RATE_25HZ + * 0x07 | MAG_DATA_OUTPUT_RATE_30HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_mag_data_output_rate(u8 mag_data_output_rate_u8); + +/*! + * @brief This API used to read the mag operation mode + * from page one register from 0x09 bit 3 to 4 + * + * @param mag_operation_mode_u8 : The value of mag operation mode + * + * mag_operation_mode_u8 | result + * ------------------------|-------------------------- + * 0x00 | MAG_OPR_MODE_LOWPOWER + * 0x01 | MAG_OPR_MODE_REGULAR + * 0x02 | MAG_OPR_MODE_ENHANCED_REGULAR + * 0x03 | MAG_OPR_MODE_HIGH_ACCURACY + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_operation_mode(u8 *mag_operation_mode_u8); + +/*! + * @brief This API used to write the mag operation mode + * from page one register from 0x09 bit 3 to 4 + * + * @param mag_operation_mode_u8 : The value of mag operation mode + * + * mag_operation_mode_u8 | result + * ------------------------|-------------------------- + * 0x00 | MAG_OPR_MODE_LOWPOWER + * 0x01 | MAG_OPR_MODE_REGULAR + * 0x02 | MAG_OPR_MODE_ENHANCED_REGULAR + * 0x03 | MAG_OPR_MODE_HIGH_ACCURACY + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_mag_operation_mode(u8 mag_operation_mode_u8); + +/*! + * @brief This API used to read the mag power mode + * from page one register from 0x09 bit 4 to 6 + * + * @param mag_power_mode_u8 : The value of mag power mode + * + * mag_power_mode_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_MAG_POWER_MODE_NORMAL + * 0x01 | BNO055_MAG_POWER_MODE_SLEEP + * 0x02 | BNO055_MAG_POWER_MODE_SUSPEND + * 0x03 | BNO055_MAG_POWER_MODE_FORCE_MODE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_power_mode(u8 *mag_power_mode_u8); + +/*! + * @brief This API used to write the mag power mode + * from page one register from 0x09 bit 4 to 6 + * + * @param mag_power_mode_u8 : The value of mag power mode + * + * mag_power_mode_u8 | result + * ------------------|----------------- + * 0x00 | BNO055_MAG_POWER_MODE_NORMAL + * 0x01 | BNO055_MAG_POWER_MODE_SLEEP + * 0x02 | BNO055_MAG_POWER_MODE_SUSPEND + * 0x03 | BNO055_MAG_POWER_MODE_FORCE_MODE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_mag_power_mode(u8 mag_power_mode_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR GYRO CONFIGURATION */ +/*****************************************************/ + +/*! + * @brief This API used to read the gyro range + * from page one register from 0x0A bit 0 to 3 + * + * @param gyro_range_u8 : The value of gyro range + * + * gyro_range_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_GYRO_RANGE_2000DPS + * 0x01 | BNO055_GYRO_RANGE_1000DPS + * 0x02 | BNO055_GYRO_RANGE_500DPS + * 0x03 | BNO055_GYRO_RANGE_250DPS + * 0x04 | BNO055_GYRO_RANGE_125DPS + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_range(u8 *gyro_range_u8); + +/*! + * @brief This API used to write the gyro range + * from page one register from 0x0A bit 0 to 3 + * + * @param gyro_range_u8 : The value of gyro range + * + * gyro_range_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_GYRO_RANGE_2000DPS + * 0x01 | BNO055_GYRO_RANGE_1000DPS + * 0x02 | BNO055_GYRO_RANGE_500DPS + * 0x03 | BNO055_GYRO_RANGE_250DPS + * 0x04 | BNO055_GYRO_RANGE_125DPS + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_range(u8 gyro_range_u8); + +/*! + * @brief This API used to read the gyro bandwidth + * from page one register from 0x0A bit 3 to 5 + * + * @param gyro_bw_u8 : The value of gyro bandwidth + * + * gyro_bw_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_GYRO_BW_523HZ + * 0x01 | BNO055_GYRO_BW_230HZ + * 0x02 | BNO055_GYRO_BW_116HZ + * 0x03 | BNO055_GYRO_BW_47HZ + * 0x04 | BNO055_GYRO_BW_23HZ + * 0x05 | BNO055_GYRO_BW_12HZ + * 0x06 | BNO055_GYRO_BW_64HZ + * 0x07 | BNO055_GYRO_BW_32HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_bw(u8 *gyro_bw_u8); + +/*! + * @brief This API used to write the gyro bandwidth + * from page one register from 0x0A bit 3 to 5 + * + * @param gyro_bw_u8 : The value of gyro bandwidth + * + * gyro_bw_u8 | result + * --------------------|----------------- + * 0x00 | BNO055_GYRO_BW_523HZ + * 0x01 | BNO055_GYRO_BW_230HZ + * 0x02 | BNO055_GYRO_BW_116HZ + * 0x03 | BNO055_GYRO_BW_47HZ + * 0x04 | BNO055_GYRO_BW_23HZ + * 0x05 | BNO055_GYRO_BW_12HZ + * 0x06 | BNO055_GYRO_BW_64HZ + * 0x07 | BNO055_GYRO_BW_32HZ + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_bw(u8 gyro_bw_u8); + +/*! + * @brief This API used to read the gyro power mode + * from page one register from 0x0B bit 0 to 2 + * + * @param gyro_power_mode_u8 : The value of gyro power mode + * + * gyro_power_mode_u8 | result + * ----------------------|---------------------------- + * 0x00 | GYRO_OPR_MODE_NORMAL + * 0x01 | GYRO_OPR_MODE_FASTPOWERUP + * 0x02 | GYRO_OPR_MODE_DEEPSUSPEND + * 0x03 | GYRO_OPR_MODE_SUSPEND + * 0x04 | GYRO_OPR_MODE_ADVANCE_POWERSAVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_power_mode(u8 *gyro_power_mode_u8); + +/*! + * @brief This API used to write the gyro power mode + * from page one register from 0x0B bit 0 to 2 + * + * @param gyro_power_mode_u8 : The value of gyro power mode + * + * gyro_power_mode_u8 | result + * ----------------------|---------------------------- + * 0x00 | GYRO_OPR_MODE_NORMAL + * 0x01 | GYRO_OPR_MODE_FASTPOWERUP + * 0x02 | GYRO_OPR_MODE_DEEPSUSPEND + * 0x03 | GYRO_OPR_MODE_SUSPEND + * 0x04 | GYRO_OPR_MODE_ADVANCE_POWERSAVE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_power_mode(u8 gyro_power_mode_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR ACCEL SLEEP SETTINGS */ +/*****************************************************/ + +/*! + * @brief This API used to read the accel sleep mode + * from page one register from 0x0C bit 0 + * + * @param sleep_tmr_u8 : The value of accel sleep mode + * + * sleep_tmr_u8 | result + * ----------------- |------------------------------------ + * 0x00 | enable EventDrivenSampling(EDT) + * 0x01 | enable Equidistant sampling mode(EST) + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_sleep_tmr_mode(u8 *sleep_tmr_u8); + +/*! + * @brief This API used to write the accel sleep mode + * from page one register from 0x0C bit 0 + * + * @param sleep_tmr_u8 : The value of accel sleep mode + * + * sleep_tmr_u8 | result + * ----------------- |------------------------------------ + * 0x00 | enable EventDrivenSampling(EDT) + * 0x01 | enable Equidistant sampling mode(EST) + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_sleep_tmr_mode(u8 sleep_tmr_u8); + +/*! + * @brief This API used to read the accel sleep duration + * from page one register from 0x0C bit 1 to 4 + * + * @param sleep_durn_u8 : The value of accel sleep duration + * + * sleep_durn_u8 | result + * ---------------- |----------------------------- + * 0x05 | BNO055_ACCEL_SLEEP_DURN_0_5MS + * 0x06 | BNO055_ACCEL_SLEEP_DURN_1MS + * 0x07 | BNO055_ACCEL_SLEEP_DURN_2MS + * 0x08 | BNO055_ACCEL_SLEEP_DURN_4MS + * 0x09 | BNO055_ACCEL_SLEEP_DURN_6MS + * 0x0A | BNO055_ACCEL_SLEEP_DURN_10MS + * 0x0B | BNO055_ACCEL_SLEEP_DURN_25MS + * 0x0C | BNO055_ACCEL_SLEEP_DURN_50MS + * 0x0D | BNO055_ACCEL_SLEEP_DURN_100MS + * 0x0E | BNO055_ACCEL_SLEEP_DURN_500MS + * 0x0F | BNO055_ACCEL_SLEEP_DURN_1S + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_sleep_durn(u8 *sleep_durn_u8); + +/*! + * @brief This API used to write the accel sleep duration + * from page one register from 0x0C bit 1 to 4 + * + * @param sleep_durn_u8 : The value of accel sleep duration + * + * sleep_durn_u8 | result + * ---------------- |----------------------------- + * 0x05 | BNO055_ACCEL_SLEEP_DURN_0_5MS + * 0x06 | BNO055_ACCEL_SLEEP_DURN_1MS + * 0x07 | BNO055_ACCEL_SLEEP_DURN_2MS + * 0x08 | BNO055_ACCEL_SLEEP_DURN_4MS + * 0x09 | BNO055_ACCEL_SLEEP_DURN_6MS + * 0x0A | BNO055_ACCEL_SLEEP_DURN_10MS + * 0x0B | BNO055_ACCEL_SLEEP_DURN_25MS + * 0x0C | BNO055_ACCEL_SLEEP_DURN_50MS + * 0x0D | BNO055_ACCEL_SLEEP_DURN_100MS + * 0x0E | BNO055_ACCEL_SLEEP_DURN_500MS + * 0x0F | BNO055_ACCEL_SLEEP_DURN_1S + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_sleep_durn(u8 sleep_durn_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR GYRO SLEEP SETTINGS */ +/*****************************************************/ + +/*! + * @brief This API used to write the gyro sleep duration + * from page one register from 0x0D bit 0 to 2 + * + * @param sleep_durn_u8 : The value of gyro sleep duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_sleep_durn(u8 *sleep_durn_u8); + +/*! + * @brief This API used to write the gyro sleep duration + * from page one register from 0x0D bit 0 to 2 + * + * @param sleep_durn_u8 : The value of gyro sleep duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_sleep_durn(u8 sleep_durn); + +/*! + * @brief This API used to read the gyro auto sleep duration + * from page one register from 0x0D bit 3 to 5 + * + * @param auto_sleep_durn_u8 : The value of gyro auto sleep duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_auto_sleep_durn(u8 *auto_sleep_durn_u8); + +/*! + * @brief This API used to write the gyro auto sleep duration + * from page one register from 0x0D bit 3 to 5 + * + * @param auto_sleep_durn_u8 : The value of gyro auto sleep duration + * @param bw : The value of gyro bandwidth + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_gyro_set_auto_sleep_durn(u8 auto_sleep_durn_u8, u8 bw); + +/*****************************************************/ +/**\name FUNCTIONS FOR MAG SLEEP SETTINGS */ +/*****************************************************/ + +/*! + * @brief This API used to read the mag sleep mode + * from page one register from 0x0E bit 0 + * + * @param sleep_mode_u8 : The value of mag sleep mode + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_sleep_mode(u8 *sleep_mode_u8); + +/*! + * @brief This API used to write the mag sleep mode + * from page one register from 0x0E bit 0 + * + * @param sleep_mode_u8 : The value of mag sleep mode + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_mag_sleep_mode(u8 sleep_mode_u8); + +/*! + * @brief This API used to read the mag sleep duration + * from page one register from 0x0E bit 1 to 4 + * + * @param sleep_durn_u8 : The value of mag sleep duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_mag_sleep_durn(u8 *sleep_durn_u8); + +/*! + * @brief This API used to write the mag sleep duration + * from page one register from 0x0E bit 1 to 4 + * + * @param sleep_durn_u8 : The value of mag sleep duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_mag_sleep_durn(u8 sleep_durn_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR GYRO INTERRUPT MASK */ +/*****************************************************/ + +/*! + * @brief This API used to read the gyro anymotion interrupt mask + * from page one register from 0x0F bit 2 + * + * @param gyro_any_motion_u8 : The value of gyro anymotion interrupt mask + * gyro_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro anymotion interrupt + * configure the following settings + * + * Axis: + * bno055_set_gyro_any_motion_axis_enable() + * + * Filter setting: + * bno055_set_gyro_any_motion_filter() + * + * Threshold : + * + * bno055_set_gyro_any_motion_thres() + * + * Slope samples : + * + * bno055_set_gyro_any_motion_slope_samples() + * + * Awake duration : + * + * bno055_set_gyro_any_motion_awake_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_mask_gyro_any_motion(u8 *gyro_any_motion_u8); + +/*! + * @brief This API used to write the gyro anymotion interrupt mask + * from page one register from 0x0F bit 2 + * + * @param gyro_any_motion_u8 : The value of gyro anymotion interrupt mask + * gyro_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro anymotion interrupt + * configure the following settings + * + * Axis: + * bno055_set_gyro_any_motion_axis_enable() + * + * Filter setting: + * bno055_set_gyro_any_motion_filter() + * + * Threshold : + * + * bno055_set_gyro_any_motion_thres() + * + * Slope samples : + * + * bno055_set_gyro_any_motion_slope_samples() + * + * Awake duration : + * + * bno055_set_gyro_any_motion_awake_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_mask_gyro_any_motion(u8 gyro_any_motion_u8); + +/*! + * @brief This API used to read the gyro highrate interrupt mask + * from page one register from 0x0F bit 3 + * + * @param gyro_highrate_u8 : The value of gyro highrate interrupt mask + * gyro_highrate_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro highrate interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_gyro_highrate_axis_enable() + * + * Filter : + * + * bno055_set_gyro_highrate_filter() + * + * Threshold : + * + * bno055_get_gyro_highrate_x_thres() + * + * bno055_get_gyro_highrate_y_thres() + * + * bno055_get_gyro_highrate_z_thres() + * + * Hysteresis : + * + * bno055_set_gyro_highrate_x_hyst() + * + * bno055_set_gyro_highrate_y_hyst() + * + * bno055_set_gyro_highrate_z_hyst() + * + * Duration : + * + * bno055_set_gyro_highrate_x_durn() + * + * bno055_set_gyro_highrate_y_durn() + * + * bno055_set_gyro_highrate_z_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_mask_gyro_highrate(u8 *gyro_highrate_u8); + +/*! + * @brief This API used to write the gyro highrate interrupt mask + * from page one register from 0x0F bit 3 + * + * @param gyro_highrate_u8 : The value of gyro highrate interrupt mask + * gyro_highrate_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro highrate interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_gyro_highrate_axis_enable() + * + * Filter : + * + * bno055_set_gyro_highrate_filter() + * + * Threshold : + * + * bno055_get_gyro_highrate_x_thres() + * + * bno055_get_gyro_highrate_y_thres() + * + * bno055_get_gyro_highrate_z_thres() + * + * Hysteresis : + * + * bno055_set_gyro_highrate_x_hyst() + * + * bno055_set_gyro_highrate_y_hyst() + * + * bno055_set_gyro_highrate_z_hyst() + * + * Duration : + * + * bno055_set_gyro_highrate_x_durn() + * + * bno055_set_gyro_highrate_y_durn() + * + * bno055_set_gyro_highrate_z_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_mask_gyro_highrate(u8 gyro_highrate_u8); + +/*****************************************************/ +/**\name APIs FOR ACCEL INTERRUPT MASK */ +/*****************************************************/ + +/*! + * @brief This API used to read the accel highg interrupt mask + * from page one register from 0x0F bit 5 + * + * @param accel_high_g_u8 : The value of accel highg interrupt mask + * accel_high_g_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel highg interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_accel_high_g_axis_enable() + * + * Threshold : + * + * bno055_set_accel_high_g_thres() + * + * Duration : + * + * bno055_set_accel_high_g_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_mask_accel_high_g(u8 *accel_high_g_u8); + +/*! + * @brief This API used to write the accel highg interrupt mask + * from page one register from 0x0F bit 5 + * + * @param accel_high_g_u8 : The value of accel highg interrupt mask + * accel_high_g_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel highg interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_accel_high_g_axis_enable() + * + * Threshold : + * + * bno055_set_accel_high_g_thres() + * + * Duration : + * + * bno055_set_accel_high_g_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_mask_accel_high_g(u8 accel_high_g_u8); + +/*! + * @brief This API used to read the accel anymotion interrupt mask + * from page one register from 0x0F bit 6 + * + * @param accel_any_motion_u8 : The value of accel anymotion interrupt mask + * accel_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel highg interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_accel_high_g_axis_enable() + * + * Threshold : + * + * bno055_set_accel_high_g_thres() + * + * Duration : + * + * bno055_set_accel_high_g_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_mask_accel_any_motion(u8 *accel_any_motion_u8); + +/*! + * @brief This API used to write the accel anymotion interrupt mask + * from page one register from 0x0F bit 6 + * + * @param accel_any_motion_u8 : The value of accel anymotion interrupt mask + * accel_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel anymotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Duration: + * + * bno055_set_accel_any_motion_durn() + * + * Threshold: + * + * bno055_set_accel_any_motion_thres() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_mask_accel_any_motion(u8 accel_any_motion_u8); + +/*! + * @brief This API used to read the accel nomotion interrupt mask + * from page one register from 0x0F bit 7 + * + * @param accel_nomotion_u8 : The value of accel nomotion interrupt mask + * accel_nomotion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * + * @note While enabling the accel anymotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Duration: + * + * bno055_set_accel_any_motion_durn() + * + * Threshold: + * + * bno055_set_accel_any_motion_thres()) + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_mask_accel_no_motion(u8 *accel_nomotion_u8); + +/*! + * @brief This API used to write the accel nomotion interrupt mask + * from page one register from 0x0F bit 7 + * + * @param accel_nomotion_u8 : The value of accel nomotion interrupt mask + * accel_nomotion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel nomotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Threshold : + * + * bno055_set_accel_slow_no_motion_thres() + * + * Duration : + * + * bno055_set_accel_slow_no_motion_durn() + * + * Slow/no motion enable: + * + * bno055_set_accel_slow_no_motion_enable() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_mask_accel_no_motion(u8 accel_nomotion_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR GYRO INTERRUPT */ +/*****************************************************/ + +/*! + * @brief This API used to read the gyro anymotion interrupt + * from page one register from 0x10 bit 2 + * + * @param gyro_any_motion_u8 : The value of gyro anymotion interrupt + * gyro_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro anymotion interrupt + * configure the following settings + * + * Axis: + * bno055_set_gyro_any_motion_axis_enable() + * + * Filter setting: + * bno055_set_gyro_any_motion_filter() + * + * Threshold : + * + * bno055_set_gyro_any_motion_thres() + * + * Slope samples : + * + * bno055_set_gyro_any_motion_slope_samples() + * + * Awake duration : + * + * bno055_set_gyro_any_motion_awake_durn() + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_gyro_any_motion(u8 *gyro_any_motion_u8); + +/*! + * @brief This API used to write the gyro anymotion interrupt + * from page one register from 0x10 bit 2 + * + * @param gyro_any_motion_u8 : The value of gyro anymotion interrupt + * gyro_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro anymotion interrupt + * configure the following settings + * + * Axis: + * bno055_set_gyro_any_motion_axis_enable() + * + * Filter setting: + * bno055_set_gyro_any_motion_filter() + * + * Threshold : + * + * bno055_set_gyro_any_motion_thres() + * + * Slope samples : + * + * bno055_set_gyro_any_motion_slope_samples() + * + * Awake duration : + * + * bno055_set_gyro_any_motion_awake_durn() + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_gyro_any_motion(u8 gyro_any_motion_u8); + +/*! + * @brief This API used to read the gyro highrate interrupt + * from page one register from 0x10 bit 3 + * + * @param gyro_highrate_u8 : The value of gyro highrate interrupt + * gyro_highrate_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro highrate interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_gyro_highrate_axis_enable() + * + * Filter : + * + * bno055_set_gyro_highrate_filter() + * + * Threshold : + * + * bno055_get_gyro_highrate_x_thres() + * + * bno055_get_gyro_highrate_y_thres() + * + * bno055_get_gyro_highrate_z_thres() + * + * Hysteresis : + * + * bno055_set_gyro_highrate_x_hyst() + * + * bno055_set_gyro_highrate_y_hyst() + * + * bno055_set_gyro_highrate_z_hyst() + * + * Duration : + * + * bno055_set_gyro_highrate_x_durn() + * + * bno055_set_gyro_highrate_y_durn() + * + * bno055_set_gyro_highrate_z_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_gyro_highrate(u8 *gyro_highrate_u8); + +/*! + * @brief This API used to write the gyro highrate interrupt + * from page one register from 0x10 bit 3 + * + * @param gyro_highrate_u8 : The value of gyro highrate interrupt + * gyro_highrate_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the gyro highrate interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_gyro_highrate_axis_enable() + * + * Filter : + * + * bno055_set_gyro_highrate_filter() + * + * Threshold : + * + * bno055_get_gyro_highrate_x_thres() + * + * bno055_get_gyro_highrate_y_thres() + * + * bno055_get_gyro_highrate_z_thres() + * + * Hysteresis : + * + * bno055_set_gyro_highrate_x_hyst() + * + * bno055_set_gyro_highrate_y_hyst() + * + * bno055_set_gyro_highrate_z_hyst() + * + * Duration : + * + * bno055_set_gyro_highrate_x_durn() + * + * bno055_set_gyro_highrate_y_durn() + * + * bno055_set_gyro_highrate_z_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_gyro_highrate(u8 gyro_highrate_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR ACCEL INTERRUPT */ +/*****************************************************/ + +/*! + * @brief This API used to read the accel highg interrupt + * from page one register from 0x10 bit 5 + * + * @param accel_high_g_u8 : The value of accel highg interrupt + * accel_high_g_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel highg interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_accel_high_g_axis_enable() + * + * Threshold : + * + * bno055_set_accel_high_g_thres() + * + * Duration : + * + * bno055_set_accel_high_g_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_accel_high_g(u8 *accel_high_g_u8); + +/*! + * @brief This API used to write the accel highg interrupt + * from page one register from 0x10 bit 5 + * + * @param accel_high_g_u8 : The value of accel highg interrupt + * accel_high_g_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel highg interrupt + * configure the below settings by using + * the following APIs + * + * Axis : + * + * bno055_set_accel_high_g_axis_enable() + * + * Threshold : + * + * bno055_set_accel_high_g_thres() + * + * Duration : + * + * bno055_set_accel_high_g_durn() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_accel_high_g(u8 accel_high_g_u8); + +/*! + * @brief This API used to read the accel anymotion interrupt + * from page one register from 0x10 bit 6 + * + * @param accel_any_motion_u8 : The value of accel anymotion interrupt + * accel_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel anymotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Duration: + * + * bno055_set_accel_any_motion_durn() + * + * Threshold: + * + * bno055_set_accel_any_motion_thres() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_accel_any_motion(u8 *accel_any_motion_u8); + +/*! + * @brief This API used to write the accel anymotion interrupt + * from page one register from 0x10 bit 6 + * + * @param accel_any_motion_u8 : The value of accel anymotion interrupt + * accel_any_motion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel anymotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Duration: + * + * bno055_set_accel_any_motion_durn() + * + * Threshold: + * + * bno055_set_accel_any_motion_thres() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_accel_any_motion(u8 accel_any_motion_u8); + +/*! + * @brief This API used to read the accel nomotion interrupt + * from page one register from 0x10 bit 6 + * + * @param accel_nomotion_u8 : The value of accel nomotion interrupt + * accel_nomotion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel nomotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Threshold : + * + * bno055_set_accel_slow_no_motion_thres() + * + * Duration : + * + * bno055_set_accel_slow_no_motion_durn() + * + * Slow/no motion enable: + * + * bno055_set_accel_slow_no_motion_enable() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_intr_accel_no_motion(u8 *accel_nomotion_u8); + +/*! + * @brief This API used to write the accel nomotion interrupt + * from page one register from 0x10 bit 6 + * + * @param accel_nomotion_u8 : The value of accel nomotion interrupt + * accel_nomotion_u8 | result + * -------------------- |------------ + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note While enabling the accel nomotion interrupt + * configure the following settings + * + * Axis: + * + * bno055_set_accel_any_motion_no_motion_axis_enable() + * + * Threshold : + * + * bno055_set_accel_slow_no_motion_thres() + * + * Duration : + * + * bno055_set_accel_slow_no_motion_durn() + * + * Slow/no motion enable: + * + * bno055_set_accel_slow_no_motion_enable() + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_intr_accel_no_motion(u8 accel_nomotion_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR ACCEL ANY_MOTION THRESHOLD */ +/*****************************************************/ + +/*! + * @brief This API used to read the accel any motion threshold + * from page one register from 0x11 bit 0 to 7 + * + * @param accel_any_motion_thres_u8 : The value of any motion threshold + * accel_any_motion_thres_u8 | result + * ------------------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel anymotion threshold dependent on the + * range values + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 3.19mg | 1LSB + * 4g | 7.81mg | 1LSB + * 8g | 15.63mg | 1LSB + * 16g | 31.25mg | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_any_motion_thres(u8 *accel_any_motion_thres_u8); + +/*! + * @brief This API used to write the accel any motion threshold + * from page one register from 0x11 bit 0 to 7 + * + * @param accel_any_motion_thres_u8 : The value of any motion threshold + * accel_any_motion_thres_u8 | result + * ------------------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel anymotion threshold dependent on the + * range values + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 3.19mg | 1LSB + * 4g | 7.81mg | 1LSB + * 8g | 15.63mg | 1LSB + * 16g | 31.25mg | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_any_motion_thres(u8 accel_any_motion_thres_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR ACCEL ANY_MOTION DURATION */ +/*****************************************************/ + +/*! + * @brief This API used to read the accel anymotion duration + * from page one register from 0x12 bit 0 to 1 + * + * @param accel_any_motion_durn_u8 : The value of accel anymotion duration + * accel_any_motion_durn_u8 | result + * ------------------------- | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_any_motion_durn(u8 *accel_any_motion_durn_u8); + +/*! + * @brief This API used to write the accel anymotion duration + * from page one register from 0x12 bit 0 to 1 + * + * @param accel_any_motion_durn_u8 : The value of accel anymotion duration + * + * accel_any_motion_durn_u8 | result + * ------------------------- | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_any_motion_durn(u8 accel_any_motion_durn_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR ACCEL ANY_MOTION AXIS ENABLE */ +/*****************************************************/ + +/*! + * @brief This API used to read the accel anymotion enable + * from page one register from 0x12 bit 2 to 4 + * + * @param data_u8 : The value of accel anymotion enable + * data_u8 | result + * ------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of accel anymotion axis selection + * channel_u8 | value + * -------------------------- | ---------- + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_X_AXIS | 0 + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_Y_AXIS | 1 + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_Y_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_any_motion_no_motion_axis_enable(u8 channel_u8, u8 *data_u8); + +/*! + * @brief This API used to write the accel anymotion enable + * from page one register from 0x12 bit 2 to 4 + * + * @param data_u8 : The value of accel anymotion enable + * data_u8 | result + * ------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of accel anymotion axis selection + * channel_u8 | value + * -------------------------- | ---------- + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_X_AXIS | 0 + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_Y_AXIS | 1 + * BNO055_ACCEL_ANY_MOTION_NO_MOTION_Y_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_any_motion_no_motion_axis_enable(u8 channel_u8, u8 data_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR ACCEL HIGHG AXIS ENABLE */ +/*****************************************************/ + +/*! + * @brief This API used to read the accel highg enable + * from page one register from 0x12 bit 5 to 7 + * + * @param data_u8 : The value of accel highg enable + * data_u8| result + * ------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of accel highg axis selection + * channel_u8 | value + * -------------------------- | ---------- + * BNO055_ACCEL_HIGH_G_X_AXIS | 0 + * BNO055_ACCEL_HIGH_G_Y_AXIS | 1 + * BNO055_ACCEL_HIGH_G_Z_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_high_g_axis_enable(u8 channel_u8, u8 *data_u8); + +/*! + * @brief This API used to write the accel highg enable + * from page one register from 0x12 bit 5 to 7 + * + * @param data_u8 : The value of accel highg enable + * data_u8| result + * ------------ | ------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of accel highg axis selection + * channel_u8 | value + * -------------------------- | ---------- + * BNO055_ACCEL_HIGH_G_X_AXIS | 0 + * BNO055_ACCEL_HIGH_G_Y_AXIS | 1 + * BNO055_ACCEL_HIGH_G_Z_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_high_g_axis_enable(u8 channel_u8, u8 data_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR ACCEL HIGHG DURATION */ +/*****************************************************/ + +/*! + * @brief This API used to read the accel highg duration + * from page one register from 0x13 bit 0 to 7 + * + * @param accel_high_g_durn_u8 : The value of accel highg duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The high-g interrupt trigger delay according + * to [highg duration + 1] * 2 ms + * + * in a range from 2 ms to 512 ms + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_high_g_durn(u8 *accel_high_g_durn_u8); + +/*! + * @brief This API used to write the accel highg duration + * from page one register from 0x13 bit 0 to 7 + * + * @param accel_high_g_durn_u8 : The value of accel highg duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note The high-g interrupt trigger delay according + * to [highg duration + 1] * 2 ms + * + * in a range from 2 ms to 512 ms + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_high_g_durn(u8 accel_high_g_durn_u8); + +/*****************************************************/ +/**\name FUNCTIONS FOR ACCEL HIGHG THRESHOLD */ +/*****************************************************/ + +/*! + * @brief This API used to read the accel highg threshold + * from page one register from 0x14 bit 0 to 7 + * + * @param accel_high_g_thres_u8 : The value of accel highg threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel highg interrupt threshold dependent + * for accel g range + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 7.81mg | 1LSB + * 4g | 15.63mg | 1LSB + * 8g | 31.25mg | 1LSB + * 16g | 62.5mg | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_high_g_thres(u8 *accel_high_g_thres_u8); + +/*! + * @brief This API used to write the accel highg threshold + * from page one register from 0x14 bit 0 to 7 + * + * @param accel_high_g_thres_u8 : The value of accel highg threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel highg interrupt threshold dependent + * for accel g range + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 7.81mg | 1LSB + * 4g | 15.63mg | 1LSB + * 8g | 31.25mg | 1LSB + * 16g | 62.5mg | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_high_g_thres(u8 accel_high_g_thres_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR ACCEL SLOWNOMOTION THRESHOLD */ +/**************************************************************/ + +/*! + * @brief This API used to read the accel slownomotion threshold + * from page one register from 0x15 bit 0 to 7 + * + * @param accel_slow_no_motion_thres_u8 : + * The value of accel slownomotion threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel slow no motion interrupt threshold dependent + * for accel g range + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 3.19mg | 1LSB + * 4g | 7.81mg | 1LSB + * 8g | 15.63mg | 1LSB + * 16g | 31.25mg | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_slow_no_motion_thres(u8 *accel_slow_no_motion_thres_u8); + +/*! + * @brief This API used to write the accel slownomotion threshold + * from page one register from 0x15 bit 0 to 7 + * + * @param accel_slow_no_motion_thres_u8 : + * The value of accel slownomotion threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Accel slow no motion interrupt threshold dependent + * for accel g range + * + * accel_range_u8 | threshold | LSB + * ------------- | ------------- | --------- + * 2g | 3.19mg | 1LSB + * 4g | 7.81mg | 1LSB + * 8g | 15.63mg | 1LSB + * 16g | 31.25mg | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_slow_no_motion_thres(u8 accel_slow_no_motion_thres_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR ACCEL SLOWNOMOTION ENABLE */ +/**************************************************************/ + +/*! + * @brief This API used to read accel slownomotion enable + * from page one register from 0x16 bit 0 + * + * @param accel_slow_no_motion_en_u8 : The value of accel slownomotion enable + * accel_slow_no_motion_en_u8 | result + * ------------------------ | -------- + * 0x01 | Slow motion + * 0x00 | No motion + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_slow_no_motion_enable(u8 *accel_slow_no_motion_en_u8); + +/*! + * @brief This API used to write accel slownomotion enable + * from page one register from 0x16 bit 0 + * + * @param accel_slow_no_motion_en_u8 : The value of accel slownomotion enable + * accel_slow_no_motion_en_u8 | result + * ------------------------ | -------- + * 0x01 | Slow motion + * 0x00 | No motion + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_slow_no_motion_enable(u8 accel_slow_no_motion_en_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR ACCEL SLOWNOMOTION DURATION */ +/**************************************************************/ + +/*! + * @brief This API used to read accel slownomotion duration + * from page one register from 0x16 bit 1 to 6 + * + * @param accel_slow_no_motion_durn_u8 : + * The value of accel slownomotion duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_accel_slow_no_motion_durn(u8 *accel_slow_no_motion_durn_u8); + +/*! + * @brief This API used to write accel slownomotion duration + * from page one register from 0x16 bit 1 to 6 + * + * @param accel_slow_no_motion_durn_u8 : + * The value of accel slownomotion duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_accel_slow_no_motion_durn(u8 accel_slow_no_motion_durn_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO ANY_MOTION AXIS ENABLE */ +/**************************************************************/ + +/*! + * @brief This API used to read the gyro anymotion enable + * from page one register from 0x17 bit 0 to 2 + * + * @param data_u8 : The value of gyro anymotion enable + * data_u8 | result + * ----------------- |------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of gyro anymotion axis selection + * channel_u8 | value + * --------------------------- | ---------- + * BNO055_GYRO_ANY_MOTIONX_AXIS | 0 + * BNO055_GYRO_ANY_MOTIONY_AXIS | 1 + * BNO055_GYRO_ANY_MOTIONZ_AXIS | 2 + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_any_motion_axis_enable(u8 channel_u8, u8 *data_u8); + +/*! + * @brief This API used to write the gyro anymotion enable + * from page one register from 0x17 bit 0 to 2 + * + * @param data_u8 : The value of gyro anymotion enable + * data_u8 | result + * ----------------- |------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of gyro anymotion axis selection + * channel_u8 | value + * --------------------------- | ---------- + * BNO055_GYRO_ANY_MOTIONX_AXIS | 0 + * BNO055_GYRO_ANY_MOTIONY_AXIS | 1 + * BNO055_GYRO_ANY_MOTIONZ_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_any_motion_axis_enable(u8 channel_u8, u8 data_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE ENABLE */ +/**************************************************************/ + +/*! + * @brief This API used to read the gyro highrate enable + * from page one register from 0x17 bit 3 to 5 + * + * @param data_u8 : The value of gyro highrate enable + * data_u8 | result + * ---------------- |------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of gyro highrate axis selection + * channel_u8 | value + * ------------------------ | ---------- + * BNO055_GYRO_HIGHRATE_X_AXIS | 0 + * BNO055_GYRO_HIGHRATE_Y_AXIS | 1 + * BNO055_GYRO_HIGHRATE_Z_AXIS | 2 + * + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_axis_enable(u8 channel_u8, u8 *data_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE AXIS ENABLE */ +/**************************************************************/ + +/*! + * @brief This API used to write the gyro highrate enable + * from page one register from 0x17 bit 3 to 5 + * + * @param data_u8 : The value of gyro highrate enable + * data_u8 | result + * ---------------- |------------- + * 0x01 | BNO055_BIT_ENABLE + * 0x00 | BNO055_BIT_DISABLE + * @param channel_u8 : The value of gyro highrate axis selection + * channel_u8 | value + * ------------------------ | ---------- + * BNO055_GYRO_HIGHRATE_X_AXIS | 0 + * BNO055_GYRO_HIGHRATE_Y_AXIS | 1 + * BNO055_GYRO_HIGHRATE_Z_AXIS | 2 + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_axis_enable(u8 channel_u8, u8 data_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO ANY_MOTION FILTER */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro anymotion filter + * from page one register from 0x17 bit 6 + * + * @param gyro_any_motion_filter_u8 : The value of gyro anymotion filter + * gyro_any_motion_filter_u8 | result + * --------------------------- |------------ + * 0x00 | BNO055_GYRO_FILTERED_CONFIG + * 0x01 | BNO055_GYRO_UNFILTERED_CONFIG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_any_motion_filter(u8 *gyro_any_motion_filter_u8); + +/*! + * @brief This API used to write gyro anymotion filter + * from page one register from 0x17 bit 6 + * + * @param gyro_any_motion_filter_u8 : The value of gyro anymotion filter + * gyro_any_motion_filter_u8 | result + * --------------------------- |------------ + * 0x00 | BNO055_GYRO_FILTERED_CONFIG + * 0x01 | BNO055_GYRO_UNFILTERED_CONFIG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_any_motion_filter(u8 gyro_any_motion_filter_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE FILTER */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro highrate filter + * from page one register from 0x17 bit 7 + * + * @param gyro_highrate_filter_u8 : The value of gyro highrate filter + * gyro_highrate_filter_u8 | result + * --------------------------- |------------ + * 0x00 | BNO055_GYRO_FILTERED_CONFIG + * 0x01 | BNO055_GYRO_UNFILTERED_CONFIG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_filter(u8 *gyro_highrate_filter_u8); + +/*! + * @brief This API used to write gyro highrate filter + * from page one register from 0x17 bit 7 + * + * @param gyro_highrate_filter_u8 : The value of gyro highrate filter + * gyro_highrate_filter_u8 | result + * --------------------------- |------------ + * 0x00 | BNO055_GYRO_FILTERED_CONFIG + * 0x01 | BNO055_GYRO_UNFILTERED_CONFIG + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_filter(u8 gyro_highrate_filter_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE X THRESHOLD */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro highrate x threshold + * from page one register from 0x18 bit 0 to 4 + * + * @param gyro_highrate_x_thres_u8 : The value of gyro x highrate threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_x_thres(u8 *gyro_highrate_x_thres_u8); + +/*! + * @brief This API used to write gyro highrate x threshold + * from page one register from 0x18 bit 0 to 4 + * + * @param gyro_highrate_x_thres_u8 : The value of gyro x highrate threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_x_thres(u8 gyro_highrate_x_thres_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE X HYSTERESIS */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro highrate x hysteresis + * from page one register from 0x18 bit 5 to 6 + * + * @param gyro_highrate_x_hyst_u8 : The value of gyro highrate x hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_x_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_x_hyst(u8 *gyro_highrate_x_hyst_u8); + +/*! + * @brief This API used to write gyro highrate x hysteresis + * from page one register from 0x18 bit 5 to 6 + * + * @param gyro_highrate_x_hyst_u8 : The value of gyro highrate x hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_x_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_x_hyst(u8 gyro_highrate_x_hyst_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE X DURATION */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro highrate x duration + * from page one register from 0x19 bit 0 to 7 + * + * @param gyro_highrate_x_durn_u8 : The value of gyro highrate x duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_x_durn_u8)*2.5ms + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_x_durn(u8 *gyro_highrate_x_durn_u8); + +/*! + * @brief This API used to write gyro highrate x duration + * from page one register from 0x19 bit 0 to 7 + * + * @param gyro_highrate_x_durn_u8 : The value of gyro highrate x duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_x_durn_u8)*2.5ms + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_x_durn(u8 gyro_highrate_x_durn_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE Y THRESHOLD */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro highrate y threshold + * from page one register from 0x1A bit 0 to 4 + * + * @param gyro_highrate_y_thres_u8 : The value of gyro highrate y threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_y_thres(u8 *gyro_highrate_y_thres_u8); + +/*! + * @brief This API used to write gyro highrate y threshold + * from page one register from 0x1A bit 0 to 4 + * + * @param gyro_highrate_y_thres_u8 : The value of gyro highrate y threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_y_thres(u8 gyro_highrate_y_thres_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE Y HYSTERESIS */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro highrate y hysteresis + * from page one register from 0x1A bit 5 to 6 + * + * @param gyro_highrate_y_hyst_u8 : The value of gyro highrate y hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_y_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_y_hyst(u8 *gyro_highrate_y_hyst_u8); + +/*! + * @brief This API used to write gyro highrate y hysteresis + * from page one register from 0x1A bit 5 to 6 + * + * @param gyro_highrate_y_hyst_u8 : The value of gyro highrate y hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_y_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_y_hyst(u8 gyro_highrate_y_hyst_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE Y DURATION */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro highrate y duration + * from page one register from 0x1B bit 0 to 7 + * + * @param gyro_highrate_y_durn_u8 : The value of gyro highrate y duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_y_durn_u8)*2.5ms + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_y_durn(u8 *gyro_highrate_y_durn_u8); + +/*! + * @brief This API used to write gyro highrate y duration + * from page one register from 0x1B bit 0 to 7 + * + * @param gyro_highrate_y_durn_u8 : The value of gyro highrate y duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_y_durn_u8)*2.5ms + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_y_durn(u8 gyro_highrate_y_durn_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE Z THRESHOLD */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro highrate z threshold + * from page one register from 0x1C bit 0 to 4 + * + * @param gyro_highrate_z_thres_u8 : The value of gyro highrate z threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_z_thres(u8 *gyro_highrate_z_thres_u8); + +/*! + * @brief This API used to write gyro highrate z threshold + * from page one register from 0x1C bit 0 to 4 + * + * @param gyro_highrate_z_thres_u8 : The value of gyro highrate z threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate threshold dependent on the + * selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.5dps | 1LSB + * 1000 | 31.25dps | 1LSB + * 500 | 15.625dps | 1LSB + * 125 | 7.8125dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_z_thres(u8 gyro_highrate_z_thres_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE Z HYSTERESIS */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro highrate z hysteresis + * from page one register from 0x1C bit 5 to 6 + * + * @param gyro_highrate_z_hyst_u8 : The value of gyro highrate z hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_z_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_z_hyst(u8 *gyro_highrate_z_hyst_u8); + +/*! + * @brief This API used to write gyro highrate z hysteresis + * from page one register from 0x1C bit 5 to 6 + * + * @param gyro_highrate_z_hyst_u8 : The value of gyro highrate z hysteresis + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro high rate hysteresis calculated by + * + * using this (255 + 256 * gyro_highrate_z_hyst_u8) *4 LSB + * + * The high rate value scales with the range setting + * + * gyro_range_u8 | hysteresis | LSB + * ----------------- | ------------- | --------- + * 2000 | 62.26dps | 1LSB + * 1000 | 31.13dps | 1LSB + * 500 | 15.56dps | 1LSB + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_z_hyst(u8 gyro_highrate_z_hyst_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO HIGHRATE Z DURATION */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro highrate z duration + * from page one register from 0x1D bit 0 to 7 + * + * @param gyro_highrate_z_durn_u8 : The value of gyro highrate z duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_z_durn_u8)*2.5ms + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_highrate_z_durn(u8 *gyro_highrate_z_durn_u8); + +/*! + * @brief This API used to write gyro highrate z duration + * from page one register from 0x1D bit 0 to 7 + * + * @param gyro_highrate_z_durn_u8 : The value of gyro highrate z duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro highrate duration calculate by using the formula + * + * (1 + gyro_highrate_z_durn_u8)*2.5ms + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_highrate_z_durn(u8 gyro_highrate_z_durn_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO ANY_MOTION THRESHOLD */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro anymotion threshold + * from page one register from 0x1E bit 0 to 6 + * + * @param gyro_any_motion_thres_u8 : The value of gyro anymotion threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro anymotion interrupt threshold dependent + * on the selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 1dps | 1LSB + * 1000 | 0.5dps | 1LSB + * 500 | 0.25dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_any_motion_thres(u8 *gyro_any_motion_thres_u8); + +/*! + * @brief This API used to write gyro anymotion threshold + * from page one register from 0x1E bit 0 to 6 + * + * @param gyro_any_motion_thres_u8 : The value of gyro anymotion threshold + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + * @note Gyro anymotion interrupt threshold dependent + * on the selection of gyro range + * + * gyro_range_u8 | threshold | LSB + * ----------------- | ------------- | --------- + * 2000 | 1dps | 1LSB + * 1000 | 0.5dps | 1LSB + * 500 | 0.25dps | 1LSB + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_any_motion_thres(u8 gyro_any_motion_thres_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO ANY_MOTION SLOPE SAMPLES */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro anymotion slope samples + * from page one register from 0x1F bit 0 to 1 + * + * @param gyro_any_motion_slope_samples_u8 : + * The value of gyro anymotion slope samples + * gyro_any_motion_slope_samples_u8 | result + * ---------------------------------- | ----------- + * 0 | 8 samples + * 1 | 16 samples + * 2 | 32 samples + * 3 | 64 samples + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_any_motion_slope_samples(u8 *gyro_any_motion_slope_samples_u8); + +/*! + * @brief This API used to write gyro anymotion slope samples + * from page one register from 0x1F bit 0 to 1 + * + * @param gyro_any_motion_slope_samples_u8 : + * The value of gyro anymotion slope samples + * gyro_any_motion_slope_samples_u8 | result + * ---------------------------------- | ----------- + * 0 | 8 samples + * 1 | 16 samples + * 2 | 32 samples + * 3 | 64 samples + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_any_motion_slope_samples(u8 gyro_any_motion_slope_samples_u8); + +/**************************************************************/ +/**\name FUNCTIONS FOR GYRO ANY_MOTION AWAKE DURATION */ +/**************************************************************/ + +/*! + * @brief This API used to read gyro anymotion awake duration + * from page one register from 0x1F bit 2 to 3 + * + * @param gyro_awake_durn_u8 : The value of gyro anymotion awake duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_get_gyro_any_motion_awake_durn(u8 *gyro_awake_durn_u8); + +/*! + * @brief This API used to write gyro anymotion awake duration + * from page one register from 0x1F bit 2 to 3 + * + * @param gyro_awake_durn_u8 : The value of gyro anymotion awake duration + * + * @return results of bus communication function + * @retval 0 -> BNO055_SUCCESS + * @retval 1 -> BNO055_ERROR + * + */ +BNO055_RETURN_FUNCTION_TYPE bno055_set_gyro_any_motion_awake_durn(u8 gyro_awake_durn_u8); + +#endif diff --git a/lib/hardware/sensors/9dof/bno055_support.c b/lib/hardware/sensors/9dof/bno055_support.c new file mode 100644 index 00000000..f60e9946 --- /dev/null +++ b/lib/hardware/sensors/9dof/bno055_support.c @@ -0,0 +1,643 @@ +/** +* Copyright (c) 2020 Bosch Sensortec GmbH. All rights reserved. +* +* BSD-3-Clause +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its +* contributors may be used to endorse or promote products derived from +* this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @file bno055_support.c +* @date 10/01/2020 +* @version 2.0.6 +* +*/ + +/*---------------------------------------------------------------------------* +* Includes +*---------------------------------------------------------------------------*/ +#include "bno055.h" + +/*----------------------------------------------------------------------------* +* The following APIs are used for reading and writing of +* sensor data using I2C communication +*----------------------------------------------------------------------------*/ +#ifdef BNO055_API +#define BNO055_I2C_BUS_WRITE_ARRAY_INDEX ((u8)1) + +/* \Brief: The API is used as I2C bus read + * \Return : Status of the I2C read + * \param dev_addr : The device address of the sensor + * \param reg_addr : Address of the first register, + * will data is going to be read + * \param reg_data : This data read from the sensor, + * which is hold in an array + * \param cnt : The no of byte of data to be read + */ +s8 BNO055_I2C_bus_read(u8 dev_addr, u8 reg_addr, u8 *reg_data, u8 cnt); + +/* \Brief: The API is used as SPI bus write + * \Return : Status of the SPI write + * \param dev_addr : The device address of the sensor + * \param reg_addr : Address of the first register, + * will data is going to be written + * \param reg_data : It is a value hold in the array, + * will be used for write the value into the register + * \param cnt : The no of byte of data to be write + */ +s8 BNO055_I2C_bus_write(u8 dev_addr, u8 reg_addr, u8 *reg_data, u8 cnt); + +/* + * \Brief: I2C init routine + */ +s8 I2C_routine(void); + +/* Brief : The delay routine + * \param : delay in ms + */ +void BNO055_delay_msek(u32 msek); + +#endif + +/********************End of I2C APIs declarations***********************/ + +/* This API is an example for reading sensor data + * \param: None + * \return: communication result + */ +s32 bno055_data_readout_template(void); + +/*----------------------------------------------------------------------------* + * struct bno055_t parameters can be accessed by using BNO055 + * BNO055_t having the following parameters + * Bus write function pointer: BNO055_WR_FUNC_PTR + * Bus read function pointer: BNO055_RD_FUNC_PTR + * Burst read function pointer: BNO055_BRD_FUNC_PTR + * Delay function pointer: delay_msec + * I2C address: dev_addr + * Chip id of the sensor: chip_id + *---------------------------------------------------------------------------*/ +struct bno055_t bno055; + +/* This API is an example for reading sensor data + * \param: None + * \return: communication result + */ +s32 bno055_data_readout_template(void) +{ + /* Variable used to return value of + * communication routine*/ + s32 comres = BNO055_ERROR; + + /* variable used to set the power mode of the sensor*/ + u8 power_mode = BNO055_INIT_VALUE; + + /*********read raw accel data***********/ + /* variable used to read the accel x data */ + s16 accel_datax = BNO055_INIT_VALUE; + + /* variable used to read the accel y data */ + s16 accel_datay = BNO055_INIT_VALUE; + + /* variable used to read the accel z data */ + s16 accel_dataz = BNO055_INIT_VALUE; + + /* variable used to read the accel xyz data */ + struct bno055_accel_t accel_xyz; + + /*********read raw mag data***********/ + /* variable used to read the mag x data */ + s16 mag_datax = BNO055_INIT_VALUE; + + /* variable used to read the mag y data */ + s16 mag_datay = BNO055_INIT_VALUE; + + /* variable used to read the mag z data */ + s16 mag_dataz = BNO055_INIT_VALUE; + + /* structure used to read the mag xyz data */ + struct bno055_mag_t mag_xyz; + + /***********read raw gyro data***********/ + /* variable used to read the gyro x data */ + s16 gyro_datax = BNO055_INIT_VALUE; + + /* variable used to read the gyro y data */ + s16 gyro_datay = BNO055_INIT_VALUE; + + /* variable used to read the gyro z data */ + s16 gyro_dataz = BNO055_INIT_VALUE; + + /* structure used to read the gyro xyz data */ + struct bno055_gyro_t gyro_xyz; + + /*************read raw Euler data************/ + /* variable used to read the euler h data */ + s16 euler_data_h = BNO055_INIT_VALUE; + + /* variable used to read the euler r data */ + s16 euler_data_r = BNO055_INIT_VALUE; + + /* variable used to read the euler p data */ + s16 euler_data_p = BNO055_INIT_VALUE; + + /* structure used to read the euler hrp data */ + struct bno055_euler_t euler_hrp; + + /************read raw quaternion data**************/ + /* variable used to read the quaternion w data */ + s16 quaternion_data_w = BNO055_INIT_VALUE; + + /* variable used to read the quaternion x data */ + s16 quaternion_data_x = BNO055_INIT_VALUE; + + /* variable used to read the quaternion y data */ + s16 quaternion_data_y = BNO055_INIT_VALUE; + + /* variable used to read the quaternion z data */ + s16 quaternion_data_z = BNO055_INIT_VALUE; + + /* structure used to read the quaternion wxyz data */ + struct bno055_quaternion_t quaternion_wxyz; + + /************read raw linear acceleration data***********/ + /* variable used to read the linear accel x data */ + s16 linear_accel_data_x = BNO055_INIT_VALUE; + + /* variable used to read the linear accel y data */ + s16 linear_accel_data_y = BNO055_INIT_VALUE; + + /* variable used to read the linear accel z data */ + s16 linear_accel_data_z = BNO055_INIT_VALUE; + + /* structure used to read the linear accel xyz data */ + struct bno055_linear_accel_t linear_acce_xyz; + + /*****************read raw gravity sensor data****************/ + /* variable used to read the gravity x data */ + s16 gravity_data_x = BNO055_INIT_VALUE; + + /* variable used to read the gravity y data */ + s16 gravity_data_y = BNO055_INIT_VALUE; + + /* variable used to read the gravity z data */ + s16 gravity_data_z = BNO055_INIT_VALUE; + + /* structure used to read the gravity xyz data */ + struct bno055_gravity_t gravity_xyz; + + /*************read accel converted data***************/ + /* variable used to read the accel x data output as m/s2 or mg */ + double d_accel_datax = BNO055_INIT_VALUE; + + /* variable used to read the accel y data output as m/s2 or mg */ + double d_accel_datay = BNO055_INIT_VALUE; + + /* variable used to read the accel z data output as m/s2 or mg */ + double d_accel_dataz = BNO055_INIT_VALUE; + + /* structure used to read the accel xyz data output as m/s2 or mg */ + struct bno055_accel_double_t d_accel_xyz; + + /******************read mag converted data********************/ + /* variable used to read the mag x data output as uT*/ + double d_mag_datax = BNO055_INIT_VALUE; + + /* variable used to read the mag y data output as uT*/ + double d_mag_datay = BNO055_INIT_VALUE; + + /* variable used to read the mag z data output as uT*/ + double d_mag_dataz = BNO055_INIT_VALUE; + + /* structure used to read the mag xyz data output as uT*/ + struct bno055_mag_double_t d_mag_xyz; + + /*****************read gyro converted data************************/ + /* variable used to read the gyro x data output as dps or rps */ + double d_gyro_datax = BNO055_INIT_VALUE; + + /* variable used to read the gyro y data output as dps or rps */ + double d_gyro_datay = BNO055_INIT_VALUE; + + /* variable used to read the gyro z data output as dps or rps */ + double d_gyro_dataz = BNO055_INIT_VALUE; + + /* structure used to read the gyro xyz data output as dps or rps */ + struct bno055_gyro_double_t d_gyro_xyz; + + /*******************read euler converted data*******************/ + + /* variable used to read the euler h data output + * as degree or radians*/ + double d_euler_data_h = BNO055_INIT_VALUE; + + /* variable used to read the euler r data output + * as degree or radians*/ + double d_euler_data_r = BNO055_INIT_VALUE; + + /* variable used to read the euler p data output + * as degree or radians*/ + double d_euler_data_p = BNO055_INIT_VALUE; + + /* structure used to read the euler hrp data output + * as as degree or radians */ + struct bno055_euler_double_t d_euler_hpr; + + /*********read linear acceleration converted data**********/ + /* variable used to read the linear accel x data output as m/s2*/ + double d_linear_accel_datax = BNO055_INIT_VALUE; + + /* variable used to read the linear accel y data output as m/s2*/ + double d_linear_accel_datay = BNO055_INIT_VALUE; + + /* variable used to read the linear accel z data output as m/s2*/ + double d_linear_accel_dataz = BNO055_INIT_VALUE; + + /* structure used to read the linear accel xyz data output as m/s2*/ + struct bno055_linear_accel_double_t d_linear_accel_xyz; + + /********************Gravity converted data**********************/ + /* variable used to read the gravity sensor x data output as m/s2*/ + double d_gravity_data_x = BNO055_INIT_VALUE; + + /* variable used to read the gravity sensor y data output as m/s2*/ + double d_gravity_data_y = BNO055_INIT_VALUE; + + /* variable used to read the gravity sensor z data output as m/s2*/ + double d_gravity_data_z = BNO055_INIT_VALUE; + + /* structure used to read the gravity xyz data output as m/s2*/ + struct bno055_gravity_double_t d_gravity_xyz; + + /*---------------------------------------------------------------------------* + *********************** START INITIALIZATION ************************ + *--------------------------------------------------------------------------*/ +#ifdef BNO055_API + + /* Based on the user need configure I2C interface. + * It is example code to explain how to use the bno055 API*/ + I2C_routine(); +#endif + + /*--------------------------------------------------------------------------* + * This API used to assign the value/reference of + * the following parameters + * I2C address + * Bus Write + * Bus read + * Chip id + * Page id + * Accel revision id + * Mag revision id + * Gyro revision id + * Boot loader revision id + * Software revision id + *-------------------------------------------------------------------------*/ + comres = bno055_init(&bno055); + + /* For initializing the BNO sensor it is required to the operation mode + * of the sensor as NORMAL + * Normal mode can set from the register + * Page - page0 + * register - 0x3E + * bit positions - 0 and 1*/ + power_mode = BNO055_POWER_MODE_NORMAL; + + /* set the power mode as NORMAL*/ + comres += bno055_set_power_mode(power_mode); + + /*----------------------------------------------------------------* + ************************* END INITIALIZATION ************************* + *-----------------------------------------------------------------*/ + + /************************* START READ RAW SENSOR DATA****************/ + + /* Using BNO055 sensor we can read the following sensor data and + * virtual sensor data + * Sensor data: + * Accel + * Mag + * Gyro + * Virtual sensor data + * Euler + * Quaternion + * Linear acceleration + * Gravity sensor */ + + /* For reading sensor raw data it is required to set the + * operation modes of the sensor + * operation mode can set from the register + * page - page0 + * register - 0x3D + * bit - 0 to 3 + * for sensor data read following operation mode have to set + * SENSOR MODE + * 0x01 - BNO055_OPERATION_MODE_ACCONLY + * 0x02 - BNO055_OPERATION_MODE_MAGONLY + * 0x03 - BNO055_OPERATION_MODE_GYRONLY + * 0x04 - BNO055_OPERATION_MODE_ACCMAG + * 0x05 - BNO055_OPERATION_MODE_ACCGYRO + * 0x06 - BNO055_OPERATION_MODE_MAGGYRO + * 0x07 - BNO055_OPERATION_MODE_AMG + * based on the user need configure the operation mode*/ + comres += bno055_set_operation_mode(BNO055_OPERATION_MODE_AMG); + + /* Raw accel X, Y and Z data can read from the register + * page - page 0 + * register - 0x08 to 0x0D*/ + comres += bno055_read_accel_x(&accel_datax); + comres += bno055_read_accel_y(&accel_datay); + comres += bno055_read_accel_z(&accel_dataz); + comres += bno055_read_accel_xyz(&accel_xyz); + + /* Raw mag X, Y and Z data can read from the register + * page - page 0 + * register - 0x0E to 0x13*/ + comres += bno055_read_mag_x(&mag_datax); + comres += bno055_read_mag_y(&mag_datay); + comres += bno055_read_mag_z(&mag_dataz); + comres += bno055_read_mag_xyz(&mag_xyz); + + /* Raw gyro X, Y and Z data can read from the register + * page - page 0 + * register - 0x14 to 0x19*/ + comres += bno055_read_gyro_x(&gyro_datax); + comres += bno055_read_gyro_y(&gyro_datay); + comres += bno055_read_gyro_z(&gyro_dataz); + comres += bno055_read_gyro_xyz(&gyro_xyz); + + /************************* END READ RAW SENSOR DATA****************/ + + /************************* START READ RAW FUSION DATA ******** + * For reading fusion data it is required to set the + * operation modes of the sensor + * operation mode can set from the register + * page - page0 + * register - 0x3D + * bit - 0 to 3 + * for sensor data read following operation mode have to set + * FUSION MODE + * 0x08 - BNO055_OPERATION_MODE_IMUPLUS + * 0x09 - BNO055_OPERATION_MODE_COMPASS + * 0x0A - BNO055_OPERATION_MODE_M4G + * 0x0B - BNO055_OPERATION_MODE_NDOF_FMC_OFF + * 0x0C - BNO055_OPERATION_MODE_NDOF + * based on the user need configure the operation mode*/ + comres += bno055_set_operation_mode(BNO055_OPERATION_MODE_NDOF); + + /* Raw Euler H, R and P data can read from the register + * page - page 0 + * register - 0x1A to 0x1E */ + comres += bno055_read_euler_h(&euler_data_h); + comres += bno055_read_euler_r(&euler_data_r); + comres += bno055_read_euler_p(&euler_data_p); + comres += bno055_read_euler_hrp(&euler_hrp); + + /* Raw Quaternion W, X, Y and Z data can read from the register + * page - page 0 + * register - 0x20 to 0x27 */ + comres += bno055_read_quaternion_w(&quaternion_data_w); + comres += bno055_read_quaternion_x(&quaternion_data_x); + comres += bno055_read_quaternion_y(&quaternion_data_y); + comres += bno055_read_quaternion_z(&quaternion_data_z); + comres += bno055_read_quaternion_wxyz(&quaternion_wxyz); + + /* Raw Linear accel X, Y and Z data can read from the register + * page - page 0 + * register - 0x28 to 0x2D */ + comres += bno055_read_linear_accel_x(&linear_accel_data_x); + comres += bno055_read_linear_accel_y(&linear_accel_data_y); + comres += bno055_read_linear_accel_z(&linear_accel_data_z); + comres += bno055_read_linear_accel_xyz(&linear_acce_xyz); + + /* Raw Gravity sensor X, Y and Z data can read from the register + * page - page 0 + * register - 0x2E to 0x33 */ + comres += bno055_read_gravity_x(&gravity_data_x); + comres += bno055_read_gravity_y(&gravity_data_y); + comres += bno055_read_gravity_z(&gravity_data_z); + comres += bno055_read_gravity_xyz(&gravity_xyz); + + /************************* END READ RAW FUSION DATA ************/ + /******************START READ CONVERTED SENSOR DATA****************/ + + /* API used to read accel data output as double - m/s2 and mg + * float functions also available in the BNO055 API */ + comres += bno055_convert_double_accel_x_msq(&d_accel_datax); + comres += bno055_convert_double_accel_x_mg(&d_accel_datax); + comres += bno055_convert_double_accel_y_msq(&d_accel_datay); + comres += bno055_convert_double_accel_y_mg(&d_accel_datay); + comres += bno055_convert_double_accel_z_msq(&d_accel_dataz); + comres += bno055_convert_double_accel_z_mg(&d_accel_dataz); + comres += bno055_convert_double_accel_xyz_msq(&d_accel_xyz); + comres += bno055_convert_double_accel_xyz_mg(&d_accel_xyz); + + /* API used to read mag data output as double - uT(micro Tesla) + * float functions also available in the BNO055 API */ + comres += bno055_convert_double_mag_x_uT(&d_mag_datax); + comres += bno055_convert_double_mag_y_uT(&d_mag_datay); + comres += bno055_convert_double_mag_z_uT(&d_mag_dataz); + comres += bno055_convert_double_mag_xyz_uT(&d_mag_xyz); + + /* API used to read gyro data output as double - dps and rps + * float functions also available in the BNO055 API */ + comres += bno055_convert_double_gyro_x_dps(&d_gyro_datax); + comres += bno055_convert_double_gyro_y_dps(&d_gyro_datay); + comres += bno055_convert_double_gyro_z_dps(&d_gyro_dataz); + comres += bno055_convert_double_gyro_x_rps(&d_gyro_datax); + comres += bno055_convert_double_gyro_y_rps(&d_gyro_datay); + comres += bno055_convert_double_gyro_z_rps(&d_gyro_dataz); + comres += bno055_convert_double_gyro_xyz_dps(&d_gyro_xyz); + comres += bno055_convert_double_gyro_xyz_rps(&d_gyro_xyz); + + /* API used to read Euler data output as double - degree and radians + * float functions also available in the BNO055 API */ + comres += bno055_convert_double_euler_h_deg(&d_euler_data_h); + comres += bno055_convert_double_euler_r_deg(&d_euler_data_r); + comres += bno055_convert_double_euler_p_deg(&d_euler_data_p); + comres += bno055_convert_double_euler_h_rad(&d_euler_data_h); + comres += bno055_convert_double_euler_r_rad(&d_euler_data_r); + comres += bno055_convert_double_euler_p_rad(&d_euler_data_p); + comres += bno055_convert_double_euler_hpr_deg(&d_euler_hpr); + comres += bno055_convert_double_euler_hpr_rad(&d_euler_hpr); + + /* API used to read Linear acceleration data output as m/s2 + * float functions also available in the BNO055 API */ + comres += bno055_convert_double_linear_accel_x_msq(&d_linear_accel_datax); + comres += bno055_convert_double_linear_accel_y_msq(&d_linear_accel_datay); + comres += bno055_convert_double_linear_accel_z_msq(&d_linear_accel_dataz); + comres += bno055_convert_double_linear_accel_xyz_msq(&d_linear_accel_xyz); + + /* API used to read Gravity sensor data output as m/s2 + * float functions also available in the BNO055 API */ + comres += bno055_convert_gravity_double_x_msq(&d_gravity_data_x); + comres += bno055_convert_gravity_double_y_msq(&d_gravity_data_y); + comres += bno055_convert_gravity_double_z_msq(&d_gravity_data_z); + comres += bno055_convert_double_gravity_xyz_msq(&d_gravity_xyz); + + /*-----------------------------------------------------------------------* + ************************* START DE-INITIALIZATION *********************** + *-------------------------------------------------------------------------*/ + + /* For de - initializing the BNO sensor it is required + * to the operation mode of the sensor as SUSPEND + * Suspend mode can set from the register + * Page - page0 + * register - 0x3E + * bit positions - 0 and 1*/ + power_mode = BNO055_POWER_MODE_SUSPEND; + + /* set the power mode as SUSPEND*/ + comres += bno055_set_power_mode(power_mode); + + /*---------------------------------------------------------------------* + ************************* END DE-INITIALIZATION ********************** + *---------------------------------------------------------------------*/ + return comres; +} + +#ifdef BNO055_API + +/*--------------------------------------------------------------------------* + * The following API is used to map the I2C bus read, write, delay and + * device address with global structure bno055_t + *-------------------------------------------------------------------------*/ + +/*-------------------------------------------------------------------------* + * By using bno055 the following structure parameter can be accessed + * Bus write function pointer: BNO055_WR_FUNC_PTR + * Bus read function pointer: BNO055_RD_FUNC_PTR + * Delay function pointer: delay_msec + * I2C address: dev_addr + *--------------------------------------------------------------------------*/ +s8 I2C_routine(void) +{ + bno055.bus_write = BNO055_I2C_bus_write; + bno055.bus_read = BNO055_I2C_bus_read; + bno055.delay_msec = BNO055_delay_msek; + bno055.dev_addr = BNO055_I2C_ADDR1; + + return BNO055_INIT_VALUE; +} + +/************** I2C buffer length******/ + +#define I2C_BUFFER_LEN 8 +#define I2C0 5 + +/*-------------------------------------------------------------------* + * + * This is a sample code for read and write the data by using I2C + * Use either I2C based on your need + * The device address defined in the bno055.h file + * + *--------------------------------------------------------------------*/ + +/* \Brief: The API is used as I2C bus write + * \Return : Status of the I2C write + * \param dev_addr : The device address of the sensor + * \param reg_addr : Address of the first register, + * will data is going to be written + * \param reg_data : It is a value hold in the array, + * will be used for write the value into the register + * \param cnt : The no of byte of data to be write + */ +s8 BNO055_I2C_bus_write(u8 dev_addr, u8 reg_addr, u8 *reg_data, u8 cnt) +{ + s32 BNO055_iERROR = BNO055_INIT_VALUE; + u8 array[I2C_BUFFER_LEN]; + u8 stringpos = BNO055_INIT_VALUE; + + array[BNO055_INIT_VALUE] = reg_addr; + for (stringpos = BNO055_INIT_VALUE; stringpos < cnt; stringpos++) + { + array[stringpos + BNO055_I2C_BUS_WRITE_ARRAY_INDEX] = *(reg_data + stringpos); + } +} + +/* + * Please take the below APIs as your reference for + * write the data using I2C communication + * "BNO055_iERROR = I2C_WRITE_STRING(DEV_ADDR, ARRAY, CNT+1)" + * add your I2C write APIs here + * BNO055_iERROR is an return value of I2C read API + * Please select your valid return value + * In the driver BNO055_SUCCESS defined as 0 + * and FAILURE defined as -1 + * Note : + * This is a full duplex operation, + * The first read data is discarded, for that extra write operation + * have to be initiated. For that cnt+1 operation done + * in the I2C write string function + * For more information please refer data sheet SPI communication: + */ +return (s8)BNO055_iERROR; +} + +/* \Brief: The API is used as I2C bus read + * \Return : Status of the I2C read + * \param dev_addr : The device address of the sensor + * \param reg_addr : Address of the first register, + * will data is going to be read + * \param reg_data : This data read from the sensor, + * which is hold in an array + * \param cnt : The no of byte of data to be read + */ +s8 BNO055_I2C_bus_read(u8 dev_addr, u8 reg_addr, u8 *reg_data, u8 cnt) +{ + s32 BNO055_iERROR = BNO055_INIT_VALUE; + u8 array[I2C_BUFFER_LEN] = { BNO055_INIT_VALUE }; + u8 stringpos = BNO055_INIT_VALUE; + + array[BNO055_INIT_VALUE] = reg_addr; + + /* Please take the below API as your reference + * for read the data using I2C communication + * add your I2C read API here. + * "BNO055_iERROR = I2C_WRITE_READ_STRING(DEV_ADDR, + * ARRAY, ARRAY, 1, CNT)" + * BNO055_iERROR is an return value of SPI write API + * Please select your valid return value + * In the driver BNO055_SUCCESS defined as 0 + * and FAILURE defined as -1 + */ + for (stringpos = BNO055_INIT_VALUE; stringpos < cnt; stringpos++) + { + *(reg_data + stringpos) = array[stringpos]; + } + + return (s8)BNO055_iERROR; +} + +/* Brief : The delay routine + * \param : delay in ms + */ +void BNO055_delay_msek(u32 msek) +{ + /*Here you can write your own delay routine*/ +} + +#endif diff --git a/lib/hardware/sensors/gphoto/actions.c b/lib/hardware/sensors/gphoto/actions.c new file mode 100644 index 00000000..30f2c44a --- /dev/null +++ b/lib/hardware/sensors/gphoto/actions.c @@ -0,0 +1,2167 @@ +/* actions.c + * + * Copyright 2002 Lutz Mueller + * Copyright 2016 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _XOPEN_SOURCE /* strptime proto, but this hides other prototypes */ +#define _GNU_SOURCE /* get all the other prototypes */ +#define __EXTENSIONS__ /* for solaris to get back strdup and strcasecmp */ + +//#include "config.h" + +#include +#include +#ifdef HAVE_FCNTL_H +# include +#endif +#include + +#include +#ifdef HAVE_SYS_TIME_H +# include +#endif + +#include "actions.h" +#include "i18n.h" +//#include "main.h" +//#include "version.h" + + +#include +#include +#include +#include "globals.h" + +#ifdef HAVE_AA +# include "gphoto2-cmd-capture.h" +#endif + +#ifdef HAVE_LIBEXIF +# include +#endif + +#define CR(result) {int __r=(result); if (__r<0) return __r;} +#define CRU(result,file) {int __r=(result); if (__r<0) {gp_file_unref(file);return __r;}} +#define CL(result,list) {int __r=(result); if (__r<0) {gp_list_free(list); return __r;}} + +#ifdef __GNUC__ +#define __unused__ __attribute__((unused)) +#else +#define __unused__ +#endif + +static int print_widget (GPParams *p, const char*name, CameraWidget *widget); + +static long +timediff_now (struct timeval *target) { + struct timeval now; + + gettimeofday (&now, NULL); + return (target->tv_sec-now.tv_sec)*1000+ + (target->tv_usec-now.tv_usec)/1000; +} + + +int +delete_all_action (GPParams *p) +{ + return (gp_camera_folder_delete_all (p->camera, p->folder, p->context)); +} + +int +action_camera_upload_file (GPParams *p, const char *folder, const char *path) +{ + CameraFile *file; + int res; + char *fn; + + gp_log (GP_LOG_DEBUG, "main", "Uploading file..."); + + CR (gp_file_new_from_fd (&file, -1)); + res = gp_file_open (file, path); + if (res < GP_OK) { + gp_file_unref (file); + return res; + } + if (p->filename && strcmp (p->filename, "")) + fn = p->filename; + else + fn = basename (path); + + res = gp_camera_folder_put_file (p->camera, folder, fn, GP_FILE_TYPE_NORMAL, file, + p->context); + gp_file_unref (file); + return (res); +} + +int +action_camera_upload_metadata (GPParams *p, const char *folder, const char *path) +{ + CameraFile *file; + int res; + char *fn = NULL; + + gp_log (GP_LOG_DEBUG, "main", "Uploading metadata..."); + + CR (gp_file_new (&file)); + res = gp_file_open (file, path); + if (res < 0) { + gp_file_unref (file); + return (res); + } + + /* Check if the user specified a filename */ + if (p->filename && strcmp (p->filename, "")) { + fn = p->filename; + } else if (path == strstr(path, "meta_")) { + fn = path+5; + } + res = gp_camera_folder_put_file (p->camera, folder, fn, GP_FILE_TYPE_METADATA, file, + p->context); + gp_file_unref (file); + return (res); +} + +int +num_files_action (GPParams *p) +{ + CameraList *list; + int count, filecount; + + CR (gp_list_new (&list)); + CL (gp_camera_folder_list_files (p->camera, p->folder, + list, p->context), list); + CL (count = gp_list_count (list), list); + + if (p->flags & FLAGS_NEW) { + int i; + const char *name; + + filecount = 0; + for (i = 0; i < count; i++) { + CameraFileInfo info; + + CL (gp_list_get_name (list, i, &name), list); + CR (gp_camera_file_get_info (p->camera, p->folder, + name, &info, p->context)); + if (info.file.fields & GP_FILE_INFO_STATUS && + info.file.status != GP_FILE_STATUS_DOWNLOADED) + filecount++; + } + } + else + filecount = count; + + gp_list_free (list); + if (p->flags & FLAGS_QUIET) + printf ("%i\n", filecount); + else + printf (_("Number of files in folder '%s': %i\n"), + p->folder, filecount); + + return (GP_OK); +} + +int +list_folders_action (GPParams *p) +{ + CameraList *list; + int count; + const char *name; + int i; + + CR (gp_list_new (&list)); + + CL (gp_camera_folder_list_folders (p->camera, p->folder, list, + p->context), list); + CL (count = gp_list_count (list), list); + if (!(p->flags & FLAGS_QUIET)) + printf(ngettext( + "There is %d folder in folder '%s'.\n", + "There are %d folders in folder '%s'.\n", + count + ), count, p->folder); + + for (i = 0; i < count; i++) { + CL (gp_list_get_name (list, i, &name), list); + if (p->flags & FLAGS_QUIET) { + if (!strcmp(p->folder,"/")) + printf ("/%s\n", name); + else + printf ("%s/%s\n", p->folder, name); + } else + printf (" - %s\n", name); + } + gp_list_free (list); + return (GP_OK); +} + +int +list_files_action (GPParams *p) +{ + CameraList *list; + int count, filecount; + const char *name; + int i; + + CR (gp_list_new (&list)); + CL (gp_camera_folder_list_files (p->camera, p->folder, list, + p->context), list); + CL (count = gp_list_count (list), list); + if (p->flags & FLAGS_NEW) { + filecount = 0; + for (i = 0; i < count; i++) { + CameraFileInfo info; + + CL (gp_list_get_name (list, i, &name), list); + CR (gp_camera_file_get_info (p->camera, p->folder, + name, &info, p->context)); + if (info.file.fields & GP_FILE_INFO_STATUS && + info.file.status != GP_FILE_STATUS_DOWNLOADED) + filecount++; + } + } + else + filecount = count; + + if (!(p->flags & FLAGS_QUIET)) { /* do not print that in quiet mode */ + if (filecount == 0) { /* 0 is weird still, despite ngettext() */ + printf(_("There is no file in folder '%s'.\n"), p->folder); + } else { + printf(ngettext( + "There is %d file in folder '%s'.\n", + "There are %d files in folder '%s'.\n", + filecount + ), filecount, p->folder); + } + } + for (i = 0; i < count; i++) { + CL (gp_list_get_name (list, i, &name), list); + CL (print_file_action (p, p->folder, name), list); + } + gp_list_free (list); + return (GP_OK); +} + +int +print_info_action (GPParams *p, const char *folder, const char *filename) +{ + CameraFileInfo info; + + CR (gp_camera_file_get_info (p->camera, folder, filename, &info, + p->context)); + + printf (_("Information on file '%s' (folder '%s'):\n"), + filename, folder); + printf (_("File:\n")); + if (info.file.fields == GP_FILE_INFO_NONE) + printf (_(" None available.\n")); + else { + if (info.file.fields & GP_FILE_INFO_TYPE) + printf (_(" Mime type: '%s'\n"), info.file.type); + if (info.file.fields & GP_FILE_INFO_SIZE) + printf (_(" Size: %lu byte(s)\n"), (unsigned long int)info.file.size); + if (info.file.fields & GP_FILE_INFO_WIDTH) + printf (_(" Width: %i pixel(s)\n"), info.file.width); + if (info.file.fields & GP_FILE_INFO_HEIGHT) + printf (_(" Height: %i pixel(s)\n"), info.file.height); + if (info.file.fields & GP_FILE_INFO_STATUS) + printf (_(" Downloaded: %s\n"), + (info.file.status == GP_FILE_STATUS_DOWNLOADED) ? _("yes") : _("no")); + if (info.file.fields & GP_FILE_INFO_PERMISSIONS) { + printf (_(" Permissions: ")); + if ((info.file.permissions & GP_FILE_PERM_READ) && + (info.file.permissions & GP_FILE_PERM_DELETE)) + printf (_("read/delete")); + else if (info.file.permissions & GP_FILE_PERM_READ) + printf (_("read")); + else if (info.file.permissions & GP_FILE_PERM_DELETE) + printf (_("delete")); + else + printf (_("none")); + putchar ('\n'); + } + if (info.file.fields & GP_FILE_INFO_MTIME) + printf (_(" Time: %s"), + asctime (localtime (&info.file.mtime))); + } + printf (_("Thumbnail:\n")); + if (info.preview.fields == GP_FILE_INFO_NONE) + printf (_(" None available.\n")); + else { + if (info.preview.fields & GP_FILE_INFO_TYPE) + printf (_(" Mime type: '%s'\n"), info.preview.type); + if (info.preview.fields & GP_FILE_INFO_SIZE) + printf (_(" Size: %lu byte(s)\n"), (unsigned long int)info.preview.size); + if (info.preview.fields & GP_FILE_INFO_WIDTH) + printf (_(" Width: %i pixel(s)\n"), info.preview.width); + if (info.preview.fields & GP_FILE_INFO_HEIGHT) + printf (_(" Height: %i pixel(s)\n"), info.preview.height); + if (info.preview.fields & GP_FILE_INFO_STATUS) + printf (_(" Downloaded: %s\n"), + (info.preview.status == GP_FILE_STATUS_DOWNLOADED) ? _("yes") : _("no")); + } + printf (_("Audio data:\n")); + if (info.audio.fields == GP_FILE_INFO_NONE) + printf (_(" None available.\n")); + else { + if (info.audio.fields & GP_FILE_INFO_TYPE) + printf (_(" Mime type: '%s'\n"), info.audio.type); + if (info.audio.fields & GP_FILE_INFO_SIZE) + printf (_(" Size: %lu byte(s)\n"), (unsigned long int)info.audio.size); + if (info.audio.fields & GP_FILE_INFO_STATUS) + printf (_(" Downloaded: %s\n"), + (info.audio.status == GP_FILE_STATUS_DOWNLOADED) ? _("yes") : _("no")); + } + + return (GP_OK); +} + +int +print_file_action (GPParams *p, const char *folder, const char *filename) +{ + static int x = 0; + + if (p->flags & FLAGS_NEW) { + CameraFileInfo info; + + CR (gp_camera_file_get_info (p->camera, folder, + filename, &info, p->context)); + if (info.file.fields & GP_FILE_INFO_STATUS && + info.file.status == GP_FILE_STATUS_DOWNLOADED) { + x++; + return (GP_OK); + } + } + + if (p->flags & FLAGS_QUIET) + printf ("%s/%s\n", folder, filename); + else { + CameraFileInfo info; + if (gp_camera_file_get_info (p->camera, folder, filename, + &info, NULL) == GP_OK) { + printf("#%-5i %-27s", x+1, filename); + if (info.file.fields & GP_FILE_INFO_PERMISSIONS) { + printf("%s%s", + (info.file.permissions & GP_FILE_PERM_READ) ? "r" : "-", + (info.file.permissions & GP_FILE_PERM_DELETE) ? "d" : "-"); + } + if (info.file.fields & GP_FILE_INFO_SIZE) + printf(" %5ld KB", (unsigned long int)((info.file.size+1023) / 1024)); + if ((info.file.fields & GP_FILE_INFO_WIDTH) && + + (info.file.fields & GP_FILE_INFO_HEIGHT)) + printf(" %4dx%-4d", info.file.width, info.file.height); + if (info.file.fields & GP_FILE_INFO_TYPE) + printf(" %s", info.file.type); + putchar ('\n'); + } else + printf("#%-5i %s\n", x+1, filename); + } + x++; + return (GP_OK); +} + +int +save_file_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_NORMAL)); +} + +int +save_exif_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_EXIF)); +} + +int +save_meta_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_METADATA)); +} + +int +save_thumbnail_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_PREVIEW)); +} + +int +save_raw_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_RAW)); +} + +int +save_audio_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_AUDIO)); +} + +int +save_all_audio_action (GPParams *p, const char *folder, const char *filename) +{ + /* not every file has an associated audio file */ + if (camera_file_exists(p->camera, p->context, folder, filename, + GP_FILE_TYPE_AUDIO)) + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, + GP_FILE_TYPE_AUDIO)); + return GP_OK; +} + +int +delete_file_action (GPParams *p, const char *folder, const char *filename) +{ + if (p->flags & FLAGS_NEW) { + CameraFileInfo info; + + CR (gp_camera_file_get_info (p->camera, folder, filename, + &info, p->context)); + if (info.file.fields & GP_FILE_INFO_STATUS && + info.file.status == GP_FILE_STATUS_DOWNLOADED) + return (GP_OK); + } + return (gp_camera_file_delete (p->camera, folder, filename, + p->context)); +} + +#ifdef HAVE_LIBEXIF +static void +show_ifd (ExifContent *content) +{ + ExifEntry *e; + unsigned int i; + + for (i = 0; i < content->count; i++) { + e = content->entries[i]; + printf ("%-20.20s", exif_tag_get_name (e->tag)); + printf ("|"); +#ifdef HAVE_LIBEXIF_LOG + {char b[1024]; + printf ("%-59.59s", exif_entry_get_value (e, b, sizeof (b))); + } +#else + printf ("%-59.59s", exif_entry_get_value (e)); +#endif + printf ("\n"); + } +} + +static void +print_hline (void) +{ + int i; + + for (i = 0; i < 20; i++) + putchar ('-'); + printf ("+"); + for (i = 0; i < 59; i++) + putchar ('-'); + putchar ('\n'); +} +#endif + +int +print_exif_action (GPParams *p, const char *folder, const char *filename) +{ +#ifdef HAVE_LIBEXIF + CameraFile *file; + const char *data; + unsigned long size; + ExifData *ed; +#ifdef HAVE_LIBEXIF_IFD + unsigned int i; +#endif + + CR (gp_file_new (&file)); + CRU (gp_camera_file_get (p->camera, folder, filename, + GP_FILE_TYPE_EXIF, file, p->context), file); + CRU (gp_file_get_data_and_size (file, &data, &size), file); + ed = exif_data_new_from_data ((unsigned char *)data, size); + gp_file_unref (file); + if (!ed) { + gp_context_error (p->context, _("Could not parse EXIF data.")); + return (GP_ERROR); + } + + printf (_("EXIF tags:")); + putchar ('\n'); + print_hline (); + printf ("%-20.20s", _("Tag")); + printf ("|"); + printf ("%-59.59s", _("Value")); + putchar ('\n'); + print_hline (); +#ifdef HAVE_LIBEXIF_IFD + for (i = 0; i < EXIF_IFD_COUNT; i++) + if (ed->ifd[i]) + show_ifd (ed->ifd[i]); +#else + if (ed->ifd0) + show_ifd (ed->ifd0); + if (ed->ifd1) + show_ifd (ed->ifd1); + if (ed->ifd_exif) + show_ifd (ed->ifd_exif); + if (ed->ifd_gps) + show_ifd (ed->ifd_gps); + if (ed->ifd_interoperability) + show_ifd (ed->ifd_interoperability); +#endif + print_hline (); + if (ed->size) { + printf (_("EXIF data contains a thumbnail (%i bytes)."), + ed->size); + putchar ('\n'); + } + + exif_data_unref (ed); + + return (GP_OK); +#else + gp_context_error (p->context, _("gphoto2 has been compiled without " + "EXIF support.")); + return (GP_ERROR_NOT_SUPPORTED); +#endif +} + +int +list_cameras_action (GPParams *p) +{ + int r = GP_OK, n, i; + CameraAbilities a; + + r = gp_abilities_list_count (gp_params_abilities_list(p)); + if (r < 0) + return (r); + if (p->flags & FLAGS_QUIET) + printf ("%i\n", r); + else { + printf (_("Number of supported cameras: %i\n"), r); + printf (_("Supported cameras:\n")); + } + n = r; + for (i = 0; i < n; i++) { + r = gp_abilities_list_get_abilities (gp_params_abilities_list(p), + i, &a); + if (r < 0) + break; + if (p->flags & FLAGS_QUIET) + printf ("%s\n", a.model); + else + switch (a.status) { + case GP_DRIVER_STATUS_TESTING: + printf (_("\t\"%s\" (TESTING)\n"), a.model); + break; + case GP_DRIVER_STATUS_EXPERIMENTAL: + printf (_("\t\"%s\" (EXPERIMENTAL)\n"), + a.model); + break; + case GP_DRIVER_STATUS_PRODUCTION: + default: + printf (_("\t\"%s\"\n"), a.model); + break; + } + } + + return (r); +} + +void +_get_portinfo_list (GPParams *p) { + int count, result; + GPPortInfoList *list = NULL; + + if (p->portinfo_list) + return; + + if (gp_port_info_list_new (&list) < GP_OK) + return; + result = gp_port_info_list_load (list); + if (result < 0) { + gp_port_info_list_free (list); + return; + } + count = gp_port_info_list_count (list); + if (count < 0) { + gp_port_info_list_free (list); + return; + } + p->portinfo_list = list; + return; +} + +int +list_ports_action (GPParams *p) +{ + GPPortInfo info; + int x, count, result = GP_OK; + + _get_portinfo_list (p); + count = gp_port_info_list_count (p->portinfo_list); + + if (p->flags & FLAGS_QUIET) + printf("%i\n", count); + else { + printf(_("Devices found: %i\n"), count); + printf(_("Path Description\n" + "--------------------------------------------------------------\n")); + } + + /* Now list the ports */ + for (x = 0; x < count; x++) { + char *xname, *xpath; + result = gp_port_info_list_get_info (p->portinfo_list, x, &info); + if (result < 0) + break; + gp_port_info_get_name (info, &xname); + gp_port_info_get_path (info, &xpath); + printf ("%-32s %-32s\n", xpath, xname); + } + return (result); + +} + +int +auto_detect_action (GPParams *p) +{ + int x, count; + CameraList *list; + const char *name = NULL, *value = NULL; + + _get_portinfo_list (p); + count = gp_port_info_list_count (p->portinfo_list); + + CR (gp_list_new (&list)); + gp_abilities_list_detect (gp_params_abilities_list(p), p->portinfo_list, list, p->context); + + CL (count = gp_list_count (list), list); + + printf(_("%-30s %-16s\n"), _("Model"), _("Port")); + printf(_("----------------------------------------------------------\n")); + for (x = 0; x < count; x++) { + CL (gp_list_get_name (list, x, &name), list); + CL (gp_list_get_value (list, x, &value), list); + printf(_("%-30s %-16s\n"), name, value); + } + gp_list_free (list); + return GP_OK; +} + +int +action_camera_show_abilities (GPParams *p) +{ + CameraAbilities a; + int i; + int has_capture = 0; + + CR (gp_camera_get_abilities (p->camera, &a)); + printf (_("Abilities for camera : %s\n"), a.model); + printf (_("Serial port support : %s\n"), + (a.port & GP_PORT_SERIAL) ? _("yes"):_("no")); + printf (_("USB support : %s\n"), + (a.port & GP_PORT_USB) ? _("yes"):_("no")); + if (a.speed[0] != 0) { + printf (_("Transfer speeds supported :\n")); + for (i = 0; a.speed[i]; i++) + printf (_(" : %i\n"), + a.speed[i]); + } + printf (_("Capture choices :\n")); + if (a.operations & GP_OPERATION_CAPTURE_IMAGE) { + printf (_(" : Image\n")); + has_capture = 1; + } + if (a.operations & GP_OPERATION_CAPTURE_VIDEO) { + printf (_(" : Video\n")); + has_capture = 1; + } + if (a.operations & GP_OPERATION_CAPTURE_AUDIO) { + printf (_(" : Audio\n")); + has_capture = 1; + } + if (a.operations & GP_OPERATION_CAPTURE_PREVIEW) { + printf (_(" : Preview\n")); + has_capture = 1; + } + if (a.operations & GP_OPERATION_TRIGGER_CAPTURE) { + printf (_(" : Trigger Capture\n")); + has_capture = 1; + } + if (has_capture == 0) { + printf (_(" : Capture not supported by the driver\n")); + } + printf (_("Configuration support : %s\n"), + (a.operations & GP_OPERATION_CONFIG) ? _("yes"):_("no")); + printf (_("Delete selected files on camera : %s\n"), + (a.file_operations & GP_FILE_OPERATION_DELETE) ? + _("yes"):_("no")); + printf (_("Delete all files on camera : %s\n"), + (a.folder_operations & GP_FOLDER_OPERATION_DELETE_ALL) ? + _("yes"):_("no")); + printf (_("File preview (thumbnail) support : %s\n"), + (a.file_operations & GP_FILE_OPERATION_PREVIEW) ? + _("yes"):_("no")); + printf (_("File upload support : %s\n"), + (a.folder_operations & GP_FOLDER_OPERATION_PUT_FILE) ? + _("yes"):_("no")); + + return (GP_OK); +} + +int +action_camera_set_port (GPParams *params, const char *port) +{ + int p, r; + GPPortInfo info; + char *path; + char verified_port[1024]; + + verified_port[sizeof (verified_port) - 1] = '\0'; + if (!strchr (port, ':')) { + gp_log (GP_LOG_DEBUG, "main", _("Ports must look like " + "'serial:/dev/ttyS0' or 'usb:', but '%s' is " + "missing a colon so I am going to guess what you " + "mean."), port); + if (!strcmp (port, "usb")) { + strncpy (verified_port, "usb:", + sizeof (verified_port) - 1); + } else if (strncmp (port, "/dev/", 5) == 0) { + strncpy (verified_port, "serial:", + sizeof (verified_port) - 1); + strncat (verified_port, port, + sizeof (verified_port) + - strlen (verified_port) - 1); + } else if (strncmp (port, "/proc/", 6) == 0) { + strncpy (verified_port, "usb:", + sizeof (verified_port) - 1); + strncat (verified_port, port, + sizeof (verified_port) + - strlen (verified_port) - 1); + } + gp_log (GP_LOG_DEBUG, "main", "Guessed port name. Using port " + "'%s' from now on.", verified_port); + } else + strncpy (verified_port, port, sizeof (verified_port) - 1); + + /* Create the list of ports and load it. */ + _get_portinfo_list (params); + + /* Search our port in the list. */ + /* NOTE: This call can modify "il" for regexp matches! */ + p = gp_port_info_list_lookup_path (params->portinfo_list, verified_port); + + switch (p) { + case GP_ERROR_UNKNOWN_PORT: + fprintf (stderr, _("The port you specified " + "('%s') can not be found. Please " + "specify one of the ports found by " + "'gphoto2 --list-ports' and make " + "sure the spelling is correct " + "(i.e. with prefix 'serial:' or 'usb:')."), + verified_port); + break; + default: + break; + } + + /* Get info about our port. */ + r = gp_port_info_list_get_info (params->portinfo_list, p, &info); + if (r < 0) + return (r); + + /* Set the port of our camera. */ + r = gp_camera_set_port_info (params->camera, info); + if (r < 0) + return (r); + gp_port_info_get_path (info, &path); + gp_setting_set ("gphoto2", "port", path); + return (GP_OK); +} + +int +action_camera_about (GPParams *params) +{ + CameraText text; + + CR (gp_camera_get_about (params->camera, &text, params->context)); + + printf (_("About the camera driver:")); + printf ("\n%s\n", _(text.text)); + + return (GP_OK); +} + +int +action_camera_summary (GPParams *params) +{ + CameraText text; + + CR (gp_camera_get_summary (params->camera, &text, params->context)); + + printf (_("Camera summary:")); + printf ("\n%s\n", _(text.text)); + + return (GP_OK); +} + +int +action_camera_manual (GPParams *params) +{ + CameraText text; + + CR (gp_camera_get_manual (params->camera, &text, params->context)); + + printf (_("Camera manual:")); + printf ("\n%s\n", _(text.text)); + + return (GP_OK); +} + +int +action_camera_set_speed (GPParams *p, unsigned int speed) +{ + GPPortInfo info; + GPPortType type; + + /* Make sure we've got a serial port. */ + CR (gp_camera_get_port_info (p->camera, &info)); + gp_port_info_get_type (info, &type); + if (type != GP_PORT_SERIAL) { + if ((p->flags & FLAGS_QUIET) == 0) { + fprintf (stderr, _("You can only specify speeds for " + "serial ports.")); + fputc ('\n', stderr); + } + return (GP_ERROR_BAD_PARAMETERS); + } + /* Set the speed. */ + return gp_camera_set_port_speed (p->camera, speed); +} + +int +action_camera_set_model (GPParams *p, const char *model) +{ + CameraAbilities a; + int m; + + CR (m = gp_abilities_list_lookup_model (gp_params_abilities_list(p), model)); + CR (gp_abilities_list_get_abilities (gp_params_abilities_list(p), m, &a)); + CR (gp_camera_set_abilities (p->camera, a)); + gp_setting_set ("gphoto2", "model", a.model); + + return (GP_OK); +} + +int +set_folder_action (GPParams *p, const char *folder) +{ + if (p->folder) + free (p->folder); + p->folder = strdup (folder); + return (p->folder ? GP_OK: GP_ERROR_NO_MEMORY); +} + +int +set_filename_action (GPParams *p, const char *filename) +{ + if (p->filename) + free (p->filename); + p->filename = strdup (filename); + return (p->filename ? GP_OK: GP_ERROR_NO_MEMORY); +} + +#define CHECK_NULL(x) { if (x == NULL) { return(-1); /* FIXME: what code? */ } } + +int +print_version_action (GPParams __unused__ *p) +{ + int n; + const char *port_message = +#ifdef OS2 + _("OS/2 port by Bart van Leeuwen\n"); +#else + ""; +#endif + printf (_("gphoto2 %s\n" + "\n" + "Copyright (c) 2000-%d Lutz Mueller and others\n" + "%s" + "\n" + "gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" + "redistribute copies of gphoto2 under the terms of the GNU General Public\n" + "License. For more information about these matters, see the files named COPYING.\n" + "\n" + "This version of gphoto2 is using the following software versions and options:\n"), + VERSION, + 2018, /* year of release! */ + port_message + ); + + for (n = 0; module_versions[n].name != NULL; n++) { + int i; + const char **v = NULL; + char *name = module_versions[n].name; + GPVersionFunc func = module_versions[n].version_func; + CHECK_NULL (name); + CHECK_NULL (func); + v = func(GP_VERSION_SHORT); + CHECK_NULL (v); + CHECK_NULL (v[0]); + printf ("%-15s %-14s ", name, v[0]); + for (i = 1; v[i] != NULL; i++) { + if (v[i+1] != NULL) + printf ("%s, ", v[i]); + else + printf ("%s", v[i]); + } + putchar ('\n'); + } + + return (GP_OK); +} + +static int +_action_camera_capture_preview (GPParams *p, int viewasciiart) +{ + CameraFile *file; + int r, fd; + char tmpname[20], *tmpfilename = NULL; + + if (p->flags & FLAGS_STDOUT) { + fd = dup(fileno(stdout)); + CR (gp_file_new_from_fd (&file, fd)); + } else { + strcpy (tmpname, "tmpfileXXXXXX"); + fd = mkstemp(tmpname); + if (fd == -1) { + CR (gp_file_new (&file)); + tmpfilename = NULL; + } else { + r = gp_file_new_from_fd (&file, fd); + if (r < GP_OK) { + close (fd); + unlink (tmpname); + return r; + } + tmpfilename = tmpname; + } + } + +#ifdef HAVE_AA + if (viewasciiart) + r = gp_cmd_capture_preview (p->camera, file, p->context); + else +#endif + r = gp_camera_capture_preview (p->camera, file, p->context); + fflush(stdout); + if (r < 0) { + if(!(p->flags & FLAGS_STDOUT)) + gp_file_unref (file); + unlink (tmpname); + return r; + } + + /* name it file_%filename if --filename is set, otherwise capture_preview */ + if(!(p->flags & FLAGS_STDOUT)) { + r = save_camera_file_to_file (NULL, "capture_preview", p->filename?GP_FILE_TYPE_PREVIEW:GP_FILE_TYPE_NORMAL, file, tmpfilename); + gp_file_unref (file); + if (r < 0) { + unlink (tmpname); + return (r); + } + } + return GP_OK; +} + +int +action_camera_capture_preview (GPParams *p) { + return _action_camera_capture_preview (p, 0); +} + +int +action_camera_show_preview (GPParams *p) { + return _action_camera_capture_preview (p, 1); +} + +enum moviemode { MOVIE_ENDLESS, MOVIE_FRAMES, MOVIE_SECONDS }; + +int +action_camera_capture_movie (GPParams *p, const char *arg) +{ + CameraFile *file; + int r; + int fd; + time_t st; + enum moviemode mm; + int frames,captured_frames=0; + char *xname; + struct timeval starttime; + + if (p->flags & FLAGS_STDOUT) { + fd = dup(fileno(stdout)); + xname = "stdout"; + } else { + fd = open("movie.mjpg",O_WRONLY|O_CREAT,0660); + if (fd == -1) { + cli_error_print(_("Could not open 'movie.mjpg'.")); + return GP_ERROR; + } + xname = "movie.mjpg"; + } + if (!arg) { + mm = MOVIE_ENDLESS; + fprintf(stderr,_("Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n"), xname); + } else { + if (strchr(arg,'s')) { + sscanf (arg, "%ds", &frames); + fprintf(stderr,_("Capturing preview frames as movie to '%s' for %d seconds.\n"), xname, frames); + mm = MOVIE_SECONDS; + time (&st); + } else { + sscanf (arg, "%d", &frames); + fprintf(stderr,_("Capturing %d preview frames as movie to '%s'.\n"), frames, xname); + mm = MOVIE_FRAMES; + } + } + CR (gp_file_new_from_fd (&file, fd)); + gettimeofday (&starttime, NULL); + while (1) { + const char *mime; + r = gp_camera_capture_preview (p->camera, file, p->context); + if (r < 0) { + cli_error_print(_("Movie capture error... Exiting.")); + break; + } + gp_file_get_mime_type (file, &mime); + if (strcmp (mime, GP_MIME_JPEG)) { + cli_error_print(_("Movie capture error... Unhandled MIME type '%s'."), mime); + break; + } + + captured_frames++; + + if (glob_cancel) { + fprintf(stderr, _("Ctrl-C pressed ... Exiting.\n")); + break; + } + if (mm == MOVIE_FRAMES) { + if (!frames--) + break; + } + if (mm == MOVIE_SECONDS) { + if ((-timediff_now (&starttime)) >= frames*1000) + break; + } + } + gp_file_unref (file); + + fprintf(stderr,_("Movie capture finished (%d frames)\n"), captured_frames); + return GP_OK; +} + + +/* + * arg can be: + * events as number e.g.: 1000 + * frames as number with suffix f e.g.: 100f + * seconds as number with suffix s e.g.: 50s + * milliseconds as number with suffix mse.g.: 200ms + */ +int +action_camera_wait_event (GPParams *p, enum download_type downloadtype, const char*arg) +{ + int ret; + struct waitparams wp; + CameraEventType event; + void *data = NULL; + CameraFilePath *fn; + CameraFilePath last; + struct timeval xtime; + int events, frames; + + gettimeofday (&xtime, NULL); + memset(&last,0,sizeof(last)); + + wp.type = WAIT_EVENTS; + wp.u.events = 1000000; + if (!arg || !strlen(arg)) { + printf ( _("Waiting for events from camera. Press Ctrl-C to abort.\n")); + } else { + int x; + if ((arg[strlen(arg)-1]=='f') && sscanf(arg,"%df", &x)) { /* exact nr of frames */ + wp.type = WAIT_FRAMES; + wp.u.frames = x; + printf ( _("Waiting for %d frames from the camera. Press Ctrl-C to abort.\n"), x); + } else + if ((strlen(arg)>2) && (!strcmp(&arg[strlen(arg)-2],"ms")) && sscanf(arg,"%dms",&x)) { /* exact milliseconds */ + wp.type = WAIT_TIME; + wp.u.milliseconds = x; + printf ( _("Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n"), x); + } else + if ((wp.type != WAIT_TIME) && (arg[strlen(arg)-1]=='s') && sscanf(arg,"%ds", &x)) { /* exact seconds */ + wp.type = WAIT_TIME; + wp.u.milliseconds = x*1000; + printf ( _("Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n"), x); + } else if ((wp.type == WAIT_EVENTS) && sscanf(arg,"%d", &x)) { + wp.u.events = atoi(arg); + printf ( _("Waiting for %d events from camera. Press Ctrl-C to abort.\n"), wp.u.events); + } else { + wp.type = WAIT_STRING; + wp.u.str = arg; + printf ( _("Waiting for '%s' event from camera. Press Ctrl-C to abort.\n"), wp.u.str); + } + } + + events = frames = 0; + while (1) { + int leftoverms = 1000; + struct timeval ytime; + int x, exitloop; + + if (glob_cancel) break; + + exitloop = 0; + switch (wp.type) { + case WAIT_STRING: + break; + case WAIT_EVENTS: + if (events >= wp.u.events) exitloop = 1; + break; + case WAIT_FRAMES: + if (frames >= wp.u.frames) exitloop = 1; + break; + case WAIT_TIME: + gettimeofday (&ytime, NULL); + + x = ((ytime.tv_usec-xtime.tv_usec)+(ytime.tv_sec-xtime.tv_sec)*1000000)/1000; + if (x >= wp.u.milliseconds) { exitloop = 1; break; } + /* if left over time is < 1s, set it... otherwise wait at most 1s */ + if ((wp.u.milliseconds-x) < leftoverms) + leftoverms = wp.u.milliseconds-x; + } + if (exitloop) break; + + data = NULL; + ret = gp_camera_wait_for_event (p->camera, leftoverms, &event, &data, p->context); + if (ret != GP_OK) + return ret; + events++; + switch (event) { + case GP_EVENT_UNKNOWN: + if (data) { + printf("UNKNOWN %s\n", (char*)data); + if (wp.type == WAIT_STRING) { + if (strstr(data,wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + } + } else { + printf("UNKNOWN\n"); + } + break; + case GP_EVENT_TIMEOUT: + /*printf("TIMEOUT\n");*/ + break; + case GP_EVENT_CAPTURE_COMPLETE: + printf("CAPTURECOMPLETE\n"); + if ((wp.type == WAIT_STRING) && strstr("CAPTURECOMPLETE",wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + break; + case GP_EVENT_FILE_ADDED: + frames++; + + fn = (CameraFilePath*)data; + + if ( (downloadtype == DT_NO_DOWNLOAD) || + ( (p->flags & FLAGS_KEEP_RAW) && + ( !strstr(fn->name,".jpg") && !strstr(fn->name,".JPG")) + ) + ) { + printf("FILEADDED %s %s\n",fn->name, fn->folder); + if ((wp.type == WAIT_STRING) && strstr("FILEADDED",wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + continue; + } + /* Otherwise download the image and continue... */ + if(strcmp(fn->folder, last.folder)) { + strcpy(last.folder, fn->folder); + ret = set_folder_action(p, fn->folder); + if (ret != GP_OK) { + cli_error_print(_("Could not set folder.")); + return (ret); + } + } + ret = get_file_common (fn->name, GP_FILE_TYPE_NORMAL); + if (ret != GP_OK) { + cli_error_print (_("Could not get image.")); + if(ret == GP_ERROR_FILE_NOT_FOUND) { + /* Buggy libcanon.so? + * Can happen if this was the first capture after a + * CF card format, or during a directory roll-over, + * ie: CANON100 -> CANON101 + */ + cli_error_print ( _("Buggy libcanon.so?")); + } + return (ret); + } + + if (!(p->flags & FLAGS_KEEP)) { + do { + ret = delete_file_action (p, p->folder, fn->name); + } while (ret == GP_ERROR_CAMERA_BUSY); + if (ret != GP_OK) { + cli_error_print ( _("Could not delete image.")); + /* dont continue in event loop */ + } + } + if ((wp.type == WAIT_STRING) && strstr("FILEADDED",wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + break; + case GP_EVENT_FOLDER_ADDED: + fn = (CameraFilePath*)data; + printf("FOLDERADDED %s %s\n",fn->name, fn->folder); + if ((wp.type == WAIT_STRING) && strstr("FOLDERADDED",wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + break; + case GP_EVENT_FILE_CHANGED: + fn = (CameraFilePath*)data; + printf("FILECHANGED %s %s\n",fn->name, fn->folder); + if ((wp.type == WAIT_STRING) && strstr("FILECHANGED",wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + break; + } + free (data); + } + return GP_OK; +} + +int +print_storage_info (GPParams *p) +{ + int ret, i, nrofsinfos; + CameraStorageInformation *sinfos; + + ret = gp_camera_get_storageinfo (p->camera, &sinfos, &nrofsinfos, p->context); + if (ret != GP_OK) { + if (ret == GP_ERROR_NOT_SUPPORTED) + printf (_("Getting storage information not supported for this camera.\n")); + return ret; + } + for (i=0;i_abilities_list directly, because it has to and does so + * in a safe way. */ + n = gp_abilities_list_count (gp_params_abilities_list(p)); + for (i = 0; i < n; i++) { + r = gp_abilities_list_get_abilities (gp_params_abilities_list(p), i, + &a); + if (r < 0) + continue; + if ((a.usb_vendor == usb_vendor) && + (a.usb_product == usb_product)) { + gp_log (GP_LOG_DEBUG, "main", + _("Overriding USB vendor/product id " + "0x%x/0x%x with 0x%x/0x%x"), + a.usb_vendor, a.usb_product, + usb_vendor_modified, usb_product_modified); + a.usb_vendor = usb_vendor_modified; + a.usb_product = usb_product_modified; + } + gp_abilities_list_append (al, a); + } + + gp_abilities_list_free (p->_abilities_list); + p->_abilities_list = al; + + return (GP_OK); +} + +/* time zero for debug log time stamps */ +static struct timeval glob_tv_zero = { 0, 0 }; + +static void +debug_func (GPLogLevel level, const char *domain, const char *str, void *data) +{ + struct timeval tv; + long sec, usec; + FILE *logfile = (data != NULL)?(FILE *)data:stderr; + + gettimeofday (&tv,NULL); + sec = tv.tv_sec - glob_tv_zero.tv_sec; + usec = tv.tv_usec - glob_tv_zero.tv_usec; + if (usec < 0) {sec--; usec += 1000000L;} + fprintf (logfile, "%li.%06li %-28s(%i): %s\n", sec, usec, domain, level, str); +} + +int +debug_action (GPParams *p, const char *debug_loglevel, const char *debug_logfile_name) +{ + int n; + FILE *logfile = NULL; + GPLogLevel loglevel = GP_LOG_ALL; + + /* make sure we're only executed once */ + static int debug_flag = 0; + if (debug_flag != 0) + return(GP_OK); + debug_flag = 1; + + if (debug_loglevel && !strcmp(debug_loglevel, "error")) + loglevel = GP_LOG_ERROR; + else if (debug_loglevel && !strcmp(debug_loglevel, "debug")) + loglevel = GP_LOG_DEBUG; + else if (debug_loglevel && !strcmp(debug_loglevel, "data")) + loglevel = GP_LOG_DATA; + else if (debug_loglevel && !strcmp(debug_loglevel, "all")) + loglevel = GP_LOG_ALL; + + if (debug_logfile_name != NULL) { + /* FIXME: Handle fopen() error besides using stderr? */ + logfile = fopen(debug_logfile_name, "a"); + } + if (logfile == NULL) { + logfile = stderr; + } + setbuf(logfile, NULL); + setbuf(stdout, NULL); + + gettimeofday (&glob_tv_zero, NULL); + + CR (p->debug_func_id = gp_log_add_func (loglevel, debug_func, (void *) logfile)); + gp_log (GP_LOG_DEBUG, "main", _("ALWAYS INCLUDE THE FOLLOWING LINES " + "WHEN SENDING DEBUG MESSAGES TO THE " + "MAILING LIST:")); + + for (n = 0; module_versions[n].name != NULL; n++) { + int i; + const char **v = NULL; + char *name = module_versions[n].name; + GPVersionFunc func = module_versions[n].version_func; + CHECK_NULL (name); + CHECK_NULL (func); + v = func(GP_VERSION_VERBOSE); + CHECK_NULL (v); + CHECK_NULL (v[0]); + gp_log (GP_LOG_DEBUG, "main", "%s %s", name, v[0]); + gp_log (GP_LOG_DEBUG, "main", _("%s has been compiled with the following options:"), name); + for (i = 1; v[i] != NULL; i++) { + gp_log (GP_LOG_DEBUG, "main", " + %s", v[i]); + } + } + + if (1) { + /* This is internal debug stuff for developers - no + * need for translation IMHO */ + const char *iolibs = getenv("IOLIBS"); + const char *camlibs = getenv("CAMLIBS"); + if (camlibs) { + gp_log (GP_LOG_DEBUG, "main", "CAMLIBS = '%s'", camlibs); + } else { + gp_log (GP_LOG_DEBUG, "main", + "CAMLIBS env var not set, using compile-time default instead"); + } + if (iolibs) { + gp_log (GP_LOG_DEBUG, "main", "IOLIBS = '%s'", iolibs); + } else { + gp_log (GP_LOG_DEBUG, "main", + "IOLIBS env var not set, using compile-time default instead"); + } + } + + return (GP_OK); +} + +static void +display_widgets (GPParams *p, CameraWidget *widget, char *prefix, int dumpval) { + int ret, n, i; + char *newprefix; + const char *label, *name, *uselabel; + CameraWidgetType type; + + gp_widget_get_label (widget, &label); + /* fprintf(stderr,"label is %s\n", label); */ + ret = gp_widget_get_name (widget, &name); + /* fprintf(stderr,"name is %s\n", name); */ + gp_widget_get_type (widget, &type); + + if (strlen(name)) + uselabel = name; + else + uselabel = label; + + n = gp_widget_count_children (widget); + + newprefix = malloc(strlen(prefix)+1+strlen(uselabel)+1); + if (!newprefix) + abort(); + sprintf(newprefix,"%s/%s",prefix,uselabel); + + if ((type != GP_WIDGET_WINDOW) && (type != GP_WIDGET_SECTION)) { + printf("%s\n",newprefix); + if (dumpval) print_widget (p, newprefix, widget); + } + for (i=0; icamera, &rootconfig, p->context); + if (ret != GP_OK) return ret; + display_widgets (p, rootconfig, "", 1); + gp_widget_free (rootconfig); + return (GP_OK); +} +int +list_config_action (GPParams *p) { + CameraWidget *rootconfig; + int ret; + + ret = gp_camera_get_config (p->camera, &rootconfig, p->context); + if (ret != GP_OK) return ret; + display_widgets (p, rootconfig, "", 0); + gp_widget_free (rootconfig); + return (GP_OK); +} + +static int +_find_widget_by_name (GPParams *p, const char *name, CameraWidget **child, CameraWidget **rootconfig) { + int ret; + + *rootconfig = NULL; + ret = gp_camera_get_single_config (p->camera, name, child, p->context); + if (ret == GP_OK) { + *rootconfig = *child; + return GP_OK; + } + + ret = gp_camera_get_config (p->camera, rootconfig, p->context); + if (ret != GP_OK) return ret; + ret = gp_widget_get_child_by_name (*rootconfig, name, child); + if (ret != GP_OK) + ret = gp_widget_get_child_by_label (*rootconfig, name, child); + if (ret != GP_OK) { + char *part, *s, *newname; + + newname = strdup (name); + if (!newname) + return GP_ERROR_NO_MEMORY; + + *child = *rootconfig; + part = newname; + while (part[0] == '/') + part++; + while (1) { + CameraWidget *tmp; + + s = strchr (part,'/'); + if (s) + *s='\0'; + ret = gp_widget_get_child_by_name (*child, part, &tmp); + if (ret != GP_OK) + ret = gp_widget_get_child_by_label (*child, part, &tmp); + if (ret != GP_OK) + break; + *child = tmp; + if (!s) { + /* end of path */ + free (newname); + return GP_OK; + } + part = s+1; + while (part[0] == '/') + part++; + } + gp_context_error (p->context, _("%s not found in configuration tree."), newname); + free (newname); + gp_widget_free (*rootconfig); + return GP_ERROR; + } + return GP_OK; +} + +/* From the strftime(3) man page: + * BUGS + * Some buggy versions of gcc complain about the use of %c: warning: + * %c yields only last 2 digits of year in some locales. + * Of course programmers are encouraged to use %c, it gives the + * preferred date and time representation. One meets all kinds of + * strange obfuscations to circumvent this gcc problem. A relatively + * clean one is to add an intermediate function + */ + +static size_t +my_strftime(char *s, size_t max, const char *fmt, const struct tm *tm) +{ + return strftime(s, max, fmt, tm); +} + +static int +print_widget (GPParams *p, const char *name, CameraWidget *widget) { + const char *label; + CameraWidgetType type; + int ret, readonly; + + ret = gp_widget_get_type (widget, &type); + if (ret != GP_OK) + return ret; + ret = gp_widget_get_label (widget, &label); + if (ret != GP_OK) + return ret; + + ret = gp_widget_get_readonly (widget, &readonly); + if (ret != GP_OK) + return ret; + + printf ("Label: %s\n", label); /* "Label:" is not i18ned, the "label" variable is */ + printf ("Readonly: %d\n", readonly); + switch (type) { + case GP_WIDGET_TEXT: { /* char * */ + char *txt; + + ret = gp_widget_get_value (widget, &txt); + if (ret == GP_OK) { + printf ("Type: TEXT\n"); /* parsed by scripts, no i18n */ + printf ("Current: %s\n",txt); + } else { + gp_context_error (p->context, _("Failed to retrieve value of text widget %s."), name); + } + break; + } + case GP_WIDGET_RANGE: { /* float */ + float f, t,b,s; + + ret = gp_widget_get_range (widget, &b, &t, &s); + if (ret == GP_OK) + ret = gp_widget_get_value (widget, &f); + if (ret == GP_OK) { + printf ("Type: RANGE\n"); /* parsed by scripts, no i18n */ + printf ("Current: %g\n", f); /* parsed by scripts, no i18n */ + printf ("Bottom: %g\n", b); /* parsed by scripts, no i18n */ + printf ("Top: %g\n", t); /* parsed by scripts, no i18n */ + printf ("Step: %g\n", s); /* parsed by scripts, no i18n */ + } else { + gp_context_error (p->context, _("Failed to retrieve values of range widget %s."), name); + } + break; + } + case GP_WIDGET_TOGGLE: { /* int */ + int t; + + ret = gp_widget_get_value (widget, &t); + if (ret == GP_OK) { + printf ("Type: TOGGLE\n"); + printf ("Current: %d\n",t); + } else { + gp_context_error (p->context, _("Failed to retrieve values of toggle widget %s."), name); + } + break; + } + case GP_WIDGET_DATE: { /* int */ + int t; + time_t xtime; + struct tm *xtm; + char timebuf[200]; + + ret = gp_widget_get_value (widget, &t); + if (ret != GP_OK) { + gp_context_error (p->context, _("Failed to retrieve values of date/time widget %s."), name); + break; + } + xtime = t; + xtm = localtime (&xtime); + ret = my_strftime (timebuf, sizeof(timebuf), "%c", xtm); + printf ("Type: DATE\n"); + printf ("Current: %d\n", t); + printf ("Printable: %s\n", timebuf); + printf ("Help: %s\n", _("Use 'now' as the current time when setting.\n")); + break; + } + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + char *current; + + ret = gp_widget_get_value (widget, ¤t); + if (ret == GP_OK) { + cnt = gp_widget_count_choices (widget); + if (type == GP_WIDGET_MENU) + printf ("Type: MENU\n"); + else + printf ("Type: RADIO\n"); + printf ("Current: %s\n",current); + for ( i=0; icontext, _("Failed to retrieve values of radio widget %s."), name); + } + break; + } + + /* ignore: */ + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + case GP_WIDGET_BUTTON: + break; + } + + printf ("END\n"); + return GP_OK; +} + + +int +get_config_action (GPParams *p, const char *name) { + CameraWidget *rootconfig,*child; + int ret; + + ret = _find_widget_by_name (p, name, &child, &rootconfig); + if (ret != GP_OK) + return ret; + ret = print_widget (p, name, child); + gp_widget_free (rootconfig); + return ret; +} + +int +set_config_action (GPParams *p, const char *name, const char *value) { + CameraWidget *rootconfig,*child; + int ret, ro; + CameraWidgetType type; + + ret = _find_widget_by_name (p, name, &child, &rootconfig); + if (ret != GP_OK) + return ret; + + ret = gp_widget_get_readonly (child, &ro); + if (ret != GP_OK) { + gp_widget_free (rootconfig); + return ret; + } + if (ro == 1) { + gp_context_error (p->context, _("Property %s is read only."), name); + gp_widget_free (rootconfig); + return GP_ERROR; + } + ret = gp_widget_get_type (child, &type); + if (ret != GP_OK) { + gp_widget_free (rootconfig); + return ret; + } + + switch (type) { + case GP_WIDGET_TEXT: { /* char * */ + ret = gp_widget_set_value (child, value); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set the value of text widget %s to %s."), name, value); + break; + } + case GP_WIDGET_RANGE: { /* float */ + float f,t,b,s; + + ret = gp_widget_get_range (child, &b, &t, &s); + if (ret != GP_OK) + break; + if (!sscanf (value, "%f", &f)) { + gp_context_error (p->context, _("The passed value %s is not a floating point value."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if ((f < b) || (f > t)) { + gp_context_error (p->context, _("The passed value %f is not within the expected range %f - %f."), f, b, t); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + ret = gp_widget_set_value (child, &f); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set the value of range widget %s to %f."), name, f); + break; + } + case GP_WIDGET_TOGGLE: { /* int */ + int t; + + t = 2; + if ( !strcasecmp (value, "off") || !strcasecmp (value, "no") || + !strcasecmp (value, "false") || !strcmp (value, "0") || + !strcasecmp (value, _("off")) || !strcasecmp (value, _("no")) || + !strcasecmp (value, _("false")) + ) + t = 0; + if ( !strcasecmp (value, "on") || !strcasecmp (value, "yes") || + !strcasecmp (value, "true") || !strcmp (value, "1") || + !strcasecmp (value, _("on")) || !strcasecmp (value, _("yes")) || + !strcasecmp (value, _("true")) + ) + t = 1; + /*fprintf (stderr," value %s, t %d\n", value, t);*/ + if (t == 2) { + gp_context_error (p->context, _("The passed value %s is not a valid toggle value."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + ret = gp_widget_set_value (child, &t); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set values %s of toggle widget %s."), value, name); + break; + } + case GP_WIDGET_DATE: { /* int */ + time_t t = -1; + struct tm xtm; + + memset(&xtm,0,sizeof(xtm)); + + /* We need to set UNIX time in seconds since Epoch */ + /* We get ... local time */ + + if (!strcasecmp (value, "now") || !strcasecmp (value, _("now"))) + t = time(NULL); +#ifdef HAVE_STRPTIME + else if (strptime (value, "%c", &xtm) || strptime (value, "%Ec", &xtm)) { + xtm.tm_isdst = -1; + t = mktime (&xtm); + } +#endif + if (t == -1) { + unsigned long lt; + + if (!sscanf (value, "%ld", <)) { + gp_context_error (p->context, _("The passed value %s is neither a valid time nor an integer."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + t = lt; + } + ret = gp_widget_set_value (child, &t); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new time of date/time widget %s to %s."), name, value); + break; + } + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + char *endptr; + + cnt = gp_widget_count_choices (child); + if (cnt < GP_OK) { + ret = cnt; + break; + } + ret = GP_ERROR_BAD_PARAMETERS; + for ( i=0; i= 0) && (i < cnt)) { + const char *choice; + + ret = gp_widget_get_choice (child, i, &choice); + if (ret == GP_OK) + ret = gp_widget_set_value (child, choice); + break; + } + } + /* Lets just try setting the value directly, in case we have flexible setters, + * like PTP shutterspeed. */ + ret = gp_widget_set_value (child, value); + if (ret == GP_OK) + break; + gp_context_error (p->context, _("Choice %s not found within list of choices."), value); + break; + } + + /* ignore: */ + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + case GP_WIDGET_BUTTON: + gp_context_error (p->context, _("The %s widget is not configurable."), name); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if (ret == GP_OK) { + if (child == rootconfig) + ret = gp_camera_set_single_config (p->camera, name, child, p->context); + else + ret = gp_camera_set_config (p->camera, rootconfig, p->context); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new configuration value %s for configuration entry %s."), value, name); + } + gp_widget_free (rootconfig); + return (ret); +} + +int +set_config_index_action (GPParams *p, const char *name, const char *value) { + CameraWidget *rootconfig,*child; + int ret; + const char *label; + CameraWidgetType type; + + ret = _find_widget_by_name (p, name, &child, &rootconfig); + if (ret != GP_OK) + return ret; + + ret = gp_widget_get_type (child, &type); + if (ret != GP_OK) { + gp_widget_free (rootconfig); + return ret; + } + ret = gp_widget_get_label (child, &label); + if (ret != GP_OK) { + gp_widget_free (rootconfig); + return ret; + } + + switch (type) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + + cnt = gp_widget_count_choices (child); + if (cnt < GP_OK) { + ret = cnt; + break; + } + ret = GP_ERROR_BAD_PARAMETERS; + if (sscanf (value, "%d", &i)) { + if ((i>= 0) && (i < cnt)) { + const char *choice; + + ret = gp_widget_get_choice (child, i, &choice); + if (ret == GP_OK) + ret = gp_widget_set_value (child, choice); + break; + } + } + gp_context_error (p->context, _("Choice %s not found within list of choices."), value); + break; + } + + /* ignore: */ + case GP_WIDGET_TOGGLE: + case GP_WIDGET_TEXT: + case GP_WIDGET_RANGE: + case GP_WIDGET_DATE: + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + case GP_WIDGET_BUTTON: + gp_context_error (p->context, _("The %s widget has no indexed list of choices. Use --set-config-value instead."), name); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if (ret == GP_OK) { + if (child == rootconfig) + ret = gp_camera_set_single_config (p->camera, name, child, p->context); + else + ret = gp_camera_set_config (p->camera, rootconfig, p->context); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new configuration value %s for configuration entry %s."), value, name); + } + gp_widget_free (rootconfig); + return (ret); +} + + +int +set_config_value_action (GPParams *p, const char *name, const char *value) { + CameraWidget *rootconfig,*child; + int ret; + CameraWidgetType type; + + ret = _find_widget_by_name (p, name, &child, &rootconfig); + if (ret != GP_OK) + return ret; + + ret = gp_widget_get_type (child, &type); + if (ret != GP_OK) { + gp_widget_free (rootconfig); + return ret; + } + + switch (type) { + case GP_WIDGET_TEXT: { /* char * */ + ret = gp_widget_set_value (child, value); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set the value of text widget %s to %s."), name, value); + break; + } + case GP_WIDGET_RANGE: { /* float */ + float f,t,b,s; + + ret = gp_widget_get_range (child, &b, &t, &s); + if (ret != GP_OK) + break; + if (!sscanf (value, "%f", &f)) { + gp_context_error (p->context, _("The passed value %s is not a floating point value."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if ((f < b) || (f > t)) { + gp_context_error (p->context, _("The passed value %f is not within the expected range %f - %f."), f, b, t); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + ret = gp_widget_set_value (child, &f); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set the value of range widget %s to %f."), name, f); + break; + } + case GP_WIDGET_TOGGLE: { /* int */ + int t; + + t = 2; + if ( !strcasecmp (value, "off") || !strcasecmp (value, "no") || + !strcasecmp (value, "false") || !strcmp (value, "0") || + !strcasecmp (value, _("off")) || !strcasecmp (value, _("no")) || + !strcasecmp (value, _("false")) + ) + t = 0; + if ( !strcasecmp (value, "on") || !strcasecmp (value, "yes") || + !strcasecmp (value, "true") || !strcmp (value, "1") || + !strcasecmp (value, _("on")) || !strcasecmp (value, _("yes")) || + !strcasecmp (value, _("true")) + ) + t = 1; + /*fprintf (stderr," value %s, t %d\n", value, t);*/ + if (t == 2) { + gp_context_error (p->context, _("The passed value %s is not a valid toggle value."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + ret = gp_widget_set_value (child, &t); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set values %s of toggle widget %s."), value, name); + break; + } + case GP_WIDGET_DATE: { /* int */ + int t = -1; + struct tm xtm; + + if (!strcasecmp (value, "now") || !strcasecmp (value, _("now"))) + t = time(NULL); +#ifdef HAVE_STRPTIME + else if (strptime (value, "%c", &xtm) || strptime (value, "%Ec", &xtm)) + t = mktime (&xtm); +#endif + if (t == -1) { + if (!sscanf (value, "%d", &t)) { + gp_context_error (p->context, _("The passed value %s is neither a valid time nor an integer."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + } + ret = gp_widget_set_value (child, &t); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new time of date/time widget %s to %s."), name, value); + break; + } + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + + cnt = gp_widget_count_choices (child); + if (cnt < GP_OK) { + ret = cnt; + break; + } + ret = GP_ERROR_BAD_PARAMETERS; + for ( i=0; icontext, _("Choice %s not found within list of choices."), value); + break; + } + + /* ignore: */ + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + case GP_WIDGET_BUTTON: + gp_context_error (p->context, _("The %s widget is not configurable."), name); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if (ret == GP_OK) { + if (child == rootconfig) + ret = gp_camera_set_single_config (p->camera, name, child, p->context); + else + ret = gp_camera_set_config (p->camera, rootconfig, p->context); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new configuration value %s for configuration entry %s."), value, name); + } + gp_widget_free (rootconfig); + return (ret); +} + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/actions.h b/lib/hardware/sensors/gphoto/actions.h new file mode 100644 index 00000000..f48003a0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/actions.h @@ -0,0 +1,112 @@ +/* actions.h + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __ACTIONS_H__ +#define __ACTIONS_H__ + +#include +#include + +#include "gp-params.h" + +enum wait_type { + WAIT_TIME, + WAIT_EVENTS, + WAIT_FRAMES, + WAIT_STRING, +}; +enum download_type { DT_NO_DOWNLOAD, DT_DOWNLOAD }; +struct waitparams { + union { + int milliseconds; + int events; + int frames; + char *str; + } u; + enum wait_type type; + enum download_type downloadtype; +}; + +/* Image actions */ +typedef int FileAction (GPParams *, const char *folder, const char *filename); +int print_file_action (GPParams *, const char *folder, const char *filename); +int print_exif_action (GPParams *, const char *folder, const char *filename); +int print_info_action (GPParams *, const char *folder, const char *filename); +int save_file_action (GPParams *, const char *folder, const char *filename); +int save_thumbnail_action (GPParams *, const char *folder, const char *filename); +int save_raw_action (GPParams *, const char *folder, const char *filename); +int save_audio_action (GPParams *, const char *folder, const char *filename); +int save_all_audio_action (GPParams *, const char *folder, const char *filename); +int save_exif_action (GPParams *, const char *folder, const char *filename); +int save_meta_action (GPParams *, const char *folder, const char *filename); +int delete_file_action (GPParams *, const char *folder, const char *filename); + +/* Folder actions */ +typedef int FolderAction (GPParams *); +int delete_all_action (GPParams *); +int list_files_action (GPParams *); +int list_folders_action (GPParams *); +int num_files_action (GPParams *); + +/* Camera actions */ +int action_camera_about (GPParams *); +int action_camera_summary (GPParams *); +int action_camera_manual (GPParams *); +int action_camera_set_port (GPParams *, const char *port); +int action_camera_set_speed (GPParams *, unsigned int speed); +int action_camera_set_model (GPParams *, const char *model); +int action_camera_show_abilities (GPParams *); +int action_camera_upload_file (GPParams *, const char *folder, + const char *path); +int action_camera_upload_metadata (GPParams *, const char *folder, + const char *path); +int action_camera_capture_preview (GPParams *); +int action_camera_show_preview (GPParams *); +int action_camera_capture_movie (GPParams *, const char *arg); +int action_camera_wait_event (GPParams *, enum download_type dt, const char*args); + +/* Other actions */ +int list_cameras_action (GPParams *); +int list_ports_action (GPParams *); +int auto_detect_action (GPParams *); +int set_folder_action (GPParams *, const char *folder); +int set_filename_action (GPParams *, const char *filename); +int print_version_action (GPParams *); +int override_usbids_action (GPParams *, int usb_vendor, int usb_product, + int usb_vendor_modified, int usb_product_modified); +int debug_action (GPParams *, const char *debug_loglevel, const char *debug_logfile_name); +int list_config_action (GPParams *); +int list_all_config_action (GPParams *); +int get_config_action (GPParams *, const char *name); +int set_config_action (GPParams *, const char *name, const char *value); +int set_config_index_action (GPParams *, const char *name, const char *value); +int set_config_value_action (GPParams *, const char *name, const char *value); +int print_storage_info (GPParams *); + +void _get_portinfo_list (GPParams *p); +#endif /* __ACTIONS_H__ */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gPhotoCamera.cpp b/lib/hardware/sensors/gphoto/gPhotoCamera.cpp new file mode 100644 index 00000000..43122c8f --- /dev/null +++ b/lib/hardware/sensors/gphoto/gPhotoCamera.cpp @@ -0,0 +1,2545 @@ +#include "gPhotoCamera.h" + +#define LOG( X ) m_pLog->Log( "GPHO", this, X ) +#define LOG_ERROR( X ) m_pLog->Log( "GPHO", this, _LOG_ERROR, X ) + +struct _CameraWidget{ + CameraWidgetType type; + char label [256]; + char info [1024]; + char name [256]; + + CameraWidget *parent; + + /* Current value of the widget */ + char *value_string; + int value_int; + float value_float; + + /* For Radio and Menu */ + char **choice; + int choice_count; + + /* For Range */ + float min; + float max; + float increment; + + /* Child info */ + CameraWidget **children; + int children_count; + + /* Widget was changed */ + int changed; + + /* Widget is read only */ + int readonly; + + /* Reference count */ + int ref_count; + + /* Unique identifier */ + int id; + + /* Callback */ + CameraWidgetCallback callback; +}; + +static void errordumper( GPLogLevel level, const char *domain, const char *str, void *data) { + basicLogCollection::getInstance()->Log( "GPHO_LIB", NULL, str ); +}; + +static void error_func( GPContext *context, const char *format, va_list args, void *data) { + char tBuff[256]; + sprintf( tBuff, format, args ); + basicLogCollection::getInstance()->Log( "GPHO_CTX_ERR", NULL, tBuff ); +}; + +static void message_func( GPContext *context, const char *format, va_list args, void *data) { + char tBuff[256]; + sprintf( tBuff, format, args ); + basicLogCollection::getInstance()->Log( "GPHO_CTX_MSG", NULL, tBuff ); +}; + + +/* + * This function looks up a label or key entry of + * a configuration widget. + * The functions descend recursively, so you can just + * specify the last component. + */ + +int gPhotoCamera::_lookup_widget(CameraWidget*widget, const char *key, CameraWidget **child) { + int ret; + ret = gp_widget_get_child_by_name( widget, key, child ); + if( ret < GP_OK ) ret = gp_widget_get_child_by_label( widget, key, child ); + return ret; +}; + +/* Gets a string configuration value. + * This can be: + * - A Text widget + * - The current selection of a Radio Button choice + * - The current selection of a Menu choice + * + * Sample (for Canons eg): + * get_config_value_string (camera, "owner", &ownerstr, context); + */ +int gPhotoCamera::get_config_value_string (Camera *camera, const char *key, char **str, GPContext *context ) { + CameraWidget * widget = NULL, *child = NULL; + CameraWidgetType type; + int ret; + char * val; + + ret = gp_camera_get_single_config( camera, key, &child, context ); + if (ret == GP_OK) { + if (!child) LOG_ERROR( "child is NULL?"); + widget = child; + } else { + ret = gp_camera_get_config( camera, &widget, context ); + if (ret < GP_OK) { + LOG_ERROR( "camera_get_config failed" ); + return ret; + }; + ret = _lookup_widget( widget, key, &child ); + if (ret < GP_OK) { + LOG_ERROR( "lookup widget failed" ); + goto out; + }; + }; + + /* This type check is optional, if you know what type the label + * has already. If you are not sure, better check. */ + ret = gp_widget_get_type( child, &type ); + if (ret < GP_OK) { + LOG_ERROR( "Widget get type failed" ); + goto out; + } + switch (type) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + case GP_WIDGET_TEXT: + break; + default: + LOG_ERROR( "widget has bad type!" ); + ret = GP_ERROR_BAD_PARAMETERS; + goto out; + } + + /* This is the actual query call. Note that we just + * a pointer reference to the string, not a copy... */ + ret = gp_widget_get_value( child, &val ); + if (ret < GP_OK) { + LOG_ERROR( "could not query widget value" ); + goto out; + } + /* Create a new copy for our caller. */ + *str = strdup (val); +out: + gp_widget_free (widget); + return ret; +}; + + + + +gPhotoCamera::gPhotoCamera( config_setting_t *Settings ): basicThread(){ + m_pLog = basicLogCollection::getInstance(); + m_pSettings = basicSettingsProvider::getInstance()->getSubNode( Settings, "GP_CAMERA" ); + m_pBLOG = objectPathfinderBinaryLog::getInstance(); + m_nCameraID = 0; + m_nFolderID = 0; + m_ePortType = GP_PORT_NONE; + m_pDBC = NULL; + m_pCamera = NULL; + m_pContext = NULL; + m_pPortInfoList = NULL; + m_pAbilitiesList = NULL; + m_bBurstCapturing = false; + m_pChannelIsBusy = false; + m_bOldWMode =GP_WM_NA; + m_bWMode = GP_WM_CTRL; +#ifdef DEBUG + m_nFlags = FLAGS_NEW; +#else + m_nFlags = FLAGS_NEW | FLAGS_QUIET; +#endif +}; + +gPhotoCamera::gPhotoCamera( PATHFINDER_DBC *DBC ): basicThread(){ + m_pLog = basicLogCollection::getInstance(); + m_pSettings = basicSettingsProvider::getInstance()->getSubNode( NULL, "GP_CAMERA" ); + m_pBLOG = objectPathfinderBinaryLog::getInstance(); + m_nCameraID = 0; + m_nFolderID = 0; + m_ePortType = GP_PORT_NONE; + m_pDBC = DBC; + m_pCamera = NULL; + m_pContext = NULL; + m_pPortInfoList = NULL; + m_pAbilitiesList = NULL; + m_bBurstCapturing = false; + m_pChannelIsBusy = false; + m_bOldWMode =GP_WM_NA; + m_bWMode = GP_WM_CTRL; +#ifdef DEBUG + m_nFlags = FLAGS_NEW; +#else + m_nFlags = FLAGS_NEW | FLAGS_QUIET; +#endif +}; + +gPhotoCamera::gPhotoCamera( config_setting_t *Settings, PATHFINDER_DBC *DBC ): basicThread(){ + m_pLog = basicLogCollection::getInstance(); + m_pSettings = basicSettingsProvider::getInstance()->getSubNode( Settings, "GP_CAMERA" ); + m_pBLOG = objectPathfinderBinaryLog::getInstance(); + m_nCameraID = 0; + m_ePortType = GP_PORT_NONE; + m_pDBC = DBC; + m_pCamera = NULL; + m_pContext = NULL; + m_pPortInfoList = NULL; + m_pAbilitiesList = NULL; + m_bBurstCapturing = false; + m_pChannelIsBusy = false; + m_bOldWMode =GP_WM_NA; + m_bWMode = GP_WM_CTRL; + + char tBuffer[1024]; + const char * tBuf; + config_setting_t * pSetting; + if( !config_setting_lookup_string( m_pSettings, GPHOTO_TAG_MOUNT_POINT, &tBuf ) ){ + sprintf( m_pCamMountPoint, "/srv/pathfinder/data/camera" ); + pSetting = config_setting_add( m_pSettings, GPHOTO_TAG_MOUNT_POINT, CONFIG_TYPE_STRING ); + config_setting_set_string( pSetting, m_pCamMountPoint ); + basicSettingsProvider::getInstance()->compromise(); + LOG("Camera Mount Point not defined - generating new!"); + } else { + sprintf( m_pCamMountPoint, tBuf ); + sprintf( tBuffer, "Camera Mount Point Read From Settings: %s", m_pCamMountPoint ); + LOG( tBuffer ); + }; + pSetting = config_setting_get_member(m_pSettings, GPHOTO_TAG_MOUNT_POINT_UID ); + if ( pSetting == NULL ){ + m_nAccessUID = 65534; + pSetting = config_setting_add( m_pSettings, GPHOTO_TAG_MOUNT_POINT_UID, CONFIG_TYPE_INT ); + config_setting_set_int( pSetting, m_nAccessUID ); + basicSettingsProvider::getInstance()->compromise(); + LOG("Camera Mount Point UID not defined - generating new!"); + } else { + m_nAccessUID = config_setting_get_int( pSetting ); + sprintf( tBuffer, "Camera Mount Point UID Read From Settings: %d", m_nAccessUID ); + LOG( tBuffer ); + }; + pSetting = config_setting_get_member(m_pSettings, GPHOTO_TAG_MOUNT_POINT_GID ); + if ( pSetting == NULL ){ + m_nAccessGID = 65534; + pSetting = config_setting_add( m_pSettings, GPHOTO_TAG_MOUNT_POINT_GID, CONFIG_TYPE_INT ); + config_setting_set_int( pSetting, m_nAccessGID ); + basicSettingsProvider::getInstance()->compromise(); + LOG("Camera Mount Point GID not defined - generating new!"); + } else { + m_nAccessGID = config_setting_get_int( pSetting ); + sprintf( tBuffer, "Camera Mount Point GID Read From Settings: %d", m_nAccessGID ); + LOG( tBuffer ); + }; +#ifdef DEBUG + m_nFlags = FLAGS_NEW; +#else + m_nFlags = FLAGS_NEW | FLAGS_QUIET; +#endif +}; + + +gPhotoCamera::~gPhotoCamera(){ + m_bThreadStatus = TH_ENDED; + m_mCommandLock.unlock(); + waitThreadEnd( true ); + if( m_pPortInfoList ) gp_port_info_list_free( m_pPortInfoList ); + if( m_pAbilitiesList ) gp_abilities_list_free( m_pAbilitiesList ); +}; + +bool gPhotoCamera::create(){ +#ifdef DEBUG + LOG("Create()"); +#endif + if( m_bThreadStatus > TH_ARMED ) return true; + return basicThread::init(); +}; + +bool gPhotoCamera::makeShot(){ + if( m_pCamera == NULL ) return false; + if( m_pChannelIsBusy ) return false; + if( m_bBurstCapturing ) return false; + m_mCommandLock.lock(); + GP_CAM_COMMAND * tCMD; + tCMD = (GP_CAM_COMMAND*) malloc(sizeof(GP_CAM_COMMAND)); + if( tCMD != NULL ) { + memset( tCMD, 0 , sizeof(GP_CAM_COMMAND) ); + tCMD->cmd = GP_SINGLE_SHOT; + m_qCommands.push( tCMD ); + }; + m_mCommandLock.unlock(); + return true; +}; + +bool gPhotoCamera::makePreview(){ + if( m_pCamera == NULL ) return false; + if( m_pChannelIsBusy ) return false; + if( m_bBurstCapturing ) return false; + m_mCommandLock.lock(); + GP_CAM_COMMAND * tCMD; + tCMD = (GP_CAM_COMMAND*) malloc(sizeof(GP_CAM_COMMAND)); + if( tCMD != NULL ) { + memset( tCMD, 0 , sizeof(GP_CAM_COMMAND) ); + tCMD->cmd = GP_PREVIEW_SHOT; + m_qCommands.push( tCMD ); + }; + m_mCommandLock.unlock(); + return true; +}; + +bool gPhotoCamera::startPreview(){ + if( m_pCamera == NULL ) return false; + if( m_pChannelIsBusy ) return false; + if( m_bBurstCapturing ) return false; + m_mCommandLock.lock(); + GP_CAM_COMMAND * tCMD; + tCMD = (GP_CAM_COMMAND*) malloc(sizeof(GP_CAM_COMMAND)); + if( tCMD != NULL ) { + memset( tCMD, 0 , sizeof(GP_CAM_COMMAND) ); + tCMD->cmd = GP_START_PREVIEW; + m_qCommands.push( tCMD ); + }; + m_mCommandLock.unlock(); + return true; +}; +bool gPhotoCamera::stopPreview(){ + if( m_pCamera == NULL ) return false; + if( m_pChannelIsBusy ) return false; + if( m_bBurstCapturing ) return false; + m_mCommandLock.lock(); + GP_CAM_COMMAND * tCMD; + tCMD = (GP_CAM_COMMAND*) malloc(sizeof(GP_CAM_COMMAND)); + if( tCMD != NULL ) { + memset( tCMD, 0 , sizeof(GP_CAM_COMMAND) ); + tCMD->cmd = GP_STOP_PREVIEW; + m_qCommands.push( tCMD ); + }; + m_mCommandLock.unlock(); + return true; +}; + + + +bool gPhotoCamera::setCaptureTarget( GP_CAP_TARGET T ){ + if( m_pCamera == NULL ) return false; + if( m_pChannelIsBusy ) return false; + m_mCommandLock.lock(); + GP_CAM_COMMAND * tCMD; + tCMD = (GP_CAM_COMMAND*) malloc(sizeof(GP_CAM_COMMAND)); + if( tCMD != NULL ) { + memset( tCMD, 0 , sizeof(GP_CAM_COMMAND) ); + tCMD->cmd = GP_SET_CONFIG; + sprintf( tCMD->prm,"capturetarget"); + if( T == GP_SD_CARD ) { + sprintf( tCMD->var,"Memory card");//"card");// , T ); + } else { + sprintf( tCMD->var,"Internal RAM");//"sdram"); + }; + m_qCommands.push( tCMD ); + }; + m_mCommandLock.unlock(); + return true; +}; + +bool gPhotoCamera::startBurst(){ + if( m_pCamera == NULL ) return false; + if( m_pChannelIsBusy ) return false; + m_mCommandLock.lock(); + m_bBurstCapturing = true; + GP_CAM_COMMAND * tCMD; + tCMD = (GP_CAM_COMMAND*) malloc(sizeof(GP_CAM_COMMAND)); + if( tCMD != NULL ) { + memset( tCMD, 0 , sizeof(GP_CAM_COMMAND) ); + tCMD->cmd = GP_START_BURST; + m_qCommands.push( tCMD ); + if( m_pDBC != NULL ) { + m_pDBC->setCameraMode( GP_WM_BURST ); + }; + }; + m_mCommandLock.unlock(); + return true; +}; + +bool gPhotoCamera::stopBurst(){ + if( m_pCamera == NULL ) return false; + if( m_pChannelIsBusy ) return false; + m_mCommandLock.lock(); + m_bBurstCapturing = false; + GP_CAM_COMMAND * tCMD; + tCMD = (GP_CAM_COMMAND*) malloc(sizeof(GP_CAM_COMMAND)); + if( tCMD != NULL ) { + memset( tCMD, 0 , sizeof(GP_CAM_COMMAND) ); + tCMD->cmd = GP_STOP_BURST; + m_qCommands.push( tCMD ); + }; + m_mCommandLock.unlock(); + return true; +}; + +bool gPhotoCamera::validate(){ + if( m_pCamera == NULL ) return false; + return true; +}; + +bool gPhotoCamera::setWM( uint8_t NMode ){ + m_bOldWMode = m_bWMode; + m_bWMode = NMode; + if( m_pDBC != NULL ) { + m_pDBC->setCameraMode( m_bWMode ); + }; + return true; +}; + +bool gPhotoCamera::cancelWM( uint8_t NMode ){ + if( NMode != m_bWMode ) return false; + if( m_bOldWMode == GP_WM_NA ) return false; + if( m_bWMode != m_bOldWMode ) { + m_bWMode == m_bOldWMode; + m_bOldWMode = GP_WM_NA; + }; + if( m_pDBC != NULL ) { + m_pDBC->setCameraMode( m_bWMode ); + }; + return true; +}; + +void gPhotoCamera::m_fThreadProc( void ){ + + gp_log_add_func( GP_LOG_ERROR, errordumper, NULL ); + //gp_log_add_func( GP_LOG_DEBUG, errordumper, NULL ); + + CameraFilePath *path; + CameraEventType evtype; + void *data; + int retval; + char tBuff[1024]; + + + // Init Camera! + m_pContext = gp_context_new(); + if( m_pContext != NULL ){ + LOG("New Context Created"); + int ret = GP_OK; + //gp_context_set_error_func( m_pContext, error_func, NULL); + //gp_context_set_message_func( m_pContext, message_func, NULL); + gp_camera_new( &m_pCamera ); + LOG("New Camera Created"); + ret = gp_camera_init( m_pCamera, m_pContext ); + if( ret < GP_OK ){ + LOG_ERROR("No camera auto detected!"); + gp_camera_free( m_pCamera ); + m_pCamera = NULL; + m_bThreadStatus = TH_ENDED; + } else { + LOG("Camera Init Complete"); + m_bThreadStatus = TH_WORKING; + if( m_pDBC != NULL){ + int StorCNT; + m_pDBC->clenupCameraFS(); + CameraStorageInformation *sifs = NULL; + ret = gp_camera_get_storageinfo( m_pCamera, &sifs, &StorCNT, m_pContext ); + if( ret == GP_OK ) { + if( StorCNT ) { + for( int dx = 0; dx < StorCNT; dx++ ) { + m_pDBC->updateCAM_STORAGE_INFO( sifs[dx].basedir, sifs[dx].type, sifs[dx].fstype, sifs[dx].access, sifs[dx].capacitykbytes, sifs[dx].freekbytes ); + updateFileTree( m_pDBC->getCAM_fileSyetemID( sifs[dx].basedir ), 0, sifs[dx].basedir ); + sprintf( tBuff, "Stor INFO: [0x%02X] %s [%s](%s) t:0x%02X fst:0x%02X acc: 0x%02X size: %lld Kb free: %lld Kb for %lld pictures", + sifs[dx].fields, + sifs[dx].basedir, + sifs[dx].label, + sifs[dx].description, + sifs[dx].type, + sifs[dx].fstype, + sifs[dx].access, + sifs[dx].capacitykbytes, + sifs[dx].freekbytes, + sifs[dx].freeimages + ); + LOG( tBuff ); + }; + }; + if( sifs != NULL ) free( sifs ); + }; + m_pDBC->setCameraMode( GP_WM_CTRL ); + }; + setCaptureTarget( GP_SD_CARD ); + data = NULL; + }; +#ifdef DEBUG + LOG("Camera Init Done!"); +#endif + } else { + LOG_ERROR( "Cannot create GP Context" ); + m_bThreadStatus = TH_ENDED; + }; + uint8_t mPrevCounter = 0; + while( m_bThreadStatus < TH_ENDED ){ + unsigned int timediff; + // Fetch Kernel Commands + m_mCommandLock.lock(); + if( !m_qCommands.empty() ) { + GP_CAM_COMMAND * tCMD; + tCMD = m_qCommands.front(); + switch( tCMD->cmd ) { + /*case GP_DEL_PHOTOS:{ + if( m_pDBC != NULL ) { + char cFile[256]; + char cFolder[256]; + char cFID; + while( ( cFID = m_pDBC->feitchPhoto( cFolder, cFile ) ) && ( m_bThreadStatus < TH_ENDED ) ){ + retval = gp_camera_file_delete( m_pCamera, cFolder, cFile, m_pContext ); + if( retval == GP_OK ) { + m_pDBC->removePhoto( cFID ); + } else { + sprintf( tBuff, "Error Deleting File [%s] in [%s]", cFile, cFolder ); + LOG_ERROR( tBuff ); + break; + }; + }; + }; + break; + };*/ + case GP_STOP_PREVIEW:{ + LOG("Cancel Preview mode"); + cancelWM( GP_WM_PREV ); + break; + }; + case GP_START_PREVIEW:{ + LOG("Start Preview mode"); + setWM( GP_WM_PREV ); + break; + }; + case GP_PREVIEW_SHOT:{ + // Only in Control mode can be issued manual preview + if( m_bWMode != GP_WM_CTRL ) break; + CameraFile * cameraFile = NULL; + gp_file_new( &cameraFile ); + if( cameraFile!= NULL ) { + int retval = gp_camera_capture_preview( m_pCamera, cameraFile, m_pContext ); + if( retval != GP_OK){ + LOG("Error Ocured!"); + switch( retval ) { + case GP_ERROR: + LOG_ERROR( "Triggering capture had error!" ); + break; + case GP_ERROR_CAMERA_BUSY: + LOG_ERROR( "Camera is BUSY!" ); + break; + default: + LOG_ERROR( "Camera is Not OK!" ); + break; + }; + } else { + gp_file_save( cameraFile ,"data/capture_preview.jpg"); + }; + gp_file_free( cameraFile ); + }; + }; + break; + case GP_SINGLE_SHOT:{ + LOG("Make Shot!"); + // Disable Single Shot while in Burst Mode + if( m_bWMode == GP_WM_BURST ) break; + CameraFilePath camera_file_path; + //strcpy( camera_file_path.folder, "100CANON"); + //strcpy( camera_file_path.name, "IMG_1203.JPG"); + //int retval = gp_camera_capture( m_pCamera, GP_CAPTURE_IMAGE, &camera_file_path, m_pContext ); + int retval = gp_camera_trigger_capture( m_pCamera, m_pContext ); + if( retval != GP_OK){ + switch( retval ) { + case GP_ERROR: + LOG_ERROR( "Triggering capture had error!" ); + break; + case GP_ERROR_CAMERA_BUSY: + LOG_ERROR( "Camera is BUSY!" ); + break; + default: + LOG_ERROR( "Camera is Not OK!" ); + break; + }; + } else m_pChannelIsBusy = true; + }; + break; + case GP_START_BURST:{ + setWM( GP_WM_BURST ); + set_config_action( "viewfinder", "1" ); + SLEEP( 500 ); + set_config_action( "eosremoterelease", "2" ); + //viewfinder=1;eosremoterelease=2; + //m_pChannelIsBusy = true; + }; + break; + case GP_STOP_BURST:{ + setWM( GP_WM_CTRL ); + SLEEP( 300 ); + set_config_action( "eosremoterelease", "0" ); + SLEEP( 500 ); + set_config_action( "viewfinder", "0" ); + SLEEP( 300 ); + //viewfinder=0;eosremoterelease=0; + //m_pChannelIsBusy = true; + }; + break; + case GP_SET_CONFIG:{ + CameraWidget *pWidget; + int retVal; + LOG( "Set CFG!" ); + m_pChannelIsBusy = true; + + //gp_widget_new( GP_WIDGET_MENU, tCMD->prm, &pWidget ); + retVal = gp_camera_get_single_config( m_pCamera, (const char *) tCMD->prm, &pWidget, m_pContext ); + if( retVal == GP_OK ){ +#ifdef DEBUG + char ttt[128]; +#endif + switch( pWidget->type ) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + set_config_action( tCMD->prm, tCMD->var ); +/* + int cnt, i; + cnt = gp_widget_count_choices( pWidget ); + if( cnt < GP_OK ){ + ret = cnt; + break; + }; + ret = GP_ERROR_BAD_PARAMETERS; + i = atoi( tCMD->var ); + if( (i>= 0) && (i < cnt) ){ + const char * choice; + ret = gp_widget_get_choice (pWidget, i, &choice); + if (ret == GP_OK) + ret = gp_widget_set_value (pWidget, choice); + break; + }; + //gp_context_error( p->context, _("Choice %s not found within list of choices."), value ); + if (ret == GP_OK) { + if (child == rootconfig) + ret = gp_camera_set_single_config (p->camera, name, child, p->context); + else + ret = gp_camera_set_config (p->camera, rootconfig, p->context); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new configuration value %s for configuration entry %s."), value, name); + } + gp_widget_free (rootconfig); */ + + break; + + case GP_WIDGET_TEXT: +#ifdef DEBUG + sprintf( ttt, "Current %s(%s)[string] = %s", pWidget->name, pWidget->label, pWidget->value_string ); + LOG( ttt ); +#endif + strcpy( pWidget->value_string, tCMD->var ); + break; + case GP_WIDGET_DATE: + case GP_WIDGET_TOGGLE: +#ifdef DEBUG + sprintf( ttt, "Current %s(%s)[int] = %d (%s)", pWidget->name, pWidget->label, pWidget->value_int, pWidget->value_string ); + LOG( ttt ); +#endif + pWidget->value_int = atoi(tCMD->var); + break; + case GP_WIDGET_RANGE: +#ifdef DEBUG + sprintf( ttt, "Current %s(%s)[float] = %.3f (%s)", pWidget->name, pWidget->label, pWidget->value_float, pWidget->value_string ); + LOG( ttt ); +#endif + pWidget->value_float = (float) atof(tCMD->var); + break; + case GP_WIDGET_BUTTON: +#ifdef DEBUG + sprintf( ttt, "Current %s(%s)[ptr] = %p (%s)", pWidget->name, pWidget->label, pWidget->callback, pWidget->value_string ); + LOG( ttt ); +#endif + //CameraWidgetCallback + break; + }; + retVal = gp_camera_set_single_config( m_pCamera, pWidget->name, pWidget, m_pContext ); + gp_widget_free( pWidget ); + if( retVal != GP_OK ) { + SLEEP( DEFAULT_THREAD_SLEEP_TIME ); + m_mCommandLock.unlock(); + LOG_ERROR("CONFIG SET Failure!"); + continue; + }; +#ifdef DEBUG + LOG("Success!"); +#endif + } else { + SLEEP( DEFAULT_THREAD_SLEEP_TIME ); + m_mCommandLock.unlock(); + continue; + }; + }; + break; + }; + m_qCommands.pop(); + free( tCMD ); + SLEEP( DEFAULT_THREAD_SLEEP_TIME ); + m_mCommandLock.unlock(); + continue; + }; + m_mCommandLock.unlock(); + // Proceed Working Mode BackLogic + if( ( m_bWMode == GP_WM_PREV ) && !m_pChannelIsBusy ) { + mPrevCounter ++; + if( mPrevCounter >= 10 ) { + CameraFile * cameraFile = NULL; + gp_file_new( &cameraFile ); + if( cameraFile!= NULL ) { + int retval = gp_camera_capture_preview( m_pCamera, cameraFile, m_pContext ); + if( retval != GP_OK){ + LOG("Error Ocured!"); + switch( retval ) { + case GP_ERROR: + LOG_ERROR( "Triggering capture had error!" ); + break; + case GP_ERROR_CAMERA_BUSY: + LOG_ERROR( "Camera is BUSY!" ); + break; + default: + LOG_ERROR( "Camera is Not OK!" ); + break; + }; + } else { + gp_file_save( cameraFile ,"data/capture_preview.jpg"); + }; + gp_file_free( cameraFile ); + }; + mPrevCounter = 0; + }; + SLEEP( 90 ); + } else { + // Fetch Events + retval = gp_camera_wait_for_event( m_pCamera, 10, &evtype, &data, m_pContext ); // 1/10 th second + if( retval != GP_OK ){ + LOG_ERROR( "Error Return from waitevent" ); + m_bThreadStatus = TH_ENDED; + continue; + }; + path = (CameraFilePath*) data; + m_pChannelIsBusy = false; + switch( evtype ){ + case GP_EVENT_CAPTURE_COMPLETE: + LOG( "event CAPTURE_COMPLETE" ); + break; + case GP_EVENT_UNKNOWN: + case GP_EVENT_TIMEOUT: + break; + case GP_EVENT_FOLDER_ADDED: + LOG( "event FOLDER_ADDED" ); + free(data); + break; + case GP_EVENT_FILE_CHANGED: + LOG( "event FILE_CHANGED" ); + free(data); + break; + case GP_EVENT_FILE_ADDED: +#ifdef DEBUG + LOG( "event FILE_ADDED" ); +#endif + if( m_pBLOG != NULL ){ + PF_TIMESTAMP ts; + getPFTS( &ts ); + m_pBLOG->registerPIC( &ts, path->name ); + } else LOG_ERROR("No Binary Log Connected!"); + if( m_pDBC != NULL ) { + m_pDBC->registerCameraPicture( m_nFolderID, path->name ); + }; +#ifdef DEBUG + //LOG( "event FILE_ADDED" ); + //sprintf( tBuff,"File [%s/%s] created.", path->folder, path->name ); + //LOG( tBuff ); +#endif + /* + retval = gp_camera_file_delete( m_pCamera, path->folder, path->name, m_pContext ); + if(retval != GP_OK) { + LOG_ERROR( "Cannot delete picture on camera!" ); + sprintf( tBuff, "Retval: %d %s", retval, gp_result_as_string( retval ) ); + LOG_ERROR( tBuff ); + } else { + LOG("File is Deleted!"); + }; + */ + free(data); + break; + default: + LOG(" EVT Handler KOKO!"); + break; + }; + }; + }; + if( m_pCamera != NULL ) { + gp_camera_exit( m_pCamera, m_pContext ); + gp_camera_free( m_pCamera ); + }; + if( m_pContext != NULL ) gp_context_unref( m_pContext ); +}; + +void gPhotoCamera::updateFileTree( int fsid, int parent, CSTR folder ){ + int ret; + int MyID; + char tBuff[256]; + + CameraList * Folders = NULL; + CameraList * Files = NULL; + if( m_pDBC == NULL ) return; + + sprintf( tBuff, "Check Folder: %s", folder ); + LOG( tBuff ); + + MyID = m_pDBC->addCameraFolder( fsid, parent, folder ); + if( MyID > 0 ) { + gp_list_new( &Folders ); + ret = gp_camera_folder_list_folders( m_pCamera, folder, Folders, m_pContext ); + if( ret == GP_OK ) { + for( int i=0; i < gp_list_count( Folders ); i++ ) { + char *name;//, *value; + gp_list_get_name( Folders, i, (const char**)&name ); + //gp_list_get_value( Folders, i, (const char**)&value ); + sprintf( tBuff, "%s/%s",folder, name ); + updateFileTree( fsid, MyID, tBuff ); + }; + + }; + gp_list_free( Folders ); + gp_list_new( &Files ); + ret = gp_camera_folder_list_files( m_pCamera, folder, Files, m_pContext ); + if( ret == GP_OK ) { + int i = 0; + for( i=0; i < gp_list_count( Files ); i++ ) { + char *name;//, *value; + gp_list_get_name( Files, i, (const char**)&name); + //gp_list_get_value( Files, i, (const char**)&value); + m_pDBC->addCameraFile( MyID, name ); + //sprintf( tBuff, "Files: %s", name ); + //LOG( tBuff ); + }; + if( i > 0 ) { + m_nFolderID = MyID; + sprintf( m_pCapFolder, folder ); + sprintf( tBuff, "Save Folder: [%s] id:[%d]", m_pCapFolder, m_nFolderID ); + LOG( tBuff ); + }; + }; + gp_list_free( Files ); + }; +}; + +bool gPhotoCamera::switchToStorage(){ + LOG("To Storage Mode" ); + if( m_bWMode != GP_WM_STOR ){ + char tBuff[1024]; + int RetVal; + + m_bWMode = GP_WM_NA; + + m_bThreadStatus = TH_ENDED; + m_mCommandLock.unlock(); + waitThreadEnd( true ); + if( m_pDBC != NULL ) { + m_pDBC->setCameraMode( GP_WM_STOR ); + }; + sprintf( tBuff, "gphotofs -o uid=%d,gid=%d,allow_other,nonempty,auto_unmount,large_read,default_permissions %s", m_nAccessUID, m_nAccessGID, m_pCamMountPoint ); + LOG( tBuff ); + RetVal = system( tBuff ); + sprintf( tBuff, "Returned Code: %d", RetVal ); + LOG( tBuff ); + m_bWMode = GP_WM_STOR; + LOG("OK"); + return true; + }; + LOG("Wrong Mode!"); + return false; +}; + +bool gPhotoCamera::switchToCamera(){ + LOG("To Camera Mode" ); + if( m_bWMode != GP_WM_CTRL ){ + if( m_bWMode == GP_WM_STOR ) { + char tBuff[256]; + int RetVal; + + m_bWMode = GP_WM_NA; + + sprintf( tBuff, "fusermount -u %s ", m_pCamMountPoint ); + LOG( tBuff ); + RetVal = system( tBuff ); + sprintf( tBuff, "Returned Code: %d", RetVal ); + LOG( tBuff ); + m_bThreadStatus = TH_PRE_INIT; + LOG("From Mount OK"); + return create(); + } else { + LOG("From Mode OK"); + return setWM( GP_WM_CTRL ); + }; + }; + LOG("Wrong Mode!"); + return false; +}; + +bool gPhotoCamera::deleteAllPictures(){ + if( m_bWMode == GP_WM_STOR ) { + if( m_pDBC != NULL ) { + char cFile[256]; + char cFolder[256]; + char cName[1024]; + char tBuff[1024]; + uint32_t cFID; + + while( ( cFID = m_pDBC->feitchPhoto( cFolder, cFile ) ) > 0 ){ + sprintf( cName, "%s%s/%s", m_pCamMountPoint, cFolder, cFile ); + LOG( cName ); + if( 0 == unlink( cName ) ) { + m_pDBC->removePhoto( cFID ); + } else { + sprintf( tBuff, "Error Deleting File [%s]", cName ); + LOG_ERROR( tBuff ); + break; + }; + }; + }; + }; + return true; +}; + +bool gPhotoCamera::fetchFile( uint32_t pictureID ){ + unsigned long size; + int fd; + struct stat stbuf; + CameraFile * file; + /* + retval = gp_file_new( &file ); + + //fprintf(stderr,"camera getfile of %s / %s\n", queue[0].path.folder, queue[0].path.name ); + retval = gp_camera_file_get( m_pCamera, queue[0].path.folder, queue[0].path.name, GP_FILE_TYPE_NORMAL, file, m_pContext ); + if (retval != GP_OK) { + gp_file_free (file); + LOG_ERROR( "gp_camera_file_get failed" ); + m_bThreadStatus = TH_ENDED; + }; + + // buffer is returned as pointer, not as a copy + retval = gp_file_get_data_and_size( file, &buffer, &size ); + if( retval != GP_OK ){ + gp_file_free (file); + LOG_ERROR( "gp_file_get_data_and_size failed" ); + m_bThreadStatus = TH_ENDED; + }; + if( -1 == stat(queue[0].path.name, &stbuf) ){ + fd = creat(queue[0].path.name, 0644); + } else{ + fd = open(queue[0].path.name, O_RDWR | O_BINARY, 0644); + }; + if( fd == -1 ){ + LOG_ERROR( queue[0].path.name ); + m_bThreadStatus = TH_ENDED; + }; + if( -1 == lseek(fd, 0, SEEK_SET) ) LOG_ERROR("lseek"); + if( -1 == write (fd, buffer, size) ) LOG_ERROR("write"); + close (fd); + gp_file_free (file); // Note: this invalidates buffer. + LOG( "ending download, deleting file." ); + retval = gp_camera_file_delete( m_pCamera, queue[0].path.folder, queue[0].path.name, m_pContext ); + memmove(&queue[0],&queue[1],sizeof(queue[0])*(nrofqueue-1)); + */ + return true; +}; + +int gPhotoCamera::delete_all_action( char *folder ){ + return (gp_camera_folder_delete_all( m_pCamera, folder, m_pContext )); +}; + +#define CR(result) {int r = (result); if (r < 0) return (r);} +#define CHECK(result) {int r=(result);if(r<0) return(r);} +#define CL(result,list) {int r=(result);if(r<0) {gp_list_free(list);return(r);}} +#define CHECK_CONT(result) \ +{ \ + int r = (result); \ + \ + if (r < 0) { \ + if (r == GP_ERROR_CANCEL) { \ + glob_cancel = 0; \ + } else { \ + printf (_("*** Error (%i: '%s') ***"), \ + r, gp_result_as_string (r)); \ + putchar ('\n'); \ + } \ + } \ +} +#define textdomain(String) (String) +#define gettext(String) (String) +#define ngettext(String1,String2,Count) (Count==1?String1:String2) +#define dgettext(Domain,Message) (Message) +#define dcgettext(Domain,Message,Type) (Message) +#define bindtextdomain(Domain,Directory) (Domain) +#define _(String) (String) +#define N_(String) (String) + +int gPhotoCamera::action_camera_upload_file( char *folder, char *path){ + CameraFile *file; + int res; + char *fn; + + LOG( "Uploading file..." ); + + CR( gp_file_new_from_fd( &file, -1 )); + res = gp_file_open (file, path); + if (res < GP_OK) { + gp_file_unref (file); + return res; + }; + //if (p->filename && strcmp (p->filename, "")) + // fn = p->filename; + //else + fn = basename (path); + + res = gp_camera_folder_put_file( m_pCamera, folder, fn, GP_FILE_TYPE_NORMAL, file, m_pContext ); + gp_file_unref (file); + return (res); +}; + +int gPhotoCamera::action_camera_upload_metadata( char *folder, char *path ){ + CameraFile *file; + int res; + char *fn = NULL; + + LOG( "Uploading metadata..." ); + + CR( gp_file_new( &file ) ); + res = gp_file_open (file, path); + if (res < 0) { + gp_file_unref (file); + return (res); + }; + + /* Check if the user specified a filename */ + //if (p->filename && strcmp (p->filename, "")) { + // fn = p->filename; + //} else + if (path == strstr(path, "meta_")) { + fn = path+5; + }; + res = gp_camera_folder_put_file( m_pCamera, folder, fn, GP_FILE_TYPE_METADATA, file, m_pContext ); + gp_file_unref (file); + return (res); +}; + +int gPhotoCamera::num_files_action(){ + CameraList *list; + int count, filecount; + + CR( gp_list_new (&list)); + CL( gp_camera_folder_list_files( m_pCamera, m_pCapFolder, list, m_pContext ), list ); + CL( count = gp_list_count (list), list); + + if( m_nFlags & FLAGS_NEW ){ + int i; + const char *name; + + filecount = 0; + for (i = 0; i < count; i++) { + CameraFileInfo info; + CL( gp_list_get_name( list, i, &name ), list ); + CR( gp_camera_file_get_info( m_pCamera, m_pCapFolder, name, &info, m_pContext )); + if( info.file.fields & GP_FILE_INFO_STATUS && info.file.status != GP_FILE_STATUS_DOWNLOADED ) filecount++; + }; + } else filecount = count; + + gp_list_free (list); + if( m_nFlags & FLAGS_QUIET ){ + char tBuff[256]; + sprintf( tBuff, "%i", filecount ); + LOG( tBuff ); + } else{ + char tBuff[256]; + sprintf( tBuff, "Number of files in folder '%s': %i", m_pCapFolder, filecount ); + LOG( tBuff ); + }; + return (GP_OK); +}; + +int gPhotoCamera::list_folders_action(){ + CameraList *list; + int count; + const char *name; + int i; + + CR( gp_list_new (&list) ); + CL( gp_camera_folder_list_folders( m_pCamera, m_pCapFolder, list, m_pContext ), list ); + CL( count = gp_list_count(list), list ); + if( !(m_nFlags & FLAGS_QUIET) ){ + char tBuff[256]; + sprintf( tBuff, ngettext( + "There is %d folder in folder '%s'.\n", + "There are %d folders in folder '%s'.\n", + count + ), count, m_pCapFolder ); + LOG( tBuff ); + }; + + for( i = 0; i < count; i++ ){ + char tBuff[256]; + CL( gp_list_get_name( list, i, &name ), list ); + if( m_nFlags & FLAGS_QUIET) { + if( !strcmp( m_pCapFolder,"/") ) + sprintf( tBuff, "/%s", name); + else + sprintf( tBuff, "%s/%s", m_pCapFolder, name ); + } else + sprintf( tBuff, " - %s", name); + LOG(tBuff); + }; + gp_list_free (list); + return (GP_OK); +}; + +int gPhotoCamera::list_files_action(){ + CameraList *list; + int count, filecount; + char *name; + int i; + + CR( gp_list_new(&list) ); + CL( gp_camera_folder_list_files( m_pCamera, m_pCapFolder, list, m_pContext ), list ); + CL( count = gp_list_count(list), list ); + if( m_nFlags & FLAGS_NEW ){ + filecount = 0; + for (i = 0; i < count; i++) { + CameraFileInfo info; + + CL( gp_list_get_name( list, i, (const char **)&name ), list ); + CR( gp_camera_file_get_info( m_pCamera, m_pCapFolder, name, &info, m_pContext ) ); + if (info.file.fields & GP_FILE_INFO_STATUS && info.file.status != GP_FILE_STATUS_DOWNLOADED ) filecount++; + }; + } else filecount = count; + + if (!(m_nFlags & FLAGS_QUIET)) { /* do not print that in quiet mode */ + char tBuff[256]; + if (filecount == 0) { /* 0 is weird still, despite ngettext() */ + sprintf( tBuff, "There is no file in folder '%s'.", m_pCapFolder ); + } else { + sprintf( tBuff, ngettext( + "There is %d file in folder '%s'.\n", + "There are %d files in folder '%s'.\n", + filecount + ), filecount, m_pCapFolder ); + }; + LOG(tBuff); + }; + for( i = 0; i < count; i++ ){ + CL( gp_list_get_name( list, i, (const char **)&name ), list ); + CL( print_file_action( m_pCapFolder, name ), list ); + }; + gp_list_free (list); + return (GP_OK); +}; + +int gPhotoCamera::print_info_action( char *folder, char *filename ){ + CameraFileInfo info; + char tBuf[256]; + + CR( gp_camera_file_get_info( m_pCamera, folder, filename, &info, m_pContext ) ); + sprintf( tBuf, "Information on file '%s' (folder '%s'):", filename, folder ); + LOG( tBuf ); + LOG( "File:" ); + if( info.file.fields == GP_FILE_INFO_NONE ) LOG( " None available." ); + else { + memset( tBuf, 0, 256 ); + if( info.file.fields & GP_FILE_INFO_TYPE) + sprintf( tBuf, " Mime type: '%s'", info.file.type ); + if( info.file.fields & GP_FILE_INFO_SIZE) + sprintf( tBuf, " Size: %lu byte(s)", (unsigned long int)info.file.size ); + if( info.file.fields & GP_FILE_INFO_WIDTH) + sprintf( tBuf, " Width: %i pixel(s)", info.file.width ); + if( info.file.fields & GP_FILE_INFO_HEIGHT) + sprintf( tBuf, " Height: %i pixel(s)", info.file.height ); + if( info.file.fields & GP_FILE_INFO_STATUS) + sprintf( tBuf, " Downloaded: %s", (info.file.status == GP_FILE_STATUS_DOWNLOADED) ? _("yes") : _("no") ); + if( info.file.fields & GP_FILE_INFO_PERMISSIONS) { + LOG( " Permissions: " ); + if ((info.file.permissions & GP_FILE_PERM_READ) && (info.file.permissions & GP_FILE_PERM_DELETE)) + sprintf( tBuf, "read/delete" ); + else if (info.file.permissions & GP_FILE_PERM_READ) + sprintf( tBuf, "read" ); + else if (info.file.permissions & GP_FILE_PERM_DELETE) + sprintf( tBuf, "delete" ); + else + sprintf( tBuf, "none" ); + }; + LOG( tBuf ); + if( info.file.fields & GP_FILE_INFO_MTIME ){ + sprintf( tBuf, " Time: %s", asctime (localtime (&info.file.mtime)) ); + LOG( tBuf ); + }; + }; + LOG( "Thumbnail:" ); + if (info.preview.fields == GP_FILE_INFO_NONE) + LOG( " None available." ); + else { + memset( tBuf, 0, 256 ); + if (info.preview.fields & GP_FILE_INFO_TYPE) + sprintf( tBuf, " Mime type: '%s'", info.preview.type ); + if (info.preview.fields & GP_FILE_INFO_SIZE) + sprintf( tBuf, " Size: %lu byte(s)", (unsigned long int)info.preview.size ); + if (info.preview.fields & GP_FILE_INFO_WIDTH) + sprintf( tBuf, " Width: %i pixel(s)", info.preview.width ); + if (info.preview.fields & GP_FILE_INFO_HEIGHT) + sprintf( tBuf, " Height: %i pixel(s)", info.preview.height ); + if (info.preview.fields & GP_FILE_INFO_STATUS) + sprintf( tBuf, " Downloaded: %s", (info.preview.status == GP_FILE_STATUS_DOWNLOADED) ? _("yes") : _("no") ); + LOG( tBuf ); + }; + LOG( "Audio data:" ); + if( info.audio.fields == GP_FILE_INFO_NONE ) + LOG( " None available." ); + else { + memset( tBuf, 0, 256 ); + if (info.audio.fields & GP_FILE_INFO_TYPE) + sprintf( tBuf, " Mime type: '%s'", info.audio.type ); + if (info.audio.fields & GP_FILE_INFO_SIZE) + sprintf( tBuf, " Size: %lu byte(s)", (unsigned long int)info.audio.size ); + if (info.audio.fields & GP_FILE_INFO_STATUS) + sprintf( tBuf, " Downloaded: %s", (info.audio.status == GP_FILE_STATUS_DOWNLOADED) ? _("yes") : _("no") ); + LOG( tBuf ); + }; + return (GP_OK); +}; + +int gPhotoCamera::print_file_action( char *folder, char *filename ){ + char tBuff[256]; + int x = 0; + + if( m_nFlags & FLAGS_NEW ){ + CameraFileInfo info; + CR( gp_camera_file_get_info( m_pCamera, folder, filename, &info, m_pContext ) ); + if( info.file.fields & GP_FILE_INFO_STATUS && info.file.status == GP_FILE_STATUS_DOWNLOADED ){ + x++; + return (GP_OK); + }; + }; + + if( m_nFlags & FLAGS_QUIET ){ + sprintf( tBuff, "%s/%s", folder, filename ); + LOG( tBuff ); + } else { + CameraFileInfo info; + if( gp_camera_file_get_info( m_pCamera, folder, filename, &info, NULL) == GP_OK ){ + sprintf( tBuff, "#%-5i %-27s", x+1, filename ); + LOG( tBuff ); + memset( tBuff, 0 , 256 ); + if( info.file.fields & GP_FILE_INFO_PERMISSIONS) sprintf( tBuff, "%s%s", (info.file.permissions & GP_FILE_PERM_READ) ? "r" : "-", (info.file.permissions & GP_FILE_PERM_DELETE) ? "d" : "-"); + if( info.file.fields & GP_FILE_INFO_SIZE) sprintf( tBuff, " %5ld KB", (unsigned long int)((info.file.size+1023) / 1024)); + if( (info.file.fields & GP_FILE_INFO_WIDTH) && + (info.file.fields & GP_FILE_INFO_HEIGHT)) sprintf( tBuff, " %4dx%-4d", info.file.width, info.file.height ); + if (info.file.fields & GP_FILE_INFO_TYPE) sprintf( tBuff, " %s", info.file.type ); + } else + printf("#%-5i %s\n", x+1, filename); + LOG(tBuff); + }; + x++; + return (GP_OK); +}; +/* +int gPhotoCamera::save_file_action( char *folder, char *filename ){ + return (save_file_to_file( m_pCamera, m_pContext, m_nFlags, folder, filename, GP_FILE_TYPE_NORMAL)); +}; + +int gPhotoCamera::save_exif_action( char *folder, char *filename ){ + return (save_file_to_file( m_pCamera, m_pContext, m_nFlags, folder, filename, GP_FILE_TYPE_EXIF)); +}; + +int gPhotoCamera::save_meta_action( char *folder, char *filename ){ + return (save_file_to_file( m_pCamera, m_pContext, m_nFlags, folder, filename, GP_FILE_TYPE_METADATA)); +}; + +int gPhotoCamera::save_thumbnail_action( char *folder, char *filename ){ + return (save_file_to_file( m_pCamera, m_pContext, m_nFlags, folder, filename, GP_FILE_TYPE_PREVIEW)); +}; + +int gPhotoCamera::save_raw_action( char *folder, char *filename ){ + return (save_file_to_file( m_pCamera, m_pContext, m_nFlags, folder, filename, GP_FILE_TYPE_RAW)); +}; + +int gPhotoCamera::save_audio_action( char *folder, char *filename ){ + return (save_file_to_file( m_pCamera, m_pContext, m_nFlags, folder, filename, GP_FILE_TYPE_AUDIO)); +}; + +int gPhotoCamera::save_all_audio_action( char *folder, char *filename ){ + // not every file has an associated audio file + if (camera_file_exists( m_pCamera, m_pContext, folder, filename, GP_FILE_TYPE_AUDIO)) + return (save_file_to_file( m_pCamera, m_pContext, m_nFlags, folder, filename, GP_FILE_TYPE_AUDIO)); + return GP_OK; +}; +*/ + +int gPhotoCamera::delete_file_action( char *folder, char *filename ){ + if( m_nFlags & FLAGS_NEW ){ + CameraFileInfo info; + CR( gp_camera_file_get_info( m_pCamera, folder, filename, &info, m_pContext ) ); + if (info.file.fields & GP_FILE_INFO_STATUS && info.file.status == GP_FILE_STATUS_DOWNLOADED) return (GP_OK); + }; + return (gp_camera_file_delete( m_pCamera, folder, filename, m_pContext ) ); +}; + +int gPhotoCamera::list_cameras_action(){ + int r = GP_OK, n, i; + char tBuff[256]; + CameraAbilities a; + + r = gp_abilities_list_count( gp_params_abilities_list() ); + if( r < 0 ) return (r); + if( m_nFlags & FLAGS_QUIET ){ + sprintf( tBuff, "%i", r); + LOG(tBuff); + } else { + sprintf( tBuff, "Number of supported cameras: %i", r); + LOG(tBuff); + LOG( "Supported cameras:" ); + }; + n = r; + for( i = 0; i < n; i++ ){ + r = gp_abilities_list_get_abilities( gp_params_abilities_list(), i, &a ); + if (r < 0) break; + if ( m_nFlags & FLAGS_QUIET) + sprintf( tBuff,"%s", a.model); + else + switch (a.status) { + case GP_DRIVER_STATUS_TESTING: + sprintf( tBuff, "\t\"%s\" (TESTING)", a.model ); + break; + case GP_DRIVER_STATUS_EXPERIMENTAL: + sprintf( tBuff, "\t\"%s\" (EXPERIMENTAL)", a.model ); + break; + case GP_DRIVER_STATUS_PRODUCTION: + default: + sprintf( tBuff, "\t\"%s\"", a.model); + break; + }; + LOG(tBuff); + }; + return (r); +} + +void gPhotoCamera::_get_portinfo_list(){ + int count, result; + GPPortInfoList *list = NULL; + + if( m_pPortInfoList ) return; + if( gp_port_info_list_new( &list ) < GP_OK ) return; + result = gp_port_info_list_load( list ); + if (result < 0) { + gp_port_info_list_free( list ); + return; + }; + count = gp_port_info_list_count( list ); + if( count < 0 ){ + gp_port_info_list_free( list ); + return; + }; + m_pPortInfoList = list; + return; +} + +int gPhotoCamera::list_ports_action(){ + GPPortInfo info; + int x, count, result = GP_OK; + char tBuff[256]; + _get_portinfo_list(); + count = gp_port_info_list_count( m_pPortInfoList ); + if( m_nFlags & FLAGS_QUIET) sprintf( tBuff, "%i", count ); + else sprintf( tBuff, "Devices found: %i", count ); + LOG( tBuff ); + /* Now list the ports */ + for( x = 0; x < count; x++ ){ + char *xname, *xpath; + result = gp_port_info_list_get_info( m_pPortInfoList, x, &info ); + if( result < 0 ) break; + gp_port_info_get_name( info, &xname); + gp_port_info_get_path( info, &xpath); + sprintf( tBuff, "%-32s %-32s", xpath, xname ); + LOG( tBuff ); + }; + return (result); +}; + +int gPhotoCamera::auto_detect_action(){ + int x, count; + CameraList *list; + const char *name = NULL, *value = NULL; + char tBuff[256]; + + _get_portinfo_list(); + count = gp_port_info_list_count( m_pPortInfoList ); + CR( gp_list_new( &list ) ); + gp_abilities_list_detect( gp_params_abilities_list(), m_pPortInfoList, list, m_pContext ); + CL( count = gp_list_count( list ), list ); + sprintf( tBuff, "%-30s %-16s", "Model", "Port" ); + LOG(tBuff); + LOG("----------------------------------------------------------"); + for (x = 0; x < count; x++) { + CL( gp_list_get_name( list, x, &name), list ); + CL( gp_list_get_value( list, x, &value), list ); + sprintf( tBuff, "%-30s %-16s", name, value ); + LOG(tBuff); + }; + gp_list_free (list); + return GP_OK; +}; + +int gPhotoCamera::action_camera_show_abilities(){ + CameraAbilities a; + int i; + int has_capture = 0; + char tBuff[256]; + + CR( gp_camera_get_abilities( m_pCamera, &a )); + sprintf( tBuff, "Abilities for camera : %s", a.model ); + LOG(tBuff); + sprintf( tBuff, "Serial port support : %s", (a.port & GP_PORT_SERIAL) ? _("yes"):_("no") ); + LOG(tBuff); + sprintf( tBuff, "USB support : %s", (a.port & GP_PORT_USB) ? _("yes"):_("no") ); + LOG(tBuff); + if( a.speed[0] != 0 ){ + LOG("Transfer speeds supported :" ); + for (i = 0; a.speed[i]; i++){ + sprintf( tBuff, " : %i", a.speed[i] ); + LOG(tBuff); + }; + }; + LOG( "Capture choices :" ); + if( a.operations & GP_OPERATION_CAPTURE_IMAGE ){ + LOG( " : Image" ); + has_capture = 1; + }; + if( a.operations & GP_OPERATION_CAPTURE_VIDEO ){ + LOG( " : Video" ); + has_capture = 1; + }; + if( a.operations & GP_OPERATION_CAPTURE_AUDIO ){ + LOG( " : Audio" ); + has_capture = 1; + }; + if( a.operations & GP_OPERATION_CAPTURE_PREVIEW ){ + LOG( " : Preview" ); + has_capture = 1; + }; + if (a.operations & GP_OPERATION_TRIGGER_CAPTURE) { + LOG( " : Trigger Capture" ); + has_capture = 1; + }; + if (has_capture == 0) { + LOG( " : Capture not supported by the driver" ); + }; + sprintf( tBuff, "Configuration support : %s", (a.operations & GP_OPERATION_CONFIG) ? _("yes"):_("no")); + LOG(tBuff); + sprintf( tBuff, "Delete selected files on camera : %s", (a.file_operations & GP_FILE_OPERATION_DELETE) ? _("yes"):_("no")); + LOG(tBuff); + sprintf( tBuff, "Delete all files on camera : %s", (a.folder_operations & GP_FOLDER_OPERATION_DELETE_ALL) ? _("yes"):_("no")); + LOG(tBuff); + sprintf( tBuff, "File preview (thumbnail) support : %s", (a.file_operations & GP_FILE_OPERATION_PREVIEW) ? _("yes"):_("no")); + LOG(tBuff); + sprintf( tBuff, "File upload support : %s", (a.folder_operations & GP_FOLDER_OPERATION_PUT_FILE) ? _("yes"):_("no")); + LOG(tBuff); + return (GP_OK); +} + +int gPhotoCamera::action_camera_set_port( const char *port ){ + int p, r; + GPPortInfo info; + char *path; + char tBuff[256]; + char verified_port[1024]; + + verified_port[sizeof (verified_port) - 1] = '\0'; + if( !strchr( port, ':' ) ){ + sprintf(tBuff, "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean.", port); + if( !strcmp( port, "usb" ) ){ + strncpy( verified_port, "usb:", sizeof (verified_port) - 1 ); + } else if( strncmp( port, "/dev/", 5) == 0 ){ + strncpy( verified_port, "serial:", sizeof (verified_port) - 1); + strncat( verified_port, port, sizeof (verified_port) - strlen (verified_port) - 1 ); + } else if( strncmp( port, "/proc/", 6) == 0 ){ + strncpy( verified_port, "usb:", sizeof (verified_port) - 1 ); + strncat( verified_port, port, sizeof (verified_port) - strlen (verified_port) - 1 ); + }; + sprintf( tBuff, "Guessed port name. Using port '%s' from now on.", verified_port ); + LOG(tBuff); + } else + strncpy ( verified_port, port, sizeof (verified_port) - 1); + + /* Create the list of ports and load it. */ + _get_portinfo_list(); + + /* Search our port in the list. */ + /* NOTE: This call can modify "il" for regexp matches! */ + p = gp_port_info_list_lookup_path( m_pPortInfoList, verified_port ); + switch( p ){ + case GP_ERROR_UNKNOWN_PORT: + sprintf( tBuff, "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:').", verified_port ); + LOG( tBuff ); + break; + default: + break; + }; + /* Get info about our port. */ + r = gp_port_info_list_get_info( m_pPortInfoList, p, &info ); + if( r < 0 )return (r); + + /* Set the port of our camera. */ + r = gp_camera_set_port_info( m_pCamera, info ); + if (r < 0) return (r); + gp_port_info_get_path( info, &path ); + //gp_setting_set( "gphoto2", "port", path ); + return (GP_OK); +}; + +int gPhotoCamera::action_camera_about(){ + CameraText text; + CR( gp_camera_get_about( m_pCamera, &text, m_pContext ) ); + LOG( "About the camera driver:" ); + LOG( text.text ); + return (GP_OK); +}; + +int gPhotoCamera::action_camera_summary(){ + CameraText text; + CR( gp_camera_get_summary( m_pCamera, &text, m_pContext ) ); + LOG( "Camera summary:" ); + LOG( text.text ); + return (GP_OK); +}; + +int gPhotoCamera::action_camera_manual(){ + CameraText text; + CR( gp_camera_get_manual( m_pCamera, &text, m_pContext ) ); + LOG( "Camera manual:" ); + LOG( text.text ); + return (GP_OK); +} + +int gPhotoCamera::action_camera_set_speed( unsigned int speed ){ + GPPortInfo info; + GPPortType type; + /* Make sure we've got a serial port. */ + CR( gp_camera_get_port_info( m_pCamera, &info ) ); + gp_port_info_get_type( info, &type ); + if( type != GP_PORT_SERIAL ){ + if( (m_nFlags & FLAGS_QUIET) == 0 ) LOG("You can only specify speeds for serial ports."); + return (GP_ERROR_BAD_PARAMETERS); + }; + /* Set the speed. */ + return gp_camera_set_port_speed( m_pCamera, speed ); +}; + +int gPhotoCamera::action_camera_set_model( const char *model ){ + CameraAbilities a; + int m; + CR( m = gp_abilities_list_lookup_model( gp_params_abilities_list(), model ) ); + CR( gp_abilities_list_get_abilities( gp_params_abilities_list(), m, &a ) ); + CR( gp_camera_set_abilities( m_pCamera, a ) ); + //gp_setting_set ("gphoto2", "model", a.model); + return (GP_OK); +}; + +int gPhotoCamera::set_folder_action( const char *folder ){ + sprintf( m_pCapFolder, folder ); + return GP_OK; +}; + +int gPhotoCamera::set_filename_action( const char *filename ){ + sprintf( m_pCapFile,filename ); + return GP_OK; +}; + +#define CHECK_NULL(x) { if (x == NULL) { return(-1); /* FIXME: what code? */ } } + + +enum moviemode { MOVIE_ENDLESS, MOVIE_FRAMES, MOVIE_SECONDS }; + +int gPhotoCamera::override_usbids_action( int usb_vendor, int usb_product, int usb_vendor_modified, int usb_product_modified ){ + CameraAbilitiesList *al = NULL; + int r, n, i; + CameraAbilities a; + + CR( gp_abilities_list_new(&al) ); + + /* The override_usbides_action() function is a notable + * exception to the rule that one is not supposed to use + * p->_abilities_list directly, because it has to and does so + * in a safe way. */ + n = gp_abilities_list_count( gp_params_abilities_list() ); + for( i = 0; i < n; i++ ){ + r = gp_abilities_list_get_abilities( gp_params_abilities_list(), i, &a ); + if( r < 0 ) continue; + if( (a.usb_vendor == usb_vendor) && (a.usb_product == usb_product) ){ + char tBuff[256]; + sprintf( tBuff, "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x", a.usb_vendor, a.usb_product, usb_vendor_modified, usb_product_modified ); + LOG(tBuff); + a.usb_vendor = usb_vendor_modified; + a.usb_product = usb_product_modified; + }; + gp_abilities_list_append( al, a ); + }; + gp_abilities_list_free( m_pAbilitiesList ); + m_pAbilitiesList = al; + return (GP_OK); +}; + +/* time zero for debug log time stamps */ +static struct timeval glob_tv_zero = { 0, 0 }; + +int gPhotoCamera::_find_widget_by_name( const char *name, CameraWidget **child, CameraWidget **rootconfig ){ + int ret; + *rootconfig = NULL; + ret = gp_camera_get_single_config( m_pCamera, name, child, m_pContext ); + if( ret == GP_OK ){ + *rootconfig = *child; + return GP_OK; + }; + ret = gp_camera_get_config( m_pCamera, rootconfig, m_pContext ); + if( ret != GP_OK ) return ret; + ret = gp_widget_get_child_by_name( *rootconfig, name, child ); + if( ret != GP_OK ) ret = gp_widget_get_child_by_label( *rootconfig, name, child ); + if (ret != GP_OK) { + char *part, *s, *newname; + newname = strdup( name ); + if( !newname ) return GP_ERROR_NO_MEMORY; + *child = *rootconfig; + part = newname; + while( part[0] == '/' ) part++; + while( 1 ){ + CameraWidget *tmp; + s = strchr( part, '/' ); + if( s ) *s='\0'; + ret = gp_widget_get_child_by_name( *child, part, &tmp ); + if( ret != GP_OK ) ret = gp_widget_get_child_by_label (*child, part, &tmp); + if( ret != GP_OK ) break; + *child = tmp; + if( !s ){ + /* end of path */ + free (newname); + return GP_OK; + }; + part = s+1; + while( part[0] == '/' ) part++; + }; + gp_context_error( m_pContext, _("%s not found in configuration tree."), newname ); + free (newname); + gp_widget_free( *rootconfig ); + return GP_ERROR; + }; + return GP_OK; +}; + +/* From the strftime(3) man page: + * BUGS + * Some buggy versions of gcc complain about the use of %c: warning: + * %c yields only last 2 digits of year in some locales. + * Of course programmers are encouraged to use %c, it gives the + * preferred date and time representation. One meets all kinds of + * strange obfuscations to circumvent this gcc problem. A relatively + * clean one is to add an intermediate function + */ + +size_t my_strftime(char *s, size_t max, const char *fmt, const struct tm *tm){ + return strftime(s, max, fmt, tm); +} + +int gPhotoCamera::get_config_action( const char *name ){ + CameraWidget *rootconfig,*child; + int ret; + ret = _find_widget_by_name ( name, &child, &rootconfig ); + if( ret != GP_OK) return ret; + //ret = print_widget (p, name, child); + gp_widget_free (rootconfig); + return ret; +}; + +int gPhotoCamera::set_config_action( const char *name, const char *value ){ + CameraWidget *rootconfig,*child; + int ret, ro; + CameraWidgetType type; + + ret = _find_widget_by_name ( name, &child, &rootconfig); + if( ret != GP_OK ) return ret; + ret = gp_widget_get_readonly( child, &ro ); + if( ret != GP_OK ){ + gp_widget_free (rootconfig); + return ret; + }; + if( ro == 1 ){ + gp_context_error( m_pContext, _("Property %s is read only."), name ); + gp_widget_free( rootconfig ); + return GP_ERROR; + }; + ret = gp_widget_get_type( child, &type ); + if( ret != GP_OK ){ + gp_widget_free( rootconfig ); + return ret; + }; + switch (type) { + case GP_WIDGET_TEXT: { /* char * */ + ret = gp_widget_set_value( child, value ); + if (ret != GP_OK) + gp_context_error( m_pContext, _("Failed to set the value of text widget %s to %s."), name, value ); + break; + } + case GP_WIDGET_RANGE: { /* float */ + float f,t,b,s; + + ret = gp_widget_get_range( child, &b, &t, &s ); + if (ret != GP_OK) + break; + if (!sscanf (value, "%f", &f)) { + gp_context_error( m_pContext, _("The passed value %s is not a floating point value."), value ); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if ((f < b) || (f > t)) { + gp_context_error( m_pContext, _("The passed value %f is not within the expected range %f - %f."), f, b, t ); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + ret = gp_widget_set_value( child, &f ); + if (ret != GP_OK) + gp_context_error( m_pContext, _("Failed to set the value of range widget %s to %f."), name, f ); + break; + } + case GP_WIDGET_TOGGLE: { /* int */ + int t; + + t = 2; + if( !strcasecmp( value, "off") || !strcasecmp (value, "no") || + !strcasecmp( value, "false") || !strcmp (value, "0") || + !strcasecmp( value, _("off")) || !strcasecmp (value, _("no")) || + !strcasecmp( value, _("false")) + ) + t = 0; + if( !strcasecmp( value, "on") || !strcasecmp (value, "yes") || + !strcasecmp( value, "true") || !strcmp (value, "1") || + !strcasecmp( value, _("on")) || !strcasecmp (value, _("yes")) || + !strcasecmp( value, _("true")) + ) + t = 1; + /*fprintf (stderr," value %s, t %d\n", value, t);*/ + if (t == 2) { + gp_context_error( m_pContext, _("The passed value %s is not a valid toggle value."), value ); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + ret = gp_widget_set_value( child, &t ); + if (ret != GP_OK) + gp_context_error( m_pContext, _("Failed to set values %s of toggle widget %s."), value, name ); + break; + } + case GP_WIDGET_DATE: { /* int */ + time_t t = -1; + struct tm xtm; + + memset(&xtm,0,sizeof(xtm)); + + /* We need to set UNIX time in seconds since Epoch */ + /* We get ... local time */ + + if (!strcasecmp (value, "now") || !strcasecmp (value, _("now"))) + t = time(NULL); +#ifdef HAVE_STRPTIME + else if( strptime( value, "%c", &xtm) || strptime (value, "%Ec", &xtm) ){ + xtm.tm_isdst = -1; + t = mktime (&xtm); + }; +#endif + if( t == -1 ){ + unsigned long lt; + if( !sscanf(value, "%ld", <) ){ + gp_context_error( m_pContext, _("The passed value %s is neither a valid time nor an integer."), value ); + ret = GP_ERROR_BAD_PARAMETERS; + break; + }; + t = lt; + }; + ret = gp_widget_set_value( child, &t ); + if( ret != GP_OK ) gp_context_error( m_pContext, _("Failed to set new time of date/time widget %s to %s."), name, value ); + break; + } + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + char *endptr; + char tBuff[256]; + cnt = gp_widget_count_choices( child ); + if( cnt < GP_OK ){ + ret = cnt; + break; + }; + ret = GP_ERROR_BAD_PARAMETERS; + for( i=0; ivalue_string ); + sprintf( tBuff, "%d", child->value_int ); + LOG( tBuff ); + sprintf( tBuff, "%0.3f", child->value_float ); + LOG( tBuff ); + break; + }; + }; + if( i != cnt ) break; + + /* make sure we parse just 1 integer, and there is nothing more. + * sscanf just does not provide this, we need strtol. + */ + i = strtol( value, &endptr, 10 ); + if( (value != endptr) && (*endptr == '\0') ){ + if( (i>= 0) && (i < cnt) ){ + const char *choice; + ret = gp_widget_get_choice( child, i, &choice ); + if( ret == GP_OK ) ret = gp_widget_set_value (child, choice); + LOG("Test Vals"); + LOG( child->value_string ); + sprintf( tBuff, "%d", child->value_int ); + LOG( tBuff ); + sprintf( tBuff, "%0.3f", child->value_float ); + LOG( tBuff ); + break; + }; + }; + /* Lets just try setting the value directly, in case we have flexible setters, + * like PTP shutterspeed. */ + ret = gp_widget_set_value( child, value ); + LOG("Test Vals"); + LOG( child->value_string ); + sprintf( tBuff, "%d", child->value_int ); + LOG( tBuff ); + sprintf( tBuff, "%0.3f", child->value_float ); + LOG( tBuff ); + if (ret == GP_OK) break; + gp_context_error( m_pContext, _("Choice %s not found within list of choices."), value ); + break; + }; + /* ignore: */ + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + case GP_WIDGET_BUTTON: + gp_context_error( m_pContext, _("The %s widget is not configurable."), name ); + ret = GP_ERROR_BAD_PARAMETERS; + break; + }; + if( ret == GP_OK ){ + if (child == rootconfig) ret = gp_camera_set_single_config( m_pCamera, name, child, m_pContext ); + else ret = gp_camera_set_config( m_pCamera, rootconfig, m_pContext ); + if( ret != GP_OK ) gp_context_error( m_pContext, _("Failed to set new configuration value %s for configuration entry %s."), value, name ); + }; + gp_widget_free( rootconfig ); + return (ret); +}; + +int gPhotoCamera::set_config_index_action( const char *name, const char *value ){ + CameraWidget *rootconfig,*child; + int ret; + const char *label; + CameraWidgetType type; + + ret = _find_widget_by_name( name, &child, &rootconfig ); + if( ret != GP_OK ) return ret; + ret = gp_widget_get_type( child, &type ); + if( ret != GP_OK ){ + gp_widget_free (rootconfig); + return ret; + }; + ret = gp_widget_get_label( child, &label ); + if( ret != GP_OK ){ + gp_widget_free (rootconfig); + return ret; + }; + switch( type ){ + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + + cnt = gp_widget_count_choices( child ); + if (cnt < GP_OK) { + ret = cnt; + break; + }; + ret = GP_ERROR_BAD_PARAMETERS; + if( sscanf (value, "%d", &i) ){ + if( (i>= 0) && (i < cnt) ){ + const char *choice; + ret = gp_widget_get_choice( child, i, &choice ); + if (ret == GP_OK) ret = gp_widget_set_value( child, choice ); + break; + }; + }; + gp_context_error( m_pContext, _("Choice %s not found within list of choices."), value ); + break; + } + + /* ignore: */ + case GP_WIDGET_TOGGLE: + case GP_WIDGET_TEXT: + case GP_WIDGET_RANGE: + case GP_WIDGET_DATE: + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + case GP_WIDGET_BUTTON: + gp_context_error( m_pContext, _("The %s widget has no indexed list of choices. Use --set-config-value instead."), name ); + ret = GP_ERROR_BAD_PARAMETERS; + break; + }; + if (ret == GP_OK) { + if( child == rootconfig ) ret = gp_camera_set_single_config( m_pCamera, name, child, m_pContext ); + else ret = gp_camera_set_config( m_pCamera, rootconfig, m_pContext ); + if (ret != GP_OK) gp_context_error ( m_pContext, _("Failed to set new configuration value %s for configuration entry %s."), value, name); + }; + gp_widget_free (rootconfig); + return (ret); +}; + + +int gPhotoCamera::set_config_value_action( const char *name, const char *value ){ + CameraWidget *rootconfig,*child; + int ret; + CameraWidgetType type; + + ret = _find_widget_by_name( name, &child, &rootconfig ); + if( ret != GP_OK ) return ret; + ret = gp_widget_get_type( child, &type ); + if( ret != GP_OK ){ + gp_widget_free (rootconfig); + return ret; + }; + switch (type) { + case GP_WIDGET_TEXT: { /* char * */ + ret = gp_widget_set_value( child, value ); + if( ret != GP_OK ) gp_context_error( m_pContext, _("Failed to set the value of text widget %s to %s."), name, value ); + break; + }; + case GP_WIDGET_RANGE: { /* float */ + float f,t,b,s; + ret = gp_widget_get_range( child, &b, &t, &s ); + if( ret != GP_OK ) break; + if( !sscanf( value, "%f", &f ) ){ + gp_context_error( m_pContext, _("The passed value %s is not a floating point value."), value ); + ret = GP_ERROR_BAD_PARAMETERS; + break; + }; + if( (f < b) || (f > t) ){ + gp_context_error( m_pContext, _("The passed value %f is not within the expected range %f - %f."), f, b, t ); + ret = GP_ERROR_BAD_PARAMETERS; + break; + }; + ret = gp_widget_set_value( child, &f ); + if( ret != GP_OK ) gp_context_error( m_pContext, _("Failed to set the value of range widget %s to %f."), name, f ); + break; + }; + case GP_WIDGET_TOGGLE: { /* int */ + int t; + t = 2; + if( !strcasecmp( value, "off") || !strcasecmp( value, "no") || + !strcasecmp( value, "false") || !strcmp( value, "0") || + !strcasecmp( value, _("off")) || !strcasecmp( value, _("no")) || + !strcasecmp( value, _("false")) + ) + t = 0; + if( !strcasecmp( value, "on") || !strcasecmp( value, "yes") || + !strcasecmp( value, "true") || !strcmp( value, "1") || + !strcasecmp( value, _("on")) || !strcasecmp( value, _("yes")) || + !strcasecmp( value, _("true")) + ) + t = 1; + /*fprintf (stderr," value %s, t %d\n", value, t);*/ + if( t == 2 ){ + gp_context_error( m_pContext, _("The passed value %s is not a valid toggle value."), value ); + ret = GP_ERROR_BAD_PARAMETERS; + break; + }; + ret = gp_widget_set_value( child, &t ); + if( ret != GP_OK ) gp_context_error( m_pContext, _("Failed to set values %s of toggle widget %s."), value, name ); + break; + } + case GP_WIDGET_DATE: { /* int */ + int t = -1; + struct tm xtm; + if( !strcasecmp( value, "now" ) || !strcasecmp( value, _("now"))) t = time(NULL); +#ifdef HAVE_STRPTIME + else if( strptime( value, "%c", &xtm ) || strptime( value, "%Ec", &xtm )) t = mktime (&xtm); +#endif + if( t == -1 ){ + if( !sscanf( value, "%d", &t) ){ + gp_context_error( m_pContext, _("The passed value %s is neither a valid time nor an integer."), value ); + ret = GP_ERROR_BAD_PARAMETERS; + break; + }; + }; + ret = gp_widget_set_value( child, &t ); + if( ret != GP_OK ) gp_context_error( m_pContext, _("Failed to set new time of date/time widget %s to %s."), name, value ); + break; + } + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + cnt = gp_widget_count_choices( child ); + if( cnt < GP_OK ){ + ret = cnt; + break; + }; + ret = GP_ERROR_BAD_PARAMETERS; + for( i=0; iabilities_list would have been. */ + if( m_pAbilitiesList == NULL ){ + gp_abilities_list_new( &m_pAbilitiesList ); + gp_abilities_list_load( m_pAbilitiesList, m_pContext); + }; + return m_pAbilitiesList; +}; + +/*! \brief Create local filename for CameraFile according to pattern in gp_params + * + * \param folder Name of the folder on the camera the CameraFile is stored in + * \param file CameraFile to find a local name for. + * \param path The pointer to the generated complete path name of the local filename. + * \return GPError code + * + * \warning This function reads the static variable gp_params. + */ +/* +int gPhotoCamera::get_path_for_file (const char *folder, const char *name, CameraFileType type, CameraFile *file, char **path){ + unsigned int i, l; + char *s = NULL, b[1024]; + time_t t = 0; + struct tm *tm; + int hour12; + static int filenr = 1; + + if( !path )return (GP_ERROR_BAD_PARAMETERS); + + *path = NULL; + if( file ){ + CR( gp_file_get_mtime( file, &t ) ); + if (!t) // use the current time as fallback if the camera did not return it. + t = time(NULL); + }; + tm = localtime (&t); + hour12 = tm->tm_hour % 12; + if (hour12 == 0) { + hour12 = 12; + }; + + // If the user didn't specify a filename, use the original name (and prefix). + + if( !gp_params.filename || !strcmp( gp_params.filename, "" ) ){ + if (file) { + return gp_file_get_name_by_type (file, name, type, path); + } else if ((type == GP_FILE_TYPE_NORMAL) && strchr(name,'.')) { + // return the original name + *path = strdup(name); + return (GP_OK); + } else + // Download required to get the path from CameraFile *file + return (GP_ERROR_BAD_PARAMETERS); + }; + + // The user did specify a filename. Use it. + b[sizeof (b) - 1] = '\0'; + for (i = 0; i < strlen (gp_params.filename); i++) { + if (gp_params.filename[i] == '%') { + char padding = '0'; // default padding character + int precision = 0; // default: no padding + i++; + // determine padding character + switch (gp_params.filename[i]) { + // case ' ': + // spaces are not supported everywhere, so we + // restrict ourselves to padding with zeros. + + case '0': + padding = gp_params.filename[i]; + precision = 1; // do padding + i++; + break; + } + // determine padding width + if (isdigit((int)gp_params.filename[i])) { + char *cp; + long int _prec; + _prec = strtol(&gp_params.filename[i], + &cp, 10); + if (_prec < 1) + precision = 1; + else if (_prec > 20) + precision = 20; + else + precision = _prec; + if (*cp != 'n') { + // make sure this is %n + gp_context_error (gp_params.context, + _("Zero padding numbers " + "in file names is only " + "possible with %%n.")); + return GP_ERROR_BAD_PARAMETERS; + } + // go to first non-digit character + i += (cp - &gp_params.filename[i]); + } else if (precision && ( gp_params.filename[i] != 'n')) { + gp_context_error (gp_params.context, + _("You cannot use %%n " + "zero padding " + "without a " + "precision value!" + )); + return GP_ERROR_BAD_PARAMETERS; + } + switch (gp_params.filename[i]) { + case 'n': + // Previously this used an folder index number. + // Now this uses a linear increasing number. + if (precision > 1) { + char padfmt[16]; + strcpy(padfmt, "%!.*i"); + padfmt[1] = padding; + snprintf (b, sizeof (b), padfmt, + precision, filenr); + } else { + snprintf (b, sizeof (b), "%i", + filenr); + } + filenr++; + break; + + case 'C': + // Get the suffix of the original name + s = strrchr (name, '.'); + if (!s) { + free (*path); + *path = NULL; + gp_context_error (gp_params.context, + _("The filename provided " + "by the camera ('%s') " + "does not contain a " + "suffix!"), name); + return (GP_ERROR_BAD_PARAMETERS); + } + strncpy (b, s + 1, sizeof (b) - 1); + break; + + case 'f': + // Get the file name without suffix + s = strrchr (name, '.'); + if (!s) + strncpy (b, name, sizeof (b) - 1); + else { + l = MIN ((unsigned long)(sizeof(b) - 1), + (unsigned long)(s - name)); + strncpy (b, name, l); + b[l] = '\0'; + } + break; + + case 'F': + // Get the folder name + { + const char *f = folder ? folder : ""; + if (f[0] == '/') f++; // Skip first '/' + if (!f[0]) f = "."; // replace empty folder name by '.' + + strncpy (b, f, sizeof (b) - 1 - strlen(b)); + b[sizeof(b) - 1] = '\0'; + } + break; + + case 'a': + case 'A': + case 'b': + case 'B': + case 'd': + case 'H': + case 'k': + case 'I': + case 'l': + case 'j': + case 'm': + case 'M': + case 'S': + case 'y': + case 'Y': + { + char fmt[3] = { '%', '\0', '\0' }; + if (!file) return (GP_ERROR_BAD_PARAMETERS); // mtime unknown + + fmt[1] = gp_params.filename[i]; // the letter of this 'case' + strftime(b, sizeof (b), fmt, tm); + break; + } + case '%': + strcpy (b, "%"); + break; + case ':': + strncpy_lower(b, name, sizeof(b)); + b[sizeof(b)-1] = '\0'; + break; + default: + free (*path); + *path = NULL; + gp_context_error (gp_params.context, + _("Invalid format '%s' (error at " + "position %i)."), gp_params.filename, + i + 1); + return (GP_ERROR_BAD_PARAMETERS); + } + } else { + b[0] = gp_params.filename[i]; + b[1] = '\0'; + } + + s = *path ? realloc (*path, strlen (*path) + strlen (b) + 1) : + malloc (strlen (b) + 1); + if (!s) { + free (*path); + *path = NULL; + return (GP_ERROR_NO_MEMORY); + } + if (*path) { + *path = s; + strcat (*path, b); + } else { + *path = s; + strcpy (*path, b); + } + } + + // If the file is a capture_preview, + // apply prefix over the calculated basename + if (type == GP_FILE_TYPE_PREVIEW) { + return gp_file_get_name_by_type (file, s, type, path); + } + + return (GP_OK); +}; + +int gPhotoCamera::save_camera_file_to_file ( const char *folder, const char *name, CameraFileType type, CameraFile *file, const char *curname ){ + char * path = NULL; + char s[1024]; + char c[1024]; + int res; + time_t mtime; + struct utimbuf u; + + CR (get_path_for_file (folder, name, type, file, &path)); + strncpy (s, path, sizeof (s) - 1); + s[sizeof (s) - 1] = '\0'; + free (path); + path = NULL; + + if( (gp_params.flags & FLAGS_SKIP_EXISTING) && gp_system_is_file(s) ){ +#ifdef DEBUG + char tBuff[128]; + sprintf( tBuff, "Skip existing file %s", s ); + LOG( tBuff ); +#endif + if( curname ) unlink( curname ); + return( GP_OK ); + }; + if( (gp_params.flags & FLAGS_QUIET) == 0 ){ + while((gp_params.flags & FLAGS_FORCE_OVERWRITE) == 0 && gp_system_is_file (s) ){ + do{ + putchar ('\007'); + printf (_("File %s exists. Overwrite? [y|n] "), s); + fflush (stdout); + if (NULL == fgets (c, sizeof (c) - 1, stdin)) return GP_ERROR; + } while ((c[0]!='y')&&(c[0]!='Y')&& (c[0]!='n')&&(c[0]!='N')); + if ((c[0]=='y') || (c[0]=='Y')) break; + + do { + printf (_("Specify new filename? [y|n] ")); + fflush (stdout); + if (NULL == fgets (c, sizeof (c) - 1, stdin)) return GP_ERROR; + } while ((c[0]!='y')&&(c[0]!='Y')&& (c[0]!='n')&&(c[0]!='N')); + + if (!((c[0]=='y') || (c[0]=='Y'))) { + if (curname) unlink (curname); + return (GP_OK); + }; + + printf (_("Enter new filename: ")); + fflush (stdout); + if (NULL == fgets (s, sizeof (s) - 1, stdin)) return GP_ERROR; + s[strlen (s) - 1] = 0; + }; + printf (_("Saving file as %s\n"), s); + fflush (stdout); + }; + path = s; + while( (path = strchr(path, gp_system_dir_delim)) ){ + *path = '\0'; + if(!gp_system_is_dir (s)) gp_system_mkdir (s); + *path++ = gp_system_dir_delim; + }; + if (curname) { + int x; + + unlink(s); + if (-1 == rename (curname, s)) { + // happens if the user specified a absolute path with --filename + // EPERM happens on windows, see https://github.com/gphoto/libgphoto2/issues/97 + if ((errno == EXDEV) || (errno == EPERM)) { + char buf[8192]; + int in_fd, out_fd; + + in_fd = open(curname, O_RDONLY); + if (in_fd < 0) LOG_ERROR("Can't open file for reading"); + + out_fd = open(s, O_CREAT | O_WRONLY, 0644); + if (out_fd < 0) LOG_ERROR("Can't open file for writing"); + + while (1) { + ssize_t result = read(in_fd, buf, sizeof(buf)); + if (!result) break; + if (-1 == write(out_fd, buf, result)) { + LOG_ERROR("write"); + break; + } + } + close(out_fd); + close(in_fd); + unlink(curname); + } else + perror("rename"); + } + x = umask(0022); // get umask + umask(x); // set it back to the old value + chmod(s,0666 & ~x); + } + res = gp_file_get_mtime (file, &mtime); + if ((res == GP_OK) && (mtime)) { + u.actime = mtime; + u.modtime = mtime; + utime (s, &u); + } + gp_params_run_hook(&gp_params, "download", s); + return (GP_OK); +} + +int gPhotoCamera::camera_file_exists( Camera *camera, GPContext *context, const char *folder, const char *filename, CameraFileType type ){ + CameraFileInfo info; + CR (gp_camera_file_get_info (camera, folder, filename, &info, + context)); + switch (type) { + case GP_FILE_TYPE_METADATA: + return TRUE; + case GP_FILE_TYPE_AUDIO: + return (info.audio.fields != 0); + case GP_FILE_TYPE_PREVIEW: + return (info.preview.fields != 0); + case GP_FILE_TYPE_RAW: + case GP_FILE_TYPE_NORMAL: + return (info.file.fields != 0); + default: + gp_context_error (context, "Unknown file type in camera_file_exists: %d", type); + return FALSE; + } +} + +static int x_read(void*priv,unsigned char *data, uint64_t *size) { + struct privstr *ps = priv; + int fd = ps->fd; + uint64_t curread = 0, xsize, res; + + gp_log (GP_LOG_DEBUG, "x_read", "(%p,%p,%u)", priv, data, (unsigned int)*size); + xsize = *size; + while (curread < xsize) { + res = read (fd, data+curread, xsize-curread); + if (res == -1) return GP_ERROR_IO_READ; + if (!res) break; + curread += res; + } + *size = curread; + return GP_OK; +} + +static int x_write(void*priv,unsigned char *data, uint64_t *size) { + struct privstr *ps = priv; + int fd = ps->fd; + uint64_t curwritten = 0, xsize, res; + + gp_log (GP_LOG_DEBUG, "x_write","(%p,%p,%u)", priv, data, (unsigned int)*size); + xsize = *size; + while (curwritten < xsize) { + res = write (fd, data+curwritten, xsize-curwritten); + if (res == -1) return GP_ERROR_IO_WRITE; + if (!res) break; + curwritten += res; + } + *size = curwritten; + return GP_OK; +} + +static CameraFileHandler xhandler = { x_size, x_read, x_write }; + +int gPhotoCamera::save_file_to_file( Camera *camera, GPContext *context, Flags flags, const char *folder, const char *filename, CameraFileType type ){ + int fd, res; + CameraFile * file; + char tmpname[20], * tmpfilename; + struct privstr * ps = NULL; + + if( ( flags & FLAGS_SKIP_EXISTING ) && !(flags & FLAGS_STDOUT) ){ + char *path = NULL; + // Check if the file is present before downloading it. + res = get_path_for_file (folder, filename, type, NULL, &path); + + if( res == (GP_OK) && gp_system_is_file( path ) ){ + // File name pattern do not require CameraFile and target file exists: Skip this file. + if( (gp_params.flags & FLAGS_QUIET) == 0 ){ + printf (_("Skip existing file %s\n"), path); + fflush (stdout); + }; + return (GP_OK); + }; + }; + if( flags & FLAGS_NEW ){ + CameraFileInfo info; + CR( gp_camera_file_get_info(camera, folder, filename, &info, context) ); + switch( type ){ + case GP_FILE_TYPE_PREVIEW: + if (info.preview.fields & GP_FILE_INFO_STATUS && info.preview.status == GP_FILE_STATUS_DOWNLOADED) return (GP_OK); + break; + case GP_FILE_TYPE_NORMAL: + case GP_FILE_TYPE_RAW: + case GP_FILE_TYPE_EXIF: + if (info.file.fields & GP_FILE_INFO_STATUS && info.file.status == GP_FILE_STATUS_DOWNLOADED) return (GP_OK); + break; + case GP_FILE_TYPE_AUDIO: + if (info.audio.fields & GP_FILE_INFO_STATUS && info.audio.status == GP_FILE_STATUS_DOWNLOADED) return (GP_OK); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + }; + }; + strcpy (tmpname, "tmpfileXXXXXX"); + fd = mkstemp(tmpname); + if (fd == -1) { + if (errno == EACCES) { + gp_context_error( context, _("Permission denied") ); + return GP_ERROR; + }; + CR( gp_file_new (&file) ); + tmpfilename = NULL; + } else { + if (time(NULL) & 1) { // to test both methods. + gp_log (GP_LOG_DEBUG, "save_file_to_file","using fd method"); + res = gp_file_new_from_fd (&file, fd); + if (res < GP_OK) { + close (fd); + unlink (tmpname); + return res; + } + } else { + gp_log (GP_LOG_DEBUG, "save_file_to_file","using handler method"); + ps = malloc (sizeof(*ps)); + if (!ps) return GP_ERROR_NO_MEMORY; + ps->fd = fd; + // just pass in the file pointer as private + res = gp_file_new_from_handler (&file, &xhandler, ps); + if (res < GP_OK) { + close (fd); + unlink (tmpname); + return res; + } + } + tmpfilename = tmpname; + } + res = gp_camera_file_get (camera, folder, filename, type, + file, context); + if( res < GP_OK ){ + free (ps); + gp_file_unref( file ); + if( tmpfilename ) unlink( tmpfilename ); + return res; + }; + + if (flags & FLAGS_STDOUT) { + const char *data; + unsigned long int size; + + CR (gp_file_get_data_and_size (file, &data, &size)); + + if (flags & FLAGS_STDOUT_SIZE) // this will be difficult in fd mode + printf ("%li\n", size); + if (1!=fwrite (data, size, 1, stdout)) + fprintf(stderr,"fwrite failed writing to stdout.\n"); + if (ps && ps->fd) close (ps->fd); + free (ps); + gp_file_unref (file); + unlink (tmpname); + return (GP_OK); + } + res = save_camera_file_to_file (folder, filename, type, file, tmpfilename); + if (ps && ps->fd) close (ps->fd); + free (ps); + gp_file_unref (file); + if ((res!=GP_OK) && tmpfilename) + unlink (tmpfilename); + return (res); +} +*/ + +bool gPhotoCamera::isDead(){ + return false; +}; + +#undef LOG +#undef LOG_ERROR diff --git a/lib/hardware/sensors/gphoto/gPhotoCamera.h b/lib/hardware/sensors/gphoto/gPhotoCamera.h new file mode 100644 index 00000000..5be466fc --- /dev/null +++ b/lib/hardware/sensors/gphoto/gPhotoCamera.h @@ -0,0 +1,287 @@ +#ifndef __GPHOTO_CAMERA_OBJECT_HEADER__ +#define __GPHOTO_CAMERA_OBJECT_HEADER__ + + +#include "../../../components/base/basicSettingsProvider.h" +#include "../../../components/base/basicThread.h" +#include "../../../components/base/basicMutex.h" +#include "../../../components/object/objectPathfinderBinaryLog.h" +#include "../../../pathfinder/pathfinderDBConnector.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +#define GPHOTO_TAG_MOUNT_POINT "MOUNT_POINT" +#define GPHOTO_TAG_MOUNT_POINT_UID "UID" +#define GPHOTO_TAG_MOUNT_POINT_GID "GID" + +typedef enum E_GP_COMMAND{ + GP_NO_CMD = 0, + GP_SINGLE_SHOT = 1, + GP_START_BURST = 2, + GP_START_BURST_STAGE2 = 3, + GP_STOP_BURST_STAGE1 = 4, + GP_STOP_BURST = 5, + GP_SET_CONFIG = 6, + GP_RETREAVE = 7, + GP_PREVIEW_SHOT = 8, + GP_START_PREVIEW = 9, + GP_STOP_PREVIEW = 10, + GP_DEL_PHOTOS = 11 +} GP_COMMAND; + +typedef enum E_GP_CAP_TARGET{ + GP_MEMORY = 0, + GP_SD_CARD = 1 +} GP_CAP_TARGET; + +typedef struct S_GP_CAM_COMMAND{ + GP_COMMAND cmd; + char prm[128]; + char var[128]; +} GP_CAM_COMMAND; + +typedef queue GP_COMMAND_QUEUE; + +typedef struct S_GP_CAP_INFO{ + char folder[128]; + char name[64]; + uint64_t ts; +} GP_CAP_INFO; + +typedef vector GP_CAP_VECTOR; + +typedef enum { + FLAGS_RECURSE = 1 << 0, + FLAGS_REVERSE = 1 << 1, + FLAGS_QUIET = 1 << 2, + FLAGS_FORCE_OVERWRITE = 1 << 3, + FLAGS_STDOUT = 1 << 4, + FLAGS_STDOUT_SIZE = 1 << 5, + FLAGS_NEW = 1 << 6, + FLAGS_RESET_CAPTURE_INTERVAL = 1 << 7, + FLAGS_KEEP = 1 << 8, + FLAGS_KEEP_RAW = 1 << 9, + FLAGS_SKIP_EXISTING = 1 << 10, +} Flags; + +typedef enum { + MULTI_UPLOAD, + MULTI_UPLOAD_META, + MULTI_DOWNLOAD, + MULTI_DELETE +} MultiType; +enum download_type { DT_NO_DOWNLOAD, DT_DOWNLOAD }; + +#define GP_WM_NA 0 +#define GP_WM_CTRL 1 +#define GP_WM_STOR 2 +#define GP_WM_PREV 3 +#define GP_WM_BURST 4 + + +class gPhotoCamera: public basicThread{ + private: + basicLogCollection * m_pLog; + config_setting_t * m_pSettings; + PATHFINDER_DBC * m_pDBC; + + objectPathfinderBinaryLog * m_pBLOG; + + uint32_t m_nAccessUID; + uint32_t m_nAccessGID; + char m_pCamMountPoint[256]; + basicMutex m_mCommandLock; + basicMutex m_mDataLock; + GP_COMMAND_QUEUE m_qCommands; + GP_CAP_INFO m_vCaptures; + uint8_t m_bOldWMode; + uint8_t m_bWMode; + int m_nCameraID; + CameraAbilities m_sCamAttribs; + CameraAbilitiesList * m_pAbilitiesList; + GPPortInfoList * m_pPortInfoList; + GPPortInfo m_pPortInfo; // pStruct + GPPortType m_ePortType; //Enum + Camera * m_pCamera; + CameraFile * m_pCamFile; + GPContext * m_pContext; + uint32_t m_nFlags; + char m_pCapFolder[128]; + uint32_t m_nFolderID; + char m_pCapFile[64]; + + bool m_bBurstCapturing; + bool m_pChannelIsBusy; + + int get_config_value_string ( Camera *camera, const char *key, char **str, GPContext *context ); + int _lookup_widget( CameraWidget*widget, const char *key, CameraWidget **child ); + bool fetchFile( uint32_t pictureID ); + /*GPPhoto2 functions*/ + int delete_all_action( char *folder ); + int action_camera_upload_file( char *folder, char *path ); + int action_camera_upload_metadata( char *folder, char *path ); + int num_files_action(); + int list_folders_action(); + int list_files_action(); + int print_info_action( char *folder, char *filename ); + int print_file_action( char *folder, char *filename ); + int save_file_action( char *folder, char *filename ); + int save_exif_action( char *folder, char *filename ); + int save_meta_action( char *folder, char *filename ); + int save_thumbnail_action( char *folder, char *filename ); + int save_raw_action( char *folder, char *filename ); + int save_audio_action( char *folder, char *filename ); + int save_all_audio_action( char *folder, char *filename ); + int delete_file_action( char *folder, char *filename ); + int print_exif_action( char *folder, char *filename ); + int list_cameras_action(); + void _get_portinfo_list(); + int list_ports_action(); + int auto_detect_action(); + int action_camera_show_abilities(); + int action_camera_set_port( const char *port ); + int action_camera_about(); + int action_camera_summary(); + int action_camera_manual(); + int action_camera_set_speed( unsigned int speed ); + int action_camera_set_model( const char *model ); + int set_folder_action( const char *folder ); + int set_filename_action( const char *filename ); + int print_version_action(); + int _action_camera_capture_preview( int viewasciiart ); + int action_camera_capture_preview(); + int action_camera_show_preview(); + int action_camera_capture_movie( const char *arg ); + int action_camera_wait_event ( enum download_type downloadtype, const char*arg ); + int print_storage_info(); + int override_usbids_action( int usb_vendor, int usb_product, int usb_vendor_modified, int usb_product_modified ); + void display_widgets( CameraWidget *widget, char *prefix, int dumpval ); + int list_all_config_action(); + int list_config_action(); + int _find_widget_by_name( const char *name, CameraWidget **child, CameraWidget **rootconfig ); + size_t my_strftime(char *s, size_t max, const char *fmt, const struct tm *tm); + int print_widget( const char *name, CameraWidget *widget ); + int get_config_action( const char *name ); + int set_config_action( const char *name, const char *value ); + int set_config_index_action( const char *name, const char *value ); + int set_config_value_action( const char *name, const char *value ); + CameraAbilitiesList * gp_params_abilities_list(); + + //int save_file_to_file( Camera *camera, GPContext *context, uint32_t flags, char *folder, char *filename, CameraFileType type ); + //int camera_file_exists( Camera *camera, GPContext *context, char *folder, char *filename, CameraFileType type ); + + //void ñli_error_print(char *format, ...); + //int get_path_for_file( const char *folder, const char *name, CameraFileType type, CameraFile *file, char **path); + //int camera_file_exists( Camera *camera, GPContext *context, const char *folder, const char *filename, CameraFileType type ); + //int save_file_to_file( Camera *camera, GPContext *context, Flags flags, const char *folder, const char *filename, CameraFileType type); + //int save_camera_file_to_file( const char *folder, const char *fn, CameraFileType type, CameraFile *file, const char *tmpname); + int capture_generic( CameraCaptureType type, const char *name, int download); + void updateFileTree( int fsid, int parent, CSTR folder ); + bool setWM( uint8_t NMode ); + bool cancelWM( uint8_t NMode ); + protected: + virtual void m_fThreadProc( void ); + public: + explicit gPhotoCamera( config_setting_t *Settings ); + explicit gPhotoCamera( PATHFINDER_DBC *DBC ); + explicit gPhotoCamera( config_setting_t *Settings = NULL, PATHFINDER_DBC *DBC = NULL ); + virtual ~gPhotoCamera(); + bool makeShot(); + bool makePreview(); + bool validate(); + bool create(); + bool startBurst(); + bool stopBurst(); + bool startPreview(); + bool stopPreview(); + bool setCaptureTarget( GP_CAP_TARGET T ); + bool retreavePicture( CSTR name ); + bool switchToStorage(); + bool switchToCamera(); + bool deleteAllPictures(); + bool isDead(); +/* + +/main/actions/syncdatetimeutc +/main/actions/syncdatetime +/main/actions/uilock +/main/actions/autofocusdrive +/main/actions/manualfocusdrive +/main/actions/cancelautofocus +/main/actions/eoszoom +/main/actions/eoszoomposition +/main/actions/viewfinder +/main/actions/eosremoterelease +/main/actions/opcode + + +/main/settings/datetimeutc +/main/settings/datetime +/main/settings/reviewtime +/main/settings/output +/main/settings/movierecordtarget +/main/settings/evfmode +/main/settings/ownername +/main/settings/artist +/main/settings/copyright +/main/settings/customfuncex +/main/settings/focusinfo +/main/settings/autopoweroff +/main/settings/depthoffield +/main/settings/capturetarget +/main/settings/capture + +/main/status/serialnumber +/main/status/manufacturer +/main/status/cameramodel +/main/status/deviceversion +/main/status/vendorextension +/main/status/model +/main/status/ptpversion +/main/status/Battery Level +/main/status/batterylevel +/main/status/lensname +/main/status/eosserialnumber +/main/status/shuttercounter +/main/status/availableshots + +/main/imgsettings/imageformat +/main/imgsettings/imageformatsd +/main/imgsettings/iso +/main/imgsettings/whitebalance +/main/imgsettings/whitebalanceadjusta +/main/imgsettings/whitebalanceadjustb +/main/imgsettings/whitebalancexa +/main/imgsettings/whitebalancexb +/main/imgsettings/colorspace + + +/main/capturesettings/exposurecompensation +/main/capturesettings/focusmode +/main/capturesettings/aspectratio +/main/capturesettings/storageid +/main/capturesettings/autoexposuremode +/main/capturesettings/drivemode +/main/capturesettings/picturestyle +/main/capturesettings/aperture +/main/capturesettings/shutterspeed +/main/capturesettings/meteringmode +/main/capturesettings/bracketmode +/main/capturesettings/aeb + + +*/ + + +}; + +#endif diff --git a/lib/hardware/sensors/gphoto/globals.h b/lib/hardware/sensors/gphoto/globals.h new file mode 100644 index 00000000..6cace168 --- /dev/null +++ b/lib/hardware/sensors/gphoto/globals.h @@ -0,0 +1,19 @@ +#ifndef __GLOBALS_H__ +#define __GLOBALS_H__ + +extern char glob_cancel; + +extern char *glob_folder; + +extern char glob_cwd[]; +extern int glob_option_count; + +#endif + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gp-params.c b/lib/hardware/sensors/gphoto/gp-params.c new file mode 100644 index 00000000..36cf68f9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gp-params.c @@ -0,0 +1,545 @@ +/* gp-params.c + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "gp-params.h" +#include "i18n.h" + +/* This needs to disappear. */ +#include "globals.h" + +#include +#include +#include +#include + +#ifndef HAVE_SPAWNVE +#include "spawnve.h" +#endif + +#ifndef MAX +#define MAX(x, y) (((x)>(y))?(x):(y)) +#endif +#ifndef MIN +#define MIN(x, y) (((x)<(y))?(x):(y)) +#endif + + +#ifdef __GNUC__ +#define __unused__ __attribute__((unused)) +#else +#define __unused__ +#endif + + +static void +ctx_status_func (GPContext __unused__ *context, const char *str, + void *data) +{ + GPParams *params = data; + + if (params->flags & FLAGS_QUIET) + return; + fprintf (stderr, "%s\n", str); + fflush (stderr); +} + +static void +ctx_error_func (GPContext __unused__ *context, const char *str, void __unused__ *data) +{ + fprintf (stderr, "\n"); + fprintf (stderr, _("*** Error *** \n")); + fprintf (stderr, "%s\n", str); + fflush (stderr); +} + +#define MAX_PROGRESS_STATES 16 +#define MAX_MSG_LEN 1024 + +static struct { + char message[MAX_MSG_LEN + 1]; + float target; + unsigned long int count; + struct { + float current; + time_t time, left; + } last; +} progress_states[MAX_PROGRESS_STATES]; + +static unsigned int +ctx_progress_start_func (GPContext __unused__ *context, float target, + const char *str, void *data) +{ + GPParams *p = data; + unsigned int id, len; + static unsigned char initialized = 0; + + if (!initialized) { + memset (progress_states, 0, sizeof (progress_states)); + initialized = 1; + } + + if (p->flags & FLAGS_QUIET) + return 0; + + /* + * If the message is too long, we will shorten it. If we have less + * than 4 cols available, we won't display any message. + */ + len = (p->cols * 0.5 < 4) ? 0 : MIN (p->cols * 0.5, MAX_MSG_LEN); + + /* Remember message and target. */ + for (id = 0; id < MAX_PROGRESS_STATES; id++) + if (!progress_states[id].target) + break; + if (id == MAX_PROGRESS_STATES) + id--; + progress_states[id].target = target; + strncpy (progress_states[id].message, str, len + 1); + progress_states[id].count = 0; + progress_states[id].last.time = time (NULL); + progress_states[id].last.current = progress_states[id].last.left = 0.; + + /* If message is too long, shorten it. */ + if (progress_states[id].message[len - 1]) { + progress_states[id].message[len - 1] = '\0'; + progress_states[id].message[len - 2] = '.'; + progress_states[id].message[len - 3] = '.'; + progress_states[id].message[len - 4] = '.'; + } + + return (id); +} + +static void +ctx_progress_update_func (GPContext __unused__ *context, unsigned int id, + float current, void *data) +{ + GPParams *p = data; + static const char spinner[] = "\\|/-"; + unsigned int i, width, pos; + float rate; + char remaining[10], buf[10]; + time_t sec = 0; + + /* Guard against buggy camera drivers */ + if (id >= MAX_PROGRESS_STATES || ((int)id) < 0) + return; + + if (p->flags & FLAGS_QUIET) + return; + + /* How much time until completion? */ + if ((time (NULL) - progress_states[id].last.time > 0) && + (current - progress_states[id].last.current > 0)) { + rate = (time (NULL) - progress_states[id].last.time) / + (current - progress_states[id].last.current); + sec = (MAX (0, progress_states[id].target - current)) * rate; + if (progress_states[id].last.left) { + sec += progress_states[id].last.left; + sec /= 2.; + } + progress_states[id].last.time = time (NULL); + progress_states[id].last.current = current; + progress_states[id].last.left = sec; + } else + sec = progress_states[id].last.left; + memset (remaining, 0, sizeof (remaining)); + if ((int) sec >= 3600) { + snprintf (buf, sizeof (buf), "%2ih", (int) sec / 3600); + sec -= ((int) (sec / 3600) * 3600); + strncat (remaining, buf, sizeof (remaining) - strlen (remaining) - 1); + } + if ((int) sec >= 60) { + snprintf (buf, sizeof (buf), "%2im", (int) sec / 60); + sec -= ((int) (sec / 60) * 60); + strncat (remaining, buf, sizeof (remaining) - strlen (remaining) - 1); + } + if ((int) sec) { + snprintf (buf, sizeof (buf), "%2is", (int) sec); + strncat (remaining, buf, sizeof (remaining) - strlen (remaining) - 1); + } + + /* Determine the width of the progress bar and the current position */ + width = MAX (0, (int) (p->cols - + strlen (progress_states[id].message) - 20)); + pos = MIN (width, (MIN (current / progress_states[id].target, 100.) * width) + 0.5); + + /* Print the progress bar */ + printf ("%s |", progress_states[id].message); + for (i = 0; i < width; i++) + putchar ((i < pos) ? '-' : ' '); + if (pos == width) + putchar ('|'); + else + putchar (spinner[progress_states[id].count & 0x03]); + progress_states[id].count++; + + printf (" %5.1f%% %9.9s\r", + current / progress_states[id].target * 100., remaining); + fflush (stdout); +} + +static void +ctx_progress_stop_func (GPContext __unused__ *context, unsigned int id, + void *data) +{ + GPParams *p = data; + unsigned int i; + + /* Guard against buggy camera drivers */ + if (id >= MAX_PROGRESS_STATES || ((int)id) < 0) + return; + + if (p->flags & FLAGS_QUIET) + return; + + /* Clear the progress bar. */ + for (i = 0; i < p->cols; i++) + putchar (' '); + putchar ('\r'); + fflush (stdout); + + progress_states[id].target = 0.; +} + +static GPContextFeedback +ctx_cancel_func (GPContext __unused__ *context, void __unused__ *data) +{ + if (glob_cancel) { + glob_cancel = 0; + return (GP_CONTEXT_FEEDBACK_CANCEL); + } else + return (GP_CONTEXT_FEEDBACK_OK); +} + +static void +ctx_message_func (GPContext __unused__ *context, const char *str, + void __unused__ *data) +{ + printf ("%s\n", str); + + /* Only ask for confirmation if the user can give it. */ + if (isatty (STDOUT_FILENO) && isatty (STDIN_FILENO)) { + printf (_("Press any key to continue.\n")); + fflush (stdout); + fgetc (stdin); + } else + fflush (stdout); +} + + +/** gp_params_init + * @param envp: The third char ** parameter of the main() function + */ + +void +gp_params_init (GPParams *p, char **envp) +{ + if (!p) + return; + + memset (p, 0, sizeof (GPParams)); + + p->folder = strdup ("/"); + if (!p->folder) { + fprintf (stderr, _("Not enough memory.")); + fputc ('\n', stderr); + exit (1); + } + + gp_camera_new (&p->camera); + + p->cols = 79; + p->flags = FLAGS_RECURSE; + + /* Create a context. Report progress only if users will see it. */ + p->context = gp_context_new (); + gp_context_set_cancel_func (p->context, ctx_cancel_func, p); + gp_context_set_error_func (p->context, ctx_error_func, p); + gp_context_set_status_func (p->context, ctx_status_func, p); + gp_context_set_message_func (p->context, ctx_message_func, p); + if (isatty (STDOUT_FILENO)) + gp_context_set_progress_funcs (p->context, + ctx_progress_start_func, ctx_progress_update_func, + ctx_progress_stop_func, p); + + p->_abilities_list = NULL; + + p->debug_func_id = -1; + + p->envp = envp; +} + + +CameraAbilitiesList * +gp_params_abilities_list (GPParams *p) +{ + /* If p == NULL, the behaviour of this function is as undefined as + * the expression p->abilities_list would have been. */ + if (p->_abilities_list == NULL) { + gp_abilities_list_new (&p->_abilities_list); + gp_abilities_list_load (p->_abilities_list, p->context); + } + return p->_abilities_list; +} + + +void +gp_params_exit (GPParams *p) +{ + if (!p) + return; + + if (p->_abilities_list) + gp_abilities_list_free (p->_abilities_list); + if (p->camera) + gp_camera_unref (p->camera); + if (p->folder) + free (p->folder); + if (p->filename) + free (p->filename); + if (p->context) + gp_context_unref (p->context); + if (p->hook_script) + free (p->hook_script); + if (p->portinfo_list) + gp_port_info_list_free (p->portinfo_list); + memset (p, 0, sizeof (GPParams)); +} + + +/* If CALL_VIA_SYSTEM is defined, use insecure system(3) instead of execve(2) */ +/* #define CALL_VIA_SYSTEM */ + +static int +internal_run_hook(const char *const hook_script, + const char *const action, const char *const argument, + char **envp); + + +int +gp_params_run_hook (GPParams *params, const char *action, const char *argument) +{ + /* printf("gp_params_run_hook(params, \"%s\", \"%s\")\n", + action, argument); + */ + if (params->hook_script == NULL) { + return 0; + } + return internal_run_hook(params->hook_script, + action, argument, + params->envp); +} + + +#ifdef CALL_VIA_SYSTEM +static void +internal_putenv(const char *const varname, const char *const value) +{ + if (NULL != varname) { + if (NULL != value) { + const size_t varname_size = strlen(varname); + const size_t value_size = strlen(value); + /* '=' and '\0' */ + const size_t buffer_size = varname_size + value_size + 2; + char buffer[buffer_size]; + strcpy(buffer, varname); + strcat(buffer, "="); + strcat(buffer, value); + printf("putenv(\"%s\")\n", buffer); + if (0 != putenv(buffer)) { + printf("putenv error\n"); + } + } else { + /* clear variable */ + if (unsetenv(varname)) { + int my_errno = errno; + fprintf(stderr, "unsetenv(\"%s\"): %s", + varname, strerror(my_errno)); + } + } + } + printf("%% %s=%s\n", varname, getenv(varname)); +} +#endif + + +#ifndef CALL_VIA_SYSTEM + +#define ASSERT(cond) \ + do { \ + if (!(cond)) { \ + fprintf(stderr, "%s:%d: Assertion failed: %s\n", \ + __FILE__, __LINE__, #cond); \ + exit(13); \ + } \ + } while(0) + + +static char * +alloc_envar(const char *varname, const char *value) +{ + const size_t varname_size = strlen(varname); + const size_t value_size = strlen(value); + const size_t buf_size = varname_size + 1 + value_size + 1; + char *result_buf = malloc(buf_size); + + if (!result_buf) return NULL; + strcpy(result_buf, varname); + strcat(result_buf, "="); + strcat(result_buf, value); + return result_buf; +} +#endif + + +static int +internal_run_hook(const char *const hook_script, + const char *const action, const char *const argument, + char **envp) +{ +#ifdef CALL_VIA_SYSTEM + int retcode; + + /* run hook using system(3) */ + internal_putenv("ACTION", action); + internal_putenv("ARGUMENT", argument); + + retcode = system(hook_script); + if (retcode != 0) { + fprintf(stderr, "Hook script returned error code %d (0x%x)\n", + retcode, retcode); + return 1; + } + return 0; +#else + /* spawnve() based implementation of internal_run_hook() + * + * Most of the code here creates and destructs the + * char *child_argv[] and char *child_envp[] to be passed to + * spawnve() and thus execve(). + * + * Error handling is simple: + * * If malloc() or calloc() fail, abort the whole program. + */ + + /* A note on program memory layout: + * + * child_argv and child_envp MUST be in writable memory, so we + * malloc() them. + */ + + char *my_hook_script = strdup(hook_script); + unsigned int i; + + /* run hook using execve(2) */ + char **child_argv = calloc(2, sizeof(child_argv[0])); + + /* envars not to copy */ + const char *const varlist[] = { + "ACTION", "ARGUMENT", NULL + }; + + /* environment variables for child process, and index going through them */ + char **child_envp; + unsigned int envi = 0; + + int retcode; + + /* count number of environment variables currently set */ + unsigned int envar_count; + for (envar_count=0; envp[envar_count] != NULL; envar_count++) { + /* printf("%3d: \"%s\"\n", envar_count, envp[envar_count]); */ + } + + ASSERT(my_hook_script != NULL); + child_argv[0] = my_hook_script; + + /* Initialize environment. Start with newly defined vars, then copy + * all the existing ones. calloc() does the initialization with NULL. + * Total amount of char* is + * number of existing envars (envar_count) + * + max number of new envars (2) + * + NULL list terminator (1) + */ + child_envp = calloc(envar_count+((sizeof(varlist)/sizeof(varlist[0]))-1)+1, + sizeof(child_envp[0])); + ASSERT(child_envp != NULL); + + /* own envars */ + if (NULL != action) { + char *envar = alloc_envar("ACTION", action); + ASSERT(envar != NULL); + child_envp[envi++] = envar; + } + if (NULL != argument) { + char *envar = alloc_envar("ARGUMENT", argument); + ASSERT(envar != NULL); + child_envp[envi++] = envar; + } + + /* copy envars except for those in varlist */ + for (i=0; i + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/ChangeLog b/lib/hardware/sensors/gphoto/gphoto2-master/ChangeLog new file mode 100644 index 00000000..d4c38f83 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/ChangeLog @@ -0,0 +1,484 @@ +2011-08-19 Marcus Meissner + + * Added "--keep" and "--no-keep" options for capture tethered + and capture image. + + * --wait-event and --capture-tethered can now do: + * nr of events (200) + * seconds (100s) + * milliseconds (200ms) (1/1000 of a second) + * frames (50f) (number of images) + + * New --list-all-config gives the full config tree. + +2009-09-30 Jonathan McIlnay-Moe + + * main.c: Added a "bulb" option for capture. + + --capture-image-and-download -B 5 ... + --capture-image-and-download --bulb 5 ... + + It requires a camera with "bulb" support (currently + newer EOS cameras only). + +2009-07-23 Marcus Meissner + + * shell.c,action.c,main.c: + --capture-tethered ported to be just --wait-event + downloading + + New --wait-event-and-download commandline option. + + --capture-tethered and --wait-event-and-download take optional + counts or seconds, default is infinite waiting. + + Added 3 new shell commands: + wait-event=x (just like wait-event cmdline option, default 1) + capture-tethered=x (just like capture-tethered cmdline option, default 1) + wait-event-and-download=x (just like wait-event-and-download cmdline option, default 1) + +2009-06-21 Marcus Meissner + + * main.c,action.c,shell.c: + Added seperate --set-config-index and --set-config-value functions + for menu choice settings. + + * main.c: Save files with current umask, not 0600. + +2009-04-10 Marcus Meissner + + * main.c: --wait-event=x now can wait for "x" events, + or 1 second timeouts. (so longest wait time will be "x" seconds). + * main.c: --trigger-capture to trigger the camera capture + * main.c: --capture-image, --capture-image-and-download: + added a second implementation using "trigger capture" and "wait event". + + * actions.c: ctrl-c can abort tethered capture now + * main.c: --capture made more quiet on --quiet + +2008-12-04 T E Dixon + + * main.c: Allow graceful exiting interval capture with SIGUSR2. + +2008-08-28 Marcus Meissner + + * gphoto2/main.c: Allow to specify a camera by port. + + For instance: + gphoto2 --port usb:005,003 --capture-image + + +2008-05-24 Marcus Meissner + + * gphoto2/{main.c,main.h,shell.c}: + + --capture-image split into: + + --capture-image: just capture the image + --capture-image-and-download: + capture the image and download it. + +2007-10-28 Dan Fandrich + Marcus Meissner + * tests/**: Start of a testsuite from Dan. + + Integrated into automake framework and fixed + bugs shown by "make distcheck" + +2007-07-21 Marcus Meissner + + * implemented --capture-tethered + +2007-01-19 Marcus Meissner + + From Victor Wagner + * gphoto2/main.c: read hook script and + filename from settings file. + +2006-11-25 Hubert Figuiere + + * configure.ac: version post 2.3.0 because 2.3.0 has + been branched. + +2006-03-23 Marcus Meissner + + * gphoto2/{main,action}.{ch}: Added + "--wait-event" functionality to exercise/test new + gp_camera_wait_for_event() functionality. + +2006-03-18 Marcus Meissner + + * gphoto2/main.c: Allow wildcard gphoto2 -u * + upload, download and deletion, by handling the + rest of the arguments after popt option handling. + + * gphoto2/shell.c: Added "put" shell cmd. + Added "list-config", "set-config", "get-config" shell + cmds. Added "capture-image" shell cmd. + +2006-03-11 Hubert Figuiere + + * doc/gphoto2.1: Fix a typo in the man page. Patch + by + +2006-02-17 Marcus Meissner + + * gphoto2/actions.c: Fixed --port handling + when supplying regexp matched devices, by + keeping the GPPortInfoList* over the gphoto2 + runtime. + +2006-01-27 Theodore Kilgore + + * gphoto2/actions.c: added an entry for "Delete all" to + action_camera_show_abilities. + +2006-01-01 Hubert Figuiere + + * configure.ac: version 2.1.99 + +2005-12-30 Hubert Figuiere + + * configure.ac: require libgphoto2 2.1.99 + +2005-05-13 Marcus Meissner + + * po/eu.po: baskish translation from dooteo + +2005-04-14 Hans Ulrich Niedermann + + * */configure.in, */Makefile.am, ...: updated build system. + See "./autogen.sh --help" and ./configure --help" for help. + * m4/, m4m/: use common m4 macro dir "m4m" now ("cvs co m4m") + +2005-04-13 Colin Marquardt + + * configure.in (ALL_LINGUAS): Added rw. + * po/rw.po: New file courtesy Steve Murphy. + * po/nl.po, po/sk.po, po/sr.po, po/cs.po: Update. + +2005-01-17 Colin Marquardt + + * po/ja.po: Update thanks to Takeshi AIHANA. + +2004-01-08 Marcus Meissner + + * gphoto2/*.[ch]: + Merged patch from Hervé Eychenne : + - new flag handling, obsoleting some global ints + - --new handling, check for downloaded images. + - some fprintf(stdout -> printf( cleanups. + +2004-01-08 Marcus Meissner + + * gphoto2/action.c, gphoto2/main.c: + - Implemented --set-config = option. + +2004-01-05 Marcus Meissner + + * gphoto2/main.c: Change the filename handling to use + strftime() directly. This is sourceforge patch [ 1031367 ], + by Lauri Nurmi + +2004-01-05 Marcus Meissner + + * po/ru.po: Checked in update of ru.po from Vyacheslav Dikonov + +2004-12-21 Colin Marquardt + + * po/ru.po: Update thanks to Vitaly Lipatov and Dmitry Kostrov. + +2004-12-15 Hubert Figuiere + + * configure.in: version 2.1.5 + +2004-11-26 Hubert Figuiere + + * configure.in: version 2.1.5rc1 + +2004-09-11 Marcus Meissner + + * gphoto2/actions.[ch],main.c: Added + + --list-config - dump the configuration tree of the camera + --get-config var - get the configuration entry + +2004-07-26 Colin Marquardt + + * configure.in (ALL_LINGUAS): Added nl + * nl.po: New Dutch translation, courtesy Julie Vermeersch. + +2004-07-09 Colin Marquardt + + * configure.in (ALL_LINGUAS): Added fi + * fi.po: New Finnish translation, courtesy Matti Pöllä. + +2004-06-10 Hubert Figuiere + + * configure.in (ALL_LINGUAS): Added hu + +2004-06-04 Lutz Mueller + + * configure.in + * exif/actions.c: Make gphoto2 compile with libexif-0.6.9. + +2004-04-20 Colin Marquardt + + * po/uk.po: Update. + * po/en_GB.po: New English (British) translation, courtesy Gareth Owen. + * configure.in: Add en_GB to ALL_LINGUAS. + +2004-04-20 Marcus Meissner + + Patch by Darryl Sokoloski + + * gphoto2/main.c: Added + --frames=count + --interval=seconds + capture sub options. + + Cleaned up, corrected translations. + + * gphoto2/main.h: Increased option description length. + +2004-03-23 Lutz Mueller + + Patch by Michael Haardt : + + * gphoto2/gphoto2-cmd-config.c: Allow ranges like 1.5 ... 5.5 with + increments of 1. + +2004-03-22 Colin Marquardt + + * po/az.po: New Azerbaijani translation, courtesy Metin Amiroff. + * po/sr.po: New Serbian translation, courtesy Aleksandar Jelenak. + * configure.in: Add az and sr to ALL_LINGUAS. + +2004-02-17 Christophe Barbe + + * gphoto2/shell.c: Fixed shell_command_generator function + that was enough to only segfault on alpha. + +2004-01-04 Christophe Barbe + + Patch by Terran Melconian : + + * doc/gphoto2.1: The --camera option is silently ignored without the + --port option. + +2003-12-11 Lutz Mueller + + Patch by Andreas Burmester : + + * gphoto2/gp-params.c: Only use 79 columns so that the screen doesn't + get messed up on terminals with 80 columns and line wrap. + +2003-12-09 Hubert Figuiere + + * configure.in: required version is 2.1.2 because of gp_library_version + +2003-10-27 Lutz Mueller + + * gphoto2/main.c: Make mkdir and rmdir do what they are supposed to + do. Reported by Marek Kassur . + +2003-10-14 Colin Marquardt + + * po/ro.po: New romanian translation courtesy Laurentiu Buzdugan. + * configure.in: Add ro to ALL_LINGUAS. + +2003-09-09 Colin Marquardt + + * po/cs.po: New slovak translation courtesy Andrej Kacian. + * configure.in: Add sk to ALL_LINGUAS. + +2003-09-01 Hubert Figuiere + + * gphoto2/main.c (save_camera_file_to_file): call fflush(); + See + +2003-08-24 Lutz Mueller + + * gphoto2/actions.c: Fix off-by-one bug (closes #729791). + +2003-08-22 Hubert Figuiere + + * gphoto2/actions.c (action_camera_show_abilities): Display that + capture is not supported by the driver instead of an empty string + to fix bug 642394 + + +2003-06-22 Christophe Barbe + + * gphoto2/main.c, po/*.po: + s/gphoto-devel@gphoto.org/gphoto-devel@lists.sourceforge.net/ + +2003-05-17 Hans Ulrich Niedermann + + * configure.in: 2.1.2dev6, with CVS tags + * configure.in: 2.1.2dev7, without CVS tags, for development + +2003-05-04 Colin Marquardt + + * po/cs.po: New translation courtesy Miloslav Trmac. + * configure.in: Add cs to ALL_LINGUAS. + +2003-03-03 Colin Marquardt + + * po/da.po: New translation/update. + +2003-02-20 Lutz Mueller + + * gphoto2/main.c: Small date/time related fix by + Ralph Corderoy . + +2003-02-01 Patrick Mansfield + + * foreach.c: Change the CR and CL macro to use "__r" versus "r", + so the result we want to actually check is not hidden by a new + declaration of 'r'. Specifically for_each_file_in_range never + noticed an error of GP_ERROR_NOT_SUPPORTED. actions.c and + shell.c have no problem (i.e. they don't use the variable 'r' in + any functions). + +2002-11-08 Hans Ulrich Niedermann + + * configure.in: 2.1.1dev7 + * gphoto2/version.[ch]: added: version/feature reporting mechanism + * gphoto2/Makefile.am: added version.[ch] + * gphoto2/actions.c: added version/feature reports + +2002-11-06 Lutz Müller + + * gphoto2/main.c: + * gphoto2/actions.[c,h]: Print some information on the build options + when --debug. + +2002-11-06 Lutz Müller + + * gphoto2/foreach.c (for_each_file_in_range: Supply the correct + folder. + +2002-11-05 Lutz Müller + + * gphoto2/actions.c: + * gphoto2/foreach.c: + * gphoto2/main.c: While trying to hunt down a bug: Initialize some + variables, set them to NULL after free, etc. + +2002-11-04 Lutz Müller + + * gphoto2/foreach.c: Fix for-loop. + +2002-11-03 Lutz Müller + + * gphoto2/actions.h: Fix typo in comment. + +2002-11-03 Lutz Müller + + * gphoto2/options.[c,h]: + * gphoto2/main.c: Make --without-popt compile again. + +2002-11-03 Mark McLoughlin + + * gphoto2/foreach.c: (for_each_file): actually recurse into the + sub-folder. + +2002-10-18 Lutz Müller + + * gphoto2/main.c: + * gphoto2/gp-param.h: force -> force_overwrite. + +2002-10-17 Lutz Müller + + * gphoto2/gp-params.[c,h]: New. Simplifies passing around parameters. + * gphoto2/main.c: New --force parameter. + * gphoto2/foreach.[c,h]: + * gphoto2/actions.[c,h]: Adjust to above changes. + +2002-10-08 Lutz Müller + + * gphoto2/actions.c: "!result" should have been "result < 0". I + apologize. + +2002-10-08 Lutz Müller + + * gphoto2/main.c: Only show instructions on how to get debugging + messages if --debug has not been used. + +2002-10-08 Lutz Müller + + * gphoto2/main.c: Additional debugging messages in order to prepare + fixing the introduced bugs. + +2002-10-03 Lutz Müller + + * gphoto2/main.c: Kill warning. + +2002-10-03 Lutz Müller + + * configure.in: Require libgphoto2-2.1.1. + * gphoto2/main.c: Create the context before the abilities list. + +2002-10-03 Lutz Müller + + * gphoto2/main.c: Don't call gp_cmd_config #ifndef HAVE_CDK. + +2002-09-29 Lutz Müller + + * configure.in: Use popt.h if available. + * gphoto2/*: Use popt.h if available. + +2002-09-12 Hans Ulrich Niedermann + + * configure.in: 2.1.1dev6 + * Makefile.am: create .tar.bz2 dists again + +2002-08-08 Lutz Müller + + * gphoto2/main.c: '%n' should work now for non-root folders, too. + +2002-08-08 Lutz Müller + + * gphoto2/main.c: Add %f for filename without suffix. + +2002-08-08 Lutz Müller + + * gphoto2/main.c: tm->tm_wday starts with 0. + +2002-08-07 Lutz Müller + + * gphoto2/main.c: Add %C (filename suffix). + +2002-08-07 Lutz Müller + + * gphoto2/main.c: Let users specify %A, %y, etc. in --filename. + +2002-08-01 Hans Ulrich Niedermann + + * Makefile.am: + * doc/Makefile.am: + * configure.in: added doc/ directory + +2002-07-31 Hans Ulrich Niedermann + + * autogen.sh: patch from Arnaud Launay: check for pkg-config + +2002-07-30 Hans Ulrich Niedermann + + * gphoto2/main.c: moved away code for --print-usb-usermap + * configure.in: 2.1.1 -> 2.1.1dev4 + * .cvsignore: added everything created by build and unknown to CVS + * gphoto2/.cvsignore: added everything created by build and unknown to CVS + * po/.cvsignore: added everything created by build and unknown to CVS + +2002-07-29 Lutz Müller + + * README: The first few lines. + +2002-07-29 Lutz Müller + + gphoto2 is now functional. + +2002-07-28 Lutz Müller + + Initial setup. diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/Makefile.am new file mode 100644 index 00000000..3b36e008 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/Makefile.am @@ -0,0 +1,7 @@ +SUBDIRS = gphoto-m4 contrib doc gphoto2 packaging po tests + +ACLOCAL_AMFLAGS = -I auto-m4 -I gphoto-m4 +EXTRA_DIST = README.md + +README: $(srcdir)/README.md + cp $(srcdir)/README.md README diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/NEWS b/lib/hardware/sensors/gphoto/gphoto2-master/NEWS new file mode 100644 index 00000000..1be065ca --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/NEWS @@ -0,0 +1,269 @@ +gphoto2 2.5.20.1 development +--------------------------------------------------------------------------------- +gphoto2 2.5.20 release + +* maximum number in file ranges bumped from 16384 to 65536 +* add shell commands to match commandline: summary, storage-info, trigger-capture +* fixed a fd leak +* translations: updated simplified chinese + +gphoto2 2.5.17 release + +* handle GP_EVENT_FILE_CHANGED event + +gphoto2 2.5.15 release + +* In the config getters, print out the Readonly flag and also an END marker +* Fixed "now" timesetting also for set-config-value + +gphoto2 2.5.14 release + +* translation updates: french, esperanto +* some bugfixes +* (2.5.12 and 2.5.13 were skipped due to insufficient changes) + +gphoto2 2.5.11 release + +* some errors result in exit 0, where it should have been an error exit +* some windows bugfixes +* translation updates: icelandic + +gphoto2 2.5.10 release + +* use new single configuration set/get if possible +* updated translations: serbian, russian, hungarian, vietnamese, ukrainian, polish, swedish, brazilian portuguese +* require libgphoto2 2.5.10 or newer + +gphoto2 2.5.9 release + +Now maintained (source and issue tracker) in GIT at https://github.com/gphoto/gphoto2 + +* Added testcamera.pl, a tool for testing attached cameras with gphoto2. +* fixed some bugs +* report trigger capture in --ability +* capture-preview can honor filename and prefixes +* updated translations: french, ukrainian, vietnamese, polish, russian, italian + +gphoto2 2.5.8 release + +* --keep-raw option added, which leaves non-JPEG files on camera during + capture or wait-event-and-download +* --show-preview option split out of --capture-preview. --show-preview + now displays the ascii art preview, --capture-preview no longer does. + +* updated translations: french, ukrainian, vietnamese, russian, polish, + dutch, hungarian, esperanto, serbian, danish + +gphoto2 2.5.6 + +* --wait-event / --wait-event-and-download can now wait for strings + --wait-event=CAPTURECOMPLETE + --wait-event=FILEADDED + --wait-event="Property 5001" +* updated translations: french, ukrainian, dutch, polish, russian, vietnamese, hungarian, serbian + +gphoto2 2.5.5 + +* manpage updated +* updated translations +* bugfix for DST usage in handling date/time widgets +* adjusted wait time heuristics after capture +* --debug-loglevel=(debug|verbose|data|all) option added to select debug verbosity +* fixed --filename with cross-device usage + +gphoto2 2.5.4 + +* --skip-existing option that skips if a local file would already exist +* %F for foldername inclusion added to format strings for --filename +* add the commandline arguments to the debug log + +gphoto2 2.5.3 + +* translations updated: dutch, polish, ukrainian, russian, taiwanese +* small --show-info bugfix + +gphoto2 2.5.2 + +* new --reset option to reset usb devices. +* using --filename, if the camera reports 1. Jan 1970, fall back to + use the current date/time. +* translations updated: french, polish, vietnamese, russian, simplified chinese, danish + +gphoto2 2.5.1 + + * Fixed that the meaning of --keep and --no-keep was switched. + + * Allow passing absolute filenames to + -p, -d, -r/--rmdir, -m/--mkdir, -t, --show-info, --get-metadata, + --get-raw-data, --get-audio-data, + + like e.g.: + gphoto2 -p /store_00010001/DCIM/100D7000/DSC_0001.JPG + + * -L --quiet now prints a list of all files, 1 per line. + * -l --quiet now prints a list of all folders, 1 per line. + +gphoto2 2.5.0 + + * Added "--keep" and "--no-keep" options for capture tethered + and capture image. + + * --wait-event and --capture-tethered can now do: + * nr of events (200) + * seconds (100s) + * milliseconds (200ms) (1/1000 of a second) + * frames (50f) (number of images) + + * New --list-all-config gives the full config tree. + +gphoto2 2.4.99.2 + + * Updated for new GPPortInfo in libgphoto2 2.5.0 + * Updated for various changed file interfaces in libgphoto2 2.5.0 + + * Capture mainloop changed to handle JPEG+RAW capture (one release + resulting in 1 or more files). + (Also: refactored and rewritten to be more beautiful) + * Capture mainloop uses trigger capture + waitevent if present. + * Fixed use-after-free problem in file save + * Fixed %n to use an incremental counter, instead of a filesystem index. + +gphoto2 2.4.10.1 + + * Switched %n behaviour to be linear increasing, instead of + a folder index. + +gphoto2 2.4.10 + + * Event loop handling non-waitevent able cameras. + + * --capture-movie (optional arguments: frames, or seconds) + now loops over preview capture as fast as possible + and writes the frames continously. + + The resulting file is "MotionJPEG" and can be postprocessed + or displayed (by mplayer). + + Also output to stdout is possible for pipeing like: + gphoto2 --stdout --capture-movie | someotherprogram + +gphoto2 2.4.9 + + * Capture main event loop rewritten to always use wait event + to also support multiple image captures. (JPEG+RAW) + * Fixed various bugs and memory leaks. + * Translation updates. + +gphoto2 2.4.8 + + * Output CAPTURECOMPLETE on waitevent + * On --filename "foo/bar/berk.jpg" create subdirectories if + not yet present. + * New shell command: + capture-preview + * Added Bulb Mode in interval capture with -B / --bulb + +gphoto2 2.4.7 + + * New cmdline options: --set-config-index and --set-config-value + to avoid ambiguity of the --set-config supporting both modes. + * --wait-event can take "5s" as argument for 5 seconds of event taking + * added --wait-event-and-download=x (same as --wait-event but with download) + * New shell commands: + wait-event (events or seconds) + wait-event-and-download (events or seconds) + capture-tethered + set-config-index entry=choiceindex + set-config-value entry=value + * Enhanced --quietness. + * Added AC_SYS_LARGEFILE, enabling support to download files > 2GB. + * Updated translations. + * Various bugfixes. + +gphoto2 2.4.5 + + * Updated translations. + * Handle ctrl-c on tethered capture. + +gphoto2 2.4.4 + + * Updated translations. + * SIGUSR2 added ... "exit interval capture after next shot" + +gphoto2 2.4.3 + + * Updated translations. + * For multiple cameras, specifying with --port usb:xxx,yyy is now + sufficient (previously needed --port and --camera). + +gphoto2 2.4.2 + + * Updated translations. + * Major change in behaviour: + + --capture-image split into: + --capture-image : Just captures image, no download. + --capture-image-and-download : captures image and downloads it. + +gphoto2 2.4.1 + + * Made capture preview that saves to files work + * capture-image has no arguments + * version check for libgphoto2 fixed + * cs,da,it,vi translations updated + * Fix a few C99isms. + +gphoto2 2.4.0 + + * Add contrib/ directory with scripts and things contributed by users. + * Ditched autogen.sh, use standard autoreconf from stock autoconf. + * Put auto* files into auto-aux/ and auto-m4/. + * New --storage-info function to get direct storage information + from the camera via API. + * Use SIGUSR1 to trigger premature image capture in --interval mode. + * New --reset-interval parameter makes SIGUSR1 reset the capture interval. + * New --capture-tethered command to wait for presses of the camera shutter + button and download. Confirmed working only with Nikon DSC. + +gphoto2 2.3.1 + + FIXME: Update this list from 2.3.1 release. + + * Added --hook-script option, including man page update and test-hook.sh. + * Fix: --get-all-metadata takes no argument. + * Use the "UNIX fd" based CameraFile handling code for downloading and uploading + files, without using system memory. + FIXME: For a release, do require a libgphoto2 version with the + proper version number at compile time, and/or check linking + with that function. + +gphoto2 2.3.0 + + * Require popt library to parse command line options. + * Partitioned command line options into groups of related options. + * Added --debug-logfile=FILENAME option. + * Only load all camlibs if necessary. + * (Half-)Fix to make --with-libgphoto2=PREFIX configure parameter work. + * Preliminary support for lower-case filenames in --filename pattern: %: + * Added "rmdir" command to gphoto2 --shell. + +gphoto2 2.2 + + * Some speed-ups by avoiding to load + list of ports/cameras multiple times. + * More --shell commands added: + put, rmdir, mkdir, configuration, capture + * Metadata down and upload added. + * Waiting for events added. + +gphoto2 2.2.0.trunk + + * Option --debug-logfile=FILENAME added. + * Options grouped for a little structure in --help output. + +gphoto2 2.1.99 + + * Requires libgphoto2 2.1.99 to build + * Various new translations + +gphoto2 2.1.6 diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/README.md b/lib/hardware/sensors/gphoto/gphoto2-master/README.md new file mode 100644 index 00000000..9adeaa1e --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/README.md @@ -0,0 +1,43 @@ +# gphoto2 + +## What is gphoto2? +gphoto2 is a command-line frontend to libgphoto2. + +## Where can I find more information? +Visit the gphoto project web site. It should always be found at least +at one of the following URLs: + - http://www.gphoto.com/ + - http://www.gphoto.org/ + - http://gphoto.sourceforge.net/ + - https://github.com/gphoto/ + - http://sf.net/projects/gphoto + +The man page is in the file doc/gphoto2.1 + +## How do I build it? +``` +autoreconf -is #If using SVN source +configure +make +make install +``` + +Out-of-tree builds are supported. `configure --help` may help. + +To build gphoto2 you will need besides the common build tools: +- The libgphoto2 library. +- The popt libraries (for commandline option handling), package named popt-devel or popt-dev + +Optional: +- The EXIF library. (libexif-devel, libexif-dev or similar) +- The JPEG library. (libjpeg-devel, libjpeg-dev, or jpeg-dev or similar) +- The CDK library (for ncurses based configuration UI). (cdk-devel or similar) +- The AALIB library (for ascii art rendering of previews). (aalib-devel or similar) + +## How do I test it? +``` +make check +``` + +The test suite checks the installation and basic functionality of the gphoto2 +program and the 'Directory Browse' libgphoto2 camera driver. diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/TODO b/lib/hardware/sensors/gphoto/gphoto2-master/TODO new file mode 100644 index 00000000..d2b2352c --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/TODO @@ -0,0 +1,15 @@ +some orthogonalization of the options: + +- unify frame count handling + + use --frames / -F for both controlled capture and waitevents? + +- download or not download flag + + introduce --download / --no-download flag? + both for --capture-image and --wait-event + + +- --list-ids + + to list USB ids diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/configure.ac b/lib/hardware/sensors/gphoto/gphoto2-master/configure.ac new file mode 100644 index 00000000..c19fed94 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/configure.ac @@ -0,0 +1,427 @@ +AC_PREREQ(2.59) +dnl Next stable release must be 2.5.21 or later +AC_INIT([gphoto2 command line interface], [2.5.20.1], [gphoto-devel@lists.sourceforge.net], [gphoto2]) +AC_CONFIG_SRCDIR([gphoto2/main.c]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([auto-m4]) +AC_CONFIG_AUX_DIR([auto-aux]) +AM_INIT_AUTOMAKE([-Wall -Werror gnu 1.9 dist-bzip2 check-news]) + +if test ! -d "$srcdir/gphoto-m4"; then +AC_MSG_ERROR([ +You are missing the gphoto-m4/ directory in your top +$PACKAGE_TARNAME source directory. + +copying it from the gphoto/gphoto-m4 github repository + +and re-running autogen.sh might help. +]) +fi + +GP_CHECK_SHELL_ENVIRONMENT +GP_CONFIG_MSG([Build]) +GP_CONFIG_MSG([Source code location],[${srcdir}]) +AM_CPPFLAGS="" +AM_LDFLAGS="" + + +dnl --------------------------------------------------------------------------- +dnl Some programs we need +dnl --------------------------------------------------------------------------- +AC_PROG_CC +AC_PROG_CPP +AM_PROG_CC_C_O +m4_pattern_allow([AM_PROG_AR], [AM_PROG_AR]) +AM_PROG_LIBTOOL +AC_PROG_INSTALL +AC_SYS_LARGEFILE + +GP_CONFIG_MSG([Compiler],[${CC}]) +AC_DEFINE_UNQUOTED([HAVE_CC],"$CC",[The C compiler we're using]) + +dnl AC_STRUCT_TIMEZONE + + +GP_CONFIG_MSG([Features]) + + +# ---------------------------------------------------------------------- +# References to external resources (web sites, mailing listes, etc.) +# ---------------------------------------------------------------------- + +GP_REFERENCES()dnl + + +dnl --------------------------------------------------------------------------- +dnl i18n support +dnl --------------------------------------------------------------------------- +GP_GETTEXT_HACK([],[Lutz Müller and others],[${MAIL_GPHOTO_TRANSLATION}]) +ALL_LINGUAS="az cs da de en_GB es eu fi fr hu id is it ja nl pa pl pt_BR ro ru rw sk sr sv uk vi zh_CN zh_TW" +AM_GNU_GETTEXT_VERSION([0.14.1]) +AM_GNU_GETTEXT([external]) +AM_PO_SUBDIRS() +AM_ICONV() +GP_GETTEXT_FLAGS() + +dnl We cannot use AC_DEFINE_UNQUOTED() for these definitions, as +dnl we require make to do insert the proper $(datadir) value +AC_SUBST([localedir],["\$(datadir)/locale"]) +AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\"" + + +dnl --------------------------------------------------------------------------- +dnl Check for libgphoto2 +dnl --------------------------------------------------------------------------- +GP_CHECK_LIBRARY([LIBGPHOTO2], [libgphoto2], [>= 2.5.17]) + + +AC_CHECK_FUNCS([strptime]) + +AC_CHECK_FUNCS([signal pause sleep]) + + +AC_HEADER_STDC +AC_CHECK_HEADERS([fcntl.h process.h signal.h sys/time.h sys/wait.h]) + +AC_CHECK_FUNCS([spawnve]) + +AC_CHECK_LIB(m,floor) + + +dnl --------------------------------------------------------------------------- +dnl pthread: The gphoto2 shell (--shell) keeps up a connection to the +dnl camera. Some cameras need to be sent keep-alive-messages +dnl in order to prevent a shut-down. This is what we need +dnl pthread for. +dnl --------------------------------------------------------------------------- +pthread_msg=no +try_pthread=: +AC_ARG_WITH(pthread, [ --without-pthread Don't use pthread], + if test x$withval = xno; then + try_pthread=false + fi) +if $try_pthread; then + AC_CHECK_HEADER(pthread.h, [ + AC_CHECK_LIB(pthread, pthread_exit, [ + AC_DEFINE(HAVE_PTHREAD,1,[Define if we use pthread.h.]) + pthread_msg="yes (-lpthread)" + PTHREAD_LIBS="-lpthread"],[ + AC_CHECK_LIB(c_r, pthread_create, [ + AC_DEFINE(HAVE_PTHREAD,1,[Define if we use pthread.h.]) + pthread_msg="yes (-pthread)" + PTHREAD_LIBS="-pthread" + ]) + ]) + ]) +fi +AC_SUBST([PTHREAD_LIBS]) +GP_CONFIG_MSG([pthread support],[$pthread_msg]) + + +dnl --------------------------------------------------------------------------- +dnl CDK: If you would like to interactively access the camera's configuration +dnl using gphoto2, the command-line frontend, you need CDK. For pure +dnl command-line access to the config, you don't need CDK, though. +dnl Old versions of CDK don't include fscale, therefore check for it here. +dnl --------------------------------------------------------------------------- +cdk_msg="no (http://dickey.his.com/cdk/cdk.html)" +try_cdk=: +have_cdk=false +AC_ARG_WITH([cdk],AS_HELP_STRING([--without-cdk],[Do not use cdk]), [ + if test x$withval = xno; then + try_cdk=false + cdk_msg="no (not requested)" + fi +]) +cdk_prefix=$ac_default_prefix +AC_ARG_WITH([cdk-prefix],AS_HELP_STRING([--with-cdk-prefix=PREFIX], + [Location of cdk]), [ + cdk_prefix="$withval" +]) +if $try_cdk; then + CPPFLAGS_save="$CPPFLAGS" + CPPFLAGS="-I$cdk_prefix/include $CPPFLAGS" + AC_CHECK_HEADER([cdk/cdk.h], [ + have_cdk=: + AC_PATH_PROG([CDK_CONFIG], [cdk5-config]) + if test -n "${CDK_CONFIG}"; then + CDK_CFLAGS=`$CDK_CONFIG --cflags` + CDK_LIBS=`$CDK_CONFIG --libs` + else + CDK_CFLAGS="-I$cdk_prefix/include" + CDK_LIBS="-L$cdk_prefix/lib -lcdk -lncurses" + fi + AC_DEFINE([HAVE_CDK],1,[whether we have CDK]) + LDFLAGS_save="$LDFLAGS" + LDFLAGS="$CDK_LIBS" + AC_CHECK_LIB([cdk], [newCDKFScale], [cdk_msg="yes"], [ + AC_DEFINE([HAVE_CDK_20010421],1, + [whether we have old CDK]) + cdk_msg="yes (but without fscale)" + ]) + LDFLAGS="$LDFLAGS_save" + ]) + CPPFLAGS="$CPPFLAGS_save" +fi +AM_CONDITIONAL([HAVE_CDK], [$have_cdk]) +AC_SUBST([CDK_CFLAGS]) +AC_SUBST([CDK_LIBS]) +GP_CONFIG_MSG([Interactive config support],[$cdk_msg]) + +dnl We emulate signals in Windows +dnl This is taken from: https://github.com/OpenVPN/openvpn/blob/master/configure.ac +AC_CHECK_DECLS( + [SIGHUP], + , + [AC_DEFINE([SIGHUP], [1], [SIGHUP replacement])], + [[ + #ifdef HAVE_SIGNAL_H + #include + #endif + ]] +) +AC_CHECK_DECLS( + [SIGINT], + , + [AC_DEFINE([SIGINT], [2], [SIGINT replacement])], + [[ + #ifdef HAVE_SIGNAL_H + #include + #endif + ]] +) +AC_CHECK_DECLS( + [SIGUSR1], + , + [AC_DEFINE([SIGUSR1], [10], [SIGUSR1 replacement])], + [[ + #ifdef HAVE_SIGNAL_H + #include + #endif + ]] +) +AC_CHECK_DECLS( + [SIGUSR2], + , + [AC_DEFINE([SIGUSR2], [12], [SIGUSR2 replacement])], + [[ + #ifdef HAVE_SIGNAL_H + #include + #endif + ]] +) +AC_CHECK_DECLS( + [SIGTERM], + , + [AC_DEFINE([SIGTERM], [15], [SIGTERM replacement])], + [[ + #ifdef HAVE_SIGNAL_H + #include + #endif + ]] +) + +dnl --------------------------------------------------------------------------- +dnl libjpeg: Right now, libjpeg is only used to interpret JPEG previews in +dnl order to feed them to aalib (see below). +dnl --------------------------------------------------------------------------- +jpeg_msg=no +try_jpeg=: +have_jpeg=false +AC_ARG_WITH([jpeg],AS_HELP_STRING([--without-jpeg],[Do not use jpeg]),[ + if test x$withval = xno; then + try_jpeg=false + jpeg_msg="no (not requested)" + fi +]) +jpeg_prefix=$ac_default_prefix +AC_ARG_WITH(jpeg-prefix, AS_HELP_STRING([--with-jpeg-prefix=PREFIX], + [Location of jpeg]), [ + jpeg_prefix="$withval" +]) +if $try_jpeg; then + CPPFLAGS_save="$CPPFLAGS" + CPPFLAGS="-I$jpeg_prefix/include" + AC_CHECK_HEADER([jpeglib.h], [ + AC_CHECK_LIB([jpeg], [jpeg_read_scanlines], [ + have_jpeg=: + jpeg_msg="yes" + AC_DEFINE([HAVE_JPEG],1,[whether we use libjpeg]) + JPEG_LIBS="-ljpeg" + JPEG_CFLAGS=$CPPFLAGS + ], [ + LDFLAGS_save="$LDFLAGS" + LDFLAGS="-L$jpeg_prefix/lib" + AC_CHECK_LIB([jpeg], [jpeg_stdio_src], [ + have_jpeg=: + jpeg_msg="yes (in '$jpeg_prefix')" + AC_DEFINE([HAVE_JPEG],1, + [whether we use libjpeg]) + JPEG_LIBS="-L$jpeg_prefix/lib -ljpeg" + JPEG_CFLAGS=$CPPFLAGS + ], [ + jpeg_msg="no (could not link)" + ]) + LDFLAGS=$LDFLAGS_save + ]) + ]) + CPPFLAGS="$CPPFLAGS_save" +fi +AM_CONDITIONAL([HAVE_JPEG], [$have_jpeg]) +AC_SUBST([JPEG_LIBS]) +AC_SUBST([JPEG_CFLAGS]) +GP_CONFIG_MSG([JPEG support],[$jpeg_msg]) + + +dnl --------------------------------------------------------------------------- +dnl libexif: The CameraFilesystem can use libexif for extracting thumbnails +dnl out of EXIF data. Similarly, it can extract the mtime of +dnl a file. +dnl libexif is available from +dnl http://www.sourceforge.net/projects/libexif +dnl --------------------------------------------------------------------------- +GP_CHECK_LIBRARY([LIBEXIF],[libexif],[>= 0.3.2], + [libexif/exif-data.h],[exif_data_new],[ + CPPFLAGS_save="$CPPFLAGS" + CPPFLAGS="${LIBEXIF_CFLAGS}" + AC_CHECK_HEADER([libexif/exif-log.h], [ + AC_DEFINE([HAVE_LIBEXIF_LOG],1, + [whether libexif has exif-log.h (>= 0.6.9)])dnl + ]) + AC_CHECK_HEADER([libexif/exif-ifd.h], [ + AC_DEFINE([HAVE_LIBEXIF_IFD],1, + [whether libexif has exif-ifd.h (>= 0.5.3)])dnl + ]) + CPPFLAGS="$CPPFLAGS_save" +],[],[default-on]) + + +dnl --------------------------------------------------------------------------- +dnl aalib: gphoto2 (the frontend) has been designed as a command-line tool. +dnl However, live previews make only sense when you can actually +dnl see the preview. This is where aalib fits in - it gives you the +dnl possibility to view live previews on any console. +dnl --------------------------------------------------------------------------- +aa_msg="no (http://www.sourceforge.net/projects/aa-project)" +try_aa=: +have_aa=false +AC_ARG_WITH([aalib],AS_HELP_STRING([--with-aalib],[Do use aalib for preview ASCII rendering]),[ + if test x$withval = xno; then + try_aa=false + aa_msg="no (not requested)" + fi +]) +if $try_aa; then + AC_CHECK_HEADER([aalib.h],[ + have_aa=: + aa_msg=yes + AC_DEFINE([HAVE_AA], [1], [whether we use aalib]) + AC_PATH_PROG([AALIB_CONFIG], [aalib-config]) + if test -n "${AALIB_CONFIG}"; then + AA_CFLAGS=`$AALIB_CONFIG --cflags` + AA_LIBS=`$AALIB_CONFIG --libs` + else + AA_LIBS="-laa" + fi + ]) +fi +AM_CONDITIONAL([HAVE_AA], [$have_aa]) +AC_SUBST([AA_LIBS]) +AC_SUBST([AA_CFLAGS]) +GP_CONFIG_MSG([Text preview support],[$aa_msg]) + + +dnl --------------------------------------------------------------------------- +dnl popt.h: Simplifies handling of command-line options enormously. +dnl --------------------------------------------------------------------------- +GP_CHECK_POPT([mandatory]) + + +dnl --------------------------------------------------------------------------- +dnl readline: Readline is pretty cool - it allows you to use to complete +dnl commands in the gphoto2 shell or to use or to +dnl navigate through the history. +dnl --------------------------------------------------------------------------- +rl_msg="no (http://cnswww.cns.cwru.edu/~chet/readline/rltop.html)" +try_readline=: +have_readline=false +AC_ARG_WITH([readline],AS_HELP_STRING([--without-readline], + [Do not use readline]),[ + if test "x${withval}" = "xno"; then + try_readline=false + rl_msg="no (not requested)" + fi +]) +if $try_readline; then + AC_CHECK_HEADER([readline/readline.h], [ + AC_CHECK_LIB([readline], [rl_completion_append_character], [ + AC_CHECK_LIB([readline], [rl_completion_matches], [ + have_readline=: + rl_msg="yes (doesn't require explicit -lncurses)" + RL_LIBS="-lreadline" + RL_CFLAGS="" + AC_DEFINE([HAVE_RL], [1], [whether we use readline]) + ], [ + rl_msg="no (available version too old)" + ]) + ], [ + LDFLAGS_save="$LDFLAGS" + LDFLAGS="-lncurses" + AC_CHECK_LIB([readline], [rl_completion_matches], [ + have_readline=: + rl_msg="yes (requires explicit -lncurses)" + RL_LIBS="-lreadline -lncurses" + RL_CFLAGS="" + AC_DEFINE(HAVE_RL,1,[whether we use readline]) + ], [ + rl_msg="no (couldn't link against it or version too old)" + ]) + LDFLAGS="$LDFLAGS_save" + ]) + ]) +fi +AM_CONDITIONAL([HAVE_RL], [$have_readline]) +AC_SUBST([RL_LIBS]) +AC_SUBST([RL_CFLAGS]) +GP_CONFIG_MSG([Readline support], [$rl_msg]) + + +dnl --------------------------------------------------------------------------- +dnl Turn on all warnings when using gcc +dnl --------------------------------------------------------------------------- +if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -Wall" + CFLAGS="$CFLAGS -Wmissing-declarations -Wmissing-prototypes" + # FIXME: Check for --enable-debug here + CFLAGS="$CFLAGS -g" + LDFLAGS="$LDFLAGS -g" +fi + +AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_INTERNAL_CODE" +AC_SUBST([AM_CPPFLAGS]) +AC_SUBST([AM_LDFLAGS]) + + +# --------------------------------------------------------------------------- +# Create output files +# --------------------------------------------------------------------------- +AC_CONFIG_FILES([ +po/Makefile.in +Makefile +gphoto2/Makefile +gphoto-m4/Makefile +doc/Makefile +contrib/Makefile +packaging/Makefile +packaging/rpm/Makefile +packaging/rpm/package.spec +tests/data/Makefile +tests/staging/subdir1/Makefile +tests/staging/subdir2/Makefile +tests/staging/Makefile +tests/Makefile +]) +AC_OUTPUT()dnl + +# Status output +GP_CONFIG_OUTPUT diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/contrib/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/contrib/Makefile.am new file mode 100644 index 00000000..1ad03d16 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/contrib/Makefile.am @@ -0,0 +1,7 @@ +CLEANFILES = +EXTRA_DIST = + +# EXTRA_DIST += subdir/file.txt + +include multi-capture/Makefile-files +include simple-mtpupload/Makefile-files diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/contrib/README b/lib/hardware/sensors/gphoto/gphoto2-master/contrib/README new file mode 100644 index 00000000..d9f44dbe --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/contrib/README @@ -0,0 +1,24 @@ +======================================================================== +Contributed scripts, docs, etc. +======================================================================== + +In this directory, you can find scripts and other things contributed by +users. They may be useful as they are, they may need some work to be use- +ful for you, or they may not help you at all... you'll have to judge them +yourself. + +You can see a list of contributions with a short summary below. + + +multi-capture/ + Alesan's scripts and stuff which captures from four cameras + simultanously. + +simple-mtpupload/ + Marcus script to upload MP3s +metadata to a MTP player. + Needs external MP3::Info perl module (from CPAN for instance). + + +======================================================================== +End of file. +======================================================================== diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/contrib/multi-capture/Makefile-files b/lib/hardware/sensors/gphoto/gphoto2-master/contrib/multi-capture/Makefile-files new file mode 100644 index 00000000..edb5b70f --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/contrib/multi-capture/Makefile-files @@ -0,0 +1,3 @@ +# -*- Makefile -*- + +# EXTRA_DIST += %reldir%/foo.sh diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/contrib/simple-mtpupload/Makefile-files b/lib/hardware/sensors/gphoto/gphoto2-master/contrib/simple-mtpupload/Makefile-files new file mode 100644 index 00000000..72139998 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/contrib/simple-mtpupload/Makefile-files @@ -0,0 +1,3 @@ +# -*- Makefile -*- + +EXTRA_DIST += %reldir%/uploadmp3s.pl diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/contrib/simple-mtpupload/uploadmp3s.pl b/lib/hardware/sensors/gphoto/gphoto2-master/contrib/simple-mtpupload/uploadmp3s.pl new file mode 100644 index 00000000..0937ee58 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/contrib/simple-mtpupload/uploadmp3s.pl @@ -0,0 +1,113 @@ +#!/usr/bin/perl +# +# Uploads MP3s from current directory, recursively. +# Optional arguments can be directories. +# +use File::Basename; +use MP3::Info qw(:DEFAULT :utf8); + +if ($ENV{'LANG'} =~ /utf-8/i) { + use_mp3_utf8(); +} + +foreach $dir (@ARGV) { + push @dirs,`find $dir -type d`; +} +if ($#dirs < 0) { + @dirs = `find . -type d`; +} +chomp @dirs; + + +#AudioWAVECodec Track OriginalReleaseDate SampleRate AudioBitDepth + +sub escape { + my ($txt) = @_; + + return $txt; +} + +sub dump_tags { + my ($file) = @_; + my $key; + my $metafn; + my $tinfo = get_mp3tag($file); + my %tmap = %{$tinfo}; + + #foreach $key (keys %tmap) { print STDERR "$key -> " . $tmap{$key} . "\n"; } + my $finfo = get_mp3info($file); + my %fmap = %{$finfo}; + #foreach $key (keys %fmap) { print STDERR "$key -> " . $fmap{$key} . "\n"; } + + $metafn = $file; + $metafn =~ s/.*\/([^\/]*)$/meta_$1/; + open(META,">$metafn") || die "$metafn:$!\n"; + if (defined($tmap{TITLE}) && $tmap{TITLE} ne "") { + print META "" . escape($tmap{TITLE}) . "\n"; + } + if (defined($tmap{ARTIST}) && $tmap{ARTIST} ne "") { + print META "" . escape($tmap{ARTIST}) . "\n"; + } + if (defined($tmap{ALBUM}) && $tmap{ALBUM} ne "") { + print META "" . escape($tmap{ALBUM}) . "\n"; + } + if (defined($tmap{GENRE}) && $tmap{GENRE} ne "") { + print META "" . escape($tmap{GENRE}) . "\n"; + } + if ($tmap{STEREO} == 1) { + print META "2\n"; + } elsif ($tmap{STEREO} == 0) { + print META "1\n"; + } else { + # default stereo + print META "2\n"; + } + if (defined($fmap{SECS})) { + # in milliseconds + printf META "%d\n",$fmap{SECS}*1000; + } + if (defined($fmap{BITRATE})) { + printf META "%d\n",$fmap{BITRATE}; + } + if (defined($fmap{FREQUENCY})) { + printf META "%d\n",$fmap{FREQUENCY}*1000; + } + close(META); + return $metafn; +} + +%seendir = (); +foreach $dir (@dirs) { + $dir =~ s/^\.\///; + @files = `find '$dir' -maxdepth 1 -name "*.mp3"`; + chomp @files; + next unless (@files > 0); + + @dircomp = split(/\//,$dir); + + $xdir = ""; + foreach $subdir (@dircomp) { + $parentdir = $xdir; + if ($xdir eq "") { + $xdir .= "$subdir"; + } else { + $xdir .= "/$subdir"; + } + next if ($seendir{$xdir}); + system("gphoto2 -f '/store_00010001/Music/$parentdir' --mkdir '$subdir'"); + # print "gphoto2 -f '/store_00010001/Music/$parentdir' --mkdir '$subdir'\n"; + $seendir{$xdir} = 1; + + } + $uploadline = " -f '/store_00010001/Music/$dir'"; + foreach $file (@files) { + $metafn = dump_tags($file); + $uploadline .= " -u \'" . $file . "\'"; + if ($metafn) { + push @metas, $metafn; + $uploadline .= " --upload-metadata \'" . $metafn . "\'"; + } + } + system("gphoto2 $uploadline"); + unlink(@metas); +} diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/doc/.cvsignore b/lib/hardware/sensors/gphoto/gphoto2-master/doc/.cvsignore new file mode 100644 index 00000000..282522db --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/doc/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/doc/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/doc/Makefile.am new file mode 100644 index 00000000..4e9c04b9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/doc/Makefile.am @@ -0,0 +1,3 @@ +man_MANS = gphoto2.1 + +EXTRA_DIST = gphoto2.1 diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/doc/gphoto2.1 b/lib/hardware/sensors/gphoto/gphoto2-master/doc/gphoto2.1 new file mode 100644 index 00000000..333045c0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/doc/gphoto2.1 @@ -0,0 +1,929 @@ +'\" t +.\" Title: gphoto2 +.\" Author: The gPhoto2 Team +.\" Generator: DocBook XSL Stylesheets v1.79.0 +.\" Date: 2015-08-01August 2006 +.\" Manual: The gPhoto2 Reference (the man pages) +.\" Source: [FIXME: source] +.\" Language: English +.\" +.TH "GPHOTO2" "1" "2015-08-01August 2006" "[FIXME: source]" "The gPhoto2 Reference (the man" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +gphoto2 \- command\-line gphoto2 client +.SH "SYNOPSIS" +.HP \w'\fBgphoto2\fR\ 'u +\fBgphoto2\fR [\-\-debug] [\-\-debug\-logfile\ \fIFILENAME\fR] [\-\-debug\-loglevel\ \fILEVEL\fR] [[\-q] | [\-\-quiet]] [[\-v] | [\-\-verbose]] [[\-h] | [\-\-help]] [\-\-usage] +.br +[\-\-hook\-script\ \fIFILENAME\fR] +.br +[\-\-list\-cameras] [\-\-list\-ports] [\-\-stdout] [\-\-stdout\-size] +.br +[\-\-auto\-detect] [\-\-port\ \fIPATH\fR] [\-\-speed\ \fISPEED\fR] [\-\-camera\ \fIMODEL\fR] +.br +[\-\-filename\ \fIFILENAME\fR] +.br +[\-\-usbid\ \fIUSBIDS\fR] +.br +[[\-a] | [\-\-abilities]] +.br +[[\-\-folder\ \fIFOLDER\fR] | [\-f\ \fIFOLDER\fR]] [[[\-R] | [\-\-recurse]] | [\-\-no\-recurse]] +.br +[[\-l] | [\-\-list\-folders]] +.br +[[\-L] | [\-\-list\-files]] [[\-m\ \fINAME\fR] | [\-\-mkdir\ \fINAME\fR]] +.br +[[\-r\ \fINAME\fR] | [\-\-rmdir\ \fINAME\fR]] [[\-n] | [\-\-num\-files]] +.br +[[\-p\ \fIRANGE\ or\ NAME\fR] | [\-\-get\-file\ \fIRANGE\ or\ NAME\fR]] [[\-P] | [\-\-get\-all\-files]] +.br +[[\-t\ \fIRANGE\ or\ NAME\fR] | [\-\-get\-thumbnail\ \fIRANGE\ or\ NAME\fR]] +.br +[[\-T] | [\-\-get\-all\-thumbnails]] +.br +[\-\-get\-raw\-data\ \fIRANGE\ or\ NAME\fR] [\-\-get\-all\-raw\-data] +.br +[\-\-get\-audio\-data\ \fIRANGE\ or\ NAME\fR] [\-\-get\-all\-audio\-data] +.br +[\-\-get\-metadata\ \fIRANGE\ or\ NAME\fR] [\-\-get\-all\-metadata] [\-\-upload\-metadata\ \fIFILENAME\fR] +.br +[\-\-force\-overwrite] +.br +[\-\-new] +.br +[[\-d\ \fIRANGE\ or\ NAME\fR] | [\-\-delete\-file\ \fIRANGE\ or\ NAME\fR]] [[\-D] | [\-\-delete\-all\-files]] +.br +[[\-u\ \fIFILENAME\fR] | [\-\-upload\-file\ \fIFILENAME\fR]] [\-\-config] +.br +[\-\-list\-config] [\-\-list\-all\-config] +.br +[\-\-get\-config\ \fICONFIGENTRY\fR] [\-\-set\-config\ \fICONFIGENTRY=CONFIGVALUE\fR] [\-\-set\-config\-index\ \fICONFIGENTRY=CONFIGINDEX\fR] [\-\-set\-config\-value\ \fICONFIGENTRY=CONFIGVALUE\fR] [\-\-reset] +.br +[\-\-capture\-preview] [\-\-show\-preview] +.br +[[\-F\ \fICOUNT\fR] | [\-\-frames\ \fICOUNT\fR]] [[\-I\ \fISECONDS\fR] | [\-\-interval\ \fISECONDS\fR]] +.br +[\-\-reset\-interval] +.br +[\-\-capture\-image] [\-\-trigger\-capture] [\-\-capture\-movie\ \fISECONDS\ or\ COUNT\fR] [\-\-capture\-sound] +.br +[\-\-capture\-tethered\ \fISECONDS,\ COUNT\ or\ STRING\fR] +.br +[\-\-wait\-event\ \fISECONDS,\ COUNT\ or\ STRING\fR] [\-\-wait\-event\-and\-download\ \fISECONDS,\ COUNT\ or\ STRING\fR] +.br +[\-\-keep] [\-\-no\-keep] +.br +[\-\-show\-info\ \fIRANGE\ or\ NAME\fR] +.br +[\-\-show\-exif\ \fIRANGE\ or\ NAME\fR] +.br +[\-\-storage\-info] +.br +[\-\-summary] +.br +[\-\-manual] +.br +[\-\-about] +.br +[\-\-shell] +.SH "DESCRIPTION" +.PP +libgphoto2(3) +is a cross\-platform digital camera library, and +gphoto2(1) +is a command\-line client for it\&. +.PP +Where an option takes a +\fIRANGE\fR +of files, thumbnails, or other data, they are numbered beginning at 1\&. A range is a comma\-separated list of numbers or spans (\(lq\fIfirst\fR\-\fIlast\fR\(rq)\&. Ranges are XOR (exclusive or), so that +\(lq1\-5,3,7\(rq +is equivalent to +\(lq1,2,4,5,7\(rq\&. +.PP +\fB\-\-debug\fR +.RS 4 +Turn on debugging output\&. Debugging output is written to stderr by default, or to the filename given to the +\fB\-\-debug\-logfile\fR +option\&. +.RE +.PP +\fB\-\-debug\-logfile\fR \fIFILENAME\fR (since 2\&.3\&.0) +.RS 4 +The logfile to write the debugging info to, if +\fB\-\-debug\fR +is given\&. +.RE +.PP +\fB\-\-debug\-loglevel\fR \fILEVEL\fR (since 2\&.5\&.5) +.RS 4 +The verbosity of debug logging\&. Possible values with incrementing verbosity are: +\fBerror\fR, +\fBdebug\fR, +\fBdata\fR, +\fBall\fR\&. Default is +\fBall\fR\&. +.RE +.PP +\fB\-\-hook\-script\fR \fIFILENAME\fR (new after 2\&.3\&.0) +.RS 4 +Execute the hook script +\fIFILENAME\fR +every time a certain event happens within +\fBgphoto2\fR\&. The hook script reads the environment variable +\fBACTION\fR\&. It must ignore +\fBACTION\fR +values unknown to it\&. +.PP +\fBACTION\fR=init +.RS 4 +\fBgphoto2\fR +has just been initialized\&. If the hook script returns with a non\-zero exit code now, +\fBgphoto2\fR +will abort\&. +.RE +.PP +\fBACTION\fR=start +.RS 4 +\fBgphoto2\fR +has just finished parsing the command line and is about to start executing the commands given on the command line\&. +.RE +.PP +\fBACTION\fR=download +.RS 4 +\fBgphoto2\fR +has just downloaded a file to the computer, storing it in the file indicated by the environment variable +\fBARGUMENT\fR\&. +.RE +.PP +\fBACTION\fR=stop +.RS 4 +\fBgphoto2\fR +is about to finish\&. Do your final cleanups here\&. +.RE +.sp +All other environment variables are passed to the hook script unchanged\&. You can make use of that to pass data to the hook script\&. +.sp +Hook script may be specified in the +~/\&.gphoto/settings +file as +\fBgphoto2=hook\-script=\fR\fIfilename\fR\&. +.RE +.PP +\fB\-q\fR, \fB\-\-quiet\fR +.RS 4 +Quiet output (default=verbose)\&. +.RE +.PP +\fB\-v\fR, \fB\-\-version\fR +.RS 4 +Display version and exit\&. +.RE +.PP +\fB\-h\fR, \fB\-\-help\fR +.RS 4 +Display options and short description\&. +.RE +.PP +\fB\-\-usage\fR +.RS 4 +Display a short usage message\&. +.RE +.PP +\fB\-\-list\-cameras\fR +.RS 4 +List supported camera models\&. +.RE +.PP +\fB\-\-list\-ports\fR +.RS 4 +List supported port devices\&. +.RE +.PP +\fB\-\-stdout\fR +.RS 4 +Send file to stdout\&. +.RE +.PP +\fB\-\-stdout\-size\fR +.RS 4 +Print filesize before data\&. +.RE +.PP +\fB\-\-auto\-detect\fR +.RS 4 +List auto\-detected cameras and the ports to which they are connected\&. +.RE +.PP +\fB\-\-port\fR \fIPATH\fR +.RS 4 +Specify port device\&. The +\fB\-\-list\-ports\fR +prints a list of valid, usable ports\&. In case of multiple USB cameras, the +\fB\-\-auto\-detect\fR +shows you the specific port each camera is connected to\&. +.RE +.PP +\fB\-\-speed\fR \fISPEED\fR +.RS 4 +Specify serial transfer speed\&. +.RE +.PP +\fB\-\-camera\fR \fIMODEL\fR +.RS 4 +Specify camera model\&. The +\fB\-\-list\-cameras\fR +option prints a list of all explicitly supported cameras\&. +.sp +Most model names contain spaces: remember to enclose the name in quotes so that the shell knows it is one parameter\&. For example: +\fB\fB\-\-camera\fR\fR\fB "Kodak DC240"\fR\&. +.sp +Note that if you specify +\fB\fB\-\-camera\fR\fR, you must also specify +\fB\fB\-\-port\fR\fR\&. Otherwise the +\fB\fB\-\-camera\fR\fR +option will be silently ignored\&. +.RE +.PP +\fB\-\-filename\fR \fIFILENAME\fR +.RS 4 +When downloading files from the camera, specify the file name or file name pattern to use when storing the downloaded file on the local disk\&. When uploading a file to the camera, specify the filename to store the uploaded file as on the camera\&. +.sp +The +\fB\-\-filename\fR +option accepts %a, %A, %b, %B, %d, %H, %k, %I, %l, %j, %m, %M, %S, %y, %%, (see date(1)) and, in addition, %n for the number, %C for the filename suffix, %f for the filename without suffix, %F for the foldername, %: for the complete filename in lowercase\&. +.sp +Note that %: is still in alpha stage, and the actual character or syntax may still be changed\&. E\&.g\&. it might be possible to use %#f and %#C for lower case versions, and %^f and %^C for upper case versions\&. +.sp +%n is the only conversion specifier to accept a padding character and width: %03n will pad with zeros to width 3 (e\&.g\&. print the number 7 as +\(lq007\(rq)\&. Leaving out the padding character (e\&.g\&. %3n) will use an implementation specific default padding character which may or may not be suitable for use in file names\&. +.sp +Default value for this option can be specified in the +~/\&.gphoto/settings +file as +\fBgphoto2=filename=value\fR\&. +.RE +.PP +\fB\-\-usbid\fR \fI\fIUSBIDS\fR\fR +.RS 4 +(Expert only) Override +USB +IDs\&. +\fI \fR\fI\fIUSBIDS\fR\fRmust be of the form +\fI \fR\fI\fIDetectedVendorID\fR\fR\fI:\fR\fI\fIDetectedProductID\fR\fR\fI=\fR\fI\fITreatAsVendorID\fR\fR\fI:\fR\fI\fITreatAsProductID\fR\fR +to treat any USB device detected as +\fI\fIDetectedVendorID\fR\fR\fI:\fR\fI\fIDetectedProductID\fR\fR +as +\fI\fITreatAsVendorID\fR\fR\fI:\fR\fI\fITreatAsProductID\fR\fR +instead\&. All the VendorIDs and ProductIDs should be hexadecimal numbers beginning in C notation, i\&.e\&. beginning with \*(Aq0x\*(Aq\&. +.sp +Example: +\fB\-\-usbid \fR\fB\fI0x4a9:0x306b=0x4a9:0x306c\fR\fR +.RE +.PP +\fB\-a\fR, \fB\-\-abilities\fR +.RS 4 +Display the camera and driver abilities specified in the libgphoto2 driver\&. This all does not query the camera, it uses data provided by the library\&. Use +\fB\-\-summary\fR +to query an overview of the camera\&. +.RE +.PP +\fB\-f\fR, \fB\-\-folder\fR \fIFOLDER\fR +.RS 4 +Specify camera folder (default="/")\&. +.RE +.PP +\fB\-R\fR, \fB\-\-recurse\fR +.RS 4 +Recursion (default for download)\&. +.RE +.PP +\fB\-\-no\-recurse\fR +.RS 4 +No recursion (default for deletion)\&. +.RE +.PP +\fB\-l\fR, \fB\-\-list\-folders\fR +.RS 4 +List folders in folder\&. +.RE +.PP +\fB\-L\fR, \fB\-\-list\-files\fR +.RS 4 +List files in folder\&. +.RE +.PP +\fB\-m\fR, \fB\-\-mkdir\fR \fINAME\fR +.RS 4 +Create a directory\&. +.RE +.PP +\fB\-r\fR, \fB\-\-rmdir\fR \fINAME\fR +.RS 4 +Remove a directory\&. +.RE +.PP +\fB\-n\fR, \fB\-\-num\-files\fR +.RS 4 +Display number of files\&. +.RE +.PP +\fB\-p\fR, \fB\-\-get\-file\fR \fIRANGE\fR +.RS 4 +Get files given in range\&. +.RE +.PP +\fB\-P\fR, \fB\-\-get\-all\-files\fR +.RS 4 +Get all files from folder\&. +.RE +.PP +\fB\-t\fR, \fB\-\-get\-thumbnail\fR \fIRANGE\fR +.RS 4 +Get thumbnails given in range\&. +.RE +.PP +\fB\-T\fR, \fB\-\-get\-all\-thumbnails\fR +.RS 4 +Get all thumbnails from folder\&. +.RE +.PP +\fB\-\-get\-raw\-data\fR \fIRANGE\fR +.RS 4 +Get raw data given in range\&. +.RE +.PP +\fB\-\-get\-all\-raw\-data\fR +.RS 4 +Get all raw data from folder\&. +.RE +.PP +\fB\-\-get\-audio\-data\fR \fIRANGE\fR +.RS 4 +Get audio data given in range\&. +.RE +.PP +\fB\-\-get\-all\-audio\-data\fR +.RS 4 +Get all audio data from folder\&. +.RE +.PP +\fB\-\-upload\-metadata\fR \fIFILENAME\fR +.RS 4 +Upload meta data for the specific file, taken from a file prefix with meta_ \&. +.RE +.PP +\fB\-\-get\-metadata\fR \fIRANGE\fR +.RS 4 +Get meta data given in range\&. +.RE +.PP +\fB\-\-get\-all\-metadata\fR +.RS 4 +Get all meta data from folder\&. +.RE +.PP +\fB\-\-force\-overwrite\fR +.RS 4 +Overwrite files without asking\&. +.RE +.PP +\fB\-\-skip\-existing\fR +.RS 4 +Skip files if they exist already on the local directory\&. +.RE +.PP +\fB\-\-new\fR +.RS 4 +Only get not already downloaded files\&. This option depends on camera support of flagging already downloaded images and is not available for all drivers\&. +.RE +.PP +\fB\-d\fR, \fB\-\-delete\-file\fR \fIRANGE\fR +.RS 4 +Delete files given in range\&. +.RE +.PP +\fB\-D\fR, \fB\-\-delete\-all\-files\fR +.RS 4 +Delete all files in folder (defaults to +\fB\-\-no\-recurse\fR)\&. +.RE +.PP +\fB\-u\fR, \fB\-\-upload\-file\fR \fIFILENAME\fR +.RS 4 +Upload a file to camera\&. +.RE +.PP +\fB\-\-capture\-preview\fR +.RS 4 +Capture a quick preview\&. +.RE +.PP +\fB\-B\fR\fB\-\-bulb\fR \fISECONDS\fR +.RS 4 +Do a bulb capture for the specified amount of seconds\&. +.RE +.PP +\fB\-\-show\-preview\fR +.RS 4 +Capture a quick preview and displays it in the terminal using Ascii Art (if aalib was used during build)\&. +.RE +.PP +\fB\-F \fR\fB\fICOUNT\fR\fR, \fB\-\-frames \fR\fB\fICOUNT\fR\fR +.RS 4 +Number of frames to capture in one run\&. Default is infinite number of frames\&. +.RE +.PP +\fB\-I \fR\fB\fISECONDS\fR\fR, \fB\-\-interval \fR\fB\fISECONDS\fR\fR +.RS 4 +Time between capture of multiple frames\&. +.sp +(Since 2\&.4) If +SIGUSR1 signal +is received, a picture is taken immediately without waiting for the end of the current interval period (see +the section called \(lqSIGNALS\(rq)\&. A value of \-1 will let gphoto2 wait forever, i\&.e\&. until a signal arrives\&. See also +\fB\-\-reset\-interval\fR\&. +.RE +.PP +\fB\-\-reset\-interval\fR +.RS 4 +Setting this option will reset the time interval to the value given by the +\fB\-I|\-\-interval\fR option +when a +SIGUSR1 signal +is received in time\-lapse mode\&. +.RE +.PP +\fB\-\-capture\-image\fR +.RS 4 +Capture an image and keep it on the camera\&. +.RE +.PP +\fB\-\-capture\-image\-and\-download\fR +.RS 4 +Capture an image and download it immediately to the computer\&. +.RE +.PP +\fB\-\-trigger\-capture\fR +.RS 4 +Triggers the capture an image and return\&. If you want to get the image downloaded, see \-\-wait\-event\-and\-download\&. +.sp +This feature is only available for some camera brands and drivers\&. +.RE +.PP +\fB\-\-keep\fR +.RS 4 +When doing \-\-capture\-image\-and\-download or interval capture, this option will keep the images on the memory card of the camera\&. +.RE +.PP +\fB\-\-no\-keep\fR +.RS 4 +When doing \-\-capture\-image\-and\-download or interval capture, this option will not keep the images on the memory card of the camera after downloading them during capture\&. (default) +.RE +.PP +\fB\-\-keep\-raw\fR +.RS 4 +When doing \-\-capture\-image\-and\-download or interval capture, this option will keep the RAW images on the memory card of the camera, but still download the JPEG images\&. This is useful when doing dual mode capture and you want to review the JPEGs already during capture\&. +.RE +.PP +\fB\-\-capture\-movie \fR\fB\fISECONDS\fR\fR +.RS 4 +Capture a movie\&. If the camera supports previews, this will capture a stream of previews (motion\-jpeg) as fast as the camera can\&. +.sp +If not argument is specified, it will capture preview frames until you press Ctrl\-C\&. Arguments that can be specified are either seconds of capture or number of preview frames\&. +.RE +.PP +\fB\-\-capture\-sound\fR +.RS 4 +Capture an audio clip\&. No driver supports this at this time\&. +.RE +.PP +\fB\-\-capture\-tethered \fR\fB\fISECONDS, MILLISECONDS, COUNT or MATCHSTRING\fR\fR +.RS 4 +Lets gphoto2 wait for notifications from the camera that an object was added\&. This is useful for tethered capture, where pressing the shutter on the camera immediately transfer the image to the machine for processing\&. +.sp +Together with the +\fB\-\-hook\-script\fR +to immediately postprocess or display the images this can help a studio workflow\&. +.sp +This option requires support in the driver and by the camera, currently newer Canon EOS and Nikon DLSR work\&. +.RE +.PP +\fB\-\-wait\-event \fR\fB\fISECONDS, MILLISECONDS, COUNT or MATCHSTRING\fR\fR, \fB\-\-wait\-event\-and\-download \fR\fB\fISECONDS, MILLISECONDS, COUNT or MATCHSTRING\fR\fR +.RS 4 +Lets gphoto2 wait for notifications from the camera for various events\&. This is useful for seeing what the camera does and waiting for objects to be added\&. The objects are kept on camera in the +\(lq\-\-wait\-event\(rq +version, with +\(lq\-\-wait\-event\-and\-download\(rq +they are downloaded\&. +.sp +\-\-wait\-event\-and\-download is equivalent to \-\-capture\-tethered\&. +.sp +The time to wait can be either specified as full seconds with a "s" suffix, a number of milliseconds with a "ms" suffix, as a number of events (just a number), or a sub\-string to match\&. If nothing happens, a timeout is generated after 1 second, so a +\(lqwait\-event=5\(rq +will take at most 5 seconds\&. A +\(lq\-\-wait\-event=5s\(rq +will take exactly 5 second\&. +.sp +If no argument is given, the wait time is 1 million events (basically forever)\&. +.sp +In the download variant this can be used together with the +\fB\-\-hook\-script\fR +to immediately postprocess or display the images this can help a studio workflow\&. +.sp +This option requires support in the driver and by the camera, currently newer Canon EOS and Nikon DSC are known to work\&. +.RE +.PP +\fB\-\-show\-info\fR \fIRANGE\fR +.RS 4 +Show information for a single or multiple images, like width, height, size and/or the capture time +.RE +.PP +\fB\-\-config\fR +.RS 4 +Starts a ncurses based text configuration menu\&. gphoto2 needs to built against CDK for this feature\&. +.RE +.PP +\fB\-\-list\-config\fR +.RS 4 +List all configuration entries\&. +.RE +.PP +\fB\-\-list\-all\-config\fR +.RS 4 +List all configuration entries and their values and choices\&. +.sp +This command is a combination of +\fB\-\-list\-config\fR +and calling +\fB\-\-get\-config\fR +on all the entries\&. +.RE +.PP +\fB\-\-get\-config\fR \fICONFIGENTRY\fR +.RS 4 +Get the specified configuration entry\&. +.sp +This command will list the type, the current value and also the available options of this configuration value\&. +.RE +.PP +\fB\-\-set\-config\fR \fICONFIGENTRY=CONFIGVALUE\fR +.RS 4 +Set the specified configuration entry\&. For lists of choices of values this setting first looks up CONFIGVALUE as value and then as index into the choice list\&. Since this is not fully clear, you can use +\fB\-\-set\-config\-index\fR +or +\fB\-\-set\-config\-value\fR +to be more clear what is searched for\&. +.sp +Look at the output of +\fB\-\-get\-config\fR +to see what values are possible to set here\&. +.RE +.PP +\fB\-\-set\-config\-index\fR \fICONFIGENTRY=CONFIGINDEX\fR +.RS 4 +Set the specified configuration entry by specifying the index into the list of choices for the configuration value\&. This of course only works for configuration settings that offer list of choices\&. +.sp +Look at the output of +\fB\-\-get\-config\fR +to see what indices are possible to set here\&. +.RE +.PP +\fB\-\-set\-config\-value\fR \fICONFIGENTRY=CONFIGVALUE\fR +.RS 4 +Set the specified configuration entry by specifying its new value\&. For lists of choices the value is looked up and set\&. +.sp +Look at the output of +\fB\-\-get\-config\fR +to see what values are possible to set here\&. +.RE +.PP +\fB\-\-reset\fR +.RS 4 +Resets the specified (or autodetected) USB port\&. +.sp +This command resets the USB port of either the first auto\-detected camera, or the port specified with +\fB\-\-port usb:XXX,YYY\fR\&. This option is useful if somehow the protocol talking to the camera locked up and simulates plugging out and in the camera\&. +.RE +.PP +\fB\-\-storage\-info\fR +.RS 4 +Display information about the camera\*(Aqs storage media\&. +.RE +.PP +\fB\-\-summary\fR +.RS 4 +Summary of camera status\&. +.RE +.PP +\fB\-\-manual\fR +.RS 4 +Camera driver manual\&. +.RE +.PP +\fB\-\-about\fR +.RS 4 +About the camera driver\&. +.RE +.PP +\fB\-\-shell\fR +.RS 4 +Start the gphoto2 shell, an interactive environment\&. See +SHELL MODEfor a detailed description\&. +.RE +.SH "SHELL MODE" +.PP +The following commands are available: +.PP +cd \fIDIRECTORY\fR +.RS 4 +Change to the specified directory on the camera\&. +.RE +.PP +ls +.RS 4 +List the contents of the current directory on the camera\&. +.RE +.PP +lcd \fIDIRECTORY\fR +.RS 4 +Change to the specified directory on the local machine\&. +.RE +.PP +get \fIFILENAME\fR +.RS 4 +Download the specified file to the current directory\&. +.RE +.PP +put \fIFILENAME\fR +.RS 4 +Upload the specified file from the current system directory to the cameras current directory\&. +.RE +.PP +get\-thumbnail \fIFILENAME\fR +.RS 4 +Download the specified thumbnail to the current directory\&. +.RE +.PP +get\-raw \fIFILENAME\fR +.RS 4 +Download the specified raw data to the current directory\&. +.RE +.PP +show\-info \fIFILENAME\fR +.RS 4 +Show information of the specified file\&. +.RE +.PP +delete \fIFILENAME\fR +.RS 4 +Delete the specified file or directory\&. +.RE +.PP +mkdir \fIDIRECTORY\fR +.RS 4 +Creates a directory named +\(lqDIRECTORY\(rq\&. +.RE +.PP +rmdir \fIDIRECTORY\fR +.RS 4 +Removes a directory named +\(lqDIRECTORY\(rq\&. +.RE +.PP +show\-exif \fIFILENAME\fR +.RS 4 +Show EXIF information (only if compiled with EXIF support)\&. +.RE +.PP +capture\-image +.RS 4 +Captures a single image and keeps it on the camera\&. +.RE +.PP +capture\-image\-and\-download +.RS 4 +Captures a single image and downloads it from the camera\&. +.RE +.PP +capture\-preview +.RS 4 +Captures a preview image and downloads it from the camera\&. +.RE +.PP +list\-config +.RS 4 +Lists all configuration values\&. +.RE +.PP +get\-config \fINAME\fR +.RS 4 +Gets the configuration specified by +\(lqNAME\(rq\&. +.RE +.PP +set\-config \fINAME=VALUE\fR +.RS 4 +Sets the configuration specified by +\(lqNAME\(rq +to +\(lqVALUE\(rq\&. +.RE +.PP +set\-config\-value \fINAME=VALUE\fR +.RS 4 +Sets the configuration specified by +\(lqNAME\(rq +to +\(lqVALUE\(rq\&. +.RE +.PP +set\-config\-index \fINAME=VALUE\fR +.RS 4 +Sets the configuration specified by +\(lqNAME\(rq +to the +\(lqINDEX\(rq +into the list of choices\&. Works only for Menu or Radio button entries\&. +.RE +.PP +wait\-event \fICOUNT or SECONDS\fR +.RS 4 +Waits for events from the camera for the specified time in SECONDS (if suffixed with s) or the COUNT of events from the camera, where every seconds a timeout event happens\&. Newly added images are kept on the camera\&. +.sp +Default is 1 event\&. +.RE +.PP +wait\-event\-and\-download \fICOUNT or SECONDS\fR, capture\-tethered \fICOUNT or SECONDS\fR +.RS 4 +Waits for events from the camera for the specified time in SECONDS (if suffixed with s) or the COUNT of events from the camera, where every seconds a timeout event happens\&. Newly added images are downloaded from the camera\&. +.sp +Default is 1 event\&. +.RE +.PP +help, ? +.RS 4 +Displays command usage\&. +.RE +.PP +exit, quit, q +.RS 4 +Exit the gphoto2 shell\&. +.RE +.SH "ENVIRONMENT VARIABLES" +.PP +\fBCAMLIBS\fR +.RS 4 +If set, defines the directory where the +libgphoto2 +library looks for its camera drivers (camlibs)\&. You only need to set this on OS/2 systems and broken/test installations\&. +.RE +.PP +\fBIOLIBS\fR +.RS 4 +If set, defines the directory where the +libgphoto2_port +library looks for its I/O drivers (iolibs)\&. You only need to set this on OS/2 systems and broken/test installations\&. +.RE +.PP +\fBLD_DEBUG\fR +.RS 4 +Set this to +\fIall\fR +to receive lots of debug information regarding library loading on +\fBld\fR +based systems\&. +.RE +.PP +\fBUSB_DEBUG\fR +.RS 4 +If set, defines the numeric debug level with which the +libusb +library will print messages\&. In order to get some debug output, set it to +\fI1\fR\&. +.RE +.SH "SIGNALS" +.PP +SIGUSR1 (since 2\&.4) +.RS 4 +In time\-lapse capture mode, receiving a SIGUSR1 signal makes gphoto2 take a picture immediately\&. +.sp +If the +\fB\-\-reset\-interval\fR option +is given, the time counter is reset to the value given by the +\fB\-I|\-\-interval\fR option\&. Note that the camera will need some time (from 50ms to a few seconds) to actually capture the image\&. +.RE +.SH "SEE ALSO" +.PP +libgphoto2(3), +\m[blue]\fBThe gPhoto2 Manual\fR\m[]\&\s-2\u[1]\d\s+2, + +\m[blue]\fBThe gphoto\&.org website\fR\m[]\&\s-2\u[2]\d\s+2, +\m[blue]\fBDigital Camera Support for UNIX, Linux and BSD\fR\m[]\&\s-2\u[3]\d\s+2 +.SH "EXAMPLES" +.PP +\fBgphoto2 \fR\fB\fB\-\-list\-ports\fR\fR +.RS 4 +Shows what kinds of ports (USB +and serial) you have\&. +.RE +.PP +\fBgphoto2 \fR\fB\fB\-\-auto\-detect\fR\fR +.RS 4 +Shows what camera(s) you have connected\&. +.RE +.PP +\fBgphoto2 \fR\fB\fB\-\-list\-files\fR\fR +.RS 4 +List files on camera\&. +.RE +.PP +\fBgphoto2 \fR\fB\fB\-\-get\-file\fR\fR\fB \fR\fB\fI7\-13\fR\fR +.RS 4 +Get files number 7 through 13 from the list output by +\fB\fBgphoto2\fR\fR\fB \fR\fB\fB\-\-list\-files\fR\fR\&. +.RE +.PP +\fBgphoto2 \fR\fB\fB\-\-capture\-image\fR\fR\fB \fR\fB\fB\-\-interval\fR\fR\fB \fR\fB\fI60\fR\fR\fB \fR\fB\fB\-\-hook\-script\fR\fR\fB \fR\fB\fI/usr/share/doc/gphoto2/test\-hook\&.sh\fR\fR +.RS 4 +Capture one image every 60 seconds from now to eternity\&. The example hook script will be called after each captured image has been stored on the computer\&. +.RE +.PP +To track down errors, you can add the +\fB\-\-debug\fR +parameter to the +\fBgphoto2\fR +command line and, if dealing with USB problems, setting the environment variable +\fBUSB_DEBUG\fR\fI=1\fR\&. +.SH "AUTHORS" +.PP +\fBTim Waugh\fR +.RS 4 +Author. +.RE +.PP +\fBHans Ulrich Niedermann, current maintainer\fR <\&gp@n-dimensional.de\&> +.RS 4 +Author. +.RE +.PP +\fBMichael J. Rensing\fR +.RS 4 +Author. +.RE +.PP +\fBMarcus Meissner\fR <\&marcus@jet.franken.de\&> +.RS 4 +Author. +.RE +.PP +\fBMiscellanous Contributors.\fR +.PP +\fBThe gPhoto2 Team\fR +.RS 4 +Author. +.RE +.PP +\fBTim Waugh\fR <\&twaugh@redhat\&.com\&> +.RS 4 +Original man page author\&. +.RE +.PP +\fBHans Ulrich Niedermann\fR <\&gp@n\-dimensional\&.de\&> +.RS 4 +Current man page editor\&. +.RE +.SH "NOTES" +.IP " 1." 4 +The gPhoto2 Manual +.RS 4 +\%http://www.gphoto.org/doc/manual/ +.RE +.IP " 2." 4 +The gphoto.org website +.RS 4 +\%http://www.gphoto.org/ +.RE +.IP " 3." 4 +Digital Camera Support for UNIX, Linux and BSD +.RS 4 +\%http://www.teaser.fr/~hfiguiere/linux/digicam.html +.RE diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/Makefile-files b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/Makefile-files new file mode 100644 index 00000000..03c9d78e --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/Makefile-files @@ -0,0 +1,30 @@ +# -*- Makefile -*- + +EXTRA_DIST += %reldir%/README.md +EXTRA_DIST += %reldir%/gphoto-m4-sync + +EXTRA_DIST += %reldir%/gp-byteorder.m4 +EXTRA_DIST += %reldir%/gp-camlibs.m4 +EXTRA_DIST += %reldir%/gp-check-doxygen.m4 +EXTRA_DIST += %reldir%/gp-check-library.m4 +EXTRA_DIST += %reldir%/gp-check-popt.m4 +EXTRA_DIST += %reldir%/gp-check-shell-environment.m4 +EXTRA_DIST += %reldir%/gp-config-msg.m4 +EXTRA_DIST += %reldir%/gp-documentation.m4 +EXTRA_DIST += %reldir%/gp-dynamic-libraries.m4 +EXTRA_DIST += %reldir%/gp-gettext-hack.m4 +EXTRA_DIST += %reldir%/gp-internal-docs.m4 +EXTRA_DIST += %reldir%/gp-libltdl.m4 +EXTRA_DIST += %reldir%/gp-manual-docbook-xml.m4 +EXTRA_DIST += %reldir%/gp-manual-documentation.m4 +EXTRA_DIST += %reldir%/gp-manual-fig2dev.m4 +EXTRA_DIST += %reldir%/gp-manual-graphviz.m4 +EXTRA_DIST += %reldir%/gp-manual-gtk-doc.m4 +EXTRA_DIST += %reldir%/gp-manual-pstoimg.m4 +EXTRA_DIST += %reldir%/gp-manual-w3m.m4 +EXTRA_DIST += %reldir%/gp-packaging.m4 +EXTRA_DIST += %reldir%/gp-references.m4 +EXTRA_DIST += %reldir%/gp-stdint.m4 +EXTRA_DIST += %reldir%/gp-subpackage.m4 +EXTRA_DIST += %reldir%/gp-udev.m4 +EXTRA_DIST += %reldir%/gp-va-copy.m4 diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/Makefile.am new file mode 100644 index 00000000..b69097e7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/Makefile.am @@ -0,0 +1,7 @@ +# This is the compatibility Makefile.am - you are probably better off +# just including the Makefile-files directly from your top-level +# Makefile.am. + +EXTRA_DIST = + +include Makefile-files diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/README.md b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/README.md new file mode 100644 index 00000000..b756b23f --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/README.md @@ -0,0 +1,140 @@ +gphoto-m4 +========= + +`gphoto-m4` is the gPhoto projects' collection of m4 macros for use +with the autoconf/automake based build systems. + +It has been designed to be used in + + * `gphoto2` + * `libgphoto2` + * `libgphoto2_port` (located in `libgphoto2/`) + * `gtkam` + +Some macros are re-used ones from `libexif`. + +Since the gPhoto project moved from SVN to git, we have not figured +out yet how to properly include the `gphoto-m4` files into the +respective software's `gphoto-m4/` subdirectory (either `git subtree` +or `git submodule` come to mind). + +So for the time being, we manually update and synchronize the files. + + +Use of `gphoto-m4` after the switch to git from SVN +--------------------------------------------------- + +Since the gPhoto project moved from SVN to git, we have not figured +out yet how to properly include the `gphoto-m4` files into the +respective software's `gphoto-m4/` subdirectory. The options are: + + 1. Manually update (and hopefully synchronize) the files. + + Advantages: + + * No special commands needed for users or developers. + + Disadvantages: + + * The manual work for the maintainers is exhausting and error + prone. + + 2. Use `git submodule`. + + Advantages: + + * Defined mechanism for syncing and updating the `gphoto-m4/*` + files. + + Disadvantages: + + * Requires special git commands from everybody (users, + developers, and maintainers) all the time (e.g. `git clone + --recursive` instead of `git clone`). + + This is the showstopper for `git submodule`. + + 3. Use `git subtree`. + + Advantages: + + * Defined mechanism for syncing and updating the `gphoto-m4/*` + files. + + * Requires no special git commands from users or developers. + + * Not even people actually messing with the files in + `gphoto-m4/*` strictly need special commands. + + Only the maintainers who do the syncing and updating of the + `gphoto-m4/*` files need the special commands. + + Disadvantages: + + * Requires special knowledge of special commands instead of + just copying files around. The concept is less complex than + copying files round, but it does require special commands. + + * No rebasing possible across pulls to `gphoto-m4/`. Not really + necessary anyway, though. + + * Pushes of changes to from, say, `gphoto2/gphoto-m4` to + upstream `gphoto-m4` create a lot of commit history noise in + the `gphoto-m4` repository by including the complete history + of the `gphoto2` repository. + + Note this cannot be avoided by using `git subtree split`: + That is executed internally by `git subtree push`. + + So it appears that using `git subtree push` will push all + projects' commit history into the `gphoto-m4` repo. + + That is if not a showstopper, then at least very ugly. + +For the time being, we manually update and synchronize the files. + + +Manually syncing and updating files +----------------------------------- + +This section has not been written yet. + + +Using `git submodule` +--------------------- + +This section has not been written yet. + + +Using `git subtree` +------------------- + + +### Using `gphoto-m4` as git subtree ### + +This section describes how to use `gphoto-m4` when it has been set up +as a `git subtree` (e.g. in `gphoto2` and `libgphoto2`). + +Add a remote for `gphoto-m4`: + + git remote add origin-gphoto-m4 git@github.com:gphoto/gphoto-m4.git + +Pull changes to origin-gphoto-m4 into local `gphoto-m4`: + + git subtree pull --prefix gphoto-m4 origin-gphoto-m4 master --squash + +Now we can push local changes to 'gphoto-m4/*' back to +`origin-gphoto-m4` as follows: + + git subtree push --prefix gphoto-m4 origin-gphoto-m4 master + +FIXME: Add more typical uses cases. + + +### Setting up `gphoto-m4` as git subtree ### + +This section describes how we initially set up `gphoto-m4` as a git +subtree for `gphoto2`. This is only required once by one person, then +never needs to be done by anybody else ever again. + + git subtree add --prefix gphoto-m4 origin-gphoto-m4 master --squash diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-byteorder.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-byteorder.m4 new file mode 100644 index 00000000..bf90bc70 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-byteorder.m4 @@ -0,0 +1,450 @@ +dnl AC_NEED_BYTEORDER_H ( HEADER-TO-GENERATE ) +dnl Originally written by Dan Fandrich +dnl My contribution is hereby placed into the public domain. +dnl No warranty is expressed or implied. +dnl +dnl Create a header file that guarantees that byte swapping macros of the +dnl ntohl variety as well as the extended types included in OpenBSD and +dnl NetBSD such as le32toh are defined. If possible, the standard ntohl +dnl are overloaded as they are optimized for the given platform, but when +dnl this is not possible (e.g. on a big-endian machine) they are defined +dnl in this file. + +dnl Look for a symbol in a header file +dnl AC_HAVE_SYMBOL ( IDENTIFIER, HEADER-FILE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND ) +AC_DEFUN([AC_HAVE_SYMBOL], +[ +AC_MSG_CHECKING(for $1 in $2) +AC_EGREP_CPP([symbol is present|\<$1\>],[ +#include <$2> +#ifdef $1 + symbol is present +#endif + ], +[AC_MSG_RESULT(yes) +$3 +], +[AC_MSG_RESULT(no) +$4 +])]) + + +dnl Create a header file that defines extended byte swapping macros +AC_DEFUN([AC_NEED_BYTEORDER_H], +[ +ac_dir=`AS_DIRNAME(["$1"])` +if test "$ac_dir" != "$1" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && AS_MKDIR_P(["$ac_dir"]) +fi + +# We're only interested in the target CPU, but it's not always set +effective_target="$target" +if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then + effective_target="$host" +fi +AC_SUBST(effective_target) + +cat > "$1" << EOF +/* This file is generated automatically by configure */ +/* It is valid only for the system type ${effective_target} */ + +#ifndef __BYTEORDER_H +#define __BYTEORDER_H + +EOF + +dnl First, do an endian check +AC_C_BIGENDIAN + +dnl Look for NetBSD-style extended byte swapping macros +AC_HAVE_SYMBOL(le32toh,machine/endian.h, + [HAVE_LE32TOH=1 + cat >> "$1" << EOF +/* extended byte swapping macros are already available */ +#include + +EOF], + +[ + +dnl Look for standard byte swapping macros +AC_HAVE_SYMBOL(ntohl,arpa/inet.h, + [cat >> "$1" << EOF +/* ntohl and relatives live here */ +#include +#define __HAVE_NTOHL + +EOF], + + [AC_HAVE_SYMBOL(ntohl,netinet/in.h, + [cat >> "$1" << EOF +/* ntohl and relatives live here */ +#include +#define __HAVE_NTOHL + +EOF],true)]) +]) + +dnl Look for generic byte swapping macros + +dnl OpenBSD +AC_HAVE_SYMBOL(swap32,machine/endian.h, + [cat >> "$1" << EOF +/* swap32 and swap16 are defined in machine/endian.h */ + +EOF], + + [ +dnl Linux GLIBC + AC_HAVE_SYMBOL(bswap_32,byteswap.h, + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +#include +#define swap16(x) bswap_16(x) +#define swap32(x) bswap_32(x) +#define swap64(x) bswap_64(x) + +EOF], + + [ +dnl NetBSD + AC_HAVE_SYMBOL(bswap32,machine/endian.h, + dnl We're already including machine/endian.h if this test succeeds + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +EOF + if test "$HAVE_LE32TOH" != "1"; then + echo '#include '>> "$1" + fi +cat >> "$1" << EOF +#define swap16(x) bswap16(x) +#define swap32(x) bswap32(x) +#define swap64(x) bswap64(x) + +EOF], + + [ +dnl FreeBSD + AC_HAVE_SYMBOL(__byte_swap_long,sys/types.h, + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +#include +#define swap16(x) __byte_swap_word(x) +#define swap32(x) __byte_swap_long(x) +/* No optimized 64 bit byte swapping macro is available */ +#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ + ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ + ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ + ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\ + ((x) >> 8) & 0x00000000ff000000ULL | \\ + ((x) >> 24) & 0x0000000000ff0000ULL | \\ + ((x) >> 40) & 0x000000000000ff00ULL | \\ + ((x) >> 56) & 0x00000000000000ffULL)) + +EOF], + + [ +dnl OS X + AC_HAVE_SYMBOL(NXSwapLong,machine/byte_order.h, + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +#include +#define swap16(x) NXSwapShort(x) +#define swap32(x) NXSwapLong(x) +#define swap64(x) NXSwapLongLong(x) + +EOF], + [ + if test $ac_cv_c_bigendian = yes; then + cat >> "$1" << EOF +/* No other byte swapping functions are available on this big-endian system */ +#define swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) +#define swap32(x) ((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\ + ((uint32_t)(x) << 8) & 0x00ff0000UL | \\ + ((x) >> 8) & 0x0000ff00UL | \\ + ((x) >> 24) & 0x000000ffUL)) +#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ + ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ + ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ + ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\ + ((x) >> 8) & 0x00000000ff000000ULL | \\ + ((x) >> 24) & 0x0000000000ff0000ULL | \\ + ((x) >> 40) & 0x000000000000ff00ULL | \\ + ((x) >> 56) & 0x00000000000000ffULL)) + +EOF + else + cat >> "$1" << EOF +/* Use these as generic byteswapping macros on this little endian system */ +/* on windows we might not have ntohs / ntohl without including winsock.dll, + * so use generic macros */ +#ifdef __HAVE_NTOHL +# define swap16(x) htons(x) +# define swap32(x) htonl(x) +#else +# define swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) +# define swap32(x) ((uint32_t)((((uint32_t)(x) << 24) & 0xff000000UL) | \\ + (((uint32_t)(x) << 8) & 0x00ff0000UL) | \\ + (((x) >> 8) & 0x0000ff00UL) | \\ + (((x) >> 24) & 0x000000ffUL))) +#endif +/* No optimized 64 bit byte swapping macro is available */ +#define swap64(x) ((uint64_t)((((uint64_t)(x) << 56) & 0xff00000000000000ULL) | \\ + (((uint64_t)(x) << 40) & 0x00ff000000000000ULL) | \\ + (((uint64_t)(x) << 24) & 0x0000ff0000000000ULL) | \\ + (((uint64_t)(x) << 8) & 0x000000ff00000000ULL) | \\ + (((x) >> 8) & 0x00000000ff000000ULL) | \\ + (((x) >> 24) & 0x0000000000ff0000ULL) | \\ + (((x) >> 40) & 0x000000000000ff00ULL) | \\ + (((x) >> 56) & 0x00000000000000ffULL))) + +EOF + fi +]) + ]) + ]) + ]) +]) + + +[ +if test "$HAVE_LE32TOH" != "1"; then + cat >> "$1" << EOF +/* The byte swapping macros have the form: */ +/* EENN[a]toh or htoEENN[a] where EE is be (big endian) or */ +/* le (little-endian), NN is 16 or 32 (number of bits) and a, */ +/* if present, indicates that the endian side is a pointer to an */ +/* array of uint8_t bytes instead of an integer of the specified length. */ +/* h refers to the host's ordering method. */ + +/* So, to convert a 32-bit integer stored in a buffer in little-endian */ +/* format into a uint32_t usable on this machine, you could use: */ +/* uint32_t value = le32atoh(&buf[3]); */ +/* To put that value back into the buffer, you could use: */ +/* htole32a(&buf[3], value); */ + +/* Define aliases for the standard byte swapping macros */ +/* Arguments to these macros must be properly aligned on natural word */ +/* boundaries in order to work properly on all architectures */ +#ifndef htobe16 +# ifdef __HAVE_NTOHL +# define htobe16(x) htons(x) +# else +# ifdef WORDS_BIGENDIAN +# define htobe16(x) (x) +# else +# define htobe16(x) swap16(x) +# endif +# endif +#endif +#ifndef htobe32 +# ifdef __HAVE_NTOHL +# define htobe32(x) htonl(x) +# else +# ifdef WORDS_BIGENDIAN +# define htobe32(x) (x) +# else +# define htobe32(x) swap32(x) +# endif +# endif +#endif +#ifndef be16toh +# define be16toh(x) htobe16(x) +#endif +#ifndef be32toh +# define be32toh(x) htobe32(x) +#endif + +#define HTOBE16(x) (x) = htobe16(x) +#define HTOBE32(x) (x) = htobe32(x) +#define BE32TOH(x) (x) = be32toh(x) +#define BE16TOH(x) (x) = be16toh(x) + +EOF + + if test $ac_cv_c_bigendian = yes; then + cat >> "$1" << EOF +/* Define our own extended byte swapping macros for big-endian machines */ +#ifndef htole16 +# define htole16(x) swap16(x) +#endif +#ifndef htole32 +# define htole32(x) swap32(x) +#endif +#ifndef htole64 +# define htole64(x) swap64(x) +#endif +#ifndef le16toh +# define le16toh(x) swap16(x) +#endif +#ifndef le32toh +# define le32toh(x) swap32(x) +#endif +#ifndef le64toh +# define le64toh(x) swap64(x) +#endif + +#ifndef htobe64 +# define htobe64(x) (x) +#endif +#ifndef be64toh +# define be64toh(x) (x) +#endif + +#define HTOLE16(x) (x) = htole16(x) +#define HTOLE32(x) (x) = htole32(x) +#define HTOLE64(x) (x) = htole64(x) +#define LE16TOH(x) (x) = le16toh(x) +#define LE32TOH(x) (x) = le32toh(x) +#define LE64TOH(x) (x) = le64toh(x) + +#define HTOBE64(x) (void) (x) +#define BE64TOH(x) (void) (x) + +EOF + else + cat >> "$1" << EOF +/* On little endian machines, these macros are null */ +#ifndef htole16 +# define htole16(x) (x) +#endif +#ifndef htole32 +# define htole32(x) (x) +#endif +#ifndef htole64 +# define htole64(x) (x) +#endif +#ifndef le16toh +# define le16toh(x) (x) +#endif +#ifndef le32toh +# define le32toh(x) (x) +#endif +#ifndef le64toh +# define le64toh(x) (x) +#endif + +#define HTOLE16(x) (void) (x) +#define HTOLE32(x) (void) (x) +#define HTOLE64(x) (void) (x) +#define LE16TOH(x) (void) (x) +#define LE32TOH(x) (void) (x) +#define LE64TOH(x) (void) (x) + +/* These don't have standard aliases */ +#ifndef htobe64 +# define htobe64(x) swap64(x) +#endif +#ifndef be64toh +# define be64toh(x) swap64(x) +#endif + +#define HTOBE64(x) (x) = htobe64(x) +#define BE64TOH(x) (x) = be64toh(x) + +EOF + fi +fi + +cat >> "$1" << EOF +/* Define the C99 standard length-specific integer types */ +#include <_stdint.h> + +EOF + +case "${effective_target}" in + i[3456]86-*) + cat >> "$1" << EOF +/* Here are some macros to create integers from a byte array */ +/* These are used to get and put integers from/into a uint8_t array */ +/* with a specific endianness. This is the most portable way to generate */ +/* and read messages to a network or serial device. Each member of a */ +/* packet structure must be handled separately. */ + +/* The i386 and compatibles can handle unaligned memory access, */ +/* so use the optimized macros above to do this job */ +#ifndef be16atoh +# define be16atoh(x) be16toh(*(uint16_t*)(x)) +#endif +#ifndef be32atoh +# define be32atoh(x) be32toh(*(uint32_t*)(x)) +#endif +#ifndef be64atoh +# define be64atoh(x) be64toh(*(uint64_t*)(x)) +#endif +#ifndef le16atoh +# define le16atoh(x) le16toh(*(uint16_t*)(x)) +#endif +#ifndef le32atoh +# define le32atoh(x) le32toh(*(uint32_t*)(x)) +#endif +#ifndef le64atoh +# define le64atoh(x) le64toh(*(uint64_t*)(x)) +#endif + +#ifndef htob16a +# define htobe16a(a,x) *(uint16_t*)(a) = htobe16(x) +#endif +#ifndef htobe32a +# define htobe32a(a,x) *(uint32_t*)(a) = htobe32(x) +#endif +#ifndef htobe64a +# define htobe64a(a,x) *(uint64_t*)(a) = htobe64(x) +#endif +#ifndef htole16a +# define htole16a(a,x) *(uint16_t*)(a) = htole16(x) +#endif +#ifndef htole32a +# define htole32a(a,x) *(uint32_t*)(a) = htole32(x) +#endif +#ifndef htole64a +# define htole64a(a,x) *(uint64_t*)(a) = htole64(x) +#endif + +EOF + ;; + + *) + cat >> "$1" << EOF +/* Here are some macros to create integers from a byte array */ +/* These are used to get and put integers from/into a uint8_t array */ +/* with a specific endianness. This is the most portable way to generate */ +/* and read messages to a network or serial device. Each member of a */ +/* packet structure must be handled separately. */ + +/* Non-optimized but portable macros */ +#define be16atoh(x) ((uint16_t)(((x)[0]<<8)|(x)[1])) +#define be32atoh(x) ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3])) +#define be64atoh_x(x,off,shift) (((uint64_t)((x)[off]))<>8), (a)[1]=(uint8_t)(x) +#define htobe32a(a,x) (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\ + (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x) +#define htobe64a(a,x) (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\ + (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\ + (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\ + (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x) +#define htole16a(a,x) (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) +#define htole32a(a,x) (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ + (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) +#define htole64a(a,x) (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\ + (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\ + (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ + (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) + +EOF + ;; +esac +] + +cat >> "$1" << EOF +#endif /*__BYTEORDER_H*/ +EOF]) diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-camlibs.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-camlibs.m4 new file mode 100644 index 00000000..3dbb70db --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-camlibs.m4 @@ -0,0 +1,170 @@ +dnl GP_CAMLIB & Co. +dnl +dnl Redundancy free definition of libgphoto2 camlibs. +dnl +dnl Removes the redundany from the camlib lists, and executes +dnl additional consistency checks, e.g. to ensure that subdirectories +dnl actually exist. +dnl +dnl You can mark camlibs as unlisted, i.e. they won't be listed +dnl explicitly but still be recognized. +dnl +dnl Example usage: +dnl +dnl GP_CAMLIB([canon]) +dnl GP_CAMLIB([casio]) +dnl [...] +dnl GP_CAMLIB([ptp],[unlisted]) +dnl GP_CAMLIB([ptp2]) +dnl [...] +dnl GP_CAMLIB([toshiba]) +dnl GP_CAMLIBS_DEFINE([camlibs]) +dnl +dnl The camlibs basedir parameter of GP_CAMLIBS_DEFINE is optional. +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIBS_INIT],[dnl +AC_BEFORE([$0],[GP_CAMLIB])dnl +m4_define_default([gp_camlib_srcdir], [camlibs])dnl +m4_define_default([gp_camlibs], [])dnl +m4_define_default([gp_camlibs_unlisted], [])dnl +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIB],[dnl +AC_REQUIRE([GP_CAMLIBS_INIT])dnl +AC_BEFORE([$0],[GP_CAMLIBS_DEFINE])dnl +m4_if([$2],[unlisted],[dnl +# $0($1,$2) +m4_append([gp_camlibs_unlisted], [$1], [ ])dnl +],[$#],[1],[dnl +# $0($1) +m4_append([gp_camlibs], [$1], [ ])dnl +],[dnl +m4_errprint(__file__:__line__:[ Error: +*** Illegal parameter 2 to $0: `$2' +*** Valid values are: undefined or [unlisted] +])dnl +m4_exit(1)dnl +])dnl +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIBS_WARNING],[dnl +AC_MSG_WARN([ + +# Caution: You have chosen to build a non-standard set of camlibs. +# You may have disabled the camlib required for your camera, or +# enabled a camlib that does *not* work, and overrides the camlib +# that does work. Consequently, +# YOUR CAMERA MAY NOT WORK! +# +# Many cameras of several brands are supported by a camlib with a +# name different from the name of the camera brand or model. If you +# are unsure, please +# * enable at least the "ptp2" camlib +# * or even better, just build "all" camlibs. +]) +sleep 2 +]) +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIBS_DEFINE],[dnl +AC_REQUIRE([GP_CAMLIBS_INIT])dnl +m4_pattern_allow([m4_strip])dnl +m4_ifval([$1],[m4_define([gp_camlib_srcdir],[$1])])dnl +dnl for camlib in m4_strip(gp_camlibs) m4_strip(gp_camlibs_unlisted) +dnl do +dnl if test -d "$srcdir/m4_strip(gp_camlib_srcdir)/$camlib"; then :; else +dnl AC_MSG_ERROR([ +dnl * Fatal: +dnl * Source subdirectory for camlib \`$camlib' not found in +dnl * directory \`$srcdir/m4_strip(gp_camlib_srcdir)/' +dnl ]) +dnl fi +dnl done +AC_MSG_CHECKING([which camlibs to compile]) +dnl Yes, that help output won't be all that pretty, but we at least +dnl do not have to edit it by hand. +AC_ARG_WITH([camlibs],[AS_HELP_STRING( + [--with-camlibs=], + [Compile camera drivers (camlibs) in . ]dnl + [Drivers may be separated with commas. ]dnl + [CAUTION: DRIVER NAMES AND CAMERA NAMES MAY DIFFER. ]dnl + ['all' is the default and compiles all camlibs. ]dnl + [Possible camlibs are: ]dnl + m4_strip(gp_camlibs))], + [camlibs="$withval"], + [camlibs="all"])dnl +dnl +ALL_DEFINED_CAMLIBS="m4_strip(gp_camlibs) m4_strip(gp_camlibs_unlisted)" +ALL_DEFAULT_CAMLIBS="m4_strip(gp_camlibs)" +BUILD_THESE_CAMLIBS_BASE="" +if test "$camlibs" = "all"; then + BUILD_THESE_CAMLIBS_BASE="$ALL_DEFAULT_CAMLIBS" + AC_MSG_RESULT([all]) +else + # If the string starts with "all,", we start with the default list + # and add the explicitly defined ones later + if echo "$camlibs" | grep "^all," > /dev/null; then + BUILD_THESE_CAMLIBS_BASE="$ALL_DEFAULT_CAMLIBS" + camlibs="$(echo "$camlibs" | sed 's/^all,//')" + fi + # camlibs=$(echo $camlibs | sed 's/,/ /g') + IFS_save="$IFS" + IFS=",$IFS" + # Walk through enumeration of camlibs given by user and add them to list + # of camlibs to build if we know them. + for camlib in ${camlibs}; do + IFS="$IFS_save" + found=false + for from_all_camlib in ${ALL_DEFINED_CAMLIBS}; do + if test "$camlib" = "$from_all_camlib"; then + if test "x$BUILD_THESE_CAMLIBS_BASE" = "x"; then + BUILD_THESE_CAMLIBS_BASE="$camlib" + else + BUILD_THESE_CAMLIBS_BASE="$BUILD_THESE_CAMLIBS_BASE $camlib" + fi + found=: + break + fi + done + if $found; then :; else + AC_MSG_ERROR([Unknown camlib $camlib!]) + fi + done + if test "x$BUILD_THESE_CAMLIBS_BASE" = "xcanon" ; then + # Gentoo mode... if user just said "canon", add "ptp2" ... should save support requests. + BUILD_THESE_CAMLIBS_BASE="$BUILD_THESE_CAMLIBS_BASE ptp2" + camlibs="$camlibs ptp2" + AC_MSG_WARN([ + "You have just selected the old canon driver. However most current Canons\n" + "are supported by the PTP2 driver.\n" + "Autoselecting ptp2 driver too to avoid support requests.\n" + ]) + fi + IFS="$IFS_save" + AC_MSG_RESULT([$camlibs]) + GP_CAMLIBS_WARNING + AC_DEFINE_UNQUOTED([INCOMPLETE_CAMLIB_SET], ["$BUILD_THESE_CAMLIBS_BASE"], + [Whether the set of camlibs built is incomplete]) +fi +BUILD_THESE_CAMLIBS="" +for f in $BUILD_THESE_CAMLIBS_BASE +do + BUILD_THESE_CAMLIBS="${BUILD_THESE_CAMLIBS}${BUILD_THESE_CAMLIBS+ }${f}.la" +done +AC_SUBST([BUILD_THESE_CAMLIBS]) +AC_SUBST([ALL_DEFINED_CAMLIBS]) +AC_SUBST([ALL_DEFAULT_CAMLIBS]) +])dnl +dnl +dnl #################################################################### +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-doxygen.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-doxygen.m4 new file mode 100644 index 00000000..482ba1e6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-doxygen.m4 @@ -0,0 +1,21 @@ +dnl doxygen related stuff +dnl look for tools +dnl define substitutions for Doxyfile.in +AC_DEFUN([GP_CHECK_DOXYGEN],[dnl +AC_REQUIRE([GP_CHECK_DOC_DIR])dnl +AC_PATH_PROG([DOT], [dot], [false]) +AC_PATH_PROG([DOXYGEN], [doxygen], [false]) +AM_CONDITIONAL([HAVE_DOXYGEN], [test "x$DOXYGEN" != "xfalse"]) +AM_CONDITIONAL([HAVE_DOT], [test "x$DOT" != "xfalse"]) +if test "x$DOT" != "xfalse"; then + AC_SUBST([HAVE_DOT],[YES]) +else + AC_SUBST([HAVE_DOT],[NO]) +fi +AC_SUBST([HTML_APIDOC_DIR], ["${PACKAGE_TARNAME}-api.html"]) +AC_SUBST([DOXYGEN_OUTPUT_DIR], [doxygen-output]) +AC_SUBST([HTML_APIDOC_INTERNALS_DIR], ["${PACKAGE_TARNAME}-internals.html"]) +])dnl + + + diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-library.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-library.m4 new file mode 100644 index 00000000..2737d8d2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-library.m4 @@ -0,0 +1,456 @@ +dnl @synopsis GP_CHECK_LIBRARY([VARNAMEPART],[libname],[VERSION-REQUIREMENT], +dnl [headername],[functionname], +dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], +dnl [OPTIONAL-REQUIRED-ETC],[WHERE-TO-GET-IT]) +dnl +dnl Checks for the presence of a certain library. +dnl +dnl Parameters: +dnl +dnl VARNAMEPART partial variable name for variable definitions +dnl libname name of library +dnl VERSION-REQUIREMENT check for the version using pkg-config. +dnl default: [] +dnl headername name of header file +dnl default: [] +dnl functionname name of function name in library +dnl default: [] +dnl ACTION-IF-FOUND shell action to execute if found +dnl default: [] +dnl ACTION-IF-NOT-FOUND shell action to execute if not found +dnl default: [] +dnl OPTIONAL-REQUIRED-ETC one of "mandatory", "default-on", "default-off" +dnl "disable-explicitly" +dnl default: [mandatory] +dnl WHERE-TO-GET-IT place where to find the library, e.g. a URL +dnl default: [] +dnl +dnl What the ACTION-IFs can do: +dnl +dnl * change the variable have_[$1] to "yes" or "no" and thus change +dnl the outcome of the test +dnl * execute additional checks to define more specific variables, e.g. +dnl for different API versions +dnl +dnl What the OPTIONAL-REQUIRED-ETC options mean: +dnl +dnl mandatory Absolute requirement, cannot be disabled. +dnl default-on If found, it is used. If not found, it is not used. +dnl default-off In case of --with-libfoo, detect it. Without +dnl --with-libfoo, do not look for and use it. +dnl disable-explicitly Required by default, but can be disabled by +dnl explicitly giving --without-libfoo. +dnl +dnl These results have happened after calling GP_CHECK_LIBRARY: +dnl +dnl AM_CONDITIONAL([HAVE_VARPREFIX],[ if found ]) +dnl AM_SUBST([have_VARPREFIX], [ "yes" if found, "no" if not found ]) +dnl AM_SUBST([VARPREFIX_CFLAGS],[ -I, -D and stuff ]) +dnl AM_SUBST([VARPREFIX_LIBS], [ /path/to/libname.la -L/path -lfoo ]) +dnl +dnl Parameters to ./configure which influence the GP_CHECK_LIBRARY results: +dnl +dnl * VARNAMEPART_LIBS=/foobar/arm-palmos/lib/libname.la +dnl VARNAMEPART_CFLAGS=-I/foobar/include +dnl * --without-libfoo +dnl * --with-libfoo=/usr/local +dnl * --with-libfoo-include-dir=/foobar/include +dnl * --with-libfoo-lib=/foobar/arm-palmos/lib +dnl * --with-libfoo=autodetect +dnl +dnl Examples: +dnl GP_CHECK_LIBRARY([LIBEXIF], [libexif])dnl +dnl GP_CHECK_LIBRARY([LIBEXIF], [libexif-gtk], [>= 0.3.3])dnl +dnl note the space! ^ +dnl +dnl Possible enhancements: +dnl +dnl * Derive VAR_PREFIX directly from libname +dnl This will change the calling conventions, so be aware of that. +dnl * Give names of a header file and function name and to a test +dnl compilation. +dnl +AC_DEFUN([_GP_CHECK_LIBRARY_SOEXT],[dnl +AC_MSG_CHECKING([for dynamic library extension]) +soext="" +case "$host" in + *linux*) soext=".so" ;; + *sunos*) soext=".so" ;; + *solaris*) soext=".so" ;; + *bsd*) soext=".so" ;; + *darwin*) soext=".dylib" ;; + *w32*) soext=".dll" ;; +esac +case "$host_os" in + gnu*) soext=".so" ;; +esac +if test "x$soext" = "x"; then + soext=".so" + AC_MSG_RESULT([${soext}]) + AC_MSG_WARN([ +Host system "${host}" not recognized, defaulting to "${soext}". +]) +else + AC_MSG_RESULT([${soext}]) +fi +])dnl +dnl +AC_DEFUN([_GP_CHECK_LIBRARY],[ +# ---------------------------------------------------------------------- +# [GP_CHECK_LIBRARY]([$1],[$2],[$3], +# [$4],[$5], +# [...],[...],[$8]) +m4_ifval([$9],[dnl +# $9 +])dnl +# ---------------------------------------------------------------------- +dnl +AC_REQUIRE([GP_CONFIG_MSG])dnl +AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_REQUIRE([_GP_CHECK_LIBRARY_SOEXT])dnl +# Use _CFLAGS and _LIBS given to configure. +# This makes it possible to set these vars in a configure script +# and AC_CONFIG_SUBDIRS this configure. +AC_ARG_VAR([$1][_CFLAGS], [CFLAGS for compiling with ][$2])dnl +AC_ARG_VAR([$1][_LIBS], [LIBS to add for linking against ][$2])dnl +dnl +AC_MSG_CHECKING([for ][$2][ to use]) +m4_ifval([$3],[REQUIREMENTS_FOR_][$1][="][$2][ $3]["], + [REQUIREMENTS_FOR_][$1][="][$2]["]) +userdef_[$1]=no +have_[$1]=no +if test "x${[$1][_LIBS]}" = "x" && test "x${[$1][_CFLAGS]}" = "x"; then + # define --with/--without argument + m4_if([$8], [default-off], + [m4_pushdef([gp_lib_arg],[--without-][$2])dnl + try_[$1]=no + ], + [m4_pushdef([gp_lib_arg],[--with-][$2])dnl + try_[$1]=auto + ])dnl + AC_ARG_WITH([$2],[AS_HELP_STRING([gp_lib_arg][=PREFIX],[where to find ][$2][, "no" or "auto"])],[try_][$1][="$withval"]) + if test "x${[try_][$1]}" = "xno"; then + [REQUIREMENTS_FOR_][$1][=] + fi + if test "x${[try_][$1]}" = "xauto"; then [try_][$1]=autodetect; fi + AC_MSG_RESULT([${try_][$1][}]) + m4_popdef([gp_lib_arg])dnl + if test "x${[try_][$1]}" = "xautodetect"; then + # OK, we have to autodetect. + # We start autodetection with the cleanest known method: pkg-config + if test "x${[have_][$1]}" = "xno"; then + # we need that line break after the PKG_CHECK_MODULES + m4_ifval([$3], + [PKG_CHECK_MODULES([$1],[$2][ $3],[have_][$1][=yes],[:])], + [PKG_CHECK_MODULES([$1],[$2], [have_][$1][=yes],[:])] + ) + fi + # If pkg-config didn't find anything, try the libfoo-config program + # certain known libraries ship with. + if test "x${[have_][$1]}" = "xno"; then + AC_MSG_CHECKING([$2][ config program]) + m4_pushdef([gp_lib_config],[m4_if([$2],[libusb],[libusb-config], + [$2],[libgphoto2],[gphoto2-config], + [$2],[libgphoto2_port],[gphoto2-port-config], + [$2],[gdlib],[gdlib-config], + [$2],[libxml-2.0],[xml2-config], + [none])])dnl + AC_MSG_RESULT([gp_lib_config]) + AC_PATH_PROG([$1][_CONFIG_PROG],[gp_lib_config]) + if test -n "${[$1][_CONFIG_PROG]}" && + test "${[$1][_CONFIG_PROG]}" != "none"; then + m4_ifval([$3],[ + AC_MSG_CHECKING([for ][$2][ version according to ][gp_lib_config]) + m4_pushdef([gp_lib_compop],[regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*.*], [\1])])dnl comparison operator + m4_if( gp_lib_compop,[>=],[_][$1][_COMPN="-lt"], + gp_lib_compop,[>], [_][$1][_COMPN="-le"], + gp_lib_compop,[<], [_][$1][_COMPN="-ge"], + gp_lib_compop,[<=],[_][$1][_COMPN="-gt"], + gp_lib_compop,[=], [_][$1][_COMPN="-ne"], + [m4_errprint(__file__:__line__:[ Error: +Illegal version comparison operator: `gp_lib_compop' +It must be one of ">=", ">", "<", "<=", "=". +])m4_exit(1)]) + m4_popdef([gp_lib_compop])dnl + # split requested version number using m4 regexps + _[$1]_REQ_1="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\).*], [\2])" + _[$1]_REQ_2="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\)\.\([0-9]+\).*], [\3])" + _[$1]_REQ_3="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\)\.\([0-9]+\)\.\([0-9]+\).*], [\4])" + _[$1]_REQ_4="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\)\.\([0-9]+\)\.\([0-9]+\)\(.*\)], [\5])" + # split installed version number via shell and sed + _[$1]_VERSION="$("${[$1][_CONFIG_PROG]}" --version | sed 's/^.* //')" + _[$1]_VER_1="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\).*/\1/g')" + _[$1]_VER_2="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/g')" + _[$1]_VER_3="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/g')" + _[$1]_VER_4="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)\(.*\)/\4/g')" + AC_MSG_RESULT([${_][$1][_VERSION}]) + _tmp=false + if test "${_[$1]_VER_1}" "${_[$1]_COMPN}" "${_[$1]_REQ_1}"; then _tmp=true; + elif test "${_[$1]_VER_2}" "${_[$1]_COMPN}" "${_[$1]_REQ_2}"; then _tmp=true; + elif test "${_[$1]_VER_3}" "${_[$1]_COMPN}" "${_[$1]_REQ_3}"; then _tmp=true; + elif test "x${_[$1]_VER_4}" = "x" && test "x${_[$1]_REQ_4}" != "x"; then _tmp=true; + elif test "${_[$1]_VER_4}" "${_[$1]_COMPN}" "${_[$1]_REQ_4}"; then _tmp=true; + fi + AC_MSG_CHECKING([if ][$2][ version is matching requirement ][$3]) + if "${_tmp}"; then + AC_MSG_RESULT([no]) + AC_MSG_ERROR([Version requirement ][$2][ ][$3][ not met. Found: ${_][$1][_VERSION}]) + else + AC_MSG_RESULT([yes]) + fi + ])dnl if version requirement given + AC_MSG_CHECKING([for ][$2][ parameters from ][gp_lib_config]) + [$1]_LIBS="$(${[$1][_CONFIG_PROG]} --libs || echo "*error*")" + [$1]_CFLAGS="$(${[$1][_CONFIG_PROG]} --cflags || echo "*error*")" + if test "x${[$1]_LIBS}" = "*error*" || + test "x${[$1]_CFLAGS}" = "*error*"; then + AC_MSG_RESULT([error]) + else + have_[$1]=yes + AC_MSG_RESULT([ok]) + fi + fi + m4_popdef([gp_lib_config])dnl + fi + m4_ifval([$3],[# Version requirement given, so we do not rely on probing.],[ + # Neither pkg-config, nor the libfoo-config program have found anything. + # So let's just probe the system. + AC_MSG_WARN([The `$2' library could not be found using pkg-config or its known config program. +No version checks will be performed if it is found using any other method.]) + if test "x${[have_][$1]}" = "xno"; then + ifs="$IFS" + IFS=":" # FIXME: for W32 and OS/2 we may need ";" here + for _libdir_ in \ + ${LD_LIBRARY_PATH} \ + "${libdir}" \ + "${prefix}/lib64" "${prefix}/lib" \ + /usr/lib64 /usr/lib \ + /usr/local/lib64 /usr/local/lib \ + /opt/lib64 /opt/lib + do + IFS="$ifs" + for _soext_ in .la ${soext} .a; do + if test -f "${_libdir_}/[$2]${_soext_}" + then + if test "x${_soext_}" = "x.la" || + test "x${_soext_}" = "x.a"; then + [$1]_LIBS="${_libdir_}/[$2]${_soext_}" + else + [$1]_LIBS="-L${_libdir_} -l$(echo "$2" | sed 's/^lib//')" + fi + break + fi + done + if test "x${[$1][_LIBS]}" != "x"; then + break + fi + done + IFS="$ifs" + if test "x${[$1][_LIBS]}" != "x"; then + have_[$1]=yes + fi + fi + ]) + elif test "x${[try_][$1]}" = "xno"; then + : + else + # We've been given a prefix to look in for library $2. + # We start looking for $2.la files first. + AC_MSG_CHECKING([for ][$2][.la file in ${[try_][$1]}]) + if test -f "${[try_][$1]}/lib/[$2].la"; then + [$1][_LIBS]="${[try_][$1]}/lib/[$2].la" + [$1][_CFLAGS]="-I${[try_][$1]}/include" + AC_MSG_RESULT([libtool file $][$1][_LIBS (good)]) + have_[$1]=yes + elif test -f "${[try_][$1]}/lib64/[$2].la"; then # HACK + [$1][_LIBS]="${[try_][$1]}/lib64/[$2].la" + [$1][_CFLAGS]="-I${[try_][$1]}/include" + AC_MSG_RESULT([libtool file $][$1][_LIBS (good)]) + have_[$1]=yes + else + AC_MSG_RESULT([wild guess that something is in $try_][$1]) + [$1][_LIBS]="-L${[try_][$1]}/lib -l$(echo "$2" | sed 's/^lib//')" + [$1][_CFLAGS]="-I${[try_][$1]}/include" + have_[$1]=yes + AC_MSG_WARN([ +* Warning: +* libtool file $2.la could not be found. +* We may be linking against the WRONG library. +]) + fi + fi +elif test "x${[$1][_LIBS]}" != "x" && test "x${[$1][_CFLAGS]}" != "x"; then + AC_MSG_RESULT([user-defined]) + userdef_[$1]=yes + have_[$1]=yes +else + AC_MSG_RESULT([broken call]) + AC_MSG_ERROR([ +* Fatal: +* When calling configure for ${PACKAGE_TARNAME} +* ${PACKAGE_NAME} +* either set both [$1][_LIBS] *and* [$1][_CFLAGS] +* or neither. +]) +fi +AC_SUBST([REQUIREMENTS_FOR_][$1]) +dnl +dnl ACTION-IF-FOUND +dnl +m4_ifval([$6],[dnl +if test "x${[have_][$1]}" = "xyes"; then +# ACTION-IF-FOUND +$6 +fi +])dnl +dnl +dnl ACTION-IF-NOT-FOUND +dnl +m4_ifval([$7],[dnl +if test "x${[have_][$1]}" = "xno"; then +# ACTION-IF-NOT-FOUND +$7 +fi +])dnl +dnl +dnl Run our own test compilation +dnl +m4_ifval([$4],[dnl +if test "x${[have_][$1]}" = "xyes"; then +dnl AC_MSG_CHECKING([whether ][$2][ test compile succeeds]) +dnl AC_MSG_RESULT([${[have_][$1]}]) +CPPFLAGS_save="$CPPFLAGS" +CPPFLAGS="${[$1]_CFLAGS}" +AC_CHECK_HEADER([$4],[have_][$1][=yes],[have_][$1][=no]) +CPPFLAGS="$CPPFLAGS_save" +fi +])dnl +dnl +dnl Run our own test link +dnl Does not work for libraries which be built after configure time, +dnl so we deactivate it for them (userdef_). +dnl +m4_ifval([$5],[dnl +if test "x${[userdef_][$1]}" = "xno" && test "x${[have_][$1]}" = "xyes"; then + AC_MSG_CHECKING([for function ][$5][ in ][$2]) + LIBS_save="$LIBS" + LIBS="${[$1]_LIBS}" + AC_TRY_LINK_FUNC([$5],[],[have_][$1][=no]) + LIBS="$LIBS_save" + AC_MSG_RESULT([${[have_][$1]}]) +fi +])dnl +dnl +dnl Abort configure script if mandatory, but not found +dnl +m4_if([$8],[mandatory],[ +if test "x${[have_][$1]}" = "xno"; then + AC_MSG_ERROR([ +PKG_CONFIG_PATH=${PKG_CONFIG_PATH} +[$1][_LIBS]=${[$1][_LIBS]} +[$1][_CFLAGS]=${[$1][_CFLAGS]} + +* Fatal: ${PACKAGE_NAME} requires $2 $3 to build. +* +* Possible solutions: +* - set PKG_CONFIG_PATH to adequate value +* - call configure with [$1][_LIBS]=.. and [$1][_CFLAGS]=.. +* - call configure with one of the --with-$2 parameters +][m4_ifval([$9],[dnl +* - get $2 and install it: +* $9],[dnl +* - get $2 and install it])]) +fi +])dnl +dnl +dnl Abort configure script if not found and not explicitly disabled +dnl +m4_if([$8],[disable-explicitly],[ +if test "x${[try_][$1]}" != "xno" && test "x${[have_][$1]}" = "xno"; then + AC_MSG_ERROR([ +PKG_CONFIG_PATH=${PKG_CONFIG_PATH} +[$1][_LIBS]=${[$1][_LIBS]} +[$1][_CFLAGS]=${[$1][_CFLAGS]} + +* Fatal: ${PACKAGE_NAME} by default requires $2 $3 to build. +* You must explicitly disable $2 to build ${PACKAGE_TARNAME} without it. +* +* Possible solutions: +* - call configure with --with-$2=no or --without-$2 +* - set PKG_CONFIG_PATH to adequate value +* - call configure with [$1][_LIBS]=.. and [$1][_CFLAGS]=.. +* - call configure with one of the --with-$2 parameters +][m4_ifval([$9],[dnl +* - get $2 and install it: +* $9],[dnl +* - get $2 and install it +])][m4_if([$2],[libusb],[dnl +* - if you have libusb >= 1.0 installed, you must also install +* either the libusb0 compat library or a libusb 0.x version +])]) +fi +])dnl +AM_CONDITIONAL([HAVE_][$1], [test "x$have_[$1]" = "xyes"]) +if test "x$have_[$1]" = "xyes"; then + AC_DEFINE([HAVE_][$1], 1, [whether we compile with ][$2][ support]) + GP_CONFIG_MSG([$2],[yes])dnl + AC_MSG_CHECKING([$2][ library flags]) + AC_MSG_RESULT(["${[$1][_LIBS]}"]) + AC_MSG_CHECKING([$2][ cpp flags]) + AC_MSG_RESULT(["${[$1][_CFLAGS]}"]) +else + [REQUIREMENTS_FOR_][$1][=] + GP_CONFIG_MSG([$2],[no])dnl +fi +dnl AC_SUBST is done implicitly by AC_ARG_VAR above. +dnl AC_SUBST([$1][_LIBS]) +dnl AC_SUBST([$1][_CFLAGS]) +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([_GP_CHECK_LIBRARY_SYNTAX_ERROR],[dnl +m4_errprint(__file__:__line__:[ Error: +*** Calling $0 macro with old syntax +*** Aborting. +])dnl +m4_exit(1)dnl +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CHECK_LIBRARY],[dnl +m4_if([$4], [mandatory], [_GP_CHECK_LIBRARY_SYNTAX_ERROR($0)], + [$4], [default-enabled], [_GP_CHECK_LIBRARY_SYNTAX_ERROR($0)], + [$4], [default-disabled], [_GP_CHECK_LIBRARY_SYNTAX_ERROR($0)])dnl +m4_if([$8], [], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[mandatory],[$9])], + [$8], [default-on], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [$8], [disable-explicitly], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [$8], [default-off], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [$8], [mandatory], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [m4_errprint(__file__:__line__:[ Error: +Illegal argument 6 to $0: `$6' +It must be one of "default-on", "default-off", "mandatory". +])m4_exit(1)])dnl +])dnl +dnl +m4_pattern_disallow([GP_CHECK_LIBRARY]) +m4_pattern_disallow([_GP_CHECK_LIBRARY]) +m4_pattern_disallow([_GP_CHECK_LIBRARY_SYNTAX_ERROR]) +m4_pattern_disallow([_GP_CHECK_LIBRARY_SOEXT]) +dnl +dnl #################################################################### +dnl +dnl Please do not remove this: +dnl filetype: 6e60b4f0-acb2-4cd5-8258-42014f92bd2c +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-popt.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-popt.m4 new file mode 100644 index 00000000..f88f8695 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-popt.m4 @@ -0,0 +1,241 @@ +dnl @synopsis GP_CHECK_POPT(FLAG) +dnl +dnl Check whether libpopt is available. +dnl FLAG must be one of +dnl "mandatory" +dnl "default-enabled" +dnl "default-disabled" +dnl +AC_DEFUN([GP_CHECK_POPT],[ +# +# [GP_CHECK_POPT] +# +AC_REQUIRE([GP_CONFIG_MSG])dnl +m4_if([$1],[mandatory], [_GP_CHECK_POPT([mandatory])], + [$1],[default-enabled], [_GP_CHECK_POPT([disable])], + [$1],[default-disabled], [_GP_CHECK_POPT([enable])], + [m4_errprint(__file__:__line__:[ Error: +Illegal argument to $0: `$1' +Valid values are: mandatory, default-enabled, default-disabled +])m4_exit(1)])dnl +])dnl +dnl +AC_DEFUN([_GP_CHECK_POPT],[ +m4_if([$1],[mandatory],[ +try_popt=yes +require_popt=yes +],[ +try_popt=auto +require_popt=no +AC_ARG_ENABLE([popt], +[AS_HELP_STRING([--$1-popt],[Do not use popt])], +[ if test "x$enableval" = xno \ + || test "x$enableval" = xoff \ + || test "x$enableval" = xfalse; + then + try_popt=no + require_popt=no + elif test "x$enableval" = xyes \ + || test "x$enableval" = xon \ + || test "x$enableval" = xtrue + then + try_popt=yes + require_popt=yes + fi +])dnl +])dnl + +AC_MSG_CHECKING([whether popt is required]) +AC_MSG_RESULT([${require_popt}]) + +if test "$require_popt" != yes; then + AC_MSG_CHECKING([whether popt is requested]) + AC_MSG_RESULT([${try_popt}]) +fi + +dnl Implicit AC_SUBST +AC_ARG_VAR([POPT_CFLAGS],[cppflags to compile with libpopt])dnl +AC_ARG_VAR([POPT_LIBS],[location of libpopt to link against])dnl + +have_popt=no + +if test "x$POPT_CFLAGS" = "x" && test "x$POPT_LIBS" = "x"; then + + # try to find options to compile popt.h + CPPFLAGS_save="$CPPFLAGS" + popth_found=no + case "$MSYSTEM" in + MINGW32) + if test -n "/mingw32"; then + : + elif test -d "/mingw32/include"; then + CPPFLAGS="-I/mingw32/include ${CPPFLAGS}" + else + continue + fi + ac_cv_header_popt_h="" + unset ac_cv_header_popt_h + AC_CHECK_HEADER([popt.h], [popth_found=yes]) + ;; + MINGW64) + if test -n "${popt_prefix}"; then + : + elif test -d "/mingw64/include"; then + CPPFLAGS="-I/mingw64/include ${CPPFLAGS}" + else + continue + fi + ac_cv_header_popt_h="" + unset ac_cv_header_popt_h + AC_CHECK_HEADER([popt.h], [popth_found=yes]) + ;; + *) + for popt_prefix in "" /usr /usr/local + do + if test -n "${popt_prefix}"; then + : + elif test -d "${popt_prefix}/include"; then + CPPFLAGS="-I${popt_prefix}/include ${CPPFLAGS}" + else + continue + fi + ac_cv_header_popt_h="" + unset ac_cv_header_popt_h + AC_CHECK_HEADER([popt.h], [popth_found=yes]) + if test "$popth_found" = yes; then break; fi + done + ;; + esac + CPPFLAGS="$CPPFLAGS_save" + if test "$popth_found" = "yes"; then + if test "$popt_prefix" = ""; then + POPT_CFLAGS="" + else + POPT_CFLAGS="-I${popt_prefix}/include" + fi + elif test "$require_popt" = "yes"; then + AC_MSG_ERROR([ +* Cannot autodetect popt.h +* +* Set POPT_CFLAGS and POPT_LIBS correctly. +]) + fi + + # try to find options to link against popt + LDFLAGS_save="$LDFLAGS" + popt_links=no + case "$MSYSTEM" in + MINGW32) +# for ldir in "" lib; do + popt_libdir="/mingw32/lib" + if test "${popt_libdir}" = "/"; then + popt_libdir="" + elif test -d "${popt_libdir}"; then + LDFLAGS="-L${popt_libdir} ${LDFLAGS}" + else + continue + fi + # Avoid caching of results + ac_cv_lib_popt_poptStuffArgs="" + unset ac_cv_lib_popt_poptStuffArgs + AC_CHECK_LIB([popt], [poptStuffArgs], [popt_links=yes]) + ;; + MINGW64) + popt_libdir="/mingw64/lib" + if test "${popt_libdir}" = "/"; then + popt_libdir="" + elif test -d "${popt_libdir}"; then + LDFLAGS="-L${popt_libdir} ${LDFLAGS}" + else + continue + fi + # Avoid caching of results + ac_cv_lib_popt_poptStuffArgs="" + unset ac_cv_lib_popt_poptStuffArgs + AC_CHECK_LIB([popt], [poptStuffArgs], [popt_links=yes]) + ;; + *) + for popt_prefix in /usr "" /usr/local; do + # We could have "/usr" and "lib64" at the beginning of the + # lists. Then the first tested location would + # incidentally be the right one on 64bit systems, and + # thus work around a bug in libtool on 32bit systems: + # + # 32bit libtool doesn't know about 64bit systems, and so the + # compilation will fail when linking a 32bit library from + # /usr/lib to a 64bit binary. + # + # This hack has been confirmed to workwith a + # 32bit Debian Sarge and 64bit Fedora Core 3 system. + for ldir in lib64 "" lib; do + popt_libdir="${popt_prefix}/${ldir}" + if test "${popt_libdir}" = "/"; then + popt_libdir="" + elif test -d "${popt_libdir}"; then + LDFLAGS="-L${popt_libdir} ${LDFLAGS}" + else + continue + fi + # Avoid caching of results + ac_cv_lib_popt_poptStuffArgs="" + unset ac_cv_lib_popt_poptStuffArgs + AC_CHECK_LIB([popt], [poptStuffArgs], [popt_links=yes]) + if test "$popt_links" = yes; then break; fi + done + if test "$popt_links" = yes; then break; fi + done + ;; + esac + LDFLAGS="$LDFLAGS_save" + if test "$popt_links" = "yes"; then + if test "$popt_libdir" = ""; then + POPT_LIBS="-lpopt" + else + POPT_LIBS="-L${popt_libdir} -lpopt" + fi + have_popt=yes + elif test "$require_popt" = "yes"; then + AC_MSG_ERROR([ +* Cannot autodetect library directory containing popt +* +* Set POPT_CFLAGS and POPT_LIBS correctly. +]) + fi +elif test "x$POPT_CFLAGS" != "x" && test "x$POPT_LIBS" != "x"; then + # just use the user specivied option + popt_msg="yes (user specified)" + have_popt=yes +else + AC_MSG_ERROR([ +* Fatal: Either set both POPT_CFLAGS and POPT_LIBS or neither. +]) +fi + +AC_MSG_CHECKING([if popt is functional]) +if test "$require_popt$have_popt" = "yesno"; then + AC_MSG_RESULT([no, but required]) + AC_MSG_ERROR([ +* popt library not found +* Fatal: ${PACKAGE_NAME} (${PACKAGE_TARNAME}) requires popt +* Please install it and/or set POPT_CFLAGS and POPT_LIBS. +]) +fi +AC_MSG_RESULT([${have_popt}]) + +GP_CONFIG_MSG([use popt library], [${have_popt}]) +if test "$have_popt" = "yes"; then + AC_DEFINE([HAVE_POPT],[1],[whether the popt library is available]) + GP_CONFIG_MSG([popt libs],[${POPT_LIBS}]) + GP_CONFIG_MSG([popt cppflags],[${POPT_CFLAGS}]) +fi +AM_CONDITIONAL([HAVE_POPT],[test "$have_popt" = "yes"]) +])dnl +dnl +dnl Please do not remove this: +dnl filetype: 7595380e-eff3-49e5-90ab-e40f1d544639 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-shell-environment.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-shell-environment.m4 new file mode 100644 index 00000000..b9850e7a --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-check-shell-environment.m4 @@ -0,0 +1,48 @@ +dnl @synopsis GP_CHECK_SHELL_ENVIRONMENT([SHOW-LOCALE-VARS]) +dnl +dnl Check that the shell environment is sane. +dnl +dnl If SHOW-LOCALE-VARS is set to [true], print all LC_* and LANG* +dnl variables at configure time. (WARNING: This is not portable!) +dnl +dnl +AC_DEFUN([GP_CHECK_SHELL_ENVIRONMENT], +[ +# make sure "cd" doesn't print anything on stdout +if test x"${CDPATH+set}" = xset +then + CDPATH=: + export CDPATH +fi + +# make sure $() command substitution works +AC_MSG_CHECKING([for POSIX sh \$() command substitution]) +if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # '''' +then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) + uname=`uname 2>&1` # '' + uname_a=`uname -a 2>&1` # '' + AC_MSG_ERROR([ + +* POSIX sh \$() command substition does not work with this shell. +* +* You are running a very rare species of shell. Please report this +* sighting to <${PACKAGE_BUGREPORT}>: +* SHELL=${SHELL} +* uname=${uname} +* uname-a=${uname_a} +* Please also include your OS and version. +* +* Run this configure script using a better (i.e. POSIX compliant) shell. +]) +fi +dnl +m4_if([$1],[true],[dnl +printenv | grep -E '^(LC_|LANG)' +])dnl + +dnl +])dnl +dnl diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-config-msg.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-config-msg.m4 new file mode 100644 index 00000000..cc193518 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-config-msg.m4 @@ -0,0 +1,102 @@ +dnl +dnl GP_CONFIG_INIT +dnl use default LHS width (called implicitly if not called explicitly) +dnl GP_CONFIG_INIT([WIDTH-OF-LHS]) +dnl explicitly set the LHS width to the given value +dnl +dnl GP_CONFIG_MSG +dnl empty output line +dnl GP_CONFIG_MSG([LHS],[RHS]) +dnl formatted output line "LHS: RHS" +dnl +dnl GP_CONFIG_OUTPUT +dnl print all the output messages we collected in the mean time +dnl +dnl Simple way to print a configuration summary at the end of ./configure. +dnl +dnl Example usage: +dnl +dnl GP_CONFIG_INIT +dnl GP_CONFIG_MSG([Source code location],[${srcdir}]) +dnl GP_CONFIG_MSG([Compiler],[${CC}]) +dnl GP_CONFIG_MSG +dnl GP_CONFIG_MSG([Feature foo],[${foo}]) +dnl GP_CONFIG_MSG([Location of bar],[${bar}]) +dnl [...] +dnl AC_OUTPUT +dnl GP_CONFIG_OUTPUT +dnl +dnl +AC_DEFUN([GP_CONFIG_INIT], +[dnl +AC_REQUIRE([GP_CHECK_SHELL_ENVIRONMENT]) +dnl the empty string must contain at least as many spaces as the substr length +dnl FIXME: let m4 determine that length +dnl (collect left parts in array and choose largest length) +m4_if([$1],[],[gp_config_len="30"],[gp_config_len="$1"]) +gp_config_empty="" +gp_config_len3="$(expr "$gp_config_len" - 3)" +n="$gp_config_len" +while test "$n" -gt 0; do + gp_config_empty="${gp_config_empty} " + n="$(expr "$n" - 1)" +done +gp_config_msg=" +Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}): +" +])dnl +dnl +dnl +AC_DEFUN([GP_CONFIG_MSG], +[AC_REQUIRE([GP_CONFIG_INIT])dnl +m4_if([$1],[],[ +gp_config_msg="${gp_config_msg} +" +],[$2],[],[ +gp_config_msg="${gp_config_msg} + [$1] +" +],[ +gp_config_msg_len="$(expr "[$1]" : '.*')" +if test "$gp_config_msg_len" -ge "$gp_config_len"; then + gp_config_msg_lhs="$(expr "[$1]" : "\(.\{0,${gp_config_len3}\}\)")..:" +else + gp_config_msg_lhs="$(expr "[$1]:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")" +fi +gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} [$2] +" +])])dnl +dnl +AC_DEFUN([GP_CONFIG_MSG_SUBDIRS],[dnl +# Message about configured subprojects +if test "x$subdirs" != "x"; then + GP_CONFIG_MSG()dnl + _subdirs="" + for sd in $subdirs; do + ssd="$(basename "$sd")" + if test "x$_subdirs" = "x"; then + _subdirs="$ssd"; + else + _subdirs="$_subdirs $ssd" + fi + done + GP_CONFIG_MSG([Subprojects],[${_subdirs}])dnl +fi +])dnl +dnl +AC_DEFUN([GP_CONFIG_OUTPUT], +[AC_REQUIRE([GP_CONFIG_INIT])dnl +AC_REQUIRE([GP_CONFIG_MSG])dnl +AC_REQUIRE([GP_CONFIG_MSG_SUBDIRS])dnl +echo "${gp_config_msg} +You may run \"make\" and \"make install\" now." +])dnl +dnl +dnl Please do not remove this: +dnl filetype: de774af3-dc3b-4b1d-b6f2-4aca35d3da16 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-documentation.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-documentation.m4 new file mode 100644 index 00000000..a73301b6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-documentation.m4 @@ -0,0 +1,113 @@ +dnl +dnl check where to install documentation +dnl +dnl determines documentation "root directory", i.e. the directory +dnl where all documentation will be placed in +dnl + +AC_DEFUN([GP_CHECK_DOC_DIR], +[ +AC_BEFORE([$0], [GP_BUILD_GTK_DOCS])dnl +AC_BEFORE([$0], [GP_CHECK_DOXYGEN])dnl + +AC_ARG_WITH([doc-dir], +[AS_HELP_STRING([--with-doc-dir=PATH], +[Where to install docs [default=autodetect]])]) + +# check for the main ("root") documentation directory +AC_MSG_CHECKING([main docdir]) + +if test "x${with_doc_dir}" != "x" +then # docdir is given as parameter + docdir="${with_doc_dir}" + AC_MSG_RESULT([${docdir} (from parameter)]) +else # otherwise invent a docdir hopefully compatible with system policy + if test -d "/usr/share/doc" + then + maindocdir='${prefix}/share/doc' + AC_MSG_RESULT([${maindocdir} (FHS style)]) + elif test -d "/usr/doc" + then + maindocdir='${prefix}/doc' + AC_MSG_RESULT([${maindocdir} (old style)]) + else + maindocdir='${datadir}/doc' + AC_MSG_RESULT([${maindocdir} (default value)]) + fi + AC_MSG_CHECKING([package docdir]) + # check whether to include package version into documentation path + # FIXME: doesn't work properly. + if ls -d /usr/{share/,}doc/make-[0-9]* > /dev/null 2>&1 + then + docdir="${maindocdir}/${PACKAGE}-${VERSION}" + AC_MSG_RESULT([${docdir} (redhat style)]) + else + docdir="${maindocdir}/${PACKAGE}" + AC_MSG_RESULT([${docdir} (default style)]) + fi +fi + +AC_SUBST([docdir]) +])dnl + +dnl +dnl check whether to build docs and where to: +dnl +dnl * determine presence of prerequisites (only gtk-doc for now) +dnl * determine destination directory for HTML files +dnl + +AC_DEFUN([GP_BUILD_GTK_DOCS], +[ +# docdir has to be determined in advance +AC_REQUIRE([GP_CHECK_DOC_DIR]) + +# --------------------------------------------------------------------------- +# gtk-doc: We use gtk-doc for building our documentation. However, we +# require the user to explicitely request the build. +# --------------------------------------------------------------------------- +try_gtkdoc=false +gtkdoc_msg="no (not requested)" +have_gtkdoc=false +AC_ARG_ENABLE([docs], +[AS_HELP_STRING([--enable-docs], +[Use gtk-doc to build documentation [default=no]])],[ + if test x$enableval = xyes; then + try_gtkdoc=true + fi +]) +if $try_gtkdoc; then + AC_PATH_PROG([GTKDOC],[gtkdoc-mkdb]) + if test -n "${GTKDOC}"; then + have_gtkdoc=true + gtkdoc_msg="yes" + else + gtkdoc_msg="no (http://www.gtk.org/rdp/download.html)" + fi +fi +AM_CONDITIONAL([ENABLE_GTK_DOC], [$have_gtkdoc]) +GP_CONFIG_MSG([build API docs with gtk-doc],[$gtkdoc_msg]) + + +# --------------------------------------------------------------------------- +# Give the user the possibility to install html documentation in a +# user-defined location. +# --------------------------------------------------------------------------- +AC_ARG_WITH([html-dir], +[AS_HELP_STRING([--with-html-dir=PATH], +[Where to install html docs [default=autodetect]])]) + +AC_MSG_CHECKING([for html dir]) +if test "x${with_html_dir}" = "x" ; then + htmldir="${docdir}/html" + AC_MSG_RESULT([${htmldir} (default)]) +else + htmldir="${with_html_dir}" + AC_MSG_RESULT([${htmldir} (from parameter)]) +fi +AC_SUBST([htmldir]) +apidocdir="${htmldir}/api" +AC_SUBST([apidocdir]) + +])dnl + diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-dynamic-libraries.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-dynamic-libraries.m4 new file mode 100644 index 00000000..a83fc0f7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-dynamic-libraries.m4 @@ -0,0 +1,60 @@ +AC_DEFUN([GP_DYNAMIC_LIBRARIES],[dnl +dnl We require either of those +dnl AC_REQUIRE([AC_LIBTTDL_INSTALLABLE])dnl +dnl AC_REQUIRE([AC_LIBLTDL_CONVENIENCE])dnl +AC_REQUIRE([AC_LIBTOOL_DLOPEN])dnl +AC_REQUIRE([AC_PROG_LIBTOOL])dnl +dnl --------------------------------------------------------------------------- +dnl Check for libltdl: +dnl - lt_dlforeachfile has been introduced in libtool-1.4. +dnl - However, there are still systems out there running libtool-1.3. +dnl For those, we will use our shipped libltdl. This has the welcome +dnl side effect that we don't have to distinguish between libltdl 1.3 with +dnl and without the notorious segfault bug. +dnl - FIXME: In case we're using our own version, we have to check whether +dnl -ldl is required? +dnl --------------------------------------------------------------------------- +# $0 +ltdl_msg="no (not found or too old)" +have_ltdl=false +LIBS_save="$LIBS" +LIBS="$LIBLTDL" +AC_CHECK_LIB([ltdl], [lt_dlforeachfile],[ + CPPFLAGS_save="$CPPFLAGS" + CPPFLAGS="$LTDLINCL" + AC_CHECK_HEADER([ltdl.h],[ + AC_DEFINE([HAVE_LTDL],1,[whether we use libltdl]) + ltdl_msg="yes (from system)" + have_ltdl=: + ]) + CPPFLAGS="$CPPFLAGS_save" +]) +LIBS="$LIBS_save" +if "$have_ltdl"; then :; else + AC_MSG_CHECKING([for included libltdl]) + if test -d "$srcdir/libltdl"; then + LIBLTDL="\$(top_builddir)/libltdl/libltdlc.la" + LTDLINCL="-I\$(top_srcdir)/libltdl" + have_ltdl=: + ltdl_msg="yes (included)" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + AC_MSG_ERROR([ +*** Could not detect or configure libltdl. +]) + fi +fi +GP_CONFIG_MSG([libltdl],["${ltdl_msg}"]) +])dnl +dnl +dnl #################################################################### +dnl +dnl Please do not remove this: +dnl filetype: 2b993145-3256-47b4-84fd-ec4dcdf4fdf9 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-gettext-hack.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-gettext-hack.m4 new file mode 100644 index 00000000..3f5dbb72 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-gettext-hack.m4 @@ -0,0 +1,78 @@ +dnl +dnl GP_GETTEXT_HACK +dnl +dnl gettext hack, originally designed for libexif, libgphoto2, and Co. +dnl This creates a po/Makevars file with adequate values if the +dnl po/Makevars.template is present. +dnl +dnl Example usage: +dnl GP_GETTEXT_HACK([${PACKAGE_TARNAME}-${LIBFOO_CURRENT}], +dnl [Copyright Holder], +dnl [foo-translation@example.org]) +dnl ALL_LINGUAS="de es fr" +dnl AM_GNU_GETTEXT_VERSION([0.14.1]) +dnl AM_GNU_GETTEXT([external]) +dnl AM_PO_SUBDIRS() +dnl AM_ICONV() +dnl GP_GETTEXT_FLAGS +dnl +dnl You can leave out the GP_GETTEXT_HACK parameters if you want to, +dnl GP_GETTEXT_HACK will try fall back to sensible values in that case: +dnl + +AC_DEFUN([GP_GETTEXT_HACK], +[ +AC_BEFORE([$0], [AM_GNU_GETTEXT])dnl +AC_BEFORE([$0], [AM_GNU_GETTEXT_VERSION])dnl +m4_if([$1],[],[GETTEXT_PACKAGE="${PACKAGE_TARNAME}"],[GETTEXT_PACKAGE="$1"]) +AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], + [The gettext domain we're using]) +AC_SUBST([GETTEXT_PACKAGE]) +sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|" +m4_if([$2],[],[],[sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = $2|"]) +m4_ifval([$3],[ +if test -n "$PACKAGE_BUGREPORT"; then + sed_mb="${PACKAGE_BUGREPORT}" +else + AC_MSG_ERROR([ +*** Your configure.{ac,in} is wrong. +*** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax) +*** or give [GP_GETTEXT_HACK] the third parameter. +*** +]) +fi +],[ +sed_mb="$3" +]) +sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|" +# Not so sure whether this hack is all *that* evil... +AC_MSG_CHECKING([for po/Makevars requiring hack]) +if test -f "${srcdir}/po/Makevars.template"; then + sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars" + AC_MSG_RESULT([yes, done.]) +else + AC_MSG_RESULT([no]) +fi +]) + +AC_DEFUN([GP_GETTEXT_FLAGS], +[ +AC_REQUIRE([AM_GNU_GETTEXT]) +AC_REQUIRE([GP_CONFIG_INIT]) +if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then + AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl" +fi +GP_CONFIG_MSG([Use translations],[${USE_NLS}]) +if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then + GP_CONFIG_MSG([Use included libintl],[${BUILD_INCLUDED_LIBINTL}]) +fi +]) + +dnl Please do not remove this: +dnl filetype: 71ff3941-a5ae-4677-a369-d7cb01f92c81 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. + +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-internal-docs.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-internal-docs.m4 new file mode 100644 index 00000000..8593620a --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-internal-docs.m4 @@ -0,0 +1,29 @@ +dnl +dnl +dnl +AC_DEFUN([GP_INTERNAL_DOCS],[dnl +# Whether to enable the internal docs build. +# +# This takes quite some time due to the generation of lots of call +# graphs, so it is disabled by default. +set_enable_internal_docs=no +AC_ARG_ENABLE([internal-docs], [dnl +AS_HELP_STRING([--enable-internal-docs], +[Build internal code docs if doxygen available])], [dnl +dnl If either --enable-foo nor --disable-foo were given, execute this. + if test "x$enableval" = xno \ + || test "x$enableval" = xoff \ + || test "x$enableval" = xfalse; + then + set_enable_internal_docs=no + elif test "x$enableval" = xyes \ + || test "x$enableval" = xon \ + || test "x$enableval" = xtrue + then + set_enable_internal_docs=yes + fi +]) +AC_MSG_CHECKING([whether to create internal code docs]) +AC_MSG_RESULT([${set_enable_internal_docs}]) +AM_CONDITIONAL([ENABLE_INTERNAL_DOCS], [test "x${set_enable_internal_docs}" = "xyes"]) +])dnl diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-libltdl.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-libltdl.m4 new file mode 100644 index 00000000..2a37c930 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-libltdl.m4 @@ -0,0 +1,59 @@ +dnl Written by Hans Ulrich Niedermann +dnl LDFLAGS vs LIBS fix by Dan Nicholson +dnl +dnl We are using our own libltdl checks instead of AC_WITH_LTDL +dnl because we do not want to ship our own copy of libltdl any more. +dnl Not shipping libltdl makes it possible to ditch our own autogen.sh +dnl and relying on standard autoconf's "autoreconf". +dnl +dnl Look for external libltdl, not shipping internal libltdl. +AC_DEFUN([GP_LIB_LTDL],[dnl +AC_ARG_VAR([LTDLINCL],[CFLAGS for compiling with libltdl]) +AC_ARG_VAR([LIBLTDL],[LIBS to add for linking against libltdl]) +if test "x${LTDLINCL}${LIBLTDL}" = "x"; then +AC_CHECK_HEADER([ltdl.h], +[dnl +AC_CHECK_LIB([ltdl], [lt_dlinit],[dnl +LTDLINCL="" +LIBLTDL="-lltdl" +AC_DEFINE([HAVE_LTDL],[1],[Whether libltdl (of libtool fame) is present]) +],[dnl +AC_MSG_ERROR([ +$PACKAGE requires the ltdl library, included with libtool + +Please make sure that the proper development package is installed +(libltdl-dev, libtool-ltdl-devel, etc.) +])[]dnl +])dnl +]) +else + AC_MSG_CHECKING([for libltdl flags]) + AC_MSG_RESULT([set explicitly: ${LTDLINCL} ${LIBLTDL}]) +fi +AC_SUBST([LTDLINCL]) +AC_SUBST([LIBLTDL]) +dnl +dnl Make sure we can actually compile and link against libltdl +AC_LANG_PUSH([C]) +AC_MSG_CHECKING([that we can compile and link with libltdl]) +saved_CPPFLAGS="$CPPFLAGS" +saved_LIBS="$LIBS" +CPPFLAGS="$CPPFLAGS $LTDLINCL" +LIBS="$LIBS $LIBLTDL" +AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl +#include /* for NULL */ +#include /* for lt_* */ +],[dnl +int ret = lt_dlforeachfile("/usr/lib:/usr/local/lib", NULL, NULL); +])], [AC_MSG_RESULT([yes])], [dnl +AC_MSG_RESULT([no]) +AC_MSG_ERROR([cannot compile and link against libltdl +${PACKAGE_TARNAME} requires libltdl (the libtool dl* library), +but cannot compile and link against it. +Aborting. +]) +]) +CPPFLAGS="$saved_CPPFLAGS" +LIBS="$saved_LIBS" +AC_LANG_POP +])dnl diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-docbook-xml.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-docbook-xml.m4 new file mode 100644 index 00000000..bec00c7f --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-docbook-xml.m4 @@ -0,0 +1,46 @@ +dnl ------------------------------------------------------------------------ +dnl try to find xmlto (required for generation of man pages and html docs) +dnl ------------------------------------------------------------------------ +AC_DEFUN([GP_CHECK_DOCBOOK_XML], +[ + +AC_MSG_CHECKING([for XML catalogs]) +XML_CATALOG_FILES="`find /etc/xml /usr/share/xml /usr/share/sgml -type f \( -iname 'catalog.xml' -or -iname 'catalog' \) -print 2> /dev/null | while read file; do echo -n "$file "; done`" +if test "x$XML_CATALOG_FILES" = "x" +then + AC_MSG_RESULT([none found.]) +else + AC_MSG_RESULT([found ${XML_CATALOG_FILES}]) +fi +AC_SUBST(XML_CATALOG_FILES) + +#XML_DEBUG_CATALOG=0 +#AC_SUBST(XML_DEBUG_CATALOG) + +manual_msg="no (http://cyberelk.net/tim/xmlto/)" +try_xmlto=true +have_xmlto=false +AC_ARG_WITH(xmlto, [ --without-xmlto Don't use xmlto],[ + if test x$withval = xno; then + try_xmlto=false + fi]) +if $try_xmlto; then + AC_PATH_PROG(XMLTO,xmlto) + if test -n "${XMLTO}"; then + have_xmlto=true + manual_msg="yes" + PURE_XMLTO="$XMLTO" + if true || test "x$XML_CATALOG_FILES" = "x"; then + unset XML_CATALOG_FILES + XMLTO="${XMLTO} -m \$(top_srcdir)/src/xsl/custom.xsl" + else + XMLTO="env XML_CATALOG_FILES=\"${XML_CATALOG_FILES}\" ${XMLTO} -m ${top_srcdir}/src/xsl/custom.xsl" + fi + else + # in case anybody runs $(XMLTO) somewhere, we return false + XMLTO=false + fi +fi + +AM_CONDITIONAL(XMLTO, $have_xmlto) +]) diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-documentation.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-documentation.m4 new file mode 100644 index 00000000..cb7b4e86 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-documentation.m4 @@ -0,0 +1,329 @@ +dnl +dnl check where to install documentation +dnl +dnl determines documentation "root directory", i.e. the directory +dnl where all documentation will be placed in +dnl + +AC_DEFUN([GP_CHECK_DOCDIR], +[ + +AC_ARG_WITH(doc-dir, [ --with-doc-dir=PATH Where to install docs [default=autodetect]])dnl + +# check for the main ("root") documentation directory +AC_MSG_CHECKING([main docdir]) + +if test "x${with_doc_dir}" != "x" +then # docdir is given as parameter + docdir="${with_doc_dir}" + AC_MSG_RESULT([${docdir} (from parameter)]) +else # otherwise invent a docdir hopefully compatible with system policy + if test -d "/usr/share/doc" + then + maindocdir='${prefix}/share/doc' + AC_MSG_RESULT([${maindocdir} (FHS style)]) + elif test -d "/usr/doc" + then + maindocdir='${prefix}/doc' + AC_MSG_RESULT([${maindocdir} (old style)]) + else + maindocdir='${datadir}/doc' + AC_MSG_RESULT([${maindocdir} (default value)]) + fi + AC_MSG_CHECKING(package docdir) + # check whether to include package version into documentation path + # FIXME: doesn't work properly. + if ls -d /usr/{share/,}doc/*-[[]0-9[]]* > /dev/null 2>&1 + then + docdir="${maindocdir}/${PACKAGE}-${VERSION}" + AC_MSG_RESULT([${docdir} (redhat style)]) + else + docdir="${maindocdir}/${PACKAGE}" + AC_MSG_RESULT([${docdir} (default style)]) + fi +fi + +AC_SUBST(docdir) + +])dnl + +dnl Solaris hack for grep and tr +AC_DEFUN([GP_CHECK_TR], +[ +if test -n "`echo $host_os | grep '[sS]olaris'`"; then + TR=/usr/xpg4/bin/tr + GREP=/usr/xpg4/bin/grep +else + TR=tr + GREP=grep +fi +]) + +dnl +dnl check whether to build docs and where to: +dnl +dnl * determine presence of prerequisites (only gtk-doc for now) +dnl * determine destination directory for HTML files +dnl + +AC_DEFUN([GP_BUILD_DOCS], +[ +# doc dir has to be determined in advance +AC_REQUIRE([GP_CHECK_DOCDIR]) +AC_REQUIRE([GP_CHECK_GTK_DOC]) +AC_REQUIRE([GP_CHECK_FIG2DEV]) +AC_REQUIRE([GP_CHECK_DOCBOOK_XML]) +AC_REQUIRE([GP_CHECK_TR]) +AC_REQUIRE([GP_CHECK_PSTOIMG]) +AC_REQUIRE([GP_CHECK_DOT]) +AC_REQUIRE([GP_CHECK_W3M]) + +gphoto2xml='$(top_srcdir)/src/gphoto2.xml' +AC_SUBST(gphoto2xml) + +dnl --------------------------------------------------------------------------- +dnl Give the user the possibility to install documentation in +dnl user-defined locations. +dnl --------------------------------------------------------------------------- +AC_ARG_WITH(html-dir, [ --with-html-dir=PATH Where to install html docs [default=autodetect]]) +AC_MSG_CHECKING([for html dir]) +if test "x${with_html_dir}" = "x" ; then + htmldir="${docdir}/html" + AC_MSG_RESULT([${htmldir} (default)]) +else + htmldir="${with_html_dir}" + AC_MSG_RESULT([${htmldir} (from parameter)]) +fi +AC_SUBST(htmldir) + +AC_ARG_WITH(xhtml-dir, [ --with-xhtml-dir=PATH Where to install xhtml docs [default=autodetect]]) +AC_MSG_CHECKING([for xhtml dir]) +if test "x${with_xhtml_dir}" = "x" ; then + xhtmldir="${docdir}/xhtml" + AC_MSG_RESULT([${xhtmldir} (default)]) +else + xhtmldir="${with_xhtml_dir}" + AC_MSG_RESULT([${xhtmldir} (from parameter)]) +fi +AC_SUBST(xhtmldir) + +AC_ARG_WITH(html-nochunks-dir, [ --with-html-nochunks-dir=PATH Where to install html-nochunks docs [default=autodetect]]) +AC_MSG_CHECKING([for html-nochunks dir]) +if test "x${with_html_nochunks_dir}" = "x" ; then + htmlnochunksdir="${docdir}/html-nochunks" + AC_MSG_RESULT([${htmlnochunksdir} (default)]) +else + htmlnochunksdir="${with_html_nochunks_dir}" + AC_MSG_RESULT([${htmlnochunksdir} (from parameter)]) +fi +AC_SUBST(htmlnochunksdir) + +AC_ARG_WITH(xhtml-nochunks-dir, [ --with-xhtml-nochunks-dir=PATH Where to install xhtml-nochunks docs [default=autodetect]]) +AC_MSG_CHECKING([for xhtml-nochunks dir]) +if test "x${with_xhtml_nochunks_dir}" = "x" ; then + xhtmlnochunksdir="${docdir}/xhtml-nochunks" + AC_MSG_RESULT([${xhtmlnochunksdir} (default)]) +else + xhtmlnochunksdir="${with_xhtml_nochunks_dir}" + AC_MSG_RESULT([${xhtmlnochunksdir} (from parameter)]) +fi +AC_SUBST(xhtmlnochunksdir) + +AC_ARG_WITH(xml-dir, [ --with-xml-dir=PATH Where to install xml docs [default=autodetect]]) +AC_MSG_CHECKING([for xml dir]) +if test "x${with_xml_dir}" = "x" ; then + xmldir="${docdir}/xml" + AC_MSG_RESULT([${xmldir} (default)]) +else + xmldir="${with_xml_dir}" + AC_MSG_RESULT([${xmldir} (from parameter)]) +fi +AC_SUBST(xmldir) +xmlcssdir="${xmldir}/css" +AC_SUBST(xmlcssdir) + +AC_ARG_WITH(txt-dir, [ --with-txt-dir=PATH Where to install txt docs [default=autodetect]]) +AC_MSG_CHECKING([for txt dir]) +if test "x${with_txt_dir}" = "x" ; then + txtdir="${docdir}/txt" + AC_MSG_RESULT([${txtdir} (default)]) +else + txtdir="${with_txt_dir}" + AC_MSG_RESULT([${txtdir} (from parameter)]) +fi +AC_SUBST(txtdir) + +AC_ARG_WITH(man-dir, [ --with-man-dir=PATH Where to install man docs [default=autodetect]]) +AC_MSG_CHECKING([for man dir]) +if test "x${with_man_dir}" = "x" ; then + manmandir="${docdir}/man" + AC_MSG_RESULT([${manmandir} (default)]) +else + manmandir="${with_man_dir}" + AC_MSG_RESULT([${manmandir} (from parameter)]) +fi +AC_SUBST(manmandir) + +AC_ARG_WITH(pdf-dir, [ --with-pdf-dir=PATH Where to install pdf docs [default=autodetect]]) +AC_MSG_CHECKING([for pdf dir]) +if test "x${with_pdf_dir}" = "x" ; then + pdfdir="${docdir}/pdf" + AC_MSG_RESULT([${pdfdir} (default)]) +else + pdfdir="${with_pdf_dir}" + AC_MSG_RESULT([${pdfdir} (from parameter)]) +fi +AC_SUBST(pdfdir) + +AC_ARG_WITH(ps-dir, [ --with-ps-dir=PATH Where to install ps docs [default=autodetect]]) +AC_MSG_CHECKING([for ps dir]) +if test "x${with_ps_dir}" = "x" ; then + psdir="${docdir}/ps" + AC_MSG_RESULT([${psdir} (default)]) +else + psdir="${with_ps_dir}" + AC_MSG_RESULT([${psdir} (from parameter)]) +fi +AC_SUBST(psdir) + +AC_ARG_WITH(figure-dir, [ --with-figure-dir=PATH Where to install figures [default=autodetect]]) +AC_MSG_CHECKING([for figure dir]) +if test "x${with_figure_dir}" = "x" ; then + figuredir="${docdir}/figures" + AC_MSG_RESULT([${figuredir} (default)]) +else + figuredir="${with_figure_dir}" + AC_MSG_RESULT([${figuredir} (from parameter)]) +fi +AC_SUBST(figuredir) + +AC_ARG_WITH(screenshots-dir, [ --with-screenshots-dir=PATH Where to install screenshotss [default=autodetect]]) +AC_MSG_CHECKING([for screenshots dir]) +if test "x${with_screenshots_dir}" = "x" ; then + screenshotsdir="${docdir}/screenshots" + AC_MSG_RESULT([${screenshotsdir} (default)]) +else + screenshotsdir="${with_screenshots_dir}" + AC_MSG_RESULT([${screenshotsdir} (from parameter)]) +fi +AC_SUBST(screenshotsdir) +screenshotsgtkamdir="${screenshotsdir}/gtkam" +AC_SUBST(screenshotsgtkamdir) + +doc_formats_list='man html txt ps pdf' + +# initialize have_xmlto* to false +for i in $doc_formats_list; do + d=`echo $i | $TR A-Z a-z` + eval "have_xmlto$d=false" +done + +AC_MSG_CHECKING(checking doc formats) +AC_ARG_WITH(doc_formats, + [ --with-doc-formats= create doc with format in ; ] + [ 'all' build all doc formats; ] + [ possible formats are: ] + [ man, html, ps, pdf ], + doc_formats="$withval", doc_formats="man html txt") + +if test "$doc_formats" = "all"; then + doc_formats=$doc_formats_list +else + doc_formats=`echo $doc_formats | sed 's/,/ /g'` +fi + +# set have_xmlto* to true if requested and possible +if $have_xmlto; then + for i in $doc_formats; do + if test -n "`echo $doc_formats_list | $GREP -E \"(^| )$i( |\$)\"`"; then + eval "have_xmlto$i=true" + else + AC_ERROR(Unknown doc format $i!) + fi + done + AC_MSG_RESULT($doc_formats) +else + AC_MSG_RESULT([deactivated (requires xmlto)]) +fi + +# Make sure that xmltopdf actually works +if $have_xmltopdf; then + AC_MSG_CHECKING([whether pdf creation works]) + oldcwd="$(pwd)" + top_srcdir() { echo "$srcdir"; } + mkdir test-pdf + cd test-pdf + cat>test-db.xml< + + + Foo Title + + + Foo Chapter + + Foo bar blah blah + . + + + +EOF + ${PURE_XMLTO} pdf -o . test-db.xml --searchpath .. + if test -s test-db.pdf; then + AC_MSG_RESULT([yes, look at $(pwd)/test-db.pdf to verify]) + else + if $have_xmltopdf; then + AC_MSG_ERROR([PDF creation requested, but failed. See $(pwd) ...]) + else + AC_MSG_RESULT([no, but not requested]) + fi + fi + cd "$oldcwd" + unset top_srcdir +fi + +AM_CONDITIONAL(XMLTOHTML,$have_xmltohtml) +AM_CONDITIONAL(XMLTOMAN,$have_xmltoman) +AM_CONDITIONAL(XMLTOTXT,$have_xmltotxt) +AM_CONDITIONAL(XMLTOTXT2,$have_xmltotxt && $have_w3m) +AM_CONDITIONAL(XMLTOPDF,$have_xmltopdf) +AM_CONDITIONAL(XMLTOPS,$have_xmltops) + +# create list of supported formats +AC_MSG_CHECKING([for manual formats to re­create]) +xxx="" +manual_html="" +manual_pdf="" +manual_ps="" +if $have_xmltohtml; then + xxx="${xxx} html" +fi +if $have_xmltoman; then + xxx="${xxx} man" +fi +if $have_xmltopdf; then + xxx="${xxx} pdf" +fi +if $have_xmltops; then + xxx="${xxx} ps" +fi +if $have_xmltotxt; then + xxx="${xxx} txt" +fi +AC_SUBST(manual_html) +AC_SUBST(manual_pdf) +AC_SUBST(manual_ps) +AC_MSG_RESULT($xxx) + +if test "x$xxx" != "x" +then + if $have_fig2dev; then + fig_out="" + else + fig_out="out" + fi + manual_msg="in (${xxx} ) formats with${fig_out} figures" +fi + +])dnl diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-fig2dev.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-fig2dev.m4 new file mode 100644 index 00000000..c61f2b7f --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-fig2dev.m4 @@ -0,0 +1,40 @@ +dnl --------------------------------------------------------------------------- +dnl fig2dev: This program is needed for processing images. If not found, +dnl documentation can still be built, but without figures. +dnl --------------------------------------------------------------------------- +AC_DEFUN([GP_CHECK_FIG2DEV], +[ + +try_fig2dev=true +have_fig2dev=false +AC_ARG_WITH(fig2dev, [ --without-fig2dev Don't use fig2dev],[ + if test "x$withval" = "xno"; then + try_fig2dev=false + fi]) +if $try_fig2dev; then + AC_PATH_PROG(FIG2DEV,fig2dev) + if test -n "${FIG2DEV}"; then + have_fig2dev=true + fi +fi +if $have_fig2dev; then + AC_SUBST(FIG2DEV) + ${FIG2DEV} -L ps > /dev/null < /dev/null < /dev/null + if test $? != 0 || test ! -f tesseract.png; then + have_pstoimg=false + AC_MSG_RESULT(no) + else + AC_MSG_RESULT(yes) + fi + rm -f tesseract.png +fi +AM_CONDITIONAL(ENABLE_PSTOIMG, $have_pstoimg) + +]) diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-w3m.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-w3m.m4 new file mode 100644 index 00000000..e563d7b9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-manual-w3m.m4 @@ -0,0 +1,45 @@ +dnl --------------------------------------------------------------------------- +dnl w3m: This program is needed for converting HTML to text. +dnl --------------------------------------------------------------------------- +AC_DEFUN([GP_CHECK_W3M], +[ + +try_w3m=true +have_w3m=false +AC_ARG_WITH(w3m, [ --without-w3m Don't use w3m],[ + if test "x$withval" = "xno"; then + try_w3m=false + fi]) +if $try_w3m; then + AC_PATH_PROG(W3M,w3m) + if test -n "${W3M}"; then + have_w3m=true + fi +fi +if $have_w3m; then + AC_MSG_CHECKING([whether ${W3M} works]) + cat > html2text-test.xxxhtml 2> /dev/null < + +<h1>HTML2TEXT Test</h1> + + +

This is a test.

+ + +EOF + ${W3M} -T text/html -cols 78 -dump html2text-test.xxxhtml > html2text-test.txt + if test $? != 0 || test ! -f html2text-test.txt || test ! -s html2text-test.txt + then + have_w3m=false + AC_MSG_RESULT([no (see http://www.w3m.org/ or http://w3m.sourceforge.net/ ...)]) + W3M=false + AC_SUBST(W3M) + else + AC_MSG_RESULT([yes]) + AC_SUBST(W3M) + fi +fi +AM_CONDITIONAL([HAVE_W3M], [$have_w3m]) + +]) diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-packaging.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-packaging.m4 new file mode 100644 index 00000000..d85b418a --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-packaging.m4 @@ -0,0 +1,81 @@ +AC_DEFUN([GPKG_CHECK_RPM], +[ +AC_ARG_WITH([rpmbuild], +[AS_HELP_STRING([--with-rpmbuild=PATH], +[Program to use for building RPMs])]) + +AC_MSG_CHECKING([for rpmbuild or rpm]) +if test -x "${with_rpmbuild}" +then + RPMBUILD="${with_rpmbuild}" + AC_MSG_RESULT([${RPMBUILD} (from parameter)]) +else + AC_MSG_RESULT([using autodetection]) + AC_CHECK_PROGS(RPMBUILD, [rpmbuild rpm], false) + AC_MSG_CHECKING([for rpmbuild or rpm]) + AC_MSG_RESULT([${RPMBUILD} (autodetected)]) +fi +AC_SUBST([RPMBUILD]) +AM_CONDITIONAL([ENABLE_RPM], [test "$RPMBUILD" != "false"]) + +]) + +AC_DEFUN([GPKG_CHECK_LINUX], +[ + # effective_target has to be determined in advance + AC_REQUIRE([AC_NEED_BYTEORDER_H]) + + is_linux=false + case "$effective_target" in + *linux*) + is_linux=true + ;; + esac + AM_CONDITIONAL([HAVE_LINUX], ["$is_linux"]) + + # required for docdir + # FIXME: Implicit dependency + # AC_REQUIRE(GP_CHECK_DOC_DIR) + + AC_ARG_WITH([hotplug-doc-dir], + [AS_HELP_STRING([--with-hotplug-doc-dir=PATH], + [Where to install hotplug scripts as docs [default=autodetect]])]) + + if "$is_linux"; then + AC_MSG_CHECKING([for hotplug doc dir]) + if test "x${with_hotplug_doc_dir}" != "x" + then # given as parameter + hotplugdocdir="${with_hotplug_doc_dir}" + AC_MSG_RESULT([${hotplugdocdir} (from parameter)]) + else # start at docdir + hotplugdocdir="${docdir}/linux-hotplug" + AC_MSG_RESULT([${hotplugdocdir} (default)]) + fi + else + hotplugdocdir="" + fi + + AC_ARG_WITH([hotplug-usermap-dir], + [AS_HELP_STRING([--with-hotplug-usermap-dir=PATH], + [Where to install hotplug scripts as docs [default=autodetect]])]) + + if "$is_linux"; then + AC_MSG_CHECKING([for hotplug usermap dir]) + if test "x${with_hotplug_usermap_dir}" != "x" + then # given as parameter + hotplugusermapdir="${with_hotplug_usermap_dir}" + AC_MSG_RESULT([${hotplugusermapdir} (from parameter)]) + else # start at docdir + hotplugusermapdir="${docdir}/linux-hotplug" + AC_MSG_RESULT([${hotplugusermapdir} (default)]) + fi + else + hotplugusermapdir="" + fi + + # Let us hope that automake does not create "" directories + # on non-Linux systems now. + AC_SUBST([hotplugdocdir]) + AC_SUBST([hotplugusermapdir]) +]) + diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-references.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-references.m4 new file mode 100644 index 00000000..71ff4477 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-references.m4 @@ -0,0 +1,48 @@ +dnl +dnl Define external references +dnl +dnl Define once, use many times. +dnl No more URLs and Mail addresses in translated strings and stuff. +dnl + +AC_DEFUN([GP_REF],[ +AC_SUBST([$1],["$2"]) +AC_DEFINE_UNQUOTED([$1],["$2"],[$3]) +]) + +AC_DEFUN([GP_REFERENCES], +[ + +GP_REF( [URL_GPHOTO_HOME], + [http://www.gphoto.org/], + [gphoto project home page])dnl + +GP_REF( [URL_GPHOTO_PROJECT], + [https://github.com/gphoto], + [gphoto github project page]) + +GP_REF( [URL_DIGICAM_LIST], + [http://www.teaser.fr/~hfiguiere/linux/digicam.html], + [camera list with support status]) + +GP_REF( [URL_JPHOTO_HOME], + [http://jphoto.sourceforge.net/], + [jphoto home page]) + +GP_REF( [URL_USB_MASSSTORAGE], + [http://www.linux-usb.org/USB-guide/x498.html], + [information about using USB mass storage]) + +GP_REF( [MAIL_GPHOTO_DEVEL], + [], + [gphoto development mailing list]) + +GP_REF( [MAIL_GPHOTO_USER], + [], + [gphoto user mailing list]) + +GP_REF( [MAIL_GPHOTO_TRANSLATION], + [], + [gphoto translation mailing list]) + +]) diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-stdint.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-stdint.m4 new file mode 100644 index 00000000..d3e59249 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-stdint.m4 @@ -0,0 +1,732 @@ +dnl AC_NEED_STDINT_H ( HEADER-TO-GENERATE ) +dnl Originally written 2001 by Dan Fandrich +dnl My contribution is hereby placed into the public domain. +dnl No warranty is expressed or implied. +dnl +dnl Look for a header file that defines size-specific integer types like the +dnl ones recommended to be in stdint.h in the C99 standard (e.g. uint32_t). +dnl This is a dumbed-down version of the macro of the same name in the file +dnl ac_need_stdint_h.m4 which is part of the ac-archive, available at +dnl (also, another macro +dnl AC_CREATE_STDINT_H by the same author). This version is not as smart, +dnl but works on older autoconf versions and has a different license. + +dnl AX_CHECK_DEFINED_TYPE ( TYPE, FILE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND ) +dnl This is similar to _AC_CHECK_TYPE_NEW (a.k.a. new syntax version of +dnl AC_CHECK_TYPE) in autoconf 2.50 but works on older versions +AC_DEFUN([AX_CHECK_DEFINED_TYPE], +[AC_MSG_CHECKING([for $1 in $2]) +AC_EGREP_CPP(changequote(<<,>>)dnl +<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl +changequote([,]), [#include <$2>], +ac_cv_type_$1=yes, ac_cv_type_$1=no)dnl +AC_MSG_RESULT($ac_cv_type_$1) +if test $ac_cv_type_$1 = yes; then + $3 +else + $4 +fi +]) + +dnl Look for a header file that defines size-specific integer types +AC_DEFUN([AX_NEED_STDINT_H], +[ +ac_dir=`AS_DIRNAME(["$1"])` +if test "$ac_dir" != "$1" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && AS_MKDIR_P(["$ac_dir"]) +fi + +AX_CHECK_DEFINED_TYPE(uint8_t, +stdint.h, +[ +cat > "$1" < +EOF], +[AX_CHECK_DEFINED_TYPE(uint8_t, +inttypes.h, +[cat > "$1" < +EOF], +[AX_CHECK_DEFINED_TYPE(uint8_t, +sys/types.h, +[cat > "$1" < +EOF], +[AX_CHECK_DEFINED_TYPE(u_int8_t, +sys/types.h, +[cat > "$1" < +typedef u_int8_t uint8_t; +typedef u_int16_t uint16_t; +typedef u_int32_t uint32_t; +EOF + +AX_CHECK_DEFINED_TYPE(u_int64_t, +sys/types.h, +[cat >> "$1" <> "$1" <]) + AC_CHECK_TYPE(uint64_t,[and64="/uint64_t"],[and64=""],[#include<$i>]) + m4_ifvaln([$1],[$1]) break + done + AC_MSG_CHECKING([for stdint uintptr_t]) + ]) +]) + +AC_DEFUN([AX_CHECK_HEADER_STDINT_O],[ +AC_CACHE_CHECK([for stdint uint32_t], [ac_cv_header_stdint_o],[ + ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) + AC_MSG_RESULT([(..)]) + for i in m4_ifval([$1],[$1],[inttypes.h sys/inttypes.h stdint.h]) ; do + unset ac_cv_type_uint32_t + unset ac_cv_type_uint64_t + AC_CHECK_TYPE(uint32_t,[ac_cv_header_stdint_o=$i],continue,[#include <$i>]) + AC_CHECK_TYPE(uint64_t,[and64="/uint64_t"],[and64=""],[#include<$i>]) + m4_ifvaln([$1],[$1]) break + break; + done + AC_MSG_CHECKING([for stdint uint32_t]) + ]) +]) + +AC_DEFUN([AX_CHECK_HEADER_STDINT_U],[ +AC_CACHE_CHECK([for stdint u_int32_t], [ac_cv_header_stdint_u],[ + ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) + AC_MSG_RESULT([(..)]) + for i in m4_ifval([$1],[$1],[sys/types.h inttypes.h sys/inttypes.h]) ; do + unset ac_cv_type_u_int32_t + unset ac_cv_type_u_int64_t + AC_CHECK_TYPE(u_int32_t,[ac_cv_header_stdint_u=$i],continue,[#include <$i>]) + AC_CHECK_TYPE(u_int64_t,[and64="/u_int64_t"],[and64=""],[#include<$i>]) + m4_ifvaln([$1],[$1]) break + break; + done + AC_MSG_CHECKING([for stdint u_int32_t]) + ]) +]) + +AC_DEFUN([AX_CREATE_STDINT_H], +[# ------ AX CREATE STDINT H ------------------------------------- +AC_MSG_CHECKING([for stdint types]) +ac_stdint_h=`echo ifelse($1, , _stdint.h, $1)` +# try to shortcircuit - if the default include path of the compiler +# can find a "stdint.h" header then we assume that all compilers can. +AC_CACHE_VAL([ac_cv_header_stdint_t],[ +old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" +old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" +old_CFLAGS="$CFLAGS" ; CFLAGS="" +AC_TRY_COMPILE([#include ],[int_least32_t v = 0;], +[ac_cv_stdint_result="(assuming C99 compatible system)" + ac_cv_header_stdint_t="stdint.h"; ], +[ac_cv_header_stdint_t=""]) +CXXFLAGS="$old_CXXFLAGS" +CPPFLAGS="$old_CPPFLAGS" +CFLAGS="$old_CFLAGS" ]) + +v="... $ac_cv_header_stdint_h" +if test "$ac_stdint_h" = "stdint.h" ; then + AC_MSG_RESULT([(are you sure you want them in ./stdint.h?)]) +elif test "$ac_stdint_h" = "inttypes.h" ; then + AC_MSG_RESULT([(are you sure you want them in ./inttypes.h?)]) +elif test "_$ac_cv_header_stdint_t" = "_" ; then + AC_MSG_RESULT([(putting them into $ac_stdint_h)$v]) +else + ac_cv_header_stdint="$ac_cv_header_stdint_t" + AC_MSG_RESULT([$ac_cv_header_stdint (shortcircuit)]) +fi + +if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. + +dnl .....intro message done, now do a few system checks..... +dnl btw, all old CHECK_TYPE macros do automatically "DEFINE" a type, +dnl therefore we use the autoconf implementation detail CHECK_TYPE_NEW +dnl instead that is triggered with 3 or more arguments (see types.m4) + +inttype_headers=`echo $2 | sed -e 's/,/ /g'` + +ac_cv_stdint_result="(no helpful system typedefs seen)" +AX_CHECK_HEADER_STDINT_X(dnl + stdint.h inttypes.h sys/inttypes.h $inttype_headers, + ac_cv_stdint_result="(seen uintptr_t$and64 in $i)") + +if test "_$ac_cv_header_stdint_x" = "_" ; then +AX_CHECK_HEADER_STDINT_O(dnl, + inttypes.h sys/inttypes.h stdint.h $inttype_headers, + ac_cv_stdint_result="(seen uint32_t$and64 in $i)") +fi + +if test "_$ac_cv_header_stdint_x" = "_" ; then +if test "_$ac_cv_header_stdint_o" = "_" ; then +AX_CHECK_HEADER_STDINT_U(dnl, + sys/types.h inttypes.h sys/inttypes.h $inttype_headers, + ac_cv_stdint_result="(seen u_int32_t$and64 in $i)") +fi fi + +dnl if there was no good C99 header file, do some typedef checks... +if test "_$ac_cv_header_stdint_x" = "_" ; then + AC_MSG_CHECKING([for stdint datatype model]) + AC_MSG_RESULT([(..)]) + AX_CHECK_DATA_MODEL +fi + +if test "_$ac_cv_header_stdint_x" != "_" ; then + ac_cv_header_stdint="$ac_cv_header_stdint_x" +elif test "_$ac_cv_header_stdint_o" != "_" ; then + ac_cv_header_stdint="$ac_cv_header_stdint_o" +elif test "_$ac_cv_header_stdint_u" != "_" ; then + ac_cv_header_stdint="$ac_cv_header_stdint_u" +else + ac_cv_header_stdint="stddef.h" +fi + +AC_MSG_CHECKING([for extra inttypes in chosen header]) +AC_MSG_RESULT([($ac_cv_header_stdint)]) +dnl see if int_least and int_fast types are present in _this_ header. +unset ac_cv_type_int_least32_t +unset ac_cv_type_int_fast32_t +AC_CHECK_TYPE(int_least32_t,,,[#include <$ac_cv_header_stdint>]) +AC_CHECK_TYPE(int_fast32_t,,,[#include<$ac_cv_header_stdint>]) +AC_CHECK_TYPE(intmax_t,,,[#include <$ac_cv_header_stdint>]) + +fi # shortcircut to system "stdint.h" +# ------------------ PREPARE VARIABLES ------------------------------ +if test "$GCC" = "yes" ; then +ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` +else +ac_cv_stdint_message="using $CC" +fi + +AC_MSG_RESULT([make use of $ac_cv_header_stdint in $ac_stdint_h dnl +$ac_cv_stdint_result]) + +dnl ----------------------------------------------------------------- +# ----------------- DONE inttypes.h checks START header ------------- +AC_CONFIG_COMMANDS([$ac_stdint_h],[ +AC_MSG_NOTICE(creating $ac_stdint_h : $_ac_stdint_h) +ac_stdint=$tmp/_stdint.h + +echo "#ifndef" $_ac_stdint_h >$ac_stdint +echo "#define" $_ac_stdint_h "1" >>$ac_stdint +echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint +echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint +echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint +if test "_$ac_cv_header_stdint_t" != "_" ; then +echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint +echo "#include " >>$ac_stdint +echo "#endif" >>$ac_stdint +echo "#endif" >>$ac_stdint +else + +cat >>$ac_stdint < +#else +#include + +/* .................... configured part ............................ */ + +STDINT_EOF + +echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint +if test "_$ac_cv_header_stdint_x" != "_" ; then + ac_header="$ac_cv_header_stdint_x" + echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint +else + echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint +fi + +echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint +if test "_$ac_cv_header_stdint_o" != "_" ; then + ac_header="$ac_cv_header_stdint_o" + echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint +else + echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint +fi + +echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint +if test "_$ac_cv_header_stdint_u" != "_" ; then + ac_header="$ac_cv_header_stdint_u" + echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint +else + echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint +fi + +echo "" >>$ac_stdint + +if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then + echo "#include <$ac_header>" >>$ac_stdint + echo "" >>$ac_stdint +fi fi + +echo "/* which 64bit typedef has been found */" >>$ac_stdint +if test "$ac_cv_type_uint64_t" = "yes" ; then +echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint +fi +if test "$ac_cv_type_u_int64_t" = "yes" ; then +echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint +fi +echo "" >>$ac_stdint + +echo "/* which type model has been detected */" >>$ac_stdint +if test "_$ac_cv_char_data_model" != "_" ; then +echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint +echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint +else +echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint +echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint +fi +echo "" >>$ac_stdint + +echo "/* whether int_least types were detected */" >>$ac_stdint +if test "$ac_cv_type_int_least32_t" = "yes"; then +echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint +fi +echo "/* whether int_fast types were detected */" >>$ac_stdint +if test "$ac_cv_type_int_fast32_t" = "yes"; then +echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint +fi +echo "/* whether intmax_t type was detected */" >>$ac_stdint +if test "$ac_cv_type_intmax_t" = "yes"; then +echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint +fi +echo "" >>$ac_stdint + + cat >>$ac_stdint <= 199901L +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef long long int64_t; +typedef unsigned long long uint64_t; + +#elif !defined __STRICT_ANSI__ +#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ +#define _HAVE_UINT64_T +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; + +#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ +/* note: all ELF-systems seem to have loff-support which needs 64-bit */ +#if !defined _NO_LONGLONG +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef long long int64_t; +typedef unsigned long long uint64_t; +#endif + +#elif defined __alpha || (defined __mips && defined _ABIN32) +#if !defined _NO_LONGLONG +typedef long int64_t; +typedef unsigned long uint64_t; +#endif + /* compiler/cpu type to define int64_t */ +#endif +#endif +#endif + +#if defined _STDINT_HAVE_U_INT_TYPES +/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ +typedef u_int8_t uint8_t; +typedef u_int16_t uint16_t; +typedef u_int32_t uint32_t; + +/* glibc compatibility */ +#ifndef __int8_t_defined +#define __int8_t_defined +#endif +#endif + +#ifdef _STDINT_NEED_INT_MODEL_T +/* we must guess all the basic types. Apart from byte-adressable system, */ +/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ +/* (btw, those nibble-addressable systems are way off, or so we assume) */ + +dnl /* have a look at "64bit and data size neutrality" at */ +dnl /* http://unix.org/version2/whatsnew/login_64bit.html */ +dnl /* (the shorthand "ILP" types always have a "P" part) */ + +#if defined _STDINT_BYTE_MODEL +#if _STDINT_LONG_MODEL+0 == 242 +/* 2:4:2 = IP16 = a normal 16-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned long uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef long int32_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 +/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */ +/* 4:4:4 = ILP32 = a normal 32-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef int int32_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 +/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */ +/* 4:8:8 = LP64 = a normal 64-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef int int32_t; +#endif +/* this system has a "long" of 64bit */ +#ifndef _HAVE_UINT64_T +#define _HAVE_UINT64_T +typedef unsigned long uint64_t; +typedef long int64_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 448 +/* LLP64 a 64-bit system derived from a 32-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef int int32_t; +#endif +/* assuming the system has a "long long" */ +#ifndef _HAVE_UINT64_T +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef unsigned long long uint64_t; +typedef long long int64_t; +#endif +#else +#define _STDINT_NO_INT32_T +#endif +#else +#define _STDINT_NO_INT8_T +#define _STDINT_NO_INT32_T +#endif +#endif + +/* + * quote from SunOS-5.8 sys/inttypes.h: + * Use at your own risk. As of February 1996, the committee is squarely + * behind the fixed sized types; the "least" and "fast" types are still being + * discussed. The probability that the "fast" types may be removed before + * the standard is finalized is high enough that they are not currently + * implemented. + */ + +#if defined _STDINT_NEED_INT_LEAST_T +typedef int8_t int_least8_t; +typedef int16_t int_least16_t; +typedef int32_t int_least32_t; +#ifdef _HAVE_UINT64_T +typedef int64_t int_least64_t; +#endif + +typedef uint8_t uint_least8_t; +typedef uint16_t uint_least16_t; +typedef uint32_t uint_least32_t; +#ifdef _HAVE_UINT64_T +typedef uint64_t uint_least64_t; +#endif + /* least types */ +#endif + +#if defined _STDINT_NEED_INT_FAST_T +typedef int8_t int_fast8_t; +typedef int int_fast16_t; +typedef int32_t int_fast32_t; +#ifdef _HAVE_UINT64_T +typedef int64_t int_fast64_t; +#endif + +typedef uint8_t uint_fast8_t; +typedef unsigned uint_fast16_t; +typedef uint32_t uint_fast32_t; +#ifdef _HAVE_UINT64_T +typedef uint64_t uint_fast64_t; +#endif + /* fast types */ +#endif + +#ifdef _STDINT_NEED_INTMAX_T +#ifdef _HAVE_UINT64_T +typedef int64_t intmax_t; +typedef uint64_t uintmax_t; +#else +typedef long intmax_t; +typedef unsigned long uintmax_t; +#endif +#endif + +#ifdef _STDINT_NEED_INTPTR_T +#ifndef __intptr_t_defined +#define __intptr_t_defined +/* we encourage using "long" to store pointer values, never use "int" ! */ +#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 +typedef unsinged int uintptr_t; +typedef int intptr_t; +#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 +typedef unsigned long uintptr_t; +typedef long intptr_t; +#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T +typedef uint64_t uintptr_t; +typedef int64_t intptr_t; +#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ +typedef unsigned long uintptr_t; +typedef long intptr_t; +#endif +#endif +#endif + +/* The ISO C99 standard specifies that in C++ implementations these + should only be defined if explicitly requested. */ +#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS +#ifndef UINT32_C + +/* Signed. */ +# define INT8_C(c) c +# define INT16_C(c) c +# define INT32_C(c) c +# ifdef _HAVE_LONGLONG_UINT64_T +# define INT64_C(c) c ## L +# else +# define INT64_C(c) c ## LL +# endif + +/* Unsigned. */ +# define UINT8_C(c) c ## U +# define UINT16_C(c) c ## U +# define UINT32_C(c) c ## U +# ifdef _HAVE_LONGLONG_UINT64_T +# define UINT64_C(c) c ## UL +# else +# define UINT64_C(c) c ## ULL +# endif + +/* Maximal type. */ +# ifdef _HAVE_LONGLONG_UINT64_T +# define INTMAX_C(c) c ## L +# define UINTMAX_C(c) c ## UL +# else +# define INTMAX_C(c) c ## LL +# define UINTMAX_C(c) c ## ULL +# endif + + /* literalnumbers */ +#endif +#endif + +/* These limits are merily those of a two complement byte-oriented system */ + +/* Minimum of signed integral types. */ +# define INT8_MIN (-128) +# define INT16_MIN (-32767-1) +# define INT32_MIN (-2147483647-1) +# define INT64_MIN (-__INT64_C(9223372036854775807)-1) +/* Maximum of signed integral types. */ +# define INT8_MAX (127) +# define INT16_MAX (32767) +# define INT32_MAX (2147483647) +# define INT64_MAX (__INT64_C(9223372036854775807)) + +/* Maximum of unsigned integral types. */ +# define UINT8_MAX (255) +# define UINT16_MAX (65535) +# define UINT32_MAX (4294967295U) +# define UINT64_MAX (__UINT64_C(18446744073709551615)) + +/* Minimum of signed integral types having a minimum size. */ +# define INT_LEAST8_MIN INT8_MIN +# define INT_LEAST16_MIN INT16_MIN +# define INT_LEAST32_MIN INT32_MIN +# define INT_LEAST64_MIN INT64_MIN +/* Maximum of signed integral types having a minimum size. */ +# define INT_LEAST8_MAX INT8_MAX +# define INT_LEAST16_MAX INT16_MAX +# define INT_LEAST32_MAX INT32_MAX +# define INT_LEAST64_MAX INT64_MAX + +/* Maximum of unsigned integral types having a minimum size. */ +# define UINT_LEAST8_MAX UINT8_MAX +# define UINT_LEAST16_MAX UINT16_MAX +# define UINT_LEAST32_MAX UINT32_MAX +# define UINT_LEAST64_MAX UINT64_MAX + + /* shortcircuit*/ +#endif + /* once */ +#endif +#endif +STDINT_EOF +fi + if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then + AC_MSG_NOTICE([$ac_stdint_h is unchanged]) + else + ac_dir=`AS_DIRNAME(["$ac_stdint_h"])` + AS_MKDIR_P(["$ac_dir"]) + rm -f $ac_stdint_h + mv $ac_stdint $ac_stdint_h + fi +],[# variables for create stdint.h replacement +PACKAGE="$PACKAGE" +VERSION="$VERSION" +ac_stdint_h="$ac_stdint_h" +_ac_stdint_h=AS_TR_CPP(_$PACKAGE-$ac_stdint_h) +ac_cv_stdint_message="$ac_cv_stdint_message" +ac_cv_header_stdint_t="$ac_cv_header_stdint_t" +ac_cv_header_stdint_x="$ac_cv_header_stdint_x" +ac_cv_header_stdint_o="$ac_cv_header_stdint_o" +ac_cv_header_stdint_u="$ac_cv_header_stdint_u" +ac_cv_type_uint64_t="$ac_cv_type_uint64_t" +ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" +ac_cv_char_data_model="$ac_cv_char_data_model" +ac_cv_long_data_model="$ac_cv_long_data_model" +ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" +ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" +ac_cv_type_intmax_t="$ac_cv_type_intmax_t" +]) +]) diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-subpackage.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-subpackage.m4 new file mode 100644 index 00000000..afabd8b1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-subpackage.m4 @@ -0,0 +1,5 @@ +AC_DEFUN([GP_SUBPACKAGE], +[ +AC_ARG_VAR([enable_subpackage_][$1], [enable subpackage ][$1][ (true or false)]) +test "x${[enable_subpackage_][$1]}" = "x" && [enable_subpackage_][$1]=true +])dnl diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-udev.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-udev.m4 new file mode 100644 index 00000000..ef5ecb52 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-udev.m4 @@ -0,0 +1,9 @@ +dnl Determines whether UDEV code should be compiled. +dnl $1 contains shell code that returns 0 if all other prerequisites (like +dnl libusb) are available. +AC_DEFUN([GP_UDEV],[dnl +if test "x${udevscriptdir}" = "x"; then udevscriptdir="\${libdir}/udev"; fi +AC_ARG_VAR([udevscriptdir],[Directory where udev scripts like check-ptp-camera will be installed]) +AC_SUBST([udevscriptdir]) +AM_CONDITIONAL([HAVE_UDEV],[if echo "$host"|grep -i linux >/dev/null ; then $1; fi ]) +])dnl diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-va-copy.m4 b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-va-copy.m4 new file mode 100644 index 00000000..8b1ac85c --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gp-va-copy.m4 @@ -0,0 +1,57 @@ +dnl @synopsis GP_VA_COPY +dnl +dnl Checks whether one of these compiles and links: +dnl 1. va_copy() +dnl 2. __va_copy() +dnl 3. fallback +dnl +dnl In case of 1 or 2, AC_DEFINE(HAVE_VA_COPY). +dnl In case of 2, AC_DEFINE(va_copy,__va_copy) +dnl +dnl In code, use it like this +dnl #ifdef HAVE_VA_COPY +dnl ... code with va_copy ... +dnl #else +dnl ... code without va_copy or with error ... +dnl #endif +dnl +AC_DEFUN([GP_VA_COPY],[dnl +dnl +AC_CHECK_HEADER([stdarg.h],[],[ + AC_MSG_ERROR([ +Building $PACKAGE_NAME requires . +]) +]) +dnl +have_va_copy=no +AC_TRY_LINK([ + #include +],[ + va_list a,b; + va_copy(a,b); +],[ + have_va_copy="va_copy" +],[ + AC_TRY_LINK([ + #include + ],[ + va_list a,b; + __va_copy(a,b); + ],[ + have_va_copy="__va_copy" + AC_DEFINE([va_copy],[__va_copy],[__va_copy() was the originally proposed name]) + ]) +]) +dnl +AC_MSG_CHECKING([for va_copy() or replacement]) +AC_MSG_RESULT([$have_va_copy]) +dnl +if test "x$have_va_copy" != "xno"; then + AC_DEFINE([HAVE_VA_COPY],1,[Whether we have the va_copy() function]) +fi +])dnl +dnl +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gphoto-m4-sync b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gphoto-m4-sync new file mode 100644 index 00000000..f324d4df --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto-m4/gphoto-m4-sync @@ -0,0 +1,551 @@ +#!/usr/bin/env python3 +# +# Usage: gphoto-m4-sync [--diff] ... +# gphoto-m4-sync --help +# +# The gphoto-m4-sync script helps with keeping track of which files in +# which gphoto-m4 tree copy differ from the original gphoto-m4 tree. +# +# In normal operation, gphoto-m4-sync will search for gphoto-m4 +# directories anywhere in the directory trees given on the command +# line and compare the gphoto-m4 tree from which gphoto-m4-sync was +# started to those other trees. +# +# When not given a --diff options, gphoto-m4-sync will print a human +# readable report on which files are different in which gphoto-m4 +# tree. +# +# Options: +# +# --diff Print a list of 'diff' command lines to compare +# the different files instead. Pipe into something like +# "| sh | less" to execute. +# +# --help Print this help message. +# +# Exit code: +# +# 0 when no differences have been found among the gphoto-m4 trees +# 1 when any differences have been found among the gphoto-m4 trees +# 2 any other error + + +######################################################################## + + +import hashlib +import os +import sys + + +######################################################################## + + +class File(object): + + def __init__(self, tree, fname): + self.tree = tree + self.fname = fname + self.fpath = os.path.join(tree.top, fname) + + self.statinfo = os.stat(self.fpath) + + m = hashlib.sha1() + m.update(open(self.fpath, 'rb').read()) + self.digest = m.hexdigest() + + def __repr__(self): + return 'File(%s,%s)' % (repr(self.fname), repr(self.digest)) + + def __str__(self): + return '%s %s' % (self.digest, self.fname) + + +######################################################################## + + +class BaseTree(object): + + def __init__(self, top): + self.top = os.path.abspath(top) + self._files = self.__scan_files() + + def __repr__(self): + return '%s(%s)[%s]' % (self.__class__.__name__, self.top, self._files) + + def __iter__(self): + return sorted(self._files).__iter__() + + def __getitem__(self, key): + return self._files[key] + + def __scan_files(self): + files = {} + for dirpath, dirnames, filenames in os.walk(self.top, topdown=True): + try: # do not descend into these directories + dirnames.remove('.git') + except ValueError: + pass + + for fname in filenames: + # Ignore a bunch of files + if fname[-1] == '~': + continue + if fname.startswith('.git'): + continue + if fname in ['Makefile.in', 'Makefile']: + continue + + abs_fname = os.path.join(dirpath, fname) + rel_fname = os.path.relpath(abs_fname, start=self.top) + + files[rel_fname] = File(self, rel_fname) + return files + + +######################################################################## + + +class GitTree(BaseTree): + + def __init__(self, top): + path = os.path.join(top, '.git') + if not os.path.exists(path): + raise AssertionError("File or directory does not exist: %s" % + repr(path)) + super(GitTree, self).__init__(top) + + +######################################################################## + + +class NotGitTree(BaseTree): + + def __init__(self, top): + path = os.path.join(top, '.git') + if os.path.exists(path): + raise AssertionError("File or directory does exist: %s" % + repr(path)) + super(NotGitTree, self).__init__(top) + + +######################################################################## + + +def scan_tree(top): + for dirpath, dirnames, filenames in os.walk(top): + if os.path.basename(dirpath) == 'gphoto-m4': + if 'gp-camlibs.m4' not in filenames: + continue + yield (dirpath, NotGitTree(dirpath)) + + +######################################################################## + + +def print_help(): + skip_line = True + skip_lines = ['#', '# '] + for line in open(__file__, 'r'): + if line[-1] == '\n': + line = line[:-1] + + if line.startswith('#!'): + continue + elif skip_line and (line in skip_lines): + continue + elif skip_line and (line not in skip_lines): + skip_line = False + elif line == '': + break + + if not skip_line: + print(line[2:]) + + +######################################################################## + + +class ResultTable(object): + + def __init__(self): + self.lines = {} + self.files_with_differences = 0 + self.differences = 0 + + def __setitem__(self, key, value): + assert(key not in self.lines) + self.lines[key] = value + if value.file_versions > 0: + self.files_with_differences += 1 + self.differences += value.file_versions + + def __getitem__(self, key): + assert(self.files_with_differences != None) + return self.lines[key] + + def items(self): + for k in sorted(self.lines.keys()): + v = self.lines[k] + yield k,v + + def close(self): + pass + + +######################################################################## + + +class ResultLine(object): + + def __init__(self, fname): + self.fname = fname + + self.__digest_map = {} + self.__digests = {} + self.__digest_list = None + + self.__flags = {} + + self.__fpaths = {} + + def set_digest(self, index, digest): + self.__digest_map[index] = digest + self.__digests[digest] = True + + def close(self, file_versions): + self.file_versions = file_versions + self.__digest_list = sorted(self.__digests.keys()) + assert(len(self.__digest_list) > 0) + if file_versions == 0: + # All files are equal, so we do not need different characters + # to distinguish different digest values - a space will do as + # well. + self.__digest_map = {} + + def get_digest(self, index): + if self.__digest_list == None: + raise RuntimeError("You need to call ResultLine.close() before Result_Line.get_digest()") + if index in self.__digest_map: + dig = self.__digest_map[index] + idx = self.__digest_list.index(dig) + return 'abcdefghijklmnopqrstuvwxyz'[idx] + else: + return ' ' + + def set_flag(self, index, flag, fpath): + self.__flags[index] = flag + self.__fpaths[index] = fpath + + def get_flag(self, index): + return self.__flags[index] + + def get_fpath(self, index): + return self.__fpaths[index] + + +######################################################################## + + +def cmd_print_report(result_table, all_files, treelist, trees): + # Enumerate list of trees + print("Trees (0 is the original tree):") + for i, tree in enumerate(treelist): + print(" %d. %s" % (i,tree)) + print() + + # Determine maximum length of file name + fn_maxlen = 0 + for fn in all_files: + if len(fn) > fn_maxlen: + fn_maxlen = len(fn) + + fmt = " %%-%ds " % fn_maxlen + print("File table:") + + # print table head + print(fmt % '', end='') + print((' {0:-^%d}' % (3*len(treelist)-1)).format('Tree')) + print(fmt % 'file name', end='') + for i, tree in enumerate(treelist): + print(' %2d' % i, end='') + print(' file diffs') + sep_line = (' ' + + '-' * (fn_maxlen + 1 + 3*len(treelist) + 2 + len('file diffs'))) + print(sep_line) + + # print table body + for fname in sorted(all_files): + result_line = result_table[fname] + print(fmt % fname, end='') + print(" %s%s" % (result_line.get_flag(0), + result_line.get_digest(0)), end='') + + for tree_idx, tree_top in enumerate(sorted(trees.keys()), start=1): + tree = trees[tree_top] + print(" %s%s" % (result_line.get_flag(tree_idx), + result_line.get_digest(tree_idx)), end='') + + if result_line.file_versions > 0: + print(' %3d' % result_line.file_versions) + else: + print(' ok') + print(sep_line) + print() + + print("Legend:") + legend = [ + ('N', 'new file'), + ('O', 'original file'), + ('/', 'no such file'), + ('=', 'same content as the original file'), + ('<', 'file with different content is younger than original file'), + ('>', 'file with different content is older than original file'), + ] + for ch, descr in legend: + print(" %s %s" % (ch, descr)) + print(" ") + print(" Small letters identify file contents: Same letter means same content.") + print() + + # Determine exit code + exit_code = 0 + if result_table.differences > 0: + exit_code = 1 + + # Print summary + print("Summary:") + if result_table.differences > 0: + print(" About %d difference(s) found in %d file(s)." % + (result_table.differences, result_table.files_with_differences)) + print(" ") + print(" Diff commands for comparing differing files can be obtained with the") + print(" '--diff' option.") + else: + print(" All gphoto-m4 trees are equal.") + + # Finally exit. + sys.exit(exit_code) + + +######################################################################## + + +def print_diff_commands(diff_commands): + print("#!/bin/sh") + print("#") + print("# This file has been autogenerated by %s" % __file__) + print("#") + print("# List of diff commands. You can pipe these into") + print("# | sh | colordiff | less -r '+/comparing '") + print("# or") + print("# | sh | less '+/^comparing '") + print("# or") + print("# | less") + for fname, orig_dig, other_dig, orig_fpath, other_fpath in diff_commands: + if orig_fpath: + orig_label = "%s (digest '%s')" % (orig_fpath, orig_dig) + else: + orig_fpath = '/dev/null' + orig_label = '(no such file)' + + if other_dig: + other_label = "%s (digest '%s')" % (other_fpath, other_dig) + else: + other_label = other_fpath + + print() + print("""echo 'comparing fname %s'""" % fname) + print("""diff -u --label "%s" %s --label "%s" %s""" + % (orig_label, orig_fpath, + other_label, other_fpath)) + + +######################################################################## + + +def gphoto_m4_sync(dir_list, print_diffs): + + # List all files in this clone of the `gphoto-m4` repository + orig_top = os.path.dirname(os.path.abspath(__file__)) + orig_tree = GitTree(orig_top) + + # For each `gphoto-m4` directory given on the command line, find + # all files. + trees = {} + for top in dir_list: + for dirpath, tree in scan_tree(os.path.abspath(top)): + trees[dirpath] = tree + + if len(trees) == 0: + print("No gphoto-m4 trees found in directories given on command line.") + sys.exit(2) + + + # Make a list of all files within all `gphoto-m4` trees + all_files = {} + for i in orig_tree: + all_files[i] = True + for tree in trees.values(): + for i in tree: + all_files[i] = True + all_files = sorted(all_files.keys()) + + # calculate table values + diff_params = [] + result_table = ResultTable() + for fname in sorted(all_files): + result_line = ResultLine(fname) + file_diffs = 0 + if fname in orig_tree: + result_line.set_flag(0, 'O', orig_tree[fname].fpath) + orig_dig = orig_tree[fname].digest + result_line.set_digest(0, orig_dig) + else: + result_line.set_flag(0, '/', None) + orig_dig = None + + comp_digs = {} + for tree_idx, tree_top in enumerate(sorted(trees.keys()), start=1): + tree = trees[tree_top] + if fname in tree: + dig = tree[fname].digest + flag = 'N' + if orig_dig == dig: + flag = '=' + elif orig_dig: + if tree[fname].statinfo.st_mtime > orig_tree[fname].statinfo.st_mtime: + flag = '>' + elif tree[fname].statinfo.st_mtime < orig_tree[fname].statinfo.st_mtime: + flag = '<' + result_line.set_digest(tree_idx, dig) + else: + flag = '/' + + if fname in tree: + _fpath = tree[fname].fpath + else: + _fpath = None + result_line.set_flag(tree_idx, flag, _fpath) + + if orig_dig: + if result_line.get_flag(tree_idx) != '=': + file_diffs += 1 + else: + if result_line.get_flag(tree_idx) != '/': + file_diffs += 1 + + result_line.close(file_diffs) + del file_diffs + result_table[fname] = result_line + result_table.close() + + if False: + # Diff all files - (some comparisons are unnecessary) + for fname in sorted(all_files): + result_line = result_table[fname] + orig_dig = result_line.get_digest(0) + orig_fpath = result_line.get_fpath(0) + for tree_idx, tree_top in enumerate(sorted(trees.keys()), start=1): + tree = trees[tree_top] + if result_line.get_flag(0) == 'O': + if result_line.get_flag(tree_idx) not in ['=', '/']: + diff_params.append((fname, + orig_fpath, orig_dig, + result_line.get_fpath(tree_idx), + result_line.get_digest(tree_idx))) + else: + if result_line.get_flag(tree_idx) != '/': + diff_params.append((fname, + None, None, + result_line.get_fpath(tree_idx), + None)) + + # Print report + if not print_diffs: + cmd_print_report(result_table, all_files, + [orig_top] + sorted(trees.keys()), + trees) + + # Print diffs + if print_diffs: + # print("# Calculate minimum set of diff commands:") + diff_commands = [] + for fname, result_line in result_table.items(): + line_flags = [] + if result_line.file_versions > 0: + # print("# -", fname) + all_trees = [orig_tree] + [ trees[k] for k in sorted(trees.keys()) ] + for idx_a in range(len(all_trees)): + tree_a = all_trees[idx_a] + dig_a = result_line.get_digest(idx_a) + if dig_a == ' ': + continue + # print("# tree_a", tree_a) + for idx_b in range(len(all_trees)): + tree_b = all_trees[idx_b] + dig_b = result_line.get_digest(idx_b) + if dig_a == dig_b: + continue + if dig_b == ' ': + continue + # print("# tree_b", tree_b) + flag = (fname, dig_a, dig_b) + rev_flag = (fname, dig_b, dig_a) + if flag in line_flags: + pass + elif rev_flag in line_flags: + pass + else: + line_flags.append(flag) + cmd = (fname, dig_a, dig_b, + tree_a[fname].fpath, tree_b[fname].fpath) + diff_commands.append(cmd) + break + del line_flags + # print("#") + + print_diff_commands(diff_commands) + sys.exit(0) + + +####################################################################### + + +def main(args): + if (args == []): + print_help() + sys.exit(0) + + arg_diff = False + for i, arg in enumerate(args): + if arg == '--': + i += 1 + break + elif arg == '--help': + print_help() + sys.exit(0) + elif arg == '--diff': + arg_diff = True + elif arg.startswith('--'): + raise ValueError("Unhandled command line option '%s'" % arg) + else: + assert(arg[:2] != '--') + break + + dir_list = args[i:] + if False: + print("Arguments:", dir_list) + print() + + gphoto_m4_sync(dir_list, arg_diff) + + +######################################################################## + + +if __name__ == '__main__': + main(sys.argv[1:]) + + +######################################################################## diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/.cvsignore b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/.cvsignore new file mode 100644 index 00000000..b82f22d5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/.cvsignore @@ -0,0 +1,7 @@ +*~ .*~ +.arch-ids +Makefile.in +Makefile +.deps +.libs +gphoto2 diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/Makefile.am new file mode 100644 index 00000000..88ff9cf2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/Makefile.am @@ -0,0 +1,59 @@ +## Process this file with automake to create a GNU Makefile + +# We need to add the source files to the list because +# sometimes people without aalib or cdk make dist. +EXTRA_DIST = \ + gphoto2-cmd-config.c gphoto2-cmd-config.h \ + gphoto2-cmd-capture.c gphoto2-cmd-capture.h \ + i18n.h test-hook.sh + +bin_PROGRAMS = gphoto2 + +doc_DATA = test-hook.sh + +if HAVE_CDK +CDK_FILES = gphoto2-cmd-config.c gphoto2-cmd-config.h +else +CDK_FILES = +endif + +if HAVE_AA +AA_FILES = gphoto2-cmd-capture.c gphoto2-cmd-capture.h +else +AA_FILES = +endif + +gphoto2_SOURCES = \ + $(AA_FILES) \ + $(CDK_FILES) \ + $(NO_POPT_FILES) \ + actions.c actions.h \ + foreach.c foreach.h \ + globals.h \ + gp-params.c gp-params.h \ + spawnve.c spawnve.h \ + main.c main.h \ + version.c version.h \ + range.c range.h \ + shell.c shell.h + +#gphoto2_LDFLAGS = -export-dynamic + +gphoto2_CFLAGS = \ + -I$(top_srcdir) -I$(top_srcdir)/gphoto2 \ + $(LIBGPHOTO2_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(CDK_CFLAGS) $(AA_CFLAGS) \ + $(LIBEXIF_CFLAGS) $(RL_CFLAGS) $(POPT_CFLAGS) + + +gphoto2_LDADD = \ + $(LIBGPHOTO2_LIBS) $(CDK_LIBS) $(AA_LIBS) $(JPEG_LIBS) \ + $(PTHREAD_LIBS) $(LIBEXIF_LIBS) $(INTLLIBS) $(RL_LIBS) $(POPT_LIBS) + +TESTS = spawntest + +TESTS_ENVIRONMENT = GPHOTO_HOOK=$(srcdir)/test-hook.sh + +check_PROGRAMS = spawntest + +spawntest_SOURCES = spawntest.c spawnve.c spawnve.h diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/actions.c b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/actions.c new file mode 100644 index 00000000..79b61acb --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/actions.c @@ -0,0 +1,2167 @@ +/* actions.c + * + * Copyright 2002 Lutz Mueller + * Copyright 2016 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _XOPEN_SOURCE /* strptime proto, but this hides other prototypes */ +#define _GNU_SOURCE /* get all the other prototypes */ +#define __EXTENSIONS__ /* for solaris to get back strdup and strcasecmp */ + +#include "config.h" + +#include +#include +#ifdef HAVE_FCNTL_H +# include +#endif +#include + +#include +#ifdef HAVE_SYS_TIME_H +# include +#endif + +#include "actions.h" +#include "i18n.h" +#include "main.h" +#include "version.h" + + +#include +#include +#include +#include + +#ifdef HAVE_AA +# include "gphoto2-cmd-capture.h" +#endif + +#ifdef HAVE_LIBEXIF +# include +#endif + +#define CR(result) {int __r=(result); if (__r<0) return __r;} +#define CRU(result,file) {int __r=(result); if (__r<0) {gp_file_unref(file);return __r;}} +#define CL(result,list) {int __r=(result); if (__r<0) {gp_list_free(list); return __r;}} + +#ifdef __GNUC__ +#define __unused__ __attribute__((unused)) +#else +#define __unused__ +#endif + +static int print_widget (GPParams *p, const char*name, CameraWidget *widget); + +static long +timediff_now (struct timeval *target) { + struct timeval now; + + gettimeofday (&now, NULL); + return (target->tv_sec-now.tv_sec)*1000+ + (target->tv_usec-now.tv_usec)/1000; +} + + +int +delete_all_action (GPParams *p) +{ + return (gp_camera_folder_delete_all (p->camera, p->folder, p->context)); +} + +int +action_camera_upload_file (GPParams *p, const char *folder, const char *path) +{ + CameraFile *file; + int res; + char *fn; + + gp_log (GP_LOG_DEBUG, "main", "Uploading file..."); + + CR (gp_file_new_from_fd (&file, -1)); + res = gp_file_open (file, path); + if (res < GP_OK) { + gp_file_unref (file); + return res; + } + if (p->filename && strcmp (p->filename, "")) + fn = p->filename; + else + fn = basename (path); + + res = gp_camera_folder_put_file (p->camera, folder, fn, GP_FILE_TYPE_NORMAL, file, + p->context); + gp_file_unref (file); + return (res); +} + +int +action_camera_upload_metadata (GPParams *p, const char *folder, const char *path) +{ + CameraFile *file; + int res; + char *fn = NULL; + + gp_log (GP_LOG_DEBUG, "main", "Uploading metadata..."); + + CR (gp_file_new (&file)); + res = gp_file_open (file, path); + if (res < 0) { + gp_file_unref (file); + return (res); + } + + /* Check if the user specified a filename */ + if (p->filename && strcmp (p->filename, "")) { + fn = p->filename; + } else if (path == strstr(path, "meta_")) { + fn = path+5; + } + res = gp_camera_folder_put_file (p->camera, folder, fn, GP_FILE_TYPE_METADATA, file, + p->context); + gp_file_unref (file); + return (res); +} + +int +num_files_action (GPParams *p) +{ + CameraList *list; + int count, filecount; + + CR (gp_list_new (&list)); + CL (gp_camera_folder_list_files (p->camera, p->folder, + list, p->context), list); + CL (count = gp_list_count (list), list); + + if (p->flags & FLAGS_NEW) { + int i; + const char *name; + + filecount = 0; + for (i = 0; i < count; i++) { + CameraFileInfo info; + + CL (gp_list_get_name (list, i, &name), list); + CR (gp_camera_file_get_info (p->camera, p->folder, + name, &info, p->context)); + if (info.file.fields & GP_FILE_INFO_STATUS && + info.file.status != GP_FILE_STATUS_DOWNLOADED) + filecount++; + } + } + else + filecount = count; + + gp_list_free (list); + if (p->flags & FLAGS_QUIET) + printf ("%i\n", filecount); + else + printf (_("Number of files in folder '%s': %i\n"), + p->folder, filecount); + + return (GP_OK); +} + +int +list_folders_action (GPParams *p) +{ + CameraList *list; + int count; + const char *name; + int i; + + CR (gp_list_new (&list)); + + CL (gp_camera_folder_list_folders (p->camera, p->folder, list, + p->context), list); + CL (count = gp_list_count (list), list); + if (!(p->flags & FLAGS_QUIET)) + printf(ngettext( + "There is %d folder in folder '%s'.\n", + "There are %d folders in folder '%s'.\n", + count + ), count, p->folder); + + for (i = 0; i < count; i++) { + CL (gp_list_get_name (list, i, &name), list); + if (p->flags & FLAGS_QUIET) { + if (!strcmp(p->folder,"/")) + printf ("/%s\n", name); + else + printf ("%s/%s\n", p->folder, name); + } else + printf (" - %s\n", name); + } + gp_list_free (list); + return (GP_OK); +} + +int +list_files_action (GPParams *p) +{ + CameraList *list; + int count, filecount; + const char *name; + int i; + + CR (gp_list_new (&list)); + CL (gp_camera_folder_list_files (p->camera, p->folder, list, + p->context), list); + CL (count = gp_list_count (list), list); + if (p->flags & FLAGS_NEW) { + filecount = 0; + for (i = 0; i < count; i++) { + CameraFileInfo info; + + CL (gp_list_get_name (list, i, &name), list); + CR (gp_camera_file_get_info (p->camera, p->folder, + name, &info, p->context)); + if (info.file.fields & GP_FILE_INFO_STATUS && + info.file.status != GP_FILE_STATUS_DOWNLOADED) + filecount++; + } + } + else + filecount = count; + + if (!(p->flags & FLAGS_QUIET)) { /* do not print that in quiet mode */ + if (filecount == 0) { /* 0 is weird still, despite ngettext() */ + printf(_("There is no file in folder '%s'.\n"), p->folder); + } else { + printf(ngettext( + "There is %d file in folder '%s'.\n", + "There are %d files in folder '%s'.\n", + filecount + ), filecount, p->folder); + } + } + for (i = 0; i < count; i++) { + CL (gp_list_get_name (list, i, &name), list); + CL (print_file_action (p, p->folder, name), list); + } + gp_list_free (list); + return (GP_OK); +} + +int +print_info_action (GPParams *p, const char *folder, const char *filename) +{ + CameraFileInfo info; + + CR (gp_camera_file_get_info (p->camera, folder, filename, &info, + p->context)); + + printf (_("Information on file '%s' (folder '%s'):\n"), + filename, folder); + printf (_("File:\n")); + if (info.file.fields == GP_FILE_INFO_NONE) + printf (_(" None available.\n")); + else { + if (info.file.fields & GP_FILE_INFO_TYPE) + printf (_(" Mime type: '%s'\n"), info.file.type); + if (info.file.fields & GP_FILE_INFO_SIZE) + printf (_(" Size: %lu byte(s)\n"), (unsigned long int)info.file.size); + if (info.file.fields & GP_FILE_INFO_WIDTH) + printf (_(" Width: %i pixel(s)\n"), info.file.width); + if (info.file.fields & GP_FILE_INFO_HEIGHT) + printf (_(" Height: %i pixel(s)\n"), info.file.height); + if (info.file.fields & GP_FILE_INFO_STATUS) + printf (_(" Downloaded: %s\n"), + (info.file.status == GP_FILE_STATUS_DOWNLOADED) ? _("yes") : _("no")); + if (info.file.fields & GP_FILE_INFO_PERMISSIONS) { + printf (_(" Permissions: ")); + if ((info.file.permissions & GP_FILE_PERM_READ) && + (info.file.permissions & GP_FILE_PERM_DELETE)) + printf (_("read/delete")); + else if (info.file.permissions & GP_FILE_PERM_READ) + printf (_("read")); + else if (info.file.permissions & GP_FILE_PERM_DELETE) + printf (_("delete")); + else + printf (_("none")); + putchar ('\n'); + } + if (info.file.fields & GP_FILE_INFO_MTIME) + printf (_(" Time: %s"), + asctime (localtime (&info.file.mtime))); + } + printf (_("Thumbnail:\n")); + if (info.preview.fields == GP_FILE_INFO_NONE) + printf (_(" None available.\n")); + else { + if (info.preview.fields & GP_FILE_INFO_TYPE) + printf (_(" Mime type: '%s'\n"), info.preview.type); + if (info.preview.fields & GP_FILE_INFO_SIZE) + printf (_(" Size: %lu byte(s)\n"), (unsigned long int)info.preview.size); + if (info.preview.fields & GP_FILE_INFO_WIDTH) + printf (_(" Width: %i pixel(s)\n"), info.preview.width); + if (info.preview.fields & GP_FILE_INFO_HEIGHT) + printf (_(" Height: %i pixel(s)\n"), info.preview.height); + if (info.preview.fields & GP_FILE_INFO_STATUS) + printf (_(" Downloaded: %s\n"), + (info.preview.status == GP_FILE_STATUS_DOWNLOADED) ? _("yes") : _("no")); + } + printf (_("Audio data:\n")); + if (info.audio.fields == GP_FILE_INFO_NONE) + printf (_(" None available.\n")); + else { + if (info.audio.fields & GP_FILE_INFO_TYPE) + printf (_(" Mime type: '%s'\n"), info.audio.type); + if (info.audio.fields & GP_FILE_INFO_SIZE) + printf (_(" Size: %lu byte(s)\n"), (unsigned long int)info.audio.size); + if (info.audio.fields & GP_FILE_INFO_STATUS) + printf (_(" Downloaded: %s\n"), + (info.audio.status == GP_FILE_STATUS_DOWNLOADED) ? _("yes") : _("no")); + } + + return (GP_OK); +} + +int +print_file_action (GPParams *p, const char *folder, const char *filename) +{ + static int x = 0; + + if (p->flags & FLAGS_NEW) { + CameraFileInfo info; + + CR (gp_camera_file_get_info (p->camera, folder, + filename, &info, p->context)); + if (info.file.fields & GP_FILE_INFO_STATUS && + info.file.status == GP_FILE_STATUS_DOWNLOADED) { + x++; + return (GP_OK); + } + } + + if (p->flags & FLAGS_QUIET) + printf ("%s/%s\n", folder, filename); + else { + CameraFileInfo info; + if (gp_camera_file_get_info (p->camera, folder, filename, + &info, NULL) == GP_OK) { + printf("#%-5i %-27s", x+1, filename); + if (info.file.fields & GP_FILE_INFO_PERMISSIONS) { + printf("%s%s", + (info.file.permissions & GP_FILE_PERM_READ) ? "r" : "-", + (info.file.permissions & GP_FILE_PERM_DELETE) ? "d" : "-"); + } + if (info.file.fields & GP_FILE_INFO_SIZE) + printf(" %5ld KB", (unsigned long int)((info.file.size+1023) / 1024)); + if ((info.file.fields & GP_FILE_INFO_WIDTH) && + + (info.file.fields & GP_FILE_INFO_HEIGHT)) + printf(" %4dx%-4d", info.file.width, info.file.height); + if (info.file.fields & GP_FILE_INFO_TYPE) + printf(" %s", info.file.type); + putchar ('\n'); + } else + printf("#%-5i %s\n", x+1, filename); + } + x++; + return (GP_OK); +} + +int +save_file_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_NORMAL)); +} + +int +save_exif_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_EXIF)); +} + +int +save_meta_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_METADATA)); +} + +int +save_thumbnail_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_PREVIEW)); +} + +int +save_raw_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_RAW)); +} + +int +save_audio_action (GPParams *p, const char *folder, const char *filename) +{ + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, GP_FILE_TYPE_AUDIO)); +} + +int +save_all_audio_action (GPParams *p, const char *folder, const char *filename) +{ + /* not every file has an associated audio file */ + if (camera_file_exists(p->camera, p->context, folder, filename, + GP_FILE_TYPE_AUDIO)) + return (save_file_to_file (p->camera, p->context, p->flags, + folder, filename, + GP_FILE_TYPE_AUDIO)); + return GP_OK; +} + +int +delete_file_action (GPParams *p, const char *folder, const char *filename) +{ + if (p->flags & FLAGS_NEW) { + CameraFileInfo info; + + CR (gp_camera_file_get_info (p->camera, folder, filename, + &info, p->context)); + if (info.file.fields & GP_FILE_INFO_STATUS && + info.file.status == GP_FILE_STATUS_DOWNLOADED) + return (GP_OK); + } + return (gp_camera_file_delete (p->camera, folder, filename, + p->context)); +} + +#ifdef HAVE_LIBEXIF +static void +show_ifd (ExifContent *content) +{ + ExifEntry *e; + unsigned int i; + + for (i = 0; i < content->count; i++) { + e = content->entries[i]; + printf ("%-20.20s", exif_tag_get_name (e->tag)); + printf ("|"); +#ifdef HAVE_LIBEXIF_LOG + {char b[1024]; + printf ("%-59.59s", exif_entry_get_value (e, b, sizeof (b))); + } +#else + printf ("%-59.59s", exif_entry_get_value (e)); +#endif + printf ("\n"); + } +} + +static void +print_hline (void) +{ + int i; + + for (i = 0; i < 20; i++) + putchar ('-'); + printf ("+"); + for (i = 0; i < 59; i++) + putchar ('-'); + putchar ('\n'); +} +#endif + +int +print_exif_action (GPParams *p, const char *folder, const char *filename) +{ +#ifdef HAVE_LIBEXIF + CameraFile *file; + const char *data; + unsigned long size; + ExifData *ed; +#ifdef HAVE_LIBEXIF_IFD + unsigned int i; +#endif + + CR (gp_file_new (&file)); + CRU (gp_camera_file_get (p->camera, folder, filename, + GP_FILE_TYPE_EXIF, file, p->context), file); + CRU (gp_file_get_data_and_size (file, &data, &size), file); + ed = exif_data_new_from_data ((unsigned char *)data, size); + gp_file_unref (file); + if (!ed) { + gp_context_error (p->context, _("Could not parse EXIF data.")); + return (GP_ERROR); + } + + printf (_("EXIF tags:")); + putchar ('\n'); + print_hline (); + printf ("%-20.20s", _("Tag")); + printf ("|"); + printf ("%-59.59s", _("Value")); + putchar ('\n'); + print_hline (); +#ifdef HAVE_LIBEXIF_IFD + for (i = 0; i < EXIF_IFD_COUNT; i++) + if (ed->ifd[i]) + show_ifd (ed->ifd[i]); +#else + if (ed->ifd0) + show_ifd (ed->ifd0); + if (ed->ifd1) + show_ifd (ed->ifd1); + if (ed->ifd_exif) + show_ifd (ed->ifd_exif); + if (ed->ifd_gps) + show_ifd (ed->ifd_gps); + if (ed->ifd_interoperability) + show_ifd (ed->ifd_interoperability); +#endif + print_hline (); + if (ed->size) { + printf (_("EXIF data contains a thumbnail (%i bytes)."), + ed->size); + putchar ('\n'); + } + + exif_data_unref (ed); + + return (GP_OK); +#else + gp_context_error (p->context, _("gphoto2 has been compiled without " + "EXIF support.")); + return (GP_ERROR_NOT_SUPPORTED); +#endif +} + +int +list_cameras_action (GPParams *p) +{ + int r = GP_OK, n, i; + CameraAbilities a; + + r = gp_abilities_list_count (gp_params_abilities_list(p)); + if (r < 0) + return (r); + if (p->flags & FLAGS_QUIET) + printf ("%i\n", r); + else { + printf (_("Number of supported cameras: %i\n"), r); + printf (_("Supported cameras:\n")); + } + n = r; + for (i = 0; i < n; i++) { + r = gp_abilities_list_get_abilities (gp_params_abilities_list(p), + i, &a); + if (r < 0) + break; + if (p->flags & FLAGS_QUIET) + printf ("%s\n", a.model); + else + switch (a.status) { + case GP_DRIVER_STATUS_TESTING: + printf (_("\t\"%s\" (TESTING)\n"), a.model); + break; + case GP_DRIVER_STATUS_EXPERIMENTAL: + printf (_("\t\"%s\" (EXPERIMENTAL)\n"), + a.model); + break; + case GP_DRIVER_STATUS_PRODUCTION: + default: + printf (_("\t\"%s\"\n"), a.model); + break; + } + } + + return (r); +} + +void +_get_portinfo_list (GPParams *p) { + int count, result; + GPPortInfoList *list = NULL; + + if (p->portinfo_list) + return; + + if (gp_port_info_list_new (&list) < GP_OK) + return; + result = gp_port_info_list_load (list); + if (result < 0) { + gp_port_info_list_free (list); + return; + } + count = gp_port_info_list_count (list); + if (count < 0) { + gp_port_info_list_free (list); + return; + } + p->portinfo_list = list; + return; +} + +int +list_ports_action (GPParams *p) +{ + GPPortInfo info; + int x, count, result = GP_OK; + + _get_portinfo_list (p); + count = gp_port_info_list_count (p->portinfo_list); + + if (p->flags & FLAGS_QUIET) + printf("%i\n", count); + else { + printf(_("Devices found: %i\n"), count); + printf(_("Path Description\n" + "--------------------------------------------------------------\n")); + } + + /* Now list the ports */ + for (x = 0; x < count; x++) { + char *xname, *xpath; + result = gp_port_info_list_get_info (p->portinfo_list, x, &info); + if (result < 0) + break; + gp_port_info_get_name (info, &xname); + gp_port_info_get_path (info, &xpath); + printf ("%-32s %-32s\n", xpath, xname); + } + return (result); + +} + +int +auto_detect_action (GPParams *p) +{ + int x, count; + CameraList *list; + const char *name = NULL, *value = NULL; + + _get_portinfo_list (p); + count = gp_port_info_list_count (p->portinfo_list); + + CR (gp_list_new (&list)); + gp_abilities_list_detect (gp_params_abilities_list(p), p->portinfo_list, list, p->context); + + CL (count = gp_list_count (list), list); + + printf(_("%-30s %-16s\n"), _("Model"), _("Port")); + printf(_("----------------------------------------------------------\n")); + for (x = 0; x < count; x++) { + CL (gp_list_get_name (list, x, &name), list); + CL (gp_list_get_value (list, x, &value), list); + printf(_("%-30s %-16s\n"), name, value); + } + gp_list_free (list); + return GP_OK; +} + +int +action_camera_show_abilities (GPParams *p) +{ + CameraAbilities a; + int i; + int has_capture = 0; + + CR (gp_camera_get_abilities (p->camera, &a)); + printf (_("Abilities for camera : %s\n"), a.model); + printf (_("Serial port support : %s\n"), + (a.port & GP_PORT_SERIAL) ? _("yes"):_("no")); + printf (_("USB support : %s\n"), + (a.port & GP_PORT_USB) ? _("yes"):_("no")); + if (a.speed[0] != 0) { + printf (_("Transfer speeds supported :\n")); + for (i = 0; a.speed[i]; i++) + printf (_(" : %i\n"), + a.speed[i]); + } + printf (_("Capture choices :\n")); + if (a.operations & GP_OPERATION_CAPTURE_IMAGE) { + printf (_(" : Image\n")); + has_capture = 1; + } + if (a.operations & GP_OPERATION_CAPTURE_VIDEO) { + printf (_(" : Video\n")); + has_capture = 1; + } + if (a.operations & GP_OPERATION_CAPTURE_AUDIO) { + printf (_(" : Audio\n")); + has_capture = 1; + } + if (a.operations & GP_OPERATION_CAPTURE_PREVIEW) { + printf (_(" : Preview\n")); + has_capture = 1; + } + if (a.operations & GP_OPERATION_TRIGGER_CAPTURE) { + printf (_(" : Trigger Capture\n")); + has_capture = 1; + } + if (has_capture == 0) { + printf (_(" : Capture not supported by the driver\n")); + } + printf (_("Configuration support : %s\n"), + (a.operations & GP_OPERATION_CONFIG) ? _("yes"):_("no")); + printf (_("Delete selected files on camera : %s\n"), + (a.file_operations & GP_FILE_OPERATION_DELETE) ? + _("yes"):_("no")); + printf (_("Delete all files on camera : %s\n"), + (a.folder_operations & GP_FOLDER_OPERATION_DELETE_ALL) ? + _("yes"):_("no")); + printf (_("File preview (thumbnail) support : %s\n"), + (a.file_operations & GP_FILE_OPERATION_PREVIEW) ? + _("yes"):_("no")); + printf (_("File upload support : %s\n"), + (a.folder_operations & GP_FOLDER_OPERATION_PUT_FILE) ? + _("yes"):_("no")); + + return (GP_OK); +} + +int +action_camera_set_port (GPParams *params, const char *port) +{ + int p, r; + GPPortInfo info; + char *path; + char verified_port[1024]; + + verified_port[sizeof (verified_port) - 1] = '\0'; + if (!strchr (port, ':')) { + gp_log (GP_LOG_DEBUG, "main", _("Ports must look like " + "'serial:/dev/ttyS0' or 'usb:', but '%s' is " + "missing a colon so I am going to guess what you " + "mean."), port); + if (!strcmp (port, "usb")) { + strncpy (verified_port, "usb:", + sizeof (verified_port) - 1); + } else if (strncmp (port, "/dev/", 5) == 0) { + strncpy (verified_port, "serial:", + sizeof (verified_port) - 1); + strncat (verified_port, port, + sizeof (verified_port) + - strlen (verified_port) - 1); + } else if (strncmp (port, "/proc/", 6) == 0) { + strncpy (verified_port, "usb:", + sizeof (verified_port) - 1); + strncat (verified_port, port, + sizeof (verified_port) + - strlen (verified_port) - 1); + } + gp_log (GP_LOG_DEBUG, "main", "Guessed port name. Using port " + "'%s' from now on.", verified_port); + } else + strncpy (verified_port, port, sizeof (verified_port) - 1); + + /* Create the list of ports and load it. */ + _get_portinfo_list (params); + + /* Search our port in the list. */ + /* NOTE: This call can modify "il" for regexp matches! */ + p = gp_port_info_list_lookup_path (params->portinfo_list, verified_port); + + switch (p) { + case GP_ERROR_UNKNOWN_PORT: + fprintf (stderr, _("The port you specified " + "('%s') can not be found. Please " + "specify one of the ports found by " + "'gphoto2 --list-ports' and make " + "sure the spelling is correct " + "(i.e. with prefix 'serial:' or 'usb:')."), + verified_port); + break; + default: + break; + } + + /* Get info about our port. */ + r = gp_port_info_list_get_info (params->portinfo_list, p, &info); + if (r < 0) + return (r); + + /* Set the port of our camera. */ + r = gp_camera_set_port_info (params->camera, info); + if (r < 0) + return (r); + gp_port_info_get_path (info, &path); + gp_setting_set ("gphoto2", "port", path); + return (GP_OK); +} + +int +action_camera_about (GPParams *params) +{ + CameraText text; + + CR (gp_camera_get_about (params->camera, &text, params->context)); + + printf (_("About the camera driver:")); + printf ("\n%s\n", _(text.text)); + + return (GP_OK); +} + +int +action_camera_summary (GPParams *params) +{ + CameraText text; + + CR (gp_camera_get_summary (params->camera, &text, params->context)); + + printf (_("Camera summary:")); + printf ("\n%s\n", _(text.text)); + + return (GP_OK); +} + +int +action_camera_manual (GPParams *params) +{ + CameraText text; + + CR (gp_camera_get_manual (params->camera, &text, params->context)); + + printf (_("Camera manual:")); + printf ("\n%s\n", _(text.text)); + + return (GP_OK); +} + +int +action_camera_set_speed (GPParams *p, unsigned int speed) +{ + GPPortInfo info; + GPPortType type; + + /* Make sure we've got a serial port. */ + CR (gp_camera_get_port_info (p->camera, &info)); + gp_port_info_get_type (info, &type); + if (type != GP_PORT_SERIAL) { + if ((p->flags & FLAGS_QUIET) == 0) { + fprintf (stderr, _("You can only specify speeds for " + "serial ports.")); + fputc ('\n', stderr); + } + return (GP_ERROR_BAD_PARAMETERS); + } + /* Set the speed. */ + return gp_camera_set_port_speed (p->camera, speed); +} + +int +action_camera_set_model (GPParams *p, const char *model) +{ + CameraAbilities a; + int m; + + CR (m = gp_abilities_list_lookup_model (gp_params_abilities_list(p), model)); + CR (gp_abilities_list_get_abilities (gp_params_abilities_list(p), m, &a)); + CR (gp_camera_set_abilities (p->camera, a)); + gp_setting_set ("gphoto2", "model", a.model); + + return (GP_OK); +} + +int +set_folder_action (GPParams *p, const char *folder) +{ + if (p->folder) + free (p->folder); + p->folder = strdup (folder); + return (p->folder ? GP_OK: GP_ERROR_NO_MEMORY); +} + +int +set_filename_action (GPParams *p, const char *filename) +{ + if (p->filename) + free (p->filename); + p->filename = strdup (filename); + return (p->filename ? GP_OK: GP_ERROR_NO_MEMORY); +} + +#define CHECK_NULL(x) { if (x == NULL) { return(-1); /* FIXME: what code? */ } } + +int +print_version_action (GPParams __unused__ *p) +{ + int n; + const char *port_message = +#ifdef OS2 + _("OS/2 port by Bart van Leeuwen\n"); +#else + ""; +#endif + printf (_("gphoto2 %s\n" + "\n" + "Copyright (c) 2000-%d Lutz Mueller and others\n" + "%s" + "\n" + "gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" + "redistribute copies of gphoto2 under the terms of the GNU General Public\n" + "License. For more information about these matters, see the files named COPYING.\n" + "\n" + "This version of gphoto2 is using the following software versions and options:\n"), + VERSION, + 2018, /* year of release! */ + port_message + ); + + for (n = 0; module_versions[n].name != NULL; n++) { + int i; + const char **v = NULL; + char *name = module_versions[n].name; + GPVersionFunc func = module_versions[n].version_func; + CHECK_NULL (name); + CHECK_NULL (func); + v = func(GP_VERSION_SHORT); + CHECK_NULL (v); + CHECK_NULL (v[0]); + printf ("%-15s %-14s ", name, v[0]); + for (i = 1; v[i] != NULL; i++) { + if (v[i+1] != NULL) + printf ("%s, ", v[i]); + else + printf ("%s", v[i]); + } + putchar ('\n'); + } + + return (GP_OK); +} + +static int +_action_camera_capture_preview (GPParams *p, int viewasciiart) +{ + CameraFile *file; + int r, fd; + char tmpname[20], *tmpfilename = NULL; + + if (p->flags & FLAGS_STDOUT) { + fd = dup(fileno(stdout)); + CR (gp_file_new_from_fd (&file, fd)); + } else { + strcpy (tmpname, "tmpfileXXXXXX"); + fd = mkstemp(tmpname); + if (fd == -1) { + CR (gp_file_new (&file)); + tmpfilename = NULL; + } else { + r = gp_file_new_from_fd (&file, fd); + if (r < GP_OK) { + close (fd); + unlink (tmpname); + return r; + } + tmpfilename = tmpname; + } + } + +#ifdef HAVE_AA + if (viewasciiart) + r = gp_cmd_capture_preview (p->camera, file, p->context); + else +#endif + r = gp_camera_capture_preview (p->camera, file, p->context); + fflush(stdout); + if (r < 0) { + if(!(p->flags & FLAGS_STDOUT)) + gp_file_unref (file); + unlink (tmpname); + return r; + } + + /* name it file_%filename if --filename is set, otherwise capture_preview */ + if(!(p->flags & FLAGS_STDOUT)) { + r = save_camera_file_to_file (NULL, "capture_preview", p->filename?GP_FILE_TYPE_PREVIEW:GP_FILE_TYPE_NORMAL, file, tmpfilename); + gp_file_unref (file); + if (r < 0) { + unlink (tmpname); + return (r); + } + } + return GP_OK; +} + +int +action_camera_capture_preview (GPParams *p) { + return _action_camera_capture_preview (p, 0); +} + +int +action_camera_show_preview (GPParams *p) { + return _action_camera_capture_preview (p, 1); +} + +enum moviemode { MOVIE_ENDLESS, MOVIE_FRAMES, MOVIE_SECONDS }; + +int +action_camera_capture_movie (GPParams *p, const char *arg) +{ + CameraFile *file; + int r; + int fd; + time_t st; + enum moviemode mm; + int frames,captured_frames=0; + char *xname; + struct timeval starttime; + + if (p->flags & FLAGS_STDOUT) { + fd = dup(fileno(stdout)); + xname = "stdout"; + } else { + fd = open("movie.mjpg",O_WRONLY|O_CREAT,0660); + if (fd == -1) { + cli_error_print(_("Could not open 'movie.mjpg'.")); + return GP_ERROR; + } + xname = "movie.mjpg"; + } + if (!arg) { + mm = MOVIE_ENDLESS; + fprintf(stderr,_("Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n"), xname); + } else { + if (strchr(arg,'s')) { + sscanf (arg, "%ds", &frames); + fprintf(stderr,_("Capturing preview frames as movie to '%s' for %d seconds.\n"), xname, frames); + mm = MOVIE_SECONDS; + time (&st); + } else { + sscanf (arg, "%d", &frames); + fprintf(stderr,_("Capturing %d preview frames as movie to '%s'.\n"), frames, xname); + mm = MOVIE_FRAMES; + } + } + CR (gp_file_new_from_fd (&file, fd)); + gettimeofday (&starttime, NULL); + while (1) { + const char *mime; + r = gp_camera_capture_preview (p->camera, file, p->context); + if (r < 0) { + cli_error_print(_("Movie capture error... Exiting.")); + break; + } + gp_file_get_mime_type (file, &mime); + if (strcmp (mime, GP_MIME_JPEG)) { + cli_error_print(_("Movie capture error... Unhandled MIME type '%s'."), mime); + break; + } + + captured_frames++; + + if (glob_cancel) { + fprintf(stderr, _("Ctrl-C pressed ... Exiting.\n")); + break; + } + if (mm == MOVIE_FRAMES) { + if (!frames--) + break; + } + if (mm == MOVIE_SECONDS) { + if ((-timediff_now (&starttime)) >= frames*1000) + break; + } + } + gp_file_unref (file); + + fprintf(stderr,_("Movie capture finished (%d frames)\n"), captured_frames); + return GP_OK; +} + + +/* + * arg can be: + * events as number e.g.: 1000 + * frames as number with suffix f e.g.: 100f + * seconds as number with suffix s e.g.: 50s + * milliseconds as number with suffix mse.g.: 200ms + */ +int +action_camera_wait_event (GPParams *p, enum download_type downloadtype, const char*arg) +{ + int ret; + struct waitparams wp; + CameraEventType event; + void *data = NULL; + CameraFilePath *fn; + CameraFilePath last; + struct timeval xtime; + int events, frames; + + gettimeofday (&xtime, NULL); + memset(&last,0,sizeof(last)); + + wp.type = WAIT_EVENTS; + wp.u.events = 1000000; + if (!arg || !strlen(arg)) { + printf ( _("Waiting for events from camera. Press Ctrl-C to abort.\n")); + } else { + int x; + if ((arg[strlen(arg)-1]=='f') && sscanf(arg,"%df", &x)) { /* exact nr of frames */ + wp.type = WAIT_FRAMES; + wp.u.frames = x; + printf ( _("Waiting for %d frames from the camera. Press Ctrl-C to abort.\n"), x); + } else + if ((strlen(arg)>2) && (!strcmp(&arg[strlen(arg)-2],"ms")) && sscanf(arg,"%dms",&x)) { /* exact milliseconds */ + wp.type = WAIT_TIME; + wp.u.milliseconds = x; + printf ( _("Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n"), x); + } else + if ((wp.type != WAIT_TIME) && (arg[strlen(arg)-1]=='s') && sscanf(arg,"%ds", &x)) { /* exact seconds */ + wp.type = WAIT_TIME; + wp.u.milliseconds = x*1000; + printf ( _("Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n"), x); + } else if ((wp.type == WAIT_EVENTS) && sscanf(arg,"%d", &x)) { + wp.u.events = atoi(arg); + printf ( _("Waiting for %d events from camera. Press Ctrl-C to abort.\n"), wp.u.events); + } else { + wp.type = WAIT_STRING; + wp.u.str = arg; + printf ( _("Waiting for '%s' event from camera. Press Ctrl-C to abort.\n"), wp.u.str); + } + } + + events = frames = 0; + while (1) { + int leftoverms = 1000; + struct timeval ytime; + int x, exitloop; + + if (glob_cancel) break; + + exitloop = 0; + switch (wp.type) { + case WAIT_STRING: + break; + case WAIT_EVENTS: + if (events >= wp.u.events) exitloop = 1; + break; + case WAIT_FRAMES: + if (frames >= wp.u.frames) exitloop = 1; + break; + case WAIT_TIME: + gettimeofday (&ytime, NULL); + + x = ((ytime.tv_usec-xtime.tv_usec)+(ytime.tv_sec-xtime.tv_sec)*1000000)/1000; + if (x >= wp.u.milliseconds) { exitloop = 1; break; } + /* if left over time is < 1s, set it... otherwise wait at most 1s */ + if ((wp.u.milliseconds-x) < leftoverms) + leftoverms = wp.u.milliseconds-x; + } + if (exitloop) break; + + data = NULL; + ret = gp_camera_wait_for_event (p->camera, leftoverms, &event, &data, p->context); + if (ret != GP_OK) + return ret; + events++; + switch (event) { + case GP_EVENT_UNKNOWN: + if (data) { + printf("UNKNOWN %s\n", (char*)data); + if (wp.type == WAIT_STRING) { + if (strstr(data,wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + } + } else { + printf("UNKNOWN\n"); + } + break; + case GP_EVENT_TIMEOUT: + /*printf("TIMEOUT\n");*/ + break; + case GP_EVENT_CAPTURE_COMPLETE: + printf("CAPTURECOMPLETE\n"); + if ((wp.type == WAIT_STRING) && strstr("CAPTURECOMPLETE",wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + break; + case GP_EVENT_FILE_ADDED: + frames++; + + fn = (CameraFilePath*)data; + + if ( (downloadtype == DT_NO_DOWNLOAD) || + ( (p->flags & FLAGS_KEEP_RAW) && + ( !strstr(fn->name,".jpg") && !strstr(fn->name,".JPG")) + ) + ) { + printf("FILEADDED %s %s\n",fn->name, fn->folder); + if ((wp.type == WAIT_STRING) && strstr("FILEADDED",wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + continue; + } + /* Otherwise download the image and continue... */ + if(strcmp(fn->folder, last.folder)) { + strcpy(last.folder, fn->folder); + ret = set_folder_action(p, fn->folder); + if (ret != GP_OK) { + cli_error_print(_("Could not set folder.")); + return (ret); + } + } + ret = get_file_common (fn->name, GP_FILE_TYPE_NORMAL); + if (ret != GP_OK) { + cli_error_print (_("Could not get image.")); + if(ret == GP_ERROR_FILE_NOT_FOUND) { + /* Buggy libcanon.so? + * Can happen if this was the first capture after a + * CF card format, or during a directory roll-over, + * ie: CANON100 -> CANON101 + */ + cli_error_print ( _("Buggy libcanon.so?")); + } + return (ret); + } + + if (!(p->flags & FLAGS_KEEP)) { + do { + ret = delete_file_action (p, p->folder, fn->name); + } while (ret == GP_ERROR_CAMERA_BUSY); + if (ret != GP_OK) { + cli_error_print ( _("Could not delete image.")); + /* dont continue in event loop */ + } + } + if ((wp.type == WAIT_STRING) && strstr("FILEADDED",wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + break; + case GP_EVENT_FOLDER_ADDED: + fn = (CameraFilePath*)data; + printf("FOLDERADDED %s %s\n",fn->name, fn->folder); + if ((wp.type == WAIT_STRING) && strstr("FOLDERADDED",wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + break; + case GP_EVENT_FILE_CHANGED: + fn = (CameraFilePath*)data; + printf("FILECHANGED %s %s\n",fn->name, fn->folder); + if ((wp.type == WAIT_STRING) && strstr("FILECHANGED",wp.u.str)) { + printf(_("event found, stopping wait!\n")); + return GP_OK; + } + break; + } + free (data); + } + return GP_OK; +} + +int +print_storage_info (GPParams *p) +{ + int ret, i, nrofsinfos; + CameraStorageInformation *sinfos; + + ret = gp_camera_get_storageinfo (p->camera, &sinfos, &nrofsinfos, p->context); + if (ret != GP_OK) { + if (ret == GP_ERROR_NOT_SUPPORTED) + printf (_("Getting storage information not supported for this camera.\n")); + return ret; + } + for (i=0;i_abilities_list directly, because it has to and does so + * in a safe way. */ + n = gp_abilities_list_count (gp_params_abilities_list(p)); + for (i = 0; i < n; i++) { + r = gp_abilities_list_get_abilities (gp_params_abilities_list(p), i, + &a); + if (r < 0) + continue; + if ((a.usb_vendor == usb_vendor) && + (a.usb_product == usb_product)) { + gp_log (GP_LOG_DEBUG, "main", + _("Overriding USB vendor/product id " + "0x%x/0x%x with 0x%x/0x%x"), + a.usb_vendor, a.usb_product, + usb_vendor_modified, usb_product_modified); + a.usb_vendor = usb_vendor_modified; + a.usb_product = usb_product_modified; + } + gp_abilities_list_append (al, a); + } + + gp_abilities_list_free (p->_abilities_list); + p->_abilities_list = al; + + return (GP_OK); +} + +/* time zero for debug log time stamps */ +static struct timeval glob_tv_zero = { 0, 0 }; + +static void +debug_func (GPLogLevel level, const char *domain, const char *str, void *data) +{ + struct timeval tv; + long sec, usec; + FILE *logfile = (data != NULL)?(FILE *)data:stderr; + + gettimeofday (&tv,NULL); + sec = tv.tv_sec - glob_tv_zero.tv_sec; + usec = tv.tv_usec - glob_tv_zero.tv_usec; + if (usec < 0) {sec--; usec += 1000000L;} + fprintf (logfile, "%li.%06li %-28s(%i): %s\n", sec, usec, domain, level, str); +} + +int +debug_action (GPParams *p, const char *debug_loglevel, const char *debug_logfile_name) +{ + int n; + FILE *logfile = NULL; + GPLogLevel loglevel = GP_LOG_ALL; + + /* make sure we're only executed once */ + static int debug_flag = 0; + if (debug_flag != 0) + return(GP_OK); + debug_flag = 1; + + if (debug_loglevel && !strcmp(debug_loglevel, "error")) + loglevel = GP_LOG_ERROR; + else if (debug_loglevel && !strcmp(debug_loglevel, "debug")) + loglevel = GP_LOG_DEBUG; + else if (debug_loglevel && !strcmp(debug_loglevel, "data")) + loglevel = GP_LOG_DATA; + else if (debug_loglevel && !strcmp(debug_loglevel, "all")) + loglevel = GP_LOG_ALL; + + if (debug_logfile_name != NULL) { + /* FIXME: Handle fopen() error besides using stderr? */ + logfile = fopen(debug_logfile_name, "a"); + } + if (logfile == NULL) { + logfile = stderr; + } + setbuf(logfile, NULL); + setbuf(stdout, NULL); + + gettimeofday (&glob_tv_zero, NULL); + + CR (p->debug_func_id = gp_log_add_func (loglevel, debug_func, (void *) logfile)); + gp_log (GP_LOG_DEBUG, "main", _("ALWAYS INCLUDE THE FOLLOWING LINES " + "WHEN SENDING DEBUG MESSAGES TO THE " + "MAILING LIST:")); + + for (n = 0; module_versions[n].name != NULL; n++) { + int i; + const char **v = NULL; + char *name = module_versions[n].name; + GPVersionFunc func = module_versions[n].version_func; + CHECK_NULL (name); + CHECK_NULL (func); + v = func(GP_VERSION_VERBOSE); + CHECK_NULL (v); + CHECK_NULL (v[0]); + gp_log (GP_LOG_DEBUG, "main", "%s %s", name, v[0]); + gp_log (GP_LOG_DEBUG, "main", _("%s has been compiled with the following options:"), name); + for (i = 1; v[i] != NULL; i++) { + gp_log (GP_LOG_DEBUG, "main", " + %s", v[i]); + } + } + + if (1) { + /* This is internal debug stuff for developers - no + * need for translation IMHO */ + const char *iolibs = getenv("IOLIBS"); + const char *camlibs = getenv("CAMLIBS"); + if (camlibs) { + gp_log (GP_LOG_DEBUG, "main", "CAMLIBS = '%s'", camlibs); + } else { + gp_log (GP_LOG_DEBUG, "main", + "CAMLIBS env var not set, using compile-time default instead"); + } + if (iolibs) { + gp_log (GP_LOG_DEBUG, "main", "IOLIBS = '%s'", iolibs); + } else { + gp_log (GP_LOG_DEBUG, "main", + "IOLIBS env var not set, using compile-time default instead"); + } + } + + return (GP_OK); +} + +static void +display_widgets (GPParams *p, CameraWidget *widget, char *prefix, int dumpval) { + int ret, n, i; + char *newprefix; + const char *label, *name, *uselabel; + CameraWidgetType type; + + gp_widget_get_label (widget, &label); + /* fprintf(stderr,"label is %s\n", label); */ + ret = gp_widget_get_name (widget, &name); + /* fprintf(stderr,"name is %s\n", name); */ + gp_widget_get_type (widget, &type); + + if (strlen(name)) + uselabel = name; + else + uselabel = label; + + n = gp_widget_count_children (widget); + + newprefix = malloc(strlen(prefix)+1+strlen(uselabel)+1); + if (!newprefix) + abort(); + sprintf(newprefix,"%s/%s",prefix,uselabel); + + if ((type != GP_WIDGET_WINDOW) && (type != GP_WIDGET_SECTION)) { + printf("%s\n",newprefix); + if (dumpval) print_widget (p, newprefix, widget); + } + for (i=0; icamera, &rootconfig, p->context); + if (ret != GP_OK) return ret; + display_widgets (p, rootconfig, "", 1); + gp_widget_free (rootconfig); + return (GP_OK); +} +int +list_config_action (GPParams *p) { + CameraWidget *rootconfig; + int ret; + + ret = gp_camera_get_config (p->camera, &rootconfig, p->context); + if (ret != GP_OK) return ret; + display_widgets (p, rootconfig, "", 0); + gp_widget_free (rootconfig); + return (GP_OK); +} + +static int +_find_widget_by_name (GPParams *p, const char *name, CameraWidget **child, CameraWidget **rootconfig) { + int ret; + + *rootconfig = NULL; + ret = gp_camera_get_single_config (p->camera, name, child, p->context); + if (ret == GP_OK) { + *rootconfig = *child; + return GP_OK; + } + + ret = gp_camera_get_config (p->camera, rootconfig, p->context); + if (ret != GP_OK) return ret; + ret = gp_widget_get_child_by_name (*rootconfig, name, child); + if (ret != GP_OK) + ret = gp_widget_get_child_by_label (*rootconfig, name, child); + if (ret != GP_OK) { + char *part, *s, *newname; + + newname = strdup (name); + if (!newname) + return GP_ERROR_NO_MEMORY; + + *child = *rootconfig; + part = newname; + while (part[0] == '/') + part++; + while (1) { + CameraWidget *tmp; + + s = strchr (part,'/'); + if (s) + *s='\0'; + ret = gp_widget_get_child_by_name (*child, part, &tmp); + if (ret != GP_OK) + ret = gp_widget_get_child_by_label (*child, part, &tmp); + if (ret != GP_OK) + break; + *child = tmp; + if (!s) { + /* end of path */ + free (newname); + return GP_OK; + } + part = s+1; + while (part[0] == '/') + part++; + } + gp_context_error (p->context, _("%s not found in configuration tree."), newname); + free (newname); + gp_widget_free (*rootconfig); + return GP_ERROR; + } + return GP_OK; +} + +/* From the strftime(3) man page: + * BUGS + * Some buggy versions of gcc complain about the use of %c: warning: + * %c yields only last 2 digits of year in some locales. + * Of course programmers are encouraged to use %c, it gives the + * preferred date and time representation. One meets all kinds of + * strange obfuscations to circumvent this gcc problem. A relatively + * clean one is to add an intermediate function + */ + +static size_t +my_strftime(char *s, size_t max, const char *fmt, const struct tm *tm) +{ + return strftime(s, max, fmt, tm); +} + +static int +print_widget (GPParams *p, const char *name, CameraWidget *widget) { + const char *label; + CameraWidgetType type; + int ret, readonly; + + ret = gp_widget_get_type (widget, &type); + if (ret != GP_OK) + return ret; + ret = gp_widget_get_label (widget, &label); + if (ret != GP_OK) + return ret; + + ret = gp_widget_get_readonly (widget, &readonly); + if (ret != GP_OK) + return ret; + + printf ("Label: %s\n", label); /* "Label:" is not i18ned, the "label" variable is */ + printf ("Readonly: %d\n", readonly); + switch (type) { + case GP_WIDGET_TEXT: { /* char * */ + char *txt; + + ret = gp_widget_get_value (widget, &txt); + if (ret == GP_OK) { + printf ("Type: TEXT\n"); /* parsed by scripts, no i18n */ + printf ("Current: %s\n",txt); + } else { + gp_context_error (p->context, _("Failed to retrieve value of text widget %s."), name); + } + break; + } + case GP_WIDGET_RANGE: { /* float */ + float f, t,b,s; + + ret = gp_widget_get_range (widget, &b, &t, &s); + if (ret == GP_OK) + ret = gp_widget_get_value (widget, &f); + if (ret == GP_OK) { + printf ("Type: RANGE\n"); /* parsed by scripts, no i18n */ + printf ("Current: %g\n", f); /* parsed by scripts, no i18n */ + printf ("Bottom: %g\n", b); /* parsed by scripts, no i18n */ + printf ("Top: %g\n", t); /* parsed by scripts, no i18n */ + printf ("Step: %g\n", s); /* parsed by scripts, no i18n */ + } else { + gp_context_error (p->context, _("Failed to retrieve values of range widget %s."), name); + } + break; + } + case GP_WIDGET_TOGGLE: { /* int */ + int t; + + ret = gp_widget_get_value (widget, &t); + if (ret == GP_OK) { + printf ("Type: TOGGLE\n"); + printf ("Current: %d\n",t); + } else { + gp_context_error (p->context, _("Failed to retrieve values of toggle widget %s."), name); + } + break; + } + case GP_WIDGET_DATE: { /* int */ + int t; + time_t xtime; + struct tm *xtm; + char timebuf[200]; + + ret = gp_widget_get_value (widget, &t); + if (ret != GP_OK) { + gp_context_error (p->context, _("Failed to retrieve values of date/time widget %s."), name); + break; + } + xtime = t; + xtm = localtime (&xtime); + ret = my_strftime (timebuf, sizeof(timebuf), "%c", xtm); + printf ("Type: DATE\n"); + printf ("Current: %d\n", t); + printf ("Printable: %s\n", timebuf); + printf ("Help: %s\n", _("Use 'now' as the current time when setting.\n")); + break; + } + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + char *current; + + ret = gp_widget_get_value (widget, ¤t); + if (ret == GP_OK) { + cnt = gp_widget_count_choices (widget); + if (type == GP_WIDGET_MENU) + printf ("Type: MENU\n"); + else + printf ("Type: RADIO\n"); + printf ("Current: %s\n",current); + for ( i=0; icontext, _("Failed to retrieve values of radio widget %s."), name); + } + break; + } + + /* ignore: */ + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + case GP_WIDGET_BUTTON: + break; + } + + printf ("END\n"); + return GP_OK; +} + + +int +get_config_action (GPParams *p, const char *name) { + CameraWidget *rootconfig,*child; + int ret; + + ret = _find_widget_by_name (p, name, &child, &rootconfig); + if (ret != GP_OK) + return ret; + ret = print_widget (p, name, child); + gp_widget_free (rootconfig); + return ret; +} + +int +set_config_action (GPParams *p, const char *name, const char *value) { + CameraWidget *rootconfig,*child; + int ret, ro; + CameraWidgetType type; + + ret = _find_widget_by_name (p, name, &child, &rootconfig); + if (ret != GP_OK) + return ret; + + ret = gp_widget_get_readonly (child, &ro); + if (ret != GP_OK) { + gp_widget_free (rootconfig); + return ret; + } + if (ro == 1) { + gp_context_error (p->context, _("Property %s is read only."), name); + gp_widget_free (rootconfig); + return GP_ERROR; + } + ret = gp_widget_get_type (child, &type); + if (ret != GP_OK) { + gp_widget_free (rootconfig); + return ret; + } + + switch (type) { + case GP_WIDGET_TEXT: { /* char * */ + ret = gp_widget_set_value (child, value); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set the value of text widget %s to %s."), name, value); + break; + } + case GP_WIDGET_RANGE: { /* float */ + float f,t,b,s; + + ret = gp_widget_get_range (child, &b, &t, &s); + if (ret != GP_OK) + break; + if (!sscanf (value, "%f", &f)) { + gp_context_error (p->context, _("The passed value %s is not a floating point value."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if ((f < b) || (f > t)) { + gp_context_error (p->context, _("The passed value %f is not within the expected range %f - %f."), f, b, t); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + ret = gp_widget_set_value (child, &f); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set the value of range widget %s to %f."), name, f); + break; + } + case GP_WIDGET_TOGGLE: { /* int */ + int t; + + t = 2; + if ( !strcasecmp (value, "off") || !strcasecmp (value, "no") || + !strcasecmp (value, "false") || !strcmp (value, "0") || + !strcasecmp (value, _("off")) || !strcasecmp (value, _("no")) || + !strcasecmp (value, _("false")) + ) + t = 0; + if ( !strcasecmp (value, "on") || !strcasecmp (value, "yes") || + !strcasecmp (value, "true") || !strcmp (value, "1") || + !strcasecmp (value, _("on")) || !strcasecmp (value, _("yes")) || + !strcasecmp (value, _("true")) + ) + t = 1; + /*fprintf (stderr," value %s, t %d\n", value, t);*/ + if (t == 2) { + gp_context_error (p->context, _("The passed value %s is not a valid toggle value."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + ret = gp_widget_set_value (child, &t); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set values %s of toggle widget %s."), value, name); + break; + } + case GP_WIDGET_DATE: { /* int */ + time_t t = -1; + struct tm xtm; + + memset(&xtm,0,sizeof(xtm)); + + /* We need to set UNIX time in seconds since Epoch */ + /* We get ... local time */ + + if (!strcasecmp (value, "now") || !strcasecmp (value, _("now"))) + t = time(NULL); +#ifdef HAVE_STRPTIME + else if (strptime (value, "%c", &xtm) || strptime (value, "%Ec", &xtm)) { + xtm.tm_isdst = -1; + t = mktime (&xtm); + } +#endif + if (t == -1) { + unsigned long lt; + + if (!sscanf (value, "%ld", <)) { + gp_context_error (p->context, _("The passed value %s is neither a valid time nor an integer."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + t = lt; + } + ret = gp_widget_set_value (child, &t); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new time of date/time widget %s to %s."), name, value); + break; + } + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + char *endptr; + + cnt = gp_widget_count_choices (child); + if (cnt < GP_OK) { + ret = cnt; + break; + } + ret = GP_ERROR_BAD_PARAMETERS; + for ( i=0; i= 0) && (i < cnt)) { + const char *choice; + + ret = gp_widget_get_choice (child, i, &choice); + if (ret == GP_OK) + ret = gp_widget_set_value (child, choice); + break; + } + } + /* Lets just try setting the value directly, in case we have flexible setters, + * like PTP shutterspeed. */ + ret = gp_widget_set_value (child, value); + if (ret == GP_OK) + break; + gp_context_error (p->context, _("Choice %s not found within list of choices."), value); + break; + } + + /* ignore: */ + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + case GP_WIDGET_BUTTON: + gp_context_error (p->context, _("The %s widget is not configurable."), name); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if (ret == GP_OK) { + if (child == rootconfig) + ret = gp_camera_set_single_config (p->camera, name, child, p->context); + else + ret = gp_camera_set_config (p->camera, rootconfig, p->context); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new configuration value %s for configuration entry %s."), value, name); + } + gp_widget_free (rootconfig); + return (ret); +} + +int +set_config_index_action (GPParams *p, const char *name, const char *value) { + CameraWidget *rootconfig,*child; + int ret; + const char *label; + CameraWidgetType type; + + ret = _find_widget_by_name (p, name, &child, &rootconfig); + if (ret != GP_OK) + return ret; + + ret = gp_widget_get_type (child, &type); + if (ret != GP_OK) { + gp_widget_free (rootconfig); + return ret; + } + ret = gp_widget_get_label (child, &label); + if (ret != GP_OK) { + gp_widget_free (rootconfig); + return ret; + } + + switch (type) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + + cnt = gp_widget_count_choices (child); + if (cnt < GP_OK) { + ret = cnt; + break; + } + ret = GP_ERROR_BAD_PARAMETERS; + if (sscanf (value, "%d", &i)) { + if ((i>= 0) && (i < cnt)) { + const char *choice; + + ret = gp_widget_get_choice (child, i, &choice); + if (ret == GP_OK) + ret = gp_widget_set_value (child, choice); + break; + } + } + gp_context_error (p->context, _("Choice %s not found within list of choices."), value); + break; + } + + /* ignore: */ + case GP_WIDGET_TOGGLE: + case GP_WIDGET_TEXT: + case GP_WIDGET_RANGE: + case GP_WIDGET_DATE: + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + case GP_WIDGET_BUTTON: + gp_context_error (p->context, _("The %s widget has no indexed list of choices. Use --set-config-value instead."), name); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if (ret == GP_OK) { + if (child == rootconfig) + ret = gp_camera_set_single_config (p->camera, name, child, p->context); + else + ret = gp_camera_set_config (p->camera, rootconfig, p->context); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new configuration value %s for configuration entry %s."), value, name); + } + gp_widget_free (rootconfig); + return (ret); +} + + +int +set_config_value_action (GPParams *p, const char *name, const char *value) { + CameraWidget *rootconfig,*child; + int ret; + CameraWidgetType type; + + ret = _find_widget_by_name (p, name, &child, &rootconfig); + if (ret != GP_OK) + return ret; + + ret = gp_widget_get_type (child, &type); + if (ret != GP_OK) { + gp_widget_free (rootconfig); + return ret; + } + + switch (type) { + case GP_WIDGET_TEXT: { /* char * */ + ret = gp_widget_set_value (child, value); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set the value of text widget %s to %s."), name, value); + break; + } + case GP_WIDGET_RANGE: { /* float */ + float f,t,b,s; + + ret = gp_widget_get_range (child, &b, &t, &s); + if (ret != GP_OK) + break; + if (!sscanf (value, "%f", &f)) { + gp_context_error (p->context, _("The passed value %s is not a floating point value."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if ((f < b) || (f > t)) { + gp_context_error (p->context, _("The passed value %f is not within the expected range %f - %f."), f, b, t); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + ret = gp_widget_set_value (child, &f); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set the value of range widget %s to %f."), name, f); + break; + } + case GP_WIDGET_TOGGLE: { /* int */ + int t; + + t = 2; + if ( !strcasecmp (value, "off") || !strcasecmp (value, "no") || + !strcasecmp (value, "false") || !strcmp (value, "0") || + !strcasecmp (value, _("off")) || !strcasecmp (value, _("no")) || + !strcasecmp (value, _("false")) + ) + t = 0; + if ( !strcasecmp (value, "on") || !strcasecmp (value, "yes") || + !strcasecmp (value, "true") || !strcmp (value, "1") || + !strcasecmp (value, _("on")) || !strcasecmp (value, _("yes")) || + !strcasecmp (value, _("true")) + ) + t = 1; + /*fprintf (stderr," value %s, t %d\n", value, t);*/ + if (t == 2) { + gp_context_error (p->context, _("The passed value %s is not a valid toggle value."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + ret = gp_widget_set_value (child, &t); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set values %s of toggle widget %s."), value, name); + break; + } + case GP_WIDGET_DATE: { /* int */ + int t = -1; + struct tm xtm; + + if (!strcasecmp (value, "now") || !strcasecmp (value, _("now"))) + t = time(NULL); +#ifdef HAVE_STRPTIME + else if (strptime (value, "%c", &xtm) || strptime (value, "%Ec", &xtm)) + t = mktime (&xtm); +#endif + if (t == -1) { + if (!sscanf (value, "%d", &t)) { + gp_context_error (p->context, _("The passed value %s is neither a valid time nor an integer."), value); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + } + ret = gp_widget_set_value (child, &t); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new time of date/time widget %s to %s."), name, value); + break; + } + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { /* char * */ + int cnt, i; + + cnt = gp_widget_count_choices (child); + if (cnt < GP_OK) { + ret = cnt; + break; + } + ret = GP_ERROR_BAD_PARAMETERS; + for ( i=0; icontext, _("Choice %s not found within list of choices."), value); + break; + } + + /* ignore: */ + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + case GP_WIDGET_BUTTON: + gp_context_error (p->context, _("The %s widget is not configurable."), name); + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + if (ret == GP_OK) { + if (child == rootconfig) + ret = gp_camera_set_single_config (p->camera, name, child, p->context); + else + ret = gp_camera_set_config (p->camera, rootconfig, p->context); + if (ret != GP_OK) + gp_context_error (p->context, _("Failed to set new configuration value %s for configuration entry %s."), value, name); + } + gp_widget_free (rootconfig); + return (ret); +} + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/actions.h b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/actions.h new file mode 100644 index 00000000..5f4c8dd1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/actions.h @@ -0,0 +1,112 @@ +/* actions.h + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __ACTIONS_H__ +#define __ACTIONS_H__ + +#include +#include + +#include + +enum wait_type { + WAIT_TIME, + WAIT_EVENTS, + WAIT_FRAMES, + WAIT_STRING, +}; +enum download_type { DT_NO_DOWNLOAD, DT_DOWNLOAD }; +struct waitparams { + union { + int milliseconds; + int events; + int frames; + char *str; + } u; + enum wait_type type; + enum download_type downloadtype; +}; + +/* Image actions */ +typedef int FileAction (GPParams *, const char *folder, const char *filename); +int print_file_action (GPParams *, const char *folder, const char *filename); +int print_exif_action (GPParams *, const char *folder, const char *filename); +int print_info_action (GPParams *, const char *folder, const char *filename); +int save_file_action (GPParams *, const char *folder, const char *filename); +int save_thumbnail_action (GPParams *, const char *folder, const char *filename); +int save_raw_action (GPParams *, const char *folder, const char *filename); +int save_audio_action (GPParams *, const char *folder, const char *filename); +int save_all_audio_action (GPParams *, const char *folder, const char *filename); +int save_exif_action (GPParams *, const char *folder, const char *filename); +int save_meta_action (GPParams *, const char *folder, const char *filename); +int delete_file_action (GPParams *, const char *folder, const char *filename); + +/* Folder actions */ +typedef int FolderAction (GPParams *); +int delete_all_action (GPParams *); +int list_files_action (GPParams *); +int list_folders_action (GPParams *); +int num_files_action (GPParams *); + +/* Camera actions */ +int action_camera_about (GPParams *); +int action_camera_summary (GPParams *); +int action_camera_manual (GPParams *); +int action_camera_set_port (GPParams *, const char *port); +int action_camera_set_speed (GPParams *, unsigned int speed); +int action_camera_set_model (GPParams *, const char *model); +int action_camera_show_abilities (GPParams *); +int action_camera_upload_file (GPParams *, const char *folder, + const char *path); +int action_camera_upload_metadata (GPParams *, const char *folder, + const char *path); +int action_camera_capture_preview (GPParams *); +int action_camera_show_preview (GPParams *); +int action_camera_capture_movie (GPParams *, const char *arg); +int action_camera_wait_event (GPParams *, enum download_type dt, const char*args); + +/* Other actions */ +int list_cameras_action (GPParams *); +int list_ports_action (GPParams *); +int auto_detect_action (GPParams *); +int set_folder_action (GPParams *, const char *folder); +int set_filename_action (GPParams *, const char *filename); +int print_version_action (GPParams *); +int override_usbids_action (GPParams *, int usb_vendor, int usb_product, + int usb_vendor_modified, int usb_product_modified); +int debug_action (GPParams *, const char *debug_loglevel, const char *debug_logfile_name); +int list_config_action (GPParams *); +int list_all_config_action (GPParams *); +int get_config_action (GPParams *, const char *name); +int set_config_action (GPParams *, const char *name, const char *value); +int set_config_index_action (GPParams *, const char *name, const char *value); +int set_config_value_action (GPParams *, const char *name, const char *value); +int print_storage_info (GPParams *); + +void _get_portinfo_list (GPParams *p); +#endif /* __ACTIONS_H__ */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/foreach.c b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/foreach.c new file mode 100644 index 00000000..6f70338a --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/foreach.c @@ -0,0 +1,375 @@ +/* frontend.c + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "actions.h" +#include "foreach.h" +#include "i18n.h" +#include "main.h" +#include "range.h" + +#include +#include +#include + +#include + +#define GP_ERROR_FRONTEND_BAD_ID -10000 +#define CR(result) {int __r=(result); if(__r<0) return(__r);} +#define CL(result,list) {int __r=(result); if(__r<0) {gp_list_free(list);return(__r);}} + +#define GP_MODULE "frontend" + +static struct { + FolderAction *action; + const char *name; +} FolderActions[] = { + {delete_all_action, "Delete all Files"}, + {list_files_action, "List Files"}, + {list_folders_action, "List Folders"}, + {num_files_action, "Number of Files"}, + {NULL, NULL} +}; + +int +for_each_folder (GPParams *p, FolderAction action) +{ + CameraList *list; + int r, i, count; + const char *name = NULL; + char *f = NULL; + + if (!p) + return (GP_ERROR_BAD_PARAMETERS); + + /* Execute the action for this folder. */ + for (i = 0; FolderActions[i].name; i++) + if (FolderActions[i].action == action) + break; + gp_log (GP_LOG_DEBUG, "foreach", + "Executing action '%s' for folder '%s'.", + FolderActions[i].name, p->folder); + CR (action (p)); + + /* If no recursion is requested, we are done. */ + if (!(p->flags & FLAGS_RECURSE)) + return GP_OK; + + CR (gp_list_new (&list)); + /* Recursion requested. Descend into subfolders. */ + CL (gp_camera_folder_list_folders (p->camera, p->folder, list, + p->context), list); + CL (count = gp_list_count (list), list); + if (p->flags & FLAGS_REVERSE) { + for (i = count - 1; i >= 0; i--) { + CL (gp_list_get_name (list, i, &name), list); + f = p->folder; + p->folder = malloc (sizeof (char) * + (strlen (f) + 1 + strlen (name) + 1)); + if (!p->folder) { + p->folder = f; + gp_list_free (list); + return (GP_ERROR_NO_MEMORY); + } + strcpy (p->folder, f); + if (p->folder[strlen (p->folder) - 1] != '/') + strcat (p->folder, "/"); + strcat (p->folder, name); + r = for_each_folder (p, action); + free (p->folder); + p->folder = f; + CL (r, list); + } + } else { + for (i = 0; i < count; i++) { + CL (gp_list_get_name (list, i, &name), list); + f = p->folder; + p->folder = malloc (sizeof (char) * + (strlen (f) + 1 + strlen (name) + 1)); + if (!p->folder) { + p->folder = f; + gp_list_free (list); + return (GP_ERROR_NO_MEMORY); + } + strcpy (p->folder, f); + if (p->folder[strlen (p->folder) - 1] != '/') + strcat (p->folder, "/"); + strcat (p->folder, name); + r = for_each_folder (p, action); + free (p->folder); + p->folder = f; + CL (r, list); + } + } + gp_list_free (list); + return (GP_OK); +} + +int +for_each_file (GPParams *p, FileAction action) +{ + CameraList *list; + int i, count, r; + const char *name = NULL; + char *f = NULL; + + CR (gp_list_new (&list)); + /* Iterate on all files */ + CR (gp_camera_folder_list_files (p->camera, p->folder, list, + p->context)); + CR (count = gp_list_count (list)); + if (p->flags & FLAGS_REVERSE) { + for (i = count ; i--; ) { + CL (gp_list_get_name (list, i, &name), list); + r = action (p, p->folder, name); + if (r == GP_ERROR_NOT_SUPPORTED) /* can go on */ + r = GP_OK; + CL (r, list); + } + } else { + for (i = 0; i < count; i++) { + CL (gp_list_get_name (list, i, &name), list); + r = action (p, p->folder, name); + if (r == GP_ERROR_NOT_SUPPORTED) /* can go on */ + r = GP_OK; + CL (r, list); + } + } + + /* If no recursion is requested, we are done. */ + if (!(p->flags & FLAGS_RECURSE)) { + gp_list_free (list); + return (GP_OK); + } + + /* Recursion requested. Descend into subfolders. */ + CL (gp_camera_folder_list_folders (p->camera, p->folder, + list, p->context), list); + CL (count = gp_list_count (list), list); + for (i = 0; i < count; i++) { + CL (gp_list_get_name (list, i, &name), list); + f = p->folder; + p->folder = malloc (sizeof (char) * + (strlen (f) + 1 + strlen (name) + 1)); + if (!p->folder) { + p->folder = f; + gp_list_free (list); + return (GP_ERROR_NO_MEMORY); + } + strcpy (p->folder, f); + if (p->folder[strlen (p->folder) - 1] != '/') + strcat (p->folder, "/"); + strcat (p->folder, name); + r = for_each_file (p, action); + free (p->folder); + p->folder = f; + CL (r, list); + } + gp_list_free (list); + return (GP_OK); +} + +#define MAX_FOLDER_LEN 1024 +#define MAX_FILE_LEN 1024 + +static int +get_path_for_id_rec (GPParams *p, + const char *base_folder, unsigned int id, + unsigned int *base_id, char *folder, + char *filename) +{ + char subfolder[1024]; + int n_folders, n_files, r; + unsigned int i; + const char *name; + CameraList *list; + + strncpy (folder, base_folder, MAX_FOLDER_LEN); + CR (gp_list_new(&list)); + CL (gp_camera_folder_list_files (p->camera, base_folder, list, + p->context), list); + CL (n_files = gp_list_count (list), list); + if (id - *base_id < (unsigned int) n_files) { + + /* ID is in this folder */ + GP_DEBUG ("ID %i is in folder '%s'.", id, base_folder); + CL (gp_list_get_name (list, id - *base_id, &name), list); + strncpy (filename, name, MAX_FILE_LEN); + gp_list_free (list); + return (GP_OK); + } else { + /* Look for IDs in subfolders */ + GP_DEBUG ("ID %i is not in folder '%s'.", id, base_folder); + *base_id += n_files; + CL (gp_camera_folder_list_folders (p->camera, base_folder, + list, p->context), list); + CL (n_folders = gp_list_count (list), list); + for (i = 0; i < (unsigned int)n_folders; i++) { + CL (gp_list_get_name (list, i, &name), list); + strncpy (subfolder, base_folder, sizeof (subfolder)); + if (strlen (base_folder) > 1) + strncat (subfolder, "/", sizeof (subfolder) - strlen(subfolder) - 1); + strncat (subfolder, name, sizeof (subfolder) - strlen(subfolder) - 1); + r = get_path_for_id_rec (p, subfolder, id, base_id, + folder, filename); + switch (r) { + case GP_ERROR_FRONTEND_BAD_ID: + break; + default: + gp_list_free (list); + return (r); + } + } + gp_list_free (list); + return (GP_ERROR_FRONTEND_BAD_ID); + } +} + +static int +get_path_for_id (GPParams *p, const char *base_folder, + unsigned int id, char *folder, char *filename) +{ + int r; + unsigned int base_id; + const char *name; + + strncpy (folder, base_folder, MAX_FOLDER_LEN); + if (p->flags & FLAGS_RECURSE) { + base_id = 0; + r = get_path_for_id_rec (p, base_folder, id, &base_id, folder, + filename); + switch (r) { + case GP_ERROR_FRONTEND_BAD_ID: + gp_context_error (p->context, _("Bad file number. " + "You specified %i, but there are only %i " + "files available in '%s' or its subfolders. " + "Please obtain a valid file number from " + "a file listing first."), id + 1, base_id, + base_folder); + return (GP_ERROR_BAD_PARAMETERS); + default: + return (r); + } + } else { + CameraList *list; + int list_count; + + /* If we have no recursion, things are easy. */ + GP_DEBUG ("No recursion. Taking file %i from folder '%s'.", + id, base_folder); + CR (gp_list_new (&list)); + CL (gp_camera_folder_list_files (p->camera, base_folder, + list, p->context), list); + CL ((list_count = gp_list_count (list)), list); + if (id >= (unsigned int) list_count) { + switch (list_count) { + case 0: + gp_context_error (p->context, + _("There are no files in " + "folder '%s'."), base_folder); + gp_list_free (list); + return (GP_ERROR_BAD_PARAMETERS); + case 1: + gp_context_error (p->context, + _("Bad file number. " + "You specified %i, but there is only " + "1 file available in '%s'."), id + 1, + base_folder); + gp_list_free (list); + return (GP_ERROR_BAD_PARAMETERS); + default: + gp_context_error (p->context, + _("Bad file number. " + "You specified %i, but there are only " + "%i files available in '%s'. " + "Please obtain a valid file number " + "from a file listing first."), id + 1, + gp_list_count (list), base_folder); + gp_list_free (list); + return (GP_ERROR_BAD_PARAMETERS); + } + } + CL (gp_list_get_name (list, id, &name), list); + strncpy (filename, name, MAX_FILE_LEN); + gp_list_free (list); + return (GP_OK); + } +} + +int +for_each_file_in_range (GPParams *p, FileAction action, + const char *range) +{ + char *index; + int i, max = 0, r; + char ffolder[MAX_FOLDER_LEN], ffile[MAX_FILE_LEN]; + + index = calloc(MAX_IMAGE_NUMBER,1); + if (!index) return GP_ERROR_NO_MEMORY; + + CR (parse_range (range, index, p->context)); + + for (max = MAX_IMAGE_NUMBER - 1; !index[max]; max--); + + if (p->flags & FLAGS_REVERSE) { + for (i = max; 0 <= i; i--) + if (index[i]) { + CR (get_path_for_id (p, p->folder, + (unsigned int) i, ffolder, ffile)); + r = action (p, ffolder, ffile); + if (r == GP_OK) continue; + /* some cameras do not support downloads of some files */ + if (r == GP_ERROR_NOT_SUPPORTED) continue; + return r; + } + } else { + unsigned int count; + + /* + * File deletion modifies the CameraFilesystem. Therefore + * the IDs of subsequent images change. This only affects us + * if not deleting reversely. This is the case here and we need + * to adjust the image IDs after a successful deletion. + */ + for (count = i = 0; i <= max; i++) + if (index[i]) { + GP_DEBUG ("Now processing ID %i " + "(originally %i)...", i - count, i); + CR (get_path_for_id (p, p->folder, + (unsigned int) i - count, + ffolder, ffile)); + r = action (p, ffolder, ffile); + /* some cameras do not support downloads of some files */ + if ((r != GP_OK) && (r != GP_ERROR_NOT_SUPPORTED)) return r; + if (action == delete_file_action) + count++; + } + } + + return (GP_OK); +} + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/foreach.h b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/foreach.h new file mode 100644 index 00000000..a7102bc8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/foreach.h @@ -0,0 +1,43 @@ +/* foreach.h + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __FOREACH_H__ +#define __FOREACH_H__ + +#include +#include + +#include +#include + +int for_each_folder (GPParams *, FolderAction action); +int for_each_file (GPParams *, FileAction action); +int for_each_file_in_range (GPParams *, FileAction action, + const char *range); + +#endif /* __FOREACH_H__ */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/globals.h b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/globals.h new file mode 100644 index 00000000..6cace168 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/globals.h @@ -0,0 +1,19 @@ +#ifndef __GLOBALS_H__ +#define __GLOBALS_H__ + +extern char glob_cancel; + +extern char *glob_folder; + +extern char glob_cwd[]; +extern int glob_option_count; + +#endif + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/gp-params.c b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/gp-params.c new file mode 100644 index 00000000..36cf68f9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/gp-params.c @@ -0,0 +1,545 @@ +/* gp-params.c + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "gp-params.h" +#include "i18n.h" + +/* This needs to disappear. */ +#include "globals.h" + +#include +#include +#include +#include + +#ifndef HAVE_SPAWNVE +#include "spawnve.h" +#endif + +#ifndef MAX +#define MAX(x, y) (((x)>(y))?(x):(y)) +#endif +#ifndef MIN +#define MIN(x, y) (((x)<(y))?(x):(y)) +#endif + + +#ifdef __GNUC__ +#define __unused__ __attribute__((unused)) +#else +#define __unused__ +#endif + + +static void +ctx_status_func (GPContext __unused__ *context, const char *str, + void *data) +{ + GPParams *params = data; + + if (params->flags & FLAGS_QUIET) + return; + fprintf (stderr, "%s\n", str); + fflush (stderr); +} + +static void +ctx_error_func (GPContext __unused__ *context, const char *str, void __unused__ *data) +{ + fprintf (stderr, "\n"); + fprintf (stderr, _("*** Error *** \n")); + fprintf (stderr, "%s\n", str); + fflush (stderr); +} + +#define MAX_PROGRESS_STATES 16 +#define MAX_MSG_LEN 1024 + +static struct { + char message[MAX_MSG_LEN + 1]; + float target; + unsigned long int count; + struct { + float current; + time_t time, left; + } last; +} progress_states[MAX_PROGRESS_STATES]; + +static unsigned int +ctx_progress_start_func (GPContext __unused__ *context, float target, + const char *str, void *data) +{ + GPParams *p = data; + unsigned int id, len; + static unsigned char initialized = 0; + + if (!initialized) { + memset (progress_states, 0, sizeof (progress_states)); + initialized = 1; + } + + if (p->flags & FLAGS_QUIET) + return 0; + + /* + * If the message is too long, we will shorten it. If we have less + * than 4 cols available, we won't display any message. + */ + len = (p->cols * 0.5 < 4) ? 0 : MIN (p->cols * 0.5, MAX_MSG_LEN); + + /* Remember message and target. */ + for (id = 0; id < MAX_PROGRESS_STATES; id++) + if (!progress_states[id].target) + break; + if (id == MAX_PROGRESS_STATES) + id--; + progress_states[id].target = target; + strncpy (progress_states[id].message, str, len + 1); + progress_states[id].count = 0; + progress_states[id].last.time = time (NULL); + progress_states[id].last.current = progress_states[id].last.left = 0.; + + /* If message is too long, shorten it. */ + if (progress_states[id].message[len - 1]) { + progress_states[id].message[len - 1] = '\0'; + progress_states[id].message[len - 2] = '.'; + progress_states[id].message[len - 3] = '.'; + progress_states[id].message[len - 4] = '.'; + } + + return (id); +} + +static void +ctx_progress_update_func (GPContext __unused__ *context, unsigned int id, + float current, void *data) +{ + GPParams *p = data; + static const char spinner[] = "\\|/-"; + unsigned int i, width, pos; + float rate; + char remaining[10], buf[10]; + time_t sec = 0; + + /* Guard against buggy camera drivers */ + if (id >= MAX_PROGRESS_STATES || ((int)id) < 0) + return; + + if (p->flags & FLAGS_QUIET) + return; + + /* How much time until completion? */ + if ((time (NULL) - progress_states[id].last.time > 0) && + (current - progress_states[id].last.current > 0)) { + rate = (time (NULL) - progress_states[id].last.time) / + (current - progress_states[id].last.current); + sec = (MAX (0, progress_states[id].target - current)) * rate; + if (progress_states[id].last.left) { + sec += progress_states[id].last.left; + sec /= 2.; + } + progress_states[id].last.time = time (NULL); + progress_states[id].last.current = current; + progress_states[id].last.left = sec; + } else + sec = progress_states[id].last.left; + memset (remaining, 0, sizeof (remaining)); + if ((int) sec >= 3600) { + snprintf (buf, sizeof (buf), "%2ih", (int) sec / 3600); + sec -= ((int) (sec / 3600) * 3600); + strncat (remaining, buf, sizeof (remaining) - strlen (remaining) - 1); + } + if ((int) sec >= 60) { + snprintf (buf, sizeof (buf), "%2im", (int) sec / 60); + sec -= ((int) (sec / 60) * 60); + strncat (remaining, buf, sizeof (remaining) - strlen (remaining) - 1); + } + if ((int) sec) { + snprintf (buf, sizeof (buf), "%2is", (int) sec); + strncat (remaining, buf, sizeof (remaining) - strlen (remaining) - 1); + } + + /* Determine the width of the progress bar and the current position */ + width = MAX (0, (int) (p->cols - + strlen (progress_states[id].message) - 20)); + pos = MIN (width, (MIN (current / progress_states[id].target, 100.) * width) + 0.5); + + /* Print the progress bar */ + printf ("%s |", progress_states[id].message); + for (i = 0; i < width; i++) + putchar ((i < pos) ? '-' : ' '); + if (pos == width) + putchar ('|'); + else + putchar (spinner[progress_states[id].count & 0x03]); + progress_states[id].count++; + + printf (" %5.1f%% %9.9s\r", + current / progress_states[id].target * 100., remaining); + fflush (stdout); +} + +static void +ctx_progress_stop_func (GPContext __unused__ *context, unsigned int id, + void *data) +{ + GPParams *p = data; + unsigned int i; + + /* Guard against buggy camera drivers */ + if (id >= MAX_PROGRESS_STATES || ((int)id) < 0) + return; + + if (p->flags & FLAGS_QUIET) + return; + + /* Clear the progress bar. */ + for (i = 0; i < p->cols; i++) + putchar (' '); + putchar ('\r'); + fflush (stdout); + + progress_states[id].target = 0.; +} + +static GPContextFeedback +ctx_cancel_func (GPContext __unused__ *context, void __unused__ *data) +{ + if (glob_cancel) { + glob_cancel = 0; + return (GP_CONTEXT_FEEDBACK_CANCEL); + } else + return (GP_CONTEXT_FEEDBACK_OK); +} + +static void +ctx_message_func (GPContext __unused__ *context, const char *str, + void __unused__ *data) +{ + printf ("%s\n", str); + + /* Only ask for confirmation if the user can give it. */ + if (isatty (STDOUT_FILENO) && isatty (STDIN_FILENO)) { + printf (_("Press any key to continue.\n")); + fflush (stdout); + fgetc (stdin); + } else + fflush (stdout); +} + + +/** gp_params_init + * @param envp: The third char ** parameter of the main() function + */ + +void +gp_params_init (GPParams *p, char **envp) +{ + if (!p) + return; + + memset (p, 0, sizeof (GPParams)); + + p->folder = strdup ("/"); + if (!p->folder) { + fprintf (stderr, _("Not enough memory.")); + fputc ('\n', stderr); + exit (1); + } + + gp_camera_new (&p->camera); + + p->cols = 79; + p->flags = FLAGS_RECURSE; + + /* Create a context. Report progress only if users will see it. */ + p->context = gp_context_new (); + gp_context_set_cancel_func (p->context, ctx_cancel_func, p); + gp_context_set_error_func (p->context, ctx_error_func, p); + gp_context_set_status_func (p->context, ctx_status_func, p); + gp_context_set_message_func (p->context, ctx_message_func, p); + if (isatty (STDOUT_FILENO)) + gp_context_set_progress_funcs (p->context, + ctx_progress_start_func, ctx_progress_update_func, + ctx_progress_stop_func, p); + + p->_abilities_list = NULL; + + p->debug_func_id = -1; + + p->envp = envp; +} + + +CameraAbilitiesList * +gp_params_abilities_list (GPParams *p) +{ + /* If p == NULL, the behaviour of this function is as undefined as + * the expression p->abilities_list would have been. */ + if (p->_abilities_list == NULL) { + gp_abilities_list_new (&p->_abilities_list); + gp_abilities_list_load (p->_abilities_list, p->context); + } + return p->_abilities_list; +} + + +void +gp_params_exit (GPParams *p) +{ + if (!p) + return; + + if (p->_abilities_list) + gp_abilities_list_free (p->_abilities_list); + if (p->camera) + gp_camera_unref (p->camera); + if (p->folder) + free (p->folder); + if (p->filename) + free (p->filename); + if (p->context) + gp_context_unref (p->context); + if (p->hook_script) + free (p->hook_script); + if (p->portinfo_list) + gp_port_info_list_free (p->portinfo_list); + memset (p, 0, sizeof (GPParams)); +} + + +/* If CALL_VIA_SYSTEM is defined, use insecure system(3) instead of execve(2) */ +/* #define CALL_VIA_SYSTEM */ + +static int +internal_run_hook(const char *const hook_script, + const char *const action, const char *const argument, + char **envp); + + +int +gp_params_run_hook (GPParams *params, const char *action, const char *argument) +{ + /* printf("gp_params_run_hook(params, \"%s\", \"%s\")\n", + action, argument); + */ + if (params->hook_script == NULL) { + return 0; + } + return internal_run_hook(params->hook_script, + action, argument, + params->envp); +} + + +#ifdef CALL_VIA_SYSTEM +static void +internal_putenv(const char *const varname, const char *const value) +{ + if (NULL != varname) { + if (NULL != value) { + const size_t varname_size = strlen(varname); + const size_t value_size = strlen(value); + /* '=' and '\0' */ + const size_t buffer_size = varname_size + value_size + 2; + char buffer[buffer_size]; + strcpy(buffer, varname); + strcat(buffer, "="); + strcat(buffer, value); + printf("putenv(\"%s\")\n", buffer); + if (0 != putenv(buffer)) { + printf("putenv error\n"); + } + } else { + /* clear variable */ + if (unsetenv(varname)) { + int my_errno = errno; + fprintf(stderr, "unsetenv(\"%s\"): %s", + varname, strerror(my_errno)); + } + } + } + printf("%% %s=%s\n", varname, getenv(varname)); +} +#endif + + +#ifndef CALL_VIA_SYSTEM + +#define ASSERT(cond) \ + do { \ + if (!(cond)) { \ + fprintf(stderr, "%s:%d: Assertion failed: %s\n", \ + __FILE__, __LINE__, #cond); \ + exit(13); \ + } \ + } while(0) + + +static char * +alloc_envar(const char *varname, const char *value) +{ + const size_t varname_size = strlen(varname); + const size_t value_size = strlen(value); + const size_t buf_size = varname_size + 1 + value_size + 1; + char *result_buf = malloc(buf_size); + + if (!result_buf) return NULL; + strcpy(result_buf, varname); + strcat(result_buf, "="); + strcat(result_buf, value); + return result_buf; +} +#endif + + +static int +internal_run_hook(const char *const hook_script, + const char *const action, const char *const argument, + char **envp) +{ +#ifdef CALL_VIA_SYSTEM + int retcode; + + /* run hook using system(3) */ + internal_putenv("ACTION", action); + internal_putenv("ARGUMENT", argument); + + retcode = system(hook_script); + if (retcode != 0) { + fprintf(stderr, "Hook script returned error code %d (0x%x)\n", + retcode, retcode); + return 1; + } + return 0; +#else + /* spawnve() based implementation of internal_run_hook() + * + * Most of the code here creates and destructs the + * char *child_argv[] and char *child_envp[] to be passed to + * spawnve() and thus execve(). + * + * Error handling is simple: + * * If malloc() or calloc() fail, abort the whole program. + */ + + /* A note on program memory layout: + * + * child_argv and child_envp MUST be in writable memory, so we + * malloc() them. + */ + + char *my_hook_script = strdup(hook_script); + unsigned int i; + + /* run hook using execve(2) */ + char **child_argv = calloc(2, sizeof(child_argv[0])); + + /* envars not to copy */ + const char *const varlist[] = { + "ACTION", "ARGUMENT", NULL + }; + + /* environment variables for child process, and index going through them */ + char **child_envp; + unsigned int envi = 0; + + int retcode; + + /* count number of environment variables currently set */ + unsigned int envar_count; + for (envar_count=0; envp[envar_count] != NULL; envar_count++) { + /* printf("%3d: \"%s\"\n", envar_count, envp[envar_count]); */ + } + + ASSERT(my_hook_script != NULL); + child_argv[0] = my_hook_script; + + /* Initialize environment. Start with newly defined vars, then copy + * all the existing ones. calloc() does the initialization with NULL. + * Total amount of char* is + * number of existing envars (envar_count) + * + max number of new envars (2) + * + NULL list terminator (1) + */ + child_envp = calloc(envar_count+((sizeof(varlist)/sizeof(varlist[0]))-1)+1, + sizeof(child_envp[0])); + ASSERT(child_envp != NULL); + + /* own envars */ + if (NULL != action) { + char *envar = alloc_envar("ACTION", action); + ASSERT(envar != NULL); + child_envp[envi++] = envar; + } + if (NULL != argument) { + char *envar = alloc_envar("ARGUMENT", argument); + ASSERT(envar != NULL); + child_envp[envi++] = envar; + } + + /* copy envars except for those in varlist */ + for (i=0; i= '0') && (input <= '9'))) + return (1); + + /* Check other known keys */ + switch (input) { + case KEY_UP: + case KEY_DOWN: + case CDK_BEGOFLINE: + case CDK_TRANSPOSE: + case CDK_ENDOFLINE: + case KEY_LEFT: + case CDK_BACKCHAR: + case KEY_RIGHT: + case CDK_FORCHAR: + case DELETE: + case ('H') & 0x1f: + case KEY_BACKSPACE: + case KEY_DC: + case KEY_ESC: + case CDK_ERASE: + case CDK_CUT: + case CDK_COPY: + case CDK_PASTE: + case KEY_RETURN: + case KEY_TAB: + case KEY_ENTER: + case CDK_REFRESH: + return (1); + default: + Beep (); + return (0); + } +} + +static int +show_time (CmdConfig *cmd_config, CameraWidget *date) +{ + CDKENTRY *entry = NULL; + const char *label, *info; + char title[1024], time_string[9]; + time_t xtime; + struct tm *date_info; + + gp_widget_get_label (date, &label); + snprintf (title, sizeof (title), "%s", label); + + entry = newCDKEntry (cmd_config->screen, CENTER, CENTER, title, + _("Time: "), A_NORMAL, ' ', vMIXED, 40, 0, + 8, TRUE, FALSE); + if (!entry) + return (GP_ERROR); + + gp_widget_get_value (date, &xtime); + date_info = localtime (&xtime); + snprintf (time_string, sizeof (time_string), "%2i:%02i:%02i", + date_info->tm_hour, date_info->tm_min, date_info->tm_sec); + setCDKEntryValue (entry, time_string); + + setCDKEntryPreProcess (entry, time_preprocess, NULL); + + info = activateCDKEntry (entry, 0); + if (entry->exitType == vNORMAL) { + date_info = localtime (&xtime); + sscanf (info, "%d:%d:%d", &date_info->tm_hour, + &date_info->tm_min, &date_info->tm_sec); + xtime = mktime (date_info); + gp_widget_set_value (date, &xtime); + set_config (cmd_config); + } + destroyCDKEntry (entry); + return (GP_OK); +} + +static int +show_radio (CmdConfig *cmd_config, CameraWidget *radio) +{ + CDKITEMLIST *list = NULL; + const char *label, *value, *current_value; + char title[1024], *items[100]; + int x, count, current = 0, selection, found; + + gp_widget_get_label (radio, &label); + snprintf (title, sizeof (title), "%s", label); + gp_widget_get_value (radio, ¤t_value); + count = gp_widget_count_choices (radio); + + /* Check if the current value is in the list */ + current = found = 0; + for (x = 0; x < count; x++) { + gp_widget_get_choice (radio, x, &value); + if (!strcmp (value, current_value)) { + current = x; + found = 1; + break; + } + } + if (!found) + items[0] = copyChar ((char *) current_value); + + /* Add all items */ + for (x = 0; x < count; x++) { + gp_widget_get_choice (radio, x, &value); + items[x + 1 - found] = copyChar ((char *) value); + } + + list = newCDKItemlist (cmd_config->screen, CENTER, CENTER, + title, _("Value: "), items, count, + current, TRUE, FALSE); + if (!list) + return (GP_ERROR); + + selection = activateCDKItemlist (list, 0); + if (list->exitType == vNORMAL) { + gp_widget_get_choice (radio, selection, &value); + gp_widget_set_value (radio, (void *) value); + set_config (cmd_config); + } + + destroyCDKItemlist (list); + return (GP_OK); +} + +static int +show_text (CmdConfig *cmd_config, CameraWidget *text) +{ + CDKENTRY *entry = NULL; + const char *label, *value; + char title[1024], *info; + + CHECK (gp_widget_get_value (text, &value)); + CHECK (gp_widget_get_label (text, &label)); + + snprintf (title, sizeof (title), "%s", label); + entry = newCDKEntry (cmd_config->screen, CENTER, CENTER, title, + _("Value: "), A_NORMAL, ' ', vMIXED, 40, 0, + 256, TRUE, FALSE); + if (!entry) + return (GP_ERROR); + + setCDKEntryValue (entry, (char*) value); + info = activateCDKEntry (entry, 0); + if (entry->exitType == vNORMAL) { + gp_widget_set_value (text, info); + set_config (cmd_config); + } + destroyCDKEntry (entry); + return (GP_OK); +} + +static int +show_toggle (CmdConfig *cmd_config, CameraWidget *toggle) +{ + CDKITEMLIST *list = NULL; + int value, selection; + const char *label; + char title[1024], *info[] = {N_("Yes"), N_("No")}; + + CHECK (gp_widget_get_value (toggle, &value)); + CHECK (gp_widget_get_label (toggle, &label)); + snprintf (title, sizeof (title), "%s", label); + + list = newCDKItemlist (cmd_config->screen, CENTER, CENTER, title, "", + info, 2, 1 - value, TRUE, FALSE); + if (!list) + return (GP_ERROR); + + selection = activateCDKItemlist (list, 0); + if (list->exitType == vNORMAL) { + selection = 1 - selection; + gp_widget_set_value (toggle, &selection); + set_config (cmd_config); + } + + destroyCDKItemlist (list); + + return (GP_OK); +} + +static int +show_range_int (CmdConfig *cmd_config, CameraWidget *range) +{ + CDKSLIDER *slider = NULL; + float value, min, max, increment; + const char *label; + char title[1024]; + int selection; + + CHECK (gp_widget_get_value (range, &value)); + CHECK (gp_widget_get_label (range, &label)); + snprintf (title, sizeof (title), "%s", label); + CHECK (gp_widget_get_range (range, &min, &max, &increment)); + + slider = newCDKSlider (cmd_config->screen, CENTER, CENTER, title, + _("Value: "), '-', + 50, (int) value, min, max, + increment, + MAX (increment, (max - min)/20.0), + TRUE, + FALSE); + if (!slider) + return (GP_ERROR); + + selection = activateCDKSlider (slider, 0); + if (slider->exitType == vNORMAL) { + value = selection; + gp_widget_set_value (range, &value); + set_config (cmd_config); + } + + destroyCDKSlider (slider); + return (GP_OK); +} + +static int +get_digits (double d) +{ + /* + * Returns the number of non-zero digits to the right of the decimal + * point, up to a max of 4. + */ + double x; + int i; + for (i = 0, x = d * 1.0; i < 4; i++) { + + /* + * The small number really depends on how many digits (4) + * we are checking for, but as long as it's small enough + * this works fine. We need the "<" as the floating point + * arithmetic does not always give an exact 0.0 (and can + * even give a -0.0). + */ + if (fabs (x - floor (x)) < 0.000001) + return(i); + x = x * 10.0; + } + return(i); +} + +static int +show_range_float (CmdConfig *cmd_config, CameraWidget *range) +{ +#ifdef HAVE_CDK_20010421 + return (show_range_int (cmd_config, range)); +#else + CDKFSCALE *fscale = NULL; + float value, min, max, increment; + const char *label; + char title[1024]; + float selection; + + CHECK (gp_widget_get_value (range, &value)); + CHECK (gp_widget_get_label (range, &label)); + snprintf (title, sizeof (title), "%s", label); + CHECK (gp_widget_get_range (range, &min, &max, &increment)); + + fscale = newCDKFScale (cmd_config->screen, CENTER, CENTER, title, + _("Value: "), A_STANDOUT, + 50, value, min, max, + increment, + MAX (increment, (max - min) / 20.0), + get_digits (increment), + TRUE, FALSE); + if (!fscale) + return (GP_ERROR); + + selection = activateCDKFScale (fscale, 0); + if (fscale->exitType == vNORMAL) { + value = selection; + gp_widget_set_value (range, &value); + set_config (cmd_config); + } + + destroyCDKFScale (fscale); + return (GP_OK); +#endif +} + +static int +show_range (CmdConfig *cmd_config, CameraWidget *range) +{ + float min, max, increment; + + CHECK (gp_widget_get_range (range, &min, &max, &increment)); + + if (!get_digits (increment) && !get_digits (min) && !get_digits (max)) + return (show_range_int (cmd_config, range)); + else + return (show_range_float (cmd_config, range)); +} + +static int +show_widget (CmdConfig *cmd_config, CameraWidget *widget) +{ + CameraWidget *parent; + CameraWidgetType type; + + CHECK (gp_widget_get_type (widget, &type)); + switch (type) { + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + CHECK (show_section (cmd_config, widget)); + break; + case GP_WIDGET_DATE: + CHECK (show_date (cmd_config, widget)); + CHECK (show_time (cmd_config, widget)); + CHECK (gp_widget_get_parent (widget, &parent)); + CHECK (show_widget (cmd_config, parent)); + break; + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + CHECK (show_radio (cmd_config, widget)); + CHECK (gp_widget_get_parent (widget, &parent)); + CHECK (show_widget (cmd_config, parent)); + break; + case GP_WIDGET_RANGE: + CHECK (show_range (cmd_config, widget)); + CHECK (gp_widget_get_parent (widget, &parent)); + CHECK (show_widget (cmd_config, parent)); + break; + case GP_WIDGET_TEXT: + CHECK (show_text (cmd_config, widget)); + CHECK (gp_widget_get_parent (widget, &parent)); + CHECK (show_widget (cmd_config, parent)); + break; + case GP_WIDGET_TOGGLE: + CHECK (show_toggle (cmd_config, widget)); + CHECK (gp_widget_get_parent (widget, &parent)); + CHECK (show_widget (cmd_config, parent)); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + + return (GP_OK); +} + +int +gp_cmd_config (Camera *camera, GPContext *context) +{ + CmdConfig cmd_config; + CameraWidget *config; + int result; + CDKSCREEN *screen = NULL; + WINDOW *window = NULL; + + if (!camera) + return (GP_ERROR_BAD_PARAMETERS); + + result = gp_camera_get_config (camera, &config, context); + if (result < 0) + return (result); + + /* Set up CDK. */ + window = initscr (); + screen = initCDKScreen (window); + + /* Set up CDK Colors. */ + initCDKColor (); + + /* Go! */ + cmd_config.camera = camera; + cmd_config.screen = screen; + cmd_config.window = config; + cmd_config.context = context; + result = show_widget (&cmd_config, config); + + /* Clean up */ + destroyCDKScreen (screen); + delwin (window); + endCDK (); + + return (result); +} + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/gphoto2-cmd-config.h b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/gphoto2-cmd-config.h new file mode 100644 index 00000000..a7efafb0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/gphoto2-cmd-config.h @@ -0,0 +1,36 @@ +/* gphoto2-cmd-config.h + * + * Copyright © 2001 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_CMD_CONFIG_H__ +#define __GPHOTO2_CMD_CONFIG_H__ + +#include + +int gp_cmd_config (Camera *camera, GPContext *context); + +#endif /* __GPHOTO2_CMD_CONFIG_H__ */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/i18n.h b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/i18n.h new file mode 100644 index 00000000..23f96f54 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/i18n.h @@ -0,0 +1,52 @@ +/* i18n.h + * + * Copyright © 2001 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __I18N_H__ +#define __I18N_H__ + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define ngettext(String1,String2,Count) (Count==1?String1:String2) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#endif /* __I18N_H__ */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/main.c b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/main.c new file mode 100644 index 00000000..f80f1713 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/main.c @@ -0,0 +1,2570 @@ +/* + * Copyright 2002 Lutz Mueller + * Copyright 2004-2013 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#if defined (HAVE_SIGNAL_H) +#include +#endif +#include "actions.h" +#include "foreach.h" +#include +#include +#include +#include "gp-params.h" +#include "i18n.h" +#include "main.h" +#include "range.h" +#include "shell.h" + +#ifdef HAVE_CDK +# include "gphoto2-cmd-config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef HAVE_POPT +# include +/* POPT_TABLEEND is only defined from popt 1.6.1 */ +# ifndef POPT_TABLEEND +# define POPT_TABLEEND { NULL, '\0', 0, 0, 0, NULL, NULL } +# endif +#else +# error gphoto2 now REQUIRES the popt library! +#endif + +#ifdef HAVE_RL +# include +#endif + +#ifdef HAVE_PTHREAD +# include +#endif + +#ifndef WIN32 +# include +#endif + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + +#define CR(result) {int r = (result); if (r < 0) return (r);} + +#ifdef __GNUC__ +#define __unused__ __attribute__((unused)) +#else +#define __unused__ +#endif + +static int debug_option_given = 0; +char glob_cancel = 0; +static int glob_frames = 0; +static int glob_interval = 0; +static int glob_bulblength = 0; + +GPParams gp_params; + +/* flag for SIGUSR1 handler */ +static volatile int capture_now = 0; + +/* flag for SIGUSR2 handler */ +static volatile int end_next = 0; + +/*! \brief Copy string almost like strncpy, converting to lower case. + * + * This function behaves like strncpy, but + * - convert chars to lower case + * - ensures the dst buffer is terminated with a '\0' + * (even if that means cutting the string short) + * - limits the string copy at a reasonable size (32K) + * + * Relies on tolower() which may be locale specific, but cannot be + * multibyte encoding safe. + */ + +static size_t +strncpy_lower(char *dst, const char *src, size_t count) +{ + unsigned int i; + if ((dst == NULL) || (src == NULL) + || (((unsigned long)count)>= 0x7fff)) { + return -1; + } + for (i=0; (itm_hour % 12; + if (hour12 == 0) { + hour12 = 12; + } + + /* + * If the user didn't specify a filename, use the original name + * (and prefix). + */ + if (!gp_params.filename || !strcmp (gp_params.filename, "")) { + if (file) { + return gp_file_get_name_by_type (file, name, type, path); + } else if ((type == GP_FILE_TYPE_NORMAL) && strchr(name,'.')) { + /* return the original name */ + *path = strdup(name); + return (GP_OK); + } else + /* Download required to get the path from CameraFile *file */ + return (GP_ERROR_BAD_PARAMETERS); + } + + /* The user did specify a filename. Use it. */ + b[sizeof (b) - 1] = '\0'; + for (i = 0; i < strlen (gp_params.filename); i++) { + if (gp_params.filename[i] == '%') { + char padding = '0'; /* default padding character */ + int precision = 0; /* default: no padding */ + i++; + /* determine padding character */ + switch (gp_params.filename[i]) { + /* case ' ': + * spaces are not supported everywhere, so we + * restrict ourselves to padding with zeros. + */ + case '0': + padding = gp_params.filename[i]; + precision = 1; /* do padding */ + i++; + break; + } + /* determine padding width */ + if (isdigit((int)gp_params.filename[i])) { + char *cp; + long int _prec; + _prec = strtol(&gp_params.filename[i], + &cp, 10); + if (_prec < 1) + precision = 1; + else if (_prec > 20) + precision = 20; + else + precision = _prec; + if (*cp != 'n') { + /* make sure this is %n */ + gp_context_error (gp_params.context, + _("Zero padding numbers " + "in file names is only " + "possible with %%n.")); + return GP_ERROR_BAD_PARAMETERS; + } + /* go to first non-digit character */ + i += (cp - &gp_params.filename[i]); + } else if (precision && ( gp_params.filename[i] != 'n')) { + gp_context_error (gp_params.context, + _("You cannot use %%n " + "zero padding " + "without a " + "precision value!" + )); + return GP_ERROR_BAD_PARAMETERS; + } + switch (gp_params.filename[i]) { + case 'n': + /* + * Previously this used an folder index number. + * Now this uses a linear increasing number. + */ + if (precision > 1) { + char padfmt[16]; + strcpy(padfmt, "%!.*i"); + padfmt[1] = padding; + snprintf (b, sizeof (b), padfmt, + precision, filenr); + } else { + snprintf (b, sizeof (b), "%i", + filenr); + } + filenr++; + break; + + case 'C': + /* Get the suffix of the original name */ + s = strrchr (name, '.'); + if (!s) { + free (*path); + *path = NULL; + gp_context_error (gp_params.context, + _("The filename provided " + "by the camera ('%s') " + "does not contain a " + "suffix!"), name); + return (GP_ERROR_BAD_PARAMETERS); + } + strncpy (b, s + 1, sizeof (b) - 1); + break; + + case 'f': + + /* Get the file name without suffix */ + s = strrchr (name, '.'); + if (!s) + strncpy (b, name, sizeof (b) - 1); + else { + l = MIN ((unsigned long)(sizeof(b) - 1), + (unsigned long)(s - name)); + strncpy (b, name, l); + b[l] = '\0'; + } + break; + + case 'F': + /* Get the folder name */ + { + const char *f = folder ? folder : ""; + if (f[0] == '/') f++; /* Skip first '/' */ + if (!f[0]) f = "."; /* replace empty folder name by '.' */ + + strncpy (b, f, sizeof (b) - 1 - strlen(b)); + b[sizeof(b) - 1] = '\0'; + } + break; + + case 'a': + case 'A': + case 'b': + case 'B': + case 'd': + case 'H': + case 'k': + case 'I': + case 'l': + case 'j': + case 'm': + case 'M': + case 'S': + case 'y': + case 'Y': + { + char fmt[3] = { '%', '\0', '\0' }; + if (!file) return (GP_ERROR_BAD_PARAMETERS); /* mtime unknown */ + + fmt[1] = gp_params.filename[i]; /* the letter of this 'case' */ + strftime(b, sizeof (b), fmt, tm); + break; + } + case '%': + strcpy (b, "%"); + break; + case ':': + strncpy_lower(b, name, sizeof(b)); + b[sizeof(b)-1] = '\0'; + break; + default: + free (*path); + *path = NULL; + gp_context_error (gp_params.context, + _("Invalid format '%s' (error at " + "position %i)."), gp_params.filename, + i + 1); + return (GP_ERROR_BAD_PARAMETERS); + } + } else { + b[0] = gp_params.filename[i]; + b[1] = '\0'; + } + + s = *path ? realloc (*path, strlen (*path) + strlen (b) + 1) : + malloc (strlen (b) + 1); + if (!s) { + free (*path); + *path = NULL; + return (GP_ERROR_NO_MEMORY); + } + if (*path) { + *path = s; + strcat (*path, b); + } else { + *path = s; + strcpy (*path, b); + } + } + + /** + * If the file is a capture_preview, + * apply prefix over the calculated basename + */ + if (type == GP_FILE_TYPE_PREVIEW) { + return gp_file_get_name_by_type (file, s, type, path); + } + + return (GP_OK); +} + + +int +save_camera_file_to_file ( + const char *folder, const char *name, CameraFileType type, CameraFile *file, const char *curname +) { + char *path = NULL, s[1024], c[1024]; + int res; + time_t mtime; + struct utimbuf u; + + CR (get_path_for_file (folder, name, type, file, &path)); + strncpy (s, path, sizeof (s) - 1); + s[sizeof (s) - 1] = '\0'; + free (path); + path = NULL; + + if ((gp_params.flags & FLAGS_SKIP_EXISTING) && gp_system_is_file (s)) { + if ((gp_params.flags & FLAGS_QUIET) == 0) { + printf (_("Skip existing file %s\n"), s); + fflush (stdout); + } + if (curname) + unlink (curname); + return (GP_OK); + } + if ((gp_params.flags & FLAGS_QUIET) == 0) { + while ((gp_params.flags & FLAGS_FORCE_OVERWRITE) == 0 && + gp_system_is_file (s)) { + do { + putchar ('\007'); + printf (_("File %s exists. Overwrite? [y|n] "), + s); + fflush (stdout); + if (NULL == fgets (c, sizeof (c) - 1, stdin)) + return GP_ERROR; + } while ((c[0]!='y')&&(c[0]!='Y')&& + (c[0]!='n')&&(c[0]!='N')); + + if ((c[0]=='y') || (c[0]=='Y')) + break; + + do { + printf (_("Specify new filename? [y|n] ")); + fflush (stdout); + if (NULL == fgets (c, sizeof (c) - 1, stdin)) + return GP_ERROR; + } while ((c[0]!='y')&&(c[0]!='Y')&& + (c[0]!='n')&&(c[0]!='N')); + + if (!((c[0]=='y') || (c[0]=='Y'))) { + if (curname) unlink (curname); + return (GP_OK); + } + + printf (_("Enter new filename: ")); + fflush (stdout); + if (NULL == fgets (s, sizeof (s) - 1, stdin)) + return GP_ERROR; + s[strlen (s) - 1] = 0; + } + printf (_("Saving file as %s\n"), s); + fflush (stdout); + } + path = s; + while ((path = strchr (path, gp_system_dir_delim))){ + *path = '\0'; + if(!gp_system_is_dir (s)) + gp_system_mkdir (s); + *path++ = gp_system_dir_delim; + } + if (curname) { + int x; + + unlink(s); + if (-1 == rename (curname, s)) { + /* happens if the user specified a absolute path with --filename */ + /* EPERM happens on windows, see https://github.com/gphoto/libgphoto2/issues/97 */ + if ((errno == EXDEV) || (errno == EPERM)) { + char buf[8192]; + int in_fd, out_fd; + + in_fd = open(curname, O_RDONLY); + if (in_fd < 0) + perror("Can't open file for reading"); + + out_fd = open(s, O_CREAT | O_WRONLY, 0644); + if (out_fd < 0) + perror("Can't open file for writing"); + + while (1) { + ssize_t result = read(in_fd, buf, sizeof(buf)); + if (!result) break; + if (-1 == write(out_fd, buf, result)) { + perror("write"); + break; + } + } + close(out_fd); + close(in_fd); + unlink(curname); + } else + perror("rename"); + } + x = umask(0022); /* get umask */ + umask(x);/* set it back to the old value */ + chmod(s,0666 & ~x); + } + res = gp_file_get_mtime (file, &mtime); + if ((res == GP_OK) && (mtime)) { + u.actime = mtime; + u.modtime = mtime; + utime (s, &u); + } + gp_params_run_hook(&gp_params, "download", s); + return (GP_OK); +} + +int +camera_file_exists (Camera *camera, GPContext *context, const char *folder, + const char *filename, CameraFileType type) +{ + CameraFileInfo info; + CR (gp_camera_file_get_info (camera, folder, filename, &info, + context)); + switch (type) { + case GP_FILE_TYPE_METADATA: + return TRUE; + case GP_FILE_TYPE_AUDIO: + return (info.audio.fields != 0); + case GP_FILE_TYPE_PREVIEW: + return (info.preview.fields != 0); + case GP_FILE_TYPE_RAW: + case GP_FILE_TYPE_NORMAL: + return (info.file.fields != 0); + default: + gp_context_error (context, "Unknown file type in camera_file_exists: %d", type); + return FALSE; + } +} + +struct privstr { + int fd; +}; + +static int x_size(void*priv,uint64_t *size) { + struct privstr *ps = priv; + int fd = ps->fd; + off_t res; + + gp_log (GP_LOG_DEBUG, "x_size","(%p,%u)", priv, (unsigned int)*size); + res = lseek (fd, 0, SEEK_END); + if (res == -1) { + perror ("x_size: lseek SEEK_END"); + return GP_ERROR_IO; + } + res = lseek (fd, 0, SEEK_CUR); + if (res == -1) { + perror ("x_size: lseek SEEK_CUR"); + return GP_ERROR_IO; + } + *size = res; + res = lseek (fd, 0, SEEK_SET); + if (res == -1) { + perror ("x_size: lseek SEEK_SET"); + return GP_ERROR_IO; + } + return GP_OK; +} + +static int x_read(void*priv,unsigned char *data, uint64_t *size) { + struct privstr *ps = priv; + int fd = ps->fd; + uint64_t curread = 0, xsize, res; + + gp_log (GP_LOG_DEBUG, "x_read", "(%p,%p,%u)", priv, data, (unsigned int)*size); + xsize = *size; + while (curread < xsize) { + res = read (fd, data+curread, xsize-curread); + if (res == -1) return GP_ERROR_IO_READ; + if (!res) break; + curread += res; + } + *size = curread; + return GP_OK; +} + +static int x_write(void*priv,unsigned char *data, uint64_t *size) { + struct privstr *ps = priv; + int fd = ps->fd; + uint64_t curwritten = 0, xsize, res; + + gp_log (GP_LOG_DEBUG, "x_write","(%p,%p,%u)", priv, data, (unsigned int)*size); + xsize = *size; + while (curwritten < xsize) { + res = write (fd, data+curwritten, xsize-curwritten); + if (res == -1) return GP_ERROR_IO_WRITE; + if (!res) break; + curwritten += res; + } + *size = curwritten; + return GP_OK; +} + +static CameraFileHandler xhandler = { x_size, x_read, x_write }; + +int +save_file_to_file (Camera *camera, GPContext *context, Flags flags, + const char *folder, const char *filename, + CameraFileType type) +{ + int fd, res; + CameraFile *file; + char tmpname[20], *tmpfilename; + struct privstr *ps = NULL; + + if (flags & FLAGS_SKIP_EXISTING && !(flags & FLAGS_STDOUT)) { + char *path = NULL; + /* Check if the file is present before downloading it. */ + res = get_path_for_file (folder, filename, type, NULL, &path); + + if (res == (GP_OK) && gp_system_is_file (path)) { + /* File name pattern do not require CameraFile and target file + exists: Skip this file. */ + if ((gp_params.flags & FLAGS_QUIET) == 0) { + printf (_("Skip existing file %s\n"), path); + fflush (stdout); + } + return (GP_OK); + } + } + + if (flags & FLAGS_NEW) { + CameraFileInfo info; + + CR (gp_camera_file_get_info (camera, folder, filename, + &info, context)); + switch (type) { + case GP_FILE_TYPE_PREVIEW: + if (info.preview.fields & GP_FILE_INFO_STATUS && + info.preview.status == GP_FILE_STATUS_DOWNLOADED) + return (GP_OK); + break; + case GP_FILE_TYPE_NORMAL: + case GP_FILE_TYPE_RAW: + case GP_FILE_TYPE_EXIF: + if (info.file.fields & GP_FILE_INFO_STATUS && + info.file.status == GP_FILE_STATUS_DOWNLOADED) + return (GP_OK); + break; + case GP_FILE_TYPE_AUDIO: + if (info.audio.fields & GP_FILE_INFO_STATUS && + info.audio.status == GP_FILE_STATUS_DOWNLOADED) + return (GP_OK); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + } + strcpy (tmpname, "tmpfileXXXXXX"); + fd = mkstemp(tmpname); + if (fd == -1) { + if (errno == EACCES) { + gp_context_error (context, _("Permission denied")); + return GP_ERROR; + } + CR (gp_file_new (&file)); + tmpfilename = NULL; + } else { + if (time(NULL) & 1) { /* to test both methods. */ + gp_log (GP_LOG_DEBUG, "save_file_to_file","using fd method"); + res = gp_file_new_from_fd (&file, fd); + if (res < GP_OK) { + close (fd); + unlink (tmpname); + return res; + } + } else { + gp_log (GP_LOG_DEBUG, "save_file_to_file","using handler method"); + ps = malloc (sizeof(*ps)); + if (!ps) return GP_ERROR_NO_MEMORY; + ps->fd = fd; + /* just pass in the file pointer as private */ + res = gp_file_new_from_handler (&file, &xhandler, ps); + if (res < GP_OK) { + close (fd); + unlink (tmpname); + return res; + } + } + tmpfilename = tmpname; + } + res = gp_camera_file_get (camera, folder, filename, type, + file, context); + if (res < GP_OK) { + free (ps); + gp_file_unref (file); + if (tmpfilename) unlink (tmpfilename); + return res; + } + + if (flags & FLAGS_STDOUT) { + const char *data; + unsigned long int size; + + CR (gp_file_get_data_and_size (file, &data, &size)); + + if (flags & FLAGS_STDOUT_SIZE) /* this will be difficult in fd mode */ + printf ("%li\n", size); + if (1!=fwrite (data, size, 1, stdout)) + fprintf(stderr,"fwrite failed writing to stdout.\n"); + if (ps && ps->fd) close (ps->fd); + free (ps); + gp_file_unref (file); + unlink (tmpname); + return (GP_OK); + } + res = save_camera_file_to_file (folder, filename, type, file, tmpfilename); + if (ps && ps->fd) close (ps->fd); + free (ps); + gp_file_unref (file); + if ((res!=GP_OK) && tmpfilename) + unlink (tmpfilename); + return (res); +} + +static void +dissolve_filename ( + const char *folder, const char *filename, + char **newfolder, char **newfilename +) { + char *nfolder, *s; + + s = strrchr (filename, '/'); + if (!s) { + *newfolder = strdup (folder); + *newfilename = strdup (filename); + return; + } + while (filename[0] == '/') + filename++; + nfolder = malloc (strlen (folder) + 1 + (s-filename) + 1); + strcpy (nfolder, folder); + if (strcmp (nfolder, "/")) strcat (nfolder, "/"); /* if its not the root directory, append / */ + memcpy (nfolder+strlen(nfolder), filename, (s-filename)); + nfolder[strlen (folder) + 1 + (s-filename)-1] = '\0'; + *newfolder = nfolder; + *newfilename = strdup (s+1); +#if 0 + fprintf (stderr, "%s - %s dissolved to %s - %s\n", folder, filename, *newfolder, *newfilename); +#endif +} + + + +/*! \brief parse range, download specified files, or their + * thumbnails according to thumbnail argument, and save to files. + */ + +int +get_file_common (const char *arg, CameraFileType type ) +{ + gp_log (GP_LOG_DEBUG, "main", "Getting '%s'...", arg); + + gp_params.download_type = type; /* remember for multi download */ + /* + * If the user specified the file directly (and not a number), + * get that file. + */ + if (strchr (arg, '.')) { + int ret; + char *newfolder, *newfilename; + + dissolve_filename (gp_params.folder, arg, &newfolder, &newfilename); + ret = save_file_to_file (gp_params.camera, gp_params.context, gp_params.flags, + newfolder, newfilename, type); + free (newfolder); free (newfilename); + return ret; + } + + switch (type) { + case GP_FILE_TYPE_PREVIEW: + CR (for_each_file_in_range (&gp_params, save_thumbnail_action, arg)); + break; + case GP_FILE_TYPE_NORMAL: + CR (for_each_file_in_range (&gp_params, save_file_action, arg)); + break; + case GP_FILE_TYPE_RAW: + CR (for_each_file_in_range (&gp_params, save_raw_action, arg)); + break; + case GP_FILE_TYPE_AUDIO: + CR (for_each_file_in_range (&gp_params, save_audio_action, arg)); + break; + case GP_FILE_TYPE_EXIF: + CR (for_each_file_in_range (&gp_params, save_exif_action, arg)); + break; + case GP_FILE_TYPE_METADATA: + CR (for_each_file_in_range (&gp_params, save_meta_action, arg)); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + + return (GP_OK); +} + +static void +sig_handler_capture_now (int sig_num) +{ + signal (SIGUSR1, sig_handler_capture_now); + capture_now = 1; +} + +static void +sig_handler_end_next (int sig_num) +{ + signal (SIGUSR2, sig_handler_end_next); + end_next = 1; +} + +/* temp test function */ +int +trigger_capture (void) { + int result = gp_camera_trigger_capture (gp_params.camera, gp_params.context); + if (result != GP_OK) { + cli_error_print(_("Could not trigger capture.")); + return (result); + } + return GP_OK; +} + +static long +timediff_now (struct timeval *target) { + struct timeval now; + + gettimeofday (&now, NULL); + return (target->tv_sec-now.tv_sec)*1000+ + (target->tv_usec-now.tv_usec)/1000; +} + +static int +save_captured_file (CameraFilePath *path, int download) { + char *pathsep; + static CameraFilePath last; + int result; + + if (strcmp(path->folder, "/") == 0) + pathsep = ""; + else + pathsep = "/"; + + if (gp_params.flags & FLAGS_QUIET) { + if (!(gp_params.flags & (FLAGS_STDOUT|FLAGS_STDOUT_SIZE))) + printf ("%s%s%s\n", path->folder, pathsep, path->name); + } else { + printf (_("New file is in location %s%s%s on the camera\n"), + path->folder, pathsep, path->name); + } + if (download) { + if (strcmp(path->folder, last.folder)) { + memcpy(&last, path, sizeof(last)); + + result = set_folder_action(&gp_params, path->folder); + if (result != GP_OK) { + cli_error_print(_("Could not set folder.")); + return (result); + } + } + if ( (gp_params.flags & FLAGS_KEEP_RAW) && + (!strstr(path->name,".jpg") && !strstr(path->name,".JPG")) + ) { + if (!(gp_params.flags & FLAGS_QUIET)) + printf (_("Keeping file %s%s%s on the camera\n"), + path->folder, pathsep, path->name); + return GP_OK; + } + + result = get_file_common (path->name, GP_FILE_TYPE_NORMAL); + if (result != GP_OK) { + cli_error_print (_("Could not get image.")); + if(result == GP_ERROR_FILE_NOT_FOUND) { + /* Buggy libcanon.so? + * Can happen if this was the first capture after a + * CF card format, or during a directory roll-over, + * ie: CANON100 -> CANON101 + */ + cli_error_print ( _("Buggy libcanon.so?")); + } + return (result); + } + + if (!(gp_params.flags & FLAGS_KEEP)) { + if (!(gp_params.flags & FLAGS_QUIET)) + printf (_("Deleting file %s%s%s on the camera\n"), + path->folder, pathsep, path->name); + + result = delete_file_action (&gp_params, path->folder, path->name); + if (result != GP_OK) { + cli_error_print ( _("Could not delete image.")); + return (result); + } + } else { + if (!(gp_params.flags & FLAGS_QUIET)) + printf (_("Keeping file %s%s%s on the camera\n"), + path->folder, pathsep, path->name); + } + } + return GP_OK; +} + +static int +wait_and_handle_event (long waittime, CameraEventType *type, int download) { + int result; + CameraEventType evtype; + void *data; + CameraFilePath *path; + + if (!type) type = &evtype; + evtype = GP_EVENT_UNKNOWN; + data = NULL; + result = gp_camera_wait_for_event(gp_params.camera, waittime, type, &data, gp_params.context); + if (result == GP_ERROR_NOT_SUPPORTED) { + *type = GP_EVENT_TIMEOUT; + usleep(waittime*1000); + return GP_OK; + } + if (result != GP_OK) + return result; + path = data; + switch (*type) { + case GP_EVENT_TIMEOUT: + break; + case GP_EVENT_CAPTURE_COMPLETE: + break; + case GP_EVENT_FOLDER_ADDED: + if (!(gp_params.flags & FLAGS_QUIET)) + printf (_("Event FOLDER_ADDED %s/%s during wait, ignoring.\n"), path->folder, path->name); + free (data); + break; + case GP_EVENT_FILE_CHANGED: + if (!(gp_params.flags & FLAGS_QUIET)) + printf (_("Event FILE_CHANGED %s/%s during wait, ignoring.\n"), path->folder, path->name); + free (data); + break; + case GP_EVENT_FILE_ADDED: + result = save_captured_file (path, download); + free (data); + /* result will fall through to final return */ + break; + case GP_EVENT_UNKNOWN: +#if 0 /* too much spam for the common usage */ + printf (_("Event UNKNOWN %s during wait, ignoring.\n"), (char*)data); +#endif + free (data); + break; + default: + if (!(gp_params.flags & FLAGS_QUIET)) + printf (_("Unknown event type %d during bulb wait, ignoring.\n"), *type); + break; + } + return result; +} + +int +capture_generic (CameraCaptureType type, const char __unused__ *name, int download) +{ + CameraFilePath path; + int result, frames = 0; + CameraAbilities a; + CameraEventType evtype; + long waittime; + struct timeval next_pic_time, expose_end_time; + + result = gp_camera_get_abilities (gp_params.camera, &a); + if (result != GP_OK) { + cli_error_print(_("Could not get capabilities?")); + return (result); + } + gettimeofday (&next_pic_time, NULL); + next_pic_time.tv_sec += glob_interval; + if(glob_interval) { + if (!(gp_params.flags & FLAGS_QUIET)) { + if (glob_interval != -1) + printf (_("Time-lapse mode enabled (interval: %ds).\n"), + glob_interval); + else + printf (_("Standing by waiting for SIGUSR1 to capture.\n")); + } + } + + if(glob_bulblength) { + if (!(gp_params.flags & FLAGS_QUIET)) { + printf (_("Bulb mode enabled (exposure time: %ds).\n"), + glob_bulblength); + } + } + + capture_now = 0; + signal(SIGUSR1, sig_handler_capture_now); + end_next = 0; + signal(SIGUSR2, sig_handler_end_next); + + while(++frames) { + if (!(gp_params.flags & FLAGS_QUIET) && glob_interval) { + if(!glob_frames) + printf (_("Capturing frame #%d...\n"), frames); + else + printf (_("Capturing frame #%d/%d...\n"), frames, glob_frames); + } + + fflush(stdout); + + /* Now handle the different capture methods */ + if(glob_bulblength) { + /* Bulb mode is special ... we enable it, wait disable it */ + result = set_config_action (&gp_params, "bulb", "1"); + if (result != GP_OK) { + cli_error_print(_("Could not set bulb capture, result %d."), result); + return (result); + } + gettimeofday (&expose_end_time, NULL); + expose_end_time.tv_sec += glob_bulblength; + waittime = timediff_now (&expose_end_time); + while(waittime > 0) { + result = wait_and_handle_event(waittime, &evtype, download); + if (result != GP_OK) + return result; + waittime = timediff_now (&expose_end_time); + } + result = set_config_action (&gp_params, "bulb", "0"); + if (result != GP_OK) { + cli_error_print(_("Could not end capture (bulb mode).")); + return (result); + } + /* The actual download will happen down below in the interval wait + * or the loop exit. + */ + } else { + result = GP_ERROR_NOT_SUPPORTED; +#if 0 + /* Not a good idea, as we do not know how long to wait after capture ... */ + if (a.operations & GP_OPERATION_TRIGGER_CAPTURE) { + result = gp_camera_trigger_capture (gp_params.camera, gp_params.context); + if ((result != GP_OK) && (result != GP_ERROR_NOT_SUPPORTED)) + cli_error_print(_("Could not trigger image capture.")); + /* The downloads will be handled by wait_event */ + } +#endif + if (result == GP_ERROR_NOT_SUPPORTED) { + result = gp_camera_capture (gp_params.camera, type, &path, gp_params.context); + if (result != GP_OK) { + cli_error_print(_("Could not capture image.")); + } else { + /* If my Canon EOS 10D is set to auto-focus and it is unable to + * get focus lock - it will return with *UNKNOWN* as the filename. + */ + if (glob_interval && strcmp(path.name, "*UNKNOWN*") == 0) { + if (!(gp_params.flags & FLAGS_QUIET)) { + printf (_("Capture failed (auto-focus problem?)...\n")); + sleep(1); + continue; + } + } + result = save_captured_file (&path, download); + if (result != GP_OK) + break; + } + } + if (result != GP_OK) { + cli_error_print(_("Could not capture.")); + if ( (result == GP_ERROR_NOT_SUPPORTED) || + (result == GP_ERROR_NO_MEMORY) || + (result == GP_ERROR_CANCEL) || + (result == GP_ERROR_NO_SPACE) || + (result == GP_ERROR_IO_USB_CLAIM) || + (result == GP_ERROR_IO_LOCK) || + (result == GP_ERROR_CAMERA_BUSY) || + (result == GP_ERROR_OS_FAILURE) + ) + return (result); + } + } + + /* Break if we've reached the requested number of frames + * to capture. + */ + if(!glob_interval) break; + + if(glob_frames && frames == glob_frames) break; + + /* Break if we've been told to end before the next frame */ + if(end_next) break; + + /* + * Even if the interval is set to -1, it is better to take a + * picture first to prepare the camera driver for faster + * response when a signal is caught. + * [alesan] + */ + if (glob_interval != -1) { + waittime = timediff_now (&next_pic_time); + if (waittime > 0) { + if (!(gp_params.flags & FLAGS_QUIET) && glob_interval) + printf (_("Waiting for next capture slot %ld seconds...\n"), waittime/1000); + /* We're not sure about sleep() semantics when catching a signal */ + do { + /* granularity in which we can receive signals is 200 */ + if (waittime > 200) waittime = 200; + result = wait_and_handle_event (waittime, NULL, download); + if (result != GP_OK) + break; + if (capture_now && !(gp_params.flags & FLAGS_QUIET) && glob_interval) { + printf (_("Awakened by SIGUSR1...\n")); + break; + } + waittime = timediff_now (&next_pic_time); + } while (waittime > 0); + } else { + /* drain the queue first though, even though there is no time. */ + while (1) { + result = wait_and_handle_event (1, &evtype, download); + if ((result != GP_OK) || (evtype == GP_EVENT_TIMEOUT)) + break; + } + if (!(gp_params.flags & FLAGS_QUIET) && glob_interval) + printf (_("not sleeping (%ld seconds behind schedule)\n"), -waittime/1000); + } + if (capture_now && (gp_params.flags & FLAGS_RESET_CAPTURE_INTERVAL)) { + gettimeofday (&next_pic_time, NULL); + next_pic_time.tv_sec += glob_interval; + } + else if (!capture_now) { + /* + * In the case of a (huge) time-sync while gphoto is running, + * gphoto could percieve an extremely large amount of time and + * stay "behind schedule" quite forever. That's why I reduce the + * difference of time with the following loop. + * [alesan] + */ + do { + next_pic_time.tv_sec += glob_interval; + } while (glob_interval && (timediff_now (&next_pic_time) < 0)); + } + capture_now = 0; + } else { + /* wait indefinitely for SIGUSR1 */ + do { + result = wait_and_handle_event (200, &evtype, download); + } while(!capture_now && (result == GP_OK)); + if (result != GP_OK) + break; + capture_now = 0; + if (!(gp_params.flags & FLAGS_QUIET)) + printf (_("Awakened by SIGUSR1...\n")); + } + } + /* The final capture will fall out of the loop into this case, + * so make sure we wait a bit for the the camera to finish stuff. + */ + gettimeofday (&expose_end_time, NULL); + waittime = 3000; + /* tricky, this loop might need to download both JPG and RAW. so wait longer. */ + /*if (glob_frames || end_next || !glob_interval || glob_bulblength) waittime = 2000;*/ + /* Drain the event queue at the end and download left over added images */ + while (1) { + int realwait = waittime - (-timediff_now(&expose_end_time)); + if (realwait < 0) realwait = 0; /* just drain the queue now */ + result = wait_and_handle_event(realwait, &evtype, download); + if ((result != GP_OK) || (evtype == GP_EVENT_TIMEOUT)) { + /*printf("Timeout or error, leaving loop.\n");*/ + break; + } + if (evtype == GP_EVENT_CAPTURE_COMPLETE) { + /*printf("Capture complete, waiting final 0.1s.\n");*/ + waittime = 100; + } + if (evtype == GP_EVENT_FILE_ADDED) { /* Restart timer, more image data might come. */ + /*printf("File added, waiting more %gs.\n", waittime/1000.0);*/ + gettimeofday (&expose_end_time, NULL); + } + } + + signal(SIGUSR1, SIG_DFL); + return (GP_OK); +} + + +/* Set/init global variables */ +/* ------------------------------------------------------------ */ + +#ifdef HAVE_PTHREAD + +typedef struct _ThreadData ThreadData; +struct _ThreadData { + Camera *camera; + time_t timeout; + CameraTimeoutFunc func; +}; + +static void +thread_cleanup_func (void *data) +{ + ThreadData *td = data; + + free (td); +} + +static void * +thread_func (void *data) +{ + ThreadData *td = data; + time_t t, last; + + pthread_cleanup_push (thread_cleanup_func, td); + + last = time (NULL); + while (1) { + t = time (NULL); + if (t - last > td->timeout) { + td->func (td->camera, NULL); + last = t; + } + pthread_testcancel (); + } + + pthread_cleanup_pop (1); +} + +static unsigned int +start_timeout_func (Camera *camera, unsigned int timeout, + CameraTimeoutFunc func, void __unused__ *data) +{ + pthread_t tid; + ThreadData *td; + + td = malloc (sizeof (ThreadData)); + if (!td) + return 0; + memset (td, 0, sizeof (ThreadData)); + td->camera = camera; + td->timeout = timeout; + td->func = func; + + pthread_create (&tid, NULL, thread_func, td); + + return (tid); +} + +static void +stop_timeout_func (Camera __unused__ *camera, unsigned int id, + void __unused__ *data) +{ + pthread_t tid = id; + + pthread_cancel (tid); + pthread_join (tid, NULL); +} + +#endif + +/* Misc functions */ +/* ------------------------------------------------------------------ */ + +void +cli_error_print (char *format, ...) +{ + va_list pvar; + + fprintf(stderr, _("ERROR: ")); + va_start(pvar, format); + vfprintf(stderr, format, pvar); + va_end(pvar); + fprintf(stderr, "\n"); +} + +static void +signal_resize (int __unused__ signo) +{ + const char *columns; + + columns = getenv ("COLUMNS"); + if (columns && atoi (columns)) + gp_params.cols = atoi (columns); +} + +static void +signal_exit (int __unused__ signo) +{ + /* If we already were told to cancel, abort. */ + if (glob_cancel) { + if ((gp_params.flags & FLAGS_QUIET) == 0) + printf (_("\nAborting...\n")); + if (gp_params.camera) + gp_camera_unref (gp_params.camera); + if (gp_params.context) + gp_context_unref (gp_params.context); + if ((gp_params.flags & FLAGS_QUIET) == 0) + printf (_("Aborted.\n")); + exit (EXIT_FAILURE); + } + + if ((gp_params.flags & FLAGS_QUIET) == 0) + printf (_("\nCancelling...\n")); + + glob_cancel = 1; + glob_interval = 0; +} + +/* Main :) */ +/* -------------------------------------------------------------------- */ + +typedef enum { + ARG_ABILITIES, + ARG_ABOUT, + ARG_AUTO_DETECT, + ARG_CAPTURE_FRAMES, + ARG_CAPTURE_INTERVAL, + ARG_CAPTURE_BULB, + ARG_TRIGGER_CAPTURE, + ARG_CAPTURE_IMAGE, + ARG_CAPTURE_IMAGE_AND_DOWNLOAD, + ARG_CAPTURE_MOVIE, + ARG_CAPTURE_PREVIEW, + ARG_SHOW_PREVIEW, + ARG_CAPTURE_SOUND, + ARG_CAPTURE_TETHERED, + ARG_CONFIG, + ARG_DEBUG, + ARG_DEBUG_LOGLEVEL, + ARG_DEBUG_LOGFILE, + ARG_DELETE_ALL_FILES, + ARG_DELETE_FILE, + ARG_FILENAME, + ARG_FOLDER, + ARG_FORCE_OVERWRITE, + ARG_GET_ALL_AUDIO_DATA, + ARG_GET_ALL_FILES, + ARG_GET_ALL_METADATA, + ARG_GET_ALL_RAW_DATA, + ARG_GET_ALL_THUMBNAILS, + ARG_GET_AUDIO_DATA, + ARG_GET_CONFIG, + ARG_SET_CONFIG, + ARG_SET_CONFIG_INDEX, + ARG_SET_CONFIG_VALUE, + ARG_GET_FILE, + ARG_GET_METADATA, + ARG_GET_RAW_DATA, + ARG_GET_THUMBNAIL, + ARG_HELP, + ARG_HOOK_SCRIPT, + ARG_KEEP, + ARG_KEEP_RAW, + ARG_LIST_CAMERAS, + ARG_LIST_ALL_CONFIG, + ARG_LIST_CONFIG, + ARG_LIST_FILES, + ARG_LIST_FOLDERS, + ARG_LIST_PORTS, + ARG_MANUAL, + ARG_MKDIR, + ARG_MODEL, + ARG_NEW, + ARG_NO_KEEP, + ARG_NO_RECURSE, + ARG_NUM_FILES, + ARG_PORT, + ARG_QUIET, + ARG_RECURSE, + ARG_RESET, + ARG_RESET_INTERVAL, + ARG_RMDIR, + ARG_SHELL, + ARG_SHOW_EXIF, + ARG_SHOW_INFO, + ARG_SKIP_EXISTING, + ARG_SPEED, + ARG_STDOUT, + ARG_STDOUT_SIZE, + ARG_STORAGE_INFO, + ARG_SUMMARY, + ARG_UPLOAD_FILE, + ARG_UPLOAD_METADATA, + ARG_USAGE, + ARG_USBID, + ARG_VERSION, + ARG_WAIT_EVENT +} Arg; + +typedef enum { + CALLBACK_PARAMS_TYPE_NONE, + CALLBACK_PARAMS_TYPE_PREINITIALIZE, + CALLBACK_PARAMS_TYPE_INITIALIZE, + CALLBACK_PARAMS_TYPE_QUERY, + CALLBACK_PARAMS_TYPE_RUN +} CallbackParamsType; + +typedef struct _CallbackParams CallbackParams; +struct _CallbackParams { + CallbackParamsType type; + union { + /* + * CALLBACK_PARAMS_TYPE_RUN, + * CALLBACK_PARAMS_TYPE_INITIALIZE, + * CALLBACK_PARAMS_TYPE_PREINITIALIZE, + */ + int r; + + /* CALLBACK_PARAMS_TYPE_QUERY */ + struct { + Arg arg; + char found; + } q; + + /* CALLBACK_PARAMS_TYPE_NONE */ + } p; +}; + + +/*! \brief popt callback with type CALLBACK_PARAMS_TYPE_QUERY + */ + +static void +cb_arg_query (poptContext __unused__ ctx, + enum poptCallbackReason __unused__ reason, + const struct poptOption *opt, const char __unused__ *arg, + CallbackParams *params) +{ + /* p.q.arg is an enum, but opt->val is an int */ + if (opt->val == (int)(params->p.q.arg)) + params->p.q.found = 1; +} + + +/*! \brief popt callback with type CALLBACK_PARAMS_TYPE_PREINITIALIZE + */ + +static void +cb_arg_preinit (poptContext __unused__ ctx, + enum poptCallbackReason __unused__ reason, + const struct poptOption *opt, const char *arg, + CallbackParams *params) +{ + int usb_product, usb_vendor; + int usb_product_modified, usb_vendor_modified; + switch (opt->val) { + case ARG_USBID: + gp_log (GP_LOG_DEBUG, "main", "Overriding USB " + "IDs to '%s'...", arg); + if (sscanf (arg, "0x%x:0x%x=0x%x:0x%x", + &usb_vendor_modified, + &usb_product_modified, &usb_vendor, + &usb_product) != 4) { + printf (_("Use the following syntax a:b=c:d " + "to treat any USB device detected " + "as a:b as c:d instead. " + "a b c d should be hexadecimal " + "numbers beginning with '0x'.\n")); + params->p.r = GP_ERROR_BAD_PARAMETERS; + break; + } + params->p.r = override_usbids_action (&gp_params, usb_vendor, + usb_product, usb_vendor_modified, + usb_product_modified); + break; + default: + break; + } +} + + +/*! \brief popt callback with type CALLBACK_PARAMS_TYPE_INITIALIZE + */ + +static void +cb_arg_init (poptContext __unused__ ctx, + enum poptCallbackReason __unused__ reason, + const struct poptOption *opt, const char *arg, + CallbackParams *params) +{ + switch (opt->val) { + + case ARG_FILENAME: + params->p.r = set_filename_action (&gp_params, arg); + break; + case ARG_FOLDER: + params->p.r = set_folder_action (&gp_params, arg); + break; + + case ARG_FORCE_OVERWRITE: + gp_params.flags |= FLAGS_FORCE_OVERWRITE; + break; + case ARG_NEW: + gp_params.flags |= FLAGS_NEW; + break; + case ARG_KEEP_RAW: + gp_params.flags |= FLAGS_KEEP_RAW; + break; + + case ARG_KEEP: + gp_params.flags |= FLAGS_KEEP; + break; + case ARG_NO_KEEP: + gp_params.flags &= ~FLAGS_KEEP; + break; + + case ARG_NO_RECURSE: + gp_params.flags &= ~FLAGS_RECURSE; + break; + case ARG_RECURSE: + gp_params.flags |= FLAGS_RECURSE; + break; + + case ARG_MODEL: + gp_log (GP_LOG_DEBUG, "main", "Processing 'model' " + "option ('%s')...", arg); + params->p.r = action_camera_set_model (&gp_params, arg); + break; + case ARG_PORT: + gp_log (GP_LOG_DEBUG, "main", "Processing 'port' " + "option ('%s')...", arg); + params->p.r = action_camera_set_port (&gp_params, arg); + break; + + case ARG_SKIP_EXISTING: + gp_params.flags |= FLAGS_SKIP_EXISTING; + break; + + case ARG_SPEED: + params->p.r = action_camera_set_speed (&gp_params, atoi (arg)); + break; + + case ARG_QUIET: + gp_params.flags |= FLAGS_QUIET; + break; + + case ARG_RESET_INTERVAL: + gp_params.flags |= FLAGS_RESET_CAPTURE_INTERVAL; + break; + + case ARG_HOOK_SCRIPT: + do { + const size_t sz = strlen(arg); + char *copy = malloc(sz+1); + if (!copy) { + perror("malloc error"); + exit (EXIT_FAILURE); + } + gp_params.hook_script = strcpy(copy, arg); + /* Run init hook */ + if (0!=gp_params_run_hook(&gp_params, "init", NULL)) { + fprintf(stderr, + "Hook script \"%s\" init failed. Aborting.\n", + gp_params.hook_script); + exit(3); + } + } while (0); + break; + + case ARG_STDOUT: + gp_params.flags |= FLAGS_QUIET | FLAGS_STDOUT; + break; + case ARG_STDOUT_SIZE: + gp_params.flags |= FLAGS_QUIET | FLAGS_STDOUT + | FLAGS_STDOUT_SIZE; + break; + + case ARG_CAPTURE_FRAMES: + glob_frames = atoi(arg); + break; + case ARG_CAPTURE_INTERVAL: + glob_interval = atoi(arg); + break; + case ARG_CAPTURE_BULB: + glob_bulblength = atoi(arg); + break; + + case ARG_VERSION: + params->p.r = print_version_action (&gp_params); + break; + default: + break; + } +} + +/*! \brief popt callback with type CALLBACK_PARAMS_TYPE_RUN + */ + +static void +cb_arg_run (poptContext __unused__ ctx, + enum poptCallbackReason __unused__ reason, + const struct poptOption *opt, const char *arg, + CallbackParams *params) +{ + char *newfilename = NULL, *newfolder = NULL; + + switch (opt->val) { + case ARG_ABILITIES: + params->p.r = action_camera_show_abilities (&gp_params); + break; + case ARG_ABOUT: + params->p.r = action_camera_about (&gp_params); + break; + case ARG_AUTO_DETECT: + params->p.r = auto_detect_action (&gp_params); + break; + case ARG_TRIGGER_CAPTURE: + params->p.r = trigger_capture (); + break; + case ARG_CAPTURE_IMAGE: + params->p.r = capture_generic (GP_CAPTURE_IMAGE, arg, 0); + break; + case ARG_CAPTURE_IMAGE_AND_DOWNLOAD: + params->p.r = capture_generic (GP_CAPTURE_IMAGE, arg, 1); + break; + case ARG_CAPTURE_MOVIE: + params->p.r = action_camera_capture_movie (&gp_params, arg); + break; + case ARG_CAPTURE_PREVIEW: + params->p.r = action_camera_capture_preview (&gp_params); + break; + case ARG_SHOW_PREVIEW: + params->p.r = action_camera_show_preview (&gp_params); + break; + case ARG_CAPTURE_SOUND: + params->p.r = capture_generic (GP_CAPTURE_SOUND, arg, 0); + break; + case ARG_CONFIG: +#ifdef HAVE_CDK + params->p.r = gp_cmd_config (gp_params.camera, gp_params.context); +#else + gp_context_error (gp_params.context, + _("gphoto2 has been compiled without " + "support for CDK.")); + params->p.r = GP_ERROR_NOT_SUPPORTED; +#endif + break; + case ARG_DELETE_ALL_FILES: + params->p.r = for_each_folder (&gp_params, delete_all_action); + break; + case ARG_DELETE_FILE: + gp_params.multi_type = MULTI_DELETE; + /* Did the user specify a file or a range? */ + if (strchr (arg, '.')) { + dissolve_filename (gp_params.folder, arg, &newfolder, &newfilename); + params->p.r = delete_file_action (&gp_params, newfolder, newfilename); + free (newfolder); free (newfilename); + break; + } + params->p.r = for_each_file_in_range (&gp_params, + delete_file_action, arg); + break; + case ARG_GET_ALL_AUDIO_DATA: + params->p.r = for_each_file (&gp_params, save_all_audio_action); + break; + case ARG_GET_ALL_FILES: + params->p.r = for_each_file (&gp_params, save_file_action); + break; + case ARG_GET_ALL_METADATA: + params->p.r = for_each_file (&gp_params, save_meta_action); + break; + case ARG_GET_ALL_RAW_DATA: + params->p.r = for_each_file (&gp_params, save_raw_action); + break; + case ARG_GET_ALL_THUMBNAILS: + params->p.r = for_each_file (&gp_params, save_thumbnail_action); + break; + case ARG_GET_AUDIO_DATA: + gp_params.multi_type = MULTI_DOWNLOAD; + params->p.r = get_file_common (arg, GP_FILE_TYPE_AUDIO); + break; + case ARG_GET_METADATA: + gp_params.multi_type = MULTI_DOWNLOAD; + params->p.r = get_file_common (arg, GP_FILE_TYPE_METADATA); + break; + case ARG_GET_FILE: + gp_params.multi_type = MULTI_DOWNLOAD; + params->p.r = get_file_common (arg, GP_FILE_TYPE_NORMAL); + break; + case ARG_GET_THUMBNAIL: + gp_params.multi_type = MULTI_DOWNLOAD; + params->p.r = get_file_common (arg, GP_FILE_TYPE_PREVIEW); + break; + case ARG_GET_RAW_DATA: + gp_params.multi_type = MULTI_DOWNLOAD; + params->p.r = get_file_common (arg, GP_FILE_TYPE_RAW); + break; + case ARG_LIST_CAMERAS: + params->p.r = list_cameras_action (&gp_params); + break; + case ARG_LIST_FILES: + params->p.r = for_each_folder (&gp_params, list_files_action); + break; + case ARG_LIST_FOLDERS: + params->p.r = for_each_folder (&gp_params, list_folders_action); + break; + case ARG_LIST_PORTS: + params->p.r = list_ports_action (&gp_params); + break; + case ARG_RESET: { + GPPort *port; + GPPortInfo info; + + /* If a camera is already open, close it, as we need a new port */ + if (gp_params.camera) { + gp_camera_exit (gp_params.camera, gp_params.context); + /* exit, not free. will reopen on next command. */ + } + + params->p.r = gp_port_new (&port); + if (params->p.r != GP_OK) { + gp_log(GP_LOG_ERROR,"port_reset", "new failed %d", params->p.r); + break; + } + params->p.r = gp_camera_get_port_info (gp_params.camera, &info); + if (params->p.r != GP_OK) { + gp_log(GP_LOG_ERROR,"port_reset", "camera_get_port_info failed"); + break; + } + params->p.r = gp_port_set_info (port, info); + if (params->p.r != GP_OK) { + gp_log(GP_LOG_ERROR,"port_reset", "port_set_info failed"); + break; + } + params->p.r = gp_port_open (port); + if (params->p.r != GP_OK) { + gp_log(GP_LOG_ERROR,"port_reset", "open failed %d", params->p.r); + break; + } + params->p.r = gp_port_reset (port); + gp_port_close (port); + gp_port_free (port); + break; + } + case ARG_MANUAL: + params->p.r = action_camera_manual (&gp_params); + break; + case ARG_RMDIR: + dissolve_filename (gp_params.folder, arg, &newfolder, &newfilename); + params->p.r = gp_camera_folder_remove_dir (gp_params.camera, + newfolder, newfilename, gp_params.context); + free (newfolder); free (newfilename); + break; + case ARG_NUM_FILES: + params->p.r = num_files_action (&gp_params); + break; + case ARG_MKDIR: + dissolve_filename (gp_params.folder, arg, &newfolder, &newfilename); + params->p.r = gp_camera_folder_make_dir (gp_params.camera, + newfolder, newfilename, gp_params.context); + free (newfolder); free (newfilename); + break; + case ARG_SHELL: + params->p.r = shell_prompt (&gp_params); + break; + case ARG_SHOW_EXIF: + /* Did the user specify a file or a range? */ + if (strchr (arg, '.')) { + dissolve_filename (gp_params.folder, arg, &newfolder, &newfilename); + params->p.r = print_exif_action (&gp_params, newfolder, newfilename); + free (newfolder); free (newfilename); + break; + } + params->p.r = for_each_file_in_range (&gp_params, + print_exif_action, arg); + break; + case ARG_SHOW_INFO: + /* Did the user specify a file or a range? */ + if (strchr (arg, '.')) { + dissolve_filename (gp_params.folder, arg, &newfolder, &newfilename); + params->p.r = print_info_action (&gp_params, newfolder, newfilename); + free (newfolder); free (newfilename); + break; + } + params->p.r = for_each_file_in_range (&gp_params, + print_info_action, arg); + break; + case ARG_SUMMARY: + params->p.r = action_camera_summary (&gp_params); + break; + case ARG_UPLOAD_FILE: + gp_params.multi_type = MULTI_UPLOAD; + /* Note: do not normalize folder/filename, as -u allows local filenames with paths */ + params->p.r = action_camera_upload_file (&gp_params, gp_params.folder, arg); + break; + case ARG_UPLOAD_METADATA: + gp_params.multi_type = MULTI_UPLOAD_META; + /* Note: do not normalize folder/filename, as -u-meta allows local filenames with paths */ + params->p.r = action_camera_upload_metadata (&gp_params, gp_params.folder, arg); + break; + case ARG_LIST_ALL_CONFIG: + params->p.r = list_all_config_action (&gp_params); + break; + case ARG_LIST_CONFIG: + params->p.r = list_config_action (&gp_params); + break; + case ARG_GET_CONFIG: + params->p.r = get_config_action (&gp_params, arg); + break; + case ARG_SET_CONFIG: { + char *name, *value; + + if (strchr (arg, '=') == NULL) { + params->p.r = GP_ERROR_BAD_PARAMETERS; + break; + } + name = strdup (arg); + value = strchr (name, '='); + *value = '\0'; + value++; + params->p.r = set_config_action (&gp_params, name, value); + free (name); + break; + } + case ARG_SET_CONFIG_INDEX: { + char *name, *value; + + if (strchr (arg, '=') == NULL) { + params->p.r = GP_ERROR_BAD_PARAMETERS; + break; + } + name = strdup (arg); + value = strchr (name, '='); + *value = '\0'; + value++; + params->p.r = set_config_index_action (&gp_params, name, value); + free (name); + break; + } + case ARG_SET_CONFIG_VALUE: { + char *name, *value; + + if (strchr (arg, '=') == NULL) { + params->p.r = GP_ERROR_BAD_PARAMETERS; + break; + } + name = strdup (arg); + value = strchr (name, '='); + *value = '\0'; + value++; + params->p.r = set_config_value_action (&gp_params, name, value); + free (name); + break; + } + case ARG_WAIT_EVENT: + params->p.r = action_camera_wait_event (&gp_params, DT_NO_DOWNLOAD, arg); + break; + case ARG_CAPTURE_TETHERED: + params->p.r = action_camera_wait_event (&gp_params, DT_DOWNLOAD, arg); + break; + case ARG_STORAGE_INFO: + params->p.r = print_storage_info (&gp_params); + break; + default: + break; + }; +} + + +/*! \brief Callback function called while parsing command line options. + * + * This callback function is called multiple times in multiple + * phases. That should probably become separate functions. + */ + +static void +cb_arg (poptContext __unused__ ctx, + enum poptCallbackReason __unused__ reason, + const struct poptOption *opt, const char *arg, + void *data) +{ + CallbackParams *params = (CallbackParams *) data; + + /* Check if we are only to query. */ + switch (params->type) { + case CALLBACK_PARAMS_TYPE_NONE: + /* do nothing */ + break; + case CALLBACK_PARAMS_TYPE_QUERY: + cb_arg_query (ctx, reason, opt, arg, params); + break; + case CALLBACK_PARAMS_TYPE_PREINITIALIZE: + cb_arg_preinit (ctx, reason, opt, arg, params); + break; + case CALLBACK_PARAMS_TYPE_INITIALIZE: + /* Check if we are only to initialize. */ + cb_arg_init (ctx, reason, opt, arg, params); + break; + case CALLBACK_PARAMS_TYPE_RUN: + cb_arg_run (ctx, reason, opt, arg, params); + break; + } +}; + + +static void +report_failure (int result, int argc, char **argv) +{ + if (result >= 0) + return; + + if (result == GP_ERROR_CANCEL) { + fprintf (stderr, _("Operation cancelled.\n")); + return; + } + if (result == -2000) { + fprintf (stderr, _("*** Error: No camera found. ***\n\n")); + } else { + fprintf (stderr, _("*** Error (%i: '%s') *** \n\n"), result, + gp_result_as_string (result)); + } + if (!debug_option_given) { + int n; + printf (_("For debugging messages, please use " + "the --debug option.\n" + "Debugging messages may help finding a " + "solution to your problem.\n" + "If you intend to send any error or " + "debug messages to the gphoto\n" + "developer mailing list " + ", please run\n" + "gphoto2 as follows:\n\n")); + + /* + * Print the exact command line to assist bugreporters + */ + printf (" env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt"); + for (n = 1; n < argc; n++) { + if (strchr(argv[n], ' ') == NULL) + printf(" %s",argv[n]); + else + printf(" \"%s\"",argv[n]); + } + printf ("\n\n"); + printf (_("Please make sure there is sufficient quoting " + "around the arguments.\n\n")); + } +} + +#define CR_MAIN(result) \ + do { \ + int r = (result); \ + \ + if (r < 0) { \ + report_failure (r, argc, argv); \ + \ + /* Run stop hook */ \ + gp_params_run_hook(&gp_params, "stop", NULL); \ + \ + gp_params_exit (&gp_params); \ + poptFreeContext(ctx); \ + return (EXIT_FAILURE); \ + } \ + } while (0) + + +#define GPHOTO2_POPT_CALLBACK \ + {NULL, '\0', POPT_ARG_CALLBACK, \ + (void *) &cb_arg, 0, (char *) &cb_params, NULL}, + +/*! main function: parse command line arguments and call actions + * + * Perhaps we should use the following code for parsing command line + * options: + + poptGetContext(NULL, argc, argv, poptOptions, 0); + while ((rc = poptGetNextOpt(poptcon)) > 0) { + switch (rc) { + ARG_FOO: + printf("foo = %s\n", poptGetOptArg(poptcon)); + break; + } + } + poptFreeContext(poptcon); + * + * Regardless of whether we do this or not, we should get rid of those + * legions of poptResetContext() calls followed by lots of + * poptGetNextOpt() calls. + * + * At least we should get rid of all those stages. Probably two stages + * are sufficient: + * -# look for --help, --debug, --debug-logfile, --quiet + * -# repeat this until command line has been used up + * -# go through all command line options + * -# ignore those from above + * -# if setting for command, store its value + * -# if command, execute command + */ + + +int +main (int argc, char **argv, char **envp) +{ + CallbackParams cb_params; + poptContext ctx; + int i, help_option_given = 0; + int usage_option_given = 0; + char *debug_logfile_name = NULL, *debug_loglevel = NULL; + const struct poptOption generalOptions[] = { + GPHOTO2_POPT_CALLBACK + {"help", '?', POPT_ARG_NONE, (void *) &help_option_given, ARG_HELP, + N_("Print complete help message on program usage"), NULL}, + {"usage", '\0', POPT_ARG_NONE, (void *) &usage_option_given, ARG_USAGE, + N_("Print short message on program usage"), NULL}, + {"debug", '\0', POPT_ARG_NONE, (void *) &debug_option_given, ARG_DEBUG, + N_("Turn on debugging"), NULL}, + {"debug-loglevel", '\0', POPT_ARG_STRING, (void *) &debug_loglevel, ARG_DEBUG_LOGLEVEL, + N_("Set debug level [error|debug|data|all]"), NULL}, + {"debug-logfile", '\0', POPT_ARG_STRING, (void *) &debug_logfile_name, ARG_DEBUG_LOGFILE, + N_("Name of file to write debug info to"), N_("FILENAME")}, + {"quiet", 'q', POPT_ARG_NONE, NULL, ARG_QUIET, + N_("Quiet output (default=verbose)"), NULL}, + {"hook-script", '\0', POPT_ARG_STRING, NULL, ARG_HOOK_SCRIPT, + N_("Hook script to call after downloads, captures, etc."), + N_("FILENAME")}, + POPT_TABLEEND + }; + const struct poptOption cameraOptions[] = { + GPHOTO2_POPT_CALLBACK + {"port", '\0', POPT_ARG_STRING, NULL, ARG_PORT, + N_("Specify device port"), N_("FILENAME")}, + {"speed", '\0', POPT_ARG_INT, NULL, ARG_SPEED, + N_("Specify serial transfer speed"), N_("SPEED")}, + {"camera", '\0', POPT_ARG_STRING, NULL, ARG_MODEL, + N_("Specify camera model"), N_("MODEL")}, + {"usbid", '\0', POPT_ARG_STRING, NULL, ARG_USBID, + N_("(expert only) Override USB IDs"), N_("USBIDs")}, + POPT_TABLEEND + }; + const struct poptOption infoOptions[] = { + GPHOTO2_POPT_CALLBACK + {"version", 'v', POPT_ARG_NONE, NULL, ARG_VERSION, + N_("Display version and exit"), NULL}, + {"list-cameras", '\0', POPT_ARG_NONE, NULL, ARG_LIST_CAMERAS, + N_("List supported camera models"), NULL}, + {"list-ports", '\0', POPT_ARG_NONE, NULL, ARG_LIST_PORTS, + N_("List supported port devices"), NULL}, + {"abilities", 'a', POPT_ARG_NONE, NULL, ARG_ABILITIES, + N_("Display the camera/driver abilities in the libgphoto2 database"), NULL}, + POPT_TABLEEND + }; + const struct poptOption configOptions[] = { + GPHOTO2_POPT_CALLBACK +#ifdef HAVE_CDK + {"config", '\0', POPT_ARG_NONE, NULL, ARG_CONFIG, + N_("Configure"), NULL}, +#endif + {"list-config", '\0', POPT_ARG_NONE, NULL, ARG_LIST_CONFIG, + N_("List configuration tree"), NULL}, + {"list-all-config", '\0', POPT_ARG_NONE, NULL, ARG_LIST_ALL_CONFIG, + N_("Dump full configuration tree"), NULL}, + {"get-config", '\0', POPT_ARG_STRING, NULL, ARG_GET_CONFIG, + N_("Get configuration value"), NULL}, + {"set-config", '\0', POPT_ARG_STRING, NULL, ARG_SET_CONFIG, + N_("Set configuration value or index in choices"), NULL}, + {"set-config-index", '\0', POPT_ARG_STRING, NULL, ARG_SET_CONFIG_INDEX, + N_("Set configuration value index in choices"), NULL}, + {"set-config-value", '\0', POPT_ARG_STRING, NULL, ARG_SET_CONFIG_VALUE, + N_("Set configuration value"), NULL}, + {"reset", '\0', POPT_ARG_NONE, NULL, ARG_RESET, + N_("Reset device port"), NULL}, + POPT_TABLEEND + }; + const struct poptOption captureOptions[] = { + GPHOTO2_POPT_CALLBACK + {"keep", '\0', POPT_ARG_NONE, NULL, ARG_KEEP, + N_("Keep images on camera after capturing"), NULL}, + {"keep-raw", '\0', POPT_ARG_NONE, NULL, ARG_KEEP_RAW, + N_("Keep RAW images on camera after capturing"), NULL}, + {"no-keep", '\0', POPT_ARG_NONE, NULL, ARG_NO_KEEP, + N_("Remove images from camera after capturing"), NULL}, + {"wait-event", '\0', POPT_ARG_STRING|POPT_ARGFLAG_OPTIONAL, NULL, ARG_WAIT_EVENT, + N_("Wait for event(s) from camera"), N_("COUNT, SECONDS, MILLISECONDS or MATCHSTRING")}, + {"wait-event-and-download", '\0', POPT_ARG_STRING|POPT_ARGFLAG_OPTIONAL, NULL, + ARG_CAPTURE_TETHERED, N_("Wait for event(s) from the camera and download new images"), N_("COUNT, SECONDS, MILLISECONDS or MATCHSTRING")}, + {"capture-preview", '\0', POPT_ARG_NONE, NULL, + ARG_CAPTURE_PREVIEW, + N_("Capture a quick preview"), NULL}, + {"show-preview", '\0', POPT_ARG_NONE, NULL, + ARG_SHOW_PREVIEW, + N_("Show a quick preview as Ascii Art"), NULL}, + {"bulb", 'B', POPT_ARG_INT, NULL, ARG_CAPTURE_BULB, + N_("Set bulb exposure time in seconds"), N_("SECONDS")}, + {"frames", 'F', POPT_ARG_INT, NULL, ARG_CAPTURE_FRAMES, + N_("Set number of frames to capture (default=infinite)"), N_("COUNT")}, + {"interval", 'I', POPT_ARG_INT, NULL, ARG_CAPTURE_INTERVAL, + N_("Set capture interval in seconds"), N_("SECONDS")}, + {"reset-interval", '\0', POPT_ARG_NONE, NULL, ARG_RESET_INTERVAL, + N_("Reset capture interval on signal (default=no)"), NULL}, + {"capture-image", '\0', POPT_ARG_NONE, NULL, + ARG_CAPTURE_IMAGE, N_("Capture an image"), NULL}, + {"trigger-capture", '\0', POPT_ARG_NONE, NULL, + ARG_TRIGGER_CAPTURE, N_("Trigger capture of an image"), NULL}, + {"capture-image-and-download", '\0', POPT_ARG_NONE, NULL, + ARG_CAPTURE_IMAGE_AND_DOWNLOAD, N_("Capture an image and download it"), NULL}, + {"capture-movie", '\0', POPT_ARG_STRING|POPT_ARGFLAG_OPTIONAL, NULL, + ARG_CAPTURE_MOVIE, N_("Capture a movie"), N_("COUNT or SECONDS")}, + {"capture-sound", '\0', POPT_ARG_NONE, NULL, + ARG_CAPTURE_SOUND, N_("Capture an audio clip"), NULL}, + {"capture-tethered", '\0', POPT_ARG_STRING|POPT_ARGFLAG_OPTIONAL, NULL, + ARG_CAPTURE_TETHERED, N_("Wait for shutter release on the camera and download"), N_("COUNT, SECONDS, MILLISECONDS or MATCHSTRING")}, + POPT_TABLEEND + }; + const struct poptOption fileOptions[] = { + GPHOTO2_POPT_CALLBACK + {"list-folders", 'l', POPT_ARG_NONE, NULL, ARG_LIST_FOLDERS, + N_("List folders in folder"), NULL}, + {"list-files", 'L', POPT_ARG_NONE, NULL, ARG_LIST_FILES, + N_("List files in folder"), NULL}, + {"mkdir", 'm', POPT_ARG_STRING, NULL, ARG_MKDIR, + N_("Create a directory"), N_("DIRNAME")}, + {"rmdir", 'r', POPT_ARG_STRING, NULL, ARG_RMDIR, + N_("Remove a directory"), N_("DIRNAME")}, + {"num-files", 'n', POPT_ARG_NONE, NULL, ARG_NUM_FILES, + N_("Display number of files"), NULL}, + {"get-file", 'p', POPT_ARG_STRING, NULL, ARG_GET_FILE, + N_("Get files given in range"), N_("RANGE")}, + {"get-all-files", 'P', POPT_ARG_NONE, NULL, ARG_GET_ALL_FILES, + N_("Get all files from folder"), NULL}, + {"get-thumbnail", 't', POPT_ARG_STRING, NULL, ARG_GET_THUMBNAIL, + N_("Get thumbnails given in range"), N_("RANGE")}, + {"get-all-thumbnails", 'T', POPT_ARG_NONE, 0, + ARG_GET_ALL_THUMBNAILS, + N_("Get all thumbnails from folder"), NULL}, + {"get-metadata", '\0', POPT_ARG_STRING, NULL, ARG_GET_METADATA, + N_("Get metadata given in range"), N_("RANGE")}, + {"get-all-metadata", '\0', POPT_ARG_NONE, NULL, ARG_GET_ALL_METADATA, + N_("Get all metadata from folder"), NULL}, + {"upload-metadata", '\0', POPT_ARG_STRING, NULL, ARG_UPLOAD_METADATA, + N_("Upload metadata for file"), NULL}, + {"get-raw-data", '\0', POPT_ARG_STRING, NULL, + ARG_GET_RAW_DATA, + N_("Get raw data given in range"), N_("RANGE")}, + {"get-all-raw-data", '\0', POPT_ARG_NONE, NULL, + ARG_GET_ALL_RAW_DATA, + N_("Get all raw data from folder"), NULL}, + {"get-audio-data", '\0', POPT_ARG_STRING, NULL, + ARG_GET_AUDIO_DATA, + N_("Get audio data given in range"), N_("RANGE")}, + {"get-all-audio-data", '\0', POPT_ARG_NONE, NULL, + ARG_GET_ALL_AUDIO_DATA, + N_("Get all audio data from folder"), NULL}, + {"delete-file", 'd', POPT_ARG_STRING, NULL, ARG_DELETE_FILE, + N_("Delete files given in range"), N_("RANGE")}, + {"delete-all-files", 'D', POPT_ARG_NONE, NULL, + ARG_DELETE_ALL_FILES, N_("Delete all files in folder (--no-recurse by default)"), NULL}, + {"upload-file", 'u', POPT_ARG_STRING, NULL, ARG_UPLOAD_FILE, + N_("Upload a file to camera"), N_("FILENAME")}, + {"filename", '\0', POPT_ARG_STRING, NULL, ARG_FILENAME, + N_("Specify a filename or filename pattern"), N_("FILENAME_PATTERN")}, + {"folder", 'f', POPT_ARG_STRING, NULL, ARG_FOLDER, + N_("Specify camera folder (default=\"/\")"), N_("FOLDER")}, + {"recurse", 'R', POPT_ARG_NONE, NULL, ARG_RECURSE, + N_("Recursion (default for download)"), NULL}, + {"no-recurse", '\0', POPT_ARG_NONE, NULL, ARG_NO_RECURSE, + N_("No recursion (default for deletion)"), NULL}, + {"new", '\0', POPT_ARG_NONE, NULL, ARG_NEW, + N_("Process new files only"), NULL}, + {"force-overwrite", '\0', POPT_ARG_NONE, NULL, + ARG_FORCE_OVERWRITE, N_("Overwrite files without asking"), NULL}, + {"skip-existing", '\0', POPT_ARG_NONE, NULL, + ARG_SKIP_EXISTING, N_("Skip existing files"), NULL}, + POPT_TABLEEND + }; + const struct poptOption miscOptions[] = { + GPHOTO2_POPT_CALLBACK + {"stdout", '\0', POPT_ARG_NONE, NULL, ARG_STDOUT, + N_("Send file to stdout"), NULL}, + {"stdout-size", '\0', POPT_ARG_NONE, NULL, ARG_STDOUT_SIZE, + N_("Print filesize before data"), NULL}, + {"auto-detect", '\0', POPT_ARG_NONE, NULL, ARG_AUTO_DETECT, + N_("List auto-detected cameras"), NULL}, + +#ifdef HAVE_LIBEXIF + {"show-exif", '\0', POPT_ARG_STRING, NULL, ARG_SHOW_EXIF, + N_("Show EXIF information of JPEG images"), NULL}, +#endif + {"show-info", '\0', POPT_ARG_STRING, NULL, ARG_SHOW_INFO, + N_("Show image information, like width, height, and capture time"), NULL}, + {"summary", '\0', POPT_ARG_NONE, NULL, ARG_SUMMARY, + N_("Show camera summary"), NULL}, + {"manual", '\0', POPT_ARG_NONE, NULL, ARG_MANUAL, + N_("Show camera driver manual"), NULL}, + {"about", '\0', POPT_ARG_NONE, NULL, ARG_ABOUT, + N_("About the camera driver manual"), NULL}, + {"storage-info", '\0', POPT_ARG_NONE, NULL, ARG_STORAGE_INFO, + N_("Show storage information"), NULL}, + {"shell", '\0', POPT_ARG_NONE, NULL, ARG_SHELL, + N_("gPhoto shell"), NULL}, + POPT_TABLEEND + }; + const struct poptOption options[] = { + GPHOTO2_POPT_CALLBACK + {NULL, '\0', POPT_ARG_INCLUDE_TABLE, (void *) &generalOptions, 0, + N_("Common options"), NULL}, + {NULL, '\0', POPT_ARG_INCLUDE_TABLE, (void *) &miscOptions, 0, + N_("Miscellaneous options (unsorted)"), NULL}, + {NULL, '\0', POPT_ARG_INCLUDE_TABLE, (void *) &infoOptions, 0, + N_("Get information on software and host system (not from the camera)"), NULL}, + {NULL, '\0', POPT_ARG_INCLUDE_TABLE, (void *) &cameraOptions, 0, + N_("Specify the camera to use"), NULL}, + {NULL, '\0', POPT_ARG_INCLUDE_TABLE, (void *) &configOptions, 0, + N_("Camera and software configuration"), NULL}, + {NULL, '\0', POPT_ARG_INCLUDE_TABLE, (void *) &captureOptions, 0, + N_("Capture an image from or on the camera"), NULL}, + {NULL, '\0', POPT_ARG_INCLUDE_TABLE, (void *) &fileOptions, 0, + N_("Downloading, uploading and manipulating files"), NULL}, + POPT_TABLEEND + }; + CameraAbilities a; + GPPortInfo info; + GPPortType type; + int result = GP_OK; + cb_params.type = CALLBACK_PARAMS_TYPE_NONE; + + /* For translation */ + setlocale (LC_ALL, ""); + bindtextdomain (PACKAGE, LOCALEDIR); + textdomain (PACKAGE); + + /* Create/Initialize the global variables before we first use + * them. And the signal handlers and popt callback functions + * do use them. */ + gp_params_init (&gp_params, envp); + + /* Figure out the width of the terminal and watch out for changes */ + signal_resize (0); +#ifdef SIGWINCH + signal (SIGWINCH, signal_resize); +#endif + + /* Prepare processing options. */ + ctx = poptGetContext (PACKAGE, argc, (const char **) argv, options, 0); + if (argc <= 1) { + poptPrintUsage (ctx, stdout, 0); + gp_params_exit (&gp_params); + poptFreeContext(ctx); + return (0); + } + + /* + * Do we need debugging output? While we are at it, scan the + * options for bad ones. + */ + poptResetContext (ctx); + while ((result = poptGetNextOpt (ctx)) >= 0); + if (result == POPT_ERROR_BADOPT) { + poptPrintUsage (ctx, stderr, 0); + gp_params_exit (&gp_params); + poptFreeContext(ctx); + return (EXIT_FAILURE); + } + if (help_option_given) { + poptPrintHelp(ctx, stdout, 0); + gp_params_exit (&gp_params); + poptFreeContext(ctx); + return 0; + } + if (usage_option_given) { + poptPrintUsage(ctx, stdout, 0); + gp_params_exit (&gp_params); + poptFreeContext(ctx); + return 0; + } + if (debug_option_given) { + CR_MAIN (debug_action (&gp_params, debug_loglevel, debug_logfile_name)); + } + + gp_log (GP_LOG_DEBUG, "main", "invoked with following arguments:"); + for (i=1;i= 0) && (poptGetNextOpt (ctx) >= 0)); + cb_params.type = CALLBACK_PARAMS_TYPE_INITIALIZE; + poptResetContext (ctx); + while ((cb_params.p.r >= 0) && (poptGetNextOpt (ctx) >= 0)); + /* Load default values for --filename and --hook-script if not + * explicitely specified + */ + if (!gp_params.filename) { + char buf[256]; + if (gp_setting_get("gphoto2","filename",buf)>=0) { + set_filename_action(&gp_params,buf); + } + } + if (!gp_params.hook_script) { + char buf[PATH_MAX]; + if (gp_setting_get("gphoto2","hook-script",buf)>=0) { + gp_params.hook_script = strdup(buf); + /* Run init hook */ + if (0!=gp_params_run_hook(&gp_params, "init", NULL)) { + fprintf(stdout, + "Hook script \"%s\" init failed. Aborting.\n", + gp_params.hook_script); + exit(3); + } + } + } + CR_MAIN (cb_params.p.r); + +#define CHECK_OPT(o) \ + if (!cb_params.p.q.found) { \ + cb_params.p.q.arg = (o); \ + poptResetContext (ctx); \ + while (poptGetNextOpt (ctx) >= 0); \ + } + + /* If we need a camera, make sure we've got one. */ + CR_MAIN (gp_camera_get_abilities (gp_params.camera, &a)); + CR_MAIN (gp_camera_get_port_info (gp_params.camera, &info)); + + /* Determine which command is given on command line */ + cb_params.type = CALLBACK_PARAMS_TYPE_QUERY; + cb_params.p.q.found = 0; + CHECK_OPT (ARG_ABILITIES); + CHECK_OPT (ARG_CAPTURE_IMAGE); + CHECK_OPT (ARG_CAPTURE_IMAGE_AND_DOWNLOAD); + CHECK_OPT (ARG_CAPTURE_MOVIE); + CHECK_OPT (ARG_CAPTURE_PREVIEW); + CHECK_OPT (ARG_SHOW_PREVIEW); + CHECK_OPT (ARG_CAPTURE_SOUND); + CHECK_OPT (ARG_CAPTURE_TETHERED); + CHECK_OPT (ARG_CONFIG); + CHECK_OPT (ARG_DELETE_ALL_FILES); + CHECK_OPT (ARG_DELETE_FILE); + CHECK_OPT (ARG_GET_ALL_AUDIO_DATA); + CHECK_OPT (ARG_GET_ALL_FILES); + CHECK_OPT (ARG_GET_ALL_RAW_DATA); + CHECK_OPT (ARG_GET_ALL_THUMBNAILS); + CHECK_OPT (ARG_GET_AUDIO_DATA); + CHECK_OPT (ARG_GET_CONFIG); + CHECK_OPT (ARG_GET_FILE); + CHECK_OPT (ARG_GET_RAW_DATA); + CHECK_OPT (ARG_GET_THUMBNAIL); + CHECK_OPT (ARG_LIST_CONFIG); + CHECK_OPT (ARG_LIST_FILES); + CHECK_OPT (ARG_LIST_FOLDERS); + CHECK_OPT (ARG_MANUAL); + CHECK_OPT (ARG_MKDIR); + CHECK_OPT (ARG_NUM_FILES); + CHECK_OPT (ARG_RESET); + CHECK_OPT (ARG_RMDIR); + CHECK_OPT (ARG_SET_CONFIG); + CHECK_OPT (ARG_SET_CONFIG_INDEX); + CHECK_OPT (ARG_SET_CONFIG_VALUE); + CHECK_OPT (ARG_SHELL); + CHECK_OPT (ARG_SHOW_EXIF); + CHECK_OPT (ARG_SHOW_INFO); + CHECK_OPT (ARG_STORAGE_INFO); + CHECK_OPT (ARG_SUMMARY); + CHECK_OPT (ARG_TRIGGER_CAPTURE); + CHECK_OPT (ARG_UPLOAD_FILE); + CHECK_OPT (ARG_UPLOAD_METADATA); + CHECK_OPT (ARG_WAIT_EVENT); + gp_port_info_get_type (info, &type); + if (cb_params.p.q.found && + (!strcmp (a.model, "") || (type == GP_PORT_NONE))) { + int count; + const char *model = NULL, *path = NULL; + CameraList *list; + char buf[1024]; + int use_auto = 1; + + gp_log (GP_LOG_DEBUG, "main", "The user has not specified " + "both a model and a port. Try to figure them out."); + + + _get_portinfo_list(&gp_params); + CR_MAIN (gp_list_new (&list)); /* no freeing below */ + CR_MAIN (gp_abilities_list_detect (gp_params_abilities_list(&gp_params), + gp_params.portinfo_list, + list, gp_params.context)); + CR_MAIN (count = gp_list_count (list)); + if (count == 1) { + /* Exactly one camera detected */ + CR_MAIN (gp_list_get_name (list, 0, &model)); + CR_MAIN (gp_list_get_value (list, 0, &path)); + if (a.model[0] && strcmp(a.model,model)) { + CameraAbilities alt; + int m; + + CR_MAIN (m = gp_abilities_list_lookup_model ( + gp_params_abilities_list(&gp_params), + model)); + CR_MAIN (gp_abilities_list_get_abilities ( + gp_params_abilities_list(&gp_params), + m, &alt)); + + if ((a.port == GP_PORT_USB) && (alt.port == GP_PORT_USB)) { + if ( (a.usb_vendor == alt.usb_vendor) && + (a.usb_product == alt.usb_product) + ) + use_auto = 0; + } + } + + if (use_auto) { + CR_MAIN (action_camera_set_model (&gp_params, model)); + } + CR_MAIN (action_camera_set_port (&gp_params, path)); + + } else if (!count) { + int ret; + /* + * No camera detected. Have a look at the settings. + * Ignore errors here, it might be a serial one. + */ + if (gp_setting_get ("gphoto2", "model", buf) >= 0) + action_camera_set_model (&gp_params, buf); + if (gp_setting_get ("gphoto2", "port", buf) >= 0) + action_camera_set_port (&gp_params, buf); + ret = gp_camera_init (gp_params.camera, gp_params.context); + if (ret != GP_OK) { + if (ret == GP_ERROR_BAD_PARAMETERS) + ret = -2000; + CR_MAIN (ret); + } + } else { + /* If --port override, search the model with the same port. */ + if (type != GP_PORT_NONE) { + int i; + char *xpath, *xname; + + gp_port_info_get_path (info, &xpath); + gp_port_info_get_name (info, &xname); + gp_log (GP_LOG_DEBUG, "gphoto2", "Looking for port ...\n"); + gp_log (GP_LOG_DEBUG, "gphoto2", "info.type = %d\n", type); + gp_log (GP_LOG_DEBUG, "gphoto2", "info.name = %s\n", xname); + gp_log (GP_LOG_DEBUG, "gphoto2", "info.path = %s\n", xpath); + + for (i=0;i= 0); + if (!cb_params.p.q.found) { + cb_params.p.q.arg = ARG_DELETE_ALL_FILES; + poptResetContext (ctx); + while (poptGetNextOpt (ctx) >= 0); + } + if (cb_params.p.q.found) { + cb_params.p.q.found = 0; + cb_params.p.q.arg = ARG_RECURSE; + poptResetContext (ctx); + while (poptGetNextOpt (ctx) >= 0); + if (!cb_params.p.q.found) + gp_params.flags &= ~FLAGS_RECURSE; + } + + signal (SIGINT, signal_exit); + signal (SIGTERM, signal_exit); + + /* If we are told to be quiet, be so. * + cb_params.type = CALLBACK_PARAMS_TYPE_QUERY; + cb_params.p.q.found = 0; + cb_params.p.q.arg = ARG_QUIET; + poptResetContext (ctx); + while (poptGetNextOpt (ctx) >= 0); + if (cb_params.p.q.found) { + gp_params.flags |= FLAGS_QUIET; + } + */ + + /* Run startup hook */ + gp_params_run_hook(&gp_params, "start", NULL); + + /* Go! */ + cb_params.type = CALLBACK_PARAMS_TYPE_RUN; + poptResetContext (ctx); + cb_params.p.r = GP_OK; + while ((cb_params.p.r >= GP_OK) && (poptGetNextOpt (ctx) >= 0)); + + switch (gp_params.multi_type) { + case MULTI_UPLOAD: { + const char *arg; + + while ((cb_params.p.r >= GP_OK) && (NULL != (arg = poptGetArg (ctx)))) { + CR_MAIN (action_camera_upload_file (&gp_params, gp_params.folder, arg)); + } + break; + } + case MULTI_UPLOAD_META: { + const char *arg; + + while ((cb_params.p.r >= GP_OK) && (NULL != (arg = poptGetArg (ctx)))) { + CR_MAIN (action_camera_upload_metadata (&gp_params, gp_params.folder, arg)); + } + break; + } + case MULTI_DELETE: { + const char *arg; + + while ((cb_params.p.r >= GP_OK) && (NULL != (arg = poptGetArg (ctx)))) { + CR_MAIN (delete_file_action (&gp_params, gp_params.folder, arg)); + } + break; + } + case MULTI_DOWNLOAD: { + const char *arg; + + while ((cb_params.p.r >= GP_OK) && (NULL != (arg = poptGetArg (ctx)))) { + CR_MAIN (get_file_common (arg, gp_params.download_type )); + } + break; + } + default: + break; + } + + CR_MAIN (cb_params.p.r); + + /* Run stop hook */ + gp_params_run_hook(&gp_params, "stop", NULL); + + /* FIXME: Env var checks (e.g. for Windows, OS/2) should happen before + * we load the camlibs */ + + gp_params_exit (&gp_params); + poptFreeContext(ctx); + return (EXIT_SUCCESS); +} + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/main.h b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/main.h new file mode 100644 index 00000000..18f1044c --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/main.h @@ -0,0 +1,59 @@ +/* main.h + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __MAIN_H__ +#define __MAIN_H__ + +#include +#include +#include + +#define MAX_IMAGE_NUMBER 65536 + +#ifdef WIN32 +#include +#define VERSION "2" +#endif + +void cli_error_print(char *format, ...); + +int camera_file_exists (Camera *camera, GPContext *context, + const char *folder, const char *filename, + CameraFileType type); +int save_file_to_file (Camera *camera, GPContext *context, Flags flags, + const char *folder, const char *filename, + CameraFileType type); +int save_camera_file_to_file (const char *folder, const char *fn, CameraFileType type, CameraFile *file, const char *tmpname); +int capture_generic (CameraCaptureType type, const char *name, int download); +int get_file_common (const char *arg, CameraFileType type ); + + + +int trigger_capture (void); + +#endif /* __MAIN_H__ */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/range.c b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/range.c new file mode 100644 index 00000000..fc3ecb85 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/range.c @@ -0,0 +1,238 @@ +/* range.c + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "i18n.h" +#include "main.h" +#include "range.h" + +#include +#include +#include + +/* + str_grab_nat() - Grab positive decimal integer (natural number) from str + starting with pos byte. On return pos points to the first byte after + grabbed integer. +*/ + +static int +str_grab_nat(const char *str, int *pos) +{ + int result, old_pos = *pos; + char *buf; + + if (!(buf = (char*)strdup(str))) /* we can not modify str */ + return -1; + + *pos += strspn(&buf[*pos], "0123456789"); + buf[*pos] = 0; + result = atoi(&buf[old_pos]); + free(buf); + return result; +} + +/* + parse_range() - Intentionally, parse list of images given in range. Syntax + of range is: + ( m | m-n ) { , ( m | m-n ) } + where m,n are decimal integers with 1 <= m <= n <= MAX_IMAGE_NUMBER. + Ranges are XOR (exclusive or), so that + 1-5,3,7 + is equivalent to + 1,2,4,5,7 + Conversion from 1-based to 0-based numbering is performed, that is, + n-th image corresponds to (n-1)-th byte in index. The value of + index[n] is either 0 or 1. 0 means not selected, 1 selected. + index passed to parse_range() must be an array of MAX_IMAGE_NUMBER + char-s set to 0 (use memset() or bzero()). +*/ + +static int +parse_range_rec (const char *range, unsigned int start, char *index, + GPContext *context) +{ + int i = 0, l = -1, r = -1; + unsigned int j; + char buf[1024]; + + do { + strncpy (buf, range, sizeof (buf) - 1); + buf[sizeof (buf) - 1] = 0; + strncat (buf, "\n", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + + switch (range[start + i]) { + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + for (j = 0; j < start + i; j++) { + strncat (buf, " ", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + } + l = str_grab_nat (range + start, &i); + for (; j < start + i; j++) { + strncat (buf, "^", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + } + + if (l <= 0) { + gp_context_error (context, _("%s\n" + "Image IDs must be a number greater " + "than zero."), buf); + return (GP_ERROR_BAD_PARAMETERS); + } + if (l > MAX_IMAGE_NUMBER) { + gp_context_error (context, _("%s\n" + "Image ID %i too high."), buf, l); + return (GP_ERROR_BAD_PARAMETERS); + } + break; + + case '-' : + + /* If we already have r, then something is wrong. */ + if (r > 0) { + for (j = 0; j < start + i; j++) { + strncat (buf, " ", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + } + strncat (buf, "^", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + gp_context_error (context, _("%s\n" + "Ranges must be separated by ','."), + buf); + return (GP_ERROR_BAD_PARAMETERS); + } + + /* If we have not l, then something is wrong, too. */ + if (l <= 0) { + for (j = 0; j < start + i; j++) { + strncat (buf, " ", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + } + strncat (buf, "^", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + gp_context_error (context, _("%s\n" + "Ranges need to start with " + "a number."), buf); + return (GP_ERROR_BAD_PARAMETERS); + } + + i++; + for (j = 0; j < start + i; j++) { + strncat (buf, " ", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + } + r = str_grab_nat (range + start, &i); + for (; j < start + i; j++) { + strncat (buf, "^", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + } + buf[sizeof (buf) - 1] = 0; + if (r <= 0) { + gp_context_error (context, _("%s\n" + "Image IDs must be a number greater " + "than zero."), buf); + return (GP_ERROR_BAD_PARAMETERS); + } + if (r > MAX_IMAGE_NUMBER) { + gp_context_error (context, _("%s\n" + "Image ID %i too high."), buf, r); + return (GP_ERROR_BAD_PARAMETERS); + } + break; + + case '\0' : + break; + + default : + for (j = 0; j < start + i; j++) { + strncat (buf, " ", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + } + strncat (buf, "^", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + gp_context_error (context, _("%s\n" + "Unexpected " + "character '%c'."), buf, range[start + i]); + return (GP_ERROR_BAD_PARAMETERS); + break; + } + } while ((range[start + i] != '\0') && + (range[start + i] != ',')); + + if (i) { + if (0 < r) { /* update range of bytes */ + if (r < l) { + strncpy (buf, range, sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + strncat (buf, "\n", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + for (j = 0; j < start; j++) { + strncat (buf, " ", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + } + for (; j < start + i; j++) { + strncat (buf, "^", sizeof (buf) - strlen (buf) - 1); + buf[sizeof (buf) - 1] = 0; + } + gp_context_error (context, _("%s\n" + "Decreasing ranges " + "are not allowed. You specified a " + "range from %i to %i."), buf, l, r); + return (GP_ERROR_BAD_PARAMETERS); + } + + for (j = l; j <= (unsigned long) r; j++) + index[j - 1] ^= 1; /* convert to 0-based numbering */ + } else /* update single byte */ + index[l - 1] ^= 1; /* convert to 0-based numbering */ + } + + /* + * If there is another range, parse it. + */ + if (range[start + i] == ',') + return parse_range_rec (range, start + i + 1, index, context); + + return (GP_OK); +} + +int +parse_range (const char *range, char *index, GPContext *context) +{ + return (parse_range_rec (range, 0, index, context)); +} + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/range.h b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/range.h new file mode 100644 index 00000000..762a4156 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/range.h @@ -0,0 +1,36 @@ +/* range.h + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __RANGE_H__ +#define __RANGE_H__ + +#include + +int parse_range (const char *range, char *index, GPContext *context); + +#endif /* __RANGE_H__ */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/shell.c b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/shell.c new file mode 100644 index 00000000..a2d495ec --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/shell.c @@ -0,0 +1,1030 @@ +/* shell.c: + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "actions.h" +#include "globals.h" +#include "i18n.h" +#include "main.h" +#include "shell.h" + +#include +#include +#include +#include + +#ifdef HAVE_UNISTD_H +# include +#endif + +#ifdef HAVE_RL +# include +# include +#endif + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + +#ifdef __GNUC__ +#define __unused__ __attribute__((unused)) +#else +#define __unused__ +#endif + +#define CHECK(result) {int r=(result);if(r<0) return(r);} +#define CL(result,list) {int r=(result);if(r<0) {gp_list_free(list);return(r);}} +#define CHECK_CONT(result) \ +{ \ + int r = (result); \ + \ + if (r < 0) { \ + if (r == GP_ERROR_CANCEL) { \ + glob_cancel = 0; \ + } else { \ + printf (_("*** Error (%i: '%s') ***"), \ + r, gp_result_as_string (r)); \ + putchar ('\n'); \ + } \ + } \ +} + + +static GPParams *p = NULL; +static char cwd[1024]; + +/* Forward declarations */ +static int shell_cd (Camera *, const char *); +static int shell_lcd (Camera *, const char *); +static int shell_exit (Camera *, const char *); +static int shell_get (Camera *, const char *); +static int shell_put (Camera *, const char *); +static int shell_get_thumbnail (Camera *, const char *); +static int shell_get_raw (Camera *, const char *); +static int shell_del (Camera *, const char *); +static int shell_help (Camera *, const char *); +static int shell_ls (Camera *, const char *); +static int shell_exit (Camera *, const char *); +static int shell_show_info (Camera *, const char *); +#ifdef HAVE_LIBEXIF +static int shell_show_exif (Camera *, const char *); +#endif +static int shell_list_config (Camera *, const char *); +static int shell_get_config (Camera *, const char *); +static int shell_set_config (Camera *, const char *); +static int shell_set_config_index (Camera *, const char *); +static int shell_set_config_value (Camera *, const char *); +static int shell_capture_image (Camera *, const char *); +static int shell_trigger_capture (Camera *, const char *); +static int shell_capture_tethered (Camera *, const char *); +static int shell_capture_image_and_download (Camera *, const char *); +static int shell_capture_preview (Camera *, const char *); +static int shell_mkdir (Camera *, const char *); +static int shell_rmdir (Camera *, const char *); +static int shell_wait_event (Camera *, const char *); +static int shell_summary (Camera *, const char *); +static int shell_storage_info (Camera *, const char *); + +#define MAX_FOLDER_LEN 1024 +#define MAX_FILE_LEN 1024 + +static int shell_construct_path (const char *folder_orig, const char *rel_path, + char *dest_folder, char *dest_filename); + +typedef int (* ShellFunction) (Camera *camera, const char *arg); + +typedef struct _ShellFunctionTable ShellFunctionTable; +static const struct _ShellFunctionTable { + const char *command; + ShellFunction function; + const char *description; + const char *description_arg; + unsigned char arg_required; +} func[] = { + {"cd", shell_cd, N_("Change to a directory on the camera"), + N_("directory"), 1}, + {"lcd", shell_lcd, N_("Change to a directory on the local drive"), + N_("directory"), 0}, + {"exit", shell_exit, N_("Exit the gPhoto shell"), NULL, 0}, + {"get", shell_get, N_("Download a file"), N_("[directory/]filename"), 1}, + {"put", shell_put, N_("Upload a file"), N_("[directory/]filename"), 1}, + {"get-thumbnail", shell_get_thumbnail, N_("Download a thumbnail"), + N_("[directory/]filename"), 1}, + {"get-raw", shell_get_raw, N_("Download raw data"), + N_("[directory/]filename"), 1}, + {"show-info", shell_show_info, N_("Show image information, like width, height, and capture time"), + N_("[directory/]filename"), 1}, + {"delete", shell_del, N_("Delete"), N_("[directory/]filename"), 1}, + {"mkdir", shell_mkdir, N_("Create Directory"), N_("directory"), 1}, + {"rmdir", shell_rmdir, N_("Remove Directory"), N_("directory"), 1}, +#ifdef HAVE_LIBEXIF + {"show-exif", shell_show_exif, N_("Show EXIF information of JPEG images"), + N_("[directory/]filename"), 1}, +#endif + {"help", shell_help, N_("Displays command usage"), + N_("[command]"), 0}, + {"ls", shell_ls, N_("List the contents of the current directory"), + N_("[directory/]"), 0}, + {"summary", shell_summary, N_("Show camera summary"), NULL, 0}, + {"storage-info", shell_storage_info, N_("Show storage information"), NULL, 0}, + {"list-config", shell_list_config, N_("List configuration variables"), NULL, 0}, + {"get-config", shell_get_config, N_("Get configuration variable"), N_("name"), 1}, + {"set-config", shell_set_config, N_("Set configuration variable"), N_("name=value"), 1}, + {"set-config-index", shell_set_config_index, N_("Set configuration variable index"), N_("name=valueindex"), 1}, + {"set-config-value", shell_set_config_value, N_("Set configuration variable"), N_("name=value"), 1}, + {"trigger-capture", shell_trigger_capture, N_("Triggers the capture of a single image"), NULL, 0}, + {"capture-image", shell_capture_image, N_("Capture a single image"), NULL, 0}, + {"capture-image-and-download", shell_capture_image_and_download, N_("Capture a single image and download it"), NULL, 0}, + {"capture-preview", shell_capture_preview, N_("Capture a preview image"), NULL, 0}, + {"wait-event", shell_wait_event, N_("Wait for an event"), N_("count or seconds"), 0}, + {"capture-tethered", shell_capture_tethered, N_("Wait for images to be captured and download it"), N_("count or seconds"), 0}, + {"wait-event-and-download", shell_capture_tethered, N_("Wait for events and images to be captured and download it"), N_("count or seconds"), 0}, + {"q", shell_exit, N_("Exit the gPhoto shell"), NULL, 0}, + {"quit", shell_exit, N_("Exit the gPhoto shell"), NULL, 0}, + {"?", shell_help, N_("Displays command usage"), N_("[command]"), 0}, + {"", NULL, NULL, NULL, 0} +}; + +/* Local globals */ +#define SHELL_PROMPT "gphoto2: {%s} %s> " +static int shell_done = 0; + +static unsigned int +shell_arg_count (const char *args) +{ + size_t x=0; + int in_arg=0; + unsigned int count=0; + + while (x < strlen (args)) { + if ((!isspace((int)(args[x]))) && (!in_arg)) { + in_arg = 1; + count++; + } + if ((isspace((int)(args[x]))) && (in_arg)) + in_arg = 0; + x++; + } + + return (count); +} + +static char * +shell_read_line (void) +{ + char prompt[1024+70], buf[1024+50], *line; +#ifndef HAVE_RL + char *tmp; +#endif + + if (p->flags & FLAGS_QUIET) + snprintf (prompt, sizeof (prompt), SHELL_PROMPT, "\0", "\0"); + else { + if (strlen (cwd) > 25) { + strncpy (buf, "...", sizeof (buf)); + strncat (buf, &cwd[strlen (cwd) - 22], + sizeof (buf) - strlen(buf) - 1); + snprintf (prompt, sizeof (prompt), SHELL_PROMPT, buf, + p->folder); + } else + snprintf (prompt, sizeof (prompt), SHELL_PROMPT, + cwd, p->folder); + } +#ifdef HAVE_RL + line = readline (prompt); + if (line) + add_history (line); + else + return (NULL); +#else + line = malloc (1024); + if (!line) + return (NULL); + fputs (prompt, stdout); + fflush(stdout); + tmp = fgets (line, 1023, stdin); + if (tmp == NULL) + return (NULL); + line[strlen (line) - 1] = '\0'; +#endif + return (line); +} + +static int +shell_arg (const char *args, unsigned int arg_num, char *arg) +{ + size_t x=0, y=0; + unsigned int count=0; + int in_arg=0, copy=0; + + if (arg_num > shell_arg_count(args)-1) + return (GP_ERROR); + + while (x < strlen(args)) { /* Edge-triggered */ + if ((!isspace((int)(args[x]))) && (!in_arg)) { + in_arg = 1; + if (count == arg_num) + copy = 1; + count++; + } + if ((isspace((int)(args[x]))) && (in_arg)) { + copy = 0; + in_arg = 0; + } + + if (copy) /* Copy over the chars */ + arg[y++] = args[x]; + x++; + } + + arg[y] = 0; /* null-terminate the arg */ + + return (GP_OK); +} + +#ifdef HAVE_RL + +static char * +shell_command_generator (const char *text, int state) +{ + static int x, len; + + /* If this is a new command to complete, reinitialize */ + if (!state) { + x = 0; + len = strlen (text); + } + + /* Search 'text' */ + for (; func[x].function; x++) + if (!strncmp (func[x].command, text, len)) + break; + if (func[x].function) + return (strdup (func[x++].command)); + + return (NULL); +} + +static char * +shell_path_generator (const char *text, int state) +{ + static int x; + const char *slash, *name; + CameraList *list; + int file_count, folder_count, r, len; + char folder[MAX_FOLDER_LEN], basename[MAX_FILE_LEN], *path; + +#if 0 + printf ("shell_path_generator ('%s', %i)\n", text, state); +#endif + + r = shell_construct_path (p->folder, text, folder, basename); + if (r < 0) + return (NULL); + len = strlen (basename); + +#if 0 + printf ("Searching for '%s' in '%s'...\n", basename, folder); +#endif + + /* If this is a new path to complete, reinitialize */ + if (!state) + x = 0; + + r = gp_list_new (&list); + if (r < 0) + return (NULL); + /* First search for matching file */ + r = gp_camera_folder_list_files (p->camera, folder, list, p->context); + if (r < 0) { + gp_list_free (list); + return (NULL); + } + file_count = gp_list_count (list); + if (file_count < 0) { + gp_list_free (list); + return (NULL); + } + if (x < file_count) { + for (; x < file_count; x++) { + r = gp_list_get_name (list, x, &name); + if (r < 0) + return (NULL); + if (!strncmp (name, basename, len)) { + x++; + slash = strrchr (text, '/'); + if (!slash) { + path = malloc (strlen (name) + 2); + if (!path) + return (NULL); + strcpy (path, name); + strcat (path, " "); + } else { + path = malloc (slash - text + 1 + strlen (name) + 2); + if (!path) + return (NULL); + memset (path, 0, slash - text + 1 + strlen (name) + 2); + strncpy (path, text, slash - text); + strcat (path, "/"); + strcat (path, name); + strcat (path, " "); + } + return (path); + } + } + } + + /* Ok, we listed all matching files. Now, list matching folders. */ + r = gp_camera_folder_list_folders (p->camera, folder, list, + p->context); + if (r < 0) { + gp_list_free (list); + return (NULL); + } + folder_count = gp_list_count (list); + if (folder_count < 0) { + gp_list_free (list); + return (NULL); + } + if (x - file_count < folder_count) { + for (; x - file_count < folder_count; x++) { + r = gp_list_get_name (list, x - file_count, &name); + if (r < 0) { + gp_list_free (list); + return (NULL); + } + if (!strncmp (name, basename, len)) { + x++; + slash = strrchr (text, '/'); + if (!slash) { + path = malloc (strlen (name) + 2); + if (!path) + return (NULL); + strcpy (path, name); + strcat (path, "/"); + } else { + path = malloc (slash - text + 1 + strlen (name) + 2); + if (!path) + return (NULL); + memset (path, 0, slash - text + 1 + strlen (name) + 2); + strncpy (path, text, slash - text); + strcat (path, "/"); + strcat (path, name); + strcat (path, "/"); + } + gp_list_free (list); + return (path); + } + } + gp_list_free (list); + return (NULL); + } + + gp_list_free (list); + return (NULL); +} + +static char ** +shell_completion_function (const char *text, int start, int end) +{ + char **matches = NULL; + char *current; + + if (!text) + return (NULL); + + if (!start) { + /* Complete command */ + matches = rl_completion_matches (text, shell_command_generator); + } else { + current = strdup (rl_copy_text (0, end)); + + /* Complete local path? */ + if (!strncmp (current, "lcd", strlen ("lcd"))) { + free (current); + return (NULL); + } + free (current); + + /* Complete remote path */ + matches = rl_completion_matches (text, shell_path_generator); + } + + return (matches); +} +#endif /* HAVE_RL */ + +int +shell_prompt (GPParams *params) +{ + int x; + char cmd[1024], arg[1024], *line; + + /* The stupid readline functions need that global variable. */ + p = params; + + if (!getcwd (cwd, 1023)) + strcpy (cwd, "./"); + +#ifdef HAVE_RL + rl_attempted_completion_function = shell_completion_function; + rl_completion_append_character = '\0'; +#endif + + while (!shell_done && !glob_cancel) { + line = shell_read_line (); + if (line == NULL) { + /* quit shell on EOF or input error */ + printf("\n"); + fflush(stdout); + break; + } +#ifdef HAVE_UNISTD_H + if (!isatty(fileno(stdin))) { + /* if non-interactive input, the command has not been + * printed yet, so we do that here */ + printf("%s\n", line); + fflush(stdout); + } +#endif + + /* If we don't have any command, start from the beginning */ + if (shell_arg_count (line) <= 0) { + free (line); + continue; + } + + shell_arg (line, 0, cmd); + strcpy (arg, &line[strlen (cmd)]); + free (line); + + /* Search the command */ + for (x = 0; func[x].function; x++) + if (!strcmp (cmd, func[x].command)) + break; + if (!func[x].function) { + cli_error_print (_("Invalid command.")); + continue; + } + + /* + * If the command requires an argument, complain if this + * argument is not given. + */ + if (func[x].arg_required && !shell_arg_count (arg)) { + printf (_("The command '%s' requires " + "an argument."), cmd); + putchar ('\n'); + continue; + } + + /* Execute the command */ + CHECK_CONT (func[x].function (p->camera, arg)); + } + + return (GP_OK); +} + +static int +shell_construct_path (const char *folder_orig, const char *rel_path, + char *dest_folder, char *dest_filename) +{ + const char *slash; + + if (!folder_orig || !rel_path || !dest_folder) + return (GP_ERROR); + + memset (dest_folder, 0, MAX_FOLDER_LEN); + if (dest_filename) + memset (dest_filename, 0, MAX_FILE_LEN); + + /* Skip leading spaces */ + while (rel_path[0] == ' ') + rel_path++; + + /* + * Consider folder_orig only if we are really given a relative + * path. + */ + if (rel_path[0] != '/') + strncpy (dest_folder, folder_orig, MAX_FOLDER_LEN); + else { + while (rel_path[0] == '/') + rel_path++; + strncpy (dest_folder, "/", MAX_FOLDER_LEN); + } + + while (rel_path) { + if (!strncmp (rel_path, "./", 2)) { + rel_path += MIN (strlen (rel_path), 2); + continue; + } + if (!strncmp (rel_path, "../", 3) || !strcmp (rel_path, "..")) { + rel_path += MIN (3, strlen (rel_path)); + + /* Go up one folder */ + slash = strrchr (dest_folder, '/'); + if (!slash) { + cli_error_print (_("Invalid path.")); + return (GP_ERROR); + } + dest_folder[slash - dest_folder] = '\0'; + if (!strlen (dest_folder)) + strcpy (dest_folder, "/"); + continue; + } + + slash = strchr (rel_path, '/'); + if (strcmp (rel_path, "") && (slash || !dest_filename)) { + + /* + * We need to go down one folder. Append a + * trailing slash + */ + if (dest_folder[strlen (dest_folder) - 1] != '/') + strncat (dest_folder, "/", MAX_FOLDER_LEN - strlen(dest_folder) - 1); + } + if (slash) { + strncat (dest_folder, rel_path, + MIN (MAX_FOLDER_LEN - strlen(dest_folder) - 1, slash - rel_path)); + rel_path = slash + 1; + } else { + + /* Done */ + if (dest_filename) + strncpy (dest_filename, rel_path, + MAX_FILE_LEN); + else + strncat (dest_folder, rel_path, MAX_FILE_LEN); + break; + } + } + + return (GP_OK); +} + +static int +shell_lcd (Camera __unused__ *camera, const char *arg) +{ + char new_cwd[MAX_FOLDER_LEN]; + int arg_count = shell_arg_count (arg); + + if (!arg_count) { + if (!getenv ("HOME")) { + cli_error_print (_("Could not find home directory.")); + return (GP_OK); + } + strncpy (new_cwd, getenv ("HOME"), sizeof(new_cwd)-1); + new_cwd[sizeof(new_cwd)-1] = '\0'; + } else + shell_construct_path (cwd, arg, new_cwd, NULL); + + if (chdir (new_cwd) < 0) { + cli_error_print (_("Could not change to " + "local directory '%s'."), new_cwd); + } else { + printf (_("Local directory now '%s'."), new_cwd); + putchar ('\n'); + strcpy (cwd, new_cwd); + } + + return (GP_OK); +} + +static int +shell_cd (Camera __unused__ *camera, const char *arg) +{ + char folder[MAX_FOLDER_LEN]; + CameraList *list; + int arg_count = shell_arg_count (arg); + + if (!arg_count) + return GP_OK; + + /* shell_arg(arg, 0, arg_dir); */ + + if (strlen (arg) > 1023) { + cli_error_print ("Folder value is too long"); + return (GP_ERROR); + } + + /* Get the new folder value */ + shell_construct_path (p->folder, arg, folder, NULL); + + CHECK (gp_list_new (&list)); + + CL (gp_camera_folder_list_folders (p->camera, folder, list, + p->context), list); + gp_list_free (list); + free (p->folder); + p->folder = malloc (sizeof (char) * (strlen (folder) + 1)); + if (!p->folder) + return (GP_ERROR_NO_MEMORY); + strcpy (p->folder, folder); + printf (_("Remote directory now '%s'."), p->folder); + putchar ('\n'); + return (GP_OK); +} + +static int +shell_ls (Camera __unused__ *camera, const char *arg) +{ + CameraList *list; + char buf[1024], folder[MAX_FOLDER_LEN]; + int x, y=1; + int arg_count = shell_arg_count(arg); + const char *name; + + if (arg_count) { + shell_construct_path (p->folder, arg, folder, NULL); + } else { + strcpy (folder, p->folder); + } + + CHECK (gp_list_new (&list)); + CL (gp_camera_folder_list_folders (p->camera, folder, list, + p->context), list); + + if (p->flags & FLAGS_QUIET) + printf ("%i\n", gp_list_count (list)); + + for (x = 1; x <= gp_list_count (list); x++) { + CL (gp_list_get_name (list, x - 1, &name), list); + if (p->flags & FLAGS_QUIET) + printf ("%s\n", name); + else { + sprintf (buf, "%s/", name); + printf ("%-20s", buf); + if (y++ % 4 == 0) + putchar ('\n'); + } + } + + CL (gp_camera_folder_list_files (p->camera, folder, list, + p->context), list); + + if (p->flags & FLAGS_QUIET) + printf("%i\n", gp_list_count(list)); + + for (x = 1; x <= gp_list_count (list); x++) { + gp_list_get_name (list, x - 1, &name); + if (p->flags & FLAGS_QUIET) + printf ("%s\n", name); + else { + printf ("%-20s", name); + if (y++ % 4 == 0) + putchar ('\n'); + } + } + if ((p->flags & FLAGS_QUIET) == 0 && (y % 4 != 1)) + putchar ('\n'); + + gp_list_free (list); + return (GP_OK); +} + +static int +shell_file_action (Camera __unused__ *camera, GPContext __unused__ *context, + const char *folder, + const char *args, FileAction action) +{ + char arg[1024]; + unsigned int x; + char dest_folder[MAX_FOLDER_LEN], dest_filename[MAX_FILE_LEN]; + + for (x = 0; x < shell_arg_count (args); x++) { + CHECK (shell_arg (args, x, arg)); + CHECK (shell_construct_path (folder, arg, + dest_folder, dest_filename)); + CHECK (action (p, dest_folder, dest_filename)); + } + + return (GP_OK); +} + +static int +shell_get_thumbnail (Camera __unused__ *camera, const char *arg) +{ + CHECK (shell_file_action (p->camera, p->context, p->folder, arg, + save_thumbnail_action)); + + return (GP_OK); +} + +static int +shell_get (Camera __unused__ *camera, const char *arg) +{ + CHECK (shell_file_action (p->camera, p->context, p->folder, arg, + save_file_action)); + + return (GP_OK); +} + +static int +shell_get_raw (Camera __unused__ *camera, const char *arg) +{ + CHECK (shell_file_action (p->camera, p->context, p->folder, arg, + save_raw_action)); + + return (GP_OK); +} + +static int +shell_del (Camera __unused__ *camera, const char *arg) +{ + CHECK (shell_file_action (p->camera, p->context, p->folder, arg, + delete_file_action)); + + return (GP_OK); +} + +#ifdef HAVE_LIBEXIF +static int +shell_show_exif (Camera __unused__ *camera, const char *arg) +{ + CHECK (shell_file_action (p->camera, p->context, p->folder, arg, + print_exif_action)); + + return (GP_OK); +} +#endif + +static int +shell_show_info (Camera __unused__ *camera, const char *arg) +{ + CHECK (shell_file_action (p->camera, p->context, p->folder, arg, + print_info_action)); + + return (GP_OK); +} + +static int +shell_put (Camera __unused__ *camera, const char *args) { + char arg[1024]; + unsigned int x; + char dest_folder[MAX_FOLDER_LEN], dest_filename[MAX_FILE_LEN]; + + for (x = 0; x < shell_arg_count (args); x++) { + CHECK (shell_arg (args, x, arg)); + CHECK (shell_construct_path ("/", arg, dest_folder, dest_filename)); + CHECK (action_camera_upload_file (p, dest_folder, dest_filename)); + } + + return (GP_OK); +} + +static int +shell_mkdir (Camera *camera, const char *args) { + if (*args == ' ') + args++; + return gp_camera_folder_make_dir (camera, p->folder, args, p->context); +} + +static int +shell_rmdir (Camera *camera, const char *args) { + char *xarg; + int xlen, ret; + + if (*args == ' ') + args++; + + /* remove trailing / */ + xarg = strdup(args); + xlen = strlen(xarg); + while (xlen > 1) { + if (xarg[xlen-1] != '/') + break; + xarg[xlen-1] = '\0'; + xlen--; + } + ret = gp_camera_folder_remove_dir (camera, p->folder, xarg, p->context); + free (xarg); + return ret; +} + +static int +shell_list_config (Camera __unused__ *camera, const char __unused__ *args) { + CHECK (list_config_action (p)); + return (GP_OK); +} + +static int +shell_summary (Camera __unused__ *camera, const char __unused__ *args) { + CHECK (action_camera_summary (p)); + return GP_OK; +} + +static int +shell_storage_info (Camera __unused__ *camera, const char __unused__ *args) { + CHECK (print_storage_info (p)); + return GP_OK; +} + +static int +shell_get_config (Camera __unused__ *camera, const char *args) { + char arg[1024]; + unsigned int x; + + for (x = 0; x < shell_arg_count (args); x++) { + CHECK (shell_arg (args, x, arg)); + CHECK (get_config_action (p, arg)); + } + return (GP_OK); +} + +static int +shell_set_config (Camera __unused__ *camera, const char *args) { + char arg[1024]; + char *s,*x; + + strncpy (arg, args, sizeof(arg)); + arg[1023]='\0'; + /* need to skip spaces */ + x = arg; while (*x == ' ') x++; + if ((s=strchr(x,'='))) { + *s='\0'; + return set_config_action (p, x, s+1); + } + if ((s=strchr(x,' '))) { + *s='\0'; + return set_config_action (p, x, s+1); + } + fprintf (stderr, _("set-config needs a second argument.\n")); + return (GP_OK); +} + +static int +shell_set_config_value (Camera __unused__ *camera, const char *args) { + char arg[1024]; + char *s,*x; + + strncpy (arg, args, sizeof(arg)); + arg[1023]='\0'; + /* need to skip spaces */ + x = arg; while (*x == ' ') x++; + if ((s=strchr(x,'='))) { + *s='\0'; + return set_config_value_action (p, x, s+1); + } + if ((s=strchr(x,' '))) { + *s='\0'; + return set_config_value_action (p, x, s+1); + } + fprintf (stderr, _("set-config-value needs a second argument.\n")); + return (GP_OK); +} + +static int +shell_set_config_index (Camera __unused__ *camera, const char *args) { + char arg[1024]; + char *s,*x; + + strncpy (arg, args, sizeof(arg)); + arg[1023]='\0'; + /* need to skip spaces */ + x = arg; while (*x == ' ') x++; + if ((s=strchr(x,'='))) { + *s='\0'; + return set_config_index_action (p, x, s+1); + } + if ((s=strchr(x,' '))) { + *s='\0'; + return set_config_index_action (p, x, s+1); + } + fprintf (stderr, _("set-config-index needs a second argument.\n")); + return (GP_OK); +} + + +static int +shell_trigger_capture (Camera __unused__ *camera, const char __unused__ *args) { + return trigger_capture (); +} + +static int +shell_capture_image (Camera __unused__ *camera, const char __unused__ *args) { + return capture_generic (GP_CAPTURE_IMAGE, NULL, 0); +} + +static int +shell_capture_image_and_download (Camera __unused__ *camera, const char __unused__ *args) { + return capture_generic (GP_CAPTURE_IMAGE, NULL, 1); +} + +static int +shell_capture_preview (Camera __unused__ *camera, const char __unused__ *args) { + return action_camera_capture_preview (p); +} + + +static int +shell_wait_event (Camera *camera, const char *args) { + char argument[1024]; + + shell_arg (args, 0, argument); + return action_camera_wait_event (p, DT_NO_DOWNLOAD, argument); +} + +static int +shell_capture_tethered (Camera *camera, const char *args) { + char argument[1024]; + + shell_arg (args, 0, argument); + return action_camera_wait_event (p, DT_DOWNLOAD, argument); +} + + +int +shell_exit (Camera __unused__ *camera, const char __unused__ *arg) +{ + shell_done = 1; + return (GP_OK); +} + +static int +shell_help_command (Camera __unused__ *camera, const char *arg) +{ + char arg_cmd[1024]; + unsigned int x; + + shell_arg (arg, 0, arg_cmd); + + /* Search this command */ + for (x = 0; func[x].function; x++) + if (!strcmp (arg_cmd, func[x].command)) + break; + if (!func[x].function) { + printf (_("Command '%s' not found. Use 'help' to get a " + "list of available commands."), arg_cmd); + putchar ('\n'); + return (GP_OK); + } + + /* Print the command's syntax. */ + printf (_("Help on \"%s\":"), func[x].command); + printf ("\n\n"); + printf (_("Usage:")); + printf (" %s %s\n", func[x].command, + func[x].description_arg ? _(func[x].description_arg) : ""); + printf (_("Description:")); + printf ("\n\t%s\n\n", _(func[x].description)); + printf (_("* Arguments in brackets [] are optional")); + putchar ('\n'); + + return (GP_OK); +} + +static int +shell_help (Camera __unused__ *camera, const char *arg) +{ + unsigned int x; + int arg_count = shell_arg_count (arg); + + /* + * If help on a command is requested, print the syntax of the command. + */ + if (arg_count > 0) { + CHECK (shell_help_command (p->camera, arg)); + return (GP_OK); + } + + /* No command specified. Print command listing. */ + printf (_("Available commands:")); + putchar ('\n'); + for (x = 0; func[x].function; x++) + printf ("\t%-16s%s\n", func[x].command, _(func[x].description)); + putchar ('\n'); + printf (_("To get help on a particular command, type in " + "'help command-name'.")); + printf ("\n\n"); + + return (GP_OK); +} + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/shell.h b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/shell.h new file mode 100644 index 00000000..60b0b2fa --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/shell.h @@ -0,0 +1,36 @@ +/* shell.h + * + * Copyright © 2002 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __SHELL_H__ +#define __SHELL_H__ + +#include + +int shell_prompt (GPParams *params); + +#endif /* __SHELL_H__ */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/spawntest.c b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/spawntest.c new file mode 100644 index 00000000..6b95c174 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/spawntest.c @@ -0,0 +1,136 @@ +/* spawntest.c - test the spawnve() function + * Copyright (C) 2006,2007 Hans Ulrich Niedermann + * C99ism fix Copyright (C) 2007 Dan Fandrich + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#include +#include +#include +#include + +#include "spawnve.h" + + +#define ASSERT(cond) \ + do { \ + if (!(cond)) { \ + fprintf(stderr, "%s:%d: Assertion failed: %s\n", \ + __FILE__, __LINE__, #cond); \ + exit(13); \ + } \ + } while(0) + + +static char * +alloc_envar(const char *varname, const char *value) +{ + const size_t varname_size = strlen(varname); + const size_t value_size = strlen(value); + const size_t buf_size = varname_size + 1 + value_size + 1; + char *result_buf = malloc(buf_size); + ASSERT(result_buf != NULL); + strcpy(result_buf, varname); + strcat(result_buf, "="); + strcat(result_buf, value); + return result_buf; +} + + +int +main(const int argc, const char *argv[], const char **envp) +{ + unsigned int i; + + FILE *out = stdout; + int retcode; + + char *hook_env = getenv("GPHOTO_HOOK"); + char *filename = (hook_env!=NULL)?hook_env:"./test-hook.sh"; + + /* We want this to be writable, so we explicitly define it as char[] */ + char params[7] = "params"; + char * const child_argv[] = { + params, + NULL, + }; + + /* envars not to copy */ + static const char * const varlist[] = { + "ACTION", "ARGUMENT", NULL + }; + + unsigned int envi = 0; + char **child_envp; + + /* count number of environment variables currently set */ + unsigned int envar_count; + for (envar_count=0; envp[envar_count] != NULL; envar_count++) { + /* printf("%3d: \"%s\"\n", envar_count, envp[envar_count]); */ + } + + fprintf(out, "Before spawn...\n"); + fflush(out); + + /* Initialize environment. Start with newly defined vars, then copy + * all the existing ones. + * Total amount of char* is + * number of existing envars (envar_count) + * + max number of new envars (2) + * + NULL list terminator (1) + */ + child_envp = calloc(envar_count+2+1,sizeof(child_envp[0])); + ASSERT(child_envp != NULL); + + /* own envars */ + child_envp[envi++] = alloc_envar("ARGUMENT", "/etc/shadow ;-P"); + child_envp[envi++] = alloc_envar("ACTION", "download"); + + /* copy envars except for those in varlist */ + for (i=0; i + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/* Just in case spawnve is in the RTL */ +#ifndef HAVE_SPAWNVE + +#ifndef __SPAWNVE_H__ +#define __SPAWNVE_H__ + +int +spawnve(const char *filename, char *const argv[], char *const envp[]); + +#endif /* __SPAWNVE_H__ */ +#endif diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/test-hook.sh b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/test-hook.sh new file mode 100644 index 00000000..cdbd7729 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/test-hook.sh @@ -0,0 +1,42 @@ +#!/bin/sh +# test-hook.sh - test script for gphoto2's --hook-script option +# Copyright © 2006 Hans Ulrich Niedermann +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + +self=`basename $0` + +case "$ACTION" in + init) + echo "$self: INIT" + # exit 1 # non-null exit to make gphoto2 call fail + ;; + start) + echo "$self: START" + ;; + download) + echo "$self: DOWNLOAD to $ARGUMENT" + ;; + stop) + echo "$self: STOP" + ;; + *) + echo "$self: Unknown action: $ACTION" + ;; +esac + +exit 0 diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/version.c b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/version.c new file mode 100644 index 00000000..3733a03c --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/version.c @@ -0,0 +1,120 @@ +/* version.c + * + * Copyright © 2002 Hans Ulrich Niedermann + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "version.h" + +#include + +#ifndef HAVE_POPT +# error gphoto2 REQUIRES popt! +#endif + +static const char **gphoto2_frontend_version(GPVersionVerbosity verbose) +{ + /* we could also compute/parse the short strings from the long + ones, but the current method is easier for now :-) */ + static const char *verb[] = { + VERSION, +#ifdef HAVE_CC + HAVE_CC " (C compiler used)", +#else + "unknown (C compiler used)", +#endif + "popt (mandatory, for handling command-line parameters)", +#ifdef HAVE_LIBEXIF + "exif (for displaying EXIF information)", +#else + "no exif (for displaying EXIF information)", +#endif +#ifdef HAVE_CDK + "cdk (for accessing configuration options)", +#else + "no cdk (for accessing configuration options)", +#endif +#ifdef HAVE_AA + "aa (for displaying live previews)", +#else + "no aa (for displaying live previews)", +#endif +#ifdef HAVE_JPEG + "jpeg (for displaying live previews in JPEG format)", +#else + "no jpeg (for displaying live previews in JPEG format)", +#endif +#ifdef HAVE_RL + "readline (for easy navigation in the shell)", +#else + "no readline (for easy navigation in the shell)", +#endif + NULL + }; + static const char *shrt[] = { + VERSION, +#ifdef HAVE_CC + HAVE_CC, +#else + "unknown cc", +#endif + "popt(m)", +#ifdef HAVE_LIBEXIF + "exif", +#else + "no exif", +#endif +#ifdef HAVE_CDK + "cdk", +#else + "no cdk", +#endif +#ifdef HAVE_AA + "aa", +#else + "no aa", +#endif +#ifdef HAVE_JPEG + "jpeg", +#else + "no jpeg", +#endif +#ifdef HAVE_RL + "readline", +#else + "no readline", +#endif + NULL + }; + return((verbose == GP_VERSION_VERBOSE)?verb:shrt); +} + +const module_version module_versions[] = { + { "gphoto2", gphoto2_frontend_version }, + { "libgphoto2", gp_library_version }, + { "libgphoto2_port", gp_port_library_version }, + { NULL, NULL } +}; + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/version.h b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/version.h new file mode 100644 index 00000000..b43cb7ae --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/gphoto2/version.h @@ -0,0 +1,42 @@ +/* version.h + * + * Copyright © 2002 Hans Ulrich Niedermann + +typedef struct { + char *name; + GPVersionFunc version_func; +} module_version; + +extern const module_version module_versions[]; + +#endif /* __VERSION_H__ */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/packaging/.cvsignore b/lib/hardware/sensors/gphoto/gphoto2-master/packaging/.cvsignore new file mode 100644 index 00000000..282522db --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/packaging/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/packaging/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/packaging/Makefile.am new file mode 100644 index 00000000..cc5cfb0c --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/packaging/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = rpm diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/packaging/rpm/.cvsignore b/lib/hardware/sensors/gphoto/gphoto2-master/packaging/rpm/.cvsignore new file mode 100644 index 00000000..282522db --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/packaging/rpm/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/packaging/rpm/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/packaging/rpm/Makefile.am new file mode 100644 index 00000000..ac446436 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/packaging/rpm/Makefile.am @@ -0,0 +1,23 @@ +# packaging/rpm/Makefile.am +# Create an RPM package out of an automake based source distribution. +# © 2001,2003 Hans Ulrich Niedermann + +EXTRA_DIST = package.spec.in @PACKAGE@.spec + +clean-local: + rm -rf BUILD RPMS SPECS SOURCES SRPMS + +DISTCLEANFILES = @PACKAGE@.spec + +@PACKAGE@.spec: package.spec + cp $< $@ + +rpm: Makefile package.spec + $(MAKE) clean + mkdir -p BUILD SPECS SOURCES SRPMS + for arch in i386 i486 i586 i686 alpha noarch; do \ + mkdir -p "RPMS/$${arch}"; \ + done + ln -f "$(top_srcdir)/@PACKAGE@-@VERSION@.tar.gz" SOURCES/ + ln -f package.spec SPECS/@PACKAGE@-@VERSION@.spec + rpm --define "_topdir $$(pwd)" -ba SPECS/@PACKAGE@-@VERSION@.spec diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/packaging/rpm/package.spec.in b/lib/hardware/sensors/gphoto/gphoto2-master/packaging/rpm/package.spec.in new file mode 100644 index 00000000..0f4ed16f --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/packaging/rpm/package.spec.in @@ -0,0 +1,36 @@ +Summary: Command line interface to libgphoto2 +Name: @PACKAGE@ +Version: @VERSION@ +Release: 1 +License: LGPL +Group: Applications/Multimedia +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Source: http://www.gphoto.org/dist/@PACKAGE@-@VERSION@.tar.gz +Url: http://www.gphoto.org/ +ExcludeArch: s390 s390x +Provides: gphoto2 +PreReq: libgphoto2-devel + +%description +gphoto2 is a command line client to for the libgphoto2. It allows to +use gPhoto software from a terminal or from a script shell to perform +any camera operation that can be done. This is the main user interface. + +%prep +rm -rf "${RPM_BUILD_DIR}/%{name}-%{version}" + +%setup -q -n %{name}-%{version} + +%build +%configure +make + +%install +rm -rf "${RPM_BUILD_ROOT}" +make DESTDIR=%{?buildroot:%{buildroot}} install + +%files +%defattr(-,root,root) +%{_bindir}/gphoto2 +%{_mandir}/man1/* +%{_datadir}/locale/* diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/.cvsignore b/lib/hardware/sensors/gphoto/gphoto2-master/po/.cvsignore new file mode 100644 index 00000000..aec44b76 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/.cvsignore @@ -0,0 +1,11 @@ +ChangeLog +*~ .*~ +.arch-ids +*.gmo +gphoto2.pot +Makefile +Makefile.in +Makefile.in.in +POTFILES +Makevars +remove-potcdate.sed diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/POTFILES.in b/lib/hardware/sensors/gphoto/gphoto2-master/po/POTFILES.in new file mode 100644 index 00000000..eebf75f1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/POTFILES.in @@ -0,0 +1,8 @@ +gphoto2/actions.c +gphoto2/foreach.c +gphoto2/gp-params.c +gphoto2/gphoto2-cmd-capture.c +gphoto2/gphoto2-cmd-config.c +gphoto2/main.c +gphoto2/range.c +gphoto2/shell.c diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/az.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/az.po new file mode 100644 index 00000000..b5027cb5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/az.po @@ -0,0 +1,1076 @@ +# Translation of 'gphoto' messages to Azerbaijani. +# Copyright (C) 2004 Free Software Foundation, Inc. +# This file is put in the public domain. +# Mətin Əmirov , 2004. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2-2.1.2\n" +"POT-Creation-Date: 2003-08-10 20:58+0200\n" +"PO-Revision-Date: 2004-03-20 20:58+0200\n" +"Last-Translator: Metin Amiroff \n" +"Language-Team: Azerbaijani \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.0.2\n" + +#: gphoto2/actions.c:101 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "" + +#: gphoto2/actions.c:122 +#, c-format +msgid "There are no folders in folder '%s'." +msgstr "" + +#: gphoto2/actions.c:126 +#, c-format +msgid "There is one folder in folder '%s':" +msgstr "" + +#: gphoto2/actions.c:130 +#, c-format +msgid "There are %i folders in folder '%s':" +msgstr "" + +#: gphoto2/actions.c:157 gphoto2/foreach.c:277 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "" + +#: gphoto2/actions.c:162 +#, c-format +msgid "There is one file in folder '%s':" +msgstr "" + +#: gphoto2/actions.c:167 +#, c-format +msgid "There are %i files in folder '%s':" +msgstr "" + +#: gphoto2/actions.c:188 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "" + +#: gphoto2/actions.c:190 +msgid "File:\n" +msgstr "" + +#: gphoto2/actions.c:192 gphoto2/actions.c:226 gphoto2/actions.c:242 +msgid " None available.\n" +msgstr "" + +#: gphoto2/actions.c:195 +#, c-format +msgid " Name: '%s'\n" +msgstr "" + +#: gphoto2/actions.c:197 gphoto2/actions.c:229 +#, c-format +msgid " Mime type: '%s'\n" +msgstr "" + +#: gphoto2/actions.c:199 gphoto2/actions.c:231 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr "" + +#: gphoto2/actions.c:201 gphoto2/actions.c:233 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr "" + +#: gphoto2/actions.c:203 gphoto2/actions.c:235 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr "" + +#: gphoto2/actions.c:205 gphoto2/actions.c:237 +#, c-format +msgid " Downloaded: %s\n" +msgstr "" + +#: gphoto2/actions.c:206 gphoto2/actions.c:238 gphoto2/actions.c:250 +#: gphoto2/actions.c:548 gphoto2/actions.c:550 gphoto2/actions.c:567 +#: gphoto2/actions.c:570 gphoto2/actions.c:573 gphoto2/actions.c:576 +msgid "yes" +msgstr "bəli" + +#: gphoto2/actions.c:206 gphoto2/actions.c:238 gphoto2/actions.c:250 +#: gphoto2/actions.c:548 gphoto2/actions.c:550 gphoto2/actions.c:567 +#: gphoto2/actions.c:570 gphoto2/actions.c:573 gphoto2/actions.c:576 +msgid "no" +msgstr "xeyir" + +#: gphoto2/actions.c:208 +msgid " Permissions: " +msgstr "" + +#: gphoto2/actions.c:211 +msgid "read/delete" +msgstr "" + +#: gphoto2/actions.c:213 +msgid "read" +msgstr "" + +#: gphoto2/actions.c:215 +msgid "delete" +msgstr "sil" + +#: gphoto2/actions.c:217 +msgid "none" +msgstr "heç biri" + +#: gphoto2/actions.c:221 +#, c-format +msgid " Time: %s" +msgstr "" + +#: gphoto2/actions.c:224 +msgid "Thumbnail:\n" +msgstr "" + +#: gphoto2/actions.c:240 +msgid "Audio data:\n" +msgstr "" + +#: gphoto2/actions.c:245 +#, c-format +msgid " Mime type: '%s'\n" +msgstr "" + +#: gphoto2/actions.c:247 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr "" + +#: gphoto2/actions.c:249 +#, c-format +msgid " Downloaded: %s\n" +msgstr "" + +#: gphoto2/actions.c:380 +msgid "Could not parse EXIF data." +msgstr "" + +#: gphoto2/actions.c:384 +msgid "EXIF tags:" +msgstr "" + +#: gphoto2/actions.c:387 +msgid "Tag" +msgstr "Təq" + +#: gphoto2/actions.c:389 +msgid "Value" +msgstr "Qiymət" + +#: gphoto2/actions.c:410 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "" + +#: gphoto2/actions.c:419 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "" + +#: gphoto2/actions.c:437 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "" + +#: gphoto2/actions.c:439 +msgid "Supported cameras:\n" +msgstr "" + +#: gphoto2/actions.c:452 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "" + +#: gphoto2/actions.c:455 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "" + +#: gphoto2/actions.c:460 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:488 +#, c-format +msgid "Devices found: %i\n" +msgstr "" + +#: gphoto2/actions.c:489 +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" + +#: gphoto2/actions.c:528 gphoto2/actions.c:533 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:528 +msgid "Model" +msgstr "Model" + +#: gphoto2/actions.c:528 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:529 +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:546 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "" + +#: gphoto2/actions.c:547 +#, c-format +msgid "Serial port support : %s\n" +msgstr "" + +#: gphoto2/actions.c:549 +#, c-format +msgid "USB support : %s\n" +msgstr "" + +#: gphoto2/actions.c:552 +msgid "Transfer speeds supported :\n" +msgstr "" + +#: gphoto2/actions.c:554 +#, c-format +msgid " : %i\n" +msgstr "" + +#: gphoto2/actions.c:557 +msgid "Capture choices :\n" +msgstr "" + +#: gphoto2/actions.c:559 +msgid " : Image\n" +msgstr "" + +#: gphoto2/actions.c:561 +msgid " : Video\n" +msgstr "" + +#: gphoto2/actions.c:563 +msgid " : Audio\n" +msgstr "" + +#: gphoto2/actions.c:565 +msgid " : Preview\n" +msgstr "" + +#: gphoto2/actions.c:566 +#, c-format +msgid "Configuration support : %s\n" +msgstr "" + +#: gphoto2/actions.c:568 +#, c-format +msgid "Delete files on camera support : %s\n" +msgstr "" + +#: gphoto2/actions.c:571 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "" + +#: gphoto2/actions.c:574 +#, c-format +msgid "File upload support : %s\n" +msgstr "" + +#: gphoto2/actions.c:591 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "" + +#: gphoto2/actions.c:630 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "" + +#: gphoto2/actions.c:668 +msgid "About the camera driver:" +msgstr "" + +#: gphoto2/actions.c:682 +msgid "Camera summary:" +msgstr "" + +#: gphoto2/actions.c:696 +msgid "Camera manual:" +msgstr "" + +#: gphoto2/actions.c:712 +msgid "You can only specify speeds for serial ports." +msgstr "" + +#: gphoto2/actions.c:763 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-2003 Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" + +#: gphoto2/actions.c:776 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "" + +#: gphoto2/actions.c:890 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "" + +#: gphoto2/foreach.c:254 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "" + +#: gphoto2/foreach.c:283 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "" + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'.Please obtain a valid file number from a file listing first." +msgstr "" + +#: gphoto2/gp-params.c:53 +msgid "*** Error *** \n" +msgstr "*** Xəta *** \n" + +#: gphoto2/gp-params.c:220 +msgid "Press any key to continue.\n" +msgstr "Davam etmək üçün bir düyməyə basın.\n" + +#: gphoto2/gp-params.c:237 +msgid "Not enough memory." +msgstr "Yaddaş çatışmır." + +#: gphoto2/gphoto2-cmd-capture.c:201 +msgid "Operation cancelled" +msgstr "Əməliyyat ləğv edildi" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "Davam Et" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "Ləğv Et" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "Xəta" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "Quraşdırma seçilə bilmədi:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "Çıx" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "Geri" + +#: gphoto2/gphoto2-cmd-config.c:253 +msgid "Time: " +msgstr "Saat: " + +#: gphoto2/gphoto2-cmd-config.c:312 gphoto2/gphoto2-cmd-config.c:340 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "Qiymət: " + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "Bəli" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "Xeyir" + +#: gphoto2/main.c:161 gphoto2/main.c:1461 +msgid "Turn on debugging" +msgstr "Xəta ayırmasını fəallaşdır" + +#: gphoto2/main.c:162 gphoto2/main.c:1463 +msgid "Quiet output (default=verbose)" +msgstr "Gizli yekun (ön qurğulusu=verbose)" + +#: gphoto2/main.c:166 gphoto2/main.c:1467 +msgid "Display version and exit" +msgstr "Buraxılışı göstər və çıx" + +#: gphoto2/main.c:167 +msgid "Displays this help screen" +msgstr "Bu yardım ekranını göstər" + +#: gphoto2/main.c:168 gphoto2/main.c:1469 +msgid "List supported camera models" +msgstr "DƏstəklənən kamera modellərini göstər" + +#: gphoto2/main.c:169 gphoto2/main.c:1471 +msgid "List supported port devices" +msgstr "Dəstəklənən port avadanlıqlarını göstər" + +#: gphoto2/main.c:170 gphoto2/main.c:1473 +msgid "Send file to stdout" +msgstr "Faylı stdout-a göndər" + +#: gphoto2/main.c:171 gphoto2/main.c:1475 +msgid "Print filesize before data" +msgstr "Datadan əvvəl fayl böyüklüyünü göstər" + +#: gphoto2/main.c:172 gphoto2/main.c:1477 +msgid "List auto-detected cameras" +msgstr "Avtomatik tapılan kameraları göstər" + +#: gphoto2/main.c:175 gphoto2/main.c:1479 +msgid "Specify port device" +msgstr "Port avadanlığını bildir" + +#: gphoto2/main.c:176 gphoto2/main.c:1481 +msgid "Specify serial transfer speed" +msgstr "Serial transfer sür'ətini bildir" + +#: gphoto2/main.c:177 gphoto2/main.c:1483 +msgid "Specify camera model" +msgstr "Kamera modelini bildir" + +#: gphoto2/main.c:178 gphoto2/main.c:1485 +msgid "Specify a filename" +msgstr "Fayl adı bildir" + +#: gphoto2/main.c:179 gphoto2/main.c:1487 +msgid "(expert only) Override USB IDs" +msgstr "" + +#: gphoto2/main.c:182 gphoto2/main.c:1489 +msgid "Display camera abilities" +msgstr "Kamera bacarıqlarını göstər" + +#: gphoto2/main.c:183 gphoto2/main.c:1491 +msgid "Specify camera folder (default=\"/\")" +msgstr "" + +#: gphoto2/main.c:184 gphoto2/main.c:1493 +msgid "Recursion (default for download)" +msgstr "" + +#: gphoto2/main.c:185 gphoto2/main.c:1495 +msgid "No recursion (default for deletion)" +msgstr "" + +#: gphoto2/main.c:186 gphoto2/main.c:1497 +msgid "List folders in folder" +msgstr "Qovluqdakı qovluqları göstər" + +#: gphoto2/main.c:187 gphoto2/main.c:1499 +msgid "List files in folder" +msgstr "Qovluqdakı faylları göstər" + +#: gphoto2/main.c:188 gphoto2/main.c:189 +msgid "name" +msgstr "ad" + +#: gphoto2/main.c:188 gphoto2/main.c:1501 +msgid "Create a directory" +msgstr "Cərgə yarat" + +#: gphoto2/main.c:189 gphoto2/main.c:1503 +msgid "Remove a directory" +msgstr "Cərgəni sil" + +#: gphoto2/main.c:190 gphoto2/main.c:1505 +msgid "Display number of files" +msgstr "Fayl ədədini göstər" + +#: gphoto2/main.c:191 gphoto2/main.c:1507 +msgid "Get files given in range" +msgstr "Verilən aralıqdakı faylları al" + +#: gphoto2/main.c:192 gphoto2/main.c:1509 +msgid "Get all files from folder" +msgstr "Qovluqdakı bütün faylları al" + +#: gphoto2/main.c:193 gphoto2/main.c:1511 +msgid "Get thumbnails given in range" +msgstr "Verilən aralıqdakı dırnaq görünüşlərini al" + +#: gphoto2/main.c:194 gphoto2/main.c:1514 +msgid "Get all thumbnails from folder" +msgstr "Qovluqdakı dırnaq görünüşlərini al" + +#: gphoto2/main.c:195 gphoto2/main.c:1517 +msgid "Get raw data given in range" +msgstr "Verilən aralıqdakı xam faylları al" + +#: gphoto2/main.c:196 gphoto2/main.c:1520 +msgid "Get all raw data from folder" +msgstr "Qovluqdakı bütün xam faylları al" + +#: gphoto2/main.c:197 gphoto2/main.c:1523 +msgid "Get audio data given in range" +msgstr "Verilən aralıqdakı səs fayllarını al" + +#: gphoto2/main.c:198 gphoto2/main.c:1526 +msgid "Get all audio data from folder" +msgstr "Qovluqdakı bütün səs fayllarını al" + +#: gphoto2/main.c:199 gphoto2/main.c:1528 +msgid "Delete files given in range" +msgstr "Verilən aralıqdakı faylları sil" + +#: gphoto2/main.c:200 gphoto2/main.c:1530 +msgid "Delete all files in folder" +msgstr "Qovluqdakı bütün faylları sil" + +#: gphoto2/main.c:201 gphoto2/main.c:1532 +msgid "Upload a file to camera" +msgstr "Faylı kameraya yolla" + +#: gphoto2/main.c:203 gphoto2/main.c:1535 +msgid "Configure" +msgstr "Quraşdır" + +#: gphoto2/main.c:205 gphoto2/main.c:1539 +msgid "Capture a quick preview" +msgstr "Sür'ətli nümayiş yaxala" + +#: gphoto2/main.c:206 gphoto2/main.c:1541 +msgid "Capture an image" +msgstr "Rəsm yaxala" + +#: gphoto2/main.c:207 +msgid "Capture a movie " +msgstr "Film yaxala " + +#: gphoto2/main.c:208 gphoto2/main.c:1545 +msgid "Capture an audio clip" +msgstr "Səs klipi yaxala" + +#: gphoto2/main.c:210 gphoto2/main.c:1548 gphoto2/shell.c:113 +msgid "Show EXIF information" +msgstr "EXIF mə'lumatını göstər" + +#: gphoto2/main.c:212 gphoto2/main.c:1551 gphoto2/shell.c:109 +msgid "Show info" +msgstr "Mə'lumatı göstər" + +#: gphoto2/main.c:213 +msgid "Summary of camera status" +msgstr "Kamera vəziyyətinin icmalı" + +#: gphoto2/main.c:214 +msgid "Camera driver manual" +msgstr "Kamera sürücüsü əl kitabı" + +#: gphoto2/main.c:215 +msgid "About the camera driver" +msgstr "Kamera sürücüsü haqqında" + +#: gphoto2/main.c:216 gphoto2/main.c:1559 +msgid "gPhoto shell" +msgstr "gPhoto qabığı" + +#: gphoto2/main.c:343 gphoto2/main.c:1192 +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "" + +#: gphoto2/main.c:466 +msgid "Jan" +msgstr "Yan" + +#: gphoto2/main.c:466 +msgid "January" +msgstr "Yanvar" + +#: gphoto2/main.c:467 +msgid "Feb" +msgstr "Fev" + +#: gphoto2/main.c:467 +msgid "February" +msgstr "Fevral" + +#: gphoto2/main.c:468 +msgid "Mar" +msgstr "Mar" + +#: gphoto2/main.c:468 +msgid "March" +msgstr "Mart" + +#: gphoto2/main.c:469 +msgid "Apr" +msgstr "Apr" + +#: gphoto2/main.c:469 +msgid "April" +msgstr "Aprel" + +#: gphoto2/main.c:470 +msgid "May" +msgstr "May" + +#: gphoto2/main.c:471 +msgid "Jun" +msgstr "İyn" + +#: gphoto2/main.c:471 +msgid "June" +msgstr "İyun" + +#: gphoto2/main.c:472 +msgid "Jul" +msgstr "İyl" + +#: gphoto2/main.c:472 +msgid "July" +msgstr "İyul" + +#: gphoto2/main.c:473 +msgid "Aug" +msgstr "Avq" + +#: gphoto2/main.c:473 +msgid "August" +msgstr "Avqust" + +#: gphoto2/main.c:474 +msgid "Sep" +msgstr "Sen" + +#: gphoto2/main.c:474 +msgid "September" +msgstr "Sentyabr" + +#: gphoto2/main.c:475 +msgid "Oct" +msgstr "Okt" + +#: gphoto2/main.c:475 +msgid "October" +msgstr "Oktyabr" + +#: gphoto2/main.c:476 +msgid "Nov" +msgstr "Noy" + +#: gphoto2/main.c:476 +msgid "November" +msgstr "Noyabr" + +#: gphoto2/main.c:477 +msgid "Dec" +msgstr "Dek" + +#: gphoto2/main.c:477 +msgid "December" +msgstr "Dekabr" + +#: gphoto2/main.c:484 +msgid "Sun" +msgstr "Baz" + +#: gphoto2/main.c:484 +msgid "Sunday" +msgstr "Bazar" + +#: gphoto2/main.c:485 +msgid "Mon" +msgstr "Bze" + +#: gphoto2/main.c:485 +msgid "Monday" +msgstr "Bazar ertəsi" + +#: gphoto2/main.c:486 +msgid "Tue" +msgstr "Çax" + +#: gphoto2/main.c:486 +msgid "Tuesday" +msgstr "Çərşənbə axşamı" + +#: gphoto2/main.c:487 +msgid "Wed" +msgstr "Çrş" + +#: gphoto2/main.c:487 +msgid "Wednesday" +msgstr "Çərşənbə" + +#: gphoto2/main.c:488 +msgid "Thu" +msgstr "Cax" + +#: gphoto2/main.c:488 +msgid "Thursday" +msgstr "Cümə axşamı" + +#: gphoto2/main.c:489 +msgid "Fri" +msgstr "Cüm" + +#: gphoto2/main.c:489 +msgid "Friday" +msgstr "Cümə" + +#: gphoto2/main.c:490 +msgid "Sat" +msgstr "Şnb" + +#: gphoto2/main.c:490 +msgid "Saturday" +msgstr "Şənbə" + +#: gphoto2/main.c:552 +#, c-format +msgid "You cannot use '%n' in combination with non-persistent files!" +msgstr "" + +#: gphoto2/main.c:575 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "" + +#: gphoto2/main.c:654 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "" + +#: gphoto2/main.c:701 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "%s faylı mövcuddur. Üstündən yazılsın? [b|x] " + +#: gphoto2/main.c:712 +msgid "Specify new filename? [y|n] " +msgstr "Yeni fayl adı seçilsin? [b|x] " + +#: gphoto2/main.c:721 +msgid "Enter new filename: " +msgstr "Yeni fayl adı bildirin: " + +#: gphoto2/main.c:726 +#, c-format +msgid "Saving file as %s\n" +msgstr "Fayl %s adı ilə qeyd edilir\n" + +#: gphoto2/main.c:918 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Yeni fayl kamerada %s%s%s mövqeyindədir\n" + +#: gphoto2/main.c:1050 +msgid "ERROR: " +msgstr "XƏTA: " + +#: gphoto2/main.c:1073 +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Ləğv edilir...\n" + +#: gphoto2/main.c:1079 +msgid "Aborted.\n" +msgstr "Ləğv edildi.\n" + +#: gphoto2/main.c:1084 +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Ləğv edilir...\n" + +#: gphoto2/main.c:1291 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 CDK dəstəyi olmadan dərlənibdir." + +#: gphoto2/main.c:1404 +msgid "Operation cancelled.\n" +msgstr "Əməliyyat ləğv edildi.\n" + +#: gphoto2/main.c:1408 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Xəta (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1412 +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" + +#: gphoto2/main.c:1465 +msgid "Overwrite files without asking." +msgstr "Məzmunu soruşmadan əvəz et" + +#: gphoto2/main.c:1479 +msgid "path" +msgstr "cığır" + +#: gphoto2/main.c:1481 +msgid "speed" +msgstr "sür'ət" + +#: gphoto2/main.c:1483 +msgid "model" +msgstr "model" + +#: gphoto2/main.c:1485 +msgid "filename" +msgstr "fayl adı" + +#: gphoto2/main.c:1487 +msgid "usbid" +msgstr "usbid" + +#: gphoto2/main.c:1491 +msgid "folder" +msgstr "qovluq" + +#: gphoto2/main.c:1543 +msgid "Capture a movie" +msgstr "Film yaxala" + +#: gphoto2/main.c:1553 +msgid "Show summary" +msgstr "İcmalı göstər" + +#: gphoto2/main.c:1555 +msgid "Show camera driver manual" +msgstr "Kamera sürücüsü əl kitabını göstər" + +#: gphoto2/main.c:1557 +msgid "About the camera driver manual" +msgstr "Kamera sürücüsü əl kitabı haqqında" + +#: gphoto2/main.c:1784 +msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +msgstr "" + +#: gphoto2/main.c:1794 +msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +msgstr "" + +#: gphoto2/options.c:181 +msgid "Usage:\n" +msgstr "İstifadə qaydası:\n" + +#: gphoto2/options.c:184 +msgid "" +"Short/long options (& argument) Description\n" +"--------------------------------------------------------------------------------\n" +msgstr "" + +#: gphoto2/options.c:209 +#, c-format +msgid "%-38s %s\n" +msgstr "%-38s %s\n" + +#: gphoto2/options.c:214 +msgid "" +"--------------------------------------------------------------------------------\n" +"[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +msgstr "" + +#: gphoto2/range.c:103 gphoto2/range.c:157 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" + +#: gphoto2/range.c:109 gphoto2/range.c:163 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" + +#: gphoto2/range.c:125 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" + +#: gphoto2/range.c:139 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" + +#: gphoto2/range.c:179 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" + +#: gphoto2/range.c:202 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" + +#: gphoto2/shell.c:55 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Xəta (%i: '%s') ***" + +#: gphoto2/shell.c:98 +msgid "Change to a directory on the camera" +msgstr "Kameradakı cərgəyə keç" + +#: gphoto2/shell.c:99 gphoto2/shell.c:101 +msgid "directory" +msgstr "cərgə" + +#: gphoto2/shell.c:100 +msgid "Change to a directory on the local drive" +msgstr "Yerli sürücüdəki cərgəyə keç" + +#: gphoto2/shell.c:102 gphoto2/shell.c:120 gphoto2/shell.c:121 +msgid "Exit the gPhoto shell" +msgstr "gPhoto qabığından çıx" + +#: gphoto2/shell.c:103 +msgid "Download a file" +msgstr "Faylı endir" + +#: gphoto2/shell.c:103 gphoto2/shell.c:106 gphoto2/shell.c:108 +#: gphoto2/shell.c:110 gphoto2/shell.c:111 gphoto2/shell.c:114 +msgid "[directory/]filename" +msgstr "[cərgə/]fayladı" + +#: gphoto2/shell.c:105 +msgid "Download a thumbnail" +msgstr "Dırnaq görünüşünü endir" + +#: gphoto2/shell.c:107 +msgid "Download raw data" +msgstr "Xam mə'lumatı endir" + +#: gphoto2/shell.c:111 +msgid "Delete" +msgstr "Sil" + +#: gphoto2/shell.c:116 gphoto2/shell.c:122 +msgid "Displays command usage" +msgstr "Əmrin istifadə qaydasını göstər" + +#: gphoto2/shell.c:117 gphoto2/shell.c:122 +msgid "[command]" +msgstr "[əmr]" + +#: gphoto2/shell.c:118 +msgid "List the contents of the current directory" +msgstr "Hazırkı cərgənin məzmununu göstər" + +#: gphoto2/shell.c:119 +msgid "[directory/]" +msgstr "[cərgə/]" + +#: gphoto2/shell.c:421 +msgid "Invalid command." +msgstr "Hökmsüz əmr." + +#: gphoto2/shell.c:430 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "'%s' əmrinə arqument verilməlidir." + +#: gphoto2/shell.c:483 +msgid "Invalid path." +msgstr "Hökmsüz cığır." + +#: gphoto2/shell.c:529 +msgid "Could not find home directory." +msgstr "" + +#: gphoto2/shell.c:537 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "" + +#: gphoto2/shell.c:540 +#, c-format +msgid "Local directory now '%s'." +msgstr "" + +#: gphoto2/shell.c:578 +#, c-format +msgid "Remote directory now '%s'." +msgstr "" + +#: gphoto2/shell.c:734 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "" + +#: gphoto2/shell.c:741 +#, c-format +msgid "Help on \"%s\":" +msgstr "\"%s\" yardımı:" + +#: gphoto2/shell.c:743 +msgid "Usage:" +msgstr "İstifadə qaydası:" + +#: gphoto2/shell.c:747 +msgid "Description:" +msgstr "İzahat:" + +#: gphoto2/shell.c:749 +msgid "* Arguments in brackets [] are optional" +msgstr "" + +#: gphoto2/shell.c:770 +msgid "Available commands:" +msgstr "" + +#: gphoto2/shell.c:775 +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/cs.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/cs.po new file mode 100644 index 00000000..688e30f1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/cs.po @@ -0,0 +1,1389 @@ +# Czech translation of gphoto2 +# Copyright (C) 2003, 2007, 2008 Miloslav Trmac +# This file is distributed under the same license as the gphoto2 package. +# Miloslav Trmac , 2003, 2007, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.4.2\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2008-06-22 18:31+0200\n" +"PO-Revision-Date: 2008-10-12 12:00+0200\n" +"Last-Translator: Miloslav Trmac \n" +"Language-Team: Czech \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%100/10==1 ? 2 : n%10==1 ? 0 : (n+9)%10>3 ? 2 : 1;\n" + +#: gphoto2/actions.c:167 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Počet souborů v adresáři '%s': %i\n" + +#: gphoto2/actions.c:187 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "V adresáři '%2$s' je %1$d adresář.\n" +msgstr[1] "V adresáři '%2$s' jsou %1$d adresáře.\n" +msgstr[2] "V adresáři '%2$s' je %1$d adresářů.\n" + +#: gphoto2/actions.c:227 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "V adresáři '%s' není žádný soubor.\n" + +#: gphoto2/actions.c:230 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "V adresáři '%2$s' je %1$d soubor.\n" +msgstr[1] "V adresáři '%2$s' jsou %1$d soubory.\n" +msgstr[2] "V adresáři '%2$s' je %1$d souborů.\n" + +#: gphoto2/actions.c:251 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Informace o souboru '%s' (adresář '%s'):\n" + +#: gphoto2/actions.c:253 +#, c-format +msgid "File:\n" +msgstr "Soubor:\n" + +#: gphoto2/actions.c:255 gphoto2/actions.c:289 gphoto2/actions.c:305 +#, c-format +msgid " None available.\n" +msgstr " Žádný není k dispozici.\n" + +#: gphoto2/actions.c:258 +#, c-format +msgid " Name: '%s'\n" +msgstr " Název: '%s'\n" + +#: gphoto2/actions.c:260 gphoto2/actions.c:292 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Typ mime: '%s'\n" + +#: gphoto2/actions.c:262 gphoto2/actions.c:294 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Velikost: %li bajtů\n" + +#: gphoto2/actions.c:264 gphoto2/actions.c:296 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Šířka: %i pixelů\n" + +#: gphoto2/actions.c:266 gphoto2/actions.c:298 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Výška: %i pixelů\n" + +#: gphoto2/actions.c:268 gphoto2/actions.c:300 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Staženo: %s\n" + +#: gphoto2/actions.c:269 gphoto2/actions.c:301 gphoto2/actions.c:313 +#: gphoto2/actions.c:663 gphoto2/actions.c:665 gphoto2/actions.c:693 +#: gphoto2/actions.c:696 gphoto2/actions.c:699 gphoto2/actions.c:702 +#: gphoto2/actions.c:705 gphoto2/actions.c:1512 +msgid "yes" +msgstr "ano" + +#: gphoto2/actions.c:269 gphoto2/actions.c:301 gphoto2/actions.c:313 +#: gphoto2/actions.c:663 gphoto2/actions.c:665 gphoto2/actions.c:693 +#: gphoto2/actions.c:696 gphoto2/actions.c:699 gphoto2/actions.c:702 +#: gphoto2/actions.c:705 gphoto2/actions.c:1506 +msgid "no" +msgstr "ne" + +#: gphoto2/actions.c:271 +#, c-format +msgid " Permissions: " +msgstr " Oprávnění: " + +#: gphoto2/actions.c:274 +#, c-format +msgid "read/delete" +msgstr "čtení/odstranění" + +#: gphoto2/actions.c:276 +#, c-format +msgid "read" +msgstr "čtení" + +#: gphoto2/actions.c:278 +#, c-format +msgid "delete" +msgstr "odstranění" + +#: gphoto2/actions.c:280 +#, c-format +msgid "none" +msgstr "žádné" + +#: gphoto2/actions.c:284 +#, c-format +msgid " Time: %s" +msgstr " Čas: %s" + +#: gphoto2/actions.c:287 +#, c-format +msgid "Thumbnail:\n" +msgstr "Miniatura:\n" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Audio data:\n" +msgstr "Zvuková data:\n" + +#: gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Typ mime: '%s'\n" + +#: gphoto2/actions.c:310 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Velikost: %li bajtů\n" + +#: gphoto2/actions.c:312 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Staženo: %s\n" + +#: gphoto2/actions.c:488 +msgid "Could not parse EXIF data." +msgstr "Nemohu zpracovat data EXIF." + +#: gphoto2/actions.c:492 +#, c-format +msgid "EXIF tags:" +msgstr "Značky EXIF:" + +#: gphoto2/actions.c:495 +msgid "Tag" +msgstr "Značka" + +#: gphoto2/actions.c:497 +msgid "Value" +msgstr "Hodnota" + +#: gphoto2/actions.c:518 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Data EXIF obsahují miniaturu (%i bajtů)." + +#: gphoto2/actions.c:527 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 bylo přeloženo bez podpory EXIF." + +#: gphoto2/actions.c:545 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Počet podporovaných fotoaparátů: %i\n" + +#: gphoto2/actions.c:546 +#, c-format +msgid "Supported cameras:\n" +msgstr "Podporované fotoaparáty:\n" + +#: gphoto2/actions.c:559 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (TESTOVÁNÍ)\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (EXPERIMENTÁLNÍ)\n" + +#: gphoto2/actions.c:567 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:611 +#, c-format +msgid "Devices found: %i\n" +msgstr "Nalezená zařízení: %i\n" + +#: gphoto2/actions.c:612 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Cesta Popis\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:642 gphoto2/actions.c:647 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:642 +msgid "Model" +msgstr "Model" + +#: gphoto2/actions.c:642 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:643 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:661 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Schopnosti fotoaparátu : %s\n" + +#: gphoto2/actions.c:662 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Podpora sériového portu : %s\n" + +#: gphoto2/actions.c:664 +#, c-format +msgid "USB support : %s\n" +msgstr "Podpora USB : %s\n" + +#: gphoto2/actions.c:667 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Podporované rychlosti přenosu :\n" + +#: gphoto2/actions.c:669 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:672 +#, c-format +msgid "Capture choices :\n" +msgstr "Možnosti zachycení :\n" + +#: gphoto2/actions.c:674 +#, c-format +msgid " : Image\n" +msgstr " : Obrázek\n" + +#: gphoto2/actions.c:678 +#, c-format +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:682 +#, c-format +msgid " : Audio\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid " : Preview\n" +msgstr " : Náhled\n" + +#: gphoto2/actions.c:690 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Zachytávání nepodporováno ovladačem\n" + +#: gphoto2/actions.c:692 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Podpora konfigurace : %s\n" + +#: gphoto2/actions.c:694 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Odstranit vybrané soubory z fotoaparátu: %s\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Odstranit všechny soubory z fotoaparátu: %s\n" + +#: gphoto2/actions.c:700 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Podpora náhledů souborů : %s\n" + +#: gphoto2/actions.c:703 +#, c-format +msgid "File upload support : %s\n" +msgstr "Podpora ukládání souborů : %s\n" + +#: gphoto2/actions.c:719 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Porty musí vypadat jako 'serial:/dev/ttyS0' nebo 'usb;', ale v '%s' chybí dvojtečka, takže budu hádat, co tím myslíte." + +#: gphoto2/actions.c:753 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Port, který jste určili, ('%s'), nelze najít. Zadejte prosím jeden z portů nalezených 'gphoto2 --list-ports' a ujistěte se, že zápis je správný (např. s předponou 'serial:' nebo 'usb:')." + +#: gphoto2/actions.c:785 +#, c-format +msgid "About the camera driver:" +msgstr "O ovladači fotoaparátu:" + +#: gphoto2/actions.c:798 +#, c-format +msgid "Camera summary:" +msgstr "Shrnutí fotoaparátu:" + +#: gphoto2/actions.c:811 +#, c-format +msgid "Camera manual:" +msgstr "Manuál fotoaparátu:" + +#: gphoto2/actions.c:826 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Můžete určovat rychlosti jen pro sériové porty." + +#: gphoto2/actions.c:879 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2 port napsal Bart van Leeuwen\n" + +#: gphoto2/actions.c:883 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright © 2000-%d Lutz Mueller a další\n" +"%s\n" +"gphoto2 je dodáváno BEZ ZÁRUKY, v rozsahu povoleném zákonem. Můžete\n" +"šířit kopie gphoto2 za podmínek GNU General Public License. Pro více\n" +"informací o těchto věcech viz soubor COPYING.\n" +"\n" +"Tato verze gphoto2 používá následující verze a nastavení softwaru:\n" + +#: gphoto2/actions.c:1004 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Získávání informací o úložištinení pro tento fotoaparát podporováno.\n" + +#: gphoto2/actions.c:1019 +#, c-format +msgid "Read-Write" +msgstr "Čtení a zápis" + +#: gphoto2/actions.c:1022 +#, c-format +msgid "Read-Only" +msgstr "Jen čtení" + +#: gphoto2/actions.c:1025 +#, c-format +msgid "Read-only with delete" +msgstr "Jen čtení a odstraňování" + +#: gphoto2/actions.c:1028 gphoto2/actions.c:1038 +#, c-format +msgid "Unknown" +msgstr "Neznámé" + +#: gphoto2/actions.c:1041 +#, c-format +msgid "Fixed ROM" +msgstr "Pevná ROM" + +#: gphoto2/actions.c:1044 +#, c-format +msgid "Removable ROM" +msgstr "Výměnná ROM" + +#: gphoto2/actions.c:1047 +#, c-format +msgid "Fixed RAM" +msgstr "Pevná RAM" + +#: gphoto2/actions.c:1050 +#, c-format +msgid "Removable RAM" +msgstr "Výměnná RAM" + +#: gphoto2/actions.c:1060 +#, c-format +msgid "Undefined" +msgstr "Nedefinováno" + +#: gphoto2/actions.c:1063 +#, c-format +msgid "Generic Flat" +msgstr "Obecné ploché" + +#: gphoto2/actions.c:1066 +#, c-format +msgid "Generic Hierarchical" +msgstr "Obecné hierarchické" + +#: gphoto2/actions.c:1069 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Rozložení kamery (DCIM)" + +#: gphoto2/actions.c:1107 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Nahrazuji USB id dodavatale/produktu 0x%x/0x%x s 0x%x/0x%x" + +#: gphoto2/actions.c:1171 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "PŘI POSÍLÁNÍ LADICÍCH ZPRÁV DO KONFERENCE VŽDY PŘILOŽTE NÁSLEDUJÍCÍ ŘÁDKY:" + +#: gphoto2/actions.c:1186 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s bylo přeloženo s následujícími přepínači:" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s nenalezeno ve stromu konfigurace." + +#: gphoto2/actions.c:1364 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Nemohu získat hodnotu textového widgetu %s." + +#: gphoto2/actions.c:1381 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Nemohu získat hodnotu widgetu rozsahu %s." + +#: gphoto2/actions.c:1393 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Nemohu získat hodnotu přepínacího widgetu %s." + +#: gphoto2/actions.c:1405 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Nemohu získat hodnotu widgetu data/času %s." + +#: gphoto2/actions.c:1435 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Nemohu získat hodnotu rádiového widgetu %s." + +#: gphoto2/actions.c:1476 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Nemohu nastavit hodnotu textového widgetu %s na %s." + +#: gphoto2/actions.c:1486 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Zadaná hodnota %s není hodnota s pohyblivou řádovou čárkou." + +#: gphoto2/actions.c:1491 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Zadaná hodnota %f není v očekávaném rozsahu %f – %f." + +#: gphoto2/actions.c:1497 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Nemohu nastavit hodnotu widgetu rozsahu %s na %f." + +#: gphoto2/actions.c:1506 +msgid "off" +msgstr "vypnuto" + +#: gphoto2/actions.c:1507 +msgid "false" +msgstr "ne" + +#: gphoto2/actions.c:1512 +msgid "on" +msgstr "zapnuto" + +#: gphoto2/actions.c:1513 +msgid "true" +msgstr "ano" + +#: gphoto2/actions.c:1518 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Zadaná hodnota %s nená platná hodnota přepínače." + +#: gphoto2/actions.c:1524 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Nemohu nastavit hodnoty %s přepínacího widgetu %s." + +#: gphoto2/actions.c:1537 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Zadaná hodnota %s není platný čas ani celé číslo." + +#: gphoto2/actions.c:1544 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Nemohu nastavyt nový čas widgetu data/času %s na %s." + +#: gphoto2/actions.c:1581 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Možnost %s nebyla nalezena v seznamu." + +#: gphoto2/actions.c:1589 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Widget %s nelze nastavovat." + +#: gphoto2/actions.c:1596 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Nemohu nastavit novou hodnotu nastavení %s položky nastavení %s." + +#: gphoto2/foreach.c:254 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Špatné číslo souboru. Zadali jste %1$i, ale v '%3$s' a jeho podadresářích je k dispozici jen '%2$i' souborů. Nejdříve prosím získejte ze seznamu souborů platné číslo souboru." + +#: gphoto2/foreach.c:279 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "V adresáři '%s' nejsou žádné soubory." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Špatné číslo souboru. Zadali jste %i, ale v '%s' je k dispozici jen jeden soubor." + +#: gphoto2/foreach.c:293 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Špatné číslo souboru. Zadali jste %1$i, ale v '%3$s' je k dispozici jen %2$i souborů. Nejdříve prosím získejte ze seznamu souborů platné číslo souboru." + +#: gphoto2/gp-params.c:70 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Chyba *** \n" + +#: gphoto2/gp-params.c:244 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Pokračujte stisknutím libovolné klávesy.\n" + +#: gphoto2/gp-params.c:266 +#, c-format +msgid "Not enough memory." +msgstr "Nedostatek paměti." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Operace přerušena" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "Pokračovat" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "Zrušit" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "Chyba" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "Nemohu nastavit konfiguraci:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "Konec" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "Zpět" + +#: gphoto2/gphoto2-cmd-config.c:254 +msgid "Time: " +msgstr "Čas: " + +#: gphoto2/gphoto2-cmd-config.c:313 gphoto2/gphoto2-cmd-config.c:341 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "Hodnota: " + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "Ano" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "Ne" + +#: gphoto2/main.c:230 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Doplňování čísel nulami v názvech souborů je možné jen s %%n." + +#: gphoto2/main.c:239 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Nemůžete použít doplňování čísel nulami %%n bez hodnoty přesnosti!" + +#: gphoto2/main.c:255 +#, c-format +msgid "You cannot use '%%n' in combination with non-persistent files!" +msgstr "Nemůžete použít '%%n' v kombinaci s neperzistentními soubory!" + +#: gphoto2/main.c:286 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Název souboru dotaný fotoaparátem ('%s') neobsahuje příponu!" + +#: gphoto2/main.c:341 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Neplatný formát '%s' (chyba na pozici %i)." + +#: gphoto2/main.c:394 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Soubor %s existuje. Přepsat? [y|n] " + +#: gphoto2/main.c:406 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Zadat nový název souboru? [y|n] " + +#: gphoto2/main.c:416 +#, c-format +msgid "Enter new filename: " +msgstr "Zadejte nový název souboru: " + +#: gphoto2/main.c:422 +#, c-format +msgid "Saving file as %s\n" +msgstr "Ukládám souboru jako %s\n" + +#: gphoto2/main.c:607 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Režim time-lapse povolen (interval: %ds).\n" + +#: gphoto2/main.c:610 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Pripraven, čekám na SIGUSR1 před zachytáváním.\n" + +#: gphoto2/main.c:619 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Zachytávám políčko č. %d...\n" + +#: gphoto2/main.c:621 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Zachytávám políčko č. %d/%d...\n" + +#: gphoto2/main.c:628 +msgid "Could not capture." +msgstr "Nemohu zachytávat." + +#: gphoto2/main.c:637 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Zachytávání selhalo (problém automatického zaostřování?)...\n" + +#: gphoto2/main.c:651 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Nový soubor je na fotoaparátu v umístění %s%s%s\n" + +#: gphoto2/main.c:660 gphoto2/main.c:797 +msgid "Could not set folder." +msgstr "Nemohu nastavit adresář:" + +#: gphoto2/main.c:667 gphoto2/main.c:803 +msgid "Could not get image." +msgstr "Nemohu získat obrázek." + +#: gphoto2/main.c:674 gphoto2/main.c:810 +msgid "Buggy libcanon.so?" +msgstr "Chyba v libcanon.so?" + +#: gphoto2/main.c:680 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Odstraňuji soubor %s%s%s z fotoaparátu\n" + +#: gphoto2/main.c:685 gphoto2/main.c:819 +msgid "Could not delete image." +msgstr "Nemohu odstranit obrázek." + +#: gphoto2/main.c:707 +msgid "Could not close camera connection." +msgstr "Nemohu zavřít připojení k fotoaparátu." + +#: gphoto2/main.c:721 +#, c-format +msgid "Sleeping for %d second(s)...\n" +msgstr "Spím na %d sekund...\n" + +#: gphoto2/main.c:726 gphoto2/main.c:754 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Probuzen pomocí SIGUSR1...\n" + +#: gphoto2/main.c:729 +#, c-format +msgid "not sleeping (%d seconds behind schedule)\n" +msgstr "nespím (%d sekund pozadu vůči plánu)\n" + +#: gphoto2/main.c:771 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Čekám na události od fotoaparátu. Přerušte stisknutím Ctrl-C.\n" + +#: gphoto2/main.c:791 +#, c-format +msgid "New file %s/%s, downloading...\n" +msgstr "Nový soubor %s/%s, stahuji...\n" + +#: gphoto2/main.c:915 +#, c-format +msgid "ERROR: " +msgstr "CHYBA: " + +#: gphoto2/main.c:938 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Končím...\n" + +#: gphoto2/main.c:944 +#, c-format +msgid "Aborted.\n" +msgstr "Skončil jsem.\n" + +#: gphoto2/main.c:949 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Přerušuji...\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Použijte následující syntax a:b=c:d pro obsluhu libovolného zařízení detekovaného jako a:b místo toho jako c:d. a b c d by měly být šestnáctková čísla začínající '0x'.\n" + +#: gphoto2/main.c:1245 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 bylo přeloženo bez podpory pro CDK." + +#: gphoto2/main.c:1433 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Operace přerušena.\n" + +#: gphoto2/main.c:1437 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Chyba (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1441 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Pro ladicí zprávy prosím použijte přepínač --debug.\n" +"Ladicí zprávy mohou pomoci nalézt řešení vašeho problému.\n" +"Pokud hodláte poslat chybové nebo ladicí zprávy do\n" +"konference vývojářů gphoto ,\n" +"spusťte prosím gphoto2 následovně:\n" +"\n" + +#: gphoto2/main.c:1530 +msgid "Print complete help message on program usage" +msgstr "Vypsat úplnou zprávu nápovědy o používání programu" + +#: gphoto2/main.c:1532 +msgid "Print short message on program usage" +msgstr "Vypsat krátkou zprávu o používání programu" + +#: gphoto2/main.c:1534 +msgid "Turn on debugging" +msgstr "Zapnout ladění" + +#: gphoto2/main.c:1536 +msgid "Name of file to write debug info to" +msgstr "Název souboru, do kterého zapisovat ladicí informace" + +#: gphoto2/main.c:1536 gphoto2/main.c:1541 gphoto2/main.c:1547 +msgid "FILENAME" +msgstr "NÁZEVSOUBORU" + +#: gphoto2/main.c:1538 +msgid "Quiet output (default=verbose)" +msgstr "Tichý výstup (implicitní=podrobný)" + +#: gphoto2/main.c:1540 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Skript, který volat po stahování, zachytávání atd." + +#: gphoto2/main.c:1547 +msgid "Specify port device" +msgstr "Určení zařízení portu" + +#: gphoto2/main.c:1549 +msgid "Specify serial transfer speed" +msgstr "Určení rychlosti sériového přenosu" + +#: gphoto2/main.c:1549 +msgid "SPEED" +msgstr "RYCHLOST" + +#: gphoto2/main.c:1551 +msgid "Specify camera model" +msgstr "Určení modelu fotoaparátu" + +#: gphoto2/main.c:1551 +msgid "MODEL" +msgstr "MODEL" + +#: gphoto2/main.c:1553 +msgid "(expert only) Override USB IDs" +msgstr "(jen pro experty) Přebít USB ID" + +#: gphoto2/main.c:1553 +msgid "USBIDs" +msgstr "USBID" + +#: gphoto2/main.c:1559 +msgid "Display version and exit" +msgstr "Zobrazit verzi a skončit" + +#: gphoto2/main.c:1561 +msgid "List supported camera models" +msgstr "Vypsat podporované modly fotoaparátů" + +#: gphoto2/main.c:1563 +msgid "List supported port devices" +msgstr "Vypsat podporovaná zařízení portu" + +#: gphoto2/main.c:1565 +msgid "Display camera/driver abilities" +msgstr "Zobrazit schopnosti fotoaparátu/ovladače" + +#: gphoto2/main.c:1572 +msgid "Configure" +msgstr "Nastavit" + +#: gphoto2/main.c:1575 +msgid "List configuration tree" +msgstr "Vypsat strom konfigurace" + +#: gphoto2/main.c:1577 +msgid "Get configuration value" +msgstr "Získat hodnotu konfigurace" + +#: gphoto2/main.c:1579 +msgid "Set configuration value" +msgstr "Nastavit hodnotu konfigurace" + +#: gphoto2/main.c:1585 +msgid "Wait for event from camera" +msgstr "Čekat na události od fotoaparátu" + +#: gphoto2/main.c:1588 +msgid "Capture a quick preview" +msgstr "Zachytit rychlý náhled" + +#: gphoto2/main.c:1590 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Nastavit počet políček, která zachytávat (implicitní=nekonečno)" + +#: gphoto2/main.c:1590 +msgid "COUNT" +msgstr "POČET" + +#: gphoto2/main.c:1592 +msgid "Set capture interval in seconds" +msgstr "Nastavit interval zachytávání" + +#: gphoto2/main.c:1592 +msgid "SECONDS" +msgstr "SEKUND" + +#: gphoto2/main.c:1594 +msgid "Reset capture interval on signal (default=no)" +msgstr "Vynulovat interval zachytávání při signálu (implicitní=ne)" + +#: gphoto2/main.c:1596 +msgid "Capture an image" +msgstr "Zachytit obrázek" + +#: gphoto2/main.c:1598 +msgid "Capture an image and download it" +msgstr "Zachytit obrázek a stánout jej" + +#: gphoto2/main.c:1600 +msgid "Capture a movie" +msgstr "Zachytit film" + +#: gphoto2/main.c:1602 +msgid "Capture an audio clip" +msgstr "Zachytit zvukový klip" + +#: gphoto2/main.c:1604 +msgid "Wait for shutter release on the camera and download" +msgstr "Čekat na uvolnění závěrky fotoaparátu a stáhnout" + +#: gphoto2/main.c:1610 +msgid "List folders in folder" +msgstr "Vypsat adresáře v adresáři" + +#: gphoto2/main.c:1612 +msgid "List files in folder" +msgstr "Vypsat soubory v adresáři" + +#: gphoto2/main.c:1614 +msgid "Create a directory" +msgstr "Vytvořit adresář" + +#: gphoto2/main.c:1614 gphoto2/main.c:1616 +msgid "DIRNAME" +msgstr "NÁZEVADRESÁŘE" + +#: gphoto2/main.c:1616 +msgid "Remove a directory" +msgstr "Odstranit adresář" + +#: gphoto2/main.c:1618 +msgid "Display number of files" +msgstr "Zobrazit počet souborů" + +#: gphoto2/main.c:1620 +msgid "Get files given in range" +msgstr "Získat soubory dané v rozsahu" + +#: gphoto2/main.c:1620 gphoto2/main.c:1624 gphoto2/main.c:1629 +#: gphoto2/main.c:1636 gphoto2/main.c:1642 gphoto2/main.c:1647 +msgid "RANGE" +msgstr "ROZSAH" + +#: gphoto2/main.c:1622 +msgid "Get all files from folder" +msgstr "Získat všechny soubory z adresáře" + +#: gphoto2/main.c:1624 +msgid "Get thumbnails given in range" +msgstr "Získat miniatury dané v rozsahu" + +#: gphoto2/main.c:1627 +msgid "Get all thumbnails from folder" +msgstr "Získat všechny náhledy z adresáře" + +#: gphoto2/main.c:1629 +msgid "Get metadata given in range" +msgstr "Získat metadata daná v rozsahu" + +#: gphoto2/main.c:1631 +msgid "Get all metadata from folder" +msgstr "Získat všechna metadata z adresáře" + +#: gphoto2/main.c:1633 +msgid "Upload metadata for file" +msgstr "Uložit metadata souboru" + +#: gphoto2/main.c:1636 +msgid "Get raw data given in range" +msgstr "Získat neupravená data daná v rozsahu" + +#: gphoto2/main.c:1639 +msgid "Get all raw data from folder" +msgstr "Získat neupravená data z adresáře" + +#: gphoto2/main.c:1642 +msgid "Get audio data given in range" +msgstr "Získat zvuková data daná v rozsahu" + +#: gphoto2/main.c:1645 +msgid "Get all audio data from folder" +msgstr "Získat všechna zvuková data z adresáře" + +#: gphoto2/main.c:1647 +msgid "Delete files given in range" +msgstr "Odstranit soubory dané v rozsahu" + +#: gphoto2/main.c:1649 +msgid "Delete all files in folder" +msgstr "Odstranit všechny soubory v adresáři" + +#: gphoto2/main.c:1651 +msgid "Upload a file to camera" +msgstr "Uložit soubor do fotoaparátu" + +#: gphoto2/main.c:1651 +msgid "filename" +msgstr "názevsouboru" + +#: gphoto2/main.c:1653 +msgid "Specify a filename or filename pattern" +msgstr "Určení názvu souboru nebo vzoru názvů souborů" + +#: gphoto2/main.c:1653 +msgid "FILENAME_PATTERN" +msgstr "VZOR_NÁZVŮ_SOUBORŮ" + +#: gphoto2/main.c:1655 +msgid "Specify camera folder (default=\"/\")" +msgstr "Určení adresáře fotoaparátu (implicitní=\"/\")" + +#: gphoto2/main.c:1655 +msgid "FOLDER" +msgstr "ADRESÁŘ" + +#: gphoto2/main.c:1657 +msgid "Recursion (default for download)" +msgstr "Rekurze (implicitní pro stahování)" + +#: gphoto2/main.c:1659 +msgid "No recursion (default for deletion)" +msgstr "Žádná rekurze (implicitní pro odstraňování)" + +#: gphoto2/main.c:1661 +msgid "Process new files only" +msgstr "Zpracovávat jen nové soubory" + +#: gphoto2/main.c:1663 +msgid "Overwrite files without asking" +msgstr "Přepisovat soubory bez ptaní" + +#: gphoto2/main.c:1669 +msgid "Send file to stdout" +msgstr "Poslat soubor na stdout" + +#: gphoto2/main.c:1671 +msgid "Print filesize before data" +msgstr "Vytisknout před daty velikost souboru" + +#: gphoto2/main.c:1673 +msgid "List auto-detected cameras" +msgstr "Vypsat automaticky detekované fotoaparáty" + +#: gphoto2/main.c:1677 gphoto2/shell.c:133 +msgid "Show EXIF information" +msgstr "Zobrazit informace EXIF" + +#: gphoto2/main.c:1680 gphoto2/shell.c:127 +msgid "Show info" +msgstr "Zobrazit informace" + +#: gphoto2/main.c:1682 +msgid "Show summary" +msgstr "Zobrazit souhrn" + +#: gphoto2/main.c:1684 +msgid "Show camera driver manual" +msgstr "Zobrazit manuál ovladače fotoaparátu" + +#: gphoto2/main.c:1686 +msgid "About the camera driver manual" +msgstr "O manuálu ovladače fotoaparátu" + +#: gphoto2/main.c:1688 +msgid "Show storage information" +msgstr "Zobrazit informace o úložišti" + +#: gphoto2/main.c:1690 +msgid "gPhoto shell" +msgstr "shell gPhoto" + +#: gphoto2/main.c:1696 +msgid "Common options" +msgstr "Časté přepínače" + +#: gphoto2/main.c:1698 +msgid "Miscellaneous options (unsorted)" +msgstr "Různé přepínače (netříděné)" + +#: gphoto2/main.c:1700 +msgid "Get information on software and host system (not from the camera)" +msgstr "Získat informaci o software a hostitelském systému (ne z fotoaparátu)" + +#: gphoto2/main.c:1702 +msgid "Specify the camera to use" +msgstr "Určení fotoaparátu, který používat" + +#: gphoto2/main.c:1704 +msgid "Camera and software configuration" +msgstr "Nastavení fotoaparátu a software" + +#: gphoto2/main.c:1706 +msgid "Capture an image from or on the camera" +msgstr "Zachytit obrázek z nebo ve fotoaparátu" + +#: gphoto2/main.c:1708 +msgid "Downloading, uploading and manipulating files" +msgstr "Stahování, ukládání a práce se soubory" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"ID obrázků musí být číslo větší než nula." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"ID obrázku %i příliš velké." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Rozsahy musí být odděleny pomocí ','." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Rozsahy musí začínat číslem." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Neočekávaný znak '%c'." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Sestupné rozsahy nejsou povoleny. Zadali jste rozsah od %i do %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Chyba (%i: '%s') ***" + +#: gphoto2/shell.c:116 +msgid "Change to a directory on the camera" +msgstr "Přejít do adresáře ve fotoaparátu" + +#: gphoto2/shell.c:117 gphoto2/shell.c:119 gphoto2/shell.c:130 +#: gphoto2/shell.c:131 +msgid "directory" +msgstr "adresář" + +#: gphoto2/shell.c:118 +msgid "Change to a directory on the local drive" +msgstr "Přejít do adresáře na místním disku" + +#: gphoto2/shell.c:120 gphoto2/shell.c:145 gphoto2/shell.c:146 +msgid "Exit the gPhoto shell" +msgstr "Ukončit shell gPhoto" + +#: gphoto2/shell.c:121 +msgid "Download a file" +msgstr "Stáhnout soubor" + +#: gphoto2/shell.c:121 gphoto2/shell.c:122 gphoto2/shell.c:124 +#: gphoto2/shell.c:126 gphoto2/shell.c:128 gphoto2/shell.c:129 +#: gphoto2/shell.c:134 +msgid "[directory/]filename" +msgstr "[adresář/]názevsouboru" + +#: gphoto2/shell.c:122 +msgid "Upload a file" +msgstr "Uložit soubor" + +#: gphoto2/shell.c:123 +msgid "Download a thumbnail" +msgstr "Stáhnout náhled" + +#: gphoto2/shell.c:125 +msgid "Download raw data" +msgstr "Stáhnout neupravená data" + +#: gphoto2/shell.c:129 +msgid "Delete" +msgstr "Odstranit" + +#: gphoto2/shell.c:130 +msgid "Create Directory" +msgstr "Vytvořit adresář" + +#: gphoto2/shell.c:131 +msgid "Remove Directory" +msgstr "Odstranit adresář" + +#: gphoto2/shell.c:136 gphoto2/shell.c:147 +msgid "Displays command usage" +msgstr "Zobrazí použití příkazů" + +#: gphoto2/shell.c:137 gphoto2/shell.c:147 +msgid "[command]" +msgstr "[příkaz]" + +#: gphoto2/shell.c:138 +msgid "List the contents of the current directory" +msgstr "Vypsat obsah aktuálního adresáře" + +#: gphoto2/shell.c:139 +msgid "[directory/]" +msgstr "[adresář/]" + +#: gphoto2/shell.c:140 +msgid "List configuration variables" +msgstr "Vypsat proměnné konfigurace" + +#: gphoto2/shell.c:141 +msgid "Get configuration variable" +msgstr "Získat proměnnou konfigurace" + +#: gphoto2/shell.c:141 +msgid "name" +msgstr "název" + +#: gphoto2/shell.c:142 +msgid "Set configuration variable" +msgstr "Nastavit proměnnou konfigurace" + +#: gphoto2/shell.c:142 +msgid "name=value" +msgstr "název=hodnota" + +#: gphoto2/shell.c:143 +msgid "Capture a single image" +msgstr "Zachytit jeden obrázek" + +#: gphoto2/shell.c:144 +msgid "Capture a single image and download it" +msgstr "Zachytit jeden obrázek a stáhnout jej" + +#: gphoto2/shell.c:469 +msgid "Invalid command." +msgstr "Neplatný příkaz." + +#: gphoto2/shell.c:478 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Příkaz '%s' vyžaduje argument." + +#: gphoto2/shell.c:531 +msgid "Invalid path." +msgstr "Neplatná cesta." + +#: gphoto2/shell.c:577 +msgid "Could not find home directory." +msgstr "Nemohu nalézt domovský adresář." + +#: gphoto2/shell.c:586 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Nemohu přejít do místního adresáře '%s'." + +#: gphoto2/shell.c:589 +#, c-format +msgid "Local directory now '%s'." +msgstr "Místní adresář je nyní '%s'." + +#: gphoto2/shell.c:627 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Vzdálený adresář je nyní '%s'." + +#: gphoto2/shell.c:843 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config potřebuje druhý prametr.\n" + +#: gphoto2/shell.c:877 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Příkaz '%s' nenalezen. Použijte 'help' pro získání seznamu dostupných příkazů." + +#: gphoto2/shell.c:884 +#, c-format +msgid "Help on \"%s\":" +msgstr "Nápověda pro \"%s\":" + +#: gphoto2/shell.c:886 +#, c-format +msgid "Usage:" +msgstr "Použití:" + +#: gphoto2/shell.c:889 +#, c-format +msgid "Description:" +msgstr "Popis:" + +#: gphoto2/shell.c:891 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Argumenty v hranatých závorkách [] jsou nepovinné" + +#: gphoto2/shell.c:912 +#, c-format +msgid "Available commands:" +msgstr "Dostupné příkazy:" + +#: gphoto2/shell.c:917 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Pro získání nápovědy o konkrétním příkazu napište 'help název-příkazu'." + +#~ msgid "[name]" +#~ msgstr "[název]" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/da.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/da.po new file mode 100644 index 00000000..f6ba1eeb --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/da.po @@ -0,0 +1,1627 @@ +# translation of gphoto2 to Danish +# Danish translation of gPhoto +# Copyright (C) 2000, 2005 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# Andreas Hyden 2000. +# Stefan Bjørnelund 2002. +# Sverker Wiberg 2002. +# Daniel Nylander , 2009, 2010. +# Keld Simonsen , 2003,2005,2011,2015. +# Mogens Jaeger , 2013. +msgid "" +msgstr "" +"Project-Id-Version: gphoto2-2.5.6\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2014-12-21 20:43+0100\n" +"PO-Revision-Date: 2015-04-27 02:51+0200\n" +"Last-Translator: Keld Simonsen \n" +"Language-Team: Danish \n" +"Language: da\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Antal filer i mappen '%s': %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Der findes %d mappe i mappen '%s':\n" +msgstr[1] "Der findes %d mapper i mappen '%s':\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Der findes ingen filer i mappen '%s':\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Der findes %d fil i mappen '%s':\n" +msgstr[1] "Der findes %d filer i mappen '%s':\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Information om filen '%s' (mappe '%s'):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Fil:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Ingen tilgængelige.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime-type: '%s'\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Størrelse: %lu byte\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Bredde: %i punkter\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Højde: %i punkter\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Hjemhentet: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:712 +#: gphoto2/actions.c:715 gphoto2/actions.c:718 gphoto2/actions.c:721 +#: gphoto2/actions.c:724 gphoto2/actions.c:1775 gphoto2/actions.c:2012 +msgid "yes" +msgstr "ja" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:712 +#: gphoto2/actions.c:715 gphoto2/actions.c:718 gphoto2/actions.c:721 +#: gphoto2/actions.c:724 gphoto2/actions.c:1769 gphoto2/actions.c:2006 +msgid "no" +msgstr "nej" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Rettigheder: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "læs/slet" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "læs" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "slet" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "ingen" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Tid: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Miniature: \n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Lyddata:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime-type: '%s'\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Størrelse: %lu byte\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Hjemhentet: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Kunne ikke tolke EXIF-data." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF-mærker:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Mærke" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Værdi" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF-data indeholder en miniature (%i byte)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 er oversat uden EXIF-understøttelse." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Antal understøttede kameraer: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Understøttede kameraer:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t'%s' (TESTER)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t'%s' (EKSPERIMENTEL)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t'%s'\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Enheder fundet: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Søgesti Beskrivelse\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Model" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Kameraets faciliteter : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Serieportsunderstøttelse : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "USB-understøttelse : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Overføringshastigheder som understøttes : \n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Optagelses-valg :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Billede\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Lyd\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Smugkig\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Optagelse ikke understøttet af driveren\n" + +#: gphoto2/actions.c:711 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Konfigurationsunderstøttelse :%s\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Slet valgte filer på kamera : %s\n" + +#: gphoto2/actions.c:716 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Slet alle filer på kamera : %s\n" + +#: gphoto2/actions.c:719 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Fil-smugkig (miniature) understøttelse: %s\n" + +#: gphoto2/actions.c:722 +#, c-format +msgid "File upload support : %s\n" +msgstr "Filoplægnings-understøttelse : %s\n" + +#: gphoto2/actions.c:739 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Porte skal se ud som 'serial:/dev/ttyS0' eller 'usb:', men '%s' mangler et kolon, så jeg vil gætte på hvad du mener." + +#: gphoto2/actions.c:773 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Den port du specificerede ('%s') kan ikke findes. Vær venlig at specificere en af de porte som findes af 'gphoto2 --list-ports' og forsikr dig om at stavningen er korrekt (dvs med præfikset 'serial:' eller 'usb:')." + +#: gphoto2/actions.c:806 +#, c-format +msgid "About the camera driver:" +msgstr "Om kamera-drivrutinen:" + +#: gphoto2/actions.c:819 +#, c-format +msgid "Camera summary:" +msgstr "Kamera-oversigt:" + +#: gphoto2/actions.c:832 +#, c-format +msgid "Camera manual:" +msgstr "Kamera-manual:" + +#: gphoto2/actions.c:849 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Du kan kun specificere hastigheder for serielle porte." + +#: gphoto2/actions.c:899 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2-portering af Bart van Leeuwen\n" + +#: gphoto2/actions.c:903 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright © 2000-%d Lutz Mueller og andre\n" +"%s\n" +"gphoto2 kommer UDEN GARANTI, så vidt som lov tillader. Du må\n" +"videredistribuere kopier af gphoto2 under betingelserne i GNU General Public\n" +"License. For yderligere information, se filerne med navnet COPYING.\n" +"\n" +"Denne version af gphoto2 bruger følgende programversioner og tilvalg:\n" + +#: gphoto2/actions.c:1003 +msgid "Could not open 'movie.mjpg'." +msgstr "Kunne ikke åbne 'movie.mjpg'." + +#: gphoto2/actions.c:1010 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Optager forhåndsvisningsbilleder som film til '%s'. Tryk Ctrl-C for at afbryde.\n" + +#: gphoto2/actions.c:1014 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Optager forhåndsvisningsbilleder som film til '%s' i %d sekunder.\n" + +#: gphoto2/actions.c:1019 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Optager %d forhåndsvisningsbilleder som film til '%s'.\n" + +#: gphoto2/actions.c:1029 +msgid "Movie capture error... Exiting." +msgstr "Fejl ved filmoptagelse...Afslutter." + +#: gphoto2/actions.c:1034 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Fejl ved filmoptagelse... Uhåndteret MIME-type '%s'." + +#: gphoto2/actions.c:1041 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl-C trykket... Afslutter.\n" + +#: gphoto2/actions.c:1055 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Filmoptagelse afsluttet (%d billeder)\n" + +#: gphoto2/actions.c:1085 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Venter på hændelser fra kamera. Tryk Ctrl-C for at afbryde.\n" + +#: gphoto2/actions.c:1091 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Venter på %d billeder fra kameraet. Tryk Ctrl-C for at afbryde.\n" + +#: gphoto2/actions.c:1096 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Venter i %d millisekunder på hændelser fra kameraet. Tryk Ctrl-C for at afbryde.\n" + +#: gphoto2/actions.c:1101 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Venter i %d sekunder på hændelser fra kamera. Tryk Ctrl-C for at afbryde.\n" + +#: gphoto2/actions.c:1104 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Venter på %d hændelser fra kamera. Tryk Ctrl-C for at afbryde.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Venter på %s-hændelse fra kamera. Tryk Ctrl-C for at afbryde.\n" + +#: gphoto2/actions.c:1152 gphoto2/actions.c:1166 gphoto2/actions.c:1178 +#: gphoto2/actions.c:1216 gphoto2/actions.c:1224 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "Hændelse fundet, stopper ventning!\n" + +#: gphoto2/actions.c:1188 gphoto2/main.c:824 +msgid "Could not set folder." +msgstr "Kunne ikke sætte mappe." + +#: gphoto2/actions.c:1194 gphoto2/main.c:831 +msgid "Could not get image." +msgstr "Kunne ikke finde billede." + +#: gphoto2/actions.c:1201 gphoto2/main.c:838 +msgid "Buggy libcanon.so?" +msgstr "Fejlbehæftet libcanon.so?" + +#: gphoto2/actions.c:1211 gphoto2/main.c:850 +msgid "Could not delete image." +msgstr "Kunne ikke slette billede." + +#: gphoto2/actions.c:1243 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Hentning af lagringsinformation understøttes ikke for dette kamera.\n" + +#: gphoto2/actions.c:1258 +#, c-format +msgid "Read-Write" +msgstr "Læs-skriv" + +#: gphoto2/actions.c:1261 +#, c-format +msgid "Read-Only" +msgstr "Skrivebeskyttet" + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Read-only with delete" +msgstr "Skrivebeskyttet med sletning" + +#: gphoto2/actions.c:1267 gphoto2/actions.c:1277 +#, c-format +msgid "Unknown" +msgstr "Ukendt" + +#: gphoto2/actions.c:1280 +#, c-format +msgid "Fixed ROM" +msgstr "Fast ROM" + +#: gphoto2/actions.c:1283 +#, c-format +msgid "Removable ROM" +msgstr "Flytbar ROM" + +#: gphoto2/actions.c:1286 +#, c-format +msgid "Fixed RAM" +msgstr "Fast RAM" + +#: gphoto2/actions.c:1289 +#, c-format +msgid "Removable RAM" +msgstr "Flytbar RAM" + +#: gphoto2/actions.c:1299 +#, c-format +msgid "Undefined" +msgstr "Udefineret" + +#: gphoto2/actions.c:1302 +#, c-format +msgid "Generic Flat" +msgstr "Generelt fladt" + +#: gphoto2/actions.c:1305 +#, c-format +msgid "Generic Hierarchical" +msgstr "Generelt hierarkisk" + +#: gphoto2/actions.c:1308 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Kameralayout (DCIM)" + +#: gphoto2/actions.c:1346 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Tilsidesætter USB-producent-id 0x%x/0x%x med 0x%x/0x%x" + +#: gphoto2/actions.c:1414 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "INKLUDÉR ALTID DE FØLGENDE LINJER NÅR DU SENDER FEJLSØGNINGSBESKEDER TIL POSTLISTEN:" + +#: gphoto2/actions.c:1429 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s er blevet oversat med de følgende valgmuligheder:" + +#: gphoto2/actions.c:1560 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s ikke fundet i konfigurationstræ." + +#: gphoto2/actions.c:1609 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Kunne ikke få fat på værdien af tekst-felt %s." + +#: gphoto2/actions.c:1626 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Kunne ikke få fat på værdier for interval-felt %s." + +#: gphoto2/actions.c:1638 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Kunne ikke få fat på værdier for afkrydsnings-felt %s." + +#: gphoto2/actions.c:1650 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Kunne ikke få fat på værdier for dato/tid-felt %s." + +#: gphoto2/actions.c:1659 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Brug 'nu' som den aktuelle tid ved indstilling.\n" + +#: gphoto2/actions.c:1681 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Kunne ikke få fat på værdier for radio-felt %s." + +#: gphoto2/actions.c:1725 +#, c-format +msgid "Property %s is read only." +msgstr "Egenskaben %s er skrivebeskyttet." + +#: gphoto2/actions.c:1739 gphoto2/actions.c:1976 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Kunne ikke sætte værdien af tekst-felt %s til %s." + +#: gphoto2/actions.c:1749 gphoto2/actions.c:1986 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Den leverede værdi %s er ikke et komma-tal." + +#: gphoto2/actions.c:1754 gphoto2/actions.c:1991 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Den leverede værdi %f er ikke inden for det forventede interval %f - %f." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Kunne ikke sætte værdien af interval-felt %s til %f." + +#: gphoto2/actions.c:1769 gphoto2/actions.c:2006 +msgid "off" +msgstr "fra" + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +msgid "false" +msgstr "falsk" + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +msgid "on" +msgstr "på" + +#: gphoto2/actions.c:1776 gphoto2/actions.c:2013 +msgid "true" +msgstr "sand" + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Den leverede værdi %s er ikke en gyldig afkrydsningsværdi." + +#: gphoto2/actions.c:1787 gphoto2/actions.c:2024 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Kunne ikke sætte værdien af afkrydsnings-felt %s til %s." + +#: gphoto2/actions.c:1799 +msgid "now" +msgstr "nu" + +#: gphoto2/actions.c:1811 gphoto2/actions.c:2037 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Den leverede værdi %s er hverken et gyldigt tidspunkt eller et heltal." + +#: gphoto2/actions.c:1819 gphoto2/actions.c:2044 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Kunne ikke sætte værdien af dato/tids-felt %s til %s." + +#: gphoto2/actions.c:1866 gphoto2/actions.c:1930 gphoto2/actions.c:2074 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Valget %s blev ikke fundet i liste af muligheder." + +#: gphoto2/actions.c:1874 gphoto2/actions.c:2082 +#, c-format +msgid "The %s widget is not configurable." +msgstr "%s-feltet kan ikke konfigureres." + +#: gphoto2/actions.c:1881 gphoto2/actions.c:1949 gphoto2/actions.c:2089 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Kunne ikke sætte ny konfigurationsværdi %s for konfigurationsindgang %s." + +#: gphoto2/actions.c:1942 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "Widgetten %s har ingen indekseret liste over valg. Brug --set-config-value i stedet." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Fejlagtigt filnummer. Du specificerede %i, men der fandtes kun %i filer tilgængelige i '%s' eller dets underkataloger. Skav venligst et gyldigt filnummer fra en filliste først." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Der findes ingen filer i mappen '%s'." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Fejlagtigt filnummer. Du specificerede %i, men der er kun 1 fil tilgængelig i '%s'." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Dårligt filnummer. Du specificerede %i, men der er kun %i filer tilgængelige i '%s'. Skaf venligst et gyldigt filnummer fra en filliste først." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Fejl *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Tryk på en tast for at fortsætte.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Ikke tilstrækkeligt med hukommelse." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Operationen afbrudt" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Fortsæt" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Annullér" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Fejl" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Kunne ikke sætte konfiguration:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Afslut" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Tilbage" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Tid: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Værdi: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Ja" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Nej" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Udfyldning med nuller i filnavne er kun muligt med %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Du kan ikke bruge %%n udfyldning med nuller uden en præcis værdi!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Filnavnet leveret af kameraet ('%s') indeholder ikke en endelse!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Ugyldigt format '%s' (fejl i position %i)." + +#: gphoto2/main.c:382 gphoto2/main.c:585 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Overspring eksisterende fil %s\n" + +#: gphoto2/main.c:394 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Filen %s eksisterer. Overskriv? Ja/Nej [y|n] " + +#: gphoto2/main.c:406 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Specificér filnavn? Ja/Nej [y|n] " + +#: gphoto2/main.c:418 +#, c-format +msgid "Enter new filename: " +msgstr "Indtast nyt filnavn: " + +#: gphoto2/main.c:424 +#, c-format +msgid "Saving file as %s\n" +msgstr "Gem fil som %s\n" + +#: gphoto2/main.c:623 +msgid "Permission denied" +msgstr "Rettighed nægtet" + +#: gphoto2/main.c:785 +msgid "Could not trigger capture." +msgstr "Kunne ikke udløse optagelse af billede." + +#: gphoto2/main.c:815 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Ny fil er på stedet %s%s%s på kameraet\n" + +#: gphoto2/main.c:845 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Sletter fil %s%s%s på kameraet\n" + +#: gphoto2/main.c:855 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Beholder fil %s%s%s på kameraet\n" + +#: gphoto2/main.c:888 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Hændelse FOLDER_ADDED %s/%s ved ventning, ignorerer.\n" + +#: gphoto2/main.c:898 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Hændelse UNKNOWN %s ved ventning, ignorerer.\n" + +#: gphoto2/main.c:904 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Ukendt hændelsestype %d ved ventning på langtidseksponering, ignorerer.\n" + +#: gphoto2/main.c:922 +msgid "Could not get capabilities?" +msgstr "Kunne ikke få fat på faciliteter?" + +#: gphoto2/main.c:930 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Tilstand for medgået tid aktiveret (interval: %ds).\n" + +#: gphoto2/main.c:933 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Venter på SIGUSR1 for at optage.\n" + +#: gphoto2/main.c:939 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Langtidseksponering aktiveret (eksponeringstid: %ds).\n" + +#: gphoto2/main.c:952 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Optager ramme #%d...\n" + +#: gphoto2/main.c:954 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Optager ramme #%d/%d...\n" + +#: gphoto2/main.c:964 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Kunne ikke sætte langtidseksponering, resultat %d." + +#: gphoto2/main.c:978 +msgid "Could not end capture (bulb mode)." +msgstr "Kunne ikke afslutte optagelse (langtidseksponering)." + +#: gphoto2/main.c:991 +msgid "Could not trigger image capture." +msgstr "Kunne ikke udløse optagelse af billede." + +#: gphoto2/main.c:998 +msgid "Could not capture image." +msgstr "Kunne ikke optage billede." + +#: gphoto2/main.c:1005 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Optagelse mislykkedes (autofokus-problem?)...\n" + +#: gphoto2/main.c:1016 +msgid "Could not capture." +msgstr "Kunne ikke optage." + +#: gphoto2/main.c:1048 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Venter på næste optagegelsestidspunkt %ld sekunder...\n" + +#: gphoto2/main.c:1057 gphoto2/main.c:1098 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Vækket af SIGUSR1...\n" + +#: gphoto2/main.c:1070 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "sover ikke (%ld sekunder bagefter planen)\n" + +#: gphoto2/main.c:1213 +#, c-format +msgid "ERROR: " +msgstr "FEJL: " + +#: gphoto2/main.c:1236 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Afbryder...\n" + +#: gphoto2/main.c:1242 +#, c-format +msgid "Aborted.\n" +msgstr "Afbrudt.\n" + +#: gphoto2/main.c:1247 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Annullerer...\n" + +#: gphoto2/main.c:1397 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Brug den følgende syntaks a:b=c:d for at behandle en USB-enhed detekteret som a:b som c:d i stedet. a b c d skal være hexadecimale tal som begynder med '0x'.\n" + +#: gphoto2/main.c:1570 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 er blevet oversat uden understøttelse for CDK." + +#: gphoto2/main.c:1834 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Operationen annulleret.\n" + +#: gphoto2/main.c:1838 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Fejl: Intet kamera fundet. ***\n" +"\n" + +#: gphoto2/main.c:1840 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Fejl (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1845 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"For fejlsøgningsmeddelelser brug venligst flaget --debug.\n" +"Fejlsøgningsmeddelelser kan hjælpe med at finde en løsning til dit problem.\n" +"Hvis du påtænker at sende en fejl- eller fejlsøgningsmeddelelse til gphoto-\n" +"udviklernes postliste , så kør venligst\n" +"gphoto2 som følger:\n" + +#: gphoto2/main.c:1866 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "Vær sikker på at der er tilstrækkeligt med anførselstegn omkring argumenterne.\n" + +#: gphoto2/main.c:1933 +msgid "Print complete help message on program usage" +msgstr "Udskriv komplet hjælpemeddelelse om brug" + +#: gphoto2/main.c:1935 +msgid "Print short message on program usage" +msgstr "Udskriv kort meddelelse om brug" + +#: gphoto2/main.c:1937 +msgid "Turn on debugging" +msgstr "Aktivér fejlsøgning" + +#: gphoto2/main.c:1939 +msgid "Set debug level [error|debug|data|all]" +msgstr "Sæt fejlsøgnings-niveau [error|debug|data|all]" + +#: gphoto2/main.c:1941 +msgid "Name of file to write debug info to" +msgstr "Navn på fil at skrive fejlsøgningsinformation til" + +#: gphoto2/main.c:1941 gphoto2/main.c:1946 gphoto2/main.c:1952 +#: gphoto2/main.c:2076 +msgid "FILENAME" +msgstr "FILNAVN" + +#: gphoto2/main.c:1943 +msgid "Quiet output (default=verbose)" +msgstr "Stille uddata (standard=snaksalig)" + +#: gphoto2/main.c:1945 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Hook-skript at kalde efter hentninger, optagelser, osv." + +#: gphoto2/main.c:1952 +msgid "Specify device port" +msgstr "Specificér portenhed" + +#: gphoto2/main.c:1954 +msgid "Specify serial transfer speed" +msgstr "Specificér overføringshastighed" + +#: gphoto2/main.c:1954 +msgid "SPEED" +msgstr "GASTIGHED" + +#: gphoto2/main.c:1956 +msgid "Specify camera model" +msgstr "Specificér kamera-model" + +#: gphoto2/main.c:1956 +msgid "MODEL" +msgstr "MODEL" + +#: gphoto2/main.c:1958 +msgid "(expert only) Override USB IDs" +msgstr "(kun for eksperter) tilsidesæt USB ID'er" + +#: gphoto2/main.c:1958 +msgid "USBIDs" +msgstr "USBID'er" + +#: gphoto2/main.c:1964 +msgid "Display version and exit" +msgstr "Vis version og afslut" + +#: gphoto2/main.c:1966 +msgid "List supported camera models" +msgstr "Lister understøttede kamera-modeller" + +#: gphoto2/main.c:1968 +msgid "List supported port devices" +msgstr "Lister understøttede portenheder" + +#: gphoto2/main.c:1970 +msgid "Display camera/driver abilities" +msgstr "Vis kamera/driver-faciliteter" + +#: gphoto2/main.c:1977 +msgid "Configure" +msgstr "Konfigurér" + +#: gphoto2/main.c:1980 +msgid "List configuration tree" +msgstr "Vís konfigurationstræ" + +#: gphoto2/main.c:1982 +msgid "Dump full configuration tree" +msgstr "Drop fuldt konfigurationstræ" + +#: gphoto2/main.c:1984 +msgid "Get configuration value" +msgstr "Find konfigurationsværdi" + +#: gphoto2/main.c:1986 +msgid "Set configuration value or index in choices" +msgstr "Sæt konfigurationsværdi eller indeks i valg" + +#: gphoto2/main.c:1988 +msgid "Set configuration value index in choices" +msgstr "Sæt konfigurationsværdi af indeks i valg" + +#: gphoto2/main.c:1990 +msgid "Set configuration value" +msgstr "Sæt konfigurationsværdi" + +#: gphoto2/main.c:1992 +msgid "Reset device port" +msgstr "Nulstíl portenhed" + +#: gphoto2/main.c:1998 +msgid "Keep images on camera after capturing" +msgstr "Behold billeder på kameraet efter optagelse" + +#: gphoto2/main.c:2000 +msgid "Remove images from camera after capturing" +msgstr "Fjern billeder fra kameraet efter optagelse" + +#: gphoto2/main.c:2002 +msgid "Wait for event(s) from camera" +msgstr "Vent på hændelser fra kamera" + +#: gphoto2/main.c:2002 gphoto2/main.c:2004 gphoto2/main.c:2011 +#: gphoto2/main.c:2027 +msgid "COUNT" +msgstr "ANTAL" + +#: gphoto2/main.c:2004 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Vent på hændelser fra kameraet og hent nye billeder" + +#: gphoto2/main.c:2007 +msgid "Capture a quick preview" +msgstr "Optag et hurtigt smugkig" + +#: gphoto2/main.c:2009 +msgid "Set bulb exposure time in seconds" +msgstr "Sæt langtidseksponeringstid i sekunder" + +#: gphoto2/main.c:2009 gphoto2/main.c:2013 +msgid "SECONDS" +msgstr "SEKUNDER" + +#: gphoto2/main.c:2011 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Sæt antal billeder der skal optages (standard=uendelig)" + +#: gphoto2/main.c:2013 +msgid "Set capture interval in seconds" +msgstr "Sæt optagelsesinterval i sekunder" + +#: gphoto2/main.c:2015 +msgid "Reset capture interval on signal (default=no)" +msgstr "Nulstil optageinterval ved signal (standard=nej)" + +#: gphoto2/main.c:2017 +msgid "Capture an image" +msgstr "Tag et billede" + +#: gphoto2/main.c:2019 +msgid "Trigger capture of an image" +msgstr "Udløs optagelse af et billede" + +#: gphoto2/main.c:2021 +msgid "Capture an image and download it" +msgstr "Tag et billede og hjemhent det" + +#: gphoto2/main.c:2023 +msgid "Capture a movie" +msgstr "Optag en film" + +#: gphoto2/main.c:2023 +msgid "COUNT or SECONDS" +msgstr "ANTAL eller SEKUNDER" + +#: gphoto2/main.c:2025 +msgid "Capture an audio clip" +msgstr "Optag et lydafsnit" + +#: gphoto2/main.c:2027 +msgid "Wait for shutter release on the camera and download" +msgstr "Vent på aftrykker på kameraet og hent" + +#: gphoto2/main.c:2029 +msgid "Trigger image capture" +msgstr "Udløs optagelse af et billede" + +#: gphoto2/main.c:2035 +msgid "List folders in folder" +msgstr "Vis mapper i mappen" + +#: gphoto2/main.c:2037 +msgid "List files in folder" +msgstr "List filer i mappe" + +#: gphoto2/main.c:2039 +msgid "Create a directory" +msgstr "Opret et katalog" + +#: gphoto2/main.c:2039 gphoto2/main.c:2041 +msgid "DIRNAME" +msgstr "KATNAVN" + +#: gphoto2/main.c:2041 +msgid "Remove a directory" +msgstr "Fjern et katalog" + +#: gphoto2/main.c:2043 +msgid "Display number of files" +msgstr "Vis antal filer" + +#: gphoto2/main.c:2045 +msgid "Get files given in range" +msgstr "Hent filer givet i interval" + +#: gphoto2/main.c:2045 gphoto2/main.c:2049 gphoto2/main.c:2054 +#: gphoto2/main.c:2061 gphoto2/main.c:2067 gphoto2/main.c:2072 +msgid "RANGE" +msgstr "INTERVAL" + +#: gphoto2/main.c:2047 +msgid "Get all files from folder" +msgstr "Hent alle filer fra mappen" + +#: gphoto2/main.c:2049 +msgid "Get thumbnails given in range" +msgstr "Hent alle miniaturer i det givne interval" + +#: gphoto2/main.c:2052 +msgid "Get all thumbnails from folder" +msgstr "Hent alle miniaturer i mappen" + +#: gphoto2/main.c:2054 +msgid "Get metadata given in range" +msgstr "Hent metadata i det givne interval" + +#: gphoto2/main.c:2056 +msgid "Get all metadata from folder" +msgstr "Hent alle metadata fra mappe" + +#: gphoto2/main.c:2058 +msgid "Upload metadata for file" +msgstr "Oplæg metadata for fil" + +#: gphoto2/main.c:2061 +msgid "Get raw data given in range" +msgstr "Hent rådata i det givne interval" + +#: gphoto2/main.c:2064 +msgid "Get all raw data from folder" +msgstr "Hent alle rådata fra mappen" + +#: gphoto2/main.c:2067 +msgid "Get audio data given in range" +msgstr "Hent lyddata i det givne interval" + +#: gphoto2/main.c:2070 +msgid "Get all audio data from folder" +msgstr "Hent alle lyddata fra mappen" + +#: gphoto2/main.c:2072 +msgid "Delete files given in range" +msgstr "Slet filer i det givne interval" + +#: gphoto2/main.c:2074 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Slet alle filer i mappen (--no-recurse som standard)" + +#: gphoto2/main.c:2076 +msgid "Upload a file to camera" +msgstr "Oplæg fil på kamera" + +#: gphoto2/main.c:2078 +msgid "Specify a filename or filename pattern" +msgstr "Specificér et filnavn eller filnavnsmønster" + +#: gphoto2/main.c:2078 +msgid "FILENAME_PATTERN" +msgstr "FILNAVNSMØNSTER" + +#: gphoto2/main.c:2080 +msgid "Specify camera folder (default=\"/\")" +msgstr "Specificér kameramappe (standard=\"/\")" + +#: gphoto2/main.c:2080 +msgid "FOLDER" +msgstr "MAPPE" + +#: gphoto2/main.c:2082 +msgid "Recursion (default for download)" +msgstr "Rekursion (standard for hjemhentning)" + +#: gphoto2/main.c:2084 +msgid "No recursion (default for deletion)" +msgstr "Ej rekursion (standard for sletning)" + +#: gphoto2/main.c:2086 +msgid "Process new files only" +msgstr "Behand kun nye filer" + +#: gphoto2/main.c:2088 +msgid "Overwrite files without asking" +msgstr "Overskriv filer uden at spørge" + +#: gphoto2/main.c:2090 +msgid "Skip existing files" +msgstr "Overspring eksisterende filer" + +#: gphoto2/main.c:2096 +msgid "Send file to stdout" +msgstr "Send fil til stdout" + +#: gphoto2/main.c:2098 +msgid "Print filesize before data" +msgstr "Skriv filstørrelse før data" + +#: gphoto2/main.c:2100 +msgid "List auto-detected cameras" +msgstr "List autodetekterede kameraer" + +#: gphoto2/main.c:2104 gphoto2/shell.c:138 +msgid "Show EXIF information" +msgstr "Vis EXIF-information" + +#: gphoto2/main.c:2107 gphoto2/shell.c:132 +msgid "Show info" +msgstr "Vis info" + +#: gphoto2/main.c:2109 +msgid "Show summary" +msgstr "Vis oversigt" + +#: gphoto2/main.c:2111 +msgid "Show camera driver manual" +msgstr "Vis kameradrivrutinens manual" + +#: gphoto2/main.c:2113 +msgid "About the camera driver manual" +msgstr "Om kameradrivrutinens manual" + +#: gphoto2/main.c:2115 +msgid "Show storage information" +msgstr "Vis lager-information" + +#: gphoto2/main.c:2117 +msgid "gPhoto shell" +msgstr "gPhoto skál" + +#: gphoto2/main.c:2123 +msgid "Common options" +msgstr "Almindelige flag" + +#: gphoto2/main.c:2125 +msgid "Miscellaneous options (unsorted)" +msgstr "Diverse flag (usorterede)" + +#: gphoto2/main.c:2127 +msgid "Get information on software and host system (not from the camera)" +msgstr "Hent information om progbilleder og værtssystem (ikke fra kameraet)" + +#: gphoto2/main.c:2129 +msgid "Specify the camera to use" +msgstr "Specificér kamera der skal bruges" + +#: gphoto2/main.c:2131 +msgid "Camera and software configuration" +msgstr "Kamera- og program-konfiguration" + +#: gphoto2/main.c:2133 +msgid "Capture an image from or on the camera" +msgstr "Tag et billede fra eller på kameraet" + +#: gphoto2/main.c:2135 +msgid "Downloading, uploading and manipulating files" +msgstr "Henter, oplægger og manipulerer filer" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Billed-ID'er skal være et tal større end nul." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Billed-ID %i for høj." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Interval skal separeres af ','." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Interval skal starte med et tal." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Uventet tegn '%c'." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Nedadgående intervaller er ikke tilladte. Du angav et interval fra %i til %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Fejl (%i: '%s') ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Ændr til et katalog i kameraet" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "katalog" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Ændr til et katalog på den lokale disk" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Afslut gPhoto-skallen" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Hjemhent en fil" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[katalog/]filnavn" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Oplæg en fil" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Hjemhentning af en miniature" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Hjemhent rådata" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Slet" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Opret katalog" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Fjern katalog" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Viser kommandobrug" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[kommando]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "List indholdet af det nuværende katalog" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[katalog/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Vis konfigurationsvariable" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Find konfigurationsvariabel" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "navn" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Sæt konfigurationsvariabel" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "navn=værdi" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Sæt konfigurationsvariabelindeks" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "navn=værdiindex" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Tag et enkelt billede" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Tag et enkelt billede og hent det" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Tag et billede til forhåndsvisning" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Vent på en hændelse" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "antal eller sekunder" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Vent på, at billeder bliver taget, og hent dem" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Vent på hændelser og at billeder bliver taget, og hent dem" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Ugyldig kommando." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Kommandoen '%s' kræver et argument." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Ugyldig søgesti." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Kunne ikke finde hjemmekataloget." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Kunne ikke gå til lokalt katalog '%s'." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Lokalt katalog er nu '%s'." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Fjernkataloget er nu '%s'." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config behøver et argument nummer to.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value behøver et argument nummer to.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index behøver et argument nummer to.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Kommandoen '%s' ikke fundet. Brug 'help' for at få en liste af tilgængelige kommandoer." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Hjælp om \"%s\":" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Brug:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Beskrivelse:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Argumenter i klammer [] er valgfri" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Tilgængelige kommandoer:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "For at få hjælp om en speciel kommando så skriv 'help kommando-navn'." + +#~ msgid " Name: '%s'\n" +#~ msgstr " Navn: '%s'\n" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "Du kan ikke bruge '%%n' i kombination med ikke-bestandige filer!" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/de.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/de.po new file mode 100644 index 00000000..33a70766 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/de.po @@ -0,0 +1,1726 @@ +# translation of de.po to Deutsch +# translation of de.po to +# German Translation for gphoto2. +# Copyright (C) 2000, 2001, 2002, 2003 Scott Fritzinger et al. +# This file is distributed under the same license as the gphoto2 package. +# +# Marcus Meissner, 2005. +# Lutz Müller , 2000. +# Colin Marquardt , 2001, 2002, 2003. +# Marcus Meissner , 2005, 2006, 2007, 2008, 2012, 2013. +msgid "" +msgstr "" +"Project-Id-Version: libexif 0.6.16\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-03-23 21:57+0100\n" +"PO-Revision-Date: 2013-10-06 17:52+0200\n" +"Last-Translator: Marcus Meissner\n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.4\n" +"Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Anzahl der Dateien im Verzeichnis »%s«: %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Es gibt %d Verzeichnis im Verzeichnis »%s«.\n" +msgstr[1] "Es gibt %d Verzeichnisse im Verzeichnis »%s«.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Es gibt keine Datei im Verzeichnis »%s«.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Es gibt %d Datei im Verzeichnis »%s«.\n" +msgstr[1] "Es gibt %d Dateien im Verzeichnis »%s«.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Informationen für Datei »%s« (Verzeichnis »%s«):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Datei:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Nicht verfügbar.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME-Typ: »%s«\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Größe: %lu Byte(s)\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Breite: %i Pixel\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Höhe: %i pixel(s)\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr "Heruntergeladen: »%s«\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1803 gphoto2/actions.c:2046 +msgid "yes" +msgstr "Ja" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1797 gphoto2/actions.c:2040 +msgid "no" +msgstr "Nein" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Berechtigungen: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "Lesen/Löschen" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "Lesen" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "Löschen" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "Keine" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Zeit: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Vorschaubild:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Audiodaten:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME-Typ: »%s«\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Größe: %lu Byte(s)\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Heruntergeladen: »%s«\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Konnte EXIF-Daten nicht parsen." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF-Tags:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Tag" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Wert" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF-Daten enthalten ein Vorschaubild (%i Bytes)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 wurde ohne Unterstützung für EXIF kompiliert." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Anzahl der unterstützten Kameras: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Unterstützte Kameras:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t»%s« (IM TEST)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t»%s« (EXPERIMENTELL)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t»%s«\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Gefundene Geräte: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Pfad Beschreibung\n" +"------------------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Modell" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Fähigkeiten für Kamera : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Unterstützung für seriellen Port : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "USB-Unterstützung : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Unterstützte Datenraten (seriell):\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Aufnahme machen (Auswahl) :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Bild\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Audio\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Bildvorschau\n" + +#: gphoto2/actions.c:709 +#, fuzzy, c-format +msgid " : Trigger Capture\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid "" +" : Capture not supported by the driver\n" +msgstr "" +" : Aufnahme wird nicht durch Treiber " +"unterstützt\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Konfigurationsunterstützung : %s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Unterstützung für das Löschen einzelner Bilder: %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Unterstützung für das Löschen aller Bilder : %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Unterstützung für Bildvorschau : %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Unterstützung für Bildhochladen : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "" +"Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a " +"colon so I am going to guess what you mean." +msgstr "" +"Ports müssen als »serial:/dev/ttyS0« oder »usb:« angegeben werden, aber »%s« " +"hat keinen Doppelpunkt. Es wird versucht, herauszufinden, was Sie meinen." + +#: gphoto2/actions.c:777 +#, c-format +msgid "" +"The port you specified ('%s') can not be found. Please specify one of the " +"ports found by 'gphoto2 --list-ports' and make sure the spelling is correct " +"(i.e. with prefix 'serial:' or 'usb:')." +msgstr "" +"Der angegebene Port (»%s«) kann nicht gefunden werden. Bitte geben Sie " +"einen \n" +"der von »gphoto2 --list-ports« gelisteten Ports an und stellen Sie sicher, \n" +"daß die Schreibweise korrekt ist (mit Präfix »serial:« oder »usb:«)." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "Über den Kameratreiber" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Kamerazusammenfassung:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Kameraanleitung:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Nur mit seriellen Ports können Sie eine Datenrate setzen." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2-Portierung von Bart van Leeuwen\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named " +"COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and " +"options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (C) 2000-%d Lutz Müller und andere\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named " +"COPYING.\n" +"\n" +"Diese Version von gphoto2 benutzt die folgenden Softwareversionen und " +"Optionen:\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Konnte 'movie.mjpg' nicht öffnen." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "" +"Nehme Vorschaubilder als Film in '%s' auf. Drücke Ctrl-C zum abbrechen.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Nehme Vorschaubilder als Film in '%s' für %d Sekunden auf.\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Nehme %d Vorschaubilder als Film '%s' auf.\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Film Aufnehme Fehler ... Beenden." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Film Aufnahme Fehler... Unbekannter MIME Typ '%s'." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl-C gedrückt ... Beenden.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Film Aufnahme beendet (%d Bilder)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Warte auf Ereignisse von der Kamera. Drücke Ctrl-C zum abbrechen.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Warte auf %d Bilder von der Kamera. Drücke Ctrl-C zum abbrechen.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "" +"Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "" +"Warte %d Millisekunden auf Events von der Kamera. Drücke Ctrl-C zum " +"abbrechen.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "" +"Warte %d Sekunden auf Events von der Kamera. Drücke Ctrl-C zum abbrechen.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Warte auf %d Ereignisse von der Kamera. Drücke Ctrl-C zum abbrechen.\n" + +#: gphoto2/actions.c:1125 +#, fuzzy, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Warte auf %d Ereignisse von der Kamera. Drücke Ctrl-C zum abbrechen.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Konnte Verzeichnis nicht setzen." + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Konnte Bild nicht holen." + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "Kaputte libcanon.so?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Konnte Bild nicht löschen." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "" +"Das Abfragen von Informationen über Speichergeräte ist bei dieser Kamera " +"nicht unterstützt.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Lesen/Schreiben" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Nur Lesen" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Nur Lesen und Bilder löschen" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Unbekannt" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "Fester ROM" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "Entfernbarer ROM" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "Fester RAM" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "Entfernbarer RAM" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Unbekannt" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Flacher Speicher" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Hierarchischer Speicher" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Kamera Struktur (DCIM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Ersetze USB Vendor/Product ID 0x%x/0x%x durch 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "" +"ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE " +"MAILING LIST:" +msgstr "" +"BITTE IMMER FOLGENDE ZEILE EINFÜGEN WENN DEBUG MESSAGES AN DIE MAILINGLISTE " +"GESCHICKT WERDEN:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s wurde mit den folgenden Optionen übersetzt:" + +#: gphoto2/actions.c:1590 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s wurde nicht in der Konfiguration gefunden." + +#: gphoto2/actions.c:1637 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Konnte den Inhalt des Textfeldes %s holen." + +#: gphoto2/actions.c:1654 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Konnte die Werte für den Bereiches %s nicht bestimmen." + +#: gphoto2/actions.c:1666 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Konnte die möglichen Werte der Auswahl %s nicht holen." + +#: gphoto2/actions.c:1678 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Konnte die Werte der Datum/Zeit Konfiguration %s nicht holen." + +#: gphoto2/actions.c:1687 +msgid "Use 'now' as the current time when setting.\n" +msgstr "" + +#: gphoto2/actions.c:1709 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Konnte die Werte der Auswahl %s nicht holen." + +#: gphoto2/actions.c:1753 +#, c-format +msgid "Property %s is read only." +msgstr "Property %s is nur lesbar." + +#: gphoto2/actions.c:1767 gphoto2/actions.c:2010 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Konnte den Inhalt des Textfeldes %s nicht auf %s setzen." + +#: gphoto2/actions.c:1777 gphoto2/actions.c:2020 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Der übergebene Wert %s ist kein Fließkomma Wert." + +#: gphoto2/actions.c:1782 gphoto2/actions.c:2025 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Der übergebene Wert %f ist nicht im erwarteten Bereich %f - %f." + +#: gphoto2/actions.c:1788 gphoto2/actions.c:2031 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Konnte den Wert des Bereichs %s nicht auf %f setzen." + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2040 +msgid "off" +msgstr "aus" + +#: gphoto2/actions.c:1798 gphoto2/actions.c:2041 +msgid "false" +msgstr "falsch" + +#: gphoto2/actions.c:1803 gphoto2/actions.c:2046 +msgid "on" +msgstr "an" + +#: gphoto2/actions.c:1804 gphoto2/actions.c:2047 +msgid "true" +msgstr "wahr" + +#: gphoto2/actions.c:1809 gphoto2/actions.c:2052 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Der übergebene Wert %s ist kein zulässige Schalterwert." + +#: gphoto2/actions.c:1815 gphoto2/actions.c:2058 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Konnte den Schalter %s nicht auf den Wert %s setzen." + +#: gphoto2/actions.c:1827 +msgid "now" +msgstr "jetzt" + +#: gphoto2/actions.c:1839 gphoto2/actions.c:2071 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "" +"Der übergebene Wert %s ist kein Integer oder wurde nicht als Zeitangabe " +"erkannt." + +#: gphoto2/actions.c:1847 gphoto2/actions.c:2078 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Konnte %s nicht als neue Zeit im der Konfiguration %s setzen." + +#: gphoto2/actions.c:1894 gphoto2/actions.c:1961 gphoto2/actions.c:2108 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Wert %s wurde nicht in der Liste möglicher Werte gefunden." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:2116 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Das Konfigurationssubmenü %s hat keinen änderbaren Wert." + +#: gphoto2/actions.c:1912 gphoto2/actions.c:1983 gphoto2/actions.c:2126 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Konnte den neuen Wert %s für die Konfiguration %s nicht setzen." + +#: gphoto2/actions.c:1973 +#, c-format +msgid "" +"The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "" +"Das Konfigurationssubmenü %s hat keine Auswahl Liste. Benutze --set-config-" +"value statt dessen." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "" +"Bad file number. You specified %i, but there are only %i files available in " +"'%s' or its subfolders. Please obtain a valid file number from a file " +"listing first." +msgstr "" +"Fehlerhafte Dateinummer. Sie gaben %i an, aber es gibt nur %i Dateien in " +"»%s« oder seinen Unterverzeichnissen. Bitte holen Sie zuerst eine gültige " +"Dateinummer aus einer Dateiliste." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Es gibt keine Datei im Verzeichnis »%s«." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "" +"Bad file number. You specified %i, but there is only 1 file available in " +"'%s'." +msgstr "" +"Fehlerhafte Dateinummer. Sie gaben %i an, aber es gibt nur 1 Datei in »%s«." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "" +"Bad file number. You specified %i, but there are only %i files available in " +"'%s'. Please obtain a valid file number from a file listing first." +msgstr "" +"Fehlerhafte Dateinummer. Sie gaben %i an, aber es gibt nur %i Dateien in " +"»%s«. Bitte holen Sie zuerst eine gültige Dateinummer aus einer Dateiliste." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Fehler *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Eine beliebige Taste drücken um fortzusetzen.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Ungenügend Speicher." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Operation abgebrochen" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Weitermachen" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Abbrechen" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Fehler" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Konnte Konfiguration nicht setzen:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Beenden" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Zurück" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Zeit: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Wert: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Ja" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Nein" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Das Angeben von führenden Nullen ist nur bei %%n möglich." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Sie können »%%n« nicht Präzisionsangabe verwenden!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "" +"Der von der Kamera gelieferte Filename (»%s«) enthält keine Dateiendung." + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Ungültiges Format »%s« (Fehler an Position %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, fuzzy, c-format +msgid "Skip existing file %s\n" +msgstr "Speichere Datei als %s\n" + +# !!! [y/n] !!! [CM] +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Datei %s existiert bereits. Überschreiben? [y|n] " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Neuen Dateinamen angeben? [y|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Geben Sie einen neuen Dateinamen an: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Speichere Datei als %s\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Zugriff verweigert" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Konnte nicht aufnehmen." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Neue Datei ist in %s%s%s auf der Kamera\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Behalte Datei %s%s%s auf der Kamera\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Lösche Datei %s%s%s auf der Kamera\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Ereignis FOLDER_ADDED %s/%s, wird ignoriert.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Ereignis UNKOWN %s, wird ignoriert.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Unbekannter Ereignistyp %d, wird ignoriert.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Konnte Fähigkeiten der Kamera nicht holen?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Zeitlupen Modus aktiviert (Intervall: %ds).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Warte auf SIGUSR1 um Aufnahme zu starten.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Bulb Modus aktiviert (Aufnahmedauer: %ds).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Nehme Bild %d auf...\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Nehme Bild %d von %d auf...\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Konnte Bulb Modus nicht setzen, Fehler %d." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Konnte Bulb Modus nicht beenden." + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Konnte Bild Aufnahme nicht starten." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Konnte Bild nicht aufnehmen." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Aufnahme fehlgeschlagen (Auto Fokus Problem?)...\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Konnte nicht aufnehmen." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Warte %ld Sekunden auf den nächsten Aufnahme Slot...\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Aufgeweckt durch SIGUSR1...\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "Keine Pause (%ld Sekunden zurück)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "FEHLER: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Harter Abbruch...\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Abgebrochen.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Abbruch...\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "" +"Use the following syntax a:b=c:d to treat any USB device detected as a:b as " +"c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "" +"Verwenden Sie die Syntax »a:b=c:d« um ein als »a:b« erkanntes USB-Gerät als " +"»c:d« zu behandeln.\n" +"a b c d sind hexadezimale Angaben, die mit »0x« beginnen müssen.\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 wurde ohne Unterstützung für CDK kompiliert." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Operation abgebrochen.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Fehler: Keine Kamera gefunden. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Fehler (%i: »%s«) *** \n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Für Debug-Meldungen verwenden Sie bitte die Option »--debug«.\n" +"Diese Meldungen können Ihnen helfen, eine Lösung für Ihr Problem zu\n" +"finden. Wenn Sie jedoch Fehler- oder Debug-Meldungen an die\n" +"Mailingliste schicken wollen, \n" +"so starten sie gphoto2 bitte wie folgt:\n" +"\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Bitte stellen Sie sicher das die uebergebenen Argument ausreichend gequoted " +"sind.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "Gebe kompletten Hilfstext zur Benutzung aus" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "Gebe kurzen Hilfstext zur Benutzung aus" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Schalte Debugging ein" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "Dateinamen für Debug Informationen" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "DATEINAME" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Wenige Ausgaben (Vorgabe=gesprächig)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Hook-Skript, das nach Herunterladen, Aufnahme, etc. gestartet wird" + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Angabe des Port-Geräts" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Angabe der seriellen Datenrate" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "GESCHWINDIGKEIT" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Angabe des Kameramodells" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "MODELL" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "(für Experten) Überschreibe USB-IDs" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBIDs" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Zeige Version und beende" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Zeige unterstützte Kameramodelle" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Liste unterstützte Port-Geräte" + +#: gphoto2/main.c:2002 +#, fuzzy +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Zeige Kamera-/Treiberfähigkeiten" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Konfigurieren" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Zeige Konfigurationsbaum" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Zeige vollen Konfigurationsbaum" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Hole Konfigurationswert" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Setze Konfigurationswert oder -Index im Menü" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "Setze Konfigurationswert Index im Menü" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Setze Konfigurationswert" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Reset des Ports" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Behalte Bilder auf der Kamera nach der Aufnahme" + +#: gphoto2/main.c:2032 +#, fuzzy +msgid "Keep RAW images on camera after capturing" +msgstr "Behalte Bilder auf der Kamera nach der Aufnahme" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Lösche Bilder von der Kamera nach der Aufnahme" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Warte auf Kameraereignisse" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Warte auf Ereignisse von der Kamera und lade neue Bilder herunter" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Mache eine Vorschaubild-Aufnahme" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Setze die Zeit der Bulb Aufnahme in Sekunden" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "SEKUNDEN" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Setze die Anzahl der aufzunehmenden Bilder (default=unendlich)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "ANZAHL" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Setze das Aufnahmeintervall in Sekunden" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Setze Aufnahmeinterval nach Signal zurück (default=nein)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Eine Bildaufnahme machen" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Eine Bildaufnahme auslösen" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Eine Bildaufnahme machen und herunterladen" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Eine Filmaufnahme machen" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "ANZAHL oder SEKUNDEN" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Eine Audioaufnahme machen" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Warte auf Auslöserdruck an der Kamera und lade Bilder herunter" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Starte Bildaufnahme" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Liste Verzeichnisse in Verzeichnis" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Liste Dateien in Verzeichnis" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Verzeichnis anlegen" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "VERZEICHNIS" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Verzeichnis löschen" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Zeige Anzahl der Dateien" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Hole Dateien im angegebenen Bereich" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "BEREICH" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Hole alle Dateien im Verzeichnis" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Hole Vorschaubilder im angegebenen Bereich" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Hole alle Vorschaubilder im Verzeichnis" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Hole Metadaten im angegebenen Bereich" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Hole alle Metadaten im Verzeichnis" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Lade Metadaten herunter für Datei" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Hole Rohdaten im angegebenen Bereich" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Hole alle Rohdaten im Verzeichnis" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Hole Audiodaten im angegebenen Bereich" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Hole alle Audiodaten im Verzeichnis" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Lösche Dateien im angegebenen Bereich" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Lösche alle Dateien im Verzeichnis (--no-recurse als default)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Datei auf Kamera hochladen" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Geben Sie einen Dateinamen oder ein Dateinamensmuster an" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "DATEINAMENS_MUSTER" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Angabe des Kameraverzeichnisses (Vorgabe=\"/\")" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "VERZEICHNIS" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Rekursion (Vorgabe für das Herunterladen)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Keine Rekursion (Vorgabe für das Löschen)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Bearbeite nur neue Dateien" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Dateien ohne Nachfragen überschreiben" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Sende Datei auf die Standardausgabe" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "Dateigröße vor Daten ausgeben" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Liste automatisch erkannte Kameras" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +#, fuzzy +msgid "Show EXIF information of JPEG images" +msgstr "Zeige EXIF-Informationen" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "" + +#: gphoto2/main.c:2146 +#, fuzzy +msgid "Show camera summary" +msgstr "Zusammenfassung zeigen" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Anleitung für Kameratreiber zeigen" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "Die Kameratreiberhilfe anzeigen" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Zeige Speicher-Informationen" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "gPhoto-Shell" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Gebräuchliche Optionen" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Weitere Optionen (unsortiert)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "" +"Frage Informationen über Software und Maschine ab (nicht von der Kamera)" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "Angabe der zu benutzenden Kamera" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Konfiguration von Kamera und Software" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Nehme ein Bild mit der Kamera auf" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Herunterladen, hochladen und manipulieren von Dateien" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Bilder-IDs müssen größer als Null sein." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Bild-ID %i zu groß." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Bereiche müssen mittels »,« getrennt werden." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Bereiche müssen mit einer Zahl beginnen." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Unerwartetes Zeichen »%c«." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s Absteigende Bereiche sind nicht erlaubt. Sie müssen einen Bereich\n" +"von %i bis %i angeben." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Fehler (%i: »%s«) ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Wechsle in ein Verzeichnis auf der Kamera" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "Verzeichnis" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Wechsle in ein Verzeichnis auf der lokalen Festplatte." + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "gPhoto-Shell beenden" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Lade eine Datei herunter" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[Verzeichnis/]Dateiname" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Lade eine Datei hoch" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Lade ein Vorschaubild herunter" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Lade Rohdaten herunter" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Löschen" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Lege Verzeichnis an" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Verzeichnis löschen" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Zeige Befehlsverwendung" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[Befehl]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Zeige den Inhalt des aktuellen Verzeichnisses" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[Verzeichnis/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Zeige Konfigurationswerte an" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Frage einen Wert der Konfiguration ab" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "Name" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Setze einen Konfigurationswert" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "Name=Wert" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Setze den Index eines Konfigurationswerts" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "Name=Index" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Eine Bildaufnahme machen" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Eine Bildaufnahme machen und herunter laden" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Eine Vorschau aufnehmen" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Warte auf ein Kameraereigniss" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "Anzahl oder Sekunden" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Warte auf Auslöserdruck an der Kamera und lade neue Bilder herunter" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Auf Ereignisse warten und dabei neu aufgenommene Bilder herunterladen" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Ungültiger Befehl." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Der Befehl »%s« erfordert ein Argument." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Ungültiger Pfad." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Konnte Heimverzeichnis nicht finden." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Konnte nicht in das lokale Verzeichnis »%s« wechseln." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Lokales Verzeichnis ist nun »%s«." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Entferntes Verzeichnis ist nun »%s«." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config benötigt ein zweites Argument.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value benötigt ein zweites Argument.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index benötigt ein zweites Argument.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "" +"Befehl »%s« nicht gefunden. Verwenden Sie »help«, um eine Liste aller " +"verfügbaren Befehle zu erhalten." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Hilfe für \"%s\":" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Verwendung:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Beschreibung:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Argumente in eckigen Klammern [] sind optional" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Verfügbare Befehle:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "" +"Um Hilfe zu einem bestimmten Befehl zu erhalten, verwenden Sie »help " +"Befehlsname«." + +#~ msgid "Show info" +#~ msgstr "Zeige Info" + +#~ msgid " Name: '%s'\n" +#~ msgstr " Name: »%s«\n" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "" +#~ "Sie können »%%n« nicht im Zusammenhang mit nicht-persistenten Dateien " +#~ "benutzen!" + +#~ msgid "Could not close camera connection." +#~ msgstr "Konnte Verbindung zur Kamera nicht schließen." + +#~ msgid "Sleeping for %d second(s)...\n" +#~ msgstr "Warte %d Sekunde(n)...\n" + +#~ msgid "New file %s/%s, downloading...\n" +#~ msgstr "Neue Datei %s/%s, lade herunter...\n" + +#~ msgid "filename" +#~ msgstr "Dateiname" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/en_GB.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/en_GB.po new file mode 100644 index 00000000..2c9d6fe7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/en_GB.po @@ -0,0 +1,1108 @@ +# English (British) translation for gphoto2 +# Copyright (C) 2004 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# Gareth Owen , 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.1.2\n" +"POT-Creation-Date: 2003-08-10 20:58+0200\n" +"PO-Revision-Date: 2004-04-20 11:04-0400\n" +"Last-Translator: Gareth Owen \n" +"Language-Team: English (British) \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: gphoto2/actions.c:101 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Number of files in folder '%s': %i\n" + +#: gphoto2/actions.c:122 +#, c-format +msgid "There are no folders in folder '%s'." +msgstr "There are no folders in folder '%s'." + +#: gphoto2/actions.c:126 +#, c-format +msgid "There is one folder in folder '%s':" +msgstr "There is one folder in folder '%s':" + +#: gphoto2/actions.c:130 +#, c-format +msgid "There are %i folders in folder '%s':" +msgstr "There are %i folders in folder '%s':" + +#: gphoto2/actions.c:157 gphoto2/foreach.c:277 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "There are no files in folder '%s'." + +#: gphoto2/actions.c:162 +#, c-format +msgid "There is one file in folder '%s':" +msgstr "There is one file in folder '%s':" + +#: gphoto2/actions.c:167 +#, c-format +msgid "There are %i files in folder '%s':" +msgstr "There are %i files in folder '%s':" + +#: gphoto2/actions.c:188 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Information on file '%s' (folder '%s'):\n" + +#: gphoto2/actions.c:190 +msgid "File:\n" +msgstr "File:\n" + +#: gphoto2/actions.c:192 gphoto2/actions.c:226 gphoto2/actions.c:242 +msgid " None available.\n" +msgstr " None available.\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid " Name: '%s'\n" +msgstr " Name: '%s'\n" + +#: gphoto2/actions.c:197 gphoto2/actions.c:229 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime type: '%s'\n" + +#: gphoto2/actions.c:199 gphoto2/actions.c:231 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Size: %li byte(s)\n" + +#: gphoto2/actions.c:201 gphoto2/actions.c:233 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Width: %i pixel(s)\n" + +#: gphoto2/actions.c:203 gphoto2/actions.c:235 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Height: %i pixel(s)\n" + +#: gphoto2/actions.c:205 gphoto2/actions.c:237 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Downloaded: %s\n" + +#: gphoto2/actions.c:206 gphoto2/actions.c:238 gphoto2/actions.c:250 +#: gphoto2/actions.c:548 gphoto2/actions.c:550 gphoto2/actions.c:567 +#: gphoto2/actions.c:570 gphoto2/actions.c:573 gphoto2/actions.c:576 +msgid "yes" +msgstr "yes" + +#: gphoto2/actions.c:206 gphoto2/actions.c:238 gphoto2/actions.c:250 +#: gphoto2/actions.c:548 gphoto2/actions.c:550 gphoto2/actions.c:567 +#: gphoto2/actions.c:570 gphoto2/actions.c:573 gphoto2/actions.c:576 +msgid "no" +msgstr "no" + +#: gphoto2/actions.c:208 +msgid " Permissions: " +msgstr " Permissions: " + +#: gphoto2/actions.c:211 +msgid "read/delete" +msgstr "read/delete" + +#: gphoto2/actions.c:213 +msgid "read" +msgstr "read" + +#: gphoto2/actions.c:215 +msgid "delete" +msgstr "delete" + +#: gphoto2/actions.c:217 +msgid "none" +msgstr "none" + +#: gphoto2/actions.c:221 +#, c-format +msgid " Time: %s" +msgstr " Time: %s" + +#: gphoto2/actions.c:224 +msgid "Thumbnail:\n" +msgstr "Thumbnail:\n" + +#: gphoto2/actions.c:240 +msgid "Audio data:\n" +msgstr "Audio data:\n" + +#: gphoto2/actions.c:245 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime type: '%s'\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Size: %li byte(s)\n" + +#: gphoto2/actions.c:249 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Downloaded: %s\n" + +#: gphoto2/actions.c:380 +msgid "Could not parse EXIF data." +msgstr "Could not parse EXIF data." + +#: gphoto2/actions.c:384 +msgid "EXIF tags:" +msgstr "EXIF tags:" + +#: gphoto2/actions.c:387 +msgid "Tag" +msgstr "Tag" + +#: gphoto2/actions.c:389 +msgid "Value" +msgstr "Value" + +#: gphoto2/actions.c:410 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF data contains a thumbnail (%i bytes)." + +#: gphoto2/actions.c:419 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 has been compiled without EXIF support." + +#: gphoto2/actions.c:437 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Number of supported cameras: %i\n" + +#: gphoto2/actions.c:439 +msgid "Supported cameras:\n" +msgstr "Supported cameras:\n" + +#: gphoto2/actions.c:452 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (TESTING)\n" + +#: gphoto2/actions.c:455 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (EXPERIMENTAL)\n" + +#: gphoto2/actions.c:460 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:488 +#, c-format +msgid "Devices found: %i\n" +msgstr "Devices found: %i\n" + +#: gphoto2/actions.c:489 +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Path Description\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:528 gphoto2/actions.c:533 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:528 +msgid "Model" +msgstr "Model" + +#: gphoto2/actions.c:528 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:529 +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:546 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Abilities for camera : %s\n" + +#: gphoto2/actions.c:547 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Serial port support : %s\n" + +#: gphoto2/actions.c:549 +#, c-format +msgid "USB support : %s\n" +msgstr "USB support : %s\n" + +#: gphoto2/actions.c:552 +msgid "Transfer speeds supported :\n" +msgstr "Transfer speeds supported :\n" + +#: gphoto2/actions.c:554 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:557 +msgid "Capture choices :\n" +msgstr "Capture choices :\n" + +#: gphoto2/actions.c:559 +msgid " : Image\n" +msgstr " : Image\n" + +#: gphoto2/actions.c:561 +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:563 +msgid " : Audio\n" +msgstr " : Audio\n" + +#: gphoto2/actions.c:565 +msgid " : Preview\n" +msgstr " : Preview\n" + +#: gphoto2/actions.c:566 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Configuration support : %s\n" + +#: gphoto2/actions.c:568 +#, c-format +msgid "Delete files on camera support : %s\n" +msgstr "Delete files on camera support : %s\n" + +#: gphoto2/actions.c:571 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "File preview (thumbnail) support : %s\n" + +#: gphoto2/actions.c:574 +#, c-format +msgid "File upload support : %s\n" +msgstr "File upload support : %s\n" + +#: gphoto2/actions.c:591 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." + +#: gphoto2/actions.c:630 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." + +#: gphoto2/actions.c:668 +msgid "About the camera driver:" +msgstr "About the camera driver:" + +#: gphoto2/actions.c:682 +msgid "Camera summary:" +msgstr "Camera summary:" + +#: gphoto2/actions.c:696 +msgid "Camera manual:" +msgstr "Camera manual:" + +#: gphoto2/actions.c:712 +msgid "You can only specify speeds for serial ports." +msgstr "You can only specify speeds for serial ports." + +#: gphoto2/actions.c:763 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-2003 Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-2003 Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"Licence. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" + +#: gphoto2/actions.c:776 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2 port by Bart van Leeuwen\n" + +#: gphoto2/actions.c:890 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" + +#: gphoto2/foreach.c:254 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." + +#: gphoto2/foreach.c:283 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Bad file number. You specified %i, but there is only 1 file available in '%s'." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'.Please obtain a valid file number from a file listing first." +msgstr "Bad file number. You specified %i, but there are only %i files available in '%s'.Please obtain a valid file number from a file listing first." + +#: gphoto2/gp-params.c:53 +msgid "*** Error *** \n" +msgstr "*** Error *** \n" + +#: gphoto2/gp-params.c:220 +msgid "Press any key to continue.\n" +msgstr "Press any key to continue.\n" + +#: gphoto2/gp-params.c:237 +msgid "Not enough memory." +msgstr "Not enough memory." + +#: gphoto2/gphoto2-cmd-capture.c:201 +msgid "Operation cancelled" +msgstr "Operation cancelled" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "Continue" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "Cancel" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "Error" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "Could not set configuration:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "Exit" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "Back" + +#: gphoto2/gphoto2-cmd-config.c:253 +msgid "Time: " +msgstr "Time: " + +#: gphoto2/gphoto2-cmd-config.c:312 gphoto2/gphoto2-cmd-config.c:340 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "Value: " + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "Yes" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "No" + +#: gphoto2/main.c:161 gphoto2/main.c:1461 +msgid "Turn on debugging" +msgstr "Turn on debugging" + +#: gphoto2/main.c:162 gphoto2/main.c:1463 +msgid "Quiet output (default=verbose)" +msgstr "Quiet output (default=verbose)" + +#: gphoto2/main.c:166 gphoto2/main.c:1467 +msgid "Display version and exit" +msgstr "Display version and exit" + +#: gphoto2/main.c:167 +msgid "Displays this help screen" +msgstr "Displays this help screen" + +#: gphoto2/main.c:168 gphoto2/main.c:1469 +msgid "List supported camera models" +msgstr "List supported camera models" + +#: gphoto2/main.c:169 gphoto2/main.c:1471 +msgid "List supported port devices" +msgstr "List supported port devices" + +#: gphoto2/main.c:170 gphoto2/main.c:1473 +msgid "Send file to stdout" +msgstr "Send file to stdout" + +#: gphoto2/main.c:171 gphoto2/main.c:1475 +msgid "Print filesize before data" +msgstr "Print filesize before data" + +#: gphoto2/main.c:172 gphoto2/main.c:1477 +msgid "List auto-detected cameras" +msgstr "List auto-detected cameras" + +#: gphoto2/main.c:175 gphoto2/main.c:1479 +msgid "Specify port device" +msgstr "Specify port device" + +#: gphoto2/main.c:176 gphoto2/main.c:1481 +msgid "Specify serial transfer speed" +msgstr "Specify serial transfer speed" + +#: gphoto2/main.c:177 gphoto2/main.c:1483 +msgid "Specify camera model" +msgstr "Specify camera model" + +#: gphoto2/main.c:178 gphoto2/main.c:1485 +msgid "Specify a filename" +msgstr "Specify a filename" + +#: gphoto2/main.c:179 gphoto2/main.c:1487 +msgid "(expert only) Override USB IDs" +msgstr "(expert only) Override USB IDs" + +#: gphoto2/main.c:182 gphoto2/main.c:1489 +msgid "Display camera abilities" +msgstr "Display camera abilities" + +#: gphoto2/main.c:183 gphoto2/main.c:1491 +msgid "Specify camera folder (default=\"/\")" +msgstr "Specify camera folder (default=\"/\")" + +#: gphoto2/main.c:184 gphoto2/main.c:1493 +msgid "Recursion (default for download)" +msgstr "Recursion (default for download)" + +#: gphoto2/main.c:185 gphoto2/main.c:1495 +msgid "No recursion (default for deletion)" +msgstr "No recursion (default for deletion)" + +#: gphoto2/main.c:186 gphoto2/main.c:1497 +msgid "List folders in folder" +msgstr "List folders in folder" + +#: gphoto2/main.c:187 gphoto2/main.c:1499 +msgid "List files in folder" +msgstr "List files in folder" + +#: gphoto2/main.c:188 gphoto2/main.c:189 +msgid "name" +msgstr "name" + +#: gphoto2/main.c:188 gphoto2/main.c:1501 +msgid "Create a directory" +msgstr "Create a directory" + +#: gphoto2/main.c:189 gphoto2/main.c:1503 +msgid "Remove a directory" +msgstr "Remove a directory" + +#: gphoto2/main.c:190 gphoto2/main.c:1505 +msgid "Display number of files" +msgstr "Display number of files" + +#: gphoto2/main.c:191 gphoto2/main.c:1507 +msgid "Get files given in range" +msgstr "Get files given in range" + +#: gphoto2/main.c:192 gphoto2/main.c:1509 +msgid "Get all files from folder" +msgstr "Get all files from folder" + +#: gphoto2/main.c:193 gphoto2/main.c:1511 +msgid "Get thumbnails given in range" +msgstr "Get thumbnails given in range" + +#: gphoto2/main.c:194 gphoto2/main.c:1514 +msgid "Get all thumbnails from folder" +msgstr "Get all thumbnails from folder" + +#: gphoto2/main.c:195 gphoto2/main.c:1517 +msgid "Get raw data given in range" +msgstr "Get raw data given in range" + +#: gphoto2/main.c:196 gphoto2/main.c:1520 +msgid "Get all raw data from folder" +msgstr "Get all raw data from folder" + +#: gphoto2/main.c:197 gphoto2/main.c:1523 +msgid "Get audio data given in range" +msgstr "Get audio data given in range" + +#: gphoto2/main.c:198 gphoto2/main.c:1526 +msgid "Get all audio data from folder" +msgstr "Get all audio data from folder" + +#: gphoto2/main.c:199 gphoto2/main.c:1528 +msgid "Delete files given in range" +msgstr "Delete files given in range" + +#: gphoto2/main.c:200 gphoto2/main.c:1530 +msgid "Delete all files in folder" +msgstr "Delete all files in folder" + +#: gphoto2/main.c:201 gphoto2/main.c:1532 +msgid "Upload a file to camera" +msgstr "Upload a file to camera" + +#: gphoto2/main.c:203 gphoto2/main.c:1535 +msgid "Configure" +msgstr "Configure" + +#: gphoto2/main.c:205 gphoto2/main.c:1539 +msgid "Capture a quick preview" +msgstr "Capture a quick preview" + +#: gphoto2/main.c:206 gphoto2/main.c:1541 +msgid "Capture an image" +msgstr "Capture an image" + +#: gphoto2/main.c:207 +msgid "Capture a movie " +msgstr "Capture a movie " + +#: gphoto2/main.c:208 gphoto2/main.c:1545 +msgid "Capture an audio clip" +msgstr "Capture an audio clip" + +#: gphoto2/main.c:210 gphoto2/main.c:1548 gphoto2/shell.c:113 +msgid "Show EXIF information" +msgstr "Show EXIF information" + +#: gphoto2/main.c:212 gphoto2/main.c:1551 gphoto2/shell.c:109 +msgid "Show info" +msgstr "Show info" + +#: gphoto2/main.c:213 +msgid "Summary of camera status" +msgstr "Summary of camera status" + +#: gphoto2/main.c:214 +msgid "Camera driver manual" +msgstr "Camera driver manual" + +#: gphoto2/main.c:215 +msgid "About the camera driver" +msgstr "About the camera driver" + +#: gphoto2/main.c:216 gphoto2/main.c:1559 +msgid "gPhoto shell" +msgstr "gPhoto shell" + +#: gphoto2/main.c:343 gphoto2/main.c:1192 +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" + +#: gphoto2/main.c:466 +msgid "Jan" +msgstr "Jan" + +#: gphoto2/main.c:466 +msgid "January" +msgstr "January" + +#: gphoto2/main.c:467 +msgid "Feb" +msgstr "Feb" + +#: gphoto2/main.c:467 +msgid "February" +msgstr "February" + +#: gphoto2/main.c:468 +msgid "Mar" +msgstr "Mar" + +#: gphoto2/main.c:468 +msgid "March" +msgstr "March" + +#: gphoto2/main.c:469 +msgid "Apr" +msgstr "Apr" + +#: gphoto2/main.c:469 +msgid "April" +msgstr "April" + +#: gphoto2/main.c:470 +msgid "May" +msgstr "May" + +#: gphoto2/main.c:471 +msgid "Jun" +msgstr "Jun" + +#: gphoto2/main.c:471 +msgid "June" +msgstr "June" + +#: gphoto2/main.c:472 +msgid "Jul" +msgstr "Jul" + +#: gphoto2/main.c:472 +msgid "July" +msgstr "July" + +#: gphoto2/main.c:473 +msgid "Aug" +msgstr "Aug" + +#: gphoto2/main.c:473 +msgid "August" +msgstr "August" + +#: gphoto2/main.c:474 +msgid "Sep" +msgstr "Sep" + +#: gphoto2/main.c:474 +msgid "September" +msgstr "September" + +#: gphoto2/main.c:475 +msgid "Oct" +msgstr "Oct" + +#: gphoto2/main.c:475 +msgid "October" +msgstr "October" + +#: gphoto2/main.c:476 +msgid "Nov" +msgstr "Nov" + +#: gphoto2/main.c:476 +msgid "November" +msgstr "November" + +#: gphoto2/main.c:477 +msgid "Dec" +msgstr "Dec" + +#: gphoto2/main.c:477 +msgid "December" +msgstr "December" + +#: gphoto2/main.c:484 +msgid "Sun" +msgstr "Sun" + +#: gphoto2/main.c:484 +msgid "Sunday" +msgstr "Sunday" + +#: gphoto2/main.c:485 +msgid "Mon" +msgstr "Mon" + +#: gphoto2/main.c:485 +msgid "Monday" +msgstr "Monday" + +#: gphoto2/main.c:486 +msgid "Tue" +msgstr "Tue" + +#: gphoto2/main.c:486 +msgid "Tuesday" +msgstr "Tuesday" + +#: gphoto2/main.c:487 +msgid "Wed" +msgstr "Wed" + +#: gphoto2/main.c:487 +msgid "Wednesday" +msgstr "Wednesday" + +#: gphoto2/main.c:488 +msgid "Thu" +msgstr "Thu" + +#: gphoto2/main.c:488 +msgid "Thursday" +msgstr "Thursday" + +#: gphoto2/main.c:489 +msgid "Fri" +msgstr "Fri" + +#: gphoto2/main.c:489 +msgid "Friday" +msgstr "Friday" + +#: gphoto2/main.c:490 +msgid "Sat" +msgstr "Sat" + +#: gphoto2/main.c:490 +msgid "Saturday" +msgstr "Saturday" + +#: gphoto2/main.c:552 +#, c-format +msgid "You cannot use '%n' in combination with non-persistent files!" +msgstr "You cannot use '%n' in combination with non-persistent files!" + +#: gphoto2/main.c:575 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "The filename provided by the camera ('%s') does not contain a suffix!" + +#: gphoto2/main.c:654 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Invalid format '%s' (error at position %i)." + +#: gphoto2/main.c:701 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "File %s exists. Overwrite? [y|n] " + +#: gphoto2/main.c:712 +msgid "Specify new filename? [y|n] " +msgstr "Specify new filename? [y|n] " + +#: gphoto2/main.c:721 +msgid "Enter new filename: " +msgstr "Enter new filename: " + +#: gphoto2/main.c:726 +#, c-format +msgid "Saving file as %s\n" +msgstr "Saving file as %s\n" + +#: gphoto2/main.c:918 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "New file is in location %s%s%s on the camera\n" + +#: gphoto2/main.c:1050 +msgid "ERROR: " +msgstr "ERROR: " + +#: gphoto2/main.c:1073 +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Aborting...\n" + +#: gphoto2/main.c:1079 +msgid "Aborted.\n" +msgstr "Aborted.\n" + +#: gphoto2/main.c:1084 +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Cancelling...\n" + +#: gphoto2/main.c:1291 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 has been compiled without support for CDK." + +#: gphoto2/main.c:1404 +msgid "Operation cancelled.\n" +msgstr "Operation cancelled.\n" + +#: gphoto2/main.c:1408 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Error (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1412 +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" + +#: gphoto2/main.c:1465 +msgid "Overwrite files without asking." +msgstr "Overwrite files without asking." + +#: gphoto2/main.c:1479 +msgid "path" +msgstr "path" + +#: gphoto2/main.c:1481 +msgid "speed" +msgstr "speed" + +#: gphoto2/main.c:1483 +msgid "model" +msgstr "model" + +#: gphoto2/main.c:1485 +msgid "filename" +msgstr "filename" + +#: gphoto2/main.c:1487 +msgid "usbid" +msgstr "usbid" + +#: gphoto2/main.c:1491 +msgid "folder" +msgstr "folder" + +#: gphoto2/main.c:1543 +msgid "Capture a movie" +msgstr "Capture a movie" + +#: gphoto2/main.c:1553 +msgid "Show summary" +msgstr "Show summary" + +#: gphoto2/main.c:1555 +msgid "Show camera driver manual" +msgstr "Show camera driver manual" + +#: gphoto2/main.c:1557 +msgid "About the camera driver manual" +msgstr "About the camera driver manual" + +#: gphoto2/main.c:1784 +msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +msgstr "gPhoto2 for OS/2 requires you to set the environment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" + +#: gphoto2/main.c:1794 +msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +msgstr "gPhoto2 for OS/2 requires you to set the environment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" + +#: gphoto2/options.c:181 +msgid "Usage:\n" +msgstr "Usage:\n" + +#: gphoto2/options.c:184 +msgid "" +"Short/long options (& argument) Description\n" +"--------------------------------------------------------------------------------\n" +msgstr "" +"Short/long options (& argument) Description\n" +"--------------------------------------------------------------------------------\n" + +#: gphoto2/options.c:209 +#, c-format +msgid "%-38s %s\n" +msgstr "%-38s %s\n" + +#: gphoto2/options.c:214 +msgid "" +"--------------------------------------------------------------------------------\n" +"[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +msgstr "" +"--------------------------------------------------------------------------------\n" +"[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" + +#: gphoto2/range.c:103 gphoto2/range.c:157 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Image IDs must be a number greater than zero." + +#: gphoto2/range.c:109 gphoto2/range.c:163 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Image ID %i too high." + +#: gphoto2/range.c:125 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Ranges must be separated by ','." + +#: gphoto2/range.c:139 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Ranges need to start with a number." + +#: gphoto2/range.c:179 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Unexpected character '%c'." + +#: gphoto2/range.c:202 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." + +#: gphoto2/shell.c:55 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Error (%i: '%s') ***" + +#: gphoto2/shell.c:98 +msgid "Change to a directory on the camera" +msgstr "Change to a directory on the camera" + +#: gphoto2/shell.c:99 gphoto2/shell.c:101 +msgid "directory" +msgstr "directory" + +#: gphoto2/shell.c:100 +msgid "Change to a directory on the local drive" +msgstr "Change to a directory on the local drive" + +#: gphoto2/shell.c:102 gphoto2/shell.c:120 gphoto2/shell.c:121 +msgid "Exit the gPhoto shell" +msgstr "Exit the gPhoto shell" + +#: gphoto2/shell.c:103 +msgid "Download a file" +msgstr "Download a file" + +#: gphoto2/shell.c:103 gphoto2/shell.c:106 gphoto2/shell.c:108 +#: gphoto2/shell.c:110 gphoto2/shell.c:111 gphoto2/shell.c:114 +msgid "[directory/]filename" +msgstr "[directory/]filename" + +#: gphoto2/shell.c:105 +msgid "Download a thumbnail" +msgstr "Download a thumbnail" + +#: gphoto2/shell.c:107 +msgid "Download raw data" +msgstr "Download raw data" + +#: gphoto2/shell.c:111 +msgid "Delete" +msgstr "Delete" + +#: gphoto2/shell.c:116 gphoto2/shell.c:122 +msgid "Displays command usage" +msgstr "Displays command usage" + +#: gphoto2/shell.c:117 gphoto2/shell.c:122 +msgid "[command]" +msgstr "[command]" + +#: gphoto2/shell.c:118 +msgid "List the contents of the current directory" +msgstr "List the contents of the current directory" + +#: gphoto2/shell.c:119 +msgid "[directory/]" +msgstr "[directory/]" + +#: gphoto2/shell.c:421 +msgid "Invalid command." +msgstr "Invalid command." + +#: gphoto2/shell.c:430 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "The command '%s' requires an argument." + +#: gphoto2/shell.c:483 +msgid "Invalid path." +msgstr "Invalid path." + +#: gphoto2/shell.c:529 +msgid "Could not find home directory." +msgstr "Could not find home directory." + +#: gphoto2/shell.c:537 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Could not change to local directory '%s'." + +#: gphoto2/shell.c:540 +#, c-format +msgid "Local directory now '%s'." +msgstr "Local directory now '%s'." + +#: gphoto2/shell.c:578 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Remote directory now '%s'." + +#: gphoto2/shell.c:734 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Command '%s' not found. Use 'help' to get a list of available commands." + +#: gphoto2/shell.c:741 +#, c-format +msgid "Help on \"%s\":" +msgstr "Help on \"%s\":" + +#: gphoto2/shell.c:743 +msgid "Usage:" +msgstr "Usage:" + +#: gphoto2/shell.c:747 +msgid "Description:" +msgstr "Description:" + +#: gphoto2/shell.c:749 +msgid "* Arguments in brackets [] are optional" +msgstr "* Arguments in brackets [] are optional" + +#: gphoto2/shell.c:770 +msgid "Available commands:" +msgstr "Available commands:" + +#: gphoto2/shell.c:775 +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "To get help on a particular command, type in 'help command-name'." diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/eo.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/eo.po new file mode 100644 index 00000000..c131dd78 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/eo.po @@ -0,0 +1,1641 @@ +# Esperanto translation. +# Copyright (C) 2015, 2017 Lutz Müller and others +# This file is distributed under the same license as the gphoto2 package. +# Felipe Castro 2015, 2017. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2017-01-28 22:43-0300\n" +"Last-Translator: Felipe Castro \n" +"Language-Team: Esperanto \n" +"Language: eo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"Plural-Forms: nplurals=2; plural=(n!=1);\n" +"X-Generator: Poedit 1.5.4\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Nombro da dosieroj en la ujo '%s': %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Estas %d ujo en la dosierujo '%s'.\n" +msgstr[1] "Estas %d ujoj en la dosierujo '%s'.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Estas neniu dosiero en la ujo '%s'.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Estas %d dosiero en la dosierujo '%s'.\n" +msgstr[1] "Estas %d dosieroj en la dosierujo '%s'.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Informo pri dosiero '%s' (ujo '%s'):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Dosiero:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Neniu disponeblas.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME-tipo: '%s'\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Grando: %lu bajto(j)\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Larĝo: %i bildero(j)\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Alto: %i bildero(j)\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Elŝutita: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "jes" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "ne" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Permesoj: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "legi/forigi" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "legi" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "forigi" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "nenio" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Tempo: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Miniaturo:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Sona datumaro:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME-tipo: '%s'\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Grando: %lu bajto(j)\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Elŝutita: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Ne eblis analizi datumaron EXIF." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "Markoj EXIF:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Marko" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Valoro" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Datumaro EXIF enhavas miniaturon (%i bajtoj)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 estis kompilata sen subteno al EXIF." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Nombro da subtenataj kameraoj: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Subtenataj kameraoj:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (TESTA)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (EKSPERIMENTA)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Trovitaj aparatoj: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Vojo Priskribo\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Modelo" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Pordo" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Kapabloj por kamerao : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Subteno al seri-pordo : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "Subteno al USB : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Subtenataj ŝutad-rapidoj :\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Kaptadaj preferoj :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Bildo\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Sono\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Antaŭmontro\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : Kaptado de ekigilo\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Kaptado ne estas subtenata de la pelilo\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Subteno al agordo : %s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Forigi tiujn dosierojn en kamerao: %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Forigi ĉiujn dosierojn en kamerao: %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Subteno al dosier-miniaturoj : %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Subteno alŝuti dosierojn : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Pordoj devas ŝajni kiel 'serial:/dev/ttyS0' aŭ 'usb:', sed '%s' malhavas dupunkton, do mi supozos kion vi volis indiki." + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "La pordo kiun vi indikis ('%s') ne povas esti trovata. Bonvolu indiki unu el la pordoj listataj per 'gphoto2 --list-ports' kaj certigi ke la literumado estas korekta (t.e. kun prefikso 'serial:' aŭ 'usb:')." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "Pri la kamerao-pelilo:" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Resumo de kamerao:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Gvidilo de kamerao:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Vi povas indiki rapidojn nur por seri-pordoj." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Pordo por OS/2 farite de Bart van Leeuwen\n" + +# Parou aqui!!! +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Kopirajto (c) 2000-%d Lutz Mueller kaj aliaj\n" +"%s\n" +"gphoto2 portas neninu GARANTION, tiel amplekse kiel permesite de la leĝo.\n" +"Vi povas redisdoni kopiojn de gphoto2 sub la kondiĉoj de la Ĝenerala Publika\n" +"Permeso de GNU. Por pli da informo pri tiuj aferoj, konsultu la dosierojn\n" +"nomitajn COPYING.\n" +"\n" +"Tiu ĉi versio de gphoto2 uzas la jenajn programarajn versiojn kaj preferojn:\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Ne eblis malfermi 'movie.mjpg'." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Ni kaptas antaŭvidajn kadrojn kiel filmon al '%s'. Premu Ctrl-C por rezigni.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Ni kaptas antaŭvidajn kadrojn kiel filmon al '%s' dum %d sekundoj.\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Ni kaptas %d antaŭvidajn kadrojn kiel filmon al '%s'.\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Film-kaptada eraro... Ni ĉesas." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Film-kaptada eraro... Ne traktebla MIME-tipo '%s'." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl-C premite ... Ni ĉesas.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Fino de film-kaptado (%d kadroj)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Ni atendas eventojn el la kamerao. Premu Ctrl-C por rezigni.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Ni atendas %d kadrojn el la kamerao. Premu Ctrl-C por rezigni.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Ni atendas %d milisekundojn por eventoj el la kamerao. Premu Ctrl-C por rezigni.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Ni atendas %d sekundojn por eventoj el la kamerao. Premu Ctrl-C por rezigni.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Ni atendas %d eventojn el la kamerao. Premu Ctrl-C por rezigni.\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Ni atendas eventon %s el la kamerao. Premu Ctrl-C por rezigni.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "evento estis trovata, ni ĉesas atendi!\n" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Ne eblis difini dosierujon." + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Ne eblis akiri bildon." + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "Cimo-plena libcanon.so?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Ne eblis forigi bildon." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Preno de memor-informaron ne estas subtenata de tiu ĉi kamerao.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Leg-skriba" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Nurlega" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Nurlega kun forigo" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Nekonata" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "Fiksa ROM" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "Demovebla ROM" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "Fiksa RAM" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "Demovebla RAM" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Nedifinita" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Ĝenerala plata" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Ĝenerala hierarkia" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Aranĝo de kamerao (DCIM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Ni preterpasas vendant/produktantan id de USB 0x%x/0x%x kun 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "ĈIAM ENMETU LA JENAJN LINIOJN DUM SENDO DE RAFINIGAJN MESAĜOJN AL LA RETPOŜTLISTO:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s estas kompilita kun la jenaj preferoj:" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s ne estis trovata en agorda arbo." + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Ni fiaskis preni valoron de tekst-fenestraĵo %s." + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Ni fiaskis preni valorojn de interval-fenestraĵo %s." + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Ni fiaskis preni valorojn de baskul-fenestraĵo %s." + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Ni fiaskis preni valorojn de dato/tempo-fenestraĵo %s." + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Uzu 'now' kiel nunan tempon dum difino.\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Ni fiaskis preni valorojn de radi-fenestraĵo %s." + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "Eco %s estas nurlega." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Ni fiaskis difini la valoron de tekst-fenestraĵo %s al %s." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "La pasita valoro %s ne estas glitkoma valoro." + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "La pasita valoro %f ne estas en la atendita intervalo %f - %f." + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Ni fiaskis difini la valoron de interval-fenestraĵo %s al %f." + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "malŝaltita" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "falsa" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "ŝaltita" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "vera" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "La pasita valoro %s ne estas valida baskula valoro." + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Ni fiaskis difini la valorojn %s de baskul-fenestraĵo %s." + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "nun" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "La pasita valoro %s ne estas valida horo nek estas entjero." + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Ni fiaskis difini novan horon de dat/temp-fenestraĵo %s al %s." + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Elekto %s ne estis trovata en listo de elektoj." + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "La fenestraĵo %s ne estas agordebla." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Ni fiaskis difini novan agordan valoron %s por la agordero %s." + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "La fenestraĵo %s ne havas indeksitan liston de elektoj. Uzu anstataŭe --set-config-value." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Malĝusta dosier-numero. Vi indikis %i, sed estas nur %i dosieroj disponeblaj en '%s' aŭ ĝiaj subdosierujoj. Bonvolu preni validan dosier-numeron el dosier-listo unue." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Estas neniu dosiero en la ujo '%s'." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Malĝusta dosier-numero. Vi indikis %i, sed estas nur 1 dosiero disponebla en '%s'." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Malĝusta dosier-numero. Vi indikis %i, sed estas nur %i dosieroj disponeblaj en '%s'. Bonvolu preni validan dosier-numeron el dosier-listo unue." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Eraro *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Premu iun klavon por daŭrigi.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Ne sufiĉe da memoro." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Operacio estis nuligata" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Daŭrigi" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Nuligi" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Eraro" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Ne eblis difini agordon:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Eliri" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Retroiri" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Tempo: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Valoro: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Jes" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Ne" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Nulaj ŝtopaj numeroj en dosier-nomoj nur eblas kun %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Vi ne povas uzi %%n nul-ŝtopadon sen precizigan valoron!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "La dosiernomo provizita de la kamerao ('%s') ne enhavas sufikson!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Malvalida formo '%s' (eraro ĉe pozicio %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Preterpasi ekzistantan dosieron %s\n" + +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "La dosiero %s ekzistas. Ĉu anstataŭigi? [y|n] " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Ĉu indiki novan dosiernomon? [y|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Indiku novan dosiernomon: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Konservi dosieron kiel %s\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Permeso rifuzita" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Ne eblis ekigi kaptadon." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Nova dosiero estas en la loko %s%s%s en la kamerao\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Ni tenas la dosieron %s%s%s en la kamerao\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Ni forigas la dosieron %s%s%s en la kamerao\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Evento FOLDER_ADDED %s/%s dum atendo, ni preteratentas.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Evento UNKNOWN %s dum atendo, ni preteratentas.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Nekonata evento-tipo %d dum bulba atendo, ni preteratentas.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Ĉu ne eblis preni kapablojn?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Tempo-prokrasta reĝimo aktiva (intervalo: %ds).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Ni staras atendanta SIGUSR1 por kapti.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Bulba reĝimo aktiva (malkaŝa tempo: %ds).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Ni kaptas kadron #%d...\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Ni kaptas kadron #%d/%d...\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Ne eblis difini bulb-kaptadon, rezulto %d." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Ne eblis finigi kaptadon (bulba reĝimo)." + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Ne eblis ekigi kaptadon de bildo." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Ne eblis kapti bildon." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Kaptado fiaskis (problemo de aŭtomata fokuso?)...\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Ne eblis kapti." + +# Parou aqui!!! +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Ni atendas venontan kaptadan ingon dum %ld sekundoj...\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Vekigita de SIGUSR1...\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "ne dormanta (%ld sekundoj antaŭ programite)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "ERARO: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Ni ĉesas...\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Ĉesigita.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Ni resignas...\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Uzu la jenan sintakson a:b=c:d por trakti USB-aparaton detektitan kiel a:b kiel c:d anstataŭe. a b c d devos esti deksusumaj numeroj kun prefikso '0x'.\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 estas kompilita sen subteno por CDK." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Operacio rezignita.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Eraro: neniu kamerao estis trovata. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Eraro (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Por rafinigaj mesaĝoj, bonvolu use la modifilon --debug.\n" +"Rafinigaj mesaĝoj povos helpi trovi solvon por via problemo.\n" +"Se vi intencas sendi iun eraron aŭ rafinigan mesaĝon por la diskut-listo\n" +"de disvolvigantoj de gphoto , bonvolu\n" +"lanĉi gphoto2 kiel montrite:\n" +"\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Bonvolu certigi ke estas sufiĉe da citado ĉirkaŭ la argumentoj.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "Montri kompletan helpmesaĝo pri uzmaniero de la programo" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "Montri mallongan mesaĝon pri la uzmaniero" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Ŝalti rafinigon" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "Difini rafinigan nivelon [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "Nomo de dosiero al kiu skribi rafinigan informon" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "DOSIERNOMO" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Kvieta eligo (aprioras=detaliga)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Hoka skripto por voki post elŝultoj, kaptadoj, ktp." + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Indiki aparat-pordon" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Indiki serian ŝutan rapidon" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "RAPIDO" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Indiki modelon de kamerao" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "MODELO" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "(spertuloj nur) Preterpasi USB ID" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBID-oj" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Montri version kaj eliri" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Listigi subtenatajn modelojn de kamerao" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Listigi subtenatajn pord-aparatojn" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Montri la kapablojn de kamerao/pelilo en la datumbazo de libgphoto2" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Agordi" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Listigi agordan arbon" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Ŝuti kompletan agordan arbon" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Akiri agordan valoron" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Difini agordan valoron aŭ indekson en elektoj" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "Difini agordan valoran indekson en elektoj" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Difini agordan valoron" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Rekomencigi aparatpordon" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Teni bildojn en la kamerao post kapti ilin" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "Teni bildojn RAW en la kamerao post kapti ilin" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Forigi bildojn el la kamerao post kapti ilin" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Atendi por evento(j) el kamerao" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "COUNT, SECONDS, MILLISECONDS aŭ MATCHSTRING" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Atendi por evento(j) el la kamerao kaj elŝuti novajn bildojn" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Kapti tujan antaŭrigardon" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "Montri etan antaŭrigardon kiel Ascii-arto" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Difini bulban malkaŝan tempon laŭ sekundoj" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "SEKUNDOJ" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Difini nombron da kadroj por kapti (aprioras=senlime)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "NOMBRO" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Difini kaptadan intervalon laŭ sekundoj" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Rekomencigi kaptadan intervalon je signalo (aprioras=ne)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Kapti bildon" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Ekigi kaptadon de bildo" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Kapti bildon kaj elŝuti ĝin" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Kapti filmon" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "NOMBRO aŭ SEKUNDOJ" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Kapti sonaĵon" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Atendi lason de lumfermilo en la kamerao kaj elŝuti" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Ekigi bildo-kaptadon" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Listigi ujojn en dosierujo" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Listigi dosierojn en dosierujo" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Krei dosierujon" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "DOSIERUJNOMO" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Forigi dosierujon" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Montri kiom dosieroj" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Preni dosierojn indikitajn en intervalo" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "INTERVALO" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Preni ĉiujn dosierojn el ujo" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Preni miniaturojn indikitajn en intervalo" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Preni ĉiujn miniaturojn el ujo" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Preni metadatumaron indikitan en intervalo" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Preni ĉiun metadatumaron el ujo" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Alŝuti metadatumaron por dosiero" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Preni krudan datumaron indikitan en intervalo" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Preni ĉiun krudan datumaron el ujo" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Preni sonan datumaron indikitan en intervalo" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Preni ĉiun sonan datumaron el ujo" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Forigi dosierojn indikitan en intervalo" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Forigi ĉiujn dosierojn el ujo (--no-recurse aprioras)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Alŝuti dosieron al kamerao" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Indiki dosiernomon aŭ dosiernoman ŝablonon" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "DOSIERNOMA_ŜABLONO" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Indiki kameraan ujon (aprioras=\"/\")" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "DOSIERUJO" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Rikuro (aprioras por elŝuto)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Sen rikuro (aprioras por forigo)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Procezi nur novajn dosierojn" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Anstataŭigi dosierojn sen demandi" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Pretersalti ekzistantajn dosierojn" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Sendi dosieron al la ĉefeligujo" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "Montri dosiergrandon antaŭ ol datumaron" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Listigi aŭtomat-detektitajn kameraojn" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Montri informaron EXIF el bildoj JPEG" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Montri bildajn informojn, kiel larĝo, alto, kaj kaptotempo" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "Montri resumon de kamerao" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Montri manlibron de la kamerao-pelilo" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "Pri la manlibro de la kamerao-pelilo" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Montri informon pri memoro" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "Ŝelo de gPhoto" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Ordinaraj preferoj" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Diversaj preferoj (neordigitaj)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "Preni informon pri la programaro kaj gastiganta sistemo (ne el la kamerao)" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "Indiki la uzotan kameraon" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Agordoj de kamerao kaj de programaro" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Kapti bildojn el aŭ en la kamerao" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Elŝuto, alŝuto kaj manipulo de dosieroj" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"ID de bildoj devas esti numeroj pli grandaj ol nulo." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"ID de bildo %i tro grandas." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Intervaloj devas esti apartitaj per ','." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Intervaloj devas komenci per numero." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Neatendita signo '%c'." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Malkreskantaj intervaloj ne estas permesataj. Vi devas indiki intervalon de %i al %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Eraro (%i: '%s') ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Ŝanĝi al dosierujo en la kamerao" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "dosierujo" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Ŝanĝi al dosierujo en la loka diskaparato" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Folasi la ŝelon de gPhoto" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Elŝuti dosieron" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[dosierujo/]dosiernomo" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Alŝuti dosieron" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Elŝuti miniaturon" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Elŝuti krudan datumaron" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Forigi" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Krei dosierujon" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Forigi dosierujon" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Montri uzmanieron de komando" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[komando]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Listigi la enhavojn de la kuranta dosierujo" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[dosierujo/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Listigi la agordajn variablojn" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Preni agordan variablon" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "nomo" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Difini agordan variablon" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "nomo=valoro" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Difini agordan variablan indekson" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "nomo=valorindekso" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Kapti nur unu bildon" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Kapti nur unu bildon kaj elŝuti ĝin" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Kapti antaŭvidan bildon" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Atendi eventon" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "nombrado aŭ sekundoj" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Atendi ke bildoj estu kaptitaj kaj elŝuti ilin" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Atendi ke eventoj kaj bildoj estu kaptitaj kaj elŝuti ilin" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Malvalida komando." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "La komando '%s' postulas argumenton." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Malvalida vojo." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Ne eblis trovi hejman dosierujon." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Ne eblis ŝanĝi al la loka dosierujo '%s'." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Loka dosierujo nun estas '%s'." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Defora dosierujo nun estas '%s'." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config bezonas duan argumenton.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value bezonas duan argumenton.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index bezonas duan argumenton.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Komando '%s' ne estis trovita. Uzu 'help' por liston de disponeblaj komandoj." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Helpon pri \"%s\":" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Uzmaniero:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Priskribo:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Argumentoj inter krampoj [] estas malnepraj" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Disponeblaj komandoj:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Por havi helpon pri specifa komando, tajpu 'help komand-nomo'." + +#~ msgid "Show info" +#~ msgstr "Montri informon" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/es.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/es.po new file mode 100644 index 00000000..6eaea93d --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/es.po @@ -0,0 +1,1113 @@ +# Translation of GPhoto2 to Castilian aka Spanish +# Traducción al castellano de Gphoto2 +# Copyright (C) 2002 Fabian Mandelbaum +# Quique , 2004. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.1.2\n" +"POT-Creation-Date: 2003-08-10 20:58+0200\n" +"PO-Revision-Date: 2004-05-11 07:55+0200\n" +"Last-Translator: Quique \n" +"Language-Team: Spanish \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.3.1\n" + +#: gphoto2/actions.c:101 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Cantidad de ficheros en la carpeta «%s»: %i\n" + +#: gphoto2/actions.c:122 +#, c-format +msgid "There are no folders in folder '%s'." +msgstr "No hay ninguna carpeta en la carpeta «%s»." + +#: gphoto2/actions.c:126 +#, c-format +msgid "There is one folder in folder '%s':" +msgstr "Hay una carpeta en la carpeta «%s»:" + +#: gphoto2/actions.c:130 +#, c-format +msgid "There are %i folders in folder '%s':" +msgstr "Hay %i carpetas en la carpeta «%s»:" + +#: gphoto2/actions.c:157 gphoto2/foreach.c:277 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "No hay ningún fichero en la carpeta «%s»." + +#: gphoto2/actions.c:162 +#, c-format +msgid "There is one file in folder '%s':" +msgstr "Hay un fichero en la carpeta «%s»:" + +#: gphoto2/actions.c:167 +#, c-format +msgid "There are %i files in folder '%s':" +msgstr "Hay %i ficheros en la carpeta «%s»:" + +#: gphoto2/actions.c:188 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Información sobre el fichero «%s» (carpeta «%s»):\n" + +#: gphoto2/actions.c:190 +msgid "File:\n" +msgstr "Fichero:\n" + +#: gphoto2/actions.c:192 gphoto2/actions.c:226 gphoto2/actions.c:242 +msgid " None available.\n" +msgstr " Ninguno disponible.\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid " Name: '%s'\n" +msgstr " Nombre: «%s»\n" + +#: gphoto2/actions.c:197 gphoto2/actions.c:229 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Tipo MIME: «%s»\n" + +#: gphoto2/actions.c:199 gphoto2/actions.c:231 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Tamaño: %li byte(s)\n" + +#: gphoto2/actions.c:201 gphoto2/actions.c:233 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Anchura: %i píxel(es)\n" + +#: gphoto2/actions.c:203 gphoto2/actions.c:235 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Altura: %i píxel(es)\n" + +#: gphoto2/actions.c:205 gphoto2/actions.c:237 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Descargado: %s\n" + +#: gphoto2/actions.c:206 gphoto2/actions.c:238 gphoto2/actions.c:250 +#: gphoto2/actions.c:548 gphoto2/actions.c:550 gphoto2/actions.c:567 +#: gphoto2/actions.c:570 gphoto2/actions.c:573 gphoto2/actions.c:576 +msgid "yes" +msgstr "sí" + +#: gphoto2/actions.c:206 gphoto2/actions.c:238 gphoto2/actions.c:250 +#: gphoto2/actions.c:548 gphoto2/actions.c:550 gphoto2/actions.c:567 +#: gphoto2/actions.c:570 gphoto2/actions.c:573 gphoto2/actions.c:576 +msgid "no" +msgstr "no" + +#: gphoto2/actions.c:208 +msgid " Permissions: " +msgstr " Permisos: " + +#: gphoto2/actions.c:211 +msgid "read/delete" +msgstr "lectura/borrado" + +#: gphoto2/actions.c:213 +msgid "read" +msgstr "lectura" + +#: gphoto2/actions.c:215 +msgid "delete" +msgstr "borrado" + +#: gphoto2/actions.c:217 +msgid "none" +msgstr "ninguno" + +# He comprobado que en otros idiomas lo traducen como "hora". +#: gphoto2/actions.c:221 +#, c-format +msgid " Time: %s" +msgstr " Hora: %s" + +#: gphoto2/actions.c:224 +msgid "Thumbnail:\n" +msgstr "Miniatura:\n" + +#: gphoto2/actions.c:240 +msgid "Audio data:\n" +msgstr "Datos de audio:\n" + +#: gphoto2/actions.c:245 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Tipo MIME: «%s»\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Tamaño: %li byte(s)\n" + +#: gphoto2/actions.c:249 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Descargado: %s\n" + +#: gphoto2/actions.c:380 +msgid "Could not parse EXIF data." +msgstr "No se han podido analizar los datos EXIF." + +#: gphoto2/actions.c:384 +msgid "EXIF tags:" +msgstr "Etiquetas EXIF:" + +#: gphoto2/actions.c:387 +msgid "Tag" +msgstr "Etiqueta" + +#: gphoto2/actions.c:389 +msgid "Value" +msgstr "Valor" + +#: gphoto2/actions.c:410 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Los datos EXIF contienen una miniatura (%i bytes)." + +#: gphoto2/actions.c:419 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 ha sido compilado sin soporte para EXIF." + +#: gphoto2/actions.c:437 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Número de cámaras soportadas : %i\n" + +#: gphoto2/actions.c:439 +msgid "Supported cameras:\n" +msgstr "Cámaras soportadas:\n" + +#: gphoto2/actions.c:452 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (PRUEBA)\n" + +#: gphoto2/actions.c:455 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (EXPERIMENTAL)\n" + +#: gphoto2/actions.c:460 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:488 +#, c-format +msgid "Devices found: %i\n" +msgstr "Dispositivos encontrados: %i\n" + +#: gphoto2/actions.c:489 +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Ruta Descripción\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:528 gphoto2/actions.c:533 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:528 +msgid "Model" +msgstr "Modelo" + +#: gphoto2/actions.c:528 +msgid "Port" +msgstr "Puerto" + +#: gphoto2/actions.c:529 +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:546 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Capacidades de la cámara : %s\n" + +#: gphoto2/actions.c:547 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Soporte de puerto serie : %s\n" + +#: gphoto2/actions.c:549 +#, c-format +msgid "USB support : %s\n" +msgstr "Soporte de puerto USB : %s\n" + +#: gphoto2/actions.c:552 +msgid "Transfer speeds supported :\n" +msgstr "Velocidades de transferencia soportadas :\n" + +#: gphoto2/actions.c:554 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:557 +msgid "Capture choices :\n" +msgstr "Opciones de captura :\n" + +#: gphoto2/actions.c:559 +msgid " : Image\n" +msgstr " : Imagen\n" + +#: gphoto2/actions.c:561 +msgid " : Video\n" +msgstr " : Vídeo\n" + +#: gphoto2/actions.c:563 +msgid " : Audio\n" +msgstr " : Audio\n" + +#: gphoto2/actions.c:565 +msgid " : Preview\n" +msgstr " : Previsualización\n" + +#: gphoto2/actions.c:566 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Soporte de configuración : %s\n" + +#: gphoto2/actions.c:568 +#, c-format +msgid "Delete files on camera support : %s\n" +msgstr "Soporte de borrado de ficheros en cámara: %s\n" + +#: gphoto2/actions.c:571 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Soporte de miniaturas : %s\n" + +#: gphoto2/actions.c:574 +#, c-format +msgid "File upload support : %s\n" +msgstr "Soporte de envío de ficheros : %s\n" + +#: gphoto2/actions.c:591 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Los puertos deben tener un aspecto tal como «serial:/dev/ttyS0» o «usb:», pero falta un «:» en «%s» por lo que se va a intentar adivinar lo que quiso decir." + +#: gphoto2/actions.c:630 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "No se puede encontrar el puerto que ha especificado («%s»). Por favor, especifique uno de los puertos encontrados por «gphoto2 --list-ports» y asegúrese de que la sintaxis es correcta (es decir, con el prefijo «serial:» o «usb:»)." + +#: gphoto2/actions.c:668 +msgid "About the camera driver:" +msgstr "Acerca del controlador de la cámara:" + +#: gphoto2/actions.c:682 +msgid "Camera summary:" +msgstr "Resumen de la cámara:" + +#: gphoto2/actions.c:696 +msgid "Camera manual:" +msgstr "Manual de la cámara:" + +#: gphoto2/actions.c:712 +msgid "You can only specify speeds for serial ports." +msgstr "La velocidad sólo se puede especificar para los puertos serie." + +#: gphoto2/actions.c:763 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-2003 Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-2003 Lutz Mueller y otros\n" +"%s\n" +"gphoto2 se entrega SIN NINGUNA GARANTÍA, hasta el punto permitido por la ley.\n" +"Usted puede distribuir copias de gphoto2 bajo los términos de la Licencia\n" +"Pública General de GNU. Para más información al respecto, consulte los\n" +"ficheros llamados COPYING.\n" +"\n" +"Esta versión de gphoto2 usa las siguientes versiones de software y opciones:\n" + +#: gphoto2/actions.c:776 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Adaptado a OS/2 por Bart van Leeuwen\n" + +#: gphoto2/actions.c:890 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "INCLUYA SIEMPRE LA SIGUIENTE LÍNEA CUANDO ENVÍE MENSAJES DE DEPURACIÓN A LA LISTA DE DISTRIBUCIÓN DE CORREO:" + +#: gphoto2/foreach.c:254 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Número de fichero incorrecto. Ha indicado %i, pero sólo hay %i ficheros disponibles en «%s» o sus subcarpetas. Por favor, obtenga antes un número de fichero válido de un listado de ficheros." + +#: gphoto2/foreach.c:283 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Número de fichero incorrecto. Ha indicado %i, pero sólo hay disponible 1 fichero en «%s»." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'.Please obtain a valid file number from a file listing first." +msgstr "Número de fichero incorrecto. Ha indicado %i, pero sólo hay %i ficheros disponibles en «%s». Por favor, obtenga antes un número de fichero válido de un listado de ficheros." + +#: gphoto2/gp-params.c:53 +msgid "*** Error *** \n" +msgstr "*** Error *** \n" + +#: gphoto2/gp-params.c:220 +msgid "Press any key to continue.\n" +msgstr "Pulse cualquier tecla para continuar.\n" + +#: gphoto2/gp-params.c:237 +msgid "Not enough memory." +msgstr "No hay suficiente memoria." + +#: gphoto2/gphoto2-cmd-capture.c:201 +msgid "Operation cancelled" +msgstr "Operación cancelada" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "Continuar" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "Cancelar" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "Error" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "No se puede aplicar la configuración:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "Salir" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "Regresar" + +# He comprobado que en otros idiomas lo traducen como hora. +#: gphoto2/gphoto2-cmd-config.c:253 +msgid "Time: " +msgstr "Hora: " + +#: gphoto2/gphoto2-cmd-config.c:312 gphoto2/gphoto2-cmd-config.c:340 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "Valor: " + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "Sí" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "No" + +#: gphoto2/main.c:161 gphoto2/main.c:1461 +msgid "Turn on debugging" +msgstr "Activar la depuración" + +#: gphoto2/main.c:162 gphoto2/main.c:1463 +msgid "Quiet output (default=verbose)" +msgstr "Salida silenciosa (por omisión=prolija)" + +#: gphoto2/main.c:166 gphoto2/main.c:1467 +msgid "Display version and exit" +msgstr "Mostrar la versión y salir" + +#: gphoto2/main.c:167 +msgid "Displays this help screen" +msgstr "Muestra esta pantalla de ayuda" + +#: gphoto2/main.c:168 gphoto2/main.c:1469 +msgid "List supported camera models" +msgstr "Lista los modelos de cámara soportados" + +#: gphoto2/main.c:169 gphoto2/main.c:1471 +msgid "List supported port devices" +msgstr "Lista los tipos de puerto soportados" + +#: gphoto2/main.c:170 gphoto2/main.c:1473 +msgid "Send file to stdout" +msgstr "Enviar fichero a la salida estándar" + +#: gphoto2/main.c:171 gphoto2/main.c:1475 +msgid "Print filesize before data" +msgstr "Mostrar el tamaño del fichero antes que los datos" + +#: gphoto2/main.c:172 gphoto2/main.c:1477 +msgid "List auto-detected cameras" +msgstr "Listar las cámaras detectadas automáticamente" + +#: gphoto2/main.c:175 gphoto2/main.c:1479 +msgid "Specify port device" +msgstr "Indicar el puerto del dispositivo" + +#: gphoto2/main.c:176 gphoto2/main.c:1481 +msgid "Specify serial transfer speed" +msgstr "Indicar la velocidad de transferencia serie" + +#: gphoto2/main.c:177 gphoto2/main.c:1483 +msgid "Specify camera model" +msgstr "Indicar el modelo de la cámara" + +#: gphoto2/main.c:178 gphoto2/main.c:1485 +msgid "Specify a filename" +msgstr "Indicar un nombre de fichero" + +#: gphoto2/main.c:179 gphoto2/main.c:1487 +msgid "(expert only) Override USB IDs" +msgstr "(sólo para expertos) Ignorar los IDs de USB" + +#: gphoto2/main.c:182 gphoto2/main.c:1489 +msgid "Display camera abilities" +msgstr "Mostrar las capacidades de la cámara" + +#: gphoto2/main.c:183 gphoto2/main.c:1491 +msgid "Specify camera folder (default=\"/\")" +msgstr "Indicar la carpeta de cámara (predeterminada=\"/\")" + +#: gphoto2/main.c:184 gphoto2/main.c:1493 +msgid "Recursion (default for download)" +msgstr "Recursión (predeterminado para la descarga)" + +#: gphoto2/main.c:185 gphoto2/main.c:1495 +msgid "No recursion (default for deletion)" +msgstr "Sin recursión (predeterminado para el borrado)" + +#: gphoto2/main.c:186 gphoto2/main.c:1497 +msgid "List folders in folder" +msgstr "Listar las carpetas que hay en la carpeta" + +#: gphoto2/main.c:187 gphoto2/main.c:1499 +msgid "List files in folder" +msgstr "Listar los ficheros que hay en la carpeta" + +#: gphoto2/main.c:188 gphoto2/main.c:189 +msgid "name" +msgstr "nombre" + +#: gphoto2/main.c:188 gphoto2/main.c:1501 +msgid "Create a directory" +msgstr "Crear un directorio" + +#: gphoto2/main.c:189 gphoto2/main.c:1503 +msgid "Remove a directory" +msgstr "Eliminar un directorio" + +#: gphoto2/main.c:190 gphoto2/main.c:1505 +msgid "Display number of files" +msgstr "Mostrar el número de ficheros" + +#: gphoto2/main.c:191 gphoto2/main.c:1507 +msgid "Get files given in range" +msgstr "Obtener los ficheros del intervalo" + +#: gphoto2/main.c:192 gphoto2/main.c:1509 +msgid "Get all files from folder" +msgstr "Obtener todos los ficheros de la carpeta" + +#: gphoto2/main.c:193 gphoto2/main.c:1511 +msgid "Get thumbnails given in range" +msgstr "Obtener las miniaturas del intervalo" + +#: gphoto2/main.c:194 gphoto2/main.c:1514 +msgid "Get all thumbnails from folder" +msgstr "Obtener todas las miniaturas de la carpeta" + +#: gphoto2/main.c:195 gphoto2/main.c:1517 +msgid "Get raw data given in range" +msgstr "Obtener los datos en bruto del intervalo" + +#: gphoto2/main.c:196 gphoto2/main.c:1520 +msgid "Get all raw data from folder" +msgstr "Obtener todos los datos en bruto de la carpeta" + +#: gphoto2/main.c:197 gphoto2/main.c:1523 +msgid "Get audio data given in range" +msgstr "Obtener los datos de audio del intervalo" + +#: gphoto2/main.c:198 gphoto2/main.c:1526 +msgid "Get all audio data from folder" +msgstr "Obtener todos los datos de audio de la carpeta" + +#: gphoto2/main.c:199 gphoto2/main.c:1528 +msgid "Delete files given in range" +msgstr "Borrar los ficheros del intervalo" + +#: gphoto2/main.c:200 gphoto2/main.c:1530 +msgid "Delete all files in folder" +msgstr "Borrar todos los ficheros de la carpeta" + +#: gphoto2/main.c:201 gphoto2/main.c:1532 +msgid "Upload a file to camera" +msgstr "Enviar un fichero a la cámara" + +#: gphoto2/main.c:203 gphoto2/main.c:1535 +msgid "Configure" +msgstr "Configurar" + +#: gphoto2/main.c:205 gphoto2/main.c:1539 +msgid "Capture a quick preview" +msgstr "Capturar una previsualización rápida" + +#: gphoto2/main.c:206 gphoto2/main.c:1541 +msgid "Capture an image" +msgstr "Capturar una imagen" + +#: gphoto2/main.c:207 +msgid "Capture a movie " +msgstr "Capturar una película " + +#: gphoto2/main.c:208 gphoto2/main.c:1545 +msgid "Capture an audio clip" +msgstr "Capturar un clip de audio" + +#: gphoto2/main.c:210 gphoto2/main.c:1548 gphoto2/shell.c:113 +msgid "Show EXIF information" +msgstr "Mostrar la información EXIF" + +#: gphoto2/main.c:212 gphoto2/main.c:1551 gphoto2/shell.c:109 +msgid "Show info" +msgstr "Mostrar información" + +#: gphoto2/main.c:213 +msgid "Summary of camera status" +msgstr "Resumen del estado de la cámara" + +#: gphoto2/main.c:214 +msgid "Camera driver manual" +msgstr "Manual del controlador de la cámara" + +#: gphoto2/main.c:215 +msgid "About the camera driver" +msgstr "Acerca del controlador de la cámara" + +#: gphoto2/main.c:216 gphoto2/main.c:1559 +msgid "gPhoto shell" +msgstr "Intérprete gPhoto" + +#: gphoto2/main.c:343 gphoto2/main.c:1192 +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Utilice la sintaxis a:b=c:d para tratar a cualquier dispositivo USB detectado como a:b como si fuera c:d. a b c y d deberían ser números hexadecimales que comienzan con '0x'.\n" + +#: gphoto2/main.c:466 +msgid "Jan" +msgstr "ene" + +#: gphoto2/main.c:466 +msgid "January" +msgstr "enero" + +#: gphoto2/main.c:467 +msgid "Feb" +msgstr "feb" + +#: gphoto2/main.c:467 +msgid "February" +msgstr "febrero" + +#: gphoto2/main.c:468 +msgid "Mar" +msgstr "mar" + +#: gphoto2/main.c:468 +msgid "March" +msgstr "marzo" + +#: gphoto2/main.c:469 +msgid "Apr" +msgstr "abr" + +#: gphoto2/main.c:469 +msgid "April" +msgstr "abril" + +#: gphoto2/main.c:470 +msgid "May" +msgstr "may" + +#: gphoto2/main.c:471 +msgid "Jun" +msgstr "jun" + +#: gphoto2/main.c:471 +msgid "June" +msgstr "junio" + +#: gphoto2/main.c:472 +msgid "Jul" +msgstr "jul" + +#: gphoto2/main.c:472 +msgid "July" +msgstr "julio" + +#: gphoto2/main.c:473 +msgid "Aug" +msgstr "agt" + +#: gphoto2/main.c:473 +msgid "August" +msgstr "agosto" + +#: gphoto2/main.c:474 +msgid "Sep" +msgstr "sep" + +#: gphoto2/main.c:474 +msgid "September" +msgstr "septiembre" + +#: gphoto2/main.c:475 +msgid "Oct" +msgstr "oct" + +#: gphoto2/main.c:475 +msgid "October" +msgstr "octubre" + +#: gphoto2/main.c:476 +msgid "Nov" +msgstr "nov" + +#: gphoto2/main.c:476 +msgid "November" +msgstr "noviembre" + +#: gphoto2/main.c:477 +msgid "Dec" +msgstr "dic" + +#: gphoto2/main.c:477 +msgid "December" +msgstr "diciembre" + +#: gphoto2/main.c:484 +msgid "Sun" +msgstr "dom" + +#: gphoto2/main.c:484 +msgid "Sunday" +msgstr "domingo" + +#: gphoto2/main.c:485 +msgid "Mon" +msgstr "lun" + +#: gphoto2/main.c:485 +msgid "Monday" +msgstr "lunes" + +#: gphoto2/main.c:486 +msgid "Tue" +msgstr "mar" + +#: gphoto2/main.c:486 +msgid "Tuesday" +msgstr "martes" + +#: gphoto2/main.c:487 +msgid "Wed" +msgstr "mié" + +#: gphoto2/main.c:487 +msgid "Wednesday" +msgstr "miércoles" + +#: gphoto2/main.c:488 +msgid "Thu" +msgstr "jue" + +#: gphoto2/main.c:488 +msgid "Thursday" +msgstr "jueves" + +#: gphoto2/main.c:489 +msgid "Fri" +msgstr "vie" + +#: gphoto2/main.c:489 +msgid "Friday" +msgstr "viernes" + +#: gphoto2/main.c:490 +msgid "Sat" +msgstr "sáb" + +#: gphoto2/main.c:490 +msgid "Saturday" +msgstr "sábado" + +#: gphoto2/main.c:552 +#, c-format +msgid "You cannot use '%n' in combination with non-persistent files!" +msgstr "No puede utilizar «%n» en combinación con ficheros no persistentes." + +#: gphoto2/main.c:575 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "El nombre de fichero proporcionado por la cámara («%s») no tiene sufijo." + +#: gphoto2/main.c:654 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Formato «%s» no válido (error en la posición %i)." + +# !!! [y/n] !!! [CM] +#: gphoto2/main.c:701 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "El fichero %s existe. ¿Sobreescribir? [y|n] " + +#: gphoto2/main.c:712 +msgid "Specify new filename? [y|n] " +msgstr "¿Indicar un nuevo nombre de fichero? [y|n] " + +#: gphoto2/main.c:721 +msgid "Enter new filename: " +msgstr "Introduzca el nuevo nombre de fichero: " + +#: gphoto2/main.c:726 +#, c-format +msgid "Saving file as %s\n" +msgstr "Guardando el fichero como %s\n" + +#: gphoto2/main.c:918 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "El nuevo fichero está en la ubicación %s%s%s en la cámara\n" + +#: gphoto2/main.c:1050 +msgid "ERROR: " +msgstr "ERROR: " + +#: gphoto2/main.c:1073 +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Interrumpiendo...\n" + +#: gphoto2/main.c:1079 +msgid "Aborted.\n" +msgstr "Interrumpido.\n" + +#: gphoto2/main.c:1084 +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Cancelando...\n" + +#: gphoto2/main.c:1291 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 ha sido compilado sin soporte para CDK." + +#: gphoto2/main.c:1404 +msgid "Operation cancelled.\n" +msgstr "Operación cancelada.\n" + +#: gphoto2/main.c:1408 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Error (%i: «%s») *** \n" +"\n" + +#: gphoto2/main.c:1412 +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Por favor, utilice la opción --debug para obtener los mensajes de depuración.\n" +"Estos mensajes pueden ayudar a encontrar una solución a su problema.\n" +"Si piensa enviar cualquier mensaje de error o de depuración a la lista\n" +"de distribución de desarrolladores de gPhoto ,\n" +"por favor ejecute gphoto2 como sigue:\n" +"\n" + +#: gphoto2/main.c:1465 +msgid "Overwrite files without asking." +msgstr "Sobreescribir los ficheros sin preguntar." + +#: gphoto2/main.c:1479 +msgid "path" +msgstr "ruta" + +#: gphoto2/main.c:1481 +msgid "speed" +msgstr "velocidad" + +#: gphoto2/main.c:1483 +msgid "model" +msgstr "modelo" + +#: gphoto2/main.c:1485 +msgid "filename" +msgstr "fichero" + +#: gphoto2/main.c:1487 +msgid "usbid" +msgstr "usbid" + +#: gphoto2/main.c:1491 +msgid "folder" +msgstr "carpeta" + +#: gphoto2/main.c:1543 +msgid "Capture a movie" +msgstr "Capturar una película" + +#: gphoto2/main.c:1553 +msgid "Show summary" +msgstr "Mostrar un resumen" + +#: gphoto2/main.c:1555 +msgid "Show camera driver manual" +msgstr "Mostrar el manual del controlador de la cámara" + +#: gphoto2/main.c:1557 +msgid "About the camera driver manual" +msgstr "Acerca del manual controlador de la cámara" + +#: gphoto2/main.c:1784 +msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +msgstr "gPhoto2 para OS/2 necesita que configure la variable de entorno CAMLIBS con la ubicación de las bibliotecas de soporte de las cámaras. Por ejemplo SET CAMLIBS=C:\\GPHOTO2\\CAM\n" + +#: gphoto2/main.c:1794 +msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +msgstr "gPhoto2 para OS/2 necesita que configure la variable de entorno IOLIBS con la ubicación de las bibliotecas de E/S. Por ejemplo SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" + +#: gphoto2/options.c:181 +msgid "Usage:\n" +msgstr "Sintaxis:\n" + +#: gphoto2/options.c:184 +msgid "" +"Short/long options (& argument) Description\n" +"--------------------------------------------------------------------------------\n" +msgstr "" +"Opciones cortas/largas (& argumento) Descripción\n" +"--------------------------------------------------------------------------------\n" + +#: gphoto2/options.c:209 +#, c-format +msgid "%-38s %s\n" +msgstr "%-32s %s\n" + +#: gphoto2/options.c:214 +msgid "" +"--------------------------------------------------------------------------------\n" +"[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +msgstr "" +"--------------------------------------------------------------------------------\n" +"[Usar comillas para los arg.] [Los números de imagen comienzan con un (1)]\n" + +#: gphoto2/range.c:103 gphoto2/range.c:157 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Los ID de imagen deben ser un número mayor que cero." + +#: gphoto2/range.c:109 gphoto2/range.c:163 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"ID de imagen %i demasiado grande." + +#: gphoto2/range.c:125 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Los intervalos deben estar separados por «,»." + +#: gphoto2/range.c:139 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Los intervalos deben comenzar con un número." + +#: gphoto2/range.c:179 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Carácter inesperado «%c»." + +#: gphoto2/range.c:202 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"No se permiten intervalos decrecientes. Ha indicado un intervalo de %i a %i." + +#: gphoto2/shell.c:55 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Error (%i: «%s») ***" + +#: gphoto2/shell.c:98 +msgid "Change to a directory on the camera" +msgstr "Cambiar a un directorio en la cámara" + +#: gphoto2/shell.c:99 gphoto2/shell.c:101 +msgid "directory" +msgstr "directorio" + +#: gphoto2/shell.c:100 +msgid "Change to a directory on the local drive" +msgstr "Cambiar a un directorio en el disco local" + +#: gphoto2/shell.c:102 gphoto2/shell.c:120 gphoto2/shell.c:121 +msgid "Exit the gPhoto shell" +msgstr "Salir del intérprete gPhoto" + +#: gphoto2/shell.c:103 +msgid "Download a file" +msgstr "Descargar un fichero" + +#: gphoto2/shell.c:103 gphoto2/shell.c:106 gphoto2/shell.c:108 +#: gphoto2/shell.c:110 gphoto2/shell.c:111 gphoto2/shell.c:114 +msgid "[directory/]filename" +msgstr "[directorio/]fichero" + +#: gphoto2/shell.c:105 +msgid "Download a thumbnail" +msgstr "Descargar una miniatura" + +#: gphoto2/shell.c:107 +msgid "Download raw data" +msgstr "Descargar datos en bruto" + +#: gphoto2/shell.c:111 +msgid "Delete" +msgstr "Borrar" + +#: gphoto2/shell.c:116 gphoto2/shell.c:122 +msgid "Displays command usage" +msgstr "Muestra la sintaxis de los mandatos" + +#: gphoto2/shell.c:117 gphoto2/shell.c:122 +msgid "[command]" +msgstr "[mandato]" + +#: gphoto2/shell.c:118 +msgid "List the contents of the current directory" +msgstr "Lista el contenido del directorio actual" + +#: gphoto2/shell.c:119 +msgid "[directory/]" +msgstr "[directorio/]" + +#: gphoto2/shell.c:421 +msgid "Invalid command." +msgstr "Mandato no válido." + +#: gphoto2/shell.c:430 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "El mandato «%s» precisa de un argumento." + +#: gphoto2/shell.c:483 +msgid "Invalid path." +msgstr "Ruta no válida." + +#: gphoto2/shell.c:529 +msgid "Could not find home directory." +msgstr "No se puede encontrar el directorio inicial." + +#: gphoto2/shell.c:537 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "No se puede cambiar al directorio local «%s»." + +#: gphoto2/shell.c:540 +#, c-format +msgid "Local directory now '%s'." +msgstr "El directorio local es ahora «%s»." + +#: gphoto2/shell.c:578 +#, c-format +msgid "Remote directory now '%s'." +msgstr "El directorio remoto es ahora «%s»." + +#: gphoto2/shell.c:734 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "No se ha encontrado el mandato «%s». Utilice «help» para obtener una lista de los mandatos disponibles." + +#: gphoto2/shell.c:741 +#, c-format +msgid "Help on \"%s\":" +msgstr "Ayuda sobre \"%s\":" + +#: gphoto2/shell.c:743 +msgid "Usage:" +msgstr "Sintaxis:" + +#: gphoto2/shell.c:747 +msgid "Description:" +msgstr "Descripción:" + +#: gphoto2/shell.c:749 +msgid "* Arguments in brackets [] are optional" +msgstr "* Los argumentos entre corchetes [] son opcionales" + +#: gphoto2/shell.c:770 +msgid "Available commands:" +msgstr "Mandatos disponibles:" + +#: gphoto2/shell.c:775 +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Para obtener ayuda sobre un mandato en particular, teclee «help nombre-del-mandato»." diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/eu.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/eu.po new file mode 100644 index 00000000..3cff5595 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/eu.po @@ -0,0 +1,1652 @@ +# Translation of gphoto2 to Basque. +# This file is distributed under the same license as the PACKAGE package. +# Hizkuntza Politikarako Sailburuordetza , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2008-03-24 20:14+0100\n" +"PO-Revision-Date: 2005-05-11 18:05+0200\n" +"Last-Translator: Hizkuntza Politikarako Sailburuordetza \n" +"Language-Team: Basque \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.9.1\n" +"Plural-Forms: Plural-Forms: nplurals=2; plural=(n != 1);\n" +"\n" + +#: gphoto2/actions.c:167 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "'%s' karpetako fitxategi-kopurua: %i\n" + +#: gphoto2/actions.c:187 +#, fuzzy, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Karpeta bat dago '%s' karpetan:" +msgstr[1] "Karpeta bat dago '%s' karpetan:" + +#: gphoto2/actions.c:227 +#, fuzzy, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Fitxategi bat dago '%s' karpetan:" + +#: gphoto2/actions.c:230 +#, fuzzy, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Fitxategi bat dago '%s' karpetan:" +msgstr[1] "Fitxategi bat dago '%s' karpetan:" + +#: gphoto2/actions.c:251 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "'%s' fitxategiari buruzko informazioa ('%s' karpeta):\n" + +#: gphoto2/actions.c:253 +#, c-format +msgid "File:\n" +msgstr "Fitxategia:\n" + +#: gphoto2/actions.c:255 gphoto2/actions.c:289 gphoto2/actions.c:305 +#, c-format +msgid " None available.\n" +msgstr " Bat ere ez erabilgarri.\n" + +#: gphoto2/actions.c:258 +#, c-format +msgid " Name: '%s'\n" +msgstr " Izena: '%s'\n" + +#: gphoto2/actions.c:260 gphoto2/actions.c:292 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME mota: '%s'\n" + +#: gphoto2/actions.c:262 gphoto2/actions.c:294 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Tamaina: %li byte\n" + +#: gphoto2/actions.c:264 gphoto2/actions.c:296 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Zabalera: %i pixel\n" + +#: gphoto2/actions.c:266 gphoto2/actions.c:298 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Altuera: %i pixel\n" + +#: gphoto2/actions.c:268 gphoto2/actions.c:300 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Deskargatuta: %s\n" + +#: gphoto2/actions.c:269 gphoto2/actions.c:301 gphoto2/actions.c:313 +#: gphoto2/actions.c:663 gphoto2/actions.c:665 gphoto2/actions.c:693 +#: gphoto2/actions.c:696 gphoto2/actions.c:699 gphoto2/actions.c:702 +#: gphoto2/actions.c:705 gphoto2/actions.c:1511 +msgid "yes" +msgstr "bai" + +#: gphoto2/actions.c:269 gphoto2/actions.c:301 gphoto2/actions.c:313 +#: gphoto2/actions.c:663 gphoto2/actions.c:665 gphoto2/actions.c:693 +#: gphoto2/actions.c:696 gphoto2/actions.c:699 gphoto2/actions.c:702 +#: gphoto2/actions.c:705 gphoto2/actions.c:1505 +msgid "no" +msgstr "ez" + +#: gphoto2/actions.c:271 +#, c-format +msgid " Permissions: " +msgstr " Baimenak: " + +#: gphoto2/actions.c:274 +#, c-format +msgid "read/delete" +msgstr "irakurri/ezabatu" + +#: gphoto2/actions.c:276 +#, c-format +msgid "read" +msgstr "irakurri" + +#: gphoto2/actions.c:278 +#, c-format +msgid "delete" +msgstr "ezabatu" + +#: gphoto2/actions.c:280 +#, c-format +msgid "none" +msgstr "bat ere ez" + +#: gphoto2/actions.c:284 +#, c-format +msgid " Time: %s" +msgstr " Denbora: %s" + +#: gphoto2/actions.c:287 +#, c-format +msgid "Thumbnail:\n" +msgstr "Koadro txikia:\n" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Audio data:\n" +msgstr "Audio-datuak:\n" + +#: gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME mota: '%s'\n" + +#: gphoto2/actions.c:310 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Tamaina: %li byte\n" + +#: gphoto2/actions.c:312 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Deskargatuta: %s\n" + +#: gphoto2/actions.c:488 +msgid "Could not parse EXIF data." +msgstr "Ezin izan dira EXIF datuak analizatu." + +#: gphoto2/actions.c:492 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF etiketak:" + +#: gphoto2/actions.c:495 +msgid "Tag" +msgstr "Etiketa" + +#: gphoto2/actions.c:497 +msgid "Value" +msgstr "Balioa" + +#: gphoto2/actions.c:518 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF datuek koadro txiki bat dute (%i byte)." + +#: gphoto2/actions.c:527 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 EXIFen euskarririk gabe konpilatu da." + +#: gphoto2/actions.c:545 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Onartzen diren kameren kopurua: %i\n" + +#: gphoto2/actions.c:546 +#, c-format +msgid "Supported cameras:\n" +msgstr "Onartzen diren kamerak:\n" + +#: gphoto2/actions.c:559 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (PROBA)\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (ESPERIMENTALA)\n" + +#: gphoto2/actions.c:567 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:611 +#, c-format +msgid "Devices found: %i\n" +msgstr "Aurkitutako gailuak: %i\n" + +#: gphoto2/actions.c:612 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Bidea Azalpena\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:642 gphoto2/actions.c:647 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:642 +msgid "Model" +msgstr "Modeloa" + +#: gphoto2/actions.c:642 +msgid "Port" +msgstr "Ataka" + +#: gphoto2/actions.c:643 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:661 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Kameraren ahalmenak : %s\n" + +#: gphoto2/actions.c:662 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Serieko atakaren euskarria : %s\n" + +#: gphoto2/actions.c:664 +#, c-format +msgid "USB support : %s\n" +msgstr "USB atakaren euskarria : %s\n" + +#: gphoto2/actions.c:667 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Onartzen diren transferentzia-abiadurak :\n" + +#: gphoto2/actions.c:669 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:672 +#, c-format +msgid "Capture choices :\n" +msgstr "Kapturatze-aukerak :\n" + +#: gphoto2/actions.c:674 +#, c-format +msgid " : Image\n" +msgstr " : Irudia\n" + +#: gphoto2/actions.c:678 +#, c-format +msgid " : Video\n" +msgstr " : Bideoa\n" + +#: gphoto2/actions.c:682 +#, c-format +msgid " : Audio\n" +msgstr " : Audioa\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid " : Preview\n" +msgstr " : Aurrebista\n" + +#: gphoto2/actions.c:690 +#, c-format +msgid "" +" : Capture not supported by the driver\n" +msgstr "" +" : Kontrolatzaileak ez du kaptura onartzen\n" + +#: gphoto2/actions.c:692 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Konfiguratzeko euskarria : %s\n" + +#: gphoto2/actions.c:694 +#, fuzzy, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Kamerako fitxategiak ezabatzeko euskarria : %s\n" + +#: gphoto2/actions.c:697 +#, fuzzy, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Kamerako fitxategiak ezabatzeko euskarria : %s\n" + +#: gphoto2/actions.c:700 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Fitxategiak (koadro txikiak) aurreikusteko euskarria : %s\n" + +#: gphoto2/actions.c:703 +#, c-format +msgid "File upload support : %s\n" +msgstr "Fitxategiak kargatzeko euskarria : %s\n" + +#: gphoto2/actions.c:719 +#, c-format +msgid "" +"Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a " +"colon so I am going to guess what you mean." +msgstr "" +"Atakek 'serial:/dev/ttyS0' edo 'usb:' itxura izan behar dute, baina '%s'(e)k " +"bi puntu falta ditu; beraz, zer esan nahi duen asmatzen saiatuko naiz." + +#: gphoto2/actions.c:753 +#, c-format +msgid "" +"The port you specified ('%s') can not be found. Please specify one of the " +"ports found by 'gphoto2 --list-ports' and make sure the spelling is correct " +"(i.e. with prefix 'serial:' or 'usb:')." +msgstr "" +"Ez da aurkitu zuk zehaztutako ataka ('%s'). Adierazi 'gphoto2 --list-ports'-" +"ek aurkitutako ataketako bat eta ziurtatu ondo idatzita dagoela (hau da, " +"'serial:' edo 'usb:' aurrizkiekin)." + +#: gphoto2/actions.c:785 +#, c-format +msgid "About the camera driver:" +msgstr "Kamera-kontrolatzaileari buruz:" + +#: gphoto2/actions.c:798 +#, c-format +msgid "Camera summary:" +msgstr "Kameraren laburpena:" + +#: gphoto2/actions.c:811 +#, c-format +msgid "Camera manual:" +msgstr "Kameraren eskuliburua:" + +#: gphoto2/actions.c:826 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Serieko ataketarako abiadurak baino ezin dituzu adierazi." + +#: gphoto2/actions.c:879 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2 ataka Bart van Leeuwen-en eskutik\n" + +#: gphoto2/actions.c:883 +#, fuzzy, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named " +"COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and " +"options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-2003 Lutz Mueller eta beste batzuk\n" +"%s\n" +"gphoto2-k ez du BERMERIK, legeak onartzen duen neurrian. Ghphoto2-ren " +"kopiak\n" +" bana ditzakezu GNU Lizentzia Publiko Orokorraren baldintzak betez gero.\n" +" Gai hauei buruz informazio gehiago eskuratzeko, ikus COPYING izeneko " +"fitxategiak.\n" +"\n" +"Gphoto2-ren bertsio honek hurrengo software-bertsioak eta -aukerak " +"erabiltzen ditu:\n" + +#: gphoto2/actions.c:1004 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "" + +#: gphoto2/actions.c:1019 +#, c-format +msgid "Read-Write" +msgstr "" + +#: gphoto2/actions.c:1022 +#, c-format +msgid "Read-Only" +msgstr "" + +#: gphoto2/actions.c:1025 +#, c-format +msgid "Read-only with delete" +msgstr "" + +#: gphoto2/actions.c:1028 gphoto2/actions.c:1038 +#, c-format +msgid "Unknown" +msgstr "" + +#: gphoto2/actions.c:1041 +#, c-format +msgid "Fixed ROM" +msgstr "" + +#: gphoto2/actions.c:1044 +#, c-format +msgid "Removable ROM" +msgstr "" + +#: gphoto2/actions.c:1047 +#, c-format +msgid "Fixed RAM" +msgstr "" + +#: gphoto2/actions.c:1050 +#, c-format +msgid "Removable RAM" +msgstr "" + +#: gphoto2/actions.c:1060 +#, c-format +msgid "Undefined" +msgstr "" + +#: gphoto2/actions.c:1063 +#, c-format +msgid "Generic Flat" +msgstr "" + +#: gphoto2/actions.c:1066 +#, c-format +msgid "Generic Hierarchical" +msgstr "" + +#: gphoto2/actions.c:1069 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "" + +#: gphoto2/actions.c:1107 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "" +"Hornitzailaren/produktuaren USB 0x%x/0x%x IDa 0x%x/0x%x-kin gainidazten" + +#: gphoto2/actions.c:1171 +msgid "" +"ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE " +"MAILING LIST:" +msgstr "JARRI BETI LERRO HAUEK ARAZKETA-MEZUAK POSTA-ZERRENDARA BIDALTZEAN:" + +#: gphoto2/actions.c:1186 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s honeko aukerekin konpilatu da:" + +#: gphoto2/actions.c:1304 +#, fuzzy, c-format +msgid "%s not found in configuration tree." +msgstr "%s ez da konfigurazio-zuhatitzean aurkitu.\n" + +#: gphoto2/actions.c:1363 +#, fuzzy, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Huts egin du %s testu-trepetaren balioa eskuratzean.\n" + +#: gphoto2/actions.c:1380 +#, fuzzy, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Huts egin du %s barrutia trepetaren balioa eskuratzean.\n" + +#: gphoto2/actions.c:1392 +#, fuzzy, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Huts egin du %s txandakatze-trepetaren balioa eskuratzean.\n" + +#: gphoto2/actions.c:1404 +#, fuzzy, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Huts egin du %s data-/ordu-trepetaren balioa eskuratzean.\n" + +#: gphoto2/actions.c:1434 +#, fuzzy, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Huts egin du %s aukera-trepetaren balioa eskuratzean.\n" + +#: gphoto2/actions.c:1475 +#, fuzzy, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Huts egin du %s testu-trepetaren balioa eskuratzean.\n" + +#: gphoto2/actions.c:1485 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "" + +#: gphoto2/actions.c:1490 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "" + +#: gphoto2/actions.c:1496 +#, fuzzy, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Huts egin du %s barrutia trepetaren balioa eskuratzean.\n" + +#: gphoto2/actions.c:1505 +msgid "off" +msgstr "" + +#: gphoto2/actions.c:1506 +#, fuzzy +msgid "false" +msgstr "Balioa" + +#: gphoto2/actions.c:1511 +#, fuzzy +msgid "on" +msgstr "al." + +#: gphoto2/actions.c:1512 +msgid "true" +msgstr "" + +#: gphoto2/actions.c:1517 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "" + +#: gphoto2/actions.c:1523 +#, fuzzy, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Huts egin du %s txandakatze-trepetaren balioa eskuratzean.\n" + +#: gphoto2/actions.c:1536 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "" + +#: gphoto2/actions.c:1543 +#, fuzzy, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Huts egin du %s data-/ordu-trepetaren balioa eskuratzean.\n" + +#: gphoto2/actions.c:1580 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "" + +#: gphoto2/actions.c:1588 +#, c-format +msgid "The %s widget is not configurable." +msgstr "" + +#: gphoto2/actions.c:1595 +#, fuzzy, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Huts egin du %s aukera-trepetaren balioa eskuratzean.\n" + +#: gphoto2/foreach.c:254 +#, c-format +msgid "" +"Bad file number. You specified %i, but there are only %i files available in " +"'%s' or its subfolders. Please obtain a valid file number from a file " +"listing first." +msgstr "" +"Fitxategi-zenbaki okerra. %i adierazi duzu, baina %i fitxategi bakarrik " +"daude '%s'(e)n edo haren azpikarpetetan. Lehenbizi, lortu baliozko fitxategi-" +"zenbaki bat fitxategi-zerrendatik." + +#: gphoto2/foreach.c:279 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Ez dago fitxategirik '%s' karpetan." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "" +"Bad file number. You specified %i, but there is only 1 file available in '%" +"s'." +msgstr "" +"Fitxategi-zenbaki okerra. %i adierazi duzu, baina fitxategi bakarra dago " +"erabilgarri '%s'(e)n." + +#: gphoto2/foreach.c:293 +#, fuzzy, c-format +msgid "" +"Bad file number. You specified %i, but there are only %i files available in " +"'%s'. Please obtain a valid file number from a file listing first." +msgstr "" +"Fitxategi-zenbaki okerra. %i adierazi duzu, baina %i fitxategi bakarrik " +"daude erabilgarri '%s'(e)n. Lehenbizi, lortu baliozko fitxategi-zenbaki bat " +"fitxategi-zerrendatik." + +#: gphoto2/gp-params.c:70 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Errorea *** \n" + +#: gphoto2/gp-params.c:244 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Sakatu edozein tekla jarraitzeko.\n" + +#: gphoto2/gp-params.c:266 +#, c-format +msgid "Not enough memory." +msgstr "Ez dago behar adina memoria." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Eragiketa bertan behera utzi da" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "Jarraitu" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "Utzi" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "Errorea" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "Ezin izan da konfigurazioa ezarri:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "Irten" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "Atzera" + +#: gphoto2/gphoto2-cmd-config.c:254 +msgid "Time: " +msgstr "Denbora: " + +#: gphoto2/gphoto2-cmd-config.c:313 gphoto2/gphoto2-cmd-config.c:341 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "Balioa: " + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "Bai" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "Ez" + +#: gphoto2/main.c:230 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "" + +#: gphoto2/main.c:239 +#, fuzzy, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "" +"Ezin duzu '%%n' erabili iraunkorrak ez diren fitxategiekin konbinatuta!" + +#: gphoto2/main.c:255 +#, c-format +msgid "You cannot use '%%n' in combination with non-persistent files!" +msgstr "" +"Ezin duzu '%%n' erabili iraunkorrak ez diren fitxategiekin konbinatuta!" + +#: gphoto2/main.c:286 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Kamerak ('%s') emandako fitxategi-izenak ez du atzizkirik!" + +#: gphoto2/main.c:341 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "'%s' formatu baliogabea (errorea %i kokalekuan)." + +#: gphoto2/main.c:394 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "%s fitxategia badago. Gainidatzi? [y|n] " + +#: gphoto2/main.c:406 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Fitxategi-izen berria zehaztu? [y|n] " + +#: gphoto2/main.c:416 +#, c-format +msgid "Enter new filename: " +msgstr "Sartu fitxategi-izen berria: " + +#: gphoto2/main.c:422 +#, c-format +msgid "Saving file as %s\n" +msgstr "Fitxategia honela gordetzen: %s\n" + +#: gphoto2/main.c:607 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Denbora-etena modua gaituta (tartea: %ds).\n" + +#: gphoto2/main.c:610 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "" + +#: gphoto2/main.c:619 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "#%d fotograma kapturatzen...\n" + +#: gphoto2/main.c:621 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "#%d/%d fotograma kapturatzen...\n" + +#: gphoto2/main.c:628 +msgid "Could not capture." +msgstr "Ezin izan da kapturatu." + +#: gphoto2/main.c:637 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Huts egin du kapturatzean (auto-enfokatze arazoa?)...\n" + +#: gphoto2/main.c:651 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Fitxategi berria %s%s%s kokapenean dago kameran\n" + +#: gphoto2/main.c:661 gphoto2/main.c:814 +msgid "Could not set folder." +msgstr "Ezin izan da karpeta ezarri." + +#: gphoto2/main.c:686 gphoto2/main.c:820 +msgid "Could not get image." +msgstr "Ezin izan da argazkia eskuratu." + +#: gphoto2/main.c:693 gphoto2/main.c:827 +msgid "Buggy libcanon.so?" +msgstr "libcanon.so akatsduna?" + +#: gphoto2/main.c:699 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Kamerako %s%s%s fitxategia ezabatzen\n" + +#: gphoto2/main.c:704 gphoto2/main.c:836 +#, fuzzy +msgid "Could not delete image." +msgstr "Ezin da argazkia ezabatu." + +#: gphoto2/main.c:724 +msgid "Could not close camera connection." +msgstr "Ezin izan da kameraren konexioa itxi." + +#: gphoto2/main.c:738 +#, c-format +msgid "Sleeping for %d second(s)...\n" +msgstr "%d segundo lotan...\n" + +#: gphoto2/main.c:743 gphoto2/main.c:771 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "" + +#: gphoto2/main.c:746 +#, c-format +msgid "not sleeping (%d seconds behind schedule)\n" +msgstr "" + +#: gphoto2/main.c:788 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/main.c:808 +#, c-format +msgid "New file %s/%s, downloading...\n" +msgstr "" + +#: gphoto2/main.c:932 +#, c-format +msgid "ERROR: " +msgstr "ERROREA: " + +#: gphoto2/main.c:955 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Abortatzen...\n" + +#: gphoto2/main.c:961 +#, c-format +msgid "Aborted.\n" +msgstr "Abortatu da.\n" + +#: gphoto2/main.c:966 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Bertan behera uzten...\n" + +#: gphoto2/main.c:1104 +#, c-format +msgid "" +"Use the following syntax a:b=c:d to treat any USB device detected as a:b as " +"c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "" +"Erabili a:b=c:d sintaxia a:b gisa detektatutako USB gailuak c:d gisa " +"tratatzeko. a b c d elementuek hasieran '0x'duten zenbaki hamaseitarrak izan " +"behar dute.\n" + +#: gphoto2/main.c:1258 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 CDKren euskarririk gabe konpilatu da." + +#: gphoto2/main.c:1446 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Eragiketa bertan behera utzi da.\n" + +#: gphoto2/main.c:1450 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Errorea (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1454 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Arazketa-mezuetarako erabili --debug aukera.\n" +"Arazketa-mezuek zure arazoari konponbidea bilatzen lagun diezazukete.\n" +"Errore- edo arazketa-mezuren bat gphoto garatzaileen posta-zerrendara\n" +"gphoto-devel@lists.sourceforge.net bidaltzeko asmoa baduzu, exekutatu\n" +"honela gphoto2:\n" +"\n" + +#: gphoto2/main.c:1543 +msgid "Print complete help message on program usage" +msgstr "" + +#: gphoto2/main.c:1545 +msgid "Print short message on program usage" +msgstr "" + +#: gphoto2/main.c:1547 +msgid "Turn on debugging" +msgstr "Aktibatu arazketa" + +#: gphoto2/main.c:1549 +msgid "Name of file to write debug info to" +msgstr "" + +#: gphoto2/main.c:1549 gphoto2/main.c:1554 gphoto2/main.c:1560 +msgid "FILENAME" +msgstr "" + +#: gphoto2/main.c:1551 +msgid "Quiet output (default=verbose)" +msgstr "Irteera isila (lehenetsia=xehatua)" + +#: gphoto2/main.c:1553 +msgid "Hook script to call after downloads, captures, etc." +msgstr "" + +#: gphoto2/main.c:1560 +msgid "Specify port device" +msgstr "Zehaztu ataka-gailua" + +#: gphoto2/main.c:1562 +msgid "Specify serial transfer speed" +msgstr "Zehaztu serieko transferentzia-abiadura" + +#: gphoto2/main.c:1562 +msgid "SPEED" +msgstr "" + +#: gphoto2/main.c:1564 +msgid "Specify camera model" +msgstr "Zehaztu kamera-modeloa" + +#: gphoto2/main.c:1564 +msgid "MODEL" +msgstr "" + +#: gphoto2/main.c:1566 +msgid "(expert only) Override USB IDs" +msgstr "(adituak soilik) Ez ikusi egin USBren IDei" + +#: gphoto2/main.c:1566 +msgid "USBIDs" +msgstr "" + +#: gphoto2/main.c:1572 +msgid "Display version and exit" +msgstr "Bistaratu bertsioa eta irten" + +#: gphoto2/main.c:1574 +msgid "List supported camera models" +msgstr "Erakutsi onartutako kamera-modeloen zerrenda" + +#: gphoto2/main.c:1576 +msgid "List supported port devices" +msgstr "Erakutsi onartutako ataka-gailuen zerrenda" + +#: gphoto2/main.c:1578 +#, fuzzy +msgid "Display camera/driver abilities" +msgstr "Bistaratu kameraren ahalmenak" + +#: gphoto2/main.c:1585 +msgid "Configure" +msgstr "Konfiguratu" + +#: gphoto2/main.c:1588 +msgid "List configuration tree" +msgstr "Konfigurazio-zuhaitzaren zerrenda" + +#: gphoto2/main.c:1590 +msgid "Get configuration value" +msgstr "Lortu konfigurazio-balioa" + +#: gphoto2/main.c:1592 +#, fuzzy +msgid "Set configuration value" +msgstr "Lortu konfigurazio-balioa" + +#: gphoto2/main.c:1598 +msgid "Wait for event from camera" +msgstr "" + +#: gphoto2/main.c:1601 +msgid "Capture a quick preview" +msgstr "Kapturatu aurrebista bat" + +#: gphoto2/main.c:1603 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Ezarri kapturatu beharreko fotograma-kopurua (lehenetsia=infinitua)" + +#: gphoto2/main.c:1603 +msgid "COUNT" +msgstr "" + +#: gphoto2/main.c:1605 +msgid "Set capture interval in seconds" +msgstr "Ezarri kapturatze tartea segundotan" + +#: gphoto2/main.c:1605 +msgid "SECONDS" +msgstr "" + +#: gphoto2/main.c:1607 +#, fuzzy +msgid "Reset capture interval on signal (default=no)" +msgstr "Ezarri kapturatze tartea segundotan" + +#: gphoto2/main.c:1609 +msgid "Capture an image" +msgstr "Kapturatu irudi bat" + +#: gphoto2/main.c:1611 +msgid "Capture a movie" +msgstr "Kapturatu film bat" + +#: gphoto2/main.c:1613 +msgid "Capture an audio clip" +msgstr "Kapturatu audio-klip bat" + +#: gphoto2/main.c:1615 +msgid "Wait for shutter release on the camera and download" +msgstr "" + +#: gphoto2/main.c:1621 +msgid "List folders in folder" +msgstr "Erakutsi karpeten zerrenda karpetan" + +#: gphoto2/main.c:1623 +msgid "List files in folder" +msgstr "Erakutsi fitxategien zerrenda karpetan" + +#: gphoto2/main.c:1625 +msgid "Create a directory" +msgstr "Sortu direktorio bat" + +#: gphoto2/main.c:1625 gphoto2/main.c:1627 +msgid "DIRNAME" +msgstr "" + +#: gphoto2/main.c:1627 +msgid "Remove a directory" +msgstr "Kendu direktorio bat" + +#: gphoto2/main.c:1629 +msgid "Display number of files" +msgstr "Bistaratu fitxategi-kopurua" + +#: gphoto2/main.c:1631 +msgid "Get files given in range" +msgstr "Eskuratu bitarteko fitxategiak" + +#: gphoto2/main.c:1631 gphoto2/main.c:1635 gphoto2/main.c:1640 +#: gphoto2/main.c:1647 gphoto2/main.c:1653 gphoto2/main.c:1658 +msgid "RANGE" +msgstr "" + +#: gphoto2/main.c:1633 +msgid "Get all files from folder" +msgstr "Eskuratu karpetako fitxategi guztiak" + +#: gphoto2/main.c:1635 +msgid "Get thumbnails given in range" +msgstr "Eskuratu bitarteko koadro txikiak" + +#: gphoto2/main.c:1638 +msgid "Get all thumbnails from folder" +msgstr "Eskuratu karpetako koadro txiki guztiak" + +#: gphoto2/main.c:1640 +#, fuzzy +msgid "Get metadata given in range" +msgstr "Eskuratu bitarteko formaturik gabeko datuak" + +#: gphoto2/main.c:1642 +#, fuzzy +msgid "Get all metadata from folder" +msgstr "Eskuratu karpetako formaturik gabeko datu guztiak" + +#: gphoto2/main.c:1644 +#, fuzzy +msgid "Upload metadata for file" +msgstr "Deskargatu fitxategi bat" + +#: gphoto2/main.c:1647 +msgid "Get raw data given in range" +msgstr "Eskuratu bitarteko formaturik gabeko datuak" + +#: gphoto2/main.c:1650 +msgid "Get all raw data from folder" +msgstr "Eskuratu karpetako formaturik gabeko datu guztiak" + +#: gphoto2/main.c:1653 +msgid "Get audio data given in range" +msgstr "Eskuratu bitarteko audio-datuak" + +#: gphoto2/main.c:1656 +msgid "Get all audio data from folder" +msgstr "Eskuratu karpetako audio-datu guztiak" + +#: gphoto2/main.c:1658 +msgid "Delete files given in range" +msgstr "Ezabatu bitarteko fitxategiak" + +#: gphoto2/main.c:1660 +msgid "Delete all files in folder" +msgstr "Ezabatu karpetako fitxategi guztiak" + +#: gphoto2/main.c:1662 +msgid "Upload a file to camera" +msgstr "Kargatu fitxategi bat kameran" + +#: gphoto2/main.c:1662 +msgid "filename" +msgstr "fitxategi-izena" + +#: gphoto2/main.c:1664 +#, fuzzy +msgid "Specify a filename or filename pattern" +msgstr "Zehaztu fitxategi-izen bat" + +#: gphoto2/main.c:1664 +msgid "FILENAME_PATTERN" +msgstr "" + +#: gphoto2/main.c:1666 +msgid "Specify camera folder (default=\"/\")" +msgstr "Zehaztu kameraren karpeta (lehenetsia=\"/\")" + +#: gphoto2/main.c:1666 +msgid "FOLDER" +msgstr "" + +#: gphoto2/main.c:1668 +msgid "Recursion (default for download)" +msgstr "Errekurtsioa (lehenetsia deskargatzeko)" + +#: gphoto2/main.c:1670 +msgid "No recursion (default for deletion)" +msgstr "Errekurtsiorik ez (lehenetsia ezabatzeko)" + +#: gphoto2/main.c:1672 +msgid "Process new files only" +msgstr "" + +#: gphoto2/main.c:1674 +#, fuzzy +msgid "Overwrite files without asking" +msgstr "Gainidatzi fitxategiak galdetu gabe." + +#: gphoto2/main.c:1680 +msgid "Send file to stdout" +msgstr "Bidali fitxategia irteera estandarrera" + +#: gphoto2/main.c:1682 +msgid "Print filesize before data" +msgstr "Inprimatu fitxategi-tamaina datuen aurretik" + +#: gphoto2/main.c:1684 +msgid "List auto-detected cameras" +msgstr "Erakutsi automatikoki detektatutako kameren zerrenda" + +#: gphoto2/main.c:1688 gphoto2/shell.c:132 +msgid "Show EXIF information" +msgstr "Erakutsi EXIF informazioa" + +#: gphoto2/main.c:1691 gphoto2/shell.c:126 +msgid "Show info" +msgstr "Erakutsi informazioa" + +#: gphoto2/main.c:1693 +msgid "Show summary" +msgstr "Erakutsi laburpena" + +#: gphoto2/main.c:1695 +msgid "Show camera driver manual" +msgstr "Erakutsi kamera-kontrolatzailearen eskuliburua" + +#: gphoto2/main.c:1697 +msgid "About the camera driver manual" +msgstr "Kamera-kontrolatzailearen eskuliburuari buruz" + +#: gphoto2/main.c:1699 +#, fuzzy +msgid "Show storage information" +msgstr "Erakutsi EXIF informazioa" + +#: gphoto2/main.c:1701 +msgid "gPhoto shell" +msgstr "gPhoto shell-a" + +#: gphoto2/main.c:1707 +msgid "Common options" +msgstr "" + +#: gphoto2/main.c:1709 +msgid "Miscellaneous options (unsorted)" +msgstr "" + +#: gphoto2/main.c:1711 +msgid "Get information on software and host system (not from the camera)" +msgstr "" + +#: gphoto2/main.c:1713 +#, fuzzy +msgid "Specify the camera to use" +msgstr "Zehaztu kamera-modeloa" + +#: gphoto2/main.c:1715 +#, fuzzy +msgid "Camera and software configuration" +msgstr "Ezin izan da konfigurazioa ezarri:" + +#: gphoto2/main.c:1717 +#, fuzzy +msgid "Capture an image from or on the camera" +msgstr "Aldatu kamerako direktorio batera" + +#: gphoto2/main.c:1719 +msgid "Downloading, uploading and manipulating files" +msgstr "" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Irudi-IDek zero baino handiagoak izan behar dute." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +" %i irudi-IDa handiegia da." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Bitarteak',' ikurren bidez bereizi behar dira." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Bitarteek zenbaki batekin hasi behar dute." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +" '%c' ustekabeko karakterea." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Beheranzko bitarteak ez dira onartzen. %i eta %i arteko bitartea zehaztu " +"duzu." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Errorea (%i: '%s') ***" + +#: gphoto2/shell.c:115 +msgid "Change to a directory on the camera" +msgstr "Aldatu kamerako direktorio batera" + +#: gphoto2/shell.c:116 gphoto2/shell.c:118 gphoto2/shell.c:129 +#: gphoto2/shell.c:130 +msgid "directory" +msgstr "direktorioa" + +#: gphoto2/shell.c:117 +msgid "Change to a directory on the local drive" +msgstr "Aldatu unitate lokaleko direktorio batera" + +#: gphoto2/shell.c:119 gphoto2/shell.c:143 gphoto2/shell.c:144 +msgid "Exit the gPhoto shell" +msgstr "Irten gPhoto shell-etik" + +#: gphoto2/shell.c:120 +msgid "Download a file" +msgstr "Deskargatu fitxategi bat" + +#: gphoto2/shell.c:120 gphoto2/shell.c:121 gphoto2/shell.c:123 +#: gphoto2/shell.c:125 gphoto2/shell.c:127 gphoto2/shell.c:128 +#: gphoto2/shell.c:133 +msgid "[directory/]filename" +msgstr "[direktorioa/]fitxategi-izena" + +#: gphoto2/shell.c:121 +#, fuzzy +msgid "Upload a file" +msgstr "Deskargatu fitxategi bat" + +#: gphoto2/shell.c:122 +msgid "Download a thumbnail" +msgstr "Deskargatu koadro txiki bat" + +#: gphoto2/shell.c:124 +msgid "Download raw data" +msgstr "Deskargatu formaturik gabeko datuak" + +#: gphoto2/shell.c:128 +msgid "Delete" +msgstr "Ezabatu" + +#: gphoto2/shell.c:129 +#, fuzzy +msgid "Create Directory" +msgstr "Sortu direktorio bat" + +#: gphoto2/shell.c:130 +#, fuzzy +msgid "Remove Directory" +msgstr "Kendu direktorio bat" + +#: gphoto2/shell.c:135 gphoto2/shell.c:145 +msgid "Displays command usage" +msgstr "Bistaratu komandoen erabilera" + +#: gphoto2/shell.c:136 gphoto2/shell.c:145 +msgid "[command]" +msgstr "[komandoa]" + +#: gphoto2/shell.c:137 +msgid "List the contents of the current directory" +msgstr "Egin uneko direktorioaren edukien zerrenda" + +#: gphoto2/shell.c:138 +msgid "[directory/]" +msgstr "[direktorioa/]" + +#: gphoto2/shell.c:139 +#, fuzzy +msgid "List configuration variables" +msgstr "Lortu konfigurazio aldagaia" + +#: gphoto2/shell.c:140 +#, fuzzy +msgid "Get configuration variable" +msgstr "Lortu konfigurazio aldagaia" + +#: gphoto2/shell.c:140 +msgid "name" +msgstr "izena" + +#: gphoto2/shell.c:141 +#, fuzzy +msgid "Set configuration variable" +msgstr "Lortu konfigurazio aldagaia" + +#: gphoto2/shell.c:141 +msgid "name=value" +msgstr "" + +#: gphoto2/shell.c:142 +#, fuzzy +msgid "Capture a single image" +msgstr "Kapturatu irudi bat" + +#: gphoto2/shell.c:467 +msgid "Invalid command." +msgstr "Komando baliogabea." + +#: gphoto2/shell.c:476 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "'%s' komandoak argumentu bat behar du." + +#: gphoto2/shell.c:529 +msgid "Invalid path." +msgstr "Bide baliogabea." + +#: gphoto2/shell.c:575 +msgid "Could not find home directory." +msgstr "Ezin izan da aurkitu etxeko direktorioa." + +#: gphoto2/shell.c:584 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Ezin izan da '%s' direktorio lokala aldatu." + +#: gphoto2/shell.c:587 +#, c-format +msgid "Local directory now '%s'." +msgstr "Orain direktorio lokala '%s' da." + +#: gphoto2/shell.c:625 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Orain urruneko direktorioa '%s' da." + +#: gphoto2/shell.c:841 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "" + +#: gphoto2/shell.c:870 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "" +"'%s' komandoa ez da aurkitu. Erabili 'help' erabilgarri dauden komandoen " +"zerrenda lortzeko." + +#: gphoto2/shell.c:877 +#, c-format +msgid "Help on \"%s\":" +msgstr "\"%s\"(r)i buruzko laguntza:" + +#: gphoto2/shell.c:879 +#, c-format +msgid "Usage:" +msgstr "Erabilera:" + +#: gphoto2/shell.c:882 +#, c-format +msgid "Description:" +msgstr "Azalpena:" + +#: gphoto2/shell.c:884 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Kortxete [] arteko argumentuak hautazkoak dira" + +#: gphoto2/shell.c:905 +#, c-format +msgid "Available commands:" +msgstr "Erabilgarri dauden komandoak:" + +#: gphoto2/shell.c:910 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "" +"Komando jakin bati buruzko laguntza eskuratzeko, idatzi'help komando_izena'." + +#, fuzzy +#~ msgid "[name]" +#~ msgstr "izena" + +#~ msgid "Usage:\n" +#~ msgstr "Erabilera:\n" + +#~ msgid "" +#~ "Short/long options (& argument) Description\n" +#~ "--------------------------------------------------------------------------------\n" +#~ msgstr "" +#~ "Aukera laburrak/luzeak (& argumentua) Azalpena\n" +#~ "--------------------------------------------------------------------------------\n" + +#~ msgid "%-38s %s\n" +#~ msgstr "%-38s %s\n" + +#~ msgid "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Use double-quotes around arguments] [Picture numbers begin with " +#~ "one (1)]\n" +#~ msgstr "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Erabili komatxoak argumentuen inguruan] [Irudi-zenbakiak (1)]-" +#~ "ekin hasten dira\n" + +#~ msgid "Displays this help screen" +#~ msgstr "Laguntza-pantaila hau bistaratzen du" + +#, fuzzy +#~ msgid "Get metadata from file" +#~ msgstr "Eskuratu karpetako formaturik gabeko datu guztiak" + +#~ msgid "List the configuration tree" +#~ msgstr "Konfigurazio-zuhaitzaren zerrenda" + +#~ msgid "Get a configuration variable" +#~ msgstr "Lortu konfigurazio aldagaia" + +#, fuzzy +#~ msgid "Set a configuration variable" +#~ msgstr "Lortu konfigurazio aldagaia" + +#~ msgid "Capture a movie " +#~ msgstr "Kapturatu film bat " + +#~ msgid "Summary of camera status" +#~ msgstr "Kameraren egoeraren laburpena" + +#~ msgid "Camera driver manual" +#~ msgstr "Kamera-kontrolatzailearen eskuliburua" + +#~ msgid "About the camera driver" +#~ msgstr "Kamera-kontrolatzaileari buruz" + +#~ msgid "path" +#~ msgstr "bidea" + +#~ msgid "speed" +#~ msgstr "abiadura " + +#~ msgid "model" +#~ msgstr "modeloa" + +#~ msgid "usbid" +#~ msgstr "usbid" + +#~ msgid "folder" +#~ msgstr "karpeta" + +#~ msgid "count" +#~ msgstr "Zenbatu" + +#~ msgid "seconds" +#~ msgstr "segundo" + +#~ msgid "" +#~ "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the " +#~ "location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +#~ msgstr "" +#~ "gPhoto2 OS/2an erabiltzeko, CAMLIBS ingurune-balioa kamerako " +#~ "liburutegietan ezarri behar duzu. Adib, SET CAMLIBS=C:\\GPHOTO2\\CAM\n" + +#~ msgid "" +#~ "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the " +#~ "location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +#~ msgstr "" +#~ "gPhoto2 OS/2an erabiltzeko, IOLIBS ingurune-balioa io liburutegietan " +#~ "ezarri behar duzu. Adib, SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" + +#~ msgid "There are no folders in folder '%s'." +#~ msgstr "Ez dago karpetarik '%s' karpetan." + +#~ msgid "There are %i folders in folder '%s':" +#~ msgstr "%i karpeta daude '%s' karpetan:" + +#~ msgid "There are %i files in folder '%s':" +#~ msgstr "%i fitxategi daude '%s' karpetan:" + +#~ msgid "Jan" +#~ msgstr "Urt." + +#~ msgid "January" +#~ msgstr "urtarrila" + +#~ msgid "Feb" +#~ msgstr "Ots." + +#~ msgid "February" +#~ msgstr "otsaila" + +#~ msgid "Mar" +#~ msgstr "Mar." + +#~ msgid "March" +#~ msgstr "martxoa" + +#~ msgid "Apr" +#~ msgstr "Apr." + +#~ msgid "April" +#~ msgstr "apirila" + +#~ msgid "May" +#~ msgstr "Mai." + +#~ msgid "Jun" +#~ msgstr "Eka." + +#~ msgid "June" +#~ msgstr "ekaina" + +#~ msgid "Jul" +#~ msgstr "Uzt." + +#~ msgid "July" +#~ msgstr "uztaila" + +#~ msgid "Aug" +#~ msgstr "Abu." + +#~ msgid "August" +#~ msgstr "abuztua" + +#~ msgid "Sep" +#~ msgstr "Ira." + +#~ msgid "September" +#~ msgstr "iraila" + +#~ msgid "Oct" +#~ msgstr "Urr." + +#~ msgid "October" +#~ msgstr "urria" + +#~ msgid "Nov" +#~ msgstr "Aza." + +#~ msgid "November" +#~ msgstr "azaroa" + +#~ msgid "Dec" +#~ msgstr "Abe." + +#~ msgid "December" +#~ msgstr "abendua" + +#~ msgid "Sun" +#~ msgstr "ig." + +#~ msgid "Sunday" +#~ msgstr "igandea" + +#~ msgid "Monday" +#~ msgstr "astelehena" + +#~ msgid "Tue" +#~ msgstr "as." + +#~ msgid "Tuesday" +#~ msgstr "asteartea" + +#~ msgid "Wed" +#~ msgstr "az." + +#~ msgid "Wednesday" +#~ msgstr "asteazkena" + +#~ msgid "Thu" +#~ msgstr "og." + +#~ msgid "Thursday" +#~ msgstr "osteguna" + +#~ msgid "Fri" +#~ msgstr "or." + +#~ msgid "Friday" +#~ msgstr "ostirala" + +#~ msgid "Sat" +#~ msgstr "lr." + +#~ msgid "Saturday" +#~ msgstr "larunbata" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/fi.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/fi.po new file mode 100644 index 00000000..7873dce8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/fi.po @@ -0,0 +1,1137 @@ +# Finnish translation for gphoto2. +# Copyright (C) 2004 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# Matti Pöllä , 2004. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.1.2\n" +"POT-Creation-Date: 2003-08-10 20:58+0200\n" +"PO-Revision-Date: 2004-07-07 01:46+0300\n" +"Last-Translator: Matti Pöllä \n" +"Language-Team: Finnish \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: gphoto2/actions.c:101 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Kansiossa \"%s\" olevien tiedostojen lukumäärä: %i\n" + +#: gphoto2/actions.c:122 +#, c-format +msgid "There are no folders in folder '%s'." +msgstr "Kansio \"%s\" ei sisällä kansioita." + +#: gphoto2/actions.c:126 +#, c-format +msgid "There is one folder in folder '%s':" +msgstr "Kansio \"%s\" sisältää yhden kansion:" + +#: gphoto2/actions.c:130 +#, c-format +msgid "There are %i folders in folder '%s':" +msgstr "%i kansiota kansiossa \"%s\":" + +#: gphoto2/actions.c:157 gphoto2/foreach.c:277 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Kansio \"%s\" ei sisällä tiedostoja." + +#: gphoto2/actions.c:162 +#, c-format +msgid "There is one file in folder '%s':" +msgstr "Kansio \"%s\" sisältää yhden tiedoston:" + +#: gphoto2/actions.c:167 +#, c-format +msgid "There are %i files in folder '%s':" +msgstr "%i tiedostoa kansiossa \"%s\":" + +#: gphoto2/actions.c:188 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Tiedoston \"%s\" tiedot (kansio \"%s\"):\n" + +#: gphoto2/actions.c:190 +msgid "File:\n" +msgstr "Tiedosto:\n" + +#: gphoto2/actions.c:192 gphoto2/actions.c:226 gphoto2/actions.c:242 +msgid " None available.\n" +msgstr " Ei saatavilla.\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid " Name: '%s'\n" +msgstr " Nimi: \"%s\"\n" + +#: gphoto2/actions.c:197 gphoto2/actions.c:229 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime-tyyppi: \"%s\"\n" + +#: gphoto2/actions.c:199 gphoto2/actions.c:231 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Koko: %li tavu(a)\n" + +#: gphoto2/actions.c:201 gphoto2/actions.c:233 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Leveys: %i pikseli(ä)\n" + +#: gphoto2/actions.c:203 gphoto2/actions.c:235 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Korkeus: %i pikseli(ä)\n" + +#: gphoto2/actions.c:205 gphoto2/actions.c:237 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Ladattu: %s\n" + +#: gphoto2/actions.c:206 gphoto2/actions.c:238 gphoto2/actions.c:250 +#: gphoto2/actions.c:548 gphoto2/actions.c:550 gphoto2/actions.c:567 +#: gphoto2/actions.c:570 gphoto2/actions.c:573 gphoto2/actions.c:576 +msgid "yes" +msgstr "kyllä" + +#: gphoto2/actions.c:206 gphoto2/actions.c:238 gphoto2/actions.c:250 +#: gphoto2/actions.c:548 gphoto2/actions.c:550 gphoto2/actions.c:567 +#: gphoto2/actions.c:570 gphoto2/actions.c:573 gphoto2/actions.c:576 +msgid "no" +msgstr "ei" + +#: gphoto2/actions.c:208 +msgid " Permissions: " +msgstr " Oikeudet: " + +#: gphoto2/actions.c:211 +msgid "read/delete" +msgstr "luku/poistaminen" + +#: gphoto2/actions.c:213 +msgid "read" +msgstr "luku" + +#: gphoto2/actions.c:215 +msgid "delete" +msgstr "poistaminen" + +#: gphoto2/actions.c:217 +msgid "none" +msgstr "ei mitään" + +#: gphoto2/actions.c:221 +#, c-format +msgid " Time: %s" +msgstr " Aika: %s" + +#: gphoto2/actions.c:224 +msgid "Thumbnail:\n" +msgstr "Pienoiskuva:\n" + +#: gphoto2/actions.c:240 +msgid "Audio data:\n" +msgstr "Äänidata:\n" + +#: gphoto2/actions.c:245 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime-tyyppi: \"%s\"\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Koko: %li tavu(a)\n" + +#: gphoto2/actions.c:249 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Ladattu: %s\n" + +#: gphoto2/actions.c:380 +msgid "Could not parse EXIF data." +msgstr "EXIF-tietojen jäsentäminen ei onnistunut." + +#: gphoto2/actions.c:384 +msgid "EXIF tags:" +msgstr "EXIF-merkit:" + +#: gphoto2/actions.c:387 +msgid "Tag" +msgstr "Merkki" + +#: gphoto2/actions.c:389 +msgid "Value" +msgstr "Arvo" + +#: gphoto2/actions.c:410 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF-data sisältää pienoiskuvan (%i tavua)." + +#: gphoto2/actions.c:419 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 on käänetty ilman EXIF-tukea." + +#: gphoto2/actions.c:437 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Tuettujen kameroiden lukumäärä: %i\n" + +#: gphoto2/actions.c:439 +msgid "Supported cameras:\n" +msgstr "Tuetut kamerat:\n" + +#: gphoto2/actions.c:452 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (TESTIKÄYTTÖ)\n" + +#: gphoto2/actions.c:455 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (KOKEELLINEN)\n" + +#: gphoto2/actions.c:460 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:488 +#, c-format +msgid "Devices found: %i\n" +msgstr "Löydettyjen laitteiden määrä: %i\n" + +#: gphoto2/actions.c:489 +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Polku Kuvaus\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:528 gphoto2/actions.c:533 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:528 +msgid "Model" +msgstr "Malli" + +#: gphoto2/actions.c:528 +msgid "Port" +msgstr "Portti" + +#: gphoto2/actions.c:529 +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:546 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Kameran valmiudet : %s\n" + +#: gphoto2/actions.c:547 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Tuki sarjaportille : %s\n" + +#: gphoto2/actions.c:549 +#, c-format +msgid "USB support : %s\n" +msgstr "USB-tuki : %s\n" + +#: gphoto2/actions.c:552 +msgid "Transfer speeds supported :\n" +msgstr "Tuetut siirtonopeudet :\n" + +#: gphoto2/actions.c:554 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:557 +msgid "Capture choices :\n" +msgstr "Kaappausvaihtoehdot :\n" + +#: gphoto2/actions.c:559 +msgid " : Image\n" +msgstr " : Kuva\n" + +#: gphoto2/actions.c:561 +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:563 +msgid " : Audio\n" +msgstr " : Äani\n" + +#: gphoto2/actions.c:565 +msgid " : Preview\n" +msgstr " : Esikatselu\n" + +#: gphoto2/actions.c:566 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Tuki asetusten muuttamiselle : %s\n" + +#: gphoto2/actions.c:568 +#, c-format +msgid "Delete files on camera support : %s\n" +msgstr "Kuvien poistaminen kamerasta : %s\n" + +#: gphoto2/actions.c:571 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Tuki tiedoston esikatselulle : %s\n" + +#: gphoto2/actions.c:574 +#, c-format +msgid "File upload support : %s\n" +msgstr "" +"Tuki tiedostojen lataamiselle \n" +"tietokoneelta kameraan : %s\n" + +#: gphoto2/actions.c:591 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "" +"Portti ilmaistaan esimerkiksi \"serial:/dev/ttyS0\" tai \"usb\", mutta \n" +"merkkijonosta \"%s\" puuttuu kaksoispiste, joten oikea portti yritetään\n" +"löytää automaattisesti." + +#: gphoto2/actions.c:630 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "" +"Määrittelemääsi porttia (\"%s\") ei löydy. Määrittele jokin komennon\n" +"\"gphoto2 --list-ports\" listaamista porteista ja tarkista kirjoitusasu \n" +"(esim. etuliite \"serial:\" tai \"usb:\")" + +#: gphoto2/actions.c:668 +msgid "About the camera driver:" +msgstr "Tietoa kameran ajurista:" + +#: gphoto2/actions.c:682 +msgid "Camera summary:" +msgstr "Kameran kooste:" + +#: gphoto2/actions.c:696 +msgid "Camera manual:" +msgstr "Kameran käyttöohje:" + +#: gphoto2/actions.c:712 +msgid "You can only specify speeds for serial ports." +msgstr "Nopeuden voi määrittää vain sarjaporteille." + +#: gphoto2/actions.c:763 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-2003 Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Tekijänoikeus © 2000-2003 Lutz Mueller ja muut\n" +"%s\n" +"\n" +"Tällä ohjelmalla EI lain sallimissa rajoissa OLE TAKUUTA.\n" +"Ohjelmaa saa levittää GNU:n General Public Licensen mukaisesti;\n" +"katso lisätietoja tiedostosta COPYING.\n" +"\n" +"Tämä gphoto2:n versio käyttää seuraavia ohjelmistoversioita ja valitsimia:\n" + +#: gphoto2/actions.c:776 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2-siirros Bart van Leeuwen\n" + +#: gphoto2/actions.c:890 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "" +"SISÄLLYTĠVIESTIISI AINA SEURAAVAT RIVIT LÄHETTÄESSÄSI VIANETSINTÄ-\n" +"VIESTEJÄ POSTITUSLISTALLE:" + +#: gphoto2/foreach.c:254 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "" +"Virheellinen tiedoston numero. Annoit numeron %i, mutta vain %i tiedostoa\n" +"on saatavilla kansiossa \"%s\" ja sen alikansioissa. Selvitä ensin oikea\n" +"tiedoston numero tiedostolistauksesta." + +#: gphoto2/foreach.c:283 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "" +"Virheellinen tiedoston numero. Määritit numeron %i, mutta kansio \"%s\"\n" +"sisältää vain yhden tiedoston." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'.Please obtain a valid file number from a file listing first." +msgstr "" +"Virheellinen tiedoston numero. Määritit numeron %i, mutta vain %i tiedostoa on\n" +"saatavilla kansiossa \"%s\". Selvitä ensin oikea tiedoston numero tiedostolistauksesta." + +#: gphoto2/gp-params.c:53 +msgid "*** Error *** \n" +msgstr "*** Virhe *** \n" + +#: gphoto2/gp-params.c:220 +msgid "Press any key to continue.\n" +msgstr "Paina jotakin näppäintä jatkaaksesi.\n" + +#: gphoto2/gp-params.c:237 +msgid "Not enough memory." +msgstr "Muistin määrä ei riitä." + +#: gphoto2/gphoto2-cmd-capture.c:201 +msgid "Operation cancelled" +msgstr "Operaatio peruttu" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "Jatka" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "Peru" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "Virhe" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "Asetusten päivitys epäonistui:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "Lopeta" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "Takaisin" + +#: gphoto2/gphoto2-cmd-config.c:253 +msgid "Time: " +msgstr "Aika: " + +#: gphoto2/gphoto2-cmd-config.c:312 gphoto2/gphoto2-cmd-config.c:340 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "Arvo: " + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "Kyllä" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "Ei" + +#: gphoto2/main.c:161 gphoto2/main.c:1461 +msgid "Turn on debugging" +msgstr "Aseta vianetsintä päälle" + +#: gphoto2/main.c:162 gphoto2/main.c:1463 +msgid "Quiet output (default=verbose)" +msgstr "Hiljainen tuloste (oletus=verbose)" + +#: gphoto2/main.c:166 gphoto2/main.c:1467 +msgid "Display version and exit" +msgstr "Näytä versio ja lopeta" + +#: gphoto2/main.c:167 +msgid "Displays this help screen" +msgstr "Näyttää tämän opasteruudun" + +#: gphoto2/main.c:168 gphoto2/main.c:1469 +msgid "List supported camera models" +msgstr "Listaa tuetut kameramallit" + +#: gphoto2/main.c:169 gphoto2/main.c:1471 +msgid "List supported port devices" +msgstr "Listaa tuetut portit" + +#: gphoto2/main.c:170 gphoto2/main.c:1473 +msgid "Send file to stdout" +msgstr "Lähetä tiedosto vakiotulosteeseen" + +#: gphoto2/main.c:171 gphoto2/main.c:1475 +msgid "Print filesize before data" +msgstr "Tulosta tiedoston koko ennen dataa" + +#: gphoto2/main.c:172 gphoto2/main.c:1477 +msgid "List auto-detected cameras" +msgstr "Listaa automaattisesti tunnistetut kamerat" + +#: gphoto2/main.c:175 gphoto2/main.c:1479 +msgid "Specify port device" +msgstr "Määritä portti" + +#: gphoto2/main.c:176 gphoto2/main.c:1481 +msgid "Specify serial transfer speed" +msgstr "Määritä sarjaportin siirtonopeus" + +#: gphoto2/main.c:177 gphoto2/main.c:1483 +msgid "Specify camera model" +msgstr "Määritä kameran malli" + +#: gphoto2/main.c:178 gphoto2/main.c:1485 +msgid "Specify a filename" +msgstr "Määritä tiedoston nimi" + +#: gphoto2/main.c:179 gphoto2/main.c:1487 +msgid "(expert only) Override USB IDs" +msgstr "(vain asiantuntijoille) Kumoa USB-tunnisteet" + +#: gphoto2/main.c:182 gphoto2/main.c:1489 +msgid "Display camera abilities" +msgstr "Näytä kameran valmiudet" + +#: gphoto2/main.c:183 gphoto2/main.c:1491 +msgid "Specify camera folder (default=\"/\")" +msgstr "Määritä kameran kansio (oletus=\"/\")" + +#: gphoto2/main.c:184 gphoto2/main.c:1493 +msgid "Recursion (default for download)" +msgstr "Rekursio (oletus tiedostojen kamerasta lataamiselle)" + +#: gphoto2/main.c:185 gphoto2/main.c:1495 +msgid "No recursion (default for deletion)" +msgstr "Ei rekursiota (oletus poistolle)" + +#: gphoto2/main.c:186 gphoto2/main.c:1497 +msgid "List folders in folder" +msgstr "Listaa kansion sisältämät kansiot" + +#: gphoto2/main.c:187 gphoto2/main.c:1499 +msgid "List files in folder" +msgstr "Listaa kansion sisältämät tiedostot" + +#: gphoto2/main.c:188 gphoto2/main.c:189 +msgid "name" +msgstr "nimi" + +#: gphoto2/main.c:188 gphoto2/main.c:1501 +msgid "Create a directory" +msgstr "Luo kansio" + +#: gphoto2/main.c:189 gphoto2/main.c:1503 +msgid "Remove a directory" +msgstr "Poista kansio" + +#: gphoto2/main.c:190 gphoto2/main.c:1505 +msgid "Display number of files" +msgstr "Näytä tiedostojen lukumäärä" + +#: gphoto2/main.c:191 gphoto2/main.c:1507 +msgid "Get files given in range" +msgstr "Hae tiedostot määritellyltä lukualueelta" + +#: gphoto2/main.c:192 gphoto2/main.c:1509 +msgid "Get all files from folder" +msgstr "Hae kaikki tiedostot kansiosta" + +#: gphoto2/main.c:193 gphoto2/main.c:1511 +msgid "Get thumbnails given in range" +msgstr "Hae pienoiskuvat määritellyltä lukualueelta" + +#: gphoto2/main.c:194 gphoto2/main.c:1514 +msgid "Get all thumbnails from folder" +msgstr "Hae kaikki pienoiskuvat kansiosta" + +#: gphoto2/main.c:195 gphoto2/main.c:1517 +msgid "Get raw data given in range" +msgstr "Hae raakadata määritellyltä lukualueelta" + +#: gphoto2/main.c:196 gphoto2/main.c:1520 +msgid "Get all raw data from folder" +msgstr "Hae kaikki raakadata kansiosta" + +#: gphoto2/main.c:197 gphoto2/main.c:1523 +msgid "Get audio data given in range" +msgstr "Hae äänidata määritellyltä lukualueelta" + +#: gphoto2/main.c:198 gphoto2/main.c:1526 +msgid "Get all audio data from folder" +msgstr "Hae kaikki äänidata kansiosta" + +#: gphoto2/main.c:199 gphoto2/main.c:1528 +msgid "Delete files given in range" +msgstr "Poista tiedostot määritellyltä lukualueelta" + +#: gphoto2/main.c:200 gphoto2/main.c:1530 +msgid "Delete all files in folder" +msgstr "Poista kaikki tiedostot kansiosta" + +#: gphoto2/main.c:201 gphoto2/main.c:1532 +msgid "Upload a file to camera" +msgstr "Lataa tiedosto kameraan" + +#: gphoto2/main.c:203 gphoto2/main.c:1535 +msgid "Configure" +msgstr "Aseta" + +#: gphoto2/main.c:205 gphoto2/main.c:1539 +msgid "Capture a quick preview" +msgstr "Kaappaa nopea esikatselukuva" + +#: gphoto2/main.c:206 gphoto2/main.c:1541 +msgid "Capture an image" +msgstr "Kaappaa kuva" + +#: gphoto2/main.c:207 +msgid "Capture a movie " +msgstr "Kaappaa elokuva " + +#: gphoto2/main.c:208 gphoto2/main.c:1545 +msgid "Capture an audio clip" +msgstr "Kaappaa äänipätkä" + +#: gphoto2/main.c:210 gphoto2/main.c:1548 gphoto2/shell.c:113 +msgid "Show EXIF information" +msgstr "Näytä EXIF-tiedot" + +#: gphoto2/main.c:212 gphoto2/main.c:1551 gphoto2/shell.c:109 +msgid "Show info" +msgstr "Näytä tiedot" + +#: gphoto2/main.c:213 +msgid "Summary of camera status" +msgstr "Kooste kameran tilasta" + +#: gphoto2/main.c:214 +msgid "Camera driver manual" +msgstr "Kameran ajurin käyttöohje" + +#: gphoto2/main.c:215 +msgid "About the camera driver" +msgstr "Tietoa kameran ajurista" + +#: gphoto2/main.c:216 gphoto2/main.c:1559 +msgid "gPhoto shell" +msgstr "gPhoto-komentotulkki" + +#: gphoto2/main.c:343 gphoto2/main.c:1192 +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "" +"Käytä merkintätapaa a:b=c:d käsitellessäsi a:b:nä tunnistettua \n" +"USB-laitetta c:d:nä. a, b, c ja d tulee olla \"0x\":llä alkavia \n" +"heksadesimaalilukuja.\n" + +#: gphoto2/main.c:466 +msgid "Jan" +msgstr "tam" + +#: gphoto2/main.c:466 +msgid "January" +msgstr "tammikuuta" + +#: gphoto2/main.c:467 +msgid "Feb" +msgstr "hel" + +#: gphoto2/main.c:467 +msgid "February" +msgstr "helmikuuta" + +#: gphoto2/main.c:468 +msgid "Mar" +msgstr "maa" + +#: gphoto2/main.c:468 +msgid "March" +msgstr "maaliskuuta" + +#: gphoto2/main.c:469 +msgid "Apr" +msgstr "huh" + +#: gphoto2/main.c:469 +msgid "April" +msgstr "huhtikuuta" + +#: gphoto2/main.c:470 +msgid "May" +msgstr "tou" + +#: gphoto2/main.c:471 +msgid "Jun" +msgstr "kes" + +#: gphoto2/main.c:471 +msgid "June" +msgstr "kesäkuuta" + +#: gphoto2/main.c:472 +msgid "Jul" +msgstr "hei" + +#: gphoto2/main.c:472 +msgid "July" +msgstr "heinäkuuta" + +#: gphoto2/main.c:473 +msgid "Aug" +msgstr "elo" + +#: gphoto2/main.c:473 +msgid "August" +msgstr "elokuuta" + +#: gphoto2/main.c:474 +msgid "Sep" +msgstr "syy" + +#: gphoto2/main.c:474 +msgid "September" +msgstr "syyskuuta" + +#: gphoto2/main.c:475 +msgid "Oct" +msgstr "lok" + +#: gphoto2/main.c:475 +msgid "October" +msgstr "lokakuuta" + +#: gphoto2/main.c:476 +msgid "Nov" +msgstr "mar" + +#: gphoto2/main.c:476 +msgid "November" +msgstr "marraskuuta" + +#: gphoto2/main.c:477 +msgid "Dec" +msgstr "jou" + +#: gphoto2/main.c:477 +msgid "December" +msgstr "joulukuuta" + +#: gphoto2/main.c:484 +msgid "Sun" +msgstr "su" + +#: gphoto2/main.c:484 +msgid "Sunday" +msgstr "sunnuntai" + +#: gphoto2/main.c:485 +msgid "Mon" +msgstr "ma" + +#: gphoto2/main.c:485 +msgid "Monday" +msgstr "maanantai" + +#: gphoto2/main.c:486 +msgid "Tue" +msgstr "ti" + +#: gphoto2/main.c:486 +msgid "Tuesday" +msgstr "tiistai" + +#: gphoto2/main.c:487 +msgid "Wed" +msgstr "ke" + +#: gphoto2/main.c:487 +msgid "Wednesday" +msgstr "keskiviikko" + +#: gphoto2/main.c:488 +msgid "Thu" +msgstr "to" + +#: gphoto2/main.c:488 +msgid "Thursday" +msgstr "torstai" + +#: gphoto2/main.c:489 +msgid "Fri" +msgstr "pe" + +#: gphoto2/main.c:489 +msgid "Friday" +msgstr "perjantai" + +#: gphoto2/main.c:490 +msgid "Sat" +msgstr "la" + +#: gphoto2/main.c:490 +msgid "Saturday" +msgstr "lauantai" + +#: gphoto2/main.c:552 +#, c-format +msgid "You cannot use '%n' in combination with non-persistent files!" +msgstr "Et voi käyttää kohdetta \"%n\" väliaikaistiedostojen yhteydessä!" + +#: gphoto2/main.c:575 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Kameran antama tiedoston nimi (\"%s\") ei sisällä päätettä!" + +#: gphoto2/main.c:654 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Virheellinen muoto \"%s\" (virhe kohdassa %i)." + +#: gphoto2/main.c:701 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Tiedosto %s on olemassa. Ylikirjoitetaanko? [y|n] " + +#: gphoto2/main.c:712 +msgid "Specify new filename? [y|n] " +msgstr "Anna uusi tiedostonimi? [y|n] " + +#: gphoto2/main.c:721 +msgid "Enter new filename: " +msgstr "Syötä uusi tiedostonimi: " + +#: gphoto2/main.c:726 +#, c-format +msgid "Saving file as %s\n" +msgstr "Tallennetaan tiedosto nimellä %s\n" + +#: gphoto2/main.c:918 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Uusi tiedosto sijaitsee kamerassa paikassa %s%s%s\n" + +#: gphoto2/main.c:1050 +msgid "ERROR: " +msgstr "VIRHE: " + +#: gphoto2/main.c:1073 +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Keskeytetään...\n" + +#: gphoto2/main.c:1079 +msgid "Aborted.\n" +msgstr "Keskeytetty.\n" + +#: gphoto2/main.c:1084 +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Perutaan...\n" + +#: gphoto2/main.c:1291 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 on käänetty ilman tukea CDK:lle." + +#: gphoto2/main.c:1404 +msgid "Operation cancelled.\n" +msgstr "Toimenpide keskeytetty.\n" + +#: gphoto2/main.c:1408 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Virhe (%i: \"%s\") *** \n" +"\n" + +#: gphoto2/main.c:1412 +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Nähdäksesi vianetsintäviestit, käyt䠭-debug-valitsinta. \n" +"Vianetsintäviestit voivat auttaa löytämään ratkaisun ongelmaasi. \n" +"Jos aiot lähettää virhe- tai vianetsintäviestejä gphoto:n\n" +"kehittäjien sähköpostilistalle ,\n" +"ole hyvä ja käynnistä gphoto2 seuraavasti:\n" +"\n" + +#: gphoto2/main.c:1465 +msgid "Overwrite files without asking." +msgstr "Ylikirjoita tiedostot kysymättä." + +#: gphoto2/main.c:1479 +msgid "path" +msgstr "polku" + +#: gphoto2/main.c:1481 +msgid "speed" +msgstr "nopeus" + +#: gphoto2/main.c:1483 +msgid "model" +msgstr "malli" + +#: gphoto2/main.c:1485 +msgid "filename" +msgstr "tiedostonimi" + +#: gphoto2/main.c:1487 +msgid "usbid" +msgstr "usbid" + +#: gphoto2/main.c:1491 +msgid "folder" +msgstr "kansio" + +#: gphoto2/main.c:1543 +msgid "Capture a movie" +msgstr "Kaappaa elokuva" + +#: gphoto2/main.c:1553 +msgid "Show summary" +msgstr "Näytä kooste" + +#: gphoto2/main.c:1555 +msgid "Show camera driver manual" +msgstr "Näytä kameran ajurin käyttöohje" + +#: gphoto2/main.c:1557 +msgid "About the camera driver manual" +msgstr "Tietoa kameran ajurin käyttöohjeesta" + +#: gphoto2/main.c:1784 +msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +msgstr "" +"gPhoto2 OS/2:lle vaatii \"CAMLIBS\"-ympäristömuuttujan asettamisen \n" +"kamerakirjastoihin sopivaksi. Esim. SET CAMLIBS=C:\\\\GPHOTO2\\\\CAM\n" + +#: gphoto2/main.c:1794 +msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +msgstr "" +"gPhoto2 OS/2:lle vaatii \"IOLIBS\"-ympäristömuuttujan asettamisen \n" +"io-kirjastoihin sopivaksi. Esim. SET IOLIBS=C:\\\\GPHOTO2\\\\IOLIB\n" + +#: gphoto2/options.c:181 +msgid "Usage:\n" +msgstr "Käyttö:\n" + +#: gphoto2/options.c:184 +msgid "" +"Short/long options (& argument) Description\n" +"--------------------------------------------------------------------------------\n" +msgstr "" +"Lyhyet/pitkät valinnat (ja argumentit) Kuvaus\n" +"--------------------------------------------------------------------------------\n" + +#: gphoto2/options.c:209 +#, c-format +msgid "%-38s %s\n" +msgstr "%-38s %s\n" + +#: gphoto2/options.c:214 +msgid "" +"--------------------------------------------------------------------------------\n" +"[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +msgstr "" +"--------------------------------------------------------------------------------\n" +"[Käytä kaksoislainausmerkkejä argumenttien ympärillä  [Kuvan numero alkaa\n" +"ykkösellä (1)]\n" + +#: gphoto2/range.c:103 gphoto2/range.c:157 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Kuvan numeron tulee olla nollaa suurempi." + +#: gphoto2/range.c:109 gphoto2/range.c:163 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Kuvan numero %i on liian suuri." + +#: gphoto2/range.c:125 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Lukualueet tulee erottaa pilkuilla \",\"." + +#: gphoto2/range.c:139 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Lukualueiden tulee alkaa numerolla." + +#: gphoto2/range.c:179 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Odottamaton merkki \"%c\"." + +#: gphoto2/range.c:202 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Vähenevät lukualueet eivät ole sallittuja. Määritit alueen luvusta %i \n" +"lukuun %i." + +#: gphoto2/shell.c:55 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Virhe (%i: \"%s\") ***" + +#: gphoto2/shell.c:98 +msgid "Change to a directory on the camera" +msgstr "Siirry kameran kansioon" + +#: gphoto2/shell.c:99 gphoto2/shell.c:101 +msgid "directory" +msgstr "kansio" + +#: gphoto2/shell.c:100 +msgid "Change to a directory on the local drive" +msgstr "Siirry paikallisen aseman kansioon" + +#: gphoto2/shell.c:102 gphoto2/shell.c:120 gphoto2/shell.c:121 +msgid "Exit the gPhoto shell" +msgstr "Poistu gPhoto-komentotulkista" + +#: gphoto2/shell.c:103 +msgid "Download a file" +msgstr "Lataa tiedosto" + +#: gphoto2/shell.c:103 gphoto2/shell.c:106 gphoto2/shell.c:108 +#: gphoto2/shell.c:110 gphoto2/shell.c:111 gphoto2/shell.c:114 +msgid "[directory/]filename" +msgstr "[kansio/]tiedostonimi" + +#: gphoto2/shell.c:105 +msgid "Download a thumbnail" +msgstr "Lataa pienoiskuva" + +#: gphoto2/shell.c:107 +msgid "Download raw data" +msgstr "Lataa raakadata" + +#: gphoto2/shell.c:111 +msgid "Delete" +msgstr "Poista" + +#: gphoto2/shell.c:116 gphoto2/shell.c:122 +msgid "Displays command usage" +msgstr "Näytä komennon käyttöohjeet" + +#: gphoto2/shell.c:117 gphoto2/shell.c:122 +msgid "[command]" +msgstr "[komento]" + +#: gphoto2/shell.c:118 +msgid "List the contents of the current directory" +msgstr "Listaa nykyisen kansion sisältö" + +#: gphoto2/shell.c:119 +msgid "[directory/]" +msgstr "[kansio/]" + +#: gphoto2/shell.c:421 +msgid "Invalid command." +msgstr "Virheellinen komento." + +#: gphoto2/shell.c:430 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Komento \"%s\" vaatii argumentin." + +#: gphoto2/shell.c:483 +msgid "Invalid path." +msgstr "Virheellinen polku." + +#: gphoto2/shell.c:529 +msgid "Could not find home directory." +msgstr "Kotikansiota ei löytynyt." + +#: gphoto2/shell.c:537 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Paikalliseen kansioon \"%s\" siirtyminen ei onnistunut." + +#: gphoto2/shell.c:540 +#, c-format +msgid "Local directory now '%s'." +msgstr "Paikallinen kansio on nyt \"%s\"." + +#: gphoto2/shell.c:578 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Etäkansio on nyt \"%s\"." + +#: gphoto2/shell.c:734 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "" +"Komentoa \"%s\" ei löydy. Käytä komentoa \"help\" nähdäksesi listan käytössä olevista\n" +"komennoista." + +#: gphoto2/shell.c:741 +#, c-format +msgid "Help on \"%s\":" +msgstr "Ohjeita aiheesta \"%s\":" + +#: gphoto2/shell.c:743 +msgid "Usage:" +msgstr "Käyttö:" + +#: gphoto2/shell.c:747 +msgid "Description:" +msgstr "Kuvaus:" + +#: gphoto2/shell.c:749 +msgid "* Arguments in brackets [] are optional" +msgstr "* Argumentit hakasuluissa [] ovat valinnaisia" + +#: gphoto2/shell.c:770 +msgid "Available commands:" +msgstr "Käytössä olevat komennot:" + +#: gphoto2/shell.c:775 +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Saadaksesi apua tietyn komennon käytöstä kirjoita \"help komennon-nimi\"." diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/fr.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/fr.po new file mode 100644 index 00000000..9513d546 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/fr.po @@ -0,0 +1,1730 @@ +# gPhoto French translation +# Copyright (C) 2001, 2004-2005, 2011-2015 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# +# Jérôme Fenal , 2001. +# Christophe Barbé , 2004-2005. +# Dimitri Duc , 2011. +# David Prévot , 2012-2015. +# Stéphane Aulery , 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2016-12-23 22:52+0100\n" +"Last-Translator: David Prévot \n" +"Language-Team: French \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Lokalize 1.5\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Nombre de fichiers dans le dossier « %s » : %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Le dossier « %2$s » contient %1$d dossier.\n" +msgstr[1] "Le dossier « %2$s » contient %1$d dossiers.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Le dossier « %s » ne contient aucun fichier.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Le dossier « %2$s » contient %1$d fichier.\n" +msgstr[1] "Le dossier « %2$s » contient %1$d fichiers.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Renseignements sur le fichier « %s » (dossier « %s ») :\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Fichier :\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Aucun disponible.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Type MIME : « %s »\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Taille : %lu octet(s)\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Largeur : %i pixel(s)\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Hauteur : %i pixel(s)\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Téléchargé : %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "oui" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "non" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Droits : " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "lecture et suppression" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "lecture" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "suppression" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "aucun" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Heure : %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Vignette :\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Données sonores :\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Type MIME : « %s »\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Taille : %lu octets(s)\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Téléchargé : %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Impossible d'analyser les données EXIF." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "Balises EXIF :" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Balise" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Valeur" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Les données EXIF contiennent une vignette (%i octets)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gPhoto2 a été compilé sans la gestion EXIF." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Nombre d'appareils gérés : %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Appareils gérés :\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t« %s » (test)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t« %s » (expérimental)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t« %s »\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Périphériques trouvés : %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Chemin Description\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Modèle" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Possibilités de l'appareil : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Gestion du port série : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "Gestion du port USB : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Vitesses de transfert gérées :\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Choix d'acquisition :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Image\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Vidéo\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Audio\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Prévisualisation\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : Déclencher l’acquisition\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Acquisition non gérée par ce pilote\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Gestion de la configuration : %s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Effacer les fichiers sélectionnés de l'appareil : %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Supprimer tous les fichiers de l'appareil : %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Gestion des vignettes de prévisualisation : %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Gestion de l'envoi de fichiers : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Les ports doivent être de la forme « serial:/dev/ttyS0 » ou « usb: », mais un deux points manque à « %s » ; tentative de deviner ce qui est voulu." + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Le port indiqué (« %s ») est introuvable. Veuillez indiquer l'un des ports trouvés par la commande « gphoto2 --list-ports » et assurez-vous que la syntaxe est correcte (c'est-à-dire avec le préfixe « serial: » ou « usb: »)." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "À propos du pilote de l'appareil :" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Résumé sur l'appareil :" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Manuel de l'appareil :" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "La vitesse ne peut être indiquée que pour les ports série." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Portage OS/2 par Bart van Leeuwen\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller et autres\n" +"%s\n" +"gPhoto2 est livré SANS AUCUNE GARANTIE, dans les limites définies par la loi.\n" +"Vous pouvez en redistribuer des copies selon les termes de la Licence\n" +"Publique Générale GNU (GPL). Pour obtenir plus de renseignements à ce sujet,\n" +"veuillez consulter les fichiers appelés « COPYING ».\n" +"\n" +"Cette version de gphoto2 utilise les versions des logiciels et les options\n" +"suivantes :\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Impossible d'ouvrir « movie.mjpg »." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Acquisition d'aperçus d'image comme vidéo de « %s ». Ctrl-C pour abandonner.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Acquisition d'aperçus d'image comme vidéo de « %s » pour %d secondes.\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Acquisition de %d aperçus d'image comme vidéo de « %s ».\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Erreur d'acquisition vidéo… Quitter." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Erreur d'acquisition vidéo… Type MIME « %s » non gérée." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl-C reçu… Quitter.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Acquisition de film terminée (%d trames)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Attente d'événements de l'appareil. Ctrl-C pour abandonner.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Attente de %d images de l'appareil. Ctrl-C pour abandonner.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Attente de %d millisecondes pour les événements de l'appareil. Ctrl-C pour abandonner.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Attente de %d secondes pour les événements de l'appareil. Ctrl-C pour abandonner.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Attente de %d événements de l'appareil. Ctrl-C pour abandonner.\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Attente d’événement %s de l'appareil. Ctrl-C pour abandonner.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "événement trouvé, arrêtez d’attendre.\n" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Impossible de définir le répertoire." + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Impossible d'obtenir l'image." + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "libcanon.so défectueuse ?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Impossible de supprimer l'image." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Obtention de renseignements sur le stockage impossible avec cet appareil.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Lecture et écriture" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Lecture seule" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Lecture seule avec suppression" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Inconnu" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "ROM fixe" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "ROM amovible" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "RAM fixe" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "RAM amovible" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Indéfinie" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Générique plat" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Générique hiérarchique" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Disposition de l'appareil (DCIM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Remplacement des identifiants USB constructeur/produit 0x%x/0x%x par 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "Veuillez toujours intégrer les lignes suivantes lors de l'envoi de messages de débogage à la liste de diffusion :" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s a été compilé avec les options suivantes :" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s introuvable dans l'arborescence de configuration." + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Échec de récupération de la valeur dans l'élément graphique textuel %s." + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Échec de récupération des valeurs dans l'élément graphique d'intervalle %s." + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Échec de récupération des valeurs dans l'élément graphique de bascule %s." + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Échec de récupération des valeurs dans l'élément graphique de date et heure %s." + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Utiliser « maintenant » comme date actuelle de réglage.\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Échec de récupération des valeurs dans l'élément graphique radio %s." + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "La propriété %s est en lecture seule." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Échec de définition de la valeur de l'élément graphique textuel %s à %s." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "La valeur %s, passée en paramètre, n'est pas un nombre réel." + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "La valeur %f, passée en paramètre, n'est pas dans l'intervalle attendu de %f à %f." + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Échec de définition de la valeur dans l'élément graphique d'intervalle %s à %f." + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "arrêt" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "faux" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "marche" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "vrai" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "La valeur %s, passée en paramètre, n'est pas une valeur de bascule possible." + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Échec de définition des valeurs %s de l'élément graphique de bascule %s." + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "maintenant" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "La valeur %s, passée en paramètre, n'est ni une heure possible, ni un entier." + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Échec de définition de la nouvelle valeur d'heure de l'élément graphique de date et heure %s à %s." + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Le choix %s est introuvable parmi les choix possibles." + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "L'élément graphique %s n'est pas configurable." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Échec de définition de la nouvelle valeur de configuration %s pour l'entrée de configuration %s." + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "L'élément graphique %s n'a pas de liste de choix indicée. Utilisez plutôt --set-config-value." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Numéro de fichier incorrect. Vous avez indiqué %i, mais seuls %i fichiers sont disponibles dans « %s » et ses sous-répertoires. Vous pouvez obtenir un numéro de fichier possible dans la liste des fichiers." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Le dossier « %s » ne contient aucun fichier." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Numéro de fichier incorrect. Vous avez indiqué %i, mais un seul fichier est disponible dans « %s »." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Numéro de fichier incorrect. Vous avez indiqué %i, mais seuls %i fichiers sont disponibles dans « %s ». Vous pouvez obtenir un numéro de fichier possible dans la liste des fichiers." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Erreur ***\n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Veuillez appuyer sur une touche pour continuer.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Mémoire insuffisante." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Opération annulée" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Continuer" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Annuler" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Erreur" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Impossible d'appliquer la configuration :" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Sortir" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Retour" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Heure : " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Valeur : " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Oui" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Non" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Le remplissage des noms de fichier avec des zéros n'est possible qu'avec %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Impossible d'utiliser le remplissage avec des zéros %%n sans valeur de précision." + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Le fichier donné par l'appareil photo (« %s ») n'a pas de suffixe." + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Format « %s » incorrect (erreur à la position %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Saut du fichier %s existant\n" + +# !!! [y/n] !!! [CM] +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Le fichier %s existe. Voulez-vous l'écraser ? [y|n] " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Voulez-vous indiquer un nouveau nom de fichier ? [y|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Entrez un nouveau nom de fichier : " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Enregistrement du fichier en %s\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Permission refusée" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Impossible de déclencher l'acquisition." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Le nouveau fichier est à l'emplacement %s%s%s de l'appareil\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Conservation du fichier %s%s%s de l'appareil\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Effacement du fichier %s%s%s de l'appareil\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Événement d'ajout de dossier %s/%s pendant l'attente, ignorer.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Événement inconnu %s pendant l'attente, ignorer.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Type %d d'événement inconnu pendant l'attente en pose longue, ignorer.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Impossible d'obtenir les capacités." + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Mode accéléré activé (intervalle : %d s).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Reste en attente pour l'acquisition de SIGUSR1.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Mode pose longue activé (intervalle : %d s).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Acquisition de l'image nº %d…\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Acquisition de l'image nº %d/%d…\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Impossible de paramétrer l'acquisition en pose longue, résultat %d." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Impossible de terminer l'acquisition (mode pose longue)" + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Impossible de déclencher l'acquisition d'image." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Acquisition d'image impossible." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Échec d'acquisition (problème d'autofocus possible)…\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Acquisition impossible." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "En attente de la prochaine acquisition dans %ld secondes…\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Réveillé par SIGUSR1…\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "pas en veille (%ld secondes de retard)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "Erreur : " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Abandon…\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Abandonné.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Annulation…\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Utilisez la syntaxe a:b=c:d pour traiter n'importe quel périphérique USB détecté comme a:b au lieu de c:d. a, b, c et d doivent être des nombres hexadécimaux commençant par « 0x ».\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gPhoto2 a été compilé sans la gestion de CDK." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Opération annulée.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Erreur : aucun appareil trouvé. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Erreur (%i : « %s ») ***\n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Pour obtenir les messages de débogage, veuillez utiliser l'option --debug.\n" +"Ces messages peuvent aider à trouver une solution au problème. Si vous avez\n" +"l'intention d'envoyer un message d'erreur ou de débogage à la liste de\n" +"diffusion des développeurs de gPhoto ,\n" +"en anglais, veuillez exécuter gphoto2 comme suit :\n" +"\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Veuillez vous assurer que les arguments sont suffisamment protégés.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "Afficher l'aide complète d'utilisation du programme" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "Afficher le résumé d'utilisation du programme" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Activer le débogage" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "Définir le niveau de débogage [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "Nom du fichier où écrire les renseignements de débogage" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "NOM_DE_FICHIER" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Mode silencieux (bavard par défaut)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Script à appeler après le téléchargement, l'acquisition, etc." + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Indiquer le port du périphérique" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Indiquer la vitesse du transfert série" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "VITESSE" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Indiquer le modèle de l'appareil" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "MODÈLE" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "Redéfinir les identifiants USB (pour les spécialistes)" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "IDENTIFIANTS" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Afficher la version et quitter" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Afficher les modèles d'appareils gérés" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Afficher les ports de périphériques gérés" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Afficher les possibilités de l'appareil ou du pilote dans la base de données de libgphoto2" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Configurer" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Afficher l'arborescence de configuration" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Afficher l'arborescence de configuration complète" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Obtenir une valeur de configuration" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Définir une valeur de configuration ou d'indice de choix" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "Définir une valeur d'indice de choix de configuration" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Définir une valeur de configuration " + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Réinitialiser le port du périphérique" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Garder les images sur l'appareil après l'acquisition" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "Garder les images brutes sur l'appareil après l'acquisition" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Supprimer les images de l'appareil après l'acquisition" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Attendre un ou des événements de l'appareil" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "NOMBRE, SECONDES, MILLISECONDES ou CHAÎNE" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Attendre un ou des événements de l'appareil et télécharger les nouvelles images" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Acquérir une prévisualisation" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "Montrer une prévisualisation en art ASCII" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Initialiser le temps d'exposition de pose longue en seconde" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "SECONDES" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Définir le nombre d'images à capturer (infini par défaut)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "NOMBRE" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Définir l'intervalle de capture en seconde" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Réinitialiser l'intervalle de capture au signal (non par défaut)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Acquérir une image" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Déclencher l'acquisition d'une image" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Acquérir et télécharger une image" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Acquérir un film" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "NOMBRE ou SECONDES" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Acquérir un extrait sonore" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Attendre que le déclencheur soit relâché et télécharger" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Déclencher l'acquisition d'image." + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Afficher les dossiers du dossier" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Afficher les fichiers du dossier" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Créer un répertoire" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "NOM_DE_RÉPERTOIRE" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Supprimer un répertoire" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Afficher le nombre de fichiers" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Récupérer les fichiers de l'intervalle" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "INTERVALLE" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Récupérer tous les fichiers du dossier" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Récupérer les vignettes de l'intervalle" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Récupérer toutes les vignettes du dossier" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Récupérer les métadonnées de l'intervalle" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Récupérer toutes les métadonnées du dossier" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Envoyer les métadonnées du fichier" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Récupérer les données brutes de l'intervalle" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Récupérer toutes les données brutes du dossier" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Récupérer les données sonores de l'intervalle" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Récupérer toutes les données sonores du dossier" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Supprimer les fichiers de l'intervalle" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Supprimer tous les fichiers du dossier (--no-recurse par défaut)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Envoyer un fichier à l'appareil" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Indiquer un nom de fichier ou un motif de nom de fichier" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "MOTIF_DE_FICHIER" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Indiquer le dossier de l'appareil (« / » par défaut)" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "DOSSIER" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Récursion (par défaut pour le téléchargement)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Pas de récursion (par défaut pour l'effacement)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Ne traiter que les nouveaux fichiers" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Écraser les fichiers sans confirmation" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Saut des fichiers existants" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Envoyer les fichiers sur la sortie standard" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "Afficher la taille du fichier avant les données" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Afficher les appareils autodétectés" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Afficher les données EXIF des images JPEG" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Afficher des renseignements sur l’image, tels que largeur, hauteur et date d’acquisition" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "Afficher le résumé de l’appareil photo" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Afficher le manuel du pilote de l'appareil" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "À propos du manuel du pilote de l'appareil" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Afficher les renseignements de stockage" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "Interpréteur gPhoto" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Options communes" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Options diverses (non triés)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "Renseignements sur le programme et le système (pas sur l'appareil)" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "Indication de l'appareil à utiliser" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Configuration de l'appareil et du programme" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Acquisition d'une image de l'appareil" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Téléchargement, envoi et manipulation de fichiers" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Les identifiants d'image doivent être des nombres supérieurs à zéro." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Identifiant d'image %i trop grand." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Les intervalles doivent être séparés par des « , »." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Les intervalles doivent commencer par un nombre." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Caractère « %c » inattendu." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Les intervalles décroissants ne sont pas autorisés. Vous devez indiquer un intervalle de %i à %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Erreur (%i : « %s ») ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Aller dans un répertoire de l'appareil" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "répertoire" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Aller dans un répertoire du disque local" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Quitter l'interpréteur gPhoto" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Télécharger un fichier" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[répertoire/]nom_de_fichier" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Envoi d'un fichier" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Télécharger une vignette" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Télécharger des données brutes" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Supprimer" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Créer un répertoire" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Supprimer un répertoire" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Afficher l'aide sur les commandes" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[commande]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Afficher le contenu du répertoire actuel" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[répertoire/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Afficher les variables de configuration" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Obtenir une variable de configuration" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "nom" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Définir une variable de configuration" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "nom=valeur" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Initialiser l'indice d'une variable de configuration" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "nom=indicevaleur" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Acquérir une seule image" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Acquérir une seule image et la télécharger" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Acquérir un aperçu d'image" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Attendre d'un événement" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "nombre ou secondes" + +# NOTE: s/it/them/? +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Attendre l'acquisition d'images avant de télécharger" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Attendre les événements et l'acquisition d'images avant de télécharger" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Commande incorrecte." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "La commande « %s » a besoin d'un paramètre." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Chemin d'accès incorrect." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Répertoire personnel introuvable." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Impossible d'aller dans le répertoire local « %s »." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Le répertoire local est désormais « %s »." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Le répertoire distant est désormais « %s »." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config a besoin d'un deuxième paramètre.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value a besoin d'un deuxième paramètre.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index a besoin d'un deuxième paramètre.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Commande « %s » introuvable. Utilisez « help » pour obtenir la liste des commandes disponibles." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Aide sur « %s » :" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Utilisation :" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Description :" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Les paramètres entre crochets [] sont facultatifs" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Commandes disponibles :" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Pour obtenir de l'aide sur une commande particulière, entrez « help nom-de-la-commande ». " + +#~ msgid "Show info" +#~ msgstr "Afficher les renseignements" + +#~ msgid " Name: '%s'\n" +#~ msgstr " Nom: '%s'\n" + +#~ msgid "There are no folders in folder '%s'." +#~ msgstr "Il n'y a pas de dossier dans le dossier « %s »." + +#~ msgid "There are %i folders in folder '%s':" +#~ msgstr "Il y a %i dossiers dans le dossier « %s » :" + +#~ msgid "There are %i files in folder '%s':" +#~ msgstr "Il y a %i fichiers dans le dossier « %s »." + +#~ msgid "Displays this help screen" +#~ msgstr "afficher cet écran d'aide" + +#~ msgid "List the configuration tree" +#~ msgstr "afficher l'arborescence de configuration" + +#~ msgid "Capture a movie " +#~ msgstr "capturer un film " + +#~ msgid "Summary of camera status" +#~ msgstr "résumé de l'état de l'appareil" + +#~ msgid "Camera driver manual" +#~ msgstr "manuel du pilote de l'appareil" + +#~ msgid "About the camera driver" +#~ msgstr "à propos du pilote de l'appareil" + +#~ msgid "Could not close camera connection." +#~ msgstr "Impossible de couper la connexion avec l'appareil." + +#~ msgid "Sleeping for %d second(s)...\n" +#~ msgstr "Mise en sommeil pour %d seconde(s)...\n" + +#~ msgid "path" +#~ msgstr "chemin" + +#~ msgid "speed" +#~ msgstr "vitesse" + +#~ msgid "model" +#~ msgstr "modèle" + +#~ msgid "filename" +#~ msgstr "fichier" + +#~ msgid "usbid" +#~ msgstr "identifiant_usb" + +#~ msgid "folder" +#~ msgstr "répertoire" + +#~ msgid "count" +#~ msgstr "nombre" + +#~ msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +#~ msgstr "Pour gPhoto2 version OS/2, il est nécessaire de définir la variable d'environnement CAMLIBS, afin qu'elle indique l'emplacement des bibliothèques de gestion des appareils, par ex. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" + +#~ msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +#~ msgstr "Pour gPhoto2 version OS/2, il est nécessaire de définir la variable d'environnement IOLIBS, afin qu'elle indique l'emplacement des bibliothèques de communication, par ex. SET CAMLIBS=C:\\GPHOTO2\\IOLIB\n" + +#~ msgid "Usage:\n" +#~ msgstr "Utilisation :\n" + +#~ msgid "" +#~ "Short/long options (& argument) Description\n" +#~ "--------------------------------------------------------------------------------\n" +#~ msgstr "" +#~ "Options courte/longue (& param.) Description\n" +#~ "--------------------------------------------------------------------------------\n" + +#~ msgid "%-38s %s\n" +#~ msgstr "%-32s %s\n" + +#~ msgid "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +#~ msgstr "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Mettre les paramètres entre « \" »] [Les numéros d'images commencent à un (1)]\n" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/hu.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/hu.po new file mode 100644 index 00000000..f2fbbf70 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/hu.po @@ -0,0 +1,1818 @@ +# Hungarian translation for gphoto2. +# Copyright (C) 2003, 2014, 2015 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# +# Mihály Gyulai , 2003. +# Balázs Úr , 2014, 2015. +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2015-11-20 23:38+0100\n" +"Last-Translator: Balázs Úr \n" +"Language-Team: Hungarian \n" +"Language: hu\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Lokalize 1.2\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "A(z) „%s” mappában lévő fájlok száma: %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "%d mappa van a(z) „%s” mappában.\n" +msgstr[1] "%d mappa van a(z) „%s” mappában.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Nincs fájl a(z) „%s” mappában.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "%d fájl van a(z) „%s” mappában.\n" +msgstr[1] "%d fájl van a(z) „%s” mappában.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Információ a(z) „%s” fájlról („%s” könyvtárban):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Fájl:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Nincs elérhető.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME-típus: „%s”\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Méret: %lu bájt\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Szélesség: %i képpont\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Magasság: %i képpont\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Letöltve: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "igen" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "nem" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Jogosultságok: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "olvasás/törlés" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "olvasás" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "törlés" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "nincs" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Idő: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Bélyegkép:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Hanganyag:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME-típus: „%s”\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Méret: %lu bájt\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Letöltve: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Nem sikerült feldolgozni az EXIF adatokat." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF címkék:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Címke" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Érték" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Az EXIF adat egy bélyegképet tartalmaz (%i bájt)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "A gphoto2 EXIF támogatás nélkül lett lefordítva." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Támogatott kamerák száma: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Támogatott kamerák:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t„%s” (TESZTELÉS)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t„%s” (KÍSÉRLETI)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t„%s”\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Talált eszközök: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Útvonal Leírás\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Modell" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "A kamera képességei : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Soros port támogatás : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "USB támogatás : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Támogatott átviteli sebességek :\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Rögzítési lehetőségek :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Kép\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Videó\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Hang\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Előnézet\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : Aktiváló rögzítés\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : A meghajtó nem támogatja a rögzítést\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Beállítási támogatás : %s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Kijelölt fájlok törlése a kamerán: %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Minden fájl törlése a kamerán : %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Fájlelőnézet (bélyegkép) támogatás: %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Fájlfeltöltés támogatás : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "A portoknak így kell kinézniük: „serial:/dev/ttyS0” vagy „usb:”, de a(z) „%s” nem tartalmaz kettőspontot, ezért megpróbálom kitalálni, hogy lenne helyes." + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "A megadott port („%s”) nem található. Olyan portot adjon meg, amit a „gphoto2 --list-ports” parancs megtalált, és győződjön meg arról, hogy jól írta-e be (azaz „serial:” vagy „usb:” előtaggal)." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "A kamerameghajtó névjegye:" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Kamera összefoglaló:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Kamera kézikönyv:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Csak a soros portok sebessége adható meg." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2-re átírta Bart van Leeuwen\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (C) 2000-%d Lutz Mueller és mások\n" +"%s\n" +"A gphoto2 programra nem vonatkozik SEMMILYEN GARANCIA, kivéve, ha a\n" +"törvény másképp nem rendelkezik. A gphoto2 példányokat tovább lehet\n" +"adni a GNU General Public License rendelkezései alapján. További \n" +"információkért olvassa el a COPYING nevű fájlokat.\n" +"\n" +"A gphoto2 ezen verziója a következő programverziókat és kapcsolókat használja:\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Nem sikerült megnyitni: „movie.mjpg”." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Előnézeti képkockák rögzítése filmként a(z) „%s” helyre. A megszakításhoz nyomja meg a Ctrl+C billentyűket.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Előnézeti képkockák rögzítése filmként a(z) „%s” helyre %d másodpercig.\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "%d előnézeti képkocka rögzítése filmként a(z) „%s” helyre.\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Filmrögzítési hiba… Kilépés." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Filmrögzítési hiba… Kezeletlen „%s” MIME-típus." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl-C megnyomva… Kilépés.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "A filmrögzítés befejeződött (%d képkocka)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Várakozás a kamerából érkező eseményekre. A megszakításhoz nyomja meg a Ctrl+C billentyűket.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Várakozás a kamerából érkező %d képkockára. A megszakításhoz nyomja meg a Ctrl+C billentyűket.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Várakozás %d ezredmásodpercig a kamerából érkező eseményekre. A megszakításhoz nyomja meg a Ctrl+C billentyűket.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Várakozás %d másodpercig a kamerából érkező eseményekre. A megszakításhoz nyomja meg a Ctrl+C billentyűket.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Várakozás a kamerából érkező %d eseményre. A megszakításhoz nyomja meg a Ctrl+C billentyűket.\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Várakozás a kamerából érkező %s eseményre. A megszakításhoz nyomja meg a Ctrl+C billentyűket.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "esemény található, várakozás leállítása!\n" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Nem sikerült beállítani a mappát." + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Nem sikerült lekérni a képet." + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "Hibás libcanon.so?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Nem sikerült törölni a képet." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "A tároló információk lekérése nem támogatott ehhez a kamerához.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Írható-olvasható" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Csak olvasható" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Csak olvasható törléssel" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Ismeretlen" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "Rögzített ROM" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "Cserélhető ROM" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "Rögzített RAM" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "Cserélhető RAM" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Nem meghatározott" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Általános lapos" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Általános hierarchikus" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Kamera elrendezés (DCIM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "A 0x%x/0x%x USB gyártó/termék azonosító felülbírálása ezzel: 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "A KÖVETKEZŐ SOROKAT MINDIG ADJA MEG, HA HIBAKERESÉSI ÜZENETEKET KÜLD A LEVELEZŐLISTÁRA:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "A(z) %s a következő kapcsolókkal lett lefordítva:" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "A(z) %s nem található a beállítási fában." + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Nem sikerült lekérni a(z) %s szöveg felületi elem értékét." + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Nem sikerült lekérni a(z) %s tartomány felületi elem értékeit." + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Nem sikerült lekérni a(z) %s váltó felületi elem értékeit." + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Nem sikerült lekérni a(z) %s dátum/idő felületi elem értékeit." + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Beállításkor használja a „now” értéket aktuális időként.\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Nem sikerült lekérni a(z) %s rádió felületi elem értékeit." + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "A(z) %s tulajdonság csak olvasható." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Nem sikerült beállítani a(z) %s szöveg felületi elem értékét erre: %s." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Az átadott %s érték nem lebegőpontos érték." + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Az átadott %f érték nem az elvárt %f - %f tartományon belül van." + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Nem sikerült beállítani a(z) %s tartomány felületi elem értékét erre: %f." + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "ki" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "hamis" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "be" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "igaz" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Az átadott %s érték nem érvényes váltó érték." + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Nem sikerült beállítani a(z) %s váltó felületi elem %s értékeit." + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "most" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Az átadott %s érték nem érvényes idő vagy nem egész." + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Nem sikerült beállítani a(z) %s dátum/idő felületi elem új idejét erre: %s." + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "A(z) %s választás nem található a választások listájában." + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "A(z) %s felületi elem nem állítható be." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Nem sikerült az új %s konfigurációs érték beállítása a(z) %s konfigurációs bejegyzéshez." + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "A(z) %s felületi elemnek nincs indexelt választások listája. Használja a --set-config-value parancsot helyette." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Hibás a fájlok száma. Ennyit adott meg: %i, de csak %i fájl érhető el a(z) „%s” mappában vagy az almappáiban. A helyes értéket a fájlok listázásából szerezheti meg." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Nincsenek fájlok a(z) „%s” mappában." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Hibás a fájlok száma. Ennyit adott meg: %i, de csak 1 fájl érhető el ebben: „%s”." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Hibás a fájlok száma. Ennyit adott meg: %i, de csak %i fájl érhető el a(z) „%s” mappában. A helyes értéket a fájlok listázásából szerezheti meg." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Hiba *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Nyomjon meg egy billentyűt a folytatáshoz.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Nincs elég memória." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Művelet megszakítva" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Folytatás" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Mégse" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Hiba" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Nem sikerült beállítani a konfigurációt:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Kilépés" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Vissza" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Idő: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Érték: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Igen" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Nem" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "A fájlnevekben lévő nulla kitöltő számok csak ezzel lehetséges: %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Nem használható a(z) „%%n” nulla kitöltés egy pontossági érték nélkül!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "A kamera által megadott fájlnév („%s”) nem tartalmaz utótagot!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Érvénytelen formátum „%s” (hiba a pozíciónál: %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "A létező %s fájl kihagyása\n" + +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "A(z) %s fájl létezik. Felülírja? [y|n] " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Megad új fájlnevet? [y|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Új fájlnév megadása: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Fájl mentése mint %s\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Hozzáférés megtagadva" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Nem sikerült aktiválni a rögzítést." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Az új fájl helye a kamerán: %s%s%s\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "A(z) %s%s%s fájl megtartása a kamerán\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "A(z) %s%s%s fájl törlése a kameráról\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "FOLDER_ADDED %s/%s esemény a várakozás közben, mellőzés.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "UNKNOWN %s esemény a várakozás közben, mellőzés.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Ismeretlen %d eseménytípus az izzó várakozás közben, mellőzés.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Nem sikerült lekérni a képességeket?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Az idő múlás mód engedélyezve (időköz: %ds).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Készen állunk a SIGUSR1 értékére várakozva a rögzítéshez.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Izzó mód engedélyezve (exponálási idő: %ds).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "A #%d képkocka rögzítése…\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "A #%d/%d képkocka rögzítése…\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Nem sikerült beállítani az izzó rögzítést, %d eredmény." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Nem sikerült befejezni a rögzítést (izzó mód)." + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Nem sikerült aktiválni a képrögzítést." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Nem sikerült rögzíteni a képet." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "A rögzítés nem sikerült (automatikus fókusz probléma?)…\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Nem sikerült rögzíteni." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Várakozás a következő rögzítési résre %ld másodpercig…\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "A SIGUSR1 felébresztette…\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "nem alszik (%ld másodperccel az ütemezés mögött)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "HIBA: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Megszakítás…\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Megszakítva.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Kilépés…\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Használja az a:b=c:d szintaxist bármely USB-eszköz kezeléséhez, amely a:b-ként lett felismerve c:d helyett. Az a, b, c, d értékeknek „0x” kezdetű hexadecimális számoknak kell lenniük.\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "A gphoto2 CDK támogatás nélkül lett lefordítva." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Művelet megszakítva.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Hiba: nem található kamera. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Hiba (%i: „%s”) *** \n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Hibakereső üzenetekhez használja a --debug kapcsolót.\n" +"A hibakereső üzenetek segíthetnek megoldást találni a problémára.\n" +"Ha szándékában áll hibajelentést küldeni a gphoto fejlesztők levelezési\n" +"listájára , kérjük így futtassa a gphoto2 programot:\n" +"\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Győződjön meg arról, hogy elegendő idézőjel van az argumentumok körül.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "A teljes súgóüzenet kinyomtatása a program használatáról" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "Rövid üzenet kinyomtatása a program használatáról" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Hibakeresés bekapcsolása" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "Hibakeresési szint beállítása [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "A fájl neve, amelybe a hibakeresési információk lesznek írva" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "FÁJLNÉV" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Csendes kimenet (alapértelmezett = bőbeszédű)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Horog parancsfájl a letöltések, rögzítések, stb. utáni meghíváshoz." + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Eszköz port megadása" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Soros átviteli sebesség megadása" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "SEBESSÉG" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Kameramodell megadása" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "MODELL" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "(csak szakértőknek) USB azonosítók felülbírálása" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBAZONOSÍTÓK" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Verzió megjelenítése és kilépés" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Támogatott kameramodellek listázása" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Támogatott port eszközök listázása" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Kamera/meghajtó képességeinek megjelenítése a libgphoto2 adatbázisban" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Beállítás" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Beállítási fa listázása" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Teljes beállítási fa kiírása" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Beállítási érték lekérése" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Beállítási érték vagy a választásokban lévő index beállítása" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "A választásokban lévő beállítási érték index beállítása" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Beállítási érték beállítása" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Eszköz port visszaállítása" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Képek megtartása a kamerán a rögzítés után" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "RAW képek megtartása a kamerán a rögzítés után" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Képek eltávolítása a kameráról a rögzítés után" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Várakozás a kamerából érkező eseményekre" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "DARAB, MÁSODPERCEK, EZREDMÁSODPERCEK vagy ILLESZTÉSSZÖVEG" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Várakozás a kamerából érkező eseményekre, és új képek letöltése" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Gyors előnézet rögzítése" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "Gyors előnézet megjelenítése Ascii grafikaként" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Izzó exponálási idő beállítása másodpercben" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "MÁSODPERC" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "A rögzítendő képkockák számának beállítása (alapértelmezett = végtelen)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "SZÁM" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Rögzítési időköz beállítása másodpercben" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Rögzítési időköz visszaállítása a szignálon (alapértelmezett = nem)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Kép rögzítése" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Egy kép rögzítésének aktiválója" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Egy kép rögzítése és letöltése" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Film rögzítése" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "SZÁM vagy MÁSODPERC" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Hangklip rögzítése" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Várakozás a zár kiengedésére a kamerán és letöltés" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Képrögzítés aktiválás" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Mappák listázása a mappában" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Fájlok listázása a mappában" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Könyvtár létrehozása" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "KÖNYVTÁRNÉV" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Könyvtár eltávolítása" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Fájlok számának megjelenítése" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Az adott tartományban lévő fájlok lekérése" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "TARTOMÁNY" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Az összes fájl lekérése a mappából" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Az adott tartományban lévő bélyegképek lekérése" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Az összes bélyegkép lekérése a mappából" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Az adott tartományban lévő metaadatok lekérése" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Az összes metaadat lekérése a mappából" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Metaadatok feltöltése a fájlhoz" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Az adott tartományban lévő nyers adatok lekérése" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Az összes nyers adat lekérése a mappából" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Az adott tartományban lévő hangadatok lekérése" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Az összes hangadat lekérése a mappából" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Az adott tartományban lévő fájlok törlése" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Az összes fájl törlése a mappából (alapértelmezetten --no-recurse)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Egy fájl feltöltése a kamerára" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Egy fájlnév vagy fájlnév minta megadása" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "FÁJLNÉV_MINTA" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Kameramappa megadása (alapértelmezett = „/”)" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "MAPPA" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Rekurzió (letöltéskor alapértelmezett)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Nincs rekurzió (törléskor alapértelmezett)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Csak az új fájlok feldolgozása" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Fájlok felülírása kérdezés nélkül" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Létező fájlok kihagyása" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Fájl küldése a szabványos kimenetre" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "Fájlméret kiírása az adatok előtt" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Automatikusan felismert kamerák listázása" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "JPEG képek EXIF-információinak megjelenítése" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Képinformációk megjelenítése, mint például szélesség, magasság és a rögzítés ideje" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "Kameraösszegzés megjelenítése" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Kamerameghajtó kézikönyv megjelenítése" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "A kamerameghajtó kézikönyv névjegye" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Tároló-információk megjelenítése" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "gPhoto parancsértelmező" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Közös beállítások" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Egyéb beállítások (rendezetlen)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "Információk lekérése a szoftverről és a gazda rendszerről (nem a kameráról)" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "A használandó kamera megadása" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Kamera és szoftverbeállítás" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Egy kép rögzítése a kameráról vagy a kamerán" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Letöltés, feltöltés és fájlok manipulálása" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"A képek azonosítójának nullánál nagyobb számnak kell lennie." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"A kép azonosítója túl nagy (%i)." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"A tartományokat vesszővel kell elválasztani („,”)." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"A tartományoknak számmal kell kezdődniük." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Nem várt karakter: „%c”." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Csökkenő tartományok nincsenek megengedve. %i és %i között adott meg tartományt." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Hiba (%i: „%s”) ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Váltás a kamerán lévő könyvtárra" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "könyvtár" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Váltás a helyi meghajtón lévő könyvtárra" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Kilépés a gPhoto parancsértelmezőből" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Fájl letöltése" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[könyvtár/]fájlnév" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Fájl feltöltése" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Bélyegkép letöltése" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Nyers adatok letöltése" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Törlés" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Könyvtár létrehozása" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Könyvtár eltávolítása" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Megjeleníti a parancs használatát" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[parancs]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Az aktuális könyvtár tartalmának listázása" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[könyvtár/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Beállítási változók listázása" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Beállítási változó lekérése" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "név" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Beállítási változó beállítása" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "név=érték" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Beállítási változó index beállítása" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "név=értékindex" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Egyetlen kép rögzítése" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Egyetlen kép rögzítése és letöltése" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Előnézeti kép rögzítése" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Várakozás egy eseményre" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "szám vagy másodperc" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Várakozás a képek rögzítésére és letöltés" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Várakozás eseményekre és a képek rögzítésére, majd letöltés" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Érvénytelen parancs." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "A(z) „%s” parancs argumentumot igényel." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Érvénytelen útvonal." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Nem található a saját könyvtár." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Nem sikerült váltani a helyi „%s” könyvtárra." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "A helyi könyvtár most „%s”." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "A távoli könyvtár most „%s”." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "A set-config egy második argumentumot igényel.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "A set-config-value egy második argumentumot igényel.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "A set-config-index egy második argumentumot igényel.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "A(z) „%s” parancs nem található. Használja a „help” parancsot az elérhető parancsok listájához." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Segítség ehhez: „%s”:" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Használat:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Leírás:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* A szögletes zárójelben [] lévő paraméterek nem kötelezőek" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Elérhető parancsok:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Egy bizonyos paranccsal kapcsolatos súgóhoz gépelje be: „help parancs-neve”." + +#~ msgid "Show info" +#~ msgstr "Információk megjelenítése" + +#~ msgid "There are no folders in folder '%s'." +#~ msgstr "A '%s' könyvtár alatt nincs alkönyvtár." + +#~ msgid "There are %i folders in folder '%s':" +#~ msgstr "%i alkönyvtár van a(z) '%s' könyvtárban:" + +#~ msgid "There are %i files in folder '%s':" +#~ msgstr "%i fájl van a(z) '%s' könyvtárban:" + +#~ msgid " Name: '%s'\n" +#~ msgstr " Név: '%s'\n" + +#~ msgid "Displays this help screen" +#~ msgstr "Ez a súgó oldal" + +#~ msgid "Capture a movie " +#~ msgstr "Film készítése " + +#~ msgid "Summary of camera status" +#~ msgstr "A kamera állapotának összegzése" + +#~ msgid "Camera driver manual" +#~ msgstr "A kamera-meghajtó kézikönyve" + +#~ msgid "About the camera driver" +#~ msgstr "A kamera-meghajtóról" + +#~ msgid "Jan" +#~ msgstr "Jan" + +#~ msgid "January" +#~ msgstr "Január" + +#~ msgid "Feb" +#~ msgstr "Feb" + +#~ msgid "February" +#~ msgstr "Február" + +#~ msgid "Mar" +#~ msgstr "Márc" + +#~ msgid "March" +#~ msgstr "Március" + +#~ msgid "Apr" +#~ msgstr "Ápr" + +#~ msgid "April" +#~ msgstr "Április" + +#~ msgid "May" +#~ msgstr "Május" + +#~ msgid "Jun" +#~ msgstr "Jún" + +#~ msgid "June" +#~ msgstr "Június" + +#~ msgid "Jul" +#~ msgstr "Júl" + +#~ msgid "July" +#~ msgstr "Július" + +#~ msgid "Aug" +#~ msgstr "Aug" + +#~ msgid "August" +#~ msgstr "Augusztus" + +#~ msgid "Sep" +#~ msgstr "Szep" + +#~ msgid "September" +#~ msgstr "Szeptember" + +#~ msgid "Oct" +#~ msgstr "Okt" + +#~ msgid "October" +#~ msgstr "Október" + +#~ msgid "Nov" +#~ msgstr "Nov" + +#~ msgid "November" +#~ msgstr "November" + +#~ msgid "Dec" +#~ msgstr "Dec" + +#~ msgid "December" +#~ msgstr "December" + +#~ msgid "Sun" +#~ msgstr "Vas" + +#~ msgid "Sunday" +#~ msgstr "Vasárnap" + +#~ msgid "Monday" +#~ msgstr "Hétfő" + +#~ msgid "Tue" +#~ msgstr "Kedd" + +#~ msgid "Tuesday" +#~ msgstr "Kedd" + +#~ msgid "Wed" +#~ msgstr "Sze" + +#~ msgid "Wednesday" +#~ msgstr "Szerda" + +#~ msgid "Thu" +#~ msgstr "Csü" + +#~ msgid "Thursday" +#~ msgstr "Csütörtök" + +#~ msgid "Fri" +#~ msgstr "Pén" + +#~ msgid "Friday" +#~ msgstr "Péntek" + +#~ msgid "Sat" +#~ msgstr "Szo" + +#~ msgid "Saturday" +#~ msgstr "Szombat" + +#~ msgid "path" +#~ msgstr "útvonal" + +#~ msgid "speed" +#~ msgstr "sebesség" + +#~ msgid "model" +#~ msgstr "típus" + +#~ msgid "filename" +#~ msgstr "fájlnév" + +#~ msgid "usbid" +#~ msgstr "usb id" + +#~ msgid "folder" +#~ msgstr "könyvtár" + +#~ msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +#~ msgstr "A gPhoto2 OS/2-es verziója igényli a CAMLIBS környezeti változó beállítását. Oda mutasson, ahol a kamera függvénykönyvtárai vannak (például SET CAMLIBS=C:\\GPHOTO2\\CAM)\n" + +#~ msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +#~ msgstr "A gPhoto2 OS/2-es verziója igényli az IOLIBS környezeti változó beállítását. Oda mutasson, ahol az IO függvénykönyvtárak vannak (például SET IOLIBS=C:\\GPHOTO2\\IOLIBS)\n" + +#~ msgid "Usage:\n" +#~ msgstr "Használat:\n" + +#~ msgid "" +#~ "Short/long options (& argument) Description\n" +#~ "--------------------------------------------------------------------------------\n" +#~ msgstr "" +#~ "Rövid/hosszú opciók (és paraméter) Leírás\n" +#~ "--------------------------------------------------------------------------------\n" + +#~ msgid "%-38s %s\n" +#~ msgstr "%-38s %s\n" + +#~ msgid "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +#~ msgstr "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Használj dupla-idézőjelet a paraméterek körül] [A képek számozása 1-től kezdődik]\n" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/id.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/id.po new file mode 100644 index 00000000..6a5a36df --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/id.po @@ -0,0 +1,1618 @@ +# Indonesian translations for gphoto2 package. +# Copyright (C) 2008 Lutz Müller and others +# This file is distributed under the same license as the gphoto2 package. +# Andhika Padmawan , 2010-2014. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.4\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2014-03-23 19:35+0100\n" +"PO-Revision-Date: 2014-06-01 09:59+0700\n" +"Last-Translator: Andhika Padmawan \n" +"Language-Team: Indonesian \n" +"Language: id\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Jumlah berkas di folder '%s': %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Ada %d folder di folder '%s'.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Tidak ada berkas di folder '%s'.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Ada %d berkas di folder '%s'.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Informasi di berkas '%s' (folder '%s'):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Berkas:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Tak ada yang tersedia.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Tipe mime: '%s'\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Ukuran: %lu bita\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Lebar: %i piksel\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Tinggi: %i piksel(s)\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Terunduh: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:712 +#: gphoto2/actions.c:715 gphoto2/actions.c:718 gphoto2/actions.c:721 +#: gphoto2/actions.c:724 gphoto2/actions.c:1737 gphoto2/actions.c:1964 +msgid "yes" +msgstr "ya" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:712 +#: gphoto2/actions.c:715 gphoto2/actions.c:718 gphoto2/actions.c:721 +#: gphoto2/actions.c:724 gphoto2/actions.c:1731 gphoto2/actions.c:1958 +msgid "no" +msgstr "tidak" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Hak akses: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "baca/hapus" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "baca" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "hapus" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "tak ada" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Waktu: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Miniatur:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Data audio:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Tipe mime: '%s'\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Ukuran: %lu bita\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Terunduh: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Tak dapat mengurai data EXIF." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "Tag EXIF:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Tag" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Nilai" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Data EXIF berisi miniatur (%i bita)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 telah dikompilasi tanpa sokongan EXIF." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Jumlah kamera yang disokong: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Kamera disokong:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (PERCOBAAN)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (EKSPERIMENTAL)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Divais ditemukan: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Alamat Keterangan\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Model" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Pangkalan" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Kemampuan untuk kamera : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Sokongan pangkalan serial : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "Sokongan USB : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Kecepatan transfer yang disokong :\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Pilihan tangkap :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Gambar\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Audio\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Pratayang\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Tangkap tidak disokong oleh penggerak\n" + +#: gphoto2/actions.c:711 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Sokongan konfigurasi : %s\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Hapus berkas terpilih pada kamera : %s\n" + +#: gphoto2/actions.c:716 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Hapus semua berkas pada kamera : %s\n" + +#: gphoto2/actions.c:719 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Sokongan pratayang (miniatur) berkas : %s\n" + +#: gphoto2/actions.c:722 +#, c-format +msgid "File upload support : %s\n" +msgstr "Sokongan unggah berkas : %s\n" + +#: gphoto2/actions.c:739 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Pangkalan harus terlihat seperti 'serial:/dev/ttyS0' atau 'usb:', tapi '%s' kekurangan tanda titik dua jadi saya akan menduga apa maksud anda." + +#: gphoto2/actions.c:773 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Pangkalan yang anda tentukan ('%s') tak dapat ditemukan. Silakan tentukan satu dari pangkalan yang ditemukan oleh 'gphoto2 --list-ports' dan pastikan ejaannya benar (misalnya dengan awalan 'serial:' atau 'usb:')." + +#: gphoto2/actions.c:806 +#, c-format +msgid "About the camera driver:" +msgstr "Tentang penggerak kamera:" + +#: gphoto2/actions.c:819 +#, c-format +msgid "Camera summary:" +msgstr "Ringkasan kamera:" + +#: gphoto2/actions.c:832 +#, c-format +msgid "Camera manual:" +msgstr "Manual kamera:" + +#: gphoto2/actions.c:849 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Anda hanya dapat menentukan kecepatan untuk pangkalan serial." + +#: gphoto2/actions.c:899 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Pangkalan OS/2 oleh Bart van Leeuwen\n" + +#: gphoto2/actions.c:903 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Hak cipta (c) 2000-%d Lutz Mueller dan lainnya\n" +"%s\n" +"gphoto2 hadir TANPA GARANSI, sampai batas yang diizinkan oleh hukum. Anda dapat\n" +"mendistribusikan ulang salinan gphoto2 di bawah perjanjian Lisensi Publik Umum\n" +"GNU. Untuk informasi lebih lanjut tentang masalah ini, lihat berkas yang bernama COPYING.\n" +"\n" +"Versi gphoto2 ini menggunakan versi perangkat lunak dan opsi berikut:\n" + +#: gphoto2/actions.c:1003 +msgid "Could not open 'movie.mjpg'." +msgstr "Tak dapat membuka 'movie.mjpg'." + +#: gphoto2/actions.c:1010 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Menangkap bingkai pratilik ketika film ke '%s'. Tekan Ctrl-C untuk membatalkan.\n" + +#: gphoto2/actions.c:1014 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Menangkap bingkai pratilik ketika film ke '%s' selama %d detik.\n" + +#: gphoto2/actions.c:1019 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Menangkap bingkai pratilik %d ketika film k '%s'.\n" + +#: gphoto2/actions.c:1029 +msgid "Movie capture error... Exiting." +msgstr "Galat menangkap film... Keluar." + +#: gphoto2/actions.c:1034 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Galat menangkap film... Tipe MIME tak dapat ditangani '%s'." + +#: gphoto2/actions.c:1041 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl-C ditekan ... Keluar.\n" + +#: gphoto2/actions.c:1055 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Menangkap film selesai (%d bingkai)\n" + +#: gphoto2/actions.c:1085 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Menunggu peristiwa dari kamera. Tekan Ctrl-C untuk membatalkan.\n" + +#: gphoto2/actions.c:1091 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Menunggu %d bingkai dari kamera. Tekan Ctrl-C untuk membatalkan.\n" + +#: gphoto2/actions.c:1096 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Menunggu %d milidetik untuk peristiwa dari kamera. Tekan Ctrl-C untuk membatalkan.\n" + +#: gphoto2/actions.c:1101 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Menunggu %d detik untuk peristiwa dari kamera. Tekan Ctrl-C untuk membatalkan.\n" + +#: gphoto2/actions.c:1105 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Menunggu %d peristiwa dari kamera. Tekan Ctrl-C untuk membatalkan.\n" + +#: gphoto2/actions.c:1169 gphoto2/main.c:800 +msgid "Could not set folder." +msgstr "Tak dapat mengatur folder." + +#: gphoto2/actions.c:1175 gphoto2/main.c:807 +msgid "Could not get image." +msgstr "Tak dapat mengambil gambar." + +#: gphoto2/actions.c:1182 gphoto2/main.c:814 +msgid "Buggy libcanon.so?" +msgstr "libcanon.so bermasalah?" + +#: gphoto2/actions.c:1192 gphoto2/main.c:826 +msgid "Could not delete image." +msgstr "Tak dapat menghapus gambar." + +#: gphoto2/actions.c:1216 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Mendapatkan informasi penyimpanan tak disokong untuk kamera ini.\n" + +#: gphoto2/actions.c:1231 +#, c-format +msgid "Read-Write" +msgstr "Baca-Tulis" + +#: gphoto2/actions.c:1234 +#, c-format +msgid "Read-Only" +msgstr "Hanya-Baca" + +#: gphoto2/actions.c:1237 +#, c-format +msgid "Read-only with delete" +msgstr "Hanya-baca dengan hapus" + +#: gphoto2/actions.c:1240 gphoto2/actions.c:1250 +#, c-format +msgid "Unknown" +msgstr "Tak diketahui" + +#: gphoto2/actions.c:1253 +#, c-format +msgid "Fixed ROM" +msgstr "ROM Tetap" + +#: gphoto2/actions.c:1256 +#, c-format +msgid "Removable ROM" +msgstr "ROM Dapat Dilepas" + +#: gphoto2/actions.c:1259 +#, c-format +msgid "Fixed RAM" +msgstr "RAM Tetap" + +#: gphoto2/actions.c:1262 +#, c-format +msgid "Removable RAM" +msgstr "RAM Dapat Dilepas" + +#: gphoto2/actions.c:1272 +#, c-format +msgid "Undefined" +msgstr "Tak Didefinisikan" + +#: gphoto2/actions.c:1275 +#, c-format +msgid "Generic Flat" +msgstr "Rata Generik" + +#: gphoto2/actions.c:1278 +#, c-format +msgid "Generic Hierarchical" +msgstr "Hirarki Generik" + +#: gphoto2/actions.c:1281 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Tata letak kamera (DCIM)" + +#: gphoto2/actions.c:1319 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Menimpa id vendor/produk USB 0x%x/0x%x dengan 0x%x/0x%x" + +#: gphoto2/actions.c:1377 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "SELALU SERTAKAN BARIS BERIKUT KETIKA MENGIRIM PESAN AWAKUTU KE MILIS:" + +#: gphoto2/actions.c:1392 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s telah dikompilasi dengan opsi berikut:" + +#: gphoto2/actions.c:1523 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s tak ditemukan di pohon konfigurasi." + +#: gphoto2/actions.c:1572 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Gagal menerima nilai widget teks %s." + +#: gphoto2/actions.c:1589 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Gagal menerima nilai widget rentang %s." + +#: gphoto2/actions.c:1601 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Gagal menerima nilai widget ubah %s." + +#: gphoto2/actions.c:1613 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Gagal menerima nilai widget tanggal/waktu %s." + +#: gphoto2/actions.c:1643 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Gagal menerima nilai dari widget radio %s." + +#: gphoto2/actions.c:1687 +#, c-format +msgid "Property %s is read only." +msgstr "Properti %s hanya baca." + +#: gphoto2/actions.c:1701 gphoto2/actions.c:1928 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Gagal mengatur nilai widget teks %s ke %s." + +#: gphoto2/actions.c:1711 gphoto2/actions.c:1938 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Nilai %s yang dilewatkan bukan nilai titik mengambang." + +#: gphoto2/actions.c:1716 gphoto2/actions.c:1943 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Nilai %f yang dilewatkan tidak dalam rentang %f - %f yang diharapkan." + +#: gphoto2/actions.c:1722 gphoto2/actions.c:1949 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Gagal mengatur nilai rentang widget %s ke %f." + +#: gphoto2/actions.c:1731 gphoto2/actions.c:1958 +msgid "off" +msgstr "mati" + +#: gphoto2/actions.c:1732 gphoto2/actions.c:1959 +msgid "false" +msgstr "salah" + +#: gphoto2/actions.c:1737 gphoto2/actions.c:1964 +msgid "on" +msgstr "hidup" + +#: gphoto2/actions.c:1738 gphoto2/actions.c:1965 +msgid "true" +msgstr "benar" + +#: gphoto2/actions.c:1743 gphoto2/actions.c:1970 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Nilai %s yang dilewatkan bukan nilai ubah yang sah." + +#: gphoto2/actions.c:1749 gphoto2/actions.c:1976 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Gagal mengatur nilai %s dari widget ubah %s." + +#: gphoto2/actions.c:1756 +msgid "now" +msgstr "sekarang" + +#: gphoto2/actions.c:1764 gphoto2/actions.c:1989 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Nilai %s yang dilewatkan bukan waktu atau integer yang sah." + +#: gphoto2/actions.c:1771 gphoto2/actions.c:1996 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Gagal mengatur waktu baru dari widget tanggal/waktu %s ke %s." + +#: gphoto2/actions.c:1818 gphoto2/actions.c:1882 gphoto2/actions.c:2026 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Pilihan %s tak ditemukan di dalam senarai pilihan." + +#: gphoto2/actions.c:1826 gphoto2/actions.c:2034 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Widget %s tak dapat dikonfigurasi." + +#: gphoto2/actions.c:1833 gphoto2/actions.c:1901 gphoto2/actions.c:2041 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Gagal mengatur nilai konfigurasi baru %s untuk entri konfigurasi %s." + +#: gphoto2/actions.c:1894 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "Widget %s tidak memiliki senarai pilihan yang terindeks. Menggunakan --set-config-value." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Jumlah berkas salah. Anda menentukan %i, tapi hanya ada %i berkas yang tersedia di '%s' atau subfoldernya. Silakan ambil jumlah berkas yang sah dari pengurutan berkas terlebih dahulu." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Tidak ada berkas di folder '%s'." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Jumlah berkas salah. Anda menentukan %i, tapi hanya ada 1 berkas yang tersedia di '%s'." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Jumlah berkas salah. Anda menentukan %i, tapi hanya ada %i berkas yang tersedia di '%s'. Silakan ambil jumlah berkas yang sah dari pengurutan berkas terlebih dahulu." + +#: gphoto2/gp-params.c:62 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Galat *** \n" + +#: gphoto2/gp-params.c:237 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Silakan tekan tombol apapun untuk melanjutkan.\n" + +#: gphoto2/gp-params.c:259 +#, c-format +msgid "Not enough memory." +msgstr "Tak cukup memori." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Operasi dibatalkan" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "Lanjutkan" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "Batal" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "Galat" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "Tak dapat mengatur konfigurasi:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "Keluar" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "Mundur" + +#: gphoto2/gphoto2-cmd-config.c:254 +msgid "Time: " +msgstr "Waktu:" + +#: gphoto2/gphoto2-cmd-config.c:313 gphoto2/gphoto2-cmd-config.c:341 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "Nilai:" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "Ya" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "Tidak" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Jumlah pengisian nol di nama berkas hanya dimungkinkan dengan %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Anda tak dapat menggunakan %%n pengisian nol tanpa nilai yang presisi!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Nama berkas yang disediakan oleh kamera ('%s') tidak berisi awalan!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Format '%s' tidak sah (galat pada posisi %i)." + +#: gphoto2/main.c:382 gphoto2/main.c:561 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Lewati berkas yang ada %s\n" + +#: gphoto2/main.c:394 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Berkas %s ada. Timpa? [y|t]" + +#: gphoto2/main.c:406 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Tentukan nama berkas baru? [y|t]" + +#: gphoto2/main.c:418 +#, c-format +msgid "Enter new filename: " +msgstr "Masukkan nama berkas baru:" + +#: gphoto2/main.c:424 +#, c-format +msgid "Saving file as %s\n" +msgstr "Menyimpan berkas sebagai %s\n" + +#: gphoto2/main.c:599 +msgid "Permission denied" +msgstr "Hak akses ditolak" + +#: gphoto2/main.c:761 +msgid "Could not trigger capture." +msgstr "Tak dapat memicu perekaman." + +#: gphoto2/main.c:791 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Berkas baru berada di lokasi %s%s%s di dalam kamera\n" + +#: gphoto2/main.c:821 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Menghapus berkas %s%s%s di camera\n" + +#: gphoto2/main.c:831 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Menyimpan berkas %s%s%s di camera\n" + +#: gphoto2/main.c:864 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Peristiwa FOLDER_DITAMBAHKAN %s/%s ketika menunggu, abaikan.\n" + +#: gphoto2/main.c:874 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Peristiwa TAK DIKETAHUI %s ketika menunggu, abaikan.\n" + +#: gphoto2/main.c:880 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Tipe peristiwa tak diketahui %d ketika menunggu pijar, abaikan.\n" + +#: gphoto2/main.c:898 +msgid "Could not get capabilities?" +msgstr "Tak dapat mendapatkan kapabilitas?" + +#: gphoto2/main.c:906 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Mode jeda waktu diaktifkan (interval: %ds).\n" + +#: gphoto2/main.c:909 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Berdiri sambil menunggu SIGUSR1 untuk menangkap.\n" + +#: gphoto2/main.c:915 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Mode pijar diaktifkan (waktu pajanan: %dd).\n" + +#: gphoto2/main.c:928 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Menangkap bingkai #%d...\n" + +#: gphoto2/main.c:930 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Menangkap bingkai #%d/%d...\n" + +#: gphoto2/main.c:940 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Tak dapat mengatur penangkapan pijar, menghasilkan %d." + +#: gphoto2/main.c:954 +msgid "Could not end capture (bulb mode)." +msgstr "Tak dapat mengakhiri penangkapan (mode pijar)." + +#: gphoto2/main.c:965 +msgid "Could not trigger image capture." +msgstr "Tak dapat memicu penangkapan gambar." + +#: gphoto2/main.c:971 +msgid "Could not capture image." +msgstr "Tak dapat menangkap gambar." + +#: gphoto2/main.c:978 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Gagal menangkap (masalah fokus otomatis?)...\n" + +#: gphoto2/main.c:989 +msgid "Could not capture." +msgstr "Tak dapat menangkap." + +#: gphoto2/main.c:1021 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Menunggu slot penangkapan berikutnya %ld detik...\n" + +#: gphoto2/main.c:1030 gphoto2/main.c:1071 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Dibangunkan oleh SIGUSR1...\n" + +#: gphoto2/main.c:1043 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "tak tidur (%ld detik dibelakang jadwal)\n" + +#: gphoto2/main.c:1180 +#, c-format +msgid "ERROR: " +msgstr "GALAT:" + +#: gphoto2/main.c:1203 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Membatalkan...\n" + +#: gphoto2/main.c:1209 +#, c-format +msgid "Aborted.\n" +msgstr "Dibatalkan.\n" + +#: gphoto2/main.c:1214 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Membatalkan...\n" + +#: gphoto2/main.c:1363 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Gunakan sintaksis berikut a:b=c:d untuk memperlakukan divais USB apapun yang terdeteksi sebagai a:b sebagai c:d. a b c d harus merupakan nomor heksadesimal yang dimulai dengan '0x'.\n" + +#: gphoto2/main.c:1536 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 telah dikompilasi tanpa sokongan CDK." + +#: gphoto2/main.c:1800 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Operasi dibatalkan.\n" + +#: gphoto2/main.c:1804 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Galat: Tak ada kamera yang ditemukan. ***\n" +"\n" + +#: gphoto2/main.c:1806 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Galat (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1811 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Untuk pesan awakutu, silakan pakai opsi --debug.\n" +"Pesan awakutu dapat membantu anda mencari solusi untuk masalah anda.\n" +"Jika anda ingin mengirim pesan awakutu atau galat apapun ke milis\n" +"pengembang gphoto , silakan jalankan\n" +"gphoto2 sebagai berikut:\n" +"\n" + +#: gphoto2/main.c:1832 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Tolong pastikan telah cukup ada kutipan di sekitar argumen.\n" +"\n" + +#: gphoto2/main.c:1899 +msgid "Print complete help message on program usage" +msgstr "Cetak pesan bantuan lengkap tentang penggunaan program" + +#: gphoto2/main.c:1901 +msgid "Print short message on program usage" +msgstr "Cetak pesan pendek tentang penggunaan program" + +#: gphoto2/main.c:1903 +msgid "Turn on debugging" +msgstr "Aktifkan awakutu" + +#: gphoto2/main.c:1905 +msgid "Name of file to write debug info to" +msgstr "Nama berkas untuk penulisan info awakutu" + +#: gphoto2/main.c:1905 gphoto2/main.c:1910 gphoto2/main.c:1916 +#: gphoto2/main.c:2040 +msgid "FILENAME" +msgstr "NAMABERKAS" + +#: gphoto2/main.c:1907 +msgid "Quiet output (default=verbose)" +msgstr "Keluaran senyap (standar=verbose)" + +#: gphoto2/main.c:1909 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Skrip kait untuk dipanggil setelah unduh, tangkap, dll." + +#: gphoto2/main.c:1916 +msgid "Specify device port" +msgstr "Tentukan pangkalan divais" + +#: gphoto2/main.c:1918 +msgid "Specify serial transfer speed" +msgstr "Tentukan kecepatan transfer serial" + +#: gphoto2/main.c:1918 +msgid "SPEED" +msgstr "KECEPATAN" + +#: gphoto2/main.c:1920 +msgid "Specify camera model" +msgstr "Tentukan model kamera" + +#: gphoto2/main.c:1920 +msgid "MODEL" +msgstr "MODEL" + +#: gphoto2/main.c:1922 +msgid "(expert only) Override USB IDs" +msgstr "(hanya ahli) Timpa ID USB" + +#: gphoto2/main.c:1922 +msgid "USBIDs" +msgstr "IDUSB" + +#: gphoto2/main.c:1928 +msgid "Display version and exit" +msgstr "Tampilkan versi lalu keluar" + +#: gphoto2/main.c:1930 +msgid "List supported camera models" +msgstr "Tampilkan model kamera yang didukung" + +#: gphoto2/main.c:1932 +msgid "List supported port devices" +msgstr "Tampilkan divais pangkalan yang didukung" + +#: gphoto2/main.c:1934 +msgid "Display camera/driver abilities" +msgstr "Tampilkan kemampuan kamera/penggerak" + +#: gphoto2/main.c:1941 +msgid "Configure" +msgstr "Konfigurasi" + +#: gphoto2/main.c:1944 +msgid "List configuration tree" +msgstr "Tampilkan pohon konfigurasi" + +#: gphoto2/main.c:1946 +msgid "Dump full configuration tree" +msgstr "Buang seluruh pohon konfigurasi" + +#: gphoto2/main.c:1948 +msgid "Get configuration value" +msgstr "Ambil nilai konfigurasi" + +#: gphoto2/main.c:1950 +msgid "Set configuration value or index in choices" +msgstr "Atur nilai konfigurasi atau indeks di pilihan" + +#: gphoto2/main.c:1952 +msgid "Set configuration value index in choices" +msgstr "Atur indeks nilai konfigurasi di pilihan" + +#: gphoto2/main.c:1954 +msgid "Set configuration value" +msgstr "Atur nilai konfigurasi" + +#: gphoto2/main.c:1956 +msgid "Reset device port" +msgstr "Atur ulang pangkalan divais" + +#: gphoto2/main.c:1962 +msgid "Keep images on camera after capturing" +msgstr "Simpan gambar di kamera setelah merekam" + +#: gphoto2/main.c:1964 +msgid "Remove images from camera after capturing" +msgstr "Hapus gambar dari kamera setelah merekam" + +#: gphoto2/main.c:1966 +msgid "Wait for event(s) from camera" +msgstr "Tunggu peristiwa dari kamera" + +#: gphoto2/main.c:1966 gphoto2/main.c:1968 gphoto2/main.c:1975 +#: gphoto2/main.c:1991 +msgid "COUNT" +msgstr "HITUNG" + +#: gphoto2/main.c:1968 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Tunggu peristiwa dari kamera dan unduh gambar baru" + +#: gphoto2/main.c:1971 +msgid "Capture a quick preview" +msgstr "Tangkap pratayang cepat" + +#: gphoto2/main.c:1973 +msgid "Set bulb exposure time in seconds" +msgstr "Atur waktu pajanan pijar dalam detik" + +#: gphoto2/main.c:1973 gphoto2/main.c:1977 +msgid "SECONDS" +msgstr "DETIK" + +#: gphoto2/main.c:1975 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Atur jumlah bingkai yang ingin ditangkap (standar=tak terbatas)" + +#: gphoto2/main.c:1977 +msgid "Set capture interval in seconds" +msgstr "Atur interval tangkap dalam detik" + +#: gphoto2/main.c:1979 +msgid "Reset capture interval on signal (default=no)" +msgstr "Atur ulang interval tangkap pada sinyal (standar=tidak)" + +#: gphoto2/main.c:1981 +msgid "Capture an image" +msgstr "Tangkap gambar" + +#: gphoto2/main.c:1983 +msgid "Trigger capture of an image" +msgstr "Picu rekam sebuah gambar" + +#: gphoto2/main.c:1985 +msgid "Capture an image and download it" +msgstr "Tangkap gambar lalu unduh gambar tersebut" + +#: gphoto2/main.c:1987 +msgid "Capture a movie" +msgstr "Tangkap film" + +#: gphoto2/main.c:1987 +msgid "COUNT or SECONDS" +msgstr "HITUNGAN atau DETIK" + +#: gphoto2/main.c:1989 +msgid "Capture an audio clip" +msgstr "Tangkap klip audio" + +#: gphoto2/main.c:1991 +msgid "Wait for shutter release on the camera and download" +msgstr "Tunggu sampai shutter kamera dilepas lalu unduh" + +#: gphoto2/main.c:1993 +msgid "Trigger image capture" +msgstr "Picu perekaman gambar" + +#: gphoto2/main.c:1999 +msgid "List folders in folder" +msgstr "Tampilkan folder di folder" + +#: gphoto2/main.c:2001 +msgid "List files in folder" +msgstr "Tampilkan berkas di folder" + +#: gphoto2/main.c:2003 +msgid "Create a directory" +msgstr "Buat direktori" + +#: gphoto2/main.c:2003 gphoto2/main.c:2005 +msgid "DIRNAME" +msgstr "NAMADIREKTORI" + +#: gphoto2/main.c:2005 +msgid "Remove a directory" +msgstr "Hapus direktori" + +#: gphoto2/main.c:2007 +msgid "Display number of files" +msgstr "Tampilkan jumlah berkas" + +#: gphoto2/main.c:2009 +msgid "Get files given in range" +msgstr "Ambil berkas yang diberikan dalam jangkauan" + +#: gphoto2/main.c:2009 gphoto2/main.c:2013 gphoto2/main.c:2018 +#: gphoto2/main.c:2025 gphoto2/main.c:2031 gphoto2/main.c:2036 +msgid "RANGE" +msgstr "RENTANG" + +#: gphoto2/main.c:2011 +msgid "Get all files from folder" +msgstr "Ambil semua berkas dari folder" + +#: gphoto2/main.c:2013 +msgid "Get thumbnails given in range" +msgstr "Ambil miniatur yang diberikan dalam jangkauan" + +#: gphoto2/main.c:2016 +msgid "Get all thumbnails from folder" +msgstr "Ambil semua miniatur dari folder" + +#: gphoto2/main.c:2018 +msgid "Get metadata given in range" +msgstr "Ambil miniatur yang diberikan dalam jangkauan" + +#: gphoto2/main.c:2020 +msgid "Get all metadata from folder" +msgstr "Ambil semua metadata dari folder" + +#: gphoto2/main.c:2022 +msgid "Upload metadata for file" +msgstr "Unggah metadata untuk berkas" + +#: gphoto2/main.c:2025 +msgid "Get raw data given in range" +msgstr "Ambil data mentah yang diberikan dalam jangkauan" + +#: gphoto2/main.c:2028 +msgid "Get all raw data from folder" +msgstr "Ambil semua data mentah dari folder" + +#: gphoto2/main.c:2031 +msgid "Get audio data given in range" +msgstr "Ambil data audio yang diberikan dalam jangkauan" + +#: gphoto2/main.c:2034 +msgid "Get all audio data from folder" +msgstr "Ambil semua data audio dari folder" + +#: gphoto2/main.c:2036 +msgid "Delete files given in range" +msgstr "Hapus berkas yang diberikan dalam jangkauan" + +#: gphoto2/main.c:2038 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Hapus semua berkas dalam folder (standarnya --no-recurse)" + +#: gphoto2/main.c:2040 +msgid "Upload a file to camera" +msgstr "Unggah berkas ke kamera" + +#: gphoto2/main.c:2042 +msgid "Specify a filename or filename pattern" +msgstr "Tentukan nama berkas atau pola nama berkas" + +#: gphoto2/main.c:2042 +msgid "FILENAME_PATTERN" +msgstr "POLA_NAMA_BERKAS" + +#: gphoto2/main.c:2044 +msgid "Specify camera folder (default=\"/\")" +msgstr "Tentukan folder kamera (standar=\"/\")" + +#: gphoto2/main.c:2044 +msgid "FOLDER" +msgstr "FOLDER" + +#: gphoto2/main.c:2046 +msgid "Recursion (default for download)" +msgstr "Rekursi (standar untuk unduh)" + +#: gphoto2/main.c:2048 +msgid "No recursion (default for deletion)" +msgstr "Tanpa rekursi (standar untuk penghapusan)" + +#: gphoto2/main.c:2050 +msgid "Process new files only" +msgstr "Proses hanya berkas baru" + +#: gphoto2/main.c:2052 +msgid "Overwrite files without asking" +msgstr "Timpa berkas tanpa bertanya" + +#: gphoto2/main.c:2054 +msgid "Skip existing files" +msgstr "Lewati berkas yang ada" + +#: gphoto2/main.c:2060 +msgid "Send file to stdout" +msgstr "Kirik berkas ke stdout" + +#: gphoto2/main.c:2062 +msgid "Print filesize before data" +msgstr "Cetak ukuran berkas sebelum data" + +#: gphoto2/main.c:2064 +msgid "List auto-detected cameras" +msgstr "Tampilkan kamera otomatis terdeteksi" + +#: gphoto2/main.c:2068 gphoto2/shell.c:138 +msgid "Show EXIF information" +msgstr "Tampilkan informasi EXIF" + +#: gphoto2/main.c:2071 gphoto2/shell.c:132 +msgid "Show info" +msgstr "Tampilkan info" + +#: gphoto2/main.c:2073 +msgid "Show summary" +msgstr "Tampilkan ringkasan" + +#: gphoto2/main.c:2075 +msgid "Show camera driver manual" +msgstr "Tampilkan manual penggerak kamera" + +#: gphoto2/main.c:2077 +msgid "About the camera driver manual" +msgstr "Tentang manual penggerak kamera" + +#: gphoto2/main.c:2079 +msgid "Show storage information" +msgstr "Tampilkan informasi penyimpanan" + +#: gphoto2/main.c:2081 +msgid "gPhoto shell" +msgstr "cangkang gPhoto" + +#: gphoto2/main.c:2087 +msgid "Common options" +msgstr "Opsi umum" + +#: gphoto2/main.c:2089 +msgid "Miscellaneous options (unsorted)" +msgstr "Opsi lainnya (tak diurutkan)" + +#: gphoto2/main.c:2091 +msgid "Get information on software and host system (not from the camera)" +msgstr "Ambil informasi tentang perangkat lunak dan sistem host (bukan dari kamera)" + +#: gphoto2/main.c:2093 +msgid "Specify the camera to use" +msgstr "Tentukan kamera yang digunakan" + +#: gphoto2/main.c:2095 +msgid "Camera and software configuration" +msgstr "Konfigurasi kamera dan perangkat lunak" + +#: gphoto2/main.c:2097 +msgid "Capture an image from or on the camera" +msgstr "Tangkap gambar dari atau di kamera" + +#: gphoto2/main.c:2099 +msgid "Downloading, uploading and manipulating files" +msgstr "Mengunduh, mengunggah dan memanipulasi berkas" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"ID gambar harus nomor yang lebih besar dari nol." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"ID gambar %i terlalu tinggi." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Rentang harus dipisahkan oleh ','." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Rentang perlu dijalankan dengan nomor." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Karakter tak diharapkan '%c'." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Menurunkan jangkauan tidak diizinkan. Anda perlu menentukan jangkauan dari %i ke %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Galat (%i: '%s') ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Ubah ke direktori di kamera" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "direktori" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Ubah ke direktori di penggerak lokal" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Keluar cangkang gPhoto" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Unduh berkas" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[direktori/]nama berkas" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Unggah berkas" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Unduh miniatur" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Unduh data mentah" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Hapus" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Buat Direktori" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Hapus Direktori" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Tampilkan perintah pengunaan" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[perintah]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Tampilkan isi direktori saat ini" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[direktori/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Senarai variabel konfigurasi" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Ambil variabel konfigurasi" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "nama" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Atur variabel konfigurasi" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "nama=nilai" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Atur indeks variabel konfigurasi" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "nama=indeksnilai" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Tangkap sebuah gambar" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Tangkap sebuah gambar lalu unduh gambar tersebut" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Tangkap sebuah gambar pratilik" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Tunggu peristiwa" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "hitungan atau detik" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Tunggu sampai gambar ditangkap lalu unduh gambar tersebut" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Tangkap sampai peristiwa dan gambar ditangkap lalu unduh gambar tersebut" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Perintah tidak sah." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Perintah '%s' memerlukan argumen." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Alamat tidak sah." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Tak dapat menemukan direktori rumah." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Tak dapat mengubah ke direktori lokal '%s'." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Direktori lokal sekarang '%s'." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Direktori jarak jauh sekarang '%s'." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config memerlukan argumen kedua.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value memerlukan argumen kedua.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index memerlukan argumen kedua.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Perintah '%s' tak ditemukan. Gunakan 'help' untuk mendapatkan senarai perintah yang tersedia." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Bantuan di \"%s\":" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Penggunaan:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Keterangan" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Argumen di kurawal [] adalah opsional" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Perintah yang tersedia:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Untuk mendapatkan bantuan untuk perintah tertentu, ketik 'help nama-perintah'." + +#~ msgid " Name: '%s'\n" +#~ msgstr " Nama: '%s'\n" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "Anda tak dapat menggunakan '%%n' dalam kombinasi dengan berkas tidak tetap!" + +#~ msgid "Could not get filename (bulb mode)." +#~ msgstr "Tak dapat mendapatkan nama berkas (mode pijar)." + +#~ msgid "Could not close camera connection." +#~ msgstr "Tak dapat menutup koneksi kamera." + +#~ msgid "Sleeping for %d second(s)...\n" +#~ msgstr "Tidur selama %d detik...\n" + +#~ msgid "New file %s/%s, downloading...\n" +#~ msgstr "Berkas baru %s/%s, mengunduh...\n" + +#~ msgid "filename" +#~ msgstr "nama berkas" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/is.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/is.po new file mode 100644 index 00000000..d29c24c1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/is.po @@ -0,0 +1,1601 @@ +# translation of gphoto2-2.5.9 to Icelandic +# Copyright (C) 2011 Lutz Müller and others +# This file is distributed under the same license as the gphoto2 package. +# +# Sveinn í Felli , 2011, 2016. +msgid "" +msgstr "" +"Project-Id-Version: gphoto2-2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2016-08-11 18:31+0000\n" +"Last-Translator: Sveinn í Felli \n" +"Language-Team: Icelandic \n" +"Language: is\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Lokalize 1.5\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "" +msgstr[1] "" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "" +msgstr[1] "" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Skrá:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Ekki tiltækt.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime tegund: '%s'\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Stærð: %lu bæti\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Breidd: %i mynddílar\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Hæð: %i mynddílar\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Náð í: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "já" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "nei" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Heimildir: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "lesa/eyða" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "lesa" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "eyða" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "ekkert" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Tími: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Smámynd:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Hljóðgögn:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime tegund: '%s'\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Stærð: %lu bæti\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Sótt: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Gat ekki þáttað EXIF-gögn." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF merki:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Merki" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Gildi" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF-gögnin innihalda smámynd (%i bæti)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 hefur verið vistþýtt án stuðnings við EXIF" + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Fjöldi nothæfra myndavéla: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Studdar myndavélar:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (PRÓFUN)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Tæki fundust: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Slóð Lýsing\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Tegund" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Gátt" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Eiginleikar myndavélar : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Stuðningur við raðtengi : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "Stuðningur við USB : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Stuðningur við flutningshraða :\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr "" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr "" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr "" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr "" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr "" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr "" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "" + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "" + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Yfirlit um myndavél:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Handbók myndavélar:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "" + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Gat ekki opnað 'movie.mjpg'." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "" + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "" + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ýtt á Ctrl-C ... Hætti.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "" + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "" + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "Calli í libcanon.so?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "" + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Lesa-Skrifa" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Skrifvarið" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Óþekkt" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Óskilgreint" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "ALLTAF LÁTA EFTIRFARANDI LÍNUR FYLGJA MEÐ ÞEGAR VILLUSKÝRSLA ER SEND Á PÓSTLISTA:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "" + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "" + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "" + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "" + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "" + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "" + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "" + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "" + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "" + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "" + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "" + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "slökkt" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "ósatt" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "kveikt" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "satt" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "" + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "" + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "núna" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "" + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "" + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "" + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "" + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "" + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "" + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "" + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "" + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "" + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "" + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Villa *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Ýttu á einhvern lykil til að halda áfram.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Ekki nægilegt minni." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Hætt var við aðgerð" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Halda áfram" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Hætta við" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Villa" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Gat ekki framkvæmt stillingar:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Hætta" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Til baka" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Tími: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Gildi: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Já" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Nei" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "" + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "" + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "" + +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "" + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Tilgreina nýtt skráarheiti? [j|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Settu inn nýtt skráarheiti: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Vista skrá sem %s\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Aðgangi hafnað" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Ekki tókst að hleypa af myndatöku." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "" + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "" + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "" + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Gat ekki náð í mynd." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Ekki tókst að ná í mynd." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "VILLA: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "" + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "SKRÁARHEITI" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "" + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "HRAÐI" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "GERÐ" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBIDs" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Stilla" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "SEKÚNDUR" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "TALNING" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "MÖPPUHEITI" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "SVIÐ" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "MAPPA" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Sleppa fyrirliggjandi skrám" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Birta EXIF upplýsingar úr JPEG myndum" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Villa (%i: '%s') ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "mappa" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Eyða" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Búa til möppu" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[skipun]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[mappa/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "heiti" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Ógild skipun." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "" + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Ógild slóð." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "" + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "" + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "" + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "" + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "" + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Hjálp með \"%s\":" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Notkun:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Lýsing:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Skipanir í boði:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "" + +#~ msgid " Name: '%s'\n" +#~ msgstr " Heiti: '%s'\n" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/it.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/it.po new file mode 100644 index 00000000..f2ec52d8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/it.po @@ -0,0 +1,1673 @@ +# Italian messages for gphoto2. +# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# Marco Colombo , 2005-2015. +# +# FIXME: toggle??? +# NdT: "Bulb mode" tradotto come "Modalità posa bulb" seguendo Wikipedia. +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.8\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-07-05 22:44+0200\n" +"PO-Revision-Date: 2015-08-05 12:59+0100\n" +"Last-Translator: Marco Colombo \n" +"Language-Team: Italian \n" +"Language: it\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Numero di file nella cartella \"%s\": %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "C'è %d cartella nella cartella \"%s\".\n" +msgstr[1] "Ci sono %d cartelle nella cartella \"%s\".\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Non ci sono file nella cartella \"%s\".\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "C'è %d file nella cartella \"%s\".\n" +msgstr[1] "Ci sono %d file nella cartella \"%s\".\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Informazioni sul file \"%s\" (cartella \"%s\"):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "File:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Nessuno disponibile.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Tipo Mime: \"%s\"\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Dimensione: %lu byte\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Larghezza: %i pixel\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Altezza: %i pixel\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Scaricati: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:712 +#: gphoto2/actions.c:715 gphoto2/actions.c:718 gphoto2/actions.c:721 +#: gphoto2/actions.c:724 gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "yes" +msgstr "sì" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:712 +#: gphoto2/actions.c:715 gphoto2/actions.c:718 gphoto2/actions.c:721 +#: gphoto2/actions.c:724 gphoto2/actions.c:1785 gphoto2/actions.c:2022 +msgid "no" +msgstr "no" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Permessi: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "leggi/elimina" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "leggi" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "elimina" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "nessuno" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Ora: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Miniatura:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Dati audio:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Tipo MIME: \"%s\"\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Dimensione: %lu byte\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Scaricati: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Impossibile analizzare i dati EXIF." + +# FIXME: tags: invariato? campi? +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "Campi EXIF:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Campo" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Valore" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "I dati EXIF contengono una miniatura (%i byte)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 è stato compilato senza supporto EXIF." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Numero di fotocamere supportate: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Fotocamere supportate:\n" + +# FIXME +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (DI TEST)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (SPERIMENTALE)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Dispositivi trovati: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Percorso Descrizione\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Modello" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Porta" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +# FIXME: abilities: capacità? funzionalità? +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Capacità della fotocamera : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Supporto porta seriale : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "Supporto USB : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Velocità di trasferimento gestite:\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Scelte di cattura :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Immagine\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Audio\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Anteprima\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Cattura non gestita dal driver\n" + +#: gphoto2/actions.c:711 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Supporto per la configurazione : %s\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Elimina file selezionati su fotocamera : %s\n" + +#: gphoto2/actions.c:716 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Elimina tutti i file su fotocamera : %s\n" + +#: gphoto2/actions.c:719 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Supporto per l'anteprima dei file: %s\n" + +#: gphoto2/actions.c:722 +#, c-format +msgid "File upload support : %s\n" +msgstr "Supporto caricamento file : %s\n" + +#: gphoto2/actions.c:739 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Le porte sono qualcosa come \"serial:/dev/ttyS0\" o \"usb:\", ma in \"%s\" manca un \":\". Verrà tentato di indovinare cosa si intende." + +#: gphoto2/actions.c:773 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "" +"La porta specificata (\"%s\") non è stata trovata. Indicare una delle porte\n" +"trovate da \"gphoto2 --list-ports\" e assicurarsi che la sintassi sia corretta\n" +"(cioè usando il prefisso \"serial:\" o \"usb:\")." + +#: gphoto2/actions.c:806 +#, c-format +msgid "About the camera driver:" +msgstr "Informazioni sul driver della fotocamera:" + +#: gphoto2/actions.c:819 +#, c-format +msgid "Camera summary:" +msgstr "Sommario della fotocamera:" + +#: gphoto2/actions.c:832 +#, c-format +msgid "Camera manual:" +msgstr "Manuale della fotocamera:" + +#: gphoto2/actions.c:849 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Le velocità possono essere indicate solo per le porte seriali." + +#: gphoto2/actions.c:899 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Versione per OS/2 di Bart van Leeuwen\n" + +#: gphoto2/actions.c:903 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller e altri\n" +"%s\n" +"gphoto2 è distribuito senza ALCUNA GARANZIA, negli estremi permessi dalla legge.\n" +"È possibile distribuire copie di gphoto2 secondo i termini della GNU General\n" +"Public License. Per ulteriori informazioni, consultare il file COPYING.\n" +"\n" +"Questa versione di gphoto2 utilizza il seguente software:\n" + +#: gphoto2/actions.c:1015 +msgid "Could not open 'movie.mjpg'." +msgstr "Impossibile aprire 'movie.mjpg'." + +#: gphoto2/actions.c:1022 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Cattura di fotogrammi di anteprima come filmato in '%s'. Premere Ctrl-C per interrompere.\n" + +#: gphoto2/actions.c:1026 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Cattura di fotogrammi di anteprima come filmato in '%s' per %d secondi.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Cattura di %d fotogrammi di anteprima come filmato in '%s'.\n" + +#: gphoto2/actions.c:1041 +msgid "Movie capture error... Exiting." +msgstr "Errore nella cattura del filmato... In uscita." + +#: gphoto2/actions.c:1046 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Errore nella cattura del filmato... Tipo MIME '%s' non gestito." + +#: gphoto2/actions.c:1053 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Premuto Ctrl-C... In uscita.\n" + +#: gphoto2/actions.c:1067 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Cattura filmato completata (%d fotogrammi)\n" + +#: gphoto2/actions.c:1097 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "In attesa di un evento dalla fotocamera. Premere Ctrl-C per interrompere.\n" + +#: gphoto2/actions.c:1103 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "In attesa di %d fotogrammi dalla fotocamera. Premere Ctrl-C per interrompere.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "In attesa (%d millisecondi) di un evento dalla fotocamera. Premere Ctrl-C per interrompere.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "In attesa (%d secondi) di un evento dalla fotocamera. Premere Ctrl-C per interrompere.\n" + +#: gphoto2/actions.c:1116 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "In attesa di %d eventi dalla fotocamera. Premere Ctrl-C per interrompere.\n" + +#: gphoto2/actions.c:1120 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "In attesa di %s eventi dalla fotocamera. Premere Ctrl-C per interrompere.\n" + +#: gphoto2/actions.c:1164 gphoto2/actions.c:1178 gphoto2/actions.c:1194 +#: gphoto2/actions.c:1232 gphoto2/actions.c:1240 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "trovato evento, conclusione dell'attesa!\n" + +#: gphoto2/actions.c:1204 gphoto2/main.c:824 +msgid "Could not set folder." +msgstr "Impossibile impostare la cartella." + +#: gphoto2/actions.c:1210 gphoto2/main.c:839 +msgid "Could not get image." +msgstr "Impossibile ottenere l'immagine." + +#: gphoto2/actions.c:1217 gphoto2/main.c:846 +msgid "Buggy libcanon.so?" +msgstr "libcanon.so ha dei bug?" + +#: gphoto2/actions.c:1227 gphoto2/main.c:858 +msgid "Could not delete image." +msgstr "Impossibile eliminare l'immagine." + +#: gphoto2/actions.c:1259 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Lettura delle informazioni sulla memoria non gestita su questa fotocamera.\n" + +#: gphoto2/actions.c:1274 +#, c-format +msgid "Read-Write" +msgstr "Lettura-Scrittura" + +#: gphoto2/actions.c:1277 +#, c-format +msgid "Read-Only" +msgstr "Solo lettura" + +# FIXME +#: gphoto2/actions.c:1280 +#, c-format +msgid "Read-only with delete" +msgstr "Solo lettura con eliminazione" + +#: gphoto2/actions.c:1283 gphoto2/actions.c:1293 +#, c-format +msgid "Unknown" +msgstr "Sconosciuto" + +#: gphoto2/actions.c:1296 +#, c-format +msgid "Fixed ROM" +msgstr "ROM fissa" + +#: gphoto2/actions.c:1299 +#, c-format +msgid "Removable ROM" +msgstr "ROM removibile" + +#: gphoto2/actions.c:1302 +#, c-format +msgid "Fixed RAM" +msgstr "RAM fissa" + +#: gphoto2/actions.c:1305 +#, c-format +msgid "Removable RAM" +msgstr "RAM removibile" + +#: gphoto2/actions.c:1315 +#, c-format +msgid "Undefined" +msgstr "Non definito" + +# FIXME +#: gphoto2/actions.c:1318 +#, c-format +msgid "Generic Flat" +msgstr "Generico piatto" + +# FIXME +#: gphoto2/actions.c:1321 +#, c-format +msgid "Generic Hierarchical" +msgstr "Generico gerarchico" + +# FIXME +#: gphoto2/actions.c:1324 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Disposizione fotocamera (DCIM)" + +#: gphoto2/actions.c:1362 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Id vendor/prodotto USB 0x%x/0x%x cambiato in 0x%x0x%x" + +#: gphoto2/actions.c:1430 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "INCLUDERE SEMPRE LE RIGHE SEGUENTI QUANDO SI SPEDISCONO MESSAGGI DI DEBUG ALLA MAILING LIST:" + +#: gphoto2/actions.c:1445 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s è stato compilato con le seguente opzioni:" + +#: gphoto2/actions.c:1576 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s non trovato nell'albero di configurazione." + +# FIXME +#: gphoto2/actions.c:1625 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Recupero del valore del widget di testo %s non riuscito." + +# FIXME +#: gphoto2/actions.c:1642 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Recupero dei valori del widget di intervallo %s non riuscito." + +#: gphoto2/actions.c:1654 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Recupero dei valori del widget selettore %s non riuscito." + +# FIXME +#: gphoto2/actions.c:1666 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Recupero dei valori del widget di data/ora %s non riuscito." + +# FIXME +#: gphoto2/actions.c:1675 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Usare 'now' per l'impostazione dell'ora corrente.\n" + +# FIXME +#: gphoto2/actions.c:1697 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Recupero dei valori del radio widget %s non riuscito." + +#: gphoto2/actions.c:1741 +#, c-format +msgid "Property %s is read only." +msgstr "La proprietà \"%s\" è di sola lettura." + +# FIXME +#: gphoto2/actions.c:1755 gphoto2/actions.c:1992 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Impostazione del valore del widget di testo %s a %s non riuscita." + +#: gphoto2/actions.c:1765 gphoto2/actions.c:2002 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Il valore %s fornito non è un valore in virgola mobile." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Il valore %f fornito non è nell'intervallo %f - %f." + +# FIXME +#: gphoto2/actions.c:1776 gphoto2/actions.c:2013 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Impostazione del valore del widget di intervallo %s a %f non riuscita." + +# FIXME: femminile? +#: gphoto2/actions.c:1785 gphoto2/actions.c:2022 +msgid "off" +msgstr "spento" + +#: gphoto2/actions.c:1786 gphoto2/actions.c:2023 +msgid "false" +msgstr "falso" + +# FIXME: femminile? +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "on" +msgstr "acceso" + +#: gphoto2/actions.c:1792 gphoto2/actions.c:2029 +msgid "true" +msgstr "vero" + +# FIXME +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Il valore %s fornito non è un valore valido per il selettore." + +#: gphoto2/actions.c:1803 gphoto2/actions.c:2040 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Impostazione dei valori %s del widget selettore %s non riuscita." + +#: gphoto2/actions.c:1815 +msgid "now" +msgstr "adesso" + +#: gphoto2/actions.c:1827 gphoto2/actions.c:2053 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Il valore %s fornito non è né un orario valido né un intero." + +# FIXME +#: gphoto2/actions.c:1835 gphoto2/actions.c:2060 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Impostazione del nuovo orario del widget di data/ora %s a %s non riuscita." + +# FIXME +#: gphoto2/actions.c:1882 gphoto2/actions.c:1946 gphoto2/actions.c:2090 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "La scelta %s non si trova nell'elenco delle scelte possibili." + +# FIXME +#: gphoto2/actions.c:1890 gphoto2/actions.c:2098 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Il widget %s non è configurabile." + +#: gphoto2/actions.c:1897 gphoto2/actions.c:1965 gphoto2/actions.c:2105 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Impostazione del nuovo valore di configurazione %s per la voce %s non riuscita." + +# FIXME +#: gphoto2/actions.c:1958 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "Il widget %s non ha un elenco di scelte. Usare --set-config-value al suo posto." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Numero di file non valido. È stato indicato %i, ma ci sono solo %i file disponibili in \"%s\" o nelle sue sottocartelle. Scegliere un numero di file valido dall'elenco dei file." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Non ci sono file nella cartella \"%s\"." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Numero di file non valido. È stato indicato %i, ma c'è solo 1 file disponibile in \"%s\"." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Numero di file non valido. È stato indicato %i, ma ci sono solo %i file disponibili in \"%s\". Scegliere un numero di file valido dall'elenco dei file." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Errore *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Premere un tasto per continuare.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Memoria insufficiente." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Operazione annullata" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Continua" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Annulla" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Errore" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Impossibile impostare la configurazione:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Esci" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Indietro" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Ora: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Valore: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Sì" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "No" + +# FIXME +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Il riempimento con zeri nei nomi di file è possibile solo con %%n." + +# FIXME +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Non è possibile usare riempimento con zeri %%n senza un valore di precisione." + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Il nome di file fornito dalla fotocamera (\"%s\") non contiene un suffisso." + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Formato \"%s\" non valido (errore alla posizione %i)." + +# NdT: è il nome di un file. +#: gphoto2/main.c:382 gphoto2/main.c:585 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Ignorato il file esistente \"%s\"\n" + +#: gphoto2/main.c:394 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Il file \"%s\" esiste. Sovrascrivere? [y|n] " + +#: gphoto2/main.c:406 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Specificare il nuovo nome del file? [y|n] " + +#: gphoto2/main.c:418 +#, c-format +msgid "Enter new filename: " +msgstr "Inserire il nuovo nome del file: " + +# NdT: è il nome di un file. +#: gphoto2/main.c:424 +#, c-format +msgid "Saving file as %s\n" +msgstr "File salvato come \"%s\"\n" + +#: gphoto2/main.c:623 +msgid "Permission denied" +msgstr "Permesso negato" + +#: gphoto2/main.c:785 +msgid "Could not trigger capture." +msgstr "Impossibile far partire la cattura dell'immagine." + +#: gphoto2/main.c:815 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Il nuovo file è alla posizione %s%s%s sulla fotocamera\n" + +#: gphoto2/main.c:832 gphoto2/main.c:863 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "File %s%s%s lasciato sulla fotocamera\n" + +#: gphoto2/main.c:853 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Eliminazione del file %s%s%s sulla fotocamera\n" + +#: gphoto2/main.c:896 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Evento FOLDER_ADDED %s/%s durante l'attesa, ignorato.\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Evento UNKNOWN %s durante l'attesa, ignorato.\n" + +#: gphoto2/main.c:912 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Event sconosciuto tipo %d durante l'attesa di posa bulb, ignorato.\n" + +# FIXME +#: gphoto2/main.c:930 +msgid "Could not get capabilities?" +msgstr "Impossibile ottenere le capacità." + +# FIXME +#: gphoto2/main.c:938 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Modalità intervallo abilitata (intervallo: %ds).\n" + +#: gphoto2/main.c:941 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "In attesa di SIGUSR1 per catturare.\n" + +#: gphoto2/main.c:947 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Modalità posa bulb abilitata (intervallo: %ds).\n" + +#: gphoto2/main.c:960 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Cattura fotogramma #%d...\n" + +#: gphoto2/main.c:962 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Cattura fotogramma #%d/%d...\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Impossibile impostare la cattura in posa bulb, risultato %d." + +#: gphoto2/main.c:986 +msgid "Could not end capture (bulb mode)." +msgstr "Impossibile terminare la cattur (modalità posa bulb)." + +#: gphoto2/main.c:999 +msgid "Could not trigger image capture." +msgstr "Impossibile far partire la cattura dell'immagine." + +#: gphoto2/main.c:1006 +msgid "Could not capture image." +msgstr "Impossibile catturare l'immagine." + +#: gphoto2/main.c:1013 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Cattura non riuscita (problema di messa a fuoco automatica?)...\n" + +#: gphoto2/main.c:1024 +msgid "Could not capture." +msgstr "Impossibile catturare." + +#: gphoto2/main.c:1056 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Attesa del prossimo periodo di cattura %ld secondi...\n" + +#: gphoto2/main.c:1065 gphoto2/main.c:1106 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Svegliato da SIGUSR1...\n" + +# FIXME +#: gphoto2/main.c:1078 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "non in pausa (%ld secondi di ritardo)\n" + +#: gphoto2/main.c:1221 +#, c-format +msgid "ERROR: " +msgstr "ERRORE: " + +#: gphoto2/main.c:1244 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Interruzione...\n" + +#: gphoto2/main.c:1250 +#, c-format +msgid "Aborted.\n" +msgstr "Interrotto.\n" + +#: gphoto2/main.c:1255 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Annullamento...\n" + +#: gphoto2/main.c:1406 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Usare la sintassi \"a:b=c:d\" per trattare come \"c:d\" ogni dispositivo USB rilevato come \"a:b\". a b c d sono numeri esadecimali che iniziano con \"0x\".\n" + +#: gphoto2/main.c:1586 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 è stato compilato senza supporto per CDK." + +#: gphoto2/main.c:1850 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Operazione annullata.\n" + +#: gphoto2/main.c:1854 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Errore: Nessuna fotocamera trovata. ***\n" +"\n" + +#: gphoto2/main.c:1856 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Errore (%i: \"%s\") *** \n" +"\n" + +#: gphoto2/main.c:1861 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Per ottenere messaggi di debug, usare l'opzione --debug.\n" +"I messaggi di debug possono aiutare a risolvere i problemi incontrati.\n" +"Se si ha intenzione di inviare errori o messaggi alla mailing list degli\n" +"sviluppatori di gphoto , eseguire\n" +"gphoto2 come segue:\n" +"\n" + +#: gphoto2/main.c:1882 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Assicurarsi che gli argomenti siano sufficientemente quotati.\n" +"\n" + +#: gphoto2/main.c:1949 +msgid "Print complete help message on program usage" +msgstr "Stampa un messaggio d'aiuto completo" + +#: gphoto2/main.c:1951 +msgid "Print short message on program usage" +msgstr "Stampa informazioni sull'uso" + +#: gphoto2/main.c:1953 +msgid "Turn on debugging" +msgstr "Attiva i messaggi di debug" + +#: gphoto2/main.c:1955 +msgid "Set debug level [error|debug|data|all]" +msgstr "Imposta il livello di debug [error|debug|data|all]" + +#: gphoto2/main.c:1957 +msgid "Name of file to write debug info to" +msgstr "Nome del file in cui scrivere le informazioni di debug" + +#: gphoto2/main.c:1957 gphoto2/main.c:1962 gphoto2/main.c:1968 +#: gphoto2/main.c:2097 +msgid "FILENAME" +msgstr "NOMEFILE" + +#: gphoto2/main.c:1959 +msgid "Quiet output (default=verbose)" +msgstr "Output silenzioso (predefinito: prolisso)" + +#: gphoto2/main.c:1961 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Collega script da eseguire dopo scaricamenti, catture, ecc." + +#: gphoto2/main.c:1968 +msgid "Specify device port" +msgstr "Specifica la porta del dispositivo" + +#: gphoto2/main.c:1970 +msgid "Specify serial transfer speed" +msgstr "Specifica la velocità di trasferimento seriale" + +#: gphoto2/main.c:1970 +msgid "SPEED" +msgstr "VELOCITÀ" + +#: gphoto2/main.c:1972 +msgid "Specify camera model" +msgstr "Specifica il modello di fotocamera" + +#: gphoto2/main.c:1972 +msgid "MODEL" +msgstr "MODELLO" + +# In questo ordine stanno meglio +#: gphoto2/main.c:1974 +msgid "(expert only) Override USB IDs" +msgstr "Cambia gli ID USB (solo esperti)" + +#: gphoto2/main.c:1974 +msgid "USBIDs" +msgstr "USBID" + +#: gphoto2/main.c:1980 +msgid "Display version and exit" +msgstr "Stampa le informazioni sulla versione ed esce" + +#: gphoto2/main.c:1982 +msgid "List supported camera models" +msgstr "Elenca i modelli di fotocamera supportati" + +#: gphoto2/main.c:1984 +msgid "List supported port devices" +msgstr "Elenca i dispositivi di porta supportati" + +#: gphoto2/main.c:1986 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Mostra le capacità della fotocamera o del driver nel database di libgphoto2" + +#: gphoto2/main.c:1993 +msgid "Configure" +msgstr "Configura" + +#: gphoto2/main.c:1996 +msgid "List configuration tree" +msgstr "Elenca l'albero di configurazione" + +#: gphoto2/main.c:1998 +msgid "Dump full configuration tree" +msgstr "Stampa l'intero albero di configurazione" + +#: gphoto2/main.c:2000 +msgid "Get configuration value" +msgstr "Ottiene valore di configurazione" + +# FIXME +#: gphoto2/main.c:2002 +msgid "Set configuration value or index in choices" +msgstr "Imposta un valore di configurazione o un indice nelle scelte" + +# FIXME +#: gphoto2/main.c:2004 +msgid "Set configuration value index in choices" +msgstr "Imposta indice di valore di configurazione nelle scelte" + +#: gphoto2/main.c:2006 +msgid "Set configuration value" +msgstr "Imposta valore di configurazione" + +#: gphoto2/main.c:2008 +msgid "Reset device port" +msgstr "Reimposta la porta del dispositivo" + +#: gphoto2/main.c:2014 +msgid "Keep images on camera after capturing" +msgstr "Lascia le immagini sulla fotocamera dopo la cattura" + +#: gphoto2/main.c:2016 +msgid "Keep RAW images on camera after capturing" +msgstr "Lascia le immagini RAW sulla fotocamera dopo la cattura" + +#: gphoto2/main.c:2018 +msgid "Remove images from camera after capturing" +msgstr "Rimuovi le immagini dalla fotocamera dopo la cattura" + +#: gphoto2/main.c:2020 +msgid "Wait for event(s) from camera" +msgstr "Attende uno o più eventi della fotocamera" + +# FIXME: MATCHSTRING? +#: gphoto2/main.c:2020 gphoto2/main.c:2022 gphoto2/main.c:2048 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "NUMERO, SECONDI, MILLISECONDI o STRINGA" + +#: gphoto2/main.c:2022 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Attendi eventi dalla fotocamera e scarica nuove immagini" + +#: gphoto2/main.c:2025 +msgid "Capture a quick preview" +msgstr "Cattura un'anteprima veloce" + +#: gphoto2/main.c:2028 +msgid "Show a quick preview as Ascii Art" +msgstr "Mostra un'anteprima come Ascii Art" + +#: gphoto2/main.c:2030 +msgid "Set bulb exposure time in seconds" +msgstr "Imposta l'intervallo di esposizione in posa bulb in secondi" + +#: gphoto2/main.c:2030 gphoto2/main.c:2034 +msgid "SECONDS" +msgstr "SECONDI" + +# FIXME: frame??? +#: gphoto2/main.c:2032 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Imposta il numero di fotogrammi da catturare (predefinito: infiniti)" + +#: gphoto2/main.c:2032 +msgid "COUNT" +msgstr "NUMERO" + +#: gphoto2/main.c:2034 +msgid "Set capture interval in seconds" +msgstr "Imposta l'intervallo di cattura in secondi" + +# FIXME +#: gphoto2/main.c:2036 +msgid "Reset capture interval on signal (default=no)" +msgstr "Reimposta l'intervallo di cattura sul segnale (predefinito: no)" + +#: gphoto2/main.c:2038 +msgid "Capture an image" +msgstr "Cattura un'immagine" + +#: gphoto2/main.c:2040 +msgid "Trigger capture of an image" +msgstr "Cattura un'immagine" + +#: gphoto2/main.c:2042 +msgid "Capture an image and download it" +msgstr "Cattura un'immagine e scaricala" + +#: gphoto2/main.c:2044 +msgid "Capture a movie" +msgstr "Cattura un filmato" + +#: gphoto2/main.c:2044 +msgid "COUNT or SECONDS" +msgstr "NUMERO o SECONDI" + +# FIXME: clip? invariato? spezzone? brano? +#: gphoto2/main.c:2046 +msgid "Capture an audio clip" +msgstr "Cattura un clip audio" + +#: gphoto2/main.c:2048 +msgid "Wait for shutter release on the camera and download" +msgstr "Attendi la chiusura dell'otturatore e scarica" + +#: gphoto2/main.c:2050 +msgid "Trigger image capture" +msgstr "Impossibile far partire la cattura dell'immagine." + +#: gphoto2/main.c:2056 +msgid "List folders in folder" +msgstr "Elenca le cartelle nella cartella" + +#: gphoto2/main.c:2058 +msgid "List files in folder" +msgstr "Elenca i file nalla cartella" + +#: gphoto2/main.c:2060 +msgid "Create a directory" +msgstr "Crea una directory" + +#: gphoto2/main.c:2060 gphoto2/main.c:2062 +msgid "DIRNAME" +msgstr "NOMEDIRECTORY" + +#: gphoto2/main.c:2062 +msgid "Remove a directory" +msgstr "Rimuove una directory" + +#: gphoto2/main.c:2064 +msgid "Display number of files" +msgstr "Mostra il numero di file" + +#: gphoto2/main.c:2066 +msgid "Get files given in range" +msgstr "Scarica i file nell'intervallo indicato" + +#: gphoto2/main.c:2066 gphoto2/main.c:2070 gphoto2/main.c:2075 +#: gphoto2/main.c:2082 gphoto2/main.c:2088 gphoto2/main.c:2093 +msgid "RANGE" +msgstr "INTERVALLO" + +#: gphoto2/main.c:2068 +msgid "Get all files from folder" +msgstr "Scarica tutti i file dalla cartella" + +#: gphoto2/main.c:2070 +msgid "Get thumbnails given in range" +msgstr "Scarica le miniature nell'intervallo indicato" + +#: gphoto2/main.c:2073 +msgid "Get all thumbnails from folder" +msgstr "Scarica tutte le miniature dalla cartella" + +#: gphoto2/main.c:2075 +msgid "Get metadata given in range" +msgstr "Scarica i metadati nell'intervallo indicato" + +#: gphoto2/main.c:2077 +msgid "Get all metadata from folder" +msgstr "Scarica tutti i metadati dalla cartella" + +#: gphoto2/main.c:2079 +msgid "Upload metadata for file" +msgstr "Carica i metadati per il file" + +#: gphoto2/main.c:2082 +msgid "Get raw data given in range" +msgstr "Scarica i dati grezzi nell'intervallo indicato" + +#: gphoto2/main.c:2085 +msgid "Get all raw data from folder" +msgstr "Scarica tutti i dati grezzi dalla cartella" + +#: gphoto2/main.c:2088 +msgid "Get audio data given in range" +msgstr "Scarica i dati audio nell'intervallo indicato" + +#: gphoto2/main.c:2091 +msgid "Get all audio data from folder" +msgstr "Scarica tutti i dati audio dalla cartella" + +#: gphoto2/main.c:2093 +msgid "Delete files given in range" +msgstr "Elimina i file nell'intervallo indicato" + +#: gphoto2/main.c:2095 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Elimina tutti i file nella cartella (predefinito: --no-recurse)" + +#: gphoto2/main.c:2097 +msgid "Upload a file to camera" +msgstr "Carica un file sulla fotocamera" + +#: gphoto2/main.c:2099 +msgid "Specify a filename or filename pattern" +msgstr "Specifica un nome di file o un modello di nome" + +#: gphoto2/main.c:2099 +msgid "FILENAME_PATTERN" +msgstr "MODELLO_NOMEFILE" + +#: gphoto2/main.c:2101 +msgid "Specify camera folder (default=\"/\")" +msgstr "Specifica una cartella per la fotocamera (predefinito=\"/\")" + +#: gphoto2/main.c:2101 +msgid "FOLDER" +msgstr "CARTELLA" + +#: gphoto2/main.c:2103 +msgid "Recursion (default for download)" +msgstr "Ricorsione (predefinito per lo scaricamento)" + +#: gphoto2/main.c:2105 +msgid "No recursion (default for deletion)" +msgstr "Nessuna ricorsione (predefinito per l'eliminazione)" + +#: gphoto2/main.c:2107 +msgid "Process new files only" +msgstr "Elabora solo i nuovi file" + +#: gphoto2/main.c:2109 +msgid "Overwrite files without asking" +msgstr "Sovrascrive i file senza chiedere conferma" + +#: gphoto2/main.c:2111 +msgid "Skip existing files" +msgstr "Salta i file esistenti" + +#: gphoto2/main.c:2117 +msgid "Send file to stdout" +msgstr "Manda i file su standard output" + +#: gphoto2/main.c:2119 +msgid "Print filesize before data" +msgstr "Stampa la dimensione dei file prima dei dati" + +#: gphoto2/main.c:2121 +msgid "List auto-detected cameras" +msgstr "Elenca le fotocamere riconosciute automaticamente" + +#: gphoto2/main.c:2125 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Mostra le informazioni EXIF delle immagini JPEG" + +#: gphoto2/main.c:2128 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Mostra informazioni sull'immagine, come larghezza, altezza e orario di scatto" + +#: gphoto2/main.c:2130 +msgid "Show camera summary" +msgstr "Mostra sommario della fotocamera" + +#: gphoto2/main.c:2132 +msgid "Show camera driver manual" +msgstr "Mostra il manuale del driver della fotocamera" + +#: gphoto2/main.c:2134 +msgid "About the camera driver manual" +msgstr "Informazioni sul manuale del driver della fotocamera" + +#: gphoto2/main.c:2136 +msgid "Show storage information" +msgstr "Mostra le informazioni sulla memoria" + +#: gphoto2/main.c:2138 +msgid "gPhoto shell" +msgstr "Shell di gPhoto" + +#: gphoto2/main.c:2144 +msgid "Common options" +msgstr "Opzioni comuni" + +#: gphoto2/main.c:2146 +msgid "Miscellaneous options (unsorted)" +msgstr "Opzioni varie (non ordinate)" + +#: gphoto2/main.c:2148 +msgid "Get information on software and host system (not from the camera)" +msgstr "Informazioni sul software e sul sistema (non dalla fotocamera)" + +#: gphoto2/main.c:2150 +msgid "Specify the camera to use" +msgstr "Specifica la fotocamera da usare" + +#: gphoto2/main.c:2152 +msgid "Camera and software configuration" +msgstr "Configurazione fotocamera e software" + +#: gphoto2/main.c:2154 +msgid "Capture an image from or on the camera" +msgstr "Cattura un'immagine dalla o sulla fotocamera" + +#: gphoto2/main.c:2156 +msgid "Downloading, uploading and manipulating files" +msgstr "Scaricamento, caricamento e manipolazione file" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Gli ID delle immagini sono numeri maggiori di zero." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"ID dell'immagine %i troppo grande." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Gli intervalli devono essere separati da virgole." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Gli intervalli devono iniziare con un numero." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Carattere \"%c\" non previsto." + +# FIXME +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Intervalli decrescenti non permessi. È stato indicato un intervallo da %i a %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Errore (%i: \"%s\") ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Cambia directory sulla fotocamera" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "directory" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Cambia directory sul disco locale" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Esce dalla shell di gPhoto" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Scarica un file" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[directory/]nomefile" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Carica un file" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Scarica una miniatura" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Scarica i dati grezzi" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Elimina" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Crea directory" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Rimuovi directory" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Mostra un aiuto sui comandi" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[comando]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Elenca i contenuti della directory corrente" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[directory/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Elenca le variabili di configurazione" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Ottiene una variabile di configurazione" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "nome" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Imposta una variabile di configurazione" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "nome=valore" + +# FIXME +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Imposta un indice di variabile di configurazione" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "nome=indicevalore" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Cattura un'immagine singola" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Cattura un'immagine singola e scaricala" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Cattura un'immagine di anteprima" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Attende un evento" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "numero o secondi" + +# FIXME UPSTREAM: download it -> download them? +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Attendi la cattura delle immagini e scaricale" + +# FIXME +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Attendi eventi e cattura delle immagini e scaricale" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Comando non valido." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Il comando \"%s\" richiede un argomento." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Percorso non valido." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Impossibile trovare la directory home." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Impossibile entrare nella directory locale \"%s\"." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "La directory locale è ora \"%s\"." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "La directory remota è ora \"%s\"." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config richiede un secondo argomento.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value richiede un secondo argomento.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index richiede un secondo argomento.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Comando \"%s\" non trovato. Usare \"help\" per l'elenco dei comandi disponibili." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Aiuto su \"%s\":" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Uso:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Descrizione:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Gli argomenti tra parentesi quadre [] sono opzionali" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Comandi disponibili:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Per ricevere aiuto su un particolare comando, digitare \"help nome-comando\"." diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/ja.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/ja.po new file mode 100644 index 00000000..f67ccec7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/ja.po @@ -0,0 +1,1739 @@ +# ja.po for gphoto2. +# This file is distributed under the same license as the gphoto2 package. +# Yukihiro Nakai , 2000. +# Takeshi Aihana , 2001-2002. +# AMANO Kazuhiro , 2002. +# Tadashi Jokagi , 2008-2010. +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.4.14\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2012-04-15 18:07+0200\n" +"PO-Revision-Date: 2012-04-18 04:13+0900\n" +"Last-Translator: Tadashi Jokagi \n" +"Language-Team: Japanese \n" +"Language: ja\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: gphoto2/actions.c:170 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "フォルダ '%s' 内のファイルの数: %i\n" + +#: gphoto2/actions.c:190 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "フォルダ '%2$s' の中にフォルダが %1$d 個あります。\n" + +#: gphoto2/actions.c:230 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "フォルダ '%s' の中にファイルがありません。\n" + +#: gphoto2/actions.c:233 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "フォルダ '%2$s' の中にファイルが %1$d 個あります。\n" + +#: gphoto2/actions.c:254 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "ファイル '%s' (フォルダ '%s') の情報:\n" + +#: gphoto2/actions.c:256 +#, c-format +msgid "File:\n" +msgstr "ファイル:\n" + +#: gphoto2/actions.c:258 gphoto2/actions.c:292 gphoto2/actions.c:308 +#, c-format +msgid " None available.\n" +msgstr " 使用不可です。\n" + +#: gphoto2/actions.c:261 +#, c-format +msgid " Name: '%s'\n" +msgstr " 名前: '%s'\n" + +#: gphoto2/actions.c:263 gphoto2/actions.c:295 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME 型: '%s'\n" + +#: gphoto2/actions.c:265 gphoto2/actions.c:297 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " 容量: %lu バイト\n" + +#: gphoto2/actions.c:267 gphoto2/actions.c:299 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " 横: %i ピクセル\n" + +#: gphoto2/actions.c:269 gphoto2/actions.c:301 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " 縦: %i ピクセル\n" + +#: gphoto2/actions.c:271 gphoto2/actions.c:303 +#, c-format +msgid " Downloaded: %s\n" +msgstr " ダウンロード済: %s\n" + +#: gphoto2/actions.c:272 gphoto2/actions.c:304 gphoto2/actions.c:316 +#: gphoto2/actions.c:666 gphoto2/actions.c:668 gphoto2/actions.c:696 +#: gphoto2/actions.c:699 gphoto2/actions.c:702 gphoto2/actions.c:705 +#: gphoto2/actions.c:708 gphoto2/actions.c:1673 gphoto2/actions.c:1898 +msgid "yes" +msgstr "はい" + +#: gphoto2/actions.c:272 gphoto2/actions.c:304 gphoto2/actions.c:316 +#: gphoto2/actions.c:666 gphoto2/actions.c:668 gphoto2/actions.c:696 +#: gphoto2/actions.c:699 gphoto2/actions.c:702 gphoto2/actions.c:705 +#: gphoto2/actions.c:708 gphoto2/actions.c:1667 gphoto2/actions.c:1892 +msgid "no" +msgstr "いいえ" + +#: gphoto2/actions.c:274 +#, c-format +msgid " Permissions: " +msgstr " 権限: " + +#: gphoto2/actions.c:277 +#, c-format +msgid "read/delete" +msgstr "読み込み/削除" + +#: gphoto2/actions.c:279 +#, c-format +msgid "read" +msgstr "読み込み" + +#: gphoto2/actions.c:281 +#, c-format +msgid "delete" +msgstr "削除" + +#: gphoto2/actions.c:283 +#, c-format +msgid "none" +msgstr "なし" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Time: %s" +msgstr " 時間: %s" + +#: gphoto2/actions.c:290 +#, c-format +msgid "Thumbnail:\n" +msgstr "サムネイル:\n" + +#: gphoto2/actions.c:306 +#, c-format +msgid "Audio data:\n" +msgstr "オーディオデータ:\n" + +#: gphoto2/actions.c:311 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME 型: '%s'\n" + +#: gphoto2/actions.c:313 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " 容量: %lu バイト\n" + +#: gphoto2/actions.c:315 +#, c-format +msgid " Downloaded: %s\n" +msgstr " ダウンロード済: %s\n" + +#: gphoto2/actions.c:491 +msgid "Could not parse EXIF data." +msgstr "EXIF データを解析できませんでした。" + +#: gphoto2/actions.c:495 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF タグ:" + +#: gphoto2/actions.c:498 +msgid "Tag" +msgstr "タグ" + +#: gphoto2/actions.c:500 +msgid "Value" +msgstr "値" + +#: gphoto2/actions.c:521 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF データにサムネイルがあります (%i バイト)。" + +#: gphoto2/actions.c:530 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "この gphoto2 は EXIF をサポートしていません。" + +#: gphoto2/actions.c:548 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "サポートしているカメラの数: %i\n" + +#: gphoto2/actions.c:549 +#, c-format +msgid "Supported cameras:\n" +msgstr "サポートするカメラ:\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (テスト)\n" + +#: gphoto2/actions.c:565 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (開発向け)\n" + +#: gphoto2/actions.c:570 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:614 +#, c-format +msgid "Devices found: %i\n" +msgstr "検出したデバイス数: %i\n" + +#: gphoto2/actions.c:615 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"パス名 説明\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:645 gphoto2/actions.c:650 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:645 +msgid "Model" +msgstr "型式" + +#: gphoto2/actions.c:645 +msgid "Port" +msgstr "ポート" + +#: gphoto2/actions.c:646 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:664 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "カメラの性能 : %s\n" + +#: gphoto2/actions.c:665 +#, c-format +msgid "Serial port support : %s\n" +msgstr "シリアルポートのサポート : %s\n" + +#: gphoto2/actions.c:667 +#, c-format +msgid "USB support : %s\n" +msgstr "USB サポート : %s\n" + +#: gphoto2/actions.c:670 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "サポートする転送スピード :\n" + +#: gphoto2/actions.c:672 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:675 +#, c-format +msgid "Capture choices :\n" +msgstr "取り込みの選択 :\n" + +#: gphoto2/actions.c:677 +#, c-format +msgid " : Image\n" +msgstr " : 画像\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid " : Video\n" +msgstr " : ビデオ\n" + +#: gphoto2/actions.c:685 +#, c-format +msgid " : Audio\n" +msgstr " : オーディオ\n" + +#: gphoto2/actions.c:689 +#, c-format +msgid " : Preview\n" +msgstr " : プレビュー\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : ドライバーで取り込みが未サポートです\n" + +#: gphoto2/actions.c:695 +#, c-format +msgid "Configuration support : %s\n" +msgstr "セッティングのサポート : %s\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "カメラ内の選択ファイルの削除 : %s\n" + +#: gphoto2/actions.c:700 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "カメラ内の全ファイルの削除 : %s\n" + +#: gphoto2/actions.c:703 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "プレビューのサポート : %s\n" + +#: gphoto2/actions.c:706 +#, c-format +msgid "File upload support : %s\n" +msgstr "ファイルアップロードのサポート : %s\n" + +#: gphoto2/actions.c:722 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "ポートは 'serial:/dev/ttyS0' または 'USB:' のようですが、'%s' はコロン ':' がないので適用することができません。" + +#: gphoto2/actions.c:756 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "指定したポート ('%s') が見つかりません。'gphoto2 --list-ports' で示されるポートの一つを指定して、ポート名のスペルが正しいか確認して下さい (接頭子 'serial:' または 'usb:')。" + +#: gphoto2/actions.c:788 +#, c-format +msgid "About the camera driver:" +msgstr "カメラのドライバ情報" + +#: gphoto2/actions.c:801 +#, c-format +msgid "Camera summary:" +msgstr "カメラのサマリ:" + +#: gphoto2/actions.c:814 +#, c-format +msgid "Camera manual:" +msgstr "カメラのマニュアル:" + +#: gphoto2/actions.c:829 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "シリアルポートの転送速度のみ指定することが可能です。" + +#: gphoto2/actions.c:879 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Bart van Leeuwen : OS/2 のポーティング担当\n" + +#: gphoto2/actions.c:883 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (C) 2000-%d Lutz Mueller 氏とその他の方々\n" +"%s\n" +"gphoto2 は法律により許可された範囲で完全無保証です。\n" +"あなたは GNU 公有使用許諾契約書の下で gphoto2 の複製を再配布することができます。\n" +"これらの内容について詳細な情報については COPYING ファイルを参照ください。\n" +"\n" +"このバージョンの gphoto2 は次のソフトウェア・バージョンとオプションを使用します:\n" + +#: gphoto2/actions.c:982 +msgid "Could not open 'movie.mjpg'." +msgstr "「movie.mjpg」が開けません。" + +#: gphoto2/actions.c:989 +#, fuzzy, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "カメラからのイベントを待っています。[Ctrl][C] を押すと中断します。\n" + +#: gphoto2/actions.c:993 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "" + +#: gphoto2/actions.c:998 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "" + +#: gphoto2/actions.c:1007 +msgid "Movie capture error... Exiting." +msgstr "動画のキャプチャーでエラーです…終了します。" + +#: gphoto2/actions.c:1012 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "動画のキャプチャーでエラーです…制御できない MIME タイプ「%s」です。" + +#: gphoto2/actions.c:1017 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl-C が押されました…終了します。\n" + +#: gphoto2/actions.c:1101 gphoto2/main.c:641 +msgid "Could not set folder." +msgstr "フォルダを設定できませんでした。" + +#: gphoto2/actions.c:1107 gphoto2/main.c:648 +msgid "Could not get image." +msgstr "画像を取得できませんでした。" + +#: gphoto2/actions.c:1114 gphoto2/main.c:655 +msgid "Buggy libcanon.so?" +msgstr "libcanon.so のバグ?" + +#: gphoto2/actions.c:1123 gphoto2/main.c:666 +msgid "Could not delete image." +msgstr "画像の削除ができませんでした。" + +#: gphoto2/actions.c:1146 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "このカメラはストレージ情報の取得をサポートしていませんでした。\n" + +#: gphoto2/actions.c:1161 +#, c-format +msgid "Read-Write" +msgstr "読み書き" + +#: gphoto2/actions.c:1164 +#, c-format +msgid "Read-Only" +msgstr "読み込み専用" + +#: gphoto2/actions.c:1167 +#, c-format +msgid "Read-only with delete" +msgstr "読み込み専用と削除" + +#: gphoto2/actions.c:1170 gphoto2/actions.c:1180 +#, c-format +msgid "Unknown" +msgstr "不明" + +#: gphoto2/actions.c:1183 +#, c-format +msgid "Fixed ROM" +msgstr "固定 ROM" + +#: gphoto2/actions.c:1186 +#, c-format +msgid "Removable ROM" +msgstr "リムーバブル ROM" + +#: gphoto2/actions.c:1189 +#, c-format +msgid "Fixed RAM" +msgstr "固定 RAM" + +#: gphoto2/actions.c:1192 +#, c-format +msgid "Removable RAM" +msgstr "リムーバブル RAM" + +#: gphoto2/actions.c:1202 +#, c-format +msgid "Undefined" +msgstr "未定義" + +#: gphoto2/actions.c:1205 +#, c-format +msgid "Generic Flat" +msgstr "一般フラット" + +#: gphoto2/actions.c:1208 +#, c-format +msgid "Generic Hierarchical" +msgstr "一般階層" + +#: gphoto2/actions.c:1211 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "カメラレイアウト (DCIM)" + +#: gphoto2/actions.c:1249 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "USB ベンダー/製品 ID 0x%x/0x%x と 0x%x/0x%x を上書きしています" + +#: gphoto2/actions.c:1313 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "メーリングリストにデバッグメッセージを送信する場合は、必ず次の行を挿入して下さい:" + +#: gphoto2/actions.c:1328 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s は次のオプションでコンパイルされました:" + +#: gphoto2/actions.c:1459 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s は設定ツリーで見つけられませんでした。" + +#: gphoto2/actions.c:1508 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "ウィジェット %s のテキストの値を取得できませんでした。" + +#: gphoto2/actions.c:1525 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "ウィジェット %s の範囲の値を取得できませんでした。" + +#: gphoto2/actions.c:1537 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "ウィジェット %s のトグルの値を取得できませんでした。" + +#: gphoto2/actions.c:1549 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "ウィジェット %s の日時の値を取得できませんでした。" + +#: gphoto2/actions.c:1579 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "ウィジェット %s の比率の値を取得できませんでした。" + +#: gphoto2/actions.c:1623 +#, c-format +msgid "Property %s is read only." +msgstr "プロパティ %s は読み込み専用です。" + +#: gphoto2/actions.c:1637 gphoto2/actions.c:1862 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "ウィジェット %s のテキストの値を %s に設定できませんでした。" + +#: gphoto2/actions.c:1647 gphoto2/actions.c:1872 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "渡された値 %s は浮動小数点値ではありませんでした。" + +#: gphoto2/actions.c:1652 gphoto2/actions.c:1877 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "渡された値 %f は期待された範囲(%f~%f)ではありませんでした。" + +#: gphoto2/actions.c:1658 gphoto2/actions.c:1883 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "ウィジェット %s の範囲の値を %f に設定できませんでした。<" + +#: gphoto2/actions.c:1667 gphoto2/actions.c:1892 +msgid "off" +msgstr "オフ" + +#: gphoto2/actions.c:1668 gphoto2/actions.c:1893 +msgid "false" +msgstr "偽(false)" + +#: gphoto2/actions.c:1673 gphoto2/actions.c:1898 +msgid "on" +msgstr "オン" + +#: gphoto2/actions.c:1674 gphoto2/actions.c:1899 +msgid "true" +msgstr "真(true)" + +#: gphoto2/actions.c:1679 gphoto2/actions.c:1904 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "渡された値 %s は正しいトグル値ではありませんでした。" + +#: gphoto2/actions.c:1685 gphoto2/actions.c:1910 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "ウィジェット %s のトグルの値を %s に設定できませんでした." + +#: gphoto2/actions.c:1698 gphoto2/actions.c:1923 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "渡された値 %s は整数か正しい時間のどちらでもありませんでした。" + +#: gphoto2/actions.c:1705 gphoto2/actions.c:1930 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "ウィジェット %s の日時を新しい時間 %s に設定できませんでした。" + +#: gphoto2/actions.c:1752 gphoto2/actions.c:1816 gphoto2/actions.c:1960 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "選択した %s は選択肢中で見つけられませんでした。" + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1968 +#, c-format +msgid "The %s widget is not configurable." +msgstr "ウィジェット %s は設定できません。" + +#: gphoto2/actions.c:1767 gphoto2/actions.c:1835 gphoto2/actions.c:1975 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "設定エントリー %2$s への新しい設定値 %1$s の設定に失敗しました。" + +#: gphoto2/actions.c:1828 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "ウィジェット %s は選択された一覧でインデックスが作成されていません。代わりに --set-config-value を使用してください。" + +#: gphoto2/foreach.c:254 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "ファイル番号がおかしいです。%i を指定しましたが、%i 個のファイルしか '%s' の中にはないか、またはサブフォルダのようです。まず最初にファイル一覧から正しい番号を取得して下さい。" + +#: gphoto2/foreach.c:279 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "フォルダ '%s' の中にファイルはありません。" + +#: gphoto2/foreach.c:285 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "ファイル番号がおかしいです。%i を指定しましたが、1個のファイルしか '%s' の中にありません。" + +#: gphoto2/foreach.c:293 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "ファイル番号がおかしいです。%1$i を指定ましたが、'%3$s' の中には有効なファイルは %2$i 個しかありません。まず最初にファイル一覧から正しい番号を取得してください。" + +#: gphoto2/gp-params.c:70 +#, c-format +msgid "*** Error *** \n" +msgstr "*** エラー *** \n" + +#: gphoto2/gp-params.c:253 +#, c-format +msgid "Press any key to continue.\n" +msgstr "何かキーを押すと続けます。\n" + +#: gphoto2/gp-params.c:275 +#, c-format +msgid "Not enough memory." +msgstr "メモリが足りません。" + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "操作を取り消しました" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "続行" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "キャンセル" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "エラー" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "設定を有効にすることが出来ませんでした:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "終了" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "戻る" + +#: gphoto2/gphoto2-cmd-config.c:254 +msgid "Time: " +msgstr "時刻: " + +#: gphoto2/gphoto2-cmd-config.c:313 gphoto2/gphoto2-cmd-config.c:341 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "値: " + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "はい" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "いいえ" + +#: gphoto2/main.c:236 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "ファイル名のゼロパディングは %%n でのみ可能です。" + +#: gphoto2/main.c:245 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "正確な値なしで %%n ゼロパディングを使うことはできません!" + +#: gphoto2/main.c:278 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "カメラが提供するファイル名 ('%s') には拡張子がありません!" + +#: gphoto2/main.c:333 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "不正な書式 '%s' (%i でエラー) です。" + +#: gphoto2/main.c:386 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "ファイル %s は存在します。上書きしますか? [y|n] " + +#: gphoto2/main.c:398 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "新しいファイル名を指定しますか? [y|n] " + +#: gphoto2/main.c:408 +#, c-format +msgid "Enter new filename: " +msgstr "新しいファイル名: " + +#: gphoto2/main.c:414 +#, c-format +msgid "Saving file as %s\n" +msgstr "ファイルを %s で保存します\n" + +#: gphoto2/main.c:507 +#, fuzzy +msgid "Permission denied" +msgstr " 権限: " + +#: gphoto2/main.c:632 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "新しいファイルの格納場所: %s%s%s\n" + +#: gphoto2/main.c:661 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "カメラ内のファイル %s%s%s の削除をしています\n" + +#: gphoto2/main.c:699 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "" + +#: gphoto2/main.c:709 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "" + +#: gphoto2/main.c:715 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "" + +#: gphoto2/main.c:733 +#, fuzzy +msgid "Could not get capabilities?" +msgstr "画像を取得できませんでした。" + +#: gphoto2/main.c:741 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "コマドリモードを有効にしました(間隔: %d 秒)。\n" + +#: gphoto2/main.c:744 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "取り込みをするために SIGUSR1 の待ちの待機をしています。\n" + +#: gphoto2/main.c:750 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "白熱灯モードを有効にしました (露出時間: %d 秒)。\n" + +#: gphoto2/main.c:763 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "フレーム #%d の取り込み中です...\n" + +#: gphoto2/main.c:765 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "フレーム #%d/%d の取り込み中です...\n" + +#: gphoto2/main.c:775 +#, fuzzy, c-format +msgid "Could not set bulb capture, result %d." +msgstr "取り込みを終了できませんでした (白熱灯モード)。" + +#: gphoto2/main.c:789 +msgid "Could not end capture (bulb mode)." +msgstr "取り込みを終了できませんでした (白熱灯モード)。" + +#: gphoto2/main.c:801 +#, fuzzy +msgid "Could not trigger image capture." +msgstr "画像を取得できませんでした。" + +#: gphoto2/main.c:810 +#, fuzzy +msgid "Could not capture image." +msgstr "取り込みできませんでした。" + +#: gphoto2/main.c:818 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "取り込みに失敗しました (オートフォーカスの問題?)...\n" + +#: gphoto2/main.c:828 +msgid "Could not capture." +msgstr "取り込みできませんでした。" + +#: gphoto2/main.c:853 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "" + +#: gphoto2/main.c:862 gphoto2/main.c:906 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "SIGUSR1 で目覚めます...\n" + +#: gphoto2/main.c:878 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "スリープしていません (%ld 秒スケジュール遅れ)\n" + +#: gphoto2/main.c:1009 +#, c-format +msgid "ERROR: " +msgstr "エラー: " + +#: gphoto2/main.c:1032 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"停止中...\n" + +#: gphoto2/main.c:1038 +#, c-format +msgid "Aborted.\n" +msgstr "停止しました。\n" + +#: gphoto2/main.c:1043 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"キャンセル中...\n" + +#: gphoto2/main.c:1186 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "検出された USB デバイスを使用するために a:b=c:d という書式を使用して下さい。a, b, c, d は '0x' で始まる 16 進の数値にして下さい。\n" + +#: gphoto2/main.c:1343 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "この gphoto2 は CDK をサポートしていません。" + +#: gphoto2/main.c:1513 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "カメラからのイベントを待っています。[Ctrl][C] を押すと中断します。\n" + +#: gphoto2/main.c:1517 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "カメラからのイベントを %d 秒待っています。[Ctrl][C] を押すと中断します。\n" + +#: gphoto2/main.c:1520 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "カメラから %d 回のイベントを待っています。[Ctrl][C] を押すと中断します。\n" + +#: gphoto2/main.c:1585 +#, c-format +msgid "Operation cancelled.\n" +msgstr "操作がキャンセルされました。\n" + +#: gphoto2/main.c:1589 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" + +#: gphoto2/main.c:1591 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** エラー (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1596 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"デバッグメッセージのために、--debug オプションを使用してください。\n" +"デバッグメッセージは発生した問題に対する一つの解決法を導く助けになります。\n" +"何かエラーについて質問する場合、またはデバッグメッセージを\n" +"gPhoto2 開発者のメーリングリスト に\n" +"送信する場合、以下のように gphoto2 を起動してください:\n" +"\n" + +#: gphoto2/main.c:1617 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" + +#: gphoto2/main.c:1684 +msgid "Print complete help message on program usage" +msgstr "プログラムの使い方の完全なヘルプメッセージを表示する" + +#: gphoto2/main.c:1686 +msgid "Print short message on program usage" +msgstr "プログラムに使い方の短いメッセージを表示する" + +#: gphoto2/main.c:1688 +msgid "Turn on debugging" +msgstr "デバッグを有効にする" + +#: gphoto2/main.c:1690 +msgid "Name of file to write debug info to" +msgstr "デバッグ情報を書き込むファイルの名前" + +#: gphoto2/main.c:1690 gphoto2/main.c:1695 gphoto2/main.c:1701 +#: gphoto2/main.c:1815 +msgid "FILENAME" +msgstr "FILENAME" + +#: gphoto2/main.c:1692 +msgid "Quiet output (default=verbose)" +msgstr "簡易出力 (標準=詳細)" + +#: gphoto2/main.c:1694 +msgid "Hook script to call after downloads, captures, etc." +msgstr "ダウンロード、取り込みなどの跡に呼び出すフックスクリプトです。" + +#: gphoto2/main.c:1701 +msgid "Specify device port" +msgstr "デバイス・ポートを指定する" + +#: gphoto2/main.c:1703 +msgid "Specify serial transfer speed" +msgstr "シリアル転送スピードを指定する" + +#: gphoto2/main.c:1703 +msgid "SPEED" +msgstr "SPEED" + +#: gphoto2/main.c:1705 +msgid "Specify camera model" +msgstr "カメラの型式を指定して下さい" + +#: gphoto2/main.c:1705 +msgid "MODEL" +msgstr "MODEL" + +#: gphoto2/main.c:1707 +msgid "(expert only) Override USB IDs" +msgstr "USB ID の上書き (エキスパート向け)" + +#: gphoto2/main.c:1707 +msgid "USBIDs" +msgstr "USBID" + +#: gphoto2/main.c:1713 +msgid "Display version and exit" +msgstr "バージョン情報を表示して終了する" + +#: gphoto2/main.c:1715 +msgid "List supported camera models" +msgstr "サポートしているカメラ型式の一覧" + +#: gphoto2/main.c:1717 +msgid "List supported port devices" +msgstr "サポートしているポート・デバイスの一覧を表示する" + +#: gphoto2/main.c:1719 +msgid "Display camera/driver abilities" +msgstr "カメラ/ドライバーの性能を表示する" + +#: gphoto2/main.c:1726 +msgid "Configure" +msgstr "設定" + +#: gphoto2/main.c:1729 +msgid "List configuration tree" +msgstr "設定ツリーの一覧" + +#: gphoto2/main.c:1731 +msgid "Dump full configuration tree" +msgstr "全設定ツリーのダンプ出力" + +#: gphoto2/main.c:1733 +msgid "Get configuration value" +msgstr "設定値の取得" + +#: gphoto2/main.c:1735 +msgid "Set configuration value or index in choices" +msgstr "設定値かインデックスを選択して設定する" + +#: gphoto2/main.c:1737 +msgid "Set configuration value index in choices" +msgstr "設定値インデックスを選択して設定する" + +#: gphoto2/main.c:1739 +msgid "Set configuration value" +msgstr "設定値の設定" + +#: gphoto2/main.c:1745 +msgid "Wait for event(s) from camera" +msgstr "カメラからのイベントを待つ" + +#: gphoto2/main.c:1745 gphoto2/main.c:1747 gphoto2/main.c:1754 +#: gphoto2/main.c:1768 +msgid "COUNT" +msgstr "COUNT" + +#: gphoto2/main.c:1747 +msgid "Wait for event(s) from the camera and download new images" +msgstr "カメラのイベントと新規画像のダウンロードを待つ" + +#: gphoto2/main.c:1750 +msgid "Capture a quick preview" +msgstr "取り込みの簡易プレビュー" + +#: gphoto2/main.c:1752 +msgid "Set bulb exposure time in seconds" +msgstr "白熱灯の露出時間設定 (単位:秒)" + +#: gphoto2/main.c:1752 gphoto2/main.c:1756 +msgid "SECONDS" +msgstr "SECONDS" + +#: gphoto2/main.c:1754 +msgid "Set number of frames to capture (default=infinite)" +msgstr "取り込むフレーム数の設定 (標準=infinite(無限))" + +#: gphoto2/main.c:1756 +msgid "Set capture interval in seconds" +msgstr "取り込み間隔の設定 (単位:秒)" + +#: gphoto2/main.c:1758 +msgid "Reset capture interval on signal (default=no)" +msgstr "シグナルで取り込み間隔をリセットする (標準=no)" + +#: gphoto2/main.c:1760 +msgid "Capture an image" +msgstr "画像の取り込み" + +#: gphoto2/main.c:1762 +msgid "Capture an image and download it" +msgstr "画像の取り込みとダウンロード" + +#: gphoto2/main.c:1764 +msgid "Capture a movie" +msgstr "映像の取り込み" + +#: gphoto2/main.c:1764 +#, fuzzy +msgid "COUNT or SECONDS" +msgstr "SECONDS" + +#: gphoto2/main.c:1766 +msgid "Capture an audio clip" +msgstr "オーディオの取り込み" + +#: gphoto2/main.c:1768 +msgid "Wait for shutter release on the camera and download" +msgstr "カメラのシャッターリリースとダウンロードを待つ" + +#: gphoto2/main.c:1774 +msgid "List folders in folder" +msgstr "フォルダの一覧" + +#: gphoto2/main.c:1776 +msgid "List files in folder" +msgstr "フォルダ内のファイル一覧" + +#: gphoto2/main.c:1778 +msgid "Create a directory" +msgstr "ディレクトリの作成" + +#: gphoto2/main.c:1778 gphoto2/main.c:1780 +msgid "DIRNAME" +msgstr "DIRNAME" + +#: gphoto2/main.c:1780 +msgid "Remove a directory" +msgstr "ディレクトリの削除" + +#: gphoto2/main.c:1782 +msgid "Display number of files" +msgstr "ファイル数の表示" + +#: gphoto2/main.c:1784 +msgid "Get files given in range" +msgstr "指定した範囲でファイルの取得" + +#: gphoto2/main.c:1784 gphoto2/main.c:1788 gphoto2/main.c:1793 +#: gphoto2/main.c:1800 gphoto2/main.c:1806 gphoto2/main.c:1811 +msgid "RANGE" +msgstr "RANGE" + +#: gphoto2/main.c:1786 +msgid "Get all files from folder" +msgstr "フォルダからすべてのファイルの取得" + +#: gphoto2/main.c:1788 +msgid "Get thumbnails given in range" +msgstr "指定した範囲でサムネイルの取得" + +#: gphoto2/main.c:1791 +msgid "Get all thumbnails from folder" +msgstr "フォルダからすべてのサムネイルの取得" + +#: gphoto2/main.c:1793 +msgid "Get metadata given in range" +msgstr "指定範囲のメタデータの取得" + +#: gphoto2/main.c:1795 +msgid "Get all metadata from folder" +msgstr "フォルダからすべてのメタデータを取得する" + +#: gphoto2/main.c:1797 +msgid "Upload metadata for file" +msgstr "ファイルからメタデータをアップロードする" + +#: gphoto2/main.c:1800 +msgid "Get raw data given in range" +msgstr "指定した範囲で生データの取得" + +#: gphoto2/main.c:1803 +msgid "Get all raw data from folder" +msgstr "フォルダからすべての生データの取得" + +#: gphoto2/main.c:1806 +msgid "Get audio data given in range" +msgstr "指定したオーディオデータの取得" + +#: gphoto2/main.c:1809 +msgid "Get all audio data from folder" +msgstr "フォルダからオーディオデータの取得" + +#: gphoto2/main.c:1811 +msgid "Delete files given in range" +msgstr "指定した範囲でファイルの削除" + +#: gphoto2/main.c:1813 +#, fuzzy +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "フォルダの中のファイルを削除" + +#: gphoto2/main.c:1815 +msgid "Upload a file to camera" +msgstr "ファイルをカメラにアップロード" + +#: gphoto2/main.c:1817 +msgid "Specify a filename or filename pattern" +msgstr "ファイル名もしくはファイル名のパターンの指定" + +#: gphoto2/main.c:1817 +msgid "FILENAME_PATTERN" +msgstr "FILENAME_PATTERN" + +#: gphoto2/main.c:1819 +msgid "Specify camera folder (default=\"/\")" +msgstr "カメラのフォルダを指定する (標準=\"/\")" + +#: gphoto2/main.c:1819 +msgid "FOLDER" +msgstr "FOLDER" + +#: gphoto2/main.c:1821 +msgid "Recursion (default for download)" +msgstr "再帰する (標準=ダウンロード)" + +#: gphoto2/main.c:1823 +msgid "No recursion (default for deletion)" +msgstr "再帰しない (標準=削除)" + +#: gphoto2/main.c:1825 +msgid "Process new files only" +msgstr "新しいファイルのみ処理する" + +#: gphoto2/main.c:1827 +msgid "Overwrite files without asking" +msgstr "ファイルの上書きで問い合わせない" + +#: gphoto2/main.c:1833 +msgid "Send file to stdout" +msgstr "標準出力にファイルを送出する" + +#: gphoto2/main.c:1835 +msgid "Print filesize before data" +msgstr "データの前にファイルサイズを出力する" + +#: gphoto2/main.c:1837 +msgid "List auto-detected cameras" +msgstr "自動検出したカメラの一覧を表示する" + +#: gphoto2/main.c:1841 gphoto2/shell.c:138 +msgid "Show EXIF information" +msgstr "EXIF 情報の表示" + +#: gphoto2/main.c:1844 gphoto2/shell.c:132 +msgid "Show info" +msgstr "情報の表示" + +#: gphoto2/main.c:1846 +msgid "Show summary" +msgstr "サマリの表示" + +#: gphoto2/main.c:1848 +msgid "Show camera driver manual" +msgstr "カメラのドライバのマニュアルを表示する" + +#: gphoto2/main.c:1850 +msgid "About the camera driver manual" +msgstr "カメラのドライバのマニュアルの情報" + +#: gphoto2/main.c:1852 +msgid "Show storage information" +msgstr "ストレージ情報の表示" + +#: gphoto2/main.c:1854 +msgid "gPhoto shell" +msgstr "gPhoto シェル" + +#: gphoto2/main.c:1860 +msgid "Common options" +msgstr "共通オプション" + +#: gphoto2/main.c:1862 +msgid "Miscellaneous options (unsorted)" +msgstr "その他のオプション (順不同)" + +#: gphoto2/main.c:1864 +msgid "Get information on software and host system (not from the camera)" +msgstr "ソフトウェアとホストシステムの情報の取得 (カメラからではありません)" + +#: gphoto2/main.c:1866 +msgid "Specify the camera to use" +msgstr "使用するカメラの指定" + +#: gphoto2/main.c:1868 +msgid "Camera and software configuration" +msgstr "カメラとソフトウェア設定" + +#: gphoto2/main.c:1870 +msgid "Capture an image from or on the camera" +msgstr "カメラ上で、カメラから画像の取り込み" + +#: gphoto2/main.c:1872 +msgid "Downloading, uploading and manipulating files" +msgstr "ダウンロード、アップロードとファイル操作" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"画像の ID は 0 以上にして下さい。" + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"画像 ID %i は大きすぎます。" + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"範囲は ',' で区切って下さい。" + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"範囲は数値で始めて下さい。" + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"予期しない文字 '%c' です。" + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"範囲を小さくすることはできません。%i から %i の範囲で指定して下さい。" + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** エラー (%i: '%s') ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "カメラ上でディレクトリを変更します" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "ディレクトリ" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "ローカルディスク上でディレクトリを変更します" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "gPhoto シェルを終了します" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "ファイルのダウンロード" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[ディレクトリ/]ファイル名" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "ファイルのアップロード" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "サムネイルのダウンロード" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "生データのダウンロード" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "削除" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "ディレクトリの作成" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "ディレクトリの削除" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "コマンドの用法を表示する" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[コマンド]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "このディレクトリの一覧を表示します" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[ディレクトリ/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "設定値の一覧" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "設定値の取得" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "名前" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "設定値の設定" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "名前=値" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "設定値インデックスの設定" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "名前=値インデックス" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "単一画像の取り込み" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "単一画像の取り込みとダウンロード" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "プレビュー画像の取り込み" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "イベントを待つ" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "回数か秒数" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "取り込み、ダウンロードされた画像を待つ" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "取り込み、ダウンロードされた画像とイベントを待つ" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "コマンドが正しくありません。" + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "コマンド '%s' には引数が必要です。" + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "パス名が正しくありません。" + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "ホーム・ディレクトリが見つかりませんでした。" + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "ローカルのディレクトリ '%s' に移動できませんでした。" + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "現在のローカルディレクトリは '%s' です。" + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "現在のリモートのディレクトリは '%s' です。" + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config は第 2 引数を必要とします。\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value は第 2 引数を必要とします。\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index は第 2 引数を必要とします。\n" + +#: gphoto2/shell.c:962 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "コマンド '%s' が見つかりませんでした。'help' で利用可能なコマンド一覧を表示します。" + +#: gphoto2/shell.c:969 +#, c-format +msgid "Help on \"%s\":" +msgstr "\"%s\" のヘルプ:" + +#: gphoto2/shell.c:971 +#, c-format +msgid "Usage:" +msgstr "使い方:" + +#: gphoto2/shell.c:974 +#, c-format +msgid "Description:" +msgstr "説明:" + +#: gphoto2/shell.c:976 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* [] 内の引数はオプションです。" + +#: gphoto2/shell.c:997 +#, c-format +msgid "Available commands:" +msgstr "利用可能なコマンド:" + +#: gphoto2/shell.c:1002 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "特定のコマンドに対するヘルプを表示する場合は 'help コマンド名' と入力して下さい。" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "non-persistent ファイルと「%%n」の組み合わせを使用することはできません!" + +#~ msgid "Could not get filename (bulb mode)." +#~ msgstr "ファイル名を取得できませんでした (白熱灯モード)。" + +#~ msgid "Could not close camera connection." +#~ msgstr "カメラの接続を閉じることができませんでした。" + +#~ msgid "Sleeping for %d second(s)...\n" +#~ msgstr "%d 秒スリープしています...\n" + +#~ msgid "New file %s/%s, downloading...\n" +#~ msgstr "新規ファイル %s/%s をダウンロードしています...\n" + +#~ msgid "filename" +#~ msgstr "ファイル名" + +#~ msgid "There are no folders in folder '%s'." +#~ msgstr "フォルダ '%s' の中にフォルダはありません。" + +#~ msgid "There are %i folders in folder '%s':" +#~ msgstr "%i 個のフォルダがフォルダ '%s' の中にあります:" + +#~ msgid "There are %i files in folder '%s':" +#~ msgstr "%i 個のファイルがフォルダ '%s' の中にあります:" + +#~ msgid "Displays this help screen" +#~ msgstr "このヘルプを表示する" + +#~ msgid "Capture a movie " +#~ msgstr "映像のキャプチャ" + +#~ msgid "Summary of camera status" +#~ msgstr "カメラ状態のサマリ" + +#~ msgid "Camera driver manual" +#~ msgstr "カメラのドライバのマニュアル" + +#~ msgid "About the camera driver" +#~ msgstr "カメラのドライバ情報" + +#~ msgid "Jan" +#~ msgstr "1月" + +#~ msgid "January" +#~ msgstr "1月" + +#~ msgid "Feb" +#~ msgstr "2月" + +#~ msgid "February" +#~ msgstr "2月" + +#~ msgid "Mar" +#~ msgstr "3月" + +#~ msgid "March" +#~ msgstr "3月" + +#~ msgid "Apr" +#~ msgstr "4月" + +#~ msgid "April" +#~ msgstr "4月" + +#~ msgid "May" +#~ msgstr "5月" + +#~ msgid "Jun" +#~ msgstr "6月" + +#~ msgid "June" +#~ msgstr "6月" + +#~ msgid "Jul" +#~ msgstr "7月" + +#~ msgid "July" +#~ msgstr "7月" + +#~ msgid "Aug" +#~ msgstr "8月" + +#~ msgid "August" +#~ msgstr "8月" + +#~ msgid "Sep" +#~ msgstr "9月" + +#~ msgid "September" +#~ msgstr "9月" + +#~ msgid "Oct" +#~ msgstr "10月" + +#~ msgid "October" +#~ msgstr "10月" + +#~ msgid "Nov" +#~ msgstr "11月" + +#~ msgid "November" +#~ msgstr "11月" + +#~ msgid "Dec" +#~ msgstr "12月" + +#~ msgid "December" +#~ msgstr "12月" + +#~ msgid "Sun" +#~ msgstr "日" + +#~ msgid "Sunday" +#~ msgstr "日曜日" + +#~ msgid "Monday" +#~ msgstr "月曜日" + +#~ msgid "Tue" +#~ msgstr "火" + +#~ msgid "Tuesday" +#~ msgstr "火曜日" + +#~ msgid "Wed" +#~ msgstr "水" + +#~ msgid "Wednesday" +#~ msgstr "水曜日" + +#~ msgid "Thu" +#~ msgstr "木" + +#~ msgid "Thursday" +#~ msgstr "木曜日" + +#~ msgid "Fri" +#~ msgstr "金" + +#~ msgid "Friday" +#~ msgstr "金曜日" + +#~ msgid "Sat" +#~ msgstr "土" + +#~ msgid "Saturday" +#~ msgstr "土曜日" + +#~ msgid "path" +#~ msgstr "パス名" + +#~ msgid "speed" +#~ msgstr "転送スピード" + +#~ msgid "model" +#~ msgstr "型式" + +#~ msgid "usbid" +#~ msgstr "USB-ID" + +#~ msgid "folder" +#~ msgstr "フォルダ名" + +#~ msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +#~ msgstr "OS/2 向けの gPhoto2 では環境変数 ${CAMLIBS} にカメラ・ライブラリへのパスを設定する必要があります。(例) SET CAMLIBS=C:\\GPHOTO2\\CAM\n" + +#~ msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +#~ msgstr "OS/2 向けの gPhoto2 では環境変数 ${IOLIBS} にカメラの I/O ライブラリへのパスに設定する必要があります。(例) SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" + +#~ msgid "Usage:\n" +#~ msgstr "用法:\n" + +#~ msgid "" +#~ "Short/long options (& argument) Description\n" +#~ "--------------------------------------------------------------------------------\n" +#~ msgstr "" +#~ "オプション (含む引数) 説明\n" +#~ "--------------------------------------------------------------------------------\n" + +#~ msgid "%-38s %s\n" +#~ msgstr "%-38s %s\n" + +#~ msgid "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +#~ msgstr "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[引数にダブルクオーテーションを使用する] [写真の番号を (1) から始める]\n" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/nl.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/nl.po new file mode 100644 index 00000000..c93053ab --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/nl.po @@ -0,0 +1,1796 @@ +# Dutch translations for gphoto2. +# This file is distributed under the same license as the gphoto2 package. +# +# "This leads me into reverent thoughts +# when they start misting the lettuce." +# +# Julie Vermeersch , 2004, 2005. +# Erwin Poeze , 2009, 2011. +# Benno Schulenberg , 2008, 2010, 2012, 2013, 2014. +msgid "" +msgstr "" +"Project-Id-Version: gphoto2-2.5.6\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2014-12-21 20:43+0100\n" +"PO-Revision-Date: 2014-12-29 13:18+0100\n" +"Last-Translator: Benno Schulenberg \n" +"Language-Team: Dutch \n" +"Language: nl\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Lokalize 1.0\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Aantal bestanden in map '%s': %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Er is %d map in map '%s'.\n" +msgstr[1] "Er zijn %d mappen in map '%s'.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Er is geen bestand in map '%s'.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Er is %d bestand in map '%s'.\n" +msgstr[1] "Er zijn %d bestanden in map '%s'.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Informatie over bestand '%s' (map '%s'):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Bestand:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Geen beschikbaar.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME-type: '%s'\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Grootte: %lu byte(s)\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Breedte: %i pixel(s)\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Hoogte: %i pixel(s)\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Gedownload: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:712 +#: gphoto2/actions.c:715 gphoto2/actions.c:718 gphoto2/actions.c:721 +#: gphoto2/actions.c:724 gphoto2/actions.c:1775 gphoto2/actions.c:2012 +msgid "yes" +msgstr "ja" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:712 +#: gphoto2/actions.c:715 gphoto2/actions.c:718 gphoto2/actions.c:721 +#: gphoto2/actions.c:724 gphoto2/actions.c:1769 gphoto2/actions.c:2006 +msgid "no" +msgstr "nee" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Toegangsrechten: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "lezen/verwijderen" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "lezen" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "verwijderen" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "geen" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Tijd: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Miniatuurvoorbeeld:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Audiogegevens:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " MIME-type: '%s'\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Grootte: %lu byte(s)\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Gedownload: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Kan EXIF-gegevens niet ontleden." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF-labels:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Label" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Waarde" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF-gegevens bevatten een miniatuurvoorbeeld (%i bytes)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 is gecompileerd zonder EXIF-ondersteuning." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Aantal ondersteunde camera's: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Ondersteunde camera's:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (AAN HET TESTEN)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (EXPERIMENTEEL)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Aantal gevonden apparaten: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Pad Omschrijving\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Model" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Poort" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Mogelijkheden van de camera : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Ondersteuning van seriële poort : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "USB-ondersteuning : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Ondersteunde overdrachtssnelheden:\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Opnamekeuzes :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Afbeelding\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Audio\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Voorbeeldweergave\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Stuurprogramma ondersteunt opname niet\n" + +#: gphoto2/actions.c:711 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Configuratie-ondersteuning : %s\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Geselecteerde bestanden op camera wissen: %s\n" + +#: gphoto2/actions.c:716 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Alle bestanden op camera wissen : %s\n" + +#: gphoto2/actions.c:719 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Ondersteuning voor voorbeeldweergave (miniaturen): %s\n" + +#: gphoto2/actions.c:722 +#, c-format +msgid "File upload support : %s\n" +msgstr "Ondersteuning van bestandsupload : %s\n" + +#: gphoto2/actions.c:739 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Poorten moeten eruit zien als 'serial:/dev/ttyS0' of 'usb:', maar '%s' mist een dubbele punt, dus er wordt gegist naar wat u bedoelt." + +#: gphoto2/actions.c:773 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "De opgegeven poort ('%s') kan niet worden gevonden. Geef één van de poorten gevonden door 'gphoto2 --list-ports' op en zorg dat de schrijfwijze juist is (bijvoorbeeld met het voorvoegsel 'serial:' of 'usb:')." + +#: gphoto2/actions.c:806 +#, c-format +msgid "About the camera driver:" +msgstr "Over het camerastuurprogramma:" + +#: gphoto2/actions.c:819 +#, c-format +msgid "Camera summary:" +msgstr "Camerasamenvatting:" + +#: gphoto2/actions.c:832 +#, c-format +msgid "Camera manual:" +msgstr "Handleiding van camera:" + +#: gphoto2/actions.c:849 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "U kunt alleen snelheden opgeven voor seriële poorten." + +#: gphoto2/actions.c:899 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2-port door Bart van Leeuwen\n" + +#: gphoto2/actions.c:903 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Auteursrecht (C) 2000-%d Lutz Mueller en anderen\n" +"%s\n" +"gphoto2 komt ZONDER GARANTIE, voor zover de wet dit toestaat. U mag het\n" +"programma verder verspreiden en/of wijzigen onder de voorwaarden van de\n" +"GNU General Public License (GPL). Voor meer informatie over deze zaken,\n" +"zie de bestanden genaamd COPYING in de programmatekst.\n" +"\n" +"Deze versie van gphoto2 gebruikt de volgende softwareversies en -opties:\n" + +#: gphoto2/actions.c:1003 +msgid "Could not open 'movie.mjpg'." +msgstr "Kan 'movie.mjpg' niet openen." + +#: gphoto2/actions.c:1010 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Voorbeeldopnames worden als film opgeslagen in '%s'. Druk op Ctrl+C om af te breken.\n" + +#: gphoto2/actions.c:1014 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Voorbeeldopnames worden gedurende %2$d seconden als film opgeslagen in '%1$s'.\n" + +#: gphoto2/actions.c:1019 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Er worden %d voorbeeldopnames als film opgeslagen in '%s'.\n" + +#: gphoto2/actions.c:1029 +msgid "Movie capture error... Exiting." +msgstr "Fout tijdens filmopname... Afgesloten." + +#: gphoto2/actions.c:1034 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Fout tijdens filmopname... Onbekend MIME-type '%s'." + +#: gphoto2/actions.c:1041 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl+C is ingedrukt... Afgesloten.\n" + +#: gphoto2/actions.c:1055 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Filmopname is afgesloten (%d frames)\n" + +#: gphoto2/actions.c:1085 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Er wordt gewacht op gebeurtenissen van de camera. Druk op Ctrl+C om af te breken.\n" + +#: gphoto2/actions.c:1091 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Er wordt gewacht op %d opnames van de camera. Druk op Ctrl+C om af te breken.\n" + +#: gphoto2/actions.c:1096 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Er wordt %d milliseconden gewacht op gebeurtenissen van de camera. Druk op Ctrl+C om af te breken.\n" + +#: gphoto2/actions.c:1101 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Er wordt %d seconden gewacht op gebeurtenissen van de camera. Druk op Ctrl+C om af te breken.\n" + +#: gphoto2/actions.c:1104 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Er wordt gewacht op %d gebeurtenissen van de camera. Druk op Ctrl+C om af te breken.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Er wordt gewacht op een %s-gebeurtenis van de camera. Druk op Ctrl+C om af te breken.\n" + +#: gphoto2/actions.c:1152 gphoto2/actions.c:1166 gphoto2/actions.c:1178 +#: gphoto2/actions.c:1216 gphoto2/actions.c:1224 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "gebeurtenis is gevonden; het wachten wordt beëindigd\n" + +#: gphoto2/actions.c:1188 gphoto2/main.c:824 +msgid "Could not set folder." +msgstr "Kan de map niet instellen." + +#: gphoto2/actions.c:1194 gphoto2/main.c:831 +msgid "Could not get image." +msgstr "Kan opname niet verkrijgen." + +#: gphoto2/actions.c:1201 gphoto2/main.c:838 +msgid "Buggy libcanon.so?" +msgstr "Fouten in libcanon.so?" + +#: gphoto2/actions.c:1211 gphoto2/main.c:850 +msgid "Could not delete image." +msgstr "Kan opname niet verwijderen." + +#: gphoto2/actions.c:1243 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Het verkrijgen van opslaginformatie is bij deze camera niet mogelijk.\n" + +#: gphoto2/actions.c:1258 +#, c-format +msgid "Read-Write" +msgstr "lezen+schrijven" + +#: gphoto2/actions.c:1261 +#, c-format +msgid "Read-Only" +msgstr "alleen-lezen" + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Read-only with delete" +msgstr "alleen-lezen plus verwijderen" + +#: gphoto2/actions.c:1267 gphoto2/actions.c:1277 +#, c-format +msgid "Unknown" +msgstr "[onbekend]" + +#: gphoto2/actions.c:1280 +#, c-format +msgid "Fixed ROM" +msgstr "vaste ROM" + +#: gphoto2/actions.c:1283 +#, c-format +msgid "Removable ROM" +msgstr "verwijderbare ROM" + +#: gphoto2/actions.c:1286 +#, c-format +msgid "Fixed RAM" +msgstr "vaste RAM" + +#: gphoto2/actions.c:1289 +#, c-format +msgid "Removable RAM" +msgstr "verwijderbare RAM" + +#: gphoto2/actions.c:1299 +#, c-format +msgid "Undefined" +msgstr "[ongedefinieerd]" + +#: gphoto2/actions.c:1302 +#, c-format +msgid "Generic Flat" +msgstr "gewoon vlak" + +#: gphoto2/actions.c:1305 +#, c-format +msgid "Generic Hierarchical" +msgstr "gewoon hiërarchisch" + +#: gphoto2/actions.c:1308 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "camera-layout (DCIM)" + +#: gphoto2/actions.c:1346 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Verkoper/product-ID 0x%x/0x%x is herschreven naar 0x%x/0x%x" + +#: gphoto2/actions.c:1414 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "NEEM ALTIJD DE VOLGENDE REGELS OP BIJ HET ZENDEN VAN DEBUG-MELDINGEN NAAR DE MAILINGLIJST:" + +#: gphoto2/actions.c:1429 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s is gecompileerd met de volgende opties:" + +#: gphoto2/actions.c:1560 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s is niet gevonden in instellingenboom." + +#: gphoto2/actions.c:1609 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Verkrijgen van waarde van tekstonderdeel %s is mislukt." + +#: gphoto2/actions.c:1626 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Verkrijgen van waardes van bereikonderdeel %s is mislukt." + +#: gphoto2/actions.c:1638 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Verkrijgen van waardes van schakelonderdeel %s is mislukt." + +#: gphoto2/actions.c:1650 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Verkrijgen van waardes van datum-/tijd-onderdeel %s is mislukt." + +# FIXME: Cryptic sentence - don't know what is meant here. +#: gphoto2/actions.c:1659 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Bij het instellen 'nu' gebruiken voor de huidige tijd.\n" + +#: gphoto2/actions.c:1681 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Verkrijgen van waardes van radio-onderdeel %s is mislukt." + +#: gphoto2/actions.c:1725 +#, c-format +msgid "Property %s is read only." +msgstr "Eigenschap %s is alleen-lezen." + +#: gphoto2/actions.c:1739 gphoto2/actions.c:1976 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Instellen van waarde van tekstonderdeel %s als %s is mislukt." + +#: gphoto2/actions.c:1749 gphoto2/actions.c:1986 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "De gegeven waarde %s is geen drijvendekommagetal." + +#: gphoto2/actions.c:1754 gphoto2/actions.c:1991 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "De gegeven waarde %f ligt niet in het verwachte bereik %f - %f." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Instellen van waarde van bereikonderdeel %s als %f is mislukt." + +#: gphoto2/actions.c:1769 gphoto2/actions.c:2006 +msgid "off" +msgstr "uit" + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +msgid "false" +msgstr "onwaar" + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +msgid "on" +msgstr "aan" + +#: gphoto2/actions.c:1776 gphoto2/actions.c:2013 +msgid "true" +msgstr "waar" + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "De gegeven waarde %s is geen geldige schakelwaarde." + +#: gphoto2/actions.c:1787 gphoto2/actions.c:2024 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Instellen van waardes %s van schakelonderdeel %s is mislukt." + +#: gphoto2/actions.c:1799 +msgid "now" +msgstr "nu" + +#: gphoto2/actions.c:1811 gphoto2/actions.c:2037 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "De gegeven waarde %s is geen geldige tijd, noch een geheel getal." + +#: gphoto2/actions.c:1819 gphoto2/actions.c:2044 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Instellen van datum-/tijd-onderdeel %s als %s is mislukt." + +#: gphoto2/actions.c:1866 gphoto2/actions.c:1930 gphoto2/actions.c:2074 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Keuze %s is niet gevonden in lijst met keuzes." + +#: gphoto2/actions.c:1874 gphoto2/actions.c:2082 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Het %s-onderdeel is niet instelbaar." + +#: gphoto2/actions.c:1881 gphoto2/actions.c:1949 gphoto2/actions.c:2089 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Instellen van nieuwe configuratiewaarde %s voor configuratie-item %s is mislukt." + +#: gphoto2/actions.c:1942 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "Assistent %s heeft geen geïndexeerde keuzelijst. Gebruik in plaats daarvan --set-config-value." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Ongeldig bestandsnummer. U hebt %i opgegeven, maar er zijn maar %i bestanden beschikbaar in '%s' en zijn onderliggende mappen. Bepaal een geldig bestandsnummer via een weergave van de bestanden." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Er zijn geen bestanden in map '%s'." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Ongeldig bestandsnummer. U hebt %i opgegeven, maar er is maar één bestand beschikbaar in '%s'." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Ongeldig bestandsnummer. U hebt %i opgegeven, maar er zijn maar %i bestanden beschikbaar in '%s'. Bepaal een geldig bestandsnummer via een weergave van de bestanden." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Fout *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Druk op een toets om verder te gaan.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Onvoldoende geheugen beschikbaar." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Actie is geannuleerd" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Verdergaan" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Annuleren" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Fout" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Kan de configuratie niet instellen:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Afsluiten" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Terug" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Tijd: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Waarde: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Ja" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Nee" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Getallen in bestandsnamen aanvullen met voornullen is alleen mogelijk met %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "U kunt een nullenaanvulling van %%n niet gebruiken zonder een precisiewaarde." + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "De bestandsnaam aangeboden door de camera ('%s') bevat geen achtervoegsel." + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Ongeldige opmaak '%s' (fout op positie %i)." + +#: gphoto2/main.c:382 gphoto2/main.c:585 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Overslaan van bestaand bestand %s\n" + +#: gphoto2/main.c:394 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Bestand %s bestaat al. Overschrijven? [j|n] " + +#: gphoto2/main.c:406 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Nieuwe bestandsnaam opgeven? [j|n] " + +#: gphoto2/main.c:418 +#, c-format +msgid "Enter new filename: " +msgstr "Geef nieuwe bestandsnaam: " + +#: gphoto2/main.c:424 +#, c-format +msgid "Saving file as %s\n" +msgstr "Opslaan van bestand als %s\n" + +#: gphoto2/main.c:623 +msgid "Permission denied" +msgstr "Toegang geweigerd" + +#: gphoto2/main.c:785 +msgid "Could not trigger capture." +msgstr "Kan opname niet triggeren." + +#: gphoto2/main.c:815 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Nieuw bestand staat op locatie %s%s%s op de camera\n" + +#: gphoto2/main.c:845 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Verwijderen van bestand %s%s%s op de camera\n" + +#: gphoto2/main.c:855 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Bestand %s%s%s op de camera wordt behouden\n" + +#: gphoto2/main.c:888 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Gebeurtenis MAP_TOEGEVOEGD %s/%s tijdens het wachten; genegeerd.\n" + +#: gphoto2/main.c:898 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Onbekende gebeurtenis %s tijdens het wachten; genegeerd.\n" + +#: gphoto2/main.c:904 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Onbekend gebeurtenistype %d tijdens bulb-wachten; genegeerd.\n" + +#: gphoto2/main.c:922 +msgid "Could not get capabilities?" +msgstr "Kan capabilities niet verkrijgen?" + +#: gphoto2/main.c:930 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Tijdverloopmodus is ingeschakeld (interval: %ds).\n" + +#: gphoto2/main.c:933 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Klaar voor opname, wachtend op SIGUSR1.\n" + +#: gphoto2/main.c:939 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Bulb-modus is ingeschakeld (belichtingstijd: %d s).\n" + +#: gphoto2/main.c:952 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Opnemen van beeldje %d...\n" + +#: gphoto2/main.c:954 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Opnemen van beeldje %d/%d...\n" + +#: gphoto2/main.c:964 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Kan bulb-opname niet inschakelen; afsluitwaarde is %d." + +#: gphoto2/main.c:978 +msgid "Could not end capture (bulb mode)." +msgstr "Kan bulb-opname niet beëindigen." + +#: gphoto2/main.c:991 +msgid "Could not trigger image capture." +msgstr "Kan beeldopname niet triggeren." + +#: gphoto2/main.c:998 +msgid "Could not capture image." +msgstr "Kan geen opname maken." + +#: gphoto2/main.c:1005 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Opname is mislukt (autofocusprobleem?)...\n" + +#: gphoto2/main.c:1016 +msgid "Could not capture." +msgstr "Kan geen opname maken." + +#: gphoto2/main.c:1048 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Er wordt %ld seconden gewacht op het volgende opnamemoment...\n" + +#: gphoto2/main.c:1057 gphoto2/main.c:1098 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Gewekt door SIGUSR1...\n" + +#: gphoto2/main.c:1070 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "niet aan het slapen (%ld seconden achter op schema)\n" + +#: gphoto2/main.c:1213 +#, c-format +msgid "ERROR: " +msgstr "FOUT: " + +#: gphoto2/main.c:1236 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Aan het afbreken...\n" + +#: gphoto2/main.c:1242 +#, c-format +msgid "Aborted.\n" +msgstr "Afgebroken.\n" + +#: gphoto2/main.c:1247 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Aan het annuleren...\n" + +#: gphoto2/main.c:1397 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "" +"Gebruik de syntax 'A:B=C:D' om een USB-apparaat dat gedetecteerd is als\n" +"A:B te behandelen alsof het C:D was. De getallen A, B, C en D moeten\n" +"hexadecimaal zijn en dus beginnen met '0x'.\n" +"\n" + +#: gphoto2/main.c:1570 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 is gecompileerd zonder ondersteuning voor CDK." + +#: gphoto2/main.c:1834 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Actie is geannuleerd.\n" + +#: gphoto2/main.c:1838 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Fout: geen camera gevonden. ***\n" +"\n" + +#: gphoto2/main.c:1840 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Fout (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1845 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Gebruik de optie '--debug' voor het verkijgen van debug-informatie.\n" +"Debug-informatie kan helpen bij het zoeken naar de oplossing van een\n" +"probleem. Als u van plan bent om fout- of debug-meldingen op te sturen\n" +"naar de gphoto-mailinglijst , voer\n" +"dan gphoto uit als volgt:\n" +"\n" + +#: gphoto2/main.c:1866 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Verzeker u ervan dat er voldoende aanhalingstekens rond de argumenten staan.\n" +"\n" + +#: gphoto2/main.c:1933 +msgid "Print complete help message on program usage" +msgstr "Deze lange hulptekst tonen" + +#: gphoto2/main.c:1935 +msgid "Print short message on program usage" +msgstr "Een korte gebruikssamenvatting tonen" + +#: gphoto2/main.c:1937 +msgid "Turn on debugging" +msgstr "Debuggen inschakelen" + +#: gphoto2/main.c:1939 +msgid "Set debug level [error|debug|data|all]" +msgstr "Het debug-niveau instellen [error|debug|data|all]" + +#: gphoto2/main.c:1941 +msgid "Name of file to write debug info to" +msgstr "Debug-informatie in dit bestand opslaan" + +#: gphoto2/main.c:1941 gphoto2/main.c:1946 gphoto2/main.c:1952 +#: gphoto2/main.c:2076 +msgid "FILENAME" +msgstr "BESTAND" + +#: gphoto2/main.c:1943 +msgid "Quiet output (default=verbose)" +msgstr "Stille uitvoer (standaard wordt veel info geven)" + +#: gphoto2/main.c:1945 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Script dat uitgevoerd moet worden na downloads, opnames, enzovoort" + +#: gphoto2/main.c:1952 +msgid "Specify device port" +msgstr "Te gebruiken apparaatpoort" + +#: gphoto2/main.c:1954 +msgid "Specify serial transfer speed" +msgstr "Te gebruiken seriële overdrachtssnelheid" + +#: gphoto2/main.c:1954 +msgid "SPEED" +msgstr "SNELHEID" + +#: gphoto2/main.c:1956 +msgid "Specify camera model" +msgstr "Te gebruiken cameramodel" + +#: gphoto2/main.c:1956 +msgid "MODEL" +msgstr "MODEL" + +#: gphoto2/main.c:1958 +msgid "(expert only) Override USB IDs" +msgstr "(voor experts) USB-ID-paren herschrijven" + +#: gphoto2/main.c:1958 +msgid "USBIDs" +msgstr "USB-ID's" + +#: gphoto2/main.c:1964 +msgid "Display version and exit" +msgstr "Programmaversie tonen en stoppen" + +#: gphoto2/main.c:1966 +msgid "List supported camera models" +msgstr "Lijst van ondersteunde cameramodellen" + +#: gphoto2/main.c:1968 +msgid "List supported port devices" +msgstr "Lijst van ondersteunde poortapparaten" + +#: gphoto2/main.c:1970 +msgid "Display camera/driver abilities" +msgstr "Cameramogelijkheden tonen" + +#: gphoto2/main.c:1977 +msgid "Configure" +msgstr "Configureren" + +#: gphoto2/main.c:1980 +msgid "List configuration tree" +msgstr "Instellingenboom weergeven" + +#: gphoto2/main.c:1982 +msgid "Dump full configuration tree" +msgstr "Volledige instellingenboom weergeven" + +#: gphoto2/main.c:1984 +msgid "Get configuration value" +msgstr "Configuratiewaarde verkrijgen" + +#: gphoto2/main.c:1986 +msgid "Set configuration value or index in choices" +msgstr "Configuratiewaarde of index instellen onder keuzes" + +#: gphoto2/main.c:1988 +msgid "Set configuration value index in choices" +msgstr "Index van configuratiewaarde instellen onder keuzes" + +#: gphoto2/main.c:1990 +msgid "Set configuration value" +msgstr "Configuratiewaarde instellen" + +#: gphoto2/main.c:1992 +msgid "Reset device port" +msgstr "Apparaatpoort resetten" + +#: gphoto2/main.c:1998 +msgid "Keep images on camera after capturing" +msgstr "Beelden op camera behouden na opname" + +#: gphoto2/main.c:2000 +msgid "Remove images from camera after capturing" +msgstr "Beelden van camera verwijderen na opname" + +#: gphoto2/main.c:2002 +msgid "Wait for event(s) from camera" +msgstr "Op gebeurtenis(sen) van camera wachten" + +#: gphoto2/main.c:2002 gphoto2/main.c:2004 gphoto2/main.c:2011 +#: gphoto2/main.c:2027 +msgid "COUNT" +msgstr "AANTAL" + +#: gphoto2/main.c:2004 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Op gebeurtenis(sen) van de camera wachten en vervolgens nieuw opnamen downloaden" + +#: gphoto2/main.c:2007 +msgid "Capture a quick preview" +msgstr "Een snelle voorbeeldopname maken" + +#: gphoto2/main.c:2009 +msgid "Set bulb exposure time in seconds" +msgstr "Bulb-belichtingstijd in seconden" + +#: gphoto2/main.c:2009 gphoto2/main.c:2013 +msgid "SECONDS" +msgstr "SECONDEN" + +#: gphoto2/main.c:2011 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Aantal te maken opnames (standaard=oneindig)" + +#: gphoto2/main.c:2013 +msgid "Set capture interval in seconds" +msgstr "Opname-interval in seconden" + +#: gphoto2/main.c:2015 +msgid "Reset capture interval on signal (default=no)" +msgstr "Opname-interval resetten bij signaal (standaard=nee)" + +#: gphoto2/main.c:2017 +msgid "Capture an image" +msgstr "Een foto-opname maken" + +#: gphoto2/main.c:2019 +msgid "Trigger capture of an image" +msgstr "Een beeldopname triggeren" + +#: gphoto2/main.c:2021 +msgid "Capture an image and download it" +msgstr "Een foto-opname maken en deze downloaden" + +#: gphoto2/main.c:2023 +msgid "Capture a movie" +msgstr "Een film-opname maken" + +#: gphoto2/main.c:2023 +msgid "COUNT or SECONDS" +msgstr "AANTAL of SECONDEN" + +#: gphoto2/main.c:2025 +msgid "Capture an audio clip" +msgstr "Een audio-opname maken" + +#: gphoto2/main.c:2027 +msgid "Wait for shutter release on the camera and download" +msgstr "Wachten op sluiterontspanning van de camera en dan opname direct downloaden" + +#: gphoto2/main.c:2029 +msgid "Trigger image capture" +msgstr "Beeldopname triggeren" + +#: gphoto2/main.c:2035 +msgid "List folders in folder" +msgstr "Mappen in map weergeven" + +#: gphoto2/main.c:2037 +msgid "List files in folder" +msgstr "Bestanden in map weergeven" + +#: gphoto2/main.c:2039 +msgid "Create a directory" +msgstr "Een map aanmaken" + +#: gphoto2/main.c:2039 gphoto2/main.c:2041 +msgid "DIRNAME" +msgstr "MAPNAAM" + +#: gphoto2/main.c:2041 +msgid "Remove a directory" +msgstr "Een map verwijderen" + +#: gphoto2/main.c:2043 +msgid "Display number of files" +msgstr "Het aantal bestanden weergeven" + +#: gphoto2/main.c:2045 +msgid "Get files given in range" +msgstr "Bestanden in gegeven bereik ophalen" + +#: gphoto2/main.c:2045 gphoto2/main.c:2049 gphoto2/main.c:2054 +#: gphoto2/main.c:2061 gphoto2/main.c:2067 gphoto2/main.c:2072 +msgid "RANGE" +msgstr "BEREIK" + +#: gphoto2/main.c:2047 +msgid "Get all files from folder" +msgstr "Alle bestanden in map ophalen" + +#: gphoto2/main.c:2049 +msgid "Get thumbnails given in range" +msgstr "Miniaturen in gegeven bereik ophalen" + +#: gphoto2/main.c:2052 +msgid "Get all thumbnails from folder" +msgstr "Alle miniaturen in map ophalen" + +#: gphoto2/main.c:2054 +msgid "Get metadata given in range" +msgstr "Metagegevens in gegeven bereik ophalen" + +#: gphoto2/main.c:2056 +msgid "Get all metadata from folder" +msgstr "Alle metagegevens in map ophalen" + +#: gphoto2/main.c:2058 +msgid "Upload metadata for file" +msgstr "Metagegevens voor bestand uploaden" + +#: gphoto2/main.c:2061 +msgid "Get raw data given in range" +msgstr "Ruwe gegevens in gegeven bereik ophalen" + +#: gphoto2/main.c:2064 +msgid "Get all raw data from folder" +msgstr "Alle ruwe gegevens in map ophalen" + +#: gphoto2/main.c:2067 +msgid "Get audio data given in range" +msgstr "Audiogegevens in gegeven bereik ophalen" + +#: gphoto2/main.c:2070 +msgid "Get all audio data from folder" +msgstr "Alle audiogegevens in map ophalen" + +#: gphoto2/main.c:2072 +msgid "Delete files given in range" +msgstr "Bestanden in gegeven bereik verwijderen" + +#: gphoto2/main.c:2074 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Alle bestanden in map verwijderen (standaard '--no-recurse')" + +#: gphoto2/main.c:2076 +msgid "Upload a file to camera" +msgstr "Dit bestand naar de camera uploaden" + +#: gphoto2/main.c:2078 +msgid "Specify a filename or filename pattern" +msgstr "Te gebruiken bestandsnaam of patroon" + +#: gphoto2/main.c:2078 +msgid "FILENAME_PATTERN" +msgstr "BESTANDSPATROON" + +#: gphoto2/main.c:2080 +msgid "Specify camera folder (default=\"/\")" +msgstr "Te gebruiken cameramap (standaard='/')" + +#: gphoto2/main.c:2080 +msgid "FOLDER" +msgstr "MAP" + +#: gphoto2/main.c:2082 +msgid "Recursion (default for download)" +msgstr "Recursie (standaard bij downloaden)" + +#: gphoto2/main.c:2084 +msgid "No recursion (default for deletion)" +msgstr "Geen recursie (standaard bij verwijdering)" + +#: gphoto2/main.c:2086 +msgid "Process new files only" +msgstr "Alleen nieuwe bestanden behandelen" + +#: gphoto2/main.c:2088 +msgid "Overwrite files without asking" +msgstr "Bestanden overschrijven zonder te vragen" + +#: gphoto2/main.c:2090 +msgid "Skip existing files" +msgstr "Bestaande bestanden overslaan" + +#: gphoto2/main.c:2096 +msgid "Send file to stdout" +msgstr "Bestand naar standaarduitvoer sturen" + +#: gphoto2/main.c:2098 +msgid "Print filesize before data" +msgstr "Bestandsgrootte voor gegevens afdrukken" + +#: gphoto2/main.c:2100 +msgid "List auto-detected cameras" +msgstr "Automatisch gedetecteerde camera's tonen" + +#: gphoto2/main.c:2104 gphoto2/shell.c:138 +msgid "Show EXIF information" +msgstr "EXIF-informatie tonen" + +#: gphoto2/main.c:2107 gphoto2/shell.c:132 +msgid "Show info" +msgstr "Informatie tonen" + +#: gphoto2/main.c:2109 +msgid "Show summary" +msgstr "Samenvatting tonen" + +#: gphoto2/main.c:2111 +msgid "Show camera driver manual" +msgstr "Handleiding van camerastuurprogramma tonen" + +# De originele tekst is onjuist; zie man-pagina. +#: gphoto2/main.c:2113 +msgid "About the camera driver manual" +msgstr "Over het camerastuurprogramma" + +#: gphoto2/main.c:2115 +msgid "Show storage information" +msgstr "Opslaginformatie tonen" + +#: gphoto2/main.c:2117 +msgid "gPhoto shell" +msgstr "Een gPhoto-shell starten" + +#: gphoto2/main.c:2123 +msgid "Common options" +msgstr "Standaardopties" + +#: gphoto2/main.c:2125 +msgid "Miscellaneous options (unsorted)" +msgstr "Algemene opties (ongesorteerd)" + +#: gphoto2/main.c:2127 +msgid "Get information on software and host system (not from the camera)" +msgstr "Informatie over hostsysteem en -software (niet uit de camera)" + +#: gphoto2/main.c:2129 +msgid "Specify the camera to use" +msgstr "Te gebruiken cameramodel" + +#: gphoto2/main.c:2131 +msgid "Camera and software configuration" +msgstr "Instellingen van camera en software" + +# Dit is omschrijvend kopje boven een groepje opties. +#: gphoto2/main.c:2133 +msgid "Capture an image from or on the camera" +msgstr "Het maken van een opname" + +#: gphoto2/main.c:2135 +msgid "Downloading, uploading and manipulating files" +msgstr "Downloaden, uploaden en bestanden manipuleren" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Een afbeeldings-ID moet een getal groter dan nul zijn." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Afbeeldings-ID %i is te groot." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Bereiken moeten worden gescheiden door ','." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Bereiken moeten beginnen met een getal." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Onverwacht teken '%c'." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Afnemende bereiken zijn niet toegestaan. U kunt een bereik opgeven van %i tot %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Fout (%i: '%s') ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Naar een map op de camera gaan" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "map" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Naar een map op de lokale schijf gaan" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Deze gPhoto-shell afsluiten" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Een bestand downloaden" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[map/]bestandsnaam" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Een bestand uploaden" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Een miniatuurvoorbeeld downloaden" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Ruwe gegevens downloaden" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Verwijderen" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Map aanmaken" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Map verwijderen" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Omschrijving van commando('s) tonen" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[commando]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "De inhoud van de huidige map tonen" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[map/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Configuratievariabelen tonen" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Een configuratievariabele verkrijgen" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "naam" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Een configuratievariabele instellen" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "naam=waarde" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Index van configuratievariabele instellen" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "naam=indexwaarde" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Eén enkele opname maken" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Eén opname maken en deze downloaden" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Een voorbeeldopname maken" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Op een gebeurtenis wachten" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "aantal of seconden" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Op opnamen van de camera wachten en deze downloaden" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Op gebeurtenissen en opnamen wachten en deze downloaden" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Ongeldig commando." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Het commando '%s' vereist een argument." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Ongeldig pad." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Kan persoonlijke map niet vinden." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Kan niet naar lokale map '%s' gaan." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Lokale map is nu '%s'." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Map op andere computer is nu '%s'." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "Commando 'set-config' vereist een tweede argument.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "Commando 'set-config-value' vereist een tweede argument.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "Commando 'set-config-index' vereist een tweede argument.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "" +"Commando '%s' is niet gevonden.\n" +"Gebruik 'help' om een lijst van beschikbare commando's te krijgen." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Hulp over \"%s\":" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Gebruik: " + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Omschrijving:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Argumenten tussen vierkante haken [] zijn optioneel" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Beschikbare commando's:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Om hulp te krijgen voor een bepaald commando, typ 'help commandonaam'." + +#~ msgid " Name: '%s'\n" +#~ msgstr " Naam: '%s'\n" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "U kunt '%%n' niet gebruiken in combinatie met tijdelijke bestanden." + +#~ msgid "Could not close camera connection." +#~ msgstr "Kan verbinding met camera niet verbreken." + +#~ msgid "Sleeping for %d second(s)...\n" +#~ msgstr "%d seconde(n) aan het slapen...\n" + +#~ msgid "New file %s/%s, downloading...\n" +#~ msgstr "Nieuw bestand %s/%s, downloaden...\n" + +#~ msgid "There are no folders in folder '%s'." +#~ msgstr "Er zijn geen mappen in map '%s'." + +#~ msgid "There are %i folders in folder '%s':" +#~ msgstr "Er zijn %i mappen in map '%s':" + +#~ msgid "There are %i files in folder '%s':" +#~ msgstr "Er zijn %i bestanden in map '%s':" + +#~ msgid "Summary of camera status" +#~ msgstr "Samenvatting van camerastatus" + +#~ msgid "path" +#~ msgstr "pad" + +#~ msgid "speed" +#~ msgstr "snelheid" + +#~ msgid "model" +#~ msgstr "model" + +#~ msgid "usbid" +#~ msgstr "USB-ID" + +#~ msgid "folder" +#~ msgstr "map" + +#~ msgid "count" +#~ msgstr "aantal" + +#~ msgid "Usage:\n" +#~ msgstr "Gebruik: \n" + +#~ msgid "" +#~ "Short/long options (& argument) Description\n" +#~ "--------------------------------------------------------------------------------\n" +#~ msgstr "" +#~ "Korte/lange opties (& argument) Omschrijving\n" +#~ "--------------------------------------------------------------------------------\n" + +#~ msgid "Jan" +#~ msgstr "Jan" + +#~ msgid "January" +#~ msgstr "Januari" + +#~ msgid "Feb" +#~ msgstr "Feb" + +#~ msgid "February" +#~ msgstr "Februari" + +#~ msgid "Mar" +#~ msgstr "Mrt" + +#~ msgid "March" +#~ msgstr "Maart" + +#~ msgid "Apr" +#~ msgstr "Apr" + +#~ msgid "April" +#~ msgstr "April" + +#~ msgid "May" +#~ msgstr "Mei" + +#~ msgid "Jun" +#~ msgstr "Jun" + +#~ msgid "June" +#~ msgstr "Juni" + +#~ msgid "Jul" +#~ msgstr "Jul" + +#~ msgid "July" +#~ msgstr "Juli" + +#~ msgid "Aug" +#~ msgstr "Aug" + +#~ msgid "August" +#~ msgstr "Augustus" + +#~ msgid "Sep" +#~ msgstr "Sep" + +#~ msgid "September" +#~ msgstr "September" + +#~ msgid "Oct" +#~ msgstr "Okt" + +#~ msgid "October" +#~ msgstr "Oktober" + +#~ msgid "Nov" +#~ msgstr "Nov" + +#~ msgid "November" +#~ msgstr "November" + +#~ msgid "Dec" +#~ msgstr "Dec" + +#~ msgid "December" +#~ msgstr "December" + +#~ msgid "Sun" +#~ msgstr "zo" + +#~ msgid "Sunday" +#~ msgstr "zondag" + +#~ msgid "Monday" +#~ msgstr "maandag" + +#~ msgid "Tue" +#~ msgstr "di" + +#~ msgid "Tuesday" +#~ msgstr "dinsdag" + +#~ msgid "Wed" +#~ msgstr "wo" + +#~ msgid "Wednesday" +#~ msgstr "woensdag" + +#~ msgid "Thu" +#~ msgstr "do" + +#~ msgid "Thursday" +#~ msgstr "donderdag" + +#~ msgid "Fri" +#~ msgstr "vr" + +#~ msgid "Friday" +#~ msgstr "vrijdag" + +#~ msgid "Sat" +#~ msgstr "za" + +#~ msgid "Saturday" +#~ msgstr "zaterdag" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/pa.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/pa.po new file mode 100644 index 00000000..9add3288 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/pa.po @@ -0,0 +1,1297 @@ +# translation of gphoto2-2.1.6rc1.po to Punjabi +# Copyright (C) 2005 Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# Amanpreet Singh Alam , 2005. +# Amanpreet Singh Alam , 2006,2007 +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2-2.1.6rc1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-04-11 13:08-0400\n" +"PO-Revision-Date: 2007-06-23 08:36+0530\n" +"Last-Translator: Amanpreet Singh Alam \n" +"Language-Team: Punjabi \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.9.1\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: gphoto2/actions.c:124 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "ਫੋਲਡਰ '%s' ਵਿੱਚ ਫਾਇਲਾਂ ਦੀ ਗਿਣਤੀ: %i\n" + +#: gphoto2/actions.c:145 +#, fuzzy, c-format +msgid "There are no folders in folder '%s'." +msgstr "ਫੋਲਡਰ '%s' ਵਿੱਚ ਕੋਈ ਫਾਇਲ ਨਹੀਂ ਹੈ।" + +#: gphoto2/actions.c:149 +#, fuzzy, c-format +msgid "There is one folder in folder '%s':" +msgstr "'%2$s' ਫੋਲਡਰ ਵਿੱਚ %1$d ਫੋਲਡਰ ਹੈ।\n" + +#: gphoto2/actions.c:153 +#, fuzzy, c-format +msgid "There are %i folders in folder '%s':" +msgstr "ਫੋਲਡਰ '%s' ਵਿੱਚ ਕੋਈ ਫਾਇਲ ਨਹੀਂ ਹੈ।" + +#: gphoto2/actions.c:196 gphoto2/foreach.c:277 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "ਫੋਲਡਰ '%s' ਵਿੱਚ ਕੋਈ ਫਾਇਲ ਨਹੀਂ ਹੈ।" + +#: gphoto2/actions.c:200 +#, fuzzy, c-format +msgid "There is one file in folder '%s':" +msgstr "ਫੋਲਡਰ '%s' ਵਿੱਚ ਕੋਈ ਫਾਇਲ ਨਹੀਂ ਹੈ।\n" + +#: gphoto2/actions.c:204 +#, fuzzy, c-format +msgid "There are %i files in folder '%s':" +msgstr "ਫੋਲਡਰ '%s' ਵਿੱਚ ਕੋਈ ਫਾਇਲ ਨਹੀਂ ਹੈ।" + +#: gphoto2/actions.c:225 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "ਫਾਇਲ '%s' (ਫੋਲਡਰ '%s') ਉੱਤੇ ਜਾਣਕਾਰੀ:\n" + +#: gphoto2/actions.c:227 +#, c-format +msgid "File:\n" +msgstr "ਫਾਇਲ:\n" + +#: gphoto2/actions.c:229 gphoto2/actions.c:263 gphoto2/actions.c:279 +#, c-format +msgid " None available.\n" +msgstr " ਉਪਲੱਬਧ ਨਹੀਂ।\n" + +#: gphoto2/actions.c:232 +#, c-format +msgid " Name: '%s'\n" +msgstr " ਨਾਂ: '%s'\n" + +#: gphoto2/actions.c:234 gphoto2/actions.c:266 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " ਮਾਈਮ ਕਿਸਮ: '%s'\n" + +#: gphoto2/actions.c:236 gphoto2/actions.c:268 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " ਅਕਾਰ: %li ਬਾਈਟ\n" + +#: gphoto2/actions.c:238 gphoto2/actions.c:270 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " ਚੌੜਾਈ: %i ਪਿਕਸਲ\n" + +#: gphoto2/actions.c:240 gphoto2/actions.c:272 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " ਉਚਾਈ: %i ਪਿਕਸਲ\n" + +#: gphoto2/actions.c:242 gphoto2/actions.c:274 +#, c-format +msgid " Downloaded: %s\n" +msgstr " ਡਾਊਨਲੋਡ ਕੀਤੇ: %s\n" + +#: gphoto2/actions.c:243 gphoto2/actions.c:275 gphoto2/actions.c:287 +#: gphoto2/actions.c:624 gphoto2/actions.c:626 gphoto2/actions.c:654 +#: gphoto2/actions.c:657 gphoto2/actions.c:660 gphoto2/actions.c:663 +#: gphoto2/actions.c:1286 +msgid "yes" +msgstr "ਹਾਂ" + +#: gphoto2/actions.c:243 gphoto2/actions.c:275 gphoto2/actions.c:287 +#: gphoto2/actions.c:624 gphoto2/actions.c:626 gphoto2/actions.c:654 +#: gphoto2/actions.c:657 gphoto2/actions.c:660 gphoto2/actions.c:663 +#: gphoto2/actions.c:1280 +msgid "no" +msgstr "ਨਹੀਂ" + +#: gphoto2/actions.c:245 +#, c-format +msgid " Permissions: " +msgstr " ਅਧਿਕਾਰ: " + +#: gphoto2/actions.c:248 +#, c-format +msgid "read/delete" +msgstr "ਪੜੋ/ਹਟਾਓ" + +#: gphoto2/actions.c:250 +#, c-format +msgid "read" +msgstr "ਪੜੋ" + +#: gphoto2/actions.c:252 +#, c-format +msgid "delete" +msgstr "ਹਟਾਓ" + +#: gphoto2/actions.c:254 +#, c-format +msgid "none" +msgstr "ਕੋਈ ਨਹੀਂ" + +#: gphoto2/actions.c:258 +#, c-format +msgid " Time: %s" +msgstr " ਸਮਾਂ: %s" + +#: gphoto2/actions.c:261 +#, c-format +msgid "Thumbnail:\n" +msgstr "ਥੰਮਨੇਲ:\n" + +#: gphoto2/actions.c:277 +#, c-format +msgid "Audio data:\n" +msgstr "ਆਡੀਓ ਡਾਟਾ:\n" + +#: gphoto2/actions.c:282 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime ਕਿਸਮ: '%s'\n" + +#: gphoto2/actions.c:284 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " ਅਕਾਰ: %li ਬਾਇਟ\n" + +#: gphoto2/actions.c:286 +#, c-format +msgid " Downloaded: %s\n" +msgstr " ਡਾਊਨਲੋਡ: %s\n" + +#: gphoto2/actions.c:455 +msgid "Could not parse EXIF data." +msgstr "EXIF ਡਾਟਾ ਪਾਰਸ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ।" + +#: gphoto2/actions.c:459 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF ਟੈਗ:" + +#: gphoto2/actions.c:462 +msgid "Tag" +msgstr "ਟੈਗ" + +#: gphoto2/actions.c:464 +msgid "Value" +msgstr "ਮੁੱਲ" + +#: gphoto2/actions.c:485 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "" + +#: gphoto2/actions.c:494 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "" + +#: gphoto2/actions.c:512 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "ਸਹਾਇਕ ਕੈਮਰਿਆਂ ਦੀ ਗਿਣਤੀ: %i\n" + +#: gphoto2/actions.c:513 +#, c-format +msgid "Supported cameras:\n" +msgstr "ਸਹਾਇਕ ਕੈਮਰੇ:\n" + +#: gphoto2/actions.c:526 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (ਜਾਂਚ ਜਾਰੀ)\n" + +#: gphoto2/actions.c:529 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (ਤਜਰਬੇ ਅਧੀਨ)\n" + +#: gphoto2/actions.c:534 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:564 +#, c-format +msgid "Devices found: %i\n" +msgstr "ਜੰਤਰ ਮਿਲਿਆ: %i\n" + +#: gphoto2/actions.c:565 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"ਮਾਰਗ ਵੇਰਵਾ\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:603 gphoto2/actions.c:608 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:603 +msgid "Model" +msgstr "ਮਾਡਲ" + +#: gphoto2/actions.c:603 +msgid "Port" +msgstr "ਪੋਰਟ" + +#: gphoto2/actions.c:604 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:622 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "ਕੈਮਰੇ ਲਈ ਯੋਗਤਾ : %s\n" + +#: gphoto2/actions.c:623 +#, c-format +msgid "Serial port support : %s\n" +msgstr "ਸੀਰੀਅਲ ਪੋਰਟ ਸਹਿਯੋਗ : %s\n" + +#: gphoto2/actions.c:625 +#, c-format +msgid "USB support : %s\n" +msgstr "USB ਸਹਾਇਕ : %s\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "ਸਹਾਇਕ ਸੰਚਾਰ ਗਤੀ :\n" + +#: gphoto2/actions.c:630 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:633 +#, c-format +msgid "Capture choices :\n" +msgstr "ਕੈਪਚਰ ਚੋਣ :\n" + +#: gphoto2/actions.c:635 +#, c-format +msgid " : Image\n" +msgstr " : ਤਸਵੀਰ\n" + +#: gphoto2/actions.c:639 +#, c-format +msgid " : Video\n" +msgstr " : ਵੀਡਿਓ\n" + +#: gphoto2/actions.c:643 +#, c-format +msgid " : Audio\n" +msgstr " : ਆਡੀਓ\n" + +#: gphoto2/actions.c:647 +#, c-format +msgid " : Preview\n" +msgstr " : ਝਲਕ\n" + +#: gphoto2/actions.c:651 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr "" + +#: gphoto2/actions.c:653 +#, c-format +msgid "Configuration support : %s\n" +msgstr "ਸੰਰਚਨਾ ਸਹਾਇਕ : %s\n" + +#: gphoto2/actions.c:655 +#, fuzzy, c-format +msgid "Delete files on camera support : %s\n" +msgstr "ਕੈਮਰੇ ਤੋਂ ਸਭ ਫਾਇਲਾਂ ਹਟਾਓ : %s\n" + +#: gphoto2/actions.c:658 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "ਫਾਇਲ ਝਲਕ (ਥੰਮਨੇਲ) ਸਹਿਯੋਗ: %s\n" + +#: gphoto2/actions.c:661 +#, c-format +msgid "File upload support : %s\n" +msgstr "ਫਾਇਲ ਅੱਪਲੋਡ ਸਹਿਯੋਗ : %s\n" + +#: gphoto2/actions.c:678 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "ਪੋਰਟ 'serial:/dev/ttyS0' ਜਾਂ 'usb:' ਵਾਂਗ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ, ਪਰ '%s' ਵਿੱਚ ਕਾਲਨ ਨਹੀਂ ਹੈ, ਇਸਕਰਕੇ ਮੈਂ ਤੁਹਾਡੇ ਲਈ ਅੰਦਾਜ਼ਾ ਲਗਾਉਦਾ ਹਾਂ।" + +#: gphoto2/actions.c:717 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "ਪੋਰਟ, ਜੋ ਤੁਸੀਂ ਦਿੱਤੀ ਹੈ ('%s'), ਨਹੀਂ ਲੱਭੀ ਜਾ ਸਕੀ। ਉਹ ਪੋਰਟ ਦਿਓ ਜੀ, ਜੋ ਕਿ 'gphoto2 --list-ports' ਰਾਹੀਂ ਲੱਭੀ ਗਈ ਹੈ ਅਤੇ ਇਹ ਜਾਂਚ ਲਵੋ ਕਿ ਸ਼ਬਦ ਠੀਕ ਤਰ੍ਹਾਂ ਲਿਖੇ ਗਏ ਹਨ (ਭਾਵ ਕਿ 'serial:' ਜਾਂ 'usb:' ਅੱਗੇ ਲਿਖਿਆ ਗਿਆ ਹੈ)।" + +#: gphoto2/actions.c:755 +#, c-format +msgid "About the camera driver:" +msgstr "ਕੈਮਰਾ ਮਾਡਲ ਬਾਰੇ:" + +#: gphoto2/actions.c:768 +#, c-format +msgid "Camera summary:" +msgstr "ਕੈਮਰਾ ਸੰਖੇਪ:" + +#: gphoto2/actions.c:781 +#, c-format +msgid "Camera manual:" +msgstr "ਕੈਮਰਾ ਦਸਤਾਵੇਜ਼:" + +#: gphoto2/actions.c:796 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "ਤੁਸੀਂ ਸੀਰੀਅਲ ਪੋਰਟ ਦੀ ਸਪੀਡ ਹੀ ਦੇ ਸਕਦੇ ਹੋ।" + +#: gphoto2/actions.c:847 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-2004 Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" + +#: gphoto2/actions.c:860 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2 ਲਈ Bart van Leeuwen ਨੇ ਤਿਆਰ ਕੀਤਾ\n" + +#: gphoto2/actions.c:933 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "USB ਵਿਕਰੇਤਾ/ਉਤਪਾਦ id 0x%x/0x%x with 0x%x/0x%x ਨੂੰ ਅਣਡਿੱਠੀ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ" + +#: gphoto2/actions.c:984 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" + +#: gphoto2/actions.c:999 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s ਨੂੰ ਅੱਗੇ ਦਿੱਤੇ ਚੋਣਾਂ ਨਾਲ ਤਿਆਰ ਕੀਤਾ ਗਿਆ ਹੈ:" + +#: gphoto2/actions.c:1096 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s ਸੰਰਚਨਾ ਲੜੀ ਵਿੱਚ ਨਹੀਂ ਲੱਭਿਆ ਜਾ ਸਕਿਆ।" + +#: gphoto2/actions.c:1138 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "ਪਾਠ ਸਹਾਇਕ %s ਦਾ ਮੁੱਲ ਲੈਣ ਲਈ ਫੇਲ੍ਹ ਹੋਇਆ।" + +#: gphoto2/actions.c:1155 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "%s ਰੇਜ਼ ਸਹਾਇਕ ਦਾ ਮੁੱਲ ਲੈਣ ਲਈ ਫੇਲ੍ਹ" + +#: gphoto2/actions.c:1167 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "%s ਟਾਗਲ ਸਹਾਇਕ ਦਾ ਮੁੱਲ ਲੈਣ ਲਈ ਫੇਲ੍ਹ" + +#: gphoto2/actions.c:1179 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "%s ਮਿਤੀ/ਸਮਾਂ ਸਹਾਇਕ ਦਾ ਮੁੱਲ ਲੈਣ ਲਈ ਫੇਲ੍ਹ" + +#: gphoto2/actions.c:1209 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "%s ਰੇਡੀਓ ਸਹਾਇਕ ਦਾ ਮੁੱਲ ਲੈਣ ਲਈ ਫੇਲ੍ਹ" + +#: gphoto2/actions.c:1250 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "" + +#: gphoto2/actions.c:1260 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "" + +#: gphoto2/actions.c:1265 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "" + +#: gphoto2/actions.c:1271 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "" + +#: gphoto2/actions.c:1280 +msgid "off" +msgstr "ਬੰਦ" + +#: gphoto2/actions.c:1281 +msgid "false" +msgstr "ਗਲਤ" + +#: gphoto2/actions.c:1286 +msgid "on" +msgstr "ਚਾਲੂ" + +#: gphoto2/actions.c:1287 +msgid "true" +msgstr "ਠੀਕ" + +#: gphoto2/actions.c:1291 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "" + +#: gphoto2/actions.c:1297 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "" + +#: gphoto2/actions.c:1317 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "" + +#: gphoto2/actions.c:1354 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "" + +#: gphoto2/actions.c:1362 +#, c-format +msgid "The %s widget is not configurable." +msgstr "" + +#: gphoto2/actions.c:1369 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "" + +#: gphoto2/foreach.c:254 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "" + +#: gphoto2/foreach.c:283 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "ਗਲਤ ਫਾਇਲ ਨੰਬਰ ਹੈ। ਤੁਸੀਂ %i ਦਿੱਤਾ ਹੈ, ਪਰ '%s' ਵਿੱਚ ਸਿਰਫ਼ ਇੱਕ ਹੀ ਫਾਇਲ ਹੈ।" + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "ਗਲਤ ਫਾਇਲ ਨੰਬਰ ਹੈ। ਤੁਸੀਂ %1$i ਦਿੱਤਾ ਹੈ, ਪਰ '%3$s' ਵਿੱਚ ਸਿਰਫ਼ %2$i ਹੀ ਫਾਇਲਾਂ ਹਨ। ਫਾਇਲ ਲਿਸਟ ਤੋਂ ਪਹਿਲਾਂ ਠੀਕ ਫਾਇਲਾਂ ਦੀ ਗਿਣਤੀ ਲਵੋ ਜੀ।" + +#: gphoto2/gp-params.c:59 +#, c-format +msgid "*** Error *** \n" +msgstr "*** ਗਲਤੀ *** \n" + +#: gphoto2/gp-params.c:232 +#, c-format +msgid "Press any key to continue.\n" +msgstr "ਜਾਰੀ ਰੱਖਣ ਲਈ ਕੋਈ ਵੀ ਸਵਿੱਚ ਦਬਾਉ।\n" + +#: gphoto2/gp-params.c:249 +#, c-format +msgid "Not enough memory." +msgstr "ਲੋੜੀਦੀ ਮੈਮੋਰੀ ਨਹੀਂ ਹੈ।" + +#: gphoto2/gphoto2-cmd-capture.c:201 +msgid "Operation cancelled" +msgstr "ਕਾਰਵਾਈ ਰੱਦ ਕੀਤੀ ਗਈ" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "ਜਾਰੀ ਰੱਖੋ" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "ਰੱਦ ਕਰੋ" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "ਗਲਤੀ" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "ਸੰਰਚਨਾ ਸੈੱਟ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "ਬੰਦ ਕਰੋ" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "ਪਿੱਛੇ" + +#: gphoto2/gphoto2-cmd-config.c:254 +msgid "Time: " +msgstr "ਸਮਾਂ: " + +#: gphoto2/gphoto2-cmd-config.c:313 gphoto2/gphoto2-cmd-config.c:341 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "ਮੁੱਲ: " + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "ਹਾਂ" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "ਨਹੀਂ" + +#: gphoto2/main.c:167 gphoto2/main.c:1638 +msgid "Turn on debugging" +msgstr "" + +#: gphoto2/main.c:168 gphoto2/main.c:1640 +msgid "Quiet output (default=verbose)" +msgstr "" + +#: gphoto2/main.c:172 gphoto2/main.c:1644 +msgid "Display version and exit" +msgstr "ਵਰਜਨ ਵੇਖਾਓ ਅਤੇ ਬੰਦ ਕਰੋ" + +#: gphoto2/main.c:173 +msgid "Displays this help screen" +msgstr "" + +#: gphoto2/main.c:174 gphoto2/main.c:1646 +msgid "List supported camera models" +msgstr "ਸਹਾਇਕ ਕੈਮਰਾ ਮਾਡਲ ਵੇਖਾਓ" + +#: gphoto2/main.c:175 gphoto2/main.c:1648 +msgid "List supported port devices" +msgstr "ਸਹਾਇਕ ਪੋਰਟ ਜੰਤਰ ਵੇਖਾਓ" + +#: gphoto2/main.c:176 gphoto2/main.c:1650 +msgid "Send file to stdout" +msgstr "" + +#: gphoto2/main.c:177 gphoto2/main.c:1652 +msgid "Print filesize before data" +msgstr "ਡਾਟੇ ਤੋਂ ਪਹਿਲਾਂ ਫਾਇਲ-ਆਕਾਰ ਛਾਪੋ" + +#: gphoto2/main.c:178 gphoto2/main.c:1654 +msgid "List auto-detected cameras" +msgstr "ਆਟੋ-ਖੋਜੇ ਕੈਮਰੇ ਦਿਓ" + +#: gphoto2/main.c:181 gphoto2/main.c:1656 +msgid "Specify port device" +msgstr "ਪੋਰਟ ਜੰਤਰ ਦਿਓ" + +#: gphoto2/main.c:182 gphoto2/main.c:1658 +msgid "Specify serial transfer speed" +msgstr "ਲੜੀ ਸੰਚਾਰ ਗਤੀ ਦਿਓ" + +#: gphoto2/main.c:183 gphoto2/main.c:1660 +msgid "Specify camera model" +msgstr "ਕੈਮਰਾ ਮਾਡਲ ਵੇਖਾਓ" + +#: gphoto2/main.c:184 gphoto2/main.c:1662 +#, fuzzy +msgid "Specify a filename" +msgstr "ਕੀ ਨਵਾਂ ਫਾਇਲ ਨਾਂ ਦੇਣਾ ਹੈ? [y|n] " + +#: gphoto2/main.c:185 gphoto2/main.c:1664 +msgid "(expert only) Override USB IDs" +msgstr "" + +#: gphoto2/main.c:188 gphoto2/main.c:1666 +#, fuzzy +msgid "Display camera abilities" +msgstr "ਕੈਮਰਾ/ਡਰਾਇਵਰ ਯੋਗਤਾ ਵੇਖਾਓ" + +#: gphoto2/main.c:189 gphoto2/main.c:1668 +msgid "Specify camera folder (default=\"/\")" +msgstr "ਕੈਮਰਾ ਫੋਲਡਰ ਦਿਓ (ਮੂਲ=\"/\")" + +#: gphoto2/main.c:190 gphoto2/main.c:1670 +msgid "Recursion (default for download)" +msgstr "" + +#: gphoto2/main.c:191 gphoto2/main.c:1672 +msgid "No recursion (default for deletion)" +msgstr "" + +#: gphoto2/main.c:192 gphoto2/main.c:1674 +msgid "Process new files only" +msgstr "ਨਵੀਆਂ ਫਾਇਲਾਂ ਉੱਤੇ ਕਾਰਵਾਈ" + +#: gphoto2/main.c:193 gphoto2/main.c:1676 +msgid "List folders in folder" +msgstr "ਫੋਲਡਰ ਵਿੱਚ ਫੋਲਡਰ ਵੇਖਾਓ" + +#: gphoto2/main.c:194 gphoto2/main.c:1678 +msgid "List files in folder" +msgstr "ਫੋਲਡਰ ਵਿੱਚ ਫਾਇਲਾਂ ਵੇਖਾਓ" + +#: gphoto2/main.c:195 gphoto2/main.c:196 +msgid "name" +msgstr "ਨਾਂ" + +#: gphoto2/main.c:195 gphoto2/main.c:1680 +msgid "Create a directory" +msgstr "ਇੱਕ ਡਾਇਰੈਕਟਰੀ ਬਣਾਓ" + +#: gphoto2/main.c:196 gphoto2/main.c:1682 +msgid "Remove a directory" +msgstr "ਇੱਕ ਡਾਇਰੈਕਟਰੀ ਹਟਾਓ" + +#: gphoto2/main.c:197 gphoto2/main.c:1684 +msgid "Display number of files" +msgstr "ਫਾਇਲਾਂ ਦੀ ਗਿਣਤੀ ਵੇਖਾਓ" + +#: gphoto2/main.c:198 gphoto2/main.c:1686 +msgid "Get files given in range" +msgstr "" + +#: gphoto2/main.c:199 gphoto2/main.c:1688 +msgid "Get all files from folder" +msgstr "ਫੋਲਡਰ ਤੋਂ ਸਭ ਫਾਇਲਾਂ ਲਵੋ" + +#: gphoto2/main.c:200 gphoto2/main.c:1690 +msgid "Get thumbnails given in range" +msgstr "ਰੇਜ਼ ਵਿੱਚ ਦਿੱਤੇ ਥੰਮਨੇਲ ਲਵੋ" + +#: gphoto2/main.c:201 gphoto2/main.c:1693 +msgid "Get all thumbnails from folder" +msgstr "ਫੋਲਡਰ ਤੋਂ ਸਭ ਥੰਮਨੇਲ ਲਵੋ" + +#: gphoto2/main.c:202 gphoto2/main.c:1696 +msgid "Get raw data given in range" +msgstr "" + +#: gphoto2/main.c:203 gphoto2/main.c:1699 +msgid "Get all raw data from folder" +msgstr "" + +#: gphoto2/main.c:204 gphoto2/main.c:1702 +msgid "Get audio data given in range" +msgstr "" + +#: gphoto2/main.c:205 gphoto2/main.c:1705 +msgid "Get all audio data from folder" +msgstr "ਫੋਲਡਰ ਤੋਂ ਸਭ ਆਡੀਓ ਡਾਟਾ ਲਵੋ" + +#: gphoto2/main.c:206 gphoto2/main.c:1707 +msgid "Delete files given in range" +msgstr "" + +#: gphoto2/main.c:207 gphoto2/main.c:1709 +msgid "Delete all files in folder" +msgstr "ਫੋਲਡਰ ਵਿੱਚ ਸਭ ਫਾਇਲ ਹਟਾਓ" + +#: gphoto2/main.c:208 gphoto2/main.c:1711 +msgid "Upload a file to camera" +msgstr "ਇੱਕ ਫਾਇਲ ਕੈਮਰੇ ਉੱਤੇ ਅੱਪਲੋਡ ਕਰੋ" + +#: gphoto2/main.c:210 gphoto2/main.c:1714 +msgid "Configure" +msgstr "ਸੰਰਚਨਾ" + +#: gphoto2/main.c:212 +#, fuzzy +msgid "List the configuration tree" +msgstr "ਸੰਰਚਨਾ ਲੜੀ ਵੇਖਾਓ" + +#: gphoto2/main.c:213 +#, fuzzy +msgid "Get a configuration variable" +msgstr "ਸੰਰਚਨਾ ਮੁੱਲ ਲਵੋ" + +#: gphoto2/main.c:214 +#, fuzzy +msgid "Set a configuration variable" +msgstr "ਸੰਰਚਨਾ ਮੁੱਲ ਦਿਓ" + +#: gphoto2/main.c:215 gphoto2/main.c:1726 +msgid "Set number of frames to capture (default=infinite)" +msgstr "" + +#: gphoto2/main.c:216 gphoto2/main.c:1728 +msgid "Set capture interval in seconds" +msgstr "" + +#: gphoto2/main.c:217 gphoto2/main.c:1724 +msgid "Capture a quick preview" +msgstr "ਇੱਕ ਤੁਰੰਤ ਝਲਕ ਕੈਪਚਰ ਕਰੋ" + +#: gphoto2/main.c:218 gphoto2/main.c:1730 +msgid "Capture an image" +msgstr "ਇੱਕ ਤਸਵੀਰ ਪ੍ਰਾਪਤ ਕਰੋ" + +#: gphoto2/main.c:219 +#, fuzzy +msgid "Capture a movie " +msgstr "ਇੱਕ ਫਿਲਮ ਲਵੋ" + +#: gphoto2/main.c:220 gphoto2/main.c:1734 +msgid "Capture an audio clip" +msgstr "ਇੱਕ ਆਡੀਓ ਕਲਿੱਪ ਪ੍ਰਾਪਤ ਕਰੋ" + +#: gphoto2/main.c:222 gphoto2/main.c:1737 gphoto2/shell.c:113 +msgid "Show EXIF information" +msgstr "EXIF ਜਾਣਕਾਰੀ ਵੇਖਾਓ" + +#: gphoto2/main.c:224 gphoto2/main.c:1740 gphoto2/shell.c:109 +msgid "Show info" +msgstr "ਜਾਣਕਾਰੀ ਵੇਖਾਓ" + +#: gphoto2/main.c:225 +msgid "Summary of camera status" +msgstr "" + +#: gphoto2/main.c:226 +#, fuzzy +msgid "Camera driver manual" +msgstr "ਕੈਮਰਾ ਡਰਾਇਵਰ ਦਸਤਾਵੇਜ਼ ਵੇਖਾਓ" + +#: gphoto2/main.c:227 +#, fuzzy +msgid "About the camera driver" +msgstr "ਕੈਮਰਾ ਮਾਡਲ ਬਾਰੇ:" + +#: gphoto2/main.c:228 gphoto2/main.c:1748 +msgid "gPhoto shell" +msgstr "gPhoto ਸ਼ੈੱਲ" + +#: gphoto2/main.c:382 gphoto2/main.c:1343 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "" + +#: gphoto2/main.c:581 +#, c-format +msgid "You cannot use '%%n' in combination with non-persistent files!" +msgstr "" + +#: gphoto2/main.c:604 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "" + +#: gphoto2/main.c:654 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "ਗਲਤ ਫਾਰਮੈਟ '%s' (%i ਸਥਿਤੀ ਉੱਤੇ ਗਲਤੀ)।" + +#: gphoto2/main.c:702 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "ਫਾਇਲ %s ਪਹਿਲਾਂ ਹੀ ਮੌਜੂਦ ਹੈ। ਕੀ ਉੱਤੇ ਲਿਖਣਾ ਹੈ? [y|n] " + +#: gphoto2/main.c:713 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "ਕੀ ਨਵਾਂ ਫਾਇਲ ਨਾਂ ਦੇਣਾ ਹੈ? [y|n] " + +#: gphoto2/main.c:722 +#, c-format +msgid "Enter new filename: " +msgstr "ਨਵਾਂ ਫਾਇਲ ਨਾਂ ਦਿਓ: " + +#: gphoto2/main.c:727 +#, c-format +msgid "Saving file as %s\n" +msgstr "ਫਾਇਲ %s ਦੇ ਤੌਰ ਉੱਤੇ ਸੰਭਾਲੀ ਜਾ ਰਹੀ ਹੈ\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "" + +#: gphoto2/main.c:964 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "ਫਰੇਮ #%d ਕੈਪਚਰ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ...\n" + +#: gphoto2/main.c:966 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "ਫਰੇਮ #%d/%d ਕੈਪਚਰ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ...\n" + +#: gphoto2/main.c:973 +msgid "Could not capture." +msgstr "ਕੈਪਚਰ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ।" + +#: gphoto2/main.c:982 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "ਕੈਪਚਰ ਫੇਲ੍ਹ ਹੋਇਆ (ਆਟੋ-ਫੋਕਸ ਸਮੱਸਿਆ ਹੈ?)...\n" + +#: gphoto2/main.c:996 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "ਕੈਮਰੇ ਉੱਤੇ ਨਵੀਂ ਫਾਇਲ %s%s%s ਟਿਕਾਣੇ ਉੱਤੇ ਹੈ\n" + +#: gphoto2/main.c:1006 +msgid "Could not set folder." +msgstr "ਫੋਲਡਰ ਦਿੱਤਾ ਨਹੀਂ ਜਾ ਸਕਿਆ ਹੈ।" + +#: gphoto2/main.c:1024 +msgid "Could not get image." +msgstr "ਤਸਵੀਰ ਪ੍ਰਾਪਤ ਹੋ ਨਹੀਂ ਸਕੀ ਹੈ।" + +#: gphoto2/main.c:1031 +msgid "Buggy libcanon.so?" +msgstr "ਬੱਗੀ libcanon.so ਹੈ?" + +#: gphoto2/main.c:1037 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "ਕੈਮਰੇ ਉੱਤੇ ਫਾਇਲ %s%s%s ਨੂੰ ਹਟਾਇਆ ਜਾ ਰਿਹਾ ਹੈ\n" + +#: gphoto2/main.c:1042 +msgid "Could not delete image." +msgstr "ਤਸਵੀਰ ਹਟਾਇਆ ਨਹੀਂ ਜਾ ਸਕਿਆ ਹੈ।" + +#: gphoto2/main.c:1056 +msgid "Could not close camera connection." +msgstr "ਕੈਮਰਾ ਕੁਨੈਕਸ਼ਨ ਬੰਦ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ ਹੈ।" + +#: gphoto2/main.c:1060 +#, c-format +msgid "Sleeping for %d second(s)...\n" +msgstr "%d ਸਕਿੰਟ ਲਈ ਸਲੀਪ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ...\n" + +#: gphoto2/main.c:1194 +#, c-format +msgid "ERROR: " +msgstr "ਗਲਤੀ: " + +#: gphoto2/main.c:1217 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"ਅਧੂਰਾ ਛੱਡਿਆ ਜਾ ਰਿਹਾ ਹੈ...\n" + +#: gphoto2/main.c:1223 +#, c-format +msgid "Aborted.\n" +msgstr "ਅਧੂਰਾ ਛੱਡਿਆ।\n" + +#: gphoto2/main.c:1228 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"ਰੱਦ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ...\n" + +#: gphoto2/main.c:1446 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "" + +#: gphoto2/main.c:1581 +#, c-format +msgid "Operation cancelled.\n" +msgstr "ਕਾਰਵਾਈ ਰੱਦ ਕੀਤੀ ਗਈ।\n" + +#: gphoto2/main.c:1585 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** ਗਤੀ (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1589 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" + +#: gphoto2/main.c:1642 +msgid "Overwrite files without asking" +msgstr "ਬਿਨਾਂ ਪੁੱਛੇ ਫਾਇਲ ਉੱਪਰ ਲਿਖੋ" + +#: gphoto2/main.c:1656 +msgid "path" +msgstr "" + +#: gphoto2/main.c:1658 +msgid "speed" +msgstr "" + +#: gphoto2/main.c:1660 +#, fuzzy +msgid "model" +msgstr "ਮਾਡਲ" + +#: gphoto2/main.c:1662 +msgid "filename" +msgstr "ਫਾਇਲ ਨਾਂ" + +#: gphoto2/main.c:1664 +msgid "usbid" +msgstr "" + +#: gphoto2/main.c:1668 +msgid "folder" +msgstr "" + +#: gphoto2/main.c:1717 +msgid "List configuration tree" +msgstr "ਸੰਰਚਨਾ ਲੜੀ ਵੇਖਾਓ" + +#: gphoto2/main.c:1719 +msgid "Get configuration value" +msgstr "ਸੰਰਚਨਾ ਮੁੱਲ ਲਵੋ" + +#: gphoto2/main.c:1721 +msgid "Set configuration value" +msgstr "ਸੰਰਚਨਾ ਮੁੱਲ ਦਿਓ" + +#: gphoto2/main.c:1726 +msgid "count" +msgstr "" + +#: gphoto2/main.c:1728 +msgid "seconds" +msgstr "" + +#: gphoto2/main.c:1732 +msgid "Capture a movie" +msgstr "ਇੱਕ ਫਿਲਮ ਲਵੋ" + +#: gphoto2/main.c:1742 +msgid "Show summary" +msgstr "ਸੰਖੇਪ ਵੇਖਾਓ" + +#: gphoto2/main.c:1744 +msgid "Show camera driver manual" +msgstr "ਕੈਮਰਾ ਡਰਾਇਵਰ ਦਸਤਾਵੇਜ਼ ਵੇਖਾਓ" + +#: gphoto2/main.c:1746 +msgid "About the camera driver manual" +msgstr "ਕੈਮਰਾ ਡਰਾਇਵਰ ਦਸਤਾਵੇਜ਼ ਬਾਰੇ" + +#: gphoto2/main.c:1973 +#, c-format +msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +msgstr "" + +#: gphoto2/main.c:1983 +#, c-format +msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +msgstr "" + +#: gphoto2/options.c:181 +#, c-format +msgid "Usage:\n" +msgstr "ਵਰਤੋਂ:\n" + +#: gphoto2/options.c:184 +#, c-format +msgid "" +"Short/long options (& argument) Description\n" +"--------------------------------------------------------------------------------\n" +msgstr "" + +#: gphoto2/options.c:209 +#, c-format +msgid "%-38s %s\n" +msgstr "%-38s %s\n" + +#: gphoto2/options.c:214 +#, c-format +msgid "" +"--------------------------------------------------------------------------------\n" +"[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +msgstr "" + +#: gphoto2/range.c:103 gphoto2/range.c:157 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" + +#: gphoto2/range.c:109 gphoto2/range.c:163 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" + +#: gphoto2/range.c:125 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" + +#: gphoto2/range.c:139 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" + +#: gphoto2/range.c:179 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"ਵਿਲੱਖਣ ਅੱਖਰ '%c' ਹੈ।" + +#: gphoto2/range.c:202 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" + +#: gphoto2/shell.c:55 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** ਗਲਤੀ (%i: '%s') ***" + +#: gphoto2/shell.c:98 +msgid "Change to a directory on the camera" +msgstr "ਕੈਮਰੇ ਉੱਤੇ ਇੱਕ ਡਾਇਰੈਕਟਰੀ ਤਬਦੀਲ" + +#: gphoto2/shell.c:99 gphoto2/shell.c:101 +msgid "directory" +msgstr "ਡਾਇਰੈਕਟਰੀ" + +#: gphoto2/shell.c:100 +msgid "Change to a directory on the local drive" +msgstr "ਸਥਾਨਕ ਡਰਾਇਵ ਉੱਤੇ ਇੱਕ ਡਾਇਰੈਕਟਰੀ ਤਬਦੀਲ" + +#: gphoto2/shell.c:102 gphoto2/shell.c:120 gphoto2/shell.c:121 +msgid "Exit the gPhoto shell" +msgstr "" + +#: gphoto2/shell.c:103 +msgid "Download a file" +msgstr "ਇੱਕ ਫਾਇਲ ਡਾਊਨਲੋਡ" + +#: gphoto2/shell.c:103 gphoto2/shell.c:106 gphoto2/shell.c:108 +#: gphoto2/shell.c:110 gphoto2/shell.c:111 gphoto2/shell.c:114 +msgid "[directory/]filename" +msgstr "[ਡਾਇਰੈਕਟਰੀ/]ਫਾਇਲ ਨਾਂ" + +#: gphoto2/shell.c:105 +msgid "Download a thumbnail" +msgstr "ਇੱਕ ਥੰਮਨੇਲ ਡਾਊਨਲੋਡ ਕਰੋ" + +#: gphoto2/shell.c:107 +msgid "Download raw data" +msgstr "ਕੱਚਾ ਡਾਟਾ ਡਾਊਨਲੋਡ" + +#: gphoto2/shell.c:111 +msgid "Delete" +msgstr "ਹਟਾਓ" + +#: gphoto2/shell.c:116 gphoto2/shell.c:122 +msgid "Displays command usage" +msgstr "ਕਮਾਂਡ ਵੇਖਾਓ" + +#: gphoto2/shell.c:117 gphoto2/shell.c:122 +msgid "[command]" +msgstr "[ਕਮਾਂਡ]" + +#: gphoto2/shell.c:118 +msgid "List the contents of the current directory" +msgstr "ਮੌਜੂਦਾ ਡਾਇਰੈਕਟਰੀ ਦੇ ਭਾਗ ਵੇਖਾਓ" + +#: gphoto2/shell.c:119 +msgid "[directory/]" +msgstr "[ਡਾਇਰੈਕਟਰੀ/]" + +#: gphoto2/shell.c:425 +msgid "Invalid command." +msgstr "ਗਲਤ ਕਮਾਂਡ ਹੈ।" + +#: gphoto2/shell.c:434 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "ਕਮਾਂਡ '%s' ਲਈ ਇੱਕ ਮੁੱਲ ਦੀ ਲੋੜ ਹੈ।" + +#: gphoto2/shell.c:487 +msgid "Invalid path." +msgstr "ਗਲਤ ਮਾਰਗ ਹੈ।" + +#: gphoto2/shell.c:533 +msgid "Could not find home directory." +msgstr "ਘਰ ਡਾਇਰੈਕਟਰੀ ਨਹੀਂ ਮਿਲੀ ਸਕੀ ਹੈ।" + +#: gphoto2/shell.c:541 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "ਸਥਾਨਕ ਡਾਇਰੈਕਟਰੀ '%s' ਨੂੰ ਬਦਲਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ ਹੈ।" + +#: gphoto2/shell.c:544 +#, c-format +msgid "Local directory now '%s'." +msgstr "ਸਥਾਨਕ ਡਾਇਰੈਕਟਰੀ ਹੁਣ '%s' ਹੈ।" + +#: gphoto2/shell.c:582 +#, c-format +msgid "Remote directory now '%s'." +msgstr "ਰਿਮੋਟ ਡਾਇਰੈਕਟਰੀ ਹੁਣ '%s' ਹੈ।" + +#: gphoto2/shell.c:738 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "" + +#: gphoto2/shell.c:745 +#, c-format +msgid "Help on \"%s\":" +msgstr "\"%s\" ਲਈ ਸਹਾਇਤਾ:" + +#: gphoto2/shell.c:747 +#, c-format +msgid "Usage:" +msgstr "ਵਰਤੋਂ:" + +#: gphoto2/shell.c:750 +#, c-format +msgid "Description:" +msgstr "ਵੇਰਵਾ:" + +#: gphoto2/shell.c:752 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* ਬਰੈਕਟਾਂ [] ਵਿੱਚ ਦਿੱਤੇ ਮੁੱਲ ਚੋਣਵੇਂ ਹਨ" + +#: gphoto2/shell.c:773 +#, c-format +msgid "Available commands:" +msgstr "ਉਪਲੱਬਧ ਕਮਾਂਡਾਂ:" + +#: gphoto2/shell.c:778 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "ਇੱਕ ਖਾਸ ਕਮਾਂਡ ਤੋਂ ਸਹਾਇਤਾ ਪ੍ਰਾਪਤ ਕਰਨ ਲਈ, ਲਿਖੋ 'help command-name'।" + +#~ msgid "There is %d file in folder '%s'.\n" +#~ msgid_plural "There are %d files in folder '%s'.\n" +#~ msgstr[0] "'%2$s' ਫੋਲਡਰ ਵਿੱਚ %1$d ਫਾਇਲ ਹੈ।\n" +#~ msgstr[1] "'%2$s' ਫੋਲਡਰ ਵਿੱਚ %1$d ਫਾਇਲਾਂ ਹਨ।\n" + +#~ msgid "Delete selected files on camera : %s\n" +#~ msgstr "ਕੈਮਰੇ ਤੋਂ ਚੁਣੀਆਂ ਫਾਇਲਾਂ ਹਟਾਓ : %s\n" + +#~ msgid "FILENAME" +#~ msgstr "FILENAME" + +#~ msgid "SPEED" +#~ msgstr "SPEED" + +#~ msgid "MODEL" +#~ msgstr "MODEL" + +#~ msgid "USBIDs" +#~ msgstr "USBIDs" + +#~ msgid "Wait for event from camera" +#~ msgstr "ਕੈਮਰੇ ਵਲੋਂ ਜਵਾਬ ਦੀ ਉਡੀਕ" + +#~ msgid "COUNT" +#~ msgstr "COUNT" + +#~ msgid "SECONDS" +#~ msgstr "SECONDS" + +#~ msgid "DIRNAME" +#~ msgstr "DIRNAME" + +#~ msgid "RANGE" +#~ msgstr "RANGE" + +#~ msgid "Get metadata given in range" +#~ msgstr "ਰੇਜ਼ ਵਿੱਚ ਮੇਟਾਡਾਟਾ ਲਵੋ" + +#~ msgid "Get all metadata from folder" +#~ msgstr "ਫੋਲਡਰ ਤੋਂ ਸਭ ਮੇਟਾ-ਡਾਟਾ ਲਵੋ" + +#~ msgid "Upload metadata for file" +#~ msgstr "ਫਾਇਲ ਤੋਂ ਮੇਟਾਡਾਟਾ ਅੱਪਲੋਡ ਕਰੋ" + +#~ msgid "Specify a filename or filename pattern" +#~ msgstr "ਇੱਕ ਫਾਇਲ ਨਾਂ ਜਾਂ ਫਾਇਲ-ਨਾਂ ਪੈਟਰਨ ਦਿਓ" + +#~ msgid "FILENAME_PATTERN" +#~ msgstr "FILENAME_PATTERN" + +#~ msgid "FOLDER" +#~ msgstr "FOLDER" + +#~ msgid "Common options" +#~ msgstr "ਆਮ ਚੋਣਾਂ" + +#~ msgid "Miscellaneous options (unsorted)" +#~ msgstr "ਫੁਟਕਲ ਚੋਣਾਂ (ਨਾ-ਲੜੀਬੱਧ)" + +#~ msgid "Get information on software and host system (not from the camera)" +#~ msgstr "ਸਾਫਵੇਅਰ ਅਤੇ ਹੋਸਟ ਸਿਸਟਮ ਤੋਂ ਜਾਣਕਾਰੀ ਲਵੋ (ਕੈਮਰੇ ਤੋਂ ਨਹੀਂ)" + +#~ msgid "Specify the camera to use" +#~ msgstr "ਵਰਤਣ ਲਈ ਕੈਮਰਾ ਦਿਓ" + +#~ msgid "Camera and software configuration" +#~ msgstr "ਕੈਮਰਾ ਅਤੇ ਸਾਫਟਵੇਅਰ ਸੰਰਚਨਾ" + +#~ msgid "Capture an image from or on the camera" +#~ msgstr "ਕੈਮਰੇ ਤੋਂ ਇੱਕ ਚਿੱਤਰ ਲਵੋ" + +#~ msgid "Upload a file" +#~ msgstr "ਇੱਕ ਫਾਇਲ ਅੱਪਲੋਡ ਕਰੋ" + +#~ msgid "Create Directory" +#~ msgstr "ਡਾਇਰੈਕਟਰੀ ਬਣਾਓ" + +#~ msgid "Remove Directory" +#~ msgstr "ਡਾਇਰੈਕਟਰੀ ਹਟਾਓ" + +#~ msgid "List configuration variables" +#~ msgstr "ਸੰਰਚਨਾਯੋਗ ਮੁੱਲ ਲਿਸਟ ਕਰੋ" + +#~ msgid "name=value" +#~ msgstr "name=value" + +#~ msgid "Capture a single image" +#~ msgstr "ਇੱਕ ਇੱਕਲੀ ਤਸਵੀਰ ਪ੍ਰਾਪਤ ਕਰੋ" + +#~ msgid "[name]" +#~ msgstr "[ਨਾਂ]" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/pl.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/pl.po new file mode 100644 index 00000000..ce438329 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/pl.po @@ -0,0 +1,1637 @@ +# Polish translation for gphoto2. +# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# Jakub Bogusz , 2006-2015. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2015-11-19 18:00+0100\n" +"Last-Translator: Jakub Bogusz \n" +"Language-Team: Polish \n" +"Language: pl\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Liczba plików w folderze '%s': %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Jest %d folder w folderze '%s'.\n" +msgstr[1] "Są %d foldery w folderze '%s'.\n" +msgstr[2] "Jest %d folderów w folderze '%s'.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Nie ma plików w folderze '%s'.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Jest %d plik w folderze '%s'.\n" +msgstr[1] "Są %d pliki w folderze '%s'.\n" +msgstr[2] "Jest %d plików w folderze '%s'.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Informacje o pliku '%s' (folder '%s'):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Plik:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Brak dostępnych.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Typ MIME: '%s'\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Rozmiar: %lu bajt(ów)\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Szerokość: %i piksel(i)\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Wysokość: %i piksel(i)\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Ściągnięto: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "tak" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "nie" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Uprawnienia: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "odczyt/usuwanie" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "odczyt" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "usuwanie" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "brak" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Czas: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Miniaturka:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Dane dźwiękowe:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Typ MIME: '%s'\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Rozmiar: %lu bajt(ów)\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Ściągnięto: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Nie udało się przetworzyć danych EXIF." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "Znaczniki EXIF:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Znacznik" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Wartość" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Dane EXIF zawierają miniaturkę (%i bajtów)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 zostało skompilowane bez obsługi EXIF." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Liczba obsługiwanych aparatów: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Obsługiwane aparaty:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (TESTOWO)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (EKSPERYMENTALNIE)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Znalezione urządzenia: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Ścieżka Opis\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Model" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Możliwości aparatu : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Obsługa portu szeregowego : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "Obsługa USB : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Obsługiwane prędkości przesyłania:\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Możliwość nagrywania :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Zdjęcia\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Filmy\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Dźwięk\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Podgląd\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : Wyzwolenie zdjęcia\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Ten sterownik nie obsługuje nagrywania\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Obsługa konfiguracji : %s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Usuwanie wybranych plików : %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Usuwanie wszystkich plików : %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Podgląd plików (miniaturek) : %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Przesyłanie plików do aparatu : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Porty muszą być w postaci 'serial:/dev/ttyS0' lub 'usb:', ale '%s' nie zawiera dwukropka, więc spróbuję zgadnąć, co to miało znaczyć." + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Podany port ('%s') nie został odnaleziony. Proszę podać jeden z portów znajdywanych przez 'gphoto2 --list-ports' i upewnić się, że pisownia jest poprawna (tzn. z przedrostkiem 'serial:' lub 'usb:')." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "O sterowniku aparatu:" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Opis aparatu:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Podręcznik do aparatu:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Można podać prędkości tylko dla portów szeregowych." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Port OS/2 wykonał Bart van Leeuwen\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller i inni\n" +"%s\n" +"gphoto2 jest udostępniony BEZ ŻADNEJ GWARANCJI do granic dopuszczalnych\n" +"przez prawo. Można rozprowadzać kopie gphoto2 na warunkach Powszechnej\n" +"Licencji Publicznej GNU (GNU General Public License). Więcej informacji\n" +"na ten temat można znaleźć w plikach COPYING.\n" +"\n" +"Ta wersja gphoto2 używa następujących wersji oprogramowania i opcji:\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Nie udało się otworzyć 'movie.mjpg'." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Pobieranie ramek podglądu jako filmu do '%s'. Aby przerwać, proszę nacisnąć Ctrl-C.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Pobieranie ramek podglądu jako filmu do '%s' przez sekund: %d.\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Pobieranie ramek podglądu (ramek: %d) jako filmu do '%s'.\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Błąd pobierania filmu... zakończenie." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Błąd pobierania filmu... nieobsługiwany typ MIME '%s'." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Naciśnięto Ctrl-C... zakończenie.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Nagrywanie filmu zakończone (klatek: %d)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Oczekiwanie na zdarzenie z aparatu. Aby przerwać, proszę nacisnąć Ctrl-C.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Oczekiwanie na otrzymanie %d klatek z aparatu. Aby przerwać, proszę nacisnąć Ctrl-C.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Oczekiwanie przez %d milisekund na zdarzenia z aparatu. Aby przerwać, proszę nacisnąć Ctrl-C.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Oczekiwanie przez %d sekund na zdarzenia z aparatu. Aby przerwać, proszę nacisnąć Ctrl-C.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Oczekiwanie na %d zdarzeń z aparatu. Aby przerwać, proszę nacisnąć Ctrl-C.\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Oczekiwanie na zdarzenie %s z aparatu. Aby przerwać, proszę nacisnąć Ctrl-C.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "napotkano zdarzenie, kończenie oczekiwania!\n" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Nie udało się ustawić folderu." + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Nie udało się pobrać obrazu." + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "libcanon.so z błędami?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Nie udało się usunąć obrazu." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Pobieranie informacji o nośniku nie jest obsługiwane przez ten aparat.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Odczyt i zapis" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Tylko odczyt" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Tylko odczyt z usuwaniem" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Nieznany" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "Stały ROM" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "Wymienialny ROM" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "Stały RAM" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "Wymienialny RAM" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Nieokreślony" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Ogólny płaski" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Ogólny hierarchiczny" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Rozkład aparatu (DCIM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Nadpisywanie id producenta/produktu USB 0x%x/0x%x przez 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "ZAWSZE NALEŻY DOŁĄCZYĆ NASTĘPUJĄCE LINIE PRZY WYSYŁANIU KOMUNIKATÓW DIAGNOSTYCZNYCH NA LISTĘ DYSKUSYJNĄ:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s zostało skompilowane z następującymi opcjami:" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s nie występuje w drzewie konfiguracji." + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Nie udało się odtworzyć wartości widgetu tekstowego %s." + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Nie udało się odtworzyć wartości widgetu przedziału %s." + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Nie udało się odtworzyć wartości widgetu przełącznika %s." + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Nie udało się odtworzyć wartości widgetu daty/czasu %s." + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Przy ustawianiu 'now' oznacza czas bieżący.\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Nie udało się odtworzyć wartości widgetu pojedynczego wyboru %s." + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "Właściwość %s jest tylko do odczytu." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Nie udało się ustawić wartości widgetu tekstowego %s na %s." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Przekazana wartość %s nie jest wartością zmiennoprzecinkową." + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Przekazana wartość %f nie leży w oczekiwanym przedziale %f - %f." + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Nie udało się ustawić wartości widgetu przedziału %s na %f." + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "wyłączone" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "fałsz" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "włączone" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "prawda" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Przekazana wartość %s nie jest poprawną wartością przełącznika." + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Nie udało się ustawić wartości %s widgetu przełącznika %s." + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "teraz" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Przekazana wartość %s nie jest prawidłowym czasem ani liczbą całkowitą." + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Nie udało się ustawić nowego czasu widgetu daty/czasu %s na %s." + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Opcji %s nie znaleziono na liście wyboru." + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Widget %s nie jest konfigurowalny." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Nie udało się ustawić nowej wartości konfiguracji %s dla wpisu konfiguracji %s." + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "Kontrolka %s nie ma listy numerowanych opcji. Należy użyć --set-config-value." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Zły numer pliku. Podano %i, a jest tylko %i plików dostępnych w '%s' i podkatalogach. Proszę uzyskać prawidłowy numer pliku z listy plików." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Nie ma plików w folderze '%s'." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Zły numer pliku. Podano %i, ale jest tylko 1 plik dostępny w '%s'." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Zły numer pliku. Podano %i, a jest tylko %i plików dostępnych w '%s'. Proszę uzyskać prawidłowy numer pliku z listy plików." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Błąd *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Proszę nacisnąć dowolny klawisz w celu kontynuacji.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Zbyt mało pamięci." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Operacja anulowana" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Kontynuuj" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Anuluj" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Błąd" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Nie udało się ustawić konfiguracji:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Wyjście" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Powrót" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Czas: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Wartość " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Tak" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Nie" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Dopełnianie zerami liczb w nazwach plików jest możliwe tylko przy użyciu %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Nie można użyć dopełniania zerami %%n bez wartości precyzji!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Nazwa pliku dostarczona przez aparat ('%s') nie zawiera przyrostka!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Nieprawidłowy format '%s' (błąd na pozycji %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Pomijanie istniejącego pliku %s\n" + +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Plik %s istnieje. Nadpisać? [y|n] " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Określić nową nazwę pliku? [y|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Nowa nazwa pliku: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Zapisywanie pliku jako %s\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Brak uprawnień" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Nie udało się wyzwolić zrobienia zdjęcia." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Nowy plik jest w miejscu %s%s%s w aparacie\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Zachowywanie pliku %s%s%s na aparacie\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Usuwanie pliku %s%s%s z aparatu\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Zdarzenie FOLDER_ADDED %s/%s w trakcie oczekiwania, zignorowano.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Zdarzenie UNKNOWN %s w trakcie oczekiwania, zignorowano.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Nieznany rodzaj zdarzenia %d w trakcie oczekiwania na lampę, zignorowano.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Nie udało się pobrać możliwości?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Tryb zdjęć okresowych włączony (odstęp: %ds).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Oczekiwanie na SIGUSR1 w celu zrobienia zdjęcia.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Tryb bulb włączony (czas ekspozycji: %ds).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Robienie klatki #%d...\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Robienie klatki #%d/%d...\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Nie udało się ustawić zdjęcia z lampą, wynik %d." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Nie udało się zakończyć zdjęcia (tryb bulb)." + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Nie udało się wyzwolić zrobienia zdjęcia." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Nie udało się zrobić zdjęcia." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Zdjęcie nie udało się (problem z auto-focusem?)...\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Nie udało się zrobić zdjęcia." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Oczekiwanie %ld sekund na następne zdjęcie...\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Obudzony przez SIGUSR1...\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "niezasypianie (%ld sekund poza terminem)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "BŁĄD: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Przerywanie...\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Przerwano.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Anulowanie...\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Należy użyć składni a:b=c:d, aby potraktować dowolne urządzenie USB wykryte jako a:b jako c:d. a b c d powinny być liczbami szesnastkowymi zaczynającymi się od '0x'.\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 zostało skompilowane bez obsługi CDK." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Operacja anulowana.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Błąd: nie znaleziono aparatu. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Błąd (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"W celach diagnostycznych proszę użyć opcji --debug.\n" +"Komunikaty diagnostyczne mogą pomóc znaleźć rozwiązanie problemu.\n" +"Aby wysyłać komunikaty błędów lub diagnostyczne na listę dyskusyjną\n" +"programistów gphoto , proszę\n" +"uruchomić gphoto2 w sposób następujący:\n" +"\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Proszę upewnić się, że argumenty są wystarczająco zabezpieczone cudzysłowami.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "Wypisanie pełnego opisu używania programu" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "Wypisanie krótkiego opisu używania programu" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Włączenie diagnostyki" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "Ustawienie poziomu diagnostyki [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "Nazwa pliku do zapisu informacji diagnostycznych" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "PLIK" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Ciche wyjście (domyślnie=szczegółowe)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Skrypt do wywoływania po ściągnięciu danych, zdjęciach itp." + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Określenie portu urządzenia" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Określenie prędkości transmisji szeregowej" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "PRĘDKOŚĆ" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Określenie modelu aparatu" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "MODEL" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "(tylko tryb expert) Nadpisanie ID USB" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBID" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Wyświetlenie wersji i zakończenie" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Wypisanie listy obsługiwanych modeli aparatów" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Wypisanie listy obsługiwanych urządzeń portów" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Wyświetlenie możliwości aparatu/sterownika wg bazy danych libgphoto2" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Konfiguracja" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Wypisanie drzewa konfiguracji" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Zrzut pełnego drzewa konfiguracji" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Pobranie wartości z konfiguracji" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Ustawienie wartości lub pozycji wyboru w konfiguracji" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "Ustawienie numeru wartości wyboru w konfiguracji" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Ustawienie wartości w konfiguracji" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Reset portu urządzenia" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Zachowanie zdjęć na aparacie po wykonaniu" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "Zachowanie zdjęć RAW w aparacie po wykonaniu" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Usunięcie zdjęć z aparatu po wykonaniu" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Oczekiwanie na zdarzenia z aparatu" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "COUNT, SECONDS, MILLISECONDS lub MATCHSTRING" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Oczekiwanie na zdarzenia z aparatu i ściągnięcie nowych zdjęć" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Zrobienie szybkiego podglądu" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "Pokazanie szybkiego podglądu jako ASCII Art" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Ustawienie czasu ekspozycji w trybie bulb w sekundach" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "SEKUNDY" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Ustawienie liczby klatek do zrobienia (domyślnie=nieskończoność)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "LICZBA" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Ustawienie odstępu między zdjęciami w sekundach" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Przywracanie odstępu między zdjęciami po sygnale (domyślnie=nie)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Zrobienie zdjęcia" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Wyzwolenie zrobienia zdjęcia" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Zrobienie zdjęcia i ściągnięcie go" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Nagranie filmu" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "LICZBA lub SEKUNDY" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Nagranie dźwięku" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Oczekiwanie na zwolnienie migawki aparatu i ściągnięcie" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Wyzwolenie zrobienia zdjęcia" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Wypisanie listy folderów w folderze" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Wypisanie listy plików w folderze" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Utworzenie katalogu" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "KATALOG" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Usunięcie katalogu" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Wyświetlenie liczby plików" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Pobranie plików z podanego przedziału" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "PRZEDZIAŁ" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Pobranie wszystkich plików z folderu" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Pobranie miniaturek z podanego przedziału" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Pobranie wszystkich miniaturek z folderu" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Pobranie metadanych z podanego przedziału" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Pobranie wszystkich metadanych z folderu" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Przesłanie do aparatu metadanych dla pliku" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Pobranie surowych danych z podanego przedziału" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Pobranie wszystkich surowych danych z folderu" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Pobranie danych dźwiękowych z podanego przedziału" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Pobranie wszystkich danych dźwiękowych z folderu" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Usunięcie plików z podanego przedziału" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Usunięcie wszystkich plików z folderu (domyślnie --no-recurse)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Przesłanie pliku do aparatu" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Określenie nazwy pliku lub wzorca nazwy pliku" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "WZORZEC_PLIKU" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Określenie folderu aparatu (domyślny=\"/\")" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "FOLDER" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Rekurencja (domyślne przy ściąganiu)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Bez rekurencji (domyślne przy usuwaniu)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Przetwarzanie tylko nowych plików" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Nadpisywanie plików bez pytania" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Pomijanie istniejących plików" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Wysłanie pliku na standardowe wyjście" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "Wypisanie rozmiaru pliku przed danymi" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Wypisanie listy wykrytych aparatów" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Pokazywanie informacji EXIF obrazów JPEG" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Pokazywanie informacji takich jak szerokość, wysokość i czas migawki" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "Pokazanie opisu aparatu" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Pokazanie podręcznika do sterownika aparatu" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "O podręczniku do sterownika aparatu" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Pokazanie informacji o nośniku" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "Powłoka gPhoto" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Opcje wspólne" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Różnie opcje (kolejność dowolna)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "Pobranie informacji o oprogramowaniu i systemie komputera (nie z aparatu)" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "Określenie, którego aparatu używać" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Konfiguracja aparatu i oprogramowania" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Zrobienie zdjęcia z lub na aparacie" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Ściąganie, wysyłanie i obróbka plików" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Identyfikator zdjęcia musi być liczbą większą od zera." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Identyfikator zdjęcia %i jest zbyt duży." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Zakresy muszą być oddzielone znakiem ','." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Zakresy muszą zaczynać się od liczby." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Oczekiwano znaku '%c'." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Przedziały zmniejszające się nie są dopuszczalne. Podano przedział od %i do %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Błąd (%i: '%s') ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Przejście do katalogu w aparacie" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "katalog" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Przejście do katalogu na dysku lokalnym" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Wyjście z powłoki gPhoto" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Ściągnięcie pliku" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[katalog/]plik" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Przesłanie pliku do aparatu" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Ściągnięcie miniaturki" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Ściągnięcie surowych danych" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Usunięcie" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Utworzenie katalogu" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Usunięcie katalogu" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Wyświetlenie składni polecenia" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[polecenie]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Wypisanie listy zawartości bieżącego katalogu" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[katalog/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Wypisanie zmiennych w konfiguracji" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Pobranie zmiennej z konfiguracji" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "nazwa" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Ustawienie zmiennej w konfiguracji" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "nazwa=wartość" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Ustawienie numeru zmiennej w konfiguracji" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "nazwa=numer_wartości" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Zrobienie pojedynczego zdjęcia" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Zrobienie pojedynczego zdjęcia i ściągnięcie go" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Zrobienie podglądu zdjęcia" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Oczekiwanie na zdarzenie" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "liczba zdarzeń lub sekund" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Oczekiwanie na wykonanie i ściągnięcie zdjęć" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Oczekiwanie na zdarzenia oraz wykonanie i ściągnięcie zdjęć" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Nieprawidłowe polecenie." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Polecenie '%s' wymaga argumentu." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Nieprawidłowa ścieżka." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Nie udało się odnaleźć katalogu domowego." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Nie udało się zmienić katalogu domowego na '%s'." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Lokalny katalog zmieniony na '%s'." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Zdalny katalog zmieniony na '%s'." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config wymaga drugiego argumentu.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value wymaga drugiego argumentu.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index wymaga drugiego argumentu.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Nie znaleziono polecenia '%s'. 'help' pokaże listę dostępnych poleceń." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Pomoc dla \"%s\":" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Składnia:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Opis:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Argumenty w nawiasach [] są opcjonalne" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Dostępne polecenia:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Aby uzyskać pomoc dla danego polecenia, należy napisać 'help nazwa-polecenia'." diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/pt_BR.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/pt_BR.po new file mode 100644 index 00000000..702f8ef6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/pt_BR.po @@ -0,0 +1,1645 @@ +# Brazilian Portuguese translation of gphoto2. +# This file is distributed under the same license as the gphoto2 package. +# Copyright (C) 2002-2015 Free Software Foundation, Inc. +# Evandro Gardenali , 2002. +# Fabrício Godoy , 2008-2015. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2015-12-28 16:17-0200\n" +"Last-Translator: Fabrício Godoy \n" +"Language-Team: Brazilian Portuguese \n" +"Language: pt_BR\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Número de arquivos na pasta \"%s\": %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Há %d pasta na pasta \"%s\".\n" +msgstr[1] "Há %d pastas na pasta \"%s\".\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Não há nenhum arquivo na pasta \"%s\".\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Há %d arquivo na pasta \"%s\".\n" +msgstr[1] "Há %d arquivos na pasta \"%s\".\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Informações sobre o arquivo \"%s\" (pasta \"%s\"):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Arquivo:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Nenhum disponível.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Tipo MIME: \"%s\"\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Tamanho: %lu byte(s)\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Largura: %i pixel(s)\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Altura: %i pixel(s)\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Baixados: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "sim" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "não" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Permissões: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "ler/excluir" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "ler" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "excluir" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "nenhum" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Hora: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Miniatura:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Dados de áudio:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Tipo MIME: \"%s\"\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Tamanho: %lu byte(s)\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Baixados: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Não foi possível analisar os dados EXIF." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "Etiquetas EXIF:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Etiqueta" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Valor" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Dados EXIF contém uma miniatura (%i bytes)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 foi compilado sem suporte a EXIF." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Quantidade de câmeras que há suporte: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Câmeras que há suporte:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (EM TESTE)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (EXPERIMENTAL)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Disp. encontrados: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Caminho Descrição\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Modelo" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Porta" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Habilidades para a câmera : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Suporte a porta serial : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "Suporte a USB : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Vel. de transf. permitidas :\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Escolhas de captura :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Imagem\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Vídeo\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Áudio\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Visualização\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : Disparo de captura\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Driver sem suporte a captura\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Suporte a configuração : %s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Excluir arquivos sel. na câmera : %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Excluir todos arquivos na câmera : %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Suporte a miniaturas : %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Suporte a envio de arquivos : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Portas deve parecer-se com \"serial:/dev/ttyS0\" ou \"usb:\", mas \"%s\" está com um dois-pontos faltando, então eu adivinharei o quê você quer dizer." + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "A porta especificada (\"%s\") não foi localizada. Por favor, especifique uma das portas localizadas pelo \"gphoto2 --list-ports\" e tenha certeza que está escrevendo corretamente (com prefixo \"serial:\" ou \"usb:\")." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "Sobre o driver da câmera:" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Resumo da câmera:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Manual da câmera:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Você só pode especificar velocidades para portas seriais." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "portado para OS/2 por Bart van Leeuwen\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller e outros\n" +"%s\n" +"O gphoto2 VEM SEM NENHUMA GARANTIA, na máxima extensão permitida pela lei.\n" +"Você pode redistribuir cópias do gphoto2 sob os termos da Licença Pública\n" +"Geral GNU (GNU General Public License). Para mais informações sobre estas\n" +"questões, veja os arquivos chamados COPYING.\n" +"\n" +"Esta versão do gphoto2 está usando as seguintes versões de software e opções:\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Não foi possível abrir \"movie.mjpg\"." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Capturando quadros de pré-visualização como vídeo em \"%s\". Pressione Ctrl+C para interromper.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Capturando quadros de pré-visualização como vídeo em \"%s\" por %d segundos.\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Capturando %d quadros de pré-visualização como vídeo em \"%s\".\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Erro na captura de vídeo... Saindo." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Erro na captura de vídeo... Tipo MIME \"%s\" não manipulável." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl+C foi pressionado... Saindo.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "A captura do filme terminou (%d quadros)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Esperando por eventos da câmera. Pressione Ctrl+C para interromper.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Esperando por %d quadros da câmera. Pressione Ctrl+C para interromper.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Esperando %d milissegundos por eventos da câmera. Pressione Ctrl+C para interromper.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Esperando %d segundos por eventos da câmera. Pressione Ctrl+C para interromper.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Esperando por %d eventos da câmera. Pressione Ctrl+C para interromper.\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Esperando pelo evento %s da câmera. Pressione Ctrl+C para interromper.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "evento encontrado, finalizando espera!\n" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Não foi possível definir a pasta." + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Não foi possível obter a imagem." + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "libcanon.so defeituoso?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Não foi possível excluir imagem." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Não há suporte a obtenção de informações de armazenamento para esta câmera.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Leitura e escrita" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Somente leitura" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Somente leitura com exclusão" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Desconhecido" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "ROM fixa" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "ROM removível" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "RAM fixa" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "RAM removível" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Não definido" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Flat genérico" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Hierárquico genérico" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Layout da câmera (DCIM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Sobrescrevendo o ID USB do fornecedor/produto de 0x%x/0x%x para 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "SEMPRE INCLUA AS SEGUINTES LINHAS AO ENVIAR MENSAGENS DE DEPURAÇÃO PARA A LISTA DE DISCUSSÃO:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s foi compilado com as seguintes opções:" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s não localizado na árvore de configurações." + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Falha ao obter o valor do widget de texto %s." + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Falha ao obter os valores do widget de alcance %s." + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Falha ao obter os valores do widget de faixa %s." + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Falha ao obter os valores do widget de data e hora %s." + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Usar \"agora\" como a data atual ao configurar.\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Falha ao obter os valores do widget de opção %s." + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "A propriedade %s é somente leitura." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Falha ao definir o valor do widget de texto %s para %s." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "O valor passado %s não é um valor de ponto flutuante." + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "O valor passado %f não está dentro do limite esperado, de %f até %f." + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Falha ao definir o valor do widget de alcance %s para %f." + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "desligado" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "falso" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "ligado" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "verdadeiro" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "O valor passado %s não é um valor de alternância válido." + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Falha ao definir os valores %s do widget de alternância %s." + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "agora" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "O valor passado %s não uma hora e nem um inteiro válido." + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Falha ao definir nova hora do widget de data e hora de %s para %s." + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "A escolha %s não foi localizada na lista de escolhas." + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "O widget %s não é configurável." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Falha ao definir novo valor de configuração %s para a entrada de configuração %s." + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "O widget %s não tem um índice da lista de escolhas. Use --set-config-value." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Número de arquivo errado. Você especificou %i, mas há somente %i arquivos disponíveis em \"%s\" ou em suas subpastas. Por favor, primeiro obtenha um número de arquivo válido da lista de arquivos." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Não há arquivos na pasta \"%s\"." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Número de arquivo errado. Você especificou %i, mas há somente 1 arquivo disponível em \"%s\"." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Número de arquivo errado. Você especificou %i, mas há somente %i arquivos disponíveis em \"%s\". Por favor, primeiro obtenha um número de arquivo válido da lista de arquivos." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Erro *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Pressione qualquer tecla para continuar.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Memória insuficiente." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Operação cancelada" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Continuar" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Cancelar" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Erro" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Não foi possível definir configuração:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Sair" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Voltar" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Hora: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Valor: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Sim" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Não" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Preenchimento de números zero nos nomes dos arquivos é possível apenas com %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Você não pode usar o preenchimento de zeros %%n sem um valor de precisão!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "O nome do arquivo fornecido pela câmera (\"%s\") não contêm um sufixo!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Formato inválido \"%s\" (erro na posição %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Arquivo existente ignorado %s\n" + +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "O arquivo %s já existe. Sobrescrever? [y|n] " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Especificar novo nome de arquivo? [y|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Digite um novo nome de arquivo: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Salvando arquivo como %s\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Permissão negada" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Não foi possível disparar a captura." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Novo arquivo está localizado em %s%s%s na câmera\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Mantendo o arquivo %s%s%s na câmera\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Excluindo o arquivo %s%s%s na câmera\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Evento de pasta adicionada %s/%s durante a espera, ignorando.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Evento desconhecido %s durante a espera, ignorando.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Tipo de evento desconhecido %d durante a espera bulb, ignorando.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Não foi possível obter as características?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Modo de captura por intervalos de tempo (intervalo: %ds).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Permanecendo em espera por SIGUSR1 para capturar.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Modo bulb habilitado (tempo de exposição: %ds).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Capturando quadro #%d...\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Capturando quadro #%d/%d...\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Não foi possível definir captura bulb, resultado %d." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Não foi possível finalizar captura (modo bulb)." + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Não foi possível disparar a captura da imagem." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Não foi possível capturar a imagem." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Falha ao capturar (problema de foco automático?)...\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Não foi possível capturar." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Esperando pela próxima captura em %ld segundos...\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Alertado por SIGUSR1...\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "não esperando (%ld segundos atrasado)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "ERRO: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Interrompendo...\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Interrompido.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Cancelando...\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Use a sintaxe a:b=c:d para tratar qualquer dispositivo USB detectado como a:b em vez de c:d. a b c d devem ser números hexadecimais começando com \"0x\".\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 foi compilado sem suporte a CDK." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Operação cancelada.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Erro: Nenhuma câmera localizada. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Erro (%i: \"%s\") *** \n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Para mensagens de depuração, por favor use a opção --debug.\n" +"Mensagens de depuração podem ajudar a encontrar uma solução para o seu problema.\n" +"Se você pretende enviar qualquer erro ou mensagem de depuração para a lista\n" +"de discussão de desenvolvedores do gphoto gphoto-devel@lists.sourceforge.net,\n" +"por favor execute o gphoto como segue:\n" +"\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Favor verifique se há aspas suficientes em torno dos argumentos.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "Exibir mensagem de ajuda completa sobre o uso do programa" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "Exibir uma mensagem curta sobre o uso do programa" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Ativar depuração" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "Definir o nível de depuração [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "Nome do arquivo para gravação de informações de depuração" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "NOME_ARQUIVO" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Saída limpa (padrão=detalhado)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Script de gancho para chamar após downloads, capturas e etc." + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Especifica a porta do dispositivo" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Especifica a velocidade de transferência serial" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "VELOCIDADE" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Especifica o modelo da câmera" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "MODELO" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "Sobrescrever ID do USB (especialistas)" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBIDs" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Exibe a versão e sai" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Lista os modelos de câmera que há suporte" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Lista os dispositivos de porta que há suporte" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Exibe as especificações da câmera/driver no banco de dados do libgphoto2" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Configurar" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Lista a árvore de configurações" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Depeja toda a árvore de configurações" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Obtém o valor de configuração" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Define o valor de configuração ou um índice nas escolhas" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "Define o índice do valor de configuração nas escolhas" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Define o valor de configuração" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Redefinir a porta do dispositivo" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Manter as imagens na câmera após a captura" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "Manter as imagens originais na câmera após a captura" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Remover as imagens da câmera após a captura" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Espera por evento(s) da câmera" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "QTDE, SEGUNDOS, MILISSEGUNDOS ou TEXTO_CORRESPONDENTE" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Esperar por evento(s) da câmera e baixar as novas imagens" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Capturar uma visualização rápida" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "Exibir uma visualização rápida com ASCII Art" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Define o tempo de exposição bulb em segundos" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "SEGUNDOS" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Definir a quantidade de quadros para capturar (padrão=infinito)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "QTDE" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Define o intervalo de captura em segundos" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Redefinir intervalo de captura em ação do sinal (padrão=não)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Capturar uma imagem" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Disparar a captura de uma imagem" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Capturar uma imagem e baixa-la" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Capturar um vídeo" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "QTDE ou SEGUNDOS" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Capturar um clipe de áudio" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Esperar pela liberação do obturador da câmera e baixar" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Disparar a captura de imagem" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Lista as pastas da pasta" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Lista os arquivos da pasta" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Criar um diretório" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "NOME_DIRETORIO" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Remover um diretório" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Exibir quantidade de arquivos" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Obter arquivos de um intervalo" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "INTERVALO" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Obter todos os arquivos da pasta" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Obter as miniaturas de um intervalo" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Obter todas as miniaturas da pasta" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Obter os metadados de um intervalo" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Obter todos os metadados da pasta" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Enviar metadados para arquivo" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Obter os dados não tratados de um intervalo" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Obter todos os dados não tratados da pasta" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Obter os dados de áudio de um intervalo" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Obter todos os dados de áudio da pasta" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Excluir os arquivos de um intervalo" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Excluir todos os arquivos da pasta (predefinido como --no-recurse)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Enviar um arquivo à câmera" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Especifica um nome de arquivo ou um padrão de nome de arquivo" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "PADRAO_NOME_ARQUIVO" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Especifica a pasta da câmera (padrão=\"/\")" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "PASTA" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Recursivo (padrão para download)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Não recursivo (padrão para exclusão)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Processa apenas novos arquivos" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Sobrescrever arquivos sem perguntar" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Ignorar arquivos existentes" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Envia arquivo para a saída padrão" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "Exibe o tamanho do arquivo antes dos dados" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Lista as câmeras detectadas automaticamente" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Exibir informação EXIF das imagens JPEG" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Exibir informações da imagem como largura, altura e data de captura" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "Mostrar resumo da câmera" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Exibir manual do driver da câmera" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "Sobre o manual do driver da câmera" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Mostrar informações de armazenamento" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "Shell do gPhoto" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Opções comuns" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Opções diversas (não ordenadas)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "Obter informações no software e no sistema hospedeiro, não da câmera" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "Especifica qual câmera usar" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Configurações de câmera e software" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Capturar uma imagem da ou na câmera" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Baixando, enviando e manipulando arquivos" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"ID de imagens devem ser um número maior do que zero." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"O ID de imagem %i é muito grande." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Intervalos devem ser separados por \",\"." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Intervalos precisam começar com um número." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Caractere inesperado \"%c\"." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Intervalos decrescentes não são permitidos. Você especificou um intervalo de %i até %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Erro (%i: \"%s\") ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Mudar para um diretório na câmera" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "diretório" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Mudar para um diretório no drive local" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Sair do shell do gPhoto" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Baixar um arquivo" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[diretório/]nome_arquivo" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Enviar um arquivo" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Baixar uma miniatura" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Baixar um dado não tratado" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Excluir" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Criar diretório" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Remover diretório" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Exibe o uso do comando" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[comando]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Lista o conteúdo do diretório atual" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[diretório/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Lista as variáveis de configuração" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Obter variável de configuração" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "nome" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Definir variável de configuração" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "nome=valor" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Definir o índice da variável de configuração" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "nome=indice_valor" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Capturar uma única imagem" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Capturar uma única imagem e baixá-la" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Capturar uma imagem prévia" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Espera por um evento" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "quantidade ou segundos" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Esperar que as imagens sejam capturadas e baixá-las" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Esperar que eventos e imagens sejam capturados e baixá-los" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Comando inválido." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "O comando \"%s\" requer um argumento." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Caminho inválido." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Não foi possível encontrar o diretório home." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Não foi possível mudar para o diretório local \"%s\"." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Diretório local atual \"%s\"." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Diretório remoto atual \"%s\"." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config necessita de um segundo argumento.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value necessita de um segundo argumento.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index necessita de um segundo argumento.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "O comando \"%s\" não foi localizado. Use \"help\" para obter uma lista de comandos disponíveis." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Ajuda em \"%s\":" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Uso:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Descrição:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Os argumentos entre colchetes [] são opcionais" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Comandos disponíveis:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Para obter ajuda em um comando particular digite \"help nome_do_comando\"." + +#~ msgid "Show info" +#~ msgstr "Exibir informação" + +#~ msgid " Name: '%s'\n" +#~ msgstr " Nome: \"%s\"\n" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "Você não pode usar \"%%n\" em combinação a arquivos não persistentes!" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/ro.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/ro.po new file mode 100644 index 00000000..6cd0b936 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/ro.po @@ -0,0 +1,1471 @@ +# Mesajele în limba română pentru gphoto2 +# Copyright (C) 2005, 2006 Free Software Foundation, Inc. +# Acest fişier este distribuit sub aceeaşi licenţă ca şi pachetul gphoto2. +# Laurentiu Buzdugan , 2003-2006. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2-2.3.0\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2006-12-01 12:05-0500\n" +"PO-Revision-Date: 2006-12-11 12:00-0500\n" +"Last-Translator: Laurentiu Buzdugan \n" +"Language-Team: Romanian \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || ((n%100) > 0 && (n%100) < 20)) ? 1 : 2);\n" + +#: gphoto2/actions.c:166 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Numărul de fişiere în director '%s': %i\n" + +#: gphoto2/actions.c:186 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Există %d director în directorul '%s'.\n" +msgstr[1] "Există %d directoare în directorul '%s'.\n" +msgstr[2] "Există %d de directoare în directorul '%s'.\n" + +#: gphoto2/actions.c:226 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Nu există nici un fişier în directorul '%s'.\n" + +#: gphoto2/actions.c:229 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Există %d fişier în directorul '%s'.\n" +msgstr[1] "Există %d fişiere în directorul '%s'.\n" +msgstr[2] "Există %d de fişiere în directorul '%s'.\n" + +#: gphoto2/actions.c:250 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Informaţii despre fişierul '%s' (directorul '%s'):\n" + +#: gphoto2/actions.c:252 +#, c-format +msgid "File:\n" +msgstr "Fişier:\n" + +#: gphoto2/actions.c:254 gphoto2/actions.c:288 gphoto2/actions.c:304 +#, c-format +msgid " None available.\n" +msgstr "Nici unul disponibil.\n" + +#: gphoto2/actions.c:257 +#, c-format +msgid " Name: '%s'\n" +msgstr " Nume: '%s'\n" + +#: gphoto2/actions.c:259 gphoto2/actions.c:291 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Tip Mime: '%s'\n" + +#: gphoto2/actions.c:261 gphoto2/actions.c:293 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr "Dimens: %li octet(i)\n" + +#: gphoto2/actions.c:263 gphoto2/actions.c:295 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Lăţime: %i pixel(i)\n" + +#: gphoto2/actions.c:265 gphoto2/actions.c:297 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr "Înălţime: %i pixel(i)\n" + +#: gphoto2/actions.c:267 gphoto2/actions.c:299 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Descărcat: %s\n" + +#: gphoto2/actions.c:268 gphoto2/actions.c:300 gphoto2/actions.c:312 +#: gphoto2/actions.c:662 gphoto2/actions.c:664 gphoto2/actions.c:692 +#: gphoto2/actions.c:695 gphoto2/actions.c:698 gphoto2/actions.c:701 +#: gphoto2/actions.c:704 gphoto2/actions.c:1404 +msgid "yes" +msgstr "da" + +#: gphoto2/actions.c:268 gphoto2/actions.c:300 gphoto2/actions.c:312 +#: gphoto2/actions.c:662 gphoto2/actions.c:664 gphoto2/actions.c:692 +#: gphoto2/actions.c:695 gphoto2/actions.c:698 gphoto2/actions.c:701 +#: gphoto2/actions.c:704 gphoto2/actions.c:1398 +msgid "no" +msgstr "nu" + +#: gphoto2/actions.c:270 +#, c-format +msgid " Permissions: " +msgstr " Permisiuni: " + +#: gphoto2/actions.c:273 +#, c-format +msgid "read/delete" +msgstr "citeşte/şterge" + +#: gphoto2/actions.c:275 +#, c-format +msgid "read" +msgstr "citeşte" + +#: gphoto2/actions.c:277 +#, c-format +msgid "delete" +msgstr "şterge" + +#: gphoto2/actions.c:279 +#, c-format +msgid "none" +msgstr "nimic" + +#: gphoto2/actions.c:283 +#, c-format +msgid " Time: %s" +msgstr " Timp: %s" + +#: gphoto2/actions.c:286 +#, c-format +msgid "Thumbnail:\n" +msgstr "Thumbnail:\n" + +#: gphoto2/actions.c:302 +#, c-format +msgid "Audio data:\n" +msgstr "Data audio:\n" + +#: gphoto2/actions.c:307 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Cadru Mime: '%s'\n" + +#: gphoto2/actions.c:309 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr "Dimens: %li octet(i)\n" + +#: gphoto2/actions.c:311 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Descărcat: %s\n" + +#: gphoto2/actions.c:487 +msgid "Could not parse EXIF data." +msgstr "Nu am putut parsa data EXIF." + +#: gphoto2/actions.c:491 +#, c-format +msgid "EXIF tags:" +msgstr "Marcaje EXIF:" + +#: gphoto2/actions.c:494 +msgid "Tag" +msgstr "Marcaj" + +#: gphoto2/actions.c:496 +msgid "Value" +msgstr "Valoare" + +#: gphoto2/actions.c:517 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Data EXIF conţine un thumbnail (%i octeţi)." + +#: gphoto2/actions.c:526 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 a fost compilat fără suport pentru EXIF." + +#: gphoto2/actions.c:544 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Numărul aparatelor foto suportate: %i\n" + +#: gphoto2/actions.c:545 +#, c-format +msgid "Supported cameras:\n" +msgstr "Aparate foto suportate:\n" + +#: gphoto2/actions.c:558 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (ÎN TESTARE)\n" + +#: gphoto2/actions.c:561 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (EXPERIMENTAL)\n" + +#: gphoto2/actions.c:566 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:610 +#, c-format +msgid "Devices found: %i\n" +msgstr "Unităţi găsite: %i\n" + +#: gphoto2/actions.c:611 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Cale Descriere\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:641 gphoto2/actions.c:646 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:641 +msgid "Model" +msgstr "Model" + +#: gphoto2/actions.c:641 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:642 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:660 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Capabilităţi aparat foto : %s\n" + +#: gphoto2/actions.c:661 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Suport pentru portul serial : %s\n" + +#: gphoto2/actions.c:663 +#, c-format +msgid "USB support : %s\n" +msgstr "Suport USB : %s\n" + +#: gphoto2/actions.c:666 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Viteze de transport suportate :\n" + +#: gphoto2/actions.c:668 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:671 +#, c-format +msgid "Capture choices :\n" +msgstr "Alegeri captură :\n" + +#: gphoto2/actions.c:673 +#, c-format +msgid " : Image\n" +msgstr " : Imagine\n" + +#: gphoto2/actions.c:677 +#, c-format +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid " : Audio\n" +msgstr " : Audio\n" + +#: gphoto2/actions.c:685 +#, c-format +msgid " : Preview\n" +msgstr " : Previzualizare\n" + +#: gphoto2/actions.c:689 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Captura nu este suportată de driver\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Suport configuraţie : %s\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Şterge fişierele selectate din aparatul foto : %s\n" + +#: gphoto2/actions.c:696 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Şterge toate fişierele din aparatul foto : %s\n" + +#: gphoto2/actions.c:699 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Suport previzualizare (thumbnail) fişier : %s\n" + +#: gphoto2/actions.c:702 +#, c-format +msgid "File upload support : %s\n" +msgstr "Suport pentru încărcarea fişierelor : %s\n" + +#: gphoto2/actions.c:718 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Porturile trebuie să arate ceva de genul 'serial:/dev/ttyS0' sau 'usb:', dar lui '%s' îl lipseşte un ':' aşa că vom încerca să ghicim ce aţi intenţionat să scrieţi." + +#: gphoto2/actions.c:752 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Portul pe care l-aţi specificat ('%s') nu poate fi ghichit. Vă rugăm specificaţi unul dintre porturile găsite folosind comanda 'gphoto2 --list-ports' şi asiguraţi-vă că îl specificaţi corect (adică folosind prefixurile 'serial:' sau 'usb:')." + +#: gphoto2/actions.c:784 +#, c-format +msgid "About the camera driver:" +msgstr "Despre driver-ul pentru aparatul foto:" + +#: gphoto2/actions.c:797 +#, c-format +msgid "Camera summary:" +msgstr "Rezumat despre aparatul foto:" + +#: gphoto2/actions.c:810 +#, c-format +msgid "Camera manual:" +msgstr "Manualul aparatului foto:" + +#: gphoto2/actions.c:825 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Puteţi specifica viteze numai pentru porturile seriale." + +#: gphoto2/actions.c:878 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Portul OS/2 de Bart van Leeuwen\n" + +#: gphoto2/actions.c:882 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller şi alţii\n" +"%s\n" +"gphoto2 vine FĂRĂ GARANŢIE, conform legilor în vigoare. Puteţi\n" +"redistribui copii de gphoto2 conform termenilor Licenţei Publice Generale\n" +"GNU (GNU General Public License). Pentru informaţii suplimentare despre\n" +"aceste chestiuni consultaţi fişierele numite COPYING.\n" +"\n" +"Această versiune de gphoto2 foloseşte următoarele versiuni software şi opţiuni:\n" + +#: gphoto2/actions.c:1002 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Înlocuiesc ID vendor/produs USB 0x%x/0x%x cu 0x%x/0x%x" + +#: gphoto2/actions.c:1066 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "INCLUDEŢI ÎNTORDEAUNA URMĂTOARELE LINII CÂND TRIMITEŢI MESAJE DE DEPANARE LISTEI DE DISCUŢII:" + +#: gphoto2/actions.c:1081 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s a fost compilat cu următoarele opţiuni:" + +#: gphoto2/actions.c:1197 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s nu a fost găsit în arborele de configuraţie." + +#: gphoto2/actions.c:1256 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Nu am reuşit să extrag valoarea widget-ului text %s." + +#: gphoto2/actions.c:1273 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Nu am reuşit să extrag valorile widget-ului interval %s." + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Nu am reuşit să extrag valorile widget-ului comutator %s." + +#: gphoto2/actions.c:1297 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Nu am reuşit să extrag valorile widget-ului dată/timp %s." + +#: gphoto2/actions.c:1327 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Nu am reuşit să extrag valorile widget-ului radio %s." + +#: gphoto2/actions.c:1368 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Nu am reuşit să setez valoarea widget-ului %s ca %s." + +#: gphoto2/actions.c:1378 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Valoarea pasată %s nu este o valoare în virgulă mobilă." + +#: gphoto2/actions.c:1383 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Valoarea pasată %f nu este în intervalus aşteptat %f - %f." + +#: gphoto2/actions.c:1389 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Nu am reuşit să setez valoarea widget-ului interval %s ca %f." + +#: gphoto2/actions.c:1398 +msgid "off" +msgstr "închis" + +#: gphoto2/actions.c:1399 +msgid "false" +msgstr "fals" + +#: gphoto2/actions.c:1404 +msgid "on" +msgstr "deschis" + +#: gphoto2/actions.c:1405 +msgid "true" +msgstr "adevărat" + +#: gphoto2/actions.c:1409 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Valoarea pasată %s nu este o valoare comutator validă." + +#: gphoto2/actions.c:1415 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Nu am reuşit să setez valorile %s ale widget-ului comutator %s." + +#: gphoto2/actions.c:1428 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Valoarea pasată %s nu este nici n timp valid nici un întreg." + +#: gphoto2/actions.c:1435 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Nu am reuşit să setez noul timp pentru widget-ul dată/timp %s ca %s." + +#: gphoto2/actions.c:1472 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Alegerea %s nu a fost găsită în lista de opţiuni." + +#: gphoto2/actions.c:1480 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Widget-ul %s nu este configurabil." + +#: gphoto2/actions.c:1487 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Nu am reuşit să setez noua valoare de configurare %s pentru întrarea %s." + +#: gphoto2/foreach.c:254 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Număr fişiere incorect. Aţi specificat %i, dar există numai %i fişiere în '%s' sau subdirectoarele sale. Vă rugăm obţineţi un număr de fişiere valid folosind comanda ls." + +#: gphoto2/foreach.c:279 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Nu există nici un fişier în directorul '%s'." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Număr fişiere incorect. Aţi specificat %i, dar există numai un fişier în '%s'." + +#: gphoto2/foreach.c:293 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Număr fişiere incorect. Aţi specificat %i, dar există numai %i fişiere în '%s'. Vă rugăm obţineţi un număr de fişiere valid folosind comanda ls." + +#: gphoto2/gp-params.c:67 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Eroare *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Apăsaţi orice tastă pentru a continua.\n" + +#: gphoto2/gp-params.c:258 +#, c-format +msgid "Not enough memory." +msgstr "Memorie insuficientă." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Operaţiune anulată" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "Continuă" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "Renunţă" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "Eroare" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "Nu am putut seta configuraţia:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "Ieşire" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "Înapoi" + +#: gphoto2/gphoto2-cmd-config.c:254 +msgid "Time: " +msgstr "Timp: " + +#: gphoto2/gphoto2-cmd-config.c:313 gphoto2/gphoto2-cmd-config.c:341 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "Valoare: " + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "Da" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "Nu" + +#: gphoto2/main.c:225 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Adăugare de zerouri în numele fişierelor este posibil numai cu %%n." + +#: gphoto2/main.c:234 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Nu puteţi folosi %%n caractere zero adăugate fără o valoare de precizie!" + +#: gphoto2/main.c:250 +#, c-format +msgid "You cannot use '%%n' in combination with non-persistent files!" +msgstr "Nu puteţi folosi '%%n' în combinaţie cu fişiere ne-permanente!" + +#: gphoto2/main.c:281 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Numele de fişier dat de aparatul foto (%s') nu conţine un sufix!" + +#: gphoto2/main.c:336 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Format invalid '%s' (eroare la poziţia %i)." + +#: gphoto2/main.c:385 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Fişierul %s există. Suprascrie? [d|n] " + +#: gphoto2/main.c:397 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Specifică un nou nume de fişier? [y|n] " + +#: gphoto2/main.c:407 +#, c-format +msgid "Enter new filename: " +msgstr "Introduceţi un nou nume de fişier: " + +#: gphoto2/main.c:413 +#, c-format +msgid "Saving file as %s\n" +msgstr "Salvez fişierul ca %s\n" + +#: gphoto2/main.c:563 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Modul cu întârziere-timp activat (interval: %ds).\n" + +#: gphoto2/main.c:570 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Capturez cadrul #%d...\n" + +#: gphoto2/main.c:572 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Capturez cadrul #%d/%d...\n" + +#: gphoto2/main.c:579 +msgid "Could not capture." +msgstr "Nu am putut captura." + +#: gphoto2/main.c:588 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Captura a eşuat (problemă cu auto-focus?)...\n" + +#: gphoto2/main.c:602 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Noul fişier este în locaţia %s%s%s în aparatul foto\n" + +#: gphoto2/main.c:612 +msgid "Could not set folder." +msgstr "Nu am putut seta director." + +#: gphoto2/main.c:637 +msgid "Could not get image." +msgstr "Nu am putut obţine imaginea." + +#: gphoto2/main.c:644 +msgid "Buggy libcanon.so?" +msgstr "libcanon.so cu bug-uri?" + +#: gphoto2/main.c:650 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Şterg fişier %s%s%s din aparatul foto\n" + +#: gphoto2/main.c:655 +msgid "Could not delete image." +msgstr "Nu am putut şterge imaginea." + +#: gphoto2/main.c:675 +msgid "Could not close camera connection." +msgstr "Nu am putut închide conectarea cu aparatul foto." + +#: gphoto2/main.c:681 +#, c-format +msgid "Sleeping for %d second(s)...\n" +msgstr "Adormit pentru %d secunde...\n" + +#: gphoto2/main.c:685 +#, c-format +msgid "not sleeping (%d seconds behind schedule)\n" +msgstr "nu dorm (%d secunde în urmă)\n" + +#: gphoto2/main.c:775 +#, c-format +msgid "ERROR: " +msgstr "EROARE: " + +#: gphoto2/main.c:798 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Renunţ...\n" + +#: gphoto2/main.c:804 +#, c-format +msgid "Aborted.\n" +msgstr "Am renunţat.\n" + +#: gphoto2/main.c:809 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Renunţ...\n" + +#: gphoto2/main.c:943 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Folosiţi următoarea sintaxă a:b=c:d pentru a trata orice dispozitiv USB detectat ca a:b ca c:c in schimb. a b c d trebuie să fie numere hexazecimale începând cu '0x'.\n" + +#: gphoto2/main.c:1071 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 a fost compilat fără suport pentru CDK." + +#: gphoto2/main.c:1256 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Operaţiune anulată.\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Eroare (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1264 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Pentru mesaje de depanare, vă rugăm folosiţi opţiunea --debug.\n" +"Mesajele de depanare v-ar putea ajuta să găsiţi o soluţie problemei dvs.\n" +"Dacă intenţionaţi să trimiteţi orice mesaje de eroare sau depanare listei\n" +"de discuţii a dezvoltatorilor gphoto ,\n" +"vă rugăm rulaţi gphoto2 astfel:\n" + +#: gphoto2/main.c:1349 +msgid "Print complete help message on program usage" +msgstr "Afişează mesajul complet de ajutor depre cum se foloseşte programul" + +#: gphoto2/main.c:1351 +msgid "Print short message on program usage" +msgstr "Afişează un scurt mesaj despre cum se foloseşte programul" + +#: gphoto2/main.c:1353 +msgid "Turn on debugging" +msgstr "Porniţi depanarea" + +#: gphoto2/main.c:1355 +msgid "Name of file to write debug info to" +msgstr "Numele fişierului în care să fie scrisă informaţiile de depanare" + +#: gphoto2/main.c:1355 gphoto2/main.c:1363 +msgid "FILENAME" +msgstr "NUMEFIŞIER" + +#: gphoto2/main.c:1357 +msgid "Quiet output (default=verbose)" +msgstr "Ieşire sumară (implicit=amanunţită)" + +#: gphoto2/main.c:1363 +msgid "Specify port device" +msgstr "Specifică porturi de unităţi" + +#: gphoto2/main.c:1365 +msgid "Specify serial transfer speed" +msgstr "Specifică viteza de transfer pe serial" + +#: gphoto2/main.c:1365 +msgid "SPEED" +msgstr "VITEZĂ" + +#: gphoto2/main.c:1367 +msgid "Specify camera model" +msgstr "Specifică modelul aparatului foto" + +#: gphoto2/main.c:1367 +msgid "MODEL" +msgstr "MODEL" + +#: gphoto2/main.c:1369 +msgid "(expert only) Override USB IDs" +msgstr "(numai experţi) Înlocuieşte ID-urile USB" + +#: gphoto2/main.c:1369 +msgid "USBIDs" +msgstr "ID-uri USB" + +#: gphoto2/main.c:1375 +msgid "Display version and exit" +msgstr "Afişază versiunea şi termină" + +#: gphoto2/main.c:1377 +msgid "List supported camera models" +msgstr "Enumeră modelele de aparate suportate" + +#: gphoto2/main.c:1379 +msgid "List supported port devices" +msgstr "Enumeră porturi de unităţi suportate" + +#: gphoto2/main.c:1381 +msgid "Display camera/driver abilities" +msgstr "Afişeaza capabilităţile aparatului foto/driverului" + +#: gphoto2/main.c:1388 +msgid "Configure" +msgstr "Configurează" + +#: gphoto2/main.c:1391 +msgid "List configuration tree" +msgstr "Listează arborele de configuraţie" + +#: gphoto2/main.c:1393 +msgid "Get configuration value" +msgstr "Obţine valoare configuraţie" + +#: gphoto2/main.c:1395 +msgid "Set configuration value" +msgstr "Setează valoare configuraţie" + +#: gphoto2/main.c:1401 +msgid "Wait for event from camera" +msgstr "Aştept eveniment de la aparatul foto" + +#: gphoto2/main.c:1404 +msgid "Capture a quick preview" +msgstr "Capturează o previzualizare rapidă" + +#: gphoto2/main.c:1406 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Setează numărul de cadre de capturat (implicit=infinit)" + +#: gphoto2/main.c:1406 +msgid "COUNT" +msgstr "NUMĂR" + +#: gphoto2/main.c:1408 +msgid "Set capture interval in seconds" +msgstr "Setează intervalul de captură în secunde" + +#: gphoto2/main.c:1408 +msgid "SECONDS" +msgstr "SECUNDE" + +#: gphoto2/main.c:1410 +msgid "Capture an image" +msgstr "Capturează o imagine" + +#: gphoto2/main.c:1412 +msgid "Capture a movie" +msgstr "Capturează un film" + +#: gphoto2/main.c:1414 +msgid "Capture an audio clip" +msgstr "Capturează un clip audio" + +#: gphoto2/main.c:1420 +msgid "List folders in folder" +msgstr "Enumeră directoare în director" + +#: gphoto2/main.c:1422 +msgid "List files in folder" +msgstr "Enumeră fişierele în director" + +#: gphoto2/main.c:1424 +msgid "Create a directory" +msgstr "Crează un director" + +#: gphoto2/main.c:1424 gphoto2/main.c:1426 +msgid "DIRNAME" +msgstr "NUMEDIRECTOR" + +#: gphoto2/main.c:1426 +msgid "Remove a directory" +msgstr "Şterge un director" + +#: gphoto2/main.c:1428 +msgid "Display number of files" +msgstr "Afişează numărul de fişiere" + +#: gphoto2/main.c:1430 +msgid "Get files given in range" +msgstr "Ia fişierele date în interval" + +#: gphoto2/main.c:1430 gphoto2/main.c:1434 gphoto2/main.c:1439 +#: gphoto2/main.c:1446 gphoto2/main.c:1452 gphoto2/main.c:1457 +msgid "RANGE" +msgstr "INTERVAL" + +#: gphoto2/main.c:1432 +msgid "Get all files from folder" +msgstr "Ia toate fişierele din director" + +#: gphoto2/main.c:1434 +msgid "Get thumbnails given in range" +msgstr "Ia thumbnail-urile date în interval" + +#: gphoto2/main.c:1437 +msgid "Get all thumbnails from folder" +msgstr "Ia toate thumbnail-urile din director" + +#: gphoto2/main.c:1439 +msgid "Get metadata given in range" +msgstr "Ia metadatele date în interval" + +#: gphoto2/main.c:1441 +msgid "Get all metadata from folder" +msgstr "Ia toate metadatele din director" + +#: gphoto2/main.c:1443 +msgid "Upload metadata for file" +msgstr "Încarcă metadatele pentru fişier" + +#: gphoto2/main.c:1446 +msgid "Get raw data given in range" +msgstr "Ia datele 'raw' date în interval" + +#: gphoto2/main.c:1449 +msgid "Get all raw data from folder" +msgstr "Ia toată datele 'raw' din director" + +#: gphoto2/main.c:1452 +msgid "Get audio data given in range" +msgstr "Ia datele audio date în interval" + +#: gphoto2/main.c:1455 +msgid "Get all audio data from folder" +msgstr "Ia toate datele audio din director" + +#: gphoto2/main.c:1457 +msgid "Delete files given in range" +msgstr "Şterge toate fişierele date în interval" + +#: gphoto2/main.c:1459 +msgid "Delete all files in folder" +msgstr "Şterge toate fişierele din director" + +#: gphoto2/main.c:1461 +msgid "Upload a file to camera" +msgstr "Încarvă un fişier în aparatul foto" + +#: gphoto2/main.c:1461 +msgid "filename" +msgstr "nume fişier" + +#: gphoto2/main.c:1463 +msgid "Specify a filename or filename pattern" +msgstr "Specifică un nume sau pattern de fişier" + +#: gphoto2/main.c:1463 +msgid "FILENAME_PATTERN" +msgstr "FILENAME_PATTERN" + +#: gphoto2/main.c:1465 +msgid "Specify camera folder (default=\"/\")" +msgstr "Specifică directorul aparatului foto (implicit=\"/\")" + +#: gphoto2/main.c:1465 +msgid "FOLDER" +msgstr "DIRECTOR" + +#: gphoto2/main.c:1467 +msgid "Recursion (default for download)" +msgstr "Recursiv (implicit pentru descărcare)" + +#: gphoto2/main.c:1469 +msgid "No recursion (default for deletion)" +msgstr "Ne-recursiv (implicit pentru ştergere)" + +#: gphoto2/main.c:1471 +msgid "Process new files only" +msgstr "Procesează numai noile fişiere" + +#: gphoto2/main.c:1473 +msgid "Overwrite files without asking" +msgstr "Suprascrie fişiere fără a întreba." + +#: gphoto2/main.c:1479 +msgid "Send file to stdout" +msgstr "Trimite fişierul la ieşirea standard" + +#: gphoto2/main.c:1481 +msgid "Print filesize before data" +msgstr "Afişează dimensiune fişier înainte de date" + +#: gphoto2/main.c:1483 +msgid "List auto-detected cameras" +msgstr "Enumeră aparatele foto auto-detectate" + +#: gphoto2/main.c:1487 gphoto2/shell.c:132 +msgid "Show EXIF information" +msgstr "Afişează informaţia EXIF" + +#: gphoto2/main.c:1490 gphoto2/shell.c:126 +msgid "Show info" +msgstr "Afişează info" + +#: gphoto2/main.c:1492 +msgid "Show summary" +msgstr "Afişează rezumat" + +#: gphoto2/main.c:1494 +msgid "Show camera driver manual" +msgstr "Afişează manualul driverului aparatului foto" + +#: gphoto2/main.c:1496 +msgid "About the camera driver manual" +msgstr "Despre manualul driverului aparatului foto" + +#: gphoto2/main.c:1498 +msgid "gPhoto shell" +msgstr "shell gPhoto" + +#: gphoto2/main.c:1504 +msgid "Common options" +msgstr "Opţiuni comune" + +#: gphoto2/main.c:1506 +msgid "Miscellaneous options (unsorted)" +msgstr "Diferite opţiuni (nesortate)" + +#: gphoto2/main.c:1508 +msgid "Get information on software and host system (not from the camera)" +msgstr "Ia informaţii despre software şi sistemul gazdă (nu de pe aparatul foto)" + +#: gphoto2/main.c:1510 +msgid "Specify the camera to use" +msgstr "Specifică aparatului foto de folosit" + +#: gphoto2/main.c:1512 +msgid "Camera and software configuration" +msgstr "Configurarea aparatului foto şi software-ului" + +#: gphoto2/main.c:1514 +msgid "Capture an image from or on the camera" +msgstr "Capturează o imagine de pe sau pe aparatul foto" + +#: gphoto2/main.c:1516 +msgid "Downloading, uploading and manipulating files" +msgstr "Descarc, încarc sau manipulez fişiere" + +#: gphoto2/options.c:181 +#, c-format +msgid "Usage:\n" +msgstr "Folosire:\n" + +#: gphoto2/options.c:184 +#, c-format +msgid "" +"Short/long options (& argument) Description\n" +"--------------------------------------------------------------------------------\n" +msgstr "" +"Opţiuni scurte/lungi (& argument) Descriere\n" +"--------------------------------------------------------------------------------\n" + +#: gphoto2/options.c:209 +#, c-format +msgid "%-38s %s\n" +msgstr "%-38s %s\n" + +#: gphoto2/options.c:214 +#, c-format +msgid "" +"--------------------------------------------------------------------------------\n" +"[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +msgstr "" +"--------------------------------------------------------------------------------\n" +"[Folosiţi argumente între ghilimele duble] [Numărul pozelor încep cu unu (1)]\n" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"ID-urile imaginilor trebuie să fie numere mai mari decât zero." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"ID-ul imaginii %i prea mare." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Intervalele trebuie separate de ','." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Intervalele trebuie să înceapă cu un număr." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Caracter neaşteptat '%c'." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Intervalele descrescătoare nu sunt permise. Aţi specificat un interval de la %i la %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Eroare (%i: '%s') ***" + +#: gphoto2/shell.c:115 +msgid "Change to a directory on the camera" +msgstr "Schimbă într-un director pe aparatul foto" + +#: gphoto2/shell.c:116 gphoto2/shell.c:118 gphoto2/shell.c:129 +#: gphoto2/shell.c:130 +msgid "directory" +msgstr "director" + +#: gphoto2/shell.c:117 +msgid "Change to a directory on the local drive" +msgstr "Schimbă într-un director pe discul local" + +#: gphoto2/shell.c:119 gphoto2/shell.c:143 gphoto2/shell.c:144 +msgid "Exit the gPhoto shell" +msgstr "Ieşi shell-ul gPhoto" + +#: gphoto2/shell.c:120 +msgid "Download a file" +msgstr "Descarcă un fişier" + +#: gphoto2/shell.c:120 gphoto2/shell.c:121 gphoto2/shell.c:123 +#: gphoto2/shell.c:125 gphoto2/shell.c:127 gphoto2/shell.c:128 +#: gphoto2/shell.c:133 +msgid "[directory/]filename" +msgstr "[director/]fişier" + +#: gphoto2/shell.c:121 +msgid "Upload a file" +msgstr "Încarcă un fişier" + +#: gphoto2/shell.c:122 +msgid "Download a thumbnail" +msgstr "Descarcă un thumbnail" + +#: gphoto2/shell.c:124 +msgid "Download raw data" +msgstr "Descarcă date 'raw'" + +#: gphoto2/shell.c:128 +msgid "Delete" +msgstr "Şterge" + +#: gphoto2/shell.c:129 +msgid "Create Directory" +msgstr "Crează director" + +#: gphoto2/shell.c:130 +msgid "Remove Directory" +msgstr "Şterge director" + +#: gphoto2/shell.c:135 gphoto2/shell.c:145 +msgid "Displays command usage" +msgstr "Afişează comenzi de folosire" + +#: gphoto2/shell.c:136 gphoto2/shell.c:145 +msgid "[command]" +msgstr "[comandă]" + +#: gphoto2/shell.c:137 +msgid "List the contents of the current directory" +msgstr "Afişează conţinutul directorului curent" + +#: gphoto2/shell.c:138 +msgid "[directory/]" +msgstr "[director/]" + +#: gphoto2/shell.c:139 +msgid "List configuration variables" +msgstr "Listează variabilele de configurare" + +#: gphoto2/shell.c:140 +msgid "Get configuration variable" +msgstr "Obţine variabilele de configurare" + +#: gphoto2/shell.c:140 +msgid "name" +msgstr "nume" + +#: gphoto2/shell.c:141 +msgid "Set configuration variable" +msgstr "Setează variabilele de configurare" + +#: gphoto2/shell.c:141 +msgid "name=value" +msgstr "nume=valoare" + +#: gphoto2/shell.c:142 +msgid "Capture a single image" +msgstr "Capturează o singură imagine" + +#: gphoto2/shell.c:142 +msgid "[name]" +msgstr "[nume]" + +#: gphoto2/shell.c:467 +msgid "Invalid command." +msgstr "Comandă invalidă." + +#: gphoto2/shell.c:476 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Opţiunea `%s' necesită un argument." + +#: gphoto2/shell.c:529 +msgid "Invalid path." +msgstr "Cale invalidă." + +#: gphoto2/shell.c:575 +msgid "Could not find home directory." +msgstr "Nu am putut găsi directorul acasă." + +#: gphoto2/shell.c:583 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Nu am putut schimba în directorul local '%s'." + +#: gphoto2/shell.c:586 +#, c-format +msgid "Local directory now '%s'." +msgstr "Directorul local este acum '%s'." + +#: gphoto2/shell.c:624 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Directorul remote este acum '%s'." + +#: gphoto2/shell.c:840 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config are nevoie de un al doilea argument.\n" + +#: gphoto2/shell.c:870 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Comanda '%s' nu a fost găsită. Folosiţi 'help' pentru a vedea lista comenzilor disponibile." + +#: gphoto2/shell.c:877 +#, c-format +msgid "Help on \"%s\":" +msgstr "Ajutor despre \"%s\":" + +#: gphoto2/shell.c:879 +#, c-format +msgid "Usage:" +msgstr "Folosire:" + +#: gphoto2/shell.c:882 +#, c-format +msgid "Description:" +msgstr "Descriere:" + +#: gphoto2/shell.c:884 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Argumente între parantezele [] sunt opţionale" + +#: gphoto2/shell.c:905 +#, c-format +msgid "Available commands:" +msgstr "Comenzi disponibile:" + +#: gphoto2/shell.c:910 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Pentru a obţine ajutor pentru o anumită comandă, tastaţi 'help nume-comandă'." + +#~ msgid "There are no folders in folder '%s'." +#~ msgstr "Nu există nici un director în directorul '%s'." + +#~ msgid "There are %i folders in folder '%s':" +#~ msgstr "Există %i directoare în directorul '%s':" + +#~ msgid "There are %i files in folder '%s':" +#~ msgstr "Există %i fişiere în directorul '%s':" + +#~ msgid "Displays this help screen" +#~ msgstr "Afişază acest mesaj de ajutor" + +#~ msgid "List the configuration tree" +#~ msgstr "Listează arborele de configuraţie" + +#~ msgid "Capture a movie " +#~ msgstr "Capturează un film " + +#~ msgid "Summary of camera status" +#~ msgstr "Rezumat despre starea aparatului foto" + +#~ msgid "Camera driver manual" +#~ msgstr "Manualul driverului aparatului foto" + +#~ msgid "About the camera driver" +#~ msgstr "Despre driverului aparatului foto" + +#~ msgid "path" +#~ msgstr "cale" + +#~ msgid "speed" +#~ msgstr "viteză" + +#~ msgid "model" +#~ msgstr "model" + +#~ msgid "usbid" +#~ msgstr "idusb" + +#~ msgid "folder" +#~ msgstr "director" + +#~ msgid "count" +#~ msgstr "număr(ă)" + +#~ msgid "seconds" +#~ msgstr "secunde" + +#~ msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +#~ msgstr "gPhoto2 pentru OS/2 necesită să setaţi variabila de mediu CAMLIBS cu locaţia bibliotecilor pentru aparatul foto, de exemplu SET CAMLIBS=C:\\GPHOTO2\\CAM\n" + +#~ msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +#~ msgstr "gPhoto2 pentru OS/2 necesită să setaţi variabila de mediu IOLIBS cu locaţia bibliotecilor io (intrare/ieşire), de exemplu SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" + +#~ msgid "Jan" +#~ msgstr "Ian" + +#~ msgid "January" +#~ msgstr "Ianuarie" + +#~ msgid "Feb" +#~ msgstr "Feb" + +#~ msgid "February" +#~ msgstr "Februrie" + +#~ msgid "Mar" +#~ msgstr "Mar" + +#~ msgid "March" +#~ msgstr "Martie" + +#~ msgid "Apr" +#~ msgstr "Apr" + +#~ msgid "April" +#~ msgstr "Aprilie" + +#~ msgid "May" +#~ msgstr "Mai" + +#~ msgid "Jun" +#~ msgstr "Iun" + +#~ msgid "June" +#~ msgstr "Iunie" + +#~ msgid "Jul" +#~ msgstr "Iul" + +#~ msgid "July" +#~ msgstr "Iulie" + +#~ msgid "Aug" +#~ msgstr "Aug" + +#~ msgid "August" +#~ msgstr "August" + +#~ msgid "Sep" +#~ msgstr "Sep" + +#~ msgid "September" +#~ msgstr "Septembrie" + +#~ msgid "Oct" +#~ msgstr "Oct" + +#~ msgid "October" +#~ msgstr "Octobrie" + +#~ msgid "Nov" +#~ msgstr "Noi" + +#~ msgid "November" +#~ msgstr "Noiembrie" + +#~ msgid "Dec" +#~ msgstr "Dec" + +#~ msgid "December" +#~ msgstr "Decembrie" + +#~ msgid "Sun" +#~ msgstr "Dum" + +#~ msgid "Sunday" +#~ msgstr "Duminică" + +#~ msgid "Monday" +#~ msgstr "Luni" + +#~ msgid "Tue" +#~ msgstr "Mar" + +#~ msgid "Tuesday" +#~ msgstr "Marţi" + +#~ msgid "Wed" +#~ msgstr "Mie" + +#~ msgid "Wednesday" +#~ msgstr "Miercuri" + +#~ msgid "Thu" +#~ msgstr "Joi" + +#~ msgid "Thursday" +#~ msgstr "Joi" + +#~ msgid "Fri" +#~ msgstr "Vin" + +#~ msgid "Friday" +#~ msgstr "Vineri" + +#~ msgid "Sat" +#~ msgstr "Sâm" + +#~ msgid "Saturday" +#~ msgstr "Sâmbătă" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/ru.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/ru.po new file mode 100644 index 00000000..7a236712 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/ru.po @@ -0,0 +1,1647 @@ +# translation of gphoto2-2.4.9.ru.po to Russian +# Russian translations for gphoto2. +# This file is distributed under the same license as the gphoto2 package. +# +# Vyacheslav Dikonov , 2005. +# Yuri Kozlov , 2009, 2010, 2011, 2012, 2013, 2014, 2015. +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2015-11-22 09:43+0300\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"Language: ru\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.5\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Количество файлов в каталоге «%s»: %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "%d каталог в каталоге «%s».\n" +msgstr[1] "%d каталога в каталоге «%s».\n" +msgstr[2] "%d каталогов в каталоге «%s».\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "В каталоге «%s» файлы отсутствуют.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "%d файл в каталоге «%s».\n" +msgstr[1] "%d файла в каталоге «%s».\n" +msgstr[2] "%d файлов в каталоге «%s».\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Сведения о файле «%s» (каталог «%s»):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Файл:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Нет ничего.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Тип MIME: «%s»\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Размер: %lu байт(ов)\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Ширина: %i пиксель(ей)\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Высота: %i пиксель(ей)\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Скачано: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "да" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "нет" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Права доступа: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "чтение/удаление" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "чтение" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "удаление" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "ничего" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Время: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Миниатюра:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Звукозапись:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Тип MIME: «%s»\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Размер: %lu байт(ов)\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Скачано: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Невозможно прочесть данные EXIF." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "Метки EXIF:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Метка" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Значение" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Данные EXIF содержат миниатюру (%i байт)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "Программа gphoto2 собрана без поддержки EXIF." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Число поддерживаемых фотоаппаратов: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Поддерживаемые фотоаппараты:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t«%s» (ТЕСТ)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t«%s» (ЭКСПЕРИМЕНТАЛЬНЫЙ)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t«%s»\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Найдено устройств: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Путь Описание\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Модель" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Порт" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Функции фотоаппарата : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Поддержка послед. порта : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "Поддержка USB : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Поддерживаемые скорости передачи :\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Режимы съёмки :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Фото\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Видео\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Аудио\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Предв. просмотр\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : Запустить процесс съёмки\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Драйвер не поддерживает режим съёмки\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Поддержка настройки : %s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Удаление выбранных файлов с фотоаппарата: %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Удаление всех файлов с фотоаппарата: %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Поддержка миниатюр : %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Поддержка загрузки файлов : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Порт должен быть указан так: «serial:/dev/ttyS0» или «usb:», но в строке «%s» нет двоеточия. Программа попытается угадать, чего вы хотите." + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Указанный порт («%s») не найден. Пожалуйста, выберите один из портов обнаруженных командой «gphoto2 --list-ports» и убедитесь, что нет опечаток (например в префиксах «serial:» и «usb:»)." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "О драйвере фотоаппарата:" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Краткие сведения о фотоаппарате:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Руководство пользователя фотоаппарата:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Скорость можно указывать только для последовательных портов." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Версия для OS/2 написана Бартом ван Лёвином\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Лутц Мюллер и другие\n" +"%s\n" +"gphoto2 поставляется БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, за исключением предписанных законом. \n" +"Вы можете распространять копии программы gphoto2 согласно условиям GNU General \n" +"Public License. Более подробно об этом можно прочитать в файлах COPYING.\n" +"\n" +"Данная версия gphoto2 использует следующие версии программного обеспечения и настройки:\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Не удалось открыть movie.mjpg." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Идёт съёмка пробных кадров фильма в «%s». Чтобы прервать, нажмите Ctrl-C.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Идёт съёмка %2$d секунд пробных кадров фильма в «%1$s».\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Идёт съёмка %d пробных кадров фильма в «%s».\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Ошибка съёмки фильма... Завершение." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Ошибка съёмки фильма... Необработанный тип MIME «%s»." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Нажата Ctrl-C... Завершение.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Съёмка фильма закончена (количество кадров: %d)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Ожидание событий фотоаппарата. Чтобы прервать, нажмите Ctrl-C.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Ожидание %d кадров фотоаппарата. Чтобы прервать, нажмите Ctrl-C.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Ожидание событий фотоаппарата в течение %d миллисекунд. Чтобы прервать, нажмите Ctrl-C.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Ожидание событий фотоаппарата в течение %d секунд. Чтобы прервать, нажмите Ctrl-C.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Ожидание %d событий фотоаппарата. Чтобы прервать, нажмите Ctrl-C.\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Ожидание события %s фотоаппарата. Чтобы прервать, нажмите Ctrl-C.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "событие найдено, остановка ожидания!\n" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Невозможно задать каталог." + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Невозможно извлечь снимок." + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "Ошибка в файле libcanon.so?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Невозможно удалить снимок." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Получение информации о хранилище не поддерживается данным фотоаппаратом.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Чтение-Запись" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Только-Чтение" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Только-чтение с удалением" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Неизвестно" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "Несъёмная ROM" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "Съёмная ROM" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "Несъёмная RAM" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "Съёмная RAM" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Не определено" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Обычная плоская" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Обычная иерархическая" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Расположение камеры (DCIM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Подмена ID изготовителя/модели USB устройства 0x%x/0x%x на 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "ОТСЫЛАЯ ОТЛАДОЧНЫЕ СООБЩЕНИЯ В СПИСОК РАССЫЛКИ ВСЕГДА ВКЛЮЧАЙТЕ В НИХ СЛЕДУЮЩИЕ СТРОКИ:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s собрана со следующими параметрами:" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s не найден в дереве настроек." + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Невозможно получить содержимое текстового поля %s." + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Невозможно получить крайние значения диапазона из %s." + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Невозможно получить значения переключателя %s." + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Невозможно получить значения даты/времени %s." + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Используйте «now» для указания текущего времени.\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Невозможно получить состояние радиокопки %s." + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "Свойство %s доступно только для чтения." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Невозможно задать значение текстового поля %s в %s." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Переданное значение %s не является значением с плавающей точкой." + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Переданное значение %f вне пределов диапазона %f - %f." + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Невозможно задать крайние значения диапазона %s в %f." + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "выкл" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "ложно" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "вкл" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "истинно" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Переданное значение %s не является значением переключателя." + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Невозможно задать значения %s для переключателя %s." + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "сейчас" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Переданное значение %s не является числом или временем." + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Невозможно задать новое значение для даты/времени %s в %s." + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Вариант %s не найден в списке вариантов." + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Элемент интерфейса %s не настраиваем." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Невозможно задать новое значение настройки %s для настроечной единицы %s." + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "Граф. элемент %s не имеет проиндексированного списка выбора. Вместо этого используйте --set-config-value." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Неверное число файлов. Было задано %1$i, но в каталоге «%3$s» и его подкаталогах находится лишь %2$i файл(ов). Правильное число можно узнать из списка файлов." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "В каталоге «%s» нет файлов." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Неверное число файлов. Было задано %i, но в каталоге «%s» и его подкаталогах находится лишь 1 файл." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Неверное число файлов. Было задано %1$i, но в каталоге «%3$s» находится лишь %2$i файл(ов). Правильное число можно узнать из списка файлов." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Ошибка *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Нажмите любую клавишу чтобы продолжить.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Недостаточно памяти." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Действие отменено." + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Продолжить" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Отмена" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Ошибка" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Невозможно задать настройки:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Выход" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Назад" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Время: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Значение: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Да" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Нет" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Номера с нулями в именах файлов возможны только с %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Нельзя использовать «%%n» заполнение нулями без точного значения!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Предоставленное фотоаппаратом имя файла («%s») не имеет расширения!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Неверный формат «%s» (ошибка в позиции %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Пропускается существующий файл %s\n" + +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Файл %s существует. Перезаписать? [y|n] " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Указать новое имя файла? [y|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Введите новое имя файла: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Файл сохраняется с именем %s\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Отказано в доступе" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Невозможно запустить процесс съёмки." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Новый файл находится в фотоаппарате в %s%s%s\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Оставляется файл %s%s%s в фотоаппарате\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Удаляется файл %s%s%s в фотоаппарате\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Во время ожидания произошло событие FOLDER_ADDED %s/%s, игнорируется.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Во время ожидания произошло событие UNKNOWN %s, игнорируется.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Во время ожидания с ручной выдержкой произошло событие %d неизвестного типа, игнорируется.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Не удалось определить возможности?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Включён режим отложенного спуска (задержка: %dсек).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Ожидание SIGUSR1 для съёмки.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Включён режим ручной выдержки (время экспозиции: %dсек).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Снимается кадр %d...\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Снимается кадр %d/%d...\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Невозможно включить съёмку с выдержкой от руки, результат %d." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Невозможно завершить съёмку (режим выдержки от руки)." + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Невозможно запустить процесс съёмки снимка." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Невозможно сделать снимок." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Съёмка не удалась (проблема с автофокусировкой?)...\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Невозможно сделать снимок." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Ожидание %ld секунд перед следующим снимком...\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Начало работы по сигналу SIGUSR1...\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "без ожидания (%ld секунд до запланированного времени)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "ОШИБКА: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Прерывание...\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Прервано.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Отмена...\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Используйте следующую запись: a:b=c:d чтобы работать с любым устройством USB, определяемым как a:b, как с устройством c:d. a b c d - шестнадцатеричные числа, начинающиеся с «0x».\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "Программа gphoto2 собрана без поддержки CDK." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Действие отменено.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Ошибка: фотоаппарат не найден. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Ошибка (%i: «%s») *** \n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Для получения отладочных сообщений воспользуйтесь параметром --debug.\n" +"Отладочные сообщения могут помочь найти решение вашей проблемы.\n" +"Если вы хотите какие-либо сообщения gphoto с список рассылки авторов\n" +"программы , то запускайте\n" +"gphoto2 со следующими параметрами:\n" +"\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Проверьте, что аргументы надёжно экранированы.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "Показ полной справки по работе с программой" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "Показ короткой справки по работе с программой" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Включить режим отладки" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "Задать уровень отладки [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "Имя файла, куда будет писаться отладочная информация" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "ИМЯ_ФАЙЛА" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Не выводить сообщения (по умолчанию - выводить все)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Сценарий, выполняющийся после скачивания, съёмки и т.д." + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Задать порт устройства" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Задать скорость передачи по последовательному порту" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "СКОРОСТЬ" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Задать модель фотоаппарата" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "МОДЕЛЬ" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "(для специалистов) Подмена ID USB устройств" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBID" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Показать версию и выйти" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Показать список поддерживаемых моделей" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Показать список поддерживаемых портов" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Показать возможности фотоаппарата/драйвера из базы данных libgphoto2" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Настроить" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Показать дерево настроек" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Дамп всего дерева настроек" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Получить значение параметра настройки" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Задать значение параметра настройки или индекс из списков выбора" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "Задать значение настройки индекса из списков выбора" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Задать значение параметра настройки" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Сбросить порт устройства" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Оставлять снимки в камере после съёмки" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "Оставлять RAW-снимки в камере после съёмки" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Удалять снимки в камере после съёмки" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Ждать события(й) от фотоаппарата" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "ЧИСЛО, СЕКУНД, МИЛЛИСЕКУНД или СТРОКАСОВПАДЕНИЙ" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Ждать события(й) от фотоаппарата и скачать новые снимки" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Сделать пробный снимок" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "Показать пробный снимок в виде Ascii Art" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Задать время экcпозиции при ручной выдержке в секундах" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "СЕКУНДЫ" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Задать число снимаемых кадров (по умолчанию — бесконечное)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "ЧИСЛО" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Задать интервал между снимками" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Сбрасывать интервал между снимками по сигналу (по умолчанию — нет)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Сделать снимок" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Запустить процесс съёмки снимка" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Сделать снимок и скачать его" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Снять фильм" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "ЧИСЛО или СЕКУНД" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Сделать звукозапись" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Ждать спуска затвора фотоаппарата и скачать" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Запустить процесс съёмки" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Показать список каталогов внутри каталога" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Показать список файлов в каталоге" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Создать каталог" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "ИМЯ_КАТАЛОГА" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Удалить каталог" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Показать количество файлов" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Извлечь файлы в диапазоне" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "ДИАПАЗОН" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Извлечь все файлы из каталога" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Извлечь миниатюры в диапазоне" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Извлечь все миниатюры из каталога" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Извлечь метаданные в диапазоне" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Извлечь все метаданные из каталога" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Загрузить метаданные файла" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Извлечь исходные данные в диапазоне" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Извлечь все исходные данные из каталога" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Извлечь звукозаписи в диапазоне" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Извлечь все звукозаписи из каталога" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Удалить файлы в диапазоне" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Удалить все файлы в каталоге (--no-recurse по умолчанию включён)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Загрузить файл в память фотоаппарата" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Указать имя файла или шаблон" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "ИМЯ_ФАЙЛА_ШАБЛОН" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Указать каталог фотоаппарата (по умолчанию — «/»)" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "КАТАЛОГ" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Рекурсивно (по умолчанию при копировании)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Нерекурсивно (по умолчанию при удалении)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Обработать только новые файлы" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Перезаписывать файлы не спрашивая" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Пропускать существующие файлы" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Посылать файл на стандартный вывод" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "Выводить размер файла перед датой" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Показать список автоматически распознаваемых фотоаппаратов" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Показать данные EXIF изображений JPEG" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Показать информацию об изображении, например ширину, высоту и время съёмки" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "Показать краткие сведения о фотоаппарате" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Показать описание драйвера фотоаппарата" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "Об описании драйвера фотоаппарата" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Показать данные о хранилище" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "Интерпретатор команд gPhoto" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Общие параметры" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Прочие параметры (без сортировки)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "Получить информацию о ПО и компьютере (не фотоаппарата)" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "Указать модель фотоаппарата" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Настройки фотоаппарата и ПО" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Сделать снимок с или на фотоаппарат" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Скачивание, загрузка и управление файлами" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"ID снимков должны быть числами больше ноля." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Слишком большой ID снимка %i." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Диапазоны должны разделяться «,»." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Диапазоны должны начинаться с цифры." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Недопустимый символ «%c»." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Нельзя указывать диапазон начиная с меньшего числа. Задан диапазон от %i до %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Ошибка (%i: «%s») ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Перейти в каталог в памяти фотоаппарата" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "каталог" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Перейти в каталог на жёстком диске" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Выход из интерпретатора команд gPhoto" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Скачать файл" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[каталог/]файл" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Загрузить файл" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Скачать миниатюру" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Скачать исходные данные" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Удалить" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Создать каталог" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Удалить каталог" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Справка по командам" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[команда]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Показать содержимое текущего каталога" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[каталог/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Список переменных настройки" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Извлечь переменную настройки" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "имя" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Задать переменную настройки" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "имя=значение" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Задать индекс переменной настройки" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "имя=значение_индекса" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Сделать одиночный снимок" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Сделать одиночный снимок и скачать его" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Сделать снимок для предварительного просмотра" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Ждать события" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "количество или секунд" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Ждать захвата снимков и скачать их" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Ждать событий и захвата снимков скачать их" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Неверная команда." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Для команды «%s» необходимо указать аргумент." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Неверный путь." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Не найден домашний каталог." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Невозможно перейти в локальный каталог «%s»." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Текущий локальный каталог «%s»." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Текущий удалённый каталог «%s»." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "Для set-config необходимо указать второй аргумент.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "Для set-config-value необходимо указать второй аргумент.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "Для set-config-index необходимо указать второй аргумент.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Команды «%s» не существует. Введите «help» для получения списка доступных команд." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Справка по «%s»:" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Использование:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Описание:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Аргументы в скобках [] могут отсутствовать" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Доступные команды:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Чтобы получить справку по определенной команде введите «help команда»." + +#~ msgid "Show info" +#~ msgstr "Показать сведения" + +#~ msgid " Name: '%s'\n" +#~ msgstr " Имя: «%s»\n" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "Нельзя использовать '%%n' с временно существующими файлами!" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/rw.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/rw.po new file mode 100644 index 00000000..edc5c898 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/rw.po @@ -0,0 +1,1972 @@ +# Kinyarwanda translations for gphoto2 package. +# Copyright (C) 2005 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# Steve Murphy , 2005. +# Steve performed initial rough translation from compendium built from translations provided by the following translators: +# Philibert Ndandali , 2005. +# Viateur MUGENZI , 2005. +# Noëlla Mupole , 2005. +# Carole Karema , 2005. +# JEAN BAPTISTE NGENDAHAYO , 2005. +# Augustin KIBERWA , 2005. +# Donatien NSENGIYUMVA , 2005. +# Antoine Bigirimana , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.1.5\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-03-23 21:57+0100\n" +"PO-Revision-Date: 2005-04-04 10:55-0700\n" +"Last-Translator: Steven Michael Murphy \n" +"Language-Team: Kinyarwanda \n" +"Language: rw\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: gphoto2/actions.c:174 +#, fuzzy, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Bya Idosiye in Ububiko" + +#: gphoto2/actions.c:195 +#, fuzzy, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "ni Ububiko in Ububiko" +msgstr[1] "ni Ububiko in Ububiko" + +#: gphoto2/actions.c:244 +#, fuzzy, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "ni IDOSIYE in Ububiko" + +#: gphoto2/actions.c:247 +#, fuzzy, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "ni IDOSIYE in Ububiko" +msgstr[1] "ni IDOSIYE in Ububiko" + +#: gphoto2/actions.c:269 +#, fuzzy, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "ku IDOSIYE Ububiko" + +# sc/source\ui\src\globstr.src:RID_GLOBSTR.STR_LINKERRORFILE.text +#: gphoto2/actions.c:271 +#, fuzzy, c-format +msgid "File:\n" +msgstr "Idosiye:" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, fuzzy, c-format +msgid " None available.\n" +msgstr "Ntakiboneka" + +# framework/source\classes\fltdlg.src:DLG_FILTER_SELECT.FT_DLG_MIMETYPE.text +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, fuzzy, c-format +msgid " Mime type: '%s'\n" +msgstr "Ubwoko bwa MIME:" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, fuzzy, c-format +msgid " Size: %lu byte(s)\n" +msgstr "Bayite S" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, fuzzy, c-format +msgid " Width: %i pixel(s)\n" +msgstr "S" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, fuzzy, c-format +msgid " Height: %i pixel(s)\n" +msgstr "S" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, fuzzy, c-format +msgid " Downloaded: %s\n" +msgstr "Yimuwe" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1803 gphoto2/actions.c:2046 +msgid "yes" +msgstr "Yego" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1797 gphoto2/actions.c:2040 +#, fuzzy +msgid "no" +msgstr "Oya" + +#: gphoto2/actions.c:287 +#, fuzzy, c-format +msgid " Permissions: " +msgstr "Uruhushya" + +#: gphoto2/actions.c:290 +#, fuzzy, c-format +msgid "read/delete" +msgstr "Gusoma Gusiba" + +#: gphoto2/actions.c:292 +#, fuzzy, c-format +msgid "read" +msgstr "Soma" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "gusiba" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "ntacyo" + +#: gphoto2/actions.c:300 +#, fuzzy, c-format +msgid " Time: %s" +msgstr "Igihe" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "" + +#: gphoto2/actions.c:319 +#, fuzzy, c-format +msgid "Audio data:\n" +msgstr "Ibyatanzwe" + +# framework/source\classes\fltdlg.src:DLG_FILTER_SELECT.FT_DLG_MIMETYPE.text +#: gphoto2/actions.c:324 +#, fuzzy, c-format +msgid " Mime type: '%s'\n" +msgstr "Ubwoko bwa MIME:" + +#: gphoto2/actions.c:326 +#, fuzzy, c-format +msgid " Size: %lu byte(s)\n" +msgstr "Bayite S" + +#: gphoto2/actions.c:328 +#, fuzzy, c-format +msgid " Downloaded: %s\n" +msgstr "Yimuwe" + +#: gphoto2/actions.c:504 +#, fuzzy +msgid "Could not parse EXIF data." +msgstr "OYA Ibyatanzwe" + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Itagi" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Agaciro" + +#: gphoto2/actions.c:534 +#, fuzzy, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Ibyatanzwe Kirimo a Bayite" + +#: gphoto2/actions.c:543 +#, fuzzy +msgid "gphoto2 has been compiled without EXIF support." +msgstr "Gushigikira" + +#: gphoto2/actions.c:561 +#, fuzzy, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Bya" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "" + +# desktop/source\app\ssodlg.src:DLG_SSOLOGIN.text +#: gphoto2/actions.c:583 +#, fuzzy, c-format +msgid "\t\"%s\"\n" +msgstr "\"%s\"" + +#: gphoto2/actions.c:627 +#, fuzzy, c-format +msgid "Devices found: %i\n" +msgstr "Byabonetse" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" + +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, fuzzy, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s%-16s" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Urugero" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Umuyoboro" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "" + +#: gphoto2/actions.c:680 +#, fuzzy, c-format +msgid "Abilities for camera : %s\n" +msgstr "kugirango Kamera" + +#: gphoto2/actions.c:681 +#, fuzzy, c-format +msgid "Serial port support : %s\n" +msgstr "Umuyoboro Gushigikira" + +#: gphoto2/actions.c:683 +#, fuzzy, c-format +msgid "USB support : %s\n" +msgstr "Gushigikira" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "" + +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +#: gphoto2/actions.c:688 +#, fuzzy, c-format +msgid " : %i\n" +msgstr ":%i" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr "" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr "" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr "" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr "" + +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +#: gphoto2/actions.c:709 +#, fuzzy, c-format +msgid " : Trigger Capture\n" +msgstr ":%i" + +#: gphoto2/actions.c:713 +#, fuzzy, c-format +msgid "" +" : Capture not supported by the driver\n" +msgstr ":OYA ku i" + +#: gphoto2/actions.c:715 +#, fuzzy, c-format +msgid "Configuration support : %s\n" +msgstr "Gushigikira" + +#: gphoto2/actions.c:717 +#, fuzzy, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Idosiye ku Kamera Gushigikira" + +#: gphoto2/actions.c:720 +#, fuzzy, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Idosiye ku Kamera Gushigikira" + +#: gphoto2/actions.c:723 +#, fuzzy, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Idosiye Igaragazambere Gushigikira" + +#: gphoto2/actions.c:726 +#, fuzzy, c-format +msgid "File upload support : %s\n" +msgstr "Idosiye Gushigikira" + +#: gphoto2/actions.c:743 +#, fuzzy, c-format +msgid "" +"Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a " +"colon so I am going to guess what you mean." +msgstr "nka Cyangwa ni Ibuze a Kuri Gukeka Impuzandengo-" + +#: gphoto2/actions.c:777 +#, fuzzy, c-format +msgid "" +"The port you specified ('%s') can not be found. Please specify one of the " +"ports found by 'gphoto2 --list-ports' and make sure the spelling is correct " +"(i.e. with prefix 'serial:' or 'usb:')." +msgstr "E." + +#: gphoto2/actions.c:810 +#, fuzzy, c-format +msgid "About the camera driver:" +msgstr "i Kamera Musomyi:" + +#: gphoto2/actions.c:823 +#, fuzzy, c-format +msgid "Camera summary:" +msgstr "Inshamake" + +#: gphoto2/actions.c:836 +#, fuzzy, c-format +msgid "Camera manual:" +msgstr "Bikorwa" + +#: gphoto2/actions.c:853 +#, fuzzy, c-format +msgid "You can only specify speeds for serial ports." +msgstr "kugirango" + +#: gphoto2/actions.c:903 +#, fuzzy +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "2. Umuyoboro ku" + +#: gphoto2/actions.c:907 +#, fuzzy, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named " +"COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and " +"options:\n" +msgstr "" +"C Na Na: Kuri i Kwagura ku Amakopi Bya i Bya i Birenzeho Ibisobanuro " +"Ibyerekeye i Idosiye Verisiyo Bya ni ikoresha i Uburyo Na Amahitamo" + +#: gphoto2/actions.c:1020 +#, fuzzy +msgid "Could not open 'movie.mjpg'." +msgstr "OYA Kubona Ishusho" + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "" + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "" + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "" +"Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +#, fuzzy +msgid "Could not set folder." +msgstr "OYA Gushyiraho Ububiko" + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +#, fuzzy +msgid "Could not get image." +msgstr "OYA Kubona Ishusho" + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +#, fuzzy +msgid "Could not delete image." +msgstr "OYA Gusiba Ishusho" + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "" + +#: gphoto2/actions.c:1367 +#, fuzzy, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Umucuruzi IGIKUBO ID Na:" + +#: gphoto2/actions.c:1435 +msgid "" +"ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE " +"MAILING LIST:" +msgstr "" + +#: gphoto2/actions.c:1450 +#, fuzzy, c-format +msgid "%s has been compiled with the following options:" +msgstr "%sNa: i Amahitamo" + +#: gphoto2/actions.c:1590 +#, fuzzy, c-format +msgid "%s not found in configuration tree." +msgstr "%sOYA Byabonetse in Iboneza" + +#: gphoto2/actions.c:1637 +#, fuzzy, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Kuri Agaciro Bya Umwandiko" + +#: gphoto2/actions.c:1654 +#, fuzzy, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Kuri Uduciro Bya Urutonde" + +#: gphoto2/actions.c:1666 +#, fuzzy, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Kuri Uduciro Bya Mukomatanya" + +#: gphoto2/actions.c:1678 +#, fuzzy, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Kuri Uduciro Bya Itariki Igihe" + +#: gphoto2/actions.c:1687 +msgid "Use 'now' as the current time when setting.\n" +msgstr "" + +#: gphoto2/actions.c:1709 +#, fuzzy, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Kuri Uduciro Bya" + +#: gphoto2/actions.c:1753 +#, c-format +msgid "Property %s is read only." +msgstr "" + +#: gphoto2/actions.c:1767 gphoto2/actions.c:2010 +#, fuzzy, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Kuri Agaciro Bya Umwandiko" + +#: gphoto2/actions.c:1777 gphoto2/actions.c:2020 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "" + +#: gphoto2/actions.c:1782 gphoto2/actions.c:2025 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "" + +#: gphoto2/actions.c:1788 gphoto2/actions.c:2031 +#, fuzzy, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Kuri Uduciro Bya Urutonde" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2040 +msgid "off" +msgstr "" + +#: gphoto2/actions.c:1798 gphoto2/actions.c:2041 +#, fuzzy +msgid "false" +msgstr "Agaciro" + +#: gphoto2/actions.c:1803 gphoto2/actions.c:2046 +#, fuzzy +msgid "on" +msgstr "ntacyo" + +#: gphoto2/actions.c:1804 gphoto2/actions.c:2047 +msgid "true" +msgstr "" + +#: gphoto2/actions.c:1809 gphoto2/actions.c:2052 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "" + +#: gphoto2/actions.c:1815 gphoto2/actions.c:2058 +#, fuzzy, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Kuri Uduciro Bya Mukomatanya" + +#: gphoto2/actions.c:1827 +#, fuzzy +msgid "now" +msgstr "Oya" + +#: gphoto2/actions.c:1839 gphoto2/actions.c:2071 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "" + +#: gphoto2/actions.c:1847 gphoto2/actions.c:2078 +#, fuzzy, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Kuri Uduciro Bya Itariki Igihe" + +#: gphoto2/actions.c:1894 gphoto2/actions.c:1961 gphoto2/actions.c:2108 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "" + +#: gphoto2/actions.c:1902 gphoto2/actions.c:2116 +#, c-format +msgid "The %s widget is not configurable." +msgstr "" + +#: gphoto2/actions.c:1912 gphoto2/actions.c:1983 gphoto2/actions.c:2126 +#, fuzzy, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Kuri Uduciro Bya" + +#: gphoto2/actions.c:1973 +#, c-format +msgid "" +"The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "" + +#: gphoto2/foreach.c:260 +#, fuzzy, c-format +msgid "" +"Bad file number. You specified %i, but there are only %i files available in " +"'%s' or its subfolders. Please obtain a valid file number from a file " +"listing first." +msgstr "" +"IDOSIYE Umubare Idosiye Bihari in Cyangwa a Byemewe IDOSIYE Umubare Bivuye a " +"IDOSIYE Itangira" + +#: gphoto2/foreach.c:285 +#, fuzzy, c-format +msgid "There are no files in folder '%s'." +msgstr "Oya Idosiye in Ububiko" + +#: gphoto2/foreach.c:291 +#, fuzzy, c-format +msgid "" +"Bad file number. You specified %i, but there is only 1 file available in " +"'%s'." +msgstr "IDOSIYE Umubare ni 1. IDOSIYE Bihari in" + +#: gphoto2/foreach.c:299 +#, fuzzy, c-format +msgid "" +"Bad file number. You specified %i, but there are only %i files available in " +"'%s'. Please obtain a valid file number from a file listing first." +msgstr "" +"IDOSIYE Umubare Idosiye Bihari in a Byemewe IDOSIYE Umubare Bivuye a IDOSIYE " +"Itangira" + +# sw/source\ui\utlui\initui.src:RID_SW_SHELLRES.STR_CALC_DEFAULT.text +#: gphoto2/gp-params.c:66 +#, fuzzy, c-format +msgid "*** Error *** \n" +msgstr "***Ikosa**" + +#: gphoto2/gp-params.c:241 +#, fuzzy, c-format +msgid "Press any key to continue.\n" +msgstr "Urufunguzo Kuri urifuzagukomeza" + +#: gphoto2/gp-params.c:263 +#, fuzzy, c-format +msgid "Not enough memory." +msgstr "Ububiko ntibuhagije" + +#: gphoto2/gphoto2-cmd-capture.c:211 +#, fuzzy +msgid "Operation cancelled" +msgstr "Kureka" + +#: gphoto2/gphoto2-cmd-config.c:57 +#, fuzzy +msgid "Continue" +msgstr "Cancel" +msgstr "" + +#: gphoto2/gphoto2-cmd-config.c:63 +#, fuzzy +msgid "Error" +msgstr ", please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Ubutumwa Gukoresha i Kosora amakosa Ihitamo Ubutumwa Gicurasi Ifashayobora a " +"Kuri Kuri Kohereza Ikosa Cyangwa Kosora amakosa Ubutumwa Kuri i Urutonde " +"Intonde Cyuzuye Nka" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "" + +#: gphoto2/main.c:1969 +#, fuzzy +msgid "Turn on debugging" +msgstr "ku" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "" + +#: gphoto2/main.c:1975 +#, fuzzy +msgid "Quiet output (default=verbose)" +msgstr "Ibisohoka Mburabuzi" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "" + +#: gphoto2/main.c:1984 +#, fuzzy +msgid "Specify device port" +msgstr "Umuyoboro APAREYE" + +#: gphoto2/main.c:1986 +#, fuzzy +msgid "Specify serial transfer speed" +msgstr "Umuvuduko" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "" + +#: gphoto2/main.c:1988 +#, fuzzy +msgid "Specify camera model" +msgstr "Kamera Urugero" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "" + +#: gphoto2/main.c:1996 +#, fuzzy +msgid "Display version and exit" +msgstr "Verisiyo Na Gusohoka" + +#: gphoto2/main.c:1998 +#, fuzzy +msgid "List supported camera models" +msgstr "Kamera Ingerofatizo" + +#: gphoto2/main.c:2000 +#, fuzzy +msgid "List supported port devices" +msgstr "Umuyoboro" + +#: gphoto2/main.c:2002 +#, fuzzy +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Kamera" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Kugena Imiterere" + +#: gphoto2/main.c:2012 +#, fuzzy +msgid "List configuration tree" +msgstr "Iboneza" + +#: gphoto2/main.c:2014 +#, fuzzy +msgid "Dump full configuration tree" +msgstr "Iboneza" + +#: gphoto2/main.c:2016 +#, fuzzy +msgid "Get configuration value" +msgstr "Iboneza Agaciro" + +#: gphoto2/main.c:2018 +#, fuzzy +msgid "Set configuration value or index in choices" +msgstr "Iboneza Agaciro" + +#: gphoto2/main.c:2020 +#, fuzzy +msgid "Set configuration value index in choices" +msgstr "Iboneza Agaciro" + +#: gphoto2/main.c:2022 +#, fuzzy +msgid "Set configuration value" +msgstr "Iboneza Agaciro" + +#: gphoto2/main.c:2024 +#, fuzzy +msgid "Reset device port" +msgstr "Umuyoboro APAREYE" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "" + +#: gphoto2/main.c:2041 +#, fuzzy +msgid "Capture a quick preview" +msgstr "a Igaragazambere" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "" + +#: gphoto2/main.c:2046 +#, fuzzy +msgid "Set bulb exposure time in seconds" +msgstr "Intera in amasogonda" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "" + +#: gphoto2/main.c:2048 +#, fuzzy +msgid "Set number of frames to capture (default=infinite)" +msgstr "Umubare Bya Amakadiri Kuri Mburabuzi Bidashira" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "" + +#: gphoto2/main.c:2050 +#, fuzzy +msgid "Set capture interval in seconds" +msgstr "Intera in amasogonda" + +#: gphoto2/main.c:2052 +#, fuzzy +msgid "Reset capture interval on signal (default=no)" +msgstr "Intera in amasogonda" + +#: gphoto2/main.c:2054 +#, fuzzy +msgid "Capture an image" +msgstr "Ishusho" + +#: gphoto2/main.c:2056 +#, fuzzy +msgid "Trigger capture of an image" +msgstr "Ishusho" + +#: gphoto2/main.c:2058 +#, fuzzy +msgid "Capture an image and download it" +msgstr "Ishusho" + +#: gphoto2/main.c:2060 +#, fuzzy +msgid "Capture a movie" +msgstr "a" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "" + +#: gphoto2/main.c:2072 +#, fuzzy +msgid "List folders in folder" +msgstr "in Ububiko" + +#: gphoto2/main.c:2074 +#, fuzzy +msgid "List files in folder" +msgstr "Idosiye in Ububiko" + +#: gphoto2/main.c:2076 +#, fuzzy +msgid "Create a directory" +msgstr "a bushyinguro" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "" + +#: gphoto2/main.c:2078 +#, fuzzy +msgid "Remove a directory" +msgstr "a bushyinguro" + +#: gphoto2/main.c:2080 +#, fuzzy +msgid "Display number of files" +msgstr "Umubare Bya Idosiye" + +#: gphoto2/main.c:2082 +#, fuzzy +msgid "Get files given in range" +msgstr "Idosiye in Urutonde" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "" + +#: gphoto2/main.c:2084 +#, fuzzy +msgid "Get all files from folder" +msgstr "Byose Idosiye Bivuye Ububiko" + +#: gphoto2/main.c:2086 +#, fuzzy +msgid "Get thumbnails given in range" +msgstr "in Urutonde" + +#: gphoto2/main.c:2089 +#, fuzzy +msgid "Get all thumbnails from folder" +msgstr "Byose Bivuye Ububiko" + +#: gphoto2/main.c:2091 +#, fuzzy +msgid "Get metadata given in range" +msgstr "Ibyatanzwe in Urutonde" + +#: gphoto2/main.c:2093 +#, fuzzy +msgid "Get all metadata from folder" +msgstr "Byose Ibyatanzwe Bivuye Ububiko" + +#: gphoto2/main.c:2095 +#, fuzzy +msgid "Upload metadata for file" +msgstr "a IDOSIYE" + +#: gphoto2/main.c:2098 +#, fuzzy +msgid "Get raw data given in range" +msgstr "Ibyatanzwe in Urutonde" + +#: gphoto2/main.c:2101 +#, fuzzy +msgid "Get all raw data from folder" +msgstr "Byose Ibyatanzwe Bivuye Ububiko" + +#: gphoto2/main.c:2104 +#, fuzzy +msgid "Get audio data given in range" +msgstr "Ibyatanzwe in Urutonde" + +#: gphoto2/main.c:2107 +#, fuzzy +msgid "Get all audio data from folder" +msgstr "Byose Ibyatanzwe Bivuye Ububiko" + +#: gphoto2/main.c:2109 +#, fuzzy +msgid "Delete files given in range" +msgstr "Idosiye in Urutonde" + +#: gphoto2/main.c:2111 +#, fuzzy +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Byose Idosiye in Ububiko" + +#: gphoto2/main.c:2113 +#, fuzzy +msgid "Upload a file to camera" +msgstr "a IDOSIYE Kuri Kamera" + +#: gphoto2/main.c:2115 +#, fuzzy +msgid "Specify a filename or filename pattern" +msgstr "a Izina ry'idosiye:" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "" + +#: gphoto2/main.c:2117 +#, fuzzy +msgid "Specify camera folder (default=\"/\")" +msgstr "Kamera Ububiko Mburabuzi" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "" + +#: gphoto2/main.c:2119 +#, fuzzy +msgid "Recursion (default for download)" +msgstr "Mburabuzi kugirango Gufungura" + +#: gphoto2/main.c:2121 +#, fuzzy +msgid "No recursion (default for deletion)" +msgstr "Mburabuzi kugirango Isibwa" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "" + +#: gphoto2/main.c:2125 +#, fuzzy +msgid "Overwrite files without asking" +msgstr "Gusimbuza Idosiye" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "" + +#: gphoto2/main.c:2133 +#, fuzzy +msgid "Send file to stdout" +msgstr "IDOSIYE Kuri" + +#: gphoto2/main.c:2135 +#, fuzzy +msgid "Print filesize before data" +msgstr "Mbere Ibyatanzwe" + +#: gphoto2/main.c:2137 +#, fuzzy +msgid "List auto-detected cameras" +msgstr "Ikiyega" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +#, fuzzy +msgid "Show EXIF information of JPEG images" +msgstr "Ibisobanuro" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "" + +#: gphoto2/main.c:2146 +#, fuzzy +msgid "Show camera summary" +msgstr "Inshamake" + +#: gphoto2/main.c:2148 +#, fuzzy +msgid "Show camera driver manual" +msgstr "Kamera Musomyi: Bikorwa" + +#: gphoto2/main.c:2150 +#, fuzzy +msgid "About the camera driver manual" +msgstr "i Kamera Musomyi: Bikorwa" + +#: gphoto2/main.c:2152 +#, fuzzy +msgid "Show storage information" +msgstr "Ibisobanuro" + +#: gphoto2/main.c:2154 +#, fuzzy +msgid "gPhoto shell" +msgstr "Igikonoshwa" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "" + +#: gphoto2/main.c:2166 +#, fuzzy +msgid "Specify the camera to use" +msgstr "Kamera Urugero" + +#: gphoto2/main.c:2168 +#, fuzzy +msgid "Camera and software configuration" +msgstr "OYA Gushyiraho Iboneza" + +#: gphoto2/main.c:2170 +#, fuzzy +msgid "Capture an image from or on the camera" +msgstr "Kuri a bushyinguro ku i Kamera" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, fuzzy, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "%sa Umubare Biruta Zeru" + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, fuzzy, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "%skirekire" + +#: gphoto2/range.c:126 +#, fuzzy, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "%sku" + +#: gphoto2/range.c:140 +#, fuzzy, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "%sKuri Gutangira Na: a Umubare" + +#: gphoto2/range.c:180 +#, fuzzy, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "%sInyuguti" + +#: gphoto2/range.c:204 +#, fuzzy, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "%sIbice OYA a Urutonde Bivuye Kuri" + +# sw/source\ui\utlui\initui.src:RID_SW_SHELLRES.STR_CALC_DEFAULT.text +#: gphoto2/shell.c:65 +#, fuzzy, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "***Ikosa**" + +#: gphoto2/shell.c:121 +#, fuzzy +msgid "Change to a directory on the camera" +msgstr "Kuri a bushyinguro ku i Kamera" + +# svtools/source\dialogs\filedlg2.src:STR_FILEDLG_DIR.text +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +#, fuzzy +msgid "directory" +msgstr "Ububiko" + +#: gphoto2/shell.c:123 +#, fuzzy +msgid "Change to a directory on the local drive" +msgstr "Kuri a bushyinguro ku i Porogaramu- shoboza" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +#, fuzzy +msgid "Exit the gPhoto shell" +msgstr "i Igikonoshwa" + +#: gphoto2/shell.c:126 +#, fuzzy +msgid "Download a file" +msgstr "a IDOSIYE" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +#, fuzzy +msgid "[directory/]filename" +msgstr "[bushyinguro Izina ry'idosiye:" + +#: gphoto2/shell.c:127 +#, fuzzy +msgid "Upload a file" +msgstr "a IDOSIYE" + +#: gphoto2/shell.c:128 +#, fuzzy +msgid "Download a thumbnail" +msgstr "a" + +#: gphoto2/shell.c:130 +#, fuzzy +msgid "Download raw data" +msgstr "Ibyatanzwe" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Gusiba" + +#: gphoto2/shell.c:135 +#, fuzzy +msgid "Create Directory" +msgstr "a bushyinguro" + +#: gphoto2/shell.c:136 +#, fuzzy +msgid "Remove Directory" +msgstr "a bushyinguro" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +#, fuzzy +msgid "Displays command usage" +msgstr "Komandi: Ikoresha:" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +#, fuzzy +msgid "[command]" +msgstr "[Komandi:" + +#: gphoto2/shell.c:143 +#, fuzzy +msgid "List the contents of the current directory" +msgstr "i Ibigize Bya i KIGEZWEHO bushyinguro" + +#: gphoto2/shell.c:144 +#, fuzzy +msgid "[directory/]" +msgstr "[ububiko" + +#: gphoto2/shell.c:145 +#, fuzzy +msgid "List configuration variables" +msgstr "a Iboneza IMPINDURAGACIRO" + +#: gphoto2/shell.c:146 +#, fuzzy +msgid "Get configuration variable" +msgstr "a Iboneza IMPINDURAGACIRO" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "izina" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +#, fuzzy +msgid "Set configuration variable" +msgstr "a Iboneza IMPINDURAGACIRO" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "" + +#: gphoto2/shell.c:148 +#, fuzzy +msgid "Set configuration variable index" +msgstr "a Iboneza IMPINDURAGACIRO" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "" + +#: gphoto2/shell.c:150 +#, fuzzy +msgid "Capture a single image" +msgstr "Ishusho" + +#: gphoto2/shell.c:151 +#, fuzzy +msgid "Capture a single image and download it" +msgstr "Ishusho" + +#: gphoto2/shell.c:152 +#, fuzzy +msgid "Capture a preview image" +msgstr "Ishusho" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +#, fuzzy +msgid "count or seconds" +msgstr "amasegonda" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "" + +#: gphoto2/shell.c:480 +#, fuzzy +msgid "Invalid command." +msgstr "Komandi:" + +#: gphoto2/shell.c:489 +#, fuzzy, c-format +msgid "The command '%s' requires an argument." +msgstr "Komandi:" + +#: gphoto2/shell.c:542 +#, fuzzy +msgid "Invalid path." +msgstr "Inzira siyo" + +#: gphoto2/shell.c:588 +#, fuzzy +msgid "Could not find home directory." +msgstr "OYA Gushaka Ku Ntangiriro bushyinguro" + +#: gphoto2/shell.c:597 +#, fuzzy, c-format +msgid "Could not change to local directory '%s'." +msgstr "OYA Guhindura>> Kuri bushyinguro" + +#: gphoto2/shell.c:600 +#, fuzzy, c-format +msgid "Local directory now '%s'." +msgstr "bushyinguro NONEAHA" + +#: gphoto2/shell.c:638 +#, fuzzy, c-format +msgid "Remote directory now '%s'." +msgstr "bushyinguro NONEAHA" + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "" + +#: gphoto2/shell.c:948 +#, fuzzy, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "OYA Byabonetse Kuri Kubona a Urutonde Bya Bihari Amabwiriza" + +#: gphoto2/shell.c:955 +#, fuzzy, c-format +msgid "Help on \"%s\":" +msgstr "ku" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Ikoresha:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Igaragaza Imiterere:" + +#: gphoto2/shell.c:962 +#, fuzzy, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "*in Udusodeko Bitari ngombwa" + +#: gphoto2/shell.c:983 +#, fuzzy, c-format +msgid "Available commands:" +msgstr "Amabwiriza" + +#: gphoto2/shell.c:988 +#, fuzzy, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Kubona Ifashayobora ku a Komandi: Ubwoko in Ifashayobora Komandi:" + +#, fuzzy +#~ msgid "Show info" +#~ msgstr "Ibisobanuro" + +# basctl/source\basicide\moduldlg.src:RID_DLG_NEWLIB.RID_FT_NEWLIB.text +#, fuzzy +#~ msgid " Name: '%s'\n" +#~ msgstr "Izina:" + +#, fuzzy +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "Gukoresha in Ivanga Na: Idosiye" + +#, fuzzy +#~ msgid "Could not close camera connection." +#~ msgstr "OYA Gufunga Kamera Ukwihuza" + +#, fuzzy +#~ msgid "Sleeping for %d second(s)...\n" +#~ msgstr "kugirango ISEGONDA S" + +#, fuzzy +#~ msgid "filename" +#~ msgstr "Izina ry'idosiye" + +#, fuzzy +#~ msgid "[name]" +#~ msgstr "izina" + +# crashrep/source\all\crashrep.lng:%MSG_CMDLINE_USAGE%.text +#, fuzzy +#~ msgid "Usage:\n" +#~ msgstr "Ikoresha:" + +#, fuzzy +#~ msgid "" +#~ "Short/long options (& argument) Description\n" +#~ "--------------------------------------------------------------------------------\n" +#~ msgstr "Amahitamo" + +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +# #-#-#-#-# dbaccess.pot (PACKAGE VERSION) #-#-#-#-# +#, fuzzy +#~ msgid "%-38s %s\n" +#~ msgstr "%-38s%s" + +#, fuzzy +#~ msgid "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Use double-quotes around arguments] [Picture numbers begin with " +#~ "one (1)]\n" +#~ msgstr "" +#~ "--------------------------------------------------------------------------------" +#~ "[MAHARAKUBIRI ingingo Imibare Na: 1." + +#, fuzzy +#~ msgid "Displays this help screen" +#~ msgstr "iyi Ifashayobora Mugaragaza" + +#, fuzzy +#~ msgid "Get metadata from file" +#~ msgstr "Byose Ibyatanzwe Bivuye Ububiko" + +#, fuzzy +#~ msgid "List the configuration tree" +#~ msgstr "i Iboneza" + +#, fuzzy +#~ msgid "Get a configuration variable" +#~ msgstr "a Iboneza IMPINDURAGACIRO" + +#, fuzzy +#~ msgid "Set a configuration variable" +#~ msgstr "a Iboneza IMPINDURAGACIRO" + +#, fuzzy +#~ msgid "Capture a movie " +#~ msgstr "a" + +#, fuzzy +#~ msgid "Summary of camera status" +#~ msgstr "Bya Kamera Imimerere" + +#, fuzzy +#~ msgid "Camera driver manual" +#~ msgstr "Musomyi: Bikorwa" + +#, fuzzy +#~ msgid "About the camera driver" +#~ msgstr "i Kamera Musomyi:" + +# offmgr/source\offapp\dialog\optgdlg.src:OFA_TP_HELPERPROG.FT_ADD_MAIL.text +#, fuzzy +#~ msgid "path" +#~ msgstr "Inzira" + +#, fuzzy +#~ msgid "speed" +#~ msgstr "Umuvuduko" + +# padmin/source\padialog.src:RID_TXT_TESTPAGE_MODEL.text +#, fuzzy +#~ msgid "model" +#~ msgstr "Urugero" + +# sfx2/source\explorer\explorer.src:STR_SFX_FOLDER.text +#, fuzzy +#~ msgid "folder" +#~ msgstr "Ububiko" + +#~ msgid "count" +#~ msgstr "kubara" + +#, fuzzy +#~ msgid "" +#~ "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the " +#~ "location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +#~ msgstr "E. g." + +#, fuzzy +#~ msgid "" +#~ "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the " +#~ "location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +#~ msgstr "E. g." + +#, fuzzy +#~ msgid "There are no folders in folder '%s'." +#~ msgstr "Oya in Ububiko" + +#, fuzzy +#~ msgid "There are %i folders in folder '%s':" +#~ msgstr "in Ububiko" + +#, fuzzy +#~ msgid "There are %i files in folder '%s':" +#~ msgstr "Idosiye in Ububiko" + +#~ msgid "Jan" +#~ msgstr "Mutarama" + +#~ msgid "January" +#~ msgstr "Mutarama" + +#~ msgid "Feb" +#~ msgstr "Gashyantare" + +#~ msgid "February" +#~ msgstr "Gashyantare" + +#~ msgid "Mar" +#~ msgstr "Werurwe" + +#~ msgid "March" +#~ msgstr "Werurwe" + +#~ msgid "Apr" +#~ msgstr "Mat" + +#~ msgid "April" +#~ msgstr "Mata" + +#~ msgid "May" +#~ msgstr "Gicurasi" + +#~ msgid "Jun" +#~ msgstr "Kam" + +#~ msgid "June" +#~ msgstr "Kamena" + +#~ msgid "Jul" +#~ msgstr "Nyak. (anga)" + +#~ msgid "July" +#~ msgstr "Nyakanga" + +#~ msgid "Aug" +#~ msgstr "kan." + +#~ msgid "August" +#~ msgstr "Kanama" + +#~ msgid "Sep" +#~ msgstr "Itandukanya" + +#~ msgid "September" +#~ msgstr "Nzeri" + +#~ msgid "Oct" +#~ msgstr "ukw." + +#~ msgid "October" +#~ msgstr "Ukwakira" + +#~ msgid "Nov" +#~ msgstr "ugushyingo" + +#~ msgid "November" +#~ msgstr "Ugushyingo" + +#~ msgid "Dec" +#~ msgstr "Ukub. (Ukuboza)" + +#~ msgid "December" +#~ msgstr "Ukuboza" + +#~ msgid "Sun" +#~ msgstr "Izuba" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/sk.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/sk.po new file mode 100644 index 00000000..933586d7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/sk.po @@ -0,0 +1,1287 @@ +# translation of gphoto2-2.1.2.pot to Slovak +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# Andrej Kacian , 2003, 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.1.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-15 17:09-0500\n" +"PO-Revision-Date: 2005-03-05 12:28+0100\n" +"Last-Translator: Andrej Kacian \n" +"Language-Team: Slovak \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.10\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#: gphoto2/actions.c:101 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Poèet súborov v prieèinku '%s': %i\n" + +#: gphoto2/actions.c:122 +#, c-format +msgid "There are no folders in folder '%s'." +msgstr "V prieèinku '%s' nie sú ¾iadne prieèinky." + +#: gphoto2/actions.c:126 +#, c-format +msgid "There is one folder in folder '%s':" +msgstr "V prieèinku '%s' je jeden prieèinok:" + +#: gphoto2/actions.c:130 +#, c-format +msgid "There are %i folders in folder '%s':" +msgstr "%i prieèinkov v prieèinku '%s':" + +#: gphoto2/actions.c:157 gphoto2/foreach.c:277 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "V prieèinku '%s' nie sú ¾iadne súbory." + +#: gphoto2/actions.c:162 +#, c-format +msgid "There is one file in folder '%s':" +msgstr "V prieèinku '%s' je jeden súbor:" + +#: gphoto2/actions.c:167 +#, c-format +msgid "There are %i files in folder '%s':" +msgstr "%i súborov v prieèinku '%s':" + +#: gphoto2/actions.c:188 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Informácie o súbore '%s' (prieèinok '%s'):\n" + +#: gphoto2/actions.c:190 +#, c-format +msgid "File:\n" +msgstr "Súbor:\n" + +#: gphoto2/actions.c:192 gphoto2/actions.c:226 gphoto2/actions.c:242 +#, c-format +msgid " None available.\n" +msgstr " ®iadne informácie nie sú dostupné.\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid " Name: '%s'\n" +msgstr " Názov: '%s'\n" + +#: gphoto2/actions.c:197 gphoto2/actions.c:229 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime typ: '%s'\n" + +#: gphoto2/actions.c:199 gphoto2/actions.c:231 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Veµkos»: %li bajtov\n" + +#: gphoto2/actions.c:201 gphoto2/actions.c:233 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " ©írka: %i pixelov\n" + +#: gphoto2/actions.c:203 gphoto2/actions.c:235 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Vý¹ka: %i pixelov\n" + +#: gphoto2/actions.c:205 gphoto2/actions.c:237 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Stiahnuté: %s\n" + +#: gphoto2/actions.c:206 gphoto2/actions.c:238 gphoto2/actions.c:250 +#: gphoto2/actions.c:567 gphoto2/actions.c:569 gphoto2/actions.c:597 +#: gphoto2/actions.c:600 gphoto2/actions.c:603 gphoto2/actions.c:606 +msgid "yes" +msgstr "áno" + +#: gphoto2/actions.c:206 gphoto2/actions.c:238 gphoto2/actions.c:250 +#: gphoto2/actions.c:567 gphoto2/actions.c:569 gphoto2/actions.c:597 +#: gphoto2/actions.c:600 gphoto2/actions.c:603 gphoto2/actions.c:606 +msgid "no" +msgstr "nie" + +#: gphoto2/actions.c:208 +#, c-format +msgid " Permissions: " +msgstr " Prístupové práva: " + +#: gphoto2/actions.c:211 +#, c-format +msgid "read/delete" +msgstr "èítanie/vymazanie" + +#: gphoto2/actions.c:213 +#, c-format +msgid "read" +msgstr "èítanie" + +#: gphoto2/actions.c:215 +#, c-format +msgid "delete" +msgstr "vymazanie" + +#: gphoto2/actions.c:217 +#, c-format +msgid "none" +msgstr "¾iadne" + +#: gphoto2/actions.c:221 +#, c-format +msgid " Time: %s" +msgstr " Èas: %s" + +#: gphoto2/actions.c:224 +#, c-format +msgid "Thumbnail:\n" +msgstr "Náhµad:\n" + +#: gphoto2/actions.c:240 +#, c-format +msgid "Audio data:\n" +msgstr "Zvukové data:\n" + +#: gphoto2/actions.c:245 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime typ: '%s'\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid " Size: %li byte(s)\n" +msgstr " Veµkos»: %li bajtov\n" + +#: gphoto2/actions.c:249 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Stiahnuté: %s\n" + +#: gphoto2/actions.c:398 +msgid "Could not parse EXIF data." +msgstr "Nemô¾em preèíta» data EXIF." + +#: gphoto2/actions.c:402 +#, c-format +msgid "EXIF tags:" +msgstr "Tagy EXIF:" + +#: gphoto2/actions.c:405 +msgid "Tag" +msgstr "Tag" + +#: gphoto2/actions.c:407 +msgid "Value" +msgstr "Hodnota" + +#: gphoto2/actions.c:428 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Data EXIF obsahujú náhµad (%i bajtov)." + +#: gphoto2/actions.c:437 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "aplikácia gphoto2 bola skompilovaná bez podpory EXIF." + +#: gphoto2/actions.c:455 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Poèet podporovaných fotoaparátov: %i\n" + +#: gphoto2/actions.c:457 +#, c-format +msgid "Supported cameras:\n" +msgstr "Podporované fotoaparáty:\n" + +#: gphoto2/actions.c:470 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (TEST)\n" + +#: gphoto2/actions.c:473 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (EXPERIMENTÁLNE)\n" + +#: gphoto2/actions.c:478 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +#: gphoto2/actions.c:506 +#, c-format +msgid "Devices found: %i\n" +msgstr "Poèet nájdených zariadení: %i\n" + +#: gphoto2/actions.c:507 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Cesta Popis\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:546 gphoto2/actions.c:551 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:546 +msgid "Model" +msgstr "Model" + +#: gphoto2/actions.c:546 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:547 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:565 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Mo¾nosti fotoaparátu : %s\n" + +#: gphoto2/actions.c:566 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Podpora sériového portu : %s\n" + +#: gphoto2/actions.c:568 +#, c-format +msgid "USB support : %s\n" +msgstr "Podpora USB : %s\n" + +#: gphoto2/actions.c:571 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Podporované rýchlosti prenosu :\n" + +#: gphoto2/actions.c:573 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:576 +#, c-format +msgid "Capture choices :\n" +msgstr "Spôsoby práce :\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid " : Image\n" +msgstr " : Obrázok\n" + +#: gphoto2/actions.c:582 +#, c-format +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:586 +#, c-format +msgid " : Audio\n" +msgstr " : Zvuk\n" + +#: gphoto2/actions.c:590 +#, c-format +msgid " : Preview\n" +msgstr " : Náhµad\n" + +#: gphoto2/actions.c:594 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Ovládaè nepodporuje zachytenie\n" + +#: gphoto2/actions.c:596 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Podpora konfigurácie : %s\n" + +#: gphoto2/actions.c:598 +#, c-format +msgid "Delete files on camera support : %s\n" +msgstr "Podpora vymazávania súborov vo fotoaparáte : %s\n" + +#: gphoto2/actions.c:601 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Podpora náhµadu : %s\n" + +#: gphoto2/actions.c:604 +#, c-format +msgid "File upload support : %s\n" +msgstr "Podpora nahrávania súborov do zariadenia : %s\n" + +#: gphoto2/actions.c:621 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Port musí by» v tvare 'serial:/dev/ttyS0' alebo 'usb:', ale v '%s' chýba dvojbodka, preto budem háda», èo ste mysleli." + +#: gphoto2/actions.c:660 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Vami zadaný port ('%s') nebol nájdený. Prosím zadajte jeden z portov nájdených pomocou príkazu 'gphoto --list-ports' a uistite sa, ¾e ste ho zadali správne." + +#: gphoto2/actions.c:698 +#, c-format +msgid "About the camera driver:" +msgstr "O ovládaèi zariadenia:" + +#: gphoto2/actions.c:712 +#, c-format +msgid "Camera summary:" +msgstr "Súhrn o fotoaparáte:" + +#: gphoto2/actions.c:726 +#, c-format +msgid "Camera manual:" +msgstr "Manuál k fotoaparátu:" + +#: gphoto2/actions.c:742 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Rýchlos» mô¾ete zada» len pri sériových portoch." + +#: gphoto2/actions.c:793 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-2004 Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright (C) 2000-2004 Lutz Mueller a ïal¹í\n" +"%s\n" +"gphoto2 je ¹írené BEZ AKEJKO¥VEK ZÁRUKY, v rozsahu povolenom zákonmi.\n" +"Kópie gphoto2 sú voµne ¹íriteµné pod podmienkami V¹eobecnej verejnej\n" +"licencie GNU. Ïal¹ie informácie nájdete v súbore nazvanom COPYING.\n" +"\n" +"Táto verzia gphoto2 pou¾íva nasledovné nastavenia a verzie softwaru:\n" + +#: gphoto2/actions.c:806 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2 port - Bart van Leeuwen\n" + +#: gphoto2/actions.c:880 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Pou¾ívam USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" + +#: gphoto2/actions.c:931 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "PRI ODOSIELANÍ SPRÁV O CHYBÁCH DO MAILINGLISTU V®DY PRIPOJTE TIETO RIADKY:" + +#: gphoto2/actions.c:946 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s bolo skompilované s týmito voµbami:" + +#: gphoto2/actions.c:1042 +#, c-format +msgid "%s not found in configuration tree.\n" +msgstr "%s nebolo nájdené v konfiguraènom strome.\n" + +#: gphoto2/actions.c:1070 +#, c-format +msgid "Failed to retrieve value of text widget %s.\n" +msgstr "Nepodarilo sa získa» hodnotu textu %s.\n" + +#: gphoto2/actions.c:1087 +#, c-format +msgid "Failed to retrieve values of range widget %s.\n" +msgstr "Nepodarilo sa získa» hodnotu rozsahu %s.\n" + +#: gphoto2/actions.c:1099 +#, c-format +msgid "Failed to retrieve values of toggle widget %s.\n" +msgstr "Nepodarilo sa získa» hodnotu prepínaèa %s.\n" + +#: gphoto2/actions.c:1114 +#, c-format +msgid "Failed to retrieve values of date/time widget %s.\n" +msgstr "Nepodarilo sa získa» hodnotu dátumu/èasu %s.\n" + +#: gphoto2/actions.c:1137 +#, c-format +msgid "Failed to retrieve values of radio widget %s.\n" +msgstr "Nepodarilo sa získa» hodnotu voµby %s.\n" + +#: gphoto2/foreach.c:254 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Zlé èíslo súboru. Zadali ste %i, ale v prieèinku a jeho podprieèinkoch sa nachádza iba %i súborov. Platné èíslo súboru zistíte zo zoznamu súborov prieèinku '%s'." + +#: gphoto2/foreach.c:283 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Zlé èíslo súboru. Zadali ste %i, ale v prieèinku '%s' sa nachádza iba jeden súbor" + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'.Please obtain a valid file number from a file listing first." +msgstr "Zlé èíslo súboru. Zadali ste %i, ale v prieèinku sa nachádza iba %i súborov. Platné èíslo súboru zistíte zo zoznamu súborov v prieèinku '%s'." + +#: gphoto2/gp-params.c:59 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Chyba *** \n" + +#: gphoto2/gp-params.c:232 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Stlaète klávesu pre pokraèovanie.\n" + +#: gphoto2/gp-params.c:249 +#, c-format +msgid "Not enough memory." +msgstr "Nedostatok pamäte." + +#: gphoto2/gphoto2-cmd-capture.c:201 +msgid "Operation cancelled" +msgstr "Operácia zru¹ená" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "Pokraèova»" + +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "Storno" + +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "Chyba" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "Nastavenie sa nedá pou¾i»:" + +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "Ukonèi»" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "Naspä»" + +#: gphoto2/gphoto2-cmd-config.c:254 +msgid "Time: " +msgstr "Èas: " + +#: gphoto2/gphoto2-cmd-config.c:313 gphoto2/gphoto2-cmd-config.c:341 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "Hodnota: " + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "Áno" + +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "Nie" + +#: gphoto2/main.c:165 gphoto2/main.c:1636 +msgid "Turn on debugging" +msgstr "Zapnú» ladenie" + +#: gphoto2/main.c:166 gphoto2/main.c:1638 +msgid "Quiet output (default=verbose)" +msgstr "Tichý výstup (implicitne=detailný)" + +#: gphoto2/main.c:170 gphoto2/main.c:1642 +msgid "Display version and exit" +msgstr "Zobrazí verziu a ukonèí sa" + +#: gphoto2/main.c:171 +msgid "Displays this help screen" +msgstr "Zobrazí tento text" + +#: gphoto2/main.c:172 gphoto2/main.c:1644 +msgid "List supported camera models" +msgstr "Vypí¹e zoznam podporovaných typov fotoaparátov" + +#: gphoto2/main.c:173 gphoto2/main.c:1646 +msgid "List supported port devices" +msgstr "Vypí¹e zoznam podporovaných portov" + +#: gphoto2/main.c:174 gphoto2/main.c:1648 +msgid "Send file to stdout" +msgstr "Odo¹le súbor na ¹tandardný výstup" + +#: gphoto2/main.c:175 gphoto2/main.c:1650 +msgid "Print filesize before data" +msgstr "Pred dátami vypí¹e veµkos» súboru" + +#: gphoto2/main.c:176 gphoto2/main.c:1652 +msgid "List auto-detected cameras" +msgstr "Vypí¹e zoznam nájdených fotoaparátov" + +#: gphoto2/main.c:179 gphoto2/main.c:1654 +msgid "Specify port device" +msgstr "Urèenie portu" + +#: gphoto2/main.c:180 gphoto2/main.c:1656 +msgid "Specify serial transfer speed" +msgstr "Urèenie prenosovej rýchlosti pri sériovom porte" + +#: gphoto2/main.c:181 gphoto2/main.c:1658 +msgid "Specify camera model" +msgstr "Urèí typ fotoaparátu" + +#: gphoto2/main.c:182 gphoto2/main.c:1660 +msgid "Specify a filename" +msgstr "Urèí názov súboru" + +#: gphoto2/main.c:183 gphoto2/main.c:1662 +msgid "(expert only) Override USB IDs" +msgstr "(pre pokroèilých) Urèi» USB ID" + +#: gphoto2/main.c:186 gphoto2/main.c:1664 +msgid "Display camera abilities" +msgstr "Zobrazí mo¾nosti fotoaparátu" + +#: gphoto2/main.c:187 gphoto2/main.c:1666 +msgid "Specify camera folder (default=\"/\")" +msgstr "Urèí prieèinok fotoaparátu (implicitne \"/\")" + +#: gphoto2/main.c:188 gphoto2/main.c:1668 +msgid "Recursion (default for download)" +msgstr "Rekurzia (prednastavené pri s»ahovaní)" + +#: gphoto2/main.c:189 gphoto2/main.c:1670 +msgid "No recursion (default for deletion)" +msgstr "Bez rekurzie (prednastavené pri mazaní)" + +#: gphoto2/main.c:190 gphoto2/main.c:1672 +msgid "List folders in folder" +msgstr "Zobrazí zoznam podprieèinkov v prieèinku" + +#: gphoto2/main.c:191 gphoto2/main.c:1674 +msgid "List files in folder" +msgstr "Vypí¹e zoznam súborov v prieèinku" + +#: gphoto2/main.c:192 gphoto2/main.c:193 +msgid "name" +msgstr "názov" + +#: gphoto2/main.c:192 gphoto2/main.c:1676 +msgid "Create a directory" +msgstr "Vytvorí prieèinok" + +#: gphoto2/main.c:193 gphoto2/main.c:1678 +msgid "Remove a directory" +msgstr "Odstráni prieèinok" + +#: gphoto2/main.c:194 gphoto2/main.c:1680 +msgid "Display number of files" +msgstr "Zobrazí poèet súborov" + +#: gphoto2/main.c:195 gphoto2/main.c:1682 +msgid "Get files given in range" +msgstr "Stiahne súbory v danom rozsahu" + +#: gphoto2/main.c:196 gphoto2/main.c:1684 +msgid "Get all files from folder" +msgstr "Stiahne v¹etky súbory v prieèinku" + +#: gphoto2/main.c:197 gphoto2/main.c:1686 +msgid "Get thumbnails given in range" +msgstr "Stiahne náhµady v danom rozsahu" + +#: gphoto2/main.c:198 gphoto2/main.c:1689 +msgid "Get all thumbnails from folder" +msgstr "Stiahne náhµady z celého prieèinku" + +#: gphoto2/main.c:199 gphoto2/main.c:1692 +msgid "Get raw data given in range" +msgstr "Stiahne èisté data v danom rozsahu" + +#: gphoto2/main.c:200 gphoto2/main.c:1695 +msgid "Get all raw data from folder" +msgstr "Stiahne èisté data z celého prieèinku" + +#: gphoto2/main.c:201 gphoto2/main.c:1698 +msgid "Get audio data given in range" +msgstr "Stiahne zvukové data v danom rozsahu" + +#: gphoto2/main.c:202 gphoto2/main.c:1701 +msgid "Get all audio data from folder" +msgstr "Stiahne zvukové data z celého prieèinku" + +#: gphoto2/main.c:203 gphoto2/main.c:1703 +msgid "Delete files given in range" +msgstr "Vyma¾e súbory v danom rozsahu" + +#: gphoto2/main.c:204 gphoto2/main.c:1705 +msgid "Delete all files in folder" +msgstr "Vyma¾e v¹etky súbory z prieèinku" + +#: gphoto2/main.c:205 gphoto2/main.c:1707 +msgid "Upload a file to camera" +msgstr "Nahrá súbor do fotoaparátu" + +#: gphoto2/main.c:207 gphoto2/main.c:1710 +msgid "Configure" +msgstr "Konfigurácia" + +#: gphoto2/main.c:209 +msgid "List the configuration tree" +msgstr "Zobrazi» konfiguraèný strom" + +#: gphoto2/main.c:210 +msgid "Get a configuration variable" +msgstr "Získa» konfiguraènú premennú" + +#: gphoto2/main.c:211 gphoto2/main.c:1720 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Zadajte poèet obrázkov pre zachytenie (prednastavené=nekoneèno)" + +#: gphoto2/main.c:212 gphoto2/main.c:1722 +msgid "Set capture interval in seconds" +msgstr "Zadajte interval zachytávania v sekundách" + +#: gphoto2/main.c:213 gphoto2/main.c:1718 +msgid "Capture a quick preview" +msgstr "Získa rýchly náhµad" + +#: gphoto2/main.c:214 gphoto2/main.c:1724 +msgid "Capture an image" +msgstr "Zachytí obrázok" + +#: gphoto2/main.c:215 +msgid "Capture a movie " +msgstr "Zachytí film " + +#: gphoto2/main.c:216 gphoto2/main.c:1728 +msgid "Capture an audio clip" +msgstr "Zachytí zvukový klip" + +#: gphoto2/main.c:218 gphoto2/main.c:1731 gphoto2/shell.c:113 +msgid "Show EXIF information" +msgstr "Zobrazí informácie EXIF" + +#: gphoto2/main.c:220 gphoto2/main.c:1734 gphoto2/shell.c:109 +msgid "Show info" +msgstr "Zobrazí informácie" + +#: gphoto2/main.c:221 +msgid "Summary of camera status" +msgstr "Súhrn stavu fotoaparátu" + +#: gphoto2/main.c:222 +msgid "Camera driver manual" +msgstr "Manuál ovládaèa fotoaparátu" + +#: gphoto2/main.c:223 +msgid "About the camera driver" +msgstr "O ovládaèi fotoaparátu" + +#: gphoto2/main.c:224 gphoto2/main.c:1742 +msgid "gPhoto shell" +msgstr "príkazový riadok gPhoto" + +#: gphoto2/main.c:367 gphoto2/main.c:1354 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Pou¾ite syntax a:b=c:d, ak chcete pristupova» spôsobom c:d k zariadeniu nájdenému ako a:b. a b c d musia by» hexadecimálne èísla zaèínajúce '0x'.\n" + +#: gphoto2/main.c:504 +msgid "Jan" +msgstr "Jan" + +#: gphoto2/main.c:504 +msgid "January" +msgstr "Január" + +#: gphoto2/main.c:505 +msgid "Feb" +msgstr "Feb" + +#: gphoto2/main.c:505 +msgid "February" +msgstr "Február" + +#: gphoto2/main.c:506 +msgid "Mar" +msgstr "Mar" + +#: gphoto2/main.c:506 +msgid "March" +msgstr "Marec" + +#: gphoto2/main.c:507 +msgid "Apr" +msgstr "Apr" + +#: gphoto2/main.c:507 +msgid "April" +msgstr "Apríl" + +#: gphoto2/main.c:508 +msgid "May" +msgstr "Máj" + +#: gphoto2/main.c:509 +msgid "Jun" +msgstr "Jún" + +#: gphoto2/main.c:509 +msgid "June" +msgstr "Jún" + +#: gphoto2/main.c:510 +msgid "Jul" +msgstr "Júl" + +#: gphoto2/main.c:510 +msgid "July" +msgstr "Júl" + +#: gphoto2/main.c:511 +msgid "Aug" +msgstr "Aug" + +#: gphoto2/main.c:511 +msgid "August" +msgstr "August" + +#: gphoto2/main.c:512 +msgid "Sep" +msgstr "Sep" + +#: gphoto2/main.c:512 +msgid "September" +msgstr "September" + +#: gphoto2/main.c:513 +msgid "Oct" +msgstr "Okt" + +#: gphoto2/main.c:513 +msgid "October" +msgstr "Október" + +#: gphoto2/main.c:514 +msgid "Nov" +msgstr "Nov" + +#: gphoto2/main.c:514 +msgid "November" +msgstr "November" + +#: gphoto2/main.c:515 +msgid "Dec" +msgstr "Dec" + +#: gphoto2/main.c:515 +msgid "December" +msgstr "December" + +#: gphoto2/main.c:522 +msgid "Sun" +msgstr "Ne" + +#: gphoto2/main.c:522 +msgid "Sunday" +msgstr "Nedeµa" + +#: gphoto2/main.c:523 +msgid "Mon" +msgstr "Po" + +#: gphoto2/main.c:523 +msgid "Monday" +msgstr "Pondelok" + +#: gphoto2/main.c:524 +msgid "Tue" +msgstr "Ut" + +#: gphoto2/main.c:524 +msgid "Tuesday" +msgstr "Utorok" + +#: gphoto2/main.c:525 +msgid "Wed" +msgstr "St" + +#: gphoto2/main.c:525 +msgid "Wednesday" +msgstr "Streda" + +#: gphoto2/main.c:526 +msgid "Thu" +msgstr "©t" + +#: gphoto2/main.c:526 +msgid "Thursday" +msgstr "©tvrtok" + +#: gphoto2/main.c:527 +msgid "Fri" +msgstr "Pi" + +#: gphoto2/main.c:527 +msgid "Friday" +msgstr "Piatok" + +#: gphoto2/main.c:528 +msgid "Sat" +msgstr "So" + +#: gphoto2/main.c:528 +msgid "Saturday" +msgstr "Sobota" + +#: gphoto2/main.c:590 +#, c-format +msgid "You cannot use '%%n' in combination with non-persistent files!" +msgstr "Nemô¾ete pou¾i» '%%n' v kombinácii s nestálymi súbormi!" + +#: gphoto2/main.c:613 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Názov súboru získaný z fotoaparátu ('%s') neobsahuje príponu!" + +#: gphoto2/main.c:692 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Neplatný formát '%s' (chyba na pozícii %i)." + +#: gphoto2/main.c:739 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Súbor %s existuje. Prepísa» ho? [y/n] " + +#: gphoto2/main.c:750 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Zada» nový názov? [y/n] " + +#: gphoto2/main.c:759 +#, c-format +msgid "Enter new filename: " +msgstr "Zadajte nový názov: " + +#: gphoto2/main.c:764 +#, c-format +msgid "Saving file as %s\n" +msgstr "Ukladám súbor ako %s\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Re¾im rýchleho zachytávania (interval: %ds).\n" + +#: gphoto2/main.c:977 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Získavam obrázok #%d...\n" + +#: gphoto2/main.c:979 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Získavam obrázok #%d/%d...\n" + +#: gphoto2/main.c:986 +msgid "Could not capture." +msgstr "Nemô¾em získava»." + +#: gphoto2/main.c:995 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Získavanie zlyhalo (problém s automatickým zaostrovaním?)...\n" + +#: gphoto2/main.c:1009 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Nový súbor bol ulo¾ený na fotoaparát ako %s%s%s\n" + +#: gphoto2/main.c:1019 +msgid "Could not set folder." +msgstr "Nedá sa nastavi» prieèinok." + +#: gphoto2/main.c:1037 +msgid "Could not get image." +msgstr "Nedá sa získa» obrázok." + +#: gphoto2/main.c:1044 +msgid "Buggy libcanon.so?" +msgstr "Chybný libcanon.so?" + +#: gphoto2/main.c:1050 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Odstraòujem súbor %s%s%s vo fotoaparáte\n" + +#: gphoto2/main.c:1055 +msgid "Count not delete image." +msgstr "Obrázok sa nedá odstráni»." + +#: gphoto2/main.c:1069 +msgid "Could not close camera connection." +msgstr "Nedá sa uzavrie» spojenie s fotoaparátom." + +#: gphoto2/main.c:1073 +#, c-format +msgid "Sleeping for %d second(s)...\n" +msgstr "Spím %d sekúnd...\n" + +#: gphoto2/main.c:1207 +#, c-format +msgid "ERROR: " +msgstr "CHYBA: " + +#: gphoto2/main.c:1230 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Ukonèujem...\n" + +#: gphoto2/main.c:1236 +#, c-format +msgid "Aborted.\n" +msgstr "Ukonèené.\n" + +#: gphoto2/main.c:1241 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Ru¹ím...\n" + +#: gphoto2/main.c:1459 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "aplikácia gphoto2 bola skompilovaná bez podpory pre CDK." + +#: gphoto2/main.c:1579 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Operácia zru¹ená.\n" + +#: gphoto2/main.c:1583 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Chyba (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1587 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Pre ladiace správy pou¾ite voµbu --debug.\n" +"Ladiace správy Vám mô¾u pomôc» vyrie¹i» vá¹ problém.\n" +"Ak chcete posla» chybové alebo ladiace správy na mailinglist\n" +"vývojárov gphoto , spustite prosím\n" +"gphoto2 takto:\n" +"\n" + +#: gphoto2/main.c:1640 +msgid "Overwrite files without asking." +msgstr "Prepí¹e súbory bez upozornenia" + +#: gphoto2/main.c:1654 +msgid "path" +msgstr "cesta" + +#: gphoto2/main.c:1656 +msgid "speed" +msgstr "rýchlos»" + +#: gphoto2/main.c:1658 +msgid "model" +msgstr "typ" + +#: gphoto2/main.c:1660 +msgid "filename" +msgstr "názov súboru" + +#: gphoto2/main.c:1662 +msgid "usbid" +msgstr "usbid" + +#: gphoto2/main.c:1666 +msgid "folder" +msgstr "prieèinok" + +#: gphoto2/main.c:1713 +msgid "List configuration tree" +msgstr "Zobrazenie konfiguraèného stromu" + +#: gphoto2/main.c:1715 +msgid "Get configuration value" +msgstr "Získa» konfiguraènú hodnotu" + +#: gphoto2/main.c:1720 +msgid "count" +msgstr "poèet" + +#: gphoto2/main.c:1722 +msgid "seconds" +msgstr "sekúnd" + +#: gphoto2/main.c:1726 +msgid "Capture a movie" +msgstr "Zachytí film" + +#: gphoto2/main.c:1736 +msgid "Show summary" +msgstr "Zobrazí súhrn" + +#: gphoto2/main.c:1738 +msgid "Show camera driver manual" +msgstr "Zobrazí manuál k ovládaèu fotoaparátu" + +#: gphoto2/main.c:1740 +msgid "About the camera driver manual" +msgstr "O ovládaèi fotoaparátu" + +#: gphoto2/main.c:1967 +#, c-format +msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +msgstr "gPhoto2 pre OS/2 vy¾aduje, aby ste nastavili premennú prostredia CAMLIBS na umiestnenie kni¾níc fotoaparátov. Napr. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" + +#: gphoto2/main.c:1977 +#, c-format +msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +msgstr "gPhoto2 pre OS/2 vy¾aduje, aby ste nastavili premennú prostredia IOLIBS na umiestnenie kni¾níc fotoaparátov. Napr. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" + +#: gphoto2/options.c:181 +#, c-format +msgid "Usage:\n" +msgstr "Pou¾itie:\n" + +#: gphoto2/options.c:184 +#, c-format +msgid "" +"Short/long options (& argument) Description\n" +"--------------------------------------------------------------------------------\n" +msgstr "" +"Krátke/dlhé voµby (a parametre) Popis\n" +"--------------------------------------------------------------------------------\n" + +#: gphoto2/options.c:209 +#, c-format +msgid "%-38s %s\n" +msgstr "%-38s %s\n" + +#: gphoto2/options.c:214 +#, c-format +msgid "" +"--------------------------------------------------------------------------------\n" +"[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +msgstr "" +"--------------------------------------------------------------------------------\n" +"[Pou¾ite úvodzovky pred a za parametrami] [Èísla obrázkov zaèínajú èíslom jedna (1)]\n" + +#: gphoto2/range.c:103 gphoto2/range.c:157 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"ID obrázkov musia by» väè¹ie ako nula." + +#: gphoto2/range.c:109 gphoto2/range.c:163 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"ID obrázku %i je príli¹ vysoké." + +#: gphoto2/range.c:125 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Rozsahy musia by» oddelené èiarkou." + +#: gphoto2/range.c:139 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Rozsahy musia zaèína» èíslom." + +#: gphoto2/range.c:179 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Neoèakávaný znak '%c'." + +#: gphoto2/range.c:202 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Rozsahy musia zaèína» men¹ím èíslom. Zadali ste rozsah od %i do %i." + +#: gphoto2/shell.c:55 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Chyba (%i: '%s') ***" + +#: gphoto2/shell.c:98 +msgid "Change to a directory on the camera" +msgstr "Zmení prieèinok vo fotoaparáte" + +#: gphoto2/shell.c:99 gphoto2/shell.c:101 +msgid "directory" +msgstr "prieèinok" + +#: gphoto2/shell.c:100 +msgid "Change to a directory on the local drive" +msgstr "Zmení prieèinok na lokálnom disku" + +#: gphoto2/shell.c:102 gphoto2/shell.c:120 gphoto2/shell.c:121 +msgid "Exit the gPhoto shell" +msgstr "Opustí príkazový riadok gPhoto" + +#: gphoto2/shell.c:103 +msgid "Download a file" +msgstr "Stiahne súbor" + +#: gphoto2/shell.c:103 gphoto2/shell.c:106 gphoto2/shell.c:108 +#: gphoto2/shell.c:110 gphoto2/shell.c:111 gphoto2/shell.c:114 +msgid "[directory/]filename" +msgstr "[prieèinok/]súbor" + +#: gphoto2/shell.c:105 +msgid "Download a thumbnail" +msgstr "Stiahne náhµad" + +#: gphoto2/shell.c:107 +msgid "Download raw data" +msgstr "Stiahne èisté data" + +#: gphoto2/shell.c:111 +msgid "Delete" +msgstr "Vyma¾e" + +#: gphoto2/shell.c:116 gphoto2/shell.c:122 +msgid "Displays command usage" +msgstr "Zobrazí pou¾itie príkazov" + +#: gphoto2/shell.c:117 gphoto2/shell.c:122 +msgid "[command]" +msgstr "[príkaz]" + +#: gphoto2/shell.c:118 +msgid "List the contents of the current directory" +msgstr "Zobrazí obsah aktuálneho prieèinku" + +#: gphoto2/shell.c:119 +msgid "[directory/]" +msgstr "[prieèinok/]" + +#: gphoto2/shell.c:425 +msgid "Invalid command." +msgstr "Neplatný príkaz." + +#: gphoto2/shell.c:434 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Príkaz '%s' vy¾aduje parameter." + +#: gphoto2/shell.c:487 +msgid "Invalid path." +msgstr "Neplatná cesta." + +#: gphoto2/shell.c:533 +msgid "Could not find home directory." +msgstr "Nemô¾em nájs» domovský prieèinok." + +#: gphoto2/shell.c:541 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Nemô¾em zmeni» aktuálny prieèinok na '%s'." + +#: gphoto2/shell.c:544 +#, c-format +msgid "Local directory now '%s'." +msgstr "Lokálny prieèinok je teraz '%s'." + +#: gphoto2/shell.c:582 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Vzdialený prieèinok je teraz '%s'." + +#: gphoto2/shell.c:738 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Príkaz '%s nebol nájdený. Pou¾ite 'help' pre zoznam dostupných príkazov." + +#: gphoto2/shell.c:745 +#, c-format +msgid "Help on \"%s\":" +msgstr "Pomoc k \"%s\":" + +#: gphoto2/shell.c:747 +#, c-format +msgid "Usage:" +msgstr "Pou¾itie:" + +#: gphoto2/shell.c:751 +#, c-format +msgid "Description:" +msgstr "Popis:" + +#: gphoto2/shell.c:753 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Parametre v hranatých zátvorkách [] sú nepovinné" + +#: gphoto2/shell.c:774 +#, c-format +msgid "Available commands:" +msgstr "Dostupné príkazy:" + +#: gphoto2/shell.c:779 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Pre pomoc k jednotlivým príkazom napí¹te 'help názov-príkazu'." diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/sr.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/sr.po new file mode 100644 index 00000000..39165487 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/sr.po @@ -0,0 +1,1638 @@ +# Serbian translation of gphoto2. +# Copyright (C) 2014 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# Aleksandar Jelenak , 2007. +# Мирослав Николић , 2013—2015. +msgid "" +msgstr "" +"Project-Id-Version: gphoto2-2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2015-12-24 11:10+0200\n" +"Last-Translator: Мирослав Николић \n" +"Language-Team: Serbian <(nothing)>\n" +"Language: sr\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Број датотека у фасцикли „%s“: %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "%d фасцикла је у фасцикли „%s“.\n" +msgstr[1] "%d фасцикле су у фасцикли „%s“.\n" +msgstr[2] "%d фасцикли је у фасцикли „%s“.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Нема датотека у фасцикли „%s“.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "%d датотека је у фасцикли „%s“.\n" +msgstr[1] "%d датотеке су у фасцикли „%s“.\n" +msgstr[2] "%d датотека је у фасцикли „%s“.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Подаци о датотеци „%s“ (фасцикла „%s“):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Датотека:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Ништа није доступно.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " МИМЕ врста: „%s“\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Величина: %lu бајт(а/ова)\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Ширина: %i пиксел(а)\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Висина: %i пиксел(а)\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Преузето: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "да" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "не" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Дозволе: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "чита/брише" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "чита" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "брише" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "ништа" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Време: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Сличица:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Звучни записи:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " МИМЕ врста: „%s“\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Величина: %lu бајт(а/ова)\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Преузето: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Не могу да обрадим ЕКСИФ податке." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "ЕКСИФ ознаке:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Ознака" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Вредност" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "ЕКСИФ подаци садрже сличицу (%i бајта)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "Гфото2 је преведен без ЕКСИФ подршке." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Број подржаних фото-апарата: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Подржани фото-апарати:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t„%s“ (ПРОБНО)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t„%s“ (ЕКСПЕРИМЕНТАЛНО)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t„%s“\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Нађених уређаја: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Путања Опис\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Модел" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Прикључник" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Могућности фото-апарата : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Подршка серијског прикључника : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "УСБ подршка : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Подржане брзине преноса :\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Одабир снимања :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Слика\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Видео\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Звук\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Преглед\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : Окида снимање\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Управљачки програм не подржава снимањ\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Подршка за подешавање : %s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Брише означене датотеке на апарату: %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Брише све датотеке на апарату : %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Преглед датотека (сличице) : %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Подршка слања датотека : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Прикључници морају да изгледају као „serial:/dev/ttyS0“ или „usb:“, али „%s“ недостаје двотачка па ћу да нагађам шта сте мислили." + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Прикључник који сте навели („%s“) не може бити нађен. Наведите један од прикључника које сте нашли уз „gphoto2 --list-ports“ и побрините се да је редослед слова тачан (нпр. префикс „serial:“ или „usb:“)." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "О управљачком програму фото-апарата:" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Сажетак фото-апарата:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Упутство фото-апарата:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Можете да наведете само брзине серијских прикључника." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "ОС/2 прикључник: Bart van Leeuwen\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"Гфото2 %s\n" +"\n" +"Ауторска права (c) 2000-%d Луц Милер и други\n" +"%s\n" +"Гфото2 долази без ИКАКВЕ ГАРАНЦИЈЕ, колико је то законом допуштено. Можете\n" +"расподељивати примерке Гфото2 под условима ГНУ Опште јавне лиценце. За\n" +"подробније објашњење ових ствари погледајте датотеку „COPYING“.\n" +"\n" +"Ова верзија Гфото2 користи следеће опције и верзије софтвера:\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Не могу да отворим „movie.mjpg“." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Снимам кадрове прегледа као филм у „%s“. Притисните Ктрл-Ц да прекинете.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Снимам кадрове прегледа као филм у „%s“ за %d секунде.\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Снимам %d кадра прегледа као филм у „%s“.\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Грешка снимања филма... Излазим." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Грешка снимања филма... Нерукована МИМЕ врста „%s“." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ктрл-Ц је притиснуто ... Излазим.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Снимање филма је завршено (%d кадра)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Чекам на догађаје са фото-апарата. Притисните Ктрл-Ц да прекинете.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Чекам на %d кадра са фото-апарат. Притисните Ктрл-Ц да прекинете.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Чекам на %d милисекунде на догађаје са фото-апарата. Притисните Ктрл-Ц да прекинете.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Чекам на %d секунде на догађаје са фото-апарата. Притисните Ктрл-Ц да прекинете.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Чекам на %d догађаја са фото-апарата. Притисните Ктрл-Ц да прекинете.\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Чекам на %s догађај са фото-апарата. Притисните Ктрл-Ц да прекинете.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "нашао сам догађај, заустављам чекање!\n" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Не могу да подесим фасциклу." + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Не могу да добавим слику." + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "„libcanon.so“ пун грешака?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Не могу да обришем слику." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Добављање података о складиштењу није подржано за овај фото-апарат.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Чита-пише" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Само чита" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Само чита са брисањем" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Непознато" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "Стални РОМ" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "Уклоњиви РОМ" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "Стални РАМ" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "Уклоњиви РАМ" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Неодређено" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Општи раван" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Општи хијерархијски" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Фото-апарат (ДЦИМ)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Замењујем УСБ иб произвођача/производа 0x%x/0x%x са 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "УВЕК УВРСТИТЕ СЛЕДЕЋЕ РЕДОВЕ КАДА ШАЉЕТЕ ПОРУКЕ ЗА ИСПРАВЉАЊЕ ГРЕШАКА НА ДОПИСНУ ЛИСТУ:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s је био преведен са следећим опцијама:" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s није нађен у стаблу подешавања." + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Нисам успео да довучем вредности текстуалног графичког објекта %s." + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Нисам успео да довучем вредности графичког објекта опсега %s." + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Нисам успео да довучем вредности преклопног графичког објекта %s." + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Нисам успео да довучем вредности графичког објекта за датум/време %s." + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Користи „now“ (сада) као текуће време приликом подешавања.\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Нисам успео да довучем вредности радио графичког објекта %s." + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "Својство „%s“ је само за читање." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Нисам успео да подесим вредност текстуалног графичког објекта %s на %s." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Прослеђена вредност %s није у облику покретног зареза." + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Прослеђена вредност %f није у очекиваном опсегу %f – %f." + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Нисам успео да подесим вредност графичког објекта за опсег %s на %f." + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "искључено" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "нетачно" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "укључено" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "тачно" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Прослеђена вредност „%s“ није исправна вредност преклопника." + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Нисам успео да подесим вредности %s преклопног графичког објекта %s." + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "сада" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Прослеђена вредност %s није ни исправно време ни цео број." + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Нисам успео да подесим ново време графичког објекта датума/времена %s на %s." + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Нисма пронашао избор %s унутар списка избора." + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Елемент %s није за подешавање." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Нисам успео да подесим нову вредност подешавања %s за ставку подешавања %s." + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "Елемент „%s“ нема пописан списак избора. Користите „--set-config-value“." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Лош број датотеке. Задали сте %i, а доступно је само %i датотека у „%s“ или његовим подфасциклама. Сазнајте прво тачан број из списка датотека." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Нема датотека у фасцикли „%s“." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Лош број датотеке. Задали сте %i, а доступна је само 1 датотека у „%s“." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Лош број датотеке. Задали сте %i, а доступно је свега %i датотека у „%s“. Прибавите прво исправан број датотеке из списка датотека." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Грешка *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Притисните било који тастер да наставите.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Нема довољно меморије." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Радња је отказана" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Настави" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Откажи" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Грешка" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Не могу да поставим подешавање:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Изађи" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Назад" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Време:" + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Вредност:" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Да" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Не" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Бројеви попуњени нулом у називима датотека су једино могући са „%%n“." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Не можете користити „%%n“ попуњавање нулом без вредности тачности!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Назив датотеке који даје фото-апарат („%s“) не садржи наставак!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Неисправан запис „%s“ (грешка на положају %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Прескочите постојећу датотеку „%s“\n" + +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Датотека „%s“ постоји. Да је препишем? [y|n] " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Да наведем нови назив датотеке? [y|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Унесите нови назив датотеке: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Чувам датотеку као „%s“\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Овлашћење је одбијено" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Не могу да окинем снимање." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Нова датотека је на месту „%s%s%s“ на фото-апарату\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Задржавам датотеку „%s%s%s“ на фото-апарату\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Бришем датотеку „%s%s%s“ на фото-апарату\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Догађај ДОДАТА_ФАСЦИКЛА %s/%s за време чекања, занемарујем.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Догађај НЕПОЗНАТО %s за време чекања, занемарујем.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Непознат догађај врсте %d за време чекања блица, занемарујем.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Не могу да добавим могућности?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Режим временског клизања је укључен (период: %dс).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Приправнност чека да „SIGUSR1“ снима.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Режим блица је укључен (време излагања: %dс).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Снимам кадар бр. %d...\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Снимам кадар бр. %d/%d...\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Не могу да подесим снимање блица, резултат %d." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Не могу да завршим снимање (режим блица)." + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Не могу да окинем снимање слике." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Не могу да снимим слику." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Снимање није успело (проблем само-фокуса?)...\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Не могу да снимим." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Чекам на следећи прикључак снимања %ld секунде...\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Пробуђен сам „SIGUSR1“...\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "не спавам (%ld секунде иза планираног)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "ГРЕШКА: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Прекидам...\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Прекинуто.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Отказујем...\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Користите следећу синтаксу „a:b=c:d“ за преименовање сваког откривеног УСБ уређаја као „a:b“ у „c:d“. a b c d треба да буду хексадецимални бројеви и да почињу на „0x“.\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "Гфото2 је преведен без подршке за ЦДК." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Радња је отказана.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Грешка: Нисам пронашао фото-апарат. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Грешка (%i: „%s“) *** \n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Користите опцију „--debug“ за поруке за откривање грешака. Овакве поруке\n" +"могу да помогну при решавању ваших проблема. Уколико намеравате да пошаљете\n" +"поруке о грешкама или за исправљање грешака на дописну листу програмера гфотоа ,\n" +"покрените Гфото2 на следећи начин:\n" +"\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Уверите се да има довољно цитирања око аргумената.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "Исписује потпуну поруку о употреби програма" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "Исписује кратку поруку о употреби програма" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Укључује откривање грешака" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "Подешава ниво прочишћавања [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "Назив датотеке за упис података о уклањању грешака" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "ДАТОТЕКА" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Тихи излаз (основно=опширно)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Прикачи скрипту на позив након преузимања, снимања, итд." + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Наводи прикључник уређаја" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Наводи брзину серијског преноса" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "БРЗИНА" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Наводи модел фото-апарата" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "МОДЕЛ" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "(само за стручњаке) Заобилази ИБ-ове УСБ-а" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "УСБИБ-ови" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Приказује издање и излази" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Исписује моделе подржаних фото-апарата" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Исписује подржане уређаје прикључника" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Приказује могућности фото-апарата/управљачког програма у бази података либгфото2" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Подешава" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Исписује стабло подешавања" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Избацује читаво стабло подешавања" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Добавља вредност подешавања" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Подешава вредност подешавања или попис у изборима" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "Подешава попис вредности подешавања у изборима" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Поставља вредност подешавања" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Враћа прикључник уређаја" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Задржава слике на фото-апарату након снимања" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "Задржава сирове слике на фото-апарату након снимања" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Уклања слике са фото-апарата након снимања" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Чека на догађај(е) са фото-апарата" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "БРОЈ, СЕКУНДЕ, МИЛИСЕКУНДЕ или НИСКАПОРЕЂЕЊА" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Чека на догађај(е) са фото-апарата и преузима нове слике" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Снима брзи преглед" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "Приказује брзи преглед као Аскри уметност" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Подешава време излагање блица у секундама" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "СЕКУНДЕ" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Подешава број кадрова за снимање (подразумевано=infinite)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "БРОЈ" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Подешава период снимања у секундама" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Враћа период снимања на сигналу (основно=no)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Снима слику" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Окида снимање слике" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Снима слику и прузима је" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Снима филм" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "БРОЈ или СЕКУНДЕ" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Снима звучни одломак" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Чека на отпуштање бленде на фото-апарату и преузима" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Окида снимање слике" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Исписује подфасцикле у фасцикли" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Наброј датотеке у фасцикли" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Прави фасциклу" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "НАЗИВДИР." + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Уклања фасциклу" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Приказује број датотека" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Добавља датотеке у датом опсегу" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "ОПСЕГ" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Добавља све датотеке из фасцикле" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Добавља сличице у датом опсегу" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Добавља све сличице из фасцикле" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Добавља метаподатке у датом опсегу" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Добавља све метаподатке из фасцикле" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Шаље метаподатке за датотеку" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Добавља сирове податке у датом опсегу" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Добавља све сирове податке из фасцикле" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Добавља звучне записе у датом опсегу" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Добавља све звучне записе из фасцикле" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Брише датотеке у датом опсегу" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Брише све дтотеке у фасцикли („--no-recurse“ је основно)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Шаље датотеку фото-апарату" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Наводи назив датотеке или образац назива датотеке" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "ОБРАЗАЦ_НАЗИВА_ДАТОТЕКЕ" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Наводи фасциклу за фото-апарат (основно=„/“)" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "ФАСЦИКЛА" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Дубачење (основно за преузимање)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Без дубачења (основно за брисање)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Обрађује само нове датотеке" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Пребрисава датотеке без питања" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Прескаче постојеће датотеке" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Шаље датотеку на стандардни излаз" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "Исписује величину датотеке пре података" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Наводи самостално откривене фото-апарате" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Приказује ЕКСИФ податке ЈПЕГ слика" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Приказује податке слике, као што је ширина, висина и време снимања" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "Приказује сажетак фото-апарата" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Приказује упутство управљача фото-апарата" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "О упутству управљача фото-апарата" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Приказује податке складишта" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "Љуска гФотоа" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Заједничке опције" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Разноврсне опције (непоређане)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "Добавља податке о софтверу и домаћину (не од фото-апарата)" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "Наводи фото-апарат за коришћење" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Подешавања фото-апарата и софтвера" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Снима слику са или на фото-апарат" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Преузима, шаље и управља датотекама" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"ИБ слике мора да буде број већи од нуле." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"ИБ слике је превелик %i." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Опсези морају бити раздвојени зарезима (,)." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Опсези треба да започињу бројем." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Неочекивани знак „%c“." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Опадајући опсези нису дозвољени. Задали сте опсег од %i до %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Грешка (%i: „%s“) ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Прелази у фасциклу на фото-апарату" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "фасцикла" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Прелази у фасциклу на месном уређају" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Напушта љуску Гфотоа" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Преузима датотеку" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[фасцикла/]датотека" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Шаље датотеку" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Преузима сличицу" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Преузима сирове податке" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Брише" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Прави фасциклу" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Уклања фасциклу" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Приказује употребу наредби" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[наредба]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Исписује садржај тренутне фасцикле" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[фасцикла/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Исписује променљиве подешавања" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Добавља променљиву подешавања" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "назив" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Поставља променљиву подешавања" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "назив=вредност" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Поставља попис променљиве подешавања" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "назив=попис вредности" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Снима једну слику" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Снима једну слику и прузима је" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Снима слику прегледа" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Чека на догађај" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "износ или секунде" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Чека на слике да буду снимљене и преузима их" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Чека на догађаје и слике да буду снимљене и преузима их" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Погрешна наредба." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Наредба „%s“ захтева аргумент." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Погрешна путања." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Не могу да нађем личну фасциклу." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Не могу да пређем у месну фасциклу „%s“." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Месна фасцикла сада „%s“." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Удаљена фасцикла сада „%s“." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "„set-config“ тражи и други аргумент.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "„set-config-value“ тражи и други аргумент.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "„set-config-index“ тражи и други аргумент.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Наредба „%s“ не постоји. Употребите „help“ за списак доступних наредби." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Објашњење за „%s“:" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Употреба:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Опис:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Аргументи у [] заградама су необавезни" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Доступне наредбе:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "За објашњење неке наредбе куцајте „help назив-наредбе“." + +#~ msgid "Show info" +#~ msgstr "Приказује податке" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/sv.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/sv.po new file mode 100644 index 00000000..10d36c40 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/sv.po @@ -0,0 +1,1836 @@ +# Swedish translation of gphoto2 +# Copyright © 2000-2015 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# Andreas Hyden 2000. +# Stefan Björnelund 2002. +# Sverker Wiberg 2002. +# Daniel Nylander , 2009, 2010. +# Sebastian Rasmussen , 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2015-12-28 00:05+0100\n" +"Last-Translator: Sebastian Rasmussen \n" +"Language-Team: Swedish \n" +"Language: sv\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.8.6\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Antal filer i mappen ”%s”: %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Det finns %d mapp i mappen ”%s”.\n" +msgstr[1] "Det finns %d mappar i mappen ”%s”.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Det finns ingen fil i mappen ”%s”.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Det finns %d fil i mappen ”%s”.\n" +msgstr[1] "Det finns %d filer i mappen ”%s”.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Information om filen ”%s” (mapp ”%s”):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Fil:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Ingen tillgänglig.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime-typ: ”%s”\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Storlek: %lu byte\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Bredd: %i bildpunkt(er)\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Höjd: %i bildpunkt(er)\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Hämtat: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "ja" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "nej" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Rättigheter: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "läsa/ta bort" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "läsa" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "ta bort" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "ingen" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Tid: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Miniatyrbild:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Ljuddata:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime-typ: ”%s”\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Storlek: %lu byte\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Hämtat: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Kunde inte tolka EXIF-data." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF-taggar:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Tagg" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Värde" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF-data innehåller en miniatyrbild (%i byte)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 har kompilerats utan EXIF-stöd." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Antal kameror som stöds: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Kameror som stöds:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t”%s” (TEST)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t”%s” (EXPERIMENTELL)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t”%s”\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Hittade enheter: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Sökväg Beskrivning\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Modell" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Port" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Förmågor hos kameran : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Serieportsstöd : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "USB-stöd : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Överföringshastigheter som stöds :\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Tagningsval :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Bild\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Video\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Ljud\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Förhandsgranskning\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : Utlösartagning\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Tagning stöds inte av drivrutinen\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Konfigurationsstöd :%s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Ta bort markerade filer på kameran : %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Ta bort alla filer på kameran : %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Stöd för förhandsgranskning : %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Stöd för filsändningar : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Portar måste se ut som ”serial:/dev/ttyS0” eller ”usb:”, men ”%s” saknar ett kolon så jag kommer att gissa vad du menar." + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Den port som du angav (”%s”) kan inte hittas. Ange en av de portar som hittades av ”gphoto2 --list-ports” och försäkra dig om att stavningen är korrekt (använd prefixet ”serial:” eller ”usb:”)." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "Om kameradrivrutinen:" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Sammanfattning för kamera:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Kameramanual:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Du kan endast ange hastigheter för serieportar." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "OS/2-portering av Bart van Leeuwen\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Copyright © 2000-%d Lutz Müller och andra\n" +"%s\n" +"gphoto2 levereras UTAN GARANTI, så långt som lagen tillåter. Du får\n" +"distribuera kopior av gphoto2 under villkoren i GNU General Public\n" +"License. För ytterligare information, se filerna med namnet COPYING.\n" +"\n" +"Denna version av gphoto2 använder följande programvaruversioner och flaggor:\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Kunde inte öppna ”movie.mjpg”." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Tar förhandsgranskningsbilder som film till ”%s”. Tryck Ctrl-C för att avbryta.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Tar förhandsgranskningsbilder som film till ”%s” under %d sekunder.\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Tar %d förhandsgranskningsbilder som film till ”%s”.\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Filmtagningsfel… Avslutar." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Filmtagningsfel… Ohanterad MIME-typ ”%s”." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl-C nedtryckt … Avslutar.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Filmtagning avslutad (%d bildrutor)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Väntar på händelser från kamera. Tryck Ctrl-C för att avbryta.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Väntar på %d bilder från kameran. Tryck Ctrl-C för att avbryta.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Väntar i %d millisekunder på händelser från kamera. Tryck Ctrl-C för att avbryta.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Väntar i %d sekunder på händelser från kamera. Tryck Ctrl-C för att avbryta.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Väntar på %d händelser från kamera. Tryck Ctrl-C för att avbryta.\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Väntar på %s-händelse från kamera. Tryck Ctrl-C för att avbryta.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "händelse hittad, avslutar väntan!\n" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Kunde inte ställa in mapp." + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Kunde inte hämta bild." + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "Felaktig libcanon.so?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Kunde inte ta bort bild." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Hämtning av lagringsinformation stöds inte för denna kamera.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Läs-skriv" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Skrivskyddad" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Skrivskyddad med borttagning" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Okänt" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "Fast ROM" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "Flyttbart ROM" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "Fast RAM" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "Flyttbart RAM" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Odefinierat" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Allmänt platt" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Allmänt hierarkisk" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Kameralayout (DCIM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Åsidosätt USB-id för tillverkare/produkt 0x%x/0x%x med 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "INKLUDERA ALLTID DE FÖLJANDE RADERNA NÄR DU SKICKAR FELSÖKNINGSMEDDELANDEN TILL SÄNDLISTAN:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s har kompilerats med följande flaggor:" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "%s hittades inte i konfigurationsträdet." + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Misslyckades med att hämta värde för textkomponenten %s." + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Misslyckades med att hämta värden för intervallkomponenten %s." + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Misslyckades med att hämta värden för växlingskomponenten %s." + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Misslyckades med att hämta värden för datum/tid-komponenten %s." + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Använd ”nu” som aktuell tid vid inställning.\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Misslyckades med att hämta värden för radiokomponenten %s." + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "Egenskapen %s är skrivskyddad." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Misslyckades med att ställa in värdet för textkomponenten %s till %s." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Det vidaresända värdet %s är inte ett flyttalsvärde." + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Det vidaresända värdet %f är inte inom det förväntade intervallet %f - %f." + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Misslyckades med att ställa in värdet för intervallkomponenten %s till %f." + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "av" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "falskt" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "på" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "sant" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Det vidaresända värdet %s är inte ett giltigt växlingsvärde." + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Misslyckades att ställa in värden %s för växlingskomponenten %s." + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "nu" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Det vidaresända värdet %s är varken en giltig tid eller ett heltal." + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Misslyckades med att ställa in ny tid för datum/tid-komponenten %s till %s." + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Valet %s hittades inte i listan över val." + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Komponenten %s är inte konfigurerbar." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Misslyckades med att ställa in nytt konfigurationsvärde %s för konfigurationsposten %s." + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "Komponenten %s har ingen indexerad lista över val. Använd --set-config-value istället." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Felaktigt filnummer. Du angav %i, men det fanns bara %i filer tillgängliga i ”%s” eller dess underkataloger. Leta fram ett giltigt filnummer från en fillista först." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Det finns inga filer i mappen ”%s”." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Felaktigt filnummer. Du angav %i, men det finns bara 1 fil tillgänglig i ”%s”." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Felaktigt filnummer. Du angav %i, men det finns bara %i filer tillgängliga i ”%s”. Skaffa fram ett giltigt filnummer från en fillista först." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Fel *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Tryck på en tangent för att fortsätta.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Slut på minne." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Åtgärden avbröts" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Fortsätt" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Avbryt" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Fel" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Kunde inte ställa in konfiguration:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Avsluta" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Bakåt" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Tid: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Värde: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Ja" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Nej" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Utfyllning med nollor i filnamn är endast möjligt med %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Du kan inte använda %%n utfyllning med nollor utan ett precist värde!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Filnamnet tillhandahållet av kameran (”%s”) innehåller inte ett suffix!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Ogiltigt format ”%s” (fel vid position %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Hoppa över existerande fil %s\n" + +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Filen %s finns redan. Skriv över? Ja/Nej [y|n] " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Ange filnamn? Ja/Nej [y|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Ange nytt filnamn: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Sparar fil som %s\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Åtkomst nekad" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Kunde inte utlösa tagning." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Ny fil finns på platsen %s%s%s på kameran\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Behåll fil %s%s%s på kameran\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Tar bort filen %s%s%s på kameran\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Händelse KATALOG_TILLAGD %s/%s under väntan, ignorerar.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Händelse OKÄND %s under väntan, ignorerar.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Okänd händelsetyp %d under långtidsexponering, ignorerar.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Kunde inte hämta egenskaper?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Tidsförloppsläge aktiverat (intervall: %ds).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Väntar på SIGUSR1 för att fånga in.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Långtidsexponering aktiverat (exponeringstid: %ds).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Fångar in bildruta nr. %d…\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Fångar in bildruta nr. %d/%d…\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Kunde inte ställa in långtidsexponering, resultat %d." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Kunde inte avsluta tagning (långtidsexponering)." + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Kunde inte utläsa bildtagning." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Kunde inte fånga in bild." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Tagning misslyckades (problem med autofokus?)…\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Kunde inte fånga in." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Väntar på nästa tagningsöppning %ld sekunder…\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Väckt av SIGUSR1…\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "sover inte (%ld sekunder efter schema)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "FEL: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Avbryter…\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Avbruten.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Avbryter…\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Använd följande syntax a:b=c:d för att behandla en USB-enhet som identifierats som a:b som c:d istället. a b c d skall vara hexadecimala tal som börjar med ”0x”.\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 har kompilerats utan stöd för CDK." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Åtgärden avbruten.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Fel: Ingen kamera hittad. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Fel (%i: ”%s”) *** \n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"För felsökningsmeddelanden, använd flaggan --debug.\n" +"Felsökningsmeddelanden kan hjälpa till att hitta en lösning på ditt problem.\n" +"Om du avser att sända några fel eller felsökningsmeddelanden till gphoto-\n" +"utvecklarnas sändlista , kör gärna\n" +"gphoto2 som följer:\n" +"\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Vänligen säkerställ att det finns tillräckligt med citationstecken runt argumenten.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "Skriv ut komplett hjälpmeddelande för användning" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "Skriv ut kort meddelande för användning" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Aktivera felsökning" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "Ställ in felsökningsnivå [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "Namn på fil att skriva felsökningsinformation till" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "FILNAMN" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Tyst utdata (standard=informativ)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Hook-skript att anropa efter hämtningar, tagningar, etc." + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Ange enhetsport" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Ange seriell överföringshastighet" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "HASTIGHET" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Ange kameramodell" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "MODELL" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "(endast experter) Åsidosätt USB-ID" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBID" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Visa versionsnummer och avsluta" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Lista kameramodeller som stöds" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Lista portenheter som stöds" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Visa kamera-/drivrutinsförmågor i libgphoto2-databasen" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Konfigurera" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Lista konfigurationsträd" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Mata ut fullständigt konfigurationsträd" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Hämta konfigurationsvärde" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Ställ in konfigurationsvärde eller index i val" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "Ställ in konfigurationsvärdeindex i val" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Ställ in konfigurationsvärde" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Återställ enhetsport" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Behåll bilder på kamera efter tagning" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "Behåll RAW-bilder på kamera efter tagning" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Ta bort bilder från kamera efter tagning" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Vänta på händelse(r) från kamera" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "ANTAL, SEKUNDER, MILLISEKUNDER eller MATCHSTRÄNG" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Vänta på händelse(r) från kameran och hämta nya bilder" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Ta en snabb förhandsgranskning" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "Visa en snabb förhandsgranskning som Ascii-konst" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Ställ in långtidsexponeringstid i sekunder" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "SEKUNDER" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Ställ in antal bildrutor att fånga in (standard=oändligt)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "ANTAL" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Ställ in tagningsintervall i sekunder" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Återställ tagningsintervall på signal (standard=nej)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Ta en bild" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Utlös tagning av en bild" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Ta en bild och hämta den" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Spela in en film" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "ANTAL eller SEKUNDER" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Spela in ett ljudklipp" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Vänta på avtryckaren på kameran och hämta" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Utlös bildtagning" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Lista mappar i mappen" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Lista filer i mapp" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Skapa en katalog" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "KATNAMN" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Ta bort en katalog" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Visa antalet filer" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Hämta filer i angivet intervall" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "INTERVALL" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Hämta alla filer från mappen" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Hämta alla miniatyrbilder i det angivna intervallet" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Hämta alla miniatyrbilder i mappen" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Hämta metadata i det angivna intervallet" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Hämta all metadata från mapp" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Skicka upp metadata för fil" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Hämta rådata i det angivna intervallet" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Hämta all rådata från mappen" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Hämta ljuddata i det angivna intervallet" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Hämta all ljuddata från mappen" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Ta bort filer i det angivna intervallet" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Ta bort alla filer i mappen (--no-recurse som standard)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Skicka upp fil till kamera" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Ange ett filnamn eller filnamnsmönster" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "FILNAMNSMÖNSTER" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Ange kameramapp (standard=”/”)" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "MAPP" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Rekursion (standard för hämtning)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Ingen rekursion (standard för borttagning)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Behandla endast nya filer" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Skriv över filer utan att fråga" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Hoppa över existerande filer" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Skicka fil till standard ut" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "Skriv ut filstorlek före data" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Lista automatiskt upptäckta kameror" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Visa EXIF-information för JPEG-bilder" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Visa bildinformation, så som bredd, höjd och tagningstid" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "Visa kamera-sammandrag" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Visa kameradrivrutinens manual" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "Om kameradrivrutinens manual" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Visa lagringsinformation" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "gPhoto-skal" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Vanliga flaggor" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Diverse flaggor (osorterade)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "Hämta information om programvara och värdsystem (inte från kameran)" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "Ange kameran att använda" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Konfiguration av kamera och programvara" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Ta en bild från eller på kameran" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Hämtar, skickar upp och manipulerar filer" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Bild-ID måste vara ett tal större än noll." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Bildens ID %i är för högt." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Intervall måste separeras med ”,”." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Intervall måste börja med ett tal." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Oväntat tecken ”%c”." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Minskande intervall är inte tillåtna. Du angav ett intervall från %i till %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Fel (%i: ”%s”) ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Byt till en katalog i kameran" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "katalog" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Byt till en katalog på den lokala disken" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Avsluta gPhoto-skalet" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Hämta en fil" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[katalog/]filnamn" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Skicka upp en fil" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Hämta en miniatyrbild" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Hämta rådata" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Ta bort" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Skapa katalog" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Ta bort katalog" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Visar kommandoanvändning" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[kommando]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Lista innehållet av den aktuella katalogen" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[katalog/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Lista konfigurationsvariabler" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Hämta konfigurationsvariabel" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "namn" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Ställ in konfigurationsvariabel" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "namn=värde" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Ställ in konfigurationsvariabelindex" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "namn=värdeindex" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Ta en enstaka bild" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Ta en enstaka bild och hämta den" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Ta en förhandsbild" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Vänta på en händelse" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "antal eller sekunder" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Vänta på bilder att fångas in och hämta dem" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Vänta på händelser och bilder att fångas in samt hämta dem" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Ogiltigt kommando." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Kommandot ”%s” kräver ett argument." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Ogiltig sökväg." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Kunde inte hitta hemkatalogen." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Kunde inte byta till lokala katalogen ”%s”." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Lokal katalog är nu ”%s”." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Fjärrkatalogen är nu ”%s”." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config behöver ett andra argument.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value behöver ett andra argument.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index behöver ett andra argument.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Kommandot ”%s” hittades inte. Använd ”help” för att få en lista av tillgängliga kommandon." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Hjälp om ”%s”:" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Användning:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Beskrivning:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Argument inom klamrar [] är valfria" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Tillgängliga kommandon:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "För att få hjälp om ett speciellt kommando, skriv ”help kommandonamn”." + +#~ msgid " Name: '%s'\n" +#~ msgstr " Namn: \"%s\"\n" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "Du kan inte använda \"%%n\" i kombination med icke-beständiga filer!" + +#~ msgid "Could not get filename (bulb mode)." +#~ msgstr "Kunde inte läsa av filnamnet (långtidsexponering)." + +#~ msgid "Could not close camera connection." +#~ msgstr "Kunde inte stänga anslutning till kameran." + +#~ msgid "Sleeping for %d second(s)...\n" +#~ msgstr "Sover i %d sekund(er)...\n" + +#~ msgid "Show info" +#~ msgstr "Visa information" + +#~ msgid "New file %s/%s, downloading...\n" +#~ msgstr "Ny fil %s/%s, hämtar...\n" + +#~ msgid "filename" +#~ msgstr "filnamn" + +#~ msgid "There are no folders in folder '%s'." +#~ msgstr "Det finns inga mappar i mappen '%s'." + +#~ msgid "There are %i folders in folder '%s':" +#~ msgstr "Det finns %i mappar i mappen '%s':" + +#~ msgid "There are %i files in folder '%s':" +#~ msgstr "Det finns %i filer i mappen '%s':" + +#~ msgid "Displays this help screen" +#~ msgstr "Visar den här hjälptexten" + +#~ msgid "Capture a movie " +#~ msgstr "Ta en film" + +#~ msgid "Summary of camera status" +#~ msgstr "Sammanfattning av kamerastatus" + +#~ msgid "Camera driver manual" +#~ msgstr "Kameradrivrutinens manual" + +#~ msgid "About the camera driver" +#~ msgstr "Om kameradrivrutinen" + +#~ msgid "Jan" +#~ msgstr "Jan" + +#~ msgid "January" +#~ msgstr "Januari" + +#~ msgid "Feb" +#~ msgstr "Feb" + +#~ msgid "February" +#~ msgstr "Februari" + +#~ msgid "Mar" +#~ msgstr "Mar" + +#~ msgid "March" +#~ msgstr "Mars" + +#~ msgid "Apr" +#~ msgstr "Apr" + +#~ msgid "April" +#~ msgstr "April" + +#~ msgid "May" +#~ msgstr "Maj" + +#~ msgid "Jun" +#~ msgstr "Jun" + +#~ msgid "June" +#~ msgstr "Juni" + +#~ msgid "Jul" +#~ msgstr "Jul" + +#~ msgid "July" +#~ msgstr "Juli" + +#~ msgid "Aug" +#~ msgstr "Aug" + +#~ msgid "August" +#~ msgstr "Augusti" + +#~ msgid "Sep" +#~ msgstr "Sep" + +#~ msgid "September" +#~ msgstr "September" + +#~ msgid "Oct" +#~ msgstr "Okt" + +#~ msgid "October" +#~ msgstr "Oktober" + +#~ msgid "Nov" +#~ msgstr "Nov" + +#~ msgid "November" +#~ msgstr "November" + +#~ msgid "Dec" +#~ msgstr "Dec" + +#~ msgid "December" +#~ msgstr "December" + +#~ msgid "Sun" +#~ msgstr "Sön" + +#~ msgid "Sunday" +#~ msgstr "Söndag" + +#~ msgid "Monday" +#~ msgstr "Måndag" + +#~ msgid "Tue" +#~ msgstr "Tis" + +#~ msgid "Tuesday" +#~ msgstr "Tisdag" + +#~ msgid "Wed" +#~ msgstr "Ons" + +#~ msgid "Wednesday" +#~ msgstr "Onsdag" + +#~ msgid "Thu" +#~ msgstr "Tor" + +#~ msgid "Thursday" +#~ msgstr "Torsdag" + +#~ msgid "Fri" +#~ msgstr "Fre" + +#~ msgid "Friday" +#~ msgstr "Fredag" + +#~ msgid "Sat" +#~ msgstr "Lör" + +#~ msgid "Saturday" +#~ msgstr "Lördag" + +#~ msgid "path" +#~ msgstr "väg" + +#~ msgid "speed" +#~ msgstr "hastighet" + +#~ msgid "model" +#~ msgstr "modell" + +#~ msgid "usbid" +#~ msgstr "usbid" + +#~ msgid "folder" +#~ msgstr "mapp" + +#~ msgid "gPhoto2 for OS/2 requires you to set the enviroment value CAMLIBS to the location of the camera libraries. e.g. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" +#~ msgstr "gPhoto2 för OS/2 kräver att du sätter omgivnings-variabeln CAMLIBS till katalogen med kamera-biblioteken, t.ex. SET CAMLIBS=C:\\GPHOTO2\\CAM\n" + +#~ msgid "gPhoto2 for OS/2 requires you to set the enviroment value IOLIBS to the location of the io libraries. e.g. SET IOLIBS=C:\\GPHOTO2\\IOLIB\n" +#~ msgstr "gPhoto2 för OS/2 kräver att du sätter omgivnings-variabeln IOLIBS till katalogen med io-biblioteken, t.ex. SET IOLIBS=C:\\GPHOTO2\\IOLIBS\n" + +#~ msgid "Usage:\n" +#~ msgstr "Användning:\n" + +#~ msgid "" +#~ "Short/long options (& argument) Description\n" +#~ "--------------------------------------------------------------------------------\n" +#~ msgstr "" +#~ "Korta/långa flaggor (& argument) Beskrivning\n" +#~ "--------------------------------------------------------------------------------\n" + +#~ msgid "%-38s %s\n" +#~ msgstr "%-38s %s\n" + +#~ msgid "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +#~ msgstr "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Använd dubbel-apostrof omkring argument] [Foto-nummer börjar med ett (1) ]\n" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/uk.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/uk.po new file mode 100644 index 00000000..212fe73a --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/uk.po @@ -0,0 +1,1678 @@ +# Ukrainian translation of gphoto2. +# Copyright (C) 2004 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# +# Maxim V. Dziumanenko , 2004-2007. +# Yuri Chornoivan , 2012, 2013, 2014, 2015. +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2015-11-19 17:35+0200\n" +"Last-Translator: Yuri Chornoivan \n" +"Language-Team: Ukrainian \n" +"Language: uk\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"X-Generator: Lokalize 1.5\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Кількість файлів у теці «%s»: %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "У теці \"%2$s\" є %1$d тека.\n" +msgstr[1] "У теці \"%2$s\" є %1$d теки.\n" +msgstr[2] "У теці \"%2$s\" є %1$d тек.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "У теці «%s» немає файлів.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "У теці \"%2$s\" є %1$d файл.\n" +msgstr[1] "У теці \"%2$s\" є %1$d файли.\n" +msgstr[2] "У теці \"%2$s\" є %1$d файлів.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Інформація про файл «%s» (тека «%s»):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Файл:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Немає.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Тип MIME: '%s'\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Розмір: %lu байтів\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Ширина: %i точок\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Висота: %i точок\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Скопійовано: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "так" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "ні" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Права: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "читання/вилучення" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "читання" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "вилучення" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "немає" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Час: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Мініатюра:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Звукозапис:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Тип MIME: '%s'\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Розмір: %lu байтів\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Скопійовано: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Не вдалося проаналізувати дані EXIF." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "Мітки EXIF:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Мітка" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Значення" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Дані EXIF містять мініатюру (%i байт)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 скомпільований без підтримки EXIF." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Кількість підтримуваних фотоапаратів: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Підтримувані фотоапарати:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t«%s» (ТЕСТОВИЙ)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t«%s» (ЕКСПЕРИМЕНТАЛЬНИЙ)\n" + +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t«%s»\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Знайдено пристроїв: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Шлях Опис\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Модель" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Порт" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Функції фотоапарата : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Підтримка послідовного порту : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "Підтримка USB : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Підтримувані швидкості :\n" + +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Вибір захоплення :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Зображення\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Відео\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Звук\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Перегляд\n" + +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : Ініціювати захоплення\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Драйвером не підтримується режим захоплення\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Підтримка налаштовування : %s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Вилучити позначені файли : %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Вилучити всі файли у фотоапараті : %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Підтримка мініатюр : %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Підтримка завантаження файлів : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Порт повинен мати формат 'serial:/dev/ttyS0' або 'usb:', але у '%s' відсутня двокрапка, тому програма спробує здогадатись, що ви мали на увазі." + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Вказаний вами порт ('%s') не знайдено. Вкажіть один з портів з переліку, що виводиться при виконанні 'gphoto2 --list-ports' та перевірте правильність введеного (тобто префікс 'serial:' чи 'usb:')." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "Про драйвер пристрою:" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Зведена інформація:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Довідка до фотоапарату:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Швидкість можна вказувати лише для послідовних портів." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Перенос для OS/2 виконав Bart van Leeuwen\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"Авторські права (c) 2000-%d Lutz Mueller та інші\n" +"%s\n" +"gphoto2 постачається БЕЗ ГАРАНТІЇ, у межах дозволених законом. Ви можете\n" +"розповсюджувати копії gphoto2 на умовах ліцензії GNU General Public\n" +"License. Додаткову інформацію дивіться у файл з назвою COPYING.\n" +"\n" +"Ця версія gphoto2 використовує наступні версії та параметри програм:\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Не вдалося відкрити «movie.mjpg»." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Захоплюємо кадри попереднього перегляду як відео до «%s». Натисніть Ctrl-C, щоб перервати.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Захоплюємо кадри попереднього перегляду як відео до «%s» протягом %d секунд.\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Захоплюємо %d кадрів попереднього перегляду як відео до «%s».\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Помилка під час захоплення відео… Завершуємо роботу." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Помилка під час захоплення відео… Непридатний до обробки тип MIME «%s»." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Натиснуто Ctrl-C… Перериваємо роботу.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Захоплення відео завершено (%d кадрів)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Очікуємо на події з фотоапарата. Натисніть Ctrl-C, щоб перервати.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Очікуємо на %d кадрів з фотоапарата. Натисніть Ctrl-C, щоб перервати.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Очікуємо %d мілісекунд на події від фотоапарата. Натисніть Ctrl-C, щоб перервати.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Очікуємо %d секунд на події з фотоапарата. Натисніть Ctrl-C, щоб перервати.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Очікуємо на повідомлення про %d подій від фотоапарата. Натисніть Ctrl-C, щоб перервати.\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Очікуємо на повідомлення про подію %s від фотоапарата. Натисніть Ctrl-C, щоб перервати.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "отримано повідомлення щодо події, припиняємо очікування!\n" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Не вдалося встановити теку" + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Не вдалося отримати зображення" + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "Помилка у файлі libcanon.so?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Не вдалося вилучити зображення." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "У цьому фотоапараті не передбачено можливості отримання даних щодо місткості сховища даних.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Читання-запис" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Лише читання" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Лише читання з вилученням" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Невідомо" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "Фіксована ROM" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "Портативна ROM" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "Фіксована RAM" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "Портативна RAM" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Не визначено" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Звичайна плоска" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Звичайна ієрархічна" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Розташування фотоапарата (DCIM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "USB-ідентифікатор виробника/продукту замінено з 0x%x/0x%x на 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "ЗАВЖДИ ВКЛЮЧАЙТЕ НАСТУПНІ РЯДКИ ПРИ НАДСИЛАННІ НАЛАГОДЖУВАЛЬНИХ ПОВІДОМЛЕНЬ У СПИСОК РОЗСИЛКИ:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s зібрано з наступними параметрами:" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "Ключ «%s» не знайдено в конфігурації." + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Не вдалося отримати значення текстового поля: %s." + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Не вдалося отримати значення поля діапазону %s." + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Не вдалося отримати значення поля перемикачів %s." + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Не вдалося отримати значення поля дати/часу %s." + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Скористайтеся рядком «зараз» як поточним часом під час встановлення значення.\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Не вдалося отримати значення поля радіо-перемикачів %s." + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "Властивість %s не можна змінювати." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Не вдалося встановити значення текстового поля %s у %s." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Вказане значення %s не є числом з рухомою комою." + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Вказане значення %f поза допустимим діапазоном %f - %f." + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Не вдалося встановити вилучене поля діапазону %s у %f." + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "off" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "false" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "on" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "true" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Вказане значення %s не є правильним значенням для поля перемикача." + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Не вдалося встановити значення %s поля перемикача %s." + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "зараз" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Передане значення %s не є ані значенням часу, ані цілим числом." + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Не вдалося встановити нове значення дати/часу поля %s у %s." + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Варіант %s відсутній у списку варіантів." + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Поле %s не підтримує налаштовування." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Не вдалося встановити значення %s для запису конфігурації %s." + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "На віджеті %s немає індексованого списку варіантів. Скористайтеся краще --set-config-value." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Неправильна кількість файлів. Ви вказали %1$i, але у \"%3$s\" або її підтеках доступно лише %2$i файлів. Спочатку визначте правильну кількість файлів з переліку файлів." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "У теці «%s» немає файлів." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Неправильна кількість файлів. Ви вказали %i, але у теці «%s» доступний лише 1 файл" + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Неправильна кількість файлів. Ви вказали %1$i, але у теці \"%3$s\" доступно лише %2$i файлів. Спочатку визначте правильну кількість файлів з переліку файлів." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Помилка *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Натисніть будь-яку клавішу.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Недостатньо пам'яті." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Операція скасована" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Продовжити" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Скасувати" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Помилка" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Не вдалося встановити конфігурацію:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Вийти" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Назад" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Час: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Значення: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Так" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Ні" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Доповнення нулями назв файлів можливо лише з %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Не можна використовувати доповнення нулями поля '%%n' без точного значення!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Вказана фотоапаратом назва файлу («%s») не містить розширення!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Неправильний формат «%s» (помилка у позиції %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Пропустити наявний файл %s\n" + +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Файл %s існує. Переписати? [y|n] " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Ввести назву файлу? [y|n] " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Введіть назву файлу: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Збереження файлу як %s\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Доступ заборонено" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Не вдалося перемкнути стан захоплення." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Новий файл заходиться у фотоапараті у %s%s%s\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Залишаємо файл %s%s%s на фотоапараті\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Вилучається файл %s%s%s у фотоапараті\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Подія FOLDER_ADDED %s/%s під час очікування. Ігноруємо.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Подія UNKNOWN %s під час очікування. Ігноруємо.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Невідомий тип події, %d, під час очікування у режимі ручної витримки. Ігноруємо.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Не вдалося отримати перелік можливостей?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Увімкнено режим відкладеного спуску (інтервал: %ds).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Очікуємо на сигнал SIGUSR1, щоб розпочати захоплення.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Увімкнено режим ручної витримки (час експонування: %d с).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Зйомка кадру #%d...\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Знімається кадр #%d/%d...\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Не вдалося налаштувати захоплення з визначенням витримки вручну, результат — %d." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Не вдалося завершити захоплення (режим захоплення з витримкою вручну)." + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Не вдалося розпочати захоплення зображень." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Не вдалося захопити зображення." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Помилка при зйомці (проблеми з автофокусуванням?)...\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Не вдалося зробити знімок." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Очікуємо наступний слот захоплення %ld секунд…\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Пробуджено сигналом SIGUSR1…\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "не у стані очікування (%ld секунд запізнення за розкладом)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "ПОМИЛКА: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Переривається...\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Перервано.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Скасовується...\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Використовуйте наступний синтаксис a:b=c:d, щоб вважати будь-який USB пристрій визначений як a:b пристроєм c:d. a b c d повинні бути шістнадцятковими числами, що починаються з '0x'.\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 скомпільовано без підтримки CDK." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Операція скасована.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Помилка: фотоапаратів не знайдено. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Помилка (%i: '%s') *** \n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Для виводу налагоджувальних повідомлень використовуйте ключ --debug\n" +"Налагоджувальні повідомлення можуть допомогти у розв'язанні проблем.\n" +"Якщо ви збираєтесь надсилати будь-які повідомлення про помилки у список\n" +"розсилки розробників gphoto ,\n" +"запускайте gphoto2 наступним чином:\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Будь ласка, переконайтеся, що аргументи взято у лапки належним чином.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "Вивести повну довідку з використання програми" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "Вивести коротку довідку з використання програми" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Увімкнути режим налагодження" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "Встановити рівень діагностики [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "Назва файлу для запису налагоджувальної інформації" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "НАЗВАФАЙЛУ" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Не виводити повідомлення (типово=виводити усі)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Допоміжний скрипт для виклику після отримання даних, захоплення тощо." + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Вказати порт пристрою" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Вказує швидкість передачі послідовного порту" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "ШВИДКІСТЬ" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Вказує модель фотоапарата" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "МОДЕЛЬ" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "(лише для фахівців) Перевизначити USB ID" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBID" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Вивести версію та вийти" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Виводить перелік підтримуваних моделей фотоапаратів" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Виводить перелік підтримуваних портів пристроїв" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Показувати можливості фотоапарата та драйвера у базі даних libgphoto2" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Налаштувати" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Показати дерево параметрів" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Створити дамп усього дерева параметрів" + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Отримати значення параметра конфігурації" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Встановити значення налаштування або індекс у списку варіантів" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "Встановити індекс значення налаштування у списку варіантів" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Встановити значення параметра конфігурації" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Звільнити порт пристрою" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Залишати знімки на фотоапараті після захоплення" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "Залишати цифрові негативи на фотоапараті після захоплення" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Вилучати зображення з фотоапарата після захоплення" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Очікувати на події від фотоапарата" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "COUNT, SECONDS, MILLISECONDS або MATCHSTRING" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Очікувати на події від фотоапарата і отримати нові зображення" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Зробити пробний знімок" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "Показувати попередній перегляд значками ASCII" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Встановити значення експонування вручну (у секундах)" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "СЕКУНД" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Встановити кількість кадрів для захоплення (типово=без обмежень)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "КІЛЬКІСТь" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Встановити інтервал між знімками у секундах" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Скинути інтервал захоплення за сигналом (типове значення — ні)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Зробити знімок" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Увімкнути захоплення зображення" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Захопити зображення і отримати його" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Захопити відео" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "КІЛЬКІСТЬ або СЕКУНДИ" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Зробити звукозапис" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Зачекати на спуск затвора фотоапарата і отримати дані" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Розпочати захоплення зображень" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Виводить перелік тек у теці" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Виводить перелік файлів у теці" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Створити каталог" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "НАЗВКАТАЛОГУ" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Вилучити каталог" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Показати кількість файлів" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Отримати файли з вказаного діапазону" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "ДІАПАЗОН" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Отримати всі файли з теки" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Отримати мініатюри з вказаного діапазону" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Отримати всі мініатюри з теки" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Отримати метадані з діапазону" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Отримати всі метадані з теки" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Відвантажити метадані у файл" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Отримати необроблені дані з діапазону" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Отримати всі необроблені дані з теки" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Отримати звукозаписи з вказаного діапазону" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Отримати всі звукозаписи з теки" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Вилучити файли у вказаному діапазоні" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Вилучити всі файли у теці (типово з --no-recurse)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Завантажити файл у камеру" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Вказує назву файлу чи шаблон назв файлів" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "ШАБЛОН_ФАЙЛІВ" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Вказує теку у фотоапараті (типово=\"/\")" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "ТЕКА" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Рекурсивно (типово для завантаження)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Без рекурсії (типово для вилучення)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Лише нові файли" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Перезаписувати файли без підтвердження" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Пропустити наявні файли" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Виводити файл у стандартний вивід" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "Виводити розмір файлу перед даними" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Вивести перелік автоматично знайдених фотоапаратів" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Вивести дані EXIF зображень JPEG" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Вивести дані щодо зображення, зокрема ширину, висоту та час захоплення" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "Вивести резюме щодо фотоапарата" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Виводить довідку про драйвер фотоапарату" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "Про довідку драйвера фотоапарату" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Показати дані щодо носія даних" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "командна оболонка gPhoto" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Загальні ключі" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Різні ключі (без сортування)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "Отримати інформацію про ПЗ та систему (не з фотоапарату))" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "Вказати фотоапарат" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Фотоапарат та конфігурація ПЗ" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Захопити зображення з фотоапарату" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Завантаження, відвантаження та маніпуляції з файлами" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Ідентифікатори зображень повинні бути числами більше нуля." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Ідентифікатор зображення %i надто великий." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Діапазони повинні розділятись \",\"." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Діапазони повинні починатись з цифри." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Неочікуваний символ '%c'." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Не можна вказувати діапазон з меншого числа. Ви вказали діапазон від %i до %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Помилка (%i: '%s') ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Перейти в каталог в пам'яті фотоапарата" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "каталог" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Перейти в каталог на локальному диску" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Вихід з командної оболонки gPhoto" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Завантажити файл" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[каталог/]назва_файлу" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Відвантажити файл" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Завантажити мініатюру" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Завантажити необроблені дані" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Вилучити" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Створити каталог" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Вилучити каталог" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Довідка з команд" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[команда]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Показати вміст поточного каталогу" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[каталог/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Вивести змінні конфігурації" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Отримати змінну конфігурації" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "назва" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Встановити змінну конфігурації" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "назва=значення" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Встановити індекс змінної налаштування" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "назва=індекс_значення" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Зняти один кадр" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Захопити один кадр і отримати його" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Захопити зображення попереднього перегляду" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Зачекати на подію" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "кількість або тривалість у секундах" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Зачекати на зображення, які слід захопити і отримати дані" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Зачекати на події і зображення, які слід захопити, і отримати дані" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Неправильна команда." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Команди «%s» використовується з аргументом." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Неправильний шлях." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Не вдалося знайти домашній каталог." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Не вдалося знайти локальний каталог «%s»." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Поточний локальний каталог - «%s»" + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Поточний віддалений каталог - «%s»" + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "для set-config треба вказати другий аргумент.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "для set-config-value слід вказати другий аргумент.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "для set-config-index слід вказати другий аргумент.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Команда «%s» не існує. Введіть \"help\", щоб отримати перелік наявних команд." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Довідка з «%s»:" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Використання:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Опис:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Аргументи у дужках [] є необов'язковими." + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Доступні команди:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Щоб отримати довідку про певну команду, введіть \"help назва_команди\"." + +#~ msgid "Show info" +#~ msgstr "Виводить інформацію" + +#~ msgid " Name: '%s'\n" +#~ msgstr " Назва: '%s'\n" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "Не можна використовувати '%%n' у комбінації з тимчасовими файлами!" + +#~ msgid "Could not close camera connection." +#~ msgstr "Не вдається завершити з'єднання з фотоапаратом" + +#~ msgid "Sleeping for %d second(s)...\n" +#~ msgstr "Очікування %d секунд...\n" + +#~ msgid "filename" +#~ msgstr "назва_файлу" + +#~ msgid "Usage:\n" +#~ msgstr "Використання:\n" + +#~ msgid "" +#~ "Short/long options (& argument) Description\n" +#~ "--------------------------------------------------------------------------------\n" +#~ msgstr "" +#~ "Короткі/довгі ключів (та аргументи) Опис\n" +#~ "--------------------------------------------------------------------------------\n" + +#~ msgid "%-38s %s\n" +#~ msgstr "%-38s %s\n" + +#~ msgid "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Use double-quotes around arguments] [Picture numbers begin with one (1)]\n" +#~ msgstr "" +#~ "--------------------------------------------------------------------------------\n" +#~ "[Використовуйте лапки навколо аргументів] [Номери малюнків починаються з 1 ]\n" + +#~ msgid "[name]" +#~ msgstr "[назва]" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/vi.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/vi.po new file mode 100644 index 00000000..8740fdd7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/vi.po @@ -0,0 +1,1652 @@ +# Vietnamese translation for GPhoto2. +# Bản dịch tiếng Việt dành cho gphoto2. +# Copyright © 2015 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# Clytie Siddall , 2005-2010. +# Trần Ngọc Quân , 2012-2014, 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2015-11-20 07:39+0700\n" +"Last-Translator: Trần Ngọc Quân \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Language-Team-Website: \n" +"X-Generator: Gtranslator 2.91.7\n" +"X-Poedit-SourceCharset: UTF-8\n" + +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "Số lượng tập tin nằm trong thư mục “%s”: %i\n" + +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "Có %d thư mục nằm trong thư mục “%s”.\n" + +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "Không có tập tin nằm trong thư mục “%s”.\n" + +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "Có %d tập tin nằm trong thư mục “%s”.\n" + +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "Thông tin về tập tin “%s” (thư mục “%s”):\n" + +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "Tập tin:\n" + +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " Không có gì sẵn dùng cả.\n" + +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Kiểu MIME: “%s”\n" + +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Cỡ: %lu byte\n" + +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " Rộng: %i điểm ảnh\n" + +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " Cao: %i điểm ảnh\n" + +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Đã tải về: %s\n" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "có" + +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "không" + +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " Quyền hạn: " + +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "đọc/xóa" + +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "đọc" + +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "xóa" + +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "không gì cả" + +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " Giờ: %s" + +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "Ảnh mẫu:\n" + +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "Dữ liệu âm thanh:\n" + +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Kiểu MIME: “%s”\n" + +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " Cỡ: %lu byte\n" + +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " Đã tải về: %s\n" + +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "Không thể phân tích dữ liệu EXIF." + +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "Thẻ EXIF:" + +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "Thẻ" + +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "Giá trị" + +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "Dữ liệu EXIF chứa một ảnh mẫu (%i byte)." + +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "Trình gphoto2 đã được biên dịch mà không có sự hỗ trợ của thư viện EXIF." + +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "Số lượng máy ảnh được hỗ trợ: %i\n" + +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "Máy ảnh được hỗ trợ:\n" + +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t“%s” (THỬ)\n" + +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t“%s” (THỬ NGHIỆM)\n" + +# Variable: don't translate / Biến: đừng dịch +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t“%s”\n" + +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "Thiết bị đã tìm thấy: %i\n" + +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"Đường dẫn Mô tả\n" +"--------------------------------------------------------------\n" + +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "Mô hình" + +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "Cổng" + +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "Khả năng cho máy ảnh : %s\n" + +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "Hỗ trợ cổng nối tiếp : %s\n" + +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "Hỗ trợ USB : %s\n" + +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "Hỗ trợ tốc độ truyền :\n" + +# Variable: don't translate / Biến: đừng dịch +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "Tùy chọn chụp :\n" + +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : Ảnh\n" + +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : Phim\n" + +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : Âm thanh\n" + +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : Xem thử\n" + +# Variable: don't translate / Biến: đừng dịch +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : Chụp bằng bẫy\n" + +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : Trình điều khiển không hỗ trợ khả năng chụp\n" + +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "Hỗ trợ cấu hình : %s\n" + +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "Xóa bỏ các tập tin được chọn nằm trên máy ảnh: %s\n" + +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "Xóa bỏ mọi tập tin trên máy ảnh : %s\n" + +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "Hỗ trợ xem trước ảnh (dạng thu nhỏ): %s\n" + +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "Hỗ trợ tải tập tin lên : %s\n" + +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "Cổng phải có dạng như “serial:/dev/ttyS0” hay “usb:”, nhưng mà “%s” còn thiếu dấu hai chấm nên tôi đang đoán bạn có ý gì." + +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "Bạn đã chỉ ra một cổng (“%s”) mà không thể thấy. Hãy chỉ ra một của những cổng được tìm bởi lệnh “gphoto2 --list-ports” và kiểm tra xem lại bạn đã gõ đúng chính tả (tực là có tiền tố “serial:” hay “usb:”)." + +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "Thông tin về trình điều khiển máy ảnh:" + +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "Tóm tắt về máy ảnh:" + +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "Sổ tay máy ảnh:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "Bạn có thể chỉ ra tốc độ chỉ cho cổng nối tiếp thôi." + +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "Chuyển sang OS/2 bởi Bart van Leeuwen\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 phiên bản %s\n" +"\n" +"Tác quyền © 2000-%d Lutz Mueller và người khác\n" +"%s\n" +"Trình gphoto2 KHÔNG BẢO HÀNH GÌ CẢ,\n" +"với điều kiện được pháp luật cho phép.\n" +"Bạn có thể phân phối lại các bản sao của trình gphoto2\n" +"với điều kiện của Giấy Phép Công Cộng GNU (GPL).\n" +"Để tìm thông tin thêm về các vấn đề này, bạn hãy xem những tập tin tên\n" +"COPYING (sao chép).\n" +"\n" +"Phiên bản gphoto2 này có dùng các phiên bản phần mềm\n" +"và tùy chọn sau:\n" + +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "Không thể mở tập tin “movie.mjpg”." + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "Đang chụp vào “%s” các khung xem thử dưới dạng phim. Bấm Ctrl-C để hủy bỏ.\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "Đang chụp vào “%s” trong %d giây các khung xem thử dưới dạng phim.\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "Đang chụp vào “%2$s” %1$d khung xem thử dưới dạng phim.\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "Lỗi quay phim… Đang thoát." + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "Lỗi quay phim… Gặp dạng MIME không thể xử lý “%s”." + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Tổ hợp phím Ctrl-C đã được bấm… Đang thoát.\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "Quay phim đã hoàn tất (%d khung hình)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "Đợi dữ kiện từ máy ảnh. Bấm Ctrl-C để hủy bỏ.\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "Đang đợi %d khung ảnh từ máy ảnh. Bấm Ctrl-C để hủy bỏ.\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Đợi trong %d mi-li-giây cho sự kiện từ máy ảnh. Bấm Ctrl-C để hủy bỏ.\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "Đợi (trong %d giây) dữ kiện từ máy ảnh. Bấm Ctrl-C để hủy bỏ.\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "Đợi %d dữ kiện từ máy ảnh. Bấm Ctrl-C để hủy bỏ.\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "Đợi sự kiện %s từ máy ảnh. Bấm Ctrl-C để hủy bỏ.\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "đã thấy sự kiện, dừng đợi!\n" + +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "Không thể đặt thư mục." + +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "Không thể lấy ảnh." + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "libcanon.so có lỗi không?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "Không thể xóa bỏ ảnh." + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "Đang lấy thông tin cất giữ không được hỗ trợ cho máy ảnh này.\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "Đọc-Ghi" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "Chỉ-Đọc" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "Chỉ-đọc có xóa" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "Không rõ" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "ROM cố định" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "ROM rời" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "RAM cố định" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "RAM rời" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "Chưa xác định" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "Phẳng chung" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "Phân cấp Chung" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "Bố cục máy ảnh (DCM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "Đang đè lên mã hiệu sản phẩm/nhà bán USB 0x%x/0x%x bằng 0x%x/0x%x" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "LUÔN LUÔN HÃY GỒM NHỮNG DÒNG THEO ĐÂY KHI THÔNG BÁO LỖI CHO HỘP THƯ CHUNG:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s đã được biên dịch với những tùy chọn theo đây:" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "Không tìm thấy %s trong cây cấu hình." + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "Việc lấy giá trị của ô điều khiển chữ %s bị lỗi." + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "Việc lấy giá trị của ô điều khiển phạm vi %s bị lỗi" + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "Việc lấy giá trị của ô điều khiển bật/tắt %s bị lỗi" + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "Việc lấy giá trị của ô điều khiển ngày/giờ %s bị lỗi" + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "Dùng “now” như là thời gian hiện tại khi cài đặt.\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "Việc lấy giá trị của ô điều khiển chọn một %s bị lỗi" + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "Thuộc tính %s là chỉ-đọc." + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "Việc đặt giá trị của ô điều khiển chữ %s thành %s bị lỗi." + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "Giá trị %s được gửi qua không phải là giá trị với dấu chấm động." + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "Giá trị %f được gửi qua không phải nằm ở trong phạm vi đã ngờ %f - %f." + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "Việc đặt giá trị của ô điều khiển phạm vi %s thành %f bị lỗi." + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "tắt" + +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "sai" + +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "bật" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "đúng" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "Giá trị đã gửi qua %s không phải là giá trị bật/tắt hợp lệ." + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "Việc đặt giá trị %s của ô điều khiển bật/tắt %s bị lỗi." + +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "ngay" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "Giá trị đã gửi qua %s không phải là giờ hợp lệ, cũng không phải là số nguyên." + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "Việc đặt giờ mới của ô điều khiển ngày/giờ %s thành %s bị lỗi." + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "Không tìm thấy tùy chọn %s trong danh sách các tùy chọn." + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "Không thể cấu hình ô điều khiển %s." + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "Việc đặt giá trị cấu hình mới %s cho mục nhập cấu hình %s bị lỗi." + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "Ô điều khiển %s không có chỉ mục các sự chọn sẵn sàng. Hãy dùng “--set-config-value” để thay thế." + +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "Số tập tin sai. Bạn đã chỉ ra %i, nhưng chỉ có %i tập tin sẵn sàng nằm trong “%s” hay các thư mục con của nó. Hãy lấy một số tập tin hợp lệ từ danh sách tập tin trước tiên." + +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "Không có tập tin nằm trong thư mục “%s”." + +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "Số tập tin sai. Bạn đã chỉ ra %i, nhưng chỉ có 1 tập tin sẵn sàng nằm trong “%s” thôi." + +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "Số tập tin sai. Bạn đã chỉ ra %i, nhưng chỉ có %i tập tin sẵn sàng nằm trong “%s”. Hãy lấy một số tập tin hợp lệ từ danh sách tập tin trước tiên." + +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** Lỗi *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "Hãy bấm bất cứ phím nào để tiếp tục.\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "Không đủ bộ nhớ." + +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "Thao tác bị hủy bỏ" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "Tiếp tục" + +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "Thôi" + +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "Lỗi" + +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "Không thể đặt cấu hình:" + +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "Thoát" + +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "Lùi" + +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "Giờ: " + +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "Giá trị: " + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "Có" + +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "Không" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "Chỉ có khả năng đệm bằng số không những số trong tên tập tin với %%n." + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "Bạn không thể sử dụng khả năng đệm bằng số không kiểu “%%n” khi không có giá trị chính xác!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "Máy ảnh đã cung cấp một tên tập tin không có hậu tố: “%s”." + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "Định dạng không hợp lệ “%s” (lỗi tại vị trí %i)." + +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "Bỏ qua các tập tin sẵn có %s\n" + +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "Tập tin %s đã có. Ghi đè lên nó không? [y|n] (c|k) " + +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "Chỉ ra tên tập tin mới không? [y|n] (c|k) " + +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "Nhập tên tập tin mới: " + +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "Đang ghi tập tin với tên “%s”\n" + +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "Không đủ thẩm quyền" + +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "Không thể bấm chụp." + +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "Tập tin mới nằm tại vị trí “%s%s%s” trên máy ảnh\n" + +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "Đang giữ lại tập tin %s%s%s trên máy ảnh\n" + +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "Đang xóa bỏ tập tin “%s%s%s” trên máy ảnh\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "Sự kiện “FOLDER_ADDED” (thư mục được thêm) %s/%s xảy ra trong khi đợi nên bỏ qua.\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "Sự kiện “UNKNOWN” (không rõ) %s xảy ra trong khi đợi nên bỏ qua.\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "Gặp loại sự kiện không rõ %d trong khi đợi bóng đèn nháy nên bỏ qua.\n" + +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "Không thể lấy các khả năng?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "Chế độ khoảng thời gian được bật (thời gian: %dg).\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "Đang đợi SIGUSR1 để chụp.\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "Chế độ bóng đèn được bật (thời gian phơi nắng: %dgy).\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "Đang chụp khung #%d…\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "Đang chụp khung #%d/%d…\n" + +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "Không thể đặt chụp bóng đèn, kết quả %d." + +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "Không thể kết thúc chụp (chế độ bóng đèn)." + +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "Không thể làm sập bẫy chụp ảnh." + +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "Không thể chụp ảnh." + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "Việc chụp bị lỗi (lỗi tự động lấy nét?)…\n" + +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "Không thể chụp." + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "Đang đợi khe chụp kế tiếp %ld giây…\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "Do SIGUSR1 kích hoạt…\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "không ngủ (trễ %ld giây)\n" + +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "LỖI: " + +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"Đang bãi bỏ…\n" + +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "Bị bãi bỏ.\n" + +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"Đang hủy bỏ…\n" + +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "Hãy sử dụng cú pháp “a:b=c:d” để xử lý thiết bị USB nào được phát hiện như “a:b” thành “c:d” thay thế. “a b c d” nên là số dạng hệ thập lục phân bắt đầu với “0x”.\n" + +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "Trình gphoto2 đã được biên dịch không có khả năng hỗ trợ CDK." + +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "Thao tác bị hủy bỏ.\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** Lỗi: không tìm thấy máy ảnh. ***\n" +"\n" + +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** Lỗi (%i: “%s”) *** \n" +"\n" + +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"Để nhận thông điệp gỡ lỗi, hãy sử dụng tùy chọn “--debug”.\n" +"Thông điệp gỡ lỗi có thể sẽ giúp đỡ bạn giải quyết vấn đề.\n" +"Nếu bạn định gửi thông điệp lỗi hay gỡ lỗi cho hộp thư chung\n" +"nhà phát triển gphoto ,\n" +"trước khi gửi thông điệp, hãy chạy gphoto2 như theo sau đây:\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"Xin hãy chắc chắn là có đủ dấu trích dẫn bao xung quanh các tham số.\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "In ra toàn bộ trợ giúp về cách sử dụng chương trình" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "In ra trợ giúp ngắn về cách sử dụng chương trình" + +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "Bật gỡ lỗi" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "Đặt mức gỡ lỗi [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "Tên tập tin ghi thông tin gỡ lỗi" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "TÊN_TẬP_TIN" + +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "Xuất ít thông tin (mặc định là chi tiết)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "Văn lệnh móc vào cần chạy sau khi tải về, chụp, v.v.." + +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "Đặt cổng thiết bị" + +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "Đặt tốc độ truyền nối tiếp" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "TỐC-ĐỘ" + +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "Đặt mô hình máy ảnh" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "MÔ-HÌNH" + +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "Đè lên mã hiệu USB (chỉ dành cho người có kinh nghiệm)" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBID" + +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "Hiển thị phiên bản rồi thoát" + +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "Liệt kê các mô hình máy ảnh được hỗ trợ" + +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "Liệt kê các thiết bị cổng được hỗ trợ" + +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "Hiển thị các khả năng máy ảnh/trình điều khiển trong cơ sở dữ liệu libgphoto2" + +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "Cấu hình" + +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "Liệt kê cây cấu hình" + +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "Đổ đầy đủ cây cấu hình." + +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "Lấy giá trị cấu hình" + +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "Đặt giá trị cấu hình hoặc chỉ mục trong các sự chọn" + +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "Đặt chỉ mục giá trị cấu hình trong các sự chọn" + +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "Đặt giá trị cấu hình" + +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "Đặt lại cổng thiết bị" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "Giữ các ảnh trên máy ảnh sau chụp" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "Giữ các ảnh dạng RAW trên máy ảnh sau chụp" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "Xóa bỏ các ảnh trên máy ảnh sau chụp" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "Đợi sự kiện từ máy ảnh" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "SỐ LƯỢNG, GIÂY, MILI GIÂY hay CHUỖI KHỚP MẪU" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "Đợi (các) sự kiện từ máy ảnh và tải xuống ảnh mới" + +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "Chụp một ảnh xem thử nhanh" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "Hiển thị xem thử nhanh kiểu “Ascii Art”" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "Đặt thời gian phơi sáng bóng đèn, theo giây" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "GIÂY" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "Đặt tổng số khung cần chụp (mặc định là vô hạn)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "SỐ_LƯỢNG" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "Đặt thời gian giữa hai lần chụp tính bằng giây" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "Đặt lại thời gian giữa hai lần chụp khi nhận tin hiệu (mặc định=no không)" + +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "Chụp một ảnh" + +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "Nút bấm chụp của ảnh" + +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "Chụp một ảnh và tải nó về" + +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "Quay một phim" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "SỐ_LƯỢNG hay GIÂY" + +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "Ghi một trích đoạn âm thanh" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "Đợi màn chập được thả trên máy ảnh và tải về" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "Bẫy chụp ảnh" + +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "Liệt kê các thư mục nằm trong thư mục" + +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "Liệt kê các tập tin nằm trong thư mục" + +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "Tạo thư mục" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "TÊN_THƯ_MỤC" + +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "Gỡ bỏ thư mục" + +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "Hiển thị tổng số tập tin" + +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "Lấy các tập tin đưa ra trong phạm vi" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "VÙNG" + +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "Lấy các tập tin từ thư mục" + +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "Lấy các ảnh mẫu đưa ra trong phạm vi" + +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "Lấy các ảnh mẫu từ thư mục" + +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "Lấy siêu dữ liệu đưa ra trong phạm vi" + +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "Lấy toàn bộ siêu dữ liệu từ thư mục" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "Tải lên siêu dữ liệu về tập tin" + +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "Lấy dữ liệu thô đưa ra trong phạm vi" + +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "Lấy toàn bộ dữ liệu thô từ thư mục" + +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "Lấy dữ liệu âm thanh đưa ra trong phạm vi" + +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "Lấy toàn bộ dữ liệu âm thanh từ thư mục" + +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "Xóa bỏ các tập tin đưa ra trong phạm vi" + +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "Xóa bỏ tất cả các tập tin trong thư mục (tùy chọn --no-recurse được dùng mặc định)" + +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "Tải một tập tin lên máy ảnh" + +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "Chỉ định tên tập tin hay mẫu tên tập tin" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "MẪU_TÊN_TẬP_TIN" + +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "Chỉ định thư mục máy ảnh (mặc định là “/”)" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "THƯ_MỤC" + +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "Đệ qui (mặc định khi tải về)" + +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "Không đệ qui (mặc định khi xóa bỏ)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "Chỉ xử lý tập tin mới" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "Tự động ghi đè lên tập tin" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "Bỏ qua các tập tin sẵn có" + +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "Gửi tập tin cho thiết bị xuất chuẩn" + +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "In kích cỡ tập tin nằm trước dữ liệu" + +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "Liệt kê các máy ảnh được phát hiện tự động" + +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "Hiện thông tin EXIF của các ảnh JPEG" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "Hiển thị thông tin ảnh, như là chiều cao, rộng và thời gian chụp ảnh" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "Hiện bản tóm tắt máy ảnh" + +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "Hiện sổ tay trình điều khiển máy ảnh" + +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "Thông tin về sổ tay trình điều khiển máy ảnh" + +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "Hiện thông tin lưu trữ" + +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "Hệ vỏ gPhoto" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "Tùy chọn chung:" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "Tùy chọn lặt vặt (chưa sắp xếp):" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "Lấy thông tin về phần mềm và hệ thống chủ (không phải từ máy ảnh):" + +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "Chỉ định máy ảnh cần dùng:" + +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "Cấu hình máy ảnh và phần mềm:" + +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "Chụp ảnh từ hoặc trên máy ảnh" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "Tải xuống/lên và thao tác tập tin:" + +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"Mã hiệu ảnh phải là số hơn số không." + +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"Mã hiệu ảnh %i quá cao." + +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"Phạm vi phải được ngăn cách bằng dấu phẩy “,”." + +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"Phạm vi phải bắt đầu với một con số." + +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"Gặp ký tự không cần “%c”." + +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"Không cho phép có phạm vi giảm. Bạn đã chỉ ra một phạm vi từ %i đến %i." + +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** Lỗi (%i: “%s”) ***" + +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "Chuyển đổi sang một thư mục nằm trên máy ảnh" + +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "thư mục" + +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "Chuyển đổi sang một thư mục nằm trên đĩa cục bộ" + +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "Thoát khỏi hệ vỏ gPhoto" + +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "Tải về một tập tin" + +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[thư_mục/]tên_tập_tin" + +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "Tải lên một tập tin" + +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "Tải về một ảnh mẫu" + +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "Tải về dữ liệu thô" + +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "Xóa bỏ" + +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "Tạo thư mục" + +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "Gỡ bỏ thư mục" + +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "Hiển thị cách sử dụng lệnh" + +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[lệnh]" + +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "Liệt kê nội dung của thư mục hiện có" + +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[thư_mục/]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "Liệt kê các biến cấu hình" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "Lấy biến cấu hình" + +#: gphoto2/shell.c:146 +msgid "name" +msgstr "tên" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "Đặt biến cấu hình" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "tên=giá_trị" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "Đặt chỉ mục biến cấu hình" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "tên=chỉ_mục_giá_trị" + +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "Chụp một ảnh riêng lẻ" + +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "Chụp một ảnh riêng lẻ và tải nó về" + +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "Chụp một ảnh xem thử" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "Đợi một sự kiện" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "số lượng hoặc giây" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "Đợi chụp ảnh và tải xuống" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "Đợi sự kiện và các ảnh được chụp và tải xuống" + +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "Lệnh không hợp lệ." + +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "Lệnh “%s” cần một đối số." + +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "Đường dẫn không hợp lệ." + +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "Không tìm thấy thư mục chính." + +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "Không thể chuyển đổi sang thư mục cục bộ “%s”." + +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "Thư mục cục bộ bây giờ là “%s”." + +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "Thư mục máy chủ bây giờ là “%s”." + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "Lệnh đặt cấu hình “set-config” yêu cầu đối số thứ hai.\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "Lệnh đặt giá trị cấu hình “set-config-value” yêu cầu đối số thứ hai.\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "Lệnh đặt chỉ mục cấu hình “set-config-index” yêu cầu đối số thứ hai.\n" + +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "Không tìm thấy lệnh “%s”. Hãy sử dụng lệnh “help” (trợ giúp) để xem danh sách các lệnh sẵn có." + +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "Trợ giúp về “%s”:" + +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "Cách dùng:" + +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "Mô tả:" + +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* Những đối số nằm trong dấu ngoặc vuông [] là tùy chọn" + +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "Các lệnh có thể dùng:" + +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "Để xem trợ giúp về một lệnh nào đó, hãy gõ “help tên_lệnh”." + +#~ msgid "Show info" +#~ msgstr "Hiện thông tin" + +#~ msgid " Name: '%s'\n" +#~ msgstr " Tên: “%s”\n" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "Bạn không thể sử dụng “%%n” với tập tin không vĩnh cửu!" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/zh_CN.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/zh_CN.po new file mode 100644 index 00000000..b7618245 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/zh_CN.po @@ -0,0 +1,1834 @@ +# Simplified Chinese Translation. +# Copyright (C) 2000-2002 +# This file is distributed under the same license as the gphoto2 package. +# Wang Li , 2002 +# Ji ZhengYu , 2008, 2009, 2010, 2011, 2012, 2013 +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.1\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2013-01-27 21:10+0100\n" +"PO-Revision-Date: 2013-03-08 12:37+0800\n" +"Last-Translator: Ji ZhengYu \n" +"Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +# frontends/command-line/main.c:799 +#: gphoto2/actions.c:168 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "文件夹 “%s” 中文件的数量:%i\n" + +# frontends/command-line/actions.c:81 +#: gphoto2/actions.c:189 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "文件夹“%2$s”中有“%1$d”个文件夹。\n" + +# frontends/command-line/actions.c:115 +#: gphoto2/actions.c:238 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "文件夹“%s”中没有文件。\n" + +# frontends/command-line/actions.c:115 +#: gphoto2/actions.c:241 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "文件夹“%2$s”中有“%1$d”个文件。\n" + +# frontends/command-line/actions.c:139 +#: gphoto2/actions.c:263 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "文件“%s”(文件夹“%s”)的信息:\n" + +# frontends/command-line/actions.c:141 +#: gphoto2/actions.c:265 +#, c-format +msgid "File:\n" +msgstr "文件:\n" + +# frontends/command-line/actions.c:143 frontends/command-line/actions.c:177 +# frontends/command-line/actions.c:193 +#: gphoto2/actions.c:267 gphoto2/actions.c:299 gphoto2/actions.c:315 +#, c-format +msgid " None available.\n" +msgstr " 不可用。\n" + +# frontends/command-line/actions.c:148 frontends/command-line/actions.c:180 +#: gphoto2/actions.c:270 gphoto2/actions.c:302 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime 类型: “%s”\n" + +# frontends/command-line/actions.c:150 frontends/command-line/actions.c:182 +#: gphoto2/actions.c:272 gphoto2/actions.c:304 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " 大小: %lu 字节\n" + +# frontends/command-line/actions.c:152 frontends/command-line/actions.c:184 +#: gphoto2/actions.c:274 gphoto2/actions.c:306 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " 宽度: %i 像素\n" + +# frontends/command-line/actions.c:154 frontends/command-line/actions.c:186 +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " 高度: %i 像素\n" + +# frontends/command-line/actions.c:156 frontends/command-line/actions.c:188 +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Downloaded: %s\n" +msgstr " 已下载: %s\n" + +# frontends/command-line/actions.c:157 frontends/command-line/actions.c:189 +# frontends/command-line/actions.c:201 frontends/command-line/main.c:416 +# frontends/command-line/main.c:418 frontends/command-line/main.c:437 +# frontends/command-line/main.c:439 frontends/command-line/main.c:441 +# frontends/command-line/main.c:443 +#: gphoto2/actions.c:279 gphoto2/actions.c:311 gphoto2/actions.c:323 +#: gphoto2/actions.c:676 gphoto2/actions.c:678 gphoto2/actions.c:706 +#: gphoto2/actions.c:709 gphoto2/actions.c:712 gphoto2/actions.c:715 +#: gphoto2/actions.c:718 gphoto2/actions.c:1731 gphoto2/actions.c:1956 +msgid "yes" +msgstr "是" + +# frontends/command-line/actions.c:157 frontends/command-line/actions.c:189 +# frontends/command-line/actions.c:201 frontends/command-line/main.c:416 +# frontends/command-line/main.c:418 frontends/command-line/main.c:437 +# frontends/command-line/main.c:439 frontends/command-line/main.c:441 +# frontends/command-line/main.c:443 +#: gphoto2/actions.c:279 gphoto2/actions.c:311 gphoto2/actions.c:323 +#: gphoto2/actions.c:676 gphoto2/actions.c:678 gphoto2/actions.c:706 +#: gphoto2/actions.c:709 gphoto2/actions.c:712 gphoto2/actions.c:715 +#: gphoto2/actions.c:718 gphoto2/actions.c:1725 gphoto2/actions.c:1950 +msgid "no" +msgstr "否" + +# frontends/command-line/actions.c:159 +#: gphoto2/actions.c:281 +#, c-format +msgid " Permissions: " +msgstr " 权限:" + +# frontends/command-line/actions.c:162 +#: gphoto2/actions.c:284 +#, c-format +msgid "read/delete" +msgstr "读取/删除" + +# frontends/command-line/actions.c:164 +#: gphoto2/actions.c:286 +#, c-format +msgid "read" +msgstr "读取" + +# frontends/command-line/actions.c:166 +#: gphoto2/actions.c:288 +#, c-format +msgid "delete" +msgstr "删除" + +# frontends/command-line/actions.c:168 +#: gphoto2/actions.c:290 +#, c-format +msgid "none" +msgstr "无" + +# frontends/command-line/actions.c:172 +#: gphoto2/actions.c:294 +#, c-format +msgid " Time: %s" +msgstr " 时间: %s" + +# frontends/command-line/actions.c:175 +#: gphoto2/actions.c:297 +#, c-format +msgid "Thumbnail:\n" +msgstr "缩略图:\n" + +# frontends/command-line/actions.c:191 +#: gphoto2/actions.c:313 +#, c-format +msgid "Audio data:\n" +msgstr "音频数据:\n" + +# frontends/command-line/actions.c:196 +#: gphoto2/actions.c:318 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime 类型: “%s”\n" + +# frontends/command-line/actions.c:198 +#: gphoto2/actions.c:320 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " 大小: %lu 字节\n" + +# frontends/command-line/actions.c:200 +#: gphoto2/actions.c:322 +#, c-format +msgid " Downloaded: %s\n" +msgstr " 已下载:%s\n" + +# frontends/command-line/actions.c:322 +#: gphoto2/actions.c:498 +msgid "Could not parse EXIF data." +msgstr "无法解析 EXIF 数据。" + +# frontends/command-line/actions.c:326 +#: gphoto2/actions.c:502 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF 标记:" + +# frontends/command-line/actions.c:329 +#: gphoto2/actions.c:505 +msgid "Tag" +msgstr "标记" + +# frontends/command-line/actions.c:331 +#: gphoto2/actions.c:507 +msgid "Value" +msgstr "值" + +# frontends/command-line/actions.c:346 +#: gphoto2/actions.c:528 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF 数据中含有一幅缩略图 (%i 字节)。" + +# frontends/command-line/actions.c:355 +#: gphoto2/actions.c:537 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 编译时未包含对 EXIF 的支持。" + +# frontends/command-line/main.c:464 +#: gphoto2/actions.c:555 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "所支持的相机数:%i\n" + +# frontends/command-line/main.c:465 +#: gphoto2/actions.c:556 +#, c-format +msgid "Supported cameras:\n" +msgstr "已支持相机:\n" + +# frontends/command-line/main.c:476 +#: gphoto2/actions.c:569 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t“%s” (测试中)\n" + +# frontends/command-line/main.c:479 +#: gphoto2/actions.c:572 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t“%s” (实验项)\n" + +# frontends/command-line/main.c:483 +#: gphoto2/actions.c:577 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t“%s”\n" + +# frontends/command-line/main.c:548 +#: gphoto2/actions.c:621 +#, c-format +msgid "Devices found: %i\n" +msgstr "找到设备:%i\n" + +# frontends/command-line/main.c:549 +#: gphoto2/actions.c:622 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"路径 描述\n" +"--------------------------------------------------------------\n" + +# frontends/command-line/main.c:384 frontends/command-line/main.c:389 +#: gphoto2/actions.c:655 gphoto2/actions.c:660 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +# frontends/command-line/main.c:384 +#: gphoto2/actions.c:655 +msgid "Model" +msgstr "型号" + +# frontends/command-line/main.c:384 +#: gphoto2/actions.c:655 +msgid "Port" +msgstr "端口" + +# frontends/command-line/main.c:385 +#: gphoto2/actions.c:656 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +# frontends/command-line/main.c:413 +#: gphoto2/actions.c:674 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "相机功能 :%s\n" + +# frontends/command-line/main.c:415 +#: gphoto2/actions.c:675 +#, c-format +msgid "Serial port support : %s\n" +msgstr "串口支持 :%s\n" + +# frontends/command-line/main.c:417 +#: gphoto2/actions.c:677 +#, c-format +msgid "USB support : %s\n" +msgstr "USB 支持 :%s\n" + +# frontends/command-line/main.c:420 +#: gphoto2/actions.c:680 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "支持的传输速度 :\n" + +# frontends/command-line/main.c:423 +#: gphoto2/actions.c:682 +#, c-format +msgid " : %i\n" +msgstr " :%i\n" + +# frontends/command-line/main.c:427 +#: gphoto2/actions.c:685 +#, c-format +msgid "Capture choices :\n" +msgstr "捕获选项 :\n" + +# frontends/command-line/main.c:429 +#: gphoto2/actions.c:687 +#, c-format +msgid " : Image\n" +msgstr " :图像\n" + +# frontends/command-line/main.c:431 +#: gphoto2/actions.c:691 +#, c-format +msgid " : Video\n" +msgstr " :视频\n" + +# frontends/command-line/main.c:433 +#: gphoto2/actions.c:695 +#, c-format +msgid " : Audio\n" +msgstr " :音频\n" + +# frontends/command-line/main.c:435 +#: gphoto2/actions.c:699 +#, c-format +msgid " : Preview\n" +msgstr " :预览\n" + +# frontends/command-line/main.c:435 +#: gphoto2/actions.c:703 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " :设备不支持捕获功能\n" + +# frontends/command-line/main.c:436 +#: gphoto2/actions.c:705 +#, c-format +msgid "Configuration support : %s\n" +msgstr "支持配置 :%s\n" + +# frontends/command-line/main.c:438 +#: gphoto2/actions.c:707 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "删除相机中的所选文件 :%s\n" + +# frontends/command-line/main.c:438 +#: gphoto2/actions.c:710 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "删除相机中的所有文件 :%s\n" + +# frontends/command-line/main.c:440 +#: gphoto2/actions.c:713 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "支持文件预览 (缩略图):%s\n" + +# frontends/command-line/main.c:442 +#: gphoto2/actions.c:716 +#, c-format +msgid "File upload support : %s\n" +msgstr "文件上传支持 :%s\n" + +# frontends/command-line/main.c:586 +#: gphoto2/actions.c:733 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "端口必须是类似“serial:/dev/ttyS0”或“usb:”的形式,但“%s”缺少冒号,所以我将猜测您的意图。" + +# frontends/command-line/main.c:1318 +#: gphoto2/actions.c:767 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "无法找到您指定的端口 (“%s”)。请指定一个由“gphoto2 --list-ports”列出的端口并确信拼写正确 (例如,带有前缀“serial:”或“usb:”)。" + +# frontends/command-line/main.c:243 +#: gphoto2/actions.c:800 +#, c-format +msgid "About the camera driver:" +msgstr "关于相机驱动程序:" + +# frontends/command-line/main.c:1180 +#: gphoto2/actions.c:813 +#, c-format +msgid "Camera summary:" +msgstr "相机概要:" + +# frontends/command-line/main.c:1192 +#: gphoto2/actions.c:826 +#, c-format +msgid "Camera manual:" +msgstr "相机手册:" + +#: gphoto2/actions.c:843 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "您只能为串口指定速度。" + +# frontends/command-line/options.c:197 +#: gphoto2/actions.c:893 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "由 Bart van Leeuwen 移植到 OS/2\n" + +#: gphoto2/actions.c:897 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"版权所有 (C) 2000-%d Lutz Mueller 及其它\n" +"%s\n" +"在法律允许的范围内,gphoto2 没有担保。您可以按照\n" +"GNU 通用公共许可证的条款重新发行 gphoto2 的拷贝。\n" +"关于此事的更多信息,参见名为 COPYING 的文件。\n" +"\n" +"这个版本的 gphoto2 使用下列软件版本和选项:\n" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/actions.c:997 +msgid "Could not open 'movie.mjpg'." +msgstr "无法打开\"movie.mjpg\"。" + +#: gphoto2/actions.c:1004 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "保存预览窗口内容为影片 \"%s\"。按 Ctrl-C 退出。\n" + +#: gphoto2/actions.c:1008 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "将预览窗口的内容保存为 %2$d 秒的影片 \"%1$s\"。\n" + +#: gphoto2/actions.c:1013 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "将 %d 个预览窗口的内容保存为影片 \"%s\"。\n" + +#: gphoto2/actions.c:1023 +msgid "Movie capture error... Exiting." +msgstr "影片保存错误... 退出。" + +#: gphoto2/actions.c:1028 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "影片保存错误... 无法处理的 MIME 类型 \"%s\"。" + +#: gphoto2/actions.c:1035 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "按下了 Ctrl-C ... 退出。\n" + +#: gphoto2/actions.c:1049 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "视频捕获完成 ( %d 帧)\n" + +#: gphoto2/actions.c:1079 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "等待来自相机的事件。按 Ctrl-C 退出。\n" + +#: gphoto2/actions.c:1085 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "等待来自相机的 %d 帧。按 Ctrl-C 退出。\n" + +#: gphoto2/actions.c:1090 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "等待相机事件 %d 毫秒。按 Ctrl-C 退出。\n" + +#: gphoto2/actions.c:1095 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "等待相机事件 %d 秒。按 Ctrl-C 退出。\n" + +#: gphoto2/actions.c:1099 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "等待相机事件 %d 秒。按 Ctrl-C 退出。\n" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/actions.c:1163 gphoto2/main.c:746 +msgid "Could not set folder." +msgstr "无法设置文件夹。" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/actions.c:1169 gphoto2/main.c:753 +msgid "Could not get image." +msgstr "无法获得图像。" + +#: gphoto2/actions.c:1176 gphoto2/main.c:760 +msgid "Buggy libcanon.so?" +msgstr "libcanno.so 太多错误?" + +# frontends/command-line/shell.c:522 +#: gphoto2/actions.c:1186 gphoto2/main.c:772 +msgid "Could not delete image." +msgstr "无法删除图像。" + +#: gphoto2/actions.c:1210 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "正在获取此相机不支持的内存卡信息。\n" + +#: gphoto2/actions.c:1225 +#, c-format +msgid "Read-Write" +msgstr "读/写模式" + +#: gphoto2/actions.c:1228 +#, c-format +msgid "Read-Only" +msgstr "只读模式" + +#: gphoto2/actions.c:1231 +#, c-format +msgid "Read-only with delete" +msgstr "允许删除的只读模式" + +#: gphoto2/actions.c:1234 gphoto2/actions.c:1244 +#, c-format +msgid "Unknown" +msgstr "未知" + +#: gphoto2/actions.c:1247 +#, c-format +msgid "Fixed ROM" +msgstr "固态 ROM" + +#: gphoto2/actions.c:1250 +#, c-format +msgid "Removable ROM" +msgstr "可移动 ROM" + +#: gphoto2/actions.c:1253 +#, c-format +msgid "Fixed RAM" +msgstr "固态 RAM" + +#: gphoto2/actions.c:1256 +#, c-format +msgid "Removable RAM" +msgstr "可移动 RAM" + +#: gphoto2/actions.c:1266 +#, c-format +msgid "Undefined" +msgstr "未定义" + +#: gphoto2/actions.c:1269 +#, c-format +msgid "Generic Flat" +msgstr "正常(不分级)" + +#: gphoto2/actions.c:1272 +#, c-format +msgid "Generic Hierarchical" +msgstr "正常(分级)" + +#: gphoto2/actions.c:1275 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "相机设计(DCIM)" + +#: gphoto2/actions.c:1313 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "正以 0x%3$x/0x%4$x 覆盖 USB 生产商/产品 id 0x%1$x/0x%2$x" + +#: gphoto2/actions.c:1371 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "在将调试信息发送到邮件列表的时候总是包含下列行:" + +#: gphoto2/actions.c:1386 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "%s 编译时带有以下选项:" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/actions.c:1517 +#, c-format +msgid "%s not found in configuration tree." +msgstr "未在配置树中找到 %s。" + +#: gphoto2/actions.c:1566 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "取得 text 控件 %s 的值出错。" + +#: gphoto2/actions.c:1583 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "取得 range 控件 %s 的值出错。" + +#: gphoto2/actions.c:1595 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "取得 toggle 控件 %s 的值出错。" + +#: gphoto2/actions.c:1607 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "取得 date/time 控件 %s 的值出错。" + +#: gphoto2/actions.c:1637 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "取得 radio 控件 %s 的值出错。" + +#: gphoto2/actions.c:1681 +#, c-format +msgid "Property %s is read only." +msgstr "属性 %s 只读。" + +#: gphoto2/actions.c:1695 gphoto2/actions.c:1920 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "将 text 控件的值从 %s 改为 %s 出错。" + +#: gphoto2/actions.c:1705 gphoto2/actions.c:1930 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "传递的值 %s 不是一个浮点值。" + +#: gphoto2/actions.c:1710 gphoto2/actions.c:1935 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "传递的值 %f 不在所要的范围 %f - %f 内。" + +#: gphoto2/actions.c:1716 gphoto2/actions.c:1941 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "将 range 控件的值从 %s 改为 %f 出错。" + +#: gphoto2/actions.c:1725 gphoto2/actions.c:1950 +msgid "off" +msgstr "关" + +# frontends/command-line/actions.c:331 +#: gphoto2/actions.c:1726 gphoto2/actions.c:1951 +msgid "false" +msgstr "错误" + +# camlibs/polaroid/pdc700.c:169 camlibs/polaroid/pdc700.c:170 +#: gphoto2/actions.c:1731 gphoto2/actions.c:1956 +msgid "on" +msgstr "开" + +#: gphoto2/actions.c:1732 gphoto2/actions.c:1957 +msgid "true" +msgstr "正确" + +#: gphoto2/actions.c:1737 gphoto2/actions.c:1962 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "传递的值 %s 不是一个有效的布尔值。" + +#: gphoto2/actions.c:1743 gphoto2/actions.c:1968 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "设定 toggle 控件 %2$s 的值为 %1$s 出错。" + +#: gphoto2/actions.c:1756 gphoto2/actions.c:1981 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "传递的值 %s 既不是一个有效的时间也不是一个整数。" + +#: gphoto2/actions.c:1763 gphoto2/actions.c:1988 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "将 date/time 控件的时间变量从 %s 改为 %s 出错。" + +#: gphoto2/actions.c:1810 gphoto2/actions.c:1874 gphoto2/actions.c:2018 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "所选的 %s 在选择列表中未找到。" + +#: gphoto2/actions.c:1818 gphoto2/actions.c:2026 +#, c-format +msgid "The %s widget is not configurable." +msgstr "控件 %s 不可配置。" + +#: gphoto2/actions.c:1825 gphoto2/actions.c:1893 gphoto2/actions.c:2033 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "为配置选项 %2$s 设置新的值 %1$s 出错。" + +#: gphoto2/actions.c:1886 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "%s 控件无索引选择列表。用 --set-config-value 代替。 " + +# frontends/command-line/foreach.c:207 +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "错误的文件编号。您给出 %1$i,但在“%3$s”和它的子目录中只有 %2$i 个文件。请首先从文件列表中获取一个合法的文件编号。" + +# frontends/command-line/actions.c:111 frontends/command-line/foreach.c:228 +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "文件夹“%s”中没有文件。" + +# frontends/command-line/foreach.c:233 +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "错误的文件编号。您给出 %i,但在“%s”中只有一个文件。" + +# frontends/command-line/foreach.c:240 +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "错误的文件编号。您给出 %1$i,但在“%3$s”中只有 %2$i 个文件。请首先从文件列表中获取一个合法的文件编号。" + +# frontends/command-line/main.c:1753 +#: gphoto2/gp-params.c:62 +#, c-format +msgid "*** Error *** \n" +msgstr "*** 错误 *** \n" + +#: gphoto2/gp-params.c:237 +#, c-format +msgid "Press any key to continue.\n" +msgstr "请按任意键继续。\n" + +#: gphoto2/gp-params.c:259 +#, c-format +msgid "Not enough memory." +msgstr "没有足够内存。" + +# frontends/command-line/gphoto2-cmd-capture.c:218 +# libgphoto2/gphoto2-result.c:51 +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "操作已取消" + +# frontends/command-line/gphoto2-cmd-config.c:65 +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Continue" +msgstr "继续" + +# frontends/command-line/gphoto2-cmd-config.c:65 +#: gphoto2/gphoto2-cmd-config.c:55 +msgid "Cancel" +msgstr "取消" + +# frontends/command-line/gphoto2-cmd-config.c:71 +#: gphoto2/gphoto2-cmd-config.c:61 +msgid "Error" +msgstr "错误" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Could not set configuration:" +msgstr "无法设置配置:" + +# frontends/command-line/gphoto2-cmd-config.c:117 +#: gphoto2/gphoto2-cmd-config.c:107 +msgid "Exit" +msgstr "退出" + +# frontends/command-line/gphoto2-cmd-config.c:119 +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Back" +msgstr "退回" + +# frontends/command-line/gphoto2-cmd-config.c:263 +#: gphoto2/gphoto2-cmd-config.c:254 +msgid "Time: " +msgstr "时间:" + +# frontends/command-line/gphoto2-cmd-config.c:322 +# frontends/command-line/gphoto2-cmd-config.c:350 +# frontends/command-line/gphoto2-cmd-config.c:410 +# frontends/command-line/gphoto2-cmd-config.c:473 +#: gphoto2/gphoto2-cmd-config.c:313 gphoto2/gphoto2-cmd-config.c:341 +#: gphoto2/gphoto2-cmd-config.c:400 gphoto2/gphoto2-cmd-config.c:463 +msgid "Value: " +msgstr "值:" + +# camlibs/minolta/dimagev/dimagev.c:300 camlibs/minolta/dimagev/dimagev.c:302 +# camlibs/minolta/dimagev/dimagev.c:306 camlibs/minolta/dimagev/dimagev.c:309 +# frontends/command-line/gphoto2-cmd-config.c:372 +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "Yes" +msgstr "是" + +# camlibs/minolta/dimagev/dimagev.c:300 camlibs/minolta/dimagev/dimagev.c:302 +# camlibs/minolta/dimagev/dimagev.c:306 camlibs/minolta/dimagev/dimagev.c:309 +# frontends/command-line/gphoto2-cmd-config.c:372 +#: gphoto2/gphoto2-cmd-config.c:362 +msgid "No" +msgstr "否" + +#: gphoto2/main.c:209 +#, fuzzy, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "文件名中的零填充值只可能带 %%n。" + +#: gphoto2/main.c:218 +#, fuzzy, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "您无法使用一个不精确的 %%n 零填充值!" + +#: gphoto2/main.c:251 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "由照相机 (“%s”) 提供的文件名不含有后缀!" + +#: gphoto2/main.c:306 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "无效的格式“%s” (错误发生在 %i 字节)。" + +# frontends/command-line/main.c:859 +#: gphoto2/main.c:356 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "文件 %s 存在。覆盖?[y|n] " + +# frontends/command-line/main.c:870 +#: gphoto2/main.c:368 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "给出新文件名?[y|n]" + +# frontends/command-line/main.c:879 +#: gphoto2/main.c:380 +#, c-format +msgid "Enter new filename: " +msgstr "输入新文件名:" + +# frontends/command-line/main.c:884 +#: gphoto2/main.c:386 +#, c-format +msgid "Saving file as %s\n" +msgstr "正在将文件另存为 %s\n" + +# frontends/command-line/actions.c:159 +#: gphoto2/main.c:545 +msgid "Permission denied" +msgstr "权限不够" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:707 +msgid "Could not trigger capture." +msgstr "无法开启捕获。" + +# frontends/command-line/main.c:1122 +#: gphoto2/main.c:737 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "新文件在相机中 %s%s%s 处\n" + +# frontends/command-line/main.c:1122 +#: gphoto2/main.c:767 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "删除相机中的文件 %s%s%s \n" + +# frontends/command-line/main.c:1122 +#: gphoto2/main.c:777 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "保存文件 %s%s%s于相机中 \n" + +#: gphoto2/main.c:810 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "等待期间出现 FOLDER_ADDED %s/%s 目录添加事件,忽略...\n" + +#: gphoto2/main.c:820 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "等待期间出现 UNKNOW %s 未知事件,忽略...\n" + +#: gphoto2/main.c:826 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "B 门等待期间出现未知事件,类型 %d,忽略...\n" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:844 +msgid "Could not get capabilities?" +msgstr "无法取得功能?" + +#: gphoto2/main.c:852 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "允许T 门曝光(间隔: %d 秒)。\n" + +#: gphoto2/main.c:855 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "挂起等待 SIGUSR1 信号来捕获。\n" + +#: gphoto2/main.c:861 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "允许B 门曝光(曝光时间: %d 秒)。\n" + +#: gphoto2/main.c:874 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "正在捕获帧 #%d...\n" + +#: gphoto2/main.c:876 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "正在捕获帧 #%d/%d...\n" + +# frontends/command-line/actions.c:322 +#: gphoto2/main.c:886 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "无法中止捕获(B 门曝光),返回 %d。" + +# frontends/command-line/actions.c:322 +#: gphoto2/main.c:900 +msgid "Could not end capture (bulb mode)." +msgstr "无法中止捕获(B 门曝光)。" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:911 +msgid "Could not trigger image capture." +msgstr "无法开启图像捕获。" + +# frontends/command-line/actions.c:322 +#: gphoto2/main.c:917 +msgid "Could not capture image." +msgstr "无法捕获图像。" + +#: gphoto2/main.c:924 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "捕获失败(自动对焦问题?)...\n" + +# frontends/command-line/actions.c:322 +#: gphoto2/main.c:935 +msgid "Could not capture." +msgstr "无法捕获。" + +#: gphoto2/main.c:966 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "等待下一次捕获接口 %ld 秒...\n" + +#: gphoto2/main.c:975 gphoto2/main.c:1016 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "由 SIGUSR1 信号唤醒...\n" + +#: gphoto2/main.c:988 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "目前不休眠(进程安排 %ld 秒后)\n" + +# frontends/command-line/main.c:1614 +#: gphoto2/main.c:1120 +#, c-format +msgid "ERROR: " +msgstr "错误:" + +# frontends/command-line/main.c:1637 +#: gphoto2/main.c:1143 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"正在中断...\n" + +# frontends/command-line/main.c:1643 +#: gphoto2/main.c:1149 +#, c-format +msgid "Aborted.\n" +msgstr "已中断。\n" + +# frontends/command-line/main.c:1648 +#: gphoto2/main.c:1154 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"正在取消...\n" + +# frontends/command-line/main.c:637 +#: gphoto2/main.c:1301 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "使用诸如 a:b=c:d 的形式将探测为 a:b 的 USB 设备处理为 c:d。a b c d 应为以“0x”开始的十六进制数。\n" + +# frontends/command-line/actions.c:355 +#: gphoto2/main.c:1469 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 编译时没有包含对 CDK 的支持。" + +# frontends/command-line/main.c:1750 +#: gphoto2/main.c:1704 +#, c-format +msgid "Operation cancelled.\n" +msgstr "操作已取消。\n" + +#: gphoto2/main.c:1708 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** 错误: 未找到相机。 ***\n" +"\n" + +# frontends/command-line/main.c:1753 +#: gphoto2/main.c:1710 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** 错误 (%i:“%s”) *** \n" +"\n" + +# frontends/command-line/main.c:1759 +#: gphoto2/main.c:1715 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"关于调试信息,请使用 --debug 选项。\n" +"调试信息可能会帮助您找到问题的解决办法。\n" +"如果您打算将任何错误或调试信息发送到 gphoto 的\n" +" 开发者邮件列表 中,\n" +"请按以下方式运行 gphoto2:\n" +"\n" + +#: gphoto2/main.c:1736 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "请确保参数用引号括起。\n" + +#: gphoto2/main.c:1803 +msgid "Print complete help message on program usage" +msgstr "打印有关程序用法的全部帮助信息" + +#: gphoto2/main.c:1805 +msgid "Print short message on program usage" +msgstr "打印有关程序用法的简短帮助信息" + +# frontends/command-line/main.c:187 +#: gphoto2/main.c:1807 +msgid "Turn on debugging" +msgstr "开始调试" + +#: gphoto2/main.c:1809 +msgid "Name of file to write debug info to" +msgstr "将要写入调试信息的文件名" + +#: gphoto2/main.c:1809 gphoto2/main.c:1814 gphoto2/main.c:1820 +#: gphoto2/main.c:1942 +msgid "FILENAME" +msgstr "文件名" + +# frontends/command-line/main.c:189 +#: gphoto2/main.c:1811 +msgid "Quiet output (default=verbose)" +msgstr "最少信息输出 (默认为大量)" + +#: gphoto2/main.c:1813 +msgid "Hook script to call after downloads, captures, etc." +msgstr "下载、捕获等操作结束后的所调用的脚本。" + +# frontends/command-line/main.c:203 +#: gphoto2/main.c:1820 +msgid "Specify device port" +msgstr "指定设备端口" + +# frontends/command-line/main.c:204 +#: gphoto2/main.c:1822 +msgid "Specify serial transfer speed" +msgstr "指定串行传输速度" + +#: gphoto2/main.c:1822 +msgid "SPEED" +msgstr "速度" + +# frontends/command-line/main.c:205 +#: gphoto2/main.c:1824 +msgid "Specify camera model" +msgstr "指定相机型号" + +#: gphoto2/main.c:1824 +msgid "MODEL" +msgstr "型号" + +# frontends/command-line/main.c:207 +#: gphoto2/main.c:1826 +msgid "(expert only) Override USB IDs" +msgstr "(仅适于专家) 覆盖 USB ID" + +#: gphoto2/main.c:1826 +msgid "USBIDs" +msgstr "USBIDs" + +# frontends/command-line/main.c:193 +#: gphoto2/main.c:1832 +msgid "Display version and exit" +msgstr "显示版本号并退出" + +# frontends/command-line/main.c:195 +#: gphoto2/main.c:1834 +msgid "List supported camera models" +msgstr "列举支持的相机型号" + +# frontends/command-line/main.c:197 +#: gphoto2/main.c:1836 +msgid "List supported port devices" +msgstr "列举支持的端口设备" + +# frontends/command-line/main.c:210 +#: gphoto2/main.c:1838 +msgid "Display camera/driver abilities" +msgstr "显示相机/设备的功能" + +# frontends/command-line/main.c:231 +#: gphoto2/main.c:1845 +msgid "Configure" +msgstr "配置" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:1848 +msgid "List configuration tree" +msgstr "列出配置树" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:1850 +msgid "Dump full configuration tree" +msgstr "列出所有配置" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:1852 +msgid "Get configuration value" +msgstr "获取配置值:" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:1854 +msgid "Set configuration value or index in choices" +msgstr "在选项中设置配置值或索引号" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:1856 +msgid "Set configuration value index in choices" +msgstr "在选项中设置配置值索引" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:1858 +msgid "Set configuration value" +msgstr "设置配置值" + +#: gphoto2/main.c:1864 +msgid "Keep images on camera after capturing" +msgstr "捕获后将图像留在相机中" + +#: gphoto2/main.c:1866 +msgid "Remove images from camera after capturing" +msgstr "捕获后将图像从相机中删除" + +#: gphoto2/main.c:1868 +msgid "Wait for event(s) from camera" +msgstr "等待来自相机的事件" + +#: gphoto2/main.c:1868 gphoto2/main.c:1870 gphoto2/main.c:1877 +#: gphoto2/main.c:1893 +msgid "COUNT" +msgstr "数目" + +#: gphoto2/main.c:1870 +msgid "Wait for event(s) from the camera and download new images" +msgstr "等待相机事件并下载新图片" + +# frontends/command-line/main.c:233 +#: gphoto2/main.c:1873 +msgid "Capture a quick preview" +msgstr "获取一个快速预览" + +#: gphoto2/main.c:1875 +msgid "Set bulb exposure time in seconds" +msgstr "设定B 门曝光时间(以秒为单位)" + +#: gphoto2/main.c:1875 gphoto2/main.c:1879 +msgid "SECONDS" +msgstr "秒" + +#: gphoto2/main.c:1877 +msgid "Set number of frames to capture (default=infinite)" +msgstr "设置要捕捉的帧数(默认为全部)" + +#: gphoto2/main.c:1879 +msgid "Set capture interval in seconds" +msgstr "设置捕捉间隔(以秒为单位)" + +#: gphoto2/main.c:1881 +msgid "Reset capture interval on signal (default=no)" +msgstr "重置信号的捕捉间隔(默认为不重置)" + +# frontends/command-line/main.c:234 +#: gphoto2/main.c:1883 +msgid "Capture an image" +msgstr "捕捉一幅图像" + +# frontends/command-line/main.c:234 +#: gphoto2/main.c:1885 +msgid "Trigger capture of an image" +msgstr "引发图像捕捉" + +# frontends/command-line/main.c:234 +#: gphoto2/main.c:1887 +msgid "Capture an image and download it" +msgstr "捕捉一幅图像并下载" + +# frontends/command-line/main.c:235 +#: gphoto2/main.c:1889 +msgid "Capture a movie" +msgstr "拍摄一段电影" + +#: gphoto2/main.c:1889 +msgid "COUNT or SECONDS" +msgstr "COUNT 或 SECONDS" + +# frontends/command-line/main.c:236 +#: gphoto2/main.c:1891 +msgid "Capture an audio clip" +msgstr "捕捉一个音频片段" + +#: gphoto2/main.c:1893 +msgid "Wait for shutter release on the camera and download" +msgstr "等待松开相机上的快门再下载" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:1895 +msgid "Trigger image capture" +msgstr "开启图像捕获。" + +# frontends/command-line/main.c:214 +#: gphoto2/main.c:1901 +msgid "List folders in folder" +msgstr "列出文件夹中的文件夹" + +# frontends/command-line/main.c:215 +#: gphoto2/main.c:1903 +msgid "List files in folder" +msgstr "列出文件夹中的文件" + +# frontends/command-line/main.c:216 +#: gphoto2/main.c:1905 +msgid "Create a directory" +msgstr "创建目录" + +#: gphoto2/main.c:1905 gphoto2/main.c:1907 +msgid "DIRNAME" +msgstr "目录名" + +# frontends/command-line/main.c:217 +#: gphoto2/main.c:1907 +msgid "Remove a directory" +msgstr "删除目录" + +# frontends/command-line/main.c:218 +#: gphoto2/main.c:1909 +msgid "Display number of files" +msgstr "显示文件的数量" + +# frontends/command-line/main.c:219 +#: gphoto2/main.c:1911 +msgid "Get files given in range" +msgstr "获取给定范围的文件" + +#: gphoto2/main.c:1911 gphoto2/main.c:1915 gphoto2/main.c:1920 +#: gphoto2/main.c:1927 gphoto2/main.c:1933 gphoto2/main.c:1938 +msgid "RANGE" +msgstr "范围" + +# frontends/command-line/main.c:220 +#: gphoto2/main.c:1913 +msgid "Get all files from folder" +msgstr "从文件夹中获取所有文件" + +# frontends/command-line/main.c:221 +#: gphoto2/main.c:1915 +msgid "Get thumbnails given in range" +msgstr "获取给定范围的缩略图" + +# frontends/command-line/main.c:222 +#: gphoto2/main.c:1918 +msgid "Get all thumbnails from folder" +msgstr "从文件夹中获取所有缩略图" + +# frontends/command-line/main.c:223 +#: gphoto2/main.c:1920 +msgid "Get metadata given in range" +msgstr "获取给定范围的元数据" + +# frontends/command-line/main.c:224 +#: gphoto2/main.c:1922 +msgid "Get all metadata from folder" +msgstr "从文件夹中获取所有元数据" + +#: gphoto2/main.c:1924 +msgid "Upload metadata for file" +msgstr "上传文件的元数据" + +# frontends/command-line/main.c:223 +#: gphoto2/main.c:1927 +msgid "Get raw data given in range" +msgstr "获取给定范围的原始数据" + +# frontends/command-line/main.c:224 +#: gphoto2/main.c:1930 +msgid "Get all raw data from folder" +msgstr "从文件夹中获取所有原始数据" + +# frontends/command-line/main.c:225 +#: gphoto2/main.c:1933 +msgid "Get audio data given in range" +msgstr "获取给定范围的音频数据" + +# frontends/command-line/main.c:226 +#: gphoto2/main.c:1936 +msgid "Get all audio data from folder" +msgstr "从文件夹中获取所有音频数据" + +# frontends/command-line/main.c:227 +#: gphoto2/main.c:1938 +msgid "Delete files given in range" +msgstr "删除给定范围中的文件" + +# frontends/command-line/main.c:228 +#: gphoto2/main.c:1940 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "删除文件夹中的所有文件(默认选项 --no-recurse)" + +# frontends/command-line/main.c:229 +#: gphoto2/main.c:1942 +msgid "Upload a file to camera" +msgstr "将一个文件上载到相机" + +# frontends/command-line/main.c:206 +#: gphoto2/main.c:1944 +msgid "Specify a filename or filename pattern" +msgstr "指定文件名或是文件名匹配模式" + +#: gphoto2/main.c:1944 +msgid "FILENAME_PATTERN" +msgstr "FILENAME_PATTERN" + +# frontends/command-line/main.c:211 +#: gphoto2/main.c:1946 +msgid "Specify camera folder (default=\"/\")" +msgstr "指定相机文件夹 (默认为 “/”)" + +#: gphoto2/main.c:1946 +msgid "FOLDER" +msgstr "文件夹" + +# frontends/command-line/main.c:212 +#: gphoto2/main.c:1948 +msgid "Recursion (default for download)" +msgstr "递归 (下载时默认)" + +# frontends/command-line/main.c:213 +#: gphoto2/main.c:1950 +msgid "No recursion (default for deletion)" +msgstr "不递归 (删除时默认)" + +#: gphoto2/main.c:1952 +msgid "Process new files only" +msgstr "仅处理新文件" + +#: gphoto2/main.c:1954 +msgid "Overwrite files without asking" +msgstr "覆盖文件而不询问" + +# frontends/command-line/main.c:198 +#: gphoto2/main.c:1960 +msgid "Send file to stdout" +msgstr "将文件发送到标准输出" + +# frontends/command-line/main.c:199 +#: gphoto2/main.c:1962 +msgid "Print filesize before data" +msgstr "在数据前面打印文件大小" + +# frontends/command-line/main.c:200 +#: gphoto2/main.c:1964 +msgid "List auto-detected cameras" +msgstr "列举可以自动检测的相机" + +# frontends/command-line/main.c:238 frontends/command-line/shell.c:127 +#: gphoto2/main.c:1968 gphoto2/shell.c:138 +msgid "Show EXIF information" +msgstr "显示 EXIF 信息" + +# frontends/command-line/main.c:240 frontends/command-line/shell.c:123 +#: gphoto2/main.c:1971 gphoto2/shell.c:132 +msgid "Show info" +msgstr "显示信息" + +#: gphoto2/main.c:1973 +msgid "Show summary" +msgstr "显示概要" + +# frontends/command-line/main.c:242 +#: gphoto2/main.c:1975 +msgid "Show camera driver manual" +msgstr "显示相机驱动程序手册" + +# frontends/command-line/main.c:243 +#: gphoto2/main.c:1977 +msgid "About the camera driver manual" +msgstr "关于相机驱动程序手册" + +# frontends/command-line/main.c:238 frontends/command-line/shell.c:127 +#: gphoto2/main.c:1979 +msgid "Show storage information" +msgstr "显示内存卡信息" + +# frontends/command-line/main.c:244 +#: gphoto2/main.c:1981 +msgid "gPhoto shell" +msgstr "gPhoto shell" + +#: gphoto2/main.c:1987 +msgid "Common options" +msgstr "一般选项" + +#: gphoto2/main.c:1989 +msgid "Miscellaneous options (unsorted)" +msgstr "杂项(未排序)" + +#: gphoto2/main.c:1991 +msgid "Get information on software and host system (not from the camera)" +msgstr "获取软件和主系统的信息(不来自相机)" + +# frontends/command-line/main.c:205 +#: gphoto2/main.c:1993 +msgid "Specify the camera to use" +msgstr "指定要用的相机" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:1995 +msgid "Camera and software configuration" +msgstr "相机和软件配置" + +# frontends/command-line/shell.c:112 +#: gphoto2/main.c:1997 +msgid "Capture an image from or on the camera" +msgstr "从相机中捕捉一幅图像" + +#: gphoto2/main.c:1999 +msgid "Downloading, uploading and manipulating files" +msgstr "正在下载/上传/操作文件" + +# frontends/command-line/range.c:122 frontends/command-line/range.c:176 +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"图像 IDs 必须是一个大于零的数。" + +# frontends/command-line/range.c:128 frontends/command-line/range.c:182 +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"图像 ID %i 太大。" + +# frontends/command-line/range.c:144 +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"范围必须由“,”分隔。" + +# frontends/command-line/range.c:158 +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"范围应以数字开头。" + +# frontends/command-line/range.c:198 +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"意外字符“%c”。" + +# frontends/command-line/range.c:221 +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"不允许缩小范围。您指定了一个从 %i 到 %i 的范围。" + +# frontends/command-line/shell.c:73 +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** 错误 (%i:“%s”) ***" + +# frontends/command-line/shell.c:112 +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "进入相机中的目录" + +# frontends/command-line/shell.c:113 frontends/command-line/shell.c:115 +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "目录" + +# frontends/command-line/shell.c:114 +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "进入本地驱动器中的目录" + +# frontends/command-line/shell.c:116 frontends/command-line/shell.c:134 +# frontends/command-line/shell.c:135 +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "退出 gPhoto shell" + +# frontends/command-line/shell.c:117 +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "下载一个文件" + +# frontends/command-line/shell.c:117 frontends/command-line/shell.c:120 +# frontends/command-line/shell.c:122 frontends/command-line/shell.c:124 +# frontends/command-line/shell.c:125 frontends/command-line/shell.c:128 +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[目录/]文件" + +# frontends/command-line/shell.c:117 +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "上传一个文件" + +# frontends/command-line/shell.c:119 +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "下载一幅缩略图" + +# frontends/command-line/shell.c:121 +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "下载原始数据" + +# frontends/command-line/shell.c:125 +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "删除" + +# frontends/command-line/main.c:216 +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "创建目录" + +# frontends/command-line/main.c:217 +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "删除目录" + +# frontends/command-line/shell.c:130 frontends/command-line/shell.c:136 +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "显示命令用法" + +# frontends/command-line/shell.c:131 frontends/command-line/shell.c:136 +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[命令]" + +# frontends/command-line/shell.c:132 +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "列出当前目录的内容" + +# frontends/command-line/shell.c:133 +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[目录]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "列出配置变量" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "获取配置变量" + +# frontends/command-line/main.c:216 frontends/command-line/main.c:217 +#: gphoto2/shell.c:146 +msgid "name" +msgstr "名称" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "设置配置变量" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "名称=值" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "设置配置变量索引" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "名称=值索引" + +# frontends/command-line/main.c:234 +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "捕捉单幅图像" + +# frontends/command-line/main.c:234 +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "捕捉单幅图像并下载" + +# frontends/command-line/main.c:234 +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "捕捉上一幅图像" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "等待事件..." + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "次数或是秒数" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "等待捕获图像并下载" + +# frontends/command-line/main.c:234 +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "等待事件及捕捉图像并下载" + +# frontends/command-line/shell.c:414 +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "非法命令。" + +# frontends/command-line/shell.c:423 +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "命令“%s”需要一个参数。" + +# frontends/command-line/shell.c:476 +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "非法路径。" + +# frontends/command-line/shell.c:522 +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "无法找到家目录。" + +# frontends/command-line/shell.c:530 +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "无法进入本地目录“%s”。" + +# frontends/command-line/shell.c:533 +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "本地目录为“%s”。" + +# frontends/command-line/shell.c:564 +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "远程目录为“%s”。" + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config 需要一个附加的参数。\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value 需要附带参数。\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index 需要附带参数。\n" + +# frontends/command-line/shell.c:743 +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "未找到“%s”命令。用“help”获取可用的命令列表。" + +# frontends/command-line/shell.c:750 +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "关于“%s”的求助信息:" + +# frontends/command-line/shell.c:752 +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "用法:" + +# frontends/command-line/shell.c:756 +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "描述:" + +# frontends/command-line/shell.c:758 +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "所有出现在方括号 [] 中的参数是可选的" + +# frontends/command-line/shell.c:779 +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "可用的命令:" + +# frontends/command-line/shell.c:784 +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "为得到特定命令的求助信息,输入“help 命令名”。" + +# frontends/command-line/actions.c:146 +#~ msgid " Name: '%s'\n" +#~ msgstr " 名称: “%s”\n" + +#~ msgid "You cannot use '%%n' in combination with non-persistent files!" +#~ msgstr "您不能把“%%n”同非永久文件一起使用!" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#~ msgid "Could not get filename (bulb mode)." +#~ msgstr "无法获取文件名(B 门曝光)。" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#~ msgid "Could not close camera connection." +#~ msgstr "无法断开相机连接。" + +#~ msgid "Sleeping for %d second(s)...\n" +#~ msgstr "休眠 %d 秒...\n" + +#~ msgid "New file %s/%s, downloading...\n" +#~ msgstr "新文件 %s/%s,正在下载...\n" + +# camlibs/polaroid/pdc700.c:167 +#~ msgid "filename" +#~ msgstr "文件名" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/po/zh_TW.po b/lib/hardware/sensors/gphoto/gphoto2-master/po/zh_TW.po new file mode 100644 index 00000000..97b7e99f --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/po/zh_TW.po @@ -0,0 +1,1867 @@ +# Traditional Chinese Messages for the gphoto2. +# Copyright (C) 2002, 05, 06 Free Software Foundation, Inc. +# This file is distributed under the same license as the gphoto2 package. +# Wang Li , 2002. +# Wei-Lun Chao , 2005, 2006, 2013, 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: gphoto2 2.5.9\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-11-18 22:19+0100\n" +"PO-Revision-Date: 2018-06-23 18:06+0800\n" +"Last-Translator: Yi-Jyun Pan \n" +"Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +# frontends/command-line/main.c:799 +#: gphoto2/actions.c:174 +#, c-format +msgid "Number of files in folder '%s': %i\n" +msgstr "資料夾「%s」中檔案的數量: %i\n" + +# frontends/command-line/actions.c:81 +#: gphoto2/actions.c:195 +#, c-format +msgid "There is %d folder in folder '%s'.\n" +msgid_plural "There are %d folders in folder '%s'.\n" +msgstr[0] "資料夾「%2$s」中有 %1$d 個資料夾。\n" + +# frontends/command-line/actions.c:115 +#: gphoto2/actions.c:244 +#, c-format +msgid "There is no file in folder '%s'.\n" +msgstr "資料夾「%s」中沒有檔案。\n" + +# frontends/command-line/actions.c:115 +#: gphoto2/actions.c:247 +#, c-format +msgid "There is %d file in folder '%s'.\n" +msgid_plural "There are %d files in folder '%s'.\n" +msgstr[0] "資料夾「%2$s」中有 %1$d 個檔案。\n" + +# frontends/command-line/actions.c:139 +#: gphoto2/actions.c:269 +#, c-format +msgid "Information on file '%s' (folder '%s'):\n" +msgstr "關於檔案「%s」(資料夾「%s」)的資訊: \n" + +# frontends/command-line/actions.c:141 +#: gphoto2/actions.c:271 +#, c-format +msgid "File:\n" +msgstr "檔案: \n" + +# frontends/command-line/actions.c:143 frontends/command-line/actions.c:177 +# frontends/command-line/actions.c:193 +#: gphoto2/actions.c:273 gphoto2/actions.c:305 gphoto2/actions.c:321 +#, c-format +msgid " None available.\n" +msgstr " 不可用。\n" + +# frontends/command-line/actions.c:148 frontends/command-line/actions.c:180 +#: gphoto2/actions.c:276 gphoto2/actions.c:308 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime 類型: 「%s」\n" + +# frontends/command-line/actions.c:150 frontends/command-line/actions.c:182 +#: gphoto2/actions.c:278 gphoto2/actions.c:310 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " 大小: %lu 位元組\n" + +# frontends/command-line/actions.c:152 frontends/command-line/actions.c:184 +#: gphoto2/actions.c:280 gphoto2/actions.c:312 +#, c-format +msgid " Width: %i pixel(s)\n" +msgstr " 寬度: %i 像素\n" + +# frontends/command-line/actions.c:154 frontends/command-line/actions.c:186 +#: gphoto2/actions.c:282 gphoto2/actions.c:314 +#, c-format +msgid " Height: %i pixel(s)\n" +msgstr " 高度: %i 像素\n" + +# frontends/command-line/actions.c:156 frontends/command-line/actions.c:188 +#: gphoto2/actions.c:284 gphoto2/actions.c:316 +#, c-format +msgid " Downloaded: %s\n" +msgstr " 已下載: %s\n" + +# frontends/command-line/actions.c:157 frontends/command-line/actions.c:189 +# frontends/command-line/actions.c:201 frontends/command-line/main.c:416 +# frontends/command-line/main.c:418 frontends/command-line/main.c:437 +# frontends/command-line/main.c:439 frontends/command-line/main.c:441 +# frontends/command-line/main.c:443 +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "yes" +msgstr "是" + +# frontends/command-line/actions.c:157 frontends/command-line/actions.c:189 +# frontends/command-line/actions.c:201 frontends/command-line/main.c:416 +# frontends/command-line/main.c:418 frontends/command-line/main.c:437 +# frontends/command-line/main.c:439 frontends/command-line/main.c:441 +# frontends/command-line/main.c:443 +#: gphoto2/actions.c:285 gphoto2/actions.c:317 gphoto2/actions.c:329 +#: gphoto2/actions.c:682 gphoto2/actions.c:684 gphoto2/actions.c:716 +#: gphoto2/actions.c:719 gphoto2/actions.c:722 gphoto2/actions.c:725 +#: gphoto2/actions.c:728 gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "no" +msgstr "否" + +# frontends/command-line/actions.c:159 +#: gphoto2/actions.c:287 +#, c-format +msgid " Permissions: " +msgstr " 存取權限: " + +# frontends/command-line/actions.c:162 +#: gphoto2/actions.c:290 +#, c-format +msgid "read/delete" +msgstr "讀取/刪除" + +# frontends/command-line/actions.c:164 +#: gphoto2/actions.c:292 +#, c-format +msgid "read" +msgstr "讀取" + +# frontends/command-line/actions.c:166 +#: gphoto2/actions.c:294 +#, c-format +msgid "delete" +msgstr "刪除" + +# frontends/command-line/actions.c:168 +#: gphoto2/actions.c:296 +#, c-format +msgid "none" +msgstr "無" + +# frontends/command-line/actions.c:172 +#: gphoto2/actions.c:300 +#, c-format +msgid " Time: %s" +msgstr " 時間: %s" + +# frontends/command-line/actions.c:175 +#: gphoto2/actions.c:303 +#, c-format +msgid "Thumbnail:\n" +msgstr "縮圖: \n" + +# frontends/command-line/actions.c:191 +#: gphoto2/actions.c:319 +#, c-format +msgid "Audio data:\n" +msgstr "音訊資料: \n" + +# frontends/command-line/actions.c:196 +#: gphoto2/actions.c:324 +#, c-format +msgid " Mime type: '%s'\n" +msgstr " Mime 類型: 「%s」\n" + +# frontends/command-line/actions.c:198 +#: gphoto2/actions.c:326 +#, c-format +msgid " Size: %lu byte(s)\n" +msgstr " 大小: %lu 位元組\n" + +# frontends/command-line/actions.c:200 +#: gphoto2/actions.c:328 +#, c-format +msgid " Downloaded: %s\n" +msgstr " 已下載: %s\n" + +# frontends/command-line/actions.c:322 +#: gphoto2/actions.c:504 +msgid "Could not parse EXIF data." +msgstr "無法解析 EXIF 資料。" + +# frontends/command-line/actions.c:326 +#: gphoto2/actions.c:508 +#, c-format +msgid "EXIF tags:" +msgstr "EXIF 標記:" + +# frontends/command-line/actions.c:329 +#: gphoto2/actions.c:511 +msgid "Tag" +msgstr "標記" + +# frontends/command-line/actions.c:331 +#: gphoto2/actions.c:513 +msgid "Value" +msgstr "值" + +# frontends/command-line/actions.c:346 +#: gphoto2/actions.c:534 +#, c-format +msgid "EXIF data contains a thumbnail (%i bytes)." +msgstr "EXIF 資料含有一幅縮圖 (%i 位元組)。" + +# frontends/command-line/actions.c:355 +#: gphoto2/actions.c:543 +msgid "gphoto2 has been compiled without EXIF support." +msgstr "gphoto2 編譯時沒有包含對 EXIF 的支援。" + +# frontends/command-line/main.c:464 +#: gphoto2/actions.c:561 +#, c-format +msgid "Number of supported cameras: %i\n" +msgstr "支援相機數量 : %i\n" + +# frontends/command-line/main.c:465 +#: gphoto2/actions.c:562 +#, c-format +msgid "Supported cameras:\n" +msgstr "已支援相機: \n" + +# frontends/command-line/main.c:476 +#: gphoto2/actions.c:575 +#, c-format +msgid "\t\"%s\" (TESTING)\n" +msgstr "\t\"%s\" (正在測試)\n" + +# frontends/command-line/main.c:479 +#: gphoto2/actions.c:578 +#, c-format +msgid "\t\"%s\" (EXPERIMENTAL)\n" +msgstr "\t\"%s\" (正在試用)\n" + +# frontends/command-line/main.c:483 +#: gphoto2/actions.c:583 +#, c-format +msgid "\t\"%s\"\n" +msgstr "\t\"%s\"\n" + +# frontends/command-line/main.c:548 +#: gphoto2/actions.c:627 +#, c-format +msgid "Devices found: %i\n" +msgstr "找到裝置: %i\n" + +# frontends/command-line/main.c:549 +#: gphoto2/actions.c:628 +#, c-format +msgid "" +"Path Description\n" +"--------------------------------------------------------------\n" +msgstr "" +"路徑 描述\n" +"--------------------------------------------------------------\n" + +# frontends/command-line/main.c:384 frontends/command-line/main.c:389 +#: gphoto2/actions.c:661 gphoto2/actions.c:666 +#, c-format +msgid "%-30s %-16s\n" +msgstr "%-30s %-16s\n" + +# frontends/command-line/main.c:384 +#: gphoto2/actions.c:661 +msgid "Model" +msgstr "型號" + +# frontends/command-line/main.c:384 +#: gphoto2/actions.c:661 +msgid "Port" +msgstr "輸出入埠" + +# frontends/command-line/main.c:385 +#: gphoto2/actions.c:662 +#, c-format +msgid "----------------------------------------------------------\n" +msgstr "----------------------------------------------------------\n" + +# frontends/command-line/main.c:413 +#: gphoto2/actions.c:680 +#, c-format +msgid "Abilities for camera : %s\n" +msgstr "相機功能 : %s\n" + +# frontends/command-line/main.c:415 +#: gphoto2/actions.c:681 +#, c-format +msgid "Serial port support : %s\n" +msgstr "輸出入埠支援 : %s\n" + +# frontends/command-line/main.c:417 +#: gphoto2/actions.c:683 +#, c-format +msgid "USB support : %s\n" +msgstr "USB 支援 : %s\n" + +# frontends/command-line/main.c:420 +#: gphoto2/actions.c:686 +#, c-format +msgid "Transfer speeds supported :\n" +msgstr "支援的傳輸速度 : \n" + +# frontends/command-line/main.c:423 +#: gphoto2/actions.c:688 +#, c-format +msgid " : %i\n" +msgstr " : %i\n" + +# frontends/command-line/main.c:427 +#: gphoto2/actions.c:691 +#, c-format +msgid "Capture choices :\n" +msgstr "擷取選項 : \n" + +# frontends/command-line/main.c:429 +#: gphoto2/actions.c:693 +#, c-format +msgid " : Image\n" +msgstr " : 圖像\n" + +# frontends/command-line/main.c:431 +#: gphoto2/actions.c:697 +#, c-format +msgid " : Video\n" +msgstr " : 視訊\n" + +# frontends/command-line/main.c:433 +#: gphoto2/actions.c:701 +#, c-format +msgid " : Audio\n" +msgstr " : 音訊\n" + +# frontends/command-line/main.c:435 +#: gphoto2/actions.c:705 +#, c-format +msgid " : Preview\n" +msgstr " : 預覽\n" + +# frontends/command-line/main.c:423 +#: gphoto2/actions.c:709 +#, c-format +msgid " : Trigger Capture\n" +msgstr " : 觸發擷取\n" + +# frontends/command-line/main.c:435 +#: gphoto2/actions.c:713 +#, c-format +msgid " : Capture not supported by the driver\n" +msgstr " : 驅動程式不支援擷取\n" + +# frontends/command-line/main.c:436 +#: gphoto2/actions.c:715 +#, c-format +msgid "Configuration support : %s\n" +msgstr "支援配置 : %s\n" + +# frontends/command-line/main.c:438 +#: gphoto2/actions.c:717 +#, c-format +msgid "Delete selected files on camera : %s\n" +msgstr "刪除相機內所選檔案 : %s\n" + +# frontends/command-line/main.c:438 +#: gphoto2/actions.c:720 +#, c-format +msgid "Delete all files on camera : %s\n" +msgstr "刪除相機內所有檔案 : %s\n" + +# frontends/command-line/main.c:440 +#: gphoto2/actions.c:723 +#, c-format +msgid "File preview (thumbnail) support : %s\n" +msgstr "支援檔案預覽 (縮圖): %s\n" + +# frontends/command-line/main.c:442 +#: gphoto2/actions.c:726 +#, c-format +msgid "File upload support : %s\n" +msgstr "檔案上載支援 : %s\n" + +# frontends/command-line/main.c:586 +#: gphoto2/actions.c:743 +#, c-format +msgid "Ports must look like 'serial:/dev/ttyS0' or 'usb:', but '%s' is missing a colon so I am going to guess what you mean." +msgstr "輸出入埠必須是類似「serial:/dev/ttyS0」或「usb:」的形式,但「%s」缺少冒號,所以我將猜測您的意思。" + +# frontends/command-line/main.c:1318 +#: gphoto2/actions.c:777 +#, c-format +msgid "The port you specified ('%s') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:')." +msgstr "無法找到您指定的輸出入埠 (「%s」)。請指定一個由「gphoto2 --list-ports」列出的輸出入埠並確信拼寫正確 (例如,帶有前置文字「serial:」或「usb:」)。" + +# frontends/command-line/main.c:243 +#: gphoto2/actions.c:810 +#, c-format +msgid "About the camera driver:" +msgstr "關於相機驅動程序:" + +# frontends/command-line/main.c:1180 +#: gphoto2/actions.c:823 +#, c-format +msgid "Camera summary:" +msgstr "相機概要:" + +# frontends/command-line/main.c:1192 +#: gphoto2/actions.c:836 +#, c-format +msgid "Camera manual:" +msgstr "相機手冊:" + +#: gphoto2/actions.c:853 +#, c-format +msgid "You can only specify speeds for serial ports." +msgstr "您只能為輸出入埠指定速度。" + +# frontends/command-line/options.c:197 +#: gphoto2/actions.c:903 +msgid "OS/2 port by Bart van Leeuwen\n" +msgstr "由 Bart van Leeuwen 移植到 OS/2\n" + +#: gphoto2/actions.c:907 +#, c-format +msgid "" +"gphoto2 %s\n" +"\n" +"Copyright (c) 2000-%d Lutz Mueller and others\n" +"%s\n" +"gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may\n" +"redistribute copies of gphoto2 under the terms of the GNU General Public\n" +"License. For more information about these matters, see the files named COPYING.\n" +"\n" +"This version of gphoto2 is using the following software versions and options:\n" +msgstr "" +"gphoto2 %s\n" +"\n" +"著作權©2000-%d Lutz Mueller 和其他人\n" +"%s\n" +"gphoto2 在法律所允許的範圍內不隨附任何擔保。您可以\n" +"遵循的 GNU 一般公用授權,再次散布 gphoto2 的複本。\n" +"要獲得更多相關資訊,請參看名為 COPYING 的檔案。\n" +"\n" +"這個版本的 gphoto2 使用了下列軟體版本和選項:\n" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/actions.c:1020 +msgid "Could not open 'movie.mjpg'." +msgstr "無法開啟 movie.mjpg 。" + +#: gphoto2/actions.c:1027 +#, c-format +msgid "Capturing preview frames as movie to '%s'. Press Ctrl-C to abort.\n" +msgstr "擷取預覽影格為 %s 電影。按下 Ctrl-C 以放棄。\n" + +#: gphoto2/actions.c:1031 +#, c-format +msgid "Capturing preview frames as movie to '%s' for %d seconds.\n" +msgstr "擷取預覽影格 %2$d 秒為 %1$s 電影。\n" + +#: gphoto2/actions.c:1036 +#, c-format +msgid "Capturing %d preview frames as movie to '%s'.\n" +msgstr "擷取 %d 預覽影格為 %s 電影。\n" + +#: gphoto2/actions.c:1046 +msgid "Movie capture error... Exiting." +msgstr "電影擷取錯誤…離開中。" + +#: gphoto2/actions.c:1051 +#, c-format +msgid "Movie capture error... Unhandled MIME type '%s'." +msgstr "電影擷取錯誤…無法處理的 MIME 型態 %s。" + +#: gphoto2/actions.c:1058 +#, c-format +msgid "Ctrl-C pressed ... Exiting.\n" +msgstr "Ctrl-C 已按下…離開中。\n" + +#: gphoto2/actions.c:1072 +#, c-format +msgid "Movie capture finished (%d frames)\n" +msgstr "電影擷取完成 (%d 影格)\n" + +#: gphoto2/actions.c:1102 +#, c-format +msgid "Waiting for events from camera. Press Ctrl-C to abort.\n" +msgstr "等待來自相機的事件。按下 Ctrl-C 以放棄。\n" + +#: gphoto2/actions.c:1108 +#, c-format +msgid "Waiting for %d frames from the camera. Press Ctrl-C to abort.\n" +msgstr "等待來自相機的 %d 影格。按下 Ctrl-C 以放棄。\n" + +#: gphoto2/actions.c:1113 +#, c-format +msgid "Waiting for %d milliseconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "等待來自相機的 %d 毫秒事件。按下 Ctrl-C 以放棄。\n" + +#: gphoto2/actions.c:1118 +#, c-format +msgid "Waiting for %d seconds for events from camera. Press Ctrl-C to abort.\n" +msgstr "等待來自相機的 %d 秒事件。按下 Ctrl-C 以放棄。\n" + +#: gphoto2/actions.c:1121 +#, c-format +msgid "Waiting for %d events from camera. Press Ctrl-C to abort.\n" +msgstr "等待來自相機的 %d 事件。按下 Ctrl-C 以放棄。\n" + +#: gphoto2/actions.c:1125 +#, c-format +msgid "Waiting for %s event from camera. Press Ctrl-C to abort.\n" +msgstr "等待來自相機的 %s 事件。按下 Ctrl-C 以放棄。\n" + +#: gphoto2/actions.c:1169 gphoto2/actions.c:1183 gphoto2/actions.c:1199 +#: gphoto2/actions.c:1237 gphoto2/actions.c:1245 +#, c-format +msgid "event found, stopping wait!\n" +msgstr "已找到事件,停止等待!\n" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/actions.c:1209 gphoto2/main.c:834 +msgid "Could not set folder." +msgstr "無法設定資料夾。" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/actions.c:1215 gphoto2/main.c:849 +msgid "Could not get image." +msgstr "無法取得圖像。" + +#: gphoto2/actions.c:1222 gphoto2/main.c:856 +msgid "Buggy libcanon.so?" +msgstr "有錯誤的 libcanon.so?" + +#: gphoto2/actions.c:1232 gphoto2/main.c:868 +msgid "Could not delete image." +msgstr "無法刪除圖像。" + +#: gphoto2/actions.c:1264 +#, c-format +msgid "Getting storage information not supported for this camera.\n" +msgstr "不支援提取這個相機的貯藏體資訊。\n" + +#: gphoto2/actions.c:1279 +#, c-format +msgid "Read-Write" +msgstr "可讀可寫" + +#: gphoto2/actions.c:1282 +#, c-format +msgid "Read-Only" +msgstr "唯讀" + +#: gphoto2/actions.c:1285 +#, c-format +msgid "Read-only with delete" +msgstr "唯讀與刪除" + +#: gphoto2/actions.c:1288 gphoto2/actions.c:1298 +#, c-format +msgid "Unknown" +msgstr "不明" + +#: gphoto2/actions.c:1301 +#, c-format +msgid "Fixed ROM" +msgstr "固定的唯讀記憶體" + +#: gphoto2/actions.c:1304 +#, c-format +msgid "Removable ROM" +msgstr "可移除的唯讀記憶體" + +#: gphoto2/actions.c:1307 +#, c-format +msgid "Fixed RAM" +msgstr "固定的記憶體" + +#: gphoto2/actions.c:1310 +#, c-format +msgid "Removable RAM" +msgstr "可移除的記憶體" + +#: gphoto2/actions.c:1320 +#, c-format +msgid "Undefined" +msgstr "未定義" + +#: gphoto2/actions.c:1323 +#, c-format +msgid "Generic Flat" +msgstr "通用扁平式" + +#: gphoto2/actions.c:1326 +#, c-format +msgid "Generic Hierarchical" +msgstr "通用階層式" + +#: gphoto2/actions.c:1329 +#, c-format +msgid "Camera layout (DCIM)" +msgstr "相機版面配置 (DCIM)" + +#: gphoto2/actions.c:1367 +#, c-format +msgid "Overriding USB vendor/product id 0x%x/0x%x with 0x%x/0x%x" +msgstr "將 USB 供應商/產品 id 0x%x/0x%x 以 0x%x/0x%x 覆寫" + +#: gphoto2/actions.c:1435 +msgid "ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:" +msgstr "在將除錯資訊發送到郵遞論壇的時候總是包含下述各列:" + +#: gphoto2/actions.c:1450 +#, c-format +msgid "%s has been compiled with the following options:" +msgstr "已經利用下列選項編譯 %s:" + +#: gphoto2/actions.c:1581 +#, c-format +msgid "%s not found in configuration tree." +msgstr "在樹狀設定圖中無法找到 %s。" + +#: gphoto2/actions.c:1630 +#, c-format +msgid "Failed to retrieve value of text widget %s." +msgstr "從文字視窗元件 %s 中取值時失敗。" + +#: gphoto2/actions.c:1647 +#, c-format +msgid "Failed to retrieve values of range widget %s." +msgstr "從範圍視窗元件 %s 中取值時失敗。" + +#: gphoto2/actions.c:1659 +#, c-format +msgid "Failed to retrieve values of toggle widget %s." +msgstr "從切換視窗元件 %s 中取值時失敗。" + +#: gphoto2/actions.c:1671 +#, c-format +msgid "Failed to retrieve values of date/time widget %s." +msgstr "從日期/時間視窗元件 %s 中取值時失敗。" + +#: gphoto2/actions.c:1680 +msgid "Use 'now' as the current time when setting.\n" +msgstr "使用 now 於設定時做為目前時間。\n" + +#: gphoto2/actions.c:1702 +#, c-format +msgid "Failed to retrieve values of radio widget %s." +msgstr "從單選視窗元件 %s 中取值時失敗。" + +#: gphoto2/actions.c:1746 +#, c-format +msgid "Property %s is read only." +msgstr "內容 %s 唯讀。" + +#: gphoto2/actions.c:1760 gphoto2/actions.c:1997 +#, c-format +msgid "Failed to set the value of text widget %s to %s." +msgstr "將文字視窗元件 %s 值設為 %s 時失敗。" + +#: gphoto2/actions.c:1770 gphoto2/actions.c:2007 +#, c-format +msgid "The passed value %s is not a floating point value." +msgstr "所傳遞的值 %s 並非一個浮點值。" + +#: gphoto2/actions.c:1775 gphoto2/actions.c:2012 +#, c-format +msgid "The passed value %f is not within the expected range %f - %f." +msgstr "所傳遞的值 %f 並非位於預期的範圍 %f - %f 之中。" + +#: gphoto2/actions.c:1781 gphoto2/actions.c:2018 +#, c-format +msgid "Failed to set the value of range widget %s to %f." +msgstr "將範圍視窗元件 %s 值設為 %f 時失敗。" + +#: gphoto2/actions.c:1790 gphoto2/actions.c:2027 +msgid "off" +msgstr "關" + +# frontends/command-line/actions.c:331 +#: gphoto2/actions.c:1791 gphoto2/actions.c:2028 +msgid "false" +msgstr "假" + +# camlibs/polaroid/pdc700.c:169 camlibs/polaroid/pdc700.c:170 +#: gphoto2/actions.c:1796 gphoto2/actions.c:2033 +msgid "on" +msgstr "開" + +#: gphoto2/actions.c:1797 gphoto2/actions.c:2034 +msgid "true" +msgstr "真" + +#: gphoto2/actions.c:1802 gphoto2/actions.c:2039 +#, c-format +msgid "The passed value %s is not a valid toggle value." +msgstr "所傳遞的值 %s 並非一個有效的切換值。" + +#: gphoto2/actions.c:1808 gphoto2/actions.c:2045 +#, c-format +msgid "Failed to set values %s of toggle widget %s." +msgstr "將切換視窗元件 %s 值設為 %s 時失敗。" + +# frontends/command-line/actions.c:157 frontends/command-line/actions.c:189 +# frontends/command-line/actions.c:201 frontends/command-line/main.c:416 +# frontends/command-line/main.c:418 frontends/command-line/main.c:437 +# frontends/command-line/main.c:439 frontends/command-line/main.c:441 +# frontends/command-line/main.c:443 +#: gphoto2/actions.c:1820 +msgid "now" +msgstr "現在" + +#: gphoto2/actions.c:1832 gphoto2/actions.c:2058 +#, c-format +msgid "The passed value %s is neither a valid time nor an integer." +msgstr "所傳遞的值 %s 並非一個有效的時間,亦非一個整數。" + +#: gphoto2/actions.c:1840 gphoto2/actions.c:2065 +#, c-format +msgid "Failed to set new time of date/time widget %s to %s." +msgstr "將日期/時間視窗元件 %s 值設為 %s 時失敗。" + +#: gphoto2/actions.c:1887 gphoto2/actions.c:1951 gphoto2/actions.c:2095 +#, c-format +msgid "Choice %s not found within list of choices." +msgstr "在選擇清單之內找不到選項 %s。" + +#: gphoto2/actions.c:1895 gphoto2/actions.c:2103 +#, c-format +msgid "The %s widget is not configurable." +msgstr "視窗元件 %s 不可設定。" + +#: gphoto2/actions.c:1902 gphoto2/actions.c:1970 gphoto2/actions.c:2110 +#, c-format +msgid "Failed to set new configuration value %s for configuration entry %s." +msgstr "將單選視窗元件 %s 值設為 %s 時失敗。" + +#: gphoto2/actions.c:1963 +#, c-format +msgid "The %s widget has no indexed list of choices. Use --set-config-value instead." +msgstr "%s 視窗元件沒有任何索引過的選擇清單。使用 --set-config-value 做為替代。" + +# frontends/command-line/foreach.c:207 +#: gphoto2/foreach.c:260 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s' or its subfolders. Please obtain a valid file number from a file listing first." +msgstr "錯誤的檔案編號。您指定 %1$i,但在「%3$s」和它的子目錄中只有 %2$i 個檔案。請首先從檔案列表中獲取一個合法的檔案編號。" + +# frontends/command-line/actions.c:111 frontends/command-line/foreach.c:228 +#: gphoto2/foreach.c:285 +#, c-format +msgid "There are no files in folder '%s'." +msgstr "資料夾「%s」中沒有檔案。" + +# frontends/command-line/foreach.c:233 +#: gphoto2/foreach.c:291 +#, c-format +msgid "Bad file number. You specified %i, but there is only 1 file available in '%s'." +msgstr "錯誤的檔案編號。您指定 %i,但在「%s」中只有一個檔案。" + +# frontends/command-line/foreach.c:240 +#: gphoto2/foreach.c:299 +#, c-format +msgid "Bad file number. You specified %i, but there are only %i files available in '%s'. Please obtain a valid file number from a file listing first." +msgstr "錯誤的檔案編號。您指定 %1$i,但在「%3$s」中只有 %2$i 個檔案。請先從檔案列表中獲取一個合法的檔案編號。" + +# frontends/command-line/main.c:1753 +#: gphoto2/gp-params.c:66 +#, c-format +msgid "*** Error *** \n" +msgstr "*** 錯誤 *** \n" + +#: gphoto2/gp-params.c:241 +#, c-format +msgid "Press any key to continue.\n" +msgstr "按任何鍵以繼續。\n" + +#: gphoto2/gp-params.c:263 +#, c-format +msgid "Not enough memory." +msgstr "記憶體不足。" + +# frontends/command-line/gphoto2-cmd-capture.c:218 +# libgphoto2/gphoto2-result.c:51 +#: gphoto2/gphoto2-cmd-capture.c:211 +msgid "Operation cancelled" +msgstr "操作已取消" + +# frontends/command-line/gphoto2-cmd-config.c:65 +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Continue" +msgstr "繼續" + +# frontends/command-line/gphoto2-cmd-config.c:65 +#: gphoto2/gphoto2-cmd-config.c:57 +msgid "Cancel" +msgstr "取消" + +# frontends/command-line/gphoto2-cmd-config.c:71 +#: gphoto2/gphoto2-cmd-config.c:63 +msgid "Error" +msgstr "錯誤" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/gphoto2-cmd-config.c:65 +msgid "Could not set configuration:" +msgstr "無法設定配置:" + +# frontends/command-line/gphoto2-cmd-config.c:117 +#: gphoto2/gphoto2-cmd-config.c:109 +msgid "Exit" +msgstr "離開" + +# frontends/command-line/gphoto2-cmd-config.c:119 +#: gphoto2/gphoto2-cmd-config.c:111 +msgid "Back" +msgstr "退回" + +# frontends/command-line/gphoto2-cmd-config.c:263 +#: gphoto2/gphoto2-cmd-config.c:256 +msgid "Time: " +msgstr "時間: " + +# frontends/command-line/gphoto2-cmd-config.c:322 +# frontends/command-line/gphoto2-cmd-config.c:350 +# frontends/command-line/gphoto2-cmd-config.c:410 +# frontends/command-line/gphoto2-cmd-config.c:473 +#: gphoto2/gphoto2-cmd-config.c:315 gphoto2/gphoto2-cmd-config.c:343 +#: gphoto2/gphoto2-cmd-config.c:402 gphoto2/gphoto2-cmd-config.c:465 +msgid "Value: " +msgstr "值: " + +# camlibs/minolta/dimagev/dimagev.c:300 camlibs/minolta/dimagev/dimagev.c:302 +# camlibs/minolta/dimagev/dimagev.c:306 camlibs/minolta/dimagev/dimagev.c:309 +# frontends/command-line/gphoto2-cmd-config.c:372 +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "Yes" +msgstr "是" + +# camlibs/minolta/dimagev/dimagev.c:300 camlibs/minolta/dimagev/dimagev.c:302 +# camlibs/minolta/dimagev/dimagev.c:306 camlibs/minolta/dimagev/dimagev.c:309 +# frontends/command-line/gphoto2-cmd-config.c:372 +#: gphoto2/gphoto2-cmd-config.c:364 +msgid "No" +msgstr "否" + +#: gphoto2/main.c:224 +#, c-format +msgid "Zero padding numbers in file names is only possible with %%n." +msgstr "檔案名稱中含有加零的數字只有與 %%n 時才可能。" + +#: gphoto2/main.c:233 +#, c-format +msgid "You cannot use %%n zero padding without a precision value!" +msgstr "您不能使用 %%n 加零而不與永久值一起使用!" + +#: gphoto2/main.c:266 +#, c-format +msgid "The filename provided by the camera ('%s') does not contain a suffix!" +msgstr "由相機 (「%s」) 提供的檔案名不含有後置文字!" + +#: gphoto2/main.c:335 +#, c-format +msgid "Invalid format '%s' (error at position %i)." +msgstr "無效的格式「%s」(錯誤發生在 %i 位元組)。" + +# frontends/command-line/main.c:884 +#: gphoto2/main.c:390 gphoto2/main.c:595 +#, c-format +msgid "Skip existing file %s\n" +msgstr "跳過已存在的檔案 %s\n" + +# frontends/command-line/main.c:859 +#: gphoto2/main.c:402 +#, c-format +msgid "File %s exists. Overwrite? [y|n] " +msgstr "檔案 %s 存在。要覆蓋?[y|n] " + +# frontends/command-line/main.c:870 +#: gphoto2/main.c:414 +#, c-format +msgid "Specify new filename? [y|n] " +msgstr "指定新檔案名?[y|n]" + +# frontends/command-line/main.c:879 +#: gphoto2/main.c:426 +#, c-format +msgid "Enter new filename: " +msgstr "輸入新檔案名: " + +# frontends/command-line/main.c:884 +#: gphoto2/main.c:432 +#, c-format +msgid "Saving file as %s\n" +msgstr "正在將檔案另存為 %s\n" + +# frontends/command-line/actions.c:159 +#: gphoto2/main.c:633 +msgid "Permission denied" +msgstr "權限被拒" + +# frontends/command-line/actions.c:322 +#: gphoto2/main.c:795 +msgid "Could not trigger capture." +msgstr "無法觸發擷取。" + +# frontends/command-line/main.c:1122 +#: gphoto2/main.c:825 +#, c-format +msgid "New file is in location %s%s%s on the camera\n" +msgstr "新檔案在相機中 %s%s%s 處\n" + +# frontends/command-line/main.c:1122 +#: gphoto2/main.c:842 gphoto2/main.c:873 +#, c-format +msgid "Keeping file %s%s%s on the camera\n" +msgstr "保持檔案 %s%s%s 於相機\n" + +# frontends/command-line/main.c:1122 +#: gphoto2/main.c:863 +#, c-format +msgid "Deleting file %s%s%s on the camera\n" +msgstr "刪除相機中 %s%s%s 檔案\n" + +#: gphoto2/main.c:906 +#, c-format +msgid "Event FOLDER_ADDED %s/%s during wait, ignoring.\n" +msgstr "事件 FOLDER_ADDED %s/%s 於等待期間,將它忽略。\n" + +#: gphoto2/main.c:916 +#, c-format +msgid "Event UNKNOWN %s during wait, ignoring.\n" +msgstr "事件不明 %s 於等待期間,將它忽略。\n" + +#: gphoto2/main.c:922 +#, c-format +msgid "Unknown event type %d during bulb wait, ignoring.\n" +msgstr "於燈泡等待期間發生不明事件類型 %d,將它忽略。\n" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:940 +msgid "Could not get capabilities?" +msgstr "無法獲得能力?" + +#: gphoto2/main.c:948 +#, c-format +msgid "Time-lapse mode enabled (interval: %ds).\n" +msgstr "開啟曠時模式 (間隔: %d 秒)。\n" + +#: gphoto2/main.c:951 +#, c-format +msgid "Standing by waiting for SIGUSR1 to capture.\n" +msgstr "待命以擷取 SIGUSR1。\n" + +#: gphoto2/main.c:957 +#, c-format +msgid "Bulb mode enabled (exposure time: %ds).\n" +msgstr "燈泡模式已啟用 (曝光時間:%ds)。\n" + +#: gphoto2/main.c:970 +#, c-format +msgid "Capturing frame #%d...\n" +msgstr "擷取影格 #%d 中…\n" + +#: gphoto2/main.c:972 +#, c-format +msgid "Capturing frame #%d/%d...\n" +msgstr "擷取影格 #%d/%d 中…\n" + +# frontends/command-line/actions.c:322 +#: gphoto2/main.c:982 +#, c-format +msgid "Could not set bulb capture, result %d." +msgstr "無法設定燈泡擷取,結果 %d。" + +# frontends/command-line/actions.c:322 +#: gphoto2/main.c:996 +msgid "Could not end capture (bulb mode)." +msgstr "無法結束擷取 (燈泡模式)。" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:1009 +msgid "Could not trigger image capture." +msgstr "無法觸發圖像擷取。" + +# frontends/command-line/actions.c:322 +#: gphoto2/main.c:1016 +msgid "Could not capture image." +msgstr "無法擷取圖像。" + +#: gphoto2/main.c:1023 +#, c-format +msgid "Capture failed (auto-focus problem?)...\n" +msgstr "擷取失敗 (自動對焦的問題?)…\n" + +# frontends/command-line/actions.c:322 +#: gphoto2/main.c:1034 +msgid "Could not capture." +msgstr "無法擷取。" + +#: gphoto2/main.c:1066 +#, c-format +msgid "Waiting for next capture slot %ld seconds...\n" +msgstr "等待下一個擷取插槽 %ld 秒…\n" + +#: gphoto2/main.c:1075 gphoto2/main.c:1116 +#, c-format +msgid "Awakened by SIGUSR1...\n" +msgstr "被 SIGUSR1 所喚醒…\n" + +#: gphoto2/main.c:1088 +#, c-format +msgid "not sleeping (%ld seconds behind schedule)\n" +msgstr "無法暫停 (排程之後 %ld 秒)\n" + +# frontends/command-line/main.c:1614 +#: gphoto2/main.c:1231 +#, c-format +msgid "ERROR: " +msgstr "錯誤: " + +# frontends/command-line/main.c:1637 +#: gphoto2/main.c:1254 +#, c-format +msgid "" +"\n" +"Aborting...\n" +msgstr "" +"\n" +"正在中斷…\n" + +# frontends/command-line/main.c:1643 +#: gphoto2/main.c:1260 +#, c-format +msgid "Aborted.\n" +msgstr "已中斷。\n" + +# frontends/command-line/main.c:1648 +#: gphoto2/main.c:1265 +#, c-format +msgid "" +"\n" +"Cancelling...\n" +msgstr "" +"\n" +"正在取消…\n" + +# frontends/command-line/main.c:637 +#: gphoto2/main.c:1416 +#, c-format +msgid "Use the following syntax a:b=c:d to treat any USB device detected as a:b as c:d instead. a b c d should be hexadecimal numbers beginning with '0x'.\n" +msgstr "使用諸如 a:b=c:d 的形式將偵測為 a:b 的 USB 設備處理為 c:d。a b c d 應為以「0x」開始的十六進制數。\n" + +# frontends/command-line/actions.c:355 +#: gphoto2/main.c:1596 +msgid "gphoto2 has been compiled without support for CDK." +msgstr "gphoto2 編譯時沒有包含對 CDK 的支援。" + +# frontends/command-line/main.c:1750 +#: gphoto2/main.c:1866 +#, c-format +msgid "Operation cancelled.\n" +msgstr "操作已取消。\n" + +#: gphoto2/main.c:1870 +#, c-format +msgid "" +"*** Error: No camera found. ***\n" +"\n" +msgstr "" +"*** 錯誤:找不到任何相機。***\n" +"\n" + +# frontends/command-line/main.c:1753 +#: gphoto2/main.c:1872 +#, c-format +msgid "" +"*** Error (%i: '%s') *** \n" +"\n" +msgstr "" +"*** 錯誤 (%i: 「%s」) *** \n" +"\n" + +# frontends/command-line/main.c:1759 +#: gphoto2/main.c:1877 +#, c-format +msgid "" +"For debugging messages, please use the --debug option.\n" +"Debugging messages may help finding a solution to your problem.\n" +"If you intend to send any error or debug messages to the gphoto\n" +"developer mailing list , please run\n" +"gphoto2 as follows:\n" +"\n" +msgstr "" +"關於除錯資訊,請使用 --debug 選項。\n" +"除錯資訊可能會幫助您找到問題的解決辦法。\n" +"如果您打算將任何錯誤或除錯資訊發送到 gphoto\n" +" 開發者郵遞論壇 中,\n" +"請按以下方式執行 gphoto2:\n" +"\n" + +#: gphoto2/main.c:1898 +#, c-format +msgid "" +"Please make sure there is sufficient quoting around the arguments.\n" +"\n" +msgstr "" +"請確定引數外圍有足夠的引號。\n" +"\n" + +#: gphoto2/main.c:1965 +msgid "Print complete help message on program usage" +msgstr "印出程式用法的完整說明訊息" + +#: gphoto2/main.c:1967 +msgid "Print short message on program usage" +msgstr "列印程式用法的簡短訊息" + +# frontends/command-line/main.c:187 +#: gphoto2/main.c:1969 +msgid "Turn on debugging" +msgstr "開始除錯" + +#: gphoto2/main.c:1971 +msgid "Set debug level [error|debug|data|all]" +msgstr "設定除錯層級 [error|debug|data|all]" + +#: gphoto2/main.c:1973 +msgid "Name of file to write debug info to" +msgstr "要寫入除錯資訊的檔案名稱" + +#: gphoto2/main.c:1973 gphoto2/main.c:1978 gphoto2/main.c:1984 +#: gphoto2/main.c:2113 +msgid "FILENAME" +msgstr "檔名" + +# frontends/command-line/main.c:189 +#: gphoto2/main.c:1975 +msgid "Quiet output (default=verbose)" +msgstr "少量輸出 (預設為大量)" + +#: gphoto2/main.c:1977 +msgid "Hook script to call after downloads, captures, etc." +msgstr "下載、擷取等等之後所呼叫的攔截指令稿" + +# frontends/command-line/main.c:203 +#: gphoto2/main.c:1984 +msgid "Specify device port" +msgstr "指定裝置通訊埠" + +# frontends/command-line/main.c:204 +#: gphoto2/main.c:1986 +msgid "Specify serial transfer speed" +msgstr "指定串行傳輸速度" + +#: gphoto2/main.c:1986 +msgid "SPEED" +msgstr "速度" + +# frontends/command-line/main.c:205 +#: gphoto2/main.c:1988 +msgid "Specify camera model" +msgstr "指定相機型號" + +#: gphoto2/main.c:1988 +msgid "MODEL" +msgstr "式樣" + +# frontends/command-line/main.c:207 +#: gphoto2/main.c:1990 +msgid "(expert only) Override USB IDs" +msgstr "(僅適於專家) 覆寫 USB ID" + +#: gphoto2/main.c:1990 +msgid "USBIDs" +msgstr "USBIDs" + +# frontends/command-line/main.c:193 +#: gphoto2/main.c:1996 +msgid "Display version and exit" +msgstr "顯示版本號並離開" + +# frontends/command-line/main.c:195 +#: gphoto2/main.c:1998 +msgid "List supported camera models" +msgstr "列舉支援的相機型號" + +# frontends/command-line/main.c:197 +#: gphoto2/main.c:2000 +msgid "List supported port devices" +msgstr "列舉支援的輸出入埠設備" + +# frontends/command-line/main.c:210 +#: gphoto2/main.c:2002 +msgid "Display the camera/driver abilities in the libgphoto2 database" +msgstr "顯示 libgphoto2 資料庫中的相機/驅動程式性能" + +# frontends/command-line/main.c:231 +#: gphoto2/main.c:2009 +msgid "Configure" +msgstr "配置" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:2012 +msgid "List configuration tree" +msgstr "列出樹狀配置圖" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:2014 +msgid "Dump full configuration tree" +msgstr "傾印全部組態樹" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:2016 +msgid "Get configuration value" +msgstr "取得設定值" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:2018 +msgid "Set configuration value or index in choices" +msgstr "設定所選組態值或索引" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:2020 +msgid "Set configuration value index in choices" +msgstr "設定所選組態值索引" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:2022 +msgid "Set configuration value" +msgstr "設置組態值" + +# frontends/command-line/main.c:203 +#: gphoto2/main.c:2024 +msgid "Reset device port" +msgstr "重置裝置通訊埠" + +#: gphoto2/main.c:2030 +msgid "Keep images on camera after capturing" +msgstr "擷取之後將圖像保留於相機" + +#: gphoto2/main.c:2032 +msgid "Keep RAW images on camera after capturing" +msgstr "擷取之後將 RAW 圖像保留於相機" + +#: gphoto2/main.c:2034 +msgid "Remove images from camera after capturing" +msgstr "擷取之後從相機移除圖像" + +#: gphoto2/main.c:2036 +msgid "Wait for event(s) from camera" +msgstr "等待來自相機的事件" + +#: gphoto2/main.c:2036 gphoto2/main.c:2038 gphoto2/main.c:2064 +msgid "COUNT, SECONDS, MILLISECONDS or MATCHSTRING" +msgstr "數量、秒數、毫秒或匹配字串" + +#: gphoto2/main.c:2038 +msgid "Wait for event(s) from the camera and download new images" +msgstr "等待來自相機的事件並下載新圖像" + +# frontends/command-line/main.c:233 +#: gphoto2/main.c:2041 +msgid "Capture a quick preview" +msgstr "擷取一個快速預覽" + +#: gphoto2/main.c:2044 +msgid "Show a quick preview as Ascii Art" +msgstr "以字元圖片方式顯示快速預覽" + +#: gphoto2/main.c:2046 +msgid "Set bulb exposure time in seconds" +msgstr "設定燈泡曝光時間的秒數" + +#: gphoto2/main.c:2046 gphoto2/main.c:2050 +msgid "SECONDS" +msgstr "秒" + +#: gphoto2/main.c:2048 +msgid "Set number of frames to capture (default=infinite)" +msgstr "設定要擷取的影格數目 (預設=無限)" + +#: gphoto2/main.c:2048 +msgid "COUNT" +msgstr "計數" + +#: gphoto2/main.c:2050 +msgid "Set capture interval in seconds" +msgstr "設定以秒為單位的擷取間隔" + +#: gphoto2/main.c:2052 +msgid "Reset capture interval on signal (default=no)" +msgstr "信號時重置擷取間隔 (預設=no)" + +# frontends/command-line/main.c:234 +#: gphoto2/main.c:2054 +msgid "Capture an image" +msgstr "擷取一幅圖像" + +# frontends/command-line/main.c:234 +#: gphoto2/main.c:2056 +msgid "Trigger capture of an image" +msgstr "觸發圖像的擷取" + +# frontends/command-line/main.c:234 +#: gphoto2/main.c:2058 +msgid "Capture an image and download it" +msgstr "擷取圖像並下載它" + +# frontends/command-line/main.c:235 +#: gphoto2/main.c:2060 +msgid "Capture a movie" +msgstr "拍攝一段電影" + +#: gphoto2/main.c:2060 +msgid "COUNT or SECONDS" +msgstr "計數或秒" + +# frontends/command-line/main.c:236 +#: gphoto2/main.c:2062 +msgid "Capture an audio clip" +msgstr "擷取一個音訊片段" + +#: gphoto2/main.c:2064 +msgid "Wait for shutter release on the camera and download" +msgstr "等待相機所釋出的照片並下載" + +#: gphoto2/main.c:2066 +msgid "Trigger image capture" +msgstr "觸發圖像擷取" + +# frontends/command-line/main.c:214 +#: gphoto2/main.c:2072 +msgid "List folders in folder" +msgstr "列出資料夾中的資料夾" + +# frontends/command-line/main.c:215 +#: gphoto2/main.c:2074 +msgid "List files in folder" +msgstr "列出資料夾中的檔案" + +# frontends/command-line/main.c:216 +#: gphoto2/main.c:2076 +msgid "Create a directory" +msgstr "建立目錄" + +#: gphoto2/main.c:2076 gphoto2/main.c:2078 +msgid "DIRNAME" +msgstr "目錄名稱" + +# frontends/command-line/main.c:217 +#: gphoto2/main.c:2078 +msgid "Remove a directory" +msgstr "刪除目錄" + +# frontends/command-line/main.c:218 +#: gphoto2/main.c:2080 +msgid "Display number of files" +msgstr "顯示檔案的數量" + +# frontends/command-line/main.c:219 +#: gphoto2/main.c:2082 +msgid "Get files given in range" +msgstr "獲取給定範圍的檔案" + +#: gphoto2/main.c:2082 gphoto2/main.c:2086 gphoto2/main.c:2091 +#: gphoto2/main.c:2098 gphoto2/main.c:2104 gphoto2/main.c:2109 +msgid "RANGE" +msgstr "範圍" + +# frontends/command-line/main.c:220 +#: gphoto2/main.c:2084 +msgid "Get all files from folder" +msgstr "從資料夾中獲取所有檔案" + +# frontends/command-line/main.c:221 +#: gphoto2/main.c:2086 +msgid "Get thumbnails given in range" +msgstr "獲取給定範圍的縮圖" + +# frontends/command-line/main.c:222 +#: gphoto2/main.c:2089 +msgid "Get all thumbnails from folder" +msgstr "從資料夾中獲取所有縮圖" + +# frontends/command-line/main.c:223 +#: gphoto2/main.c:2091 +msgid "Get metadata given in range" +msgstr "獲取給定範圍的後設資料" + +# frontends/command-line/main.c:224 +#: gphoto2/main.c:2093 +msgid "Get all metadata from folder" +msgstr "從資料夾中獲取所有後設資料" + +#: gphoto2/main.c:2095 +msgid "Upload metadata for file" +msgstr "將檔案的後設資料上傳" + +# frontends/command-line/main.c:223 +#: gphoto2/main.c:2098 +msgid "Get raw data given in range" +msgstr "獲取給定範圍的原始資料" + +# frontends/command-line/main.c:224 +#: gphoto2/main.c:2101 +msgid "Get all raw data from folder" +msgstr "從資料夾中獲取所有原始資料" + +# frontends/command-line/main.c:225 +#: gphoto2/main.c:2104 +msgid "Get audio data given in range" +msgstr "獲取給定範圍的音訊資料" + +# frontends/command-line/main.c:226 +#: gphoto2/main.c:2107 +msgid "Get all audio data from folder" +msgstr "從資料夾中獲取所有音訊資料" + +# frontends/command-line/main.c:227 +#: gphoto2/main.c:2109 +msgid "Delete files given in range" +msgstr "刪除給定範圍中的檔案" + +# frontends/command-line/main.c:228 +#: gphoto2/main.c:2111 +msgid "Delete all files in folder (--no-recurse by default)" +msgstr "刪除資料夾中所有檔案 (預設 --no-recurse)" + +# frontends/command-line/main.c:229 +#: gphoto2/main.c:2113 +msgid "Upload a file to camera" +msgstr "將一個檔案上載到相機" + +# frontends/command-line/main.c:206 +#: gphoto2/main.c:2115 +msgid "Specify a filename or filename pattern" +msgstr "指定檔名或檔名胚騰" + +#: gphoto2/main.c:2115 +msgid "FILENAME_PATTERN" +msgstr "檔名胚騰" + +# frontends/command-line/main.c:211 +#: gphoto2/main.c:2117 +msgid "Specify camera folder (default=\"/\")" +msgstr "指定相機資料夾 (預設為「/」)" + +#: gphoto2/main.c:2117 +msgid "FOLDER" +msgstr "資料夾" + +# frontends/command-line/main.c:212 +#: gphoto2/main.c:2119 +msgid "Recursion (default for download)" +msgstr "遞迴 (下載時預設)" + +# frontends/command-line/main.c:213 +#: gphoto2/main.c:2121 +msgid "No recursion (default for deletion)" +msgstr "不遞迴 (刪除時預設)" + +#: gphoto2/main.c:2123 +msgid "Process new files only" +msgstr "只處理新的檔案" + +#: gphoto2/main.c:2125 +msgid "Overwrite files without asking" +msgstr "在不詢問的情況下覆寫檔案" + +#: gphoto2/main.c:2127 +msgid "Skip existing files" +msgstr "跳過已存在的檔案" + +# frontends/command-line/main.c:198 +#: gphoto2/main.c:2133 +msgid "Send file to stdout" +msgstr "將檔案發送到標準輸出" + +# frontends/command-line/main.c:199 +#: gphoto2/main.c:2135 +msgid "Print filesize before data" +msgstr "在資料前面列印檔案大小" + +# frontends/command-line/main.c:200 +#: gphoto2/main.c:2137 +msgid "List auto-detected cameras" +msgstr "列舉可以自動檢測的相機" + +# frontends/command-line/main.c:238 frontends/command-line/shell.c:127 +#: gphoto2/main.c:2141 gphoto2/shell.c:138 +msgid "Show EXIF information of JPEG images" +msgstr "顯示 JPEG 圖像的 EXIF 資訊" + +#: gphoto2/main.c:2144 gphoto2/shell.c:132 +msgid "Show image information, like width, height, and capture time" +msgstr "顯示圖像資訊,像是寬度、高度和拍攝時間" + +#: gphoto2/main.c:2146 +msgid "Show camera summary" +msgstr "顯示相機概要" + +# frontends/command-line/main.c:242 +#: gphoto2/main.c:2148 +msgid "Show camera driver manual" +msgstr "顯示相機驅動程序手冊" + +# frontends/command-line/main.c:243 +#: gphoto2/main.c:2150 +msgid "About the camera driver manual" +msgstr "關於相機驅動程序手冊" + +# frontends/command-line/main.c:238 frontends/command-line/shell.c:127 +#: gphoto2/main.c:2152 +msgid "Show storage information" +msgstr "顯示貯藏體資訊" + +# frontends/command-line/main.c:244 +#: gphoto2/main.c:2154 +msgid "gPhoto shell" +msgstr "gPhoto shell" + +#: gphoto2/main.c:2160 +msgid "Common options" +msgstr "共同選項" + +#: gphoto2/main.c:2162 +msgid "Miscellaneous options (unsorted)" +msgstr "雜項選項 (未分類)" + +#: gphoto2/main.c:2164 +msgid "Get information on software and host system (not from the camera)" +msgstr "提取關於軟體和主機系統的資訊 (並非從相機)" + +# frontends/command-line/main.c:205 +#: gphoto2/main.c:2166 +msgid "Specify the camera to use" +msgstr "指定要使用的相機" + +# frontends/command-line/gphoto2-cmd-config.c:73 +#: gphoto2/main.c:2168 +msgid "Camera and software configuration" +msgstr "相機和軟體組態" + +# frontends/command-line/shell.c:112 +#: gphoto2/main.c:2170 +msgid "Capture an image from or on the camera" +msgstr "擷取來自相機或在相機之上的圖像" + +#: gphoto2/main.c:2172 +msgid "Downloading, uploading and manipulating files" +msgstr "下載、上傳和操控檔案" + +# frontends/command-line/range.c:122 frontends/command-line/range.c:176 +#: gphoto2/range.c:104 gphoto2/range.c:158 +#, c-format +msgid "" +"%s\n" +"Image IDs must be a number greater than zero." +msgstr "" +"%s\n" +"圖像 IDs 必須是一個大於零的數。" + +# frontends/command-line/range.c:128 frontends/command-line/range.c:182 +#: gphoto2/range.c:110 gphoto2/range.c:164 +#, c-format +msgid "" +"%s\n" +"Image ID %i too high." +msgstr "" +"%s\n" +"圖像 ID %i 太大。" + +# frontends/command-line/range.c:144 +#: gphoto2/range.c:126 +#, c-format +msgid "" +"%s\n" +"Ranges must be separated by ','." +msgstr "" +"%s\n" +"範圍必須由「,」分隔。" + +# frontends/command-line/range.c:158 +#: gphoto2/range.c:140 +#, c-format +msgid "" +"%s\n" +"Ranges need to start with a number." +msgstr "" +"%s\n" +"範圍應以數字開頭。" + +# frontends/command-line/range.c:198 +#: gphoto2/range.c:180 +#, c-format +msgid "" +"%s\n" +"Unexpected character '%c'." +msgstr "" +"%s\n" +"未預期字元「%c」。" + +# frontends/command-line/range.c:221 +#: gphoto2/range.c:204 +#, c-format +msgid "" +"%s\n" +"Decreasing ranges are not allowed. You specified a range from %i to %i." +msgstr "" +"%s\n" +"不允許縮小範圍。您指定了一個從 %i 到 %i 的範圍。" + +# frontends/command-line/shell.c:73 +#: gphoto2/shell.c:65 +#, c-format +msgid "*** Error (%i: '%s') ***" +msgstr "*** 錯誤 (%i: 「%s」) ***" + +# frontends/command-line/shell.c:112 +#: gphoto2/shell.c:121 +msgid "Change to a directory on the camera" +msgstr "進入相機中的目錄" + +# frontends/command-line/shell.c:113 frontends/command-line/shell.c:115 +#: gphoto2/shell.c:122 gphoto2/shell.c:124 gphoto2/shell.c:135 +#: gphoto2/shell.c:136 +msgid "directory" +msgstr "目錄" + +# frontends/command-line/shell.c:114 +#: gphoto2/shell.c:123 +msgid "Change to a directory on the local drive" +msgstr "進入本機儲存裝置中的目錄" + +# frontends/command-line/shell.c:116 frontends/command-line/shell.c:134 +# frontends/command-line/shell.c:135 +#: gphoto2/shell.c:125 gphoto2/shell.c:156 gphoto2/shell.c:157 +msgid "Exit the gPhoto shell" +msgstr "離開 gPhoto shell" + +# frontends/command-line/shell.c:117 +#: gphoto2/shell.c:126 +msgid "Download a file" +msgstr "下載一個檔案" + +# frontends/command-line/shell.c:117 frontends/command-line/shell.c:120 +# frontends/command-line/shell.c:122 frontends/command-line/shell.c:124 +# frontends/command-line/shell.c:125 frontends/command-line/shell.c:128 +#: gphoto2/shell.c:126 gphoto2/shell.c:127 gphoto2/shell.c:129 +#: gphoto2/shell.c:131 gphoto2/shell.c:133 gphoto2/shell.c:134 +#: gphoto2/shell.c:139 +msgid "[directory/]filename" +msgstr "[目錄/]檔案" + +# frontends/command-line/shell.c:117 +#: gphoto2/shell.c:127 +msgid "Upload a file" +msgstr "上傳一個檔案" + +# frontends/command-line/shell.c:119 +#: gphoto2/shell.c:128 +msgid "Download a thumbnail" +msgstr "下載一張縮圖" + +# frontends/command-line/shell.c:121 +#: gphoto2/shell.c:130 +msgid "Download raw data" +msgstr "下載原始資料" + +# frontends/command-line/shell.c:125 +#: gphoto2/shell.c:134 +msgid "Delete" +msgstr "刪除" + +# frontends/command-line/main.c:216 +#: gphoto2/shell.c:135 +msgid "Create Directory" +msgstr "建立目錄" + +# frontends/command-line/main.c:217 +#: gphoto2/shell.c:136 +msgid "Remove Directory" +msgstr "移除目錄" + +# frontends/command-line/shell.c:130 frontends/command-line/shell.c:136 +#: gphoto2/shell.c:141 gphoto2/shell.c:158 +msgid "Displays command usage" +msgstr "顯示命令用法" + +# frontends/command-line/shell.c:131 frontends/command-line/shell.c:136 +#: gphoto2/shell.c:142 gphoto2/shell.c:158 +msgid "[command]" +msgstr "[命令]" + +# frontends/command-line/shell.c:132 +#: gphoto2/shell.c:143 +msgid "List the contents of the current directory" +msgstr "列出目前目錄的內容" + +# frontends/command-line/shell.c:133 +#: gphoto2/shell.c:144 +msgid "[directory/]" +msgstr "[目錄]" + +#: gphoto2/shell.c:145 +msgid "List configuration variables" +msgstr "表列組態變數" + +#: gphoto2/shell.c:146 +msgid "Get configuration variable" +msgstr "取得組態變數" + +# frontends/command-line/main.c:216 frontends/command-line/main.c:217 +#: gphoto2/shell.c:146 +msgid "name" +msgstr "名稱" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "Set configuration variable" +msgstr "設置組態變數" + +#: gphoto2/shell.c:147 gphoto2/shell.c:149 +msgid "name=value" +msgstr "名稱=值" + +#: gphoto2/shell.c:148 +msgid "Set configuration variable index" +msgstr "設定組態變數索引" + +#: gphoto2/shell.c:148 +msgid "name=valueindex" +msgstr "name=值索引" + +# frontends/command-line/main.c:234 +#: gphoto2/shell.c:150 +msgid "Capture a single image" +msgstr "擷取單一圖像" + +# frontends/command-line/main.c:234 +#: gphoto2/shell.c:151 +msgid "Capture a single image and download it" +msgstr "擷取單一圖像並下載它" + +# frontends/command-line/main.c:234 +#: gphoto2/shell.c:152 +msgid "Capture a preview image" +msgstr "擷取預覽圖像" + +#: gphoto2/shell.c:153 +msgid "Wait for an event" +msgstr "等待一個事件" + +#: gphoto2/shell.c:153 gphoto2/shell.c:154 gphoto2/shell.c:155 +msgid "count or seconds" +msgstr "計數或秒" + +#: gphoto2/shell.c:154 +msgid "Wait for images to be captured and download it" +msgstr "等待要擷取且下載的圖像" + +#: gphoto2/shell.c:155 +msgid "Wait for events and images to be captured and download it" +msgstr "等待事件與圖像以擷取並下載它" + +# frontends/command-line/shell.c:414 +#: gphoto2/shell.c:480 +msgid "Invalid command." +msgstr "不正確命令。" + +# frontends/command-line/shell.c:423 +#: gphoto2/shell.c:489 +#, c-format +msgid "The command '%s' requires an argument." +msgstr "命令「%s」需要一個引數。" + +# frontends/command-line/shell.c:476 +#: gphoto2/shell.c:542 +msgid "Invalid path." +msgstr "不正確路徑。" + +# frontends/command-line/shell.c:522 +#: gphoto2/shell.c:588 +msgid "Could not find home directory." +msgstr "無法找到家目錄。" + +# frontends/command-line/shell.c:530 +#: gphoto2/shell.c:597 +#, c-format +msgid "Could not change to local directory '%s'." +msgstr "無法進入本地目錄「%s」。" + +# frontends/command-line/shell.c:533 +#: gphoto2/shell.c:600 +#, c-format +msgid "Local directory now '%s'." +msgstr "本地目錄為「%s」。" + +# frontends/command-line/shell.c:564 +#: gphoto2/shell.c:638 +#, c-format +msgid "Remote directory now '%s'." +msgstr "遠端目錄為「%s」。" + +#: gphoto2/shell.c:854 +#, c-format +msgid "set-config needs a second argument.\n" +msgstr "set-config 需要第二引數。\n" + +#: gphoto2/shell.c:875 +#, c-format +msgid "set-config-value needs a second argument.\n" +msgstr "set-config-value 需要第二個引數。\n" + +#: gphoto2/shell.c:896 +#, c-format +msgid "set-config-index needs a second argument.\n" +msgstr "set-config-index 需要第二個引數。\n" + +# frontends/command-line/shell.c:743 +#: gphoto2/shell.c:948 +#, c-format +msgid "Command '%s' not found. Use 'help' to get a list of available commands." +msgstr "未找到「%s」命令。用「help」獲取可用的命令列表。" + +# frontends/command-line/shell.c:750 +#: gphoto2/shell.c:955 +#, c-format +msgid "Help on \"%s\":" +msgstr "關於「%s」的求助資訊:" + +# frontends/command-line/shell.c:752 +#: gphoto2/shell.c:957 +#, c-format +msgid "Usage:" +msgstr "用法:" + +# frontends/command-line/shell.c:756 +#: gphoto2/shell.c:960 +#, c-format +msgid "Description:" +msgstr "描述:" + +# frontends/command-line/shell.c:758 +#: gphoto2/shell.c:962 +#, c-format +msgid "* Arguments in brackets [] are optional" +msgstr "* 出現在方括號 [] 中的引數是可選的" + +# frontends/command-line/shell.c:779 +#: gphoto2/shell.c:983 +#, c-format +msgid "Available commands:" +msgstr "可用的命令:" + +# frontends/command-line/shell.c:784 +#: gphoto2/shell.c:988 +#, c-format +msgid "To get help on a particular command, type in 'help command-name'." +msgstr "為得到特定命令的求助資訊,輸入「help 命令名」。" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/tests/Makefile.am new file mode 100644 index 00000000..d84572f8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/Makefile.am @@ -0,0 +1,8 @@ +SUBDIRS = data staging + +EXTRA_DIST = TESTING testsuite testcamera.pl + +TESTS = testsuite + +clean-local: + -rm -rf log diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/TESTING b/lib/hardware/sensors/gphoto/gphoto2-master/tests/TESTING new file mode 100644 index 00000000..95fb67d7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/TESTING @@ -0,0 +1,83 @@ +GPHOTO2 TEST FRAMEWORK +====================== +The gphoto2 test suite consists of a simple framework plus test data +that allows basic regression tests to be run to validate the gphoto2 +code. It is designed primarily to run tests on the "gphoto2" executable +but is flexible enough to run other programs as well. + +Although it is possible to execute tests directly on a connected camera, +the "Directory Browse" camera driver is used for most tests as it allows +testing with no external dependencies. This is sufficient to test the +gphoto2 executable, libgphoto2 framework code, and directory driver, +but, naturally, none of the other camera drivers. + +The test framework provides the facility to compare the output of the +program under test with an expected file, massage that file to make it +easier to compare first, perform tests that are expected to fail, and +perform arbitrary checks following the test. It is driven by a test +parameters file which contains instructions for running that test, +plus a data file containing the data expected after running the test. + +TEST FILE FORMAT +================ +Each test parameters file has a name of the form testN.param where N +is the test number. it consists of a series of variable assignments +of the form 'VARIABLE=data'. Several pre-set variables are available +for use in the data. Bourne shell quoting rules are in effect, and +the order does not matter. + +These are the variables that can be set in the test parameters file: + +COMMAND - The command to run to execute the test (mandatory) +PRECOMMAND - A command to run before COMMAND (which must have a 0 + exit status) +POSTCOMMAND - A command to run after COMMAND (which must have a 0 + exit status) +RESULTCODE - The return status expected by the command (default 0) +RESULTFILE - A file containing the expected output of the program; this will + be compared to $OUTFILE (default result/testN.result) +SEDCOMMAND - A command passed to sed which modifies the output file + $OUTFILE; this can be used to remove parts of the file (like absolute + paths) that can be inconsistent between test runs +TITLE - A short descriptive name for the test (mandatory) + +These are the variables that are available for use in the parameters file: + +$DATADIR - path to the data directory (data/) +$ERRFILE - path to the default standard error output file for this test +$LOGDIR - path to the log directory (log/) +$OUTFILE - path to the default test output file for this test +$PROGRAM - path to the gphoto2 executable (../gphoto2/gphoto2); this should + not be quoted in the params file so that the user can specify + a helper app like valgrind or gdb along with gphoto2 +$STAGINGDIR - path to an area containing sample files and directories + (staging/) + +FILES AND DIRECTORIES +===================== +Test parameter files and any data files are found in the data/ directory. +Test parameter files end with the .param extension, while data files end +with the .result extension. Files created while running the test are +stored in the log/ directory. The contents of log/ is erased before the +start of each test run. + +The directory staging/ contains a few small files and subdirectories that +can be used with the Directory Browse driver to simulate the contents of +a camera. It should be treated as read only, and should not be modified. +Tests requiring (like uploads) requiring modification of the file system +should first create a test area in $LOGDIR in the PRECOMMAND. + +INVOCATION +========== +Start the tests with the command "./testsuite". If parameters are given, +they are to specific test case files to run, +e.g. "./testsuite data/test002.param" will run only test 2. When +running outside the build tree, the environment variable "srcdir" must +be set to the absolute path of the tests source directory. The program +will exit with a non-zero status code if at least one test failed. +If the -v option is given, more verbose information about test failures +is provided. + +Some test cases don't do a good job of cleaning up after themselves after +failures. If you get persistent test failures, try deleting the 'log' +directory and running the tests again. diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/Makefile.am new file mode 100644 index 00000000..a0d08960 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/Makefile.am @@ -0,0 +1,41 @@ +EXTRA_DIST = \ +test001.param test001.result \ +test002.param test002.result \ +test003.param \ +test004.param test004.result \ +test005.param test005.result \ +test006.param \ +test007.param \ +test008.param \ +test009.param test009.result \ +test010.param test010.result \ +test011.param test011.result \ +test012.param test012.result \ +test013.param test013.result \ +test014.param test014.result \ +test015.param test015.result \ +test016.param test016.result \ +test017.param test017.result \ +test018.param test018.result \ +test019.param \ +test020.param \ +test021.param \ +test022.param test022.result \ +test023.param test023.result \ +test024.param \ +test025.param \ +test026.param \ +test027.param test027.result \ +test028.param test028.result \ +test029.param test029.result \ +test030.param test030.result \ +test031.param test031.result \ +test032.param test032.result \ +test033.param test033.result \ +test034.param test034.result \ +test035.param test035.result \ +test036.param \ +test037.param test037.result \ +test038.param \ +test039.param \ +test040.param diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test001.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test001.param new file mode 100644 index 00000000..d883a2d1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test001.param @@ -0,0 +1,3 @@ +TITLE='Recursive directory file list' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" -L 2> "$ERRFILE" > "$OUTFILE"' +SEDCOMMAND='s@\(in folder .\).*/@\1@' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test001.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test001.result new file mode 100644 index 00000000..21d4c0b6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test001.result @@ -0,0 +1,8 @@ +There are 4 files in folder ''. +#1 gphotobutton.jpg rd 3 KB image/jpeg +#2 pop.wav rd 2 KB audio/wav +#3 smalllogo.png rd 7 KB image/png +#4 xexif.jpg rd 2 KB image/jpeg +There is 1 file in folder 'subdir1'. +#5 architecture.png rd 5 KB image/png +There is no file in folder 'subdir2'. diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test002.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test002.param new file mode 100644 index 00000000..41e4145c --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test002.param @@ -0,0 +1,3 @@ +TITLE='Nonrecursive directory file list' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --no-recurse -L 2> "$ERRFILE" > "$OUTFILE"' +SEDCOMMAND='s@\(in folder .\).*/@\1@' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test002.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test002.result new file mode 100644 index 00000000..cf614277 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test002.result @@ -0,0 +1,5 @@ +There are 4 files in folder ''. +#1 gphotobutton.jpg rd 3 KB image/jpeg +#2 pop.wav rd 2 KB audio/wav +#3 smalllogo.png rd 7 KB image/png +#4 xexif.jpg rd 2 KB image/jpeg diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test003.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test003.param new file mode 100644 index 00000000..1e031b6f --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test003.param @@ -0,0 +1,5 @@ +TITLE='Invalid directory file list' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" -f /does-not-exist -L 2> "$ERRFILE" > "$OUTFILE"' +RESULTCODE=1 +SEDCOMMAND='/^For debugging messages/,$d' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test004.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test004.param new file mode 100644 index 00000000..00e117f9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test004.param @@ -0,0 +1,3 @@ +TITLE='Recursive directory list' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" -l 2> "$ERRFILE" > "$OUTFILE"' +SEDCOMMAND='s@\(in folder .\).*/@\1@' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test004.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test004.result new file mode 100644 index 00000000..4020c8df --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test004.result @@ -0,0 +1,5 @@ +There are 2 folders in folder ''. + - subdir1 + - subdir2 +There are 0 folders in folder 'subdir1'. +There are 0 folders in folder 'subdir2'. diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test005.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test005.param new file mode 100644 index 00000000..6186d6a4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test005.param @@ -0,0 +1,3 @@ +TITLE='Nonrecursive directory list' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --no-recurse -l 2> "$ERRFILE" > "$OUTFILE"' +SEDCOMMAND='s@\(in folder .\).*/@\1@' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test005.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test005.result new file mode 100644 index 00000000..ad964a43 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test005.result @@ -0,0 +1,3 @@ +There are 2 folders in folder ''. + - subdir1 + - subdir2 diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test006.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test006.param new file mode 100644 index 00000000..579b3095 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test006.param @@ -0,0 +1,5 @@ +TITLE='Invalid directory list' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" -f /does-not-exist -l 2> "$ERRFILE" > "$OUTFILE"' +RESULTCODE=1 +SEDCOMMAND='/^For debugging messages/,$d' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test007.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test007.param new file mode 100644 index 00000000..da20893c --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test007.param @@ -0,0 +1,4 @@ +TITLE='Make directory' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$LOGDIR" -f / --mkdir=newdir 2> "$ERRFILE" > "$OUTFILE"' +RESULTFILE=/dev/null +POSTCOMMAND='test -d "$LOGDIR/newdir" && rmdir "$LOGDIR/newdir"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test008.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test008.param new file mode 100644 index 00000000..9b9cefa5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test008.param @@ -0,0 +1,5 @@ +TITLE='Remove directory' +PRECOMMAND='mkdir "$LOGDIR/newdir"' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$LOGDIR" -f / --rmdir=newdir 2> "$ERRFILE" > "$OUTFILE"' +RESULTFILE=/dev/null +POSTCOMMAND='test ! -d "$LOGDIR/newdir"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test009.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test009.param new file mode 100644 index 00000000..ff6dfafa --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test009.param @@ -0,0 +1,3 @@ +TITLE='File count' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --num-files 2> "$ERRFILE" > "$OUTFILE"' +SEDCOMMAND='s@\(in folder .\).*/@\1@' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test009.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test009.result new file mode 100644 index 00000000..157ddba9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test009.result @@ -0,0 +1 @@ +Number of files in folder '': 4 diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test010.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test010.param new file mode 100644 index 00000000..200026bd --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test010.param @@ -0,0 +1,2 @@ +TITLE='Manual text' +COMMAND='$PROGRAM --camera="Directory Browse" --port disk:"$STAGINGDIR" --manual 2> "$ERRFILE" > "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test010.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test010.result new file mode 100644 index 00000000..00b126eb --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test010.result @@ -0,0 +1,2 @@ +Camera manual: +The Directory Browse "camera" lets you index photos on your hard drive. diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test011.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test011.param new file mode 100644 index 00000000..e18aa479 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test011.param @@ -0,0 +1,2 @@ +TITLE='About text' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --about 2> "$ERRFILE" > "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test011.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test011.result new file mode 100644 index 00000000..3972c615 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test011.result @@ -0,0 +1,2 @@ +About the camera driver: +Directory Browse Mode - written by Scott Fritzinger . diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test012.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test012.param new file mode 100644 index 00000000..861a0eca --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test012.param @@ -0,0 +1,2 @@ +TITLE='Abilities' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --abilities 2> "$ERRFILE" > "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test012.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test012.result new file mode 100644 index 00000000..6bf87262 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test012.result @@ -0,0 +1,10 @@ +Abilities for camera : Directory Browse +Serial port support : no +USB support : no +Capture choices : + : Capture not supported by the driver +Configuration support : no +Delete selected files on camera : yes +Delete all files on camera : no +File preview (thumbnail) support : no +File upload support : yes diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test013.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test013.param new file mode 100644 index 00000000..eeff15ca --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test013.param @@ -0,0 +1,3 @@ +TITLE='File download' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --get-file=1 2> "$ERRFILE" > /dev/null' +POSTCOMMAND='mv -f gphotobutton.jpg "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test013.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test013.result new file mode 100644 index 00000000..95c5af20 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test013.result differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test014.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test014.param new file mode 100644 index 00000000..2438e1da --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test014.param @@ -0,0 +1,2 @@ +TITLE='File download to stdout' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --get-file=1 --stdout 2> "$ERRFILE" > "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test014.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test014.result new file mode 100644 index 00000000..95c5af20 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test014.result differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test015.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test015.param new file mode 100644 index 00000000..83fbeb4e --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test015.param @@ -0,0 +1,3 @@ +TITLE='File download with name' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --get-file=1 --filename=testoutfile 2> "$ERRFILE" > /dev/null' +POSTCOMMAND='mv -f testoutfile "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test015.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test015.result new file mode 100644 index 00000000..95c5af20 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test015.result differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test016.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test016.param new file mode 100644 index 00000000..edc34544 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test016.param @@ -0,0 +1,2 @@ +TITLE='File download from subdirectory' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --get-file=5 --stdout 2> "$ERRFILE" > "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test016.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test016.result new file mode 100644 index 00000000..603b53f7 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test016.result differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test017.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test017.param new file mode 100644 index 00000000..93d2de3c --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test017.param @@ -0,0 +1,4 @@ +TITLE='File upload' +PRECOMMAND='mkdir -p "$LOGDIR/uploaddir"' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$LOGDIR" -f /uploaddir --upload-file="$STAGINGDIR/subdir1/architecture.png" 2> "$ERRFILE" > /dev/null' +POSTCOMMAND='mv -f "$LOGDIR/uploaddir/architecture.png" "$OUTFILE" && rmdir "$LOGDIR/uploaddir"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test017.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test017.result new file mode 100644 index 00000000..603b53f7 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test017.result differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test018.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test018.param new file mode 100644 index 00000000..4363e602 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test018.param @@ -0,0 +1,4 @@ +TITLE='File upload with name' +PRECOMMAND='mkdir "$LOGDIR/uploaddir"' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$LOGDIR" -f /uploaddir --upload-file="$STAGINGDIR/subdir1/architecture.png" --filename=uploadedfile 2> "$ERRFILE" > /dev/null' +POSTCOMMAND='mv -f "$LOGDIR/uploaddir/uploadedfile" "$OUTFILE" && rmdir "$LOGDIR/uploaddir"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test018.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test018.result new file mode 100644 index 00000000..603b53f7 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test018.result differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test019.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test019.param new file mode 100644 index 00000000..89962685 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test019.param @@ -0,0 +1,5 @@ +TITLE='File delete' +PRECOMMAND='mkdir "$LOGDIR/deletedir" && cp "$STAGINGDIR/gphotobutton.jpg" "$LOGDIR/deletedir/"' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$LOGDIR" -f /deletedir --delete-file=1 2> "$ERRFILE" > "$OUTFILE"' +POSTCOMMAND='rmdir "$LOGDIR/deletedir"' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test020.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test020.param new file mode 100644 index 00000000..3046ab51 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test020.param @@ -0,0 +1,5 @@ +TITLE='Invalid root directory' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"/not/a/valid/directory" -L 2> "$ERRFILE" > "$OUTFILE"' +RESULTCODE=1 +SEDCOMMAND='/^For debugging messages/,$d' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test021.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test021.param new file mode 100644 index 00000000..e26be2d5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test021.param @@ -0,0 +1,5 @@ +TITLE='Missing port option' +COMMAND='$PROGRAM --camera="Directory Browse" -L 2> "$ERRFILE" > "$OUTFILE"' +RESULTCODE=1 +SEDCOMMAND='/^For debugging messages/,$d' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test022.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test022.param new file mode 100644 index 00000000..03c33dd8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test022.param @@ -0,0 +1,3 @@ +TITLE='Filename percent operators' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --get-file=4 --filename='testfile%C-%04n-%f.bin' 2> "$ERRFILE" > /dev/null' +POSTCOMMAND='mv -f testfilejpg-0001-xexif.bin "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test022.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test022.result new file mode 100644 index 00000000..851cc437 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test022.result differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test023.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test023.param new file mode 100644 index 00000000..78166f77 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test023.param @@ -0,0 +1,3 @@ +TITLE='Cameras list' +COMMAND='$PROGRAM --list-cameras 2> "$ERRFILE" > "$OUTFILE"' +SEDCOMMAND='/Directory Browse/!d' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test023.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test023.result new file mode 100644 index 00000000..c8eafe8b --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test023.result @@ -0,0 +1 @@ + "Directory Browse" diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test024.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test024.param new file mode 100644 index 00000000..38382ef6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test024.param @@ -0,0 +1,5 @@ +TITLE='Delete all files' +PRECOMMAND='mkdir "$LOGDIR/deletedir" && cp "$STAGINGDIR/gphotobutton.jpg" "$STAGINGDIR/smalllogo.png" "$LOGDIR/deletedir/"' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$LOGDIR" -f /deletedir --delete-all-files 2> "$ERRFILE" > "$OUTFILE"' +POSTCOMMAND='rmdir "$LOGDIR/deletedir"' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test025.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test025.param new file mode 100644 index 00000000..213f7e54 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test025.param @@ -0,0 +1,5 @@ +TITLE='Nonrecursive delete all files' +PRECOMMAND='mkdir "$LOGDIR/deletedir" "$LOGDIR/deletedir/subdir" && cp "$STAGINGDIR/gphotobutton.jpg" "$STAGINGDIR/smalllogo.png" "$LOGDIR/deletedir/" && cp "$STAGINGDIR/gphotobutton.jpg" "$LOGDIR/deletedir/subdir/"' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$LOGDIR" -f /deletedir --delete-all-files 2> "$ERRFILE" > "$OUTFILE"' +POSTCOMMAND='rm "$LOGDIR/deletedir/subdir/gphotobutton.jpg" ; rmdir "$LOGDIR/deletedir/subdir" "$LOGDIR/deletedir"' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test026.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test026.param new file mode 100644 index 00000000..7e2639f4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test026.param @@ -0,0 +1,5 @@ +TITLE='Recursive delete all files with subdirs' +PRECOMMAND='mkdir "$LOGDIR/deletedir" "$LOGDIR/deletedir/subdir" && cp "$STAGINGDIR/gphotobutton.jpg" "$STAGINGDIR/smalllogo.png" "$LOGDIR/deletedir/" && cp "$STAGINGDIR/gphotobutton.jpg" "$LOGDIR/deletedir/subdir/"' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$LOGDIR" -f /deletedir --delete-all-files --recurse 2> "$ERRFILE" > "$OUTFILE"' +POSTCOMMAND='rmdir "$LOGDIR/deletedir/subdir" "$LOGDIR/deletedir"' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test027.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test027.param new file mode 100644 index 00000000..0cd6f056 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test027.param @@ -0,0 +1,4 @@ +TITLE='File download without overwrite' +PRECOMMAND='echo DO NOT OVERWRITE > gphotobutton.jpg' +COMMAND='yes n | $PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --get-file=1 2> "$ERRFILE" > /dev/null' +POSTCOMMAND='mv -f gphotobutton.jpg "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test027.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test027.result new file mode 100644 index 00000000..079fdc83 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test027.result @@ -0,0 +1 @@ +DO NOT OVERWRITE diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test028.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test028.param new file mode 100644 index 00000000..99935959 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test028.param @@ -0,0 +1,4 @@ +TITLE='File download with overwrite' +PRECOMMAND='echo DO NOT OVERWRITE > gphotobutton.jpg' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --get-file=1 --force-overwrite 2> "$ERRFILE" > /dev/null' +POSTCOMMAND='mv -f gphotobutton.jpg "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test028.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test028.result new file mode 100644 index 00000000..95c5af20 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test028.result differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test029.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test029.param new file mode 100644 index 00000000..2ea4dd52 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test029.param @@ -0,0 +1,3 @@ +TITLE='Invalid camera' +COMMAND='$PROGRAM --camera="Xyzzy Foo camera" --abilities 2> "$OUTFILE" > /dev/null' +RESULTCODE=1 diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test029.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test029.result new file mode 100644 index 00000000..0379ef64 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test029.result @@ -0,0 +1,2 @@ +*** Error (-105: 'Unknown model') *** + diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test030.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test030.param new file mode 100644 index 00000000..54b4dba6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test030.param @@ -0,0 +1,3 @@ +TITLE='Invalid port type' +COMMAND='$PROGRAM --camera="Directory Browse" --port=badport:bad --abilities 2> "$OUTFILE" > /dev/null' +RESULTCODE=1 diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test030.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test030.result new file mode 100644 index 00000000..df64c413 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test030.result @@ -0,0 +1,2 @@ +The port you specified ('badport:bad') can not be found. Please specify one of the ports found by 'gphoto2 --list-ports' and make sure the spelling is correct (i.e. with prefix 'serial:' or 'usb:').*** Error (-2: 'Bad parameters') *** + diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test031.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test031.param new file mode 100644 index 00000000..dee5e90e --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test031.param @@ -0,0 +1,3 @@ +TITLE='Get storage info' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --storage-info 2> "$ERRFILE" > "$OUTFILE"' +SEDCOMMAND='s@\(totalcapacity=\|free=\).*$@\1@' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test031.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test031.result new file mode 100644 index 00000000..f149d22d --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test031.result @@ -0,0 +1,8 @@ +[Storage 0] +description=Directory Driver +basedir=/ +access=0 Read-Write +type=4 Removable RAM +fstype=4 Generic Hierarchical +totalcapacity= +free= diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test032.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test032.param new file mode 100644 index 00000000..c1981527 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test032.param @@ -0,0 +1,4 @@ +TITLE='Hook script on download' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --hook-script=/usr/bin/env --get-file=1 2> "$ERRFILE" > "$OUTFILE"' +SEDCOMMAND='/^ACTION=\|^ARGUMENT=\|^Saving/!d' +POSTCOMMAND='rm gphotobutton.jpg' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test032.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test032.result new file mode 100644 index 00000000..b3291ea6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test032.result @@ -0,0 +1,6 @@ +ACTION=init +ACTION=start +Saving file as gphotobutton.jpg +ACTION=download +ARGUMENT=gphotobutton.jpg +ACTION=stop diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test033.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test033.param new file mode 100644 index 00000000..de3a8147 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test033.param @@ -0,0 +1,5 @@ +TITLE='Hook script on upload' +PRECOMMAND='mkdir "$LOGDIR/uploaddir"' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$LOGDIR" --hook-script=/usr/bin/env -f /uploaddir --upload-file="$STAGINGDIR/subdir1/architecture.png" 2> "$ERRFILE" > "$OUTFILE"' +SEDCOMMAND='/^ACTION=\|^ARGUMENT=\|^Saving/!d' +POSTCOMMAND='rm "$LOGDIR/uploaddir/architecture.png" && rmdir "$LOGDIR/uploaddir"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test033.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test033.result new file mode 100644 index 00000000..9247637b --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test033.result @@ -0,0 +1,3 @@ +ACTION=init +ACTION=start +ACTION=stop diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test034.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test034.param new file mode 100644 index 00000000..a4f62119 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test034.param @@ -0,0 +1,3 @@ +TITLE='Show image info' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --show-info=5 2> "$ERRFILE" > "$OUTFILE"' +SEDCOMMAND='s@^\( *Time:\).*$@\1@' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test034.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test034.result new file mode 100644 index 00000000..8918f5d5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test034.result @@ -0,0 +1,10 @@ +Information on file 'architecture.png' (folder '/subdir1'): +File: + Mime type: 'image/png' + Size: 4789 byte(s) + Permissions: read/delete + Time: +Thumbnail: + None available. +Audio data: + None available. diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test035.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test035.param new file mode 100644 index 00000000..6573ab36 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test035.param @@ -0,0 +1,3 @@ +TITLE='Thumbnail download' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --get-thumbnail=4 2> "$ERRFILE" > /dev/null' +POSTCOMMAND='mv -f thumb_xexif.jpg "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test035.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test035.result new file mode 100644 index 00000000..71c47600 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test035.result differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test036.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test036.param new file mode 100644 index 00000000..545eea23 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test036.param @@ -0,0 +1,5 @@ +TITLE='Thumbnail download for image w/o thumbnail' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --get-thumbnail=1 2> "$ERRFILE" > "$OUTFILE"' +RESULTCODE=1 +SEDCOMMAND='/^For debugging messages/,$d' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test037.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test037.param new file mode 100644 index 00000000..85070fc4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test037.param @@ -0,0 +1,2 @@ +TITLE='EXIF display' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --show-exif=4 2> "$ERRFILE" > "$OUTFILE"' diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test037.result b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test037.result new file mode 100644 index 00000000..5b757e1e --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test037.result @@ -0,0 +1,23 @@ +EXIF tags: +--------------------+----------------------------------------------------------- +Tag |Value +--------------------+----------------------------------------------------------- +XResolution |72 +YResolution |72 +ResolutionUnit |Inch +Software |exif 0.6.19 +DateTime |2010:09:20 22:35:40 +YCbCrPositioning |Centered +Compression |JPEG compression +XResolution |72 +YResolution |72 +ResolutionUnit |Inch +ExifVersion |Exif Version 2.1 +ComponentsConfigurat|Y Cb Cr - +UserComment |Public domain EXIF test image +FlashPixVersion |FlashPix Version 1.0 +ColorSpace |Uncalibrated +PixelXDimension |32 +PixelYDimension |32 +--------------------+----------------------------------------------------------- +EXIF data contains a thumbnail (312 bytes). diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test038.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test038.param new file mode 100644 index 00000000..4ca3a7b3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test038.param @@ -0,0 +1,5 @@ +TITLE='EXIF display on image w/o EXIF' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --show-exif=1 2> "$ERRFILE" > "$OUTFILE"' +RESULTCODE=1 +SEDCOMMAND='/^For debugging messages/,$d' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test039.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test039.param new file mode 100644 index 00000000..b32be844 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test039.param @@ -0,0 +1,5 @@ +TITLE='EXIF display on non-EXIF PNG' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --show-exif=3 2> "$ERRFILE" > "$OUTFILE"' +RESULTCODE=1 +SEDCOMMAND='/^For debugging messages/,$d' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test040.param b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test040.param new file mode 100644 index 00000000..dd6cf24a --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/data/test040.param @@ -0,0 +1,5 @@ +TITLE='Get all thumbnails' +COMMAND='$PROGRAM --camera="Directory Browse" --port=disk:"$STAGINGDIR" --get-all-thumbnails 2> "$ERRFILE" > "$OUTFILE"' +RESULTCODE=1 +SEDCOMMAND='/^For debugging messages/,$d' +RESULTFILE=/dev/null diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/Makefile.am new file mode 100644 index 00000000..1c309afd --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/Makefile.am @@ -0,0 +1,2 @@ +EXTRA_DIST = gphotobutton.jpg pop.wav smalllogo.png xexif.jpg +SUBDIRS = subdir1 subdir2 diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/gphotobutton.jpg b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/gphotobutton.jpg new file mode 100644 index 00000000..95c5af20 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/gphotobutton.jpg differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/pop.wav b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/pop.wav new file mode 100644 index 00000000..1b69cd1d Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/pop.wav differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/smalllogo.png b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/smalllogo.png new file mode 100644 index 00000000..025191eb Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/smalllogo.png differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/subdir1/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/subdir1/Makefile.am new file mode 100644 index 00000000..80312551 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/subdir1/Makefile.am @@ -0,0 +1 @@ +EXTRA_DIST = architecture.png diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/subdir1/architecture.png b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/subdir1/architecture.png new file mode 100644 index 00000000..603b53f7 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/subdir1/architecture.png differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/subdir2/Makefile.am b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/subdir2/Makefile.am new file mode 100644 index 00000000..1bb8bf6d --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/subdir2/Makefile.am @@ -0,0 +1 @@ +# empty diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/xexif.jpg b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/xexif.jpg new file mode 100644 index 00000000..851cc437 Binary files /dev/null and b/lib/hardware/sensors/gphoto/gphoto2-master/tests/staging/xexif.jpg differ diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/testcamera.pl b/lib/hardware/sensors/gphoto/gphoto2-master/tests/testcamera.pl new file mode 100644 index 00000000..f1fcbe5d --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/testcamera.pl @@ -0,0 +1,293 @@ +#!/usr/bin/perl -w +use strict; + +$ENV{'LANG'} = 'C'; + +my $gphoto2 = "gphoto2"; + +my $debug = 0; + +################################################## + +# auto configured +my $imageformat; +my $havecapture = 0; +my $havetriggercapture = 0; +my $havepreview = 0; +my $havecapturetarget = 0; +my %formats = (); + +# internal + +my $debugcnt = 0; + +my @lastresult = (); +# returns TRUE on success, FALSE on fail +sub run_gphoto2(@) { + my @cmdline = @_; + + if ($debug) { + push @cmdline,"--debug","--debug-logfile=logfile.debug.$debugcnt"; + $debugcnt++; + } + + @lastresult = (); + print STDERR "running: " . join(" ",$gphoto2,@ARGV,@cmdline) . "\n"; + + print LOGFILE "running: " . join(" ",$gphoto2,@ARGV,@cmdline) . "\n"; + open(GPHOTO,'-|',$gphoto2,@ARGV,@cmdline)||die "open $gphoto2"; + while () { + print; + print LOGFILE; + chomp; + push @lastresult, $_; + } + my $rc = close(GPHOTO); + print LOGFILE "returned: $rc\n"; + return $rc; +} + +sub ok($$) { + my ($testres,$text) = @_; + + if ($testres) { + print "$text: SUCCESS\n"; + } else { + print "$text: FAIL\n"; + } +} + +sub remove_all_files { + my @files = <*>; + + foreach my $file (@files) { + next if ($file =~ /logfile/); + print STDERR "deleting $file\n"; + print LOGFILE "deleting $file\n"; + unlink $file; + } +} + +sub run_gphoto2_capture_target($$@) { + my ($nrimages,$text,@cmd) = @_; + + ok(&run_gphoto2(@cmd),"$text: " . join(" ",@cmd)); + + my @files = <*>; + if ($nrimages+1 != @files) { + my $nrfiles = @files; + print STDERR "*** expected $nrimages files, got " . ($nrfiles-1) . "\n"; + print LOGFILE "*** expected $nrimages files, got " . ($nrfiles-1) . "\n"; + } + &remove_all_files(); +} + +sub run_gphoto2_capture($$@) { + my ($nrimages,$text,@cmd) = @_; + my @newcmd = @cmd; + + if ($havecapturetarget) { + my @newcmd = @cmd; + unshift @newcmd,"--set-config-index","capturetarget=0"; + &run_gphoto2_capture_target($nrimages,$text,@newcmd); + + @newcmd = @cmd; + unshift @newcmd,"--set-config-index","capturetarget=1"; + &run_gphoto2_capture_target($nrimages,$text,@newcmd); + } else { + &run_gphoto2_capture_target($nrimages,$text,@newcmd); + } +} + +sub run_gphoto2_capture_formats($$@) { + my ($nrimages,$text,@cmd) = @_; + + if (%formats) { + my @newcmd = @cmd; + + foreach my $format (sort keys %formats) { + print "testing image $format\n"; + @newcmd = @cmd; + unshift @newcmd,"--set-config-index",$formats{$format}; + + if ($format eq "jpg") { + &run_gphoto2_capture($nrimages,$text,@newcmd); + } elsif ($format eq "both") { + &run_gphoto2_capture($nrimages*2,$text,@newcmd); + unshift @newcmd,"--keep-raw"; + &run_gphoto2_capture($nrimages,$text,@newcmd); + } elsif ($format eq "raw") { + &run_gphoto2_capture($nrimages,$text,@newcmd); + unshift @newcmd,"--keep-raw"; + &run_gphoto2_capture(0,$text,@newcmd); + } + } + &run_gphoto2("--set-config-index",$formats{'jpg'}); + } else { + &run_gphoto2_capture($nrimages,$text,@cmd); + } +} + +# START + +my $workdir = `mktemp -d /tmp/testcamera.XXXXXX`; +chomp $workdir; +die "no workdir created" unless -d $workdir; +chdir ($workdir); + +print "Using temporary directory: $workdir\n"; + +open(LOGFILE,">logfile.testcase")||die; + +if (!run_gphoto2("-L")) { + print LOGFILE "No camera attached?\n"; + close(LOGFILE); + die "-L does not work, reason see above\n"; +} + +# Basics +ok(run_gphoto2("--auto-detect"),"testing --auto-detect"); +ok(run_gphoto2("-L"),"testing -L"); +ok(run_gphoto2("-l"),"testing -l"); + +# Autodetect capabilities: capture, preview or trigger capture +ok(run_gphoto2("-a"),"testing -a"); +my @abilities = @lastresult; + +$havecapture = 1 if (grep (/Capture/,@abilities)); +$havetriggercapture = 1 if (grep (/Trigger Capture/,@abilities)); +$havepreview = 1 if (grep (/Preview/,@abilities)); + +ok(run_gphoto2("--summary"),"testing --summary"); +ok(run_gphoto2("--list-config"),"testing --list-config"); + +# Autodetect if some config variables are present + +ok(run_gphoto2("--list-all-config"),"testing --list-all-config"); +my @allconfig = @lastresult; + +$havecapturetarget = 1 if (grep(/capturetarget/,@allconfig)); + +if (grep(/datetime/,@allconfig)) { + ok(run_gphoto2("--get-config","datetime"),"testing --get-config datetime before setting"); + ok(run_gphoto2("--set-config","datetime=now"),"testing --set-config datetime=now"); + ok(run_gphoto2("--get-config","datetime"),"testing --get-config datetime after setting"); +} +if (grep(/artist/,@allconfig)) { + ok(run_gphoto2("--get-config","artist"),"testing --get-config artist before setting"); + my $artist; + foreach (@lastresult) { + $artist = $1 if (/Current: (.*)/); + } + $artist = 0 if ($artist eq "(null)"); + ok(run_gphoto2("--set-config","artist=GPHOTO"),"testing --set-config artist=GPHOTO"); + ok(run_gphoto2("--get-config","artist"),"testing --get-config artist after setting"); + # restore artist + if ($artist) { + ok(run_gphoto2("--set-config","artist=$artist"),"testing --set-config artist=$artist"); + } +} + +my $inimageformat = 0; +my $jpgformat; +my $rawformat; +my $bothformat; +foreach (@allconfig) { + if (/^Label:/) { + #last if ($imageformat); + $inimageformat = 0; + } + if (/^Label: Image Quality 2/) { # Nikon 1 + $imageformat = "imagequality2"; + undef $jpgformat; + undef $rawformat; + undef $bothformat; + $inimageformat = 1; + next; + } + if (/^Label: Image Quality/) { # Nikon + last if ($imageformat eq "imagequality2"); + $imageformat = "imagequality"; + $inimageformat = 1; + next; + } + if (/^Label: Image Format/) { # Canon + $imageformat = "imageformat"; + $inimageformat = 1; + next; + } + next unless ($inimageformat); + + # save only 1 RAW + JPEG format, it always has a "+" inside + if (/^Choice: (\d*) .*\+.*/) { + $bothformat = $1 if (!defined($bothformat)); + next; + } + # Take first jpeg format as default + if (/^Choice: (\d*) .*JPEG/) { + $jpgformat = $1 if (!defined($jpgformat)); + next; + } + if (/^Choice: (\d*) .*Fine/) { + $jpgformat = $1 if (!defined($jpgformat)); + next; + } + if (/^Choice: (\d*) .*(RAW|NEF)/) { + $rawformat = $1 if (!defined($rawformat)); + next; + } +} + +if ($imageformat) { + die "no jpgformat found in $imageformat" unless (defined($jpgformat)); + $formats{'jpg'} = "$imageformat=$jpgformat"; + print "jpg is $formats{'jpg'}\n"; + print LOGFILE "jpg is $formats{'jpg'}\n"; + + if (defined($bothformat)) { + $formats{'both'} = "$imageformat=$bothformat"; + print LOGFILE "both is $formats{'both'}\n"; + print "both is $formats{'both'}\n"; + } else { + warn "no bothformat found in $imageformat"; + } + + if (defined($rawformat)) { + $formats{'raw'} = "$imageformat=$rawformat"; + print LOGFILE "raw is $formats{'raw'}\n"; + print "raw is $formats{'raw'}\n"; + } else { + warn "no rawformat found in $imageformat" + } + if (!defined($rawformat) && !defined($bothformat)) { + undef %formats; + } + +} else { + print "NO imageformat ... just jpeg?\n"; +} + +# Capture stuff lots of it + +if ($havecapture) { + run_gphoto2_capture_formats(1,"simple capture and download","--capture-image-and-download"); + run_gphoto2_capture_formats(3,"multiframe capture and download","--capture-image-and-download","-F 3","-I 3"); + run_gphoto2_capture_formats(1,"waitevent","--wait-event-and-download=10s"); +} +if ($havetriggercapture) { + run_gphoto2_capture_formats(1,"trigger capture","--trigger-capture","--wait-event-and-download=5s"); +} +if (grep (/eosremoterelease/,@allconfig)) { + run_gphoto2_capture(1,"eos remote release","--set-config","eosremoterelease=Immediate","--wait-event=2s","--set-config","eosremoterelease='Release Full'","--wait-event-and-download=5s"); +} + +if (grep (/eosremoterelease/,@allconfig)) { + run_gphoto2_capture(1,"eos remote release","--set-config","eosremoterelease=Immediate","--wait-event-and-download=2s","--set-config","eosremoterelease=Release Full","--wait-event-and-download=5s"); +} + +if ($havepreview) { + ok(run_gphoto2("--capture-preview"),"testing --capture-preview"); + remove_all_files(); + ok(run_gphoto2("--capture-preview"),"testing --capture-preview 2nd time"); + remove_all_files(); +} diff --git a/lib/hardware/sensors/gphoto/gphoto2-master/tests/testsuite b/lib/hardware/sensors/gphoto/gphoto2-master/tests/testsuite new file mode 100644 index 00000000..421cc7a9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/gphoto2-master/tests/testsuite @@ -0,0 +1,130 @@ +#!/bin/bash +# Simple regression test suite for gphoto2 +# Dan Fandrich + +# we expect english text... +export LANG=C +export LANGUAGE=C + +if [ "$1" = "-v" ] ; then + shift + VERBOSECOMMAND='set -x ;' +fi + +test -z "$srcdir" && srcdir=`pwd` + +DATADIR="$srcdir/data" +if [ ! -e "$DATADIR" ] ; then + echo Must run tests from the tests directory + exit 1 +fi + +STAGINGDIR="$srcdir/staging" +chmod u+w "$STAGINGDIR"/*.{png,wav,jpg} +chmod u+w "$STAGINGDIR"/subdir1/*.png +LOGDIR="`pwd`/log" +if [ -e "$LOGDIR" ] ; then + rm -fr "$LOGDIR/"test* +else + mkdir "$LOGDIR" +fi + + +if [ -n "$1" ] ; then + TESTLIST="$@" +else + TESTLIST="$DATADIR"/*.param +fi + +POSTCOMMAND= +# Clean up on test abort +trap 'eval $POSTCOMMAND; exit 1' SIGINT SIGHUP SIGTERM + +FAILEDTESTS=0 + +for TEST in $TESTLIST ; do + echo '' + + # These variables are unlikely to be needed in the test parameters file + TESTNAME=`echo $TEST | sed -e 's@^.*data/@@' -e 's/\..*$//'` + RESULTFILE="$DATADIR/$TESTNAME.result" + + # Initialize variables that can be used within the test parameters file + test -z "$PROGRAM" && PROGRAM=../gphoto2/gphoto2 + OUTFILE="$LOGDIR/$TESTNAME.out" + ERRFILE="$LOGDIR/$TESTNAME.err" + + # Initialize variables that must be set for each test + TITLE= + COMMAND= + PRECOMMAND= + POSTCOMMAND= + SEDCOMMAND= + RESULTCODE=0 + + # Load the test parameters, which can override the above + if [ ! -e "$TEST" ] ; then + echo "Test $TESTNAME FAILED: invalid test parameter file $TEST" + FAILEDTESTS=$(($FAILEDTESTS + 1)) + continue + fi + . "$TEST" + + echo '***' Running \"$TITLE\" test + + # Run a pre-test command + if ! eval $PRECOMMAND ; then + echo Test $TESTNAME FAILED: pre test command failure + FAILEDTESTS=$(($FAILEDTESTS + 1)) + # Unconditionally run post command to clean up + eval $POSTCOMMAND + continue + fi + + #eval echo `echo "$COMMAND" | sed -e 's/>/\\\\>/g' -e "s/'/\\\\'/g" -e 's/\"/\\\\"/g'` + eval $VERBOSECOMMAND $COMMAND + EXITCODE=$? + set +x + if [ $EXITCODE -ne "$RESULTCODE" ] ; then + echo "Test $TESTNAME FAILED: got exit $EXITCODE, expected $RESULTCODE" + # Don't abort now--run the post-test command to clean up first + FAILEDTESTS=$(($FAILEDTESTS + 1)) + test -n "$VERBOSECOMMAND" && cat "$ERRFILE" + fi + + # Run a post-test command + if ! eval $POSTCOMMAND ; then + echo Test $TESTNAME FAILED: post test command failure + FAILEDTESTS=$(($FAILEDTESTS + 1)) + continue + fi + + if [ $EXITCODE -ne "$RESULTCODE" ] ; then + # Delayed exit + continue + fi + + if [ -n "$SEDCOMMAND" ] ; then + mv -f "$OUTFILE" "$OUTFILE".orig + sed "$SEDCOMMAND" < "$OUTFILE.orig" > "$OUTFILE" + fi + + if ! cmp "$RESULTFILE" "$OUTFILE" >/dev/null ; then + echo Test $TESTNAME FAILED: unexpected output + test -n "$VERBOSECOMMAND" && diff -u "$RESULTFILE" "$OUTFILE" + FAILEDTESTS=$(($FAILEDTESTS + 1)) + continue + fi + + echo Test $TESTNAME PASSED +done + +echo '' +if [ $FAILEDTESTS -eq 0 ] ; then + echo All tests have PASSED +else + echo "$FAILEDTESTS test(s) have FAILED" +fi + +# Set the exit code +test "$FAILEDTESTS" -eq 0 diff --git a/lib/hardware/sensors/gphoto/i18n.h b/lib/hardware/sensors/gphoto/i18n.h new file mode 100644 index 00000000..23f96f54 --- /dev/null +++ b/lib/hardware/sensors/gphoto/i18n.h @@ -0,0 +1,52 @@ +/* i18n.h + * + * Copyright © 2001 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __I18N_H__ +#define __I18N_H__ + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define ngettext(String1,String2,Count) (Count==1?String1:String2) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#endif /* __I18N_H__ */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/.github/ISSUE_TEMPLATE/bug_report.md b/lib/hardware/sensors/gphoto/libgphoto2-master/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..5c4e4d29 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,23 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** + +A clear and concise description of what the bug is. + +**Name the camera** +Camera name as shown by gphoto2 --auto-detect or USB IDs + +**libgphoto2 and gphoto2 version** +output of: gphoto2 --version + +**To Reproduce** +Steps to reproduce the behavior: + +When reproducing with the commandline tool, attach debugout using --debug --debug-logfile=debug.log if considered useful. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/.github/ISSUE_TEMPLATE/feature_request.md b/lib/hardware/sensors/gphoto/libgphoto2-master/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..bbcbbe7d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/.github/ISSUE_TEMPLATE/new-camera-support.md b/lib/hardware/sensors/gphoto/libgphoto2-master/.github/ISSUE_TEMPLATE/new-camera-support.md new file mode 100644 index 00000000..5fac01fd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/.github/ISSUE_TEMPLATE/new-camera-support.md @@ -0,0 +1,38 @@ +--- +name: New camera support +about: Support a new camera +title: '' +labels: '' +assignees: '' + +--- + +Fill in fields below. If you don't know how, leave it free. + +**Name of the camera* + +Use the Marketing name. + +**USB IDs** +e.g. by running: lsusb + +**camera summary output** +run + + gphoto2 --summary > summary.txt + +attach summary.txt here + +**camera configuration output** + +gphoto2 --list-all-config > list-all-config.txt + +and attach list-all-config.txt here + +**test capture** + +test if capture perhaps already works: + + gphoto2 --capture-image-and-download + + gphoto2 --capture-preview diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/.gitignore b/lib/hardware/sensors/gphoto/libgphoto2-master/.gitignore new file mode 100644 index 00000000..ce7e26ca --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/.gitignore @@ -0,0 +1,124 @@ +# Object files +*.o +*.ko +*.obj +*.elf +*.gmo + +# Precompiled Headers +*.gch +*.pch + +# Libraries +*.lib +*.a +*.la +*.lo +*.deps/ +*.libs/ + +# Shared objects (inc. Windows DLLs) +*.dll +*.so +*.so.* +*.dylib + +# Executables +*.exe +*.out +*.app +*.i*86 +*.x86_64 +*.hex + +# Debug files +*.dSYM/ + +# backup files +*~ + +# auto generated files +*.pc +.dirstamp +ABOUT-NLS +aclocal.m4 +auto-aux/ +auto-m4/ +autom4te.cache/ +camlibs/all-def-camlibs +camlibs/all-src-camlibs +config.h +config.h.in +config.log +config.status +configure +doc/Doxyfile +doc/Doxyfile-internals +doc/doxygen-output/ +doc/libgphoto2-api.html.stamp +examples/best-iso +examples/lunkwill-canon-capture +examples/sample-afl +examples/sample-autodetect +examples/sample-capture +examples/sample-justfocus +examples/sample-multi-detect +examples/sample-owner +examples/sample-photobooth +examples/sample-preview +examples/sample-tether +examples/sample-trigger-capture +gphoto2-config +libgphoto2/gphoto2-endian.h +libgphoto2_port/ABOUT-NLS +libgphoto2_port/aclocal.m4 +libgphoto2_port/autom4te.cache/ +libgphoto2_port/config.h +libgphoto2_port/config.h.in +libgphoto2_port/config.log +libgphoto2_port/config.status +libgphoto2_port/configure +libgphoto2_port/gphoto2-port-config +libgphoto2_port/INSTALL +libgphoto2_port/libtool +libgphoto2_port/po/boldquot.sed +libgphoto2_port/po/*.header +libgphoto2_port/po/insert-header.sin +libgphoto2_port/po/libgphoto2_port-12.pot +libgphoto2_port/po/Makefile.in.in +libgphoto2_port/po/Makevars +libgphoto2_port/po/Makevars.template +libgphoto2_port/po/POTFILES +libgphoto2_port/po/quot.sed +libgphoto2_port/po/remove-potcdate.sed +libgphoto2_port/po/remove-potcdate.sin +libgphoto2_port/po/Rules-quot +libgphoto2_port/po/stamp-po +libgphoto2_port/stamp-h1 +libgphoto2_port/test/test-gp-port +libgphoto2_port/test/test-port-list +libgphoto2/_stdint.h +libtool +Makefile +Makefile.in +packaging/generic/print-camera-list +packaging/rpm/package.spec +po/boldquot.sed +po/*.header +po/insert-header.sin +po/libgphoto2-6.pot +po/Makefile.in.in +po/Makevars +po/Makevars.template +po/POTFILES +po/quot.sed +po/remove-potcdate.sed +po/remove-potcdate.sin +po/Rules-quot +po/stamp-po +README +stamp-h1 +tests/ddb/check-ddb.sh +tests/test-filesys +tests/test-gphoto2 ++.vscode/ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/.travis-translate-pkgs b/lib/hardware/sensors/gphoto/libgphoto2-master/.travis-translate-pkgs new file mode 100644 index 00000000..45695085 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/.travis-translate-pkgs @@ -0,0 +1,52 @@ +#!/bin/sh + +set -e + +# Translate package names from Ubuntu packages to OSX brew packages +ubuntu2osx() { + case "$1" in + gettext) echo "gettext" ;; + libusb-dev) echo "libusb-compat" ;; + libusb-1.0-0-dev) echo "" ;; # libusb1 default installed on MacOSX currently, formerly was libusb + libcurl4-openssl-dev) echo "" ;; # perhaps defualt installed, lets check + libgd2-xpm-dev) echo "gd" ;; + *) + echo "Error: Unknown package name: '$1'" >&2 + exit 2 ;; + esac +} + +case "$TRAVIS_OS_NAME" in + linux) + echo "autopoint" "$@" + ;; + osx) + accu="gettext" + for pkg in "$@"; do + pkg="$(ubuntu2osx "$pkg")" + accu="$accu $pkg" + done + echo "$accu" + ;; + *) + echo "Unknown TRAVIS_OS_NAME value: '$TRAVIS_OS_NAME'" >&2 + exit 1 +esac + +exit 0 + +# Test this script. +# +# Usage: Type ( into a shell, paste test code, type ) and press Enter. +true < +Design, core implementation, Sierra Imaging library, +Directory Browse library, Mattel library, command-line +interface, gpio design + +Mariusz Zynel +Panasonic DC1000/DC1580 library, command-line interface, +Solaris patches, bug fixing + +Johannes Erdfelt +Digita library, gpio USB support, bug fixes + +Werner Almesberger +Canon A50 library + +Ole W. Saastad +Additions for Canon PowerShot A5 support + +Veros Kaplan +Sierra library bug fixes & folder support + +Wolfgang Reissnegger +Canon A50 library + +Philippe Marzouk +Canon thumbnail and deletion support + +Edouard Lafargue +Canon camera detection, fixes, configuration dialog + +Ole Aamot +GNOME configuration support + +Bart van Leeuwen +OS/2 Port, Sony DSC-F1 updates + +M. Adam Kendall +Sony DSC-F1 library + +Mark Davies +Sony DSC-F55E library + +Beat Christen +gpio serial code + +Gus Hartmann +Minolta Dimage V library + +Raymond Penners +gPhoto2 port of the Sony DSC-F55 library + +Marcus Meissner +Jenoptik JD11 and SiPix Web2 library, +cleanups in the stv680 and other libraries, +PTP 2 driver maintainer. + +Lutz Müller +Konica driver, various clean-up all over the place + +Fredrik +Canon driver, all but serial specific things. + +Hans Ulrich Niedermann +Canon driver, package building, hotplug, and various other things + +Christophe Barbé +Release building and small fixes. + +Dennis Noordsij , Philipp Poeml +Agfa CL20 driver. + +Theodore Kilgore +aox, clicksmart310, digigr8, iclick, mars, sq905, sonix libraries. + +Stephen Pollei +iclick library. + +Paul Walmsley +Canon 5D (class 6) capture support. Thanks to the Internet +Archive, , for funding the development +of this code. This code is used in the Internet Archive's book +scanner. + +Hans de Goede +ST2205 Picture Frame support (and usbdiskdirect port driver). + +========================================================================= +git migration authors + +ap2c=Aurelien Croc (AP262C) +asl=Arnaud Launay +barbe=Christophe Barbe +bellet=Fabrice Bellet +berrange=Daniel P. Berrange +cmarqu=Colin Marquardt +cpinkham=Chris Pinkham +cweinholz=Carsten Weinholz +deater=Vince Weaver +dfandrich=Dan Fandrich +donn=Donn Morrison +dotsphinx=Raymond Penners +ggrandou=Gilles Grandou +gus_hartmann=Gus Hartmann +hfiguiere=Hubert Figuiere +hun=Hans Ulrich Niedermann +ikonst=Ilya Konstantinov +ingram=Greg Ingram +jerdfelt=Johannes Erdfelt +jgangemi=Jae Gangemi +jwrdegoede=Hans de Goede +kil3r=Mariusz Woloszyn +kilgota=Theodore Kilgore +kinimod=Dominik Kuhlen +koltan=Michael Koltan +leibnitz27=Lee Benfield +lodewyck=Jerome Lodewyck +lutz=Lutz Mueller +marcusmeissner=Marcus Meissner +mariusz=Mariusz Zynel +mattmartin=Matt Martin +mrensing=Michael Rensing +nathanstenzel=Nathan Stenzel +ofauchon=Olivier Fauchon +patmans=Patrick Mansfield +pbk2513=Peter Kajberg +philm=Philippe Marzouk +polesworth=Miah Gregory +scottf=Scott Fritzinger +sean_bruno=Sean Bruno +steph-c=Stephane Castejon +swestin=Stephen H. Westin +tillsan=Till Adam +trawny99=Michael Trawny +twaugh=Tim Waugh +womprat=David Hogue +ole=Ole Aamot +phillh= PhillH +(no author)=No author known +pauljenn=Paul Jenner +gdr=Gary Ross +bpaauwe=Bob Paauwe +mmartin=Matt Martin +scottr=Randy D. Scott +hartmann=Gus Hartmann +elegowsk=Ed Legowski +kmaraas=Kjartan Maraas +pablo=Pablo Saratxaga +ahyden=Andreas Hyden +frob=Valek Filippov +simpson2=bvl +bratislav=Benedikt Roth +rasta=Yuri Syrota +minmax=Andraz Tori +ke=Karl Eichwalder +cgabriel=Christopher R. Gabriel +bansz=Unknown +root=Root +kail=Kai Lahmann +uid31719=uid31719 +uid31868=uid31868 +uid36478=uid36478 +fredrikt=Fredrik +uid34756=uid34756 +troncon=Remko Troncon +uid64678=uid64678 +adburton=Andrew Burton +trickymctrick=Patrick van Staveren +Mutant_Fruit=Alan McGovern +dpv=David PHAM-VAN diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/COPYING b/lib/hardware/sensors/gphoto/libgphoto2-master/COPYING new file mode 100644 index 00000000..213a1ab7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/COPYING @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright © 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright © + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/ChangeLog new file mode 100644 index 00000000..925a2683 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/ChangeLog @@ -0,0 +1,6681 @@ +2010-07-10 Dan Fandrich + + * Fixed some C89 portability issues. + * Eliminated some compiler warnings, fixing a couple of small + bugs in the process. + +2010-03-12 Hans de Goede + + * camlibs/st2205: New camera driver for ST2205 based picture frames. + * libgphoto2_port/usbdiskdirect: USB Disk direct acccess driver + (for ST2205 based picture frames.) + * New dependency for "libgd" for image conversion for above driver. + * configure.ac, camlibs/Makefile.am: hooked up new camlib, new gd check. + +2010-03-06 Marcus Meissner + + * gphoto2/gphoto2-context.h, libgphoto2/gphoto2-context.c: + Make context functions not use varargs anymore to pass + strings out to frontends. The backends still pass in varargs + strings. + This will ease binding implementations. + +2009-12-13 Marcus Meissner + + * gphoto2/gphoto2-widget.h, libgphoto2/gphoto2-widget.c: + added set_ and get_ readonly for Widgets. + +2009-07-30 Dan Fandrich + + * Fixed a bunch of C89 and SUS portability issues. + +2009-04-13 Marcus Meissner + + * gphoto2-filesys.c: Disabled LRU caching. + + * gp_file_new_from_handler(): Allow passing data in and out via + handler functions (to allow streaming). + + * CameraFileInfoFile: removed "name" structmember and + GP_FILE_INFO_NAME flags. Use direct passing in of the filename + to the API functions. + + * New: gp_camera_autodetect(CameraList *list, GPContext*); + + Simple autodetection function returning all current detected cameras. + + * (TODO: not yet New: gp_camera_open (Camera *camera, const char *name, const char *port, GPContext *context); + + Simple open function without needing to involve libgphoto2_port. + ) + * gp_file_set_name() and _get_name() passing in is no longer + needed and the API will go away. + + * New gp_file_get_name_by_type() will convert a regular filename + ("normal") into one depending on type (e.g. "raw_" prefix) and + adjusted suffix (like ".ppm" turning into ".pgm" for grayscale + previews). + + * gp_file_set_type() and gp_file_get_type() are gone, these + functions are now implicit passed via arguments to the the + put_file and set_file_noop() functions. + + * gp_filesystem_set_info_noop(), gp_filesystem_set_file_noop(), + gp_filesystem_put_file(), gp_camera_folder_put_file(): + + Added "filename" argument to pass in the filename. The one + from CameraFileInfoFile and CameraFile are no longer used. + + Added "type" argument to pass in the filetype (GP_FILE_TYPE_*). + + * Adjusted to new GPPortInfo handling. + + * Rewrote gphoto2-filesys.c to be directory based (in a tree + structure). Change should not be visibile outside of gphoto2-filesys.c. + +2008-05-18 Marcus Meissner + + * libgphoto2/gphoto2-filesys.c: Do not try to extract EXIF data + if the file is too large. This avoids memory allocating for + file descriptor based downloads. + +2008-05-06 Hubert Figuiere + + * camlibs/ptp2/library.c: Added Nikon P5100 + +2008-04-20 Theodore Kilgore + + * libgphoto2/bayer.h: gp_ahd_interpolate() and gp_ahd_decode() added. + * libgphoto2/ahd_bayer.c: added. + * libgphoto2/Makefile.am: ahd_bayer.c hooked up. + * libgphoto2/libgphoto2.sym: gp_ahd_decode and gp_ahd_interpolate listed. + + +2008-03-31 Marcus Meissner + + * libgphoto2/gphoto2-abilities-list.c: Use qsort() instead + of bubble sort. Saves 0.4 seconds on a 2Ghz machine. + + Found by Szigeti Janos. + +2008-02-26 Marcus Meissner + + * packaging/generic/print-camera-list.c: + + HAL's "info.bus" is been called "info.subsystem" now. + +2007-10-21 Marcus Meissner + + * gphoto2/gphoto2-filesys.h: Change long + to uint64_t, int to uint32_t to fix the struct + sizes to a better known value (mostly for C#). + Include , a ISO C99 feature. + + This changes the "CameraFileInfo" and "CameraStorageInformation" + struct sizes on all platforms. + +2007-10-16 Marcus Meissner + + * libgphoto2/gphoto2-list.c: Removed artificial limit + on entries in CameraList (now dynamic) and also + the artificial limit on name/value (now dynamic). + + This is source code compatible, but not ABI compatible. + + Bumped SO version to 6 (with libtool increment rules). + +2007-07-25 Hubert Figuiere + + * camlibs/ptp2/library.c: Added Kodak Z712 IS + +2007-06-21 Hubert Figuiere + + * camlibs/ptp2/library.c: Added Canon A560 + +2007-05-28 Hubert Figuiere + + * camlibs/ptp2/library.c: Added Nikon Coolpix L10. + +2007-05-27 Hubert Figuiere + + * camlibs/ptp2/library.c: Added Canon A570 IS. + +2007-05-05 Hubert Figuiere + + * camlibs/ptp2/library.c: Added FujiFilm F40 fd + http://gphoto.org/bugs/?id=1713438 + +2007-04-08 Hubert Figuiere + + * camlibs/directory/directory.c: added more RAW types. + Should fix bug #1696551 + http://gphoto.org/bugs/?id=1696551 + +2007-03-01 Marcus Meissner + Theodore Kilgore + + * libgphoto2/bayer.{c,h}: Enhanced bayer algorithm. + +2007-01-31 Hubert Figuiere + + * camlibs/ptp2/library.c: added Coolpix P4. + added Kodak P880 + +2007-01-21 Marcus Meissner + + * libgphoto2/gphoto2-filesys.c: + Bugfixes for LRU double linked list handling. + +2007-01-03 Hubert Figuiere + + * libgphoto2_port/disk/disk.c (gp_port_library_list): handle + automounter properly when there is no HAL. + + * camlibs/directory/directory.c (file_list_func): ignore entries + that start with '.' + (folder_list_func): ignore entries that start with '.' + Some code style cleaning. + +2006-11-25 Hubert Figuiere + + * libgphoto2_port/configure.ac: bump soname for libgphoto2_port + post 2.3.0 branch + + * configure.ac: 2.3.0.1.trunk because we branched 2.3.0 + +2006-10-14 Hubert Figuiere + + * camlibs/panasonic/l859/l859.c, + camlibs/enigma13/enigma13.c (enigma13_get_toc), + camlibs/panasonic/l859/README.panasonic-l859, + camlibs/panasonic/dc.h: Fixed typo + https://launchpad.net/distros/ubuntu/+source/libgphoto2/+bug/61163 + + +2006-10-07 Hubert Figuiere + + * camlibs/canon/canon.c, camlibs/konica/qm150.c, + camlibs/ptp2/ptp.c, camlibs/sierra/library.c, + camlibs/sierra/sierra-desc.c, doc/camlib_devel.lyx, + libgphoto2/gphoto2-abilities-list.c: s/occured/occurred/ + From Launchpad bug 61163: + https://launchpad.net/distros/ubuntu/+source/libgphoto2/+bug/61163 + +2006-09-19 Hubert Figuiere + + * camlibs/ptp2/config.c: More typo. + + * camlibs/gsmart300/library.c (delete_file_func): Fixed typo + + * camlibs/ptp2/ptp.h (PTP_DPC_NIKON_WhiteBalanceFluorescentBias): + Change typo in the const name + + * camlibs/stv0680/bayer.c (light_enhance), + camlibs/minolta/dimagev/dimagev.c, + camlibs/konica/qm150.c (camera_manual), + camlibs/spca50x/library.c (delete_file_func), + camlibs/canon/usb.c (canon_usb_camera_init), + camlibs/sierra/olympus-desc.c, + camlibs/ptp2/ptp.c (ptp_get_property_description), + libgphoto2/gphoto2-camera.c (gp_camera_init), + camlibs/ptp2/library.c (camera_canon_capture): Fix typos + https://launchpad.net/products/libgphoto/+bug/61163 + +2006-06-07 Hubert Figuiere + + * AUTHORS: added credits for 5D capture support. + +2006-04-18 Hubert Figuiere + + * configure.in: 2.2.0trunk version + +2006-03-21 Marcus Meissner + + * libgphoto2/gphoto2-camera.[ch]: + + Added gp_camera_wait_for_event() API, to wait for + specific camera events and return them to the caller. + See camlibs/ptp2/library.c for an example usage. + + Contributed by Edward Flick . + +2006-01-27 Theodore Kilgore + + * camlibs/clicksmart310/*: Supports Logitech Clicksmart 310. + * configure.in: camlibs/clicksmart310 hooked up. + * AUTHORS: author of camlibs/clicksmart310 added. + * MAINTAINERS: maintainer of camlibs/clicksmart310 added. + +2006-01-04 Hubert Figuiere + + * configure.in: bump the .so version + +2005-12-26 Hubert Figuiere + + * CHANGES: updated for 2.1.99 + +2005-12-25 Hubert Figuiere + + * configure.in: Version 2.1.99 (pre-release) + +2005-12-06 Theodore Kilgore + + * camlibs/digigr8/*: New camera library for 0x2770:0x905c cameras. + * configure.in: camlibs/digigr8 hooked up. + * AUTHORS: author of camlibs/digigr8 added. + * MAINTAINERS: maintainer of camlibs/digigr8 added. + + +2005-08-31 Hubert Figuiere + + * bindings/csharp: C# binding from f-spot 0.1.1 + +2005-08-30 Hubert Figuiere + + * bindings/java: Java bindings from patch# 1108091 + http://sf.net/tracker/?func=detail&aid=1108091&group_id=8874&atid=308874 + * bindings/python: Python binding from patch# 1152835 + http://sf.net/tracker/?func=detail&aid=1152835&group_id=8874&atid=308874 + +2005-08-25 Marcus Meissner + + * libgphoto2/gphoto2-filesys.c + + Got rid of most LRU heuristics, simplified to just store + the last full datastreams. + This should be fully sufficient for 99.9% of all usecases + (download images lineary). + + You can control this by the setting "libgphoto2" , "cached-images". + +2005-08-14 Marcus Meissner + + * camlibs/directory.c, libgphoto2_port/disk, + libgphoto2/gphoto2-abilities-list.c: + + Added support for mounted digitalcameras (USB + mass storage based). + + Port type is: + disk:/full/path/ + Camera driver is: + "Directory Browse" + +2005-06-27 Hubert Figuiere + + * po/ru.po: Update ru.po + +2005-06-11 Hans Ulrich Niedermann + + * configure.in: new version 2.1.99.head.0 + * camlibs/**/Makefile.am: link camlibs as libtool modules with + shorter names and explicit symbol list + * libgphoto2/Makefile.am: link libgphoto2 with explicit symbol list + +2005-06-08 Theodore Kilgore + + * libgphoto2_port/: added functions to support new request types + * camlibs/sonix: initial hookup + * configure.in: hooked up camlibs/sonix + +2005-05-13 Marcus Meissner + + * po/eu.po: new baskish from Hizkuntza Politikarako Sailburuordetza + +2005-04-14 Hans Ulrich Niedermann + + * */configure.in, */Makefile.am, ...: updated build system. + See "./autogen.sh --help" and ./configure --help" for help. + +2005-04-05 Hubert Figuiere + + * camlibs/ptp: removing obsolete camlib. + +2005-03-30 Hans Ulrich Niedermann + + * libgphoto2/gphoto2-file.c: replace stricmp() by strcasecmp() + #include should take care of + portability of strcasecmp() + +2005-02-07 Marcus Meissner + + * libgphoto2/gphoto2-filesys.c: + Use the minimum of the 3 exif timestamps (time, capture time, + digitized time). This fixes use on the Traveller SX330Z as + reported. + +2005-01-18 Marcus Meisser + + * po/ru.po: Update thanks to Vyacheslav Dikonov + +2005-01-17 Colin Marquardt + + * po/ja.po: Update thanks to Takeshi AIHANA. + +2004-12-15 Hubert Figuiere + + * configure.in: 2.1.5 + +2004-11-26 Hubert Figuiere + + * configure.in: 2.1.5rc1 + +2004-11-26 Theodore Kilgore + + * camlibs/iclick/*: New camera driver written by T. K. and + Stephen Pollei . + * configure.in: camlibs/iclick hooked up. + * AUTHORS: authors of camlibs/iclick added. + * MAINTAINERS: listed T. K. as the (current) maintainer. + +2004-11-18 Lutz Mueller + + * camlibs/kodak/Makefile.am: Hook up the new ez200-driver. + +2004-11-18 Lutz Mueller + + * camlibs/kodak/ez200/*: New camera driver written by + Edo . Slightly modified to remove some + warnings. + * configure.in: Hook it up. + +2004-11-17 Hubert Figuiere + + * configure.in + * camlibs/toshiba: Revert deletion of driver pdrm11 + +2004-11-17 Lutz Mueller + + * configure.in + * camlibs/toshiba: Removed on request of Sean Bruno + (camera is supported by sierra driver). + +2004-10-28 Hubert Figuiere + + * libgphoto2/gphoto2-context.h: Fix build for gcc 2.95 + (bug #1055868) + +2004-10-18 Hubert Figuiere + + * TESTERS: add myself as tester for Canon 20D + +2004-08-23 Marcus Meissner + + * libgphoto/gphoto-result.h: Add gcc attributes + to specify format strings, so the compiler can warn + about misuse. + + * libgphoto2/gphoto2-filesys.c: Fixed 2 problems with + format strings / arguments. + + * libgphoto2/gphoto2-result.h: Translate libgphoto errors. + +2004-08-02 Hans Ulrich Niedermann + + * configure.in: Removed Toshiba PDR-M65 driver + * camlibs/toshiba/pdrm65/: Removed Toshiba PDR-M65 driver. + PDR-M65 uses the Sierra protocol. + +2004-07-14 Hans Ulrich Niedermann + + * configure.in: Added camlibs/toshiba/pdrm65/Makefile + * camlibs/toshiba/pdrm11/Makefile.am: Renamed current PDR-M11 + camlib "toshiba" to "toshiba_pdrm11" + * camlibs/toshiba/pdrm65/: Added files for PDR-M65 driver. + The PDR-M65 driver is developed by Sean Bruno. + +2004-05-29 Theodore Kilgore + + * MAINTAINERS: added myself as maintainer of aox, mars, sq905 camlibs. + + +2004-05-29 Theodore Kilgore + + * AUTHORS: added myself as author of aox, mars, sq905 camlibs. + + + +2004-05-13 Raymond Penners + + * camlibs/sonydscf55: Merged in Sony DSC-F55 patches from Alberto + Garlassi: added support for downloading MPEG files, and fixed + thumbnail downloading. + + +2004-05-01 Theodore Kilgore + + * configure.in: Hook up camlibs/mars + + +2004-04-08 Raymond Penners + + * camlibs/sonydscf55: Merged in patch from Alberto Garlassi: + serial communication fixes on fast CPUs, and the native file names + are now used (instead of using the hardcoded "dsc%05d.jpg"). + + +2004-01-06 Marcus Meissner + + * Multiple USB camera support. + +2003-11-19 Theodore Kilgore + + * configure.in: Hook up camlibs/aox (driver by Theodore Kilgore). + + +2003-11-16 Patrick Mansfield + + * libgphoto2 gphoto2-camera.c, gphoto2-result.c, gphoto2-result.h: + Return GP_ERROR_CAMERA_BUSY if a command or I/O is in progress. + +2003-08-27 Christophe Barbe + + * libgphoto2/gphoto2-filesys.c: Return the max when unable to know + the available memory instead of failing to build. + +2003-06-26 Lutz Mueller + + * configure.in: Hook up camlibs/sq905 (driver by Theodore Kilgore + + + * gphoto2/main.c, po/*.po: + s/gphoto-devel@gphoto.org/gphoto-devel@lists.sourceforge.net/ + +2003-05-26 Hans Ulrich Niedermann + + * configure.in: 2.1.2rc1, with CVS tag + * libgphoto2/gphoto2-ability-list.c: replace colon by space + +2003-05-17 Hans Ulrich Niedermann + + * configure.in: 2.1.2dev9, with CVS tags + * configure.in: 2.1.2dev10, without CVS tags, for development + +2003-05-12 Marcus Meissner + + * configure.in: disabled gsmart, benq, spca504_flash camlibs + (now replaced by spca50x camlib). + Handle camlibs with - in the name by replacing it with _. + +2003-05-12 Hans Ulrich Niedermann + + * configure.in: 2.1.2dev8 + +2003-05-12 Marcus Meissner + + * configure.in: added agfa-cl20 driver (from cl20.poeml.de). + * CHANGES: adapted. + * AUTHORS: added agfa-cl20 authors. + +2003-05-05 Marcus Meissner + + * configure.in: removed ptp driver (now replaced by ptp2) + * MAINTAINERS: ptp -> ptp2 + +2003-02-26 Hubert Figuiere + + * configure.in: added toshiba/pdrm11 to build + * MAINTAINERS: added toshiba/pdrm11 maintainer + +2003-02-21 Hans Ulrich Niedermann + + * doc/Makefile.am: renamed man pages + * doc/gphoto2.3,doc/gphoto2_port.3: removed + * doc/libgphoto2.3,doc/libgphoto2_port.3: added + +2003-02-01 Patrick Mansfield + + * TESTERS: Added Valentin Rusu as a tester for the Epson PhotoPC 850z + +2002-12-03 Marcus Meissner + + * Imported stv0674 camlib from Vincent Sanders . + +2002-11-21 Patrick Mansfield + + * libgphoto2/gphoto2-camera.c: Allow a NULL for the path to be + passed to the camera capture. + +2002-11-12 Lutz Mueller + + * libgphoto2/gphoto2-version.c: Use HAVE_CC only if defined. + +2002-11-10 Lutz Müller + + * libgphoto2/gphoto2-widget.[c,h] (gp_widget_set_value): Make the + argument const. + +2002-11-08 Hans Ulrich Niedermann + + * configure.in: 2.1.1dev10, increased AGE to 3 + * libgphoto2/gphoto2-version.[ch]: added + * libgphoto2/Makefile.am: added gphoto2-version.[ch] + +2002-11-06 Hans Ulrich Niedermann + + * camlibs/*/Makefile.am: + * libgphoto2/Makefile.am: + * libgphoto2/libgphoto2.pc.in: + * configure.in: made camlibdir settable by cmdline option + +2002-11-01 Hans Ulrich Niedermann + + * configure.in: 2.1.1dev9 + +2002-10-17 Hans Ulrich Niedermann + + * libgphoto2/gphoto2-abilities-list.c: removed the fscking "can't load *.la" message + * libgphoto2_port/m4/documentation.m4: removed unnecessary stuff (xmlto, fig2dev, etc.) + * configure.in: 2.1.1dev8 + +2002-10-13 Hans Ulrich Niedermann + + * *.am, libgphoto2_port/m4/packaging.m4, libgphoto2_port/m4/packaging.m4: moved definition of docdir from Makefile.am to m4 macros + * configure.in: 2.1.1dev7 + +2002-10-03 Lutz Müller + + * libgphoto2/gphoto2-abilities-list.[c,h] (gp_abilities_list_reset): + New. + * configure.in: Reflect above changes in VERSION. + +2002-09-28 Marcus Meissner + + * Imported SiPix StyleCam Blink driver from + Vincent Sanders + +2002-09-12 Hans Ulrich Niedermann + + * configure.in: 2.1.1dev6 + +2002-08-29 Lutz Müller + + * libgphoto2/gphoto2-filesys.c: Cosmetic changes. Made code consistent + to reflect the assumption that only GP_FILE_TYPE_[RAW,AUDIO,NORMAL] + contain a significant amount of data that needs to be removed from + cache. + +2002-08-29 Lutz Müller + + * libgphoto2/gphoto-file.c (gp_file_get_data_and_size): If data or + size is NULL, ignore it. + +2002-08-28 Hans Ulrich Niedermann + + * configure.in: 2.1.1dev5 (LRU cache, new drivers, etc.) + removed multiple intl/Makefile and po/Makefile + added by gettextize + +2002-08-26 Hubert Figuiere + + * MAINTAINERS: Added Kodak DC210 maintainer. + +2002-08-23 Hubert Figuiere + + * configure.in: added largan/lmini driver + * camlibs/largan/lmini: new driver for Largan Lmini + +2002-08-22 Christophe Barbé + + * configure.in: test for /proc/meminfo (HAVE_PROCMEMINFO). + * libgphoto2/gphoto2-filesys.c: Use HAVE_PROCMEMINFO. + +2002-08-22 Christophe Barbé + + * libgphoto2/gphoto2-filesys.c: Implemented code to free cached data when + we are going out of memory. + I still have to add a test in configure for the /proc filesystem. + +2002-08-21 Vincent Weaver + + * camlibs/agfa/: Move camlibs/agfa to camlibs/soundvision + * camlibs/agfa/: Rename agfa files to new soundvision scheme + * camlibs/agfa/: Minor fixes for Tiger Fast Flicks support + +2002-08-14 Christophe Barbé + + * libgphoto2/gphoto2-filesys.c: LRU implementation for the filesystem + cache. + +2002-08-14 Peter Kajberg + + * MAINTAINERS: Add myself as camlibs/pccam600 maintainer. + * configure.in + * camlibs/pccam600: New driver for Creative PC-CAM600 + +2002-08-09 Till Adam + + * MAINTAINERS: Add myself as camlibs/gsmart maintainer. + +2002-08-08 Lutz Müller + + * configure.in: Create camlibs/gsmart/Makefile. + +2002-08-08 Lutz Müller + + * configure.in + * camlibs/gsmart: New driver by Till Adam . + +2002-08-01 Hubert Figuiere + + * libgphoto2/gphoto2-list.c (exchange): changed strcpy with memcpy + that prevents unterminated strings overflow. + +2002-09-01 Lutz Müller + + * MAINTAINERS: Uli does the mailing lists. + +2002-09-01 Lutz Müller + + * MAINTAINERS: Arnaud is now responsible for autogen.sh. Added + myself on top of Scott regarding libgphoto2(_port). + +2002-07-30 Hans Ulrich Niedermann + + * autogen.sh: new package name: libgphoto2 + * configure.in: 2.1.1dev3 -> 2.1.1dev4 + +2002-07-29 Lutz Müller + + * README: First attempt to separate gphoto2 from libgphoto2. + +2002-07-28 Lutz Müller + + * configure.in: Detect new version of libexif (forgot to check + that in the last time). + * frontends: Removed. Now in the "gphoto2" module. + +2002-07-27 Hans Ulrich Niedermann + + * configure.in: new package name: libgphoto2 + +2002-07-25 Christophe Barbé + + po files from Stefan Bj|rnelund + + * po/sv.po: Update Swedish translation. + +2002-07-25 Lutz Müller + + * configure.in: Detect new version of libexif. + * frontends/command-line/actions.c: + * libgphoto2/gphoto2-filesys.c: Adjust to new version of libexif + (if found). + +2002-07-24 Hans Ulrich Niedermann + + * configure.in: 2.1.1dev3 + * doc/gphoto2.xml: added reference to CSS stylesheet + * doc/docbook-xml.css: added CSS stylesheet for Docbook XML + +2002-07-17 Lutz Müller + + * libgphoto2/libgphoto2.pc.in: Add driverdir variable. + +2002-07-14 Hans Ulrich Niedermann + + * autogen.sh: explicitly delete autogenerated files and dirs not in CVS + * configure.in: 2.1.1dev2, fixed typo in message + +2002-07-12 Lutz Müller + + * configure.in: Use ltdl if available. + +2002-07-06 Patrick Mansfield + + * MAINTAINERS: Add myself to camlibs/sierra + +2002-07-05 Lutz Müller + + * configure.in: Add camlibs/sx330z. + +2002-06-27 Lutz Müller + + Patch from Arnaud Launay : + + * autogen.sh: Call libtoolize - newer automakes don't call it + automatically. + +2002-06-27 Lutz Müller + + Patch from Arnaud Launay : + + * Makefile.am: /$(TAR)/tar/ + +2002-06-24 Christophe Barbé + + Patch for FreeBSD from Arnaud Launay + + * configure.in: Use -pthread instead of -lc_r, libtool 1.4.2a doesn't + like -lc_r (unlike plain 1.4.2). + +2002-06-21 Christophe Barbé + + po files from Takeshi AIHANA + + * po/ja.po: Update Japan translation. + +2002-06-20 Lutz Müller + + * ABOUT-NLS: Remove this file, it is generated by gettextize. + +2002-06-19 Hubert Figuiere + + * camlibs/minolta/NEWER_MINOLTAS (UPDATE): updated the statement + about newer Minolta camera support. + +2002-06-19 Christophe Barbé + + * Makefile.am: Added CHANGES in EXTRA_DIST. + +2002-06-19 Lutz Müller + + * configure.in: Make the check for cdk.h search in $ac_default_prefix. + Make checks for libjpeg, libexif, libcdk, etc. consistent. + +2002-06-19 Lutz Müller + + Suggestion from Hans Ulrich Niedermann : + + * autogen.sh: Remove the call to configure. + +2002-06-19 Lutz Müller + + Suggestion from Arnaud Launay : + + * configure.in: Let users specify where to look for libjpeg + (--with-jpeg-prefix). + +2002-06-18 Christophe Barbé + + po file from Fabian Mandelbaum + + * po/es.po: Spanish translation. + +2002-06-18 Lutz Müller + + * configure.in: AC_PREREQ(2.50), because otherwise, + --enable-maintainer-mode will fail somehow. + +2002-06-17 Lutz Müller + + Patch by Arnaud Launay : + + * doc/gphoto2.xml: Add missing '>'. + +2002-06-17 Lutz Müller + + Marcus Meissner explained me how what + --enable-maintainer-mode is for: + + * Makefile.am: Uncomment the automake and aclocal flags. + +2002-06-17 Lutz Müller + + Patch by Arnaud Launay , which corrects the + previous patch: + + * Makefile.am: Correct the flags to tar. + +2002-06-17 Lutz Müller + + Patch by Arnaud Launay , slightly modified: + + * Makefile.am: Get rid of the automake flags, use --bzip2 instead of + -j. + +2002-06-17 Christophe Barbé + + Patch by Arnaud Launay + + * doc/Makefile.am : Don't try to move figures when fig2dev is not there. + +2002-06-17 Christophe Barbé + + * Makefile.am: Removed autogen.sh from EXTRA_DIST. + +2002-06-17 Christophe Barbé + + * configure.in: 2.1.0 branch created, main branch version 2.1.1dev1. + +2002-06-17 Mariusz Woloszyn + + * doc/FAQ: Added "gphoto2 does not work..." general question + +2002-06-15 Lutz Müller + + * configure.in: Fix readline error message. + +2002-06-15 Christophe Barbé + + Patch by Arnaud Launay + + * autogen.sh: Copy po/Makevars.template to po/Makevars when necessary. + +2002-06-14 Lutz Müller + + * libgphoto2/gphoto2-abilities-list.c: Cleanup the ltdl-specific + part. + +2002-06-14 Lutz Müller + + Patch by Arnaud Launay , slightly enhanced: + + * autogen.sh: If gettext --version is something like 0.11.*, + add the --intl option to gettextize. + +2002-06-14 Lutz Müller + + * libgphoto2/Makefile.am: + * configure.in: Fix (?) -version-info + +2002-06-14 Lutz Müller + + * configure.in: Given the pending release, it is safer to disable + the use of the buggy libltdl. + +2002-06-14 Lutz Müller + + Suggested by Arnaud Launay , slightly modified: + + * configure.in: Simplify check for readline. + +2002-06-13 Hans Ulrich Niedermann + + * doc/figures/Makefile.am: don't build images we don't even use + * doc/Makefile.am: + - clean pdf and ps files if generated + - install pdf and ps manuals + - create figures before building manual + - made pdf and ps manual creation work when srcdir != builddir + - added symlink in manual/ to enable people to view manual in src tree + - use $(AMTAR) and install only the png and html files for the html manual + +2002-06-13 Lutz Müller + + Patch by Arnaud Launay , slightly corrected: + + * configure.in: Fix check for readline. + +2002-06-13 Hans Ulrich Niedermann + + * configure.in: 2.0.1dev13 (because of lots of build changes) + * doc/figures/Makefile.am: only install png images, but still build jpg and eps + * doc/Makefile.am: use $(XMLTO) instead of xmlto everywhere + +2002-06-12 Christophe Barbé + + * doc/Makefile.am: no more figures link. install only png files for the + user manual. + +2002-06-12 Lutz Müller + + * configure.in: + * libgphoto2/gphoto2-abilities-list.c: Make libgphoto2 + use ltdl.h. I needed to introduce a global variable - code is + marked as UGLY_HACK. If you know how to fix it, please tell me. + +2002-06-12 Lutz Müller + + * configure.in: + * libgphoto2/gphoto2-camera.c: + * libgphoto2/gphoto2-abilities-list.c: Fixes for HAVE_LTDL. Still + doesn't work. + +2002-06-12 Christophe Barbé + + * libgphoto2_port/m4/documentation.m4: Added --with-doc-formats option and + removed xmlto tests to find the available formats. + * libgphoto2_port/configure.in: Duplicated tr hack from main configure.in. + +2002-06-12 Lutz Müller + + * doc/FAQ: New entry. + +2002-06-09 Hans Ulrich Niedermann + + * configure.in: 2.0.1dev11 (because of build changes) + +2002-06-06 Lutz Müller + + * autogen.sh: No need for configuring the whole thing 3 times... + +2002-06-06 Lutz Müller + + * autogen.sh: Fix the order of processing libgphoto2_port and . + +2002-06-06 Lutz Müller + + * intl: Remove these files - they should be generated by gettextize. + * autogen.sh: Check for and run gettextize. + +2002-06-06 Lutz Müller + + * INSTALL: Fix the aclocal command. + +2002-06-06 Lutz Müller + + * acconfig.h: According to + http://www.gnu.org/manual/autoconf-2.53/html_mono/autoconf.html, + this file is obsolete. + * configure.in: Adapt to above. + +2002-06-04 Hans Ulrich Niedermann + + * configure.in: 2.0.1dev10 + * doc/gphoto2.xml: reformatted preparing for PDF + * doc/FAQ: added note about stv680 kernel driver + * INSTALL: autogen.sh works for me, also with older autotools than + Lutz mentioned, so I added note about that + +2002-06-03 Lutz Müller + + * INSTALL: Add note about outdated autogen.sh. + +2002-05-30 Hans Ulrich Niedermann + + * configure.in: 2.0.1dev9, as we have a manual now + * configure.in: added manual doc message, named API doc msg like + that, reformatted messages a little + * doc/Makefile.am: build manual only if possible, + clean manual only if building possible + * doc/gphoto2.xml: + - add "QuickStart" chapter + - improved existing setup chapter + - added first part of developer (API) documentation + - added chapter on ideas for the future + - added appendix with resources + +2002-05-26 Hans Ulrich Niedermann + + * doc/gphoto2.xml: added gphoto2_port(3) man page + +2002-05-26 Hans Ulrich Niedermann + + * doc/Makefile.am: only include rules if corresponding programs exist + +2002-05-25 Hans Ulrich Niedermann + + * doc/gphoto2.xml: moved content of gphoto2.txt here + * doc/gphoto2.txt: declared file obsolete + * doc/Makefile.am: make man pages with command displayed, + make html pages out of gphoto2.xml + +2002-05-20 Christophe Barbe + + * camlibs/canon/canon.c: mtime is now converted to UTC as expected. + +2002-05-20 Tim Waugh + + * doc/gphoto2.xml: Add note in gphoto2(1) about how ranges are + interpreted. + * doc/gphoto2.1: Regenerated. + +2002-05-20 Christophe Barbe + + * frontends/command-line/main.c: fixed my previous fix. + +2002-05-20 Tim Waugh + + * doc/gphoto2.xml: Fix formatting. + * doc/gphoto2.1, doc/gphoto2.3: Regenerated. + +2002-05-19 Christophe Barbe + + * frontends/command-line/main.c: fixed fparams initialization. + +2002-05-19 Christophe Barbe + + * frontends/command-line/main.c: replaced a missused #if with a #ifdef + * frontends/command-line/gphoto2-cmd-capture.c: same 2 times. + reported by Luciano Campal Vazquez + +2002-05-18 Hans Ulrich Niedermann + + * frontends/command-line/gphoto2.xml: moved man pages from + frontends/command-line/ to doc/ + * doc/gphoto2.xml: added gphoto2(3) man page + * doc/gphoto2.xml: added examples to gphoto2(1) + * configure.in: 2.0.1dev6 + +2002-05-17 Hans Ulrich Niedermann + + * INSTALL: added CDPATH warning, "make rpm" works again + * configure.in: added CDPATH warning + * configure.in: 2.0.1dev5, added comment to AC_DEFINE + * configure.in: hopefully fixed readline detection when -lncurses needed + +2002-05-07 Lutz Müller + + * frontends/command-line: Remove more globals. + +2002-05-07 Lutz Müller + + * acconfig.h: #undef HAVE_PTHREAD + * configure.in: Check for pthread. + * frontends/command-line: Support for gp_camera_set_timeout_funcs. + +2002-05-07 Lutz Müller + + * libgphoto2/gphoto2-camera.c: Fix bug. + +2002-05-07 Lutz Müller + + * libgphoto2/gphoto2-camera.c: Fix mem-leak. + +2002-05-06 Lutz Müller + + * libgphoto2/gphoto2-camera.[c,h] (gp_camera_[start,stop]_timeout), + (gp_camera_set_timeout_funcs): New + * configure.in: AGE 1, REVISION 0 in order to reflect above. + +2002-04-30 Marcus Meissner + + * libgphoto2/gphoto2-filesys.c: memset() filesys to 0 so + we do not forget to initialize members. (sf bug #549958) + +2002-04-28 Lutz Müller + + * frontends/command-line/main.c: %s/licence/license + +2002-04-25 Colin Marquardt + + * README: Small tweaks in the "Reporting bugs" section. + +2002-04-16 Lutz Müller + + * configure.in: Add fuji. + +2002-04-07 Hans Ulrich Niedermann + + * frontends/command-line/main.c: added option --usb-usermap-script + name which lets user specify the name of the hotplug usb script + * frontends/command-line/options.c: changed copyright from "2000,2001" to "2000-2002" + * configure.in: added --usb-usermap-script justifies increased 2.0.1dev4 + * doc/gphoto2.txt: added notice about unplugging cam and creating + /etc/hotplug/usb if necessary + +2002-04-04 Marcus Meissner + + * frontends/command-line/main.c: Dump USB class devices into usbmap too. + +2002-04-01 Hans Ulrich Niedermann + + * TESTERS: added explicit usage permissions and improved wording some + +2002-03-24 Lutz Müller + + Patch by Patrick Mansfield (without ChangeLog + entry, therefore I am just quoting the e-mail): + + * frontends/command-line/gphoto2-cmd-config.c: This patch fixes + scaling when using the command line interface with + a range widget with an increment value with non-zero decimal digits + (like .5). (...) I also used the A_STANDOUT (like Cliff's patch) + rather than "-" so negative numbers work correctly. Also included is + a change to set page increment based on the range of + values, so really large ranges can more easily be adjusted. The page + increment is set so you can go through all values in 20 key strokes + or fewer - this still doesn't work well, but it is better than + trying to go from 0 -> 8000000 in chunks of 10. It is clunky in + that the page increment is not always a multiple of the increment. + +2002-03-23 Lutz Müller + + Patch by Cliff Wright (comments quoted from + the e-mails): + + * frontends/command-line/main.c: The command line program does not + allow one to have a combination of --config, and --capture-image + where the config will occur first, and then the capture. Since some + cameras do not retain all config info between connections This is a + feature I wanted, so the below patch fixes this by moving config in + front of capture. + * frontends/command-line/gphoto2-cmd-config.c: Unless cdk has changed + the way they handle month's for the config calendar display, their + is a bug in the command line configure in file gphoto2-cmd-config.c. + The patch below fixed this for me. + +2002-03-22 Hans Ulrich Niedermann + + * packaging/usbcam*: moved to packaging/linux-hotplug/* + * packaging/Makefile.am: reflect that + * configure.in: reflect that and 2.0.1dev3 + * doc/gphoto2.txt: clarification that /proc/bus/usb has to + be mounted in any case + +2002-03-22 Lutz Müller + + * frontends/command-line/Makefile.am: Remove "-g" from [C,LD]FLAGS. If + you need it, please add it again in configure.in. + +2002-03-21 Marcus Meissner + + * configure.in, libgphoto2_port/configure.in: + added AC_INLINE, AC_CONST for platforms that don't have it. + +2002-03-14 Hans Ulrich Niedermann + + * doc/gphoto2.txt: clarification of hotplug setup + +2002-03-13 Colin Marquardt + + * configure.in: Added es to ALL_LINGUAS. + +2002-03-13 Hans Ulrich Niedermann + + * configure.in: 2.0.1dev2, fixed typo + * frontends/command-line/main.c: removed decoding of numeric debug message priorities + * frontends/command-line/main.c: timestamped logs + +2002-03-11 Lutz Müller + + * frontends/command-line/Makefile.am: + * frontends/command-line/main.c: Add --authors and --licence. + +2002-03-11 Lutz Müller + + * configure.in: Check for rl_completion_matches. + +2002-03-11 Lutz Müller + + * frontends/command-line/globals.h: + * frontends/command-line/main.c: 1 global variable less. + +2002-03-11 Mariusz Woloszyn + + * frontends/command-line/main.c: you can now specify --filename + while uploading, thx to Lutz. + +2002-03-09 Lutz Müller + + * frontends/command-line/shell.c: Fix readline stuff (automatic + completion). + +2002-03-07 Hubert Figuiere + + * INSTALL: changed URL to fetch CDK: fix bug #527098 + +2002-02-26 Marcus Meissner + + * libgphoto2/gphoto-camera.c: do gp_close_port() unconditionaly + in gp_camera_exit(). + +2002-02-26 Lutz Müller + + * configure.in: We are currently working on libgphoto2-2.0.1. + +2002-02-26 Lutz Müller + + * frontends/command-line/foreach.c (for_each_file_in_range): If + deleting files not recursively, adjust the image ID for subsequent + images. + * frontends/commane-line/main.c (main): If deleting files, do + it in reverse order such that above case does never occur. Fixes + #522796. + +2002-02-26 Lutz Müller + + * frontends/command-line/shell.c: Patch from Rob Hillis + : Use SHELL_PROMPT instead of + shell_prompt_text. + * frontends/command-line/actions.c: Use %li instead of %i to kill + some warnings. + +2002-02-25 Lutz Müller + + * acconfig.h: + * configure.in: Add optional readline support. + * frontends/command-line/main.c: Show remaining time in progress bar. + * frontends/command-line/globals.h: Export glob_cancel. + * frontends/command-line/shell.[c,h]: Clean up and add (optional) + readline support. Support deletion of files. + +2002-02-25 Lutz Müller + + * configure.in: Version 2.0 + +2002-02-23 Lutz Müller + + Patch from Patrick Mansfield : + + * libgphoto2/gphoto2-filesys.c: sizeof (path), not sizeof (folder). + Doh. + +2002-02-21 Colin Marquardt + + * configure.in: Removed zh_CN.GB2312 from ALL_LINGUAS. + zh_CN.po is enough. + +2002-02-18 Colin Marquardt + + * configure.in: Added zh_CN.GB2312 to ALL_LINGUAS. + +2002-02-18 Lutz Müller + + Bug reported by Marcus Meissner : + + * frontends/command-line/options.c: The option "-" is invalid. + +2002-02-17 Lutz Müller + + * libgphoto2/gphoto2-filesys.c: If a file is requested, look for + mtime first in the file, then in the info, then in the (EXIF) data of + the file, and finally in GP_FILE_TYPE_EXIF. + +2002-02-15 Christophe Barbé + + * libgphoto2_port/doc/DocRules.am: change rule to + build in the builddir (!= srcdir) and to install from buildir. + +2002-02-14 Fredrik + + * frontends/command-line/main.c: Make at least a small attempt + at quoting arguments which might need it when asking users + to execute the same command again with --debug. + + Patch from Chris Halls. + +2002-02-13 Dan Fandrich + + * libgphoto2/gphoto2-abilities-list.h + * libgphoto2/gphoto2-camera.h + * libgphoto2/gphoto2-filesys.h: Rearranged some structs and added + some empty members to make backward compatibility easier to achieve + when API changes are made in the future. + +2002-02-13 Tim Waugh + + * frontends/command-line/gphoto2.xml: Mention that files are + numbered from 1, and that quotes should be used for camera models. + * frontends/command-line/gphoto2.1: Regenerated. + +2002-02-13 Lutz Müller + + * libgphoto2/Makefile.am: + * configure.in: Introduce versions. + +2002-02-12 Fredrik + + * libgphoto2/gphoto2-filesys.c: Fix month off-by-one bug in + Lutz's fix of get_exif_mtime. + +2002-02-12 Lutz Müller + + * libgphoto2/gphoto2-filesys.c: Fix (get_exif_mtime). + +2002-02-12 Tim Waugh + + * MAINTAINERS: Add myself. + * frontends/command-line/gphoto2.xml: New file. + * frontends/command-line/gphoto2.1: New file. + * frontends/command-line/Makefile.am: Install man page. + +2002-02-12 Lutz Müller + + * configure.in: Ok, not everybody likes pkg-config. Offer an + alternative check, too. + +2002-02-11 Lutz Müller + + * libgphoto2/gphoto-filesys.c: Previously, we searched thumbnails in + EXIF data if GP_FILE_TYPE_PREVIEW is not supported by the driver. + Now, we do it the other way round, too: If GP_FILE_TYPE_EXIF is + not supported by the driver, get the thumbnail and search for + EXIF data there. + +2002-02-10 Lutz Müller + + * frontends/command-line/actions.[c,h]: + * frontends/command-line/main.c: Implement --show-info. + +2002-02-09 Fredrik + + * frontends/command-line/foreach.c: Fix bug where new + for_each_subfolder() did not descend into subfolders of + subfolders when recursive. + + * frontends/command-line/main.c: Be even more carefull in + checking the ID passed to the context functions by camera + drivers. + +2002-02-08 Christophe Barbé + + * frontends/command-line/main.c: Add usbid option to override + vendorID and deviceID for a given vendorID/deviceID couple in + the table describing all supported cameras. This allows us to + quickly validate if a new cam could be supported by an existing + driver. + This requires from the camlib driver to not use the IDs directly + but the device name instead. + +2002-02-08 Lutz Müller + + * frontends/command-line/main.c: Implement a progress bar (code + adapted from e2fsck). + +2002-02-08 Lutz Müller + + * frontends/command-line: s/image/file and s/picture/file with + the exception of capture-image. + +2002-02-08 Lutz Müller + + * libgphoto2/gphoto2-filesys.c: Make it robust against folders + with trailing slashes. + +2002-02-08 Lutz Müller + + * frontends/commend-line/main.c: + * frontends/command-line/actions[c,h]: + * frontends/command-line/foreach[c,h]: Clean up, simplify. + +2002-02-08 Lutz Müller + + * libgphoto2/gphoto2-filesys.c: Add support for getting the + mtime out of the file data. + +2002-02-07 Lutz Müller + + * frontends/command-line: Fix my previous (broken) patch and hide + all that recursive id look-up stuff. + * frontends/command-line/gphoto2-cmd-exif.[c,h]: Removed. Now in + actions.[c,h] + +2002-02-07 Lutz Müller + + * frontends/command-line/foreach.[c,h]: Pass CameraList as parameter. + This be where the const filename is allocated. Before, the string + got messed up. + * frontends/command-line/main.c: %s/gp_file_free/gp_file_unref + +2002-02-06 Fredrik + + * frontends/command-line/foreach.c: Check return values + of recursive calls to for_each_subfolder(). Fixes bug + where errors was not detected if they occured in + subfolders of subfolders when doing recursive actions + (like -P). + +2002-02-06 Colin Marquardt + + * CHANGES (Module): Add info about new chinese translation. + + * configure.in (ALL_LINGUAS): Added zh_CN. + +2002-02-06 Lutz Müller + + * libgphoto2_port/m4/Documentation.m4: Fix copy & paste error + * doc/api/Makefile.am + * libgphoto2_port/doc/Makefile.am + * libgphoto2_port/doc/DocRules.am: Fix --enable-docs + +2002-02-04 Fredrik + + * frontends/command-line/actions.[c,h], main.c: Fixed + --delete-all-images to work again after I made recursion + the default. Recursion is now the default for downloading + but not for deletion. Code by me and Lutz. + +2002-02-04 Hans Ulrich Niedermann + + * configure.in: felt like 2.0beta5dev2 - nothing more + +2002-02-02 Lutz Müller + + * frontends/command-line: Let --show-exif accept image numbers, too. + +2002-02-01 Lutz Müller + + * frontends/command-line/gphoto2-cmd-exif.[c,h]: New + * frontends/command-line/main.c: Hook it up. + +2002-02-01 Raymond Penners + + * camlibs/sonydscf55: Added "Sony DCR-PC100" to the list of + supported camera's. Note: it was already supported by using "Sony + MSAC-SR1". However, specifying the name of the camera instead of + the name of the device required to read the camera's memory stick + is more inline with current tradition. + +2002-02-01 Lutz Müller + + * configure.in: Only call aalib-config if it exists. + +2002-02-01 Hans Ulrich Niedermann + + *configure.in: beta4 has already been released. + we are now at beta5dev1 + +2002-01-31 Lutz Müller + + * camlibs/ricoh: + * configure.in: Initial version. Not working. + +2002-01-29 Lutz Müller + + * configure.in: Tell users where to get additional libraries. + +2002-01-29 Lutz Müller + + * Makefile.am + * configure.in + * libgphoto2/Makefile.am + * libgphoto2/gphoto2-filesys.c + * acconfig.h + * libexif: Remove libexif and check in configure.in if there is a + libexif installed on the system. + +2002-01-28 Christophe Barbé + + * CHANGES: Added with content from beta4 release. + * *: Tagged all files included in beta4. + +2002-01-27 Dan Fandrich + + * frontends/command-line/gphoto2-cmd-capture.c: Fixed security problem + in creating temporary file for JPEG preview. + +2002-01-27 Lutz Müller + + * libgphoto2/gphoto2-widget.c: Size of CameraWidget->[labelname] is + now 256 instead of 32. Fixes long strings (esp. german translation). + +2002-01-26 Lutz Müller + + Patch by Hans Ulrich Niedermann (slightly + adapted): + + * frontends/command-line/main.c: Only report progress information + if the user can see it. Same with confirmation of status messages. + +2002-01-26 Lutz Müller + + Fixes #506075: + + * frontends/command-line/Makefile.am: Include files into EXTRA_DIST + that are only conditionally built. + +2002-01-25 Marucs Meissner + + * **/Makefile.am: Replaced $(prefix)/lib/ by $(libdir). + (For instance on s390x $(libdir) is $(prefix)/lib64/.) + +2002-01-24 Dan Fandrich + + * libgphoto2/pattrec.c + * libgphoto2/jpeg.c: Added include of config.h + +2002-01-21 Lutz Müller + + * frontends/command-line: Fix image numbering when --recurse. + +2002-01-19 Lutz Müller + + * libgphoto2/gphoto2-filesys.c: Check for cancellation. + +2002-01-18 Hans Ulrich Niedermann + + * configure.in: 2.0beta4dev9 (progress is inevitable) + +2002-01-16 Lutz Müller + + * libexif: New + * libgphoto2/gphoto2-filesys.c: Use libexif + +2002-01-16 Lutz Müller + + * libgphoto2/gphoto2-file.[c,h] (gp_file_[get,set]_mod_time): New. + +2002-01-16 Colin Marquardt + + * libgphoto2_port/po/fr.po: Update from Jérôme. + * po/fr.po: Update from Jérôme. + +2002-01-16 Lutz Müller + + Black magic by Marcus Meissner : + + find . -type f | xargs grep -l gp_debug_printf | xargs perl -pi -e 's/gp_debug_printf\(\s*GP_DEBUG[^,]*,[^,]*,(.*)$/GP_DEBUG(\1/' + +2002-01-15 Lutz Müller + + * libgphoto2/*.h: Fix headers: no config.h, ifdef __cplusplus ... + +2002-01-15 Lutz Müller + + * libgphoto2/gphoto2-camera.h: Clean up. + +2002-01-15 Lutz Müller + + More GPContext changes: + + * libgphoto2/gphoto2-context.[c,h]: Add message functionality + * camlibs: Use it. + +2002-01-14 Fredrik + + * frontends/command-line/main.c: Fix some core dumps when parsing + overly long arguments (filename, port, camera, folder). Maybe + this should be changed to checks of unrealistic lengths instead, + but at least this makes us not dump core. + +2002-01-14 Lutz Müller + + * frontends/command-line/main.c: If the user presses 2 times + -c, abort. + +2002-01-14 Colin Marquardt + + * libgphoto2_port/po/fr.po: Update from Jérôme (is ISO-8859-1 now). + * po/fr.po: Update from Jérôme. + +2002-01-14 Fredrik + + * frontends/command-line/main.c: Make folder recursion default. + Kept --recurse but made it a no-op with a warning to stderr + and added --no-recurse to turn recursion off. + +2002-01-14 Lutz Müller + + * libgphoto2/gphoto2-camera.c: + * frontends/command-line/main.c: Translation fixes. + +2002-01-13 Colin Marquardt + + * libgphoto2_port/po/fr.po: New translation from Jérôme. + * po/fr.po: Update from Jérôme (help screen fits in 80 chars now). + +2002-01-13 Hans Ulrich Niedermann + + * configure.in: 2.0beta4dev8 (to detect old/new canon camlib :-) + +2002-01-13 Lutz Müller + + * libgphoto2/gphoto2-camera.[c,h]: Remove last references + to gp_camera_[get,set] error. + +2002-01-13 Colin Marquardt + + * configure.in: Add fr to ALL_LINGUAS. + * po/de.po: Update. + * po/fr.po: New file from Jérôme Fenal . Thanks. + +2002-01-13 Dan Fandrich + + * libgphoto2/gphoto2-library.h + * libgphoto2/gphoto2-list.h + * libgphoto2/gphoto2-result.h: Put #ifdef HAVE_CONFIG_H around include + +2002-01-13 Lutz Müller + + Finished the GPContext stuff - changes all over the place. Basically, + gp_[file,camera]_progress has been replaced by gp_context_progress_*. + Well, we haven't release a gphoto2-2.0 yet, therefore I hope you don't + mind the API change... + + * libgphoto2/gphoto2-camera.[c,h]: Added a GPContext parameter to + any function that can possibly communicate with the camera. That + makes every function cancellable (which is good), makes it possible + to report multiple errors during execution of a command, offers + several (nested) progress reports, and many other goodies. + +2002-01-11 Lutz Müller + + * libgphoto2/gphoto2-context.[c,h]: Support for multiple progress + reports at once (especially sub-progress reports). + +2002-01-10 Lutz Müller + + * libgphoto2/gphoto2-filesys.[c,h]: Add a GPContext to all functions + that potentially access the camera. This makes cancelling of + all operations possible and improves error reporting. + * tests/test-filesys.c: + * libgphoto2/gphoto2-camera.c: + * camlibs: Adjust to reflect above changes + +2002-01-10 Lutz Müller + + * libgphoto2/Makefile.am + * libgphoto2/gphoto2-context.[c,h]: New files + * libgphoto2/gphoto2-abilities-list.[c,h] + (gp_abilities_list_load_ctx): Sample function for showing the + benefits of above new files. + * frontends/command-line/main.c: Use gp_abilities_list_load_ctx to + make that operation cancellable. + +2002-01-09 Colin Marquardt + + * TESTERS: Added Kristian Rink as a tester for the Kodak DC3200. + +2002-01-09 Hans Ulrich Niedermann + + * configure.in: 2.0beta4dev7 + * configure.in: output VERSION at configure info + * doc/FAQ: Added "Couldn't claim USB interface" + +2002-01-09 Dan Fandrich + + * frontends/command-line/gphoto2-cmd-config.c + * configure.in: Allow cdk.h to be found outside a cdk directory. + +2002-01-08 Lutz Müller + + * configure.in: Substitute AM_PROG_LIBTOOL by AC_PROG_LIBTOOL (first + is deprecated). + +2002-01-07 Lutz Müller + + * frontends/command-line/main.c: Correctly shut down the camera even + in case of error. + * libgphoto2/gphoto2-camera.c: Additional debugging message. + +2002-01-06 Dan Fandrich + + * acconfig.h + * configure.in: Added test for tm_gmtoff in struct tm + +2002-01-06 Hans Ulrich Niedermann + + * doc/FAQ: Added a few FAQs + +2002-01-06 Lutz Müller + + * configure.in: $prefix is set to NONE if no --prefix=/some/dir is + specified. + +2002-01-04 Dan Fandrich + + * libgphoto2/bayer.h + * libgphoto2/exif.c + * libgphoto2/exif.h + * libgphoto2/gphoto2-filesys.c + * libgphoto2/jpeg.c: Eliminated // comments (for non-C99 compilers) + * configure.in: Only add gcc-specific CFLAGS if we're running gcc. + * Minor changes to other files to improve portability. + +2002-01-04 Colin Marquardt + + * configure.in: Add languages for new po files to ALL_LINGUAS. + + * po/de.po: Update. + +2002-01-02 Hans Ulrich Niedermann + + * INSTALL: Added note about libusb requirements (CVS or 0.1.5) + + configure.in: time for 2.0beta4dev6 IMHO + +2002-01-02 Lutz Müller + + * libgphoto2/Makefile.am + * camlibs/ * /Makefile.am: Install drivers into versioned + subdirectories. + +2002-01-02 Lutz Müller + + * frontends/command-line/main.c: Implement proper cancelling of file + down- and upload. + +2002-01-01 Fredrik + + * frontends/command-line/main.c: Better wording in text telling + users to mail the gphoto-devel mailing list when something + goes wrong. + +2001-12-31 Lutz Müller + + * libgphoto2/gphoto2-filesys.[c,h] (gp_filesystem_delete_file_noop): + New. + +2001-12-31 Lutz Müller + + * configure.in: Give users the possibility to specify the location + of cdk + * frontends/command-line/gphoto2-cmd-config.c: Use fscale if + available + * frontends/command-line/main.c: #if -> #ifdef + +2001-12-31 Marcus Meissner + + * libgphoto2/gphoto2-abilities-list.c (gp_abilitities_list_detect*): + Replaced wrong index into list->abilities by correct one. + Should make USB autodetection work again. + +2001-12-30 Lutz Müller + + * libgphoto2/gphoto2-abilities-list.c (gp_abilities_list_detect_usb): + Declare this function static - we don't want to advertise it. + +2001-12-29 Marcus Meissner + + * MAINTAINERS: Added myself to stv680 entry. + * AUTHORS: Added myself. + +2001-12-29 Lutz Müller + + * frontends/command-line/main.c: Show file-specific progress on + upload, too. + +2001-12-29 Lutz Müller + + * libgphoto2/gphoto2-camera.h: Add a note about + gp_camera_progress being deprecated. + +2001-12-28 Lutz Müller + + * libgphoto2/gphoto2-file.[c,h]: Implement progress reporting here. + That makes file upload and file download cancellable. + * frontends/command-line/main.c: Use file-specific progress reporting. + +2001-12-27 Dan Fandrich + + * camlibs/canon/util.h + * camlibs/kodak/dc240/library.c + * camlibs/kodak/dc240/library.h + * configure.in: renamed _byteorder.h to gphoto2-endian.h + +2001-12-24 Hans Ulrich Niedermann + + * configure.in: felt like 2.0beta4dev5 - and progress is inevitable. + * frontends/command-line/main.h: added constants for USB hotplug matching + * frontends/command-line/main.c: + Fixed Bug #490542: wrong match_flags at --print-usb-usermap + Thanks to JohnMcPherson for reporting this + +2001-12-20 Dan Fandrich + + * libgphoto2_port/m4/byteorder.m4 + * configure.in: added AC_NEED_BYTEORDER_H macro to generate _byteorder.h + +2001-12-14 Lutz Müller + + * configure.in: Comment out check for ltdl.h. See comment in there. + +2001-12-13 Lutz Müller + + * configure.in: + * acconfig.h: Put the --disable-debugging option back in. + +2001-12-13 Lutz Müller + + * configure.in: Fix no-ltdl.h case. + +2001-12-13 Lutz Müller + + * libgphoto2: Use ltdl.h if available + +2001-12-11 Lutz Müller + + * frontends/command-line/Makefile.am: It seems we need to + LDADD libgphoto2_port.la here, too, although we LIBADDed it in + libgphoto2/Makefile.am to libgphoto2.la? + +2001-12-11 Lutz Müller + + * camlibs: Remove references to GP_ERROR_IO_TIMEOUT - we use + GP_ERROR_TIMEOUT instead. + +2001-12-08 Marcus Meissner + + * camlibs/stv0680: Added 'capture-image'. Tried implementing a + different 'capture-preview' method, but failed (yet). + Merged image enhancements from pencam-0.42 (sharpening, white + balancing, gamma enhancement). Not really perfect yet, but the + images do look better already. + Added 'get-raw-image', for getting just the (old) only bayer + processed images. + * camlibs/stv0680/sharpen.[ch]: GIMP Sharpening Plugin. + +2001-12-08 Marcus Meissner + + * libgphoto2/bayer.[ch]: Export gp_bayer_expand. Needed if you want + to do a lightfilter pass right between bayer expand and bayer + interpolate. + +2001-12-08 Marcus Meissner + + * camlibs/stv0680/stv0680.html: Removed, replaced by pdf below. + * camlibs/stv0680/680_commands_and_communication_sdk.pdf.gz: + Extract from STV 680 SDK describing USB command set. Supplied + by STM for 'interested developers'. Not officially supported. + * camlibs/stv0680/CREDITS, README.pdf: Adjusted. + +2001-12-07 Hans Ulrich Niedermann + + * frontends/command-line/main.c: ENABLE_DEBUGGING -> DISABLE_DEBUGGING + * frontends/command-line/main.h: ENABLE_DEBUGGING -> DISABLE_DEBUGGING + * libgphoto2/gphoto2-filesys.c: dump filesystem using gp_log + * doc/gphoto2.txt: small addition about x-bit + * doc/api/gphoto2-sections.txt: added misc. functions and constants + * doc/api/*: reflect changed gphoto2-sections.txt + +2001-12-07 Lutz Müller + + * configure.in: + * acconfig.h: ENABLE_DEBUGGING -> DISABLE_DEBUGGING. If you don't, + you don't get any logging in gtkam. + +2001-12-07 Hans Ulrich Niedermann + + * configure.in: it is time for 2.0beta4dev4 + * gphoto2-config.in: made it work again + +2001-12-07 Lutz Müller + + * configure.in: Even more cleanup. + +2001-12-07 Lutz Müller + + * configure.in: Remove dotlib hack + * camlibs: Do it "the right way" + +2001-12-07 Lutz Müller + + * configure.in: Remove some cruft that survived my auto[make,conf] + cleanup + * libgphoto2/Makefile.am: LIBADD libgphoto2_port.la + +2001-12-06 Lutz Müller + + * configure.in: Use () instead of {}. That produces a warning in + configure, but at least works when linking. + +2001-12-05 Dan Fandrich + * configure.in + * libgphoto2_port/m4/stdint.m4 + * camlibs/dimera/dimera3500.c + * camlibs/dimera/mesalib.h + * camlibs/panasonic/dc.c + * camlibs/panasonic/dc.h + * camlibs/panasonic/dc1000.c + * camlibs/panasonic/dc1580.c + * camlibs/panasonic/l859/l859.c + * camlibs/panasonic/l859/l859.h: add AC_NEED_STDINT_H to configure.in + and change camera libraries to use C99-style size-specific integer types + +2001-12-05 Lutz Müller + + $builddir != $srcdir fixes. + +2001-12-04 Lutz Müller + + * libgphoto2: Support for GP_FILE_TYPE_EXIF. Not that there is not + support for it in the frontends (yet). + +2001-12-04 Lutz Müller + + * libgphoto2/gphoto2-camera.c: Don't exit the camera if it is + currently in use. + +2001-12-02 Dan Fandrich + + * libgphoto2_port/acconfig.h + * libgphoto2_port/configure.in + * libgphoto2_port/libgphoto2_port/gphoto2-port-log.c + * libgphoto2_port/libgphoto2_port/gphoto2-port-log.h + * frontends/command-line/main.c + * frontends/command-line/main.h + * acconfig.h + * configure.in: Added --disable-debugging option to configure + +2001-12-01 Marcus Meissner + + * camlibs/stv0680: Partial rewrite. + Got vendor information on USB communications, moved corrected + definitions and return data structs into header file. + Merged serial and USB communications to use the same functions. + Rewrote almost all functions, fixed lots of bugs and added some + missing features. + Added 'delete all', 'capture image' and 'summary' functionality. + *** Tested with USB only. Serial testers wanted. *** + +2001-12-02 Colin Marquardt + + * po/de.po: Update. + +2001-12-01 Hans Ulrich Niedermann + + * configure.in: it is time for 2.0beta4dev3 + * configure.in: renamed PGK_* to GPKG_* + * doc/figures/Makefile.am: build jpg and png figures iff ENABLE_FIGURES is set + +2001-11-30 Lutz Müller + + * libgphoto2: + * doc/api: Move documentation out of the header files into the + templates + +2001-11-29 Hans Ulrich Niedermann + + * README: Added paragraph about reporting bugs (using LANG=C) + +2001-11-10 Dan Fandrich + + * configure.in + * frontends/command-line/Makefile.am + * libgphoto2/Makefile.am + * libgphoto2_port/configure.in + * libgphoto2_port/libgphoto2_port/Makefile.am: libtool won't generate + shared dlopenable libraries when given -lintl and libintl is a + static library. Now, only use -lintl when linking other targets. + +2001-11-29 Hans Ulrich Niedermann + + * Makefile.am: enable RPM and CVS rules only when useful + * configure.in: init RPM packaging + * libgphoto2_port/m4/packaging.m4: added packaging macro + +2001-11-27 Lutz Müller + + * libgphoto2/gphoto2-camera.c: Update documentation. + +2001-11-27 Lutz Müller + + * libgphoto2/gphoto2-file.h: Fix formatting of comments: Should + always be + /** (nothing here - new line!) + * GP_WHATEVER: (colon!) + (...) + +2001-11-27 Hans Ulrich Niedermann + + * HACKING: we prefer patches against CVS and camlibs should use + their own ChangeLog files + * doc/figures/*.fig: My, we are k3wl. We have CVS $Id$s in PIX! + * doc/figures/gphotofs.fig: added sketch of gphotofs idea flash + * libgphoto2/gphoto2-file.h: added note about CRW (Canon RaW) + +2001-11-27 Hans Ulrich Niedermann + + * camlibs/canon/canon.c: removed G2 from serial detection list + * camlibs/canon/canon.c: split canon_int_ready into usb and serial part + * camlibs/canon/library.c: cleaned up the "switch off" stuff + * camlibs/konica/lowlevel.c: set_timeout, not timeout_set + +2001-11-27 Lutz Müller + + * libgphoto2/gphoto2-filesys.h: On Mariusz request, add a + GP_FILE_INFO_TIME + +2001-11-27 Lutz Müller + + * libgphoto2/gphoto2-filesys.c: Recover from errors during + file-deletion. + * camlibs/sierra/sierra.c: Report an error if, after delete_all, there + are still pictures on the camera. That makes libgphoto2 able to + fix that. + * camlibs/konica/library.c: Here, too. + +2001-11-26 Lutz Müller + + * camlibs/directory/directory.c (set_info_func): Rewrite + * camlibs/ptp/library.c: + * camlibs/fuji/fuji.c: Don't advertise what you don't support. + * camlibs/konica/library.c (set_info_func): Rewrite + * libgphoto2: Make *set_info consistent + +2001-11-25 Hans Ulrich Niedermann + + * camlibs/canon/canon.h: define GP_MODULE for abbref gp_log* stuff + * camlibs/canon/library.c: use proper MIME heuristics and types + * camlibs/canon/usb.c: switched some log messages to GP_DEBUG() + * libgphoto2/gphoto2-file.h: added MIME types for CRW and UNKNOWN + * libgphoto2_port/configure.in: libintl fix + * doc/figures/*: added figures about software architecture + +2001-11-25 Lutz Müller + + * libgphoto2/gphoto2-filesys.h: Support "downloaded"-flag through + CameraFileStatus. + +2001-11-25 Hans Ulrich Niedermann + + * configure.in: 2.0beta4dev2 + * camlibs/canon/canon.c: added support for PowerShot S30 + * camlibs/canon/canon.h: added support for PowerShot S30 + * camlibs/canon/library.c: added support for PowerShot S30 + * camlibs/canon/usb.c: added support for PowerShot S30 + * intl/Makefile.in: add include dir for config.h + * libgphoto2_port/intl/Makefile.in: add include dir for config.h + * doc/api/.cvsignore + * libgphoto2_port/doc/.cvsignore: ignore -symbols.txt + * camlibs/canon/serial.h + * camlibs/canon/canon.c + * camlibs/canon/usb.h: small cleanups + +2001-11-25 Hans Ulrich Niedermann + + * camlibs/canon/{canon,library}.[ch]: renamed files according to rules + * camlibs/canon/doc/: added developers' docs + * po/POTFILES.in: reflect changes in canon file set + +2001-11-24 Hans Ulrich Niedermann + + * configure.in: hopefully really correct checks for libdl and libintl + +2001-11-24 Lutz Müller + + * configure.in: Check for mcheck.h + * tests: #ifdef HAVE_MCHECK_H + +2001-11-23 Marcus Meissner + + * camlibs/stv0680/library.c: Major rework of the Capture Preview + mode. It now supports all common formats of the camera and should + not stop after some captures. + Removed some of the double error conversions. + + * camlibs/stv0680/stv680.html: Some documentation fixes regarding + Capture Image. + +2001-11-23 Lutz Müller + + * libgphoto2/gphoto2-camera.c: Don't free a camera if it is + currently in use. This fixes reentrancy crashes in gtkam on + shutdown during an operation. + +2001-11-23 Colin Marquardt + + * frontends/command-line/options.c (usage): + Make the help table format string translatable. + Make table lines 79 chars wide. + + * po/de.po (Message): All command line help table entries are now + translated. + +2001-11-22 Marcus Meissner + + * camlibs/stv0680/library.c: file_count can also use + a different USB control message (0x8d), and it gets + 2 bytes for the number of images. + +2001-11-22 Colin Marquardt + + * libgphoto2_port/libgphoto2_port/gphoto2-port.c (gp_port_write): + Patch from Bill Marr : + Fix bug whereby hexadecimal output is erroneously + shown in decimal format. + +2001-11-22 Lutz Müller + + * configure.in: + * acconfig.h: No need for --with-multi any more + * libgphoto2/gphoto2-camera.c: Add some comments about the + problems with HAVE_MULTI. + +2001-11-22 Lutz Müller + + * libgphoto2/gphoto2-camera.[c,h]: Expose gp_camera_exit to the world. + +2001-11-22 Lutz Müller + + * frontends/command-line/main.c: Mark more strings for translation + +2001-11-22 Colin Marquardt + + * frontends/command-line/options.c: Make help descriptions + translatable. + +2001-11-21 Colin Marquardt + + * frontends/command-line/main.c: Mark up more strings for + translation. + + * camlibs/sierra/sierra.c: Spelling fixes. + +2001-11-21 Marcus Meissner + + * camlibs/stv0680/stv0680.html: Collected programming information + into nice HTML table. + +2001-11-21 Colin Marquardt + + * po/POTFILES.in: Removed ../camlibs/canon/psa50.c + +2001-11-21 Lutz Müller + + I quote from an e-mail: "You (Lutz) should remove the code you added + that broke (at least) two of the supported 'libgphoto2' camera + libraries!!!" *sigh*. + + * conigure.in: Add a --with-multi option and a warning that people + who use it will run into troubles with digita and dc240 and that + people who don't use it will run into troubles when using Nautilus + or Konqueror for browsing their camera. + +2001-11-21 Lutz Müller + + * libgphoto2/gphoto2-camera.[c,h]: Add a pre_func and a post_func + that gets called before and after each access to the camera driver. + * camlibs/konica/library.c: Use above functions. + +2001-11-20 Gilles Grandou + + * camlibs/sierra.[c,h]: + - intoduced camera classes, in order to customise behaviour for + various specific cameras. + - camera_init(): initialize model class in private library area, + initialize set_config and get_config function pointers. + - camera_get/set_config(): changed to address specific camera + classes. Currents one has been renamed for olympus cams, a new + one targeted to Epson cameras has been introduced. The default + set is pointing to Olympus for compatibility with current + code, but this should change in the future. + - camera_summary(): detect missing memory card. tested on Epson + 3000z. added some info in summary. + - camera_manual(): added custom message for Epson cameras. + Current is targeted to Olympus ones. Default still display + Olympus message for compatibility. + +2001-11-20 Hans Ulrich Niedermann + + * HACKING: covertly introducing important policy changes :-) + +2001-11-20 Lutz Müller + + * configure.in: Put gettext hack in again. Someone complained... + +2001-11-19 Mariusz Woloszyn + + * camlibs/ptp: added camera filenames support, + * fixed some minor and major bugs in handling unaligned + structures + +2001-11-19 Mariusz Woloszyn + + * camlibs/ptp: basic (and hacked) ptp camera functionality: + only JPG image and thumbnails downloading supported + +2001-11-19 Lutz Müller + + * configure.in: Remove gettext hack. Let's see if someone complains... + +2001-11-18 Hans Ulrich Niedermann + + * INSTALL: added note about RPM temporarily not working + * doc/api/Makefile.am + * libgphoto2_port/doc/Makefile.am: sourced out doc generation to + DocRules.am + * libgphoto2_port/doc/DocRules.am: new file + * configure.in + * libgphoto2_port/configure.in + * libgphoto2_port/m4/documentation.m4: disable building docs by + default + * libgphoto2_port/autogen.sh: added debug output + * autogen.sh: added debug output & cleaned up a bit + * configure.in: upped version to dev1 to map build errors to the + changes I just introduced + +2001-11-18 Lutz Müller + + Patch from Ole Aamot : + + * tests: Use mcheck.h (useful when searching for mem-leaks). + +2001-11-18 Lutz Müller + + Patch from Bill Marr : + + * camlibs/digita/commands.c: Fix bug causing 8 bad trailing + pixels in Digita thumbnail image download. + +2001-11-17 Lutz Müller + + * frontends/command-line/options.c: Mark some more strings for + translation. + +2001-11-17 Hans Ulrich Niedermann + + * configure.in: changed package name from gphoto to gphoto2 + * configure.in: changed version from 2.0beta4 to 2.0beta4dev0 to + distinguish bug reports from various stages of beta4 development + * camlibs/sonydscf1/README: added remark about general state of driver + * libgphoto2_port/intl/Makefile.in + * intl/Makefile.in: fixed incorrect location of config.h + +2001-11-17 Lutz Müller + + * frontends/command-line: Fix translation. You use N_(...) to _mark_ a + string for translation. In order to convert it, you need to call + _(...). That is, call gp_camera_get_error in order to get a string + and after that, convert this string using _(...) before displaying + it. + +2001-11-17 Lutz Müller + + * camlibs/ptp/ptp.[c,h]: Hide some internals + * frontends/command-line/main.c: Fix translation by calling + setlocale (LC_ALL, "") (?). + +2001-11-17 Colin Marquardt + + * libgphoto2_port/configure.in (BUILD_INCLUDED_LIBINTL): Added + 'de' to ALL_LINGUAS. + + * libgphoto2_port/po/de.po: Added translation. + +2001-11-16 Hans Ulrich Niedermann + + After Scott just released beta3, I tried to tag the correct file + revisions as gphoto-2_0beta3. + + * configure.in: changed version number to 2.0beta4dev0 so we can + distinguish logs with the finer grain revisions. Just increase + the last number every time you made some changes that could + break or fix something of interest. + +2001-11-15 Lutz Müller + + * camlibs/ptp: Remove a whole lot of warnings, remove unnecessary + PTPResult (we've got PTP_RC_*), flesh out library.c a bit - still + not functional, though. + +2001-11-15 Lutz Müller + + Patch from Greg Ingram , slightly reworked: + + * camlibs/polaroid/pdc700.c: Make the assumption that we need to + deal with multiple packets only on PDC700_PIC and PDC700_THUMB. + +2001-11-15 Lutz Müller + + * MAINTAINERS: Move camlibs/ptp up to regain alphabetical order. + +2001-11-15 Mariusz Woloszyn + + * camlibs/ptp/: Started PTP support library developement + +2001-11-15 Colin Marquardt + + * po/de.po: Update. + +2001-11-15 Lutz Müller + + * camlibs/ptp: Basic structure for a new driver. + +2001-11-14 Lutz Müller + + * camlibs/polaroid/pdc700.c: Introduce enum PDCConf for better + readability (instead of #define). + (camera_set): Renamed into (pdc700_config) for consistency reasons. + (camera_get_config): Implement date and time here. + (camera_summary): I don't quite get it - this should read 2000 here + instead of 0 for V3.10? If not, please revert this and correct + both the remark in PDCDate and the code in camera_get_config. + +2001-11-14 Greg Ingram + + * camlibs/polaroid/pdc700.c: + - boosted the preferred baudrate to 115200 + - discovered the self-timer state datum + - discovered how to set the camera's configuration, added + camera_get_config() and camera_set_config() routines and flagged + the config operation + - added some delaying tactics in pdc700_capture() + - added usb vendor/product ids (no, usb doesn't work yet) + +2001-11-14 Lutz Müller + + * cammlibs/agfa/agfa.c: Initialize a.speed[0] to 0 instead of + leaving it uninitialized. + +2001-11-13 Hubert Figuiere + + * camlibs/kodak/dc240/library.c: Handle GP_ERROR_IO_TIMEOUT errors. Better + handling of checksums. (patch by Peter Fales ) + * camlibs/kodak/dc240/dc240.c (camera_init): camera reset sends garbage + within the 1500ms timeout. Handle that properly with 2 read. (patch by + Peter Fales ) + +2001-11-13 Lutz Müller + + * libgphoto2/gphoto2-filesys.c: Adjust filename only for thumbnails, + audio files, etc, not for normal pictures. + +2001-11-12 Lutz Müller + + * configure.in: + * libgphoto2/libgphoto-2.0.pc.in: Renamed to ... + * libgphoto2/libgphoto2.pc.in: ... this. It seems that people + really want our project to be called libgphoto2 and not libgphoto... + Therefore, be consistent here, too. + +2001-11-11 Lutz Müller + + * frontends/command-line/main.c: Add a switch for GP_FILE_TYPE_AUDIO. + +2001-11-10 Dan Fandrich + + * libgphoto2/jpeg.[ch]: moved array definitions from .h to .c + * libgphoto2_port/serial/unix.c: changed serial port prefix for Darwin + +2001-11-10 Hans Ulrich Niedermann + + * libghoto2_port/doc/Makefile.am + * doc/api/Makefile.am: fixed condition rules (added else targets) + +2001-11-10 Fredrik + + * camlibs/canon/canon.c: Clear all of camera->pl right after + malloc(). psa50_eot needed explicit clearing. This was + causing problems with serial communication. + * camlibs/canon/psa50.c: Don't free psa50_serial_dialogue()'s + receive buffer in psa50_get_disk(). This caused us to dump + core when accessing serial canon cameras. + +2001-11-10 Lutz Müller + + * camlibs/polaroid/pdc700.c: PPM-thumbnails are 9600 bytes, not + 4800. Sorry, guys. Should work again. + +2001-11-10 Greg Ingram + + * camlibs/polaroid/pdc700.c: Report + memory size, power source, mode, and auto-power-off time + in the camera_summary. + +2001-11-09 Lutz Müller + + Patch from Greg Ingram , unfortunatelly without + ChangeLog entry... + + * camlibs/polaroid/pdc700.c: Report lcd state and caption (?) in + the camera_summary. + +2001-11-09 Lutz Müller + + * camlibs/sierra: Clean up header files (hide internals, make + functions static) + +2001-11-08 Lutz Müller + + * camlibs/sierra: Improve error reporting. Use register 47 for + pic-info retrieval. Support GP_FILE_TYPE_AUDIO. + +2001-11-08 Chris Pinkham + + * camlibs/jamcam/README + camlibs/jamcam/jamcam.c + camlibs/jamcam/library.h + camlibs/jamcam/library.c: made downloading images more robust and + added better error recovery. Added support for downloading images + from MMC card. Changed summary info to show support for v2 cameras. + Fixed gp_camera_progress percentage argument to be >0 and <1. + +2001-11-08 Lutz Müller + + * libgphoto2/gphoto2-filesys.h: Expand CameraFileInfo to include + information about audio data, too. + +2001-11-08 Lutz Müller + + Patches from Greg Ingram : + + * camlibs/polaroid/pdc700.c: Lots of new stuff + +2001-11-06 Lutz Müller + + * gphoto2-file.c: Added GP_FILE_TYPE_AUDIO for cameras that can + attach audio data to a picture. + +2001-11-06 Lutz Müller + + Patch by Peter Jay Salzmann (slightly adapted): + + * camlibs/polaroid/pdc700.c: Tell the user about the current image + quality setting. + +2001-11-06 Lutz Müller + + * libgphoto2/gphoto2-filesys.c: Don't trust the camera libraries, + set name, type, and adjust name for mime type after getting a file. + +2001-11-06 Lutz Müller + + Chris Pinkham decoded the thumbnails: + + * camlibs/polaroid/pdc700.c: Convert the thumbnails from YUV 2:1:1 + to PPM. + +2001-11-06 Lutz Müller + + * camlibs/polaroid/pdc700.c: Fix memmove (third parameter is # of + bytes to be moved). Display version information in camera_summary. + +2001-11-05 Colin Marquardt + + * po/de.po: Update. Convert quote signs to the ones recommended by + the folks at de@li.org. + +2001-11-05 Chris Pinkham + + * camlibs/jamcam/jamcam.c + camlibs/jamcam/library.c: added initial support for MMC card on + Jamcam v3 cameras. added more error checking. changed camera + model string to "KBGear JamCam" instead of + "KBGear JamCam v3.0" since driver supports both v2 and v3 + cameras now. + +2001-11-05 Marcus Meissner + + * camlibs/jd11: Implemented progress reporting. + +2001-11-05 Lutz Müller + + * camlibs/polaroid/pdc700.c: Checksum is only 1 byte long. + +2001-11-05 Chris Pinkham + + * camlibs/panasonic/coolshot/coolshot.c + camlibs/panasonic/coolshot/library.c + camlibs/jamcam/jamcam.c + camlibs/jamcam/library.c: added support for gp_camera_progress(). + Fixed bug in jamcam driver jamcam_file_count() routine. + +2001-11-05 Lutz Müller + + * camlibs/polaroid/pdc700.c: Timeout = 2sec, try each speed 2 times. + +2001-11-05 Lutz Müller + + * camlibs/sierra/PROTOCOL: Updated (upload). + +2001-11-04 Lutz Müller + + * camlibs/polaroid/pdc700.c: While searching the archives, I found + some dumps and saw that there is something wrong with the logic in + pcd700_read. Why didn't anyone fix? + +2001-11-04 Stephane Castejon + + * liggphoto2/gphoto2-result.c,h : remove GP_ERROR_LOW_BATTERY + * camlibs/sierra/library.c : add an error message regarding the + low battery level. + +2001-11-04 Hans Ulrich Niedermann + + * frontends/command-line/interface.c: clarified comment + * frontends/command-line/main.c: added note for user that the + error msg from _set_error may be unrelated to real error + * libgphoto2/gphoto2-filesys.c: improved comment for + gp_filesystem_set_file_funcs() + * libgphoto2_port/doc/Makefile.am: added dependencies like in + doc/api/Makefile.am - rebuilds docs now + + * libgphoto2_port/doc/gphoto2-port-sections.txt + * libgphoto2_port/libgphoto2_port/gphoto2-port-log.c + * libgphoto2_port/libgphoto2_port/gphoto2-port-log.h: + reintroduced GPLogLevel for log levels instead of int. maintains + source compatibility. + + * libgphoto2_port/usb/libusb.c: fixed classification of success + msg; clarified one error message + + * camlibs/sonydscf55/sony.c: prepare for building docs + + * camlibs/canon/canon.c: + - models[] now ends with { NULL, 0, 0, 0 } instead of { 0, 0, 0 } + - is_image now is true for both .JPG and .CRW images + - changed several calls to gp_debug* to GP_DEBUG + - added lots of comments and made existing ones gtkdoc-able + - added debug code to _get_file_path + * camlibs/canon/canon.h: #define GP_MODULE "canon" + * camlibs/canon/psa50.c: + - added, improved and gtkdoc-abled comments for functions + that are likely to survive restructuring + - changed several calls to gp_debug* to GP_DEBUG + +2001-11-03 Stephane Castejon + + * camlibs/sierra/sierra.c,h + * camlibs/sierra/library.c,h + Add support for the upload feature. + Replace gp_port_settings_[get/set] by gp_port_[get/set]_settings + + * liggphoto2/gphoto2-result.c,h : add GP_ERROR_LOW_BATTERY + +2001-11-03 Marcus Meissner + + * camlibs/template/template.c: Make it compile with current libraries. + Added NLS macros, missing functions, etc. + +2001-11-03 Marcus Meissner + + * camlibs/agfa/agfa.c + * camlibs/barbie/barbie.c + * camlibs/canon/psa50.c + * camlibs/digita/digita.c + * camlibs/dimera/dimera3500.c + * camlibs/jamcam/jamcam.c + * camlibs/jd11/jd11.c + * camlibs/panasonic/dc1000.c + * camlibs/panasonic/dc1580.c: + If we check for 'ENABLE_NLS', we need to include . + Fix 'redefinition of _' compile warnings due to broken copy & pasted + macro. + +2001-11-01 Marcus Meissner + + * camlibs/jd11: + - added Bayer interpolation, kept old mode as 'raw'. + - added configuration widgets and calls for Bulb Exposure Time + and Color Weighting + - fixed number of images for 0 images (was returning 1) + - cleaned up several functions in regard to GP_ return values. + - added resend commands to the packet reader. + - Added the I/O Magic MagicImage 420 as compatible camera. + * camlibs/jd11/jd11.html: Added more information gained from the + Twain drivers. + +2001-11-01 Marcus Meissner + + * frontends/command-line/main.c: x was not set to 0 before listing + serial speeds leading to corrupt output. + +2001-11-01 Lutz Müller + + * libgphoto2/gphoto2-filesys.c: Fix bug (folder deletion) + +2001-11-01 Lutz Müller + + Patch from Chris : + + * frontends/command-line/main.c: Don't gp_file_free twice + +2001-10-28 Hans Ulrich Niedermann + + * packaging/rpm/package.spec.in: cleaned up file lists, moved .a and .la to -devel + +2001-10-31 Dan Fandrich + + * camlibs/agfa/Makefile.am + * camlibs/barbie/Makefile.am + * camlibs/canon/Makefile.am + * camlibs/casio/Makefile.am + * camlibs/digita/Makefile.am + * camlibs/dimera/Makefile.am + * camlibs/directory/Makefile.am + * camlibs/fuji/Makefile.am + * camlibs/jamcam/Makefile.am + * camlibs/jd11/Makefile.am + * camlibs/jd350e/Makefile.am + * camlibs/kodak/dc120/Makefile.am + * camlibs/kodak/dc210/Makefile.am + * camlibs/kodak/dc240/Makefile.am + * camlibs/kodak/dc3200/Makefile.am + * camlibs/konica/Makefile.am + * camlibs/minolta/dimagev/Makefile.am + * camlibs/panasonic/Makefile.am + * camlibs/panasonic/coolshot/Makefile.am + * camlibs/panasonic/l859/Makefile.am + * camlibs/polaroid/Makefile.am + * camlibs/samsung/Makefile.am + * camlibs/sierra/Makefile.am + * camlibs/sonydscf1/Makefile.am + * camlibs/sonydscf55/Makefile.am + * camlibs/stv0680/Makefile.am + * camlibs/template/Makefile.am + * libgphoto2_port/serial/Makefile.am + * libgphoto2_port/usb/Makefile.am: added -module flag to libtool link + command for each library that is dlopen'ed + +2001-10-31 Lutz Müller + + * libgphoto2/bayer.c: Remove unused variable + * libgphoto2/gphoto2-camera.c: Use the library handle in order + to check if the camera has been initialized. Make it possible + to call gp_camera_set_[port_info,abilities] on an already + initialized camera. + +2001-10-31 Dan Fandrich + + * camlibs/dimera/*.c: use renamed get/set functions, gp_camera_set_error + +2001-10-30 Hubert Figuiere + + * README: added a few USB Mass storage cameras. + +2001-10-30 Lutz Müller + + * camlibs/polaroid/pdc640.c: If you malloc memory for camera->pl, + free it in camera_exit. + +2001-10-30 Lutz Müller + + * frontends/command-line/gphoto2-cmd-config.c: + Implement GP_WIDGET_TEXT and GP_WIDGET_TOGGLE + * camlibs/directory/directory.c: Expand configuration dialog + for testing purposes. Additions #ifdef'd out. + +2001-10-30 Fredrik + + * frontends/command-line/interface.c: Since status messages are + now written to stderr, flush stderr instead of stdout. + +2001-10-30 Lutz Müller + + * frontends/command-line/main.c: Be more elaborate about wrong ports. + Fixes #475320 + +2001-10-30 Lutz Müller + + * frontends/command-line/main.[c,h]: Fix --capture-image + +2001-10-29 Lutz Müller + + * frontends/command-line/interface.c: Suppress empty status + messages. Those indicate that we should _clear_ the status and + not print _anything_. + * frontends/command-line/main.c: No need for gp_camera_init + anymore + * libgphoto2/gphoto2-camera.c: Make sure the camera is + initialized. + +2001-10-29 Lutz Müller + + * libgphoto2/gphoto2-abilities-list.c: Additional debug message. Spews + a lot of output, but people get segfaults when loading camera + libraries and we need to know on which library. + +2001-10-29 Marcus Meissner + + * camlibs/jd11/jd11.c: Added Quark Probe 99, Argus DC-100 and DC-2000 + as compatible models. Reported by Russ Burdick. + +2001-10-28 Hans Ulrich Niedermann + + * TESTERS: added list of volunteer testers to the source distribution + * frontends/command-line/interface.c: moved status msgs to stderr + * libgphoto2/gphoto2-abilities-list.c: don't scan USB for ID 0, + better (?) error handling and reporting + * libgphoto2_port/libgphoto2_port/gphoto2-port.c: removed report + about param that is only passed on + * libgphoto2_port/usb/libusb.c: improved error reporting + * packaging/usbcam.console: improved chown/chmod handling + (race condition removed) + * packaging/rpm/package.spec.in: begun support for automatic file lists + +2001-10-27 Marcus Meissner + + * camlibs/jd11: New Jenoptik JD11 driver for gphoto2. + * configure.in: added jd11 subdirs + * MAINTAINERS: added myself + +2001-10-27 Lutz Müller + + * camlibs/canon/canon.c: rmdir/mkdir support + * camlibs/canon/psa50.c (psa50_directory_operations): Consistently + return a gphoto2 error code. + * camlibs/directory: Add rmdir/mkdir support + * libgphoto2/gphoto2-camera.[c,h] + * libgphoto2/gphoto2-filesys.[c,h]: Add rmdir/mkdir support + +2001-10-26 Hans Ulrich Niedermann + + * Makefile.am: moved spec file to packaging/rpm/ + * Makefile.am: added CDPATH warning, rpm target and cvs-tags target + * gphoto.spec.in: moved spec file to packaging/rpm/package.spec.in + * configure.in: added packaging/rpm/Makefile.am + * configure.in: moved spec file to packaging/rpm/ + * packaging/Makefile.am: added rpm/, removed README.rpm + * packaging/rpm/: new directory with Makefile.am and .cvsignore + * packaging/Makefile.am: use @PACKAGE@-@VERSION@.spec for the SRPM file + * packaging/README.rpm: removed obsolete how-to-build-a-RPM docs + * packaging/rpm/README.rpm: added new this-is-how-our-RPM-works-internally docs + * libgphoto2_port/po/POTFILES.in: gphoto2-port.c, not gp_port.c + +2001-10-26 Lutz Müller + + * camlibs/canon/serial.c: gp_port_pin_get -> gp_port_get_pin + +2001-10-26 Hans Ulrich Niedermann + + * libgphoto2/gphoto2-debug.h: reformatted a little bit (more comments) + * packaging/Makefile.am: fixed typo resulting in wrong dir creation + * camlibs/fuji/.cvsignore: added (copied .cvsignore from camlib/canon) + * doc/api/.cvsignore: added scan + * intl/.cvsignore: added po2tbl.sed + * libgphoto2_port/intl/.cvsignore: added po2tbl.sed + * libgphoto2_port/doc/.cvsignore: added scan and tmpl + * camlibs/canon/util.c: added explanatory comment + * camlibs/samsung/samsung.c: added #include + * camlibs/canon/psa50.c: added function prototypes + * libgphoto2/exif.c: added function prototypes + * tests/test-gphoto2.c_ replaced exit() by return() in main() + +2001-10-26 Fredrik + + * camlibs/canon/.indent.pro: + Added -T GPPort and some other types + * camlibs/canon/psa50.c: + * camlibs/canon/psa50.h: + * camlibs/canon/canon.c: + * camlibs/canon/serial.c: + * camlibs/canon/util.c: + Moved all global variables into camera->pl. + Re-indented. + Fixed small memory leak in update_disk_cache(). + Renamed psa50_dir to canon_dir since a comment said to do + so when merging with more camera models (something that + was done a long time ago). + Added some comments. + Added/improved debugging output. + Cleaned out some superfluous debugging I forgot in my last + big patch. + +2001-10-26 Lutz Müller + + * include: Move everything from here ... + * libgphoto2: ... to here. + +2001-10-26 Lutz Müller + + * libgphoto2: Adapt to changes in libgphoto2_port + +2001-10-26 Lutz Müller + + * frontends/command-line/gphoto2-cmd-capture.c: Adjust brighness + and contrast with arrow keys + +2001-10-26 Dan Fandrich + + * libgphoto2_port/include/gphoto2-portability.h: + * libgphoto2_port/include/gphoto2-port-parallel.h: + * libgphoto2_port/include/gphoto2-port-serial.h: + * libgphoto2_port/serial/unix.c: + * libgphoto2/jpeg.c: + Preliminary support for OS X/Darwin + +2001-10-26 Lutz Müller + + * configure.in: Check for jpeglib and aalib. + * frontends/command-line/main.c + * frontends/command-line/Makefile.am + * frontends/command-line/gphoto2-cmd-capture.[c,h]: New. Display + the preview prior saving it. + +2001-10-24 Hans Ulrich Niedermann + + * gphoto.spec.in: hotplug dependency is a prereq not a requires + (patch by Tim Waugh ) + +2001-10-25 Lutz Müller + + * camlibs/canon/serial.[c,h]: No need to set the port path anywhere. + This is fully handled by gphoto2. That is: gp_settings_get, + adjust what needs to be adjusted, and then gp_settings_set. + * camlibs/canon/canon.c: Adjust parameters to canon_serial_init + * camlibs/digita/serial.c: there is no dev->device_fd any more + +2001-10-25 Lutz Müller + + * frontends/command-line/main.c: Remember --camera and --port + +2001-10-25 Lutz Müller + + * frontends/command-line/main.c: Adapt to changes in gphoto2-port + * libgphoto2: Here, too. + +2001-10-24 Lutz Müller + + * configure.in + * acconfig.h: Check for CDK + * frontends/command-line/Makefile.am + * frontends/command-line/gphoto2-cmd-config.[c,h]: New + * frontends/command-line/main.c: Hook up --config + +2001-10-25 Colin Marquardt + + * (Repository): s/retreiv/retriev/g + +2001-10-24 Hans Ulrich Niedermann + + * camlibs/jamcam/library.h: removed completely unnecessary compiler + warning + * camlibs/sonydscf1/command.c: added #include and + hopefully fixed calls to strndup + * frontends/command-line/main.c: added debug output of guessed + port, moved debugging interface to final log level handling, + output logging information on stderr instead of stdout + * libgphoto2/exif.[ch]: moved definition of tagnames[]= from + exif.h to exif.c, left an extern decl + * libgphoto2/gphoto2-debug.c: simplified gp_debug_printf by using + gp_logv instead of gp_log + * libgphoto2_port/libgphoto2_port/gphoto2-port-log.c: moved to + final log level mechanism, undefine HEXDUMP_ constants after use + * libgphoto2_port/libgphoto2_port/gphoto2-port-log.h: moved to + final log level mechanism using lots of comments + + +2001-10-24 Colin Marquardt + + * po/de.po: Update. + +2001-10-24 Hans Ulrich Niedermann + + * doc/gphoto.txt: adapted to new hotplug scripts + * packaging/Makefile.am: add hotplug scripts to docs when installing + * packaging/Makefile.am: add README.rpm + * packaging/README.rpm: added RPM build instructions + +2001-10-23 Lutz Müller + + Bug reported by David Robert : + + * frontends/command-line/shell.c: Fix bug (leading blanks with + filenames) + +2001-10-23 Lutz Müller + + * libgphoto2/gphoto2-core.[c,h]: Removed. All functions redirected + to gphoto2-abilities-list. Caching of this list should be done + in the frontend. + * frontends/command-line/main.c: Don't use gp_autodetect. + * libgphoto2/setting.c: Move some initialization stuff from + gphoto2-core to here. + +2001-10-23 Lutz Müller + + * camlibs: Remove every reference to gp_camera_result_as_string + including camera->functions->result_as_string. It was mostly + unused anyways. + * frontends/command-line/main.c: No history any more + * libgphoto2/gphoto2-camera.[c,h] (gp_camera_[get,set]_error): New + +2001-10-23 Hans Ulrich Niedermann + + * camlibs/canon/util.c: made canon debug use gp_log. + this makes canon drv to compile again + +2001-10-23 Lutz Müller + + Patch from Fredrik : + + * libgphoto2/gphoto2-debug.c: Bug fix + +2001-10-23 Lutz Müller + + Patch from Carsten Weinholz , slightly + modified (removed unnecessary //-comments, indentation): + + * camlibs/stv0680: Added support for "Aiptek PenCam Trio" + +2001-10-22 Hans Ulrich Niedermann + + * packages/usbcam.group: added. linux-hotplug script + * packages/usbcam.console: added. linux-hotplug script + * packages/Makefile.am: added. + * packages/.cvsignore: added. + * gphoto.spec.in: simplified a bit (only gphoto and + gphoto-devel, no lib* packages any more). added hotplug support. + * configure.in: added packaging/ + * Makefile.am: added packaging/, added .tar.bz2 dist support + +2001-10-22 Lutz Müller + + * frontends/command-line/main.c: Don't use gphoto2-core.h - use + gphoto2-abilities-list.h. + +2001-10-22 Lutz Müller + + * frontends/command-line/main.c: Adjust to changes in + gphoto2-port-log.h. + +2001-10-22 Lutz Müller + + * camlibs/canon: Use camera->pl instead of camera->camlib_data. + Add warning about use of global variables. + * libgphoto2/gphoto2-camera.h: Remove camera->camlib_data. + +2001-10-22 Lutz Müller + + * camlibs/canon/canon.c: Use the CameraFilesystem. Declare some + functions static. + * libgphoto2/gphoto2-camera.[c,h]: We now use the CameraFilesystem + exclusively - major cleanup. + +2001-10-22 Lutz Müller + + * libgphoto2/gphoto2-camera.c: Autodetect also in case of + camera->port != NULL. + * frontends/command-line/main.c: Only call gp_camera_set_abilities + if a model has been specified. Same with gp_camera_set_port_path. + +2001-10-22 Fredrik + + * camlibs/canon/psa50.c: + Added all USB commands to a nice structure so that you call + psa50_usb_dialogue() with a function identifier and don't have to keep + track of cmd1,cmd2,cmd3 and length of camera reply. + + * camlibs/canon/psa50.c: + Separated the "returns L (long) data" commands from psa50_usb_dialogue() + and made a new psa50_usb_long_dialogue() that handles these correctly. + This should fix a number of problems with those kinds of transfers (I + previously fixed this for get_file, now it is fixed for all functions + using this). Large directorys filling more than one USB bulk packet + probably never worked before, but should work now. + + * camlibs/canon/canon.c: + * camlibs/canon/psa50.c: + * camlibs/canon/serial.c: + * camlibs/canon/usb.c: + Improved function error reporting for fetching of thumbnails and + pictures and at the same time fixed a one-byte-per-pic-downloaded memory + leak ;) + + Added lots of error checking and better debug result reporting to various + functions. + + Changed hard-coded attribute values to easier-to-understand-and-maintain + defines. + + Changed a bunch of fprintf() and perror() to gp_debug_printf(). + +2001-10-21 Lutz Müller + + * doc/api: Some additions + * libgphoto2/Makefile.am + * libgphoto2/gphoto2-library.c: Dummy file, needed by gtk-doc + * libgphoto2/gphoto2-camera.[c,h]: Updated documentation + +2001-10-21 Hans Ulrich Niedermann + + * libgphoto2_port/libgphoto2_port/gp_port.c: log USB IDs in hex instead of decimal + +2001-10-20 Lutz Müller + + * camlibs/kodak/dc120: Prepare for camera->camlib_data removal. Fix + compile warnings + +2001-10-20 Lutz Müller + + * camlibs/kodak/dc3200: Prepare for camera->camlib_data removal. + +2001-10-20 Lutz Müller + + * camlibs/panasonic: Prepare for camera->camlib_data removal. Fix lots + of compile warnings. Remove gp_port_[close,free,new] (sic). + +2001-10-20 Lutz Müller + + * camlibs/agfa/commands.h: Unused -> removed. + * camlibs/agfa/Makefile.am: Reflect above. + * camlibs/agfa/agfa.[c,h]: Use camera->pl instead of + camera->camlib_data. Fix small memory leak in camera_init (in case + of error). + +2001-10-20 Lutz Müller + + * camlibs/minolta/dimagev/dimagev.[c,h]: Prepare for removal of + camera->camlib_data. Fix memory leaks (in case of errors). + +2001-10-20 Lutz Müller + + * camlibs/digita: + * camlibs/dimera: Prepare for elimination of camera->camlib_data. + * camlibs/konica: Some additional debugging messages + +2001-10-20 Lutz Müller + + * libgphoto2/gphoto2-camera.[c,h] (gp_camera_get_port_speed): New + +2001-10-20 Lutz Müller + + * camlibs/kodak/dc240/library.c: Don't access a CameraFile directly. + This lets us ... + * libgphoto2/gphoto2-file.[c,h]: ... make internals of CameraFile + private. Header file moved from include over to here in order to + prepare for documentation + +2001-10-20 Lutz Müller + + * camlibs: Instead of camera->port_info->speed, use + settings.serial.speed. That lets us ... + * libgphoto2/gphoto2-camera.[c,h]: ... remove camera->port_info + +2001-10-20 Hans Ulrich Niedermann + + * gphoto.spec.in: made RPM spec file work for 1st time + +2001-10-20 Hans Ulrich Niedermann + + * configure.in + * include/.cvsignore + * libgphoto2_port/configure.in + * libgphoto2_port/include/.cvsignore: moved config.h and stamp-h to include/ + +2001-10-20 Hans Ulrich Niedermann + + * libgphoto2_port/stamp-h.in: removed as file is generated automatically anyway + * libgphoto2_port/doc/Makefile.am + * doc/api/Makefile.am: added DESTDIR to installation of html files + * gphoto.spec.in: use DESTDIR for installation + * .cvsignore: ignore *.tar.{bz2,gz} + * HACKING: added licensing paragraph (LGPL vs. GPL) + +2001-10-20 Hans Ulrich Niedermann + + * Makefile.am + * camlibs/agfa/Makefile.am + * camlibs/barbie/Makefile.am + * camlibs/canon/Makefile.am + * camlibs/digita/Makefile.am + * camlibs/dimera/Makefile.am + * camlibs/directory/Makefile.am + * camlibs/jd350e/Makefile.am + * camlibs/kodak/Makefile.am + * camlibs/kodak/dc120/Makefile.am + * camlibs/kodak/dc240/Makefile.am + * camlibs/kodak/dc3200/Makefile.am + * camlibs/konica/Makefile.am + * camlibs/minolta/Makefile.am + * camlibs/minolta/dimagev/Makefile.am + * camlibs/panasonic/Makefile.am + * camlibs/polaroid/Makefile.am + * camlibs/sierra/Makefile.am + * camlibs/sonydscf1/Makefile.am + * camlibs/stv0680/Makefile.am + * doc/api/Makefile.am + * frontends/command-line/Makefile.am + * libgphoto2_port/Makefile.am + * libgphoto2_port/doc/Makefile.am + * libgphoto2_port/include/Makefile.am + * libgphoto2_port/libgphoto2_port/Makefile.am + * libgphoto2_port/serial/Makefile.am + * libgphoto2_port/usb/Makefile.am + * camlibs/Makefile.am: added missing files to EXTRA_DIST and/or *_SOURCES + +2001-10-19 Hans Ulrich Niedermann + + * libgphoto2_port/libgphoto2_port/Makefile.am: use $(libdir) as library directory + * libgphoto2/Makefile.am: moved docs to DOC_DIR + * libgphoto2_port/Makefile.am: added m4/ directory, moved docs to DOC_DIR + * libgphoto2_port/autogen.sh: add m4/ dir for aclocal + * libgphoto2_port/configure.in: add m4/ dir, sourced out doc stuff, new version, check for install + * libgphoto2_port/doc/Makefile.am: moved to $(htmldir) + * libgphoto2_port/m4/documentation.m4: added sourced out doc stuff + * libgphoto2_port/m4/Makefile.am: added + * doc/Makefile.am: added docs in DOC_DIR + * doc/api/Makefile.am: moved to $(htmldir) + * configure.in: sourced out doc stuff, check for install + +2001-10-19 Dan Fandrich + + * frontends/command-line/main.c: Added automatic port type guessing + when the type isn't specified + +2001-10-19 Lutz Müller + + * camlibs/casio + * camlibs/polaroid + * camlibs/barbie + * camlibs/dimera + * camlibs/jamcam + * camlibs/panasonic/coolshot + * camlibs/samsung: Use camera-fs and get_file_func + +2001-10-19 Lutz Müller + + * camlibs/kodak/dc240: Use camera->fs - this should fix file deletion + that I broke earlier. + * camlibs/kodak/dc3200: Use camera->fs. Don't use + gp_port_[new,free,open,close]. Declare some functions static in + order to fix compile warnings. + +2001-10-18 Lutz Müller + + * frontends/command-line/main.c: Port to gp_log + * libgphoto2/gphoto2-debug.[c,h]: Clean up even more. + * po/POTFILES.in: Add frontends/command-line/main.c + +2001-10-18 Lutz Müller + + * camlibs/digita/digita.c: Fix compile warnings ("static ..."). Use + camera->fs. + +2001-10-18 Fredrik + + * frontends/command-line/main.c: Only try to set port speed if port + begins with 'serial' since gp_camera_set_port_speed() now fails + if called for non-serial port. + +2001-10-18 Lutz Müller + + * camlibs/canon.c: Don't use camera->model. + * libgphoto2/gphoto2-camera.[c,h]: Remove camera->model. + +2001-10-18 Lutz Müller + + * camlibs/polaroid/pdc320.[c,h]: Don't use camera->model. + +2001-10-18 Lutz Müller + + * camlibs/sonydscf55: Use camera->pl, fix compile warnings + +2001-10-18 Lutz Müller + + * camlibs/panasonic/l859 + * camlibs/sierra: Use camera->pl + +2001-10-17 Lutz Müller + + * camlibs: Don't use camera->port_info->path. This one has already + be set by gphoto2 + +2001-10-17 Lutz Müller + + * camlibs/directory/directory.c: Use camera->fs exclusively. + +2001-10-17 Lutz Müller + + * camlibs/jd350e: Use camera->port directly. + +2001-10-17 Lutz Müller + + * camlibs/stv0680: Make direct use of camera->port. Kill compile + warnings by declaring some functions static. + +2001-10-17 Lutz Müller + + * camlibs/konica/library.c: Use camera->pl + * libgphoto2/gphoto2-camera.[c,h]: Move lots of internals into + camera->pc (for core use only) and offer hook for camera libraries + (camera->pl) and frontends (camera->pf) + +2001-10-17 Lutz Müller + + * frontends/command-line/main.c: Use gp_log. + * libgphoto2/gphoto2-debug.[c,h]: Use gp_log. + +2001-10-17 Lutz Müller + + * libgphoto2/gphoto2-debug.c: Make tranition to gp_log_* + * camlibs/sierra: Adjust parameters of camera_capture + +2001-10-17 Lutz Müller + + * README: no glib-dependency any more + * camlibs: gp_abilities_new doesn't exist any more + * doc/api: Even more documentation + * libgphoto2/gphoto2-abiltiies.h: Cleaned up. + * libgphoto2/gphoto2-abilities-list.c: Documented + +2001-10-16 Lutz Müller + + Patch from Dan Fandrich : + + * libgphoto2/gphoto2-abilities-list.c: + * libgphoto2/gphoto2-camera.c: Make models case-insensitive. + +2001-10-16 Lutz Müller + + * libgphoto2/gphoto2-camera.[c,h]: Documented + +2001-10-16 Dan Fandrich + + * camlibs/dimera/*: added i18n support; improved error returning + * po/POTFILES.in: added dimera3500.c + +2001-10-16 Hans Ulrich Niedermann + + * doc/api/.cvsignore: added tmpl directory and .cvsignore~ + +2001-10-16 Hans Ulrich Niedermann + + * camlibs/casio/casio-qv.c: + * camlibs/dimera/dimera3500.c: + * camlibs/dimera/mesalib.c: + * camlibs/sonydscf55/sony.c: + * libgphoto2/abilities.c: + * libgphoto2/gphoto2-abilities-list.c: + * tests/test-filesys.c: added #include lines that should have already been there + +2001-10-16 Hans Ulrich Niedermann + + * frontends/command-line/main.c: added package and version to debug msgs + * frontends/command-line/main.c: added --print-usb-usermap command + * frontends/command-line/main.h: added definition name of hotplug script + +2001-10-16 Lutz Müller + + * frontends/command-line/main.c: Use gp_camera_set_abilities. + * include/gphoto2-camera.h: + * libgphoto2/camera.c:Introduce gp_camera_[set,get]_abilities. + +2001-10-16 Lutz Müller + + * libgphoto2/gphoto2-result.[c,h]: GP_ERROR_NOT_SUPPORTED now in + libgphoto2_port. + +2001-10-16 Lutz Müller + + * libgphoto2/camera.c: + * camlibs/konica/library.c: + * camlibs/kodak/dc240/dc240.c: + * camlibs/sierra: GP_ERROR_IO_UNKNOWN_PORT -> GP_ERROR_UNKNOWN_PORT + * frontends/command-line: Kill warnings + * configure.in: There are now some header files in + libgphoto2_port/libgphoto2_port + * include/gphoto2-camera.h: Use the new GPPort and GPPortInfo + +2001-10-16 Lutz Müller + + Bug found by Fredrik : + + * doc/api/Makefile.am: Don't if-out everything. + +2001-10-16 Lutz Müller + + Bug found by Colin Marquardt : + + * doc/api/Makefile.am: Don't generate documentation if not + ENABLE_GTK_DOC + +2001-10-15 Lutz Müller + + * libgphoto2/gphoto2-debug.[c,h]: Documented. + +2001-10-15 Lutz Müller + + Patch approved by Gus Hartmann : + + * camlibs/minolta/dimagev/download.c + * camlibs/minolta/dimagev/upload.c: Don't access the CameraFile struct + directly. + +2001-10-14 Lutz Müller + + * include/gphoto2-library.h: Moved to ... + * libgphoto2/gphoto2-libary.h: ... here. + +2001-10-14 Lutz Müller + + * camlibs/polaroid/pdc640.c: Remove non-existant + GP_ERROR_NO_CAMERA_FOUND. + +2001-10-14 Lutz Müller + + * libgphoto2/gphoto2-result.[c,h]: Documented. + +2001-10-14 Lutz Müller + + * libgphoto2/gphoto2-list.[c,h]: Documented. + +2001-10-13 Lutz Müller + + * libgphoto2/gphoto2-abilities-list.[c,h]: Simplified, expose fewer + functions. + +2001-10-12 Hans Ulrich Niedermann + + * libgphoto2_port/libgphoto2_port/gp_port.c: more detailed debug + output for *_write and *_read + * libgphoto2_port/usb/libusb.c: removed the last fprintf, fixed + missing "%s" in string + * libgphoto2_port/usb/libusb.c: added call notification at + GP_DEBUG_HIGH for most methods + +2001-10-12 Hans Ulrich Niedermann + + * frontends/command-line/main.c: added package and version to debug msgs + * frontends/command-line/main.c: added --print-usb-usermap command + * frontends/command-line/main.h: added definition name of hotplug script + +2001-10-12 Hans Ulrich Niedermann + + * HACKING: reformatted, added not for emacs users + * README: added hint to gphoto2-cli.txt + * AUTHORS: fixed typo + +2001-10-12 Hans Ulrich Niedermann + + * camlibs/canon/canon.c: added is_crw() function + * camlibs/canon/canon.c: moved to 1-bit power source detection + * camlibs/canon/psa50.h: moved to 1-bit power source detection + * camlibs/canon/Protocol: 1-bit power source detection seems to work better + * camlibs/canon/Makefile.am: removed util.[ch] from canon driver + * camlibs/canon/serial.c: removed dump_hex() and "util.h", added "serial.h" + * camlibs/canon/serial.h: added prototype for canon_usb_camera_init() + +2001-10-12 Fredrik + + * camlibs/canon/psa50.c: more debug output in + psa50_usb_dialogue() and cleanups to psa50_get_file_usb() + (fixes downloading of small files (read: thumbnails)). + +2001-10-12 Lutz Müller + + * include + * libgphoto2: More renaming in order to make gtk-doc happy. + +2001-10-12 Lutz Müller + + * include/gphoto2-widget.h + * include/gphoto2-filesys.h: Moved to ... + * libgphoto2/gphoto2-widget.h + * libgphoto2/gphoto2-filesys.h: ... here. + * libgphoto2/widget.c + * libgphoto2/filesys.c: Moved to ... + * libgphoto2/gphoto2-widget.c + * libgphoto2/gphoto2-widget.h: ... here. + * include/Makefile.am + * libgphoto2/Makefile.am: Updated. + * camlibs/.../Makefile.am: Updated to reflect changes above + +2001-10-11 Lutz Müller + + * libgphoto2/libgphoto-2.0.pc.in: -I${includedir} + +2001-10-11 Lutz Müller + + * camlibs/directory/directory.h: Removed. + * camlibs/directory/directory.c: Remove cruft + +2001-10-11 Lutz Müller + + * camlibs/canon/psa50.c + * camlibs/dimera/dimera3500.c: + * camlibs/kodak/dc120/library.c: + * camlibs/kodak/dc240/library.c: + * camlibs/kodak/dc3200/library.c: + * camlibs/panasonic/dc1000.c: + * camlibs/panasonic/dc1580.c: + * camlibs/panasonic/l859/l859.c: + * camlibs/sierra/library.c: + * frontends/command-line/interface.c: Unify percentage handling and + define 0.0 <= percentage <= 1.0. + +2001-10-11 Hans Ulrich Niedermann + + * docs/, doc/: moved all documentation to doc/ + * doc/gphoto2.txt, doc/gphoto2-cli.txt: added to distribution + +2001-10-11 Lutz Müller + + * include/gphoto2-widget.h + * libgphoto2/exif.[c,h] + * libgphoto2/widget.c: Fix stuff gtk-doc was complaining about. + +2001-10-10 Lutz Müller + + * configure.in: Give some feedback (gtk-doc: yes/no?) + +2001-10-10 Lutz Müller + + * libgphoto2/filesys.c: Documented. + +2001-10-10 Lutz Müller + + * camlibs/template/template.c: Updated. + +2001-10-10 Lutz Müller + + * frontends/command-line/interface.c: Don't jump to the next line + for status messages - this disturbs the nice formatting of listings. + +2001-10-09 Lutz Müller + + * camlibs/casio/casio-qv.c: On capture, append the file to the + filesystem + * camlibs/polaroid/pdc640.c: Here, too. + * include/gphoto2-camera.h: Add some more warnings + * libgphoto2/filesys.c: + * include/gphoto2-filesys.h: We don't need to expose + gp_filesystem_folder_number, that doesn't make sense + +2001-10-09 Lutz Müller + + Shift the whole library towards exclusively using the + CameraFilesystem: + + * camlibs/agfa/agfa.c: delete_file_func, get_file_func + * camlibs/canon/canon.c: Add warning that upload and deletion is + broken + * camlibs/jd350e/jd350e.c: Tiny update + * camlibs/kodak/dc120/dc120.c: folder_list_func, file_list_func, + get_file_func, delete_file_func + * camlibs/kodak/dc240.c: Add warning that changes have to be made + * camlibs/konica/library.c: delete_all_func, delete_file_func + * camlibs/minolta/dimagev/dimagev.c: delete_file_func, put_file_func, + * camlibs/panasonic/dc1000.c: file_list_func, get_file_func, + put_file_func, delete_file_func + * camlibs/panasonic/dc1580.c: get_file_func, put_file_func, + delete_file_func + * camlibs/panasonic/l859.c: delete_file_func, delete_all_func + * camlibs/polaroid/pdc320.c: get_file_func, delete_all_func + * camlibs/polaroid/pdc640.c: get_file_func, delete_file_func + * camlibs/sierra/library.c: + * camlibs/sierra/sierra.c: delete_all_func, delete_file_func + * camlibs/sonydscf1/sonydscf1.c: delete_file_func + * camlibs/sonydscf55/sonydscf55.c: Tiny update + * camlibs/stv0680/stv0680.c: Tiny update + * frontens/command-line/interface.c: Don't show "" status and 0.0 + progress + * libgphoto2/camera.c: + * include/gphoto2-camera.h: Remove put_file, delete_all and delete - + this should all be done using the filesystem. In the future, + file_get and the listing functions will also disappear. + * include/gphoto2-filesys.h: + * libgphoto2/filesys.c: Add deletion and upload. + * libgphoto2/jpeg.c: Kill unused variable + * tests/test-filesys.c: Update + +2001-10-09 Lutz Müller + + * camlibs/sonydscf1: + Clean up a bit. This camera uses globals and won't work with + big frontends... + Use camera->port and camera->fs. + +2001-10-09 Lutz Müller + + * camlibs/stv0680/stv0680.[c,h]: + Fix compile warnings by declaring some functions static. + Use camera->port and camera->fs. + +2001-10-09 Lutz Müller + + * camlibs/sonydscf55/camera.c: + Fix compile warnings by declaring some functions static. + Use camera->port and camera->fs. + +2001-10-09 Lutz Müller + + * camlibs/minolta/dimagev/dimagev.[c,h]: + Fix compile warnings by declaring some functions static. + Use camera->port and camera->fs. + +2001-10-09 Lutz Müller + + * camlibs/panasonic/l859/l859.[c,h]: + Fix compile warnings by declaring some functions static. + Use camera->port and camera->fs. + (l859_debug): Removed. Now in libgphoto2_port + +2001-10-09 Lutz Müller + + * camlibs/jd3503/library.c: Fix compile warnings by declaring some + functions static. + * camlibs/jd350e.c: Here, too. #include . Use camera->port + and camera->fs. First in order to avoid problems with port locking + and second for caching. + * camlibs/jd350e.h: No filesystem here. Use camera->fs. + +2001-10-09 Lutz Müller + + * camlibs/konica/library.c: Remove reference to gphoto2-frontend.h. + +2001-10-08 Lutz Müller + + * include/gphoto2-frontend.h + * libgphoto2/frontend.c: Removed + * frontends/command-line + * include/Makefile.am + * libgphoto2: Remove references to above + +2001-10-08 Lutz Müller + + * camlibs/panasonic/dc.c: gp_frontend_status -> + gp_camera_status + +2001-10-08 Lutz Müller + + * camlibs/kodak/dc240/library.c: gp_frontend_status -> + gp_camera_status + +2001-10-08 Lutz Müller + + * include/gphoto2-[camera,frontend].h + * libgphoto2/[camera,frontend].c: gp_frontend_message -> + gp_camera_message + * camlibs: Reflect above + +2001-10-08 Lutz Müller + + * camlibs/polaroid/pdc640.c: Patch from Chris. Don't know what's + inside... + +2001-10-08 Lutz Müller + + * include/gphoto2-frontend.h + * libgphoto2/frontend.c + * camlibs: gp_frontend_progress -> gp_camera_progress, + gp_frontend_status -> gp_camera_status + +2001-10-08 Lutz Müller + + * libgphoto2/camera.c: Correctly initialize on gp_camera_new + * frontends/command-line: Use the new gp_camera_[status,progress] + +2001-10-08 Lutz Müller + + * libgphoto2/camera.c + * include/gphoto2-camera.h (gp_camera_status*), (gp_camera_progress*): + New + +2001-10-08 Lutz Müller + + * include/gphoto2-frontend.h + * libgphoto2/frontend.c: Remove gp_frontend_prompt. This and the other + gp_frontend functions will reappear some day in gphoto2-camera. + +2001-10-07 Hans Ulrich Niedermann + + * configure.in: remove unnecessary variables at the beginning + +2001-10-08 Lutz Müller + + * libgphoto2/camera.c: Additional debugging messages + +2001-10-07 Lutz Müller + + * camlibs/jamcam: Use libgphoto2/bayer.h and libgphoto2/gamma.h + * libgphoto2/Makefile.am: LIBADD -lm + +2001-10-07 Lutz Müller + + * configure.in: -lm + * libgphoto2/Makefile.am + * libgphoto2/bayer.[c,h] + * libgphoto2/gamma.[c,h]: New + * camlibs/polaroid/pdc640.c: Use above + +2001-10-07 Lutz Müller + + Patch from Chris Byrne : + + * camlibs/polaroid/pdc640.c: Updated + +2001-10-07 Lutz Müller + + Patch from David Faure + + * libgphoto2/core.c: Fix logic + +2001-10-06 Lutz Müller + + * configure.in: Bump version up to 2.0beta3 + +2001-10-06 Lutz Müller + + Patch from Hans Ulrich Niedermann : + + * frontends/command-line: Add --version + +2001-10-06 Lutz Müller + + * include/gphoto2-list.h + * libgphoto2/list.c (gp_list_ref), (gp_list_unref): New + +2001-10-06 Lutz Müller + + * include/gphoto2-debug.h + * libgphoto2/debug.c (gp_debug_history_get_size): New + +2001-10-06 Lutz Müller + + * libgphoto2/debug.c: Use the debug level from libgphoto2_port instead + of keeping an own global variable + +2001-10-05 Lutz Müller + + * configure.in: Check for vsnprintf, too. + * libgphoto2/debug.c: Use vsnprintf if available. + +2001-10-05 Fabrice Bellet + + * frontends/command-line/actions.c: + * frontends/command-line/foreach.c: + * frontends/command-line/main.c: Print directory names at + each step of the recursion when using '--list-folders --recurse'. + +2001-10-05 Fabrice Bellet + + * frontends/command-line/actions.c: + * frontends/command-line/actions.h: + * frontends/command-line/foreach.c: + * frontends/command-line/main.c: The --recurse option should now work + with --get-all-thumbnails, --get-all-images, --get-all-raw-data, + --list-files and --list-folders. + +2001-10-04 Lutz Müller + + * libgphoto2/filesys.c: Only spew debugging messages in case of error - + there don't seem to be serious bugs in there any more. + +2001-10-04 Hubert Figuiere + + * camlibs/kodak/dc240/library.c: patch by Peter Fales + compute the packet checksum and ask to resend it. + +2001-10-04 Lutz Müller + + * include/gphoto2-debug.h: #include + * include/gphoto2-result.h: #include + * libgphoto2/debug.c: #include + +2001-10-04 Lutz Müller + + * libgphoto2/debug.c: Move debugging stuff to libgphoto2_port so + that those messages get saved, too. + +2001-10-04 Lutz Müller + + * camlibs/konica/library.c: const + * frontents/command-line/main.c: Print out last debugging messages + on error + * include/gphoto2-debug.h: + * libgphoto2/debug.c: Remember history + * include/gphoto2-result.h: + * libgphoto2/result.c: Revert the result_as_description thing + +2001-10-04 Lutz Müller + + * libgphoto2/result.c: + * libgphoto2/camera.c: + * include/gphoto2-camera.h: + * include/gphoto2-result.h: Put in some consts. + +2001-10-03 Hubert Figuiere + + * camlibs/kodak/CAMERAS: added latest Kodak DX models. + +2001-10-03 Lutz Müller + + * frontends/command-line/main.c: Print out additional information + on error. + * include/gphoto2-result.h: + * libgphoto2/result.c (gp_result_as_description): New. + +2001-10-03 Lutz Müller + + * libgphoto2/camera.c: Check the result of gp_port_open. + +2001-10-01 Lutz Müller + + * camlibs/konica/localization/Makefile.am: EXTRA_DIST the localization + data to get the stuff included in the dist tarball. + +2001-10-01 Lutz Müller + + * camlibs/konica: Rejoice, we no longer have a glib dependency! + +2001-10-01 Lutz Müller + + * camlibs/konica/konica.[c,h]: + * camlibs/konica/library.c: Moving towards glib-free code... + +2001-09-27 Lutz Müller + + * camlibs/sierra/protocol.c: + * camlibs/sierra/sierra.c: Gilles Grandou + figured out how to retrieve date and software revision. + * configure.in: + * camlibs/jd350e: New driver from Michael Trawny + +2001-09-25 Lutz Müller + + * libgphoto2/jpeg.h: Fix a warning + * libgphoto2/camera.c: Fix locking problem in + gp_camera_folder_delete_all. + +2001-09-24 Nathan Stenzel + + * camlibs/polaroid/pdc320.h: + * camlibs/polaroid/pdc320.c: now uses jpeg.c and jpeg.h + * libgphoto2/jpeg.h: + * libgphoto2/jpeg.c: Can now create and write jpeg files + (except for actual encoding of compressed data) + +2001-09-24 Lutz Müller + + * libgphoto2/jpeg.h: + * camlibs/polaroid/pdc320.c: Adapt to changes jpeg_* -> gp_jpeg_* + * libgphoto2/jpeg.h: Kill yet another warning. + +2001-09-24 Lutz Müller + + * libgphoto2/jpeg.[c,h]: Respect the namespace of libjpeg. Otherwise, + gtkam and other graphical frontends will horribly fail. + +2001-09-24 Lutz Müller + + * libgphoto2/core.c: have_initted is no longer needed. + +2001-09-24 Lutz Müller + + * camlibs/sonydscf1/sonydscf1.c: + * libgphoto2/debug.c: glob_debug is now static in libgphoto2 + +2001-09-24 Lutz Müller + + * frontends/command-line/main.c: glob_debug is now static in libgphoto2 + +2001-09-24 Lutz Müller + + * libgphoto2/jpeg.c: #define CHECK_RESULT(...) (...) + +2001-09-23 Nathan Stenzel + + * libgphoto2/jpeg.h + * libgphoto2/jpeg.c: Quantization table handling is much easier to do. + +2001-09-23 Chris Pinkham + + * camlibs/jamcam/jamcam.c + camlibs/jamcam/library.h + camlibs/jamcam/library.c: Added support for low-res images. + +2001-09-22 Lutz Müller + + * libgphoto2/filesys.c: Fix two small bugs. + +2001-09-22 Lutz Müller + + * camlibs/jamcam/.cvsignore: + * camlibs/sonydscf55/.cvsignore: New + * include/gphoto2-debug.h: + * libgphoto2/debug.c: Debugging stuff can be found here. + * frontends/command-line/main.c: Use gp_debug_set_level and don't + use gp_init any more (this is done automatically). + * include/Makefile.am: + * libgphoto2/Makefile.am: Add the debugging files + * include/gphoto2-core.h: Remove debugging and initialization stuff + * libgphoto2/core.c: Make gp_init a static function. + * (...) Various smaller changes regarding gp_init and gp_debug_*. + +2001-09-22 Raymond Penners + + * camlibs/sonydscf55/*: Fixes & eliminated compiler warnings. + +2001-09-22 Lutz Müller + + Patch from Carsten Pfeiffer + + * camlibs/sonydscf1.sonydscf1.c: + * include/gphoto2-core.h: + * include/gphoto2-file.h: + * include/gphoto2-filesys.h: + * libgphoto2/core.c: + * libgphoto2/file.c: + * libgphoto2/filesys.c: char *whatever -> const char *whatever. + +2001-09-22 Lutz Müller + + Patch from Ilya Konstantinov : + + * camlibs/sierra/sierra.c (get_info_func): Set the filename. + +2001-09-21 Raymond Penners + + * AUTHORS + MAINTAINERS + configure.in + camlibs/sonydscf55/*: added camera library for Sony DSC-F55 + and Sony's Serial Port Adaptor MSAC-SR1 for the Sony DCR-PC100. + +2001-09-18 Chris Pinkham + + * camlibs/canon/psa50.c + camlibs/canon/serial.c + libgphoto2_port/include/gphoto2-port.h + libgphoto2_port/libgphoto2_port/gp_port.c + libgphoto2_port/usb/libusb.c: changed *usb_msg_read* and + *usb_msg_write* functions to allow passing in of request and + index values. + + * MAINTAINERS + configure.in + camlibs/jamcam/Makefile.am + camlibs/jamcam/jamcam.c + camlibs/jamcam/library.c + camlibs/jamcam/library.h: added camera library for KBGear JamCam v3.0 + +2001-09-12 Lutz Müller + + * libgphoto2/core.c: Add some CHECK_INITs. + +2001-09-11 Nathan Stenzel + + * libgphoto2/jpeg.c: New + * libgphoto2/jpeg.h: New + +2001-09-10 Hubert Figuiere + + * libgphoto2_port/usb/libusb.c (gp_port_usb_find_device_lib): if + device and vendor IDs are 0, return not found. + +2001-09-10 Lutz Müller + + * camlibs/kodak/dc240/dc240.c (camera_init): Don't open/close the port. + This is done by libgphoto2. + +2001-09-10 Lutz Müller + + * libgphoto2/camera.c + (gp_camera_init): Do a simple CHECK_RESULT_OPEN_CLOSE on the init_func + (gp_camera_set_port): Set the path if the port is a serial one. + * camlibs/template/template.c: + * camlibs/sierra/sierra.c: + * camlibs/samsung/samsung.c: + * camlibs/polaroid/pdc700.c: + * camlibs/polaroid/pdc320.c: + * camlibs/panasonic/coolshot/coolshot.c: + * camlibs/konica/library.c: + * camlibs/dimera/mesalib.c: + * camlibs/digita/usb.c: + * camlibs/digita/serial.c: + * camlibs/casio/casio-qv.c: + * camlibs/canon/serial.c: + * camlibs/barbie/barbie.c: + * camlibs/agfa-cl18/agfa.c: Don't open the port. This is always done + by libgphoto2. + +2001-09-10 Lutz Müller + + * libgphoto2/camera.c (gp_camera_list_folders), (gp_camera_list_files): + Return the result instead of GP_OK if anything goes wrong + * libgphoto2/filesys.c: Check if path to folder is absolute. If not, + return GP_ERROR_PATH_NOT_ABSOLUTE. + * libgphoto2/result.c: + * include/gphoto2-result.h: GP_ERROR_PATH_NOT_ABSOLUTE: New error. + +2001-09-10 Lutz Müller + + * camlibs/sierra/sierra.c (get_info_func): Fix copy & paste bug. + +2001-09-10 Lutz Müller + + * libgphoto2/core.c: Additional debugging stuff. + +2001-09-09 Lutz Müller + + * libgphoto2/core.c: Use "... == GP_OK" instead of "!...". That should + prevent that every USB camera shows up on gp_autodetect... + +2001-09-07 Hubert Figuiere + + * libgphoto2_port/usb/libusb.c (gp_port_usb_close): Fixed a + segfault when passed device handle was NULL. + +2001-09-07 Lutz Müller + + * libgphoto2/filesys.c (gp_filesystem_format): Don't request any + listings here. + +2001-09-07 Lutz Müller + + * camlibs/polaroid/pdc640.c: New + * camlibs/polaroid/Makefile.am: Added pdc640 + +2001-09-06 Lutz Müller + + * MAINTAINERS: Added Marius for panasonic + * camlibs/panasonic/coolshot/Makefile.am: @dotlibs + +2001-09-06 Chris Pinkham + + * camlibs/panasonic/coolshot/README + camlibs/panasonic/coolshot/coolshot.c + camlibs/panasonic/coolshot/library.c: changed thumbnail code to + properly decode thumbnails after discovering they are encoded in + YUV 4:1:1 format. + +2001-09-05 Lutz Müller + + * camlibs/polaroid/pdc320.c: Bug fixes from Nathan Stenzel + + +2001-09-03 Chris Pinkham + + * camlibs/panasonic/coolshot/README + camlibs/panasonic/coolshot/coolshot.c + camlibs/panasonic/coolshot/library.h + camlibs/panasonic/coolshot/library.c: added thumbnail support. + +2001-09-02 Chris Pinkham + + * camlibs/panasonic/coolshot/coolshot.c + camlibs/panasonic/coolshot/library.c: code cleanup + * camlibs/panasonic/coolshot/README: added TODO list for driver + +2001-09-02 Lutz Müller + + * include/gphoto2-filesys.h: + * libgphoto2/filesys.c: Cache files, too. + * libgphoto2/camera.c: Use cached files if exist. + * camlibs/konica/library.c: + * camlibs/sierra/sierra.c: Cache files in the filesystem. + +2001-09-02 Lutz Müller + + * camlibs/panasonic/coolshot/coolshot.c: Use gp_list_populate instead + of accessing the filesystem. The filesystem is clever enough to do + that itself. + +2001-09-02 Lutz Müller + + * camlibs/stv0680/pattrec.[c,h]: Move those files ... + * libgphoto2/pattrec.[c,]: ...here. + +2001-09-02 Lutz Müller + + * frontends/command-line/options.c: #include + +2001-09-01 Chris Pinkham + + * configure.in: added line to generate + camlibs/panasonic/coolshot/Makefile + * MAINTAINERS: added line for camlibs/panasonic/coolshot driver + * camlibs/panasonic/Makefile.am: added coolshot to SUBDIRS declaration + * camlibs/panasonic/coolshot/Makefile.am + * camlibs/panasonic/coolshot/README + * camlibs/panasonic/coolshot/TODO + * camlibs/panasonic/coolshot/coolshot.[c,h] + * camlibs/panasonic/coolshot/library.[c,h]:added files to support + Panasonic Coolshot KXL-600A & KXL-601A digital cameras. + +2001-09-01 Lutz Müller + + * camlibs/casio: New + * configure.in: Add casio. Like the polaroid and samsung, those drivers + DON'T WORK and therefore are signed as EXPERIMENTAL. I add those only + to give you a basic framework on which to build. + +2001-08-31 Lutz Müller + + * camlibs/polaroid/pdc700.c: New + +2001-08-31 Lutz Müller + + * configure.in: Added polaroid. + * camlibs/samsung/samsung.c: Added GP_DRIVER_STATUS_EXPERIMENTAL; + * frontends/command-line/main.c: print the EXPERIMENTAL/TESTING flag + * include/gphoto2-abilities.h: + * libgphoto2/abilities.c: Added CameraDriverStatus + * camlibs/polaroid/pdc320.c: + * camlibs/polaroid/Makefile.am: New + +2001-08-31 Lutz Müller + + * camlibs/samsung/Makefile.am: + * camlibs/samsung/samsung.c: New but untested. (Just ported it from + old gphoto). + * configure.in: Added samsung + +2001-08-31 Lutz Müller + + * libgphoto2/camera.c: Add debugging messages + +2001-08-31 Lutz Müller + + * camlibs/agfa-cl18/agfa.c: Remove gp_port_usb_find_device, that's in + libgphoto2/camera.c now. + * camlibs/canon/canon.c: Move the declaration of the models struct here. + * camlibs/canon/canon.h: The models struct is no longer needed here. + * camlibs/psa50.[c,h]: cs->gdev is now camera->port. + * camlibs/canon/serial.[c,h] + (canon_usb_probe): Removed. Now in libgphoto2/camera.c + (canon_serial_init): Don't create/free a port here. Use camera->port. + (canon_serial_close): Removed. No longer needed. Handled by libgphoto2 + (canon_serial_restore): Same here. + * digita/commands.c: Indicate usb product/vendor in the abilities + so that gphoto2 can autodetect. Use camera->port. + * camlibs/digita/serial.c: Don't create/free the port here. Handled by + libgphoto2 + * camlibs/digita/usb.c: No probe, no port creation (->libgphoto2) + * camlibs/directory/directory.c: Declare lots of functions static. + * camlibs/kodak/dc240/library.[c,h]: + * camlibs/kodak/dc240/dc240.[c,h]: Use camera->port + * camlibs/konica/library.c: No gp_port_usb_find_device here. + * libgphoto2/camera.c (gp_camera_init): In case of USB, + find the device. That removes redundancy in the camera libraries. + +2001-08-30 Dan Fandrich + * libgphoto2/file.c: + * include/gphoto2-file.h: + * camlibs/dimera/dimera3500.c: removed traces of the PNM + pseudo-file type and added PGM. + +2001-08-30 Lutz Müller + + * camlibs/dimera/dimera3500.c (camera_file_get): Use + gp_file_adjust_name_for_mime_type + * libgphoto2/file.c (gp_file_adjust_name_for_mime_type): + GP_MIME_RAW -> *.raw + +2001-08-30 Lutz Müller + + * camlibs/agfa.c: + * camlibs/commands.c: + * camlibs/commands.h: Use a macro CHECK for most of the simple + error checks. That makes the code much cleaner. + +2001-08-30 Lutz Müller + + * camlibs/agfa-cl18/agfa.h: Renamed to + * camlibs/agfa-cl18/commands.h + * camlibs/Makefile.am: Reflect this change. + * camlibs/commands.c: + * camlibs/agfa.c: Improve error reporting. + +2001-08-30 Lutz Müller + + * camlibs/agfa-cl18/*: Bring it up to date (camera->port and camera->fs) + +2001-08-29 Lutz Müller + + * camlibs/barbie/*: Use camera->port and camera->fs. + * camlibs/dimera/dimera3500.c + (populate_filesystem): Removed. + (camera_folder_list_folders): Removed. We don't support folders anyways + (camera_folder_list_files): Renamed to + (file_list_func): Don't access the CameraFilesystem here. Just + populate the list. The CameraFilesystem will get updated by libgphoto2. + (camera_file_get_info): Renamed to + (get_info_func): New + (camera_file_set_info): Removed. Not supported. + (camera_init): Correctly gp_filesystem_set_list_funcs and + gp_filesystem_set_info_funcs so that the CameraFilesystem has full + control over the information + * include/gphoto2-list.h: + * libgphoto2/list.c: (gp_list_populate): New. Please use this + function to populate the list passed to you on file_list_func. + * libgphoto2/filesys.c: Don't remove the dirty flag on folders + on gp_filesystem_append (thanks, Dan!) + +2001-08-29 Lutz Müller + + * camlibs/template/*: Updated + * include/gphoto2-camera.h: Add a note about c_folder_list_folders and + c_folder_list_files not to be used. Same with [get,set]_info. + * include/gphoto2-filesys.h: Remove an uneeded typedef. + * libgphoto2/filesys.c: Here, too. + +2001-08-29 Lutz Müller + + Dan Fandrich found this bug: + + * libgphoto2/camera.c (list_files, list_folders): If + gp_filesystem_list_files returns 0 files, try the old method. Same with + folders. + +2001-08-29 Lutz Müller + + Fabrice did it again: + + * camlibs/sierra/*: Actually use camera->fs. + +2001-08-29 Lutz Müller + + * include/gphotoos2.h: + * include/gphoto2-portability-os2.h: Removed. Contents are now ... + * include/gphoto2.h: ... here. + +2001-08-29 Lutz Müller + + * gphoto2-library.h: Clean up this file. + * gphoto2-camera.h: We don't need camera_init, camera_abilities, and + camera_id here. That belongs into gphoto2-library.h. + * libgphoto2/camera.c: + * libgphoto2/core.c: Adapt + * camlibs/*: Move camera_init to the bottom of the file. Camera + driver authors, could you please declare the functions above static? + Except camera_id and camera_abilities. + +2001-08-29 Lutz Müller + + All work from Fabrice Bellet : + + * libgphoto2/filesys.c (gp_filesystem_number): Check if the folder + is dirty (like in gp_filesystem_folder_number). + +2001-08-29 Lutz Müller + + * camlibs/sierra/*: + * camlibs/directory/directory.c (camera_folder_list_folders), + (camera_folder_list_files), (camera_file_[get,set]_info): Removed. + Use the camera->fs. Use camera->port. + * camlibs/*: camera->port->* -> camera->port_info->* + * include/gphoto2-camera.h: + * libgphoto2/camera.c: Open the port before accessing a camera, + close it after. + +2001-08-28 Hubert Figuiere + + * include/gphoto2-file.h (GP_MIME_BMP): added this mime type. + +2001-08-29 Lutz Müller + + * include/gphoto2-file.h: Add a note about the crappy API + * include/gphoto2-abilities-list.h: + * libgphoto2/abilities-list.c: + * libgphoto2/core.c: Don't access the CameraAbilitiesList directly + any more. + +2001-08-29 Lutz Müller + + Another patch from Ilya Konstantinov : + + * libgphoto2/camera.c (gp_camera_new): Correctly initialize the speed + to 0 + +2001-08-28 Lutz Müller + + * camlibs/canon/psa50.c: + * camlibs/kodak/dc120/library.c: + * camlibs/minolta/dimagev/dimagev.c: + * camlibs/panasonic/dc1000.c: + * camlibs/panasonic/dc1580.c: + * camlibs/sonydscf1/sonydscf1.c: Remove direct accesses to the + CameraFile struct. + +2001-08-27 Lutz Müller + + Patch from Fabrice Bellet : + + * camlibs/sierra/library.[c,h]: + * camlibs/sierra/sierra.c: Use the new filesystem to cache file + information and for listing files/folders. + * include/gphoto2-file.h: + * libgphoto2/file.c (gp_file_detect_mime_type), + (gp_file_adjust_name_for_mime_type): New + * libgphoto2/camera.c: list->count = 0; + * libpghoto2/filesys.c (gp_filesystem_number): If this function is + called, scan the whole filesystem. + * tests/test-filesys.c: Test gp_filesystem_get_folder, too. + +2001-08-27 Lutz Müller + + * camlibs/sierra/sierra.c: Now that libgphoto2_port is patched, we + can revert the quick fix from two hours ago. + +2001-08-27 Lutz Müller + + * libgphoto2/camera.c + * libgphoto2/file.c: strcpy -> strncpy + +2001-08-27 Lutz Müller + + * include/gphoto2-filesys.h: + * libgphoto2/filesys.c: Cache folders and files, too (that is, only + query them from the camera when needed. + * frontends/command-line/main.c: Don't require a port with + "Directory Browse". + * camlibs/konica/library.c: Use the new functions + * camlibs/directory/directory.[c,h]: Use the filesystem + * tests/test-filesys.c: Demonstrate the use of the new functions. + +2001-08-27 Lutz Müller + + * camlibs/sierra/sierra.c: And correctly use the macros CHECK (won't + stop the camera) and CHECK_STOP (after the connection has been started). + +2001-08-27 Lutz MÜller + + * camlibs/sierra/sierra.c: Until I can fix the bug in + libgphoto2_port, don't close the USB port. + +2001-08-27 Lutz Müller + + Suggestion from Ilya Konstantinov : + + * include/gphoto2-camera.h: + * libgphoto2/camera.c (gp_camera_[get,set]_port_name) and + (gp_camera_[get,set]_port_path): New + * frontends/command-line/main.c: Call those functions. + +2001-08-27 Lutz Müller + + * include/gphoto2-filesys.h: + * libgphoto2/filesys.c: Implement caching for file information. + * tests/test-filesys.c: Test it here. + * camlibs/konica/library.c: Use gp_filesystem_[get,set]_info. This + stuff is really incredibly fast. + +2001-08-27 Lutz Müller + + Daniel Resare suggested using AC_CONFIG_SUBDIRS: + + * configure.in: Use AC_CONFIG_SUBDIRS(libgphoto2_port). + * Makefile.am: build.sh isn't needed any more + * INSTALL: Update installation instructions + + * doc/Makefile.am: Removed OVERVIEW and NOTES. This should have + happened a long time ago. + +2001-08-27 Lutz Müller + + Ilya Konstantinov pointed me to + this bug: + + * camlibs/sierra/sierra.c (camera_file_get): Add a break in the + switch statement so that people can download files instead of getting + errors. + +2001-08-27 Lutz Müller + + * include/gphoto2-core.h: + * libgphoto2/core.c (gp_autodetect): Revert an API change I committed + by error. Sorry. + * libgphoto2/camera.c: + * frontends/command-line/main.c: Here too. + +2001-08-27 Lutz Müller + + Suggestions from Fabrice Bellet : + + * camlibs/sierra/library.c (sierra_change_folder): Just return if we + are already in the requested folder. + (sierra_update_fs_for_folder): Dont jump into the folder twice. + * camlibs/sierra/sierra.c (camera_init): Use camera_start here instead + of reimplementing everything again. + +2001-08-26 Hubert Figuiere + + * configure.in: fixed a typo in the dotlibs value. + +2001-08-26 Lutz Müller + + * include/gphoto2-camera.h: + * libgphoto2/camera.c: Add gp_camera_[set,get]_model. Please use + those functions instead of directly accessing camera->model. + * libgphoto2/core.c: On exit, set glob_abilities_list = NULL + * tests/test-gphoto2.c: Add lots of documentation. + +2001-08-26 Lutz Müller + + * camlibs/dimera/dimera3500.c: explicitly set the conversion method + to GP_FILE_CONVERSION_METHOD_CHUCK. + * camlibs/digita/digita.c: Move the conversion raw -> ppm to ... + * include/gphoto2-file.h: + * libgphoto2/file.c: ... here. + * include/gphoto2-filesystem.h: + * libgphoto2/filesys.c: Implement "dirty" folders. + +2001-08-26 Lutz Müller + + * camlibs/dimera3500.c: Move the raw->pnm conversion ... + * include/gphoto2-file.h: + * libgphto2/file.c: ... here. Now, other camera drivers can use this, + too. + * include/gphoto2-core.c: + * libgphoto2/core.c: Small change to make the API consistent. + * frontends/command-line/main.c: Add possibility for download of raw + data. + +2001-08-25 Lutz Müller + + * include/gphoto2-file.h: + * include/gphoto2-library.h: + * include/gphoto2-camera.h: Support for raw data. + * libpghoto2/file.c: Adjust to above changes. + * libgphoto2/frontend.c: Kill a warning. + * libgphoto2/libgphoto-2.0.pc.in: CFlags -> Cflags + * libgphoto2/widget.c: Include gphoto2-result.h instead of gphoto2.h + * camlibs/*: Prepare support for download of raw data. Remove lots of + redundant code (people just copied & pasted the code for file_get + and file_get_preview...). I hope everything works as it did before. + * frontend/command-line/*: Prepare support for download of raw data + +2001-08-24 Lutz Müller + + * libgphoto2/abilities.c: + * include/gphoto2-abilities.h: Let gp_abilities_new return an error + code. This was the last one. + * camlibs/*: Adjust to above change. + * camlibs/canon/canon.c: #if 0 some code to kill some warnings + +2001-08-24 Lutz Müller + + * include/gphoto2-abilities-list.h: Make gp_abilities_list_new + return an error code. Introduce gp_abilities_list_sort and + gp_abilities_list_count. + * libgphoto2/abilities-list.c: See above. + * libgphoto2/core.c: Sorting code now is in abilibies-list. + * libgphoto2/file.c: "image/x-png" -> "image/png" + +2001-08-24 Lutz Müller + + * camlibs/sierra/library.c: Remove some unnecessary casts, put in some + CHECKs + * camlibs/kodak/dc120/dc120.c: + * camlibs/kodak/dc210/library.c: + * camlibs/kodak/dc240/library.c: Use gp_file_* instead of directly + accessing the struct. + * libgphoto2/filesys.c: Remove lots of redundancy, always check if + folder has a trailing slash (and ignore it if this is the case). + +2001-08-24 Lutz Müller + + * camlibs/agfa-cl18/agfa.c: Use gp_file_* instead of directly + accessing the struct. + * camlibs/barbie/barbie.c: And here. + * camlibs/directory/directory.c: And here. + * camlibs/konica/library.c: And here. + * camlibs/sierra/sierra.c: And here. + * camlibs/panasonic/l859/l859.c: And here. + * camlibs/dimera/dimera3500.c: And here. + * camlibs/stv0680/stv0680.c: And here. + * frontends/command-line/main.c: And here. + * libgphoto2/camera.c: And here. + * libgphoto2/file.c: + * include/gphoto2-file.h: Introduce some more gp_file_* functions. + +2001-08-24 Lutz Müller + + * include/gphoto2-file.h: Make gp_file_new return an error code. + * */*: Adjust everything for above change. + +2001-08-23 Lutz Müller + + * libgphoto2/list.c (gp_list_new): memset on *list instead of list. + +2001-08-22 Hubert Figuiere + + * camlibs/dimera/dimera3500.c: removed * / * embedded inside comments + that issued warnings and broke the build... + * camlibs/kodak/dc240/library.c (dc240_wait_for_busy_completion): + cast a const to a char to avoid a serious warning on Solaris sparc + gcc. Fix bug #454183 + +2001-08-22 Stephane Castejon + + * frontends/command-line/main.c : fix option --debug so that it + really put the GP_DEBUG_HIGH mode. + +2001-08-22 Lutz Müller + + * */*: Small parameter changes to make gphoto2 API more consistent. + More to follow. + +2001-08-22 Lutz Müller + + * README: Update USB Mass Storage list + +2001-08-21 Lutz Müller + + * libgphoto2/camera.c (gp_camera_file_get_info): Fix logic. + +2001-08-21 Lutz Müller + + * libgphoto2/camera.c: + * libgphoto2/core.c: + * libgphoto2/widget.c: Introduce CHECK_NULL and CHECK_RESULT for + better error recovery and reporting + +2001-08-22 Hubert Figuiere + + * MAINTAINERS: take over DC240 maintenance. + * camlibs/kodak/dc240/library.h: removed unused functions. + * camlibs/kodak/dc240/library.c: moved lot of functions to static. + (dc240_wait_for_busy_completion): implemented. (NEW) + (dc240_capture): finished implementation and prototype update. + * camlibs/kodak/dc240/dc240.c (camera_init): activate capture_image + (camera_capture): reimplemented and updated prototype + +2001-08-21 Lutz Müller + + * libgphoto2/camera.c (gp_camera_file_get_info): Make sure the field + name is always set. + +2001-08-21 Lutz Müller + + * README: Updated list of USB Mass Storage cameras. Thanks Hubert! + +2001-08-21 Stephane Castejon + + * Removing unused variables + +2001-08-21 Stephane Castejon + + Correct following bugs in the sierra driver : + * Could not retrieve movies from the cameras (got the image having + the same base name instead). Same behaviour for movie thumbnails, + * After correction of problem 1, got movie thumbnails that do + not fit the JPEG format. + * After correction of problem 1 & 2, part of some movie thumbnails had a + very bad quality! The phenomenon was aleatory. + + In camlibs/sierra/library.c,h : + * Rewrite the sierra_read_packet routine : now it downloads movie thumbnails + correctly (third bug). + * Correction in the sierra_capture routine to make it generic regarding name + of the folder the captured image is stored in. + * Move update_fs_for_folder and sierra_change_folder from sierra.c + to here. + * Plus various other minor changes to try to be consistent between the + different routines (when do we need to retry, error codes). + Still work to be done there. + * Add gp_filesystem_delete_all at the beginning of update_fs_for_folder. + * Start documenting routines. + + In camlibs/sierra/sierra.c : + * Add call to sierra_change_folder in camera_file_get_generic, + camera_file_get_info, camera_folder_delete_all, camera_file_delete. + Remove sierra_folder_set from camera_start (then delete the routine + since it is not used anymore). + * Correct camera_file_get_generic to handle movie thumbnails + correctly. + * Correction in camera_file_get_generic regarding the properties + (type and name) of the return file : it is always jpeg for thumbnails. + * Move update_fs_for_folder and sierra_change_folder to library.c. + * Remove formatting of the filesystem from camera_folder_delete_all : it + is now performed by sierra_update_fs_for_folder. + * Add a camera specific error code GP_ERROR_BAD_CONDITION which is raised + when a picture cannot be captured (for instance if the lens protection was + not removed, or the memory card is full). + * Start documenting routines. + +2001-08-20 Lutz Müller + + * doc/OVERVIEW: Cruft, not up to date, incorrect. Removed. + * doc/NOTES: Redundant. Removed. + * libgphoto2/camera.c: Be nice to frontend-writers, call gp_init if + it hasn't been called yet on gp_camera_new. + * libgphoto2/core.c: Same here with gp_autodetect and gp_camera_count. + * include/gphoto2-core.h: Kill compile warning + +2001-08-20 Lutz MÜller + + * libpghoto2/camera.c: Kill compile warning by declaring gp_camera_exit + static + +2001-08-20 Lutz MÜller + + * MAINTAINERS: New + +2001-08-20 Lutz Müller + + * camlibs/sierra/sierra.c (camera_file_get_generic): Documentation + update + +2001-08-20 Lutz Müller + + * camlibs/sierra/sierra.c (camera_file_get_generic): Fix detection + of TIFF images + +2001-08-19 Lutz Müller + + * configure.in: -Wmissing-prototypes -Wmissing-declarations + * camlibs/agfa-cl18/commands.c: + * camlibs/agfa-cl18/usb.c: + * frontends/command-line/foreach.c: + * frontends/command-line/interface.c: + * frontends/command-line/main.c: + * frontends/command-line/options.c: + * frontends/command-line/range.c: + * frontends/command-line/shell.h: + * include/gphoto2-file.h: + * libgphoto2/file.c: First step towards a compilation with -Werror + +2001-08-19 Lutz Müller + + * camlibs/konica/library.c: Format the filesystem before updating it. + +2001-08-19 Lutz Müller + + * tests/test-filesys.c: Even more tests + * libgphoto2/filesys.c: Fix remaining bugs. It should work now... + +2001-08-19 Lutz Müller + + * tests/test-filesys.c: New + * tests/Makefile.am: Compile test-filesys.c + * libgphoto2/filesys.c: Several bugfixes - there are still bugs in + there. + +2001-08-19 Lutz Müller + + * configure.in: Don't generate camlibs/template/Makefile + * libgphoto2/filesys.c: + * include/gphoto2-filesys.h (gp_filesystem_delete_all): New + +2001-08-19 Lutz Müller + + * libgphoto2/filesys.c (gp_filesystem_format): Fix bug found by + Stéphane Castejon. + +2001-08-19 Lutz Müller + + * libgphoto2/globals.h: Unused. Removed. + +2001-08-19 Lutz Müller + + * include/gphoto2-filesys.h: + * libgphoto2/filesys.c (gp_filesystem_get_folder): New + * libgphoto2/widget.c (gp_widget_get_parent): Corrected typo + +2001-08-18 Lutz Müller + + * include/gphoto2-widget.h: + * libgphoto2/widget.c (gp_widget_get_parent): New function + +2001-08-18 Lutz Müller + + * include/Makefile.am: Oops, add gphoto2-result.h. + +2001-08-18 Lutz Müller + + * po/POTFILES.in: Add core.c, camera.c and result.c + +2001-08-18 Lutz Müller + + * README: Add notice about USB Mass Storage cameras. + * include/*: + * libgphoto2/*: Major cleanup - add licence notice to begin of each + file, remove unused files/functions, ... + * camlibs/konica/Makefile.am: There's no ChangeLog here... + * tests/test-gphoto2.c: Adjust headers + +2001-08-17 Lutz Müller + + * include/gphoto2-camera.h: + * include/gphoto2-file.h: + * include/gphoto2-widget.h: Sort some stuff, put in LGPL notice. + * libgphoto2/widget.c: Hide CameraWidget internals here. No need to + publish all that stuff. + +2001-08-17 Lutz Müller + + * include/gphoto2-datatypes.h: Move the declaration of the lists to ... + * include/gphoto2-lists.h: ... here. This is a first step towards + cleaning up the include-mess. Realized that CameraListType isn't + needed at all - removed. + * include/gphoto2-filesys.h: Hide the actual contents of + the CameraFilesystem ... + * libgphoto2/filesys.c ... here. The normal user doesn't need to + know what's inside. + * libgphoto2/core.c: + * libgphoto2/lists.c: + * camlibs/*: Reflect above changes + +2001-08-17 Lutz Müller + + * configure.in: Add libgphoto-2.0.pc + * libgphoto2/Makefile.am: Remove the old GNOME configuration stuff. + GNOME uses pkgconfig now: + * libgphoto2/libgphoto2Conf.sh.in: Removed + * libgphoto2/libgphoto-2.0.pc.in: New + +2001-08-17 Lutz Müller + + * tests/*: New + * configure.in: + * Makefile.am: Add tests to SUBDIRS and generate the Makefile + * frontents/command-line/test.[c,h]: Removed + * frontends/command-line/main.c: + * frontents/command-line/Makefile.am: Reflect changes + +2001-08-17 Lutz Müller + + * frontents/gtk/macros/*: Removed. + +2001-08-17 Lutz Müller + + * frontents/Makefile.am: Remove libpghoto2_frontend from SUBDIRS. + * frontents/gtk/*: Removed those ancient files. For GUI frontends, + refer to gtkam or GnoCam. They are distributed separately. + +2001-08-17 Lutz Müller + + * frontends/command-line/Makefile.am: Remove reference to + libgphoto2_frontend.la which wasn't needed anyways. + +2001-08-17 Lutz Müller + + * frontents/libgphoto2_frontend/*: Removed. Those files were mainly + empty functions and nowhere needed. + +2001-08-17 Hubert Figuiere + + * camlibs/kodak/dc210/dc210.c, camlibs/kodak/dc210/dc210.h, + camlibs/kodak/dc210/library.c, camlibs/kodak/dc210/library.h, + camlibs/kodak/dc210/Makefile.am, camlibs/kodak/dc210/README: + Initial release of DC210 driver port. + +2001-08-16 Christophe Barbe + + * configure.in, camlibs/agfa-cl18/Makefile.am, + camlibs/barbie/Makefile.am, camlibs/canon/Makefile.am, + camlibs/digita/Makefile.am, camlibs/dimera/Makefile.am, + camlibs/directory/Makefile.am, camlibs/kodak/dc120/Makefile.am, + camlibs/kodak/dc240/Makefile.am, camlibs/kodak/dc3200/Makefile.am, + camlibs/konica/Makefile.am, camlibs/minolta/dimagev/Makefile.am, + camlibs/panasonic/Makefile.am, camlibs/panasonic/l859/Makefile.am, + camlibs/sierra/Makefile.am, camlibs/sonydscf1/Makefile.am, + camlibs/stv0680/Makefile.am, camlibs/template/Makefile.am: It + adds code in configure.in to detect when '.libs' is not detected + and in this case defined a variable "dotlibs" which is then + substitued in all Makefile.in. This fix a build problem with + newer libtool (1.4) + +2001-08-15 Hubert Figuiere + + * camlibs/kodak/dc240/dc240.c (camera_about): Changed a typo in + supported camera models. + +2001-08-14 Lutz Müller + + * camlibs/sierra/sierra.c: Set timeout to TIMEOUT before updating + folder. Thanks to Stéphane Castejon who found this bug. + +2001-08-13 Hubert Figuiere + + * libgphoto2_port/usb/libusb.c (gp_port_usb_open): fix bug #438062: + a NULL usb_device* was passed to usb_dev_handle. + +2001-08-12 Hubert Figuiere + + * camlibs/kodak/dc240/library.c (dc240_file_action): fix bug #440162 + +2001-08-08 Lutz Müller + + * camlibs/sierra/library.c: (sierra_delete_all): Move notice about + cameras ignoring delete_all to ... + * camlibs/sierra/sierra.c: (camera_folder_delete_all): ... here. And + update the filesystem - without that, gphoto2 won't be able to + fix the behaviour of some cameras (ignoring delete_all). + +2001-08-08 Lutz Müller + + * camlibs/panasonic/Makefile.am: SUBDIRS = l859 + +2001-08-08 Lutz Müller + + * camlibs/konica/library.c: (camera_init): Update the filesystem once + at camera_init + (camera_folder_list_folders): Use gp_filesystem_list_folders + (camera_folder_list_files): Use gp_filesystem_list_files + +2001-08-08 Lutz Müller + + * camlibs/sierra/library.[c,h]: (do_capture): Return the right location + of the picture (on my camera, it is in /DCIM/100OLYMP) + (sierra_file_count): Move that function into ... + * camlibs/sierra/sierra.c: (update_fs_for_folder): New. Check the + contents of the camera once at the beginning (init), then don't access + the card anymore. + (camera_init): Populate the filesystem + (camera_folder_list_files): Use gp_filesystem_list_files + (camera_folder_list_folders): Use gp_filesystem_list_folders + (camera_file_get_info): The thumbnails aren't in quicktime format + (camera_capture): Add the picture to the filesystem + * include/gphoto2-filesys.h: + * libgphoto2/filesys.c: (gp_filesystem_append): Allow filename == NULL + for appending just folders + (gp_filesystem_dump): New + (gp_filesystem_list_files): New + (gp_filesystem_list_folders): New + +2001-08-04 Lutz Müller + + * camlibs/sierra/sierra.c: The C-2100UZ is supported, too. + Unfortunatelly, the product id is the same for the C-2100UZ, the + C-3000Z, and the C-3030Z. This results in three entries for this camera + ("gphoto2 --auto-detect"). This has to be fixed somehow, sometime. + +2001-08-03 Lutz Müller + + * camlibs/sierra/sierra.c: Remove the Panasonic Coolshot KXI-600A + from the list of supported cameras - Chris Pinkham + figured out that this camera uses a totally + different protocol. + +2001-08-03 Lutz Müller + + * camlibs/sierra/library.c: Add a note that the Nikon CoolPix 880 + simply ignores (!) the delete_all command. Thanks to Mick Grant + for figuring this out. + +2001-08-03 Lutz Müller + + * libgphoto2/camera.c: Even if the camera reports success on + delete_all, check if all pictures have been deleted. + +2001-08-03 Lutz Müller + + * libgphoto2/camera.c: Not all cameras implement delete_all - fall back + to deletion one by one then. + +2001-07-25 Hubert Figuiere + + * camlibs/kodak/CAMERAS: initial revision. + +2001-07-09 Hubert Figuiere + + * camlibs/kodak/dc240/dc240.c: + * camlibs/kodak/dc240/library.[c,h]: stricter typing of prototypes + using const. + +2001-07-09 Hubert Figuiere + + * camlibs/kodak/dc240/dc240.c: added USB support for DC280, DC3400 + and DC5000. + +2001-07-04 Hubert Figuiere + + * camlibs/kodak/dc240/library.c: close bugs #438161 and #438155. + +2000-08-20 15:47 scottf + + * libgphoto2/library.c: minor formatting changes + +2000-08-20 15:44 scottf + + * libgphoto2/: core.c, file.c, settings.c: added mallocs for NULL + reallocs + +2000-08-20 13:29 jgangemi + + * frontends/gtk/configure.in: - now checks for gnome libs > 1.2.4 + (needed for libglade to work) + +2000-08-20 08:13 philm + + * camlibs/canon/: Changelog, canon.c, psa50.c: make use of + gp_config_set/get instead of own file to save settings + +2000-08-20 06:44 philm + + * camlibs/canon/: Changelog, TODO, canon.c, serial.c: USB now works + thanks to the help of James Tappin and Tuomas Jormola. + +2000-08-19 11:53 jgangemi + + * frontends/gtk/src/main.c: - gphoto-backend correctly initalized + +2000-08-19 11:52 jgangemi + + * frontends/gtk/src/Makefile.am: - now we look in the dialogs + directory too! + +2000-08-19 11:51 jgangemi + + * frontends/gtk/configure.in: - added src/dialogs/Makefile + +2000-08-19 11:22 philm + + * camlibs/canon/serial.c: fixed another type in serial.c + +2000-08-19 11:13 jgangemi + + * frontends/gtk/configure.in: - more verbose output if libglade + fails + +2000-08-19 10:33 philm + + * camlibs/canon/serial.c: fixed a typo in serial.c + +2000-08-19 04:34 scottf + + * camlibs/fujitsu/fujitsu.c: updated the supported camera list + +2000-08-18 20:47 jgangemi + + * frontends/gtk/src/main.c: - adding gnome support (by by + Lutz_Müller) + +2000-08-18 20:45 jgangemi + + * frontends/gtk/src/Makefile.am: - adding gnome support (by + Lutz_Müller) + - now uses gpio-config + +2000-08-18 20:44 jgangemi + + * frontends/gtk/: acconfig.h, configure.in: - adding gnome + support (by Lutz_Müller) + +2000-08-18 17:24 scottf + + * configure.in, libgphoto2/core.c, libgphoto2/core.h, + libgphoto2/settings.c: implemented id-based settings system + +2000-08-18 12:35 scottf + + * frontends/gtk-old/src/util.c: removed debug statement. whoops. :P + +2000-08-18 12:33 scottf + + * frontends/gtk-old/src/: callbacks.c, interface.c, util.c, util.h: + added option to open image in viewer/editor after download + +2000-08-18 11:34 scottf + + * camlibs/canon/serial.c: minor update in serial.c for latest + libusb (usb_device members names changed) + +2000-08-17 17:08 scottf + + * camlibs/directory/directory.def: whoops. overwrote the + directory.def file. fixed + +2000-08-17 17:06 scottf + + * camlibs/directory/directory.c, camlibs/directory/directory.def, + frontends/command-line/main.c: fixing directory browse lib + +2000-08-17 15:48 scottf + + * camlibs/directory/directory.c, frontends/gtk-old/src/main.c: + directory browse now uses GPIO_DIR macros for portability. + gphoto2_gtk updated for frontend_register functionality + +2000-08-17 15:18 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/library.c, + libgphoto2/file.c: minor edits + +2000-08-17 10:54 scottf + + * camlibs/directory/Makefile.am, camlibs/directory/directory.c, + frontends/command-line/interface.h, frontends/command-line/main.c, + include/gphoto2-datatypes.h, libgphoto2/core.c: fixed + frontend_register function (name-space conflict) + +2000-08-17 10:35 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/library.c, + camlibs/fujitsu/library.h, frontends/command-line/main.c, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + include/gphoto2.h, libgphoto2/core.c, libgphoto2/library.c, + libgphoto2/settings.c: fixing little things + +2000-08-17 06:36 philm + + * frontends/gtk-old/src/Makefile.am: fixed Makefile.am to use + gpio-config + +2000-08-17 04:30 mariusz + + * configure.in: Solaris workaround for tr and grep fixed + +2000-08-17 03:05 philm + + * camlibs/canon/: Changelog, canon.c, psa50.c, serial.c: fixed USB + compilation, but does it work? + +2000-08-16 15:12 scottf + + * include/gphoto2.h, libgphoto2/core.c, libgphoto2/exif.h, + libgphoto2/library.c, libgphoto2/library.h: fixed minor issues + +2000-08-16 07:46 mariusz + + * configure.in: fixed problems with Solaris tr (ranges) and grep + (-E option) + +2000-08-16 07:40 mariusz + + * frontends/command-line/main.c: reverse order for image deleting + in cli + +2000-08-15 19:33 jgangemi + + * frontends/gtk/src/: gp_util.c, gp_util.h: - added gp_idle + - completed gp_interface_message_long + - create_message_win_long unimplemented + - completed gp_interface_message + - create_message_win unimplemented + +2000-08-15 19:28 jgangemi + + * frontends/gtk/src/: interface.c, interface.h: - added + create_message_win_long stub + - added create_message_win stub + +2000-08-15 13:49 scottf + + * libgphoto2/: library.c, library.h: quick define changes + +2000-08-15 11:42 philm + + * camlibs/canon/: Changelog, TODO, canon.c, psa50.c, psa50.h, + serial.c, serial.h, util.c, util.h: created a working + camera_config_set functions (saves debug level and owner name). + modified heavily the driver to use the camlib_data struct to store + all the variables which were previously global. The driver should + now be able to use more than one Canon camera at a time (not + tested). + +2000-08-14 20:35 jgangemi + + * frontends/gtk/src/camera_util.h: - finished config_camera_cb + - still need to add gp_message calls and implement + build/retrieve rec + routines + +2000-08-14 20:31 jgangemi + + * frontends/gtk/src/callbacks.c: - finished config_camera_cb + - still need to add gp_message calls and implement the + build/retrieve + routines + +2000-08-14 20:30 jgangemi + + * frontends/gtk/src/camera_util.c: - moved gp_gtk_camera* to + gp_util + +2000-08-14 20:29 jgangemi + + * frontends/gtk/src/: gp_util.c, gp_util.h: - new files : + contains all gp_* routines + - added stubs for some routines so interface compiles + - gp_debug_print now functional + +2000-08-14 20:27 jgangemi + + * frontends/gtk/src/Makefile.am: - added a few more files to + compile + +2000-08-13 21:45 jgangemi + + * frontends/gtk/src/interface.c: - added some interface menus, + work on local file listings + +2000-08-13 21:44 jgangemi + + * frontends/gtk/src/: callbacks.c, callbacks.h: - added some new + callbacks + +2000-08-13 21:43 jgangemi + + * frontends/gtk/src/globals.h: - global vars here + +2000-08-13 21:42 jgangemi + + * frontends/gtk/src/: tree_list_util.c, tree_list_util.h: - all + functions involving trees reside here - these mainly deal w/ + the directory structures and manipulation of the local and + camera + file system + +2000-08-13 21:41 jgangemi + + * frontends/gtk/src/: camera_util.c, camera_util.h: - all + interface funcs to the camera will reside here - see the README + file + one level up + +2000-08-13 21:39 jgangemi + + * frontends/gtk/src/Makefile.am: added files for compiling + +2000-08-13 21:39 jgangemi + + * frontends/gtk/README: read me - i've got some "standards" + listed here + +2000-08-12 13:06 scottf + + * camlibs/konica/: konica.c, konica.h, library.c, lowlevel.c, + localization/data_english.c30, localization/data_french.c30: added + patches from Lutz. now supports localization + +2000-08-11 04:24 simpson2 + + * camlibs/makefile.os2, camlibs/barbie/makefile.os2, + camlibs/canon/makefile.os2, camlibs/canon/serial.c, + camlibs/digita/makefile.os2, camlibs/directory/makefile.os2, + camlibs/sonydscf1/Makefile.am, camlibs/sonydscf1/chotplay.c, + camlibs/sonydscf1/makefile.os2, camlibs/sonydscf1/sonydscf1.c, + frontends/command-line/makefile.os2, + frontends/libgphoto2_frontend/makefile.os2, include/gphotoos2.h, + libgphoto2/core.c, libgphoto2/file.c, libgphoto2/fs.c, + libgphoto2/makefile.os2: bvl: Updated OS/2 makefile and made a + start with modifying the sony lib + +2000-08-10 17:16 scottf + + * camlibs/canon/serial.c: removed reference to gpio/gpio.h in favor + of just gpio.h + +2000-08-10 16:36 scottf + + * camlibs/fujitsu/: fujitsu.c, fujitsu.h: added generic USB support + to fujitsu library. just put in vendor/product/endpoints for any + camera and it will be supported + +2000-08-10 16:19 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/fujitsu.h, + camlibs/fujitsu/library.c, frontends/command-line/main.c, + include/gphoto2-datatypes.h: optimized the fujitsu USB support. + little change in folder-display in the cli + +2000-08-10 16:04 scottf + + * camlibs/canon/canon.c: quick typecast change + +2000-08-10 15:48 scottf + + * libgphoto2/fs.c: fixed filesystem deletion bug (yuck) + +2000-08-10 14:48 philm + + * camlibs/canon/: Changelog, canon.c, psa50.c: changed + camera_summary to report battery status. + +2000-08-10 13:43 philm + + * camlibs/canon/: Changelog, TODO, canon.c, psa50.c, psa50.h: added + psa50_set_time. added some widget to the config dialog box. + +2000-08-09 18:22 philm + + * camlibs/canon/: Changelog, Protocol, canon.c, psa50.c: changed + timeout for initialization from 1000 to 900 because with 1000 it + was working on command line but not GUI. started a configure + dialog box. changed gp_file_list to use gp_list_append. + +2000-08-09 18:17 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/fujitsu.h, + camlibs/fujitsu/library.c, camlibs/fujitsu/library.h, + camlibs/panasonic/.cvsignore, libgphoto2/fs.c: added USB support to + the fujitsu library + +2000-08-09 14:44 philm + + * camlibs/canon/canon.c: changed a sprintf to strcpy in canon.c + (avoids a coredumps (?)) + +2000-08-09 14:14 scottf + + * camlibs/fujitsu/: fujitsu.c, fujitsu.h, library.c: adding USB + support to fujitsu. it's failing right now. blech. + +2000-08-08 19:35 scottf + + * include/gphoto2-datatypes.h: modified cameralistentry + +2000-08-08 15:43 scottf + + * camlibs/konica/: konica.c, konica.h, library.c, library.h, + lowlevel.c, lowlevel.h: added Lutz's patches for filename-centric + API + +2000-08-08 15:33 philm + + * camlibs/canon/serial.c: Fixed typo in serial.c + +2000-08-08 15:04 scottf + + * frontends/command-line/main.c: fixed get-all-pictures bug that + crashed the CLI (for_each_image was being called with NULL folder) + +2000-08-08 15:00 scottf + + * frontends/gtk-old/src/: callbacks.c, interface.c: updated gtk-old + to new API + +2000-08-08 14:59 philm + + * camlibs/canon/: TODO, canon.c, psa50.c, psa50.h, serial.c: Upload + preliminary support for testing. + +2000-08-08 12:56 philm + + * camlibs/canon/: Changelog, TODO: TODO and Changelog files + created. + +2000-08-08 12:38 philm + + * camlibs/canon/: canon.c, serial.c: Bug for setting attributes + corrected. changed canon_serial_send to speed up for all cameras + but A50 which does not like getting too much data in a row. + +2000-08-08 12:10 mariusz + + * camlibs/panasonic/dc1580.c: bug related to abilities fixed + +2000-08-06 06:01 mariusz + + * camlibs/panasonic/: README, dc1000.c, dc1580.c: abilities + accomodated to the new API + +2000-08-05 09:57 mariusz + + * camlibs/panasonic/: README, dc.h, dc1000.c, dc1580.c: filename + based communication between library and core + +2000-08-05 05:35 philm + + * camlibs/canon/canon.c: camera_file_delete updated to the filename + API + +2000-08-05 04:55 philm + + * camlibs/canon/: Makefile.am, README, canon.c, psa50.c, serial.c, + serial.h: Updated library to the filename based API. PowerShot A5 + support must be updated to the new API. Deletion of pics does not + yet work. USB is not updated to the changes in libgpio. + +2000-08-04 20:29 scottf + + * docs/: camlib_devel.sgml, camlib_devel.txt: updated linuxdoc and + plaintext camlib developer docs + +2000-08-04 18:09 scottf + + * camlibs/barbie/barbie.c, camlibs/digita/digita.c, + camlibs/directory/directory.c, camlibs/fujitsu/fujitsu.c, + docs/camlib_devel.lyx, include/gphoto2-core.h, + include/gphoto2-datatypes.h, include/gphoto2-library.h, + libgphoto2/core.c, libgphoto2/globals.h, libgphoto2/library.c: + changed camera_id and camera_abilities prototypes. this should be + the start of stability for the API + +2000-08-04 17:09 jerdfelt + + * include/gphoto2-datatypes.h: Clean up type definitions and + prototypes. Some minor formatting changes for consistency + +2000-08-04 17:07 jerdfelt + + * camlibs/digita/: digita.c, usb.c: Get it to atleast compile again + +2000-08-04 17:04 jerdfelt + + * camlibs/: canon/.cvsignore, konica/.cvsignore: Update .cvsignore + +2000-08-04 17:04 jerdfelt + + * camlibs/canon/canon.c: Spaces to TABs + +2000-08-04 17:02 jerdfelt + + * libgphoto2/.cvsignore: Wildcard .lo + +2000-08-04 17:01 jerdfelt + + * configure.in: Fix alignment for camera help + +2000-08-04 17:01 jerdfelt + + * camlibs/sonydscf1/: .cvsignore, Makefile.am: Standard files + +2000-08-04 15:32 scottf + + * camlibs/barbie/barbie.c, camlibs/canon/canon.c, + camlibs/digita/digita.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/library.c, + camlibs/konica/library.c, camlibs/panasonic/dc1000.c, + camlibs/panasonic/dc1580.c, camlibs/sonydscf1/sonydscf1.c, + camlibs/template/template.c, docs/camlib_devel-portmon.eps, + docs/camlib_devel-repeater.eps, docs/camlib_devel-y.eps, + docs/camlib_devel.lyx, docs/camlib_devel.txt, + include/gphoto2-library.h, libgphoto2/library.c: changed prototype + for camera_id to use CameraText (sorry everyone\!) + +2000-08-04 14:59 jerdfelt + + * libgphoto2/core.c: Standardize formatting a little bit + +2000-08-04 14:52 jerdfelt + + * include/gphoto2-datatypes.h: Tabs before everything? Call me + anal, but I think this is more readable :) + +2000-08-04 11:38 scottf + + * frontends/command-line/main.c: fixed thumbnail naming buggy + +2000-08-03 17:47 scottf + + * camlibs/barbie/barbie.c, camlibs/barbie/barbie.h, + camlibs/barbie/library.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, frontends/command-line/main.c, + frontends/gtk-old/src/callbacks.c, include/gphoto2-core.h, + include/gphoto2-datatypes.h, include/gphoto2-library.h, + libgphoto2/core.c, libgphoto2/fs.c: changed to newer API version. + completely filename based, more atomic to make way for camera + locking + +2000-08-03 16:13 scottf + + * configure.in, camlibs/NOTES, camlibs/barbie/barbie.c, + camlibs/directory/directory.c, camlibs/fujitsu/fujitsu.c, + camlibs/fujitsu/fujitsu.h, camlibs/sonydscf1/chotplay.c, + camlibs/sonydscf1/sonydscf1.c, frontends/command-line/main.c: moved + to filename-based system. tested (pretty well) and working with + barbie, directory, and fujitsu libraries + +2000-08-02 10:38 scottf + + * DAEMON, camlibs/barbie/Makefile.am, camlibs/barbie/barbie.c, + camlibs/barbie/barbie.h, camlibs/barbie/library.c, + camlibs/barbie/library.h, camlibs/barbie/makefile.os2, + frontends/command-line/main.c, include/gphoto2-core.h, + include/gphoto2-datatypes.h, include/gphoto2-library.h, + libgphoto2/Makefile.am, libgphoto2/core.c, libgphoto2/fs.c, + libgphoto2/fs.h, libgphoto2/library.c: changing to filename based + system + +2000-08-01 15:03 scottf + + * camlibs/directory/directory.c, include/gphoto2-core.h, + include/gphoto2-datatypes.h, libgphoto2/widget.c: revised widget + system (a little) + +2000-08-01 15:00 scottf + + * frontends/gtk-old/src/callbacks.c: fixed configuration bug (radio + buttons). updated to newer widget revision + +2000-08-01 12:31 scottf + + * camlibs/fujitsu/fujitsu.c: added folder support patch from Veros + Kaplan (thanks Veros\!) + +2000-08-01 12:17 scottf + + * include/gphoto2-datatypes.h: fixed abilities bug + +2000-07-31 19:10 scottf + + * camlibs/: canon/psa50.c, canon/serial.c, digita/digita.c, + digita/usb.c: updated for new dynamic libgpio + +2000-07-31 14:47 scottf + + * camlibs/panasonic/.cvsignore: updated .cvsignore + +2000-07-31 14:46 scottf + + * camlibs/panasonic/: README, dc1000.c, dc1000.h: added missing + panasonic files + +2000-07-31 14:45 scottf + + * frontends/command-line/main.c, libgphoto2/Makefile.am, + libgphoto2/core.c: fixed CAMLIBS directory bug + +2000-07-31 11:16 scottf + + * camlibs/fujitsu/fujitsu.c: fixed camera_init conditional + placemente (noted by Veros Kaplan) + +2000-07-31 05:16 simpson2 + + * camlibs/digita/: digita.c, digita.h, serial.c: bvl: init + structure passed to digita seial init, for serial path and speed + +2000-07-30 12:59 scottf + + * camlibs/konica/: konica.c, konica.h, library.c: added patch from + lutz to konica + +2000-07-30 06:34 simpson2 + + * docs/build_OS2.txt: bvl: start of information on OS/2 Build + +2000-07-30 05:10 simpson2 + + * AUTHORS, camlibs/makefile.os2, camlibs/barbie/makefile.os2, + camlibs/canon/makefile.os2, camlibs/digita/makefile.os2, + camlibs/directory/makefile.os2, camlibs/fujitsu/makefile.os2, + camlibs/konica/makefile.os2, camlibs/panasonic/makefile.os2, + camlibs/sonydscf1/makefile.os2, + frontends/command-line/makefile.os2: bvl: updated OS/2 makefiles, + there was a stupid machine dependant declaration in them + +2000-07-29 13:28 scottf + + * AUTHORS: added mariusz to the AUTHORS file + +2000-07-29 12:06 scottf + + * camlibs/: canon/canon.c, panasonic/Makefile.am, panasonic/dc.c, + panasonic/dc.h, panasonic/dc1580.c, panasonic/dc1580.h: applied + patches from Mariusz(panasonic) and Phillipe (canon) + +2000-07-29 04:41 simpson2 + + * camlibs/barbie/makefile.os2, + frontends/libgphoto2_frontend/makefile.os2: bvl: updated OS/2 + support + +2000-07-29 04:32 simpson2 + + * camlibs/.cvsignore: bvl: updated + +2000-07-29 04:31 simpson2 + + * camlibs/konica/: .cvsignore, konica.df, makefile.os2: bvl: added + files needed to build DLL on OS/2 + +2000-07-29 04:30 simpson2 + + * camlibs/fujitsu/.cvsignore: [no log message] + +2000-07-29 04:29 simpson2 + + * camlibs/fujitsu/: fujitsu.df, makefile.os2: bvl: Files needed to + build DLL on OS/2 + +2000-07-29 04:28 simpson2 + + * camlibs/makefile.os2, camlibs/directory/makefile.os2, + frontends/command-line/makefile.os2, include/gphotoos2.h, + libgphoto2/makefile.os2: bvl: various changes and updates to OS/2 + specific files + +2000-07-29 04:27 simpson2 + + * camlibs/sonydscf1/: readme, todo: [no log message] + +2000-07-29 04:25 simpson2 + + * camlibs/sonydscf1/: chotplay.c, chotplay.h, command.c, command.h, + common.h, config.h, dsc_f1.c, getuint.c, getuint.h, makefile.os2, + pmp.h, sonydscf1.c, sonydscf1.df, sonydscf1.h: bvl: Support for the + Sony DSC-F1, modified library from gphoto1 only tested and + compiled on OS/2 + +2000-07-29 04:20 simpson2 + + * camlibs/canon/: canon.c, psa50.c, serial.c: bvl: changed include + to as discussed earlier + +2000-07-29 04:17 simpson2 + + * camlibs/: barbie/barbie.df, barbie/makefile.os2, canon/canon.df, + canon/makefile.os2: bvl: added files to build DLL on OS/2 + +2000-07-29 04:16 simpson2 + + * camlibs/panasonic/: dc.c, dc1580.c, makefile.os2, panasonic.df: + bvl: dc.c, dc1580.c added db.h include, to make it compile on OS/2 + makefile.os2 panansonic.df files needed to build dll on OS/2 + +2000-07-29 04:14 simpson2 + + * camlibs/digita/digita.df: bvl: digita.df, module defenition file + to create DLL on OS/2 + +2000-07-29 04:13 simpson2 + + * camlibs/digita/makefile.os2: bvl: makefile for OS/2 + +2000-07-29 04:13 simpson2 + + * camlibs/digita/: commands.c, digita.c, digita.h, serial.c, usb.c: + bvl: Changed include file from to + +2000-07-28 23:09 scottf + + * include/gphoto2-datatypes.h: fixed abilities->port macros to + reflect renumbering of CameraPortType + +2000-07-28 16:54 scottf + + * camlibs/panasonic/dc1580.c: replace gp_message in panasonic lib + with gp_camera_message + +2000-07-28 13:20 scottf + + * camlibs/canon/canon.c, camlibs/canon/canon.h, + camlibs/canon/psa50.c, camlibs/canon/psa50.h, + camlibs/fujitsu/fujitsu.c, frontends/command-line/main.c, + frontends/gtk-old/src/callbacks.c, include/gphoto2-datatypes.h, + libgphoto2/core.c, libgphoto2/globals.h, libgphoto2/library.c: + added patch from mariusz to fix deleting bug. added canon patch + from phillipe to fix thumbnailing bug and add detection of IXUS + +2000-07-27 13:00 scottf + + * camlibs/canon/canon.c, camlibs/canon/serial.c, + camlibs/konica/library.c, libgphoto2/library.c: fixed 'not a + library' bug for konica and canon libraries + +2000-07-27 12:30 scottf + + * camlibs/konica/library.c: added patch from Lutz fixing exit, and + removing unneeded struct + +2000-07-27 03:31 scottf + + * ChangeLog: updated ChangeLog + +2000-07-27 00:38 scottf + + * frontends/gtk/configure.in: changed name of gtk from project5 to + gphoto2_gtk2 for now + +2000-07-27 00:37 scottf + + * frontends/gtk/: install-sh, missing, mkinstalldirs, + intl/ChangeLog, intl/VERSION, intl/bindtextdom.c, + intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c, + intl/explodename.c, intl/finddomain.c, intl/gettext.c, + intl/gettext.h, intl/gettextP.h, intl/hash-string.h, + intl/intl-compat.c, intl/l10nflist.c, intl/libgettext.h, + intl/linux-msg.sed, intl/loadinfo.h, intl/loadmsgcat.c, + intl/localealias.c, intl/po2tbl.sed.in, intl/textdomain.c, + intl/xopen-msg.sed: remove intl directory + +2000-07-27 00:35 scottf + + * frontends/gtk/: aclocal.m4, config.h.in, configure, + po/Makefile.in.in, po/cat-id-tbl.c, po/project5.pot, + po/stamp-cat-id, src/Makefile.am: removed unnecessary files + +2000-07-27 00:25 scottf + + * frontends/gtk/src/: tree_list_util.c, tree_list_util.h: added + missing files to the gtk frontend + +2000-07-26 22:46 scottf + + * camlibs/digita/digita.c: fixed small bug in digita abilities code + (incremented pointer location, not value for some reason :P) + +2000-07-26 22:44 scottf + + * camlibs/template/template.c: corrected template directory's port + ability + +2000-07-26 22:42 scottf + + * camlibs/: canon/.cvsignore, konica/.cvsignore: mod'd cvsignore + files + +2000-07-26 22:41 scottf + + * camlibs/digita/digita.c, camlibs/digita/digita.h, + camlibs/digita/serial.c, camlibs/digita/usb.c, + frontends/command-line/Makefile.am, frontends/command-line/main.c, + include/gphoto2-datatypes.h, include/gphoto2.h: added digita + library and command-line patch from Johannes + +2000-07-26 21:33 scottf + + * camlibs/: canon/Makefile, canon/Makefile.in, konica/Makefile.in: + removed Makefile[.in] from canon and konica libs + +2000-07-26 21:06 scottf + + * docs/: .cvsignore, camlib_devel.lyx, camlib_devel.sgml, + camlib_devel.txt, frontend_devel.lyx, frontend_devel.sgml, + frontend_devel.txt: starting to write the docs. outlined structure + +2000-07-26 20:43 scottf + + * docs/: camlib_devel.lyx, camlib_devel.sgml, frontend_devel.lyx, + frontend_devel.sgml: adding skeletons for the docs + +2000-07-26 20:26 scottf + + * docs/: camlib_devel.txt, frontend_devel.txt: starting developer + documentation + +2000-07-26 20:22 scottf + + * frontends/gtk/src/Makefile.am: small Makefile.am change to gtk + +2000-07-26 19:55 scottf + + * frontends/gtk-old/files.list: removed files.list + +2000-07-26 14:36 scottf + + * frontends/gtk/autogen.sh: added autogen.sh + +2000-07-26 14:34 scottf + + * frontends/gtk/: ABOUT-NLS, AUTHORS, COPYING, ChangeLog, INSTALL, + Makefile.am, NEWS, README, acconfig.h, aclocal.m4, config.h.in, + configure, configure.in, install-sh, missing, mkinstalldirs, + stamp-h.in, intl/ChangeLog, intl/VERSION, intl/bindtextdom.c, + intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c, + intl/explodename.c, intl/finddomain.c, intl/gettext.c, + intl/gettext.h, intl/gettextP.h, intl/hash-string.h, + intl/intl-compat.c, intl/l10nflist.c, intl/libgettext.h, + intl/linux-msg.sed, intl/loadinfo.h, intl/loadmsgcat.c, + intl/localealias.c, intl/po2tbl.sed.in, intl/textdomain.c, + intl/xopen-msg.sed, pixmaps/camera.xpm, pixmaps/close_image.xpm, + pixmaps/configure.xpm, pixmaps/delete_images.xpm, pixmaps/exit.xpm, + pixmaps/fliph.xpm, pixmaps/flipv.xpm, pixmaps/folder.xpm, + pixmaps/get_index.xpm, pixmaps/get_index_empty.xpm, + pixmaps/get_selected_images.xpm, pixmaps/no_thumbnail.xpm, + pixmaps/open_image.xpm, pixmaps/print_image.xpm, + pixmaps/refresh.xpm, pixmaps/resize.xpm, pixmaps/rotc.xpm, + pixmaps/save_current_image.xpm, po/ChangeLog, po/Makefile.in.in, + po/POTFILES.in, po/cat-id-tbl.c, po/project5.pot, po/stamp-cat-id, + src/Makefile.am, src/callbacks.c, src/callbacks.h, src/interface.c, + src/interface.h, src/main.c, src/support.c, src/support.h: added + new gtk inteface beginning code + +2000-07-26 14:25 scottf + + * frontends/gtk-old/: po/.cvsignore, src/.cvsignore: whoops. fixed + cvsignore in gtk-old + +2000-07-26 14:24 scottf + + * camlibs/: canon/.cvsignore, konica/.cvsignore, + konica/localization/data_english.c30, + konica/localization/data_french.c30, panasonic/.cvsignore: updated + all .cvsignore files + +2000-07-26 14:21 scottf + + * frontends/gtk-old/: .cvsignore, po/.cvsignore, src/.cvsignore: + updated .cvsignore files + +2000-07-26 14:14 scottf + + * configure.in, camlibs/barbie/barbie.c, camlibs/canon/Makefile, + camlibs/canon/Makefile.am, camlibs/canon/Makefile.in, + camlibs/directory/directory.c, camlibs/konica/konica.c, + camlibs/konica/konica.h, camlibs/konica/library.c, + camlibs/konica/lowlevel.c, camlibs/konica/lowlevel.h, + frontends/command-line/main.c, frontends/gtk-old/src/callbacks.c, + frontends/gtk-old/src/globals.h, frontends/gtk-old/src/interface.c, + frontends/gtk-old/src/interface.h, frontends/gtk-old/src/main.c, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + include/gphoto2.h, libgphoto2/core.c, libgphoto2/library.c: updated + gtk-old interface to new object-oriented API + +2000-07-25 16:58 ole + + * camlibs/canon/Makefile.am: Fix libgphoto2_canon_la_LDFLAGS + +2000-07-25 14:26 scottf + + * include/gphoto2-core.h, include/gphoto2-datatypes.h, + libgphoto2/core.c: added gp_camera_free(). added some error + checking + +2000-07-25 14:03 scottf + + * configure.in, camlibs/barbie/barbie.c, camlibs/barbie/barbie.h, + camlibs/canon/Makefile, camlibs/canon/canon.c, + camlibs/canon/psa50.c, camlibs/canon/psa50.h, + camlibs/canon/serial.c, camlibs/digita/digita.c, + camlibs/directory/directory.c, camlibs/directory/directory.h, + camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/fujitsu.h, + camlibs/fujitsu/library.c, camlibs/fujitsu/library.h, + camlibs/konica/library.c, camlibs/panasonic/dc1580.c, + camlibs/template/template.c, frontends/command-line/interface.c, + frontends/command-line/main.c, include/gphoto2-core.h, + include/gphoto2-datatypes.h, include/gphoto2-interface.h, + include/gphoto2-library.h, libgphoto2/core.c, libgphoto2/core.h, + libgphoto2/file.c, libgphoto2/globals.h, libgphoto2/library.c, + libgphoto2/library.h: moved to object-oriented Camera* design + +2000-07-25 13:02 scottf + + * camlibs/canon/: Makefile, Makefile.am, Makefile.in, Protocol, + README, canon.c, canon.h, crc.c, crc.h, mkpatch, psa50.c, psa50.h, + serial.c, serial.h, util.c, util.h, ps350/COPYING, ps350/README, + ps350/SerialIn, ps350/compu1, ps350/compu3, ps350/compu3c, + ps350/compu3d, ps350/compu3e-4, ps350/compu3f, ps350/compu5, + ps350/compu6, ps350/notes.txt, ps350/ps350chk.c, ps350/ps350init, + ps350/ps350proto.txt, ps350/renamejpg.c: added canon lib\!\! + +2000-07-24 13:43 scottf + + * configure.in: added comma :P + +2000-07-24 03:47 simpson2 + + * makefile.os2, camlibs/makefile.os2, + camlibs/directory/directory.def, camlibs/directory/makefile.os2, + frontends/command-line/main.c, frontends/command-line/makefile.os2, + include/gphoto2.h, include/gphotoos2.h, libgphoto2/library.c, + libgphoto2/makefile.os2: bvl: Made some linebreak statments, and + ifdef correction on behalf of the OS/2 port + +2000-07-22 14:47 scottf + + * camlibs/: directory/directory.c, fujitsu/fujitsu.c: minor + config_set/get bug fix + +2000-07-22 14:34 scottf + + * camlibs/fujitsu/fujitsu.c, frontends/gtk-old/src/callbacks.c, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + libgphoto2/core.c, libgphoto2/widget.c: added dynamic configuration + support. + +2000-07-21 21:59 scottf + + * frontends/gtk-old/src/callbacks.c, frontends/gtk-old/src/util.c, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + libgphoto2/widget.c: fixed nasty recursive gp_widget_free bug. + blech. + +2000-07-21 20:06 scottf + + * camlibs/fujitsu/fujitsu.c, frontends/gtk-old/src/callbacks.c, + include/gphoto2-datatypes.h, libgphoto2/widget.c: reworked widget + system a little. added more functions + +2000-07-21 16:14 scottf + + * frontends/gtk-old/src/callbacks.c, libgphoto2/widget.c: adding + configuration support to GTK frontend + +2000-07-21 14:55 scottf + + * camlibs/fujitsu/fujitsu.c, frontends/command-line/test.c, + frontends/gtk-old/src/callbacks.c, include/gphoto2-core.h, + include/gphoto2-datatypes.h, libgphoto2/core.c, + libgphoto2/widget.c: widget system is now working\! adding support + to GTK frontend + +2000-07-21 14:15 scottf + + * acconfig.h, configure.in, camlibs/Makefile.am, + camlibs/konica/Makefile.in, camlibs/panasonic/dc.c, + camlibs/panasonic/dc.h, camlibs/panasonic/dc1580.c, + camlibs/panasonic/dc1580.h, frontends/command-line/.cvsignore, + libgphoto2/file.c, libgphoto2/library.c: added a bunch of patchs + from Johannes and Mariusz + +2000-07-21 14:15 scottf + + * camlibs/digita/: .cvsignore, Makefile.am, commands.c, digita.c, + digita.h, serial.c, usb.c: adding .cvsignor for digita driver dir + +2000-07-19 21:55 scottf + + * camlibs/directory/directory.c: added more image file types to + directory browse lib + +2000-07-19 21:43 scottf + + * camlibs/fujitsu/fujitsu.c, frontends/gtk-old/src/callbacks.c: + added more cameras to the supported camera list + +2000-07-19 21:37 scottf + + * camlibs/barbie/barbie.c: renamed the camera models + +2000-07-19 21:20 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/konica/library.c, + camlibs/panasonic/dc1580.c, camlibs/template/template.c, + frontends/command-line/main.c, include/gphoto2-core.h, + include/gphoto2-datatypes.h, include/gphoto2-library.h, + libgphoto2/core.c, libgphoto2/core.h: changed _manual, _about, and + _summary to use CameraText to guarantee 32k of text space + +2000-07-19 20:59 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/konica/library.c, + camlibs/panasonic/dc1580.c, frontends/command-line/main.c, + include/gphoto2-datatypes.h, libgphoto2/util.c: changed + abilities.(serial, parallel, usb, ...) to just ORing of + abilities.port + +2000-07-19 20:36 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/panasonic/dc1580.c, + camlibs/template/template.c, include/gphoto2-core.h, + include/gphoto2-datatypes.h, include/gphoto2-library.h, + libgphoto2/core.c, libgphoto2/core.h: updated camera_capture + prototype + +2000-07-19 20:23 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/konica/library.c, + camlibs/panasonic/dc1580.c, camlibs/template/template.c, + frontends/libgphoto2_frontend/cache.c, include/gphoto2-datatypes.h, + include/gphoto2-library.h, libgphoto2/core.c, libgphoto2/file.c: + converted over to using mime types in CameraFile->type + +2000-07-19 20:07 scottf + + * configure.in, camlibs/konica/COPYING, camlibs/konica/ChangeLog, + camlibs/konica/EXPERTS, camlibs/konica/Makefile.am, + camlibs/konica/Makefile.in, camlibs/konica/README, + camlibs/konica/TODO, camlibs/konica/konica.c, + camlibs/konica/konica.h, camlibs/konica/library.c, + camlibs/konica/lowlevel.c, camlibs/konica/lowlevel.h: added konica + library. thanx Lutz\! + +2000-07-19 19:24 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/library.c, + frontends/gtk-old/src/callbacks.c, + frontends/gtk-old/src/interface.c, libgphoto2/core.c, + libgphoto2/library.c, libgphoto2/util.c: fixed camera abilities + bug. finishing gtk frontend. fixed minor bug in fujitsu lib + +2000-07-19 18:58 scottf + + * camlibs/fujitsu/fujitsu.c: added camera_stop to the end of _init + +2000-07-19 18:45 scottf + + * camlibs/fujitsu/README: updated README + +2000-07-19 18:44 scottf + + * camlibs/fujitsu/library.c: hell. removed all usleeps and it's + much quicker now. errors are recovered (if they ever pop up) + +2000-07-19 18:41 scottf + + * camlibs/fujitsu/fujitsu.c: removed guts of camera_exit. not + needed now. + +2000-07-19 18:39 scottf + + * camlibs/fujitsu/fujitsu.c: wrapped folder_set and file_count in + start/stop functions + +2000-07-19 18:36 scottf + + * camlibs/fujitsu/fujitsu.c, frontends/gtk-old/src/callbacks.c: + gtk-old is working. good to go\! + +2000-07-19 18:30 scottf + + * camlibs/fujitsu/library.c: scaled percentage value + +2000-07-19 18:28 scottf + + * camlibs/fujitsu/library.c: reduced timeout. faster now. + +2000-07-19 18:27 scottf + + * camlibs/fujitsu/: fujitsu.c, library.c: error recovery is a good + thing. now nak's incomplete packets and reads again + +2000-07-19 18:00 scottf + + * camlibs/fujitsu/library.c: increased timeout to let camera catch + up + +2000-07-19 17:56 scottf + + * camlibs/fujitsu/fujitsu.c: hacked around idle camera bug. camera + didn't like sitting idle between operations. + +2000-07-19 16:53 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/library.c, + frontends/command-line/main.c, frontends/gtk-old/AUTHORS, + frontends/gtk-old/MANUAL, frontends/gtk-old/src/callbacks.c, + frontends/gtk-old/src/callbacks.h, + frontends/gtk-old/src/gtkiconlist.c, + frontends/gtk-old/src/gtkitementry.c, + frontends/gtk-old/src/interface.c, + frontends/gtk-old/src/interface.h, frontends/gtk-old/src/util.c, + frontends/gtk-old/src/util.h: almost done on new gtk-old interface. + fixing fujitsu library bugs. + +2000-07-19 15:07 scottf + + * camlibs/directory/directory.c: fixed preview naming bug + +2000-07-19 13:08 scottf + + * libgphoto2/file.c: null terminater the file->data in gp_file_open + +2000-07-19 11:35 scottf + + * frontends/gtk-old/src/: callbacks.c, callbacks.h, interface.c: + finished the save dialog. just need to save now + +2000-07-19 11:04 scottf + + * frontends/gtk-old/acinclude.m4: added DOCDIC macro to build + (thanks Ole) + +2000-07-19 11:03 scottf + + * frontends/gtk-old/pixmaps/refresh.xpm: added refresh button + +2000-07-18 20:08 scottf + + * frontends/gtk-old/src/: callbacks.c, interface.c, interface.h, + util.c, util.h: finishing up gtk-old. adding saving functionality. + +2000-07-18 17:28 scottf + + * frontends/gtk-old/src/: callbacks.c, gtkiconlist.lo, interface.c: + how'd that object file get in there? whoops. it was me. :P + +2000-07-18 17:22 scottf + + * COPYING: Put in copy of LGPL + +2000-07-18 17:21 scottf + + * camlibs/directory/directory.c: added manual and summary to + directory lib + +2000-07-18 17:08 scottf + + * frontends/gtk-old/: AUTHORS, acconfig.h, configure.in, + src/callbacks.c, src/interface.c, src/interface.h: added help menu + items + +2000-07-18 16:22 scottf + + * include/gphoto2.h: removed gpio.h reference from gphoto2.h + (didn't need it) + +2000-07-18 16:17 scottf + + * frontends/gtk-old/: COPYING, INSTALL: whoops. needed to add + COPYING file and INSTALL :P + +2000-07-18 16:17 scottf + + * frontends/gtk-old/: Makefile.am, src/callbacks.c: updated COPYING + file and INSTALL + +2000-07-18 16:12 scottf + + * camlibs/fujitsu/library.c, camlibs/template/template.c, + include/gphoto2.h: finished replacing with + +2000-07-18 16:10 scottf + + * camlibs/barbie/barbie.c, camlibs/fujitsu/fujitsu.c, + camlibs/panasonic/dc.h, frontends/gtk-old/MANUAL, + frontends/gtk-old/Makefile.am, frontends/gtk-old/src/callbacks.c, + frontends/gtk-old/src/interface.c, libgphoto2/Makefile.am, + libgphoto2/core.c: replaced all #include with + #include for portability (so other non-development + oriented platforms can compile without installing) + +2000-07-18 15:31 scottf + + * frontends/gtk-old/.cvsignore: added cvsignore to gtk-old + +2000-07-18 14:38 scottf + + * AUTHORS: minor AUTHORS change. + +2000-07-18 14:38 scottf + + * frontends/gtk-old/configure.in, + frontends/gtk-old/src/callbacks.c, + frontends/gtk-old/src/interface.c, + frontends/gtk-old/src/interface.h, libgphoto2/file.c: added AUTHORS + file to install. + +2000-07-18 14:13 scottf + + * .cvsignore, AUTHORS, Makefile.am, acconfig.h, configure.in, + camlibs/.cvsignore, camlibs/Makefile.am, camlibs/NOTES, + camlibs/barbie/.cvsignore, camlibs/directory/.cvsignore, + camlibs/fujitsu/.cvsignore, frontends/.cvsignore, + frontends/command-line/.cvsignore, frontends/command-line/main.c, + frontends/gtk-old/configure.in, frontends/gtk-old/src/callbacks.c, + frontends/gtk-old/src/interface.c, + frontends/libgphoto2_frontend/.cvsignore, include/.cvsignore, + libgphoto2/Makefile.am: added patch for --get-picture (correctly + reports error message now) from Mariusz. patched cvsignore patch + from Johannes. + +2000-07-18 13:25 scottf + + * camlibs/panasonic/dc.c, camlibs/panasonic/dc.h, + camlibs/panasonic/dc1580.c, camlibs/panasonic/dc1580.h, + frontends/command-line/main.c, libgphoto2/core.c: updated + panansonic library. Thanx Mariusz + +2000-07-17 19:28 scottf + + * frontends/gtk-old/src/: callbacks.c, callbacks.h, gtkiconlist.c, + gtkiconlist.h: fixed nasty bug with gtkiconlist. not thread safe. + +2000-07-17 16:44 scottf + + * frontends/gtk-old/src/: callbacks.c, callbacks.h, interface.c: + rearranged toolbar. added refresh button. removed index buttons. + +2000-07-17 12:46 ole + + * libgphoto2/core.c: Added #ifdef's for GPIO_USB, GPIO_IEEE1394 and + GPIO_NETWORK + +2000-07-17 12:43 ole + + * frontends/command-line/main.c: Replaced conflicting delacaration + of 'daemon' in unistd.h with 'daemonmode' + +2000-07-17 12:26 scottf + + * include/gphotoos2.h: edited gphotoos2.h. + +2000-07-17 12:11 scottf + + * configure.in, makefile.os2, camlibs/makefile.os2, + camlibs/directory/directory.c, camlibs/directory/directory.def, + camlibs/directory/makedll.cmd, camlibs/directory/makefile.os2, + camlibs/fujitsu/fujitsu.c, camlibs/panasonic/dc1580.c, + frontends/command-line/main.c, frontends/command-line/makefile.os2, + include/gphoto2.h, include/gphotoos2.h, libgphoto2/library.c, + libgphoto2/makefile.os2: added os2 support. Thank Bart a lot, OS2 + users :) + +2000-07-17 11:54 scottf + + * camlibs/panasonic/: dc.c, dc1580.c: small workaround for uint8_t + and uint32_t (#defines) + +2000-07-17 11:45 scottf + + * camlibs/: Makefile.am, panasonic/Makefile.am, panasonic/dc.c, + panasonic/dc.h, panasonic/dc1580.c, panasonic/dc1580.h: Added + panasonic library. Thanx Mariusz. + +2000-07-14 21:27 scottf + + * frontends/gtk-old/src/: callbacks.c, callbacks.h, globals.h, + interface.c, main.c: added file deletion to gtk-old. now icon list + updates on resizing (neat). only a couple things left :) + +2000-07-14 19:08 scottf + + * frontends/gtk-old/src/: callbacks.c, gtkiconlist.c, + gtkitementry.c, interface.c: selecting thumbnails works (small hack + in gtkiconlist.c) + +2000-07-14 17:55 scottf + + * frontends/gtk-old/src/: callbacks.c, callbacks.h, globals.h, + interface.c, interface.h, main.c: wow. folder listing is working + nicely. added new progress window (percent and message included + with cancel button). + +2000-07-14 17:53 scottf + + * libgphoto2/core.c: core will now sort the folder list before + passing it back to the front-end (how nice ;) + +2000-07-14 15:32 scottf + + * camlibs/directory/directory.c: fixed getting multiple indexes + error + +2000-07-14 15:14 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/fujitsu.h, + camlibs/fujitsu/library.c, camlibs/fujitsu/library.h, + camlibs/template/template.c, frontends/command-line/main.c, + frontends/command-line/test.c, frontends/gtk-old/src/main.c, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + include/gphoto2-library.h, libgphoto2/core.c, libgphoto2/core.h, + libgphoto2/library.c, libgphoto2/util.c, libgphoto2/util.h: remove + camera_debug_set function, moved to CameraInit flag + +2000-07-13 20:06 scottf + + * frontends/gtk-old/src/callbacks.c: whoops. file_get changed to + file_get_preview in the indexing function :P MUCH faster now. + sheesh. + +2000-07-13 20:01 scottf + + * frontends/gtk-old/src/: callbacks.c, gtkiconlist.c, + gtkiconlist.h, interface.c, util.c, util.h: indexing is working. + camera folder browsing is working. directory browse works (will + index any directory) + +2000-07-13 16:33 scottf + + * libgphoto2/: core.c, library.c: fixed previous sorting error + (forgot to sort the camera abilities with the camera list). blech + blech blech + +2000-07-13 16:09 scottf + + * libgphoto2/library.c: camera list is now sorted + +2000-07-13 16:01 scottf + + * camlibs/directory/directory.c, include/gphoto2-datatypes.h: sped + up directory browse functionality overall + +2000-07-13 16:00 scottf + + * frontends/gtk-old/src/: callbacks.c, callbacks.h, interface.c, + main.c: folder browsing and setting now working + +2000-07-13 15:09 scottf + + * camlibs/directory/directory.c: fixed crashing from NULL pointer + +2000-07-13 13:37 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + frontends/gtk-old/pixmaps/folder.xpm, + frontends/gtk-old/src/callbacks.c, + frontends/gtk-old/src/callbacks.h, + frontends/gtk-old/src/interface.c, include/gphoto2-library.h: + removed camerafolderlist entry requirement (was silly) + +2000-07-13 13:29 scottf + + * frontends/gtk-old/pixmaps/: camera.xpm, folder.xpm, + no_thumbnail.xpm: whoops. forgot pixmaps + +2000-07-13 13:29 scottf + + * frontends/gtk-old/src/: callbacks.c, callbacks.h, interface.c, + main.c: adding folder tree on left + +2000-07-12 20:55 scottf + + * frontends/gtk-old/src/: callbacks.c, gtkiconlist.c, + gtkiconlist.h, gtkiconlist.lo, gtkitementry.c, gtkitementry.h, + interface.c: added icon list from gtkiconlist and some beginning + index code (not much) + +2000-07-12 17:45 scottf + + * camlibs/fujitsu/fujitsu.c, frontends/command-line/main.c, + frontends/gtk-old/src/Makefile.am, + frontends/gtk-old/src/callbacks.c, + frontends/gtk-old/src/interface.c: starting thumbnail index. + gdk-pixbuf rocks. + +2000-07-12 17:44 scottf + + * libgphoto2/settings.c: fixed load_settings bug that let null + values crash the core (blech) + +2000-07-11 19:33 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + frontends/command-line/main.c, frontends/command-line/test.c, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + libgphoto2/core.c, libgphoto2/core.h, libgphoto2/library.c: done + for the day + +2000-07-11 19:33 scottf + + * frontends/gtk-old/src/: callbacks.c, callbacks.h, main.c, util.c: + camera changes go smoothly. + +2000-07-11 19:32 scottf + + * camlibs/fujitsu/: fujitsu.c, library.c: fixed detection of + folders + +2000-07-11 18:19 scottf + + * camlibs/fujitsu/fujitsu.c: fixed timing issues (slowed down + read/write) + +2000-07-11 18:00 scottf + + * frontends/gtk-old/src/: Makefile.am, callbacks.c, globals.h, + interface.c, interface.h, main.c, util.c: camera info/manual/about + working. doesn't init() at start-up (waits for camera-related + function + +2000-07-11 17:26 scottf + + * camlibs/fujitsu/fujitsu.c: fixed get_int_register bug (no ack) + +2000-07-11 16:06 scottf + + * camlibs/fujitsu/: fujitsu.c, library.c: added 460Z to list of + supported cameras + +2000-07-11 15:32 scottf + + * camlibs/fujitsu/: fujitsu.c, library.c: fixed camera_exit bug + +2000-07-11 14:31 scottf + + * frontends/gtk-old/src/: callbacks.c, globals.h, interface.c, + main.c: camera selection dialog working + +2000-07-10 19:16 scottf + + * frontends/gtk-old/src/: callbacks.c, callbacks.h, globals.h, + interface.c, main.c, util.c, util.h: diggin in to the old gtk + interface. camera/selection working (well, sort of) + +2000-07-10 17:52 scottf + + * DAEMON, frontends/command-line/main.c: added daemon description, + and flag for command-line + +2000-07-10 15:08 scottf + + * frontends/command-line/Makefile.am, + frontends/command-line/interface.c, frontends/command-line/main.c, + frontends/gtk-old/src/interface.c, + frontends/gtk-old/src/interface.h, + frontends/libgphoto2_frontend/cache.c, + frontends/libgphoto2_frontend/gphoto2-frontend.h, + frontends/libgphoto2_frontend/helpers.c, + frontends/libgphoto2_frontend/image.c, + frontends/libgphoto2_frontend/script.c, + include/gphoto2-interface.h, libgphoto2/core.c: renamed interface_* + to gp_interface_*. changed command-line numbering to begin at 1 + +2000-07-10 10:27 scottf + + * frontends/libgphoto2_frontend/: Makefile.am, cache.c, cache.h, + gphoto2-frontend.h, helpers.h, image.c, image.h, script.c: adding + gPhoto scripting + +2000-07-08 13:20 ole + + * libgphoto2/: .cvsignore, Makefile.am: Shut up, cvs... + +2000-07-08 12:41 ole + + * configure.in: Added check for gpio and LIBGPHOTO_* globals + +2000-07-08 11:36 ole + + * libgphoto2/: Makefile.am, libgphoto2Conf.sh.in: Added + configuration file for using libgphoto2 in GNOME applications + +2000-07-07 18:58 scottf + + * frontends/gtk-old/src/: util.c, util.h: whoops. needed to remove + old gPhoto ref's + +2000-07-07 18:54 scottf + + * frontends/gtk-old/src/Makefile.am: final commit for the day + +2000-07-07 18:52 scottf + + * frontends/gtk-old/src/: callbacks.c, callbacks.h, interface.c, + main.c, util.c, util.h: added util.[ch] + +2000-07-07 18:19 scottf + + * frontends/gtk-old/configure.in, + frontends/gtk-old/src/Makefile.am, + frontends/gtk-old/src/interface.c, + frontends/gtk-old/src/interface.h, frontends/gtk-old/src/main.c, + libgphoto2/Makefile.am: linked libgphoto2 to libgpio. + +2000-07-07 17:57 scottf + + * Makefile.am, configure.in, gphoto2-config.in, + frontends/gtk-old/src/Makefile.am, frontends/gtk-old/src/main.c: + added gphoto2-config script to make adding frontends and libraries + easier + +2000-07-07 17:28 scottf + + * frontends/gtk-old/: AUTHORS, ChangeLog, Makefile.am, NEWS, + README, acconfig.h, autogen.sh, configure.in, files.list, + gphoto2-gtk.glade, gphoto2-gtk.glade.bak, stamp-h.in, + pixmaps/close_image.xpm, pixmaps/configure.xpm, + pixmaps/delete_images.xpm, pixmaps/exit.xpm, pixmaps/fliph.xpm, + pixmaps/flipv.xpm, pixmaps/get_index.xpm, + pixmaps/get_index_empty.xpm, pixmaps/get_selected_images.xpm, + pixmaps/open_image.xpm, pixmaps/print_image.xpm, + pixmaps/resize.xpm, pixmaps/rotc.xpm, + pixmaps/save_current_image.xpm, po/ChangeLog, po/POTFILES.in, + src/Makefile.am, src/callbacks.c, src/callbacks.h, src/interface.c, + src/interface.h, src/main.c, src/support.c, src/support.h: Adding + older gtk interface to frontends + +2000-07-06 17:33 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/fujitsu.h, + camlibs/fujitsu/library.c, include/gphoto2-library.h: added DC1 + error checking to fujitsu library + +2000-07-06 16:59 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/library.c, + frontends/command-line/main.c, include/gphoto2-library.h: fujitsu + camera summary working. + +2000-07-06 15:27 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/fujitsu.h, + camlibs/fujitsu/library.c, frontends/command-line/interface.c, + frontends/command-line/main.c: fujitsu library working nicely. 99% + functional. + +2000-07-05 20:11 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/fujitsu.h, + camlibs/fujitsu/library.c, frontends/command-line/main.c: fujitsu + lib 90% working. + +2000-07-05 12:55 scottf + + * configure.in: minor changes. version change. + +2000-07-03 19:16 scottf + + * camlibs/fujitsu/: fujitsu.c, fujitsu.h, library.c: + reading/writing int32 registers supported (fujitsu) + +2000-07-03 14:58 scottf + + * camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/fujitsu.h, + camlibs/fujitsu/library.c, frontends/command-line/main.c: working + on fujitsu. fixed debug output in command-line + +2000-06-30 20:23 scottf + + * camlibs/fujitsu/: README, fujitsu.c, library.c: done for the + week. fujitsu still being worked on + +2000-06-30 13:43 scottf + + * camlibs/fujitsu/: fujitsu.c, fujitsu.h, library.c, library.h: + continuing adding fujitsu lib. + +2000-06-30 13:24 scottf + + * camlibs/fujitsu/: Makefile.am, fujitsu.c, fujitsu.h, library.c, + library.h: renamed gphoto.[ch] to library.[ch] + +2000-06-29 20:01 scottf + + * camlibs/fujitsu/: fujitsu.c, fujitsu.h: fujitsu's camera_init is + working + +2000-06-29 16:07 scottf + + * camlibs/fujitsu/Makefile.am, camlibs/fujitsu/fujitsu.c, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + libgphoto2/util.c, libgphoto2/widget.c: starting fujitsu library. + fixed widget errors. + +2000-06-29 15:36 scottf + + * libgphoto2/widget.c: added gp_widget_* code + +2000-06-29 14:01 scottf + + * libgphoto2/: Makefile.am, interface.c, interface.h, widget.c, + widget.h: rename interface.[ch] to widget.[ch] + +2000-06-29 13:56 scottf + + * camlibs/CONFIG_DIALOG, camlibs/NOTES, camlibs/barbie/barbie.c, + camlibs/directory/directory.c, camlibs/fujitsu/fujitsu.c, + camlibs/template/template.c, frontends/command-line/main.c, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + include/gphoto2-library.h, libgphoto2/core.c, libgphoto2/core.h, + libgphoto2/library.c: transferred another image. adding + configuration dialog widgets. command-line is usable (yay) + +2000-06-29 13:47 scottf + + * camlibs/barbie/barbie.c: fixed init bug. + +2000-06-29 13:19 scottf + + * libgphoto2/: Makefile.am, interface.c, interface.h: adding + beginning of toolkit-independent interface code + +2000-06-28 14:17 scottf + + * camlibs/CONFIG_DIALOG, libgphoto2/file.c, libgphoto2/file.h: + whoops. added file.[ch] in libgphoto2/. added another spec to the + CONFIG_DIALOG file + +2000-06-27 19:48 scottf + + * camlibs/NOTES, camlibs/barbie/barbie.c, + camlibs/directory/directory.c, camlibs/fujitsu/fujitsu.c, + camlibs/template/template.c, include/gphoto2-core.h, + include/gphoto2-library.h, libgphoto2/core.h, libgphoto2/library.c: + added camera_config_query function. touched up API. + +2000-06-27 19:44 scottf + + * camlibs/CONFIG_DIALOG: Added configuration dialog spec + +2000-06-27 18:09 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/template/template.c, + frontends/command-line/main.c, include/gphoto2-datatypes.h, + include/gphoto2-interface.h, include/gphoto2-library.h, + libgphoto2/core.c, libgphoto2/core.h, libgphoto2/library.c: renamed + camera_config to camera_config_set and added camera_config_get to + facilitate multiple configuration dialogs. added error checking to + the front-end. + +2000-06-27 17:48 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + frontends/command-line/interface.c, frontends/command-line/main.c, + frontends/command-line/test.c, include/gphoto2-core.h, + include/gphoto2-interface.h, libgphoto2/core.c: rename gp_update_* + to just gp_*. added image upload functionality to command-line + front-end. note to self: my slow camera sucks ass + +2000-06-27 15:02 scottf + + * frontends/command-line/main.c: added -n/--num-pictures + functionality to command-line + +2000-06-27 14:54 scottf + + * frontends/libgphoto2_frontend/: Makefile, Makefile.in, cache.lo, + cache.o, helpers.lo, helpers.o, image.lo, image.o, + libgphoto2_util.la: crap. removed object files. i suck. + +2000-06-27 14:52 scottf + + * frontends/command-line/main.c, + frontends/libgphoto2_frontend/cache.lo, + frontends/libgphoto2_frontend/cache.o, + frontends/libgphoto2_frontend/helpers.lo, + frontends/libgphoto2_frontend/helpers.o, + frontends/libgphoto2_frontend/image.lo, + frontends/libgphoto2_frontend/image.o, include/gphoto2-datatypes.h, + libgphoto2/core.c: added delete_picture function to command-line. + worked on command-line options system. fixed directory browse bug. + +2000-06-26 20:28 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + frontends/command-line/main.c, include/gphoto2-core.h: added + --get-picture functionality to command-line. first successful + download... + +2000-06-26 18:29 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/template/template.c, + frontends/command-line/main.c, + frontends/libgphoto2_frontend/Makefile, + frontends/libgphoto2_frontend/Makefile.am, + frontends/libgphoto2_frontend/Makefile.in, + frontends/libgphoto2_frontend/cache.lo, + frontends/libgphoto2_frontend/cache.o, + frontends/libgphoto2_frontend/helpers.lo, + frontends/libgphoto2_frontend/helpers.o, + frontends/libgphoto2_frontend/image.lo, + frontends/libgphoto2_frontend/image.o, + frontends/libgphoto2_frontend/libgphoto2_util.la, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + include/gphoto2-library.h, libgphoto2/core.c, libgphoto2/core.h, + frontends/command-line/main.c: added list/set folders to + command-line options + +2000-06-26 13:37 scottf + + * frontends/command-line/Makefile.am: (hopefully) last change for + renaming of libgphoto2_util + +2000-06-26 13:36 scottf + + * configure.in: whoops. changed configure.in to reflect + libgphoto2_util renaming + +2000-06-26 13:35 scottf + + * frontends/: Makefile.am, command-line/Makefile.am: changed + libgphoto2_util references to libgphoto2_frontend + +2000-06-26 13:34 scottf + + * frontends/: libgphoto2_frontend/Makefile, + libgphoto2_frontend/Makefile.am, libgphoto2_frontend/Makefile.in, + libgphoto2_frontend/cache.c, libgphoto2_frontend/cache.h, + libgphoto2_frontend/cache.lo, libgphoto2_frontend/cache.o, + libgphoto2_frontend/helpers.c, libgphoto2_frontend/helpers.h, + libgphoto2_frontend/helpers.lo, libgphoto2_frontend/helpers.o, + libgphoto2_frontend/image.c, libgphoto2_frontend/image.h, + libgphoto2_frontend/image.lo, libgphoto2_frontend/image.o, + libgphoto2_frontend/libgphoto2_util.la, + libgphoto2_util/Makefile.am, libgphoto2_util/cache.c, + libgphoto2_util/cache.h, libgphoto2_util/helpers.c, + libgphoto2_util/helpers.h, libgphoto2_util/image.c, + libgphoto2_util/image.h: renamed libgphoto2_util to + libgphoto2_frontend + +2000-06-23 20:48 scottf + + * configure.in, camlibs/barbie/barbie.c, + camlibs/directory/directory.c, camlibs/fujitsu/fujitsu.c, + camlibs/template/template.c, frontends/command-line/main.c, + include/gphoto2-datatypes.h, libgphoto2/util.c: readded + serial/usb/parallel/ieee1394 flags in CameraAbilities struct. works + much nicer + +2000-06-23 19:39 scottf + + * camlibs/barbie/barbie.c, camlibs/fujitsu/fujitsu.c, + camlibs/template/template.c, frontends/command-line/Makefile.am, + frontends/command-line/main.c, include/gphoto2-core.h, + include/gphoto2-datatypes.h, include/gphoto2.h, libgphoto2/core.c: + *added listing of cameras/port to front-end. *added gpio wrapper + for device_count/info + +2000-06-22 19:05 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/template/template.c, + frontends/command-line/main.c, frontends/command-line/main.h, + frontends/command-line/test.c, include/gphoto2-core.h, + include/gphoto2-datatypes.h, libgphoto2/core.c, libgphoto2/util.c: + reworked abilities (again). more abstract. + +2000-06-22 15:57 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/template/template.c, + include/gphoto2-datatypes.h, include/gphoto2-library.h, + libgphoto2/util.c: removed cancel and lock abilities for now. + updated library API to reflect the changes. Need to figure out a + way to consolidate specialized features. + +2000-06-22 15:46 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, camlibs/template/template.c, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + include/gphoto2-library.h, libgphoto2/core.c, libgphoto2/core.h, + libgphoto2/util.c: changed camera_config call. Removed + CameraConfigSetting in place of an array of CameraSetting's. + +2000-06-22 13:06 scottf + + * AUTHORS, INSTALL, README, camlibs/NOTES, + camlibs/barbie/Makefile.am, camlibs/barbie/barbie.c, + camlibs/directory/Makefile.am, camlibs/directory/directory.c, + camlibs/fujitsu/Makefile.am, camlibs/fujitsu/fujitsu.c, + camlibs/template/Makefile.am, camlibs/template/template.c, + frontends/command-line/main.c, frontends/command-line/test.c, + frontends/libgphoto2_util/Makefile.am, include/gphoto2-core.h, + include/gphoto2-datatypes.h, include/gphoto2-library.h, + libgphoto2/Makefile.am, libgphoto2/core.c, libgphoto2/core.h, + libgphoto2/library.c, libgphoto2/library.h, libgphoto2/util.c, + libgphoto2/util.h: *revamped CameraAbilities (no more reset/sleep) + *making command-line functional *adding error-checking *removed + camera_open/close *added camera_debug_set to get more verbose + output *other misc. + +2000-06-21 18:20 scottf + + * include/gphoto2-library.h, libgphoto2/core.c: adding + documentation to API + +2000-06-21 17:09 scottf + + * NOTES, camlibs/directory/directory.c, + frontends/command-line/main.c, frontends/command-line/main.h, + include/gphoto2-core.h, libgphoto2/core.c, libgphoto2/library.c: + improving command-line parser. debug checking and more verbose + output + +2000-06-21 12:55 scottf + + * libgphoto2/: Makefile.am, core.c, exif.c, globals.h, library.c, + settings.c: clean-up in the exif lib. -Wall is damn grumpy. + +2000-06-21 11:34 scottf + + * camlibs/barbie/barbie.c, libgphoto2/Makefile.am, + libgphoto2/exif.c, libgphoto2/exif.h: added exif lib + +2000-06-20 18:01 scottf + + * frontends/command-line/main.c: aesthetic changes to command-line + parser + +2000-06-20 17:43 scottf + + * frontends/command-line/: Makefile.am, main.c, main.h, test.c, + test.h: added command-line option parser. weird but neat. + +2000-06-20 15:48 scottf + + * frontends/command-line/: main.c, main.h: whoops. re-added + main.c/h + +2000-06-20 15:47 scottf + + * frontends/command-line/Makefile.am: command-line parsing routines + added. rearranging of code + +2000-06-20 14:36 scottf + + * frontends/command-line/: Makefile.am, main.c, main.h, test.c, + test.h: starting command-line interface. moving files. + +2000-06-20 13:28 scottf + + * include/gphoto2-core.h, include/gphoto2-datatypes.h, + include/gphoto2-library.h, libgphoto2/core.c, libgphoto2/core.h, + libgphoto2/library.c: added camera_file_put() to camera API + +2000-06-20 13:28 scottf + + * camlibs/: barbie/barbie.c, directory/directory.c, + fujitsu/fujitsu.c, template/Makefile.am, template/README, + template/template.c, template/template.h: added template directory + for new camera libraries + +2000-06-19 15:41 scottf + + * camlibs/barbie/barbie.c, camlibs/directory/directory.c, + camlibs/fujitsu/fujitsu.c, frontends/command-line/main.c, + include/gphoto2-core.h, include/gphoto2-datatypes.h, + include/gphoto2-library.h, libgphoto2/core.c, libgphoto2/core.h, + libgphoto2/library.c: folder listing has changed. now more + optimized for serial connections + +2000-06-19 14:24 scottf + + * camlibs/NOTES, camlibs/barbie/barbie.c, + camlibs/directory/directory.c, camlibs/fujitsu/fujitsu.c, + include/Makefile.am, include/gphoto2-datatypes.h, + include/gphoto2-library.h, include/gphoto2.h, + libgphoto2/Makefile.am, libgphoto2/core.c, libgphoto2/core.h, + libgphoto2/library.c, libgphoto2/library.h: added camera library + id's. enumerated camera differently (abilities per-camera now). + +2000-06-19 12:32 scottf + + * frontends/command-line/gphoto2, include/gphoto2-core.h, + include/gphoto2-datatypes.h, include/gphoto2-interface.h, + include/gphoto2-library.h: finished renaming include files + +2000-06-19 12:31 scottf + + * configure.in, camlibs/barbie/barbie.c, frontends/Makefile.am, + frontends/command-line/Makefile.am, frontends/command-line/gphoto2, + frontends/command-line/main.c, include/gphoto-core.h, + include/gphoto-datatypes.h, include/gphoto-interface.h, + include/gphoto-library.h, libgphoto2/core.c: renamed include files. + fixed compile problems with libgphoto2_util. + +2000-06-19 12:20 scottf + + * frontends/: Makefile.am, libgphoto2_util/Makefile.am, + libgphoto2_util/cache.c, libgphoto2_util/cache.h, + libgphoto2_util/helpers.c, libgphoto2_util/helpers.h, + libgphoto2_util/image.c, libgphoto2_util/image.h: finish renaming + libgphoto2_util + +2000-06-19 12:19 scottf + + * frontends/libgphoto2-util/: Makefile.am, cache.c, cache.h, + image.c, image.h: renaming libgphoto2-util to libgphoto2_util + (Automake don't like dashes) + +2000-06-19 12:06 scottf + + * libgphoto2/: Makefile.am, cache.c, cache.h, core.c, helpers.c, + helpers.h: moving around files + +2000-06-19 12:01 scottf + + * frontends/: Makefile.am, command-line/Makefile.am, + libgphoto2-util/Makefile.am, libgphoto2-util/cache.c, + libgphoto2-util/cache.h, libgphoto2-util/image.c, + libgphoto2-util/image.h: added beginining of gphoto2 utility + library for frontends + +2000-06-16 14:48 scottf + + * AUTHORS, COPYING, ChangeLog, INSTALL, Makefile.am, NEWS, NOTES, + OVERVIEW, README, TODO, autogen.sh, configure.in, + include/gphoto-core.h, include/gphoto-datatypes.h, + include/gphoto-interface.h, camlibs/Makefile.am, + camlibs/barbie/Makefile.am, camlibs/barbie/README, + camlibs/directory/Makefile.am, camlibs/directory/directory.c, + camlibs/directory/directory.h, include/Makefile.am, + include/gphoto-library.h, include/gphoto2.h, + camlibs/barbie/barbie.c, camlibs/barbie/barbie.h, + camlibs/barbie/compile, camlibs/barbie/main.c, + camlibs/fujitsu/Makefile.am, camlibs/fujitsu/README, + camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/fujitsu.h, + libgphoto2/cache.c, libgphoto2/cache.h, libgphoto2/core.c, + frontends/Makefile.am, frontends/command-line/Makefile.am, + frontends/command-line/interface.c, + frontends/command-line/interface.h, frontends/command-line/main.c, + frontends/command-line/main.h, libgphoto2/Makefile.am, + libgphoto2/TODO, libgphoto2/core.h, libgphoto2/helpers.c, + libgphoto2/helpers.h, libgphoto2/library.c, libgphoto2/library.h, + libgphoto2/settings.c, libgphoto2/settings.h, libgphoto2/util.c, + libgphoto2/util.h, frontends/command-line/gphoto2: Initial revision + +2000-06-16 14:48 scottf + + * AUTHORS, COPYING, ChangeLog, INSTALL, Makefile.am, NEWS, NOTES, + OVERVIEW, README, TODO, autogen.sh, configure.in, + include/gphoto-core.h, include/gphoto-datatypes.h, + include/gphoto-interface.h, camlibs/Makefile.am, + camlibs/barbie/Makefile.am, camlibs/barbie/README, + camlibs/directory/Makefile.am, camlibs/directory/directory.c, + camlibs/directory/directory.h, include/Makefile.am, + include/gphoto-library.h, include/gphoto2.h, + camlibs/barbie/barbie.c, camlibs/barbie/barbie.h, + camlibs/barbie/compile, camlibs/barbie/main.c, + camlibs/fujitsu/Makefile.am, camlibs/fujitsu/README, + camlibs/fujitsu/fujitsu.c, camlibs/fujitsu/fujitsu.h, + libgphoto2/cache.c, libgphoto2/cache.h, libgphoto2/core.c, + frontends/Makefile.am, frontends/command-line/Makefile.am, + frontends/command-line/interface.c, + frontends/command-line/interface.h, frontends/command-line/main.c, + frontends/command-line/main.h, libgphoto2/Makefile.am, + libgphoto2/TODO, libgphoto2/core.h, libgphoto2/helpers.c, + libgphoto2/helpers.h, libgphoto2/library.c, libgphoto2/library.h, + libgphoto2/settings.c, libgphoto2/settings.h, libgphoto2/util.c, + libgphoto2/util.h, frontends/command-line/gphoto2: gPhoto2: digital + camera access libraries and application diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/HACKING.md b/lib/hardware/sensors/gphoto/libgphoto2-master/HACKING.md new file mode 100644 index 00000000..86a80fb7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/HACKING.md @@ -0,0 +1,352 @@ +HACKING +======= + +If you want to hack on gphoto2 (or a camera driver for gphoto2), +please follow some rules to make our work easier. + +[ Note from 2019-10: Some of these rules are from the early 2000s and + may make less sense now than they did fifteen years plus earlier. ] + + +Licensing +========= + +We urge you to license your contributions under the LGPL so we can +distribute gphoto2 under the LGPL as well. + + +Patches +======= + +... are always welcome. + +We prefer patches against the current git master very much over +patches against old released versions, but these are also welcome :-) + + +Source Repository Directory Structure +===================================== + +The source repository structure as of libgphoto2-2.5.23 (2019-10): + + * [`libgphoto2_port/gphoto2/*.h`](libgphoto2_port/gphoto2/) + + The header files with the interface to `libgphoto2_port`. + + * [`libgphoto2_port/libgphoto2_port/*.[ch]`](libgphoto2_port/libgphoto2_port/) + + Implementation of the `libgphoto2_port` library used internally by + `libgphoto2`. + + * [`libgphoto2_port/{disk,libusb1,ptpip,serial,usb,usbdiskdirect,usbscsi,vusb}/*.[ch]`](libgphoto2_port/) + + The port driver code for the `iolibs`. Dynamically loaded by `libgphoto2_port`. + + * [`libgphoto2/*.[ch]`](libgphoto2/) + + The source code of the actual `libgphoto2` library. + + * [`gphoto2/*.h`](gphoto2/) + + The header files with the interface to `libgphoto2`. + + * [`camlibs//*.[ch]`](camlibs/) + + The camera drivers (`camlibs`). Dynamically loaded by `libgphoto2`. + +The buildsystem is based on automake, i.e. `configure.ac`, +`Makefile.am` and `Makefile-files` have their standard functions. + + +Source Files +============ + +Every source file (`file_name.c`) should have the following layout: + + /* Licence, author, etc. */ + #include "config.h" + #include "file_name.h" + + #include (i.e. stdlib, stdio, string, etc.) + + #include (what you need) + + /* Source code here. */ + + +Header Files +============ + +Please use the following layout: + + /* Licence, author, etc. */ + #ifndef __FILE_NAME_H__ + #define __FILE_NAME_H__ + + #include + + /* Declarations */ + + #endif /* __FILE_NAME_H__ */ + + +Camlib +====== + +Camera libraries are often very sensitive to changes. Therefore, +before you commit any changes, double check with the author that your +changes won't break the driver. + +If you want to write a driver for gphoto2, the easiest way to do so +would be to copy over the contents of camlibs/template and fill in +your code. + +Use something like `CHECK_RESULT` (see for example +`libgphoto2/filesys.c`). + +Let's say you write a driver called sillycam. Please set up a file +called `library.c` containing all gphoto2-specific code (like +`camera_init`) and another two files called `sillycam.c` and +`sillycam.h` containing the "magic", that is all +`gp_port_[read,write]` functions and the basic logic of the +communication. This makes it easier for us to adapt your code if +anything should change in the gphoto2-API. + +Use the port provided by `camera->port`. + +Use the filesystem provided by `camera->fs` and set up the callbacks so +that libgphoto2 can cache listings and file-information. + +Please keep track of the changes to the sillycam camlib in the file +`camlib/sillycam/ChangeLog`. + +For test compiling and installing only the sillycam and doofuscam +camlibs, you can use + + make -C camlibs sillycam.la doofuscam.la + +and + + make CAMLIBS="sillycam.la doofuscam.la" install-camlibs + +respectively. + +Compiling all camlibs is sped up considerably on *N* CPU core +computers using `make -j`*N*. + + +libgphoto2 +========== + +If you add code, use the coding style of that file. This is, code like + +``` +int +my_func (int arg) +{ + int var, res; + + /* + * This is a multiline + * comment. Use TAB for + * indentation! + */ + res = gp_some_action (var); + + /* This is a simple one-line comment */ + if (res < 0) { + gp_log (GP_LOG_DEBUG, "Error happened!"); + + /* Note that we _don't_ indent the case statements */ + switch (res) { + case GP_ERROR: + gp_log (GP_LOG_DEBUG, "Generic error"); + break; + default: + gp_log (GP_LOG_DEBUG, "Not a generic error"); + } + return (res); + } + + return (GP_OK); +} +``` + +Please always check the return value of `gp_`-functions! We defined some +handy macros all over the place (like `CHECK_RESULT`) - by using those, +you'll avoid lots of `if () {} else {}`. + +Emacs users may define and use a `gphoto-c-mode` by putting the +following stuff into their `.emacs` file: + + + ;;* gphoto-c-mode + ;;*===================================================================== + (defun gphoto-c-mode () + "C mode with adjusted defaults for gphoto hacking" + (interactive) + (c-mode) + (c-set-style "linux") + (setq indent-tabs-mode t) + (font-lock-mode)) + + ;; + (setq auto-mode-alist (cons '("/home/user/src/gphoto.*\\.[ch]$" . gphoto-c-mode) + auto-mode-alist)) + + + +Compatibility +============= + +Once gphoto2 has been officially launched as a 2.0 version, it is important +that the API does not change frequently. It is annoying to users when they +have to upgrade all sort of libraries and applications just to get an +upgraded camera driver. Once the 2.0 release has been made, try to +follow these guidelines: + + - New versions of the gphoto2 core libraries in the 2.0 series shall + work with all older 2.0 camera libraries + + - New versions of the gphoto2 camera libraries in the 2.0 series shall + work with all older 2.0 core libraries (this one may be relaxed) + + - Before fixing 2.0 in stone, look for weaknesses in the current + APIs that may preclude enhancements in the future. For instance, + there should be some filler entries added to the end of `struct + _CameraFunctions` so that a newer camera library that tries to + fill in an entry that is added in gphoto2 ver. 2.1 that doesn't + exist there now won't overwrite something important. + + - Try to work using the existing API instead of making minor + changes here and there; think about whether the change you're proposing + will demonstratively benefit gphoto2 or it's just a "nice to have" + + - Instead of adding a new parameter to a function, create a new function + that enhances the other one (where appropriate) + + - If a new parameter is absolutely needed in an existing function + call, rename the function with the new parameter, but leave the + existing function as is, calling the new function with a default value + for the new parameter + + - When adding entries to a common structure, add them to the end of the + `struct` so that the other members aren't shifted around. Consider what + will happen if that member is not filled in by an older application. + + - Don't delete entries from a common struct; instead, just rename them + into filler entries. + + - If there is a very good reason to break compatibility, wait until + release 3.0 to make those changes + + - Delay the release of 3.0 until the benefits outweigh the consequences + to the user of an incompatible library version. + + +Portability +=========== + +Please remember that people will be running gphoto2 on a wide variety +of operating systems and CPUs and will be compiling it on a wide +variety of C compilers. As you write your code, be sure not to make +any assumptions in your code that aren't in the ANSI C89 standard. +If your code absolutely needs some feature or header file that isn't +available everywhere, write an autoconf test so that the configure +script will detect if that feature is available at compile time and +provide an alternative for those compilers that don't support it. + +There are lots of subtle portability issues that you should keep in +the back of your mind. Following are some of the major ones that affect +gphoto2. See the paper "Notes on Writing Portable Programs in C" at + or "Writing +Portable C with GNU Autotools" at + +for more details. + + +* A char can be signed or unsigned. + + Use `signed char` or `unsigned char`, or `int8_t` or `uint8_t` from + `_stdint.h`, to be sure to get the type you want when it is + important. + + +* A pointer is not necessarily an `int`. + + Don't cast a pointer to an `int` and vice-versa. + + +* An `int` can be almost any width. + + Don't assume that it's 32 or 16 bits or any other value. Instead, + if you need a variable of a certain size, include the gphoto2 header + file `_stdint.h` (or `gphoto2-endian.h`) and use the C99-style + fixed-width types declared therein. If you don't really care about + the size of a variable (e.g. as the index variable in a small for + loop), you can still use an `int` as it's often the most efficient + type for each processor. It's usually the case that a char is 8 + bits, `int` is at least 16 bits, and a long is at least 32 bits. + Never assume that `int` or `long` (or `char`, for that matter) have a + specific size, or that they will overflow at a particular point. + Use a size-specific type (e.g. `uint32_t`) if necessary. + + +* The sequence of bytes received from a camera isn't necessarily the + same as how those bytes are stored in a C `struct` in memory. + + Many compilers will place padding bytes between the elements of a C + `struct` to improve run-time efficiency on the target processor. + This means that if you read a camera packet directly into such a + struct, the bytes will not line up and your program will use the + wrong values. + + A similar problem occurs even if you read just a couple of bytes + into an `int`, if gphoto is running on a processor with a different + "endianness" than the camera. + + The most portable solution is to use the macros available in the + `gphoto2-endian.h` header file. When you read a packet from a + camera (writing is similar), use a `uint8_t` array or heap space to + store the raw packet. Extract each member of the packet out of the + array one at a time using a macro like `be32atoh` from + `gphoto2-endian.h`. Those macros take care of both those problems + at once. + + The macros have the form `AANN[a]toh` or `htoAANN[a]`, where `AA` is + `le` (little-endian) or `be` (big-endian), `NN` is `16` or `32` + (bits in the word) and `a`, if present, means that the preceding + type is located in a byte array, not an integer. `h` refers to + `host`, and could be big or little-endian depending on the current + CPU. Upper-case versions of these macros (where appropriate) do the + conversion in place. Do a `man ntohl` to find out more about why + these are needed, and the generated `gphoto2-endian.h` file for more + descriptions. + + +* Your code won't necessarily be compiled with gcc. + + gcc is a great C compiler, but it isn't installed on everybody's + systems (yet!). Avoid use of proprietary gcc language extensions + and features that aren't available in ANSI C89 compilers. Sure, + there's probably some code that would be more elegant using a gcc + language extension, but somebody, somewhere will be denied the use + of the best digital camera application in existence because of it. + + This also applies to new standard C features that appeared in the + C99 specification of the language. There is not much support yet in + the installed base of C compilers to allow unrestricted use, but + this will change as time goes by. In the meantime, use `autoconf` + to detect if the feature is available at run-time and act + appropriately (for an extreme example, see how configure handles the + C99 header file `stdint.h` or inline keyword). + + Although one-line comments starting with `//` have been available in + most compilers for several years, they were only officially added to + the ANSI C99 spec and some compilers out there still don't support + them. The `inline` keyword also falls into the same category, but + configure tests for this feature at compile time and supplies the + appropriate inline keyword as a macro. Finally, don't add + compiler-specific flags to make files directly, as many of them are + specific to one compiler and will cause the build to fail when using + another. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/INSTALL b/lib/hardware/sensors/gphoto/libgphoto2-master/INSTALL new file mode 100644 index 00000000..bfe1aa0a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/INSTALL @@ -0,0 +1,245 @@ +######################################################################## +# This file describes how to compile and install libgphoto2. +######################################################################## + +Follow these steps to build and install libgphoto2 from the source +code. You don't have to run most of these steps as root, except when +explicitly required. In fact, you really shouldn't. + +In order to get libgphoto2 running after installation, you will +probably want to read The gPhoto2 Manual. It is available from the +homepage: + + http://gphoto.org/ + http://gphoto.com/ + http://gphoto.sourceforge.net/ + +At lease one of these should work at any time. + + +=============================== +Step 0: Preparing configuration +=============================== + +If you have obtained your copy of gphoto2 packaged from a .tar.gz or +.tar.bz2 tarball, SKIP THIS STEP. + +If you have obtained libgphoto2 source using Git, then you will +have to prepare for step 1 (the configuration of the sources) by running +the autoreconf program. + +For autoreconf to succeed, you require the following tools: + + automake + autoconf + pkg-config (to detect additional library dependencies) + autopoint (needed if installing from github) + gettext (possibly from -dev or -devel package) + libtool (possibly from -dev or -devel package) + +in versions compatible with each other and with libgphoto2. Most +combinations on current GNU/Linux systems work, whereas BSD systems +tend to have some compatibility problems. + +We recommend you call autoreconf like this: + + $ autoreconf --install --symlink + + +============================= +Step 1: Configure the sources +============================= + + $ ./configure --prefix=/usr/local + + to prepare a tarball source tree for installation in (e.g.) /usr/local + +or run ./configure --help in order to find out about more +configuration parameters. + +See Appendix A at the end of this file for some hints on configuring +for certain platforms. + +The following software components are optional, and will improve the +libraries' and/or command-line client's functionality if present: + + libusb (ver. >= 0.1.6a) -- Universal Serial Bus camera support + + + gettext (ver. >= 0.10.40) -- internationalization using shared library + + gtk-doc -- documentation built in doc/api/ + + libexif - EXIF tag support + + +Please check the output of the configure script for whether all +desired libraries have been detected correctly. E.g., you might +have to add the path where libusb-config resides to your PATH +before running configure. + + +=========================== +Step 2: Compile the program +=========================== + +You will probably be best off running GNU make. On GNU/Linux linux +systems, you can run "make", on other systems (such as *BSD), you +will have to run "gmake" or something similar. + +The classic way to compile the program is just to run + + $ make + or + $ make -jN (if you have N CPU cores) + +and wait until the source is built. + +If you want to compile only one or two specific camlibs, run something like + + $ make -C camlibs canon.la ptp2.la + + +============================== +Step 3: Installing the program +============================== + +To install the stuff you just compiled by running "make", you can just +run + + $ make install + +now. If installing to a directory which is not writable by your +current user, you will have to run it as root. + +This installs the software and documentation into the proper +directories on your system. + +If you want to install only one or two specific camlibs, run something like + + $ make CAMLIBS="canon.la ptp2.la" install-camlibs + +On Linux, the installed libtool .la files are not needed and can be removed. + +==================================================== +Step 4: Installation is finished - now what do I do? +==================================================== + +Note that libgphoto2 is not designed to be run by a setuid/setgid +program. Running ANY libgphoto2 frontend as root or setuid root or in +a similar fashion will open up a SECURITY HOLE in your system! + +If you run into problems, please read the FAQ (at the website) first. + +For more general information about how to configure libgphoto2, read +The gPhoto2 Manual (at the website). + +If you have permission problems when accessing your camera, read +the chapter on Permission Setup -- you will probably want to create a +new user group for the users that are to have camera access and change +the permissions of the serial or USB device to match. + + +=============================================== +Appendix A: Platform specific compilation hints +=============================================== + +libgphoto2 has been successfully used on many system. Some systems +where it has been reported to successfully compile are listed +below. Not all, or even any, camera libraries have been tested on +these systems, so there may be endian other other issues that prevent +some camera libraries from working. + +Please report any changes to this list to the gphoto developer mailing +list. As of this writing, USB support is only available on Linux and +FreeBSD as those are the only systems on which libusb is available. + +General Hints: + + - If you have build problems in the intl or po directories, try + re-running configure with the --disable-nls flag. + - If configure stops due to an error with 'test', try re-running + configure with the --without-usb flag. + - If 'make' reports an error, try using GNU make (often called gmake + or gnumake) instead of the make that comes with your system. + - If one camera driver (camlib) has compilation errors, re-run + configure with an appropriate --with-camlibs= flag to prevent that + specific camlib from being compiled. + + +The list of working systems is a little outdated as of 2002-11-20, but +we have still left it here as a reference. + +i386: + Debian GNU/Linux 2.2 + Red Hat Linux 7.1 + Red Hat Linux 4.2 + TurboLinux 6.5 + Slackware Linux 8.0 + FreeBSD 4.3 + Try the following to configure the optional libraries: + env CFLAGS="-I/usr/local/include" CPPFLAGS="-I/usr/local/include" \ + LDFLAGS="-I/usr/local/lib" ./configure + (you may also need to append the flag --disable-nls). + Use GNU make to build (gmake). + +Alpha: + Debian GNU/Linux 2.2 + OpenBSD 3.0 + NetBSD 1.5.1 + Configure with this command: + ./configure --disable-nls + Use GNU make to build (gmake). + Tru64 5.1A + Configure with this command: + env CFLAGS='-D__STDC_VERSION__=0' ./configure --disable-nls + Use GNU make to build (gnumake). + +PowerPC: + Debian GNU/Linux 2.2 + Apple Darwin/OS X + Need dlcompat from + Configure with this command: + env CFLAGS="-I/path/to/dlcompat -no-cpp-precomp" \ + LDFLAGS="-L/path/to/dlcompat" ./configure --disable-nls + Need libtool ver. >= 1.4.2a + +Sparc: + Debian GNU/Linux 2.2 + Solaris 8 (gcc) + Configure with this command: + ./configure --without-usb + and use GNU make to build (gmake). + +StrongARM: + Intimate+Debian iPAQ GNU/Linux (native gcc) + Linux (cross-compiled gcc) + +Itanium: + Red Hat Linux 7.1 (gcc) + + +The following systems have some problems compiling, but may be made to +work with some effort: + +Itanium: + Red Hat Linux 7.1 (Intel ecc) + There is a bug in ver. 5.0.1 of this compiler tickled by gphoto2 that + prevents full compilation. + Need better libtool support (newer than version 1.4.2). + Red Hat Linux 7.1 (sgicc) + Need better libtool support (newer than version 1.4.2). + +Sparc: + Solaris 8 (cc) + Sun's cc doesn't support #warning or # or ## macro features, which + occur several times in the code. + +MIPS: + IRIX (cc) + MIPSpro C doesn't support #warning. + + +Thanks go to SourceForge for their compile farm, and Compaq for their +TestDrive program which allowed gphoto2 to be tested on many of these +systems. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/MAINTAINERS b/lib/hardware/sensors/gphoto/libgphoto2-master/MAINTAINERS new file mode 100644 index 00000000..57bf4475 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/MAINTAINERS @@ -0,0 +1,251 @@ +Below are the addresses of persons working on specific parts of gphoto2. +If you have specific questions (like why doesn't my HP C20 answer with 0x20 +if I send 0xff as described in whatever/file.c), those are the guys to ask. + +libgphoto2_port: + Marcus Meissner + Lutz Müller (old maintainer) + Scott Fritzinger (old maintainer) + Hubert Figuiere (old maintainer) + +libgphoto2: + Marcus Meissner + Lutz Müller (old maintainer) + Scott Fritzinger (old maintainer) + Hubert Figuiere (old maintainer) + +-------------------------------------------------------------------------------- + PORTS +-------------------------------------------------------------------------------- + +OS/2: + Bart van Leeuwen +*BSD: + Arnaud Launay + +-------------------------------------------------------------------------------- + CAMERA DRIVERS +-------------------------------------------------------------------------------- + +camlibs/aox: + Theodore Kilgore + +camlibs/barbie: + Scott Fritzinger + Marcus Meissner + +camlibs/benq: + Till Adam + +camlibs/canon: + Philippe Marzouk + +camlibs/clicksmart310: + Theodore Kilgore + +camlibs/digigr8: + Theodore Kilgore + +camlibs/digita: + Johannes Erdfelt + +camlibs/dimera: + Dan Fandrich + +camlibs/enigma13: + Theodore Kilgore + +camlibs/gsmart: + Till Adam + +camlibs/gsmart300: + Jérôme Lodewyck + Till Adam + +camlibs/hp215: + Marcus Meissner + +camlibs/iclick: + Theodore Kilgore + +camlibs/jamcam: + Chris Pinkham + +camlibs/jd11: + Marcus Meissner + +camlibs/jl2005a: + Theodore Kilgore + +camlibs/jl2005c: + Theodore Kilgore + +camlibs/konica: + Lutz Müller + +camlibs/kodak/dc120: + Scott Fritzinger + +camlibs/kodak/dc210: + Michael Koltan + +camlibs/kodak/dc240: + Hubert Figuiere + +camlibs/largan/lmini + Hubert Figuiere + +camlibs/mars + Theodore Kilgore + +camlibs/mustek: + Marcus Meissner + +camlibs/panasonic + Mariusz Zynel + +camlibs/panasonic/coolshot: + Chris Pinkham + +camlibs/pccam300: + Miah Gregory + +camlibs/pccam600: + Peter Kajberg + +camlibs/polaroid/pdc320.c: + Nathan Stenzel + +camlibs/polaroid/pdc640.c: + Chris Byrne + +camlibs/polaroid/pdc700.c: + Greg Ingram + +camlibs/ptp2: + Marcus Meissner (current maintainer) + Mariusz Woloszyn (previous maintainer) + +camlibs/ricoh/g3: + Marcus Meissner + +camlibs/samsung: + Marcus Meissner + +camlibs/sierra: + Patrick Mansfield + Scott Fritzinger + Marcus Meissner + +camlibs/sipix: + Marcus Meissner + +camlibs/smal: + Lee Benfield + +camlibs/sonix: + Theodore Kilgore + +camlibs/sonydscf1: + Marcus Meissner + +camlibs/sonydscf55: + Marcus Meissner + Raymond Penners + +camlibs/soundvision: + Vince Weaver + +camlibs/spca50x: + Till Adam + +camlibs/sq905: + Theodore Kilgore + +camlibs/stv0674: + Vincent Sanders + +camlibs/stv0680: + Carsten Weinholz + Marcus Meissner + +camlibs/sx330z: + Dominik Kuhlen + +camlibs/topfield: + Marcus Meissner + +camlibs/toshiba/pdrm11 + David Hogue + +-------------------------------------------------------------------------------- + FRONTENDS +-------------------------------------------------------------------------------- + +digikam (http://digikam.sourceforge.net): + KDE frontend + Renchi Raju + +f-spot: http://f-spot.org/Main_Page + +gthumb: The GNOME Team. + +kamera: KDE integration (konqueror) + Marcus Meissner + Ilya Konstantinov + +flphoto: + fltk based photo importer (unmaintained) + +gtkam (http://www.topfrose.de): + Simple GTK front-end. + Lutz Müller + +GnoCam (http://www.uni-karlsruhe.de/~urc8/GnoCam): + GNOME integration (nautilus) + Lutz Müller + +QtKam (?): + Front-end for KDE + Remko Troncon + +SANE (?): + If configured with --with-gphoto2. + Pete Fales + +Wine (TWAIN): + Marcus Meissner + + +-------------------------------------------------------------------------------- + SUPPORT +-------------------------------------------------------------------------------- + +Build system up to 'configure' (i.e. 'autogen.sh'): + Marcus Meissner + +Bug reports: + Please use the sourceforge tracker at http://sf.net/projects/gphoto . + +Releases: + Marcus Meissner + +Packaging (RPM): + Hans Ulrich Niedermann + +Translation: + We use http://translationproject.org/ + packages: libgphoto2, libgphoto2_port, gphoto2, gtkam + + Marcus Meissner + +Manual pages: + gphoto2 command-line app: Tim Waugh + +Other documentation (gphoto2.xml manual): + Marcus Meissner + Hans Ulrich Niedermann + +Mailing lists: + Marcus Meissner + Hans Ulrich Niedermann diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/Makefile.am new file mode 100644 index 00000000..31257ff7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/Makefile.am @@ -0,0 +1,135 @@ +# Process this file with automake to generate a GNU Makefile + +######################################################################## +# put file lists and special compile rules here + +bin_SCRIPTS = gphoto2-config + +EXTRA_DIST = MAINTAINERS TESTERS installcheck.mk +EXTRA_DIST += HACKING.md SECURITY.md + +# Note: @subdirs@ lists all the directories from AC_CONFIG_SUBDIRS() +SUBDIRS = @subdirs@ libgphoto2 camlibs tests examples po packaging doc gphoto-m4 + +EXTRA_DIST += libgphoto2.pc.in +pkgconfig_DATA = libgphoto2.pc + +EXTRA_DIST += libgphoto2-uninstalled.pc.in +noinst_DATA = libgphoto2-uninstalled.pc + +EXTRA_DIST += ChangeLog +EXTRA_DIST += INSTALL +EXTRA_DIST += OUTDATED.txt +doc_DATA = AUTHORS COPYING NEWS +doc_DATA += ABOUT-NLS ChangeLog + +EXTRA_DIST += README.md +doc_DATA += README.md + +EXTRA_DIST += RELEASE-HOWTO.md +doc_DATA += RELEASE-HOWTO.md + +EXTRA_DIST += README.packaging +doc_DATA += README.packaging + +nobase_include_HEADERS = \ + gphoto2/gphoto2.h \ + gphoto2/gphoto2-abilities-list.h\ + gphoto2/gphoto2-camera.h \ + gphoto2/gphoto2-context.h \ + gphoto2/gphoto2-file.h \ + gphoto2/gphoto2-filesys.h \ + gphoto2/gphoto2-library.h \ + gphoto2/gphoto2-list.h \ + gphoto2/gphoto2-result.h \ + gphoto2/gphoto2-setting.h \ + gphoto2/gphoto2-version.h \ + gphoto2/gphoto2-widget.h + +DISTCLEANFILES = libgphoto2/gphoto2-endian.h + +# we use just ONE .PHONY target in order not to confuse automake + +.PHONY: rpm cvs-tags source-code-check install-drivers + +######################################################################## +# source code check maintenance task +# +# This finds code patterns we don't want to have. +# +# Use it to get rid of existing patterns and make sure they aren't +# reintroduced later. +# +# The output is meant to be read and interpreted by human programmers. + +source-code-check: + @echo "######## Finding // comments" + find . -type f -name '*.[ch]' -exec egrep -H '(^//|[^:]//)' {} \; + @echo "######## Finding remainders of Arnaud's comment replacement" + find . -type f -name '*.[ch]' -exec egrep -H 'http:/\*' {} \; + @echo "######## Finding explicit libintl.h references" + find . -type f -name '*.[ch]' -exec egrep -H '^#.*include.*libintl\.h' {} \; + + +######################################################################## +# Shortcut for installation of a subset of camlibs/drivers +# Usage: make CAMLIBS="canon.la ptp2.la" install-camlibs + +install-camlibs: + cd camlibs && $(MAKE) $(AM_MAKEFLAGS) CAMLIBS="$(CAMLIBS)" install-camlibs + + +######################################################################## +# Convenience shortcuts to update the *.po translation files in both +# po/ subdirs at once and to reset the *.po translation files to "git +# HEAD" in both po/ subdirs at once. + +PO_SUBDIRS = +PO_SUBDIRS += libgphoto2_port/po +PO_SUBDIRS += po + +# Run "git checkout *.po" in all po/ subdirs +# which is quite useful after "make dist" to clean up "git status". +.PHONY: git-checkout-po +git-checkout-po: + set -e; cd "$(top_srcdir)" && if test -d .git; then \ + for d in $(PO_SUBDIRS); do \ + (cd "$$d" && git checkout *.po); \ + done; \ + fi + +# Run "make update-po" in all po/ subdirs +.PHONY: update-po +update-po: + @for d in $(PO_SUBDIRS); do (cd "$$d" && $(MAKE) $(AM_MAKEFLAGS) update-po) || exit 1; done + + +######################################################################## +# The following default options for aclocal and automake +# are required in the top level Makefile.am for the automatic +# re-building of the build system files. + +ACLOCAL_AMFLAGS = -I auto-m4 -I gphoto-m4 + + +######################################################################## +# The following rules are only interesting if you want to create +# distribution packages (as source tarballs or system specific packages) + +if ENABLE_RPM + +# create RPM packages +rpm: Makefile + $(MAKE) $(AM_MAKEFLAGS) dist + cd packaging/rpm && $(MAKE) $(AM_MAKEFLAGS) rpm + @echo "The RPM packages should now be found in packaging/rpm/RPMS" + +else +rpm: + @echo "Dummy $@ target" +endif + +# add CVS tags - used only by the project maintainer to tag the files of a +# released version +cvs-tags: Makefile + @echo cvs tag "@PACKAGE@-$$(echo '@VERSION@' | sed -e 's/\./_/g' -e 's/rc/-rc/g')" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/NEWS b/lib/hardware/sensors/gphoto/libgphoto2-master/NEWS new file mode 100644 index 00000000..8c5a6c7d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/NEWS @@ -0,0 +1,2300 @@ +libgphoto2 2.5.23.1 development + +lumix: + +* New WIFI Lumix camera driver was added, using curl and libxml2. + + Lots of abilities supported already, also capture preview. + However capture itself is not yet working :/ + This driver needs libxml2 and libcurl to be built. + +ptp2: +* Canon EOS: lock/unlock ui before more operations +* Canon Powershot SX / EOS M: some setup adjustments to make powershot sx work better +* Nikon Keymission 170: try override opcodes to allow capture +* Nikon DSLR: fixed a regression where 5 seconds was longer image capture shutterspeed +* Sony: adjusted manualfocusing not to autofocus +* bugfixes +* New ids added: + * Sony Alpha RX100V, A7s, RX0 II, + * Nikon Z50, Coolpix L810, KeyMission 170 + * Canon PowerShot SX530HS, SX 620HS, + * Canon EOS 2000D, 1500D, R2, M6 Mark 2, 250D, + * Fuji X-A5, X-E3, GFX100 + * GoPro Hero 7 White, 7 Black, 8 Black + +all: + +* fixed some issues found by AFL fuzzing, mostly in "outdated" drivers. + +------------------------------------------------------------------------------ +libgphoto2 2.5.23 release + +ptp2: +* Sony capture stability and speed improvements +* Canon EOS capture stability improvements, reduce partial read blobs from 5MB to 1MB +* Canon EOS M image format unpacking adjustments +* Olympus OMD: bulb capture added, trigger capture capable +* Panasonic GH5: added manualfocusdrive, capturetarget +* Canon PowerShot X work ... trying to support / improve stability of capture +* PTP string packing adjusted to standard (empty and null strings) +* New ids added: + * Sony Alpha A68, RX100M6, DSC-WX350 + * Nikon Coolpix L100 + * Canon PowerShot G7X, G9X Mark II + * Canon Rebel T6, EOS 2000D + * Fuji X-A2, GFX 50R, XT-30 + * Ricoh WG-M2 +* libmtp ids synced. + +pentax: +* synced smaller parts with pktriggercord + +translations: +* updated danish + +fuzzing: +* vusb and sample-afl now able to fuzz all USB cameras (even if slow) + +all: +* Various crashes fixed that were found during AFL fuzzing the USB drivers + +* The camlibs for cameras (and driver) older than 15 years have been + default disabled for installation, to speed up libgphoto2 startup + and also reduce attack surface against malicious USB devices. + + See OUTDATED.txt in git for notes. + + You can reenable them using: + + ./configure --with-camlibs=all,outdated + + or by the camlib driver name (sample: jd11): + + ./configure --with-camlibs=all,jd11 + + To get the lists of all camera libraries use: + + ./configure --help + + If you still have an old camera using one of these camlibs in active + use, please report this to the devteam so we can reenable it per + default. + +------------------------------------------------------------------------------ +libgphoto2 2.5.22 release + +ptp2: +* Canon EOS M / PowerShot capture problem solved +* Sony shutterspeed - provide a static list as the camera does not provide one, you can set also different values +* Canon SDRAM capture, try to support more than 500MB of images at once +* New USB Ids added: + * Canon EOS R, 800D + * Canon PowerShot SX600HS, SX740HS + * Sony DSC RX0, RX100-M5A + * Nikon DSC D3500 + +generic: +* handle new "bind" udev event in udev rule generator. + +translations: +* updated polish, ukrainian + +------------------------------------------------------------------------------ +libgphoto2 2.5.21 release + +ptp2: +* Nikon Z series support added +* New Canon Powershot SX / GX also support capture, ALPHA support added +* Canon EOS bugfixes +* imported IDs from libmtp +* Added: + * Nikon Z6, Z7 + * Canon Powershot SX720HS, G5X + * Canon IXUS 185 + +------------------------------------------------------------------------------ +libgphoto2 2.5.20 release + +ptp2: +* Canon EOS: fixed regression for some EOS series in OLC decoding +* Apple iPhone: disabled PTP Manifest reading again, as IOS seems not to follow the standard +* bugfixes +* new IDs added: + * Sony Alpha-RX10M4 + * Canon EOS M50, 4000D + * Fuji XT-3 + * synced new MTP ids from libmtp + +pentax: +* refreshed from pktriggercord + +translations: +* updated polish, ukrainian, swedish, danish +------------------------------------------------------------------------------ +libgphoto2 2.5.19 release + +ptp2: +* Canon EOS: handle OLC versions of newer models, which gave incorrect aperture/shutterspeed values +* Fuji X series capture improvements. +* Fuji X series live view support added. +* Panasonic GH5 liveview and capture support. (Needs camera firmware 2.3 or newer) +* Olympus E-M5 Mark II and E-M1 Mark II liveview and capture support added. +* USB IDs added: + * Sony Alpha A99 M2, A7 III, A9 + * Nikon Coolpix A900 + * Panasonic GH5 + * Olympus E-M1 Mark 2 + * Fuji X-H1, X-M1, X70, X30 + +all: +* various fixes for warnings from compilers and the coverity scanner + +------------------------------------------------------------------------------ +libgphoto2 2.5.18 release + +ptp2: +* Canon EOS: Fixed file download on several EOS brands, broken by 2.5.17 release. + +pentax: +* Added K01 and K70 models. + +------------------------------------------------------------------------------ +libgphoto2 2.5.17 release + +ptp2: +* Apple iOSX: handle root directory objects that have ParentObject==StorageID instead of 0 +* implement PTP 1.1 Manifest reading and hook into filesystem. currently only supported + by Apple iOS. +* Canon PowerShot CHDK live view support. +* Canon EOS: prepare capture needs to wait a bit on a crucial place to get all events. + might fix some PTP Device Busy reports. +* Canon EOS: split bulk downloads into pieces of partial downloads. This might cure the Error 70. +* Canon EOS: Improved EOS M capture +* Canon CHDK: live preview capture support added +* Added USB IDs: + * Sony A7r III + * Nikon CoolPix L430 + * Nikon D850 + * Canon EOS M2, M6, M100 + * Canon EOS 6D Mark II + * Fuji Film X-Pro 2 + +pentax: +* Code updates imported from pkremote + +libgphoto2: +* Report file changes via GP_EVENT_FILE_CHANGED (hooked up for Canon EOS currently) + +translations: +* updates spanish, chinese + +------------------------------------------------------------------------------ +libgphoto2 2.5.16 release + +ptp2: +* A hardening fix broke the string unpacking for 0 length strings which broke Canon EOS + +------------------------------------------------------------------------------ +libgphoto2 2.5.15 release + +ptp2: +* fuji: Fix cameras without new capture properties. +* Canon EOS: config aspectratio, highisonr +* Canon EOS: emit CAPTURECOMPLETE event +* Canon EOS: whitebalanaceadjustment is 32bit signed, not 16bit signed +* usb: better error feedback +* fixed some bugs found by AFL fuzzing +* Added USB ids: + * Sony: A6500, HX400V + * Nikon: D500, D7500 + * Olympus: VR360 + * Canon PowerShot: ELPH 350 HS + * Canon EOS: 200D, Rebel T7i + * Fuji: GFX 50 S + * Ricoh Theta S, Theta SC + +libgphoto2_port/vusb: +* now default disabled as it confused people, enable with --enable-vusb + +------------------------------------------------------------------------------ +libgphoto2 2.5.14 release + +ptp2: +* Canon EOS M remote control / capture support (M3, M5, M10 ... but not the original EOS M currently) +* fix for Canon EOS camera crash bug introduced in 2.5.13. +* Fuji XT-2 capture support (firmware update needed, might work for other Fuji XT too) +* Canon EOS 77D added. +* various bugfixes +* added USB IDs: + * Sony DSC-RX10M3, DSC-HX90V + * Sony UMC-R10C + * Nikon D5600, + * Canon EOS 77D + * Fuji XT-20 +* synced MTP device ids from libmtp +* more issues fixed that were found by the AFL fuzzer + +pentax: +* Added Pentax K5-II, Pentax K3-II + +libgphoto2_port: +* fixed gp_log_remove_func + +libgphoto2_port/vusb: +* support f-number, shutterspeed, and exposurebias in the virtual PTP camera + +all: +* several issues found by gcc 7 fixed + +translations: +* updated ukrainian, polish, vietnamese, french, swedish +------------------------------------------------------------------------------ +libgphoto2 2.5.13 release + +pentax: +* Now using the pktriggercord codebase +* lots of improvements +* Please report missing Pentax K USB ids that are supported by pktriggercord! + +ptp2: +* iPhone iOS 10.2 and later storage handling fixed, added dynamic storage handling +* Sony Alpha Live View support. +* Canon EOS M series capture enabled. (not fully working yet) +* Various crashes and endless loops fixed that were found by the AFL fuzzer. +* Various bugfixes in Nikon, Canon capture +* New USB Ids: + * Sony: SLT A37, DSC-RX100M5 + * Nikon KeyMission 360 + * Canon PowerShot G16 + * Canon EOS M5, EOS M10 + * Fuji Fujifilm XT-2 + * GoPro Hero 5 Black + +------------------------------------------------------------------------------ +libgphoto2 2.5.12 release + +ptp2: +* Canon EOS: more fixes for Canon EOS 5D Mark IV and Canon EOS 80D. +* Parrot Sequoia support and property decoding +* Nikon 1: Fixed Nikon 1 capture +* Sony Alpha: various bugfixes. +* New USB IDs: + * Nikon Coolpix AW130 + * Nikon DSC D3400 + * Parrot Sequoia + * GoPro Hero, Hero4 Silver, Hero + +* bugfixes and cleanups + +canon: +* fixed zoom on some older Canon Powershots + +translations: +* updated polish, ukrainian, vietnamese, danish, french, svensk +------------------------------------------------------------------------------ +libgphoto2 2.5.11 release + +canon: +* not experimental anymore, for some years +* some bugfixes in configuration handling + +ptp2: +* canon: EOS capture improvements, also supporting new EOS +* sony: tethering and trigger capture implemented, capture stability improvements +* sony: exposure compensation setting fixed +* sony: capture and autofocus configurations, similar to eosremoterelease +* generic: fixed serialnumber retrieval +* nikon: "autofocus" config variable for global autofocus enable/disable (default on, default liveview off) +* various bugs fixed, stability improved +* ptpip: allow different event ports. --port ptpip:IP:dataport:eventport +* New ids reported: + - Sony Alpha 7, DSC-RX100M4, NEX-7, DSC-HX20V, Alpha 6300, A7S II, A7, + - Nikon DSC Df, D7200, D5, D810A, 1 V3 + - Canon EOS 1Dx Mark 3, 80D, 5D Mark IV + - Canon Digital IXUS 180 + - various music players / android phones imported from libmtp + +libgphoto2: +* Speed up initial startup. +* Win32: store settings in the "User Profile\.gphoto\settings" and not in C:\\Windows anymore. +* gp_widget_changed() no longer clears the "changed" state to make this API more consistent. + Use gp_widget_set_changed(widget,FALSE) to do so. + +examples: +* sample-photobooth: a sample program handling tethering, SIGUSR1 driven capture and SIGUSR2 + based configuration reading. +* sample-afl: code to inject afl fuzzing data + +translations: +* updated swedish, ukrainian, polish, finnish, russian, danish, polish, brazilian, serbian, dutch, chinese +------------------------------------------------------------------------------ +libgphoto2 2.5.10 release + +libgphoto2: +* added gp_camera_list_config, gp_camera_get_single_config, gp_camera_set_single_config + additional configuration APIs for faster access to single configuration values. + +ptp2: +* allow generic opcode commands with parameters, config variable "opcode" +* fixed pretending that Nikon Coolpix S series is a Nikon 1 S. +* Nikon: fixed problem with SDRAM capture +* Canon EOS: handle "no focus" during capture +* Canon EOS: handle --new correctly +* Canon Powershot: handle lack of object protection setting +* Ricoh Theta: support shutterspeed configuration +* added size checking to PTP unpacking primitives +* various bugfixes +* New ids: + * Imported Media Players and Android phones from libmtp + * Sony Alpha A7S II, ILCE 7M2 + * Kodak Z990 + * Nikon Coolpix L840, S3600 + * Leica SL + * Olympus TG-620, E-M5 Mark 2 + * Canon EOS 1D C, 750D + * Canon IXUS 160 + * Fuji Film X-T1, X-T10, A-610 + + +pentax: +* fixed some crashes on non-existing config variables +* use portable directory api (helps Visual Studio) + +libgphoto2_port/vusb: +* Implemented a virtual PTP camera for test purposes. + +libgphoto2_port/disk: +* Support exfat fuse filesystems. + +all: +* fixed various issues found by Coverity static analyzer +* removed unistd.h headers where not needed to help Visual Studio + +translations: +* updated swedish, brazilian portuguese, danish, polish, ukrainian, vietnamese + +------------------------------------------------------------------------------ +libgphoto2 2.5.9 release + +Now maintained (source and issue tracker) in GIT at https://github.com/gphoto/libgphoto2 + +ptp2: +* PTP/IP: fixes to support Ricoh Theta and Sony Alpha over WLAN better +* unification of timeout with backoff handling +* Canon EOS: fixed a timeout bug on wait_event +* Canon EOS: report protection status correctly +* Canon EOS: unlock the ui on close +* Sony: bulb mode support (in manual mode, shutterspeed and bulb option) +* Hook up PTP OpenCapture opcode +* Nikon J5 support. Nikon now hides prop and opcodes even differently. +* Added USB IDs: + - Sony SLT A77V, A7R2, HDR-PJ260VE + - Nikon DSLR D5500 + - Canon EOS 760D, 5Ds, 5Ds R + - Nikon Coolpix AW110, S6300, S6800, S3700, S2900 + - Nikon 1 S2, J5 + - Ricoh Theta m15 (USB and WLAN) + - GoProp Hero 4 + +canon: +* readd old Canon IXUS 30. + +translations: +* updated ukrainian, vietnamese, polish, italian + +------------------------------------------------------------------------------ +libgphoto2 2.5.8 release + +all: +* Missing COPYRIGHT headers added. +* Bug fixes for issues detected by Coverity. + +ptp2: +* Canon Powershot/IXUS CHDK support + Install the CHDK firmware and then use "gphoto2 --set-config chdk=On" to enable. +* Canon EOS: Implemented new capture method for new Canon EOS to avoid hangs. +* Canon EOS: New configuration variable: continuousaf +* Canon EOS: event output for focusinfo / focusmask +* Nikon DSLR: New configuration variables: movieiso, movieshutterspeed, moviehighisonr +* Nikon Coolpix A: also manually add override opcodes for capture (please report if it works) +* New USB ids: + Sony: DSC-HX60V, Alpha-A7S, Alpha-A77 M2, Alpha A5100 + Panasonic: DMC-LS2 + Canon EOS 7D Mark II, Canon EOS M3 + Canon Powershot SX520 HS + Fuji Fujifilm X-E2 + Samsung NX1 +* Media Player IDs synced with the libmtp ID database. +* Lots of bugfixes. + +libgphoto2_port/libusb1: +* Prefer libusb1 over libusb0 if both are present. +* Asynchronous interrupt handling, to avoid losing usb interrupts during other + operations. + +------------------------------------------------------------------------------ +libgphoto2 2.5.7 release + +ptp2: +* Canon EOS focusinfo crash fixed (affected all config operations) +* wait_for_event sleep backoff increased (50 - 100 - 150 - 200ms) +* Nikon: fixes to make Nikon Coolpix S9700 over PTPIP work better +* Nikon: WLAN GUID setting +* Sony: tighten event loop to avoid loss of objectadded events +* New USB ids: Nikon Coolpix 9400, Nikon S9700, Pentax K3 (in PTP). + +pentax: +* added Pentax K100Ds +* added raw capture support + +packaging: +* fixed missing libexif in pkgconfig + +translations: +* updated ukrainian, vietnamese, french, polish +------------------------------------------------------------------------------ +libgphoto2 2.5.6 release + +ptp2: +* Nikon D3000/D3100/D3200: It hides the "good" capture opcodes from the + DeviceInfo. Override and add them. If you see capture bugs, please report + with debuglogfile. +* "exposurecompensation" now in correct size (-3.0 <-> 3.0 usually) +* Canon EOS: decode and report "focusinfo" variable that outputs the focus information of the camera. +* Canon EOS: autofocusdrive=0 and cancelautofocus=1 added to cancel autofocusing, + to avoid blocking the camera. +* Canon EOS: "eosviewfinder" renamed to "viewfinder" +* Sony SLT: Make property setting work for "iso", "exposurecompensation", + "f-number", "shutterspeed" +* Canon EOS: crash on 700D fixed +* Nikon DSLR: race condition on object addition handled better +* Nikon DSLR: make sure we make a pause a bit during polling after capture. +* IDs added: + Nikon: Coolpix P7800, S1, J4 + Nikon: D3300, D610, D4s, D810, D750 + Canon: IXUS 125HS, PowerShot Elph340HS + Leica M9 +* various bugfixes + +libgphoto2_port/usb1: +* fixed a memory leak +* api changed for gp_log_data to make smaller debuglogs possible + +------------------------------------------------------------------------------ +libgphoto2 2.5.5.1 release + +This is a regression fix release. + +ptp2: +* fixed all Nikon S* coolpix that are not Nikon 1 +* Nikon: exit from potential endless loop on trigger capture + +canon: +* On EOS/Rebel DSLR do not query or set "zoom" as its manual always + +translations: +* updated polish, ukrainian, vietnamese + +------------------------------------------------------------------------------ +libgphoto2 2.5.5 release + +ptp2: +* Nikon 1 support. Final fix to get it running by Raj Kumar of archive.org. +* Nikon: liveview capture without autofocus enhanced, now also for card +* Nikon: restart liveview after capture +* Canon EOS: New property reporting method (OLC Info) implemented. +* Print read-only values in configuration table lookup (for Canon EOS mostly) +* Sony: Fixed Sony SLT-A900v capture +* Fixed the various "datetime" hooks for PTP generic, Canon Powershot and Canon EOS + to hopefully work better. --set-config datetime=now sets the camera to the current time. +* CHDK: some changes +* New ids: + Nikon DSC D3x, D5300 + Nikon Coolpix P330 + Canon PowerShot S95, S120, SX260HS, SX280HS, SX160IS, A2500, A2600, Elph135, IXUS 300HS, IXUS 255HS + Canon EOS 1200D + Sony DSC-A900, Alpha 6000, DSC-HX5V + Casio EX-ZR700, + Fuji FinePix AV-150, T200 +* Massive logging and error handling cleanup by Axel Waggershauser +* cleanup of the USB data handling +* Bugfixes + +st2205: +* add support for a new type of 240x320 picture frames + +all: +* Massive logging and error handling cleanup by Axel Waggershauser. +* Various cleanups from David Berrange for mingw32 builds. +* fixed libgd detection and linking. + +print-camera-list +* add a mode to print udev rules for the non-standard USB support (usbscsi/usbdisk), + needed additional to HWDB databases. + +translations: +* updated ukrainian, vietnamese, polish, french, finish, chinese, danish, dutch, +------------------------------------------------------------------------------ +libgphoto2 2.5.4 release + +ptp2: +* Sony SLT DSLR support: SDRAM capture, Tethering, Triggering movie capture, property reading +* Nikon DSLR: bulb mode implemented in newer DSLRs (D600/D7100/D5200 and later) +* Nikon capture adjustments (always set controlmode before capture). +* Nikon capture in "live view mode" no longer does autofocus, use "autofocusdrive". +* Nikon "applicationmode" setting added. +* Nikon Coolpix capture failure on empty cards fixed. +* Some Canon EOS 5D Mark III config adjustments/additions. +* Canon EOS: enable trigger capture +* Olympus E-series capture: some improvements. +* ptp2: implemented device property description caching +* New IDs + - Sony DSC-W510, SLT-A58 (control) + - Nikon P80 v1.1 + - Canon A3500IS, A1400, SX170IS, SX510HS, A2200 + - Fuji FinePix S4850, JX370, S4850 + - Apple iPhone 5 + +ax203: +* support for picture frame with id 1. + +sierra: +* Reimplemented a libusb based mass storage tunneling driver to support + non-Linux systems (e.g. Mac OS X). + +libusb1: +* fixed timeout detection for USB interrupts + +all: +* Lots of small fixes to build with mingw32. + +Translations updates: +* Danish, Spanish, French, Dutch, Polish, Russian, Serbian, Ukrainian, + Vietnamese + +------------------------------------------------------------------------------ +libgphoto2 2.5.3.1 release + +packaging: +* "print-camera-list hwdb" output mode added for udev versions >= 201. + + Put this to /usr/lib/udev/hwdb/20-gphoto.hwdb (your udev hwdb directory might be different) + + Added a missing "i" in the PTP matcher. + +------------------------------------------------------------------------------ +libgphoto2 2.5.3 release + +packaging: +* "print-camera-list hwdb" output mode added for udev versions >= 201. + + Put this to /usr/lib/udev/hwdb/20-gphoto.hwdb (your udev hwdb directory might be different) + +* "print-camera-list html" output mode added for http://gphoto.org/proj/libgphoto2/support.php + +all: +* Lots of Coverity fixes merged + +ptp2: +* Nikon: added a new PTP capture opcode function, allows capture to card during liveview +* Nikon: rewrote some of the wait logic in the capture routines +* Nikon: enable --trigger-capture support +* Nikon: hook up some more configuration variables (funcbutton, previewbutton, menusandplayback, changeafarea) +* canon: hook up configuration variables (colortemperature) +* ptpip: several contributed bugfixes, and event handling +* panasonic: allow deleting files by setting MTP Responder code. +* new ids: + * Kodak Z8612 IS + * Sony DSC-S780, SLT-A57, SLT-A58, SLT-A99v, DSC-RX100M2, Alpha A3000, NEX 6 + * Nikon Coolpix S3200, DSLR D3200, J3, V2, S02, 2200v1.1, S4300, S2700, L27, S02, V2, J3 + * Panasonic TZ-8 + * Olympus E-M5 + * Canon Rebel G15, EOS 70D, A1000IS, SX150IS, A810 + * Canon Rebel T3, EOS 1Dx, EOS 70D + * Fuji FinePix SL1000, S2980 +* merged ids from libmtp +* lots of bugfixes + +canon: +* label PowerShot S110 from 2001 differently than the 2012 PowerShot S110. +* fixed "new / downloaded" logic +* disable unconditional "clear halt" calls as they confuse newer controllers + +ax203: +* support Nantronics N25S80 chipset + +directory: +* support NRW files + +sierra: +* capture fixed for Olympus C-3030 + +pentax: +* Various fixes from Jiri Pinka + +jd11: +* enhanced de-bayering a bit + +translations: +* new czech translation by Pavel Borecki. +* updated czech, danish, dutch, polish, russian, seribian, ukrainian, + french, vietnamese, taiwanese + +libgphoto2: +* use generic macros to check for libGD and libxml2 to allow better handling. + +libgphoto2_port/disk: +* check the right fstab field for ignoring filesystems (avoids autofs scans) + + +------------------------------------------------------------------------------ +libgphoto2 2.5.2 release + +ptp2: +* Fixed Raspberry Pi and USB 3.0 "connect only once" problem. +* Experimental Olympus E-series (not Pen) remote control support. Try in "Control" mode. +* Nikon DSLR: real movie capture! (use --set-config movie=1/0 and --wait-event) +* New ids: + Sony: DSC-A900, SLT-A350, DSC-RX1, HX300, NEX-3N + Nikon Coolpix: P80, L820, S9500, S620, P520, S2500, S2600 + Nikon Coolpix A + Nikon DSLR: D2Xs, D4, D7100 + Nikon J2 + Canon Powershot: S100, A1300IS, A2300IS, + Canon EOS: 700D, 100D + Fuji FinePix: H20EXR, X20 + Samsung: NX1000, EK-GC100 + Also various MTP device ids merged from libmtp. +* ptpip: major/minor number was switched in init packet. +* Nikon DSLR: out of focus during capture fixed, various bugfixes +* Nikon "controlmode" config for unlocking the camera. +* Canon DSLR: "keepdeviceon" pinging in get_config, liveview +* Canon thumbnail retrieval fixed. +* Lots of work on getting Olympus E-series DSLRs in Control mode + to run. + +canon: +* wait-for-event: handle when camera goes offline during waiting. +* fixed mtime 0 (Jan 1 1970) issue when downloading files and using --filename + +sierra: +* Fixed the Nikon Coolpix 4300 and 2500 USB over SCSI capture mode. +* Ignore register 4 read errors after capture as Nikon does not supply them. +* added commented code on how to switch the Coolpix 2500 to RAW DIAG mode. + +libgphoto2_port: +* gp_port_reset functionality to do a port reset. + +libgphoto2_port/usbscsi: +* Use timeout supplied by driver, not hardcoded 1.5 seconds (fixes Nikon sierra capture). + +translations: +* updated ukrainian, finish, dutch, polish, russian, french, vietnamese, german + +build: +* specify lots of _BSD_SOURCE et.al. to make the strict MacOS ports + build happier. Might break non Linux platforms, please report this. + +* libxml2 needed for Olympus E series capture support. + +* cleaned up AM_CPPFLAGS/CPPFLAGS usage, do not use both of them together. + +------------------------------------------------------------------------------ +libgphoto2 2.5.1.1 release + +ptp2: +* fixed 32bit architectures +------------------------------------------------------------------------------ +libgphoto2 2.5.1 release + +translations updates +* lots of translations synced to 2.5.0 release + +ptp2: +* Lots of new USB ids added + - Sony RX100, SLT-A65V, HX200V + - Nikon Coolpix S01, S3300, P7700, S8200, P510, J1 + - Nikon DSLR D600, D800E, D800, D5200 + - Panasonic DMC LX7 + - Olympus SP-720UZ, E-PL5 + - Canon PowerShot D10, IXUS 310IS, SX220HS, G1 X, SX40HS, + A4000IS, SX240HS, A2400IS, S110, SX500IS + - Canon EOS M, EOS 650D, EOS 6D + - Fuji FinePix S2950, S4300, X-S1, HS30EXR, XF1 +* wait-for-event also for Canon PowerShot (capture capable ones) + now waits for "shutter press" signal and triggers a capture. +* Canon Powershot Preview mode fixes +* various Nikon configurations added: angle, flickerreduction, + rawcompression, remotemode. +* Nikon DSLR to-ram capture fixes +* merged music player ids from libmtp. Includes big Samsung devices rename. +* EOS preview capture bugfixes: some waiting reduced to allow higher + preview / regular capture speed on Canon EOS, understand newer EOS. +* some more bug fixes + +ax203: +* SST25VF080 and SST25VF016 support added. +* ax206 support enhanced. + +canon: +* decode "zoom" settings better +* "shootingmode" fix + +libgphoto2_port/libusb1: +* bugfixes + +examples: +* focus.c, sample-justfocus.c: focusing example added + +------------------------------------------------------------------------------ +libgphoto2 2.5.0 release + +libgphoto2 API: + * gp_context* functions no longer get varargs, but preprocessed + strings. This makes hooking them into other language bindings + easier. + + * gp_file_new_from_handler(): Allow passing data in and out via + handler functions (to allow streaming). See also CameraFileHandler + function pointers. + + * CameraFileInfoFile: removed "name" structmember and GP_FILE_INFO_NAME + flags. + Use direct passing in of the filename to the API functions. + + * New: gp_camera_autodetect(CameraList *list, GPContext*); + + Simple autodetection function returning all current detected cameras. + + * (TODO: not yet New: gp_camera_open (Camera *camera, const char *name, const char *port, GPContext *context); + + Simple open function without needing to involve libgphoto2_port. + ) + + * gp_file_set_name() and _get_name() passing in is no longer needed + and the API will go away. + + * New gp_file_get_name_by_type() will convert a regular filename ("normal") + into one depending on type (e.g. "raw_" prefix) and adjusted suffix + (like ".ppm" turning into ".pgm" for grayscale previews). + + * gp_file_set_type() and gp_file_get_type() are gone, these functions + are now implicit passed via arguments to the the put_file and + set_file_noop() functions. + + * gp_filesystem_set_info_noop(), gp_filesystem_set_file_noop(), + gp_filesystem_put_file(), gp_camera_folder_put_file(): + + Added "filename" argument to pass in the filename. The one + from CameraFileInfoFile and CameraFile are no longer used. + + Added "type" argument to pass in the filetype (GP_FILE_TYPE_*). + + * Adjusted to new GPPortInfo handling. + + * Rewrote gphoto2-filesys.c to be directory based (in a tree structure). + Change should not be visibile outside of gphoto2-filesys.c. + +libgphoto2_port API: + * GPPortInfo is now abstracted and internal. + + If you need to retrieve name, path or type, use + gp_port_info_get_xx (info, &x); + to get the value. + Name and path strings continue to be owned by libgphoto2_port, + do not modify and do not free. + + You are not supposed to create / append new ones to GPPortInfoList. + + * Disk Settings have been removed from the Settings union. Should + not affect frontends at all. + + * Started using symbol versions. + +PTP2 driver: + * Lots of improvements. + * PTP Object management rewritten, able to do "on demand" loading. + +Directory driver: + * Use GPPortInfo instead of settings to pass basepath in. + * Abstracted common functionality. + +Build: + * Removed dummy README file from SVN. + * Ship README.packaging in dist tarball for the first time. + * Allow building "all plus non-default" camlibs. + * Fix libltdl test compile for cases with LDFLAGS defined. + +Documentation: + * Optionally (--enable-internal-docs) build internal doxygen docs + with call graphs and all the dirty details. + * Improved docs on how to selectively build camlibs. + +Test cases: + * Test camlib loading of both uninstalled and installed camlibs. +------------------------------------------------------------------------ +libgphoto2 2.4.14 + +packaging: +* new udev 175 mode for print-camera-list (from Ubuntu) + +libgphoto2: +* fixed stupid bug in directory listing (fixes "canon" driver) + +libgphoto2_port/usb: +* Fixed stv680 usb config alternate setting (unbreaks stv680 driver) + +canon: +* enhanced wait_for_event a bit. + +ptp2: +* Nikon viewfinder enable/disable via config +* added Nikon S6000, Canon PowerShot A3000, PowerShot SX230HS, Canon EOS 5D Mark III, Sony SLT A35, Nikon Coolpix AW100 +* lowlevel Canon EOS CustomFuncEx support added +* Canon EOS 5D Mark III imagesize packing/unpacking support +* Samsung Galaxy file handling support restored +* match configuration table values more exact and correct. +* mtp player list synced with libmtp + +translations: +* updated russian, ukrainian, danish, czech, german + +examples: +* sample-tether added + +libgphoto2 2.4.13 + +libgphoto2_port/libusb1: +* fixed accessing freed memory which lead to non-working communication +* use the correct context everywhere avoid crashes on startup on newer libusb1 +* fixed and rewrote the whole device caching mechanisms for major initial speedup. + +ptp2: +* Implemented fast Canon EOS directory loading + +storage: +* add ogg, mp3, mp4 extensions to "good" + +translations: +* updated polish + +libgphoto2: +* capture to card added a lonely file to a camera folder + instead of getting the content from the card + +------------------------------------------------------------------------ +libgphoto2 2.4.12 + +libgphoto2_port: +* Added libusb 1.0 port driver. +* removed baudboy.h support from serial driver. +* Updated translations: czech, german + +canon: +* Secondary RAW 2 format for some cameras. + +directory: +* Handle more suffixes to mimetypes (unknowns will not show up in the + file list): moov, qt, qtvr, mp2, mpeg, mpe, srw, 3gp, 3g2, dif. +* set the correct filetime + +ptp2: +* New cameras: + Kodak C1530 + Sony DSC-HX100V, DSC-A1000, SLT-A55 + Nikon CoolPix P7000, P7100, P500, L120, L23, S5100, S3100, + Nikon D2Hs, D5100 + Canon EOS 10D, 1D Mark IV, 1100D, 600D + Canon PowerShot A2000IS, A3100IS, + Fuji FinePix F80EXR, X10 + Apple iPad, iPhone 4 + Panasonic DMC-TZ18, TZ20 + +* Canon Powershot event handling changed to no longer use PTP Events. + Should now be more reliable on MacOS. + +* Nikon configurations added: videomode, scenemode, exposure program mode, + effect mode, liveviewaf, liveviewaffocus, cleansensor, microphone, moviequality, + autodistortioncontrol, autoisopadv renamed to minimumshutterspeed. +* Allow per-camera configuration tables. +* Canon EOS configurations added: "Immediate" for shutter button pressing, + +* Handle missing runtime iconv module support (as found in embedded devices) +* Bump retries on EOS liveview getting +* Fixed stupid EOS event handling bug that caused a 1.5 second delay +* Fixed more session startup issues +* Tried a fix for getting bad thumbnail lengths + +sierra: +* Bugfix: handle ACK as valid response code + +tp6801: +* New driver for Tenx tp6801 picture frames from Hans de Goede. + +digigr8: +* added Digital Blue Barbie Camera DC150, Cobra Digital Camera DC150, + Aries Digital Keychain Camera, ITEM 128986, Lego Bionicle + +jl2005c: +* added Sakar Nickelodeon iCarly no. 88061, Sakar Dora the Explorer no. 88067, + Jazwares Star Wars no. 15256 + +libgphoto2: +* make jpeg and gd support configurable (Gentoo) +* Updated translations: pl + +------------------------------------------------------------------------ +libgphoto2 2.4.11 + +ax203: +* Various new ids: + GigaDevice GD25Q40, GD25Q80, GD25Q16 + ST M25P08, M25P16, M25P32, M25P64 + Winbond W25Q80, W25Q16, W25Q32 +* Various bugfixes + +canon: +* implemented a basic wait_for_event() so --capture-tethered works + (not working correctly for CR2+JPG, but JPG or CR2 stand alone will work) +* Some bugfixes + +digigr8: +* Added Lego Bionicle camera. + +directory: +* More mimetypes that are images added + +jl2005c: +* Reduced stack usage (do not have 5MB arrays on the stack), + making it work in programs with stacklimits + +mars3: +* Added Shift3 camera. + +sierra: +* rewrote the USB wrapped command handling to use "usbscsi" + port. Now its no longer necessary to detach the mass storage + driver. + +ptp2: +* Allow by-camera specific configuration (used for Nikon DSLR currently) +* Added some Nikon D90, D3s specific tables. +* Canon EOS: support remoterelease (remote trigger manipulation) via eosremoterelease + config option +* Merge some CHDK code (not tested working with my SX100IS -Marcus) +* Make setting properties via the "other" config tree work. +* merged new media player ids from libmtp +* Timeouts configurable +* New cameras: + Kodak Z710, C183 + Nikon CoolPix S7c, P90, P100, S8000, S3000, S9100 + Nikon DSLR D3s, D3100, D7000 + Casio EX-Z65 + Canon Powershot SD1300 IS, SX210 IS, SX130 IS, + Canon EOS 60D + Fuji FinePix A220, Z700EXR, +* Some capture bugfixes +* Lots of bugfixes + +st2205: +* Minor additions + +libgphoto2_port/usb: +* Avoid MTP probing. Done by libmtp these days, also confuses some devices. +* Do list less usb:XXX,YYY ports for things that are not cameras. + +libgphoto2_port/usbscsi: +* Fixed symlink handling in device detection for newer kernels. +* Decode SCSI sense data received. + +libgphoto2 +* Updated translations: danish, german, spanish, basque, french, + hungarian, italian, japanese, dutch, polish, russian, swedish, ukrainian, + vietnamese, simplified chinese + +libgphoto2_port +* Updated translations: czech, danish, german, spanish, basque, french, + italian, japanese, dutch, polish, brazilian portuguese, russian, slovakian, + swedish, ukrainian, vietnamese, simplified chinese, traditional chinese + +------------------------------------------------------------------------ +libgphoto2 2.4.10.1 + +This is a regression + translation fix update only + +translations: +* libgphoto2_port updated: russian, slovakian +* libgphoto2 updated: italian, polish, russian + +sts2205: +* Fix build without GD development headers due to stray ; + +ptp2: +* linear backoff waiting for Nikon events to reduce load +* ptpip senddata fix (was broken before) +* be more careful with USB interrupt checks on MacOS X, as they do + not timeout currently. + +------------------------------------------------------------------------ +libgphoto2 2.4.10 + +This is a 2.4 release branch update. + +libgphoto2: + * Translation updates (polish, vietnamese). + * The "usb:" generic matcher entry is not reported anymore. + Auto detection will now always return "usb:XXX,YYY" and "usb:AAA,BBB" values. + + You can still pass "usb:" in. + + * The generated UDEV rules for version 136 and later have been changed: + - PTP class is shortcut to avoid 1000 entries to be evaluated for the common camera case. + - USB Mass Storage is now skipped and not tagged as gphoto supported. + This should avoid confuse users with MTP players in dual mode. + + (Done just for the cameras and MTP players, not for the picture frame drivers). + +st2205: + * Link iconv (MacOS build fix) + * "delete all files" implemented. + +ax203: + * Various improvements and bug fixes + * new compression method supported for ax206 + +ptp2: + * New PTP event handling added. + This might have caused some instabilities in capture code. + + * Fixed EOS capture to card waiting 1 minute bug + * Fixed EOS capture "no focus" waiting 1 minute bug + * EOS "eosviewfinder" enable/disable option. + * Pass up more EOS events via wait_for_event (property changes, and all unknown events). + * EOS Viewfinder Zoom Level and Position added + * Fixed setting multiple configuration values at once. + * Handle MTP -> Vendor id mapping for PTP/IP cameras. + * Lots of bug fixes. + * Added new IDS: + Kodak Z950 + Sony DSC-S370 + Nikon CoolPix 7600, L110 + Panasonic FZ38, DMC-GF1 (only download support), + Canon PowerShot D10, SX120 IS + Fuji FinePix F60fd, F70 EXR, S1800, S5800 + Pentax Optio W90 + +sierra: + * Added Olympus E-520 + +canon: + * ability to read and set "shooting mode". + +digigr8: + * merged from TRUNK: new camera "Stop & Shop 87096", some cleanups and bug fixes + +jl2005c: + * Decompression decoded and driver now working. Enabled by default now. + +libgphoto2_port/usbscsi: + * Check for scsi/sg.h and use it only if present (MacOS build fix) + +libgphoto2_port/usb: + * Do not filter out "usb:XXX,YYY" ... but have both usb: and + usb:XXX,YYY for now. + +------------------------------------------------------------------------ +libgphoto2 2.4.9 + +This is a 2.4 release branch update. + +ptp2: + * Fixed EOS viewfinder capture speed (2 images/s -> 20 i/s) + * EOS event handling cleaned up, so that we can also have + dual image capture (RAW+JPEG). + * New Canon EOS properties: autoexposuremode, cameraoutput, evfmode, uilock. + * New Nikon property: exposuredelaymode + * Fixed a Canon PowerShot configuration bug that caused hangs. + * Fixed a Nikon CoolPix configuration bug that caused hangs. + * Fixed shutterspeed setting to be more generic. + * New IDs added: + Nikon Coolpix 8800, P6000, L20, L19 + Panasonic FS62 + Olympus FE4000/X920/X925, + Canon EOS 550D + Canon Powershot A2100IS, SD970IS, SX20IS, IXUS 120IS + Fuji FinePix S1500, Z35, S2500HD + Apple iPhone 3GS + * Some bugs fixed, some memory leaks closed. + * music-players.h merged from libmtp, bringing new MTP devices. + +ST2205 Driver: + * New Pictureframe driver from Hans de Goede. st2205 based frames present + themselves as a regular usb mass storage device, but cannot be used + as a normal disk! Communication with the device happens by a special + protocol which consist of reading / writing sectors of the disk at + certain magic offsets. Also included is a "usbdiskdirect" port driver, + which allows the direct sector access the camlib for these devices needs. + +AX203 Driver: + * New Pictureframe driver from Hans de Goede. ax203 based frames present + themselves as a usb mass storage cdrom, which contains the windows + software. Communication with the device happens by issuing special + (custom) scsi commands. Also included is a "usbscsi" port driver, + which allows sending the custom scsi commands. + + Note that if your ax203 frame has a usb-id of 1908:1315, you need to + tell Linux not to touch the HID device this version also presents + in its USB descriptor. To do this add the following on the linux kernel + cmdline: "usbhid.quirks=0x1908:0x1315:0x4" + +digita: + Made to work again hopefully after breakage due to filesystem changes. + +------------------------------------------------------------------------ +libgphoto2 2.4.8 + +This is a 2.4 release branch update. + +libgphoto2: + * Updated translations. + * Added read-only flag for Widgets. gp_widget_set_readonly / gp_widget_get_readonly. + * GP_EVENT_CAPTURE_COMPLETE event added from trunk. + * Some bugfixes. + +ptp2: + * New USB IDs for cameras: + Kodak Z915 + Nikon CoolPix S220, S225, + Nikon DSLR D5000, D3000, D300s + Canon PowerShot SD770 IS, A580, SD1200, IXUS 95 IS, G11, IXY 220IS, SD940IS + Canon EOS 7D + Fuji S5 Pro + Sea & Sea 2G + Also merged new libmtp deviceids. + * Fuji S5 Pro capture support. + * Bugfixes in Canon EOS preview code. + * Fixed NIKON DSLR shutterspeed not able to set bug. + * Nikon error decoding. + * Several Canon EOS configuration and capture additions and fixes, focus pulling. + * PTP protocol stability improvements. + * Lots of bugfixes. + +sierra: + * restrict list of choices for Nikon Coolpix 4300 + +directory: + * Merged from TRUNK to gain the good stuff. + +libgphoto2_port/usb: + * Updated translations. + * Check for MTP devices by string descriptor first and by OSD later. + +------------------------------------------------------------------------ +libgphoto2 2.4.7 + +This is a 2.4 release branch update. + +libgphoto2: + * Translation updates from translationproject.org. + * Widget and choice lists now dynamic, to be able to create longer ones. + * 3rd generation UDEV rules emission, now able to emit "post HAL" + UDEV rules. + + print-camera-list udev-rules version 136 > /lib/udev/rules.d/40-libgphoto2.rules + + * Disabled LRU of images. Not really useful in times of USB 2.0, + also disabled by at least Debian und Ubuntu already. + +libgphoto2_port / USB: + * If we detached a USB driver, reattach it on close. + This allows using e.g. cheap camera as both webcam with in-kernel + driver and still camera with libgphoto2. + +PTP2 driver: + * Renamed various configuration options and changed values to + match a unified model. Some common names have changed: + owner->ownername + exptime->shutterspeed + eos-* -> non-eos prefixed variants + etc. + You will need to review configuration setting code if you have any. + + * Create config submenus /actions for action triggers and /status for + read-only values, moved stuff there. + + * New IDs: + Kodak M863 + Canon Digital IXUS 110IS, IXUS 100IS, Powershot SX200IS, SD780 IS, A1100IS + Canon EOS 500D + Fuji Finepix F200 EXR + Apple iPod Touch first generation + + + * Lots of Canon EOS capture improvements, for card capture, for LiveView, + and for property setting. More properties are now possible. + * Canon EOS Bulb mode support (available in newer canons). + --set-config bulb=(0|1) + + * Fixed Nikon DSC shutterspeed setting (also for times < 1/1000) + * Enable Viewfinder on demand for Canon Powershot, not for all capture things. + * Generic PTP Property Get/Set in the configuration handling. + * Decode more Nikon DSC properties (for D90 now nearly complete). + * Turned several PTP generic commands to macros to reduce number of functions. + * MTP player list synced with libmtp 1.0. + * Lots of bugfixes. + +Canon driver: + * Renamed various configuration options and changed values to + match a unified model. + +------------------------------------------------------------------------ +libgphoto2 2.4.6 + +This is a 2.4 release branch update. + +PTP2 driver: + * Fixed Nikon DSLR capture in LiveView mode (like gtkam uses). + * More Canon EOS stuff decoded, added experimental "capturetarget" support + for EOS. + * Canon EOS LiveView support (experimental, reported working for EOS 1000D). + * Added new USB ids: + - Kodak V803, M1063 + - Canon PowerShot A650IS, SD990 (aka IXUS 980IS), SD880IS, A480 + - Canon EOS 50D + - Fuji FinePix S1000fd + * Retrieve filedates again from PTP objects. + * speedup: Do not list files on / (there aren't any). + * Bugfixes. + +Canon driver: + * Support Exposure Bias setting. + * More shutterspeeds. + +libgphoto2: + * Fixed a problem during file retrieval which causes Canon Normal + --capture-image-and-download errors, handle CR2 and CRW mimetypes. + * Fixed ordering of filelists again that broke the digigr8 driver. + * Translation updates. + +digigr8: + * Added a new version of the disney pix micro. + +------------------------------------------------------------------------ +libgphoto2 2.4.5 + +This is a 2.4 release branch update. + +PTP2 driver: + * Increased timeout for Canon Viewfinder enable. + * Fixed intial Canon timeout (0.5 -> 1.5 seconds), was too small + for some Canons. + * Canon EOS capture mode and tethered mode bugfixes. + * Nikon DSLR LiveView support, with Autofocus and ManualFocus Drive possibility. + * Nikon tethered capture fixes. + * New cameras listed: + Nikon CoolPix P50, S60 + Canon Digital IXUS 85 + Canon PowerShot A740, G10, + Canon EOS 5D Mark II + * Merged new IDs of Music Players from libmtp. + * Lots of bugfixes. + +KODAK DC240: + * Made driver work again. + * Cleanups + +libgphoto2: + * rewrote gphoto2-filesys.c to be dynamic and fix LRU problems. + (backport from TRUNK) + * Translation updates. + +libgphoto2_port: + * added --enable/--disable configure options for: disk, serial, ptpip + * added --with/--without configure options for: bonjour, hal + * backported Gentoo "if just canon driver selected, auto-select ptp2 driver" + usability fix. + * Translation updates. +------------------------------------------------------------------------ +libgphoto2 2.4.4 + +libgphoto2: + * Updated translations from translationproject.org + +PTP2 driver: + * Developed in parallel with TRUNK. + * Only retrieve and initialize the ptp filesystem if needed + (this will give speed ups for config operations, basic + init and summary.) + * Export the hidden vendor specific properties of the current Nikon DSLRs. + (over a hundred with all camera configuration details...) + (D80, D90, D300, D700, D40x got, D200 guessed) + * Lots of new Nikon DSLR and Canon Powershot properties implemented, + both printed in summary and available for config functions querying + and/or setting. + * Query and Set image protection flags (actually used by digikam). + * Lots of bugfixes and changes in Canon and Nikon specific capture routines. + * Some defines for PTP 1.1 added. Will have to wait for implementation until + a device gets available. + * New cameras added: + Kodak C913 + Nikon D90 + Canon Digital IXUS 960IS, EOS 1000D, SD1100 IS, SX10 IS, SX110 IS + Fuji FinePix A920, F100fd, S200HD + Apple iPod Touch (just saved screenshots and uploaded images) + * PTP v1.1 defines added (implementation will start once devices are available) + * Synced MTP device list from libmtp (0.3.5 level). + * Lots of bugfixes. + +jl2005c: + * Experimental driver for jl2005c based cameras added. + Can only retrieve raw images currently, no viewable images yet. + Not builtin by default. ./configure --with-drivers=all,jl2005c + +libgphoto2_port: + * Updated translations from translationproject.org + + * Serial driver: do not lock device during probe to reduce startup + time. + +------------------------------------------------------------------------ +libgphoto2 2.4.3 + +This is a 2.4 release branch update. + +libgphoto2: + * Adaptive Homogeneity-Directed Bayer array conversion added, used + in several camera lib drivers. + * Translation updates for various languages. + * libtool 2.x build fixes + * Various MacOS X compile fixes again. + * gp-byteorder.m4 fixes for newer glibcs. + +Example programs: + * Addes some basic library usage example programs and helpers. + +PTP2 driver: + * Merged camlib from TRUNK. + * Tethered Capture support for Canon EOS 40D, 400D, 450D. + * Always handle "no directory linking to /" problem. + * Disable more Panasonic cameras (product id 0x2372 is always mass storage) + * Some MTP fixes, lots of new MTP devices. + * Fixed canon viewfinder issues on Canon PowerShot SX100IS. + * Fixed a ptp property packing issue exposed + by newer Nikons. + * Added new devices: + Kodak M893 IS, C813 + Nikon CoolPix L16, CoolPix 8700, DSC 700 + Canon EOS 1D Mark III, IXUS 90IS, EOS 50D + Apple iPhone 3G + +Canon driver: + * Fixed some unlock keys problem for EOS cameras. + * Moved over several PTP2 supported cameras to the PTP2 driver only. + +Sierra driver: + * Implemented basic Storage Information function. + * Fixes for big endian or 64bit architectures by fixing struct packing. + +smal driver: + * Added support for Creative CardCam. + +sq905 driver: + * Updated postprocessing, by using "AHD" bayering and new gamma methods. + * Bugfixes. + +stv0680: + * Storage information function. + +digigr8, mars, sonix drivers: + * Updated postprocessing, by using "AHD" bayering and new gamma methods. + +jl2005a driver: + * Imported from TRUNK, for new small factor cameras. + American Idol Keychain Camera + NogaNet TDC-15 +------------------------------------------------------------------------ +libgphoto2 2.4.2 + +This is a 2.4 release branch update. + + +libgphoto2: + * Camera abilities list sorting now uses qsort(), + bringing startup speedups by seconds. (0.4 seconds on 2GHz machine). + + * On large files, do not try to retrieve thumbnails. + + * Updated lots of translations. + +PTP2 driver: + * Full merge of TRUNK ptp2 camlib. + + * Lots of new IDs added. Also changed MTP id handling to share devices + with current libmtp. + * Canon now can capture to both CF/SD Card and internal memory + with extract/retracting the lens. "capturetarget" config option + determines which ones used. + + * EOS capture support made working with newer Canon EOS models, + now reported working for EOS 400D, 450D, 40D. + + * Handle MTP -> Canon/Nikon vendor id transitions better. + * Download cancellation support. + * Handle canon cameras with shorter timeouts on startup (hopefully + does not break) to avoid very long second startup delays. + + * Lots of bugfixes. + +Canon driver: + * Configuration of Flash, Beep and Zoom added. + * Enable/disable remote mode only once per session (on demand) + * Fixed a CR2 thumbnail download problem. + * Fixed a THM download problem (for movies). + * Moved some more cameras over to PTP2 driver. + +Topfield driver: + * New driver for Topfield PVR5000 device(s). + +* Sony DSC F1 (old serial) driver: + * Merged from TRUNK, working now. + +libgphoto2 2.4.1 + +This is a 2.4 release branch update. + +Package / System integration: + * HAL FDI files now use "info.subsystem" instead of "info.bus", required + by hal after March 2008. + + * Suppress another Olympus camera in FDI file that is better of done + using Mass Storage only. + +libgphoto2_port: + * Suppress more known network filesystems in "disk" autodetection + * disabled usb_reset for Canon cameras in "usb", broke EOS cameras. + +PTP2 driver: + * Merged all new Camera IDs from TRUNK. + * Configuration bugfix for multiple options with the same name. + * Capture bugfix for Nikon Coolpix + * Various small bugfixes. + +Canon driver: + * Increased the event timeout, so operations work again. + * Fixed a bug in interval capture + * some additional configuration values for newer cameras + +Mars driver: + * Synced with SVN TRUNK (1:1 copy). + * Better whitebalance postprocessing + * Camera ids added + * Decompression fixes + +Digigr8 driver: + * Synced with SVN TRUNK (1:1 copy). + * bugfixes + +Sonix driver: + * Synced with SVN TRUNK (1:1 copy). + * bugfixes +------------------------------------------------------------------------ +libgphoto2 2.4.0 release + +Build: + * Non-recursive camlib build: Makes "make -j2" useful. + "./configure --with-drivers=..." still works. Selective camlib + rebuild is "make -C camlibs agfa_cl20.la" now. Selective camlib + install is "make DRIVERS='canon.la ptp2.la' install-drivers". + * Fix sierra and canon drivers picking up old gphoto2 headers. + * libiconv linking fix for PTP2 driver. + * Require external libltdl. + * Ditched autogen.sh, use standard autoreconf from stock autoconf. + * Put auto* files into auto-aux/ and auto-m4/. + * Accept utilsdir and udevscriptdir set by user (#1646520). + * Introduce libgphoto2-uninstalled.pc pkgconfig file (#1643245). + * Remove make dependency on $(LIBLTDL) aka "-lltdl" (#1548195). + +libgphoto2 API: + * New gp_file_new_from_fd() ... Which allows mapping CameraFile to + UNIX filedescriptors for both reading and writing. + * New gp_file_slurp() function (for camlib use) to sequentially + read out CameraFiles. + * New gp_camera_get_storageinfo() API added to get programmatically + the storage information(s), like capability, free space and labels. + + On cameras not supporting it returns GP_ERROR_NOT_SUPPORTED. + + * Enhanced Bayer algorithm added globally. + +Package / System integration: + * New syntax for print-camera-list's udev output. See help output. + + Note that we generate udev >= 0.98 output by default. + + Use "version pre-0.98" on the commandline to generate the old version. + + * Add new permission setup binary doing Microsoft OS Descriptor + retrieval for MTP devices not explicitly listed. + This binary (check-mtp-device) is used by the generated UDEV rules. + (Not working currently since udev does not create the device before + calling it.) + +disk port: + * handle automounter properly. + +directory driver: + * ignore anything not starting by '.' because it is not DCF compliant + and it is use for things like Trash of metadata... + +PTP2 driver: + * For Canon capture capable cameras, enable shutter and aperture control + using "shootingmode" property (PTP d00c), and focuslock mode. + + * New dataflow engine, making it possible to upload/download images + or songs without taking up any system memory. (think multi GB movies + on small devices). + + * Enhanced MTP protocol handling. + + * Cleanups and bugfixes. + + * New USB IDs for cameras: + + Canon PowerShot SD1000, SD900, A450, A550, A560, A570, A420, SD40, SD750 + Canon PowerShot S5 IS, SD1000 + Canon Digitial IXUS 70, 75, 900Ti, iZ + Canon MV750i + Nikon CoolPix S4, S6, P4, L10 + Nikon DSC D40, + Kodak EasyShare C433, C613, C653, C743, C875, V570, V610, V705, P880, V603, Z712 IS + HP Photosmart R967 + Minolta DiMAGE x21 + Fuji FinePix F20, F40, S9500 + Casio EX-Z700 + Sony DSC N2, W35, W200 + Apple iPhone + + * Several new USB IDs for MTP players, including + all from libmtp: + iRiver T20, N12, iFP-800, T20 2, Clix2 + Archos 504, Toshiba Gigabeat P20 + Philips PSA235, SA9200 + Samsung YH-925GS + SanDisk Sansa c250 + +Canon driver: + * Enable formerly experimental 20D support code by default. + + * Moved handling of some cameras to PTP2 driver, since they cause + as yet unidentified errors. +------------------------------------------------------------------------ + +libgphoto2 2.3.1 + +PTP: + * Fixed a memory leak in continuous Nikon / Canon capture mode. + +Bindings: + * Moved all bindings into separate packages. + +Package / System integration: + * Add README.packaging file for packagers. + * Removed obsolete print-usb-usermap. Use + "print-camera-list usb-usermap usbcam" instead. + * Fix libgphoto2 symbol list: Removed gpi_gphoto_port_type_map + * Add new permission setup script doing class based matching for + PTP class cameras not listed explicitly by USB IDs. + This script (check-ptp-camera) is used by the generated UDEV rules. + + Example usage: + print-camera-list udev-rules mode 660 group plugdev \ + > /etc/udev/rules.d/90-libgphoto2.rules + + or similar and set udevscriptdir='/lib/udev' at configure time or adjust + the path to check-ptp-camera in the generated /etc/udev/rules.d/90-libgpoto2.rules + file. + +---------------------------------------------------------------------------- + +libgphoto2 2.3.0 + +PTP: + * Improved Nikon remote control + * Improved Canon file download + - faster directory retrieval (especially on cameras with lots of files) + - "new" images are marked (gphoto2 --new, digikam) + * MTP Playlist support (upload and download) + * MTP Metadata support (upload and download, Artist, Title, Playtime ... ) + * Lots of other MTP related fixes. + * MTP autodetection on Microsoft OS Descriptor. + * New devices: + Canon PowerShot A540, A530, S3 IS, SD430, SD700, IXUS 800, + IXUS 60, A630, SD630, G7, Digital IXUS 65, 710IS, EOS 400D, + Digital Rebel XTi, IXUS 850 IS, PowerShot A640, + IXUS Wireless (USB support only currently) + iRiver T20 FM, iClix + Creative Zen Vision W, Vision M, Vplus, V + Dell Pocket DJ + Nikon Coolpix L4, L3, L1, D80, P3 + Kodak Easyshare Z740, P850, Z612, C633, C643, C530, Z612, CD33 + Sony DSC-U10 + Leica D-LUX 2 + Olympus IR-300 + JVC Alneo XA-HD500 + All currently known HP Photosmarts (sync with Windows Driver .INF files) + various Samsung devices + +Canon: + * 5D - 20D experimental capture support (default disabled) + +Kodak DC120: + * Bugfixes to make it work. + +Mars: + * RAW files saved with size information. + * Some new ids, lots of bug fixes. + +Ricoh G3: + * Added Ricoh Caplio R4 id. + +Disk port: + * Addes Solaris filesystem table handling. + * Fixed a crasher. + * Skip "fuse" filesystem. + +SiPix Blink: + * Disabled build, since it cannot the downloaded data to usable images. + +Sonix: + * Bugfixes and support for Sakar Digital Keychain 11999. + +Bindings: + * Removed the Mono/.NET bindings due to unclear license. + * Partial Java bindings + +libgphoto2 API: + * Compiles with -pedantic in gcc's c99 and c++98 modes. + * Marked a few definitions as being internal to the gphoto project. + * Added gp_list_find_by_name() function. + * Made _CameraList details private. + +libgphoto2: + * Fixed some directory handling problems for MTP players. + * Improved error checking and propagation. + * New error code for "fixed limit exceeded" (exceptions would be nice) + * Added a few internal functions. + +---------------------------------------------------------------------------- + +libgphoto2 2.2.1 + + * Fix build for FreeBSD users (and other non-Linux) + +---------------------------------------------------------------------------- + +libgphoto2 2.2.0 + + +Build system (packagers beware!): + + * You should generate HAL FDI, linux-hotplug usb.usermap, and udev rules + now via our program: + + ${libdir}/print-camera-list (hal-fdi|usb-usermap|udev-rules) + + During a chrooted build you can use: + CAMLIBS=$BUILDROOT/usr/lib/libgphoto2/2.2/ print-camera-list hal-fdi + + This obsoletes print-usb-usermap and print-udev-rules. + + The hal FDI file should be put into: + /usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi + + If you need to generate different stuff based on the cameras, please add + it to the "print-camera-list" helper. + + * Added C# (csharp) bindings + + Thanks to Patrick van Staveren 's initiative, + we now compile, ship and install the C# bindings. However, a few + things will still change about it, so don't just completely rely on + it, its file names and locations, etc. just yet. + + +Client programmers (KDE, GNOME, MONO, C....) with specific character +set requirements: + + * We added new function gp_message_codeset(const char*) to API. + - If you do not call this function, libgphoto2 will give you its + messages in the codeset defined by the system locale. + (The system locale is defined by the LANG, LANGUAGE, and LC_* + environment variables.) + - Call this function with your desired codeset if you require + libgphoto2 messages in a fixed codeset independent from the + system locale. For example, GTK+ applications always expect UTF-8. + - gp_message_codeset() propagates the requested charset to + libgphoto2_port and then calls gettext's bind_textdomain_codeset() + function. + * Added gp_camera_wait_for_event() API, to wait for + specific camera events and return them to the caller. + + +libgphoto2 changes: + + * libgphoto DSO version is now 2.1.0 + + * Lots of bugs were fixed. + + * New translations were added. + +Driver changes: + + * PTP + + - PTP/IP support has been added. + + - On selected Nikon and Canon cameras it is now possible to capture + images into the Camera SDRAM and in turn downloading it to libgphoto2 + internal storage, bypassing the memory card. + + To enable it, use the "capturetarget" setting, also saved in + .gphoto/settings. + + This is useful for: + gphoto2 --capture-image -f /store_00010001 -p capt0000.jpg + + Or use the timelapse capture of gphoto2: + gphoto2 --capture-image -F -I + + Or write your own client using libgphoto2... + + + - Support of MTP devices has been greatly enhanced. + + + Creative Zen devices now work. + + iRiver devices work, but have some protocol subtleties / flaws. + + + Object Property (Meta Data) support now works in a basic way. + + GP_FILE_TYPE_METADATA type get and put can be used to retrieve + and set meta data for files. + + get: Returns all available properties and their contents. + + put: Set the properties found in the file to the specified content. + The non-listed are untouched. + + The metadata looks like: + Elvis Presley + + gphoto2 -f /store_00010001/Folder... --get-metadata file.mp3 --stdout > meta_file.mp3 + ... edit meta_file.mp3 ... + gphoto2 -f /store_00010001/Folder... --upload-metadata meta_file.mp3 + + gphoto2 --get-all-metadata ... retrieves metadata of all files, with meta_ prefix. + + - Better --summary output, listing also Storage Devices and Device abilities. + + - Lots of new device ids. + * Canon 5D, 30D, A340, A700, S40, S80 + * Nikon D200 + * Casio EX-Z120 + * Kodak C360, Z700 + * HP M317 + * Panasonic DMC-LC1 + * Fuji E900 + + +---------------------------------------------------------------------------- +libgphoto2 2.1.99 (pre-release of 2.2) + +Build system (packagers beware!): + + * now requires libltdl (from system or shipped with tarball) + * works with contemporary build tools + * new ./configure parameter set + * no more accidentally building without libusb (use --without-libusb + if you insist on that) + * camlibs and iolibs are now installed into new directories + * libhal 0.5 is currently an option for the disk: port. + Distribution that ships it might want to build it with it. + +libgphoto2: + + * If set, use environment variable CAMLIBS to find the camera drivers. + Ditto for libgphoto2_port, IOLIBS and IO drivers. + * disk: "port" for USB Mass Storage support + * various USB fixes + * Generate .fdi files for HAL + * Memory usage greatly reduced by only keeping last 2 pictures + in memory cache + +Drivers (camlibs) + + * basic MTP support for iRiver mp3 players using ptp driver T10, + T20, T30, M415 + + * canon + * IXY Digital 600 fixes + * Added A610 + * Experimental SD500 + * Experimental A620 (not really working) + + * casio + * various fixes in QV-10 driver + + * digigr8 (NEW) + * support Digigr8, Che-Ez Snap SNAP-U, Soundstar TDC-35 + + * kodak/dc210 + * Added DC215 + + * ricoh/g3 + * Ricoh Caplio GX, GX 8 + * Ricoh R2, R3 + * Rollei dr5 + + * hp215 (NEW) + * support HP 215 + + * lg_gsm (NEW) + * support LG T5100 + + * mars + * various fixes + * Added Argus DC-1620, DC-1610 (experimental) + * Added Philips P44417B + + * pdc640 + * Added Clever CAM 360 + + * ptp + * For Nikon, handle ISO speed, aperture, exposure program, + capture, focus metering mode, flash mode, AF beep toggle + * Nikon curve + * Added Kodak Z730, Z7590, C340, LS753, V530, V550, C310, C330 + * Added Nikon D50, D70s, 4600, 4800, 5600, 5900, Coolpix P2 + * Added Canon A410, A520, A610, A620, IXUS 55, SD450, IXUS 750 + * Added HP R817, Photosmart M23 + * Added Olympus D-540z, C-310z, X-100 + * Added Panasonic Lumix FZ5, DMC-LZ2 + * Added Ricoh R3 + * Added Sony DSC-H1, DSC-R1 + * Added MTP devices (mp3 players) + * Some iRiver MTP devices (mp3/ogg players) are supported too, + but are experimental. + + While the "Creative Zen Micro" is also an MTP device, we were + not able yet to decipher the PTP protocol deviation. + + In general, MTP devices can be supported here, but you need + to add the ID in camlibs/ptp2/library.c directly, since they + do not have a USB class id. + + * Now supports a "fast filesystem" mode on newer Nikon PTP cameras. + + This speeds up initialisation notably on cameras with lots (>50) + of images. + + However, this mode does not find the special files on the camera + (AUTPRNT.MRK). It also cannot represent the correct directory + structure. + + For normal users (who just download and process the images) the + "fast" mode is recommended. + + It can be toggled in the "Camera Settings" menu and ~/.gphoto/settings. + + * sierra + * various fixes + * Added C-770UZ + + * sq905 + * various fixes + * fix some crashers + +Bindings + + * added Java (patch# 1108091) + * added Python (patch# 1152835) + * added C# + +Translation updates: + + * da + * it + * ru + * vi + * zh_TW + + + +---------------------------------------------------------------------------- +libgphoto2 2.1.6 + +General libgphoto2 features: + + +Drivers (camlibs): + + * sierra driver: + - We now support the hidden Sierra Mode on Nikon and Pentax + cameras (which are otherwise just USB Storage cameras). + + The USB Storage driver is automatically detached on open. + + This allows remote image capture with those cameras for + instance. + + +------------------------------------------------------------------------ +libgphoto2-2.1.5 +------------------------------------------------------------------------ + +On 2004-12-16, we are proud to release libgphoto2 2.1.5 to the world. + +libgphoto2 2.1.5 features support for more than 400 digital cameras. + +The changes since the 2.1.4 release are mostly bug fixes and support +for new cameras, and support for multiple cameras of the same type +at the same time. + +See the CHANGES file for more details. + +Have fun with libgphoto2 and your pictures! + +The gphoto2 team. + +---------------------------------------------------------------------------- +libgphoto2 2.1.5 + + * Support multiple USB devices by introducing additional USB ports, + usb:,. + +drivers (camlibs): + + * PTP driver: + - Lots of new ids were collected (across all vendors). + - Raw download support for newer cameras fixed. + + * sq905, mars, aox drivers: + - New drivers written by Theodore Kilgore for: + - Aiptek Pencam VGA+, Emprex PCD3600 (mars) + - Concord EyeQ mini (aox) + - Lots of SQ 905 based cameras (sq905) + + * sierra driver: + - Toshiba PDR support added. + + * sonydscf55 driver: + - bugfixes, downloading of MPEGs. + + * casio-qv driver: + - working serial support added. + + * canon driver: + - Several new ids added. + + +------------------------------------------------------------------------ +libgphoto2-2.1.4 +------------------------------------------------------------------------ + +On 2004-01-18, we are proud to release libgphoto2 2.1.4 to the world. + +libgphoto2 2.1.4 features support for more than 400 digital cameras. + +The changes since the 2.1.3 release are mostly bug fixes and support +for new cameras, nothing major. + +See the CHANGES file for more details. + +Have fun with libgphoto2 and your pictures! + +The gphoto2 team. + +---------------------------------------------------------------------------- +libgphoto2 2.1.4 + +general: + + * fixed recursion problems during capturing + + * Support for multiple USB cameras NOT included yet. + Reason: It breaks several applications. + +drivers (camlibs): + + * Canon driver: + - added support for G5, Optura 20, ZR-70MC + - re-added support for A300 and S50 + - fix erroneous file size limits + + * PTP driver: + - enhanced Canon Capture support + - added id for Canon Digital IXUS i + - added Olympus C-350Z, D-560Z, X-250 + - added Sony DSC-U20, DSC-P52, DSC-P72, DSC-P92 + - updates from libptp2 + + * ricoh driver: + - working G3, G4 support + + * sx330z driver: + - added Maginon SX-410z + + * spca50x driver: + - do not delete everything and fail to download on Aiptek 1.3 + + * polaroid drivers: + - fixed support for D-Link 350F, Skanhex SX-35 + - added support for Trust 350FT PowerC@m FLASH + +packaging: + + * linux hotplug scripts: + - use correct directories in usbcam.x11-app + +libgphoto2_port: + + * serial bug fix with speed 0 + + +------------------------------------------------------------------------ +libgphoto2-2.1.3 +------------------------------------------------------------------------ + +On 2003-10-19, after a long time, we have finally released a new +version of libgphoto2. + +Version 2.1.3 now features support for almost 400 digital cameras. + +The most important changes since the the 2.1.1 release are: + + - PTP driver rewritten completely + - support for lots of new cameras + - fixed a nasty segfault bug + +See the CHANGES file for a more complete list. + +Have fun with your photos! + +The gphoto2 team. + + +---------------------------------------------------------------------------- +libgphoto2 2.1.3 + + * builtin cache: + - use all available RAM on systems without memory size detection + +drivers (camlibs): + + * Canon driver: + - added support for EOS 300D + - fixed ProductID for PowerShot S45 + - fixed support for serial cameras + - fixed thumbnail stuff + + * New driver for Ricoh Caplio G3. + + * Smal driver: + - misc improvements + + * PTP2 driver: + - added misc cameras + - thumbnail hacks (?) + + +---------------------------------------------------------------------------- +libgphoto2 2.1.2 + + * fixed nasty stack overflow/segfault bug + * improved/fixed support for Sun + +drivers (camlibs): + + * All drivers: + - report vendor/model in a new (formatted) fashion + + * Canon driver: + - added support for capturing on consumer class cameras, tested on + Canon PowerShot S45, Canon PowerShot G2 + - G2 works again running from AC adapter + - multiple new models added (A60, A70, ...) + + * PTP2 driver: + - Next generation PTP driver added, using this as default now. + + * New Agfa CL20 driver from http://cl20.poeml.de/. + + * New camera library spca50x for all chips supporting the spca50x bridges + (merging the gsmart, benq and spca504_flash driver into one). + + +------------------------------------------------------------------------ +libgphoto2-2.1.1 +------------------------------------------------------------------------ + +On 2002-12-01, after almost five months, we have finally released a new +version of libgphoto2. + +Version 2.1.1 now features support for almost 300 digital cameras. + +The most important changes since the the 2.1.0 release are (see +CHANGES for a complete list): + + - new support for quite a lot of new cameras + - improved/fixed support for a lot "old" cameras + - libgphoto2 and the gphoto2 command line utility are now + separated + - also moved documentation to a separate module + +Have fun with your photos! + +The gphoto2 team. + + +---------------------------------------------------------------------------- +libgphoto2 2.1.1 + + * separated libgphoto2 sources from gphoto2 command line interface + + * gphoto2 manual moved to separate package gphoto2-manual + +drivers (camlibs): + + * Ricoh + + * Canon driver: + - added support for Canon PowerShot A100, Canon PowerShot A200, + Canon PowerShot S45, Canon PowerShot S230, Canon Digital IXUS v3, + Canon PowerShot G3 + - fixed Canon EOS D60 unlocking + + * PTP driver: + - fixed some bugs + - added support for Nikon D100 + - added support for Canon PowerShot S45, Canon PowerShot S230, + Canon Digital IXUS v3, Canon PowerShot G3 in PTP mode + + * added support for Mustek gSmart mini, Mustek gSmart mini 2, Mustek gSmart + mini 3 and So. Show 301 + + * Polaroid driver: + - added support for USB Jenoptik JD350v + + * SoundVision driver: + - Added support for RCA CDS1005, FujiFilm @xia ix-100, + Oregon Scientific DShot II, Media-Tech mt-406, + and Scott APX 30 + + * added support for Aiptek Pencam and Medion MD 5319 + + +-------------------------------------------------------------------------------- +gphoto2 2.1.0 + + * repaired "make rpm" target + * started "real" gphoto2 manual + +gphoto2 command-line interface: + + * optional readline support + +libgphoto2: + + * support for periodic keep-alive-messages + +drivers (camlibs): + + * improved support for PTP cameras: + - multiple storage media + - image capturing + - driver stability and robustness improved (less problems with + different cameras) + + * added support for Kodak DX-4900, Sony DSC-P5, Sony DSC-F707V, + Sony DSC-P30, Sony DSC-P50, Sony DSC-S75, Sony DSC-S85, + Sony MVC-CD300 + + * added support for Canon EOS D60, Canon PowerShot A40, + Canon PowerShot A30, Canon PowerShot S200 aka + Canon Digital IXUS v2, Canon Digital IXUS 330 + + * fixed support for Canon PowerShot S10 + + * Added SiPix Web2 support. + +-------------------------------------------------------------------------------- +gphoto2 2.0 + +gphoto2 command-line interface: + * Added gphoto2 manpage. + +-------------------------------------------------------------------------------- +gphoto2 2.0beta5 + +libgphoto2: + * Added Sony DCR-PC100 support. + * Fixed serial cameras bug introduced in beta4. + * Removed SiPix StyleCam from the STV0680 cameras list. + +gphoto2 command-line interface: + * EXIF support (extra tags that contain information about the image + produced by most digital cameras). + * Fixed broken --delete-all-images. Also, recursion is now the + default for downloading but _not_ for deleting. + * Localization for Simplified Chinese. + * Progress bar à la e2fsck + + +-------------------------------------------------------------------------------- +gphoto2-2.0beta4 +-------------------------------------------------------------------------------- + +Hello lovers of digital cameras, gphoto2-beta4 is out! + +As you probably know, the word beta doesn't keep us from adding lots +of new features: + * Added/Improved cameras support (Canon PowerShot S30, ...), + * Most functions report progress and are cancellable, + * Support for Samsung 800k, PTP cameras, + * STV0680 improvements, + * Kodak DC3200 fixes, + * Camera summary for Kodak DC240 driver, + * and more ... + +Get it from http://www.gphoto.net/dist/gphoto2-2.0beta4.tar.gz and try +it out! + +We are aiming at a final release in about 2 weeks from now, therefore +if you want to see gphoto2 (or any frontend) translated, your camera +working, or if you have any recommendation, speak up NOW! + +Happy downloading! + +Your gphoto2 team. + +-------------------------------------------------------------------------------- +gphoto2-2.0beta4 + +libgphoto2: + * Most functions report progress and are cancellable. + * Camera libraries are now installed in a versioned subdirectories. + * Stv0680 improvements. + * Canon: added PowerShot S30 support, CameraFS support, big-endian + systems support, RAW-File support. + * Added ptp cameras support (Kodak DX series and much more). + * Camera Summary for Kodak DC240 driver. + * Samsung 800k support. + * Fixed digita thumbnails bug. + * French localization. + * Japanese localization. + +gphoto2 command-line interface: + * Now reports progress information (when user can see it). + * Folder recursion is now the default behaviour. + * French localization. + * Japanese localization. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/OUTDATED.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/OUTDATED.txt new file mode 100644 index 00000000..6f2668eb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/OUTDATED.txt @@ -0,0 +1,77 @@ +Old to be obsoleted: + +serial only: + adc65 - added in 2005, might have been outdated even then. + 256x256 pixels + barbie - is from 2000 + casio - last functional change 2005 + dimera - last functional change in 2003 + fuji - last functional change 2002 + jd11 - is from 2001 + kodak_dc120 - last bugreport from 2006 + kodak_dc210 - last report from 2005 + kodak_dc3200 - last functional change 2002 + konica_qm150 - last functional change 2003 (not even googlable) + konica - from 2001 + largan_lmini - last functional change 2004 + minolta_dimage - last functional change 2007 + panasonic_coolshot - last reports in 2002 + panasonic_dc1000 - last reports in 2002 + panasonic_dc1580 - last reports in 2002 + panasonic_l859 - last reports in 2002 + polaroid_pdc320 - old serial, last change in 2003 + ricoh - from 2003 + samsung - last changes in 2002 + sonydscf1 - 1997 camera + sonydscf55 - 1999 camera, changes from 2002 + +agfa_cl20 - last functional change 2004 +clicksmart310 - last functional change 2006 +digita - last cameras released in 2001 +enigma13 - last functional change in 2004 +gsmart300 - last functional change 2004 +hp215 - last functional changes 2005 +iclick - last functional change 2004 +jamcam - last functional change 2002 +kodak_ez200 - last changes in 2007 by me +lg_gsm - last functional change 2005 +mustek - last changes in 2002, ported from gphoto 0 +pccam300 - last functional change 2004 +pccam600 - last functional change 2004 +polaroid_pdc640 - last report from 2005 +polaroid_pdc700 - last work around 2004 +ricoh_g3 - last reports from 2005 +sipix_blink - was never working well i think +sipix_blink2 - last functional change 2003 +sipix_web2 - last functional change 2002 +smal - last functional change 2003 +soundvision - last functional changes in 2003 +spca50x - last additions in 2004 +stv0674 - last functional changes from 2002 +stv0680 - last functional changes from 2003 +sx330z - last functional changes from 2003 +toshiba_pdrm11 - last functional changes from 2003 + + +Keep: + +aox - last functional change 2008 +ax203 - last functional change 2014 +canon - still has known users, active 2019 +digigr8 - functional changes in 2012 +directory - generic directory driver, keep +jl2005a - last functional change 2010 +jl2005c - last functional change 2012 +mars - last functional change 2010 +pentax - pentax slr, active 2019 +ptp2 - PTP, active +sierra - still has users, also some cameras +sonix - last functional changes in 2008 +sq905 - last functional change 2010 +st2205 - changes in 2014 +topfield - last changes in 2008, (HD recorder, might still be in use) +tp6801 - last changes in 2011 + +kodak_dc240 - last report from 2004 + Reply from a user in 5.2019 its in active use. +ricoh_g3 - report in 2019 https://github.com/gphoto/libgphoto2/issues/454 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/README.md b/lib/hardware/sensors/gphoto/libgphoto2-master/README.md new file mode 100644 index 00000000..784207d8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/README.md @@ -0,0 +1,146 @@ +# libgphoto2 + +Hello and welcome to the wonderful world of gphoto! This is libgphoto2, the +successor of gphoto with lots of new features and additional camera +drivers. + +If you miss a feature, would like to report success or failure, or have any +questions, please don't hesitate to contact our mailing list. + + +## What is libgphoto2? + +libgphoto2 is a library that can be used by applications to access various +digital cameras. + +For more information on gphoto, see [gphoto project home page]. + +There, you can also get information on mailing lists, supported cameras, +and availability of gphoto2. Another source of information is [gphoto github project page]. + +where you can access our SVN server to fetch the source code of +gphoto2, gtkam and GnoCam (see below). + + +## What is libgphoto2 not? + +libgphoto2 itself is not a GUI application, opposed to gphoto. There are +GUI frontends for the gphoto2 library, however, such as gtkam for +example. + +libgphoto2 can only talk to cameras the language of those it understands. +That is, if you own a camera that speaks a language that isn't published +anywhere and nobody has been able to figure out the meaning of the sentences, +libgphoto2 cannot communicate with those cameras. + +Then, there are cameras supporting the so-called USB Mass Storage protocol. +This is a protocol that has been published and lets you access any storage +device, be it a camera or a disk connected via USB to your computer. As there +are already drivers for this protocol out there, you don't need an additional +library like libgphoto2. The list of camera that use USB Mass Storage is getting +longer everyday, so we won't publish it. + +For a more up to date list, you can consult [camera list with support status]. + +Your operating system will tell you about that because it is likely to recognize +the device as a SCSI disk that you can mount (for Linux 'dmesg' will tell you). +Again, those cameras *cannot* be accessed through libgphoto2. Some of them can +be switched to use a different communication protocol and might be in that case +useable with libgphoto2. + +Other camera support a protocol called PTP or USB Imaging Devices that has +been developed by Kodak and other. libgphoto2 does support PTP. Also working +will be cameras labeled as "PictBridge", which is a extension to PTP. + +Almost all cameras that are not mass storage support it these days, including +but not limited to all Nikon, Canon, Fuji, Sony, Panasonic, HP and more. + +PTP camera unknown to libgphoto2 will be detected as a generic PTP camera and +will work as-is without any changes. + +MTP (Microsoft Transfer Protocol) capable devices will also be accessible, +since MTP is based on PTP. + + +## Platforms + +libgphoto2 should compile and run on pretty much all Unix-like platforms. +libgphoto2 has _not_ (yet?) been ported to any operating system from MicroSoft. + + +## Bindings + +- Java: [gphoto2-java](https://github.com/mvysny/gphoto2-java), [libgphoto2-jna](https://github.com/angryelectron/libgphoto2-jna) +- Python: [python-gphoto2](https://github.com/jim-easterbrook/python-gphoto2), [gphoto2-cffi](https://github.com/jbaiter/gphoto2-cffi) +- C#: [libgphoto2-sharp](https://github.com/gphoto/libgphoto2-sharp) +- Go: [go-gphoto2](https://github.com/aqiank/go-gphoto2) +- Rust: [gphoto-rs](https://github.com/dcuddeback/gphoto-rs) +- Node.js: [node-gphoto2](https://github.com/lwille/node-gphoto2) +- Ruby: [ffi-gphoto2](https://github.com/zaeleus/ffi-gphoto2) +- Crystal: [gphoto2.cr](https://github.com/sija/gphoto2.cr) + + +## How to set up libgphoto2 + +For information on how to set up libgphoto2 and its frontends, see +The gphoto2 Manual. + +It is available at the following places: + + - At the gphoto website: [gphoto project home page] + - In the SVN module gphoto2-manual + +The gphoto2 Manual includes information about setting up USB +hotplugging. + +If you run into problems, you may also consult the FAQ (also included +in The gphoto2 Manual). + + +## Frontends + +gphoto2 is a command line frontend which is quite powerful, +especially in combination with scripts. See The gphoto2 Manual +for a short description. + +For the GUI lovers, there are for example digikam (KDE), gthumb (GNOME), +f-spot (GNOME / Mono) and more. We also have a GTK2 reference GUI +called gtkam, which is unmaintained, its only special features are +capture ability. +Additionally, there are plugins for other programs available like +kio_camera (KDE - Konqueror) and a fuse plugin, gphotofs. + + +## Reporting Bugs + +Every piece of software contains errors and flaws. So does +libgphoto2. When you encounter something that does not work, please do +the following: + +1. Find out whether this is a known problem. + +2. Reproduce the problem with debug output enabled and the language + set to English, so that the development team will understand the + messages. You can do this by running: + + env LC_ALL=C gtkam + + if you're using the gtkam frontend or running: + + env LC_ALL=C gphoto2 --debug-logfile=logfile.log --debug + + using the gphoto2 command line interface. + +3. Report the problem on the mailing list with the corresponding debug + output if it is small. If it is more than a few kilobytes, please + don't post the complete debug output on the list. + + +[gphoto project home page]: http://www.gphoto.org/ +[gphoto github project page]: https://github.com/gphoto +[camera list with support status]: http://www.teaser.fr/~hfiguiere/linux/digicam.html +[jphoto home page]: http://jphoto.sourceforge.net/ +[information about using USB mass storage]: http://www.linux-usb.org/USB-guide/x498.html +[gphoto development mailing list]: gphoto-devel@lists.sourceforge.net +[gphoto user mailing list]: gphoto-user@lists.sourceforge.net +[gphoto translation mailing list]: gphoto-translation@lists.sourceforge.net diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/README.packaging b/lib/hardware/sensors/gphoto/libgphoto2-master/README.packaging new file mode 100644 index 00000000..374675da --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/README.packaging @@ -0,0 +1,119 @@ +======================================================================== +libgphoto2 README.packaging +======================================================================== + +This file describes a number of things you should know when building +packages (.debs, .rpms, ports, emerges, etc. pp.) + + +======================================================================== +libgphoto2 and libgphoto2_port +============================== + +The libgphoto2 library builds on the libgphoto2_port library, which is +thus internally contained within every libgphoto2 release. By +installing libgphoto2, you always also install libgphoto2_port. + + +======================================================================== +Installed files +=============== + +A standard install of libgphoto2 does about this: + + * The most important files: + * ${libdir}/libgphoto2.{a,la,so} + * ${libdir}/libgphoto2//*.{a,la,so} (camlibs) + * ${libdir}/libgphoto2_port.{a,la,so} + * ${libdir}/libgphoto2_port//*.{a,la,so} (iolibs) + In most cases, you can remove the *.a and *.la files from the + list of files to ship. + * Packaging helpers: + * ${utilsdir}/libgphoto2/print-camera-list + * ${utilsdir}/libgphoto2/print-usb-usermap (linux-hotplug, obsolete) + * ${udevscriptdir}/check-mtp-device + * ${udevscriptdir}/check-ptp-camera + Defaults: utilsdir=${libdir}, ${udevscriptdir}=${libdir}/udev. + You probably want to ./configure udevscriptdir=/lib/udev and possibly + utilsdir='${libexecdir}', depending on your system. + * Documentation: + * Man pages: + * ${mandir}/man3/libgphoto2.3 + * ${mandir}/man3/libgphoto2_port.3 + * ${docdir}/camlibs/README.* (camlib docs) + * ${docdir}/{README,AUTHORS,NEWS} + * ${docdir}/apidocs.html/ API docs + * ${docdir}/{README,AUTHORS,NEWS} + You may want to install these files into your custom locations. + If you separate library from libfoo-devel packages, the former + should probably ship with the camlib docs, and the general README + and NEWS. Try configure --with-docdir=. + * Translated strings: + * ${datadir}/locale/*/LC_MESSAGES/libgphoto2-2.mo + * ${datadir}/locale/*/LC_MESSAGES/libgphoto2_port-0.mo + * ${datadir}/libgphoto2//konica/* + These files are required for the konica camlib to work at all. + * For developers: + * ${includedir}/gphoto2/gphoto2*.h + * ${libdir}/pkgconfig/libgphoto2.pc + * ${libdir}/pkgconfig/libgphoto2_port.pc + +Note that utilsdir, udevscriptdir, etc. can be set at configure +time. See "configure --help". + + +======================================================================== +Permission setup +================ + +We consider it a bug in the package if the package does not offer a +way for the user to just plug in his camera and use it. This may at +most require adding the user to a "camera" or "plugdev" group. + +You will want to create HAL or UDEV rules by running this utility: + + * print-camera-list + +This utility requires libgphoto2 and its camlibs being installed, +either + + * at package building time by doing a DESTDIR based temporary + install somewhere and setting LD_LIBRARY_PATH and CAMLIBS before + running print-camera-list + * at package installation time as a post installation hook + +The UDEV rules require two helper scripts/binaries, which obviously +need to be installed by the package: + + * check-mtp-device (not working yet) + * check-ptp-camera + +You can either use fixed permissions in the generated rules, or call +your own permission setup script to dynamically decide what to do. + +(Contemporary example scripts are not being shipped yet.) + + +======================================================================== +Development packages +==================== + +The recommended way to use libgphoto2 in a build process is to use +pkg-config and thus these files really should be shipped in a package: + + * /usr/lib/pkgconfig/libgphoto2.pc + * /usr/lib/pkgconfig/libgphoto2_port.pc + +We are still shipping + + * /usr/bin/gphoto2-config + * /usr/bin/gphoto2-port-config + +for compatibility reasons, but that will obviously break when you have +a /usr/lib64 vs. /usr/lib conflict. That problem is one the packager +will have to resolve - we consider this mechanism obsolete. + + +======================================================================== +End of file. +======================================================================== diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/RELEASE-HOWTO.md b/lib/hardware/sensors/gphoto/libgphoto2-master/RELEASE-HOWTO.md new file mode 100644 index 00000000..04ff9fdc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/RELEASE-HOWTO.md @@ -0,0 +1,137 @@ +# How to prepare a release + +## sync translations from translationproject + + In the toplevel directory (of which po/ is a subdirectory) + + rsync -Lrtvz translationproject.org::tp/latest/libgphoto2/ po + cd libgphoto2\_port + rsync -Lrtvz translationproject.org::tp/latest/libgphoto2\_port/ po + cd .. + + if gphoto2 is released too: + rsync -Lrtvz translationproject.org::tp/latest/gphoto2/ po + +## sync music-players.h from libmtp + + (We ship this to give additional device support for distributions + that might update libmtp less often.) + + Copy over, disable the GoPro entries. + +## test cameras + + Run: make check + + In the gphoto2 checkout I am running perl tests/testcamera.pl + for several cameras that might have been affected by the current release. + +## update NEWS + + git diff libgphoto2-2\_5\_21-release.. | less + + summarize changes + +## tag release + + bump version in configure.ac, NEWS, commit and push. + + make clean + make + sudo make install + +## build and sign release ŧarballs + + make distcheck + + this builds .gz and .bz2 tarballs currently. + + GPG detach sign + + gpg --detach-sign -a libgphoto2-2.5.22.tar.bz2 + gpg --detach-sign -a libgphoto2-2.5.22.tar.gz + + this will create .asc files alongside the tarballs. + + Similar when doing the gphoto2 release. + +## tag git + + git tag libgphoto2-2\_5\_22-release + git push --tags + +## create a README for sourceforge + + paste the NEWS blob from this release into README for uploading + +## SF upload + + Create a new folder below libgphoto2 with the release number in it (Add Folder) + + Inside that "Add File" of the two tarballs, the two .asc files and the README. + + After upload, select "Info" on the .tar.bz2 tarball, and "Select All" for the Default download. + This will make it point the "default download" link to this tarball. + + If you are uploading gphoto2, do the same ... but do not select it for the default download. + +## Github tagging + + https://github.com/gphoto/libgphoto2/releases + + "Draft a new release" + + Select the new release tag. Name is "2.5.22 release", + paste in the NEWS blob into the textfield. + +## Edit the website + +### index.php + + Use a entry similar to the current ones. Drop older ones occasionaly. + +### news/index.php + + Paste in the NEWS blob, htmlify with h2 - h3 and ul/li lists, same as the ones before + +### proj/libgphoto2/support.php + + Adjust the date (LANG=C date). + + Adjust the gphoto2 --version blob (LANG=C gphoto2 --version). Make sure you have the correct versions in there. + + Replace the table with fresh output of: + + /usr/lib64/libgphoto2/print-camera-list html + +### Upload via sftp + + see upload.sh ... html tree starts below htdocs/ on the server. + + Do not forget to "svn ci" the changes. + +### Verify website. + + Check the pages render OK and no HTML error was introduced. + +## Announce to mailing list + + Write a summary email to gphoto-user@lists.sourceforge.net, gphoto-devel@lists.sourceforge.net + +## Announce to freshcode.club + + https://freshcode.club/, look for libgphoto2 + + Fill out the "New release" form. It is pretty straight forward. As text use the NEWS blob again. + +## Announce to twitter / facebook / etc. + + e.g.: + + I have just released libgphoto2 2.5.22 ( http://gphoto.org/news/ ) + ... Fixed Canon EOS M and PowerShot SX capture, added Sony Alpha RX0 + and RX100M5A, added Canon EOS R, and some bugfixes. + +## Make git ready for further development + + Rev NEWS and configure.ac versions to 2.5.22.1 devel release. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/SECURITY.md b/lib/hardware/sensors/gphoto/libgphoto2-master/SECURITY.md new file mode 100644 index 00000000..66d512fe --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/SECURITY.md @@ -0,0 +1,68 @@ +# Security overview + +## General + +libgphoto2 is a software library to allow accessing USB devices (cameras, +media players), allowing file system operations (list, download, +upload, delete), and control operations (get and set settings, and +remote control). + +It consists of a core library, and drivers for both "port" protocols +like USB, serial, IP and devices (camera drivers). + +libgphoto2 only processes images to provide standard formats. For JPEG +images the libexif library is used for extraction of EXIF data. + +Callers of the library can be assumed trusted, also input coming into +the library via API calls is considered trusted. + +Data coming from port drivers (USB, serial, IP, etc) is considered untrusted. + +Historically the primary development goals was "make it work", without +security in mind. + +## Attack Surface + +The primary attack scenario is a kiosk style photo access computer, where people +can plug in USB devices in an unattended fashion. + +Attack impacts are achieving control over this computer, or blocking its use. + +## Bugs considered security issues + +(Mostly for CVE assigments rules.) + +In scope of a security attack are the autodetecting protocols support, +like USB. + +Also IP (TCP and UDP) based drivers are considered in scope, with +malicious target devices or man in the middle attacks. + +Current day camera drivers are in scope (e.g. all drivers not marked as "outdated"). + +Triggering memory corruption is considered in scope. +Triggering endless loops is considered in scope. (would block kiosk style operation) + +## Bugs not considered security issues + +Serial cameras are not in scope, as they cannot be autodetected and need +special configuration which makes other attack vectors likely. + +Outdated drivers... We have classified a number of older drivers as +"outdated", and do not recommend to build them by default anymore. + +Denial of service attacks of class "crash" or "resource consumption +(disk)" are not in scope. + +- Frontends should auto-recover (restart) after crashes. +- Resource consumption in terms of diskspace is not in scope, as the + library is meant to download large amounts of data (Gigabytes) in + regular operation. + +Information disclosure is not a relevant attack scenario. + +## Bugreports + +Bugreports can be filed as github issues. + +If you want to report an embargoed security bug report, reach out to marcus@jet.franken.de diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/TESTERS b/lib/hardware/sensors/gphoto/libgphoto2-master/TESTERS new file mode 100644 index 00000000..34c3d6fa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/TESTERS @@ -0,0 +1,63 @@ +This list of testers is intended for driver developers to +find people with the required types of cameras to test their drivers. +Therefore it is sorted by the camera type. + +USING THESE NAMES AND ADDRESSES FOR ANY OTHER PURPOSE THAN DEVELOPMENT +AND TESTING OF SOFTWARE FROM THE gphoto PROCJECT IS STRICTLY +PROHIBITED. (Just in case anybody gets stupid ideas.) + +If you create some changes to a special driver and have to test the +driver on a type of camera you do not have direct access to, you may +contact these nice folks. + +If you have a camera not yet on this list and want to help develop the +gphoto project, we ask you to join the testers. Just tell us at + to include you on this list. + +This will mean your name and e-mail will be distributed with every +source copy of gphoto2 and be published at http://gphoto.org/. + +It will also mean that you will test software that is UNTESTED AND +POSSIBLY DANGEROUS TO YOUR HARDWARE OR YOUR HEALTH. You will do this +on YOUR OWN RESPONSIBILITY. + +But it will also mean that you will be able to help develop the driver +and possibly be the first one to test the long-awaited working driver +:-) + +This said, we developers also continually test our software risking +thousands of dollars' worth of hardware and our lives. :-) + +======================================================================== + +Canon EOS D30 - David ROBERT +Canon EOS D30 - Marco Nierlich +Canon Digital Ixus V - Matthias Kramm +Canon IXUS 300 - Konrad Hofer +Canon PowerShot A10 - Jeremy Spykerman +Canon PowerShot A50 - Philippe Marzouk +Canon PowerShot S40 - Guillaume Laurent +Canon EOS 20D - Hubert Figuiere + +Epson PhotoPC 850z - Valentin Rusu +Epson PhotoPC 3000z - Gilles Grandou + +Jenoptik JD11 - Marcus Meissner +Jenoptik JD350v - Marcus Meissner + +KBGear JamCam v3 - Marcus Meissner +KBGear JamCam v3 - Rob Hillis + +Kodak DC240 - Hubert Figuiere +Kodak DC3200 - Kristian Rink + +Mustek MDC800 - Marcus Meissner + +Olympus C-3030Z - Colin Marquardt + +Praktica QD800 - Marcus Meissner + +SiPix Web2 - Marcus Meissner +SiPix Stylecam Blink - Marcus Meissner +STV680/ Micromaxx Pencam (USB) - Marcus Meissner diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/Makefile.am new file mode 100644 index 00000000..c6a6e257 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/Makefile.am @@ -0,0 +1,163 @@ +######################################################################## +# Usage instructions +######################################################################## +# If you only want to build a single camlib (say agfa_cl20), run +# gmake -C camlibs agfa_cl20.la +# or +# ( cd camlibs && make agfa_cl20.la ) +# +# If you only want to install a single camlib or two, run +# make BUILD_THESE_CAMLIBS="canon.la agfa_cl20.la" install +# in the camlibs/ subdir or in the libgphoto2 top-level directory. +######################################################################## + + +######################################################################## +# The only SUBDIRS here are "." (to run all-local checking the +# definition of the camlibs) and the special ones for building docs +# and stuff. +# +# Building the camlibs itself is defined in the Makefile-files +# included below. +SUBDIRS = . + + +######################################################################## +# Define the common variables added to in the included Makefile-files +CLEANFILES = +EXTRA_DIST = camlib.sym +camlibdoc_DATA = +localization_DATA = +localizationdir = +noinst_DATA = +noinst_LTLIBRARIES = +EXTRA_LTLIBRARIES = + + +######################################################################## +# All camlibs are defined as EXTRA_LTLIBRARIES. This requires that +# all camlibs have -rpath set explicitly in foobar_la_LDFLAGS. +# You're probably best off by using the camlib_* variables defined +# below. +camlib_LTLIBRARIES = $(INSTALL_THESE_CAMLIBS) + + +######################################################################## +# Define the compile/link/etc. flags common to all camlibs in one place, +# i.e. here. + +camlib_dependencies = $(top_srcdir)/camlibs/camlib.sym +camlib_ldflags = -module -no-undefined -avoid-version -export-dynamic \ + -export-symbols '$(top_srcdir)/camlibs/camlib.sym' \ + -rpath '$(camlibdir)' +camlib_libadd = $(top_builddir)/libgphoto2/libgphoto2.la $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la + +AM_CPPFLAGS += -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/libgphoto2_port -I$(top_srcdir)/libgphoto2 -I$(top_builddir)/libgphoto2 + +######################################################################## +# You can generate this Makefile-files include list by running +# find . -name Makefile-files -exec echo include {} \; | sort | sed 's| ./| |g' +include adc65/Makefile-files +include agfa-cl20/Makefile-files +include aox/Makefile-files +include ax203/Makefile-files +include barbie/Makefile-files +include canon/Makefile-files +include casio/Makefile-files +include clicksmart310/Makefile-files +include digigr8/Makefile-files +include digita/Makefile-files +include dimera/Makefile-files +include directory/Makefile-files +include enigma13/Makefile-files +include fuji/Makefile-files +include gsmart300/Makefile-files +include hp215/Makefile-files +include iclick/Makefile-files +include jamcam/Makefile-files +include jd11/Makefile-files +include jl2005a/Makefile-files +include jl2005c/Makefile-files +include kodak/dc120/Makefile-files +include kodak/dc210/Makefile-files +include kodak/dc240/Makefile-files +include kodak/dc3200/Makefile-files +include kodak/ez200/Makefile-files +include kodak/Makefile-files +include konica/Makefile-files +include largan/lmini/Makefile-files +include lg_gsm/Makefile-files +include lumix/Makefile-files +include mars/Makefile-files +include minolta/dimagev/Makefile-files +include minolta/Makefile-files +include mustek/Makefile-files +include panasonic/coolshot/Makefile-files +include panasonic/l859/Makefile-files +include panasonic/Makefile-files +include pccam300/Makefile-files +include pccam600/Makefile-files +include pentax/Makefile-files +include polaroid/Makefile-files +include ptp2/Makefile-files +include ricoh/Makefile-files +include samsung/Makefile-files +include sierra/Makefile-files +include sipix/Makefile-files +include smal/Makefile-files +include sonix/Makefile-files +include sonydscf1/Makefile-files +include sonydscf55/Makefile-files +include soundvision/Makefile-files +include spca50x/Makefile-files +include sq905/Makefile-files +include st2205/Makefile-files +include stv0674/Makefile-files +include stv0680/Makefile-files +include sx330z/Makefile-files +include template/Makefile-files +include topfield/Makefile-files +include toshiba/pdrm11/Makefile-files +include tp6801/Makefile-files +# End of list of Makefile-files + + +######################################################################## +# Print list of GP_CAMLIB() definitions suitable for adding to +# configure.ac +print-camlibs: Makefile + @for x in $(EXTRA_LTLIBRARIES); do \ + y="$$(basename "$$x" ".la")"; \ + echo "GP_CAMLIB([$$y])dnl"; \ + done + + +######################################################################## +# Make sure that the list of camlibs defined in configure.ac using +# GP_CAMLIB(...) and the list of camlibs defined in */Makefile-files +# match. +CLEANFILES += all-src-camlibs all-def-camlibs +all-local: Makefile + @:; \ + (for x in $(EXTRA_LTLIBRARIES) template.la; do echo "$$(basename "$$x" ".la")"; done) \ + | sort > all-src-camlibs; \ + (for x in $(ALL_DEFINED_CAMLIBS); do echo "$$x"; done) \ + | sort > all-def-camlibs; \ + if cmp all-def-camlibs all-src-camlibs; then :; else \ + diff -u all-def-camlibs all-src-camlibs; \ + echo "List of camlibs in configure.ac is out of date."; \ + echo "Have a developer update it using \"make -C camlibs print-camlibs\"."; \ + exit 1; \ + fi + + +######################################################################## +# Shortcut for installation of a subset of camlibs +# Usage: make CAMLIBS="canon.la ptp2.la" install-camlibs + +install-camlibs: + $(MAKE) $(AM_MAKEFLAGS) BUILD_THESE_CAMLIBS="$(CAMLIBS)" install-camlibLTLIBRARIES + + +######################################################################## +# End of camlibs/Makefile.am diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/Changelog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/Changelog new file mode 100644 index 00000000..65dfdef8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/Changelog @@ -0,0 +1,21 @@ +2007-02-04 Marcus Meissner + + * library.c, adc65.c, adc65.h: Merged library.c into adc65.c. + +2005-03-11 Marcus Meissner + + * *: imported to libgphoto2 CVS, cleaned up. + +04/19/2001 - Benjamin Moos + * Forgot to document any individual changes for 11 days :) + * Now outputs RGB ppm's, good enough for guv'mnt work + +04/08/2001 - Benjamin Moos + * Finished changing all "barbie" references to "adc65" + * Rewrote all the functions to use what I know about the adc65 + interface + * Returns images as raw bytes + +04/07/2001 - Benjamin Moos + * Copied the Barbie directory and changed all the files to say adc65 + instead of barbie :) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/Makefile-files new file mode 100644 index 00000000..41973d7d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_DIST += adc65/README.adc65 adc65/TODO adc65/Changelog +camlibdoc_DATA += adc65/README.adc65 + +EXTRA_LTLIBRARIES += adc65.la + +adc65_la_SOURCES = adc65/adc65.c +adc65_la_LDFLAGS = $(camlib_ldflags) +adc65_la_DEPENDENCIES = $(camlib_dependencies) +adc65_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/README.adc65 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/README.adc65 new file mode 100644 index 00000000..b3ac0e39 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/README.adc65 @@ -0,0 +1,71 @@ +/* ADC-65(s) camera driver + * Released under the GPL version 2 + * + * Copyright 2001 + * Benjamin Moos + * + * http://www.psnw.com/~smokeserpent/code/ + */ + + This driver is for the serial version of the Achiever Digital Camera ADC-65. +This camera is sold under various brand names, such as the "Easy Shot digit". +These cameras take 15 photos at 256x256x24. They have an 8Mbit memory. They are +very cheap, less than $30 at WalMart. + + The ADC-65 has a very simple syntax. The driver only sends one-byte +commands. + +Commands +-------- + 0x30 : Ping the camera +0x00 - 0x15 : Get a picture + +Responses +--------- +0x15 0x30 0x00 : Ping response +0x15 [n] [data]: Picture response. + n = number of photos in memory + 1 + data = 64k of data (format not determined yet) + + The windows software is extremely basic, and only uses these 17 command +bytes. If any other commands are available, they will have to be found through +experimentation. + + Note that there is a "picture zero" which always exists whether or not any +actual photos have been snapped. This seems most likely to be calibration data +for the CMOS sensor. I haven't incorporated this data in my driver yet for two +reasons; 1) I haven't decided on a good way to retain this data between picture +downloads, and downloading it for each picture is too wasteful 2) We're talking +about really minor adjustments, compared to the resolution loss we already get +from converting 256x256x8 R1G2B1 data to 256x256x24 RGB. + + I have included the beginnings of some colorspace stuff in the colorspace.h +and colorspace.c files. Right now all I'm using is the colorspaceRGB data +structure, but will work on using this do some image enhancement in the future. + + The hardest part of this project was figuring out the image format and I +was often led astray by typos and small logic errors while reprogramming that +portion of the code again and again (and again) due to the number of possible +pertubations. Two packages were very helpful, netpbm and the Gimp. By using +rawtopgm (from netpbm) I was able to visually analyze the data. Much better +than trying to understand hexdumps :) I am inspired to write some kind of tool +to help with analyzing this sort of data, perhaps interactively testing +different possible encoding schemes. + + I have based the skeleton of this driver on the "barbie" camera driver. I +have also grabbed a lot of ideas from the dimera driver as well. So I am +indebted to: + + The Barbie Team + --------------- + Scott Fritzinger + Andreas Meyer + Pete Zaitcev + Jeff Laing + + The Dimera3500 Team + ------------------- + Brian Beattie http://www.beattie-home.net + Chuck Homic + Dan Fandrich + Gregg Berg diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/TODO b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/TODO new file mode 100644 index 00000000..1da23b1f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/TODO @@ -0,0 +1,6 @@ +04/19/2001 - Benjamin Moos + * Not much, it works finally! + * The images are less than perfect, but I like them better than the + overprocessed ones that the Windows driver puts out. I need to + analyze the response curves for each color of CMOS cell for one, and + we could definitely use some judicious smoothing. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/adc65.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/adc65.c new file mode 100644 index 00000000..ae159535 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/adc65/adc65.c @@ -0,0 +1,274 @@ +/* ADC-65(s) camera driver + * Released under the GPL version 2 + * + * Copyright 2001 + * Benjamin Moos + * + * http://www.psnw.com/~smokeserpent/code/ + */ +#include +#include +#include +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define _(String) (String) +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "adc65" + +#define ACK 0x15 + +#define ADC65_DATA_FIRMWARE 0 +#define ADC65_DATA_THUMBNAIL 1 +#define ADC65_DATA_PICTURE 2 + +/* colorspace structure */ +typedef struct { + unsigned char R; + unsigned char G; + unsigned char B; +} colorspaceRGB; + +static int +adc65_exchange (Camera *camera, const unsigned char *cmd, int cmd_size, unsigned char *resp, int resp_size) { + int ret; + + ret = gp_port_write (camera->port, (char*)cmd, cmd_size); + if (ret < 0) + return ret; + return gp_port_read (camera->port, (char*)resp, resp_size); +} + +static int +adc65_ping(Camera *camera) { + unsigned char cmd, resp[3]; + int ret; + + GP_DEBUG("Pinging the camera."); + + cmd = 0x30; + ret = adc65_exchange (camera, &cmd, 1, resp, 3); + if ( ret < GP_OK) + return ret; + + if (resp[1] != 0x30) + return GP_ERROR; + + GP_DEBUG("Ping answered!"); + return GP_OK; +} + +static int +adc65_file_count (Camera *camera) { + unsigned char cmd, resp[65538]; + int ret; + + GP_DEBUG("Getting the number of pictures."); + cmd = 0x00; + ret = adc65_exchange(camera, &cmd, 1, resp, 65538); + if (ret < 2) /* must have at least a 2 byte reply */ + return ret; + return resp[1] - 1; +} + +static char * +adc65_read_data (Camera *camera, unsigned char *cmd, int cmd_size, int data_type, int *size) { + unsigned char resp[2], temp; + int x, y, x1, y1, z; + unsigned char ul, ur, bl, br, ret; + colorspaceRGB rgb; + unsigned char *us = NULL; + char *s = NULL; + char *ppmhead = "P6\n# test.ppm\n256 256\n255\n"; + + switch (data_type) { + case ADC65_DATA_PICTURE: + GP_DEBUG("Getting Picture"); + + /* get the picture */ + ret = adc65_exchange (camera, cmd, cmd_size, resp, 2); + if (ret < 2) + return NULL; + + us = malloc (65536); + if (!us) + return NULL; + if (gp_port_read (camera->port, (char*)us, 65536) < 0) { + free(us); + return NULL; + } + + /* Turn right-side-up and invert*/ + for (x=0; x<32768; x++) { + temp = us[x]; + us[x] = 255 - us[65535-x]; + us[65535-x] = 255 - temp; + } + s = (char *)malloc (sizeof(char)*65536*3+strlen(ppmhead)); + /* Camera uses this color array (upside-down): + * bgbgb + * grgrg + * bgbgb + */ + strcpy(s, ppmhead); + z = strlen(s); + + for (y=0; y<256; y++) { + if (y == 255) { + y1 = y - 1; + }else{ + y1 = y + 1; + } + for (x=0; x<256; x++) { + if (x == 255) { + x1 = x - 1; + }else{ + x1 = x + 1; + } + ul = (unsigned char)us[y * 256 + x]; + bl = (unsigned char)us[y1 * 256 + x]; + ur = (unsigned char)us[y * 256 + x1]; + br = (unsigned char)us[y1 * 256 + x1]; + + switch ( ((y & 1) << 1) | (x & 1) ) { + case 0: /* even row, even col, B */ + rgb.R = br; + rgb.G = (ur + bl) / 2; + rgb.B = ul; + break; + case 1: /* even row, odd col, G */ + rgb.R = bl; + rgb.G = ul; + rgb.B = ur; + break; + case 2: /* odd row, even col, G */ + rgb.R = ur; + rgb.G = ul; + rgb.B = bl; + break; + case 3: /* odd row, odd col, R */ + default: + rgb.R = ul; + rgb.G = (ur + bl) / 2; + rgb.B = br; + break; + } + s[z++] = rgb.R; + s[z++] = rgb.G; + s[z++] = rgb.B; + } + } + *size = z; + GP_DEBUG("size=%i", *size); + break; + default: + break; + } + free(us); + return(s); +} + +static char * +adc65_read_picture(Camera *camera, int picture_number, int *size) { + unsigned char cmd = picture_number + 1; + + return (adc65_read_data(camera, &cmd, 1, ADC65_DATA_PICTURE, size)); +} + + +int camera_id (CameraText *id) { + strcpy(id->text, "adc65"); + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) { + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + /* Fill in the appropriate flags/data */ + strcpy(a.model, "Achiever Digital:Adc65"); + a.port = GP_PORT_SERIAL; + a.speed[0] = 115200; + a.speed[1] = 230400; + a.speed[2] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + return gp_abilities_list_append(list, a); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + return gp_list_populate (list, "adc65%02i.ppm", adc65_file_count((Camera*)data)); +} + +static int +get_file_func ( CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + int size, num; + char *data; + + gp_file_set_mime_type (file, GP_MIME_PPM); + num = gp_filesystem_number (fs, folder, filename, context); + if (num < 0) + return num; + data = adc65_read_picture (camera, num, &size); + if (!data) + return GP_ERROR; + return gp_file_append (file,data,size); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) { + strcpy (about->text, _("Adc65\nBenjamin Moos ")); + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func +}; + +int +camera_init(Camera *camera, GPContext *context) { + int ret; + gp_port_settings settings; + + camera->functions->about = camera_about; + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + ret = gp_port_set_timeout (camera->port, 5000); + if (ret < GP_OK) + return ret; + + ret = gp_port_get_settings (camera->port, &settings); + if (ret < GP_OK) + return ret; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits= 1; + ret = gp_port_set_settings (camera->port, settings); + if (ret < GP_OK) + return ret; + + return adc65_ping(camera); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/ChangeLog new file mode 100644 index 00000000..3dfac8b6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/ChangeLog @@ -0,0 +1,22 @@ +2004-10-28 Hubert Figuiere + + * agfa_cl20.c (get_file_func): Fix build for gcc 2.95 + (bug #1055868) + +2004-03-16 Dennis Noordsij + - fix compactflash detection + - fix number of picturs detection + - get rid of the heavy stack usage and use the heap instead + - fix USB download size + +2003-05-12 Marcus Meissner + + * agfa-cl20.c: Made it compile without warnings. + +2003-05-12 Marcus Meissner + + * Makefile.am, README, STATUS, *.txt, agfa-cl20.c: + Imported from http://cl20.poeml.de + + Written by Philipp Poeml (poml_at_poeml.de), Dennis Noordsij + (dennis.noordsij_at_wiral.com) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/Makefile-files new file mode 100644 index 00000000..2978ddbc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/Makefile-files @@ -0,0 +1,17 @@ +# -*- Makefile -*- + +EXTRA_DIST += \ + agfa-cl20/README.agfa-cl20 \ + agfa-cl20/STATUS agfa-cl20/ChangeLog \ + agfa-cl20/protocol.txt agfa-cl20/protocol2.txt \ + agfa-cl20/commands.txt \ + agfa-cl20/pic-header.txt agfa-cl20/RANDOM + +camlibdoc_DATA += agfa-cl20/README.agfa-cl20 + +EXTRA_LTLIBRARIES += agfa_cl20.la + +agfa_cl20_la_SOURCES = agfa-cl20/agfa_cl20.c +agfa_cl20_la_LDFLAGS = $(camlib_ldflags) +agfa_cl20_la_DEPENDENCIES = $(camlib_dependencies) +agfa_cl20_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/RANDOM b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/RANDOM new file mode 100644 index 00000000..3e35a708 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/RANDOM @@ -0,0 +1,58 @@ +Just some random ramblings :-) + + +------------------- + +Why does the damn windows software poll the camera so often? +Answer: Because of the stupid "print" button on the camera! +It does not use an interrupt or anything, but you have to send: + +usb_control_msg( cl20_dev, 0xC1, 0x00, 0x0000, 0x8985, data, 1, 5000); + which is: C1 00 00 00 85 89 00 01 + +If *data now contains "0", nothing happend. +If *data is now "8", the user is PRESSING the button. + +Notice I say "PRESSING" :-) it has no memory, if you miss the moment the +user presses the button, you do not see it! + +------------------- + +If you have a low quality picture on the camera, downloading the +thumbnail is the same transaction as downloading the whole picture. +Even worse, it's only 16k! So it's quite low resolution :-) + +------------------- + +If you are using the compactflash card, data download is a proper +JPEG file, ready to use. + +If you are NOT using the compactflash card, data download is a so +far meaningless heap of garbage !! You can get the picture, no +problem, but you have to know how to process it for it to be useful! + +------------------- + +There are only a few different USB commands used, with slightly different +parameters. I have good hopes for this camera :-) + +------------------- + +For the first time (for me) USB snoopy actually saw the USB transactions +used when using the CL20 as a webcam (in streaming mode). + +------------------- + +Camera has 1 configuration, which is set as 1 (so do not start counting at 0!) +Camera has 2 interfaces, "dmesg" should show you all info you could ever need +, and it shows interface 1 (which is 0) only has Iso endpoints, whereas +interface 2 (which is 1) has a bulk endpoint. Iso's are used for streaming +video, and bulk is used for downloading picture data. It should be possible +(the latest Agfa windows driver claims this) to use interface 1 and 2 at +the same time, i.e. downloading pictures while also streaming video. +#TODO verify this, it was late when I read it, could be wrong :-) + +------------------- + +When the camera erases all pictures, my guess is it is actually just sending +the command to delete the last picture until there are no pictures left :) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/README.agfa-cl20 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/README.agfa-cl20 new file mode 100644 index 00000000..221d5268 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/README.agfa-cl20 @@ -0,0 +1,14 @@ +How to install this camlib: + +Copy the agfa-cl20 directory to ...../libgphoto2/camlibs + +Then, edit the file configure.in (in the libgphoto2 directory) on lines: +148, and +160 +to include "agfa-cl20" in the list of driver names. + +THEN you can run "sh autoconf.sh" +./configure --prefix=/usr --with-drivers=agfa-cl20 +make +make install + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/STATUS b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/STATUS new file mode 100644 index 00000000..44734d83 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/STATUS @@ -0,0 +1,9 @@ +Thumbnail and full image support for all resolutions. + +Deleting files not yet supported. + +Need to experiment more what happens with huge number of pictures. +Send me a corrupted image if you find any! +Use gphoto2 to extract the raw data also + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/agfa_cl20.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/agfa_cl20.c new file mode 100644 index 00000000..c0b40e6e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/agfa_cl20.c @@ -0,0 +1,693 @@ +/* agfa-cl20.c + * + * Copyright (C) 2002-2003 by Philipp Poeml and Dennis Noordsij, + * http://cl20.poeml.de/ + * + * 16-Mar-2004 - Dennis - Modified as follows: + * - fix compactflash detection + * - fix number of picturs detection + * - get rid of the heavy stack usage and use the heap instead + * - fix USB download size + * + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include +#include +#include +#include +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE + +static const struct { + char *model; + int usb_vendor; + int usb_product; +} models[] = { + { "Agfa ePhoto CL20", 0x06bd, 0x0404 }, + { NULL, 0, 0 } +}; + + + + +/* Convert from 123 to 0x123 (dec:123 to hex:123 + * Limited to 4 digits, i.e. max 9999 to 0x9999 + */ + +static unsigned short to_camera(unsigned short a) +{ + unsigned short ret = 0; + + ret = ret + (a / 1000) * 0x1000; + a = a % 1000; + ret = ret + ((a / 100) * 0x100); + a = a % 100; + ret = ret + ((a / 10) * 0x10); + a = a % 10; + ret = ret + a; + + return ret; +} + + +/* Convert from 0x123 to 123 (hex:123 to dec:123 + * Limited to 4 digits, i.e. max 0x9999 to 9999 + */ + +static unsigned short from_camera(unsigned short a) +{ + unsigned short ret = 0; + + ret = ret + ((a / 0x1000) * 1000); + a = a % 0x1000; + ret = ret + ((a / 0x100) * 100); + a = a % 0x100; + ret = ret + ((a / 0x10) * 10); + a = a % 0x10; + ret = ret + a; + + return ret; +} + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "agfa_cl20"); + + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + char *ptr; + int x = 0; + + /* GP_DEBUG(" * camera_abilities()"); */ + + ptr = models[x].model; + while (ptr) { + memset(&a, 0, sizeof(a)); + strcpy(a.model, ptr); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + /* a.speed[0] = 0; */ + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE | GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + + a.usb_vendor = models[x].usb_vendor; + a.usb_product = models[x].usb_product; + + gp_abilities_list_append(list, a); + + ptr = models[++x].model; + } + + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG(" * camera_exit()"); + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *privdata, + GPContext *context) +{ + Camera *camera = privdata; + int n = -1; + int size = -1; + unsigned char hb, lb; + unsigned long j; + unsigned int app1len = -1; + unsigned char resolution; + unsigned char indata[ 0x100 ]; + + unsigned char * result; + unsigned char * ptr; + + /* unsigned char last, next; */ + + GP_DEBUG(" * get_file_func()"); + + /* + * Get the file from the camera. Use gp_file_set_mime_type, + * gp_file_set_data_and_size, etc. + */ + + n = gp_filesystem_number(camera->fs, folder, filename, context) + 1; + + switch(type) { + case GP_FILE_TYPE_PREVIEW: + GP_DEBUG(" * REQUEST FOR A PREVIEW"); + + gp_port_usb_msg_write(camera->port,0x0A,to_camera(n),0x0008,NULL,0x0); + gp_port_read(camera->port, (char*)indata, 0x100); + + size = indata[ 5 ] + (indata[ 6 ] * 0xFF) + 3; + + resolution = (unsigned char)indata[ 17 ]; + if (resolution == 1) { + char dummy; + + result = calloc(size, 0x100); + ptr = result; + + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x0521,&dummy,0x0001); + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x8000,&dummy,0x0001); + + gp_port_usb_msg_write(camera->port,0x0A,to_camera(n),0x000A,NULL,0x0); + + for (j = 0; j < size; j++) { + gp_port_read(camera->port, (char*)ptr, 0x100); + ptr += 0x100; + } + + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x0521,&dummy,0x0001); + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x8000,&dummy,0x0001); + + size = size * 0x100; + + lb = (unsigned char)*(result + 0x05); + hb = (unsigned char)*(result + 0x04); + app1len = (unsigned int)(hb * 256) + (unsigned int)(lb); + + result[3] = 0xe0; + result[4] = 0x00; + result[5] = 0x10; + result[6] = 'J'; + result[7] = 'F'; + result[8] = 'I'; + result[9] = 'F'; + result[10] = 0x00; + result[11] = 0x01; + result[12] = 0x01; + result[13] = 0x00; + result[14] = 0x00; + result[15] = 0x01; + result[16] = 0x00; + result[17] = 0x01; + result[18] = 0x00; + result[19] = 0x00; + + memmove(&result[20], + &result[app1len + 4], + (unsigned int)(size - app1len - 2)); + + size = size - app1len + 24; + + gp_file_set_mime_type(file, GP_MIME_JPEG); + gp_file_append(file, (char*)result, size); + + free(result); + + break; + + } else { + unsigned char * data; + char dummy; + + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x0521,&dummy,0x0001); + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x8000,&dummy,0x0001); + + data = (unsigned char *)calloc(size, 0x100); + ptr = data; + + gp_port_usb_msg_write(camera->port,0x0A,to_camera(n),0x000B,NULL,0x0); + if (size < 100) { + for (j = 0; j < size; j++) { + gp_port_read(camera->port, (char*)ptr, 0x100); + ptr += 0x100; + } + } else { + for (j = 0; j < 100; j++) { + gp_port_read(camera->port, (char*)ptr, 0x100); + ptr += 0x100; + } + } + + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x0521,&dummy,0x0001); + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x8000,&dummy,0x0001); + + size = size * 0x100; + + { + unsigned int thumb_start = 9 + 0x1a0; + unsigned char temp1, temp2, temp3, temp4; + unsigned char Y, Cb, Cr; + signed int R, G, B; + unsigned int pixel_count = 0; + unsigned int offset = 0; + + result = calloc(1, 128 * 96 * 4 * 4 + 100 ); + + memcpy(result, "P3\n128 96\n255\n", 14); + offset = offset + 14; + + temp1 = data[ thumb_start + pixel_count ]; + + while (pixel_count < (128*96*2)) { + + temp1 = data[ thumb_start + pixel_count ]; + temp2 = data[ thumb_start + pixel_count + 1 ]; + temp3 = data[ thumb_start + pixel_count + 2 ]; + temp4 = data[ thumb_start + pixel_count + 3 ]; + pixel_count = pixel_count + 4; + + Y = temp1 + 128; + Cb = temp3 + 128; + Cr = temp4 + 128; + + R = Y + (1.402 * (Cr-128)); + G = Y - (0.34414 * (Cb-128)) - (0.71414 * (Cr-128)); + B = Y + (1.772 * (Cb-128)); + if (R > 255) R = 255; + if (R < 0) R = 0; + if (G > 255) G = 255; + if (G < 0) G = 0; + if (B > 255) B = 255; + if (B < 0) B = 0; + + sprintf((char*)(result + offset), "%03d %03d %03d\n", R, G, B); + offset = offset + 4 + 4 + 4; + + Y = temp2 + 128; + + R = Y + (1.402 * (Cr-128)); + G = Y - (0.34414 * (Cb-128)) - (0.71414 * (Cr-128)); + B = Y + (1.772 * (Cb-128)); + if (R > 255) R = 255; + if (R < 0) R = 0; + if (G > 255) G = 255; + if (G < 0) G = 0; + if (B > 255) B = 255; + if (B < 0) B = 0; + + sprintf((char*)(result + offset), "%03d %03d %03d\n", R,G,B); + offset = offset + 4 + 4 + 4; + } + + size = offset; + + gp_file_set_mime_type(file, GP_MIME_PPM); + gp_file_append(file, (char*)result, size); + + free( result ); + free( data ); + } + + break; + } + + case GP_FILE_TYPE_RAW: { + char dummy; + GP_DEBUG(" * REQUEST FOR RAW IMAGE"); + + gp_port_usb_msg_write(camera->port,0x0A,to_camera(n),0x0008,NULL,0x0); + gp_port_read(camera->port, (char*)indata, 0x100); + + size = indata[ 5 ] + (indata[ 6 ] * 0xFF) + 3; + result = calloc(size, 0x100); + ptr = result; + + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x0521,&dummy,0x0001); + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x8000,&dummy,0x0001); + + gp_port_usb_msg_write(camera->port,0x0A,to_camera(n),0x000A,NULL,0x0); + for (j = 0; j < size; j++) { + gp_port_read(camera->port, (char*)ptr, 0x100); + ptr += 100; + } + GP_DEBUG(" *DONE READING IMAGE!"); + + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x0521,&dummy,0x0001); + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x8000,&dummy,0x0001); + + size = size * 0x100; + + gp_file_set_mime_type(file, GP_MIME_RAW); + gp_file_append(file, (char*)result, size); + + free( result ); + + break; + } + case GP_FILE_TYPE_NORMAL: { + char dummy; + GP_DEBUG(" * REQUEST FOR NORMAL IMAGE"); + + gp_port_usb_msg_write(camera->port,0x0A,to_camera(n),0x0008,NULL,0x0); + gp_port_read(camera->port, (char*)indata, 0x100); + + size = indata[ 5 ] + (indata[ 6 ] * 0xFF) + 3; + + result = calloc(size, 0x100); + ptr = result; + + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x0521,&dummy,0x0001); + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x8000,&dummy,0x0001); + + gp_port_usb_msg_write(camera->port,0x0A,to_camera(n),0x000A,NULL,0x0); + + for (j = 0; j < size; j++) { + gp_port_read(camera->port, (char*)ptr, 0x100); + ptr += 0x100; + } + + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x0521,&dummy,0x0001); + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x8000,&dummy,0x0001); + + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x0521,&dummy,0x0001); + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x8000,&dummy,0x0001); + size = size * 0x100; + + lb = *(result + 0x05); + hb = *(result + 0x04); + app1len = (unsigned int)(hb * 256) + (unsigned int)(lb); + + result[3] = 0xe0; + result[4] = 0x00; + result[5] = 0x10; + result[6] = 'J'; + result[7] = 'F'; + result[8] = 'I'; + result[9] = 'F'; + result[10] = 0x00; + result[11] = 0x01; + result[12] = 0x01; + result[13] = 0x00; + result[14] = 0x00; + result[15] = 0x01; + result[16] = 0x00; + result[17] = 0x01; + result[18] = 0x00; + result[19] = 0x00; + + memmove(&result[20], + &result[app1len + 4], + (unsigned int)(size - app1len - 2)); + + size = size - app1len + 24; + + gp_file_set_mime_type(file, GP_MIME_JPEG); + gp_file_append(file, (char*)result, size); + + free(result); + + break; + } + default: + GP_DEBUG(" * NOT SUPPORTED"); + return GP_ERROR_NOT_SUPPORTED; + } + + + return (GP_OK); +} + +#if 0 +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + + GP_DEBUG(" * delete_file_func()"); + + /* Delete the file from the camera. */ + + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + + GP_DEBUG(" * delete_all_func()"); + + /* + * Delete all files in the given folder. If your camera doesn't have + * such a functionality, just don't implement this function. + */ + + return (GP_OK); +} + +static int +camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + /* + * Capture a preview and return the data in the given file (again, + * use gp_file_set_data_and_size, gp_file_set_mime_type, etc.). + * libgphoto2 assumes that previews are NOT stored on the camera's + * disk. If your camera does, please delete it from the camera. + */ + + return (GP_OK); +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + /* + * Capture an image and tell libgphoto2 where to find it by filling + * out the path. + */ + + return (GP_OK); +} +#endif + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + /* + * Fill out the summary with some information about the current + * state of the camera (like pictures taken, etc.). + */ + + unsigned char indata[0x100]; + unsigned short count = 0; + int has_compact_flash = 0; + + gp_port_usb_msg_write(camera->port,0x02, 0x0000, 0x0007, NULL, 0x0000 ); + gp_port_usb_msg_write(camera->port,0x0A, 0x0000, 0x0000, NULL, 0x0000 ); + gp_port_usb_msg_write(camera->port,0x02, 0x0000, 0x0007, NULL, 0x0000 ); + gp_port_usb_msg_write(camera->port,0x0A, 0x0000, 0x0001, NULL, 0x0000 ); + gp_port_read( camera->port, (char*)indata, 0x100 ); + + count = from_camera( indata[22] + (indata[23]*0x100) ); + if (count > 0) { + count--; + has_compact_flash = 1; + } else { + has_compact_flash = 0; + } + + if (has_compact_flash == 0) { + sprintf( summary->text, _("Camera appears to not be using CompactFlash storage\n" + "Unfortunately we do not support that at the moment :-(\n")); + } else { + sprintf( summary->text, _("Camera has taken %d pictures, and is using CompactFlash storage.\n"), count); + } + return GP_OK; +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("agfa_cl20\n" + "The Agfa CL20 Linux Driver People!\n" + " Email us at cl20@poeml.de \n" + " Visit us at http://cl20.poeml.de ")); + + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + int n; + unsigned char resolution; + char sbr; + unsigned char indata[ 0x100 ]; + + GP_DEBUG(" * get_info_func()"); + + /* Get the file info here and write it into */ + + n = gp_filesystem_number( camera->fs, folder, filename, context) + 1; + + info->file.fields = GP_FILE_INFO_TYPE; + strcpy( info->file.type, GP_MIME_JPEG ); + + gp_port_usb_msg_write(camera->port,0x0A, to_camera( n ) ,0x0008,NULL,0x0); + gp_port_read(camera->port, (char*)indata, 0x100); + + resolution = indata[ 17 ]; + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x0521,&sbr,1); + gp_port_usb_msg_read(camera->port,0x00,0x0000,0x8000,&sbr,1); + + if (resolution == 1) { + info->file.width = 512; + info->file.height = 384; + info->preview.fields = GP_FILE_INFO_TYPE; + strcpy( info->preview.type, GP_MIME_JPEG); + info->preview.width = 512; + info->preview.height = 384; + } else if (resolution == 3) { + info->file.width = 1024; + info->file.height = 768; + info->preview.fields = GP_FILE_INFO_TYPE; + strcpy( info->preview.type, GP_MIME_PPM); + info->preview.width = 128; + info->preview.height = 96; + } else if (resolution == 5) { + + /* In case you are wondering why this resolution is also 1024x768, it is + * because that really IS the resolution. If you were using the official + * (windows) software, it would be automagically scaled to appear as if + * you took a higher resolution image. + * However, high resolution pictures are taken with a lower compression + * ratio, which is why the high resolution pictures are roughly twice the + * size of the medium resolution ones, despite also being 1024x768 + * Nevertheless, this is a 0.80 Megapixel camera, no more !!! No matter + * what the marketing says! + */ + + info->preview.fields = GP_FILE_INFO_TYPE; + strcpy( info->preview.type, GP_MIME_PPM); + info->preview.width = 128; + info->preview.height = 96; + info->file.width = 1024; + info->file.height = 768; + } else { + printf("Invalid resolution found, this should never happen.\n" + "Please try resetting the camera, then try again.\n"); + return GP_ERROR; + } + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera * camera = data; + unsigned char indata[ 0x100 ]; + unsigned short count = 0; + + gp_port_usb_msg_write(camera->port,0x02, 0x0000, 0x0007, NULL, 0x0000 ); + gp_port_usb_msg_write(camera->port,0x0A, 0x0000, 0x0000, NULL, 0x0000 ); + gp_port_usb_msg_write(camera->port,0x02, 0x0000, 0x0007, NULL, 0x0000 ); + gp_port_usb_msg_write(camera->port,0x0A, 0x0000, 0x0001, NULL, 0x0000 ); + gp_port_read( camera->port, (char*)indata, 0x100 ); + + count = from_camera( indata[22] + (indata[23]*0x100) ); + if (count > 0) + count--; + return gp_list_populate( list, "pic_%04i.jpg", count); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + char single_byte_return = 'X'; + + GP_DEBUG(" * camera_init()"); + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + /* Now, tell the filesystem where to get lists, files and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + /* + * The port is already provided with camera->port (and + * already open). You just have to use functions like + * gp_port_timeout_set, gp_port_settings_get, gp_port_settings_set. + */ + + gp_port_get_settings( camera->port, &settings ); + switch (camera->port->type) { + case GP_PORT_SERIAL: + return ( GP_ERROR ); + case GP_PORT_USB: + settings.usb.config = 1; + settings.usb.interface = 1; + settings.usb.inep = 2; + break; + default: + return ( GP_ERROR ); + } + + gp_port_set_settings(camera->port, settings ); + + /* Camera should return either 0x00 or 0x08, depending on + * wether the PRINT button is depressed. Either way, it + * should NOT stay 'X' + */ + + gp_port_usb_msg_read( camera->port, + 0x00, + 0x0000, + 0x8985, + &single_byte_return, 1 ); + + if ((single_byte_return == 0) || (single_byte_return == 8)) + return (GP_OK); + else + return (GP_ERROR_MODEL_NOT_FOUND); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/commands.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/commands.txt new file mode 100644 index 00000000..8167f22d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/commands.txt @@ -0,0 +1,68 @@ +general commands, same for flash card or NON flash card, +I don't know what they do exactly. + +c1 00 00 00 21 05 01 00 + +c1 00 00 00 20 05 01 00 This one appeares only right after issuing any delete command + 41 0a 01 00 0d 00 00 00 (for pic 01). It appears after every + delete comand. I dont't know what + it does. The camera answers as usual with a "00" Byte. + +41 02 00 00 07 00 00 00 This appears after the + 41 0a 0x 00 0d 00 00 00 + c1 00 00 00 20 05 01 00 + sequence. + It also appears before these two basic commands: + 41 0a 00 00 00 00 00 00 + 41 0a 00 00 01 00 00 00 + +41 0a 00 00 00 00 00 00 This I believe to be a reset command. It is issued in the very + beginning and for example after dleting all the pictures, just + before the directory is reread with the + 41 0a 00 00 01 00 00 00 + command. + +c1 00 00 00 00 80 01 00 This appears before every 41 0a command. And usually after a + c1 00 00 00 21 05 01 00. But not always. + +c1 00 00 00 85 89 01 00 After a long transfer and after al the picture info transfers + this is sent until something else happens. + To me it looks like a "keepalive" + Every other minute (?) this is interuppted by a combination + of: + c1 00 00 00 21 05 01 00 + c1 00 00 00 00 80 01 00 + c1 00 00 00 21 05 01 00 + c1 00 00 00 00 80 01 00 + Then it continues. + + UPDATE: dennis 09.09.02 + The command "c1 00 00 00 85 89 01 00" is a polling command to query the status of the + "print" button on the camera. It appears whenever nothing else is happening, and is + needed to catch the user pressing the print button. Keepalive is not necessary with + USB. + + + +Using a compact flash card: + +41 0a 00 00 01 00 00 00 Send the basic directory info + +41 0a 03 00 08 00 00 00 send infos for picture number 03 + +41 0a 03 00 00 0a 00 00 Send picture number 03 + +41 0a 03 00 00 0d 00 00 Delete picture number 03 + + +WITHOUT a compact flash card: + +41 0a 00 00 01 00 00 00 Send the basic directory info + +41 03 ff 0f 00 00 00 00 send infos for the first picture +41 03 fe 0f 00 00 00 00 send infos for the second picture +41 03 fd 0f 00 00 00 00 guess what? :)) + +41 03 ff 0f 08 00 00 00 send the first picture +41 03 fe 0f 08 00 00 00 send the second picture +41 03 fd 0f 08 00 00 00 you know what... diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/pic-header.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/pic-header.txt new file mode 100644 index 00000000..fc62acff --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/pic-header.txt @@ -0,0 +1,19 @@ +00000000 01 00 00 10 00 04 02 00 00 31 2e 31 36 00 00 00 |.........1.16...| + ----- + 0x0204 is the number of bulk transfers to be read. + +00000010 00 05 00 00 00 08 05 00 00 02 00 00 00 00 00 00 |................| + -- -- + I 0x05 is the number of pictures on the camera plus 1. + I so 4 in this case. + -- + is the resolution. + 01 lowest + 03 medium + 05 highest + +00000020 02 78 01 67 02 23 06 50 01 e0 00 60 00 6c 05 00 |.x.g.#.P.à.`.l..| + -- -- + this sometimes changes, but I don't know why... + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/protocol.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/protocol.txt new file mode 100644 index 00000000..d15c9944 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/protocol.txt @@ -0,0 +1,352 @@ +Okay, let's tell something about the protocoll: + +Everything can be looked up in the USB 1.1 secification! +http://www.usb.org/developers/data/usbspec.zip + +That's where I have everything from. + +All the communication consists of three usb command types: +It seems that all the packages have a little endian byte order (least significant byte first?) +I always confuse that. Well, If I have 0x0001 then it sends 01 00, so turned around. + +1. control packages with direction "in" +2. control packages with direction "out" +3. bulk transfers with direction "in" + +1. These control packages are always 8 Bytes long. The first + Byte is the reqest Type. this is always 0xc1 for direction "in". + The c1 is a Bitmap: +7 1 means that the direction is device to host +6 1 Bits 6 and 5 mean that the "Type" is "Vendor" +5 0 +4 0 the first 5 Bits (0-4) define the recipient. In this case an "Interface" +3 0 +2 0 +1 0 +0 1 + +the last two Bytes are always 01 00 the length of the camera reply, so 0x0001 - one Byte. +The camera always replys with 0x00. + + +2. Similar to 1. just the direction is "out". + The first byte is always 0x41 (just changing the last bit to 0 - direction "out") + The last two bytes are 00 00, because we don't await an answer of the camera. + + +3. these semm to be standard bulk transfers. you just open one, and the camera sends data. + The direction of this transfer is "in". + The trnsfer buffer length is always 0x100. + + + +----------------- + + +So, what happens now on the bus: + +First we send a standard USB Device request, to get the device descriptor: +direction is "in" (80) length of answer is 0x0012 (12 00) + +SetupPacket : 80 06 00 01 00 00 12 00 + +We get as an answer the device descriptor: + + 0000: + 12 01 00 01 00 00 00 08 bd 06 04 04 90 00 00 00 + 0010: + 00 01 + +What this means is in the USB specs. + + +Then we want the "configuration descriptor" from the device. I think this is done by sending: + +SetupPacket : 80 06 00 02 00 00 09 02 + + +As answer we should get: + 0000: +09 02 27 00 01 01 00 80 fa 09 04 01 00 03 ff 00 + 0010: +00 00 07 05 82 02 40 00 00 07 05 03 02 40 00 00 + 0020: +07 05 84 03 01 00 08 + + +Now it's time to choose a configuration. I believe the camera just has one, but without setting it exlicitly, the camera does nothing! + +So we choose configuration 0x01. + +I think this is done by sending: + +SetupPacket : 00 09 01 00 00 00 00 00 +Note, that the direction is "out" now (00) and the length 0x0000 (00 00). + + +That was the setup process. Now the camera should talk to us. + + +*************** +* Here I had one picture on the camera. I plugged the camera in, +* got the thumbnail and deleted it. Then I switched the camera +* off. +* +* In further experiemnts we have to try out, where our magic numbers +* are: Like: How many pictures are on the camera, which one is going +* to be downloaded... +***************************** + +SetupPacket : c1 00 00 00 21 05 01 00 + answer: 00 +SetupPacket : 41 02 00 00 07 00 00 00 +SetupPacket : 41 0a 00 00 00 00 00 00 +SetupPacket : 41 02 00 00 07 00 00 00 +SetupPacket : 41 0a 00 00 01 00 00 00 + +Bulk Transfer "in": + + 0000: 1 . 1 6 I think this is something +01 00 00 10 00 00 00 00 00 31 2e 31 36 00 00 00 like a directory... No idea, what + 0010: the 1.16 means. Could be either a +00 00 00 00 00 00 02 00 00 02 00 00 00 00 06 0a protocol or firmware version. + 0020: +1e 79 01 69 02 28 06 50 01 e0 00 60 00 c0 0f 00 + 0030: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0040: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0050: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0060: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0070: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0080: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0090: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00a0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00b0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00c0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00d0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00e0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00f0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + + +SetupPacket : c1 00 00 00 21 05 01 00 + answer: 00 +SetupPacket : c1 00 00 00 00 80 01 00 + answer: 00 +SetupPacket : 41 0a 01 00 08 00 00 00 +Bulk Transfer "in": + 0000: 1 . 1 6 +01 00 00 10 00 14 00 00 00 31 2e 31 36 00 00 00 The 14 is new. No idea, what it means... + 0010: +00 01 00 00 00 00 02 00 00 02 00 00 00 00 06 0a The 01 could be one of the magic + 0020: numbers, since there was ONE pic +1e 79 01 69 02 28 06 50 01 e0 00 60 00 c0 0f 00 on the camera... + 0030: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0040: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0050: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0060: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0070: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0080: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0090: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00a0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00b0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00c0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00d0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00e0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00f0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + +************************** +* I just got an idea: The camera has internal AND a flash card as memory. +* When we have a flash card, the internal memory is not going to +* be used. Maybe the first "directory" is the internal one, with zero pics. +* Maybe the second one is the flash card directory with the one pic. +* Maybe I'm completely wrong... ;-) +*************************** + + +SetupPacket : c1 00 00 00 85 89 01 00 + answer: 00 +SetupPacket : c1 00 00 00 21 05 01 00 + answer: 00 +SetupPacket : c1 00 00 00 00 80 01 00 + answer: 00 +SetupPacket : c1 00 00 00 21 05 01 00 + answer: 00 +SetupPacket : c1 00 00 00 00 80 01 00 + answer: 00 +SetupPacket : 41 0a 01 00 0a 00 00 00 +Bulk Transfer "in": + 0000: E x i f M M * +ff d8 ff e1 01 a5 45 78 69 66 00 00 4d 4d 00 2a + 0010: +00 00 00 08 00 07 01 1a 00 05 00 00 00 01 00 00 + 0020: ( +01 0e 01 1b 00 05 00 00 00 01 00 00 01 16 01 28 + 0030: +00 03 00 00 00 01 00 02 00 00 02 13 00 03 00 00 + 0040: +P I C T 0 0 0 1 J P G +50 49 43 54 30 30 30 31 4a 50 47 20 00 00 00 00 + 0050: +00 00 00 00 00 00 00 00 00 00 02 00 00 14 00 00 + 0060: D 0 ^ @ c +00 04 00 00 00 01 00 00 00 44 00 00 30 5e 40 63 + 0070: +@ , A f +40 00 01 2c 41 66 00 00 00 00 00 00 00 00 00 00 + 0080: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0090: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00a0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00b0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00c0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00d0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00e0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00f0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + +Bulk transfer "in": + 0000: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0010: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0020: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0030: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0040: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0050: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0060: 0 2 1 0 +0b 90 00 00 07 00 00 00 04 30 32 31 30 91 01 00 + 0070: +07 00 00 00 04 01 02 03 00 a0 00 00 07 00 00 00 + 0080: +04 00 00 00 00 a0 01 00 03 00 00 00 01 00 01 00 + 0090: +00 a0 02 00 04 00 00 00 01 00 00 02 00 a0 03 00 + 00a0: +04 00 00 00 01 00 00 01 80 ff db 00 84 00 10 0b + 00b0: ( +0c 0e 0c 0a 10 0e 0d 0e 12 11 10 13 18 28 1a 18 + 00c0: 1 # % ( : 3 = < 9 3 8 7 +16 16 18 31 23 25 1d 28 3a 33 3d 3c 39 33 38 37 + 00d0: +@ H \ N @ D W E 7 8 P m Q W _ b +40 48 5c 4e 40 44 57 45 37 38 50 6d 51 57 5f 62 + 00e0: +67 68 67 3e 4d 71 79 70 64 78 5c 65 67 63 01 11 + 00f0: +12 12 18 15 18 2f 1a 1a 2f 63 42 38 42 63 63 63 + + +Then 18 further bulk "in" transfers, probably containing the data of the picture/thumbnail. + +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +plenty of these more for wuite a while. +SetupPacket : c1 00 00 00 21 05 01 00 +SetupPacket : c1 00 00 00 00 80 01 00 +SetupPacket : c1 00 00 00 21 05 01 00 +SetupPacket : c1 00 00 00 00 80 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +and so on... +SetupPacket : c1 00 00 00 21 05 01 00 +SetupPacket : c1 00 00 00 00 80 01 00 +SetupPacket : 41 0a 01 00 0d 00 00 00 +SetupPacket : c1 00 00 00 20 05 01 00 Somewhere here I deleted +SetupPacket : 41 02 00 00 07 00 00 00 a thumbnail... +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : 41 0a 01 00 00 00 00 00 +SetupPacket : c1 00 00 00 21 05 01 00 +SetupPacket : 41 02 00 00 07 00 00 00 +SetupPacket : 41 0a 00 00 00 00 00 00 +SetupPacket : 41 02 00 00 07 00 00 00 +SetupPacket : 41 0a 00 00 01 00 00 00 +Bult transfer "in": + 0000: 1 . 1 6 Maybe this is something like +01 00 00 10 00 00 00 00 00 31 2e 31 36 00 00 00 the directory... So, after deleting + 0010: a thumbnail, it re-reads the directory +00 00 00 00 00 00 01 00 00 02 00 00 00 00 06 0a + 0020: +1e 79 01 69 02 28 06 50 01 e0 00 60 00 c0 0f 00 + 0030: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0040: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0050: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0060: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0070: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0080: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0090: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00a0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00b0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00c0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00d0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00e0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00f0: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +SetupPacket : c1 00 00 00 85 89 01 00 +etc. pp. +SetupPacket : 41 0a 01 00 00 00 00 00 Somewhere here I just switched off +SetupPacket : c1 00 00 00 21 05 01 00 the camera... It just dies then +SetupPacket : c1 00 00 00 21 05 01 00 We don't have to do something + special... + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/protocol2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/protocol2.txt new file mode 100644 index 00000000..722d146d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/agfa-cl20/protocol2.txt @@ -0,0 +1,262 @@ +Okay, + +this is the second approach for the Protocol. + +What I believe the "commands" are, I have put in a list in the file "commands.txt". + +There seem to be fundamental differecs in the data and command set, when using a flash card or no flash card. +When the pictures are saved on the internal camera memory, they come over in a strange format, from which I have no idea, what it is. Additionally the commands used to retrieve pictures are different. + +I will now try to specify the commands used for the basic operation of the camera. + +When using a Flash Card, the pictures are coming over in EXIF Format. EXIF is a JPEG format developed for DSC (digital still cameras). + +--------------- +Digital Still Camera Image File Format Standard (Exchangeable image file format for Digital Still Cameras: Exif) Version 2.1 +---------------- + +The specs can be found here: +http://www.pima.net/standards/it10/PIMA15740/Exif_2-1.PDF + +This is a special format which INCLUDES THUMBNAILS. This means, that the picture and the thmbnail are ONE file. +So what basicallly happens in the windows driver: + +It retrieves the EXIF File complete, for example 173kb. I calcualted it. It fits. I had 685 Bulk Transfers, 256Bytes each, which makes a total of 175360 Bytes --> my picture (Exif=Thumbnail+picture). +The Windows driver then extracts the Thumbnail out of the Exif, saves i as JFIF (JPEG) and displays it in the thumbnail overview. + +So, if you have the Exif you automatically have the Thumbnail AND the picture. So there is only one transfer for both. + +Interesting is also, that the actual picture, the Exif File, comes in BIG ENDIAN Format. you can see this from the 4d 4d (MM) in the EXIF header. + + +Okay, let's tell something about the protocoll: + +Everything can be looked up in the USB 1.1 secification! +That's where I have everything from. + +All the communication consists of three usb command types: +It seems that all the packages have a little endian byte order (least significant byte first?) +I always cofuse that. Well, If I have 0x0001 then it sends 01 00, so turned around. + +1. control packages with direction "in" +2. control packages with direction "out" +3. bulk transfers with direction "in" + +1. These control packages are always 8 Bytes long. The first + Byte is the reqest Type. this is always 0xc1 for direction "in". + The c1 is a Bitmap: +7 1 means that the direction is device to host +6 1 Bits 6 and 5 mean that the "Type" is "Vendor" +5 0 +4 0 the first 5 Bits (0-4) define the recipient. In this case an "Interface" +3 0 +2 0 +1 0 +0 1 + +the last two Bytes are always 01 00 the length of the camera reply, so 0x0001 - one Byte. +The camera always replys with 0x00. + + +2. Similar to 1. just the direction is "out". + The first byte is always 0x41 (just changing the last bit to 0 - direction "out") + The last two bytes are 00 00, because we don't await an answer of the camera. + + +3. these semm to be standard bulk transfers. you just open one, and the camera sends data. + The direction of this transfer is "in". + The trnsfer buffer length is always 0x100. + + + +----------------- + + +So, what happens now on the bus: + +First we send a standard USB Device request, to get the device descriptor: +direction is "in" (80) length of answer is 0x0012 (12 00) + +SetupPacket : 80 06 00 01 00 00 12 00 + +We get as an answer the device descriptor: + + 0000: + 12 01 00 01 00 00 00 08 bd 06 04 04 90 00 00 00 + 0010: + 00 01 + +What this means is in the USB specs. + + +Then we want the "configuration descriptor" from the device. I think this is done by sending: + +SetupPacket : 80 06 00 02 00 00 09 02 + + +As answer we should get: + 0000: +09 02 27 00 01 01 00 80 fa 09 04 01 00 03 ff 00 + 0010: +00 00 07 05 82 02 40 00 00 07 05 03 02 40 00 00 + 0020: +07 05 84 03 01 00 08 + + +Now it's time to choose a configuration. I believe the camera just has one, but without setting it exlicitly, the camera does not +hing! + +So we choose configuration 0x01. + +I think this is done by sending: + +SetupPacket : 00 09 01 00 00 00 00 00 +Note, that the direction is "out" now (00) and the length 0x0000 (00 00). + + +That was the setup process. Now the camera should talk to us. + + + +SetupPacket : c1 00 00 00 21 05 01 00 + answer: 00 +SetupPacket : 41 02 00 00 07 00 00 00 +SetupPacket : 41 0a 00 00 00 00 00 00 +SetupPacket : 41 02 00 00 07 00 00 00 +SetupPacket : 41 0a 00 00 01 00 00 00 This is the command for getting + a basic directory + +Bulk Transfer "in": +***********************************************************************8 +this output is very different if you use a flash card or not. +These are the first rows with a flash card: + + + 0000: 1 . 1 6 +01 00 00 10 00 00 00 00 00 31 2e 31 36 00 00 00 + 0010: +00 00 00 00 00 00 02 00 00 02 00 00 00 00 06 0a The first 02 is the number of + 0020: pictures plus one. In this case +1e 79 01 69 02 28 06 50 01 e0 00 60 00 c0 0f 00 one piture. + 0030: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 0040: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + + +These are the first rows without a flash card: + + 0000: +00 00 00 10 00 ff ff ff ff 31 2e 31 36 ff ff ff + 0010: +ff ff ff ff 00 03 00 00 00 02 00 00 ff ff 05 09 Maybe the 03 is the nubmer of pictures, but I don't + 0020: think so.. +1b 00 00 00 00 00 00 50 01 e0 00 60 00 17 0f 00 + 0030: +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + + UPDATE: dennis, 09.09.02 + The 03 IS the number of pictures. I have tried it several times and it always represents the + number of pictures. Funny how you don't have to subtract 1 here! + + + +Next thing that happens is to get information on the picture. This is done for EACH picture. + +So, if I have 5 pictures I will get 5 commands: + + flash-card no flash card +SetupPacket : 41 0a 01 00 08 00 00 00 41 03 ff 0f 00 00 00 00 +SetupPacket : 41 0a 02 00 08 00 00 00 41 03 fe 0f 00 00 00 00 +SetupPacket : 41 0a 03 00 08 00 00 00 41 03 fd 0f 00 00 00 00 +SetupPacket : 41 0a 04 00 08 00 00 00 41 03 fc 0f 00 00 00 00 +SetupPacket : 41 0a 05 00 08 00 00 00 41 03 fb 0f 00 00 00 00 + +Each time I get back a picture information package, looing like (for pic 4 for ex) + + 0000: +01 00 00 10 00 90 01 01 05 31 2e 31 36 01 08 01 01 74 00 ff ff 35 00 02 20 18 90 78 34 00 00 00 + 0010: +09 05 0a 01 00 03 06 00 00 02 00 00 0f 01 05 09 1b 01 00 00 17 0f 00 5c 66 40 3c ff ff ff ff ff + 0020: +1b 74 01 62 02 11 06 50 01 e0 00 60 00 17 0f 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff + 0030: +19 01 1a 01 1b 01 1c 01 1d 01 1e 01 1f 01 20 01 and mor ffs... + 0040: +21 01 22 01 23 01 24 01 25 01 26 01 27 01 28 01 + 0050: +29 01 2a 01 2b 01 2c 01 2d 01 2e 01 2f 01 30 01 + 0060: +31 01 32 01 33 01 34 01 35 01 36 01 37 01 38 01 + 0070: +39 01 3a 01 3b 01 3c 01 3d 01 3e 01 3f 01 40 01 + 0080: +41 01 42 01 43 01 44 01 45 01 46 01 47 01 48 01 + 0090: +49 01 ff ff 4b 01 4c 01 4d 01 4e 01 4f 01 50 01 + 00a0: +51 01 52 01 53 01 54 01 55 01 56 01 57 01 58 01 + 00b0: +59 01 5a 01 5b 01 5c 01 5d 01 5e 01 5f 01 60 01 + 00c0: +61 01 62 01 63 01 64 01 65 01 66 01 67 01 68 01 + 00d0: +69 01 6a 01 6b 01 6c 01 6d 01 6e 01 6f 01 70 01 + 00e0: +71 01 72 01 73 01 74 01 75 01 76 01 77 01 78 01 + 00f0: +79 01 7a 01 7b 01 7c 01 7d 01 7e 01 7f 01 80 01 + +I don't know yet, what information is in there, and what it is used for. +Also a clear difference between the flash card and the non flash card. + + + + +Then, the Exif files (in case of the flash card - in non flash card mode I don't know, what is going to be transferred) +are transferred, one after the other. In order. + + + flash card non flash card +SetupPacket : 41 0a 01 00 0a 00 00 00 41 03 ff 0f 08 00 00 00 + + + 0000: +ff d8 ff e1 61 a5 45 78 69 66 00 00 4d 4d 00 2a ef a8 a2 8a 00 28 a2 8a 00 28 a2 8a 00 28 a2 8a + 0010: +00 00 00 08 00 07 01 1a 00 05 00 00 00 01 00 00 00 28 a2 8a 00 28 a2 8a 00 28 a2 8a 00 28 a2 8a + 0020: +01 0e 01 1b 00 05 00 00 00 01 00 00 01 16 01 28 00 28 a2 8a 00 28 a2 8a 00 28 a2 8a 00 28 a4 a5 + 0030: +00 03 00 00 00 01 00 02 00 00 02 13 00 03 00 00 a0 02 8a 28 a0 02 8a 28 a0 02 8a 28 a0 02 8a 28 + 0040: +50 49 43 54 30 30 30 31 4a 50 47 20 00 00 00 00 and so on.... + 0050: +00 00 00 00 00 00 00 00 00 00 02 00 00 ac 02 00 + 0060: +50 49 43 54 30 30 30 32 4a 50 47 20 00 00 00 00 + 0070: +00 00 00 00 00 00 00 00 00 00 ad 00 00 74 02 00 + 0080: +50 49 43 54 30 30 30 33 4a 50 47 20 00 00 00 00 + 0090: +00 00 00 00 00 00 00 00 00 00 4a 01 00 60 03 00 + 00a0: +50 49 43 54 30 30 30 34 4a 50 47 20 00 00 00 00 + 00b0: +00 00 00 00 00 00 00 00 00 00 22 02 00 90 01 00 + 00c0: +50 49 43 54 30 30 30 35 4a 50 47 20 00 00 00 00 + 00d0: +00 00 00 00 00 00 00 00 00 00 86 02 00 c0 02 00 + 00e0: +02 00 04 00 00 00 01 00 00 04 00 a0 03 00 04 00 + 00f0: +00 00 01 00 00 03 00 00 00 00 00 00 0e 01 00 00 + + +This is an exif File. It has a clear header, This I don't know what it +is. I cannot and conforms to the spec. I reckon, you can just find a +header nor other readable characters. save it and use it. Maybe it is +just compressed jpg data. I don't know. +---------------------------------------------------------------------- diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/ChangeLog new file mode 100644 index 00000000..f5f73365 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/ChangeLog @@ -0,0 +1,50 @@ +2009-07-30 Dan Fandrich + * library.c: Fixed a buffer overflow in the AOX + driver that would occur when fewer than 15 pictures were + on the camera. + +2007-06-24 Theodore Kilgore + * library.c: compile warnings about signed variables fixed. + * aox.c: ditto + +2007-06-17 Theodore Kilgore + * library.c: D-MAX DM3588 camera added, found by + Amauri Magagna . + * aox.c: Minor changes. + * aox.h: Model entry added for new camera. + * README.aox: updated. + + +2004-06-27 Theodore Kilgore + + * library.c: Support for PREVIEW added. + * README: Updated to reflect recent changes. + + +2004-04-05 Hubert Figuiere + + * aox.c (aox_get_picture_size): Declare variables first + for C89 compliance. + +2004-03-05 Theodore Kilgore + + * library.c: Different names needed for two USB ids. + + +2004-02-25 Theodore Kilgore + + * aox.c: Yet another portability fix. + + +2004-02-24 Theodore Kilgore + + * aox.c: Portability improvements, credits to Mika Kousa, + + + +2004-02-24 Theodore Kilgore + + * library.c: Second USB id, discovered by Jonathan Kozol + + Portability improvements, credits to Mika Kousa, + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/Makefile-files new file mode 100644 index 00000000..29565502 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += aox.la +camlibdoc_DATA += aox/README.aox + +EXTRA_DIST += aox/README.aox aox/ChangeLog + +aox_la_SOURCES = aox/library.c aox/aox.c aox/aox.h +aox_la_LDFLAGS = $(camlib_ldflags) +aox_la_DEPENDENCIES = $(camlib_dependencies) +aox_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/README.aox b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/README.aox new file mode 100644 index 00000000..8d68eab9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/README.aox @@ -0,0 +1,122 @@ +This driver will download pictures from the Concord EyeQ Mini. This camera +has Vendor:Product number 0x3e8:0x2182 and is one of several cameras occupying +the entry level in the digital camera market, as do the SQ905 cameras. I +mention the SQ905 cameras because the Concord EyeQ Easy has been reported to +me as an SQ905 camera. So that is how I obtained this creature, by accident. +I went to WalMart hoping to find an SQ905 camera which would do 640x480. I +found a Concord EyeQ Mini, thought it was probably the same thing as a +Concord EyeQ Easy, bought it, brought it home, and found out it was something +altogether different. Well, then, I just had to make it work... + +The chip inside the camera is unknown, but the .inf file provided with the +camera calls it an "Aox." Apparently, Aox is the same company as Endpoints, +Inc. The chip may be an Endpoints SE401 or SE402. + +According to its manual, the camera can be used as a webcam, or to shoot a +short video sequence. AFAIK both of these features require kernel module +support in order to be used properly, and those features are not addressed +here. This camera library provides a driver for the Concord EyeQ Mini as a +still camera. + +For those interested in the webcam features, there do exist Linux kernel drivers +for webcams with SE401 (module "se401") and SE402 module "epcam"). Those +drivers do indeed support cameras with Vendor number 0x3e8, but Product number +0x2182 is not listed in their source files. Furthermore, the mere act of adding +the number and re-compiling the kernel module does not seem all by itself to +make this camera work as a webcam. The author of these two kernel modules has +stated to me in e-mail that Endpoints was willing to share some information +with him about how to access the SE401 and SE402 chips in webcam mode. However, +my own request for similar information about the still camera functionality has +not been answered, as of 11/04/03. This camlib, therefore, has been constructed +by means of observation, combined with guesswork. + +Features and quirks of the camera: + +The camera has two sizes of pictures. The high-resolution pictures are +640x480 pixels. Their data format is a Bayer array, from which it is +possible to create a PPM image. The camera holds a maximum of 23 pictures in +high-resolution mode. The manufacturer's driver creates JPEG compressed +images from the downloaded data, and the user is certainly free to do same. +Here, high-resolution pictures will be saved in PPM format. + +The low-resolution pictures are 320x240. According to the manual, these +pictures are compressed in the camera and are downloaded as JPEG images. +However, the compression used is unknown. Thus, it is currently not possible +to make pictures from the resulting files. You can just download them. Or, +better yet, figure out what the format is and let me know. The low-compression +data download is not of fixed size, but may vary from one picture to the +next. All low-resolution photos will be saved as RAW files, until such time +as they are better understood. + +If you have a random mixture of low-resolution and high-resolution photos on +the camera, then the camera will always download the low-resolution pictures +first and the high-resolution photos only after that. In other words, in +that situation the pictures will not be downloaded in the order in which you +shot them. + +The camera also supports "video clip" mode, in which the camera keeps taking +frames so long as one holds down the shutter button. Unfortunately, there is +not much point in implementing that until the low-resolution non-standard +encoded format is better understood, because that is what it uses. + +Some things which work for me, with various gphoto2 options: + +gphoto2 --summary +will report the number of low-resolution pictures and the number of +high-resolution pictures separately, as well as the total number +of pictures. + +gphoto2 -P +is functional, but see previous remarks about high and low resolution +photos. + +gphoto2 -p x-y +is functional, too, assuming there are at least y pictures in the camera +and x <= y. + +gphoto2 --get-all-raw-data + +License: + +LGPL (see the head of the libgphoto2 source tree; this camera library is a +part of the libgphoto2 project). + +Warranty: + +None, neither expressed nor implied. This camera driver has been written +for the sake of the challenge, and in order to learn more about both hardware +and software support for the hardware from the actual experience of writing +a device driver. Those intending to use the Aox camera library should keep +these facts in mind, in order to keep an appropriate sense of perspective. + +Nevertheless, the Aox camera library driver works for me and carries out for +me the functions which are described here. I seriously hope and intend that +it should work for others, too. Please report any problems or bugs to me or +to the gphoto-devel mailing list. + +Copyright by Theodore Kilgore, November 11, 2003. +kilgota at auburn.edu + +Additional remarks, June 27, 2004: + +First the good news: +Thumbnail capability has been added, and the library should be fully functional +now with a GUI frontend. I have tested both gtkam and digikam. Gtkam works very +nicely for me, but for unknown reasons my digikam somehow fails to display the +thumbnails. That is probably the fault of my digikam setup, because it fails for +all of my cameras. It may work for you and if you want to use digikam then +certainly you should try it. + +The bad news: +The camera has "video clip" capability, meaning that with a certain camera +setting it is possible to hold down the shutter button and keep shooting +frames (the only limitation being the amount of free memory in the camera). +Unfortunately, the clip mode uses the non-standard compression, and thus +there is no point in trying to implement clip mode until the compression +is understood. + +June 17, 2006: + +New camera D-MAX DM3588 - 0x03e8:0x2130 found by Amauri Magagna +. The new camera seems to differ only in minor +details from the previously known cameras, but requires a separate model entry. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/aox.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/aox.c new file mode 100644 index 00000000..3ef847b1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/aox.c @@ -0,0 +1,133 @@ +/* aox.c + * + * Copyright (C) 2003 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "aox.h" + +#define GP_MODULE "aox" + +#define WRITE gp_port_usb_msg_write +#define READ gp_port_usb_msg_read + + +int aox_init (GPPort *port, Model *model, Info *info) +{ + char c[16]; + unsigned char hi[2]; + unsigned char lo[2]; + memset(c,0,sizeof(c)); + memset (hi,0,2); + memset (lo,0,2); + + GP_DEBUG("Running aox_init\n"); + + READ(port, 1, 0, 0, c,0x10); + WRITE(port, 8, 1, 0, c, 0x10); + READ(port, 0xff, 0x07, 0xfffc, c, 4); /* Returns version number, apparently */ + READ(port, 0x06, 0x0, 0x0, c, 2); + READ(port, 0x04, 0x1, 0x1, (char *)lo, 2); + GP_DEBUG("%02x %02x number of lo-res pics\n", lo[0],lo[1]); + /* We need to keep this information. We presume that + * more than 255 pictures is impossible with this camera. + */ + memcpy (info, &lo[0], 1); + READ(port, 0x04, 0x2, 0x1, c, 2); + READ(port, 0x04, 0x3, 0x1, c, 2); + READ(port, 0x04, 0x4, 0x1, c, 2); + READ(port, 0x04, 0x5, 0x1, (char *)hi, 2); + GP_DEBUG("%02i %02i number of hi-res pics\n", hi[0], hi[1]); + /* This information, too. */ + memcpy (info +1, &hi[0], 1); + READ(port, 0x04, 0x6, 0x1, c, 2); /* "Completion" flag.*/ + GP_DEBUG("info[0] = 0x%x\n", info[0]); + GP_DEBUG("info[1] = 0x%x\n", info[1]); + GP_DEBUG("Leaving aox_init\n"); + + return GP_OK; +} + + +int aox_get_num_lo_pics (Info *info) +{ + GP_DEBUG("Running aox_get_num_lo_pics\n"); + return info[0]; +} + +int aox_get_num_hi_pics (Info *info) +{ + GP_DEBUG("Running aox_get_num_hi_pics\n"); + return info[1]; +} + +int aox_get_picture_size (GPPort *port, int lo, int hi, int n, int k) +{ + + unsigned char c[4]; + unsigned int size; + memset (c,0,4); + + GP_DEBUG("Running aox_get_picture_size for aox_pic%03i\n", k+1); + + if ( ( (lo) && ( n ==k ) && (k ==0)) ) { + READ(port, 0x04, 0x1, 0x1, (char *)c, 2); + } + if ( ( (hi) && ( n < k ) && (n == 0)) ) { + READ(port, 0x04, 0x5, 0x1, (char *)c, 2); + } + READ(port, 0x05, n+1, 0x1, (char *)c, 4); + size = (int)c[0] + (int)c[1]*0x100 + (int)c[2]*0x10000; + GP_DEBUG(" size of picture %i is 0x%x\n", k, size); + if ( (size >= 0xfffff ) ) {return GP_ERROR;} + GP_DEBUG("Leaving aox_get_picture_size\n"); + + return size; +} + +static int aox_read_data (GPPort *port, char *data, int size) +{ + int MAX_BULK = 0x1000; + + while(size > 0) { + int len = (size>MAX_BULK)?MAX_BULK:size; + gp_port_read (port, data, len); /* 0x84 = EP IN NEEDED HERE.*/ + data += len; + size -= len; + } + return 1; +} + +int aox_read_picture_data (GPPort *port, char *data, int size, int n) { + char c[4]; + memset(c,0,4); + + READ(port, 0x06, n+1, 0x1, c, 4); + aox_read_data (port, data , size); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/aox.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/aox.h new file mode 100644 index 00000000..3271326f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/aox.h @@ -0,0 +1,41 @@ +/* aox.h + * + * Copyright (C) 2003 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __AOX_H__ +#define __AOX_H__ + +#include + +typedef unsigned char Info; + +typedef enum { + AOX_MODEL_MINI, + AOX_MODEL_DMAX +} Model; + +int aox_init (GPPort *port, Model *model, Info *info); +int aox_get_num_lo_pics (Info *info); +int aox_get_num_hi_pics (Info *info); + +int aox_get_picture_size (GPPort *port, int lo, int hi, int n, int k); +int aox_read_picture_data (GPPort *port, char *data, int size, int n); + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/library.c new file mode 100644 index 00000000..c1d8515e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/aox/library.c @@ -0,0 +1,365 @@ +/* library.c + * + * Copyright (C) 2003 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include + +#include +#include +#include + +#include +#include + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "aox.h" +#include + +#define GP_MODULE "aox" + +struct _CameraPrivateLibrary { + Model model; + Info info[2]; +}; + +static struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {"Concord EyeQMini_1", GP_DRIVER_STATUS_EXPERIMENTAL, 0x03e8, 0x2182}, + {"Concord EyeQMini_2", GP_DRIVER_STATUS_EXPERIMENTAL, 0x03e8, 0x2180}, + {"D-MAX DM3588", GP_DRIVER_STATUS_EXPERIMENTAL, 0x03e8, 0x2130}, + {NULL,0,0,0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Aox chipset camera"); + return GP_OK; +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].name); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + if (a.status == GP_DRIVER_STATUS_EXPERIMENTAL) + a.operations = GP_OPERATION_NONE; + else + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_PREVIEW; + gp_abilities_list_append (list, a); + } + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + + int num_lo_pics =aox_get_num_lo_pics(camera->pl->info); + int num_hi_pics =aox_get_num_hi_pics(camera->pl->info); + + sprintf (summary->text,_("Your USB camera has an Aox chipset.\n" + "Number of lo-res PICs = %i\n" + "Number of hi-res PICs = %i\n" + "Number of PICs = %i\n" + ), num_lo_pics, num_hi_pics, num_lo_pics+num_hi_pics); + + return GP_OK; +} + + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Aox generic driver\n" + "Theodore Kilgore \n")); + return GP_OK; +} + +/*************** File and Downloading Functions *******************/ + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int num_lo_pics = aox_get_num_lo_pics (camera->pl->info); + int num_hi_pics = aox_get_num_hi_pics (camera->pl->info); + int n = num_hi_pics + num_lo_pics; + char name[30]; + int i; + /* Low-resolution pictures are always downloaded first. We do not know + * yet how to process them, so they will remain in RAW format. */ + + for (i=0; i< num_lo_pics; i++){ + snprintf( name, sizeof(name), "aox_pic%03i.raw", i+1 ); + gp_list_append(list, name, NULL); + } + + for (i = num_lo_pics; i < n; i++){ + snprintf( name, sizeof(name), "aox_pic%03i.ppm", i+1 ); + gp_list_append(list, name, NULL); + } + return GP_OK; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + +/* The camera will always download the low-resolution pictures first, if any. + * As those are compressed, they are not of fixed size. Unfortunately, the + * compression method is not known. + * For a high-resolution picture, the size is always the same. + * Every picture file has a header, which is of length 0x98. The high- + * resolution pictures are just Bayer data; their headers will be discarded. + */ + + int i, j, k, n, num_lo_pics, num_hi_pics, w = 0, h = 0; + unsigned char temp; + unsigned char *data; + unsigned char *p_data = NULL; + unsigned char *output = NULL; + int len; + int header_len; + char header[128]; + unsigned char gtable[256]; + + k = gp_filesystem_number(camera->fs, "/", filename, context); + + + num_lo_pics = aox_get_num_lo_pics(camera->pl->info); + num_hi_pics = aox_get_num_hi_pics(camera->pl->info); + + + GP_DEBUG("There are %i compressed photos\n", num_lo_pics); + GP_DEBUG("There are %i hi-res photos\n", num_hi_pics); + + if ( (k < num_lo_pics) ) { + n = k; + w = 320; + h = 240; + } else { + n = k - num_lo_pics; + w = 640; + h = 480; + } + + len = aox_get_picture_size (camera->port, num_lo_pics, + num_hi_pics, n, k); + if (len < GP_OK) return len; + + GP_DEBUG("len = %i\n", len); + data = malloc(len); + if (!data) { + printf("Malloc failed\n"); return 0;} + aox_read_picture_data (camera->port, (char *)data, len, n); + + switch (type) { + case GP_FILE_TYPE_EXIF: + free (data); + return (GP_ERROR_FILE_EXISTS); + + case GP_FILE_TYPE_PREVIEW: + case GP_FILE_TYPE_NORMAL: + if (w == 320) { + gp_file_detect_mime_type (file); /* Detected as "raw"*/ + gp_file_set_data_and_size (file, (char *)data, len); + gp_file_adjust_name_for_mime_type (file); + break; + } + if (w == 640) { + + if (len < 0x98 + w*h) { + GP_DEBUG("len %d is less than expected %d\n", len, 0x98+w*h); + return GP_ERROR; + } + + /* Stripping useless header */ + p_data = data + 0x98; + /* Picture is mirror-imaged.*/ + for (i = 0; i < h; ++i) { + for (j = 0 ; j < w/2; j++) { + temp = p_data[w*i +j]; + p_data[w*i +j] = p_data[w*i+ w -1 -j]; + p_data[w*i + w - 1 - j] = temp; + } + } + /* Not only this, but some columns are + * interchanged, too. */ + for (i = 0; i < w*h/4; i++) { + temp = p_data[4*i +1]; + p_data[4*i + 1] = p_data[4*i+2]; + p_data[4*i+2] = temp; + } + /* And now create a ppm file, with our own header */ + header_len = snprintf(header, 127, + "P6\n" + "# CREATOR: gphoto2, aox library\n" + "%d %d\n" + "255\n", w, h); + + output = malloc(3*w*h); + if(!output) { + free(output); + return GP_ERROR_NO_MEMORY; + } + if (camera->pl->model == AOX_MODEL_DMAX) + gp_bayer_decode (p_data, w, h, + output, BAYER_TILE_RGGB); + else + gp_bayer_decode (p_data, w, h, + output, BAYER_TILE_GRBG); + /* gamma correction of .70 may not be optimal. */ + gp_gamma_fill_table (gtable, .65); + gp_gamma_correct_single (gtable, output, w * h); + gp_file_set_mime_type (file, GP_MIME_PPM); + gp_file_append (file, header, header_len); + gp_file_append (file, (char *)output, 3*w*h); + } + free (data); + free (output); + return GP_OK; + case GP_FILE_TYPE_RAW: + gp_file_set_data_and_size (file, (char *)data, len); + gp_file_set_mime_type (file, GP_MIME_RAW); + gp_file_adjust_name_for_mime_type(file); + break; + default: + free (data); + return (GP_ERROR_NOT_SUPPORTED); + } + return GP_OK; +} + +/*************** Exit and Initialization Functions ******************/ + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("Aox camera_exit"); + + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func +}; + +int +camera_init(Camera *camera, GPContext *context) +{ + GPPortSettings settings; + CameraAbilities abilities; + int ret = 0; + + /* First, set up all the function pointers */ + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + + GP_DEBUG ("Initializing the camera\n"); + ret = gp_port_get_settings(camera->port,&settings); + if (ret < 0) return ret; + + ret = gp_camera_get_abilities(camera,&abilities); + if (ret < 0) return ret; + GP_DEBUG("product number is 0x%x\n", abilities.usb_product); + + switch (camera->port->type) { + case GP_PORT_SERIAL: + return ( GP_ERROR ); + case GP_PORT_USB: + settings.usb.config = 1; + settings.usb.altsetting = 0; + settings.usb.interface = 1; + settings.usb.inep = 0x84; + settings.usb.outep =0x05; + break; + default: + return ( GP_ERROR ); + } + + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) return ret; + + GP_DEBUG("interface = %i\n", settings.usb.interface); + GP_DEBUG("inep = %x\n", settings.usb.inep); + GP_DEBUG("outep = %x\n", settings.usb.outep); + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + + switch(abilities.usb_product) { + case 0x2130: + camera->pl->model = AOX_MODEL_DMAX; + break; + default: + camera->pl->model = AOX_MODEL_MINI; + } + /* Connect to the camera */ + aox_init (camera->port, &camera->pl->model, camera->pl->info); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/Makefile-files new file mode 100644 index 00000000..e95b2b56 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/Makefile-files @@ -0,0 +1,12 @@ +# -*- Makefile -*- + +EXTRA_DIST += ax203/README.ax203-compression ax203/README.ax203 +camlibdoc_DATA += ax203/README.ax203-compression ax203/README.ax203 + +EXTRA_LTLIBRARIES += ax203.la + +ax203_la_SOURCES = ax203/library.c ax203/ax203.c ax203/ax203.h ax203/ax203_decode_yuv.c ax203/ax203_decode_yuv_delta.c ax203/ax203_compress_jpeg.c ax203/jpeg_memsrcdest.h ax203/jpeg_memsrcdest.c ax203/tinyjpeg.c ax203/tinyjpeg.h ax203/tinyjpeg-internal.h ax203/jidctflt.c +ax203_la_LDFLAGS = $(camlib_ldflags) +ax203_la_DEPENDENCIES = $(camlib_dependencies) +ax203_la_LIBADD = $(camlib_libadd) @LIBGD_LIBS@ @LIBJPEG@ +ax203_la_CFLAGS = @LIBGD_CFLAGS@ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/README.ax203 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/README.ax203 new file mode 100644 index 00000000..a8f52229 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/README.ax203 @@ -0,0 +1,136 @@ +About this driver +================= + +This driver allows you to upload / download and delete pictures from +appotech ax203 and ax206 based picture frames. This are small, cheap +picture frames with a 1.1, 1.5, 1.8, 2.4 or 3.5 inch display and an USB id of: +1908:0102 +1908:1315 +1908:1320 +1908:3335 + +ax203 based frames present themselves as a usb mass storage cdrom, which +contains the windows software. Communication with the device happens by +issuing special (custom) scsi commands. This driver uses the special +"usbscsi" port driver, which allows sending the custom scsi commands. + +Note that if your ax203 frame has a usb-id of 1908:1315, you need to tell +Linux not to touch the HID device this version also presents in its USB +descriptor, otherwise the frame gets confused and resets. +Here is a kernel patch for this: +http://marc.info/?l=linux-usb&m=126985692106903 + +Alternative one could add the following on the linux kernel cmdline: +usbhid.quirks=0x1908:0x1315:0x4 +But that does not help as it triggers this bug: +http://www.spinics.net/lists/linux-input/msg07870.html + +Also if you have a 1908:1315 or 1908:1320 frame, these will work better +(faster, no reset errors in dmesg), if you do the following as root, before +plugging them in: +modprobe usb-storage +echo 1908:1315:b,1908:1320:b > /sys/module/usb_storage/parameters/quirks + +A patch for this is on its way upstream (7th april 2010). + + +About the ax203 access protocol +=============================== + +The scsi commands for these devices was reverse engineered by several people, +the ax203 camlib builds on top of their work, see: +http://picframe.spritesserver.nl/wiki/index.php/Talk:HK_Unbranded_with_AppoTech_chipset + +The protocol consists of directly sending SPI commands to and from the SPI +flash inside these devices, giving very raw access to the flash chip +For example you need to do separate erase and program commands, and +as an erase block is larger then what you program in a single program command +you must make sure to always reprogram the entire range the single erase +command cleared (and read the entire range before clearing, so you can write +it back). + +In order to be sure we are sending the right commands the ax203 driver starts +by reading the SPI flash's ID string, and if this is unknown it refuses to +work. In this case please do "gphoto2 -L --debug 2> log" and mail me +the log file. + + +About the ax203 image compression +================================== + +The ax203 family of picframe controllers actually comes with 4 different +flavors of compression, see README.ax203-compression. + + +Random ax203 notes +================== + +Firmware versions 3.3.x and 3.4.x frames have a 2nd Parameter block at +ABFS start + 0x1000, about which the following is known: +bytes 4-5: 16 bit rgb 5-6-5 color value for menu background, big endian +bytes 6-7: 16 bit rgb 5-6-5 color value for menu text, big endian +byte 0xffe: 0x55 this byte and the next one are a magic marker to +byte 0xfff: 0xaa indicate the parameter block is valid + +ax3003 based frames contain 2 blocks with images, 1 with the images to be shown +and one with images used inside the menus. The memory map for my ax3003 frame +looks like this: + 407cc Menu images file table, 2 bytes per file 16 bit big endian + start address / 256. + 70000 bootsplash + 79000 No pictures picture + 7f400 Pinguin picture, use unknown + 86900 Sync with PC picture + 8d200 ?? Not JPEG data + 99200 Clock hands + a4600 Font + strings + clock hands for calendar display (English) + b0400 Font for digital clock + b7000 Font + strings + clock hands for calendar display (German) + c5000 Font + strings + clock hands for calendar display (French) + d2f00 Setup screen (English) + db300 Setup screen scrolled (English) + e3500 Setup screen (French) + eda00 Setup screen scrolled (French) + f5f00 Setup screen (German) + ff200 Setup screen scrolled (German) +107a00 Setup screen bars +10cb00 Calendar screen (English) +114100 Clock screen +11b800 Calendar screen (French) +124900 Calendar screen (German) +12d500 Wav file +12e400 Wav file +12ed00 Wav file +136f00 Wav file +14e700 ISO start +180000 ABFS +181000 Picture start +1f0000 Picture end, boot loader ? +1f8020 Something +1f9000 Unused +As you can see the jpeg data for the menu screens is rather large this is +because it contains a ton of JPEG metadata from photoshop, if this were +to be removed, a lot more of the memory could be used to actually store +pictures. + +ax206 checksum command +---------------------- + +While working on support for the ax206's not quite raw flash access mode +for eeproms with AAI, like the SST25VF080, I found out that at least the +ax206 also has a command to read part of the eeprom and generate a 16 bit +checksum for it. The layout of the scsi cmd buffer for this is as follows: +byte 0: 0xcd (read from dev) +byte 1 - 4: 0 +byte 5: 5 +byte 6: 5 +byte 7 - 8: size of area to checksum, byte 7 == MSB, 0 means 65536 +byte 9 - 10: 0 +byte 11 - 13: address to start checksum, byte 11 == MSB + +And then readback 64 bytes of scsi data, where the first 2 are the 16 bit +checksum of all the bytes in the area with byte 0 being the MSB. + + +Hans de Goede +16 Sep 2012 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/README.ax203-compression b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/README.ax203-compression new file mode 100644 index 00000000..9fab1364 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/README.ax203-compression @@ -0,0 +1,297 @@ +History of the reverse engineering of the ax203 compression +----------------------------------------------------------- + +There are 4 (known) different compression algorithms: + +YUV This algorithm uses a simple YUV format, with the UV members + subsampled at a 2x2 resolution. It uses 5 bits for the Y + values and 6 bits for the U and V values, cramming 4 pixels + into 4 bytes. This is used with firmware v3.3.x (usb-id + 1908:1315) and v3.4.x frames (usb-id 1908:1320) + +YUV-DELTA This version uses a less simple YUV format, it still + subsamples UV at a 2x2 resolution. It then further uses a + delta compression to store 4 values into 2 bytes. Data is + stored in to 4x4 pixels block, Using 6 x 2 bytes, 4 x 4 Y + pixels + 4 U and 4 V pixels. This is used with firmware v3.3.x + (usb-id 1908:1315) and v3.4.x frames (usb-id 1908:1320) + +JPEG (ax3003) Regular JPEG + +JPEG (ax206) Uses a JPEG derived format reverse engineering this one + was a challenge, see below for the full story. This is used with + ax206 based firmware v3.5.x frames (usb-id 1908:0102) + +After some failed attempts by me (Hans de Goede), I asked help +from Bertrik Sikken with reverse engineering the JPEG compression. +He went the route of disassembling the windows binaries for uploading +pictures, and wrote an algorithm description of the decompression on +the picframe wiki: +http://picframe.spritesserver.nl/wiki/index.php/ImageEncodingAx206 + +A copy of this page is included below. + +I used this description to write decompression code. For the decompression +code I started with tinyjpeg, which with I'm familiar from my libv4l +work. The ax203 camlib contains a modified tinyjpeg copy which was +modified to work with ax203's JPEG flavor. Tinyjpeg is: + +/* + * Small jpeg decoder library + * + * Copyright (c) 2006, Luc Saillard + * All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * - Neither the name of the author nor the names of its contributors may be + * used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + */ + +Note that tinyjpeg includes jidctflt.c from libjpeg, see below for +libjpeg's copyright info. + +Once I had working decompression code I needed to write compression code, +as tinyjpeg does not do compression I turned to libjpeg. I did not want +to include a modified libjpeg and luckily with some tricks it was not needed +to include libjpeg code other then jpeg_memsrcdest.c, which is not part of +the standard libjpeg distribution. This code is: + +/* + * jpeg_memsrcdest.c and jidctflt.c + * + * Copyright (C) 1994-1998, Thomas G. Lane. + * This file is part of the Independent JPEG Group's software. + * + * The authors make NO WARRANTY or representation, either express or implied, + * with respect to this software, its quality, accuracy, merchantability, or + * fitness for a particular purpose. This software is provided "AS IS", and you, + * its user, assume the entire risk as to its quality and accuracy. + * + * This software is copyright (C) 1991-1998, Thomas G. Lane. + * All Rights Reserved except as specified below. + * + * Permission is hereby granted to use, copy, modify, and distribute this + * software (or portions thereof) for any purpose, without fee, subject to these + * conditions: + * (1) If any part of the source code for this software is distributed, then this + * README file must be included, with this copyright and no-warranty notice + * unaltered; and any additions, deletions, or changes to the original files + * must be clearly indicated in accompanying documentation. + * (2) If only executable code is distributed, then the accompanying + * documentation must state that "this software is based in part on the work of + * the Independent JPEG Group". + * (3) Permission for use of this software is granted only if the user accepts + * full responsibility for any undesirable consequences; the authors accept + * NO LIABILITY for damages of any kind. + * + * These conditions apply to any software derived from or based on the IJG code, + * not just to the unmodified library. If you use our work, you ought to + * acknowledge us. + * + * Permission is NOT granted for the use of any IJG author's name or company name + * in advertising or publicity relating to this software or products derived from + * it. This software may be referred to only as "the Independent JPEG Group's + * software". + * + * We specifically permit and encourage the use of this software as the basis of + * commercial products, provided that all warranty or liability claims are + * assumed by the product vendor. + */ + +Getting the JPEG compression working was not the end of the story, after this +I could create .dpf files which the windows software would read. But the files +had a "mystery" block in them between the 16 byte header and the quantisation +tables, and the picframe does not grok the files without the mystery block +containing the proper data. It turns out this mystery block contains an 8 byte +info block per MCU which makes it possible to start decoding with a random +MCU, rather then needing to do the decode linearly. This way the picture frame +can do transition effects. The info in each MCU info block consists of +last DC vals for the 3 components and the offset in the huffman bitstream +where the data for this block starts. For more info so the dump of the wiki +page below. + + +Below is a dump of: +http://picframe.spritesserver.nl/wiki/index.php/ImageEncodingAx206 +Made on 30 March 2010. + +Contents + + • 1 Compressed image format + □ 1.1 Introduction + □ 1.2 Image format + ☆ 1.2.1 Header + ☆ 1.2.2 MCU info block + ☆ 1.2.3 DQT table + ☆ 1.2.4 DHT table + ☆ 1.2.5 Entropy coded data + +Compressed image format + +This page describes the currently known information about the compression of +image files used in pictureframes using the ax206 chip. + +Introduction + +The ax206 chip stores images in a JPEG-like format, but with several +modifications and/or parts missing. Images also contain some kind of thumbnail +image. + +To understand the information on this page, it is recommended to have a basic +understanding of JPEG compression. + +Image format + +The image file seems to contain the following parts: + + • a 16-byte header + • a small, low-res version of the image in a kind of raw format (color space + is unknown, but likely YCbCr) + • a JPEG DQT table (but without the DQT marker) containing two JPEG + quantisation tables, one for luma and one for chroma + • a JPEG DHT table (but without the DHT marker) containing four huffman + tables (combinations of luma/chroma, DC/AC) + • the entropy coded JPEG data + +Although the encoding is very much like JPEG, there are no JPEG chunk markers +at all. + +Header + +The image header is contained in the first 16 bytes. + +Some of the fields in the header can be related to values from the JPEG +specification. + +The table below shows all known fields: + +┌───────┬─────────┬───────────────────────────────────────────────────────────┐ +│ │ Related │ │ +│ Byte │ JPEG │ Meaning │ +│ │ field │ │ +├───────┼─────────┼───────────────────────────────────────────────────────────┤ +│0x00/ │SOF: X │Image width, encoded as big-endian │ +│0x01 │ │ │ +├───────┼─────────┼───────────────────────────────────────────────────────────┤ +│0x02/ │SOF: Y │Image height, encoded as big-endian │ +│0x03 │ │ │ +├───────┼─────────┼───────────────────────────────────────────────────────────┤ +│ │SOF: Hi/ │"Resolution" byte, 0 for images without sub-sampling of the│ +│0x04 │Vi │color components, 3 for images that use sub-sampling of the│ +│ │ │color components │ +├───────┼─────────┼───────────────────────────────────────────────────────────┤ +│0x05/ │ │Three numbers, each indicating which quantisation table (0 │ +│0x06/ │DQT: Tq │or 1) should be used for which component (Y, Cb, Cr) │ +│0x07 │ │ │ +├───────┼─────────┼───────────────────────────────────────────────────────────┤ +│0x08/ │ │Three numbers, each indicating which DC huffman table (0 or│ +│0x09/ │SOS: Tdj │1) should be used for which component (Y, Cb, Cr) │ +│0x0A │ │ │ +├───────┼─────────┼───────────────────────────────────────────────────────────┤ +│0x08/ │ │Three numbers, each indicating which AC huffman table (0 or│ +│0x09/ │SOS: Taj │1) should be used for which component (Y, Cb, Cr) │ +│0x0A │ │ │ +├───────┼─────────┼───────────────────────────────────────────────────────────┤ +│0x0E/ │Unknown │Unknown │ +│0x0F │ │ │ +└───────┴─────────┴───────────────────────────────────────────────────────────┘ + +MCU info block + +Immediately after the header there is an MCU info block, this block contains 8 +bytes per MCU which makes it possible to start decoding with a random MCU, +rather then needing to do the decode linearly. This way the picture frame can +do transition effects. The size of this block depends on the number of MCU's +and thus on the "resolution" byte 0x04 from the header. For a resolution value +of 0x00, the size (in bytes) is width * height / 8. For a resolution value of +0x03, the size is width * height / 32. + +The info in each MCU info block consists of last DC vals for the 3 components +and the location in the huffman bitstream where the data for this block starts. +The way the location in the huffman bitstream is coded is, erm, rather +interesting. The contents of this field of the per MCU info is an offset to add +to the start of the MCU info block. An example to make things more clear. Lets +say the huffman compressed data for the 4th MCU starts at location 3066 +(decimal), the information block for the 4th MCU starts at offset 16 + 3 * 8 = +40 (decimal). So the contents of the field coding were the huffman compressed +data for the 4th MCU starts is 3066 - 40 = 3026. So say that the 5th MCU starts +5 bytes later (the 4th one compressed well), then the field coding were the +huffman compressed data starts would contain 3071 - 48 = 3023. Yes this is a +bit weird, but it is how it is. + +┌─────────┬───────────────────────────────────────────────────────────────────┐ +│ Offset │ Meaning │ +├─────────┼───────────────────────────────────────────────────────────────────┤ +│0x00-0x01│Litte Endian 16 bit word storing last DC val for the Y channel │ +├─────────┼───────────────────────────────────────────────────────────────────┤ +│0x02-0x03│Litte Endian 16 bit word storing last DC val for the Cb channel │ +├─────────┼───────────────────────────────────────────────────────────────────┤ +│0x04-0x05│Litte Endian 16 bit word storing last DC val for the Cr channel │ +├─────────┼───────────────────────────────────────────────────────────────────┤ +│ │Litte Endian 16 bit word storing the offset into the image, from │ +│0x06-0x07│the start of this info block! Where the huffman data for this MCU │ +│ │starts │ +└─────────┴───────────────────────────────────────────────────────────────────┘ + +DQT table + +This table is basically a standard JPEG DQT table, but it seems to be missing +its 0xFFDB marker at the start. + +DHT table + +This table is basically a standard JPEG DHT table, but it seems to be missing +its 0xFFC4 marker at the start. + +Entropy coded data + +This seems to be standard huffman encoded coefficient data, with the following +exceptions: + + • there are no stuffing bytes after 0xFF bytes + • after each JPEG MCU (minimum coded unit), the next MCU seems to start at + the next byte-aligned position in the stream + • there is no end-of-image JPEG marker + +The order of components (Y, Cb, Cr) coded in the stream depends on the +resolution byte from the header. + + • For resolution value 0x00, they seem to be interleaved in the following + order: chroma1, chroma2, luma. + • For resolution value 0x03, they seem to be interleaved in the following + order: chroma1, chroma2, luma, luma, luma, luma. The two chroma blocks are + sub-sampled by a factor 2 in this case (and therefore encode for a 16x16 + pixel area), the luma blocks are not sub-sampled (so that's why there are 4 + blocks of 8x8 pixels to cover the same 16x16 pixel area). + +Retrieved from "http://picframe.spritesserver.nl/wiki/index.php/ +ImageEncodingAx206" + +Powered by MediaWiki +GNU Free Documentation License 1.2 + + • This page was last modified 14:09, 30 March 2010. + • This page has been accessed 29 times. + • Content is available under GNU Free Documentation License 1.2. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203.c new file mode 100644 index 00000000..4e0a6ec5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203.c @@ -0,0 +1,1845 @@ +/* Appotech ax203 picframe access library + * + * Copyright (c) 2010-2012 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include +#include +#include <_stdint.h> +#include +#include +#include +#include +#include +#ifdef HAVE_LIBGD +#include +#endif + +#include +#include "ax203.h" +#ifdef HAVE_LIBJPEG +#include "jpeg_memsrcdest.h" +#endif + +static const struct eeprom_info { + const char *name; + uint32_t id; + int mem_size; + int has_4k_sectors; + int pp_64k; +} ax203_eeprom_info[] = { + { "AMIC A25L040", 0x37133037, 524288, 1 }, + { "AMIC A25L080", 0x37143037, 1048576, 1 }, + { "AMIC A25L40P", 0x1320377f, 524288, 0 }, + { "AMIC A25L80P", 0x1420377f, 1048576, 0 }, + { "AMIC A25L16P", 0x1520377f, 2097152, 0 }, + + /* Note the ATmel AT26DF041 id:0x0000441f is fsck-ed up. It doesn't + support ERASE_64K, (only 4K) and SPI_EEPROM_PP is 0x11 rather then + 0x02 (0x02 only programs a single byte). */ + /* I cannot find a datasheet for the ATmel AT26DF081 id:0x0000451f */ + { "ATmel AT26DF161", 0x0000461f, 2097152, 1 }, + { "ATmel AT26DF081A", 0x0001451f, 1048576, 1 }, + { "ATmel AT26DF161A", 0x0001461f, 2097152, 1 }, + { "ATmel AT25DF081", 0x0002451f, 1048576, 1 }, + { "ATmel AT25DF161", 0x0002461f, 2097152, 1 }, + + { "EON EN25B16", 0x1c15201c, 2097152, 0 }, + { "EON EN25B32", 0x1c16201c, 4194304, 0 }, + { "EON EN25F80", 0x1c14311c, 1048576, 1 }, + { "EON EN25F16", 0x1c15311c, 2097152, 1 }, + + { "ESI ES25P80", 0x0014204a, 1048576, 0 }, + { "ESI ES25P16", 0x0015204a, 2097152, 0 }, + + { "ESMT F25L008 (top)", 0x8c14208c, 1048576, 1 }, + { "ESMT F25L008 (bottom)", 0x8c14218c, 1048576, 1 }, + + { "GigaDevice GD25Q40", 0xc81340c8, 524288, 1 }, + { "GigaDevice GD25Q80", 0xc81440c8, 1048576, 1 }, + { "GigaDevice GD25Q16", 0xc81540c8, 2097152, 1 }, + + { "MXIC MX25L4005A", 0xc21320c2, 524288, 1 }, + { "MXIC MX25L8005A", 0xc21420c2, 1048576, 1 }, + { "MXIC MX25L1605A", 0xc21520c2, 2097152, 1 }, + + { "Nantronics N25S80", 0xd51430d5, 1048576, 1 }, + + { "PMC Pm25LV010", 0x007e9d7f, 524288, 0 }, + + { "Spansion S25FL004A", 0x00120201, 524288, 0 }, + { "Spansion S25FL008A", 0x00130201, 1048576, 0 }, + { "Spansion S25FL016A", 0x00140201, 2097152, 0 }, + + { "SST25VF080", 0xbf8e25bf, 1048576, 0, 1 }, + { "SST25VF016", 0xbf4125bf, 2097152, 0, 1 }, + + { "ST M25P08", 0x7f142020, 1048576, 0 }, + { "ST M25P16", 0x7f152020, 2097152, 0 }, + { "ST M25P32", 0x7f162020, 4194304, 0 }, + { "ST M25P64", 0x7f172020, 8388608, 0 }, + + { "Winbond W25P80", 0x001420ef, 1048576, 0 }, + { "Winbond W25P16", 0x001520ef, 2097152, 0 }, + + { "Winbond W25X40", 0x001330ef, 524288, 1 }, + { "Winbond W25X80", 0x001430ef, 1048576, 1 }, + { "Winbond W25X16", 0x001530ef, 2097152, 1 }, + { "Winbond W25X32", 0x001630ef, 4194304, 1 }, + { "Winbond W25X64", 0x001730ef, 8388608, 1 }, + + { "Winbond W25Q80", 0x001440ef, 1048576, 1 }, + { "Winbond W25Q16", 0x001540ef, 2097152, 1 }, + { "Winbond W25Q32", 0x001640ef, 4194304, 1 }, + + { } +}; + +static int +ax203_send_cmd(Camera *camera, int to_dev, char *cmd, int cmd_size, + char *data, int data_size) +{ + char sense_buffer[32]; + + return gp_port_send_scsi_cmd (camera->port, to_dev, cmd, cmd_size, + sense_buffer, sizeof(sense_buffer), data, data_size); +} + +static int +ax203_send_eeprom_cmd(Camera *camera, int to_dev, + char *eeprom_cmd, int eeprom_cmd_size, + char *data, int data_size, char extra_arg) +{ + char cmd_buffer[16]; + int i; + + memset (cmd_buffer, 0, sizeof (cmd_buffer)); + if (to_dev) + cmd_buffer[0] = AX203_TO_DEV; + else + cmd_buffer[0] = AX203_FROM_DEV; + + cmd_buffer[5] = AX203_EEPROM_CMD; + cmd_buffer[6] = eeprom_cmd_size; + cmd_buffer[7] = (data_size >> 16) & 0xff; + cmd_buffer[8] = (data_size >> 8) & 0xff; + cmd_buffer[9] = (data_size) & 0xff; + + for (i = 0; i < eeprom_cmd_size; i++) + cmd_buffer[10 + i] = eeprom_cmd[i]; + + cmd_buffer[15] = extra_arg; + + return ax203_send_cmd (camera, to_dev, cmd_buffer, sizeof(cmd_buffer), + data, data_size); +} + +static int +ax203_get_version(Camera *camera, char *buf) +{ + int ret; + char cmd_buffer[16]; + + memset (cmd_buffer, 0, sizeof (cmd_buffer)); + + cmd_buffer[0] = AX203_FROM_DEV; + cmd_buffer[5] = AX203_GET_VERSION; + cmd_buffer[6] = 1; + cmd_buffer[10] = AX203_GET_VERSION; + + ret = ax203_send_cmd (camera, 0, cmd_buffer, sizeof(cmd_buffer), + buf, 64); + buf[63] = 0; /* ensure 0 termination */ + + return ret; +} + +/* This would be very nice, if only not all devices would answer that they + are a 128x128 pixels device */ +#if 0 +static int +ax203_get_lcd_size(Camera *camera) +{ + char cmd_buffer[16]; + uint8_t data_buffer[4]; + + memset (cmd_buffer, 0, sizeof (cmd_buffer)); + + cmd_buffer[0] = AX203_FROM_DEV; + cmd_buffer[5] = AX203_GET_LCD_SIZE; + cmd_buffer[6] = 0x01; + cmd_buffer[10] = AX203_GET_LCD_SIZE; + + CHECK (ax203_send_cmd (camera, 0, cmd_buffer, sizeof (cmd_buffer), + (char *)data_buffer, sizeof (data_buffer))) + + camera->pl->width = le16atoh (data_buffer); + camera->pl->height = le16atoh (data_buffer + 2); + + return GP_OK; +} +#endif + +static int +ax203_get_checksum(Camera *camera, int address, int size) +{ + int ret; + char cmd_buffer[16]; + uint8_t buf[2]; + + memset (cmd_buffer, 0, sizeof (cmd_buffer)); + + cmd_buffer[0] = AX203_FROM_DEV; + cmd_buffer[5] = AX203_GET_CHECKSUM; + cmd_buffer[6] = AX203_GET_CHECKSUM; + cmd_buffer[7] = (size >> 8) & 0xff; + cmd_buffer[8] = size & 0xff; + cmd_buffer[11] = (address >> 16) & 0xff; + cmd_buffer[12] = (address >> 8) & 0xff; + cmd_buffer[13] = address & 0xff; + + ret = ax203_send_cmd (camera, 0, cmd_buffer, sizeof(cmd_buffer), + (char *)buf, 2); + if (ret < 0) return ret; + + /*return be16atoh(buf);*/ + return (buf[0] << 8) | buf[1]; +} + +static int +ax3003_get_frame_id(Camera *camera) +{ + int ret; + char cmd_buffer[16]; + uint8_t id; + + memset (cmd_buffer, 0, sizeof (cmd_buffer)); + + cmd_buffer[0] = AX3003_FRAME_CMD; + cmd_buffer[1] = AX3003_GET_FRAME_ID; + + ret = ax203_send_cmd (camera, 0, cmd_buffer, sizeof(cmd_buffer), + (char *)&id, 1); + if (ret < 0) return ret; + + return id; +} + +static int +ax3003_get_abfs_start(Camera *camera) +{ + int ret; + char cmd_buffer[16]; + uint8_t buf[2]; + + memset (cmd_buffer, 0, sizeof (cmd_buffer)); + + cmd_buffer[0] = AX3003_FRAME_CMD; + cmd_buffer[1] = AX3003_GET_ABFS_START; + + ret = ax203_send_cmd (camera, 0, cmd_buffer, sizeof(cmd_buffer), + (char *)buf, 2); + if (ret < 0) return ret; + + return ((buf[0] << 8) | buf[1]) * 0x100; + /*return be16atoh(buf) * 0x100;*/ +} + +int +ax203_set_time_and_date(Camera *camera, struct tm *t) +{ + char cmd_buffer[16]; + + memset (cmd_buffer, 0, sizeof (cmd_buffer)); + + cmd_buffer[0] = AX203_SET_TIME; + + cmd_buffer[5] = t->tm_year % 100; + + switch (camera->pl->frame_version) { + case AX3003_FIRMWARE_3_5_x: + /* Note this is what the windows software does, with the + one AX3003 frame I have this does not do anything */ + cmd_buffer[0] = AX3003_FRAME_CMD; + cmd_buffer[1] = AX3003_SET_TIME; + /* fall through */ + case AX203_FIRMWARE_3_3_x: + case AX203_FIRMWARE_3_4_x: + cmd_buffer[6] = t->tm_mon + 1; + cmd_buffer[7] = t->tm_wday; + break; + case AX206_FIRMWARE_3_5_x: + cmd_buffer[6] = 19 + t->tm_year / 100; + cmd_buffer[7] = t->tm_mon + 1; + break; + } + cmd_buffer[8] = t->tm_mday; + cmd_buffer[9] = t->tm_hour; + cmd_buffer[10] = t->tm_min; + cmd_buffer[11] = t->tm_sec; + + return ax203_send_cmd (camera, 0, cmd_buffer, sizeof(cmd_buffer), + NULL, 0); +} + +static int +ax203_eeprom_device_identification(Camera *camera, char *buf) +{ + char cmd = SPI_EEPROM_RDID; + + return ax203_send_eeprom_cmd (camera, 0, &cmd, 1, buf, 64, 0); +} + +static int +ax203_eeprom_release_from_deep_powerdown(Camera *camera) +{ + char cmd = SPI_EEPROM_RDP; + + return ax203_send_eeprom_cmd (camera, 1, &cmd, 1, NULL, 0, 0); +} + +static int +ax203_eeprom_read(Camera *camera, int address, char *buf, int buf_size) +{ + char cmd[4]; + + cmd[0] = SPI_EEPROM_READ; + cmd[1] = (address >> 16) & 0xff; + cmd[2] = (address >> 8) & 0xff; + cmd[3] = (address) & 0xff; + + return ax203_send_eeprom_cmd (camera, 0, cmd, sizeof(cmd), buf, + buf_size, 0); +} + +static int +ax203_eeprom_program_page(Camera *camera, int address, char *buf, int buf_size, + char extra_arg) +{ + char cmd[4]; + + cmd[0] = SPI_EEPROM_PP; + cmd[1] = (address >> 16) & 0xff; + cmd[2] = (address >> 8) & 0xff; + cmd[3] = (address) & 0xff; + + return ax203_send_eeprom_cmd (camera, 1, cmd, sizeof(cmd), buf, + buf_size, extra_arg); +} + +static int +ax203_eeprom_write_enable(Camera *camera) +{ + char cmd = SPI_EEPROM_WREN; + + return ax203_send_eeprom_cmd (camera, 1, &cmd, 1, NULL, 0, 0); +} + +static int +ax203_eeprom_clear_block_protection(Camera *camera) +{ + char cmd[2]; + + cmd[0] = SPI_EEPROM_WRSR; + cmd[1] = 0; + + return ax203_send_eeprom_cmd (camera, 1, cmd, sizeof(cmd), NULL, 0, 0); +} + +static int +ax203_eeprom_erase_4k_sector(Camera *camera, int address) +{ + char cmd[4]; + + cmd[0] = SPI_EEPROM_ERASE_4K; + cmd[1] = (address >> 16) & 0xff; + cmd[2] = (address >> 8) & 0xff; + cmd[3] = (address) & 0xff; + + return ax203_send_eeprom_cmd (camera, 1, cmd, sizeof(cmd), NULL, 0, 0); +} + +static int +ax203_eeprom_erase_64k_sector(Camera *camera, int address) +{ + char cmd[4]; + + cmd[0] = SPI_EEPROM_ERASE_64K; + cmd[1] = (address >> 16) & 0xff; + cmd[2] = (address >> 8) & 0xff; + cmd[3] = (address) & 0xff; + + return ax203_send_eeprom_cmd (camera, 1, cmd, sizeof(cmd), NULL, 0, 0); +} + +static int +ax203_eeprom_wait_ready(Camera *camera) +{ + char cmd = SPI_EEPROM_RDSR; /* Read status */ + char buf[64]; + int count = 0; + + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + case AX203_FIRMWARE_3_4_x: + case AX206_FIRMWARE_3_5_x: + /* Do as windows does, read the status word 64 times, + then check */ + count = 64; + break; + case AX3003_FIRMWARE_3_5_x: + /* On the ax3003 contineously reading the status word + does not work. */ + count = 1; + break; + } + + while (1) { + CHECK (ax203_send_eeprom_cmd (camera, 0, &cmd, 1, + buf, count, 0)) + /* We only need to check the last read */ + if (!(buf[count - 1] & 0x01)) /* Check write in progress bit */ + break; /* No write in progress, done waiting */ + } + return GP_OK; +} + +static int +ax203_read_sector(Camera *camera, int sector, char *buf) +{ + int ret; + if (camera->pl->mem_dump) { + ret = fseek (camera->pl->mem_dump, + sector * SPI_EEPROM_SECTOR_SIZE, SEEK_SET); + if (ret) { + gp_log (GP_LOG_ERROR, "ax203", + "seeking in memdump: %s", strerror(errno)); + return GP_ERROR_IO_READ; + } + ret = fread (buf, 1, SPI_EEPROM_SECTOR_SIZE, + camera->pl->mem_dump); + if (ret != SPI_EEPROM_SECTOR_SIZE) { + if (ret < 0) + gp_log (GP_LOG_ERROR, "ax203", + "reading memdump: %s", + strerror(errno)); + else + gp_log (GP_LOG_ERROR, "ax203", + "short read reading from memdump"); + return GP_ERROR_IO_READ; + } + } else { + CHECK (ax203_eeprom_read (camera, + sector * SPI_EEPROM_SECTOR_SIZE, + buf, SPI_EEPROM_SECTOR_SIZE)) + } + return GP_OK; +} + +static int +ax203_write_sector(Camera *camera, int sector, char *buf) +{ + int ret; + if (camera->pl->mem_dump) { + ret = fseek (camera->pl->mem_dump, + sector * SPI_EEPROM_SECTOR_SIZE, SEEK_SET); + if (ret) { + gp_log (GP_LOG_ERROR, "ax203", + "seeking in memdump: %s", strerror(errno)); + return GP_ERROR_IO_WRITE; + } + ret = fwrite (buf, 1, SPI_EEPROM_SECTOR_SIZE, + camera->pl->mem_dump); + if (ret != SPI_EEPROM_SECTOR_SIZE) { + gp_log (GP_LOG_ERROR, "ax203", + "writing memdump: %s", strerror(errno)); + return GP_ERROR_IO_WRITE; + } + } else { + int i, base = sector * SPI_EEPROM_SECTOR_SIZE; + + for (i = 0; i < SPI_EEPROM_SECTOR_SIZE; i += 256) { + CHECK (ax203_eeprom_write_enable (camera)) + CHECK (ax203_eeprom_program_page (camera, base + i, + buf + i, 256, 0)) + CHECK (ax203_eeprom_wait_ready (camera)) + } + } + return GP_OK; +} + +static int +ax203_erase4k_sector(Camera *camera, int sector) +{ + if (camera->pl->mem_dump) + return GP_OK; + + CHECK (ax203_eeprom_write_enable (camera)) + CHECK (ax203_eeprom_erase_4k_sector (camera, + sector * SPI_EEPROM_SECTOR_SIZE)) + CHECK (ax203_eeprom_wait_ready (camera)) + + return GP_OK; +} + +static int +ax203_erase64k_sector(Camera *camera, int sector) +{ + if (camera->pl->mem_dump) + return GP_OK; + + CHECK (ax203_eeprom_write_enable (camera)) + CHECK (ax203_eeprom_erase_64k_sector (camera, + sector * SPI_EEPROM_SECTOR_SIZE)) + CHECK (ax203_eeprom_wait_ready (camera)) + + return GP_OK; +} + +static int +ax203_check_sector_present(Camera *camera, int sector) +{ + int ret; + + if ((sector + 1) * SPI_EEPROM_SECTOR_SIZE > camera->pl->mem_size) { + gp_log (GP_LOG_ERROR, "ax203", "access beyond end of memory"); + return GP_ERROR_CORRUPTED_DATA; + } + + if (camera->pl->sector_is_present[sector]) + return GP_OK; + + ret = ax203_read_sector(camera, sector, camera->pl->mem + + sector * SPI_EEPROM_SECTOR_SIZE); + if (ret == 0) + camera->pl->sector_is_present[sector] = 1; + + return ret; +} + +static int +ax203_read_mem(Camera *camera, int offset, + void *buf, int len) +{ + int to_copy, sector = offset / SPI_EEPROM_SECTOR_SIZE; + + while (len) { + CHECK (ax203_check_sector_present (camera, sector)) + + to_copy = SPI_EEPROM_SECTOR_SIZE - + (offset % SPI_EEPROM_SECTOR_SIZE); + if (to_copy > len) + to_copy = len; + + memcpy(buf, camera->pl->mem + offset, to_copy); + buf += to_copy; + len -= to_copy; + offset += to_copy; + sector++; + } + return GP_OK; +} + +static int +ax203_write_mem(Camera *camera, int offset, + void *buf, int len) +{ + int to_copy, sector = offset / SPI_EEPROM_SECTOR_SIZE; + + while (len) { + CHECK (ax203_check_sector_present (camera, sector)) + + to_copy = SPI_EEPROM_SECTOR_SIZE - + (offset % SPI_EEPROM_SECTOR_SIZE); + if (to_copy > len) + to_copy = len; + + memcpy(camera->pl->mem + offset, buf, to_copy); + camera->pl->sector_dirty[sector] = 1; + + buf += to_copy; + len -= to_copy; + offset += to_copy; + sector++; + } + return GP_OK; +} + +/* This function reads the parameter block from the eeprom and: + 1) checks some hopefully constant bytes to make sure it is not reading + garbage + 2) Gets the lcd size from the paramter block (ax203_get_lcd_size seems + to result in all frames being detected as being 128x128 pixels). + 3) Determines the compression type for v3.4.x frames + 4) Determines the start of the ABFS +*/ +static int ax203_read_parameter_block(Camera *camera) +{ + uint8_t buf[32], expect[32]; + int i, param_offset = 0, resolution_offset = 0; + int compression_offset = -1, abfs_start_offset = 0, expect_size = 0; + const int valid_resolutions[][2] = { + { 96, 64 }, + { 120, 160 }, + { 128, 128 }, + { 132, 132 }, + { 128, 160 }, + { 160, 120 }, + { 160, 128 }, + { 240, 320 }, + { 320, 240 }, + { } + }; + const uint8_t expect_33x[] = { + 0x13, 0x15, 0, 0, 0x02, 0x01, 0x02, 0x01, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; + const uint8_t expect_34x[] = { + 0x13, 0x15, 0, 0, 0, 0, 0, 0x01, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; + const uint8_t expect_35x[] = { + 0x00, 0x00, 0, 0, 0, 0, 0, 0xd8 }; + + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + param_offset = 0x50; + resolution_offset = 2; + abfs_start_offset = 16; + memcpy (expect, expect_33x, sizeof(expect_33x)); + expect_size = sizeof(expect_33x); + /* Byte 4 of the parameter block probably is the compression + type like with v3.4.x, but this needs confirmation. */ + camera->pl->compression_version = AX203_COMPRESSION_YUV; + break; + case AX203_FIRMWARE_3_4_x: + param_offset = 0x50; + resolution_offset = 2; + compression_offset = 6; + abfs_start_offset = 16; + memcpy (expect, expect_34x, sizeof(expect_34x)); + expect_size = sizeof(expect_34x); + break; + case AX206_FIRMWARE_3_5_x: + param_offset = 0x20; + abfs_start_offset = 2; + resolution_offset = 3; + memcpy (expect, expect_35x, sizeof(expect_35x)); + expect_size = sizeof(expect_35x); + /* ax206 + 3.5.x firmware has a fixed compression type */ + camera->pl->compression_version = AX206_COMPRESSION_JPEG; + break; + case AX3003_FIRMWARE_3_5_x: + i = ax3003_get_frame_id (camera); + if (i < 0) return i; + switch (i) { + case 0: + case 1: + camera->pl->width = 320; + camera->pl->height = 240; + break; + default: + gp_log (GP_LOG_ERROR, "ax203", + "unknown ax3003 frame id: %d", i); + return GP_ERROR_MODEL_NOT_FOUND; + } + + i = ax3003_get_abfs_start (camera); + if (i < 0) return i; + camera->pl->fs_start = i; + + camera->pl->compression_version = AX3003_COMPRESSION_JPEG; + + goto verify_parameters; + } + + CHECK (ax203_read_mem (camera, param_offset, buf, sizeof(buf))) + + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + /* 1 byte width / height */ + camera->pl->width = buf[resolution_offset ]; + camera->pl->height = buf[resolution_offset + 1]; + expect[resolution_offset ] = camera->pl->width; + expect[resolution_offset + 1] = camera->pl->height; + break; + case AX203_FIRMWARE_3_4_x: + case AX206_FIRMWARE_3_5_x: + /* 2 byte little endian width / height */ + camera->pl->width = le16atoh (buf + resolution_offset); + camera->pl->height = le16atoh (buf + resolution_offset + 2); + htole16a(expect + resolution_offset , camera->pl->width); + htole16a(expect + resolution_offset + 2, camera->pl->height); + break; + case AX3003_FIRMWARE_3_5_x: + /* Never reached, here to silence a compiler warning */ + break; + } + + if (compression_offset != -1) { + i = buf[compression_offset]; + switch (i) { + case 2: + camera->pl->compression_version = + AX203_COMPRESSION_YUV; + break; + case 3: + camera->pl->compression_version = + AX203_COMPRESSION_YUV_DELTA; + break; + default: + gp_log (GP_LOG_ERROR, "ax203", + "unknown compression version: %d", i); + return GP_ERROR_MODEL_NOT_FOUND; + } + expect[compression_offset] = i; + } + + i = buf[abfs_start_offset]; + camera->pl->fs_start = i * 0x10000; + expect[abfs_start_offset] = i; + + if (memcmp (buf, expect, expect_size)) { + gp_log (GP_LOG_ERROR, "ax203", + "unexpected contents of parameter block"); + return GP_ERROR_MODEL_NOT_FOUND; + } + +verify_parameters: + for (i = 0; valid_resolutions[i][0]; i++) + if (valid_resolutions[i][0] == camera->pl->width && + valid_resolutions[i][1] == camera->pl->height) + break; + + if (!valid_resolutions[i][0]) { + gp_log (GP_LOG_ERROR, "ax203", "unknown resolution: %dx%d", + camera->pl->width, camera->pl->height); + return GP_ERROR_MODEL_NOT_FOUND; + } + + CHECK (ax203_read_mem (camera, camera->pl->fs_start, buf, 4)) + if (memcmp (buf, AX203_ABFS_MAGIC, 4)) { + gp_log (GP_LOG_ERROR, "ax203", "ABFS magic not found at: %x", + camera->pl->fs_start); + return GP_ERROR_MODEL_NOT_FOUND; + } + + GP_DEBUG ("lcd size %dx%d, compression ver: %d, fs-start: %x", + camera->pl->width, camera->pl->height, + camera->pl->compression_version, camera->pl->fs_start); + + return GP_OK; +} + +static int ax203_check_file_index(Camera *camera, int idx) +{ + int count; + + if (idx < 0) { + gp_log (GP_LOG_ERROR, "ax203", + "file index < 0"); + return GP_ERROR_BAD_PARAMETERS; + } + + count = ax203_read_filecount (camera); + if (count < 0) return count; + + if (idx >= count) { + gp_log (GP_LOG_ERROR, "ax203", + "file index beyond end of ABFS"); + return GP_ERROR_BAD_PARAMETERS; + } + + return GP_OK; +} + +int +ax203_filesize(Camera *camera) +{ + switch (camera->pl->compression_version) { + case AX203_COMPRESSION_YUV: + return camera->pl->width * camera->pl->height; + case AX203_COMPRESSION_YUV_DELTA: + return camera->pl->width * camera->pl->height * 3 / 4; + case AX206_COMPRESSION_JPEG: + case AX3003_COMPRESSION_JPEG: + /* Variable size */ + return 0; + } + /* Never reached */ + return GP_ERROR_NOT_SUPPORTED; +} + +static int +ax203_max_filecount(Camera *camera) +{ + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + case AX203_FIRMWARE_3_4_x: + return (AX203_ABFS_SIZE - AX203_ABFS_FILE_OFFSET (0)) / 2; + case AX206_FIRMWARE_3_5_x: + return (AX203_ABFS_SIZE - AX206_ABFS_FILE_OFFSET (0)) / + sizeof(struct ax206_v3_5_x_raw_fileinfo); + case AX3003_FIRMWARE_3_5_x: + return (AX203_ABFS_SIZE - AX3003_ABFS_FILE_OFFSET (0)) / + sizeof(struct ax3003_v3_5_x_raw_fileinfo); + } + /* Never reached */ + return GP_ERROR_NOT_SUPPORTED; +} + +static int +ax203_read_v3_3_x_v3_4_x_filecount(Camera *camera) +{ + /* The v3.3.x and v3.4.x firmware ABFS keeps a single byte file count + at (camera->pl->fs_start + AX203_ABFS_COUNT_OFFSET) However the + frame does not seem to care about this. + So always return the maximum number of entries the ABFS can contain + (and rely on fileinfo.present to figure out how many files there + actually are). */ + return ax203_max_filecount (camera); +} + +static int +ax203_write_v3_3_x_v3_4_x_filecount(Camera *camera, int count) +{ + uint8_t c = count; + + /* Despite the frame not caring, we do write the filecount just + like windows does. */ + CHECK (ax203_write_mem (camera, + camera->pl->fs_start + AX203_ABFS_COUNT_OFFSET, + &c, 1)) + return GP_OK; +} + +static int +ax203_read_v3_5_x_filecount(Camera *camera) +{ + /* The v3.5.x firmware ABFS does not contain a separate file count, + so always return the maximum number of entries it can contain + (and rely on fileinfo.present to figure out how many files there + actually are). */ + return ax203_max_filecount (camera); +} + +static int +ax203_write_v3_5_x_filecount(Camera *camera, int count) +{ + /* This is a no-op as the v3.5.x firmware ABFS does not contain a + separate file count */ + return GP_OK; +} + +static +int ax203_read_v3_3_x_v3_4_x_fileinfo(Camera *camera, int idx, + struct ax203_fileinfo *fileinfo) +{ + uint8_t buf[2]; + + CHECK (ax203_read_mem (camera, + camera->pl->fs_start + + AX203_ABFS_FILE_OFFSET (idx), + buf, 2)) + + /*fileinfo->address = le16atoh (buf) << 8;*/ + fileinfo->address = (buf[0] | (buf[1] << 8)) << 8; + fileinfo->size = ax203_filesize (camera); + fileinfo->present = fileinfo->address? 1 : 0; + + return GP_OK; +} + +static +int ax203_write_v3_3_x_v3_4_x_fileinfo(Camera *camera, int idx, + struct ax203_fileinfo *fileinfo) +{ + uint8_t buf[2]; + + if (fileinfo->address & 0xff) { + gp_log (GP_LOG_ERROR, "ax203", "LSB of address is not 0"); + return GP_ERROR_BAD_PARAMETERS; + } + + if (!fileinfo->present) + fileinfo->address = 0; + + /*htole16a(buf, fileinfo->address >> 8);*/ + buf[0] = (fileinfo->address >> 8) & 0xff; + buf[1] = (fileinfo->address >>16) & 0xff; + CHECK (ax203_write_mem (camera, + camera->pl->fs_start + + AX203_ABFS_FILE_OFFSET (idx), + buf, 2)) + + return GP_OK; +} + +static +int ax206_read_v3_5_x_fileinfo(Camera *camera, int idx, + struct ax203_fileinfo *fileinfo) +{ + struct ax206_v3_5_x_raw_fileinfo raw; + + CHECK (ax203_read_mem (camera, + camera->pl->fs_start + + AX206_ABFS_FILE_OFFSET (idx), + &raw, sizeof(raw))) + + fileinfo->present = raw.present == 0x01; + fileinfo->address = le32toh (raw.address); + fileinfo->size = le16toh (raw.size); + + return GP_OK; +} + +static +int ax206_write_v3_5_x_fileinfo(Camera *camera, int idx, + struct ax203_fileinfo *fileinfo) +{ + struct ax206_v3_5_x_raw_fileinfo raw; + + raw.present = fileinfo->present; + raw.address = htole32(fileinfo->address); + raw.size = htole16(fileinfo->size); + + CHECK (ax203_write_mem (camera, + camera->pl->fs_start + + AX206_ABFS_FILE_OFFSET (idx), + &raw, sizeof(raw))) + + return GP_OK; +} + +static +int ax3003_read_v3_5_x_fileinfo(Camera *camera, int idx, + struct ax203_fileinfo *fileinfo) +{ + struct ax3003_v3_5_x_raw_fileinfo raw; + + CHECK (ax203_read_mem (camera, + camera->pl->fs_start + + AX3003_ABFS_FILE_OFFSET (idx), + &raw, sizeof(raw))) + + if (raw.address == 0xffff || raw.size == 0xffff) { + memset(fileinfo, 0, sizeof(*fileinfo)); + return GP_OK; + } + + fileinfo->present = raw.address && raw.size; + fileinfo->address = be16toh (raw.address) * 0x100; + fileinfo->size = be16toh (raw.size) * 0x100; + + return GP_OK; +} + +static +int ax3003_write_v3_5_x_fileinfo(Camera *camera, int idx, + struct ax203_fileinfo *fileinfo) +{ + struct ax3003_v3_5_x_raw_fileinfo raw; + + if (fileinfo->address & 0xff) { + gp_log (GP_LOG_ERROR, "ax203", "LSB of address is not 0"); + return GP_ERROR_BAD_PARAMETERS; + } + + if (fileinfo->size & 0xff) { + gp_log (GP_LOG_ERROR, "ax203", "LSB of size is not 0"); + return GP_ERROR_BAD_PARAMETERS; + } + + if (fileinfo->present) { + raw.address = htobe16(fileinfo->address / 0x100); + raw.size = htobe16(fileinfo->size / 0x100); + } else { + raw.address = 0; + raw.size = 0; + } + + CHECK (ax203_write_mem (camera, + camera->pl->fs_start + + AX3003_ABFS_FILE_OFFSET (idx), + &raw, sizeof(raw))) + + return GP_OK; +} + +/***************** Begin "public" functions *****************/ + +int +ax203_read_filecount(Camera *camera) +{ + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + case AX203_FIRMWARE_3_4_x: + return ax203_read_v3_3_x_v3_4_x_filecount (camera); + case AX206_FIRMWARE_3_5_x: + case AX3003_FIRMWARE_3_5_x: + return ax203_read_v3_5_x_filecount (camera);; + } + /* Never reached */ + return GP_ERROR_NOT_SUPPORTED; +} + +static int +ax203_update_filecount(Camera *camera) +{ + int i, max, count = 0; + + /* "Calculate" the real file count */ + max = ax203_max_filecount (camera); + for (i = 0; i < max; i++) { + if (ax203_file_present (camera, i)) + count = i + 1; + } + + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + case AX203_FIRMWARE_3_4_x: + return ax203_write_v3_3_x_v3_4_x_filecount (camera, count); + case AX206_FIRMWARE_3_5_x: + case AX3003_FIRMWARE_3_5_x: + return ax203_write_v3_5_x_filecount (camera, count); + } + /* Never reached */ + return GP_ERROR_NOT_SUPPORTED; +} + +static +int ax203_read_fileinfo(Camera *camera, int idx, + struct ax203_fileinfo *fileinfo) +{ + CHECK (ax203_check_file_index (camera, idx)) + + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + case AX203_FIRMWARE_3_4_x: + return ax203_read_v3_3_x_v3_4_x_fileinfo (camera, idx, + fileinfo); + case AX206_FIRMWARE_3_5_x: + return ax206_read_v3_5_x_fileinfo (camera, idx, fileinfo); + case AX3003_FIRMWARE_3_5_x: + return ax3003_read_v3_5_x_fileinfo (camera, idx, fileinfo); + } + /* Never reached */ + return GP_ERROR_NOT_SUPPORTED; +} + +static +int ax203_write_fileinfo(Camera *camera, int idx, + struct ax203_fileinfo *fileinfo) +{ + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + case AX203_FIRMWARE_3_4_x: + return ax203_write_v3_3_x_v3_4_x_fileinfo (camera, idx, + fileinfo); + case AX206_FIRMWARE_3_5_x: + return ax206_write_v3_5_x_fileinfo (camera, idx, fileinfo); + case AX3003_FIRMWARE_3_5_x: + return ax3003_write_v3_5_x_fileinfo (camera, idx, fileinfo); + } + /* Never reached */ + return GP_ERROR_NOT_SUPPORTED; +} + +int +ax203_file_present(Camera *camera, int idx) +{ + struct ax203_fileinfo fileinfo; + + CHECK (ax203_read_fileinfo (camera, idx, &fileinfo)) + + return fileinfo.present; +} + +static int +ax203_decode_image(Camera *camera, char *src, int src_size, int **dest) +{ +#ifdef HAVE_LIBGD + int ret; + unsigned int x, y, width, height, row_skip = 0; + unsigned char *components[3]; +#ifdef HAVE_LIBJPEG + struct jpeg_decompress_struct dinfo; + struct jpeg_error_mgr jderr; + JSAMPLE row[camera->pl->width * 3]; + JSAMPROW row_pointer[1] = { row }; +#endif + + switch (camera->pl->compression_version) { + case AX203_COMPRESSION_YUV: + ax203_decode_yuv (src, dest, camera->pl->width, + camera->pl->height); + return GP_OK; + case AX203_COMPRESSION_YUV_DELTA: + ax203_decode_yuv_delta (src, dest, camera->pl->width, + camera->pl->height); + return GP_OK; + case AX206_COMPRESSION_JPEG: + /* Note this uses a modified tinyjpeg which was modified to + handle the AX206' custom JPEG format (the AX3003 uses + normal JPEG compression). */ + if (!camera->pl->jdec) { + camera->pl->jdec = tinyjpeg_init (); + if (!camera->pl->jdec) + return GP_ERROR_NO_MEMORY; + } + + /* Hack for width / heights which are not a multiple of 16 */ + if (camera->pl->width % 16 || camera->pl->height % 16) { + width = (camera->pl->width + 15) & ~15; + height = (camera->pl->height + 15) & ~15; + htobe16a(src, width); + htobe16a(src + 2, height); + row_skip = (width - camera->pl->width) * 3; + } + ret = tinyjpeg_parse_header (camera->pl->jdec, + (unsigned char *)src, src_size); + if (ret) { + gp_log (GP_LOG_ERROR, "ax203", + "Error parsing header: %s", + tinyjpeg_get_errorstring (camera->pl->jdec)); + return GP_ERROR_CORRUPTED_DATA; + } + if (!row_skip) { + tinyjpeg_get_size (camera->pl->jdec, &width, &height); + if ((int)width != camera->pl->width || + (int)height != camera->pl->height) { + gp_log (GP_LOG_ERROR, "ax203", + "Hdr dimensions %ux%u don't match lcd %dx%d", + width, height, + camera->pl->width, camera->pl->height); + return GP_ERROR_CORRUPTED_DATA; + } + } + ret = tinyjpeg_decode (camera->pl->jdec); + if (ret) { + gp_log (GP_LOG_ERROR, "ax203", + "Error decoding JPEG data: %s", + tinyjpeg_get_errorstring (camera->pl->jdec)); + return GP_ERROR_CORRUPTED_DATA; + } + tinyjpeg_get_components (camera->pl->jdec, components); + for (y = 0; y < camera->pl->height; y++) { + for (x = 0; x < camera->pl->width; x++) { + dest[y][x] = gdTrueColor (components[0][0], + components[0][1], + components[0][2]); + components[0] += 3; + } + components[0] += row_skip; + } + return GP_OK; + case AX3003_COMPRESSION_JPEG: +#ifdef HAVE_LIBJPEG + dinfo.err = jpeg_std_error (&jderr); + jpeg_create_decompress (&dinfo); + jpeg_mem_src (&dinfo, (unsigned char *)src, src_size); + jpeg_read_header (&dinfo, TRUE); + jpeg_start_decompress (&dinfo); + if (dinfo.output_width != camera->pl->width || + dinfo.output_height != camera->pl->height || + dinfo.output_components != 3 || + dinfo.out_color_space != JCS_RGB) { + gp_log (GP_LOG_ERROR, "ax203", + "Wrong JPEG header parameters: %dx%d, " + "%d components, colorspace: %d", + dinfo.output_width, dinfo.output_height, + dinfo.output_components, + dinfo.out_color_space); + return GP_ERROR_CORRUPTED_DATA; + } + + for (y = 0; y < dinfo.output_height; y++) { + jpeg_read_scanlines (&dinfo, row_pointer, 1); + for (x = 0; x < dinfo.output_width; x++) { + dest[y][x] = gdTrueColor (row[x * 3 + 0], + row[x * 3 + 1], + row[x * 3 + 2]); + } + } + jpeg_finish_decompress (&dinfo); + jpeg_destroy_decompress (&dinfo); + return GP_OK; +#else + gp_log(GP_LOG_ERROR,"ax203", "jpeg decompression not supported - no libjpeg during build"); + return GP_ERROR_NOT_SUPPORTED; +#endif + break; + } +#endif + gp_log(GP_LOG_ERROR,"ax203", "GD decompression not supported - no libGD present during build"); + /* Never reached */ + return GP_ERROR_NOT_SUPPORTED; +} + +/* Returns the number of bytes of dest used or a negative error code */ +static int +ax203_encode_image(Camera *camera, int **src, char *dest, int dest_size) +{ +#ifdef HAVE_LIBGD + int size = ax203_filesize (camera); +#ifdef HAVE_LIBJPEG + int x, y; + struct jpeg_compress_struct cinfo; + struct jpeg_error_mgr jcerr; + JOCTET *jpeg_dest = NULL; + unsigned long jpeg_size = 0; + JSAMPLE row[camera->pl->width * 3]; + JSAMPROW row_pointer[1] = { row }; +#endif + + if (dest_size < size) + return GP_ERROR_FIXED_LIMIT_EXCEEDED; + + switch (camera->pl->compression_version) { + case AX203_COMPRESSION_YUV: + ax203_encode_yuv (src, dest, camera->pl->width, + camera->pl->height); + return size; + case AX203_COMPRESSION_YUV_DELTA: + ax203_encode_yuv_delta (src, dest, camera->pl->width, + camera->pl->height); + return size; + case AX206_COMPRESSION_JPEG: +#if defined(HAVE_LIBGD) && defined(HAVE_LIBJPEG) + return ax206_compress_jpeg (camera, src, + (uint8_t *)dest, dest_size, + camera->pl->width, + camera->pl->height); +#else + return GP_ERROR_NOT_SUPPORTED; +#endif + case AX3003_COMPRESSION_JPEG: +#ifdef HAVE_LIBJPEG + cinfo.err = jpeg_std_error (&jcerr); + jpeg_create_compress (&cinfo); + jpeg_mem_dest (&cinfo, &jpeg_dest, &jpeg_size); + cinfo.image_width = camera->pl->width; + cinfo.image_height = camera->pl->height; + cinfo.input_components = 3; + cinfo.in_color_space = JCS_RGB; + jpeg_set_defaults (&cinfo); + jpeg_start_compress (&cinfo, TRUE); + for (y = 0; y < cinfo.image_height; y++) { + for (x = 0; x < cinfo.image_width; x++) { + int p = src[y][x]; + row[x * 3 + 0] = gdTrueColorGetRed(p); + row[x * 3 + 1] = gdTrueColorGetGreen(p); + row[x * 3 + 2] = gdTrueColorGetBlue(p); + } + jpeg_write_scanlines (&cinfo, row_pointer, 1); + } + jpeg_finish_compress (&cinfo); + jpeg_destroy_compress (&cinfo); + + if (jpeg_size > dest_size) { + free (jpeg_dest); + gp_log (GP_LOG_ERROR, "ax203", + "JPEG is bigger then buffer"); + return GP_ERROR_FIXED_LIMIT_EXCEEDED; + } + memcpy (dest, jpeg_dest, jpeg_size); + free (jpeg_dest); + /* Round size up to a multiple of 256 because of ax3003 + abfs size granularity. */ + return (jpeg_size + 0xff) & ~0xff; +#else + return GP_ERROR_NOT_SUPPORTED; +#endif + } + /* Never reached */ +#endif + gp_log(GP_LOG_ERROR,"ax203", "GD decompression not supported - no libGD present during build"); + return GP_ERROR_NOT_SUPPORTED; +} + +static int +ax203_defrag_memory(Camera *camera) +{ + char **raw_pictures; + struct ax203_fileinfo *fileinfo; + int i, count, ret = GP_OK; + + count = ax203_read_filecount (camera); + if (count < 0) return count; + + raw_pictures = calloc (count, sizeof (char *)); + fileinfo = calloc (count, sizeof (struct ax203_fileinfo)); + if (!raw_pictures || !fileinfo) { + free (raw_pictures); free (fileinfo); + gp_log (GP_LOG_ERROR, "ax203", "allocating memory"); + return GP_ERROR_NO_MEMORY; + } + + /* First read all pictures in raw format */ + for (i = 0; i < count; i++) { + ret = ax203_read_fileinfo (camera, i, &fileinfo[i]); + if (ret < 0) goto cleanup; + + if (!fileinfo[i].present) + continue; + + ret = ax203_read_raw_file(camera, i, &raw_pictures[i]); + if (ret < 0) goto cleanup; + } + + /* Delete all pictures from the frame */ + ret = ax203_delete_all (camera); + if (ret < 0) goto cleanup; + + /* An last write them back (in one contineous block) */ + for (i = 0; i < count; i++) { + if (!fileinfo[i].present) + continue; + + ret = ax203_write_raw_file (camera, i, raw_pictures[i], + fileinfo[i].size); + if (ret < 0) { + gp_log (GP_LOG_ERROR, "ax203", + "AAI error writing back images during " + "defragmentation some images will be lost!"); + break; + } + } +cleanup: + for (i = 0; i < count; i++) + free (raw_pictures[i]); + free (raw_pictures); + free (fileinfo); + + return ret; +} + +int +ax203_read_raw_file(Camera *camera, int idx, char **raw) +{ + struct ax203_fileinfo fileinfo; + int ret; + + *raw = NULL; + + CHECK (ax203_read_fileinfo (camera, idx, &fileinfo)) + + if (!fileinfo.present) { + gp_log (GP_LOG_ERROR, "ax203", + "trying to read a deleted file"); + return GP_ERROR_BAD_PARAMETERS; + } + + /* Allocate 1 extra byte as tinyjpeg's huffman decoding sometimes + reads a few bits more then it needs */ + *raw = malloc (fileinfo.size + 1); + if (!*raw) { + gp_log (GP_LOG_ERROR, "ax203", "allocating memory"); + return GP_ERROR_NO_MEMORY; + } + + ret = ax203_read_mem (camera, fileinfo.address, *raw, fileinfo.size); + if (ret < 0) { + free (*raw); + *raw = NULL; + return ret; + } + + return fileinfo.size; +} + +int +ax203_read_file(Camera *camera, int idx, int **rgb24) +{ + int ret; + char *src; + + ret = ax203_read_raw_file (camera, idx, &src); + if (ret < 0) return ret; + + ret = ax203_decode_image (camera, src, ret + 1, rgb24); + free(src); + + return ret; +} + +/* ax203_write_file() helper functions */ + +/* The picture table in ABFS does not necessarily lists the pictures + in the order they are stored in memory, but when looking for a hole + in memory to store a new picture we need a list of used memory blocks + in memory order. So we build one here. */ +static int +ax203_fileinfo_cmp(const void *p1, const void *p2) +{ + const struct ax203_fileinfo *f1 = p1; + const struct ax203_fileinfo *f2 = p2; + return f1->address - f2->address; +} + +static int +ax203_build_used_mem_table(Camera *camera, struct ax203_fileinfo *table) +{ + int i, count, found = 0; + struct ax203_fileinfo fileinfo; + + count = ax203_read_filecount (camera); + if (count < 0) return count; + + /* The beginning of the memory is used by the CD image and stuff */ + fileinfo.address = 0; + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + case AX203_FIRMWARE_3_4_x: + fileinfo.size = camera->pl->fs_start + AX203_PICTURE_OFFSET; + break; + case AX206_FIRMWARE_3_5_x: + fileinfo.size = camera->pl->fs_start + AX206_PICTURE_OFFSET; + break; + case AX3003_FIRMWARE_3_5_x: + fileinfo.size = camera->pl->fs_start + AX3003_PICTURE_OFFSET; + break; + } + fileinfo.present = 1; + table[found++] = fileinfo; + + for (i = 0; i < count; i++) { + CHECK (ax203_read_fileinfo (camera, i, &fileinfo)) + if (!fileinfo.present) + continue; + table[found++] = fileinfo; + } + qsort (table, found, sizeof(struct ax203_fileinfo), + ax203_fileinfo_cmp); + + /* Add a last memory used region which starts at the end of memory + the size does not matter as this is the last entry. */ + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + case AX203_FIRMWARE_3_4_x: + case AX206_FIRMWARE_3_5_x: + fileinfo.address = camera->pl->mem_size; + break; + case AX3003_FIRMWARE_3_5_x: + fileinfo.address = camera->pl->mem_size - AX3003_BL_SIZE; + break; + } + + fileinfo.size = 0; + fileinfo.present = 1; + table[found++] = fileinfo; + + return found; +} + +/* Find a free slot in the ABFS table to store the fileinfo */ +static int +ax203_find_free_abfs_slot(Camera *camera) +{ + int i, max; + struct ax203_fileinfo fileinfo; + + max = ax203_max_filecount (camera); + for (i = 0; i < max; i++) { + CHECK (ax203_read_fileinfo (camera, i, &fileinfo)) + if (!fileinfo.present) + return i; + } + + gp_log (GP_LOG_ERROR, "ax203", "no free slot in ABFS ??"); + return GP_ERROR_NO_SPACE; +} + +int +ax203_write_raw_file(Camera *camera, int idx, char *buf, int size) +{ + struct ax203_fileinfo fileinfo; + struct ax203_fileinfo used_mem[AX203_ABFS_SIZE / 2]; + int i, hole_size, used_mem_count, prev_end, free; + +retry: + used_mem_count = ax203_build_used_mem_table (camera, used_mem); + if (used_mem_count < 0) return used_mem_count; + + /* Try to find a large enough "hole" in the memory */ + for (i = 1, free = 0; i < used_mem_count; i++, free += hole_size) { + prev_end = used_mem[i - 1].address + used_mem[i - 1].size; + hole_size = used_mem[i].address - prev_end; + if (hole_size) + GP_DEBUG ("found a hole at: %08x, of %d bytes " + "(need %d)\n", prev_end, hole_size, size); + if (hole_size >= size) { + /* bingo we have a large enough hole */ + fileinfo.address = prev_end; + fileinfo.size = size; + fileinfo.present = 1; + CHECK (ax203_write_fileinfo (camera, idx, + &fileinfo)) + CHECK (ax203_update_filecount (camera)) + CHECK (ax203_write_mem (camera, fileinfo.address, + buf, size)) + return GP_OK; + } + } + + if (free >= size) { + gp_log (GP_LOG_DEBUG, "ax203", + "not enough contineous freespace to add file, " + "defragmenting memory"); + CHECK (ax203_defrag_memory (camera)) + goto retry; + } + + gp_log (GP_LOG_ERROR, "ax203", "not enough freespace to add file"); + return GP_ERROR_NO_SPACE; +} + +int +ax203_write_file(Camera *camera, int **rgb24) +{ + const int buf_size = camera->pl->width * camera->pl->height; + char buf[buf_size]; + int size, abfs_slot; + + size = ax203_encode_image (camera, rgb24, buf, buf_size); + if (size < 0) return size; + + abfs_slot = ax203_find_free_abfs_slot (camera); + if (abfs_slot < 0) return abfs_slot; + + CHECK (ax203_write_raw_file (camera, abfs_slot, buf, size)) + + return GP_OK; +} + +int +ax203_delete_file(Camera *camera, int idx) +{ + struct ax203_fileinfo fileinfo; + + CHECK (ax203_read_fileinfo (camera, idx, &fileinfo)) + + if (!fileinfo.present) { + gp_log (GP_LOG_ERROR, "ax203", + "trying to delete an already deleted file"); + return GP_ERROR_BAD_PARAMETERS; + } + + fileinfo.present = 0; + CHECK (ax203_write_fileinfo (camera, idx, &fileinfo)) + CHECK (ax203_update_filecount (camera)) + + return GP_OK; +} + +int +ax203_delete_all(Camera *camera) +{ + char buf[AX203_ABFS_SIZE]; + int size, file0_offset = 0; + + switch (camera->pl->frame_version) { + case AX203_FIRMWARE_3_3_x: + case AX203_FIRMWARE_3_4_x: + file0_offset = AX203_ABFS_FILE_OFFSET (0); + break; + case AX206_FIRMWARE_3_5_x: + file0_offset = AX206_ABFS_FILE_OFFSET (0); + break; + case AX3003_FIRMWARE_3_5_x: + file0_offset = AX3003_ABFS_FILE_OFFSET (0); + break; + } + + size = AX203_ABFS_SIZE - file0_offset; + memset(buf, 0, size); + CHECK (ax203_write_mem (camera, camera->pl->fs_start + file0_offset, + buf, size)) + CHECK (ax203_update_filecount (camera)) + + return GP_OK; +} + +/* bss = block start sector */ +static int +ax203_commit_block_4k(Camera *camera, int bss) +{ + int block_sector_size = SPI_EEPROM_BLOCK_SIZE / SPI_EEPROM_SECTOR_SIZE; + int i; + + for (i = 0; i < block_sector_size; i++) { + if (!camera->pl->sector_dirty[bss + i]) + continue; + + CHECK (ax203_erase4k_sector (camera, bss + i)) + CHECK (ax203_write_sector (camera, bss + i, + camera->pl->mem + + (bss + i) * + SPI_EEPROM_SECTOR_SIZE)) + camera->pl->sector_dirty[bss + i] = 0; + } + return GP_OK; +} + +static int +ax203_commit_block_64k(Camera *camera, int bss) +{ + int block_sector_size = SPI_EEPROM_BLOCK_SIZE / SPI_EEPROM_SECTOR_SIZE; + int i; + + /* Make sure we have read the entire block before erasing it !! */ + for (i = 0; i < block_sector_size; i++) + CHECK (ax203_check_sector_present (camera, bss + i)) + + /* Erase the block */ + CHECK (ax203_erase64k_sector (camera, bss)) + + /* And re-program all sectors in the block */ + for (i = 0; i < block_sector_size; i++) { + CHECK (ax203_write_sector (camera, bss + i, + camera->pl->mem + + (bss + i) * + SPI_EEPROM_SECTOR_SIZE)) + camera->pl->sector_dirty[bss + i] = 0; + } + return GP_OK; +} + +/* The ax3003 and the ax206 with AAI capable eeproms can program 64k at once, + this is probably done by special handling inside the firmware. */ +static int +ax203_commit_block_64k_at_once(Camera *camera, int bss) +{ + int block_sector_size = SPI_EEPROM_BLOCK_SIZE / SPI_EEPROM_SECTOR_SIZE; + int i, address = bss * SPI_EEPROM_SECTOR_SIZE; + int checksum = 0; + char extra_arg = 0; + + /* The ax206 (and we assume the same applies for ax203, untested!): + 1) Needs the last byte of the scsi cmd to be 2 to enable 64k pp + 2) Has an extra checksum function, which we might as well use. */ + if (camera->pl->frame_version != AX3003_FIRMWARE_3_5_x) { + extra_arg = 2; + checksum = 1; + } + + /* Make sure we have read the entire block before erasing it !! */ + for (i = 0; i < block_sector_size; i++) + CHECK (ax203_check_sector_present (camera, bss + i)) + + if (!camera->pl->block_protection_removed) { + CHECK (ax203_eeprom_write_enable (camera)) + CHECK (ax203_eeprom_clear_block_protection (camera)) + CHECK (ax203_eeprom_wait_ready (camera)) + camera->pl->block_protection_removed = 1; + } + + /* Erase the block */ + CHECK (ax203_erase64k_sector (camera, bss)) + + /* program the block in one large 64k page write */ + CHECK (ax203_eeprom_write_enable (camera)) + CHECK (ax203_eeprom_program_page (camera, address, + camera->pl->mem + address, + SPI_EEPROM_BLOCK_SIZE, extra_arg)) + CHECK (ax203_eeprom_wait_ready (camera)) + + /* and ask the device to verify the write with a checksum */ + if (checksum) { + checksum = 0; + for (i = address; i < (address + SPI_EEPROM_BLOCK_SIZE); i++) + checksum += ((uint8_t *)camera->pl->mem)[i]; + checksum &= 0xffff; + + i = ax203_get_checksum(camera, address, SPI_EEPROM_BLOCK_SIZE); + if (i < 0) + return i; + if (i != checksum) { + gp_log (GP_LOG_ERROR, "ax203", + "checksum mismatch after programming " + "expected %04x, got %04x\n", checksum, i); + return GP_ERROR_IO; + } + } + + for (i = 0; i < block_sector_size; i++) + camera->pl->sector_dirty[bss + i] = 0; + + return GP_OK; +} + +int +ax203_commit(Camera *camera) +{ + int i, j; + int mem_sector_size = camera->pl->mem_size / SPI_EEPROM_SECTOR_SIZE; + int block_sector_size = SPI_EEPROM_BLOCK_SIZE / SPI_EEPROM_SECTOR_SIZE; + int dirty_sectors; + + /* We first check each 64k block for dirty sectors. If the block + contains dirty sectors, decide wether to use 4k sector erase + commands (if the eeprom supports it), or to erase and reprogram + the entire block */ + for (i = 0; i < mem_sector_size; i += block_sector_size) { + dirty_sectors = 0; + for (j = 0; j < block_sector_size; j++) + if (camera->pl->sector_dirty[i + j]) + dirty_sectors++; + + /* If we have no dirty sectors in this block continue */ + if (!dirty_sectors) + continue; + + if (camera->pl->pp_64k) + CHECK (ax203_commit_block_64k_at_once (camera, i)) + /* There are 16 4k sectors per 64k block, when we need to + program 12 or more sectors, programming the entire block + becomes faster */ + else if (dirty_sectors < 12 && camera->pl->has_4k_sectors) + CHECK (ax203_commit_block_4k (camera, i)) + else + CHECK (ax203_commit_block_64k (camera, i)) + } + return GP_OK; +} + +static int +ax203_init(Camera *camera) +{ + GP_DEBUG ("ax203_init called"); + + camera->pl->mem = malloc(camera->pl->mem_size); + if (!camera->pl->mem) + return GP_ERROR_NO_MEMORY; + + CHECK (ax203_read_parameter_block (camera)) + + if ((camera->pl->width % 4) || (camera->pl->height % 4)) { + gp_log (GP_LOG_ERROR, "ax203", + "lcd width and height must be a multiple of 4"); + return GP_ERROR_IO; + } + + return GP_OK; +} + +static void +ax203_exit(Camera *camera) +{ + if (camera->pl->jdec) { + tinyjpeg_free (camera->pl->jdec); + camera->pl->jdec = NULL; + } + free (camera->pl->mem); + camera->pl->mem = NULL; +} + +int +ax203_open_device(Camera *camera) +{ + char buf[64]; + uint32_t id; + int i; + + CHECK (ax203_get_version (camera, buf)) + GP_DEBUG ("Appotech ax203 picframe firmware version: %s", buf); + + /* Not sure if this is necessary, but the windows software does it */ + CHECK (ax203_eeprom_release_from_deep_powerdown (camera)) + CHECK (ax203_eeprom_device_identification (camera, buf)) + /*id = le32atoh((uint8_t *)buf);*/ + id = (uint8_t)buf[0] | + ((uint8_t)buf[1] << 8) | + ((uint8_t)buf[2] << 16) | + ((uint8_t)buf[3] << 24); + for (i = 0; ax203_eeprom_info[i].name; i++) { + if (ax203_eeprom_info[i].id == id) + break; + } + + if (!ax203_eeprom_info[i].name) { + gp_log (GP_LOG_ERROR, "ax203", "unknown eeprom id: %08x", id); + return GP_ERROR_MODEL_NOT_FOUND; + } + + camera->pl->mem_size = ax203_eeprom_info[i].mem_size; + camera->pl->has_4k_sectors = ax203_eeprom_info[i].has_4k_sectors; + camera->pl->pp_64k = ax203_eeprom_info[i].pp_64k; + if (camera->pl->frame_version == AX3003_FIRMWARE_3_5_x) + camera->pl->pp_64k = 1; + GP_DEBUG ( + "%s EEPROM found, capacity: %d, has 4k sectors: %d, pp_64k %d", + ax203_eeprom_info[i].name, camera->pl->mem_size, + camera->pl->has_4k_sectors, camera->pl->pp_64k); + + return ax203_init (camera); +} + +int +ax203_open_dump(Camera *camera, const char *dump) +{ + camera->pl->mem_dump = fopen(dump, "r+"); + if (!camera->pl->mem_dump) { + gp_log (GP_LOG_ERROR, "ax203", "opening memdump file: %s: %s", + dump, strerror(errno)); + return GP_ERROR_IO_INIT; + } + + if (fseek (camera->pl->mem_dump, 0, SEEK_END)) { + gp_log (GP_LOG_ERROR, "ax203", "seeking memdump file: %s: %s", + dump, strerror(errno)); + return GP_ERROR_IO_INIT; + } + camera->pl->mem_size = ftell (camera->pl->mem_dump); + camera->pl->has_4k_sectors = 1; + + return ax203_init (camera); +} + +void ax203_close(Camera *camera) +{ + ax203_exit (camera); + if (camera->pl->mem_dump) { + fclose (camera->pl->mem_dump); + camera->pl->mem_dump = NULL; + } +} + +int +ax203_get_mem_size(Camera *camera) +{ + return camera->pl->mem_size; +} + +int +ax203_get_free_mem_size(Camera *camera) +{ + struct ax203_fileinfo used_mem[AX203_ABFS_SIZE / 2]; + int i, used_mem_count, prev_end, free = 0; + + used_mem_count = ax203_build_used_mem_table (camera, used_mem); + if (used_mem_count < 0) return used_mem_count; + + /* Add the size of all holes in memory together */ + for (i = 1; i < used_mem_count; i++) { + prev_end = used_mem[i - 1].address + used_mem[i - 1].size; + free += used_mem[i].address - prev_end; + } + + return free; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203.h new file mode 100644 index 00000000..adbd54ce --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203.h @@ -0,0 +1,207 @@ +/* Appotech ax203 picframe access library + * + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#ifndef __AX203_H__ +#define __AX203_H__ +#include "config.h" + +#include + +#include +#include + +#include "tinyjpeg.h" + +#define GP_MODULE "ax203" + +#define AX203_ABFS_MAGIC "ABFS" +#define AX203_ABFS_COUNT_OFFSET 0x05 +#define AX203_ABFS_FILE_OFFSET(idx) (0x20 + 2 * (idx)) +#define AX203_ABFS_SIZE 0x1000 +#define AX203_PICTURE_OFFSET 0x2000 /* offset from ABFS start */ + +#define AX206_ABFS_FILE_OFFSET(idx) (0x10 + 8 * (idx)) +#define AX206_PICTURE_OFFSET 0x1000 /* offset from ABFS start */ + +#define AX3003_ABFS_FILE_OFFSET(idx) (0x20 + 4 * (idx)) +#define AX3003_PICTURE_OFFSET 0x1000 /* offset from ABFS start */ +#define AX3003_BL_SIZE 0x10000 /* Space used by the bootloader + at the end of the memory */ + +#define AX203_SET_TIME 0xCA +#define AX203_TO_DEV 0xCB +#define AX203_FROM_DEV 0xCD +#define AX203_EEPROM_CMD 0x00 +#define AX203_GET_VERSION 0x01 +#define AX203_GET_LCD_SIZE 0x02 +#define AX203_GET_CHECKSUM 0x05 /* Note only seen on 206 sofar */ + +#define AX3003_FRAME_CMD 0xCA +#define AX3003_SET_TIME 0x01 +#define AX3003_GET_FRAME_ID 0x02 +#define AX3003_GET_ABFS_START 0x03 + +/* Note not all SPI EEPROM's actually have 4k sectors, some have + 64k sectors, ax203_commit() takes care if this. */ +#define SPI_EEPROM_SECTOR_SIZE 4096 +#define SPI_EEPROM_BLOCK_SIZE 65536 +#define SPI_EEPROM_WRSR 0x01 /* WRite Status Register */ +#define SPI_EEPROM_PP 0x02 +#define SPI_EEPROM_READ 0x03 +#define SPI_EEPROM_RDSR 0x05 /* ReaD Status Register */ +#define SPI_EEPROM_WREN 0x06 +#define SPI_EEPROM_ERASE_4K 0x20 +#define SPI_EEPROM_RDID 0x9f /* Read Device ID */ +#define SPI_EEPROM_RDP 0xab /* Release from Deep Powerdown */ +#define SPI_EEPROM_ERASE_64K 0xd8 + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +enum ax203_version { + AX203_FIRMWARE_3_3_x, + AX203_FIRMWARE_3_4_x, + AX206_FIRMWARE_3_5_x, + AX3003_FIRMWARE_3_5_x, +}; + +enum ax203_compression { + AX203_COMPRESSION_YUV, + AX203_COMPRESSION_YUV_DELTA, + AX206_COMPRESSION_JPEG, + AX3003_COMPRESSION_JPEG, +}; + +struct _CameraPrivateLibrary { + FILE *mem_dump; + struct jdec_private *jdec; + char *mem; + int sector_is_present[4194304 / SPI_EEPROM_SECTOR_SIZE]; + int sector_dirty[4194304 / SPI_EEPROM_SECTOR_SIZE]; + int fs_start; + /* LCD display attributes */ + int width; + int height; + /* USB "bridge" / firmware attributes */ + enum ax203_version frame_version; + enum ax203_compression compression_version; + /* EEPROM attributes */ + int mem_size; + int has_4k_sectors; + int block_protection_removed; + int pp_64k; + /* Driver configuration settings */ + int syncdatetime; +}; + +struct ax203_devinfo { + unsigned short vendor_id; + unsigned short product_id; + int frame_version; +}; + +struct ax203_fileinfo { + int address; + int present; + int size; +}; + +struct ax206_v3_5_x_raw_fileinfo { + uint8_t present; + uint32_t address; + uint16_t size; + uint8_t pad; +} __attribute__((packed)); + +struct ax3003_v3_5_x_raw_fileinfo { + uint16_t address; /* In blocks of 256 bytes */ + uint16_t size; /* In blocks of 256 bytes */ +} __attribute__((packed)); + +/* functions in ax203.c */ +int +ax203_open_device(Camera *camera); + +int +ax203_open_dump(Camera *camera, const char *dump); + +void ax203_close(Camera *camera); + +int +ax203_read_filecount(Camera *camera); + +int +ax203_file_present(Camera *camera, int idx); + +int +ax203_read_file(Camera *camera, int idx, int **rgb24); + +int +ax203_write_file(Camera *camera, int **rgb24); + +int +ax203_delete_file(Camera *camera, int idx); + +int +ax203_delete_all(Camera *camera); + +int +ax203_read_raw_file(Camera *camera, int idx, char **raw); + +int +ax203_write_raw_file(Camera *camera, int idx, char *buf, int size); + +int +ax203_commit(Camera *camera); + +int +ax203_get_mem_size(Camera *camera); + +int +ax203_get_free_mem_size(Camera *camera); + +int +ax203_set_time_and_date(Camera *camera, struct tm *t); + +int +ax203_filesize(Camera *camera); + +/* functions in ax203_decode_*.c */ + +void +ax203_decode_yuv(char *src, int **dest, int width, int height); + +void +ax203_encode_yuv(int **src, char *dest, int width, int height); + +void +ax203_decode_yuv_delta(char *src, int **dest, int width, int height); + +void +ax203_encode_yuv_delta(int **src, char *dest, int width, int height); + + +#if defined(HAVE_LIBGD) && defined(HAVE_LIBJPEG) + +int +ax206_compress_jpeg(Camera *camera, int **in, uint8_t *outbuf, int out_size, + int width, int height); + +#endif + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203_compress_jpeg.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203_compress_jpeg.c new file mode 100644 index 00000000..179bb5c0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203_compress_jpeg.c @@ -0,0 +1,358 @@ +/* Appotech ax203 picframe JPEG-ish compression code + * For ax203 picture frames with firmware version 3.5.x + * + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#ifdef HAVE_LIBGD +#include +#endif + +#include "ax203.h" +#ifdef HAVE_LIBJPEG +#include "jpeg_memsrcdest.h" +#endif + +#if defined(HAVE_LIBGD) && defined(HAVE_LIBJPEG) +static int +locate_tables_n_write(JOCTET *jpeg, int jpeg_size, JOCTET table_type, + uint8_t *outbuf, int *outc) +{ + int i, size, found, orig_outc = *outc; + + /* Reserve space for writing table size */ + *outc += 2; + + /* Locate tables and write them to outbuf */ + for (i = 2; i < jpeg_size; i += size) { + if (jpeg[i] != 0xff) { + gp_log (GP_LOG_ERROR, "ax203", + "marker does not start with ff?"); + return GP_ERROR_CORRUPTED_DATA; + } + if (jpeg[i + 1] == 0xda) + break; + + found = jpeg[i + 1] == table_type; + i += 2; + size = ((jpeg[i] << 8) | jpeg[i + 1]) - 2; + i += 2; + + if (found) { + memcpy(outbuf + *outc, jpeg + i, size); + *outc += size; + } + } + + size = *outc - orig_outc; + outbuf[orig_outc ] = size >> 8; + outbuf[orig_outc + 1] = size; + + return GP_OK; +} + +static int +copy_huffman(uint8_t *dst, JOCTET *src, int n) +{ + int i, copied = 0; + + for (i = 0; i < n; i++) { + /* Skip 0xff escaping 0x00's (ax203 special) */ + if (i && src[i - 1] == 0xff && src[i] == 0x00) + continue; + + dst[copied++] = src[i]; + } + + return copied; +} + +/* Store MCU info needed by the picture frame (probably so that it + can start decompression with any block to allow transition effects) */ +static void +add_mcu_info(uint8_t *outbuf, int block_nr, int last_Y, int last_Cb, + int last_Cr, int huffman_addr) +{ + int info_addr = block_nr * 8; + + /* skip header */ + huffman_addr -= 16; + info_addr += 16; + + /* This is crazy, but it is what the pictframe wants */ + huffman_addr -= 8 * block_nr; + + /* Store last DC vals + huffman data address */ + outbuf[info_addr + 0] = last_Y; + outbuf[info_addr + 1] = last_Y >> 8; + outbuf[info_addr + 2] = last_Cb; + outbuf[info_addr + 3] = last_Cb >> 8; + outbuf[info_addr + 4] = last_Cr; + outbuf[info_addr + 5] = last_Cr >> 8; + outbuf[info_addr + 6] = huffman_addr; + outbuf[info_addr + 7] = huffman_addr >> 8; +} + +int +ax206_compress_jpeg(Camera *camera, int **in, uint8_t *outbuf, int out_size, + int width, int height) +{ + struct jpeg_compress_struct cinfo; + struct jpeg_decompress_struct dinfo; + struct jpeg_error_mgr jcerr, jderr; + JSAMPROW row_pointer[1]; + JOCTET *buf = NULL, *regular_jpeg = NULL; + jvirt_barray_ptr *in_coefficients; + int i, x, y, stop, size, ret, outc; + unsigned long regular_jpeg_size = 0, buf_size = 0; + int last_dc_val[3] = { 0, 0, 0 }; + + /* We have a rgb24bit image in the desired dimensions, first we + compress it into a regular jpeg, which we use as a base for + creating the ax203 JPEG-ish format */ + cinfo.err = jpeg_std_error (&jcerr); + jpeg_create_compress (&cinfo); + jpeg_mem_dest (&cinfo, ®ular_jpeg, ®ular_jpeg_size); + cinfo.image_width = width; + cinfo.image_height = height; + cinfo.input_components = 3; + cinfo.in_color_space = JCS_RGB; + jpeg_set_defaults (&cinfo); + cinfo.comp_info[0].h_samp_factor = 2; + cinfo.comp_info[0].v_samp_factor = 2; + + jpeg_start_compress (&cinfo, TRUE); + while( cinfo.next_scanline < cinfo.image_height ) { + JOCTET row[width * 3]; + for (i = 0; i < width; i++) { + int p = in[cinfo.next_scanline][i]; + row[i * 3 + 0] = gdTrueColorGetRed(p); + row[i * 3 + 1] = gdTrueColorGetGreen(p); + row[i * 3 + 2] = gdTrueColorGetBlue(p); + } + row_pointer[0] = row; + jpeg_write_scanlines (&cinfo, row_pointer, 1); + } + jpeg_finish_compress (&cinfo); + jpeg_destroy_compress (&cinfo); + + /* Write image header to outbuf */ + outbuf[0] = width >> 8; + outbuf[1] = width; + outbuf[2] = height >> 8; + outbuf[3] = height; + outbuf[4] = 3; /* 2x uv sub-sampling */ + + outbuf[5] = 0; + outbuf[6] = 1; + outbuf[7] = 1; + + outbuf[8] = 0; + outbuf[9] = 1; + outbuf[10] = 1; + + outbuf[11] = 0; + outbuf[12] = 1; + outbuf[13] = 1; + + outbuf[14] = 0; + outbuf[15] = 0; + + /* Make outc point to after the MCU info table, so to the start of + the quantisation tables */ + outc = 16 + ((width + 15) / 16) * ((height + 15) / 16) * 8; + + /* Locate quant tables and write them to outbuf */ + ret = locate_tables_n_write (regular_jpeg, regular_jpeg_size, 0xdb, + outbuf, &outc); + if (ret < 0) return ret; + + /* Locate huffman tables and write them to outbuf */ + ret = locate_tables_n_write (regular_jpeg, regular_jpeg_size, 0xc4, + outbuf, &outc); + if (ret < 0) return ret; + + /* The ax203 has 2 perculiarities in the huffman data for the JPEG + DCT coefficients: + 1) It wants the MCU huffman data for each new MCU to start on a byte + boundary + 2) The component order in an MCU is Cb Cr Y, rather then Y Cb Cr + + We solve both these issues by decompressing the regular jpeg we've + just created into its raw coefficients, following by creating + mini JPEGs with the size of one MCU block, using + the raw-coefficients from the regular JPEG we first created. + + This allows us to both shuffle the component order, and to byte + align the start of each MCU. */ + + /* Get the raw coefficients from the regular JPEG */ + dinfo.err = jpeg_std_error (&jderr); + jpeg_create_decompress (&dinfo); + jpeg_mem_src (&dinfo, regular_jpeg, regular_jpeg_size); + jpeg_read_header (&dinfo, TRUE); + in_coefficients = jpeg_read_coefficients (&dinfo); + + /* Create a JPEG compression object for our mini JPEGs */ + cinfo.err = jpeg_std_error (&jcerr); + jpeg_create_compress (&cinfo); + cinfo.image_width = 16; + cinfo.image_height = 16; + cinfo.input_components = 3; + cinfo.in_color_space = JCS_RGB; + +#if JPEG_LIB_VERSION >= 80 + cinfo.min_DCT_h_scaled_size = dinfo.min_DCT_h_scaled_size; + cinfo.min_DCT_v_scaled_size = dinfo.min_DCT_h_scaled_size; + cinfo.jpeg_width = 16; + cinfo.jpeg_height = 16; +#endif + jpeg_set_defaults (&cinfo); + /* We will write Cb values as comp. 0, so give it chroma settings */ + cinfo.comp_info[0].h_samp_factor = 1; + cinfo.comp_info[0].v_samp_factor = 1; + cinfo.comp_info[0].quant_tbl_no = 1; + cinfo.comp_info[0].dc_tbl_no = 1; + cinfo.comp_info[0].ac_tbl_no = 1; + /* We will write Y values as comp. 2, so give it luma settings */ + cinfo.comp_info[2].h_samp_factor = 2; + cinfo.comp_info[2].v_samp_factor = 2; + cinfo.comp_info[2].quant_tbl_no = 0; + cinfo.comp_info[2].dc_tbl_no = 0; + cinfo.comp_info[2].ac_tbl_no = 0; + + /* And create a mini JPEG for each MCU with the shuffled component order + and extract its huffman data. This fixes our component order problem and + gives us the needed byte aligning for free. */ + for (y = 0; y < (height + 15) / 16; y++) { + JBLOCKARRAY in_row[3], out_row[3]; + jvirt_barray_ptr out_barray[3]; + + /* Notice the shuffling of components happening here !! */ + in_row[0] = dinfo.mem->access_virt_barray((j_common_ptr)&dinfo, + in_coefficients[1], + y, 1, 0); + in_row[1] = dinfo.mem->access_virt_barray((j_common_ptr)&dinfo, + in_coefficients[2], + y, 1, 0); + in_row[2] = dinfo.mem->access_virt_barray((j_common_ptr)&dinfo, + in_coefficients[0], + y * 2, 2, 0); + + for (x = 0; x < (width + 15) / 16; x++) { + /* (Re)init our destination buffer */ + jpeg_mem_dest (&cinfo, &buf, &buf_size); + + /* Add MCU info block to output */ + add_mcu_info (outbuf, y * ((width + 15) / 16) + x, + last_dc_val[2], last_dc_val[0], + last_dc_val[1], outc); + + /* Allocate virtual arrays to store the coefficients + for the mini jpg we are making */ + out_barray[0] = cinfo.mem->request_virt_barray( + (j_common_ptr)&cinfo, + JPOOL_IMAGE, 0, 1, 1, 1); + out_barray[1] = cinfo.mem->request_virt_barray( + (j_common_ptr)&cinfo, + JPOOL_IMAGE, 0, 1, 1, 1); + out_barray[2] = cinfo.mem->request_virt_barray( + (j_common_ptr)&cinfo, + JPOOL_IMAGE, 0, 2, 2, 2); + jpeg_write_coefficients (&cinfo, out_barray); + + /* Copy over our 3 (or 6) coefficient blocks, and + apply last_dc_val */ + out_row[0] = cinfo.mem->access_virt_barray( + (j_common_ptr)&cinfo, + out_barray[0], 0, 1, 1); + out_row[1] = cinfo.mem->access_virt_barray( + (j_common_ptr)&cinfo, + out_barray[1], 0, 1, 1); + out_row[2] = cinfo.mem->access_virt_barray( + (j_common_ptr)&cinfo, + out_barray[2], 0, 2, 1); + + for (i = 0; i < 2; i++) { + memcpy (out_row[i][0][0], + in_row[i][0][x], + sizeof(JBLOCK)); + out_row[i][0][0][0] -= last_dc_val[i]; + last_dc_val[i] = in_row[i][0][x][0]; + } + + memcpy (out_row[2][0][0], + in_row[2][0][x * 2 + 0], + sizeof(JBLOCK)); + memcpy (out_row[2][0][1], + in_row[2][0][x * 2 + 1], + sizeof(JBLOCK)); + memcpy (out_row[2][1][0], + in_row[2][1][x * 2 + 0], + sizeof(JBLOCK)); + memcpy (out_row[2][1][1], + in_row[2][1][x * 2 + 1], + sizeof(JBLOCK)); + out_row[2][0][0][0] -= last_dc_val[2]; + out_row[2][0][1][0] -= last_dc_val[2]; + out_row[2][1][0][0] -= last_dc_val[2]; + out_row[2][1][1][0] -= last_dc_val[2]; + last_dc_val[2] = in_row[2][1][x * 2 + 1][0]; + + jpeg_finish_compress (&cinfo); + + stop = 0; + for (i = 2; i < buf_size && !stop; i += size) { + stop = buf[i] == 0xff && buf[i + 1] == 0xda; + i += 2; + size = (buf[i] << 8) | buf[i + 1]; + } + if (i >= buf_size) { + gp_log (GP_LOG_ERROR, "ax203", + "missing in ff da marker?"); + return GP_ERROR_CORRUPTED_DATA; + } + + size = buf_size - i - 2; + if ((outc + size) > out_size) { + gp_log (GP_LOG_ERROR, "ax203", + "jpeg output buffer overflow"); + return GP_ERROR_FIXED_LIMIT_EXCEEDED; + } + outc += copy_huffman(outbuf + outc, buf + i, size); + + /* Cleanup our memory dest */ + free (buf); + buf = NULL; + buf_size = 0; + } + } + + /* We're done with the jpeg decompress (input) and + compress (output) objs */ + jpeg_destroy_decompress (&dinfo); + jpeg_destroy_compress (&cinfo); + free(regular_jpeg); + + return outc; +} +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203_decode_yuv.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203_decode_yuv.c new file mode 100644 index 00000000..2b0c0b3c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203_decode_yuv.c @@ -0,0 +1,266 @@ +/* Appotech ax203 picframe decompression and compression code + * For ax203 picture frames with firmware version 3.3.x + * + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifdef STANDALONE_MAIN + +#include +#include <_stdint.h> +#include +#include +#include +#include + +#else + +#include "config.h" + +#ifdef HAVE_LIBGD +#include +#endif + +#include "ax203.h" + +#endif + +#define CLAMP_U8(x) (((x) > 255) ? 255 : (((x) < 0) ? 0 : (x))) + +#ifdef HAVE_LIBGD +static void +ax203_decode_block_yuv(char *src, int **dest, int dest_x, int dest_y) +{ + int x, y, r, g, b; + uint8_t Y[4]; + int8_t U, V; + + /* The compressed data consists of blocks of 2x2 pixels, each encoded + in 4 bytes The highest 5 bits of each byte encode an Y value, the + lowest 3 bits of the first 2 bytes are combined to form U, and of + the last 2 bytes to form V */ + for (x = 0; x < 4; x++) + Y[x] = src[x] & 0xF8; + + U = ((src[0] & 7) << 5) | ((src[1] & 7) << 2); + V = ((src[2] & 7) << 5) | ((src[3] & 7) << 2); + + /* The Y components are for a 2x2 pixels block like this: + 1 2 + 3 4 */ + for (y = 0; y < 2; y ++) { + for (x = 0; x < 2; x ++) { + r = 1.164 * (Y[y * 2 + x] - 16) + 1.596 * V; + g = 1.164 * (Y[y * 2 + x] - 16) - 0.391 * U - 0.813 * V; + b = 1.164 * (Y[y * 2 + x] - 16) + 2.018 * U; + dest[dest_y + y][dest_x + x] = + gdTrueColor (CLAMP_U8 (r), + CLAMP_U8 (g), + CLAMP_U8 (b)); + } + } +} + +void +ax203_decode_yuv(char *src, int **dest, int width, int height) +{ + int x, y; + + for (y = 0; y < height; y += 2) { + for (x = 0; x < width; x += 2) { + ax203_decode_block_yuv(src, dest, x, y); + src += 4; + } + } +} + +static void +ax203_encode_block_yuv(int **src, int src_x, int src_y, char *dest) +{ + uint8_t Y[4]; + int8_t U, V; + int x, y; + + /* Step 1 convert to YUV */ + for (y = 0; y < 2; y ++) { + for (x = 0; x < 2; x ++) { + int p = src[src_y + y][src_x + x]; + Y[y * 2 + x] = gdTrueColorGetRed(p) * 0.257 + + gdTrueColorGetGreen(p) * 0.504 + + gdTrueColorGetBlue(p) * 0.098 + 16; + } + } + + { + int p1 = src[src_y ][src_x ]; + int p2 = src[src_y ][src_x + 1]; + int p3 = src[src_y + 1][src_x ]; + int p4 = src[src_y + 1][src_x + 1]; + + int r = (gdTrueColorGetRed(p1) + gdTrueColorGetRed(p2) + + gdTrueColorGetRed(p3) + gdTrueColorGetRed(p4)) / 4; + int g = (gdTrueColorGetGreen(p1) + gdTrueColorGetGreen(p2) + + gdTrueColorGetGreen(p3) + gdTrueColorGetGreen(p4)) / 4; + int b = (gdTrueColorGetBlue(p1) + gdTrueColorGetBlue(p2) + + gdTrueColorGetBlue(p3) + gdTrueColorGetBlue(p4)) / 4; + + U = 0.439 * b - 0.291 * g - 0.148 * r; + V = 0.439 * r - 0.368 * g - 0.071 * b; + } + + for (x = 0; x < 4; x++) + dest[x] = Y[x] & 0xf8; + + dest[0] |= (U & 0xe0) >> 5; + dest[1] |= (U & 0x1c) >> 2; + dest[2] |= (V & 0xe0) >> 5; + dest[3] |= (V & 0x1c) >> 2; +} + +void +ax203_encode_yuv(int **src, char *dest, int width, int height) +{ + int x, y; + + for (y = 0; y < height; y += 2) { + for (x = 0; x < width; x += 2) { + ax203_encode_block_yuv(src, x, y, dest); + dest += 4; + } + } +} +#endif + +#ifdef STANDALONE_MAIN + +int +main(int argc, char *argv[]) +{ + FILE *fin = NULL; + FILE *fout = NULL; + gdImagePtr im_in = NULL, im = NULL; + char *buf = NULL; + int bufsize, ret = 0; + /* FIXME get these from the cmdline */ + int width = 128, height = 128; + + if (argc != 4) { + fprintf (stderr, + "Usage: %s <-d|-c> \n", + argv[0]); + ret = 1; + goto exit; + } + + fin = fopen(argv[2], "r"); + if (!fin) { + fprintf (stderr, "Error opening: %s: %s\n", argv[2], + strerror(errno)); + ret = 1; + goto exit; + } + + fout = fopen(argv[3], "w"); + if (!fout) { + fprintf (stderr, "Error opening: %s: %s\n", argv[3], + strerror(errno)); + ret = 1; + goto exit; + } + + bufsize = width * height; + buf = malloc(bufsize); + if (!buf) { + fprintf (stderr, "Error allocating memory\n"); + ret = 1; + goto exit; + } + + im = gdImageCreateTrueColor(width, height); + if (!im) { + fprintf (stderr, "Error allocating memory\n"); + ret = 1; + goto exit; + } + + if (!strcmp(argv[1], "-d")) { + if (fread(buf, 1, bufsize, fin) != bufsize) { + fprintf (stderr, "Error reading: %s: %s\n", argv[2], + strerror(errno)); + ret = 1; + goto exit; + } + ax203_decode2(buf, im->tpixels, width, height); + gdImagePng (im, fout); + } else if (!strcmp(argv[1], "-c")) { + im_in = gdImageCreateFromPng(fin); + if (im_in == NULL) { + rewind(fin); + im_in = gdImageCreateFromGif(fin); + } + if (im_in == NULL) { + rewind(fin); + im_in = gdImageCreateFromWBMP(fin); + } + /* gdImageCreateFromJpegPtr is chatty on error, + so call it last */ + if (im_in == NULL) { + rewind(fin); + im_in = gdImageCreateFromJpeg(fin); + } + if (im_in == NULL) { + fprintf (stderr, + "Error unrecognized file format for file: %s\n", + argv[2]); + ret = 1; + goto exit; + } + + gdImageCopyResampled (im, im_in, 0, 0, 0, 0, + im->sx, im->sy, + im_in->sx, im_in->sy); + gdImageSharpen(im, 100); + ax203_encode2(im->tpixels, buf, width, height); + + if (fwrite (buf, 1, bufsize, fout) != bufsize) { + fprintf (stderr, "Error writing: %s: %s\n", argv[3], + strerror(errno)); + ret = 1; + goto exit; + } + } else { + fprintf (stderr, "%s: unkown option: %s\n", argv[0], argv[1]); + ret = 1; + goto exit; + } + +exit: + if (fin) + fclose (fin); + if (fout) + fclose (fout); + if (buf) + free (buf); + if (im) + gdImageDestroy (im); + if (im_in) + gdImageDestroy (im_in); + return ret; +} + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203_decode_yuv_delta.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203_decode_yuv_delta.c new file mode 100644 index 00000000..8ff07cf9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/ax203_decode_yuv_delta.c @@ -0,0 +1,455 @@ +/* Appotech ax203 picframe decompression and compression code + * For ax203 picture frames with firmware version 3.4.x + * + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifdef STANDALONE_MAIN + +#include +#include <_stdint.h> +#include +#include +#include +#include + +#else + +#include "config.h" + +#ifdef HAVE_LIBGD +#include +#endif +#include + +#include "ax203.h" + +#endif + +#define CLAMP_U8(x) (((x) > 255) ? 255 : (((x) < 0) ? 0 : (x))) + +static const int corr_tables[4][8] = { + /* Table 0 depends on wrap around to get negative + corrections!! */ + { 0, 32, 64, 96, 128, 160, 192, 224 }, + { 0, 16, 32, 48, -64, -48, -32, -16 }, + { 0, 8, 16, 24, -32, -24, -16, -8 }, + { 0, 4, 8, 12, -16, -12, -8, -4 }, +}; + +#ifdef HAVE_LIBGD +/* With in a compressed 4x4 block, the data is stored 4 component values at a + time, compressed into 2 bytes, the first 5 bits are a starting value, + then 2 bits encoding which correction/delta table to use and + then 3x3 bits code deltas from the previous pixel. */ +static void +ax203_decode_component_values(char *src, char *dest) +{ + int i, table, corr; + dest[0] = src[0] & ~0x07; + table = (src[0] >> 1) & 3; + + for (i = 1; i < 4; i++) { + switch (i) { + case 1: + corr = (src[1] >> 5) & 7; + break; + case 2: + corr = (src[1] >> 2) & 7; + break; + case 3: + corr = ((src[1] << 1) & 6) | (src[0] & 1); + break; + } + dest[i] = dest[i - 1] + corr_tables[table][corr]; + } +} + +/* The compressed data consists of blocks of 4x4 pixels, each encoded + in 12 bytes */ +static void +ax203_decode_block_yuv_delta(char *src, int **dest, int dest_x, int dest_y) +{ + int x, y, r, g, b; + uint8_t Y[16]; + int8_t U[4], V[4]; + + /* The compressed component order is: 4 Pixels U, 4 Pixels V, + 16 pixels Y */ + ax203_decode_component_values(src, (char *)U); + src += 2; + ax203_decode_component_values(src, (char *)V); + src += 2; + + /* The Y components are stored 4 at a time in a pattern like this: + 1 2 1 2 + 3 4 3 4 + + 1 2 1 2 + 3 4 3 4 */ + for (y = 0; y < 4; y += 2) { + for (x = 0; x < 4; x += 2) { + char buf[4]; + ax203_decode_component_values(src, buf); + Y[ y * 4 + x ] = buf[0]; + Y[ y * 4 + x + 1] = buf[1]; + Y[(y + 1) * 4 + x ] = buf[2]; + Y[(y + 1) * 4 + x + 1] = buf[3]; + src += 2; + } + } + + for (y = 0; y < 4; y++) { + for (x = 0; x < 4; x++) { + r = 1.164 * (Y[y * 4 + x] - 16) + + 1.596 * V[(y / 2) * 2 + x / 2]; + g = 1.164 * (Y[y * 4 + x] - 16) - + 0.391 * U[(y / 2) * 2 + x / 2] - + 0.813 * V[(y / 2) * 2 + x / 2]; + b = 1.164 * (Y[y * 4 + x] - 16) + + 2.018 * U[(y / 2) * 2 + x / 2]; + dest[dest_y + y][dest_x + x] = + gdTrueColor (CLAMP_U8(r), + CLAMP_U8(g), + CLAMP_U8(b)); + } + } +} + +void ax203_decode_yuv_delta(char *src, int **dest, int width, int height) +{ + int x, y; + + for (y = 0; y < height; y += 4) { + for (x = 0; x < width; x += 4) { + ax203_decode_block_yuv_delta(src, dest, x, y); + src += 12; + } + } +} + +static int +ax203_find_closest_correction_signed(int8_t base, int8_t val, int table) +{ + int closest_delta = 256; + int i, delta, closest_idx = 0; + int8_t corrected_val; + + for (i = 0; i < 8; i++) { + /* Don't allow wrap around for tables other then table 0 */ + if (table && + ((base + corr_tables[table][i]) > 127 || + (base + corr_tables[table][i]) < -128)) + continue; + + /* We are used for U and V values skip correction vals which + would lead to invalid U / V values */ + corrected_val = base + corr_tables[table][i]; + if (corrected_val < -112 || corrected_val > 111) + continue; + + delta = abs(corrected_val - val); + if (delta < closest_delta) { + closest_delta = delta; + closest_idx = i; + } + } + return closest_idx; +} + +static int +ax203_find_closest_correction_unsigned(uint8_t base, uint8_t val, int table) +{ + int closest_delta = 256; + int i, delta, closest_idx = 0; + uint8_t corrected_val; + + for (i = 0; i < 8; i++) { + /* Don't allow wrap around for tables other then table 0 */ + if (table && + ((base + corr_tables[table][i]) > 255 || + (base + corr_tables[table][i]) < 0)) + continue; + + /* We are used for Y values skip correction vals which + would lead to invalid Y values */ + corrected_val = base + corr_tables[table][i]; + if (corrected_val < 16 || corrected_val > 235) + continue; + + delta = abs(corrected_val - val); + if (delta < closest_delta) { + closest_delta = delta; + closest_idx = i; + } + } + return closest_idx; +} + +static void +ax203_encode_signed_component_values(int8_t *src, char *dest) +{ + int i, j, table, corr; + int8_t base; + + /* Select a correction table */ + for (i = 3; i > 0; i--) { + base = src[0] & ~0x07; + for (j = 1; j < 4; j++) { + if ((base + corr_tables[i][3] + 4) < src[j] || + (base + corr_tables[i][4] - 4) > src[j]) + break; + corr = ax203_find_closest_correction_signed + (base, src[j], i); + /* Calculate the base value for the next pixel */ + base = base + corr_tables[i][corr]; + } + /* If we did not break out the above loop the min / max + correction in the current table is enough */ + if (j == 4) + break; + } + table = i; + + /* And store the pixels */ + base = src[0] & ~0x07; + dest[0] = base; + dest[0] |= table << 1; + dest[1] = 0; + for (i = 1; i < 4; i++) { + corr = ax203_find_closest_correction_signed (base, src[i], + table); + switch (i) { + case 1: + dest[1] |= corr << 5; + break; + case 2: + dest[1] |= corr << 2; + break; + case 3: + dest[0] |= corr & 1; + dest[1] |= corr >> 1; + break; + } + /* Calculate the base value for the next pixel */ + base = base + corr_tables[table][corr]; + } +} + +static void +ax203_encode_unsigned_component_values(uint8_t *src, char *dest) +{ + int i, j, table, corr; + uint8_t base; + + /* Select a correction table */ + for (i = 3; i > 0; i--) { + base = src[0] & ~0x07; + for (j = 1; j < 4; j++) { + if ((base + corr_tables[i][3] + 4) < src[j] || + (base + corr_tables[i][4] - 4) > src[j]) + break; + corr = ax203_find_closest_correction_unsigned + (base, src[j], i); + /* Calculate the base value for the next pixel */ + base = base + corr_tables[i][corr]; + } + /* If we did not break out the above loop the min / max + correction in the current table is enough */ + if (j == 4) + break; + } + table = i; + + /* And store the pixels */ + base = src[0] & ~0x07; + dest[0] = base; + dest[0] |= table << 1; + dest[1] = 0; + for (i = 1; i < 4; i++) { + corr = ax203_find_closest_correction_unsigned (base, src[i], + table); + switch (i) { + case 1: + dest[1] |= corr << 5; + break; + case 2: + dest[1] |= corr << 2; + break; + case 3: + dest[0] |= corr & 1; + dest[1] |= corr >> 1; + break; + } + /* Calculate the base value for the next pixel */ + base = base + corr_tables[table][corr]; + } +} + +static void +ax203_encode_block_yuv_delta(int **src, int src_x, int src_y, char *dest) +{ + uint8_t Y[16]; + int8_t U[4], V[4]; + int x, y; + + /* Convert to YUV */ + for (y = 0; y < 4; y++) { + for (x = 0; x < 4; x++) { + int p = src[src_y + y][src_x + x]; + Y[y * 4 + x] = gdTrueColorGetRed(p) * 0.257 + + gdTrueColorGetGreen(p) * 0.504 + + gdTrueColorGetBlue(p) * 0.098 + 16; + } + } + for (y = 0; y < 4; y += 2) { + for (x = 0; x < 4; x += 2) { + int p1 = src[src_y + y ][src_x + x ]; + int p2 = src[src_y + y ][src_x + x + 1]; + int p3 = src[src_y + y + 1][src_x + x ]; + int p4 = src[src_y + y + 1][src_x + x + 1]; + + int r = (gdTrueColorGetRed(p1) + + gdTrueColorGetRed(p2) + + gdTrueColorGetRed(p3) + + gdTrueColorGetRed(p4)) / 4; + int g = (gdTrueColorGetGreen(p1) + + gdTrueColorGetGreen(p2) + + gdTrueColorGetGreen(p3) + + gdTrueColorGetGreen(p4)) / 4; + int b = (gdTrueColorGetBlue(p1) + + gdTrueColorGetBlue(p2) + + gdTrueColorGetBlue(p3) + + gdTrueColorGetBlue(p4)) / 4; + + U[y + x / 2] = 0.439 * b - 0.291 * g - 0.148 * r; + V[y + x / 2] = 0.439 * r - 0.368 * g - 0.071 * b; + } + } + + /* The compressed component order is: 4 Pixels U, 4 Pixels V, + 16 pixels Y */ + ax203_encode_signed_component_values(U, dest); + dest += 2; + ax203_encode_signed_component_values(V, dest); + dest += 2; + + /* The Y components are stored 4 at a time in a pattern like this: + 1 2 1 2 + 3 4 3 4 + + 1 2 1 2 + 3 4 3 4 */ + for (y = 0; y < 4; y += 2) { + for (x = 0; x < 4; x += 2) { + uint8_t buf[4]; + buf[0] = Y[ y * 4 + x ]; + buf[1] = Y[ y * 4 + x + 1]; + buf[2] = Y[(y + 1) * 4 + x ]; + buf[3] = Y[(y + 1) * 4 + x + 1]; + ax203_encode_unsigned_component_values(buf, dest); + dest += 2; + } + } +} + +void +ax203_encode_yuv_delta(int **src, char *dest, int width, int height) +{ + int x, y; + + for (y = 0; y < height; y += 4) { + for (x = 0; x < width; x += 4) { + ax203_encode_block_yuv_delta(src, x, y, dest); + dest += 12; + } + } +} + +#endif + +#ifdef STANDALONE_MAIN + +int +main(int argc, char *argv[]) +{ + FILE *fin = NULL; + FILE *fout = NULL; + gdImagePtr im = NULL; + int ret = 0; + /* FIXME get these from the cmdline */ + int width = 128, height = 128; + + if (argc != 4) { + fprintf (stderr, + "Usage: %s <-d|-c> \n", + argv[0]); + ret = 1; + goto exit; + } + + fin = fopen(argv[2], "r"); + if (!fin) { + fprintf (stderr, "Error opening: %s: %s\n", argv[2], + strerror(errno)); + ret = 1; + goto exit; + } + + fout = fopen(argv[3], "w"); + if (!fout) { + fprintf (stderr, "Error opening: %s: %s\n", argv[3], + strerror(errno)); + ret = 1; + goto exit; + } + + if (!strcmp(argv[1], "-d")) { + const int bufsize = width * height * 3 / 4; + char buf[bufsize]; + if (fread(buf, 1, bufsize, fin) != bufsize) { + fprintf (stderr, "Error reading: %s: %s\n", argv[2], + strerror(errno)); + ret = 1; + goto exit; + } + im = gdImageCreateTrueColor(width, height); + if (!im) { + fprintf (stderr, "Error allocating memory\n"); + ret = 1; + goto exit; + } + ax203_decode(buf, im->tpixels, width, height); + gdImagePng (im, fout); + } else { + fprintf (stderr, "%s: unkown option: %s\n", argv[0], argv[1]); + ret = 1; + goto exit; + } + +exit: + if (fin) + fclose (fin); + if (fout) + fclose (fout); + if (im) + gdImageDestroy (im); + return ret; +} + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/jidctflt.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/jidctflt.c new file mode 100644 index 00000000..572abe24 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/jidctflt.c @@ -0,0 +1,287 @@ +/* + * jidctflt.c + * + * Copyright (C) 1994-1998, Thomas G. Lane. + * This file is part of the Independent JPEG Group's software. + * + * The authors make NO WARRANTY or representation, either express or implied, + * with respect to this software, its quality, accuracy, merchantability, or + * fitness for a particular purpose. This software is provided "AS IS", and you, + * its user, assume the entire risk as to its quality and accuracy. + * + * This software is copyright (C) 1991-1998, Thomas G. Lane. + * All Rights Reserved except as specified below. + * + * Permission is hereby granted to use, copy, modify, and distribute this + * software (or portions thereof) for any purpose, without fee, subject to these + * conditions: + * (1) If any part of the source code for this software is distributed, then this + * README file must be included, with this copyright and no-warranty notice + * unaltered; and any additions, deletions, or changes to the original files + * must be clearly indicated in accompanying documentation. + * (2) If only executable code is distributed, then the accompanying + * documentation must state that "this software is based in part on the work of + * the Independent JPEG Group". + * (3) Permission for use of this software is granted only if the user accepts + * full responsibility for any undesirable consequences; the authors accept + * NO LIABILITY for damages of any kind. + * + * These conditions apply to any software derived from or based on the IJG code, + * not just to the unmodified library. If you use our work, you ought to + * acknowledge us. + * + * Permission is NOT granted for the use of any IJG author's name or company name + * in advertising or publicity relating to this software or products derived from + * it. This software may be referred to only as "the Independent JPEG Group's + * software". + * + * We specifically permit and encourage the use of this software as the basis of + * commercial products, provided that all warranty or liability claims are + * assumed by the product vendor. + * + * + * This file contains a floating-point implementation of the + * inverse DCT (Discrete Cosine Transform). In the IJG code, this routine + * must also perform dequantization of the input coefficients. + * + * This implementation should be more accurate than either of the integer + * IDCT implementations. However, it may not give the same results on all + * machines because of differences in roundoff behavior. Speed will depend + * on the hardware's floating point capacity. + * + * A 2-D IDCT can be done by 1-D IDCT on each column followed by 1-D IDCT + * on each row (or vice versa, but it's more convenient to emit a row at + * a time). Direct algorithms are also available, but they are much more + * complex and seem not to be any faster when reduced to code. + * + * This implementation is based on Arai, Agui, and Nakajima's algorithm for + * scaled DCT. Their original paper (Trans. IEICE E-71(11):1095) is in + * Japanese, but the algorithm is described in the Pennebaker & Mitchell + * JPEG textbook (see REFERENCES section in file README). The following code + * is based directly on figure 4-8 in P&M. + * While an 8-point DCT cannot be done in less than 11 multiplies, it is + * possible to arrange the computation so that many of the multiplies are + * simple scalings of the final outputs. These multiplies can then be + * folded into the multiplications or divisions by the JPEG quantization + * table entries. The AA&N method leaves only 5 multiplies and 29 adds + * to be done in the DCT itself. + * The primary disadvantage of this method is that with a fixed-point + * implementation, accuracy is lost due to imprecise representation of the + * scaled quantization values. However, that problem does not arise if + * we use floating point arithmetic. + */ + +#include "config.h" +#include <_stdint.h> +#include "tinyjpeg-internal.h" + +#define FAST_FLOAT float +#define DCTSIZE 8 +#define DCTSIZE2 (DCTSIZE*DCTSIZE) + +#define DEQUANTIZE(coef,quantval) (((FAST_FLOAT) (coef)) * (quantval)) + +#if defined(__GNUC__) && (defined(__i686__) || defined(__x86_64__)) + +static inline unsigned char descale_and_clamp(int x, int shift) +{ + __asm__ ( + "add %3,%1\n" + "\tsar %2,%1\n" + "\tsub $-128,%1\n" + "\tcmovl %5,%1\n" /* Use the sub to compare to 0 */ + "\tcmpl %4,%1\n" + "\tcmovg %4,%1\n" + : "=r"(x) + : "0"(x), "Ic"((unsigned char)shift), "ir"(1U<<(shift-1)), "r" (0xff), "r" (0) + ); + return x; +} + +#else +static inline unsigned char descale_and_clamp(int x, int shift) +{ + x += (1UL<<(shift-1)); + if (x<0) + x = (x >> shift) | ((~(0UL)) << (32-(shift))); + else + x >>= shift; + x += 128; + if (x>255) + return 255; + else if (x<0) + return 0; + else + return x; +} +#endif + +/* + * Perform dequantization and inverse DCT on one block of coefficients. + */ + +void +tinyjpeg_idct_float (struct component *compptr, uint8_t *output_buf, int stride) +{ + FAST_FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; + FAST_FLOAT tmp10, tmp11, tmp12, tmp13; + FAST_FLOAT z5, z10, z11, z12, z13; + int16_t *inptr; + FAST_FLOAT *quantptr; + FAST_FLOAT *wsptr; + uint8_t *outptr; + int ctr; + FAST_FLOAT workspace[DCTSIZE2]; /* buffers data between passes */ + + /* Pass 1: process columns from input, store into work array. */ + + inptr = compptr->DCT; + quantptr = compptr->Q_table; + wsptr = workspace; + for (ctr = DCTSIZE; ctr > 0; ctr--) { + /* Due to quantization, we will usually find that many of the input + * coefficients are zero, especially the AC terms. We can exploit this + * by short-circuiting the IDCT calculation for any column in which all + * the AC terms are zero. In that case each output is equal to the + * DC coefficient (with scale factor as needed). + * With typical images and quantization tables, half or more of the + * column DCT calculations can be simplified this way. + */ + + if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && + inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 && + inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 && + inptr[DCTSIZE*7] == 0) { + /* AC terms all zero */ + FAST_FLOAT dcval = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]); + + wsptr[DCTSIZE*0] = dcval; + wsptr[DCTSIZE*1] = dcval; + wsptr[DCTSIZE*2] = dcval; + wsptr[DCTSIZE*3] = dcval; + wsptr[DCTSIZE*4] = dcval; + wsptr[DCTSIZE*5] = dcval; + wsptr[DCTSIZE*6] = dcval; + wsptr[DCTSIZE*7] = dcval; + + inptr++; /* advance pointers to next column */ + quantptr++; + wsptr++; + continue; + } + + /* Even part */ + + tmp0 = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]); + tmp1 = DEQUANTIZE(inptr[DCTSIZE*2], quantptr[DCTSIZE*2]); + tmp2 = DEQUANTIZE(inptr[DCTSIZE*4], quantptr[DCTSIZE*4]); + tmp3 = DEQUANTIZE(inptr[DCTSIZE*6], quantptr[DCTSIZE*6]); + + tmp10 = tmp0 + tmp2; /* phase 3 */ + tmp11 = tmp0 - tmp2; + + tmp13 = tmp1 + tmp3; /* phases 5-3 */ + tmp12 = (tmp1 - tmp3) * ((FAST_FLOAT) 1.414213562) - tmp13; /* 2*c4 */ + + tmp0 = tmp10 + tmp13; /* phase 2 */ + tmp3 = tmp10 - tmp13; + tmp1 = tmp11 + tmp12; + tmp2 = tmp11 - tmp12; + + /* Odd part */ + + tmp4 = DEQUANTIZE(inptr[DCTSIZE*1], quantptr[DCTSIZE*1]); + tmp5 = DEQUANTIZE(inptr[DCTSIZE*3], quantptr[DCTSIZE*3]); + tmp6 = DEQUANTIZE(inptr[DCTSIZE*5], quantptr[DCTSIZE*5]); + tmp7 = DEQUANTIZE(inptr[DCTSIZE*7], quantptr[DCTSIZE*7]); + + z13 = tmp6 + tmp5; /* phase 6 */ + z10 = tmp6 - tmp5; + z11 = tmp4 + tmp7; + z12 = tmp4 - tmp7; + + tmp7 = z11 + z13; /* phase 5 */ + tmp11 = (z11 - z13) * ((FAST_FLOAT) 1.414213562); /* 2*c4 */ + + z5 = (z10 + z12) * ((FAST_FLOAT) 1.847759065); /* 2*c2 */ + tmp10 = ((FAST_FLOAT) 1.082392200) * z12 - z5; /* 2*(c2-c6) */ + tmp12 = ((FAST_FLOAT) -2.613125930) * z10 + z5; /* -2*(c2+c6) */ + + tmp6 = tmp12 - tmp7; /* phase 2 */ + tmp5 = tmp11 - tmp6; + tmp4 = tmp10 + tmp5; + + wsptr[DCTSIZE*0] = tmp0 + tmp7; + wsptr[DCTSIZE*7] = tmp0 - tmp7; + wsptr[DCTSIZE*1] = tmp1 + tmp6; + wsptr[DCTSIZE*6] = tmp1 - tmp6; + wsptr[DCTSIZE*2] = tmp2 + tmp5; + wsptr[DCTSIZE*5] = tmp2 - tmp5; + wsptr[DCTSIZE*4] = tmp3 + tmp4; + wsptr[DCTSIZE*3] = tmp3 - tmp4; + + inptr++; /* advance pointers to next column */ + quantptr++; + wsptr++; + } + + /* Pass 2: process rows from work array, store into output array. */ + /* Note that we must descale the results by a factor of 8 == 2**3. */ + + wsptr = workspace; + outptr = output_buf; + for (ctr = 0; ctr < DCTSIZE; ctr++) { + /* Rows of zeroes can be exploited in the same way as we did with columns. + * However, the column calculation has created many nonzero AC terms, so + * the simplification applies less often (typically 5% to 10% of the time). + * And testing floats for zero is relatively expensive, so we don't bother. + */ + + /* Even part */ + + tmp10 = wsptr[0] + wsptr[4]; + tmp11 = wsptr[0] - wsptr[4]; + + tmp13 = wsptr[2] + wsptr[6]; + tmp12 = (wsptr[2] - wsptr[6]) * ((FAST_FLOAT) 1.414213562) - tmp13; + + tmp0 = tmp10 + tmp13; + tmp3 = tmp10 - tmp13; + tmp1 = tmp11 + tmp12; + tmp2 = tmp11 - tmp12; + + /* Odd part */ + + z13 = wsptr[5] + wsptr[3]; + z10 = wsptr[5] - wsptr[3]; + z11 = wsptr[1] + wsptr[7]; + z12 = wsptr[1] - wsptr[7]; + + tmp7 = z11 + z13; + tmp11 = (z11 - z13) * ((FAST_FLOAT) 1.414213562); + + z5 = (z10 + z12) * ((FAST_FLOAT) 1.847759065); /* 2*c2 */ + tmp10 = ((FAST_FLOAT) 1.082392200) * z12 - z5; /* 2*(c2-c6) */ + tmp12 = ((FAST_FLOAT) -2.613125930) * z10 + z5; /* -2*(c2+c6) */ + + tmp6 = tmp12 - tmp7; + tmp5 = tmp11 - tmp6; + tmp4 = tmp10 + tmp5; + + /* Final output stage: scale down by a factor of 8 and range-limit */ + + outptr[0] = descale_and_clamp((int)(tmp0 + tmp7), 3); + outptr[7] = descale_and_clamp((int)(tmp0 - tmp7), 3); + outptr[1] = descale_and_clamp((int)(tmp1 + tmp6), 3); + outptr[6] = descale_and_clamp((int)(tmp1 - tmp6), 3); + outptr[2] = descale_and_clamp((int)(tmp2 + tmp5), 3); + outptr[5] = descale_and_clamp((int)(tmp2 - tmp5), 3); + outptr[4] = descale_and_clamp((int)(tmp3 + tmp4), 3); + outptr[3] = descale_and_clamp((int)(tmp3 - tmp4), 3); + + + wsptr += DCTSIZE; /* advance pointer to next row */ + outptr += stride; + } +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/jpeg_memsrcdest.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/jpeg_memsrcdest.c new file mode 100644 index 00000000..56145733 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/jpeg_memsrcdest.c @@ -0,0 +1,308 @@ +/* +* memsrc.c +* +* Copyright (C) 1994-1996, Thomas G. Lane. +* This file is part of the Independent JPEG Group's software. +* For conditions of distribution and use, see the accompanying README file. +* +* This file contains decompression data source routines for the case of +* reading JPEG data from a memory buffer that is preloaded with the entire +* JPEG file. This would not seem especially useful at first sight, but +* a number of people have asked for it. +* This is really just a stripped-down version of jdatasrc.c. Comparison +* of this code with jdatasrc.c may be helpful in seeing how to make +* custom source managers for other purposes. +*/ + +/* this is not a core library module, so it doesn't define JPEG_INTERNALS */ +#include "config.h" + +#include +#include +#ifdef HAVE_LIBJPEG +#include +#include +#include "jpeg_memsrcdest.h" + +/* libjpeg8 and later come with their own (API compatible) memory source + and dest, and older versions may have it backported */ +#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) + +/* Expanded data source object for memory input */ + +typedef struct { + struct jpeg_source_mgr pub; /* public fields */ + + JOCTET eoi_buffer[2]; /* a place to put a dummy EOI */ +} my_source_mgr; + +typedef my_source_mgr * my_src_ptr; + + +/* +* Initialize source --- called by jpeg_read_header +* before any data is actually read. +*/ + +METHODDEF(void) +init_source (j_decompress_ptr cinfo) +{ + /* No work, since jpeg_mem_src set up the buffer pointer and count. + * Indeed, if we want to read multiple JPEG images from one buffer, + * this *must* not do anything to the pointer. + */ +} + + +/* +* Fill the input buffer --- called whenever buffer is emptied. +* +* In this application, this routine should never be called; if it is called, +* the decompressor has overrun the end of the input buffer, implying we +* supplied an incomplete or corrupt JPEG datastream. A simple error exit +* might be the most appropriate response. +* +* But what we choose to do in this code is to supply dummy EOI markers +* in order to force the decompressor to finish processing and supply +* some sort of output image, no matter how corrupted. +*/ + +METHODDEF(boolean) +fill_input_buffer (j_decompress_ptr cinfo) +{ + my_src_ptr src = (my_src_ptr) cinfo->src; + + WARNMS(cinfo, JWRN_JPEG_EOF); + + /* Create a fake EOI marker */ + src->eoi_buffer[0] = (JOCTET) 0xFF; + src->eoi_buffer[1] = (JOCTET) JPEG_EOI; + src->pub.next_input_byte = src->eoi_buffer; + src->pub.bytes_in_buffer = 2; + + return TRUE; +} + + +/* +* Skip data --- used to skip over a potentially large amount of +* uninteresting data (such as an APPn marker). +* +* If we overrun the end of the buffer, we let fill_input_buffer deal with +* it. An extremely large skip could cause some time-wasting here, but +* it really isn't supposed to happen ... and the decompressor will never +* skip more than 64K anyway. +*/ + +METHODDEF(void) +skip_input_data (j_decompress_ptr cinfo, long num_bytes) +{ + my_src_ptr src = (my_src_ptr) cinfo->src; + + if (num_bytes > 0) { + while (num_bytes > (long) src->pub.bytes_in_buffer) { + num_bytes -= (long) src->pub.bytes_in_buffer; + (void) fill_input_buffer(cinfo); + /* note we assume that fill_input_buffer will never + * return FALSE, so suspension need not be handled. + */ + } + src->pub.next_input_byte += (size_t) num_bytes; + src->pub.bytes_in_buffer -= (size_t) num_bytes; + } +} + + +/* +* An additional method that can be provided by data source modules is the +* resync_to_restart method for error recovery in the presence of RST markers. +* For the moment, this source module just uses the default resync method +* provided by the JPEG library. That method assumes that no backtracking +* is possible. +*/ + + +/* +* Terminate source --- called by jpeg_finish_decompress +* after all data has been read. Often a no-op. +* +* NB: *not* called by jpeg_abort or jpeg_destroy; surrounding +* application must deal with any cleanup that should happen even +* for error exit. +*/ + +METHODDEF(void) +term_source (j_decompress_ptr cinfo) +{ + /* no work necessary here */ +} + + +/* +* Prepare for input from a memory buffer. +*/ + +GLOBAL(void) +jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, + unsigned long bufsize) +{ + my_src_ptr src; + + /* The source object is made permanent so that a series of JPEG images + * can be read from a single buffer by calling jpeg_mem_src + * only before the first one. + * This makes it unsafe to use this manager and a different source + * manager serially with the same JPEG object. Caveat programmer. + */ + if (cinfo->src == NULL) { /* first time for this JPEG object? */ + cinfo->src = (struct jpeg_source_mgr *) + (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, + JPOOL_PERMANENT, + sizeof(my_source_mgr)); + } + + src = (my_src_ptr) cinfo->src; + src->pub.init_source = init_source; + src->pub.fill_input_buffer = fill_input_buffer; + src->pub.skip_input_data = skip_input_data; + src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */ + src->pub.term_source = term_source; + + src->pub.next_input_byte = buffer; + src->pub.bytes_in_buffer = bufsize; +} + + + +/* Memory destination source modelled after Thomas G. Lane's memory source + support and jdatadst.c + + Copyright (C) 2010, Hans de Goede + + This code may be used under the same conditions as Thomas G. Lane's memory + source (see the copyright header at the top of this file). + */ + +typedef struct { + struct jpeg_destination_mgr pub; /* public fields */ + + JOCTET **buffer; /* start of buffer */ + unsigned long buf_size, *outsize; +} my_destination_mgr; + +typedef my_destination_mgr * my_dest_ptr; + +#define OUTPUT_BUF_SIZE 32768 /* choose an efficiently fwrite'able size */ + + +/* + * Initialize destination --- called by jpeg_start_compress + * before any data is actually written. + */ + +METHODDEF(void) +init_destination (j_compress_ptr cinfo) +{ + /* No work, since jpeg_mem_dest set up the buffer pointer and count. + * Indeed, if we want to write multiple JPEG images to one buffer, + * this *must* not do anything to the pointer. + */ +} + +/* + * Empty the output buffer --- called whenever buffer fills up. + * + * In typical applications, this should write the entire output buffer + * (ignoring the current state of next_output_byte & free_in_buffer), + * reset the pointer & count to the start of the buffer, and return TRUE + * indicating that the buffer has been dumped. + * + * In applications that need to be able to suspend compression due to output + * overrun, a FALSE return indicates that the buffer cannot be emptied now. + * In this situation, the compressor will return to its caller (possibly with + * an indication that it has not accepted all the supplied scanlines). The + * application should resume compression after it has made more room in the + * output buffer. Note that there are substantial restrictions on the use of + * suspension --- see the documentation. + * + * When suspending, the compressor will back up to a convenient restart point + * (typically the start of the current MCU). next_output_byte & free_in_buffer + * indicate where the restart point will be if the current call returns FALSE. + * Data beyond this point will be regenerated after resumption, so do not + * write it out when emptying the buffer externally. + */ + +METHODDEF(boolean) +empty_output_buffer (j_compress_ptr cinfo) +{ + my_dest_ptr dest = (my_dest_ptr) cinfo->dest; + + *dest->buffer = realloc (*dest->buffer, dest->buf_size + OUTPUT_BUF_SIZE); + if (!*dest->buffer) + ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0); + + dest->pub.next_output_byte = *dest->buffer + dest->buf_size; + dest->pub.free_in_buffer = OUTPUT_BUF_SIZE; + dest->buf_size += OUTPUT_BUF_SIZE; + + return TRUE; +} + +/* + * Terminate destination --- called by jpeg_finish_compress + * after all data has been written. Usually needs to flush buffer. + * + * NB: *not* called by jpeg_abort or jpeg_destroy; surrounding + * application must deal with any cleanup that should happen even + * for error exit. + */ + +METHODDEF(void) +term_destination (j_compress_ptr cinfo) +{ + my_dest_ptr dest = (my_dest_ptr) cinfo->dest; + + *dest->outsize = dest->buf_size - dest->pub.free_in_buffer; +} + +GLOBAL(void) +jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer, + unsigned long * outsize) +{ + my_dest_ptr dest; + + /* The destination object is made permanent so that multiple JPEG images + * can be written to the same file without re-executing jpeg_stdio_dest. + * This makes it dangerous to use this manager and a different destination + * manager serially with the same JPEG object, because their private object + * sizes may be different. Caveat programmer. + */ + if (cinfo->dest == NULL) { /* first time for this JPEG object? */ + cinfo->dest = (struct jpeg_destination_mgr *) + (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, + JPOOL_PERMANENT, + sizeof(my_destination_mgr)); + } + + dest = (my_dest_ptr) cinfo->dest; + dest->pub.init_destination = init_destination; + dest->pub.empty_output_buffer = empty_output_buffer; + dest->pub.term_destination = term_destination; + dest->buffer = outbuffer; + dest->buf_size = *outsize; + dest->outsize = outsize; + + if (*dest->buffer == NULL || dest->buf_size == 0) { + /* Allocate initial buffer */ + *dest->buffer = malloc(OUTPUT_BUF_SIZE); + if (*dest->buffer == NULL) + ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10); + dest->buf_size = OUTPUT_BUF_SIZE; + } + + dest->pub.next_output_byte = *dest->buffer; + dest->pub.free_in_buffer = dest->buf_size; +} + +#endif +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/jpeg_memsrcdest.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/jpeg_memsrcdest.h new file mode 100644 index 00000000..b13bf3f4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/jpeg_memsrcdest.h @@ -0,0 +1,13 @@ +#include + +#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) + +void +jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, + unsigned long bufsize); + +void +jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer, + unsigned long * outsize); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/library.c new file mode 100644 index 00000000..6b3636fa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/library.c @@ -0,0 +1,565 @@ +/* Appotech ax203 picframe access library + * + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#ifdef HAVE_LIBGD +#include +#endif + +#include +#include +#include +#include +#include "ax203.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +static const struct ax203_devinfo ax203_devinfo[] = { + { 0x1908, 0x1315, AX203_FIRMWARE_3_3_x }, + { 0x1908, 0x1320, AX203_FIRMWARE_3_4_x }, + { 0x1908, 0x0102, AX206_FIRMWARE_3_5_x }, + { 0x1908, 0x3335, AX3003_FIRMWARE_3_5_x }, + {} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "AX203 USB picture frame"); + + return GP_OK; +} + + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + int i; + + for (i = 0; ax203_devinfo[i].vendor_id; i++) { + memset (&a, 0, sizeof(a)); + snprintf(a.model, sizeof (a.model), + "AX203 USB picture frame firmware ver 3.%d.x", 3 + i); + a.status = GP_DRIVER_STATUS_TESTING; + a.port = GP_PORT_USB_SCSI; + a.speed[0] = 0; + a.usb_vendor = ax203_devinfo[i].vendor_id; + a.usb_product= ax203_devinfo[i].product_id; + a.operations = GP_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE | + GP_FOLDER_OPERATION_DELETE_ALL; + /* FIXME add support for downloading RAW images */ + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_RAW; + gp_abilities_list_append (list, a); + } + + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + sprintf (summary->text, + _("Your USB picture frame has a AX203 chipset\n")); + return GP_OK; +} + +static int +camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy(manual->text, + _( + "AX203 based picture frames come with a variety of resolutions.\n" + "The gphoto driver for these devices allows you to download,\n" + "upload and delete pictures from the picture frame." + )); + + return GP_OK; +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _( + "AX203 USB picture frame driver\n" + "Hans de Goede \n" + "This driver allows you to download, upload and delete pictures\n" + "from the picture frame." + )); + + return GP_OK; +} + +static int get_file_idx(Camera *camera, const char *folder, + const char *filename) +{ + int idx, count, present; + char *c; + + if (strcmp (folder, "/")) + return GP_ERROR_DIRECTORY_NOT_FOUND; + + if (strlen (filename) != 12 || + strncmp (filename, "pict", 4) || + strcmp (filename + 8, ".png")) + return GP_ERROR_FILE_NOT_FOUND; + + idx = strtoul(filename + 4, &c, 10); + if (*c != '.') + return GP_ERROR_FILE_NOT_FOUND; + idx--; + + count = ax203_read_filecount (camera); + if (count < 0) return count; + + if (idx < 0 || idx >= count) + return GP_ERROR_FILE_NOT_FOUND; + + present = ax203_file_present (camera, idx); + if (present < 0) return present; + if (!present) + return GP_ERROR_FILE_NOT_FOUND; + + return idx; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + int idx, size; +#ifdef HAVE_LIBGD + int ret; + gdImagePtr im; + void *gdpng; +#endif + + idx = get_file_idx(camera, folder, filename); + if (idx < 0) + return idx; + + if (type == GP_FILE_TYPE_RAW) { + char *raw; + + size = ax203_read_raw_file (camera, idx, &raw); + if (size < 0) return size; + + gp_file_set_mime_type (file, GP_MIME_RAW); + gp_file_set_name (file, filename); + gp_file_set_data_and_size (file, raw, size); + + return GP_OK; + } + +#ifdef HAVE_LIBGD + if (type != GP_FILE_TYPE_NORMAL) + return GP_ERROR_NOT_SUPPORTED; + + im = gdImageCreateTrueColor(camera->pl->width, camera->pl->height); + if (im == NULL) + return GP_ERROR_NO_MEMORY; + + ret = ax203_read_file(camera, idx, im->tpixels); + if (ret < 0) { + gdImageDestroy (im); + return ret; + } + + gdpng = gdImagePngPtr(im, &size); + gdImageDestroy (im); + if (gdpng == NULL) + return GP_ERROR_NO_MEMORY; + + ret = gp_file_set_mime_type (file, GP_MIME_PNG); + if (ret < 0) { gdFree (gdpng); return ret; } + + ret = gp_file_set_name (file, filename); + if (ret < 0) { gdFree (gdpng); return ret; } + + ret = gp_file_append (file, gdpng, size); + gdFree (gdpng); + return ret; +#else + gp_log(GP_LOG_ERROR,"ax203", "GD decompression not supported - no libGD present during build"); + return GP_ERROR_NOT_SUPPORTED; +#endif +} + +static int +put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *data, GPContext *context) +{ +#ifdef HAVE_LIBGD + Camera *camera = data; + char *filedata = NULL; + int ret, in_width, in_height, in_x, in_y; + double aspect_in, aspect_out; + unsigned long filesize = 0; + gdImagePtr im_out, im_in = NULL; + + if (strcmp (folder, "/")) + return GP_ERROR_DIRECTORY_NOT_FOUND; + + CHECK (gp_file_get_data_and_size (file, (const char **)&filedata, + &filesize)) + + /* Try loading the file using gd, starting with the most often + used types first */ + + /* gdImageCreateFromJpegPtr is chatty on error, don't call it on + non JPEG files */ + if (filesize > 2 && + (uint8_t)filedata[0] == 0xff && (uint8_t)filedata[1] == 0xd8) + im_in = gdImageCreateFromJpegPtr(filesize, filedata); + if (im_in == NULL) + im_in = gdImageCreateFromPngPtr(filesize, filedata); + if (im_in == NULL) + im_in = gdImageCreateFromGifPtr(filesize, filedata); + if (im_in == NULL) + im_in = gdImageCreateFromWBMPPtr(filesize, filedata); + if (im_in == NULL) { + gp_log (GP_LOG_ERROR, "ax203", + "Unrecognized file format for file: %s%s", + folder, name); + return GP_ERROR_BAD_PARAMETERS; + } + + im_out = gdImageCreateTrueColor(camera->pl->width, camera->pl->height); + if (im_out == NULL) { + gdImageDestroy (im_in); + return GP_ERROR_NO_MEMORY; + } + + /* Keep aspect */ + aspect_in = (double)im_in->sx / im_in->sy; + aspect_out = (double)im_out->sx / im_out->sy; + if (aspect_in > aspect_out) { + /* Reduce in width (crop left and right) */ + in_width = (im_in->sx / aspect_in) * aspect_out; + in_x = (im_in->sx - in_width) / 2; + in_height = im_in->sy; + in_y = 0; + } else { + /* Reduce in height (crop top and bottom) */ + in_width = im_in->sx; + in_x = 0; + in_height = (im_in->sy * aspect_in) / aspect_out; + in_y = (im_in->sy - in_height) / 2; + } + + gdImageCopyResampled (im_out, im_in, 0, 0, in_x, in_y, + im_out->sx, im_out->sy, + in_width, in_height); + + if (im_in->sx != im_out->sx || + im_in->sy != im_out->sy) + gdImageSharpen(im_out, 100); + + ret = ax203_write_file (camera, im_out->tpixels); + if (ret >= 0) { + /* Commit the changes to the device */ + ret = ax203_commit(camera); + } + + gdImageDestroy (im_in); + gdImageDestroy (im_out); + return ret; +#else + gp_log(GP_LOG_ERROR,"ax203", "GD compression not supported - no libGD present during build"); + return GP_ERROR_NOT_SUPPORTED; +#endif +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int idx; + + idx = get_file_idx(camera, folder, filename); + if (idx < 0) + return idx; + + CHECK (ax203_delete_file(camera, idx)) + + return ax203_commit(camera); +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + + CHECK (ax203_delete_all (camera)) + + return ax203_commit(camera); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + memset (info, 0, sizeof(CameraFileInfo)); + /* FIXME: fill in some stuff? */ + return GP_OK; +} + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + if (strcmp(folder, "/")) + return GP_ERROR_DIRECTORY_NOT_FOUND; + + /* Subfolders not supported */ + return GP_OK; +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i, count, present; + char buf[30]; + + count = ax203_read_filecount (camera); + if (count < 0) return count; + + for (i = 0; i < count; i++) { + present = ax203_file_present (camera, i); + if (present < 0) return present; + if (present) { + snprintf(buf, sizeof(buf), "pict%04d.png", i + 1); + CHECK (gp_list_append (list, buf, NULL)) + } + } + + return GP_OK; +} + +static int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **sinfos, + int *nrofsinfos, + void *data, GPContext *context) +{ + Camera *camera = (Camera*)data; + CameraStorageInformation *sinfo; + int free, imagesize; + + free = ax203_get_free_mem_size (camera); + if (free < 0) return free; + + sinfo = malloc(sizeof(CameraStorageInformation)); + if (!sinfo) return GP_ERROR_NO_MEMORY; + + *sinfos = sinfo; + *nrofsinfos = 1; + + sinfo->fields = GP_STORAGEINFO_BASE; + strcpy(sinfo->basedir, "/"); + + sinfo->fields |= GP_STORAGEINFO_ACCESS; + sinfo->access = GP_STORAGEINFO_AC_READWRITE; + sinfo->fields |= GP_STORAGEINFO_STORAGETYPE; + sinfo->type = GP_STORAGEINFO_ST_FIXED_RAM; + sinfo->fields |= GP_STORAGEINFO_FILESYSTEMTYPE; + sinfo->fstype = GP_STORAGEINFO_FST_GENERICFLAT; + sinfo->fields |= GP_STORAGEINFO_MAXCAPACITY; + sinfo->capacitykbytes = ax203_get_mem_size (camera) / 1024; + sinfo->fields |= GP_STORAGEINFO_FREESPACEKBYTES; + sinfo->freekbytes = free / 1024; + + imagesize = ax203_filesize (camera); + if (imagesize) { + sinfo->fields |= GP_STORAGEINFO_FREESPACEIMAGES; + sinfo->freeimages = free / imagesize; + } + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .put_file_func = put_file_func, + .delete_all_func = delete_all_func, + .storage_info_func = storage_info_func +}; + +static int +camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *child; + + GP_DEBUG ("*** camera_get_config"); + + gp_widget_new (GP_WIDGET_WINDOW, + _("Picture Frame Configuration"), window); + + gp_widget_new (GP_WIDGET_TOGGLE, + _("Synchronize frame data and time with PC"), &child); + gp_widget_set_value (child, &camera->pl->syncdatetime); + gp_widget_append (*window, child); + + return GP_OK; +} + +static int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *child; + int ret; + + GP_DEBUG ("*** camera_set_config"); + + ret = gp_widget_get_child_by_label (window, + _("Synchronize frame data and time with PC"), &child); + if (ret == GP_OK) + gp_widget_get_value (child, &camera->pl->syncdatetime); + + return GP_OK; +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + char buf[2]; + + if (camera->pl != NULL) { + buf[0] = '0' + camera->pl->syncdatetime; + buf[1] = 0; + gp_setting_set("ax203", "syncdatetime", buf); + ax203_close (camera); + free (camera->pl); + camera->pl = NULL; + } + return GP_OK; +} + +int +camera_init (Camera *camera, GPContext *context) +{ + CameraAbilities a; + int i, ret; + char *dump, buf[256]; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = calloc (1, sizeof(CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + + ret = gp_setting_get("ax203", "syncdatetime", buf); + if (ret == GP_OK) + camera->pl->syncdatetime = buf[0] == '1'; + else + camera->pl->syncdatetime = 1; + + CHECK (gp_camera_get_abilities(camera, &a)) + for (i = 0; ax203_devinfo[i].vendor_id; i++) { + if ((a.usb_vendor == ax203_devinfo[i].vendor_id) && + (a.usb_product == ax203_devinfo[i].product_id)) { + camera->pl->frame_version = + ax203_devinfo[i].frame_version; + break; + } + } + + if (!ax203_devinfo[i].vendor_id) { + gp_log (GP_LOG_ERROR, "ax203", "Unknown USB ID"); + camera_exit (camera, context); + return GP_ERROR_BAD_PARAMETERS; + } + + dump = getenv("GP_AX203_DUMP"); + if (dump) + ret = ax203_open_dump (camera, dump); + else + ret = ax203_open_device (camera); + + if (ret != GP_OK) { + camera_exit (camera, context); + return ret; + } + + GP_DEBUG ("ax203 memory size: %d, free: %d", + ax203_get_mem_size (camera), + ax203_get_free_mem_size (camera)); + + if (camera->pl->syncdatetime) { + struct tm *xtm; +#ifdef HAVE_LOCALTIME_R + struct tm tm; +#endif + time_t t; + + t = time (NULL); +#ifdef HAVE_LOCALTIME_R + if ((xtm = localtime_r (&t , &tm))) { +#else + if ((xtm = localtime (&t))) { +#endif + ret = ax203_set_time_and_date (camera, xtm); + if (ret != GP_OK) { + camera_exit (camera, context); + return ret; + } + } + } + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/tinyjpeg-internal.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/tinyjpeg-internal.h new file mode 100644 index 00000000..271c1e7f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/tinyjpeg-internal.h @@ -0,0 +1,122 @@ +/* + * Small jpeg decoder library (Internal header) + * + * *** NOTE: This is a modified version to deal with the ax203 "JPEG" fmt + * *** This version can not decompress regular JPEG files, see + * *** README.ax203-compression for details + * + * Copyright (c) 2006, Luc Saillard + * + * ax203 modifications: + * Copyright (c) 2010, Hans de Goede + * + * All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * - Neither the name of the author nor the names of its contributors may be + * used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + */ + + +#ifndef __TINYJPEG_INTERNAL_H_ +#define __TINYJPEG_INTERNAL_H_ + +#include + +#define SANITY_CHECK 1 + +struct jdec_private; + +#define HUFFMAN_HASH_NBITS 9 +#define HUFFMAN_HASH_SIZE (1UL< + * + * ax203 modifications: + * Copyright (c) 2010, Hans de Goede + * + * All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * - Neither the name of the author nor the names of its contributors may be + * used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + */ + +#define _DEFAULT_SOURCE + +#include +#include +#include +#include <_stdint.h> +#include + +#include "tinyjpeg.h" +#include "tinyjpeg-internal.h" + +#define cY 0 +#define cCb 1 +#define cCr 2 + +#define BLACK_Y 0 +#define BLACK_U 127 +#define BLACK_V 127 + +#if 0 +#if LOG2FILE + +#define trace(fmt, args...) do { \ + FILE *f = fopen("/tmp/jpeg.log", "a"); \ + fprintf(f, fmt, ## args); \ + fflush(f); \ + fclose(f); \ +} while(0) + +#else + +#define trace(fmt, args...) do { \ + fprintf(stderr, fmt, ## args); \ + fflush(stderr); \ +} while(0) +#endif + +#else +#define trace(fmt, args...) do { } while (0) +#endif + +#define error(fmt, args...) do { \ + snprintf(priv->error_string, sizeof(priv->error_string), fmt, ## args); \ + return -1; \ +} while(0) + + +static const unsigned char zigzag[64] = +{ + 0, 1, 5, 6, 14, 15, 27, 28, + 2, 4, 7, 13, 16, 26, 29, 42, + 3, 8, 12, 17, 25, 30, 41, 43, + 9, 11, 18, 24, 31, 40, 44, 53, + 10, 19, 23, 32, 39, 45, 52, 54, + 20, 22, 33, 38, 46, 51, 55, 60, + 21, 34, 37, 47, 50, 56, 59, 61, + 35, 36, 48, 49, 57, 58, 62, 63 +}; + +/* + * 4 functions to manage the stream + * + * fill_nbits: put at least nbits in the reservoir of bits. + * But convert any 0xff,0x00 into 0xff + * get_nbits: read nbits from the stream, and put it in result, + * bits is removed from the stream and the reservoir is filled + * automaticaly. The result is signed according to the number of + * bits. + * look_nbits: read nbits from the stream without marking as read. + * skip_nbits: read nbits from the stream but do not return the result. + * + * stream: current pointer in the jpeg data (read bytes per bytes) + * nbits_in_reservoir: number of bits filled into the reservoir + * reservoir: register that contains bits information. Only nbits_in_reservoir + * is valid. + * nbits_in_reservoir + * <-- 17 bits --> + * Ex: 0000 0000 1010 0000 1111 0000 <== reservoir + * ^ + * bit 1 + * To get two bits from this example + * result = (reservoir >> 15) & 3 + * + */ +#define fill_nbits(reservoir,nbits_in_reservoir,stream,nbits_wanted) do { \ + while (nbits_in_reservoir= priv->stream_end) { \ + snprintf(priv->error_string, sizeof(priv->error_string), \ + "fill_nbits error: need %u more bits\n", \ + nbits_wanted - nbits_in_reservoir); \ + longjmp(priv->jump_state, -EIO); \ + } \ + __c = *stream++; \ + reservoir <<= 8; \ + reservoir |= __c; \ + nbits_in_reservoir+=8; \ + } \ +} while(0); + +/* Signed version !!!! */ +#define get_nbits(reservoir,nbits_in_reservoir,stream,nbits_wanted,result) do { \ + fill_nbits(reservoir,nbits_in_reservoir,stream,(nbits_wanted)); \ + result = ((reservoir)>>(nbits_in_reservoir-(nbits_wanted))); \ + nbits_in_reservoir -= (nbits_wanted); \ + reservoir &= ((1U<>(nbits_in_reservoir-(nbits_wanted))); \ +} while(0); + +/* To speed up the decoding, we assume that the reservoir have enough bit + * slow version: + * #define skip_nbits(reservoir,nbits_in_reservoir,stream,nbits_wanted) do { \ + * fill_nbits(reservoir,nbits_in_reservoir,stream,(nbits_wanted)); \ + * nbits_in_reservoir -= (nbits_wanted); \ + * reservoir &= ((1U<reservoir, priv->nbits_in_reservoir, priv->stream, HUFFMAN_HASH_NBITS, hcode); + value = huffman_table->lookup[hcode]; + if (value >= 0) + { + unsigned int code_size = huffman_table->code_size[value]; + skip_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, code_size); + return value; + } + + /* Decode more bits each time ... */ + for (extra_nbits=0; extra_nbits<16-HUFFMAN_HASH_NBITS; extra_nbits++) + { + nbits = HUFFMAN_HASH_NBITS + 1 + extra_nbits; + + look_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, nbits, hcode); + slowtable = huffman_table->slowtable[extra_nbits]; + /* Search if the code is in this array */ + while (slowtable[0]) { + if (slowtable[0] == hcode) { + skip_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, nbits); + return slowtable[1]; + } + slowtable+=2; + } + } + snprintf(priv->error_string, sizeof(priv->error_string), + "unknown huffman code: %08x\n", (unsigned int)hcode); + longjmp(priv->jump_state, -EIO); + return 0; +} + +/** + * + * Decode a single block that contains the DCT coefficients. + * The table coefficients is already dezigzaged at the end of the operation. + * + */ +static void process_Huffman_data_unit(struct jdec_private *priv, int component, int block_nr) +{ + unsigned char j; + unsigned int huff_code; + unsigned char size_val, count_0; + + struct component *c = &priv->component_infos[component]; + short int DCT[64]; + + /* Initialize the DCT coef table */ + memset(DCT, 0, sizeof(DCT)); + + /* DC coefficient decoding */ + huff_code = get_next_huffman_code(priv, c->DC_table); + if (huff_code) { + get_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, huff_code, DCT[0]); + DCT[0] += c->previous_DC; + c->previous_DC = DCT[0]; + } else { + DCT[0] = c->previous_DC; + } + + /* AC coefficient decoding */ + j = 1; + while (j<64) + { + huff_code = get_next_huffman_code(priv, c->AC_table); + + size_val = huff_code & 0xF; + count_0 = huff_code >> 4; + + if (size_val == 0) + { /* RLE */ + if (count_0 == 0) + break; /* EOB found, go out */ + else if (count_0 == 0xF) + j += 16; /* skip 16 zeros */ + } + else + { + j += count_0; /* skip count_0 zeroes */ + if (j < 64) { + get_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, size_val, DCT[j]); + j++; + } + } + } + + for (j = 0; j < 64; j++) + c->DCT[j] = DCT[zigzag[j]]; +} + +/* + * Takes two array of bits, and build the huffman table for size, and code + * + * lookup will return the symbol if the code is less or equal than HUFFMAN_HASH_NBITS. + * code_size will be used to known how many bits this symbol is encoded. + * slowtable will be used when the first lookup didn't give the result. + */ +static int build_huffman_table(struct jdec_private *priv, const unsigned char *bits, const unsigned char *vals, struct huffman_table *table) +{ + unsigned int i, j, code, code_size, val, nbits; + unsigned char huffsize[257], *hz; + unsigned int huffcode[257], *hc; + int slowtable_used[16-HUFFMAN_HASH_NBITS]; + + /* + * Build a temp array + * huffsize[X] => numbers of bits to write vals[X] + */ + hz = huffsize; + for (i=1; i<=16; i++) + { + for (j=1; j<=bits[i]; j++) + *hz++ = i; + } + *hz = 0; + + memset(table->lookup, 0xff, sizeof(table->lookup)); + for (i=0; i<(16-HUFFMAN_HASH_NBITS); i++) + slowtable_used[i] = 0; + + /* Build a temp array + * huffcode[X] => code used to write vals[X] + */ + code = 0; + hc = huffcode; + hz = huffsize; + nbits = *hz; + while (*hz) + { + while (*hz == nbits) { + *hc++ = code++; + hz++; + } + code <<= 1; + nbits++; + } + + /* + * Build the lookup table, and the slowtable if needed. + */ + for (i=0; huffsize[i]; i++) + { + val = vals[i]; + code = huffcode[i]; + code_size = huffsize[i]; + + trace("val=%2.2x code=%8.8x codesize=%2.2d\n", i, code, code_size); + + table->code_size[val] = code_size; + if (code_size <= HUFFMAN_HASH_NBITS) + { + /* + * Good: val can be put in the lookup table, so fill all value of this + * column with value val + */ + int repeat = 1UL<<(HUFFMAN_HASH_NBITS - code_size); + code <<= HUFFMAN_HASH_NBITS - code_size; + while ( repeat-- ) + table->lookup[code++] = val; + + } + else + { + /* Perhaps sorting the array will be an optimization */ + int slowtable_index = code_size-HUFFMAN_HASH_NBITS-1; + + if (slowtable_used[slowtable_index] == 254) + error("slow Huffman table overflow\n"); + + table->slowtable[slowtable_index][slowtable_used[slowtable_index]] + = code; + table->slowtable[slowtable_index][slowtable_used[slowtable_index] + 1] + = val; + slowtable_used[slowtable_index] += 2; + } + } + + for (i=0; i<(16-HUFFMAN_HASH_NBITS); i++) + table->slowtable[i][slowtable_used[i]] = 0; + + return 0; +} + +/******************************************************************************* + * + * Colorspace conversion routine + * + * + * Note: + * YCbCr is defined per CCIR 601-1, except that Cb and Cr are + * normalized to the range 0..MAXJSAMPLE rather than -0.5 .. 0.5. + * The conversion equations to be implemented are therefore + * R = Y + 1.40200 * Cr + * G = Y - 0.34414 * Cb - 0.71414 * Cr + * B = Y + 1.77200 * Cb + * + ******************************************************************************/ + +static unsigned char clamp(int i) +{ + if (i<0) + return 0; + else if (i>255) + return 255; + else + return i; +} + + +/** + * YCrCb -> RGB24 (1x1) + * .---. + * | 1 | + * `---' + */ +static void YCrCB_to_RGB24_1x1(struct jdec_private *priv) +{ + const unsigned char *Y, *Cb, *Cr; + unsigned char *p; + int i,j; + int offset_to_next_row; + +#define SCALEBITS 10 +#define ONE_HALF (1UL << (SCALEBITS-1)) +#define FIX(x) ((int)((x) * (1UL<plane[0]; + Y = priv->Y; + Cb = priv->Cb; + Cr = priv->Cr; + offset_to_next_row = priv->width*3 - 8*3; + for (i=0; i<8; i++) { + + for (j=0; j<8; j++) { + + int y, cb, cr; + int add_r, add_g, add_b; + int r, g , b; + + y = (*Y++) << SCALEBITS; + cb = *Cb++ - 128; + cr = *Cr++ - 128; + add_r = FIX(1.40200) * cr + ONE_HALF; + add_g = - FIX(0.34414) * cb - FIX(0.71414) * cr + ONE_HALF; + add_b = FIX(1.77200) * cb + ONE_HALF; + + r = (y + add_r) >> SCALEBITS; + *p++ = clamp(r); + g = (y + add_g) >> SCALEBITS; + *p++ = clamp(g); + b = (y + add_b) >> SCALEBITS; + *p++ = clamp(b); + + } + + p += offset_to_next_row; + } + +#undef SCALEBITS +#undef ONE_HALF +#undef FIX + +} + +/** + * YCrCb -> RGB24 (2x2) + * .-------. + * | 1 | 2 | + * |---+---| + * | 3 | 4 | + * `-------' + */ +static void YCrCB_to_RGB24_2x2(struct jdec_private *priv) +{ + const unsigned char *Y, *Cb, *Cr; + unsigned char *p, *p2; + int i,j; + int offset_to_next_row; + +#define SCALEBITS 10 +#define ONE_HALF (1UL << (SCALEBITS-1)) +#define FIX(x) ((int)((x) * (1UL<plane[0]; + p2 = priv->plane[0] + priv->width*3; + Y = priv->Y; + Cb = priv->Cb; + Cr = priv->Cr; + offset_to_next_row = (priv->width*3*2) - 16*3; + for (i=0; i<8; i++) { + + for (j=0; j<8; j++) { + + int y, cb, cr; + int add_r, add_g, add_b; + int r, g , b; + + cb = *Cb++ - 128; + cr = *Cr++ - 128; + add_r = FIX(1.40200) * cr + ONE_HALF; + add_g = - FIX(0.34414) * cb - FIX(0.71414) * cr + ONE_HALF; + add_b = FIX(1.77200) * cb + ONE_HALF; + + y = (*Y++) << SCALEBITS; + r = (y + add_r) >> SCALEBITS; + *p++ = clamp(r); + g = (y + add_g) >> SCALEBITS; + *p++ = clamp(g); + b = (y + add_b) >> SCALEBITS; + *p++ = clamp(b); + + y = (*Y++) << SCALEBITS; + r = (y + add_r) >> SCALEBITS; + *p++ = clamp(r); + g = (y + add_g) >> SCALEBITS; + *p++ = clamp(g); + b = (y + add_b) >> SCALEBITS; + *p++ = clamp(b); + + y = (Y[16-2]) << SCALEBITS; + r = (y + add_r) >> SCALEBITS; + *p2++ = clamp(r); + g = (y + add_g) >> SCALEBITS; + *p2++ = clamp(g); + b = (y + add_b) >> SCALEBITS; + *p2++ = clamp(b); + + y = (Y[16-1]) << SCALEBITS; + r = (y + add_r) >> SCALEBITS; + *p2++ = clamp(r); + g = (y + add_g) >> SCALEBITS; + *p2++ = clamp(g); + b = (y + add_b) >> SCALEBITS; + *p2++ = clamp(b); + } + Y += 16; + p += offset_to_next_row; + p2 += offset_to_next_row; + } + +#undef SCALEBITS +#undef ONE_HALF +#undef FIX + +} + +/* + * Decode all the 3 components for 1x1 + */ +static void decode_MCU_1x1_3planes(struct jdec_private *priv, int block_nr) +{ + /* Special ax206 hack, forget remaining bits after each MCU */ + priv->stream -= (priv->nbits_in_reservoir/8); + priv->nbits_in_reservoir = 0; + priv->reservoir = 0; + + /* Cb */ + process_Huffman_data_unit(priv, cCb, block_nr); + IDCT(&priv->component_infos[cCb], priv->Cb, 8); + + /* Cr */ + process_Huffman_data_unit(priv, cCr, block_nr); + IDCT(&priv->component_infos[cCr], priv->Cr, 8); + + /* Y */ + process_Huffman_data_unit(priv, cY, block_nr); + IDCT(&priv->component_infos[cY], priv->Y, 8); + +} + +/* + * Decode a 2x2 + * .-------. + * | 1 | 2 | + * |---+---| + * | 3 | 4 | + * `-------' + */ +static void decode_MCU_2x2_3planes(struct jdec_private *priv, int block_nr) +{ + /* Special ax206 hack, forget remaining bits after each MCU */ + priv->stream -= (priv->nbits_in_reservoir/8); + priv->nbits_in_reservoir = 0; + priv->reservoir = 0; + + /* Cb */ + process_Huffman_data_unit(priv, cCb, 0); + IDCT(&priv->component_infos[cCb], priv->Cb, 8); + + /* Cr */ + process_Huffman_data_unit(priv, cCr, 0); + IDCT(&priv->component_infos[cCr], priv->Cr, 8); + + /* Y */ + process_Huffman_data_unit(priv, cY, block_nr); + IDCT(&priv->component_infos[cY], priv->Y, 16); + process_Huffman_data_unit(priv, cY, -1); + IDCT(&priv->component_infos[cY], priv->Y+8, 16); + process_Huffman_data_unit(priv, cY, -2); + IDCT(&priv->component_infos[cY], priv->Y+64*2, 16); + process_Huffman_data_unit(priv, cY, -3); + IDCT(&priv->component_infos[cY], priv->Y+64*2+8, 16); + +} + + +static void build_quantization_table(float *qtable, const unsigned char *ref_table) +{ + /* Taken from libjpeg. Copyright Independent JPEG Group's LLM idct. + * For float AA&N IDCT method, divisors are equal to quantization + * coefficients scaled by scalefactor[row]*scalefactor[col], where + * scalefactor[0] = 1 + * scalefactor[k] = cos(k*PI/16) * sqrt(2) for k=1..7 + * We apply a further scale factor of 8. + * What's actually stored is 1/divisor so that the inner loop can + * use a multiplication rather than a division. + */ + int i, j; + static const double aanscalefactor[8] = { + 1.0, 1.387039845, 1.306562965, 1.175875602, + 1.0, 0.785694958, 0.541196100, 0.275899379 + }; + const unsigned char *zz = zigzag; + + for (i=0; i<8; i++) { + for (j=0; j<8; j++) { + *qtable++ = ref_table[*zz++] * aanscalefactor[i] * aanscalefactor[j]; + } + } + +} + +static int parse_DQT(struct jdec_private *priv, const unsigned char *stream) +{ + int qi; + float *table; + const unsigned char *dqt_block_end; + + trace("> DQT marker\n"); + dqt_block_end = stream + be16_to_cpu(stream); + stream += 2; /* Skip length */ + + while (stream < dqt_block_end) + { + qi = *stream++; +#if SANITY_CHECK + if (qi>>4) + error("16 bits quantization table is not supported\n"); + if (qi >= COMPONENTS) + error("No more than %d quantization tables supported (got %d)\n", + COMPONENTS, qi + 1); +#endif + table = priv->Q_tables[qi]; + build_quantization_table(table, stream); + stream += 64; + } + trace("< DQT marker\n"); + return 0; +} + +static int parse_DHT(struct jdec_private *priv, const unsigned char *stream) +{ + unsigned int count, i; + unsigned char huff_bits[17]; + int length, index; + + length = be16_to_cpu(stream) - 2; + stream += 2; /* Skip length */ + + trace("> DHT marker (length=%d)\n", length); + + while (length>0) { + index = *stream++; + + /* We need to calculate the number of bytes 'vals' will takes */ + huff_bits[0] = 0; + count = 0; + for (i=1; i<17; i++) { + huff_bits[i] = *stream++; + count += huff_bits[i]; + } +#if SANITY_CHECK + if (count > 1024) + error("No more than 1024 bytes is allowed to describe a huffman table\n"); + if ( (index &0xf) >= HUFFMAN_TABLES) + error("No mode than %d Huffman tables is supported\n", HUFFMAN_TABLES); + trace("Huffman table %s n%d\n", (index&0xf0)?"AC":"DC", index&0xf); + trace("Length of the table: %d\n", count); +#endif + + if (index & 0xf0 ) { + if (build_huffman_table(priv, huff_bits, stream, &priv->HTAC[index&0xf])) + return -1; + } else { + if (build_huffman_table(priv, huff_bits, stream, &priv->HTDC[index&0xf])) + return -1; + } + + length -= 1; + length -= 16; + length -= count; + stream += count; + } + trace("< DHT marker\n"); + return 0; +} + +static void resync(struct jdec_private *priv) +{ + int i; + + /* Init DC coefficients */ + for (i=0; icomponent_infos[i].previous_DC = 0; + + priv->reservoir = 0; + priv->nbits_in_reservoir = 0; +} + +/******************************************************************************* + * + * Functions exported of the library. + * + * Note: Some applications can access directly to internal pointer of the + * structure. It's is not recommended, but if you have many images to + * uncompress with the same parameters, some functions can be called to speedup + * the decoding. + * + ******************************************************************************/ + +/** + * Allocate a new tinyjpeg decoder object. + * + * Before calling any other functions, an object need to be called. + */ +struct jdec_private *tinyjpeg_init(void) +{ + struct jdec_private *priv; + + priv = (struct jdec_private *)calloc(1, sizeof(struct jdec_private)); + if (priv == NULL) + return NULL; + return priv; +} + +/** + * Free a tinyjpeg object. + * + * No others function can be called after this one. + */ +void tinyjpeg_free(struct jdec_private *priv) +{ + int i; + + for (i=0; icomponents[i]); + priv->components[i] = NULL; + } + free(priv); +} + +/** + * Initialize the tinyjpeg object and prepare the decoding of the stream. + * + * Check if the jpeg can be decoded with this jpeg decoder. + * Fill some table used for preprocessing. + */ +int tinyjpeg_parse_header(struct jdec_private *priv, const unsigned char *buf, unsigned int size) +{ + const unsigned char *stream = buf; + struct component *c; + int i; + + priv->width = be16_to_cpu(stream); + priv->height = be16_to_cpu(stream + 2); + +#if SANITY_CHECK + if (priv->width>JPEG_MAX_WIDTH || priv->height>JPEG_MAX_HEIGHT) + error("Width and Height (%dx%d) seems suspicious\n", + priv->width, priv->height); + if (priv->height%8) + error("Height need to be a multiple of 8 (current height is %d)\n", + priv->height); + if (priv->width%8) + error("Width need to be a multiple of 16 (current width is %d)\n", + priv->width); +#endif + trace("size: %dx%d\n", priv->width, priv->height); + + switch (stream[4]) { + case 0: + priv->component_infos[cY].Vfactor = 1; + priv->component_infos[cY].Hfactor = 1; + break; + case 3: + priv->component_infos[cY].Vfactor = 2; + priv->component_infos[cY].Hfactor = 2; + break; + default: + error("Unknown subsampling identifier: 0x%02x\n", stream[4]); + } + priv->component_infos[cCb].Vfactor = 1; + priv->component_infos[cCb].Hfactor = 1; + priv->component_infos[cCr].Vfactor = 1; + priv->component_infos[cCr].Hfactor = 1; + + for (i = 0; i < 3; i++) { + c = &priv->component_infos[i]; + + if (stream[5 + i] != 0 && stream[5 + i] != 1) + error("Invalid quant table nr: %d\n", stream[5 + i]); + if (stream[8 + i] != 0 && stream[8 + i] != 1) + error("Invalid DC huffman table nr: %d\n", stream[8 + i]); + if (stream[11 + i] != 0 && stream[11 + i] != 1) + error("Invalid AC huffman table nr: %d\n", stream[11 + i]); + + c->Q_table = priv->Q_tables[stream[5 + i]]; + c->DC_table = &priv->HTDC[stream[8 + i]]; + c->AC_table = &priv->HTAC[stream[11 + i]]; + trace("Component:%d factor:%dx%d QT:%d AC:%d DC:%d\n", + i, c->Hfactor, c->Hfactor, stream[5 + i], stream[8 + i], stream[11 + i]); + } + + /* Skip header */ + stream += 16; + + /* Skip MCU info blocks (we don't need them) */ + stream += (priv->width / (8 * priv->component_infos[cY].Hfactor)) * + (priv->height / (8 * priv->component_infos[cY].Vfactor)) * 8; + + /* Parse DQT table */ + if (parse_DQT(priv, stream)) + return -1; + stream += be16_to_cpu(stream); + + /* Parse DHT table */ + if (parse_DHT(priv, stream)) + return -1; + stream += be16_to_cpu(stream); + + priv->stream = stream; + priv->stream_end = buf + size; + return 0; +} + +static const decode_MCU_fct decode_mcu_3comp_table[4] = { + decode_MCU_1x1_3planes, + decode_MCU_2x2_3planes, +}; + +static const convert_colorspace_fct convert_colorspace_rgb24[4] = { + YCrCB_to_RGB24_1x1, + YCrCB_to_RGB24_2x2, +}; + +/** + * Decode and convert the jpeg image into @pixfmt@ image + * + * Note: components will be automaticaly allocated if no memory is attached. + */ +int tinyjpeg_decode(struct jdec_private *priv) +{ + unsigned int x, y, xstride_by_mcu, ystride_by_mcu; + unsigned int bytes_per_blocklines[3], bytes_per_mcu[3]; + decode_MCU_fct decode_MCU; + const decode_MCU_fct *decode_mcu_table; + const convert_colorspace_fct *colorspace_array_conv; + convert_colorspace_fct convert_to_pixfmt; + + if (setjmp(priv->jump_state)) + return -1; + + /* To keep gcc happy initialize some array */ + bytes_per_mcu[1] = 0; + bytes_per_mcu[2] = 0; + bytes_per_blocklines[1] = 0; + bytes_per_blocklines[2] = 0; + + decode_mcu_table = decode_mcu_3comp_table; + colorspace_array_conv = convert_colorspace_rgb24; + if (priv->components[0] == NULL) + priv->components[0] = (uint8_t *)malloc(priv->width * priv->height * 3); + bytes_per_blocklines[0] = priv->width * 3; + bytes_per_mcu[0] = 3*8; + + xstride_by_mcu = ystride_by_mcu = 8; + if ((priv->component_infos[cY].Hfactor | priv->component_infos[cY].Vfactor) == 1) { + decode_MCU = decode_mcu_table[0]; + convert_to_pixfmt = colorspace_array_conv[0]; + trace("Use decode 1x1 sampling\n"); + } else if (priv->component_infos[cY].Hfactor == 2 && + priv->component_infos[cY].Vfactor == 2) { + decode_MCU = decode_mcu_table[1]; + convert_to_pixfmt = colorspace_array_conv[1]; + xstride_by_mcu = 16; + ystride_by_mcu = 16; + trace("Use decode 2x2 sampling\n"); + } else { + error("Unknown sub sampling factors: %dx%d\n", + priv->component_infos[cY].Hfactor, + priv->component_infos[cY].Vfactor); + } + + resync(priv); + + /* Don't forget to that block can be either 8 or 16 lines */ + bytes_per_blocklines[0] *= ystride_by_mcu; + bytes_per_blocklines[1] *= ystride_by_mcu; + bytes_per_blocklines[2] *= ystride_by_mcu; + + bytes_per_mcu[0] *= xstride_by_mcu/8; + bytes_per_mcu[1] *= xstride_by_mcu/8; + bytes_per_mcu[2] *= xstride_by_mcu/8; + + /* Just the decode the image by macroblock (size is 8x8, 8x16, or 16x16) */ + for (y=0; y < priv->height/ystride_by_mcu; y++) + { + priv->plane[0] = priv->components[0] + (y * bytes_per_blocklines[0]); + priv->plane[1] = priv->components[1] + (y * bytes_per_blocklines[1]); + priv->plane[2] = priv->components[2] + (y * bytes_per_blocklines[2]); + for (x=0; x < priv->width/xstride_by_mcu; x++) + { + decode_MCU(priv, y * priv->width/xstride_by_mcu + x); + convert_to_pixfmt(priv); + priv->plane[0] += bytes_per_mcu[0]; + priv->plane[1] += bytes_per_mcu[1]; + priv->plane[2] += bytes_per_mcu[2]; + } + } + + /* Additional sanity check */ + if ((priv->stream_end - priv->stream) > 1) + error("Data (%d bytes) remaining after decoding\n", + (int)(priv->stream_end - priv->stream)); + + return 0; +} + +const char *tinyjpeg_get_errorstring(struct jdec_private *priv) +{ + return priv->error_string; +} + +void tinyjpeg_get_size(struct jdec_private *priv, unsigned int *width, unsigned int *height) +{ + *width = priv->width; + *height = priv->height; +} + +int tinyjpeg_get_components(struct jdec_private *priv, unsigned char **components) +{ + int i; + for (i=0; icomponents[i]; i++) + components[i] = priv->components[i]; + return 0; +} + +int tinyjpeg_set_components(struct jdec_private *priv, unsigned char **components, unsigned int ncomponents) +{ + unsigned int i; + if (ncomponents > COMPONENTS) + ncomponents = COMPONENTS; + for (i=0; icomponents[i] = components[i]; + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/tinyjpeg.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/tinyjpeg.h new file mode 100644 index 00000000..c2b4f004 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ax203/tinyjpeg.h @@ -0,0 +1,69 @@ +/* + * Small jpeg decoder library (header file) + * + * *** NOTE: This is a modified version to deal with the ax203 "JPEG" fmt + * *** This version can not decompress regular JPEG files, see + * *** README.ax203-compression for details + * + * Copyright (c) 2006, Luc Saillard + * + * ax203 modifications: + * Copyright (c) 2010, Hans de Goede + * + * All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * - Neither the name of the author nor the names of its contributors may be + * used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + */ + + +#ifndef __JPEGDEC_H__ +#define __JPEGDEC_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +struct jdec_private; + +struct jdec_private *tinyjpeg_init(void); +void tinyjpeg_free(struct jdec_private *priv); + +int tinyjpeg_parse_header(struct jdec_private *priv, const unsigned char *buf, unsigned int size); +int tinyjpeg_decode(struct jdec_private *priv); +const char *tinyjpeg_get_errorstring(struct jdec_private *priv); +void tinyjpeg_get_size(struct jdec_private *priv, unsigned int *width, unsigned int *height); +int tinyjpeg_get_components(struct jdec_private *priv, unsigned char **components); +int tinyjpeg_set_components(struct jdec_private *priv, unsigned char **components, unsigned int ncomponents); + +#ifdef __cplusplus +} +#endif + +#endif + + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/ChangeLog new file mode 100644 index 00000000..867702d3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/ChangeLog @@ -0,0 +1,15 @@ +2009-02-13 Marcus Meissner + + * barbie.c: made even more clean, split reader + code in CameraFile* and char * generator. + +2007-05-23 Marcus Meissner + + * main.c: Removed. + * library.c: Reworked Bayer array decoding. + Use global bayer routines. + + * library.c, barbie.c: Largish clean up. + + * library.c,barbie.h: Merged into barbie.c + * Protocol.txt: Extracted from barbie.h diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/Makefile-files new file mode 100644 index 00000000..bee8e60b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/Makefile-files @@ -0,0 +1,9 @@ +# -*- Makefile -*- + +EXTRA_DIST += barbie/Protocol.txt barbie/ChangeLog +EXTRA_LTLIBRARIES += barbie.la + +barbie_la_SOURCES = barbie/barbie.c +barbie_la_LDFLAGS = $(camlib_ldflags) +barbie_la_DEPENDENCIES = $(camlib_dependencies) +barbie_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/Protocol.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/Protocol.txt new file mode 100644 index 00000000..97e919d5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/Protocol.txt @@ -0,0 +1,92 @@ +/* Protocol Notes + ========================================================== + +* PC is the host (always) + +* 6 images MAXIMUM on the camera, 128k of memory + +* Camera has an image counter that designates current image to do something with. + (yes, there is better wording, but hey... :) + +* ACK = 0x06, NAK = 0x15 + - No ack/nak means bad connection/faulty cable/no camera + +* Camera always answers ACK to sent command + +* Most COMMAND's have a matching RESPONSE + +* Command Packet structure is: + [0x02] [COMMAND] [DATA] [DATA] [...] [0x03] + +* Response Packet structure is: + [0x02] [RESPONSE] [DATA] [DATA] [...] [0x03] + +* Image transfer Packet Structure is: + [0x02] [RESPONSE] [N1] [N2] [N3] [N4] [DATA] [DATA] [...] [0x03] + + N1 = number of columns in the image + N2 = number of black lines + N3 = number of visible lines + N4 = number of status bytes + + Number of data bytes = N1 * (N2 + N3) + N4 + +* Firmware version transfer Packet Structure is: + [0x02] [RESPONSE] [SIZE] [CHAR] [CHAR] [...] [NULL] [0x03] + + - On error: + [0x02] [RESPONSE] [0] [0x03] + +* Camera sends response packets to host after it sends ACK. + (NAK gets no response of course) + + - Command/Response codes + (note: COMMAND is upper case, RESPONSE is lower case of same letter) + + CMD CMD DATA BYTES RESP DATA BYTES Description + --- ----------------------- --------------------- ----------------------- + A 1 (index #) 1 (0) move to image index # + B 2 (duration, num times) 1 (0) beep (duration*50ms) + E 1 (test char) 1 (test char) echo (test or wake up camera) + G 1 (delay & retry flags) 1 (0, use grab image grab image - increments counter, + result for error lower nibble = self timer delay, + upper nibble = retry numbers + 0,16,32,64(force),112 + I 1 (0) 1 (image index) get image counter + (use reset first to get # pics) + J 2 (value: LSB, MSB) 2 (error, value) increment counter + (0 lets current ram be read) + K 1 (value) 1 (error) write rambyte + (counter incremented after) + L 1 (0) 1 (0) go idle + M 1 (0) hdr+pixel data+info upload thumbnail (increments + image counter & image index) + P 1 (new port value) 1 (old port value) set port value + Q 1 (video mode) 1 (0) video mode (!!) + (requires capture card) + R 1 (register index) 1 (register value) read register value + (error = 0xFF) + T 2 (min, max) 1 (0) set exposure threshold + U 1 (0) hdr+pixel data+info upload image + V 1 (0) version string get version information + W 2 (register index, value) 1 (0 = OK, 0xFF = ERR) write register value + X 1 (0) 2 (min, max) get exposure threshold + Y 1 (0) 1 (grab result code) get grab result code + 0x00 = successful + 0x80 = memory full + 0x81 = failed exposure + Z 1 (0) 1 (0) quit self test + +* If camera is busy when command is issued, camera responds with a BUSY packet + [0x02] [BUSY] [BUSYCODE] [0x03] + + - BUSY = '!' + - Busy codes: + 0x20 BUSY_TIMER camera waiting + 0x21 BUSY_EXPOSURE waiting for exposure after grab started + 0x22 BUSY_VIDEO camera in continuous video mode (self test)(yummy!!!!) :) + 0x23 BUSY_SHUTTER waiting for shutter to come up + 0x24 BUSY_COMMAND waiting for command completion + 0x25 BUSY_COUNTER counter being reset (to nonzero value) + +*/ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/barbie.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/barbie.c new file mode 100644 index 00000000..2ee40f7e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/barbie/barbie.c @@ -0,0 +1,402 @@ +/* library.c + * + * Copyright (c) 2000 Scott Fritzinger + * Copyright (c) 2000 Andreas Meyer + * Copyright (c) 2000 Pete Zaitcev + * Copyright (c) 2000 Jeff Laing + * Copyright (c) 2007 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#define _POSIX_C_SOURCE 199309L + +#include "config.h" + +#include +#include +#include +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define MAX_PICTURES 6 + +#define ACK 0x06 +#define NAK 0x15 + +#define COMMAND_BYTE 1 +#define RESPONSE_BYTE 1 +#define DATA1_BYTE 2 +#define DATA2_BYTE 3 + +#define BARBIE_DATA_FIRMWARE 0 +#define BARBIE_DATA_THUMBNAIL 1 +#define BARBIE_DATA_PICTURE 2 + +#define GP_MODULE "barbie" + +/* Some simple packet templates */ +static const char packet_1[4] = {0x02, 0x01, 0x01, 0x03}; + +/* Utility Functions */ +static int +barbie_read_response(GPPort *port, unsigned char *response, unsigned int size) { + int x; + char ack = 0; + + /* Read the ACK */ + x=gp_port_read(port, &ack, 1); + if ((ack != ACK)||(x<0)) + return GP_ERROR_IO_READ; + /* Read the Response */ + memset(response, 0, size); + return gp_port_read(port, (char*)response, size); +} + +static +int barbie_exchange (GPPort *port, unsigned char *cmd, unsigned int cmd_size, unsigned char *resp, unsigned int resp_size) { + int count = 0; + while (count++ < 10) { + if (gp_port_write(port, (char*)cmd, cmd_size) < GP_OK) + return (0); + if (barbie_read_response(port, resp, resp_size) < GP_OK) + return (0); + /* if it's not busy, return */ + if (resp[RESPONSE_BYTE] != '!') + return (1); + /* if busy, sleep 2 seconds */ + sleep(2); + } + return (0); +} + +static int +barbie_ping(GPPort *port) { + unsigned char cmd[4], resp[4]; + + GP_DEBUG( "Pinging the camera..."); + + memcpy(cmd, packet_1, 4); + cmd[COMMAND_BYTE] = 'E'; + cmd[DATA1_BYTE] = 'x'; + + if (barbie_exchange(port, cmd, 4, resp, 4) == 0) + return (0); + + if (resp[DATA1_BYTE] != 'x') + return (0); + GP_DEBUG ("Ping answered!"); + return (1); +} + +static int +barbie_file_count (GPPort *port) { + unsigned char cmd[4], resp[4]; + + GP_DEBUG ("Getting the number of pictures..."); + + memcpy(cmd, packet_1, 4); + cmd[COMMAND_BYTE] = 'I'; + cmd[DATA1_BYTE] = 0; + + if (barbie_exchange(port, cmd, 4, resp, 4) != 1) + return (0); + return (resp[DATA1_BYTE]); +} + +static unsigned char * +barbie_read_firmware(GPPort *port) { + + unsigned char cmd[4]; + unsigned char resp[4]; + unsigned int size; + char c; + unsigned char *s = NULL; + + GP_DEBUG ("Getting Firmware..."); + + memcpy(cmd, packet_1, 4); + cmd[COMMAND_BYTE] = 'V'; + cmd[DATA1_BYTE] = '0'; + if (barbie_exchange(port, cmd, 4, resp, 4) != 1) + return (0); + /* we're getting the firmware revision */ + size = resp[2]; + s = malloc(size); + memset(s, 0, size); + s[0] = resp[3]; + if (gp_port_read(port, (char*)&s[1], size-1) < 0) { + free(s); + return (NULL); + } + /* read the footer */ + if (gp_port_read(port, &c, 1) < 0) { + free(s); + return (0); + } + return s; +} + +static int +barbie_read_picture(GPPort *port, int picture_number, int get_thumbnail, CameraFile *file) { + unsigned char cmd[4], resp[4]; + unsigned int size; + char c; + int cols, visrows, blackrows, statusbytes; + int x, y, z; + unsigned char *s = NULL, *us = NULL, *rg = NULL, *t = NULL; + char ppmhead[64]; + unsigned char uc; + + memcpy(cmd, packet_1, 4); + cmd[COMMAND_BYTE] = 'A'; + cmd[DATA1_BYTE] = picture_number; + + if (barbie_exchange(port, cmd, 4, resp, 4) != 1) + return GP_ERROR_IO_READ; + + memcpy(cmd, packet_1, 4); + if (get_thumbnail) + cmd[COMMAND_BYTE] = 'M'; + else + cmd[COMMAND_BYTE] = 'U'; + cmd[DATA1_BYTE] = 0; + + if (barbie_exchange(port, cmd, 4, resp, 4) != 1) + return (0); + GP_DEBUG( "Getting Picture..."); + /* we're getting a picture */ + cols = resp[2]; + blackrows = resp[3]; + if (gp_port_read(port, (char*)&uc, 1) < 0) + return GP_ERROR_IO_READ; + visrows = uc; + if (gp_port_read(port, (char*)&uc, 1) < 0) + return GP_ERROR_IO_READ; + statusbytes = uc; + size = cols*(blackrows+visrows)+statusbytes; + sprintf(ppmhead, "P6\n# test.ppm\n%i %i\n255\n", cols-4, visrows); + gp_file_append (file, ppmhead, strlen(ppmhead)); + + us = malloc(size); + rg = malloc(size); + s = malloc(cols*(blackrows+visrows)*3); + t = malloc((cols-4)*visrows*3); + memset(us, 0, size); + memset(rg, 0, size); + memset(s , 0, size); + memset(t , 0, size); + if (gp_port_read(port, (char*)us, size)<0) { + free(us); + free(rg); + free(s); + free(t); + return GP_ERROR_IO_READ; + } + /* Unshuffle the data */ + for (x=0; xtext, "barbie"); + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int x=0; + CameraAbilities a; + + while (models[x]) { + /* Fill in the appropriate flags/data */ + memset (&a, 0, sizeof(a)); + strcpy(a.model, models[x]); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 57600; + a.speed[1] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + /* Append it to the list */ + gp_abilities_list_append(list, a); + + x++; + } + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + + return gp_list_populate (list, "mattel%02i.ppm", barbie_file_count (camera->port)); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int num; + + /* Retrieve the number of the photo on the camera */ + num = gp_filesystem_number (camera->fs, "/", filename, context); + if (num < GP_OK) + return num; + gp_file_set_mime_type (file, GP_MIME_PPM); + switch (type) { + case GP_FILE_TYPE_NORMAL: + return barbie_read_picture (camera->port, num, 0, file); + break; + case GP_FILE_TYPE_PREVIEW: + return barbie_read_picture (camera->port, num, 1, file); + break; + default: + return GP_ERROR_NOT_SUPPORTED; + } + return GP_ERROR_NOT_SUPPORTED; +} + +#if 0 +int camera_capture (Camera *camera, int capture_type, CameraFilePath *path) { + + char cmd[4], resp[4]; + + memcpy(cmd, packet_1, 4); + + cmd[COMMAND_BYTE] = 'G'; + cmd[DATA1_BYTE] = 0x40; + if (barbie_exchange(cmd, 4, resp, 4) == 0) + return (0); + + cmd[COMMAND_BYTE] = 'Y'; + cmd[DATA1_BYTE] = 0; + if (barbie_exchange(cmd, 4, resp, 4) == 0) + return (0); + + return(resp[DATA1_BYTE] == 0? GP_OK: GP_ERROR); + + return (GP_ERROR); +} +#endif + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + int num; + char *firm; + + num = barbie_file_count (camera->port); + firm = (char*)barbie_read_firmware (camera->port); + sprintf(summary->text, _("Number of pictures: %i\nFirmware Version: %s"), num,firm); + free(firm); + return GP_OK; +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text,_("Barbie/HotWheels/WWF\nScott Fritzinger \nAndreas Meyer \nPete Zaitcev \n\nReverse engineering of image data by:\nJeff Laing \n\nImplemented using documents found on\nthe web. Permission given by Vision.")); + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int res; + + /* First, set up all the function pointers */ + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + /* Set up the CameraFilesystem */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + /* Set up the port */ + gp_port_set_timeout (camera->port, 5000); + gp_port_get_settings (camera->port, &settings); + settings.serial.speed = 57600; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits= 1; + gp_port_set_settings (camera->port, settings); + + res = barbie_ping (camera->port); + if (res) + return (GP_OK); + return (GP_ERROR); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/camlib.sym b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/camlib.sym new file mode 100644 index 00000000..f1131776 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/camlib.sym @@ -0,0 +1,3 @@ +camera_abilities +camera_id +camera_init diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/.indent.pro b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/.indent.pro new file mode 100644 index 00000000..71eca5f6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/.indent.pro @@ -0,0 +1,31 @@ +--gnu-style +--indent-level8 +--blank-lines-after-declarations +--blank-lines-after-procedures +--braces-on-if-line +--cuddle-else +--space-special-semicolon +--no-blank-before-sizeof +--no-space-after-parentheses +--continue-at-parentheses +--line-length95 +--comment-line-length80 +--honour-newlines +--case-indentation8 +--space-after-cast +--space-after-for +--space-after-if +--space-after-while +-T gp_port +-T Camera +-T GPPort +-T CameraFilesystem +-T CameraList +-T CameraFileType +-T CameraFile +-T CameraText +-T CameraAbilitiesList +-T CameraWidget +-T GPContext +-T time_t +-T CameraFileInfo diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ChangeLog new file mode 100644 index 00000000..fc43c28f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ChangeLog @@ -0,0 +1,1060 @@ +2010-05-05 Sven Killig + + * canon.c, canon.h, library.c: + - added shooting mode + - added ISO 50 + - converted zoom level to GP_WIDGET_RANGE + +2009-07-28 Axel Waggershauser + + * canon.c,canon.h,library.c,usb.c: Unified all configuration + names and values. Added /actions and /status sub configuration + for actions and read-only variables. + * canon.c,library.c: Fixed integer overflow in storage size detection. + +2008-07-10 Marcus Meissner + + * canon.c: Also handle IXUS 500 in the ptp2 driver only. + * canon.c: Review all shared ids and handle them in the PTP driver. + +2008-05-16 Moreno Marzolla + + * canon.c, library.c: Added beep and zoom configurations. + + * canon.c, library.c: Enable remote mode once in a session and + close it in camera_exit. + + +2008-05-12 Moreno Marzolla + + * canon.c, canon.h, README.canon: Added some more configuration + options. + +2008-03-30 Marcus Meissner + + * canon.c: SL_THUMB_CR2 should be as large as the CR2 image, + because the thumbnail getter retrieves the whole image for some reason. + + * canon.c: Moved strncpy() out of the failure node, making + replace_filename_extension() and filename_to_audio() work again. + +2007-12-27 Daniel M German + + * canon.h, library.c: More configuration values for some + newer cameras / objectives. + +2007-11-06 Marcus Meissner + + * usb.c: Bumped timeout to 175. + +2007-09-02 Marcus Meissner + + * canon.c: Handle IXUS 30 also in ptp driver. + +2007-06-03 Paul Walmsley + + * usb.c: remove one last CANON_EXPERIMENTAL_SECONDARY_IMAGE ifdef + +2007-06-02 Paul Walmsley + + * usb.c: replace gp_port_usb_check_int_fast() calls with + timeout save/change/restore and gp_port_usb_check_int() + +2007-05-29 Marcus Meissner + + * library.c, canon.c, canon.h,Makefile-files: + Removed CANON_EXPERIMENTAL_20D define, now default included. + Removed CANON_EXPERIMENTAL_SECONDARY_IMAGE and CANON_EXPERIMENTAL_SET_RELEASE_PARAMS + ifdefs, now also default included. + +2007-05-25 Paul Walmsley + + * usb.c: fix canon_usb_get_body_id() and caller to handle body IDs + > INT32_MAX (as seen in some recent Canon EOS 5D bodies) + + * canon.h: add body_id field to the CameraPrivateLibrary structure + +2007-05-21 Marcus Meissner + + * canon.c: Handle A70 and A80 in ptp2 driver, since this one + has better capture handling. + + * Makefile-files: Enable -DCANON_EXPERIMENTAL_SET_RELEASE_PARAMS + by default. + +2007-03-13 Marcus Meissner + + * canon.c: Handle A95 and S50 in ptp2 driver. + http://sourceforge.net/tracker/index.php?func=detail&aid=1629132&group_id=8874&atid=108874 + +2007-01-02 Marcus Meissner + + * library.c: Return storage information programmatically. + +2006-11-13 Marcus Meissner + + * library.c: Readded to Optura 20 (alternate id), + confirmed by reporter. + +2006-06-24 David Selmeczi + + * library.c,canon.c: Added more 350D parameters. + +2006-06-20 Marcus Meissner + Karl Tomlinson + + * library.c: Keep list_all_files setting permanent. + + * library.c: Also delete thumbnails (but only if + list_all_files is not set.) + +2006-06-14 Marcus Meissner + + * library.c: Mark up strings for translation. + Compare against translated string. + + Mark up configuration widgets with symbolic names to + avoid spaces or translated strings in commandline modes. + +2006-06-12 Paul Walmsley + + * canon.h: Fix build failure when CANON_EXPERIMENTAL_20D is not + defined, by wrapping the release_params array in an '#ifdef + CANON_EXPERIMENTAL_20D' + +2006-06-11 Paul Walmsley + + * usb.c: Fix the debug messages in canon_usb_dialogue_full() to + report the correct function name. + +2006-06-11 Paul Walmsley + + * canon.[ch], usb.[ch], serial.[ch], library.c: Fix existing + compile-time warnings. Most of the fixes fell into one of these + categories: (A) Converting length fields from signed int/long to + unsigned, unless the meaning of the field is overloaded to pass + back a gphoto2 error code (which are negative); + (B) Converting fields of binary data used in camera interaction + from signed char to unsigned char; (C) Casting unsigned char + buffers passed to the gphoto2 port code, etc. to signed char; + (D) Reviewing comparisons between signed and unsigned numbers, and + ensuring that the comparisons are safely restricted to unsigned + numbers when necessary. + + * Makefile.am: add '-Wall -Wextra -Wno-unused-parameter + -Wno-missing-field-initializers' to CPPFLAGS. + +2006-06-09 Paul Walmsley + + * usb.c: Modify identify camera code to retry quickly, and to + double the retry delay with each failure. This seems to work + well for at least the Canon EOS 5D, where the first identify + often is ignored by the camera, but the second identify camera + generates a response, no matter how quickly it is sent after the + first. + +2006-06-07 Hubert Figuiere + + * doc/5d-capture: new documentation on capture for changes below. + +2006-06-07 Paul Walmsley + + * canon.c, usb.[ch], library.c: When the camera cannot capture an + image due to a 'photographic failure,' return a gphoto2 error code + resembling the actual failure code, rather than simply returning a + generic error. Tested on the Canon EOS 5D. + + * canon.[ch], usb.[ch]: Adds support for downloading "secondary + images" -- the JPEGs created when the capture resolution is set to + the "RAW + JPEG" modes -- for the Canon EOS 5D camera. + + * canon.[ch], library.c: Adds remote control over "release + parameters" -- shutter speed, ISO speed, aperture, resolution, + autofocus mode -- for the Canon EOS 5D camera. It might work with + other Canon "class 6" cameras + + * canon.[ch], library.c: Add support for querying the camera's + shutter speed, ISO speed, aperture, resolution, and focus mode via + gphoto2's configuration interface. Tested on the Canon EOS 5D. + + * canon.[ch]: Add canon_int_do_control_dialogue() and + canon_int_do_control_dialogue_payload(). These functions execute + a remote capture command on the camera and return the camera's + response. canon_int_do_control_dialogue_payload() gives the caller + full control over the payload. We need these to retrieve and set + the camera's release parameters. + + * usb.[ch]: Split canon_usb_dialogue() into two functions: + canon_usb_dialogue_full(), which returns the full camera response + packet, needed by canon_usb_long_dialogue() (and also by + canon_int_get_release_params(), later in this patch series). + + * canon.c: Add the USB ID for the EOS 5D in PC connection mode. + + * canon.[ch]: + * library.c: gphoto2's Canon driver currently supports two capture + modes: canon_int_capture_preview(), which captures a thumbnail to + the host computer; and canon_int_capture_image(), which captures a + full-sized image to the camera's drive. We'd like to control each + parameter -- the capture image size class and the capture + destination -- independently, without breaking compatibility with + current applications. So, add a configuration option, "Capture + size class," by which the user can specify whether to operate in + "compatibility mode" (the default -- represents the driver's + previous behavior), or whether to capture thumbnails, or + full-sized images. capture_preview() then always captures to the + host computer, and capture_image() always captures to the camera's + drive, no matter what the image's size. + Our primary interest is in remote capture of full-sized images to + the host computer. We've observed that on the EOS 5D, with these + patches applied, it's possible to capture full-sized images to the + host computer or to the camera's drive. Capturing thumbnails + alone is supported only in name by these patches -- further work + will be required to make that function. + +2006-06-06 Paul Walmsley + + * canon.[ch]: Replace the open-coded CANON_USB_CONTROL_INIT and + CANON_USB_CONTROL_EXIT commands with functions, and set a flag in + the host computer's camera state when the camera is in remote + release control. + + * usb.c: canon_int_usb_poll_interrupt_pipe() can return a negative + result to indicate an error. But canon_usb_capture_dialogue() + only checks whether the result was equal to 0 to test for an + error. + +2005-11-02 Marcus Meissner + + * canon.c: S1 IS and S2 IS in current CVS are not working, + comment out for now :( + +2005-07-19 Stephen Westin + * canon.c: Corrected "IXY Digital 60" to "IXY Digital 600" now + that one has been sighted in the wild. + Moved SD500/IXUS 700/IXY 600 from class 1 to class 5, + since "get picture abilities" fails. + +2005-06-21 Stephen Westin + * canon.c: Added ID for PowerShot S2 IS. + Revised format specifications in error/log messages: + I think that all length-related quantities are now + coerced to long, as some systems (e.g. MacOS X) have + 64-bit length types and 64-bit pointers are coming. + +2005-06-10 Stephen Westin + * canon.c: The PowerShot SD400/SD500 (aka Digital IXUS 50/60 + aka IXY Digital 55/60) don't support capture at all, + according to Canon software manuals. + Added support for a real "is this awake?" query + (implemented in usb.c). + +2005-06-10 Stephen Westin + * canon.c: Moved PowerShot SD200/IXUS 30/IXY 40 from class 1 to + class 6 for experimentation. This camera now needs + CFLAGS=-DCANON_EXPERIMENTAL_20D to be included in the list. + I kinda suspect that the SD400/IXUS 50/IXY 55 will need + to go along with them. The A510 has been demonstrated working + with the older protocol. + +2005-05-05 Stephen Westin + * canon.c: We now set and fetch the owner name correctly in new + protocol. + Error messages are improved. + o more text in place of numeric error codes + o "amount of data" -> "length" + I think I now have gotten rid of "gp_context_message" + (which stops for interactive input) when we are surprised + at the length returned by a command. + +2005-05-02 Stephen Westin + * canon.c: Initial capability to get JPEG thumbnails from CR2 raw + files (but not yet EXIF data). + +2005-04-28 Stephen Westin + Added several camcorders: Elura 50, Optura 10/MVX100i, + Optura Xi/MVX 3i/FV M1, Optura Xi/MVX 3i/FV M1, Optura 40/MVX25i + based on Web reports and some intelligent (I hope) guesses. + Fixed Optura 20/MVX150i ID: 307f is for PTP, but 3080 is for us. + Based on reports from psapsa at users.sourceforge.net. + We now attempt to exit from remote control mode on any capture error. + Fixed one long vs. int warning. + Added message for failure of file delete. + Learned more about vendor ID's of several cameras. + Moved PowerShot SD200/IXUS 30/Digital IXY 40 from class 4 to class 1 + for testing. + +2005-04-14 Stephen Westin + Included new class 6 cameras in all the EOS conditionals (I think). + Flag MVX100i as having no capture capability, which seems to be the case. + (I suspect other camcorders are in the same boat, but can't test the + hypothesis). + +2005-04-08 Stephen Westin + Backed out 300D changes; we now treat it as a class 4 camera, except + for interrupt messages during capture, which are like a class 6. + 300D is now in class 6 along with 20D and 350D. + Modified canon_int_list_directory so it no longer returns ".." as + a directory. + Modified canon_int_list_directory and canon_int_find_new_image + to handle directory ".." better and avoid memory access violations. + Fixed log messages in canon_int_list_directory to give complete + function name. + Made CR2 a different class of images, since it has no external thumbnail + file. + use %ld and (long) casts for time_t values in *printf + Moved PowerShot SD200 / Digital IXUS 30 / IXY Digital 40 from class 5 + to class 4 (EOS-like) as an experiment. + Added check for null pointer in directory walk to avoid access error. + Corrected one C++-style comment. + EOS Digital Rebel XT/EOS 350D/EOS Digital Kiss N is now a Class 6 camera, + and needs CFLAGS=-DCANON_EXPERIMENTAL_20D to be included in the code. + fix unintended consequences of getting rid of warning messages + The capacity and available variables are not NULL as verified above. + But cap and ava are only set for the USB case, so we have to check for that. + If you know the logic better, feel free to improve the code :) + Capture from EOS 20D seems to work. + We now print the camera firmware version in the debug log message + from "identify camera". + +2005-03-31 Stephen Westin + "Delete file" now works on EOS 20D. + Added conditional CANON_EXPERIMENTAL_20D to enable 20D support, so + naive users won't be misled that this is actually trustworthy code. + Camera model changes: + o MVX100i/Optura 20 is now 0x3082, not 0x3081. + o PowerShot A75 moved from class 5 to class 1 as a guess. + Allow unexpected length of packet returned from "get picture abilities". + Made canon_int_capture_preview() more like canon_int_capture_image(). + A bit of housekeeping here and there. + Corrected vendor ID for EOS 350D/EOS Digital Rebel N/EOS Digital Kiss XT: + 30ee is correct for Canon mode, 30ef is for PTP only. + Updated and expanded list of models with USB ID's. + Corrected bug in canon_int_set_file_attributes: one byte too short on + command (we need two NULs at the end). We now use + canon_usb_set_file_attributes in usb.c. + Corrected canon_usb_set_file_attributes, which never could have worked. + Fixed one type warning long vs. int + Fixed sizes reported by get_disk_info for EOS 20D. + Added PowerShot A510. + +2005-03-14 Stephen Westin + Fixes toward EOS 20D support: + o "flash device ID", "get disk info", and "delete file" + have different command codes. + o "get disk info" seems to return values in K rather than bytes. + Moved PowerShot A60 & A70 from class 5 to class 1. + Casts on various parameters to avoid warnings both on Linux and + on Mac OS X, which seem to have different sizes for size_t. + Changed to use all 32 bytes, if present, from both camera + model and owner name from "identify camera" command. + Some realignment. + +2005-03-09 Stephen Westin + Corrected an infinite loop when checking for filename + of a newly captured image, only if that was the only image + on the camera. + Corrected protocol classes for IXUS v (I think it's the same camera + as PowerShot S110, but with different USB ID) and PowerShot S45 + (we had reports that it was working with the EOS (class 4) code, + but somehow it was in class 5). + Corrected one comment. + Move PowerShot A300 from class 4 to class 1. + Moved PowerShot A80 from class 4 to class 1. + Whoops, I wanted the S400/IXUS 400 in class 1, not 3. + Moved PowerShot S400 (Digital IXUS 400) from class 4 (EOS-like) to + class 3. + Moved PowerShot A400 back to class 5. I have my doubts, but don't + know any better candidate. + Moved PowerShot S400 from class 1 to class 4, which is where it + apparently worked before (May 2003). + Corrected a couple of gcc warnings on type of format specifiers + (long int vs. int). + unknown 4 (gleaned from Mac Info.plist file) should be 3080. It had + duplicated 3081. + Moved PowerShot S400 (aka Digital IXUS 400) from class 4 to class 1. + Added info on several camera models: both ones we know and ones we + would like to know. + Added aliases for several cameras that are sold with different names + in different markets. + Moved IXUS v from class 0 to class 1. + +2005-01-16 Marcus Meissner + + * canon.c: Added PowerShot SD200. + +2005-01-15 Stephen Westin + + * canon.c: Commented out EOS 20D in table, as it doesn't work at all yet. + * canon.c: Added audio files to directory listings. + +2005-01-04 Stephen Westing + + * *.c: Better status reporting on errors + Minor formatting cleanup + +2004-12-19 Marcus Meissner + + * canon.[ch]: Added PowerShot S70. + +2004-12-16 Stephen H. Westin + + * canon.[ch]: Added new protocol class 6 for EOS 20D (not yet implemented). + Removed macro IS_EOS, which is superseded by CANON_CLASS_4. + +2004-12-16 Stephen H. Westin + + * urb-interpret: Added some interpretation of interrupt read packets. + + * urb-interpret: Updated to interpret output from SniffUSB v1.8, making it + incompatible with (some) older versions. To interpret output of older versions, + use an older version of urb-interpret. + +2004-11-17 Marcus Meissner + + * canon.[ch]: Added PowerShot SD20. + +2004-11-17 Stephen H. Westin + + * canon.[ch]: Significant restructuring: there are now only 5 + types of camera, so we should be able to add new cameras without modifying + canon.h. + + Cleaned up a few type warnings in log message calls. + +2004-10-20 Hubert Figuiere + + * canon.[ch]: Added EOS 20D + +2004-09-11 Marcus Meissner + + * canon.[ch]: Added PowerShot A95 as reported. + * canon.[ch]: Added PowerShot A85 as reported. + +2004-08-22 Marcus Meissner + + * canon.c,usb.c,library.c: Fixed various gp_log / GP_DEBUG problems. + +2004-08-12 Hubert Figuiere + + * canon.[ch]: Added Powershot S60 + +2004-06-05 Hubert Figuiere + + * canon.[ch]: Added A310 as reported in patch 966814 + http://www.gphoto.org/patches/?id=966814 + +2004-06-01 Marcus Meissner + + * canon.[ch]: Added A75 as reported. + +2004-05-30 Hubert Figuiere + + * canon.[ch]: Added PowerShot S410 / IXUS 430 by + applying patch 963229 + http://www.gphoto.org/patches/?id=963229 + +2004-05-09 Marcus Meissner + + * canon.[ch]: Added IXUS 500 as reported. + +2004-03-07 Marcus Meissner + + * canon.c: We check for consecutive 0s, so check for !*temp_ch. + +2004-02-03 Hans Ulrich Niedermann + + * serial.c, usb.c: Use largest file size limit + * canon.c, canon.h: Note improper use of file size limits + +2004-01-31 Marcus Meissner + + * canon.c, canon.h: Richard Simpson + Support for Canon MV650i. + +2004-01-14 Hans Ulrich Niedermann + + * canon.c, canon.h: Add support for Canon ZR-70MC + Thanks for the report by Kevin R. Bulgrien. + +2004-01-02 Marcus Meissner + + * canon.c, usb.c: lock keys and audio support in PowerShot S50, from + rcaputo@users.sf.net + +2003-11-08 Hans Ulrich Niedermann + + * canon.c, canon.h: Added support for Optura 20 (reported by Walt H) + +2003-10-27 Marcus Meissner + + * canon.c: PowerShot S50 and A300 got lost somewhere. + +2003-09-20 Hans Ulrich Niedermann + + * canon.c, canon.h, usb.c, usb.h: Added G5 support + (patches by Andreas Klemm ) + +2003-10-10 Olivier Crete + * library.c: Add Canon A80 + +2003-09-20 Hans Ulrich Niedermann + + * canon.c, canon.h, usb.c: Added support for + EOS 300D/Digital Rebel/KISS Digital, thanks to Johan Herland + and T.V. + +2003-05-19 Marcus Meissner + + * canon.c, canon.h: Added 4 patches with support + for the A300, S400, A60 and A70. (Might not be 100% + correct in specifying subtypes and capture ability.) + + These seem to parallel support PTP and Canon mode + with 1 USB id according to traces sent. Strange. + +2003-05-06 Marcus Meissner + + * library.c,canon.c: 2 bug fixes for audio files from + Ben Low . + +2003-04-07 Stephen H. Westin + + * Update README, TODO, ChangeLog + * Support for Optura 200 MC/MVX2i camcorder + +2003-04-04 Stephen H. Westin + + * CANON_PS_A70 is now CANON_PS_PRO70, to avoid confusion with new + PowerShot A70, a completely different camera. + * Added comments with product ID's for A60, A70, which are PTP-only. + * Added ID's for EOS 10D; will use same code as EOS D30/D60. + * Image key and size (for immediate download from capture) are now + in the CameraPrivateLibrary structure, so they aren't passed as + explicit parameters. + * capture_step moved to CameraPrivateLibrary structure to keep track + of interrupt reads during image capture; this was formerly a local + variable in canon_usb_capture_dialogue(). + * Fixed comment since we now supply a real serial number with each + command packet. + * New function canon_usb_set_file_time() to be used after file upload. + * New function canon_usb_set_file_attributes(). + * New functions canon_usb_get_captured_thumbnail(), + canon_usb_get_captured_image(), canon_int_capture_preview(), + is_audio(), canon_int_filename2audioname(). + * Transfer mode bits are now in enum canonTransferMode. + * New enum canonDownloadImageType. + * Converted #define's in usb.h to enums + * Moved prototypes to end of usb.h, since they now use the enums. + * Max read size USB_BULK_READ_SIZE is now 0x1400 to match + Canon software; was 0x3000. + * Moved transfer mode bits to from usb.h to canon.h. + * Messed with file upload; now sets file time from host file time. + Still doesn't work any better. + +2003-02-28 Stephen H. Westin + + * Removed "capturing" field from CameraPrivateLibrary; it was unused. + * EOS capture is no longer flagged as "experimental". + * Implemented canon_capture_preview(); it was a no-op. + +2003-02-27 Marcus Meissner + + * library.c: We support EXIF download. + +2003-02-27 Stephen H. Westin + + * Changed all C++-style comments ("//") to C-style "/* ... */". + Gcc allows C++ form in C programs, but it's not quite ANSI. + * In canon_int_capture_image(), deduce path and file name of + captured image and return as specified in the API + * Added function canon_usb_list_all_dirs() to support path and + file name deduction in canon_int_capture_image(). + +2003-02-18 Stephen H. Westin + + * canon_usb_capture_dialogue() now gets error context + * Added extra NUL to end of "delete file" command; this + eliminates an error code 0200000086. + * canon_usb_unlock_keys() now gets error context and reports + errors (non-zero status code in 0x50 of reply). + * Better error checking in canon_usb_lock_keys(); now we + *do* know what those bytes mean (they are a 32-bit status + code). + * Change locking code so that older "default" cameras are + now explicit; the new default is like S45 and G3, on the + assumption that new cameras will probably behave like this. + * canon_usb_capture_dialogue() now gets error context to + pass to canon_usb_capture_dialogue(). + +2003-02-14 Stephen H. Westin + + * Corrected comment explaining path returned from capture. + * Added labels for all values of canonCamModel, for gtk-doc. + * Added PowerShot G3 to special-case locking: use non-EOS locking, + but no "get photo abilities" command. + +2003-02-11 Stephen H. Westin + + * Tidy comments (esp. for gtk-doc) + * Return "*UNKNOWN*" for both path and file names from capture, since + I don't know how to get the information after capture. Previously, + random garbage was returned. + * Flag GP_DEBUG messages with name of originating function. + * Clean up better on capture error (exit control mode). + * Convert many constant #define's to enum's. + * Moved many constant #define's from library.h to canon.h. + * Moved macro IS_EOS() to canon.h. + * Supply unique serial number in each command. + * Alter "already awake" initialization for EOS cameras. + This still doesn't work :(. + * Alter key locking. EOS cameras are locked just before + "release shutter" command and unlocked as soon as possible + afterward. PowerShot cameras are unlocked at initialization + and can't be unlocked from software. The user must unplug the + USB cable to unlock the keys on these cameras. + * Unify polling of interrupt pipe in canon_usb_poll_interrupt_pipe(). + * Read interrupt pipe to clear it, both before "release shutter" + command and after an error (interrupt messages out of sequence) + in capture. + * Increase timeout for "release shutter" command. EOS cameras + sometimes take a long time (>10sec) to complete this command. + Is this because of a buffer flush? + * Improve handling of interrupt messages in "release shutter". + * Check status at 0x50 in response, where appropriate, and report + a non-zero status code via GP_DEBUG (in canon_usb_dialogue). + * Increase MAX_INTERRUPT_TRIES from 4000 to 12000 to allow worst-case + timing: a D60 writing a raw file to CF. + +2003-01-27 Stephen H. Westin + + * Major cleanup of comments to make gtk-doc work. + * Moved "defines for error handling" from canon.h to serial.h. + * Moved JPEG stream byte #defines from serial.h to canon.h. + * Slight update of doc string for screen width (library.c). + * Minor improvements to urb-interpret. + * Moved MAX_RETRIES from usb.c to usb.h, renamed MAX_INTERRUPT_RETRIES. + * Rewrite of interrupt-pipe reads based on new insight + into communication structure. + * Now seems to work with EOS D30 as well as PowerShot cameras. + Not yet working with EOS D60. + * Commented prototype for dump_hex in util.h, as it isn't actually + defined anywhere. + * Created doc/canon-api.sgml, doc/canon-sections.txt + with tentative structure for documentation. + +2003-01-13 Stephen H. Westin + + * Improved some debug logging; added interpretation of power status + * Re-inserted "get picture abilities" for non-EOS cameras + * Created special case for PowerShot S45, which (like EOS) doesn't + implement the "get picture abilities" command, but (like PowerShot) + uses the base "lock keys" command. + +2003-01-10 Hans Ulrich Niedermann + + * canon.[ch]: removed CANON_EXPERIMENTAL_CAPTURE #ifdefs + * usb.[ch]: removed CANON_EXPERIMENTAL_CAPTURE #ifdefs + * library.[ch]: removed CANON_EXPERIMENTAL_CAPTURE #ifdefs + * canon.[ch], serial.c: new serial detection code (with dedicated ID strings) + +2003-01-10 Stephen H. Westin + + * Corrected capture sequence, including reads from interrupt pipe. + Tested on PowerShot G2 and S45; *not* working for EOS D30/D60 + cameras. + * Added function canon_int_get_picture_abilities (currently unused). + * New command "EOS get body ID" returns camera serial number. + * Added command and response lengths for "Get available shot" and "Get + custom function" + * Corrected canon_int_get_battery() when return values are NULL + pointers. + * Extended timeout for remote control init, as camera must extend lens. + * Corrected spelling in various places. + * urb-interpret: fixed a few bugs. Improved handling of interrupt pipe + reads: we now discard those with zero length, but flag and keep others. +2002-11-20 Hans Ulrich Niedermann + + * canon.[ch]: support for PowerShot G3 (A. Marinichev) + +2002-11-03 Hans Ulrich Niedermann + + * canon.[ch]: support for PowerShot S230 + +2002-11-02 Hans Ulrich Niedermann + + * canon.[ch]: support for PowerShot S45 + +2002-10-25 Hans Ulrich Niedermann + + * usb.c: added fix for EOS D60 unlocking by Fredrik (reported to work) + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-08-28 Hans Ulrich Niedermann + + * library.c: s/EXPERIMENTAL_/CANON_EXPERIMENTAL_/ + * canon.[ch], usb.[ch]: s/EXPERIMENTAL_/CANON_EXPERIMENTAL_/ + * library.c: only report EXPERIMENTAL on USB cams + * Makefile.am: removed EXPERIMENTAL_ CFLAGS stuff + * README: Added note about new CANON_EXPERIMENTAL_ stuff + +2002-07-29 Hans Ulrich Niedermann + + * canon.[ch]: support for PowerShot A100, A200 + +2002-07-29 Lutz Müller + + * canon.h: Make CVS compile again by adding CANON_PS_A100 to the + enumeration. + +2002-07-24 Hans Ulrich Niedermann + + * canon.c: started to add duplicate cams + * library.c: report upload cap only if possible + * mkpatch: removed, last change from 2000, and not useful for quite + some time now + +2002-05-01 Hans Ulrich Niedermann + + * canon.c, canon.h, usb.c: added support for EOS D60 + +2002-04-19 Fredrik + + * canon.c, canon.h: Added support for the IXUS 330, + reported working by Oliver Herrmann. + +2002-04-08 Fredrik + + * canon.c: better comments, fixed two UTC to localtime + typos in debug messages, better debug messages in + canon_int_set_time(). + + * library.c: fixed reporting of camera time difference in + camera_summary() which did not handle DST. + +2002-03-29 Hans Ulrich Niedermann + + * library.c: merged in USB upload patch by Matthias Kramm + (using #ifdef EXPERIMENTAL_UPLOAD) + mark driver as experimental when compiled + with any of the EXPERIMENTAL_ flags + * canon.h: merged in USB upload patch by Matthias Kramm + properly use EXPERIMENTAL_CAPTURE for int capturing; + * usb.c: merged in USB upload patch by Matthias Kramm + * Makefile.am: define EXPERIMENTAL_UPLOAD if requested + +2002-03-23 Hans Ulrich Niedermann + + * library.c,Makefile.am: made capture stuff a little easier for testing + * canon.h: removed last remains from obsolete caching layer + * library.c,canon.h,usb.c: accelerate non-capture operations by + omitting sleep(2) hack when not capturing + * library.c: added G2 to list of supposedly capture-able cams + * canon.h: removed last remains from obsolete caching layer + +2002-03-22 Fredrik + + * canon.c, canon.h: Added support for the A40, reported + by David Willmore. + +2002-03-18 Fredrik + + * usb.c, usb.h, library.c, canon.c, canon.h: + Committed Emile Snyder's USB remote capture code. This is + work in progress, but to ease distribution and avoid + conflicts it is included here inside + #ifdef EXPERIMENTAL_CAPTURE + + * README: Updated models known to work with the 'new' + driver and added a paragraph about the remote capture code + included today. + +2002-03-08 Fredrik + + * canon.{c,h}, library.c: + Implemented EXIF file type support, re-worked thumbnail + handling and got rid of the ../../libgphoto2/exif.* + dependency. + + * usb.c: Don't keylock S10 - it does that by itself when + set to PC mode. Reported by Philipp Kolmann. + +2002-01-09 Fredrik + + * *.{c,h}: Re-indented and removed everything + #ifdef OBSOLETE to make sources clean before gPhoto2 + 2.0 is released. + +2002-01-08 christophe barbé + + * usb.c: Change model detection to look at model name instead + of USB vendor/product ID since this is required to make the + current implementation of overriding camera model work. + +2002-01-21 Fredrik + + * usb.c: Don't key lock Pro 90 IS cameras, they do not support + it. Reported by Karl Thaller. + + * usb.c, Protocol: + Fixed a bug in the init sequence code (write 0x50 bytes like + the Windows driver - not 0x10 like we used to). This actually + made another bug (in the cameras firmware) surface and we had + to mimic the Windows drivers workaround which is to call + 'Identify camera' multiple times. + + If you want to read more about this, go read the gphoto-devel + archives from around this date. Look for messages about trouble + with Canon G1, Pro90IS and EOS D30 cameras. + + * canon.c, canon.h, library.c, serial.c: + Reverted behaviour of canon_int_get_time() to return time in + cameras time instead of converted to UTC since it makes more + sense to display the same time as the camera does on it's + display. + + Made canon_int_get_time() always return gphoto2 status codes. + +2002-01-15 Lutz Müller + + * *.c: gp_camera_status -> gp_context_status + +2002-01-14 Fredrik + + * canon.c, library.c: More carefull buffer size checking in some + places. We should do a real audit of these. + + * library.c: Fixed mkdir and rmdir functions which did not convert + from gphoto paths to canon paths. + +2002-01-13 Lutz Müller + + * *.[c,h]: Replase last call to gp_camera_set_error (I oversaw one + hidden in the header file). + +2002-01-13 Lutz Müller + + * *.[c,h]: Replace calls to gp_camera_set_error by gp_context_error. + +2002-01-12 Hans Ulrich Niedermann + + * README: New readme for new driver + +2002-01-11 Hans Ulrich Niedermann + + * *.[ch]: checked in rewritten driver which uses GPFilesystem + directly (from the hun branch) + +2002-01-08 Dan Fandrich + + * Makefile.am: Removed redundant CFLAGS and LDFLAGS lines + +2002-01-07 Fredrik + + * canon.c: Small fix to Dan's portable timezone code from + yesterday. The wrong time was set. + + * library.c: Improved camera_summary() with better error-checking + and nicer formatted output. + +2002-01-06 Dan Fandrich + + * util.h: added MIN and MAX definitions + * library.c: added support for locale-specific thousands separator + * canon.c: added support for tm.tm_gmtoff to get time zone offset + +2002-01-04 Fredrik + + * canon.c, canon.h: + Changed canon_int_get_time() to convert the time to + GMT before returning it to the caller to simplify + time operations elsewhere. + + Changed canon_int_set_time() to accept the time to + set as a parameter instead of always setting it to + the computers time. Also use correct endian code + to convert it to little endian before sending it to + the camera and hopefully convert the time to local + timezone before setting it since Canon cameras + know nothing about timezone. + + * library.c: Reflect changes to get/set_time. + + * canon.c, library.c: Improve error checking and + debug diagnostics when camera does not return the + expected ammount of data. + +2002-01-01 Fredrik + + * usb.c: Don't keylock G1 cameras, they do not + support it. Reported by Jarno Elonen. + +2001-12-24 Hans Ulrich Niedermann + + * library.c: stop reporting broken camera abilities + +2001-12-23 Fredrik + + * canon.c, canon.h, serial.c, usb.c, util.c, util.h : + + Patch from Michel Dänzer , + + Handle endian issues when communicating with the + cameras by using the new _byteorder.h include + provided to us by gphoto2 autoconf. + + * canon.c, canon.h, library.c, serial.c, usb.c : + Put all model data in a canonCamModelData structure + in canon.h so that there is only one place that has + to be changed when adding new models. This is also + a start to defining properties/abilities for cameras + in a central place instead of checking what model + we are talking to everywhere in the code. + + Output cameras time and the difference between it + and the host computers time in --summary. + +2001-12-15 Fredrik + + * library.c, canon.h: + Moved models[] from library.c to canon.h and added + canonCamModel model to models[]. + + * usb.c, usb.h: + Identify USB cameras based on USB vendor/product ID. + This was necessary because we need to know what + model it is before initializing since some models + do that differently. + + * usb.c: + Add special treatment of EOS D30 cameras to + canon_usb_camera_init() when camstat is 'A'. Simplified + canon_usb_camera_init() in general. + + * usb.c: + Moved the code from canon_usb_ready() to + canon_usb_init() - canon_usb_ready() should send a + 'ping' packet to check if the camera is alive instead + of doing stuff like identification and key locking. + + * usb.c: + Changed canon_usb_dialogue() to read responses in two + passes - one that reads as much as possible that is + divideable with 0x40 and then one that reads the + expected number of bytes modulus 0x40. This is what + the windows driver does and it appears some cameras + (EOS D30) likes this better. + +2001-12-06 Fredrik + + * canon.c, library.c: + Re-worked file deleting after reports saying it didn't + work. Now it works for me at least. + +2001-12-05 Fredrik + + * usb.h: + Added EOS D30 (and possibly other models) commands to + lock and unlock camera keys. + + * usb.c, usb.h: + Renamed canon_usb_keylock() to canon_usb_lock_keys(). + Added canon_usb_unlock_keys(), the only camera known to + support this is the EOS D30. This is called from + camera_exit(). + Corrected comments about how canon_usb_dialogue() works. + + * canon.c: Improved error checking on return from + canon_{usb,serial}_dialogue() calls and changed some + functions to return GP_ codes instead of hard coded + integer values. + + * library.c: + Call canon_usb_unlock_keys() from camera_exit() if + using USB. + +2001-12-04 Fredrik + + * canon.c: Improved debug output in canon_int_get_time(). + + * canon.c, canon.h, serial.c, serial.h, usb.c, usb.h: + Moved canon_int_serial_ready() to serial.c and renamed + it to canon_serial_ready(). + Moved canon_int_usb_ready() to usb.c and renamed + it to canon_usb_ready(). + + * library.c: Don't say we are switching off camera if + USB, since we are not. + + * usb.c: Make canon_usb_keylock() not try to keylock + EOS D30 cameras, they seem to do keylocking different. + +2001-12-01 Fredrik + + * usb.c, usb.h: + Added canon_usb_get_dirents(). + + * serial.c, serial.h: + Added canon_serial_get_dirents(). + + * canon.h: added CANON_MINIMUM_DIRENT_SIZE. + + * canon.c, canon.h: + Exchanged canon_int_list_directorys() with my + rewritten version. At least some hypothetical bugs + fixed, easier to understand and proper error-checking. + This should hopefully not break serial, since this is + almost the same code as I used when debugging other + serial stuff on Philippes computer/camera from 1600 + km distance a few weeks ago. + + * library.c: + Re-wrote _get_file_path() since it was really hard to + understand. The first time I tried to understand it I + got it all wrong and even added some faulty comments. + + Also replaced some random gp_debug_printf() with + GP_DEBUG() and re-indented *.c. + +2001-11-29 Fredrik + + * usb.c, usb.h: + Implemented canon_usb_keylock() which locks the + cameras keys and turns off the LCD. + + * usb.c: + Changed a read of 0x44 bytes to two, one of 0x40 + and one of 0x4 bytes. This seems to fix the problems + we have had with initialization only working every + second time for some cameras. + + Changed canon_usb_dialogue() to return the number of + bytes the caller is interested in rather than the + total number of bytes read from the camera for + "non-long" reads. + + * canon.c: + Move some more code from canon_int_ready() to + canon_int_serial_ready(). + + Don't show init errors with gp_camera_status(), use + gp_camera_set_error() for that. + + Updated canon_int_usb_ready() to call new + canon_usb_keylock() and also do things in a slightly + different order. + +2001-11-27 Hans Ulrich Niedermann + + * README: added note about CRW (raw) support + * canon.c: added support for PowerShot S40 + * canon.h: added support for PowerShot S40 + * library.c: added support for PowerShot S40 + +2001-11-27 Hans Ulrich Niedermann + + * ChangeLog: created new file + * Changelog: declared deprecated diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/Makefile-files new file mode 100644 index 00000000..fe02b85d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/Makefile-files @@ -0,0 +1,30 @@ +# -*- Makefile -*- + +SUBDIRS += canon/doc + +EXTRA_LTLIBRARIES += canon.la + +camlibdoc_DATA += canon/README.canon + +EXTRA_DIST += canon/.indent.pro canon/ChangeLog canon/urb-interpret canon/README.canon canon/TODO + +# "ideal" version: +# + only export the 3 symbols +# + -no-undefined, (i.e. Win32 support) +# - needs lengthy definition in every camlib's Makefile.am +# + nice short name +# + makes renaming the exported symbols to canon_LTX_ realistic +# without ## macros +# + makes it possible to have the same name the module filename and +# the camlib name returned by camera_id() +canon_la_SOURCES = \ + canon/canon.c canon/canon.h \ + canon/library.c canon/library.h \ + canon/serial.c canon/serial.h \ + canon/usb.c canon/usb.h \ + canon/crc.c canon/crc.h \ + canon/util.c canon/util.h +canon_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS) $(LIBEXIF_CFLAGS) +canon_la_LDFLAGS = $(camlib_ldflags) +canon_la_DEPENDENCIES = $(camlib_dependencies) +canon_la_LIBADD = $(camlib_libadd) $(LIBEXIF_LIBS) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/README.canon b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/README.canon new file mode 100644 index 00000000..6d85ca55 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/README.canon @@ -0,0 +1,325 @@ +NOTE: As of 2006, this file is quite outdated, at least regarding the + list of supported cameras. + + +======================================================================== +About this driver +================= + +This driver was written to work with Canon digital cameras without +using any official specs which might exist for the communication +protocols. + +For a disclaimer, see the GNU LESSER GENERAL PUBLIC LICENSE as +distributed with the libgphoto2 library. + +This driver underwent a fairly complete rewrite around 2002-01-01, so +there may still be some wrinkles to be ironed out, especially with +older cameras. + + +======================================================================== +Cameras supported +================= + +For up-to-date camera support details, see the canon.c source file. + + - PowerShot A50 (not tested) + - PowerShot Pro70 + - PowerShot S10 + - PowerShot S20 + - PowerShot S30 + - PowerShot S40 + - PowerShot S100 / Digital IXUS + - PowerShot S110 / DIGITAL IXUS v + - PowerShot S200 / Digital IXUS v2 + - PowerShot IXY Digital (not tested) + - PowerShot S300 / Digital IXUS 300 + - PowerShot IXY Digital 300 (not tested) + - PowerShot G1 + - PowerShot G2 + - PowerShot A10 (not tested after rewrite) + - PowerShot A20 + - PowerShot A30 + - PowerShot A40 + - PowerShot A100 + - PowerShot A200 + - PowerShot Pro90 IS (not tested) + - PowerShot S300 / IXY DIGITAL 300 / Digital IXUS 300 + - EOS D30 + - EOS D60 + - EOS 10D + - Digital IXUS 330 + - Canon MVX2i / Optura 200 MC + - EOS 300D / Digital Rebel / KISS Digital + - a few newer ones, see output of "gphoto2 --list-cameras | grep Canon" + +The following cameras operate either with this driver or in PTP mode +with the PTP driver: + + - PowerShot S45 (normal mode) + - PowerShot G3 (normal mode) + - PowerShot S230 / Digital IXUS v3 (normal mode) + - a few newer ones, see output of "gphoto2 --list-cameras | grep Canon" + +Support for the following cameras is mostly there as they were supported +in gphoto 0.4.x but several API changes and rewrites have probably broken +something along the way. If you are interested in fixing it mail +gphoto-devel@lists.sourceforge.net: + + - PowerShot A5 + - PowerShot A5 Zoom + +It doesn't work with the PowerShot 350. However, the PS350 uses a +vaguely similar protocol, so some parts of the sources can probably be +shared. + +The following cameras, and probably many cameras to come, operate in +either PTP and Canon mode depending on the first data packets sent to +the camera, i.e. depending on whether you use this driver or the PTP +driver: + + - PowerShot A60 + - PowerShot A70 + +The rewritten canon driver doesn't cache much information any +more. Still, if the camera status changes during a session or if the +driver gets stuck for some other reason, the caches could be manually +flushed using "Configure camera". + + +======================================================================== +Features supported +================== + +- RS-232 serial cameras + +- USB cameras (well tested) + +- List all folders and image and movie files on the camera + Optionally list all other files, too + +- Download all file types from the camera as they are, i.e. without + any transformation. This includes CRW (Canon RaW) files, which are + not processed to a standard image file format yet. + +- Download thumbnail for all file types where thumbnails are available + for + +- Delete files. Handles single files and files which have an + associated thumbnail file which is also removed. + +- Download sound annotations to images (not tested) + +- Create and Delete folders + Note that this does not mean that the camera will use your + directories to store the images. + +- Upload files to camera for serial cameras + +- Capture images controlled by the computer + (code courtesy of Emile Snyder and Stephen H. Westin) + +The following features are still experimental and not completely +working yet. Run configure with CFLAGS set to + + "-DCANON_EXPERIMENTAL_UPLOAD" + +(or just one of them, if you want to test only one) to activate +them. Beware that this is work in progress, and no guarantees are +given at all, i.e. even less than the no guarantees we give for the +rest of the driver. + +NOTE: This may CAUSE DAMAGE TO THE CAMERA! + +- Upload files to camera for USB cameras (CANON_EXPERIMENTAL_UPLOAD) + (code courtesy of Matthias Kramm) + + +We are currently also working on support for the raw file format the +Canon cameras use (CRW -Canon RaW files). See + + http://www.shore.net/~dcoffin/powershot/ + +or + http://www2.primushost.com/~dcoffin/powershot/ + +for details on the file format. Currently, only download of CRW files +is supported without any conversion to common image file formats. Use +the programs offered on the website mentioned above for conversion from +CRW to something else. + + +======================================================================== +Remote capture on Canon Powershot A40 +===================================== + +The Canon Powershot A40 supports remote capture with gphoto. However, +not all camera configuration parameters can be set via gphoto. Here +we summarize the current status: + +- shutterspeed: can _NOT_ be set; This parameter can not be remotely set, + most likely due to a camera limitation rather than a gphoto issue. In fact + even Canon RemoteCapture version 2.7.4.23 for MacOSX does not allow + setting this parameter. + +- aperture: can NOT be set; even Canon RemoteCapture for MacOSX does not + allow setting this. + +- ISO: WORKS. Setting the ISO to one of the supported camera values works + with gphoto. + +- Resolution: WORKS. + +- flashmode: WORKS. gphoto2 is able to denable/disable the flash, or set + it to automatic. + +- beep: WORKS. gphoto2 is able to enable/disable the audible beep which + is emitted by the camera after fucosing the scene. + +- zoom: WORKS. gphoto2 can remotely set the zoom. The range of zoom values + needs to be checked; at the moment the range 1 (no zoom at all) to 9 + has been observed to work, but it is unclear whether higher values + work as well. + +- macro mode: can _NOT_ be set. Apparently, RemoteCapture 2.7.4.23 is able + to enable macro mode; however, macro mode should be automatically enabled + by the camera when necessary (need to be checked) + +- exposure compensation: can _NOT_ be set. Apparently, RemoteCapture + 2.7.4.23 is able to set the exposure compensation, while gphoto2 is + not. Supporting this would probably require additional reverse engineering + work on the Canon protocol to understand the commands to issue. + + +======================================================================== +Known Bugs +========== + +* Shutting off the camera and rewaking it is not implemented + + +======================================================================== +Change history +============== + +For detailed changes, see the file ChangeLog. Yes, someone should +extract the user releavant information from ChangeLog and collect it +here. + +Version 9 (17-APRIL-2001) +--------- +- support added for + PowerShot S300 / Digital IXUS 300 /PowerShot IXY Digital 300 + PowerShot A10 / PowerShot A20 + EOS D30 + + +--------- +Version 8 (1-APRIL-2001) +- This history have not been updated in a while... +- support for G1, S100, Ixus and Ixy was added +- upload support only on serial + + +Version 7 (25-JULY-2000) +--------- +- Ported to gphoto2 + + +Version 6 (19-MAY-2000) +--------- + +- Included USB support in the driver +- More options in the configuration file +- Debug output can be mostly disabled +- The driver now sets the "downloaded" bit on downloaded images + +Version 5 (09-MAY-2000) +--------- + +- Support for full-speed transfers (115200) +- Most protocol commands are implemented, or at least discovered (see + the 'Protocol' file) +- USB protocol description +- Get/Set owner name +- Get date +- Get firmware rev. +- Get battery status +- Use libgpio for serial transfers +- More reliable error recovery +- Better configuration dialog +- Support for all current powershot models (A5 to S20) +- Low battery condition detection + + +Version 4 (3-SEP-1999) +--------- + + - changed uint16_t to unsigned short and removed inclusion of stdint.h, for + compatibility :-( + + +Version 3 (1-SEP-1999) +--------- + + - lowered number of tries when initializing from 50 to 10 (50 was for + experiments) + - increased camera ID buffer to be large enough for PS350 responses + - serial input is now flushed before testing or attempting synchronization + - directories are now sorted alphabetically, implicitly ordering images by + date + - fixed a few memory leaks in directory handling + - added arbitrary file download to Configure/Configure Camera (experimental; + very fragile) + + +Version 2 (29-AUG-1999) +--------- + + - integrated into gphoto-2.3.5 (from CVS) + - added support for large directories (listing occupies > 1 message) + - receive timeout is now raised from 1 to 10 seconds after first response + - renamed a50_select_disk to a50_disk_info. It now returns disk capacity + and available space. + - completed CRC table + - properly integrated into gPhoto + - lots of cleanups + + +Version 1 (27-AUG-1999) +--------- + + - a little bit of code cleanup, added a50.h, doc/, full recursive download + in canon.c, and fixed a few documentation bugs, adjusted send/receive + buffers + - a50_send_msg incremented seq_tx when skipping retransissions while waiting + for ACK + + +Version 0 (27-AUG-1999) +--------- + + - initial release which demonstrates most functions in a way that's + completely useless for gPhoto + + +======================================================================== +To do +===== + +Quite outdated. See the TODO file for more current information. + +- code structure is still pretty ugly. Things that absolutely need fixing: + - command codes and fffbs are spread all over the place + - "ping" (empty message) should probably be merged into normal message + handling; perhaps also 03 message -> wait_for_ack can be merged too + - psa50.c must not invoke GUI functions + - change many fprintf(stderr,... to GUI calls or callbacks +- improve error handling: distinguish between severe and harmless errors + (e.g. duplicate EOT vs. ten timeouts in a row) +- find out how error recovery works (need traces) +- get traces for other operations: + - idle period/restart (keepalive ?) + - upload file, create directory +- find out how to avoid blocking gPhoto during transfer diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/TODO b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/TODO new file mode 100644 index 00000000..d6ba7a7a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/TODO @@ -0,0 +1,84 @@ +======================================================================== +List of work that still has to be done on this driver: +======================================================================== + + - switch the camera on again when application exits + + - make file upload work with different file types and names + + - handle thumbnails and sound annotations in a more generic way to + reuse the code + + - extend file attributes from 1 octet to 2 octets + + - introduce and use capabilities everywhere (how?) + + - the canon_int* functions often shouldn't use gphoto2 structures + the canon_usb* and canon_serial* should even less + + - handle rotated images correctly (how?) + + - A5 support is completely broken, with the new filename based API, the + directory caching mecanism must be completely revisited. On the + other hand, when removing the internal caching layer, we perhaps + facilitated the solution to this problem. + + +======================================================================== +List of work that has already been done: +======================================================================== + + - make misc. models work on A/C adapter (e.g. G1, Pro 90 IS) [done -swestin] + + - make image capturing work [done -swestin] + + - make sure thumbnail download work on serial cameras + [done according to Philippe -hun] + + - getting other info on file (resolution and stuff) + using the new libexif [done -fredrik] + + - rework configuration dialog (also wrt i18n) [done -hun] + + - switch the camera keys and buttons off while connected [done -fredrik] + + - made file upload work [done -hun (Patch from Matthias Kramm)] + + - make sure serial cameras work with new CameraFS based code + [basically works, according to Philippe -hun] + + - deleting files [done -hun] + + - setting attributes in general [done -hun] + + - set "downloaded" attribute after successful download [done -hun} + + - make CameraFilesystem distinguish between files and folders [done -hun] + + - FOLDERS : folders are not supported on the A50 (users have no control on + the directory where images are stored on the compact flash) so for the + moment the internal directory structure is hidden to gphoto2. [done -hun] + + - make downloading raw images work [done -hun] + + +======================================================================== +Old stuff that is already done was moved down a bit by hun: +======================================================================== + +08/08/2000 - Notes by Philippe Marzouk + - The driver must be changed to be able to talk to various cameras + via the Camera *camera struct with each function call (08/15/2000 - done). + - USB support is broken as libgpio got changed a bit. I can't test it as + I don't have USB :-( (08/20/2000 - done). + - Uploading : I'm working on it but there are problems. I will soon + include the preliminary support I got for people with S10 and S20 to test + as it seems easier to get them working (s10sh does it). + (08/22/2000 - done for serial but slow) + - The configuration dialog has to be made with the new toolkit independent + functions provided by gphoto2. It should use gp_config_get and + gp_config_set to retrieve and store its configuration information. + I think it should include : date, owner, battery status, firmware + revision and Compact flash space used/available. + I don't know if anything else is needed (08/15/2000 - mostly done). + - Starting a Changelog file (done). diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/canon.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/canon.c new file mode 100644 index 00000000..87f3ef5a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/canon.c @@ -0,0 +1,4141 @@ +/* + * canon.c - Canon protocol "native" operations. + * + * Written 1999 by Wolfgang G. Reissnegger and Werner Almesberger + * Additions 2000 by Philippe Marzouk and Edouard Lafargue + * USB support, 2000, by Mikael Nystroem + * + * This file includes both USB and serial support for the cameras + * manufactured by Canon. These comprise all (or at least almost all) + * of the digital models of the IXUS and PowerShot series, and EOS + * D30, D60, and 10D. The EOS-1D and EOS-1Ds are not supported; they + * use a FireWire (IEEE 1394) interface. + * + * We are working at moving serial and USB specific stuff to serial.c + * and usb.c, keeping the common protocols/busses support in this + * file. + */ +#define _DEFAULT_SOURCE +#include "config.h" + +#include +#include +#include +#include +#include + +#ifdef TM_IN_SYS_TIME +#include +#else +#include +#endif + +#ifdef OS2 +#include +#endif + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "usb.h" +#include "util.h" +#include "library.h" +#include "canon.h" +#include "serial.h" + +#ifdef HAVE_LIBEXIF +# include +# include +#endif + +/************************************************************************ + * Camera definitions + ************************************************************************/ + +/** + * models: + * + * Contains list of all camera models currently supported with their + * respective USB IDs and a serial ID String for cameras with RS232 + * serial support. + * + * Some cameras are sold under different names in different regions, + * but are technically the same. We treat them the same from a + * technical point of view. To avoid unnecessary questions from users, + * we add the other names to the camera list after the primary name, + * such that their camera name occurs in the list of supported + * cameras. + * + * Notes: + * - At least some serial cameras require a certain name for correct + * detection. + * - Newer Canon USB cameras also support a PTP mode. See ptp2 camlib. + * - No IEEE1394 cameras supported yet. + * - The size limit constants aren't used properly anywhere. We should + * probably get rid of them altogether. + **/ + +/* SL_* - size limit constants */ +#define KILOBYTE (1024U) +#define MEGABYTE (1024U * KILOBYTE) +#define SL_THUMB ( 100U * KILOBYTE) +#define SL_THUMB_CR2 ( 10U * MEGABYTE) /* same as regular image */ +#define SL_PICTURE ( 10U * MEGABYTE) +#define SL_MOVIE_SMALL ( 100U * MEGABYTE) +#define SL_MOVIE_LARGE (2048U * MEGABYTE) +#define NO_USB 0 + +/* Models with unknown USB ID's: + European name North American Japanese Intro date + + PowerShot A520 January 2005 + Digital IXUS 40 PowerShot SD300 IXY Digital 50 September 2004 + PowerShot Pro1 February 2004 + PowerShot SD30 IXY i zoom August 2005 + PowerShot A410 August 2005 + PowerShot A610 August 2005 + PowerShot A620 August 2005 + Digital IXUS 55 PowerShot SD450 August 2005 + Digital IXUS 750 PowerShot SD550 August 2005 + PowerShot S80 August 2005 + Digital IXUS Wireless PowerShot SD430 August 2005 + */ +const struct canonCamModelData models[] = { + /* *INDENT-OFF* */ + {"Canon:PowerShot A5", CANON_CLASS_3, NO_USB, NO_USB, CAP_NON, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, "DE300 Canon Inc."}, + {"Canon:PowerShot A5 Zoom", CANON_CLASS_3, NO_USB, NO_USB, CAP_NON, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, "Canon PowerShot A5 Zoom"}, + {"Canon:PowerShot A50", CANON_CLASS_1, NO_USB, NO_USB, CAP_NON, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, "Canon PowerShot A50"}, + {"Canon:PowerShot Pro70", CANON_CLASS_2, NO_USB, NO_USB, CAP_NON, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, "Canon PowerShot Pro70"}, + {"Canon:PowerShot S10", CANON_CLASS_0, 0x04A9, 0x3041, CAP_NON, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, "Canon PowerShot S10"}, + /* 3042 is a scanner, so it will never be added here. */ + {"Canon:PowerShot S20", CANON_CLASS_0, 0x04A9, 0x3043, CAP_NON, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, "Canon PowerShot S20"}, + {"Canon:EOS D30", CANON_CLASS_4, 0x04A9, 0x3044, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot S100 (2000)", CANON_CLASS_0, 0x04A9, 0x3045, CAP_NON, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:IXY DIGITAL", CANON_CLASS_0, 0x04A9, 0x3046, CAP_NON, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS", CANON_CLASS_0, 0x04A9, 0x3047, CAP_NON, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot G1", CANON_CLASS_0, 0x04A9, 0x3048, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, "Canon PowerShot G1"}, + {"Canon:PowerShot Pro90 IS", CANON_CLASS_0, 0x04A9, 0x3049, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, "Canon PowerShot Pro90 IS"}, + + {"Canon:IXY DIGITAL 300", CANON_CLASS_1, 0x04A9, 0x304B, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot S300", CANON_CLASS_1, 0x04A9, 0x304C, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS 300", CANON_CLASS_1, 0x04A9, 0x304D, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A20", CANON_CLASS_1, 0x04A9, 0x304E, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A10", CANON_CLASS_1, 0x04A9, 0x304F, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + /* Mac OS includes this as a valid ID; don't know which camera model --swestin */ + {"Canon:PowerShot unknown 1", CANON_CLASS_1, 0x04A9, 0x3050, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + /* Canon IXY DIGITAL 200 here? */ + {"Canon:PowerShot S110 (2001)", CANON_CLASS_0, 0x04A9, 0x3051, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS v", CANON_CLASS_0, 0x04A9, 0x3052, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + + {"Canon:PowerShot G2", CANON_CLASS_1, 0x04A9, 0x3055, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot S40", CANON_CLASS_1, 0x04A9, 0x3056, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot S30", CANON_CLASS_1, 0x04A9, 0x3057, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A40", CANON_CLASS_1, 0x04A9, 0x3058, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A30", CANON_CLASS_1, 0x04A9, 0x3059, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + /* 305a is the ZR50 Digital Camcorder in USB Mass Storage mode. */ + /* 305b is the ZR45MC Digital Camcorder in USB Mass Storage mode. */ + /* 305c is in MacOS Info.plist, but I don't know what it is --swestin. */ + {"Canon:PowerShot unknown 2", CANON_CLASS_1, 0x04A9, 0x305c, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + + {"Canon:EOS D60", CANON_CLASS_4, 0x04A9, 0x3060, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A100", CANON_CLASS_1, 0x04A9, 0x3061, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A200", CANON_CLASS_1, 0x04A9, 0x3062, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + + {"Canon:PowerShot S200", CANON_CLASS_1, 0x04A9, 0x3065, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS v2", CANON_CLASS_1, 0x04A9, 0x3065, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot S330", CANON_CLASS_1, 0x04A9, 0x3066, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS 330", CANON_CLASS_1, 0x04A9, 0x3066, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + /* 3067 MV550i Digital Video Camera */ + + /* Reported at http://www.linux-usb.org/usb.ids, we have 306E. */ + /*{"Canon:PowerShot G3", CANON_CLASS_1, 0x04A9, 0x3069, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL},*/ + /* 306a is in MacOS Info.plist, but I don't know what it is --swestin. */ + {"Canon:Digital unknown 3", CANON_CLASS_1, 0x04A9, 0x306a, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Optura 200 MC", CANON_CLASS_1, 0x04A9, 0x306B, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:MVX2i", CANON_CLASS_1, 0x04A9, 0x306B, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:IXY DV M", CANON_CLASS_1, 0x04A9, 0x306B, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot S45 (normal mode)", CANON_CLASS_5, 0x04A9, 0x306C, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + /* 0x306D is S45 in PTP mode */ + {"Canon:PowerShot G3 (normal mode)", CANON_CLASS_5, 0x04A9, 0x306E, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + /* 0x306F is G3 in PTP mode */ + {"Canon:PowerShot S230 (normal mode)", CANON_CLASS_4, 0x04A9, 0x3070, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS v3 (normal mode)", CANON_CLASS_4, 0x04A9, 0x3070, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + /* 0x3071 is S230/IXUS v3 in PTP mode */ + /* Following cameras share the ID for PTP and Canon modes */ +#if 0 /* served better by ptp2 driver */ + {"Canon:PowerShot SD100 (normal mode)", CANON_CLASS_5, 0x04A9, 0x3072, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS II (normal mode)", CANON_CLASS_5, 0x04A9, 0x3072, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A70", CANON_CLASS_1, 0x04A9, 0x3073, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A60", CANON_CLASS_1, 0x04A9, 0x3074, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS 400", CANON_CLASS_1, 0x04A9, 0x3075, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot S400", CANON_CLASS_1, 0x04A9, 0x3075, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + /* End of shared ID's */ + {"Canon:PowerShot A300", CANON_CLASS_1, 0x04A9, 0x3076, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + + /* S50 also shares ID for PTP and Canon modes */ + {"Canon:PowerShot S50 (normal mode)", CANON_CLASS_4, 0x04A9, 0x3077, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, +#endif + {"Canon:ZR70MC (normal mode)", CANON_CLASS_1, 0x04A9, 0x3078, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + /* 3079 is listed for MV650i, probably in PTP mode. */ + {"Canon:MV650i (normal mode)", CANON_CLASS_1, 0x04A9, 0x307a, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + /* 307b is listed for MV630i, probably in PTP mode. */ + {"Canon:MV630i (normal mode)", CANON_CLASS_1, 0x04A9, 0x307c, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + + /* 307f is Optura 20/MVX150i in PTP mode, someone told, but it seems not correct. Specify it here too. */ + {"Canon:Optura 20", CANON_CLASS_1, 0x04A9, 0x307f, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Optura 20 (normal mode)", CANON_CLASS_1, 0x04A9, 0x3080, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:MVX150i (normal mode)", CANON_CLASS_1, 0x04A9, 0x3080, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + /* Sighted at + * . */ + {"Canon:MVX100i", CANON_CLASS_1, 0x04A9, 0x3081, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Optura 10", CANON_CLASS_1, 0x04A9, 0x3082, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:EOS 10D", CANON_CLASS_4, 0x04A9, 0x3083, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:EOS 300D (normal mode)", CANON_CLASS_4, 0x04A9, 0x3084, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:EOS Digital Rebel (normal mode)",CANON_CLASS_4, 0x04A9, 0x3084, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:EOS Kiss Digital (normal mode)",CANON_CLASS_4, 0x04A9, 0x3084, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + +#if 0 + /* PS G5 uses the same ProductID for PTP and Canon, with protocol autodetection */ + /* Use PTP driver, as this driver had broken reports - Marcus*/ + {"Canon:PowerShot G5 (normal mode)", CANON_CLASS_5, 0x04A9, 0x3085, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, +#endif + + /* Elura 50 camcorder is 0x3087 in PTP mode; 3088 in Canon mode? */ + {"Canon:Elura 50 (normal mode)", CANON_CLASS_1, 0x04A9, 0x3088, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + + /* Optura Xi/MVX 3i/FV M1 uses 308d in PTP mode; 308e in Canon mode? */ + {"Canon:Optura Xi (normal mode)", CANON_CLASS_1, 0x04A9, 0x308e, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:MVX 3i (normal mode)", CANON_CLASS_1, 0x04A9, 0x308e, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:FV M1 (normal mode)", CANON_CLASS_1, 0x04A9, 0x308e, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + + /* Optura 300/MVX 10i/IXY DV M2 video camera uses 3093 in USB Mass Storage mode. */ + + /* Optura 300/MVX 10i/IXY DV M2 video camera uses 3095 in PTP mode; 3096 in Canon mode? */ + {"Canon:Optura 300 (normal mode)", CANON_CLASS_1, 0x04A9, 0x3096, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:MVX 10i (normal mode)", CANON_CLASS_1, 0x04A9, 0x3096, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:IXY DV M2 (normal mode)", CANON_CLASS_1, 0x04A9, 0x3096, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + + /* 0x3099 is the EOS 300D/Digital Rebel in PTP mode */ + /* A80 seems to share the ID for PTP and Canon modes */ +#if 0 /* served better by PTP2 driver, especially for capture */ + {"Canon:PowerShot A80 (normal mode)", CANON_CLASS_1, 0x04A9, 0x309A, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, +#endif + /* 0x309b is the SD10 Digital ELPH/Digital IXUS i/IXY Digital L + in PTP mode; will it work in Canon mode? */ + {"Canon:PowerShot SD10 Digital ELPH (normal mode)", CANON_CLASS_1, 0x04A9, 0x309B, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS i (normal mode)", CANON_CLASS_1, 0x04A9, 0x309B, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot IXY Digital L (normal mode)", CANON_CLASS_1, 0x04A9, 0x309B, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + +#if 0 +/* reportedly not working ... comment out for now - Marcus */ + /* Product ID shared between PTP and Canon mode */ + {"Canon:PowerShot S1 IS (normal mode)", CANON_CLASS_5, 0x04A9, 0x309C, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, +#endif + + /* 30a0 is ZR90/MV750i camcorder */ + + /* 30a8 is Elura 60E/MVX200i camcorder in PTP mode; don't know + * if it will respond in native mode at the same product + * ID. */ + /* 30a9 is Optura 40/MVX25i camcorder, reported working at + * . Seems + * to share ID with PTP. */ + {"Canon:Optura 40 (normal mode)", CANON_CLASS_1, 0x04A9, 0x30A9, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:MVX25i (normal mode)", CANON_CLASS_1, 0x04A9, 0x30A9, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + +#if 0 /* Handled in ptp2, better for capture etc. -Marcus */ + /* Another block of cameras that share the ID for PTP and Canon modes */ + {"Canon:PowerShot S70 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30b1, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot S60 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30b2, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot G6 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30b3, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS 500 (normal mode)",CANON_CLASS_5, 0x04A9, 0x30b4, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot S500 Digital ELPH (normal mode)",CANON_CLASS_5, 0x04A9, 0x30b4, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:IXY Digital 500 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30b4, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A75", CANON_CLASS_1, 0x04A9, 0x30b5, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot SD110 Digital ELPH", CANON_CLASS_1, 0x04A9, 0x30b6, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS IIs", CANON_CLASS_1, 0x04A9, 0x30b6, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A400", CANON_CLASS_5, 0x04A9, 0x30b7, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A310", CANON_CLASS_5, 0x04A9, 0x30b8, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A85 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30b9, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot S410 Digital ELPH (normal mode)", CANON_CLASS_5, 0x04A9, 0x30ba, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS 430 (normal mode)",CANON_CLASS_5, 0x04A9, 0x30ba, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:IXY Digital 430 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30ba, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A95 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30bb, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + + /* 0x30bf is PowerShot SD300/Digital IXUS 40 in PTP mode */ +#endif + /* Another block of cameras that share the ID for PTP and Canon modes */ + /* keep these enabled as the PTP variant does not support capture */ + {"Canon:PowerShot SD200 (normal mode)", CANON_CLASS_6, 0x04A9, 0x30c0, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS 30 (normal mode)", CANON_CLASS_6, 0x04A9, 0x30c0, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:IXY Digital 40 (normal mode)", CANON_CLASS_6, 0x04A9, 0x30c0, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + +#if 0 + {"Canon:PowerShot SD400 (normal mode)", CANON_CLASS_4, 0x04A9, 0x30c1, CAP_NON, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS 50 (normal mode)", CANON_CLASS_4, 0x04A9, 0x30c1, CAP_NON, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:IXY Digital 55 (normal mode)", CANON_CLASS_4, 0x04A9, 0x30c1, CAP_NON, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:PowerShot A510 (normal mode)", CANON_CLASS_1, 0x04A9, 0x30c2, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + /* End of shared ID's */ +#endif + + {"Canon:PowerShot SD20 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30c4, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS i5 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30c4, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:IXY Digital L2 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30c4, CAP_SUP, SL_MOVIE_SMALL, SL_THUMB, SL_PICTURE, NULL}, + + /* Is 0x30e9 EOS 1D Mark II in Canon mode? */ + /* 0x30ea is EOS 1D Mark II in PTP mode */ + + {"Canon:EOS 20D (normal mode)", CANON_CLASS_6, 0x04A9, 0x30eb, CAP_EXP, SL_MOVIE_LARGE, SL_THUMB_CR2, SL_PICTURE, NULL}, + /* 0x30ec is EOS 20D in PTP mode */ + + {"Canon:EOS 350D (normal mode)", CANON_CLASS_6, 0x04A9, 0x30ee, CAP_EXP, SL_MOVIE_LARGE, SL_THUMB_CR2, SL_PICTURE, NULL}, + {"Canon:Digital Rebel XT (normal mode)", CANON_CLASS_6, 0x04A9, 0x30ee, CAP_EXP, SL_MOVIE_LARGE, SL_THUMB_CR2, SL_PICTURE, NULL}, + {"Canon:EOS Kiss Digital N (normal mode)", CANON_CLASS_6, 0x04A9, 0x30ee, CAP_EXP, SL_MOVIE_LARGE, SL_THUMB_CR2, SL_PICTURE, NULL}, + /* 30ef is EOS 350D/Digital Rebel XT/EOS Kiss Digital N in PTP mode. */ + {"Canon:EOS 5D (normal mode)", CANON_CLASS_6, 0x04A9, 0x3101, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + +#if 0 +/* reportedly not working ... comment out for now - Marcus */ + {"Canon:PowerShot S2 IS (normal mode)", CANON_CLASS_1, 0x04A9, 0x30f0, CAP_EXP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, +#endif + +#if 0 +/* reportedly not working either. failing with lock keys - Marcus */ + {"Canon:PowerShot SD500 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30f2, CAP_NON, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:Digital IXUS 700 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30f2, CAP_NON, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, + {"Canon:IXY Digital 600 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30f2, CAP_NON, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, +#endif + + /* I was not able to make A620 work with CLASS 5, 1 and 6. -Marcus */ + +#if 0 + /* also reported as not working. */ + {"Canon:PowerShot A610 (normal mode)", CANON_CLASS_5, 0x04A9, 0x30fd, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, +#endif + {NULL, CANON_CLASS_NONE, 0x0000, 0x0000, CAP_NON, 0U, 0U, 0U, NULL} + /* *INDENT-ON* */ +}; + +#undef NO_USB +#undef SL_MOVIE_LARGE +#undef SL_MOVIE_SMALL +#undef SL_PICTURE +#undef S1M +#undef SL_THUMB + +#ifndef HAVE_TM_GMTOFF +/* required for time conversions in canon_int_set_time() */ +extern long int timezone; +#endif + +/************************************************************************ + * Methods + ************************************************************************/ + + +/* Simulate capabilities + * + * If you need to change these for a certain camera, it is time to + * introduce and use general capabilities as replacement. + */ + +#define extra_file_for_thumb_of_jpeg FALSE +#define extra_file_for_thumb_of_crw TRUE +#define extra_file_for_thumb_of_cr2 FALSE + +#ifdef __GNUC__ +# define __unused__ __attribute__((unused)) +#else +# define __unused__ +#endif + +static int canon_int_set_release_params (Camera *camera, GPContext *context); + +static const char * canon2gphotopath (Camera __unused__ *camera, const char *path); + + +/*! \brief Return filename with extension replaced + * + * We just replace file ending by .THM and assume this is the + * name of the thumbnail file. + * + * CAUTION! + * - This function does not consider the newext parameter. + * - This function is NOT threadsafe! + */ + +static const char * +replace_filename_extension(const char *filename, const char __unused__ *newext) +{ + char *p; + static char buf[1024]; + + /* We just replace file ending by .THM and assume this is the + * name of the thumbnail file. + */ + if (sizeof(buf) < strlen (filename) + 1) { + GP_DEBUG ("replace_filename_extension: Buffer too small in %s line %i.", + __FILE__, __LINE__); + return NULL; + } + strncpy (buf, filename, sizeof (buf) - 1); + if ((p = strrchr (buf, '.')) == NULL) { + GP_DEBUG ("replace_filename_extension: No '.' found in filename '%s' " + "in %s line %i.", filename, __FILE__, __LINE__); + return NULL; + } + if ((unsigned int)(p - buf) < sizeof (buf) - 4) { + strncpy (p, ".THM", 4); + GP_DEBUG ("replace_filename_extension: New name for '%s' is '%s'", + filename, buf); + return buf; + } else { + GP_DEBUG ("replace_filename_extension: " + "New name for filename '%s' doesn't fit in %s line %i.", + filename, __FILE__, __LINE__); + return NULL; + } +} + + +/*! \brief Return filename with extension replaced + * + * We just replace file ending by .WAV, the first three + * letters by SND and assume this is the name of the audio file. + * + * CAUTION! + * - This function does not consider the newext parameter. + * - This function is NOT threadsafe! + */ + +static char * +filename_to_audio(const char *filename, const char __unused__ *newext) +{ + char *p; + static char buf[1024]; + + if (sizeof(buf) < strlen (filename) + 1) { + GP_DEBUG ("filename_to_audio: Buffer too small in %s line %i.", + __FILE__, __LINE__); + return NULL; + } + strncpy (buf, filename, sizeof (buf) - 1); + if ((p = strrchr (buf, '_')) == NULL) { + GP_DEBUG ("filename_to_audio: No '.' found in filename '%s' " + "in %s line %i.", filename, __FILE__, __LINE__); + return NULL; + } + if ((p - buf) > 3) { + p -= 3; + p[0] = 'S'; + p[1] = 'N'; + p[2] = 'D'; + } + if ((p = strrchr (buf, '.')) == NULL) { + GP_DEBUG ("filename_to_audio: No '.' found in filename '%s' " + "in %s line %i.", filename, __FILE__, __LINE__); + return NULL; + } + if ((unsigned int)(p - buf) < sizeof (buf) - 4) { + strncpy (p, ".WAV", 4); + GP_DEBUG ("filename_to_audio: New name for '%s' is '%s'", + filename, buf); + return buf; + } else { + GP_DEBUG ("filename_to_audio: " + "New name for filename '%s' doesn't fit in %s line %i.", + filename, __FILE__, __LINE__); + return NULL; + } +} + +/** + * canon_int_filename2audioname: + * @camera: Camera to work on + * @filename: the file for which to get the name of the audio annotation + * + * The identifier returned is + * a) NULL if no audio file exists for this file or an internal error occurred + * b) pointer to string with file name of the corresponding thumbnail + * c) pointer to filename in case filename is a thumbnail itself + * + * Returns: identifier for corresponding thumbnail + */ + +const char * +canon_int_filename2audioname (Camera __unused__ *camera, const char *filename) +{ + char *result; + + /* We use the audio file itself as the audio file. In short: + * audiofile = audiofile(audiofile) + */ + if (is_audio (filename)) { + GP_DEBUG ("canon_int_filename2audioname: \"%s\" IS an audio file", + filename); + return filename; + } + + /* There are only audio files for images and movies */ + if (!(is_movie (filename) || is_image (filename))) { + GP_DEBUG ("canon_int_filename2audioname: " + "\"%s\" is neither movie nor image -> no audio file", filename); + return NULL; + } + + result = filename_to_audio (filename, ".WAV"); + + GP_DEBUG ("canon_int_filename2audioname: audio for file \"%s\" is external: \"%s\"", + filename, result); + + return result; +} + +/** + * canon_int_filename2thumbname: + * @camera: Camera to work on + * @filename: the file to get the name of the thumbnail of + * + * The identifier returned is + * a) NULL if no thumbnail exists for this file or an internal error occurred + * b) pointer to empty string if thumbnail is contained in the file itself + * c) pointer to string with file name of the corresponding thumbnail + * d) pointer to filename in case filename is a thumbnail itself + * + * Returns: identifier for corresponding thumbnail + */ + +const char * +canon_int_filename2thumbname (Camera __unused__ *camera, const char *filename) +{ + static char *nullstring = ""; + + /* First handle cases where we shouldn't try to get extra .THM + * file but use the special get_thumbnail_of_xxx function. + */ + if (!extra_file_for_thumb_of_jpeg && is_jpeg (filename)) { + GP_DEBUG ("canon_int_filename2thumbname: thumbnail for JPEG \"%s\" is internal", + filename); + return nullstring; + } + if (!extra_file_for_thumb_of_crw && is_crw (filename)) { + GP_DEBUG ("canon_int_filename2thumbname: thumbnail for CRW \"%s\" is internal", + filename); + return nullstring; + } + if (!extra_file_for_thumb_of_cr2 && is_cr2 (filename)) { + GP_DEBUG ("canon_int_filename2thumbname: thumbnail for CR2 \"%s\" is internal", + filename); + return nullstring; + } + + /* We use the thumbnail file itself as the thumbnail of the + * thumbnail file. In short thumbfile = thumbnail(thumbfile) + */ + if (is_thumbnail (filename)) { + GP_DEBUG ("canon_int_filename2thumbname: \"%s\" IS a thumbnail file", + filename); + return filename; + } + + /* There are only thumbnails for images and movies */ + if (!is_movie (filename) && !is_image (filename)) { + GP_DEBUG ("canon_int_filename2thumbname: " + "\"%s\" is neither movie nor image -> no thumbnail", filename); + return NULL; + } + + GP_DEBUG ("canon_int_filename2thumbname: thumbnail for file \"%s\" is external", + filename); + + /* We just replace file ending by .THM and assume this is the + * name of the thumbnail file. + */ + return replace_filename_extension (filename, ".THM"); + + /* never reached */ + return NULL; +} + +/** + * canon_int_directory_operations: + * @camera: Camera to work on + * @path: Path to directory on which to operate + * @action: #canonDirFunctionCode (either #DIR_CREATE or #DIR_REMOVE) + * @context: context for error reporting + * + * Creates or removes a directory in camera storage. + * + * + * Returns: gphoto2 status code. %GP_OK on success, otherwise status + * from canon_serial_error(), %GP_ERROR if USB operation fails, + * %GP_ERROR_CORRUPTED_DATA if the camera response is not the expected + * length, %GP_ERROR_BAD_PARAMETERS if @action is invalid. + * + */ +int +canon_int_directory_operations (Camera *camera, const char *path, canonDirFunctionCode action, + GPContext *context) +{ + unsigned char *msg; + unsigned int len; + int canon_usb_funct; + char type; + + switch (action) { + case DIR_CREATE: + type = 0x5; + canon_usb_funct = CANON_USB_FUNCTION_MKDIR; + break; + case DIR_REMOVE: + type = 0x6; + canon_usb_funct = CANON_USB_FUNCTION_RMDIR; + break; + default: + GP_DEBUG ("canon_int_directory_operations: " + "Bad operation specified : %i", action); + return GP_ERROR_BAD_PARAMETERS; + break; + } + + GP_DEBUG ("canon_int_directory_operations() called to %s the directory '%s'", + canon_usb_funct == CANON_USB_FUNCTION_MKDIR ? "create" : "remove", path); + switch (camera->port->type) { + case GP_PORT_USB: + msg = canon_usb_dialogue (camera, canon_usb_funct, &len, (unsigned char *)path, + strlen (path) + 1); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, type, 0x11, &len, path, + strlen (path) + 1, NULL); + if ( msg == NULL ) { + canon_serial_error_type (camera); + return GP_ERROR_OS_FAILURE; + } + + break; + GP_PORT_DEFAULT + } + + if (len != 0x4) { + GP_DEBUG ("canon_int_directory_operations: Unexpected amount " + "of data returned (expected %i got %i)", 0x4, len); + return GP_ERROR_CORRUPTED_DATA; + } + + if (msg[0] != 0x00) { + if ( action == DIR_CREATE ) + gp_context_error (context, _("Could not create directory %s."), + path ); + else + gp_context_error (context, _("Could not remove directory %s."), + path); + return GP_ERROR_CAMERA_ERROR; + } + + return GP_OK; +} + +/** + * canon_int_identify_camera: + * @camera: the camera to work with + * @context: context for error reporting + * + * Gets the camera identification string, usually the owner name. + * + * This information is then stored in the "camera" structure, which + * is a global variable for the driver. + * + * This function also gets the firmware revision in the camera struct. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_identify_camera (Camera *camera, GPContext *context) +{ + unsigned char *msg; + unsigned int len; + + GP_DEBUG ("canon_int_identify_camera() called"); + + switch (camera->port->type) { + case GP_PORT_USB: + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_IDENTIFY_CAMERA, + &len, NULL, 0); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, 0x01, 0x12, &len, NULL); + if ( msg == NULL ) { + GP_DEBUG ("canon_int_identify_camera: msg error"); + canon_serial_error_type (camera); + return GP_ERROR_OS_FAILURE; + } + break; + GP_PORT_DEFAULT + } + + if (len != 0x4c) { + GP_DEBUG ("canon_int_identify_camera: Unexpected length returned " + "(expected %i got %i); continuing.", 0x4c, len); + } + + /* Store these values in our "camera" structure: */ + memcpy (camera->pl->firmwrev, (char *) msg + 8, 4); + strncpy (camera->pl->ident, (char *) msg + 12, 32); + if ( camera->pl->md->model != CANON_CLASS_6 ) + strncpy (camera->pl->owner, (char *) msg + 44, 32); + else { + /* Need to get owner explicitly. */ + msg = canon_usb_dialogue ( camera, CANON_USB_FUNCTION_GET_OWNER, &len, NULL, 0 ); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + strncpy (camera->pl->owner, (char *) msg + 4, 32); + } + + + GP_DEBUG ("canon_int_identify_camera: ident '%s' owner '%s', firmware %d.%d.%d.%d", + camera->pl->ident, camera->pl->owner, + camera->pl->firmwrev[3], camera->pl->firmwrev[2], + camera->pl->firmwrev[1], camera->pl->firmwrev[0] ); + + return GP_OK; +} + +/** + * canon_int_get_battery: + * @camera: the camera to work on + * @pwr_status: pointer to integer determining power status + * @pwr_source: pointer to integer determining power source + * @context: context for error reporting + * + * Gets battery status. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_get_battery (Camera *camera, int *pwr_status, int *pwr_source, GPContext *context) +{ + unsigned char *msg; + unsigned int len; + + GP_DEBUG ("canon_int_get_battery()"); + + switch (camera->port->type) { + case GP_PORT_USB: + if ( camera->pl->md->model == CANON_CLASS_6 ) + /* Newer protocol uses a different code, but with same response. */ + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_POWER_STATUS_2, + &len, NULL, 0); + else + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_POWER_STATUS, + &len, NULL, 0); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, 0x0a, 0x12, &len, NULL); + if ( msg == NULL ) { + canon_serial_error_type (camera); + return GP_ERROR_OS_FAILURE; + } + + break; + GP_PORT_DEFAULT + } + + if (len != 0x8) { + GP_DEBUG ("canon_int_get_battery: Unexpected length returned " + "(expected %i got %i)", 0x8, len); + return GP_ERROR_CORRUPTED_DATA; + } + + if (pwr_status) + *pwr_status = msg[4]; + if (pwr_source) + *pwr_source = msg[7]; + + GP_DEBUG ("canon_int_get_battery: Status: %02x (%s) / Source: %02x (%s)", + msg[4], (msg[4]==CAMERA_POWER_OK?"OK":"BAD"), + msg[7], (msg[7]&CAMERA_MASK_BATTERY?"BATTERY":"AC") ); + + return GP_OK; +} + +/** + * canon_int_get_picture_abilities: + * @camera: the camera to work on + * @context: the context to print on error + * + * Reads the camera picture abilities, but ignores them as we don't + * know how to interpret the data. + * NOTE: Command is not implemented for some cameras + * and will cause an error if issued. The cameras for which we know + * it won't work are + * EOS D30 + * EOS D60 + * PowerShot S45. + * NOTE: The "Protocol" file said that exactly 0x380 (900) bytes would + * be returned, but it's actually 904 bytes for the PowerShot G2. + * I don't know whether this was an error in the "Protocol" document + * or if different models return different lengths. -swestin 2002.01.09 + * + * Returns: gphoto2 error code + * + */ +#if 0 /* This function is not used by anybody */ +static int +canon_int_get_picture_abilities (Camera *camera, GPContext *context) +{ + unsigned char *msg; + unsigned int len; + + GP_DEBUG ("canon_int_get_picture_abilities()"); + + switch (camera->port->type) { + case GP_PORT_USB: + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_GET_PIC_ABILITIES, + &len, NULL, 0); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, 0x1f, 0x12, &len, NULL); + if ( msg == NULL ) { + canon_serial_error_type (camera); + return GP_ERROR_OS_FAILURE; + } + + break; + GP_PORT_DEFAULT + } + + if (len != 0x334) { + GP_DEBUG ("canon_int_get_picture_abilities: Unexpected length returned " + "(expected %i got %i)", 0x334, len); + return GP_ERROR_CORRUPTED_DATA; + } + + return GP_OK; +} +#endif + +/** + * canon_int_pack_control_subcmd + * @payload: to receive payload for %CANON_USB_FUNCTION_CONTROL_CAMERA + * command + * @subcmd: Subcommand for remote capture command + * (e.g. %CANON_USB_CONTROL_SHUTTER_RELEASE) + * @word0: 32-bit first word of payload (first command parameter) + * @word1: 32-bit second word of payload (second command parameter) + * @desc: to receive string describing subcommand. + * + * Builds the payload for a remote capture command. The length varies + * by command, so this function a buffer of the correct size with the + * proper stuff. + * + * Returns: size of payload buffer, payload data in @payload, command + * description in @desc + * + */ +static int +canon_int_pack_control_subcmd (unsigned char *payload, unsigned int subcmd, + int word0, int word1, + char *desc) +{ + int i, paysize; + + i = 0; + while (canon_usb_control_cmd[i].num != 0) { + if (canon_usb_control_cmd[i].num == subcmd) + break; + i++; + } + if (canon_usb_control_cmd[i].num == 0) { + GP_DEBUG ("canon_int_pack_control_subcmd: unknown subcommand %d", subcmd); + sprintf (desc, "unknown subcommand"); + return 0; + } + + sprintf (desc, "%s", canon_usb_control_cmd[i].description); + paysize = canon_usb_control_cmd[i].cmd_length - 0x10; + memset (payload, 0, paysize); + if (paysize >= 0x04) htole32a(payload, canon_usb_control_cmd[i].subcmd); + if (paysize >= 0x08) htole32a(payload+0x4, word0); + if (paysize >= 0x0c) htole32a(payload+0x8, word1); + + return paysize; +} + +/** + * canon_int_do_control_command: + * @camera: Camera to work on + * @subcmd: Subcommand for remote capture command + * (e.g. %CANON_USB_CONTROL_INIT) + * @a: 32-bit first word of payload (first command parameter) + * @b: 32-bit second word of payload (second command parameter) + * + * Executes a normal remote capture command (i.e. not + * %CANON_USB_CONTROL_SHUTTER_RELEASE, which has its own special + * function). + * + * Returns: gphoto2 status code + * + */ +static int +canon_int_do_control_command (Camera *camera, unsigned int subcmd, int a, int b) +{ + unsigned char payload[0x4c]; + char desc[128]; + int payloadlen; + unsigned int datalen = 0; + unsigned char *msg = NULL; + + payloadlen = canon_int_pack_control_subcmd(payload, subcmd, + a, b, desc); + GP_DEBUG("%s++ with %x, %x", desc, a, b); + + if ( camera->pl->md->model == CANON_CLASS_6 ) { + /* Newer protocol uses a different code, but with same + * response. It also needs an extra zero byte at the + * end. */ + payload[payloadlen++] = 0; + msg = canon_usb_dialogue ( camera, + CANON_USB_FUNCTION_CONTROL_CAMERA_2, + &datalen, payload, payloadlen ); + } + else + msg = canon_usb_dialogue ( camera, + CANON_USB_FUNCTION_CONTROL_CAMERA, + &datalen, payload, payloadlen ); + if ( msg == NULL && datalen != 0x1c) { + /* ERROR */ + GP_DEBUG("%s datalen=%x", + desc, datalen); + return GP_ERROR_CORRUPTED_DATA; + } + msg = NULL; + datalen = 0; + GP_DEBUG("%s--", desc); + + return GP_OK; +} + +/** + * canon_int_do_control_dialogue_payload: + * @camera: Camera to work on + * @subcmd: Subcommand for remote capture command + * (e.g. %CANON_USB_CONTROL_INIT) + * @payload: pointer to the payload data buffer to send to the camera + * @payloadlen: length of the payload to send to the camera + * @response_handle: pointer to a pointer where the camera response buffer + * address should be stored. + * @datalen: the length of the response data from the camera + * + * Executes a command with arbitrary parameter data that returns data + * from the camera, e.g., get release parameters, set release parameters. + * This function provides the caller full control over payload data. + * + * Returns: gphoto2 status code, camera response data in @response_handle, + * length of the response in @datalen + * + */ +static int +canon_int_do_control_dialogue_payload (Camera *camera, unsigned char *payload, + unsigned int payloadlen, + unsigned char **response_handle, + unsigned int *datalen) +{ + unsigned char *msg; + + GP_DEBUG("canon_int_do_control_dialogue_payload++"); + + if ( camera->pl->md->model == CANON_CLASS_6 ) { + /* Newer protocol uses a different code, but with same + * response. It also needs an extra zero byte at the + * end. */ + payload[payloadlen++] = 0; + msg = canon_usb_dialogue_full ( camera, + CANON_USB_FUNCTION_CONTROL_CAMERA_2, + datalen, payload, payloadlen); + } + else + msg = canon_usb_dialogue_full ( camera, + CANON_USB_FUNCTION_CONTROL_CAMERA, + datalen, payload, payloadlen); + + if ( msg == NULL && *datalen != 0x1c) { + /* ERROR */ + GP_DEBUG("canon_int_do_control_dialogue_payload error: " + "datalen=%x", *datalen); + return GP_ERROR_CORRUPTED_DATA; + } + + *response_handle = msg; + + GP_DEBUG("canon_int_do_control_dialogue_payload--"); + + return GP_OK; +} + +/** + * canon_int_do_control_dialogue: + * @camera: Camera to work on + * @subcmd: Subcommand for remote capture command + * (e.g. %CANON_USB_CONTROL_INIT) + * @a: 32-bit first word of payload (first command parameter) + * @b: 32-bit second word of payload (second command parameter) + * @response_handle: pointer to a pointer where the camera response buffer + * address should be stored. + * @datalen: the length of the response data from the camera + * + * Executes a remote capture command that returns data from the + * camera, e.g., get release parameters. + * + * Returns: gphoto2 status code, camera response data in @response_handle, + * length of the response in @datalen + * + */ +static int +canon_int_do_control_dialogue (Camera *camera, unsigned int subcmd, int a, int b, + unsigned char **response_handle, unsigned int *datalen) +{ + unsigned char payload[0x4c]; + char desc[128]; + int payloadlen; + int status; + + payloadlen = canon_int_pack_control_subcmd (payload, subcmd, + a, b, desc); + GP_DEBUG("%s++ with %x, %x", desc, a, b); + + status = canon_int_do_control_dialogue_payload (camera, payload, + payloadlen, + response_handle, datalen); + + if ( status < 0 ) { + /* ERROR */ + GP_DEBUG("%s error: datalen=%x", desc, *datalen); + return GP_ERROR_CORRUPTED_DATA; + } + + GP_DEBUG("%s--", desc); + + return GP_OK; +} + + +/** + * canon_int_start_remote_control: + * @camera: Camera to work on + * @context: context for error reporting + * + * Initiate remote control of the shutter release and related photographic + * parameters. + * + * Returns: gphoto2 status code + * + */ +int +canon_int_start_remote_control (Camera *camera, GPContext __unused__ *context) +{ + int status; + + if (camera->pl->remote_control) { + GP_DEBUG ("canon_int_start_remote_control: Camera already under remote control"); + return GP_ERROR; + } + + /* Init, extends camera lens, puts us in remote capture mode */ + status = canon_int_do_control_command (camera, + CANON_USB_CONTROL_INIT, 0, 0); + + + if (status == GP_OK) + camera->pl->remote_control = 1; + + return status; +} + + +/** + * canon_int_end_remote_control: + * @camera: Camera to work on + * @context: context for error reporting + * + * Terminate remote control of the shutter release and related photographic + * parameters. + * + * Returns: gphoto2 status code + * + */ +int +canon_int_end_remote_control (Camera *camera, GPContext __unused__ *context) +{ + int status; + + if (!camera->pl->remote_control) { + GP_DEBUG ("canon_int_end_remote_control: Camera not currently under remote control"); + return GP_ERROR; + } + + /* End release mode */ + status = canon_int_do_control_command (camera, + CANON_USB_CONTROL_EXIT, 0, 0); + + + if (status == GP_OK) + camera->pl->remote_control = 0; + + return status; +} + + +/** + * canon_int_capture_preview + * @camera: camera to work with + * @data: gets thumbnail image data. + * @length: gets length of @data. + * @context: context for error reporting + * + * Directs the camera to capture an image without storing it on the + * camera. (remote shutter release via USB). The thumbnail will be + * returned in @data. See the 'Protocol' file for details. Capture + * through serial port is not (yet) supported. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_capture_preview (Camera *camera, unsigned char **data, unsigned int *length, + GPContext *context) +{ + canonTransferMode transfermode; + + int mstimeout = -1; + int status; + unsigned int return_length; + + unsigned int b_length_orig = 0; + unsigned int *b_length = &b_length_orig; + unsigned char *b_data_orig = NULL; + unsigned char **b_data = &b_data_orig; + + int photo_status; + + /* Should we download the thumbnail, or the full image ? */ + if (camera->pl->capture_size == CAPTURE_FULL_IMAGE) + transfermode = REMOTE_CAPTURE_FULL_TO_PC; + else + transfermode = REMOTE_CAPTURE_THUMB_TO_PC; + + switch (camera->port->type) { + case GP_PORT_USB: + + gp_port_get_timeout (camera->port, &mstimeout); + GP_DEBUG("canon_int_capture_preview: usb port timeout starts at %dms", mstimeout); + + camera->pl->image_b_key = 0x0; + camera->pl->image_b_length = 0x0; + + /* + * Send a sequence of CONTROL_CAMERA commands. + */ + + if (!camera->pl->remote_control) { + gp_port_set_timeout (camera->port, 15000); + + status = canon_int_start_remote_control (camera, context); + if ( status < 0 ) + return status; + } + + /* + * Set the captured image transfer mode. We have four options + * that we can specify any combo of, captured thumb to PC, + * full to PC, thumb to disk, and full to disk. + * + * The to-PC option will return a length and integer + * key from canon_usb_capture_dialogue() to use in the + * "Download Captured Image" command. + * + */ + GP_DEBUG ( "canon_int_capture_preview: transfer mode is %x", transfermode ); + status = canon_int_do_control_command (camera, + CANON_USB_CONTROL_SET_TRANSFER_MODE, + 0x04, transfermode); + if ( status < 0 ) + return status; + + gp_port_set_timeout (camera->port, mstimeout); + GP_DEBUG("canon_int_capture_preview: set camera port timeout back to %d seconds...", mstimeout / 1000 ); + + /* Get release parameters a couple of times, just to + see if that helps. */ + status = canon_int_do_control_command (camera, + CANON_USB_CONTROL_GET_PARAMS, + 0x04, transfermode); + if ( status < 0 ) + return status; + + status = canon_int_do_control_command (camera, + CANON_USB_CONTROL_GET_PARAMS, + 0x04, transfermode); + if ( status < 0 ) + return status; + + /* Lock keys here for EOS cameras */ + if ( camera->pl->md->model == CANON_CLASS_4 || camera->pl->md->model == CANON_CLASS_6 ) { + status = canon_usb_lock_keys(camera,context); + if ( status < 0 ) { + gp_context_error (context, _("lock keys failed.")); + return status; + } + } + + /* Shutter Release + Can't use normal "canon_int_do_control_command", as + we must read the interrupt pipe before the response + comes back for this commmand. */ + *data = canon_usb_capture_dialogue ( camera, &return_length, &photo_status, context ); + if ( *data == NULL ) { + /* Try to leave camera in a usable state. */ + canon_int_end_remote_control (camera, context); + + /* XXX It would be nice if we had a way to + decode the camera error state for the caller + application. For example, + photo_status == 0x01 seems to mean + "autofocus failure" on the EOS 5D. */ + if (photo_status != 0) + return GP_ERROR_CAMERA_ERROR; + else + return GP_ERROR_OS_FAILURE; + + } + + if (transfermode == REMOTE_CAPTURE_FULL_TO_PC) { + + /* Download the image. */ + if ( camera->pl->image_length > 0 ) { + status = canon_usb_get_captured_image ( camera, camera->pl->image_key, data, length, context ); + if ( status < 0 ) { + GP_DEBUG ( "canon_int_capture_preview:" + " image download failed, status= %i", status ); + return status; + } + } + + /* Download the secondary image, if one exists */ + if ( camera->pl->image_b_length > 0 ) { + status = canon_usb_get_captured_secondary_image ( camera, camera->pl->image_b_key, b_data, b_length, context ); + if ( status < 0 ) { + GP_DEBUG ( "canon_int_capture_preview:" + " secondary image download failed, status= %i", status ); + return status; + } + + /* Get rid of it */ + /* XXX maybe this should be changed in the future + * to do something else with it */ + free(b_data_orig); + } + + } else if (transfermode == REMOTE_CAPTURE_THUMB_TO_PC) { + + /* Download the thumbnail image. */ + if ( camera->pl->thumb_length > 0 ) { + status = canon_usb_get_captured_thumbnail ( camera, camera->pl->image_key, data, length, context ); + if ( status < 0 ) { + GP_DEBUG ( "canon_int_capture_preview:" + " thumbnail download failed, status= %i", status ); + return status; + } + } + + } + + break; + case GP_PORT_SERIAL: + return GP_ERROR_NOT_SUPPORTED; + break; + GP_PORT_DEFAULT + } + + return GP_OK; +} + +/** + * canon_int_find_new_image: + * @camera: Camera * to this camera + * @initial_state: Camera directory dump before image capture + * @final_state: Directory dump after image capture + * @path: Will be filled in with the path and filename of the captured + * image, in canonical gphoto2 format. + * + * Compares two complete dumps of the camera directory: before and + * after an image capture command. The first new image file is found, + * and its pathname is decoded into the given CameraFilePath. + * + */ +void canon_int_find_new_image ( Camera *camera, unsigned char *initial_state, unsigned char *final_state, + CameraFilePath *path ) +{ + char *old_entry = (char *)initial_state, *new_entry = (char *)final_state; + + /* Set default path name */ + strncpy ( path->name, _("*UNKNOWN*"), sizeof(path->name) ); + strncpy ( path->folder, _("*UNKNOWN*"), sizeof(path->folder) ); + + path->folder[0] = 0; /* Start with null pathname string. */ + GP_DEBUG ( "canon_int_find_new_image: starting directory compare" ); + while ( le16atoh ( old_entry+CANON_DIRENT_ATTRS ) != 0 + || le32atoh ( old_entry + CANON_DIRENT_SIZE ) != 0 + || le32atoh ( old_entry + CANON_DIRENT_TIME ) != 0 ) { + char *old_name = old_entry + CANON_DIRENT_NAME, + *new_name = new_entry + CANON_DIRENT_NAME; + GP_DEBUG ( " old entry \"%s\", attr = 0x%02x, size=%i", + old_name, + old_entry[CANON_DIRENT_ATTRS], + le32atoh ( old_entry + CANON_DIRENT_SIZE ) ); + GP_DEBUG ( " new entry \"%s\", attr = 0x%02x, size=%i", + new_name, + new_entry[CANON_DIRENT_ATTRS], + le32atoh ( new_entry + CANON_DIRENT_SIZE ) ); + if ( *old_entry != *new_entry + || le32atoh ( old_entry + CANON_DIRENT_SIZE ) != le32atoh ( new_entry + CANON_DIRENT_SIZE ) + || le32atoh ( old_entry + CANON_DIRENT_TIME ) != le32atoh ( new_entry + CANON_DIRENT_TIME ) + || strcmp ( old_name, new_name ) ) { + /* Mismatch. Presumably a + new file, but is it an + image file? */ + GP_DEBUG ( "Found mismatch" ); + if ( is_image ( new_name ) ) { + /* Yup, we'll assume that this is the new image. */ + GP_DEBUG ( " Found our new image file" ); + strcpy ( path->name, new_name ); + strcpy ( path->folder, canon2gphotopath ( camera, path->folder ) ); + + /* FIXME: Marcus: make it less large effort... */ + gp_filesystem_reset (camera->fs); + break; + } + else { + /* The mismatch is not an image + file. There are three + possibilities: + + 1. This is a new directory with no + files. The next entry will be + another directory. + + 2. This is an auxiliary file + (sound, thumbnail, catalog). + + In either of these cases, the thing + to do is to skip this entry in the + new directory. + + 3. This is a new directory with new + files, and we will enter it. + The next entry in the new + directory will be a new file, + which may well be our new image + file. + + */ + if ( le16atoh ( new_entry+CANON_DIRENT_ATTRS ) & CANON_ATTR_RECURS_ENT_DIR ) { + if ( !strcmp ( "..", new_name ) ) { + /* Pop out of this directory */ + char *local_dir = strrchr(path->folder,'\\') + 1; + /* The EOS 350D has + * ".." entries right + * up to the root, so + * we need to avoid + * dereferencing a + * null pointer. */ + if ( local_dir != NULL && local_dir > path->folder ) { + GP_DEBUG ( "Leaving directory \"%s\"", local_dir ); + local_dir[-1] = 0; + } + else + GP_DEBUG ( "Leaving top directory" ); + } + else { + /* New directory, and we need to enter it. */ + GP_DEBUG ( "Entering directory \"%s\"", new_name ); + if ( new_entry[CANON_DIRENT_NAME] == '.' ) + /* Ignore a leading dot */ + strncat ( path->folder, + new_name + 1, + sizeof(path->folder) - strlen(path->folder) - 1 ); + else + strncat ( path->folder, + new_name, + sizeof(path->folder) - strlen(path->folder) - 1 ); + } + } + new_entry += CANON_MINIMUM_DIRENT_SIZE + strlen ( new_entry+CANON_DIRENT_NAME ); + } + } + else { + if ( le16atoh ( old_entry+CANON_DIRENT_ATTRS ) & CANON_ATTR_RECURS_ENT_DIR ) { + /* Entered a new directory; append its + name to the current folder path. + The end of a directory is signaled + by an entry with zero length and + time, and name "..". */ + if ( !strcmp ( "..", old_name ) ) { + /* Pop out of this directory */ + char *local_dir = strrchr(path->folder,'\\') + 1; + /* The EOS 350D has + * ".." entries right + * up to the root, so + * we need to avoid + * dereferencing a + * null pointer. */ + if ( local_dir != NULL && local_dir > path->folder ) { + GP_DEBUG ( "Leaving directory \"%s\"", local_dir ); + local_dir[-1] = 0; + } + else + GP_DEBUG ( "Leaving top directory" ); + } + else { + GP_DEBUG ( "Entering directory \"%s\"", old_name ); + if ( old_name[0] == '.' ) + /* Ignore a leading dot */ + strncat ( path->folder, + old_name + 1, + sizeof(path->folder) - strlen(path->folder) - 1 ); + else + strncat ( path->folder, + old_name, + sizeof(path->folder) - strlen(path->folder) - 1 ); + } + } + /* Move to next entry */ + new_entry += CANON_MINIMUM_DIRENT_SIZE + strlen ( new_entry+CANON_DIRENT_NAME ); + old_entry += CANON_MINIMUM_DIRENT_SIZE + strlen ( old_entry+CANON_DIRENT_NAME ); + } + } +} + +/** + * canon_int_capture_image: + * @camera: camera to work with + * @path: gets filled in with the path and filename of the captured + * image, in canonical gphoto2 format. + * @context: context for error reporting + * + * Directs the camera to capture an image (remote shutter release via + * USB). See the 'Protocol' file for details. Capture through serial + * port is not (yet) supported. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_capture_image (Camera *camera, CameraFilePath *path, + GPContext *context) +{ + canonTransferMode transfermode; + + int mstimeout = -1; + int status; + unsigned int return_length; + + unsigned char *data = NULL; + unsigned char *initial_state, *final_state; /* For comparing + * before/after + * directories */ + unsigned int initial_state_len, final_state_len; + + int photo_status; + + /* Should we save the thumbnail, or the full image ? */ + if (camera->pl->capture_size == CAPTURE_THUMB) + transfermode = REMOTE_CAPTURE_THUMB_TO_DRIVE; + else + transfermode = REMOTE_CAPTURE_FULL_TO_DRIVE; + + switch (camera->port->type) { + case GP_PORT_USB: + /* List all directories on the camera to get a + baseline to find the new file. */ + status = canon_usb_list_all_dirs ( camera, &initial_state, &initial_state_len, context ); + + if ( status < 0 ) { + gp_context_error (context, + _("canon_int_capture_image: initial canon_usb_list_all_dirs() failed with status %li"), + (long)status ); + return status; + } + + gp_port_get_timeout (camera->port, &mstimeout); + GP_DEBUG("canon_int_capture_image: usb port timeout starts at %dms", mstimeout); + + /* + * Send a sequence of CONTROL_CAMERA commands. + */ + + gp_port_set_timeout (camera->port, 15000); + + if (!camera->pl->remote_control) { + status = canon_int_start_remote_control (camera, context); + if ( status < 0 ) { + free ( initial_state ); + return status; + } + } + + /* + * Set the captured image transfer mode. We have four options + * that we can specify any combo of, captured thumb to PC, + * full to PC, thumb to disk, and full to disk. + * + * The to-PC option will return a length and integer + * key from canon_usb_capture_dialogue() to use in the + * "Download Captured Image" command. + * + */ + GP_DEBUG ( "canon_int_capture_image: transfer mode is %x", transfermode ); + status = canon_int_do_control_command (camera, + CANON_USB_CONTROL_SET_TRANSFER_MODE, + 0x04, transfermode); + if ( status < 0 ) { + canon_int_end_remote_control (camera, context); + free ( initial_state ); + return status; + } + + gp_port_set_timeout (camera->port, mstimeout); + GP_DEBUG("canon_int_capture_image: set camera port timeout back to %d seconds...", mstimeout / 1000 ); + + /* Get release parameters a couple of times, just to + see if that helps. */ + status = canon_int_do_control_command (camera, + CANON_USB_CONTROL_GET_PARAMS, + 0x00, 0); + if ( status < 0 ) { + canon_int_end_remote_control (camera, context); + free ( initial_state ); + return status; + } + +#ifdef DEBUG_TINY_IMAGES + { + unsigned char *result_block; + int result_len, payload_len; + unsigned char payload[0x59]; + unsigned char *params; + unsigned char desc[1024]; + payload_len = canon_int_pack_control_subcmd ( payload, + CANON_USB_CONTROL_GET_PARAMS, + 0x00, 0, + desc ); + result_block = canon_usb_dialogue ( camera, CANON_USB_FUNCTION_CONTROL_CAMERA, + &result_len, payload, payload_len ); + if ( result_block == NULL ) { + free ( initial_state ); + return GP_ERROR; + } + + memset ( payload, 0, sizeof(payload) ); + params = payload+0x08; + memcpy ( params, result_block+0x0c, 0x30 ); + + payload[0] = 0x07; + payload[4] = 0x30; + params[1] = 2; /* "Normal" compression */ + params[2] = 1; /* JPEG */ + params[3] = 2; /* small */ + params[4] = params[5] = 0; /* Self timer off */ + params[6] = 0; /* Flash off */ + params[7] = 0; /* Beep off */ + result_block = canon_usb_dialogue ( camera, CANON_USB_FUNCTION_CONTROL_CAMERA, + &result_len, payload, 0x38 ); + if ( result_block == NULL ) { + free ( initial_state ); + return GP_ERROR; + } + } +#endif /* DEBUG_TINY_IMAGES */ + + status = canon_int_do_control_command (camera, + CANON_USB_CONTROL_GET_PARAMS, + 0x04, transfermode); + if ( status < 0 ) { + canon_int_end_remote_control (camera, context); + free ( initial_state ); + return status; + } + + /* Lock keys here for EOS */ + if ( camera->pl->md->model == CANON_CLASS_4 || camera->pl->md->model == CANON_CLASS_6 ) { + status = canon_usb_lock_keys(camera,context); + if ( status < 0 ) { + gp_context_error (context, _("lock keys failed.")); + canon_int_end_remote_control (camera, context); + free ( initial_state ); + return status; + } + } + + /* Shutter Release + Can't use normal "canon_int_do_control_command", as + we must read the interrupt pipe before the response + comes back for this commmand. */ + data = canon_usb_capture_dialogue ( camera, &return_length, &photo_status, context ); + if ( data == NULL ) { + /* Try to leave camera in a usable state. */ + canon_int_end_remote_control (camera, context); + + free ( initial_state ); + /* XXX It would be nice if we had a way to + decode the camera error state for the caller + application. For example, + photo_status == 0x01 seems to mean + "autofocus failure" on the EOS 5D. */ + if (photo_status != 0) + return GP_ERROR_CAMERA_ERROR; + else + return GP_ERROR_OS_FAILURE; + + } + + /* Now list all directories on the camera; this has + presumably added an image file. Find the difference + and decode to return real path and file names. */ + status = canon_usb_list_all_dirs ( camera, &final_state, &final_state_len, context ); + if ( status < 0 ) { + gp_context_error ( context, + _("canon_int_capture_image:" + " final canon_usb_list_all_dirs() failed with status %i"), + status ); + free ( initial_state ); + return status; + } + + /* Find new file name in camera directory */ + canon_int_find_new_image ( camera, initial_state, final_state, path ); + + /* Save this state to the camera directory state */ + if (camera->pl->directory_state) + free (camera->pl->directory_state); + camera->pl->directory_state = final_state; + + free ( initial_state ); + break; + case GP_PORT_SERIAL: + return GP_ERROR_NOT_SUPPORTED; + break; + GP_PORT_DEFAULT + } + + return GP_OK; +} + + +/** + * canon_int_set_file_attributes: + * @camera: camera to work with + * @file: file to work on + * @dir: directory to work in + * @attrs: #canonDirentAttributeBits with the bits to set + * @context: context for error reporting + * + * Sets a file's attributes. See the 'Protocol' file for details. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_file_attributes (Camera *camera, const char *file, const char *dir, + canonDirentAttributeBits attrs, GPContext *context) +{ + unsigned char *msg; + unsigned char attr[4]; + unsigned int len; + + GP_DEBUG ("canon_int_set_file_attributes() called for '%s' '%s', attributes 0x%x", + dir, file, attrs); + + attr[0] = attr[1] = attr[2] = 0; + attr[3] = attrs; + + switch (camera->port->type) { + case GP_PORT_USB: + return canon_usb_set_file_attributes ( camera, attrs, dir, file, context ); + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, 0xe, 0x11, &len, attr, 4, + dir, strlen (dir) + 1, file, + strlen (file) + 1, NULL); + if ( msg == NULL ) { + canon_serial_error_type (camera); + return GP_ERROR_OS_FAILURE; + } + break; + GP_PORT_DEFAULT + } + + if (len != 0x4) { + GP_DEBUG ("canon_int_set_file_attributes: Unexpected length returned " + "(expected %i got %i)", 0x4, len); + return GP_ERROR_CORRUPTED_DATA; + } + + GP_LOG_DATA ((char *)msg, 4, + "canon_int_set_file_attributes: returned four bytes as expected, " + "we should check if they indicate error or not. Returned data:"); + + return GP_OK; +} + + +/** + * canon_int_get_release_params + * @camera: the camera to work on + * @context: the context to print on error + * + * Reads the camera's release parameters (ISO, aperture, shutter speed, etc) + * + * Right now this has only been tested on an EOS 5D via USB. + * Note that the camera must be under USB control via + * canon_int_start_remote_control() before calling this function. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_get_release_params (Camera *camera, GPContext *context) +{ + unsigned char *response = NULL; + unsigned int len = 0x8c; + unsigned int i; + int status; + + GP_DEBUG ("canon_int_get_release_params()"); + + /* canon_int_start_remote_control() must be called before + this function */ + if (!camera->pl->remote_control) { + GP_DEBUG ("canon_int_get_release_params: Camera not under USB control"); + return GP_ERROR; + } + + + switch (camera->port->type) { + case GP_PORT_USB: + status = canon_int_do_control_dialogue (camera, + CANON_USB_CONTROL_GET_PARAMS, + 0x00, 0, &response, &len); + if ( status != GP_OK ) + return status; + + if ( response == NULL ) + return GP_ERROR_OS_FAILURE; + break; + case GP_PORT_SERIAL: + return GP_ERROR_NOT_SUPPORTED; + break; + GP_PORT_DEFAULT + } + + + if (len != 0x8c) { + GP_DEBUG ("canon_int_get_release_params: Unexpected length returned " + "(expected %i got %i)", 0x8c, len); + return GP_ERROR_CORRUPTED_DATA; + } + + + /* + * 0x5c is the offset to the camera parameters in the + * get release params response data + */ + memcpy(camera->pl->release_params, response + 0x5c, + sizeof(camera->pl->release_params)); + + for (i=0;ipl->release_params);i++) { + GP_DEBUG("canon_int_get_release_params: [%d] = 0x%02x", i, camera->pl->release_params[i]); + } + + GP_DEBUG ("canon_int_get_release_params: shutter speed = 0x%02x", + camera->pl->release_params[SHUTTERSPEED_INDEX]); + + GP_DEBUG ("canon_int_get_release_params: aperture = 0x%02x", + camera->pl->release_params[APERTURE_INDEX]); + + GP_DEBUG ("canon_int_get_release_params: iso = 0x%02x", + camera->pl->release_params[ISO_INDEX]); + + GP_DEBUG ("canon_int_get_release_params: focus mode = 0x%02x", + camera->pl->release_params[FOCUS_MODE_INDEX]); + + GP_DEBUG ("canon_int_get_release_params: beep mode = 0x%02x", + camera->pl->release_params[BEEP_INDEX]); + + GP_DEBUG ("canon_int_get_release_params: flash mode = 0x%02x", + camera->pl->release_params[FLASH_INDEX]); + + GP_DEBUG ("canon_int_get_release_params: exposurebias = 0x%02x", + camera->pl->release_params[EXPOSUREBIAS_INDEX]); + + GP_DEBUG ("canon_int_get_release_params: shooting mode = 0x%02x", + camera->pl->release_params[SHOOTING_MODE_INDEX]); + + + camera->pl->secondary_image = 0; + /* Based on the image format settings in the release params, + determine whether we expect one or two images to be returned + by the camera. + I am not sure if this will work correctly for non-EOS 5D + cameras - I would appreciate testing feedback from other + Canon camera users. To test try capturing an image + to the host computer in a single format (e.g., RAW or Large Fine + JPEG). Also try capturing an image when the camera is set to + a dual format, e.g., RAW + Large Fine JPEG. Note that currently, we + only save the primary image to disk. + Thanks - + */ + if (camera->pl->release_params[IMAGE_FORMAT_2_INDEX] & 0xf0) + camera->pl->secondary_image = 1; + + return GP_OK; +} + + +/** + * canon_int_set_shutter_speed + * @camera: camera to work with + * @shutter_speed: shutter speed - use one of the defines such as + * SHUTTER_SPEED_1_15 for 1/15th of a second, etc. + * @context: context for error reporting + * + * Sets the camera's shutter speed. Only tested for EOS 5D via USB. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_shutter_speed (Camera *camera, canonShutterSpeedState shutter_speed, + GPContext *context) +{ + int status; + + GP_DEBUG ("canon_int_set_shutter_speed() called for speed 0x%02x", + shutter_speed); + + /* Get the current camera settings */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + + /* Modify the shutter speed */ + + /* XXX must test for valid shutter speeds here */ + camera->pl->release_params[SHUTTERSPEED_INDEX] = shutter_speed; + + /* Upload the shutter speed to the camera */ + status = canon_int_set_release_params (camera, context); + + if (status < 0) + return status; + + /* Make sure the camera changed it! */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + if (camera->pl->release_params[SHUTTERSPEED_INDEX] != shutter_speed) { + GP_DEBUG ("canon_int_set_shutter_speed: Could not set shutter " + "speed to 0x%02x (camera returned 0x%02x)", + shutter_speed, + camera->pl->release_params[SHUTTERSPEED_INDEX]); + return GP_ERROR_NOT_SUPPORTED; + } else { + GP_DEBUG ("canon_int_set_shutter_speed: shutter speed change verified"); + } + + GP_DEBUG ("canon_int_set_shutter_speed() finished successfully"); + + return GP_OK; +} + + +/** + * canon_int_set_beep + * @camera: camera to work with + * @beep_mode: beep mode - use one of the defines such as + * BEEP_ON for turning on the beep when the camera sets the focus. + * @context: context for error reporting + * + * Sets the camera's beep mode. Only tested for A40 via USB. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_beep (Camera *camera, canonBeepMode beep_mode, + GPContext *context) +{ + int status; + + GP_DEBUG ("canon_int_set_beep() called for beep 0x%02x", + beep_mode); + + /* Get the current camera settings */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + /* Modify the beep mode */ + + /* XXX must test for valid shutter speeds here */ + camera->pl->release_params[BEEP_INDEX] = beep_mode; + + /* Upload the beep mode to the camera */ + status = canon_int_set_release_params (camera, context); + + if (status < 0) + return status; + + /* Make sure the camera changed it! */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + if (camera->pl->release_params[BEEP_INDEX] != beep_mode) { + GP_DEBUG ("canon_int_set_beep: Could not set beep " + "mode to 0x%02x (camera returned 0x%02x)", + beep_mode, + camera->pl->release_params[BEEP_INDEX]); + return GP_ERROR_NOT_SUPPORTED; + } else { + GP_DEBUG ("canon_int_set_beep: beep mode change verified"); + } + + GP_DEBUG ("canon_int_set_beep() finished successfully"); + + return GP_OK; +} + +/** + * canon_int_set_flash + * @camera: camera to work with + * @flash_mode: flash mode - use one of the defines such as + * FLASH_MODE_OFF for turning off the flash. + * @context: context for error reporting + * + * Sets the camera's flash mode. Only tested for A40 via USB. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_flash (Camera *camera, canonFlashMode flash_mode, + GPContext *context) +{ + int status; + + GP_DEBUG ("canon_int_set_flash() called for flash 0x%02x", + flash_mode); + + /* Get the current camera settings */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + /* Modify the beep mode */ + + /* XXX must test for valid flash mode here */ + camera->pl->release_params[FLASH_INDEX] = flash_mode; + + /* Upload the flash mode to the camera */ + status = canon_int_set_release_params (camera, context); + + if (status < 0) + return status; + + /* Make sure the camera changed it! */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + if (camera->pl->release_params[FLASH_INDEX] != flash_mode) { + GP_DEBUG ("canon_int_set_flash: Could not set flash " + "mode to 0x%02x (camera returned 0x%02x)", + flash_mode, + camera->pl->release_params[FLASH_INDEX]); + return GP_ERROR_NOT_SUPPORTED; + } else { + GP_DEBUG ("canon_int_set_flash: flash mode change verified"); + } + + GP_DEBUG ("canon_int_set_flash() finished successfully"); + + return GP_OK; +} + + +/** + * canon_int_set_zoom + * @camera: camera to work with + * @zoom_level: zoom level to set - A40: 1..10; G1: 0..40 (pMaxOpticalZoomPos*4) + * @context: context for error reporting + * + * Sets the camera's zoom. Only tested for A40 and G1 via USB. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_zoom (Camera *camera, unsigned char zoom_level, + GPContext *context) +{ + int status; + + GP_DEBUG ("canon_int_set_zoom() called for zoom 0x%02x", + zoom_level); + + status = canon_int_do_control_command( camera, CANON_USB_CONTROL_SET_ZOOM_POS, 0x04, zoom_level ); + + if (status < 0) + return status; + + GP_DEBUG ("canon_int_set_zoom() finished successfully"); + + return GP_OK; +} + + +/** + * canon_int_get_zoom + * @camera: camera to work with + * @zoom_level: pointer to hold returned zoom level - A40: 1..10; G1: 0..40 (pMaxOpticalZoomPos*4) + * @zoom_max: pointer to hold zoom upper bound + * @context: context for error reporting + * + * Gets the camera's zoom. + * Tested only for G1 and S45 via USB. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_get_zoom (Camera *camera, + unsigned char *zoom_level, + unsigned char *zoom_max, + GPContext *context) +{ + unsigned char *msg = NULL; + unsigned int datalen = 0; + unsigned char payload[0x4c]; + int payloadlen; + char desc[128]; + + *zoom_level = 0; + *zoom_max = 0; + GP_DEBUG ("canon_int_get_zoom() called"); + + payloadlen = canon_int_pack_control_subcmd( payload, + CANON_USB_CONTROL_GET_ZOOM_POS, + 0, 0, desc ); + + if ( camera->pl->md->model == CANON_CLASS_6 ) { + /* Newer protocol uses a different code, but with same + * response. It also needs an extra zero byte at the + * end. */ + payload[payloadlen++] = 0; + msg = canon_usb_dialogue ( camera, + CANON_USB_FUNCTION_CONTROL_CAMERA_2, + &datalen, payload, payloadlen ); + } + else + msg = canon_usb_dialogue ( camera, + CANON_USB_FUNCTION_CONTROL_CAMERA, + &datalen, payload, payloadlen ); + if ( msg == NULL || datalen < 15) { + /* ERROR */ + GP_DEBUG ("%s datalen=%x", + desc, datalen); + return GP_ERROR_CORRUPTED_DATA; + } + + *zoom_level = msg[12]; + *zoom_max = msg[14]; + + msg = NULL; + datalen = 0; + + GP_DEBUG ("canon_int_get_zoom() finished successfully level=%d", *zoom_level); + + return GP_OK; +} + + +/** + * canon_int_set_image_format + * @camera: camera to work with + * @res_byte1: byte 1 of the 3-byte image format code + * @res_byte2: byte 2 of the 3-byte image format code + * @res_byte3: byte 3 of the 3-byte image format code + * + * @context: context for error reporting + * + * Sets the camera's output image format. Only tested for EOS 5D via USB. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_image_format (Camera *camera, unsigned char res_byte1, + unsigned char res_byte2, unsigned char res_byte3, + GPContext *context) +{ + int status; + + GP_DEBUG ("canon_int_set_image_format() called"); + + /* Get the current camera settings */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + /* Modify the image format */ + + camera->pl->release_params[IMAGE_FORMAT_1_INDEX] = res_byte1; + camera->pl->release_params[IMAGE_FORMAT_2_INDEX] = res_byte2; + camera->pl->release_params[IMAGE_FORMAT_3_INDEX] = res_byte3; + + + /* Upload the image_format to the camera */ + status = canon_int_set_release_params (camera, context); + + if (status < 0) + return status; + + /* It seems to take the camera body a while to change this parameter + when all three res_bytes are changed at once. + So, give the camera a chance to catch up. + 3750 us was occasionally too short, but 5000 us seems to + work well. */ + usleep(5000); + + /* Make sure the camera changed it! */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + if (camera->pl->release_params[IMAGE_FORMAT_1_INDEX] != res_byte1 || + camera->pl->release_params[IMAGE_FORMAT_2_INDEX] != res_byte2 || + camera->pl->release_params[IMAGE_FORMAT_3_INDEX] != res_byte3) { + GP_DEBUG ("canon_int_set_image_format: Could not set image format " + "to 0x%02x 0x%02x 0x%02x (camera returned 0x%02x 0x%02x 0x%02x)", + res_byte1, res_byte2, res_byte3, + camera->pl->release_params[IMAGE_FORMAT_1_INDEX], + camera->pl->release_params[IMAGE_FORMAT_2_INDEX], + camera->pl->release_params[IMAGE_FORMAT_3_INDEX]); + return GP_ERROR_CORRUPTED_DATA; + } else { + GP_DEBUG ("canon_int_set_image_format: image_format change verified"); + } + + GP_DEBUG ("canon_int_set_image_format() finished successfully"); + + return GP_OK; +} + + +/** + * canon_int_set_iso + * @camera: camera to work with + * @iso: ISO - use one of the defines such as ISO_400, etc. + * @context: context for error reporting + * + * Sets the camera's ISO speed. Only tested for EOS 5D via USB. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_iso (Camera *camera, canonIsoState iso, + GPContext *context) +{ + int status; + + GP_DEBUG ("canon_int_set_iso() called for ISO 0x%02x", iso); + + /* Get the current camera settings */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + /* Modify the ISO */ + + camera->pl->release_params[ISO_INDEX] = iso; + + /* Upload the ISO to the camera */ + status = canon_int_set_release_params (camera, context); + + if (status < 0) + return status; + + /* Make sure the camera changed it! */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + if (camera->pl->release_params[ISO_INDEX] != iso) { + GP_DEBUG ("canon_int_set_iso: Could not set ISO " + "to 0x%02x (camera returned 0x%02x)", + iso, camera->pl->release_params[ISO_INDEX]); + return GP_ERROR_CORRUPTED_DATA; + } else { + GP_DEBUG ("canon_int_set_iso: ISO change verified"); + } + + GP_DEBUG ("canon_int_set_iso() finished successfully"); + + return GP_OK; +} + + +/** + * canon_int_set_shooting_mode + * @camera: camera to work with + * @shooting_mode: use the unsigned char 8bit value in the array + * @context: context for error reporting + * + * Sets the camera's shooting mode. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_shooting_mode (Camera *camera, unsigned char shooting_mode, + GPContext *context) +{ + int status; + + GP_DEBUG ("canon_int_set_shooting_mode() called for shooting_mode 0x%02x", shooting_mode); + /* Get the current camera settings */ + status = canon_int_get_release_params (camera, context); + if (status < 0) + return status; + /* Modify the shooting mode */ + camera->pl->release_params[SHOOTING_MODE_INDEX] = shooting_mode; + /* Upload the shooting mode to the camera */ + status = canon_int_set_release_params (camera, context); + if (status < 0) + return status; + /* Make sure the camera changed it! (not all are able to) */ + status = canon_int_get_release_params (camera, context); + if (status < 0) + return status; + if (camera->pl->release_params[SHOOTING_MODE_INDEX] != shooting_mode) { + GP_DEBUG ("canon_int_set_shooting_mode: Could not set shooting mode " + "to 0x%02x (camera returned 0x%02x)", + shooting_mode, + camera->pl->release_params[SHOOTING_MODE_INDEX]); + return GP_ERROR_CORRUPTED_DATA; + } else { + GP_DEBUG ("canon_int_set_shooting_mode: shooting_mode change verified"); + } + GP_DEBUG ("canon_int_set_shooting_mode() finished successfully"); + return GP_OK; +} + + +/** + * canon_int_set_aperture + * @camera: camera to work with + * @aperture: use one of the defines such as APERTURE_F5_6, etc. + * @context: context for error reporting + * + * Sets the camera's aperture. Only tested for EOS 5D via USB. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_aperture (Camera *camera, canonApertureState aperture, + GPContext *context) +{ + int status; + + GP_DEBUG ("canon_int_set_aperture() called for aperture 0x%02x", + aperture); + + /* Get the current camera settings */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + /* Modify the aperture */ + + camera->pl->release_params[APERTURE_INDEX] = aperture; + + /* Upload the aperture to the camera */ + status = canon_int_set_release_params (camera, context); + + if (status < 0) + return status; + + /* Make sure the camera changed it! */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + if (camera->pl->release_params[APERTURE_INDEX] != aperture) { + GP_DEBUG ("canon_int_set_aperture: Could not set aperture " + "to 0x%02x (camera returned 0x%02x)", + aperture, + camera->pl->release_params[APERTURE_INDEX]); + return GP_ERROR_CORRUPTED_DATA; + } else { + GP_DEBUG ("canon_int_set_aperture: aperture change verified"); + } + + GP_DEBUG ("canon_int_set_aperture() finished successfully"); + + return GP_OK; +} + + +/** + * canon_int_set_exposurebias + * @camera: camera to work with + * @aperture: use the unsigned char 8bit value in the array + * @context: context for error reporting + * + * Sets the camera's exposure bias. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_exposurebias (Camera *camera, unsigned char expbias, + GPContext *context) +{ + int status; + + GP_DEBUG ("canon_int_set_exposurebias() called for aperture 0x%02x", expbias); + /* Get the current camera settings */ + status = canon_int_get_release_params (camera, context); + if (status < 0) + return status; + /* Modify the aperture */ + camera->pl->release_params[EXPOSUREBIAS_INDEX] = expbias; + /* Upload the aperture to the camera */ + status = canon_int_set_release_params (camera, context); + if (status < 0) + return status; + /* Make sure the camera changed it! */ + status = canon_int_get_release_params (camera, context); + if (status < 0) + return status; + if (camera->pl->release_params[EXPOSUREBIAS_INDEX] != expbias) { + GP_DEBUG ("canon_int_set_exposurebias: Could not set exposure bias " + "to 0x%02x (camera returned 0x%02x)", + expbias, + camera->pl->release_params[EXPOSUREBIAS_INDEX]); + return GP_ERROR_CORRUPTED_DATA; + } else { + GP_DEBUG ("canon_int_set_exposurebias: expbias change verified"); + } + GP_DEBUG ("canon_int_set_exposurebias() finished successfully"); + return GP_OK; +} + + +/** + * canon_int_set_focus_mode + * @camera: camera to work with + * @focus_mode: use one of the defines such as AUTO_FOCUS_AI_SERVO, etc. + * @context: context for error reporting + * + * Sets the camera's focus mode. Note that the selection of focus modes is + * limited by the AF/MF switch on the lens body. In particular, this function + * is only useful for switching between the various autofocus modes while the + * lens focus switch is set to 'AF'. Only tested for EOS 5D via USB. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_focus_mode (Camera *camera, canonFocusModeState focus_mode, + GPContext *context) +{ + int status; + + GP_DEBUG ("canon_int_set_focus_mode() called for focus mode 0x%02x", + focus_mode); + + /* Get the current camera settings */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + + /* Modify the focus mode */ + + camera->pl->release_params[FOCUS_MODE_INDEX] = focus_mode; + + /* Upload the focus mode to the camera */ + status = canon_int_set_release_params (camera, context); + + if (status < 0) + return status; + + /* Make sure the camera changed it! */ + + status = canon_int_get_release_params (camera, context); + + if (status < 0) + return status; + + if (camera->pl->release_params[FOCUS_MODE_INDEX] != focus_mode) { + GP_DEBUG ("canon_int_set_focus_mode: Could not set focus_mode " + "to 0x%02x (camera returned 0x%02x)", + focus_mode, + camera->pl->release_params[FOCUS_MODE_INDEX]); + return GP_ERROR_CORRUPTED_DATA; + } else { + GP_DEBUG ("canon_int_set_focus_mode: focus_mode change verified"); + } + + GP_DEBUG ("canon_int_set_focus_mode() finished successfully"); + + return GP_OK; +} + +/** + * canon_int_set_release_params + * @camera: camera to work with + * @context: context for error reporting + * + * Sets the camera's release params -- e.g., shutter speed, + * aperture, ISO -- based on the current in-memory state for these params. + * + * Returns: gphoto2 error code + * + */ +static int +canon_int_set_release_params (Camera *camera, GPContext *context) +{ + unsigned char payload[0x4c]; + unsigned char *msg = NULL, *trash_handle; + unsigned int len, payloadlen, trash_int; + int status; + + GP_DEBUG ("canon_int_set_release_params() called"); + + if (!camera->pl->remote_control) { + GP_DEBUG ("canon_int_set_release_params: Camera not under USB control"); + return GP_ERROR; + } + + memset(payload, 0, sizeof(payload)); + + switch (camera->port->type) { + case GP_PORT_USB: + /* This is what we need for Canon class 6 cameras - + not sure what it is for previous protocols */ + payload[0x0] = CANON_USB_CONTROL_SET_ZOOM_POS; + payload[0x4] = 0x30; + + /* Copy the release parameter block from the camera state + * structure into the payload. The 0x08 is the byte offset + * into the payload where the release parameters start. + */ + memcpy(payload + 0x08, camera->pl->release_params, + sizeof(camera->pl->release_params)); + + payloadlen = RELEASE_PARAMS_LEN + 0x08; + + status = canon_int_do_control_dialogue_payload (camera, payload, payloadlen, &msg, &len); + + if ( msg == NULL ) + return GP_ERROR_CORRUPTED_DATA; + + /* Send the camera a get_release_params, then + * send the set_release_params op again. + * Apparently, there are some parameters which require + * two "sets" to take effect on the Canon EOS 5D. + */ + + status = canon_int_do_control_dialogue (camera, + CANON_USB_CONTROL_GET_PARAMS, + 0x00, 0, &trash_handle, &trash_int); + + + if ( status < 0 ) + return GP_ERROR; + + + status = canon_int_do_control_dialogue_payload (camera, payload, payloadlen, &msg, &len); + + if ( msg == NULL ) + return GP_ERROR_CORRUPTED_DATA; + + break; + case GP_PORT_SERIAL: + return GP_ERROR_NOT_SUPPORTED; + break; + GP_PORT_DEFAULT + } + + if (len != 92) { + GP_DEBUG ("canon_int_set_release_params: Unexpected length returned " + "(expected %i got %i)", 92, len); + return GP_ERROR_CORRUPTED_DATA; + } + + GP_DEBUG ("canon_int_set_release_params finished successfully"); + + return GP_OK; + +} + +/** + * canon_int_set_owner_name: + * @camera: the camera to set the owner name of + * @name: owner name to set the camera to + * @context: context for error reporting + * + * Sets the camera owner name. The string should not be more than 30 + * characters long. We call #get_owner_name afterwards in order to + * check that everything went fine. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_set_owner_name (Camera *camera, const char *name, GPContext *context) +{ + unsigned char *msg; + unsigned int len; + + GP_DEBUG ("canon_int_set_owner_name() called, name = '%s'", name); + if (strlen (name) > 30) { + gp_context_error (context, + _("Name '%s' (%li characters) " + "too long, maximum 30 characters are " + "allowed."), name, (long)strlen (name)); + return GP_ERROR_BAD_PARAMETERS; + } + + switch (camera->port->type) { + case GP_PORT_USB: + if ( camera->pl->md->model == CANON_CLASS_6 ) { + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_CAMERA_CHOWN_2, + &len, (unsigned char *)name, strlen (name) + 1); + } + else + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_CAMERA_CHOWN, + &len, (unsigned char *)name, strlen (name) + 1); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, 0x05, 0x12, &len, name, + strlen (name) + 1, NULL); + if ( msg == NULL ) { + canon_serial_error_type (camera); + return GP_ERROR_OS_FAILURE; + } + break; + GP_PORT_DEFAULT + } + + if (len != 0x04) { + GP_DEBUG ("canon_int_set_owner_name: Unexpected length returned " + "(expected %i got %i)", 0x4, len); + return GP_ERROR_CORRUPTED_DATA; + } + + return canon_int_identify_camera (camera, context); +} + + +/** + * canon_int_get_time: + * @camera: camera to get the current time of + * @camera_time: pointer to where you want the camera time (NOT IN UTC!!!) + * @context: context for error reporting + * + * Get camera's current time. + * + * The camera gives time in little endian format, therefore we need + * to swap the 4 bytes on big-endian machines. + * + * Note: the time returned from the camera is not UTC but local time. + * This means you should only use functions that don't adjust the + * timezone, like gmtime(), instead of functions that do, like localtime() + * since otherwise you will end up with the wrong time. + * + * We pass it along to calling functions in local time instead of UTC + * since it is more correct to say 'Camera time: 2002-01-01 00:00:00' + * if that is what the display says and not to display the cameras time + * converted to local timezone (which will of course be wrong if you + * are not in the timezone the cameras clock was set in). + * + * Returns: gphoto2 error code + * + */ +int +canon_int_get_time (Camera *camera, time_t *camera_time, GPContext *context) +{ + unsigned char *msg; + unsigned int len; + + GP_DEBUG ("canon_int_get_time()"); + + switch (camera->port->type) { + case GP_PORT_USB: + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_GET_TIME, &len, + NULL, 0); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, 0x03, 0x12, &len, NULL); + if ( msg == NULL ) { + canon_serial_error_type (camera); + return GP_ERROR_OS_FAILURE; + } + break; + GP_PORT_DEFAULT + } + + if (len != 0x10) { + GP_DEBUG ("canon_int_get_time: Unexpected length returned " + "(expected %i got %i)", 0x10, len); + return GP_ERROR_CORRUPTED_DATA; + } + + if (camera_time != NULL) { + *camera_time = (time_t) le32atoh (msg + 4); + /* XXX should strip \n at the end of asctime() return data */ + GP_DEBUG ("Camera time: %s", asctime (gmtime (camera_time))); + } + + return GP_OK; +} + + +/** + * canon_int_set_time: + * @camera: camera to get the current time of + * @date: the date to set (in UTC) + * @context: context for error reporting + * + * Set camera's current time. + * + * Canon cameras know nothing about time zones so we have to convert it to local + * time (but still expressed in UNIX time format (seconds since 1970-01-01). + * + * Returns: gphoto2 error code + * + */ + +int +canon_int_set_time (Camera *camera, time_t date, GPContext *context) +{ + unsigned char *msg; + unsigned int len; + unsigned char payload[12]; + time_t new_date; + struct tm *tm; + + GP_DEBUG ("canon_int_set_time: %i=0x%x %s", (unsigned int) date, (unsigned int) date, + asctime (localtime (&date))); + + /* call localtime() just to get 'extern long timezone' / tm->tm_gmtoff set. + * + * this handles DST too (at least if HAVE_TM_GMTOFF), if you are in UTC+1 + * tm_gmtoff is 3600 and if you are in UTC+1+DST tm_gmtoff is 7200 (if your + * DST is one hour of course). + */ + tm = localtime (&date); + + /* convert to local UNIX time since canon cameras know nothing about timezones */ + +#ifdef HAVE_TM_GMTOFF + new_date = date + tm->tm_gmtoff; + GP_DEBUG ("canon_int_set_time: converted %ld to localtime %ld (tm_gmtoff is %ld)", + (long)date, (long)new_date, (long)tm->tm_gmtoff); +#else + new_date = date - timezone; + GP_DEBUG ("canon_int_set_time: converted %ld to localtime %ld (timezone is %ld)", + (long)date, (long)new_date, (long)timezone); +#endif + + memset (payload, 0, sizeof (payload)); + + htole32a (payload, (unsigned int) new_date); + + switch (camera->port->type) { + case GP_PORT_USB: + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_SET_TIME, &len, + payload, sizeof (payload)); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, 0x04, 0x12, &len, + payload, sizeof (payload), NULL); + if ( msg == NULL ) { + canon_serial_error_type (camera); + return GP_ERROR_OS_FAILURE; + } + + break; + GP_PORT_DEFAULT + } + + if (len != 0x4) { + GP_DEBUG ("canon_int_set_time: Unexpected length returned " + "(expected %i got %i)", 0x4, len); + return GP_ERROR_CORRUPTED_DATA; + } + + return GP_OK; +} + +/** + * canon_int_ready: + * @camera: camera to get ready + * @context: context for error reporting + * + * Switches the camera on, detects the model and sets its speed. + * + * Returns: gphoto2 error code + * + */ +int +canon_int_ready (Camera *camera, GPContext *context) +{ + int res; + + GP_DEBUG ("canon_int_ready()"); + + switch (camera->port->type) { + case GP_PORT_USB: + res = canon_usb_ready (camera, context); + break; + case GP_PORT_SERIAL: + res = canon_serial_ready (camera, context); + break; + GP_PORT_DEFAULT + } + + return (res); +} + +/** + * canon_int_get_disk_name: + * @camera: camera to ask for disk drive + * @context: context for error reporting + * + * Ask the camera for the name of the flash storage + * device. Usually "D:" or something like that. + * + * Returns: name of disk + * + */ +char * +canon_int_get_disk_name (Camera *camera, GPContext *context) +{ + unsigned char *msg; + unsigned int len; + int res; + + GP_DEBUG ("canon_int_get_disk_name()"); + + switch (camera->port->type) { + case GP_PORT_USB: + if ( camera->pl->md->model == CANON_CLASS_6 ) + /* Newer protocol uses a different code, but with same response. */ + res = canon_usb_long_dialogue (camera, + CANON_USB_FUNCTION_FLASH_DEVICE_IDENT_2, + &msg, &len, 1024, NULL, 0, 0, context); + else + res = canon_usb_long_dialogue (camera, + CANON_USB_FUNCTION_FLASH_DEVICE_IDENT, + &msg, &len, 1024, NULL, 0, 0, context); + if (res != GP_OK) { + GP_DEBUG ("canon_int_get_disk_name: canon_usb_long_dialogue " + "failed! returned %i", res); + return NULL; + } + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, 0x0a, 0x11, &len, NULL); + if ( msg == NULL ) { + canon_serial_error_type (camera); + return NULL; + } + + if (len < 5) + return NULL; /* should be GP_ERROR_CORRUPTED_DATA */ + + /* this is correct even though it looks a bit funny. canon_serial_dialogue() + * has a static buffer, strdup() part of that buffer and return to our caller. + */ + msg = (unsigned char *)strdup ((char *)msg + 4); /* @@@ should check length */ + if ( msg == NULL ) { + GP_DEBUG ("canon_int_get_disk_name: could not allocate " + "memory to hold response"); + return NULL; + } + break; + GP_PORT_DEFAULT_RETURN (NULL) + } + + if ( msg == NULL ) + return NULL; + + GP_DEBUG ("canon_int_get_disk_name: disk '%s'", msg); + + return (char *)msg; +} + +/** + * canon_int_get_disk_name_info: + * @camera: camera to ask about disk + * @name: name of the disk + * @capacity: returned maximum disk capacity + * @available: returned currently available disk capacity + * @context: context for error reporting + * + * Gets available room and max capacity of a disk given by @name. + * + * Returns: boolean value denoting success (FIXME: ATTENTION!) + * + */ +int +canon_int_get_disk_name_info (Camera *camera, const char *name, int *capacity, int *available, + GPContext *context) +{ + unsigned char *msg = NULL; + char name_local[128]; + unsigned int len; /* is set in both USB and SERIAL cases */ + int cap=0, ava=0; /* only set in USB case */ + + GP_DEBUG ("canon_int_get_disk_name_info() name '%s'", name); + + CON_CHECK_PARAM_NULL (name); + CON_CHECK_PARAM_NULL (capacity); + CON_CHECK_PARAM_NULL (available); + + switch (camera->port->type) { + case GP_PORT_USB: + if ( camera->pl->md->model == CANON_CLASS_6 ) { + /* Newer protocol uses a different code, but with same response. */ + strncpy ( name_local, name, sizeof(name_local) ); + len = strlen(name_local); + if ( name_local[len-1] == '\\' ) + name_local[len-1] = 0; + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_DISK_INFO_2, &len, + (unsigned char *)name_local, len ); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + /* These newer cameras report sizes in + * K instead of bytes, so max capacity + * is 4TB rather than 4GB. */ + cap = le32atoh (msg + 4); + ava = le32atoh (msg + 8); + } + else { + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_DISK_INFO, &len, + (unsigned char *)name, strlen (name) + 1); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + cap = le32atoh (msg + 4) / 1024; + ava = le32atoh (msg + 8) / 1024; + } + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, 0x09, 0x11, &len, name, + strlen (name) + 1, NULL); + if ( msg == NULL ) { + canon_serial_error_type (camera); + return GP_ERROR_OS_FAILURE; + } + break; + GP_PORT_DEFAULT + } + + if (len < 0x0c) { + GP_DEBUG ("canon_int_get_disk_name_info: " + "Unexpected length returned " + "(expected %i got %i)", 0x0c, len); + return GP_ERROR_CORRUPTED_DATA; + } + + /* Capacity and available are not NULL as verified above. + * But cap and ava are only set for the USB case, so we have to check for that. + * If you know the logic better, feel free to improve it. */ + switch (camera->port->type) { + case GP_PORT_USB: + *capacity = cap; + *available = ava; + GP_DEBUG ("canon_int_get_disk_name_info: " + "capacity %i kb, available %i kb", + cap > 0 ? cap : 0, + ava > 0 ? ava : 0); + break; + GP_PORT_DEFAULT + } + + return GP_OK; +} + + +/** + * gphoto2canonpath: + * @camera: camera to use + * @path: gphoto2 path + * @context: context for error reporting + * + * convert gphoto2 path (e.g. "/dcim/116CANON/img_1240.jpg") + * into canon style path (e.g. "D:\DCIM\116CANON\IMG_1240.JPG") + * + * Canon cameras use FAT with upper case internally, so we convert + * into that. + * + * Returns: immutable string with converted path name + * + */ +const char * +gphoto2canonpath (Camera *camera, const char *path, GPContext *context) +{ + static char tmp[2000]; + char *p; + + if (path[0] != '/') { + GP_DEBUG ("Non-absolute gphoto2 path cannot be converted"); + return NULL; + } + + if (camera->pl->cached_drive == NULL) { + GP_DEBUG ("NULL camera->pl->cached_drive in gphoto2canonpath"); + camera->pl->cached_drive = canon_int_get_disk_name (camera, context); + if (camera->pl->cached_drive == NULL) { + GP_DEBUG ("2nd NULL camera->pl->cached_drive in gphoto2canonpath"); + return NULL; + } + } + + snprintf (tmp, sizeof (tmp), "%s%s", camera->pl->cached_drive, path); + + /* Convert to upper case, since FAT file system on camera + doesn't do case, and replace all slashes by backslashes */ + for (p = tmp; *p != '\0'; p++) { + if ( *p != (char)toupper ( *p ) ) + /* We don't allow lower-case in path names. */ + gp_context_error (context, _("Lower case letters in %s not allowed."), + path ); + if (*p == '/') + *p = '\\'; + *p = (char) toupper(*p); + } + + /* remove trailing backslash, making sure buffer ends with \0 */ + if ((p > tmp) && (*(p - 1) == '\\')) + *(p - 1) = '\0'; + + gp_log (GP_LOG_DATA, "canon/canon.c", + "gphoto2canonpath: converted '%s' to '%s'", path, tmp); + + return (tmp); +} + +/** + * canon2gphotopath: + * @camera: camera to use + * @path: canon style path + * + * convert canon style path (e.g. "D:\DCIM\116CANON\IMG_1240.JPG") + * into gphoto2 path (e.g. "/DCIM/116CANON/IMG_1240.JPG") + * + * Assumes @path to start with drive name followed by a colon. + * It just drops the drive name. + * + * Returns: immutable string with gphoto2 path + * + */ +static const char * +canon2gphotopath (Camera __unused__ *camera, const char *path) +{ + static char tmp[2000]; + char *p; + + if (!((path[1] == ':') && (path[2] == '\\'))) { + GP_DEBUG ("canon2gphotopath called on invalid canon path '%s'", path); + return NULL; + } + + /* 3 is D: plus NULL byte */ + if (strlen (path) - 3 > sizeof (tmp)) { + GP_DEBUG ("canon2gphotopath called on too long canon path (%li bytes): %s", + (long)(strlen (path)), path); + return NULL; + } + + /* path is something like D:\FOO, we want what is after the colon */ + strcpy (tmp, path + 2); + + /* replace backslashes by slashes */ + for (p = tmp; *p != '\0'; p++) { + if (*p == '\\') + *p = '/'; + } + + gp_log (GP_LOG_DATA, "canon/canon.c", + "canon2gphotopath: converted '%s' to '%s'", path, tmp); + + return (tmp); +} + +/** + * debug_fileinfo: + * @info: information block + * + * Writes file info to debug log. Usable only from within "canon.c". + * + */ +static void +debug_fileinfo (CameraFileInfo * info) +{ + GP_DEBUG (""); + GP_DEBUG (" "); + if ((info->file.fields & GP_FILE_INFO_TYPE) != 0) + GP_DEBUG (" Type: %s", info->file.type); + if ((info->file.fields & GP_FILE_INFO_SIZE) != 0) + GP_DEBUG (" Size: %i", (int)info->file.size); + if ((info->file.fields & GP_FILE_INFO_WIDTH) != 0) + GP_DEBUG (" Width: %i", info->file.width); + if ((info->file.fields & GP_FILE_INFO_HEIGHT) != 0) + GP_DEBUG (" Height: %i", info->file.height); + if ((info->file.fields & GP_FILE_INFO_PERMISSIONS) != 0) + GP_DEBUG (" Perms: 0x%x", info->file.permissions); + if ((info->file.fields & GP_FILE_INFO_STATUS) != 0) + GP_DEBUG (" Status: %i", info->file.status); + if ((info->file.fields & GP_FILE_INFO_MTIME) != 0) { + char *p, *time = asctime (gmtime (&info->file.mtime)); + + /* remove trailing \n */ + for (p = time; *p != 0; ++p) + /* do nothing */ ; + *(p - 1) = '\0'; + GP_DEBUG (" Time: %s (%ld)", time, (long)info->file.mtime); + } + GP_DEBUG (" "); + GP_DEBUG (""); +} + +/** + * canon_int_list_directory: + * @camera: Camera to access + * @folder: Folder on the camera to list + * @list: Returns list of folders in this directory + * @flags: #canonDirlistFunctionBits specifying to list files, folders, or both + * @context: context for error reporting + * + * Gets the directory tree of a given flash device, unsorted and with + * a few missing features (such as correct sorting of files and + * correctly associating files with each other). + * + * Implicitly assumes that uint8_t[] is a char[] for strings. + * + * A few notes about listing files and camera->pl->list_all_files: + * + * If camera->pl->list_all_files is false (intended default), then + * we list only "primary files" or ("main" files). Those are files + * like image files or movie files which the user explicitly created + * on the camera. "Secondary files" such as .thm files which contain + * the thumbnail of a movie are not listed here - you can get them using + * the --get-thumbnail command in gphoto2 or the analog command of your + * frontend. Same story with ,wav files containing audio annotations + * to primary files. + * + * If camera->pl->list_all_files is true (can be changed via the + * configuration interface), then we list _all_ files. This means + * that we just use the camera like a CF/SD card reader. Use this mode + * to read/write your .pdf files, .tgz backup tarballs, or whatever. + * Of course, all the "internal" files the camera puts on the storage + * medium will be listed in this mode as well. + * + * Returns: a gphoto2 status code. + * @list will contain a list of folders (directories) contained in this folder. + * Files will be added to the internal gphoto2 file system only if + * they are image or movie files. + * + */ +int +canon_int_list_directory (Camera *camera, const char *folder, CameraList *list, + const canonDirlistFunctionBits flags, GPContext *context) +{ + CameraFileInfo info; + int res; + unsigned int dirents_length; + unsigned char *dirent_data = NULL; + unsigned char *end_of_data, *temp_ch, *pos; + const char *canonfolder = gphoto2canonpath (camera, folder, context); + int list_files = ((flags & CANON_LIST_FILES) != 0); + int list_folders = ((flags & CANON_LIST_FOLDERS) != 0); + + GP_DEBUG ("BEGIN canon_int_list_directory() folder '%s' aka '%s' (%s, %s)", folder, + canonfolder, list_files ? "files" : "no files", + list_folders ? "folders" : "no folders"); + + if ( canonfolder == NULL ) { + GP_DEBUG ( "Error: canon_int_list_directory called with null name for camera folder" ); + return GP_ERROR; + } + + /* Fetch all directory entries from the camera */ + switch (camera->port->type) { + case GP_PORT_USB: + res = canon_usb_get_dirents (camera, &dirent_data, &dirents_length, + canonfolder, context); + break; + case GP_PORT_SERIAL: + res = canon_serial_get_dirents (camera, &dirent_data, &dirents_length, + canonfolder, context); + break; + GP_PORT_DEFAULT + } + if (res != GP_OK) + return res; + + end_of_data = dirent_data + dirents_length; + + if (dirents_length < CANON_MINIMUM_DIRENT_SIZE) { + gp_context_error (context, + _("canon_int_list_directory: ERROR: " + "initial message too short (%i < minimum %i)"), + dirents_length, CANON_MINIMUM_DIRENT_SIZE); + free (dirent_data); + dirent_data = NULL; + return GP_ERROR_CORRUPTED_DATA; + } + + /* The first data we have got here is the dirent for the + * directory we are reading. Skip over 10 bytes + * (2 for attributes, 4 date and 4 size) and then go find + * the end of the directory name so that we get to the next + * dirent which is actually the first one we are interested + * in + */ + GP_DEBUG ("canon_int_list_directory: Camera directory listing for directory '%s'", + dirent_data + CANON_DIRENT_NAME); + + for (pos = dirent_data + CANON_DIRENT_NAME; pos < end_of_data && *pos != 0; pos++) + /* do nothing */ ; + if (pos == end_of_data || *pos != 0) { + gp_context_error (context, + _("canon_int_list_directory: Reached end of packet while " + "examining the first dirent")); + free (dirent_data); + dirent_data = NULL; + return GP_ERROR_CORRUPTED_DATA; + } + pos++; /* skip NULL byte terminating directory name */ + + /* we are now positioned at the first interesting dirent */ + + /* This is the main loop, for every directory entry returned */ + while (pos < end_of_data) { + int is_dir, is_file; + uint16_t dirent_attrs; /* attributes of dirent */ + uint32_t dirent_file_size; /* size of dirent in octets */ + uint32_t dirent_time; /* time stamp of dirent (Unix Epoch) */ + uint8_t *dirent_name; /* name of dirent */ + size_t dirent_name_len; /* length of dirent_name */ + size_t dirent_ent_size; /* size of dirent in octets */ + uint32_t tmp_time; + time_t date; + struct tm *tm; + + dirent_attrs = le16atoh (pos + CANON_DIRENT_ATTRS); + dirent_file_size = le32atoh (pos + CANON_DIRENT_SIZE); + dirent_name = pos + CANON_DIRENT_NAME; + + /* see canon_int_set_time() for timezone handling */ + tmp_time = le32atoh (pos + CANON_DIRENT_TIME); + if (tmp_time != 0) { + /* FIXME: I just want the tm_gmtoff/timezone info */ + date = time(NULL); + tm = localtime (&date); +#ifdef HAVE_TM_GMTOFF + dirent_time = tmp_time - tm->tm_gmtoff; + GP_DEBUG ("canon_int_list_directory: converted %ld to UTC %ld (tm_gmtoff is %ld)", + (long)tmp_time, (long)dirent_time, (long)tm->tm_gmtoff); +#else + dirent_time = tmp_time + timezone; + GP_DEBUG ("canon_int_list_directory: converted %ld to UTC %ld (timezone is %ld)", + (long)tmp_time, (long)dirent_time, (long)timezone); +#endif + } else { + dirent_time = tmp_time; + } + + is_dir = ((dirent_attrs & CANON_ATTR_NON_RECURS_ENT_DIR) != 0) + || ((dirent_attrs & CANON_ATTR_RECURS_ENT_DIR) != 0); + is_file = !is_dir; + + gp_log (GP_LOG_DATA, "canon/canon.c", + "canon_int_list_directory: " + "reading dirent at position %li of %li (0x%lx of 0x%lx)", + (long)(pos - dirent_data), (long)(end_of_data - dirent_data), + (long)(pos - dirent_data), (long)(end_of_data - dirent_data) ); + + if (pos + CANON_MINIMUM_DIRENT_SIZE > end_of_data) { + if (camera->port->type == GP_PORT_SERIAL) { + /* check to see if it is only NULL bytes left, + * that is not an error for serial cameras + * (at least the A50 adds five zero bytes at the end) + */ + for (temp_ch = pos; (temp_ch < end_of_data) && (!*temp_ch); temp_ch++) ; /* do nothing */ + + if (temp_ch == end_of_data) { + GP_DEBUG ("canon_int_list_directory: " + "the last %li bytes were all 0 - ignoring.", + (long)(temp_ch - pos)); + break; + } else { + GP_DEBUG ("canon_int_list_directory: " + "byte[%li=0x%lx] == %i=0x%x", (long)(temp_ch - pos), + (long)(temp_ch - pos), *temp_ch, *temp_ch); + GP_DEBUG ("canon_int_list_directory: " + "pos is %p, end_of_data is %p, temp_ch is %p - diff is 0x%lx", + pos, end_of_data, temp_ch, (long)(temp_ch - pos)); + } + } + GP_DEBUG ("canon_int_list_directory: " + "dirent at position %li=0x%lx of %li=0x%lx is too small, " + "minimum dirent is %i bytes", + (long)(pos - dirent_data), (long)(pos - dirent_data), + (long)(end_of_data - dirent_data), (long)(end_of_data - dirent_data), + CANON_MINIMUM_DIRENT_SIZE); + gp_context_error (context, + _("canon_int_list_directory: " + "truncated directory entry encountered")); + free (dirent_data); + dirent_data = NULL; + return GP_ERROR_CORRUPTED_DATA; + } + + /* Check end of this dirent, 10 is to skip over + * 2 attributes + 0x00 + * 4 file size + * 4 file date (UNIX localtime) + * to where the direntry name begins. + */ + for (temp_ch = dirent_name; temp_ch < end_of_data && *temp_ch != 0; + temp_ch++) ; + + if (temp_ch == end_of_data || *temp_ch != 0) { + GP_DEBUG ("canon_int_list_directory: " + "dirent at position %li of %li has invalid name in it." + "bailing out with what we've got.", + (long)(pos - dirent_data), + (long)(end_of_data - dirent_data)); + break; + } + dirent_name_len = strlen ((char *)dirent_name); + dirent_ent_size = CANON_MINIMUM_DIRENT_SIZE + dirent_name_len; + + /* check that length of name in this dirent is not of unreasonable size. + * 256 was picked out of the blue + */ + if (dirent_name_len > 256) { + GP_DEBUG ("canon_int_list_directory: " + "the name in dirent at position %li of %li is too long. (%li bytes)." + "bailing out with what we've got.", + (long)(pos - dirent_data), (long)(end_of_data - dirent_data), + (long)dirent_name_len); + break; + } + + /* 10 bytes of attributes, size and date, a name and a NULL terminating byte */ + GP_LOG_DATA ((char *)pos, dirent_ent_size, + "canon_int_list_directory: dirent determined to be %li=0x%lx bytes :", + (long)dirent_ent_size, (long)dirent_ent_size); + if (dirent_name_len) { + /* OK, this directory entry has a name in it. */ + + if ((list_folders && is_dir) || (list_files && is_file)) { + const char *filename = (char *)dirent_name; + + /* we're going to fill out the info structure + in this block */ + memset (&info, 0, sizeof (info)); + + /* we start with nothing and continously add stuff */ + info.file.fields = GP_FILE_INFO_NONE; + + info.file.mtime = dirent_time; + if (info.file.mtime != 0) + info.file.fields |= GP_FILE_INFO_MTIME; + + if (is_file) { + /* determine file type based on file name + * this stuff only makes sense for files, not for folders + */ + + strncpy (info.file.type, + filename2mimetype (filename), + sizeof (info.file.type)); + info.file.fields |= GP_FILE_INFO_TYPE; + + if (dirent_attrs & CANON_ATTR_NOT_DOWNLOADED) + info.file.status = GP_FILE_STATUS_NOT_DOWNLOADED; + else + info.file.status = GP_FILE_STATUS_DOWNLOADED; + info.file.fields |= GP_FILE_INFO_STATUS; + + /* the size is located at offset 2 and is 4 + * bytes long, re-order little/big endian */ + info.file.size = dirent_file_size; + info.file.fields |= GP_FILE_INFO_SIZE; + + /* file access modes */ + if ((dirent_attrs & CANON_ATTR_WRITE_PROTECTED) == 0) + info.file.permissions = + GP_FILE_PERM_READ | + GP_FILE_PERM_DELETE; + else + info.file.permissions = GP_FILE_PERM_READ; + info.file.fields |= GP_FILE_INFO_PERMISSIONS; + } + + /* print dirent as text */ + GP_DEBUG ("Raw info: name=%s is_dir=%i, is_file=%i, attrs=0x%x", + dirent_name, is_dir, is_file, dirent_attrs); + debug_fileinfo (&info); + + if (is_file) { + /* + * Append directly to the filesystem instead of to the list, + * because we have additional information. + */ + if (!camera->pl->list_all_files + && !is_image (filename) + && !is_movie (filename) + && !is_audio (filename)) { + /* FIXME: Find associated main file and add it there */ + /* do nothing */ + GP_DEBUG ("Ignored %s/%s", folder, + filename); + } else { + const char *thumbname; + + res = gp_filesystem_append (camera->fs, folder, + filename, context); + if (res != GP_OK) { + GP_DEBUG ("Could not gp_filesystem_append " + "%s in folder %s: %s", + filename, folder, gp_result_as_string (res)); + } else { + GP_DEBUG ("Added file %s/%s", folder, + filename); + + thumbname = + canon_int_filename2thumbname (camera, + filename); + if (thumbname == NULL) { + /* no thumbnail */ + } else { + if ( is_cr2 ( filename ) ) { + /* We get the first part of the raw file as the thumbnail; + this is (almost) a valid EXIF file. */ + info.preview.fields = + GP_FILE_INFO_TYPE; + strncpy (info.preview.type, + GP_MIME_EXIF, + sizeof (info.preview.type)); + } + else { + /* Older Canon cams have JPEG thumbs */ + info.preview.fields = + GP_FILE_INFO_TYPE; + strncpy (info.preview.type, + GP_MIME_JPEG, + sizeof (info.preview.type)); + } + } + + res = gp_filesystem_set_info_noop (camera->fs, + folder, filename, info, + context); + if (res != GP_OK) { + GP_DEBUG ("Could not gp_filesystem_set_info_noop() " + "%s in folder %s: %s", + filename, folder, gp_result_as_string (res)); + } + } + GP_DEBUG ( "file \"%s\" has preview of MIME type \"%s\"", + filename, info.preview.type ); + } + } + /* Some cameras have ".." explicitly + * at the end of each directory. We + * will silently omit this from the + * directory returned. */ + if ( is_dir && strcmp ( "..", filename ) ) { + res = gp_list_append (list, filename, NULL); + if (res != GP_OK) + GP_DEBUG ("Could not gp_list_append " + "folder %s: %s", + folder, gp_result_as_string (res)); + } + } else { + /* this case could mean that this was the last dirent */ + GP_DEBUG ("canon_int_list_directory: " + "dirent at position %li of %li has NULL name, skipping.", + (long)(pos - dirent_data), (long)(end_of_data - dirent_data)); + } + } + + /* make 'pos' point to next dirent in packet. + * first we skip 10 bytes of attribute, size and date, + * then we skip the name plus 1 for the NULL + * termination bytes. + */ + pos += dirent_ent_size; + } + free (dirent_data); + dirent_data = NULL; + + GP_DEBUG (""); + gp_filesystem_dump (camera->fs); + GP_DEBUG (""); + + GP_DEBUG ("END canon_int_list_dir() folder '%s' aka '%s'", folder, canonfolder); + + return GP_OK; +} + +/** + * canon_int_get_file: + * @camera: + * @name: name of file to fetch + * @data: to receive file data + * @length: length of @data + * @context: context for error reporting + * + * Gets the directory tree of a given flash device. + * + * Returns: gphoto2 error code, file contents in @data, + * length of file in @length. + * + */ +int +canon_int_get_file (Camera *camera, const char *name, unsigned char **data, unsigned int *length, + GPContext *context) +{ + switch (camera->port->type) { + case GP_PORT_USB: + return canon_usb_get_file (camera, name, data, length, context); + break; + case GP_PORT_SERIAL: + *data = canon_serial_get_file (camera, name, length, context); + if (*data) + return GP_OK; + return GP_ERROR_OS_FAILURE; + break; + GP_PORT_DEFAULT + } +} + +/** + * canon_int_get_thumbnail: + * @camera: camera to work with + * @name: image to get thumbnail of + * @length: length of data returned + * @retdata: The thumbnail data + * @context: context for error reporting + * + * NOTE: Since cameras that do not store the thumbnail in a separate + * file does not return just the thumbnail but the first 10813 bytes + * of the image (most oftenly the EXIF header with thumbnail data in + * it) this must be treated before called a true thumbnail. + * + * Returns: result from canon_usb_get_thumbnail() + * or canon_serial_get_thumbnail() + * + */ +int +canon_int_get_thumbnail (Camera *camera, const char *name, unsigned char **retdata, + unsigned int *length, GPContext *context) +{ + int res; + + GP_DEBUG ("canon_int_get_thumbnail() called for file '%s'", name); + + CON_CHECK_PARAM_NULL (retdata); + CON_CHECK_PARAM_NULL (length); + + switch (camera->port->type) { + case GP_PORT_USB: + res = canon_usb_get_thumbnail (camera, name, retdata, length, context); + break; + case GP_PORT_SERIAL: + res = canon_serial_get_thumbnail (camera, name, retdata, length, + context); + break; + GP_PORT_DEFAULT + } + if (res != GP_OK) { + GP_DEBUG ("canon_int_get_thumbnail() failed, returned %i", res); + return res; + } + + return res; +} + +/** + * canon_int_delete_file: + * @camera: camera to work with + * @name: image to delete + * @dir: directory from which to delete the file + * @context: context for error reporting + * + * Deletes a file from the camera storage. + * + * Returns: result from canon_usb_dialogue() or canon_serial_dialogue() + * + */ +int +canon_int_delete_file (Camera *camera, const char *name, const char *dir, GPContext *context) +{ + unsigned char payload[300]; + unsigned char *msg; + unsigned int len, payload_length; + + switch (camera->port->type) { + case GP_PORT_USB: + memcpy (payload, dir, strlen (dir) + 1); + if ( camera->pl->md->model == CANON_CLASS_6 ) { + char *ptr = (char *)payload + strlen(dir); + char last_byte = dir[strlen(dir)-1]; + /* Newer protocol uses a different + * code and has different parameters: + * - full path name together, rather than directory and file + * as separate strings + * - 8 bytes of other stuff, starting at 0x20 in + * payload + * - directory name (again) + * - 2 null bytes */ + if ( last_byte != '\\' && last_byte != '/' ) + *ptr++ = '\\'; /* Need path separator between */ + memcpy ( ptr, name, 0x30 - strlen(dir) - 1 ); + + memcpy ( payload + 0x30, dir, 0x30 ); + payload_length = 0x30 + strlen(dir); + if ( last_byte != '\\' && last_byte != '/' ) + payload[payload_length++] = '\\'; /* Need path separator at end of directory name */ + + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_DELETE_FILE_2, &len, + payload, payload_length); + } + else { + memcpy (payload + strlen (dir) + 1, name, strlen (name) + 1); + payload_length = strlen (dir) + strlen (name) + 2; + payload[payload_length++] = 0; /* Double NUL to end command */ + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_DELETE_FILE, &len, + payload, payload_length); + } + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + else if ( le32atoh ( msg ) != 0 ) { + GP_DEBUG ( "canon_int_delete_file: " + "non-zero return code 0x%x from camera. " + "Possibly tried to delete a nonexistent file.", + le32atoh ( msg ) ); + return GP_ERROR_FILE_NOT_FOUND; + } + + break; + case GP_PORT_SERIAL: + msg = canon_serial_dialogue (camera, context, 0xd, 0x11, &len, dir, + strlen (dir) + 1, name, strlen (name) + 1, + NULL); + if ( msg == NULL ) { + canon_serial_error_type (camera); + return GP_ERROR_OS_FAILURE; + } + break; + GP_PORT_DEFAULT + } + + if (len != 4) { + /* XXX should mark folder as dirty since we can't be sure if the file + * got deleted or not + */ + return GP_ERROR_CORRUPTED_DATA; + } + + if (msg[0] == 0x29) { + gp_context_error (context, _("File protected.")); + return GP_ERROR_CAMERA_ERROR; + } + + /* XXX we should mark folder as dirty, re-read it and check if the file + * is gone or not. + */ + return GP_OK; +} + +/** + * canon_int_put_file: + * @camera: camera to work with + * @file: gphoto2 file object to upload + * @destname: name for file on camera + * @destpath: directory in which to put the file + * @context: context for error reporting + * + * Uploads a file to the camera. + * + * Returns: result from canon_usb_put_file() or canon_serial_put_file() + * + */ +int +canon_int_put_file (Camera *camera, CameraFile *file, const char *filename, + const char *destname, const char *destpath, GPContext *context) +{ + switch (camera->port->type) { + case GP_PORT_USB: + return canon_usb_put_file (camera, file, filename, destname, destpath, + context); + break; + case GP_PORT_SERIAL: + return canon_serial_put_file (camera, file, filename, destname, destpath, + context); + break; + GP_PORT_DEFAULT + } + /* Never reached */ + return GP_ERROR; +} + +int +canon_int_wait_for_event (Camera *camera, int timeout, + CameraEventType *eventtype, void **eventdata, + GPContext *context) +{ + switch (camera->port->type) { + case GP_PORT_USB: + return canon_usb_wait_for_event (camera, timeout, eventtype, eventdata, context); + break; + GP_PORT_DEFAULT + } + /* Never reached */ + return GP_ERROR; +} + +/* NOTE: + * This function should actually not be necessary, as + * canon_int_list_directory preps the filesystem info backing store with + * all the CameraFileInfos it needs. + * It might never be called. + */ +int +canon_int_get_info_func (Camera *camera, const char *folder, + const char *filename, CameraFileInfo *info, + GPContext *context) +{ + /* FIXME: big copy and paste mess from canon_int_list_directory */ + int res; + unsigned int dirents_length; + unsigned char *dirent_data = NULL; + unsigned char *end_of_data, *temp_ch, *pos; + const char *canonfolder = gphoto2canonpath (camera, folder, context); + + GP_DEBUG ("BEGIN canon_int_get_info_func() folder '%s' aka '%s' filename %s", folder, canonfolder, filename); + + if ( canonfolder == NULL ) { + GP_DEBUG ( "Error: canon_int_get_info_func called with null name for camera folder" ); + return GP_ERROR; + } + + /* Fetch all directory entries from the camera */ + switch (camera->port->type) { + case GP_PORT_USB: + res = canon_usb_get_dirents (camera, &dirent_data, &dirents_length, + canonfolder, context); + break; + case GP_PORT_SERIAL: + res = canon_serial_get_dirents (camera, &dirent_data, &dirents_length, + canonfolder, context); + break; + GP_PORT_DEFAULT + } + if (res != GP_OK) + return res; + + end_of_data = dirent_data + dirents_length; + + if (dirents_length < CANON_MINIMUM_DIRENT_SIZE) { + gp_context_error (context, + _("canon_int_get_info_func: ERROR: " + "initial message too short (%i < minimum %i)"), + dirents_length, CANON_MINIMUM_DIRENT_SIZE); + free (dirent_data); + dirent_data = NULL; + return GP_ERROR_CORRUPTED_DATA; + } + + /* The first data we have got here is the dirent for the + * directory we are reading. Skip over 10 bytes + * (2 for attributes, 4 date and 4 size) and then go find + * the end of the directory name so that we get to the next + * dirent which is actually the first one we are interested + * in + */ + GP_DEBUG ("canon_int_get_info_func: Camera directory listing for directory '%s'", + dirent_data + CANON_DIRENT_NAME); + + for (pos = dirent_data + CANON_DIRENT_NAME; pos < end_of_data && *pos != 0; pos++) + /* do nothing */ ; + if (pos == end_of_data || *pos != 0) { + gp_log (GP_LOG_ERROR, "canon_int_get_info_func", + "Reached end of packet while examining the first dirent"); + free (dirent_data); + dirent_data = NULL; + return GP_ERROR_CORRUPTED_DATA; + } + pos++; /* skip NULL byte terminating directory name */ + + /* we are now positioned at the first interesting dirent */ + + /* This is the main loop, for every directory entry returned */ + while (pos < end_of_data) { + int is_dir, is_file; + uint16_t dirent_attrs; /* attributes of dirent */ + uint32_t dirent_file_size; /* size of dirent in octets */ + uint32_t dirent_time; /* time stamp of dirent (Unix Epoch) */ + uint8_t *dirent_name; /* name of dirent */ + size_t dirent_name_len; /* length of dirent_name */ + size_t dirent_ent_size; /* size of dirent in octets */ + uint32_t tmp_time; + time_t date; + struct tm *tm; + + dirent_attrs = le16atoh (pos + CANON_DIRENT_ATTRS); + dirent_file_size = le32atoh (pos + CANON_DIRENT_SIZE); + dirent_name = pos + CANON_DIRENT_NAME; + + /* see canon_int_set_time() for timezone handling */ + tmp_time = le32atoh (pos + CANON_DIRENT_TIME); + if (tmp_time != 0) { + /* FIXME: I just want the tm_gmtoff/timezone info */ + date = time(NULL); + tm = localtime (&date); +#ifdef HAVE_TM_GMTOFF + dirent_time = tmp_time - tm->tm_gmtoff; + GP_DEBUG ("canon_int_get_info_func: converted %ld to UTC %ld (tm_gmtoff is %ld)", + (long)tmp_time, (long)dirent_time, (long)tm->tm_gmtoff); +#else + dirent_time = tmp_time + timezone; + GP_DEBUG ("canon_int_get_info_func: converted %ld to UTC %ld (timezone is %ld)", + (long)tmp_time, (long)dirent_time, (long)timezone); +#endif + } else { + dirent_time = tmp_time; + } + + is_dir = ((dirent_attrs & CANON_ATTR_NON_RECURS_ENT_DIR) != 0) + || ((dirent_attrs & CANON_ATTR_RECURS_ENT_DIR) != 0); + is_file = !is_dir; + + gp_log (GP_LOG_DATA, "canon/canon.c", + "canon_int_get_info_func: " + "reading dirent at position %li of %li (0x%lx of 0x%lx)", + (long)(pos - dirent_data), (long)(end_of_data - dirent_data), + (long)(pos - dirent_data), (long)(end_of_data - dirent_data) ); + + if (pos + CANON_MINIMUM_DIRENT_SIZE > end_of_data) { + if (camera->port->type == GP_PORT_SERIAL) { + /* check to see if it is only NULL bytes left, + * that is not an error for serial cameras + * (at least the A50 adds five zero bytes at the end) + */ + for (temp_ch = pos; (temp_ch < end_of_data) && (!*temp_ch); temp_ch++) ; /* do nothing */ + + if (temp_ch == end_of_data) { + GP_DEBUG ("canon_int_get_info_func: " + "the last %li bytes were all 0 - ignoring.", + (long)(temp_ch - pos)); + break; + } else { + GP_DEBUG ("canon_int_get_info_func: " + "byte[%li=0x%lx] == %i=0x%x", (long)(temp_ch - pos), + (long)(temp_ch - pos), *temp_ch, *temp_ch); + GP_DEBUG ("canon_int_get_info_func: " + "pos is %p, end_of_data is %p, temp_ch is %p - diff is 0x%lx", + pos, end_of_data, temp_ch, (long)(temp_ch - pos)); + } + } + GP_DEBUG ("canon_int_get_info_func: " + "dirent at position %li=0x%lx of %li=0x%lx is too small, " + "minimum dirent is %i bytes", + (long)(pos - dirent_data), (long)(pos - dirent_data), + (long)(end_of_data - dirent_data), (long)(end_of_data - dirent_data), + CANON_MINIMUM_DIRENT_SIZE); + gp_log (GP_LOG_ERROR,"canon_int_get_info_func", "truncated directory entry encountered"); + free (dirent_data); + dirent_data = NULL; + return GP_ERROR_CORRUPTED_DATA; + } + + /* Check end of this dirent, 10 is to skip over + * 2 attributes + 0x00 + * 4 file size + * 4 file date (UNIX localtime) + * to where the direntry name begins. + */ + for (temp_ch = dirent_name; temp_ch < end_of_data && *temp_ch != 0; + temp_ch++) ; + + if (temp_ch == end_of_data || *temp_ch != 0) { + GP_DEBUG ("canon_int_get_info_func: " + "dirent at position %li of %li has invalid name in it." + "bailing out with what we've got.", + (long)(pos - dirent_data), + (long)(end_of_data - dirent_data)); + break; + } + dirent_name_len = strlen ((char *)dirent_name); + dirent_ent_size = CANON_MINIMUM_DIRENT_SIZE + dirent_name_len; + + /* check that length of name in this dirent is not of unreasonable size. + * 256 was picked out of the blue + */ + if (dirent_name_len > 256) { + GP_DEBUG ("canon_int_get_info_func: " + "the name in dirent at position %li of %li is too long. (%li bytes)." + "bailing out with what we've got.", + (long)(pos - dirent_data), (long)(end_of_data - dirent_data), + (long)dirent_name_len); + break; + } + + /* 10 bytes of attributes, size and date, a name and a NULL terminating byte */ + GP_LOG_DATA ((char *)pos, dirent_ent_size, + "canon_int_get_info_func: dirent determined to be %li=0x%lx bytes:", + (long)dirent_ent_size, (long)dirent_ent_size); + if (dirent_name_len) { + /* OK, this directory entry has a name in it. */ + + if (!strcmp(filename, (char*)dirent_name)) { + /* we're going to fill out the info structure + in this block */ + + /* We start with nothing and continously add stuff */ + info->file.fields = GP_FILE_INFO_NONE; + + info->file.mtime = dirent_time; + if (info->file.mtime != 0) + info->file.fields |= GP_FILE_INFO_MTIME; + + if (is_file) { + /* determine file type based on file name + * this stuff only makes sense for files, not for folders + */ + + strncpy (info->file.type, + filename2mimetype (filename), + sizeof (info->file.type)); + info->file.fields |= GP_FILE_INFO_TYPE; + + if (dirent_attrs & CANON_ATTR_NOT_DOWNLOADED) + info->file.status = GP_FILE_STATUS_NOT_DOWNLOADED; + else + info->file.status = GP_FILE_STATUS_DOWNLOADED; + info->file.fields |= GP_FILE_INFO_STATUS; + + /* the size is located at offset 2 and is 4 + * bytes long, re-order little/big endian */ + info->file.size = dirent_file_size; + info->file.fields |= GP_FILE_INFO_SIZE; + + /* file access modes */ + if ((dirent_attrs & CANON_ATTR_WRITE_PROTECTED) == 0) + info->file.permissions = + GP_FILE_PERM_READ | + GP_FILE_PERM_DELETE; + else + info->file.permissions = GP_FILE_PERM_READ; + info->file.fields |= GP_FILE_INFO_PERMISSIONS; + } + + /* print dirent as text */ + GP_DEBUG ("Raw info: name=%s is_dir=%i, is_file=%i, attrs=0x%x", + dirent_name, is_dir, is_file, dirent_attrs); + debug_fileinfo (info); + + if (is_file) { + /* + * Append directly to the filesystem instead of to the list, + * because we have additional information. + */ + if (!camera->pl->list_all_files + && !is_image (filename) + && !is_movie (filename) + && !is_audio (filename)) { + /* FIXME: Find associated main file and add it there */ + /* do nothing */ + GP_DEBUG ("Ignored %s/%s", folder, filename); + } else { + const char *thumbname; + + + thumbname = canon_int_filename2thumbname (camera, + filename); + if (thumbname == NULL) { + /* no thumbnail */ + } else { + if ( is_cr2 ( filename ) ) { + /* We get the first part of the raw file as the thumbnail; + this is (almost) a valid EXIF file. */ + info->preview.fields = GP_FILE_INFO_TYPE; + strcpy (info->preview.type, GP_MIME_EXIF); + } else { + /* Older Canon cams have JPEG thumbs */ + info->preview.fields = GP_FILE_INFO_TYPE; + strcpy (info->preview.type, GP_MIME_JPEG); + } + } + GP_DEBUG ( "file \"%s\" has preview of MIME type \"%s\"", + filename, info->preview.type ); + } + } + /* found ... leave loop */ + break; + } + } + + /* make 'pos' point to next dirent in packet. + * first we skip 10 bytes of attribute, size and date, + * then we skip the name plus 1 for the NULL + * termination bytes. + */ + pos += dirent_ent_size; + } + free (dirent_data); + dirent_data = NULL; + + GP_DEBUG ("END canon_int_get_info_func() folder '%s' aka '%s' fn '%s'", folder, canonfolder, filename); + + return GP_OK; +} + + +/** + * canon_int_extract_jpeg_thumb: + * @data: raw JFIF from which to extract thumbnail + * @datalen: length of @data + * @retdata: to receive extracted thumbnail + * @retdatalen: length of @retdata + * @context: context for error reporting + * + * Extracts thumbnail from JFIF image (A70) or movie .thm file. + * just extracted the code from the old #canon_int_get_thumbnail + * + * Returns: gphoto2 error code + * + */ + +int +canon_int_extract_jpeg_thumb (unsigned char *data, const unsigned int datalen, + unsigned char **retdata, unsigned int *retdatalen, + GPContext *context) +{ + unsigned int i, thumbstart = 0, thumbsize = 0; + + CHECK_PARAM_NULL (data); + CHECK_PARAM_NULL (retdata); + + *retdata = NULL; + *retdatalen = 0; + + if (data[0] == JPEG_ESC || data[1] == JPEG_BEG) { + GP_DEBUG ("canon_int_extract_jpeg_thumb: this is a JFIF file."); + + /* pictures are JFIF files, we skip the first 2 bytes (0xFF 0xD8) + * first go look for start of JPEG, when that is found we set thumbstart + * to the current position and never look for JPEG begin bytes again. + * when thumbstart is set look for JPEG end. + */ + for (i = 3; i < datalen; i++) + if (data[i] == JPEG_ESC) { + if (! thumbstart) { + if (i < (datalen - 3) && + data[i + 1] == JPEG_BEG && + ((data[i + 3] == JPEG_SOS) || (data[i + 3] == JPEG_A50_SOS))) + thumbstart = i; + } else if (i < (datalen - 1) && (data[i + 1] == JPEG_END)) { + thumbsize = i + 2 - thumbstart; + break; + } + + } + if (! thumbsize) { + gp_context_error (context, _("Could not extract JPEG " + "thumbnail from data: No beginning/end")); + GP_DEBUG ("canon_int_extract_jpeg_thumb: could not find JPEG " + "beginning (offset %i) or end (size %i) in %i bytes of data", + datalen, thumbstart, thumbsize); + return GP_ERROR_CORRUPTED_DATA; + } + + /* now that we know the size of the thumbnail embedded in the JFIF data, malloc() */ + *retdata = malloc (thumbsize); + if (! *retdata) { + GP_DEBUG ("canon_int_extract_jpeg_thumb: could not allocate %i bytes of memory", thumbsize); + return GP_ERROR_NO_MEMORY; + } + + /* and copy */ + memcpy (*retdata, data + thumbstart, thumbsize); + *retdatalen = thumbsize; + } + else if ( !strcmp ( (char *)data, "II*" ) && data[8] == 'C' && data[9] == 'R' ) { + + /* This is a valid EXIF file; we need to sort through + * to get the JPEG thumbnail. */ +#ifdef HAVE_LIBEXIF + /* We have to do this ourselves, because libexif + * assumes that the EXIF info is encapsulated in an + * APP1 marker in a JFIF file. So we parse enough to + * get the thumbnail, which is found via IFD 1. */ + /* FIXME: We need to extract the EXIF IFD and copy it + * into the image we return, as higher levels of + * software assume that the EXIF is included in the + * JPEG thumbnail and just fetch the thumbnail to get + * the EXIF data. */ + unsigned int n_tags; + int ifd0_offset, ifd1_offset; + int jpeg_offset = -1, jpeg_size = -1; + + GP_DEBUG ( "canon_int_extract_jpeg_thumb: this is from a CR2 file."); + dump_hex ( stderr, data, 32 ); + ifd0_offset = exif_get_long ( data+4, EXIF_BYTE_ORDER_INTEL ); + GP_DEBUG ( "canon_int_extract_jpeg_thumb: IFD 0 at 0x%x", ifd0_offset ); + n_tags = exif_get_short ( data+ifd0_offset, EXIF_BYTE_ORDER_INTEL ); + GP_DEBUG ( "canon_int_extract_jpeg_thumb: %d tags in IFD 0", n_tags ); + ifd1_offset = exif_get_long ( data + ifd0_offset + 2 + 12*n_tags, EXIF_BYTE_ORDER_INTEL ); + GP_DEBUG ( "canon_int_extract_jpeg_thumb: IFD 1 at 0x%x", ifd1_offset ); + n_tags = exif_get_short ( data+ifd1_offset, EXIF_BYTE_ORDER_INTEL ); + GP_DEBUG ( "canon_int_extract_jpeg_thumb: %d tags in IFD 1", n_tags ); + + /* Now go through IFD 1 and find the two tags we need. */ + for ( i=0; iport->type) statements + */ + +/** + * GP_PORT_DEFAULT_RETURN_INTERNAL: + * @return_statement: Statement to use for return + * + * Used only by GP_PORT_DEFAULT_RETURN_EMPTY(), + * GP_PORT_DEFAULT_RETURN(), and GP_PORT_DEFAULT() + * + */ +#define GP_PORT_DEFAULT_RETURN_INTERNAL(return_statement) \ + default: \ + gp_context_error (context, _("Don't know how to handle " \ + "camera->port->type value %i aka 0x%x " \ + "in %s line %i."), camera->port->type, \ + camera->port->type, __FILE__, __LINE__); \ + return_statement; \ + break; + +/** + * GP_PORT_DEFAULT_RETURN_EMPTY: + * + * Return as a default case in switch (camera->port->type) + * statements in functions returning void. + * + */ +#define GP_PORT_DEFAULT_RETURN_EMPTY GP_PORT_DEFAULT_RETURN_INTERNAL(return) +/** + * GP_PORT_DEFAULT_RETURN + * @RETVAL: Value to return from this function + * + * Return as a default case in switch (camera->port->type) + * statements in functions returning a value. + * + */ +#define GP_PORT_DEFAULT_RETURN(RETVAL) GP_PORT_DEFAULT_RETURN_INTERNAL(return RETVAL) + +/** + * GP_PORT_DEFAULT + * + * Return as a default case in switch (camera->port->type) statements + * in functions returning a gphoto2 error code where this value of + * camera->port->type is unexpected. + * + */ +#define GP_PORT_DEFAULT GP_PORT_DEFAULT_RETURN(GP_ERROR_BAD_PARAMETERS) + +/* + * All functions returning a pointer have malloc'ed the data. The caller must + * free() it when done. + */ + +int canon_int_ready(Camera *camera, GPContext *context); + +char *canon_int_get_disk_name(Camera *camera, GPContext *context); + +int canon_int_get_battery(Camera *camera, int *pwr_status, int *pwr_source, GPContext *context); + +int canon_int_capture_image (Camera *camera, CameraFilePath *path, GPContext *context); +int canon_int_capture_preview (Camera *camera, unsigned char **data, unsigned int *length, + GPContext *context); + +int canon_int_get_disk_name_info(Camera *camera, const char *name,int *capacity,int *available, GPContext *context); + +int canon_int_list_directory (Camera *camera, const char *folder, CameraList *list, const canonDirlistFunctionBits flags, GPContext *context); +int canon_int_get_info_func (Camera *camera, const char *folder, const char *filename, CameraFileInfo * info, GPContext *context); + +int canon_int_get_file(Camera *camera, const char *name, unsigned char **data, unsigned int *length, GPContext *context); +int canon_int_get_thumbnail(Camera *camera, const char *name, unsigned char **retdata, unsigned int *length, GPContext *context); +int canon_int_put_file(Camera *camera, CameraFile *file, const char *filename, const char *destname, const char *destpath, GPContext *context); +int canon_int_wait_for_event (Camera *camera, int timeout, CameraEventType *eventtype, void **eventdata, GPContext *context); +int canon_int_set_file_attributes(Camera *camera, const char *file, const char *dir, canonDirentAttributeBits attrs, GPContext *context); +int canon_int_delete_file(Camera *camera, const char *name, const char *dir, GPContext *context); +int canon_int_set_shutter_speed(Camera *camera, canonShutterSpeedState shutter_speed, GPContext *context); +int canon_int_set_iso(Camera *camera, canonIsoState iso, GPContext *context); +int canon_int_set_shooting_mode (Camera *camera, unsigned char shooting_mode, GPContext *context); +int canon_int_set_aperture(Camera *camera, canonApertureState aperture, GPContext *context); +int canon_int_set_exposurebias(Camera *camera, unsigned char expbias, GPContext *context); +int canon_int_set_focus_mode (Camera *camera, canonFocusModeState focus_mode, GPContext *context); +int canon_int_set_image_format (Camera *camera, unsigned char res_byte1, unsigned char res_byte2, unsigned char res_byte3, GPContext *context); +int canon_serial_off(Camera *camera); +int canon_int_get_time(Camera *camera, time_t *camera_time, GPContext *context); +int canon_int_set_time(Camera *camera, time_t date, GPContext *context); +int canon_int_directory_operations(Camera *camera, const char *path, canonDirFunctionCode action, GPContext *context); +int canon_int_identify_camera(Camera *camera, GPContext *context); +int canon_int_set_owner_name(Camera *camera, const char *name, GPContext *context); +int canon_int_start_remote_control(Camera *camera, GPContext *context); +int canon_int_end_remote_control(Camera *camera, GPContext *context); +int canon_int_set_beep(Camera *camera, canonBeepMode beep_mode, GPContext *context); +int canon_int_set_flash(Camera *camera, canonFlashMode flash_mode, GPContext *context); +int canon_int_set_zoom(Camera *camera, unsigned char zoom_level, GPContext *context); +int canon_int_get_zoom(Camera *camera, unsigned char *zoom_level, unsigned char *zoom_max, GPContext *context); + +/* + * introduced for capturing + */ +int canon_int_get_release_params (Camera *camera, GPContext *context); + +void canon_int_find_new_image ( Camera *camera, unsigned char *initial_state, unsigned char *final_state, CameraFilePath *path ); + + +/* path conversion - needs drive letter, and therefore cannot be moved + * to util.c */ +const char *gphoto2canonpath(Camera *camera, const char *path, GPContext *context); + +const char *canon_int_filename2thumbname (Camera *camera, const char *filename); +const char *canon_int_filename2audioname (Camera *camera, const char *filename); + +int canon_int_extract_jpeg_thumb (unsigned char *data, const unsigned int datalen, unsigned char **retdata, unsigned int *retdatalen, GPContext *context); + +/* for the macros abbreviating gp_log* */ +#define GP_MODULE "canon" + +#endif /* _CANON_H */ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/crc.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/crc.c new file mode 100644 index 00000000..17b8990d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/crc.c @@ -0,0 +1,277 @@ +#include "config.h" + +#include +#include + +#include "crc.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + + +/* + * CRC 0102010 + */ +static unsigned short crc_table[256] = { + 0x0, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf, + 0x8c48, 0x9dc1, 0xaf5a, 0xbed3, 0xca6c, 0xdbe5, 0xe97e, 0xf8f7, + 0x1081, 0x108, 0x3393, 0x221a, 0x56a5, 0x472c, 0x75b7, 0x643e, + 0x9cc9, 0x8d40, 0xbfdb, 0xae52, 0xdaed, 0xcb64, 0xf9ff, 0xe876, + 0x2102, 0x308b, 0x210, 0x1399, 0x6726, 0x76af, 0x4434, 0x55bd, + 0xad4a, 0xbcc3, 0x8e58, 0x9fd1, 0xeb6e, 0xfae7, 0xc87c, 0xd9f5, + 0x3183, 0x200a, 0x1291, 0x318, 0x77a7, 0x662e, 0x54b5, 0x453c, + 0xbdcb, 0xac42, 0x9ed9, 0x8f50, 0xfbef, 0xea66, 0xd8fd, 0xc974, + 0x4204, 0x538d, 0x6116, 0x709f, 0x420, 0x15a9, 0x2732, 0x36bb, + 0xce4c, 0xdfc5, 0xed5e, 0xfcd7, 0x8868, 0x99e1, 0xab7a, 0xbaf3, + 0x5285, 0x430c, 0x7197, 0x601e, 0x14a1, 0x528, 0x37b3, 0x263a, + 0xdecd, 0xcf44, 0xfddf, 0xec56, 0x98e9, 0x8960, 0xbbfb, 0xaa72, + 0x6306, 0x728f, 0x4014, 0x519d, 0x2522, 0x34ab, 0x630, 0x17b9, + 0xef4e, 0xfec7, 0xcc5c, 0xddd5, 0xa96a, 0xb8e3, 0x8a78, 0x9bf1, + 0x7387, 0x620e, 0x5095, 0x411c, 0x35a3, 0x242a, 0x16b1, 0x738, + 0xffcf, 0xee46, 0xdcdd, 0xcd54, 0xb9eb, 0xa862, 0x9af9, 0x8b70, + 0x8408, 0x9581, 0xa71a, 0xb693, 0xc22c, 0xd3a5, 0xe13e, 0xf0b7, + 0x840, 0x19c9, 0x2b52, 0x3adb, 0x4e64, 0x5fed, 0x6d76, 0x7cff, + 0x9489, 0x8500, 0xb79b, 0xa612, 0xd2ad, 0xc324, 0xf1bf, 0xe036, + 0x18c1, 0x948, 0x3bd3, 0x2a5a, 0x5ee5, 0x4f6c, 0x7df7, 0x6c7e, + 0xa50a, 0xb483, 0x8618, 0x9791, 0xe32e, 0xf2a7, 0xc03c, 0xd1b5, + 0x2942, 0x38cb, 0xa50, 0x1bd9, 0x6f66, 0x7eef, 0x4c74, 0x5dfd, + 0xb58b, 0xa402, 0x9699, 0x8710, 0xf3af, 0xe226, 0xd0bd, 0xc134, + 0x39c3, 0x284a, 0x1ad1, 0xb58, 0x7fe7, 0x6e6e, 0x5cf5, 0x4d7c, + 0xc60c, 0xd785, 0xe51e, 0xf497, 0x8028, 0x91a1, 0xa33a, 0xb2b3, + 0x4a44, 0x5bcd, 0x6956, 0x78df, 0xc60, 0x1de9, 0x2f72, 0x3efb, + 0xd68d, 0xc704, 0xf59f, 0xe416, 0x90a9, 0x8120, 0xb3bb, 0xa232, + 0x5ac5, 0x4b4c, 0x79d7, 0x685e, 0x1ce1, 0xd68, 0x3ff3, 0x2e7a, + 0xe70e, 0xf687, 0xc41c, 0xd595, 0xa12a, 0xb0a3, 0x8238, 0x93b1, + 0x6b46, 0x7acf, 0x4854, 0x59dd, 0x2d62, 0x3ceb, 0xe70, 0x1ff9, + 0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330, + 0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0xf78, +}; + + +/* + * Initial CRC values. Determined by looking at CRCs sent by the camera. + */ + +static int crc_init[1024] = { + -1, -1, -1, -1, -1, 0x83a4, 0x5b70, 0x724e, + 0x0ee6, 0x5969, 0x7b6c, 0x647f, 0x8e90, 0x07ad, 0x5af0, 0xfa5f, + 0x77aa, 0xc2b3, 0x5003, 0x59f5, 0xe76c, 0xad67, 0xe2af, 0x4632, + 0xd983, 0xb9a8, 0x8cfb, 0x7c8f, 0xbf08, 0x1c9d, 0xb35b, 0x2f51, + 0xec49, 0xd0dc, 0xae31, 0xac9c, 0x11be, 0xf886, 0xbe88, 0x948c, + 0xca17, 0xb48b, 0xc726, 0xed56, 0xc7cd, 0x0656, 0xa9e1, 0x44eb, + 0x10a1, 0xef97, 0x16ef, 0x91f1, 0x9f42, 0x5cac, 0x9639, 0x6f35, + 0x9c2b, 0x2d9f, 0x326b, 0x3f84, 0xb859, 0x75ea, 0x9291, 0xe771, + 0xb067, 0x0b62, 0xf53c, 0x6c55, 0xe418, 0xc154, 0xaf30, 0xa58d, + 0x4827, 0xbc6d, 0x61ae, 0x77c5, 0xadb3, 0x36af, 0xdbc0, 0xea8a, + 0x23ba, 0x6785, 0x6ca3, 0x1218, 0x46b5, 0x5e83, 0xa91b, 0xbeeb, + 0xf78c, 0xcc77, 0xe4ed, 0x3454, 0x30e2, 0xa6a6, 0x7b14, 0x1c7f, + 0x515b, 0x09e4, 0x631e, 0xd7e7, 0xad46, 0xc3af, 0x4412, 0xe9a1, + 0x1089, 0xc797, 0x5c56, 0x6c39, 0x8818, 0xbfcb, 0xdf9d, 0x97ce, + 0x9024, 0x4253, 0x98c7, 0xe1db, 0x2a01, 0x941c, 0x5a17, 0x1d5f, + 0x794a, 0x525d, 0x17d7, 0xa1e0, 0x0563, 0x84d2, 0x1507, 0x61c2, + 0x1bc5, 0xd32c, 0x4602, 0xe983, 0x3289, 0xdd84, 0x9eec, 0xfabd, + 0x95aa, 0xe406, 0xdf54, 0x5ece, 0xe41b, 0xc254, 0xb703, 0x5715, + 0x7782, 0xeab3, 0x1aba, 0xa43d, 0xf036, 0x4e00, 0xab0b, 0xbec9, + 0xd58c, 0xd664, 0x2657, 0xa2d0, 0x2d50, 0xfd6b, 0x7bdd, 0xd57f, + 0x2564, 0x89e3, 0x4cda, 0x6129, 0xf0c5, 0xbd00, 0x04bf, 0x50c3, + 0x99f5, 0xdbca, 0xe08a, 0x7310, 0x58f7, 0xed7d, 0xeccd, 0x54dc, + 0xa6b1, 0x6c14, 0xa518, 0xdd27, 0x3dec, 0xc07b, 0x8821, 0x86cb, + 0x1c25, 0x0b5b, 0xcc3c, 0xafed, 0x788d, 0x9d4c, 0x428e, 0x45c7, + 0x34b0, 0xd4e2, 0xb075, 0x1962, 0x640e, 0xff90, 0x90ff, 0x9953, + 0x7dca, 0xf219, 0x7122, 0x7ad5, 0xd56e, 0x3464, 0x00e2, 0x2d87, + 0x2a6b, 0xfe1c, 0x14ee, 0x80d3, 0x3443, 0x27e2, 0x1fc1, 0xf768, + 0x2877, 0xf23e, 0x5622, 0x4893, 0x086d, 0xe20f, 0xe632, 0xfb76, + 0x56bb, 0xd193, 0xe920, 0x9189, 0xe742, 0x8367, 0x9870, 0x56db, + 0xb193, 0xf773, 0x3377, 0x2b95, 0x080d, 0x820f, 0xf861, 0x5988, + 0x9a6c, 0x5af9, 0xf35f, 0x3f33, 0x0f59, 0xee78, 0xf1fe, 0x8e11, + 0x86ad, 0x7a25, 0x256e, 0x83e3, 0x1c70, 0x5e5b, 0x711b, 0x43d5, + 0x16d6, 0xa8f1, 0x5cfa, 0xc039, 0xca21, 0x828b, 0x7c61, 0x5108, + 0x5ae4, 0xee5f, 0xd6fe, 0xbc57, 0x5bae, 0xac4e, 0xc3be, 0x5512, + 0x60a0, 0x71d4, 0x8cd5, 0x528f, 0xc5d7, 0x0c74, 0xdb4b, 0x618a, + 0x53c5, 0x87c6, 0x1934, 0x320e, 0x5a84, 0x8e5f, 0xc8ad, 0x1ea9, + 0x9779, 0x2724, 0xd9c1, 0xfba8, 0x88bb, 0x1ccb, 0xe55b, 0x8a45, + 0xf2e9, 0x8122, 0xcd52, 0xc9fc, 0x47b8, 0x5b92, 0x904e, 0x2853, + 0xd63e, 0x7c57, 0x6708, 0xe1a3, 0x5201, 0x4bd7, 0x545e, 0x24b1, + 0x54f2, 0x88b1, 0x16cb, 0xb5f1, 0xb537, 0x7337, 0x7ff7, 0xdf3b, + 0x31ce, 0x82b7, 0x4061, 0xbae5, 0xd9c8, 0xf2a8, 0xc022, 0xd121, + 0x5b20, 0x224e, 0x9b94, 0xaae8, 0x55d8, 0xaaa0, 0x1dd8, 0xfe4a, + 0x42ee, 0x25c7, 0x2ae3, 0x761c, 0x7ca2, 0x9208, 0x7e71, 0x512a, + 0x78e4, 0xf44c, 0x1444, 0x2ad3, 0x461c, 0xf783, 0xc377, 0x9c12, + 0x149f, 0xf1d3, 0xa311, 0xe441, 0x9854, 0x72db, 0x9be6, 0xd8e8, + 0xdab9, 0x9b9b, 0xa5e8, 0x2d27, 0x8a6b, 0xdce9, 0xfbfd, 0xddbb, + 0xa1ec, 0x0963, 0xe41e, 0xc754, 0x9f56, 0x48ac, 0x376d, 0x11d1, + 0x9786, 0xd824, 0x16b9, 0xc7f1, 0x3a56, 0x420c, 0xc7c7, 0x0c56, + 0xf94b, 0x7b99, 0x917f, 0x1142, 0x0486, 0x69c3, 0x5a4d, 0x475f, + 0xbc92, 0x9eae, 0xb8bd, 0x91ea, 0x8442, 0x8507, 0xc816, 0xa5a9, + 0x6c27, 0x9618, 0x4e35, 0x9e0b, 0x1dbd, 0x9b4a, 0x74e8, 0x9880, + 0xa6db, 0x0614, 0xebe1, 0x40ab, 0x70e5, 0xb5c4, 0x8037, 0xd043, + 0x3131, 0x7db7, 0x8f19, 0x86bc, 0x6b25, 0xac6f, 0xe2be, 0x5732, + 0x5082, 0xd8f5, 0xc7b9, 0x7256, 0x16e6, 0x98f1, 0xd7db, 0x9146, + 0x2842, 0xc73e, 0xf556, 0x0655, 0xaae1, 0x5cd8, 0xe239, 0xd032, + 0x4031, 0xeae5, 0x4cba, 0x0129, 0xee96, 0x1ffe, 0xc868, 0xdba9, + 0x838a, 0x7570, 0x0891, 0x1e0f, 0x3179, 0x35b7, 0xdbf3, 0xd98a, + 0xb0a8, 0xc462, 0xb165, 0x0173, 0xb496, 0xda26, 0x049b, 0x74c3, + 0xb380, 0xf451, 0x0944, 0xc31e, 0xf512, 0x4255, 0x9ec7, 0xd1bd, + 0xc720, 0xeb56, 0xf7ab, 0xeb77, 0xd6ab, 0xe957, 0xe689, 0x4076, + 0xade5, 0x60af, 0x7ed4, 0xf42a, 0x7244, 0x04e6, 0x09c3, 0x441e, + 0xe5a1, 0x7045, 0x15c4, 0xa2c2, 0x3f50, 0x6c59, 0xe818, 0xa198, + 0x7d63, 0x5b19, 0x1b4e, 0x582c, 0x367d, 0x09c0, 0x471e, 0xfd92, + 0x82dd, 0x2a61, 0xf41c, 0x4444, 0xbfa1, 0xb59d, 0xd937, 0x0da8, + 0x0f5a, 0xed78, 0xe9cd, 0x7c89, 0xb908, 0x2cfb, 0x5e7a, 0x501b, + 0x41f5, 0x26f4, 0x01d0, 0x1796, 0xe0e0, 0x1910, 0x160e, 0x70f1, + 0xa1c4, 0x2163, 0xaea7, 0x3a9c, 0x880c, 0xabcb, 0x7ec9, 0xe92a, + 0x9b89, 0xb7e8, 0xbc15, 0x19ae, 0xa80e, 0xa3fa, 0x0f41, 0xf678, + 0x3066, 0x22a6, 0x7394, 0xdcf7, 0xe5fd, 0x2c45, 0xe07a, 0x8310, + 0xef70, 0xf1ef, 0x9f11, 0x0fac, 0x1b78, 0x6e2c, 0x8d3a, 0xb59e, + 0xda37, 0x159b, 0xfdc2, 0xd2dd, 0xbf13, 0x079d, 0x6af0, 0x717e, + 0x26d5, 0x20d0, 0x15b6, 0xd0c2, 0xb031, 0x5d62, 0x5028, 0x72f5, + 0xb5e6, 0xa237, 0xca50, 0xf38b, 0xeb33, 0x92ab, 0xdd71, 0x6bec, + 0x656f, 0x9681, 0xd735, 0x7f46, 0x6e3b, 0x9a3a, 0x0cf9, 0x564b, + 0x2193, 0x5ea7, 0x8d1b, 0x949e, 0xd817, 0x25b9, 0x54e3, 0x99b1, + 0x9fca, 0xd4ac, 0xfe75, 0x7dee, 0xd619, 0x5b57, 0x554e, 0x3ca0, + 0x846a, 0xad07, 0x82af, 0x5861, 0x7b7d, 0x757f, 0x0791, 0x66f0, + 0x11b2, 0xf486, 0xde44, 0x46df, 0x3483, 0xe7e2, 0x2367, 0xba85, + 0xb9c8, 0xecfb, 0x62dc, 0x1df6, 0xd04a, 0x3831, 0x352e, 0x42f3, + 0x38c7, 0xc32e, 0xc512, 0xc974, 0xcfb8, 0x33de, 0x8295, 0x6261, + 0xa0f6, 0x1b72, 0x642c, 0xdd90, 0x8aec, 0x5be9, 0xeb4e, 0xefab, + 0x2aef, 0x7a1c, 0x1c6e, 0x405b, 0x80e5, 0x0243, 0x9ca5, 0xa39f, + 0x6a41, 0xc07e, 0x8d21, 0xae9e, 0x039c, 0x4bb4, 0x375e, 0x22d1, + 0x0494, 0x7bc3, 0xcb7f, 0xd49a, 0xc875, 0xc6a9, 0x6a47, 0xc67e, + 0xbd47, 0x43bf, 0x7cd6, 0xe608, 0xc176, 0x8d30, 0xbf9e, 0x8a9d, + 0x2ae9, 0x7c1c, 0x2c08, 0xad7a, 0xffaf, 0xafff, 0x6a8d, 0x0c7e, + 0xd14b, 0x3120, 0x6cb7, 0x0618, 0xe7e1, 0x2067, 0xa2b6, 0x4b50, + 0xd35e, 0x3402, 0x66e2, 0x03b2, 0x65b4, 0x4d81, 0x3238, 0x6c84, + 0x3518, 0x74f3, 0x8380, 0x7f70, 0x583b, 0x217d, 0xb0a7, 0xcb62, + 0xc99a, 0x21b8, 0x75a7, 0xdf91, 0x9bce, 0xf0e8, 0x9000, 0x6653, + 0xb2b2, 0xce40, 0xc3cf, 0x2412, 0xf7f2, 0xb277, 0x0b40, 0xd73c, + 0x7646, 0x26a2, 0x57d0, 0xb282, 0xfe40, 0x48ee, 0x756d, 0x1591, + 0xf7c2, 0x8277, 0x8061, 0x8643, 0x9425, 0x6317, 0xdee7, 0xe5df, + 0x0e45, 0xfa69, 0x41aa, 0x79f4, 0xec5d, 0xc4dc, 0x0f65, 0xd278, + 0x1a13, 0x0d3d, 0x9a5a, 0x6cf9, 0x4818, 0x836d, 0x9270, 0x0671, + 0x8ee1, 0x76ad, 0xcda2, 0x39fc, 0xf03f, 0x4700, 0xe392, 0x7323, + 0x6bf7, 0x7e6f, 0x4f2a, 0x891a, 0xb5da, 0x9e37, 0x21bd, 0x70a7, + 0xf7c4, 0x8477, 0xb007, 0x6b62, 0xeb6f, 0xceab, 0x28cf, 0x4a3e, + 0xb54f, 0x0b37, 0xa03c, 0xd172, 0x0820, 0xaf0f, 0x9a8d, 0xbbf9, + 0xcdd9, 0x42fc, 0x37c7, 0xbbd1, 0xe5d9, 0x0845, 0xca0f, 0xac8b, + 0x06be, 0x41e1, 0x32f4, 0xa084, 0x6972, 0xeb4d, 0xecab, 0x32dc, + 0x8884, 0x23cb, 0x1685, 0xfbf1, 0xd1bb, 0xc120, 0xdb30, 0x1a8a, + 0x943d, 0x7b17, 0x1f7f, 0x4968, 0xfb7c, 0x5cbb, 0x8139, 0xd652, + 0x1057, 0x1997, 0x910e, 0x6042, 0x93d4, 0xaa60, 0xddd8, 0xc2ec, + 0x0f03, 0xb478, 0x3426, 0x42e2, 0x29c7, 0x4a2f, 0xa44f, 0x8236, + 0xc161, 0x9a30, 0x06f9, 0x06e1, 0x1ee1, 0xdf79, 0x73ce, 0x86f7, + 0x2025, 0xe0b6, 0x4f10, 0xb31a, 0x6e51, 0xf03a, 0x4200, 0xcbc7, + 0x6c9a, 0x2b18, 0x850d, 0xc216, 0xf503, 0x5355, 0x17c6, 0xb0e0, + 0x8c62, 0xe58f, 0x5e45, 0x6f1b, 0xb22b, 0x5740, 0x2282, 0x5794, + 0xf682, 0xca66, 0xc58b, 0x5074, 0x2ef5, 0x4058, 0x83e5, 0x1a70, + 0x6e3d, 0x9c3a, 0x3c9f, 0xbb6a, 0x5ed9, 0xf31b, 0x7b33, 0x3b7f, + 0x631d, 0xd4e7, 0xb575, 0x3137, 0x7bb7, 0xbf7f, 0x6b9d, 0x146f, + 0x01d3, 0x1496, 0xf8d3, 0xeb88, 0x29ab, 0x262f, 0xdad0, 0xf29b, + 0xf322, 0x4233, 0xf8c7, 0xff88, 0x88ff, 0x58cb, 0xd17d, 0x0720, + 0xd7f0, 0xba46, 0x7ac8, 0xc86e, 0xdda9, 0xb3ec, 0x9851, 0x77db, + 0xb3b3, 0xc751, 0x9a56, 0x60f9, 0x28d4, 0x513e, 0x6ce4, 0x5518, + 0x6aa0, 0x217e, 0xb3a7, 0xd351, 0x3b02, 0x1e1d, 0x2379, 0xa485, + 0x4836, 0xad6d, 0xe8af, 0x1698, 0xe6f1, 0x3876, 0x722e, 0x6ee6, + 0x473a, 0xd992, 0xa8a8, 0x05fa, 0x1dd2, 0xf44a, 0x1244, 0x1ab5, + 0xab3d, 0x88c9, 0x6ecb, 0x6a3a, 0xbb7e, 0x4ad9, 0x524f, 0x05d7, + 0x30d2, 0x96a6, 0xf035, 0x4d00, 0xb338, 0x4c51, 0xea29, 0x80ba, + 0x5d43, 0x7128, 0x70d5, 0x85c4, 0x0b16, 0x813c, 0xd352, 0x3802, + 0x062e, 0xd1e1, 0x9b20, 0x1ee8, 0xd679, 0x3b57, 0x4b1d, 0x9e5e, + 0x48bd, 0x266d, 0x98d0, 0xf6db, 0x9366, 0x1860, 0x6e1f, 0xbe3a, + 0x268c, 0x79d0, 0xc85d, 0xeea9, 0x20fe, 0x3bb6, 0xaa1d, 0xa0d8, + 0x3572, 0x1ef3, 0xcd79, 0xe2fc, 0x1532, 0x54c2, 0xb8b1, 0x9dea, + 0xe48e, 0x5754, 0x3682, 0xf6c0, 0x8866, 0xc1cb, 0x3030, 0x74a6, + 0xd680, 0xc257, 0xb403, 0x4f26, 0x851a, -1, -1, -1 +}; + + +static unsigned short +chksum (unsigned short init, unsigned n, const unsigned char *s) +{ + unsigned short crc; + + for (crc = init; n > 0; n--) + crc = crc_table[(crc ^ *s++) & 0xff] ^ (crc >> 8); + return crc; +} + + +static int +find_init (int len) +{ + return len < 1024 ? crc_init[len] : -1; +} + +/** + * canon_psa50_gen_crc + * @pkt: packet data on which to calculate checksum + * @len: length of @pkt + * + * Calculate a CRC on a Canon packet + * + * Returns: CRC value. On error doesn't return at all but exits + * program with a message to stderr. + * + */ +int +canon_psa50_gen_crc (const unsigned char *pkt, int len) +{ + int init; + + init = find_init (len); + if (init != -1) + return chksum (init, len, pkt); + fprintf (stderr, _("FATAL ERROR: initial CRC value for length %d unknown\n"), len); + return -1; +} + + +static int +guess (const unsigned char *m, int len, int crc) +{ + int i; + + for (i = 0; i < 0x10000; i++) + if (chksum (i, len, m) == crc) + return i; + fprintf (stderr, _("unable to guess initial CRC value\n")); + return -1; +} + +/** + * canon_psa50_chk_crc: + * @pkt: packet + * @len: length of @pkt + * @crc: presumed checksum + * + * Calculate a new checksum for the packet and compare it with an existing checksum to detect transmission errors. + * + * Returns: 1 on success or if checksum calculation would fail + * 0 if checksums don't match + * + */ +int +canon_psa50_chk_crc (const unsigned char *pkt, int len, unsigned short crc) +{ + unsigned short this; + int init; + + init = find_init (len); + if (init != -1) + return chksum (init, len, pkt) == crc; + this = guess (pkt, len, crc); + fprintf (stderr, + _("warning: CRC not checked (add len %d, value 0x%04x) #########################\n"), + len, this); + return 1; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/crc.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/crc.h new file mode 100644 index 00000000..0e786ca8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/crc.h @@ -0,0 +1,7 @@ +#ifndef CRC_H +#define CRC_H + +int canon_psa50_gen_crc(const unsigned char *pkt, int len); +int canon_psa50_chk_crc(const unsigned char *pkt, int len, unsigned short crc); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/5d-capture b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/5d-capture new file mode 100644 index 00000000..e7febb37 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/5d-capture @@ -0,0 +1,153 @@ +Here is a dump of the comments that came with the patches for EOS 5D +capture implementation. From: Paul Walmsley + +a01_start_end_remote_control.patch: + +Replace the open-coded CANON_USB_CONTROL_INIT and +CANON_USB_CONTROL_EXIT commands with functions, and set a flag in the +host computer's camera state when the camera is in remote release +control. + + +a02_add_capture_size_class.patch + +gphoto2's Canon driver currently supports two capture modes: +canon_int_capture_preview(), which captures a thumbnail to the host +computer; and canon_int_capture_image(), which captures a full-sized +image to the camera's drive. We'd like to control each parameter -- +the capture image size class and the capture destination -- +independently, without breaking compatibility with current +applications. So, add a configuration option, "Capture size class," +by which the user can specify whether to operate in "compatibility +mode" (the default -- represents the driver's previous behavior), or +whether to capture thumbnails, or full-sized images. capture_preview() then +always captures to the host computer, and capture_image() always captures to +the camera's drive, no matter what the image's size. + +Our primary interest is in remote capture of full-sized images to the +host computer. We've observed that on the EOS 5D, with these patches +applied, it's possible to capture full-sized images to the host +computer or to the camera's drive. Capturing thumbnails alone is supported +only in name by these patches -- further work will be required to make that +function. + +a03_add_eos_5d_usb_id.patch + +Add the USB ID for the EOS 5D in PC connection mode. (0x04A9, 0x3102 +is the corresponding ID for PTP mode.) + +b01_add_canon_usb_dialogue_full.patch + +Split canon_usb_dialogue() into two functions: +canon_usb_dialogue_full(), which returns the full camera response +packet, needed by canon_usb_long_dialogue() (and also by +canon_int_get_release_params(), later in this patch series). + +b02_add_canon_control_dialogue.patch + +Add canon_int_do_control_dialogue() and +canon_int_do_control_dialogue_payload(). These functions execute a +remote capture command on the camera and return the camera's response. +canon_int_do_control_dialogue_payload() gives the caller full control +over the payload. We need these to retrieve and set the camera's +release parameters. + +b03_add_get_release_params.patch + +Add support for querying the camera's shutter speed, ISO speed, +aperture, resolution, and focus mode via gphoto2's configuration +interface. Tested on the Canon EOS 5D. + +c01_add_set_release_params.patch + +This patch adds remote control over "release parameters" -- shutter +speed, ISO speed, aperture, resolution, autofocus mode -- for the +Canon EOS 5D camera. You must build with CANON_EXPERIMENTAL_20D and +CANON_EXPERIMENTAL_SET_RELEASE_PARAMS defined for this code to be +compiled. This patch also depends on the Canon EOS 5D 'query release +parameters' patch series posted earlier, also available from + + +PLEASE NOTE THAT THESE PATCHES HAVE ONLY BEEN TESTED WITH THE CANON +EOS 5D. I suspect that they might work with other Canon "class 6" +cameras, such as the EOS 20D, the EOS 350D, etc., but do not know for +sure. If you wish to use this code, please first query the camera's +current parameters, and ensure that the values returned match what is +displayed on the camera, before trying any parameter set operations. +USE THIS CODE AT YOUR OWN RISK. It seems to work fine on the EOS 5D, but +that's all I can test here. + +These release parameters can be changed via libgphoto2's configuration +interface. For example, to query the camera's current shutter speed, +try: + +gphoto2 --get-config "Shutter speed" + +The shutter speed can be set via the following: + +gphoto2 --set-config "Shutter speed"="1/30 second" + + +Thanks to the Internet Archive, , for funding +the development of this code. This patch is used in the Internet +Archive's book scanner. + +The patch applies against libgphoto2-2.1.99 and current svn. A copy +of this patch can also be downloaded from +. + +d01_add_secondary_image_support.patch + +This patch adds support for downloading "secondary images" -- the +JPEGs created when the capture resolution is set to the "RAW + JPEG" +modes -- for the Canon EOS 5D camera. You must build with +CANON_EXPERIMENTAL_20D and CANON_EXPERIMENTAL_SECONDARY_IMAGE defined +for this code to be compiled. This patch also depends on the Canon +EOS 5D 'query release parameters' patch series posted earlier, also +available from + + +Note that currently the code does nothing with the downloaded +secondary image - it merely discards it. + +The primary motivation for this patch is to work around a nasty bug in +the Canon EOS 5D firmware. While shooting RAW images directly to the +host computer, the camera can shoot no more than 137 images before +refusing to transfer any further image data. The camera menus still +work, the shutter will still release on command, but no image data can +be downloaded until the camera power switch is toggled. Chuck +Westfall of Canon USA confirmed the bug and provided some helpful +workarounds; the most practical for us was to shoot in a "RAW + JPEG" +mode. However, this setting requires extra protocol support on the +host computer side - otherwise, the camera will stop transferring +images after only 5 or 6 shots. This patch provides this extra +support. + +The secondary image code is marked with a separate define because it +attempts to automatically determine whether a secondary download is +necessary based on the camera's current capture resolution setting. +This works fine on the 5D, but other Canon cameras may have different +resolution setting bytes which could confuse this code. Testers welcome! + +Thanks to the Internet Archive, , for funding +the development of this code. This patch is used in the Internet +Archive's book scanner. + +The patch applies against libgphoto2-2.1.99 and current svn. A copy +of this patch can also be downloaded from +. + +e01_return_photographic_status.patch + +When the camera cannot capture an image due to a 'photographic failure,' +return a gphoto2 error code resembling the actual failure code, rather than +simply returning a generic error. Tested on the Canon EOS 5D. + +Thanks to the Internet Archive, , for funding +the development of this code. This patch is used in the Internet +Archive's book scanner. + +The patch applies against libgphoto2-2.1.99 and current svn. A copy +of this patch can also be downloaded from +. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/Makefile.am new file mode 100644 index 00000000..4a8aa0db --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/Makefile.am @@ -0,0 +1,10 @@ +# The name of the module. +DOC_MODULE=canon + +# The directory containing the source code (if it contains documentation). +DOC_SOURCE_DIR=$(top_srcdir)/camlibs/canon + +# include common doc generation rules +include $(top_srcdir)/libgphoto2_port/doc/DocRules.am + +EXTRA_DIST += Protocol.xml diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/Protocol.xml b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/Protocol.xml new file mode 100644 index 00000000..52f4bf52 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/Protocol.xml @@ -0,0 +1,5641 @@ + + + + + + + + + + + + + + + + <phrase role="strong">Canon PowerShot Series Transfer + Protocol Description</phrase> $Date$ + + + Introduction + +
+ About this document + + The following document is an overview of the Canon + PowerShot serial and USB transfer protocols. It should be a + valid reference for models ranging from PowerShot A5 to + S20. It has been updated for cameras including the EOS + D30, EOS D60, and PowerShot G2. It has not been verified + against the EOS 1D or EOS 1Ds, hence there is no section on + FireWire communication. + + No information present in this document was obtained from + Canon. Everything is the result of observations and logical + analysis. It is by no means guaranteed to be accurate, nor + even right. Nevertheless, a lot of people have managed to + communicate with their PowerShot cameras using these commands, + so they cannot be completely wrong either! + + An implementation of this communication protocol was made + for the GPhoto digital camera software, available at + www.gphoto.org. + +
+ +
+ Camera Models Covered + + Here is a list of camera models we know about, those we + think we understand, and those we're still working on. The + introduction dates come from DPReview.com. The list + is here to give you some sort of idea of how current this + document is. Notice that the PowerShot S and SD series cameras + are usually called that only in North America; they are generally + "Digital IXUS" something in Europe and most of Asia, and + "Digital IXY" something in Japan. I suspect it all has to do + with trying to beat gray-market imports. Usually these + brothers under the skin will share a USB product ID, but some + early cameras (e.g. PowerShot S100 aka IXY Digital aka Digital + IXUS) have different ID's. + + + File attributes + + + + Camera modelDate of introductionKnown protocol? + + + PowerShot 60013-May-96NO + PowerShot 35016-Jul-97NO + PowerShot Pro7027-Mar-98yes + PowerShot A527-Mar-98yes + PowerShot A5 Zoom18-Jan-99yes + PowerShot A5030-Mar-99yes + PowerShot S1027-Aug-99yes + PowerShot S2006-Jan-00yes + EOS D3017-May-00yes + PowerShot S100 Digital Elph + IXY Digital + Digital IXUS + 17-May-00yes + PowerShot G118-Sep-00yes + Canon PowerShot Pro90 IS06-Jan-01yes + PowerShot A2011-Jan-01yes + PowerShot A1011-Jan-01yes + PowerShot S30011-Jan-01yes + PowerShot S110 + Digital IXUS v + 10-Apr-01yes + PowerShot G217-July-01yes + EOS-1D25-Aug-01NO + PowerShot S3002-Oct-01yes + PowerShot S4002-Oct-01yes + PowerShot A3022-Feb-02yes + PowerShot A4022-Feb-02yes + EOS D6022-Feb-02yes + PowerShot A10022-Feb-02yes + PowerShot S200 + Digital IXUS v2 + 13-Mar-02yes + PowerShot S330 Digital ELPH + Digital IXUS 330 + + 13-Mar-02yes + PowerShot A20006-May-02yes + PowerShot S4516-Aug-02yes + PowerShot S230 Digital ELPH + Digital IXUS v3 + 16-Aug-02yes + PowerShot G319-Aug-02yes + EOS 1Ds24-Aug-02NO + PowerShot A7027-Feb-03yes + PowerShot A6027-Feb-03yes + PowerShot S5027-Feb-03yes + PowerShot A30027-Feb-03yes + PowerShot S400 + Digital IXUS 400 + 27-Feb-03yes + EOS 10D27-Feb-03yes + PowerShot SD100 + Digital IXUS II + 02-Apr-03yes + PowerShot G502-May-03yes + + PowerShot A8020-Aug-03yes + EOS Digital Rebel + EOS 300D + Kiss Digital + + 20-Aug-03yes + PowerShot SD10 Digital ELPH + Digital IXUS i + + 12-Sep-03NO + EOS-1D Mark II29-Jan-04NO + PowerShot S410 + Digital IXUS 430 + IXY Digital 430 + + 09-Feb-04yes + PowerShot S500 + Digital IXUS 500 + IXY Digital 500 + + 09-Feb-04yes + PowerShot SD110 + Digital IXUS IIs + + 09-Feb-04NO + PowerShot A3109-Feb-04yes + PowerShot Pro19-Feb-04NO + PowerShot S1 IS9-Feb-04yes + PowerShot A759-Feb-04yes + PowerShot S6010-May-04yes + PowerShot A8520-Jul-04yes + PowerShot G619-Aug-04NO + PowerShot A40019-Aug-04yes + EOS 20D19-Aug-04yes + PowerShot A9519-Aug-04yes + PowerShot S7019-Aug-04yes + EOS-1Ds Mark II21-Sep-04NO + Digital IXUS 40 + PowerShot SD300 + IXY Digital 50 + + 21-Sep-04NO + Digital IXUS 30 + PowerShot SD200 + IXY Digital 40 + + 21-Sep-04yes + Digital IXUS i5 + PowerShot SD20 + IXY Digital L2 + + 21-Sep-04yes + PowerShot A51020-Jan-05NO + PowerShot A52001-Feb-05NO + PowerShot SD400 + IXUS 50 + IXY Digital 55 + + 17-Feb-05NO + PowerShot SD500 + IXUS 700 + IXY Digital 600 + + 17-Feb-05NO + Digital Rebel XT + EOS 350D + EOS Kiss Digital N + + 17-Feb-05NO + PowerShot S2 IS + 22-Apr-05NO + + +
+ +
+ +
+ Contributors + This document was written thanks to the efforts of: + + Wolfgang G. Reissnegger, Werner Almesberger, Philippe + Marzouk, Mikael Nyström, Edouard Lafargue, Stephen + H. Westin. + +
+ +
+ Copyright + + The Canon Protocol information. Copyright © 2000, + 2003, 2004, 2005 by its respective authors. (see the “Contributors” + section). + + This program is free software; you can redistribute it + and/or modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later + version. + + This program is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more + details. + + You should have received a copy of the GNU General Public + License along with this program; if not, write to the: + + Free Software Foundation, Inc., 675 Mass Ave, Cambridge, + MA 02139, USA. + +
+ +
+ To Do + (send updates to the gphoto-devel mailing-list) +
+ Serial + + + Update get_directory description to match what + was discovered in USB. + + + Describe the structure of the initial ID packet. + + + Find out what the real meaning of the “fffb” command is. + + + Describe error recovery protocol. + + + Describe format of low batt condition. + + + Find out the rest of the commands that were discovered in USB: + + + Make directory + + + Delete directory + + + Change attribute + + + etc. + + + + + Describe File upload. + + + Describe each command in detail. + + +
+
+ USB + + + Figure out at least basic functionality for newer protocol + + + Delete file + + + Capture sequence + + + Set file attributes + + + + + Find out the meaning of more values of the status + code returned in the word at 0x50. + + +
+
+ General + + + Add cross-reference links. + + + Integrate serial and USB sections; there's really + quite a bit of redundancy and overlap. + + +
+
+ Changelog + 09 May 2000: first version with both USB and serial protocols described in the same document. + 05 Dec 2002: import to AbiWord for XML output. + 28 Jan 2003: Convert DocBook XML, expand USB information + + + $Log$ + Revision 1.22 2005/07/29 20:15:26 swestin + Changed "Specificatyions" to "Description" in title; this is more truthful, + as we aren't specifying, just trying to describe what's there. + + Revision 1.21 2005/06/21 16:45:13 swestin + More info on PowerShot S1 IS. + + Revision 1.20 2005/06/10 01:38:26 swestin + More info on EOS 20D. + Cross-referenced new command codes to old. + Some info on various models from which I have now seen debug logs. + Started to convert ASCII art in serial section to HTML tables. + + Revision 1.19 2005/04/28 18:03:36 swestin + Added some new info from init packet for certain models. + Corrected init packet info for Optura 20, Optura 40 camcorders. + Corrected one dangling link. + + Revision 1.18 2005/04/27 19:28:22 swestin + We now know the contents of the init packet from PowerShot SD200. + + Revision 1.17 2005/04/14 20:31:10 swestin + Corrected one erroneous output dump. + + Revision 1.16 2005/04/04 15:16:37 swestin + Added information basically related to newer protocol (EOS 20D), + especially remote control subcodes 0x1b/0x1c; also added a bit on D60. + + Revision 1.15 2005/03/31 17:22:10 swestin + More insight into "get picture abilities" response. + Content of init packet from EOS 350D, which might be a "new" camera + like the 20D. + "Delete file" for the new protocol (20D) is now understood. + Slight revision of "TODO". + + Revision 1.14 2005/03/25 18:49:27 swestin + Added S30, A510, A40, A200 to table of data in init response. + + Revision 1.13 2005/03/24 22:03:21 swestin + Corrected some XML errors. + Added info on command codes (new protocol) found by stupidly sending; + these are the ones that got a reply. + + Revision 1.12 2005/03/21 13:44:07 swestin + Updated copyright notice. + Added more info on new protocol (EOS 20D). + Added note on differing response lengths to "get camera photo abilities" + with some newer cameras. + + Revision 1.11 2005/03/17 18:12:01 swestin + Minor fix to "Models Covered" table. + Added a model or two to the table of initial responses. + + Revision 1.9 2005/03/09 17:07:39 swestin + Tidied up table of known models. + More info on camera initial response message. + Corrected length of response from "get photo abilities" in new protocol. + + Revision 1.8 2005/03/08 20:38:40 swestin + Added section with list of known cameras. + More info on EOS 20D, in various places. + Details on EOS 300D's apparent oddball behavior during remote capture. + Added A400 info on initialization response packet. + + Revision 1.7 2005/03/04 20:46:51 swestin + Rewrote a bit on the response packet in initialization. + Tightened borders on all tables. + Added A400 to list of camera models for which we know the initialization + response. + + Revision 1.6 2005/01/15 21:00:24 swestin + Fixed inclusion of CVS log info in document. + Added more info on response packet in camera initialization. + + Revision 1.5 2005/01/04 17:17:11 swestin + Fixed various typographical errors. + Added info observed from EOS 300D. + Regularized structure of USB command descriptions. + Added real example of interrupt packet received at camera init. + Added formatted example of directory read. + +
+
+
+ + Serial Protocol Description +
+ Introduction + We have chosen to describe the Canon Serial Protocol as successive layers. + I used OSI-like names but the protocol is not really a network protocol. + + + Data link layer: + Responsible for framing, escaping and checksumming messages + + + Transport (packet) layer: + Responsible for dividing messages into packets of known length. + This layer also handles handshaking, retries, etc. + + + Session (message) layer: + Last layer, carrying whole messages, such as download requests, + image data, and such information. + Currently, all these layers are documented, but we still lack + information on how to handle protocol retries, and errors in general. + + +
+ +
+ Data link layer + The following figure illustrates the + lower layers of the protocol used by some + Canon PowerShot cameras: + Layers of the serial protocol + + + + + + Example: payload “00 C0 01” + + + [Upper layers] + │↑ + ││00 C0 01 + <CRC> + ││00 C0 01 12 34 (fictious CRC) + <Escaping> + ││00 7E E0 01 12 34 + <Framing> + ││C0 00 7E E0 01 12 34 C1 + ↓│ + [Wire format] + + +
+ The upper layers are described later in this file. +
+ Serial timing + + Initialization: PC sends sequences of “U” + bytes at 9600 bps until the camera responds by sending its + ID. Each sequence has a length of 2-8 bytes. The interval to + wait between sequences is 0.9-1.04 sec (measured for 8 + bytes). + + When the camera sends its ID, the computer can ask it to + change to a higher speed. The speed can go up to 115200 + bps. Afterward, a one/two seconds command timeout should be + set. E.g. retrieving a directory with 1200 files takes + several seconds. Opening a large capacity flash card takes + time as well. + +
+
+ Framing + + Each message begins with the byte C0 and ends with the + byte C1. The length of a message including the framing bytes + and any escape bytes (see below) never exceeds 1024 + bytes. + +
+
+ Escaping + + The value 7E is used to XOR the following byte with the + value 0x20. This is used for the following three + combinations: + + 7E 5E → 7E + 7E E0 → C0 + 7E E1 → C1 + +
+
+ CRC + + The last two bytes of a message (without framing and + escaping) contain a 16-bit “CCITT” CRC in + little-endian order. The CRC is calculated over the entire + message, without framing and escaping, and without including + the CRC bytes. The CRC generator Assuming + the use of + http://www.cse.fau.edu/~sam/course/dc_htm/src_dir/crc_att.c, + generator polynomial 0102010 (octal), the initial value of + “crc” is the CRC generator's initial value (in + the original code always zero). is + initialized to a length-dependent value. The algorithm for + the initial value is not known. However, a table of values + emitted by the camera has been compiled and is in + crc.c:crc_init. It is indexed by the length, i.e. the number + of bytes over which the CRC is taken. + + +
+
+
+ Transport layer + + Communication is done through messages, which may be split + into several fragments, which are then sent as individual + packets. Packets are framed as described earlier in this + file. + +
+ Packet level + + Each packet consists of the following two-byte header: + <sequence> <ptype> + + There are two sequence numbers: the message sequence + number <mseq> and the fragment sequence number + <fseq>. They are counted independently and start at + zero. <mseq> is reset at the beginning of a session, + while <fseq> is reset at the beginning of each + message. + + The following packet types are known: + 00 Message fragment + 03 Speed message from computer + 04 EOT + 05 ACK + 06 Compatibility? + + A packet with type 03 is sent once, early in the + initialization for the computer to ask the camera to switch + to a higher speed. + + Each message ends with an EOT packet, which is then + confirmed by an ACK packet. + + EOT has the + following format: + + +xx 04 xx 00 00 00 +| | +| indication of the message length. Known values: +<mseq> 00 empty message (no fragments) + 01 short message (one fragment) + 03 used when uploading + ff maximum length data packet, more to follow + else data packet, at end (observed values: 0f, 7f) + + + ACK has the following format: + +xx 05 xx 00 00 00 +| | +| error code +<mseq> 00 No error, acknowledged + 01 Not acknowledged + FF retransmit last sequence + else other values not known + + + A packet with type 06 is sent once, as the first packet + coming from the camera. It contains a length, just like a + normal message fragment, but the message structure is + different. + + An empty message can be used to test if the camera is + still responding. If yes, it will respond with an + ACK. Example: + + PC→CAM xx 04 00 00 00 00 + CAM→PC xx 05 00 00 00 00 + +
+
+ Message fragment level + + Message fragments have the following structure: + + +xx 00 xx xx ... +| | | | +| | | fragment data +| | data length, MSB +| data length, LSB +<fseq> + + + The data length is the length (in bytes) of the fragment + data that follows the length. Fragment data is simply + concatenated to form the complete message. + +
+
+ +
+ Session (message) Layer + + All messages (except the one with type 03) have the + following structure: + + +00 02 00 00 xx 00 00 xx xx xx 00 00 ... + | | | | | + | | | | message payload + | | | message length, MSB + | | message length, LSB + | direction code <dir> + message type <mtype> + + + The message length is the length of the entire message, + including the header shown above. + + The first four bytes of the message payload <fffb> + seem to depend on the message type. The following combinations + have been sighted: + + + Sequence numbers observed in serial streams + + + + <mtype><dir><fffb>Operation + + + 011214 f7 8a 00 + Identify camera request + 012214 f7 8a 00 + Identify camera response + 01116a 08 79 04 + Download image request + 0111aa 06 79 04 + Download “thumbnail” request (see below) + 01216a 08 79 04 + Image data + 0121aa 06 79 04 + “Thumbnail” data + 0311 + Upload file + 031278 f3 64 01 + Get Date + 041208 d3 9d 00 + Set date + 0512fc d2 9d 00 + Change Owner name + 0911d8 f7 8a 00 + Disk info request + 0921d8 f7 8a 00 + Disk info response + 0a11dc f7 8a 00 + Get disk(s) request + 0a21dc f7 8a 00 + Get disk(s) response + 0a1270 f6 8a 00 + Power Supply Status + 0a2270 f6 8a 00 + Power Supply Status response + 0b1194 f6 8a 00 + List without date request + 0b2194 f6 8a 00 + List without date response + 0b11a8 f6 8a 00 + List with date request + 0b21a8 f6 8a 00 + List with date response + 0d118c f4 7b 00 + Delete image request + 0d218c f4 7b 00 + Delete image response + 0e11— — — — + Set file attributes. + + +
+ + Important note: it seems that the “fffb” part + can be set to 0 in every case, and the commands will still + work. The exact meaning of this part of the packet is + unknown. It is probably used as a unique ID for each + transaction and can be chosen at random each time. + +
+ Identify camera + The identify camera request has no data. + + The identify camera response has the following structure: + 00 00 00 00 00 02 00 00 00 00 00 01 <camera_name> 00 (more 00s) + + On the S10, the response has the following structure: + 00 00 00 00 00 04 00 00 00 00 00 01 and then: + <firmware rev> (32 bit word) (offset: 0x08) + <model name> (C string) (offset: 12 / 0x0c) + <owner name> (C string) (offset: 44 / 0x2c) + + Firmware version: 04 03 02 01 is version 1.2.3.4, 01 00 + 00 01 is version 1.0.0.1 + + Example (full packet): for a PowerShot S10 with firmware 1.0.0.0 + + RECV: (98 bytes) + +00000000: 00 00 5C 00 02 00 00 00 01 00 00 22 5C 00 00 00 - ..\........"\... +00000010: 14 F7 8A 00 00 00 00 00 00 04 00 00 00 00 00 01 - ................ +00000020: 43 61 6E 6F 6E 20 50 6F 77 65 72 53 68 6F 74 20 - Canon PowerShot +00000030: 53 31 30 00 00 00 00 00 00 00 00 00 00 00 00 00 - S10............. +00000040: 45 64 6F 75 61 72 64 20 4C 61 66 61 72 67 75 65 - Edouard Lafargue +00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - ................ +00000060: 9C EA - .. + +
+ +
+ Get Power Status + Offsets in the payload: + + 0x04 contains a byte with power status: 0x6=good, 0x4=bad + 0x07 contains a byte with power type: 0x10=ac-adapter, 0x30=battery + Example (full packet): + RECV: (30 bytes) + + +00000000: 00 00 18 00 02 00 00 00 0A 00 00 22 18 00 00 00 - ...........".... +00000010: 70 F6 8A 00 00 00 00 00 06 00 00 30 B5 5A - p..........0.Z + + +
+ +
+ Change Owner Name + The name (payload) can be 30 characters max. +
+ +
+ Set Date + + The payload of this message is 4 bytes. It must be the + same Unix format as in the directory with date request. For + example, 01/01/2000 is 80 43 6D 38. + +
+ +
+ Get disk(s) + The get disk(s) request has no data. + + The get disk response has the following structure: + 00 00 00 00 <disk_name> 00 + + Disk name example: "C:" +
+ +
+ Disk info + Disk info requests have the following structure: + +<root_name> 00 + +Disk info responses have the following structure: +00 00 00 00 xx xx xx xx xx xx xx xx + | | + | Free space (in bytes) + Total capacity (in bytes) + + + Root name example: "C:\" (The trailing slash is + required.) + +
+ +
+ List (show directory contents) + + Note: It seems that directory listing as described in + the USB part is more accurate, when it comes to the meaning + of the first byte (“date/without date”). + + List requests have the following structure: + + +xx <directory_name> 00 00 00 +| +00 if with date, 02 if without date + + + Directory name example: "C:\PWRSHOT", "D:", or "D:\.", + but not "D:\" (trailing slash), or "D:\.\FOO" (dot not + allowed in path ?) + + List responses have the following structure: + + Failure: + +00 00 00 00 01 00 00 00 00 00 00 00 + + + Success: + +00 00 00 00 xx 80 00 00 00 00 00 00 00 00 00 00 + | + 01 if last message, 00 if more + +<directory_name> 00 +<type> 00 <size> <date> <entry_name> 00 +... +<type> 00 <size> <date> <entry_name> 00 (many 00s) + + + <type> is one byte containing the file attributes: + + File attributes + + + + bit0 (0x01)Set if this file is protected from deletion + bit4 (0x10)Set if this directory contains an item but was not recursively entered + (NOT used with the “set attributes” command) + bit5 (0x20)Set if the file has not yet been downloaded (must be manually switched) + bit7 (0x80)Set if this directory was entered recursively + (NOT used with the “set attributes” command) + + +
+ + <size> is the size in bytes. Directory size is always 0. + + Entry name example: "AUT_1201.JPG" or "MISC" + + The date is a four bytes Unix-style date. The list + without date responses also contains the four data bytes, + but sets them to zero. + + Note: it's unclear if the list with/without date + commands differ in any other way than the inclusion of the + date. + + If the directory is so large that additional messages + are needed, they have the following structure: + + +00 00 00 00 xx <entry> + | + 1 if last message, 00 if more + + + The boundary between messages is always chosen such that + the terminating 00 of an entry is the last byte in the + earlier message. + +
+ +
+ Download and Data + + Download requests have the following structure: + + +00 00 00 00 00 xx 00 00 <name> 00 + | + Length of name (including terminating \0) + + + Data messages have the following structure: + +00 00 00 00 xx xx xx xx xx xx xx xx xx xx xx xx xx 00 00 00 ... + | | | | | + | | | | data + | | | 00 if more, 01 at end + | | data size in this message + | current offset + total length + + + All lengths are measured in bytes. + + The camera only sends the first 10813 bytes from the + image for the thumbnail download request. However it is not + a valid thumbnail image, the first part is the EXIF header, + the second part is the thumbnail itself between a FF D8 and + a FF D9, the remaining is the beginning of the + picture. + + The camera always sends 8 messages then waits for an ACK + from the computer. If the computer has not received + everything, it sends an ACK with an error value asking to + retransmit one of the eight packets sent. These error values + are not yet known. + +
+
+ Upload file + + The serial upload protocol description is not done + yet. These are just ideas on what it could be. Maybe it's + right, maybe it's wrong. + + This command sends a file to the camera. + Request structure: + xx 00 00 00 00 xx 00 00 <name> + Each data block has the following format: + 00 00 00 02 XX XX XX XX - YY YY YY YY filename - datablock + XX XX XX XX : offset within the file for this block + YY YY YY YY : len2: length of this block + filename : 0-terminated string + datablock: the data itself. +
+
+ Switch Camera off + + In order to switch the camera off, you need to send the + following characters (directly, without extra + framing): + + C0 00 02 55 2C C1 + C0 00 04 01 00 00 00 24 C6 C1 +
+
+ Low Battery warning + + If the camera batteries run too low during a transfer + and the camera needs to switch itself off, it will send a + special packet just before going down. You can see how it is + handled in psa50.c + +
+
+
+ + + + + + + USB Interface + + Notes + When mentioning word, 32bit word little-endian is implied. + References to usb11.pdf (Chapter 9.3 page 199): + http://www.usb.org/developers/data/usbspec.zip (1.8Mb) + + + bmRequestType is 0xC0 during read and 0x40 + during write. + + bRequest is 0x4 if length of data is >1, + 0x0c otherwise (length >1 ? 0x04 : + 0x0C) + + wValue differs between + operations. + + wIndex is always 0x00 + + wLength is simply the length of + data. + + + + + In Linux sending/receiving commands is using + usb_control_msg (in usb.c). + + + + + usb11.pdf nameusb.c name + + + bmRequestTyperequesttype + bRequestrequest + wValuevalue + wIndexindex + wLengthsize + + + + + + +
+ Init of camera + + + Control_transfer_read requesttype=0xC0 value=0x55 + length=1 Camera responds with following data (single + char): + “A” Camera was already active + “C” Camera was woken up + “I” Unknown (some kind of error; seen with a hotplug problem on Linux) + “E” Unknown (some kind of error) + + + Control_transfer_read requesttype=0xC0 value=0x1 length=0x58 + The first 0x48 bytes can be trashed, save the last 0x10 bytes and use them as data in next step. + Example: + +00000000 18 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000040 01 00 02 00 43 30 A9 04-00 08 00 00 FF FF FF FF ....C0.......... +00000050 00 FD 00 00 00 FD 00 00 ........ + + + The bytes 0x40-0x43 seem to vary from camera to camera: + the S20 here has 01 00 02 00. These bytes might + identify which version of the protocol is used. The following + table summarizes our observations to date. + + Unknown contents of response packet + + + + + Models0x400x440x480x4C0x500x54 + + + G1, Pro90 IS, Digital IXUS00 05 07 00USBid0x800 (2048)-10xfd00 (64768)0xfd00 (64768) + S10, S2001 00 02 00USBid0x800 (2048)-10xfd00 (64768)0xfd00 (64768) + G2, D30, D60, 300D, S110, A10, A20, S30, S30001 00 05 03USBid0x800 (2048)-10xfd00 (64768)0xfd00 (64768) + 300D01 00 05 83USBid0x800 (2048)-10xfd00 (64768)0xfd00 (64768) + G3, A60, A70, A75, A80, A300, A400, A510, S45, S50, S230, S400, SD20001 06 15 83USBid0x800 (2048)-10xfd00 (64768)0xfd00 (64768) + S1 IS01 06 15 8304 a9 30 850x800 (2048)-10xfd00 (64768)0xfd00 (64768) + 20D01 06 15 830x800001750x800 (2048)0x10000 (65536)0xfd00 (64768)0x10000 (65536) + 350D01 06 15 830x800001890x800 (2048)0x10000 (65536)0xfd00 (64768)0x10000 (65536) + Optura 200 MC camcorder03 05 04 81USBid0x800 (2048)-10xfd00 (64768)0xfd00 (64768) + Optura 20, Optura 40 camcorders03 05 04 81USBid0x200 (512)-10x200 (512)0xfd00 (64768) + S200, S330, A30, A40, A20003 05 15 81USBid0x800 (2048)-10xfd00 (64768)0xfd00 (64768) + + +
+ + In the older version of the protocol, the USB vendor and + product ID are normally contained in bytes 0x44-0x47 of this packet: + here 0x04A93043 for vendor 0x04a9, product 0x3043 identifies + this as a PowerShot S20. + Unfortunately, the meaning of these + bytes seems to have changed in the newer protocol; for an + EOS 20D, we get 0x80000175, which is identical with bytes + 0x56-0x59 of a response to the Get Photo Abilities + request. This is interesting, because the same bytes wind up + in each JPEG or CR2 file as a LONG value for tag 0x10 within + the MakerNote. That may be a model identifier for the + camera. + Even stranger, there seems to be a group of cameras + (apparently using the older protocol) that all report 0x3085 + as the product ID, which is correct for the PowerShot G5. + + The bytes 0x48-0x57 also vary from camera to camera. I + think they are 4-byte integers, and suspect that they specify + maximum transfer sizes in some way. + +
+ + If the response to step 1 was 'A', + Control_transfer_read requesttype=0x4 value=0x4 length=0x50. Example: + +0000 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 00 08 00 00 ff ff ff ff 00 fd 00 00 00 fd 00 00 ................ + + + This looks to me like the payload (here from an EOS + D30) duplicates the last 16 bytes of the previous + packet. + + Throw away the data and we are finished with the + initializationMany cameras fail the first + camera command after this (the command response is + returned without the first 0x40 bytes). It seems Canon got + the same problem and worked around it in the Windows + driver instead of fixing the firmware. The workaround is + to retry the first camera command (Identify camera is a + suitable command) up to four + times.. + + + + If the response to step 1 was 'C', + + Take the packet from step 2, change the byte at offset + 0 to 0x10, move the last 0x10 bytes to position 0x40 and + Control_transfer_write requesttype=0x40 value=0x11 + length=0x50 + + + PC sign should now appear on the LCD. Not all cameras have PC signs though. + + + We should now read a total of 0x44 bytes from bulk_in, + but some cameras are picky at this stage and we must first + read 0x40 bytes and then 0x4 bytes (the symptoms if not + doing this right is that camera initialization only works + every second time). + + Newer Canon USB cameras return 0x54 0x78 0x00 0x00 + ('Tx\0\0') under some circumstancesIt + seems this was due to an error in the init sequence + described in earlier versions of this document. When done + as the Windows driver does it, we always get 00 00 00 00 + back as the last four bytes of step 5.as + the last four bytes in either of these two reads. If we + get that from the first read we should not try to read the + next 0x4 bytes. Example: + +00000000 04 00 00 00 02 03 00 00-00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000040 00 00 00 00 .... + + + + + Read 16 (0x10) bytes from the interrupt endpoint. Some + newer cameras (e.g. the PowerShot S50) return the bytes 8 + at a time, so two reads may be needed. The code in bytes + 0x44-0x47 is 0x20. Example (EOS 300D): + +0000 02 00 00 00 20 00 00 00-10 00 00 00 00 00 00 00 .... ........... + + Note: The EOS 20D seems to return the 16 bytes (8 at a + time) after the + “Power supply status” command, rather + than here. + + +
+
+ +
+ USB Command Protocol +
+ Structure of a command block + +0000000: xx xx xx xx yy yy yy yy - 00 00 00 00 00 00 00 00 +0000010: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 +0000020: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 +0000030: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 +0000040: 02 00 00 00 UU 00 cc VV - xx xx xx xx SS SS SS SS +0000050: ... (payload/arguments) + + + xx xx xx xx : length (word) + yy yy yy yy : cmd3 (word) + UU : cmd1 (byte) + VV : cmd2 (byte) + xx xx xx xx : Length (again) + SS SS SS SS : sequence number (word) + cc : must be zero in old-style protocol. + In the new protocol, this byte must + contain 0x10 for commands with cmd3=0x201, 0x20 + for commands with cmd3=0x202. + + + “length” is the length of the + block, excluding the first 0x40 bytes in block, and is never + less than 0x10. + cmd1 and cmd2 are each a single byte + cmd3 is a word + Sequence number is a word, sent back in + command reply. This may have more meaning than meets the + eye; for example, the last byte is nearly always zero, and + similar commands tend to have the same last two bytes in + this field. + + + USB arguments: + + value is always 0x10 + length is TOTAL length (0x54 in example below) + + + Example command block: Disk info request + +0000000: 14 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ +0000010: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0000020: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0000030: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0000040: 02 00 00 00 09 00 00 11-14 00 00 00 78 56 34 12 ............xV4. +0000050: 44 3A 5C 00 D:\. + + +
+ +
+ Structure of a response block + A normal response block will be at least 0x54 bytes long. + +0000 00 00 00 00 yy yy 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 UU 00 00 VV xx xx xx xx SS SS SS SS ......."........ +0010 kk kk kk kk .... + + + + yyyy will contain an altered copy of cmd3. The high-order byte of cmd3 will be incremented from 2 to 3 (0x201→0x301, 0x202→0x302). + + + UU will contain a copy of cmd1. + + + VV will contain an altered copy of cmd2, incremented by 0x10 (0x11→0x21, 0x12→0x22). + + + The first word of the response block will not contain the length + + + xxxxxxxx will contain the length as a low-endian 32-bit integer at 0x48. This is the length of the useful information, i.e. (total block length)-0x40. + + + SSSSSSSS at 0x4c is just a copy of the word that was sent to the camera in this location; it can be used to match a response to the command that elicited it. + + + kkkkkkkk at 0x50 seems to be a status code; it will be zero if the command succeeded. + + + + Here is an example of a successful response of 0x58 bytes; there is a word of information after the status code. + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 0a 00 00 22 18 00 00 00 a4 f4 d6 00 ......."........ +0010 00 00 00 00 06 00 00 20 ....... + + + + Responses of variable length (those where + cmd3 is 0x202 rather than 0x201) are + handled differently. For these, the first response will have + length 0x40 and contain only the length of the variable + response. Here is an example + +00000000 00 00 00 00 02 03 CF 1F-0D 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ + + + Here we must read 0x00001fcf = 8143 bytes, which will + come in unformatted blocks, to be read in chunks as + described below. + + When a response is greater than 0x40 in length + (i.e. almost all responses), it must be read in multiple + operations. First read the largest subset divisible by 0x40, + then a short read with the remainder. The longest bulk reads + will be to download images and thumbnails, but generally + it's not a good idea to read more than 0x1400 bytes. The + first read may need to be split into shorter operations. To + read a response of “length” bytes, + +#define MAX_BULK_XFER 0x1400 +do { + if(length - bytes_read >MAX_BULK_XFER) + read_chunk = MAX_BULK_XFER; + else if(length - bytes_read >0x40) + read_chunk = (length - bytes_read) / 0x40 * 0x40; + else + read_chunk = length - bytes_read; + actually_read = usb_bulk_read(handle, CAMERA_BULK_READ_EP, + buffer + bytes_read, + read_chunk, USB_TIMEOUT); + if(actually_read != read_chunk) + error; + bytes_read += read_chunk; +} while(bytes_read <length); + +
+ +
+ Status Codes + A status code is returned in the word at 0x50 in the response. + Here is a list of known status codes. + + + + + Code + Meaning + + + + + 0x00000000 + + Success. This is the code most commonly seen. + + + + 0x02000022 + + File not found + + + + 0x02000029 + + File was protected + + + + 0x0200002a + + Compact Flash card full (on “set transfer mode” + and “release shutter”) + + + + 0x02000081 + + “EOS lock keys” failed, + e.g. shutter release is half-depressed or camera is + in review or menu mode. + + + + 0x02000082 + + “EOS unlock keys” failed, e.g. tried to + unlock keys when they weren't locked to begin + with. + + + + 0x02000085 + + “camera control + initialization” failed. + Couldn't extend lens (on G2) + Camera was left in camera control mode + For D60: we just filled the CF card (on next + “camera control initialization”; + power cycle clears this) + + + + 0x02000086 + + Path not found or invalid parameters. Indicates + either that the pathname wasn't found, e.g. for “Get + Directory”, or that the command block was + in error, e.g. the length wasn't correct, or the + command for Set + File Attributes had only one string, rather + than a pathname followed by a filename. + + + + 0x00000086 + + Returned by camera in newer protocol (e.g. EOS + 20D) from “Unlock + keys” when keys weren't locked. + + + + + 0x02000087 + + No Compact Flash card + + + + + +
+
+ + +
+ Summary of available (known) commands + Storage Control Commands (cmd2=0x11) + + + + cmd1cmd3Argument(e.g.)Response LengthOperation + + + 0x010x202 + 0x00000000 0x00001400 "DCIM\100CANON\IMG_0100.JPG" <NUL> + LGet picture + 0x050x201 + "D:\DCIM" <NUL>0x5 + Make directory + 0x060x201 + "D:\DCIM" <NUL>0x54 + Delete directory + 0x090x201 + "D:\" <NUL>0x5c + Disk info request + 0x0A0x202 + noneL + Flash device identification + 0x0B0x202 + 0x01 "D:\DCIM"<NUL> <NUL> <NUL>L + Get directory + 0x0D0x201 + "D:\DCIM\100CANON" <NUL> "IMG_0002.JPG" <NUL>0x54 + Delete file + 0x0E0x201 + 0x00000021 "D:\DCIM\100CANON" <NUL> "IMG_0002.JPG" <NUL>0x54 + Set file attributes + 0x0F0x201 + 0x00000021 "D:\DCIM\158CANON\AUT_0001.JPG" <NUL> <NUL>0x54 + Set file time + + +
+ Camera Control Commands (cmd2=0x12) + + + + cmd1cmd3Argument(e.g.)Response LengthOperation + + + 0x010x201 + none0x9c + Identify camera + 0x030x201 + none0x60 + Get time + 0x040x201 + 0x390873f0 0x000000000x54 + Set time + 0x050x201 + "Donald Duck" <NUL>0x54 + Change owner + 0x0A0x201 + none0x58 + Power supply status + 0x130x201 + variesvaries + Remote camera control + 0x170x202 + 0, 0x1400, 1, 0x2d011516L + Download Captured Image + 0x1A0x201 + 44 bytes0x80 + Unknown: EOS D30 only + 0x1B0x201 + 0x000000060x54 + EOS (D30/D60) Lock Keys + 0x1C0x201 + none0x54 + EOS (D30/D60) Unlock Keys + 0x1D0x201 + none0x58 + Get EOS Body ID + 0x1F0x201 + none0x384 + Get camera photo abilities + 0x200x201 + none0x54 + Lock keys, turn off LCD + + +
+ A length of L corresponds to a cmd3 + of 0x202 and means that the program reads 0x40 from bulk in, + checks for a word at position 0x06 for the length, and then + reads the rest in 0x1400 buffers as described above. + +
+ +
+ Get Picture + + Downloads a full image or thumbnail from camera + storage. + + requesttype=0x01 + + Example command: 0x76 bytes. Command length will vary with length of pathname string. + + +0000 36 00 00 00 02 02 00 00-00 00 00 00 00 00 00 00 6............... +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 01 00 00 11-36 00 00 00 08 00 00 00 ........6....... +0050 00 00 00 00 00 30 00 00-44 3a 5c 44 43 49 4d 5c .....0..D:\DCIM\ +0060 31 35 35 43 41 4e 4f 4e-5c 49 4d 47 5f 35 35 39 155CANON\IMG_559 +0070 33 2e 4a 50 47 00 - 3.JPG. + + + Parameters: + + Flag for download of thumbnail: 0x00000001 to download + thumbnail, 0x00000000 to download full image file. + Size of bulk transfers to use (Canon ZoomBrowser EX + uses 0x1400) + Pathname of file to download, terminated by a NUL + byte + + + This example requests download of the full image in file + “D:\DCIM\155CANON\IMG_5593.JPG”, using transfers + of 0x3000 bytes. + + The response (from a PowerShot G2) was 0x40 bytes: + + +0000 00 00 00 00 02 03 84 24-19 00 00 00 00 00 00 00 .......$........ +0010 00 00 00 00 00 30 00 00-44 3a 5c 44 43 49 4d 5c .....0..D:\DCIM\ +0020 31 35 35 43 41 4e 4f 4e-5c 49 4d 47 5f 35 35 39 155CANON\IMG_559 +0030 33 2e 4a 50 47 00 81 ce-58 39 00 00 f8 95 f1 3b 3.JPG...X9.....; + + + This indicates a total file size of 1647748 bytes + (0x00192484 from offset 0x06). After this, a series of + messages with length 0x3000 was read. Finally, a read of 0x484 + finished download of the image. + + Example command: 0x76 bytes. Command length will vary + depending on the length of the pathname string. + + +0000 36 00 00 00 02 02 00 00-00 00 00 00 00 00 00 00 6............... +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 01 00 00 11-36 00 00 00 06 00 00 00 ........6....... +0050 01 00 00 00 00 30 00 00-44 3a 5c 44 43 49 4d 5c .....0..D:\DCIM\ +0060 31 35 35 43 41 4e 4f 4e-5c 49 4d 47 5f 35 35 39 155CANON\IMG_559 +0070 33 2e 4a 50 47 00 - 3.JPG. + + + This requests the download of just the thumbnail from the + file “D:\DCIM\155CANON\IMG_5593.JPG”, in chunks of + 0x3000 bytes. + + Initial response (from a PowerShot G2): 0x40 bytes + +0000 00 00 00 00 02 03 9b 18-00 00 00 00 00 00 00 00 ................ +0010 01 00 00 00 00 30 00 00-44 3a 5c 44 43 49 4d 5c .....0..D:\DCIM\ +0020 31 35 35 43 41 4e 4f 4e-5c 49 4d 47 5f 35 35 39 155CANON\IMG_559 +0030 33 2e 4a 50 47 00 fe d0-08 5a 00 00 90 12 17 2c 3.JPG....Z....., + + + This indicates a length of 6299 bytes for the thumbnail + (0x0000189b at offset 0x06). This is followed by a single read + of 6299 bytes, downloading EXIF thumbnail info. +
+ +
+ Make directory + + requesttype=0x05 + + Command: variable length (here 0x58) + +0000 18 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 47 71 cf e1 5a cb 63 28 ab bd 3e f3 9c 9b c5 1a Gq..Z.c(..>..... +0020 6d c6 a1 05 c4 92 dc c5 2d a1 dc 86 18 c3 6f cf m.......-.....o. +0030 50 72 c3 1d 3f 5a ec 74 6f 88 51 cf 73 6d 71 72 Pr..?Z.to.Q.smqr +0040 02 00 00 00 05 00 00 11 18 00 00 00 a4 e7 12 00 ................ +0050 44 3a 5c 44 43 49 4d 00 D:\DCIM. + + + Response: 0x54 bytes + + +0000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 81 7d 80 80 80 84 80 7c 7e 7f 7f 7e 78 77 79 7e .}.....|~..~xwy~ +0020 82 82 7f 7e 7f 84 80 7b 7f 7f 80 87 85 81 80 7f ...~...{........ +0030 83 84 80 7e 7f 80 83 82 82 83 84 8a 89 83 81 7c ...~...........| +0000 02 00 00 00 05 00 00 21 14 00 00 00 a4 e7 12 00 .......!........ +0010 00 00 00 00 .... + + +
+ +
+ Delete directory + + requesttype=0x06 + + Command: 0x54 bytes + + +00000000 00 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 06 00 00 21-14 00 00 00 78 56 34 12 .......!....xV4. +00000050 00 00 00 00 .... + +
+ +
+ Disk Info Request + + requesttype=0x09 + + Command: variable length (here 0x54) + + +0000 14 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 09 00 00 11 14 00 00 00 68 f1 12 00 ............h... +0050 43 3a 5c 00 C:\. + + + Argument structure: + + + Null-terminated string containing the name of + the disk. + + + Response: 0x5c bytes + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 09 00 00 21 1c 00 00 00 68 f1 12 00 .......!....h... +0010 00 00 00 00 00 a0 a7 07 00 a0 a4 07 ............ + + + + 0x54 contains a word with total bytes on flash. + 0x58 contains a word with bytes free. + +
+ +
+ Flash Device Identification + + requesttype=0x0a + + Command: 0x50 bytes + + +0000 10 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0020 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0030 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0040 02 00 00 00 0a 00 00 11 10 00 00 00 20 f6 12 00 ............ ... + + + Response: variable length (here 0x44 bytes) (PowerShot G2) + + +0000 00 00 00 00 02 03 04 00 00 00 00 00 00 00 00 00 ................ +0010 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0020 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0030 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0000 44 3a 00 00 D:.. + + +
+ +
+ Get Directory + + requesttype=0x0b + + Command: variable length (here 0x5b bytes) + + +0000 1b 00 00 00 02 02 00 00-00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 0b 00 00 11-1b 00 00 00 06 00 00 00 ................ +0050 00 44 3a 5c 44 43 49 4d-00 00 00 .D:\DCIM... + + + The byte at offset 0x50 gives the level of recursion + allowed, here zero (no recursion). This is followed by the + directory pathname, here “D:\DCIM”. + + Response: 0x40 bytes (PowerShot G2) + +0000 00 00 00 00 02 03 56 00-00 00 00 00 00 00 00 00 ......V......... +0010 40 04 fe 15 d3 78 6a fb-54 bf d1 3c ed 63 4a 5d @....xj.T..<.cJ] +0020 2a f7 cf 75 10 db cd e6-a3 47 9f 95 c3 e0 67 23 *..u.....G....g# +0030 a8 20 63 df ad 22 bc 8d-c8 6f 01 8a 56 78 8a 24 . c.."...o..Vx.$ + + + As with all “long” dialogues, the message + contains only the length of data to follow, as a word starting + at offset 0x06. In this case, the subsequent data will be 0x56 + bytes long. The next message from the camera is: + +0000 80 00 00 00 00 00 48 e2-48 3e 44 3a 5c 44 43 49 ......H.H>D:\DCI +0010 4d 00 10 00 00 00 00 00-44 e6 43 3e 43 41 4e 4f M.......D.C>CANO +0020 4e 4d 53 43 00 10 00 00-00 00 00 64 f6 48 3e 31 NMSC.......d.H>1 +0030 35 35 43 41 4e 4f 4e 00-10 00 00 00 00 00 52 fb 55CANON.......R. +0040 48 3e 31 35 36 43 41 4e-4f 4e 00 00 00 00 00 00 H>156CANON...... +0050 00 00 00 00 00 00 - ...... + + + Error codes: + + + 0x00000000 No errors + 0x02000022 File not found + 0x02000029 File was protected + 0x02000086 Path not found + + + The example shows four entries. Each entry contains + + + 1 byte attribute bits (described in + ) + 1 zero byte + 4 bytes file size in bytes (zero if directory) + 4 bytes UNIX time + File name (null-terminated string of arbitrary length) + “..” in + name means “leave directory”. + + + An entry with attribute, date, length, and name all zero + indicates the end of the directory listing. + + Since these are all directory entries, each shows a file + size of zero.: + + “D:\DCIM”, attribute byte 0x80. This is the name of the directory listed. . + “CANONMSC”, attribute byte 0x10, time Fri Feb 7 22:00:52 2003 (0x3e43e644). + “155CANON”, attribute byte 0x10, time Tue Feb 11 18:11:00 2003 (0x3e48f664). + “156CANON”, attribute byte 0x10, time Tue Feb 11 18:32:02 2003 (0x3e48fb52). + + Here is an example of dealing with multiple levels in the + directory hierarchy. The contents of this camera are: + + Thu May 4 00:11:40 2000 D:\DCIM\100CANON\IMG_0001.JPG 778435 + Thu May 4 00:28:32 2000 D:\DCIM\100CANON\IMG_0002.JPG 44409 + Thu May 4 00:28:32 2000 D:\DCIM\CANONMSC\100.CTG 2634 + Thu May 4 00:28:32 2000 D:\DCIM\CANONMSC\D.CTG 383 + + + Directory contents: "D:" (recurse = 0x0) + +00000000 80 00 00 00 00 00 00 00-00 00 44 3A 00 10 00 00 ..........D:.... +00000010 00 00 00 C6 B5 10 39 44-43 49 4D 00 00 00 00 00 ......9DCIM..... +00000020 00 00 00 00 00 00 00 ....... + + + Directory contents: "D:" (recurse = 0x1) + +00000000 80 00 00 00 00 00 00 00-00 00 44 3A 00 80 00 00 ..........D:.... +00000010 00 00 00 36 C0 10 39 2E-5C 44 43 49 4D 00 10 00 ...6..9.\DCIM... +00000020 00 00 00 00 36 C0 10 39-31 30 30 43 41 4E 4F 4E ....6..9100CANON +00000030 00 10 00 00 00 00 00 CC-B5 10 39 43 41 4E 4F 4E ..........9CANON +00000040 4D 53 43 00 80 00 00 00-00 00 00 00 00 00 2E 2E MSC............. +00000050 00 00 00 00 00 00 00 00-00 00 00 00 ............ + + + Directory contents: "D:" (recurse = 0x2) + +00000000 80 00 00 00 00 00 00 00-00 00 44 3A 00 80 00 00 ..........D:.... +00000010 00 00 00 36 C0 10 39 2E-5C 44 43 49 4D 00 80 00 ...6..9.\DCIM... +00000020 00 00 00 00 3C C0 10 39-2E 5C 31 30 30 43 41 4E ....<..9.\100CAN +00000030 4F 4E 00 20 00 C3 E0 0B-00 3C C0 10 39 49 4D 47 ON. .....<..9IMG +00000040 5F 30 30 30 31 2E 4A 50-47 00 20 00 79 AD 00 00 _0001.JPG. .y... +00000050 30 C4 10 39 49 4D 47 5F-30 30 30 32 2E 4A 50 47 0..9IMG_0002.JPG +00000060 00 80 00 00 00 00 00 00-00 00 00 2E 2E 00 80 00 ................ +00000070 00 00 00 00 30 C4 10 39-2E 5C 43 41 4E 4F 4E 4D ....0..9.\CANONM +00000080 53 43 00 20 00 4A 0A 00-00 30 C4 10 39 31 30 30 SC. .J...0..9100 +00000090 2E 43 54 47 00 20 00 7F-01 00 00 30 C4 10 39 44 .CTG. .....0..9D +000000A0 2E 43 54 47 00 80 00 00-00 00 00 00 00 00 00 2E .CTG............ +000000B0 2E 00 80 00 00 00 00 00-00 00 00 00 2E 2E 00 00 ................ +000000C0 00 00 00 00 00 00 00 00-00 00 .......... + + + Here is a formatted listing of the entries: + + + D : +0000: 0080 00000000 00000000 44 3A 00 + . \ D C I M +000D: 0080 00000000 3910C036 2E 5C 44 43 49 4D 00 + . \ 1 0 0 C A N O N +001E: 0080 00000000 3910C03C 2E 5C 31 30 30 43 41 4E 4F 4E 00 + I M G _ 0 0 0 1 . J P G +0033: 0020 000BE0C3 3910C03C 49 4D 47 5F 30 30 30 31 2E 4A 50-47 00 + I M G _ 0 0 0 2 . J P G +004A: 0020 0000AD79 3910C430 49 4D 47 5F 30 30 30 32 2E 4A 50 47 00 + . . +0061: 0080 00000000 00000000 2E 2E 00 + . \ C A N O N M S C +006E: 0080 00000000 3910C430 2E 5C 43 41 4E 4F 4E 4D 53 43 00 + 1 0 0 . C T G +0083: 0020 00000A4A 3910C430 31 30 30 2E 43 54 47 00 + D . C T G +0095: 0020 0000017F 3910C430 44 2E 43 54 47 00 + . . +00A6: 0080 00000000 00000000 2E 2E 00 + . . +00B2: 0080 00000000 00000000 2E 2E 00 + +00BF: 0000 00000000 00000000 00 + + +
+ +
+ Delete file + + requesttype=0x0d + + Command: variable length (here 0x7e) + + +0000 3c 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 <............... +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 0d 00 00 11 3c 00 00 00 f8 f6 12 00 ........<....... +0050 43 3a 5c 44 43 49 4d 5c 31 33 33 43 41 4e 4f 4e C:\DCIM\133CANON +0060 00 43 52 57 5f 33 33 34 31 2e 43 52 57 00 43 52 .CRW_3341.CRW.CR +0070 57 5f 33 33 34 31 2e 54 48 4d 00 00 W_3341.THM.. + + + Here we delete both a raw image and its corresponding + thumbnail file. + + Response: 0x54 bytes + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 0d 00 00 21 14 00 00 00 f8 f6 12 00 .......!........ +0010 00 00 00 00 .... + + + Status codes: + + 0x00000000 No errors + 0x02000022 File not found + 0x02000029 File was protected + 0x02000086 Path not found (success on at least G2 and EOS D30/D60) + + + Example command (delete JPEG image): + +0000 2f 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 /............... +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 0d 00 00 11 2f 00 00 00 a8 f6 12 00 ......../....... +0050 43 3a 5c 44 43 49 4d 5c 31 33 33 43 41 4e 4f 4e C:\DCIM\133CANON +0060 00 49 4d 47 5f 33 33 34 33 2e 4a 50 47 00 00 .IMG_3343.JPG.. + + + We can specify a series of file names separated by NULs, + with a double NUL at the end. + + Data received via bulk_in after a command block: (Delete file) (file did not exist). + +00000000 00 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 0D 00 00 21-14 00 00 00 78 56 34 12 .......!....xV4. +00000050 22 00 00 02 "... + + + Data received via bulk_in after a command block: (Delete file) (file was protected) + +00000000 00 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 0D 00 00 21-14 00 00 00 78 56 34 12 .......!....xV4. +00000050 29 00 00 02 )... + + + Data received via bulk_in after a command block: (Delete file) (successful) + +00000000 00 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 0D 00 00 21-14 00 00 00 78 56 34 12 .......!....xV4. +00000050 00 00 00 00 .... + + + Data received via bulk_in from a PowerShot G2 after a + command block: (Delete file) (successful) + +00000000 14 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +00000010 20 00 00 00 00 00 00 00-00 00 00 00 00 00 01 00 ............... +00000020 00 00 c2 00 00 00 00 02-00 00 40 00 00 00 00 00 ..........@..... +00000030 02 00 00 00 00 00 00 00-00 02 20 00 00 00 20 00 .......... ... . +00000040 02 00 00 00 0d 00 00 21-14 00 00 00 07 00 00 00 .......!........ +00000050 86 00 00 02 - .... + + +
+ +
+ Set File Attributes + + requesttype=0x0e + + Command: variable length (here 0x73, from a PowerShot + G2) + + +0000 33 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 3............... +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 0e 00 00 11 33 00 00 00 f4 f1 12 00 ........3....... +0050 00 00 00 00 44 3a 5c 44 43 49 4d 5c 31 35 38 43 ....D:\DCIM\158C +0060 41 4e 4f 4e 00 41 55 54 5f 30 30 30 31 2e 4a 50 ANON.AUT_0001.JP +0070 47 00 00 G.. + + + I don't know where the data are put, unless it's the word + at 0x50. + + Response: 0x54 bytes + + +0000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 31 2e 4a 50 47 00 5e 26 77 98 c7 07 87 6d 3d 5e 1.JPG.^&w....m=^ +0020 c7 76 07 0c eb d4 5d 8f 67 06 cf 47 b2 5b 4b 28 .v....].g..G.[K( +0030 92 35 41 80 14 74 c5 79 77 c4 bf 88 96 da 44 6f .5A..t.yw.....Do +0040 02 00 00 00 0e 00 00 21 14 00 00 00 f4 f1 12 00 .......!........ +0050 00 00 00 00 .... + + + Error codes: + + 0x00000000 No errors + 0x02000022 File not found + + + Data received via bulk_in after a command block: (Set file attributes) (file did not exist). + +00000000 00 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 0E 00 00 21-14 00 00 00 78 56 34 12 .......!....xV4. +00000050 22 00 00 02 "... + + + File attributes: see + +
+ +
+ Set File Time + + requesttype=0x0f + + Command: variable length (here 0x73, from a PowerShot + G2) + + +0000 33 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 3............... +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 0f 00 00 11 33 00 00 00 98 e7 12 00 ........3....... +0050 5a 59 63 3e 44 3a 5c 44 43 49 4d 5c 31 35 38 43 ZYc>D:\DCIM\158C +0060 41 4e 4f 4e 5c 41 55 54 5f 30 30 30 31 2e 4a 50 ANON\AUT_0001.JP +0070 47 00 00 G.. + + + Parameters: 32-bit Unix time, full pathname of + file. Terminated by two NUL characters, not just one. + + This command ended the upload of a file to + “D:\DCIM\158CANON\AUT_0001.JPG” on a PowerShot G2 + camera. + + Response (0x54 bytes): + +0000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 e6 24 e3 a5 31 8c 20 71 90 69 46 40 07 93 40 87 .$..1. q.iF@..@. +0020 29 04 92 4f a7 14 80 73 d3 ad 20 18 aa 03 71 de )..O...s.. ...q. +0030 94 f5 e7 a5 0c 18 84 63 22 b0 34 1f 9f 5c be 94 .......c".4..\.. +0040 02 00 00 00 0f 00 00 21 14 00 00 00 98 e7 12 00 .......!........ +0050 00 00 00 00 .... + + + Error codes: unknown + +
+ +
+ Identify Camera + + requesttype=0x01 + + Command: 0x50 bytes + + +0000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 43 3a 5c 44 6f 63 75 6d 65 6e 74 73 20 61 6e 64 C:\Documents and +0020 20 53 65 74 74 69 6e 67 73 5c 44 65 66 61 75 6c Settings\Defaul +0030 74 20 55 73 65 72 00 77 69 6e 64 69 72 3d 43 3a t User.windir=C: +0040 02 00 00 00 01 00 00 12 10 00 00 00 00 f5 d6 00 ................ + + + Response: 0x9c bytes (from an EOS D60): + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 01 00 00 22 5c 00 00 00 00 f5 d6 00 ......."\....... +0050 00 00 00 00 00 05 77 00 00 04 00 01 43 61 6e 6f ......w.....Cano +0060 6e 20 45 4f 53 20 44 36 30 00 00 00 00 00 00 00 n EOS D60....... +0070 00 00 00 00 00 00 00 00 00 00 00 00 43 6f 72 6e ............Corn +0080 65 6c 6c 20 50 72 6f 67 2e 20 43 6f 6d 70 75 74 ell Prog. Comput +0090 65 72 20 47 72 61 70 68 69 63 73 00 er Graphics. + + + from a PowerShot S20: + +00000000 00 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 01 00 00 22-5C 00 00 00 78 56 34 12 ......."\...xV4. +00000050 00 00 00 00 00 04 00 00-01 00 00 01 43 61 6E 6F ............Cano +00000060 6E 20 50 6F 77 65 72 53-68 6F 74 20 53 32 30 00 n PowerShot S20. +00000070 00 00 00 00 00 00 00 00-00 00 00 00 44 6F 6E 61 ............Dona +00000080 6C 64 20 44 75 63 6B 00-00 00 00 00 00 00 00 00 ld Duck......... +00000090 00 00 00 00 00 00 00 00-00 00 00 00 ............ + + + + First 0x40 bytes is throwable (as usual) + At 0x5c is a string with camera type. + At 0x7c is a string with owner name. + 0x58-0x5b is firmware version (04 03 02 01 is + version 1.2.3.4; 01 00 00 01 is version 1.0.0.1) + Data at 0x54-0x57 (here 0x00000400) has unknown + purpose. + +
+ +
+ Get time + + requesttype=0x03 + + Command: 0x50 bytes + + +0000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 03 00 00 12 10 00 00 00 f0 35 12 00 .............5.. + + + Response: 0x60 bytes + + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 03 00 00 22 20 00 00 00 f0 35 12 00 ......." ....5.. +0050 00 00 00 00 44 cf 27 3e 00 00 00 00 00 00 00 00 ....D.'>........ + + + 0x54 contains a 4-byte UNIX time + Other bytes are zero + + +
+ +
+ Set Time + + requesttype=0x04 + + Command: 0x5c bytes + + + 0x50 contains a UNIX time + Other bytes are zero + + + Status codes: + + 0x02000086 Invalid parameters (e.g. command block wrong length) + +
+ +
+ Change Owner + + requesttype=0x05 + + Command: 0x50 bytes + + Response: 0x54 bytes (no error codes) + +00000000 00 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 05 00 00 22-14 00 00 00 78 56 34 12 ......."....xV4. +00000050 00 00 00 00 .... + + +
+ +
+ Power supply status + + requesttype=0x0a + + Command: 0x50 bytes + + +0000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 43 3a 5c 44 6f 63 75 6d 65 6e 74 73 20 61 6e 64 C:\Documents and +0020 20 53 65 74 74 69 6e 67 73 5c 44 65 66 61 75 6c Settings\Defaul +0030 74 20 55 73 65 72 00 77 69 6e 64 69 72 3d 43 3a t User.windir=C: +0040 02 00 00 00 0a 00 00 12 10 00 00 00 a4 f4 79 00 ..............y. + + + Response: 0x58 bytes (from an EOS D60 on battery + power): + + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 0a 00 00 22 18 00 00 00 a4 f4 d6 00 ......."........ +0050 00 00 00 00 06 00 00 20 ....... + + + from a PowerShot S20? + +00000000 00 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 0A 00 00 22-18 00 00 00 78 56 34 12 ......."....xV4. +00000050 00 00 00 00 06 00 00 10- ........ + + + + First 0x50 bytes are throwable. + + 0x54 contains a byte with power status: 0x6=good, 0x4=bad + 0x57 contains a byte with power type in bit 4: + + ((value &0x20) == 0) running from ac-adapter + ((value &0x20) != 0) running from battery + + The original document claimed that this byte + contained “a byte with power type: 0x10=ac-adapter, + 0x30=battery”, whereas a PowerShot G2 just toggles + one bit. + +
+ +
+ Remote Camera Control + + requesttype=0x13 + + This command actually has 19 subcommands: + + Remote Camera Control Codes + + + + SubcommandSample ParametersReply LengthFunction + + + 00none5C + Camera control initialization + 01none5C + Exit release control + 02none5C + Start viewfinder + 03none5C + Stop viewfinder + 04none5C + Release shutter + 07buffer of 0x34 bytes + 5CSet release parameters + 0904 00 00 00 09 00 00 005C + Set transfer mode + 0Anone8C + Get release parameters + 0Bnone60 + Get zoom position + 0C04 00 00 00 01 00 00 005c + Set zoom position + 0Dnone60 + Get available shot + 0E????? + Set custom function + 0F14 bytes66 + Get custom function + 10none60 + Get size of extended release parameters + 11???????? + Get version of extended release parameters + 12nonevaries + Get extended release parameters + 13?????? + Set extended parameters + 1401 00 00 00 00 035C + Select camera output + 15?????? + Do auto exposure, focus, and white balance + + +
+ + The subcommand is stored as a little-endian 4-byte number + at the start of the message payload (i.e. starting 0x50 bytes + from the start of the buffer). Parameters vary by subcommand, as + noted below; they follow the subcommand in the message + payload. The minimum is <subcommand> + 0, so the minimum length of a command packet is 0x58. + + In the reply, the payload will always start with + status, + <subcommand>. After that, the + minimum is one more zero word, or there may be more + information. The minimum length is 0x5c. + + +
+ Camera control initialization: 00 + + Takes no parameters. With some models, this command + extends the lens to make the camera ready to capture + images. With others, there is no visible effect, but Canon + software seems to issue it anyway. + + Command: 0x58 bytes + +0000 18 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 05 7f 00 00 02 00 01 43 61 6e 6f ............Cano +0020 6e 20 45 4f 53 20 44 33 30 00 00 00 00 00 00 00 n.EOS.D30....... +0030 00 00 00 00 00 00 00 00 00 00 00 00 43 6f 72 6e ............Corn +0040 02 00 00 00 13 00 00 12 18 00 00 00 00 c5 12 00 ................ +0050 00 00 00 00 00 00 00 00 ........ + + + Response: 0x5c bytes (after ~5 seconds on PowerShot + G2) + + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 13 00 00 22 1c 00 00 00 00 c5 12 00 ......."........ +0010 00 00 00 00 00 00 00 00 00 00 00 00 ............ + + + If the lens cap is left on a PowerShot G2, the lens + can’t extend. The response takes about 10 seconds (as + apparently the camera tries more than once to extend the + lens), and the response block looks like this. Note that bytes + 0x50 and 0x53 are non-zero, which is not the case when the + lens extends properly. + + +0000: 1c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010: 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0020: 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0030: 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0040: 02 00 00 00 13 00 00 22 1c 00 00 00 78 56 34 12 ......."....xV4. +0050: 85 00 00 02 00 00 00 00 00 00 00 00 ............ + + + If there is no CF card in an EOS D30, the response will + be only 0x40 bytes long, and will look like this: + + +0000 00 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ + + + The PowerShot G2 returns normally, even if no CF card is + present. The error will be signaled later, at “set + transfer mode” and “release + shutter” + +
+ +
+ Exit release control: 01 + + Takes no parameters + Command: 0x58 bytes + +0000 18 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 13 00 00 12 18 00 00 00 18 cd 12 00 ................ +0050 01 00 00 00 00 00 00 00 ........ + + + Response: 0x5c bytes + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 13 00 00 22 1c 00 00 00 18 cd 12 00 ......."........ +0010 00 00 00 00 01 00 00 00 00 00 00 00 ............ + + + +
+ +
+ Start viewfinder: 02 + + Takes no parameters; returns minimum message of 0x5c + bytes. + +
+
+ Stop viewfinder: 03 + + Takes no parameters; returns minimum message of 0x5c + bytes. + +
+ +
+ Release shutter: 04 + + Takes no parameters; returns minimum message of 0x5c + bytes. The camera does, however, signal through the + interrupt pipe. The sequence goes: + + + + Issue “release shutter” command, read + reply of 0x5c bytes. From a D60, this reply was + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 13 00 00 22 1c 00 00 00 28 f6 12 00 ......."....(... +0010 00 00 00 00 04 00 00 00 00 00 00 00 ............ + + + + Read 0x10 bytes from interrupt endpoint, using + timeout of 50 milliseconds and retrying until success. The + camera will normally respond in about 32 milliseconds (EOS + D60, G2). Most responses have a length of zero, but the + response after the “release shutter” is + complete will be 0x10 bytes in length. The + bytes seem always to be “02 00 00 00 0a 00 00 00 10 + 00 00 00 1c 00 00 00", whether the shot succeeded or + failed. + + + For the G2, the 0x10 response takes about 3.6 + seconds. I believe that this signals that the + capture is complete. The time seems relatively + independent of image size or compression. + + + For the D60, it seems to come within about 10ms + of the “release shutter” command. + + + For the 300D, response takes about 0.35 seconds. + + + + + If transfer mode includes THUMB_TO_PC (see + “Set transfer mode” below), read 0x17 bytes + from interrupt endpoint as above. + + + For a D60, these bytes were + 0000: 02 00 00 00 08 00 00 00 17 00 00 00 eb 00 b0 17 + 0010: 01 00 1e 00 00 00 af + + + For a G2, the bytes were + 0000: 02 00 00 00 08 00 00 00 17 00 00 00 01 00 00 00 + 0010: 01 09 0c 00 00 00 b0 + + + At byte 12 (0x0c) is a 4-byte integer with some + sort of “image index”; you must specify + this in a + “download + captured image” command to make it + work. + + + Starting at byte 0x11 is a 4-byte integer with + the size of the thumbnail image to download. + + + NOTE: This doesn’t arrive if the capture + fails. Instead, a reply of 0x10 bytes arrives (for + D60): + 0000: 02 00 00 00 0a 00 00 00 10 00 00 00 1d 00 00 00 + + + If transfer mode includes FULL_TO_PC, read 0x17 + bytes from interrupt endpoint as above. + + + For a D60, these bytes were + 0000: 02 00 00 00 0c 00 00 00 17 00 00 00 eb 00 b0 17 + 0010: 01 c5 80 06 00 00 af + + + For a G2, the bytes were + 0000: 02 00 00 00 0c 00 00 00 17 00 00 00 01 00 00 00 + 0010: 01 5a cb 09 00 00 b0 + + + A 4-byte integer at 0x0c has the image index for + the “download + captured image” command. + + + A 4-byte integer at 0x11 has the main image + size. I don’t know what the other bytes + are. + + + I suspect that byte 4 has some sort of flags for + the type of image. + + + I also guess that the last byte (at 0x16) may encode the + camera model somehow. + + + NOTE: This block doesn’t arrive if the capture + fails. Instead, a reply of 0x14 bytes arrives (for + D60): + 0000 02 00 00 00 0a 00 00 00 14 00 00 00 0a 00 00 00 + 0010 01 00 00 00 + + + Read 0x10 bytes from interrupt endpoint as above. + + + For EOS cameras, this seems to signify that + capture is complete and the image has been written + to the storage card. For a D60, this can take from + about 1.6 seconds (for small, low-quality JPEG) to + about 16.5 seconds (for RAW), plus the shutter open + time. + + + For the G2, this returns immediately. + + + For the EOS 20D, this message never comes. + + + This response always seems to be + 0000: 02 00 00 00 0a 00 00 00 10 00 00 00 1d 00 00 00 + regardless of success or failure. + + + The sequence of messages 0x0a/0x1c; 0x0a/0x1d may be + repeated once or twice if the the image captured is the + last one that will fit on the camera's storage + device. + + + For EOS cameras, only after successful write to + camera storage, read another 0x10 bytes from interrupt + endpoint as above. This returns immediately. The result + is + + 0000: 02 00 00 00 0e 00 00 00 10 00 00 00 00 00 00 00 + + for success. If the capture failed, or if neither + THUMB_TO_DRIVE or FULL_TO_DRIVE is set in the + current transfer + mode, this message is skipped and we go on to the + final message (below). + + The code “0e” may signify that the + thumbnail is ready for download; at any rate, Chris + Breeze’s D30Capture starts to download the + thumbnail immediately after this message is + received. + + + For EOS cameras, read the final message: + 0000: 02 00 00 00 0f 00 00 00 10 00 00 00 00 00 00 00 + NOTE: This message seems never to arrive from an EOS 300D. + + + + Interrupt reads always have a code in byte 0x04 + (actually, it’s probably a 4-byte integer with a small + value). This code is + + + Type codes for interrupt read + 0x01 + + Unknown; sometimes seen with PowerShot G2. + + + 0x08 + + Image descriptor for captured thumbnail (only if + THUMB_TO_PC bit is set in the current transfer + mode); 0x17 bytes including the length of the + thumbnail image and a key that must be supplied in the + “get captured image” command. + + + 0x0c + + Image descriptor for full-size captured image + (only if FULL_TO_PC bit is set in the current transfer + mode); 0x17 + bytes including the length of the full image and a key + that must be supplied in the “get captured + image” command. The key seems to be identical + for thumbnail and full image that correspond to each + other. + + + 0x0a + + Capture status: 0x10 bytes. The byte at offset + 0x0c contains a code: 0x1c for start of capture, 0x1d + for end of capture (completion for PowerShot cameras, + still in progress for EOS cameras), and 0x0a (with a + length of 0x14 bytes) if there was a photographic + failure. There also is a code of 0x1b that seems to + tell us to wait for the flash to fire; it has been + seen when using the internal flash on EOS D30 and + D60. + + + 0x0e + + EOS write to flash storage successful: 0x10 + bytes. This will never come if the current transfer mode + doesn't include either THUMB_TO_DRIVE or FULL_TO_DRIVE + + + + 0x0f + + EOS capture complete: 0x10 bytes. + + + 0x20 + + Response to camera initialization; not seen + during capture dialog. + + + +
+ +
+ Set release parameters: 07 + + Takes a payload of 0x38 bytes: 0x34 after subcommand + code. Offset 14 in these bytes (18 from the start of the + payload) controls the flash: + + +#define FLASH_OFF 0x00 +#define FLASH_ON 0x01 +#define FLASH_AUTO 0x02 + + + Response: 0x5c bytes (failure): + + +0000: 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040: 02 00 00 00 13 00 00 22 1c 00 00 00 2f 00 00 00 ......."..../... +0050: 00 00 00 00 07 01 00 ff 00 00 00 00 ............ + + + (success): + + +0000: 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040: 02 00 00 00 13 00 00 22 1c 00 00 00 2f 00 00 00 ......."..../... +0050: 00 00 00 00 07 00 00 00 00 00 00 00 ............ + + +
+ +
+ Set transfer mode: 09 + + Takes 2 parameters: 4, <code> + where <code> is a combination of + the following bits: + + +#define THUMB_TO_PC 0x0001 +#define FULL_TO_PC 0x0002 +#define THUMB_TO_DRIVE 0x0004 +#define FULL_TO_DRIVE 0x0008 + + + These may be combined in any way. + + Command: 0x5c bytes + +0000 1c 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 13 00 00 12 1c 00 00 00 2c c4 12 00 ............,... +0050 09 00 00 00 04 00 00 00 0d 00 00 00 ............ + + + Error codes: + + 0x00000000 No errors + 0x0200002a Camera storage is full + + + Response 0x5c bytes: + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 13 00 00 22 1c 00 00 00 8c c5 12 00 ......."........ +0010 00 00 00 00 09 00 00 00 00 00 00 00 ............ + + + This has just set the camera to send the next captured image to the camera's local storage, with the thumbnail image both to storage and to the PC. + +
+
+ Get release parameters: 0A + + Takes no parameters. Returns 0x34 bytes after the echo of the subcommand code. First 4-byte integer is 0x00000030, which is the count of remaining bytes. I assume that the 0x34 bytes are the same as is sent down by code 07, “set release parameters”. + + Command: 0x58 bytes + +0000 18 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 13 00 00 12 18 00 00 00 14 c4 12 00 ................ +0050 0a 00 00 00 00 00 00 00 ........ + + + Response 0x8C bytes: + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 13 00 00 22 4c 00 00 00 14 c4 12 00 ......."L....... +0050 00 00 00 00 0a 00 00 00 30 00 00 00 00 04 02 00 ........0....... +0060 00 00 00 00 04 01 01 ff 03 ff 01 30 00 ff 00 ff ...........0.... +0070 00 00 00 7f 10 00 60 00 38 00 7c 00 18 18 18 ff ......`.8.|..... +0000 20 00 50 00 14 00 14 00 14 00 01 00 ..P......... + + +
+ +
+ Get zoom position: 0B + + No parameters + Command: 0x58 bytes + +0000 18 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0020 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0030 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0040 02 00 00 00 13 00 00 12 18 00 00 00 a4 f6 12 00 ................ +0050 0b 00 00 00 00 00 00 00 ........ + + + Reply: 0x60 bytes + +0000 20 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ............... +0010 82 81 80 7f 7f 80 81 83 84 84 83 81 80 7f 7f 80 ................ +0020 81 83 83 81 80 7f 7d 7d 7e 7f 80 81 80 7f 7e 7c ......}}~.....~| +0030 7c 7d 7f 80 81 81 81 80 7f 7f 80 81 82 84 84 83 |}.............. +0000 02 00 00 00 13 00 00 22 20 00 00 00 a4 f6 12 00 ......." ....... +0010 00 00 00 00 0b 00 00 00 04 00 00 00 00 00 3c 00 ..............<. + + + Response has a 4-byte count (4), and I think two 2-byte integers (0,60). This was for a G2 at full-wide position (7mm). + +
+
+ Set zoom position: 0C + + Two parameters. + Command: 0x5c bytes + +0000 1c 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0020 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0030 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0040 02 00 00 00 13 00 00 12 1c 00 00 00 a8 f6 12 00 ................ +0050 0c 00 00 00 04 00 00 00 01 00 00 00 ............ + + + Parameters are (4,1). + + Reply: 0x5c bytes + +0000 1c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 7f 7f 80 80 80 80 7f 7d 7c 7b 7c 7e 7f 80 80 80 .......}|{|~.... +0020 7f 7e 7f 7f 80 82 83 84 83 82 81 80 80 81 82 84 .~.............. +0030 84 83 81 80 7f 7f 7f 80 80 80 80 7f 7e 7c 7b 7b ............~|{{ +0000 02 00 00 00 13 00 00 22 1c 00 00 00 a8 f6 12 00 ......."........ +0010 00 00 00 00 0c 00 00 00 00 00 00 00 ............ + + +
+ +
+ Get available shot: 0D + + No parameters + Command: 0x58 bytes + +0000 18 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 13 00 00 12 18 00 00 00 ec f4 25 01 ..............%. +0050 0d 00 00 00 00 00 00 00 ........ + + + Reply 0x60 bytes: + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 13 00 00 22 20 00 00 00 ec f4 25 01 ......."......%. +0010 00 00 00 00 0d 00 00 00 04 00 00 00 02 00 00 00 ................ + + + The last word is the estimated number of shots + remaining: i.e. the free storage space divided by the + estimated size of an image file in the current mode. + +
+ +
+ 0E Set custom function + + No documentation; not yet seen in USB stream. +
+ +
+ Get custom function: 0F + + 14 bytes of parameters. The first 4 bytes is a 32-bit + little-endian count of the number of bytes following. In the + example, there are 10 bytes of actual data. But the next 2 + bytes seems to be an index for the custom function to read; + the value comes back in the reply, which has a payload just + as long, but with just the index/value pair repeated and + then the setting of that function. A zero value is the + default setting for all functions. + + Command: 0x62 bytes + +0000 22 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 "............... +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 13 00 00 12 22 00 00 00 d4 c5 12 00 ........"....... +0050 0f 00 00 00 0a 00 00 00 04 00 e8 77 00 00 13 00 ...........w.... +0060 08 00 .. + + + Reply 0x66 bytes: + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 13 00 00 22 26 00 00 00 d4 c5 12 00 ......."&....... +0010 00 00 00 00 0f 00 00 00 0a 00 00 00 04 00 04 00 ................ +0020 00 00 00 00 00 00 ...... + + + Command: 0x62 bytes. In this case, we read custom + function 1 ("Long exposure noise reduction"), which was set + to 1. + +0000 22 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 "............... +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 13 00 00 12 22 00 00 00 54 f6 12 00 ........"...T... +0050 0f 00 00 00 0a 00 00 00 01 00 ff ff 00 00 00 00 ................ +0060 00 00 .. + + + Reply 0x66 bytes: + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 13 00 00 22 26 00 00 00 54 f6 12 00 ......."&...T... +0050 00 00 00 00 0f 00 00 00 0a 00 00 00 01 00 01 00 ................ +0060 01 00 00 00 00 00 ...... + + + The value of the given custom function is given + starting at byte 0x60. I don't know if this is a 2-byte or + 4-byte value, or if it's possible to read more than one + custom function at a time; Canon RemoteCapture reads them + one at a time, even when it reads all the available + functions. + + The custom functions (as seen in Canon RemoteCapture and + on the camera menu) are as follows: + + EOS Custom Functions + + + + CodeFunctionValues + + + 0x01Long exposure noise reduction + 0: Off 1: On (not on D60) + 0x02Shutter button/AE lock button + 0: AF/AE lock 1: AE lock/AF 2: AF/AF lock 3: AE+release/AE+AF + 0x03Mirror lockup + 0: Disable 1: Enable + 0x04Tv, Av and exposure steps + 0: ½ stop 1: 1/3 stop + 0x05AF-assist beam/ Flash firing + 0: Emits/fires 1: Does not emit/Fires 2: Only ext. flash emits/Fires 3: Emits/Does not fire + 0x06Shutter speed in Av mode + 0: Auto 1: 1/200 (fixed) + 0x07AEB sequence/auto cancellation + 0: 0 - + /Enable 1: 0 - + /Disable 2: 0 + - /Enable 3: 0 + - /Disable + 0x08Shutter curtain sync + 0: 1st-curtain sync 1: 2nd-curtain sync + 0x09Lens AF stop button Fn, switch + 0: AF stop 1: AF start 2: AE lock while metering + 0x0aAuto reduction of fill flash + 0: Enable 1: Disable + 0x0bMenu button return position + 0: Top 1: Previous (top if powered off) 2: Previous + 0x0cSET button func, when shooting + 0: Default (no function) 1: Change quality 2: Change ISO speed 3: Change parameters + 0x0dSensor cleaning + 0: Disable 1: Enable + 0x0eSuperimposed display + 0: On 1: Off (not on D30) + 0x0fShutter release without CF card + 0: Possible w/o CF card 1: Not possible (not on D30)) + +
+
+ +
+ Get size of extended release parameters: 10 + + No parameters + + Command: 0x58 bytes + +0000 18 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 7f 7f 80 80 80 80 7f 7d 7c 7b 7c 7e 7f 80 80 80 .......}|{|~.... +0020 7f 7e 7f 7f 80 82 83 84 83 82 81 80 80 81 82 84 .~.............. +0030 84 83 81 80 7f 7f 7f 80 80 80 80 7f 7e 7c 7b 7b ............~|{{ +0040 02 00 00 00 13 00 00 12 18 00 00 00 50 f6 12 00 ............P... +0050 10 00 00 00 00 00 00 00 ........ + + + Reply: 0x60 bytes + +0000 20 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ............... +0010 87 8b 8d 8a 87 88 89 89 87 88 8b 8b 89 86 87 89 ................ +0020 89 86 84 85 85 83 81 82 85 84 80 7e 7e 7f 7f 7e ...........~~..~ +0030 7f 82 83 80 7b 7b 7e 80 80 82 85 86 82 7e 7d 80 ....{{~......~}. +0000 02 00 00 00 13 00 00 22 20 00 00 00 50 f6 12 00 ......." ...P... +0010 00 00 00 00 10 00 00 00 04 00 00 00 10 00 00 00 ................ + + + I think this means to expect 16 (0x10) bytes of + “extended release parameters”. + +
+ +
+ 11 Get version of extended release parameters + + No documentation; not yet seen in USB stream. +
+ +
+ Get extended release parameters: 12 + Command: 0x5c bytes + +0000 1c 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 7f 7f 80 80 80 80 7f 7d 7c 7b 7c 7e 7f 80 80 80 .......}|{|~.... +0020 7f 7e 7f 7f 80 82 83 84 83 82 81 80 80 81 82 84 .~.............. +0030 84 83 81 80 7f 7f 7f 80 80 80 80 7f 7e 7c 7b 7b ............~|{{ +0040 02 00 00 00 13 00 00 12 1c 00 00 00 50 f6 12 00 ............P... +0050 12 00 00 00 04 00 00 00 10 00 00 00 ............ + + + Reply: 0x6c bytes + +0000 2c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ,............... +0010 71 72 75 76 79 7e 80 7f 7b 7c 7f 81 82 84 86 87 qruvy~..{|...... +0020 85 81 80 81 83 82 80 7f 80 7c 77 76 78 7a 79 77 .........|wvxzyw +0030 75 76 78 79 79 7b 7f 7f 7e 7d 80 84 84 84 87 8b uvxyy{..~}...... +0000 02 00 00 00 13 00 00 22 2c 00 00 00 50 f6 12 00 .......",...P... +0010 00 00 00 00 12 00 00 00 10 00 00 00 10 00 00 00 ................ +0020 00 00 02 00 00 00 18 00 e0 08 54 aa ..........T. + + +
+ +
+ 13 Set extended parameters + + No documentation; not yet seen in USB stream. + +
+ +
+ Select camera output: 14 + + Sends a 9-byte payload: 0x00000014, 0x00000001, and a + single byte with the code LCD (0x1), Video out (0x2), or OFF + (0x3). + +
+ +
+ 15 Do auto exposure, focus, and white balance + + No documentation; not yet seen in USB stream. + +
+ +
+ +
+ Download Captured Image + + requesttype=0x17 + + Command: 0x60 bytes: + +0000 20 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 17 00 00 12 20 00 00 00 22 29 05 01 ............").. +0050 00 00 00 00 00 14 00 00 01 00 00 00 16 15 01 2d ...............- + + + The information is all 4-byte integers. + + 0x50: zero + + 0x54: maximum block length to be used for bulk + transfer of the image (0x00001400 here) + + 0x58: code: 1=fetch thumbnail, 2=fetch full + image + + 0x5c: “image index” obtained from + an interrupt read just after capture. The G2 seems + less finicky about this: it’s an integer that counts + up from 1 in each session. The EOS cameras have some + inscrutable code that must be gotten from the camera. + + + + Response packet of 0x40 bytes: + +0000 00 00 00 00 02 03 30 17 00 00 00 00 00 00 00 00 ......0......... +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + + + Bytes 6-10 of the reply packet contain the 32-bit total + length of the image data transfers, here 0x00001730. We must + then issue a series of bulk reads as explained above. + +
+ +
+ Download Captured Preview + + requesttype=0x18? + + No documentation; not yet seen in USB stream. +
+ +
+ Unknown + + requesttype=0x1a + + Not seen with EOS D60 and Canon RemoteCapture. Seen only + with D30. + + If byte 0x50 is some sort of opcode, it may come in + sequence: 01, 02, 03 in consecutive commands. + + Command: 0x7C bytes + + +0000 3c 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 <............... +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 1a 00 00 12 3c 00 00 00 f8 c4 12 00 ........<....... +0050 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ +0060 00 00 00 00 b8 c7 12 00 9b 2b 40 00 58 c8 12 00 .........+@.X... +0070 b8 6d 4f 00 02 00 00 00 01 e6 12 00 .mO......... + + + Reply: 0x80 bytes + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 1a 00 00 22 40 00 00 00 f8 c4 12 00 ......."@....... +0050 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 ................ +0060 ac 00 00 00 5e b5 ff ff 55 1b 00 00 10 00 54 1b ....^...U.....T. +0070 0c 00 ef 19 9c 0f 53 02 58 9d 0c 00 ef 19 ee 26 ......S.X......& + + + So the reply message is just the same length as the + command, with 4 bytes of status code inserted. I can't see any + mapping between what goes out and what comes back, + though. Here the first three words of both command payload and + response payload are 1,0,1, but then they diverge. + + +0000 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 + 01 00 00 00 00 00 00 00 01 00 00 00 ac 00 00 00 + +0010 00 00 00 00 b8 c7 12 00 9b 2b 40 00 58 c8 12 00 + 5e b5 ff ff 55 1b 00 00 10 00 54 1b 0c 00 ef 19 + +0020 b8 6d 4f 00 02 00 00 00 01 e6 12 00 + 9c 0f 53 02 58 9d 0c 00 ef 19 ee 26 + + +
+ +
+ EOS (D30/D60) Lock Keys + + requesttype=0x1b + + This command will normally be issued immediately before a + "release shutter" command, unlike the non-EOS “lock keys” command, + which is issued at camera initialization. This late locking is + so that the EOS camera can still be operated directly, even + when connected to the USB port. The PowerShot cameras don't + have this capability, so they can (should) be locked as soon + as the USB connection is made. + + Command: 0x54 bytes + +0000 14 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 0a 00 00 00 30 00 00 00 00 03 01 00 ........0....... +0020 00 00 00 00 01 01 00 ff 03 ff 01 30 06 ff 01 ff ...........0.... +0030 00 00 00 7f 10 00 48 00 ff ff ff ff 18 c8 18 ff ......H......... +0040 02 00 00 00 1b 00 00 12 14 00 00 00 a4 f6 12 00 ................ +0050 06 00 00 00 .... + + + Response: 0x54 bytes + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 1b 00 00 22 14 00 00 00 a4 f6 12 00 ......."........ +0010 00 00 00 00 .... + + + Status codes: + + 0x00000000 No errors + 0x02000086 Unknown + + +
+ +
+ EOS Unlock Keys + + requesttype=0x1c + + This command is normally issued during the interrupt + sequence after a "release shutter" command, so as to make the + camera available as soon as possible. + + Command: 0x50 bytes + +0000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 1c 00 00 12 10 00 00 00 58 f7 12 00 ............X... + + + Response: 0x54 bytes + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 1c 00 00 22 14 00 00 00 58 f7 12 00 ......."....X... +0010 00 00 00 00 .... + +
+ +
+ Get EOS Body ID + + requesttype=0x1d + + Used only with EOS cameras. Canon RemoteCapture issues it + immediately before entering remote capture mode. + + Command: 0x50 bytes + +0000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 1d 00 00 12 10 00 00 00 f4 f4 12 00 ................ + + + Response: 0x58 bytes (EOS D30) + +0000 00 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 1d 00 00 22 18 00 00 00 f4 f4 12 00 ......."........ +0010 00 00 00 00 ea 01 28 18 ......(. + + + There’s one zero word, then four bytes containing the body ID. + + With a D30, the upper 16 bits should be used directly as + hexadecimal digits, and the lower 16 bits should be converted + to decimal. For this camera, it’s 182800490: 0x1828 + concatenated with 00490, which is the decimal equivalent of + 0x01ea. The following C code fragment will do the trick: + + char serialnumber[10]; + sprintf ( serialnumber, "%04x%05d", (body_id>>16)&0xffff, body_id&0xffff ); + + + For a D60, it’s a simple binary number: convert it + to decimal to get the body ID. “1e ab d6 3c” + becomes 0x3cd6ab1e; the decimal equivalent is 1020701470, the + number on the sticker on the base of the camera. This C code + fragment will convert this to ASCII correctly: + + char serialnumber[10]; + sprintf ( serialnumber, "%d", body_id ); + + +
+ +
+ Get Camera Photo Abilities + + requesttype=0x1f + + Command: 0x50 bytes + + +0000: 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040: 02 00 00 00 1f 00 00 12 10 00 00 00 78 56 34 12 ............xV4. + + + + Reply is 0x384 bytes (PowerShot G2): + + +0000: 44 03 00 00 01 03 00 00 00 00 00 00 00 00 00 00 D............... +0010: aa 55 aa 55 aa 55 aa 55 aa 55 aa 55 aa 55 aa 55 .U.U.U.U.U.U.U.U +0020: aa 55 aa 55 aa 55 aa 55 aa 55 aa 55 aa 55 aa 55 .U.U.U.U.U.U.U.U +0030: aa 55 aa 55 aa 55 aa 55 aa 55 aa 55 aa 55 aa 55 .U.U.U.U.U.U.U.U +0040: 02 00 00 00 1f 00 00 22 44 03 00 00 78 56 34 12 ......."D...xV4. +0050: 00 00 00 00 30 03 00 00 10 01 50 6f 77 65 72 53 ....0.....PowerS +0060: 68 6f 74 20 47 32 00 00 00 14 00 00 80 28 00 00 hot G2.......(.. +0070: 00 40 00 00 00 00 00 00 00 00 0d 00 00 00 4c 61 .@............La +0080: 72 67 65 3a 53 75 70 65 72 46 69 6e 65 00 00 00 rge:SuperFine... +0090: 00 00 a8 06 00 00 e0 08 00 00 01 00 00 00 4c 61 ..............La +00a0: 72 67 65 3a 46 69 6e 65 00 00 40 00 00 00 00 00 rge:Fine..@..... +00b0: 00 00 a8 06 00 00 e0 08 00 00 02 00 00 00 4c 61 ..............La +00c0: 72 67 65 3a 4e 6f 72 6d 61 6c 00 00 00 20 00 00 rge:Normal... .. +00d0: 00 00 a8 06 00 00 e0 08 00 00 03 00 00 00 4d 65 ..............Me +00e0: 64 69 75 6d 20 31 3a 53 75 70 65 72 46 69 6e 65 dium 1:SuperFine +00f0: 00 00 b0 04 00 00 40 06 00 00 01 00 00 00 4d 65 ......@.......Me +0100: 64 69 75 6d 20 31 3a 46 69 6e 65 00 00 00 00 00 dium 1:Fine..... +0110: 00 00 b0 04 00 00 40 06 00 00 02 00 00 00 4d 65 ......@.......Me +0120: 64 69 75 6d 20 31 3a 4e 6f 72 6d 61 6c 00 00 00 dium 1:Normal... +0130: 00 00 b0 04 00 00 40 06 00 00 03 00 00 00 4d 65 ......@.......Me +0140: 64 69 75 6d 20 32 3a 53 75 70 65 72 46 69 6e 65 dium 2:SuperFine +0150: 00 55 00 03 00 00 00 04 00 00 01 00 00 00 4d 65 .U............Me +0160: 64 69 75 6d 20 32 3a 46 69 6e 65 00 a8 71 aa 55 dium 2:Fine..q.U +0170: aa 55 00 03 00 00 00 04 00 00 02 00 00 00 4d 65 .U............Me +0180: 64 69 75 6d 20 32 3a 4e 6f 72 6d 61 6c 00 aa 55 dium 2:Normal..U +0190: ae 55 00 03 00 00 00 04 00 00 03 00 00 00 53 6d .U............Sm +01a0: 61 6c 6c 3a 53 75 70 65 72 46 69 6e 65 00 aa 55 all:SuperFine..U +01b0: aa 51 e0 01 00 00 80 02 00 00 01 00 00 00 53 6d .Q............Sm +01c0: 61 6c 6c 3a 46 69 6e 65 00 d5 aa 15 ab 55 aa 55 all:Fine.....U.U +01d0: aa 55 e0 01 00 00 80 02 00 00 02 00 00 00 53 6d .U............Sm +01e0: 61 6c 6c 3a 4e 6f 72 6d 61 6c 00 55 aa 55 aa 55 all:Normal.U.U.U +01f0: 2b 55 e0 01 00 00 80 02 00 00 03 00 00 00 43 52 +U............CR +0200: 57 00 aa 75 aa 15 aa 55 a8 54 aa 55 2a 57 aa 55 W..u...U.T.U*W.U +0210: 0a 75 a8 06 00 00 e0 08 00 00 04 00 00 00 aa 55 .u.............U +0220: aa d5 2a 54 aa 55 aa 55 aa c7 aa 55 aa 15 aa 55 ..*T.U.U...U...U +0230: ee 75 a2 55 a8 55 ff ff fe ff ff ff 7d f9 ff ff .u.U.U......}... +0240: ff af ff ff df ff ff ff ff ef ff ff fb ff ff ff ................ +0250: be ff df ff fb fb ff ff ff ff ff ff fd ff ff ff ................ +0260: 7d df bf f7 7f fe ff ff 3f ff be ff ff 57 ff ff }.......?....W.. +0270: bf fb ff f7 ef 9f ff fb af ff ff ff ff ff 78 00 ..............x. +0280: 00 00 00 00 00 00 a0 00 00 00 00 00 00 00 14 00 ................ +0290: 00 00 00 80 00 00 00 80 00 00 00 80 00 00 00 80 ................ +02a0: 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 80 ................ +02b0: 00 00 00 80 03 00 00 80 66 00 00 80 00 00 00 00 ........f....... +02c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +02d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +02e0: 28 00 00 50 00 80 00 14 00 c0 00 00 00 80 00 00 (..P............ +02f0: 00 80 00 00 00 80 00 00 00 80 00 00 00 80 00 00 ................ +0300: 00 80 00 00 00 80 00 00 00 80 00 00 00 80 00 00 ................ +0310: 00 c0 00 00 00 80 00 00 00 80 00 00 00 80 00 00 ................ +0320: 00 00 00 00 00 00 00 00 00 80 00 00 00 80 00 00 ................ +0330: 00 80 00 00 00 80 00 00 00 00 00 00 00 00 00 00 ................ +0340: 00 00 00 00 00 00 00 00 00 00 00 00 00 f0 00 00 ................ +0350: 00 80 00 00 00 80 00 00 00 80 00 00 00 80 00 50 ...............P +0360: 00 80 00 00 00 80 00 14 00 c0 00 00 00 00 00 00 ................ +0370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0380: 00 00 55 aa ..U. + + + Fields in “camera photo abilities” response + + + + offsetbytesvalue + + + 0x50:4status code + 0x54:2size of structure (here 0x330=816 bytes) + 0x56:4Camera model identifier? (here 0x01100000). This will + show up as the value of the image file tag 0x0010 (EXIF) or 0x5834 (CRW) + 0x5a:32camera identification (ASCII) + 0x7a:4Count n of number of entries in image-quality table + 0x7c:n*32Table of image quality levels allowed + + +
+ + The observed values at 0x56 are: 0x00000110 (G2) 0x000125 + (A70), 0x00000127 (IXUS 400), 0x00000129 (G5), 0x00000134 + (A80), 0x00000145 (A400), 0x00000157 (A510), 0x80000166 (D60), + 0x80000170 (300D), 0x8003024a (Optura 20). + + Each entry in the table seems to be + +struct { + char imageType[20]; /* ASCII name of this image type */ + long imageHeight, imageWidth; + long compressionType; /* 1: SuperFine 2:Fine 3:Normal 4:RAW */ +} tableEntry; + + So we can see that the PowerShot G2 can produce the following image types: + + PowerShot G2 image formats reported + + + + HeightWidthCompressionName + + + 17042272JPEG superfineLarge: + 17042272JPEG fineLarge: + 17042272JPEG normalLarge: + 12001600JPEG superfineMedium 1: + 12001600JPEG fineMedium 1: + 12001600JPEG normalMedium 1: + 7681024JPEG superfineMedium 2: + 7681024JPEG fineMedium 2: + 7681024JPEG normalMedium 2: + 480640JPEG superfineSmall: + 480640JPEG fineSmall: + 480640JPEG normalSmall: + 17042272RawCRW + + +
+ I suspect that the remaining bytes after 0x21c are garbage. + + Note: This command doesn't seem to be implemented on the + EOS D30/D60 or the PowerShot S45 or G3. I suspect that it's + being phased out, and new cameras from now on (February 2003) + won't implement it. The new protocol uses a different code for what + seems to be the same function. + + Some recent models return responses of different length, + so code must be ready for this and read the length from the + first four bytes of the response. Cameras known to give + different response lengths are + + + Camera models with unusual response length + + + + ModelResponse lengthComments + + + PowerShot A400 + 0x394 + No entries in table (count=0). + + PowerShot A80, G5 + 0x394 + No entries in table (count=0). Camera name is unprintable garbage. + + + +
+ +
+ +
+ Lock Keys + + requesttype=0x20 + + Not used for EOS D30/D60 cameras: use “EOS Lock Keys” + instead. This command is normally issued during camera + initialization for a non-EOS camera, as those cameras can't + share control between the host computer and the on-camera + controls. + We don't know how to reverse this command, + i.e. unlock the keys on a non-EOS camera. To regain control of + a non-EOS camera, unplug the USB cable. + + Command: 0x50 bytes + +0000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 20 46 69 6c 65 73 00 43 4f 4d 50 55 54 45 52 4e Files.COMPUTERN +0020 41 4d 45 3d 52 41 4c 50 48 00 43 6f 6d 53 70 65 AME=RALPH.ComSpe +0030 63 3d 43 3a 5c 57 49 4e 4e 54 5c 73 79 73 74 65 c=C:\WINNT\syste +0040 02 00 00 00 20 00 00 12 10 00 00 00 94 f7 e1 00 .... ........... + + + Reply: 0x54 bytes + +0000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0020 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0030 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 ................ +0000 02 00 00 00 1f 00 00 22 14 00 00 00 94 f7 e1 00 ......."........ +0010 00 00 00 00 .... + +
+ +
+ USB Upload (a little bit special) + Control_transfer_write + requesttype=0x40 + value=0x10 + length=0x40 + data=0x00000000 0x0203 0x40+len1[explained later] [0x00 repeated 0x38] + + Example: + +0000 00 00 00 00 03 02 7a 14 00 00 00 00 00 00 00 00 ......z......... +0010 8e 58 63 3e 44 2e 43 54 47 00 00 00 00 00 00 00 .Xc>D.CTG....... +0020 00 00 00 00 00 83 85 82 87 84 7f 81 7f 7d 7b 77 .............}{w +0030 7e 81 7e 7d 7c 7d 81 80 82 80 7c 80 81 7f 84 83 ~.~}|}....|..... + + + This is identical to the response to “Download + Captured Image”, except for the cmd3 + halfword at 0x04. The cmd3 halfword is + 0x0203 here, 0x0302 there. + + bulk_in_read [0x40 bytes] + Example: + +0000 00 00 00 00 03 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 8e 58 63 3e 44 2e 43 54 47 00 00 00 00 00 00 00 .Xc>D.CTG....... +0020 00 00 00 00 00 83 85 82 87 84 7f 81 7f 7d 7b 77 .............}{w +0030 7e 81 7e 7d 7c 7d 81 80 82 80 7c 80 81 7f 84 83 ~.~}|}....|..... + + + The following block obeys the normal command block + structure. The exact layout is: + + +0000000: xx xx xx xx 03 04 00 00 - 00 00 00 00 00 00 00 00 +0000010: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 +0000020: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 +0000030: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 +0000040: 02 00 00 00 03 00 00 11 - xx xx xx xx SS SS SS SS +0000050: 00 00 00 00 UU UU UU UU - VV VV VV VV pathname data ... + + + xx xx xx xx : len1, the length of the + payload (total block length - 0x40) + + cmd3 = 0x00000403 + cmd1 = 0x03 + cmd2 = 0x11 + xx xx xx xx : len1 (again) + + SS SS SS SS : sequence number + + UU UU UU UU : Offset within file; + starts at zero, increments by len2 (below) for next block + + VV VV VV VV : len2, length of data in + this block. Normally 0x1400 or less. + + pathname : full path name of file on + camera, terminated by one NUL. File cannot be created in + nonexistent directory. data + : image data (len2 bytes) + + Example of beginning of a block: + +0000 3a 14 00 00 03 04 00 00 00 00 00 00 00 00 00 00 :............... +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 03 00 00 11 3a 14 00 00 a2 4c 10 02 ........:....L.. +0050 00 00 00 00 00 00 00 00 00 14 00 00 44 3a 5c 44 ............D:\D +0060 43 49 4d 5c 31 35 38 43 41 4e 4f 4e 5c 41 55 54 CIM\158CANON\AUT +0070 5f 30 30 30 31 2e 4a 50 47 00 ff d8 ff e1 18 ba _0001.JPG....... +0080 45 78 69 66 00 00 49 49 2a 00 08 00 00 00 09 00 Exif..II*....... +0090 0f 01 02 00 06 00 00 00 7a 00 00 00 10 01 02 00 ........z....... +00A0 .... + + + The filename here is + “D:\DCIM\158CANON\AUT_0001.JPG”; the offset is + zero (i.e. this is the first block of this file) and length is + 0x1400. Len1 is 0x143a, which is 0x1400 + + 0x10 + 0xc (three full words) + 0x1e (length of + pathname+1). + + Response to this block (0x5c bytes): + +0000 00 00 00 00 03 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 78 00 00 00 76 00 00 00 ........x...v... +0020 36 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 6............... +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 03 00 00 21 1c 00 00 00 a2 4c 10 02 .......!.....L.. +0050 00 00 00 00 00 14 00 00 00 14 00 00 ............ + + + The interesting words are: + + + 0x50 Status + + 0x54 Count of bytes already transferred in this + upload? + + 0x58 Number of bytes of real data transferred in the + latest bulk write. + + + Unfortunately, the number at 0x54 seems to jump too fast; + after the second write of 0x1400 bytes, it reads 0x3c00, not + 0x2800. And after the next, it's 0x6400, not 0x3c00. In fact, + it counts up by multiples of the 0x1400 data length: 1, 3, 5, + 7, 9, ... + + This transaction is repeated until the whole file is + transmitted. + + At the end of the transfer, there will usually be one + “short” transfer. Here it is 0x117e bytes: + +0000 b8 11 00 00 03 04 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 03 00 00 11 b8 11 00 00 a2 4c 10 02 .............L.. +0050 00 00 00 00 00 4c 04 00 7e 11 00 00 44 3a 5c 44 .....L..~...D:\D +0060 43 49 4d 5c 31 35 38 43 41 4e 4f 4e 5c 41 55 54 CIM\158CANON\AUT +0070 5f 30 30 30 31 2e 4a 50 47 00 02 8a 00 28 a0 02 _0001.JPG....(.. +0080 8a 00 28 a0 02 8a 00 28 a0 02 8a 00 28 a0 02 8a ..(....(....(... +0090 00 28 a0 02 8a 00 28 a0 02 8a 00 28 a0 02 8a 00 .(....(....(.... + + + Here the offset is 0x44c00. + + The response is 0x5c bytes + +0000 00 00 00 00 03 03 00 00 00 00 00 00 00 00 00 00 ................ +0010 7a 8c f2 3e 94 98 6a 3b 19 01 14 ee 3d f2 79 14 z..>..j;....=.y. +0020 a0 07 f9 17 0c ab d4 e7 9a 43 bb ec 3c 6d 7e 4e .........C..<m~N +0030 0a 2f 71 9c d2 ae 1f 32 37 cd 8e 87 1c d1 61 58 ./q....27.....aX +0040 02 00 00 00 03 00 00 21 1c 00 00 00 a2 4c 10 02 .......!.....L.. +0050 00 00 00 00 7e a9 08 00 7e 11 00 00 ....~...~... + + + The “total byte count” (or whatever it is) is + now 0x8a97e. After this the caller must set the file time; otherwise + it is left at -1. + +
+ +
+ + + New USB Interface + + The EOS 20D introduced a new version of the Canon native + protocol. While it still seems to use the same basic format of + command and response blocks, some command codes have been + abandoned, new ones added, and, worst of all, some + codes have changed their meanings. This section + describes what we know so far about this revised protocol. I + assume that there will be other cameras using this new protocol; + the first candidates would be the EOS 1D Mk. II and 1D Mk. II, + which share the CR2 raw image format with the 20D. + +
+ Summary of available (known) commands in new protocol + New Storage Control Commands (cmd2=0x11) + + + + cmd1cmd3Argument(e.g.)Response LengthOperationOld code + + 0x010x202 + 0x00000001 "A:/DCIM/100CANON\IMG_0098.CR2" <NUL> + LGet picture0x01 + 0x040x201 + none0x54 + Unknown + 0x050x201 + none0x54 + Unknown + 0x060x201 + none0x54 + Unknown + 0x070x201 + none0x54 + Unknown + 0x090x201 + none0x54 + Unknown + 0x0A0x201 + "A:/DCIM/101CANON/IMG_0105.JPG" 0x0007 0x0005 0x0100 0x0008 0x008f7668 0x008f8078 "A:/DCIM/101CANON/" L + Delete file0x0D + 0x0B0x202 + 0x01 "D:\DCIM"<NUL> <NUL> <NUL>L + Get directory0x0B + 0x0D0x201 + "A:" <NUL>0x5c + Disk info request0x09 + 0x0E0x202 + noneL + Flash Device Identification0x0A + + +
+ + New Camera Control Commands (cmd2=0x12) + + + + cmd1cmd3Argument(e.g.)Response LengthOperationOld code + + + 0x010x201 + none0x9c + Identify camera0x01 + 0x030x201 + none0x60 + Get time0x03 + 0x040x201 + 0x390873f0 0x000000000x54 + Set time0x04 + 0x050x201 + none0x74 + Get ownerNA + 0x060x201 + "Cornell University" <NUL>0x54 + Set owner0x05 + 0x130x201 + none0x58 + Power supply status0x0A + 0x1D0x201 + 0x000000000x94 + Get custom function settings0x13/??? + 0x210x201 + 0x000000000x54 + Unknown command + 0x220x201 + 0x0000000f0x54 + Unknown command + 0x230x201 + none0x58 + Get Body ID0x1D + 0x240x201 + none0x458 + Get Photo Abilities0x1F + 0x250x201 + 9 bytes: 00 00 00 00 00 00 00 00 000x5c + Remote Capture Control0x13 + 0x260x202 + 0x10 bytes: 00 00 00 00 00 00 01 00 02 00 00 00 07 00 00 00varies + Get captured image0x17 + 0x350x201 + none0x5c + Lock keys0x1B + 0x360x201 + 00 00 00 00 00 00 00 000x54 + Unknown + + +
+ +
+ +
+ Get Picture + + requesttype=0x01 + + Downloads a full image or thumbnail from camera + storage. Similar with command in old protocol, but parameters differ. + + Command: variable length (here 0x76 bytes) + + +00000000 33 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 3............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 01 00 20 11 33 00 00 00 18 cd 12 00 ...... .3....... +00000050 01 00 00 00 41 3a 2f 44 43 49 4d 2f 31 30 30 43 ....A:/DCIM/100C +00000060 41 4e 4f 4e 2f 49 4d 47 5f 30 30 39 38 2e 43 52 ANON/IMG_0098.CR +00000070 32 00 00 2.. + + + Parameters: + + + 0x50: Flag for download of thumbnail: + 0x00000001 for thumbnail, 0x00000000 for full image. + + 0x54: Pathname of file to download, terminated + by a two NUL bytes + + + + The example requests download of the full image in file + “A:/DCIM/100CANON/IMG_0098.C2R”. Notice the + forward slashes in this pathname. + + Response: 0x40 bytes (EOS 20D) + + +00000000 00 00 00 00 02 03 d6 3a 0e 00 00 00 00 00 00 00 .......:........ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + + + This indicates a total file size of 1647748 bytes + (0x000e3ad6 from offset 0x06). After this, a series of 14 + messages with length 0x10000 was read, then one read of length + 0x3ac0. Finally, a read of 0x16 finished download of the + image. This example seems to be downloading a CR2 raw image + file; notice the TIFF magic + II* at the + sbeginning. + + +00000000 49 49 2a 00 10 00 00 00 43 52 02 00 20 ee 07 00 II*.....CR.. ... +00000010 0e 00 00 01 03 00 01 00 00 00 00 06 4c cc 01 01 ............L... +00000020 03 00 01 00 00 00 00 04 33 33 02 01 03 00 03 00 ........33...... +00000030 00 00 be 00 00 00 03 01 03 00 01 00 00 00 06 00 ................ +00000040 cc cc 0f 01 02 00 06 00 00 00 c4 00 00 00 10 01 ................ +00000050 02 00 0e 00 00 00 ca 00 00 00 11 01 04 00 01 00 ................ +00000060 00 00 00 26 00 00 12 01 03 00 01 00 00 00 01 00 ...&............ +00000070 22 33 17 01 04 00 01 00 00 00 28 2a 03 00 1a 01 "3........(*.... +00000080 05 00 01 00 00 00 ea 00 00 00 1b 01 05 00 01 00 ................ +00000090 00 00 f2 00 00 00 28 01 03 00 01 00 00 00 02 00 ......(......... +000000a0 27 33 32 01 02 00 14 00 00 00 fa 00 00 00 69 87 '32...........i. +000000b0 04 00 01 00 00 00 0e 01 00 00 28 50 03 00 08 00 ..........(P.... +000000c0 08 00 08 00 43 61 6e 6f 6e 00 43 61 6e 6f 6e 20 ....Canon.Canon +000000d0 45 4f 53 20 32 30 44 00 dc cc cc cc 8c cc cc de EOS 20D......... +000000e0 33 33 77 b3 13 b6 cf f9 32 33 48 00 00 00 01 00 33w.....23H..... +000000f0 00 00 48 00 00 00 01 00 00 00 32 30 30 34 3a 31 ..H.......2004:1 +00000100 31 3a 31 30 20 30 36 3a 34 33 3a 30 36 00 1c 00 1:10 06:43:06... +00000110 9a 82 05 00 01 00 00 00 64 02 00 00 9d 82 05 00 ........d....... +00000120 01 00 00 00 6c 02 00 00 22 88 03 00 01 00 00 00 ....l..."....... +... +00000000 ec ca cc cc ec cc ed ee cc d6 cc cc ef cc cc 48 ...............H +00000010 cc ae 33 33 b3 b7 ..33.. + + +
+ +
+ + Unknown function + + requesttype=0x04 + + When called as for "set file attributes": + + +0000 33 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 3............... +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 04 00 10 11-33 00 00 00 0a 00 00 00 ........3....... +0050 00 00 00 00 41 3a 5c 44-43 49 4d 5c 31 37 32 43 ....A:\DCIM\172C +0060 41 4e 4f 4e 00 49 4d 47-5f 37 32 35 32 2e 4a 50 ANON.IMG_7252.JP +0070 47 00 00 - G.. + + + returns 0x58 bytes: + + +0000 18 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 04 00 10 21-18 00 00 00 0a 00 00 00 .......!........ +0010 87 00 40 82 ff ff ff ff- ..@..... + + + The status code is nonzero, indicating some sort of error. + +
+ +
+ + Unknown function + + requesttype=0x05 + + When called as for "set file attributes": + + +0000 33 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 3............... +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 05 00 10 11-33 00 00 00 0a 00 00 00 ........3....... +0050 00 00 00 00 41 3a 5c 44-43 49 4d 5c 31 37 32 43 ....A:\DCIM\172C +0060 41 4e 4f 4e 00 49 4d 47-5f 37 32 35 32 2e 4a 50 ANON.IMG_7252.JP +0070 47 00 00 - G.. + + + returns 0x54 bytes: + + +0000 14 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 05 00 10 21-14 00 00 00 0a 00 00 00 .......!........ +0010 20 00 40 82 - .@. + + + The status code is nonzero, indicating some sort of error. + +
+ +
+ + Unknown function + + requesttype=0x06 + + When called as for "set file attributes": + + +0000 33 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 3............... +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 06 00 10 11-33 00 00 00 09 00 00 00 ........3....... +0050 00 00 00 00 41 3a 5c 44-43 49 4d 5c 31 37 32 43 ....A:\DCIM\172C +0060 41 4e 4f 4e 00 49 4d 47-5f 37 32 35 32 2e 4a 50 ANON.IMG_7252.JP +0070 47 00 00 - G.. + + + returns 0x54 bytes: + + +0000 14 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 06 00 10 21-14 00 00 00 09 00 00 00 .......!........ +0010 20 00 40 82 - .@. + + + The status code is nonzero, indicating some sort of error. + +
+ +
+ + Unknown function + + requesttype=0x07 + + When called as for "set file attributes": + + +0000 33 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 3............... +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 07 00 10 11-33 00 00 00 09 00 00 00 ........3....... +0050 00 00 00 00 41 3a 5c 44-43 49 4d 5c 31 37 32 43 ....A:\DCIM\172C +0060 41 4e 4f 4e 00 49 4d 47-5f 37 32 35 32 2e 4a 50 ANON.IMG_7252.JP +0070 47 00 00 - G.. + + + returns 0x54 bytes: + + +0000 14 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 07 00 10 21-14 00 00 00 09 00 00 00 .......!........ +0010 00 00 00 00 - .... + + + The status code is zero, indicating success, but success + at what? The state of the named file on the storage card + doesn't change. + +
+ +
+ + Unknown function + + requesttype=0x09 + + When called as for "set file attributes": + + +0000 33 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 3............... +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 09 00 10 11-33 00 00 00 0a 00 00 00 ........3....... +0050 20 00 00 00 41 3a 5c 44-43 49 4d 5c 31 37 32 43 ...A:\DCIM\172C +0060 41 4e 4f 4e 00 49 4d 47-5f 37 32 35 32 2e 4a 50 ANON.IMG_7252.JP +0070 47 00 00 - G.. + + + returns 0x54 bytes: + + +0000 14 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0000 02 00 00 00 09 00 10 21-14 00 00 00 0a 00 00 00 .......!........ +0010 20 00 40 82 - .@. + + + That status code hasn't been seen before. + +
+ +
+ Delete file + + requesttype=0x0a + + This differs from + the command 0x0d in + the older protocol; instead of separate strings for directory + and file name, we have a complete path specification + (directory/file), then another copy of the directory + name. Each seems to be allowed 48 bytes (0x30). + + Command: variable length (here 0x91 bytes) + +00000000 51 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 Q............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 0a 00 10 11 51 00 00 00 2c d8 12 00 ........Q...,... +00000050 41 3a 2f 44 43 49 4d 2f 31 30 31 43 41 4e 4f 4e A:/DCIM/101CANON +00000060 2f 49 4d 47 5f 30 31 30 35 2e 4a 50 47 00 00 00 /IMG_0105.JPG... +00000070 07 00 05 00 00 01 08 00 68 76 8f 00 78 80 8f 00 ........hv..x... +00000080 41 3a 2f 44 43 49 4d 2f 31 30 31 43 41 4e 4f 4e A:/DCIM/101CANON +00000090 2f / + + + Here we delete a JPEG file. The complete path string is + terminated by (at least one) zero byte, followed by garbage. + At offset 0x80 of the packet (0x30 of the payload), we have + the directory name, with no trailing zero + byte. + + Response: 0x54 bytes + + +00000000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 0a 00 10 21 14 00 00 00 2c d8 12 00 .......!....,... +00000010 00 00 00 00 .... + + + Status codes: + + 0x00000000 No errors + 0x82200040 ?? + 0x82220040 Bad parameters? Directory not found? + + +
+ +
+ Get Directory + + requesttype=0x0b + + Error codes: + + + 0x00000000 No errors + 0x02000022 File not found + 0x02000029 File was protected + 0x02000086 Path not found + + + Command: variable length (here 0x64 bytes) + + +00000000 24 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 $............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 0b 00 20 11 24 00 00 00 78 80 8f 00 ...... .$...x... +00000050 00 41 3a 5c 44 43 49 4d 5c 31 30 30 43 41 4e 4f .A:\DCIM\100CANO +00000060 4e 00 00 00 N... + + + The byte at offset 0x50 gives the level of recursion + allowed, here zero (no recursion). This is followed by the + directory pathname, here + “A:\DCIM\100CANON”. + + Response: 0x40 bytes + +00000000 00 00 00 00 02 03 78 00 00 00 00 00 00 00 00 00 ......x......... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + + + As with all “long” dialogues, the message + contains only the length of data to follow, as a word starting + at offset 0x06. In this case, the subsequent data will be 0x78 + bytes long. The next message from the camera is: + + +00000000 a0 00 00 00 00 00 cc 54 8b 41 41 3a 5c 44 43 49 .......T.AA:\DCI +00000010 4d 5c 31 30 30 43 41 4e 4f 4e 00 20 00 d3 9a 9f M\100CANON. .... +00000020 00 98 0f 90 41 49 4d 47 5f 30 30 39 38 2e 43 52 ....AIMG_0098.CR +00000030 32 00 20 00 52 b0 68 00 7a b8 91 41 49 4d 47 5f 2. .R.h.z..AIMG_ +00000000 30 30 39 39 2e 43 52 32 00 20 00 f3 2e 69 00 8a 0099.CR2. ...i.. +00000010 b8 91 41 49 4d 47 5f 30 31 30 30 2e 43 52 32 00 ..AIMG_0100.CR2. +00000020 80 00 00 00 00 00 00 00 00 00 2e 2e 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 ........ + + + This shows four entries. Each entry contains + + 1 byte attribute bits (described in + ) + 1 zero byte + 4 bytes file size in bytes (zero if directory) + 4 bytes UNIX time + File name (null-terminated string of arbitrary length) + “..” in + name means “leave directory”. + + + An entry with attributes, date, and length all zero + indicates the end of the directory listing. It seems that with + this camera, Canon has changed to putting the string ".." in + this empty entry; formerly, the name contained only a single + NUL. + + The contents of this listing: + + “A:\DCIM\100CANON”, attribute byte 0xa0. This is the name of the directory listed. + “IMG_0098.CR2”, attribute byte 0x20, size 0x009f9ad3 (10,459,869) time 0x41900f98. + “IMG_0099.CR2”, attribute byte 0x20, size 0x0068b052 (6,860,882) time 0x4191b87a. + “IMG_0100.CR2”, attribute byte 0x20, size 0x00692ef3 (6,893,299) time 0x4191b88a. + +
+ +
+ + Disk Info Request + + requesttype=0x0d + + This seems to be similar to + the command 0x09 in the + older protocol, but note that the device name has no trailing + backslash. + + Command: variable length (here 0x53 bytes) + +00000000 13 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 0d 00 10 11 13 00 00 00 a8 d9 12 00 ................ +00000050 41 3a 00 A:. + + + Argument: null-terminated string containing the name of + the disk. + + Response: 0x5c bytes + +00000000 1c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 0d 00 10 21 1c 00 00 00 a8 d9 12 00 .......!........ +00000010 00 00 00 00 c0 44 0f 00 80 ac 0e 00 .....D...... + + + + 0x54 contains a word with total bytes on flash. + 0x58 contains a word with bytes free. + + + So this camera seems to have a card with 1,000,640 bytes, + and 961,664 bytes free. I would guess that we need to multiply + by, say, 1024, since I think the card was 1GB. + +
+ +
+ Flash Device Identification + + requesttype=0x0e + + Command: 0x50 bytes + + +00000000 10 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 0e 00 20 11 10 00 00 00 84 d9 12 00 ...... ......... + + + Response: 0x44 bytes + + +00000000 00 00 00 00 02 03 04 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 41 3a 00 00 A:.. + + +
+ +
+ Identify Camera + + requesttype=0x01 + + This command is similar to “Identify Camera” + from the original protocol, but doesn't return the owner + name. To get the owner name, issue the “Get Owner” + command. + + Command: 0x50 bytes + +00000000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 01 00 10 12 10 00 00 00 08 e4 d5 00 ................ + + + Response: 0x9c bytes (EOS 20D): + +00000000 5c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 \............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 01 00 10 22 5c 00 00 00 08 e4 d5 00 ......."\....... +00000050 00 00 00 00 00 08 77 81 00 05 00 01 43 61 6e 6f ......w.....Cano +00000060 6e 20 45 4f 53 20 32 30 44 00 00 00 00 00 00 00 n EOS 20D....... +00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000010 01 00 00 00 00 00 00 00 00 00 00 00 ............ + + + + First 0x40 bytes is throwable (as usual) + Data at 0x54-0x57 (here 00 08 77 81) have unknown + purpose. + 0x58-0x5b is firmware version (04 03 02 01 is + version 1.2.3.4; 00 05 00 01 here is version 1.0.5.0) + At 0x5c is a string with camera type. + Bytes starting at 0x7c seem to be either zero + or garbage. + + +
+ +
+ Get time + + requesttype=0x03 + + No parameters. Identical with previous protocol. + + Command: 0x50 bytes + +00000000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 03 00 10 12 10 00 00 00 30 dc 12 00 ............0... + + + Response (0x60 bytes): + +00000000 20 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 03 00 10 22 20 00 00 00 30 dc 12 00 ......." ...0... +00000010 00 00 00 00 de de a1 41 00 00 00 00 00 00 00 00 .......A........ + + + 0x54 contains a 4-byte UNIX time + Other bytes are zero + + +
+ +
+ Set Time + + requesttype=0x04 + + Command: 0x5c bytes. + + +00000000 1c 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 04 00 10 12 1c 00 00 00 04 df 12 00 ................ +00000050 f5 de a1 41 00 00 00 00 00 00 00 00 ...A........ + + + + 0x50 contains a 4-byte UNIX time + Other bytes are zero + + + + Response: 0x54 bytes. + + +00000000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 04 00 10 22 14 00 00 00 04 df 12 00 ......."........ +00000010 00 00 00 00 .... + + + Status codes: + + 0x02000086 Invalid parameters (e.g. command block wrong length) + +
+ +
+ Get Owner + + requesttype=0x05 + + Command: 0x50 bytes. + + +00000000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 05 00 10 12 10 00 00 00 58 dc 12 00 ............X... + + + Response: 0x74 bytes. + + +00000000 34 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 4............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 05 00 10 22 34 00 00 00 58 dc 12 00 ......."4...X... +00000010 00 00 00 00 43 6f 72 6e 65 6c 6c 20 55 6e 69 76 ....Cornell Univ +00000020 65 72 73 69 74 79 20 32 35 35 2d 38 33 36 37 00 ersity 255-8367. +00000030 00 00 00 00 .... + + + Status code is 4 bytes at 0x50, followed by + null-terminated string. in a 32-byte field (i.e. maximum text + length is 31 bytes, I think. + +
+ +
+ Set Owner + + requesttype=0x06 + + Command is variable in length, here 0x63 bytes. + + +00000000 23 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 #............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 06 00 10 12 23 00 00 00 58 df 12 00 ........#...X... +00000050 43 6f 72 6e 65 6c 6c 20 55 6e 69 76 65 72 73 69 Cornell Universi +00000060 74 79 00 ty. + + + Response: 0x54 bytes. + + +00000000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 06 00 10 22 14 00 00 00 58 df 12 00 ......."....X... +00000010 00 00 00 00 .... + + + Status code is 4 bytes at 0x50. + +
+ +
+ Power supply status + + requesttype=0x13 + + Command: 0x50 bytes + +00000000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 13 00 10 12 10 00 00 00 28 ed f9 00 ............(... + + + Response: 0x58 bytes (from an EOS 20D on battery + power): + + +00000000 18 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 13 00 10 22 18 00 00 00 28 ed f9 00 ......."....(... +00000010 00 00 00 00 06 00 00 20 ....... + + + + First 0x50 bytes are throwable. + + 0x54 contains a byte with power status. 0x6=good, 0x4=bad + 0x57 contains a byte with power type in bit 4: + + ((value &0x20) == 0) running from ac-adapter + ((value &0x20) != 0) running from battery + + + + + The last two values also form the end of the response to + an “Identify camera” request. + +
+ +
+ Get Custom Functions + + requesttype=0x1d + + Command: 0x54 bytes + +00000000 14 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 1d 00 10 12 14 00 00 00 a4 e7 12 00 ................ +00000050 00 00 00 00 .... + + + Response: 0x94 bytes + +00000000 54 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 T............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 1d 00 10 22 54 00 00 00 a4 e7 12 00 ......."T....... +00000050 00 00 00 00 28 00 00 00 00 01 00 02 00 03 00 04 ....(........... +00000060 00 05 01 06 00 07 01 08 00 09 00 0a 00 0b 00 0c ................ +00000070 00 0d 00 0e 00 0f 00 10 00 11 00 12 7c ae 10 00 ............|... +00000000 40 49 b1 ff 70 af 10 00 28 82 b1 ff 00 00 00 00 @I..p...(....... +00000010 00 00 00 00 .... + + + At 0x50 is a 4-byte status code followed by a 4-byte count + of bytes (including the 4 bytes of the count), then + apparently the custom function settings for the camera. Then + at 0x7c is the same sequence as starting at offset 0x84 of + the reply to Identify + Camera. I suspect that this is garbage in the + buffer. + + Here are the meanings of all custom functions. Note that + this table is not the same as that for the earlier EOS + cameras. + + + Custom function values for EOS 20D + + + + + + + FunctionIndexValues + + + SET button func, when shooting10: Default (no function) 1: Change quality 2: Change parameters 3: Menu display 4: Image replay + Long exposure noise reduction21: on + Shutter speed in Av mode30: auto 1: 1/250 + Shutter button/AE lock button function40: AF/AE lock 1: AE lock/AF 2: AF/AF lock, no AE lock 3: AE/AF, no AE lock + Disable AF-assist light5 + TV,AV and exposure increments60: 1/2 stop 1: 1/3 stop + Flash firing70: Fires 1: Does not fire + ISO expansion80: Off 1: On + AEB sequence/auto cancellation90:0..-..+/enable 1:0..-..+/disable 2:-..0..+/enable 3:-..0..+/disable + Superimposed display100: On 1: Off + Menu button return position110: Previous (top if power off) 1: previous 2: Top + Mirror lockup121: on + Af point selection method130: Normal 1: Multi-controler direct 2: Quick Control Dial direct + E-TTL II140: Evaluative 1: Average + Shutter curtain sync150: first 1: second + Safety shift in Av or TV160: Disable 1: Enable + Lens AF stop button Fn, switch170: AF stop 1: AF start 2: AE lock while metering 3: AF point: M→Auto/Auto→ctr. 4: ONE SHOT ↔ AI SERVO 5: IS start + Add original decision data180: Off 1: On + + +
+ +
+ +
+ Unknown Command + + requesttype=0x21 + + Issued after Power supply status, + Identify Camera, + unknown command 2, + or Get captured + image. + + Command: 0x54 bytes + + +00000000 14 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 21 00 10 12 14 00 00 00 a8 e7 12 00 ....!........... +00000050 0f 00 00 00 .... + + + Camera Response: 0x54 bytes (EOS 20D) + + +00000000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 21 00 10 22 14 00 00 00 a8 e7 12 00 ....!.."........ +00000010 00 00 00 00 .... + +
+ +
+ Unknown Command + + requesttype=0x22 + + One parameter: 0x0000000f. Seems to be issued after a + “Remote Capture + Control” with subcode of 0x1c (unknown) or 0x04 + (release shutter), or at the endo of a file download. + + Command: 0x54 bytes + + +00000000 14 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 22 00 10 12 14 00 00 00 b0 e7 12 00 ...."........... +00000050 0f 00 00 00 .... + + + Camera Response: 0x54 bytes (EOS 20D) + + +00000000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 22 00 10 22 14 00 00 00 b0 e7 12 00 ....".."........ +00000010 00 00 00 00 .... + + + After this, there seems to be an interrupt read of 0x17 + (23) bytes: + + +00000000 02 00 00 00 0c 00 00 00 17 00 00 00 07 00 00 00 ................ +00000010 02 2d a4 81 00 83 ad .-..... + + + This looks a whole lot like the + second interrupt message after + release on an + older Canon camera. + + + + + 4-byte integer at byte 0 is 2 + + + 4-byte integer at byte 4 is 0xc + + + 4-byte integer at byte 8 is total length + + + 4-byte integer at byte 0x0c may be length of payload + (i.e. <total length> - 0x10) + + + 4-byte integer at byte 0x0c apparently gives the image + handle for download + + + The byte at 0x10 is 2, whereas earlier cameras gave + a 1 + + + 4-byte integer at byte 0x11 is the size of the image + file, just as with older cameras + + + The byte at 0x15 happens to be the endpoint index of + the interrupt endpoint of this device, but this may be + coincidence + + + The final byte was 0xb0 + for the G2, 0xaf for the D60. Could this be some sort of + camera model ID? + + + + But there seem to be other versions of the command, + e.g.: + + +00000000 14 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 21 00 10 12 14 00 00 00 a8 e7 12 00 ....!........... +00000050 0f 00 00 00 .... + + + with the following response: + +00000000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 21 00 10 22 14 00 00 00 a8 e7 12 00 ....!.."........ +00000010 00 00 00 00 .... + +
+ +
+ Get EOS Body ID + + requesttype=0x23 + + Issued after “Identify + Camera” + + Command: 0x50 bytes. + +00000000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 23 00 10 12 10 00 00 00 f0 df e4 00 ....#........... + + Response: 0x58 bytes + +00000000 18 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 23 00 10 22 18 00 00 00 f0 df e4 00 ....#.."........ +00000050 00 00 00 00 0e 46 03 1f .....F.. + + + The 4 bytes at 0x50 are presumably a status code (0 for + success); the next four bytes are the camera Body ID (hardware + serial number) in binary. Printing this number as a 10-digit + decimal with leading zeroes gives the “Camera Body + No.” seen in the EOS Viewer Utility. This camera has a + body ID of 0520308238. + + +
+ +
+ Get Photo Abilities + + requesttype=0x24 + + I think this replaces the “Get Camera Photo + Abilities” command. The response block for this + command is longer, but contains a similar list of image type + names, resolutions, and compression types. + + Command: 0x50 bytes + + +00000000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 24 00 10 12 10 00 00 00 f0 df e4 00 ....$........... + + Camera response: 0x474 bytes (EOS 20D) + +00000000 34 04 00 00 01 03 00 00 00 00 00 00 00 00 00 00 4............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 24 00 10 22 34 04 00 00 f0 df e4 00 ....$.."4....... +00000050 00 00 00 00 20 04 75 01 00 80 43 61 6e 6f 6e 20 .... .u...Canon +00000060 45 4f 53 20 32 30 44 00 00 00 00 00 00 00 00 00 EOS 20D......... +00000070 00 00 00 00 00 00 00 00 00 00 07 00 00 00 4c 61 ..............La +00000080 72 67 65 3a 46 69 6e 65 00 00 00 00 00 00 00 00 rge:Fine........ +00000090 00 00 20 09 00 00 b0 0d 00 00 02 00 00 00 4c 61 .. ...........La +000000a0 72 67 65 3a 4e 6f 72 6d 61 6c 00 00 00 00 00 00 rge:Normal...... +000000b0 00 00 20 09 00 00 b0 0d 00 00 03 00 00 00 4d 69 .. ...........Mi +000000c0 64 64 6c 65 3a 46 69 6e 65 00 00 00 00 00 00 00 ddle:Fine....... +000000d0 00 00 a0 06 00 00 f0 09 00 00 02 00 00 00 4d 69 ..............Mi +000000e0 64 64 6c 65 3a 4e 6f 72 6d 61 6c 00 00 00 00 00 ddle:Normal..... +000000f0 00 00 a0 06 00 00 f0 09 00 00 03 00 00 00 53 6d ..............Sm +00000100 61 6c 6c 3a 46 69 6e 65 00 00 00 00 00 00 00 00 all:Fine........ +00000110 00 00 80 04 00 00 c0 06 00 00 02 00 00 00 53 6d ..............Sm +00000120 61 6c 6c 3a 4e 6f 72 6d 61 6c 00 00 00 00 00 00 all:Normal...... +00000130 00 00 80 04 00 00 c0 06 00 00 03 00 00 00 43 52 ..............CR +00000140 57 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 W............... +00000150 00 00 20 09 00 00 b0 0d 00 00 04 00 00 00 00 00 .. ............. +00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000001c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70 00 ..............p. +00000280 00 00 00 00 00 00 9f 00 00 00 07 00 00 00 0f 00 ................ +00000290 00 00 00 80 00 00 00 80 00 00 00 80 00 00 00 80 ................ +000002a0 00 00 00 80 0f 00 00 80 00 00 00 80 00 00 00 80 ................ +000002b0 00 00 00 80 03 00 00 80 21 00 00 80 00 00 00 80 ........!....... +000002c0 00 00 00 00 00 00 00 80 00 00 00 80 00 00 00 00 ................ +000002d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000002e0 50 00 00 00 01 c0 00 00 01 80 00 00 00 80 0b 00 P............... +000002f0 00 80 00 00 00 80 00 00 00 80 00 00 00 80 00 00 ................ +00000300 00 80 00 00 00 a0 00 00 00 80 00 00 00 80 00 00 ................ +00000310 00 00 00 00 00 80 00 00 00 80 00 00 00 80 00 00 ................ +00000320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000330 00 80 00 00 00 80 00 00 00 00 00 00 00 00 00 00 ................ +00000340 00 80 00 00 00 80 00 00 00 90 00 00 25 a0 00 00 ............%... +00000350 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000360 00 00 00 00 00 00 00 00 00 fc 00 00 00 00 00 00 ................ +00000370 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000380 00 80 00 00 00 00 00 00 00 a0 00 00 00 80 00 00 ................ +00000390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000003a0 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 ................ +000003b0 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000003c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000003d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +000003e0 00 80 00 00 00 80 00 00 00 00 00 00 00 00 13 00 ................ +000003f0 00 80 13 00 00 80 00 00 00 00 00 00 00 00 00 00 ................ +00000400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + +00000440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000450 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000470 00 00 00 00 .... + + + Fields in “photo abilities” response + + + + offsetbytesvalue + + + 0x50:4status code + 0x54:2?Length of structure (here 0x420=1056) + 0x56:2?unknown (here 0x175=373, 2236/6 rounded to nearest integer) + 0x58:2unknown (here 0x8000=32,768) + 0x5a:32camera identification (ASCII) + 0x7a:4Count n-1 + where n is the number of entries in image-quality table + 0x7e:n*32Table of image quality levels allowed + + +
+ Each entry in the table seems to be + +struct { + char imageType[20]; /* ASCII name of this image type */ + long imageHeight, imageWidth; + long compressionType; /* 2:Fine 3:Normal 4:RAW */ +} tableEntry; + + So we can see that the EOS 20D can produce the following image types: + + EOS 20D image formats reported + + + + HeightWidthCompressionName + + + 22363504JPEG fineLarge:Fine + 22363504JPEG normalLarge:Normal + 16962544JPEG fineMiddle:Fine + 16962544JPEG normalMiddle:Normal + 11521728JPEG fineSmall:Fine + 11521728JPEG normalSmall:Normal + 22363504RawCRW + + +
+ I suspect that the remaining bytes after 0x15d are garbage. +
+ +
+ Remote Capture Control + + requesttype=0x25 + + I think this is the new version of Remote Camera + Control. Subcommands seen so far: + + Remote Camera Control Codes + + + + SubcommandSample ParametersReply LengthFunction + + + 00none5C + Camera control initialization + 01none5C + Exit release control + 04none5C + Release shutter + 07buffer of 0x34 bytes + 5CSet release parameters + 0904 00 00 00 09 00 00 005C + Set transfer mode + 0Anone8C + Get release parameters + 0Dnone60 + Get available shot + 10none60 + Get size of extended release parameters + 12nonevaries + Get extended release parameters + 13<block of parameters>5c + Set extended parameters + 1B0x4 0xb5e + Unknown + 1Cnone67, 6d, 70, 66, 65 + Unknown + + +
+ + The following functions haven't been seen yet. Some + (e.g. “get custom functions”) have, I think, been + superseded by other opcodes; others (e.g. “Start + viewfinder”, “Set zoom position”) don't + really apply to the EOS cameras that, so far, are the only + ones using this protocol. + + + Remote Camera Control Codes + + + + SubcommandSample ParametersReply LengthFunction + + + 02none5C + Start viewfinder + 03none5C + Stop viewfinder + 0Bnone60 + Get zoom position + 0C04 00 00 00 01 00 00 005c + Set zoom position + 0E????? + Set custom function + 0F14 bytes66 + Get custom function + 11???????? + Get version of extended release parameters + 1401 00 00 00 00 035C + Select camera output + 15?????? + Do auto exposure, focus, and white balance + + +
+ + The subcommand is stored as a little-endian 4-byte number + at the start of the message payload (i.e. starting 0x50 bytes + from the start of the buffer). Parameters vary by subcommand, + as noted below; they follow the subcommand in the message + payload. The minimum + is <subcommand> 0 with another zero + byte, so the minimum length of a command packet is 0x59. The + extra byte means that the length of this command will always + be odd. + + In the reply, the payload will always start with + status, + <subcommand>. After that, the + minimum is one more zero word (plus an extra zero byte), or + there may be more information. The minimum length is 0x5c. + + +
+ Camera control initialization: 00 + + Takes no parameters. + + Command: 0x59 bytes + + +00000000 19 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 19 00 00 00 68 e7 12 00 ....%.......h... +00000050 00 00 00 00 00 00 00 00 00 ......... + + + Camera response: 0x5c bytes + + +00000000 1c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 1c 00 00 00 68 e7 12 00 ....%.."....h... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 ............ + + +
+ +
+ Exit release control: 01 + + Takes no parameters + + Command: 0x59 bytes + + +00000000 19 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 19 00 00 00 58 e7 12 00 ....%.......X... +00000050 01 00 00 00 00 00 00 00 00 ......... + + + Response: 0x5c bytes + + +00000000 1c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 1c 00 00 00 58 e7 12 00 ....%.."....X... +00000010 00 00 00 00 01 00 00 00 00 00 00 00 ............ + + + +
+ +
+ Release shutter: 04 + + Takes no parameters. We haven't figured out interrupt + communication yet. + + Command: 0x59 bytes + + +00000000 19 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 19 00 00 00 44 e9 17 01 ....%.......D... +00000050 04 00 00 00 00 00 00 00 00 ......... + + + Response: 0x5c bytes + + +00000000 1c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 1c 00 00 00 44 e9 17 01 ....%.."....D... +00000010 00 00 00 00 04 00 00 00 00 00 00 00 ............ + + +
+ +
+ Set release parameters: 07 + + Takes a payload of 0x39 bytes: 0x35 after subcommand + code. + + Command: 0x59 bytes + +00000000 49 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 I............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 49 00 00 00 44 e9 17 01 ....%...I...D... +00000050 07 00 00 00 30 00 00 00 20 02 01 02 00 00 ff 00 ....0... ....... +00000060 03 01 00 ff 03 ff 02 90 08 ff 00 ff 7f 7f 7f 7f ................ +00000070 ff ff 58 00 20 00 70 00 00 00 ff ff 18 00 50 00 ..X. .p.......P. +00000080 ff ff ff ff ff ff 01 00 00 ......... + + + Response: 0x5c bytes (success): + + +00000000 1c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 1c 00 00 00 44 e9 17 01 ....%.."....D... +00000010 00 00 00 00 07 00 00 00 00 00 00 00 ............ + + +
+ +
+ Set transfer mode: 09 + + Takes 2 parameters: 4, <code> + where <code> is a combination of + the following bits: + + + +#define THUMB_TO_PC 0x0001 +#define FULL_TO_PC 0x0002 +#define THUMB_TO_DRIVE 0x0004 +#define FULL_TO_DRIVE 0x0008 + + + These may be combined in any way. + + +00000000 1d 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 1d 00 00 00 58 e7 12 00 ....%.......X... +00000050 09 00 00 00 04 00 00 00 02 00 00 00 00 ............. + + + Response: 0x5c bytes + + +00000000 1c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 1c 00 00 00 58 e7 12 00 ....%.."....X... +00000010 00 00 00 00 09 00 00 00 00 00 00 00 ............ + + +
+ +
+ Get release parameters: 0A + + Takes no parameters. Returns 0x34 bytes after the echo + of the subcommand code. First 4-byte integer is 0x00000030, + which is the count of remaining bytes. I assume that the + 0x34 bytes are the same as is sent down by code 07, + “set release parameters”. + + Command: 0x59 bytes + + +00000000 19 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 19 00 00 00 4c e7 12 00 ....%.......L... +00000050 0a 00 00 00 00 00 00 00 00 ......... + + + Response: 8c bytes + + +00000000 4c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 L............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 22 4c 00 00 00 4c e7 12 00 ....%.."L...L... +00000050 00 00 00 00 0a 00 00 00 30 00 00 00 20 04 02 00 ........0... ... +00000060 00 00 ff 00 01 01 00 ff 03 ff 02 90 02 ff 00 ff ................ +00000070 7f 7f 7f 7f ff ff 58 00 1c 00 74 00 00 00 ff ff ......X...t..... +00000000 18 00 50 00 ff ff ff ff ff ff 01 00 ..P......... + + +
+ +
+ Get available shot: 0D + + No parameters + Command: 0x59 bytes + +0000 19 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 13 00 10 12 18 00 00 00 1f 00 00 00 ..............%. +0050 0d 00 00 00 00 00 00 00 00 ........ + + + Reply 0x60 bytes: + +0000: 20 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ............... +0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +0040: 02 00 00 00 25 00 10 22 20 00 00 00 1f 00 00 00 ....%.." ....... +0050: 00 00 00 00 0d 00 00 00 04 00 00 00 e8 03 00 00 ................ + + + The last word is the estimated number of shots + remaining: i.e. the free storage space divided by the + estimated size of an image file in the current mode. + +
+ +
+ Get size of extended release parameters: 10 + + No parameters + + Command: 0x59 bytes + + +00000000 19 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 19 00 00 00 5c e7 12 00 ....%.......\... +00000050 10 00 00 00 00 00 00 00 00 ......... + + + Response: 0x60 bytes + + +00000000 20 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 20 00 00 00 5c e7 12 00 ....%.." ...\... +00000010 00 00 00 00 10 00 00 00 04 00 00 00 3c 00 00 00 ............<... + + +
+ +
+ Get extended release parameters: 12 + + Parameters are the 8-byte result from Get size of extended release + parameters. + + Command: 0x5d bytes + + +00000000 1d 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 1d 00 00 00 4c e7 12 00 ....%.......L... +00000050 12 00 00 00 04 00 00 00 3c 00 00 00 00 ........<.... + + + Response: 0x98 bytes + + +00000000 58 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 X............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 22 58 00 00 00 4c e7 12 00 ....%.."X...L... +00000050 00 00 00 00 12 00 00 00 3c 00 00 00 3c 00 00 00 ........<...<... +00000060 00 00 05 00 00 00 00 00 ff ff ff ff 00 00 00 00 ................ +00000070 ff ff ff ff ff ff ff ff 00 00 ff ff ff ff ff ff ................ +00000000 ff ff 00 00 50 14 ff ff 01 00 ff ff ff ff 00 00 ....P........... +00000010 ff ff 00 00 00 00 00 00 ........ + + + Contents of “extended release parameters” block + + + + OffsetContentMeaning + + + 0x000x0000003cLength of block + 0x040x0000?? + 0x060x0005?? + 0x080x00000000?? + 0x0c0xffffffff (-1)?? + 0x100x00000000?? + 0x140xffffffff (-1)?? + 0x180xffffffff (-1)?? + 0x1c0x0000?? + 0x1e0xffff (-1)?? + 0x200xffffffff (-1)?? + 0x240xffff (-1)?? + 0x260x0000?? + 0x280x1450?? + 0x2a0xffff (-1)?? + 0x2c0x0001?? + 0x2e0xffff (-1)?? + 0x300xffff (-1)?? + 0x320x0000?? + 0x340xffff (-1)?? + 0x360x0000?? + 0x380x00000000?? + + +
+ +
+ +
+ Set extended parameters: 12 + + Command: 0x95 bytes + + +00000000 55 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 U............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 55 00 00 00 44 e9 17 01 ....%...U...D... +00000050 13 00 00 00 3c 00 00 00 3c 00 00 00 00 00 05 00 ....<...<....... +00000060 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff ................ +00000070 ff ff ff ff 00 00 ff ff ff ff ff ff ff ff 00 00 ................ +00000080 50 14 ff ff 01 00 ff ff ff ff 00 00 ff ff 00 00 P............... +00000090 00 00 00 00 00 ..... + + + Contents of parameter block for “Set Extended Parameters” + + + + OffsetContentMeaning + + + 0x000x0000003cLength of block + 0x040x0000?? + 0x060x0005?? + 0x080x00000000?? + 0x0c0xffffffff (-1)?? + 0x100x00000000?? + 0x140xffffffff (-1)?? + 0x180xffffffff (-1)?? + 0x1c0x0000?? + 0x1e0xffff (-1)?? + 0x200xffffffff (-1)?? + 0x240xffff (-1)?? + 0x260x0000?? + 0x280x1450?? + 0x2a0xffff (-1)?? + 0x2c0x0001?? + 0x2e0xffff (-1)?? + 0x300xffff (-1)?? + 0x320x0000?? + 0x340xffff (-1)?? + 0x360x0000?? + 0x380x00000000?? + 0x3c0x00padding + + +
+ + Response: 0x5c bytes + + +00000000 1c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 1c 00 00 00 44 e9 17 01 ....%.."....D... +00000010 00 00 00 00 13 00 00 00 00 00 00 00 ............ + + +
+ +
+ Unknown command: 1B + + This command might just set up for command code 0x1c, which has no + parameters but seems to give various responses. + + Two parameters: count of following bytes (4), subcode + {0x0b,0x0e,0x17,0x18,0x19,0x1a}. Commands seem to come in + that order, and each is immediately followed by a command + with subcode 0x1c. + + +00000000 1d 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 1d 00 00 00 4c e7 12 00 ....%.......L... +00000050 1b 00 00 00 04 00 00 00 0b 00 00 00 00 ............. + + + Response: 0x5e bytes + 4-byte status code, echo of major code (0x1b), count + of remaining bytes (2), 16 bit byte count for the result of + the subsequent 0x1c command. This varies with the command + subcode: + + + Return values for command 0x1b + 0x0b + + 0x000b + + + 0x0e + + 0x0011 + + + 0x17 + + 0x0014 + + + 0x18 + + 0x0026, 0x000a + + + 0x19 + + 0x0052, 0x0009 + + + 0x1a + + 0x0009, 0x0011 + + + + +
+ +
+ Unknown command: 1C + + Command: 0x59 bytes + + +00000000 19 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 12 19 00 00 00 4c e7 12 00 ....%.......L... +00000050 1c 00 00 00 00 00 00 00 00 ......... + + + Response after 0x25/0x1b/0x0b: 0x67 bytes + + +00000000 27 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 '............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 27 00 00 00 4c e7 12 00 ....%.."'...L... +00000010 00 00 00 00 1c 00 00 00 0b 00 00 00 03 00 00 00 ................ +00000020 02 00 00 00 03 04 05 ....... + + + At offset 0x50, there is the customary 4-byte status + code, followed by an echo of the 4-byte command code + 0x0000001c, followed by a byte count which is identical to + the value returned by the previous command with subcode + 0x1b. After the byte count comes a count N of entities, + then what I think is an entity type. 2 seems to be a + single-byte entity; 4 is a 2-byte entity. Then come N data + elements. At least sub-subcodes 0x18, 0x19, 0x1a can vary + their length. + + Response after 0x25/0x1b/0x0e: 0x6d bytes + + +00000000 2d 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 -............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 2d 00 00 00 4c e7 12 00 ....%.."-...L... +00000010 00 00 00 00 1c 00 00 00 11 00 00 00 09 00 00 00 ................ +00000020 02 00 00 00 00 01 02 03 04 05 06 08 09 ............. + + + Response after 0x25/0x1b/0x17: 0x70 bytes + + +00000000 30 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 0............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 30 00 00 00 4c e7 12 00 ....%.."0...L... +00000010 00 00 00 00 1c 00 00 00 14 00 00 00 06 00 00 00 ................ +00000020 04 00 00 00 48 00 50 00 58 00 60 00 68 00 70 00 ....H.P.X.`.h.p. + + + Response after 0x25/0x1b/0x18: 0x66 bytes + + +00000000 26 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 &............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 26 00 00 00 4c e7 12 00 ....%.."&...L... +00000010 00 00 00 00 1c 00 00 00 0a 00 00 00 00 00 00 00 ................ +00000020 04 00 00 00 ff ff ...... + + + Response after 0x25/0x1b/0x18: 0x82 bytes + + +00000000 42 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 B............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 25 00 10 22 42 00 00 00 4c e7 12 00 ....%.."B...L... +00000050 00 00 00 00 1c 00 00 00 26 00 00 00 0f 00 00 00 ........&....... +00000060 04 00 00 00 18 00 1c 00 20 00 24 00 28 00 2c 00 ........ .$.(.,. +00000070 30 00 34 00 38 00 3c 00 40 00 44 00 48 00 4c 00 0.4.8.<.@.D.H.L. +00000000 50 00 P. + + + This has status code, 4-byte count of following bytes, + 4-byte 0xf (15), 4-byte 0x4, then 15 2-byte integers that + start at 0x18 (24) and count up by 4. + + Response after 0x25/0x1b/0x19: 0x65 bytes + + +00000000 25 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 %............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 25 00 00 00 4c e7 12 00 ....%.."%...L... +00000010 00 00 00 00 1c 00 00 00 09 00 00 00 00 00 00 00 ................ +00000020 02 00 00 00 ff ..... + + + Response after 0x25/0x1b/0x1a: 0x6d bytes + + +00000000 2d 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 -............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 25 00 10 22 2d 00 00 00 4c e7 12 00 ....%.."-...L... +00000010 00 00 00 00 1c 00 00 00 11 00 00 00 09 00 00 00 ................ +00000020 02 00 00 00 f0 f4 f8 fc 00 04 08 0c 10 ............. + + + After the byte count, a 4-byte 0x9, 4-byte 0x2, then + single bytes counting up by 4: -16, -12, -8, -4, 0, 4, 8, + 12, 16. + +
+ +
+ +
+ Get captured image + + requesttype=0x26 + + Similar to the Download Captured + Image command in the older protocol. + + Command: 0x60 bytes + +00000000 20 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 ............... +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 26 00 20 12 20 00 00 00 d0 53 7e 00 ....&. . ....S~. +00000050 00 00 00 00 00 00 01 00 02 00 00 00 07 00 00 00 ................ + + + This is very similar to the old “Download Captured + Image” command block. Offset 0x50 presumably has + the 4-byte status code, 0x54 has the transfer length (here + 0x10000, 65536 bytes), 0x58 has the image type (here 2 for + full image), and 0x5c has the image handle of 7. + + Camera response: variable length + + +00000000 00 00 00 00 02 03 f8 0e 03 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + + + As before, bytes 6-10 of the reply packet contain the + 32-bit total length of the image data transfers, here + 0x00030ef8. We must then issue a series of bulk + reads. + + then many blocks. First is length 0x10000, then 0x10c0, + then (0x40, 0xfec0) twice, then 0x38 bytes. Total is + 0x00030ef8 (200,440) bytes. I think this is a JPEG image + being downloaded; note the JFIF EXIF tag at the start. + + +00000000 ff d8 ff e1 2d 9a 45 78 69 66 00 00 49 49 2a 00 ....-.Exif..II*. +00000010 08 00 00 00 09 00 0f 01 02 00 06 00 00 00 7a 00 ..............z. +00000020 00 00 10 01 02 00 0e 00 00 00 80 00 00 00 12 01 ................ +00000030 03 00 01 00 00 00 01 00 00 00 1a 01 05 00 01 00 ................ +00000040 00 00 a0 00 00 00 1b 01 05 00 01 00 00 00 a8 00 ................ +00000050 00 00 28 01 03 00 01 00 00 00 02 00 00 00 32 01 ..(...........2. +00000060 02 00 14 00 00 00 b0 00 00 00 13 02 03 00 01 00 ................ +00000070 00 00 02 00 00 00 69 87 04 00 01 00 00 00 c4 00 ......i......... +00000080 00 00 50 24 00 00 43 61 6e 6f 6e 00 43 61 6e 6f ..P$..Canon.Cano +00000090 6e 20 45 4f 53 20 32 30 44 00 00 00 00 00 00 00 n EOS 20D....... +000000a0 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 ............H... +000000b0 01 00 00 00 48 00 00 00 01 00 00 00 32 30 30 34 ....H.......2004 +000000c0 3a 31 31 3a 32 32 20 31 32 3a 35 35 3a 31 36 00 :11:22 12:55:16. +000000d0 1c 00 9a 82 05 00 01 00 00 00 1a 02 00 00 9d 82 ................ +000000e0 05 00 01 00 00 00 22 02 00 00 22 88 03 00 01 00 ......"..."..... +000000f0 00 00 01 00 00 10 27 88 03 00 01 00 00 00 64 00 ......'.......d. +00000100 00 00 00 90 07 00 04 00 00 00 30 32 32 31 03 90 ..........0221.. +00000110 02 00 14 00 00 00 2a 02 00 00 04 90 02 00 14 00 ......*......... +00000120 00 00 3e 02 00 00 01 91 07 00 04 00 00 00 01 02 ..>............. +... +00000000 b8 cd 23 64 b6 07 03 d4 50 f5 0d 80 a6 18 12 4f ..#d....P......O +00000010 1e b4 31 2c 71 b7 34 b7 04 ae 01 f0 40 23 93 da ..1,q.4.....@#.. +00000020 80 7e 6c 37 5f 6a 00 45 4c 64 0f cc d2 ee da c0 .~l7_j.ELd...... +00000030 63 83 de 9d c5 73 ff d9 c....s.. + +
+ +
+ Lock Keys + + requesttype=0x35 + + Equivalent to Lock Keys + But this command is shorter (no parameter + “6”), and the response is longer (12 zero bytes, + not just 4). + + Command: 0x50 bytes + +00000000 10 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 35 00 10 12 10 00 00 00 a8 eb 12 00 ....5........... + + + Camera response: 0x5c bytes + + +00000000 1c 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 35 00 10 22 1c 00 00 00 a8 eb 12 00 ....5.."........ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 ............ + + +
+ +
+ Unknown command + + requesttype=0x36 + + Thought this was equivalent to EOS Unlock Keys, but doesn't + work in symmetry with 0x35. Command is longer; response is the + same. + + Command: 0x58 bytes + +00000000 18 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000040 02 00 00 00 36 00 10 12 18 00 00 00 98 ed 17 01 ....6........... +00000050 00 00 00 00 00 00 00 00 ........ + + + Response: 0x54 bytes + +00000000 14 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 ................ +00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ +00000000 02 00 00 00 36 00 10 22 14 00 00 00 98 ed 17 01 ....6.."........ +00000010 00 00 00 00 .... + + + When issued at the wrong time, the command returns a + status code of 0x00000086: + + +0000 14 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 02 00 00 00 36 00 10 22-14 00 00 00 43 00 00 00 ....6.."....C... +0050 86 00 00 00 - .... + + +
+ +
+
diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/canon-api.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/canon-api.sgml new file mode 100644 index 00000000..80c9e511 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/canon-api.sgml @@ -0,0 +1,94 @@ + + + + + + + + + + + + +]> + + + The Canon driver reference + + 2003 + The Free Software Foundation + + + + + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free + Documentation License, Version 1.1 or any later + version published by the Free Software Foundation with no + Invariant Sections, no Front-Cover Texts, and no Back-Cover + Texts. You may obtain a copy of the GNU Free + Documentation License from the Free Software + Foundation by visiting their Web site or by writing + to: + +
+ The Free Software Foundation, Inc., + 59 Temple Place - Suite 330, + Boston, MA 02111-1307, + USA +
+
+
+ + + + This manual documents the internals of the Canon camera + library for gphoto2. + + +
+ + + Standard gphoto2 camera interface + &library-interface; + + + + Internal Glue Functions + &internal-functions; + + + + Utility Macros + ¯os; + + + + Serial Communication + &serial-communication; + + + + USB communication + &usb-control; + + + + Handling Camera Directories + &listing-directories; + &directory-entries; + + + + Power Status + &power-status; + + + + Structures + &structures; + + +
diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/canon-sections.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/canon-sections.txt new file mode 100644 index 00000000..28ab31f7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/doc/canon-sections.txt @@ -0,0 +1,188 @@ +
+power-status +Power Status +canon.h +canon_int_get_battery +CAMERA_MASK_BATTERY +canonPowerStatus +
+ +
+file-attributes +Camera File Attributes +library.h +canon_int_set_file_attributes +canonDirentAttributeBits +
+ +
+serial-communication +Serial Communication +serial.h +canon_serial_change_speed +canon_serial_dialogue +canon_serial_error_type +canon_serial_get_byte +canon_serial_get_cts +canon_serial_get_dirents +canon_serial_get_file +canon_serial_get_thumbnail +canon_serial_init +canon_serial_put_file +canon_serial_ready +canon_serial_recv_frame +canon_serial_recv_msg +canon_serial_recv_packet +canon_serial_send +canon_serial_send_frame +canon_serial_send_packet +canon_serial_wait_for_ack +canon_psa50_chk_crc +canon_psa50_gen_crc +serial_flush_input +serial_flush_output +serial_set_timeout +MAX_TRIES +USLEEP1 +USLEEP2 +HDR_FIXED_LEN +DATA_BLOCK + +canonSerialErrorCode + +canonSerialFramingByte + +canonPacketThirdByte +canonPacketType +canonPacketOffset +MAX_PKT_PAYLOAD + +canonSerialMsgHeader +MAX_MSG_SIZE +DIR_REVERSE +UPLOAD_DATA_BLOCK + +SPEED_9600 +SPEED_19200 +SPEED_38400 +SPEED_57600 +SPEED_115200 +
+ +
+directory-entries +Directory Entries +canon.h +canon_usb_get_dirents +canon_usb_list_all_dirs +canonDirentOffset +
+ +
+listing-directories +Listing Directories +canon.h +canon_int_directory_operations +canonDirFunctionCode +canon_int_list_directory +canonDirlistFunctionBits +
+ +
+usb-control +USB communication +usb.h +canon_usb_camera_init +canon_usb_capture_dialogue +canon_usb_dialogue +canon_usb_get_file +canon_usb_get_thumbnail +canon_usb_get_captured_thumbnail +canon_usb_get_captured_image +canon_usb_set_file_attributes +canon_usb_identify +canon_usb_init +canon_usb_lock_keys +canon_usb_long_dialogue +canon_usb_poll_interrupt_multiple +canon_usb_put_file +canon_usb_ready +canon_usb_set_file_time +canon_usb_unlock_keys +canonCommandIndex +canonSubcommandIndex +canonTransferMode +USB_BULK_READ_SIZE +USB_BULK_WRITE_SIZE +MAX_INTERRUPT_TRIES +
+ +
+macros +Utility Macros +canon.h +IS_EOS +CHECK_PARAM_NULL +CON_CHECK_PARAM_NULL +GP_PORT_DEFAULT +GP_PORT_DEFAULT_RETURN +GP_PORT_DEFAULT_RETURN_EMPTY +GP_PORT_DEFAULT_RETURN_INTERNAL +canonJpegMarkerCode +canonDownloadImageType + +GP_MODULE +
+ +
+structures +Structures +canon.h +CameraPrivateLibrary +
+ +
+internal-functions +Internal Glue Functions +canon.h +canon2gphotopath +gphoto2canonpath +canonCamModel +canonCaptureSupport +canon_int_ready +canon_int_get_disk_name +canon_int_get_disk_name_info +canon_int_capture_image +canon_int_capture_preview +canon_int_get_file +canon_int_get_thumbnail +canon_int_put_file +canon_int_delete_file +canon_serial_end +canon_serial_off +canon_int_get_time +canon_int_set_time +canon_int_identify_camera +canon_int_set_owner_name + +filename2mimetype +is_crw +is_image +is_jpeg +is_movie +is_thumbnail +is_audio +canon_int_do_control_command +canon_int_extract_jpeg_thumb +canon_int_filename2thumbname +canon_int_filename2audioname +canon_int_get_picture_abilities +canon_int_pack_control_subcmd +
+ +
+library-interface +Standard gphoto2 camera interface +library.h +clear_readiness +
diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/g1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/g1.txt new file mode 100644 index 00000000..1eedc825 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/g1.txt @@ -0,0 +1,50 @@ +Sample data from a Canon G1 + +[0] = 0xff +[1] = 0x03 image format 1 +[2] = 0x02 image format 2 +[3] = 0x00 image format 3 +[4] = 0x64 self timer index 1 (0x63 == 100) +[5] = 0x00 self timer index 2 +[6] = 0x01 flash index +[7] = 0x01 beep index +[8] = 0x00 shooting mode +[9] = 0x00 +[10] = 0x00 +[11] = 0x00 +[12] = 0x00 +[13] = 0x01 +[14] = 0x00 +[15] = 0x10 +[16] = 0x00 +[17] = 0xff +[18] = 0x00 focus mode index +[19] = 0xff +[20] = 0x00 +[21] = 0x00 +[22] = 0x00 +[23] = 0x7f +[24] = 0xff +[25] = 0xff +[26] = 0x40 iso index +[27] = 0x00 +[28] = 0x28 aperture index +[29] = 0x00 +[30] = 0x70 exposure index +[31] = 0x00 +[32] = 0x18 exposure bias +[33] = 0x18 +[34] = 0xff +[35] = 0xff +[36] = 0x18 +[37] = 0x00 +[38] = 0x38 +[39] = 0x00 +[40] = 0xe0 +[41] = 0x00 +[42] = 0xa0 +[43] = 0x02 +[44] = 0xe0 +[45] = 0x00 +[46] = 0x20 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/library.c new file mode 100644 index 00000000..6c7df74e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/library.c @@ -0,0 +1,2606 @@ +/************************************************************************** + * + * library.c + * + * Canon Camera library for the gphoto project, + * Copyright 1999 Wolfgang G. Reissnegger + * Developed for the Canon PowerShot A50 + * Additions for PowerShot A5 by Ole W. Saastad + * Copyright 2000: Other additions by Edouard Lafargue, Philippe Marzouk + * + * This file contains all the "glue code" required to use the canon + * driver with libgphoto2. + * + ****************************************************************************/ + + +/**************************************************************************** + * + * include files + * + ****************************************************************************/ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef HAVE_LOCALE_H +#include +#endif + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "util.h" +#include "library.h" +#include "canon.h" +#include "serial.h" +#include "usb.h" + + +#ifdef __GNUC__ +# define __unused__ __attribute__((unused)) +#else +# define __unused__ +#endif + + +#ifndef HAVE_TM_GMTOFF +/* required for time conversions in camera_summary() */ +extern long int timezone; +#endif + +#define CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} + +#ifndef TRUE +# define TRUE (0==0) +#endif +#ifndef FALSE +# define FALSE (0!=0) +#endif + +#ifdef CANON_EXPERIMENTAL_UPLOAD +#define UPLOAD_BOOL TRUE +#else +#define UPLOAD_BOOL FALSE +#endif + +static const struct canonCaptureSizeClassStruct captureSizeArray[] = { + {CAPTURE_COMPATIBILITY, N_("Compatibility Mode")}, + {CAPTURE_THUMB, N_("Thumbnail")}, + {CAPTURE_FULL_IMAGE, N_("Full Image")}, + {0, NULL} +}; + +static const struct canonIsoStateStruct isoStateArray[] = { + {ISO_50, "50"}, + {ISO_100, "100"}, + {ISO_125, "125"}, + {ISO_160, "160"}, + {ISO_200, "200"}, + {ISO_250, "250"}, + {ISO_320, "320"}, + {ISO_400, "400"}, + {ISO_500, "500"}, + {ISO_640, "640"}, + {ISO_800, "800"}, + {ISO_1000, "1000"}, + {ISO_1250, "1250"}, + {ISO_1600, "1600"}, + {ISO_3200, "3200"}, + {0, NULL}, +}; + +static const struct canonShutterSpeedStateStruct shutterSpeedStateArray[] = { + {SHUTTER_SPEED_BULB, N_("Bulb")}, + {SHUTTER_SPEED_30_SEC,"30"}, + {SHUTTER_SPEED_25_SEC,"25"}, + {SHUTTER_SPEED_20_SEC,"20"}, + {SHUTTER_SPEED_15_SEC,"15"}, + {SHUTTER_SPEED_13_SEC,"13"}, + {SHUTTER_SPEED_10_SEC,"10"}, + {SHUTTER_SPEED_8_SEC,"8"}, + {SHUTTER_SPEED_6_SEC,"6"}, + {SHUTTER_SPEED_5_SEC,"5"}, + {SHUTTER_SPEED_4_SEC,"4"}, + {SHUTTER_SPEED_3_2_SEC,"3.2"}, + {SHUTTER_SPEED_2_5_SEC,"2.5"}, + {SHUTTER_SPEED_2_SEC,"2"}, + {SHUTTER_SPEED_1_6_SEC,"1.6"}, + {SHUTTER_SPEED_1_3_SEC,"1.3"}, + {SHUTTER_SPEED_1_SEC,"1"}, + {SHUTTER_SPEED_0_8_SEC,"0.8"}, + {SHUTTER_SPEED_0_6_SEC,"0.6"}, + {SHUTTER_SPEED_0_5_SEC,"0.5"}, + {SHUTTER_SPEED_0_4_SEC,"0.4"}, + {SHUTTER_SPEED_0_3_SEC,"0.3"}, + {SHUTTER_SPEED_1_4,"1/4"}, + {SHUTTER_SPEED_1_5,"1/5"}, + {SHUTTER_SPEED_1_6,"1/6"}, + {SHUTTER_SPEED_1_8,"1/8"}, + {SHUTTER_SPEED_1_10,"1/10"}, + {SHUTTER_SPEED_1_13,"1/13"}, + {SHUTTER_SPEED_1_15,"1/15"}, + {SHUTTER_SPEED_1_20,"1/20"}, + {SHUTTER_SPEED_1_25,"1/25"}, + {SHUTTER_SPEED_1_30,"1/30"}, + {SHUTTER_SPEED_1_40,"1/40"}, + {SHUTTER_SPEED_1_50,"1/50"}, + {SHUTTER_SPEED_1_60,"1/60"}, + {SHUTTER_SPEED_1_80,"1/80"}, + {SHUTTER_SPEED_1_100,"1/100"}, + {SHUTTER_SPEED_1_125,"1/125"}, + {SHUTTER_SPEED_1_160,"1/160"}, + {SHUTTER_SPEED_1_200,"1/200"}, + {SHUTTER_SPEED_1_250,"1/250"}, + {SHUTTER_SPEED_1_320,"1/320"}, + {SHUTTER_SPEED_1_400,"1/400"}, + {SHUTTER_SPEED_1_500,"1/500"}, + {SHUTTER_SPEED_1_640,"1/640"}, + {SHUTTER_SPEED_1_800,"1/800"}, + {SHUTTER_SPEED_1_1000,"1/1000"}, + {SHUTTER_SPEED_1_1250,"1/1250"}, + {SHUTTER_SPEED_1_1600,"1/1600"}, + {SHUTTER_SPEED_1_2000,"1/2000"}, + {SHUTTER_SPEED_1_2500,"1/2500"}, + {SHUTTER_SPEED_1_3200,"1/3200"}, + {SHUTTER_SPEED_1_4000,"1/4000"}, + {SHUTTER_SPEED_1_5000,"1/5000"}, + {SHUTTER_SPEED_1_6400,"1/6400"}, + {SHUTTER_SPEED_1_8000,"1/8000"}, + {0, NULL}, +}; + +static const struct canonApertureStateStruct apertureStateArray[] = { + {APERTURE_F1_2, "1.2"}, + {APERTURE_F1_4, "1.4"}, + {APERTURE_F1_6, "1.6"}, + {APERTURE_F1_8, "1.8"}, + {APERTURE_F2_0, "2.0"}, + {APERTURE_F2_2, "2.2"}, + {APERTURE_F2_5, "2.5"}, + {APERTURE_F2_8, "2.8"}, + {APERTURE_F3_2, "3.2"}, + {APERTURE_F3_5, "3.5"}, + {APERTURE_F4_0, "4.0"}, + {APERTURE_F4_5, "4.5"}, + {APERTURE_F5_0, "5.0"}, + {APERTURE_F5_6, "5.6"}, + {APERTURE_F6_3, "6.3"}, + {APERTURE_F7_1, "7.1"}, + {APERTURE_F8, "8"}, + {APERTURE_F9, "9"}, + {APERTURE_F10, "10"}, + {APERTURE_F11, "11"}, + {APERTURE_F13, "13"}, + {APERTURE_F14, "14"}, + {APERTURE_F16, "16"}, + {APERTURE_F18, "18"}, + {APERTURE_F20, "20"}, + {APERTURE_F22, "22"}, + {APERTURE_F25, "25"}, + {APERTURE_F29, "29"}, + {APERTURE_F32, "32"}, + {0, NULL}, +}; + +static const struct canonFocusModeStateStruct focusModeStateArray[] = { + {AUTO_FOCUS_ONE_SHOT, N_("Auto focus: one-shot")}, + {AUTO_FOCUS_AI_SERVO, N_("Auto focus: AI servo")}, + {AUTO_FOCUS_AI_FOCUS, N_("Auto focus: AI focus")}, + {MANUAL_FOCUS, N_("Manual focus")}, + {0, NULL}, +}; + +static const struct canonBeepModeStateStruct beepModeStateArray[] = { + {BEEP_OFF, N_("Beep off")}, + {BEEP_ON, N_("Beep on")}, + {0, NULL}, +}; + +static const struct canonFlashModeStateStruct flashModeStateArray[] = { + {FLASH_MODE_OFF, N_("Flash off")}, + {FLASH_MODE_ON, N_("Flash on")}, + {FLASH_MODE_AUTO, N_("Flash auto")}, + {0, NULL}, +}; + +static const struct canonExposureBiasStateStruct exposureBiasStateArray[] = { + {0x10,"+2"}, + {0x0d,"+1 2/3"}, + {0x0c,"+1 1/2"}, + {0x0b,"+1 1/3"}, + {0x08,"+1"}, + {0x05,"+2/3"}, + {0x04,"+1/2"}, + {0x03,"+1/3"}, + {0x00,"0"}, + {0xfd,"-1/3"}, + {0xfc,"-1/2"}, + {0xfb,"-2/3"}, + {0xf8,"-1"}, + {0xf5,"-1 1/3"}, + {0xf4,"-1 1/2"}, + {0xf3,"-1 2/3"}, + {0xf0,"-2"}, + {0, NULL}, +}; + + +static const struct canonShootingModeStateStruct shootingModeStateArray[] = { + {0x00,N_("AUTO")}, + {0x01,N_("P")}, + {0x02,N_("Tv")}, + {0x03,N_("Av")}, + {0x04,N_("M")}, + {0x05,N_("A-DEP")}, + {0x06,N_("M-DEP")}, + {0x07,N_("Bulb")}, + {0x65,N_("Manual 2")}, + {0x66,N_("Far scene")}, + {0x67,N_("Fast shutter")}, + {0x68,N_("Slow shutter")}, + {0x69,N_("Night scene")}, + {0x6a,N_("Gray scale")}, + {0x6b,N_("Sepia")}, + {0x6c,N_("Portrait")}, + {0x6d,N_("Spot")}, + {0x6e,N_("Macro")}, + {0x6f,N_("BW")}, + {0x70,N_("PanFocus")}, + {0x71,N_("Vivid")}, + {0x72,N_("Neutral")}, + {0x73,N_("Flash off")}, + {0x74,N_("Long shutter")}, + {0x75,N_("Super macro")}, + {0x76,N_("Foliage")}, + {0x77,N_("Indoor")}, + {0x78,N_("Fireworks")}, + {0x79,N_("Beach")}, + {0x7a,N_("Underwater")}, + {0x7b,N_("Snow")}, + {0x7c,N_("Kids and pets")}, + {0x7d,N_("Night snapshot")}, + {0x7e,N_("Digital macro")}, + {0x7f,N_("MyColors")}, + {0x80,N_("Photo in movie")}, + {0, NULL} +}; + + +static const struct canonImageFormatStateStruct imageFormatStateArray[] = { + {IMAGE_FORMAT_RAW, N_("RAW"), + 0x04, 0x02, 0x00}, + {IMAGE_FORMAT_RAW_2, N_("RAW 2"), + 0x03, 0x02, 0x00}, + {IMAGE_FORMAT_SMALL_NORMAL_JPEG, N_("Small Normal JPEG"), + 0x02, 0x01, 0x02}, + {IMAGE_FORMAT_SMALL_FINE_JPEG, N_("Small Fine JPEG"), + 0x03, 0x01, 0x02}, + {IMAGE_FORMAT_MEDIUM_NORMAL_JPEG, N_("Medium Normal JPEG"), + 0x02, 0x01, 0x01}, + {IMAGE_FORMAT_MEDIUM_FINE_JPEG, N_("Medium Fine JPEG"), + 0x03, 0x01, 0x01}, + {IMAGE_FORMAT_LARGE_NORMAL_JPEG, N_("Large Normal JPEG"), + 0x02, 0x01, 0x00}, + {IMAGE_FORMAT_LARGE_FINE_JPEG, N_("Large Fine JPEG"), + 0x03, 0x01, 0x00}, + {IMAGE_FORMAT_RAW_AND_SMALL_NORMAL_JPEG, N_("RAW + Small Normal JPEG"), + 0x24, 0x12, 0x20}, + {IMAGE_FORMAT_RAW_AND_SMALL_FINE_JPEG, N_("RAW + Small Fine JPEG"), + 0x34, 0x12, 0x20}, + {IMAGE_FORMAT_RAW_AND_MEDIUM_NORMAL_JPEG, N_("RAW + Medium Normal JPEG"), + 0x24, 0x12, 0x10}, + {IMAGE_FORMAT_RAW_AND_MEDIUM_FINE_JPEG, N_("RAW + Medium Fine JPEG"), + 0x34, 0x12, 0x10}, + {IMAGE_FORMAT_RAW_AND_LARGE_NORMAL_JPEG, N_("RAW + Large Normal JPEG"), + 0x24, 0x12, 0x00}, + {IMAGE_FORMAT_RAW_AND_LARGE_FINE_JPEG, N_("RAW + Large Fine JPEG"), + 0x34, 0x12, 0x00}, + {0, NULL, 0, 0, 0}, +}; + +/** + * camera_id: + * @id: string buffer to receive text identifying camera type + * + * Standard gphoto2 camlib interface + * + * Returns: + * string is copied into @id. + * + */ +int camera_id (CameraText *id) +{ + /* GP_DEBUG ("camera_id()"); */ + + strcpy (id->text, "canon"); + + return GP_OK; +} + +/** + * camera_manual + * @camera: Camera for which to get manual text (unused) + * @manual: Buffer into which to copy manual text + * @context: unused + * + * Returns the "manual" text for cameras supported by this driver. + * + * Returns: manual text is copied into @manual->text. + * + */ +static int +camera_manual (Camera __unused__ *camera, CameraText *manual, + GPContext __unused__ *context) +{ + GP_DEBUG ("camera_manual()"); + + strncpy (manual->text, + _("This is the driver for Canon PowerShot, Digital IXUS, IXY Digital,\n" + " and EOS Digital cameras in their native (sometimes called \"normal\")\n" + " mode. It also supports a small number of Canon digital camcorders\n" + " with still image capability.\n" + "It includes code for communicating over a serial port or USB connection,\n" + " but not (yet) over IEEE 1394 (Firewire).\n" + "It is designed to work with over 70 models as old as the PowerShot A5\n" + " and Pro70 of 1998 and as new as the PowerShot A510 and EOS 350D of\n" + " 2005.\n" + "It has not been verified against the EOS 1D or EOS 1Ds.\n" + "For the A50, using 115200 bps may effectively be slower than using 57600\n" + "If you experience a lot of serial transmission errors, try to have your\n" + " computer as idle as possible (i.e. no disk activity)\n"), + sizeof ( CameraText ) + ); + + return GP_OK; +} + +/** + * camera_abilities: + * @list: list of abilities + * + * Returns a list of what any of the cameras supported by this driver + * can do. Each entry of the list will represent one camera model. + * + * Returns: list of abilities in @list + * + */ +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + /* GP_DEBUG ("camera_abilities()"); */ + + for (i = 0; models[i].id_str; i++) { + memset (&a, 0, sizeof (a)); + + a.status = GP_DRIVER_STATUS_PRODUCTION; + + strcpy (a.model, models[i].id_str); + a.port = 0; + if (models[i].usb_vendor && models[i].usb_product) { + a.port |= GP_PORT_USB; + a.usb_vendor = models[i].usb_vendor; + a.usb_product = models[i].usb_product; + } + if (models[i].serial_id_string != NULL) { + a.port |= GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.speed[5] = 0; + } + a.operations = GP_OPERATION_CONFIG; + + if (models[i].usb_capture_support != CAP_NON) { + a.operations |= GP_OPERATION_CAPTURE_IMAGE; + a.operations |= GP_OPERATION_CAPTURE_PREVIEW; + } + + a.folder_operations = + GP_FOLDER_OPERATION_MAKE_DIR | + GP_FOLDER_OPERATION_REMOVE_DIR; + + if (UPLOAD_BOOL || (models[i].serial_id_string != NULL)) { + a.folder_operations |= GP_FOLDER_OPERATION_PUT_FILE; + } + + a.file_operations = GP_FILE_OPERATION_DELETE | GP_FILE_OPERATION_PREVIEW | GP_FILE_OPERATION_EXIF; + gp_abilities_list_append (list, a); + } + + return GP_OK; +} + +/** + * clear_readiness + * @camera: the camera to affect + * + * Clears the cached flag indicating that the camera is ready. + * + */ +void +clear_readiness (Camera *camera) +{ + GP_DEBUG ("clear_readiness()"); + + camera->pl->cached_ready = 0; +} + +/** + * check_readiness + * @camera: the camera to affect + * @context: context for error reporting + * + * Checks the readiness of the camera. If the cached "ready" flag isn't + * set, checks using canon_int_ready(). + * + * Returns: 1 if ready, 0 if not. + * + */ +static int +check_readiness (Camera *camera, GPContext *context) +{ + int status; + + GP_DEBUG ("check_readiness() cached_ready == %i", camera->pl->cached_ready); + + if (camera->pl->cached_ready) + return 1; + status = canon_int_ready (camera, context); + if ( status == GP_OK ) { + GP_DEBUG ("Camera type: %s (%d)", camera->pl->md->id_str, + camera->pl->md->model); + camera->pl->cached_ready = 1; + return 1; + } + gp_context_error ( context, _("Camera unavailable: %s"), + gp_result_as_string ( status ) ); + return 0; +} + +/** + * canon_int_switch_camera_off + * @camera: the camera to affect + * @context: context for error reporting + * + * Switches a serial camera off. Does nothing to a USB camera. + * + */ +static void +canon_int_switch_camera_off (Camera *camera, GPContext *context) +{ + GP_DEBUG ("switch_camera_off()"); + + switch (camera->port->type) { + case GP_PORT_SERIAL: + gp_context_status (context, _("Switching Camera Off")); + canon_serial_off (camera); + break; + case GP_PORT_USB: + GP_DEBUG ("Not trying to shut down USB camera..."); + break; + GP_PORT_DEFAULT_RETURN_EMPTY} + clear_readiness (camera); +} + +/** + * camera_exit + * @camera: the camera to affect + * @context: context for error reporting + * + * Ends our use of the camera. For USB cameras, unlock keys. For + * serial cameras, switch the camera off and unlock the port. + * + * Returns: GP_OK + * + */ +static int +camera_exit (Camera *camera, GPContext *context) +{ + int res = 0; + + if (camera->port->type == GP_PORT_USB) + canon_usb_unlock_keys (camera, context); + + /* Turn off remote control if enabled (remote control only + * applies to USB cameras, but in case of serial connection + * remote_control should never be seen set here) */ + if (camera->pl->remote_control) { + res = canon_int_end_remote_control (camera, context); + if (res != GP_OK) + return -1; + } + + if (camera->pl) { + canon_int_switch_camera_off (camera, context); + free (camera->pl); + camera->pl = NULL; + } + + return GP_OK; +} + +/** + * camera_capture_preview + * @camera: the camera to affect + * @context: context for error reporting + * + * Triggers the camera to capture a new image. Discards the image and + * downloads its thumbnail to the host computer without storing it on + * the camera. + * + * Returns: gphoto2 error code + * + */ +static int +camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + unsigned int size; + int code; + unsigned char *data; + + GP_DEBUG ("canon_capture_preview() called"); + + code = canon_int_capture_preview (camera, &data, &size, context); + if ( code != GP_OK) { + gp_context_error (context, _("Error capturing image")); + return code; + } + gp_file_set_data_and_size ( file, (char *)data, size ); + gp_file_set_mime_type (file, GP_MIME_JPEG); /* always */ + return GP_OK; +} + +/** + * camera_capture + * @camera: the camera to affect + * @type: type of capture (only GP_CAPTURE_IMAGE supported) + * @path: path on camera to use + * @context: context for error reporting + * + * Captures a single image from the camera. + * + * Returns: gphoto2 error code + * + */ +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + int code; + + GP_DEBUG ("canon_capture() called"); + + if (type != GP_CAPTURE_IMAGE) { + return GP_ERROR_NOT_SUPPORTED; + } + + code = canon_int_capture_image (camera, path, context); + if (code != GP_OK) { + gp_context_error (context, _("Error capturing image")); + return code; + } + + return GP_OK; +} + +/** + * canon_get_batt_status + * @camera: the camera to affect + * @pwr_status: to receive power status from camera + * @pwr_source: to receive power source from camera + * @context: context for error reporting + * + * Gets the power status for the camera. + * + * Returns: -1 if camera isn't ready; status from canon_int_get_battery() otherwise. + * @pwr_status will contain @CAMERA_POWER_OK if power is OK (i.e. battery isn't low) + * @pwr_source will have bit %CAMERA_MASK_BATTERY set if battery power is used + * + */ +static int +canon_get_batt_status (Camera *camera, int *pwr_status, int *pwr_source, GPContext *context) +{ + GP_DEBUG ("canon_get_batt_status() called"); + + if (!check_readiness (camera, context)) + return -1; + + return canon_int_get_battery (camera, pwr_status, pwr_source, context); +} + +/** + * update_disk_cache + * @camera: the camera to work on + * @context: the context to print on error + * + * Updates the disk cache for this camera. + * + * Returns: 1 on success, 0 on failure + * + */ +static int +update_disk_cache (Camera *camera, GPContext *context) +{ + char root[10]; /* D:\ or such */ + int res; + + GP_DEBUG ("update_disk_cache()"); + + if (camera->pl->cached_disk) + return 1; + if (!check_readiness (camera, context)) + return 0; + camera->pl->cached_drive = canon_int_get_disk_name (camera, context); + if (!camera->pl->cached_drive) { + gp_context_error (context, _("Could not get disk name: %s"), + _("No reason available")); + return 0; + } + snprintf (root, sizeof (root), "%s\\", camera->pl->cached_drive); + res = canon_int_get_disk_name_info (camera, root, &camera->pl->cached_capacity, + &camera->pl->cached_available, context); + if (res != GP_OK) { + gp_context_error (context, _("Could not get disk info: %s"), + gp_result_as_string (res)); + return 0; + } + camera->pl->cached_disk = 1; + + return 1; +} + +/**************************************************************************** + * + * gphoto library interface calls + * + ****************************************************************************/ + +static int +file_list_func (CameraFilesystem __unused__ *fs, const char *folder, + CameraList *list, void *data, + GPContext *context) +{ + Camera *camera = data; + + GP_DEBUG ("file_list_func()"); + + if (!check_readiness (camera, context)) + return GP_ERROR; + + return canon_int_list_directory (camera, folder, list, + CANON_LIST_FILES, context); +} + +static int +folder_list_func (CameraFilesystem __unused__ *fs, const char *folder, + CameraList *list, void *data, + GPContext *context) +{ + Camera *camera = data; + + GP_DEBUG ("folder_list_func()"); + + if (!check_readiness (camera, context)) + return GP_ERROR; + + return canon_int_list_directory (camera, folder, list, + CANON_LIST_FOLDERS, context); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + unsigned char *data = NULL, *thumbdata = NULL; + const char *thumbname = NULL; + const char *audioname = NULL; + int ret; + unsigned int datalen; + char canon_path[300]; + + /* for debugging */ + char *filetype; + char buf[32]; + + /* Assemble complete canon path into canon_path */ + ret = snprintf (canon_path, sizeof (canon_path) - 3, "%s\\%s", + gphoto2canonpath (camera, folder, context), filename); + if (ret < 0) { + gp_context_error (context, + _("Internal error #1 in get_file_func() (%s line %i)"), + __FILE__, __LINE__); + return GP_ERROR_BAD_PARAMETERS; + } + + /* for debugging */ + switch (type) { + case GP_FILE_TYPE_PREVIEW: filetype = "thumbnail"; break; + case GP_FILE_TYPE_EXIF: filetype = "exif data"; break; + case GP_FILE_TYPE_AUDIO: filetype = "audio annotation"; break; + case GP_FILE_TYPE_NORMAL: filetype = "file itself"; break; + default: snprintf(buf, sizeof(buf), "unknown type %d", type); filetype = buf; break; + } + GP_DEBUG ("get_file_func: folder '%s' filename '%s' (i.e. '%s'), getting %s", + folder, filename, canon_path, filetype); + + /* preparation, if it is _AUDIO we convert the file name to + * the corresponding audio file name. If the name of the audio + * file is supplied, this step will be a no-op. */ + if (type == GP_FILE_TYPE_AUDIO) { + audioname = canon_int_filename2audioname (camera, canon_path); + if (audioname == NULL) { + gp_context_error (context, + _("No audio file could be found for %s"), + canon_path); + return(GP_ERROR_FILE_NOT_FOUND); + } + } + + /* fetch file/thumbnail/exif/audio/whatever */ + switch (type) { + case GP_FILE_TYPE_NORMAL: + ret = canon_int_get_file (camera, canon_path, &data, &datalen, + context); + if (ret == GP_OK) { + /* 0 also marks image as downloaded */ + uint8_t attr = 0; + + /* This should cover all attribute + * bits known of and reflected in + * info.file + */ + CameraFileInfo info; + + gp_filesystem_get_info (fs, folder, filename, &info, context); + if ((info.file.permissions & GP_FILE_PERM_DELETE) == 0) + attr |= CANON_ATTR_WRITE_PROTECTED; + canon_int_set_file_attributes (camera, filename, + gphoto2canonpath (camera, + folder, + context), + attr, context); + + /* we cannot easily retrieve it except by reading the directory */ + if (info.file.fields & GP_FILE_INFO_MTIME) + gp_file_set_mtime (file, info.file.mtime); + } + break; + + case GP_FILE_TYPE_AUDIO: + if (*audioname != '\0') { + /* extra audio file */ + ret = canon_int_get_file (camera, audioname, &data, &datalen, + context); + } else { + /* internal audio file; not handled yet */ + ret = GP_ERROR_NOT_SUPPORTED; + } + break; + + case GP_FILE_TYPE_PREVIEW: + thumbname = canon_int_filename2thumbname (camera, canon_path); + if (thumbname == NULL) { + /* no thumbnail available */ + GP_DEBUG ("%s is a file type for which no thumbnail is provided",canon_path); + return (GP_ERROR_NOT_SUPPORTED); + } +#ifdef HAVE_LIBEXIF + /* Check if we have libexif, it is a jpeg file + * and it is not a PowerShot Pro 70 (which + * does not support EXIF), return not + * supported here so that gPhoto2 query for + * GP_FILE_TYPE_EXIF instead + */ + if (is_jpeg (filename)) { + if (camera->pl->md->model != CANON_CLASS_2) { + GP_DEBUG ("get_file_func: preview requested where " + "EXIF should be possible"); + return (GP_ERROR_NOT_SUPPORTED); + } + } +#endif /* HAVE_LIBEXIF */ + if (*thumbname == '\0') { + /* file internal thumbnail */ + ret = canon_int_get_thumbnail (camera, canon_path, &data, + &datalen, context); + } else { + /* extra thumbnail file */ + ret = canon_int_get_file (camera, thumbname, &data, &datalen, + context); + } + break; + + case GP_FILE_TYPE_EXIF: +#ifdef HAVE_LIBEXIF + /* the PowerShot Pro 70 does not support EXIF */ + if (camera->pl->md->model == CANON_CLASS_2) + return (GP_ERROR_NOT_SUPPORTED); + + thumbname = canon_int_filename2thumbname (camera, canon_path); + if (thumbname == NULL) { + /* no thumbnail available */ + GP_DEBUG ("%s is a file type for which no thumbnail is provided", canon_path); + return (GP_ERROR_NOT_SUPPORTED); + } + + if (*thumbname == '\0') { + /* file internal thumbnail with EXIF data */ + ret = canon_int_get_thumbnail (camera, canon_path, &data, + &datalen, context); + } else { + /* extra thumbnail file */ + ret = canon_int_get_file (camera, thumbname, &data, &datalen, + context); + } +#else + GP_DEBUG ("get_file_func: EXIF file type requested but no libexif"); + return (GP_ERROR_NOT_SUPPORTED); +#endif /* HAVE_LIBEXIF */ + break; + + default: + GP_DEBUG ("get_file_func: unsupported file type %i", type); + return (GP_ERROR_NOT_SUPPORTED); + } + + if (ret != GP_OK) { + GP_DEBUG ("get_file_func: getting image data failed, returned %i", ret); + return ret; + } + + if (data == NULL) { + GP_DEBUG ("get_file_func: Fatal error: data == NULL"); + return GP_ERROR_CORRUPTED_DATA; + } + /* 256 is picked out of the blue, I figured no JPEG with EXIF header + * (not all canon cameras produces EXIF headers I think, but still) + * should be less than 256 bytes long. + */ + if (datalen < 256) { + GP_DEBUG ("get_file_func: datalen < 256 (datalen = %i = 0x%x)", datalen, + datalen); + return GP_ERROR_CORRUPTED_DATA; + } + + /* do different things with the data fetched above */ + switch (type) { + case GP_FILE_TYPE_PREVIEW: + /* Either this camera model does not support EXIF, + * this is not a file known to contain EXIF thumbnails + * (movies for example) or we do not have libexif. + * Try to extract thumbnail by looking for JPEG start/end + * in data. + */ + ret = canon_int_extract_jpeg_thumb (data, datalen, &thumbdata, &datalen, context); + + if (thumbdata != NULL) { + /* free old data */ + free (data); + /* make data point to extracted thumbnail data */ + data = thumbdata; + thumbdata = NULL; + } + if (ret != GP_OK) { + GP_DEBUG ("get_file_func: GP_FILE_TYPE_PREVIEW: couldn't extract JPEG thumbnail data"); + if (data) + free (data); + data = NULL; + return ret; + } + GP_DEBUG ("get_file_func: GP_FILE_TYPE_PREVIEW: extracted thumbnail data (%i bytes)", datalen); + + gp_file_set_data_and_size (file, (char *)data, datalen); + gp_file_set_mime_type (file, GP_MIME_JPEG); /* always */ + break; + + case GP_FILE_TYPE_AUDIO: + gp_file_set_mime_type (file, GP_MIME_WAV); + gp_file_set_data_and_size (file, (char *)data, datalen); + break; + + case GP_FILE_TYPE_NORMAL: + gp_file_set_mime_type (file, filename2mimetype (filename)); + gp_file_set_data_and_size (file, (char *)data, datalen); + break; +#ifdef HAVE_LIBEXIF + case GP_FILE_TYPE_EXIF: + if ( !is_cr2 ( filename ) ) + gp_file_set_mime_type (file, GP_MIME_JPEG); + else + gp_file_set_mime_type (file, GP_MIME_EXIF); + gp_file_set_data_and_size (file, (char *)data, datalen); + break; +#endif /* HAVE_LIBEXIF */ + default: + free (data); + data = NULL; + return (GP_ERROR_NOT_SUPPORTED); + } + + return GP_OK; +} + +/****************************************************************************/ + + +static void +pretty_number (int number, char *buffer) +{ + int len, tmp, digits; + char *pos; + +#ifdef HAVE_LOCALE_H + /* We should really use ->grouping as well */ + char thousands_sep = *localeconv ()->thousands_sep; + + if (thousands_sep == '\0') + thousands_sep = '\''; +#else + const char thousands_sep = '\''; +#endif + len = 0; + + tmp = number; + do { + len++; + tmp /= 10; + } + while (tmp); + len += (len - 1) / 3; + pos = buffer + len; + *pos = 0; + digits = 0; + do { + *--pos = (number % 10) + '0'; + number /= 10; + if (++digits == 3) { + *--pos = thousands_sep; + digits = 0; + } + } + while (number); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + char a[20], b[20]; + int pwr_source, pwr_status; + int res; + char disk_str[128], power_str[128], time_str[128]; + time_t camera_time, local_time, tmp_time; + struct tm *tm; + double time_diff; + char formatted_camera_time[20]; + + GP_DEBUG ("camera_summary()"); + + if (!check_readiness (camera, context)) + return GP_ERROR; + + /*clear_readiness(); */ + if (!update_disk_cache (camera, context)) + return GP_ERROR; + + pretty_number (camera->pl->cached_capacity, a); + pretty_number (camera->pl->cached_available, b); + + snprintf (disk_str, sizeof (disk_str), + _(" Drive %s\n %11s bytes total\n %11s bytes available"), + camera->pl->cached_drive, a, b); + + res = canon_get_batt_status (camera, &pwr_status, &pwr_source, context); + if (res == GP_OK) { + if (pwr_status == CAMERA_POWER_OK || pwr_status == CAMERA_POWER_BAD) + snprintf (power_str, sizeof (power_str), "%s (%s)", + ((pwr_source & CAMERA_MASK_BATTERY) == + 0) ? _("AC adapter") : _("on battery"), + pwr_status == + CAMERA_POWER_OK ? _("power OK") : _("power bad")); + else + snprintf (power_str, sizeof (power_str), "%s - %i", + ((pwr_source & CAMERA_MASK_BATTERY) == + 0) ? _("AC adapter") : _("on battery"), pwr_status); + } else { + GP_DEBUG ("canon_get_batt_status() returned error: %s (%i), ", + gp_result_as_string (res), res); + snprintf (power_str, sizeof (power_str), _("not available: %s"), + gp_result_as_string (res)); + } + + canon_int_set_time (camera, time (NULL), context); + res = canon_int_get_time (camera, &camera_time, context); + + /* it's hard to get local time with DST portably... */ + tmp_time = time (NULL); + tm = localtime (&tmp_time); +#ifdef HAVE_TM_GMTOFF + local_time = tmp_time + tm->tm_gmtoff; + GP_DEBUG ("camera_summary: converted %ld to localtime %ld (tm_gmtoff is %ld)", + (long)tmp_time, (long)local_time, (long)tm->tm_gmtoff); +#else + local_time = tmp_time - timezone; + GP_DEBUG ("camera_summary: converted %ld to localtime %ld (timezone is %ld)", + (long)tmp_time, (long)local_time, (long)timezone); +#endif + + if (res == GP_OK) { + time_diff = difftime (camera_time, local_time); + + strftime (formatted_camera_time, sizeof (formatted_camera_time), + "%Y-%m-%d %H:%M:%S", gmtime (&camera_time)); + + snprintf (time_str, sizeof (time_str), _("%s (host time %s%i seconds)"), + formatted_camera_time, time_diff >= 0 ? "+" : "", (int) time_diff); + } else { + GP_DEBUG ("canon_int_get_time() returned negative result: %s (%i)", + gp_result_as_string ((int) camera_time), (int) camera_time); + snprintf (time_str, sizeof (time_str), ("not available: %s"), + gp_result_as_string ((int) camera_time)); + } + + sprintf (summary->text, + _("\nCamera identification:\n Model: %s\n Owner: %s\n\n" + "Power status: %s\n\n" + "Flash disk information:\n%s\n\n" + "Time: %s\n"), + camera->pl->md->id_str, camera->pl->owner, power_str, disk_str, time_str); + + return GP_OK; +} + +static int +storage_info_func ( + CameraFilesystem *fs, + CameraStorageInformation **sinfos, int *nrofsinfos, + void *data, GPContext *context +) { + char root[10]; + Camera *camera = (Camera*)data; + + if (!check_readiness (camera, context)) + return GP_ERROR_IO; + + camera->pl->cached_drive = canon_int_get_disk_name (camera, context); + if (!camera->pl->cached_drive) { + gp_context_error (context, _("Could not get disk name: %s"), + _("No reason available")); + return GP_ERROR_IO; + } + snprintf (root, sizeof (root), "%s\\", camera->pl->cached_drive); + canon_int_get_disk_name_info (camera, root, &camera->pl->cached_capacity, + &camera->pl->cached_available, context); + + *sinfos = (CameraStorageInformation*) calloc (sizeof (CameraStorageInformation), 1); + *nrofsinfos = 1; + (*sinfos)->fields = GP_STORAGEINFO_BASE; + strcpy ((*sinfos)->basedir, "/"); + if (camera->pl->cached_drive) { + (*sinfos)->fields = GP_STORAGEINFO_LABEL; + strcpy ((*sinfos)->basedir, camera->pl->cached_drive); + } + (*sinfos)->fields |= GP_STORAGEINFO_MAXCAPACITY; + (*sinfos)->capacitykbytes = camera->pl->cached_capacity; + (*sinfos)->fields |= GP_STORAGEINFO_FREESPACEKBYTES; + (*sinfos)->freekbytes = camera->pl->cached_available; + (*sinfos)->fields |= GP_STORAGEINFO_ACCESS; + (*sinfos)->access = GP_STORAGEINFO_AC_READONLY_WITH_DELETE; + return GP_OK; +} + + +/****************************************************************************/ + +static int +camera_about (Camera __unused__ *camera, CameraText *about, + GPContext __unused__ *context) +{ + GP_DEBUG ("camera_about()"); + + strcpy (about->text, + _("Canon PowerShot series driver by\n" + " Wolfgang G. Reissnegger,\n" + " Werner Almesberger,\n" + " Edouard Lafargue,\n" + " Philippe Marzouk,\n" + "A5 additions by Ole W. Saastad\n" + "Additional enhancements by\n" + " Holger Klemm\n" + " Stephen H. Westin") + ); + + return GP_OK; +} + +/****************************************************************************/ + +static int +delete_file_func (CameraFilesystem __unused__ *fs, const char *folder, + const char *filename, void *data, + GPContext *context) +{ + Camera *camera = data; + const char *thumbname; + char canonfolder[300]; + const char *_canonfolder; + + GP_DEBUG ("delete_file_func()"); + + _canonfolder = gphoto2canonpath (camera, folder, context); + strncpy (canonfolder, _canonfolder, sizeof (canonfolder) - 1); + canonfolder[sizeof (canonfolder) - 1] = 0; + + if (!check_readiness (camera, context)) + return GP_ERROR; + + if (camera->pl->md->model == CANON_CLASS_3) { + GP_DEBUG ("delete_file_func: deleting " + "pictures disabled for cameras: PowerShot A5, PowerShot A5 ZOOM"); + + return GP_ERROR_NOT_SUPPORTED; + } + + GP_DEBUG ("delete_file_func: filename: %s, folder: %s", filename, canonfolder); + if (canon_int_delete_file (camera, filename, canonfolder, context) != GP_OK) { + gp_context_error (context, _("Error deleting file")); + return GP_ERROR; + } + + + /* If we have a file with associated thumbnail file that is not + * listed, delete its thumbnail as well */ + if (!camera->pl->list_all_files) { + thumbname = canon_int_filename2thumbname (camera, filename); + if ((thumbname != NULL) && (*thumbname != '\0')) { + GP_DEBUG ("delete_file_func: thumbname: %s, folder: %s", thumbname, canonfolder); + if (canon_int_delete_file (camera, thumbname, canonfolder, context) != GP_OK) { + /* XXX should we handle this as an error? + * Probably only in case the camera link died, + * but not if the file just had already been + * deleted before. */ + gp_context_error (context, _("Error deleting associated thumbnail file")); + return GP_ERROR; + } + } + } + return GP_OK; +} + +#ifdef CANON_EXPERIMENTAL_UPLOAD +/* + * get from the filesystem the name of the highest numbered picture or directory + * + */ +static int +get_last_file (Camera *camera, char *directory, char *destname, + GPContext* context, char getdirectory, char*result) +{ + CameraFilesystem * fs = camera->fs; + CameraList*list; + char dir2[300]; + int t; + GP_DEBUG ("get_last_file()"); + + if(directory[1] == ':') { + /* gp_file_list_folder() needs absolute filenames + starting with '/' */ + GP_DEBUG ("get_last_file(): replacing '%c:%c' by '/'", + directory[0], directory[2]); + sprintf(dir2, "/%s", &directory[3]); + directory = dir2; + } + + gp_list_new(&list); + if(getdirectory) { + CHECK_RESULT (gp_filesystem_list_folders (fs, directory, list, context)); + GP_DEBUG ("get_last_file(): %d folders", list->count); + } + else { + CHECK_RESULT (gp_filesystem_list_files (fs, directory, list, context)); + GP_DEBUG ("get_last_file(): %d files", list->count); + } + for(t=0;tcount;t++) + { + char* name = list->entry[t].name; + if(getdirectory) + GP_DEBUG ("get_last_file(): folder: %s", name); + else + GP_DEBUG ("get_last_file(): file: %s", name); + + /* we search only for directories of the form [0-9]{3}CANON... */ + if(getdirectory && ((strlen (name)!=8) || + (!isdigit(name[0]) || + !isdigit(name[1]) || + !isdigit(name[2])) || strcmp(&name[3],"CANON"))) + continue; + + /* ...and only for files similar to AUT_[0-9]{4} */ + if(!getdirectory && (!isdigit(name[6]) || + !isdigit(name[7]))) + continue; + + if(!result[0] || strcmp((list->entry[t].name)+4, result+4) > 0) + strcpy(result, list->entry[t].name); + } + gp_list_free(list); + + return GP_OK; +} + +static int +get_last_picture (Camera *camera, char *directory, char *destname, GPContext* context) +{ + GP_DEBUG ("get_last_picture()"); + return get_last_file(camera, directory, destname, context, 0, destname); +} + +static int +get_last_dir (Camera *camera, char *directory, char *destname, GPContext* context) +{ + GP_DEBUG ("get_last_dir()"); + return get_last_file(camera, directory, destname, context, 1, destname); +} + +/* + * convert a filename to 8.3 format by truncating + * the basename to 8 and the extension to 3 chars + * + */ +static void +convert_filename_to_8_3(const char* filename, char* dest) +{ + char*c; + GP_DEBUG ("convert_filename_to_8_3()"); + c = strchr(filename, '.'); + if(!c) { + sprintf(dest, "%.8s", filename); + } + else { + int l = c-filename; + if(l>8) + l=8; + memcpy(dest, filename, l); + dest[l]=0; + strcat(dest, c); + dest[l+4]=0; + } +} + + +/* XXX This function should be merged with the other one of the same name */ +static int +put_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + char destpath[300], destname[300], dir[300], dcf_root_dir[10]; + int j, dirnum = 0, r, status; + char buf[10]; + CameraAbilities a; + + GP_DEBUG ("camera_folder_put_file()"); + + if (type != GP_FILE_TYPE_NORMAL) + return GP_ERROR_BAD_PARAMETERS; + + if (!check_readiness (camera, context)) + return GP_ERROR; + + gp_camera_get_abilities (camera, &a); + /* Special case for A50 and Pro 70 */ + if ((camera->pl->speed > 57600) && ((camera->pl->md->model == CANON_CLASS_1) + || (camera->pl->md->model == CANON_CLASS_2))) { + gp_context_error (context, + _("Speeds greater than 57600 are not supported for uploading to this camera")); + return GP_ERROR_NOT_SUPPORTED; + } + + if (!check_readiness (camera, context)) { + return GP_ERROR; + } + + for (j = 0; j < sizeof (destpath); j++) { + destpath[j] = '\0'; + dir[j] = '\0'; + destname[j] = '\0'; + } + + if (camera->pl->cached_drive == NULL) { + camera->pl->cached_drive = canon_int_get_disk_name (camera, context); + if (camera->pl->cached_drive == NULL) { + gp_context_error (context, _("Could not get flash drive letter")); + return GP_ERROR; + } + } + + sprintf (dcf_root_dir, "%s\\DCIM", camera->pl->cached_drive); + GP_DEBUG ("camera_folder_put_file(): dcf_root_dir=%s",dcf_root_dir); + + if (get_last_dir (camera, dcf_root_dir, dir, context) != GP_OK) + return GP_ERROR; + GP_DEBUG ("camera_folder_put_file(): dir=%s", dir?dir:"NULL"); + + if (strlen (dir) == 0) { + sprintf (dir, "100CANON"); + sprintf (destname, "AUT_0001.JPG"); + sprintf (destpath, "%s\\%s", dcf_root_dir, dir); + } else { + if(camera->pl->upload_keep_filename) { + char filename2[300]; + if(!filename) + return GP_ERROR; + convert_filename_to_8_3(filename, filename2); + sprintf(destname, "%s", filename2); + } else { + char dir2[300]; + sprintf(dir2, "%s/%s", dcf_root_dir, dir); + status = get_last_picture (camera, dir2, destname, context); + if ( status < 0 ) + return status; + + if (strlen (destname) == 0) { + sprintf (destname, "AUT_%c%c01.JPG", dir[1], dir[2]); + } else { + sprintf (buf, "%c%c", destname[6], destname[7]); + j = 1; + j = atoi (buf); + if (j == 99) { + j = 1; + sprintf (buf, "%c%c%c", dir[0], dir[1], dir[2]); + dirnum = atoi (buf); + if (dirnum == 999 && !camera->pl->upload_keep_filename) { + gp_context_error (context, + _("Could not upload, no free folder name available!\n" + "999CANON folder name exists and has an AUT_9999.JPG picture in it.")); + return GP_ERROR; + } else { + dirnum++; + sprintf (dir, "%03iCANON", dirnum); + } + } else + j++; + + sprintf (destname, "AUT_%c%c%02i.JPG", dir[1], dir[2], j); + } + } + sprintf (destpath, "%s\\%s", dcf_root_dir, dir); + GP_DEBUG ("destpath: %s destname: %s", destpath, destname); + } + + GP_DEBUG ("camera_folder_put_file(): destpath=%s", destpath); + GP_DEBUG ("camera_folder_put_file(): destname=%s", destname); + + r = canon_int_directory_operations (camera, dcf_root_dir, DIR_CREATE, context); + if (r < 0) { + gp_context_error (context, _("Could not create \\DCIM directory.")); + return (r); + } + + r = canon_int_directory_operations (camera, destpath, DIR_CREATE, context); + if (r < 0) { + gp_context_error (context, _("Could not create destination directory.")); + return (r); + } + + j = strlen (destpath); + destpath[j] = '\\'; + destpath[j + 1] = '\0'; + + clear_readiness (camera); + + return canon_int_put_file (camera, file, filename, destname, destpath, context); +} + +#else /* not CANON_EXPERIMENTAL_UPLOAD */ + +static int +put_file_func (CameraFilesystem __unused__ *fs, const char __unused__ *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + char destpath[300], destname[300], dir[300], dcf_root_dir[10]; + unsigned int j; + int dirnum = 0, r; + char buf[10]; + CameraAbilities a; + + GP_DEBUG ("camera_folder_put_file()"); + if (type != GP_FILE_TYPE_NORMAL) + return GP_ERROR_BAD_PARAMETERS; + + if (camera->port->type == GP_PORT_USB) { + gp_context_error (context, + "File upload not implemented for USB yet"); + return GP_ERROR_NOT_SUPPORTED; + } + + if (!check_readiness (camera, context)) + return GP_ERROR; + + gp_camera_get_abilities (camera, &a); + /* Special case for A50 and Pro 70 */ + if ((camera->pl->speed > 57600) && + ((camera->pl->md->model == CANON_CLASS_1) + || (camera->pl->md->model == CANON_CLASS_2))) { + gp_context_error (context, + _("Speeds greater than 57600 are not " + "supported for uploading to this camera")); + return GP_ERROR_NOT_SUPPORTED; + } + + if (!check_readiness (camera, context)) { + return GP_ERROR; + } + + for (j = 0; j < sizeof (destpath); j++) { + destpath[j] = '\0'; + dir[j] = '\0'; + destname[j] = '\0'; + } + + if (camera->pl->cached_drive == NULL) { + camera->pl->cached_drive = canon_int_get_disk_name (camera, context); + if (camera->pl->cached_drive == NULL) { + gp_context_error (context, _("Could not get flash drive letter")); + return GP_ERROR; + } + } + + sprintf (dcf_root_dir, "%s\\DCIM", camera->pl->cached_drive); + + if (strlen (dir) == 0) { + sprintf (dir, "\\100CANON"); + sprintf (destname, "AUT_0001.JPG"); + } else { + if (strlen (destname) == 0) { + sprintf (destname, "AUT_%c%c01.JPG", dir[2], dir[3]); + } else { + sprintf (buf, "%c%c", destname[6], destname[7]); + j = 1; + j = atoi (buf); + if (j == 99) { + j = 1; + sprintf (buf, "%c%c%c", dir[1], dir[2], dir[3]); + dirnum = atoi (buf); + if (dirnum == 999) { + gp_context_error (context, + _("Could not upload, no free folder name available!\n" + "999CANON folder name exists and has an AUT_9999.JPG picture in it.")); + return GP_ERROR; + } else { + dirnum++; + sprintf (dir, "\\%03iCANON", dirnum); + } + } else + j++; + + sprintf (destname, "AUT_%c%c%02i.JPG", dir[2], dir[3], j); + } + + sprintf (destpath, "%s%s", dcf_root_dir, dir); + + GP_DEBUG ("destpath: %s destname: %s", destpath, destname); + } + + r = canon_int_directory_operations (camera, dcf_root_dir, DIR_CREATE, context); + if (r < 0) { + gp_context_error (context, _("Could not create \\DCIM directory.")); + return (r); + } + + r = canon_int_directory_operations (camera, destpath, DIR_CREATE, context); + if (r < 0) { + gp_context_error (context, _("Could not create destination directory.")); + return (r); + } + + + j = strlen (destpath); + destpath[j] = '\\'; + destpath[j + 1] = '\0'; + + clear_readiness (camera); + + return canon_int_put_file (camera, file, filename, destname, destpath, context); +} + +#endif /* CANON_EXPERIMENTAL_UPLOAD */ + + + +/****************************************************************************/ + +/* Wait for an event */ +static int +camera_wait_for_event (Camera *camera, int timeout, CameraEventType *eventtype, void **eventdata, GPContext *context) +{ + return canon_int_wait_for_event (camera, timeout, eventtype, eventdata, context); +} + + +/* Get configuration into screen widgets for display. */ + +static int +camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *t, *section; + char power_str[128], firm[64]; + + int pwr_status, pwr_source, res, i, menuval; + time_t camtime; + char formatted_camera_time[30]; + float zoom; + unsigned char zoomVal, zoomMax; + + GP_DEBUG ("camera_get_config()"); + + if (!check_readiness (camera, context)) + return -1; + + gp_widget_new (GP_WIDGET_WINDOW, _("Camera and Driver Configuration"), window); + gp_widget_set_name (*window, "main"); + + gp_widget_new (GP_WIDGET_SECTION, _("Camera Settings"), §ion); + gp_widget_set_name (section, "settings"); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_TEXT, _("Owner Name"), &t); + gp_widget_set_name (t, "ownername"); + gp_widget_set_value (t, camera->pl->owner); + gp_widget_append (section, t); + + /* Capture size class */ + gp_widget_new (GP_WIDGET_MENU, _("Capture Size Class"), &t); + gp_widget_set_name (t, "capturesizeclass"); + + /* Map it to the list of choices */ + i = 0; + menuval = -1; + while (captureSizeArray[i].label) { + gp_widget_add_choice (t, _(captureSizeArray[i].label)); + if (camera->pl->capture_size == captureSizeArray[i].value) { + gp_widget_set_value (t, _(captureSizeArray[i].label)); + menuval = i; + } + i++; + } + + /* Set to "Compatibility mode" if not currently set */ + if (menuval == -1) + gp_widget_set_value (t, _("Compatibility Mode")); + + gp_widget_append (section, t); + + + /********************* Release params **********************/ + + /* Necessary for release params: ISO, aperture, etc. */ + if (!camera->pl->remote_control) { + res = canon_int_start_remote_control (camera, context); + if (res != GP_OK) + return -1; + } + + res = canon_int_get_release_params(camera, context); + if (res != GP_OK) { + for (i = 0 ; i < RELEASE_PARAMS_LEN ; i++) + camera->pl->release_params[i] = -1; + } + + + /* ISO speed */ + gp_widget_new (GP_WIDGET_MENU, _("ISO Speed"), &t); + gp_widget_set_name (t, "iso"); + + /* Map ISO speed to the list of choices */ + i = 0; + menuval = -1; + while (isoStateArray[i].label) { + gp_widget_add_choice (t, isoStateArray[i].label); + if (camera->pl->release_params[ISO_INDEX] == + (int)isoStateArray[i].value) { + gp_widget_set_value (t, isoStateArray[i].label); + menuval = i; + } + i++; + } + + /* Set an unknown ISO value if the + * camera is set to something weird */ + if (menuval == -1) { + gp_widget_add_choice (t, _("Unknown")); + gp_widget_set_value (t, _("Unknown")); + }; + + gp_widget_append (section, t); + + + /* Shooting mode */ + gp_widget_new (GP_WIDGET_MENU, _("Shooting mode"), &t); + gp_widget_set_name (t, "shootingmode"); + + /* Map shooting mode to the list of choices */ + i = 0; + menuval = -1; + while (shootingModeStateArray[i].label) { + gp_widget_add_choice (t, _(shootingModeStateArray[i].label)); + if (camera->pl->release_params[SHOOTING_MODE_INDEX] == + (int)shootingModeStateArray[i].value) { + gp_widget_set_value (t, _(shootingModeStateArray[i].label)); + menuval = i; + } + i++; + } + + /* Set an unknown shooting mode value if the + * camera is set to something weird */ + if (menuval == -1) { + gp_widget_add_choice (t, _("Unknown")); + gp_widget_set_value (t, _("Unknown")); + }; + + gp_widget_append (section, t); + + + /* Shutter speed */ + gp_widget_new (GP_WIDGET_MENU, _("Shutter Speed"), &t); + gp_widget_set_name (t, "shutterspeed"); + + /* Map shutter speed to the list of choices */ + i = 0; + menuval = -1; + while (shutterSpeedStateArray[i].label) { + gp_widget_add_choice (t, _(shutterSpeedStateArray[i].label)); + if (camera->pl->release_params[SHUTTERSPEED_INDEX] == + (int)shutterSpeedStateArray[i].value) { + gp_widget_set_value (t, _(shutterSpeedStateArray[i].label)); + menuval = i; + } + i++; + } + + /* Set an unknown shutter value if the + * camera is set to something weird */ + if (menuval == -1) { + gp_widget_add_choice (t, _("Unknown")); + gp_widget_set_value (t, _("Unknown")); + }; + + gp_widget_append (section, t); + + + + /* DSLRs have only "Manual" Zoom */ + if ( camera->pl->md->id_str && !strstr(camera->pl->md->id_str,"EOS") && !strstr(camera->pl->md->id_str,"Rebel")) { + /* Zoom level */ + gp_widget_new (GP_WIDGET_RANGE, _("Zoom"), &t); + gp_widget_set_name (t, "zoom"); + canon_int_get_zoom(camera, &zoomVal, &zoomMax, context); + gp_widget_set_range (t, 0, zoomMax, 1); + zoom = zoomVal; + gp_widget_set_value (t, &zoom); + gp_widget_append (section, t); + } + + /* Aperture */ + gp_widget_new (GP_WIDGET_MENU, _("Aperture"), &t); + gp_widget_set_name (t, "aperture"); + + /* Map aperture to the list of choices */ + i = 0; + menuval = -1; + while (apertureStateArray[i].label) { + gp_widget_add_choice (t, _(apertureStateArray[i].label)); + if (camera->pl->release_params[APERTURE_INDEX] == + (int)apertureStateArray[i].value) { + gp_widget_set_value (t, _(apertureStateArray[i].label)); + menuval = i; + } + i++; + } + + /* Set an unknown aperture value if the + * camera is set to something weird */ + if (menuval == -1) { + gp_widget_add_choice (t, _("Unknown")); + gp_widget_set_value (t, _("Unknown")); + }; + + gp_widget_append (section, t); + + /* Exposure Compensation */ + gp_widget_new (GP_WIDGET_MENU, _("Exposure Compensation"), &t); + gp_widget_set_name (t, "exposurecompensation"); + + + /* Map exposure compensation to the list of choices */ + i = 0; + menuval = -1; + while (exposureBiasStateArray[i].label) { + gp_widget_add_choice (t, _(exposureBiasStateArray[i].label)); + if (camera->pl->release_params[EXPOSUREBIAS_INDEX] == + exposureBiasStateArray[i].value) { + gp_widget_set_value (t, _(exposureBiasStateArray[i].label)); + menuval = i; + } + i++; + } + + /* Set an unknown exp bias value if the + * camera is set to something weird */ + if (menuval == -1) { + gp_widget_add_choice (t, _("Unknown")); + gp_widget_set_value (t, _("Unknown")); + }; + gp_widget_append (section, t); + + + /* Image Format */ + gp_widget_new (GP_WIDGET_MENU, _("Image Format"), &t); + gp_widget_set_name (t, "imageformat"); + + + /* Map image format to the list of choices */ + i = 0; + menuval = -1; + while (imageFormatStateArray[i].label) { + gp_widget_add_choice (t, _(imageFormatStateArray[i].label)); + if ((camera->pl->release_params[IMAGE_FORMAT_1_INDEX] == + imageFormatStateArray[i].res_byte1) && + (camera->pl->release_params[IMAGE_FORMAT_2_INDEX] == + imageFormatStateArray[i].res_byte2) && + (camera->pl->release_params[IMAGE_FORMAT_3_INDEX] == + imageFormatStateArray[i].res_byte3)) { + gp_widget_set_value (t, _(imageFormatStateArray[i].label)); + menuval = i; + } + i++; + } + + /* Set an unknown imageFormat value if the + * camera is set to something weird */ + if (menuval == -1) { + gp_widget_add_choice (t, _("Unknown")); + gp_widget_set_value (t, _("Unknown")); + }; + + gp_widget_append (section, t); + + + /* Focus Mode */ + gp_widget_new (GP_WIDGET_MENU, _("Focus Mode"), &t); + gp_widget_set_name (t, "focusmode"); + + + /* Map focus to the list of choices */ + i = 0; + menuval = -1; + while (focusModeStateArray[i].label) { + gp_widget_add_choice (t, _(focusModeStateArray[i].label)); + if (camera->pl->release_params[FOCUS_MODE_INDEX] == + (int)focusModeStateArray[i].value) { + gp_widget_set_value (t, _(focusModeStateArray[i].label)); + menuval = i; + } + i++; + } + + /* Set an unknown focus mode value if the + * camera is set to something weird */ + if (menuval == -1) { + gp_widget_add_choice (t, _("Unknown")); + gp_widget_set_value (t, _("Unknown")); + }; + + gp_widget_append (section, t); + + + /* Flash Mode */ + gp_widget_new (GP_WIDGET_MENU, _("Flash Mode"), &t); + gp_widget_set_name (t, "flashmode"); + + + /* Map flash mode to the list of choices */ + i = 0; + menuval = -1; + while (flashModeStateArray[i].label) { + gp_widget_add_choice (t, _(flashModeStateArray[i].label)); + if (camera->pl->release_params[FLASH_INDEX] == + (int)flashModeStateArray[i].value) { + gp_widget_set_value (t, _(flashModeStateArray[i].label)); + menuval = i; + } + i++; + } + + /* Set an unknown flash value if the + * camera is set to something weird */ + if (menuval == -1) { + gp_widget_add_choice (t, _("Unknown")); + gp_widget_set_value (t, _("Unknown")); + }; + + gp_widget_append (section, t); + + + /* Beep */ + gp_widget_new (GP_WIDGET_MENU, _("Beep"), &t); + gp_widget_set_name (t, "beep"); + + + /* Map beep mode to the list of choices */ + i = 0; + menuval = -1; + while (beepModeStateArray[i].label) { + gp_widget_add_choice (t, _(beepModeStateArray[i].label)); + if (camera->pl->release_params[BEEP_INDEX] == + (int)beepModeStateArray[i].value) { + gp_widget_set_value (t, _(beepModeStateArray[i].label)); + menuval = i; + } + i++; + } + + /* Set an unknown beep value if the + * camera is set to something weird */ + if (menuval == -1) { + gp_widget_add_choice (t, _("Unknown")); + gp_widget_set_value (t, _("Unknown")); + }; + + gp_widget_append (section, t); + + + /************************ end release params ************************/ + + /* *** Actions */ + + gp_widget_new (GP_WIDGET_SECTION, _("Camera Actions"), §ion); + gp_widget_set_name (section, "actions"); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_TOGGLE, _("Synchronize camera date and time with PC"), &t); + gp_widget_set_name (t, "syncdatetime"); + gp_widget_append (section, t); + + + /* *** Status */ + + gp_widget_new (GP_WIDGET_SECTION, _("Camera Status Information"), §ion); + gp_widget_set_name (section, "status"); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_TEXT, _("Camera Model"), &t); + gp_widget_set_name (t, "model"); + gp_widget_set_value (t, camera->pl->ident); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_TEXT, _("Date and Time"), &t); + gp_widget_set_name (t, "datetime"); + res = canon_int_get_time (camera, &camtime, context); + if (res == GP_OK) { + strftime (formatted_camera_time, sizeof (formatted_camera_time), + "%Y-%m-%d %H:%M:%S", gmtime (&camtime)); + gp_widget_set_value (t, formatted_camera_time); + } else { + gp_widget_set_value (t, _("Error")); + } + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_TEXT, _("Firmware Version"), &t); + gp_widget_set_name (t, "firmwareversion"); + sprintf (firm, "%i.%i.%i.%i", camera->pl->firmwrev[3], camera->pl->firmwrev[2], + camera->pl->firmwrev[1], camera->pl->firmwrev[0]); + gp_widget_set_value (t, firm); + gp_widget_append (section, t); + + canon_get_batt_status (camera, &pwr_status, &pwr_source, context); + + if (pwr_status == CAMERA_POWER_OK || pwr_status == CAMERA_POWER_BAD) + snprintf (power_str, sizeof (power_str), "%s (%s)", + ((pwr_source & CAMERA_MASK_BATTERY) == + 0) ? _("AC adapter") : _("on battery"), + pwr_status == + CAMERA_POWER_OK ? _("power OK") : _("power bad")); + else + snprintf (power_str, sizeof (power_str), "%s - %i", + ((pwr_source & CAMERA_MASK_BATTERY) == + 0) ? _("AC adapter") : _("on battery"), pwr_status); + + gp_widget_new (GP_WIDGET_TEXT, _("Power"), &t); + gp_widget_set_name (t, "power"); + gp_widget_set_value (t, power_str); + gp_widget_append (section, t); + + + /* *** Driver */ + + gp_widget_new (GP_WIDGET_SECTION, _("Driver"), §ion); + gp_widget_set_name (t, "driver"); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_TOGGLE, _("List all files"), &t); + gp_widget_set_name (t, "list_all_files"); + gp_widget_set_value (t, &camera->pl->list_all_files); + gp_widget_append (section, t); + +#ifdef CANON_EXPERIMENTAL_UPLOAD + gp_widget_new (GP_WIDGET_TOGGLE, _("Keep filename on upload"), &t); + gp_widget_set_name (t, "keep_filename_on_upload"); + gp_widget_set_value (t, &camera->pl->upload_keep_filename); + gp_widget_append (section, t); +#endif /* CANON_EXPERIMENTAL_UPLOAD */ + + return GP_OK; +} + +/* Set camera configuration from screen widgets. */ +static int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *w; + char *wvalue; + int i, val; + int res; + unsigned char iso, shutter_speed, aperture, focus_mode, flash_mode, beep, shooting_mode; + char str[16]; + + GP_DEBUG ("camera_set_config()"); + + gp_widget_get_child_by_label (window, _("Owner Name"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + if (canon_int_set_owner_name (camera, wvalue, context) == GP_OK) + gp_context_status (context, _("Owner name changed")); + else + gp_context_status (context, _("could not change owner name")); + } + } + + gp_widget_get_child_by_label (window, _("Capture Size Class"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + + i = 0; + while (captureSizeArray[i].label) { + if (strcmp (_(captureSizeArray[i].label), wvalue) == 0) { + camera->pl->capture_size = captureSizeArray[i].value; + gp_context_status (context, _("Capture size class changed")); + break; + } + i++; + } + + if (!captureSizeArray[i].label) + gp_context_status (context, _("Invalid capture size class setting")); + + } + + /* Enable remote control, if not already enabled */ + if (!camera->pl->remote_control) { + res = canon_int_start_remote_control (camera, context); + if (res != GP_OK) + return -1; + } + + gp_widget_get_child_by_label (window, _("ISO Speed"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + + /* Map the menu option setting to the camera binary value */ + i = 0; + while (isoStateArray[i].label) { + if (strcmp (isoStateArray[i].label, wvalue) == 0) { + iso = isoStateArray[i].value; + break; + } + i++; + } + + if (!isoStateArray[i].label) { + gp_context_status (context, _("Invalid ISO speed setting")); + } else { + if (canon_int_set_iso (camera, iso, context) == GP_OK) + gp_context_status (context, _("ISO speed changed")); + else + gp_context_status (context, _("Could not change ISO speed")); + } + } + } + + + gp_widget_get_child_by_label (window, _("Shooting mode"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + + /* Map the menu option setting to the camera binary value */ + i = 0; + while (shootingModeStateArray[i].label) { + if (strcmp (_(shootingModeStateArray[i].label), wvalue) == 0) { + shooting_mode = shootingModeStateArray[i].value; + break; + } + i++; + } + + if (!shootingModeStateArray[i].label) { + gp_context_status (context, _("Invalid shooting mode setting")); + } else { + if (canon_int_set_shooting_mode (camera, shooting_mode, context) == GP_OK) + gp_context_status (context, _("Shooting mode changed")); + else + gp_context_status (context, _("Could not change shooting mode")); + } + } + } + + + gp_widget_get_child_by_label (window, _("Shutter Speed"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + + /* Map the menu option setting to the camera binary value */ + i = 0; + while (shutterSpeedStateArray[i].label) { + if (strcmp (_(shutterSpeedStateArray[i].label), wvalue) == 0) { + shutter_speed = shutterSpeedStateArray[i].value; + break; + } + i++; + } + + if (!shutterSpeedStateArray[i].label) { + gp_context_status (context, _("Invalid shutter speed setting")); + } else { + if (canon_int_set_shutter_speed (camera, shutter_speed, context) == GP_OK) + gp_context_status (context, _("Shutter speed changed")); + else + gp_context_status (context, _("Could not change shutter speed")); + } + } + } + + gp_widget_get_child_by_label (window, _("Aperture"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + + /* Map the menu option setting to the camera binary value */ + i = 0; + while (apertureStateArray[i].label) { + if (strcmp (_(apertureStateArray[i].label), wvalue) == 0) { + aperture = apertureStateArray[i].value; + break; + } + i++; + } + + if (!apertureStateArray[i].label) { + gp_context_status (context, _("Invalid aperture setting")); + } else { + if (canon_int_set_aperture (camera, aperture, context) == GP_OK) + gp_context_status (context, _("Aperture changed")); + else + gp_context_status (context, _("Could not change aperture")); + } + } + } + gp_widget_get_child_by_label (window, _("Exposure Compensation"), &w); + if (gp_widget_changed (w)) { + unsigned char expbias; + + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + + /* Map the menu option setting to the camera binary value */ + i = 0; + while (exposureBiasStateArray[i].label) { + if (strcmp (_(exposureBiasStateArray[i].label), wvalue) == 0) { + expbias = exposureBiasStateArray[i].value; + break; + } + i++; + } + + if (!exposureBiasStateArray[i].label) { + gp_context_status (context, _("Invalid exposure compensation setting")); + } else { + if (canon_int_set_exposurebias (camera, expbias, context) == GP_OK) + gp_context_status (context, _("Exposure compensation changed")); + else + gp_context_status (context, _("Could not change exposure compensation")); + } + } + } + + gp_widget_get_child_by_label (window, _("Image Format"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + + /* Map the menu option setting to the camera binary value */ + i = 0; + while (imageFormatStateArray[i].label) { + if (strcmp (_(imageFormatStateArray[i].label), wvalue) == 0) + break; + + i++; + } + + if (!imageFormatStateArray[i].label) { + gp_context_status (context, _("Invalid image format setting")); + } else { + if (canon_int_set_image_format (camera, imageFormatStateArray[i].res_byte1, imageFormatStateArray[i].res_byte2, + imageFormatStateArray[i].res_byte3, context) == GP_OK) + gp_context_status (context, _("Image format changed")); + else + gp_context_status (context, _("Could not change image format")); + } + } + } + + gp_widget_get_child_by_label (window, _("Focus Mode"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + + /* Map the menu option setting to the camera binary value */ + i = 0; + while (focusModeStateArray[i].label) { + if (strcmp (_(focusModeStateArray[i].label), wvalue) == 0) { + focus_mode = focusModeStateArray[i].value; + break; + } + i++; + } + + if (!focusModeStateArray[i].label) { + gp_context_status (context, _("Invalid focus mode setting")); + } else { + if (canon_int_set_focus_mode (camera, focus_mode, context) == GP_OK) + gp_context_status (context, _("Focus mode changed")); + else + gp_context_status (context, _("Could not change focus mode")); + } + } + } + + /* Beep */ + gp_widget_get_child_by_label (window, _("Beep"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + + /* Map the menu option setting to the camera binary value */ + i = 0; + while (beepModeStateArray[i].label) { + if (strcmp (_(beepModeStateArray[i].label), wvalue) == 0) { + beep = beepModeStateArray[i].value; + break; + } + i++; + } + + if (!beepModeStateArray[i].label) { + gp_context_status (context, _("Invalid beep mode setting")); + } else { + if (canon_int_set_beep (camera, beep, context) == GP_OK) + gp_context_status (context, _("Beep mode changed")); + else + gp_context_status (context, _("Could not change beep mode")); + } + } + } + + + /* DSLRs have only "Manual" Zoom */ + if ( camera->pl->md->id_str && !strstr(camera->pl->md->id_str,"EOS") && !strstr(camera->pl->md->id_str,"Rebel")) { + /* Zoom */ + gp_widget_get_child_by_label (window, _("Zoom"), &w); + if (gp_widget_changed (w)) { + float zoom; + + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &zoom); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + if (canon_int_set_zoom (camera, zoom, context) == GP_OK) + gp_context_status (context, _("Zoom level changed")); + else + gp_context_status (context, _("Could not change zoom level")); + } + } + } + + /* Aperture */ + gp_widget_get_child_by_label (window, _("Aperture"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + + /* Map the menu option setting to the camera binary value */ + i = 0; + while (apertureStateArray[i].label) { + if (strcmp (_(apertureStateArray[i].label), wvalue) == 0) { + aperture = apertureStateArray[i].value; + break; + } + i++; + } + + if (!apertureStateArray[i].label) { + gp_context_status (context, _("Invalid aperture setting")); + } else { + if (canon_int_set_aperture (camera, aperture, context) == GP_OK) + gp_context_status (context, _("Aperture changed")); + else + gp_context_status (context, _("Could not change aperture")); + } + } + } + + /* Flash mode */ + gp_widget_get_child_by_label (window, _("Flash Mode"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + + /* Map the menu option setting to the camera binary value */ + i = 0; + while (flashModeStateArray[i].label) { + if (strcmp (_(flashModeStateArray[i].label), wvalue) == 0) { + flash_mode = flashModeStateArray[i].value; + break; + } + i++; + } + + if (!flashModeStateArray[i].label) { + gp_context_status (context, _("Invalid flash mode setting")); + } else { + if (canon_int_set_flash (camera, flash_mode, context) == GP_OK) + gp_context_status (context, _("Flash mode changed")); + else + gp_context_status (context, _("Could not change flash mode")); + } + } + } + + + gp_widget_get_child_by_label (window, _("Synchronize camera date and time with PC"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (!check_readiness (camera, context)) { + gp_context_status (context, _("Camera unavailable")); + } else { + if (canon_int_set_time (camera, time (NULL), context) == GP_OK) { + gp_context_status (context, _("time set")); + } else { + gp_context_status (context, _("could not set time")); + } + } + } + + gp_widget_get_child_by_label (window, _("List all files"), &w); + if (gp_widget_changed (w)) { + /* XXXXX mark CameraFS as dirty */ + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &val); + camera->pl->list_all_files = val; + sprintf (str, "%d", val); + gp_setting_set ("canon", "list_all_files", str); + gp_widget_get_value (w, &camera->pl->list_all_files); + GP_DEBUG ("New config value for \"List all files\" %i", + camera->pl->list_all_files); + } + +#ifdef CANON_EXPERIMENTAL_UPLOAD + gp_widget_get_child_by_label (window, _("Keep filename on upload"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &camera->pl->upload_keep_filename); + GP_DEBUG ("New config value for \"Keep filename on upload\": %i", + camera->pl->upload_keep_filename); + } +#endif /* CANON_EXPERIMENTAL_UPLOAD */ + + GP_DEBUG ("done configuring camera."); + + return GP_OK; +} + +static int +get_info_func (CameraFilesystem __unused__ *fs, const char *folder, + const char *filename, + CameraFileInfo * info, + void __unused__ *data, GPContext __unused__ *context) +{ + Camera *camera = data; + GP_DEBUG ("get_info_func() called for '%s'/'%s'", folder, filename); + + info->preview.fields = GP_FILE_INFO_TYPE; + + /* thumbnails are always jpeg on Canon Cameras */ + strcpy (info->preview.type, GP_MIME_JPEG); + + /* FIXME GP_FILE_INFO_PERMISSIONS to add */ + info->file.fields = GP_FILE_INFO_TYPE; + /* | GP_FILE_INFO_PERMISSIONS | GP_FILE_INFO_SIZE; */ + /* info->file.fields.permissions = */ + + if (is_movie (filename)) + strcpy (info->file.type, GP_MIME_AVI); + else if (is_image (filename)) + strcpy (info->file.type, GP_MIME_JPEG); + else if (is_audio (filename)) + strcpy (info->file.type, GP_MIME_WAV); + else + strcpy (info->file.type, GP_MIME_UNKNOWN); + /* let it fill driver specific info */ + return canon_int_get_info_func (camera, folder, filename, info, context); +} + +static int +make_dir_func (CameraFilesystem __unused__ *fs, const char *folder, + const char *name, void *data, + GPContext *context) +{ + Camera *camera = data; + char gppath[2048]; + const char *canonpath; + int r; + + GP_DEBUG ("make_dir_func folder '%s' name '%s'", folder, name); + + if (strlen (folder) > 1) { + /* folder is something more than / */ + + if (strlen (folder) + 1 + strlen (name) > sizeof (gppath) - 1) { + GP_DEBUG ("make_dir_func: Arguments too long"); + return GP_ERROR_BAD_PARAMETERS; + } + + sprintf (gppath, "%s/%s", folder, name); + } else { + if (1 + strlen (name) > sizeof (gppath) - 1) { + GP_DEBUG ("make_dir_func: Arguments too long"); + return GP_ERROR_BAD_PARAMETERS; + } + + sprintf (gppath, "/%s", name); + } + + canonpath = gphoto2canonpath (camera, gppath, context); + if (canonpath == NULL) + return GP_ERROR_BAD_PARAMETERS; + + r = canon_int_directory_operations (camera, canonpath, + DIR_CREATE, context); + if (r != GP_OK) + return (r); + + return (GP_OK); +} + +static int +remove_dir_func (CameraFilesystem __unused__ *fs, const char *folder, + const char *name, void *data, + GPContext *context) +{ + Camera *camera = data; + char gppath[2048]; + const char *canonpath; + int r; + + GP_DEBUG ("remove_dir_func folder '%s' name '%s'", folder, name); + + if (strlen (folder) > 1) { + /* folder is something more than / */ + + if (strlen (folder) + 1 + strlen (name) > sizeof (gppath) - 1) { + GP_DEBUG ("make_dir_func: Arguments too long"); + return GP_ERROR_BAD_PARAMETERS; + } + + sprintf (gppath, "%s/%s", folder, name); + } else { + if (1 + strlen (name) > sizeof (gppath) - 1) { + GP_DEBUG ("make_dir_func: Arguments too long"); + return GP_ERROR_BAD_PARAMETERS; + } + + sprintf (gppath, "/%s", name); + } + + canonpath = gphoto2canonpath (camera, gppath, context); + if (canonpath == NULL) + return GP_ERROR_BAD_PARAMETERS; + + r = canon_int_directory_operations (camera, canonpath, + DIR_REMOVE, context); + if (r != GP_OK) + return (r); + + return (GP_OK); +} + +/****************************************************************************/ + +/** + * camera_init: + * @camera: the camera to initialize + * @context: a #GPContext + * + * This routine initializes the serial/USB port and also loads the + * camera settings. Right now it is only the speed that is + * saved. + * + * Returns: gphoto2 error code + * + */ +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .put_file_func = put_file_func, + .make_dir_func = make_dir_func, + .remove_dir_func = remove_dir_func, + .storage_info_func = storage_info_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + char buf[1024]; + + GP_DEBUG ("canon camera_init()"); + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->capture = camera_capture; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + camera->functions->wait_for_event = camera_wait_for_event; + + /* Set up the CameraFilesystem */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + camera->pl = calloc (1, sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return GP_ERROR_NO_MEMORY; + camera->pl->first_init = 1; + camera->pl->seq_tx = 1; + camera->pl->seq_rx = 1; + + /* default to false, i.e. list only known file types, use DCIF filenames */ + if (gp_setting_get ("canon", "list_all_files", buf) == GP_OK) + camera->pl->list_all_files = atoi(buf); + else + camera->pl->list_all_files = FALSE; +#ifdef CANON_EXPERIMENTAL_UPLOAD + camera->pl->upload_keep_filename = FALSE; +#endif + + switch (camera->port->type) { + case GP_PORT_USB: + GP_DEBUG ("GPhoto tells us that we should use a USB link."); + + return canon_usb_init (camera, context); + break; + case GP_PORT_SERIAL: + GP_DEBUG ("GPhoto tells us that we should use a RS232 link."); + + /* Figure out the speed (and set to default speed if 0) */ + gp_port_get_settings (camera->port, &settings); + camera->pl->speed = settings.serial.speed; + + if (camera->pl->speed == 0) + camera->pl->speed = 9600; + + GP_DEBUG ("Camera transmission speed : %i", camera->pl->speed); + + return canon_serial_init (camera); + break; + default: + gp_context_error (context, + _("Unsupported port type %i = 0x%x given. " + "Initialization impossible."), camera->port->type, + camera->port->type); + return GP_ERROR_NOT_SUPPORTED; + break; + } + + /* NOT REACHED */ + return GP_ERROR; +} + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/library.h new file mode 100644 index 00000000..794313c9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/library.h @@ -0,0 +1,45 @@ +/**************************************************************************** + * + * File: library.h + * + ****************************************************************************/ + +#ifndef _LIBRARY_H +#define _LIBRARY_H + +/**************************************************************************** + * + * These are defines for packet command codes collected from several + * sources. There's no guarantee, that they are correct... + * + * The same is true for the ident string offset + * + ****************************************************************************/ + +/* #define CANON_CMD_ACK 0x04 */ +/* #define CANON_CMD_PING 0x10 */ + +/* #define CANON_PCK_SOT 0x05 */ +/* #define CANON_PCK_EOT 0x04 */ +/* #define CANON_PCK_CMD 0x00 */ +/* #define CANON_PCK_IDENT 0x06 */ + + +void clear_readiness(Camera *camera); + +#define GP_MODULE "canon" + +#endif /* _LIBRARY_H */ + +/**************************************************************************** + * + * End of file: library.h + * + ****************************************************************************/ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/COPYING b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/COPYING new file mode 100644 index 00000000..96a8d615 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/COPYING @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright © 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + Appendix: How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright © 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright © 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/SerialIn b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/SerialIn new file mode 100644 index 00000000..41b04608 Binary files /dev/null and b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/SerialIn differ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu1 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu1 new file mode 100644 index 00000000..07aa6ac5 Binary files /dev/null and b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu1 differ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3 new file mode 100644 index 00000000..c3f9917d Binary files /dev/null and b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3 differ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3c new file mode 100644 index 00000000..f76dd238 Binary files /dev/null and b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3c differ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3d b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3d new file mode 100644 index 00000000..7371f47a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3d @@ -0,0 +1 @@ +B \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3e-4 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3e-4 new file mode 100644 index 00000000..45a8ca02 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3e-4 @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3f b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3f new file mode 100644 index 00000000..1db515f9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu3f @@ -0,0 +1 @@ +S \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu5 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu5 new file mode 100644 index 00000000..af92a4df Binary files /dev/null and b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu5 differ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu6 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu6 new file mode 100644 index 00000000..fd5f564e Binary files /dev/null and b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/compu6 differ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/notes.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/notes.txt new file mode 100644 index 00000000..cab6ec0a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/notes.txt @@ -0,0 +1,13 @@ + +Some notes about a driver for the PS 350/A5/... + + +- When I use the M$Win driver on my 486DX50 laptop, it gets to 115200 but + then has much problems getting even one thumbnail. It would be nice to + be able to force the speed to lower bitrates. Or: default 115200 unless + otherwise indicated (trying all possible speeds as the M$Win driver does + is quite useless IMO). + +- I don't know if gphoto already does this, but I'd like a program that + just copies all images off the camera without user intervention. Maybe + a few simple commandline options, no GUI. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/ps350chk.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/ps350chk.c new file mode 100644 index 00000000..0db6c5d3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/ps350chk.c @@ -0,0 +1,158 @@ +/* Canon PowerShot 350 Checksum Calculation + + Copyright 1999 J.A. Bezemer + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + */ + +/* This is really simple. It only took quite some time to figure out + its simplicity ;-) + + The `electronic' structure is this: + + In + --->X<----------------------------------------------------------------. + | | + +--------------------+---------------------------. | + | | | | + | v v | + `->T-->T-->T-->T-->T-X>T-->T-->T-->T-->T-->T-->T-X>T-->T-->T-->T--' + 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 + + The three X's are XOR gates; T's are 1-bit memory elements and the rest + are wires with arrows indicating the direction of the logic signals. + Bits are fed into the input (`In') LSBit first. When all bytes are + fed in, the T's hold the checksum (bit numbers 15 through 0 as + indicated). Only the 296 `real data' bytes are fed in (thus excluding + the 0xC0 header) and initialization is 0x0000. + + In other words: this is just a standard CRC-CCITT algorithm. But I + only saw that when I drew the schematic. There are quite a few + programs available that calculate this CRC, but I didn't understand + most of them, so I wrote my own version for some experiments. (And most + implementations that I've seen didn't have a clear copyright...) + + I implemented the 16-stage shift register in a `long' variable + that is shifted and XOR'd when necessary. + + Note that this is only a sample implementation that is probably very + slow. However, it should be fast enough to use it with 300-byte + packets at 115200 baud. + + This program uses hard-coded data for easy experimentation. Two sample + packets are provided. Of course, this must be made into a proper + function to be usable. + */ + +#include + +void +main (void) +{ + long datalen = 296; /* number of data bytes. Always 296. */ + + char data[] = + {0x05, 0x03, 0x04, 0x00, 0x01, +/* this is a EOT packet, count=5. The checksum is "87 3F" (LSByte-first!) */ + +/* a few 0's to fill up the packet (far too much 0's actually, but that's + no problem) */ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; + + +/* from a serial snoop: jut some arbitrary packet from a JPG download. */ +/* rename this to `data' and the original `data' to `data1' to try it. */ + char data1[] = + { + /* 0x3f1e */ /* 0xC0, */ 0x05, + /* 0x3f20 */ 0x10, 0x24, 0x81, 0x4d, 0xf6, 0xa7, 0x52, 0xbd, + /* 0x3f28 */ 0x83, 0xec, 0xe9, 0x88, 0xbc, 0xcc, 0x0f, 0x90, + /* 0x3f30 */ 0xf4, 0x99, 0x97, 0xb0, 0xf6, 0xae, 0xa3, 0x9b, + /* 0x3f38 */ 0x99, 0x98, 0xb6, 0xf7, 0xfb, 0x55, 0x8b, 0xbe, + /* 0x3f40 */ 0x23, 0x68, 0xf3, 0xc7, 0xad, 0x72, 0xe6, 0xf2, + /* 0x3f48 */ 0x1b, 0x88, 0xdf, 0x9c, 0x1e, 0xb4, 0xa3, 0x1d, + /* 0x3f50 */ 0x59, 0xac, 0xe5, 0xa9, 0xdd, 0xe8, 0x97, 0x65, + /* 0x3f58 */ 0x63, 0xd9, 0xe6, 0x7c, 0xb8, 0xad, 0x2b, 0x8b, + /* 0x3f60 */ 0xce, 0x3f, 0xa5, 0x73, 0x3d, 0xcd, 0x8c, 0xc9, + /* 0x3f68 */ 0x65, 0xbb, 0xfb, 0x3f, 0x99, 0x1d, 0xc4, 0xa0, + /* 0x3f70 */ 0x15, 0x3c, 0x29, 0xf4, 0xc7, 0xbf, 0xbd, 0x32, + /* 0x3f78 */ 0xfa, 0xd6, 0xf6, 0xde, 0x29, 0x0f, 0xf6, 0x9d, + /* 0x3f80 */ 0xe4, 0xbf, 0x7b, 0xfd, 0x58, 0x27, 0xa2, 0xb3, + /* 0x3f88 */ 0x7f, 0x7b, 0xfd, 0x9f, 0xd6, 0xb7, 0x80, 0x4a, + /* 0x3f90 */ 0x71, 0xb6, 0xa8, 0xdd, 0xd1, 0xe0, 0x31, 0xe8, + /* 0x3f98 */ 0x0c, 0xc3, 0xed, 0xb7, 0x33, 0xc2, 0x0b, 0x71, + /* 0x3fa0 */ 0xbb, 0xe6, 0xff, 0x00, 0x67, 0x83, 0xd6, 0x9d, + /* 0x3fa8 */ 0xb0, 0xde, 0x68, 0xcf, 0x25, 0xd5, 0xbd, 0xf5, + /* 0x3fb0 */ 0x85, 0xc4, 0xaa, 0x53, 0x6c, 0x9b, 0xb3, 0x1f, + /* 0x3fb8 */ 0xd7, 0x35, 0xc9, 0x3d, 0x64, 0xf5, 0x34, 0x53, + /* 0x3fc0 */ 0x56, 0x5a, 0x1c, 0xb4, 0x30, 0x6a, 0x37, 0x1c, + /* 0x3fc8 */ 0x0d, 0x52, 0xfa, 0x3c, 0x7f, 0x7f, 0x23, 0xbb, + /* 0x3fd0 */ 0x8f, 0xef, 0x7f, 0xb2, 0x7f, 0xef, 0xaa, 0x82, + /* 0x3fd8 */ 0xe1, 0x6f, 0xfc, 0xdb, 0x88, 0x5f, 0x52, 0xbb, + /* 0x3fe0 */ 0xf9, 0x37, 0x7c, 0xcc, 0x4e, 0x1b, 0x0e, 0x57, + /* 0x3fe8 */ 0xfb, 0xde, 0xd5, 0xe8, 0x9c, 0x7e, 0xd2, 0x1d, + /* 0x3ff0 */ 0x8e, 0x46, 0x6b, 0xc9, 0x3e, 0x62, 0x64, 0xce, + /* 0x3ff8 */ 0x17, 0xb9, 0xed, 0x5c, 0xaa, 0xdc, 0xb8, 0x47, + /* 0x4000 */ 0x22, 0xba, 0x60, 0x8c, 0x31, 0x0e, 0xcc, 0xf4, + /* 0x4008 */ 0x5d, 0x2e, 0xf0, 0x06, 0x45, 0xdd, 0xc7, 0x7a, + /* 0x4010 */ 0xda, 0xbb, 0xbb, 0xc4, 0x13, 0x30, 0x2c, 0xc5, + /* 0x4018 */ 0x57, 0x27, 0x00, 0xf1, 0x9e, 0x95, 0xc1, 0x34, + /* 0x4020 */ 0x74, 0xa6, 0x32, 0xea, 0xfa, 0xca, 0x4d, 0x21, + /* 0x4028 */ 0x55, 0x65, 0x5f, 0x33, 0x04, 0x00, 0x47, 0x5e, + /* 0x4030 */ 0x63, 0xcf, 0x24, 0x7b, 0x51, 0xa8, 0x6b, 0x16, + /* 0x4038 */ 0xf7, 0x31, 0x4b, 0x1d, 0xad, 0xc2, 0x33, 0x37, + /* 0x4040 */ 0x98, 0xa7, 0x2c, 0x07, 0x58, 0x9c, 0x77, 0x6e, + /* 0x4048 */ 0xc7, 0xc1}; +/* note: last 3 bytes are chksum and trailer */ + + char bits[] = + {1, 2, 4, 8, 16, 32, 64, 128}; + long chksum = 0; + long i, j; + int inputbit, lastbit, xorbit; + +/* calculate checksum */ + for (i = 0; i < datalen; i++) + for (j = 0; j <= 7; j++) + { + lastbit = chksum & 0x0001; /* remember if last bit was 1 */ + chksum >>= 1; /* shift 1 place */ + inputbit = data[i] & bits[j] ? 1 : 0; /* the In bit */ + xorbit = inputbit ^ lastbit; /* output of upper XOR gate */ + if (xorbit) /* XOR if needed */ + chksum ^= 0x8408; + } + +/* display checksum */ + printf ("Checksum: 0x%lX\n", chksum); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/ps350init b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/ps350init new file mode 100644 index 00000000..bae3b082 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/ps350init @@ -0,0 +1,50 @@ +#! /bin/sh + +# The tty to use +tty=/dev/ttyS1 + +# Make the tty completely `raw' -- even more than `stty raw' does. +# Works For Me [tm] on a Debian 2.1 system (kernel 2.0.36) +stty sane < "$tty" +stty -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok echonl -echoctl -echoke < "$tty" +stty intr undef quit undef erase undef kill undef eof undef eol undef eol2 undef start undef stop undef susp undef rprnt undef werase undef lnext undef flush undef < "$tty" + +stty 9600 < "$tty" + +# Capture incoming signals to a file +cat < "$tty" > /tmp/SerialIn & +catpid=$! + +cat compu1 > "$tty" +sleep 1s +# This lets camera answer + +cat compu3 > "$tty" +sleep 1s + +# Imitate a serial break +stty 50 < "$tty" +cat compu3c > "$tty" +sleep 1s + +stty 9600 < "$tty" + +cat compu3d > "$tty" +sleep 1s +cat compu3e-4 > "$tty" +sleep 1s + +stty 115200 < "$tty" + +cat compu3c > "$tty" +sleep 1s +cat compu3f > "$tty" +sleep 1s + +cat compu5 > "$tty" +sleep 1s + +cat compu6 > "$tty" +sleep 2s + +kill $catpid diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/ps350proto.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/ps350proto.txt new file mode 100644 index 00000000..ed1e1d97 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/ps350proto.txt @@ -0,0 +1,740 @@ + + Canon Powershot 350 / A5 Protocol Notes + + J.A. Bezemer + 5 July 1999 + + + +GENERAL +======= + +This document tries to describe the protocol that is observed in the +serial communication between the Canon Powershot 350 and A5 (Zoom) cameras +and a computer (or any other device equipped with a serial port). Only RX, +TX and GND pins are used, with speeds of up to 115200 baud. + +Please read this document at least twice before complaining you don't +understand anything at all. + +This document is likely to contain errors. USE THIS DOCUMENT AT YOUR OWN +RISK. NO WARRANTY WHATSOEVER. + +This document is copyright © 1999 J.A. Bezemer. It may be modified/ +distributed according to the terms of the GNU General Public License. More +details in the file COPYING, or on the GNU website (http://www.gnu.org). + + +At this moment, this document only describes the protocol of the PS 350. +The A5 protocol is believed to be very similar to the 350 protocol. +Please inform me if there are notable differences in the A5 protocol. + + +PACKETS +======= + +After (and also during) initialization, communication between camera and +computer is organized in 300-byte packets. All packets start with 0xC0 and +end with 0xC1. The last two bytes are a checksum, so one packet looks like +this: + + 0xC0 ---296 data bytes--- ---2 byte checksum--- 0xC1 + + +The method of checksumming is a 16-bit CRC calculation. The file +ps350chk.c contains more info and a sample implementation. + +A packet contains a `length' field which indicates the length of the +valid data in the packet. Non-valid extra bytes are sent as 0x00, but I +don't know if that specific value is required. + + +COMMUNICATION STRUCTURE +======================= + +The communication is organized as follows: + + 1. Computer sends command (always 1 packet) + 2. Camera sends reply (1 or more packets) + 3. Camera sends End-Of-Transmission packet + 4. Computer sends ACKnowledge packet + +A `command-counter' is used that is incremented with each command. +Computer and camera seem to increment the counter independently; there may +be a possibility of getting out-of-sync (this may be corrected with a +"ping" command, see below). It is an 8-bit value that warps from 255 to 0 +(assumption!). + +This `count' is transmitted in every first packet of steps 1 through 4 +(i.e. not in the "extra" packets of a "long" camera-reply), except steps 1 +and 2 of a "ping" command. + + +PACKET STRUCTURES +================= + +In the following, a large number of packets will be described. The 0xC0 +header byte will be omitted. In the diagrams, all numbers are in hex, +unless otherwise stated. Multi-byte values are transmitted LSByte-first. + + +"ping" command (sent by computer) +-------------- + + 00 10 0C 00 | 00 00 00 00 | 31 00 01 60 | 0C 00 00 00 + comm <---totlen---> + <--------------------0C bytes----------------------> + +`len' is length of this packet; `totlen' is total length of complete +packet sequence. totlen != len only in multi-packet replies from camera. + +The length starts counting from the 5th byte of the "real" data (the 0xC0 +excluded). + +`comm' is the command number (at least, that's what I call it). + +Note that there are a lot of 0x00 bytes, a checksum and 0xC1 trailer after +the bytes specified above (always 300 bytes in a packet). + +The "ping" command and reply are identical in all cases (no command count +number). + +This command is sent every few seconds when the system is otherwise idle. +If there is no reply, the camera is assumed to be disconnected or turned +off (possibly due to empty batteries). + + +"ping" reply (sent by camera) +------------ + + 00 10 30 00 | 01 00 00 00 | 09 00 03 00 | 30 00 00 00 + comm <---totlen---> + 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 + 04 00 03 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 + 00 00 00 00 + +Normally the `comm' bytes are equal in command and reply, except here. + +The 5th byte is 00 in computer packets and 01 in camera packets. + + +EOT packet (sent by camera) +---------- + + xx 03 04 00 | 01 00 00 00 + count + + +ACK packet (sent by computer) +---------- + + xx 04 04 00 | 00 00 00 00 + count + + +"unknown1" command ("get settings"???) +------------------ + + 00 10 10 00 | 00 00 00 00 | 1E 00 01 60 | 10 00 00 00 + comm <---totlen---> + xx 00 00 00 + count + +The M$Win driver sends this when count=07. + + +"unknown1" reply +---------------- + + 00 10 18 00 | 01 00 00 00 | 1E 00 02 60 | 18 00 00 00 + comm <---totlen---> + xx 00 00 00 | 00 00 00 00 | 00 00 00 00 + count + +After this, the usual EOT/ACK packets follow. + + +"get disks" command +------------------- + + 00 10 14 00 | 00 00 00 00 | 18 00 01 60 | 14 00 00 00 + comm <---totlen---> + xx 00 00 00 | 1E 00 00 00 + count + +The M$Win driver sends this when count=08. + + +"get disks" reply +----------------- + + 00 10 23 00 | 01 00 00 00 | 18 00 22 A0 | 23 00 00 00 + comm <---totlen---> + xx 00 00 00 | 00 00 00 00 | 52 45 4D 4F | 56 41 42 4C + count R E M O V A B L + 45 5F 31 3A | 2F 00 00 + E _ 1 : / + +Normally, a string is 0-terminated. I think the second terminating zero +indicates the end of a (possible) list of strings. + +After this, the usual EOT/ACK packets follow. I won't indicate this again +below. + + +"use disk" command +------------------ + + 00 10 21 00 | 00 00 00 00 | 14 00 21 A0 | 21 00 00 00 + comm <---totlen---> + xx 00 00 00 | 52 45 4D 4F | 56 41 42 4C | 45 5F 31 3A + count R E M O V A B L E _ 1 : + 00 00 00 00 | 00 + +I don't know what those extra 00's mean. + +The M$Win driver sends this when count=09. + + +"use disk" reply +---------------- + + 00 10 1C 00 | 01 00 00 00 | 14 00 02 60 | 1C 00 00 00 + comm <---totlen---> + xx 00 00 00 | 00 00 00 00 | 00 60 1E 00 | 00 xx xx 00 + count ?????? + +`?????' is different each time. + + +"name for dir" command +---------------------- + + 00 10 xx xx | 00 00 00 00 | 02 00 21 A0 | xx xx xx xx + comm <---totlen---> + xx 00 00 00 | xx xx xx... ...xx 00 + count dirname (string) termination + +E.g. "REMOVABLE_1:\DC97" has len=0x22 + + +"name for dir" reply for existing directory +-------------------- + + 00 10 18 00 | 01 00 00 00 | 02 00 02 60 | 18 00 00 00 + comm <---totlen---> + xx 00 00 00 | 00 00 00 00 | xx xx xx xx + count <---sector---> + +I call the returned number `sector' because I don't know what it is ;-) +This `sector' is used in further communications. + + +"name for dir" reply for non-existing (maybe also empty??) directory +-------------------- + + 00 10 18 00 | 01 00 00 00 | 02 00 02 60 | 18 00 00 00 + comm <---totlen---> + xx 00 00 00 | 02 00 00 20 | 02 00 00 20 + count | + | +This 0x02 may indicate that something is wrong. But I only have one +occurrence, so I'm not sure. + + +"forget dir" command +-------------------- + + 00 10 14 00 | 00 00 00 00 | 03 00 01 60 | 14 00 00 00 + comm <---totlen---> + xx 00 00 00 | xx xx xx xx + count <---sector---> + +This command is used after a "name for dir" to check for dir existence and +also after a full dir download. + +sector is the number that was sent in the "name for dir" reply. In case of +a non-existent dir, sector is here 00 00 00 00. + + +"forget dir" reply +------------------ + + 00 10 14 00 | 01 00 00 00 | 03 00 02 60 | 14 00 00 00 + comm <---totlen---> + xx 00 00 00 | 00 00 00 00 + count + + +"prepare for dir download" command +---------------------------------- + + 00 10 14 00 | 00 00 00 00 | 04 00 01 60 | 14 00 00 00 + comm <---totlen---> + xx 00 00 00 | xx xx xx xx + count <---sector---> + +This command is sent to indicate that a dir download will follow. + +(I speak of "download" because I see the camera as "information server".) + + +"prepare for dir download" reply +-------------------------------- + + 00 10 14 00 | 01 00 00 00 | 04 00 02 60 | 14 00 00 00 + comm <---totlen---> + xx 00 00 00 | 00 00 00 00 + count + + +"dir download" command +---------------------- + + 00 10 1C 00 | 00 00 00 00 | 2A 00 81 A0 | 1C 00 00 00 + comm <---totlen---> + xx 00 00 00 | xx xx xx xx | E8 03 00 00 | 00 00 00 00 + count <---sector---> + +I don't know what the E8 03 means, but it's there always. + + +"dir download" reply +-------------------- +This is possibly a multi-packet sequence. The first (or only) packet: + + 00 10 xx xx | 01 00 00 00 | 2A 00 42 A0 | xx xx xx xx + num comm <---totlen---> + xx 00 00 00 | 00 00 00 00 | xx xx xx xx | xx... ...xx + count <#files> <----dir data-------- - - + +All next packets (if any): + + xx 10 xx xx | xx xx... ...xx + num <----dir data---- - - + +(The following applies to all "sequenced packets":) + +num is the serial number of the packet in the sequence. The first packet +has num=00, second 01, etc. + +len is the number of valid data bytes in every individual packet, _always_ +starting with the fifth byte (0xC0 header excluded). totlen is the sum of +all len's in the sequence. + +Note that there's no need for len to be 300-8=292=0x0124. Notably +directory entries are not split across packets, so there's always some +empty space at the end of directory-download packets. + +The MSBit of len is 1 in all not-last packets, and 0 only in the last +packet. So the first packet may have a len=12 81 (LSByte first)=0x8112. + +The EOT packet following a multi-packet sequence has non-zero values for +bytes 5,6,7,8. I don't know what they mean. But the ACK packet is still +`normal', so there shouldn't be a problem. + +(This is only for "dir download":) + +#files is the number of files in the directory; I don't know if that +includes erased files. See below for more on the directory entries. + +The dir data is not terminated (unlike 0-terminated strings). + +After a dir download, a "forget dir" command follows. + + +"name for file" command +----------------------- + + 00 10 xx xx | 00 00 00 00 | 01 00 41 A0 | xx xx xx xx + comm <---totlen---> + xx 00 00 00 | 01 00 00 00 | xx xx... ...xx 00 + count filename (string) termination + +E.g. "REMOVABLE_1:\DC97\CTG_0001\THM_0073.JPG" has len=0x3C + + +"name for file" reply for existing file +--------------------- + + 00 10 18 00 | 01 00 00 00 | 01 00 02 60 | 18 00 00 00 + comm <---totlen---> + xx 00 00 00 | 00 00 00 00 | xx xx xx xx + count <---sector---> + +I don't know what is returned for a non-existing file. + + +"prepare for file download" command +----------------------------------- + + 00 10 14 00 | 00 00 00 00 | 17 00 01 60 | 14 00 00 00 + comm <---totlen---> + xx 00 00 00 | xx xx xx xx + count <---sector---> + +sector as returned in the "name for file" reply. + + +"prepare for file download" reply +--------------------------------- + + 00 10 18 00 | 01 00 00 00 | 17 00 02 60 | 18 00 00 00 + comm <---totlen---> + xx 00 00 00 | 00 00 00 00 | xx xx xx xx + count <--file len--> + +`file len' is the length of the file that is to be downloaded. + + +"file download" command +----------------------- + + 00 10 18 00 | 00 00 00 00 | 12 00 01 60 | 18 00 00 00 + comm <---totlen---> + xx 00 00 00 | xx xx xx xx | xx xx xx xx + count <---sector---> <-len2Bdownl-> + +`len2Bdownl' is the length of the piece of the file that should be sent to +the computer in the reply packet-sequence. The M$Win driver limits this to +0x245C (which (if I'm correct) nicely fills up 0x20 packets). If the reply +packet-sequence has been received, another identical "file download" +command is sent, and transmission will continue. The last "file download" +command should have a len2Bdownl that exactly matches the length of the +remainder of the file. + +Note that the "start point for download" is not specified; the camera +remembers this. + + +"file download" reply +--------------------- +This is possibly a multi-packet sequence. The first (or only) packet: + + 00 10 xx xx | 01 00 00 00 | 12 00 C2 A0 | xx xx xx xx + num comm <---totlen---> + xx 00 00 00 | 00 00 00 00 | xx xx xx xx | xx xx xx xx + count <---sector---> <---offset---> + xx xx xx xx | xx 00 00 00 | xx xx... ...xx + <-len2Bdownl-> last <----file data--- - - + +All next packets have same structure as those of "dir download" reply +(see above). Everything mentioned there for "sequenced packets" applies +here as well. + +This packet format is repeated for every "resumed download". + +`offset' is the number of bytes of the file that have been transmitted +before this sequence (so starts at 0 at the first sequence). + +`last' is 0x01 only in the last sequence, and 0x00 in non-last sequences. + +Like dirs, the file data is not terminated (unlike 0-terminated strings). + +After a completed file download, a "forget file" command follows. + + +"forget file" command +--------------------- + + 00 10 14 00 | 00 00 00 00 | 11 00 01 60 | 14 00 00 00 + comm <---totlen---> + xx 00 00 00 | xx xx xx xx + count <---sector---> + + +"forget file" reply +------------------- + + 00 10 14 00 | 01 00 00 00 | 11 00 02 60 | 14 00 00 00 + comm <---totlen---> + xx 00 00 00 | 00 00 00 00 + count + + +"turn off" command +------------------ + + 00 01 00 00 + + +This tells the camera to turn itself off. This seems the only way of +getting out of the computer-controlled mode. The M$Win driver issues this +command upon exitting it. + + +"turn off" reply +---------------- + + 00 10 10 00 | 01 00 00 00 | 39 00 02 60 | 10 00 00 00 + comm <---totlen---> + 00 00 00 00 +(count) + +count seems to be 0x00 in all cases. + +After this, a regular EOT packet (with the correct `count' number) is +sent, after which the camera turns itself off. The computer does not send +an ACK packet. + + +Other packets +------------- + +There are also packets for file/all-files deletion, getting battery status +and getting/setting owner's name, but I don't have information on these at +this moment. + + +INITIALIZATION +============== + +Below is the initialization procedure that the M$Win driver uses. Most +numbers are in hex. + +Connection check: + +1. Speed = 9600 baud +2. Computer sends 00 53 55 55 55 55 +3. Camera returns "identicifation" reply packet: + + 00 06 64 00 | 62 00 44 43 | 49 44 5C 00 | 00 00 01 00 + + 00 01 00 01 | EA 04 01 01 | 00 00 00 00 | 4D 6F 64 65 +count? M o d e + 6C 4E 61 6D | 65 3D 50 6F | 77 65 72 53 | 68 6F 74 20 + l N a m e = P o w e r S h o t + 33 35 30 20 | 20 2C 46 69 | 72 6D 77 61 | 72 65 20 76 + 3 5 0 , F i r m w a r e v + 65 72 73 69 | 6F 6E 3D 30 | 31 3A 30 32 | 2C 4D 61 6E + e r s i o n = 0 1 : 0 2 , M a n + 75 66 61 63 | 74 75 72 65 | 72 3D 43 61 | 6E 6F 6E 20 + u f a c t u r e r = C a n o n + 49 6E 63 2E | 20 20 20 00 + I n c . + +4. Camera sends regular EOT packet with count=00 +5. Computer sends ACK + +Try possible speeds: + +6. Computer sends serial break signal; a 00 at 50 baud also works +7. Camera answers with serial break +8. Speed = 9600 +9. Computer sends 42 00 (42 0x = speed change) +10. Speed = 9600 +11. Computer sends 00 53 +12. Computer sends "ping" packet +13. Camera returns "ping" reply +14. Camera sends EOT packet with count=01 +15. Computer sends ACK packet with count=01 + +16. Computer sends serial break signal +17. Camera answers with serial break +18. Speed = 9600 +19. Computer sends 42 01 +20. Speed = 19200 +21. Computer sends 00 53 +22. Computer sends "ping" packet +23. Camera returns "ping" reply +24. Camera sends EOT packet with count=02 +25. Computer sends ACK packet with count=02 + +26. Computer sends serial break signal +27. Camera answers with serial break +28. Speed = 9600 +29. Computer sends 42 02 +30. Speed = 38400 +31. Computer sends 00 53 +32. Computer sends "ping" packet +33. Camera returns "ping" reply +34. Camera sends EOT packet with count=03 +35. Computer sends ACK packet with count=03 + +36. Computer sends serial break signal +37. Camera answers with serial break +38. Speed = 9600 +39. Computer sends 42 03 +40. Speed = 57600 +41. Computer sends 00 53 +42. Computer sends "ping" packet +43. Camera returns "ping" reply +44. Camera sends EOT packet with count=04 +45. Computer sends ACK packet with count=04 + +46. Computer sends serial break signal +47. Camera answers with serial break +48. Speed = 9600 +49. Computer sends 42 04 +50. Speed = 115200 +51. Computer sends 00 53 +52. Computer sends "ping" packet +53. Camera returns "ping" reply +54. Camera sends EOT packet with count=05 +55. Computer sends ACK packet with count=05 + +Resume communication at chosen speed: + +56. Computer sends serial break signal +57. Camera answers with serial break +58. Speed = 9600 +59. Computer sends 42 04 +60. Speed = 115200 +61. Computer sends 00 53 +62. Computer sends "ping" packet +63. Camera returns "ping" reply +64. Camera sends EOT packet with count=06 +65. Computer sends ACK packet with count=06 + +After this, communication is as described in the next section. + +It's not needed to try all speeds. The following sequence has been tried +succesfully: 1, 2, 3, 4, 5, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65 (but +then 64 and 65 with count=01). + + +MORE COMMUNICATION +================== + +After initialization, the following communication takes place: + +66. Computer sends "unknown1" command (see above), camera returns reply, + EOT, ACK (count=07) +67. Computer sends "get disks" command, camera returns reply, EOT, ACK + (count=08) +68. Computer sends "use disk" command, camera returns reply, EOT, ACK + (count=09) +69. Computer sends "name for dir" command to check if "REMOVABLE_1:\DC97" + is present, camera returns reply (`exists'), EOT, ACK (count=0A) +70. Computer sends "forget dir" command, camera returns reply, EOT, ACK + (count=0B) +71. Computer sends "name for dir" command to check if + "REMOVABLE_1:\PWRSHOT" is present, camera returns reply (`does not + exist'), EOT, ACK (count=0C) +72. Computer sends "forget dir" command, camera returns reply, EOT, ACK + (count=0D) +73. Computer sends "name for dir" command for download of + "REMOVABLE_1:\DC97", camera returns reply, EOT, ACK (count=0E) +74. Computer sends "prepare for dir download" command, camera returns + reply, EOT, ACK (count=0F) +75. Computer sends "dir download" command, camera returns reply, EOT, ACK + (count=10) + The dir info returns + . + .. + CTG_0000 + CTG_0001 + and possibly more CTG's. These CTG's are `catalogs'; there may only be + a limited number of files in a CTG subdir, and a new subdir is added + when needed. +76. Computer sends "forget dir" command, camera returns reply, EOT, ACK + (count=11) + +Now the computer gets each CTG_* directory with "name for dir", "prepare +for dir download", "dir download" and "forget dir" commands. Dir names are +"REMOVABLE_1:\DC97\CTG_0000" etc. + +In the CTG directories, there are two files for each picture: a thumbnail +file (e.g. THM_0021.JPG) and a `real picture' file (e.g. AUT_0021.JPG). + +The M$Win driver first gets up to 9 thumbnail files (more don't fit in the +driver's window), using commands "name for file", "prepare for file +download", "file download" and "forget file". Sample file name: +"REMOVABLE_1:\DC97\CTG_0001\THM_0073.JPG" + +More thumbnails are loaded when a scroll button is pressed. During `idle +time', "ping" packets are sent every second. + +When a picture is selected, the `Aquire' button initiates a communication +just like a thumbnail download, only there may be repeated "file +download" commands. And in the file name it's "AUT" instead of "THM". + +When the driver is exitted, a "turn off" command is sent. + + +DIRECTORY ENTRIES +================= + +The directory information (as sent over the serial link) has 21=0x15 bytes +of information per file. Example entry (numbers in hex): + + 20 2A 08 00 00 AA 28 3B 37 54 48 4D 5F 30 30 37 33 2E 4A 50 47 + type <--size---> <--time---> T H M _ 0 0 7 3 . J P G + <---------------name--------------> + +type is 0x20 for a regular file, 0x10 for a directory. + +size is the file size in bytes, also returned in the "prepare for file +download" reply. + +time is the standard UNIX time_t-format time of file/dir creation. + +name seems to be left-aligned; e.g. a ".." directory entry has in the name +field ".." followed by ten 00-bytes. + +Erased files have 0xE5 as first byte of the file name. + +Directories have a size 00 00 00 00. + +On the Compact Flash memory card, there is a normal FAT12 filesystem. The +CF card behaves like a hard disk (has a partition table), of which +the first (and only) partition spans the entire disk=memory. The PCMCIA +kernel modules recognize it as an `ide' card. + + +JPG FILE +======== + +The header of all JPG files has some interesting fields. Example: + + + FF D8 FF E0 | 00 10 4A 46 | 49 46 00 01 | 02 01 00 B4 + J F I F + 00 B4 00 00 | FF E0 00 A0 | 49 49 1A 00 | 00 00 48 45 + H E + 41 50 4A 50 | 47 4D 02 00 | 01 00 00 00 | 00 00 00 00 + A P J P G M + 00 00 44 F8 | 4F 37 00 00 | 00 00 00 00 | 00 00 43 61 + <-----time------> C a + 6E 6F 6E 20 | 49 6E 63 2E | 20 20 20 00 | 50 6F 77 65 + n o n I n c . P o w e + 72 53 68 6F | 74 20 33 35 | 30 20 20 00 | 46 69 72 6D + r S h o t 3 5 0 F i r m + 77 61 72 65 | 20 76 65 72 | 73 69 6F 6E | 20 31 2E 30 + w a r e v e r s i o n 1 . 0 + 32 00 01 00 | 0B 08 16 00 | 00 00 00 00 | 00 00 16 00 + 2 + 00 00 02 00 | 0A 08 1E 00 | 00 00 00 00 | 00 00 04 30 + + +The time field is exactly the same as in the directory. + +Except for the time field, this piece of the header (and possibly more) +seems to be identical for all JPG files (THM_* and AUT_*). + +THM and AUT files are numbered, starting from {THM,AUT}_0000.JPG when the +camera is new (and possibly when the batteries have been out a few days) +and incremented for each picture. Incrementing is normally not interrupted +by a CF card swap (i.e. if you place a new card after AUT_0168, then +AUT_0169 will be the first picture on the new card). However, I have seen +one occurrence of the same file name on two cards. The "right" method of +ordering the files is by using the `time' field that is returned in the +directory info. (Note that the time of AUT and THM files may be a few +seconds apart.) + + +For the PS 350, the THM files are 80 x 60 and AUT 640 x 480 pixels. There +are three quality modes for the AUT files (recording-time choice), "Fine", +"Normal" and "Economy", which correspond to JPEG quality factors of about +90%, 75% and 50%. THM files are about 2.5 kB and AUT files about 150 kB, +70 kB and 32 kB depending on the quality mode. + + +CONTACT INFORMATION +=================== + +I'm reachable preferably as . If that +shouldn't work, try or else . +In the latter case, please indicate that you're trying to send a message +to me (and not to my brother ;-) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/renamejpg.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/renamejpg.c new file mode 100644 index 00000000..34c15bb7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/ps350/renamejpg.c @@ -0,0 +1,74 @@ +/* RenameJPG Copyright 1999 J.A. Bezemer GPL'd */ + +#include +#include +#include +#include + +void main (int argc, char **argv) +{ + FILE *jpgfile; + time_t time; + struct tm *temptm; + unsigned char buffer[4]; + char timestring[200]; + char tempstring[300]; + char newname[300]; + int i; + struct stat statbuf; + struct stat statbuf2; + int newnamecounter; + + if (argc < 2) + { + fprintf (stderr, "Usage: renamejpg [filename(s)]\n\n"); + exit(1); + } + + for (i=1; i %s\n", argv[i], statbuf.st_size, + timestring, newname); + + fclose(jpgfile); + + rename(argv[i], newname); + } +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/serial.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/serial.c new file mode 100644 index 00000000..b175a540 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/serial.c @@ -0,0 +1,1567 @@ +/**************************************************************************** + * + * File: serial.c + * + * Serial communication layer. + * + ****************************************************************************/ + +/**************************************************************************** + * + * include files + * + ****************************************************************************/ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include +#include +#include +#include + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "library.h" +#include "canon.h" +#include "serial.h" +#include "util.h" +#include "crc.h" + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + + +#ifdef __GNUC__ +# define __unused__ __attribute__((unused)) +#else +# define __unused__ +#endif + + +/** + * serial_flush_input + * @gdev: serial port to use + * + * Dummy function. + * + */ +static void +serial_flush_input (GPPort __unused__ *gdev) +{ +} + +/** + * serial_flush_output + * @gdev: serial port to use + * + * Dummy function. + * + */ +static void +serial_flush_output (GPPort __unused__ *gdev) +{ +} + +/** + * canon_serial_change_speed + * @gdev: serial port to use + * @speed: the new speed + * + * Changes the speed of the communication. + * + * Returns: 1 on success. + * 0 on any error. + * + */ + +static int +canon_serial_change_speed (GPPort *gdev, int speed) +{ + gp_port_settings settings; + + /* set speed */ + gp_port_get_settings (gdev, &settings); + settings.serial.speed = speed; + gp_port_set_settings (gdev, settings); + + usleep (70000); + + return 1; +} + + +/** + * canon_serial_get_cts + * @gdev: serial port to use + * + * Gets the status of the CTS (Clear To Send) line on the serial port. + * + * CTS is "1" when the camera is ON, and "0" when it is OFF. + * + * Returns: 1 on CTS high. + * 0 on CTS low. + * + */ +#if 0 +static int +canon_serial_get_cts (GPPort *gdev) +{ + GPLevel level; + + gp_port_get_pin (gdev, PIN_CTS, &level); + return (level); +} +#endif + +/** + * canon_serial_init + * @camera: Camera object to initialize + * + * Initializes the given serial device by setting speed, parity, etc. + * + * Returns: %GP_OK + * + */ + +int +canon_serial_init (Camera *camera) +{ + GPPortSettings settings; + + GP_DEBUG ("Initializing the (serial) camera."); + + /* Get the current settings */ + gp_port_get_settings (camera->port, &settings); + + /* Adjust the current settings */ + settings.serial.speed = 9600; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + + /* Set the new settings */ + gp_port_set_settings (camera->port, settings); + + return GP_OK; +} + +/** + * canon_serial_send + * @camera: Camera object to work with + * @buf: the raw data buffer to send + * @len: the length of the buffer + * @sleep: time in usec to wait between characters + * + * Send the given buffer with given length over the serial line. + * + * Returns: 0 on success, -1 on error. + * + */ +static int +canon_serial_send (Camera *camera, const unsigned char *buf, int len, int sleep) +{ + int i; + + /* the A50 does not like to get too much data in a row at 115200 + * The S10 and S20 do not have this problem */ + if (sleep > 0 && camera->pl->slow_send == 1) { + for (i = 0; i < len; i++) { + gp_port_write (camera->port, (char *) buf, 1); + buf++; + usleep (sleep); + } + } else { + gp_port_write (camera->port, (char *) buf, len); + } + + return 0; +} + + +/** + * serial_set_timeout + * @gdev: serial port to use + * @to: timeout in milliseconds + * + * Sets the timeout, in miliseconds. + * + */ +static void +serial_set_timeout (GPPort *gdev, int to) +{ + gp_port_set_timeout (gdev, to); +} + +/** + * canon_serial_get_byte + * @gdev: serial port to use + * + * Gets the next byte from the serial line. + * Actually the function reads chunks of data and keeps them in a cache. + * Only one byte per call will be returned. + * + * Returns: the byte on success, -1 on error. + * + */ +static int +canon_serial_get_byte (GPPort *gdev) +{ + static unsigned char cache[512]; + static unsigned char *cachep = cache; + static unsigned char *cachee = cache; + int recv; + + /* if still data in cache, get it */ + if (cachep < cachee) { + return (int) *cachep++; + } + + recv = gp_port_read (gdev, (char *)cache, 1); + if (recv < 0) /* An error occurred */ + return -1; + + cachep = cache; + cachee = cache + recv; + + if (recv) { + return (int) *cachep++; + } + + return -1; +} + +/* ------------------------- Frame-level processing ------------------------- */ + +/** + * canon_serial_send_frame + * @camera: Camera object to work with + * @pkt: Data to send to camera + * @len: Length of packet + * + * Sends a frame of data to camera + * + * Returns: 1 if canon_serial_send() succeeds, 0 if it fails + * + */ +static int +canon_serial_send_frame (Camera *camera, const unsigned char *pkt, int len) +{ + static unsigned char buffer[2100]; + + /* worst case: two maximum-sized packets (~1020 bytes, full of data + that needs to be escaped */ + unsigned char *p; + + p = buffer; + *p++ = CANON_FBEG; + while (len--) { + if (p < buffer || + (unsigned int)(p - buffer) >= sizeof (buffer) - 1) { + GP_DEBUG ("FATAL ERROR: send buffer overflow"); + return -1; + } + if (*pkt != CANON_FBEG && *pkt != CANON_FEND && *pkt != CANON_ESC) + *p++ = *pkt++; + else { + *p++ = CANON_ESC; + *p++ = *pkt++ ^ CANON_XOR; + } + } + *p++ = CANON_FEND; + + return !canon_serial_send (camera, buffer, p - buffer, USLEEP2); +} + +/** + * canon_serial_recv_frame + * @camera: Camera object to work with + * @len: to receive the length of the buffer + * + * Receive a frame from the camera + * + * Returns: a buffer containing a frame from the camera, or NULL on error. + * On success, @len will contain the length of the buffer. + * + */ +static unsigned char * +canon_serial_recv_frame (Camera *camera, int *len) +{ + static unsigned char buffer[5000]; + + /* more than enough :-) (allow for a few run-together packets) */ + unsigned char *p = buffer; + int c; + + while ((c = canon_serial_get_byte (camera->port)) != CANON_FBEG) { + if (c == -1) + return NULL; + } + while ((c = canon_serial_get_byte (camera->port)) != CANON_FEND) { + if (c < 0) + return NULL; + if (c == CANON_ESC) + c = canon_serial_get_byte (camera->port) ^ CANON_XOR; + if (p < buffer || + (unsigned int)(p - buffer) >= sizeof (buffer)) { + GP_DEBUG ("FATAL ERROR: receive buffer overflow"); + return NULL; + } + *p++ = c; + } + + GP_LOG_DATA ((char *)buffer, p - buffer, "RECV (without CANON_FBEG and CANON_FEND bytes)"); + + if (len) + *len = p - buffer; + return buffer; +} + +/* ------------------------ Packet-level processing ------------------------- */ + +/** + * canon_serial_send_packet + * @camera: Camera object to work with + * @type: + * @seq: + * @pkt: data to send to camera + * @len: length of data + * + * frames a packet (generates CRC, packs with sequence number and + * length) and sends it to the camera through the serial port using + * canon_serial_send_frame(). + * + * Returns: status from canon_serial_send_frame() + * + */ +static int +canon_serial_send_packet (Camera *camera, unsigned char type, unsigned char seq, + unsigned char *pkt, int len) +{ + unsigned char *hdr = pkt - PKT_HDR_LEN; + int crc; + + hdr[PKT_TYPE] = type; + hdr[PKT_SEQ] = seq; + hdr[PKT_LEN_LSB] = len & 0xff; + hdr[PKT_LEN_MSB] = len >> 8; + + if (type == PKT_NACK) { + hdr[PKT_TYPE] = PKT_ACK; + hdr[PKT_TYPE + 1] = '\xff'; /* PKTACK_NACK; */ + } + + if (type == PKT_UPLOAD_EOT) { + hdr[PKT_TYPE] = PKT_EOT; + hdr[PKT_TYPE + 1] = 0x3; + len = 2; + } + + if (type == PKT_EOT || type == PKT_ACK || type == PKT_NACK) + len = 2; /* @@@ hack */ + crc = canon_psa50_gen_crc (hdr, len + PKT_HDR_LEN); + if (crc == -1) + return GP_ERROR; + pkt[len] = crc & 0xff; + pkt[len + 1] = crc >> 8; + + return canon_serial_send_frame (camera, hdr, len + PKT_HDR_LEN + 2); +} + +/** + * canon_serial_recv_packet + * @camera: Camera object to work with + * @type: Type of packet + * @seq: Sequence number of packet + * @len: length of data received + * + * Receives a packet from the serial port using + * canon_serial_send_frame(), decodes frame information (type, + * sequence number, and length), and returns it stripped of frame + * information. + * + * Returns: packet data (or NULL if failure). Type in @type, sequence + * number in @seq, and length in @len. + * + */ +static unsigned char * +canon_serial_recv_packet (Camera *camera, unsigned char *type, unsigned char *seq, int *len) +{ + unsigned char *pkt; + unsigned short crc; + int raw_length, length = 0; + + pkt = canon_serial_recv_frame (camera, &raw_length); + if (!pkt) + return NULL; + if (raw_length < PKT_HDR_LEN) { + GP_DEBUG ("ERROR: packet truncated"); + return NULL; + } + if (pkt[PKT_TYPE] == PKT_MSG) { + length = pkt[PKT_LEN_LSB] | (pkt[PKT_LEN_MSB] << 8); + if (length + PKT_HDR_LEN > raw_length - 2) { + GP_DEBUG ("ERROR: invalid length"); + /*fprintf(stderr,"Sending NACK"); + canon_serial_send_packet(PKT_NACK,camera->pl->seq_rx++,camera->pl->psa50_eot+PKT_HDR_LEN,0); */ + camera->pl->receive_error = ERROR_RECEIVED; + return NULL; + } + } + crc = pkt[raw_length - 2] | (pkt[raw_length - 1] << 8); + if (!canon_psa50_chk_crc (pkt, raw_length - 2, crc)) { + GP_DEBUG ("ERROR: CRC error"); + return NULL; + } + *type = pkt[PKT_TYPE]; + if (seq) + *seq = pkt[PKT_SEQ]; + if (len) + *len = length; + if (*type == PKT_ACK || *type == PKT_EOT) + return pkt; + return pkt + PKT_HDR_LEN; +} + +/* ----------------------- Message-level processing ------------------------ */ + + +/** + * canon_serial_wait_for_ack + * @camera: Camera object to work with + * + * Waits for an "ACK" from the camera. + * + * Returns: + * 1 : ACK received + * 0 : communication error (no reply received for example) + * -1 : NACK received. + */ +static int +canon_serial_wait_for_ack (Camera *camera) +{ + unsigned char *pkt; + unsigned char type, seq, old_seq; + int len; + + while (1) { + pkt = canon_serial_recv_packet (camera, &type, &seq, &len); + if (!pkt) + return 0; + if (seq == camera->pl->seq_tx && type == PKT_ACK) { + if (pkt[2] == PKTACK_NACK) { + GP_DEBUG ("ERROR: NACK received"); + return -1; + } + camera->pl->seq_tx++; + return 1; + } + old_seq = '\0'; + if (type == PKT_EOT) { + old_seq = pkt[0]; + if (camera->pl->receive_error == NOERROR) { + GP_DEBUG ("Old EOT received, sending corresponding ACK"); + if (!canon_serial_send_packet + (camera, PKT_ACK, old_seq, + camera->pl->psa50_eot + PKT_HDR_LEN, 0)) + return 0; + pkt = canon_serial_recv_packet (camera, &type, &seq, &len); + if (!pkt) + return 0; + if (seq == old_seq && type == PKT_ACK) { + if (pkt[2] == PKTACK_NACK) { + GP_DEBUG ("Old EOT acknowledged"); + return -1; + } + return 1; + } + } + } + /* error already aknowledged, we skip the following ones */ + if (camera->pl->receive_error == ERROR_RECEIVED) { + if (!canon_serial_send_packet + (camera, PKT_NACK, old_seq, camera->pl->psa50_eot + PKT_HDR_LEN, + 0)) + return 0; + return 1; + } + + GP_DEBUG ("ERROR: ACK format or sequence error, retrying"); + GP_DEBUG ("Sending NACK"); + canon_serial_send_packet (camera, PKT_NACK, camera->pl->seq_rx++, + camera->pl->psa50_eot + PKT_HDR_LEN, 0); + camera->pl->receive_error = ERROR_RECEIVED; + +/* + * just keep on trying. protocol seems to retransmit EOTs, so we may get + * some old EOTs when we're actually expecting ACKs. + */ + } +} + +/** + * canon_serial_send_msg + * @camera: Camera object to work with + * @mtype: message type. + * @dir: direction. + * @ap: message payload (list of arguments, see 'man va_start' + * + * Sends a message to the camera. + * + * Returns: + * -1 on error + * 0 if canon_serial_send_packet() fails + * 1 on good ACK received + */ +static int +canon_serial_send_msg (Camera *camera, unsigned char mtype, unsigned char dir, va_list * ap) +{ + unsigned char buffer[MAX_PKT_PAYLOAD + 2]; /* allow space for CRC */ + unsigned char upload_buffer[MAX_PKT_PAYLOAD + 2]; + unsigned char *pkt, *pkt2, *pos; + int total, good_ack, try; + + memset (buffer, 0, PKT_HDR_LEN + MSG_HDR_LEN); + + pkt = buffer + PKT_HDR_LEN; + pkt[MSG_02] = 2; + pkt[MSG_MTYPE] = mtype; + pkt[MSG_DIR] = dir; + + pos = pkt + MSG_HDR_LEN; + total = 0; + + while (1) { + const unsigned char *str; + int len; + + str = va_arg (*ap, unsigned char *); + + if (!str) + break; + len = va_arg (*ap, int); + + if (pos + len - pkt > MAX_MSG_SIZE && camera->pl->uploading != 1) { + GP_DEBUG ("FATAL ERROR: message too big (%i)", (int)(pos + len - pkt)); + return -1; + } + memcpy (pos, str, len); + pos += len; + } + + total = pos - pkt; + + pkt[MSG_LEN_LSB] = total & 0xff; + pkt[MSG_LEN_MSB] = total >> 8; + + if (camera->pl->uploading == 1) { + memset (upload_buffer, 0, PKT_HDR_LEN + MSG_HDR_LEN); + pkt2 = upload_buffer; + memcpy (pkt2, pkt + UPLOAD_DATA_BLOCK, total - UPLOAD_DATA_BLOCK); + for (try = 0; try < MAX_TRIES; try++) { + canon_serial_send_packet (camera, PKT_MSG, 0, pkt, UPLOAD_DATA_BLOCK); + canon_serial_send_packet (camera, PKT_MSG, 0x1, pkt2, + total - UPLOAD_DATA_BLOCK); + if (!canon_serial_send_packet + (camera, PKT_UPLOAD_EOT, camera->pl->seq_tx, + camera->pl->psa50_eot + PKT_HDR_LEN, 1)) + return 0; + if (!canon_serial_send_packet + (camera, PKT_UPLOAD_EOT, camera->pl->seq_tx, + camera->pl->psa50_eot + PKT_HDR_LEN, 1)) + return 0; + + good_ack = canon_serial_wait_for_ack (camera); + if (good_ack == 1) + return good_ack; + } + return -1; + } else { + pkt[MSG_LEN_LSB] = total & 0xff; + pkt[MSG_LEN_MSB] = total >> 8; + for (try = 1; try < MAX_TRIES; try++) { + if (!canon_serial_send_packet (camera, PKT_MSG, 0, pkt, total)) + return 0; + if (!canon_serial_send_packet + (camera, PKT_EOT, camera->pl->seq_tx, + camera->pl->psa50_eot + PKT_HDR_LEN, 1)) + return 0; + good_ack = canon_serial_wait_for_ack (camera); + if (good_ack == -1) { + GP_DEBUG ("NACK received, retrying command"); + } else if (good_ack == 1) { + return good_ack; + } else { + GP_DEBUG ("No ACK received, retrying command"); + if (try == 2) { + /* is the camera still there? */ + if (!canon_serial_send_packet + (camera, PKT_EOT, camera->pl->seq_tx, + camera->pl->psa50_eot + PKT_HDR_LEN, 0)) + return 0; + good_ack = canon_serial_wait_for_ack (camera); + if (good_ack == 0) { + camera->pl->receive_error = FATAL_ERROR; + GP_DEBUG ("ERROR: FATAL ERROR"); + clear_readiness (camera); + return -1; + } + } + } + } + return -1; + } +} + +/** + * canon_serial_recv_msg + * @camera: Camera object to work with + * @mtype: message type. + * @dir: direction. + * @total: payload length (set by this function). + * @context: context for error reporting + * + * Receives a message from the camera. + * + * See the "Protocol" file for an explanation of the various + * elements needed to handle a message. + * + * Returns: + * char* pointer to the message payload; NULL on failure. + * + */ +static unsigned char * +canon_serial_recv_msg (Camera *camera, unsigned char mtype, unsigned char dir, unsigned int *total, + GPContext *context) +{ + static unsigned char *msg = NULL; + static int msg_size = 512; /* initial allocation/2 */ + unsigned char *frag; + unsigned char type, seq; + int len, length = 0, msg_pos = 0; + + while (1) { + frag = canon_serial_recv_packet (camera, &type, NULL, &len); + if (!frag) + return NULL; + if (type == PKT_MSG) + break; + /* uploading is special */ +/* if (type == PKT_ACK && mtype == 0x3 && dir == 0x21) break; */ + if (type == PKT_EOT) { + GP_DEBUG ("Old EOT received sending corresponding ACK"); + canon_serial_send_packet (camera, PKT_ACK, frag[0], + camera->pl->psa50_eot + PKT_HDR_LEN, 0); + } + GP_DEBUG ("ERROR: protocol error, retrying"); + } + /* we keep the fragment only if there was no error */ + if (camera->pl->receive_error == NOERROR) { + length = frag[MSG_LEN_LSB] | (frag[MSG_LEN_MSB] << 8); + /* while uploading we expect 2 ACKs and a message 0x3 0x21 + * not always in the same order */ +/* + if (type == PKT_ACK && mtype == 0x3 && dir == 0x21) { + GP_DEBUG("ignoring ACK received while waiting for MSG"); + return frag; + } +*/ + if (len < MSG_HDR_LEN || frag[MSG_02] != 2) { + GP_DEBUG ("ERROR: message format error"); + return NULL; + } + + if (frag[MSG_MTYPE] != mtype || frag[MSG_DIR] != dir) { + if (frag[MSG_MTYPE] == '\x01' && frag[MSG_DIR] == '\x00' + && memcmp (frag + 12, "\x30\x00\x00\x30", 4)) { + gp_context_error (context, + _("Battery exhausted, camera off.")); + camera->pl->receive_error = ERROR_LOWBATT; + } else { + gp_context_error (context, _("ERROR: unexpected message")); + } + return NULL; + } + frag += MSG_HDR_LEN; + len -= MSG_HDR_LEN; + } + while (1) { + if (camera->pl->receive_error == NOERROR) { + if (msg_pos + len > length) { + gp_context_error (context, _("ERROR: message overrun")); + return NULL; + } + if (msg_pos + len > msg_size || !msg) { + msg_size *= 2; + msg = realloc (msg, msg_size); + if (!msg) + return NULL; + } + memcpy (msg + msg_pos, frag, len); + msg_pos += len; + } + frag = canon_serial_recv_packet (camera, &type, &seq, &len); + if (!frag) + return NULL; + if (type == PKT_EOT) { + /* in case of error we don't want to stop as the camera will send + the 1st packet of the sequence again */ + if (camera->pl->receive_error == ERROR_RECEIVED) { + camera->pl->seq_rx = seq; + canon_serial_send_packet (camera, PKT_NACK, camera->pl->seq_rx, + camera->pl->psa50_eot + PKT_HDR_LEN, + 0); + camera->pl->receive_error = ERROR_ADDRESSED; + } else { + if (seq == camera->pl->seq_rx) + break; + gp_context_error (context, _("ERROR: out of sequence.")); + return NULL; + } + } + if (type != PKT_MSG && camera->pl->receive_error == NOERROR) { + gp_context_error (context, _("ERROR: unexpected packet type.")); + return NULL; + } + if (type == PKT_EOT && camera->pl->receive_error == ERROR_RECEIVED) { + camera->pl->receive_error = ERROR_ADDRESSED; + } + if (type == PKT_MSG && camera->pl->receive_error == ERROR_ADDRESSED) { + msg_pos = 0; + length = frag[MSG_LEN_LSB] | (frag[MSG_LEN_MSB] << 8); + if (len < MSG_HDR_LEN || frag[MSG_02] != 2) { + gp_context_error (context, _("ERROR: message format error.")); + return NULL; + } + + if (frag[MSG_MTYPE] != mtype || frag[MSG_DIR] != dir) { + if (frag[MSG_MTYPE] == '\x01' && frag[MSG_DIR] == '\x00' + && memcmp (frag + 12, "\x30\x00\x00\x30", 4)) { + gp_context_error (context, + _("Battery exhausted, camera off.")); + camera->pl->receive_error = ERROR_LOWBATT; + } else { + gp_context_error (context, + _("ERROR: unexpected message2.")); + } + return NULL; + } + frag += MSG_HDR_LEN; + len -= MSG_HDR_LEN; + camera->pl->receive_error = NOERROR; + } + } + if (camera->pl->receive_error == ERROR_ADDRESSED) { + camera->pl->receive_error = NOERROR; + } + if (camera->pl->receive_error == NOERROR) { + /*we want to be sure the camera U N D E R S T A N D S our packets */ + if (camera->pl->uploading == 1 && camera->pl->md->model == CANON_CLASS_1) + camera->pl->slow_send = 1; + if (!canon_serial_send_packet + (camera, PKT_ACK, camera->pl->seq_rx++, + camera->pl->psa50_eot + PKT_HDR_LEN, 0)) { + if (camera->pl->uploading == 1 + && camera->pl->md->model == CANON_CLASS_1) + camera->pl->slow_send = 0; + return NULL; + } + if (camera->pl->uploading == 1 && camera->pl->md->model == CANON_CLASS_1) + camera->pl->slow_send = 0; + if (total) + *total = msg_pos; + return msg; + } + + return NULL; +} + +/** + * canon_serial_dialogue: + * @camera: camera with which to communicate + * @context: context for error reporting + * @mtype : type + * @dir : direction + * @len : length of the received payload + * @Varargs: The rest of the arguments will be put together to + * fill up the payload of the request message. + * + * Higher level function: sends a message and waits for a + * reply from the camera. + * + * Payload: each argument after "len" goes by 2: the variable itself, + * and the next argument has to be its length. You also have to finish + * the list by a "NULL". + * + * Example: To send a string called "name" : + * canon_serial_dialogue(0x05,0x12,&len,name,strlen(name)+1,NULL); + * + * Returns: buffer received from canon_serial_recv_msg(), NULL if failure + * + */ +unsigned char * +canon_serial_dialogue (Camera *camera, GPContext *context, unsigned char mtype, + unsigned char dir, unsigned int *len, ...) +{ + va_list ap; + int okay, try; + unsigned char *good_ack; + + for (try = 1; try < MAX_TRIES; try++) { + va_start (ap, len); + okay = canon_serial_send_msg (camera, mtype, dir, &ap); + va_end (ap); + if (!okay) + return NULL; + /* while uploading we receive 2 ACKs and 1 confirmation message + * The first ACK has already been received if we are here */ + if (camera->pl->uploading == 1) { + camera->pl->seq_tx--; + good_ack = + canon_serial_recv_msg (camera, mtype, dir ^ DIR_REVERSE, len, + context); + if (!good_ack) + return NULL; + if (good_ack[0] == camera->pl->seq_tx && good_ack[1] == 0x5) { + GP_DEBUG ("ACK received waiting for the confirmation message"); + good_ack = + canon_serial_recv_msg (camera, mtype, + dir ^ DIR_REVERSE, len, + context); + } else { + okay = canon_serial_wait_for_ack (camera); + if (okay == 1) + return good_ack; + } + } else + good_ack = + canon_serial_recv_msg (camera, mtype, dir ^ DIR_REVERSE, len, + context); + + if (good_ack) + return good_ack; + if (camera->pl->receive_error == NOERROR) { + GP_DEBUG ("Resending message..."); + camera->pl->seq_tx--; + } + if (camera->pl->receive_error == FATAL_ERROR) + break; + } + return NULL; +} + +/* ----------------------- Command-level processing ------------------------ */ + + +/** + * canon_serial_end: + * @camera: the camera to switch off + * + * Switches the @camera off + * + * Returns: %GP_OK + * + */ +#if 0 +static int +canon_serial_end (Camera *camera) +{ + canon_serial_send (camera, (unsigned char *)"\xC0\x00\x02\x55\x2C\xC1", 6, USLEEP2); + canon_serial_send (camera, (unsigned char *)"\xC0\x00\x04\x01\x00\x00\x00\x24\xC6\xC1", 8, USLEEP2); + return GP_OK; +} +#endif + +/** + * canon_serial_off: + * @camera: the camera to switch off + * + * Switches the #camera off, and resets the serial driver to 9600 bauds, + * in order to be ready to switch the camera back on again if wanted. + * Should better be named psa50_serial_off + * + * Returns: %GP_OK + * + */ +int +canon_serial_off (Camera *camera) +{ + canon_serial_send (camera, (unsigned char *)"\xC0\x00\x02\x55\x2C\xC1", 6, USLEEP2); + canon_serial_send (camera, (unsigned char *)"\xC0\x00\x04\x01\x00\x00\x00\x24\xC6\xC1", 8, USLEEP2); + canon_serial_change_speed (camera->port, 9600); + return GP_OK; +} + + + +/** + * canon_serial_error_type + * @camera: Camera object to work with + * + * logs a debug message corresponding + * to the error encountered + * + */ +void +canon_serial_error_type (Camera *camera) +{ + switch (camera->pl->receive_error) { + case ERROR_LOWBATT: + GP_DEBUG ("ERROR: no battery left, Bailing out!"); + break; + case FATAL_ERROR: + GP_DEBUG ("ERROR: camera connection lost!"); + break; + default: + GP_DEBUG ("ERROR: malformed message"); + break; + } +} + +/** + * canon_serial_put_file + * @camera: Camera object to work with + * @file: CameraFile object to upload + * @destname: name file should have on camera + * @destpath: pathname for directory to put file + * @context: context for error reporting + * + * Uploads file to @camera via serial port + * + * Returns: gphoto2 error code + * + */ +int +canon_serial_put_file (Camera *camera, CameraFile *file, const char *name, const char *destname, const char *destpath, + GPContext *context) +{ + unsigned char *msg; + char buf[4096]; + int offset = 0; + char offset2[4]; + int block_len; + char block_len2[4]; + unsigned int sent = 0; + int i, j = 0; + unsigned int len; + unsigned long int size; + const char *data; + unsigned int id; + + camera->pl->uploading = 1; + + gp_file_get_data_and_size (file, &data, &size); + + id = gp_context_progress_start (context, size, _("Uploading file...")); + while (sent < size) { + + if (size < DATA_BLOCK) + block_len = size; + else if ((size - sent < DATA_BLOCK)) + block_len = size - sent; + else + block_len = DATA_BLOCK; + + offset = sent; + + for (i = 0; i < 4; i++) { + offset2[i] = (offset >> (8 * i)) & 0xff; + block_len2[i] = (block_len >> (8 * i)) & 0xff; + } + + for (i = 0; i < DATA_BLOCK; i++) { + buf[i] = data[j]; + j++; + } + + msg = canon_serial_dialogue (camera, context, 0x3, 0x11, &len, + "\x02\x00\x00\x00", 4, offset2, 4, block_len2, 4, + destpath, strlen (destpath), destname, + strlen (destname) + 1, buf, block_len, NULL); + if (!msg) { + camera->pl->uploading = 0; + return GP_ERROR; + } + sent += block_len; + gp_context_progress_update (context, id, sent); + } + gp_context_progress_stop (context, id); + camera->pl->uploading = 0; + return GP_OK; +} + +/** + * canon_serial_get_file: + * @camera: camera to lock keys on + * @name: name of file to fetch + * @length: to receive length of image data + * @context: context for error reporting + * + * Get a file from a USB_connected Canon camera. + * + * Returns: buffer containing file data (or NULL on failure); length + * in @length. + * + */ +unsigned char * +canon_serial_get_file (Camera *camera, const char *name, unsigned int *length, GPContext *context) +{ + unsigned char *file = NULL; + unsigned char *msg; + unsigned char name_len; + unsigned int total = 0, expect = 0, size, id; + unsigned int len; + + if (camera->pl->receive_error == FATAL_ERROR) { + GP_DEBUG ("ERROR: can't continue a fatal error condition detected"); + return NULL; + } + name_len = strlen (name) + 1; + msg = canon_serial_dialogue (camera, context, 0x1, 0x11, &len, "\x00\x00\x00\x00", 5, + &name_len, 1, "\x00", 2, name, strlen (name) + 1, NULL); + if (!msg) { + canon_serial_error_type (camera); + return NULL; + } + id = gp_context_progress_start (context, le32atoh (msg + 4), _("Getting file...")); + while (msg) { + if (len < 20 || le32atoh (msg)) { + break; + } + if (!file) { + total = le32atoh (msg + 4); + + if (total > camera->pl->md->max_picture_size) { + GP_DEBUG ("ERROR: %d is too big", total); + break; + } + file = malloc (total); + if (!file) { + perror ("malloc"); + break; + } + if (length) + *length = total; + } + size = le32atoh (msg + 12); + if (le32atoh (msg + 8) != expect || expect + size > total || size > len - 20) { + GP_DEBUG ("ERROR: doesn't fit"); + break; + } + memcpy (file + expect, msg + 20, size); + expect += size; + gp_context_progress_update (context, id, expect); + if ((expect == total) != le32atoh (msg + 16)) { + GP_DEBUG ("ERROR: end mark != end of data"); + break; + } + if (expect == total) { + gp_context_progress_stop (context, id); + return file; + } + msg = canon_serial_recv_msg (camera, 0x1, 0x21, &len, context); + } + free (file); + file = NULL; + return NULL; +} + +/** + * canon_serial_get_dirents: + * @camera: camera to initialize + * @dirent_data: to receive directory data + * @dirents_length: to receive length of @dirent_data + * @path: pathname of directory to list + * @context: context for error reporting + * + * Lists a directory. + * + * Returns: gphoto2 error code + * + */ +int +canon_serial_get_dirents (Camera *camera, unsigned char **dirent_data, + unsigned int *dirents_length, const char *path, GPContext *context) +{ + unsigned char *p, *temp_ch, *data = NULL; + unsigned int mallocd_bytes, total_size; + + *dirent_data = NULL; + + /* fetch all directory entries, the first one is a little special */ + p = canon_serial_dialogue (camera, context, 0xb, 0x11, dirents_length, "", 1, path, + strlen (path) + 1, "\x00", 2, NULL); + if (p == NULL) { + gp_context_error (context, + _("canon_serial_get_dirents: " + "canon_serial_dialogue failed to fetch directory entries")); + return GP_ERROR; + } + + /* In the RS232 implementation, we should never get less than 5 bytes */ + if (*dirents_length < 5) { + gp_context_error (context, + _("canon_serial_get_dirents: " + "Initial dirent packet too short (only %i bytes)"), + *dirents_length); + return GP_ERROR; + } + + GP_LOG_DATA ((char *)p, *dirents_length, + "canon_serial_get_dirents: " + "dirent packet received from canon_serial_dialogue:"); + + /* the first five bytes is only for the RS232 implementation + * of this command, we do not need to copy them so therefore + * we don't need to malloc() them either + */ + mallocd_bytes = MAX (1024, *dirents_length - 5); + data = malloc (mallocd_bytes); + if (!data) { + gp_context_error (context, + _("canon_serial_get_dirents: " + "Could not allocate %i bytes of memory"), mallocd_bytes); + return GP_ERROR_NO_MEMORY; + } + + /* the first five bytes is only for the RS232 implementation + * of this command, do not copy them + */ + memcpy (data, p + 5, (*dirents_length - 5)); + total_size = *dirents_length; + + /* p[4] indicates this is not the last packet, + * read additional packets until there are no more + * directory entries to read + */ + while (!p[4]) { + GP_DEBUG ("p[4] is %i", (int) p[4]); + p = canon_serial_recv_msg (camera, 0xb, 0x21, dirents_length, context); + if (p == NULL) { + gp_context_error (context, + _("canon_serial_get_dirents: " + "Failed to read another directory entry")); + free (data); + data = NULL; + return GP_ERROR; + } + + GP_LOG_DATA ((char *)p, *dirents_length, + "canon_serial_get_dirents: " + "dirent packet received from canon_serial_recv_msg:"); + + /* the first five bytes is only for the RS232 implementation, + * don't count them when checking dirent size + */ + if (*dirents_length - 5 < CANON_MINIMUM_DIRENT_SIZE) { + gp_context_error (context, + _("canon_serial_get_dirents: " + "Truncated directory entry received")); + free (data); + data = NULL; + return GP_ERROR; + } + + /* check if we need to allocate some more memory, + * the first five bytes is only for the RS232 + * implementation of this command, don't need to + * malloc for them. note that we ensured earlier in this + * function that *dirents_length >= 5. + */ + if (total_size + (unsigned int)(*dirents_length - 5) > mallocd_bytes) { + /* we allocate 1024 bytes chunks instead + * of the exact number of bytes needed. + * this is OK since we will free this + * before returning from canon_int_list_directory + * (our caller). + */ + mallocd_bytes += MAX (1024, *dirents_length); + + /* check if we are reading unrealistic ammounts + * of directory entries so that we don't loop + * forever. 1024 * 1024 is picked out of the blue. + */ + if (mallocd_bytes > 1024 * 1024) { + gp_context_error (context, + _("canon_serial_get_dirents: " + "Too many dirents, we must be looping.")); + free (data); + data = NULL; + return GP_ERROR; + } + + temp_ch = realloc (data, mallocd_bytes); + if (!temp_ch) { + gp_context_error (context, + _("canon_serial_get_dirents: " + "Could not resize dirent buffer " + "to %i bytes"), mallocd_bytes); + free (data); + data = NULL; + return GP_ERROR; + } + data = temp_ch; + } + + /* the first five bytes is only for the RS232 + * implementation of this command, don't copy them. + */ + memcpy (data + total_size, p + 5, (*dirents_length - 5)); + total_size += (*dirents_length - 5); + } + GP_DEBUG ("OK - this was last dirent"); + + *dirent_data = data; + return GP_OK; +} + +/** + * canon_serial_ready: + * @camera: camera to get ready + * @context: context for error reporting + * + * serial part of canon_int_ready + * + * Returns: gphoto2 error code + * + */ +int +canon_serial_ready (Camera *camera, GPContext *context) +{ + unsigned char type, seq; + int good_ack, speed, try, len, i; + unsigned char *pkt; + int res; + char cam_id_str[2000]; + unsigned int id; + + GP_DEBUG ("canon_int_ready()"); + + serial_set_timeout (camera->port, 900); /* 1 second is the delay for awakening the camera */ + serial_flush_input (camera->port); + serial_flush_output (camera->port); + + camera->pl->receive_error = NOERROR; + + /* First of all, we must check if the camera is already on */ + /* cts=canon_serial_get_cts(); + GP_DEBUG("cts : %i",cts); + if (cts==32) { CTS == 32 when the camera is connected. */ + if (camera->pl->first_init == 0 && camera->pl->cached_ready == 1) { + /* First case, the serial speed of the camera is the same as + * ours, so let's try to send a ping packet : */ + if (!canon_serial_send_packet + (camera, PKT_EOT, camera->pl->seq_tx, camera->pl->psa50_eot + PKT_HDR_LEN, + 0)) + return GP_ERROR; + good_ack = canon_serial_wait_for_ack (camera); + GP_DEBUG ("good_ack = %i", good_ack); + if (good_ack == 0) { + /* no answer from the camera, let's try + * at the speed saved in the settings... */ + speed = camera->pl->speed; + if (speed != 9600) { + if (!canon_serial_change_speed (camera->port, speed)) { + gp_context_error (context, _("Error changing speed.")); + } + } + if (!canon_serial_send_packet + (camera, PKT_EOT, camera->pl->seq_tx, + camera->pl->psa50_eot + PKT_HDR_LEN, 0)) + return GP_ERROR; + good_ack = canon_serial_wait_for_ack (camera); + if (good_ack == 0) { + gp_context_status (context, _("Resetting protocol...")); + canon_serial_off (camera); + sleep (3); /* The camera takes a while to switch off */ + return canon_int_ready (camera, context); + } + if (good_ack == -1) { + GP_DEBUG ("Received a NACK!"); + return GP_ERROR; + } + gp_context_status (context, _("Camera OK.")); + return 1; + } + if (good_ack == -1) { + GP_DEBUG ("Received a NACK !\n"); + return GP_ERROR; + } + GP_DEBUG ("Camera replied to ping, proceed.\n"); + return GP_OK; + } + + /* Camera was off... */ + + gp_context_status (context, _("Looking for camera ...")); + if (camera->pl->receive_error == FATAL_ERROR) { + /* we try to recover from an error + we go back to 9600bps */ + if (!canon_serial_change_speed (camera->port, 9600)) { + GP_DEBUG ("ERROR: Error changing speed"); + return GP_ERROR; + } + camera->pl->receive_error = NOERROR; + } + id = gp_context_progress_start (context, MAX_TRIES, _("Trying to contact camera...")); + for (try = 0; try < MAX_TRIES; try++) { + if (canon_serial_send (camera, (unsigned char *)"\x55\x55\x55\x55\x55\x55\x55\x55", 8, USLEEP1) + < 0) { + gp_context_error (context, _("Communication error 1")); + return GP_ERROR; + } + pkt = canon_serial_recv_frame (camera, &len); + gp_context_progress_update (context, id, try + 1); + if (pkt) + break; + } + gp_context_progress_stop (context, id); + if (try == MAX_TRIES) { + gp_context_error (context, _("No response from camera")); + return GP_ERROR; + } + if (!pkt) { + gp_context_error (context, _("No response from camera")); + return GP_ERROR; + } + if (len < 40 && strncmp ((char *)pkt + 26, "Canon", 5)) { + gp_context_error (context, _("Unrecognized response")); + return GP_ERROR; + } + strncpy (cam_id_str, (char *)pkt + 26, sizeof (cam_id_str) - 1); + + GP_DEBUG ("cam_id_str : '%s'", cam_id_str); + + camera->pl->first_init = 0; + + /* Compare what the camera identified itself as with our list + * of known models + * + * We iterate over the model list testing id_str, even if we + * don't actually use id_str, but serial_id_string. + */ + for (i = 0; models[i].id_str != NULL; i++) { + if ((models[i].serial_id_string != NULL) && + !strcmp (models[i].serial_id_string, cam_id_str)) { + GP_DEBUG ("canon_serial_ready: Serial ID string matches '%s'", + models[i].serial_id_string); + gp_context_status (context, _("Detected a \"%s\" aka \"%s\""), + models[i].id_str, models[i].serial_id_string); + camera->pl->md = (struct canonCamModelData *) &models[i]; + break; + } + } + + if (models[i].id_str == NULL) { + gp_context_error (context, _("Unknown model \"%s\""), cam_id_str); + return GP_ERROR_MODEL_NOT_FOUND; + } + + /* take care of some model specific things */ + switch (camera->pl->md->model) { + case CANON_CLASS_3: + case CANON_CLASS_1: + if (camera->pl->speed > 57600) + camera->pl->slow_send = 1; + break; + default: + break; + } + + /* 5 seconds delay should be enough for big flash cards. By + * experience, one or two seconds is too little, as a large flash + * card needs more access time. */ + serial_set_timeout (camera->port, 5000); + (void) canon_serial_recv_packet (camera, &type, &seq, NULL); + if (type != PKT_EOT || seq) { + gp_context_error (context, _("Bad EOT")); + return GP_ERROR; + } + camera->pl->seq_tx = 0; + camera->pl->seq_rx = 1; + if (!canon_serial_send_frame (camera, (unsigned char *)"\x00\x05\x00\x00\x00\x00\xdb\xd1", 8)) { + gp_context_error (context, _("Communication error 2")); + return GP_ERROR; + } + res = 0; + switch (camera->pl->speed) { + case 9600: + res = canon_serial_send_frame (camera, SPEED_9600, 12); + break; + case 19200: + res = canon_serial_send_frame (camera, SPEED_19200, 12); + break; + case 38400: + res = canon_serial_send_frame (camera, SPEED_38400, 12); + break; + case 57600: + res = canon_serial_send_frame (camera, SPEED_57600, 12); + break; + case 115200: + res = canon_serial_send_frame (camera, SPEED_115200, 12); + break; + } + + if (!res || !canon_serial_send_frame (camera, (unsigned char *)"\x00\x04\x01\x00\x00\x00\x24\xc6", 8)) { + gp_context_error (context, _("Communication error 3")); + return GP_ERROR; + } + speed = camera->pl->speed; + gp_context_status (context, _("Changing speed... wait...")); + if (!canon_serial_wait_for_ack (camera)) + return GP_ERROR; + if (speed != 9600) { + if (!canon_serial_change_speed (camera->port, speed)) { + gp_context_status (context, _("Error changing speed")); + } else { + GP_DEBUG ("speed changed"); + } + + } + for (try = 1; try < MAX_TRIES; try++) { + canon_serial_send_packet (camera, PKT_EOT, camera->pl->seq_tx, + camera->pl->psa50_eot + PKT_HDR_LEN, 0); + if (!canon_serial_wait_for_ack (camera)) { + gp_context_status (context, + _("Error waiting for ACK during initialization, retrying")); + } else + break; + } + + if (try == MAX_TRIES) { + gp_context_error (context, _("Error waiting ACK during initialization")); + return GP_ERROR; + } + + gp_context_status (context, _("Connected to camera")); + /* Now is a good time to ask the camera for its owner + * name (and Model String as well) */ + canon_int_identify_camera (camera, context); + canon_int_get_time (camera, NULL, context); + + return GP_OK; +} + +/** + * canon_serial_get_thumbnail: + * @camera: camera to work on + * @name: file name (complete canon path) of file to get thumbnail for + * @data: pointer to data pointer + * @length: pointer to data length + * @context: context for error reporting + * + * This is just the serial specific part extracted from the older + * canon_get_thumbnail() routine. + * + * Returns: gphoto2 error code + * + */ +int +canon_serial_get_thumbnail (Camera *camera, const char *name, unsigned char **data, + unsigned int *length, GPContext *context) +{ + unsigned int expect = 0, size, payload_length, total_file_size; + unsigned int total = 0, id; + unsigned char *msg; + + CON_CHECK_PARAM_NULL (length); + CON_CHECK_PARAM_NULL (data); + *length = 0; + *data = NULL; + + if (camera->pl->receive_error == FATAL_ERROR) { + gp_context_error (context, + _("ERROR: a fatal error condition was detected, can't continue ")); + return GP_ERROR; + } + + payload_length = strlen (name) + 1; + msg = canon_serial_dialogue (camera, context, 0x1, 0x11, &total_file_size, + "\x01\x00\x00\x00\x00", 5, &payload_length, 1, "\x00", 2, + name, strlen (name) + 1, NULL); + if (!msg) { + canon_serial_error_type (camera); + return GP_ERROR; + } + + + total = le32atoh (msg + 4); + if (total > 2000000) { /* 2 MB thumbnails ? unlikely ... */ + gp_context_error (context, _("ERROR: %d is too big"), total); + return GP_ERROR; + } + *data = malloc (total); + if (!*data) { + perror ("malloc"); + return GP_ERROR; + } + *length = total; + + id = gp_context_progress_start (context, total, _("Getting thumbnail...")); + while (msg) { + if (total_file_size < 20 || le32atoh (msg)) { + return GP_ERROR; + } + size = le32atoh (msg + 12); + if (le32atoh (msg + 8) != expect || expect + size > total + || size > total_file_size - 20) { + GP_DEBUG ("ERROR: doesn't fit"); + return GP_ERROR; + } + memcpy (*data + expect, msg + 20, size); + expect += size; + gp_context_progress_update (context, id, expect); + if ((expect == total) != le32atoh (msg + 16)) { + GP_DEBUG ("ERROR: end mark != end of data"); + return GP_ERROR; + } + if (expect == total) { + /* We finished receiving the file. Parse the header and + return just the thumbnail */ + break; + } + msg = canon_serial_recv_msg (camera, 0x1, 0x21, &total_file_size, context); + } + gp_context_progress_stop (context, id); + return GP_OK; +} + +/**************************************************************************** + * + * End of file: serial.c + * + ****************************************************************************/ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/serial.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/serial.h new file mode 100644 index 00000000..50b99330 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/serial.h @@ -0,0 +1,328 @@ +/**************************************************************************** + * + * File: serial.h + * + ****************************************************************************/ + +#ifndef _SERIAL_H +#define _SERIAL_H + +/**************************************************************************** + * + * prototypes + * + ****************************************************************************/ + +int canon_serial_init(Camera *camera); + +void canon_serial_error_type(Camera *camera); + +unsigned char * canon_serial_dialogue (Camera *camera, GPContext *context, unsigned char mtype, unsigned char dir, unsigned int *len, ...); + +unsigned char *canon_serial_get_file (Camera *camera, const char *name, unsigned int *length, GPContext *context); +int canon_serial_put_file (Camera *camera, CameraFile *file, const char *filename, const char *destname, const char *destpath, GPContext *context); +int canon_serial_get_dirents (Camera *camera, unsigned char **dirent_data, unsigned int *dirents_length, const char *path, GPContext *context); + + +int canon_serial_ready (Camera *camera, GPContext *context); +int canon_serial_get_thumbnail (Camera *camera, const char *name, unsigned char **data, unsigned int *length, GPContext *context); + +/** + * MAX_TRIES + * + * Maximum number of retries for a serial send operation. + * + */ +#define MAX_TRIES 10 + +/** + * USLEEP1 + * + * Number of microseconds to wait between characters when trying to + * contact the camera by sending "U" characters. Currently zero + * (i.e. no pause between characters). + * + */ +#define USLEEP1 0 + +/** + * USLEEP2 + * + * Number of microseconds to wait between characters under all other + * circumstances. Currently 1. + * + */ +#define USLEEP2 1 + +/** + * HDR_FIXED_LEN + * + * Length of fixed part of header for uploading a file. + * + */ +#define HDR_FIXED_LEN 30 + +/** + * DATA_BLOCK + * + * Maximum length of a data block to upload through the serial port. + * + */ +#define DATA_BLOCK 1536 + +/* Defines for error handling */ +/* #define NOERROR 0 */ +/* #define ERROR_RECEIVED 1 */ +/* #define ERROR_ADDRESSED 2 */ +/* #define FATAL_ERROR 3 */ +/* #define ERROR_LOWBATT 4 */ + +/** + * canonSerialErrorCode: + * @NOERROR: No error + * @ERROR_RECEIVED: Packet length doesn't match received packet + * @ERROR_ADDRESSED: Problem receiving EOT + * @FATAL_ERROR: Fatal error + * @ERROR_LOWBATT: Battery is low + * + * Used within serial code to signal various error conditions. + * + */ +#undef NOERROR /* happens in windows. is also 0 */ +typedef enum { + NOERROR = 0, + ERROR_RECEIVED = 1, + ERROR_ADDRESSED = 2, + FATAL_ERROR = 3, + ERROR_LOWBATT = 4 +} canonSerialErrorCode; + +/* ------------------------- Frame-level processing ------------------------- */ + +/* #define CANON_FBEG 0xc0 */ +/* #define CANON_FEND 0xc1 */ +/* #define CANON_ESC 0x7e */ +/* #define CANON_XOR 0x20 */ +/** + * canonSerialFramingByte: + * @CANON_FBEG: Beginning of frame + * @CANON_FEND: End of frame + * @CANON_ESC: XOR next byte with 0x20 + * @CANON_XOR: value to use with %CANON_ESC + * + * Enumeration of all "special" byte codes on the frame level. + * + */ +typedef enum { + CANON_FBEG = 0xc0, /* Beginning of frame */ + CANON_FEND = 0xc1, /* End of frame */ + CANON_ESC = 0x7e, /* XOR next byte with 0x20 */ + CANON_XOR = 0x20 +} canonSerialFramingByte; +/* ------------------------ Packet-level processing ------------------------- */ + +/** + * MAX_PKT_PAYLOAD + * + * Maximum size of a packet payload; used to allocate buffers. + * + */ +#define MAX_PKT_PAYLOAD 65535 + +/* #define MAX_PKT_SIZE (MAX_PKT_PAYLOAD+4) */ + +/* #define PKT_HDR_LEN 4 */ + +/* #define PKT_SEQ 0 */ +/* #define PKT_TYPE 1 */ +/* #define PKT_LEN_LSB 2 */ +/* #define PKT_LEN_MSB 3 */ +/** + * canonPacketOffset: + * @PKT_SEQ: Offset in packet to message sequence number + * @PKT_TYPE: Offset in packet to type code + * @PKT_LEN_LSB: Offset in packet to least-significant byte of packet length. + * @PKT_LEN_MSB: Offset in packet to most-significant byte of packet length. + * @PKT_HDR_LEN: Length of complete header. + * + * Offsets to bytes in a serial packet header. + * + */ +typedef enum { + PKT_SEQ = 0, + PKT_TYPE = 1, + PKT_LEN_LSB = 2, + PKT_LEN_MSB = 3, + PKT_HDR_LEN = 4 +} canonPacketOffset; + +/* #define PKT_MSG 0 */ +/* #define PKT_EOT 4 */ +/* #define PKT_ACK 5 */ + +/** + * canonPacketType: + * @PKT_MSG: Message fragment + * @PKT_SPD: Speed message from computer sent once, early in the + * initialization for the computer to ask the camera to + * switch to a higher speed. + * @PKT_EOT: EOT + * @PKT_ACK: ACK (or NAK) + * + * Packet type for byte 2 of packet header. + * Unfortunately, these are mixed with %canonPacketThirdByte + * codes to tell %canon_serial_send_packet what to do. + * + */ +typedef enum { + PKT_MSG = 0, + PKT_SPD = 3, + PKT_EOT = 4, + PKT_ACK = 5 +} canonPacketType; + + + +/* #define PKT_NACK 255 */ +/* #define PKTACK_NACK 0x01 */ +/* #define PKT_UPLOAD_EOT 3 */ + +/** + * canonPacketThirdByte: + * @PKTACK_NACK: This ACK is a NACK (not acknowledged) message + * @PKT_UPLOAD_EOT: This EOT is to end an upload + * @PKT_NACK: this ACK is a request to retransmit + * + * Codes to go in the third byte of an ACK or EOT message. + * Unfortunately, these are mixed with %canonPacketType + * codes to tell %canon_serial_send_packet what to do. + * + */ +typedef enum { + PKTACK_NACK = 0x01, + PKT_UPLOAD_EOT = 3, + PKT_NACK = 255 +} canonPacketThirdByte; + +/* ----------------------- Message-level processing ------------------------ */ + + +/** + * MAX_MSG_SIZE + * + * Maximum size of a message to fit within a packet. + * + */ +#define MAX_MSG_SIZE (MAX_PKT_PAYLOAD-12) + +/* #define FRAG_NUM 0 */ +/* #define FRAG_LEN_LSB 2 */ +/* #define FRAG_LEN_MSB 3 */ + +/* #define MSG_HDR_LEN 16 */ +/* #define MSG_02 0 */ +/* #define MSG_MTYPE 4 */ +/* #define MSG_DIR 7 */ +/* #define MSG_LEN_LSB 8 */ +/* #define MSG_LEN_MSB 9 */ + +/* #define MSG_FFFB 12 */ + +/** + * canonSerialMsgHeader: + * @MSG_02: offset to bytes "00 02" in header + * @MSG_MTYPE: offset to message type byte in header + * @MSG_DIR : offset to message direction byte in header: 0x11 or 0x12 + * is output to camera, 0x21 or 0x22 is response from camera + * @MSG_LEN_LSB: offset to least-significant byte of 16-but message length + * @MSG_LEN_MSB: offset to most-significant byte of 16-but message length + * @MSG_HDR_LEN: length of entire message header + * + * + */ +typedef enum { + MSG_02 = 0, + MSG_MTYPE = 4, + MSG_DIR = 7, + MSG_LEN_LSB = 8, + MSG_LEN_MSB = 9, +/* MSG_FFFB = 12,*/ + MSG_HDR_LEN = 16 +} canonSerialMsgHeader; + + +/** + * DIR_REVERSE + * + * Value to XOR with direction byte to reverse direction. + * Converts 0x21 -> 0x11, 0x11 -> 0x21. + * + */ +#define DIR_REVERSE 0x30 + +/** + * UPLOAD_DATA_BLOCK + * + * Size of blocks to upload a file. + */ +#define UPLOAD_DATA_BLOCK 900 + +/* ----------------------- Command-level processing ------------------------ */ + + +/** + * SPEED_9600 + * + * String to send to set camera speed to 9600 bits per second. + * + */ +#define SPEED_9600 (unsigned char *)"\x00\x03\x02\x02\x01\x10\x00\x00\x00\x00\xc0\x39" + +/** + * SPEED_19200 + * + * String to send to set camera speed to 19200 bits per second. + * + */ +#define SPEED_19200 (unsigned char *)"\x00\x03\x08\x02\x01\x10\x00\x00\x00\x00\x13\x1f" + +/** + * SPEED_38400 + * + * String to send to set camera speed to 38400 bits per second. + * + */ +#define SPEED_38400 (unsigned char *)"\x00\x03\x20\x02\x01\x10\x00\x00\x00\x00\x5f\x84" + +/** + * SPEED_57600 + * + * String to send to set camera speed to 57600 bits per second. + * + */ +#define SPEED_57600 (unsigned char *)"\x00\x03\x40\x02\x01\x10\x00\x00\x00\x00\x5e\x57" + +/** + * SPEED_115200 + * + * String to send to set camera speed to 115200 bits per second. + * + */ +#define SPEED_115200 (unsigned char *)"\x00\x03\x80\x02\x01\x10\x00\x00\x00\x00\x4d\xf9" + + + +#endif /* _SERIAL_H */ + +/**************************************************************************** + * + * End of file: serial.h + * + ****************************************************************************/ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/urb-interpret b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/urb-interpret new file mode 100644 index 00000000..a7411d5c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/urb-interpret @@ -0,0 +1,631 @@ +#!/usr/bin/perl +# +# $Id$ +# +# This script is only of interest for developers who want to analyze +# USB snoopy dumps of canon camera communication made with USB snoopy 1.8 +# (http://benoit.papillault.free.fr/usbsnoop/). This script will *not* +# work with output of earlier versions (e.g. 0.13 aka 1.3). +# +# NOTE: All "interesting" URB's generate a line ending with "***", so the +# command "urb-interpret foo.LOG | grep '\*\*\*$'" will generate a summary +# of the log. +# + +use strict; +use warnings; + +my %canon_cmd = ( + "0x01 0x11 0x202" => "Get picture/thumbnail", + "0x01 0x12 0x201" => "Identify camera", + "0x03 0x12 0x201" => "Get time", + "0x03 0x11 0x403" => "Upload data block", + "0x04 0x12 0x201" => "Set time", + "0x05 0x11 0x201" => "Make directory", + "0x05 0x12 0x201" => "Change owner (old) or get owner (new)", + "0x06 0x11 0x201" => "Remove directory", + "0x06 0x12 0x201" => "Change owner (new)", + "0x09 0x11 0x201" => "Disk info request", + "0x0a 0x11 0x202" => "Flash device ID", + "0x0a 0x11 0x201" => "Delete file (new)", + "0x0a 0x12 0x201" => "Power supply status", + "0x0b 0x11 0x202" => "Get directory", + "0x0d 0x11 0x201" => "Delete file (old) or Disk info request (new)", + "0x0e 0x11 0x201" => "Set file attribute", + "0x0e 0x11 0x202" => "Flash Device ID (new)", + "0x0f 0x11 0x201" => "Set file time", + "0x13 0x12 0x201" => "Remote Camera control", + "0x17 0x12 0x202" => "Download captured image", + "0x18 0x12 0x202" => "Download captured preview", + "0x1a 0x12 0x201" => "Unknown EOS D30 command", + "0x1b 0x12 0x201" => "EOS lock keys", + "0x1c 0x12 0x201" => "EOS unlock keys", + "0x1d 0x12 0x201" => "EOS get body ID (old) or Get Custom Functions (new)", + "0x1f 0x12 0x201" => "Get camera abilities", + "0x20 0x12 0x201" => "Lock keys, turn off LCD", + "0x21 0x12 0x201" => "Unknown newer command", + "0x22 0x12 0x201" => "Unknown newer command", + "0x23 0x12 0x201" => "Get EOS Body ID (new)", + "0x24 0x12 0x201" => "Get camera abilities (new)", + "0x25 0x12 0x201" => "Remote Camera control (new)", + "0x26 0x12 0x202" => "Get captured image (new)", + "0x35 0x12 0x201" => "Unknown newer command", + "0x36 0x12 0x201" => "Unknown newer command" +); + +my %control_subcmd = ( "0x00" => "Camera control init", + "0x01" => "Exit release control", + "0x02" => "Start viewfinder", + "0x03" => "Stop viewfinder", + "0x04" => "Release shutter", + "0x07" => "Set release params", + "0x09" => "Set transfer mode", + "0x0a" => "Get release params", + "0x0b" => "Get zoom position", + "0x0c" => "Set zoom position", + "0x0d" => "Get available shot", + "0x0e" => "Set custom func.", + "0x0f" => "Get custom func.", + "0x10" => "Get extended release params size", + "0x11" => "Get extended params version", + "0x12" => "Get extended release params", + "0x13" => "Set extended params", + "0x14" => "Select camera output", + "0x15" => "Do AE, AF, and AWB" + ); + +my %intcode = ( "00" => "unknown 00", + "01" => "unknown 01", + "02" => "unknown 02", + "05" => "unknown 05", + "08" => "Thumbnail descriptor", + "0a" => "Capture status", + "0c" => "Image descriptor", + "0e" => "EOS flash write success", + "0f" => "Capture complete", + "20" => "initialization" + ); + +my ($file, %urb, %urbdata, %urbpipe); + +if ($#ARGV == -1) { + warn("Syntax: $0 file [file ...]\n"); + exit(1); +} + +foreach $file (@ARGV) { + open(FILE, "< $file") or die("Could not open file '$file' for reading: $!\n"); + + my $line; + my $byte_offset; + my $dumping_urbdata = 0; + my $dumping_setup = 0; + my $current_urb = -1; + my $current_function_type; + my $buffer = 0; + my $direction; + my $current_lines; + my $seq; + my $timestamp; + + warn("FILE: $file\n"); + + while ($line = ) { + chomp($line); + $line =~ s/\r//; # Trim possible (from Windows) + + if ($line =~ />>>\s+URB (\d+) going down/) { + $current_urb = $1; + #warn("URB $current_urb down...\n"); + $direction = "down"; + # There may be a previous URB under way that was truncated. + $dumping_urbdata = 0; + $dumping_setup = 0; + } elsif ($line =~ /<<<\s+URB (\d+) coming back/) { + $current_urb = $1; + #warn("URB $current_urb read\n"); + $direction = "back"; + # There may be a previous URB under way that was truncated. + $dumping_urbdata = 0; + $dumping_setup = 0; + } elsif ( $line =~ /Diag Driver: Receive/ + || $line =~ /isEchoRequest/ + || $line =~ /isWakeUpRequest/ + || $line =~ /filter/ ) { + next; + } elsif ( $line =~ /^\[\d+ ms\] UsbSnoop/ ) { + $dumping_urbdata = 0; + $dumping_setup = 0; + next; + } elsif ( $line =~ /^\d+\s+\d+\.\d+\s+UrbLink/ ) { + $dumping_urbdata = 0; + $dumping_setup = 0; + next; + } else { + if ($current_urb > 0) { + if ( $line =~ /^(\d+)\s+(\d\d:\d\d:\d\d [AP]M)\s+0000:\s+/ + || $line =~ /^(\d+)\s+(\d+\.\d+)\s+0000:\s+/ + || $line =~ /^\s+00000000:\s+/ ) { + if ( !($dumping_setup) ) { + #warn ( "dumping URB data\n" ); + $dumping_urbdata = 1; + $current_lines = 0; + $byte_offset = "0000"; + + # start of urbdata, decide which buffer this is + if ($urbdata{$current_urb}{buffer0} ) { + $buffer = "buffer1"; + } else { + $buffer = "buffer0"; + } + + #warn("URB $current_urb $buffer\n"); + + # mark that the buffer goes here + push(@{$urb{$current_urb}}, "[buffer $buffer]"); + } else { + $current_lines = 0; + $byte_offset = "0000"; + $buffer = "setup"; + #warn("URB $current_urb setup info\n"); + + # mark that the buffer goes here + push(@{$urb{$current_urb}}, "[buffer setup]"); + } + } + if ($dumping_urbdata) { + # Within data buffer + my $hex = ""; + if ($line =~ /^(\d+)\s+(\d\d:\d\d:\d\d [AP]M)\s+([\da-f]+):((\s[\da-f][\da-f])+)\s+$/ + || $line =~ /^(\d+)\s+(\d+\.\d+)\s+([\da-f]+):((\s[\da-f][\da-f])+)\s+$/ + || $line =~ /^\s+([\da-f]+):((\s[\da-f][\da-f])+)\s+$/ ) { + $seq = $1; + $timestamp = $2; + $byte_offset = $3; + $hex = $4; + #warn ( "case 1: row $byte_offset of URB $current_urb: seq $seq time $timestamp data $hex\n" ); + } elsif ( $line =~ /^\s+([\da-f]+):((\s[\da-f][\da-f])+)\s*$/ ) { + $byte_offset = $1; + $hex = $2; + #warn ( "case 2: row $byte_offset of URB $current_urb\n" ); + } elsif ( $line =~ /^(\d)+\s+(\d+\.\d+)\s+[a-f]:\s+$/ ) { + $byte_offset = $3; + $hex = $4; + #warn ( "case 3: row $byte_offset of URB $current_urb\n" ); + } else { + #warn ( "case 4: not in data URB $current_urb\n" ); + if ($line =~ /^(\d+)\s+(\d\d:\d\d:\d\d [AP]M)\s+([\da-f]+):\s+$/ + || $line =~ /^(\d+)\s+(\d+\.\d+)\s+([\da-f]+):\s+$/ ) { + # every other line is this kind of line, data offset + $byte_offset = $3; + next; + } elsif ( $line =~ /^\s+([a-f0-9]+):(( [a-f0-9][a-f0-9])+)$/ ) { + $hex = $2; + } else { + if ( $line =~ /UrbLink/ + || $line =~ /^(\d+)\s+(\d+\.\d+)\s*$/ ) { + # this is not a urbdata line. reset. + $dumping_urbdata = 0; + next; # unimportant line, just go to next + } else { + warn("$file:$. Unknown data '$line' when dumping URB data\n"); + next; + } + } + } + if ($hex) { + if ( $urbdata{$current_urb}{op} eq "WRITE" ) { + # If this is an OUT transaction, try to decode + # Canon command codes. These will be in two lines + # of the buffer dump: the first, starting at offset + # 0000:; and the fifth, starting at offset 0040: + if (hex($byte_offset) == 0x00) { + my @h = split(" ", $hex); + if ( $#h < 8 ) { + warn ( "URB $current_urb has digits missing from cmd3: probable truncated packet\n" ); + $urbdata{$current_urb}{cmd3} = "BAD"; + } + else { + $urbdata{$current_urb}{cmd3} = sprintf("0x%02x", hex("$h[7]$h[6]$h[5]$h[4]")); + } + } elsif (hex($byte_offset) == 0x40) { + my @h = split(" ", $hex); + if ( defined($h[4]) ) { + $urbdata{$current_urb}{cmd1} = "0x$h[4]"; + } + if ( defined($h[7]) ) { + $urbdata{$current_urb}{cmd2} = "0x$h[7]"; + } + } elsif (hex($byte_offset) == 0x50) { + if ( defined ( $urbdata{$current_urb}{cmd1} ) + && defined ( $urbdata{$current_urb}{cmd2} ) ) { + if ( ( $urbdata{$current_urb}{cmd1} eq "0x13" + && $urbdata{$current_urb}{cmd2} eq "0x12") + || ( $urbdata{$current_urb}{cmd1} eq "0x25" + && $urbdata{$current_urb}{cmd2} eq "0x12") ) { + my @h = split(" ", $hex); + $urbdata{$current_urb}{subcmd} = "0x$h[0]"; + } + } + } + } elsif ($urbdata{$current_urb}{pipe} eq "2" && hex($byte_offset) == 0x00 ) { + # An interrupt read; let's save the data for later decoding + $urbdata{$current_urb}{intdata} = $hex; + } elsif ($urbdata{$current_urb}{op} eq "READ" && hex($byte_offset) == 0x40 ) { + my @h = split(" ", $hex); + if ( defined($h[0x4]) && defined($h[0x5]) + && defined($h[0x6]) && defined($h[0x7]) ) { + $urbdata{$current_urb}{usbid} = "(0x$h[0x7]$h[0x6],0x$h[0x5]$h[0x4])"; + $urbdata{$current_urb}{magic} = "$h[0x3]$h[0x2]$h[0x1]$h[0x0]"; + } + } + + if ( $current_lines < 65 ) { + push(@{ $urbdata{$current_urb}{ $buffer } }, hex_format($byte_offset, $hex)); + } + $current_lines++; + $byte_offset = -1; + next; + } + } elsif ( $dumping_setup ) { + my $hex = ""; + if ($line =~ /^(\d+)\s+(\d\d:\d\d:\d\d [AP]M)\s+([\da-f]+):((\s[\da-f][\da-f])+)\s+$/ + || $line =~ /^(\d+)\s+(\d+\.\d+)\s+([\da-f]+):((\s[\da-f][\da-f])+)\s+$/ ) { + $byte_offset = $3; + $hex = $4; + } elsif ( $line =~ /^\s+([\da-f]+):((\s[\da-f][\da-f])+)\s*$/ ) { + $byte_offset = $1; + $hex = $2; + } else { + warn("$file:$. Unknown data '$line' when dumping URB setup data\n"); + next; + } + if ($hex) { + # Store this for later dumping. + if ( $current_lines < 65 ) { + push(@{ $urbdata{$current_urb}{setup} }, hex_format($byte_offset, $hex)); + } + $current_lines++; + } + next; + } else { + # Not within data buffer; parse other info + if ($line =~ /\sInterface\[0\]: Pipes\[(\d+)\] : PipeHandle\s+= 0x([\da-f]+)/) { + # remember URB pipe + $urbpipe{$2} = $1; + warn("PIPE $2 = $1\n"); + print ( "Pipe $2 = $1" ); + if ( $1 == 0 ) { + print ( " (main)\n" ); + } elsif ( $1 == 2 ) { + print ( " (interrupt)\n" ); + } else { + print ( "\n" ); + } + } elsif ($line =~ /\sPipeHandle\s+= ([\da-f]+)/) { + # check if we know this URB pipe + if ( defined ( $urbpipe{$1} ) ) { + $urbdata{$current_urb}{pipe} = $urbpipe{$1}; + } else { + if ( $current_function_type =~ "CONTROL_TRANSFER" ) { + $urbpipe{control} = $1; + $urbdata{$current_urb}{pipe} = ""; + } else { + #warn ( "Unknown pipe $1 from line $line" ); + $urbdata{$current_urb}{pipe} = "UNKNOWN"; + } + } + #warn("URB $current_urb PIPE $1 = $urbdata{$current_urb}{pipe}\n"); + } elsif ( $line =~ /SetupPacket\s+=\s*/ ) { + #warn ( "found setup packet for URB $current_urb" ); + $dumping_urbdata = 0; + $dumping_setup = 1; + next; + } + + if ( $line =~ /^--\s+URB_FUNCTION_([A-Z_]+):/ + || $line =~ /^\d+\s+\d+\.\d+\s+--\s+URB_FUNCTION_([A-Z_]+):/ + || $line =~ /^\d+\s+\d\d:\d\d:\d\d [AP]M\s+--\s+URB_FUNCTION_([A-Z_]+):/ ) { + # Informing us of transfer type. Seven kinds have been seen. + $current_function_type = $1; + #warn ( "URB $current_urb is of function type $current_function_type" ); + if ( $current_function_type =~ "GET_DESCRIPTOR_FROM_DEVICE" ) { + # This is a read request, but lacks the "TransferFlags" + # keyword. + $urbdata{$current_urb}{op} = "READ"; + } + } + elsif ($line =~ /.*\sTransferFlags.+USBD_TRANSFER_DIRECTION_(OUT|IN)/) { + # OP in "coming back" is most reliable, and that one + # is always after "going down" so we don't need to + # check previous value here, just overwrite + if ($1 eq "OUT") { + $urbdata{$current_urb}{op} = "WRITE"; + } elsif ($1 eq "IN") { + $urbdata{$current_urb}{op} = "READ"; + } else { + warn ( "Invalid transfer direction \"$1\"\n" ); + } + } + if ( $line =~ /\s+TransferBufferLength\s+=\s+([\da-f]+)/ ) { + my $t = hex($1); + + if ( !defined($urbdata{$current_urb}{op}) ) { + warn ( "URB $current_urb length=$t, but don't know type\n" ); + } + elsif ($urbdata{$current_urb}{op} eq "READ") { + # ok, this is read operation. info is + # always good. + $urbdata{$current_urb}{bytes} = $t; + #warn ( "URB $current_urb read $t\n" ); + } elsif ($urbdata{$current_urb}{op} eq "WRITE") { + if ($direction eq "down") { + $urbdata{$current_urb}{bytes} = $t; + #warn ( "URB $current_urb $urbdata{$current_urb}{op} $urbdata{$current_urb}{bytes}\n" ); + } + # else, this information is unreliable + } + } + } + } + } + + if ($line =~ /^(\d+) ([\w\d:\.]+?) (.+?)\s*$/) { + # we want to trim down the line numbers and time + + my $lineno = $1; + my $time = $2; + my $rest = $3; + + $line = sprintf("%.5d %.3f %s", $lineno, $time, $rest); + } elsif ( $line =~ /^(\d+)\s+(\d+\.\d+)\s+(.+?)\s*$/ ) { + # we want to trim down the line numbers and time + + my $lineno = $1; + my $time = $2; + my $rest = $3; + + $line = sprintf("%.5d %.3f %s", $lineno, $time, $rest); + } elsif ( $line =~ /^\[(\d+) ms\] (.+?)\s*$/ ) { + my $time = $1; + my $rest = $3; + } else { + # replace tabs with two spaces to make lines shorter + $line =~ s/ / /g; + } + + if ($current_urb == -1) { + print("$line\n"); + } else { + push(@{$urb{$current_urb}}, $line); + } + } + + close(FILE); + + warn("\noutputting formatted data\n"); + + my $n_skipped = 0; + + foreach $current_urb (sort numerically keys %urb) { + + # these are declared for readability + my $cmd1 = $urbdata{$current_urb}{cmd1}; + my $cmd2 = $urbdata{$current_urb}{cmd2}; + my $cmd3 = $urbdata{$current_urb}{cmd3}; + my $pipe = $urbdata{$current_urb}{pipe}; + my $op = $urbdata{$current_urb}{op}; + my $length = $urbdata{$current_urb}{bytes}; + my $keep_alive = 0; + + if ( defined($op) ) { + if ( !defined($length) ) { + warn ( "Missing operation length in URB $current_urb\n" ); + } elsif ( defined($pipe) ) { + if ( $pipe eq "2" && $length eq "0") { + $n_skipped++; + next; + } + } + if ( $n_skipped ) { + print ( "\n*** Skipped $n_skipped null interrupt reads ***\n" ); + $n_skipped = 0; + } + if ($op eq "READ") { + if ( defined($length) ) { + if ( $pipe eq "2" ) { + my $hex = ""; + if ( defined ( $urbdata{$current_urb}{intdata} ) ) { + $hex = $urbdata{$current_urb}{intdata}; + my @h = split ( " ", $hex ); + my $code = $h[4]; + if ( defined ( $intcode{$code} ) ) { + if ( hex($code) == 0x0a ) { + # Capture status: there's a subcode that tells us more. + my $subcode = hex($h[0x0c]); + if ( $subcode == 0x1c ) { + printf ( "\n*** URB $current_urb interrupt read 0x%02x bytes: capture start ***\n\n", $length ); + } + elsif ( $subcode == 0x1d ) { + printf ( "\n*** URB $current_urb interrupt read 0x%02x bytes: capture finish ***\n\n", $length ); + } + elsif ( $subcode == 0x1b ) { + printf ( "\n*** URB $current_urb interrupt read 0x%02x bytes: flash wait ***\n\n", $length ); + } + elsif ( $subcode == 0x0a ) { + printf ( "\n*** URB $current_urb interrupt read 0x%02x bytes: photographic failure ***\n\n", $length ); + } + } else { + printf ( "\n*** URB $current_urb interrupt read 0x%02x bytes: $intcode{$code} ***\n\n", $length ); + } + } else { + printf ( "\n*** URB $current_urb interrupt read 0x%02x bytes: unknown type $code ***\n\n", $length ); + } + } elsif ($length == 0x40) { + print("\n\n\n\n*** URB $current_urb possible CANON RESPONSE 0x%x bytes ***\n", $length); + } elsif ($length == 0x01) { + print("\n\n\n\n*** URB $current_urb probably CAMERA INIT ***\n\n"); + } elsif ($length == 0x58 && defined ($urbdata{$current_urb}{usbid}) ) { + print("\n\n\n\n*** URB $current_urb probably camera initial response, USB ID=$urbdata{$current_urb}{usbid}, magic=$urbdata{$current_urb}{magic} ***\n\n"); + } else { + print ( "\n*** URB $current_urb interrupt read, but data are missing from log file ***\n\n" ); + } + } elsif ($length == 0x58 && defined ($urbdata{$current_urb}{usbid}) ) { + if ( $urbdata{$current_urb}{magic} == 0x00000002 ) { + print("\n\n\n\n*** URB $current_urb possible CANON RESPONSE 0x%x bytes ***\n", $length); + } else { + print("\n\n\n\n*** URB $current_urb probably camera initial response, USB ID=$urbdata{$current_urb}{usbid}, magic=$urbdata{$current_urb}{magic} ***\n\n"); + } + } elsif ($length == 0x01) { + print("\n\n\n\n*** URB $current_urb probably CAMERA INIT ***\n\n"); + } elsif ($length >= 0x40) { + printf("\n\n\n\n*** URB $current_urb possible CANON RESPONSE 0x%x bytes ***\n", $length); + } else { + print("\n"); + } + } else { + print("\n"); + } + } elsif ($op eq "WRITE") { + if ( defined($length) ) { + my $cmd; + if ( defined($urbdata{$current_urb}{cmd1}) ) { + $cmd = "$urbdata{$current_urb}{cmd1}"; + } else { + $cmd = "LOST"; + } + if ( defined($urbdata{$current_urb}{cmd2}) ) { + $cmd = "$cmd $urbdata{$current_urb}{cmd2}"; + } else { + $cmd = "$cmd LOST"; + } + if ( defined($urbdata{$current_urb}{cmd3}) ) { + $cmd = "$cmd $urbdata{$current_urb}{cmd3}"; + } else { + $cmd = "$cmd LOST"; + } + if ( defined ( $length ) ) { + if ($length >= 0x50) { + if ( $cmd eq "LOST LOST LOST" ) { + warn ( "Command string is $cmd at URB $current_urb\n" ); + } + elsif ($canon_cmd{$cmd}) { + if ( $cmd eq "0x13 0x12 0x201" + || $cmd eq "0x25 0x12 0x201" ) { + if ( defined($urbdata{$current_urb}{subcmd}) ) { + printf("\n\n\n\n*** URB $current_urb CANON COMMAND '$canon_cmd{$cmd}' ($cmd) 0x%02x bytes", $length); + if ( $control_subcmd{$urbdata{$current_urb}{subcmd}} ) { + print ( ": $control_subcmd{$urbdata{$current_urb}{subcmd}} ***\n\n" ); + } else { + print ( ". Unknown subcommand: $urbdata{$current_urb}{subcmd} ***\n\n" ); + } + } else { + # Special case for newer (e.g. EOS 20D) protocol + printf("\n\n\n\n*** URB $current_urb CANON COMMAND 'Get Power Status (newer)' ($cmd) 0x%02x bytes ***\n\n", $length); + } + } else { + printf("\n\n\n\n*** URB $current_urb CANON COMMAND '$canon_cmd{$cmd}' ($cmd) 0x%02x bytes ***\n\n", $length); + } + } elsif ($cmd3 eq "0x201" or $cmd3 eq "0x202") { + printf("\n\n\n\n*** URB $current_urb PROBABLE CANON COMMAND ($cmd) 0x%02x bytes ***\n\n", $length); + } else { + printf("\n\n\n\n*** URB $current_urb possible CANON COMMAND ($cmd) 0x%02x bytes ***\n\n", $length); + } + } elsif ($cmd3 eq "0x201" or $cmd3 eq "0x202") { + if ($canon_cmd{$cmd}) { + printf("\n\n\n\n*** URB $current_urb CANON COMMAND '$canon_cmd{$cmd}' ($cmd) 0x%02x bytes ***\n\n", $length); + } else { + printf("\n\n\n\n*** URB $current_urb PROBABLE CANON COMMAND ($cmd) 0x%02x bytes ***\n\n", $length); + } + } else { + printf("\n\n\n\n*** URB $current_urb possible CANON COMMAND ($cmd) 0x%02x bytes ***\n\n", $length); + } + } elsif ($cmd3 eq "0x201" or $cmd3 eq "0x202") { + if ($canon_cmd{$cmd}) { + printf("\n\n\n\n*** URB $current_urb CANON COMMAND '$canon_cmd{$cmd}' ($cmd) 0x%02x bytes ***\n\n", $length); + } else { + printf("\n\n\n\n*** URB $current_urb PROBABLE CANON COMMAND ($cmd) 0x%02x bytes ***\n\n", $length); + } + } + } else { + warn ( "URB $current_urb write of unknown length" ); + print ( "\n\n\n\n*** URB $current_urb write of unknown length ***\n\n" ); + } + } + + if ( defined($length) ) { + printf("%s 0x%x BYTES\n", $op, $length); + } else { + printf( "%s *unknown* BYTES\n", $op ); + } + } else { + print ( "*** URB $current_urb has missing type info ***\n" ); + } + + if ($urbdata{$current_urb}{pipe}) { + print("*** URB $current_urb PIPE $urbdata{$current_urb}{pipe}\n"); + } else { + print("*** URB $current_urb\n"); + } + foreach $line (@{$urb{$current_urb}}) { + if ($line =~ /^\[buffer (buffer\d)\]$/) { + my $b = $1; + + if ($b eq "buffer0" and $urbdata{$current_urb}{buffer1}) { + # this is buffer 0 but this URB has two buffers, + # this one is FOO (buffer contents before read typically) + # so we just skip it + print("[cut]\n"); + next; + } + + print("DATA:\n", + join("\n", @{ $urbdata{$current_urb}{$b} }), + "\n"); + } elsif ( $line =~ /^\[buffer setup\]$/) { + print("SETUP:\n", + join("\n", @{ $urbdata{$current_urb}{setup} }), + "\n"); + } else { + print("$line\n"); + } + } + } +} + +warn("\nDone\n\n"); +exit(0); + + +# SUBROUTINES +# ----------- + +sub numerically { $a <=> $b }; + +sub hex_format +{ + my $byte_offset = shift; + my $hex = shift; + + $hex =~ s/^\s*(.+?)\s*$/$1/; # trim + my @chars = split(" ", $hex); + my $out_rad = "$byte_offset $hex "; + + # if not a full line, add whitespace + if ($#chars < 15) { + $out_rad .= " " x ((15 - $#chars) * 3); + } + + # add ASCII + my $ch; + foreach $ch (@chars) { + my $i = hex($ch); + if ($i >= 32 and $i < 127) { + $out_rad .= sprintf("%c", $i); + } else { + $out_rad .= "."; + } + } + + return $out_rad; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/usb.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/usb.c new file mode 100644 index 00000000..689b9f7b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/usb.c @@ -0,0 +1,2637 @@ +/**************************************************************************** + * + * File: usb.c + * + * USB communication layer. + * + ****************************************************************************/ + +#include "config.h" + +#include +#include +#include +#include +#include +#include +#include +#ifdef CANON_EXPERIMENTAL_UPLOAD +/* For filestat to get file time for upload */ +#include +#include +#include +#endif /* CANON_EXPERIMENTAL_UPLOAD */ +#ifdef OS2 +#include +#endif + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#include + +#include "usb.h" +#include "canon.h" +#include "util.h" + +#ifdef __GNUC__ +# define __unused__ __attribute__((unused)) +#else +# define __unused__ +#endif + +#define CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} + +/* IDENTIFY_INIT_TIMEOUT: the starting timeout (in milliseconds) + * to wait for the camera to respond to an "identify camera" request. + * This timeout is doubled for each retry */ +/* It was originally 10, but this made the communication fail, so + * bump up to 100. */ +#define IDENTIFY_INIT_TIMEOUT 100 + +/* IDENTIFY_MAX_ATTEMPTS: how many "identify camera" requests to send + * to the camera, until we give up for lack of response. */ +#define IDENTIFY_MAX_ATTEMPTS 5 + +/* CANON_FAST_TIMEOUT: how long (in milliseconds) we should wait for + * an URB to come back on an interrupt endpoint */ +#define CANON_FAST_TIMEOUT 500 + +/* WARNING: This destroys reentrancy of the code. Better to put this + * in the camera descriptor somewhere. */ +static int serial_code = 0; + +/* Map camera status codes (from offset 0x50 in reply block) to + * messages. */ +static struct canon_usb_status canon_usb_status_table[] = { + {0x00000000, NULL}, + {0x02000022, "File not found"}, + {0x02000029, "File was protected"}, + {0x0200002a, "Compact Flash card full"}, + {0x02000081, "Failed to lock EOS keys"}, + {0x02000082, "Failed to unlock EOS keys"}, + {0x02000085, "Could not switch to capture mode"}, + {0x02000086, "Invalid command parameters"}, + {0x00000086, "Can't unlock EOS keys (new)"}, + {0x02000087, "No storage card in camera"}, + {0x82200040, "Unknown error (new protocol)"}, + {0x82220040, "Unknown error (new protocol)"} +}; + + +/* + * Command codes are structured: + * cmd2=11 -> camera control, + * cmd2=12 -> storage control. + * + * cmd3=201 -> fixed length response + * cmd3=202 -> variable length response + */ + +static const struct canon_usb_cmdstruct canon_usb_cmd[] = { + {CANON_USB_FUNCTION_GET_FILE, "Get file", 0x01, 0x11, 0x202, 0x40}, + {CANON_USB_FUNCTION_MKDIR, "Make directory", 0x05, 0x11, 0x201, 0x54}, + {CANON_USB_FUNCTION_RMDIR, "Remove directory", 0x06, 0x11, 0x201, 0x54}, + {CANON_USB_FUNCTION_DISK_INFO, "Disk info request", 0x09, 0x11, 0x201, 0x5c}, + /* 0x0a is overloaded: "flash device ident" and "delete file", + * with different responses */ + {CANON_USB_FUNCTION_FLASH_DEVICE_IDENT, "Flash device ident", 0x0a, 0x11, 0x202, 0x40}, + {CANON_USB_FUNCTION_DELETE_FILE_2, "Delete file", 0x0a, 0x11, 0x201, 0x54}, + {CANON_USB_FUNCTION_GET_DIRENT, "Get directory entries", 0x0b, 0x11, 0x202, 0x40}, + /* Command code 0x0d is overloaded: delete file (old), + * disk info request ID (new). */ + {CANON_USB_FUNCTION_DELETE_FILE, "Delete file", 0x0d, 0x11, 0x201, 0x54}, + {CANON_USB_FUNCTION_DISK_INFO_2, "Disk info request (new)", 0x0d, 0x11, 0x201, 0x5c}, + /* Command code 0x0e is overloaded: set file attribute (old), + * flash device ID (new). And the response is different: fixed + * length in old, variable length in new. */ + {CANON_USB_FUNCTION_SET_ATTR, "Set file attributes", 0x0e, 0x11, 0x201, 0x54}, + {CANON_USB_FUNCTION_FLASH_DEVICE_IDENT_2, "Flash device ident (new)", 0x0e, 0x11, 0x202, 0x40}, + {CANON_USB_FUNCTION_SET_FILE_TIME, "Set file time", 0x0f, 0x11, 0x201, 0x54}, + + {CANON_USB_FUNCTION_IDENTIFY_CAMERA, "Identify camera", 0x01, 0x12, 0x201, 0x9c}, + {CANON_USB_FUNCTION_GET_TIME, "Get time", 0x03, 0x12, 0x201, 0x60}, + {CANON_USB_FUNCTION_SET_TIME, "Set time", 0x04, 0x12, 0x201, 0x54}, + /* 0x05 is overloaded: "change owner" and "get owner", with + * different responses */ + {CANON_USB_FUNCTION_CAMERA_CHOWN, "Change camera owner", 0x05, 0x12, 0x201, 0x54}, + {CANON_USB_FUNCTION_GET_OWNER, "Get owner name (new)", 0x05, 0x12, 0x201, 0x74}, + {CANON_USB_FUNCTION_CAMERA_CHOWN_2, "Change owner (new)", 0x06, 0x12, 0x201, 0x54}, + {CANON_USB_FUNCTION_POWER_STATUS, "Power supply status", 0x0a, 0x12, 0x201, 0x58}, + /* 0x13 is overloaded: remote camera control in the original + protocol, power status in the new protocol. */ + {CANON_USB_FUNCTION_CONTROL_CAMERA, "Remote camera control", 0x13, 0x12, 0x201, 0x40}, + {CANON_USB_FUNCTION_POWER_STATUS_2, "Power supply status (new)", 0x13, 0x12, 0x201, 0x58}, + {CANON_USB_FUNCTION_RETRIEVE_CAPTURE, "Download a captured image", 0x17, 0x12, 0x202, 0x40}, + {CANON_USB_FUNCTION_RETRIEVE_PREVIEW, "Download a captured preview", 0x18, 0x12, 0x202, 0x40}, + {CANON_USB_FUNCTION_UNKNOWN_FUNCTION, "Unknown function", 0x1a, 0x12, 0x201, 0x80}, + {CANON_USB_FUNCTION_EOS_LOCK_KEYS, "EOS lock keys", 0x1b, 0x12, 0x201, 0x54}, + {CANON_USB_FUNCTION_EOS_UNLOCK_KEYS, "EOS unlock keys", 0x1c, 0x12, 0x201, 0x54}, + {CANON_USB_FUNCTION_EOS_GET_BODY_ID, "EOS get body ID", 0x1d, 0x12, 0x201, 0x58}, + {CANON_USB_FUNCTION_GET_PIC_ABILITIES, "Get picture abilities", 0x1f, 0x12, 0x201, 0x384}, + {CANON_USB_FUNCTION_GENERIC_LOCK_KEYS, "Lock keys and turn off LCD", 0x20, 0x12, 0x201, 0x54}, + {CANON_USB_FUNCTION_20D_UNKNOWN_1, "Unknown EOS 20D function", 0x21, 0x12, 0x201, 0x54}, + {CANON_USB_FUNCTION_20D_UNKNOWN_2, "Unknown EOS 20D function", 0x22, 0x12, 0x201, 0x54}, + {CANON_USB_FUNCTION_EOS_GET_BODY_ID_2, "Get body ID (new)", 0x23, 0x12, 0x201, 0x58}, + {CANON_USB_FUNCTION_GET_PIC_ABILITIES_2, "Get picture abilities (new)", 0x24, 0x12, 0x201, 0x474}, + {CANON_USB_FUNCTION_CONTROL_CAMERA_2, "Remote camera control (new)", 0x25, 0x12, 0x201, 0x40}, + {CANON_USB_FUNCTION_RETRIEVE_CAPTURE_2, "Download captured image (new)", 0x26, 0x12, 0x202, 0x40}, + {CANON_USB_FUNCTION_LOCK_KEYS_2, "Lock keys (new)", 0x35, 0x12, 0x201, 0x5c}, + {CANON_USB_FUNCTION_UNLOCK_KEYS_2, "Unlock keys (new)", 0x36, 0x12, 0x201, 0x54}, + /* WARNING: I don't think this is really the right value, but + * it gives no error on EOS 20D -- swestin 22-Mar-05 */ + {CANON_USB_FUNCTION_SET_ATTR_2, "Set file attributes (new))", 0x07, 0x11, 0x201, 0x54}, + { 0, NULL, 0, 0, 0, 0 } +}; + + +const struct canon_usb_control_cmdstruct canon_usb_control_cmd[] = { + /* COMMAND NAME Description Value CmdLen ReplyLen */ + {CANON_USB_CONTROL_INIT, "Camera control init", 0x00, 0x18, 0x1c}, /* load 0x00, 0x00 */ + {CANON_USB_CONTROL_SHUTTER_RELEASE, "Release shutter", 0x04, 0x18, 0x1c}, /* load 0x04, 0x00 */ + {CANON_USB_CONTROL_SET_PARAMS, "Set release params", 0x07, 0x3c, 0x1c}, /* ?? */ + {CANON_USB_CONTROL_SET_TRANSFER_MODE, "Set transfer mode", 0x09, 0x1c, 0x1c}, /* load (0x09, 0x04, 0x03) or (0x09, 0x04, 0x02000003) */ + {CANON_USB_CONTROL_GET_PARAMS, "Get release params", 0x0a, 0x18, 0x4c}, /* load 0x0a, 0x00 */ + {CANON_USB_CONTROL_GET_ZOOM_POS, "Get zoom position", 0x0b, 0x18, 0x20}, /* load 0x0b, 0x00 */ + {CANON_USB_CONTROL_SET_ZOOM_POS, "Set zoom position", 0x0c, 0x1c, 0x1c}, /* load 0x0c, 0x04, 0x01 (or 0x0c, 0x04, 0x0b) (or 0x0c, 0x04, 0x0a) or (0x0c, 0x04, 0x09) or (0x0c, 0x04, 0x08) or (0x0c, 0x04, 0x07) or (0x0c, 0x04, 0x06) or (0x0c, 0x04, 0x00) */ + {CANON_USB_CONTROL_GET_AVAILABLE_SHOT, "Get available shot", 0x0d, 0x18, 0x20}, + {CANON_USB_CONTROL_GET_CUSTOM_FUNC, "Get custom func.", 0x0f, 0x22, 0x26}, + {CANON_USB_CONTROL_GET_EXT_PARAMS_SIZE, "Get ext. release params size", + 0x10, 0x1c, 0x20}, /* load 0x10, 0x00 */ + {CANON_USB_CONTROL_GET_EXT_PARAMS, "Get ext. release params", + 0x12, 0x1c, 0x2c}, /* load 0x12, 0x04, 0x10 */ + {CANON_USB_CONTROL_SET_EXT_PARAMS, "Set extended params", 0x13, 0x15, 0x1c}, /* based on EOS 20D */ + + {CANON_USB_CONTROL_EXIT, "Exit release control", 0x01, 0x18, 0x1c}, + /* New subcodes for new version of protocol */ + {CANON_USB_CONTROL_UNKNOWN_1, "Unknown remote subcode", + 0x1b, 0x08, 0x5e}, + {CANON_USB_CONTROL_UNKNOWN_2, "Unknown remote subcode", + 0x1c, 0x00, 0x00}, + /* unobserved, commands present in canon headers defines, but need more usb snoops to get reply lengths */ + {CANON_USB_CONTROL_VIEWFINDER_START, "Start viewfinder", 0x02, 0x00, 0x00}, + {CANON_USB_CONTROL_VIEWFINDER_STOP, "Stop viewfinder", 0x03, 0x00, 0x00}, + {CANON_USB_CONTROL_SET_CUSTOM_FUNC, "Set custom func.", 0x0e, 0x00, 0x00}, + {CANON_USB_CONTROL_GET_EXT_PARAMS_VER, "Get extended params version", + 0x11, 0x00, 0x00}, + {CANON_USB_CONTROL_SELECT_CAM_OUTPUT, "Select camera output", 0x14, 0x00, 0x00}, /* LCD (0x1), Video out (0x2), or OFF (0x3) */ + {CANON_USB_CONTROL_DO_AE_AF_AWB, "Do AE, AF, and AWB", 0x15, 0x00, 0x00}, + { 0, NULL, 0, 0, 0 } +}; + +static int canon_usb_identify (Camera *camera, GPContext *context); + +/** + * canon_usb_camera_init: + * @camera: camera to initialize + * @context: context for error reporting + * + * Initializes the USB camera through a series of read/writes + * + * Returns: gphoto2 error code + * @GP_OK on success. + * @GP_ERROR_OS_FAILURE if it seems to be an OS error + * @GP_ERROR_CORRUPTED_DATA if communication was completed, but the + * response was other than expected. + * + */ +static int +canon_usb_camera_init (Camera *camera, GPContext *context) +{ + unsigned char msg[0x58]; + unsigned char buffer[0x44]; + int i, read_bytes, timeout; + char *camstat_str = _("NOT RECOGNIZED"); + unsigned char camstat; + + GP_DEBUG ("canon_usb_camera_init()"); + + memset (msg, 0, sizeof (msg)); + memset (buffer, 0, sizeof (buffer)); + + i = canon_usb_identify (camera, context); + if (i != GP_OK) + return i; + + /* Read one byte from the control pipe. */ + i = gp_port_usb_msg_read (camera->port, 0x0c, 0x55, 0, (char *)msg, 1); + if (i != 1) { + gp_context_error (context, _("Could not establish initial contact with camera")); + if (i < GP_OK) + return i; + return GP_ERROR_CORRUPTED_DATA; + } + camstat = msg[0]; + switch (camstat) { + case 'A': + camstat_str = _("Camera was already active"); + break; + case 'C': + camstat_str = _("Camera was woken up"); + break; + case 'I': + case 'E': + default: + gp_context_error (context, _("Initial camera response '%c' unrecognized"), + camstat); + return GP_ERROR_CORRUPTED_DATA; + } + + GP_DEBUG ("canon_usb_camera_init() initial camera response: %c/'%s'", + camstat, camstat_str); + + i = gp_port_usb_msg_read (camera->port, 0x04, 0x1, 0, (char *)msg, 0x58); + if (i != 0x58) { + if ( i < 0 ) { + gp_context_error (context, + _("Step #2 of initialization failed: (\"%s\" on read of %i). " + "Camera not operational"), gp_result_as_string(i), 0x58); + return GP_ERROR_OS_FAILURE; + } else { + gp_context_error (context, + _("Step #2 of initialization failed! (returned %i bytes, expected %i). " + "Camera not operational"), i, 0x58); + return GP_ERROR_CORRUPTED_DATA; + } + } + /* Get maximum download transfer length from camera, if + * provided */ + camera->pl->xfer_length = le32atoh (msg+0x4c); + if ( camera->pl->xfer_length == 0xFFFFFFFF ) + camera->pl->xfer_length = USB_BULK_READ_SIZE; /* Use default */ + GP_DEBUG ("canon_usb_camera_init() set transfer length to 0x%x", + camera->pl->xfer_length ); + + if (camstat == 'A') { + /* read another 0x50 bytes */ + i = gp_port_usb_msg_read (camera->port, 0x04, 0x4, 0, (char *)msg, 0x50); + if (i != 0x50) { + if ( i < 0 ) { + gp_context_error (context, + _("Step #3 of initialization failed: " + "\"%s\" on read of %i. " + "Camera not operational"), gp_result_as_string(i), 0x50); + return GP_ERROR_OS_FAILURE; + } + else { + gp_context_error (context, + _("Step #3 of initialization failed! " + "(returned %i, expected %i). " + "Camera not operational"), i, 0x50); + return GP_ERROR_CORRUPTED_DATA; + } + } + + } + else { + /* set byte 0 in msg to new "canon length" (0x10) (which is total + * packet size - 0x40) and then move the last 0x10 bytes of msg to + * offset 0x40 and write it back to the camera. + */ + memset ( msg, 0, 0x40 ); + msg[0] = 0x10; + memmove (msg + 0x40, msg + 0x48, 0x10); + i = gp_port_usb_msg_write (camera->port, 0x04, 0x11, 0, (char *)msg, 0x50); + if (i != 0x50) { + if ( i < 0 ) { + gp_context_error (context, + _("Step #3 of initialization failed: " + "\"%s\" on write of %i. " + "Camera not operational"), gp_result_as_string(i), 0x50); + return GP_ERROR_OS_FAILURE; + } + else { + gp_context_error (context, + _("Step #3 of initialization failed! " + "(returned %i, expected %i). " + "Camera not operational"), i, 0x50); + return GP_ERROR_CORRUPTED_DATA; + } + } + /* Temp hack for SD500/IXUS 700/IXY 600 for testing */ + if ( camera->pl->md->model != CANON_CLASS_6 && camera->pl->md->usb_product != 0x30f2 ) { + /* We expect to get 0x44 bytes here, but the camera is picky at this stage and + * we must read 0x40 bytes and then read 0x4 bytes more. + */ + i = gp_port_read (camera->port, (char *)buffer, 0x40); + if ((i >= 4) + && (buffer[i - 4] == 0x54) && (buffer[i - 3] == 0x78) + && (buffer[i - 2] == 0x00) && (buffer[i - 1] == 0x00)) { + + /* We have some reports that sometimes the camera takes a long + * time to respond to the above read request and then comes back with + * the 54 78 00 00 packet, instead of telling us to read four more + * bytes which is the normal 54 78 00 00 packet. + */ + + GP_DEBUG ("canon_usb_camera_init() " + "expected %i bytes, got %i bytes with \"54 78 00 00\" " + "at the end, so we just ignore the whole bunch and call it a day", + 0x40, i); + } + else { + if (i != 0x40) { + if ( i < 0 ) { + gp_context_error (context, + _("Step #4 failed: " + "\"%s\" on read of %i. Camera not operational"), + gp_result_as_string(i), 0x40); + return GP_ERROR_OS_FAILURE; + } + else { + gp_context_error (context, + _("Step #4 failed " + "(returned %i, expected %i). Camera not operational"), + i, 0x40); + return GP_ERROR_CORRUPTED_DATA; + } + } + } + /* just check if (int) buffer[0] says 0x4 or not, log a warning if it doesn't. */ + read_bytes = le32atoh (buffer); + if (read_bytes != 4) + GP_DEBUG ("canon_usb_camera_init() camera says to read %i more bytes, " + "we would have expected 4 - overriding since some cameras are " + "known not to give correct numbers of bytes.", read_bytes); + i = gp_port_read (camera->port, (char *)buffer, 4); + if (i != 4) { + if ( i < 0 ) + GP_DEBUG ("canon_usb_camera_init() " + "Step #5 of initialization failed: \"%s\" from read of %i. " + "Camera might still work though. Continuing.", + gp_result_as_string(i), 4); + else + GP_DEBUG ("canon_usb_camera_init() " + "Step #5 of initialization failed! (returned %i, expected %i) " + "Camera might still work though. Continuing.", + i, 4); + } + } + else { + /* Newer cameras can give us all 0x44 bytes at + * once; some insist on it. */ + i = gp_port_read (camera->port, (char *)buffer, 0x44); + if (i != 0x44) { + if ( i < 0 ) { + gp_context_error (context, + _("Step #4 failed: " + "\"%s\" on read of %i. Camera not operational"), + gp_result_as_string(i), 0x44); + return GP_ERROR_OS_FAILURE; + } + else { + gp_context_error (context, + _("Step #4 failed " + "(returned %i, expected %i). Camera not operational"), + i, 0x44); + return GP_ERROR_CORRUPTED_DATA; + } + } + } + + read_bytes = 0; + + gp_port_get_timeout ( camera->port, &timeout ); + gp_port_set_timeout ( camera->port, CANON_FAST_TIMEOUT ); + + do { + GP_DEBUG ( "canon_usb_camera_init() read_bytes=0x%x", read_bytes ); + i = gp_port_check_int ( camera->port, (char *)buffer, 0x10 ); + if ( i > 0 ) + read_bytes += i; + } while ( read_bytes < 0x10 && i >= 0 ); + + gp_port_set_timeout ( camera->port, timeout ); + + if ( read_bytes < 0x10 ) { + GP_DEBUG ( "canon_usb_camera_init() interrupt read returned only %d bytes, status=%d", read_bytes, i ); + if ( i < 0 ) + return GP_ERROR_OS_FAILURE; + else + return GP_ERROR_CORRUPTED_DATA; + } + else if ( i < 0 ) { + GP_DEBUG ( "canon_usb_camera_init() interrupt read failed, status=%d", i ); + return GP_ERROR_CORRUPTED_DATA; + } + else if ( i > 0x10 ) + GP_DEBUG ( "canon_usb_camera_init() interrupt read %d bytes, expected 16", read_bytes ); + else + GP_DEBUG ( "canon_usb_camera_init() interrupt read OK" ); + } + + GP_DEBUG ("canon_usb_camera_init() " + "PC sign on LCD should be lit now (if your camera has a PC sign)"); + + read_bytes = 0; + return camstat; +} + +/* Forward reference for use within canon_usb_init() */ +static int canon_usb_get_body_id (Camera *camera, GPContext *context); + +/** + * canon_usb_init: + * @camera: camera to initialize + * @context: context for error reporting + * + * Initializes the given USB device. + * + * Returns: gphoto2 error code (%GP_OK on success). + * + */ +int +canon_usb_init (Camera *camera, GPContext *context) +{ + /* unsigned char buffer[0x44]; */ + int res, id_retry, i, camstat; + /* int read_bytes; */ + int orig_mstimeout = -1; + int id_mstimeout = IDENTIFY_INIT_TIMEOUT; /* separate timeout for + identify camera */ + + GP_DEBUG ("Initializing the (USB) camera."); + +#if 0 + /* FIXME: as raspberry user confirmed the need for those... + * I am currently not sure why I added them. + */ + gp_port_usb_clear_halt (camera->port, GP_PORT_USB_ENDPOINT_IN); + gp_port_usb_clear_halt (camera->port, GP_PORT_USB_ENDPOINT_OUT); + gp_port_usb_clear_halt (camera->port, GP_PORT_USB_ENDPOINT_INT); +#endif + camstat = canon_usb_camera_init (camera, context); + if ( camstat < 0 ) + return camstat; + + /* Save the original timeout value and set up the initial + identify camera timeout value */ + gp_port_get_timeout (camera->port, &orig_mstimeout); + gp_port_set_timeout (camera->port, id_mstimeout); + + /* We retry the identify camera because sometimes (camstat == 'A' + * in canon_usb_camera_init()) this is necessary to get the camera + * back in sync, and the windows driver actually executes four of + * these in a row before downloading thumbnails. + */ + res = GP_ERROR; + for (id_retry = 1; id_retry <= IDENTIFY_MAX_ATTEMPTS; id_retry++) { + res = canon_int_identify_camera (camera, context); + if (res != GP_OK) { + GP_DEBUG ("Identify camera try %i/%i failed %s", id_retry, IDENTIFY_MAX_ATTEMPTS, + id_retry < + IDENTIFY_MAX_ATTEMPTS ? "(this is OK)" : "(now it's not OK any more)"); + id_mstimeout *= 2; + gp_port_set_timeout (camera->port, id_mstimeout); + } + else + break; + } + + /* Restore the original timeout value */ + gp_port_set_timeout (camera->port, orig_mstimeout); + + if (res != GP_OK) { + gp_context_error (context, + _("Camera not ready, " + "multiple 'Identify camera' requests failed: %s"), + gp_result_as_string (res)); + if ( res < 0 ) + return GP_ERROR_OS_FAILURE; + else + return GP_ERROR_CORRUPTED_DATA; + } + + if ( camera->pl->md->model == CANON_CLASS_6 ) { + unsigned char *c_res; + unsigned int bytes_read = 0; + + /* Get body ID here */ + GP_DEBUG ( "canon_usb_init: camera uses newer protocol, so we get body ID" ); + res = canon_usb_get_body_id ( camera, context ); + if ( res < 0 ) { + GP_DEBUG ( "canon_usb_init: \"Get body ID\" failed, code %d", res ); + return ( res ); + } + + GP_DEBUG ( "canon_usb_init: camera uses newer protocol, so we get camera abilities" ); + c_res = canon_usb_dialogue (camera, + CANON_USB_FUNCTION_GET_PIC_ABILITIES_2, + &bytes_read, NULL, 0); + + if ( c_res == NULL ) { + GP_DEBUG ( "canon_usb_init: \"get picture abilities\" failed; continuing anyway." ); + } + else if ( bytes_read == 0x424 ) { + GP_DEBUG ( "canon_usb_init: Got the expected length back from \"get picture abilities.\"" ); + } else { + GP_DEBUG ( "canon_usb_init: " + "Unexpected return of %i bytes (expected %i) from \"get picture abilities.\" We will continue.", + bytes_read, 0x424 ); + } + res = canon_int_get_battery(camera, NULL, NULL, context); + if (res != GP_OK) { + gp_context_error (context, _("Camera not ready, get_battery failed: %s"), + gp_result_as_string (res)); + return res; + } + } + else { + if ( camera->pl->md->model != CANON_CLASS_4 ) { + i = canon_usb_lock_keys(camera,context); + if( i < 0 ) { + gp_context_error (context, _("lock keys failed.")); + return i; + } + } + + res = canon_int_get_battery(camera, NULL, NULL, context); + if (res != GP_OK) { + gp_context_error (context, _("Camera not ready, get_battery failed: %s"), + gp_result_as_string (res)); + return res; + } + + } + + return GP_OK; +} + +/** + * canon_usb_lock_keys: + * @camera: camera to lock keys on + * @context: context for error reporting + * + * Lock the keys on the camera and turn off the display + * + * Returns: gphoto2 error code + * + */ +int +canon_usb_lock_keys (Camera *camera, GPContext *context) +{ + unsigned char *c_res; + unsigned int bytes_read; + unsigned char payload[4]; + + GP_DEBUG ("canon_usb_lock_keys()"); + + switch (camera->pl->md->model) { + case CANON_CLASS_NONE: + case CANON_CLASS_0: + GP_DEBUG ("canon_usb_lock_keys: Your camera model does not need the keylock."); + break; + + case CANON_CLASS_1: + case CANON_CLASS_2: + case CANON_CLASS_3: + /* Previous default; I doubt that any new + * cameras will work this way. */ + GP_DEBUG ("canon_usb_lock_keys: Locking camera and turning off LCD using 'normal' locking code..."); + + c_res = canon_usb_dialogue (camera, + CANON_USB_FUNCTION_GET_PIC_ABILITIES, + &bytes_read, NULL, 0); + + if ( c_res == NULL ) + return GP_ERROR_OS_FAILURE; + if ( bytes_read == 0x334 ) { + GP_DEBUG ( "canon_usb_lock_keys: Got the expected length back from \"get picture abilities.\"" ); + } else { + GP_DEBUG ( "canon_usb_lock_keys: " + "Unexpected return of %i bytes (expected %i) from " + "\"get picture abilities.\" We will continue.", + bytes_read, 0x334 ); + } + c_res = canon_usb_dialogue (camera, + CANON_USB_FUNCTION_GENERIC_LOCK_KEYS, + &bytes_read, NULL, 0); + if ( c_res == NULL ) + return GP_ERROR_OS_FAILURE; + if (bytes_read == 0x4) { + GP_DEBUG ("canon_usb_lock_keys: Got the expected length back."); + } else { + gp_context_error (context, + _("canon_usb_lock_keys: " + "Unexpected length returned from \"lock keys\" function (%i bytes, expected %i)"), + bytes_read, 0x4); + return GP_ERROR_CORRUPTED_DATA; + } + camera->pl->keys_locked = TRUE; + break; + + case CANON_CLASS_4: + GP_DEBUG ("canon_usb_lock_keys: Locking camera and turning off LCD using 'EOS' locking code..."); + + memset (payload, 0, sizeof (payload)); + payload[0] = 0x06; + + c_res = canon_usb_dialogue (camera, CANON_USB_FUNCTION_EOS_LOCK_KEYS, + &bytes_read, payload, 4); + if ( c_res == NULL ) + return GP_ERROR_OS_FAILURE; + if (bytes_read == 0x4) { + GP_DEBUG ("canon_usb_lock_keys: Got the expected length back."); + } else { + gp_context_error (context, + _("canon_usb_lock_keys: " + "Unexpected length returned (%i bytes, expected %i)"), + bytes_read, 0x4); + return GP_ERROR_CORRUPTED_DATA; + } + camera->pl->keys_locked = TRUE; + break; + + case CANON_CLASS_5: + /* Doesn't implement "get picture abilities", + but isn't an EOS camera, so we have to use + the "normal" key lock command. Since the + S45 is a relatively new model (in + Jan. 2003), I suspect that we will find + more cameras in the future that work this + way. */ + GP_DEBUG ("canon_usb_lock_keys: Locking camera and turning off LCD using class 5 locking code..."); + c_res = canon_usb_dialogue (camera, + CANON_USB_FUNCTION_GENERIC_LOCK_KEYS, + &bytes_read, NULL, 0); + if ( c_res == NULL ) + return GP_ERROR_OS_FAILURE; + if (bytes_read == 0x4) { + GP_DEBUG ("canon_usb_lock_keys: Got the expected length back."); + } else { + gp_context_error (context, + _("canon_usb_lock_keys: " + "Unexpected length returned (%i bytes, expected %i)"), + bytes_read, 0x4); + return GP_ERROR_CORRUPTED_DATA; + } + camera->pl->keys_locked = TRUE; + break; + case CANON_CLASS_6: + /* Newest variation of protocol, and quite + * different. "Get picture abilities" is + * implemented, but with a different command + * code and a longer buffer returned. */ + GP_DEBUG ("Camera uses newer protocol: Locking camera keys and turning off LCD..."); + + c_res = canon_usb_dialogue (camera, + CANON_USB_FUNCTION_GET_PIC_ABILITIES_2, + &bytes_read, NULL, 0); + + if ( c_res == NULL ) { + GP_DEBUG ( "canon_usb_lock_keys: \"get picture abilities\" failed; continuing anyway." ); + } + else if ( bytes_read == 0x424 ) { + GP_DEBUG ( "canon_usb_lock_keys: Got the expected length back from \"get picture abilities.\"" ); + } else { + GP_DEBUG ( "canon_usb_lock_keys: " + "Unexpected return of %i bytes (expected %i) from \"get picture abilities.\" We will continue.", + bytes_read, 0x424 ); + } + + memset (payload, 0, sizeof (payload)); + payload[0] = 0x06; + + c_res = canon_usb_dialogue (camera, CANON_USB_FUNCTION_LOCK_KEYS_2, + &bytes_read, payload, 4); + if ( c_res == NULL ) + return GP_ERROR_OS_FAILURE; + if (bytes_read == 0xc) { + GP_DEBUG ("canon_usb_lock_keys: Got the expected length back."); + } else { + gp_context_error (context, + _("canon_usb_lock_keys: " + "Unexpected length returned (%i bytes, expected %i)"), + bytes_read, 0xc); + return GP_ERROR_CORRUPTED_DATA; + } + camera->pl->keys_locked = TRUE; + break; + + } + + return GP_OK; +} + +/** + * canon_usb_unlock_keys: + * @camera: camera to unlock keys on + * @context: context for error reporting + * + * Unlocks the keys on cameras that support this + * + * Returns: gphoto2 error code + * + */ +int +canon_usb_unlock_keys (Camera *camera, GPContext *context) +{ + unsigned char *c_res; + unsigned int bytes_read; + + GP_DEBUG ("canon_usb_unlock_keys()"); + + if ( !camera->pl->keys_locked ) + GP_DEBUG ("canon_usb_unlock_keys: keys aren't locked" ); + else + if ( camera->pl->md->model == CANON_CLASS_4 ) { + c_res = canon_usb_dialogue (camera, CANON_USB_FUNCTION_EOS_UNLOCK_KEYS, + &bytes_read, NULL, 0); + if ( c_res == NULL ) + return GP_ERROR_OS_FAILURE; + if (bytes_read == 0x4) { + GP_DEBUG ("canon_usb_unlock_keys: Got the expected length back."); + } else { + gp_context_error (context, + _("canon_usb_unlock_keys: " + "Unexpected length returned (%i bytes, expected %i)"), + bytes_read, 0x4); + return GP_ERROR_CORRUPTED_DATA; + } + camera->pl->keys_locked = FALSE; + } + else if ( camera->pl->md->model == CANON_CLASS_6 ) { + c_res = canon_usb_dialogue (camera, CANON_USB_FUNCTION_UNLOCK_KEYS_2, + &bytes_read, NULL, 0); + if ( c_res == NULL ) + return GP_ERROR_OS_FAILURE; + if (bytes_read == 0x4) { + GP_DEBUG ("canon_usb_unlock_keys: Got the expected length back."); + } else { + gp_context_error (context, + _("canon_usb_unlock_keys: " + "Unexpected length returned (%i bytes, expected %i)"), + bytes_read, 0x4); + return GP_ERROR_CORRUPTED_DATA; + } + camera->pl->keys_locked = FALSE; + } + else { + /* Your camera model does not need unlocking, cannot do unlocking or + * we don't know how to unlock its keys. + */ + GP_DEBUG ("canon_usb_unlock_keys: Key unlocking not implemented for this camera model. " + "If unlocking works when using the Windows software with your camera, " + "please contact %s.", MAIL_GPHOTO_DEVEL); + } + + return GP_OK; +} + +/** + * canon_usb_get_body_id: + * @camera: camera to query + * @context: context for error reporting + * + * Gets the body ID (hardware serial number) from an EOS camera. + * + * Returns: body ID (hardware serial number of camera) or gphoto2 + * error code. + * + */ +static int +canon_usb_get_body_id (Camera *camera, GPContext *context) +{ + unsigned char *c_res; + unsigned int bytes_read; + + GP_DEBUG ("canon_usb_get_body_id()"); + + switch ( camera->pl->md->model ) { + case CANON_CLASS_4: + c_res = canon_usb_dialogue (camera, CANON_USB_FUNCTION_EOS_GET_BODY_ID, + &bytes_read, NULL, 0); + if ( c_res == NULL ) + return GP_ERROR_OS_FAILURE; + else if (bytes_read == 0x8) { + int body_id = le32atoh ( c_res+0x4 ); + GP_DEBUG ("canon_usb_get_body_id: Got the expected length back."); + if ( camera->pl->md->usb_product == 0x3044 ) + /* EOS D30 is a special case */ + GP_DEBUG ("canon_usb_get_body_id: body ID is %04x%05d", (body_id>>16)&0xffff, body_id&0xffff ); + else + GP_DEBUG ("canon_usb_get_body_id: body ID is %u", body_id ); + camera->pl->body_id = body_id; + return GP_OK; + } else { + gp_context_error (context, + _("canon_usb_get_body_id: " + "Unexpected data length returned (%i bytes, expected %i)"), + bytes_read, 0x58); + return GP_ERROR_CORRUPTED_DATA; + } + break; + case CANON_CLASS_6: + c_res = canon_usb_dialogue (camera, CANON_USB_FUNCTION_EOS_GET_BODY_ID_2, + &bytes_read, NULL, 0); + if ( c_res == NULL ) + return GP_ERROR_OS_FAILURE; + else if (bytes_read == 0x8) { + unsigned int body_id = le32atoh ( c_res+0x4 ); + GP_DEBUG ("canon_usb_get_body_id: Got the expected length back."); + GP_DEBUG ("canon_usb_get_body_id: body ID is %010u", body_id ); + camera->pl->body_id = body_id; + return GP_OK; + } else { + gp_context_error (context, + _("canon_usb_get_body_id: " + "Unexpected data length returned (%i bytes, expected %i)"), + bytes_read, 0x58); + return GP_ERROR_CORRUPTED_DATA; + } + break; + default: + /* As far as we know, only EOS models implement the "get body ID" function. */ + GP_DEBUG ("canon_usb_get_body_id: \"Get body ID\" not implemented for this camera model. " + "If the Windows software can read a body ID (hardware serial number) from your camera, " + "please contact %s.", MAIL_GPHOTO_DEVEL); + break; + } + + return GP_OK; +} + +/** + * canon_usb_poll_interrupt_pipe: + * @camera: the Camera to work with + * @buf: buffer to receive data read from the pipe. + * @timeout: time in 1/1000 of a second + * + * Reads the interrupt pipe repeatedly until either + * 1. a non-zero length is returned, + * 2. an error code is returned, or + * 3. the timeout is reached + * + * Returns: + * length of read, or + * zero if the timeout is reached + * gphoto2 error code from read that results in an I/O error. + * + */ +static int canon_usb_poll_interrupt_pipe ( Camera *camera, unsigned char *buf, unsigned int timeout ) +{ + int i = 0, status = 0, oldtimeout; + struct timeval start, end, cur; + double duration; + + memset ( buf, 0x81, 0x40 ); /* Put weird stuff in buffer */ + + gp_port_get_timeout ( camera->port, &oldtimeout ); + gp_port_set_timeout ( camera->port, CANON_FAST_TIMEOUT ); + + /* Read repeatedly until we get either an + error, a non-zero size or hit the timeout. */ + gettimeofday ( &start, NULL ); + while (1) { + unsigned long curduration; + + i++; + status = gp_port_check_int ( camera->port, (char *)buf, 0x40 ); + /* Either some real data, or failure */ + if ( status != 0 && status != GP_ERROR_TIMEOUT) + break; + gettimeofday ( &cur, NULL ); + curduration = (cur.tv_sec-start.tv_sec)*1000 + + (cur.tv_usec-start.tv_usec)/1000; + if (curduration >= timeout) { + /* Timeout is not an error */ + status = 0; + break; + } + } + gettimeofday ( &end, NULL ); + + gp_port_set_timeout ( camera->port, oldtimeout ); + + duration = (double)end.tv_sec + end.tv_usec/1e6; + duration -= (double)start.tv_sec + start.tv_usec/1e6; + if ( status <= 0 ) + GP_DEBUG ( "canon_usb_poll_interrupt_pipe:" + " interrupt read failed after %i tries, %6.3f sec \"%s\"", + i, duration, gp_result_as_string(status) ); + else + GP_DEBUG ( "canon_usb_poll_interrupt_pipe:" + " interrupt packet took %d tries, %6.3f sec", + i+1, duration ); + + return status; +} + + +int +canon_usb_wait_for_event (Camera *camera, int timeout, + CameraEventType *eventtype, void **eventdata, + GPContext *context) +{ + unsigned char buf2[0x40]; /* for reading from interrupt endpoint */ + unsigned char *final_state = NULL; /* For comparing + * before/after + * directories */ + unsigned int directory_state_len, final_state_len; + int status = GP_OK; + + if (!camera->pl->directory_state) + status = canon_usb_list_all_dirs ( camera, &camera->pl->directory_state, &directory_state_len, context ); + if (status < GP_OK) { + GP_DEBUG ("canon_usb_wait_for_event: status %d", status); + return status; + } + + *eventtype = GP_EVENT_TIMEOUT; + *eventdata = NULL; + status = canon_usb_poll_interrupt_pipe ( camera, buf2, timeout ); + GP_DEBUG ("canon_usb_wait_for_event: status %d", status); + if (status <= GP_OK) + return status; + *eventtype = GP_EVENT_UNKNOWN; + GP_DEBUG ("canon_usb_wait_for_event: bytes %x %x %x %x %x", buf2[0],buf2[1],buf2[2],buf2[3],buf2[4]); + switch (buf2[4]) { + case 0x0e: { + CameraFilePath *path; + *eventtype = GP_EVENT_FILE_ADDED; + *eventdata = path = malloc(sizeof(CameraFilePath)); + status = canon_usb_list_all_dirs ( camera, &final_state, &final_state_len, context ); + if (status < GP_OK) + return status; + /* Find new file name in camera directory */ + canon_int_find_new_image ( camera, camera->pl->directory_state, final_state, path ); + if (path->folder[0] != '/') { + free (path); + *eventtype = GP_EVENT_UNKNOWN; + *eventdata = malloc(strlen("Failed to get added filename?")+1); + strcpy (*eventdata, "Failed to get added filename?"); + } + free ( camera->pl->directory_state ); + camera->pl->directory_state = final_state; + return GP_OK; + } + default: + *eventtype = GP_EVENT_UNKNOWN; + *eventdata = malloc(strlen("Unknown CANON event 0x01 0x02 0x03 0x04 0x05")+1); + sprintf (*eventdata,"Unknown CANON event 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x",buf2[0],buf2[1],buf2[2],buf2[3],buf2[4]); + return GP_OK; + } + return GP_OK; +} +/** + * canon_usb_capture_dialogue: + * @camera: the Camera to work with + * @return_length: number of bytes to read from the camera as response + * @photo_status: a pointer to an int that returns a photographic status + * error codes from the camera (if any) if this function + * returns NULL + * @context: context for error reporting + * + * Handles the "capture image" command, where we must read the + * interrupt pipe before getting the normal command response. + * + * We call canon_usb_dialogue() for the actual "release shutter" + * command, then handle the interrupt pipe here. + * + * Returns: a char * that points to the data read from the camera (or + * NULL on failure), and sets what @return_length points to to the number + * of bytes read. If this function returns NULL, return any photographic + * failure error codes in what @photo_status points to. + * + */ +unsigned char * +canon_usb_capture_dialogue (Camera *camera, unsigned int *return_length, int *photo_status, GPContext *context ) +{ + int status; + unsigned char payload[9]; /* used for sending data to camera */ + static unsigned char *buffer; /* used for receiving data from camera */ + unsigned char buf2[0x40]; /* for reading from interrupt endpoint */ + + int mstimeout = -1; /* To save original timeout after shutter release */ + + /* clear this to indicate that no data is there if we abort */ + if (return_length) + *return_length = 0; + + /* for later wait_event */ + if (!camera->pl->directory_state) { + unsigned int directory_state_len; + + status = canon_usb_list_all_dirs ( camera, &camera->pl->directory_state, &directory_state_len, context ); + } + + GP_DEBUG ("canon_usb_capture_dialogue()"); + + *photo_status = 0; /* This should only be checked by the caller + if canon_usb_capture_dialogue() returns null */ + + /* Build payload for command, which contains subfunction code */ + memset (payload, 0x00, sizeof (payload)); + payload[0] = 4; + + + /* First, let's try to make sure the interrupt pipe is clean. */ + while ( (status = canon_usb_poll_interrupt_pipe ( camera, buf2, CANON_FAST_TIMEOUT )) > 0 ); + + /* Shutter release can take a long time sometimes on EOS + * cameras; perhaps buffer is full and needs to be flushed? */ + gp_port_get_timeout (camera->port, &mstimeout); + GP_DEBUG("canon_usb_capture_dialogue: usb port timeout starts at %dms", mstimeout); + gp_port_set_timeout (camera->port, 15000); + + /* now send the packet to the camera */ + if ( camera->pl->md->model != CANON_CLASS_6 ) + buffer = canon_usb_dialogue ( camera, CANON_USB_FUNCTION_CONTROL_CAMERA, + return_length, + payload, 8 ); + else { + buffer = canon_usb_dialogue ( camera, CANON_USB_FUNCTION_CONTROL_CAMERA_2, + return_length, + payload, 9 ); + } + + if ( buffer == NULL ) + return NULL; + + gp_port_set_timeout (camera->port, mstimeout); + GP_DEBUG("canon_usb_capture_dialogue:" + " set camera port timeout back to %d seconds...", mstimeout / 1000 ); + + /* Check the status code from the camera. */ + if ( le32atoh ( buffer ) != 0 ) { + GP_DEBUG ( "canon_usb_capture_dialogue:" + " got nonzero camera status code" + " %08x in response to capture command", le32atoh ( buffer ) ); + goto FAIL; + } + + if ( camera->pl->md->model == CANON_CLASS_6 ) { + /* Don't know what this command does, but the Windows + * software issues it here. */ + htole32a ( payload, 0x0f ); + GP_DEBUG ( "canon_usb_capture_dialogue: Issuing unknown command 0x22 for class 6 camera." ); + buffer = canon_usb_dialogue ( camera, + CANON_USB_FUNCTION_20D_UNKNOWN_2, + return_length, payload, 4 ); + + if ( buffer == NULL ) + GP_DEBUG ( "canon_usb_capture_dialogue: Unknown command 0x22 returned null buffer; continuing anyway." ); + else if ( *return_length != 0x4 ) + GP_DEBUG ( "canon_usb_capture_dialogue: Unknown command 0x22 returned buffer of unexpected size 0x%x; continuing anyway.", + *return_length ); + else if ( le32atoh ( buffer+0x50 ) != 0 ) + GP_DEBUG ( "canon_usb_capture_dialogue: Unknown command 0x22 returned status code 0x%x; continuing anyway.", + le32atoh ( buffer+0x50 ) ); + } + /* Now we need to read from the interrupt pipe. Since we have + to use the short timeout (50 ms), we need to try several + times. + Read until we have completion signaled (0x0a for PowerShot, + 0x0f for EOS, 0x0e for newer EOS) */ + camera->pl->capture_step = 0; + camera->pl->thumb_length = 0; camera->pl->image_length = 0; + camera->pl->image_key = 0x81818181; + + while ( buf2[4] != 0x0f ) { + /* Give the camera a long time ... (even covering bulb exposures) */ + status = canon_usb_poll_interrupt_pipe ( camera, buf2, MAX_INTERRUPT_TRIES*CANON_FAST_TIMEOUT ); + if ( status > 0x17 ) + GP_DEBUG ( "canon_usb_capture_dialogue:" + " interrupt read too long (length=%i)", status ); + else if ( status <= 0 ) + goto FAIL; + + switch ( buf2[4] ) { + case 0x08: + /* Thumbnail size */ + if ( status != 0x17 ) + gp_log (GP_LOG_ERROR, "canon/usb.c", + "canon_usb_capture_dialogue:" + " bogus length 0x%04x" + " for thumbnail size packet", status ); + camera->pl->thumb_length = le32atoh ( buf2+0x11 ); + camera->pl->image_key = le32atoh ( buf2+0x0c ); + GP_DEBUG ( "canon_usb_capture_dialogue: thumbnail size %ld, tag=0x%08lx", + camera->pl->thumb_length, camera->pl->image_key ); + camera->pl->transfer_mode &= ~REMOTE_CAPTURE_THUMB_TO_PC; + /* Special case for class 6 (newer protocol) and the EOS 300D */ + if ( camera->pl->transfer_mode == 0 + && ( camera->pl->md->model == CANON_CLASS_6 || camera->pl->md->usb_product == 0x3084 ) ) + goto EXIT; + break; + case 0x0c: + /* Full image size */ + if ( status != 0x17 ) + gp_log (GP_LOG_ERROR, "canon/usb.c", + "canon_usb_capture_dialogue:" + " bogus length 0x%04x" + " for full image size packet", status ); + camera->pl->image_length = le32atoh ( buf2+0x11 ); + camera->pl->image_key = le32atoh ( buf2+0x0c ); + GP_DEBUG ( "canon_usb_capture_dialogue: full image size: 0x%08lx, tag=0x%08lx", + camera->pl->image_length, camera->pl->image_key ); + camera->pl->transfer_mode &= ~REMOTE_CAPTURE_FULL_TO_PC; + /* Special case for class 6 (newer protocol) and the EOS 300D */ + if (!camera->pl->secondary_image && + camera->pl->transfer_mode == 0 + && ( camera->pl->md->model == CANON_CLASS_6 || camera->pl->md->usb_product == 0x3084 ) ) + goto EXIT; + + break; + case 0x10: + /* Secondary image size, key */ + /* (only for RAW + JPEG modes) */ + GP_DEBUG ( "canon_usb_capture_dialogue: " + "secondary image descriptor received"); + + camera->pl->image_b_length = le32atoh ( buf2+0x11 ); + camera->pl->image_b_key = le32atoh ( buf2+0x0c ); + + GP_DEBUG ( "canon_usb_capture_dialogue: secondary image size: 0x%08lx, tag=0x%08lx", + camera->pl->image_b_length, camera->pl->image_b_key); + camera->pl->transfer_mode &= ~REMOTE_CAPTURE_FULL_TO_PC; + /* Special case for class 6 (newer protocol) and the EOS 300D */ + if ( camera->pl->transfer_mode == 0 + && ( camera->pl->md->model == CANON_CLASS_6 || camera->pl->md->usb_product == 0x3084 ) ) + goto EXIT; + break; + case 0x0a: + if ( buf2[12] == 0x1c ) { + GP_DEBUG ( "canon_usb_capture_dialogue: first interrupt read" ); + if ( camera->pl->capture_step == 0 ) + camera->pl->capture_step++; + else if ( camera->pl->capture_step == 2 ) { + /* I think this may be a signal that this is the last shot + that will fit on the CF card. */ + GP_DEBUG ( "canon_usb_capture_dialogue: redundant \"1c\" code; full CF card?" ); + camera->pl->capture_step = 1; + } + else { + gp_log (GP_LOG_ERROR, "canon/usb.c", + "canon_usb_capture_dialogue:" + " first interrupt read out of sequence"); + goto FAIL; + } + } + else if ( buf2[12] == 0x1d ) { + GP_DEBUG ( "canon_usb_capture_dialogue: second interrupt read (after image sizes)" ); + if ( camera->pl->capture_step != 1 ) { + gp_log (GP_LOG_ERROR, "canon/usb.c", + "canon_usb_capture_dialogue:" + " second interrupt read out of sequence"); + goto FAIL; + } + camera->pl->capture_step++; + /* PowerShot cameras end with this message */ + if ( camera->pl->md->model != CANON_CLASS_4 ) + goto EXIT; + } + else if ( buf2[12] == 0x0a ) { + gp_log (GP_LOG_ERROR, "canon/usb.c", + "canon_usb_capture_dialogue:" + " photographic failure signaled, code = 0x%08x", + le32atoh ( buf2+16 ) ); + *photo_status = le32atoh ( buf2+16 ); + goto FAIL2; + } + else { + GP_DEBUG ( "canon_usb_capture_dialogue: unknown subcode 0x%08x in 0x0a interrupt read", + le32atoh ( buf2+12 ) ); + } + break; + case 0x0e: + /* The image has been written to local + * storage. Never seen if the transfer + * mode didn't include any local + * storage. */ + GP_DEBUG ( "canon_usb_capture_dialogue:" + " EOS flash write complete from interrupt read" ); + if ( camera->pl->capture_step != 2 && camera->pl->md->model != CANON_CLASS_6 ) { + gp_log (GP_LOG_ERROR, "canon/usb.c", + "canon_usb_capture_dialogue:" + " third EOS interrupt read out of sequence"); + goto FAIL; + } + camera->pl->capture_step++; + /* Canon SDK unlocks the keys here for EOS cameras. */ + if ( canon_usb_unlock_keys ( camera, context ) < 0 ) { + GP_DEBUG ( "canon_usb_capture_dialogue: couldn't unlock keys after capture, ignoring." ); + /* goto FAIL; ... known to not work on EOS 10D and 20D. -Marcus */ + } + camera->pl->transfer_mode &= ~(REMOTE_CAPTURE_THUMB_TO_DRIVE|REMOTE_CAPTURE_FULL_TO_DRIVE); + /* Special case for class 6 (newer protocol) and the EOS 300D */ + if ( camera->pl->md->model == CANON_CLASS_6 || + camera->pl->md->usb_product == 0x3083 ||/* EOS 10D */ + camera->pl->md->usb_product == 0x3084 /* EOS 300D */ + ) { + GP_DEBUG ( "canon_usb_capture_dialogue:" + " final interrupt read at step %i", camera->pl->capture_step ); + goto EXIT; + } + + break; + case 0x0f: + /* We allow this message as third or + * fourth, since we may or may not be + * writing to camera storage. */ + if ( camera->pl->capture_step == 2 ) { + /* Keys were never unlocked, as that message never came. */ + if ( canon_usb_unlock_keys ( camera, context ) < 0 ) { + GP_DEBUG ( "canon_usb_capture_dialogue: couldn't unlock keys after capture." ); + goto FAIL; + } + } + else if ( camera->pl->capture_step == 3 ) { + GP_DEBUG ( "canon_usb_capture_dialogue:" + " final EOS interrupt read" ); + } + else { + gp_log (GP_LOG_ERROR, "canon/usb.c", + "canon_usb_capture_dialogue:" + " fourth EOS interrupt read out of sequence"); + goto FAIL; + } + break; + default: + /* Unknown */ + GP_DEBUG ( "canon_usb_capture_dialogue:" + " unknown code 0x%02x in interrupt read", + buf2[4] ); + goto FAIL; + } + } + +EXIT: + *return_length = 0x1c; + return buffer; +FAIL: /* Try to purge interrupt pipe, which was left in an unknown state. */ + status = canon_usb_poll_interrupt_pipe ( camera, buf2, 1000 ); +FAIL2: /* After "photographic error" is signaled, we know pipe is clean. */ + canon_usb_unlock_keys ( camera, context ); /* Ignore status code, as we can't fix it anyway. */ + return NULL; +} + +/** + * canon_usb_decode_status + * @code: status code returned in offset 0x50 in the response + * + * Returns: a string with the error message, or NUL if status is OK. + */ +static char *canon_usb_decode_status ( int code ) { + unsigned int i; + static char message[100]; + + for ( i=0; + ipl->md->model != CANON_CLASS_6 + && canon_usb_cmd[i].num == CANON_USB_FUNCTION_CONTROL_CAMERA ) + || ( camera->pl->md->model == CANON_CLASS_6 + && canon_usb_cmd[i].num == CANON_USB_FUNCTION_CONTROL_CAMERA_2 ) ) { + canon_subfunc = le32atoh (payload); + j = 0; + while (canon_usb_control_cmd[j].num != 0) { + if (canon_usb_control_cmd[j].subcmd == canon_subfunc) { + additional_read_bytes = canon_usb_control_cmd[j].additional_return_length; + break; + } + j++; + } + if (canon_usb_control_cmd[j].num == 0) { + GP_DEBUG("canon_usb_dialogue_full(): CONTROL_CAMERA called for ILLEGAL " + "sub function %i! Aborting.", canon_subfunc); + return NULL; + } + read_bytes += additional_read_bytes; + + GP_DEBUG ("canon_usb_dialogue_full() called with CONTROL_CAMERA, %s", + canon_usb_control_cmd[j].description); + if ( !strcmp ( "Set transfer mode", canon_usb_control_cmd[j].description ) ) { + /* We need to remember the transfer mode, as with + * newer cameras it changes capture + * completion. */ + camera->pl->transfer_mode = payload[8]; + GP_DEBUG ( "canon_usb_dialogue_full() setting transfer mode to %d", + camera->pl->transfer_mode ); + } + } + + if (read_bytes > sizeof (buffer)) { + /* If this message is ever printed, chances are that you just added + * a new command to canon_usb_cmd with a return_length greater than + * all the others and did not update the declaration of 'buffer' in + * this function. + */ + GP_DEBUG ("canon_usb_dialogue_full() " + "read_bytes %i won't fit in buffer of size %li!", read_bytes, + (long)sizeof (buffer)); + return NULL; + } + + if (payload_length) + GP_LOG_DATA ((char *)payload, (long)payload_length, "Payload:"); + + if ((payload_length + 0x50) > sizeof (packet)) { + gp_log (GP_LOG_DEBUG, "canon/usb.c", + "canon_usb_dialogue:" + " payload too big, won't fit into buffer (%i > %i)", + (payload_length + 0x50), (int)sizeof (packet)); + return NULL; + } + + /* OK, we have now checked for all errors I could think of, + * proceed with the actual work. + */ + + /* construct packet to send to camera, including the three + * commands, serial number and a payload if one has been supplied + */ + + memset (packet, 0x00, sizeof (packet)); /* zero block */ + htole32a (packet, 0x10 + payload_length); + packet[0x40] = 0x2; + packet[0x44] = cmd1; + packet[0x47] = cmd2; + htole32a (packet + 0x04, cmd3); + if ( camera->pl->md->model == CANON_CLASS_6 ) { + /* New style of protocol is picky about this byte. */ + if ( cmd3 == 0x202 ) + packet[0x46] = 0x20; + else + packet[0x46] = 0x10; + } + + htole32a (packet + 0x4c, serial_code++); /* serial number */ + htole32a (packet + 0x48, 0x10 + payload_length); + msgsize = 0x50 + payload_length; /* TOTAL msg size */ + + if (payload_length > 0) + memcpy (packet + 0x50, payload, payload_length); + + /* now send the packet to the camera */ + status = gp_port_usb_msg_write (camera->port, msgsize > 1 ? 0x04 : 0x0c, 0x10, 0, + (char *)packet, msgsize); + if (status != msgsize) { + GP_DEBUG ("canon_usb_dialogue_full: write failed! (returned %i)", status); + return NULL; + } + + /* and, if this canon_funct is known to generate a response from the camera, + * read this response back. + */ + + /* Even the new cameras use multiple reads sometimes, + * e.g. "Get camera abilities". */ + if ( camera->pl->md->model != CANON_CLASS_6 && read_bytes <= 0x400 ) { + /* + * Divide read_bytes into two parts. + * + * - The first read is for the length rounded down to a length + * divisible by 0x40. The 32 bits starting at the beginning + * of the buffer may contain the length information; if not, + * the 32 bits starting at offset 0x48 will contain the + * length information, which we check against the expected + * length and log a warning if the two do not agree. We then + * read the rest of the data, if any, in a single chunk. + * + * - The final read is for the remainder of the data. This + * can never be longer than 0x37 bytes. + * + * Read two is optional. If the requested length is only + * 0x40, only the first read will be issued. If the length is + * divisible by 0x40, the second read will be skipped. + * + * We read like this because the Windows driver reads in two + * operations, and some cameras (EOS D30 for example) seem to + * not like it if we were to read read_bytes in a single read + * instead. + * + * We check the size a safety measure: if we are mistaken + * about the length of data returned for some command, we can + * work around it with just a warning. The "get camera + * abilities" command, in particular, seems to vary from + * camera to camera. + */ + read_bytes1 = read_bytes - (read_bytes % 0x40); + status = gp_port_read (camera->port, (char *)buffer, read_bytes1); + if (status != read_bytes1) { + if ( status >= 0 ) + GP_DEBUG ("canon_usb_dialogue_full: read 1 of 0x%x bytes failed! (returned %i)", + read_bytes1, status); + else /* Error code */ + GP_DEBUG ("canon_usb_dialogue_full: read 1 of 0x%x bytes failed! (%s)", + read_bytes1, gp_result_as_string ( status ) ); + return NULL; + } + + if ( cmd3 != 0x202 ) { + unsigned int reported_length = le32atoh (buffer); + if ( reported_length == 0 ) { + /* No length at start of packet. Did we read enough to + * see the length later on? */ + GP_DEBUG ( "canon_usb_dialogue_full: no length at start of packet." ); + if ( read_bytes1 >= 0x50 ) { + reported_length = le32atoh (buffer+0x48); + GP_DEBUG ( "canon_usb_dialogue_full: got length from offset 0x48." ); + } + } + GP_DEBUG ("canon_usb_dialogue_full: camera reports 0x%x bytes (0x%x total)", + reported_length, reported_length+0x40 ); + + if ( reported_length > 0 && reported_length+0x40 != read_bytes ) { + gp_log (GP_LOG_DEBUG, "canon/usb.c", + "canon_usb_dialogue:" + " expected 0x%x bytes, but camera reports 0x%x", + read_bytes, reported_length+0x40 ); + read_bytes = reported_length+0x40; + } + } + + read_bytes2 = read_bytes - read_bytes1; + + if ( read_bytes2 > 0 ) { + status = gp_port_read (camera->port, (char *)buffer + read_bytes1, read_bytes2); + if (status != read_bytes2) { + if ( status >= 0 ) + GP_DEBUG ("canon_usb_dialogue_full: read 2 of %i bytes failed! (returned %i)", + read_bytes2, status); + else /* Error code */ + GP_DEBUG ("canon_usb_dialogue_full: read 2 of %i bytes failed! (%s)", + read_bytes2, gp_result_as_string ( status ) ); + return NULL; + } + } + } + else { + /* Newer protocol: these cameras allow (and some + * demand) the host software to read the entire + * response in one operation. */ + status = gp_port_read (camera->port, (char *)buffer, read_bytes ); + if ( status != (int)read_bytes ) { + if ( status >= 0 ) + GP_DEBUG ("canon_usb_dialogue_full: single read of %i bytes failed! (returned %i)", + read_bytes, status); + else /* Error code */ + GP_DEBUG ("canon_usb_dialogue_full: single read of %i bytes failed! (%s)", + read_bytes, gp_result_as_string ( status ) ); + return NULL; + } + } + + msg = canon_usb_decode_status ( le32atoh ( buffer+0x50 ) ); + if ( msg != NULL ) { + GP_DEBUG ( "canon_usb_dialogue_full: camera status \"%s\"" + " in response to command 0x%x 0x%x 0x%x (%s)", + msg, cmd1, cmd2, cmd3, funct_descr ); + return NULL; + } + + if (return_length) + *return_length = read_bytes; + return buffer; + } + +/** + * canon_usb_dialogue: + * @camera: the Camera to work with + * @canon_funct: integer constant that identifies function we are execute + * @return_length: number of bytes to read from the camera as response + * @payload: data we are to send to the camera + * @payload_length: length of #payload + * + * USB version of the #canon_serial_dialogue function. + * + * We construct a packet with the known command values (cmd{1,2,3}) of + * the function requested (#canon_funct) to the camera. If #return_length + * exists for this function, we read #return_length bytes back from the + * camera and return this camera response to the caller. + * + * Example : + * + * This function gets called with + * #canon_funct = %CANON_USB_FUNCTION_SET_TIME + * #payload = already constructed payload with the new time + * we construct a complete command packet and send this to the camera. + * The canon_usb_cmdstruct indicates that command + * CANON_USB_FUNCTION_SET_TIME returns four bytes, so we read those + * four bytes into our buffer and return a pointer to the buffer to + * the caller. + * + * This should probably be changed so that the caller supplies a + * unsigned char ** which can be pointed to our buffer and an int + * returned with GP_OK or some error code. + * + * Returns: a char * that points to the data read from the camera (or + * NULL on failure), and sets what @return_length points to to the number + * of bytes read. + * + */ +unsigned char * +canon_usb_dialogue (Camera *camera, canonCommandIndex canon_funct, unsigned int *return_length, const unsigned char *payload, + unsigned int payload_length) +{ + unsigned char *buffer; + + buffer = canon_usb_dialogue_full (camera, canon_funct, return_length, + payload, payload_length); + + /* Remove the packet header from the response */ + if (return_length) + *return_length = *return_length - 0x50; + if (buffer) + return buffer + 0x50; + else + return NULL; +} + + +/** + * canon_usb_long_dialogue: + * @camera: the Camera to work with + * @canon_funct: integer constant that identifies function we are execute + * @data: Pointer to pointer to allocated memory holding the data returned from the camera + * @data_length: Pointer to where you want the number of bytes read from the camera + * @max_data_size: Max realistic data size so that we can abort if something goes wrong + * @payload: data we are to send to the camera + * @payload_length: length of #payload + * @display_status: Whether you want progress bar for this operation or not + * @context: context for error reporting + * + * This function is used to invoke camera commands which return L (long) data. + * It calls #canon_usb_dialogue(), if it gets a good response it will malloc() + * memory and read the entire returned data into this malloc'd memory and store + * a pointer to the malloc'd memory in 'data'. + * + * Returns: gphoto2 error code + * + */ +int +canon_usb_long_dialogue (Camera *camera, canonCommandIndex canon_funct, unsigned char **data, + unsigned int *data_length, unsigned int max_data_size, const unsigned char *payload, + unsigned int payload_length, int display_status, GPContext *context) +{ + int bytes_read; + unsigned int dialogue_len; + unsigned int total_data_size = 0, bytes_received = 0, read_bytes = camera->pl->xfer_length; + unsigned char *lpacket; /* "length packet" */ + unsigned int id = 0; + + /* indicate there is no data if we bail out somewhere */ + *data_length = 0; + + GP_DEBUG ("canon_usb_long_dialogue() function %i, payload = %i bytes", canon_funct, + payload_length); + + /* Call canon_usb_dialogue_full(), this will not return any data "the usual way" + * but after this we read 0x40 bytes from the USB port, the int at pos 6 in + * the returned data holds the total number of bytes we are to read. + */ + lpacket = + canon_usb_dialogue_full (camera, canon_funct, &dialogue_len, payload, payload_length); + if (lpacket == NULL) { + GP_DEBUG ("canon_usb_long_dialogue: canon_usb_dialogue returned error!"); + return GP_ERROR_OS_FAILURE; + } + /* This check should not be needed since we check the return of canon_usb_dialogue() + * above, but as the saying goes: better safe than sorry. + */ + if (dialogue_len != 0x40) { + GP_DEBUG ("canon_usb_long_dialogue: canon_usb_dialogue " + "returned %i bytes, not the length " + "we expected (%i)!. Aborting.", dialogue_len, 0x40); + return GP_ERROR_CORRUPTED_DATA; + } + + total_data_size = le32atoh (lpacket + 0x6); + + if (display_status) + id = gp_context_progress_start (context, total_data_size, + _("Receiving data...")); + + if (max_data_size && (total_data_size > max_data_size)) { + GP_DEBUG ("canon_usb_long_dialogue: ERROR: Packet of size %i is too big " + "(max reasonable size specified is %i)", total_data_size, + max_data_size); + return GP_ERROR_CORRUPTED_DATA; + } + *data = malloc (total_data_size); + if (!*data) { + GP_DEBUG ("canon_usb_long_dialogue: " + "ERROR: Could not allocate %i bytes of memory", total_data_size); + return GP_ERROR_NO_MEMORY; + } + + bytes_received = 0; + while (bytes_received < total_data_size) { + if ((total_data_size - bytes_received) > camera->pl->xfer_length ) + /* Limit max transfer length */ + read_bytes = camera->pl->xfer_length; + else if ((total_data_size - bytes_received) > 0x040 && camera->pl->md->model != CANON_CLASS_6 ) + /* Round longer transfers down to nearest 0x40 */ + read_bytes = (total_data_size - bytes_received) / 0x40 * 0x40; + else + /* Final transfer; use true length */ + read_bytes = (total_data_size - bytes_received); + + GP_DEBUG ("canon_usb_long_dialogue: total_data_size = %i, " + "bytes_received = %i, read_bytes = %i (0x%x)", total_data_size, + bytes_received, read_bytes, read_bytes); + bytes_read = gp_port_read (camera->port, (char *)*data + bytes_received, read_bytes); + if (bytes_read < 1) { + GP_DEBUG ("canon_usb_long_dialogue: gp_port_read() returned error (%i) or no data", + bytes_read); + free (*data); + *data = NULL; + + /* here, it is an error to get 0 bytes from gp_port_read() + * too, but 0 is GP_OK so if bytes_read is 0 return GP_ERROR_CORRUPTED_DATA + * instead, otherwise return bytes_read since that is the + * error code returned by gp_port_read() + */ + if (bytes_read < 0) + return bytes_read; + else + return GP_ERROR_CORRUPTED_DATA; + } else if ((unsigned int)bytes_read < read_bytes) + GP_DEBUG ("canon_usb_long_dialogue: WARNING: gp_port_read() resulted in short read " + "(returned %i bytes, expected %i)", bytes_read, read_bytes); + bytes_received += bytes_read; + + if (display_status) + gp_context_progress_update (context, id, bytes_received); + } + if (display_status) + gp_context_progress_stop (context, id); + + *data_length = total_data_size; + + return GP_OK; +} + +/** + * canon_usb_get_file: + * @camera: camera to use + * @name: name of file to fetch + * @data: to receive image data + * @length: to receive length of image data + * @context: context for error reporting + * + * Get a file from a USB-connected Canon camera. + * + * Returns: gphoto2 error code, length in @length, and image data in @data. + * + */ +int +canon_usb_get_file (Camera *camera, const char *name, unsigned char **data, unsigned int *length, + GPContext *context) +{ + char payload[100]; + int payload_length, res, offset; + + GP_DEBUG ("canon_usb_get_file() called for file '%s'", name); + + /* Construct payload containing file name, buffer size and + * function request. See the file Protocol.xml in the doc/ + * directory for more information. + */ + if ( camera->pl->md->model == CANON_CLASS_6 ) { + offset = 4; + if ( offset + strlen (name) > sizeof (payload) - 2 ) { + GP_DEBUG ("canon_usb_get_file: ERROR: " + "Supplied file name '%s' does not fit in payload buffer.", name); + return GP_ERROR_BAD_PARAMETERS; + } + htole32a (payload, 0x0); /* get picture */ + strncpy ( payload+offset, name, sizeof(payload)-offset-1 ); + payload[offset + strlen (payload+offset)] = 0; + payload_length = offset + strlen (payload+offset) + 2; + GP_DEBUG ( "canon_usb_get_file: payload 0x%08x:%s", + le32atoh(payload), payload+offset ); + } + else { + offset = 8; + if ( offset + strlen (name) > sizeof (payload) - 1 ) { + GP_DEBUG ("canon_usb_get_file: ERROR: " + "Supplied file name '%s' does not fit in payload buffer.", name); + return GP_ERROR_BAD_PARAMETERS; + } + htole32a (payload, 0x0); /* get picture */ + htole32a (payload + 0x4, camera->pl->xfer_length); + strncpy ( payload+offset, name, sizeof(payload)-offset ); + payload_length = offset + strlen (payload+offset) + 1; + GP_DEBUG ( "canon_usb_get_file: payload 0x%08x:0x%08x:%s", + le32atoh(payload), le32atoh(payload+4), payload+offset ); + } + + /* the 1 is to show status */ + res = canon_usb_long_dialogue (camera, CANON_USB_FUNCTION_GET_FILE, data, length, + camera->pl->md->max_movie_size, (unsigned char *)payload, + payload_length, 1, context); + if (res != GP_OK) { + GP_DEBUG ("canon_usb_get_file: canon_usb_long_dialogue() " + "returned error (%i).", res); + return res; + } + + return GP_OK; +} + +/** + * canon_usb_get_thumbnail: + * @camera: camera to use + * @name: name of thumbnail to fetch + * @data: to receive image data + * @length: to receive length of image data + * @context: context for error reporting + * + * Gets a thumbnail, including EXIF info, from a USB_connected Canon + * camera. + * + * Returns: gphoto2 error code, length in @length, and image data in + * @data. + * + */ +int +canon_usb_get_thumbnail (Camera *camera, const char *name, unsigned char **data, unsigned int *length, + GPContext *context) +{ + char payload[100]; + unsigned int payload_length; + int res, offset; + + GP_DEBUG ("canon_usb_get_thumbnail() called for file '%s'", name); + + if ( camera->pl->md->model == CANON_CLASS_6 ) { + /* Construct payload containing file name and function + * request. See the file Protocol.xml in directory + * camlibs/canon/doc for more information. + */ + + offset = 4; + if ( offset + strlen (name) > sizeof (payload) - 2 ) { + GP_DEBUG ("canon_usb_get_thumbnail: ERROR: " + "Supplied file name '%s' does not fit in payload buffer.", name); + return GP_ERROR_BAD_PARAMETERS; + } + strncpy ( payload+offset, name, sizeof(payload)-offset-1 ); + payload[offset + strlen (payload+offset)] = 0; + payload_length = offset + strlen (payload+offset) + 2; + htole32a (payload, 0x1); /* get thumbnail */ + GP_DEBUG ( "canon_usb_get_thumbnail: payload 0x%08x:%s", + le32atoh(payload), payload+offset ); + } + else { + /* Construct payload containing file name, buffer size + * and function request. See the file Protocol.xml in + * directory camlibs/canon/doc for more information. + */ + + offset = 8; + if ( offset + strlen (name) > sizeof (payload) - 1 ) { + GP_DEBUG ("canon_usb_get_thumbnail: ERROR: " + "Supplied file name '%s' does not fit in payload buffer.", name); + return GP_ERROR_BAD_PARAMETERS; + } + htole32a (payload, 0x1); /* get thumbnail */ + htole32a (payload + 0x4, camera->pl->xfer_length); + strncpy ( payload+offset, name, sizeof(payload)-offset ); + payload_length = offset + strlen (payload+offset) + 1; + GP_DEBUG ( "canon_usb_get_thumbnail: payload 0x%08x:0x%08x:%s", + le32atoh(payload), le32atoh(payload+4), payload+offset ); + } + + /* 0 is to not show status */ + res = canon_usb_long_dialogue (camera, CANON_USB_FUNCTION_GET_FILE, data, length, + camera->pl->md->max_thumbnail_size, (unsigned char *)payload, + payload_length, 0, context); + + if (res != GP_OK) { + GP_DEBUG ("canon_usb_get_thumbnail: canon_usb_long_dialogue() " + "returned error (%i).", res); + return res; + } + + return GP_OK; +} + +/** + * canon_usb_get_captured_image: + * @camera: camera to lock keys on + * @key: index of image to fetch, returned from canon_usb_capture_dialogue() + * @data: to receive image data + * @length: to receive length of image data + * @context: context for error reporting + * + * Gets the just-captured image from a USB-connected Canon + * camera. This function must be called soon after an image capture, + * and needs the image key returned by canon_usb_capture_dialogue(). + * + * Returns: gphoto2 error code, length in @length, and image data in @data. + * + */ +int +canon_usb_get_captured_image (Camera *camera, const int key, unsigned char **data, unsigned int *length, + GPContext *context) +{ + unsigned char payload[16]; + int payload_length = 16, result; + + GP_DEBUG ("canon_usb_get_captured_image() called"); + + /* Construct payload containing buffer size and function request. + * See the file Protocol in this directory for more information. + */ + htole32a (payload, 0x0); /* always zero */ + htole32a (payload + 0x4, camera->pl->xfer_length); + htole32a (payload + 0x8, CANON_DOWNLOAD_FULL); + htole32a (payload + 0xc, key); + + /* the 1 is to show status */ + if ( camera->pl->md->model == CANON_CLASS_6 ) + result = canon_usb_long_dialogue (camera, CANON_USB_FUNCTION_RETRIEVE_CAPTURE_2, data, length, + 0, payload, + payload_length, 1, context); + else + result = canon_usb_long_dialogue (camera, CANON_USB_FUNCTION_RETRIEVE_CAPTURE, data, length, + 0, payload, + payload_length, 1, context); + if (result != GP_OK) { + GP_DEBUG ("canon_usb_get_captured_image: canon_usb_long_dialogue() " + "returned error (%i).", result); + return result; + } + + return GP_OK; +} + +/** + * canon_usb_get_captured_secondary_image: + * @camera: camera to work on + * @key: index of image to fetch, returned from canon_usb_capture_dialogue() + * @data: to receive image data + * @length: to receive length of image data + * @context: context for error reporting + * + * Gets the just-captured image from a USB-connected Canon + * camera. This function must be called soon after an image capture, + * and needs the image key returned by canon_usb_capture_dialogue(). + * This function is only used for "secondary images," e.g., the JPEGs + * downloaded when the camera's capture image format mode is set to "RAW + JPEG" + * + * Returns: gphoto2 error code, length in @length, and image data in @data. + * + */ +int +canon_usb_get_captured_secondary_image (Camera *camera, const int key, unsigned char **data, unsigned int *length, + GPContext *context) +{ + unsigned char payload[16]; + int payload_length = 16, result; + + GP_DEBUG ("canon_usb_get_captured_secondary_image() called"); + + /* Construct payload containing buffer size and function request. + * See the file Protocol in this directory for more information. + */ + htole32a (payload, 0x0); /* always zero */ + htole32a (payload + 0x4, camera->pl->xfer_length); + htole32a (payload + 0x8, CANON_DOWNLOAD_SECONDARY); + htole32a (payload + 0xc, key); + + /* the 1 is to show status */ + if ( camera->pl->md->model == CANON_CLASS_6 ) + result = canon_usb_long_dialogue (camera, CANON_USB_FUNCTION_RETRIEVE_CAPTURE_2, data, length, + 0, payload, + payload_length, 1, context); + else + result = canon_usb_long_dialogue (camera, CANON_USB_FUNCTION_RETRIEVE_CAPTURE, data, length, + 0, payload, + payload_length, 1, context); + if (result != GP_OK) { + GP_DEBUG ("canon_usb_get_captured_secondary_image: canon_usb_long_dialogue() " + "returned error (%i).", result); + return result; + } + + return GP_OK; +} + +/** + * canon_usb_get_captured_thumbnail: + * @camera: camera to lock keys on + * @key: index of image to fetch, returned from canon_usb_capture_dialog() + * @data: to receive thumbnail data + * @length: to receive length of thumbnail data + * @context: context for error reporting + * + * Gets the just-captured thumbnail from a USB-connected Canon + * camera. This function must be called after a remote image capture, + * before leaving remote capture mode, and needs the image key + * returned by canon_usb_capture_dialog(). + * + * Returns: gphoto2 error code, length in @length, and thumbnail data in @data. + * + */ +int +canon_usb_get_captured_thumbnail (Camera *camera, const int key, unsigned char **data, unsigned int *length, + GPContext *context) +{ + unsigned char payload[16]; + int payload_length = 16, result; + + GP_DEBUG ("canon_usb_get_captured_thumbnail() called"); + + /* Construct payload containing buffer size and function request. + * See the file Protocol in this directory for more information. + */ + htole32a (payload, 0x0); /* get picture */ + htole32a (payload + 0x4, camera->pl->xfer_length); + htole32a (payload + 0x8, CANON_DOWNLOAD_THUMB); + htole32a (payload + 0xc, key); + + /* the 1 is to show status */ + if ( camera->pl->md->model == CANON_CLASS_6 ) + result = canon_usb_long_dialogue (camera, CANON_USB_FUNCTION_RETRIEVE_CAPTURE_2, data, length, + 0, payload, + payload_length, 1, context); + else + result = canon_usb_long_dialogue (camera, CANON_USB_FUNCTION_RETRIEVE_CAPTURE, data, length, + 0, payload, + payload_length, 1, context); + if (result != GP_OK) { + GP_DEBUG ("canon_usb_get_captured_thumbnail: canon_usb_long_dialogue() " + "returned error (%i).", result); + return result; + } + + return GP_OK; +} + +/** + * canon_usb_set_file_time: + * @camera: camera to unlock keys on + * @camera_filename: Full pathname to use on camera + * @time: Unix time to store in camera directory + * @context: context for error reporting + * + * Finishes the upload of an image to a Canon camera. Must be called + * after the last data transfer completes. + * + * Returns: gphoto2 error code + * + */ +int canon_usb_set_file_time ( Camera *camera, char *camera_filename, time_t time, GPContext *context) +{ + unsigned char *result_buffer; + unsigned int payload_size = 0x4 + strlen(camera_filename) + 2, + bytes_read; + unsigned char *payload = malloc ( payload_size ); + + if ( payload == NULL ) { + GP_DEBUG ( "canon_usb_set_file_time:" + " failed to allocate payload block." ); + gp_context_error(context, _("Out of memory: %d bytes needed."), + payload_size ); + return GP_ERROR_NO_MEMORY; + } + memset ( payload, 0, payload_size ); + + strncpy ( (char *)payload + 0x4, camera_filename, strlen(camera_filename) ); + htole32a ( payload, time ); /* Load specified time for camera directory. */ + result_buffer = canon_usb_dialogue ( camera, CANON_USB_FUNCTION_SET_FILE_TIME, + &bytes_read, payload, payload_size ); + free ( payload ); + if ( result_buffer == NULL ) { + GP_DEBUG ( "canon_usb_set_file_time:" + " dialogue failed." ); + return GP_ERROR_OS_FAILURE; + } + return GP_OK; +} + +/** + * canon_usb_set_file_attributes: + * @camera: camera to initialize + * @attr_bits: bits to write in the camera directory entry + * @pathname: pathname of file whose attributes are to be changed. + * @context: context for error reporting + * + * Changes the attribute bits in a specified directory entry. + * + * Returns: gphoto2 error code + * + */ +int +canon_usb_set_file_attributes (Camera *camera, unsigned int attr_bits, + const char *dir, const char *file, + GPContext *context) +{ + /* Pathname string plus 32-bit parameter plus two NULs. */ + unsigned int payload_length = 4 + strlen (dir) + 1 + strlen (file) + 2; + unsigned char *payload = calloc ( payload_length, sizeof ( unsigned char ) ); + unsigned int bytes_read; + unsigned char *res; + + GP_DEBUG ( "canon_usb_set_file_attributes()" ); + GP_DEBUG ( "canon_usb_set_file_attributes(): payload is %d=0x%x bytes; string length is %d=0x%x", + payload_length, payload_length, (int)strlen(dir), (int)strlen(dir) ); + /* build payload : + * + * directory 0x00 file 0x00 0x00 + * + * The attribute bits will be a 32-bit little-endian integer. + */ + memset (payload, 0x00, payload_length); + memcpy (payload + 4, dir, strlen (dir)); + memcpy (payload + 4 + strlen(dir) + 1, file, strlen (file) ); + htole32a ( payload, (unsigned long)attr_bits ); + + if ( camera->pl->md->model == CANON_CLASS_6 ) + res = canon_usb_dialogue ( camera, CANON_USB_FUNCTION_SET_ATTR_2, &bytes_read, + payload, payload_length ); + else + res = canon_usb_dialogue ( camera, CANON_USB_FUNCTION_SET_ATTR, &bytes_read, + payload, payload_length ); + if ( res == NULL ) { + gp_context_error (context, + _("canon_usb_set_file_attributes: " + "canon_usb_dialogue failed")); + free ( payload ); + return GP_ERROR_OS_FAILURE; + } + else if ( le32atoh ( res+0x50 ) != 0 ) { + gp_context_message (context, + _("Warning in canon_usb_set_file_attributes: " + "canon_usb_dialogue returned error status 0x%08x from camera"), + le32atoh ( res+0x50 ) ); + } + + free ( payload ); + return GP_OK; +} + + +/** + * canon_usb_put_file: + * @camera: camera to lock keys on + * @file: CameraFile object to upload + * @destname: name file should have on camera + * @destpath: pathname for directory to put file + * @context: context for error reporting + * + * Uploads file to USB camera + * + * Bugs: + * at the moment, files bigger than 65572-length(filename), while being + * correctly uploaded, cause the camera to not accept any more uploads. + * Smaller files work fine. + * s10sh (http://www.kyuzz.org/antirez/s10sh.html) has the same problem. + * The problem only appears when USB deinitialisation and initialisation + * is performed between uploads. You can call this function more than + * once with big files during one session without encountering the problem + * described. + * + * Returns: gphoto2 error code + * + */ + +#ifndef CANON_EXPERIMENTAL_UPLOAD +int +canon_usb_put_file (Camera __unused__ *camera, CameraFile __unused__ *file, + const char __unused__ *filename, const char __unused__ *destname, const char __unused__ *destpath, + GPContext __unused__ *context) +{ + return GP_ERROR_NOT_SUPPORTED; +} + +#else /* else ifdef CANON_EXPERIMENTAL_UPLOAD */ + +int +canon_usb_put_file (Camera *camera, CameraFile *file, + const char *xfilename, const char *destname, const char *destpath, + GPContext *context) +{ + long int packet_size = USB_BULK_WRITE_SIZE; + char buffer[0x80]; + long int len1,len2; + int status; + long int offs = 0; + char filename[256]; + int filename_len; + char *data; + char *newdata = NULL; + long int size; /* Total size of file to upload */ + FILE *fi; + const char *srcname; + char *packet; + struct stat filestat; /* To get time from Unix file */ + + GP_DEBUG ( "canon_put_file_usb()" ); + + sprintf(filename, "%s%s", destpath, destname); + filename_len = strlen(filename); + + packet = malloc(packet_size + filename_len + 0x5d); + + if(!packet) { + int len = packet_size + filename_len + 0x5d; + GP_DEBUG ("canon_put_file_usb: Couldn't reserve %d bytes of memory", len); + gp_context_error(context, _("Out of memory: %d bytes needed."), len); + return GP_ERROR_NO_MEMORY; + } + + GP_DEBUG ( "canon_put_file_usb: converting file name" ); + status = gp_file_get_name (file, &srcname) + if (status < GP_OK) { + free (packet); + return status; + } + + /* Open input file and read all its data into a buffer. */ + if(!gp_file_get_data_and_size (file, (const char **)&data, &size)) { + fi = fopen(srcname, "rb"); + if(!fi) { + gp_context_error(context, _("Couldn't read from file \"%s\""), srcname); + free(packet); + return GP_ERROR_OS_FAILURE; + } + fstat ( fileno(fi), &filestat ); + fseek(fi, 0, SEEK_END); + size = ftell(fi); + fseek(fi, 0, SEEK_SET); + newdata = data = malloc(size); + if(!newdata) { + gp_context_error(context, _("Out of memory: %ld bytes needed."), size); + free(packet); + return GP_ERROR_NO_MEMORY; + } + fread(newdata, size, 1, fi); + fclose(fi); + } + + GP_DEBUG ( "canon_put_file_usb:" + " finished reading file, %ld bytes (0x%lx)", + size, size ); + + /* Take the buffer and send it to the camera, breaking it into + * packets of suitable size. */ + while(offs < size) { + len2 = packet_size; + if(size - offs < len2) + len2 = size - offs; + len1 = len2 + 0x1c + filename_len + 1; + + GP_DEBUG ( "canon_put_file_usb: len1=%lx, len2=%lx", len1, len2 ); + + memset(packet, 0, 0x40); + packet[4]=3; + packet[5]=2; + htole32a ( packet + 0x6, len1 + 0x40 ); + htole32a (packet + 0x4c, serial_code++); /* Serial number */ + + /* now send the packet to the camera */ + status = gp_port_usb_msg_write (camera->port, 0x04, 0x10, 0, + packet, 0x40); + if (status != 0x40) { + GP_DEBUG ("canon_put_file_usb: write 1 failed! (returned %i)", status); + gp_context_error(context, _("File upload failed.")); + if(newdata) + free(newdata); + free(packet); + return GP_ERROR_CORRUPTED_DATA; + } + + status = gp_port_read (camera->port, buffer, 0x40); + if (status != 0x40) { + GP_DEBUG ("canon_put_file_usb: read 1 failed! " + "(returned %i, expected %i)", status, 0x40); + gp_context_error(context, _("File upload failed.")); + if(newdata) + free(newdata); + free(packet); + return GP_ERROR_CORRUPTED_DATA; + } + + memset(packet, 0, len1 + 0x40); + /* Length of this block (minus 0x40) */ + htole32a ( packet, len1 ); + + /* Fill in codes */ + packet[0x04] = 3; + packet[0x05] = 4; + packet[0x40] = 2; + packet[0x44] = 3; + packet[0x47] = 0x11; + + /* Copy of bytes 0:3 */ + htole32a ( packet+0x48, len1 ); + + /* Serial number */ + htole32a (packet + 0x4c, serial_code++); + + htole32a ( packet+0x54, offs ); + + /* Max length of data block */ + htole32a ( packet+0x58, len2 ); + + strcpy(&packet[0x5c], filename); + memcpy(&packet[0x5c+filename_len+1], &data[offs], len2); + + status = gp_port_write (camera->port, packet, len1+0x40); + if (status != len1+0x40) { + GP_DEBUG ("canon_put_file_usb: write 2 failed! " + "(returned %i, expected %li)", status, len1+0x40); + gp_context_error(context, _("File upload failed.")); + if(newdata) + free(newdata); + free(packet); + if ( status < 0 ) + return GP_ERROR_OS_FAILURE; + else + return GP_ERROR_CORRUPTED_DATA; + } + + status = gp_port_read (camera->port, buffer, 0x40); + if (status != 0x40) { + GP_DEBUG ("canon_put_file_usb: read 2 failed! " + "(returned %i, expected %i)", status, 0x5c); + gp_context_error(context, _("File upload failed.")); + if(newdata) + free(newdata); + free(packet); + if ( status < 0 ) + return GP_ERROR_OS_FAILURE; + else + return GP_ERROR_CORRUPTED_DATA; + } + + status = gp_port_read (camera->port, buffer, 0x1c); + if (status != 0x1c) { + GP_DEBUG ("canon_put_file_usb: read 3 failed! " + "(returned %i, expected %i)", status, 0x5c); + gp_context_error(context, _("File upload failed.")); + if(newdata) + free(newdata); + free(packet); + if ( status < 0 ) + return GP_ERROR_OS_FAILURE; + else + return GP_ERROR_CORRUPTED_DATA; + } + else { + char *msg = canon_usb_decode_status ( le32atoh ( buffer+0x50 ) ); + if ( msg != NULL ) { + GP_DEBUG ( "canon_put_file_usb: camera status \"%s\" during upload", + msg ); + } + } + offs += len2; + } + + /* Now we finish the job. */ + canon_usb_set_file_time ( camera, filename, filestat.st_mtime, context ); + + canon_usb_set_file_attributes ( camera, (unsigned int)0, + destpath, destname, context ); + + if(size > 65572-filename_len) { + gp_context_message(context, _("File was too big. You may have to turn your camera off and back on before uploading more files.")); + } + + if(newdata) + free(newdata); + free(packet); + return GP_OK; +} +#endif /* CANON_EXPERIMENTAL_UPLOAD */ + + +/** + * canon_usb_get_dirents: + * @camera: camera to initialize + * @dirent_data: to receive directory data + * @dirents_length: to receive length of @dirent_data + * @path: pathname of directory to list + * @context: context for error reporting + * + * Lists a directory. + * + * Returns: gphoto2 error code + * + */ +int +canon_usb_get_dirents (Camera *camera, unsigned char **dirent_data, + unsigned int *dirents_length, const char *path, GPContext *context) +{ + unsigned char payload[100]; + unsigned int payload_length; + int res; + + *dirent_data = NULL; + + /* build payload : + * + * 0x00 dirname 0x00 0x00 0x00 + * + * the 0x00 before dirname means 'no recursion' + * NOTE: the first 0x00 after dirname is the NULL byte terminating + * the string, so payload_length is strlen(dirname) + 4 + */ + if (strlen (path) + 4 > sizeof (payload)) { + GP_DEBUG ("canon_usb_get_dirents: " + "Path '%s' too long (%li), won't fit in payload buffer.", path, + (long)strlen (path)); + gp_context_error (context, + _("canon_usb_get_dirents: " + "Couldn't fit payload into buffer, " + "'%.96s' (truncated) too long."), path); + return GP_ERROR_BAD_PARAMETERS; + } + memset (payload, 0x00, sizeof (payload)); + memcpy (payload + 1, path, strlen (path)); + payload_length = strlen (path) + 4; + + /* 1024 * 1024 is max realistic data size, out of the blue. + * 0 is to not show progress status + */ + res = canon_usb_long_dialogue (camera, CANON_USB_FUNCTION_GET_DIRENT, dirent_data, + dirents_length, 1024 * 1024, payload, payload_length, 0, + context); + if (res != GP_OK) { + gp_context_error (context, + _("canon_usb_get_dirents: " + "canon_usb_long_dialogue failed to fetch direntries, " + "returned %i"), res); + return res; + + } + + return GP_OK; +} + +/** + * canon_usb_list_all_dirs: + * @camera: camera to initialize + * @dirent_data: to receive directory data + * @dirents_length: to receive length of @dirent_data + * @context: context for error reporting + * + * Lists all directories on camera. This can be executed before and + * after a "capture image" operation. By comparing the results, we can + * see where the new image went. Unfortunately, this seems to be the + * only way to find out, as Canon doesn't return that information from + * a capture command. + * + * Returns: gphoto2 error code + * + */ +int +canon_usb_list_all_dirs (Camera *camera, unsigned char **dirent_data, + unsigned int *dirents_length, GPContext *context) +{ + unsigned char payload[100]; + unsigned int payload_length; + char *disk_name = canon_int_get_disk_name (camera, context); + int res; + + *dirent_data = NULL; + + if (!disk_name) /* should only happen on IO error */ + return GP_ERROR_IO; + + /* build payload : + * + * 0x0f dirname 0x00 0x00 0x00 + * + * the 0x0f before dirname means 'recurse to level 15', which + * should get all the directories on the camera. + * NOTE: the first 0x00 after dirname is the NULL byte terminating + * the string, so payload_length is strlen(dirname) + 4 + */ + if (strlen (disk_name) + 4 > sizeof (payload)) { + GP_DEBUG ("canon_usb_list_all_dirs: " + "Path '%s' too long (%li), won't fit in payload buffer.", + disk_name, (long)strlen (disk_name)); + gp_context_error (context, + _("canon_usb_list_all_dirs: " + "Couldn't fit payload into buffer, " + "'%.96s' (truncated) too long."), disk_name); + return GP_ERROR_BAD_PARAMETERS; + } + memset (payload, 0x00, sizeof (payload)); + memcpy (payload + 1, disk_name, strlen (disk_name)); + payload[0] = 0x0f; /* Recursion depth */ + payload_length = strlen (disk_name) + 4; + free ( disk_name ); + + /* Give no max data size. + * 0 is to not show progress status + */ + res = canon_usb_long_dialogue (camera, CANON_USB_FUNCTION_GET_DIRENT, (unsigned char **)dirent_data, + dirents_length, 0, payload, payload_length, 0, + context); + if (res != GP_OK) { + gp_context_error (context, + _("canon_usb_list_all_dirs: " + "canon_usb_long_dialogue failed to fetch direntries, " + "returned %i"), res); + return res; + } + + return GP_OK; +} + +/** + * canon_usb_ready: + * @camera: camera to check + * + * Checks whether camera is available for communication. + * + * Returns: gphoto2 error code + * GP_OK if camera is ready + * + */ +int +canon_usb_ready (Camera *camera, GPContext __unused__ *context) +{ + unsigned char *msg; + unsigned int len; + + GP_DEBUG ("canon_usb_ready()"); + + /* "Identify camera" seems to be a command compatible with all + * cameras, and one that doesn't change the camera state. */ + msg = canon_usb_dialogue (camera, CANON_USB_FUNCTION_IDENTIFY_CAMERA, + &len, NULL, 0); + if ( msg == NULL ) + return GP_ERROR_OS_FAILURE; + + return GP_OK; +} + + +/** + * canon_usb_identify: + * @camera: camera to identify + * @context: context for error reporting + * GP_ERROR_MODEL_NOT_FOUND if not found in our list; + * this is a code inconsistency. + * GP_OK otherwise + * + * Identify a supported camera by looking through our list of models. + * + * Returns: gphoto2 error code + * + */ +static int +canon_usb_identify (Camera *camera, GPContext *context) +{ + CameraAbilities a; + int i, res; + + res = gp_camera_get_abilities (camera, &a); + if (res != GP_OK) { + GP_DEBUG ("canon_usb_identify: Could not get camera abilities: %s", + gp_result_as_string (res)); + return res; + } + + /* ahem. isn't this a tautology? */ + + /* Formerly, we matched strings here. + * Now we just match USB Vendor/Product IDs to work around + * the colon/space problem. (FIXME) + */ + for (i = 0; models[i].id_str != NULL; i++) { + if (models[i].usb_vendor + && models[i].usb_product + && (a.usb_vendor == models[i].usb_vendor) + && (a.usb_product == models[i].usb_product)) { + GP_DEBUG ("canon_usb_identify: USB ID match 0x%04x:0x%04x (model name \"%s\")", + models[i].usb_vendor, models[i].usb_product, models[i].id_str); + gp_context_status (context, _("Detected a '%s'."), models[i].id_str); + camera->pl->md = (struct canonCamModelData *) &models[i]; + return GP_OK; + } + } + + gp_context_error (context, _("Name \"%s\" from camera does not match any known camera"), a.model); + + return GP_ERROR_MODEL_NOT_FOUND; +} + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/usb.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/usb.h new file mode 100644 index 00000000..68626f88 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/usb.h @@ -0,0 +1,298 @@ +/**************************************************************************** + * + * File: usb.h + * + ****************************************************************************/ + +#ifndef _CANON_USB_H +#define _CANON_USB_H + +/** + * USB_BULK_READ_SIZE + * + * Maximum size to be used for a USB "bulk read" operation + * + */ +#define USB_BULK_READ_SIZE 0x1400 + + +/** + * USB_BULK_WRITE_SIZE + * + * Maximum size to be used for a USB "bulk write" operation + * + */ +/* #define USB_BULK_WRITE_SIZE 0xC000 */ +#define USB_BULK_WRITE_SIZE 0x1400 + +/** + * canonCommandIndex: + * @CANON_USB_FUNCTION_GET_FILE: Command to download a file from the camera. + * @CANON_USB_FUNCTION_IDENTIFY_CAMERA: Command to read the firmware version and + * strings with the camera type and owner from the camera. + * @CANON_USB_FUNCTION_GET_TIME: Command to get the time in Unix time format from the camera. + * @CANON_USB_FUNCTION_SET_TIME: Command to set the camera's internal time. + * @CANON_USB_FUNCTION_MKDIR: Command to create a directory on the camera storage device. + * @CANON_USB_FUNCTION_CAMERA_CHOWN: Change "owner" string on camera + * @CANON_USB_FUNCTION_RMDIR: Command to delete a directory from camera storage. + * @CANON_USB_FUNCTION_DISK_INFO: Command to get disk information from + * the camera, given a disk designator (e.g. "D:"). Returns total + * capacity and free space. + * @CANON_USB_FUNCTION_FLASH_DEVICE_IDENT: Command to request the disk specifier + * (drive letter) for the storage device being used. + * @CANON_USB_FUNCTION_POWER_STATUS: Command to query the camera for its power status: + * battery vs. mains, and whether the battery is low. + * @CANON_USB_FUNCTION_GET_DIRENT: Get directory entries + * @CANON_USB_FUNCTION_DELETE_FILE: Delete file + * @CANON_USB_FUNCTION_DISK_INFO_2: get disk info for newer protocol + * (capacity and free space) + * @CANON_USB_FUNCTION_SET_ATTR: Command to set the attributes of a + * file on the camera (e.g. downloaded, protect from delete). + * @CANON_USB_FUNCTION_GET_PIC_ABILITIES: Command to "get picture + * abilities", which seems to be a list of the different sizes and + * quality of images that are available on this camera. Not + * implemented (and will cause an error) on the EOS cameras or on + * newer PowerShot cameras such as S45, G3, G5. + * @CANON_USB_FUNCTION_GENERIC_LOCK_KEYS: Command to lock keys (and + * turn on "PC" indicator) on non-EOS cameras. + * @CANON_USB_FUNCTION_EOS_LOCK_KEYS: Lock keys (EOS cameras) + * @CANON_USB_FUNCTION_EOS_UNLOCK_KEYS: Unlock keys (EOS cameras) + * @CANON_USB_FUNCTION_RETRIEVE_CAPTURE: Command to retrieve the last + * image captured, depending on the transfer mode set via + * %CANON_USB_FUNCTION_CONTROL_CAMERA with subcommand + * %CANON_USB_CONTROL_SET_TRANSFER_MODE. + * @CANON_USB_FUNCTION_RETRIEVE_PREVIEW: Command to retrieve a preview + * image. + * @CANON_USB_FUNCTION_CONTROL_CAMERA: Remote camera control (with + * many subcodes) + * @CANON_USB_FUNCTION_FLASH_DEVICE_IDENT_2: Command to request the + * disk specifier (drive letter) for the storage device being + * used. Used with the "newer" protocol, e.g. with EOS 20D. + * @CANON_USB_FUNCTION_POWER_STATUS_2: Command to query the camera for + * its power status: battery vs. mains, and whether the battery is + * low. Used in the "newer" protocol, e.g. with EOS 20D. + * @CANON_USB_FUNCTION_UNKNOWN_FUNCTION: Don't know what this is for; + * it has been sighted in USB trace logs for an EOS D30, but not for + * a D60 or for any PowerShot camera. + * @CANON_USB_FUNCTION_EOS_GET_BODY_ID: Command to read the body ID (serial number) + * from an EOS camera. + * @CANON_USB_FUNCTION_SET_FILE_TIME: Set file time + * @CANON_USB_FUNCTION_20D_UNKNOWN_1: First seen with EOS 20D, not yet understood. + * @CANON_USB_FUNCTION_20D_UNKNOWN_2: First seen with EOS 20D, not yet understood. + * @CANON_USB_FUNCTION_EOS_GET_BODY_ID_2: Same function as + * %CANON_USB_FUNCTION_EOS_GET_BODY_ID, but first seen on EOS 20D. + * @CANON_USB_FUNCTION_GET_PIC_ABILITIES_2: Same function as + * %CANON_USB_FUNCTION_GET_PIC_ABILITIES, but first seen on EOS 20D. + * @CANON_USB_FUNCTION_CONTROL_CAMERA_2: Replacement for + * %CANON_USB_FUNCTION_CONTROL_CAMERA, with many similarities, first + * seen with EOS 20D. + * @CANON_USB_FUNCTION_RETRIEVE_CAPTURE_2: Same function as + * %CANON_USB_FUNCTION_RETRIEVE_CAPTURE, but first seen on EOS 20D. + * @CANON_USB_FUNCTION_LOCK_KEYS_2: Same as %CANON_USB_FUNCTION_EOS_LOCK_KEYS, + * but for newer protocol. + * @CANON_USB_FUNCTION_UNLOCK_KEYS_2: Same as %CANON_USB_FUNCTION_EOS_UNLOCK_KEYS, + * but for newer protocol. + * @CANON_USB_FUNCTION_SET_ATTR_2: Presumed code to set attribute bits + * for a file on an EOS 20D and its ilk. + * @CANON_USB_FUNCTION_CAMERA_CHOWN_2: Same as %CANON_USB_FUNCTION_CAMERA_CHOWN, + * but for newer protocol. + * @CANON_USB_FUNCTION_GET_OWNER: Gets just the owner name, in newer protocol. + * + * Codes to give to canon_usb_dialogue() or canon_usb_long_dialogue() + * to select which command to issue to the camera. See the protocol + * document for details. + */ + +typedef enum { + CANON_USB_FUNCTION_GET_FILE = 1, + CANON_USB_FUNCTION_IDENTIFY_CAMERA, + CANON_USB_FUNCTION_GET_TIME, + CANON_USB_FUNCTION_SET_TIME, + CANON_USB_FUNCTION_MKDIR, + CANON_USB_FUNCTION_CAMERA_CHOWN, + CANON_USB_FUNCTION_RMDIR, + CANON_USB_FUNCTION_DISK_INFO, + CANON_USB_FUNCTION_FLASH_DEVICE_IDENT, + CANON_USB_FUNCTION_POWER_STATUS, + CANON_USB_FUNCTION_GET_DIRENT, + CANON_USB_FUNCTION_DELETE_FILE, + CANON_USB_FUNCTION_SET_ATTR, + CANON_USB_FUNCTION_GET_PIC_ABILITIES, + CANON_USB_FUNCTION_GENERIC_LOCK_KEYS, + CANON_USB_FUNCTION_EOS_LOCK_KEYS, + CANON_USB_FUNCTION_EOS_UNLOCK_KEYS, + CANON_USB_FUNCTION_RETRIEVE_CAPTURE, + CANON_USB_FUNCTION_RETRIEVE_PREVIEW, + CANON_USB_FUNCTION_CONTROL_CAMERA, + CANON_USB_FUNCTION_DISK_INFO_2, + CANON_USB_FUNCTION_FLASH_DEVICE_IDENT_2, + CANON_USB_FUNCTION_POWER_STATUS_2, + CANON_USB_FUNCTION_UNKNOWN_FUNCTION, + CANON_USB_FUNCTION_EOS_GET_BODY_ID, + CANON_USB_FUNCTION_SET_FILE_TIME, + CANON_USB_FUNCTION_20D_UNKNOWN_1, + CANON_USB_FUNCTION_20D_UNKNOWN_2, + CANON_USB_FUNCTION_EOS_GET_BODY_ID_2, + CANON_USB_FUNCTION_GET_PIC_ABILITIES_2, + CANON_USB_FUNCTION_CONTROL_CAMERA_2, + CANON_USB_FUNCTION_RETRIEVE_CAPTURE_2, + CANON_USB_FUNCTION_LOCK_KEYS_2, + CANON_USB_FUNCTION_UNLOCK_KEYS_2, + CANON_USB_FUNCTION_DELETE_FILE_2, + CANON_USB_FUNCTION_SET_ATTR_2, + CANON_USB_FUNCTION_CAMERA_CHOWN_2, + CANON_USB_FUNCTION_GET_OWNER, +} canonCommandIndex; + +/** + * canonSubcommandIndex: + * @CANON_USB_CONTROL_INIT: Enter camera control mode + * @CANON_USB_CONTROL_SHUTTER_RELEASE: Release camera shutter (capture still) + * @CANON_USB_CONTROL_SET_PARAMS: Set release parameters (AE mode, beep, etc.) + * @CANON_USB_CONTROL_SET_TRANSFER_MODE: Set transfer mode for next image + * capture. Either the full image, a thumbnail or both may be either + * stored on the camera, downloaded to the host, or both. + * @CANON_USB_CONTROL_GET_PARAMS: Read the same parameters set by + * @CANON_USB_CONTROL_SET_PARAMS. + * @CANON_USB_CONTROL_GET_ZOOM_POS: Get the position of the zoom lens + * @CANON_USB_CONTROL_SET_ZOOM_POS: Set the position of the zoom lens + * @CANON_USB_CONTROL_GET_EXT_PARAMS_SIZE: Get the size of the "extended + * release parameters". + * @CANON_USB_CONTROL_GET_EXT_PARAMS: Get the "extended release parameters". + * @CANON_USB_CONTROL_EXIT: Leave camera control mode; opposite of + * @CANON_USB_CONTROL_INIT. + * @CANON_USB_CONTROL_VIEWFINDER_START: Switch video viewfinder on. + * @CANON_USB_CONTROL_VIEWFINDER_STOP: Swictch video viewfinder off. + * @CANON_USB_CONTROL_GET_AVAILABLE_SHOT: Get estimated number of images + * that can be captured in current mode before filling flash card. + * @CANON_USB_CONTROL_SET_CUSTOM_FUNC: Not yet seen in USB trace. + * @CANON_USB_CONTROL_GET_CUSTOM_FUNC: Read custom functions from an EOS camera + * @CANON_USB_CONTROL_GET_EXT_PARAMS_VER: Not yet seen in USB trace. + * @CANON_USB_CONTROL_SET_EXT_PARAMS: Not yet seen in USB trace. + * @CANON_USB_CONTROL_SELECT_CAM_OUTPUT: Not yet seen in USB trace. + * @CANON_USB_CONTROL_DO_AE_AF_AWB: Not yet seen in USB trace. + * @CANON_USB_CONTROL_UNKNOWN_1: part of new protocol, function unknown. + * @CANON_USB_CONTROL_UNKNOWN_2: part of new protocol, function unknown. + * + * CANON_USB_FUNCTION_CONTROL_CAMERA commands are used for a wide range + * of remote camera control actions. A control_cmdstruct is defined + * below for the following remote camera control options. + */ +typedef enum { + CANON_USB_CONTROL_INIT = 1, + CANON_USB_CONTROL_SHUTTER_RELEASE, + CANON_USB_CONTROL_SET_PARAMS, + CANON_USB_CONTROL_SET_TRANSFER_MODE, + CANON_USB_CONTROL_GET_PARAMS, + CANON_USB_CONTROL_GET_ZOOM_POS, + CANON_USB_CONTROL_SET_ZOOM_POS, + CANON_USB_CONTROL_GET_EXT_PARAMS_SIZE, + CANON_USB_CONTROL_GET_EXT_PARAMS, + CANON_USB_CONTROL_EXIT, + CANON_USB_CONTROL_VIEWFINDER_START, + CANON_USB_CONTROL_VIEWFINDER_STOP, + CANON_USB_CONTROL_GET_AVAILABLE_SHOT, + CANON_USB_CONTROL_SET_CUSTOM_FUNC, /* Not yet seen in USB trace */ + CANON_USB_CONTROL_GET_CUSTOM_FUNC, + CANON_USB_CONTROL_GET_EXT_PARAMS_VER, /* Not yet seen in USB trace */ + CANON_USB_CONTROL_SET_EXT_PARAMS, /* Not yet seen in USB trace */ + CANON_USB_CONTROL_SELECT_CAM_OUTPUT, /* Not yet seen in USB trace */ + CANON_USB_CONTROL_DO_AE_AF_AWB, /* Not yet seen in USB trace */ + CANON_USB_CONTROL_UNKNOWN_1, + CANON_USB_CONTROL_UNKNOWN_2 +} canonSubcommandIndex; + + +struct canon_usb_control_cmdstruct +{ + canonSubcommandIndex num; + char *description; + char subcmd; + int cmd_length; + int additional_return_length; +}; + +/** + * MAX_INTERRUPT_TRIES + * + * Maximum number of times to try a read from the interrupt pipe. We + * will keep reading until an error, a read of non-zero length, or for + * a maximum of this many times. + */ +#define MAX_INTERRUPT_TRIES 12000 + + + +struct canon_usb_cmdstruct +{ + canonCommandIndex num; + char *description; + char cmd1, cmd2; + int cmd3; + int return_length; +}; + + +/* USB command data structures defined in usb.c */ +/*extern const struct canon_usb_cmdstruct canon_usb_cmd[];*/ + +extern const struct canon_usb_control_cmdstruct canon_usb_control_cmd[]; + + +/* For mapping status codes to intelligible messages */ +struct canon_usb_status { + int code; + char *message; +}; + +/**************************************************************************** + * + * prototypes + * + ****************************************************************************/ + +int canon_usb_init (Camera *camera, GPContext *context); +int canon_usb_set_file_time ( Camera *camera, char *camera_filename, time_t time, GPContext *context); +int canon_usb_put_file (Camera *camera, CameraFile *file, const char *filename, const char *destname, const char *destpath, + GPContext *context); +unsigned char *canon_usb_capture_dialogue (Camera *camera, unsigned int *return_length, int *photo_status, GPContext *context ); +unsigned char *canon_usb_dialogue_full (Camera *camera, canonCommandIndex canon_funct, + unsigned int *return_length, const unsigned char *payload, unsigned int payload_length); +unsigned char *canon_usb_dialogue (Camera *camera, canonCommandIndex canon_funct, + unsigned int *return_length, const unsigned char *payload, unsigned int payload_length); +int canon_usb_long_dialogue (Camera *camera, canonCommandIndex canon_funct, unsigned char **data, + unsigned int *data_length, unsigned int max_data_size, const unsigned char *payload, + unsigned int payload_length, int display_status, GPContext *context); +int canon_usb_get_file (Camera *camera, const char *name, unsigned char **data, unsigned int *length, GPContext *context); +int canon_usb_get_thumbnail (Camera *camera, const char *name, unsigned char **data, unsigned int *length, GPContext *context); +int canon_usb_get_captured_image (Camera *camera, const int key, unsigned char **data, unsigned int *length, GPContext *context); +int canon_usb_get_captured_secondary_image (Camera *camera, const int key, unsigned char **data, unsigned int *length, GPContext *context); +int canon_usb_get_captured_thumbnail (Camera *camera, const int key, unsigned char **data, unsigned int *length, GPContext *context); +int canon_usb_lock_keys(Camera *camera, GPContext *context); +int canon_usb_unlock_keys(Camera *camera, GPContext *context); +int canon_usb_get_dirents (Camera *camera, unsigned char **dirent_data, unsigned int *dirents_length, const char *path, GPContext *context); +int canon_usb_list_all_dirs (Camera *camera, unsigned char **dirent_data, + unsigned int *dirents_length, GPContext *context); +int canon_usb_set_file_attributes (Camera *camera, + unsigned int attr_bits, + const char *dir, const char *file, + GPContext *context); +int canon_usb_ready (Camera *camera, GPContext *context); + +int canon_usb_wait_for_event (Camera *camera, int timeout, + CameraEventType *eventtype, void **eventdata, + GPContext *context); +#endif /* _CANON_USB_H */ + +/**************************************************************************** + * + * End of file: usb.h + * + ****************************************************************************/ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/util.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/util.c new file mode 100644 index 00000000..5f4b21c3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/util.c @@ -0,0 +1,288 @@ +/**************************************************************************** + * + * File: util.c + * + * Utility functions for the gphoto2 camlibs/canon driver. + * + ****************************************************************************/ + +/**************************************************************************** + * + * include files + * + ****************************************************************************/ + +#include "config.h" + +#include +#include +#include +#include + +#include +#include + +#include "canon.h" +#include "util.h" +#include "library.h" + +/** + * is_thumbnail: + * @name: name of file to examine + * + * Test whether the given @name corresponds to a thumbnail (.THM). + * + * Returns: + * 1 if filename is the name of a thumbnail (i.e. ends with ".THM" ) + * 0 if not + * + */ +int +is_thumbnail (const char *name) +{ + const char *pos; + int res = 0; + + pos = strchr (name, '.'); + if (pos) + res = (!strcmp (pos, ".THM")); + + GP_DEBUG ("is_thumbnail(%s) == %i", name, res); + return (res); +} + +/** + * is_audio: + * @name: name of file to examine + * + * Test whether the given @name corresponds to an audio file (.WAV). + * + * Returns: + * 1 if filename is the name of an audio file (i.e. ends with ".WAV" ) + * 0 if not + * + */ +int +is_audio (const char *name) +{ + const char *pos; + int res = 0; + + pos = strchr (name, '.'); + if (pos) + res = (!strcmp (pos, ".WAV")); + + GP_DEBUG ("is_audio(%s) == %i", name, res); + return (res); +} + +/** + * is_image: + * @name: name of file to examine + * + * Tests whether the given @name corresponds to an image (.JPG, .CR2, or .CRW). + * + * Returns: + * 1 if filename is the name of an image + * 0 if not + * + */ +int +is_image (const char *name) +{ + const char *pos; + int res = 0; + + pos = strchr (name, '.'); + if (pos) { + res |= !strcmp (pos, ".JPG"); + res |= !strcmp (pos, ".CRW"); + res |= !strcmp (pos, ".CR2"); + } + + GP_DEBUG ("is_image(%s) == %i", name, res); + return (res); +} + +/** + * is_jpeg: + * @name: name of file to examine + * + * Test whether the given @name corresponds to a JPEG image (.JPG). + * Returns: + * 1 if filename is the name of a JPEG image (i.e. ends with ".JPG" ) + * 0 if not + * + */ +int +is_jpeg (const char *name) +{ + const char *pos; + int res = 0; + + pos = strchr (name, '.'); + if (pos) + res = (!strcmp (pos, ".JPG")); + + GP_DEBUG ("is_jpeg(%s) == %i", name, res); + return (res); +} + +/** + * is_crw: + * @name: name of file to examine + * + * Tests whether the name given corresponds to a raw CRW image (.CRW). + * + * Returns: + * 1 if filename is the name of a traditional Canon raw image (i.e. ends with .CRW) + * 0 if not + * + */ +int +is_crw (const char *name) +{ + const char *pos; + int res = 0; + + pos = strchr (name, '.'); + if (pos) + res = !strcmp (pos, ".CRW"); + + GP_DEBUG ("is_crw(%s) == %i", name, res); + return (res); +} + +/** + * is_cr2: + * @name: name of file to examine + * + * Tests whether the name given corresponds to a raw CR2 image (.CR2). + * + * Returns: + * 1 if filename is the name of a CR2 raw image (i.e. ends with .CR2) + * 0 if not + * + */ +int +is_cr2 (const char *name) +{ + const char *pos; + int res = 0; + + pos = strchr (name, '.'); + if (pos) + res = !strcmp (pos, ".CR2"); + + GP_DEBUG ("is_cr2(%s) == %i", name, res); + return (res); +} + +/** + * is_movie: + * @name: name of file to examine + * + * Test whether the name given corresponds + * to a movie (.AVI) + * + * Returns: + * 1 if filename is the name of a movie (i.e. ends with ".AVI" ) + * 0 if not + * + */ +int +is_movie (const char *name) +{ + const char *pos; + int res = 0; + + pos = strchr (name, '.'); + if (pos) + res = (!strcmp (pos, ".AVI")); + + GP_DEBUG ("is_movie(%s) == %i", name, res); + return (res); +} + +/** + * filename2mimetype: + * @filename: name of file to examine + * + * Deduces MIME type of file by considering the file name ending. + * + * Returns: pointer to immutable string with the MIME type + */ + +const char * +filename2mimetype (const char *filename) +{ + const char *pos = strchr (filename, '.'); + + if (pos) { + if (!strcmp (pos, ".AVI")) + return GP_MIME_AVI; + else if (!strcmp (pos, ".JPG")) + return GP_MIME_JPEG; + else if (!strcmp (pos, ".WAV")) + return GP_MIME_WAV; + else if (!strcmp (pos, ".THM")) + return GP_MIME_JPEG; + else if (!strcmp (pos, ".CRW")) + return GP_MIME_CRW; + else if (!strcmp (pos, ".CR2")) + return GP_MIME_CRW; + } + return GP_MIME_UNKNOWN; +} + +void dump_hex ( FILE *fp, void *buffer, int length ) { + unsigned char *data = (unsigned char *)buffer; + int i, j, full_lines, remainder; + char output_line[17]; + + /* Dump a buffer in hexadecimal */ + full_lines = length / 16; + remainder = length % 16; + output_line[16] = 0; + + for ( i=0; i= 32 && data[i+j] < 127 ) + output_line[j] = data[i+j]; + else + output_line[j] = '.'; + } + fprintf ( fp, " %s\n", output_line ); + } + if ( remainder > 0 ) { + fprintf ( fp, "%04x: ", i ); + for ( j=0; j= 32 && data[i+j] < 127 ) + output_line[j] = data[i+j]; + else + output_line[j] = '.'; + } + output_line[j] = 0; + for (; j<16; j++ ) + fprintf ( fp, " " ); /* Pad line to same length */ + fprintf ( fp, " %s\n", output_line ); + } + fprintf ( fp, "\n" ); +} + + +/**************************************************************************** + * + * End of file: util.c + * + ****************************************************************************/ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/util.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/util.h new file mode 100644 index 00000000..f95ccbab --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/canon/util.h @@ -0,0 +1,49 @@ +/**************************************************************************** + * + * File: util.h + * + ****************************************************************************/ + +#ifndef _CANON_UTIL_H +#define _CANON_UTIL_H + +#include "gphoto2-endian.h" + +#ifndef TRUE +#define TRUE 1 +#endif +#ifndef FALSE +#define FALSE 0 +#endif + +/**************************************************************************** + * + * prototypes + * + ****************************************************************************/ +void dump_hex ( FILE *fp, void *buffer, int length ); + +int is_thumbnail (const char *name); +int is_audio (const char *name); +int is_image (const char *name); +int is_movie (const char *name); +int is_jpeg (const char *name); +int is_crw (const char *name); +int is_cr2 (const char *name); + +const char *filename2mimetype(const char *filename); + +#endif /* _CANON_UTIL_H */ + +/**************************************************************************** + * + * End of file: util.h + * + ****************************************************************************/ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/ChangeLog new file mode 100644 index 00000000..f7ce5143 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/ChangeLog @@ -0,0 +1,86 @@ +2005-07-22 Lutz Mueller + + Patch by Michael Haardt : + + * casio-qv.c: Fix capture function and name of captured picture. List all + authors in about. Fix camera abilities. + +2005-01-21 Marcus Meissner + + * casio-qv.c: marked up strings for translation. + +2005-01-10 Michael Haardt + + * casio-qv.c: + corrected preview type to PPM + do not explictly append filename of captured image to filesystem + reset line speed and power down interface on exit + * casio-qv-commands.c: + capture works now + ping camera after changing line speed + +2004-12-22 Hubert Figuiere + + * ycctoppm.c (QVycctoppm): C syntax cleanup + +2004-05-03 Lutz Mueller + + * casio-qv.c + * casio-qv-commands.[c,h]: New patch by Michael Haardt + . Default speed now 115200. + +2004-05-02 Lutz Mueller + + * casio-qv.c (and others): Patch that enables deletion of pictures. + Provided by Michael Haardt. + +2004-05-02 Lutz Mueller + + * ycctoppm.[c,h]: New files on request of Michael Haardt. + * Makefile.am + +2004-04-06 Lutz Mueller + + * cam2jpgtab.h: New. + * casio-qv.c: According to Michael Haardt , the + driver now downloads images. + +2004-04-06 Lutz Mueller + + * camtojpeg.[c,h] + * jpegtab_f.h: New file submitted by Michael Haardt + . + +2004-03-23 Lutz Mueller + + * casio-qv.c (camera_init): Patch by Michael Haardt + . + +2003-12-03 Hubert Figuiere + + * casio-qv.c (camera_init): hardcode speed to 9600 bauds + +2003-09-05 Hubert Figuiere + + * PROTOCOL.txt: added protocol description + +2003-01-08 Lutz Müller + + * casio-qv.c (camera_init): Cosmetic change. + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-09-19 Lutz Müller + + * casio-qv.c (camera_init): Fix initialization. + * casio-qv-commands.[c,h] (QVgetthumb): New. + +2002-09-17 Lutz Müller + + * casio-qv-commands.[c,h] (QVsetspeed): New. + +2002-09-16 Lutz Müller + + * casio-qv-commands.c (QVping): Fix. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/Makefile-files new file mode 100644 index 00000000..f1a6c642 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/Makefile-files @@ -0,0 +1,16 @@ +# -*- Makefile -*- + +EXTRA_DIST += casio/PROTOCOL.txt casio/ChangeLog + +EXTRA_LTLIBRARIES += casio_qv.la + +casio_qv_la_SOURCES = \ + casio/casio-qv.c \ + casio/casio-qv-commands.c casio/casio-qv-commands.h \ + casio/camtojpeg.c casio/camtojpeg.h \ + casio/cam2jpgtab.h casio/jpegtab_f.h \ + casio/ycctoppm.c casio/ycctoppm.h + +casio_qv_la_LDFLAGS = $(camlib_ldflags) +casio_qv_la_DEPENDENCIES = $(camlib_dependencies) +casio_qv_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/PROTOCOL.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/PROTOCOL.txt new file mode 100644 index 00000000..6fd42653 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/PROTOCOL.txt @@ -0,0 +1,650 @@ +[ + PREAMBLE: this file comes from qvplay-0.95 that is available at + http://www.asahi-net.or.jp/~XG2K-HYS/qvplay-0.95.tar.gz + This copy is here for convenience to gphoto2 developers. +] + 1998.07.20 + ken-ichi HAYASHI +============================================================================= + + QV-10 SERIAL COMMUNICATIONS PROTOCOL + +============================================================================= + + This document describes the serial communication protocol used by + QV-10's "DIGITAL" connecter. This information is not official. + Rather, it is the result of individual analysis. Please. Do *not* + contact CASIO to ask questions about this information. + + You should read source code of 'qvplay' too. + +============================= +S E R I A L P R O T O C O L +============================= + + * 9600baud 8 bit stop bit 1 Non parity + * No flow control + * RTS off + * CTS,DTR on + +CASIO's QV-10 serial cable is a level converter. It converts RS-232C +voltage levels to QV-10's voltage levels. This voltage converter circuit +uses the electrical power supplied by the host computer's RS-232C +connector. (V+ is CTS, V- is RTS.) To recieve digital data from QV-10, +set the CTS terminal to ON, RTS terminal to OFF. + +On power-up, QV-10 serial communication speed defaults to 9600baud. This +speed may be changed with the'CB' command, described below. This change +remains in effect until power off or another 'CB' command. + +----- +=========================== +C O M M A N D F O R M A T +=========================== + +Commands generally follow this format: + 0x05 0xXX 0xXX ... 0x06 (hex) +That is, a command flag (0x05, or ENQ) followed by command parameters, +followed by an ACK. (0x06). + + +====================== +C O M M A N D L I S T +====================== + + above the line: data sent to QV-10 + --------------------------------------- + below the line: data recieved from QV-10 + +ASCII code values are quoted. +All other values are hex. + +RESET CAMERA +============ + +* Reset Camera #1 + + 05 'QR' 06 + ------------ Reset QV10. + 06 5c + +Comment: + This command is acceptable, in all states. + The meaning of 0x5c is checksum. + Checksum value is reverse bits of all sum of command bytes and + palameter bytes . + ~('Q(51)' + 'R(52)') = 5c + +* Reset Camera #2 + + 05 'QE' 06 + ------------ Reset QV10. + 06 69 + +Comment: + This command does not clear the QV10's LCD. + The meaning of 0x69 is checksum. + + +QUERY PICTURE NUMBER +==================== + + 05 'MP' 06 + -------------- Fetch number of pictures in QV10 + 06 62 XX + +Comment: + Number of pictures in QV10 returned at XX. + The meaning of 0x62 is checksum. + + +SHOW PICTURE #XX ON LCD +====================== + + 05 'DA' XX 06 + ---------------- Show picture on QV10's LCD. + 06 YY + +Comment: + Picture number is specified by XX. + The return byte YY is checksum. (0x7a - XX ) + + +GET PICTURE DATA IN JPEG FORMAT +=================================== + 05 'DA' XX 06 05 'DL' 06 05 'MG' 06 12 06 + -------------------------------------------------------------------- + 06 YY 06 6f 06 6b [Picture Data] [Picture Data] + + 06 06 06 + -----------------------------......---------------- + [Picture Data] [Picture Data] 02 00 00 03 FC + + +Comment: + XX is the picture number. + The return byte YY is checksum. (0x7a - XX). + Return byte 6f is checksum. + Return byte 6b is checksum. + 02 00 00 03 FC should be end marker. + If you want to get 'fine mode(640x480)' picture data in QV100, + you must use 'Mg' instead of 'MG'. + +FORMAT OF [Picture Data] +======================== + + 02 WW WW JJ JJ JJ JJ JJ ........ 17 SS + +Comment: + WW WW: Data Block Size (2 bytes): (Normally 0x00 0x80, 128 bytes) + The data preceeding the endmark(02 00 00 03 FC) is its + block size(under 0x00 0x80). + JJ: Picture data. (Image Area of CAM format) + (Please refer to the CAM format information below). + SS: Check sum. Reverse bits of all sum of second byte (after 0x02) + of data block to before SS (0x17). + +SEND JPEG FORMAT PICTURE DATA TO QV-10 +====================================== + + 05 'MH' 06 [Picture Data] [Picture Data] + ------------------------------------------ + 06 6a 12 06 06 + + [Picture Data] [Picture Data] 02 00 00 03 FC + ----------------------------......---------------- + 06 06 06 + + 05 'DJ' 06 + -------------- + 06 ZZ + + +Comment: + The return byte 6a is checksum. + The return byte ZZ(normaly 06 ?) is unknown. + [Picture Data] format is the same as above. + The procedure of send a 'fine mode(640x480)' picture for QV100 is unknown. + +GET THUMBNAIL IMAGE AS "YCC" FORMAT +=================================== + + 05 'DA' XX 06 05 'DL' 06 05 'MK' 06 12 06 + -------------------------------------------------------------------- + 06 YY 06 6f 06 67 [Picture Data] [Picture Data] + + 06 06 06 + ----------------------------......---------------- + [Picture Data] [Picture Data] 02 00 00 03 FC + +Comment: + XX: Picture Number + YY: checksum. (0x7a - XX) + The return byte 6f is checksum. + The return byte 67 is checksum. + +FORMAT OF [PICTURE DATA] +======================== + + 02 WW WW TT TT TT TT TT ........ 17 SS + +Comment: + WW WW: Data block size. (2byte). + Normally 0x00 0x80 (128 bytes) + The data preceeding the endmark(02 00 00 03 FC) is its + block size(under 0x00 0x80). + TT: Picture data. (YCC format) + SS: Check sum. + Reverse bits of all sum of second byte (after 0x02) + of data block to before SS (0x17). + Thumbnail image size is 52(W)x36(H). + + In 2808 bytes, + the first 1872 bytes contain Y element data(0 to 255), + the second 468 bytes contain Cb element data(-128 to 127), + the third 468 bytes contain Cr element data(-128 to 127). + + The Y element is represented by an unsigned char. + Cb and Cr elements are represented by signed char. + The formula to convert YCC to RGB, is described in "ppm.c". + (qvplay's source file) + + +GET PICTURE DATA IN YCC FORMAT +================================== + + 05 'DA' XX 06 05 'DL' 06 05 'ML' 06 12 06 + -------------------------------------------------------------------- + 06 YY 06 6f 06 66 [Picture Data] [Picture Data] + + 06 06 06 + ----------------------------......---------------- + [Picture Data] [Picture Data] 02 00 00 03 FC + + +Comment: + XX: Picture Number. + YY: checksum. (0x7a - XX) + The return byte 6f is checksum. + The return byte 66 is checksum. + + +FORMAT OF [PICTURE DATA] +======================== + + 02 WW WW JJ JJ JJ JJ JJ ........ 17 SS + +Comment: + WW WW: Data block size. (2bytes). + Normaly 0x00 0x80, 128 bytes. + The data preceeding the endmark(02 00 00 03 FC) is its + block size(under 0x00 0x80). + TT: Picture Data. (YCC format) + SS: Check sum. + Reverse bits of all sum of second byte (after 0x02) of data + block to before SS(0x17). + + - When picture is 'normal mode(420x240)' picture + Picture size is 480(W)x240(H). + All Picture Data size is 153600 byte. + + In 153600 bytes, + the first 115200 bytes contain Y element data(0 to 255), + the second 19200 bytes contain Cb element data(-128 to 127), + the third 19200 bytes contain Cr element data(-128 to 127). + + - When picture is 'fine mode' picture + Picture size is 640(W)x480(H). + All Picture Data size is 460800 byte. + + In 460800 bytes, + the first 307200 bytes contain Y element data(0 to 255), + the second 76800 bytes contain Cb element data(-128 to 127), + the third 76800 bytes contain Cr element data(-128 to 127). + + The Y element is represented by an unsigned char. + Cb and Cr elements are represented by signed char. + The formula to convert YCC to RGB, is described in "ppm.c". + (qvplay's source file) + + +SEND A YCC FORMAT PICTURE TO QV-10 +================================== + + 05 'MM' 06 [Picture Data] [Picture Data] + ----------------------------------------- + 06 65 12 06 + + [Picture Data] [Picture Data] 02 00 00 03 FC + ----------------------------......---------------- + 06 06 06 + + 05 'DN' 06 05 'DJ' 06 + ----------------------------- + 06 6d 06 ZZ + +Comment: + The return byte 65 is checksum. + The return byte 6d is checksum. + The return byte ZZ is unknown. + [Picture Data] format is as described above. + The procedure of send a 'fine mode(640x480)' picture for QV100 is unknown. + +DELETE A PICTURE FROM QV-10 MEMORY +=================================== + + 05 'DF' XX ff 06 + ------------------- + 06 YY + +Comment: + XX: Picture Number. + YY: checksum (0x76 - XX) + +TAKE A PICTURE +============== + + 05 'DR' 06 + ------------- + 06 69 ZZ + +Comment: + You must set QV10 to REC mode. + The return byte 69 is checksum. + ZZ: When QV10's function SW is PLAY mode, it is 15, + in REC mode, it is 06. + (at QV-700/770 this command not work.) + +CHANGE SERIAL COMMUNICATION SPEED +================================= + + 05 'CB' XX 06 + ---------------- + 06 YY + +Comment: + XX: Select XX from the table below + YY: checksum + + XX(decimal(hex)): baud + -------------------- + 46(0x2e) : 9600 + 22(0x16) : 19200 + 11(0x0b) : 38400 + 7(0x07) : 57600 + 3(0x03) : 115200 + -------------------- + + +CHANGE PICTURE ORDER +==================== + + 05 'DI' XX 06 05 'DY' 02 XX 06 05 'DF' XX ff 06 05 'Dj' VV 06 + ------------------------------------------------------------------------ + 06 YY 06 ZZ 06 WW 06 UU + +Comment: + XX: source picture number + YY: checksum (0x72 - XX) + ZZ: unknown + WW: checksum (0x76 - XX) + VV: destination picture number + UU: checksum (0x51 - XX) + +FOR EXAMPLE: XX = 5 VV =2 + picture order before: 1 2 3 4 5 6 ... + picture order after: 1 5 2 3 4 6 ... + +POWER OFF QV-10 +==================== + + 05 'QX' 06 + -------------- + 06 56 + +Comment: + Power off QV-10. + The return byte 56 is checksum. + +DISABLE AUTO POWER OFF FUNCTION +=============================== + + 05 'DU' 06 05 'QE' 06 + ---------------------------- + 06 66 06 69 + +Comment: + Disable auto power off function. + The return byte 66, 69 is checksum. + +REPORT BATTERY VOLTAGE +====================== + + 05 'RB' 05 FF FE E6 06 + -------------------------------- + 06 83 XX + +Comment: + Fetch battery boltage. + XX: battery voltage. + XX/0x10 (devide by 0x10) is an approximate voltage value. + The return byte 83 is checksum. + (at QV-700/770 this function report another value.) + +SHOW TEST COLOR PATTERN +======================= + + 05 'DP' 06 + ------------- + 06 XX + +Comment: + Show 'test color patten' on LCD. + The return byte XX is checksum. + +REPORT SWITCH AND CCD LENS UNIT STATUS +======================================= + + 05 'DS' 06 + ---------------- + 06 XX YY ZZ + +Comment: + Report REC/PLAY switch status and CCD lens unit status. + The return byte XX is checksum. + YY: + MSB + 7 0x80 Too brighter warning mark(filled circle)) is shown on LCD. + 6 0x40 Too darker warning mark(hollow circle)) is shown on LCD. + 5 0x20 unknown + 4 0x10 unknown + 3 0x08 [-]button is pressed. + 2 0x04 [+]button is pressed. + 1 0x02 unknown + 0 0x01 unknown + LSB + ZZ: + MSB + 7 0x80 CCD lens unit is reverse position. + 6 0x40 REC/PLAY SW. is PLAY position. + 5 0x20 PROTECT button is pressed. + 4 0x10 DEL button is pressed. + 3 0x08 DISP button is pressed. + 2 0x04 MODE button is pressed. + 1 0x02 ZOOM button is pressed. + 0 0x01 Shutter button is pressed. + LSB + (at QV-700/770 status YY ZZ is always 00 44.) + +PROTECT PICTURE or UNPROTECT PICTURE +==================================== + + 05 'DY' XX YY 06 + ----------------------- + 06 ZZ + +Comment: + Protect picture or unprotect picture. + + Picture number is specified by XX. + YY: 0x00 unprotect picture + YY: 0x0 protect picture + The return byte ZZ is checksum. + +REPORT PICTURE ATTRIBUTE +======================== + + 05 'DY' 02 XX 06 + ----------------------- + 06 YY ZZ + +Comment: + Get information(protected or not, normal(480x240) or + fine(640x480)) about a picture. + + Picture number is specified by XX. + YY: checksum + ZZ: picture attribute. + protect, resolution, value of ZZ + off 480x240 0x00 + on 480x240 0x01 + off 640x480 0x02 + on 640x480 0x03 + +CHANGE IMAGE TRANSFER BLOCK SIZE +================================ + + 05 'PP' XX YY 06 + ----------------------- + 06 ZZ + +Comment: + Change block size to XX YY. + + Block size(default 0x00 0x80) is specified by XX YY. + XX: higher byte + YY: lower byte + ZZ: checksum + +SET DEFAULT PICTURE +=================== + + 05 'DV' XX 06 + --------------- + 06 YY + +Comment: + Set default picture shown on LCD when power on or reset. + + XX: Picture number + YY: checksum + +HIDE PICTURE NUMBER +=================== + + 05 'DM' XX 06 + --------------- + 06 YY + +Comment: + Hide picture number shown on LCD. + + XX: Picture number + YY: checksum + +REPORT HARDWARE REVISION +========================= + + 05 'SU' 06 + ------------------------ + 06 XX YY ZZ WW VV + +Comment: + Get hardware revison number. + + XX: checksum + YY: model ID1 + ZZ: model ID2 + WW: revision num1 + VV: revision num2 + + sample + model YYZZWWVV + QV10 0x00531719 + QV10 0x00538b8f + QV10A 0x00800003 + QV70 0x00835321 + QV100 0x0103ba90 + QV300 0x01048dc0 + QV700 0x01a0e081 + QV770 0x01a10000 + +----- +=========================== +NEW COMMANDS FOR QV-700/770 +=========================== + Those commands are works on QV-700/770 only. + +ENABLE NEW COMMANDS FOR QV-700/770? +=================================== + + 05 'NP' 01 06 + ------------------ + 06 60 +Comment: + Enable new commands. + + The return byte 60 is checksum. + +GET PICTURE DATA IN JPEG FORMAT +=================================== + 05 'DA' XX 06 05 'DL' 06 05 'EM' 06 + ------------------------------------------------- + 06 YY 06 6f 06 6d ZZ ZZ ZZ ZZ + + 05 'EG' 06 12 06 + ------------------------------------------------- + 06 73 [Picture Data] [Picture Data] + + 06 06 06 + -----------------------------......---------------- + [Picture Data] [Picture Data] 02 00 00 03 FC + +Comment: + XX is the picture number. + The return byte YY is checksum. (0x7a - XX). + Return byte 6f is checksum. + Return byte 6d is checksum. + Return byte 73 is checksum. + Return bytes ZZ ZZ ZZ ZZ are picture data size. + 02 00 00 03 FC should be end marker. + +FORMAT OF [Picture Data] +======================== + + 02 WW WW JJ JJ JJ JJ JJ ........ 17 SS + +Comment: + WW WW: Data Block Size (2 bytes): (Normally 0x00 0x80, 128 bytes) + The data preceeding the endmark(02 00 00 03 FC) is its + block size(under 0x00 0x80). + JJ: Picture data. (JFIF format) + SS: Check sum. Reverse bits of all sum of second byte (after 0x02) + of data block to before SS (0x17). + +GET PICTURE INFORMATION +======================= + 05 'DA' XX 06 05 'DL' 06 + ------------------------- + 06 YY 06 6f + + 05 'CV' 06 12 06 + ------------------------------------------------------------- + 06 66 02 00 0b [11bytes data] 17 SS 02 00 00 03 FC + +Comment: + XX is the picture number. + The return byte YY is checksum. (0x7a - XX). + Return byte 6f is checksum. + Return byte 66 is checksum. + SS: Check sum. Reverse bits of all sum of second byte (after 0x02) + of data block to before SS (0x17). + + 11bytes data + 1st byte Compression 01:economy 02:normal 03:fine + 2nd byte unknown 00 + 3rd byte taked mode 01:one shot 02:continuous shot + 07:panorama 08:movie + 4th byte macro mode 01:normal 02:macro mode + 5th byte unknown 01 + 6th byte unknown 0a,09,0c,0e,0b shutter speed? WB? + 7th byte iris(meybe) 07:(F8) 03:(F2) + 8th byte unknown 0d + 9th byte unknown 04 + 10th byte unknown 0d + 11th byte unknown 01 + +----- +================ +UNKNOWN COMMANDS +================ +'DI' 'DK' 'DQ' + +'EB' 'Eb' remain memory size (in picture unit)(QV100 only)? +'MQ' 'Mq' picture bytesize (QV100 only)? + +'cb' change baud rate (QV-700/770 only)? +'CX' 'CF' 'EC' 'DY' 'FT' 'CZ' 'ES' +'BC' battery check ? (QV-700/770 only) +'MW' write JPEG format data to QV-700/770 + +============== +SPECIAL THANKS +============== + Itojun-san, Brahma-san, Goto-san, Mario-san + (Thanks for their research and report about the serial protocol) + Dr. Sadun + (Thanks for fixup of early version of this document which + written in my poor English.) + Kuwata-san + (Thanks for the report about battery voltage.) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/cam2jpgtab.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/cam2jpgtab.h new file mode 100644 index 00000000..31308feb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/cam2jpgtab.h @@ -0,0 +1,82 @@ +/* + +This file is taken from qvplay version 0.95, written by: + +Ken-ichi HAYASHI +Jun-ichiro "itojun" Itoh + +Notes from qvplay: + +You can use the entire source code of this archive in your software, +but I assume no resuponsibilitiy for the results of the usage of the +source code. +Use at your own risk. + +If you want to need some kind of 'license', +you can choice 'BSD style license' or 'LGPL'. +It is great presure you describe at README file of your software, +"This software has QVplay's source code.". + +Original copyright notice of this file: + +Casio QV-10 cam file converter. +Jun-ichiro "itojun" Itoh. +Freely redistributable. +$Id$ + +*/ + +static unsigned char soi[] = { 0xff,0xd8 }; +static unsigned char app0[] = { +0xff,0xe0,0x00,0x10,0x4a,0x46,0x49,0x46,0x00,0x01,0x01,0x01,0x01,0x2c,0x01,0x2c, +0x00,0x00 }; + +static unsigned char dqt0[] = { 0xff,0xdb,0x00,0x43,0x00 }; +static unsigned char dqt1[] = { 0xff,0xdb,0x00,0x43,0x01 }; + +static unsigned char sof[] = { +0xff,0xc0,0x00,0x11,0x08,0x00,0xf0,0x01,0xe0,0x03,0x01,0x32,0x00,0x02,0x11,0x01, +0x03,0x11,0x01 }; + +static unsigned char dht[] = { +0xff,0xc4,0x00,0x1f,0x00, +0x00,0x01,0x05,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, +0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b, + +0xff,0xc4,0x00,0xb5,0x10, +0x00,0x02,0x01,0x03,0x03,0x02,0x04,0x03,0x05,0x05,0x04,0x04,0x00,0x00,0x01,0x7d, +0x01,0x02,0x03,0x00,0x04,0x11,0x05,0x12,0x21,0x31,0x41,0x06,0x13,0x51,0x61,0x07, +0x22,0x71,0x14,0x32,0x81,0x91,0xa1,0x08,0x23,0x42,0xb1,0xc1,0x15,0x52,0xd1,0xf0, +0x24,0x33,0x62,0x72,0x82,0x09,0x0a,0x16,0x17,0x18,0x19,0x1a,0x25,0x26,0x27,0x28, +0x29,0x2a,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x43,0x44,0x45,0x46,0x47,0x48,0x49, +0x4a,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x63,0x64,0x65,0x66,0x67,0x68,0x69, +0x6a,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x83,0x84,0x85,0x86,0x87,0x88,0x89, +0x8a,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, +0xa8,0xa9,0xaa,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xc2,0xc3,0xc4,0xc5, +0xc6,0xc7,0xc8,0xc9,0xca,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xe1,0xe2, +0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8, +0xf9,0xfa, + +0xff,0xc4,0x00,0x1f,0x01, +0x00,0x03,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00, +0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b, + +0xff,0xc4,0x00,0xb5,0x11, +0x00,0x02,0x01,0x02,0x04,0x04,0x03,0x04,0x07,0x05,0x04,0x04,0x00,0x01,0x02,0x77, +0x00,0x01,0x02,0x03,0x11,0x04,0x05,0x21,0x31,0x06,0x12,0x41,0x51,0x07,0x61,0x71, +0x13,0x22,0x32,0x81,0x08,0x14,0x42,0x91,0xa1,0xb1,0xc1,0x09,0x23,0x33,0x52,0xf0, +0x15,0x62,0x72,0xd1,0x0a,0x16,0x24,0x34,0xe1,0x25,0xf1,0x17,0x18,0x19,0x1a,0x26, +0x27,0x28,0x29,0x2a,0x35,0x36,0x37,0x38,0x39,0x3a,0x43,0x44,0x45,0x46,0x47,0x48, +0x49,0x4a,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x63,0x64,0x65,0x66,0x67,0x68, +0x69,0x6a,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x82,0x83,0x84,0x85,0x86,0x87, +0x88,0x89,0x8a,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0xa2,0xa3,0xa4,0xa5, +0xa6,0xa7,0xa8,0xa9,0xaa,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xc2,0xc3, +0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda, +0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8, +0xf9,0xfa }; + +static unsigned char sos_y[] = { 0xff,0xda,0x00,0x08,0x01,0x01,0x00,0x00,0x3f,0x00 }; +static unsigned char sos_u[] = { 0xff,0xda,0x00,0x08,0x01,0x02,0x11,0x00,0x3f,0x00 }; +static unsigned char sos_v[] = { 0xff,0xda,0x00,0x08,0x01,0x03,0x11,0x00,0x3f,0x00 }; + +static unsigned char eoi[] = { 0xff,0xd9 }; diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/camtojpeg.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/camtojpeg.c new file mode 100644 index 00000000..d014ecec --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/camtojpeg.c @@ -0,0 +1,133 @@ +/* camtojpeg.c + * + * Copyright (c) 2004 Michael Haardt + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include + +#include + +#include "cam2jpgtab.h" +#include "jpegtab_f.h" +#include "camtojpeg.h" + +static unsigned int u16(const unsigned char *buf) +{ + return ((unsigned int)(*buf)<<8) | ((unsigned int)*(buf+1)); +} + +static unsigned int u32(const unsigned char *buf) +{ + return ((unsigned int)(*buf)<<24) | ((unsigned int)*(buf+1)<<16) + |((unsigned int)*(buf+2)<<8) | ((unsigned int)*(buf+3)); +} + +int QVcamtojpeg(const unsigned char *cam, long int camSize, unsigned char **jpeg, long int *jpegSize) +{ + int ysize; + int usize; + int vsize; + unsigned char *dst; + + ysize = u16(cam + 2); + usize = u16(cam + 4); + vsize = u16(cam + 6); + + *jpeg=malloc(*jpegSize= + ( + sizeof(soi)+sizeof(app0) + +sizeof(dqt0)+64 + +sizeof(dqt1)+64 + +sizeof(sof)+sizeof(dht) + +sizeof(sos_y)+ysize + +sizeof(sos_u)+usize + +sizeof(sos_v)+vsize + +sizeof(eoi) + )); + + dst=*jpeg; + memcpy(dst,soi,sizeof(soi)); dst+=sizeof(soi); + memcpy(dst,app0,sizeof(app0)); dst+=sizeof(app0); + + cam+=8; + + memcpy(dst,dqt0,sizeof(dqt0)); dst+=sizeof(dqt0); + memcpy(dst,cam,64); dst+=64; cam+=64; + + memcpy(dst,dqt1,sizeof(dqt1)); dst+=sizeof(dqt1); + memcpy(dst,cam,64); dst+=64; cam+=64; + + memcpy(dst,sof,sizeof(sof)); dst+=sizeof(sof); + memcpy(dst,dht,sizeof(dht)); dst+=sizeof(dht); + + memcpy(dst,sos_y,sizeof(sos_y)); dst+=sizeof(sos_y); + memcpy(dst,cam,ysize); dst+=ysize; cam+=ysize; + + memcpy(dst,sos_u,sizeof(sos_u)); dst+=sizeof(sos_u); + memcpy(dst,cam,usize); dst+=usize; cam+=usize; + + memcpy(dst,sos_v,sizeof(sos_v)); dst+=sizeof(sos_v); + memcpy(dst,cam,vsize); dst+=vsize; cam+=vsize; + + memcpy(dst,eoi,sizeof(eoi)); + + return GP_OK; +} + +int QVfinecamtojpeg(const unsigned char *cam, long int camSize, unsigned char **jpeg, long int *jpegSize) +{ + int size; + static const unsigned char c[1] = { 1 }; + unsigned char *dst; + + size = u32(cam + 4); + + *jpeg=malloc(*jpegSize= + ( + sizeof(soi)+sizeof(app_f) + +sizeof(dqt_f)+64+1+64 + +sizeof(sof_f)+sizeof(dht_f) + +sizeof(sos_f)+size + +sizeof(eoi) + )); + + dst=*jpeg; + memcpy(dst,soi,sizeof(soi)); dst+=sizeof(soi); + memcpy(dst,app_f,sizeof(app_f)); dst+=sizeof(app_f); + + cam+=8; + + memcpy(dst,dqt_f,sizeof(dqt_f)); dst+=sizeof(dqt_f); + memcpy(dst,cam,64); dst+=64; cam+=64; + + memcpy(dst,c,sizeof(c)); dst+=sizeof(c); + memcpy(dst,cam,64); dst+=64; cam+=64; + + memcpy(dst,sof_f,sizeof(sof_f)); dst+=sizeof(sof_f); + memcpy(dst,dht_f,sizeof(dht_f)); dst+=sizeof(dht_f); + + memcpy(dst,sos_f,sizeof(sos_f)); dst+=sizeof(sos_f); + memcpy(dst,cam,size); dst+=size; cam+=size; + + memcpy(dst,eoi,sizeof(eoi)); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/camtojpeg.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/camtojpeg.h new file mode 100644 index 00000000..2d724e6e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/camtojpeg.h @@ -0,0 +1,27 @@ +/* camtojpeg.h + * + * Copyright (c) 2004 Michael Haardt + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __CASIO_QV_CAMTOJPEG_H__ +#define __CASIO_QV_CAMTOJPEG_H__ + +int QVcamtojpeg(const unsigned char *cam, long int camSize, unsigned char **jpeg, long int *jpegSize); +int QVfinecamtojpeg(const unsigned char *cam, long int camSize, unsigned char **jpeg, long int *jpegSize); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/casio-qv-commands.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/casio-qv-commands.c new file mode 100644 index 00000000..d11828c9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/casio-qv-commands.c @@ -0,0 +1,436 @@ +/* casio-qv-commands.c + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" +#include "casio-qv-commands.h" + +#include + +#define STX 0x02 +#define ETX 0x03 +#define ENQ 0x05 +#define ACK 0x06 +#define DC2 0x12 +#define NAK 0x15 +#define ETB 0x17 +#define UNKNOWN1 0xfe +#define UNKNOWN2 0xe0 + +#define CASIO_QV_RETRIES 5 + +#define CR(result) {int r = (result); if (r < 0) return (r);} + +int +QVping (Camera *camera) +{ + unsigned char c; + int result = GP_OK, i = 0; + + /* Send ENQ and wait for ACK */ + while (1) { + c = ENQ; + CR (gp_port_write (camera->port, (char *)&c, 1)); + result = gp_port_read (camera->port, (char *)&c, 1); + + /* If we got ACK, everything is fine. */ + if (result >= 0) { + switch (c) { + case ACK: + case ENQ: + + /* + * According to gphoto, we need to wait + * for ACK. But the camera of + * David Wolfskill + * seems to return ENQ after some NAK. + */ + return (GP_OK); + + case NAK: + + /* The camera is not yet ready. */ + break; + + case UNKNOWN1: + case UNKNOWN2: + + /* + * David Wolfskill + * has seen those two bytes if one sends + * only ENQs to the camera. The camera first + * answers with some NAKs, then with some + * ACKs, and finally with UNKNOWN1 and + * UNKNOWN2. + */ + while (gp_port_read (camera->port, (char *)&c, 1) >= 0); + break; + + default: + while (gp_port_read (camera->port, (char *)&c, 1) >= 0); + break; + } + } + + if (++i < CASIO_QV_RETRIES) + continue; + + /* If we got an error from libgphoto2_port, pass it along */ + CR (result); + + /* Return some error code */ + return (GP_ERROR_CORRUPTED_DATA); + } +} + +static int +QVsend (Camera *camera, unsigned char *cmd, int cmd_len, + unsigned char *buf, int buf_len) +{ + unsigned char c; + int checksum; + const unsigned char *cmd_end; + + /* The camera does not insist on a ping each command, but */ + /* sometimes it hangs up without one. */ + CR (QVping (camera)); + + /* Write the request and calculate the checksum */ + CR (gp_port_write (camera->port, (char *)cmd, cmd_len)); + for (cmd_end = cmd+cmd_len, checksum = 0; cmd < cmd_end; ++cmd) + checksum += *cmd; + + /* Read the checksum */ + CR (gp_port_read (camera->port, (char *)&c, 1)); + if (c != (unsigned char)(~checksum)) + return (GP_ERROR_CORRUPTED_DATA); + + /* Send ACK */ + c = ACK; + CR (gp_port_write (camera->port, (char *)&c, 1)); + + /* Receive the answer */ + if (buf_len) + CR (gp_port_read (camera->port, (char *)buf, buf_len)); + + return (GP_OK); +} + +static int +QVblockrecv (Camera *camera, unsigned char **buf, unsigned long int *buf_len) +{ + /* XXX - does the caller know to free *buf in case of an error? */ + unsigned char c; + int retries, pos; + + retries = 0; + *buf = NULL; + *buf_len = 0; + pos = 0; + + /* Send DC2 */ + c = DC2; + CR (gp_port_write (camera->port, (char *)&c, 1)); + + while (1) { + unsigned char buffer[2]; + int size, i; + int sum; + unsigned char *new; + + /* Read STX */ + CR (gp_port_read (camera->port, (char *)&c, 1)); + if (c != STX) { + retries++; + c = NAK; + CR (gp_port_write (camera->port, (char *)&c, 1)); + if (retries > CASIO_QV_RETRIES) + return (GP_ERROR_CORRUPTED_DATA); + else + continue; + } + + /* Read sector size */ + CR (gp_port_read (camera->port, (char *)buffer, 2)); + size = (buffer[0] << 8) | buffer[1]; + sum = buffer[0] + buffer[1]; + + /* Allocate the memory */ + new = (unsigned char*)realloc (*buf, sizeof (char) * (*buf_len + size)); + if (new == (unsigned char*)0) { + if (*buf != (unsigned char*)0) free(*buf); + return (GP_ERROR_NO_MEMORY); + } + *buf = new; + *buf_len += size; + + /* Get the sector */ + CR (gp_port_read (camera->port, (char *)*buf + pos, size)); + for (i = 0; i < size; i++) + sum += (*buf)[i + pos]; + + /* Get EOT or ETX and the checksum */ + CR (gp_port_read (camera->port, (char *)buffer, 2)); + sum += buffer[0]; + + /* Verify the checksum */ + if ((unsigned char)(~sum) != buffer[1]) { + retries++; + c = NAK; + CR (gp_port_write (camera->port, (char *)&c, 1)); + if (retries > CASIO_QV_RETRIES) + return (GP_ERROR_CORRUPTED_DATA); + else + continue; + } + + /* Acknowledge and prepare for next packet */ + c = ACK; + CR (gp_port_write (camera->port, (char *)&c, 1)); + pos += size; + + /* Are we done? */ + if (buffer[0] == ETX) + break; /* Yes */ + else if (buffer[0] == ETB) + continue; /* No */ + else + return (GP_ERROR_CORRUPTED_DATA); + } + + return (GP_OK); +} + +int +QVbattery (Camera *camera, float *battery) +{ + unsigned char cmd[6]; + unsigned char b; + + cmd[0] = 'R'; + cmd[1] = 'B'; + cmd[2] = ENQ; + cmd[3] = 0xff; + cmd[4] = 0xfe; + cmd[5] = 0xe6; + CR (QVsend (camera, cmd, 6, &b, 1)); + *battery = b / 16.; + + return (GP_OK); +} + +int +QVrevision (Camera *camera, long int *revision) +{ + unsigned char cmd[2]; + unsigned char buf[4]; + + cmd[0] = 'S'; + cmd[1] = 'U'; + CR (QVsend (camera, cmd, 2, buf, 4)); + *revision = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; + + return (GP_OK); +} + +int +QVnumpic (Camera *camera) +{ + unsigned char cmd[2]; + unsigned char b; + + cmd[0] = 'M'; + cmd[1] = 'P'; + CR (QVsend (camera, cmd, 2, &b, 1)); + + return (b); +} + +int +QVpicattr (Camera *camera, int n, unsigned char *picattr) +{ + unsigned char cmd[4]; + unsigned char b; + + cmd[0] = 'D'; + cmd[1] = 'Y'; + cmd[2] = STX; + cmd[3] = n+1; + CR (QVsend (camera, cmd, 4, &b, 1)); + *picattr = b; + + return (GP_OK); +} + +int +QVshowpic (Camera *camera, int n) +{ + unsigned char cmd[3]; + + cmd[0] = 'D'; + cmd[1] = 'A'; + cmd[2] = n+1; + CR (QVsend (camera, cmd, 3, NULL, 0)); + + return (GP_OK); +} + +int +QVsetpic (Camera *camera) +{ + unsigned char cmd[2]; + + cmd[0] = 'D'; + cmd[1] = 'L'; + CR (QVsend (camera, cmd, 2, NULL, 0)); + + return (GP_OK); +} + +int +QVgetCAMpic (Camera *camera, unsigned char **data, unsigned long int *size, int fine) +{ + unsigned char cmd[2]; + + cmd[0] = 'M'; + cmd[1] = fine ? 'g' : 'G'; + CR (QVsend (camera, cmd, 2, NULL, 0)); + CR (QVblockrecv (camera, data, size)); + + return (GP_OK); +} + +int +QVgetYCCpic (Camera *camera, unsigned char **data, unsigned long int *size) +{ + unsigned char cmd[2]; + + cmd[0] = 'M'; + cmd[1] = 'K'; + CR (QVsend (camera, cmd, 2, NULL, 0)); + CR (QVblockrecv (camera, data, size)); + + return (GP_OK); +} + +int +QVdelete (Camera *camera, int n) +{ + unsigned char cmd[4]; + + cmd[0] = 'D'; + cmd[1] = 'F'; + cmd[2] = n+1; + cmd[3] = 0xff; + CR (QVsend (camera, cmd, 4, NULL, 0)); + + return (GP_OK); +} + +int +QVprotect (Camera *camera, int n, int on) +{ + unsigned char cmd[4]; + + cmd[0] = 'D'; + cmd[1] = 'Y'; + cmd[2] = on ? 1 : 0; + cmd[3] = n+1; + CR (QVsend (camera, cmd, 4, NULL, 0)); + + return (GP_OK); +} + +int +QVsize (Camera *camera, long int *size) +{ + unsigned char cmd[2]; + unsigned char buf[4]; + + cmd[0] = 'E'; + cmd[1] = 'M'; + CR (QVsend (camera, cmd, 2, buf, 4)); + *size = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; + + return (GP_OK); +} + +int +QVcapture (Camera *camera) +{ + unsigned char cmd[2]; + unsigned char b; + + cmd[0] = 'D'; + cmd[1] = 'R'; + CR (QVsend (camera, cmd, 2, &b, 1)); + + return (GP_OK); +} + +int +QVstatus (Camera *camera, char *status) +{ + unsigned char cmd[3]; + + cmd[0] = 'D'; + cmd[1] = 'S'; + cmd[2] = STX; + CR (QVsend (camera, cmd, 3, (unsigned char *)status, 2)); + + return (GP_OK); +} + +int +QVreset (Camera *camera) +{ + unsigned char cmd[2]; + + cmd[0] = 'Q'; + cmd[1] = 'R'; + CR (QVsend (camera, cmd, 2, NULL, 0)); + + return (GP_OK); +} + +int +QVsetspeed (Camera *camera, int speed) +{ + unsigned char cmd[3]; + gp_port_settings settings; + + cmd[0] = 'C'; + cmd[1] = 'B'; + switch (speed) { + case 9600: cmd[2] = 46; break; + case 19200: cmd[2] = 22; break; + case 38400: cmd[2] = 11; break; + case 57600: cmd[2] = 7; break; + case 115200: cmd[2] = 3; break; + default: return (GP_ERROR_NOT_SUPPORTED); + } + CR (QVsend (camera, cmd, 3, NULL, 0)); + + CR (gp_port_get_settings (camera->port, &settings)); + settings.serial.speed = speed; + CR (gp_port_set_settings (camera->port, settings)); + + CR (QVping (camera)); + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/casio-qv-commands.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/casio-qv-commands.h new file mode 100644 index 00000000..a4f3d915 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/casio-qv-commands.h @@ -0,0 +1,45 @@ +/* casio-qv-commands.h + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __CASIO_QV_COMMANDS_H__ +#define __CASIO_QV_COMMANDS_H__ + +#include + +int QVping (Camera *camera); + +/* Battery level in volts */ +int QVbattery (Camera *camera, float *battery); +int QVrevision (Camera *camera, long int *revision); +int QVnumpic (Camera *camera); +int QVstatus (Camera *camera, char *status); +int QVdelete (Camera *camera, int n); +int QVprotect (Camera *camera, int n, int on); +int QVpicattr (Camera *camera, int n, unsigned char *attr); +int QVshowpic (Camera *camera, int n); +int QVsetpic (Camera *camera); +int QVsize (Camera *camera, long int *size); +int QVgetYCCpic(Camera *camera, unsigned char **data, unsigned long int *size); +int QVgetCAMpic(Camera *camera, unsigned char **data, unsigned long int *size, int fine); +int QVcapture (Camera *camera); +int QVreset (Camera *camera); +int QVsetspeed (Camera *camera, int speed); + +#endif /* __CASIO_QV_COMMANDS_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/casio-qv.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/casio-qv.c new file mode 100644 index 00000000..0d625f2d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/casio-qv.c @@ -0,0 +1,369 @@ +/* casio-qv.c + * + * Copyright © 2001 Lutz Müller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include + +#include +#include +#include + +#include "casio-qv-commands.h" +#include "camtojpeg.h" +#include "ycctoppm.h" + +#define THUMBNAIL_WIDTH 52 +#define THUMBNAIL_HEIGHT 36 +#define CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo *info, void *data, GPContext *context); + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Casio QV"); + + return (GP_OK); +} + +static struct { + const char *model; + int public; + unsigned long int revision; +} models[] = { + {"Casio:QV10", 1, 0x00538b8f}, + {"Casio:QV10", 0, 0x00531719}, + {"Casio:QV10A", 1, 0x00800003}, + {"Casio:QV70", 1, 0x00835321}, + {"Casio:QV100", 1, 0x0103ba90}, + {"Casio:QV300", 1, 0x01048dc0}, + {"Casio:QV700", 1, 0x01a0e081}, + {"Casio:QV770", 1, 0x01a10000}, + {NULL} +}; + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].model; i++) { + + if (!models[i].public) + continue; + + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].model); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.operations = GP_OPERATION_CAPTURE_IMAGE | + GP_OPERATION_CONFIG; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + CHECK_RESULT (gp_abilities_list_append (list, a)); + } + + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int n; + unsigned char attr; + unsigned char *data = NULL; + long int size = 0; + unsigned char *cam = NULL; + long int camSize = 0; + + /* Get the number of the picture from the filesystem */ + CHECK_RESULT (n = gp_filesystem_number (camera->fs, folder, filename, + context)); + + /* Prepare the transaction */ + CHECK_RESULT (QVpicattr (camera, n, &attr)); + CHECK_RESULT (QVshowpic (camera, n)); + CHECK_RESULT (QVsetpic (camera)); + + switch (type) { + case GP_FILE_TYPE_RAW: + CHECK_RESULT (QVgetCAMpic (camera, &data, (long unsigned *)&size, attr&2)); + CHECK_RESULT (gp_file_set_mime_type(file, GP_MIME_RAW)); + break; + case GP_FILE_TYPE_PREVIEW: + CHECK_RESULT (QVgetYCCpic (camera, &cam, (long unsigned *)&camSize)); + CHECK_RESULT (QVycctoppm(cam, camSize, THUMBNAIL_WIDTH, THUMBNAIL_HEIGHT, 2, &data, &size)); + free(cam); + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_PPM)); + break; + case GP_FILE_TYPE_NORMAL: + CHECK_RESULT (QVgetCAMpic (camera, &cam, (long unsigned *)&camSize, attr&2)); + CHECK_RESULT ((attr&2 ? QVfinecamtojpeg : QVcamtojpeg)(cam, camSize, &data, &size)); + free(cam); + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_JPEG)); + break; + default: + gp_context_error(context, _("Image type %d not supported"), type); + return (GP_ERROR_NOT_SUPPORTED); + } + + CHECK_RESULT (gp_file_set_data_and_size (file, (char*)data, size)); + return (GP_OK); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int nr ; + CameraFileInfo info; + + nr = gp_filesystem_number(fs, folder, filename, context); + if (nr < 0) + return nr; + + CHECK_RESULT (get_info_func(fs, folder, filename, &info, data, context)); + + if (info.file.permissions == GP_FILE_PERM_READ) { + gp_context_error(context, _("Image %s is delete protected."), + filename); + return (GP_ERROR); + } + + CHECK_RESULT (QVdelete (camera, nr)); + + return GP_OK; +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Driver framework written by Lutz Mueller " + ".\n" + "This software has QVplay's source code, written by Ken-ichi HAYASHI " + " and Jun-ichiro \"itojun\" Itoh " + ".\n" + "Integration of QVplay by Michael Haardt .")); + + return (GP_OK); +} + +static int +camera_summary (Camera *camera, CameraText *about, GPContext *context) +{ + float battery; + long int revision; + + CHECK_RESULT (QVbattery (camera, &battery)); + CHECK_RESULT (QVrevision (camera, &revision)); + + sprintf (about->text, _("Battery level: %.1f Volts. " + "Revision: %08x."), battery, (int) revision); + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + int num; + Camera *camera = data; + + /* Fill the list */ + CHECK_RESULT (num = QVnumpic (camera)); + gp_list_populate (list, "CASIO_QV_%03i.jpg", num); + + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo *info, void *data, GPContext *context) +{ + int n, size_thumb, size_pic; + unsigned char attr; + Camera *camera = data; + + /* Get the picture number from the CameraFilesystem */ + CHECK_RESULT (n = gp_filesystem_number (fs, folder, file, context)); + + /* Get some information */ + size_thumb = size_pic = 0; + + info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE | GP_FILE_INFO_PERMISSIONS; + info->preview.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + strcpy (info->file.type, GP_MIME_JPEG); + strcpy (info->preview.type, GP_MIME_PPM); + info->file.size = size_pic; + info->preview.size = size_thumb; + + CHECK_RESULT (QVpicattr (camera, n, &attr)); + if (attr&1) + info->file.permissions = GP_FILE_PERM_READ; + else + info->file.permissions = GP_FILE_PERM_ALL; + + return (GP_OK); +} + +static int +camera_config_get (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *child; + float battery; + char status[2]; + char t[1024]; + + gp_widget_new (GP_WIDGET_WINDOW, _("Camera Configuration"), window); + + CHECK_RESULT (QVbattery (camera, &battery)); + gp_widget_new (GP_WIDGET_TEXT, _("Battery"), &child); + gp_widget_set_name (child, "battery"); + snprintf(t,sizeof(t),"%.1f V",battery); + gp_widget_set_value (child, t); + gp_widget_append (*window, child); + + CHECK_RESULT (QVstatus (camera, status)); + gp_widget_new (GP_WIDGET_RADIO, _("Brightness"), &child); + gp_widget_set_name (child, "brightness"); + gp_widget_add_choice (child, _("Too bright")); + gp_widget_add_choice (child, _("Too dark")); + gp_widget_add_choice (child, _("OK")); + if (status[0]&0x80) strcpy (t, _("Too bright")); + else if (status[0]&0x40) strcpy (t, _("Too dark")); + else strcpy (t, _("OK")); + gp_widget_set_value (child, t); + gp_widget_append (*window, child); + + return (GP_OK); +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + if (type != GP_CAPTURE_IMAGE) + return (GP_ERROR_NOT_SUPPORTED); + + CHECK_RESULT (QVcapture (camera)); + + strcpy (path->folder, "/"); + sprintf (path->name, "CASIO_QV_%03i.jpg", QVnumpic (camera)); + + CHECK_RESULT (gp_filesystem_append (camera->fs, "/", path->name, context)); + + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + CHECK_RESULT (QVsetspeed (camera,9600)); + + CHECK_RESULT (QVreset (camera)); + + /* power down interface */ + gp_port_set_pin (camera->port, GP_PIN_RTS, GP_LEVEL_LOW); + gp_port_set_pin (camera->port, GP_PIN_DTR, GP_LEVEL_LOW); + gp_port_set_pin (camera->port, GP_PIN_CTS, GP_LEVEL_LOW); + + sleep(1); + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + gp_port_settings settings; + int selected_speed; + + /* First, set up all the function pointers */ + camera->functions->get_config = camera_config_get; + camera->functions->capture = camera_capture; + camera->functions->summary = camera_summary; + camera->functions->exit = camera_exit; + camera->functions->about = camera_about; + + /* Now, tell the filesystem where to get lists and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + CHECK_RESULT (gp_port_get_settings (camera->port, &settings)); + + /* Taking pictures takes over 5 seconds, so use 7 seconds to be safe */ + CHECK_RESULT (gp_port_set_timeout (camera->port, 7000)); + selected_speed = settings.serial.speed; + if (!selected_speed) selected_speed = 115200; + + /* Protocol always starts with 9600 */ + settings.serial.speed = 9600; + CHECK_RESULT (gp_port_set_settings (camera->port, settings)); + + /* Power up interface */ + gp_port_set_pin (camera->port, GP_PIN_RTS, GP_LEVEL_HIGH); + gp_port_set_pin (camera->port, GP_PIN_DTR, GP_LEVEL_LOW); + gp_port_set_pin (camera->port, GP_PIN_CTS, GP_LEVEL_LOW); + + /* + * There may be one junk character at this point, but QVping + * takes care of that. + */ + CHECK_RESULT (QVping (camera)); + CHECK_RESULT (QVsetspeed (camera,selected_speed)); + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/jpegtab_f.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/jpegtab_f.h new file mode 100644 index 00000000..e682bd7f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/jpegtab_f.h @@ -0,0 +1,97 @@ +/* + +This file is taken from qvplay version 0.95, written by: + +Ken-ichi HAYASHI +Jun-ichiro "itojun" Itoh + +Notes from qvplay: + +You can use the entire source code of this archive in your software, +but I assume no resuponsibilitiy for the results of the usage of the +source code. +Use at your own risk. + +If you want to need some kind of 'license', +you can choice 'BSD style license' or 'LGPL'. +It is great presure you describe at README file of your software, +"This software has QVplay's source code.". + +*/ + +static unsigned char app_f[] ={ + 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, + 0x00, 0x01, 0x01, 0x01, 0x01, 0x2c, 0x01, 0x2c, + 0x00, 0x00 +}; + +static unsigned char dqt_f[] ={ + 0xff, 0xdb, 0x00, 0x84, 0x00 +}; + +static unsigned char sof_f[]={ + 0xff, 0xc0, 0x00, 0x11, 0x08, 0x01, 0xe0, 0x02, + 0x80, 0x03, 0x01, 0x22, 0x00, 0x02, 0x11, 0x01, + 0x03, 0x11, 0x01 +}; + +static unsigned char dht_f[] ={ + 0xff, 0xc4, 0x01, 0xa2, 0x00, 0x00, 0x01, 0x05, + 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, + 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, + 0x0b, 0x01, 0x00, 0x03, 0x01, 0x01, 0x01, 0x01, + 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, + 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x10, 0x00, + 0x02, 0x01, 0x03, 0x03, 0x02, 0x04, 0x03, 0x05, + 0x05, 0x04, 0x04, 0x00, 0x00, 0x01, 0x7d, 0x01, + 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, 0x21, + 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07, 0x22, + 0x71, 0x14, 0x32, 0x81, 0x91, 0xa1, 0x08, 0x23, + 0x42, 0xb1, 0xc1, 0x15, 0x52, 0xd1, 0xf0, 0x24, + 0x33, 0x62, 0x72, 0x82, 0x09, 0x0a, 0x16, 0x17, + 0x18, 0x19, 0x1a, 0x25, 0x26, 0x27, 0x28, 0x29, + 0x2a, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, + 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, + 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, + 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, + 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, + 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, + 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, + 0x9a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, + 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, + 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, + 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4, 0xd5, + 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xe1, 0xe2, 0xe3, + 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xf1, + 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, + 0xfa, 0x11, 0x00, 0x02, 0x01, 0x02, 0x04, 0x04, + 0x03, 0x04, 0x07, 0x05, 0x04, 0x04, 0x00, 0x01, + 0x02, 0x77, 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, + 0x05, 0x21, 0x31, 0x06, 0x12, 0x41, 0x51, 0x07, + 0x61, 0x71, 0x13, 0x22, 0x32, 0x81, 0x08, 0x14, + 0x42, 0x91, 0xa1, 0xb1, 0xc1, 0x09, 0x23, 0x33, + 0x52, 0xf0, 0x15, 0x62, 0x72, 0xd1, 0x0a, 0x16, + 0x24, 0x34, 0xe1, 0x25, 0xf1, 0x17, 0x18, 0x19, + 0x1a, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x35, 0x36, + 0x37, 0x38, 0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, + 0x47, 0x48, 0x49, 0x4a, 0x53, 0x54, 0x55, 0x56, + 0x57, 0x58, 0x59, 0x5a, 0x63, 0x64, 0x65, 0x66, + 0x67, 0x68, 0x69, 0x6a, 0x73, 0x74, 0x75, 0x76, + 0x77, 0x78, 0x79, 0x7a, 0x82, 0x83, 0x84, 0x85, + 0x86, 0x87, 0x88, 0x89, 0x8a, 0x92, 0x93, 0x94, + 0x95, 0x96, 0x97, 0x98, 0x99, 0x9a, 0xa2, 0xa3, + 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2, + 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, + 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, + 0xca, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, + 0xd9, 0xda, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, + 0xf7, 0xf8, 0xf9, 0xfa +}; + +static unsigned char sos_f[] ={ + 0xff, 0xda, 0x00, 0x0c, 0x03, 0x01, 0x00, 0x02, + 0x11, 0x03, 0x11, 0x00, 0x3f, 0x00 +}; diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/ycctoppm.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/ycctoppm.c new file mode 100644 index 00000000..90889d9f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/ycctoppm.c @@ -0,0 +1,92 @@ +/* ycctoppm.c + * + * Copyright (c) 2004 Michael Haardt + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include + +#include + +#include "ycctoppm.h" + +#define THUMBNAIL_WIDTH 52 +#define THUMBNAIL_HEIGHT 36 + +#define RATE_H 2 + +int QVycctoppm(const unsigned char *ycc, long int yccSize, int width, int height, int ratew, unsigned char **ppm, long int *ppmSize) +{ + char header[64]; + size_t headerSize; + unsigned char *dst; + int x, y; + long cr, cb; + long L; + long r,g,b; + const unsigned char *Y; + const unsigned char *Cr; + const unsigned char *Cb; + + snprintf(header,sizeof(header),"P6\n%d %d\n255\n",width,height); + headerSize=strlen(header); + + *ppm=malloc(*ppmSize=(headerSize+3*width*height)); + + dst=*ppm; + memcpy(dst,header,headerSize); dst+=headerSize; + + Y = ycc; + Cb = Y + (height * width); + Cr = Cb + (height / RATE_H) * (width / ratew); + + for (y=0; y 127) cb = cb - 256; + cr = Cr[(y/RATE_H) * width/ratew + x/ratew]; + if (cr > 127) cr = cr - 256; + + r = L + 140200 * cr; + g = L - 34414 * cb - 71414 * cr; + b = L + 177200 * cb; + + r = r / 100000; + g = g / 100000; + b = b / 100000; + + if (r<0) r=0; else if (r>255) r=255; + if (g<0) g=0; else if (g>255) g=255; + if (b<0) b=0; else if (b>255) b=255; + + *dst++ = r; + *dst++ = g; + *dst++ = b; + } + } + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/ycctoppm.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/ycctoppm.h new file mode 100644 index 00000000..0433b5c7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/casio/ycctoppm.h @@ -0,0 +1,27 @@ +/* ycctoppm.h + * + * Copyright (c) 2004 Michael Haardt + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __CASIO_QV_YCCTOPPM_H__ +#define __CASIO_QV_YCCTOPPM_H__ + +int QVycctoppm(const unsigned char *ycc, long int yccSize, int width, int height, int ratew, unsigned char **ppm, long int *ppmSize); + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/Makefile-files new file mode 100644 index 00000000..0b1eb557 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/Makefile-files @@ -0,0 +1,13 @@ +# -*- Makefile -*- + +EXTRA_DIST += clicksmart310/README.clicksmart310 +camlibdoc_DATA += clicksmart310/README.clicksmart310 + +EXTRA_LTLIBRARIES += clicksmart310.la + +clicksmart310_la_SOURCES = \ + clicksmart310/library.c \ + clicksmart310/clicksmart.c clicksmart310/clicksmart.h \ + clicksmart310/spca50x-jpeg-header.h +clicksmart310_la_LDFLAGS = $(camlib_ldflags) +clicksmart310_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/README.clicksmart310 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/README.clicksmart310 new file mode 100644 index 00000000..2bc9d4dc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/README.clicksmart310 @@ -0,0 +1,51 @@ +/* This is the README file for libgphoto2/camlibs/clicksmart310. This README + * is an integral part of the libgphoto2/camlibs/clicksmart310 library source + * code and is distributed with that source code under the LGPL license, a copy + * of which license may be seen in any of the source files in + * libgphoto2/camlibs/clicksmart310, + * or in the head directory of libgphoto2. + */ + + +The Logitech Clicksmart 310 camera is based upon a Sunplus spca50x chip, but +its command sequences are quite different from those cameras supported in +camlibs/spca50x. Hence, a separate library to support it. + +The camera will do 352x288 and 176x144 resolution settings. The camera (not +the driver software) compresses all photos in JPEG format. High-resolution +and low-resolution settings use different compression algorithms; not only are +the low-resolution photos of smaller pixel dimensions, but they are also more +highly compressed. + +The hardware supports the following listed actions, all of which are +implemented here: + +-- JPEG photo format for both high-resolution and low resolution settings +-- download all photos (gphoto2 -P) +-- download any selected list of photos (gphoto2 -p) +-- delete all photos on camera +-- shoot a clip, which is saved by the OEM driver as an AVI file and we +save the clip frames here as individual photos. If you want to see a movie +from them, then try using the ImageMagick function "animate." + +The camera is "dual mode" and can also function as a webcam, supported by the +spca50x kernel module. All streaming video and all capture abilities of the +camera use isochronous data transmission and thus require support from +a kernel module. The hardware will not support the capture options of gphoto2. + +The user should be aware that access to this camera through gphoto2 will +fail if attempted with the spca50x kernel module already loaded. In that event +the kernel module will already have claimed the camera. Thus, if you have the +kernel module please make sure it is not installed. You may need to add +spca50x to /etc/hotplug/blacklist to ensure that the module is not +automatically installed when the camera is plugged in. + +Credits: + +Russell Bell has done extensive testing, and has +also participated in the coding. + +Warranty: None. + +Theodore Kilgore +01/21/2006 \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/clicksmart.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/clicksmart.c new file mode 100644 index 00000000..634ec3f6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/clicksmart.c @@ -0,0 +1,281 @@ +/* clicksmart.c + * + * part of libgphoto2/camlibs/clicksmart310 + * + * Copyright (C) 2006 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "clicksmart.h" +#include "spca50x-jpeg-header.h" + +#define GP_MODULE "clicksmart310" + +#define CS_INIT 0x8000 +#define CS_INIT2 0xd41 +#define CS_NUM_PICS 0xd40 +#define CS_CH_READY 0xd00 +#define CS_CH_CLEAR 0xd05 +#define CS_READCLOSE 0x8303 + +static int +CLICKSMART_READ (GPPort *port, int index, char *data) +{ + gp_port_usb_msg_interface_read(port, 0, 0, index, data, 1); + return GP_OK; +} + +static int +CLICKSMART_READ_STATUS (GPPort *port, char *data) +{ + return gp_port_usb_msg_interface_read(port, 0, 0, CS_CH_READY, data, 1); +} + +int clicksmart_init (GPPort *port, CameraPrivateLibrary *priv) +{ + int i, cat_size; + int full_reads; + int short_read; + unsigned char *temp_catalog; + unsigned char *buffer; + char c = 0; + + GP_DEBUG("Running clicksmart_init\n"); + + CLICKSMART_READ(port, CS_INIT, &c); + /* We are supposed to get a response of 0x44 ???*/ + CLICKSMART_READ(port, CS_INIT2, &c); + CLICKSMART_READ(port, CS_NUM_PICS, &c); + + priv->num_pics = (unsigned)c; + full_reads = (unsigned)c/2; + short_read = (unsigned)c%2; + cat_size = (unsigned)c*0x10; + temp_catalog = malloc(cat_size); + if (!temp_catalog) + return GP_ERROR_NO_MEMORY; + memset (temp_catalog, 0, cat_size); + + /* now we need to get and put away the catalog data. */ + + CLICKSMART_READ_STATUS (port, &c); + gp_port_usb_msg_interface_write(port, 6, 0, 9, NULL, 0); + while (c != 1) { + int r; + if ((r = CLICKSMART_READ_STATUS (port, &c)) < GP_OK) + return r; + } + buffer = malloc(0x200); + if (!buffer) { + free (temp_catalog); + return GP_ERROR_NO_MEMORY; + } + /* + * The catalog data is downloaded in reverse order, which needs to be + * straightened out. + */ + for (i=0; i < full_reads; i++) { + memset (buffer, 0, 0x200); + gp_port_read(port, (char *)buffer, 0x200); + memcpy (temp_catalog + cat_size - (2*i+1)*0x10, buffer, 0x10); + memcpy (temp_catalog + cat_size - (2*i+2)*0x10, buffer+0x100, + 0x10); + } + if (short_read) { + memset (buffer, 0, 0x200); + gp_port_read(port, (char *)buffer, 0x100); + memcpy (temp_catalog, buffer, 0x10); + } + priv->catalog = temp_catalog; + + clicksmart_reset(port); + free (buffer); + GP_DEBUG("Leaving clicksmart_init\n"); + + return GP_OK; +} + + +int clicksmart_get_res_setting (CameraPrivateLibrary *priv, int n) +{ + GP_DEBUG("running clicksmart_get_res_setting for picture %i\n", n+1); + /* + * QCIF (176x144) returns 1, or if the entry is a clip frame, then 3 + * and CIF (352x288) returns 0. + */ + return priv->catalog[16*n]; +} + +int +clicksmart_read_pic_data (CameraPrivateLibrary *priv, GPPort *port, + unsigned char **data, int n) +{ + int offset=0; + char c; + unsigned int size = 0; + unsigned int remainder = 0; + + GP_DEBUG("running clicksmart_read_picture_data for picture %i\n", n+1); + + CLICKSMART_READ_STATUS (port, &c); + + GP_DEBUG("ClickSmart Read Status at beginning %d\n", c); + + gp_port_usb_msg_interface_write(port, 6, 0x1fff - n, 1, NULL, 0); + c = 0; + while (c != 1){ + int r; + if ((r = CLICKSMART_READ_STATUS (port, &c)) < GP_OK) + return r; + } + /* Get the size of the data and calculate the size to download, which + * is the next multiple of 0x100. Only for the hi-res photos is the + * true data size actually given. + */ + + size=(priv->catalog[16*n + 12] * 0x100)+(priv->catalog[16*n + 11]); + if (size == 0) /* for lo-res photos the above calculation gives 0 */ + size = (priv->catalog[16*n + 5] * 0x100); + if (size == 0) /* this means data corruption */ + return GP_ERROR; + + remainder = size%0x200; + + GP_DEBUG("size: %x, remainder: %x\n", size, remainder); + *data = calloc(size + 0x100,1); + if (!*data) return GP_ERROR; + /* Download the data */ + while (offset < size-remainder) { + GP_DEBUG("offset: %x\n", offset); + if (gp_port_read(port, (char *)*data + offset, 0x200) < GP_OK) + break; + offset = offset + 0x200; + } + + remainder=((remainder+0xff)/0x100)*0x100; + GP_DEBUG("Second remainder: %x\n", remainder); + if (remainder) + gp_port_read(port, (char *)*data + offset, remainder); + + gp_port_usb_msg_interface_read(port, 0, 0, CS_READCLOSE, &c, 1); + gp_port_usb_msg_interface_write(port, 0, 2, CS_CH_READY, NULL, 0); + + /* + * For lo-res photos the camera does not tell us the true size, but + * when the data has ended the excess bytes downloaded are all + * 00. The photo processing works better if these are suppressed. + */ + + if (priv->catalog[16*n]) { + while ( (*data)[size-1] == 0) + size--; + } + return size; +} + +int +clicksmart_delete_all_pics (GPPort *port) +{ + gp_port_usb_msg_interface_write(port, 0, 2, CS_CH_READY, NULL, 0); + gp_port_usb_msg_interface_write(port, 2, 0, 5, NULL, 0); + return GP_OK; +} + +int +clicksmart_reset (GPPort *port) +{ + char c; + /* Release current register */ + CLICKSMART_READ (port, CS_READCLOSE, &c); + gp_port_usb_msg_interface_write(port, 0, 2, CS_CH_READY, NULL, 0); + CLICKSMART_READ (port, CS_CH_CLEAR, &c); + CLICKSMART_READ (port, CS_CH_CLEAR, &c); + return GP_OK; +} + +/* create_jpeg_from_data adapted from camlibs/spca50x */ + +int create_jpeg_from_data (unsigned char * dst, unsigned char * src, + int qIndex, int w, int h, unsigned char format, + int o_size, int *size, + int omit_huffman_table, int omit_escape) +{ + int i = 0; + unsigned char *start; + unsigned char value; + start = dst; + + /* copy the header from the template */ + memcpy (dst, SPCA50xJPGDefaultHeaderPart1, + SPCA50X_JPG_DEFAULT_HEADER_PART1_LENGTH); + + /* modify quantization table */ + memcpy (dst + 7, SPCA50xQTable[qIndex * 2], 64); + memcpy (dst + 72, SPCA50xQTable[qIndex * 2 + 1], 64); + dst += SPCA50X_JPG_DEFAULT_HEADER_PART1_LENGTH; + + /* copy Huffman table */ + if (!omit_huffman_table) { + memcpy (dst, SPCA50xJPGDefaultHeaderPart2, + SPCA50X_JPG_DEFAULT_HEADER_PART2_LENGTH); + dst += SPCA50X_JPG_DEFAULT_HEADER_PART2_LENGTH; + } + memcpy (dst, SPCA50xJPGDefaultHeaderPart3, + SPCA50X_JPG_DEFAULT_HEADER_PART3_LENGTH); + + /* modify the image width, height */ + *(dst + 8) = w & 0xFF; /* Image width low byte */ + *(dst + 7) = w >> 8 & 0xFF; /* Image width high byte */ + *(dst + 6) = h & 0xFF; /* Image height low byte */ + *(dst + 5) = h >> 8 & 0xFF; /* Image height high byte */ + + /* set the format */ + *(dst + 11) = format; + + /* point to real JPG compress data start position and copy */ + dst += SPCA50X_JPG_DEFAULT_HEADER_PART3_LENGTH; + + for (i = 0; i < o_size; i++) { + value = *(src + i) & 0xFF; + *(dst) = value; + dst++; + + if (value == 0xFF && !omit_escape) { + *(dst) = 0x00; + dst++; + } + } + + /* Add end of image marker */ + *(dst++) = 0xFF; + *(dst++) = 0xD9; + + *size = dst - start; + return GP_OK; + +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/clicksmart.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/clicksmart.h new file mode 100644 index 00000000..5982ef99 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/clicksmart.h @@ -0,0 +1,52 @@ +/* clicksmart.h + * + * headers for libgphoto2/camlibs/clicksmart310 + * + * Copyright (C) 2006 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __CLICKSMART_H__ +#define __CLICKSMART_H__ + +#include + +struct _CameraPrivateLibrary { + unsigned char *catalog; + int num_pics; + unsigned char full; +}; + + +int clicksmart_init (GPPort *port, CameraPrivateLibrary *priv); +int clicksmart_get_res_setting (CameraPrivateLibrary *priv, int n); +int clicksmart_read_pic_data (CameraPrivateLibrary *priv, + GPPort *port, unsigned char **data, + int n); +int clicksmart_delete_all_pics (GPPort *port); + +int clicksmart_reset (GPPort *port); + +int create_jpeg_from_data (unsigned char * dst, unsigned char * src, + int qIndex, int w, int h, + unsigned char format, + int o_size, int *size, + int omit_huffman_table, + int omit_escape); + + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/library.c new file mode 100644 index 00000000..674c9ec2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/library.c @@ -0,0 +1,320 @@ +/* library.c for libgphoto2/camlibs/clicksmart310 + * + * Copyright (C) 2006 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include +#include +#include +#include + +#include +#include + +#define JPEG_QCIF_FORMAT 0x22 +#define JPEG_CIF_FORMAT 0x21 + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +# define ngettext(String1,String2,Count) ((Count==1)?String1:String2) +#endif + +#include "clicksmart.h" +#define GP_MODULE "clicksmart310" + +static const struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {"Logitech Clicksmart 310", GP_DRIVER_STATUS_TESTING, 0x46d, 0x0900}, + {NULL,0,0,0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Logitech Clicksmart 310"); + + return GP_OK; +} + + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].name); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + a.operations = GP_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; +; + a.file_operations = GP_FILE_OPERATION_PREVIEW + + GP_FILE_OPERATION_RAW; + gp_abilities_list_append (list, a); + } + + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + sprintf (summary->text,ngettext( + "Your Logitech Clicksmart 310 has %i picture in it.\n", + "Your Logitech Clicksmart 310 has %i pictures in it.\n", + camera->pl->num_pics + ), + camera->pl->num_pics); + return GP_OK; +} + + +static int camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy(manual->text, + _( + "There are two resolution settings, 352x288 and 176x144. Photo data \n" + "is in JPEG format when downloaded and thus has no predetermined\n" + "size. Therefore, the advertised maximum number of photos the\n" + "camera can hold must be understood as an approximation.\n" + "All gphoto2 options will work, except for the following which\n" + "the hardware will not support:\n" + " Deletion of individual or selected photos (gphoto2 -d)\n" + " Capture (gphoto2 --capture or --capture-image)\n" + "However, capture is possible using the webcam interface,\n" + "supported by the spca50x kernel module.\n" + "GUI access using gtkam has been tested, and works. However,\n" + "the camera does not produce separate thumbnails. Since the images\n" + "are in any event already small and of low resolution, the driver\n" + "merely downloads the actual images to use as thumbnails.\n" + "The camera can shoot in 'video clip' mode. The resulting frames\n" + "are saved here as a succession of still photos. The user can \n" + "animate them using (for example) ImageMagick's 'animate' function.\n" + "For more details on the camera's functions, please consult\n" + "libgphoto2/camlibs/clicksmart310/README.clicksmart310.\n" + )); + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Logitech Clicksmart 310 driver\n" + "Theodore Kilgore \n")); + + return GP_OK; +} + +/*************** File and Downloading Functions *******************/ + + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int n; + GP_DEBUG ("List files in %s\n", folder); + n = camera->pl->num_pics; + gp_list_populate(list, "cs%03i.jpeg", n); + return GP_OK; +} + + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int w=0, h=0, b=0; + int k, res; + unsigned char *data; + unsigned char *jpeg_out = NULL; + int file_size; + unsigned char jpeg_format; + + /* Get the entry number of the photo on the camera */ + k = gp_filesystem_number (camera->fs, "/", filename, context); + + if (GP_FILE_TYPE_EXIF==type) return GP_ERROR_FILE_EXISTS; + + if (GP_FILE_TYPE_RAW!=type && GP_FILE_TYPE_NORMAL !=type && GP_FILE_TYPE_PREVIEW!=type) + return GP_ERROR_NOT_SUPPORTED; + + res = clicksmart_get_res_setting (camera->pl, k); + + switch (res) { + case 0: w = 352; + h = 288; + jpeg_format = JPEG_CIF_FORMAT; + break; + case 1: + case 3: + w = 176; + h = 144; + jpeg_format = JPEG_QCIF_FORMAT; + break; + default: GP_DEBUG ( "Unknown resolution setting %i\n", res); + return GP_ERROR; + } + + data = NULL; + + GP_DEBUG("Fetch entry %i\n", k); + b = clicksmart_read_pic_data (camera->pl, camera->port, &data, k); + + if (GP_FILE_TYPE_RAW == type) { /* type is GP_FILE_TYPE_RAW */ + gp_file_set_mime_type (file, GP_MIME_RAW); + gp_file_set_data_and_size (file, (char *)data, b); + /* Reset camera when done, for more graceful exit. */ + if (k +1 == camera->pl->num_pics) { + clicksmart_reset (camera->port); + } + return GP_OK; + } + + GP_DEBUG ("size = %i\n", b); + + /* It looks as though o_size = b */ + /* It seems that qIndex is byte7, which is always 3, so I use that. */ + + file_size = b + 589 + 1024 * 10; + + jpeg_out = malloc(file_size); + if (!jpeg_out) { + free(data); + return GP_ERROR_NO_MEMORY; + } + + GP_DEBUG("width: %d, height: %d, data size: %d\n", w, h, b); + create_jpeg_from_data (jpeg_out, data, 3, w, h, jpeg_format, + b, &file_size, 0, 0); + + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_data_and_size (file, (char *)jpeg_out, file_size); + /* Reset camera when done, for more graceful exit. */ + if (k +1 == camera->pl->num_pics) { + clicksmart_reset (camera->port); + } + free(data); + return GP_OK; +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + clicksmart_delete_all_pics (camera->port); + return GP_OK; +} + + +/*************** Exit and Initialization Functions ******************/ + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("SQ camera_exit"); + + if (camera->pl) { + free (camera->pl->catalog); + free (camera->pl); + camera->pl = NULL; + } + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .delete_all_func = delete_all_func +}; + +int +camera_init(Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int ret = 0; + + /* First, set up all the function pointers */ + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + + GP_DEBUG ("Initializing the camera\n"); + + ret = gp_port_get_settings(camera->port,&settings); + if (ret < 0) return ret; + switch (camera->port->type) { + case GP_PORT_SERIAL: + return ( GP_ERROR ); + case GP_PORT_USB: + settings.usb.config = 1; + settings.usb.altsetting = 0; + settings.usb.inep = 0x82; + settings.usb.outep =0x03; + break; + default: + return ( GP_ERROR ); + } + + + + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) return ret; + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + camera->pl->catalog = NULL; + camera->pl->num_pics = 0; + + /* Connect to the camera */ + ret = clicksmart_init (camera->port, camera->pl); + if (ret != GP_OK) { + free(camera->pl); + return ret; + }; + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/spca50x-jpeg-header.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/spca50x-jpeg-header.h new file mode 100644 index 00000000..d8a1da0a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/clicksmart310/spca50x-jpeg-header.h @@ -0,0 +1,207 @@ +/* spca50x-jpeg-header.h + * + * part of libgphoto2/camlibs/clicksmart310 + * + * This file is essentially identical to the file of the same name, + * found in libgphoto2/camlibs/spca50x. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + + +#ifndef __SPCA50X_JPEG_HEADER_H +#define __SPCA50X_JPEG_HEADER_H + +/* + * Start from 0 -> 588 + * 7 - 70 : Quantization Table[0] + * 72 - 135 : Quantization Table[1] + */ +#define SPCA50X_JPG_DEFAULT_HEADER_PART1_LENGTH 136 +#define SPCA50X_JPG_DEFAULT_HEADER_PART2_LENGTH 420 +#define SPCA50X_JPG_DEFAULT_HEADER_PART3_LENGTH 33 +#define SPCA50X_JPG_DEFAULT_HEADER_LENGTH 589 + +static unsigned +char SPCA50xJPGDefaultHeaderPart1[SPCA50X_JPG_DEFAULT_HEADER_PART1_LENGTH] = { + /* SOI(Start of Image) */ + 0xFF,0xD8, + /* DQT(Define Quantization Table) */ + 0xFF,0xDB, + 0x00,0x84, + 0x00, + 0x05,0x03,0x04,0x04,0x04,0x03,0x05,0x04,0x04,0x04,0x06,0x05,0x05,0x06,0x08,0x0D, + 0x08,0x08,0x07,0x07,0x08,0x10,0x0C,0x0C,0x0A,0x0D,0x14,0x11,0x15,0x14,0x13,0x11, + 0x13,0x13,0x16,0x18,0x1F,0x1A,0x16,0x17,0x1E,0x17,0x13,0x13,0x1B,0x25,0x1C,0x1E, + 0x20,0x21,0x23,0x23,0x23,0x15,0x1A,0x27,0x29,0x26,0x22,0x29,0x1F,0x22,0x23,0X22, + 0X01, + 0x05,0x06,0x06,0x08,0x07,0x08,0x10,0x08,0x08,0x10,0x22,0x16,0x13,0x16,0x22,0x22, + 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, + 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, + 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22 +}; +static unsigned +char SPCA50xJPGDefaultHeaderPart2[SPCA50X_JPG_DEFAULT_HEADER_PART2_LENGTH] = { + /* DHT(Define Huffman Table) */ + 0xFF,0xC4, + 0x01,0xA2, + 0x00,0x00,0x01,0x05,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x01,0x00,0x03, + 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, + 0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x10,0x00,0x02,0x01,0x03,0x03, + 0x02,0x04,0x03,0x05,0x05,0x04,0x04,0x00,0x00,0x01,0x7D,0x01,0x02,0x03,0x00,0x04, + 0x11,0x05,0x12,0x21,0x31,0x41,0x06,0x13,0x51,0x61,0x07,0x22,0x71,0x14,0x32,0x81, + 0x91,0xA1,0x08,0x23,0x42,0xB1,0xC1,0x15,0x52,0xD1,0xF0,0x24,0x33,0x62,0x72,0x82, + 0x09,0x0A,0x16,0x17,0x18,0x19,0x1A,0x25,0x26,0x27,0x28,0x29,0x2A,0x34,0x35,0x36, + 0x37,0x38,0x39,0x3A,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x53,0x54,0x55,0x56, + 0x57,0x58,0x59,0x5A,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x73,0x74,0x75,0x76, + 0x77,0x78,0x79,0x7A,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x92,0x93,0x94,0x95, + 0x96,0x97,0x98,0x99,0x9A,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xB2,0xB3, + 0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA, + 0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7, + 0xE8,0xE9,0xEA,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0x11,0x00,0x02, + 0x01,0x02,0x04,0x04,0x03,0x04,0x07,0x05,0x04,0x04,0x00,0x01,0x02,0x77,0x00,0x01, + 0x02,0x03,0x11,0x04,0x05,0x21,0x31,0x06,0x12,0x41,0x51,0x07,0x61,0x71,0x13,0x22, + 0x32,0x81,0x08,0x14,0x42,0x91,0xA1,0xB1,0xC1,0x09,0x23,0x33,0x52,0xF0,0x15,0x62, + 0x72,0xD1,0x0A,0x16,0x24,0x34,0xE1,0x25,0xF1,0x17,0x18,0x19,0x1A,0x26,0x27,0x28, + 0x29,0x2A,0x35,0x36,0x37,0x38,0x39,0x3A,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A, + 0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A, + 0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89, + 0x8A,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7, + 0xA8,0xA9,0xAA,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xC2,0xC3,0xC4,0xC5, + 0xC6,0xC7,0xC8,0xC9,0xCA,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xE2,0xE3, + 0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA +}; +/* + * 5 - 6 : Image Height(H Byte,L Byte) + * 7 - 8 : Image Width(H Byte,L Byte) + */ +static unsigned +char SPCA50xJPGDefaultHeaderPart3[SPCA50X_JPG_DEFAULT_HEADER_PART3_LENGTH] = { + /* SOFn(Start of Frame) */ + 0xFF,0xC0, + 0x00,0x11, + 0x08,0x00,0x78,0x00,0xA0,0x03,0x01,0x21,0x00,0x02,0x11,0x01,0x03,0x11,0x01, + /* SOS(Start of Scan) */ + 0xFF,0xDA, + 0x00,0x0C, + 0x03,0x01,0x00,0x02,0x11,0x03,0x11,0x00,0x3F,0x00 +}; + +static unsigned char SPCA50xQTable[20][64]= +{ + /* index 0, Q50 */ + { 16, 11, 12, 14, 12, 10, 16, 14, 13, 14, 18, 17, 16, 19, 24, 40, + 26, 24, 22, 22, 24, 49, 35, 37, 29, 40, 58, 51, 61, 60, 57, 51, + 56, 55, 64, 72, 92, 78, 64, 68, 87, 69, 55, 56, 80,109, 81, 87, + 95, 98,103,104,103, 62, 77,113,121,112,100,120, 92,101,103, 99 }, + { 17, 18, 18, 24, 21, 24, 47, 26, 26, 47, 99, 66, 56, 66, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99 }, + + /* index 1, Q70 */ + { 10, 7, 7, 8, 7, 6, 10, 8, 8, 8, 11, 10, 10, 11, 14, 24, + 16, 14, 13, 13, 14, 29, 21, 22, 17, 24, 35, 31, 37, 36, 34, 31, + 34, 33, 38, 43, 55, 47, 38, 41, 52, 41, 33, 34, 48, 65, 49, 52, + 57, 59, 62, 62, 62, 37, 46, 68, 73, 67, 60, 72, 55, 61, 62, 59 }, + { 10, 11, 11, 14, 13, 14, 28, 16, 16, 28, 59, 40, 34, 40, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59 }, + + /* index 2, Q80 */ + { 6, 4, 5, 6, 5, 4, 6, 6, 5, 6, 7, 7, 6, 8, 10, 16, + 10, 10, 9, 9, 10, 20, 14, 15, 12, 16, 23, 20, 24, 24, 23, 20, + 22, 22, 26, 29, 37, 31, 26, 27, 35, 28, 22, 22, 32, 44, 32, 35, + 38, 39, 41, 42, 41, 25, 31, 45, 48, 45, 40, 48, 37, 40, 41, 40 }, + { 7, 7, 7, 10, 8, 10, 19, 10, 10, 19, 40, 26, 22, 26, 40, 40, + 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, + 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, + 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40 }, + + /* index 3, Q85 */ + { 5, 3, 4, 4, 4, 3, 5, 4, 4, 4, 5, 5, 5, 6, 7, 12, + 8, 7, 7, 7, 7, 15, 11, 11, 9, 12, 17, 15, 18, 18, 17, 15, + 17, 17, 19, 22, 28, 23, 19, 20, 26, 21, 17, 17, 24, 33, 24, 26, + 29, 29, 31, 31, 31, 19, 23, 34, 36, 34, 30, 36, 28, 30, 31, 30 }, + { 5, 5, 5, 7, 6, 7, 14, 8, 8, 14, 30, 20, 17, 20, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30 }, + + /* index 4, Q90 */ + { 3, 2, 2, 3, 2, 2, 3, 3, 3, 3, 4, 3, 3, 4, 5, 8, + 5, 5, 4, 4, 5, 10, 7, 7, 6, 8, 12, 10, 12, 12, 11, 10, + 11, 11, 13, 14, 18, 16, 13, 14, 17, 14, 11, 11, 16, 22, 16, 17, + 19, 20, 21, 21, 21, 12, 15, 23, 24, 22, 20, 24, 18, 20, 21, 20 }, + { 3, 4, 4, 5, 4, 5, 9, 5, 5, 9, 20, 13, 11, 13, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20 }, + + /* index 5, Q60 */ + { 13, 9, 10, 11, 10, 8, 13, 11, 10, 11, 14, 14, 13, 15, 19, 32, + 21, 19, 18, 18, 19, 39, 28, 30, 23, 32, 46, 41, 49, 48, 46, 41, + 45, 44, 51, 58, 74, 62, 51, 54, 70, 55, 44, 45, 64, 87, 65, 70, + 76, 78, 82, 83, 82, 50, 62, 90, 97, 90, 80, 96, 74, 81, 82, 79 }, + { 14, 14, 14, 19, 17, 19, 38, 21, 21, 38, 79, 53, 45, 53, 79, 79, + 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, + 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, + 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79 }, + + /* index 6, Q25 */ + { 32, 22, 24, 28, 24, 20, 32, 28, 26, 28, 36, 34, 32, 38, 48, 80, + 52, 48, 44, 44, 48, 98, 70, 74, 58, 80,116,102,122,120,114,102, + 112,110,128,144,184,156,128,136,174,138,110,112,160,218,162,174, + 190,196,206,208,206,124,154,226,242,224,200,240,184,202,206,198 }, + { 34, 36, 36, 48, 42, 48, 94, 52, 52, 94,198,132,112,132,198,198, + 198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198, + 198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198, + 198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198 }, + + /* index 7, Q95 */ + { 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 2, 4, + 3, 2, 2, 2, 2, 5, 4, 4, 3, 4, 6, 5, 6, 6, 6, 5, + 6, 6, 6, 7, 9, 8, 6, 7, 9, 7, 6, 6, 8, 11, 8, 9, + 10, 10, 10, 10, 10, 6, 8, 11, 12, 11, 10, 12, 9, 10, 10, 10 }, + { 2, 2, 2, 2, 2, 2, 5, 3, 3, 5, 10, 7, 6, 7, 10, 10, + 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, + 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, + 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 }, + + /* index 8, Q93 */ + { 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 3, 2, 2, 3, 3, 6, + 4, 3, 3, 3, 3, 7, 5, 5, 4, 6, 8, 7, 9, 8, 8, 7, + 8, 8, 9, 10, 13, 11, 9, 10, 12, 10, 8, 8, 11, 15, 11, 12, + 13, 14, 14, 15, 14, 9, 11, 16, 17, 16, 14, 17, 13, 14, 14, 14 }, + { 2, 3, 3, 3, 3, 3, 7, 4, 4, 7, 14, 9, 8, 9, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 }, + + /* index 9, Q40 */ + { 20, 14, 15, 18, 15, 13, 20, 18, 16, 18, 23, 21, 20, 24, 30, 50, + 33, 30, 28, 28, 30, 61, 44, 46, 36, 50, 73, 64, 76, 75, 71, 64, + 70, 69, 80, 90,115, 98, 80, 85,109, 86, 69, 70,100,136,101,109, + 119,123,129,130,129, 78, 96,141,151,140,125,150,115,126,129,124 }, + { 21, 23, 23, 30, 26, 30, 59, 33, 33, 59,124, 83, 70, 83,124,124, + 124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124, + 124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124, + 124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124 } +}; + +#endif /* __SPCA50X_JPEG_HEADER_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/ChangeLog new file mode 100644 index 00000000..b4f8f62c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/ChangeLog @@ -0,0 +1,178 @@ +2012-01-12 Theodore Kilgore + * library.c: Digital Blue Barbie Camera DC150 added. + * README.*: Revisions. + +2011-06-20 Theodore Kilgore + * library.c: Cobra Digital Camera DC150 added. + +2010-12-17 Theodore Kilgore + * library.c: Aries Digital Keychain Camera, ITEM 128986 added. + +2010-12-17 Theodore Kilgore + * library.c: Lego Bionicle added. New Product number 0x9051. + * README.9051: Added. + +2010-05-16 Theodore Kilgore + * library.c: Stop & Shop, camera, UPC product code 87096, added. + Reported by Adam Rubin, Adam + +2010-03-16 Theodore Kilgore + * library.c: attempt to name output file abandoned + in camera_capture_preview() + +2010-03-12 Theodore Kilgore + * digi_postprocess.c: improvements in digi_first_decompress() + +2009-05-16 Theodore Kilgore + * library.c: camera_manual() updated to mention new disney pix micro. + +2009-05-10 Theodore Kilgore + * library.c: The disney pix micro reported by Adam Piggs also reported + by Roman Kononov . delete_all_func() support added for + this camera. delete_all_func() must also check if camera is initialized. + Credit comment removed, information moved here. Credits go in the + ChangeLog file, not in the middle of the code. + * digigr8.c: improvements to digi_delete_all() + * README.9052: Added, to describe the new camera. + * digi_postprocess.c: indentation fixes. + + +2008-11-22 Marcus Meissner + + * library.c: Added another version of the disney pix micro, reported + by Adam Piggs + +2008-05-11 Theodore Kilgore + * README.913D: References to nonexistent README.digigr8 corrected. + +2008-04-22 Theodore Kilgore + * digi_postprocess.c: white_balance() added + * library.c: gp_ahd_interpolate() used instead of gp_bayer_interpolate() + white_balance() hooked up. + +2008-01-23 Theodore Kilgore + * library.c: camera_capture_preview() revised to be in line with recent + revisions of gphoto2. Also digi_init() is now not called unless needed, + because camera_capture_preview() does not need it. Functions which need + it now check init_done and ask for digi_init() if init_done is still 0. + * digigr8.c: init_done parameter is set now to 1 in digi_init(). + * digigr8.h: init_done parameter added to CameraPrivateLibrary. + +2008-01-22 Theodore Kilgore + * digi_postprocess.c: Fixed memory leak in second-stage decompression + function. + * README.*: Refers to the raw file converter, added today in + gphoto/trunk/playground/raw_converters/sq_raw_converter + +2008-01-21 Theodore Kilgore + * library.c: Raw files now carry a 16 byte footer consisting of the + allocation table's line for the corresponding photo. This is done to + facilitate development of a standalone raw processor; information is + now saved in the raw file concerning the compression and resolution + settings, as well as certain information which may become useful for + doing color balance, brightness, and contrast adjustments. + * README.digigr8: Renamed README.905C. + * README.9050: Split from README.digigr8. + + +2007-12-27 Theodore Kilgore + * library.c: Added Jazz JDC9, reported by + Victor Hodge . + +2007-12-23 Theodore Kilgore + * library.c: Added Sakar no. 92045 Spiderman, reported by + Martin Laberge . + +2007-10-16 Theodore Kilgore + * library.c: Several cameras from Sakar added to list. + +2007-09-04 Theodore Kilgore + * library.c: ZINA Mini Digital Keychain Camera, reported by + Alvin Austin + +2007-08-24 Theodore Kilgore + * library.c: Suprema Digital Keychain Camera added, which has + new product ID 0x913D, and is able to delete individual photos. + * digigr8.c: changes required here, too, to support individual + photo deletion. + + +2007-07-23 Theodore Kilgore + * README.digigr8: Notes on how to change the capture-preview + resolution setting added. + +2007-07-16 Theodore Kilgore + * library.c: "Disney pix micro" camera supports "delete all." + Also, digigr8 cameras will do capture_preview. These two functions added. + 0x9050 cameras need to be distinguished from 0x905C cameras. + * digigr8.c: camera functions to support deletion and capture. + * digigr8.h: necessary changes. + +2007-07-12 Theodore Kilgore + * library.c: "Disney pix micro" camera, 0x2770:0x9050, works + with this driver. Added it. + + +2007-06-25 Theodore Kilgore + * digi_postprocess.c: removal of superfluous variables. + * digigr8.c: signedness warnings fixed + * library.c: ditto + + +2007-03-28 Theodore Kilgore + + * digi_postprocess.c: small improvements to decompression algorithm. + * library.c: small improvements to decompression algorithm. + +2007-03-28 Theodore Kilgore + + * digi_postprocess.c: a decompression algorithm is installed. + * digigr8.c: small changes to accommodate decompression + * library.c: small changes in get_file_func() to accommodate + use of decompression. + * digigr8.h: new functions added for stage 1 and stage 2 decompression + * README.digigr8: updated to describe new functionality + +2006-12-13 Theodore Kilgore + + * digigr8.c: removed superfluous function digi_read_data().. + + + +2006-06-22 Marcus Meissner + + * library.c: Added Praktica Slimpix, reported by + Gervase Markham. + See: http://sourceforge.net/mailarchive/message.php?msg_id=20703116 + +2006-03-26 Theodore Kilgore + + * library.c: Added Vivitar Vivicam35, reported by self. + + +2005-12-31 Hubert Figuiere + + * library.c: Added Nexxtech Mini Digital Camera + reported by Ken Kennedy + +2005-12-29 Theodore Kilgore + + * digigr8.c: GP_MODULE "didigr8" -> GP_MODULE "digigr8" + +2005-12-29 Theodore Kilgore + + * library.c: Added DC-N130t, reported by + Thierry Leconte + * README: Some updates. + +2005-12-22 Theodore Kilgore + + * library.c: Added two cameras. + Soundstar TDC-35 reported by Patrice Mandin + + Che-Ez Snap SNAP-U reported by Lou + + +2005-12-05 Theodore Kilgore + + First check-in. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/Makefile-files new file mode 100644 index 00000000..8bea0bd6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/Makefile-files @@ -0,0 +1,22 @@ +# -*- Makefile -*- + +EXTRA_DIST += digigr8/README.905C +EXTRA_DIST += digigr8/README.9050 +EXTRA_DIST += digigr8/README.9051 +EXTRA_DIST += digigr8/README.9052 +EXTRA_DIST += digigr8/README.913D +EXTRA_DIST += digigr8/ChangeLog +camlibdoc_DATA += digigr8/README.905C +camlibdoc_DATA += digigr8/README.9050 +camlibdoc_DATA += digigr8/README.9051 +camlibdoc_DATA += digigr8/README.9052 +camlibdoc_DATA += digigr8/README.913D +EXTRA_LTLIBRARIES += digigr8.la + +digigr8_la_SOURCES = \ + digigr8/library.c \ + digigr8/digigr8.c digigr8/digigr8.h \ + digigr8/digi_postprocess.c +digigr8_la_LDFLAGS = $(camlib_ldflags) +digigr8_la_DEPENDENCIES = $(camlib_dependencies) +digigr8_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.9050 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.9050 new file mode 100644 index 00000000..317b5b09 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.9050 @@ -0,0 +1,70 @@ +/* This is one of the README files for libgphoto2/camlibs/digigr8. This is an + * integral part of the libgphoto2/camlibs/digigr8 library source code and is + * distributed with that source code under the LGPL license. a copy of which + * license may be seen in the head directory of libgphoto2, in the file + * COPYING. + * This file copyright Theodore Kilgore, 01/21/2008. + */ + +CONCERNING 0x2770:0x9050 CAMERAS: + +First, a general remark. The reader is strongly encouraged to read +README.905C as well as this file. That file in fact pertains to all of the +cameras which are supported by libgphoto2/camlibs/digigr8. All of what it says +pertains to the 0x2770:0x9050 cameras, too, unless something to the contrary is +stated below. + + +As of 01/20/2008, the only known camera with USB ID string 0x2770:0x9050 is the +"Disney pix micro," found at KB Toys. Its functionality is very basic. On the +package it says the camera is able to take 20 photos, but in fact the number +of photos is variable. For, they are all compressed. + +Since the compression algorithm is the same as that in the 0x905C cameras, this +camera is quite usable, for what it is. Resolution for this camera is fixed at +352x288 and can not be adjusted. In fact, the only thing on the camera which +can be controlled at all, aside from snapping photos one at a time, is to +delete photos one at a time or to delete all. To delete one photo with the +delete button on the camera, press the button. To delete all, hold it down +longer. To the best of my ability to determine, the camera has no clip option, +no delayed-shooting option, and no multi-frame clips intended for AVI images. +However, the camera will do software deletion of all photos using the option +gphoto2 -D, while for the other cameras supported in camlibs/digigr8 the +gphoto2 -D option does nothing at all and is therefore considered as an +unsupported operation for those other cameras. However: + + +WARNING + +The USB command to delete is the same as the command to shoot a frame +(gphoto2 option is --capture-preview). If you shoot a frame with the Disney +pix micro, it will delete whatever photos are on the camera !!! + +WARNING + +The camera has kernel support as a webcam, at 320x240 resolution. + +Use of the camera in webcam mode will delete all photos stored on the +camera, too !!! + + +WARRANTY? + + Absolutely not. No warranty. Never. Not responsible for any actual + or potential damage or consequences to anyone or to the equipment of + anyone for using this program, whether the alleged damage or alleged + consequences are claimed to be real, imaginary, direct, collateral, + for pain and suffering, or are claimed to be inflicted upon any + "third party" who is not the user or installer of the program. The + program has been written for my pleasure and to broaden and deepen + my knowledge of computer hardware and software. The program has not + been written with the immediate expectation of financial gain or + profit on my part, nor has it been commissioned for pay. It is + presumed that any end-user of this program will have access to the + source code of the program and can judge for himself or herself + whether he/she wishes to use it or not, or can consult someone with + appropriate expertise to make such a judgment. + + +Theodore Kilgore +01/21/2008, revised 01/22/2008, 01/12/2012 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.9051 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.9051 new file mode 100644 index 00000000..51af2f90 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.9051 @@ -0,0 +1,101 @@ +/* This is one of the README files for libgphoto2/camlibs/digigr8. This is an + * integral part of the libgphoto2/camlibs/digigr8 library source code and is + * distributed with that source code under the LGPL license. a copy of which + * license may be seen in the head directory of libgphoto2, in the file + * COPYING. + * This file copyright Theodore Kilgore, 12/17/2010. + */ + +CONCERNING 0x2770:0x9051 CAMERAS: + +First, a general remark. The reader is strongly encouraged to read. +README.905C as well as this file. That file in fact pertains to all of the. +cameras which are supported by libgphoto2/camlibs/digigr8. All of what it says +pertains to the 0x2770:0x9051 cameras, too, unless something to the contrary is +stated below. + +As of 12/17/2010, the only known camera with USB ID string 0x2770:0x9051 is the +"Lego Bionicle," apparently produced by Digital Blue for Lego. Its +functionality is very basic. On the package it says the camera is able to take +40 photos, but in fact the number of photos is variable. For, they are all +compressed. + +On 01/12/2012 the Digital Blue Barbie Camera, has been discovered, too. Except +for the name and the camera case, it seems identical to the Lego Bionicle. + +Since the compression algorithm is the same as that in the 0x905C cameras, this +camera is quite usable, for what it is. Resolution for this camera in still +mode appears to be nonadjustable and fixed at 640x480. + +The camera has two buttons on it. one on the top and one on the rear. The +button on top is the shutter button, of course. The button on the rear is +often called the "mode" button on other cameras, and it will do such things +as to switch the resolution mode, the compression mode, the continuous shooting +mode, and such. But that is on other cameras. Here, that button is a "delete" +button and will perform no other function -- well, none except to turn the +camera on if it is in power-off mode and the user is adventurous. + +To start the camera in stillcam mode, first look at the indicator window on the +back. If it is blank, the camera is off. Press the shutter button. It can also +work to press the "Delete" button quickly and let go. But holding the "Delete" +button down will start the deletion of photos. + +To delete the last photo, press the "Delete" button and watch the LCD indicator +window on the rear of the camera. The number of photos shown there will +decrease by one. To delete all, hold the button down longer. The photos will be +deleted then, one by one, starting with the last one. The LCD window will show +the decreasing number of photos while the button is being held. + +To the best of my ability to determine, the camera has no clip option, +no delayed-shooting option, and no multi-frame clips intended for AVI images. +As a still camera it will do still photos only, and those will be of dimensions +640x480. + +This camera also supports the option "gphoto2 --capture-preview" which +means that the camera shoots an image which is immediately downloaded, not +being stored on the camera at all. If gphoto2 --capture-preview is done, then +the resulting frame comes out of the camera at 320x240 resolution. This +resolution setting is in fact adjustable. Those who are curious may consult + +/linux(recent version)/drivers/media/video/gspca/sq905c.c + +where resolution-choosing is completely supported. That file supports the +"webcam" functionality of all the cameras which are supported in still mode in +libgphoto2/camlibs/digigr8. That is, these cameras work as webcams, too. +The resolution settings which are supported in webcam mode are +640x480, and 320x240. + + +WARNING: The --capture-preview option *will* delete all photos on the camera. + + +The option gphoto2 -D is therefore supported, too. However, the user should +note that the USB command to delete is the same as the USB command to shoot a +frame (gphoto2 option is --capture-preview). Again. If you shoot a frame with +the Lego Bionicle, it will delete whatever photos are on the camera !!! + + +WARNING: Use of the camera as a webcam will delete all photos on the camera, +too !!! + + +WARRANTY? + + Absolutely not. No warranty. Never. Not responsible for any actual + or potential damage or consequences to anyone or to the equipment of + anyone for using this program, whether the alleged damage or alleged + consequences are claimed to be real, imaginary, direct, collateral, + for pain and suffering, or are claimed to be inflicted upon any + "third party" who is not the user or installer of the program. The + program has been written for my pleasure and to broaden and deepen + my knowledge of computer hardware and software. The program has not + been written with the immediate expectation of financial gain or + profit on my part, nor has it been commissioned for pay. It is + presumed that any end-user of this program will have access to the + source code of the program and can judge for himself or herself + whether he/she wishes to use it or not, or can consult someone with + appropriate expertise to make such a judgment. + + +Theodore Kilgore +12/17/2010, revised 01/12/2012. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.9052 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.9052 new file mode 100644 index 00000000..40a8a6d2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.9052 @@ -0,0 +1,32 @@ +/* This is one of the README files for libgphoto2/camlibs/digigr8. This is an + * integral part of the libgphoto2/camlibs/digigr8 library source code and is + * distributed with that source code under the LGPL license. a copy of which + * license may be seen in the head directory of libgphoto2, in the file + * COPYING. + * This file copyright Theodore Kilgore, 05/10/2009. + */ + +CONCERNING 0x2770:0x9052 CAMERAS + +First, a general remark. The reader is strongly encouraged to read +README.905C as well as this file. That file in fact pertains to all of the +cameras which are supported by libgphoto2/camlibs/digigr8. All of what it says +pertains to the 0x2770:0x9052 cameras, too, unless something to the contrary is +stated below. + + +The only camera known to use the ID 0x2770:0x9052 a Disney Pix Micro camera. It +seems to be a VGA version of the smaller camera with the same name, which +reports itself as 0x2770:0x9050. The new camera has the resolution settings +640x480 and 320x240. Both cameras permit deletion of all photos. The same +operations are used for that as for the capture of an image to the computer +(that is, the gphoto2 --capture-preview operation). The user is therefore +advised that the --capture-preview operation will also clear the camera's +memory and remove all images stored there. + +The camera also has kernel support for webcam mode. To run the camera as a +webcam will also delete all still photos stored in the camera. + +For further details please consult the file README.9050. + +Revised 01/12/2012 \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.905C b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.905C new file mode 100644 index 00000000..a773b381 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.905C @@ -0,0 +1,274 @@ +/* This is the README file for libgphoto2/camlibs/digigr8. This README is an + * integral part of the libgphoto2/camlibs/digigr8 library source code and is + * distributed with that source code under the LGPL license, a copy of which + * license may be seen in the head directory of libgphoto2, in the file + * COPYING. + * Original of this file copyright Theodore Kilgore, 12/05/05. + */ + + +INTRODUCTION: + +The cameras supported here have a controller chip from S&Q Technologies. +They have USB Vendor:Product number 0x2770:0x905c. These cameras are cheap +and basic. Their functioning resembles that of the cameras supported by the +sq905 camera library, but is a bit different. More recently (07/11/2007) I +have discovered a camera with Product ID 0x9050 which will also function with +the same driver library. A more specific description of this camera can be +found in README.9050. Still more recently, several cameras with USB ID +0x2770:0x913D also came onto the market. These cameras also can be made to +function with the same code base, in spite of some differences. They are +more specifically described in README.913D. + +The first camera which I knew of with USB ID 0x2770:0x905C was the Digigr8 from +RadioShack. Hence comes the name of this camera library. Several more cameras +have since been reported, including one which has the same make/model painted +on the plastic case as that of a camera which previously used an sq905 chip +and used the sq905 Vendor:Product number instead of this one. SQ Technologies +seems to have discontinued the SQ905 and the SQ905C is apparently its successor. + +For information about additional cameras with the same USB ID, I am totally +dependent on reports from users and testers. If you have another 0x2770:0x905c +camera and want it to work and it currently does not, then I will be very glad +to hear from you. Saying this a different way: further progress with your +camera will depend upon your input. If on the other hand your camera does work +and is not explicitly listed, I would still like to know about it for the sake +of completeness. I will give it an explicit line listing in library.c and I +will credit you as the finder of the camera, in the ChangeLog file. + + +WHAT CHIP IS ACTUALLY IN THESE CAMERAS? + +I do not know. I did not take one apart to look inside. (update) Someone has +reported to me that he did take his camera apart, and it really is an SQ905C +chip inside. + +WHAT FEATURES DO THESE CAMERAS HAVE, AND WHAT DOES THIS DRIVER SUPPORT? + + FEATURE LIST SUPPORTED (Y/N/Part) +-- USB connection to computer Y +-- High resolution 640x480, uncompressed Y +-- Low resolution 320x240, uncompressed Y +-- High resolution 640x480, compressed Y +-- Low resolution 320x240, compressed Y +-- Ability to "switch" resolution between pictures Y +-- Ability to download all pictures on camera Y +-- Ability to download the first k pictures, where + k is less than the number on the camera Y +-- Ability to download individual photos Y (faked, but works) +-- Shoot a frame and save image to computer Y +-- Internal battery, which recharges through the USB port (some models) + +------------------------------------------------------------------------- +The following things can be done with button-pushes on the camera: +------------------------------------------------------------------------- +-- Frequency filter for use in artificial light. Can be set + to cancel 60hz or 50hz interference. +-- Delete all, delete last, resolution setting, compression mode setting. +-- "Clip" mode will shoot three frames. The camera "sees" these frames as + ordinary photos. Also the photo counter on the LED counts them. +-- "AVI" mode shoots until the shutter button is released, or until the + camera is full. The photo counter on the camera does NOT count the + AVI frames as separate items, but thinks all of the frames are part + of one photo. Otherwise, the camera in fact sees the frames as + ordinary photos, so gphoto2 will give the actual count of all frames, + no matter whether photos or part of an AVI clip. Accordingly, gphoto2 + will download the AVI frames as if they were ordinary photos and will + sequentially number the frames in the course of numbering the photos + which come out of the camera. The user can easily create a movie from + the AVI frames, using an animation program, such as the "animate" + command from the ImageMagick package. The default resolution for AVI + frames is always 320x240 regardless of the resolution setting chosen + for still photos. AVI mode will use compression if it otherwise + happens to be turned on. + +Notes: + +The 0x2770:0x9050 and 0x2770:913D cameras differ from the above description in +some particulars. Please see the respective README files for details. + +Almost all known cameras supported by the camlibs/digigr8 have a 640x480 +high-resolution setting and a 320x240 low-resolution setting. If your +0x2770:0x905c camera uses another resolution setting, then it might still +work. There is some similarity with the sq905 cameras, and I kept that part +of the code here. Specifically, if the camera has 352x288 and 176x144 +resolution settings, these might work but are not tested (Note added July 2007: +the code for 352x288 _does_ continue to work; see below). If your camera does +not work due to unknown resolution settings, then the new resolution settings +need to be listed in digigr8.c in digi_get_picture_width (). Please report any +such problem. I will ask you to run a gphoto2 command in debug mode and we can +easily find the information we need -- which information, understand, I do not +possess unless you share it with me. + +The pictures obtained on the uncompressed settings can often be superior to +those obtained using the software which came with the camera, but not +always. Generally, considering that they are cheap, low resolution cameras, +these cameras give relatively good pictures. + +The digigr8 cameras can also function as webcams. That is supported in the +kernel but is outside the scope of gphoto2. + + +HARDWARE LIMITATIONS AND CONSTRAINTS + +The SQ905C chip, like the SQ905 before it, is a minimalist controller chip; if +any of its functionality at all were removed, it would probably be impossible to +use it to run a digital camera. To program around the limitations of the chip, +therefore, is a special challenge. Here are some examples. + +1. The manufacturer's driver will do nothing but to download all photos +on the camera, and display them, keeping temporary copies in C:\TEMP, to be +deleted when the camera access program is closed. After downloading everything, +then, the OEM program allows the user to "select" and to "save" any or all of +the photos which have, in fact, already been downloaded (indeed the displayed +"thumbnails" came from the files in C:\TEMP, too). Now, gphoto2 does not +operate thus, has preconceived notions about how any respectable camera should +act, and regards such a primitive camera controller chip as an untamed beast. +Thus, many of the gphoto2 functions will not work unless, through a bit of +fakery which involves downloading data and throwing it away and on some +occasions resetting the camera, this primitive behavior is somewhat improved. +That all has to be done in the driver, with fakery invisible to the user. These +remarks apply not only to getting thumbnails, but also to many other gphoto2 +options as well. See item 2. + +2. The camera's data storage provides only sequential access, not +random access. In other words, it acts as though it were a tape drive +instead of a disk. Worse, it's like a tape drive with no fast forward and +no rewind controls. The constraints which this places are obvious. It means +for example that to download all the photos on the camera to display thumbnails +requires the camera to be reset afterwards, because that is the only way to do +the "rewind" required before any of the photos can be accessed again. It also +menas that "gphoto2 -p 2" would NOT download the second photo on the camera, +unless the support for it is so written as to download the first photo, then +the second photo, and to process only the second one, having consigned the +data from the first photo to /dev/null. The camera simply cannot do better. +The gphoto2 -p 2 command option does work, of course, but only because the +necessary jury-rigging has been built into the download function. + +3. Considering the way the communication protocols of these cameras +seem to work, it would seem nearly impossible to copy any data to the camera +for storage and transport. The camera clearly does not have files on it, +only data addresses. And the camera does not keep time. For similar +reasons, it would also seem impossible to delete a photo from the camera by +action of software on the computer. The camera itself supports two choices for +deletion: delete the last photo taken, or delete all. Each action is +performed by an appropriate sequence of button pushes on the camera. + +WARNING about battery use: + +In addition to all of the above limitations, the cameras use SDRAM for data +storage. Consequently, the batteries will be drained if one leaves them in +the camera when it is not being used. + + +WHAT GUI FRONTENDS DOES THIS CAMERA LIBRARY SUPPORT? + +Gtkam seems to work well for me with this library, and also flphoto. Some of +the other various frontends do not seem to work quite so well for me. But one +of them may work nicely for you, and you are hereby encouraged to try whichever +one is your favorite. If you want to use either gtkam or digikam, you are +encouraged to read the camera's manual (in gtkam, right-click on the name of +the camera in the left panel, after starting the program and having chosen the +correct camera). + + +NOTES + +1. The program is set up to put out pictures in PPM or raw format. The OEM +program offers JPEGs. If the user desires JPEG output, then that can easily +be done on Linux, using other software which exists independently from +libgphoto2. + +2. As of 01/20/2008, all raw files downloaded from these cameras will +have a "footer" of length 16 bytes. This footer consists of the line from the +camera's allocation table, which gives some information about the photo. The +information includes a code for the resolution and compression setting +and some information which may be useful in the future relating to color and +lighting. Unfortunately, the meaning of the color and lighting information is +not well enough understood to be useful at this time, but it may be useful in +the future, so why not preserve the information? + +3. The gamma setting (actually seems to be one over gamma) used for +the construction of PPM image files has been obtained by trial and error. It +seems to work very well for outdoor pictures, but the setting is a +compromise between what happens with outdoor photos and what happens with +indoor photos. Conceivably, the program could support a choice between two +or more gamma settings, optimizing for different conditions. + + +4. A still-experimental postprocessing routine is added, to provide +some sharpening and color correction for different lighting conditions. The +routine can easily be turned off if one wishes, and because it is +experimental you may so wish. To disable it, just comment out the line in +get_file_func ( ) in library.c where the function digi_postprocess ( ) is +called. Then do "make install" to install your change. + + +5. An experimental program for processing raw files into finished photos +is available now, in gphoto2/trunk/playground/raw_converters/sq_raw_converter +Please try this program. If the results are good, I will incorporate the +routines used there directly into libgphot02/camlibs/digigr8. I like the +results, but they need testing. + + +6. The "High Compression" setting uses an unpublished compression +algorithm. However, after serious effort the decompression seems to work +pretty well. There are at this time (01/20/2008) no known issues with it. + +7. Please get back to me with reports about other SQ cameras (any cameras +with Vendor number 0x2770), with their specifications (what it says in the OEM +manual about resolution and number of pictures, as well as make and model, and +whether it works or not with any libgphoto2 driver or not, would be enough), +and with a log file if it seems it is supposed to work but there are problems. + + +A NOTE ON CAPTURE AND ON CHANGING THE RESOLUTION SETTING FOR CAPTURE + +These cameras will perform "gphoto2 --capture-preview" which means, to shoot a +frame and download it to the computer immediately. On the 0x9050 camera, the +same USB command which trips the shutter will simultaneously delete all frames +on the camera. On the 0x905C cameras, capture works, but will not affect whatever +is on the camera. + +The default resolution setting for capture with all these cameras is 320x240. +For those cameras which will do 640x480 resolution in still photo mode, there +is a tweak which can cause the camera to do the +capture at 640x480 as well. It is as follows: + +Look through the code in camlibs/library.c for the capture function. You will +see a USB command in which the digit 0x1440 appears. Change that to 0x2840 and +re-compile and re-install. It is also possible to get 160x120 resolution, but +that is not so interesting. Evidently, the "40" means to do capture, and the +previous two digits are the resolution setting in hexadecimal, with the final +"0" removed. For example, 640=0x280 -> 0x2840 and 320=0x140 -> 0x1440 (which, +again, is the default setting). I am not sure what would happen if the +resolution setting here is too high for the camera (the known 0x9050 camera +will only do 352x288 at max resolution in still mode, for instance). Therefore, +this tweak is not implemented. However, it does work for me with those cameras +for which it works. It should be repeated, too, that this tweak is not +documented by any manufacturer and is not available in the OEM driver for any +of these cameras. + + +WARRANTY? + + Absolutely not. No warranty. Never. Not responsible for any actual + or potential damage or consequences to anyone or to the equipment of + anyone for using this program, whether the alleged damage or alleged + consequences are claimed to be real, imaginary, direct, collateral, + for pain and suffering, or are claimed to be inflicted upon any + "third party" who is not the user or installer of the program. The + program has been written for my pleasure and to broaden and deepen + my knowledge of computer hardware and software. The program has not + been written with the immediate expectation of financial gain or + profit on my part, nor has it been commissioned for pay. It is + presumed that any end-user of this program will have access to the + source code of the program and can judge for himself or herself + whether he/she wishes to use it or not, or can consult someone with + appropriate expertise to make such a judgment. + + +Theodore Kilgore +12/05/05 +(revised 12/29/2005, 03/28/2007, 06/25/2007, 07/16/2007, 07/23/2007, +01/21/2008, 01/22/2008, 01/12/2012) \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.913D b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.913D new file mode 100644 index 00000000..1ce2a4db --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/README.913D @@ -0,0 +1,71 @@ +/* This is a second README file for libgphoto2/camlibs/digigr8. This README is + * an integral part of the libgphoto2/camlibs/digigr8 library source code and + * is distributed with that source code under the LGPL license. a copy of which + * license may be seen in the head directory of libgphoto2, in the file + * COPYING. + * Copyright by Theodore Kilgore, 08/24/07. + */ + + + +On 08/23/2007, I discovered a new camera with USB ID 0x2770:0x913d. The +basic functions of this camera are the same as those of the 0x2770:0x905c +cameras which are the main ones supported in libgphoto2/camlibs/digigr8, but +there are some small differences. For a complete description and discussion +of the 0x2770:0x913D camera, therefore, the reader should also read +README.905C. Only the basic features and the differences with the +previously-supported 0x2770:0x905C cameras are listed here: + +Features of the Suprema Digital Keychain Camera: + + -- 640x480 and 320x240 resolution settings + -- supports gphoto2 --capture-preview option (presumed that the size + of the output image can be adjusted in code, default +` 320x240; see README.905C for details of that. + -- apparently does _not_ support multiframe AVI capability, or if so + it is not mentioned in the written manual. + -- a setting does exist for shooting three frames with one shutter + press, but three only, not more. + -- has a viewfinder and preview window on the back, which is very + pretty but presumably eats battery. + -- saves photos in volatile SDRAM, so don't let the batteries die. + -- permits deletion of individual photos on the camera, by pushing + some buttons. This feature is not present on the SQ905C + cameras and is a big difference. Because of the way + this deletion is done, the function which counts photos + needed a serious rewrite to accommodate the deletion. + It will probably not ever be possible, unfortunately, to + support deletion of any photos or images on the camera, by + means of software control from the computer. + -- webcam functionality. The webcam function is supported by the + kernel. This camera library in libgphoto2 supports stillcam + functionality. + +As a further note, the gphoto2 --capture-image USB command when used with an +0x2770:0x913D camera will _not_ delete the images already on the camera. This +means one does not have to worry about that happening; it also means that there +is no way known to implement the gphoto2 -D option for these cameras. + + +On 10/13/07 I discovered that the Sakar Styleshot (Sakar ID no. 28290 or 28292) +is also supported, and I have added it to the list of cameras in library.c. +Aside from appearance, the main difference between the Styleshot and the +Suprema described above is that the Styleshot has an internal rechargeable +battery. + +On 12/23/07 the Sakar Spiderman (no. 92045) has been reported by Martin Laberge +. THERE IS POTENTIAL NAME CONFUSION WITH THIS CAMERA. The +Sakar Amazing Spiderman (no. 94044) has in it a JL2005C chip which is currently +not supported in libgphoto2. Buyer beware! (Update 01/12/2012: Support for +all JL2005C cameras has been added to libgphoto2. The buyer need not "beware" +any longer. However, it seems to remain true that SQ cameras take better than +average pictures, relative to their low price range.) + +WARRANTY: + +None. For a more complete discussion of this issue, the reader is referred to +README.905C and to the statements of the LGPL license regarding warranty. + + +Theodore Kilgore, 08/24/2007, revised 12/23/2007, 01/21/2008, +01/22/2008, 01/12/2012 \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/digi_postprocess.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/digi_postprocess.c new file mode 100644 index 00000000..427ebc6c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/digi_postprocess.c @@ -0,0 +1,515 @@ +/* + * postprocess.c + * + * Here are the decompression function for the compressed photos and the + * postprocessing for uncompressed photos. + * + * Copyright (c) 2005 and 2007 Theodore Kilgore + * Camera library support under libgphoto2.1.1 for camera(s) + * with chipset from Service & Quality Technologies, Taiwan. + * The chip supported by this driver is presumed to be the SQ905, + * + * Licensed under GNU Lesser General Public License, as part of Gphoto + * camera support project. For a copy of the license, see the file + * COPYING in the main source tree of libgphoto2. + */ + +#include + + +#include +#include +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include +#include +#include +#include "digigr8.h" + +#define GP_MODULE "digigr8" + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + +static int +digi_first_decompress (unsigned char *output, unsigned char *input, + unsigned int outputsize) +{ + unsigned char parity = 0; + unsigned char nibble_to_keep[2]; + unsigned char temp1 = 0, temp2 = 0; + unsigned char input_byte; + unsigned char lookup = 0; + unsigned int i = 0; + unsigned int bytes_used = 0; + unsigned int bytes_done = 0; + unsigned int bit_counter = 8; + unsigned int cycles = 0; + int table[9] = { -1, 0, 2, 6, 0x0e, 0x0e, 0x0e, 0x0e, 0xfb}; + unsigned char lookup_table[16] + ={0, 2, 6, 0x0e, 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, + 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb}; + unsigned char translator[16] = + {8, 7, 9, 6, 10, 11, 12, 13, 14, 15, 5, 4, 3, 2, 1, 0}; + + GP_DEBUG ("Running first_decompress.\n"); + nibble_to_keep[0] = 0; + nibble_to_keep[1] = 0; + + while (bytes_done < outputsize) { + while (parity < 2 ) { + while ( lookup > table[cycles]) { + if (bit_counter == 8) { + input_byte = input[bytes_used]; + bytes_used ++; + temp1 = input_byte; + bit_counter = 0; + } + input_byte = temp1; + temp2 = (temp2 << 1) & 0xFF; + input_byte = input_byte >> 7; + temp2 = temp2 | input_byte; + temp1 = (temp1 <<1) & 0xFF; + bit_counter ++ ; + cycles ++ ; + if (cycles > 8) { + GP_DEBUG ("Too many cycles?\n"); + return GP_ERROR; + } + lookup = temp2 & 0xff; + } + temp2 = 0; + for (i=0; i < 17; i++ ) { + if (i == 16) { + GP_DEBUG( + "Illegal lookup value during decomp\n"); + return GP_ERROR; + } + if (lookup == lookup_table[i] ) { + nibble_to_keep[parity] = translator[i]; + break; + } + } + cycles = 0; + parity ++ ; + } + output[bytes_done] = (nibble_to_keep[0] << 4) + | nibble_to_keep[1]; + bytes_done++; + parity = 0; + } + GP_DEBUG ("bytes_used = 0x%x = %i\n", bytes_used, bytes_used); + return GP_OK; +} + +static int +digi_second_decompress (unsigned char *uncomp, unsigned char *in, + int width, int height) +{ + int diff = 0; + int tempval = 0; + int i, m; + unsigned char delta_left = 0; + unsigned char delta_right = 0; + int input_counter = 0; + int delta_table[] = {-144, -110, -77, -53, -35, -21, -11, -3, + 2, 10, 20, 34, 52, 76, 110, 144}; + unsigned char *templine_red; + unsigned char *templine_green; + unsigned char *templine_blue; + templine_red = malloc(width); + if (!templine_red) { + return GP_ERROR_NO_MEMORY; + } + for(i=0; i < width; i++) + templine_red[i] = 0x80; + + templine_green = malloc(width); + if (!templine_green) { + free (templine_red); + return GP_ERROR_NO_MEMORY; + } + for(i=0; i < width; i++) + templine_green[i] = 0x80; + + templine_blue = malloc(width); + if (!templine_blue) { + free (templine_red); + free (templine_green); + return GP_ERROR_NO_MEMORY; + } + for(i=0; i < width; i++) + templine_blue[i] = 0x80; + + GP_DEBUG ("Running second_decompress.\n"); + for (m = 0; m < height / 2; m++) { + /* First we do an even-numbered line */ + for (i = 0; i < width / 2; i++) { + delta_right = in[input_counter] & 0x0f; + delta_left = (in[input_counter] >> 4) & 0xff; + input_counter++; + /* left pixel (red) */ + diff = delta_table[delta_left]; + if (!i) + tempval = templine_red[0] + diff; + else + tempval = (templine_red[i] + + uncomp[2 *m * width + 2 * i - 2]) / 2 + + diff; + tempval = MIN(tempval, 0xff); + tempval = MAX(tempval, 0); + uncomp[2 * m * width + 2 * i] = tempval; + templine_red[i] = tempval; + /* right pixel (green) */ + diff = delta_table[delta_right]; + if (!i) + tempval = templine_green[1] + diff; + else if (2 * i == width - 2 ) + tempval = (templine_green[i] + + uncomp[2 * m * width + 2 * i -1]) / 2 + + diff; + else + tempval = (templine_green[i + 1] + + uncomp[2 * m * width + 2 * i - 1]) / 2 + + diff; + tempval = MIN(tempval, 0xff); + tempval = MAX(tempval, 0); + uncomp[2 * m * width + 2 * i + 1] = tempval; + templine_green[i] = tempval; + } + /* then an odd-numbered line */ + for (i = 0; i < width / 2; i++) { + delta_right = in[input_counter] &0x0f; + delta_left = (in[input_counter] >> 4) & 0xff; + input_counter++; + /* left pixel (green) */ + diff = delta_table[delta_left]; + if (!i) + tempval = templine_green[0] + diff; + else + tempval = (templine_green[i] + + uncomp[(2 * m + 1) * width + + 2 * i - 2]) / 2 + diff; + tempval = MIN(tempval, 0xff); + tempval = MAX(tempval, 0); + uncomp[(2 * m + 1) * width + 2 * i] = tempval; + templine_green[i] = tempval; + /* right pixel (blue) */ + diff = delta_table[delta_right]; + if (!i) + tempval = templine_blue[0] + diff; + else + tempval = (templine_blue[i] + + uncomp[(2 * m + 1) * width + + 2 * i - 1]) / 2 + diff; + tempval = MIN(tempval, 0xff); + tempval = MAX(tempval, 0); + uncomp[(2 * m + 1) * width + 2 * i + 1] = tempval; + templine_blue[i] = tempval; + } + } + free(templine_green); + free(templine_red); + free(templine_blue); + return GP_OK; +} + +int +digi_decompress (unsigned char *out_data, unsigned char *data, + int w, int h) +{ + int size; + unsigned char *temp_data; + size = w * h / 2; + temp_data = malloc(size); + if (!temp_data) + return GP_ERROR_NO_MEMORY; + digi_first_decompress (temp_data, data, size); + GP_DEBUG("Stage one done\n"); + digi_second_decompress (out_data, temp_data, w, h); + GP_DEBUG("Stage two done\n"); + free(temp_data); + return(GP_OK); +} + +/* Brightness correction routine adapted from + * camlibs/polaroid/jd350e.c, copyright © 2001 Michael Trawny + * + */ + + +#define RED(p,x,y,w) *((p)+3*((y)*(w)+(x)) ) +#define GREEN(p,x,y,w) *((p)+3*((y)*(w)+(x))+1) +#define BLUE(p,x,y,w) *((p)+3*((y)*(w)+(x))+2) + + +#define MINMAX(a,min,max) { (min)=MIN(min,a); (max)=MAX(max,a); } + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif +#ifndef CLAMP +#define CLAMP(x) ((x)<0?0:((x)>255)?255:(x)) +#endif + +int +digi_postprocess(int width, int height, + unsigned char* rgb) +{ + int + x,y, + red_min=255, red_max=0, + blue_min=255, blue_max=0, + green_min=255, green_max=0; + double + min, max, amplify; + + /* determine min and max per color... */ + + for( y=0; y 1.2) gamma = 1.2; + GP_DEBUG("Gamma correction = %1.2f\n", gamma); + gp_gamma_fill_table(gtable, gamma); + gp_gamma_correct_single(gtable,data,size); + if (saturation < .5 ) /* If so, exit now. */ + return GP_OK; + + /* ---------------- BRIGHT DOTS ------------------- */ + max = size / 200; + histogram(data, size, htable_r, htable_g, htable_b); + + for (r = 0xfe, x = 0; (r > 32) && (x < max); r--) + x += htable_r[r]; + for (g = 0xfe, x = 0; (g > 32) && (x < max); g--) + x += htable_g[g]; + for (b = 0xfe, x = 0; (b > 32) && (x < max); b--) + x += htable_b[b]; + r_factor = (double) 0xfd / r; + g_factor = (double) 0xfd / g; + b_factor = (double) 0xfd / b; + + max_factor = r_factor; + if (g_factor > max_factor) max_factor = g_factor; + if (b_factor > max_factor) max_factor = b_factor; + if (max_factor >= 4.0) { + /* We need a little bit of control, here. If max_factor > 4 the photo + * was very dark, after all. + */ + if (2.0 * b_factor < max_factor) + b_factor = max_factor / 2.; + if (2.0 * r_factor < max_factor) + r_factor = max_factor / 2.; + if (2.0 * g_factor < max_factor) + g_factor = max_factor / 2.; + r_factor = (r_factor / max_factor) * 4.0; + g_factor = (g_factor / max_factor) * 4.0; + b_factor = (b_factor / max_factor) * 4.0; + } + + if (max_factor > 1.5) + saturation = 0; + GP_DEBUG("White balance (bright): r=%1d, g=%1d, b=%1d, \ + r_factor=%1.3f, g_factor=%1.3f, b_factor=%1.3f\n", + r, g, b, r_factor, g_factor, b_factor); + if (max_factor <= 1.4) { + for (x = 0; x < (size * 3); x += 3) + { + d = (data[x + 0] << 8) * r_factor + 8; + d >>= 8; + if (d > 0xff) + d = 0xff; + data[x + 0] = d; + d = (data[x + 1] << 8) * g_factor + 8; + d >>= 8; + if (d > 0xff) { d = 0xff; } + data[x + 1] = d; + d = (data[x + 2] << 8) * b_factor + 8; + d >>= 8; + if (d > 0xff) + d = 0xff; + data[x + 2] = d; + } + } + /* ---------------- DARK DOTS ------------------- */ + max = size / 200; /* 1/200 = 0.5% */ + histogram(data, size, htable_r, htable_g, htable_b); + + for (r = 0, x = 0; r < 96 && x < max; r++) + x += htable_r[r]; + for (g = 0, x = 0; g < 96 && x < max; g++) + x += htable_g[g]; + for (b = 0, x = 0; b < 96 && x < max; b++) + x += htable_b[b]; + + r_factor = (double) 0xfe / (0xff - r); + g_factor = (double) 0xfe / (0xff - g); + b_factor = (double) 0xfe / (0xff - b); + + GP_DEBUG( + "White balance (dark): r=%1d, g=%1d, b=%1d, \ + r_factor=%1.3f, g_factor=%1.3f, b_factor=%1.3f\n", + r, g, b, r_factor, g_factor, b_factor); + + for (x = 0; x < (size * 3); x += 3) + { + d = (int) 0xff08 - (((0xff - data[x + 0]) << 8) * r_factor); + d >>= 8; + if (d < 0) + d = 0; + data[x + 0] = d; + d = (int) 0xff08 - (((0xff - data[x + 1]) << 8) * g_factor); + d >>= 8; + if (d < 0) + d = 0; + data[x + 1] = d; + d = (int) 0xff08 - (((0xff - data[x + 2]) << 8) * b_factor); + d >>= 8; + if (d < 0) + d = 0; + data[x+2] = d; + } + + /* ------------------ COLOR ENHANCE ------------------ */ + + if(saturation > 0.0) { + for (x = 0; x < (size * 3); x += 3) + { + r = data[x+0]; g = data[x+1]; b = data[x+2]; + d = (int) (r + g + b) / 3.; + if ( r > d ) + r = r + (int) ((r - d) * (0xff - r) + /(0x100 - d) * saturation); + else + r = r + (int) ((r - d) * (0xff - d) + / (0x100 - r) * saturation); + if (g > d) + g = g + (int) ((g - d) * (0xff - g) + / (0x100 - d) * saturation); + else + g = g + (int) ((g - d) * (0xff - d) + / (0x100 - g) * saturation); + if (b > d) + b = b + (int) ((b - d) * (0xff - b) + /(0x100 - d) * saturation); + else + b = b + (int) ((b - d) * (0xff - d) + /(0x100 - b) * saturation); + data[x+0] = CLAMP(r); + data[x+1] = CLAMP(g); + data[x+2] = CLAMP(b); + } + } + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/digigr8.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/digigr8.c new file mode 100644 index 00000000..d8caf120 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/digigr8.c @@ -0,0 +1,239 @@ +/* + * digigr8.c + * + * Part of libgphoto2/camlibs/digigr8 + * Here are the functions which are needed to get data from the camera. + * + * Copyright (c) 2005 Theodore Kilgore + * Camera library support under libgphoto2.1.1 for camera(s) + * with chipset from Service & Quality Technologies, Taiwan. + * Cameras supported by this driver have Product ID 0x905C, 0x9050, or. + * 0x913D. + * + * Licensed under GNU Lesser General Public License, as part of Gphoto + * camera support project. For a copy of the license, see the file + * COPYING in the main source tree of libgphoto2. + */ + +#include + + +#include +#include +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include +#include +#include "digigr8.h" + +#define GP_MODULE "digigr8" + +#define SQWRITE gp_port_usb_msg_write +#define SQREAD gp_port_usb_msg_read + +int +digi_init (GPPort *port, CameraPrivateLibrary *priv) +{ + char c[0x14]; + int i,j=0; + unsigned char *catalog = calloc(0x4010,1); + unsigned char *catalog_tmp; + + if (!catalog) return GP_ERROR_NO_MEMORY; + + SQWRITE (port, 0x0c, 0x14f4, 0x0, NULL, 0); + SQREAD (port, 0x0c, 0xf5, 0x00, c, 0x14); + SQWRITE (port, 0x0c, 0x1440, 0x110f, NULL, 0); + digi_reset (port); + SQWRITE (port, 0x0c, 0x14f0, 0x0, NULL, 0); + + gp_port_read (port, c, 0x14); + digi_reset(port); + SQWRITE (port, 0x0c, 0x20, 0x40, NULL, 0); + gp_port_read(port, (char *)catalog, 0x4000); /* We need 16 bytes for each photo. */ + digi_reset (port); + + /* The first occurence of a zero denotes end of files entries */ + for (i=0; i<0x4000 && catalog[i]; i+=16); + priv->nb_entries = i>>4; + catalog_tmp = realloc(catalog, i+16); + if (!catalog_tmp) return GP_ERROR_NO_MEMORY; + catalog = catalog_tmp; + memset (catalog+i, 0, 16); + if (i) { + /* + * 0x913c cameras allow individual photo deletion. This causes + * the relevant catalog line to start with 0x64. So the related + * lines of config data must be removed, and the deleted + * images need to be cast out from the count. + */ + + for (j=0; jnb_entries -- ; + } + } + priv->catalog = catalog; + } else { + free (catalog); + priv->catalog = NULL; /* We just have freed catalog_tmp */ + } + + digi_reset (port); + priv->last_fetched_entry = -1; + + priv->init_done=1; + return GP_OK; +} + + +unsigned int +digi_get_comp_ratio (CameraPrivateLibrary *priv, int entry) +{ + switch (priv->catalog[16*entry]) { + case 0x61: + case 0x62: + case 0x63: + case 0x76: return 1; + case 0x41: + case 0x42: + case 0x43: + case 0x52: + case 0x53: + case 0x56: + case 0x72: return 0; + default: + GP_DEBUG ("Your camera has unknown resolution settings.\n"); + return GP_ERROR; + } +} + +unsigned int +digi_get_data_size (CameraPrivateLibrary *priv, int entry) +{ + return ((priv->catalog[16*entry + 6] <<16) + | (priv->catalog[16*entry + 5] <<8) + | (priv->catalog[16*entry + 4] ) ); +} + +unsigned int +digi_get_picture_width (CameraPrivateLibrary *priv, int entry) +{ + switch (priv->catalog[16*entry]) { + case 0x41: + case 0x52: + case 0x61: return 352; + case 0x42: + case 0x62: + case 0x72: return 176; + case 0x43: + case 0x53: + case 0x63: return 320; + case 0x56: + case 0x76: return 640; + default: + GP_DEBUG ("Your pictures have unknown width.\n"); + return 0; + } +} + +int +digi_rewind (GPPort *port, CameraPrivateLibrary *priv) +{ + static char dummy_buf[0x4000]; + + + GP_DEBUG("REWIND cam's data pointer"); + + /* One has to read the catalog to rewind the data stream... + * I don't know if it's by design. There ought to be something better to do... :-/ + */ + + digi_reset(port); + SQWRITE (port, 0x0c, 0x20, 0x40, NULL, 0); /* Access config */ + gp_port_read(port, dummy_buf, 0x4000); + digi_reset (port); + + priv->last_fetched_entry = -1; + return GP_OK; +} + + +int +digi_reset (GPPort *port) +{ + /* Release current register */ + SQWRITE (port, 0x0c, 0xa0, 0x00, NULL, 0); + + return GP_OK; +} + + +int +digi_read_picture_data (GPPort *port, unsigned char *data, unsigned int size, int n ) +{ + unsigned int remainder = size % 0x8000; + unsigned int offset = 0; + int ret; + + if (!n) { + SQWRITE (port, 0x0c, 0x30, 0x00, NULL, 0); + } + while ((offset + 0x8000 < size)) { + ret = gp_port_read (port, (char *)data + offset, 0x8000); + if (ret < GP_OK) return ret; + offset = offset + 0x8000; + } + ret = gp_port_read (port, (char *)data + offset, remainder); + if (ret < GP_OK) return ret; + + return GP_OK; +} + +int digi_delete_all (GPPort *port, CameraPrivateLibrary *priv) +{ + int size; + int num_pics; + unsigned char get_size[0x50]; + unsigned char *junk=NULL; + + num_pics = priv->nb_entries; + GP_DEBUG("number of entries is %i\n", num_pics); + digi_reset (port); + digi_reset (port); + if(!num_pics) { + GP_DEBUG("Camera is already empty!\n"); + return GP_OK; + } + SQWRITE (port, 0x0c, 0x1440, 0x110f, NULL, 0); + if ((gp_port_read(port, (char *)get_size, 0x50)!=0x50)) { + GP_DEBUG("Error in reading data\n"); + return GP_ERROR; + } + GP_DEBUG("get_size[0x40] = 0x%x\n", get_size[0x40]); + size = get_size[0x40]|(get_size[0x41]<<8)|(get_size[0x42]<<16)| + (get_size[0x43]<<24); + GP_DEBUG("size = 0x%x\n", size); + if(size <= 0xff) { + GP_DEBUG("No size to read. This will not work.\n"); + digi_reset(port); + return GP_OK; + } + junk = malloc(size); + if(! junk) { + GP_DEBUG("allocation of junk space failed\n"); + return GP_ERROR_NO_MEMORY; + } + gp_port_read(port, (char *)junk, size); + free(junk); + digi_reset (port); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/digigr8.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/digigr8.h new file mode 100644 index 00000000..70f05515 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/digigr8.h @@ -0,0 +1,53 @@ +/* + * digigr8.h + * + * Header file for libgphoto2/camlibs/digigr8. + * + * Copyright (c) 2005 Theodore Kilgore + * Camera library support under libgphoto2.1.1 for camera(s) + * with chipset from Service & Quality Technologies, Taiwan. + * Cameras supported by this driver have Product ID 0x905C, 0x9050, or + * 0x913D. + * + * Licensed under GNU Lesser General Public License, as part of Gphoto + * camera support project. For a copy of the license, see the file + * COPYING in the main source tree of libgphoto2. + */ + +#ifndef __DIGIGR8_H__ +#define __DIGIGR8_H__ + +#include + +struct _CameraPrivateLibrary { + unsigned char *catalog; + int nb_entries; + int last_fetched_entry; + int delete_all; + unsigned char init_done; +}; + + +int digi_reset (GPPort *); +int digi_init (GPPort *, CameraPrivateLibrary *); +int digi_rewind (GPPort *port, CameraPrivateLibrary *priv); +int digi_read_picture_data (GPPort *, unsigned char *data, + unsigned int size, int n); + +/* Those functions don't need data transfer with the camera */ +int digi_get_num_frames (CameraPrivateLibrary *, int entry); +unsigned int digi_get_comp_ratio (CameraPrivateLibrary *, int entry); +unsigned int digi_get_data_size (CameraPrivateLibrary *, int entry); +unsigned int digi_get_picture_width (CameraPrivateLibrary *, int entry); +int digi_is_clip (CameraPrivateLibrary *, int entry); +int digi_decompress (unsigned char *out_data, unsigned char *data, + int w, int h); +int digi_postprocess (int width, int height, unsigned char* rgb); +int digi_delete_all (GPPort *, CameraPrivateLibrary *priv); + +int +white_balance (unsigned char *data, unsigned int size, float saturation); + + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/library.c new file mode 100644 index 00000000..4f08e26f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digigr8/library.c @@ -0,0 +1,480 @@ +/* library.c for libgphoto2/camlibs/digigr8 + * + * Copyright (C) 2005 - 2010 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include + +#include +#include +#include + +#include +#include + + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "digigr8.h" + +#include + +#define GP_MODULE "digigr8" + +static const struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {"Digigr8", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x905c}, + {"Cobra Digital Camera DC150", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, + 0x905c}, + {"Che-Ez Snap SNAP-U", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x905c}, + {"DC-N130t", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x905C}, + {"Soundstar TDC-35", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x905c}, + {"Nexxtech Mini Digital Camera", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, + 0x905c}, + {"Vivitar Vivicam35", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x905c}, + {"Praktica Slimpix", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x905c}, + {"ZINA Mini Digital Keychain Camera", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x2770, 0x905c}, + {"Pixie Princess Jelly-Soft", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x2770, 0x905c}, + {"Sakar Micro Digital 2428x", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x2770, 0x905c}, + {"Stop & Shop 87096", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x2770, 0x905c}, + {"Jazz JDC9", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x905c}, + {"Aries Digital Keychain Camera, ITEM 128986", + GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x905c}, + {"Disney pix micro", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9050}, + {"Lego Bionicle", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9051}, + {"Barbie Camera (Digital Blue)", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x2770, 0x9051}, + /* from IRC reporter, adam@piggz.co.uk */ + {"Disney pix micro 2", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9052}, + {"Suprema Digital Keychain Camera", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x2770, 0x913d}, + {"Sakar 28290 and 28292 Digital Concepts Styleshot", + GP_DRIVER_STATUS_EXPERIMENTAL, + 0x2770, 0x913d}, + {"Sakar 23070 Crayola Digital Camera", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x2770, 0x913d}, + {"Sakar 92045 Spiderman", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x2770, 0x913d}, + {NULL,0,0,0} +}; + +int +camera_id(CameraText *id) +{ + strncpy (id->text, "SQ905C chipset camera",32); + return GP_OK; +} + + +int +camera_abilities(CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strncpy (a.model, models[i].name,32); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + if (a.status == GP_DRIVER_STATUS_EXPERIMENTAL) + a.operations = GP_OPERATION_NONE; + else + a.operations = GP_OPERATION_CAPTURE_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + a.file_operations = GP_FILE_OPERATION_PREVIEW + + GP_FILE_OPERATION_RAW; + gp_abilities_list_append (list, a); + } + return GP_OK; +} + +static int +camera_summary(Camera *camera, CameraText *summary, GPContext *context) +{ + if (!camera->pl->init_done) + digi_init (camera->port, camera->pl); + snprintf (summary->text, 100, + ("Your USB camera seems to have an SQ905C chipset.\n" + "The total number of pictures in it is %i\n"), + camera->pl->nb_entries); + return GP_OK; +} + +static int camera_manual(Camera *camera, CameraText *manual, + GPContext *context) +{ + strncpy(manual->text, + _( + "For cameras with insides from S&Q Technologies, which have the \n" + "USB Vendor ID 0x2770 and Product ID 0x905C, 0x9050, 0x9051,\n" + "0x9052, or 0x913D. Photos are saved in PPM format.\n\n" + "Some of these cameras allow software deletion of all photos.\n" + "Others do not. No supported camera can do capture-image. All\n" + "can do capture-preview (image captured and sent to computer).\n" + "If delete-all does work for your camera, then capture-preview will\n" + "have the side-effect that it also deletes what is on the camera.\n\n" + "File uploading is not supported for these cameras. Also, none of the\n" + "supported cameras allow deletion of individual photos by use of a\n" + "software command.\n" + ), 700); + return (GP_OK); +} + + +static int +camera_about(Camera *camera, CameraText *about, GPContext *context) +{ + strncpy (about->text, _("sq905C generic driver\n" + "Theodore Kilgore \n"),64); + return GP_OK; +} + +/*************** File and Downloading Functions *******************/ + + +static int +file_list_func(CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int n; + if(!camera->pl->init_done) + digi_init (camera->port, camera->pl); + GP_DEBUG ("List files in %s\n", folder); + n = camera->pl->nb_entries; + gp_list_populate(list, "pict%03i.ppm", n); + return GP_OK; +} + + +static int +get_file_func(CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + int status = GP_OK; + Camera *camera = user_data; + unsigned int b; + int w, h; + int k, next; + unsigned char comp_ratio; + unsigned char lighting; + unsigned char *data = NULL; + unsigned char *p_data = NULL; + unsigned char *ppm; + unsigned char *ptr; + unsigned char gtable[256]; + int size; + + if (!camera->pl->init_done) + digi_init (camera->port, camera->pl); + + /* Get the entry number of the photo on the camera */ + k = gp_filesystem_number (camera->fs, "/", filename, context); + + if (GP_FILE_TYPE_EXIF ==type) return GP_ERROR_FILE_EXISTS; + + if (GP_FILE_TYPE_RAW!=type && GP_FILE_TYPE_NORMAL + != type && GP_FILE_TYPE_PREVIEW != type) { + return GP_ERROR_NOT_SUPPORTED; + } + + next = camera->pl->last_fetched_entry +1; + while (next < k) { + b = digi_get_data_size (camera->pl, next); + data = malloc(b); + if(!data) return GP_ERROR_NO_MEMORY; + digi_read_picture_data (camera->port, data, b, next); + free(data); + next ++; + } + + comp_ratio = digi_get_comp_ratio (camera->pl, k); + w = digi_get_picture_width (camera->pl, k); + switch (w) { + case 176: h = 144; break; + case 640: h = 480; break; + case 320: h = 240; break; + default: h = 288; break; + } + lighting = camera->pl->catalog[k*0x10+0x0b]; + b = digi_get_data_size (camera->pl, k); + if (!b) { + GP_DEBUG("Photo number %i deleted?\n",k+1); + camera->pl->last_fetched_entry = k; + return GP_OK; + } + if (b < w*h) { + GP_DEBUG("need %d bytes, supposed to read only %d", w*h, b); + return GP_ERROR; + } + data = malloc (b); + if(!data) return GP_ERROR_NO_MEMORY; + + GP_DEBUG("Fetch entry %i\n", k); + digi_read_picture_data (camera->port, data, b, k); + camera->pl->last_fetched_entry = k; + + if (GP_FILE_TYPE_RAW == type) { /* type is GP_FILE_TYPE_RAW */ + size = b; + gp_file_set_mime_type (file, GP_MIME_RAW); + gp_file_append(file, (char *)data, size); + /* Save photo's catalog entry as a footer for the raw file */ + gp_file_append(file, (char *)camera->pl->catalog + + k * 0x10, 0x10); + /* Reset camera when done, for more graceful exit. */ + if (k +1 == camera->pl->nb_entries) { + digi_rewind (camera->port, camera->pl); + } + free(data); + return(GP_OK); + } + + /* + * Now put the data into a PPM image file. + */ + + ppm = malloc (w * h * 3 + 256); /* room for data + header */ + if (!ppm) { + status = GP_ERROR_NO_MEMORY; + goto end; + } + snprintf ((char *)ppm, 64, + "P6\n" + "# CREATOR: gphoto2, SQ905C library\n" + "%d %d\n" + "255\n", w, h); + size = strlen ((char *)ppm); + ptr = ppm + size; + size = size + (w * h * 3); + GP_DEBUG ("size = %i\n", size); + p_data = malloc(w * h); + if (!p_data) { + status = GP_ERROR_NO_MEMORY; + free (ppm); + goto end; + } + if(comp_ratio) { + digi_decompress (p_data, data, w, h); + } else + memcpy(p_data, data, w * h); + GP_DEBUG("w %d, h %d, size %d", w, h, size); + gp_ahd_decode(p_data, w , h , ptr, BAYER_TILE_BGGR); + free(p_data); + digi_postprocess(w, h, ptr); + if (lighting < 0x40) { + GP_DEBUG( + "Low light condition. Using default gamma. \ + No white balance.\n"); + gp_gamma_fill_table (gtable, .65); + gp_gamma_correct_single(gtable,ptr,w*h); + } else + white_balance (ptr, w*h, 1.1); + gp_file_set_mime_type (file, GP_MIME_PPM); + gp_file_set_data_and_size (file, (char *)ppm, size); + /* Reset camera when done, for more graceful exit. */ + if (k + 1 == camera->pl->nb_entries) { + digi_rewind (camera->port, camera->pl); + } + end: + free(data); + return status; +} + +static int +delete_all_func(CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + if (!camera->pl->delete_all) + return GP_ERROR_NOT_SUPPORTED; + if (!camera->pl->init_done) + digi_init(camera->port, camera->pl); + digi_delete_all(camera->port, camera->pl); + return GP_OK; +} + +static int +camera_capture_preview(Camera *camera, CameraFile *file, GPContext *context) + +{ + unsigned char get_size[0x50]; + unsigned char *raw_data; + unsigned char *frame_data; + unsigned char *ppm, *ptr; + char lighting; + unsigned char gtable[256]; + int size; + int w = 320; + int h = 240; + int b; + + digi_reset (camera->port); + gp_port_usb_msg_write (camera->port, 0x0c, 0x1440, 0x110f, NULL, 0); + gp_port_read(camera->port, (char *)get_size, 0x50); + GP_DEBUG("get_size[0x40] = 0x%x\n", get_size[0x40]); + lighting = get_size[0x48]; + b = get_size[0x40] | get_size[0x41] << 8 | get_size[0x42] << 16 + | get_size[0x43]<<24; + GP_DEBUG("b = 0x%x\n", b); + raw_data = malloc(b); + + if(!raw_data) + return GP_ERROR_NO_MEMORY; + + if (!((gp_port_read(camera->port, (char *)raw_data, b)==b))) { + free(raw_data); + GP_DEBUG("Error in reading data\n"); + return GP_ERROR; + } + frame_data = malloc(w * h); + if (!frame_data) { + free(raw_data); + return GP_ERROR_NO_MEMORY; + } + digi_decompress (frame_data, raw_data, w, h); + free(raw_data); + /* Now put the data into a PPM image file. */ + ppm = malloc (w * h * 3 + 256); + if (!ppm) { + free(frame_data); + return GP_ERROR_NO_MEMORY; + } + snprintf ((char *)ppm, 64, + "P6\n" + "# CREATOR: gphoto2, SQ905C library\n" + "%d %d\n" + "255\n", w, h); + ptr = ppm + strlen ((char*)ppm); + size = strlen ((char*)ppm) + (w * h * 3); + GP_DEBUG ("size = %i\n", size); + gp_ahd_decode (frame_data, w , h , ptr, BAYER_TILE_BGGR); + free(frame_data); + if (lighting < 0x40) { + GP_DEBUG( + "Low light condition. Default gamma. No white balance.\n"); + gp_gamma_fill_table (gtable, .65); + gp_gamma_correct_single(gtable,ptr,w*h); + } else + white_balance(ptr, w * h, 1.1); + gp_file_set_mime_type(file, GP_MIME_PPM); + gp_file_set_data_and_size(file, (char *)ppm, size); + digi_reset(camera->port); + return(GP_OK); +} + +/*************** Exit and Initialization Functions ******************/ + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG("SQ camera_exit"); + digi_reset(camera->port); + + if (camera->pl) { + free (camera->pl->catalog); + free (camera->pl); + camera->pl = NULL; + } + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .delete_all_func = delete_all_func +}; + +int +camera_init(Camera *camera, GPContext *context) +{ + GPPortSettings settings; + CameraAbilities abilities; + int ret = 0; + + ret = gp_camera_get_abilities(camera,&abilities); + if (ret < 0) return ret; + GP_DEBUG("product number is 0x%x\n", abilities.usb_product); + + /* Now, set up all the function pointers */ + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + camera->functions->capture_preview + = camera_capture_preview; + camera->functions->exit = camera_exit; + + GP_DEBUG ("Initializing the camera\n"); + + ret = gp_port_get_settings(camera->port,&settings); + if (ret < 0) + return ret; + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) + return ret; + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs(camera->fs, &fsfuncs, camera); + camera->pl = malloc(sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return GP_ERROR_NO_MEMORY; + camera->pl->catalog = NULL; + camera->pl->nb_entries = 0; + switch (abilities.usb_product) { + case 0x9050: + case 0x9051: + case 0x9052: + camera->pl->delete_all = 1; + break; + default: + camera->pl->delete_all = 0; + } + camera->pl->init_done=0; + + /* Do digi_init() only if needed for the requested operation. */ + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/ChangeLog new file mode 100644 index 00000000..a95437d3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/ChangeLog @@ -0,0 +1,3 @@ +2002-01-15 Lutz Müller + + * digita.c: Replace gp_camera_progress by gp_context_progress_*. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/Makefile-files new file mode 100644 index 00000000..a3cb0869 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/Makefile-files @@ -0,0 +1,14 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += digita.la +EXTRA_DIST += digita/ChangeLog + +digita_la_SOURCES = \ + digita/digita.c \ + digita/serial.c \ + digita/usb.c \ + digita/commands.c \ + digita/digita.h +digita_la_LDFLAGS = $(camlib_ldflags) +digita_la_DEPENDENCIES = $(camlib_dependencies) +digita_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/commands.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/commands.c new file mode 100644 index 00000000..22c8fb54 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/commands.c @@ -0,0 +1,223 @@ +/* + * commands.c + * + * Command set for the digita cameras + * + * Copyright 1999-2001 Johannes Erdfelt + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include "digita.h" +#include "gphoto2-endian.h" + +#define GP_MODULE "digita" + +#include + +static void build_command(struct digita_command *cmd, int length, short command) +{ + memset(cmd, 0, sizeof(*cmd)); + + /* Length is the sizeof the digita_command minus the length */ + /* parameter, plus whatever other data we send */ + cmd->length = htobe32(sizeof(struct digita_command) - + sizeof(unsigned int) + length); + cmd->command = htobe16(command); +} + +struct storage_status { + struct digita_command cmd; + + unsigned int takencount; + unsigned int availablecount; + int rawcount; +}; + +int digita_get_storage_status(CameraPrivateLibrary *dev, int *taken, + int *available, int *rawcount) +{ + struct digita_command cmd; + struct storage_status ss; + int ret; + + build_command(&cmd, 0, DIGITA_GET_STORAGE_STATUS); + + ret = dev->send(dev, &cmd, sizeof(cmd)); + if (ret < 0) { + GP_DEBUG("digita_get_storage_status: error sending command (ret = %d)", ret); + return -1; + } + + ret = dev->read(dev, (unsigned char *)&ss, sizeof(ss)); + if (ret < 0) { + GP_DEBUG("digita_get_storage_status: error getting count (ret = %d)", ret); + return -1; + } + + if (taken) + *taken = be32toh(ss.takencount); + if (available) + *available = be32toh(ss.availablecount); + if (rawcount) + *rawcount = be32toh(ss.rawcount); + + return 0; +} + +int digita_get_file_list(CameraPrivateLibrary *dev) +{ + struct digita_command cmd; + struct get_file_list gfl; + char *buffer; + int ret, taken, buflen; + int err; + + if (digita_get_storage_status(dev, &taken, NULL, NULL) < 0) + return -1; + + dev->num_pictures = taken; + + buflen = (taken * sizeof(struct file_item)) + sizeof(cmd) + 4; + buffer = malloc(buflen); + if (!buffer) { + GP_DEBUG("digita_get_file_list: error allocating %d bytes", buflen); + return -1; + } + + build_command(&gfl.cmd, sizeof(gfl) - sizeof(gfl.cmd), DIGITA_GET_FILE_LIST); + gfl.listorder = htobe32(1); + + ret = dev->send(dev, (void *)&gfl, sizeof(gfl)); + if (ret < 0) { + GP_DEBUG("digita_get_file_list: error sending command (ret = %d)", ret); + err = -1; + goto end; + } + + ret = dev->read(dev, (void *)buffer, buflen); + if (ret < 0) { + GP_DEBUG("digita_get_file_list: error receiving data (ret = %d)", ret); + err = -1; + goto end; + } + + if (dev->file_list) + free(dev->file_list); + + dev->file_list = malloc(taken * sizeof(struct file_item)); + if (!dev->file_list) { + GP_DEBUG("digita_get_file_list: error allocating file_list memory (ret = %d)", ret); + err = -1; + goto end; + } + + memcpy(dev->file_list, buffer + sizeof(cmd) + 4, taken * sizeof(struct file_item)); + + err = 0; + end: + free(buffer); + + return err; +} + +#define GFD_BUFSIZE 19432 +int digita_get_file_data(CameraPrivateLibrary *dev, int thumbnail, + struct filename *filename, struct partial_tag *tag, void *buffer) +{ + struct get_file_data_send gfds; + struct get_file_data_receive *gfdr; + int ret; + char *tbuf; + + build_command(&gfds.cmd, sizeof(gfds) - sizeof(gfds.cmd), DIGITA_GET_FILE_DATA); + + memcpy(&gfds.fn, filename, sizeof(gfds.fn)); + memcpy(&gfds.tag, tag, sizeof(gfds.tag)); + gfds.dataselector = htobe32(thumbnail); + + tbuf = malloc(GFD_BUFSIZE + sizeof(*gfdr)); + if (!tbuf) { + GP_DEBUG("digita_get_file_data: unable to allocate %ud bytes", + (unsigned int)(GFD_BUFSIZE + sizeof(*gfdr))); + + return -1; + } + gfdr = (struct get_file_data_receive *)tbuf; + + ret = dev->send(dev, &gfds, sizeof(gfds)); + if (ret < 0) { + GP_DEBUG("digita_get_file_data: error sending command (ret = %d)", ret); + free(tbuf); + return -1; + } + + ret = dev->read(dev, gfdr, GFD_BUFSIZE + sizeof(*gfdr)); + if (ret < 0) { + GP_DEBUG("digita_get_file_data: error reading data (ret = %d)", ret); + return -1; + } + + if (gfdr->cmd.result) { + GP_DEBUG("digita_get_file_data: bad result (%d)", gfdr->cmd.result); + return gfdr->cmd.result; + } + + memcpy(buffer, tbuf + sizeof(*gfdr), be32toh(gfdr->tag.length) + (thumbnail ? 16 : 0)); + memcpy(tag, &gfdr->tag, sizeof(*tag)); + + free(tbuf); + + return 0; +} + +int digita_delete_picture(CameraPrivateLibrary *dev, struct filename *filename) +{ + struct erase_file ef; + struct digita_command response; + int ret; + + build_command(&ef.cmd, sizeof(ef.fn), DIGITA_ERASE_FILE); + + memcpy(&ef.fn, filename, sizeof(ef.fn)); + ef.zero = 0; + + ret = dev->send(dev, (unsigned char *)&ef, sizeof(ef)); + if (ret < 0) { + GP_DEBUG("error sending command (ret = %d)", ret); + return -1; + } + + ret = dev->read(dev, (unsigned char *)&response, sizeof(response)); + if (ret < 0) { + GP_DEBUG("error reading reply (ret = %d)", ret); + return -1; + } + + return 0; +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/digita.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/digita.c new file mode 100644 index 00000000..02321296 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/digita.c @@ -0,0 +1,490 @@ +/* + * digita.c + * + * Copyright 1999-2001 Johannes Erdfelt + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include +#include +#ifdef HAVE_LIMITS_H +#include +#endif +#ifdef OS2 +#include +#endif + +#define GP_MODULE "digita" + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "gphoto2-endian.h" +#include "digita.h" + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + +static const struct { + char *model; + int usb_vendor; + int usb_product; +} models[] = { + {"Kodak:DC220", 0x040A, 0x0100 }, + {"Kodak:DC260", 0x040A, 0x0110 }, + {"Kodak:DC265", 0x040A, 0x0111 }, + {"Kodak:DC290", 0x040A, 0x0112 }, + {"HP:PhotoSmart C500", 0x03F0, 0x4102 }, + {"HP:PhotoSmart 618", 0x03F0, 0x4102 }, + {"HP:PhotoSmart 912", 0x03F0, 0x4102 }, + {"HP:PhotoSmart C500 2",0xf003, 0x6002 }, +}; + +int camera_abilities(CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; i < sizeof(models) / sizeof(models[0]); i++) { + memset(&a, 0, sizeof(a)); + strcpy(a.model, models[i].model); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL | GP_PORT_USB; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.speed[5] = 0; + a.operations = GP_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_PREVIEW | + GP_FILE_OPERATION_DELETE; + a.usb_vendor = models[i].usb_vendor; + a.usb_product = models[i].usb_product; + + gp_abilities_list_append(list, a); + } + + return GP_OK; +} + +int camera_id(CameraText *id) +{ + strcpy(id->text, "digita"); + + return GP_OK; +} + +static int camera_exit(Camera *camera, GPContext *context) +{ + if (camera->pl) { + free(camera->pl); + camera->pl = NULL; + } + + return GP_OK; +} + +static int folder_list_func(CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + int i, i1; + + if (digita_get_file_list(camera->pl) < 0) + return GP_ERROR; + + if (folder[0] == '/') + folder++; + + /* Walk through all of the pictures building a list of folders */ + for (i = 0; i < camera->pl->num_pictures; i++) { + int found; + char *path,*newfolder; + + /* Check to make sure the path matches the folder we're */ + /* looking through */ + if (strlen(folder) && strncmp(camera->pl->file_list[i].fn.path, + folder, strlen(folder))) + continue; + + /* If it's not the root, then we skip the / as well */ + if (strlen(folder)) + path = camera->pl->file_list[i].fn.path + strlen(folder) + 1; + else + path = camera->pl->file_list[i].fn.path; + + if (!strlen(path)) + continue; + + if (strchr(path, '/') != path + strlen(path) - 1) + continue; + + newfolder = strdup(path); + *strchr(newfolder,'/') = 0; + found = 0; + for (i1 = 0; i1 < gp_list_count(list); i1++) { + const char *name; + + gp_list_get_name(list, i1, &name); + if (!strcmp(name, newfolder)) { + found = 1; + break; + } + } + + if (!found) + gp_list_append(list, newfolder, NULL); + free (newfolder); + } + + return GP_OK; +} + +static int file_list_func(CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + int i; + + /* We should probably check to see if we have a list already and */ + /* get the changes since */ + if (digita_get_file_list(camera->pl) < 0) + return GP_ERROR; + + if (folder[0] == '/') + folder++; + + /* Walk through all of the pictures building a list of folders */ + for (i = 0; i < camera->pl->num_pictures; i++) { + if (strncmp(camera->pl->file_list[i].fn.path, folder, strlen(folder)) || + camera->pl->file_list[i].fn.path[strlen(folder)] != '/') + continue; + + gp_list_append(list, camera->pl->file_list[i].fn.dosname, NULL); + } + + return GP_OK; +} + +#define GFD_BUFSIZE 19432 +static unsigned char *digita_file_get(Camera *camera, const char *folder, + const char *filename, int thumbnail, int *size, + GPContext *context) +{ + struct filename fn; + struct partial_tag tag; + unsigned char *data; + int pos, len, buflen; + unsigned int id; + + GP_DEBUG ("Getting %s from folder %s...", filename, folder); + + /* Setup the filename */ + /* FIXME: This is kinda lame, but it's a quick hack */ + fn.driveno = camera->pl->file_list[0].fn.driveno; + strcpy(fn.path, folder); + strcat(fn.path, "/"); + strcpy(fn.dosname, filename); + + /* How much data we're willing to accept */ + tag.offset = htobe32(0); + tag.length = htobe32(GFD_BUFSIZE); + tag.filesize = htobe32(0); + + buflen = GFD_BUFSIZE; + data = malloc(buflen); + if (!data) { + GP_DEBUG( "digita_file_get: allocating memory"); + return NULL; + } + memset(data, 0, buflen); + + if (digita_get_file_data(camera->pl, thumbnail, &fn, &tag, data) < 0) { + GP_DEBUG( "digita_get_picture: digita_get_file_data failed"); + free (data); + return NULL; + } + + buflen = be32toh(tag.filesize); + if (thumbnail) + buflen += 16; + + data = realloc(data, buflen); + if (!data) { + GP_DEBUG( "digita_file_get: couldn't reallocate memory"); + return NULL; + } + + len = be32toh(tag.filesize); + pos = be32toh(tag.length); + id = gp_context_progress_start (context, len, _("Getting file...")); + while (pos < len) { + gp_context_progress_update (context, id, pos); + + tag.offset = htobe32(pos); + if ((len - pos) > GFD_BUFSIZE) + tag.length = htobe32(GFD_BUFSIZE); + else + tag.length = htobe32(len - pos); + + if (digita_get_file_data(camera->pl, thumbnail, &fn, &tag, data + pos) < 0) { + GP_DEBUG ("digita_get_file_data failed."); + free (data); + return NULL; + } + pos += be32toh(tag.length); + } + gp_context_progress_stop (context, id); + + *size = buflen; + + return data; +} + +/* Colorspace conversion is voodoo-magic to me --jerdfelt */ +static void decode_ycc422(unsigned char *input, int width, int height, unsigned char *output) +{ + int x, y; + + for (y = 0; y < height; y++) { + for (x = 0; x < width / 2; x++) { + int _y, u, y1, v, r, g, b; + +#define LIMIT(_x) ((((_x)>0xffffff)?0xff0000:(((_x)<=0xffff)?0:(_x)&0xff0000))>>16) + u = *input++ - 128; + _y = *input++ - 16; + v = *input++ - 128; + y1 = *input++ - 16; + r = 104635 * v; + g = -25690 * u + -53294 * v; + b = 132278 * u; + _y *= 76310; + y1 *= 76310; + *output++ = LIMIT(r + _y); + *output++ = LIMIT(g + _y); + *output++ = LIMIT(b + _y); + *output++ = LIMIT(r + y1); + *output++ = LIMIT(g + y1); + *output++ = LIMIT(b + y1); + } + } +} + +static int get_file_func(CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + unsigned char *data; + unsigned int width, height; + char ppmhead[64]; + int buflen; + + if (folder[0] == '/') + folder++; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + GP_DEBUG("digita/get_file_func: Getting picture"); + data = digita_file_get(camera, folder, filename, 0, &buflen, context); + break; + case GP_FILE_TYPE_PREVIEW: + GP_DEBUG("digita/get_file_func: Getting thumbnail"); + data = digita_file_get(camera, folder, filename, 1, &buflen, context); + break; + default: + gp_context_error(context, _("Image type is not supported")); + return GP_ERROR_NOT_SUPPORTED; + } + + if (!data) + return GP_ERROR; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + gp_file_set_data_and_size(file, (char*)data, buflen); + gp_file_set_mime_type(file, GP_MIME_JPEG); + break; + case GP_FILE_TYPE_PREVIEW: + { + char *ppm; + + memcpy((void *)&height, data + 4, 4); + height = be32toh(height); + memcpy((void *)&width, data + 8, 4); + width = be32toh(width); + + GP_DEBUG( "picture size %dx%d", width, height); + GP_DEBUG( "data size %d", buflen - 16); + + sprintf(ppmhead, + "P6\n" + "# CREATOR: gphoto2, digita library\n" + "%i %i\n" + "255\n", width, height); + ppm = malloc(strlen(ppmhead) + (width * height * 3)); + if (!ppm) + return -1; + + strcpy(ppm, ppmhead); + + decode_ycc422(data + 16, width, height, (unsigned char*)(ppm + strlen(ppmhead))); + free(data); + + gp_file_set_mime_type(file, GP_MIME_PPM); + gp_file_set_data_and_size(file, ppm, strlen(ppmhead) + (width * height * 3)); + break; + } + default: + return GP_ERROR_NOT_SUPPORTED; + } + + return GP_OK; +} + +static int camera_summary(Camera *camera, CameraText *summary, GPContext *context) +{ + int taken; + + if (digita_get_storage_status(camera->pl, &taken, NULL, NULL) < 0) + return 0; + + sprintf(summary->text, _("Number of pictures: %d"), taken); + + return GP_OK; +} + +static int camera_about(Camera *camera, CameraText *about, GPContext *context) +{ + strcpy(about->text, _("Digita\n" \ + "Johannes Erdfelt ")); + + return GP_OK; +} + +static int digita_file_delete(Camera *camera, const char *folder, + const char *filename, GPContext *context) +{ + struct filename fn; + + /* Setup the filename */ + /* FIXME: This is kinda lame, but it's a quick hack */ + fn.driveno = camera->pl->file_list[0].fn.driveno; + strcpy(fn.path, folder); + strcat(fn.path, "/"); + strcpy(fn.dosname, filename); + + if (digita_delete_picture(camera->pl, &fn) < 0) + return 0; + + if (digita_get_file_list(camera->pl) < 0) + return 0; + + return GP_OK; +} + +static int delete_file_func(CameraFilesystem *fs, const char *folder, + const char *filename, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + + if (folder[0] == '/') + folder++; + + return digita_file_delete(camera, folder, filename, context); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func +}; + +int camera_init(Camera *camera, GPContext *context) +{ + int ret = 0; + + if (!camera) + return GP_ERROR; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + /* Set up the CameraFilesystem */ + gp_filesystem_set_funcs(camera->fs, &fsfuncs, camera); + + GP_DEBUG( "Initializing the camera"); + + camera->pl = malloc(sizeof(CameraPrivateLibrary)); + if (!camera->pl) + return GP_ERROR_NO_MEMORY; + memset(camera->pl, 0, sizeof(CameraPrivateLibrary)); + camera->pl->gpdev = camera->port; + + switch (camera->port->type) { + case GP_PORT_USB: + ret = digita_usb_open(camera->pl, camera); + break; + case GP_PORT_SERIAL: + ret = digita_serial_open(camera->pl, camera); + break; + default: + free(camera->pl); + camera->pl = NULL; + return GP_ERROR_UNKNOWN_PORT; + } + + if (ret < 0) { + GP_DEBUG( "camera_init: couldn't open digita device"); + free(camera->pl); + camera->pl = NULL; + return ret; + } + + return GP_OK; +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/digita.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/digita.h new file mode 100644 index 00000000..542663d0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/digita.h @@ -0,0 +1,169 @@ +/* + * digita.h + * + * Copyright 1999-2001 Johannes Erdfelt + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef DIGITA_H +#define DIGITA_H + +#include + +#include +#include + +#define DIGITA_GET_PRODUCT_INFO 0x01 +#define DIGITA_GET_IMAGE_SPECS 0x02 +#define DIGITA_GET_CAMERA_STATUS 0x03 +#define DIGITA_SET_PRODUCT_INFO 0x05 +#define DIGITA_GET_CAMERA_CAPABILITIES 0x10 +#define DIGITA_GET_CAMERA_STATE 0x11 +#define DIGITA_SET_CAMERA_STATE 0x12 +#define DIGITA_GET_CAMERA_DEFAULTS 0x13 +#define DIGITA_SET_CAMERA_DEFAULTS 0x14 +#define DIGITA_RESTORE_CAMERA_STATES 0x15 +#define DIGITA_GET_SCENE_ANALYSIS 0x18 +#define DIGITA_GET_POWER_MODE 0x19 +#define DIGITA_SET_POWER_MODE 0x1A +#define DIGITA_GET_S1_MODE 0x1D +#define DIGITA_SET_S1_MODE 0x1E +#define DIGITA_START_CAPTURE 0x1F +#define DIGITA_GET_FILE_LIST 0x40 +#define DIGITA_GET_NEW_FILE_LIST 0x41 +#define DIGITA_GET_FILE_DATA 0x42 +#define DIGITA_ERASE_FILE 0x43 +#define DIGITA_GET_STORAGE_STATUS 0x44 +#define DIGITA_SET_FILE_DATA 0x47 +#define DIGITA_GET_FILE_TAG 0x48 +#define DIGITA_SET_USER_FILE_TAG 0x49 +#define DIGITA_GET_CLOCK 0x70 +#define DIGITA_SET_CLOCK 0x71 +#define DIGITA_GET_ERROR 0x78 +#define DIGITA_GET_INTERFACE_TIMEOUT 0x90 +#define DIGITA_SET_INTERFACE_TIMEOUT 0x91 + +/* Digita protocol primitives */ +struct digita_command { + unsigned int length; + unsigned char version; + unsigned char reserved[3]; + unsigned short command; + unsigned short result; +}; + +struct partial_tag { + unsigned int offset; + unsigned int length; + unsigned int filesize; +}; + +struct filename { + unsigned int driveno; + char path[32]; + char dosname[16]; +}; + +struct file_item { + struct filename fn; + + int length; + unsigned int filestatus; +}; + +/* Digita protocol commands */ + +/* DIGITA_GET_FILE_DATA */ +/* + * sent - digita_command + * get_file_data_send + */ +/* + * received - get_file_data_receive + * data + */ +struct get_file_data_send { + struct digita_command cmd; + + struct filename fn; + + unsigned int dataselector; + + struct partial_tag tag; +}; + +struct get_file_data_receive { + struct digita_command cmd; + + struct partial_tag tag; +}; + +/* DIGITA_GET_FILE_LIST */ +/* sent - get_file_list */ +/* + * received - digita_command + * data + */ +struct get_file_list { + struct digita_command cmd; + + unsigned int listorder; +}; + +/* DIGITA_ERASE_FILE */ +/* sent - erase_file */ +/* received - nothing */ +struct erase_file { + struct digita_command cmd; + + struct filename fn; + + unsigned int zero; +}; + +/* gphoto2 header magic. this is also CameraPrivateLibrary */ +struct _CameraPrivateLibrary { + GPPort *gpdev; + + int num_pictures; + struct file_item *file_list; + + /* These parameters are only significant for serial support */ + int portspeed; + + int deviceframesize; + + int (*send)(CameraPrivateLibrary *dev, void *buffer, int buflen); + int (*read)(CameraPrivateLibrary *dev, void *buffer, int buflen); +}; + +/* commands.c */ +int digita_get_storage_status(CameraPrivateLibrary *dev, int *taken, + int *available, int *rawcount); +int digita_get_file_list(CameraPrivateLibrary *dev); +int digita_get_file_data(CameraPrivateLibrary *dev, int thumbnail, + struct filename *filename, struct partial_tag *tag, void *buffer); +int digita_delete_picture(CameraPrivateLibrary *dev, struct filename *filename); + +/* serial.c */ +int digita_serial_open(CameraPrivateLibrary *dev, Camera *camera); + +/* usb.c */ +int digita_usb_open(CameraPrivateLibrary *dev, Camera *camera); + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/serial.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/serial.c new file mode 100644 index 00000000..a23504d2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/serial.c @@ -0,0 +1,342 @@ +/* + * serial.c + * + * Serial digita support + * + * Copyright 1999-2001 Johannes Erdfelt + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include "gphoto2-endian.h" +#include "digita.h" + +#define GP_MODULE "digita" + +#include + +#define MAX_BEACON_RETRIES 5 +#define MAX_BEACON_TIMEOUTS 2 + +/* + * u8 0xA5 + * u8 0x5A + * u16 vendorid + * u16 deviceid + * u8 checksum + */ +#define BEACON_LEN 7 + +/* + * u8 0x5A + * u8 0xA5 + * u8 0x55 (iftype) + * u8 commflag + * u4 reserved + * u2 pod_receive_mode + * u2 host_receive_mode + * u32 dataspeed + * u16 deviceframesize + * u16 hostframesize + * u8 checksum + */ +#define BEACON_ACK_LENGTH 13 + +/* + * s8 result + * u8 commflag + * u4 reserved + * u2 pod_receive_mode + * u2 host_receive_mode + * u32 dataspeed + * u16 deviceframesize + * u16 hostframesize + */ +#define BEACON_COMP_LENGTH 10 + +#define POLL_LENGTH_MASK 0x03FF +#define POLL_BOB 0x0400 +#define POLL_EOB 0x0800 +#define POLL_CMD 0x1000 +#define POLL_POLL_MASK 0xE000 +#define POLL_POLL (1 << 13) + +#define POLL_ACK 0x01 +#define POLL_NAK 0x02 + +static unsigned int checksum(const unsigned char *buffer, int len) +{ + int i; + int limit = len - 1; + unsigned int sum = 0; + + for (i = 0; i < limit; i++) + sum += *(buffer++); + + return sum & 0xff; +} + +static int poll_and_wait(gp_port *dev, int length, int bob, int eob) +{ + unsigned short s, poll, poll_reply; + + poll = POLL_POLL | POLL_CMD | (length & POLL_LENGTH_MASK) | + (bob ? POLL_BOB : 0) | (eob ? POLL_EOB : 0); + + do { + s = htobe16(poll); + if (gp_port_write(dev, (void *)&s, sizeof(s)) < 0) + return -1; + if (gp_port_read(dev, (void *)&s, sizeof(s)) < 0) + return -1; + poll_reply = be16toh(s); + } while (poll_reply & POLL_NAK); + + return 0; +} + +static int digita_serial_send(CameraPrivateLibrary *dev, void *_buffer, int len) +{ + char *buffer = _buffer; + unsigned short s; + int sent = 0, size; + + while (sent < len) { + if ((len - sent) > dev->deviceframesize) + size = dev->deviceframesize; + else + size = len - sent; + + if (poll_and_wait(dev->gpdev, size, sent == 0, (size + sent) == len) < 0) + return -1; + + if (gp_port_write(dev->gpdev, buffer + sent, size) < 0) + return -1; + + sent += size; + } + + s = 0; + if (gp_port_write(dev->gpdev, (void *)&s, sizeof(s)) < 0) + return -1; + + return len; +} + +static int poll_and_reply(gp_port *dev, int *length, int *eob, int nak) +{ + unsigned short s, poll; + + if (gp_port_read(dev, (void *)&s, sizeof(s)) < 0) + return -1; + + poll = be16toh(s); + if (length) + *length = poll & POLL_LENGTH_MASK; + if (eob) + *eob = poll & POLL_EOB; + + s = htobe16(nak ? POLL_NAK : POLL_ACK); + if (gp_port_write(dev, (void *)&s, sizeof(s)) < 0) + return -1; + + return 0; +} + +static int digita_serial_read(CameraPrivateLibrary *dev, void *_buffer, int len) +{ + char *buffer = _buffer; + unsigned short s; + int received = 0, size, eob; + + while (received < len) { + if (poll_and_reply(dev->gpdev, &size, &eob, 0) < 0) + return -1; + + if (gp_port_read(dev->gpdev, buffer + received, size) < 0) + return -1; + + received += size; + if (eob) + break; + } + + if (gp_port_read(dev->gpdev, (void *)&s, sizeof(s)) < 0) + return -1; + + return received; +} + +int digita_serial_open(CameraPrivateLibrary *dev, Camera *camera) +{ + GPPortSettings settings; + int selected_speed; + int ret, retries, negotiated = 0; + unsigned char buffer[20]; + unsigned short s; + unsigned int l; + + /* Get the settings */ + ret = gp_port_get_settings(camera->port, &settings); + if (ret < 0) + return ret; + + /* Remember the selected speed */ + selected_speed = settings.serial.speed; + if (!selected_speed) + selected_speed = 115200; /* Try the maximum speed */ + + /* Set the settings */ + settings.serial.speed = 9600; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + ret = gp_port_set_settings(camera->port, settings); + if (ret < 0) + return ret; + + dev->send = digita_serial_send; + dev->read = digita_serial_read; + + gp_port_send_break(dev->gpdev, 4); + + usleep(10000); + + /* FIXME: In some situations we may want to try a slower speed */ + for (retries = 0; !negotiated && retries < MAX_BEACON_RETRIES; retries++) { + unsigned char csum; + int i, timeouts = 0; + + /* + * Read the beacon + */ + memset(buffer, 0, sizeof(buffer)); + + for (i = 0; (i < BEACON_LEN * 2) && (timeouts < MAX_BEACON_TIMEOUTS); i++) { + /* We specifically eat as much as we can to catch any */ + /* garbage before or after */ + ret = gp_port_read(dev->gpdev, (void *)buffer, 1); + if (ret < 0) { + GP_DEBUG("couldn't read beacon (ret = %d)", ret); + timeouts++; + continue; + } + + if (buffer[0] == 0xA5) + break; + } + + if (timeouts >= MAX_BEACON_TIMEOUTS) + continue; + + ret = gp_port_read(dev->gpdev, (void *)(buffer + 1), BEACON_LEN - 1); + if (ret < 0) { + GP_DEBUG("couldn't read beacon (ret = %d)", ret); + continue; + } + + if (buffer[0] != 0xA5 || buffer[1] != 0x5A) { + GP_DEBUG("Invalid header for beacon 0x%02x 0x%02x", buffer[0], buffer[1]); + continue; + } + + csum = buffer[6]; + buffer[6] = 0; + if (checksum(buffer, BEACON_LEN) != csum) { + GP_DEBUG("Beacon checksum failed (calculated 0x%02x, received 0x%02x)", + checksum(buffer, BEACON_LEN), csum); + continue; + } + + memcpy((void *)&s, &buffer[2], 2); + GP_DEBUG("Vendor: 0x%04x", be16toh(s)); + memcpy((void *)&s, &buffer[4], 2); + GP_DEBUG("Product: 0x%04x", be16toh(s)); + + /* + * Send the beacon acknowledgement + */ + buffer[0] = 0x5A; /* Magic */ + buffer[1] = 0xA5; + buffer[2] = 0x55; /* I/F Type */ + buffer[3] = 0; /* Comm Flag */ + l = htobe32(selected_speed); + memcpy(&buffer[4], (void *)&l, 4); /* Data speed */ + s = htobe16(1023); + memcpy(&buffer[8], (void *)&s, 2); /* Device Frame Size */ + s = htobe16(1023); + memcpy(&buffer[10], (void *)&s, 2); /* Host Frame Size */ + buffer[12] = 0; + buffer[12] = checksum(buffer, BEACON_ACK_LENGTH); + + ret = gp_port_write(dev->gpdev, (void *)buffer, BEACON_ACK_LENGTH); + if (ret < 0) { + GP_DEBUG("couldn't write beacon (ret = %d)", ret); + return -1; + } + + /* + * Read the beacon completion + */ + ret = gp_port_read(dev->gpdev, (void *)buffer, BEACON_COMP_LENGTH); + if (ret < 0) { + GP_DEBUG("couldn't read beacon_comp (ret = %d)", ret); + continue; + } + + if ((signed char)buffer[0] < 0) { + GP_DEBUG("Bad status %d during beacon completion", (signed int)buffer[0]); + continue; + } + + memcpy((void *)&s, &buffer[6], sizeof(s)); + dev->deviceframesize = be16toh(s); + + memcpy((void *)&l, &buffer[2], sizeof(l)); + GP_DEBUG("negotiated %d", be32toh(l)); + settings.serial.speed = be32toh(l); + + usleep(100000); /* Wait before */ + + ret = gp_port_set_settings(dev->gpdev, settings); + if (ret < 0) + return ret; + + usleep(100000); /* Wait after */ + + /* + * The host interface spec mentions kTestSerialData, but + * doesn't elaborate anywhere else on it. So, I guess we + * assume everything is working here + */ + negotiated = 1; + } + + return negotiated ? 0 : -1; +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/usb.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/usb.c new file mode 100644 index 00000000..5825c2d4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/digita/usb.c @@ -0,0 +1,75 @@ +/* + * usb.c + * + * USB digita support + * + * Copyright 1999-2001 Johannes Erdfelt + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include +#include + +#include + +#include "digita.h" + +static int digita_usb_read(CameraPrivateLibrary *dev, void *buffer, int len) +{ + return gp_port_read(dev->gpdev, buffer, len); +} + +static int digita_usb_send(CameraPrivateLibrary *dev, void *buffer, int len) +{ + return gp_port_write(dev->gpdev, buffer, len); +} + +int digita_usb_open(CameraPrivateLibrary *dev, Camera *camera) +{ + GPPortSettings settings; + char buffer[128]; + int ret; + + ret = gp_port_get_settings(camera->port, &settings); + if (ret < 0) + return ret; + + /* We'll take the defaults. The core should have the done what's */ + /* necessary to find the config, interface, altsetting and endpoints */ + + ret = gp_port_set_settings(dev->gpdev, settings); + if (ret < 0) + return ret; + + dev->send = digita_usb_send; + dev->read = digita_usb_read; + + gp_port_set_timeout(camera->port, 100); + + /* Mop up anything still pending */ + while (gp_port_read(dev->gpdev, buffer, sizeof(buffer)) > 0) + ; + + gp_port_set_timeout(camera->port, 10000); + + return GP_OK; +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/CREDITS b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/CREDITS new file mode 100644 index 00000000..006a9c7f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/CREDITS @@ -0,0 +1,14 @@ +$Id$ + +Brian Beattie +Original gphoto 0.4 driver + +Chuck Homic +Converting raw camera images to RGB + +Dan Fandrich +Information on protocol, raw image format, gphoto2 port + +Gregg Berg +Driver patches + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/ChangeLog new file mode 100644 index 00000000..6fbe86ad --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/ChangeLog @@ -0,0 +1,40 @@ +2006-12-16 Marcus Meissner + + * dimera3500.c: Moved the camera specific bayer conversion out + from libgphoto2 to here to clean up the APIs. + + Untested, but builds. + +2003-01-14 Dan Fandrich + + * dimera3500.c: Made exposure and flash settings configurable. + +2002-11-17 Marcus Meissner + + * dimera3500.c: Fixed 64bit problems. + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-01-21 Dan Fandrich + + * TODO: changed note about temp.ppm and added one about multiple ops. + * mesalib.c: Check for error in mesa_modem_check. + * mesalib.h: Added include files. + * dimera3500.c: Put temp.ppm file permanently into file list. + Fix percentage given to gp_file_progress. + Simplified debugging macros. + +2002-01-16 Colin Marquardt + + * dimera3500.c: Fix typo. + +2002-01-13 Lutz Müller + + * dimera3500.c: Remove references to gp_camera_set_error. + +2001-12-31 Lutz Müller + + * dimera3500.c (capture_image): Tell the filesystem about the + new (ram) image. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/Makefile-files new file mode 100644 index 00000000..c2d6367a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/Makefile-files @@ -0,0 +1,13 @@ +# -*- Makefile -*- + +EXTRA_DIST += dimera/CREDITS dimera/Protocol.txt dimera/ChangeLog dimera/TODO + +EXTRA_LTLIBRARIES += dimera3500.la + +dimera3500_la_SOURCES =\ + dimera/dimera3500.c \ + dimera/mesalib.c dimera/mesalib.h\ + dimera/dimeratab.h +dimera3500_la_LDFLAGS = $(camlib_ldflags) +dimera3500_la_DEPENDENCIES = $(camlib_dependencies) +dimera3500_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/Protocol.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/Protocol.txt new file mode 100644 index 00000000..9ce34a71 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/Protocol.txt @@ -0,0 +1,106 @@ +The protocol deduced, so far. + +A break, will reset the protocol, baud rate set to 115200. + +Commands are acknowledge by a 21 ( all transmitted data in this description +is given as bytes of two hex digits) + +The commands seen so far, in order of discovery. All work so far has been +done with high res images, 640 x 480. + +69 // set baud rate + // 1 = 9600 + // 2 = 14400 + // 3 = 19200 + // 4 = 38400 + // 5 = 57600 + // 6 = ?? + // 7 = 115200 + +05 // ASCII ENQ no response + +41 54 0d // "AT\r" no response + +55 // get status, the response to this command + // is two bytes, the lsb of which is the + // number of images in the camera, unless + // that number can exceed 255, it is not + // clear what the second byte is. + +61 00 // download thumbnail (first image is 0 thes + // image number (starts at zero) the + // second byte could be the msb of the image + // number, if more than 256 images are + // possible. The response is 3844 bytes. + // The first three bytes are the same as the + // response to the 71 command and are + // assumed to have something to do with the + // image. Bit 7 of the third byte indicates + // the image mode, set = std, clear = fine. + // (this is the current working hypothesis) + // This is followed by 3840 bytes + // (64*60) and a byte that is assumed to be + // a error detection byte. + +71 00 // 71 and 59 are used to download full + // images, the response to 71, is three + // bytes. These three bytes, are the same + // as the first three bytes of the + // thumbnail. The ack of the 59 command has + // been seen to take more than 10 seconds. + // This would indicate that the 71 command + // might be some sort of enquiry command and + // the 59 command prepares the camera to + // download and image (retrieve image from + // flash ?) + // bit 7 of the third byte of the response + // is set for a standard mode image (320x240), + // clear for a fine mode image (640x480) + +49 1e 00 04 00 a0 00 80 00 00 + // the 49 command requests the downloading + // of image data. The first two argument + // bytes specify the line to start sending, + // the ninth byte specifies the number of + // lines to send. Each line is 640 bytes, + // all work so far has been 640 x 480. The + // result to this command is 20481 bytes. + // It is assumed that the last byte is an + // error detection byte of some sort. The + // image bytes work quite well as grey + // scale, it is not clear how color is + // encoded. + // This command will download fine mode + // image, for a std mode image, byte 3 is + // 1A, byte 7 is 50, as opposed to 1E and A0 + +21 80 03 00 fb + // send real-time image? The response is + // 6148 bytes, the TWAIN driver displays + // this much larger than the thumbnail. + // but tacking a pgm header makes this work + // as a greyscale. The exposure control + // controls how bright the picture is. the + // higher the number, the brighter the + // picture. + +Commands seen but not investigated +35 // the response is 4 bytes 00 10 02 11 + +5d // the response is 49 bytes, response seems + // include Flash memory size. + +6d // the response is 5 bytes + +2d 65 66 // no response ( take picture? ) + +The following sequnece is used to down load a full fine mode image, after +the baud rate is set. + +41 54 0d +05 +55 +71 +59 +49 1E 00 04 00 A0 00 01 80 00 00 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/TODO b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/TODO new file mode 100644 index 00000000..83af45a6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/TODO @@ -0,0 +1,16 @@ +$Id$ + +Outstanding items in the gphoto2 dimera driver: + +- make sure multiple, simultaneous requests are handled properly and +disallowed where necessary (e.g. downloading image) +- add delete file function + +Bugs: + +- flash capacity in --summary shows 0 for newer flash cards +- image quality is lower than it could be due to suboptimal Bayer CCD +conversion routine +- some serial port speed settings don't work +- figure out how to tell if a valid image is in RAM and only put temp.ppm +into the file list then diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/dimera3500.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/dimera3500.c new file mode 100644 index 00000000..4e99813c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/dimera3500.c @@ -0,0 +1,1014 @@ +/* + * Program: gPhoto2 driver for Mustek VDC 3500/Relisys Dimera 3500 + * + * Note: + * This software was created with + * the help of proprietary information belonging + * to StarDot Technologies. + * + * Author: + * Brian Beattie http://www.beattie-home.net + * + * Contributors: + * Chuck Homic + * Converting raw camera images to RGB + * Dan Fandrich Dan + * Information on protocol, raw image format, gphoto2 port + * Gregg Berg GDB + * Rewrite of Dimera_Get_Full_Image() GDB + * + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include "mesalib.h" +#include "dimeratab.h" + +#include +#include +#include +#include <_stdint.h> + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "dimera" + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + +#define IMAGE_NAME_TEMPLATE "dimera%02i.ppm" +#define RAM_IMAGE_TEMPLATE "temp.ppm" /* actually, sometimes this is a PGM */ + +/* PNM headers */ +#define VIEWFIND_SZ (128*96) +#define VIEW_TYPE 251 +#define DEFAULT_EXPOSURE (50000/30) /* 1/30 of a second */ +#define MAX_EXPOSURE (50000/4) +#define MIN_EXPOSURE 1 + +static const char Dimera_thumbhdr[] = +"P5\n# Dimera 3500 Thumbnail written by gphoto2\n64 48\n255\n"; + +static const char Dimera_viewhdr[] = +"P5\n# Dimera 3500 Viewfinder written by gphoto2\n128 96\n15\n"; + +static const char Dimera_finehdr[] = +"P6\n# Dimera 3500 Image written by gphoto2\n640 480\n255\n"; + +static const char Dimera_stdhdr[] = +"P6\n# Dimera 3500 Image written by gphoto2\n320 240\n255\n"; + +/* Forward references */ + +static uint8_t * +Dimera_Get_Full_Image (int picnum, long *size, int *width, int *height, + Camera *camera, GPContext *context); + +static uint8_t * +Dimera_Get_Thumbnail( int picnum, long *size, Camera *camera ); + +static uint8_t * +Dimera_Preview( long *size, Camera *camera, GPContext *context ); + +/* Gphoto2 */ + +struct _CameraPrivateLibrary { + unsigned exposure; + int auto_exposure; + int auto_flash; +}; + + +static const char *models[] = { + "Mustek:VDC-3500", + "Relisys:Dimera 3500", + "Trust:DC-3500", + NULL +}; + + +int camera_id (CameraText *id) { + + strcpy(id->text, "dimera3500"); + + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) { + + int x=0; + CameraAbilities a; + + while (models[x]) { + + memset (&a, 0, sizeof(a)); + strcpy(a.model, models[x]); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 14400; + a.speed[2] = 19200; + a.speed[3] = 38400; + a.speed[4] = 57600; + a.speed[5] = 76800; + a.speed[6] = 115200; + a.speed[7] = 0; + a.operations = GP_OPERATION_CAPTURE_IMAGE | GP_OPERATION_CONFIG; + a.file_operations = GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + gp_abilities_list_append(list, a); + + x++; + } + + return (GP_OK); +} + +static int camera_exit(Camera *camera, GPContext *context) { + + return mesa_port_close(camera->port); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, void *data, GPContext *context) { + + Camera *camera = data; + int count; + + /* We only support root folder */ + if (strcmp (folder, "/")) + { + gp_context_error (context, _("Only root folder is supported - " + "you requested a file listing for folder '%s'."), folder); + return (GP_ERROR_DIRECTORY_NOT_FOUND); + } + + count = mesa_get_image_count (camera->port); + if (count < 0) + { + gp_context_error (context, _("Problem getting number of images")); + return (count); + } + + /* + * Create pseudo file names for each picture in the camera, including + * the temporary picture in RAM, which, unfortunately, might not always + * be available. + * + * We don't add anything to the filesystem here - the filesystem does + * that for us. + */ + CHECK (gp_filesystem_append (fs, "/", RAM_IMAGE_TEMPLATE, context)); + return (gp_list_populate (list, IMAGE_NAME_TEMPLATE, count)); +} + +static int +conversion_chuck (const unsigned int width, const unsigned int height, + const unsigned char *src,unsigned char *dst +) { + int x, y; + int p1, p2, p3, p4; + int red, green, blue; + + /* + * Added by Chuck -- 12-May-2000 + * Convert the colors based on location, and my wacky color table: + * + * Convert the 4 cells into a single RGB pixel. + * Colors are encoded as follows: + * + * 000000000000000000........33 + * 000000000011111111........11 + * 012345678901234567........89 + * ---------------------------- + * 000 RGRGRGRGRGRGRGRGRG........RG + * 001 GBGBGBGBGBGBGBGBGB........GB + * 002 RGRGRGRGRGRGRGRGRG........RG + * 003 GBGBGBGBGBGBGBGBGB........GB + * ... ............................ + * 238 RGRGRGRGRGRGRGRGRG........RG + * 239 GBGBGBGBGBGBGBGBGB........GB + * + * NOTE. Above is 320x240 resolution. Just expand for 640x480. + * + * Use neighboring cells to generate color values for each pixel. + * The neighbors are the (x-1, y-1), (x, y-1), (x-1, y), and (x, y). + * The exception is when x or y are zero then the neighors used are + * the +1 cells. + */ + + for (y = 0;y < height; y++) + for (x = 0;x < width; x++) { + p1 = ((y==0?y+1:y-1)*width) + (x==0?x+1:x-1); + p2 = ((y==0?y+1:y-1)*width) + x; + p3 = ( y *width) + (x==0?x+1:x-1); + p4 = ( y *width) + x; + + switch (((y & 1) << 1) + (x & 1)) { + case 0: /* even row, even col, red */ + blue = blue_table [src[p1]]; + green = green_table[src[p2]]; + green+= green_table[src[p3]]; + red = red_table [src[p4]]; + break; + case 1: /* even row, odd col, green */ + green = green_table[src[p1]]; + blue = blue_table [src[p2]]; + red = red_table [src[p3]]; + green+= green_table[src[p4]]; + break; + case 2: /* odd row, even col, green */ + green = green_table[src[p1]]; + red = red_table [src[p2]]; + blue = blue_table [src[p3]]; + green+= green_table[src[p4]]; + break; + case 3: /* odd row, odd col, blue */ + default: + red = red_table [src[p1]]; + green = green_table[src[p2]]; + green+= green_table[src[p3]]; + blue = blue_table [src[p4]]; + break; + } + *dst++ = (unsigned char) red; + *dst++ = (unsigned char) (green/2); + *dst++ = (unsigned char) blue; + } + return (GP_OK); +} + + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, GPContext *context +) { + + Camera *camera = user_data; + int num, width, height; + uint8_t *data, *newdata; + long int size; + + /* Retrieve the number of the photo on the camera */ + if (strcmp(filename, RAM_IMAGE_TEMPLATE) == 0) + /* Magic file name specifies magic image number */ + num = RAM_IMAGE_NUM; + else + num = gp_filesystem_number(camera->fs, "/", filename, context); + + if (num < 0) + return num; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + data = Dimera_Get_Full_Image (num, &size, + &width, &height, camera, + context); + if (!data) + return GP_ERROR; + gp_file_set_mime_type (file, GP_MIME_PPM); + if (width == 640) + gp_file_append (file, Dimera_finehdr, strlen(Dimera_finehdr)); + else + gp_file_append (file, Dimera_stdhdr, strlen(Dimera_stdhdr)); + newdata = malloc(size*3); + if (!newdata) return (GP_ERROR_NO_MEMORY); + conversion_chuck (width, height, data, newdata); + gp_file_append (file, (char *)newdata, size*3); + free (newdata); + free (data); + break; + break; + case GP_FILE_TYPE_RAW: + data = Dimera_Get_Full_Image (num, &size, + &width, &height, camera, + context); + if (!data) + return GP_ERROR; + gp_file_set_data_and_size (file, (char *)data, size); /* will take over data ptr ownership */ + gp_file_set_mime_type (file, GP_MIME_RAW); + gp_file_adjust_name_for_mime_type (file); + break; + case GP_FILE_TYPE_PREVIEW: + data = Dimera_Get_Thumbnail (num, &size, camera); + if (!data) + return GP_ERROR; + gp_file_set_data_and_size (file, (char *)data, size); /* will take over data ptr ownership */ + gp_file_set_mime_type (file, GP_MIME_PGM); + gp_file_adjust_name_for_mime_type (file); + break; + default: + gp_context_error (context, _("Image type is not supported")); + return (GP_ERROR_NOT_SUPPORTED); + } + return GP_OK; +} + +static int get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, CameraFileInfo *info, void *data, GPContext *context) { + + Camera *camera = data; + int num, std_res; + + num = gp_filesystem_number (fs, folder, filename, context); + if (num < 0) + return num; + + if ( (std_res = mesa_read_image_info( camera->port, num, NULL )) < 0 ) + { + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Can't get Image Info"); + gp_context_error (context, _("Problem getting image information")); + return std_res; + } + + info->preview.fields = GP_FILE_INFO_ALL; + strcpy(info->preview.type, GP_MIME_PGM); + info->preview.size = MESA_THUMB_SZ + sizeof( Dimera_thumbhdr ) - 1; + info->preview.width = 64; + info->preview.height = 48; + + info->file.fields = GP_FILE_INFO_TYPE|GP_FILE_INFO_PERMISSIONS|GP_FILE_INFO_WIDTH|GP_FILE_INFO_HEIGHT|GP_FILE_INFO_SIZE; + strcpy(info->file.type, GP_MIME_PPM); + info->file.permissions = GP_FILE_PERM_READ; + + if (std_res) { + info->file.width = 320; + info->file.height = 240; + } else { + info->file.width = 640; + info->file.height = 480; + } + info->file.size = info->file.height*info->file.width*3 + sizeof( Dimera_finehdr ) - 1; + + return GP_OK; +} + +static int camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) { + + if (type != GP_CAPTURE_IMAGE) + { + gp_context_error (context, _("Capture type is not supported")); + return (GP_ERROR_NOT_SUPPORTED); + } + + if (camera->pl->auto_flash) { + CHECK (mesa_snap_picture( camera->port, camera->pl->exposure*4 )); + } + else { + CHECK (mesa_snap_image( camera->port, camera->pl->exposure*4 )); + } + + /* + * User must download special RAM_IMAGE_TEMPLATE file. + */ + strncpy (path->folder, "/", sizeof (path->folder)); + strncpy (path->name, RAM_IMAGE_TEMPLATE, sizeof (path->name)); + + return (GP_OK); +} + +static int camera_capture_preview(Camera *camera, CameraFile *file, GPContext *context) { + long size; + uint8_t *data; + + gp_file_set_mime_type (file, GP_MIME_PGM); + + data = Dimera_Preview( &size, camera, context); + if (!data) + return GP_ERROR; + return gp_file_set_data_and_size (file, (char *)data, size); +} + +static int camera_summary (Camera *camera, CameraText *summary, GPContext *context) { + int num, eeprom_capacity, hi_pics_max, lo_pics_max; + struct mesa_id Id; + char version_string[MESA_VERSION_SZ]; + char battery_string[80]; + struct mesa_feature features; + uint8_t eeprom_info[MESA_EEPROM_SZ]; + /* Table of EEPROM capacities in Mb based on part compatibility ID */ + static uint8_t const eeprom_size_table[14] = { + /* ID Mb */ + /* 00 */ 0, + /* 01 */ 8, + /* 02 */ 8, + /* 03 */ 0, + /* 04 */ 0, + /* 05 */ 8, + /* 06 */ 16, + /* 07 */ 0, + /* 08 */ 1, + /* 09 */ 2, + /* 0A */ 4, + /* 0B */ 1, + /* 0C */ 2, + /* 0D */ 4 + }; + + num = mesa_get_image_count(camera->port); + if (num < 0) + { + gp_context_error (context, _("Problem getting number of images")); + return num; + } + + mesa_send_id( camera->port, &Id ); + mesa_version(camera->port, version_string); + mesa_read_features(camera->port, &features); + mesa_eeprom_info(camera->port, 1, eeprom_info); + eeprom_capacity = 0; + if (eeprom_info[4] == 0xc9) { + if (eeprom_info[11] < sizeof(eeprom_size_table)) + eeprom_capacity = eeprom_size_table[eeprom_info[11]]; + } + /* Estimate the number of pictures that this size of flash can hold */ + hi_pics_max = eeprom_capacity / 2; + lo_pics_max = (eeprom_capacity * 13) / 8; + + if (features.feature_bits_lo & AC_PRESENT) + battery_string[0] = '\0'; + else + snprintf( battery_string, sizeof(battery_string), + _(" (battery is %d%% full)"), + mesa_battery_check(camera->port)); + + snprintf( summary->text, sizeof(summary->text), + _("Dimera 3500 ver. %s %d/%d %d:%d.\n" + "%d pictures used of approximately %d (high res) or %d (low res).\n" + "Camera features: " + "%s, %s, %s, %s.\n" + "Flash is %s, is %s and is %s.\n" + "Resolution is set to %s.\n" + "Camera is %s powered %s.\n"), + + version_string, Id.year, Id.week, Id.man, Id.ver, + num, hi_pics_max, lo_pics_max, + (features.feature_bits_lo & HAVE_FLASH) ? + _("Flash") : _("No Flash"), + (features.feature_bits_lo & DUAL_IRIS) ? + _("Dual Iris") : _("No Dual Iris"), + (features.feature_bits_lo & HAVE_RES_SW) ? + _("Resolution Switch") : _("No Resolution Switch"), + (features.feature_bits_hi & NO_PWR_LIGHT) ? + _("No Power Light") : "Power Light", + (features.feature_bits_lo & FLASH_ON) ? + _("ON") : _("OFF"), + (features.feature_bits_lo & FLASH_READY) ? + _("ready") : _("Not ready"), + (features.feature_bits_lo & FLASH_FILL) ? + _("in fill mode") : _("Not in fill mode"), + (features.feature_bits_lo & LOW_RES) ? + _("low (320x240)") : _("high (640x480)"), + (features.feature_bits_lo & AC_PRESENT) ? + _("externally") : _("internally"), + battery_string + ); + + return GP_OK; +} + +static int camera_manual (Camera *camera, CameraText *manual, GPContext *context) { + + strcpy(manual->text, _( + "* Image glitches or problems communicating are\n" + " often caused by a low battery.\n" + "* Images captured remotely on this camera are stored\n" + " in temporary RAM and not in the flash memory card.\n" + "* Exposure control when capturing images can be\n" + " configured manually or set to automatic mode.\n" + "* Image quality is currently lower than it could be.\n" + )); + + return GP_OK; +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) { + strcpy(about->text, _( + "gPhoto2 Mustek VDC-3500/Relisys Dimera 3500\n" + "This software was created with the\n" + "help of proprietary information belonging\n" + "to StarDot Technologies.\n" + "\n" + "Author:\n" + " Brian Beattie \n" + "Contributors:\n" + " Chuck Homic \n" + " Converting raw camera images to RGB\n" + " Dan Fandrich \n" + " Information on protocol, raw image format,\n" + " gphoto2 port\n" + )); + return GP_OK; +} + + + +/* Download a thumbnail image from the camera and return it in a malloced +buffer with PGM headers */ +static uint8_t * +Dimera_Get_Thumbnail( int picnum, long *size, Camera *camera ) +{ + int32_t r; + uint8_t *image; + + if ( !(image = (unsigned char *) malloc( MESA_THUMB_SZ + + sizeof( Dimera_thumbhdr ) - 1 )) ) + { + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Get Thumbnail, allocation failed" ); + *size = 0; + return NULL; + } + + /* set image size */ + *size = MESA_THUMB_SZ + sizeof( Dimera_thumbhdr ) - 1; + + /* set image header */ + memcpy( image, Dimera_thumbhdr, sizeof( Dimera_thumbhdr ) - 1 ); + + if ( (r = mesa_read_thumbnail( camera->port, picnum, image + + sizeof( Dimera_thumbhdr ) - 1 )) < 0 ) + { + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Get Thumbnail, read of thumbnail failed" ); + free( image ); + *size = 0; + return NULL; + } + /*return (0 != (r&0x1000000));*/ + return image; +} + +/* Download a raw Bayer image from the camera and return it in a malloced +buffer */ +static uint8_t * +Dimera_Get_Full_Image (int picnum, long *size, int *width, int *height, + Camera *camera, GPContext *context) +{ + static struct mesa_image_arg ia; + int32_t r; + uint8_t *b, *rbuffer = NULL; + int hires, s, retry; + unsigned int id; + + *size = 0; + *width = 0; + *height = 0; + + if ( picnum != RAM_IMAGE_NUM ) + { + GP_DEBUG("Getting Image Info"); + if ( (r = mesa_read_image_info( camera->port, picnum, NULL )) < 0 ) + { + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Can't get Image Info"); + gp_context_error (context, _("Problem getting image information")); + return NULL; + } + if ( r ) + { + hires = FALSE; + *height = 240; + *width = 320; + } else { + hires = TRUE; + *height = 480; + *width = 640; + } + + GP_DEBUG("Loading Image"); + if ( mesa_load_image( camera->port, picnum ) != GP_OK ) + { + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Image Load failed"); + gp_context_error (context, _("Problem reading image from flash")); + return NULL; + } + + } else { + /* load the snapped image */ + hires = TRUE; + *height = 480; + *width = 640; + } + + *size = *height * *width; /* 8 bits per pixel in raw CCD format */ + + GP_DEBUG("Downloading Image"); + + rbuffer = (uint8_t *)malloc( *size ); + if ( rbuffer == NULL ) + { + gp_context_error (context, _("Out of memory")); + return NULL; + } + + ia.start = 28; + ia.send = 4; + ia.skip = 0; + ia.repeat = ( hires ? 160 : 80 ); + ia.row_cnt = 40; + ia.inc1 = 1; + ia.inc2 = 128; + ia.inc3 = ia.inc4 = 0; + + /* due to reports of mesa_read_image not working for some cameras */ + /* this is changed to use mesa_read_row */ +#if 0 + id = gp_context_progress_start (context, *height + 4, + _("Downloading image...")); + for ( ia.row = 4, b = rbuffer; ia.row < (height + 4) ; + ia.row += ia.row_cnt, b += s ) + { + GP_DEBUG("Downloading Image"); + for ( retry = 10;; ) + { + + s = mesa_read_image( camera->port, b, &ia ); + if( s > 0) + break; + + if ( (s == GP_ERROR_TIMEOUT || s == GP_ERROR_CORRUPTED_DATA) && --retry > 0) + { + GP_DEBUG( "Dimera_Get_Full_Image: retrans"); + continue; + } + GP_DEBUG( + "Dimera_Get_Full_Image: read error %d (retry %d)",s,retry); + /* retry count exceeded, or other error */ + free( rbuffer ); + *size = 0; + gp_context_error (context, _("Problem downloading image")); + return NULL; + } + gp_context_progress_update (context, id, ia.row); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + { + free( rbuffer ); + *size = 0; + gp_context_error (context, _("User canceled download")); + return NULL; + } + } +#else + id = gp_context_progress_start (context, *height + 4, + _("Downloading image...")); + for ( ia.row = 4, b = rbuffer; ia.row < (*height + 4) ; + ia.row++, b += s ) + { + GP_DEBUG("Downloading Image"); + for ( retry = 10;; ) + { + + s = mesa_read_row( camera->port, b, &ia ); + if( s > 0) + break; + + if ( (s == GP_ERROR_TIMEOUT || s == GP_ERROR_CORRUPTED_DATA) && --retry > 0) + { + GP_DEBUG("Dimera_Get_Full_Image: retrans"); + continue; + } + GP_DEBUG( + "Dimera_Get_Full_Image: read error %d (retry %d)",s,retry); + /* retry count exceeded, or other error */ + free( rbuffer ); + *size = 0; + gp_context_error (context, _("Problem downloading image")); + return NULL; + } + gp_context_progress_update (context, id, ia.row); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + { + free( rbuffer ); + *size = 0; + return NULL; + } + } + gp_context_progress_stop (context, id); +#endif + + return (rbuffer); +} + + + +#ifdef TOO_FINICKY_AUTO_EXPOSURE +/* +Table of exposure curves of the form: + y = M*log(x) + b +where y is the average brightness of an image [0..15] + x is the exposure setting [1..50000] + M and b are constants for each curve +Each scene is made to fit one of these characteristic curves. +The appropriate shutter speed (exposure) value can be calculated once the +correct curve is known, using the equation: + x = exp((y + b) / M) +where y is the desired average brightness (probably 8). + +We need more, and more accurate, curves here to make this work. You'd need +a better way than trial and error to generate a family of characteristic +curves. +*/ +static struct { float M; float b; } +exposure_tables[] = { + {2.6, -11}, + {2.8, -15}, + {2.9, -19}, + {1.5, -9}, + {0.82, -5}, + {0, 0} +}; + +/* + * Calculate a new exposure value for this picture + * exposure is 0..50000 and brightness is 0..255 + */ +static unsigned calc_new_exposure(unsigned exposure, unsigned brightness) { + int i; + + /* Choose the correct curve for this camera scene */ + for (i=0; exposure_tables[i].M; ++i) { + GP_DEBUG( "brightness %d, %f ", + brightness, + exp((double)((brightness/16.0) - exposure_tables[i].b) / exposure_tables[i].M)); + if (exp((double)((brightness/16.0) - exposure_tables[i].b) / exposure_tables[i].M) > exposure) + /* We found the best curve for this scene */ + break; + } + i = MAX(i-1, 0); + + /* Using this curve, calculate the optimum exposure */ + return MAX(MIN_EXPOSURE,MIN(MAX_EXPOSURE,(unsigned) exp((double)(8.0 - exposure_tables[i].b) / exposure_tables[i].M))); + +} + +#else +/* Use linear interpolation to choose a better exposure level for this scene */ +static unsigned calc_new_exposure(unsigned exposure, unsigned brightness) { + return MAX(MIN_EXPOSURE,MIN(MAX_EXPOSURE,(exposure * 128L) / brightness)); +} +#endif + +/* Download a live image from the camera and return it in a malloced +buffer with PGM headers */ +static uint8_t * +Dimera_Preview( long *size, Camera *camera, GPContext *context ) +{ + uint8_t buffer[VIEWFIND_SZ/2], *p; + int i; + uint8_t *image; + uint32_t exposure_total; + unsigned brightness; + + if ( !(image = (unsigned char *) malloc( VIEWFIND_SZ + + sizeof( Dimera_viewhdr ) - 1 )) ) + { + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Get Preview, allocation failed" ); + gp_context_error (context, _("Out of memory")); + return NULL; + } + + /* set image size */ + *size = VIEWFIND_SZ + sizeof( Dimera_viewhdr ) - 1; + + /* set image header */ + memcpy( image, Dimera_viewhdr, sizeof( Dimera_viewhdr ) - 1 ); + + if ( mesa_snap_view( camera->port, buffer, TRUE, 0, 0, 0, camera->pl->exposure, + VIEW_TYPE) < 0 ) + { + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Get Preview, mesa_snap_view failed" ); + free (image); + gp_context_error (context, _("Problem taking live image")); + return NULL; + } + + /* copy the buffer, splitting the pixels up */ + exposure_total = 0; + for ( p = image + sizeof( Dimera_viewhdr ) - 1, i = 0; + i < (VIEWFIND_SZ/2) ; i++ ) + { + *p++ = buffer[i] >> 4; + *p++ = buffer[i] & 0xf; + exposure_total += (buffer[i] >> 4) + (buffer[i] & 0xf); + } + + /* Automatic exposure control */ + + /* Current picture brightness, where 0 is is dark and 255 is bright */ + brightness = exposure_total / (VIEWFIND_SZ / 16); + + GP_DEBUG( + "Average pixel brightness %f, Current exposure value: %d", + brightness / 16.0, camera->pl->exposure); + + if (camera->pl->auto_exposure && (brightness < 96 || brightness > 160)) { + /* Picture brightness needs to be corrected for next time */ + camera->pl->exposure = calc_new_exposure(camera->pl->exposure, brightness); + GP_DEBUG( "New exposure value: %d", camera->pl->exposure); + } + + return image; +} + +static int +camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *t, *section; + char str[16]; + + GP_DEBUG ("camera_get_config()"); + + gp_widget_new (GP_WIDGET_WINDOW, _("Camera Configuration"), window); + + gp_widget_new (GP_WIDGET_SECTION, _("Exposure"), §ion); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_TOGGLE, _("Automatic exposure adjustment on preview"), &t); + gp_widget_set_value (t, &camera->pl->auto_exposure); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_TEXT, _("Exposure level on preview"), &t); + sprintf(str, "%d", camera->pl->exposure); + gp_widget_set_value (t, str); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_SECTION, _("Flash"), §ion); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_TOGGLE, _("Automatic flash on capture"), &t); + gp_widget_set_value (t, &camera->pl->auto_flash); + gp_widget_append (section, t); + + return GP_OK; +} + +static int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *w; + char *wvalue; + int val; + char str[16]; + + GP_DEBUG ("camera_set_config()"); + + gp_widget_get_child_by_label (window, _("Exposure level on preview"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + camera->pl->exposure = MAX(MIN_EXPOSURE,MIN(MAX_EXPOSURE,atoi(wvalue))); + gp_setting_set ("dimera3500", "exposure", wvalue); + GP_DEBUG ("set exposure"); + } + + gp_widget_get_child_by_label (window, _("Automatic exposure adjustment on preview"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &val); + camera->pl->auto_exposure = val; + sprintf(str, "%d", val); + gp_setting_set ("dimera3500", "auto_exposure", str); + GP_DEBUG ("set auto_exposure"); + } + + gp_widget_get_child_by_label (window, _("Automatic flash on capture"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &val); + camera->pl->auto_flash = val; + sprintf(str, "%d", val); + gp_setting_set ("dimera3500", "auto_flash", str); + GP_DEBUG ("set auto_flash"); + } + + GP_DEBUG ("done configuring driver."); + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func +}; + +int camera_init (Camera *camera, GPContext *context) { + + GPPortSettings settings; + int ret, selected_speed; + char buf[1024]; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->capture = camera_capture; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + + /* Get the settings and remember the selected speed */ + gp_port_get_settings (camera->port, &settings); + selected_speed = settings.serial.speed; + + /* TODO: camera->pl can probably be allocated at the end to simplify */ + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + { + gp_context_error (context, _("Out of memory")); + return (GP_ERROR_NO_MEMORY); + } + + /* Set the default exposure */ + if (gp_setting_get ("dimera3500", "exposure", buf) == GP_OK) + camera->pl->exposure = atoi(buf); + else + camera->pl->exposure = DEFAULT_EXPOSURE; + + /* Set automatic exposure enable setting for capture preview mode */ + if (gp_setting_get ("dimera3500", "auto_exposure", buf) == GP_OK) + camera->pl->auto_exposure = atoi(buf); + else + camera->pl->auto_exposure = 1; + + /* Set flag to use flash, if necessary, when capturing picture */ + if (gp_setting_get ("dimera3500", "auto_flash", buf) == GP_OK) + camera->pl->auto_flash = atoi(buf); + else + camera->pl->auto_flash = 1; + + GP_DEBUG("Opening port"); + if ( (ret = mesa_port_open(camera->port)) != GP_OK) + { + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Camera Open Failed"); + free (camera->pl); + camera->pl = NULL; + gp_context_error (context, _("Problem opening port")); + return ret; + } + + GP_DEBUG("Resetting camera"); + if ( (ret = mesa_reset(camera->port)) != GP_OK ) + { + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Camera Reset Failed"); + free (camera->pl); + camera->pl = NULL; + gp_context_error (context, _("Problem resetting camera")); + return ret; + } + + GP_DEBUG("Setting speed"); + if ( (ret = mesa_set_speed(camera->port, selected_speed)) != GP_OK ) + { + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Camera Speed Setting Failed"); + free (camera->pl); + camera->pl = NULL; + gp_context_error (context, _("Problem setting camera communication speed")); + return ret; + } + + + GP_DEBUG("Checking for modem"); + switch ( ret = mesa_modem_check(camera->port) ) + { + case GP_ERROR_IO: + case GP_ERROR_TIMEOUT: + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "No or Unknown Response"); + free (camera->pl); + camera->pl = NULL; + gp_context_error (context, _("No response from camera")); + return GP_ERROR_TIMEOUT; + case GP_ERROR_MODEL_NOT_FOUND: + gp_log(GP_LOG_ERROR, "dimera/dimera3500", "Probably a modem"); + free (camera->pl); + camera->pl = NULL; + gp_context_error (context, _("Looks like a modem, not a camera")); + return GP_ERROR_MODEL_NOT_FOUND; + case GP_OK: + break; + default: + /* Hopefully, gp_camera_set_error was called for this error */ + return ret; + } + /* Tell the filesystem where to get listings and info from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/dimeratab.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/dimeratab.h new file mode 100644 index 00000000..e3766963 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/dimeratab.h @@ -0,0 +1,123 @@ +/* + dimeratab.h -- Color conversion values for the Dimera 3500 + + These tables were deduced by analyzing the output of the Windows Dimera + driver. Many of the values are probably wrong, but this produces a + decent image. My analysis was done using several outdoor pictures in + sunlight. In other lighting conditions, your mileage may vary. + + Comments or suggestions? Email me. + + -- Chuck Homic + + $Id$ +*/ +#ifndef DIMERATAB_H +#define DIMERATAB_H + +static const unsigned char red_table[256]={ + /* 0 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x03,0x04,0x04,0x04,0x05,0x06, + /* 16 */ + 0x06,0x07,0x08,0x09,0x0B,0x0C,0x0E,0x10,0x13,0x15,0x16,0x18,0x19,0x1B,0x1E,0x20, + /* 32 */ + 0x22,0x25,0x28,0x29,0x2B,0x2C,0x2D,0x2E,0x30,0x31,0x33,0x34,0x37,0x39,0x3B,0x3C, + /* 48 */ + 0x3D,0x3F,0x40,0x41,0x42,0x43,0x45,0x46,0x49,0x4B,0x4C,0x4E,0x4F,0x51,0x52,0x53, + /* 64 */ + 0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5A,0x5B,0x5C,0x5D,0x5F,0x60,0x62,0x64,0x65, + /* 80 */ + 0x67,0x68,0x69,0x6A,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x73,0x74,0x75,0x76, + /* 96 */ + 0x77,0x78,0x79,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, + /* 112 */ + 0x88,0x8A,0x8B,0x8C,0x8E,0x8F,0x91,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9C, + /* 128 */ + 0x9D,0x9E,0xA0,0xA1,0xA3,0xA4,0xA6,0xA7,0xA8,0xA9,0xAB,0xAC,0xAE,0xAF,0xB1,0xB2, + /* 144 */ + 0xB4,0xB5,0xB7,0xB8,0xB9,0xBA,0xBC,0xBD,0xBF,0xC1,0xC2,0xC4,0xC5,0xC7,0xC8,0xC9, + /* 160 */ + 0xCA,0xCB,0xCD,0xCE,0xD0,0xD1,0xD3,0xD4,0xD5,0xD7,0xD8,0xDA,0xDB,0xDC,0xDD,0xDE, + /* 176 */ + 0xDF,0xE0,0xE1,0xE2,0xE2,0xE4,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xEC, + /* 192 */ + 0xED,0xEE,0xEE,0xEF,0xEF,0xEF,0xF0,0xF0,0xF1,0xF2,0xF2,0xF3,0xF3,0xF4,0xF4,0xF4, + /* 208 */ + 0xF5,0xF5,0xF5,0xF6,0xF6,0xF6,0xF7,0xF7,0xF7,0xF7,0xF7,0xF8,0xF8,0xF8,0xF9,0xF9, + /* 224 */ + 0xF9,0xF9,0xF9,0xF9,0xF9,0xF9,0xF9,0xF9,0xFA,0xFA,0xFA,0xFB,0xFB,0xFB,0xFB,0xFB, + /* 240 */ + 0xFB,0xFB,0xFC,0xFC,0xFC,0xFC,0xFD,0xFD,0xFD,0xFD,0xFD,0xFD,0xFD,0xFD,0xFE,0xFE, +}; + +static const unsigned char green_table[256]={ + /* 0 */ + 0x00,0x01,0x01,0x02,0x02,0x03,0x03,0x03,0x04,0x04,0x05,0x05,0x06,0x06,0x07,0x07, + /* 16 */ + 0x07,0x08,0x09,0x0A,0x0B,0x0B,0x0C,0x0D,0x0E,0x0E,0x0F,0x10,0x11,0x12,0x12,0x13, + /* 32 */ + 0x14,0x14,0x15,0x16,0x17,0x18,0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21, + /* 48 */ + 0x21,0x22,0x23,0x24,0x24,0x25,0x26,0x27,0x28,0x28,0x29,0x2A,0x2B,0x2C,0x2C,0x2D, + /* 64 */ + 0x2E,0x2E,0x2F,0x30,0x30,0x31,0x32,0x32,0x33,0x33,0x34,0x35,0x35,0x36,0x37,0x37, + /* 80 */ + 0x38,0x39,0x39,0x3A,0x3A,0x3B,0x3C,0x3C,0x3D,0x3E,0x3E,0x3E,0x3F,0x40,0x40,0x41, + /* 96 */ + 0x42,0x42,0x43,0x43,0x44,0x44,0x45,0x45,0x46,0x47,0x47,0x48,0x49,0x49,0x4A,0x4B, + /* 112 */ + 0x4B,0x4C,0x4D,0x4D,0x4E,0x4E,0x4F,0x4F,0x4F,0x50,0x50,0x51,0x52,0x52,0x53,0x54, + /* 128 */ + 0x54,0x55,0x55,0x56,0x56,0x57,0x58,0x59,0x5A,0x5A,0x5A,0x5B,0x5C,0x5C,0x5D,0x5E, + /* 144 */ + 0x5E,0x5F,0x60,0x61,0x61,0x62,0x63,0x63,0x64,0x65,0x65,0x66,0x67,0x67,0x68,0x69, + /* 160 */ + 0x6A,0x6A,0x6B,0x6C,0x6C,0x6D,0x6F,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77, + /* 176 */ + 0x78,0x79,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x84,0x85,0x86,0x87, + /* 192 */ + 0x88,0x89,0x8B,0x8C,0x8E,0x8F,0x91,0x93,0x96,0x97,0x98,0x99,0x9B,0x9C,0x9E,0xA0, + /* 208 */ + 0xA1,0xA3,0xA5,0xA6,0xA8,0xAA,0xAC,0xAE,0xB1,0xB3,0xB4,0xB6,0xB8,0xBA,0xBB,0xBD, + /* 224 */ + 0xBF,0xC1,0xC3,0xC5,0xC8,0xCA,0xCC,0xCE,0xD1,0xD3,0xD5,0xD7,0xD9,0xDB,0xDD,0xDF, + /* 240 */ + 0xE1,0xE2,0xE5,0xE6,0xE8,0xEA,0xEC,0xEE,0xF0,0xF2,0xF3,0xF5,0xF6,0xF8,0xFA,0xFC, +}; + +static const unsigned char blue_table[256]={ + /* 0 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01, + /* 16 */ + 0x02,0x03,0x04,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0C,0x0E,0x11,0x12,0x13,0x14, + /* 32 */ + 0x15,0x17,0x19,0x1B,0x1C,0x1E,0x1F,0x20,0x21,0x23,0x26,0x28,0x29,0x2B,0x2C,0x2D, + /* 48 */ + 0x2E,0x30,0x31,0x32,0x33,0x33,0x35,0x36,0x37,0x38,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F, + /* 64 */ + 0x41,0x42,0x42,0x43,0x44,0x45,0x47,0x47,0x49,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F, + /* 80 */ + 0x4F,0x50,0x50,0x51,0x52,0x52,0x53,0x54,0x55,0x55,0x56,0x57,0x58,0x59,0x5A,0x5A, + /* 96 */ + 0x5B,0x5C,0x5D,0x5D,0x5E,0x5F,0x5F,0x60,0x61,0x62,0x62,0x63,0x64,0x66,0x67,0x67, + /* 112 */ + 0x68,0x69,0x69,0x6A,0x6B,0x6C,0x6D,0x6D,0x6E,0x6F,0x70,0x71,0x71,0x72,0x72,0x73, + /* 128 */ + 0x74,0x75,0x76,0x76,0x77,0x78,0x79,0x7A,0x7A,0x7B,0x7C,0x7D,0x7D,0x7E,0x7F,0x7F, + /* 144 */ + 0x80,0x80,0x81,0x81,0x82,0x82,0x83,0x84,0x85,0x85,0x86,0x88,0x88,0x89,0x8A,0x8B, + /* 160 */ + 0x8C,0x8D,0x8E,0x8F,0x8F,0x90,0x91,0x92,0x93,0x95,0x96,0x96,0x97,0x99,0x99,0x9A, + /* 176 */ + 0x9B,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA6,0xA7,0xA9,0xAB,0xAD,0xAE, + /* 192 */ + 0xB0,0xB2,0xB3,0xB4,0xB6,0xB7,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xC0,0xC1,0xC3,0xC4, + /* 208 */ + 0xC6,0xC8,0xCA,0xCB,0xCD,0xD0,0xD3,0xD5,0xD7,0xD9,0xDC,0xDF,0xE1,0xE3,0xE5,0xE7, + /* 224 */ + 0xE8,0xE9,0xEA,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF2,0xF3,0xF4,0xF5,0xF5,0xF6, + /* 240 */ + 0xF7,0xF7,0xF7,0xF8,0xF8,0xF8,0xF9,0xF9,0xFA,0xFB,0xFB,0xFC,0xFC,0xFD,0xFD,0xFE, +}; + +#endif /* DIMERATAB_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/mesalib.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/mesalib.c new file mode 100644 index 00000000..8a39ab3a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/mesalib.c @@ -0,0 +1,1079 @@ +/* +* Copyright 2000-2001, Brian Beattie , et. al. +* +* This software was created with the help of proprietary +* information belonging to StarDot Technologies +* +* Permission to copy and use and modify this file is granted +* provided the above notices are retained, intact. +* +* Revision History: +* See CVS log for later revisions +* +* 2001/03/10 - Port to gphoto2 Dan +* +* 2000/09/06 - Modified by Gregg Berg GDB +* * Rewrite mesa_read_row() to use mesa_image_arg GDB +* * Add checksum to mesa_read_row() GDB +* * Add return with number of bytes to mesa_read_image() GDB +* GDB +* $Id$ +*/ +#include "config.h" + +#include "mesalib.h" + +#include +#include +#include +#include + +#include +#include "gphoto2-endian.h" + +#define GP_MODULE "dimera" +#define debuglog(e) GP_DEBUG( "%s", (e)) + +#ifdef CONVERT_PIXELS +static const uint16_t pixelTable[256] = { + 0x000, 0x001, 0x002, 0x003, 0x004, 0x005, 0x006, 0x007, + 0x008, 0x009, 0x00A, 0x00B, 0x00C, 0x00D, 0x00E, 0x00F, + 0x010, 0x011, 0x012, 0x013, 0x014, 0x015, 0x016, 0x017, + 0x018, 0x019, 0x01A, 0x01B, 0x01C, 0x01D, 0x01E, 0x01F, + 0x020, 0x021, 0x022, 0x023, 0x024, 0x025, 0x026, 0x027, + 0x028, 0x029, 0x02A, 0x02B, 0x02C, 0x02D, 0x02E, 0x02F, + 0x030, 0x031, 0x032, 0x033, 0x034, 0x035, 0x036, 0x037, + 0x038, 0x039, 0x03A, 0x03B, 0x03C, 0x03D, 0x03E, 0x03F, + 0x040, 0x041, 0x042, 0x043, 0x044, 0x045, 0x046, 0x047, + + 0x048, 0x049, 0x04A, 0x04B, 0x04C, 0x04E, 0x04F, 0x050, + 0x051, 0x052, 0x053, 0x054, 0x055, 0x056, 0x057, 0x058, + 0x059, 0x05A, 0x05B, 0x05C, 0x05D, 0x05E, 0x05F, 0x060, + 0x061, 0x062, 0x063, 0x064, 0x066, 0x067, 0x068, 0x069, + 0x06A, 0x06C, 0x06D, 0x06E, 0x06F, 0x070, 0x072, 0x073, + 0x074, 0x075, 0x076, 0x077, 0x078, 0x079, 0x07A, 0x07B, + 0x07C, 0x07E, 0x07F, 0x081, 0x082, 0x084, 0x085, 0x087, + + 0x088, 0x08A, 0x08B, 0x08C, 0x08E, 0x08F, 0x090, 0x092, + 0x093, 0x094, 0x096, 0x098, 0x09A, 0x09C, 0x09E, 0x0A0, + 0x0A2, 0x0A3, 0x0A5, 0x0A6, 0x0A8, 0x0A9, 0x0AB, 0x0AC, + 0x0AE, 0x0B0, 0x0B2, 0x0B4, 0x0B6, 0x0B8, 0x0BA, 0x0BC, + + 0x0BE, 0x0C0, 0x0C2, 0x0C4, 0x0C6, 0x0C8, 0x0CA, 0x0CD, + 0x0CF, 0x0D2, 0x0D5, 0x0D8, 0x0DB, 0x0DE, 0x0E0, 0x0E2, + 0x0E5, 0x0E7, 0x0EA, 0x0EC, 0x0EE, 0x0F1, 0x0F3, 0x0F6, + 0x0FC, 0x102, 0x106, 0x10A, 0x10E, 0x111, 0x114, 0x117, + + 0x11A, 0x11D, 0x120, 0x123, 0x126, 0x12C, 0x132, 0x138, + 0x13E, 0x142, 0x146, 0x14A, 0x150, 0x156, 0x15A, 0x15E, + 0x162, 0x166, 0x16A, 0x16E, 0x17A, 0x180, 0x186, 0x18C, + 0x192, 0x19E, 0x1AA, 0x1B0, 0x1B6, 0x1BA, 0x1BE, 0x1C2, + + 0x1C8, 0x1CE, 0x1DA, 0x1E6, 0x1F2, 0x1FE, 0x204, 0x20A, + 0x216, 0x222, 0x22E, 0x23A, 0x240, 0x246, 0x24C, 0x252, + + 0x25E, 0x26A, 0x276, 0x282, 0x28E, 0x2A6, 0x2B2, 0x2BE, + 0x2D6, 0x2EE, 0x2FA, 0x312, 0x336, 0x34E, 0x35e, 0x366 +}; +#endif + +/* + * return the difference in tenths of seconds, between t1 and t2. + */ +static long +timediff( struct timeval *t1, struct timeval *t2 ) +{ + long t; + + t = (t1->tv_sec - t2->tv_sec) * 10; + t += (t1->tv_usec - t2->tv_usec) / 100000; + return t; +} + +/* flush input. Wait for timeout deci-seconds to pass without input */ + +void +mesa_flush( GPPort *port, int timeout ) +{ + uint8_t b[256]; + struct timeval start, now; + + gettimeofday( &start, NULL ); + + /* Clear any pending input bytes */ + gp_port_flush(port, 0); + + /* Wait for silence */ + do { + if ( gp_port_read( port, (char *)b, sizeof( b ) ) > 0 ) + /* reset timer */ + gettimeofday( &start, NULL ); + gettimeofday( &now, NULL ); + } while ( timeout > timediff( &now, &start ) ); + return; +} + +/* Read exactly this number of bytes from the port within the given timeouts */ +int +mesa_read( GPPort *port, uint8_t *b, int s, int timeout2, int timeout1 ) +{ + int n = 0; + int r, t; + struct timeval start, now; + + t = timeout1 ? timeout1 : timeout2; /* set first byte timeout */ + gettimeofday( &start, NULL ); + + do + { + /* limit reads to 1k segment */ + r = gp_port_read( port, (char *)&b[n], s>1024?1024:s ); + if ( r > 0 ) + { + n += r; + s -= r; + gettimeofday( &start, NULL ); + t = timeout2; + } + gettimeofday( &now, NULL ); + } while ( s > 0 && t > timediff( &now, &start ) ); + return n; +} + +/* Send a command to the camera and read the acknowledgement byte */ +int +mesa_send_command( GPPort *port, uint8_t *cmd, int n, int ackTimeout ) +{ + uint8_t c; + + CHECK (gp_port_write( port, (char *)cmd, n )); + + if ( mesa_read( port, &c, 1, ackTimeout, 0 ) != 1 ) + { + debuglog("mesa_send_command: timeout"); + return GP_ERROR_TIMEOUT; + } + if ( c != CMD_ACK ) + { + debuglog("mesa_send_command: error response"); + return GP_ERROR_CORRUPTED_DATA; + } + return GP_OK; +} + +/* Open the serial port and configure it */ +int +mesa_port_open( GPPort *port ) +{ + GPPortSettings settings; + + debuglog("mesa_port_open()"); + gp_port_set_timeout(port, 5000); + + gp_port_get_settings(port, &settings); + + settings.serial.speed = 115200; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits= 1; + + return gp_port_set_settings(port, settings); +} + +/* Close the serial port (now done by gphoto2 itself) */ +int +mesa_port_close( GPPort *port ) +{ + return GP_OK; +} + +/* reset camera */ +int +mesa_reset( GPPort *port ) +{ + return gp_port_send_break( port, 1 ); +} + +/* set camera serial port speed, then our local port speed */ +int +mesa_set_speed( GPPort *port, int speed ) +{ + uint8_t b[2]; + gp_port_settings settings; + + if (speed == 0) + speed = 115200; /* use default speed */ + + GP_DEBUG( + "mesa_set_speed: speed %d", speed); + + b[0] = SET_SPEED; + + switch( speed ) + { + case 9600: + b[1] = 1; + break; + case 14400: + b[1] = 2; + break; + case 19200: + b[1] = 3; + break; + case 38400: + b[1] = 4; + break; + case 57600: + b[1] = 5; + break; + case 76800: + b[1] = 6; + break; + case 115200: + b[1] = 7; + break; + case 230400: + b[1] = 8; + break; + case 460800: + b[1] = 9; + break; + default: + return GP_ERROR_BAD_PARAMETERS; + } + CHECK (mesa_send_command( port, b, sizeof( b ), 10 )); + + gp_port_get_settings(port, &settings); + settings.serial.speed = speed; + return gp_port_set_settings(port, settings); +} + +/* get camera version number */ +int +mesa_version( GPPort *port, char *version_string) +{ + uint8_t b; + uint8_t r[3]; + int i; + char *v = version_string; + + b = MESA_VERSION; + + CHECK (mesa_send_command( port, &b, 1, 10 )); + + if ( ( i = mesa_read( port, r, sizeof( r ), 10, 0 ) ) != sizeof( r ) ) + { + return GP_ERROR_TIMEOUT; + } + + GP_DEBUG( + "mesa_version: %02x:%02x:%02x\n", r[0], r[1], r[2] ); + sprintf(v, "%2x.%02x%c", r[1], r[0], r[2]); + /* highest byte must be < MESA_VERSION_SZ */ + return GP_OK; +} + +/* test camera serial port transmit */ +int +mesa_transmit_test( GPPort *port ) +{ + uint8_t b; + uint8_t r[256]; + unsigned int i; + + b = XMIT_TEST; + + CHECK (mesa_send_command( port, &b, 1, 10 )); + + if ( mesa_read( port, r, sizeof( r ), 10, 0 ) != sizeof( r ) ) + { + return GP_ERROR_TIMEOUT; + } + + for ( i = 0; i < 256; i++ ) + { + if ( r[i] != i ) + return GP_ERROR_CORRUPTED_DATA; + } + return GP_OK; +} + +/* test camera ram */ +int +mesa_ram_test( GPPort *port ) +{ + uint8_t b; + uint8_t r; + + b = RAM_TEST; + + CHECK (mesa_send_command( port, &b, 1, 100 )); + + if ( mesa_read( port, &r, 1, 10, 0 ) != 1 ) + { + return GP_ERROR_TIMEOUT; + } + + return (int)r; +} + +/* + * Read image row from camera. + * ******************************************************************** GDB + * * The following contradicted by traces from my Win98 twain driver* GDB + * ******************************************************************** GDB + * The image is stored in the camera as 504 row (0 - 503), the first 8 and the + * last 2 are blank. + * The rows are 18 dummy pixels, 2 blanks, 646 pixels, 13 bytes garbage, + * 2 bytes blanks + * + * start - offset into row; + * send - bytes to send; + * skip - bytes to skip; + * repeat - # repeats of send skip + * 640 bytes start = 28, send = 2, skip = 0, repeat = 320 + * 320 bytes start = 28, send = 2, skip = 2, repeat = 160 + * + * return number of bytes read, or < 0 if an error was detected. + * GDB + * ******************************************************************** GDB + * GDB + * 640 bytes start = 30, send = 4, skip = 0, repeat = 160 GDB + * 320 bytes start = 30, send = 4, skip = 0, repeat = 80 GDB + * GDB + * return value >0 number of bytes read GDB + * GP_ERROR_TIMEOUT read time-out + * GP_ERROR_BAD_PARAMETERS bad values + * GP_ERROR command failure + * GP_ERROR_CORRUPTED_DATA checksum failure + */ + +int /*GDB*/ +mesa_read_row( GPPort *port, uint8_t *r, struct mesa_image_arg *s ) /*GDB*/ +{ + uint8_t b[9]; + unsigned int bytes, i; /*GDB*/ + uint8_t checksum = 0; /*GDB*/ + + if ( (bytes = s->send * s->repeat) > 680 ) /*GDB*/ + { + return GP_ERROR_BAD_PARAMETERS; + } + + b[0] = SEND_RAM; + htole16a(&b[1], s->row); + htole16a(&b[3], s->start); + b[5] = s->send; + b[6] = s->skip; + htole16a(&b[7], s->repeat); + + CHECK (mesa_send_command( port, b, sizeof( b ), 10 )); + +/* return ( mesa_read( port, r, n, 10, 0 )); GDB*/ + if ( mesa_read( port, r, bytes, 10, 0 ) != bytes ) /*GDB*/ + { /*GDB*/ + return GP_ERROR_TIMEOUT; + } /*GDB*/ + /*GDB*/ + if ( mesa_read( port, b, 1, 10, 0 ) != 1) /*GDB*/ + { /*GDB*/ + return GP_ERROR_TIMEOUT; + } /*GDB*/ + /*GDB*/ + for (i = 0; i < bytes; i++ ) /*GDB*/ + { /*GDB*/ + checksum += r[i]; /*GDB*/ + } /*GDB*/ + /*GDB*/ + if ( checksum != b[0] ) /*GDB*/ + { /*GDB*/ + return GP_ERROR_CORRUPTED_DATA; + } /*GDB*/ + /*GDB*/ + return bytes; /*GDB*/ +} + +/* + * Snaps a full resolution image, with no flash, or shutter click + * + * exposure is in units of 1/50000 seconds + */ +int +mesa_snap_image( GPPort *port, uint16_t exposure ) +{ + uint8_t b[3]; + int timeout; + + if ( exposure ) + timeout = (exposure/50000) + 10; + else + timeout = 10; + + b[0] = SNAP_IMAGE; + htole16a(&b[1], exposure); + return mesa_send_command( port, b, sizeof( b ), timeout ); +} + +/* return black levels, overwrites image memory */ +int +mesa_black_levels( GPPort *port, uint8_t r[2] ) +{ + uint8_t b; + + b = SND_BLACK; + + CHECK (mesa_send_command( port, &b, 1, 10 )); + + return mesa_read( port, r, 2, 10, 0 ); +} + +/* + * snap a view finder image, optionally return image in buffer. + * + * if hi_res is true, image is 128x96 packed 4 bits per pixel (6144 bytes). + * else image is 64x48 packed 4 bits per pixel (1536 bytes). + * + * the image can be full scale, 0, zoom 2x 1, zoom 4x, 2, and for + * low res images, 8x, 3. + * + * row and column may be offset 0-197 and 0-223 for zoom. + * + * exposure is * 1/50000 seconds. + * + * download specifies how, of if thge image is downloaded. + * 0-47 returns one 32 byte (64 pixel) row. + * 128-223 returns on 64 byte row. + * 249 returns all odd rows of a hi-res image 1536 bytes. + * 250 returns all even rows of a hi-res image 1536 bytes. + * 251 returns complete hi res image 6144 bytes. + * 252 returns nothing. + * 253 returns all odd rows of low res image 768 bytes. + * 254 returns all even rows of low res image 768 bytes. + * 255 returns entire image of 1536 bytes. + * + */ +int +mesa_snap_view( GPPort *port, uint8_t *r, unsigned int hi_res, + unsigned int zoom, unsigned int row, unsigned int col, uint16_t exposure, + uint8_t download ) +{ + unsigned int timeout, i; + unsigned int bytes = 0; + uint8_t b[7], cksum; + + if ( download <= 47 ) + bytes = 32; + else if ( download >= 48 && download <= 127 ) + return GP_ERROR_BAD_PARAMETERS; + else if ( download >= 128 && download <= 223 ) + bytes = 64; + else if ( download >= 224 && download <= 248 ) + return GP_ERROR_BAD_PARAMETERS; + else if ( download == 249 || download == 250 ) + bytes = 1536; + else if ( download == 251 ) + bytes = 6144; + else if ( download == 252 ) + bytes = 0; + else if ( download == 253 || download == 254 ) + bytes = 768; + else /* if ( download == 255 ) */ + bytes = 1536; + + if ( bytes != 0 && r == NULL ) + { + return GP_ERROR_BAD_PARAMETERS; + } + + if ( exposure ) + timeout = (exposure/50000) + 10; + else + timeout = 10; + + b[0] = SNAP_VIEW; + b[1] = (zoom&3)+(hi_res?0x80:0); + b[2] = row; + b[3] = col; + htole16a(&b[4], exposure); + b[6] = download; + + CHECK (mesa_send_command( port, b, sizeof( b ), timeout )); + + if ( bytes != 0 ) + { + if ( mesa_read( port, r, bytes, 10, 0 ) != bytes ) + { + return GP_ERROR_TIMEOUT; + } + + if ( mesa_read( port, b, 1, 10, 0 ) != 1 ) + { + return GP_ERROR_TIMEOUT; + } + + for ( i = 0, cksum = 0; i < bytes; i++ ) + { + cksum += r[i]; + } + if ( cksum != b[0] ) + { + return GP_ERROR_CORRUPTED_DATA; + } + } + + return bytes; +} + +/* + * tell camera to insert extra stop bits between bytes. + * slows down transmission without using a slower speed. + */ +int +mesa_set_stopbits( GPPort *port, unsigned int bits ) +{ + uint8_t b[2]; + + b[0] = XTRA_STP_BIT; + b[1] = bits; + + return mesa_send_command( port, b, sizeof( b ), 10 ); +} + +/* download viewfinder image ( see mesa_snap_view ) */ +int +mesa_download_view( GPPort *port, uint8_t *r, uint8_t download ) +{ + unsigned int bytes, i; + uint8_t b[2], cksum; + + if ( download <= 47 ) + bytes = 32; + else if ( download >= 48 && download <= 127 ) + return GP_ERROR_BAD_PARAMETERS; + else if ( download >= 128 && download <= 223 ) + bytes = 64; + else if ( download >= 224 && download <= 248 ) + return GP_ERROR_BAD_PARAMETERS; + else if ( download == 249 ) + bytes = 1536; + else if ( download == 250 || download == 251 ) + bytes = 768; + else if ( download == 252 ) + bytes = 0; + else if ( download == 253 ) + bytes = 6144; + else /* if ( download == 254 || download == 255 ) */ + bytes = 1536; + + if ( bytes != 0 && r == NULL ) + { + return GP_ERROR_BAD_PARAMETERS; + } + + b[0] = SND_VIEW; + b[1] = download; + + CHECK (mesa_send_command( port, b, sizeof( b ), 10 )); + + if ( bytes != 0 ) + { + if ( mesa_read( port, r, bytes, 10, 0 ) != bytes ) + { + return GP_ERROR_TIMEOUT; + } + + if ( mesa_read( port, b, 1, 10, 0 ) != 1 ) + { + return GP_ERROR_TIMEOUT; + } + + for ( i = 0, cksum = 0; i < bytes; i++ ) + { + cksum += r[i]; + } + if ( cksum != b[0] ) + return GP_ERROR_CORRUPTED_DATA; + } + + return bytes; +} + +/* + * take a picture, with flash and shutter click + */ +int +mesa_snap_picture( GPPort *port, uint16_t exposure ) +{ + unsigned int timeout; + uint8_t b[3]; + + if ( exposure ) + timeout = (exposure/50000) + 10; + else + timeout = 10; + + b[0] = SNAP_PICTURE; + htole16a(&b[1], exposure); + + return mesa_send_command( port, b, sizeof( b ), timeout ); +} + +/* Get the camera chipset identification */ +int +mesa_send_id( GPPort *port, struct mesa_id *id ) +{ + uint8_t b, r[4]; + + b = SND_ID; + + CHECK (mesa_send_command( port, &b, 1, 10 )); + + if ( mesa_read( port, r, sizeof( r ), 10, 0 ) != sizeof( r ) ) + { + return GP_ERROR_TIMEOUT; + } + + id->man = r[0] + ((r[1]&15)<<8); + id->ver = r[1]>>4; + id->year = 1996 + r[2]; + id->week = r[3]; + + return GP_OK; +} + +/* + * check for a camera, or a modem, send AT, if the response is 0x21, + * it is a camera, if it is "AT" it's a modem. + * + * returns GP_OK = camera + * GP_ERROR_MODEL_NOT_FOUND = modem + * other = error + */ +int +mesa_modem_check( GPPort *port ) +{ + uint8_t b[3]; + + b[0] = 'A'; + b[1] = 'T'; + b[2] = '\r'; + + CHECK (gp_port_write( port, (char *)b, sizeof( b ) )); + + /* Expect at least one byte */ + if ( mesa_read( port, b, 1, 5, 0 ) < 1 ) + { + return GP_ERROR_TIMEOUT; + } + + if ( b[0] == CMD_ACK ) + return GP_OK; + + /* Anything past this point results in an error */ + if ( mesa_read( port, b+1, sizeof(b) - 1, 2, 2 ) == sizeof(b) - 1 ) + { + if ( b[0] == 'A' && b[1] == 'T' ) + { + mesa_flush( port, 10 ); + return GP_ERROR_MODEL_NOT_FOUND; + } + } + + mesa_flush( port, 10 ); + return GP_ERROR; +} + +/* + * mesa_read_image - returns all or part of an image in the supplied buffer + * uint8_t *r, buffer to return image in. + * struct mesa_image_arg *i, download specifier. + * + * return value >0 number of bytes read + * GP_ERROR_TIMEOUT read time-out + * GP_ERROR command failure + * GP_ERROR_CORRUPTED_DATA checksum failure + */ + +int +mesa_read_image( GPPort *port, uint8_t *r, struct mesa_image_arg *s ) +{ + uint8_t b[14]; + unsigned long bytes, i; + uint8_t checksum = 0; + + bytes = s->row_cnt * (s->repeat * s->send); + + b[0] = SND_IMAGE; + htole16a(&b[1], s->row); + htole16a(&b[3], s->start); + b[5] = s->send; + b[6] = s->skip; + htole16a(&b[7], s->repeat); + b[9] = s->row_cnt; + b[10] = s->inc1; + b[11] = s->inc2; + b[12] = s->inc3; + b[13] = s->inc4; + + CHECK (mesa_send_command( port, b, sizeof( b ), 10 )); + + if ( mesa_read( port, r, bytes, 10, 0 ) != bytes ) + { + return GP_ERROR_TIMEOUT; + } + + if ( mesa_read( port, b, 1, 10, 0 ) != 1 ) + { + return GP_ERROR_TIMEOUT; + } + + for ( i = 0; i < bytes; i++ ) + { + checksum += r[ i ]; + } + + if ( checksum != b[0] ) + { + return GP_ERROR_CORRUPTED_DATA; + } + + return bytes; +} + +/* + * test serial link, send six bytes + * + * returns GP_OK - success + * GP_ERROR_TIMEOUT - no data received + * GP_ERROR - command failed (no or bad ack) + * GP_ERROR_CORRUPTED_DATA - returned bytes do not match + */ +int +mesa_recv_test( GPPort *port, uint8_t r[6] ) +{ + uint8_t b[7]; + int i; + + b[0] = RCV_TEST; + memcpy( &b[1], r, 6 ); + + CHECK (mesa_send_command( port, b, sizeof( b ), 10 )); + + if ( mesa_read( port, r, 6, 10, 0 ) != 6 ) + { + return GP_ERROR_TIMEOUT; + } + + for ( i = 0; i < 6; i++ ) + if ( r[i] != b[i+1] ) + return GP_ERROR_CORRUPTED_DATA; + return GP_OK; +} + +/* Return the number of images in the EEPROM */ +int +mesa_get_image_count( GPPort *port ) +{ + uint8_t b; + uint8_t r[2]; + + b = IMAGE_CNT; + + CHECK (mesa_send_command( port, &b, 1, 10 )); + + if ( mesa_read( port, r, sizeof( r ), 10, 0 ) != sizeof( r ) ) + { + return GP_ERROR_TIMEOUT; + } + + return le16atoh(r); +} + +/* load image from eeprom, into ram */ +int +mesa_load_image( GPPort *port, int image ) +{ + uint8_t b[3]; + + b[0] = LD_IMAGE; + htole16a(&b[1], image); + + return mesa_send_command( port, b, sizeof( b ), 1000 ); +} + +/* + * Read EEPROM information + * Bytes 10..16 of info correspond to the Device ID field, bytes 45..51 + */ +int +mesa_eeprom_info( GPPort *port, int long_read, uint8_t info[MESA_EEPROM_SZ] ) +{ + uint8_t b; + + b = EEPROM_INFO; + + CHECK (mesa_send_command( port, &b, 1, 10 )); + + return mesa_read( port, info, long_read ? 49 : 33, 10, 0 ); +} + +/* + * + */ + +int32_t +mesa_read_thumbnail( GPPort *port, int picture, uint8_t *image ) +{ + uint8_t b[3], checksum = 0; + uint32_t bytes; + unsigned int standard_res, i; + + b[0] = SND_THUMB; + htole16a(&b[1], picture); + + CHECK (mesa_send_command( port, b, sizeof( b ), 10 )); + + if ( mesa_read( port, b, 3, 10, 0 ) != 3 ) + { + return GP_ERROR_TIMEOUT; + } + + checksum = b[0] + b[1] + b[2]; + + standard_res = ((b[2] & 128) != 0); + bytes = b[0] + (b[1]<<8) + ((b[2] & 127)<<16); + + if ( mesa_read( port, image, MESA_THUMB_SZ, 10, 0 ) != MESA_THUMB_SZ ) + { + return GP_ERROR_TIMEOUT; + } + + if ( mesa_read( port, b, 1, 10, 0 ) != 1 ) + { + return GP_ERROR_TIMEOUT; + } + + for ( i = 0; i < MESA_THUMB_SZ; i++ ) + { + checksum += image[i]; + } + + if ( checksum != b[0] ) + return GP_ERROR_CORRUPTED_DATA; + + return (bytes + standard_res ? 0x1000000 : 0); +} + +/* Return the camera's feature bits */ +int +mesa_read_features( GPPort *port, struct mesa_feature *f ) +{ + uint8_t b; + + b = FEATURES; + + CHECK (mesa_send_command( port, &b, 1, 10 )); + + return ( mesa_read( port, (uint8_t *)f, sizeof( *f ), 10, 0 ) ); +} + +/* return percentage battery level */ +int +mesa_battery_check( GPPort *port ) +{ + struct mesa_feature f; + int l, r, rc; + + if ( (rc = mesa_read_features( port, &f )) != sizeof( f )) + { + return rc; + } + + if ( (f.feature_bits_hi & BAT_VALID) == 0 ) + return GP_ERROR_MODEL_NOT_FOUND; + + /* (df) Does BAT_DIGITAL need to be checked here? */ + + if ( ( l = f.battery_level - f.battery_zero ) < 0 ) + l = 0; + + r = f.battery_full - f.battery_zero; + + return ( (l*100)/r ); +} + +int32_t +mesa_read_image_info( GPPort *port, int i, struct mesa_image_info *info ) +{ + uint8_t b[3], r[3]; + int32_t bytes; + int32_t standard_res; + + b[0] = SND_IMG_INFO; + htole16a(&b[1], i); + + CHECK (mesa_send_command( port, b, sizeof( b ), 10 )); + + if ( mesa_read( port, r, sizeof( r ), 10, 0 ) != sizeof( r ) ) + { + return GP_ERROR_TIMEOUT; + } + + standard_res = ((r[2] & 128) != 0); + bytes = r[0] + (r[1]<<8) + ((r[2] & 127)<<16); + + if ( info != NULL ) + { + info->standard_res = standard_res; + info->num_bytes = bytes; + } + + return standard_res; +} + +#ifdef CONVERT_PIXELS +/* + * return and image with raw pixels expanded. + */ +uint16_t * +mesa_get_image( GPPort *port, int image ) +{ + static uint8_t buffer[640*480L]; + static struct mesa_image_info info; + static struct mesa_image_arg ia; + uint8_t *b = buffer; + uint16_t *rbuffer; + int r, res; + unsigned long size, i; + + if ( image != RAM_IMAGE_NUM ) + { + if ( mesa_load_image( port, image ) != GP_OK ) + { + mesa_flush( port, 100 ); + return NULL; + } + + if ( mesa_read_image_info( port, image, &info ) < 0 ) + { + mesa_flush( port, 100 ); + return NULL; + } + if ( info.standard_res ) + { + res = 1; + size = 320*240; + } else { + res = 0; + size = 640*480; + } + } else { + res = 0; + size = 640*480; + } + rbuffer = (uint16_t *)malloc( size*(sizeof (uint16_t)) ); + if ( rbuffer == NULL ) + return NULL; + + ia.start = 28; + ia.send = 4; + ia.skip = 0; + ia.repeat = (res ? 80 : 160); + ia.row_cnt = 40; + ia.inc1 = 1; + ia.inc2 = 128; + ia.inc3 = ia.inc4 = 0; + + for ( ia.row = 4; ia.row < (res ? 244 : 484) ; ia.row += ia.row_cnt ) + { + + if ( (r = mesa_read_image( port, b, &ia )) < 0 ) + { + free( rbuffer ); + return NULL; + } + b += r; + } + + for ( i = 0; i < size; i++ ) + { + *rbuffer++ = pixelTable[*b++]; + } + + return rbuffer; +} +#else +/* + * return and raw image retransmit on errors + */ +uint8_t * +mesa_get_image( GPPort *port, int image ) +{ + static struct mesa_image_info info; + static struct mesa_image_arg ia; + uint8_t *rbuffer, *b; + int r, res, retry; + unsigned long size; + + if ( image != RAM_IMAGE_NUM ) + { + if ( mesa_load_image( port, image ) < 0 ) + { + mesa_flush( port, 100 ); + return NULL; + } + + if ( mesa_read_image_info( port, image, &info ) < 0 ) + { + mesa_flush( port, 100 ); + return NULL; + } + if ( info.standard_res ) + { + res = 1; + size = 320*240; + } else { + res = 0; + size = 640*480; + } + } else { + res = 0; + size = 640*480; + } + rbuffer = (uint8_t *)malloc( size ); + if ( rbuffer == NULL ) + return NULL; + b = rbuffer; + + ia.start = 28; + ia.send = 4; + ia.skip = 0; + ia.repeat = (res ? 80 : 160); + ia.row_cnt = 40; + ia.inc1 = 1; + ia.inc2 = 128; + ia.inc3 = ia.inc4 = 0; + + for ( ia.row = 4; ia.row < (res ? 244 : 484) ; ia.row += ia.row_cnt ) + { + + for ( retry = 10;; ) + { + if ( (r = mesa_read_image( port, b, &ia )) > 0) + break; + + /* if checksum error count retries */ + if ( r == -2 && --retry > 0) + continue; /* not exceeded, try again */ + + /* error, exit */ + free( rbuffer ); + return NULL; + + } + b += r; + } + + return rbuffer; +} +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/mesalib.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/mesalib.h new file mode 100644 index 00000000..a045b577 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/dimera/mesalib.h @@ -0,0 +1,175 @@ +/* + * Copyright 2000-2001, Brian Beattie , et. al. + * + * This software was created with the help of proprietary + * information belonging to StarDot Technologies + * + * Permission to copy and use and modify this file is granted + * provided the above notices are retained, intact. + * + */ + +#ifndef MESALIB_H +#define MESALIB_H + +#include <_stdint.h> +#include + +#define CHECK(result) {int res = (result); if (res < 0) return (res);} + +/* MESA commands */ +#define NOP 0x01 /* No operation */ +#define MESA_VERSION 0x05 /* Send Version command */ +#define XMIT_TEST 0x09 /* Send test sequent */ +#define RAM_TEST 0x0d /* Test Camera RAM */ +#define SEND_RAM 0x15 /* Send Ram contents */ +#define SNAP_IMAGE 0x19 /* Snap an Image (no flash or shutter) */ +#define SND_BLACK 0x1d /* Send Black level bytes */ +#define SNAP_VIEW 0x21 /* Snap (and Send) viewfinder image */ +#define XTRA_STP_BIT 0x25 /* Stop bits (extra time between bytes */ +#define SND_VIEW 0x29 /* Send viewfinder image */ +#define SNAP_PICTURE 0x2d /* Snap a picture */ +#define SND_ID 0x35 /* Send Manufacture/year/week of manufacture */ +#define AT_COMMAND 0x41 /* Modem Detect command */ +#define SND_IMAGE 0x49 /* Send image stored in RAM */ +#define RCV_TEST 0x4d /* Echo six bytes */ +#define IMAGE_CNT 0x55 /* Send count of images */ +#define LD_IMAGE 0x59 /* Load Image from EEPROM into RAM */ +#define EEPROM_INFO 0x5d /* Send information about EEPROM */ +#define SND_THUMB 0x61 /* Send Thumbnail of image */ +#define SET_SPEED 0x69 /* Set serial link speed */ +#define FEATURES 0x6d /* Send features */ +#define SND_IMG_INFO 0x71 /* Send Image Info */ + +#define CMD_ACK 0x21 /* Command ACK */ + +#define RAM_IMAGE_NUM 0x10000 /* image number for image in RAM */ + +/* RAM Test results */ +#define RAM_GOOD 0x2a /* RAM tests good */ +#define RAM_ERROR 0x2d /* RAM error detected */ +#define EE_ERROR 0x45 /* Failure to restore EEPROM dir */ + +/* DownLoad ViewFinder */ +#define ALL_LOWRES 0xff /* Send all of a LowRES 64x48 viewfinder */ +#define EVEN_LOWRES 0xfe /* Send even rows of LowRES */ +#define ODD_LOWRES 0xfd /* Send odd rows of LowRES */ +#define NONE 0xfc /* Send nothing (for Snap Viewfinder) */ +#define ALL_HIRES 0xfb /* Send All of a HighRES 128x96 viewfinder */ +#define EVEN_HIRES 0xfa /* Send even rows of HiRES */ +#define ODD_HIRES 0xf9 /* Send odd rows of HiRES */ + +/* Feature bits */ +struct mesa_feature { + uint8_t feature_bits_lo; +#define HAVE_FLASH 0x01 /* Flash present */ +#define HAVE_RES_SW 0x02 /* Resolution switch present */ +#define FLASH_FILL 0x04 /* Flash is in Fill mode */ +#define FLASH_READY 0x08 /* Flash is charged and ready */ +#define LOW_RES 0x10 /* Switch is in low res position */ +#define DUAL_IRIS 0x20 /* Dual Iris is present */ +#define AC_PRESENT 0x40 /* AC Adapter is connected */ +#define FLASH_ON 0x80 /* Flash is on */ + uint8_t feature_bits_hi; +#define IRIS_ADJUST 0x1f +#define BAT_VALID 0x20 /* Battery level valid */ +#define NO_PWR_LIGHT 0x40 /* No power light */ +#define BAT_DIGITAL 0x80 /* Battery level is binary */ + uint8_t battery_level; /* Battery level */ + uint8_t battery_zero; /* Battery dead level */ + uint8_t battery_full; /* Battery full level */ +}; + +/* Send Image */ +struct mesa_image_arg { + uint16_t row; /* row to start sending */ + uint16_t start; /* 0x1e */ + uint8_t send; /* 0x04 */ + uint8_t skip; /* 0x00 */ + uint16_t repeat; /* 0xA0 */ + uint8_t row_cnt; /* 0x20 */ + uint8_t inc1; /* 0x01 */ + uint8_t inc2; /* 0x80 */ + uint8_t inc3; /* 0x00 */ + uint8_t inc4; /* 0x00 */ +}; + +struct mesa_id { + uint16_t man; /* 12bit manufacturer ID */ + uint16_t year; /* year of manufacture - 1996 */ + uint8_t ver; /* 4bit version */ + uint8_t week; /* week of manufacture 0 - 51 */ +}; + +#define MESA_THUMB_SZ (64*60) /* (64x60x4)/8 */ + +struct mesa_image_info { + uint32_t num_bytes; /* size of image in eeprom */ + uint8_t standard_res; /* image is standard res */ +}; + +#define MESA_VERSION_SZ 7 /* min. buffer length needed for mesa_version */ +#define MESA_EEPROM_SZ 49 /* min. buffer length needed for mesa_eeprom_info */ + +void +mesa_flush( GPPort *port, int timeout ); +int +mesa_read( GPPort *port, uint8_t *b, int s, int timeout2, int timeout1 ); +int +mesa_send_command( GPPort *port, uint8_t *cmd, int n, int ackTimeout ); +int +mesa_port_open( GPPort *port ); +int +mesa_port_close( GPPort *port ); +int +mesa_reset( GPPort *port ); +int +mesa_set_speed( GPPort *port, int speed ); +int +mesa_version( GPPort *port,char *version_string); +int +mesa_transmit_test( GPPort *port ); +int +mesa_ram_test( GPPort *port ); +int +mesa_read_row( GPPort *port, uint8_t *r, struct mesa_image_arg *s ); +int +mesa_snap_image( GPPort *port, uint16_t exposure ); +int +mesa_black_levels( GPPort *port, uint8_t r[2] ); +int +mesa_snap_view( GPPort *port, uint8_t *r, unsigned int hi_res, unsigned int zoom, + unsigned int row, unsigned int col, uint16_t exposure, + uint8_t download ); +int +mesa_set_stopbits( GPPort *port, unsigned int bits ); +int +mesa_download_view( GPPort *port, uint8_t *r, uint8_t download ); +int +mesa_snap_picture( GPPort *port, uint16_t exposure ); +int +mesa_send_id( GPPort *port, struct mesa_id *id ); +int +mesa_modem_check( GPPort *port ); +int +mesa_read_image( GPPort *port, uint8_t *r, struct mesa_image_arg *s ); +int +mesa_recv_test( GPPort *port, uint8_t r[6] ); +int +mesa_get_image_count( GPPort *port ); +int +mesa_load_image( GPPort *port, int image); +int +mesa_eeprom_info( GPPort *port, int long_read, uint8_t info[MESA_EEPROM_SZ] ); +int32_t +mesa_read_thumbnail( GPPort *port, int picture, uint8_t *image ); +int +mesa_read_features( GPPort *port, struct mesa_feature *f ); +int +mesa_battery_check( GPPort *port ); +int32_t +mesa_read_image_info( GPPort *port, int i, struct mesa_image_info *info ); +uint8_t * +mesa_get_image( GPPort *port, int image ); + +#endif /* MESALIB_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/directory/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/directory/ChangeLog new file mode 100644 index 00000000..5feec6cb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/directory/ChangeLog @@ -0,0 +1,79 @@ +2008-03-15 Marcus Meissner + + * rewritten for new GPPortInfo handling, factored + out common functionality. + +2007-10-27 Marcus Meissner + + * directory.c: Do not use gp_file_open(), but do + direct UNIX I/O, also to show stepwise and progress. + +2007-01-17 Marcus Meissner + + * directory.c: Added getting of Storage Information. + +2006-06-03 Hubert Figuiere + + * directory.c: Added more extensions as file types. + +2005-08-17 Marcus Meissner + + * directory.c: Use "Mass Storage Camera" to avoid + hardcoded client hacks for "Directory Browse". + +2005-08-14 Marcus Meissner + + * directory.c: Support GP_PORT_DISK style ports + with offset directories. + +2003-02-27 Marcus Meissner + + * directory.c: We support EXIF download. + +2003-01-29 Hubert Figuiere + + * directory.c (file_list_func): call GP_SYSTEM_CLOSEDIR() where + appropriate to not leak. + (folder_list_func): same as above. + +2002-11-20 Lutz Müller + + * directory.c: Additional debugging stuff. + +2002-11-04 Lutz Müller + + * directory.c: Don't follow links. + +2002-07-17 Lutz Müller + + * directory.c: Improve user feedback by calling gp_context_idle. + +2002-02-26 Lutz Müller + + * directory.c (delete_file_func): In case of error, tell the user + what went wrong. + +2002-02-13 Dan Fandrich + + * directory.c: Now using MIME type macros. Replaced // comment. + +2002-02-07 Lutz Müller + + * directory.c: Detect *.jpeg files, too. + +2002-02-07 Lutz Müller + + * Makefile.am: + * directory.c: Support GP_FILE_TYPE_EXIF ifdef HAVE_EXIF + +2001-12-29 Lutz Müller + + * directory.c: Even more debugging. + +2001-12-28 Lutz Müller + + * directory.c: Debugging stuff, file deletion. + +2001-11-27 Lutz Müller + + * directory.c: Support GP_FILE_TYPE_PREVIEW, too. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/directory/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/directory/Makefile-files new file mode 100644 index 00000000..15b9bdc6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/directory/Makefile-files @@ -0,0 +1,10 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += directory.la +EXTRA_DIST += directory/ChangeLog + +directory_la_SOURCES = directory/directory.c +directory_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS) $(LIBEXIF_CFLAGS) +directory_la_LDFLAGS = $(camlib_ldflags) +directory_la_DEPENDENCIES = $(camlib_dependencies) +directory_la_LIBADD = $(camlib_libadd) $(LIBEXIF_LIBS) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/directory/directory.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/directory/directory.c new file mode 100644 index 00000000..3f311d9b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/directory/directory.c @@ -0,0 +1,811 @@ +/* directory.c + * + * Copyright (c) 2001 Lutz Mueller + * Copyright (c) 2005 Marcus Meissner + * Copyright (c) 2007 Hubert Figuiere + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include +#include +#include +#ifdef HAVE_SYS_STATVFS_H +# include +#endif +#ifdef HAVE_SYS_PARAM_H +# include +#endif +#ifdef HAVE_SYS_VFS_H +# include +#endif +#ifdef HAVE_SYS_MOUNT_H +# include +#endif +#ifdef HAVE_SYS_STATFS_H +# include +#endif +#include + +/* will happen only on Win32 */ +#ifndef HAVE_LSTAT +#define lstat stat +#endif + +#ifdef HAVE_LIBEXIF +#include +#endif + +#include +#include +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +static const struct { + const char *extension; + const char *mime_type; +} mime_table[] = { + {"jpeg", GP_MIME_JPEG}, + {"jpg", GP_MIME_JPEG}, + {"thm", GP_MIME_JPEG}, + {"tif", GP_MIME_TIFF}, + {"ppm", GP_MIME_PPM}, + {"pgm", GP_MIME_PGM}, + {"avi", GP_MIME_AVI}, + {"mov", GP_MIME_QUICKTIME}, + {"moov", GP_MIME_QUICKTIME}, + {"qt", GP_MIME_QUICKTIME}, + {"qtvr", GP_MIME_QUICKTIME}, + {"mp2", GP_MIME_MPEG}, + {"mp3", GP_MIME_MPEG}, + {"mp4", GP_MIME_MPEG}, + {"mpg", GP_MIME_MPEG}, + {"mpeg", GP_MIME_MPEG}, + {"mpe", GP_MIME_MPEG}, + {"ogg", GP_MIME_OGG}, + {"mts", GP_MIME_AVCHD}, + {"m2ts", GP_MIME_AVCHD}, + {"pbm", "image/x-portable-bitmap"}, + {"crw", GP_MIME_CRW}, + {"rw2", GP_MIME_RW2}, + {"cr2", GP_MIME_RAW}, + {"nef", GP_MIME_RAW}, + {"mrw", GP_MIME_RAW}, + {"dng", GP_MIME_RAW}, + {"sr2", GP_MIME_RAW}, + {"raf", GP_MIME_RAW}, + {"erf", GP_MIME_RAW}, + {"orf", GP_MIME_RAW}, + {"arw", GP_MIME_RAW}, + {"pef", GP_MIME_RAW}, + {"raw", GP_MIME_RAW}, + {"dcr", GP_MIME_RAW}, + {"x3f", GP_MIME_RAW}, + {"srw", GP_MIME_RAW}, + {"gf1", GP_MIME_RAW}, + {"srw", GP_MIME_RAW}, + {"nrw", GP_MIME_RAW}, + {"png", GP_MIME_PNG}, + {"wav", GP_MIME_WAV}, + {"3gp", "video/3gpp"}, + {"3g2", "video/x-3gpp2"}, + {"dif", "video/dv"}, + {NULL, NULL} +}; + +/* #define DEBUG */ +/* #define FOLLOW_LINKS */ + +#define GP_MODULE "directory" + +static const char * +get_mime_type (const char *filename) +{ + + char *dot; + int x=0; + + dot = strrchr(filename, '.'); + if (dot) { + for (x = 0; mime_table[x].extension; x++) { +#ifdef OS2 + if (!stricmp(mime_table[x].extension, dot+1)) +#else + if (!strcasecmp (mime_table[x].extension, dot+1)) +#endif + return (mime_table[x].mime_type); + } + } + + return (NULL); +} + +int camera_id (CameraText *id) +{ + strcpy(id->text, "directory"); + + return (GP_OK); +} + + +int camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "Directory Browse"); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_DISK; + a.speed[0] = 0; + + a.operations = GP_OPERATION_NONE; + +#ifdef DEBUG + a.file_operations = GP_FILE_OPERATION_PREVIEW | + GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_EXIF; +#else + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_EXIF; +#endif + a.folder_operations = GP_FOLDER_OPERATION_MAKE_DIR | + GP_FOLDER_OPERATION_REMOVE_DIR | + GP_FOLDER_OPERATION_PUT_FILE; + + gp_abilities_list_append(list, a); + + /* Since "Directory Browse" is hardcoded in clients, + * better also add a new name here. + */ + strcpy(a.model, "Mass Storage Camera"); + gp_abilities_list_append(list, a); + return (GP_OK); +} + +static int +_get_mountpoint(GPPort *port, char **path) { + GPPortInfo info; + int ret; + char *p; + + ret = gp_port_get_info (port, &info); + if (ret < GP_OK) + return ret; + ret = gp_port_info_get_path (info, path); + if (ret < GP_OK) + return ret; + p = strchr (*path, ':'); + if (p) *path = p+1; + return GP_OK; +} + +static int +_get_path (GPPort *port, const char *folder, const char *file, char *path, unsigned int size) { + if (port->type == GP_PORT_DISK) { + int ret; + char *xpath; + + ret = _get_mountpoint (port, &xpath); + if (ret < GP_OK) + return ret; + snprintf (path, size, "%s/%s/%s", xpath, folder, file); + } else { + /* old style access */ + snprintf (path, size, "%s/%s", folder, file); + } + return GP_OK; +} + + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + gp_system_dir dir; + gp_system_dirent de; + char buf[1024], f[1024]; + unsigned int id, n; + int ret; + Camera *camera = (Camera*)data; + + if (camera->port->type == GP_PORT_DISK) { + char *path; + + ret = _get_mountpoint (camera->port, &path); + if (ret < GP_OK) + return ret; + snprintf (f, sizeof(f), "%s/%s/", path, folder); + /* UNIX / is empty, or we recurse through the whole fs */ + if ( (!strcmp(path, "") || !strcmp(path, "/")) && + !strcmp(folder,"/") + ) + return GP_OK; + } else { + /* old style access */ + if (folder[strlen(folder)-1] != '/') { + snprintf (f, sizeof(f), "%s%c", folder, '/'); + } else { + strncpy (f, folder, sizeof(f)); + } + } + dir = gp_system_opendir ((char*) f); + if (!dir) + return (GP_ERROR); + + /* Make sure we have 1 delimiter */ + + /* Count the files */ + n = 0; + while (gp_system_readdir (dir)) + n++; + + gp_system_closedir (dir); + dir = gp_system_opendir (f); + if (!dir) + return (GP_ERROR); + id = gp_context_progress_start (context, n, _("Listing files in " + "'%s'..."), f); + n = 0; + while ((de = gp_system_readdir(dir))) { + const char * filename = NULL; + /* Give some feedback */ + gp_context_progress_update (context, id, n + 1); + gp_context_idle (context); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + gp_system_closedir (dir); + return (GP_ERROR_CANCEL); + } + + filename = gp_system_filename(de); + if (*filename != '.') { + snprintf (buf, sizeof(buf), "%s%s", f, filename); + if (gp_system_is_file (buf) && (get_mime_type (buf))) { + gp_list_append (list, filename, NULL); + } + } + n++; + } + gp_system_closedir (dir); + gp_context_progress_stop (context, id); + + return (GP_OK); +} + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + gp_system_dir dir; + gp_system_dirent de; + char buf[1024], f[1024]; + unsigned int id, n; + struct stat st; + Camera *camera = (Camera*)data; + + if (camera->port->type == GP_PORT_DISK) { + char *path; + int ret; + + ret = _get_mountpoint (camera->port, &path); + if (ret < GP_OK) + return ret; + + snprintf (f, sizeof(f), "%s/%s/", path, folder); + /* UNIX / is empty, or we recurse through the whole fs */ + if ( (!strcmp(path, "") || !strcmp(path, "/")) && + !strcmp(folder,"/") + ) + return GP_OK; + } else { + /* old style access */ + /* Make sure we have 1 delimiter */ + if (folder[strlen(folder)-1] != '/') { + snprintf (f, sizeof(f), "%s%c", folder, '/'); + } else { + strncpy (f, folder, sizeof(f)); + } + } + dir = gp_system_opendir ((char*) f); + if (!dir) + return GP_ERROR; + /* Count the files */ + n = 0; + while (gp_system_readdir (dir)) + n++; + gp_system_closedir (dir); + + dir = gp_system_opendir (f); + if (!dir) + return GP_ERROR; + id = gp_context_progress_start (context, n, _("Listing folders in " + "'%s'..."), folder); + n = 0; + while ((de = gp_system_readdir (dir))) { + const char * filename = NULL; + + /* Give some feedback */ + gp_context_progress_update (context, id, n + 1); + gp_context_idle (context); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + gp_system_closedir (dir); + return GP_ERROR_CANCEL; + } + filename = gp_system_filename (de); + if (*filename != '.') { + snprintf (buf, sizeof(buf), "%s%s", f, filename); + + /* lstat ... do not follow symlinks */ + if (lstat (buf, &st) != 0) { + int saved_errno = errno; + gp_context_error (context, _("Could not get information " + "about '%s' (%s)."), + buf, strerror(saved_errno)); + gp_system_closedir (dir); + return GP_ERROR; + } + if (S_ISDIR (st.st_mode)) { + gp_list_append(list, filename, NULL); + } + } + n++; + } + gp_system_closedir (dir); + gp_context_progress_stop (context, id); + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo *info, void *data, GPContext *context) +{ + char path[1024]; + const char *mime_type; + struct stat st; + Camera *camera = (Camera*)data; + int result; + + result = _get_path (camera->port, folder, file, path, sizeof(path)); + if (result < GP_OK) + return result; + + if (lstat (path, &st) != 0) { + int saved_errno = errno; + gp_context_error (context, _("Could not get information " + "about '%s' in '%s' (%s)."), + file, folder, strerror(saved_errno)); + return (GP_ERROR); + } + + info->preview.fields = GP_FILE_INFO_NONE; + info->file.fields = GP_FILE_INFO_SIZE | + GP_FILE_INFO_TYPE | GP_FILE_INFO_PERMISSIONS | + GP_FILE_INFO_MTIME; + + info->file.mtime = st.st_mtime; + info->file.permissions = GP_FILE_PERM_NONE; + if (st.st_mode & S_IRUSR) + info->file.permissions |= GP_FILE_PERM_READ; + if (st.st_mode & S_IWUSR) + info->file.permissions |= GP_FILE_PERM_DELETE; + info->file.size = st.st_size; + mime_type = get_mime_type (file); + if (!mime_type) + mime_type = GP_MIME_UNKNOWN; + strcpy (info->file.type, mime_type); + return (GP_OK); +} + +static int +set_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo info, void *data, GPContext *context) +{ + int retval; + char path[1024]; + Camera *camera = (Camera*)data; + + retval = _get_path (camera->port, folder, file, path, sizeof(path)); + if (retval < GP_OK) + return retval; + + /* We don't support updating permissions (yet) */ + if (info.file.fields & GP_FILE_INFO_PERMISSIONS) + return (GP_ERROR_NOT_SUPPORTED); + + if (info.file.fields & GP_FILE_INFO_MTIME) { + struct utimbuf utimbuf; + + utimbuf.actime = info.file.mtime; + utimbuf.modtime = info.file.mtime; + if (utime (path, &utimbuf) != 0) { + int saved_errno = errno; + gp_context_error (context, _("Could not change " + "time of file '%s' in '%s' (%s)."), + file, folder, strerror(saved_errno)); + return (GP_ERROR); + } + } + +#if 0 /* implement this using new api -Marcus */ + if (info.file.fields & GP_FILE_INFO_NAME) { + if (!strcasecmp (info.file.name, file)) + return (GP_OK); + + /* We really have to rename the poor file... */ + if (strlen (folder) == 1) { + snprintf (path_old, sizeof (path_old), "/%s", + file); + snprintf (path_new, sizeof (path_new), "/%s", + info.file.name); + } else { + snprintf (path_old, sizeof (path_old), "%s/%s", + folder, file); + snprintf (path_new, sizeof (path_new), "%s/%s", + folder, info.file.name); + } + retval = rename (path_old, path_new); + if (retval != 0) { + switch (errno) { + case EISDIR: + return (GP_ERROR_DIRECTORY_EXISTS); + case EEXIST: + return (GP_ERROR_FILE_EXISTS); + case EINVAL: + return (GP_ERROR_BAD_PARAMETERS); + case EIO: + return (GP_ERROR_IO); + case ENOMEM: + return (GP_ERROR_NO_MEMORY); + case ENOENT: + return (GP_ERROR_FILE_NOT_FOUND); + default: + return (GP_ERROR); + } + } + } +#endif + + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + char path[1024]; + int result = GP_OK; + struct stat stbuf; + int fd, id; + off_t curread, toread; + unsigned char *buf; +#ifdef HAVE_LIBEXIF + ExifData *data; + unsigned int buf_len; +#endif /* HAVE_LIBEXIF */ + Camera *camera = (Camera*)user_data; + + result = _get_path (camera->port, folder, filename, path, sizeof(path)); + if (result < GP_OK) + return result; + + if (-1 == lstat(path,&stbuf)) + return GP_ERROR_IO_READ; + + gp_file_set_mtime (file, stbuf.st_mtime); + + switch (type) { + case GP_FILE_TYPE_NORMAL: +#ifdef DEBUG + case GP_FILE_TYPE_PREVIEW: +#endif + fd = open (path,O_RDONLY); + if (fd == -1) + return GP_ERROR_IO_READ; + break; +#ifdef HAVE_LIBEXIF + case GP_FILE_TYPE_EXIF: + data = exif_data_new_from_file (path); + if (!data) { + gp_context_error (context, _("Could not open '%s'."), + path); + return (GP_ERROR); + } + exif_data_save_data (data, &buf, &buf_len); + exif_data_unref (data); + gp_file_set_data_and_size (file, (char *)buf, buf_len); + return (GP_OK); +#endif /* HAVE_LIBEXIF */ + default: + return (GP_ERROR_NOT_SUPPORTED); + } +#define BLOCKSIZE 65536 + /* do it in 64kb blocks */ + buf = malloc(BLOCKSIZE); + if (!buf) { + close (fd); + return GP_ERROR_NO_MEMORY; + } + if (-1 == fstat(fd,&stbuf)) { + free (buf); + close (fd); + return GP_ERROR_IO_READ; + } + + curread = 0; + id = gp_context_progress_start (context, (1.0*stbuf.st_size/BLOCKSIZE), _("Getting file...")); + GP_DEBUG ("Progress id: %i", id); + result = GP_OK; + while (curread < stbuf.st_size) { + int ret; + + toread = stbuf.st_size-curread; + if (toread>BLOCKSIZE) toread = BLOCKSIZE; + ret = read(fd,buf,toread); + if (ret == -1) { + result = GP_ERROR_IO_READ; + break; + } + curread += ret; + gp_file_append (file, (char *)buf, ret); + gp_context_progress_update (context, id, (1.0*curread/BLOCKSIZE)); + gp_context_idle (context); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + result = GP_ERROR_CANCEL; + break; + } +#if 0 + /* We could take 2 seconds to download this image. everytime. */ + /* But actually this driver is used in production by some frontends, + * so do not delay at all + */ + usleep(2000000/(stbuf.st_size/BLOCKSIZE)); +#endif + } + gp_context_progress_stop (context, id); + free (buf); + close (fd); + return (GP_OK); +} + +static int +camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy (manual->text, _("The Directory Browse \"camera\" lets " + "you index photos on your hard drive.")); + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Directory Browse Mode - written " + "by Scott Fritzinger .")); + + return (GP_OK); +} + +static int +make_dir_func (CameraFilesystem *fs, const char *folder, const char *name, + void *data, GPContext *context) +{ + char path[2048]; + Camera *camera = (Camera*)data; + int result; + + result = _get_path (camera->port, folder, name, path, sizeof(path)); + if (result < GP_OK) + return result; + return gp_system_mkdir (path); +} + +static int +remove_dir_func (CameraFilesystem *fs, const char *folder, const char *name, + void *data, GPContext *context) +{ + char path[2048]; + Camera *camera = (Camera*)data; + int result; + + result = _get_path (camera->port, folder, name, path, sizeof(path)); + if (result < GP_OK) + return result; + return gp_system_rmdir (path); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *file, void *data, GPContext *context) +{ + char path[2048]; + int result; + Camera *camera = (Camera*)data; + + result = _get_path (camera->port, folder, file, path, sizeof(path)); + if (result < GP_OK) + return result; + result = unlink (path); + if (result) { + int saved_errno = errno; + gp_context_error (context, _("Could not delete file '%s' " + "in folder '%s' (error code %i: %s)."), + file, folder, result, strerror(saved_errno)); + return (GP_ERROR); + } + + return (GP_OK); +} + +static int +put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *data, GPContext *context) +{ + char path[2048]; + int result; +#ifdef DEBUG + unsigned int i, id; +#endif + Camera *camera = (Camera*)data; + + result = _get_path (camera->port, folder, name, path, sizeof(path)); + if (result < GP_OK) + return result; + + result = gp_file_save (file, path); + if (result < 0) + return (result); + +#ifdef DEBUG + id = gp_context_progress_start (context, 500., "Uploading file..."); + for (i = 0; i < 500; i++) { + gp_context_progress_update (context, id, i + 1); + gp_context_idle (context); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (result); + usleep (10); + } + gp_context_progress_stop (context, id); +#endif + + return (GP_OK); +} + +#ifdef DEBUG +static int +camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + int r; + + r = gp_file_open (file, "/usr/share/pixmaps/gnome-logo-large.png"); + if (r < 0) + return (r); + + return (GP_OK); +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + if (path) { + strcpy (path->folder, "/usr/share/pixmaps"); + strcpy (path->name, "gnome-logo-large.png"); + } + + return (GP_OK); +} +#endif + +static int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **sinfos, + int *nrofsinfos, + void *data, GPContext *context +) { + Camera *camera = data; + CameraStorageInformation *sfs; + +#if defined(linux) && defined(HAVE_STATFS) + struct statfs stfs; + char *xpath; + int ret; + + ret = _get_mountpoint (camera->port, &xpath); + if (ret < GP_OK) + return ret; + if (-1 == statfs (xpath, &stfs)) + return GP_ERROR_NOT_SUPPORTED; + + sfs = malloc (sizeof (CameraStorageInformation)); + if (!sfs) + return GP_ERROR_NO_MEMORY; + *sinfos = sfs; + *nrofsinfos = 1; + + sfs->fields = GP_STORAGEINFO_BASE | + GP_STORAGEINFO_DESCRIPTION | + GP_STORAGEINFO_STORAGETYPE | + GP_STORAGEINFO_FILESYSTEMTYPE | + GP_STORAGEINFO_ACCESS | + GP_STORAGEINFO_MAXCAPACITY | + GP_STORAGEINFO_FREESPACEKBYTES; + ; + strcpy (sfs->basedir, "/"); + strcpy (sfs->description, "Directory Driver"); + sfs->type = GP_STORAGEINFO_ST_REMOVABLE_RAM; + sfs->fstype = GP_STORAGEINFO_FST_GENERICHIERARCHICAL; + sfs->access = GP_STORAGEINFO_AC_READWRITE; + if (stfs.f_bsize >= 1024) { + sfs->capacitykbytes = stfs.f_blocks*(stfs.f_bsize/1024); + sfs->freekbytes = stfs.f_bavail*(stfs.f_bsize/1024); + } else { + sfs->capacitykbytes = stfs.f_blocks/(1024/stfs.f_bsize); + sfs->freekbytes = stfs.f_bavail/(1024/stfs.f_bsize); + } + return GP_OK; +#endif + + return GP_ERROR_NOT_SUPPORTED; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .set_info_func = set_info_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .put_file_func = put_file_func, + .del_file_func = delete_file_func, + .make_dir_func = make_dir_func, + .remove_dir_func = remove_dir_func, + .storage_info_func = storage_info_func, +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + /* First, set up all the function pointers */ + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/ChangeLog new file mode 100644 index 00000000..b935ce91 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/ChangeLog @@ -0,0 +1,11 @@ +2004-12-22 Hubert Figuiere + + * enigma13.c (enigma13_detect_storage_type): Comment out dead code. + (enigma13_get_filecount): Comment out dead code. + +2004-10-28 Hubert Figuiere + + * enigma13.c (enigma13_flash_delete_all): Fix build for gcc 2.9 + (bug #1055868) + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/Makefile-files new file mode 100644 index 00000000..015d33ac --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/Makefile-files @@ -0,0 +1,12 @@ +# -*- Makefile -*- + +EXTRA_DIST += enigma13/STATUS enigma13/protocol.txt enigma13/README.enigma13 enigma13/ChangeLog +camlibdoc_DATA += enigma13/README.enigma13 + +EXTRA_LTLIBRARIES += enigma13.la + +enigma13_la_SOURCES = enigma13/enigma13.c +enigma13_la_LDFLAGS = $(camlib_ldflags) +enigma13_la_DEPENDENCIES = $(camlib_dependencies) +enigma13_la_LIBADD = $(camlib_libadd) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/README.enigma13 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/README.enigma13 new file mode 100644 index 00000000..aa0af7af --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/README.enigma13 @@ -0,0 +1,25 @@ +Olivier Fauchon + + +Digital Dream Enigma 1.3 Driver +------------------------------- + + + + +Compatible hardware +------------------- + +- Digital Dream Enigma 1.3 + + + + + + +Thanks +------ + +- spca50x & blink2 developpers for their code. It inspired me a lot. +- Benoit Papillault for snoopy +- Irc & mailing list people. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/STATUS b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/STATUS new file mode 100644 index 00000000..442a42ea --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/STATUS @@ -0,0 +1,21 @@ +Todo +---- + + - Download thrumbnails images + - Delete last image / all images + - Get image informations ( Size in pixel) + - Clean the code + - Find all over commands (if there are) + + + +Already working +--------------- + + - Get camera directory (TOC) + - Get camera storage capabilities + - Get image size (in bytes) + - Download an image from Flash and Cards + + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/enigma13.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/enigma13.c new file mode 100644 index 00000000..7dbf7b6d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/enigma13.c @@ -0,0 +1,426 @@ +/* blink2.c + * + * Copyright 2004 Olivier Fauchon + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + */ + +#include "config.h" + +#include +#include +#include + +#include +#include +#include +#include "gphoto2-endian.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define ENIGMA13_BLK_FLASH_ALIGN 0x2000 +#define ENIGMA13_BLK_CARD_ALIGN 0x4000 +#define ENIGMA13_USB_TIMEOUT_MS 5000 +#define ENIGMA13_WAIT_FOR_READY_TIMEOUT_S 5 +#define ENIGMA13_WAIT_TOC_DELAY_MS 500 +#define ENIGMA13_WAIT_IMAGE_READY_MS 300 +#define GP_MODULE "enigma13" + + +#define CHECK(result) {int res; res = result; if (res < 0) return (res);} +#define CHECK_AND_FREE(result, buf) {int res; res = result; if (res < 0) { free(buf); return (res); }} + + +/* the table of content of the camera + it's filled in enigma_get_toc, and used in enigma_download_img */ +static char* enigma13_static_toc=NULL; + + + + +static int enigma13_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Download program for Digital Dream Enigma 1.3. " + "by , and adapted from spca50x driver. " + "Thank you, spca50x team, it was easy to port your driver on this cam! ")); + return (GP_OK); +} + + +#if 0 +/* + * This function probes the camera to get all the storages media + * supported (sdram, flash, card) + * + * Status: Working but not used + */ +static int enigma13_detect_storage_type (Camera *camera) +{ + int i; + char buf[3]; + + for (i=0;i<3;i++) + { + CHECK (gp_port_usb_msg_read (camera->port, 0x28, 0x0000, + i, &buf[i], 0x01)); + } + gp_log(GP_LOG_DEBUG, "enigma13","Camera storage information sdram: 0x%x flash 0x%x card: 0x%x\n" + , buf[0], buf[1], buf[2]); + return GP_OK; +} +#endif + + + + + +/* + * This function deletes all the images + * supported (sdram, flash, card) + * + * Status: not verified + */ +static int +enigma13_flash_delete_all(CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *cam; + gp_log(GP_LOG_DEBUG, "enigma13","Delete all files"); + cam = data; + CHECK (gp_port_usb_msg_write (cam->port, 0x52, 0x0, 0x0, NULL, 0x0) ); + return GP_OK; +} + + + + +/* + * This function waits camera is ready + * + * Status: Not sure what it realy does, but the camera replies + * Can this be some kind of ping for keepalive, or realy a ready status ? + */ +static int enigma13_wait_for_ready(Camera *camera) +{ + int timeout = ENIGMA13_WAIT_FOR_READY_TIMEOUT_S; + char ready = 1; + while (timeout--) { + sleep(1); + CHECK (gp_port_usb_msg_read (camera->port, + 0x21, 0x0000, 0x0000, + (char*)&ready, 0x01)); + if (ready==0) + return GP_OK; + } + return GP_ERROR; +} + + + +#if 0 +/* + * Get the number of images in cam + * + * Status: Should work, but not used as enigma13_get_TOC does all. + * + */ +static int enigma13_get_filecount (Camera *camera, int *filecount) +{ + uint16_t response = 0; + CHECK(enigma13_wait_for_ready(camera)); + CHECK (gp_port_usb_msg_read (camera->port, + 0x54, 0x0000, 0x0000, + (char*)&response, 0x02)); + LE16TOH (response); + *filecount = response; + return GP_OK; +} +#endif + + + + +/* + * Get the table of contents (directory) from the cam + * + * Verified: Yes + */ +static int enigma13_get_toc(Camera *camera, int *filecount, char** toc) +{ + char* flash_toc=NULL; + int toc_size = 0; + char buf[10]; + uint16_t response = 0; + int ret=1; + + CHECK(enigma13_wait_for_ready(camera)); + CHECK (gp_port_usb_msg_read (camera->port, + 0x54, 0x0000, 0x0000, + (char*)&response, 0x02)); + LE16TOH (response); + *filecount = response; + + /* Calc toc size */ + toc_size = (response) * 0x20; + + if (toc_size % 0x200 != 0) + toc_size = ((toc_size / 0x200) + 1) * 0x200; + + CHECK(enigma13_wait_for_ready(camera)); + + CHECK (gp_port_usb_msg_write (camera->port, 0x54, + response, 0x0001, + NULL, 0x0000)); + /* Wait until cam is ready to send the T.O.C */ + usleep(ENIGMA13_WAIT_TOC_DELAY_MS * 1000); + + CHECK (gp_port_usb_msg_read (camera->port, 0x21, + 0x0000, 0x0000, + buf, 0x01)); + if (buf[0]!=0x41) return GP_ERROR; + + CHECK (gp_port_usb_msg_read (camera->port, 0x21, + 0x0000, 0x0002, + buf, 0x01)); + if (buf[0]!=0x01) return GP_ERROR; + + + flash_toc = (char*)malloc(toc_size); + if (!flash_toc) + return GP_ERROR_NO_MEMORY; + + ret=gp_port_read (camera->port, flash_toc, toc_size); + *toc= flash_toc; + gp_log(GP_LOG_DEBUG, "enigma13","Byte transferred :%d ", ret); + return ret; + +} + + +/* + * Function that downloads image + * + * Camera camera : camera structure + * int index : image index ( in gphoto point of view) -1 for real index + * char* toc : pointer to toc + * char** img_buf : returned image data + * int* img_size : returned image data size + * + */ +static int enigma13_download_img(Camera *camera, char *toc, int index, char **img_data, int *img_size) +{ + uint8_t *p; + uint32_t file_size = 0, aligned_size = 0; + char* buf=NULL; + int align=0; + char retbuf[2]; + + gp_log(GP_LOG_DEBUG, "enigma13","DOWNLOADING IMAGE NO %d",index); + + /* Offset for image informations . + Each image has 16 bytes for name and 16 for size, and others*/ + p = (uint8_t *)toc + (index*2)*32; + + /* real size from toc*/ + aligned_size = file_size = + (p[0x1c] & 0xff) + + (p[0x1d] & 0xff) * 0x100 + + (p[0x1e] & 0xff) * 0x10000; + + CHECK (gp_port_usb_msg_read (camera->port, 0x23, + 0x0000, 0x64, + retbuf, 0x01)); + if (retbuf[0]==0x20){ + align=ENIGMA13_BLK_CARD_ALIGN; + gp_log(GP_LOG_DEBUG, "enigma13"," Image from card, alignment is set to %d bytes ",align); + } else if (retbuf[0]==0x10){ + align=ENIGMA13_BLK_FLASH_ALIGN; + gp_log(GP_LOG_DEBUG, "enigma13"," Image from flash, alignment is set to %d bytes",align); + } else { + return GP_ERROR; + } + + if (file_size % align != 0) + aligned_size = ((file_size / align) + 1) * align; + + buf = (char*) malloc (aligned_size); + if (!buf) + return GP_ERROR_NO_MEMORY; + + CHECK_AND_FREE (gp_port_usb_msg_write (camera->port, + 0x54, index+1, 2, NULL, 0x00), buf); + usleep(ENIGMA13_WAIT_IMAGE_READY_MS * 1000); + + CHECK_AND_FREE (gp_port_usb_msg_read (camera->port, 0x21, + 0x0000, 0x0000, + buf, 0x01), buf); + if (buf[0]!=0x41) { + free (buf); + return GP_ERROR; + } + + CHECK_AND_FREE (gp_port_usb_msg_read (camera->port, 0x21, + 0x0000, 0x0002, + buf, 0x01), buf); + if (buf[0]!=0x01) { + free (buf); + return GP_ERROR; + } + + CHECK_AND_FREE (gp_port_usb_msg_read (camera->port, 0x21, + 0x0000, 0x0002, + buf, 0x01), buf); + if (buf[0]!=0x01) { + free (buf); + return GP_ERROR; + } + gp_log(GP_LOG_DEBUG, "enigma13","READY FOR TRANSFER"); + CHECK_AND_FREE (gp_port_read (camera->port, buf, aligned_size), buf); + *img_data=buf; + *img_size=file_size; + return GP_OK; +} + + +/* + * GPHOTO list files + */ + +static int file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i, numpics; + char tmp[20]; + + CHECK(enigma13_get_toc(camera,&numpics,&enigma13_static_toc)); + + for ( i=0; i < numpics; i=i+2 ) { + sprintf(tmp,"sunp%04d.jpg",(i/2)); + gp_list_append( list, tmp, NULL); + } + return (GP_OK); +} + + + +/* + * File operations + */ +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + + + Camera *camera = data; + int image_no, result; + + char* img_data=NULL; + int img_size=-1; + + image_no = gp_filesystem_number(fs, folder, filename, context); + gp_log(GP_LOG_DEBUG, "enigma13","Index of image %d is %s",image_no, filename); + switch (type) { + case GP_FILE_TYPE_NORMAL: + { + gp_log(GP_LOG_DEBUG, "enigma13","Downloading raw image"); + + CHECK(enigma13_download_img(camera, enigma13_static_toc, image_no, &img_data, &img_size)); + result = gp_file_append( file, img_data, img_size); + + break; + } + default: + result = GP_ERROR_NOT_SUPPORTED; + break; + } + if (result < 0) + return result; + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "DigitalDream:Enigma1.3"); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = 0x05da; + a.usb_product = 0x1018; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + gp_abilities_list_append(list, a); + return (GP_OK); +} + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "Digital Dream Enigma 1.3"); + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .delete_all_func = enigma13_flash_delete_all +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + + camera->functions->about = enigma13_about; + + CHECK(gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera)); + CHECK(gp_port_get_settings( camera->port, &settings)); + settings.usb.inep = 0x82; + settings.usb.outep = 0x03; + settings.usb.config = 1; + settings.usb.interface = 0; + settings.usb.altsetting = 0; + CHECK(gp_port_set_timeout (camera->port, ENIGMA13_USB_TIMEOUT_MS)); + CHECK(gp_port_set_settings( camera->port, settings)); + return GP_OK; + + +} + + + + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/protocol.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/protocol.txt new file mode 100644 index 00000000..d7af11cc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/enigma13/protocol.txt @@ -0,0 +1,117 @@ +# Olivier Fauchon +# +# Digital Dream Enigma 1.3 protocol +# +# 30/07/04 + + +Camera storage medias +--------------------- + + +Query: c1 28 00 00 01 00 01 00 + | + +----------> 01 : Flash Ram 0x02: SmartMedia Card + +Answer: 0x01 -> storage type present, 0x00h -> No storage of this type + + + +Get number of pictures +---------------------- + +Query: 04 00 +Answer: c1 54 00 00 00 00 02 00 + +NB: The camera returns a number of photo x 2, because for each picture you +take, the camera holds both the picture and its thrumbnail. +On the example above, i took only 2 snapshots. + + +Download the Table of Contents (or file directory) +-------------------------------------------------- + +This camera provides you a directory containing the name of the picture, +the size of the picture (maybe the size, i 'll have a look) + +Each entry (so each photo) is composed of 16 bytes for its name, and 16 bytes for + + +41 54 08 00 01 00 00 00 (USB_WRITE COMMAND TO REQUEST THE TOC) + +<- 41 +-> c1 21 00 00 00 00 01 00 (SETUP PACKET READ. don't know what for) + +<- 01 +->c1 21 00 00 02 00 01 00a (SETUP PACKET READ. don't know what for) + + + +Then you can read (32* number_of_images) + + 00000000: 53 55 4e 50 30 30 30 31 4a 50 47 20 00 00 00 00 + 00000010: 00 00 c3 0b 00 00 7d 1a c3 0b 04 00 8e 75 03 00 + 00000020: 53 55 4e 50 30 30 30 31 54 48 4d 20 00 00 00 00 + 00000030: 00 00 c3 0b 00 00 7d 1a c3 0b 20 00 00 a0 00 00 + 00000040: 53 55 4e 50 30 30 30 32 4a 50 47 20 00 00 00 00 + 00000050: 00 00 c3 0b 00 00 7d 1a c3 0b 25 00 c5 85 03 00 + 00000060: 53 55 4e 50 30 30 30 32 54 48 4d 20 00 00 00 00 + 00000070: 00 00 c3 0b 00 00 7d 1a c3 0b 42 00 00 a0 00 00 + 00000080: 53 55 4e 50 30 30 30 33 4a 50 47 20 00 00 00 00 + 00000090: 00 00 c3 0b 00 00 7d 1a c3 0b 47 00 03 d9 00 00 + 000000a0: 53 55 4e 50 30 30 30 33 54 48 4d 20 00 00 00 00 + 000000b0: 00 00 c3 0b 00 00 7d 1a c3 0b 4e 00 80 25 00 00 + 000000c0: 53 55 4e 50 30 30 30 34 4a 50 47 20 00 00 00 00 + 000000d0: 00 00 c3 0b 00 00 7d 1a c3 0b 50 00 22 3c 03 00 + 000000e0: 53 55 4e 50 30 30 30 34 54 48 4d 20 00 00 00 00 + 000000f0: 00 00 c3 0b 00 00 7d 1a c3 0b 6a 00 00 a0 00 00 + +Toc entry description: + +This is the 1st picture : + + 00000000: 53 55 4e 50 30 30 30 31 4a 50 47 20 00 00 00 00 + 00000010: 00 00 c3 0b 00 00 7d 1a c3 0b 04 00 8e 75 03 00 + +the name is SUNP0001JPG ( 53 55 4e 50 30 30 30 31 4a 50 47 20 ) in ASCII +the size is 0x03<<10000 + 0x75<<100 + 08e =0x03758e == 226702 bytes + + + +Download image +-------------- + + +USB_WRITE :41 54 01 00 03 00 00 00 + | | + | +----------------> 0x03 for thrumbnail, 0x02 for the real photo + +----------------------> Image number (01 is the first, NO zero index) + +HERE, YOU CAN SLEEP 300 MILISECOND + + +There follows 3 packets with the cam (don't know what they are used for) but i play them. +<- 41 +-> c1 21 00 00 00 00 01 00 + +<- 01 +-> c1 21 00 00 02 00 01 00 + +<- 01 +-> c1 21 00 00 02 00 01 00 + +AH, it's TIME to download + +Size to read is the size you extracted from the table of content .... BUT, you need to align +this size to the media block size : + + +SIZE_TO_READ_ = (REAL_SIZE_FROM_TOC / ALIGNEMENT) * ALIGNEMENT + + +- If the image is on FLASH, alignement is 0x2000 +- If the image is on SmartMedia card, alignment is 0x4000 + + + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/ChangeLog new file mode 100644 index 00000000..041cb91d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/ChangeLog @@ -0,0 +1,100 @@ +2002-04-22 Lutz Müller + + * library.c (post_func): Only put the camera back to 9600 bps if + this is needed. And don't reset the camera before the speed change. + +2002-04-21 Matt Martin + + * library.c In post_func: Bring serial port speed back down + immediately after resetting the camera (kills the high speed at + least on the DS7). Note that this doesn't seem to be a problem + immediately following the speed change command. Needs to be tested + on all cams in light of Lutz's earlier comment that the speed + isn't getting reset ! + +2002-04-21 Matt Martin + + * fuji.c Remove 0xff escaping code now done by libgphoto2_port + +2002-04-21 Lutz Müller + + * fuji.c: Formatting. + +2002-04-21 Lutz Müller + + * library.c: + * fuji.[c,h]: Implement upload and summary. + +2002-04-21 Lutz Müller + + * library.c: A fuji_reset doesn't seem to reset the speed to 9600. + +2002-04-21 Matt Martin + + * fuji.c: Fixed some pointer errors in CFR macro calls. Added + escaping of 0xff codes in downloads. Made provisions for DS-7 + which does not support file-length query. + # fuji.h: Fixed FUJI_CMD_PIC_GET vs PIC_GET_THUMB swap. + +2002-04-19 Lutz Müller + + * library.c: Don't make the check for supported commands fatal. + +2002-04-19 Lutz Müller + + * library.c: If we tell the camera to switch to another speed, we + need to change the port's speed, too. + +2002-04-18 Lutz Müller + + * library.c + * fuji.[c,h]: Basic configuration support. Progress information. + +2002-04-18 Lutz Müller + + * PROTOCOL: Some notes. + * fuji.c: Fix calculation of packet length. + +2002-04-18 Lutz Müller + + * library.c: + * fuji.[c,h]: Use the [pre,post]_func-tions. + +2002-04-18 Lutz Müller + + * library.c: + * fuji.[c,h]: Check for supported commands. + +2002-04-18 Lutz Müller + + * fuji.c: Fix calculation of checksum. + +2002-04-18 Lutz Müller + + * fuji.c: For now, don't check the checksum. + +2002-04-18 Lutz Müller + + * fuji.c: Fix calculation of packet length. + +2002-04-18 Lutz Müller + + * library.c: + * fuji.[c,h]: Implement fetching of previews. + +2002-04-17 Lutz Müller + + * fuji.c: Fix logic. + +2002-04-17 Lutz Müller + + * fuji.[c,h]: + * library.c: More functions. Needs testing. + +2002-04-16 Lutz Müller + + * library.c: New. + * fuji.[c,h]: Rewrite. + * exif.[c,h]: + * fuji_exif.c: Removed. + * Makefile.am: Updated. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/Makefile-files new file mode 100644 index 00000000..60071450 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/Makefile-files @@ -0,0 +1,10 @@ +# -*- Makefile -*- + +EXTRA_DIST += fuji/PROTOCOL fuji/ChangeLog + +EXTRA_LTLIBRARIES += fuji.la + +fuji_la_SOURCES = fuji/library.c fuji/fuji.c fuji/fuji.h +fuji_la_LDFLAGS = $(camlib_ldflags) +fuji_la_DEPENDENCIES = $(camlib_dependencies) +fuji_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/PROTOCOL b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/PROTOCOL new file mode 100644 index 00000000..ef9d78ef --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/PROTOCOL @@ -0,0 +1,18 @@ + +These are just some quick notes. + +fuji_get_cmds: +-------------- +ESC STX +00 4d 1b 00 +00 02 07 09 0a 0b 0c 0e 0f 11 13 17 19 1b 29 4c 51 80 82 84 86 c0 20 22 2a 2b 2e +ESC ETX +9b + +fuji_pic_count: +--------------- +ESC STX +00 06 02 00 +02 00 +ESC ETX +05 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/fuji.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/fuji.c new file mode 100644 index 00000000..21dc7cf6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/fuji.c @@ -0,0 +1,1038 @@ +/* fuji.c: + * + * Fuji Camera library for the gphoto project. + * + * © 2001 Matthew G. Martin + * 2002 Lutz Mueller + * + * This routine works for Fuji DS-7 and DX-5,7,10 and + * MX-500,600,700,1200,1700,2700,2900, Apple QuickTake 200, + * Samsung Kenox SSC-350N,Leica Digilux Zoom cameras and possibly others. + * + * Preview and take_picture fixes and preview conversion integrated + * by Michael Smith . + * + * This driver was reworked from the "fujiplay" package: + * * A program to control Fujifilm digital cameras, like + * * the DS-7 and MX-700, and their clones. + * * Written by Thierry Bousch + * * and released in the public domain. + * + * Portions of this code were adapted from + * GDS7 v0.1 interactive digital image transfer software for DS-7 camera + * Copyright 1998 Matthew G. Martin + + * Some of which was derived from get_ds7 , a Perl Language library + * Copyright 1997 Mamoru Ohno + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" +#include "fuji.h" + +#include +#include +#include + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#ifndef MIN +#define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#endif + +#ifndef MAX +#define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#endif + +#define GP_MODULE "fuji" + +#define CR(result) {int __r = (result); if (__r < 0) return (__r);} +#define CRF(result,d) {int __r = (result); if (__r < 0) {free (d); return (__r);}} +#define CLEN(buf_len,required) \ +{ \ + if (buf_len < required) { \ + gp_context_error (context, _("The camera sent " \ + "only %i byte(s), but we need at " \ + "least %i."), buf_len, required); \ + return (GP_ERROR); \ + } \ +} + + +#define STX 0x02 /* Start of data */ +#define ETX 0x03 /* End of data */ +#define EOT 0x04 /* End of session */ +#define ENQ 0x05 /* Enquiry */ +#define ACK 0x06 +#define ESC 0x10 +#define ETB 0x17 /* End of transmission block */ +#define NAK 0x15 + +#define FUJI_ACK 0x00 +#define FUJI_NAK 0x01 + +static int fuji_reset (Camera *camera, GPContext *context); + +int +fuji_ping (Camera *camera, GPContext *context) +{ + unsigned char b; + unsigned int i; + int r; + + GP_DEBUG ("Pinging camera..."); + + /* Drain input */ + while (gp_port_read (camera->port, (char *)&b, 1) >= 0); + + i = 0; + while (1) { + b = ENQ; + CR (gp_port_write (camera->port, (char *)&b, 1)); + r = gp_port_read (camera->port, (char *)&b, 1); + if ((r >= 0) && (b == ACK)) + return (GP_OK); + i++; + if (i >= 3) { + gp_context_error (context, _("Could not contact " + "camera.")); + return (GP_ERROR); + } + } +} + +static int +fuji_send (Camera *camera, unsigned char *cmd, unsigned int cmd_len, + unsigned char last, GPContext *context) +{ + unsigned char b[1024], check; + unsigned int i; + + /* Send header */ + b[0] = ESC; + b[1] = STX; + CR (gp_port_write (camera->port, (char *)b, 2)); + + /* + * Escape the data we are going to send. + * Calculate the checksum. + */ + check = (last ? ETX : ETB); + memcpy (b, cmd, cmd_len); + for (i = 0; i < cmd_len; i++) { + check ^= b[i]; + if (b[i] == ESC) { + memmove (b + i + 1, b + i, cmd_len - i); + b[i] = ESC; + i++; + cmd_len++; + } + } + + /* Send data */ + CR (gp_port_write (camera->port, (char *)b, cmd_len)); + + /* Send footer */ + b[0] = ESC; + b[1] = (last ? ETX : ETB); + b[2] = check; + CR (gp_port_write (camera->port, (char *)b, 3)); + + return (GP_OK); +} + +static int +fuji_recv (Camera *camera, unsigned char *buf, unsigned int *buf_len, + unsigned char *last, GPContext *context) +{ + unsigned char b[1024], check = 0; + int i; + + /* + * Read the header. The checksum covers all bytes between + * ESC STX and ESC ET[X,B]. + */ + CR (gp_port_read (camera->port, (char *)b, 6)); + + /* Verify the header */ + if ((b[0] != ESC) || (b[1] != STX)) { + gp_context_error (context, _("Received unexpected data " + "(0x%02x, 0x%02x)."), b[0], b[1]); + return (GP_ERROR_CORRUPTED_DATA); + } + + /* + * We don't know the meaning of b[2] and b[3]. + * We have seen 0x00 0x4d and 0x00 0x06. + */ + check ^= b[2]; + check ^= b[3]; + + /* Determine the length of the packet. */ + *buf_len = ((b[5] << 8) | b[4]); + check ^= b[4]; + check ^= b[5]; + GP_DEBUG ("We are expecting %i byte(s) data (excluding ESC quotes). " + "Let's read them...", *buf_len); + + /* Read the data. Unescape it. Calculate the checksum. */ + for (i = 0; i < *buf_len; i++) { + CR (gp_port_read (camera->port, (char *)buf + i, 1)); + if (buf[i] == ESC) { + CR (gp_port_read (camera->port, (char *)buf + i, 1)); + if (buf[i] != ESC) { + gp_context_error (context, + _("Wrong escape sequence: " + "expected 0x%02x, got 0x%02x."), + ESC, buf[i]); + + /* Dump the remaining data */ + while (gp_port_read (camera->port, (char *)b, 1) >= 0); + + return (GP_ERROR_CORRUPTED_DATA); + } + } + check ^= buf[i]; + } + + /* Read the footer */ + CR (gp_port_read (camera->port, (char *)b, 3)); + if (b[0] != ESC) { + gp_context_error (context, + _("Bad data - got 0x%02x, expected 0x%02x."), + b[0], ESC); + return (GP_ERROR_CORRUPTED_DATA); + } + switch (b[1]) { + case ETX: + *last = 1; + break; + case ETB: + *last = 0; + break; + default: + gp_context_error (context, + _("Bad data - got 0x%02x, expected 0x%02x or " + "0x%02x."), b[1], ETX, ETB); + return (GP_ERROR_CORRUPTED_DATA); + } + check ^= b[1]; + if (check != b[2]) { + gp_context_error (context, + _("Bad checksum - got 0x%02x, expected 0x%02x."), + b[2], check); + return (GP_ERROR_CORRUPTED_DATA); + } + + return (GP_OK); +} + +static int +fuji_transmit (Camera *camera, unsigned char *cmd, unsigned int cmd_len, + unsigned char *buf, unsigned int *buf_len, GPContext *context) +{ + unsigned char last = 0, c, p; + unsigned int b_len = 1024; + int r, retries = 0, id = 0; + + /* + * Send the command. If we fail the first time, we only try once more. + * After the third time, the camera would reset itself automatically. + */ + retries = 0; + while (1) { + + /* Give the user the possibility to cancel. */ + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + + CR (fuji_send (camera, cmd, cmd_len, 1, context)); + + /* Receive ACK (hopefully) */ + CR (gp_port_read (camera->port, (char *)&c, 1)); + switch (c) { + case ACK: + break; + case NAK: + + /* Camera didn't like the command */ + if (++retries > 1) { + gp_context_error (context, _("Camera rejected " + "the command.")); + return (GP_ERROR); + } + continue; + + case EOT: + + /* Camera got fed up and reset itself. */ + gp_context_error (context, _("Camera reset itself.")); + return (GP_ERROR); + + default: + gp_context_error (context, _("Camera sent unexpected " + "byte 0x%02x."), c); + return (GP_ERROR_CORRUPTED_DATA); + } + + break; + } + + /* + * Read the response. If we expect more than 1024 bytes, show + * progress information. + */ + p = ((*buf_len > 1024) ? 1 : 0); + if (p) + id = gp_context_progress_start (context, *buf_len, + _("Downloading...")); + *buf_len = 0; + retries = 0; + while (!last) { + r = fuji_recv (camera, buf + *buf_len, &b_len, &last, context); + if (r < 0) { + retries++; + while (gp_port_read (camera->port, (char *)&c, 1) >= 0); + if (++retries > 2) + return (r); + GP_DEBUG ("Retrying..."); + c = NAK; + CR (gp_port_write (camera->port, (char *)&c, 1)); + continue; + } + + /* Give the user the possibility to cancel. */ + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + CR (fuji_reset (camera, context)); + return (GP_ERROR_CANCEL); + } + + /* Acknowledge this packet. */ + c = ACK; + CR (gp_port_write (camera->port, (char *)&c, 1)); + *buf_len += b_len; + + if (p) + gp_context_progress_update (context, id, *buf_len); + } + if (p) + gp_context_progress_stop (context, id); + + return (GP_OK); +} + +int +fuji_get_cmds (Camera *camera, unsigned char *cmds, GPContext *context) +{ + unsigned char cmd[4], buf[1024]; + unsigned int i, buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_CMDS_VALID; + cmd[2] = 0; + cmd[3] = 0; + CR (fuji_transmit (camera, cmd, 4, buf, &buf_len, context)); + + memset (cmds, 0, 0xff); + for (i = 0; i < buf_len; i++) + cmds[buf[i]] = 1; + + return (GP_OK); +} + +int +fuji_pic_count (Camera *camera, unsigned int *n, GPContext *context) +{ + unsigned char cmd[4], buf[1024]; + unsigned int buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_PIC_COUNT; + cmd[2] = 0; + cmd[3] = 0; + CR (fuji_transmit (camera, cmd, 4, buf, &buf_len, context)); + + CLEN (buf_len, 2); + + *n = (buf[1] << 8) | buf[0]; + + return (GP_OK); +} + +int +fuji_pic_name (Camera *camera, unsigned int i, const char **name, + GPContext *context) +{ + static unsigned char buf[1025]; + unsigned char cmd[6]; + unsigned int buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_PIC_NAME; + cmd[2] = 2; + cmd[3] = 0; + cmd[4] = i; + cmd[5] = (i >> 8); + + memset (buf, 0, sizeof (buf)); + CR (fuji_transmit (camera, cmd, 6, buf, &buf_len, context)); + *name = (char *)buf; + + return (GP_OK); +} + +int +fuji_version (Camera *camera, const char **version, GPContext *context) +{ + static unsigned char buf[1025]; + unsigned char cmd[4]; + unsigned int buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_VERSION; + cmd[2] = 0; + cmd[3] = 0; + + memset (buf, 0, sizeof (buf)); + CR (fuji_transmit (camera, cmd, 4, buf, &buf_len, context)); + *version = (char *)buf; + + return (GP_OK); +} + +int +fuji_model (Camera *camera, const char **model, GPContext *context) +{ + static unsigned char buf[1025]; + unsigned char cmd[4]; + unsigned int buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_MODEL; + cmd[2] = 0; + cmd[3] = 0; + + memset (buf, 0, sizeof (buf)); + CR (fuji_transmit (camera, cmd, 4, buf, &buf_len, context)); + *model = (char *)buf; + + return (GP_OK); +} + +int +fuji_id_get (Camera *camera, const char **id, GPContext *context) +{ + static unsigned char buf[1025]; + unsigned char cmd[4]; + unsigned int buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_ID_GET; + cmd[2] = 0; + cmd[3] = 0; + + memset (buf, 0, sizeof (buf)); + CR (fuji_transmit (camera, cmd, 4, buf, &buf_len, context)); + *id = (char *)buf; + + return (GP_OK); +} + +int +fuji_id_set (Camera *camera, const char *id, GPContext *context) +{ + unsigned char cmd[14], buf[1025]; + unsigned int buf_len = 0; + + /* It seems that the ID must be 10 chars or less */ + cmd[0] = 0; + cmd[1] = FUJI_CMD_ID_SET; + cmd[2] = 0x0a; + cmd[3] = 0x00; + memcpy (cmd + 4, id, MIN (strlen (id) + 1, 10)); + + CR (fuji_transmit (camera, cmd, 14, buf, &buf_len, context)); + + return (GP_OK); +} + +int +fuji_pic_del (Camera *camera, unsigned int i, GPContext *context) +{ + unsigned char cmd[6], buf[1024]; + unsigned int buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_PIC_NAME; + cmd[2] = 2; + cmd[3] = 0; + cmd[4] = i; + cmd[5] = (i >> 8); + + CR (fuji_transmit (camera, cmd, 6, buf, &buf_len, context)); + + return (GP_OK); +} + +int +fuji_pic_size (Camera *camera, unsigned int i, unsigned int *size, + GPContext *context) +{ + unsigned char cmd[6], buf[1024]; + unsigned int buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_PIC_SIZE; + cmd[2] = 2; + cmd[3] = 0; + cmd[4] = i; + cmd[5] = (i >> 8); + + CR (fuji_transmit (camera, cmd, 6, buf, &buf_len, context)); + CLEN (buf_len, 4); + + *size = buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); + + return (GP_OK); +} + +int +fuji_pic_get_thumb (Camera *camera, unsigned int i, unsigned char **data, + unsigned int *size, GPContext *context) +{ + unsigned char cmd[6]; + + /* It seems that all thumbnails have the size of 60 x 175. */ + *size = 60 * 175; + *data = malloc (sizeof (char) * *size); + if (!*data) { + gp_context_error (context, _("Could not allocate " + "%i byte(s) for downloading the thumbnail."), *size); + return (GP_ERROR_NO_MEMORY); + } + + cmd[0] = 0; + cmd[1] = FUJI_CMD_PIC_GET_THUMB; + cmd[2] = 2; + cmd[3] = 0; + cmd[4] = i; + cmd[5] = (i >> 8); + + CRF (fuji_transmit (camera, cmd, 6, *data, size, context), *data); + GP_DEBUG ("Download of thumbnail completed."); + + return (GP_OK); +} + +int +fuji_pic_get (Camera *camera, unsigned int i, unsigned char **data, + unsigned int *size, GPContext *context) +{ + unsigned char cmd[6]; + + /* + * First, get the size of the picture and allocate the necessary + * memory. Some cameras don't support the FUJI_CMD_PIC_SIZE command. + * We will then assume 66000 bytes. + */ + if (fuji_pic_size (camera, i, size, context) < 0) + *size = 66000; + + *data = malloc (sizeof (char) * *size); + if (!*data) { + gp_context_error (context, _("Could not allocate " + "%i byte(s) for downloading the picture."), *size); + return (GP_ERROR_NO_MEMORY); + } + + cmd[0] = 0; + cmd[1] = FUJI_CMD_PIC_GET; + cmd[2] = 2; + cmd[3] = 0; + cmd[4] = i; + cmd[5] = (i >> 8); + + CRF (fuji_transmit (camera, cmd, 6, *data, size, context), *data); + GP_DEBUG ("Download of picture completed (%i byte(s)).", *size); + + return (GP_OK); +} + +int +fuji_date_get (Camera *camera, FujiDate *date, GPContext *context) +{ + unsigned char cmd[4], buf[1024]; + unsigned int buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_DATE_GET; + cmd[2] = 0; + cmd[3] = 0; + + CR (fuji_transmit (camera, cmd, 4, buf, &buf_len, context)); + CLEN (buf_len, 14); + + date->year = buf[0] * 1000 + buf[1] * 100 + buf[ 2] * 10 + buf[ 3]; + date->month = buf[ 4] * 10 + buf[ 5]; + date->day = buf[ 6] * 10 + buf[ 7]; + date->hour = buf[ 8] * 10 + buf[ 9]; + date->min = buf[10] * 10 + buf[11]; + date->sec = buf[12] * 10 + buf[13]; + + return (GP_OK); +} + +int +fuji_avail_mem (Camera *camera, unsigned int *avail_mem, GPContext *context) +{ + unsigned char cmd[4], buf[1024]; + unsigned int buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_AVAIL_MEM; + cmd[2] = 0; + cmd[3] = 0; + + CR (fuji_transmit (camera, cmd, 4, buf, &buf_len, context)); + CLEN (buf_len, 4); + + *avail_mem = buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); + + return (GP_OK); +} + +int +fuji_date_set (Camera *camera, FujiDate date, GPContext *context) +{ + unsigned char cmd[1024], buf[1024]; + unsigned int buf_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_DATE_SET; + cmd[2] = 14; + cmd[3] = 0; + sprintf ((char*)cmd + 4, "%04d%02d%02d%02d%02d%02d", date.year, date.month, + date.day, date.hour, date.min, date.sec); + + CR (fuji_transmit (camera, cmd, 4, buf, &buf_len, context)); + + return (GP_OK); +} + +int +fuji_upload_init (Camera *camera, const char *name, GPContext *context) +{ + unsigned char cmd[1024], buf[1024]; + unsigned int buf_len = 0, cmd_len = 0; + + cmd[0] = 0; + cmd[1] = FUJI_CMD_UPLOAD_INIT; + cmd[2] = strlen (name); + cmd[3] = 0; + memcpy (cmd + 4, name, strlen (name)); + cmd_len = strlen (name) + 4; + CR (fuji_transmit (camera, cmd, cmd_len, buf, &buf_len, context)); + CLEN (buf_len, 1); + + /* Check the response */ + switch (buf[0]) { + case FUJI_ACK: + break; + case FUJI_NAK: + gp_context_error (context, _("The camera does not " + "accept '%s' as filename."), name); + return (GP_ERROR); + default: + gp_context_error (context, _("Could not initialize upload " + "(camera responded with 0x%02x)."), buf[0]); + return (GP_ERROR); + } + + return (GP_OK); +} + +#define CHUNK_SIZE 512 + +int +fuji_upload (Camera *camera, const unsigned char *data, + unsigned int size, GPContext *context) +{ + unsigned char cmd[1024], c; + unsigned int cmd_len, chunk_size, retries, i; + + /* + * The old driver did upload in chunks of 512 bytes. I don't know + * if this is optimal. + */ + cmd[0] = 0; + cmd[1] = FUJI_CMD_UPLOAD; + for (i = 0; i < size; i+= CHUNK_SIZE) { + chunk_size = MIN (CHUNK_SIZE, size - i); + cmd[2] = chunk_size; + cmd[3] = (chunk_size >> 8); + memcpy (cmd + 4, data + i, chunk_size); + cmd_len = chunk_size + 4; + + retries = 0; + while (1) { + + /* Give the user the possibility to cancel. */ + if (gp_context_cancel (context) == + GP_CONTEXT_FEEDBACK_CANCEL) { + CR (fuji_reset (camera, context)); + return (GP_ERROR_CANCEL); + } + + CR (fuji_send (camera, cmd, cmd_len, + (i + CHUNK_SIZE < size) ? 0 : 1, context)); + + /* Receive ACK (hopefully) */ + CR (gp_port_read (camera->port, (char *)&c, 1)); + switch (c) { + case ACK: + break; + case NAK: + + /* Camera didn't like the command */ + if (++retries > 1) { + gp_context_error (context, + _("Camera rejected " + "the command.")); + return (GP_ERROR); + } + continue; + + case EOT: + + /* Camera got fed up and reset itself. */ + gp_context_error (context, _("Camera reset " + "itself.")); + return (GP_ERROR); + + default: + gp_context_error (context, _("Camera sent " + "unexpected byte 0x%02x."), c); + return (GP_ERROR_CORRUPTED_DATA); + } + break; + } + } + + return (GP_OK); +} + +int +fuji_set_speed (Camera *camera, FujiSpeed speed, GPContext *context) +{ + unsigned char cmd[5], buf[1024]; + unsigned int buf_len = 0; + + GP_DEBUG("Attempting to set speed to %i",speed); + cmd[0] = 1; + cmd[1] = FUJI_CMD_SPEED; + cmd[2] = 1; + cmd[3] = 0; + cmd[4] = speed; + CR (fuji_transmit (camera, cmd, 5, buf, &buf_len, context)); + CLEN (buf_len, 1); + + /* Check the response */ + switch (buf[0]) { + case FUJI_ACK: + break; + case FUJI_NAK: + gp_context_error (context, _("The camera does not " + "support speed %i."), speed); + return (GP_ERROR_NOT_SUPPORTED); + default: + gp_context_error (context, _("Could not set speed to " + "%i (camera responded with %i)."), speed, buf[0]); + return (GP_ERROR); + } + + GP_DEBUG("Success with speed %i.",speed); + + /* Reset the connection */ + CR (fuji_reset (camera, context)); + + return (GP_OK); +} + +static int +fuji_reset (Camera *camera, GPContext *context) +{ + unsigned char c = EOT; + + CR (gp_port_write (camera->port, (char *)&c, 1)); + + return (GP_OK); +} + +#if 0 + +static int fuji_get_flash_mode (void) +{ + cmd0 (0, 0x30); + return answer[4]; +} + +static int fuji_set_flash_mode (int mode) +{ + cmd1 (0, 0x32, mode); + return answer[4]; +} + +static int fuji_picture_size (int i) +{ + cmd2 (0, FUJI_SIZE, i); + return answer[4] + (answer[5] << 8) + (answer[6] << 16) + (answer[7] << 24); +} + +static int charge_flash (void) +{ + cmd2 (0, FUJI_CHARGE_FLASH, 200); + return answer[4]; +} + +static int take_picture (void) +{ + cmd0 (0, FUJI_CMD_TAKE); + return answer[4] + (answer[5] << 8) + (answer[6] << 16) + (answer[7] << 24); +} + +static int del_frame (int i) +{ + cmd2 (0, FUJI_CMD_DELETE, i); + return answer[4]; +} + +int +fuji_get_cmds (Camera *camera, unsigned char *cmds, GPContext *context) +{ + unsigned char answer[0xff]; + unsigned int answer_len = 0xff; + + memset (cmds, 0, 0xff); + + CR (fuji_cmd0 (camera, 0, FUJI_CMD_CMDS_VALID, answer, &answer_len, + context)); + int i; + DBG("Get command list"); + memset(fjd->has_cmd, 0, 256); + if (cmd0 (0, FUJI_CMDS_VALID)) return ; + for (i = 4; i < answer_len; i++) + fjd->has_cmd[answer[i]] = 1; +} + +static int get_picture_info(int num,char *name,CameraPrivateLibrary *camdata){ + + DBG("Getting name..."); + + strncpy(name,fuji_picture_name(num),100); + + DBG2("%s\n",name); + + /* + * To find the picture number, go to the first digit. According to + * recent Exif specs, n_off can be either 3 or 4. + */ + if (camdata->has_cmd[FUJI_SIZE]) fuji_size=fuji_picture_size(num); + else { + fuji_size=70000; /* this is an overestimation for DS7 */ + DBG2("Image size not obtained, guessing %d",fuji_size); + }; + return (fuji_size); +}; + +static void get_picture_list (FujiData *fjd) +{ + int i, n_off; + char *name; + struct stat st; + + pictures = fuji_nb_pictures(); + maxnum = 100; + free(pinfo); + pinfo = calloc(pictures+1, sizeof(struct pict_info)); + if (pinfo==NULL) { + DBG("Allocation error"); + }; + + for (i = 1; i <= pictures; i++) { + DBG("Getting name..."); + + name = strdup(fuji_picture_name(i)); + pinfo[i].name = name; + + DBG2("%s\n",name); + + /* + * To find the picture number, go to the first digit. According to + * recent Exif specs, n_off can be either 3 or 4. + */ + n_off = strcspn(name, "0123456789"); + if ((pinfo[i].number = atoi(name+n_off)) > maxnum) + maxnum = pinfo[i].number; + if (fjd->has_cmd[FUJI_SIZE]) pinfo[i].size = fuji_picture_size(i); + else pinfo[i].size=65000; + pinfo[i].ondisk = !stat(name, &st); + } +} + +static int download_picture(int n,int thumb,CameraFile *file,CameraPrivateLibrary *fjd) +{ + clock_t t1, t2; + char name[100]; + long int file_size; + char *data; + + DBG3("download_picture: %d,%s",n,thumb?"thumb":"pic"); + + if (!thumb) { + fuji_size=get_picture_info(n,name,fjd); + DBG3("Info %3d %12s ", n, name); + } + else fuji_size=10500; /* Probly not same for all cams, better way ? */ + + DBG2("calling download for %d bytes",fuji_size); + + t1 = times(0); + if (cmd2(0, (thumb?0:0x02), n)==-1) return(GP_ERROR); + + DBG3("Download :%4d actual bytes vs expected %4d bytes\n", + fuji_count ,fuji_size); + + /* file->bytes_read=fuji_count; */ + /* add room for thumb-decode */ + /* file->size=fuji_count+(thumb?128:0); */ + file_size=fuji_count+(thumb?128:0); + + data=malloc(file_size); + + if (data==NULL) return(GP_ERROR); + + memcpy(data,fuji_buffer,fuji_count); + + gp_file_set_data_and_size(file,data,file_size); + + t2 = times(0); + + DBG2("%3d seconds, ", (int)(t2-t1) / CLK_TCK); + DBG2("%4d bytes/s\n", + fuji_count * CLK_TCK / (int)(t2-t1)); + + if (fjd->has_cmd[17]&&!thumb){ + if (!thumb&&(fuji_count != fuji_size)){ + /* gp_frontend_status(NULL,"Short picture file--disk full or quota exceeded\n"); */ + return(GP_ERROR); + }; + }; + return(GP_OK); + +} + +static int fuji_free_memory (void) +{ + cmd0 (0, FUJI_CMD_FREE_MEM); + return answer[5] + (answer[6]<<8) + (answer[7]<<16) + (answer[8]<<24); +} + +static int upload_pic (const char *picname) +{ + unsigned char buffer[516]; + const char *p; + struct stat st; + FILE *fd; + int c, last, len, free_space; + + fd = fopen(picname, "r"); + if (fd == NULL) { + /* update_status("Cannot open file for upload"); */ + return 0; + } + if (fstat(fileno(fd), &st) < 0) { + DBG("fstat"); + return 0; + } + free_space = fuji_free_memory(); + fprintf(stderr, "Uploading %s (size %d, available %d bytes)\n", + picname, (int) st.st_size, free_space); + if (st.st_size > free_space) { + fprintf(stderr, " not enough space\n"); + return 0; + } + if ((p = strrchr(picname, '/')) != NULL) + picname = p+1; + if (strlen(picname) != 12 || memcmp(picname,"DSC",3) || memcmp(picname+8,".JPG",4)) { + picname = auto_rename(); + fprintf(stderr, " file renamed %s\n", picname); + } + buffer[0] = 0; + buffer[1] = 0x0F; + buffer[2] = 12; + buffer[3] = 0; + memcpy(buffer+4, picname, 12); + cmd(16, buffer); + if (answer[4] != 0) { + fprintf(stderr, " rejected by the camera\n"); + return 0; + } + buffer[1] = 0x0E; + while(1) { + len = fread(buffer+4, 1, 512, fd); + if (!len) break; + buffer[2] = len; + buffer[3] = (len>>8); + last = 1; + if ((c = getc(fd)) != EOF) { + last = 0; + ungetc(c, fd); + } + if (!last && interrupted) { + fprintf(stderr, "Interrupted!\n"); + exit(1); + } +again: + send_packet(4+len, buffer, last); + /*wait_for_input(1);*/ + if (get_byte() == 0x15) + goto again; + } + fclose(fd); + fprintf(stderr, " looks ok\n"); + return 1; +} + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/fuji.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/fuji.h new file mode 100644 index 00000000..7bd8f3c3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/fuji.h @@ -0,0 +1,128 @@ +/* fuji.h + * + * Copyright 2002 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __FUJI_H__ +#define __FUJI_H__ + +#include +#include + +enum _FujiCmd { + FUJI_CMD_PIC_GET = 0x02, + FUJI_CMD_PIC_GET_THUMB = 0x00, + FUJI_CMD_SPEED = 0x07, + FUJI_CMD_VERSION = 0x09, + FUJI_CMD_PIC_NAME = 0x0a, + FUJI_CMD_PIC_COUNT = 0x0b, + + FUJI_CMD_UNKNOWN1 = 0x0c, /* Figure this out! */ + + FUJI_CMD_UPLOAD = 0x0e, + FUJI_CMD_UPLOAD_INIT = 0x0f, + + FUJI_CMD_UNKNOWN4 = 0x11, /* Figure this out! */ + FUJI_CMD_UNKNOWN5 = 0x13, /* Figure this out! */ + + FUJI_CMD_PIC_SIZE = 0x17, + FUJI_CMD_PIC_DEL = 0x19, + FUJI_CMD_AVAIL_MEM = 0x1b, + + FUJI_CMD_UNKNOWN10 = 0x20, /* Figure this out! */ + FUJI_CMD_UNKNOWN11 = 0x22, /* Figure this out! */ + + FUJI_CMD_TAKE = 0x27, + FUJI_CMD_MODEL = 0x29, + + FUJI_CMD_UNKNOWN13 = 0x2a, /* Figure this out! */ + FUJI_CMD_UNKNOWN14 = 0x2b, /* Figure this out! */ + FUJI_CMD_UNKNOWN15 = 0x2e, /* Figure this out! */ + + /* Flash related commands */ + FUJI_CMD_FLASH_GET = 0x30, + FUJI_CMD_FLASH_SET = 0x32, + FUJI_CMD_FLASH_CHARGE = 0x34, + + FUJI_CMD_CMDS_VALID = 0x4c, + + FUJI_CMD_UNKNOWN16 = 0x51, /* Figure this out! */ + + FUJI_CMD_PREVIEW = 0x64, + + /* Configurable settings */ + FUJI_CMD_ID_GET = 0x80, + FUJI_CMD_ID_SET = 0x82, + FUJI_CMD_DATE_GET = 0x84, + FUJI_CMD_DATE_SET = 0x86, + + FUJI_CMD_UNKNOWN8 = 0xc0 /* Figure this out! */ +}; +typedef enum _FujiCmd FujiCmd; + +int fuji_get_cmds (Camera *camera, unsigned char *cmds, GPContext *context); + +int fuji_ping (Camera *, GPContext *context); +int fuji_pic_count (Camera *, unsigned int *n, GPContext *); +int fuji_version (Camera *, const char **version, GPContext *); +int fuji_model (Camera *, const char **model, GPContext *); +int fuji_avail_mem (Camera *, unsigned int *avail_mem, GPContext *); + +int fuji_upload_init (Camera *, const char *name, GPContext *); +int fuji_upload (Camera *, const unsigned char *data, + unsigned int size, GPContext *context); + +int fuji_id_get (Camera *camera, const char **id, GPContext *context); +int fuji_id_set (Camera *camera, const char *id, GPContext *context); + +typedef struct _FujiDate FujiDate; +struct _FujiDate { + unsigned int year; + unsigned int month; + unsigned int day; + unsigned int hour; + unsigned int min; + unsigned int sec; +}; + +int fuji_date_get (Camera *camera, FujiDate *date, GPContext *context); +int fuji_date_set (Camera *camera, FujiDate date, GPContext *context); + +/* Operations on pictures */ +int fuji_pic_name (Camera *camera, unsigned int i, const char **name, + GPContext *context); +int fuji_pic_size (Camera *camera, unsigned int i, unsigned int *size, + GPContext *context); +int fuji_pic_del (Camera *camera, unsigned int i, GPContext *context); +int fuji_pic_get (Camera *camera, unsigned int i, unsigned char **data, + unsigned int *size, GPContext *context); +int fuji_pic_get_thumb (Camera *camera, unsigned int i, unsigned char **data, + unsigned int *size, GPContext *context); + +enum _FujiSpeed { + FUJI_SPEED_9600 = 0, + FUJI_SPEED_19200 = 5, + FUJI_SPEED_38400 = 6, + FUJI_SPEED_57600 = 7, + FUJI_SPEED_115200 = 8 +}; +typedef enum _FujiSpeed FujiSpeed; + +int fuji_set_speed (Camera *camera, FujiSpeed speed, GPContext *context); + +#endif /* __FUJI_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/library.c new file mode 100644 index 00000000..b4585a1f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/fuji/library.c @@ -0,0 +1,547 @@ +/* library.c: + * + * Copyright 2002 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include + +#include +#include +#include + +#include "fuji.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "fuji" + +#define CR(result) {int __r = (result); if (__r < 0) return (__r);} + +static const struct { + const char *model; +} models[] = { + {"Apple:QuickTake 200"}, + {"Fuji:DS-7"}, + {"Fuji:DX-5"}, + {"Fuji:DX-7"}, + {"Fuji:DX-10"}, + {"Fuji:MX-500"}, + {"Fuji:MX-600"}, + {"Fuji:MX-700"}, + {"Fuji:MX-1200"}, + {"Fuji:MX-1700"}, + {"Fuji:MX-2700"}, + {"Fuji:MX-2900"}, + {"Leica:Digilux Zoom"}, + {"Samsung:Kenox SSC-350N"}, + {"Toshiba:PDR-M1"}, + {NULL} +}; + +struct _CameraPrivateLibrary { + unsigned long speed; + unsigned char cmds[0xff]; +}; + +static const struct { + FujiCmd command; + const char *name; +} Commands[] = { + {FUJI_CMD_PIC_GET, "get picture"}, + {FUJI_CMD_PIC_GET_THUMB, "get thumbnail"}, + {FUJI_CMD_SPEED, "change speed"}, + {FUJI_CMD_VERSION, "get version"}, + {FUJI_CMD_PIC_NAME, "get name of picture"}, + {FUJI_CMD_PIC_COUNT, "get number of pictures"}, + {FUJI_CMD_PIC_SIZE, "get size of picture"}, + {FUJI_CMD_PIC_DEL, "delete picture"}, + {FUJI_CMD_TAKE, "capture picture"}, + {FUJI_CMD_FLASH_GET, "get flash mode"}, + {FUJI_CMD_FLASH_SET, "set flash mode"}, + {FUJI_CMD_FLASH_CHARGE, "charge flash"}, + {FUJI_CMD_CMDS_VALID, "list valid commands"}, + {FUJI_CMD_PREVIEW, "capture preview"}, + {FUJI_CMD_DATE_GET, "get date"}, + {0, NULL}}; + +static const char * +cmd_get_name (FujiCmd command) +{ + unsigned int i; + + for (i = 0; Commands[i].name; i++) + if (Commands[i].command == command) + break; + + return (Commands[i].name); +} + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Fuji"); + + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + int i; + + memset (&a, 0, sizeof (a)); + for (i = 0; models[i].model; i++) { + strcpy (a.model, models[i].model); + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 56700; + a.speed[4] = 115200; + a.speed[5] = 0; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE; + a.file_operations = GP_FILE_OPERATION_PREVIEW | + GP_FILE_OPERATION_DELETE; + a.operations = GP_OPERATION_CONFIG; + CR (gp_abilities_list_append (list, a)); + } + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("" + "Matthew G. Martin\n" + "Based on fujiplay by Thierry Bousch " + "\n")); + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i; + unsigned int n; + const char *name; + + /* + * Count the pictures on the camera. If we don't have any, we + * are done. + */ + CR (fuji_pic_count (camera, &n, context)); + if (!n) + return (GP_OK); + + /* + * Try to get the name of the first file. If we can't, just come + * up with some dummy names. + */ + if (fuji_pic_name (camera, 1, &name, context) < 0) { + CR (gp_list_populate (list, "DSCF%04i.JPG", n)); + return (GP_OK); + } + CR (gp_list_append (list, name, NULL)); + + /* Get the names of the remaining files. */ + for (i = 2; i <= n; i++) { + CR (fuji_pic_name (camera, i, &name, context)); + CR (gp_list_append (list, name, NULL)); + } + + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *data, GPContext *context) +{ + Camera *camera = data; + int n; + unsigned char *d; + unsigned int size; + + /* We need file numbers starting with 1 */ + CR (n = gp_filesystem_number (camera->fs, folder, filename, context)); + n++; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + CR (fuji_pic_get (camera, n, &d, &size, context)); + break; + case GP_FILE_TYPE_PREVIEW: + CR (fuji_pic_get_thumb (camera, n, &d, &size, context)); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + CR (gp_file_set_data_and_size (file, (char *)d, size)); + CR (gp_file_set_mime_type (file, GP_MIME_JPEG)); + + return (GP_OK); +} + +static int +put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *data, GPContext *context) +{ + Camera *camera = data; + const char *d; + unsigned long int d_len; + + if (type != GP_FILE_TYPE_NORMAL) + return GP_ERROR_BAD_PARAMETERS; + CR (gp_file_get_data_and_size (file, &d, &d_len)); + CR (fuji_upload_init (camera, name, context)); + return fuji_upload (camera, (unsigned char *)d, d_len, context); +} + +static int +del_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int n; + + /* We need file numbers starting with 1 */ + CR (n = gp_filesystem_number (camera->fs, folder, filename, context)); + n++; + + CR (fuji_pic_del (camera, n, context)); + + return (GP_OK); +} + +static const struct { + FujiSpeed speed; + unsigned int bit_rate; +} Speeds[] = { + {FUJI_SPEED_115200, 115200}, + {FUJI_SPEED_57600, 57600}, + {FUJI_SPEED_38400, 38400}, + {FUJI_SPEED_19200, 19200}, + {FUJI_SPEED_9600, 9600}, + {FUJI_SPEED_9600, 0} +}; + +static int +camera_exit (Camera *camera, GPContext *context) +{ + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + + return (GP_OK); +} + +static int +pre_func (Camera *camera, GPContext *context) +{ + int r; + unsigned int i; + GPPortSettings settings; + + GP_DEBUG ("Initializing connection..."); + + CR (gp_port_get_settings (camera->port, &settings)); + CR (fuji_ping (camera, context)); + if (!camera->pl->speed) { + + /* Set to the highest possible speed. */ + for (i = 0; Speeds[i].bit_rate; i++) { + r = fuji_set_speed (camera, Speeds[i].speed, NULL); + if (r >= 0) + break; + } + + /* + * Change the port's speed and check if the camera is + * still there. + */ + settings.serial.speed = Speeds[i].bit_rate; + CR (gp_port_set_settings (camera->port, settings)); + GP_DEBUG("Pinging to check new speed %i.", Speeds[i].bit_rate); + CR (fuji_ping (camera, context)); + + } else { + + /* User specified a speed. Check if the speed is possible */ + for (i = 0; Speeds[i].bit_rate; i++) + if (Speeds[i].bit_rate == camera->pl->speed) + break; + if (!Speeds[i].bit_rate) { + gp_context_error (context, _("Bit rate %ld is not " + "supported."), camera->pl->speed); + return (GP_ERROR_NOT_SUPPORTED); + } + + /* Change the speed if necessary. */ + if (camera->pl->speed != Speeds[i].bit_rate) { + CR (fuji_set_speed (camera, Speeds[i].speed, context)); + + /* + * Change the port's speed and check if the camera is + * still there. + */ + settings.serial.speed = Speeds[i].bit_rate; + CR (gp_port_set_settings (camera->port, settings)); + CR (fuji_ping (camera, context)); + } + } + + return (GP_OK); +} + +static int +post_func (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + GP_DEBUG ("Terminating connection..."); + + /* Put the camera back to 9600 bps if necessary. */ + CR (gp_port_get_settings (camera->port, &settings)); + if (settings.serial.speed != 9600) { + CR (fuji_set_speed (camera, FUJI_SPEED_9600, context)); + settings.serial.speed = 9600; + CR (gp_port_set_settings (camera->port, settings)); + } + + return (GP_OK); +} + +static int +camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *widget; + struct tm tm; + time_t t; + FujiDate date; + const char *id; + + CR (gp_widget_new (GP_WIDGET_WINDOW, _("Configuration for " + "your FUJI camera"), window)); + + /* Date & Time */ + if (fuji_date_get (camera, &date, context) >= 0) { + CR (gp_widget_new (GP_WIDGET_DATE, _("Date & Time"), &widget)); + CR (gp_widget_append (*window, widget)); + memset (&tm, 0, sizeof (struct tm)); + tm.tm_year = date.year; + tm.tm_mon = date.month; + tm.tm_mday = date.day; + tm.tm_hour = date.hour; + tm.tm_min = date.min; + tm.tm_sec = date.sec; + t = mktime (&tm); + CR (gp_widget_set_value (widget, &t)); + } + + /* ID */ + if (fuji_id_get (camera, &id, context) >= 0) { + CR (gp_widget_new (GP_WIDGET_TEXT, _("ID"), &widget)); + CR (gp_widget_append (*window, widget)); + CR (gp_widget_set_value (widget, (void *) id)); + } + + return (GP_OK); +} + +static int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *widget; + FujiDate date; + time_t t; + struct tm *tm; + const char *id; + + /* Date & Time */ + if ((gp_widget_get_child_by_label (window, _("Date & Time"), + &widget) >= 0) && + gp_widget_changed (widget)) { + gp_widget_set_changed (widget, 0); + CR (gp_widget_get_value (widget, &t)); + tm = localtime (&t); + date.year = tm->tm_year; + date.month = tm->tm_mon; + date.day = tm->tm_mday; + date.hour = tm->tm_hour; + date.min = tm->tm_min; + date.sec = tm->tm_sec; + CR (fuji_date_set (camera, date, context)); + } + + /* ID */ + if ((gp_widget_get_child_by_label (window, _("ID"), &widget) >= 0) && + gp_widget_changed (widget)) { + gp_widget_set_changed (widget, 0); + CR (gp_widget_get_value (widget, &id)); + CR (fuji_id_set (camera, id, context)); + } + + + return (GP_OK); +} + +static int +camera_summary (Camera *camera, CameraText *text, GPContext *context) +{ + const char *string; + char buf[1024]; + unsigned int avail_mem; + + memset (text->text, 0, sizeof (text->text)); + + if (fuji_version (camera, &string, context) >= 0) { + strcat (text->text, _("Version: ")); + strcat (text->text, string); + strcat (text->text, "\n"); + } + + if (fuji_model (camera, &string, context) >= 0) { + strcat (text->text, _("Model: ")); + strcat (text->text, string); + strcat (text->text, "\n"); + } + + if (fuji_avail_mem (camera, &avail_mem, context) >= 0) { + snprintf (buf, sizeof (buf), "%d", avail_mem); + strcat (text->text, _("Available memory: ")); + strcat (text->text, buf); + strcat (text->text, "\n"); + } + + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + int n; + unsigned int size; + + info->file.fields = GP_FILE_INFO_NONE; + info->preview.fields = GP_FILE_INFO_NONE; + info->audio.fields = GP_FILE_INFO_NONE; + + /* We need file numbers starting with 1 */ + CR (n = gp_filesystem_number (camera->fs, folder, filename, context)); + n++; + + /* Size */ + if (fuji_pic_size (camera, n, &size, context) >= 0) { + info->file.fields |= GP_FILE_INFO_SIZE; + info->file.size = size; + } + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = del_file_func, + .put_file_func = put_file_func, + .get_info_func = get_info_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + unsigned int i; + + /* Setup all function pointers */ + camera->functions->pre_func = pre_func; + camera->functions->post_func = post_func; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + camera->functions->summary = camera_summary; + + /* We need to store some data */ + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + + /* Set up the port, but remember the current speed. */ + CR (gp_port_set_timeout (camera->port, 1000)); + CR (gp_port_get_settings (camera->port, &settings)); + camera->pl->speed = settings.serial.speed; + settings.serial.speed = 9600; + settings.serial.bits = 8; + settings.serial.parity = GP_PORT_SERIAL_PARITY_EVEN; + settings.serial.stopbits = 1; + CR (gp_port_set_settings (camera->port, settings)); + + /* Set up the filesystem. */ + CR (gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera)); + + /* Initialize the connection */ + CR (pre_func (camera, context)); + /* + * What commands does this camera support? The question is not + * easy to answer, as "One issue the DS7 has is that the + * supported command list command is not supported" + * (Matt Martin ). + */ + if (fuji_get_cmds (camera, camera->pl->cmds, context) >= 0) { + GP_DEBUG ("Your camera supports the following command(s):"); + for (i = 0; i < 0xff; i++) + if (camera->pl->cmds[i]) + GP_DEBUG (" - 0x%02x: '%s'", i, + cmd_get_name (i)); + } + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/ChangeLog new file mode 100644 index 00000000..94e72e88 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/ChangeLog @@ -0,0 +1,8 @@ +2007-12-10 Marcus Meissner + + * *.[ch]: use gp_file_append(), removed some signedness warnings. + + +Sam Jan 18 11:28:57 2003 Till Adam + + * initial import diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/Makefile-files new file mode 100644 index 00000000..8c8c3c3d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/Makefile-files @@ -0,0 +1,14 @@ +# -*- Makefile -*- + +EXTRA_DIST += gsmart300/README.gsmart300 gsmart300/ChangeLog +camlibdoc_DATA += gsmart300/README.gsmart300 + +EXTRA_LTLIBRARIES += gsmart300.la + +gsmart300_la_SOURCES = \ + gsmart300/gsmart300.c gsmart300/gsmart300.h \ + gsmart300/library.c \ + gsmart300/gsmart300-jpeg-header.h +gsmart300_la_LDFLAGS = $(camlib_ldflags) +gsmart300_la_DEPENDENCIES = $(camlib_dependencies) +gsmart300_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/README.gsmart300 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/README.gsmart300 new file mode 100644 index 00000000..84d279da --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/README.gsmart300 @@ -0,0 +1,37 @@ +GSMART 300 DRIVER FOR GPHOTO2 +============================= + +Note : this camera is also know as "Casio LV-10", + under the same vendor and product IDs + (Model actually tested) + +This is a very basic camera which enables to take pictures, +delete last picture or delete all pictures. + +Pictures (JPEG format) can be stored in two sizes : 640x480 or 320x240. +In fact, this is not exactly true. The pictures are all 640x480, +but the "smaller" ones are just poor quality, so that it becomes +decent only after resizing to 320x240. +Thumbnails are downloadable from the camera in YYUV format +for "big" pictures ONLY. + +To perform these operations, the Windows driver uses an +interpolation software which acts as this : + +For lower quality, 640x480 pictures are downloaded, and +converted to 320x240. In the same way, 80x60 thumbnails +are generated. + +For higher quality, 80x60 thumbnails are downloaded in YYUV +and converted to bitmap. Strangely enough, 640x480 +picture are also converted into pictures of the same size +by the interpolation software, resulting in a disk-size +about 2 times greater ! (but no visible loss of quality) + +The gsmart300 driver for gphoto just outputs the higher quality +pictures as they are stored in the camera, as well as bitmap +thumbnails. +Lower quality pictures are left 640x480, and no thumbnail +is provided. + + Jérôme Lodewyck diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/gsmart300-jpeg-header.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/gsmart300-jpeg-header.h new file mode 100644 index 00000000..2c17d6ce --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/gsmart300-jpeg-header.h @@ -0,0 +1,121 @@ +#ifndef __GSMART_300_JPEG_HEADER_H +#define __GSMART_300_JPEG_HEADER_H + +/* + * Start from 0 -> 588 + * 7 - 70 : Quantization Table[0] + * 72 - 135 : Quantization Table[1] + * 561 - 562 : Image Height(H Byte,L Byte) + * 563 - 564 : Image Width(H Byte,L Byte) + */ +#define GSMART_JPG_DEFAULT_HEADER_LENGTH 589 +static uint8_t Gsmart_300_JPGDefaultHeader[GSMART_JPG_DEFAULT_HEADER_LENGTH] = { + /* SOI(Start of Image) */ + 0xFF,0xD8, + /* DQT(Define Quantization Table) */ + 0xFF,0xDB, + 0x00,0x84, + 0x00, + 0x05,0x03,0x04,0x04,0x04,0x03,0x05,0x04,0x04,0x04,0x06,0x05,0x05,0x06,0x08,0x0D, + 0x08,0x08,0x07,0x07,0x08,0x10,0x0C,0x0C,0x0A,0x0D,0x14,0x11,0x15,0x14,0x13,0x11, + 0x13,0x13,0x16,0x18,0x1F,0x1A,0x16,0x17,0x1E,0x17,0x13,0x13,0x1B,0x25,0x1C,0x1E, + 0x20,0x21,0x23,0x23,0x23,0x15,0x1A,0x27,0x29,0x26,0x22,0x29,0x1F,0x22,0x23,0X22, + 0X01, + 0x05,0x06,0x06,0x08,0x07,0x08,0x10,0x08,0x08,0x10,0x22,0x16,0x13,0x16,0x22,0x22, + 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, + 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, + 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, + /* DHT(Define Huffman Table) */ + 0xFF,0xC4, + 0x01,0xA2, + 0x00,0x00,0x01,0x05,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x01,0x00,0x03, + 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, + 0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x10,0x00,0x02,0x01,0x03,0x03, + 0x02,0x04,0x03,0x05,0x05,0x04,0x04,0x00,0x00,0x01,0x7D,0x01,0x02,0x03,0x00,0x04, + 0x11,0x05,0x12,0x21,0x31,0x41,0x06,0x13,0x51,0x61,0x07,0x22,0x71,0x14,0x32,0x81, + 0x91,0xA1,0x08,0x23,0x42,0xB1,0xC1,0x15,0x52,0xD1,0xF0,0x24,0x33,0x62,0x72,0x82, + 0x09,0x0A,0x16,0x17,0x18,0x19,0x1A,0x25,0x26,0x27,0x28,0x29,0x2A,0x34,0x35,0x36, + 0x37,0x38,0x39,0x3A,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x53,0x54,0x55,0x56, + 0x57,0x58,0x59,0x5A,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x73,0x74,0x75,0x76, + 0x77,0x78,0x79,0x7A,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x92,0x93,0x94,0x95, + 0x96,0x97,0x98,0x99,0x9A,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xB2,0xB3, + 0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA, + 0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7, + 0xE8,0xE9,0xEA,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0x11,0x00,0x02, + 0x01,0x02,0x04,0x04,0x03,0x04,0x07,0x05,0x04,0x04,0x00,0x01,0x02,0x77,0x00,0x01, + 0x02,0x03,0x11,0x04,0x05,0x21,0x31,0x06,0x12,0x41,0x51,0x07,0x61,0x71,0x13,0x22, + 0x32,0x81,0x08,0x14,0x42,0x91,0xA1,0xB1,0xC1,0x09,0x23,0x33,0x52,0xF0,0x15,0x62, + 0x72,0xD1,0x0A,0x16,0x24,0x34,0xE1,0x25,0xF1,0x17,0x18,0x19,0x1A,0x26,0x27,0x28, + 0x29,0x2A,0x35,0x36,0x37,0x38,0x39,0x3A,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A, + 0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A, + 0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89, + 0x8A,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7, + 0xA8,0xA9,0xAA,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xC2,0xC3,0xC4,0xC5, + 0xC6,0xC7,0xC8,0xC9,0xCA,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xE2,0xE3, + 0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA, + /* SOFn(Start of Frame) */ + 0xFF,0xC0, + 0x00,0x11, + 0x08,0x00,0x78,0x00,0xA0,0x03,0x01,0x21,0x00,0x02,0x11,0x01,0x03,0x11,0x01, + /* SOS(Start of Scan) */ + 0xFF,0xDA, + 0x00,0x0C, + 0x03,0x01,0x00,0x02,0x11,0x03,0x11,0x00,0x3F,0x00 +}; + +/* Quantization tables for GSmart300 */ +static uint8_t Gsmart_300_QTable[10][64]= +{ + /* index 0, Q85 */ + { 5, 3, 4, 4, 4, 3, 5, 4, 4, 4, 5, 5, 5, 6, 7, 12, + 8, 7, 7, 7, 7, 15, 11, 11, 9, 12, 17, 15, 18, 18, 17, 15, + 17, 17, 19, 22, 28, 23, 19, 20, 26, 21, 17, 17, 24, 33, 24, 26, + 29, 29, 31, 31, 31, 19, 23, 34, 36, 34, 30, 36, 28, 30, 31, 30 }, + { 5, 5, 5, 7, 6, 7, 14, 8, 8, 14, 30, 20, 17, 20, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30 }, + + /* index 1, Q85 */ + { 5, 3, 4, 4, 4, 3, 5, 4, 4, 4, 5, 5, 5, 6, 7, 12, + 8, 7, 7, 7, 7, 15, 11, 11, 9, 12, 17, 15, 18, 18, 17, 15, + 17, 17, 19, 22, 28, 23, 19, 20, 26, 21, 17, 17, 24, 33, 24, 26, + 29, 29, 31, 31, 31, 19, 23, 34, 36, 34, 30, 36, 28, 30, 31, 30 }, + { 5, 5, 5, 7, 6, 7, 14, 8, 8, 14, 30, 20, 17, 20, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30 }, + + /* index 2, Q80 */ + { 6, 4, 5, 6, 5, 4, 6, 6, 5, 6, 7, 7, 6, 8, 10, 16, + 10, 10, 9, 9, 10, 20, 14, 15, 12, 16, 23, 20, 24, 24, 23, 20, + 22, 22, 26, 29, 37, 31, 26, 27, 35, 28, 22, 22, 32, 44, 32, 35, + 38, 39, 41, 42, 41, 25, 31, 45, 48, 45, 40, 48, 37, 40, 41, 40 }, + { 7, 7, 7, 10, 8, 10, 19, 10, 10, 19, 40, 26, 22, 26, 40, 40, + 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, + 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, + 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40 }, + + /* index 3, Q25 */ + { 32, 22, 24, 28, 24, 20, 32, 28, 26, 28, 36, 34, 32, 38, 48, 80, + 52, 48, 44, 44, 48, 98, 70, 74, 58, 80,116,102,122,120,114,102, + 112,110,128,144,184,156,128,136,174,138,110,112,160,218,162,174, + 190,196,206,208,206,124,154,226,242,224,200,240,184,202,206,198 }, + { 34, 36, 36, 48, 42, 48, 94, 52, 52, 94,198,132,112,132,198,198, + 198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198, + 198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198, + 198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198 }, + + /* index 4, Q70 */ + { 10, 7, 7, 8, 7, 6, 10, 8, 8, 8, 11, 10, 10, 11, 14, 24, + 16, 14, 13, 13, 14, 29, 21, 22, 17, 24, 35, 31, 37, 36, 34, 31, + 34, 33, 38, 43, 55, 47, 38, 41, 52, 41, 33, 34, 48, 65, 49, 52, + 57, 59, 62, 62, 62, 37, 46, 68, 73, 67, 60, 72, 55, 61, 62, 59 }, + { 10, 11, 11, 14, 13, 14, 28, 16, 16, 28, 59, 40, 34, 40, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59 }, +}; + +#endif /* __GSMART_300_JPEG_HEADER_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/gsmart300.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/gsmart300.c new file mode 100644 index 00000000..11f7410f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/gsmart300.c @@ -0,0 +1,434 @@ +/****************************************************************/ +/* gsmart300.c - Gphoto2 library for the Mustek gSmart 300 */ +/* */ +/* Copyright (C) 2002 Jérôme Lodewyck */ +/* */ +/* Author: Jérôme Lodewyck */ +/* */ +/* based on code by: Till Adam */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#define _DEFAULT_SOURCE + +#include + +#include +#include +#include +#include +#include "gphoto2-endian.h" + +#include "gsmart300.h" +#include "gsmart300-jpeg-header.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "gsmart300" +static int gsmart300_download_data (CameraPrivateLibrary * lib, + int data_type, uint16_t index, unsigned int size, + uint8_t * buf); +static int gsmart300_get_FATs (CameraPrivateLibrary * lib); +static int yuv2rgb (int y, int u, int v, unsigned int *r, unsigned int *g, unsigned int *b); +static int gsmart300_get_image_thumbnail (CameraPrivateLibrary * lib, + CameraFile *file, + struct GsmartFile *g_file); + +#define __GS300_FAT 0 +#define __GS300_THUMB 1 +#define __GS300_PIC 2 +#define __GS300_INIT 3 + +static int +gsmart300_get_file_count (CameraPrivateLibrary * lib) +{ + uint8_t buf[0x100]; + + gsmart300_download_data (lib, __GS300_INIT, 0, 0x100, buf); + lib->num_files = (buf[21] >> 4) * 10 + (buf[21] & 0xf) + + 100 * ((buf[22] >> 4) * 10 + (buf[22] & 0xf)); + return (GP_OK); +} + +int +gsmart300_delete_file (CameraPrivateLibrary * lib, unsigned int index) +{ + struct GsmartFile *g_file; + uint16_t fat_index; + + CHECK (gsmart300_get_file_info (lib, index, &g_file)); + + fat_index = 0x1FFF - index; + + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x03, fat_index, 0x0003, + NULL, 0)); + sleep (1); + + /* Reread fats the next time it is accessed */ + lib->dirty = 1; + + return GP_OK; +} + +/* GSmart 300 specific */ +int +gsmart300_delete_all (CameraPrivateLibrary * lib) +{ + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x02, 0x0000, 0x0004, + NULL, 0)); + sleep (3); + + /* Reread fats the next time it is accessed */ + lib->dirty = 1; + + return GP_OK; +} + +int +gsmart300_request_file (CameraPrivateLibrary * lib, CameraFile *file, + unsigned int number) +{ + struct GsmartFile *g_file; + uint8_t *p, *lp_jpg, *start_of_file; + uint8_t qIndex, value; + uint8_t *mybuf; + int i, ret; + /* NOTE : these varialbes are slightly renamed */ + int flash_size, data_size, file_size; + + CHECK (gsmart300_get_file_info (lib, number, &g_file)); + + p = g_file->fat; + + /* decode the image size */ + flash_size = (p[6] * 0x100 + p[5])*0x200; + data_size = (p[13] & 0xff) * 0x10000 + + (p[12] & 0xff) * 0x100 + + (p[11] & 0xff); + qIndex = p[7] & 0x07; + + file_size = data_size + GSMART_JPG_DEFAULT_HEADER_LENGTH + 1024 * 10; + + /* slurp in the image */ + mybuf = malloc (flash_size); + if (!mybuf) + return GP_ERROR_NO_MEMORY; + + ret = gsmart300_download_data (lib, __GS300_PIC, g_file->index, + flash_size, mybuf); + if (ret < GP_OK) { + free (mybuf); + return ret; + } + + /* now build a jpeg */ + lp_jpg = malloc (file_size); + if (!lp_jpg) { + free (mybuf); + return GP_ERROR_NO_MEMORY; + } + start_of_file = lp_jpg; + + /* copy the header from the template */ + memcpy (lp_jpg, Gsmart_300_JPGDefaultHeader, + GSMART_JPG_DEFAULT_HEADER_LENGTH); + + /* modify quantization table */ + memcpy (lp_jpg + 7, Gsmart_300_QTable[qIndex * 2], 64); + memcpy (lp_jpg + 72, Gsmart_300_QTable[qIndex * 2 + 1], 64); + + /* modify the image width, height */ + + /* NOTE : the picture width and height written on flash is either + * 640x480 or 320x240, but the real size id 640x480 for ALL pictures */ + + *(lp_jpg + 564) = (640) & 0xFF; /* Image width low byte */ + *(lp_jpg + 563) = (640 >> 8) & 0xFF; /* Image width high byte */ + *(lp_jpg + 562) = (480) & 0xFF; /* Image height low byte */ + *(lp_jpg + 561) = (480 >> 8) & 0xFF; /* Image height high byte */ + + /* point to real JPG compress data start position and copy */ + lp_jpg += GSMART_JPG_DEFAULT_HEADER_LENGTH; + + for (i = 0; i < data_size; i++) { + value = *(mybuf + i) & 0xFF; + *(lp_jpg) = value; + lp_jpg++; + if (value == 0xFF) { + *(lp_jpg) = 0x00; + lp_jpg++; + } + } + /* Add end of image marker */ + *(lp_jpg++) = 0xFF; + *(lp_jpg++) = 0xD9; + free (mybuf); + gp_file_append (file, (char*)start_of_file, lp_jpg - start_of_file); + free (start_of_file); + return (GP_OK); +} + +int +gsmart300_request_thumbnail (CameraPrivateLibrary * lib, CameraFile *file, + unsigned int number, int *type) +{ + struct GsmartFile *g_file; + + CHECK (gsmart300_get_file_info (lib, number, &g_file)); + + *type = g_file->mime_type; + return (gsmart300_get_image_thumbnail (lib, file, g_file)); +} + + + +static int +gsmart300_get_image_thumbnail (CameraPrivateLibrary * lib, CameraFile *file, + struct GsmartFile *g_file) +{ + unsigned int size; + uint8_t *mybuf = NULL; + uint8_t *tmp, *buf; + unsigned int t_width, t_height; + uint8_t *yuv_p, *rgb_p; + uint32_t len; + char pbm_header[14]; + int ret; + + + /* No thumbnail for 320x240 pictures */ + if (g_file->width < 640) + return (GP_ERROR_NOT_SUPPORTED); + + t_width = 80; + t_height = 60; + snprintf (pbm_header, sizeof (pbm_header), "P6 %d %d 255\n", + t_width, t_height); + + /* size needed for download */ + size = 9728; + + mybuf = malloc (size); + if (!mybuf) + return (GP_ERROR_NO_MEMORY); + ret = gsmart300_download_data (lib, __GS300_THUMB, g_file->index, + size, mybuf); + if (ret < GP_OK) { + free (mybuf); + return ret; + } + /* effective size of file */ + size = 9600; + + len = t_width * t_height * 3; + buf = malloc (len); + if (!buf) { + free (mybuf); + return (GP_ERROR_NO_MEMORY); + } + + gp_file_append (file, pbm_header, strlen(pbm_header)); + + tmp = buf; + yuv_p = mybuf; + rgb_p = tmp; + while (yuv_p < mybuf + size) { + unsigned int u, v, y, y2; + unsigned int r, g, b; + + y = yuv_p[0]; + y2 = yuv_p[1]; + u = yuv_p[2]; + v = yuv_p[3]; + + CHECK (yuv2rgb (y, u, v, &r, &g, &b)); + *rgb_p++ = r; + *rgb_p++ = g; + *rgb_p++ = b; + + CHECK (yuv2rgb (y2, u, v, &r, &g, &b)); + *rgb_p++ = r; + *rgb_p++ = g; + *rgb_p++ = b; + + yuv_p += 4; + } + free (mybuf); + gp_file_append (file, (char*)buf, len); + free (buf); + return (GP_OK); +} + +int +gsmart300_get_info (CameraPrivateLibrary * lib) +{ + GP_DEBUG ("* gsmart300_get_info"); + CHECK (gsmart300_get_file_count (lib)); + if (lib->num_files > 0) { + CHECK (gsmart300_get_FATs (lib)); + } + + lib->dirty = 0; + + return GP_OK; +} + +int +gsmart300_get_file_info (CameraPrivateLibrary * lib, unsigned int index, + struct GsmartFile **g_file) +{ + if (lib->dirty) + CHECK (gsmart300_get_info (lib)); + *g_file = &(lib->files[index]); + return GP_OK; +} + +int +gsmart300_reset (CameraPrivateLibrary * lib) +{ + GP_DEBUG ("* gsmart300_reset"); + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x02, 0x0000, 0x0003, + NULL, 0)); + sleep (1.5); + return GP_OK; +} + + +/* Download procedure for GSmart300 */ +/* buf must be of length n*0x200 */ +/* Pictured are pointed by there index which runs over 0 to npic -1*/ +static int gsmart300_download_data (CameraPrivateLibrary * lib, int data_type, + uint16_t index, unsigned int size, uint8_t * buf) +{ + uint16_t fat_index = 0x1fff - index; + int i; + + if (data_type == __GS300_FAT) + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x03, + fat_index, 0x0000, NULL, 0)); + if (data_type == __GS300_THUMB) + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x0a, + fat_index, 0x0003, NULL, 0)); + if (data_type == __GS300_PIC) + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x03, + fat_index, 0x0008, NULL, 0)); + if (data_type == __GS300_INIT ) { + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x02, 0x00, + 0x0007, NULL, 0)); + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x0a, 0x00, + 0x0001, NULL, 0)); + } + + for (i = 0; i < size >> 8; i++) + CHECK (gp_port_read (lib->gpdev, (char*)(buf + i*0x100), 0x100)); + + return GP_OK; +} + +static int +gsmart300_get_FATs (CameraPrivateLibrary * lib) +{ + uint8_t type; + unsigned int index = 0; + unsigned int file_index = 0; + uint8_t *p = NULL; + char buf[14]; + + CHECK (gsmart300_get_file_count(lib)); + + if (lib->fats) + free (lib->fats); + lib->fats = malloc ((lib->num_files) * FLASH_PAGE_SIZE_300); + + if (lib->files) + free (lib->files); + lib->files = malloc (lib->num_files * sizeof (struct GsmartFile)); + + p = lib->fats; + + while (index < lib->num_files) { + CHECK (gsmart300_download_data (lib, __GS300_FAT, index, + FLASH_PAGE_SIZE_300, p)); + if (p[0] == 0xFF) + break; + type = p[0]; + if (type == 0x00) { + snprintf (buf, 13, "Image%03d.jpg", index + 1); + lib->files[file_index].mime_type = + GSMART_FILE_TYPE_IMAGE; + lib->files[file_index].index = index; + lib->files[file_index].fat = p; + lib->files[file_index].width = (p[8] & 0xFF) * 16; + lib->files[file_index].height = (p[9] & 0xFF) * 16; + lib->files[file_index].name = strdup (buf); + file_index++; + } + + p += FLASH_PAGE_SIZE_300; + index++; + } + + return GP_OK; +} + +static int +yuv2rgb (int y, int u, int v, unsigned int *_r, unsigned int *_g, unsigned int *_b) +{ + double r, g, b; + + r = (char) y + 128 + 1.402 * (char) v; + g = (char) y + 128 - 0.34414 * (char) u - 0.71414 * (char) v; + b = (char) y + 128 + 1.772 * (char) u; + + if (r > 255) + r = 255; + if (g > 255) + g = 255; + if (b > 255) + b = 255; + if (r < 0) + r = 0; + if (g < 0) + g = 0; + if (b < 0) + b = 0; + + *_r = r; + *_g = g; + *_b = b; + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/gsmart300.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/gsmart300.h new file mode 100644 index 00000000..e7bcb1d5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/gsmart300.h @@ -0,0 +1,68 @@ +/****************************************************************/ +/* gsmart300.h - Gphoto2 library for the Mustek gSmart 300 */ +/* */ +/* Copyright (C) 2002 Jérôme Lodewyck */ +/* */ +/* Author: Jérôme Lodewyck */ +/* */ +/* based on code by: Till Adam */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#ifndef __GSMART300_H__ +#define __GSMART300_H__ +#include <_stdint.h> +#include + +#define FLASH_PAGE_SIZE_300 0x200 +#define GSMART_FILE_TYPE_IMAGE 0x00 + +#define CHECK(result) {int res; res = result; if (res < 0) return (res);} + +struct GsmartFile +{ + char *name; + int width; + int height; + int index; + uint8_t *fat; + int mime_type; +}; + +struct _CameraPrivateLibrary +{ + GPPort *gpdev; + int dirty; + int num_files; + uint8_t *fats; + struct GsmartFile *files; +}; + +int gsmart300_reset (CameraPrivateLibrary * lib); +int gsmart300_get_info (CameraPrivateLibrary * lib); +int gsmart300_delete_file (CameraPrivateLibrary * lib, unsigned int index); +int gsmart300_delete_all (CameraPrivateLibrary * lib); +int gsmart300_get_file_info (CameraPrivateLibrary * lib, unsigned int index, + struct GsmartFile **file); +int gsmart300_request_file (CameraPrivateLibrary * lib, CameraFile *file, + unsigned int number); +int gsmart300_request_thumbnail (CameraPrivateLibrary * lib, CameraFile *file, + unsigned int number, int *type); + +#endif /* __GSMART300_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/library.c new file mode 100644 index 00000000..552e01bc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/gsmart300/library.c @@ -0,0 +1,352 @@ +/****************************************************************/ +/* library.c - Gphoto2 library for the Mustek gSmart 300 */ +/* */ +/* Copyright (C) 2002 Jérôme Lodewyck */ +/* */ +/* Author: Jérôme Lodewyck */ +/* */ +/* based on code by: Till Adam */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#define _DEFAULT_SOURCE + +#include + +#include +#include +#include + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "gsmart300.h" + +#define GP_MODULE "gsmart300" +#define TIMEOUT 5000 + + +/* forward declarations */ +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context); +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context); + +static int delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context); +static int delete_all_func (CameraFilesystem *fs, const char *folder, + void *data, GPContext *context); +static int get_info_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, + void *data, GPContext *context); + +/* define what cameras we support */ +static const struct +{ + char *model; + int usb_vendor; + int usb_product; +} +models[] = +{ + { + "Mustek:gSmart 300", 0x055f, 0xc200} + , { + "Casio:LV 10", 0x055f, 0xc200} + , { + + NULL, 0, 0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "gsmart300"); + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int x = 0; + char *ptr; + CameraAbilities a; + + ptr = models[x].model; + while (ptr) { + memset (&a, 0, sizeof (a)); + strcpy (a.model, ptr); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + a.speed[0] = 0; + + a.file_operations = GP_FILE_OPERATION_PREVIEW | GP_FILE_OPERATION_DELETE; + + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + + a.usb_vendor = models[x].usb_vendor; + a.usb_product = models[x].usb_product; + + gp_abilities_list_append (list, a); + + ptr = models[++x].model; + } + + return (GP_OK); +} + + +static int +camera_exit (Camera *camera, GPContext *context) +{ + if (camera->pl) { + if (camera->pl->fats) { + free (camera->pl->fats); + camera->pl->fats = NULL; + } + if (camera->pl->files) { + free (camera->pl->files); + camera->pl->files = NULL; + } + + free (camera->pl); + camera->pl = NULL; + } + return (GP_OK); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + char tmp[1024]; + + if (camera->pl->dirty) + CHECK (gsmart300_get_info (camera->pl)); + + snprintf (tmp, sizeof (tmp), "Files: %d\n\n", camera->pl->num_files); + strcat (summary->text, tmp); + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _("gsmart300 library \n" + "Till Adam \n" + "Jerome Lodewyck \n" + "Support for Mustek gSmart 300 digital cameras\n" + "based on several other gphoto2 camlib modules and " + "the specifications kindly provided by Mustek.\n" "\n")); + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + int ret; + GPPortSettings settings; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + CHECK (gp_port_get_settings (camera->port, &settings)); + switch (camera->port->type) { + case GP_PORT_USB: + settings.usb.inep = 0x82; + settings.usb.outep = 0x03; + settings.usb.config = 1; + settings.usb.interface = 0; + settings.usb.altsetting = 0; + + CHECK (gp_port_set_settings (camera->port, settings)); + CHECK (gp_port_set_timeout (camera->port, TIMEOUT)); + + break; + default: + gp_context_error (context, + _("Unsupported port type: %d. " + "This driver only works with USB " + "cameras.\n"), camera->port->type); + return (GP_ERROR); + break; + } + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + camera->pl->gpdev = camera->port; + camera->pl->dirty = 1; + + ret = gsmart300_reset (camera->pl); + + if (ret < 0) { + gp_context_error (context, _("Could not reset camera.\n")); + free (camera->pl); + camera->pl = NULL; + + return (ret); + } + /* Set up the CameraFilesystem */ + return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); +} + + +static int +file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + int i; + char temp_file[14]; + + if (camera->pl->dirty) + CHECK (gsmart300_get_info (camera->pl)); + + for (i = 0; i < camera->pl->num_files; i++) { + strncpy (temp_file, camera->pl->files[i].name, 12); + temp_file[12] = 0; + gp_list_append (list, temp_file, NULL); + } + + return GP_OK; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + int number, filetype; + + CHECK (number = gp_filesystem_number (camera->fs, folder, filename, + context)); + switch (type) { + case GP_FILE_TYPE_NORMAL: + CHECK (gsmart300_request_file (camera->pl, file, number)); + break; + case GP_FILE_TYPE_PREVIEW: + CHECK (gsmart300_request_thumbnail + (camera->pl, file, number, &filetype)); + if (filetype == GSMART_FILE_TYPE_IMAGE) { + CHECK (gp_file_set_mime_type (file, GP_MIME_BMP)); + } + break; + default: + return GP_ERROR_NOT_SUPPORTED; + } + return GP_OK; +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, void *data, + GPContext *context) +{ + Camera *camera = data; + int n; + struct GsmartFile *file; + + /* Get the file number from the CameraFileSystem */ + CHECK (n = gp_filesystem_number (camera->fs, folder, filename, + context)); + + CHECK (gsmart300_get_file_info (camera->pl, n, &file)); + + info->file.fields = GP_FILE_INFO_TYPE + | GP_FILE_INFO_WIDTH + | GP_FILE_INFO_HEIGHT; + if (file->mime_type == GSMART_FILE_TYPE_IMAGE) { + strcpy (info->file.type, GP_MIME_JPEG); + info->preview.width = 80; + info->preview.height = 60; + } + info->file.width = file->width; + info->file.height = file->height; + + info->preview.fields = GP_FILE_INFO_TYPE + | GP_FILE_INFO_WIDTH + | GP_FILE_INFO_HEIGHT; + strcpy (info->preview.type, GP_MIME_BMP); + + return (GP_OK); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int n, c; + + /* Get the file number from the CameraFileSystem */ + CHECK (n = gp_filesystem_number (camera->fs, folder, filename, + context)); + CHECK (c = gp_filesystem_count (camera->fs, folder, context)); + if (n + 1 != c) { + const char *name; + + gp_filesystem_name (fs, "/", c - 1, &name, context); + gp_context_error (context, + _("Your camera only supports deleting " + "the last file on the camera. In this " + "case, this is file '%s'."), name); + return (GP_ERROR); + } + CHECK (gsmart300_delete_file (camera->pl, n)); + return GP_OK; +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + + CHECK (gsmart300_delete_all (camera->pl)); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/ChangeLog new file mode 100644 index 00000000..b5b8a934 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/ChangeLog @@ -0,0 +1,15 @@ +Fri Jul 15 08:15:38 CEST 2005 Marcus Meissner + + * hp215.[ch]: Capture works (slider has to be in "camera" position). + More cleanup of the cmd / reply blob handling. + Extract shootmode table... unclear what the values mean (yet). + +Sat Jul 9 17:39:28 CEST 2005 Marcus Meissner + + * *: Initial import of HP Photosmart 215 driver. + Can download images and previews, can delete single images + and all images. + + * hp215.c: + Switch to generic CRC handling, generized the command blob generation. + Added all command codes from the windows driver. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/Makefile-files new file mode 100644 index 00000000..751908f1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/Makefile-files @@ -0,0 +1,9 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += hp215.la +EXTRA_DIST += hp215/ChangeLog hp215/PROTOCOL + +hp215_la_SOURCES = hp215/hp215.c hp215/hp215.h hp215/crctab.h +hp215_la_LDFLAGS = $(camlib_ldflags) +hp215_la_DEPENDENCIES = $(camlib_dependencies) +hp215_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/PROTOCOL b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/PROTOCOL new file mode 100644 index 00000000..e7174c2d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/PROTOCOL @@ -0,0 +1,192 @@ +Every blob looks like: + 02 AA BB .... CC CC CC CC 03 + + 02 - STX + AA - cmd byte + BB - 0x80 | argumentlength + ... - argumentlength bytes + CC CC CC CC 16 bit CRC split into 4 bit pieces, | 0x80 + 03 - ETX + + Sent by driver: Sent by camera: + ----------------------------------------------- + cmd blob + 0x06 (ACK) + reply blob + 0x06 (ACK) + +Command codes: + +SET_TIME = 0x86, + Argument: 1 uint32 + +SET_TIME_AS_STR = 0x87, + Argument: 15 byte string + +SET_TIME_MODE = 0x88, + Argument: 1 uint8 + +SET_TIME_PERIOD = 0x89, + Argument: 1 uint8 + +SET_XFER_PROTOCOL = 0x8a, + Argument: 1 uint8 + +SET_AUTO_SHUTDOWN_TIME = 0x8b, + Argument: 1 uint16 + +SET_PHOTO_NO_DISPLAY_MODE = 0x8c, + Argument: 1 uint8 + +DO_CALIBRATION = 0x8d, + + GET_CALIBRATION_PARAM = 0x8e, +SET_SHOOT_AUTO = 0x90, + Arguments: 1 uint8 + +SET_FLASH = 0x91, + Arguments: 1 uint8 + +SET_EXPOSURE = 0x92, + Arguments: 1 uint16 + +SET_FOCUS = 0x93, + Arguments: 1 uint8 + +SET_SHUTTER = 0x94, + Arguments: 1 uint8 + +SET_RESOLUTION = 0x95, + Arguments: 1 uint8 + +SET_COMPRESSION = 0x96, + Arguments: 1 uint8 + +SET_TIMER = 0x97, + Arguments: 1 uint8 + +SET_EXT_FLASH = 0x98, + Arguments: 1 uint8 + +SET_PIC_FORMAT = 0x99, + Arguments: 1 uint8 + + RECORD_FUNC = 0xa2, + SET_SHOOTING_DEBUG_MODE = 0xa3, + +GET_INTERNAL_SHOOT_AUTO_FUNC = 0xa4, + No Arguments. + Reads data? + + +SET_INTERNAL_SHOOT_PARAM = 0xa6, + 66 byte arguments (InternalShootparam table) + + Data in argument: Offset in passed struct: + (uint8 (or 2 uint4) - offset 0,1 + uint16, uint16, uint16, uint16, uint32, uint32, uint32, uint32, uint32, uint32) + + reads data + +SET_SHOOT_PARAM = 0xa7, + SET_REVIEW_MODE = 0xa8, + SET_DISPLAY_PICTURE_NO = 0xa9, + SET_SHOOT_MODE_BY_INDEX = 0xaa, + GET_SHOOT_MODE_TABLE = 0xab, + SET_ACTIVE_SHOOTING_MODE = 0xac, + +TAKE_PHOTO = 0xb0, + Either no arguments (stores photo on camera)? + + + DELETE_PHOTO = 0xb1, + +PROTECT_PHOTO = 0xb2, + n* 16bit arguments - pictures to protect. + + +DOWNLOAD_THUMBNAIL = 0xb3, + 16 bit arg (picnr) + + reads data + +DOWNLOAD_PHOTO = 0xb4, + 16 bit arg (picnr) + + reads data + + +TAKE_PREVIEW = 0xb5, + Either no arguments, or a single 16 bit 1. + + No arguments -> returns data. + + Returns image date (jpeg) in the large reply blob. + Occasionaly causes next command to result in NAK. + + + SELF_TEST = 0xb6, + DISPLAY_PATTERN = 0xb7, + +UPLOAD_PHOTO = 0xb8, + argument: string/filename (with \0 ?) + writes data to the camera + + + UPLOAD_FIRMWARE = 0xba, + UPDATE_FIRMWARE = 0xbb, + +DOWNLOAD_FILE_BY_NAME = 0xbd, + argument: string/filename (with \0?) + reads data + + __UPDATE_FIRMWARE = 0xbc, + DOWNLOAD_PHOTO_FROM_ALBUM = 0xbe, + GET_CAMERA_CAPS = 0xc0, + +GET_CAMERA_CURINFO = 0xc1, + No arguments. + + Returns lots of data. + + 00: 15 byte of date string -> 0 + 0f: u7 -> 0f + 10: u7 -> 10 + /* 11 is unused I think */ + 12: u16 -> 14 + 16: u7 -> 11 + 17: u16 -> 18 + 1b: u16 -> 1c + 1f: u7 -> 13 (percentage full?) + 20: u32 -> 24 + 28: u32 -> 28 + 30: u32 -> 2c + 38: u7 -> 12 + 39: u32 UNIX time. + 41: u32 Number of free images on CF. + 49: u32 Number of images on CF. + 51: u32 + 59: u32 Free memory in Byte on CF. + + + + GET_PHOTO_INFO = 0xc5, + +GET_ALBUM_INFO = 0xc6, + Sends 1 argument (16bit), fixed 0x384 + + Returns album info blob. + 0x20 byte string albumname + 32bit int number of pictures. + +GET_CAMERA_READY = 0xce, + Argument: 1 uint32 + +GET_INTERNAL_SHOOT_PARAM = 0xcf, + No arguments. + + Reads reply blob. + + CREATE_ALBUM = 0xd0, + RENAME_ALBUM = 0xd2, + SET_ACTIVE_ALBUM = 0xd4, diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/crctab.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/crctab.h new file mode 100644 index 00000000..99c2b581 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/crctab.h @@ -0,0 +1,53 @@ +/* + * Crc calculation stuff + */ + +/* crctab calculated by Mark G. Mendel, Network Systems Corporation */ +static unsigned short crctab[256] = { + 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, + 0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef, + 0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6, + 0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de, + 0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485, + 0xa56a, 0xb54b, 0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d, + 0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4, + 0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc, + 0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823, + 0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b, + 0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12, + 0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a, + 0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41, + 0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49, + 0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70, + 0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78, + 0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f, + 0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067, + 0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e, + 0x02b1, 0x1290, 0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256, + 0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d, + 0x34e2, 0x24c3, 0x14a0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405, + 0xa7db, 0xb7fa, 0x8799, 0x97b8, 0xe75f, 0xf77e, 0xc71d, 0xd73c, + 0x26d3, 0x36f2, 0x0691, 0x16b0, 0x6657, 0x7676, 0x4615, 0x5634, + 0xd94c, 0xc96d, 0xf90e, 0xe92f, 0x99c8, 0x89e9, 0xb98a, 0xa9ab, + 0x5844, 0x4865, 0x7806, 0x6827, 0x18c0, 0x08e1, 0x3882, 0x28a3, + 0xcb7d, 0xdb5c, 0xeb3f, 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a, + 0x4a75, 0x5a54, 0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92, + 0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9, + 0x7c26, 0x6c07, 0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1, + 0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8, + 0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0 +}; + +/* + * updcrc macro derived from article Copyright 1986 Stephen Satchell. + * NOTE: First srgument must be in range 0 to 255. + * Second argument is referenced twice. + * + * Programmers may incorporate any or all code into their programs, + * giving proper credit within the source. Publication of the + * source routines is permitted so long as proper credit is given + * to Stephen Satchell, Satchell Evaluations and Chuck Forsberg, + * Omen Technology. + */ + +#define updcrc(cp, crc) ( crctab[cp ^ ((crc >> 8) & 255)] ^ (crc << 8)) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/hp215.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/hp215.c new file mode 100644 index 00000000..2c7c8fdd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/hp215.c @@ -0,0 +1,871 @@ +/***************************************************************************** + * Copyright (C) 2002 Jason Surprise * + * 2003 Enno Bartels * + * 2005 Marcus Meissner * + ***************************************************************************** + * * + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * + * Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this program; see the file COPYING.LIB. If not, * + * write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * * + *****************************************************************************/ + + +/* + Old Maintainer : Enno Bartels in 2002/2003 + Original author : Jason Surprise in 2002. + Checksum author: Roberto Ragusa in 2002/2003. + + Ported to libgphoto2: Marcus Meissner in 2005. + + Camera commands: + Global comands + Bytes | 0 1cmd 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + -------------------------------+---------------------------------------------------------------------------------- + init camera 8 | 0x02 0xce 0x80 0x8a 0x84 0x8d 0x83 0x03 + get camera date/time 8 | 0x02 0xc1 0x80 0x8b 0x84 0x8e 0x8d 0x03 + Get number of pics 16 | 0x02 0xc6 0x88 0x80 0x80 0x83 0x84 0x38 0x2f 0x30 0x32 0x88 0x84 0x8e 0x8b 0x03 + Delete all pics 12 | 0x02 0xb1 0x84 0x8f 0x8f 0x8f 0x8f 0x86 0x80 0x8a 0x86 0x03 + + + Single picture comands: + Allways 12 bytes long + | 0 1cmd 2 3 4 5 6 7 8 9 10 11 + -------------------------------+--------------------------------------------------------------- + Request for a preview | 0x02 0xb3 0x84 0x80 ... 0x03 + Request for a picture | 0x02 0xb4 0x84 0x80 ... 0x03 + Request date/time for preview | 0x02 0xc5 0x84 0x80 ... 0x03 + Request for deleting one pic | 0x02 0xb1 0x84 0x80 ... 0x03 + + 0x02 = Startcode for a command + 0x03 = Endcode for a command + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include + +#include + +#include +#include + +#include +#include +#include + +#include "crctab.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "hp215.h" + +enum hp215_cmd { + SET_TIME = 0x86, + SET_TIME_AS_STR = 0x87, + SET_TIME_MODE = 0x88, + SET_TIME_PERIOD = 0x89, + SET_XFER_PROTOCOL = 0x8a, + SET_AUTO_SHUTDOWN_TIME = 0x8b, + SET_PHOTO_NO_DISPLAY_MODE = 0x8c, + DO_CALIBRATION = 0x8d, + GET_CALIBRATION_PARAM = 0x8e, + SET_SHOOT_AUTO = 0x90, + SET_FLASH = 0x91, + SET_EXPOSURE = 0x92, + SET_FOCUS = 0x93, + SET_SHUTTER = 0x94, + SET_RESOLUTION = 0x95, + SET_COMPRESSION = 0x96, + SET_TIMER = 0x97, + SET_EXT_FLASH = 0x98, + SET_PIC_FORMAT = 0x99, + RECORD_FUNC = 0xa2, + SET_SHOOTING_DEBUG_MODE = 0xa3, + GET_INTERNAL_SHOOT_AUTO_FUNC = 0xa4, + SET_INTERNAL_SHOOT_PARAM = 0xa6, + SET_SHOOT_PARAM = 0xa7, + SET_REVIEW_MODE = 0xa8, + SET_DISPLAY_PICTURE_NO = 0xa9, + SET_SHOOT_MODE_BY_INDEX = 0xaa, + GET_SHOOT_MODE_TABLE = 0xab, + SET_ACTIVE_SHOOTING_MODE = 0xac, + TAKE_PHOTO = 0xb0, + DELETE_PHOTO = 0xb1, + PROTECT_PHOTO = 0xb2, + DOWNLOAD_THUMBNAIL = 0xb3, + DOWNLOAD_PHOTO = 0xb4, + TAKE_PREVIEW = 0xb5, + SELF_TEST = 0xb6, + DISPLAY_PATTERN = 0xb7, + UPLOAD_PHOTO = 0xb8, + UPLOAD_FIRMWARE = 0xba, + UPDATE_FIRMWARE = 0xbb, + DOWNLOAD_FILE_BY_NAME = 0xbd, + __UPDATE_FIRMWARE = 0xbc, + DOWNLOAD_PHOTO_FROM_ALBUM = 0xbe, + GET_CAMERA_CAPS = 0xc0, + GET_CAMERA_CURINFO = 0xc1, + GET_SHOOT_MODE_2 = 0xc3, + GET_PHOTO_INFO = 0xc5, + GET_ALBUM_INFO = 0xc6, + GET_CAMERA_READY = 0xce, + GET_INTERNAL_SHOOT_PARAM = 0xcf, + CREATE_ALBUM = 0xd0, + RENAME_ALBUM = 0xd2, + SET_ACTIVE_ALBUM = 0xd4, +}; + +/* + Every commands looks like: + 02 AA BB .... CC CC CC CC 03 + + 02 - STX + AA - cmd byte + BB - 0x80 | argumentlength + ... - argumentlength bytes + CC CC CC CC 16 bit CRC split into 4 bit pieces, | 0x80 + 03 - ETX + + A generic CRC is done over the buffer, starting with the CMD byte (offset 1). + + buffer[7] = ((crc>>12) & 0xf) | 0x80; + buffer[8] = ((crc>>8 ) & 0xf) | 0x80; + buffer[9] = ((crc>>4 ) & 0xf) | 0x80; + buffer[10] = ((crc ) & 0xf) | 0x80; + + buffer[11] = 0x03; + +*/ + +static int +hp_gen_cmd_blob (enum hp215_cmd cmd, int bytes, unsigned char *argdata, unsigned char **buf, int *buflen) +{ + int i, crc = 0; + + *buflen = 1+1+1+bytes+4+1; /* STX, CMD, ARGLEN, arguments, 4xCRC, ETX */ + *buf = malloc(*buflen); + if (!*buf) + return GP_ERROR_NO_MEMORY; + + /* store STX */ + (*buf)[0] = STX; + + /* store CMD */ + (*buf)[1] = cmd; + if (bytes >= 0x7d) { + gp_log (GP_LOG_ERROR, "hp215", "Using too large argument buffer %d bytes", bytes); + free (*buf); + *buf = NULL; + return GP_ERROR_BAD_PARAMETERS; + } + /* store arglen */ + (*buf)[2] = 0x80 | bytes; + + if (bytes) { + /* store arguments */ + memcpy ((*buf)+3, argdata, bytes); + } + + /* generate CRC over cmd, len, and arguments */ + for (i=1;i> 12) & 0xf) | 0x80; + (*buf)[bytes+4] = ((crc >> 8) & 0xf) | 0x80; + (*buf)[bytes+5] = ((crc >> 4) & 0xf) | 0x80; + (*buf)[bytes+6] = ((crc >> 0) & 0xf) | 0x80; + /* store ETX */ + (*buf)[bytes+7] = ETX; + return GP_OK; +} + +static int +hp_gen_cmd_1_16 (enum hp215_cmd cmd, unsigned short val, unsigned char **buf, int *buflen) +{ + unsigned char argbuf[4]; + + argbuf[0] = ((val&0xf000)>>12) | 0x80; + argbuf[1] = ((val&0x0f00)>> 8) | 0x80; + argbuf[2] = ((val&0x00f0)>> 4) | 0x80; + argbuf[3] = ((val&0x000f) ) | 0x80; + return hp_gen_cmd_blob (cmd, 4, argbuf, buf, buflen); +} + + +static int +hp_send_ack (Camera *cam) +{ + char byte = ACK; + int ret; + + gp_log (GP_LOG_DEBUG, "hp215", "Sending ACK ... "); + ret = gp_port_write (cam->port, &byte, 1); + if (ret < GP_OK) + gp_log (GP_LOG_ERROR, "hp215", "ACK sending failed with %d", ret); + return ret; +} + + +static int +hp_rcv_ack (Camera *cam, char *ackval) +{ + int ret; + char byte = '\0'; + + gp_log (GP_LOG_DEBUG, "hp215", "Receiving ACK ... "); + ret = gp_port_read (cam->port, &byte, 1); + if (ret < GP_OK) + return ret; + if (ackval) + *ackval = byte; + if (byte == ACK) + return GP_OK; + gp_log (GP_LOG_DEBUG, "hp215", "Expected ACK, but read %02x", byte); + return GP_ERROR_IO; +} + +static int +decode_u32(unsigned char **msg, int *msglen, unsigned int *val) { + unsigned int x = 0,i; + *val = 0; + for (i=0;i<8;i++) { + if (!*msglen) + return GP_ERROR; + x <<= 4; + x |= ((**msg) & 0x0f); + (*msg)++; + (*msglen)--; + } + *val = x; + return GP_OK; +} + +static int +decode_u16(unsigned char **msg, int *msglen, unsigned short *val) { + unsigned int x = 0,i; + *val = 0; + for (i=0;i<4;i++) { + if (!*msglen) + return GP_ERROR; + x <<= 4; + x |= ((**msg) & 0x0f); + (*msg)++; + (*msglen)--; + } + *val = x; + return GP_OK; +} + +static int +hp_send_command_and_receive_blob( + Camera *camera, unsigned char *buf, int buflen, + unsigned char **msg, int *msglen, unsigned int *retcode +) { + int tries, ackret, ret, replydatalen; + unsigned char msgbuf[0x400]; + char ackval; + + tries = 0; + *msg = NULL; + *msglen = 0; + for (tries = 0; tries < 3; tries++ ) { + ret = gp_port_write (camera->port, (char*)buf, buflen); + if (ret < GP_OK) + return ret; + ret = hp_rcv_ack (camera, &ackval); + if (ret < GP_OK) { + if (ackval == NAK) + continue; + return GP_ERROR_IO; + } + break; + } + gp_log( GP_LOG_DEBUG, "hp215", "Expecting reply blob"); + ret = gp_port_read (camera->port, (char*)msgbuf, sizeof(msgbuf)); + if (ret < GP_OK) + return ret; + ackret = hp_send_ack (camera); + if (ackret < GP_OK) + return ackret; + if (msgbuf[0] != STX) { + gp_log (GP_LOG_ERROR, "hp215", "Expected STX / 02 at begin of buffer, found %02x", msgbuf[0]); + return GP_ERROR_IO; + } + if (msgbuf[ret-1] != ETX) { + gp_log (GP_LOG_ERROR, "hp215", "Expected ETX / 03 at end of buffer, found %02x", msgbuf[ret-1]); + return GP_ERROR_IO; + } + replydatalen = msgbuf[2] & 0x7f; + if (replydatalen != ret - 8) { + gp_log (GP_LOG_ERROR, "hp215", "Reply datablob length says %d, but just %d bytes available?", replydatalen, ret-8); + return GP_ERROR_IO; + } + if (replydatalen < 2) { + gp_log (GP_LOG_ERROR, "hp215", "Reply datablob length is smaller than retcode (%d)", replydatalen); + return GP_ERROR_IO; + } + *retcode = (msgbuf[3] << 8) | msgbuf[4]; + + if (msgbuf[2] == 0xff) { + unsigned char *xmsg = msgbuf+5; + int xmsglen = 8; + unsigned int newlen; + char eot; + /* ok, overlong reply */ + + ret = decode_u32(&xmsg, &xmsglen, &newlen); + if (ret < GP_OK) + return ret; + replydatalen = newlen; + *msglen = replydatalen; + *msg = malloc (replydatalen); + ret = gp_port_read (camera->port, (char*)*msg, replydatalen); + if (ret < GP_OK) { + free (*msg); + *msg = NULL; + return ret; + } + ret = gp_port_read (camera->port, &eot, 1); + if (ret < GP_OK) { + free (*msg); + *msg = NULL; + return ret; + } + if (ret != 1) { + free (*msg); + *msg = NULL; + return GP_ERROR_IO; + } + if (eot != EOT) { + free (*msg); + *msg = NULL; + gp_log (GP_LOG_ERROR, "hp215", "read %02x instead of expected 04", eot); + return GP_ERROR_IO; + } + ackret = hp_send_ack (camera); + if (ackret < GP_OK) { + free (*msg); + *msg = NULL; + return ackret; + } + } else { + /* short reply - normal mode, do not copy E0 E0 */ + *msg = malloc (replydatalen-2); + *msglen = replydatalen-2; + memcpy (*msg, msgbuf+5, replydatalen-2); + } + gp_log (GP_LOG_DEBUG, "hp215", "Read Blob: retcode is %04x", *retcode); + GP_LOG_DATA ((char*)*msg, *msglen, "Read Blob: argument block is:"); + return GP_OK; +} + +static int +hp_get_timeDate_cam (Camera *cam, char *txtbuffer, size_t txtbuffersize) +{ + int msglen, buflen, ret; + unsigned char *xmsg, *msg, *buf; + unsigned int retcode; + t_date date; + unsigned short val16; + unsigned int percent, val32, freespace, unixtime, freeimages, usedimages; + char datebuf[15]; + + gp_log (GP_LOG_DEBUG, "hp215", "Sending date/time command ... "); + + ret = hp_gen_cmd_blob (GET_CAMERA_CURINFO, 0, NULL, &buf, &buflen); + if (ret < GP_OK) + return ret; + ret = hp_send_command_and_receive_blob (cam, buf, buflen, &msg, &msglen, &retcode); + free (buf); + if (ret < GP_OK) + return ret; + xmsg = msg; + if (msglen < 0x59) { + free (msg); + gp_log (GP_LOG_ERROR, "hp215", "too short reply block, %d bytes", msglen); + return GP_ERROR_IO; + } + + memcpy (datebuf, msg, 15); + gp_log (GP_LOG_DEBUG, "hp215", "0f: %02x", msg[0x0f] & 0x7f); + gp_log (GP_LOG_DEBUG, "hp215", "10: %02x", msg[0x10] & 0x7f); + + xmsg += 0x12; + msglen -= 0x12; + decode_u16(&xmsg, &msglen, &val16); + gp_log (GP_LOG_DEBUG, "hp215", "12: %04x", val16); + gp_log (GP_LOG_DEBUG, "hp215", "16: %02x", msg[0x16] & 0x7f); + xmsg++;msglen--; + decode_u16(&xmsg, &msglen, &val16); + gp_log (GP_LOG_DEBUG, "hp215", "17: %04x", val16); + decode_u16(&xmsg, &msglen, &val16); + gp_log (GP_LOG_DEBUG, "hp215", "1b: %04x", val16); + percent = msg[0x1f] & 0x7f; + xmsg++;msglen--; + decode_u32(&xmsg, &msglen, &val32); + gp_log (GP_LOG_DEBUG, "hp215", "20: %08x", val32); + decode_u32(&xmsg, &msglen, &val32); + gp_log (GP_LOG_DEBUG, "hp215", "28: %08x", val32); + decode_u32(&xmsg, &msglen, &val32); + gp_log (GP_LOG_DEBUG, "hp215", "30: %08x", val32); + gp_log (GP_LOG_DEBUG, "hp215", "38: %02x", msg[0x38] & 0x7f); + xmsg++;msglen--; + decode_u32(&xmsg, &msglen, &unixtime); + decode_u32(&xmsg, &msglen, &freeimages); + decode_u32(&xmsg, &msglen, &usedimages); + decode_u32(&xmsg, &msglen, &val32); + gp_log (GP_LOG_DEBUG, "hp215", "51: %08x", val32); + decode_u32(&xmsg, &msglen, &freespace); + + /* Filter time and date out of the message */ + date.day = (msg[3]-48)*10 + (msg[4]-48); + date.month = (msg[0]-48)*10 + (msg[1]-48); + date.year = 2000 + (msg[6]-48)*10 + (msg[7]-48); + date.hour = (msg[9]-48)*10 + (msg[10]-48); + date.min = (msg[12]-48)*10 + (msg[13]-48); + free (msg); + + + snprintf (txtbuffer, txtbuffersize, _("Current camera time: %04d-%02d-%02d %02d:%02d\nFree card memory: %d\nImages on card: %d\nFree space (Images): %d\nBattery level: %d %%."), + date.year, date.month, date.day, date.hour, date.min, + freespace, usedimages, freeimages, percent + ); + /* FIXME: communication hangs here ... perhaps need to reset USB pipe */ + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + char buffer[200]; + int ret; + + ret = hp_get_timeDate_cam (camera, buffer, sizeof(buffer)); + if (ret < GP_OK) + return ret; + strcpy (summary->text, buffer); + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("hp215\n" + "Marcus Meissner \n" + "Driver to access the HP Photosmart 215 camera.\n" + "Merged from the standalone hp215 program.\n" + "This driver allows download of images and previews, and deletion of images.\n" + )); + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + int ret, buflen, msglen, image_no; + unsigned char cmd, *buf, *msg; + unsigned int retcode; + + image_no = gp_filesystem_number(fs, folder, filename, context); + if(image_no < 0) + return image_no; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + cmd = DOWNLOAD_PHOTO; + break; + case GP_FILE_TYPE_PREVIEW: + cmd = DOWNLOAD_THUMBNAIL; + break; + default: + return GP_ERROR_BAD_PARAMETERS; + } + + ret = hp_gen_cmd_1_16 (cmd, image_no+1, &buf, &buflen); + if (ret < GP_OK) + return ret; + ret = hp_send_command_and_receive_blob (camera, buf, buflen, &msg, &msglen, &retcode); + free (buf); + if (ret < GP_OK) + return ret; + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_data_and_size (file, (char*)msg, msglen); + /* do not free (msg), we handed it to the lower layer right now */ + return GP_OK; +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int image_no, ret, msglen, buflen; + unsigned char *msg, *buf; + unsigned int retcode; + + image_no = gp_filesystem_number(fs, folder, filename, context); + if(image_no < 0) + return image_no; + ret = hp_gen_cmd_1_16 (DELETE_PHOTO, image_no+1, &buf, &buflen); + if (ret < GP_OK) + return ret; + ret = hp_send_command_and_receive_blob (camera, buf, buflen, &msg, &msglen, &retcode); + free (buf); + if (ret < GP_OK) + return ret; + free (msg); + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + unsigned char *buf; + unsigned char *msg; + unsigned int retcode; + int ret, buflen, msglen; + + ret = hp_gen_cmd_1_16 (DELETE_PHOTO, 0xFFFF, &buf, &buflen); + if (ret < GP_OK) + return ret; + ret = hp_send_command_and_receive_blob (camera, buf, buflen, &msg, &msglen, &retcode); + free (buf); + if (ret < GP_OK) + return ret; + free (msg); + return (GP_OK); +} + + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + int ret, msglen, buflen, /* offset = 13, */ image_no; + unsigned int val, retcode; + unsigned char *xmsg, *msg, *buf; + + gp_log (GP_LOG_DEBUG, "hp215", "folder %s, filename %s", folder, filename); + + image_no = gp_filesystem_number(fs, folder, filename, context); + if(image_no < 0) + return image_no; + ret = hp_gen_cmd_1_16 (GET_PHOTO_INFO, image_no+1, &buf, &buflen); + if (ret < GP_OK) + return ret; + ret = hp_send_command_and_receive_blob (camera, buf, buflen, &msg, &msglen, &retcode); + free (buf); + if (ret < GP_OK) + return ret; + + if (msglen < 2) { + free (msg); + return GP_ERROR_IO; + } + +/* +0000 80 80 80 85 86 85-84 84 30 31 2f 30 32 2f ..........01/02/ +0010 30 30 20 31 34 3a 34 38-00 80 81 80 80 80 80 81 00 14:48........ +0020 88 89 84 81 80 80 80 80-80 81 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 - ...... + */ + xmsg = msg; + ret = decode_u32(&xmsg, &msglen, &val); + if (ret < GP_OK) { + free (msg); + return ret; + } + memset (info, 0, sizeof(*info)); + info->file.fields = GP_FILE_INFO_SIZE; + info->file.size = val; + + xmsg += 0x0f; + msglen -= 0x0f; + gp_log (GP_LOG_DEBUG, "hp215", "byte0 %02x", xmsg[0]); + gp_log (GP_LOG_DEBUG, "hp215", "byte1 %02x", xmsg[1]); + xmsg += 2; + msglen -= 2; + + ret = decode_u32(&xmsg, &msglen, &val); + if (ret < GP_OK) { + free (msg); + return ret; + } + info->preview.fields = GP_FILE_INFO_SIZE; + info->preview.size = val; + + gp_log (GP_LOG_DEBUG, "hp215", "byte2 %02x", xmsg[0]); + gp_log (GP_LOG_DEBUG, "hp215", "byte3 %02x", xmsg[1]); + + free (msg); + return GP_OK; +#if 0 + strcpy ((camera->pic[cnt+1])->date_time, &msg[0x0d]); + + /* Calculate day,month, year, hour and minute of the photo */ + (camera->pic[cnt+1])->date.day = (msg[3+offset]-48)*10 + (msg[4+offset]-48); + (camera->pic[cnt+1])->date.month = (msg[0+offset]-48)*10 + (msg[1+offset]-48); + (camera->pic[cnt+1])->date.year = 2000 + (msg[6+offset]-48)*10 + (msg[7+offset]-48); + (camera->pic[cnt+1])->date.hour = (msg[ 9+offset]-48)*10 + (msg[10+offset]-48); + (camera->pic[cnt+1])->date.min = (msg[12+offset]-48)*10 + (msg[13+offset]-48); + + /* Get the file info here and write it into */ + + return (GP_OK); +#endif +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int ret, msglen, buflen; + unsigned int retcode, count; + unsigned char *xmsg, *msg, *buf; + + /* Note: The original windows driver sends 0x348, and 4 bytes junk. + * we just send the 0x348 and it works. */ + ret = hp_gen_cmd_1_16 (GET_ALBUM_INFO, 0x348, &buf, &buflen); + if (ret < GP_OK) + return ret; + gp_log (GP_LOG_DEBUG, "hp215", "Sending photo album request ... "); + ret = hp_send_command_and_receive_blob (camera, buf, buflen, &msg, &msglen, &retcode); + free (buf); + if (ret < GP_OK) + return ret; + xmsg = msg + 0x20; /* skip 0x20 byte string */ + msglen = msglen - 0x20; + ret = decode_u32(&xmsg, &msglen, &count); + free (msg); + if (ret < GP_OK) + return ret; + return gp_list_populate(list, "image%i.jpg", count); +} + +#if 0 /* This function is not used by anybody */ +static int +get_shoot_mode_table (Camera *camera) { + unsigned char *buf, *msg, *xmsg; + int ret, buflen, msglen; + unsigned int i, cnt, val1, val2, val3, retcode; + + ret = hp_gen_cmd_blob (GET_SHOOT_MODE_TABLE, 0, NULL, &buf, &buflen); + if (ret < GP_OK) + return ret; + ret = hp_send_command_and_receive_blob (camera, buf, buflen, &msg, &msglen, &retcode); + gp_port_set_timeout (camera->port, 10000); + free (buf); + if (ret < GP_OK) + return ret; + if (retcode != HP215_OK) { + free (msg); + return GP_ERROR_BAD_PARAMETERS; + } + xmsg = msg; + ret = decode_u32(&xmsg, &msglen, &val1); + if (ret < GP_OK) return ret; + ret = decode_u32(&xmsg, &msglen, &val2); + if (ret < GP_OK) return ret; + ret = decode_u32(&xmsg, &msglen, &val3); + if (ret < GP_OK) return ret; + + gp_log (GP_LOG_DEBUG, "hp215", "shootmode table 0x%08x, 0x%08x, 0x%08x", val1, val2, val3); + + cnt = val1+val2; + for (i=0;iport, 10000); + ret = hp_send_command_and_receive_blob (camera, buf, buflen, &msg, &msglen, &retcode); + free (buf); + if (ret < GP_OK) + return ret; + if (retcode != HP215_OK) { + free (msg); + return GP_ERROR_BAD_PARAMETERS; + } + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_data_and_size (file, (char*)msg, msglen); + /* do not free (msg), we handed it to the lower layer right now */ + return ret; +} + + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + unsigned char *buf, *msg; + int ret, buflen, msglen; + unsigned int retcode; + +/* get_shoot_mode_table (camera); */ + + /*ret = hp_gen_cmd_1_16 (TAKE_PHOTO, 1, &buf, &buflen);*/ /* download after capture */ + gp_port_set_timeout (camera->port, 60000); + ret = hp_gen_cmd_blob (TAKE_PHOTO, 0, NULL, &buf, &buflen); /* store on camera */ + if (ret < GP_OK) + return ret; + ret = hp_send_command_and_receive_blob (camera, buf, buflen, &msg, &msglen, &retcode); + gp_port_set_timeout (camera->port, 10000); + free (buf); + if (ret < GP_OK) + return ret; + free (msg); + /* + * tell libgphoto2 where to find it by filling out the path. + */ + return GP_OK; +} + + +int +camera_id (CameraText *id) { + strcpy(id->text, "hp215"); + return (GP_OK); +} + + +int +camera_abilities (CameraAbilitiesList *list) { + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "HP:PhotoSmart 215"); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + a.usb_vendor = 0x3f0; /* HP */ + a.usb_product = 0x6202; /* Photosmart 215 */ + a.operations = GP_OPERATION_CAPTURE_PREVIEW | GP_OPERATION_CAPTURE_IMAGE; + a.file_operations = GP_FILE_OPERATION_DELETE | GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + return gp_abilities_list_append(list, a); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + unsigned char *msg,*buf; + int ret, msglen, buflen; + unsigned int retcode; + GPPortSettings settings; + + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->capture = camera_capture; + camera->functions->capture_preview = camera_capture_preview; + + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + gp_port_get_settings (camera->port, &settings); + settings.usb.inep = 0x83; + settings.usb.outep = 0x04; + gp_port_set_settings (camera->port, settings); + /* This function does the initialisation sequence. + * CMD = 0xce, REPLY = 2 byte, 0xe0 0xe0 ... apparently means ok. + */ + gp_log (GP_LOG_DEBUG, "hp215", "Sending init sequence ... "); + ret = hp_gen_cmd_blob (GET_CAMERA_READY, 0, NULL, &buf, &buflen); + if (ret < GP_OK) + return ret; + ret = hp_send_command_and_receive_blob (camera, buf, buflen, &msg, &msglen, &retcode); + free (buf); + if (ret < GP_OK) + return ret; + free (msg); + if (retcode != HP215_OK) + return GP_ERROR_IO; + return ret; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/hp215.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/hp215.h new file mode 100644 index 00000000..344f15d6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/hp215/hp215.h @@ -0,0 +1,45 @@ +#ifndef _HP215_H +#define _HP215_H +/***************************************************************************** + * Copyright (C) 2002 Jason Surprise * + * 2003 Enno Bartels * + * 2005 Marcus Meissner * + ***************************************************************************** + * * + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * + * Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this program; see the file COPYING.LIB. If not, * + * write to the * + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * + * Boston, MA 02110-1301 USA * + *****************************************************************************/ + +#define STX 0x02 +#define ETX 0x03 +#define EOT 0x04 +#define ACK 0x06 +#define NAK 0x15 + +#define HP215_OK 0xe0e0 + +typedef struct +{ + unsigned int hour; + unsigned int min; + unsigned int sec; + + unsigned int day; + unsigned int month; + unsigned int year; + +} t_date; +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/ChangeLog new file mode 100644 index 00000000..46a73dfb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/ChangeLog @@ -0,0 +1,13 @@ +2004-11-26 Theodore Kilgore + * library.c: Fixed signedness errors + * iclick.c: ditto + * iclick.h: changed a return type from char* to int + +2004-11-29 Marcus Meissner + + * .cvsignore: ignore stuff + * library.c: Fixed C99ism (by Dan Fandrich) + +2004-11-26 Theodore Kilgore + + * *.[c,h]: First check-in. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/Makefile-files new file mode 100644 index 00000000..7b5ffa5a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/Makefile-files @@ -0,0 +1,12 @@ +# -*- Makefile -*- + +EXTRA_DIST += iclick/README.iclick iclick/ChangeLog +camlibdoc_DATA += iclick/README.iclick + +EXTRA_LTLIBRARIES += iclick.la + +iclick_la_SOURCES = iclick/library.c iclick/iclick.c iclick/iclick.h +iclick_la_LDFLAGS = $(camlib_ldflags) +iclick_la_DEPENDENCIES = $(camlib_dependencies) +iclick_la_LIBADD = $(camlib_libadd) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/README.iclick b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/README.iclick new file mode 100644 index 00000000..af511230 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/README.iclick @@ -0,0 +1,78 @@ +/* This is a supplemental README file for libgphoto2/camlibs/iclick, + * another camera fro S&Q Technologies. + * Integral part of the libgphoto2/camlibs/iclick library source and is + * distributed with that source under the LGPL license. a copy of which + * license may be seen in any of the source files in libgphoto2/camlibs/iclick, + * or in the head directory of libgphoto2. This README and the rest of the + * library are copyright Stephen Pollei and + * Theodore Kilgore . + */ + +************************************************************************** +BIG FAT WARNING + +This library is in the process of being written, and at present is of +limited functionality. As far as we know, it will do what we say it will do, +and it will also not do what we say it will not do. Therefore, please read +the following discussion of the features which are supported at present and +the features which are not supported! We hope to be able to do more, and if +you have one of these cameras we hope that you will look for anticipated +updates at the CVS tree of libgphoto2, found at . +*************************************************************************** + + +This library has been written specifically to support the iClick Pro 5X, +a simple and inexpensive camera. A brief description of the camera may be +found at . + +The camera has the USB Vendor:Product ID of 0x2770:0x9153, which would +seem to indicate that it contains a chip from S&Q Technologies, Taiwan. The +same company makes the sq905 chipset which is in many entry-level cameras; +the chip in this camera is probably an sq915 chip, and it uses a different +communication protocol. Probably, any other cameras with this chip inside +will also work with this camera library, but we do not know that at this +time. + +The camera has a flash, takes 640x480 pictures, and has a slot for a memory +card. Without the memory card, it will hold 16 still photos, and with a +memory card (maximum size is advertised as 128MB) it will clearly hold many +more. A memory card has been tested with the camera and seems to work +without any problems. + +The 640x480 photos can be blown up to a larger size by the OEM driver which +comes with the camera. It is stated in the documentation that this is done +by "interpolation" meaning that the actual amount of data is 640x480. The +format of the data from the camera is a standard Bayer format, and this +driver should download such photos. The photos look fairly sharp for +640x480; the color mapping could however be improved by postprocessing. For +now, we recommend the use of GIMP or the old xview ("xv") program to do that +after you download the photos. + +It is important to note that the construction of the hardware itself will +not easily support downloading of random photos, which may present severe +incompatibility with a GUI program such as gtkam, digikam, or similar. +Thus, the user is advised to use the command "gphoto2 -P" to dump all photos +on the camera into a directory. After this, the user can inspect at leisure +the photos on the hard drive and can decide which ones to keep and which +ones to delete. We repeat: We do not advise the use of a GUI frontend at +this time, because we cannot guarantee that it will work. + +The camera also has two other modes of operation, which this driver does not +support. There is a "video clip" feature which will shoot a number of +frames. Apparently, these frames are then saved in some kind of JPEG format, +and the size is given in the JPEG headers in the data as 320x240. This +feature is at present NOT SUPPORTED. So please do not try to use it and +especially do not try to mix clips with still photos on the camera. The fact +that the clips are not of a fixed, given size will mess up your download. + +There is also a webcam feature. Gphoto2-libgphoto2 is in general not +designed to support streaming video, which in general requires a kernel +module. Abstractly speaking, the command "gphoto2 --capture-preview" can use +the webcam mode to cause a tethered camera to snap a photo. This also we do +not support at present. So if you make it work be sure to let us know. + +Taking the above caveats fully into consideration, we hope that you enjoy +your experience with this camera. + +Stephen Pollei and Theodore Kilgore +November 25, 2004. \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/iclick.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/iclick.c new file mode 100644 index 00000000..3de9c441 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/iclick.c @@ -0,0 +1,180 @@ +/* + * iclick.c + * + * Here, the functions which are needed to get data from the camera. + * + * Copyright (c) 2004 Theodore Kilgore , + * Stephen Pollei . + * Camera library support under libgphoto2.1.1 for camera(s) + * with chipset from Service & Quality Technologies, Taiwan. + * The chip supported by this driver is presumed to be the SQ915. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * Licensed under GNU Lesser General Public License, as part of Gphoto + * camera support project. For a copy of the license, see the file + * COPYING in the main source tree of libgphoto2. + */ + +#include + + +#include +#include +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include +#include +#include "iclick.h" + +#define GP_MODULE "iclick" + +#define SQWRITE gp_port_usb_msg_write +#define SQREAD gp_port_usb_msg_read + +#define zero "\x0" + +/* +static unsigned char * +icl_read_data (GPPort *port, unsigned char *data, int size) +{ + gp_port_read (port, data, size); + return GP_OK; +} +*/ + +int icl_access_reg (GPPort *port, enum icl_cmnd_type reg) +{ + SQWRITE (port, 0x0c, reg, + (CONFIG == reg) ? CONFIG_I : 0, + NULL, 0); /* Access a register */ + return GP_OK; +} + +int +icl_init (GPPort *port, CameraPrivateLibrary *priv) +{ + int i; + static unsigned char dummy_buf[0x28000]; + unsigned char *catalog = malloc(0x8000); + unsigned char *catalog_tmp; + + priv->model=SQ_MODEL_ICLICK; + + + if (!catalog) return GP_ERROR_NO_MEMORY; + + + icl_reset (port); + + icl_access_reg(port, CONFIG); /* Access config */ + gp_port_read(port, (char *)catalog, 0x8000); + /* Config data is in lines of 16 bytes. Each photo uses two lines. */ + icl_read_picture_data(port, dummy_buf, 0x28000); + icl_reset (port); + + /* Photo list starts with line 0040. List terminates when we + * the first entry of an even-numbered line is zero. */ + for (i=0; i< (0x8000 - 64) && catalog[i+64] ; i+=32) + ; + priv->nb_entries = i>>5; + if (i) { + catalog_tmp = realloc(catalog, i); + if (catalog_tmp) + priv->catalog = catalog_tmp; + else + priv->catalog = catalog; + } else { + free(catalog); + priv->catalog = NULL; /* We just have freed catalog_tmp */ + } + + icl_reset (port); + + priv->data_offset = -1; + + return GP_OK; +} + +int +icl_get_start (CameraPrivateLibrary *priv, int entry) +{ + int start = 0x4b100 * entry; + return start; +} + +int +icl_get_size (CameraPrivateLibrary *priv, int entry) +{ + return 0x4b100; +} + + +int +icl_get_width_height (CameraPrivateLibrary *priv, int entry, int *w, int *h) +{ + *w = 640; + *h = 480; + return GP_OK; +} + + +int +icl_rewind (GPPort *port, CameraPrivateLibrary *priv) +{ + static unsigned char dummy_buf[0x30000]; + + GP_DEBUG("REWIND cam's data pointer"); + + /* One has to read the catalog to rewind the data stream... + * I don't know if it's by design. + * There ought to be something better to do... :-/ + */ + + + icl_access_reg(port, CONFIG); /* Access model */ + + icl_read_picture_data(port, dummy_buf, 0x30000); + + icl_reset (port); + icl_access_reg(port, DATA); /* Access photo data */ + + priv->data_offset = icl_get_start (priv, 0); + + return GP_OK; +} + +int +icl_reset (GPPort *port) +{ + icl_access_reg(port, CLEAR); /* Release current register */ + + return GP_OK; +} + +int +icl_read_picture_data (GPPort *port, unsigned char *data, int size ) +{ + int remainder = size % 0x8000; + int offset = 0; + + while ((offset + 0x8000) <= size) { + gp_port_read (port, (char *)data + offset, 0x8000); + offset += 0x8000; + } + if (remainder) + gp_port_read (port, (char *)data + offset, remainder); + + return GP_OK; +} + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/iclick.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/iclick.h new file mode 100644 index 00000000..6f721252 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/iclick.h @@ -0,0 +1,94 @@ +/* + * iclick.c + * + * Here, the functions which are needed to get data from the camera. + * + * Copyright (c) 2004 Theodore Kilgore , + * Stephen Pollei . + * Camera library support under libgphoto2.1.1 for camera(s) + * with chipset from Service & Quality Technologies, Taiwan. + * The chip supported by this driver is presumed to be the SQ915. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * Licensed under GNU Lesser General Public License, as part of Gphoto + * camera support project. For a copy of the license, see the file + * COPYING in the main source tree of libgphoto2. + */ + + + +#ifndef __ICLICK_H__ +#define __ICLICK_H__ + +#include + +/* A 'picture' is a single standalone picture. + * A 'clip' is an autoshoot clip. + * A 'frame' is a single a picture out of a clip. + * An 'entry' corresponds to a line listed in the camera's configuration data, + * part of which is a rudimentary allocation table (the 'catalog'). + * An entry, therefore, may be either a picture or a clip. + * We reserve the word 'file' for the user fetchable file, + * that is, a picture or a frame. + */ + + +typedef enum { + SQ_MODEL_POCK_CAM, + SQ_MODEL_PRECISION, + SQ_MODEL_MAGPIX, + SQ_MODEL_ICLICK, + SQ_MODEL_DEFAULT +} SQModel; + + + +struct _CameraPrivateLibrary { + SQModel model; + unsigned char *catalog; + int nb_entries; + int data_offset; +}; + + +/* #define ID 0xf0 */ +enum icl_cmnd_type { + CONFIG =0x20, + DATA =0x30, + CLEAR =0xa0, + CAPTURE=0x61, +}; + +enum icl_index_type { + CONFIG_I =0x300, + DATA_I =0x000, + CLEAR_I =0x000, + CAPTURE_I=0x000, +}; + + +int icl_access_reg (GPPort *, enum icl_cmnd_type); + +#if 0 +#define icl_access_reg(iar_port, iar_kind) do { \ + SQWRITE (iar_port, 0x0c, iar_kind, iar_kind##_I, NULL, 0); \ + } while (0) +#endif + +int icl_reset (GPPort *); +int icl_rewind (GPPort *, CameraPrivateLibrary *); +int icl_init (GPPort *, CameraPrivateLibrary *); +int icl_read_picture_data (GPPort *, unsigned char *data, int size); + +/* Those functions don't need data transfer with the camera */ + +int icl_get_start (CameraPrivateLibrary *, int entry); +int icl_get_size (CameraPrivateLibrary *, int entry); +int icl_get_width_height (CameraPrivateLibrary *, int entry, int *w, int *h); + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/library.c new file mode 100644 index 00000000..84451abc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/iclick/library.c @@ -0,0 +1,365 @@ +/* library.c + * + * Copyright (C) 2004 Theodore Kilgore , + * Stephen Pollei . + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include + +#include +#include +#include + +#include +#include + + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "iclick.h" + +#include + +#define GP_MODULE "iclick" + +static struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {"iClick 5X", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9153}, + {NULL,0,0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "iClick 5X"); + + return GP_OK; +} + + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].name); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + if (a.status == GP_DRIVER_STATUS_EXPERIMENTAL) + a.operations = GP_OPERATION_NONE; + else + a.operations = GP_OPERATION_CAPTURE_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + a.file_operations = GP_FILE_OPERATION_PREVIEW + GP_FILE_OPERATION_RAW; + gp_abilities_list_append (list, a); + } + + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + sprintf (summary->text,_("Your USB camera is an iClick 5X.\n" + "The total number of pictures taken is %i\n"), + + camera->pl->nb_entries); + + return GP_OK; +} + +static int camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy(manual->text, + _( + "Information regarding cameras with ID 0x2770:0x9153.\n\n" + "We do not recommend the use of a GUI program to access\n" + "this camera, unless you are just having fun or trying to\n" + "see if you can blow a fuse.\n" + "For production use, try\n" + "gphoto2 -P\n" + "from the command line.\n" + "Note: it is not possible to download video clips.\n") + ); + + return (GP_OK); +} + + + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("iClick 5X driver\n" + "Theodore Kilgore \n")); + + return GP_OK; +} + +/*************** File and Downloading Functions *******************/ + + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i; + unsigned char buf[1024]; + GP_DEBUG ("List files in %s\n", folder); + + gp_list_reset (list); + for (i = 0; i < camera->pl->nb_entries; i++) { + snprintf((char *)buf, sizeof(buf), "img%03i.ppm", i + 1); + gp_list_append (list, (char *)buf, NULL); + } + + return GP_OK; +} + + + + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int entry, w, h; /* frame; */ + unsigned char *frame_data, *frame_ptr; + unsigned char *ppm, *ptr; + unsigned char gtable[256]; + int start; + int datasize, hdrsize, ppmsize; + int nb_frames=1; + unsigned char buf[0x8000]; + +#if 0 /* libgphoto2 likes to search in vain for EXIF data, which isn't there. + It's a waste of time, and there should be a way to disable it + explicitly. But there isn't. Un-if this if you don't like it, + and you can still retrieve the first frame of a video via the + frame filename instead. */ + if (GP_FILE_TYPE_PREVIEW==type) + return GP_ERROR_NOT_SUPPORTED; +#endif + + if (GP_FILE_TYPE_RAW!=type && GP_FILE_TYPE_NORMAL!=type + && GP_FILE_TYPE_PREVIEW!=type) { + + return GP_ERROR_NOT_SUPPORTED; + } + + /* Get the entry number of the photo on the camera */ + entry = gp_filesystem_number (camera->fs, folder, filename, context); + if (entry < GP_OK) + return GP_ERROR_FILE_NOT_FOUND; + + GP_DEBUG ("Download file %s, entry = %d\n", + filename, entry); + + if (entry >= camera->pl->nb_entries) + return GP_ERROR_FILE_NOT_FOUND; + + /* Fetch entries until the one we need, and toss all but the one we need. + * TODO: Either find out how to use the location info in the catalog to + * download just the entry needed, or show it is as impossible as it seems. + */ + + /* Change register to DATA, but only if necessary */ + if (camera->pl->data_offset == -1) { + icl_access_reg(camera->port, DATA); + + /* Camera starts at the first picture.. */ + camera->pl->data_offset = icl_get_start (camera->pl, 0); + } + + start = icl_get_start (camera->pl, entry); + datasize = icl_get_size (camera->pl, entry); + /* datasize exceeds the actual datasize by 0x100 bytes, which seems to be + * 0x100 bytes of filler at the beginning. For now we will treat this extra + * 0x100 bytes as junk and just ditch it. + */ + + GP_DEBUG ("data offset at %d, picture at %d\n", camera->pl->data_offset, start); + + /* Rewind if we're past the requested picture */ + if (camera->pl->data_offset > start) { + icl_rewind(camera->port, camera->pl); + } + + /* Seek to the requested picture */ + while ((camera->pl->data_offset + 0x8000) < start) { + icl_read_picture_data(camera->port, buf, 0x8000); + camera->pl->data_offset += 0x8000; + } + if (camera->pl->data_offset < start) { + icl_read_picture_data(camera->port, buf, start - camera->pl->data_offset); + camera->pl->data_offset = start; + } + + frame_data = malloc(datasize); + if (!frame_data) return GP_ERROR_NO_MEMORY; + icl_read_picture_data(camera->port, frame_data, datasize); + camera->pl->data_offset += datasize; + + switch (type) { + case GP_FILE_TYPE_PREVIEW: + if (icl_get_width_height (camera->pl, entry, &w, &h) >= GP_OK) + break; /* Known format, process image */ + /* No previewing of raw data */ + free (frame_data); + return GP_ERROR_NOT_SUPPORTED; + case GP_FILE_TYPE_NORMAL: + if (icl_get_width_height (camera->pl, entry, &w, &h) >= GP_OK) + break; /* Known format, process image */ + /* Unsupported format, fallthrough to raw */ + case GP_FILE_TYPE_RAW: + gp_file_set_mime_type (file, GP_MIME_RAW); + gp_file_adjust_name_for_mime_type (file); + gp_file_set_data_and_size (file, (char *)frame_data, datasize); + return (GP_OK); + default: + return GP_ERROR_NOT_SUPPORTED; + } + + /* Write the frame(s) */ + snprintf((char *)buf, sizeof(buf), + "P6\n" + "# CREATOR: gphoto2, iClick library\n" + "%d %d\n" + "255\n", w, h); + hdrsize = strlen((char *)buf); + + ppmsize = (hdrsize + w*h*3) * nb_frames; + GP_DEBUG ("ppmsize = %i\n", ppmsize); + + ptr = ppm = malloc(ppmsize); + + frame_ptr = frame_data + 0x100; + /* Here, we just threw away the "superfluous" first 0x100 bytes */ + memcpy(ptr, buf, hdrsize); + ptr += hdrsize; + + gp_bayer_decode (frame_ptr, w , h , ptr, BAYER_TILE_GBRG); + + gp_gamma_fill_table (gtable, .5); + /* The gamma factor is pure guesswork; shooting in the dark. This + * is the kind of thing which might be hidden in those 0x100 bytes. + */ + + gp_gamma_correct_single (gtable, ptr, w * h); + + ptr += w*h*3; + + gp_file_set_mime_type (file, GP_MIME_PPM); + gp_file_set_data_and_size (file, (char *)ppm, ppmsize); + free (frame_data); + return GP_OK; +} + + +/*************** Exit and Initialization Functions ******************/ + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("iClick camera_exit"); + + if (camera->pl->data_offset != -1) + icl_rewind (camera->port, camera->pl); + icl_reset (camera->port); + + if (camera->pl) { + free (camera->pl->catalog); + free (camera->pl); + camera->pl = NULL; + } + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func +}; + +int +camera_init(Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int ret = 0; + + /* First, set up all the function pointers */ + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + + GP_DEBUG ("Initializing the camera\n"); + + ret = gp_port_get_settings(camera->port,&settings); + if (ret < 0) return ret; + + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) return ret; + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + camera->pl->model = 0; + camera->pl->catalog = NULL; + camera->pl->nb_entries = 0; + camera->pl->data_offset = -1; + + /* Connect to the camera */ + ret = icl_init (camera->port, camera->pl); + if (ret != GP_OK) { + free(camera->pl); + return ret; + } + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/ChangeLog new file mode 100644 index 00000000..4493d6f5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/ChangeLog @@ -0,0 +1,44 @@ +2002-02-04 Marcus Meissner + + * library.c, jamcam.c: Replaced very large stack arrays + by malloc()ed ones. And make them large enough not to + overflow. + +2002-01-05 Marcus Meissner + + * library.c: We need to read a reply of 8 bytes, or the kernel + reports data overflow. + +2002-07-16 Lutz Müller + + * Makefile.am: Don't use glib. + +2002-03-21 Hubert Figuiere + + * library.c (jamcam_file_count): Patch by Thor Ablestar + Fix the file count if the camera storage is full. + +2002-01-04 Chris Pinkham + + * jamcam.c, library.c, library.h: updated code to use new + gp_file_progress instead of gp_camera_progress. + +2001-12-05 Lutz Müller + + * jamcam.c: Don't include , include <*.h> instead. + +2001-11-28 Chris Pinkham + + * jamcam.c: changed driver version to reflect new revision. + +2001-11-28 Chris Pinkham + + * README: updated TODO list. + * jamcam.c, library.c, library.h: Changed license of source code + from GPL to LPGL. Various bugfixes to make driver more robust + and to have better error recovery. + +2001-11-28 Chris Pinkham + + * ChangeLog: created file. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/Makefile-files new file mode 100644 index 00000000..4e4217a1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_DIST += jamcam/README.jamcam jamcam/ChangeLog +camlibdoc_DATA += jamcam/README.jamcam + +EXTRA_LTLIBRARIES += jamcam.la + +jamcam_la_SOURCES = jamcam/jamcam.c jamcam/library.c jamcam/library.h +jamcam_la_LDFLAGS = $(camlib_ldflags) +jamcam_la_DEPENDENCIES = $(camlib_dependencies) +jamcam_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/README.jamcam b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/README.jamcam new file mode 100644 index 00000000..d6047fff --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/README.jamcam @@ -0,0 +1,22 @@ +KBGear JamCam v2 and v3 + +This driver is based upon protocol reverse-engineered +using Portmon and sniffusb under Windows 98. + +For questions/comments, email the library author: + + Chris Pinkham + cpinkham@infi.net + +---------------------------------------------------------------- + +TODO List +--------- + - Fix downloading of thumbnails from mmc card (serial and usb) + - better error checking/handling + - optimize code, it's nowhere near theoretical max download speed + +----------------------------------------------------------------- +Author: + Chris Pinkham + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/jamcam.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/jamcam.c new file mode 100644 index 00000000..66007a56 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/jamcam.c @@ -0,0 +1,353 @@ +/****************************************************************/ +/* jamcam.c - Gphoto2 library for the KBGear JamCam v2 and v3 */ +/* */ +/* Copyright 2001 Chris Pinkham */ +/* */ +/* Author: Chris Pinkham */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#include "config.h" + +#include +#include +#include + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "library.h" + +#define GP_MODULE "jamcam" +#define TIMEOUT 2000 + +#define JAMCAM_VERSION "0.6" +#define JAMCAM_LAST_MOD "11/28/2001 14:51 EST" + +/* define what cameras we support */ +static const struct { + char *model; + int usb_vendor; + int usb_product; +} models[] = { + { "KBGear:JamCam", 0x084E, 0x0001 }, + { NULL, 0, 0 } +}; + + +int camera_id (CameraText *id) +{ + /* GP_DEBUG ("* camera_id"); */ + + strcpy (id->text, "jamcam"); + + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) +{ + int x = 0; + char *ptr; + CameraAbilities a; + + /* GP_DEBUG ("* camera_abilities"); */ + + ptr = models[x].model; + while (ptr) { + memset(&a, 0, sizeof(a)); + strcpy (a.model, ptr ); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL | GP_PORT_USB; + a.speed[0] = 57600; + a.speed[1] = 0; + + /* fixme, need to set these operations lists to correct values */ + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_PREVIEW; + + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + a.usb_vendor = models[x].usb_vendor; + a.usb_product = models[x].usb_product; + + gp_abilities_list_append (list, a); + + ptr = models[++x].model; + } + + return (GP_OK); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + int count; + + GP_DEBUG ("* file_list_func"); + GP_DEBUG ("*** folder: %s", folder); + + CHECK (count = jamcam_file_count (camera)); + CHECK (gp_list_populate (list, "pic_%04i.ppm", count)); + + return (GP_OK); +} + +static int get_info_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, void *data, + GPContext *context) +{ + Camera *camera = data; + int n; + struct jamcam_file *jc_file; + + GP_DEBUG ("* get_info_func"); + GP_DEBUG ("*** folder: %s", folder); + GP_DEBUG ("*** filename: %s",filename); + + /* Get the file number from the CameraFileSystem */ + CHECK (n = gp_filesystem_number (camera->fs, folder, + filename, context)); + + jc_file = jamcam_file_info( camera, n ); + + /* fixme, get file size also */ + info->file.fields = GP_FILE_INFO_TYPE; + strcpy (info->file.type, GP_MIME_PPM); + info->file.width = jc_file->width; + info->file.height = jc_file->height; + + info->preview.fields = GP_FILE_INFO_TYPE; + strcpy (info->preview.type, GP_MIME_PPM); + info->preview.width = 80; + info->preview.height = 60; + + return (GP_OK); +} + +static int camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("* camera_exit"); + + jamcam_file_count (camera); + return (GP_OK); +} + +#define CHECK_free(result) { \ + int res; \ + res = result; \ + if (res < 0) { \ + free(raw); free(ppm); \ + return (res); \ + } \ +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + char *raw, *ppm; + unsigned char gtable[256]; + char *ptr; + unsigned int size = 0; + int n = 0; + int width, height; + struct jamcam_file *jc_file; + + GP_DEBUG ("* camera_file_get"); + GP_DEBUG ("*** folder: %s", folder); + GP_DEBUG ("*** filename: %s",filename); + GP_DEBUG ("*** type: %d", type); + + CHECK (n = gp_filesystem_number (camera->fs, folder, + filename, context)); + + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + + raw = malloc(640*480 * 3); + ppm = malloc(640*480 * 3 + 200); + + switch (type) { + case GP_FILE_TYPE_PREVIEW: + + CHECK_free (jamcam_request_thumbnail (camera, file, raw, &size, n, context)); + + + width = 80; + height = 60; + + sprintf( ppm, + "P6\n" + "# CREATOR: gphoto2, jamcam library\n" + "%d %d\n" + "255\n", width, height ); + + ptr = ppm + strlen( ppm ); + + size = strlen( ppm ) + ( height * width * 3 ); + + gp_bayer_decode((unsigned char *)raw, width, height, + (unsigned char *)ptr, BAYER_TILE_GBRG ); + gp_gamma_fill_table( gtable, 0.5 ); + gp_gamma_correct_single( gtable, (unsigned char *)ptr, height * width ); + + CHECK_free (gp_file_set_mime_type (file, GP_MIME_PPM)); + CHECK_free (gp_file_append (file, ppm, size)); + break; + + case GP_FILE_TYPE_NORMAL: + CHECK_free (jamcam_request_image (camera, file, raw, &size, n, context)); + + jc_file = jamcam_file_info (camera, n); + + sprintf( ppm, + "P6\n" + "# CREATOR: gphoto2, jamcam library\n" + "%d %d\n" + "255\n", jc_file->width, jc_file->height ); + + if ((jc_file->width > 640) || (jc_file->height > 480)) { + free (raw); + free (ppm); + return GP_ERROR; + } + + ptr = ppm + strlen( ppm ); + + size = strlen( ppm ) + ( jc_file->width * jc_file->height * 3 ); + + gp_bayer_decode((unsigned char *)raw, jc_file->width, jc_file->height, + (unsigned char *)ptr, BAYER_TILE_GBRG ); + gp_gamma_fill_table( gtable, 0.5 ); + gp_gamma_correct_single( gtable, (unsigned char *)ptr, jc_file->width * jc_file->height ); + + CHECK_free (gp_file_set_mime_type (file, GP_MIME_PPM)); + CHECK_free (gp_file_append (file, ppm, size)); + break; + + case GP_FILE_TYPE_RAW: + CHECK_free (jamcam_request_image (camera, file, raw, &size, n, context)); + CHECK_free (gp_file_set_mime_type (file, GP_MIME_RAW)); + CHECK_free (gp_file_append (file, raw, size)); + break; + default: + free(raw); free(ppm); + return (GP_ERROR_NOT_SUPPORTED); + } + free(raw); free(ppm); + return (GP_OK); +} + +static int camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + int count; + char tmp[1024]; + + GP_DEBUG ("* camera_summary"); + + /* possibly get # pics, mem free, etc. */ + count = jamcam_file_count (camera); + + sprintf (tmp, _("Frames Taken : %4d\n"), count); + strcat (summary->text, tmp ); + + return (GP_OK); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + GP_DEBUG ("* camera_about"); + + strcpy (about->text, + _("jamcam library v" JAMCAM_VERSION + " " JAMCAM_LAST_MOD "\n" + "Chris Pinkham \n" + "Support for KBGear JamCam v2.0 & v3.0 digital cameras\n" + "based on reverse engineering serial protocol.\n" + "\n")); + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func, +}; + +int camera_init (Camera *camera, GPContext *context) +{ + int count; + GPPortSettings settings; + + GP_DEBUG ("* camera_init"); + GP_DEBUG (" * jamcam library for Gphoto2 by Chris Pinkham "); + GP_DEBUG (" * jamcam library v%s, %s", JAMCAM_VERSION, JAMCAM_LAST_MOD ); + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + CHECK (gp_port_get_settings (camera->port, &settings)); + switch( camera->port->type ) { + case GP_PORT_SERIAL: + settings.serial.speed = 57600; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + break; + case GP_PORT_USB: + /* Use the defaults the core parsed */ + break; + default: + fprintf( stderr, "Unknown port type: %d\n", camera->port->type ); + return ( GP_ERROR ); + break; + } + CHECK (gp_port_set_settings (camera->port, settings)); + CHECK (gp_port_set_timeout (camera->port, TIMEOUT)); + + /* check to see if camera is really there */ + CHECK (jamcam_enq (camera)); + + /* get number of images */ + CHECK (count = jamcam_file_count (camera)); + + /* Set up the CameraFilesystem */ + return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/library.c new file mode 100644 index 00000000..258121ad --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/library.c @@ -0,0 +1,719 @@ +/****************************************************************/ +/* library.c - Gphoto2 library for the KBGear JamCam v2 and v3 */ +/* */ +/* Copyright 2001 Chris Pinkham */ +/* */ +/* Author: Chris Pinkham */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ +#include "config.h" + +#include +#include +#include +#include +#include +#include + +#include "library.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE + +static struct jamcam_file jamcam_files[1024]; +static int jamcam_count = 0; +static int jamcam_mmc_card_size = 0; + +static int jamcam_read_packet (Camera *camera, unsigned char *packet, int length); +static int jamcam_write_packet (Camera *camera, unsigned char *packet, int length); +static int jamcam_fetch_memory( Camera *camera, CameraFile *file, + unsigned char *data, unsigned int start, unsigned int length, GPContext *context); +static int jamcam_query_mmc_card (Camera *camera); + +static int jamcam_set_int_at_pos( unsigned char *buf, int pos, int value ) { + buf[pos + 0] = ( value ) & 0xff; + buf[pos + 1] = ( value >> 8 ) & 0xff; + buf[pos + 2] = ( value >> 16 ) & 0xff; + buf[pos + 3] = ( value >> 24 ) & 0xff; + + return value; +} + +static unsigned int jamcam_get_int_at_pos( unsigned char *buf, int pos ) { + int ret = 0; + + ret += buf[pos + 0]; + ret += buf[pos + 1] * 256; + ret += buf[pos + 2] * 256 * 256; + ret += buf[pos + 3] * 256 * 256 * 256; + + return ret; +} + +static int jamcam_set_usb_mem_pointer( Camera *camera, unsigned int position ) { + char reply[8]; + + GP_DEBUG ("* jamcam_set_usb_mem_pointer"); + GP_DEBUG ("*** position: %d (0x%x)", + position, position); + + gp_port_usb_msg_write( camera->port, + 0xa1, + ( position ) & 0xffff, + ( position >> 16 ) & 0xffff, + NULL, 0 ); + + gp_port_usb_msg_read( camera->port, + 0xa0, + 0, + 0, + reply, 8 ); + + return GP_OK; +} + + +/* get the number of images on the mmc card */ +static int jamcam_mmc_card_file_count (Camera *camera) { + unsigned char buf[16]; + unsigned char reply[512]; + unsigned int position = 0x40000000; + unsigned int data_incr; + unsigned int width; + unsigned int height; + + GP_DEBUG ("* jamcam_mmc_card_file_count"); + + memset( buf, 0, sizeof( buf )); + + switch( camera->port->type ) { + default: + case GP_PORT_SERIAL: + memcpy( buf, "KB00", 4 ); + jamcam_set_int_at_pos( buf, 4, position ); + jamcam_write_packet( camera, buf, 8 ); + + jamcam_read_packet( camera, reply, 16 ); + + while( memcmp( reply, "KB", 2 ) == 0 ) { + width = (reply[5] * 256) + reply[4]; + height = (reply[7] * 256) + reply[6]; + + data_incr = jamcam_get_int_at_pos( reply, 8 ); + + jamcam_files[jamcam_count].position = position; + jamcam_files[jamcam_count].width = width; + jamcam_files[jamcam_count].height = height; + jamcam_files[jamcam_count].data_incr = data_incr; + + if (jamcam_count+1 >= sizeof(jamcam_files)/sizeof(jamcam_files[0])) + break; + jamcam_count++; + + position += data_incr; + + jamcam_set_int_at_pos( buf, 4, position ); + jamcam_write_packet( camera, buf, 8 ); + + jamcam_read_packet( camera, reply, 16 ); + } + break; + + case GP_PORT_USB: + gp_port_usb_msg_write( camera->port, + 0xa5, + 0x0005, + 0x0000, + NULL, 0 ); + + jamcam_set_usb_mem_pointer( camera, position ); + + CHECK( gp_port_read (camera->port, (char*)reply, 0x10 )); + + width = (reply[13] * 256) + reply[12]; + height = (reply[15] * 256) + reply[14]; + + jamcam_set_usb_mem_pointer( camera, position + 8 ); + + CHECK( gp_port_read (camera->port, (char*)reply, 512 )); + + gp_port_usb_msg_write( camera->port, + 0xa5, + 0x0006, + 0x0000, + NULL, 0 ); + + while((reply[0] != 0xff ) && + (reply[0] != 0xaa ) && + ((reply[0] != 0x00 ) || + (reply[1] != 0x00 ))) { + data_incr = jamcam_get_int_at_pos( reply, 0 ); + + jamcam_files[jamcam_count].position = position; + jamcam_files[jamcam_count].width = width; + jamcam_files[jamcam_count].height = height; + jamcam_files[jamcam_count].data_incr = data_incr; + if (jamcam_count+1 >= sizeof(jamcam_files)/sizeof(jamcam_files[0])) + break; + jamcam_count++; + + position += data_incr; + + gp_port_usb_msg_write( camera->port, + 0xa5, + 0x0005, + 0x0000, + NULL, 0 ); + + jamcam_set_usb_mem_pointer( camera, position ); + + CHECK( gp_port_read (camera->port, (char*)reply, 0x10 )); + + width = (reply[13] * 256) + reply[12]; + height = (reply[15] * 256) + reply[14]; + + jamcam_set_usb_mem_pointer( camera, position + 8 ); + + CHECK( gp_port_read (camera->port, (char*)reply, 512 )); + + gp_port_usb_msg_write( camera->port, + 0xa5, + 0x0006, + 0x0000, + NULL, 0 ); + } + break; + } + + GP_DEBUG ( "*** returning with jamcam_count = %d", jamcam_count); + return( 0 ); +} + +int jamcam_file_count (Camera *camera) { + unsigned char buf[16]; + unsigned char reply[16]; + int position = 0; + int data_incr; + int width; + int height; + int last_offset_size = 0; + + GP_DEBUG ("* jamcam_file_count"); + + jamcam_count = 0; + + memset( buf, 0, sizeof( buf )); + + switch( camera->port->type ) { + default: + case GP_PORT_SERIAL: + memcpy( buf, "KB00", 4 ); + jamcam_set_int_at_pos( buf, 4, position ); + jamcam_write_packet( camera, buf, 8 ); + + jamcam_read_packet( camera, reply, 16 ); + + while( reply[0] == 'K' ) { + width = (reply[5] * 256) + reply[4]; + height = (reply[7] * 256) + reply[6]; + + data_incr = jamcam_get_int_at_pos( reply, 8 ); + + last_offset_size = data_incr; + + jamcam_files[jamcam_count].position = position; + jamcam_files[jamcam_count].width = width; + jamcam_files[jamcam_count].height = height; + jamcam_files[jamcam_count].data_incr = data_incr; + if (jamcam_count+1 >= sizeof(jamcam_files)/sizeof(jamcam_files[0])) + break; + + jamcam_count++; + + position += data_incr; + + jamcam_set_int_at_pos( buf, 4, position ); + jamcam_write_packet( camera, buf, 8 ); + + jamcam_read_packet( camera, reply, 16 ); + } + + /* the v3 camera uses 0x3fdf0 data increments so check for MMC */ + if ( last_offset_size == 0x03fdf0 ) { + jamcam_query_mmc_card( camera ); + } + break; + + case GP_PORT_USB: + jamcam_set_usb_mem_pointer( camera, position ); + + CHECK( gp_port_read (camera->port, (char*)reply, 0x10 )); + + width = (reply[13] * 256) + reply[12]; + height = (reply[15] * 256) + reply[14]; + + jamcam_set_usb_mem_pointer( camera, position + 8 ); + + CHECK( gp_port_read (camera->port, (char*)reply, 0x10 )); + + while(reply[0] != 0xff ) { + data_incr = jamcam_get_int_at_pos( reply, 0 ); + + jamcam_files[jamcam_count].position = position; + jamcam_files[jamcam_count].width = width; + jamcam_files[jamcam_count].height = height; + jamcam_files[jamcam_count].data_incr = data_incr; + if (jamcam_count+1 >= sizeof(jamcam_files)/sizeof(jamcam_files[0])) + break; + jamcam_count++; + + position += data_incr; + + jamcam_set_usb_mem_pointer( camera, position ); + + CHECK( gp_port_read (camera->port, (char*)reply, 0x10 )); + + width = (reply[13] * 256) + reply[12]; + height = (reply[15] * 256) + reply[14]; + + jamcam_set_usb_mem_pointer( camera, position + 8 ); + + CHECK( gp_port_read (camera->port, (char*)reply, 0x10 )); + } + break; + } + + if ( jamcam_mmc_card_size ) { + jamcam_count += jamcam_mmc_card_file_count( camera ); + } + + GP_DEBUG ( "*** returning jamcam_count = %d", jamcam_count); + return( jamcam_count ); +} + +static int jamcam_fetch_memory( Camera *camera, CameraFile *file, + unsigned char *data, unsigned int start, unsigned int length, GPContext *context) { + unsigned char tmp_buf[16]; + unsigned char packet[16]; + unsigned int new_start; + unsigned int new_end; + unsigned int bytes_read = 0; + unsigned int bytes_to_read; + unsigned int bytes_left = length; + int res = GP_OK; + unsigned int id = 0; + + GP_DEBUG ("* jamcam_fetch_memory"); + GP_DEBUG (" * start: %d (0x%x)", + start, start); + GP_DEBUG (" * length: %d (0x%x)", + length, length); + + if ( length > 1000 ) + id = gp_context_progress_start (context, length, + _("Downloading data...")); + + while( bytes_left ) { + switch( camera->port->type ) { + default: + case GP_PORT_SERIAL: + bytes_to_read = + bytes_left > SER_PKT_SIZE ? SER_PKT_SIZE : bytes_left; + + memset( packet, 0, sizeof( packet )); + memcpy( packet, "KB01", 4 ); + + new_start = start + bytes_read; + new_end = start + bytes_read + bytes_to_read - 1; + + /* start and end (inclusive) */ + jamcam_set_int_at_pos( packet, 4, new_start ); + jamcam_set_int_at_pos( packet, 8, new_end ); + + jamcam_write_packet( camera, packet, 12 ); + + CHECK (jamcam_read_packet( camera, data + bytes_read, + bytes_to_read )); + break; + case GP_PORT_USB: + bytes_to_read = bytes_left > USB_PKT_SIZE ? USB_PKT_SIZE : bytes_left; + + /* for some reason this priming read fixes an offset problem */ + /* in the images, we are only reading the first 16 bytes of */ + /* data twice by doing this, so I don't know why it works */ + jamcam_set_usb_mem_pointer( camera, start + bytes_read ); + CHECK( gp_port_read (camera->port, (char*)tmp_buf, 16 )); + + + jamcam_set_usb_mem_pointer( camera, start + bytes_read ); + CHECK( gp_port_read (camera->port, (char*)data + bytes_read, bytes_to_read )); + + + break; + } + + bytes_left -= bytes_to_read; + bytes_read += bytes_to_read; + + /* hate this hardcoded, but don't want to update here */ + /* when downloading parts of a thumbnail */ + if ( length > 1000 ) { + gp_context_progress_update (context, id, bytes_read); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + GP_DEBUG (" * CANCELED"); + break; + } + } + } + + if ( length > 1000 ) + gp_context_progress_stop (context, id); + + if ( res == GP_OK ) { + GP_DEBUG (" * returning OK"); + } + return res; +} + +int jamcam_request_image( Camera *camera, CameraFile *file, + char *buf, unsigned int *len, int number, GPContext *context ) { + unsigned int position; + int result; + unsigned char *tmp_buf; + + GP_DEBUG ("* jamcam_request_image"); + tmp_buf = malloc(640*480*3); + + position = jamcam_files[number].position; + + /* don't know why this is necessary, but do it anyway */ + if ( camera->port->type == GP_PORT_USB ) { + position += 8; + } + + if ( camera->port->type == GP_PORT_USB ) { + gp_port_usb_msg_write( camera->port, + 0xa5, + 0x0005, + 0x0000, + NULL, 0 ); + } + if (jamcam_files[number].data_incr <= 640*480*3) + result = jamcam_fetch_memory( camera, file, tmp_buf, position, + jamcam_files[number].data_incr, context ); + else + result = GP_ERROR; + + /* this seems to reset the camera to a sane status */ + if ( camera->port->type == GP_PORT_USB ) { + gp_port_usb_msg_write( camera->port, + 0xa5, + 0x0006, + 0x0000, + NULL, 0 ); + } + + if ( result == GP_OK ) { + *len = jamcam_files[number].width * jamcam_files[number].height; + if (*len < 640*480*3) + memcpy( buf, tmp_buf + 0x10, *len ); + } + free (tmp_buf); + + return result; +} + +struct jamcam_file *jamcam_file_info(Camera *camera, int number) +{ + GP_DEBUG(" * jamcam_file_info, nr is %d", number); + return( &jamcam_files[number] ); +} + +int jamcam_request_thumbnail( Camera *camera, CameraFile *file, + char *buf, unsigned int *len, int number, GPContext *context ) { + unsigned char line[2048]; + char packet[16]; + unsigned int position; + int x, y; + int res = GP_OK; + char *ptr; + unsigned int bytes_to_read; + unsigned int id; + + GP_DEBUG ("* jamcam_request_thumbnail"); + + memset( packet, 0, sizeof( packet )); + + position = jamcam_files[number].position + 0x10; + + *len = 4800; + + ptr = buf; + + if ( camera->port->type == GP_PORT_USB ) { + /* windows driver does this sometimes */ + gp_port_usb_msg_write( camera->port, + 0xa5, + 0x0005, + 0x0000, + NULL, 0 ); + + /* just read one row of data at a time */ + bytes_to_read = jamcam_files[number].width; + } else { + /* MMC card is quirky, need to fetch larger amounts of data */ + if ( position >= 0x40000000 ) { + /* serial with mmc card needs bigger packets */ + bytes_to_read = 2048; + } else { + /* just read one row of data at a time */ + bytes_to_read = jamcam_files[number].width; + } + } + + if (bytes_to_read > sizeof(line)) { + res = GP_ERROR; + goto resetcam; + } + + /* fetch thumbnail lines and build the thumbnail */ + position += 10 * jamcam_files[number].width; + id = gp_context_progress_start (context, 60., + _("Downloading thumbnail...")); + for( y = 0 ; y < 60 ; y++ ) { + jamcam_fetch_memory( camera, file, line, position, bytes_to_read, context ); + + gp_context_progress_update (context, id, y); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + res = GP_ERROR_CANCEL; + break; + } + + if ( jamcam_files[number].width == 600 ) { + for( x = 22; x < 578 ; x += 7 ) { + *(ptr++) = line[x]; + } + position += 7 * 600; + } else { + for( x = 0; x < 320 ; ) { + *(ptr++) = line[x]; + x += 3; + *(ptr++) = line[x]; + x += 5; + } + + if ( y % 2 ) { + position += 5 * 320; + } else { + position += 3 * 320; + } + } + } + gp_context_progress_stop (context, id); + +resetcam: + /* this seems to reset the camera to a sane status */ + if ( camera->port->type == GP_PORT_USB ) { + gp_port_usb_msg_write( camera->port, + 0xa5, + 0x0006, + 0x0000, + NULL, 0 ); + } + + return res; +} + +static int jamcam_write_packet (Camera *camera, unsigned char *packet, int length) { + int ret, r; + + GP_DEBUG ("* jamcam_write_packet"); + + for (r = 0; r < RETRIES; r++) { + ret = gp_port_write (camera->port, (char*)packet, length); + if (ret == GP_ERROR_TIMEOUT) + continue; + + return (ret); + } + + return (GP_ERROR_TIMEOUT); +} + +static int jamcam_read_packet (Camera *camera, unsigned char *packet, int length) { + int r = 0; + int bytes_read; + + GP_DEBUG ("* jamcam_read_packet"); + GP_DEBUG ("*** length: %d (0x%x)", + length, length); + + for (r = 0; r < RETRIES; r++) { + bytes_read = gp_port_read (camera->port, (char*)packet, length); + if (bytes_read == GP_ERROR_TIMEOUT) + continue; + if (bytes_read < 0) + return (bytes_read); + + if ( bytes_read == length ) { + return( GP_OK ); + } + } + + return (GP_ERROR_TIMEOUT); +} + + +int jamcam_enq (Camera *camera) +{ + int ret, r = 0; + unsigned char buf[16]; + + GP_DEBUG ("* jamcam_enq"); + + memset( buf, 0, 16 ); + + switch( camera->port->type ) { + default: + case GP_PORT_SERIAL: + for (r = 0; r < RETRIES; r++) { + memcpy (buf, "KB99", 4 ); + + ret = jamcam_write_packet (camera, buf, 4); + if (ret == GP_ERROR_TIMEOUT) + continue; + if (ret != GP_OK) + return (ret); + + ret = jamcam_read_packet (camera, buf, 4); + if (ret == GP_ERROR_TIMEOUT) + continue; + if (ret != GP_OK) + return (ret); + + if ( !memcmp( buf, "KIDB", 4 )) { + return (GP_OK); + } + } + return (GP_ERROR_CORRUPTED_DATA); + break; + + case GP_PORT_USB: + for (r = 0; r < RETRIES; r++) { + gp_port_usb_msg_write( camera->port, + 0xa5, + 0x0004, + 0x0000, + NULL, 0 ); + jamcam_set_usb_mem_pointer( camera, 0x0000 ); + + CHECK( gp_port_read( camera->port, (char *)buf, 0x0c )); + + if (( !memcmp( buf, "KB00", 4 )) || + (( buf[0] == 0xff ) && ( buf[1] == 0xff ) && + ( buf[2] == 0xff ) && ( buf[3] == 0xff ) && + ( buf[4] == 0xff ) && ( buf[5] == 0xff ) && + ( buf[6] == 0xff ) && ( buf[7] == 0xff ))) { + /* found a JamCam v3 camera */ + /* reply contains 4-bytes with MMC card size if present */ + /* set to 0 if none */ + jamcam_mmc_card_size = jamcam_get_int_at_pos( buf, 8 ); + + if ( jamcam_mmc_card_size ) { + GP_DEBUG ( "* jamcam_enq, MMC card size = %d", + jamcam_mmc_card_size ); + } + + return (GP_OK); + } else if ( !memcmp( buf + 8, "KB00", 4 )) { + /* found a JamCam v2 camera */ + /* JamCam v2 doesn't support MMC card so no need to check */ + return (GP_OK); + } else if (( buf[0] == 0xf0 ) && + ( buf[1] == 0xfd ) && + ( buf[2] == 0x03 )) { + return( GP_OK ); + } + } + return (GP_ERROR_CORRUPTED_DATA); + break; + } + + return (GP_ERROR_TIMEOUT); +} + +static int jamcam_query_mmc_card (Camera *camera) +{ + int ret, r = 0; + unsigned char buf[16]; + + GP_DEBUG ("* jamcam_query_mmc_card"); + + /* usb port doesn't need this packet, this info found in enquiry reply */ + if ( camera->port->type == GP_PORT_USB ) { + return( GP_OK ); + } + + memcpy( buf, "KB04", 4 ); + + for (r = 0; r < RETRIES; r++) { + + ret = jamcam_write_packet (camera, buf, 4); + if (ret == GP_ERROR_TIMEOUT) + continue; + if (ret != GP_OK) + return (ret); + + ret = jamcam_read_packet (camera, buf, 4); + if (ret == GP_ERROR_TIMEOUT) + continue; + if (ret != GP_OK) + return (ret); + + /* reply is 4-byte int showing length of MMC card if any, 0 if none */ + jamcam_mmc_card_size = jamcam_get_int_at_pos( buf, 0 ); + + if ( jamcam_mmc_card_size ) { + GP_DEBUG ("* jamcam_query_mmc_card, MMC card size = %d", + jamcam_mmc_card_size ); + } + + return (GP_OK); + } + return (GP_ERROR_TIMEOUT); +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/library.h new file mode 100644 index 00000000..dd566528 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jamcam/library.h @@ -0,0 +1,49 @@ +/****************************************************************/ +/* library.h - Gphoto2 library for the KBGear JamCam v2 and v3 */ +/* */ +/* Copyright 2001 Chris Pinkham */ +/* */ +/* Author: Chris Pinkham */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#ifndef __LIBRARY_H__ +#define __LIBRARY_H__ + +#define RETRIES 10 + +#define SER_PKT_SIZE 4096 +#define USB_PKT_SIZE 4096 + +#define CHECK(result) {int __res; __res = result; if (__res < 0) return (__res);} + +struct jamcam_file { + unsigned int position; + unsigned int width; + unsigned int height; + unsigned int data_incr; +}; + +int jamcam_enq(Camera *camera); +int jamcam_file_count(Camera *camera); +struct jamcam_file *jamcam_file_info(Camera *camera, int number); +int jamcam_request_image(Camera *camera, CameraFile *file, char *buf, unsigned int *len, int number, GPContext *context ); +int jamcam_request_thumbnail(Camera *camera, CameraFile *file, char *buf, unsigned int *len, int number, GPContext *context ); + +#endif /* __LIBRARY_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/ChangeLog new file mode 100644 index 00000000..9864c76d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/ChangeLog @@ -0,0 +1,38 @@ +2005-01-02 Marcus Meissner + + * jd11.c: Added names to the properties. + +2002-08-01 Marcus Meissner + + * jd11.c, serial.c: Fixed gp_port_write() retvalue checking. + +2002-04-12 Marcus Meissner + * jd11.c, serial.c: Changed image/pnm to correct GP_MIME_PNM, so + konqueror displays it again. + +2002-04-06 Marcus Meissner + + * jd11.c, serial.[ch]: + Use the _noop filesystem functions to store the thumbnail data + we retrieve on getting the number of pictures in the camera, major + speedup for downloading thumbnails. + Provide file info for frontends who use them. + +2002-01-04 Marcus Meissner + + * jd11.c: Cleaned up comments, say it is ready for + production use. + jd11.html: Added final note on colors. + +2001-12-29 Marcus Meissner + + * serial.[ch], jd11.c: Use new gp_file_progress. + * jd11.c: Initialize CameraAbilities struct with zeroes. + + * serial.c: Made serial transfers much more robust, with retries + and draining of old data. + Also use gp_file_progress correctly (hopefully). + +2001-12-05 Lutz Müller + + * serial.c: Include , not "libgphoto2/bayer.h" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/Makefile-files new file mode 100644 index 00000000..d4a5a31a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/Makefile-files @@ -0,0 +1,13 @@ +# -*- Makefile -*- + +EXTRA_DIST += jd11/jd11.html jd11/ChangeLog + +EXTRA_LTLIBRARIES += jd11.la + +jd11_la_SOURCES = \ + jd11/jd11.c \ + jd11/serial.h jd11/serial.c \ + jd11/decomp.h jd11/decomp.c +jd11_la_LDFLAGS = $(camlib_ldflags) +jd11_la_DEPENDENCIES = $(camlib_dependencies) +jd11_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/decomp.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/decomp.c new file mode 100644 index 00000000..b0595665 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/decomp.c @@ -0,0 +1,172 @@ +/* + * Jenoptik JD11 Camera Driver + * Copyright 1999-2001 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include +#include +#include +#include + +#include "decomp.h" + +struct chain { int left,val,right; }; +struct compstate { + unsigned char curmask; + unsigned char bytebuf; + unsigned char *byteptr; + + struct chain cl[200]; + int stackstart; +}; + +/* FLOAT_QUERY: 0.860000 1.030000 1.150000. */ + +/********************************************************/ +/* The bit stage */ +/********************************************************/ +static inline int +jd11_getbit(struct compstate *cs) { + int ret; + if (cs->curmask == 0x80) + cs->bytebuf = *cs->byteptr++; + ret = cs->curmask & cs->bytebuf; + cs->curmask >>=1; + if (!cs->curmask) cs->curmask = 0x80; + return !!ret; +} + +/********************************************************/ +/* The huffman compressor stage */ +/********************************************************/ +static int +decomp_1byte(struct compstate *cs) { + int xcs = cs->stackstart; + int xbit; + + while ((cs->cl[xcs].left>=0) && (cs->cl[xcs].right>=0)) { + xbit = jd11_getbit(cs); + if (xbit) + xcs = cs->cl[xcs].left; + else + xcs = cs->cl[xcs].right; + } + return cs->cl[xcs].val; +} + +static void +build_huffmann_tree(struct compstate *cs) { + int xstack[200]; + int i,curcl=0,curstack=0; + const int df[] = { + -180,180,1000,-90,1000,90,1000,-45,1000,45,1000,-20,1000, + 20,1000,-11,1000,11,1000,-6,1000,2,1000,6,-2,1000,1000 + }; + for (i=0;icl[curcl].left = -1; + cs->cl[curcl].right = -1; + cs->cl[curcl].val = df[i]; + } else { + cs->cl[curcl].right = xstack[--curstack]; + cs->cl[curcl].left = xstack[--curstack]; + } + xstack[curstack++] = curcl++; + } + cs->stackstart = xstack[0]; +} + +#define F1 0.5 +#define F2 0.0 +#define F3 0.5 +#define F4 0.0 + +void +picture_decomp_v1(unsigned char *compressed,unsigned char *uncompressed,int width,int height) { + struct compstate cs; + unsigned char xbyte; + int i=0,curbyte=0,diff,lastval; + int *line,*lastline; + + cs.curmask = 0x80; cs.bytebuf = 0; cs.byteptr = compressed; + + build_huffmann_tree(&cs); + + line = (int*)malloc(sizeof(int)*width); + lastline= (int*)malloc(sizeof(int)*width); + curbyte=0; + memset(line,0,sizeof(int)*width); + memset(lastline,0,sizeof(int)*width); + for (i=0;i255) xbyte = 255; + if (curbyte<0) xbyte = 0; + + *uncompressed++=xbyte; + + line[i] = curbyte; + } + height--; + while (height--) { + lastval = line[0]; /* just before the copy */ + memcpy(lastline,line,width*sizeof(int)); + memset(line,0,width*sizeof(int)); + for (i=0;i255) xbyte = 255; + if (line[i]<0) xbyte = 0; + *uncompressed++=xbyte; + } + } + free (lastline); + free (line); +} + +/* Just blow up the picture from 6 bit uncompressed to 8 bit uncompressed */ +void +picture_decomp_v2(unsigned char *compressed,unsigned char *uncompressed,int width,int height) { + struct compstate cs; + int i,j; + unsigned char xbyte; + + cs.curmask = 0x80; cs.bytebuf = 0; cs.byteptr = compressed; + for (i=width*height;i--;) { + unsigned char xmask = 0x80; + xbyte = 0; + for (j=6;j--;) { + if (jd11_getbit(&cs)) + xbyte|=xmask; + xmask>>=1; + } + *uncompressed++=xbyte; + } +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/decomp.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/decomp.h new file mode 100644 index 00000000..789d3b99 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/decomp.h @@ -0,0 +1,25 @@ +/* + * Jenopt JD11 Camera Driver + * Copyright 1999-2001 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef _JD11_DECOMP_H +#define _JD11_DECOMP_H +extern void picture_decomp_v1(unsigned char *compressed,unsigned char *uncompressed,int width,int height); +extern void picture_decomp_v2(unsigned char *compressed,unsigned char *uncompressed,int width,int height); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/jd11.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/jd11.c new file mode 100644 index 00000000..6ec4e764 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/jd11.c @@ -0,0 +1,308 @@ +/* + * Jenoptik JD11 Camera Driver + * Copyright 1999-2001 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "serial.h" + +int camera_id (CameraText *id) +{ + strcpy(id->text, "JD11"); + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a,0,sizeof(a)); + + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 115200; + a.speed[1] = 0; + a.operations = GP_OPERATION_CONFIG; + a.file_operations = GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + + strcpy(a.model, "Jenoptik:JD11"); + gp_abilities_list_append(list, a); + + /* http://www.digitalkamera.de/Kameras/PrakticaQD500-de.htm (german) */ + strcpy(a.model, "Praktica:QD500"); + gp_abilities_list_append(list, a); + + /* Reported to be just a rebranded version by Russ Burdick + * */ + /* from Gallantcom, http://www.gallantcom.com/prodfaq-probe99.htm */ + strcpy(a.model, "Quark:Probe 99"); + gp_abilities_list_append(list, a); + + /* 'Argus DC-100' looks the same, see: + * http://www.aaadigitalcameras.com/argus_digital_vga_compact_camera.html + * but not reported yet. + */ + strcpy(a.model, "Argus:DC-100"); + gp_abilities_list_append(list, a); + /* 'Argus DC-2000' is the same (or uses the same software), check + * http://www.arguscamera.com/tech_supp/camoper.htm + */ + strcpy(a.model, "Argus:DC-2000"); + gp_abilities_list_append(list, a); + + /* http://www.digitaldreamco.com/shop/digital2000.html */ + strcpy(a.model, "Digitaldream:DIGITAL 2000"); + gp_abilities_list_append(list, a); + + /* The I/O Magic MagicImage 420 has a black cover, but otherwise + * appears to be the same. (Not 100% sure.) + * http://www.iomagic.com/support/digitalcameras/magicimage420/magicimage420main.htm + */ + strcpy(a.model, "IOMagic:MagicImage 420"); + gp_abilities_list_append(list, a); + return (GP_OK); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = (Camera*)data; + + if (strcmp(folder,"/")) + return GP_ERROR_BAD_PARAMETERS; + + return jd11_index_reader(camera->port, fs, context); +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + int image_no, result; + + image_no = gp_filesystem_number(fs, folder, filename, context); + + if(image_no < 0) + return image_no; + + gp_file_set_mime_type (file, GP_MIME_PNM); + switch (type) { + case GP_FILE_TYPE_RAW: + result = jd11_get_image_full(camera,file,image_no,1,context); + break; + case GP_FILE_TYPE_NORMAL: + result = jd11_get_image_full(camera,file,image_no,0,context); + break; + case GP_FILE_TYPE_PREVIEW: + /* We should never get here, we store the thumbs in the fs... */ + return (GP_ERROR_NOT_SUPPORTED); + default: + return (GP_ERROR_NOT_SUPPORTED); + } + if (result < 0) + return result; + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char* folder, void *data, + GPContext *context) +{ + Camera *camera = data; + if (strcmp (folder, "/")) + return (GP_ERROR_DIRECTORY_NOT_FOUND); + return jd11_erase_all(camera->port); +} + +static int camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy(manual->text, + _( + "The JD11 camera works rather well with this driver.\n" + "An RS232 interface @ 115 kbit is required for image transfer.\n" + "The driver allows you to get\n\n" + " - thumbnails (64x48 PGM format)\n" + " - full images (640x480 PPM format)\n" + )); + + return (GP_OK); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _("JD11\n" + "Marcus Meissner \n" + "Driver for the Jenoptik JD11 camera.\n" + "Protocol reverse engineered using WINE and IDA.")); + + return (GP_OK); +} +static int camera_config_get (Camera *camera, CameraWidget **window, + GPContext *context) +{ + CameraWidget *widget,*section; + float value_float,red,green,blue; + int ret; + gp_widget_new (GP_WIDGET_WINDOW, _("JD11 Configuration"), window); + gp_widget_set_name (*window, "config"); + + gp_widget_new (GP_WIDGET_SECTION, _("Other Settings"), §ion); + gp_widget_set_name (section, "othersettings"); + gp_widget_append (*window, section); + + /* Bulb Exposure Time */ + gp_widget_new (GP_WIDGET_RANGE, _("Bulb Exposure Time"), &widget); + gp_widget_set_name (widget, "exposuretime"); + gp_widget_append (section, widget); + gp_widget_set_range (widget, 1, 9, 1); + /* this is a write only capability */ + value_float = 1; + gp_widget_set_value (widget, &value_float); + + gp_widget_new (GP_WIDGET_SECTION, _("Color Settings"), §ion); + gp_widget_append (*window, section); + gp_widget_set_name (section, "colorsettings"); + + ret = jd11_get_rgb(camera->port,&red,&green,&blue); + if (ret < GP_OK) + return ret; + gp_widget_new (GP_WIDGET_RANGE, _("Red"), &widget); + gp_widget_append (section, widget); + gp_widget_set_name (widget, "red"); + gp_widget_set_range (widget, 50, 150, 1); + red*=100.0; + gp_widget_set_value (widget, &red); + + gp_widget_new (GP_WIDGET_RANGE, _("Green"), &widget); + gp_widget_set_name (widget, "green"); + gp_widget_append (section, widget); + gp_widget_set_range (widget, 50, 150, 1); + green*=100.0; + gp_widget_set_value (widget, &green); + + gp_widget_new (GP_WIDGET_RANGE, _("Blue"), &widget); + gp_widget_set_name (widget, "blue"); + gp_widget_append (section, widget); + gp_widget_set_range (widget, 50, 150, 1); + blue*=100.0; + gp_widget_set_value (widget, &blue); + + return (GP_OK); +} + +static int camera_config_set (Camera *camera, CameraWidget *window, + GPContext *context) +{ + float f,red,green,blue; + CameraWidget *widget,*section; + int ret,changed = 0; + /* + * Check if the widgets' values have changed. If yes, tell the camera. + */ + gp_widget_get_child_by_label (window, _("Other Settings"), §ion); + gp_widget_get_child_by_label (section,_("Bulb Exposure Time"), &widget); + if (gp_widget_changed (widget)) { + gp_widget_get_value (widget, &f); + gp_widget_set_changed (widget, 0); + ret = jd11_set_bulb_exposure(camera->port,(int)f); + if (ret < GP_OK) + return ret; + } + + gp_widget_get_child_by_label (window, _("Color Settings"), §ion); + + gp_widget_get_child_by_label (section,_("Red"), &widget); + changed|=gp_widget_changed (widget); + gp_widget_set_changed (widget, 0); + gp_widget_get_value (widget, &red); + red/=100.0; + + gp_widget_get_child_by_label (section,_("Green"), &widget); + changed|=gp_widget_changed (widget); + gp_widget_set_changed (widget, 0); + gp_widget_get_value (widget, &green); + green/=100.0; + + gp_widget_get_child_by_label (section,_("Blue"), &widget); + changed|=gp_widget_changed (widget); + gp_widget_set_changed (widget, 0); + gp_widget_get_value (widget, &blue); + blue/=100.0; + + ret = GP_OK; + if (changed) + ret =jd11_set_rgb(camera->port,red,green,blue); + return ret; + +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .delete_all_func = delete_all_func, +}; + +int camera_init (Camera *camera, GPContext *context) +{ + gp_port_settings settings; + + /* First, set up all the function pointers */ + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + camera->functions->get_config = camera_config_get; + camera->functions->set_config = camera_config_set; + + /* Configure port */ + gp_port_set_timeout(camera->port, 1000); + gp_port_get_settings(camera->port, &settings); + settings.serial.speed = 115200; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits= 1; + gp_port_set_settings(camera->port, settings); + + /* Set up the filesystem */ + gp_filesystem_set_funcs(camera->fs, &fsfuncs, camera); + /* test camera */ + return jd11_ping(camera->port); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/jd11.html b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/jd11.html new file mode 100644 index 00000000..2b1d0cc2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/jd11.html @@ -0,0 +1,309 @@ + + + + + + + Reverse Engineering the JD11 (JenCam 11) + + + +

+Reverse Engineering the JD11 - A drama in n chapters

+ +
+

+What is the JD11?

+The JD11 is a cheap digital camera produced by JenOptik (apparenly a subsidary +of Zeiss Jena). It was at the time of writing this available for around +250 DM. +

There is software available, a windows program called FotoBee +which is a huge heap of MFC dung. It can be made to run with a small hack +under the free Windows Emulator WINE. +

WINE was crucial in reverse engineering the camera at all stages of +the project. +

+Chapter 1:The lowlevel serial protocol

+The JD11 comes with a serial cable with a DB9 connector on the computerside +and a small klinkenstecker at the camera end. So just 2 lines (RX, TX) +and GND. +

There is no documenation on the serial protocol in the inlaying documentation. +

The FotoBee.exe program uses the Windows serial communications interface, +which is fortunately implemented in WINE. By snooping the setup calls, +the serial parameters are: +

        115200 Baud, no parity, 1 stopbit, 8 bit data, no flow control
+        (neither crtscts, nor XON/XOFF)
+It also setting some large timeouts, since the camera sometimes needs like +2 seconds to think about something. +

That was rather trivial. +

+Chapter 2: The serial data transfer protocol

+The next step was to find out how the FotoBee software talks to the camera. +

 Luckily the program still uses the standard Win32 serial communication +functions for that, so I added some code to the ReadFile and +WriteFile +functions, which dumps the read/written buffer if it is writing to a serial +device. +

In general, the program sends a command down the serial line (with optional +arguments) and receives data back. Every command starts with a 0xFF +character. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CommandArgumentsReturnsDescription
0xff 0x08None0xff 0xf1Ping!s the camera.
0xff 0xa7NoneA packet with between 10 and 20 bytes is returned. + 3 float factors are returned, they are calculated:
+ + f1=r[1]+r[2]*0.1+r[3]*0.01;
+ f2=r[4]+r[5]*0.1+r[6]*0.01;
+ f3=r[7]+r[8]*0.1+r[9]*0.01;
+

+ Their use is still unknown to me.
+ Twain calls it 'LoadGRB' +
0xff 0xa4None0xff 0x01Select Index Picture to transfer, is followed by packetreading
0xff 0xa10xff picturenr0xff 0x01Selects Image picturenr to transfer. 3 Bytestreams follow (packetreading has to be called 3 times)
0xff 0xa810 bytes of data ... Set floats0xff 0x01Sets the 3 floats. Sends 10 bytes to the camera.
+ The bytestream looks: + 0xFF A B C D E F G H I
+ The floats are: A.BC D.EF G.HI
+ A...I are binary values between 0 and 9.
+ Twain calls it 'SaveGRB'. +
0xff 0xa6NoneNo return expected.Deletes all images.
0xff 0xf0NoneReturns an ASCII hexnumber (starting with two 0x66 ('f')) + Returns the size (in bytes) of the image to transfer next. This + command is issued after "select index" or "select image" + and is followed by (multiple) packet reads. +
0xff 0xf1NoneReturns 201 or less bytes + The packetreader. It is called in a loop after querying the + imagesize. If 201 bytes are read, the 201th byte is the checksum + (sum of 0-199)&0xff, otherwise there is no checksum.
+ Returns the 200 bytes read. +
0xff 0xf3NoneReturns 201 or less bytes + The packet resend command. Works exactly like the + 0xff 0xf1 packetread command, but the last packet is + retransmitted. This is useful for corrupted transmissions. +
0xff 0x72None0xff 0x71The TestDRAM command according to the Twain drivers. Gets a bool reply.
0xff 0x73None0xff 0x70/0x71The TestFLASH command according to the Twain drivers. Gets a bool reply.
0xff 0x75None0xff70 or 0xff71 or something else.The TestADC command according to the Twain drivers. Gets a bool reply.
0xff 0x78None.Some data.Appears to take a snapshot and then it should read N packets of + data. Strange. There is some text generated and printed into + a dialog. I only get back 0xff.
+ TWAIN calls it DSC_TestAE.
0xff 0x79None0xff 0xXXFunction unknown, seems to open/close the shutter in rapid succession.
+ TWAIN calls it DSC_AjustAGC.
+ Reads reply. +
0xff 0x7aNone.Some data.Unclear. GUI enables wait cursor before call and disabled it after.
0xff 0x7b0xff value.0xff 0xf1Unclear.
0xff 0xa90xff value.0xff 0xf1Set Bulb Mode. Apparently values between 1 and 9.
+

+Following commands can be used on toplevel: +

    +
  • PING +
  • FLOAT FACTORS +
  • SELECT INDEX +
  • SELECT IMAGE +
  • ... +
+For reading the INDEX picture following sequence appears: +
    +
  • SELECT INDEX +
  • IMAGE SIZE +
  • READ PACKET until packets exhausted. +
+For reading the IMAGE picture following sequence appears: +
    +
  • SELECT IMAGE n +
  • Do 3 times: +
      +
    • IMAGE SIZE +
    • READ PACKET until packets exhausted. +
    +
+Thats all we needed to know about the serial commands. + +

Chapter 3: The image compression, stage 1

+ +Judging from other cameras it is easy to suspect the camera uses the JPEG +format. It does not unfortunately. + +

Chapter 3.1: The format of the index picture

+Casting a closer look at the raw data of the index picture shows a a stream +of 8 bit values. Some experimentation later it turns out to a stream of +64x48 grayscale pictures, upside down. +Using:
+	rawtopgm <index 64 (sizeof_index/64) |pnmflip -tb > index.ppm
+
+we can convert it into a .PPM and convert it further using standard UNIX tools. +

+ +The size of the index picture also tells us the number of pictures that are +currently stored in the camera. Just divide the size of the indeximage by 64*48. + +

Chapter 3.2: The low quality compressed image format

+ The camera has two modes to store pictures, either in low or + high quality. This is marked by the letters "L" and "H" on the + cameras LCD. Default is the low quality format.

+ It is still unclear to me how to detect high/low quality formats, + except with the size of the returned image. + +

+At first look the data returned from the camera looks like junknoise. So I had +to peek into the diassembly, which shows a slightly inefficient huffman decompressor, with following bitpatterns: + + + + + + + + + + + + + + + + +
BitsValue
00 -2
01 6
10 2
110 6
1110 11
1111 0 -11
1111 10 20
1111 110 -20
1111 1110 45
1111 1111 0 -45
1111 1111 10 90
1111 1111 110 -90
1111 1111 1110 180
1111 1111 1111 0 -180
+The result of this decompression run is 320*480 bytes for the first image, +and 320*240 for the second and third image. But these are not the pixel values, +these are differences! +
+So I had another look. Pixels are 8bit unsigned values and computed like this: +

    +
  • In the first row of the image: pixel[i] = lastpixel+decompressed_diff;
    + The first pixel is based on 0. +
  • In all other rows (starting lastvalue is pixel[0] of the previous line): +
      +
    • newpixelvalue = lastvalue + decompressed_diff;
      +
    • lastvalue = newpixelvalue*0.5 + pixel_lastline[i+1]*0.5; +
      +    		0 X 0
      +		X N 0
      +    
      + The 'X' pixels influence the 'N' pixel (together with the uncompressed diff) +
    +
+Tada. We now have 3 uncompressed images. To view each of them we can use: +
+	rawtopgm 320 480 <image0 | pnmflip -tb > image0.ppm
+	rawtopgm 320 240 <image1 | pnmflip -tb > image1.ppm
+	rawtopgm 320 240 <image2 | pnmflip -tb > image2.ppm
+
+where image0 is the first image read, and image1,image2 the next two images.

+Both give pretty grayscale pictures, but are not yet in color. + +

Chapter 3.2: The high quality compressed image format

+The high quality format uses a very different compression.

+It just compacts all 8bit values to 6bit by shortening out the 2 least +significant bits. +So we just restore them (AAAA AABB BBBB CCCC CCDD DDDD -> AAAAAA00, BBBBBB00, +CCCCCC00, DDDDDD00) and get the same grayscale images as with the lowquality +compression. + +

Chapter 3.3: Getting colors

+Now we have the green, the red and the blue components, with the green having +twice as much rows as the others.
+We can apply the bayer algorithm now and get the final 640x480 image. + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/serial.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/serial.c new file mode 100644 index 00000000..790e72ca --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/serial.c @@ -0,0 +1,564 @@ +/* + * Jenopt JD11 Camera Driver + * Copyright 1999-2001 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include + +#include +#include + +#include + +#include "serial.h" +#include "decomp.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#if 0 +static int +dread(GPPort *port, caddr_t buf, int xsize) { + int i; + int ret = gp_port_read(port,buf,xsize); + + if (ret == -1) { + perror("dread"); + return -1; + } + fprintf(stderr,"dread[%d]:",ret); + for (i=0;i>8; + buf[1] = cmd&0xff; + return WRITE(port,buf,2); +} + +static int _read_cmd(GPPort *port,unsigned short *xcmd) { + unsigned char buf[2]; + int i = 0,ret; + *xcmd = 0x4242; + do { + if (1==(ret=READ(port,buf,1))) { + if (buf[0]==0xff) { + if (1==READ(port,buf+1,1)) { + *xcmd = (buf[0] << 8)| buf[1]; + return GP_OK; + } + } + } else { + return ret; + } + } while (i++<10); + return GP_ERROR_IO; +} + +#if 0 +static void _dump_buf(unsigned char *buf,int size) { + int i; + fprintf(stderr,"["); + for (i=0;i>8; + buf[1] = cmd&0xff; + ret = WRITE(port,buf,2); + do { + if (1==(ret=READ(port,buf,1))) { + if (buf[0]==0xff) { + if (1==READ(port,buf+1,1)) { + *xcmd = (buf[0] << 8)| buf[1]; + return GP_OK; + } + } + } else { + return ret; + } + } while (i++<3); + } + return GP_ERROR_IO; +} + +int jd11_ping(GPPort *port) { + unsigned short xcmd; + char buf[1]; + int ret,tries = 3; + + while (tries--) { + ret = GP_ERROR_IO; + while (1==READ(port,buf,1)) + /* drain input queue before PING */; + ret=_send_cmd_2(port,0xff08,&xcmd); + if ((ret>=GP_OK) && (xcmd==0xfff1)) + return GP_OK; + } + return ret; +} + +int +jd11_get_rgb(GPPort *port,float *red, float *green, float *blue) { + char buf[10]; + int ret=GP_OK,tries=0,curread=0; + + _send_cmd(port,0xffa7); + while ((curread<10) && (tries++<30)) { + ret=READ(port,buf+curread,sizeof(buf)-curread); + if (ret < 0) + continue; + if (ret == 0) + break; + curread+=ret; + } + if(curread<10) { + fprintf(stderr,"%d returned bytes on float query.\n",ret); + return GP_ERROR_IO; + } + /*_dump_buf(buf,10);*/ + *green = buf[1]+buf[2]*0.1+buf[3]*0.01; + *red = buf[4]+buf[5]*0.1+buf[6]*0.01; + *blue = buf[7]+buf[8]*0.1+buf[9]*0.01; + return GP_OK; +} + +int +jd11_set_rgb(GPPort *port,float red, float green, float blue) { + unsigned char buf[20]; + + _send_cmd(port,0xffa7); + buf[0] = 0xff; + buf[1] = (int)green; + buf[2] = ((int)(green*10))%10; + buf[3] = ((int)(green*100))%10; + buf[4] = (int)red; + buf[5] = ((int)(red*10))%10; + buf[6] = ((int)(red*100))%10; + buf[7] = (int)blue; + buf[8] = ((int)(blue*10))%10; + buf[9] = ((int)(blue*100))%10; + /*_dump_buf(buf,10);*/ + return WRITE(port,buf,10); +} + +int +jd11_select_index(GPPort *port) { /* select index */ + unsigned short xcmd; + int ret; + + ret = _send_cmd_2(port,0xffa4,&xcmd); + if (ret < GP_OK) + return ret; + if (xcmd!=0xff01) + return GP_ERROR_IO; + return GP_OK; +} + +int +jd11_select_image(GPPort *port,int nr) { /* select image */ + unsigned short xcmd; + + _send_cmd(port,0xffa1); + _send_cmd(port,0xff00|nr); + _read_cmd(port,&xcmd); + if (xcmd != 0xff01) + return GP_ERROR_IO; + return GP_OK; +} + +int +jd11_set_bulb_exposure(GPPort *port,int i) { + unsigned short xcmd; + + if ((i<1) || (i>9)) + return GP_ERROR_BAD_PARAMETERS; + + _send_cmd(port,0xffa9); + _send_cmd(port,0xff00|i); + _read_cmd(port,&xcmd); + return GP_OK; +} + +#if 0 +static void jd11_TestADC(GPPort *port) { + unsigned short xcmd; + + _send_cmd(port,0xff75); + _read_cmd(port,&xcmd); + fprintf(stderr,"TestADC: done, xcmd=%x\n",xcmd); +} +static void cmd_TestDRAM(GPPort *port) { + unsigned short xcmd; + + _send_cmd(port,0xff72); + _read_cmd(port,&xcmd); + fprintf(stderr,"TestDRAM: done.\n"); +} + +/* doesn't actually flash */ +static void cmd_TestFLASH(GPPort *port) { + unsigned short xcmd; + + _send_cmd(port,0xff73); + _read_cmd(port,&xcmd); + fprintf(stderr,"TestFLASH: xcmd = %x.\n",xcmd); +} + +/* some kind of selftest ... shuts the shutters, beeps... only stops by + * powercycle. */ +static void cmd_79(GPPort *port) { + unsigned short xcmd; + + _send_cmd(port,0xff79); + _read_cmd(port,&xcmd); + fprintf(stderr,"79: done, xcmd =%x\n",xcmd); +} +#endif + + +static int +jd11_imgsize(GPPort *port) { + char buf[20]; + int ret; + int i=0,curread=0; + + _send_cmd(port,0xfff0); + do { + ret=READ(port,&buf[curread],10-curread); + if (ret>0) + curread+=ret; + usleep(1000); + } while ((i++<20) && (curread<10)); + /*_dump_buf(buf,curread);*/ + if (!curread) /* We get 0 bytes return for 0 images. */ + return 0; + ret=strtol(&buf[2],NULL,16); + return ret; +} + +static int +getpacket(GPPort *port,unsigned char *buf, int expect) { + int curread = 0, csum = 0; + int tries = 0; + if (expect == 200) + expect++; + while (tries++<5) { + int i=0,ret; + + do { + ret=READ(port,buf+curread,expect-curread); + if (ret>0) { + curread+=ret; + i=0; + continue; + } + usleep(100); + } while ((i++<2) && (curread200) readsize = 200; + ret=getpacket(port,indexbuf+curread,readsize); + if (ret==0) + break; + curread+=ret; + if (ret<200) + break; + gp_context_progress_update (context, id, curread); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + /* What to do...Just free the stuff we allocated for now.*/ + free(indexbuf); + return GP_ERROR_CANCEL; + } + _send_cmd(port,0xfff1); + } + gp_context_progress_stop (context, id); + for (i=0;iport; + unsigned int id; + + jd11_select_image(port,nr); + *imagebufs = (unsigned char**)malloc(3*sizeof(unsigned char*)); + for (picnum=0;picnum<3;picnum++) { + curread=0; + sizes[picnum] = jd11_imgsize(port); + (*imagebufs)[picnum]=(unsigned char*)malloc(sizes[picnum]+400); + _send_cmd(port,0xfff1); + id = gp_context_progress_start (context, sizes[picnum], + _("Downloading data...")); + while (curread 200) readsize = 200; + ret=getpacket(port,(*imagebufs)[picnum]+curread,readsize); + if (ret==0) + break; + curread+=ret; + if (ret<200) + break; + gp_context_progress_update (context, id, curread); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + int j; + /* What to do ... Just free the stuff we allocated for now. */ + for (j=0;jright mirrored */ + for (h=480;h--;) { + int w; + for (w=320;w--;) { + if (h&1) { + /* G B G B G B G B G */ + *s++ = uncomp[0][h*320+w]; + *s++ = uncomp[2][(h/2)*320+w]; + } else { + /* R G R G R G R G R */ + *s++ = uncomp[1][(h/2)*320+w]; + *s++ = uncomp[0][h*320+w]; + } + } + } + /*gp_bayer_decode(bayerpre,640,480,data,BAYER_TILE_GRBG);*/ + gp_ahd_decode(bayerpre,640,480,data,BAYER_TILE_GRBG); + free(bayerpre); + } else { + s=data; + for (h=480;h--;) { /* upside down */ + int w; + for (w=640;w--;) { /* right to left */ + /* and images are in green red blue */ + *s++=uncomp[1][(h/2)*320+(w/2)]; + *s++=uncomp[0][h*320+(w/2)]; + *s++=uncomp[2][(h/2)*320+(w/2)]; + } + } + } + free(uncomp[0]);free(uncomp[1]);free(uncomp[2]); + free(imagebufs[0]);free(imagebufs[1]);free(imagebufs[2]);free(imagebufs); + gp_file_append(file, (char*)data, 640*480*3); + free(data); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/serial.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/serial.h new file mode 100644 index 00000000..795751a1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jd11/serial.h @@ -0,0 +1,42 @@ +/* + * Jenopt JD11 Camera Driver + * Copyright 1999-2001 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef _JD11_SERIAL_H +#define _JD11_SERIAL_H + +#include +#include + +extern int jd11_index_reader(GPPort *port, CameraFilesystem *fs, GPContext *context); +extern int jd11_get_image_full(Camera *camera,CameraFile *file,int nr,int raw, GPContext *context); +extern int jd11_erase_all(GPPort *port); +extern int jd11_ping(GPPort *port); +extern int jd11_float_query(GPPort *port); +extern int jd11_select_index(GPPort *port); +extern int jd11_select_image(GPPort *port, int nr); +extern int jd11_set_bulb_exposure(GPPort *port, int nr); +extern int jd11_set_rgb(GPPort *port, float red, float green, float blue); +extern int jd11_get_rgb(GPPort *port, float *red, float *green, float *blue); + + +#define IMGHEADER "P6\n# gPhoto2 JD11 thumbnail image\n640 480 255\n" +#define THUMBHEADER "P5\n# gPhoto2 JD11 thumbnail image\n64 48 255\n" + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/ChangeLog new file mode 100644 index 00000000..87cceabe --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/ChangeLog @@ -0,0 +1,29 @@ +2009-12-24 Theodore Kilgore + library.c: Some cameras can hold more than 100 photos. Numbering + field in filenames increased to 3 digits. Some code cleanup. + gp_bayer_decode() replaced by gp_ahd_decode() + +2009-02-21 Theodore Kilgore + library,c: Cobra DC-125 added, reported by + Tim Johnson . + +2008-01-03 Theodore Kilgore + jl2005a.c: Improvements in jl2005a_read_picture_data(). + +2007-12-04 Theodore Kilgore + README.jl2005a: Updated + jl2005a.c: A decompression function has been added, to accommodate + the needs of the Noganet TDC-15, based upon raw files + sent by J. Barraco. + library.c: Decompression function hooked up. + +2007-10-15 Theodore Kilgore + library.c: NogaNet TDC-15 added, reported by + Jeronimo Barraco + README.jl2005a: Updated + jl2005a.c: Size of 176x144 compressed photos was incorrectly reported. + Patch applied. Will need testing by J. Barraco + +2007-09-16 Theodore Kilgore + + * *.[c,h]: First check-in. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/Makefile-files new file mode 100644 index 00000000..c4bd9171 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/Makefile-files @@ -0,0 +1,13 @@ +# -*- Makefile -*- + +EXTRA_DIST += jl2005a/README.jl2005a jl2005a/ChangeLog +camlibdoc_DATA += jl2005a/README.jl2005a jl2005a/ChangeLog + +EXTRA_LTLIBRARIES += jl2005a.la + +jl2005a_la_SOURCES = jl2005a/library.c\ + jl2005a/jl2005a.c\ + jl2005a/jl2005a.h +jl2005a_la_LDFLAGS = $(camlib_ldflags) +jl2005a_la_DEPENDENCIES = $(camlib_dependencies) +jl2005a_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/README.jl2005a b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/README.jl2005a new file mode 100644 index 00000000..351522d2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/README.jl2005a @@ -0,0 +1,113 @@ +JEILIN JL2005A STILLCAM DRIVER +Copyright Theodore Kilgore September 16, 2007. + +(Everything in libgphoto2/camlibs/jl2005a is LGPL-licensed, including this +README. See any of the source files for a more complete statement of the +license.) + +INTRODUCTION + +This driver is intended to support cameras containing the JL2005A chip from +Jeilin Technologies. The interface is proprietary, and these cameras are +supported commercially only in Windows. Jeilin Technologies also manufactures +chips which go into mass storage cameras. Those cameras can be accessed +directly using mass storage support. The company also manufactures some other +chips with proprietary interface, but with very different protocols. Some of +the cameras may be supported in the future in libgphoto2. The USB Vendor and +Product number for the JL2005A cameras is 0x0979:0x0224. At least, I do not +know at this time about any other USB id for these cameras, and I also am not +aware of any other JL2005A cameras which have different functionality from +what is done here. + +RECOMMENDATIONS FOR REPORTING CAMERAS + +Right now, I only own one of these for testing. It is the so-called American +Idol keychain camera, which I found at a local KB Toys. I am aware that several +others exist. If people will be so kind as to send me the needed details I +would be happy to add them explicitly to the list in library.c. Please +understand that I need to have whatever information you can find, so please do +not throw away the manual, the driver CD, or the plastic package the camera +was sold in until we get this information! It happens quite often that the +camera itself has no name at all, or just some embossed letters on the plastic +which say "DIGITAL CAMERA" -- hardly a unique identifier. + +Quite often, the only way to identify uniquely an entry-level consumer digital +camera is by something appearing in fine print on the packing materials, which, +alas, the purchaser can easily overlook and may have simply thrown in the +trash. The computer, of course, uses the Vendor:Product ID, but that is of +course never printed on the outside of packages. The point is, others should +be able to find the camera in the store by the name and description which is +given to it in libgphoto2, and moreover it is quite inappropriate if we add +support for some dozens of distinct devices, each of which has the name string +calling it "DIGITAL CAMERA". + + +WHAT DOES THIS CAMERA LIBRARY CURRENTLY DO? + +There is support for all of the basic gphoto2 still camera operations which +my JL2005A camera is known to support through hardware. This includes support +for downloading photos in each of the two available resolution sizes 352*288 +and 176*144. The data in neither case is compressed, though the raw data for +176*144 size is obfuscated and thus not in a completely standard format. Both +of these formats are supported in the driver. + +Support for the option gphoto2 -p (for downloading selected photos or frames) +seems to work "out of the box" unlike what happens with some other low-priced +cameras. Thus, it ought not to be a problem to use one of these cameras with +any of the GUI frontends which are based upon libgphoto2. + +The camera will not shoot snapshots, neither for immediate download (gphoto2 +--capture-preview option nor to be stored on the camera for later downloading +(--capture-image option). These operations can be done but are implemented +through the pccam or webcam interface, which uses isochronous data transmission +and is therefore outside the boundaries of the stillcam operations which +libgphoto2 supports. + +The camera also does not support the deletion of individual photos, even with +a button press, but only the deletion of all. It does seem that to put the +camera into pccam mode will delete all photos, but it is not clear at which +stage in that process the photos get deleted. Pccam mode involves a different +altsetting, which would involve a reset, and then the isochronous inep must +be accessed. As my impression by watching the camera being put into pccam mode +while photos are already in it is that said photos do not get deleted until +the camera actually starts sending data, I have made no attempt at this time +to try to use the pccam function to delete all photos. + +The camera will shoot clips in "continuous" mode, meaning it will shoot frames +until the camera is full. The resolution setting for these frames is whatever +was the resolution setting before one started to shoot frames. Moreover, this +function will not delete any previous photos already in the camera. The +resulting frames are downloaded and treated as ordinary photos. If you want to +use this function, then, and get an animation, that can easily be done using +the "animate" function from the ImageMagick toolkit, or with a similar tool +from a similar image processing suite. + +ANOTHER JL2005A CAMERA, WHICH IN ADDITION TO THE ABOVE, USES COMPRESSION + +has been discovered by Jeronimo Barraco . That +camera is the TDC-15, sold by NogaNet in Argentina. The compressed mode is +optional on this camera; one is not forced to use it. On closer investigation, +the compression is not actual compression at all, but data truncation. What has +been done is that every four lines of data have been "compressed" to two lines. +by the simple expedient of suppressing two of them. The same photo still comes +out if nothing at all is done to it, but the vertical dimension is divided by +two. As an inevitable result, the "decompression" is necessarily some kind of +interpolation of the missing lines of data. I have used simple linear +interpolation. If someone comes up with a better way which gives nicer-looking +images from these cameras, then please let me know. Actually, from the samples +which I have on hand the results do not look too bad most of the time. However, +the user is advised that occasional raggedness is inevitable from data which +has been thus truncated. + +Another camera which seems to be functionally similar to the TDC-15 is the +Cobra DC-125, reported by Tim Johnson . + + +WARRANTY? + +Absolutely none. Remember, I did not sell you this software. I have written +this driver for my own edification and in the sincere hope that it might help +you to use of your camera. Please see also the warranty clauses +in the LGPL license. + +Updated 12/02/2007, 02/21/2009 \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/jl2005a.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/jl2005a.c new file mode 100644 index 00000000..5f3a5e32 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/jl2005a.c @@ -0,0 +1,235 @@ +/* jl2005a.c + * + * Copyright (C) 2006 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include "gphoto2-endian.h" + +#include "jl2005a.h" + +#define GP_MODULE "jl2005a" + +int +jl2005a_init (Camera *camera, GPPort *port, CameraPrivateLibrary *priv) +{ + GP_DEBUG("Running jl2005a_init\n"); + + jl2005a_shortquery(port, 0x0d); /* Supposed to get 0x08 */ + jl2005a_shortquery(port, 0x1c); /* Supposed to get 0x01 */ + jl2005a_shortquery(port, 0x20); /* Supposed to get 0x04 */ + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa1\x02", 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa2\x02", 2); + jl2005a_shortquery(port, 0x1d); /* 1 if camera is full, else 0 */ + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa1\x00", 2); + priv->nb_entries = jl2005a_shortquery(port, 0x0a)&0xff; + /* Number of pix returned here */ + GP_DEBUG("%d entries in the camera\n", priv->nb_entries); + return jl2005a_shortquery(port, 0x1d); /* Should get 0, same as GP_OK */ +} + +int +jl2005a_get_pic_data_size (GPPort *port, int n) +{ + unsigned int size = 0; + char command[2]; + char response=0; + command[0] = 0xa1; + command[1] = (char)(n&0xff); + GP_DEBUG("Getting photo data size\n"); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, command, 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa2\x0b", 2); + jl2005a_shortquery(port, 0x1d); + size = response&0xff; + GP_DEBUG("size = 0x%x\n", size); + response = (jl2005a_read_info_byte(port, 1) )&0xff; + size = ((response&0xff) << 8)| size; + GP_DEBUG("size = 0x%x\n", size); + response = (jl2005a_read_info_byte(port, 2 ))&0xff; + size = ((response&0xff)<<16)|size; + if (size == 0x3100) + size += 0x80; + GP_DEBUG("size = 0x%x\n", size); + return (size); +} + +int +jl2005a_get_pic_width (GPPort *port) +{ + int width; + char response; + response = (jl2005a_read_info_byte(port, 3))&0xff; + width = (response&0xff); + response = (jl2005a_read_info_byte(port, 4) )&0xff; + width = ((response&0xff) << 8)|width; + return (width); +} + +int +jl2005a_get_pic_height (GPPort *port) +{ + int height; + char response; + response = (jl2005a_read_info_byte(port, 5) )&0xff; + height = (response&0xff); + response = (jl2005a_read_info_byte(port, 6) )&0xff; + height = ((response&0xff)<< 8)|height; + return (height); +} + +int +set_usb_in_endpoint (Camera *camera, int inep) +{ + GPPortSettings settings; + gp_port_get_settings ( camera ->port, &settings); + settings.usb.inep = inep; + GP_DEBUG("inep reset to %02X\n", inep); + return gp_port_set_settings ( camera ->port, settings); +} + +int +jl2005a_read_picture_data (Camera *camera, GPPort *port, + unsigned char *data, unsigned int size) +{ + unsigned char *to_read; + int maxdl = 0xfa00; + int ret; + + to_read=data; + jl2005a_read_info_byte(port, 7); + /* Always 0x80. Purpose unknown */ + jl2005a_read_info_byte(port, 0x0a); + /* Previous byte is 0x11 if what is to be downloaded is the first + * frame in a clip, is 0x01 if it is any clip frame after the initial + * one, and is zero if what is to be downloaded is a standalone photo. + * If clips will in the future be processed as AVI files, then there is + * not any information to know how many frames are present, prior to + * downloading them. There is only a starting point and an indicator + * for each frame. + */ + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa1\x04", 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa2\x08", 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa1\x05", 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa2\x08", 2); + + /* Switch the inep over to 0x81. */ + set_usb_in_endpoint (camera, 0x81); + while (size > maxdl) { + ret = gp_port_read(port, (char *)to_read, maxdl); + if (ret < GP_OK) return ret; + if (ret == 0) return GP_ERROR; + to_read += maxdl; + size -= maxdl; + } + ret = gp_port_read(port, (char *)to_read, size); + if (ret < GP_OK) return ret; + if (ret < size) return GP_ERROR; + /* Switch the inep back to 0x84. */ + set_usb_in_endpoint (camera, 0x84); + return GP_OK; +} + +int +jl2005a_reset (Camera *camera, GPPort *port) +{ + int i; + gp_port_write (port,"\xab\x00" , 2); + gp_port_write (port, "\xa1\x00", 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa2\x02", 2); + for (i=0; i < 4; i++) + jl2005a_shortquery(port, 0x1d); + /* Supposed to get something like 0x01, 0x01, 0x01, 0x00 */ + return GP_OK; +} + +int jl2005a_read_info_byte(GPPort *port, int n) +{ + char response; + char command[2]; + command[0] = 0xa1; + command[1] = (char)(n&0xff); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, command , 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa2\x0c", 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa3\xa1", 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_read (port,&response, 1); + return response&0xff; + +} + +int jl2005a_shortquery(GPPort *port, int n) +{ + char response; + char command[2]; + command[0] = 0xa2; + command[1] = (char)(n&0xff); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, command, 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xa3\xa1", 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_write (port, "\xab\x00", 2); + gp_port_read (port, &response, 1); + return response&0xff; +} + +int jl2005a_decompress (unsigned char *inp, unsigned char *outp, int width, + int height) +{ + int i,j; + for (i=0; i < height/2; i+=2) { + memcpy(outp+2*i*width,inp+i*width, 2*width); + } + memcpy(outp+(height-2)*width,outp+(height-4)*width, 2*width); + for (i=0; i < height/4-1; i++) { + for (j=0; j < width; j++) { + outp[(4*i+2)*width+j]=(inp[(2*i)*width+j]+ + inp[(2*i+2)*width+j])/2; + outp[(4*i+3)*width+j]=(outp[(4*i+1)*width+j]+ + outp[(4*i+5)*width+j])/2; + } + } + if (width == 176) + memmove(outp+6*width, outp, (height-6)*width); + + return 0; +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/jl2005a.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/jl2005a.h new file mode 100644 index 00000000..7b90cb7c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/jl2005a.h @@ -0,0 +1,56 @@ +/* jl2005a.h + * + * Copyright (C) 2006 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __jl2005a_H__ +#define __jl2005a_H__ + +#ifdef HAVE_UNISTD_H +# include +#endif +#include + +struct _CameraPrivateLibrary { + unsigned char *catalog; + int nb_entries; + int last_fetched_entry; + int data_reg_accessed; + unsigned long data_to_read; + unsigned char *data_cache; + int data_used_from_block; +}; + + +int jl2005a_init (Camera *camera, GPPort *port, + CameraPrivateLibrary *priv); +int jl2005a_get_pic_data_size (GPPort *port, int n); +int jl2005a_get_pic_width (GPPort *port); +int jl2005a_get_pic_height (GPPort *port); +int set_usb_in_endpoint (Camera *camera, int inep); +int jl2005a_read_picture_data ( Camera *camera, + GPPort *port, unsigned char *data, + unsigned int size); +int jl2005a_reset (Camera *camera, GPPort *port); +int jl2005a_read_info_byte(GPPort *port, int n); +int jl2005a_shortquery(GPPort *port, int n); +int jl2005a_decompress (unsigned char *inp, unsigned char *outp, int width, + int height); + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/library.c new file mode 100644 index 00000000..80a2e3e7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005a/library.c @@ -0,0 +1,359 @@ +/* library.c + * + * Copyright (C) 2006 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include + +#include +#include +#include + +#include +#include + +#include + + + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "jl2005a.h" +#include + +#define GP_MODULE "jl2005a" + +struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {"American Idol Keychain Camera", GP_DRIVER_STATUS_TESTING, + 0x0979, 0x0224}, + {"NogaNet TDC-15", GP_DRIVER_STATUS_TESTING, 0x0979, 0x0224}, + {"Cobra DC125", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0224}, + {NULL,0,0,0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "JL2005A camera"); + return GP_OK; +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].name); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + if (a.status == GP_DRIVER_STATUS_EXPERIMENTAL) + a.operations = GP_OPERATION_NONE; + else + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_PREVIEW + + GP_FILE_OPERATION_RAW; + gp_abilities_list_append (list, a); + } + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + int num_pics; + num_pics = camera->pl->nb_entries; + GP_DEBUG("camera->pl->nb_entries = %i\n",camera->pl->nb_entries); + sprintf (summary->text,_("This camera contains a Jeilin JL2005A chipset.\n" + "The number of photos in it is %i. \n"), num_pics); + return GP_OK; +} + + +static int camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy(manual->text, + _( + "This driver supports cameras with Jeilin jl2005a chip \n" + "These cameras do not support deletion of photos, nor uploading\n" + "of data. \n" + "Decoding of compressed photos may or may not work well\n" + "and does not work equally well for all supported cameras.\n" + "If present on the camera, video clip frames are downloaded \n" + "as consecutive still photos.\n" + "For further details please consult libgphoto2/camlibs/README.jl2005a\n" + )); + + return (GP_OK); +} + + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("jl2005a camera library\n" + "Theodore Kilgore \n")); + return GP_OK; +} + +/*************** File and Downloading Functions *******************/ + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int n; + n = camera->pl->nb_entries; + gp_list_populate (list, "jl_%03i.ppm", n); + return GP_OK; +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + info->file.fields = GP_FILE_INFO_TYPE; + strcpy (info->file.type, GP_MIME_PPM); + + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int status = GP_OK; + unsigned int w, h = 0; + int i,j,k; + int b = 0; + int compressed = 0; + unsigned char header[5] = "\xff\xff\xff\xff\x55"; + unsigned int size; + unsigned char *data; + unsigned char *image_start; + unsigned char *p_data=NULL; + unsigned char *ppm=NULL, *ptr=NULL; + unsigned char gtable[256]; + unsigned char temp; + + GP_DEBUG ("Downloading pictures!\n"); + + /* These are cheap cameras. There ain't no EXIF data. So kill this. */ + if (GP_FILE_TYPE_EXIF == type) return GP_ERROR_FILE_EXISTS; + /* Get the number of the photo on the camera */ + k = gp_filesystem_number (camera->fs, "/", filename, context); + GP_DEBUG ("Filesystem number is %i\n",k); + b = jl2005a_get_pic_data_size(camera->port, k); + GP_DEBUG("b = %i = 0x%x bytes\n", b,b); + w = jl2005a_get_pic_width(camera->port); + GP_DEBUG ("width is %i\n", w); + h = jl2005a_get_pic_height(camera->port); + GP_DEBUG ("height is %i\n", h); + + /* sanity check against bad usb devices */ + if ((w ==0) || (w > 1024) || (h == 0) || (h > 1024)) return GP_ERROR_CORRUPTED_DATA; + + /* Image data to be downloaded contains header and footer bytes */ + data = malloc (b+14); + if (!data) return GP_ERROR_NO_MEMORY; + + jl2005a_read_picture_data (camera, camera->port, data, b+14); + if (memcmp(header,data,5) != 0) + /* Image data is corrupted! Repeat the operation. */ + jl2005a_read_picture_data (camera, camera->port, data, b+14); + + if (GP_FILE_TYPE_RAW == type) { + gp_file_set_mime_type(file, GP_MIME_RAW); + gp_file_set_data_and_size(file, (char *)data , b+14 ); + return GP_OK; + } + + /* Now get ready to put the data into a PPM image file. */ + image_start=data+5; + if (w == 176) { + for (i=1; i < h; i +=4){ + for (j=1; j< w; j ++){ + temp=image_start[i*w+j]; + image_start[i*w+j] = image_start[(i+1)*w+j]; + image_start[(i+1)*w+j] = temp; + } + } + if (h == 72) { + compressed = 1; + h = 144; + } + } else + if (h == 144) { + compressed = 1; + h = 288; + } + + /* sanity check the sizes, as the ahd bayer algorithm does not like very small height / width */ + if ((h < 72) || (w < 176)) { + status = GP_ERROR_CORRUPTED_DATA; + goto end; + } + p_data = malloc( w*h ); + if (!p_data) { + status = GP_ERROR_NO_MEMORY; + goto end; + } + if (compressed) { + /* compressed seems to mean half the lines */ + if (w/2*h > b+14) { + free(p_data); + status = GP_ERROR_CORRUPTED_DATA; + goto end; + } + jl2005a_decompress (image_start, p_data, w, h); + } else { + if (w*h > b+14) { + free(p_data); + status = GP_ERROR_CORRUPTED_DATA; + goto end; + } + memcpy(p_data, image_start, w*h); + } + ppm = malloc (w * h * 3 + 256); /* room for data and header */ + if (!ppm) { + free(p_data); + status = GP_ERROR_NO_MEMORY; + goto end; + } + sprintf ((char *)ppm, + "P6\n" + "# CREATOR: gphoto2, JL2005A library\n" + "%d %d\n" + "255\n", w, h); + size = strlen ((char *)ppm); + ptr = ppm + size; + size = size + (w * h * 3); + GP_DEBUG ("size = %i, w = %d, h = %d\n", size, w,h ); + gp_ahd_decode (p_data, w , h, ptr, BAYER_TILE_BGGR); + + free(p_data); + gp_gamma_fill_table (gtable, .65); + gp_gamma_correct_single (gtable, ptr, w * h); + gp_file_set_mime_type (file, GP_MIME_PPM); + gp_file_set_data_and_size (file, (char *)ppm, size); +end: + free(data); + return status; +} + + +/*************** Exit and Initialization Functions ******************/ + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("jl2005a camera_exit"); + jl2005a_reset(camera, camera->port); + gp_port_close(camera->port); + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func +}; + +int +camera_init(Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int ret = 0; + + /* First, set up all the function pointers */ + camera->functions->manual = camera_manual; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + + GP_DEBUG ("Initializing the camera\n"); + ret = gp_port_get_settings(camera->port,&settings); + if (ret < 0) return ret; + + switch (camera->port->type) { + case GP_PORT_SERIAL: + return ( GP_ERROR ); + case GP_PORT_USB: + settings.usb.config = 1; + settings.usb.altsetting = 0; + settings.usb.interface = 0; + /* inep 0x84 used for commands, 0x81 for data. */ + settings.usb.inep = 0x84; + settings.usb.outep = 0x03; + break; + default: + return ( GP_ERROR ); + } + + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) return ret; + + GP_DEBUG("interface = %i\n", settings.usb.interface); + GP_DEBUG("inep = %x\n", settings.usb.inep); + GP_DEBUG("outep = %x\n", settings.usb.outep); + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + /* Connect to the camera */ + camera->pl->data_reg_accessed = 0; + camera->pl->data_to_read = 0; + camera->pl->data_used_from_block = 0; + camera->pl->data_cache = NULL; + jl2005a_init (camera,camera->port, camera->pl); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/ChangeLog new file mode 100644 index 00000000..2a2cdcfe --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/ChangeLog @@ -0,0 +1,93 @@ +2012-01-12 Theodore Kilgore + * README.jl2005c: updated. + * library.c: Sakar 94009 Hello Kitty added. Yet another Vivitar Freelance + discovered in the wild. Looks different from the others. Not listed + separately. + +2012-01-12 Theodore Kilgore + * library.c: Jazwares Star Wars camera added. + +2011-06-20 Theodore Kilgore + * library.c: Sakar 88067 Dora the Explorer camera added. + +2010-04-28 Theodore Kilgore + * README.jl2005c: minor cleanup. + * library.c: Sakar 88601 Nickelodeon iCarly camera added. + +2010-12-26 Marcus Meissner + + * jl2005bcd_decompress.c: Dynamically allocate the out and + jpeg_stripe buffers, such large buffers are not liked by the + kernel. + +2010-04-28 Theodore Kilgore + * README.jl2005c: updated. + * README.jl2005bcd-compression: updated, new copy of wiki page. + * jl2005c.[c,h]: jl2005c_delete_all() added. + * library.c: delete_all_func() added. + +2010-04-24 Theodore Kilgore + * jl2005bcd_decompress.c: GP_DEBUG() replaces printf() + +2010-04-19 Theodore Kilgore + * README.jl2005c: revised. + * README.jl2005bcd-compression: added. + * img_enhance.[c,h]: added. + * jl2005bcd_decompress.[c,h]: added. Decompresses data, autodetects + thumbnails if present in raw data, can also process the + thumbnails. + * jpeg_memsrcdest.[c,h]: added (helper files for decompression). + NOTE: Decompression algorithm is completely solved. Camlib + should be added as "standard" part of libgphoto2. + +2010-04-18 Theodore Kilgore + * library.c: Yet another camera found. + +2010-04-14 Theodore Kilgore + * library.c: Yet another camera found. + +2010-04-13 Theodore Kilgore + * library.c: Lots of cameras added to the camera list. + +2009-04-16 Theodore Kilgore + * README.jl2005c: Updated. + +2008-07-11 Theodore Kilgore + * library.c: Listing for Argus Bean Sprout added, found + by T.K. + +2008-05-20 Theodore Kilgore + * library.c: Listing for Sakar Sticker Wizard no. 59379 added, found + by Niklas Peinecke + +2008-05-12 Theodore Kilgore + * library.c: Listing for Sakar clipshot no. 1169x added. + +2008-01-06 Theodore Kilgore + * *.[c,h]: The camera of Patrick Simmons is determined to be a + JL2005D. Support is introduced for distinguishing the + B, C, and D versions in the places where that is needed. + Support is added for downloading an arbitrary photo from + the list of photos in the camera. + NOTE: All these cameras use compression, and how to + decompress is still unknown. Thus, raw files only. + + +2007-12-28 Theodore Kilgore + * library.c: Added support for "Amazing Spiderman" reported by + Victor Hodge and for + Sakar no. 75379 reported by + Patrick Simmons and for + Sakar Kidz-Cam no. 88379 reported by + Martin Laberge . + * *.[c,h]: Introduced changes to give unified support to both + JL2005C and JL2005B in the same functions. + NOTE: All these cameras use compression, and how to + decompress is still unknown. + +2007-09-04 Theodore Kilgore + + * *.[c,h]: First check-in of experimental driver code. Nothing + much works exactly right. Driver will download data + without freezing the camera, and that's about it. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/Makefile-files new file mode 100644 index 00000000..e3f58974 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/Makefile-files @@ -0,0 +1,19 @@ +# -*- Makefile -*- + +EXTRA_DIST += jl2005c/README.jl2005c jl2005c/README.jl2005bcd-compression jl2005c/ChangeLog +camlibdoc_DATA += jl2005c/README.jl2005c jl2005c/README.jl2005bcd-compression + +EXTRA_LTLIBRARIES += jl2005c.la + +jl2005c_la_SOURCES = jl2005c/library.c\ + jl2005c/jl2005c.c\ + jl2005c/jpeg_memsrcdest.c \ + jl2005c/jpeg_memsrcdest.h \ + jl2005c/jl2005bcd_decompress.c\ + jl2005c/jl2005bcd_decompress.h\ + jl2005c/jl2005c.h\ + jl2005c/img_enhance.c\ + jl2005c/img_enhance.h +jl2005c_la_LDFLAGS = $(camlib_ldflags) +jl2005c_la_DEPENDENCIES = $(camlib_dependencies) +jl2005c_la_LIBADD = $(camlib_libadd) @LIBJPEG@ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/README.jl2005bcd-compression b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/README.jl2005bcd-compression new file mode 100644 index 00000000..57633f5b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/README.jl2005bcd-compression @@ -0,0 +1,310 @@ +History of the reverse engineering of the compression used in the + JL2005B, JL2005C, and JL2005D cameras +----------------------------------------------------------- + +All of these cameras use a compression format which is derived from JPEG +but is in several respects non-standard, making the job of understanding +it very difficult. + +Thus, after several years have passed by, during which it has been possible +to get the raw files out of these cameras but not possible to do anything +with the data in the raw files, a task force was started to deal with the +problem. The results of the reverse engineering work by Adam Rubin and +Bertrik Sikken were shared by means of a wiki page with Hans de Goede +and me (Theodore Kilgore). What is known as of April 10, 2010 is listed +at + + + +A dump of this page is given below. + +The description provided in this webpage was used to write the decompression +code. The objective was to provide output in a standard, uncompressed bitmap +format in order to provide the opportunity to apply whatever techniques for +image enhancement or postprocessing that might be needed. The format chosen +for this was PPM, used in many other camera libraries in libgphoto2. + +Faced with the choice of incorporating a modified variant of libjpeg in +the decompression code, for ultimate inclusion in libgphoto2/camlibs/jl2005c, +or else finding a way to use the standard library functions of libjpeg, +Hans de Goede found a way to use the standard library functions with minimal +modification. + +The details of how the decompression algorithm needs to work are well laid +out in the dump of the wiki web page (below). See especially the section +called "Entropy coded data." + +A modified version of the file jpeg_memsrcdest.c is part of the +decompression package here. The copyright notice of the original file is +preserved inside the file, and it is also copied here: + +/* + * jpeg_memsrcdest.c and jidctflt.c + * + * Copyright (C) 1994-1998, Thomas G. Lane. + * This file is part of the Independent JPEG Group's software. + * + * The authors make NO WARRANTY or representation, either express or implied, + * with respect to this software, its quality, accuracy, merchantability, or + * fitness for a particular purpose. This software is provided "AS IS", and you, + * its user, assume the entire risk as to its quality and accuracy. + * + * This software is copyright (C) 1991-1998, Thomas G. Lane. + * All Rights Reserved except as specified below. + * + * Permission is hereby granted to use, copy, modify, and distribute this + * software (or portions thereof) for any purpose, without fee, subject to these + * conditions: + * (1) If any part of the source code for this software is distributed, then this + * README file must be included, with this copyright and no-warranty notice + * unaltered; and any additions, deletions, or changes to the original files + * must be clearly indicated in accompanying documentation. + * (2) If only executable code is distributed, then the accompanying + * documentation must state that "this software is based in part on the work of + * the Independent JPEG Group". + * (3) Permission for use of this software is granted only if the user accepts + * full responsibility for any undesirable consequences; the authors accept + * NO LIABILITY for damages of any kind. + * + * These conditions apply to any software derived from or based on the IJG code, + * not just to the unmodified library. If you use our work, you ought to + * acknowledge us. + * + * Permission is NOT granted for the use of any IJG author's name or company name + * in advertising or publicity relating to this software or products derived from + * it. This software may be referred to only as "the Independent JPEG Group's + * software". + * + * We specifically permit and encourage the use of this software as the basis of + * commercial products, provided that all warranty or liability claims are + * assumed by the product vendor. + */ + + +Below is a dump of: + +Made on 28 April 2010. + +ImageEncodingJeilin2005CD +From gphoto +Jump to: navigation, search +Contents + + * 1 Introduction + * 2 Photo Allocation Table + * 3 Image format + o 3.1 Image header + o 3.2 Thumbnail image + o 3.3 Entropy coded data + + 3.3.1 Huffman table + + 3.3.2 Quantisation table + +Introduction + +This page describes the image format used in cameras with the Jeilin JL2005B / JL2005C / JL2005D chip. + +This chip stores images in a non-standard JPEG-like format. To understand the information on this page, it is recommended to have a basic understanding of JPEG compression. +Photo Allocation Table + +At the start of the camera's accessible RAM is the PAT (photo allocation table), 0x30 bytes of data (not included in image headers), immediately followed by the 16-byte image headers for all the photos in consecutive order. + +A few bytes of the data at the start of the PAT table are of interest. All word values are big-endian. + + * 0x00-0x06 -- "JL2005B" or "JL2005C" or "JL2005D", whichever chip this camera has. + * 0x07 -- bit flags; apparently bit 2 is set if this camera supports thumbnails, and cleared if it doesn't; sometimes bits 0 and/or 1 are set, purposes unknown; all other bits always observed as zero so far + * 0x08-0x09 -- first writeable block in camera's RAM (see "Image Header" below for block sizes) + * 0x0a-0x0b -- first unused block after image data (where next photo taken would start) + * 0x0c-0x0d -- word containing number of images in the camera, counting each frame within a clip as one. This many 16-byte image headers should be read from the PAT table starting at offset 0x30; any headers beyond this should be ignored. + * 0x0e-0x0f -- number of free blocks remaining in camera's RAM + +Other bytes may be added as discovered. +Image format + +The raw image file seems to consist of the following parts: + + * a 16-byte image header + * some kind of thumbnail of the actual image + * entropy-coded JPEG-like image data + +These parts are described in the following paragraphs. +Image header + +The 16-byte image header is the very first thing in a raw image file (copied directly from the PAT, except where specifically noted) and contains basic image meta-data. All words are stored big-endian, and block size is 0x80 bytes for the JL2005B and 0x200 bytes for the JL2005C and JL2005D chips. "Significant" means that the value of the bit, byte, or word indicates or is used for something, but I don't (yet) know what that is, and what the effects of it are, if any. I suspect some of those values may not affect anything. + +Definitions, as I understand them (corrections welcome!): + + * Still mode - Camera takes one photo when shutter button is pressed + * Burst mode - Camera takes a sequence (a constant small number, usually 3) of still photos when shutter button is pressed once, meant to be viewed as separate images + * Continuous mode - Camera continues rapidly (several fps) taking photos until told to stop (or memory is full); result is meant to be viewed as a video clip, e.g. AVI format. The camera may temporarily use a lower resolution and different compression ratio during this. + + +Byte(s) Meaning +0x00 0x00: standard still image + +0x01: intermediate photo from continuous mode + +0x02: photo taken in burst mode + +0x11: first image from continuous mode + +0x21: last image from continuous mode + +Anything else: unknown + +The OEM driver processes 0x11 as a special case, 0x01 and 0x21 as if they were 0x01, and anything else (including 0x02) as if it were 0x00. +0x01 Attributes: If bit 4 is set, gamma correction is enabled. All other bits are unknown, although usually some are set. Bits 2-3 and 7 are significant. +0x02 + +Bits 0-1: resolution of this photo (camera-dependent), 00 = CIF or VGA, 01 = QCIF or QVGA. If supported, 02 = SVGA, 03 = even larger than SVGA + +Bits 4-5: 00 = lower compression ratio, 01 = higher compression ratio, 10 = compression for continuous mode + +All other bits have always been observed as zero so far. +0x03 Bits 0-6: image quality factor (0x64 = 100% is best quality), specifics below under "Quantization Table" + +Bit 7: if set, read the raw file into memory but do not decode it. (For manufacturer or developer testing?) +0x04 Image height, in units of 8 pixels +0x05 Image width, in units of 8 pixels +0x06-0x07 Total size of image data in blocks, including thumbnail if any +0x08 When writing the raw file, if byte 0x03 bit 7 is set (don't decode image) and byte 0x02 bit 4 is set (higher compression ratio), then a workspace area of ( width * (photo height in pixels - this byte) / 2 ) bytes is temporarily allocated, instead of width * height. + +When reading in the raw file, if byte 0x03 bit 7 is set and byte 0x02 bit 4 is set, the value used by the OEM driver for image height in pixels follows the same equation. + +I don't (yet) know why either of these are done. (For manufacturer or developer testing?) +0x09 Bits 0-1: see description of header byte 0x0b, below. + +Bits 2-7: If the camera supports thumbnail images (PAT+07 bit 2 set), the thumbnail's length in blocks is this 6-bit value. So far, a 6-bit value of 0x18 or 0x3c (i.e. byte value 0x6n or 0xfn where n <= 3) in these bits means a thumbnail (resolution 96x64 or 128x120 pixels respectively), and 0x00 means no thumbnail. The meaning of any other value is not certain, but probably means "no thumbnail". Thumbnail encoding is described below. +0x0a Attributes, apparently constant for any particular camera. Bits 0-1 are significant. +0x0b Zero if still mode or burst mode. For continuous mode (indicated by byte 0x00 of header), the first image has the total number of images in this video clip in this byte, and successive images in this clip are numbered consecutively in this byte, from 1 to (# images - 1). This is actually a ten-bit value; bits 0 and 1 of header byte 0x09 are bits 8 and 9 of it respectively. That gives it a maximum value of 0x3ff (1023 decimal). That's the latest conjecture, anyway. + +Note: Some cameras (including all using the JL2005B) that have a continuous mode do NOT use this byte and leave it at zero. The start and end of clips can still be detected by header byte 0x00. +0x0c-0x0d Starting address of this image in camera's RAM, in blocks. +0x0e-0x0f Word value, big-endian, significant, function unknown so far. Could be data, a pointer, or a checksum of some sort. + +(part of this table was derived from the jl2005c code already in gphoto) +Thumbnail image + +Directly following the image header, sometimes, is a thumbnail image. See "Image Header" byte 0x09, above, to detect whether one is present. + +From observation: + + * JL2005B -- no thumbnails + * JL2005C -- some have thumbnails; if so, 96x64 pixels + * JL2005D -- many have thumbnails; if so, 128x120 pixels + +Note that the aspect ratio of the thumbnails is not necessarily the same as that of the picture. + +Pixels in the thumbnail are encoded left-to-right, top-to-bottom. Each pixel of the thumbnail image is represented by a 16-bit word, big endian encoded, with bits assigned to R, G and B components as follows (a.k.a. RGB565): + + * bit 15-11: red + * bit 10- 5: green + * bit 4 - 0: blue + +All of these are the most significant 5 or 6 bits for that color, with the unused low-order bits set to zero. +Entropy coded data + +Following the thumbnail image (if present), is the entropy coded data. This data looks a bit like the entropy coded data used in JPEG images. + +The image is sub-divided as follows: + + * The image is divided in vertical strips of 16 pixels wide and height pixels high, so the whole image consists of width/16 strips, encoded from left-to-right. + * Each strip is subdivided in MCUs (minimum coded unit) of 16x16 pixels, encoded from top to bottom. + * Each MCU consists of 4 blocks of 8x8 pixels each, containing pixels from the Bayer mosaicing pattern. They appear in the following order: + o First the green pixels of the top half of the 16x16 pixel MCU + o Then the green pixels of the bottom half of the 16x16 pixel MCU + o Then the red pixels for the entire MCU + o Finally the blue pixels for the entire MCU + * The order of the red, green and blue pixels in the Bayer pattern is as follows: RG/GB. This means the first line of a MCU starts with a red pixel, then a green pixel from the first green line from the first green block. The second line starts with a green pixel from the second green line from the first green block, then a blue pixel. + +With respect to the encoding: + + * MCUs in a strip are encoded like a JPEG MCU. There are only two Huffman tables (one for the DC and one for the AC coefficients) and there is only one quantisation table. + * The blue and red 8x8 blocks inside an MCU each have a DC coefficient that is differential to the DC coefficient of the same block in the previous MCU, like a standard JPEG. + * The two green 8x8 blocks inside an MCU share a single DC coefficient, so the DC coefficient of the first green block is differential to the one from the second block and vice versa. + * The DC coefficients in the first MCU in a strip are not differential, but contain the absolute value. + * 0xFF bytes in the entropy coded data are followed by 0x00 stuff-bytes, just like JPEG. + * A strip is encoded as a bunch of MCUs, followed by 0xFFD9 (this is the End-Of-Image marker in JPEG) and padded with 0x00 until the next 16-byte aligned address. The start of the entropy coded stream is considered to be address 0 in this case. + * An image is encoded as a bunch of strips, followed by bogus data until the end of the total image data (which is a multiple of the block size, 0x80 or 0x200 bytes). + +Huffman table + +The Huffman table used is the recommended table for the luminance component from the JPEG specification. In C, encoded as a JPEG DHT table, this looks like: + +static const unsigned char dht_table[] = { +0xFF, 0xC4, +0x00, 0xD2 + +// luma DC +0x00, +0x00, 0x01, 0x05, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, + +// luma AC +0x10, +0x00, 0x02, 0x01, 0x03, 0x03, 0x02, 0x04, 0x03, 0x05, 0x05, 0x04, 0x04, 0x00, 0x00, 0x01, 0x7D, +0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07, +0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xA1, 0x08, 0x23, 0x42, 0xB1, 0xC1, 0x15, 0x52, 0xD1, 0xF0, +0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0A, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x25, 0x26, 0x27, 0x28, +0x29, 0x2A, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, +0x4A, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, +0x6A, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, +0x8A, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, +0xA8, 0xA9, 0xAA, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xC2, 0xC3, 0xC4, 0xC5, +0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xE1, 0xE2, +0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, +0xF9, 0xFA +}; + +Quantisation table + +The magnitude of the elements in the quantisation table in JPEG-like encoding basically determines the compromise between image quality and image size. A quantisation table with small values results in a high quality but large image and a quantisation table with large values results in a low quality but small image. + +The quantisation table used in the Jeilin encoding is a scaled version of a base quantisation table. This base quantisation table is very similar (within a few percent) to the one given in the JPEG specification. + +The scale factor (in percent) is calculated from the quality value from the header (call it q) in the following way: + + * q = 0: scale factor = 5000 + * 0 < q <= 50: scale factor = 5000 / q + * 50 < q <= 100: scale factor = 2 * (100 - q) + * q > 100: assume q = 100 + +Scaling is done by multiplying each element of the table by the scale factor, dividing by 100 and rounding to the nearest integer value. The minimum value of an element after scaling is 1 and the maximum value is 255. +Retrieved from "http://sourceforge.net/apps/mediawiki/gphoto/index.php?title=ImageEncodingJeilin2005CD" +Views + + * Page + * Discussion + * View source + * History + +Personal tools + +Navigation + + * Main Page + * Community portal + * Current events + * Recent changes + * Random page + * Help + +Search + +Toolbox + + * What links here + * Related changes + * Special pages + * Printable version + * Permanent link + +Powered by MediaWiki + + * This page was last modified on 25 April 2010, at 18:30. + * This page has been accessed 223 times. + + +© 2010 Geeknet, Inc. Terms of Use Privacy Policy + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/README.jl2005c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/README.jl2005c new file mode 100644 index 00000000..a3410b4e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/README.jl2005c @@ -0,0 +1,140 @@ +JEILIN STILLCAM DRIVER + +Copyright Theodore Kilgore September 4, 2007. Most recent +update is April 28, 2010. + +(Everything in libgphoto2/camlibs/jeilin is LGPL-licensed, including this +README. See any of the source files for a more complete statement of the +license.) + +INTRODUCTION + +This driver is intended to support the cameras with the USB Vendor:Product +number 0x0979:0x0227. These cameras all have a controller chip from Jeilin +Technologies, either the JL2005B or the JL2005C or the JL2005D. Both the +control interface and the compressed data format of these cameras are +proprietary, and these cameras are supported commercially only in Windows. +In spite of some features in common, these cameras also show a very large +variation. Some of them are very rudimentary, with a maximum resolution +of 352x288, and there are also more expensive models with a maximum resolution +of 1280x1024. Some of them have viewing screens on the rear and some +do not. Some of the cameras also produce separate thumbnails, which, when +present, are downloaded as part of the raw data for the image. Accommodation +of this very wide range of features has been a special challenge in writing +this support library, especially when it seems that not all of the OEM +software available for a given supported camera will work for all the others. + +Jeilin Technologies also manufactures chips which go into mass storage cameras. Those cameras, not to be confused +with these, can be accessed directly using mass storage support. The company +also makes another camera controller chip with proprietary interface, the +JL2005A. Cameras with that chip are supported in libgphoto2/camlibs/jl2005a. +If you want to read about one of those JL2005A cameras, please look in +camlibs/jl2005a, not here. + +The JL2005C camera library has been included in the release versions of +libgphoto2 ever since libgphoto2-2.4.4, but it was so configured as not +to compile by default. The reason for that was that the cameras use a nasty +data compression algorithm which was very difficult to figure out. So long +as the data coming out of the camera could not be decompressed, it was not +of any use to support these cameras except for experimental purposes. This +situation has recently changed. A task force was set up to deal with the +problem, and success has been achieved. As of April 2010, it seems to be +possible reliably to get the photos out of these cameras in usable form. +For details concerning the solution of the decompression problem, please +see the file README.jl2005bcd-compression which is supposed to be included +with the documentation for libgphoto2/camlibs/jl2005c. If for any reason +you do not have this file, it can be found at +in the directory trunk/libgphoto2/camlibs/jl2005c. My thanks to the other +members of the team who worked together to solve the longstanding problem. +Thanks to Adam Rubin and Bertrik Sikken for doing the research needed to +gather the information found at + + + +And thanks to Hans de Goede for writing the decompression algorithm. + +WHAT DOES THIS CAMERA LIBRARY CURRENTLY DO? + +This library appears to support the basic functionality of all the various +cameras which are available for testing. It seems to perform reliably at the +tasks of initializing the camera and providing a graceful exit, downloading +the raw data, and also conversion of raw data into decompressed output files. +Cameras which support or do not support thumbnails seem to be reliably +detected, and the raw data appears to be reliably decompressed. If present, +thumbnails can also be processed into a finished form. Deletion of all photos +also is supported, by the option gphoto2 -D. In short, things appear basically +to work. + +HARDWARE CONSTRAINTS: + +These cameras use an extremely primitive command structure. The only thing +that the camera really does know how to do is to prepare to download all data +on it, then to download all data on it, and then to reset prior to being +disconnected. Judging by what it does, the OEM software is almost certainly +built on the assumption that the camera will be initialized, have its data +dumped exactly once, and then disconnected. Everything else is done on the +computer with the big blob of data which has been downloaded. Therefore, +any other functionality has to be based on software fakery which fools the +hardware into emulating said functionality. Suppose, for example, that there +are ten photos in the camera. Then what the camera will do is: + -- report the number of photos (ten) + -- tell how much data needs to be downloaded in all (depends on how + much room was taken up by the raw data for all the photos) + -- provide a table with one line for each photo, giving its size, start + location, output height and width, and some kind of code for the + compression method used on it. +In the next step, one must request all the image data for all the ten photos +to be downloaded. This happens in increments of 64000 bytes, with only the last +increment permitted to be "short." This does not need to be done all at once; +it is possible to download some initial block of the data and operate on +whatever photos are already obtained, keeping anything left over until the next +block is downloaded. However, ALL of the data must downloaded before the driver + program exits. One consequence of this is that the only way commands such as + +gphoto2 --get-raw-data 3 or gphoto2 -p 3 + +can work is to download photos number 1 and 2 and throw away the data before +downloading the desired number 3 which is to be kept, then downloading any +data in the camera which comes after photo number 3, as part of the exit +routine. The sequence of downloading number 10, say, followed by number 1 is +even more complicated. The actual steps required are: + -- initialize the camera + -- download enough data to get photo number 10, throwing away all data + which is not part of photo number 10 but precedes it + -- download the data required for photo number 10 + -- download the rest of the data, if any + -- send a reset sequence to the camera + -- close and reopen the camera's port + -- repeat the initialization sequence + -- download enough data to process photo number 1 + -- download all the rest of the data and throw it away. + -- send the reset sequence again, and, finally, disconnect + +In addition to the awkwardness caused by this kind of primitive behavior, it +puts certain requirements on any program used to handle the camera. Most +particularly, any program which uses libgphoto2 must be willing to call and +actually to use the camera_exit() function which is contained in this library. +Otherwise, given the above constraints, it is obvious that the camera would +not work properly with that frontend program. + +TO DO + +There are some parts of the camera command structure which are not completely +known. For example, some kind of capture function could conceivably be made +to work. + +One known functionality of the camera is not completely supported, though. The +cameras all support a "continuous shooting" mode, in which the camera shoots +frames until it it is stopped by a button press or runs out of memory. The OEM +driver software saves the result as an AVI file. Here, the individual frames +are merely downloaded and saved as individual photos. The intention is to +support this feature completely, in the future. + +WARRANTY? + +Absolutely none. Remember, I did not sell you this software. I have written +this driver for my own edification and in the sincere hope that it might help +you to use of your camera. Please see also the warranty clauses +in the LGPL license. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/img_enhance.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/img_enhance.c new file mode 100644 index 00000000..25e631f3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/img_enhance.c @@ -0,0 +1,252 @@ +/* + * img_enhance.c + * + * Part of a processor program for raw data from JL2005B/C/D cameras. + * Based on previous work for several other cameras. + * + * Copyright (c) 2010 Theodore Kilgore + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * A previous version of the white_balance() function intended for use in + * libgphoto2/camlibs/aox is copyright (c) 2008 Amauri Magagna. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include +#include +#include +#include +#include +#include +#include +#include "img_enhance.h" + +#include + +#define GP_MODULE "jl2005c" + +#ifndef CLIP +#define CLIP(x) ((x)<0?0:((x)>255)?255:(x)) +#endif + + +/* ===== White Balance / Color Enhance / Gamma adjust ===== + + Get histogram for each color plane + Expand to reach 0.5% of white dots in image + + Get new histogram for each color plane + Expand to reach 0.5% of black dots in image + + Get new histogram + Calculate and apply gamma correction + + If not a dark image: + For each dot, increase the color separation + + ========================================================== */ + +int +histogram (unsigned char *data, unsigned int size, int *htable_r, + int *htable_g, int *htable_b) +{ + int x; + /* Initializations */ + for (x = 0; x < 0x100; x++) { + htable_r[x] = 0; + htable_g[x] = 0; + htable_b[x] = 0; + } + /* Building the histograms */ + for (x = 0; x < (size * 3); x += 3) + { + + htable_r[data[x + 0]]++; /* red histogram */ + htable_g[data[x + 1]]++; /* green histogram */ + htable_b[data[x + 2]]++; /* blue histogram */ + } + return 0; +} + +int +white_balance (unsigned char *data, unsigned int size, float saturation) +{ + int x, r, g, b, max, d; + double r_factor, g_factor, b_factor, max_factor; + int htable_r[0x100], htable_g[0x100], htable_b[0x100]; + unsigned char gtable[0x100]; + double new_gamma, gamma = 1.0; + + /* ------------------- GAMMA CORRECTION ------------------- */ + + histogram(data, size, htable_r, htable_g, htable_b); + x = 1; + for (r = 64; r < 192; r++) + { + x += htable_r[r]; + x += htable_g[r]; + x += htable_b[r]; + } + new_gamma = sqrt((double) (x * 1.5) / (double) (size * 3)); + GP_DEBUG("Provisional gamma correction = %1.2f\n", new_gamma); + /* Recalculate saturation factor for later use. */ + saturation = saturation * new_gamma * new_gamma; + GP_DEBUG("saturation = %1.2f\n", saturation); + gamma = new_gamma; + if (new_gamma < .70) + gamma = 0.70; + if (new_gamma > 1.2) + gamma = 1.2; + GP_DEBUG("Gamma correction = %1.2f\n", gamma); + gp_gamma_fill_table(gtable, gamma); + gp_gamma_correct_single(gtable, data, size); + if (saturation < .5 ) /* If so, exit now. */ + return 0; + + /* ---------------- BRIGHT DOTS ------------------- */ + max = size / 200; + histogram(data, size, htable_r, htable_g, htable_b); + + for (r = 0xfe, x = 0; (r > 32) && (x < max); r--) + x += htable_r[r]; + for (g = 0xfe, x = 0; (g > 32) && (x < max); g--) + x += htable_g[g]; + for (b = 0xfe, x = 0; (b > 32) && (x < max); b--) + x += htable_b[b]; + r_factor = (double) 0xfd / r; + g_factor = (double) 0xfd / g; + b_factor = (double) 0xfd / b; + + max_factor = r_factor; + if (g_factor > max_factor) max_factor = g_factor; + if (b_factor > max_factor) max_factor = b_factor; + if (max_factor >= 4.0) { + /* + * We need a little bit of control, here. If max_factor is big + * then the photo was very dark, after all. + */ + if (2.0 * b_factor < max_factor) + b_factor = max_factor / 2.; + if (2.0 * r_factor < max_factor) + r_factor = max_factor / 2.; + if (2.0 * g_factor < max_factor) + g_factor = max_factor/2.; + r_factor = (r_factor / max_factor) * 4.0; + g_factor = (g_factor / max_factor) * 4.0; + b_factor = (b_factor / max_factor) * 4.0; + } + + if (max_factor > 1.5) + saturation = 0; + GP_DEBUG("White balance (bright): "); + GP_DEBUG("r=%1d, g=%1d, b=%1d, fr=%1.3f, fg=%1.3f, fb=%1.3f\n", + r, g, b, r_factor, g_factor, b_factor); + if (max_factor <= 1.4) { + for (x = 0; x < (size * 3); x += 3) + { + d = (data[x + 0] << 8) * r_factor + 8; + d >>= 8; + if (d > 0xff) + d = 0xff; + data[x + 0] = d; + d = (data[x + 1] << 8) * g_factor + 8; + d >>= 8; + if (d > 0xff) + d = 0xff; + data[x + 1] = d; + d = (data[x + 2] << 8) * b_factor + 8; + d >>= 8; + if (d > 0xff) + d = 0xff; + data[x + 2] = d; + } + } + /* ---------------- DARK DOTS ------------------- */ + max = size / 200; /* 1/200 = 0.5% */ + histogram(data, size, htable_r, htable_g, htable_b); + + for (r = 0, x = 0; (r < 96) && (x < max); r++) + x += htable_r[r]; + for (g = 0, x = 0; (g < 96) && (x < max); g++) + x += htable_g[g]; + for (b = 0, x = 0; (b < 96) && (x < max); b++) + x += htable_b[b]; + + r_factor = (double) 0xfe / (0xff - r); + g_factor = (double) 0xfe / (0xff - g); + b_factor = (double) 0xfe / (0xff - b); + + GP_DEBUG("White balance (dark): "); + GP_DEBUG("r=%1d, g=%1d, b=%1d, fr=%1.3f, fg=%1.3f, fb=%1.3f\n", + r, g, b, r_factor, g_factor, b_factor); + + for (x = 0; x < (size * 3); x += 3) + { + d = (int) 0xff08 - (((0xff - data[x + 0]) << 8) * r_factor); + d >>= 8; + if (d < 0) + d = 0; + data[x + 0] = d; + d = (int) 0xff08 - (((0xff - data[x + 1]) << 8) * g_factor); + d >>= 8; + if (d < 0) + d = 0; + data[x + 1] = d; + d = (int) 0xff08 - (((0xff - data[x + 2]) << 8) * b_factor); + d >>= 8; + if (d < 0) + d = 0; + data[x + 2] = d; + } + + /* ------------------ COLOR ENHANCE ------------------ */ + + if(saturation > 0.0) { + for (x = 0; x < (size * 3); x += 3) + { + r = data[x + 0]; g = data[x + 1]; b = data[x + 2]; + d = (int) (r + g + b) / 3.; + if ( r > d ) + r = r + (int) ((r - d) + * (0xff - r) / (0x100 - d) + * saturation); + else + r = r + (int) ((r - d) + * (0xff - d) / (0x100 - r) + * saturation); + if (g > d) + g = g + (int) ((g - d) + * (0xff - g) / (0x100 - d) + * saturation); + else + g = g + (int) ((g - d) + * (0xff - d) / (0x100 - g) + * saturation); + if (b > d) + b = b + (int) ((b - d) + * (0xff - b) / (0x100 - d) + * saturation); + else + b = b + (int) ((b - d) + * (0xff - d) / (0x100 - b) + * saturation); + data[x + 0] = CLIP(r); + data[x + 1] = CLIP(g); + data[x + 2] = CLIP(b); + } + } + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/img_enhance.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/img_enhance.h new file mode 100644 index 00000000..76cf8c1e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/img_enhance.h @@ -0,0 +1,35 @@ +/* + * img_enhance.h + * + * Header file for image processor for raw files from JL2005B/C/D + * cameras. + * + * Copyright (c) 2010 Theodore Kilgore + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __IMG_ENHANCE_H__ +#define __IMG_ENHANCE_H__ + + +int +histogram(unsigned char *data, unsigned int size, int *htable_r, + int *htable_g, int *htable_b); +int +white_balance(unsigned char *data, unsigned int size, float saturation); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005bcd_decompress.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005bcd_decompress.c new file mode 100644 index 00000000..b545f04a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005bcd_decompress.c @@ -0,0 +1,300 @@ +/* decompress.c + * + * Converts raw output from Jeilin JL2005B/C/D into PPM files. + * + * The jl2005bcd_raw_converter is + * Copyright (c) 2010 Theodore Kilgore + * + * The decompression code used is + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include +#include <_stdint.h> +#include +#include + +#include "config.h" + +#ifdef HAVE_LIBJPEG +#include "gphoto2-endian.h" +#include "jl2005bcd_decompress.h" +#include "jpeg_memsrcdest.h" +#include +#include "img_enhance.h" +#include + +#include +#include + +#define GP_MODULE "jl2005c" + + +#define JPEG_HEADER_SIZE 338 +#define JPEG_HEIGHT_OFFSET 94 + +static int +find_eoi (uint8_t *jpeg_data, int jpeg_data_idx, int jpeg_data_size) +{ + int i; + + for (i = jpeg_data_idx; i < (jpeg_data_size - 1); i++) + if (jpeg_data[i] == 0xff && jpeg_data[i + 1] == 0xd9) + break; + + if (i >= (jpeg_data_size - 1)) { + GP_DEBUG("AAI\n"); + return GP_ERROR; + } + + return i + 2; /* + 2 -> Point to after EOI marker */ +} + +#define MAXBUFSIZE 500000 +int +jl2005bcd_decompress (unsigned char *output, unsigned char *input, + int inputsize, int get_thumbnail) +{ + int out_headerlen; + uint16_t *thumb = NULL; + unsigned char *header; + uint8_t *jpeg_stripe; + uint8_t *out; + unsigned char *jpeg_data; + int q, width, height; + int thumbnail_width, thumbnail_height; + struct jpeg_compress_struct cinfo; + struct jpeg_decompress_struct dinfo; + struct jpeg_error_mgr jcerr, jderr; + JOCTET *jpeg_header = NULL; + int outputsize = 0; + unsigned long jpeg_header_size = 0; + int i, x, y, x1, y1, jpeg_data_size, jpeg_data_idx, eoi, size, ret; + JSAMPLE green[8 * 16]; + JSAMPLE red[8 * 8]; + JSAMPLE blue[8 * 8]; + JSAMPROW green_row_pointer[16]; + JSAMPROW red_row_pointer[8]; + JSAMPROW blue_row_pointer[8]; + JSAMPARRAY samp_image[3]; + + + GP_DEBUG("Running jl2005bcd_decompress() function.\n"); + header = input; + q = header[3] & 0x7f; + height = header[4] * 8; + width = header[5] * 8; + GP_DEBUG("quality is %d\n", q); + GP_DEBUG("size: %dx%d\n", width, height); + switch (header[9] & 0xf0) { + case 0xf0: + thumbnail_width = 128; + thumbnail_height = 120; + break; + case 0x60: + thumbnail_width = 96; + thumbnail_height = 64; + break; + default: + thumbnail_width = 0; + thumbnail_height = 0; + } + if (header[1] & 3) + thumbnail_width = 0; + if (get_thumbnail) { + if (!thumbnail_width) { + GP_DEBUG("No thumbnail is present!\n"); + return GP_ERROR_NOT_SUPPORTED; + } else { + out = malloc(thumbnail_width * thumbnail_height * 3); + thumb = (uint16_t *)(input + 16); + for (i = 0; i < thumbnail_width * thumbnail_height; + i++) { + thumb[i] = be16toh(thumb[i]); + out[i * 3 + 0] = (thumb[i] & 0xf800) >> 8; + out[i * 3 + 1] = (thumb[i] & 0x07e0) >> 3; + out[i * 3 + 2] = (thumb[i] & 0x001f) << 3; + } + + out_headerlen = snprintf((char *)output, 256, + "P6\n" + "# CREATOR: gphoto2, JL2005BCD library\n" + "%d %d\n" + "255\n", + thumbnail_width, + thumbnail_height); + white_balance (out, thumbnail_width * thumbnail_height, + 1.6); + memcpy(output + out_headerlen, out, + thumbnail_width * thumbnail_height * 3); + outputsize = thumbnail_width * thumbnail_height * 3 + + out_headerlen; + free (out); + return outputsize; + } + } + /* + * And the fun begins, first of all create a dummy jpeg, which we use + * to get the headers from to feed to libjpeg when decompressing the + * stripes. This way we can use libjpeg's quant table handling + * (and built in default huffman tables). + */ + cinfo.err = jpeg_std_error (&jcerr); + jpeg_create_compress (&cinfo); + jpeg_mem_dest (&cinfo, &jpeg_header, &jpeg_header_size); + cinfo.image_width = 16; + cinfo.image_height = 16; + cinfo.input_components = 3; + cinfo.in_color_space = JCS_RGB; + jpeg_set_defaults (&cinfo); + /* Make comp[0] (which will be green) 1x2 subsampled */ + cinfo.comp_info[0].h_samp_factor = 1; + cinfo.comp_info[0].v_samp_factor = 2; + /* Make comp[1] and [2] use huffman table and quanttable 0, as all + * components use luminance settings with the jl2005b/c/d */ + cinfo.comp_info[1].quant_tbl_no = 0; + cinfo.comp_info[1].dc_tbl_no = 0; + cinfo.comp_info[1].ac_tbl_no = 0; + cinfo.comp_info[2].quant_tbl_no = 0; + cinfo.comp_info[2].dc_tbl_no = 0; + cinfo.comp_info[2].ac_tbl_no = 0; + /* Apply the quality setting from the header */ + if (q <= 0) + i = 5000; + else if (q <= 50) + i = 5000 / q; + else if (q <= 100) + i = 2 * (100 - q); + else + i = 0; + jpeg_set_linear_quality(&cinfo, i, TRUE); + + jpeg_start_compress (&cinfo, TRUE); + while( cinfo.next_scanline < cinfo.image_height ) { + JOCTET row[16 * 3]; + JSAMPROW row_pointer[1] = { row }; + jpeg_write_scanlines (&cinfo, row_pointer, 1); + } + jpeg_finish_compress (&cinfo); + jpeg_destroy_compress (&cinfo); + + for (i = 0; i < 16; i++) + green_row_pointer[i] = green + i * 8; + + for (i = 0; i < 8; i++) { + red_row_pointer[i] = red + i * 8; + blue_row_pointer[i] = blue + i * 8; + } + + samp_image[0] = green_row_pointer; + samp_image[1] = red_row_pointer; + samp_image[2] = blue_row_pointer; + + jpeg_stripe = malloc(MAXBUFSIZE); + memcpy(jpeg_stripe, jpeg_header, JPEG_HEADER_SIZE); + jpeg_stripe[JPEG_HEIGHT_OFFSET ] = height >> 8; + jpeg_stripe[JPEG_HEIGHT_OFFSET + 1] = height; + jpeg_stripe[JPEG_HEIGHT_OFFSET + 2] = 0; + jpeg_stripe[JPEG_HEIGHT_OFFSET + 3] = 8; + free (jpeg_header); + jpeg_data = input + 16 + 2 * thumbnail_width * thumbnail_height; + jpeg_data_size = inputsize - 16 + - 2 * thumbnail_width * thumbnail_height; + + jpeg_data_idx = 0; + + out = malloc(width * height * 3); + memset(out, 0, width * height * 3); + + dinfo.err = jpeg_std_error (&jderr); + jpeg_create_decompress (&dinfo); + for (x = 0; x < width; x += 16) { + eoi = find_eoi(jpeg_data, jpeg_data_idx, jpeg_data_size); + if (eoi < 0) { + free (jpeg_stripe); + free (out); + return eoi; + } + + size = eoi - jpeg_data_idx; + if ((JPEG_HEADER_SIZE + size) > MAXBUFSIZE) { + free (jpeg_stripe); + free (out); + GP_DEBUG("AAAIIIIII\n"); + return 1; + } + memcpy (jpeg_stripe + JPEG_HEADER_SIZE, + jpeg_data + jpeg_data_idx, size); + + jpeg_mem_src (&dinfo, jpeg_stripe, JPEG_HEADER_SIZE + size); + jpeg_read_header (&dinfo, TRUE); + dinfo.raw_data_out = TRUE; +#if JPEG_LIB_VERSION >= 70 + dinfo.do_fancy_upsampling = FALSE; +#endif + jpeg_start_decompress (&dinfo); + for (y = 0; y < height; y += 16) { + jpeg_read_raw_data (&dinfo, samp_image, 16); + for (y1 = 0; y1 < 16; y1 += 2) { + for (x1 = 0; x1 < 16; x1 += 2) { + out[((y + y1 + 0) * width + + x + x1 + 0) * 3] + = red[y1 * 4 + x1 / 2]; + out[((y + y1 + 0) * width + + x + x1 + 1) * 3 + 1] + = green[y1 * 8 + x1 / 2]; + out[((y + y1 + 1) * width + + x + x1 + 0) * 3 + 1] + = green[y1 * 8 + 8 + x1 / 2]; + out[((y + y1 + 1) * width + + x + x1 + 1) * 3 + 2] + = blue[y1 * 4 + x1 / 2]; + } + } + } + jpeg_finish_decompress (&dinfo); + + /* Set jpeg_data_idx for the next stripe */ + jpeg_data_idx = (jpeg_data_idx + size + 0x0f) & ~0x0f; + } + jpeg_destroy_decompress(&dinfo); + free (jpeg_stripe); + + ret = gp_ahd_interpolate(out, width, height, BAYER_TILE_BGGR); + if (ret < 0) { + GP_DEBUG("HEUH?\n"); + free (out); + return ret; + } + white_balance (out, width*height, 1.6); + + out_headerlen = snprintf((char *)output, 256, + "P6\n" + "# CREATOR: gphoto2, JL2005BCD library\n" + "%d %d\n255\n", + width, + height); + GP_DEBUG("out_headerlen = %d\n", out_headerlen); + memcpy(output + out_headerlen, out, width * height * 3); + outputsize = out_headerlen + width * height * 3; + free (out); + return outputsize; +} +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005bcd_decompress.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005bcd_decompress.h new file mode 100644 index 00000000..e7ba2a93 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005bcd_decompress.h @@ -0,0 +1,30 @@ +/* jl2005bcd_decompress.h + * + * Copyright (C) 2006-2010 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __jl2005bcd_decompress_H__ +#define __jl2005bcd_decompress_H__ + + +int +jl2005bcd_decompress(unsigned char *output, unsigned char *input, + int inputsize, int get_thumbnail); + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005c.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005c.c new file mode 100644 index 00000000..62abf0c0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005c.c @@ -0,0 +1,276 @@ +/* jl2005c.c + * + * Copyright (C) 2006-2010 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include "gphoto2-endian.h" + +#include "jl2005c.h" + +#define GP_MODULE "jl2005c" + +/* do not sleep during fuzzing */ +#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION +# define usleep(x) +#endif + +int +jl2005c_init (Camera *camera, GPPort *port, CameraPrivateLibrary *priv) +{ + char response; + int model_string = 0; + /* Needs to be big enough to hold (0xfff + 3) * 0x10 */ + unsigned char info[0x4020]; + const char camera_id[] = {0x4a, 0x4c, 0x32, 0x30, 0x30, 0x35}; + int alloc_table_size; + int attempts = 0; +restart: + alloc_table_size = 0; + memset(info, 0, sizeof(info)); + GP_DEBUG("Running jl2005c_init\n"); + if (priv->init_done) { + gp_port_close(port); + usleep (100000); + gp_port_open(port); + } + + set_usb_in_endpoint (camera, 0x84); + gp_port_write (port, "\x08\x00", 2); + usleep (10000); + gp_port_write (port, "\x95\x60", 2); + jl2005c_read_data (port, &response, 1); + model_string = response; + gp_port_write (port, "\x95\x61", 2); + jl2005c_read_data (port, &response, 1); + model_string += (response & 0xff) << 8; + gp_port_write (port, "\x95\x62", 2); + jl2005c_read_data (port, &response, 1); + model_string += (response & 0xff) << 16; + gp_port_write (port,"\x95\x63" , 2); + jl2005c_read_data (port, &response, 1); + model_string += (response & 0xff) << 24; + GP_DEBUG("Model string is %08x\n", model_string); + gp_port_write (port, "\x95\x64", 2); + jl2005c_read_data (port, &response, 1); + gp_port_write (port, "\x95\x65", 2); + jl2005c_read_data (port, &response, 1); + /* Number of pix returned here, but not reliably reported */ + priv->nb_entries = response & 0xff; + GP_DEBUG("%d frames in the camera (unreliable!)\n", priv->nb_entries); + gp_port_write (port, "\x95\x66", 2); + jl2005c_read_data (port, &response, 1); + gp_port_write (port, "\x95\x67", 2); + jl2005c_read_data (port, &response, 1); + gp_port_write (port, "\x95\x68", 2); + jl2005c_read_data (port, &response, 1); + gp_port_write (port, "\x95\x69", 2); + jl2005c_read_data (port, &response, 1); + gp_port_write (port, "\x95\x6a", 2); + jl2005c_read_data (port, &response, 1); + gp_port_write (port, "\x95\x6b", 2); + jl2005c_read_data (port, &response, 1); + gp_port_write (port, "\x95\x6c", 2); + jl2005c_read_data (port, &response, 1); + priv->data_to_read = (response & 0xff) * 0x100; + gp_port_write (port, "\x95\x6d", 2); + jl2005c_read_data (port, &response, 1); + priv->data_to_read += (response&0xff); + priv->total_data_in_camera = priv->data_to_read; + GP_DEBUG ("blocks_to_read = 0x%lx = %lu\n", priv->data_to_read, + priv->data_to_read); + gp_port_write (port, "\x95\x6e", 2); + jl2005c_read_data (port, &response, 1); + alloc_table_size = (response & 0xff) * 0x200; + GP_DEBUG("alloc_table_size = 0x%02x * 0x200 = 0x%x\n", + response & 0xff, (response & 0xff) * 0x200); + gp_port_write (port, "\x95\x6f", 2); + jl2005c_read_data (port, &response, 1); + gp_port_write (port, "\x0a\x00", 2); + usleep (10000); + /* Switch the inep over to 0x82. It stays there ever after. */ + set_usb_in_endpoint (camera, 0x82); + + /* Read the first block of the allocation table. */ + jl2005c_read_data (port, (char *)info, 0x200); + if (strncmp(camera_id, (char*)info, 6)) { + GP_DEBUG("Error downloading alloc table\n"); + GP_DEBUG("Init attempted %d times\n", attempts + 1); + attempts++; + if (attempts == 3) { + GP_DEBUG("Third try. Giving up\n"); + gp_port_write(port, "\x07\x00", 2); + return GP_ERROR; + } + goto restart; + } + + /* Now check the number of photos. That is found in byte 13 of line 0 + * of the allocation table. + */ + priv->nb_entries = (info[12] & 0xff) * 0x100 | (info[13] & 0xff); + GP_DEBUG("Number of entries is recalculated as %d\n", + priv->nb_entries); + + /* Just in case there was a problem, we now recalculate the total + * alloc_table_size. */ + alloc_table_size = priv->nb_entries * 0x10 + 0x30; + if (alloc_table_size%0x200) + alloc_table_size += 0x200 - (alloc_table_size%0x200); + /* However, we have already just now downloaded 0x200 bytes, so + * when downloading the rest of the table we correct for that and + * just download whatever remains of the information block. + */ + if (alloc_table_size > 0x200) + gp_port_read(port, (char *)info + 0x200, + alloc_table_size - 0x200); + memmove(priv->table, info + 0x30, alloc_table_size - 0x30); + priv->model = info[6]; + GP_DEBUG("Model is %c\n", priv->model); + switch (priv->model) { + case 0x43: + case 0x44: + priv->blocksize = 0x200; + break; + case 0x42: + priv->blocksize = 0x80; + break; + default: + GP_DEBUG("Unknown model, unknown blocksize\n"); + return GP_ERROR_NOT_SUPPORTED; + } + GP_DEBUG("camera's blocksize = 0x%x = %d\n", priv->blocksize, + priv->blocksize); + /* Now a more responsible calculation of the amount of data in the + * camera, based upon the allocation table. */ + priv->data_to_read = info[10] * 0x100 | info[11]; + priv->data_to_read -= info[8] * 0x100 | info[9]; + priv->data_to_read *= priv->blocksize; + priv->total_data_in_camera = priv->data_to_read; + GP_DEBUG ("data_to_read = 0x%lx = %lu\n", priv->data_to_read, + priv->data_to_read); + GP_DEBUG ("total_data_in_camera = 0x%lx = %lu\n", priv->data_to_read, + priv->data_to_read); + priv->can_do_capture = 0; + if (info[7] & 0x04) + priv->can_do_capture = 1; + priv->bytes_read_from_camera = 0; + priv->bytes_put_away = 0; + priv->init_done = 1; + GP_DEBUG("Leaving jl2005c_init\n"); + return GP_OK; +} + +int jl2005c_open_data_reg (Camera *camera, GPPort *port) +{ + gp_port_write (port, "\x0b\x00",2); + usleep (10000); + GP_DEBUG("Opening data register.\n"); + camera->pl->data_reg_opened = 1; + return GP_OK; +} + +int +jl2005c_get_pic_data_size (CameraPrivateLibrary *priv, Info *table, int n) +{ + int size; + GP_DEBUG("table[16 * n + 7] = %02X\n", table[16 * n + 7]); + size = table[0x10 * n + 6] * 0x100 | table[0x10 * n + 7]; + size *= priv->blocksize; + GP_DEBUG("size = 0x%x = %d\n", size, size); + return (size); +} + +unsigned long +jl2005c_get_start_of_photo(CameraPrivateLibrary *priv, Info *table, + unsigned int n) +{ + unsigned long start; + start = table[0x10 * n + 0x0c] * 0x100 | table[0x10 * n + 0x0d]; + start -= table[0x0c] * 0x100 | table[0x0d]; + start *= priv->blocksize; + return start; +} + + +int +set_usb_in_endpoint (Camera *camera, int inep) +{ + GPPortSettings settings; + gp_port_get_settings ( camera ->port, &settings); + if(settings.usb.inep != inep) + settings.usb.inep = inep; + GP_DEBUG("inep reset to %02X\n", inep); + return gp_port_set_settings ( camera->port, settings); +} + +int +jl2005c_read_data (GPPort *port, char *data, int size) +{ + /* These cameras tend to be slow. */ + usleep (10000); + gp_port_read (port, data, size); + usleep (10000); + return GP_OK; +} + +int jl2005c_reset (Camera *camera, GPPort *port) +{ + int downloadsize = MAX_DLSIZE; + /* If any data has been downloaded, these cameras want all data to be + * dumped before exit. If that is not yet done, then do it now! */ + if(camera->pl->data_reg_opened) { + while (camera->pl->bytes_read_from_camera < + camera->pl->total_data_in_camera ) { + if (!camera->pl->data_cache ) + camera->pl->data_cache = malloc (MAX_DLSIZE); + downloadsize = MAX_DLSIZE; + if (camera->pl->bytes_read_from_camera + MAX_DLSIZE >= + camera->pl->total_data_in_camera ) + downloadsize = camera->pl->total_data_in_camera - + camera->pl->bytes_read_from_camera; + if (downloadsize) + jl2005c_read_data (camera->port, + (char *) camera->pl->data_cache, + downloadsize); + camera->pl->bytes_read_from_camera += downloadsize; + } + } + gp_port_write(port, "\x07\x00", 2); + camera->pl->data_reg_opened = 0; + return GP_OK; +} + +int jl2005c_delete_all (Camera *camera, GPPort *port) +{ + gp_port_write(port, "\x09\x00", 2); + usleep(10000); + gp_port_write(port, "\x07\x00", 2); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005c.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005c.h new file mode 100644 index 00000000..457b6fda --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jl2005c.h @@ -0,0 +1,62 @@ +/* jl2005c.h + * + * Copyright (C) 2006-2010 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __jl2005c_H__ +#define __jl2005c_H__ + +#include +#include + +#define MAX_DLSIZE 0xfa00 + +typedef unsigned char Info; + +struct _CameraPrivateLibrary { + unsigned char model; + unsigned char init_done; + int can_do_capture; + int blocksize; + int nb_entries; + int data_reg_opened; + unsigned long total_data_in_camera; + unsigned long data_to_read; + unsigned char *data_cache; + unsigned long bytes_read_from_camera; + unsigned long bytes_put_away; + Info table[0x4000]; +}; + + +int jl2005c_init (Camera *camera, GPPort *port, CameraPrivateLibrary *priv); +int jl2005c_open_data_reg (Camera *camera, GPPort *port); +int jl2005c_get_pic_data_size (CameraPrivateLibrary *priv, Info *table, int n); +unsigned long jl2005c_get_start_of_photo (CameraPrivateLibrary *priv, + Info *table, unsigned int n); + +int set_usb_in_endpoint (Camera *camera, int inep); +int jl2005c_read_data (GPPort *port, char *data, int size); +int jl2005c_reset (Camera *camera, GPPort *port); +int jl2005c_delete_all (Camera *camera, GPPort *port); + + + + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jpeg_memsrcdest.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jpeg_memsrcdest.c new file mode 100644 index 00000000..b65310e9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jpeg_memsrcdest.c @@ -0,0 +1,313 @@ +/* +* memsrc.c +* +* Copyright (C) 1994-1996, Thomas G. Lane. +* This file is part of the Independent JPEG Group's software. +* For conditions of distribution and use, see the accompanying README file. +* +* This file contains decompression data source routines for the case of +* reading JPEG data from a memory buffer that is preloaded with the entire +* JPEG file. This would not seem especially useful at first sight, but +* a number of people have asked for it. +* This is really just a stripped-down version of jdatasrc.c. Comparison +* of this code with jdatasrc.c may be helpful in seeing how to make +* custom source managers for other purposes. +*/ + +/* this is not a core library module, so it doesn't define JPEG_INTERNALS */ +#include +#include +#include "config.h" + +#ifdef HAVE_LIBJPEG +#include +#include +#include "jpeg_memsrcdest.h" + +/* libjpeg8 and later come with their own (API compatible) memory source + and dest, and older versions may have it backported */ +#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) + +/* Expanded data source object for memory input */ + +typedef struct { + struct jpeg_source_mgr pub; /* public fields */ + + JOCTET eoi_buffer[2]; /* a place to put a dummy EOI */ +} my_source_mgr; + +typedef my_source_mgr * my_src_ptr; + + +/* +* Initialize source --- called by jpeg_read_header +* before any data is actually read. +*/ + +METHODDEF(void) +init_source (j_decompress_ptr cinfo) +{ + /* No work, since jpeg_mem_src set up the buffer pointer and count. + * Indeed, if we want to read multiple JPEG images from one buffer, + * this *must* not do anything to the pointer. + */ +} + + +/* +* Fill the input buffer --- called whenever buffer is emptied. +* +* In this application, this routine should never be called; if it is called, +* the decompressor has overrun the end of the input buffer, implying we +* supplied an incomplete or corrupt JPEG datastream. A simple error exit +* might be the most appropriate response. +* +* But what we choose to do in this code is to supply dummy EOI markers +* in order to force the decompressor to finish processing and supply +* some sort of output image, no matter how corrupted. +*/ + +METHODDEF(boolean) +fill_input_buffer (j_decompress_ptr cinfo) +{ + my_src_ptr src = (my_src_ptr) cinfo->src; + + WARNMS(cinfo, JWRN_JPEG_EOF); + + /* Create a fake EOI marker */ + src->eoi_buffer[0] = (JOCTET) 0xFF; + src->eoi_buffer[1] = (JOCTET) JPEG_EOI; + src->pub.next_input_byte = src->eoi_buffer; + src->pub.bytes_in_buffer = 2; + + return TRUE; +} + + +/* +* Skip data --- used to skip over a potentially large amount of +* uninteresting data (such as an APPn marker). +* +* If we overrun the end of the buffer, we let fill_input_buffer deal with +* it. An extremely large skip could cause some time-wasting here, but +* it really isn't supposed to happen ... and the decompressor will never +* skip more than 64K anyway. +*/ + +METHODDEF(void) +skip_input_data (j_decompress_ptr cinfo, long num_bytes) +{ + my_src_ptr src = (my_src_ptr) cinfo->src; + + if (num_bytes > 0) { + while (num_bytes > (long) src->pub.bytes_in_buffer) { + num_bytes -= (long) src->pub.bytes_in_buffer; + (void) fill_input_buffer(cinfo); + /* note we assume that fill_input_buffer will never + * return FALSE, so suspension need not be handled. + */ + } + src->pub.next_input_byte += (size_t) num_bytes; + src->pub.bytes_in_buffer -= (size_t) num_bytes; + } +} + + +/* +* An additional method that can be provided by data source modules is the +* resync_to_restart method for error recovery in the presence of RST markers. +* For the moment, this source module just uses the default resync method +* provided by the JPEG library. That method assumes that no backtracking +* is possible. +*/ + + +/* +* Terminate source --- called by jpeg_finish_decompress +* after all data has been read. Often a no-op. +* +* NB: *not* called by jpeg_abort or jpeg_destroy; surrounding +* application must deal with any cleanup that should happen even +* for error exit. +*/ + +METHODDEF(void) +term_source (j_decompress_ptr cinfo) +{ + /* no work necessary here */ +} + + +/* +* Prepare for input from a memory buffer. +*/ + +GLOBAL(void) +jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, + unsigned long bufsize) +{ + my_src_ptr src; + + /* The source object is made permanent so that a series of JPEG images + * can be read from a single buffer by calling jpeg_mem_src + * only before the first one. + * This makes it unsafe to use this manager and a different source + * manager serially with the same JPEG object. Caveat programmer. + */ + if (cinfo->src == NULL) { /* first time for this JPEG object? */ + cinfo->src = (struct jpeg_source_mgr *) + (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, + JPOOL_PERMANENT, + sizeof(my_source_mgr)); + } + + src = (my_src_ptr) cinfo->src; + src->pub.init_source = init_source; + src->pub.fill_input_buffer = fill_input_buffer; + src->pub.skip_input_data = skip_input_data; + /* use default method */ + src->pub.resync_to_restart = jpeg_resync_to_restart; + src->pub.term_source = term_source; + + src->pub.next_input_byte = buffer; + src->pub.bytes_in_buffer = bufsize; +} + + + +/* Memory destination source modelled after Thomas G. Lane's memory source + * support and jdatadst.c + * + * Copyright (C) 2010, Hans de Goede + * + * This code may be used under the same conditions as Thomas G. Lane's memory + * source (see the copyright header at the top of this file). + */ + +typedef struct { + struct jpeg_destination_mgr pub; /* public fields */ + + JOCTET **buffer; /* start of buffer */ + unsigned long buf_size, *outsize; +} my_destination_mgr; + +typedef my_destination_mgr * my_dest_ptr; + +#define OUTPUT_BUF_SIZE 32768 /* choose an efficiently fwrite'able size */ + + +/* + * Initialize destination --- called by jpeg_start_compress + * before any data is actually written. + */ + +METHODDEF(void) +init_destination (j_compress_ptr cinfo) +{ + /* No work, since jpeg_mem_dest set up the buffer pointer and count. + * Indeed, if we want to write multiple JPEG images to one buffer, + * this *must* not do anything to the pointer. + */ +} + +/* + * Empty the output buffer --- called whenever buffer fills up. + * + * In typical applications, this should write the entire output buffer + * (ignoring the current state of next_output_byte & free_in_buffer), + * reset the pointer & count to the start of the buffer, and return TRUE + * indicating that the buffer has been dumped. + * + * In applications that need to be able to suspend compression due to output + * overrun, a FALSE return indicates that the buffer cannot be emptied now. + * In this situation, the compressor will return to its caller (possibly with + * an indication that it has not accepted all the supplied scanlines). The + * application should resume compression after it has made more room in the + * output buffer. Note that there are substantial restrictions on the use of + * suspension --- see the documentation. + * + * When suspending, the compressor will back up to a convenient restart point + * (typically the start of the current MCU). next_output_byte & free_in_buffer + * indicate where the restart point will be if the current call returns FALSE. + * Data beyond this point will be regenerated after resumption, so do not + * write it out when emptying the buffer externally. + */ + +METHODDEF(boolean) +empty_output_buffer (j_compress_ptr cinfo) +{ + my_dest_ptr dest = (my_dest_ptr) cinfo->dest; + + *dest->buffer = realloc (*dest->buffer, + dest->buf_size + OUTPUT_BUF_SIZE); + if (!*dest->buffer) + ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 0); + + dest->pub.next_output_byte = *dest->buffer + dest->buf_size; + dest->pub.free_in_buffer = OUTPUT_BUF_SIZE; + dest->buf_size += OUTPUT_BUF_SIZE; + + return TRUE; +} + +/* + * Terminate destination --- called by jpeg_finish_compress + * after all data has been written. Usually needs to flush buffer. + * + * NB: *not* called by jpeg_abort or jpeg_destroy; surrounding + * application must deal with any cleanup that should happen even + * for error exit. + */ + +METHODDEF(void) +term_destination (j_compress_ptr cinfo) +{ + my_dest_ptr dest = (my_dest_ptr) cinfo->dest; + + *dest->outsize = dest->buf_size - dest->pub.free_in_buffer; +} + +GLOBAL(void) +jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer, + unsigned long * outsize) +{ + my_dest_ptr dest; + + /* The destination object is made permanent so that multiple JPEG + * images can be written to the same file without re-executing + * jpeg_stdio_dest. + * This makes it dangerous to use this manager and a different + * destination manager serially with the same JPEG object, because + * their private object sizes may be different. + * + * Caveat programmer. + */ + if (cinfo->dest == NULL) { /* first time for this JPEG object? */ + cinfo->dest = (struct jpeg_destination_mgr *) + (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, + JPOOL_PERMANENT, + sizeof(my_destination_mgr)); + } + + dest = (my_dest_ptr) cinfo->dest; + dest->pub.init_destination = init_destination; + dest->pub.empty_output_buffer = empty_output_buffer; + dest->pub.term_destination = term_destination; + dest->buffer = outbuffer; + dest->buf_size = *outsize; + dest->outsize = outsize; + + if (*dest->buffer == NULL || dest->buf_size == 0) { + /* Allocate initial buffer */ + *dest->buffer = malloc(OUTPUT_BUF_SIZE); + if (*dest->buffer == NULL) + ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10); + dest->buf_size = OUTPUT_BUF_SIZE; + } + + dest->pub.next_output_byte = *dest->buffer; + dest->pub.free_in_buffer = dest->buf_size; +} + +#endif +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jpeg_memsrcdest.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jpeg_memsrcdest.h new file mode 100644 index 00000000..b13bf3f4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/jpeg_memsrcdest.h @@ -0,0 +1,13 @@ +#include + +#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) + +void +jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, + unsigned long bufsize); + +void +jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer, + unsigned long * outsize); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/library.c new file mode 100644 index 00000000..1c31590e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/jl2005c/library.c @@ -0,0 +1,503 @@ +/* library.c + + * + * Copyright (C) 2006-2010 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include + +#include +#include +#include + +#include "jl2005bcd_decompress.h" +#include + + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "jl2005c.h" +#include + +#define GP_MODULE "jl2005c" + +struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {" JL2005B/C/D camera", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"Argus DC1512e", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"Amazing Spiderman", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"Aries ATC-0017", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"Sakar no. 75379", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"Sakar no. 81890", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"Sakar Nickelodeon iCarly no. 88061", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {"Sakar Dora the Explorer no. 88067", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {"Sakar no. 91379", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"Sakar no. 98379", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"Sakar Kidz-Cam no. 88379", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {"Sakar clipshot no. 1169x", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {"Sakar Sticker Wizard no. 59379", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {"Sakar Star Wars kit no. 92022", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {"Jazwares Star Wars no. 15256", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {"Argus Bean Sprout", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {"Global Point Clipster", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {"Global Point 3 in 1 Digital Fun Graffiti 00044", + GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"Jazz JDK235", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"DIGITAL MID#0020509 (no-name camera)", + GP_DRIVER_STATUS_EXPERIMENTAL, 0x0979, 0x0227}, + {"Vivitar Freelance", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {"Sakar Hello Kitty no. 94009", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0979, 0x0227}, + {NULL,0,0,0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "JL2005B/C/D camera"); + return GP_OK; +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].name); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + if (a.status == GP_DRIVER_STATUS_EXPERIMENTAL) + a.operations = GP_OPERATION_NONE; + else + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + a.file_operations = GP_FILE_OPERATION_PREVIEW + + GP_FILE_OPERATION_RAW; + gp_abilities_list_append (list, a); + } + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + int num_pics; + num_pics = camera->pl->nb_entries; + GP_DEBUG("camera->pl->nb_entries = %i\n",camera->pl->nb_entries); + sprintf(summary->text, + _("This camera contains a Jeilin JL2005%c chipset.\n" + "The number of photos in it is %i. \n"), + camera->pl->model, num_pics); + return GP_OK; +} + +static int +camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy(manual->text, + _( + "This driver supports cameras with Jeilin JL2005B or C or D chip \n" + "These cameras do not support deletion of photos, nor uploading\n" + "of data. \n" + "If present on the camera, video clip frames are downloaded \n" + "as consecutive still photos.\n" + "For more details please consult libgphoto2/camlibs/README.jl2005c\n" + )); + + return (GP_OK); +} + + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("jl2005bcd camera library\n" + "Theodore Kilgore \n")); + return GP_OK; +} + +/*************** File and Downloading Functions *******************/ + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int n; + n = camera->pl->nb_entries; + gp_list_populate (list, "jl_%03i.ppm", n); + return GP_OK; +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + info->file.fields = GP_FILE_INFO_TYPE; + strcpy (info->file.type, GP_MIME_PPM); + + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int w, h = 0, b = 0, k; + unsigned char *pic_data, *pic_buffer, *pic_output = NULL; + int HEADERSIZE=16; + int outputsize; + unsigned long start_of_photo; + unsigned int downloadsize = 0; + int filled = 0; + + GP_DEBUG ("Downloading pictures!\n"); + if(!camera->pl->data_reg_opened) + jl2005c_open_data_reg (camera, camera->port); + /* These are cheap cameras. There ain't no EXIF data. */ + if (GP_FILE_TYPE_EXIF == type) return GP_ERROR_FILE_EXISTS; + + /* Get the number of the photo on the camera */ + k = gp_filesystem_number (camera->fs, "/", filename, context); + h = camera->pl->table[16 * k + 4] << 3; + w = camera->pl->table[16 * k + 5] << 3; + + GP_DEBUG ("height is %i\n", h); + + b = jl2005c_get_pic_data_size(camera->pl, camera->pl->table, k); + GP_DEBUG("b = %i = 0x%x bytes\n", b, b); + start_of_photo = jl2005c_get_start_of_photo(camera->pl, + camera->pl->table, k); + GP_DEBUG("start_of_photo number %i = 0x%lx \n", k,start_of_photo); + pic_buffer = malloc(b + HEADERSIZE); + if (!pic_buffer) return GP_ERROR_NO_MEMORY; + memset(pic_buffer, 0, b + HEADERSIZE); + GP_DEBUG("buffersize b + 16 = %i = 0x%x bytes\n", b + 16, b + 16); + /* Copy info line for photo from allocation table, as header */ + memcpy(pic_buffer, camera->pl->table + 16 * k, 16); + pic_data = pic_buffer + HEADERSIZE; + + /* + * Camera can download in blocks of 0xfa00, with only the last block + * possibly smaller. So first we set up a cache of that size + * (if it is not set up already) to hold raw data. If one tries + * instead to download one photo at a time, the camera will misbehave; + * data will be lost or corrupted. The dog will bite you, too. + */ + + if (!(camera->pl->data_cache)) { + camera->pl->data_cache = malloc (MAX_DLSIZE); + } + if (!(camera->pl->data_cache)) { + GP_DEBUG ("no cache memory allocated!\n"); + free (pic_buffer); + return GP_ERROR_NO_MEMORY; + } + + /* Is there data in the cache, or not? If yes, read from it into the + * current photo, immediately. Update settings. But first two sanity + * checks. + */ + + if (start_of_photo < camera->pl->bytes_put_away) { + GP_DEBUG("photo number %i starts in a funny place!\n",k); + /* We need to start all over again to get this photo. */ + jl2005c_reset (camera, camera->port); + jl2005c_init (camera, camera->port, camera->pl); + } + if (start_of_photo + b > camera->pl->total_data_in_camera) { + GP_DEBUG ("Photo runs past end of data. Exiting. \n"); + GP_DEBUG ("Block size may be wrong for this camera\n"); + free (pic_buffer); + return (GP_ERROR); + } + /* + * This while loop is entered if the photo number k-1 was not requested + * and thus has not been downloaded. The camera's rudimentary hardware + * obliges us to download all data consecutively and toss whatever + * portion of said data that we do not intend to use. The rudimentary + * hardware also does not like to stop downloading at the end of one + * photo and then to start on the next. It wants to keep getting data + * in size 0xfa00 increments, and only the last block can be smaller. + * To do otherwise will cause data to be lost or corrupted. + * + * Whoever tries to simplify this convoluted and ugly procedure is + * warned that the obvious simplifications, while much prettier, + * just won't work. A kutya harap. + */ + while (camera->pl->bytes_read_from_camera <= start_of_photo) { + camera->pl->data_to_read = camera->pl->total_data_in_camera + - camera->pl->bytes_read_from_camera; + downloadsize = MAX_DLSIZE; + if (camera->pl->data_to_read < downloadsize) + downloadsize = camera->pl->data_to_read; + GP_DEBUG("downloadsize = 0x%x\n", downloadsize); + if (downloadsize) + jl2005c_read_data ( + camera->port, + (char *) camera->pl->data_cache, + downloadsize); + camera->pl->bytes_read_from_camera += downloadsize; + } + + camera->pl->bytes_put_away = start_of_photo; + + if (camera->pl->bytes_read_from_camera > start_of_photo) { + if(start_of_photo + b <= camera->pl->bytes_read_from_camera) { + memcpy(pic_data, camera->pl->data_cache + + (start_of_photo % MAX_DLSIZE) + , b); + camera->pl->bytes_put_away += b; + /* + * Photo data is contained in what is already + * downloaded. + * Jump immediately to process the photo. + */ + } else { + /* Photo starts in one 0xfa00-sized download and ends + * in another */ + filled = camera->pl->bytes_read_from_camera + - start_of_photo; + + memcpy(pic_data, camera->pl->data_cache + + (start_of_photo % MAX_DLSIZE), + filled); + + camera->pl->bytes_put_away += filled; + } + } + while (camera->pl->bytes_put_away < start_of_photo + b ) { + + camera->pl->data_to_read = camera->pl->total_data_in_camera + - camera->pl->bytes_read_from_camera; + downloadsize = MAX_DLSIZE; + if (camera->pl->data_to_read < downloadsize) + downloadsize = camera->pl->data_to_read; + GP_DEBUG("downloadsize = 0x%x\n", downloadsize); + if (downloadsize) + jl2005c_read_data ( + camera->port, + (char *) camera->pl->data_cache, + downloadsize); + camera->pl->bytes_read_from_camera += downloadsize; + + if (camera->pl->bytes_read_from_camera >= + start_of_photo + b ) { + GP_DEBUG("THIS ONE?\n"); + memcpy(pic_data + filled, camera->pl->data_cache, + b - filled); + camera->pl->bytes_put_away += b - filled; + break; + } else { + GP_DEBUG("THIS ONE??\n"); + if (!downloadsize) + break; + memcpy(pic_data + filled, + camera->pl->data_cache, downloadsize); + camera->pl->bytes_put_away += downloadsize; + filled += downloadsize; + } + } + + if (type == GP_FILE_TYPE_RAW) { + gp_file_set_mime_type(file, GP_MIME_RAW); + gp_file_set_data_and_size(file, (char *)pic_buffer, b + 16); + return GP_OK; +#ifdef HAVE_LIBJPEG + } else if (type == GP_FILE_TYPE_PREVIEW) { + if (!camera->pl->can_do_capture) { + free (pic_buffer); + return GP_ERROR_NOT_SUPPORTED; + } + outputsize = (pic_buffer[9] & 0xf0) * 192 + 256; + GP_DEBUG("pic_buffer[9] is 0x%02x\n", pic_buffer[9]); + GP_DEBUG("Thumbnail outputsize = 0x%x = %d\n", outputsize, + outputsize); + if (outputsize == 256) { + GP_DEBUG("Frame %d has no thumbnail.\n", k); + free (pic_buffer); + return GP_OK; + } + pic_output = calloc(outputsize, 1); + if (!pic_output) { + free (pic_buffer); + return GP_ERROR_NO_MEMORY; + } + outputsize = jl2005bcd_decompress(pic_output, pic_buffer, + b + 16, 1); + free (pic_buffer); + if (outputsize < GP_OK) { + free (pic_output); + return outputsize; + } + GP_DEBUG("Thumbnail outputsize recalculated is 0x%x = %d\n", + outputsize, outputsize); + gp_file_set_mime_type(file, GP_MIME_PPM); + gp_file_set_data_and_size(file, (char *)pic_output, + outputsize); + } else if (type == GP_FILE_TYPE_NORMAL) { + outputsize = 3 * w * h + 256; + pic_output = calloc(outputsize, 1); + if (!pic_output) { + free (pic_buffer); + return GP_ERROR_NO_MEMORY; + } + outputsize = jl2005bcd_decompress(pic_output, pic_buffer, + b + 16, 0); + free (pic_buffer); + if (outputsize < GP_OK) { + free (pic_output); + return outputsize; + } + gp_file_set_mime_type(file, GP_MIME_PPM); + gp_file_set_data_and_size(file, (char *)pic_output, + outputsize); +#endif + } else { + free (pic_buffer); + return GP_ERROR_NOT_SUPPORTED; + } + + return GP_OK; +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + + GP_DEBUG(" * delete_all_func()"); + jl2005c_delete_all(camera, camera->port); + + return (GP_OK); +} + + + +/*************** Exit and Initialization Functions ******************/ + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("jl2005c camera_exit"); + jl2005c_reset(camera, camera->port); + gp_port_close(camera->port); + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func, + .delete_all_func = delete_all_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int ret = 0; + + /* First, set up all the function pointers */ + camera->functions->manual = camera_manual; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + + GP_DEBUG ("Initializing the camera\n"); + ret = gp_port_get_settings(camera->port,&settings); + if (ret < 0) return ret; + + switch (camera->port->type) { + case GP_PORT_SERIAL: + return ( GP_ERROR ); + case GP_PORT_USB: + settings.usb.config = 1; + settings.usb.altsetting = 0; + settings.usb.interface = 0; + /* inep 0x84 used to initialize. Then switch to 0x82! */ + settings.usb.inep = 0x84; + settings.usb.outep = 0x03; + break; + default: + return ( GP_ERROR ); + } + + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) return ret; + + GP_DEBUG("interface = %i\n", settings.usb.interface); + GP_DEBUG("inep = %x\n", settings.usb.inep); + GP_DEBUG("outep = %x\n", settings.usb.outep); + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + /* Connect to the camera */ + camera->pl->total_data_in_camera=0; + camera->pl->data_to_read = 0; + camera->pl->bytes_put_away = 0; + camera->pl->data_reg_opened = 0; + camera->pl->data_cache = NULL; + camera->pl->init_done = 0; + jl2005c_init (camera, camera->port, camera->pl); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/CAMERAS b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/CAMERAS new file mode 100644 index 00000000..95489869 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/CAMERAS @@ -0,0 +1,29 @@ +This file describe which driver must be used for a Kodak +camera. + +digita + DC-220, DC-260, DC-265, DC-290 +kodak/dc240 + DC-240, DC-280, DC-3400, DC-5000 +kodak/dc120 + DC-120 +kodak/dc210 + DC-200 DC-210 DC-215 +kodak/dc3200 + DC-3200 +ptp [*] + DC-4800, DX-3215, DX-3500, DX-3600, DX-3700, DX-3900 +none + DC-3800 [**] +dc20 [***] + DC-20, DC-25 + + + +[*] PTP is a new standardized protocol, implemented by the ptp2 + driver. +[**] DC-3800 can't be connected to a computer. Use CompactFlash +reader instead. +[***] dc20 no longer exists in gphoto2. + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/Makefile-files new file mode 100644 index 00000000..501b1fb5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/Makefile-files @@ -0,0 +1,5 @@ +# -*- Makefile -*- + +# SUBDIRS = dc120 dc210 dc240 dc3200 ez200 + +EXTRA_DIST += kodak/CAMERAS diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/ChangeLog new file mode 100644 index 00000000..32ee9312 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/ChangeLog @@ -0,0 +1,18 @@ +2006-11-23 Marcus Meissner + + * dc120.h: Set TIMEOUT to 5000. 1000 was not sufficient + for a bugreporter. + + * *.[ch]: Some cleanups. + +2002-01-15 Lutz Müller + + * dc120.c + * library.[c,h]: gp_camera_progress -> gp_context_progress + +2001-12-20 Hubert Figuiere + + * dc120.c, library.h, library.c: cleaned it up a + lot and improved error handling. Patch by + Ralf Engels + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/Makefile-files new file mode 100644 index 00000000..b160eb3e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += kodak_dc120.la +EXTRA_DIST += kodak/dc120/ChangeLog + +kodak_dc120_la_SOURCES = \ + kodak/dc120/dc120.c kodak/dc120/dc120.h \ + kodak/dc120/library.c kodak/dc120/library.h +kodak_dc120_la_LDFLAGS = $(camlib_ldflags) +kodak_dc120_la_DEPENDENCIES = $(camlib_dependencies) +kodak_dc120_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/dc120.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/dc120.c new file mode 100644 index 00000000..5e3649e1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/dc120.c @@ -0,0 +1,449 @@ +/* dc120.c + * + * Copyright (C) Scott Fritzinger + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE +#define _POSIX_C_SOURCE 199309L + +#include "config.h" + +#include +#include +#include +#include + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# ifdef gettext_noop +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# define N_(String) gettext_noop (String) +# else +# define _(String) (String) +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "dc120.h" +#include "library.h" + +#define CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} + +int camera_id (CameraText *id) { + strcpy(id->text, "kodak-dc120"); + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) { + + CameraAbilities a; + + memset (&a, 0, sizeof(a)); + strcpy(a.model, "Kodak:DC120"); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.speed[5] = 0; + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + gp_abilities_list_append(list, a); + + return (GP_OK); +} + +/** Parses a path for a folder and returns folder number and card */ +static int find_folder( Camera *camera, const char *folder, + int *from_card, int *folder_nr, GPContext *context) +{ + CameraList *albums = NULL; + const char* album_name; + int folder_len; + int i; + char *dc120_folder_card = _("CompactFlash Card"); + + if( folder[0] != '/' ) { + return (GP_ERROR); + } + + folder++; + + if( folder[0] == '\0') { + /* From memory */ + *from_card = FALSE; + *folder_nr = 0; + return (GP_OK); + } + else if( strncmp(folder, dc120_folder_card, strlen(dc120_folder_card) )==0) { + /* From card */ + *from_card = TRUE; + folder += strlen(dc120_folder_card); + } + else { + /* Subfolder in memory */ + *from_card = FALSE; + folder--; /* step back to slash */ + } + + if ( (folder[0] == 0) || + (folder[0] == '/' && folder[1] == 0) ) { /* ok, finished */ + *folder_nr = 0; + return (GP_OK); + } + else if( folder[0] != '/' ) + return (GP_ERROR); + + folder++; /* remove slash */ + + /* Have trailing slash */ + folder_len = strlen(folder); + if (folder[folder_len-1] == '/') { + folder_len--; + } + + /* ok, now we have a album. first get all albums */ + if( gp_list_new( &albums ) != (GP_OK) ) { + return (GP_ERROR); + } + + if( dc120_get_albums(camera, *from_card, albums, context) != (GP_OK) ) { + gp_list_free( albums ); + return (GP_ERROR); + } + + /* no check if such a album exist */ + for( i = 0; ifs, folder, filename, context); + if (picnum < 0) + return picnum; + + + if (action == DC120_ACTION_PREVIEW) { /* FIXME: marcus, fix type */ + dot = strrchr(filename, '.'); + if( dot && strlen( dot )>3 ) { + strcpy( dot+1, "ppm"); + } + } + return (dc120_file_action(camera, action, from_card, folder_nr, picnum+1, file, context)); + /* yes, after that it is to handle failures. */ + fail: + if (files) + gp_list_free( files ); + return result; + +} + + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *data, GPContext *context) +{ + Camera *camera = data; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + return (camera_file_action (camera, DC120_ACTION_IMAGE, file, + folder, filename, context)); + case GP_FILE_TYPE_PREVIEW: + return (camera_file_action (camera, DC120_ACTION_PREVIEW, file, + folder, filename, context)); + default: + return (GP_ERROR_NOT_SUPPORTED); + } +} + +static int delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, + GPContext *context) +{ + Camera *camera = data; + int retval; + + retval = camera_file_action (camera, DC120_ACTION_DELETE, NULL, + folder, filename, context); + + return (retval); +} + +static int camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) { + CameraList *list; + int count; + const char* name; + + if (type != GP_CAPTURE_IMAGE) + return (GP_ERROR_NOT_SUPPORTED); + + /* capture a image to flash (note: we do not check if full */ + CHECK_RESULT (dc120_capture(camera, path, context)); + + /* Get the last picture in the Flash memory */ + gp_list_new(&list); + + dc120_get_filenames (camera, 0, 0, list, context); + + count = gp_list_count(list); + gp_list_get_name (list, count - 1, &name); + gp_list_free(list); + + /* Set the filename */ + strcpy(path->folder, "/"); + + CHECK_RESULT (gp_filesystem_append (camera->fs, + path->folder, + path->name, context)); + return (GP_OK); + +} + +static int camera_summary (Camera *camera, CameraText *summary, + GPContext *context) +{ + static char summary_string[2048] = ""; + char buff[1024]; + Kodak_dc120_status status; + + if (dc120_get_status (camera, &status, context)) + { + strcpy(summary_string,"Kodak DC120\n"); + + snprintf(buff,1024,"Camera Identification: %s\n",status.camera_id); + strcat(summary_string,buff); + + snprintf(buff,1024,"Camera Type: %d\n",status.camera_type_id); + strcat(summary_string,buff); + + snprintf(buff,1024,"Firmware: %d.%d\n",status.firmware_major,status.firmware_minor); + strcat(summary_string,buff); + + snprintf(buff,1024,"Battery Status: %d\n",status.batteryStatusId); + strcat(summary_string,buff); + + snprintf(buff,1024,"AC Status: %d\n",status.acStatusId); + strcat(summary_string,buff); + + strftime(buff,1024,"Time: %a, %d %b %Y %T\n",localtime((time_t *)&status.time)); + strcat(summary_string,buff); + + snprintf(buff,1024,"Total Pictures Taken: %d\n", + status.taken_pict_mem + status.taken_pict_card ); + strcat(summary_string,buff); + + } + + strcpy(summary->text, summary_string); + + return (GP_OK); +} + + +static int camera_manual (Camera *camera, CameraText *manual, + GPContext *context) +{ + strcpy (manual->text, + _("The Kodak DC120 camera uses the KDC file format " + "for storing images. If you want to view the images you " + "download from your camera, you will need to download " + "the \"kdc2tiff\" program. " + "It is available from http://kdc2tiff.sourceforge.net")); + + return (GP_OK); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy(about->text, + _("Kodak DC120 Camera Library\n" + "Scott Fritzinger \n" + "Camera Library for the Kodak DC120 camera.\n" + "(by popular demand).")); + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, +}; + +int camera_init (Camera *camera, GPContext *context) { + + GPPortSettings settings; + int speed; + + /* First, set up all the function pointers */ + camera->functions->capture = camera_capture; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + /* Configure the port (remember the speed) */ + gp_port_get_settings (camera->port, &settings); + speed = settings.serial.speed; + settings.serial.speed = 9600; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + gp_port_set_settings (camera->port, settings); + gp_port_set_timeout (camera->port, TIMEOUT); + + /* Reset the camera to 9600 */ + gp_port_send_break (camera->port, 2); + + /* Wait for it to update */ + usleep(1500 * 1000); + + if (dc120_set_speed (camera, speed) == GP_ERROR) { + return (GP_ERROR); + } + + /* Try to talk after speed change */ + if (dc120_get_status(camera, NULL, context) == GP_ERROR) { + return (GP_ERROR); + } + + return (GP_OK); +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/dc120.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/dc120.h new file mode 100644 index 00000000..740f5f54 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/dc120.h @@ -0,0 +1,117 @@ +/* dc120.h + * + * Copyright (C) Scott Fritzinger + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/* + + Packet Structure + -------------------------------------------------------------- + Command Packet: CMD 00 [4 byte field] 00 1A + Camera Response: [variable width field] CHECKSUM + + Responses + -------------------------------------------------------------- + + 00 Command completed + 10 Command ready + d1 Command received (ACK) + d2 Correct packet + e1 Command incorrect (NAK) + e2 Command execution error + e3 Illegal packet + e4 Cancel + + + Commands & Byte field descriptions + -------------------------------------------------------------- + These are ones relavent to gPhoto + + * Album #0 is the root folder (directory/album/etc...) + + List albums (folders) + Packet: 44 00 00 00 00 00 00 1A + + Response: + ALBUMNAME1\0\0\0\0\0ALBUMNAME2\0\0\0\0\0ALBUMNAME3\0\0\0\0\0 [...] CS + + (258 bytes, 15 byte fixed-with fields in multiple packets) + CS (checksum) + + Picture count in album + Packet: 45 LOC 00 00 AN 00 00 1A + + LOC (location): 00 (memory), 01 (card) + AN (album #) + + Response: NP4 NP3 NP2 NP1 [11 reserved bytes] CS + + NP4 - NP1 (number of pictures): MSB to LSB number of pictures + CS (checksum) + + Set Active album for next taken picture + Packet: 49 00 AN 00 00 00 00 1A + + AN (album #) + + Set Image Quality + Packet: 71 00 QQ 00 00 00 00 1A + + QQ (quality): 00 (no comp), 01 (best), 02 (better), 03 (good) + + Take picture + Packet: CMD 00 00 00 00 00 00 1A + + CMD: + 77 Take a picture to FLASH + 7C Take a picture to card + + Picture Transfer/Deletion + Packet: CMD AA PU PL AL 00 00 1A + + CMD: + 4A Send filename in album + 51 Send picture in memory + 52 Send TIFF info in memory + 54 Send TIFF in memory + 55 Send picture info in memory + 64 Send TIFF on card + 76 Copy image from memory to card + 7B Erase picture from card + + AA (access mode): 00 (sequential), 01 (album) + PU (picture # upper) + PL (picture # lower) + AL (album #) + +*/ + +#define COMM1 (unsigned char)0x00 +#define READY (unsigned char)0x10 +#define ACK (unsigned char)0xd1 +#define PACK1 (unsigned char)0xd2 + +/* nice. errors all have upper nibble of 'e' */ +#define NAK (unsigned char)0xe1 +#define COMM0 (unsigned char)0xe2 +#define PACK0 (unsigned char)0xe3 +#define CANCL (unsigned char)0xe4 + +#define TIMEOUT 5000 +#define SLEEP_TIMEOUT 50 +#define RETRIES 5 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/library.c new file mode 100644 index 00000000..50fafb11 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/library.c @@ -0,0 +1,646 @@ +/* dc120.c + * + * Copyright (C) Scott Fritzinger + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE +#define _POSIX_C_SOURCE 199309L +#include "config.h" + +#include +#include +#include +#include +#include + +#include "dc120.h" +#include "library.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +static char * +dc120_packet_new (int command_byte) { + + char *p = (char *)malloc(sizeof(char) * 8); + + memset (p, 0, 8); + + p[0] = command_byte; + p[7] = 0x1a; + + return p; +} + +/** Checks if a response is ok. + * Checks if the response is ok (completed, ready, received) or not ok. + * @returns GP_OK if command is ok, GP_ERROR otherwise. + */ +static int +dc120_response_ok (unsigned char response) { + /* This is stupid. how do you get a constant of type signed char?? (Ralf) */ + if( response == 0x00 || /* Command completed */ + response == 0x10 || /* Command ready */ + response == 0xd1 || /* Command received (ACK) */ + response == 0xd2 ) /* Correct packet */ + return (GP_OK); + else + return (GP_ERROR); +} + +/** Writes a packet to the port. + * This function writes a packet to a port determined by camera->port. + * When read_response != FALSE it also reads the response. + */ +static int +dc120_packet_write (Camera *camera, char *packet, int size, int read_response) { + + /* Writes the packet and returns the result */ + + int x=0; + unsigned char in[2]; + +write_again: + /* If retry, give camera some recup time */ + if (x > 0) + usleep(SLEEP_TIMEOUT * 1000); + + /* Return error if too many retries */ + if (x++ > RETRIES) + return (GP_ERROR); + + if (gp_port_write(camera->port, packet, size) < GP_OK) + goto write_again; + + + /* Read in the response from the camera if requested */ + if (read_response) { + if (gp_port_read(camera->port, (char *)in, 1) < GP_OK) + /* On error, write again */ + goto write_again; + + if ( dc120_response_ok(in[0]) != (GP_OK) ) { + /* If a single byte response, don't rewrite */ + if (size == 1) + return (GP_ERROR); + /* Got error response. Go again. */ + goto write_again; + } + } + + return (GP_OK); +} + +static int +dc120_packet_read (Camera *camera, char *packet, int size) { + + return (gp_port_read(camera->port, packet, size)); +} + +static int dc120_packet_read_data (Camera *camera, CameraFile *file, char *cmd_packet, int *size, int block_size, GPContext *context) { + + /* Reads in multi-packet data, appending it to the "file". */ + + int num_packets, retval; + int packets_received; + int bytes_received; + int retries=0; + char packet[2048], p[8]; + unsigned int id; + + /* Determine number of packets needed on-the-fly */ + if (*size > 0) { + num_packets = (*size + block_size-1) / block_size; + } else { + num_packets = 5; + } + + id = gp_context_progress_start (context, num_packets, _("Getting data...")); +read_data_write_again: + if (dc120_packet_write(camera, cmd_packet, 8, 1) < GP_OK) + return (GP_ERROR); + + packets_received = 0; + while( packets_received < num_packets ) { + gp_context_progress_update (context, id, packets_received); + retval = dc120_packet_read(camera, packet, block_size+1); + switch (retval) { + case GP_ERROR: + case GP_ERROR_TIMEOUT: + /* Write that packet was bad and resend */ + if (retries++ > RETRIES) + return (GP_ERROR); + if (packets_received==0) { + /* If first packet didn't come, write command again */ + goto read_data_write_again; + } else { + /* Didn't get data packet. Send retry */ + p[0] = PACK0; + if (dc120_packet_write(camera, p, 1, 0)== GP_ERROR) + return (GP_ERROR); + } + break; + default: + packets_received++; + + /* Default is packet was OK */ + p[0] = PACK1; + + /* Do some command-specific stuff */ + switch (cmd_packet[0]) { + case 0x4A: + /* Set size and num_packets for camera filenames*/ + if (packets_received==1) + *size = ((unsigned char)packet[0] * 256 + + (unsigned char)packet[1])* 20 + 2; + num_packets = (*size + block_size-1) / block_size; + break; + case 0x64: + case 0x54: + /* If thumbnail, cancel rest of image transfer */ + if ((num_packets == 16)&&(packets_received==16)) + p[0] = CANCL; + /* No break on purpose */ + break; + default: + /* Nada */ + break; + } + + /* Write response */ + if (dc120_packet_write(camera, p, 1, FALSE)== GP_ERROR) + return (GP_ERROR); + + /* Copy in data */ + if (packets_received == num_packets) + bytes_received = *size - ((num_packets-1) * block_size); + else + bytes_received = block_size; + gp_file_append(file, packet, bytes_received ); + + } + } + gp_context_progress_stop (context, id); + + if ((unsigned char)p[0] != CANCL) + /* Read in command completed. + (Shouldn't we check for command completed (Ralf)) */ + dc120_packet_read(camera, p, 1); + + return (GP_OK); + +} + +int dc120_set_speed (Camera *camera, int speed) +{ + int error = GP_OK; + GPPortSettings settings; + char *p = dc120_packet_new(0x41); + + if(p == NULL) { + /* unlikely to happen, FFS */ + return GP_ERROR; + } + gp_port_get_settings(camera->port, &settings); + + switch (speed) { + case 9600: + p[2] = (unsigned char)0x96; + p[3] = (unsigned char)0x00; + settings.serial.speed = 9600; + break; + case 19200: + p[2] = (unsigned char)0x19; + p[3] = (unsigned char)0x20; + settings.serial.speed = 19200; + break; + case 38400: + p[2] = (unsigned char)0x38; + p[3] = (unsigned char)0x40; + settings.serial.speed = 38400; + break; + case 57600: + p[2] = (unsigned char)0x57; + p[3] = (unsigned char)0x60; + settings.serial.speed = 57600; + break; + case 0: /* Default */ + case 115200: + p[2] = (unsigned char)0x11; + p[3] = (unsigned char)0x52; + settings.serial.speed = 115200; + break; +/* how well supported is 230.4? + case 230400: + p[2] = 0x23; + p[3] = 0x04; + settings.serial.speed = 230400; + break; +*/ + default: + error = GP_ERROR; + goto fail; + break; + } + + if (dc120_packet_write(camera, p, 8, 1) == GP_ERROR) + { + error = GP_ERROR; + goto fail; + } + + gp_port_set_settings (camera->port, settings); + + + usleep(300 * 1000); + + /* Speed change went OK. */ + error = GP_OK; + + fail: + free (p); + return error; +} + +int dc120_get_status (Camera *camera, Kodak_dc120_status *status, GPContext *context) { + + CameraFile *file; + char *p = dc120_packet_new(0x7F); + int i; + int retval; + int size; + + gp_file_new (&file); + size = 256; + retval = dc120_packet_read_data(camera, file, p, &size, 256, context); + + if( retval == (GP_OK) && status != NULL ) + { + const char *data; + long unsigned int lsize; + + gp_file_get_data_and_size( file, &data, &lsize ); + if( lsize<122 ) { + gp_file_free (file); + free (p); + return (GP_ERROR); + } + + memset((char*)status,0,sizeof(*status)); + + status->camera_type_id = data[1]; + status->firmware_major = data[2]; + status->firmware_minor = data[3]; + status->batteryStatusId = data[8]; + status->acStatusId = data[9]; + + /* seconds since unix epoc */ + status->time = CAMERA_EPOC + ( + data[12] * 0x1000000 + + data[13] * 0x10000 + + data[14] * 0x100 + + data[15]) / 2; + + status->af_mode = data[16] & 0x0f; + status->zoom_mode = (data[16] & 0x30)>>4; + status->flash_charged = data[18]; + status->compression_mode_id = data[19]; + status->flash_mode = data[20]; + status->exposure_compensation = (data[2]&0x40?-1:1) * (data[21] & 0x3f); + status->light_value = data[22]; + status->manual_exposure = data[23]; + status->exposure_time = (data[24] * 0x1000000 + + data[25] * 0x10000 + + data[26] * 0x100 + + data[27]) / 2; + status->shutter_delay = data[29]; + status->memory_card = data[30]; + status->front_cover = data[31]; + status->date_format = data[32]; + status->time_format = data[33]; + status->distance_format = data[34]; + status->taken_pict_mem = data[36] * 0x100 + data[37]; + for( i=0; i<4; i++ ) { + status->remaining_pic_mem[i] = + data[46+i*2] * 0x100 + + data[47+i*2]; + } + status->taken_pict_card = data[56] * 0x100 + data[57]; + for( i=0; i<4; i++ ) { + status->remaining_pic_card[i] = + data[66+i*2] * 0x100 + + data[67+i*2]; + } + strncpy( status->card_id, data + 77, 32 ); + strncpy( status->camera_id, data + 90, 32 ); + } + + + gp_file_free(file); + free (p); + + return (retval); +} + +int dc120_get_albums (Camera *camera, int from_card, CameraList *list, GPContext *context) { + + CameraFile *file; + int x; + int size; + char *f; + char *p = dc120_packet_new(0x44); + const char *file_data; + long unsigned int file_size; + + if (from_card) + p[1] = 0x01; + + gp_file_new(&file); + + size = 256; + if (dc120_packet_read_data(camera, file, p, &size, 256, context)==GP_ERROR) { + gp_file_free(file); + free (p); + return GP_ERROR; + } + gp_file_get_data_and_size (file, &file_data, &file_size); + + for (x=0; x<8; x++) { + f = (char*)&file_data[x*15]; + if (strlen(f)>0) + gp_list_append(list, f, NULL); + } + + gp_file_free(file); + free (p); + + return (GP_OK); +} + +int dc120_get_filenames (Camera *camera, int from_card, int album_number, CameraList *list, GPContext *context) +{ + CameraFile *file; + int x; + int size; + char *p; + char buf[16]; + const char *file_data; + long unsigned int file_size; + + /* --- now read the files --- */ + + p = dc120_packet_new(0x4A); + + if (from_card) + p[1] = 0x01; + + /* Set the album number */ + p[4] = album_number; + + gp_file_new(&file); + size = 256; /* packet_read_data has special handling for size */ + if (dc120_packet_read_data(camera, file, p, &size, size, context)==GP_ERROR) { + gp_file_free(file); + free (p); + return (GP_ERROR); + } + + + /* extract the filenames from the packet data */ + gp_file_get_data_and_size (file, &file_data, &file_size); + x=2; + while (x < size) { + if( file_data[x] != '\0' ) { + strncpy(buf, (char*) &file_data[x], 11); + buf[7] = '.'; + buf[11] = '\0'; + gp_list_append(list, buf, NULL); + } + x += 20; + } + + /* be a good boy and free up our stuff */ + gp_file_free(file); + free (p); + + return (GP_OK); +} + +static int dc120_get_file_preview (Camera *camera, CameraFile *file, int file_number, char *cmd_packet, int *size, GPContext *context) { + + CameraFile *f; + int x; + char buf[16]; + const char *f_data; + long unsigned int f_size; + + *size = 15680; + + /* Create a file for KDC data */ + gp_file_new(&f); + if (dc120_packet_read_data(camera, f, cmd_packet, size, 1024, context)==GP_ERROR) { + gp_file_free(f); + return (GP_ERROR); + } + /* Convert to PPM file for now */ + gp_file_append(file, "P3\n80 60\n255\n", 13); + + gp_file_get_data_and_size (f, &f_data, &f_size); + + for (x=0; x<14400; x+=3) { + sprintf(buf, "%i %i %i\n", + (unsigned char)f_data[x+1280], + (unsigned char)f_data[x+1281], + (unsigned char)f_data[x+1282]); + gp_file_append(file, buf, strlen(buf)); + } + + gp_file_free(f); + /* sleep(1); */ /* FIXME: why? ... Marcus: removed it for now.*/ + return (GP_OK); +} + +static int dc120_get_file (Camera *camera, CameraFile *file, int file_number, char *cmd_packet, int *size, GPContext *context) +{ + CameraFile *size_file; /* file used to determine the filesize */ + char *p; + const char *file_data; + long unsigned int file_size; + int offset; + + /* --- first read the file size --- */ + p = dc120_packet_new(0x4A); + + /* Copy over location and album number */ + p[1] = cmd_packet[1]; + p[4] = cmd_packet[4]; + + gp_file_new(&size_file); + *size = 256; /* packet_read_data has special handling for size */ + if (dc120_packet_read_data(camera, size_file, p, size, *size, context)==GP_ERROR) { + gp_file_free(size_file); + free (p); + return (GP_ERROR); + } + + /* extract the filesize from the packet data */ + gp_file_get_data_and_size (size_file, &file_data, &file_size); + + offset = 2 + (file_number-1) * 20; + if( file_size < offset+19 ) + { + gp_file_free(size_file); + free (p); + return (GP_ERROR); + } + + *size = (unsigned char)file_data[offset + 16] * 256*256*256 + + (unsigned char)file_data[offset + 17] * 256*256 + + (unsigned char)file_data[offset + 18] * 256 + + (unsigned char)file_data[offset + 19]; + + /* be a good boy and free up our stuff */ + gp_file_free(size_file); + free (p); + + if (dc120_packet_read_data(camera, file, cmd_packet, size, 1024, context)==GP_ERROR) + return (GP_ERROR); + + + return (GP_OK); +} + +static int dc120_wait_for_completion (Camera *camera, GPContext *context) { + + char p[8]; + int retval; + int x=0, done=0; + unsigned int id; + + /* Wait for command completion */ + id = gp_context_progress_start (context, 25, _("Waiting for completion...")); + while ((x++ < 25)&&(!done)) { + + retval = dc120_packet_read(camera, p, 1); + switch (retval) { + case GP_ERROR: + return (GP_ERROR); + break; + case GP_ERROR_TIMEOUT: + break; + default: + done = 1; + } + gp_context_progress_update (context, id, x); + } + gp_context_progress_stop (context, id); + + if (x==25) + return (GP_ERROR); + return (GP_OK); + +} + +static int dc120_delete_file (Camera *camera, char *cmd_packet, GPContext *context) { + + char p[8]; + + if (dc120_packet_write(camera, cmd_packet, 8, 1) == GP_ERROR) + return (GP_ERROR); + + if (dc120_packet_read(camera, p, 1)==GP_ERROR) + return (GP_ERROR); + + if (dc120_wait_for_completion(camera, context)==GP_ERROR) + return (GP_ERROR); + + return (GP_OK); +} + +int dc120_file_action (Camera *camera, int action, int from_card, int album_number, + int file_number, CameraFile *file, GPContext *context) { + + int retval; + int size=0; + char *p = dc120_packet_new(0x00); + + if (from_card) + p[1] = 0x01; + + /* Set the picture number */ + p[2] = (file_number >> 8) & 0xFF; + p[3] = file_number & 0xFF; + + /* Set the album number */ + p[4] = album_number; + + switch (action) { + case DC120_ACTION_PREVIEW: + p[0] = (from_card? 0x64 : 0x54); + retval = dc120_get_file_preview(camera, file, file_number, p, &size, context); + break; + case DC120_ACTION_IMAGE: + p[0] = (from_card? 0x64 : 0x54); + retval = dc120_get_file(camera, file, file_number, p, &size, context); + break; + case DC120_ACTION_DELETE: + p[0] = (from_card? 0x7B : 0x7A); + retval = dc120_delete_file(camera, p, context); + break; + default: + retval = GP_ERROR; + } + free(p); + return (retval); +} + +int dc120_capture (Camera *camera, CameraFilePath *path, GPContext *context) +{ + int retval; + char *p = dc120_packet_new(0x77); + + /* Take the picture to Flash memory */ + if (dc120_packet_write(camera, p, 8, 1) == GP_ERROR) { + retval = (GP_ERROR); + } + else if ( dc120_wait_for_completion(camera, context) == GP_ERROR ) { + retval = (GP_ERROR); + } + else { + retval = (GP_OK); + } + + free( p ); + return retval; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/library.h new file mode 100644 index 00000000..d4b509fb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc120/library.h @@ -0,0 +1,73 @@ +/* library.h + * + * Copyright (C) Scott Fritzinger + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + + +#ifndef _DC120_LIBRARY_H_ +#define _DC120_LIBRARY_H_ + + +#define CAMERA_EPOC 852094800 + +#define DC120_ACTION_IMAGE 0 +#define DC120_ACTION_PREVIEW 1 +#define DC120_ACTION_DELETE 2 + +/* Status structure. Copied from dc210, thus may not fit. */ +typedef struct { + char camera_type_id; /* 1 */ + char firmware_major; /* 2 */ + char firmware_minor; /* 3 */ + char batteryStatusId; /* 8 battery status */ + char acStatusId; /* 9 */ + unsigned long time; /* 12-15 */ + char af_mode; /* 16 */ + char zoom_mode; /* 16 */ + char flash_charged; /* 18 */ + char compression_mode_id; /* 19 */ + char flash_mode; /* 20 */ + char exposure_compensation; /* 21 */ + char light_value; /* 22 measured light */ + char manual_exposure; /* 23 */ + unsigned long exposure_time; /* 24-27*/ + char shutter_delay; /* 29 */ + char memory_card; /* 30 */ + char front_cover; /* 31 */ + char date_format; /* 32 */ + char time_format; /* 33 */ + char distance_format; /* 34 */ + unsigned short taken_pict_mem; /* 36-37 */ + unsigned short remaining_pic_mem[4]; /* 46-53 */ + unsigned short taken_pict_card; /* 56-57 */ + unsigned short remaining_pic_card[4]; /* 66-73 */ + unsigned long album_count; /* 122-125 */ + char card_id[32]; /* 77-88 */ + char camera_id[32]; /* 90-122 */ +} Kodak_dc120_status; + +int dc120_set_speed (Camera *camera, int speed); +int dc120_get_status (Camera *camera, Kodak_dc120_status *status, GPContext *context); +int dc120_get_albums (Camera *camera, int from_card, CameraList *list, GPContext *context); +int dc120_get_filenames(Camera *camera, int from_card, int album_number, CameraList *list, GPContext *context); +int dc120_file_action (Camera *camera, int action, int from_card, int album_number, + int file_number, CameraFile *file, GPContext *context); +int dc120_capture (Camera *camera, CameraFilePath *path, GPContext *context); + + +#endif /* _DC120_LIBRARY_H_ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/ChangeLog new file mode 100644 index 00000000..724e17ff --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/ChangeLog @@ -0,0 +1,85 @@ +2009-01-24 Marcus Meissner + + * dc210.c: Remove info.file.name usage. + +2005-12-04 Marcus Meissner + + * dc210.c: Mark Longridge reports DC215 working. + +2003-12-11 Hubert Figuiere + + * dc210.c: status = TESTING + +2003-10-12 Marcus Meissner + + From Joe R + * dc210.c: GP_OPERATION_CAPTURE_IMAGE -> GP_CAPTURE_IMAGE typo. + +2002-10-25 Michael Koltan + + * Rewrote the initialization procedure + again to use the speed parameter + set by gphoto2 + + * Allowed timeout errors when + capturing a picture; that's for Koen, who + has strange communication drops in his + setup + +2002-10-20 Michael Koltan + + * Improved error recovery on package read + timeout when downloading file from camera + + Corrected error in battery status / ac + adaptor connection. Reading of battery + status still doesn't work, so took the + unreliable display from summary + +2002-09-10 Marcus Meissner + + * Made exp_compensation a signed char, removed + exposure_compensation (unused). + +2002-09-11 Michael Koltan + + * Removed the pseudo capture preview. + It's too slow for applications like + gtkam + +2002-09-10 Marcus Meissner + + * "xx mm" strings do not need to be translated. + +2002-09-08 Michael Koltan + + * Separated port initialization and speed + setting code + * Corrected the reading of the card status + * Improved card opening code + * Added a pseudo capture preview (capture + to card, then download the data and + delete the picture on card) + +2002-09-08 Michael Koltan + + * Implemented reliable code for speed setting + * Added battery check + +2002-09-06 Michael Koltan + + * Implemeted the named commands for displaying, + downloading and deleting of files + * Added conversion for cfa bayer thumnails + * Minor cleanups + * Added TODO list + +2002-09-01 Michel Koltan + + * Added PREVIEW to file_operations + + +2002-08-24 Michael Koltan + + * first version submitted for testing + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/Makefile-files new file mode 100644 index 00000000..e446dc2e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += kodak_dc210.la +EXTRA_DIST += kodak/dc210/ChangeLog kodak/dc210/TODO + +kodak_dc210_la_SOURCES = \ + kodak/dc210/dc210.c kodak/dc210/dc210.h \ + kodak/dc210/library.c kodak/dc210/library.h +kodak_dc210_la_LDFLAGS = $(camlib_ldflags) +kodak_dc210_la_DEPENDENCIES = $(camlib_dependencies) +kodak_dc210_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/TODO b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/TODO new file mode 100644 index 00000000..5a6c92f3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/TODO @@ -0,0 +1,8 @@ +There are still some minor problems/issues: + +- Check the epoch problem that occurs when setting/reading the + camera or file time +- Internationalization +- Allow switching the thumbnail type in preferences +- Clean up the code and add some more comments +- Find the error in reading the battery status diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/dc210.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/dc210.c new file mode 100644 index 00000000..133b7093 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/dc210.c @@ -0,0 +1,690 @@ +/* dc210.c + * + * Copyright (C) 2002 Michel Koltan + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE +#include "config.h" + +#include +#include +#include +#include + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# ifdef gettext_noop +# define _(String) dgettext (PACKAGE, String) +# define N_(String) gettext_noop (String) +# else +# define _(String) (String) +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "dc210.h" + +static char * exp_comp[] = {"-2.0 EV", "-1.5 EV", "-1.0 EV", "-0.5 EV", "AUTO", "+0.5 EV", + "+1.0 EV", "+1.5 EV", "+2.0 EV"}; + +int camera_id (CameraText *id) { + + strcpy(id->text, GP_MODULE); + + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) { + + CameraAbilities a; + + memset (&a, 0, sizeof(a)); + strcpy(a.model, "Kodak:DC210"); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.speed[5] = 0; + a.operations = GP_OPERATION_CAPTURE_IMAGE | GP_OPERATION_CONFIG; + a.file_operations = GP_FILE_OPERATION_DELETE | GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + gp_abilities_list_append(list, a); + + /* Mark Longridge */ + strcpy(a.model, "Kodak:DC215"); + gp_abilities_list_append(list, a); + + return (GP_OK); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + + return dc210_get_filenames(camera, list, context); +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *data, GPContext *context) +{ + Camera *camera = data; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + return dc210_download_picture_by_name(camera, file, filename, DC210_FULL_PICTURE, context); + case GP_FILE_TYPE_PREVIEW: + return dc210_download_picture_by_name(camera, file, filename, DC210_CFA_THUMB, context); + default: + return (GP_ERROR_NOT_SUPPORTED); + }; + + return GP_OK; +} + +static int delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, + GPContext *context) +{ + Camera *camera = data; + + return dc210_delete_picture_by_name(camera, filename); + +}; + +static int get_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + dc210_picture_info picinfo; + + if (dc210_get_picture_info_by_name(camera, &picinfo, file) == GP_ERROR) + return GP_ERROR; + + info->preview.fields = 0; + info->preview.fields |= GP_FILE_INFO_TYPE; + info->preview.fields |= GP_FILE_INFO_SIZE; + info->preview.fields |= GP_FILE_INFO_WIDTH; + info->preview.fields |= GP_FILE_INFO_HEIGHT; + strcpy(info->preview.type, GP_MIME_PPM); + info->preview.width = 96; + info->preview.height = 72; + info->preview.size = picinfo.preview_size; + + info->file.fields = 0; + info->file.fields |= GP_FILE_INFO_TYPE; + info->file.fields |= GP_FILE_INFO_SIZE; + info->file.fields |= GP_FILE_INFO_WIDTH; + info->file.fields |= GP_FILE_INFO_HEIGHT; + info->file.fields |= GP_FILE_INFO_MTIME; + + info->file.size = picinfo.picture_size; + switch(picinfo.file_type){ + case DC210_FILE_TYPE_JPEG: + strcpy(info->file.type, GP_MIME_JPEG); break; + case DC210_FILE_TYPE_FPX: + strcpy(info->file.type, GP_MIME_UNKNOWN); break; + }; + switch(picinfo.resolution){ + case DC210_FILE_640: + info->file.width = 640; + info->file.height = 480; + break; + case DC210_FILE_1152: + info->file.width = 1152; + info->file.height = 864; + break; + }; + info->file.mtime = picinfo.picture_time; + return GP_OK; +} + + +static int +camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *section, *widget; + CameraAbilities abilities; + GPPortSettings settings; + int i; + char * wvalue; + char stringbuffer[12]; + + dc210_status status; + + if (dc210_get_status(camera, &status) == GP_ERROR) return GP_ERROR; + + gp_widget_new (GP_WIDGET_WINDOW, _("Camera Configuration"), window); + + gp_widget_new (GP_WIDGET_SECTION, _("File"), §ion); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_RADIO, _("File type"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("JPEG")); + gp_widget_add_choice (widget, _("FlashPix")); + + switch (status.file_type){ + case DC210_FILE_TYPE_JPEG: + gp_widget_set_value (widget, _("JPEG")); break; + case DC210_FILE_TYPE_FPX: + gp_widget_set_value (widget, _("FlashPix")); break; + }; + gp_widget_get_value (widget, &wvalue); + + gp_widget_new (GP_WIDGET_RADIO, _("File resolution"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("640 x 480")); + gp_widget_add_choice (widget, _("1152 x 864")); + + switch (status.resolution){ + case DC210_FILE_640: + gp_widget_set_value (widget, _("640 x 480")); break; + case DC210_FILE_1152: + gp_widget_set_value (widget, _("1152 x 864")); break; + default: + DC210_DEBUG("Undefined value for file resolution.\n"); break; + }; + gp_widget_get_value (widget, &wvalue); + + gp_widget_new (GP_WIDGET_MENU, _("File compression"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("Low (best quality)")); + gp_widget_add_choice (widget, _("Medium (better quality)")); + gp_widget_add_choice (widget, _("High (good quality)")); + + switch (status.compression_type){ + case DC210_LOW_COMPRESSION: + gp_widget_set_value (widget, _("Low (best quality)")); break; + case DC210_MEDIUM_COMPRESSION: + gp_widget_set_value (widget, _("Medium (better quality)")); break; + case DC210_HIGH_COMPRESSION: + gp_widget_set_value (widget, _("High (good quality)")); break; + }; + gp_widget_get_value (widget, &wvalue); + + gp_widget_new (GP_WIDGET_SECTION, _("Capture"), §ion); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_MENU, _("Zoom"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, "58 mm"); /* no need to translate strings with SI units! */ + gp_widget_add_choice (widget, "51 mm"); + gp_widget_add_choice (widget, "41 mm"); + gp_widget_add_choice (widget, "34 mm"); + gp_widget_add_choice (widget, "29 mm"); + gp_widget_add_choice (widget, _("Macro")); + + switch (status.zoom){ + case DC210_ZOOM_58: + gp_widget_set_value (widget, _("58 mm")); break; + case DC210_ZOOM_51: + gp_widget_set_value (widget, _("51 mm")); break; + case DC210_ZOOM_41: + gp_widget_set_value (widget, _("41 mm")); break; + case DC210_ZOOM_34: + gp_widget_set_value (widget, _("34 mm")); break; + case DC210_ZOOM_29: + gp_widget_set_value (widget, _("29 mm")); break; + case DC210_ZOOM_MACRO: + gp_widget_set_value (widget, _("Macro")); break; + }; + gp_widget_get_value (widget, &wvalue); + + gp_widget_new (GP_WIDGET_MENU, _("Exposure compensation"), &widget); + gp_widget_append (section, widget); + for (i = 0; i < sizeof(exp_comp)/sizeof(*exp_comp); i++){ + gp_widget_add_choice (widget, exp_comp[i]); + if (status.exp_compensation + 4 == i) + gp_widget_set_value (widget, exp_comp[i]); + }; + + gp_widget_new (GP_WIDGET_RADIO, _("Flash"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("Auto")); + gp_widget_add_choice (widget, _("Force")); + gp_widget_add_choice (widget, _("None")); + + switch (status.flash){ + case DC210_FLASH_AUTO: + gp_widget_set_value (widget, _("Auto")); break; + case DC210_FLASH_FORCE: + gp_widget_set_value (widget, _("Force")); break; + case DC210_FLASH_NONE: + gp_widget_set_value (widget, _("None")); break; + }; + gp_widget_get_value (widget, &wvalue); + + gp_widget_new (GP_WIDGET_RADIO, _("Red eye flash"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("On")); + gp_widget_add_choice (widget, _("Off")); + + if (status.preflash) + gp_widget_set_value (widget, _("On")); + else + gp_widget_set_value (widget, _("Off")); + gp_widget_get_value (widget, &wvalue); + + gp_widget_new (GP_WIDGET_SECTION, _("Other"), §ion); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_BUTTON, "Set time to system time", &widget); + gp_widget_append (section, widget); + gp_widget_set_value (widget, dc210_system_time_callback); + gp_widget_set_info (widget, _("Set clock in camera")); + + gp_camera_get_abilities(camera, &abilities); + gp_port_get_settings (camera->port, &settings); + gp_widget_new (GP_WIDGET_MENU, _("Port speed"), &widget); + gp_widget_append (section, widget); + for (i = 0; i < sizeof(abilities.speed); i++){ + if (abilities.speed[i] == 0) break; + snprintf(stringbuffer, 12, "%d", abilities.speed[i]); + gp_widget_add_choice (widget, stringbuffer); + if (settings.serial.speed == abilities.speed[i]) + gp_widget_set_value (widget, stringbuffer); + }; + + gp_widget_new (GP_WIDGET_TEXT, _("Album name"), &widget); + gp_widget_append (section, widget); + gp_widget_set_value (widget, status.album_name); + gp_widget_set_info (widget, _("Name to set on card when formatting.")); + + gp_widget_new (GP_WIDGET_BUTTON, _("Format compact flash"), &widget); + gp_widget_append (section, widget); + gp_widget_set_value (widget, dc210_format_callback); + gp_widget_set_info (widget, _("Format card and set album name.")); + +#ifdef DEBUG + gp_widget_new (GP_WIDGET_SECTION, _("Debug"), §ion); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_TEXT, "Parameter 1", &widget); + gp_widget_append (section, widget); + gp_widget_set_value (widget, "0"); + + gp_widget_new (GP_WIDGET_TEXT, "Parameter 2", &widget); + gp_widget_append (section, widget); + gp_widget_set_value (widget, "0"); + + gp_widget_new (GP_WIDGET_TEXT, "Parameter 3", &widget); + gp_widget_append (section, widget); + gp_widget_set_value (widget, "0"); + + gp_widget_new (GP_WIDGET_BUTTON, "Execute debug command", &widget); + gp_widget_append (section, widget); + gp_widget_set_value (widget, dc210_debug_callback); + gp_widget_set_info (widget, _("Execute predefined command\nwith parameter values.")); +#endif + + return GP_OK; +} + +static int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *w, *w2; + char *wvalue, *w2value; + int i; + + gp_widget_get_child_by_label (window, _("File type"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + if (wvalue[0] == 'J') + dc210_set_file_type(camera, DC210_FILE_TYPE_JPEG); + else + dc210_set_file_type(camera, DC210_FILE_TYPE_FPX); + }; + + gp_widget_get_child_by_label (window, _("File resolution"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + switch(wvalue[0]){ + case '6': + dc210_set_resolution(camera, DC210_FILE_640); + break; + case '1': + dc210_set_resolution(camera, DC210_FILE_1152); + break; + }; + }; + + gp_widget_get_child_by_label (window, _("File compression"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + switch(wvalue[0]){ + case 'L': + dc210_set_compression(camera, DC210_LOW_COMPRESSION); + break; + case 'M': + dc210_set_compression(camera, DC210_MEDIUM_COMPRESSION); + break; + case 'H': + dc210_set_compression(camera, DC210_HIGH_COMPRESSION); + }; + }; + + gp_widget_get_child_by_label (window, _("Zoom"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + switch(wvalue[0]){ + case '5': + if (wvalue[1] == '8') + dc210_set_zoom(camera, DC210_ZOOM_58); + else + dc210_set_zoom(camera, DC210_ZOOM_51); + break; + case '4': + dc210_set_zoom(camera, DC210_ZOOM_41); + break; + case '3': + dc210_set_zoom(camera, DC210_ZOOM_34); + break; + case '2': + dc210_set_zoom(camera, DC210_ZOOM_29); + break; + case 'M': + dc210_set_zoom(camera, DC210_ZOOM_MACRO); + break; + }; + }; + + gp_widget_get_child_by_label (window, _("Exposure compensation"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + for (i = 0; i < sizeof(exp_comp)/sizeof(*exp_comp); i++){ + if (strncmp(wvalue, exp_comp[i], 4) == 0){ + dc210_set_exp_compensation(camera, i - 4); + break; + }; + }; + }; + + gp_widget_get_child_by_label (window, _("Port speed"), &w); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &wvalue); + dc210_set_speed(camera, atoi(wvalue)); + }; + + gp_widget_get_child_by_label (window, _("Flash"), &w); + gp_widget_get_child_by_label (window, _("Red eye flash"), &w2); + if (gp_widget_changed (w) || gp_widget_changed(w2)) { + gp_widget_set_changed (w, 0); + gp_widget_set_changed (w2, 0); + gp_widget_get_value (w, &wvalue); + gp_widget_get_value (w2, &w2value); + switch(wvalue[0]){ + case 'A': + dc210_set_flash(camera, DC210_FLASH_AUTO, + w2value[1] == 'n' ? 1 : 0); + break; + case 'F': + dc210_set_flash(camera, DC210_FLASH_FORCE, + w2value[1] == 'n' ? 1 : 0); + break; + case 'N': + dc210_set_flash(camera, DC210_FLASH_NONE, 0); + gp_widget_set_value(w2, _("Off")); + break; + }; + }; + + return GP_OK; +} + +static int camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) { + if (type && type != GP_CAPTURE_IMAGE){ + DC210_DEBUG("Unsupported action 0x%.2X\n", type); + return (GP_ERROR_NOT_SUPPORTED); + }; + + if (dc210_capture(camera, path, context) == GP_ERROR) + return GP_ERROR; + + return gp_filesystem_append (camera->fs, path->folder, path->name, context); +} + +static int camera_capture_preview (Camera* camera, CameraFile* file, GPContext *context){ + /* this function is to slow; don't export it */ + int fatal_error = 0; + + if (dc210_take_picture(camera, context) == GP_ERROR) return GP_ERROR; + if (dc210_download_last_picture(camera, file, DC210_FULL_PICTURE, context) == GP_ERROR) fatal_error = 1; + if (dc210_delete_last_picture(camera) == GP_ERROR) fatal_error = 1; + + if (fatal_error) return GP_ERROR; + + return GP_OK; + +}; + +static int camera_summary (Camera *camera, CameraText *summary, + GPContext *context) +{ + static char summary_string[2048] = ""; + char buff[1024]; + dc210_status status; + + if (GP_OK == dc210_get_status (camera, &status)) + { + strcpy(summary_string,"Kodak DC210\n"); + + snprintf(buff,1024,_("Pictures in camera: %d\n"), + status.numPicturesInCamera); + strcat(summary_string,buff); + + snprintf(buff,1024,_("There is space for another\n %d low compressed\n %d medium compressed or\n %d high compressed pictures\n"), + status.remainingLow, status.remainingMedium, status.remainingHigh); + strcat(summary_string,buff); + + snprintf(buff,1024,_("Total pictures taken: %d\n"), + status.totalPicturesTaken); + strcat(summary_string,buff); + + snprintf(buff,1024,_("Total flashes fired: %d\n"), + status.totalFlashesFired); + strcat(summary_string,buff); + + snprintf(buff,1024,_("Firmware: %d.%d\n"),status.firmwareMajor,status.firmwareMinor); + strcat(summary_string,buff); + + switch (status.file_type){ + case DC210_FILE_TYPE_JPEG: + snprintf(buff, 1024, _("Filetype: JPEG (")); break; + case DC210_FILE_TYPE_FPX: + snprintf(buff, 1024, _("Filetype: FlashPix (")); break; + }; + strcat(summary_string, buff); + + switch (status.compression_type){ + case DC210_LOW_COMPRESSION: + snprintf(buff, 1024, _("low compression, ")); break; + case DC210_MEDIUM_COMPRESSION: + snprintf(buff, 1024, _("medium compression, ")); break; + case DC210_HIGH_COMPRESSION: + snprintf(buff, 1024, _("high compression, ")); break; + default: + snprintf(buff, 1024, _("unknown compression %d, "), status.compression_type); break; + }; + strcat(summary_string, buff); + + switch (status.resolution){ + case DC210_FILE_640: + snprintf(buff, 1024, "640x480 pixel)\n"); break; + case DC210_FILE_1152: + snprintf(buff, 1024, "1152x864 pixel)\n"); break; + default: + snprintf(buff, 1024, _("unknown resolution %d)\n"), status.resolution); break; + }; + strcat(summary_string, buff); + + /* battery check still doesn't work */ + /* switch (status.battery){ + case 0: snprintf(buff,1024,"Battery charge is good\n"); break; + case 1: snprintf(buff,1024,"Battery charge is low\n"); break; + case 2: snprintf(buff,1024,"Battery is not charged\n"); break; + }; + strcat(summary_string,buff);*/ + + if (status.acstatus) + snprintf(buff,1024,_("AC adapter is connected.\n")); + else + snprintf(buff,1024,_("AC adapter is not connected.\n")); + strcat(summary_string,buff); + + /* time string, do not change the % escapes */ + strftime(buff,1024,_("Time: %a, %d %b %Y %T\n"), + localtime((time_t *)&status.time)); + strcat(summary_string,buff); + + switch (status.zoom){ + case DC210_ZOOM_58: + snprintf(buff, 1024, _("Zoom: 58 mm\n")); break; + case DC210_ZOOM_51: + snprintf(buff, 1024, _("Zoom: 51 mm\n")); break; + case DC210_ZOOM_41: + snprintf(buff, 1024, _("Zoom: 41 mm\n")); break; + case DC210_ZOOM_34: + snprintf(buff, 1024, _("Zoom: 34 mm\n")); break; + case DC210_ZOOM_29: + snprintf(buff, 1024, _("Zoom: 29 mm\n")); break; + case DC210_ZOOM_MACRO: + snprintf(buff, 1024, _("Zoom: macro\n")); break; + default: + snprintf(buff, 1024, _("Unknown zoom mode %d\n"), + status.zoom); break; + }; + strcat(summary_string,buff); + + if (status.exp_compensation > -5 && status.exp_compensation < 4) + snprintf(buff, 1024, _("Exposure compensation: %s\n"), exp_comp[status.exp_compensation + 4]); + else + snprintf(buff, 1024, _("Exposure compensation: %d\n"), status.exp_compensation); + strcat(summary_string,buff); + + switch (status.flash){ + case DC210_FLASH_AUTO: + snprintf(buff, 1024, _("Flash mode: auto, ")); break; + case DC210_FLASH_FORCE: + snprintf(buff, 1024, _("Flash mode: force, ")); break; + case DC210_FLASH_NONE: + snprintf(buff, 1024, _("Flash mode: off\n")); break; + default: + snprintf(buff, 1024, _("Unknown flash mode %d, "), + status.flash); break; + }; + strcat(summary_string,buff); + + if (status.flash != DC210_FLASH_NONE){ + if (status.preflash) + /* trans: continuation of "Flash mode:" line */ + snprintf(buff,1024,_("red eye flash on.\n")); + else + /* trans: continuation of "Flash mode:" line */ + snprintf(buff,1024,_("red eye flash off.\n")); + strcat(summary_string,buff); + }; + + if (status.card_status.open == 0) + snprintf(buff, 1024, _("No card in camera.\n")); + else + snprintf(buff,1024, _("Card name: %s\nFree space on card: %d kB\n"), + status.album_name, + status.card_status.space); + + strcat(summary_string,buff); + + } + else{ + DC210_DEBUG("Couldn't get summary for camera\n"); + }; + + strcpy(summary->text, summary_string); + + return (GP_OK); +} + + +static int camera_manual (Camera *camera, CameraText *manual, + GPContext *context) +{ + strcpy (manual->text, _("This library has been tested with a Kodak DC 215 Zoom camera. " + "It might work also with DC 200 and DC 210 cameras. " + "If you happen to have such a camera, please send a " + "message to koltan@gmx.de to let me know, if you have any " + "troubles with this driver library or if everything is okay.")); + + return (GP_OK); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy(about->text, + _("Camera Library for the Kodak DC215 Zoom camera.\n" + "Michael Koltan \n")); + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func, + .del_file_func = delete_file_func, +}; + +int camera_init (Camera *camera, GPContext *context) { + + DC210_DEBUG("Initialising camera.\n"); + + /* First, set up all the function pointers */ + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + camera->functions->capture = camera_capture; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + if (dc210_init_port (camera) == GP_ERROR) return GP_ERROR; + if (dc210_open_card (camera) == GP_ERROR) return GP_ERROR; + + return (GP_OK); +} +/****************************************************************************/ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/dc210.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/dc210.h new file mode 100644 index 00000000..57340e13 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/dc210.h @@ -0,0 +1,239 @@ +/* dc210.h + * + * Copyright (C) 2002 Michel Koltan + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef _DC210_H_ +#define _DC210_H_ + +typedef enum { + DC210_TOGGLE_OFF = 0, + DC210_TOGGLE_ON = 1 +} dc210_toggle_type; + +typedef enum { + DC210_FULL_PICTURE = 0, + DC210_CFA_THUMB = 1, + DC210_RGB_THUMB = 2 +} dc210_picture_type; + +typedef enum { + DC210_FILE_TYPE_JPEG = 3, + DC210_FILE_TYPE_FPX = 4 +} dc210_file_type_type; + +typedef enum { + DC210_FLASH_AUTO = 0, + DC210_FLASH_FORCE = 1, + DC210_FLASH_NONE = 2 +} dc210_flash_type; + +typedef enum { + DC210_FILE_640 = 0, + DC210_FILE_1152 = 1 +} dc210_resolution_type; + +typedef enum { + DC210_LOW_COMPRESSION = 1, + DC210_MEDIUM_COMPRESSION = 2, + DC210_HIGH_COMPRESSION = 3 + +} dc210_compression_type; + +typedef enum { + DC210_ZOOM_58 = 0, + DC210_ZOOM_51 = 1, + DC210_ZOOM_41 = 2, + DC210_ZOOM_34 = 3, + DC210_ZOOM_29 = 4, + DC210_ZOOM_MACRO = 37 +} dc210_zoom_type; + +typedef struct { + + unsigned char open; + int program; + int space; + +} dc210_card_status; + +typedef struct { + char camera_type_id; + char firmwareMajor; + char firmwareMinor; + char battery; + char acstatus; + long int time; + dc210_zoom_type zoom; + char flash_charged; + dc210_compression_type compression_type; + signed char exp_compensation; + dc210_flash_type flash; + char preflash; + dc210_resolution_type resolution; + dc210_file_type_type file_type; + int totalPicturesTaken; + int totalFlashesFired; + int numPicturesInCamera; + dc210_card_status card_status; + int remainingLow; + int remainingMedium; + int remainingHigh; + int card_space; + char album_name[12]; +} dc210_status; + +typedef struct { + char camera_type; + dc210_file_type_type file_type; + dc210_resolution_type resolution; + dc210_compression_type compression; + int picture_number; + int picture_size; + int preview_size; + int picture_time; + char flash_used; + dc210_flash_type flash; + char preflash; + dc210_zoom_type zoom; + char f_number; + char battery; + int exposure_time; + char image_name[13]; +} dc210_picture_info ; + +#undef DEBUG +#define TIMEOUT 500 +#define RETRIES 5 +#define GP_MODULE "kodak-dc210" + +#ifdef DEBUG +#define DC210_DEBUG(msg, params...) fprintf(stderr, msg, ##params) +#else +#define DC210_DEBUG GP_DEBUG +#endif + +/* I really don't get it, why I have a shift of seven hours in + each direction to get/set the camara time correctly. I'm afraid + it's dependent on the timezone (and an outdated clib)*/ + +/* #define CAMERA_EPOC 852094800*/ +#define CAMERA_GET_EPOC 852094800 - 25200 +#define CAMERA_SET_EPOC 852094800 + 25200 + +/* Packet sizes */ +#define DC210_CMD_DATA_SIZE 58 +#define DC210_STATUS_SIZE 256 +#define DC210_PICINFO_SIZE 256 +#define DC210_CARD_BLOCK_SIZE 512 +#define DC210_DIRLIST_SIZE 256 +#define DC210_DOWNLOAD_BLOCKSIZE 1024 + +/* Commands */ +#define DC210_SET_RESOLUTION 0x36 /* implemented */ +#define DC210_SET_FILE_TYPE 0x37 /* implemented */ +#define DC210_SET_SPEED 0x41 /* implemented */ +#define DC210_GET_ALBUM_FILENAMES 0x4A /* returns information on all files in packets of size 256 */ +#define DC210_GET_PICTURE 0x64 /* implemented */ +#define DC210_GET_PICINFO 0x65 /* implemented */ +#define DC210_GET_THUMB 0x66 /* implemented */ +#define DC210_SET_QUALITY 0x71 /* implemented */ +#define DC210_SET_FLASH 0x72 /* implemented */ +#define DC210_SET_FOCUS 0x73 /* not acknowledged */ +#define DC210_SET_DELAY 0x74 /* implemented, but effect unknown */ +#define DC210_SET_TIME 0x75 /* implemented, but probably with timezone bug */ +#define DC210_SET_ZOOM 0x78 /* implemented */ +#define DC210_DELETE_PICTURE 0x7B /* implemented */ +#define DC210_TAKE_PICTURE 0x7C /* implemented */ +#define DC210_CHECK_BATTERY 0x7E /* implemented */ +#define DC210_GET_STATUS 0x7F /* implemented */ + +#define DC210_SET_EXPOSURE 0x80 /* implemented */ +#define DC210_RESET 0x8A /* working, but not yet implemented */ +#define DC210_FIRMWARE_MODE_SET 0x8D /* working, but not yet implemented */ + +/* Filename commands */ +#define DC210_CARD_GET_PICINFO 0x91 /* implemented */ +#define DC210_CARD_GET_SUMMARY 0x92 /* not implemented */ +#define DC210_CARD_READ_THUMB 0x93 /* implemented */ +#define DC210_CARD_FORMAT 0x95 /* implemented */ +#define DC210_OPEN_CARD 0x96 /* implemented */ +#define DC210_CLOSE_CARD 0x97 /* implemented */ +#define DC210_CARD_STATUS 0x98 /* is working, returns packet of size 16 */ +#define DC210_CARD_GET_DIRECTORY 0x99 /* not implemented */ +#define DC210_CARD_READ_FILE 0x9A /* implemented */ +#define DC210_CARD_UNKNOWN_COMMAND1 0x9C /* not implemented */ +#define DC210_CARD_FILE_DEL 0x9D /* implemented */ +#define DC210_CARD_UNKNOWN_COMMAND2 0x9E /* not implemented */ + +/* Responses */ +#define DC210_COMMAND_COMPLETE 0x00 +#define DC210_PACKET_FOLLOWING 0x01 +#define DC210_CMD_PACKET_FOLLOWING 0x80 +#define DC210_CAMERA_READY 0x08 +#define DC210_COMMAND_ACK 0xD1 +#define DC210_CORRECT_PACKET 0xD2 +#define DC210_COMMAND_NAK 0xE1 +#define DC210_EXECUTION_ERROR 0xE2 +#define DC210_ILLEGAL_PACKET 0xE3 +#define DC210_CANCEL 0xE4 +#define DC210_BUSY 0xF0 + +/* initialization */ +int dc210_init_port (Camera *camera); + +/* set procedures */ +int dc210_set_compression (Camera * camera, dc210_compression_type compression); +int dc210_set_flash (Camera * camera, dc210_flash_type flash, char preflash); +int dc210_set_zoom (Camera * camera, dc210_zoom_type zoom); +int dc210_set_file_type (Camera * camera, dc210_file_type_type file_type); +int dc210_set_resolution (Camera * camera, dc210_resolution_type res); +int dc210_set_speed (Camera *camera, int speed); +int dc210_set_delay (Camera * camera); +int dc210_set_exp_compensation (Camera * camera, signed int compensation); + +/* information */ +int dc210_get_status (Camera *camera, dc210_status *status); +int dc210_get_picture_info (Camera *camera, dc210_picture_info *picinfo, unsigned int picno); +int dc210_get_picture_info_by_name (Camera *camera, dc210_picture_info *picinfo, const char * filename); +int dc210_get_filenames (Camera *camera, CameraList *list, GPContext *context); +int dc210_get_picture_number (Camera *camera, const char * filename); + +/* picture actions */ +int dc210_take_picture (Camera * camera, GPContext *context); +int dc210_capture (Camera *camera, CameraFilePath *path, GPContext *context); + +int dc210_download_last_picture (Camera * camera, CameraFile *file, dc210_picture_type type, GPContext *context); +int dc210_download_picture_by_name (Camera * camera, CameraFile *file, const char *filename, dc210_picture_type type, GPContext *context); + +int dc210_delete_picture (Camera * camera, unsigned int picno); +int dc210_delete_last_picture (Camera * camera ); +int dc210_delete_picture_by_name (Camera * camera, const char * filename ); + +/* other actions */ +int dc210_open_card (Camera * camera); + +/* callbacks */ +int dc210_system_time_callback (Camera * camera, CameraWidget * widget, GPContext * context); +int dc210_format_callback(Camera * camera, CameraWidget * widget, GPContext * context); +#ifdef DEBUG +int dc210_debug_callback(Camera * camera, CameraWidget * widget, GPContext * context); +#endif + +#endif /* _DC210_H_ */ + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/library.c new file mode 100644 index 00000000..99ca4369 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/library.c @@ -0,0 +1,1404 @@ +/* library.c + * + * Copyright (C) 2002 Michel Koltan + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include +#include + +#include "dc210.h" +#include "library.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +static int dc210_cmd_error = 0; +static const char ppmheader[] = "P6\n96 72\n255\n"; + +#ifdef DEBUG +static int firststatus = 1; +static char oldstatus[DC210_STATUS_SIZE]; +#endif + +/*************************************************************************** + + Global in- and output procedures + +****************************************************************************/ + +static void cfa2ppm +(CameraFile * file) +{ + /* this is a very quick and dirty hack to convert cfa into ppm */ + unsigned char buf[THUMBHEIGHT][THUMBWIDTH]; + unsigned char rgb[THUMBHEIGHT][THUMBWIDTH][3]; + unsigned char val; + unsigned int addval; + const char * data; + unsigned long datasize; + int i, x, y; + + /* get data */ + + DC210_DEBUG("Converting CFA to PPM\n"); + + gp_file_get_data_and_size(file, &data, &datasize); + + /* split 8 bit values into to 4 bit values and blow up again to 8 bit*/ + + i = 0; + for(y = 0; y < THUMBHEIGHT; y++ ) + for(x = 0; x < THUMBWIDTH; x+=2 ){ + val = (unsigned char) data[i] >> 4; + buf[y][x] = (val << 4) | val; + val = (unsigned char) data[i++] & 0x0F; + buf[y][x+1] = (val << 4) | val; + }; + + /* fill in the exact values */ + for( y = 0; y < THUMBHEIGHT; y += 2 ) + for( x = 0; x < THUMBWIDTH; x += 2 ) + { + rgb[y][x][GREEN] = buf[y][x]; + rgb[y][x+1][GREEN] = buf[y][x]; + rgb[y+1][x][GREEN] = buf[y+1][x+1]; + rgb[y+1][x+1][GREEN] = buf[y+1][x+1]; + rgb[y][x][RED] = buf[y][x+1]; + rgb[y][x+1][RED] = buf[y][x+1]; + rgb[y+1][x][RED] = buf[y][x+1]; + rgb[y+1][x+1][RED] = buf[y][x+1]; + rgb[y][x][BLUE] = buf[y+1][x]; + rgb[y][x+1][BLUE] = buf[y+1][x]; + rgb[y+1][x][BLUE] = buf[y+1][x]; + rgb[y+1][x+1][BLUE] = buf[y+1][x]; + }; + + /* fill in the interpolated values, don't care about borders */ + for ( y = 1; y < THUMBHEIGHT - 2; y+= 2) + for ( x = 0; x < THUMBWIDTH - 2; x +=2){ + /* 2 missing green values */ + addval = rgb[y][x][GREEN] + rgb[y][x+2][GREEN] + + rgb[y-1][x+1][GREEN] + rgb[y+1][x+1][GREEN]; + rgb[y][x+1][GREEN] = addval / 4; + + addval = rgb[y+1][x-1][GREEN] + rgb[y+1][x+1][GREEN] + + rgb[y][x][GREEN] + rgb[y+2][x][GREEN]; + rgb[y+1][x][GREEN] = addval / 4; + + /* 3 missing red values */ + addval = rgb[y-1][x][RED] + rgb[y+1][x][RED]; + rgb[y][x][RED] = addval / 2; + + addval = rgb[y-1][x][RED] + rgb[y-1][x+2][RED] + + rgb[y+1][x][RED] + rgb[y+1][x+2][RED]; + rgb[y][x+1][RED] = addval / 4; + + addval = rgb[y+1][x][RED] + rgb[y+1][x+2][RED]; + rgb[y+1][x+1][RED] = addval / 2; + + /* 3 missing blue values */ + addval = rgb[y][x-1][BLUE] + rgb[y][x+1][BLUE]; + rgb[y][x][BLUE] = addval / 2; + + addval = rgb[y][x-1][BLUE] + rgb[y][x+1][BLUE] + + rgb[y+2][x-1][BLUE] + rgb[y+2][x+1][BLUE]; + rgb[y+1][x][BLUE] = addval / 4; + + addval = rgb[y][x+1][BLUE] + rgb[y+2][x+1][BLUE]; + rgb[y+1][x+1][BLUE] = addval / 2; + }; + + gp_file_clean(file); + gp_file_append(file, ppmheader, sizeof(ppmheader) - 1); + gp_file_append(file, (char *) rgb, THUMBWIDTH * THUMBHEIGHT * 3); + gp_file_set_mime_type(file, GP_MIME_PPM); + +}; + +/* Utility procedures for command execution */ + +static void dc210_cmd_init +(char * cmd, unsigned char command_byte) +{ + /* utility procedure to initalize a command string */ + + memset (cmd, 0, 8); + + cmd[0] = command_byte; + cmd[7] = 0x1a; + +}; + +static void dc210_cmd_packet_init +(char * cmd_packet, const char * filename) +{ + /* prepare command packet */ + memset (cmd_packet, 0x00, DC210_CMD_DATA_SIZE); + memset (cmd_packet + 48, 0xFF, 8); + strcpy(cmd_packet, "\\PCCARD\\DCIMAGES\\"); + strcpy(cmd_packet + 17, filename); + + DC210_DEBUG("Complete filename is %s\n", cmd_packet); + +}; + +static int dc210_write_single_char +(Camera *camera, unsigned char response) +{ + /* utility procedure to write a single character */ + + int i; + + for (i=0; i< RETRIES; i++){ + if (gp_port_write(camera->port, (char *)&response, 1) >= 0) + return (GP_OK); + }; + + return GP_ERROR; + +}; + +static int dc210_read_single_char +(Camera *camera, unsigned char * response) +{ + + /* utility procedure to read a single character */ + + int i; + signed char error; + + for (i = 0; i < RETRIES; i++){ + + error = gp_port_read(camera->port, (char *)response, 1); + + if (error < 0){ + if (error == GP_ERROR_TIMEOUT) + continue; + else{ + DC210_DEBUG("Real bad error reading single character. Errornumber: %d\n", error); + return GP_ERROR; + }; + }; + + return GP_OK; + + }; + + return GP_ERROR_TIMEOUT; + +}; + +/* Command execution */ + +static int dc210_execute_command +(Camera *camera, char *cmd) +{ + + /* This procedure sends a command to the camera and + waits for acknowledgement. Calling procedures have + to check the returncode; if the command succeeded + there are three possible follow ups: + - Read a DC210_COMMAND_COMPLETE in case of + simple commands + - Send an additional command package in case of + sophisticated commands + - Read data from the camera + But all this depends on the command and should not + be mixed in this procedure. */ + + int i,k ; + unsigned char response; + signed char error; + + dc210_cmd_error = DC210_CMD_OKAY; + + for (i = 0; i < RETRIES; i++){ + + /* write command */ + if (gp_port_write(camera->port, cmd, 8) < 0){ + DC210_DEBUG("Could not write to port.\n"); + dc210_cmd_error = DC210_WRITE_ERROR; + continue; /* try again */ + }; + + for (k = 0; k < RETRIES; k++){ + error = gp_port_read(camera->port, (char *)&response, 1); + if (error != 1){ + if (error == GP_ERROR_TIMEOUT){ + dc210_cmd_error = DC210_TIMEOUT_ERROR; + continue; /* wait a little bit longer */ + } + else{ + DC210_DEBUG("Real bad error reading answer. Errornumber: %d\n", error); + dc210_cmd_error = DC210_READ_ERROR; + return error; + }; + }; + + switch (response){ + case DC210_COMMAND_ACK: + DC210_DEBUG("Command 0x%02X acknowledged.\n", (unsigned char) cmd[0]); + return GP_OK; break; /* that's fine, just what we expected */ + case DC210_COMMAND_NAK: + DC210_DEBUG("Sorry, but the camera seems not to understand the command 0x%02X\n", (unsigned char) cmd[0]); + dc210_cmd_error = DC210_NAK_ERROR; + break; /* anyway, send the command again */ + default: + DC210_DEBUG("Strange. Unexpected response for command 0x%02X: 0x%02X\n", (unsigned char) cmd[0], response); + dc210_cmd_error = DC210_GARBAGE_ERROR; + return GP_ERROR; + break; + }; + break; + }; + + }; + + /* command does definitely not work */ + + DC210_DEBUG("Command definitely didn't work.\n"); + + return GP_ERROR; + +}; + +/* appropriate actions to a command */ + +static int dc210_write_command_packet +(Camera * camera, char * data) +{ + + unsigned char checksum; + int i, error; + unsigned char answer; + + /* calculating checksum */ + checksum = 0; + for (i = 0; i < DC210_CMD_DATA_SIZE; i ++){ + checksum ^= data[i]; + }; + + for (i = 0; i < RETRIES; i++){ + + /* write the startbyte */ + dc210_write_single_char(camera, DC210_CMD_PACKET_FOLLOWING); + + /* write packet */ + gp_port_write(camera->port, data, DC210_CMD_DATA_SIZE); + + /* write checksum */ + dc210_write_single_char(camera, checksum); + + /* read answer */ + + error = gp_port_read(camera->port, (char *)&answer, 1); + + if (error < 0) return GP_ERROR; + + if (answer == DC210_CORRECT_PACKET) return GP_OK; + + if (answer != DC210_ILLEGAL_PACKET) { + DC210_DEBUG("Strange answer to command packet: 0x%02X.\n", answer); + return GP_ERROR; + }; + + }; + + DC210_DEBUG("Could not send command packet.\n"); + + return GP_ERROR; + +}; + +static int dc210_wait_for_response +(Camera *camera, int expect_busy, GPContext *context) +{ + /* Waits for a command to finish. + Expects either a timeout, a DC210_BUSY, + a DC210_COMMAND_COMPLETE or a + DC210_PACKET_FOLLOWING; all other answers + are considered errors */ + + unsigned char response; + int error = 0; + int counter = 0; + int progress_id = 0; + + if (context) + progress_id = gp_context_progress_start (context, expect_busy, _("Waiting...")); + + while (1){ + + error = dc210_read_single_char(camera, &response); + if (error < 0){ + if (context) + gp_context_progress_stop (context, progress_id); + return error; + }; + + switch (response){ + case DC210_BUSY: + /* wait a little bit longer */ + if (context && counter <= expect_busy) + gp_context_progress_update (context, progress_id, counter++); + break; + case DC210_COMMAND_COMPLETE: + case DC210_PACKET_FOLLOWING: + if (context) + gp_context_progress_stop (context, progress_id); + return response; + break; + default: + if (context) + gp_context_progress_stop (context, progress_id); + DC210_DEBUG("Command terminated with errorcode 0x%02X.\n", response); + return GP_ERROR; + }; + }; + +}; + +static int dc210_read_single_block +(Camera *camera, unsigned char * b, int blocksize) +{ + + int i, k, error; + char cs_read, cs_computed; + + for (i = 0; i < RETRIES; i++){ + + if (dc210_wait_for_response(camera, 0, NULL) != DC210_PACKET_FOLLOWING) + return GP_ERROR; + + error = 1; + for (k = 0; k < RETRIES; k++){ + if (gp_port_read(camera->port, (char *)b, blocksize) < 0){ + continue; + }; + error = 0; + break; + }; + + if (error) return GP_ERROR; + + if (dc210_read_single_char(camera, (unsigned char *)&cs_read) < 0) + return GP_ERROR; + + cs_computed = 0; + for (k = 0 ; k < blocksize; k++) + cs_computed ^= b[k]; + if (cs_computed == cs_read){ + dc210_write_single_char(camera, DC210_CORRECT_PACKET); + return GP_OK; + }; + + dc210_write_single_char(camera, DC210_ILLEGAL_PACKET); + + }; + + return GP_ERROR; + +}; + +static int dc210_read_to_file +(Camera *camera, CameraFile * f, int blocksize, long int expectsize, GPContext *context) +{ + + int packets, k, l, fatal_error, packet_following; + unsigned int progress_id = 0; + unsigned char cs_read, cs_computed; + unsigned char * b; + + int blocks = expectsize / blocksize; + int remaining = expectsize % blocksize; + + if (NULL == (b = malloc(blocksize))) return GP_ERROR; + + if (remaining) blocks++; + + if (context) + progress_id = gp_context_progress_start (context, blocks, _("Getting data...")); + + fatal_error = 0; + packets = 0; + + packet_following = dc210_wait_for_response(camera, 0, NULL); + while (DC210_PACKET_FOLLOWING == packet_following){ + fatal_error = 1; + for (k = 0; k < RETRIES; k++){ + /* read packet */ + if (gp_port_read(camera->port, (char *)b, blocksize) < 0){ + dc210_write_single_char(camera, DC210_ILLEGAL_PACKET); + packet_following = dc210_wait_for_response(camera, 0, NULL); + continue; + }; + /* read checksum */ + if (dc210_read_single_char(camera, &cs_read) == GP_ERROR){ + free(b); + return GP_ERROR; + }; + /* test checksum */ + cs_computed = 0; + for (l = 0 ; l < blocksize; l++) + cs_computed ^= b[l]; + if (cs_computed != cs_read){ + dc210_write_single_char(camera, DC210_ILLEGAL_PACKET); + packet_following = dc210_wait_for_response(camera, 0, NULL); + continue; + }; + /* append to file */ + if (packets == blocks - 1 && remaining) + gp_file_append(f, (char *)b, remaining); + else + gp_file_append(f, (char *)b, blocksize); + /* request next packet */ + dc210_write_single_char(camera, DC210_CORRECT_PACKET); + packet_following = dc210_wait_for_response(camera, 0, NULL); + fatal_error = 0; + if (context) + gp_context_progress_update (context, progress_id, packets); + packets++; + break; + }; + if (fatal_error) break; + }; + + if (packet_following < 0) + fatal_error = 1; + + if (context) + gp_context_progress_stop (context, progress_id); + + free(b); + + if (fatal_error) return GP_ERROR; + + return GP_OK; + +}; + +/*************************************************************************** + + Working procedures + +****************************************************************************/ + +/***** Set procedures *****/ + +static int dc210_set_option (Camera * camera, char command, unsigned int value, int valuesize){ + + char cmd[8]; + dc210_cmd_init(cmd, command); + + switch(valuesize){ + case 0: + break; + case 1: + cmd[2] = value & 0xFF; + break; + case 2: + cmd[3] = value & 0xFF; + cmd[2] = (value >> 8) & 0xFF; + break; + case 4: + cmd[5] = value & 0xFF; + cmd[4] = (value >> 8) & 0xFF; + cmd[3] = (value >> 16) & 0xFF; + cmd[2] = (value >> 24) & 0xFF; + break; + default: + return GP_ERROR; + }; + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + + return GP_OK; + +}; + +int dc210_set_compression (Camera * camera, dc210_compression_type compression){ + + return dc210_set_option(camera, DC210_SET_QUALITY, compression, 1); + +}; + +int dc210_set_flash (Camera * camera, dc210_flash_type flash, char preflash){ + + if (flash != DC210_FLASH_NONE && preflash){ + return dc210_set_option(camera, DC210_SET_FLASH, flash + 3, 1); + } + else + return dc210_set_option(camera, DC210_SET_FLASH, flash, 1); + +}; + +int dc210_set_zoom (Camera * camera, dc210_zoom_type zoom){ + + return dc210_set_option(camera, DC210_SET_ZOOM, zoom, 1); + +}; + +int dc210_set_file_type (Camera * camera, dc210_file_type_type file_type){ + + return dc210_set_option(camera, DC210_SET_FILE_TYPE, file_type, 1); + +}; + +int dc210_set_resolution (Camera * camera, dc210_resolution_type res){ + + return dc210_set_option(camera, DC210_SET_RESOLUTION, res, 1); + +}; + +int dc210_set_delay (Camera * camera){ + + /* This function works, but I do no have the slightest idea, + what the effect is / should be. + There is *no* delay, when you execute this function before + capturing. */ + + return dc210_set_option(camera, DC210_SET_DELAY, 10, 4); + +}; + +int dc210_set_exp_compensation (Camera * camera, signed int compensation){ + + unsigned char param = abs(compensation); + + if (compensation < 0) param |= 0x80; + + return dc210_set_option(camera, DC210_SET_EXPOSURE, param, 1); + +}; + +int dc210_system_time_callback (Camera * camera, CameraWidget * widget, GPContext * context){ + + return dc210_set_option(camera, DC210_SET_TIME, (time(NULL) - CAMERA_SET_EPOC) << 1, 4); + +}; + +static int dc210_format_card (Camera * camera, char * album_name, GPContext * context){ + + char data[DC210_CMD_DATA_SIZE]; + char cmd[8]; + char * subst; + unsigned char answer[16]; + unsigned char checksum_read, checksum; + int i; + + memset (data, 0, DC210_CMD_DATA_SIZE); + + /* Make the album name acceptable - we need at least 8 characters + which are not blank and there are no blanks allowed before the + last character. + */ + if (album_name != NULL && strlen(album_name) > 0){ + strncpy(data, album_name, 11); + /* substitute blanks in the first 8 characters*/ + while (NULL != (subst = strchr(data, ' '))) *subst = '_'; + if (strlen(data) < 8) strncat(data, "________", 8 - strlen(data)); + }; + + DC210_DEBUG("Album name is '%s'\n", data); + + dc210_cmd_init(cmd, DC210_CARD_FORMAT); + + dc210_execute_command(camera, cmd); + dc210_write_command_packet(camera, data); + if (dc210_wait_for_response(camera, 3, context) != DC210_PACKET_FOLLOWING) return GP_ERROR; + + gp_port_read(camera->port, (char *)answer, 16); + gp_port_read(camera->port, (char *)&checksum_read, 1); + checksum = 0; + + for (i = 0; i < 16; i++) checksum ^= answer[i]; + if (checksum_read != checksum) return GP_ERROR; + + DC210_DEBUG("Flash card formatted.\n"); + + if (dc210_write_single_char(camera, DC210_CORRECT_PACKET) == GP_ERROR) return GP_ERROR; + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + + gp_filesystem_reset(camera->fs); + + return GP_OK; + +}; + +static int dc210_get_card_status (Camera * camera, dc210_card_status * card_status){ + + char cmd[8]; + unsigned char answer[16]; + unsigned char checksum_read, checksum; + int i; + + card_status->open = 0; + card_status->program = 0; + card_status->space = 0; + + dc210_cmd_init(cmd, DC210_CARD_STATUS); + dc210_execute_command(camera, cmd); + if (dc210_wait_for_response(camera, 0, NULL) != DC210_PACKET_FOLLOWING) return GP_ERROR; + + gp_port_read(camera->port, (char *)answer, 16); + gp_port_read(camera->port, (char *)&checksum_read, 1); + + checksum = 0; + for (i = 0; i < 16; i++) checksum ^= answer[i]; + + if (checksum_read != checksum) + DC210_DEBUG("Error reading card status.\n"); + else + DC210_DEBUG("Card status correctly read.\n"); + + if (answer[0] & 0x08) card_status->open = 1; + DC210_DEBUG("Card status open is %d\n", card_status->open); + card_status->program = answer[1] * 0x100 + answer[2]; + /* set the space in kb */ + card_status->space = (answer[3] * 0x1000000 + answer[4] * 0x10000 + answer[5] * 0x100 + answer[6]) / 1024; + + if (dc210_write_single_char(camera, DC210_CORRECT_PACKET) == GP_ERROR) return GP_ERROR; + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + + return GP_OK; + +}; + +int dc210_format_callback(Camera * camera, CameraWidget * widget, GPContext * context){ + + CameraWidget * window; + char * album_name; + + gp_widget_get_root(widget, &window); + + gp_widget_get_child_by_label (window, _("Album name"), &widget); + gp_widget_get_value (widget, &album_name); + + return dc210_format_card(camera, album_name, context); + +}; + +static int dc210_check_battery (Camera *camera){ + + char cmd[8]; + dc210_cmd_init(cmd, DC210_CHECK_BATTERY); + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + + return GP_OK; + +}; + +int dc210_init_port (Camera *camera){ + + /* sending a break command resets the + speed to 9600 */ + int camera_speeds[] = {115200, 19200, 38400, 57600}; + int i, desired_speed; + GPPortSettings settings; + + gp_port_get_settings (camera->port, &settings); + gp_port_set_timeout (camera->port, TIMEOUT); + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + + desired_speed = settings.serial.speed; + if (! desired_speed) desired_speed = 115200; + + DC210_DEBUG("Desired port speed is %d.\n", desired_speed); + + /* only set the speed if nothing was specified on the command line */ + if (! settings.serial.speed) settings.serial.speed = 9600; + gp_port_set_settings (camera->port, settings); + + /* ok, run a dummy command; if the camera was off, + this will activate it and set the speed to 9600; + but the command will return an error; + It makes no sense to shorten the timout time, + because the camera may need up to 10 seconds (information + of the manual) to startup */ + if (dc210_check_battery(camera) == GP_OK) return GP_OK; + + /* Fine, the last command didn't work, but we are now + sure, the camera is working, if it is connected + and has enough power. + This is the time to send a break to reset the speed + to 9600 */ + + gp_camera_set_port_speed(camera, 9600); + gp_port_send_break(camera->port, 300); + usleep(300 * 1000); + + /* Excellent. Now our dummy command should work */ + + if (dc210_check_battery(camera) == GP_OK){ + return dc210_set_speed(camera, desired_speed); + }; + + /* My, my, this is not nice. We change the timeout + and try other speeds as last resort */ + + gp_port_set_timeout (camera->port, 100); + + for (i = 0; i < 4; i++){ + settings.serial.speed = camera_speeds[i]; + gp_port_set_settings (camera->port, settings); + + if (dc210_check_battery(camera) == GP_OK){ + gp_port_set_timeout (camera->port, TIMEOUT); + return dc210_set_speed(camera, desired_speed); + }; + + DC210_DEBUG("What a pity. Speed %d does not work.\n", camera_speeds[i]); + }; + + /* reset the timeout */ + gp_port_set_timeout (camera->port, TIMEOUT); + + return GP_ERROR; + +}; + +int dc210_set_speed (Camera *camera, int speed) { + + unsigned char cmd[8]; + GPPortSettings settings; + + dc210_cmd_init((char*)cmd, DC210_SET_SPEED); + + switch (speed) { + case 9600: + cmd[2] = 0x96; cmd[3] = 0x00; break; + case 19200: + cmd[2] = 0x19; cmd[3] = 0x20; break; + case 38400: + cmd[2] = 0x38; cmd[3] = 0x40; break; + case 57600: + cmd[2] = 0x57; cmd[3] = 0x60; break; + case 115200: + cmd[2] = 0x11; cmd[3] = 0x52; break; + default: + return (GP_ERROR); + }; + + if (dc210_execute_command(camera, (char*)cmd) == GP_ERROR) return GP_ERROR; + + gp_port_get_settings (camera->port, &settings); + settings.serial.speed = speed; + gp_port_set_settings (camera->port, settings); + + DC210_DEBUG("Port speed set to %d.\n", speed); + + return GP_OK; + +}; + +/****** Picture actions *****/ + +int dc210_take_picture +(Camera * camera, GPContext * context) +{ + char cmd[8]; + dc210_cmd_init(cmd, DC210_TAKE_PICTURE); + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + switch (dc210_wait_for_response(camera, 5, context)){ + /* we allow a timeout error here and check the result via status */ + case DC210_COMMAND_COMPLETE: + case GP_ERROR_TIMEOUT: return GP_OK; break; + default: return GP_ERROR; break; + }; + + return GP_ERROR; + +}; + +int dc210_delete_picture +(Camera * camera, unsigned int picno) +{ + + char cmd[8]; + unsigned int pic_offset = picno - 1; + + dc210_cmd_init(cmd, DC210_DELETE_PICTURE); + cmd[3] = pic_offset & 0xFF; + cmd[2] = (pic_offset >> 8) & 0xFF; + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + + return GP_OK; + +}; + +int dc210_delete_last_picture +(Camera * camera ) +{ + + dc210_status status; + + if (dc210_get_status(camera, &status) == GP_ERROR) + return GP_ERROR; + + if (0 == status.numPicturesInCamera) + return GP_ERROR; + + return dc210_delete_picture(camera, status.numPicturesInCamera); + +}; + +int dc210_delete_picture_by_name +(Camera * camera, const char * filename ) +{ + + char cmd[8]; + char cmd_packet[DC210_CMD_DATA_SIZE]; + + dc210_cmd_init(cmd, DC210_CARD_FILE_DEL); + dc210_cmd_packet_init(cmd_packet, filename); + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + if (dc210_write_command_packet(camera, cmd_packet) == GP_ERROR) return GP_ERROR; + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + + return GP_OK; + +}; + +int dc210_download_last_picture +(Camera * camera, CameraFile *file, dc210_picture_type type, GPContext *context) +{ + + dc210_status status; + dc210_picture_info picinfo; + + if (dc210_get_status(camera, &status) == GP_ERROR) return GP_ERROR; + if (status.numPicturesInCamera == 0) return GP_ERROR; + + if (dc210_get_picture_info(camera, &picinfo, status.numPicturesInCamera) == GP_ERROR) + return GP_ERROR; + + if (dc210_get_picture_info(camera, &picinfo, status.numPicturesInCamera) == GP_ERROR) + return GP_ERROR; + + return dc210_download_picture_by_name(camera, file, picinfo.image_name, type, context); + +}; + +int dc210_open_card +(Camera * camera) +{ + + char cmd[8]; + dc210_card_status card_status; + + /* check if card is already opened */ + dc210_get_card_status(camera, &card_status); + if (card_status.open) return GP_OK; + + dc210_cmd_init(cmd, DC210_OPEN_CARD); + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + + return GP_OK; +}; + +#if 0 /* This function is not used by anybody */ +static int dc210_close_card +(Camera * camera) +{ + + char cmd[8]; + dc210_cmd_init(cmd, DC210_CLOSE_CARD); + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + + return GP_OK; +}; +#endif + +int dc210_download_picture_by_name +(Camera * camera, CameraFile *file, const char *filename, dc210_picture_type type, GPContext *context) +{ + + char cmd[8]; + char cmd_packet[DC210_CMD_DATA_SIZE]; + dc210_picture_info picinfo; + + /* prepare command */ + if (type == DC210_FULL_PICTURE){ + /* we need the file size for the progress bar */ + if (dc210_get_picture_info_by_name(camera, &picinfo, filename) == GP_ERROR) + return GP_ERROR; + DC210_DEBUG("Picture size is %d\n", picinfo.picture_size); + dc210_cmd_init(cmd, DC210_CARD_READ_FILE); + } + else + dc210_cmd_init(cmd, DC210_CARD_READ_THUMB); + + if (type == DC210_RGB_THUMB) cmd[4] = 1; + + dc210_cmd_packet_init(cmd_packet, filename); + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + if (dc210_write_command_packet(camera, cmd_packet) == GP_ERROR) return GP_ERROR; + + switch (type){ + case DC210_FULL_PICTURE: + if (picinfo.file_type == DC210_FILE_TYPE_JPEG) + gp_file_set_mime_type(file, GP_MIME_JPEG); + if (dc210_read_to_file(camera, file, + DC210_CARD_BLOCK_SIZE, + picinfo.picture_size, context) == GP_ERROR) + return GP_ERROR; + break; + case DC210_CFA_THUMB: + /* this thumb type is much faster to download, because it has just + a 6th of the size of rgb data */ + if (dc210_read_to_file(camera, file, + DC210_DOWNLOAD_BLOCKSIZE, 48 * 72, NULL) == GP_ERROR) + return GP_ERROR; + /* convert cfa data to rgb: */ + cfa2ppm(file); + break; + break; + case DC210_RGB_THUMB: + /* if you really need nice thumbs, you can use this, but I don't think it's + worth the 6 times longer download time */ + gp_file_set_mime_type(file, GP_MIME_PPM); + gp_file_append(file, ppmheader, sizeof(ppmheader) - 1); + if (dc210_read_to_file(camera, file, + DC210_DOWNLOAD_BLOCKSIZE, 96 * 72 * 3, NULL) == GP_ERROR) + return GP_ERROR; + break; + }; + + return GP_OK; +}; + +int dc210_capture (Camera *camera, CameraFilePath *path, GPContext *context) +{ + + dc210_status status; + dc210_picture_info picinfo; + int pictures_in_camera; + + /* dc210_take_picture no longer returns an error on timeout; check + the working of the command via status */ + + if (dc210_get_status(camera, &status) == GP_ERROR) return GP_ERROR; + pictures_in_camera = status.numPicturesInCamera; + + if (dc210_take_picture(camera, context) == GP_ERROR) return GP_ERROR; + + if (dc210_get_status(camera, &status) == GP_ERROR) return GP_ERROR; + if (pictures_in_camera == status.numPicturesInCamera) return GP_ERROR; + + if (dc210_get_picture_info(camera, &picinfo, status.numPicturesInCamera) == GP_ERROR) return GP_ERROR; + + strcpy(path->folder, "/"); + strcpy(path->name, picinfo.image_name); + + return GP_OK; + +}; + +/***** Retrieve information *****/ + +int dc210_get_picture_number (Camera *camera, const char * filename){ + + /* This function is terrible slow if you have a lot of pictures + in the camera; therefor it should not be used */ + + dc210_status status; + dc210_picture_info picinfo; + int i; + + if (dc210_get_status(camera, &status) == GP_ERROR) return -1; + + for (i = 1; i <= status.numPicturesInCamera; i++){ + + if (dc210_get_picture_info(camera, &picinfo, i) == GP_ERROR) return -1; + + if (strcmp(picinfo.image_name, filename) == 0){ + return i; + }; + + }; + + return -1; + +}; + +int dc210_get_filenames (Camera *camera, CameraList *list, GPContext *context) +{ + char cmd[8]; + CameraFile *file; + char filename[13]; + const char * data; + unsigned long datasize; + int pictures, i; + + gp_file_new(&file); + + dc210_cmd_init(cmd, DC210_GET_ALBUM_FILENAMES); + + dc210_execute_command(camera, cmd); + + dc210_read_to_file(camera, file, DC210_DIRLIST_SIZE, 0, NULL); + + gp_file_get_data_and_size(file, &data, &datasize); + + pictures = (unsigned char) data[0] * 0x100 + (unsigned char) data[1]; + DC210_DEBUG("There are %d pictures in the camera\n", pictures); + + filename[8] = '.'; + filename[12] = '\0'; + for (i = 0; i < pictures; i++){ + strncpy(filename, data + 2 + i*20, 8); + strncpy(filename + 9, data + 10 + i*20, 3); + DC210_DEBUG("Adding filename %s to list\n", filename); + gp_list_append(list, filename, NULL); + }; + + gp_file_free(file); + + return GP_OK; + +}; + +static void dc210_picinfo_from_block (dc210_picture_info * picinfo, unsigned char * data){ + + picinfo->camera_type = data[1]; + picinfo->file_type = data[2]; + picinfo->resolution = data[3]; + picinfo->compression = data[4]; + picinfo->picture_number = data[6] * 0x100 + data[7]; + picinfo->picture_size = data[8] * 0x1000000 + data[9] * 0x10000 + data[10] * 0x100 + data[11]; + picinfo->preview_size = 96 * 72 * 3 + sizeof(ppmheader); + picinfo->picture_time = CAMERA_GET_EPOC + ((data[12] * 0x1000000 + + data[13] * 0x10000 + + data[14] * 0x100 + + data[15]) >> 1); + picinfo->flash_used = data[16]; + picinfo->flash = data[17]; + picinfo->preflash = (data[17] > 2); + if (picinfo->preflash) picinfo->flash -= 3; + picinfo->zoom = data[21]; + picinfo->f_number = data[26]; + picinfo->battery = data[27]; + picinfo->exposure_time = data[28] * 0x1000000 + data[29] * 0x10000 + data[30] * 0x100 + data[31]; + strncpy(picinfo->image_name, (char *)&data[32], 12); + picinfo->image_name[12] = 0; + +} + +int dc210_get_picture_info (Camera *camera, dc210_picture_info *picinfo, unsigned int picno) { + + char cmd[8]; + unsigned char data[DC210_PICINFO_SIZE]; + unsigned int pic_offset = picno - 1; + + dc210_cmd_init(cmd, DC210_GET_PICINFO); + cmd[3] = pic_offset & 0xFF; + cmd[2] = (pic_offset >> 8) & 0xFF; + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + if (dc210_read_single_block(camera, data, DC210_PICINFO_SIZE) == GP_ERROR) return GP_ERROR; + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + + dc210_picinfo_from_block(picinfo, data); + + return GP_OK; + +}; + +int dc210_get_picture_info_by_name (Camera *camera, dc210_picture_info *picinfo, const char * filename) { + + char cmd[8]; + char cmd_packet[DC210_CMD_DATA_SIZE]; + unsigned char data[DC210_CARD_BLOCK_SIZE]; + + dc210_cmd_init(cmd, DC210_CARD_GET_PICINFO); + dc210_cmd_packet_init(cmd_packet, filename); + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + if (dc210_write_command_packet(camera, cmd_packet) == GP_ERROR) return GP_ERROR; + if (dc210_read_single_block(camera, data, DC210_CARD_BLOCK_SIZE) == GP_ERROR) return GP_ERROR; + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + + dc210_picinfo_from_block(picinfo, data); + + return GP_OK; + +}; + +int dc210_get_status (Camera *camera, dc210_status *status) { + +#ifdef DEBUG + int i; +#endif + + char data[DC210_STATUS_SIZE]; + char cmd[8]; + + /* you have to check the battery status explicitely + before reading the status table*/ + dc210_check_battery(camera); + + /* check the card */ + dc210_get_card_status(camera, &(status->card_status)); + + dc210_cmd_init(cmd, DC210_GET_STATUS); + + if (dc210_execute_command(camera, cmd) == GP_ERROR) return GP_ERROR; + if (dc210_read_single_block(camera, (unsigned char *)data, DC210_STATUS_SIZE) == GP_ERROR) return GP_ERROR; + if (dc210_wait_for_response(camera, 0, NULL) != DC210_COMMAND_COMPLETE) return GP_ERROR; + +#ifdef DEBUG + if (firststatus){ + firststatus = 0; + } + else{ + for (i = 0; i < DC210_STATUS_SIZE; i++){ + if (oldstatus[i] != data[i] && (i < 12 || i > 15)){ + DC210_DEBUG("Statusdata differs at offset %03d (old: 0x%02X, new: 0x%02X)\n", + i, (unsigned char) oldstatus[i], (unsigned char) data[i]); + }; + }; + }; + memcpy(oldstatus, data, DC210_STATUS_SIZE); +#endif + + status->firmwareMajor = data[2]; + status->firmwareMinor = data[3]; + status->battery = data[8]; + status->acstatus = data[9]; + + /* seconds since unix epoc */ + status->time = CAMERA_GET_EPOC + ((unsigned char) data[12] * 0x1000000 + + (unsigned char) data[13] * 0x10000 + + (unsigned char) data[14] * 0x100 + + (unsigned char) data[15]) / 2; + + status->zoom = data[16]; + status->compression_type = data[19]; + status->flash = data[20]; + status->exp_compensation = data[21] & 0x7F; + if (data[21] & 0x80) status->exp_compensation *= -1; + status->preflash = (data[20] > 2); + if (status->preflash) status->flash -= 3; + status->resolution = data[22]; + status->file_type = data[23]; + status->totalPicturesTaken = (unsigned char) data[25] * 0x100 + (unsigned char) data[26]; + status->totalFlashesFired = (unsigned char) data[27] * 0x100 + (unsigned char) data[28]; + status->numPicturesInCamera = (unsigned char) data[56] * 0x100 + (unsigned char) data[57]; + status->remainingLow = (unsigned char) data[68] * 0x100 + (unsigned char) data[69]; + status->remainingMedium = (unsigned char) data[70] * 0x100 + (unsigned char) data[71]; + status->remainingHigh = (unsigned char) data[72] * 0x100 + (unsigned char) data[73]; + strncpy(status->album_name, &data[77], 11); + status->album_name[11] = 0; + + return GP_OK; + +} + +/* Debugging stuff, not really needed in the driver */ + +#ifdef DEBUG + +static int dc210_read_dummy_packet(Camera * camera){ + + int i; + signed char error; + unsigned char answer, lastanswer, checksum; + + checksum = 0; + lastanswer = 0; + for ( i = 0; i < 2048; i++){ + + error = gp_port_read(camera->port, &answer, 1); + + if (error < 0){ + DC210_DEBUG("Packet read exhausted. Packet size: %d\n", i-1); + if (checksum == lastanswer) + DC210_DEBUG("Checksum is okay. Sending okay.\n"); + else + DC210_DEBUG("Checksum is not okay. Sending correct packet anyway.\n"); + answer = DC210_CORRECT_PACKET; + gp_port_write(camera->port, &answer, 1); + return GP_OK; + }; + DC210_DEBUG(" Byte %03d: 0x%02X", i, answer); + if (answer > 32) + DC210_DEBUG(" (%c)", answer); + DC210_DEBUG("\n"); + checksum ^= lastanswer; + lastanswer = answer; + }; + + DC210_DEBUG("Packet too long. Sending cancel.\n"); + answer = DC210_CANCEL; + gp_port_write(camera->port, &answer, 1); + + return GP_OK; + +}; + +static int dc210_test_command +(Camera * camera, unsigned char cmdbyte, unsigned char *databytes){ + + /* this is a debug command to test the behaviour + of certain camera commands */ + unsigned char cmd[8]; + unsigned char answer; + signed char error; + int packetcount = 0; + char dummy_cmd_packet[DC210_CMD_DATA_SIZE]; + + memset (dummy_cmd_packet, 0, DC210_CMD_DATA_SIZE); + + dc210_cmd_init(cmd, cmdbyte); + + memcpy(cmd + 2, databytes, 4); + + /* okay, write the command and wait for acknowledge */ + + gp_port_write(camera->port, cmd, 8); + + error = gp_port_read(camera->port, &answer, 1); + + if (error < 0){ + DC210_DEBUG("Command 0x%02X produced port read error %d", + cmdbyte, error); + return GP_OK; + }; + + switch (answer){ + case DC210_COMMAND_ACK: + DC210_DEBUG("Okay, command 0x%02X acknowledged.\n", cmdbyte); + break; + case DC210_COMMAND_NAK: + DC210_DEBUG("Sorry, command 0x%02X not acknowledged.\n", cmdbyte); + return GP_OK; + default: + DC210_DEBUG("Unexpected response 0x%02X to command 0x%02X.\n", + answer, cmdbyte); + return GP_OK; + }; + + wait_finish: + error = gp_port_read(camera->port, &answer, 1); + + if (error < 0){ + DC210_DEBUG("Command 0x%02X produced port read error %d\n", + cmdbyte, error); + DC210_DEBUG("Probably the command expects a command package.\n"); + DC210_DEBUG("Sending one...\n"); + dc210_write_command_packet(camera, dummy_cmd_packet); + goto wait_finish; + }; + + switch(answer){ + case DC210_COMMAND_COMPLETE: + DC210_DEBUG("Okay. Command has been accepted and executed.\n"); + return GP_OK; + case DC210_EXECUTION_ERROR: + DC210_DEBUG("Sorry. An error occurred while executing command.\n"); + return GP_OK; + case DC210_CORRECT_PACKET: + DC210_DEBUG("Okay. Packet successfully received.\n"); + goto wait_finish; + case DC210_PACKET_FOLLOWING: + DC210_DEBUG("My, my, you got more than you bargained for. "); + DC210_DEBUG("Awaiting packet...\n"); + dc210_read_dummy_packet(camera); + DC210_DEBUG("Read %d packets.\n", ++packetcount); + goto wait_finish; + case DC210_BUSY: + DC210_DEBUG("Camera is busy.\n"); + goto wait_finish; + default: + DC210_DEBUG("Unexpected response 0x%02X to command 0x%02X.\n", + answer, cmdbyte); + return GP_OK; + }; +}; + +int dc210_debug_callback(Camera * camera, CameraWidget * widget, GPContext * context){ + + /*CameraFile *file;*/ + CameraWidget * window; + char * s_param1, *s_param2, *s_param3; + int param1, param2, param3; + int value; + unsigned char params[4]; + dc210_status status; + + memset(params, 0, 4); + + gp_widget_get_root(widget, &window); + + gp_widget_get_child_by_label (window, _("Parameter 1"), &widget); + gp_widget_get_value (widget, &s_param1); + param1 = atoi(s_param1); + + gp_widget_get_child_by_label (window, _("Parameter 2"), &widget); + gp_widget_get_value (widget, &s_param2); + param2 = atoi(s_param2); + + gp_widget_get_child_by_label (window, _("Parameter 3"), &widget); + gp_widget_get_value (widget, &s_param3); + param3 = atoi(s_param3); + + /* Put the stuff you want to test here */ + dc210_get_status(camera, &status); + dc210_test_command(camera, 0x85, params); + dc210_get_status(camera, &status); + + return GP_OK; + +}; + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/library.h new file mode 100644 index 00000000..ce044b24 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc210/library.h @@ -0,0 +1,60 @@ +/* library.h + * + * Copyright (C) 2002 Michel Koltan + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + + +#ifndef _DC210_LIBRARY_H_ +#define _DC210_LIBRARY_H_ + +#define DC210_CMD_OKAY 0 +#define DC210_WRITE_ERROR -1 +#define DC210_READ_ERROR -2 +#define DC210_TIMEOUT_ERROR -3 +#define DC210_NAK_ERROR -4 +#define DC210_GARBAGE_ERROR -5 + +#define THUMBHEIGHT 72 +#define THUMBWIDTH 96 +#define RED 0 +#define GREEN 1 +#define BLUE 2 + +static void cfa2ppm (CameraFile * file); +static void dc210_cmd_init (char *cmd, unsigned char command_byte); +static void dc210_cmd_packet_init (char * cmd_packet, const char * filename); +static int dc210_write_single_char (Camera *camera, unsigned char response); +static int dc210_write_command_packet(Camera * camera, char * data); +static int dc210_execute_command (Camera *camera, char *cmd); +static int dc210_read_single_char (Camera *camera, unsigned char * p); +static int dc210_wait_for_response (Camera *camera, int expect_busy, GPContext *context); +static int dc210_read_to_file (Camera *camera, CameraFile * f, int blocksize, long int expectsize, GPContext *context); +static int dc210_read_single_block (Camera *camera, unsigned char * b, int blocksize); +static int dc210_set_option (Camera * camera, char command, unsigned int value, int valuesize); +static int dc210_check_battery (Camera *camera); +static int dc210_get_card_status (Camera * camera, dc210_card_status * card_status); +static void dc210_picinfo_from_block (dc210_picture_info * picinfo, unsigned char * data); + +#ifdef DEBUG +static int dc210_read_dummy_packet(Camera * camera); +static int dc210_test_command(Camera * camera, unsigned char cmdbyte, unsigned char *databytes); +#endif + +#endif /* _DC210_LIBRARY_H_ */ + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/ChangeLog new file mode 100644 index 00000000..d1972dae --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/ChangeLog @@ -0,0 +1,72 @@ +2004-06-16 Hubert Figuiere + + * dc240.h (TIMEOUT): fix bug 920532 + http://www.gphoto.org/bugs/?id=920532 + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-08-23 Hubert Figuiere + + * library.c: use GP_MIME_JPEG constant instead of a string literal. + +2002-03-21 Marcus Meissner + + * library.c: Fixed 2 assignments to signed chars (was using values + > 127) + Do gp_context_progress_stop at the right places (reported + by Andrea Suatoni). + +2002-02-21 Hubert Figuiere + + * library.c: removed COMM0 and other strange code and replaced them + with the new DC240_SC_* codes. + (dc240_load_status_data_to_table): fixed a signedess issue + + +2002-02-21 Peter Fales + + * library.c (dc240_packet_read): handle COMM0 error packet + (dc240_packet_exchange): handle a GP_ERROR_NOT_SUPPORTED returned by + dc240_packet_read + Fix bug #499404 + +2002-01-19 Lutz Müller + + * library.c (dc240_capture): free (file) -> gp_file_unref (file) + +2002-01-15 Lutz Müller + + * library.[c,h]: + * dc240.c: gp_camera_status -> gp_context_status + +2001-12-26 Hubert Figuiere + + * library.c (dc240_set_speed): fixed a memory leak in case of + error, fixed spurious warning caused by API change. + * dc240.c (camera_abilities): memset to 0 the ability struct. + See bug 496471. (camera_summary): implemented memory card status + * library.[ch]: use _byteorder.h inside the driver. + Better error codes. + +2001-12-21 Lutz Müller + + * dc240.c: + (camera_init): Kill some warnings. + (camera_capture): Tell the filesystem about the new file. + +2001-12-20 Hubert Figuiere + + * library.c (dc240_load_status_data_to_table, dc240_get_status): + changed fdata from char * to unsigned char * + +2001-12-19 Hubert Figuiere + + * library.h: + * library.c: + * dc240.c (camera_summary): Implemented summary. + +2001-12-06 Hubert Figuiere + + * library.c: Definitive fix for bug 438155. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/Makefile-files new file mode 100644 index 00000000..522fd628 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += kodak_dc240.la +EXTRA_DIST += kodak/dc240/ChangeLog + +kodak_dc240_la_SOURCES = \ + kodak/dc240/dc240.c kodak/dc240/dc240.h \ + kodak/dc240/library.c kodak/dc240/library.h +kodak_dc240_la_LDFLAGS = $(camlib_ldflags) +kodak_dc240_la_DEPENDENCIES = $(camlib_dependencies) +kodak_dc240_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/dc240.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/dc240.c new file mode 100644 index 00000000..e77cc752 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/dc240.c @@ -0,0 +1,326 @@ +/* dc240.c + * + * Copyright (C) 2001,2002 Hubert Figuiere + * Copyright (C) 2000,2001,2002 Scott Fritzinger + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/* + Kodak DC 240/280/3400/5000 driver. + Maintainer: + Hubert Figuiere + */ + +#include "config.h" + +#include +#include +#include + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "dc240.h" +#include "library.h" + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "kodak-dc240"); + + return (GP_OK); +} + +static const struct camera_to_usb { + char *name; + unsigned short idVendor; + unsigned short idProduct; +} camera_to_usb[] = { + { "Kodak:DC240", 0x040A, 0x0120 }, + { "Kodak:DC280", 0x040A, 0x0130 }, + { "Kodak:DC3400", 0x040A, 0x0132 }, + { "Kodak:DC5000", 0x040A, 0x0131 }, + { NULL, 0, 0 } +}; + +/* + Abilities are based upon what we can do with a DC240. + Later cameras have a superset of the DC240 feature and are not + currently supported. + */ +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + int i; + + for (i = 0; camera_to_usb[i].name; i++) + { + memset (&a, 0, sizeof (a)); + strcpy(a.model, camera_to_usb[i].name); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL | GP_PORT_USB; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.speed[5] = 0; + a.usb_vendor = camera_to_usb[i].idVendor; + a.usb_product = camera_to_usb[i].idProduct; + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + gp_abilities_list_append(list, a); + } + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + dc240_close (camera, context); + + return (GP_OK); +} + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + + return dc240_get_directory_list(camera, list, folder, 0x10, context); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + + return dc240_get_directory_list(camera, list, folder, 0x00, context); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + case GP_FILE_TYPE_RAW: + return dc240_file_action (camera, DC240_ACTION_IMAGE, file, + folder, filename, context); + case GP_FILE_TYPE_PREVIEW: + return dc240_file_action (camera, DC240_ACTION_PREVIEW, file, + folder, (char*) filename, context); + default: + return GP_ERROR_NOT_SUPPORTED; + } +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + + return (dc240_file_action (camera, DC240_ACTION_DELETE, NULL, folder, + filename, context)); +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, + CameraFilePath *path, GPContext *context) +{ + int result; + + if (type != GP_CAPTURE_IMAGE) + return (GP_ERROR_NOT_SUPPORTED); + + /* Capture the image */ + result = dc240_capture (camera, path, context); + if (result < 0) + return (result); + + /* Tell the filesystem about it */ + result = gp_filesystem_append (camera->fs, path->folder, path->name, context); + if (result < 0) + return (result); + + return (GP_OK); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + char buf [32 * 1024]; + char temp [1024]; + int retval; + DC240StatusTable table; + + retval = dc240_get_status (camera, &table, context); + if (retval == GP_OK) { + sprintf (buf, _("Model: Kodak %s\n"), dc240_convert_type_to_camera(table.cameraType)); + sprintf (temp, _("Firmware version: %d.%02d\n"), table.fwVersInt, table.fwVersDec); + strcat (buf, temp); + sprintf (temp, _("Battery status: %s, AC Adapter: %s\n"), + dc240_get_battery_status_str(table.battStatus), + dc240_get_ac_status_str(table.acAdapter)); + strcat (buf, temp); + sprintf (temp, _("Number of pictures: %d\n"), table.numPict); + strcat (buf, temp); + sprintf (temp, _("Space remaining: High: %d, Medium: %d, Low: %d\n"), + table.remPictHigh, table.remPictMed, table.remPictLow); + strcat (buf, temp); + + sprintf (temp, _("Memory card status (%d): %s\n"), table.memCardStatus, + dc240_get_memcard_status_str(table.memCardStatus)); + strcat (buf, temp); + + sprintf (temp, _("Total pictures captured: %d, Flashes fired: %d\n"), + table.totalPictTaken, table.totalStrobeFired); + strcat (buf, temp); + + + strcpy(summary->text, buf); + } + return retval; +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _("Kodak DC240 Camera Library\n" + "Scott Fritzinger and Hubert Figuiere \n" + "Camera Library for the Kodak DC240, DC280, DC3400 and DC5000 cameras.\n" + "Rewritten and updated for gPhoto2.")); + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + int ret, selected_speed = 0; + GPPortSettings settings; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->capture = camera_capture; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + /* Set up the CameraFilesystem */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + ret = gp_port_get_settings (camera->port, &settings); + if (ret < 0) + return (ret); + switch (camera->port->type) { + case GP_PORT_SERIAL: + + /* Remember the selected speed */ + selected_speed = settings.serial.speed; + + settings.serial.speed = 9600; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + break; + case GP_PORT_USB: + settings.usb.inep = 0x82; + settings.usb.outep = 0x01; + settings.usb.config = 1; + settings.usb.interface = 0; + settings.usb.altsetting = 0; + break; + default: + return (GP_ERROR_UNKNOWN_PORT); + } + + ret = gp_port_set_settings (camera->port, settings); + if (ret < 0) + return (ret); + + ret = gp_port_set_timeout (camera->port, TIMEOUT); + if (ret < 0) + return (ret); + + if (camera->port->type == GP_PORT_SERIAL) { + char buf[8]; + /* Reset the camera to 9600 */ + gp_port_send_break(camera->port, 1); + + /* Used to have a 1500 msec pause here to give + * the camera time to reset - but, since + * the serial port sometimes returns a garbage + * character or two after the break, we do + * a couple of TIMEOUT (750 msec) pauses here + * force the delay as well as flush the port + */ + gp_port_read(camera->port, buf, 8); + gp_port_read(camera->port, buf, 8); + + ret = dc240_set_speed (camera, selected_speed); + if (ret < 0) + return (ret); + } + + /* Open the CF card */ + ret = dc240_open (camera); + if (ret < 0) + return (ret); + + ret = dc240_packet_set_size (camera, HPBS+2); + if (ret < 0) + return (ret); + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/dc240.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/dc240.h new file mode 100644 index 00000000..376bd10b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/dc240.h @@ -0,0 +1,28 @@ +/* dc240.h + * + * Copyright (C) 2001,2002 Hubert Figuiere + * Copyright (C) 2000,2001,2002 Scott Fritzinger + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + + +#define TIMEOUT 2000 /* 2000 seems to be better than 750 for big CF cards */ +#define SLEEP_TIMEOUT 50 +#define RETRIES 8 + +#define HPBS 1024*1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/library.c new file mode 100644 index 00000000..a77d0999 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/library.c @@ -0,0 +1,911 @@ +/* library.c + * + * Copyright (C) 2001,2002 Hubert Figuiere + * Copyright (C) 2000,2001,2002 Scott Fritzinger + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/* + Kodak DC 240/280/3400/5000 driver. + Maintainer: + Hubert Figuiere + */ + +#include "config.h" + +#include +#include +#include + +#include +#include +#include "gphoto2-endian.h" + +#include "dc240.h" +#include "library.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + + +#define GP_MODULE "dc240" + +/* do not sleep during fuzzing */ +#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION +# define usleep(x) +#endif + +/* legacy from dc240.h */ +/* + #define COMM1 0x00 + #define READY 0x10 + #define ACK 0xd1 + #define PACK1 0xd2 +*/ +/* nice. errors all have upper nibble of 'e' */ +/* + #define NAK 0xe1 + #define COMM0 0xe2 + #define PACK0 0xe3 + #define CANCL 0xe4 +*/ + +/* system codes */ +enum { + DC240_SC_COMPLETE = 0x0, + DC240_SC_ACK = 0xd1, + DC240_SC_CORRECT = 0xd2, + DC240_SC_FIRST_ERROR = 0xe0, /* not really an real code */ + DC240_SC_NAK = 0xe1, + DC240_SC_ERROR = 0xe2, + DC240_SC_ILLEGAL = 0xe3, + DC240_SC_CANCEL = 0xe4, + DC240_SC_BUSY = 0xf0 +}; + +static unsigned char *dc240_packet_new (int command_byte); +static int dc240_packet_write (Camera *camera, unsigned char *packet, int size, + int read_response); +static int dc240_packet_read (Camera *camera, unsigned char *packet, int size); + + + +static unsigned char * +dc240_packet_new (int command_byte) { + + unsigned char *p = malloc(8); + memset (p, 0, 8); + p[0] = command_byte; + p[7] = 0x1a; + return p; +} + +static unsigned char * +dc240_packet_new_path (const char *folder, const char *filename) { + unsigned char *p; + char buf[1024]; + int x; + unsigned char cs = 0; + + p = malloc(sizeof(char)*60); + if (!p) + return NULL; + + strcpy(buf, folder); + + if (buf[strlen(buf)-1] != '/') + strcat(buf, "/"); + + if (filename) + strcat(buf, filename); + else + strcat(buf, "*.*"); + + for (x=0; x 0) { + usleep(SLEEP_TIMEOUT * 1000); + } + + /* Return error if too many retries */ + x++; + if (x > RETRIES) { + return (GP_ERROR_TIMEOUT); + } + + if (gp_port_write(camera->port, (char*)packet, size) < GP_OK) { + goto write_again; + } + + /* Read in the response from the camera if requested */ + while (read_response) { + int ret; + if ((ret=gp_port_read(camera->port, in, 1)) >= GP_OK) { + /* On error, read again */ + read_response = 0; + break; + } + if (ret == GP_ERROR_IO_READ) return ret; /* e.g. device detached? */ + } + + return GP_OK; +} + +static int +dc240_packet_read (Camera *camera, unsigned char *packet, int size) +{ + + int retval = gp_port_read(camera->port, (char*)packet, size); + + /* + * If we try to read data about a non-picture file, we get back + * a single DC240_SC_ERROR byte. So, if we're trying to read a packet with + * size greater than one, but we only get one byte, and it is a + * DC240_SC_ERROR error, return failure + */ + if ((size > 1) && (retval == 1) && (packet[0] == DC240_SC_ERROR)) + return GP_ERROR_NOT_SUPPORTED; + + if (retval < GP_OK) + return retval; + else + return GP_OK; +} + +static int dc240_packet_write_ack (Camera *camera) +{ + int retval; + unsigned char c; + + c = DC240_SC_CORRECT; + retval = gp_port_write(camera->port, (char*)&c, 1); + if (retval < GP_OK) + return retval; + return GP_OK; +} + +static int dc240_packet_write_nak (Camera *camera) +{ + int retval; + unsigned char c; + + c = DC240_SC_ILLEGAL; + retval = gp_port_write(camera->port, (char*)&c, 1); + if (retval < GP_OK) + return retval; + return GP_OK; +} + +static int dc240_wait_for_completion (Camera *camera) { + unsigned char p[8]; + int retval = GP_OK; + int x=0, done=0; + + /* Wait for command completion */ + while ((x++ < 25)&&(!done)) { + retval = dc240_packet_read(camera, p, 1); + switch (retval) { + case GP_ERROR: + GP_DEBUG ("GP_ERROR\n"); + return (GP_ERROR); + break; + case GP_ERROR_TIMEOUT: + GP_DEBUG ("GP_ERROR_TIMEOUT\n"); + /* in busy state, GP_ERROR_IO_READ can happend */ + break; + default: + done = 1; + } + } + + if (x==25) { + return (GP_ERROR_TIMEOUT); + } + + return GP_OK; +} + +/* + Implement the wait state aka busy case + See 2.7.2 in the DC240 Host interface Specification + */ +static int dc240_wait_for_busy_completion (Camera *camera) +{ + enum { + BUSY_RETRIES = 100 + }; + unsigned char p[8]; + int retval = 0; + int x=0, done=0; + + /* Wait for command completion */ + while ((x++ < BUSY_RETRIES)&&(!done)) { + retval = dc240_packet_read(camera, p, 1); + switch (retval) { + case GP_ERROR: + return retval; + break; + case GP_ERROR_IO_READ: + case GP_ERROR_TIMEOUT: + /* in busy state, GP_ERROR_IO_READ can happend */ + break; + default: + if (*p != DC240_SC_BUSY) { + done = 1; + } + } + } + if (x == BUSY_RETRIES) + return (GP_ERROR); + return retval; +} + + +static int dc240_packet_exchange (Camera *camera, CameraFile *file, + unsigned char *cmd_packet, unsigned char *path_packet, + int *size, int block_size, GPContext *context) +{ + /* Reads in multi-packet data, appending it to the "file". */ + unsigned char check_sum; + int i; + int num_packets=1, num_bytes, retval = GP_OK; + int x=0, retries=0; + float t; + unsigned char packet[HPBS+2]; + unsigned int id; + + if (*size > 0) { + /* Known size to begin with */ + t = (float)*size / (float)(block_size); + num_packets = (int)t; + if (t - (float)num_packets > 0) { + num_packets++; + } + } else { + /* Calculate size in 1st packet */ + num_packets = 2; + } + +read_data_write_again: + /* Write command/path packets */ + if (cmd_packet) { + retval = dc240_packet_write(camera, cmd_packet, 8, 1); + if (retval < GP_OK) + return retval; + } + + if (path_packet) { + retval = dc240_packet_write(camera, path_packet, 60, 1); + if (retval < GP_OK) + return retval; + } + + id = gp_context_progress_start (context, num_packets, _("Getting data...")); + while (x < num_packets) { +read_data_read_again: + gp_context_progress_update (context, id, x); + + /* Read the response/data */ + retval = dc240_packet_read(camera, packet, block_size+2); + + if (retval == GP_ERROR_NOT_SUPPORTED) + return retval; + + if ((retval == GP_ERROR) || (retval == GP_ERROR_TIMEOUT)) { + /* ERROR reading response/data */ + if (retries++ > RETRIES) { + gp_context_progress_stop (context, id); + return (GP_ERROR_TIMEOUT); + } + + if (x==0) { + /* If first packet didn't come, write command again */ + goto read_data_write_again; + } else { + /* Didn't get data packet. Send NAK for retry */ + dc240_packet_write_nak(camera); + goto read_data_read_again; + } + } + + /* Validate checksum */ + check_sum = 0; + for (i = 1; i < block_size + 1; i++) { + check_sum ^= packet [i]; + } + if ( block_size > 1 && check_sum != packet [i]) { + dc240_packet_write_nak (camera); + goto read_data_read_again; + } + + /* Check for error in command/path */ + if (packet[0] > DC240_SC_FIRST_ERROR) { + gp_context_progress_stop (context, id); + return GP_ERROR; + } + + /* Check for end of data */ + if (packet[0] == DC240_SC_COMPLETE) { + gp_context_progress_stop (context, id); + return GP_OK; + } + + /* Write packet was OK */ + if (dc240_packet_write_ack(camera) < GP_OK) + goto read_data_read_again; + + /* Set size for folder/file list command from 1st packet */ + if (cmd_packet && (cmd_packet[0]==0x99) && (x==0)) { + *size = (packet[1] * 256 + + packet[2])* 20 + 2; + t = (float)*size / (float)(block_size); + num_packets = (int)t; + if (t - (float)num_packets > 0) + num_packets++; + } + + /* Copy in data */ + if (x == num_packets) + num_bytes = *size - ((num_packets-1) * block_size); + else + num_bytes = block_size; + gp_file_append(file, (char*)&packet[1], num_bytes); + + /* Increment packet count, reset retries */ + x++; + retries = 0; + } + gp_context_progress_stop (context, id); + /* Read in command completed */ + return dc240_wait_for_completion(camera); +} + + +/* + See 5.1.37 + */ +int dc240_open (Camera *camera) +{ + int retval = GP_OK; + unsigned char *p = dc240_packet_new(0x96); + + GP_DEBUG ("dc240_open\n"); + + retval = dc240_packet_write(camera, p, 8, 1); + if (retval != GP_OK) { + GP_DEBUG ("dc240_open: write returned %d\n", retval); + goto fail; + } + + retval = dc240_wait_for_completion(camera); + if (retval < GP_OK) { + GP_DEBUG ("dc240_open: wait returned %d\n", retval); + goto fail; + } + + fail: + free(p); + return retval; +} + +int dc240_close (Camera *camera, GPContext *context) +{ + unsigned char *p = dc240_packet_new(0x97); + int retval, size = -1; + + retval = dc240_packet_exchange(camera, NULL, p, NULL, &size, -1, context); + + free(p); + return retval; +} + +static int dc240_get_file_size (Camera *camera, const char *folder, const char *filename, int thumb, GPContext *context) { + + CameraFile *f; + unsigned char *p1, *p2; + int size = 256, offset; + unsigned long int fsize; + const unsigned char *fdata; + + offset = (thumb? 92:104); + + gp_file_new(&f); + p1 = dc240_packet_new(0x91); + p2 = dc240_packet_new_path(folder, filename); + if (dc240_packet_exchange(camera, f, p1, p2, &size, 256, context) < 0) + size = 0; + else { + int ret; + ret = gp_file_get_data_and_size (f, (const char**)&fdata, &fsize); + if (ret < GP_OK) return ret; + if (!fdata || (fsize < 4)) return GP_ERROR; + size = (fdata[offset] << 24) | + (fdata[offset+1] << 16) | + (fdata[offset+2] << 8 ) | + (fdata[offset+3]); + } + + gp_file_free(f); + free(p1); + free(p2); + + return (size); +} + +int dc240_set_speed (Camera *camera, int speed) +{ + int retval; + unsigned char *p = dc240_packet_new(0x41); + gp_port_settings settings; + + GP_DEBUG ("dc240_set_speed\n"); + + gp_port_get_settings(camera->port, &settings); + + switch (speed) { + case 9600: + p[2] = 0x96; + p[3] = 0x00; + settings.serial.speed = 9600; + break; + case 19200: + p[2] = 0x19; + p[3] = 0x20; + settings.serial.speed = 19200; + break; + case 38400: + p[2] = 0x38; + p[3] = 0x40; + settings.serial.speed = 38400; + break; + case 57600: + p[2] = 0x57; + p[3] = 0x60; + settings.serial.speed = 57600; + break; + case 0: /* Default */ + case 115200: + p[2] = 0x11; + p[3] = 0x52; + settings.serial.speed = 115200; + break; + /* how well supported is 230.4? + case 230400: + p[2] = 0x23; + p[3] = 0x04; + settings.serial.speed = 230400; + break; + */ + default: + retval = GP_ERROR; + goto fail; + } + + retval = dc240_packet_write(camera, p, 8, 1); + if (retval != GP_OK) + goto fail; + + retval = gp_port_set_settings (camera->port, settings); + if (retval != GP_OK) + goto fail; + + usleep(300 * 1000); + retval = dc240_wait_for_completion(camera); + if (retval != GP_OK) + goto fail; + /* Speed change went OK. */ + fail: + free (p); + return retval; +} + +static struct _type_to_camera { + uint16_t status_type; + char * name; +} type_to_camera [] = { + { 4, "DC210" }, + { 5, "DC240" }, + { 6, "DC280" }, + { 7, "DC5000" }, + { 8, "DC3400" }, + { 0, "Unknown" } /* unknown type. MUST be last */ +}; + + + +const char *dc240_convert_type_to_camera (uint16_t type) +{ + int i = 0; + + while (type_to_camera[i].status_type != 0) { + if (type_to_camera[i].status_type == type) + return type_to_camera[i].name; + i++; + } + /* not found */ + return type_to_camera[i].name; +} + +const char *dc240_get_battery_status_str (uint8_t status) +{ + switch (status) { + case 0: + return _("OK"); + break; + case 1: + return _("Weak"); + break; + case 2: + return _("Empty"); + break; + default: + break; + } + return _("Invalid"); +} + +const char *dc240_get_ac_status_str (uint8_t status) +{ + switch (status) { + case 0: + return _("Not used"); + break; + case 1: + return _("In use"); + break; + default: + break; + } + return _("Invalid"); +} + + +const char * dc240_get_memcard_status_str(uint8_t status) +{ + if (status & 0x80) { + if ((status & 0x10) == 0) { + if (status & 0x08) + return _("Card is open"); + return _("Card is not open"); + } + return _("Card is not formatted"); + } + return _("No card"); +} + + +/* + Feed manually the stucture from data. + */ +static int dc240_load_status_data_to_table (const unsigned char *fdata, DC240StatusTable *table) +{ + if (fdata [0] != 0x01) + return GP_ERROR; + GP_DEBUG ("Camera Type = %d, %s\n", fdata[1], dc240_convert_type_to_camera (fdata[1])); + table->cameraType = fdata[1]; + table->fwVersInt = fdata[2]; + table->fwVersDec = fdata[3]; + GP_DEBUG ("Firmware version = %d, %d\n", fdata[2], fdata[3]); + table->romVers32Int = fdata[4]; + table->romVers32Dec = fdata[5]; + table->romVers8Int = fdata[6]; + table->romVers8Dec = fdata[7]; + table->battStatus = fdata[8]; + table->acAdapter = fdata[9]; + table->strobeStatus = fdata[10]; + table->memCardStatus = fdata[11]; + table->videoFormat = fdata[12]; + table->quickViewMode = fdata[13]; /* DC280 */ + table->numPict = be16atoh(&fdata[14]); + strncpy (table->volumeID, (char*)&fdata[16], 11); + table->powerSave = fdata[27]; /* DC280 */ + strncpy (table->cameraID, (char*)&fdata[28], 32); + table->remPictLow = be16atoh(&fdata[60]); + table->remPictMed = be16atoh(&fdata[62]); + table->remPictHigh = be16atoh(&fdata[64]); + table->totalPictTaken = be16atoh(&fdata[66]); + table->totalStrobeFired = be16atoh(&fdata[68]); + table->langType = fdata[70]; /* DC 280 */ + table->beep = fdata[71]; + table->fileType = fdata[78]; + table->pictSize = fdata[79]; + table->imgQuality = fdata[80]; + table->ipChainDisable = fdata[81]; /* reserved on DC280. WTF is it ? */ + table->imageIncomplete = fdata[82]; + table->timerMode = fdata[83]; + table->year = be16atoh(&fdata[88]); + table->month = fdata[90]; + table->day = fdata[91]; + table->hour = fdata[92]; + table->minute = fdata[93]; + table->second = fdata[94]; + table->tenmSec = fdata[95]; + table->strobeMode = fdata[97]; + table->exposureComp = (fdata[98] * 100) + (fdata[99]); + table->aeMode = fdata[100]; + table->focusMode = fdata[101]; + table->afMode = fdata[102]; + table->awbMode = fdata[103]; +/* table->zoomMag = ????? */ + table->exposureMode = fdata[129]; + table->sharpControl = fdata[131]; +/* table->expTime = */ + table->fValue = (fdata[136] * 100) + (fdata[137]); + table->imageEffect = fdata[138]; + table->dateTimeStamp = fdata[139]; + strncpy (table->borderFileName, (char*)&fdata[140], 11); + table->exposureLock = fdata[152]; + table->isoMode = fdata[153]; /* DC280 */ + + return GP_OK; +} + +/* + Return the camera status table. + See 5.1.29 + */ +int dc240_get_status (Camera *camera, DC240StatusTable *table, GPContext *context) +{ + CameraFile *file; + unsigned char *p = dc240_packet_new(0x7F); + int retval; + const char *fdata; + unsigned long int fsize; + int size = 256; + + gp_file_new (&file); + GP_DEBUG ("enter dc240_get_status() \n"); + retval = dc240_packet_exchange(camera, file, p, NULL, &size, 256, context); + + if (retval == GP_OK) { + gp_file_get_data_and_size (file, &fdata, &fsize); + if (fsize != 256) { + GP_DEBUG ("wrong status packet size ! Size is %ld", fsize); + } + if (fdata [0] != 0x01) { /* see 2.6 for why 0x01 */ + GP_DEBUG ("not a status table. Is %d", fdata [0]); + } + dc240_load_status_data_to_table ((uint8_t *)fdata, table); + } + + gp_file_free(file); + free (p); + + return (retval); +} + +int dc240_get_directory_list (Camera *camera, CameraList *list, const char *folder, + unsigned char attrib, GPContext *context) { + + CameraFile *file; + int x, y=0, z, size=256; + char buf[64]; + unsigned char *p1 = dc240_packet_new(0x99); + unsigned char *p2 = dc240_packet_new_path(folder, NULL); + const char *fdata; + unsigned long int fsize; + int ret; + int num_of_entries = 0; /* number of entries in the listing */ + int total_size = 0; /* total useful size of the listing */ + + gp_file_new(&file); + ret = dc240_packet_exchange(camera, file, p1, p2, &size, 256, context); + if (ret < 0) { + gp_file_free (file); + return ret; + } + free(p1); + free(p2); + + /* Don't expect to have a fully useful buffer. */ + ret = gp_file_get_data_and_size (file, &fdata, &fsize); + if (ret < 0) { + gp_file_free (file); + return ret; + } + if ((size < 1) || !fdata) { + gp_file_free (file); + return GP_ERROR; + } + + /* numbers in DC 240 are Big-Endian. */ + /* Conversion below should be endian neutral. */ + num_of_entries = be16atoh(&fdata [0]) + 1; + total_size = 2 + (num_of_entries * 20); + GP_DEBUG ("number of file entries : %d, size = %ld", num_of_entries, fsize); + if (total_size > fsize) { + GP_DEBUG ("total_size %d > fsize %ld", total_size, fsize); + gp_file_free (file); + return GP_ERROR; + } + for (x = 2; x < total_size; x += 20) { + if ((fdata[x] != '.') && (attrib == (unsigned char)fdata[x+11])) { + /* Files have attrib 0x00, Folders have attrib 0x10 */ + if (attrib == 0x00) { + strncpy(buf, &fdata[x], 8); /* Copy over filename */ + buf[8] = 0; /* NULL terminate */ + strcat(buf, "."); /* Append dot */ + strcat(buf, &fdata[x+8]); /* Append extension */ + GP_DEBUG ("found file: %s", buf); + } else { + strncpy(buf, &fdata[x], 8); /* Copy over folder name */ + z=0; + while ((buf[z] != 0x20)&&(z<8)) /* Chop trailing spaces */ + z++; + buf[z] = 0; /* NULL terminate */ + GP_DEBUG ("found folder: %s", buf); + } + gp_list_append(list, buf, NULL); + y++; + } + } + gp_file_free(file); + return (GP_OK); +} + +int dc240_file_action (Camera *camera, int action, CameraFile *file, + const char *folder, const char *filename, GPContext *context) { + + int size=0, thumb=0, retval=GP_OK; + unsigned char *cmd_packet, *path_packet; + + cmd_packet = dc240_packet_new(action); + path_packet = dc240_packet_new_path(folder, filename); + + switch (action) { + case DC240_ACTION_PREVIEW: + cmd_packet[4] = 0x02; + thumb = 1; + /* no break on purpose */ + case DC240_ACTION_IMAGE: + if ((size = dc240_get_file_size(camera, folder, filename, thumb, context)) < GP_OK) { + retval = GP_ERROR; + break; + } + retval = dc240_packet_exchange(camera, file, cmd_packet, path_packet, &size, HPBS, context); + break; + case DC240_ACTION_DELETE: + size = -1; + retval = dc240_packet_exchange(camera, file, cmd_packet, path_packet, &size, -1, context); + break; + default: + free(cmd_packet); + free(path_packet); + return (GP_ERROR); + } + + free(cmd_packet); + free(path_packet); + + if (file) + gp_file_set_mime_type (file, GP_MIME_JPEG); + return (retval); +} + +/* + See 5.1.27 in the DC240 Host Spec. + Capture a picture on the flash card and retrieve its full + name. + See also 5.1.19 + */ +int dc240_capture (Camera *camera, CameraFilePath *path, GPContext *context) +{ + CameraFile *file; + int size = 256; + int ret = GP_OK; + unsigned char *p = dc240_packet_new(0x7C); + const char *fdata; + unsigned long int fsize; + + /* Take the picture to Flash memory */ + ret = dc240_packet_write(camera, p, 8, 1); + free (p); + if (ret != GP_OK) { + return ret; + } + + gp_context_status (context, "Waiting for completion..."); + ret = dc240_wait_for_completion(camera); + if (ret != GP_OK) { + return ret; + } + + ret = dc240_wait_for_busy_completion(camera); + if (ret != GP_OK) { + return ret; + } + + /* + get the last picture taken location (good firmware developers) + */ + gp_file_new(&file); + p = dc240_packet_new(0x4C); /* 5.1.19 Send last taken image name */ + ret = dc240_packet_exchange(camera, file, p, NULL, &size, 256, context); + free(p); + if (ret != GP_OK) { + path->name[0] = 0; + path->folder[0] = 0; + gp_file_unref (file); + return ret; + } + + /* this part assumes that the response is of fixed size */ + /* according to the specs, this is the case since only the */ + /* numbering changes */ + gp_file_get_data_and_size (file, &fdata, &fsize); + strncpy (path->folder, fdata, 14); + path->folder [14] = 0; + path->folder [0] = '/'; + path->folder [5] = '/'; + strncpy (path->name, &(fdata[15]), 13); + path->name[13] = 0; + gp_file_unref (file); + + return GP_OK; +} + +int dc240_packet_set_size (Camera *camera, short int size) { + + unsigned char *p = dc240_packet_new(0x2A); + + p[2] = (size >> 8) & 0xFF; + p[3] = (size ) & 0xFF; + + if (dc240_packet_write(camera, p, 8, 1) == GP_ERROR) + return (GP_ERROR); + + if (dc240_wait_for_completion(camera)==GP_ERROR) + return (GP_ERROR); + free(p); + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/library.h new file mode 100644 index 00000000..d3ad7448 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc240/library.h @@ -0,0 +1,124 @@ +/* library.h + * + * Copyright (C) 2001,2002 Hubert Figuiere + * Copyright (C) 2000,2001,2002 Scott Fritzinger + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/* + Kodak DC 240/280/3400/5000 driver. + */ + +#ifndef __DC240_LIBRARY_H__ +#define __DC240_LIBRARY_H__ + +#define DC240_ACTION_PREVIEW (uint8_t)0x93 +#define DC240_ACTION_IMAGE (uint8_t)0x9A +#define DC240_ACTION_DELETE (uint8_t)0x9D + +#include "gphoto2-endian.h" + + +const char *dc240_convert_type_to_camera (uint16_t type); +const char *dc240_get_battery_status_str (uint8_t status); +const char *dc240_get_ac_status_str (uint8_t status); +const char *dc240_get_memcard_status_str(uint8_t status); + +/* Define the status table for DC240 and DC280. */ +typedef struct { + uint8_t cameraType; /* 1 */ + uint8_t fwVersInt; /* 2 */ + uint8_t fwVersDec; /* 3 */ + uint8_t romVers32Int; /* 4 */ + uint8_t romVers32Dec; /* 5 */ + uint8_t romVers8Int; /* 6 */ + uint8_t romVers8Dec; /* 7 */ + uint8_t battStatus; /* 8 */ + uint8_t acAdapter; /* 9 */ + uint8_t strobeStatus; /* 10 */ + uint8_t memCardStatus; /* 11 */ + uint8_t videoFormat; /* 12 */ + uint8_t quickViewMode; /* 13 DC280 */ + uint16_t numPict; /* 14-15 BigEndian */ + char volumeID[11]; /* 16-26 */ + uint8_t powerSave; /* 27 DC280 */ + char cameraID[32]; /* 28-59 */ + uint16_t remPictLow; /* 60-61 BE */ + uint16_t remPictMed; /* 62-63 BE */ + uint16_t remPictHigh; /* 64-65 BE */ + uint16_t totalPictTaken; /* 66-67 BE */ + uint16_t totalStrobeFired; /* 68-69 BE */ + uint8_t langType; /* 70 DC280 */ + uint8_t beep; /* 71 */ + + uint8_t fileType; /* 78 */ + uint8_t pictSize; /* 79 */ + uint8_t imgQuality; /* 80 */ + uint8_t ipChainDisable; /* 81 */ /* ????? what does that mean reserved on DC280 */ + uint8_t imageIncomplete; /* 82 */ + uint8_t timerMode; /* 83 */ + + uint16_t year; /* 88-89 BE */ + uint8_t month; /* 90 */ + uint8_t day; /* 91 */ + uint8_t hour; /* 92 */ + uint8_t minute; /* 93 */ + uint8_t second; /* 94 */ + uint8_t tenmSec; /* 95 */ + + uint8_t strobeMode; /* 97 */ + uint16_t exposureComp; /* 98-99 BE see note */ + uint8_t aeMode; /* 100 */ + uint8_t focusMode; /* 101 */ + uint8_t afMode; /* 102 */ + uint8_t awbMode; /* 103 */ + uint32_t zoomMag; /* 104-107 BE see doc */ + + uint8_t exposureMode; /* 129 */ + + uint8_t sharpControl; /* 131 */ + uint32_t expTime; /* 132-135 BE */ + uint16_t fValue; /* 136-137 BE */ + uint8_t imageEffect; /* 138 */ + uint8_t dateTimeStamp; /* 139 */ + char borderFileName [11]; /* 140-151 */ + uint8_t exposureLock; /* 152 */ + uint8_t isoMode; /* 153 DC280 */ +} DC240StatusTable; + + +int dc240_open (Camera *camera); +int dc240_close (Camera *camera, GPContext *context); + +int dc240_set_speed (Camera *camera, int speed); + +int dc240_get_status (Camera *camera, DC240StatusTable *table, + GPContext *context); + +int dc240_get_directory_list (Camera *camera, CameraList *list, const char *folder, + unsigned char attrib, GPContext *context); + + +int dc240_file_action (Camera *camera, int action, CameraFile *file, + const char *folder, const char *filename, + GPContext *context); + +int dc240_capture (Camera *camera, CameraFilePath *path, + GPContext *context); +int dc240_packet_set_size (Camera *camera, short int size); + +#endif /*__DC240_LIBRARY_H__*/ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/ChangeLog new file mode 100644 index 00000000..30fae9da --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/ChangeLog @@ -0,0 +1,8 @@ +2002-01-20 Marcus Meissner + + * library.c: Added missing to make it compile. + +2002-01-19 Lutz Müller + + * library.[c,h] + * dc3200.[c,h]: Fix includes. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/Makefile-files new file mode 100644 index 00000000..e07e2086 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += kodak_dc3200.la +EXTRA_DIST += kodak/dc3200/ChangeLog + +kodak_dc3200_la_SOURCES = \ + kodak/dc3200/dc3200.c kodak/dc3200/dc3200.h \ + kodak/dc3200/library.c kodak/dc3200/library.h +kodak_dc3200_la_LDFLAGS = $(camlib_ldflags) +kodak_dc3200_la_DEPENDENCIES = $(camlib_dependencies) +kodak_dc3200_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/dc3200.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/dc3200.c new file mode 100644 index 00000000..36cc1e31 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/dc3200.c @@ -0,0 +1,515 @@ +/* dc3200.c + * + * Copyright (C) 2000,2001,2002 donn morrison - dmorriso@gulf.uvic.ca + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/**************************************************** + * kodak dc3200 digital camera driver library * + * for gphoto2 * + * * + * author: donn morrison - dmorriso@gulf.uvic.ca * + * date: dec 2000 - jan 2002 * + * license: gpl * + * version: 1.6 * + * * + ****************************************************/ + +#include "config.h" +#include "dc3200.h" + +#include +#include +#include +#include + +#include + +#include "library.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +/* + * FIXME: Use properly sized integer types. The dc3200 code used lots + * of u_char, u_long, u_int, which may be wrong on non-32bit systems. + */ + +#define CONTEXT_EXISTS _("There is currently an operation in progress. \ +This camera only supports one operation \ +at a time. Please wait until the current \ +operation has finished.") + +int camera_id (CameraText *id) +{ + strcpy(id->text, "kodak-dc3200"); + + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset (&a, 0, sizeof(a)); + strcpy(a.model, "Kodak:DC3200"); + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.speed[5] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + gp_abilities_list_append(list, a); + + return (GP_OK); +} + +static +int init(Camera *camera) +{ + GPPortSettings settings; + int ret, selected_speed; + + ret = gp_port_get_settings (camera->port, &settings); + if (ret < 0) + return (ret); + + /* Remember the selected speed 0 == fastest */ + selected_speed = settings.serial.speed == 0 ? 115200 : settings.serial.speed; + + settings.serial.speed = 9600; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + + ret = gp_port_set_settings (camera->port, settings); + if (ret < 0) + return (ret); + + gp_port_set_timeout (camera->port, TIMEOUT); + + if (dc3200_set_speed (camera, selected_speed) == GP_ERROR) + return GP_ERROR; + + /* Set the new speed */ + settings.serial.speed = selected_speed; + ret = gp_port_set_settings (camera->port, settings); + if (ret < 0) + return (ret); + + /* Wait for it to update */ + sleep(1); + + /* Try to talk after speed change */ + if (dc3200_keep_alive(camera) == GP_ERROR) + return GP_ERROR; + + /* setup the camera */ + if (dc3200_setup(camera) == GP_ERROR) + return GP_ERROR; + + return GP_OK; +} + +static int camera_exit (Camera *camera, GPContext *context) +{ + if (camera->pl) { + if(camera->pl->context) { + gp_context_error(context, CONTEXT_EXISTS); + return GP_ERROR; + } + free (camera->pl); + camera->pl = NULL; + } + + return GP_OK; +} + +int check_last_use(Camera *camera) +{ + time_t t; + + time(&t); + + if(t - camera->pl->last > 9) { + /* we have to re-init the camera */ + printf(_("camera inactive for > 9 seconds, re-initing.\n")); + return init(camera); + } + + return GP_OK; +} + +static int folder_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + unsigned char *data = NULL; + long unsigned data_len = 0; + unsigned char *ptr_data_buff; + char filename[13], *ptr; + int res, i; + + if(camera->pl->context) + { + gp_context_error(context, CONTEXT_EXISTS); + return GP_ERROR; + } + + if(check_last_use(camera) == GP_ERROR) + { + return GP_ERROR; + } + + /* get file list data */ + res = dc3200_get_data (camera, &data, &data_len, CMD_LIST_FILES, folder, + NULL); + if (res == GP_ERROR) + { + return GP_ERROR; + } + + /* check the data length, each record is 20 bytes */ + if(data_len%20 != 0 || data_len < 1) + { + return GP_ERROR; + } + + if (data == NULL) + { + return GP_ERROR; + } + + /* add directories to the list */ + ptr_data_buff = data; + i = 0; + + while(i < data_len) { + /* directories have 0x10 in their attribute */ + if(!(ptr_data_buff[11] & 0x10)) { + ptr_data_buff += 20; + i += 20; + continue; + } + + /* skip directories starting with . */ + if(ptr_data_buff[0] == '.') { + ptr_data_buff += 20; + i += 20; + continue; + } + + /* copy the filename */ + strncpy(filename, (char *)ptr_data_buff, sizeof(filename)); + + /* chop off the trailing spaces and null terminate */ + ptr = strchr(filename, 0x20); + if(ptr) ptr[0] = 0; + + /* in case of long directory */ + filename[12] = 0; + + /* append dir to the list */ + gp_list_append(list, filename, NULL); + + ptr_data_buff += 20; + i += 20; + } + + free (data); + return (dc3200_keep_alive (camera)); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + unsigned char *data = NULL; + long unsigned data_len = 0; + unsigned char *ptr_data_buff; + char filename[13]; + int res, i; + + if(camera->pl->context) + { + gp_context_error(context, CONTEXT_EXISTS); + return GP_ERROR; + } + + if(check_last_use(camera) == GP_ERROR) + { + return GP_ERROR; + } + + /* get file list data */ + res = dc3200_get_data (camera, &data, &data_len, CMD_LIST_FILES, folder, + NULL); + if (res == GP_ERROR) + { + return GP_ERROR; + } + + /* check the data length */ + if(data_len%20 != 0 || data_len < 1) + { + return GP_ERROR; + } + + if(data == NULL) + { + return GP_ERROR; + } + + /* add files to the list */ + ptr_data_buff = data; + i = 0; + + while(i < data_len) { + /* files don't have 0x10 in their attribute */ + if(ptr_data_buff[11] & 0x10) { + ptr_data_buff += 20; + i += 20; + continue; + } + + /* copy the first 8 bytes of filename */ + strncpy(filename, (char *)ptr_data_buff, 8); + filename[8] = 0; + /* add dot */ + strcat(filename, "."); + /* copy extension, last 3 bytes*/ + strncat(filename, (char *)ptr_data_buff+8, 3); + + if(!strstr(filename, ".JPG") && !strstr(filename, ".jpg")) { + ptr_data_buff += 20; + i += 20; + continue; + } + + /* append file to the list */ + gp_list_append(list, filename, NULL); + + ptr_data_buff += 20; + i += 20; + } + + free(data); + return (dc3200_keep_alive(camera)); +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + unsigned char *data = NULL; + long unsigned data_len = 0; + int res; + + if(camera->pl->context) + { + gp_context_error(context, CONTEXT_EXISTS); + return GP_ERROR; + } + + camera->pl->context = context; + + if(check_last_use(camera) == GP_ERROR) + { + camera->pl->context = NULL; + return GP_ERROR; + } + + switch (type) { + case GP_FILE_TYPE_PREVIEW: + res = dc3200_get_data (camera, &data, &data_len, + CMD_GET_PREVIEW, folder, filename); + break; + case GP_FILE_TYPE_NORMAL: + res = dc3200_get_data (camera, &data, &data_len, + CMD_GET_FILE, folder, filename); + break; + default: + camera->pl->context = NULL; + return (GP_ERROR_NOT_SUPPORTED); + } + if (res < 0) + { + camera->pl->context = NULL; + return (res); + } + + if (data == NULL || data_len < 1) + { + camera->pl->context = NULL; + return GP_ERROR; + } + + gp_file_append (file, (char *)data, data_len); + + free(data); + camera->pl->context = NULL; + return (dc3200_keep_alive(camera)); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + unsigned char *data = NULL; + long unsigned data_len = 0; + int res; + char file[1024]; + + if(camera->pl->context) + { + gp_context_error(context, CONTEXT_EXISTS); + return GP_ERROR; + } + + if(check_last_use(camera) == GP_ERROR) + { + return GP_ERROR; + } + + if(!folder) + { + return GP_ERROR; + } + + strcpy(file, folder); + if(folder[strlen(folder)-1] != '\\' || folder[strlen(folder)-1] != '/') + strcat(file, "\\"); + strcat(file, filename); + + /* get file list data */ + res = dc3200_get_data (camera, &data, &data_len, CMD_LIST_FILES, file, + NULL); + if (res == GP_ERROR) + { + return GP_ERROR; + } + + /* check the data length */ + if(data_len%20 != 0 || data_len < 1) + { + /* there is a problem */ + return GP_ERROR; + } + + if(data == NULL) + { + return GP_ERROR; + } + + /* get the file length && type and stuff */ + info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + info->file.size = bytes_to_l(data[19], data[18], data[17], data[16]); + strcpy (info->file.type, GP_MIME_JPEG); + + info->preview.fields = GP_FILE_INFO_TYPE; + strcpy (info->preview.type, GP_MIME_JPEG); + + free(data); + return (dc3200_keep_alive(camera)); +} + +static int camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy (manual->text, + _("Known problems:\n" + "\n" + "1. If the Kodak DC3200 does not receive a command at least " + "every 10 seconds, it will time out, and will have to be " + "re-initialized. If you notice the camera does not respond, " + "simply re-select the camera. This will cause it to " + "reinitialize.")); + return (GP_OK); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _("Kodak DC3200 Driver\n" + "Donn Morrison \n" + "\n" + "Questions and comments appreciated.")); + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func, + .folder_list_func = folder_list_func +}; + +int camera_init (Camera *camera, GPContext *context) +{ + int ret; + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + + /* Set up the CameraFilesystem */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + /* initialize the camera */ + ret = init (camera); + if (ret < 0) { + free (camera->pl); + camera->pl = NULL; + return (ret); + } + + ret = dc3200_keep_alive (camera); + if (ret < 0) { + free (camera->pl); + camera->pl = NULL; + return (ret); + } + camera->pl->context = NULL; + return (GP_OK); +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/dc3200.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/dc3200.h new file mode 100644 index 00000000..08a98ebb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/dc3200.h @@ -0,0 +1,54 @@ +/* dc3200.h + * + * Copyright (C) 2000,2001,2002 donn morrison - dmorriso@gulf.uvic.ca + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/**************************************************** + * kodak dc3200 digital camera driver library * + * for gphoto2 * + * * + * author: donn morrison - dmorriso@gulf.uvic.ca * + * date: dec 2000 - jan 2002 * + * license: gpl * + * version: 1.6 * + * * + ****************************************************/ + +#ifndef __DC3200_H__ +#define __DC3200_H__ + +#include + +#define CMD_LIST_FILES 0 +#define CMD_GET_PREVIEW 1 +#define CMD_GET_FILE 2 + +#define TIMEOUT 750 + +struct _CameraPrivateLibrary { + int pkt_seqnum; /* sequence number */ + int cmd_seqnum; /* command seqnum */ + int rec_seqnum; /* last received seqnum */ + int debug; + time_t last; /* remember last recv time */ + GPContext *context; /* for progress updates */ +}; + +int check_last_use(Camera *camera); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/library.c new file mode 100644 index 00000000..d6f98c23 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/library.c @@ -0,0 +1,1020 @@ +/* library.c + * + * Copyright (C) 2000,2001,2002 donn morrison - dmorriso@gulf.uvic.ca + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/**************************************************** + * kodak dc3200 digital camera driver library * + * for gphoto2 * + * * + * author: donn morrison - dmorriso@gulf.uvic.ca * + * date: dec 2000 - jan 2002 * + * license: gpl * + * version: 1.6 * + * * + ****************************************************/ + +#include "config.h" +#include "library.h" + +#include +#include +#include +#include +#include +#include +#include + +#include "dc3200.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +/* + * FIXME: Use properly sized integer types. The dc3200 code used lots + * of u_char, u_long, u_int, which may be wrong on non-32bit systems. + */ + +/* #define DEBUG */ + +/* + * dc3200_set_speed + * + * handshakes a baud rate with the camera + * + */ +int dc3200_set_speed(Camera *camera, int baudrate) +{ + int baudcode = C9600; + unsigned char resp[INI_PACKET_LEN], msg[INI_PACKET_LEN]; + int resp_len = INI_PACKET_LEN, msg_len = INI_PACKET_LEN; + + msg[0] = 0xAF; + msg[1] = 0x00; + + switch(baudrate) { + case 9600: + baudcode = C9600; + break; + case 19200: + baudcode = C19200; + break; + case 38400: + baudcode = C38400; + break; + case 57600: + baudcode = C57600; + break; + case 115200: + baudcode = C115200; + break; + default: + printf("unsupported baudrate: %d.\n", baudrate); + return GP_ERROR; + } + + msg[2] = baudcode; + + /* send our preferred baud rate */ + if(dc3200_send_command(camera, msg, msg_len, resp, &resp_len) == GP_ERROR) + return GP_ERROR; + /* the camera responds with our preferred baud rate or its + * maximum baud rate, whichever is lowest + */ + + /* compile a confirmation packet */ + msg[0] = 0x9F; + msg[1] = 0x00; + if(resp_len == 2) { + msg_len = 2; + } else { + /* calculate reply baud handshake */ + msg[2] = (resp[2] + 1) / 2; + msg_len = INI_PACKET_LEN; + } + + if(dc3200_send_command(camera, msg, msg_len, resp, &resp_len) == GP_ERROR) + return GP_ERROR; + + if(resp_len == 2) { + /* set the handshaked baudrate + * supports only 9600 + */ + return C9600; + } else if(resp[1] == 0x01) { + /* set the handshaked baudrate */ + return (resp[2]*2) - 1; + } else { + /* unknown baud */ + return GP_ERROR; + } + + return GP_ERROR; +} + +/* + * dc3200_setup + * + * sends two commands essential for survival + * + */ +int dc3200_setup(Camera *camera) +{ + /* + * some strange commands that must be + * completed after initialization and + * before any camera access + * + * version info? ... + * + */ + + unsigned char cmd1[5] = {0x01, 0, 0x01, 0x00, 0x0F}; + unsigned char cmd2[8] = {0x01, 0, 0x80, 0x00, 0x01, 0x81, 0x00, 0x03}; + + unsigned char ack[ACK_PACKET_LEN], resp[DEF_PACKET_LEN]; + int ack_len = ACK_PACKET_LEN, resp_len = DEF_PACKET_LEN; + + cmd1[1] = dc3200_calc_seqnum(camera); + cmd2[1] = dc3200_calc_seqnum(camera); + + if(dc3200_send_command(camera, cmd1, sizeof(cmd1), ack, &ack_len) == GP_ERROR) + return GP_ERROR; + if(dc3200_check_ack(camera, ack, ack_len) == GP_ERROR) + return GP_ERROR; + if(dc3200_recv_response(camera, resp, &resp_len) == GP_ERROR) + return GP_ERROR; + if(dc3200_send_ack(camera, resp[1]) == GP_ERROR) + return GP_ERROR; + + if(dc3200_send_command(camera, cmd2, sizeof(cmd2), ack, &ack_len) == GP_ERROR) + return GP_ERROR; + if(dc3200_check_ack(camera, ack, ack_len) == GP_ERROR) + return GP_ERROR; + if(dc3200_recv_response(camera, resp, &resp_len) == GP_ERROR) + return GP_ERROR; + if(dc3200_send_ack(camera, resp[1]) == GP_ERROR) + return GP_ERROR; + + /* set the cmd sequence number */ + camera->pl->cmd_seqnum = 0; + camera->pl->rec_seqnum = 0; + + return GP_OK; +} + + +/* + * dc3200_get_data + * + * retrieves data from the camera as either file + * data or file/folder list data + * + */ + + /* command to retrieve directory listing + unsigned char list_pkt[DEF_PACKET_LEN] = {0x01, dc3200_calc_seqnum(camera), 0x80, 0x00, 0x20, 0x03, 26 + strlen(filename), + 0xc1, 0x50, 0x00, 0x00, 0x00, 0x00, 19 + strlen(filename), + 0x04, 0x01, 0x00, 0x01, 0x00, 0x01, 0x60, 0x01, 0x00, 0x01, 0x00, 0x05, + 0x00, 0x00, 0x00, 2 + strlen(filename), 0x01}; + */ + /* command to get the picture + unsigned char get_pkt[DEF_PACKET_LEN] = {0x01, calc_seqnum(), 0x80, 0x00, 0x20, 0x03, 26 + strlen(filename), + 0xC1, 0x50, 0x00, 0x00, 0x00, 0x00, 19 + strlen(filename), + 0x04, 0x01, 0x00, 0x01, 0x01, 0x04, 0x60, 0x10, 0x00, 0x01, 0x00, 0x05, + 0x00, 0x00, 0x00, 2 + strlen(filename), 0x01}; + */ + +int dc3200_get_data(Camera *camera, unsigned char **data, unsigned long *data_len, int command, const char *folder, const char *filename) +{ + unsigned char ack[ACK_PACKET_LEN], resp[DEF_PACKET_LEN]; + int ack_len = ACK_PACKET_LEN, resp_len = DEF_PACKET_LEN; + unsigned long num_left = 0; + int data_start_pos = 0; + unsigned char *ptr_data = NULL; + unsigned int pid = 0; + + /* command bytes */ + unsigned char cb1=0x00,cb2=0x00,cb3=0x00; + + /* packet parts */ + unsigned char pkt_hdr[7]; + unsigned char pkt_typ[7]; + unsigned char pkt_cmd[12]; + unsigned char pkt_len[5]; + + unsigned char *packet; + int packet_len; + char *file = NULL; + char *ptr = NULL; + + if(folder) { + if(filename) { + file = malloc(strlen(folder) + strlen(filename) + 2); + if(!file) + return GP_ERROR; + + /* concatenate the folder + filename */ + strncpy(file, folder, strlen(folder)); + file[strlen(folder)] = 0; + /* append the filename */ + if(folder[strlen(folder)-1] != '\\') + strcat(file, "\\"); + strncat(file, filename, strlen(filename)); + + } else { + file = malloc(strlen(folder) + 2); + if(!file) + return GP_ERROR; + + strncpy(file, folder, strlen(folder)); + file[strlen(folder)] = 0; + } + } else { + return GP_ERROR; + } + + /* change all /'s to \'s */ + while((ptr = strchr(file, '/'))) { + ptr[0] = '\\'; + } + + /* there should not be a trailing '\', except for root folder */ + if(strlen(file) > 1 && file[strlen(file)-1] == '\\') + file[strlen(file)-1] = 0; + + switch (command) { + case CMD_GET_PREVIEW: + cb1 = 0x02; cb2 = 0x70; cb3 = 0x11; + break; + case CMD_GET_FILE: + cb1 = 0x01; cb2 = 0x60; cb3 = 0x10; + break; + case CMD_LIST_FILES: + cb1 = 0x01; cb2 = 0x60; cb3 = 0x01; + break; + } + + camera->pl->cmd_seqnum++; + + pkt_hdr[0] = 0x01; + pkt_hdr[1] = dc3200_calc_seqnum(camera); + pkt_hdr[2] = 0x80; pkt_hdr[3] = 0x00; pkt_hdr[4] = 0x20; pkt_hdr[5] = 0x03; + pkt_hdr[6] = 26 + strlen(file); + + pkt_typ[0] = 0xC1; + pkt_typ[1] = 0x50; + pkt_typ[2] = 0x00; pkt_typ[3] = 0x00; pkt_typ[4] = 0x00; pkt_typ[5] = 0x00; + pkt_typ[6] = 19 + strlen(file); + + pkt_cmd[0] = 0x04; pkt_cmd[1] = cb1; /* cmd */ + pkt_cmd[2] = 0x00; pkt_cmd[3] = 0x01; /* ??? */ + pkt_cmd[4] = (camera->pl->cmd_seqnum >> 8) & 0xff; pkt_cmd[5] = camera->pl->cmd_seqnum & 0xff; /* SEQ */ + pkt_cmd[6] = cb2; pkt_cmd[7] = cb3; /* cmd */ + pkt_cmd[8] = 0x00; pkt_cmd[9] = 0x01; /* ??? */ + pkt_cmd[10] = 0x00; pkt_cmd[11] = 0x05; /* ??? */ + + pkt_len[0] = 0x00; pkt_len[1] = 0x00; pkt_len[2] = 0x00; + pkt_len[3] = strlen(file) + 2; + pkt_len[4] = 0x01; + + packet_len = sizeof(pkt_hdr) + sizeof(pkt_typ) + sizeof(pkt_cmd) + sizeof(pkt_len) + strlen(file) + 2; + packet = malloc(packet_len); + if(!packet) { + free(file); + return GP_ERROR; + } + + /* clear packet */ + memset(packet, 0, packet_len); + + /* copy pkt parts into packet */ + memcpy(packet, pkt_hdr, sizeof(pkt_hdr)); + memcpy(packet + sizeof(pkt_hdr), pkt_typ, sizeof(pkt_typ)); + memcpy(packet + sizeof(pkt_hdr) + sizeof(pkt_typ), pkt_cmd, sizeof(pkt_cmd)); + memcpy(packet + sizeof(pkt_hdr) + sizeof(pkt_typ) + sizeof(pkt_cmd), pkt_len, sizeof(pkt_len)); + memcpy(packet + sizeof(pkt_hdr) + sizeof(pkt_typ) + sizeof(pkt_cmd) + sizeof(pkt_len), file, strlen(file)); + + free(file); + + /* send the command to list files */ + if(dc3200_send_command(camera, packet, packet_len, ack, &ack_len) == GP_ERROR){ + free(packet); + return GP_ERROR; + } + + free(packet); + + do { + resp_len = DEF_PACKET_LEN; + if(dc3200_recv_response(camera, resp, &resp_len) == GP_ERROR) { + return GP_ERROR; + } + + if(dc3200_send_ack(camera, resp[1]) == GP_ERROR) { + return GP_ERROR; + } + + if(resp[1] == camera->pl->rec_seqnum) + continue; + + camera->pl->rec_seqnum = resp[1]; + + /* + * we decide what action to take based on + * the number of packets we are expecting + * + * resp[7] holds this info + * + */ + switch(resp[7]) { + case 0xC1: + /* + * SINGLE PACKET + */ + + /* get the total list length from the data header */ + *data_len = bytes_to_l(resp[26], resp[27], resp[28], resp[29]); + num_left = 0; + data_start_pos = 31; + *data_len -= 1; + + /* allocate a buffer to store all this data */ + *data = malloc(*data_len); + if(*data == NULL) { + return GP_ERROR; + } + + ptr_data = *data; + + /* copy this portion of the data */ + memcpy(ptr_data, resp + data_start_pos, resp_len - data_start_pos); + /* incr the buff ptr */ + ptr_data += resp_len - data_start_pos; + break; + + case 0x41: + /* + * MULTIPACKET, START + */ + + /* get the total list length from the data header */ + *data_len = bytes_to_l(resp[34], resp[35], resp[36], resp[37]); + num_left = bytes_to_l(resp[12], resp[13], resp[14], resp[15]); + data_start_pos = 39; + *data_len -= 1; + + /* allocate a buffer to store all this data */ + *data = malloc(*data_len); + if(*data == NULL) { + return GP_ERROR; + } + + ptr_data = *data; + + /* copy this portion of the data */ + memcpy(ptr_data, resp + data_start_pos, resp_len - data_start_pos); + /* incr the data ptr */ + ptr_data += resp_len - data_start_pos; + + /* update gphoto2 frontend */ + if(command == CMD_GET_FILE || command == CMD_GET_PREVIEW) + { + pid = gp_context_progress_start(camera->pl->context,(int)*data_len,"%s", filename); + gp_context_progress_update(camera->pl->context, pid, ptr_data - *data); + if(gp_context_cancel(camera->pl->context) == GP_CONTEXT_FEEDBACK_CANCEL) { + free(*data); + dc3200_cancel_get_data(camera); + return GP_ERROR_CANCEL; + } + } + break; + case 0x01: + /* + * MULTIPACKET, MIDDLE + */ + /* calculate the number of packets remaining */ + num_left = bytes_to_l(resp[12], resp[13], resp[14], resp[15]); + data_start_pos = 16; + + if(*data == NULL) { + return GP_ERROR; + } + + /* copy this portion of the data */ + memcpy(ptr_data, resp + data_start_pos, resp_len - data_start_pos); + /* incr the buff ptr */ + ptr_data += resp_len - data_start_pos; + + /* update gphoto2 frontend */ + if(command == CMD_GET_FILE || command == CMD_GET_PREVIEW) + { + gp_context_progress_update(camera->pl->context, pid, ptr_data - *data); + if(gp_context_cancel(camera->pl->context) == GP_CONTEXT_FEEDBACK_CANCEL) { + free(*data); + dc3200_cancel_get_data(camera); + return GP_ERROR_CANCEL; + } + } + break; + case 0x81: + /* + * MULTIPACKET, END + */ + /* calculate the number of packets remaining */ + num_left = bytes_to_l(resp[12], resp[13], resp[14], resp[15]); + data_start_pos = 16; + + if(*data == NULL) { + return GP_ERROR; + } + + /* copy this portion of the data */ + memcpy(ptr_data, resp + data_start_pos, resp_len - data_start_pos); + /* incr the buff ptr */ + ptr_data += resp_len - data_start_pos; + + /* update gphoto2 frontend */ + if(command == CMD_GET_FILE || command == CMD_GET_PREVIEW) + { + gp_context_progress_update(camera->pl->context, pid, ptr_data - *data); + if(gp_context_cancel(camera->pl->context) == GP_CONTEXT_FEEDBACK_CANCEL) { + free(*data); + dc3200_cancel_get_data(camera); + return GP_ERROR_CANCEL; + } + } + break; + default: + return GP_ERROR; + } + } while(num_left > 1); + + if(pid != 0 && (command == CMD_GET_FILE || command == CMD_GET_PREVIEW)) + gp_context_progress_stop(camera->pl->context, pid); + + return GP_OK; +} + +/* + * dc3200_cancel_get_data + * + * stops a get data command + * + */ +int dc3200_cancel_get_data(Camera *camera) +{ + unsigned char pkt[20] = {0x01, 0, 0x80, 0x00, 0x20, 0x03, 0x0d, 0xc1, 0x50, 0xc0, + 0x00, 0x00, 0x00, 0x06, 0x04, 0x01, 0x00, 0x01, 0, 0}; + unsigned char ack[ACK_PACKET_LEN], resp[DEF_PACKET_LEN]; + int ack_len = ACK_PACKET_LEN, resp_len = DEF_PACKET_LEN; + + pkt[1] = dc3200_calc_seqnum(camera); + pkt[18] = (camera->pl->cmd_seqnum >> 8) & 0xff; + pkt[19] = camera->pl->cmd_seqnum & 0xff; + + /* wait a bit ... */ + sleep(1); + + /* clear the buffer */ + dc3200_clear_read_buffer(camera); + + if(dc3200_send_command(camera, (unsigned char *)pkt, 20, ack, &ack_len) == GP_ERROR) + return GP_ERROR; + + if(dc3200_recv_response(camera, resp, &resp_len) == GP_ERROR) + return GP_ERROR; + else + dc3200_send_ack(camera, resp[1]); + + resp_len = DEF_PACKET_LEN; + if(dc3200_recv_response(camera, resp, &resp_len) == GP_ERROR) + return GP_ERROR; + else + dc3200_send_ack(camera, resp[1]); + + return GP_OK; +} + +/* + * dc3200_send_command + * + * if cmd == NULL || cmd_len == 0, send_command waits for a response + * otherwise, it sends a command and waits for an acknowledgement + * + */ +int dc3200_send_command(Camera *camera, unsigned char *cmd, int cmd_len, unsigned char *ack, int *ack_len) +{ + int sends, reads; + int buff_len = *ack_len; + int received = 0; + unsigned char *buff = NULL; + + buff = malloc(sizeof(unsigned char) * *ack_len); + if(buff == NULL) { + return GP_ERROR; + } + + sends = SEND_RETRIES; + + while(sends > 0) { + reads = READ_RETRIES; + /* check that we are acutally sending a command + * and not just waiting for data + */ + if(cmd != NULL && cmd_len > 0) { + /* clear the read buffer */ + dc3200_clear_read_buffer(camera); + + /* send the command */ + dc3200_send_packet(camera, cmd, cmd_len); + } + + /* wait for response */ + while(reads > 0) { + if(dc3200_recv_packet(camera, buff, &buff_len) != GP_ERROR) { + received = 1; + break; + } + reads--; + } + + if(received) { + if(buff_len > *ack_len) { + /* buffer size too small */ + free(buff); + return GP_ERROR; + } + + /* sukksess */ + *ack_len = buff_len; + memcpy(ack, buff, buff_len); + free(buff); + return GP_OK; + } else { + sends--; + } + } + + /* send failed */ + free(buff); + return GP_ERROR; +} + +/* + * dc3200_recv_response + * + * receives a response from a previous command + * + */ +int dc3200_recv_response(Camera *camera, unsigned char *resp, int *resp_len) +{ + return dc3200_send_command(camera, NULL, 0, resp, resp_len); +} + +/* + * dc3200_send_ack + * + * sends an ack packet + * + */ +int dc3200_send_ack(Camera *camera, int seqnum) +{ + unsigned char ack[ACK_PACKET_LEN]; + ack[0] = 0x01; + ack[1] = seqnum + 16; + + return dc3200_send_packet(camera, ack, sizeof(ack)); +} + +/* + * dc3200_check_ack + * + * checks an ack packet (well ok not really) + * + */ +int dc3200_check_ack(Camera *camera, unsigned char *ack, int ack_len) +{ + return GP_OK; +} + +/* + * dc3200_send_packet + * + * compiles a packet from data and sends it + * + */ +int dc3200_send_packet(Camera *camera, unsigned char *data, int data_len) +{ + int res; + + int buff_len = data_len; + unsigned char *buff = NULL; + + buff = malloc(sizeof(unsigned char) * buff_len); + if(!buff) + return GP_ERROR; + + memcpy(buff, data, buff_len); + + /* compile this into a packet */ + res = dc3200_compile_packet(camera, &buff, &buff_len); + if(res == GP_ERROR) + return res; + +#ifdef DEBUG + dump_buffer(buff, buff_len, "s", 16); +#endif + res = gp_port_write(camera->port, (char *)buff, data_len + 3); + free(buff); + return res; +} + +/* + * dc3200_recv_packet + * + * waits for a packet to arrive, checks it, and returns it + * + */ +int dc3200_recv_packet(Camera *camera, unsigned char *data, int *data_len) +{ + int complete = 0; + int num_read = 0, res = 0, fails = 0; + + /* allocate storage for size, checksum, and EOP */ + unsigned char *buff = NULL; + + buff = malloc(sizeof(unsigned char) * (*data_len + 3)); + if(buff == NULL) + return GP_ERROR; + + memset(buff, 0, *data_len + 3); + + /* + * - read data until we get an 0xFF + * - process packet + * + */ + + res = gp_port_read(camera->port, (char *)&buff[num_read], 1); + + while(res >= 0 && fails < READ_RETRIES) { + if(res == 0) { + /* read nothing */ + fails++; + } else { + /* reset # of fails */ + fails = 0; + num_read++; + if(buff[num_read-1] == 0xFF) { + complete = 1; + break; + } + if(num_read == *data_len + 3) { + /* we've reached the buffer limit */ + complete = 0; + break; + } + } + res = gp_port_read(camera->port, (char *)&buff[num_read], 1); + } + + if(!complete) { + /* packet incomplete */ + free(buff); + return GP_ERROR; + } + +#ifdef DEBUG + dump_buffer(buff, num_read, "r", 16); +#endif + + if(dc3200_process_packet(camera, buff, &num_read) == GP_ERROR) { + free(buff); + return GP_ERROR; + } + + /* save the last successful packet received time */ + time(&(camera->pl->last)); + + memcpy(data, buff, *data_len); + + /* return with new packet size */ + *data_len = num_read; + + free(buff); + return GP_OK; +} + +/* + * dc3200_compile_packet + * + * changes 0xFF -> 0xFE 0x01 + * 0xFE -> 0xFE 0x00 + * adds packet length, checksum, and EOP (0xFF) + * + */ +int dc3200_compile_packet(Camera *camera, unsigned char **data, int *data_len) +{ + int count, i, j; + unsigned char *new_data = NULL; + unsigned char *tmp_ptr = NULL; + + /* realloc + 2 for len and checksum */ + *data_len += 2; + + tmp_ptr = (unsigned char*)realloc(*data, *data_len); + if(tmp_ptr == NULL) + return GP_ERROR; + + *data = tmp_ptr; + + /* add length, checksum */ + (*data)[*data_len - 2] = *data_len - 2; + (*data)[*data_len - 1] = dc3200_calc_checksum(camera, *data, *data_len - 1); + + /* this is a hack to fix the 0xFF/0xFE problem. + * we adjust a "don't care" byte so the checksum + * is not 0xFF or 0xFE + */ + if((*data)[*data_len - 1] >= 0xFE) { + if(*data_len > 19) { + (*data)[19] += 2; + (*data)[*data_len - 1] = dc3200_calc_checksum(camera, *data, *data_len - 1); + printf("adjusting checksum to %02x\n", (*data)[*data_len - 1]); + } + } + + /* count number of 0xfe's and 0xff's */ + count = 0; + for(i=0;i<*data_len; i++) { + if((*data)[i] == 0xFE || (*data)[i] == 0xFF) + count++; + } + + new_data = (unsigned char*)malloc(*data_len + count + 3); /* 3 for length, checksum, EOP */ + if(!new_data) + return GP_ERROR; + + j = 0; + for(i=0;i<*data_len; i++) { + if((*data)[i] == 0xFE || (*data)[i] == 0xFF) { + printf("(*data)[i] == %02x\n", (*data)[i]); + printf("(*data)[i] - 0xFE == %02x\n", (*data)[i] - 0xFE); + new_data[j++] = 0xFE; + new_data[j++] = (*data)[i] - 0xFE; + } else { + new_data[j++] = (*data)[i]; + } + } + + /* adjust the new packet count */ + *data_len += count + 1; + + new_data[*data_len - 1] = 0xFF; + + /* free the old packet data */ + free(*data); + + /* set the ptr */ + *data = new_data; + + return GP_OK; +} + +/* + * dc3200_process_packet + * + * changes 0xFE 0x01 -> 0xFF + * 0xFE 0x00 -> 0xFE + * checks & removes packet length, checksum, EOP (0xFF) + * + */ +int dc3200_process_packet(Camera *camera, unsigned char *data, int *data_len) +{ + int count = 0, i; + int length, checksum; + unsigned char *buff; + + if(data == NULL || *data_len < 1) { + return GP_ERROR; + } + + /* allocate a new buffer */ + buff = (unsigned char*)malloc(sizeof(unsigned char) * *data_len); + if(!buff) + return GP_ERROR; + + /* change 0xFE 0x00 | 0x01 -> 0xFF | 0xFE */ + for(i=0; i<*data_len; i++) { + if(data[i] == 0xFE) { + if(i<*data_len-1) { /* so we don't run out of array bounds */ + if(data[i+1] == 0x00) { + buff[count] = 0xFE; + /* advance i so we don't pick up the trailing byte */ + i++; + /* incr count */ + count++; + } else if(data[i+1] == 0x01) { + buff[count] = 0xFF; + i++; + count++; + } + } else { + /* we've found an 0xFE but there is no trailing byte */ + free(buff); + return GP_ERROR; + } + } else { + buff[count] = data[i]; + count++; + } + } + + /* copy over the old buffer */ + memcpy(data, buff, count); + + length = data[count - 3]; + checksum = data[count - 2]; + + /* make sure its a valid packet */ + if(length != count - 3 || checksum != dc3200_calc_checksum(camera, data, count - 2)) { + printf("%02x=%02x %02x=%02x\n", length, count - 3, checksum, dc3200_calc_checksum(camera, data, count - 2)); + free(buff); + return GP_ERROR; + } + + /* adjust packet size, strip length, checksum, EOP */ + *data_len = count - 3; + + free(buff); + return GP_OK; +} + +/* + * dc3200_calc_checksum + * + * calculates the checksum for a byte array + * + */ +int dc3200_calc_checksum(Camera *camera, unsigned char * buffer, int len) +{ + int sum = 0, i; + + for(i=0; ipl->pkt_seqnum >= 0x1F || camera->pl->pkt_seqnum < 0x10) { + camera->pl->pkt_seqnum = 0x10; + return camera->pl->pkt_seqnum; + } else { + camera->pl->pkt_seqnum++; + return camera->pl->pkt_seqnum; + } +} + +/* + * dc3200_keep_alive + * + * sends and receives a ping packet to keep the + * camera awake + * + */ +int dc3200_keep_alive(Camera *camera) +{ + unsigned char ka[ACK_PACKET_LEN]; /* keepalive */ + unsigned char ak[ACK_PACKET_LEN]; /* keepalive ack */ + int ak_len = ACK_PACKET_LEN; + + ka[0] = 0xCF; + ka[1] = 0x01; + + /* send keep alive packet */ + if(dc3200_send_command(camera, ka, sizeof(ka), ak, &ak_len) == GP_ERROR) { + return GP_ERROR; + } + + /* check the ack (should be same packet) */ + if(memcmp(ak,ka,ak_len) == 0) { + return GP_OK; + } + + return GP_ERROR; +} + +/* + * dc3200_clear_read_buffer + * + * clears data in the read buffer by reading it out + * + * there is definitely a better way to accomplish this... + * + */ +int dc3200_clear_read_buffer(Camera *camera) +{ + unsigned char byte; + int count = 0; + + gp_port_set_timeout(camera->port, 0); + + while(gp_port_read(camera->port, (char *)&byte, 1) > 0) + count++; + + if(count > 0) + printf("cleared %d bytes from read buffer\n", count); + + gp_port_set_timeout(camera->port, TIMEOUT); + + return GP_OK; +} + +/* + * dump_buffer + * + * displays a byte array nicely formatted in hex format + * + */ +int dump_buffer(unsigned char * buffer, int len, char * title, int bytesperline) +{ + char spacer[80]; + int i; + + memset(spacer, 0, sizeof(spacer)); + memset(spacer, ' ', strlen(title)+2); + + printf("%s: ", title); + + for(i=0; i 0) { + printf("\n%s", spacer); + } + printf("%02x ", buffer[i]); + } + + printf("\n"); + + printf("%s: ", title); + + for(i=0; i 0) { + printf("\n%s", spacer); + } + if(buffer[i] >= 0x20 && buffer[i] < 0x7F) { + printf("%c", buffer[i]); + } else { + printf("."); + } + } + + printf("\n"); + + return GP_OK; +} + +unsigned long bytes_to_l(int a, int b, int c, int d) +{ + unsigned long res = a; + res = res << 24 | b << 16 | c << 8 | d; + return res; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/library.h new file mode 100644 index 00000000..e22ff5d6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/dc3200/library.h @@ -0,0 +1,98 @@ +/* library.h + * + * Copyright (C) 2000,2001,2002 donn morrison - dmorriso@gulf.uvic.ca + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/**************************************************** + * kodak dc3200 digital camera driver library * + * for gphoto2 * + * * + * author: donn morrison - dmorriso@gulf.uvic.ca * + * date: dec 2000 - jan 2002 * + * license: gpl * + * version: 1.6 * + * * + ****************************************************/ + +#ifndef __LIBRARY_H__ +#define __LIBRARY_H__ + +#include + +/* retries */ +#define READ_RETRIES 2 +#define ACK_RETRIES 2 +#define SEND_RETRIES 4 + +/* packet sizes */ +#define DEF_PACKET_LEN 256 +#define ACK_PACKET_LEN 2 +#define INI_PACKET_LEN 3 + +/* command types */ +#define SETBAUD1 0xAF +#define SETBAUD2 0x9F +#define PING 0xCF +#define COMMAND 0x01 + +/* dc3200 baud rate values + * + * baud baudcode(ask) baudcode2(confirm) + * 9600 0x00 -- + * 19200 0x01 0x01 + * 38400 0x03 0x02 + * 57600 0x07 0x04 + * 115200 0x0F 0x08 + * + * except for 9600, baudcode = (baudcode2 + 1) / 2 + * + */ +#define C9600 0x00 +#define C19200 0x01 +#define C38400 0x03 +#define C57600 0x07 +#define C115200 0x0F + +int dc3200_set_speed(Camera *camera, int baudrate); +int dc3200_setup(Camera *camera); + +int dc3200_get_data(Camera *camera, unsigned char **data, unsigned long *data_len, int command, const char *folder, const char *filename); +int dc3200_cancel_get_data(Camera *camera); + +int dc3200_send_command(Camera *camera, unsigned char *cmd, int cmd_len, unsigned char *ack, int *ack_len); +int dc3200_recv_response(Camera *camera, unsigned char *resp, int *resp_len); + +int dc3200_send_packet(Camera *camera, unsigned char *data, int data_len); +int dc3200_recv_packet(Camera *camera, unsigned char *data, int *data_len); + +int dc3200_compile_packet(Camera *camera, unsigned char **data, int *data_len); +int dc3200_process_packet(Camera *camera, unsigned char *data, int *data_len); + +int dc3200_send_ack(Camera *camera, int seqnum); +int dc3200_check_ack(Camera *camera, unsigned char *ack, int ack_len); + +int dc3200_calc_checksum(Camera *camera, unsigned char *data, int data_len); +int dc3200_calc_seqnum(Camera *camera); + +int dc3200_keep_alive(Camera *camera); +int dc3200_clear_read_buffer(Camera *camera); + +int dump_buffer(unsigned char * buffer, int len, char *title, int bytesperline); +unsigned long bytes_to_l(int a, int b, int c, int d); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/ChangeLog new file mode 100644 index 00000000..e62c44fb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/ChangeLog @@ -0,0 +1,7 @@ +2007-06-04 Marcus Meissner + + * ez200.c, ez200.h, library.c: Collapsed the driver + into 1 file, ez200.c + + * ez200.c: Cleaned up, tightened code. + * ez200.c: Added delete-all. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/Makefile-files new file mode 100644 index 00000000..c7979690 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/Makefile-files @@ -0,0 +1,10 @@ +# -*- Makefile -*- + +EXTRA_DIST += kodak/ez200/Protocol.txt kodak/ez200/ez200-lsusb.txt kodak/ez200/ChangeLog + +EXTRA_LTLIBRARIES += kodak_ez200.la + +kodak_ez200_la_SOURCES = kodak/ez200/ez200.c +kodak_ez200_la_LDFLAGS = $(camlib_ldflags) +kodak_ez200_la_DEPENDENCIES = $(camlib_dependencies) +kodak_ez200_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/Protocol.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/Protocol.txt new file mode 100644 index 00000000..986898fb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/Protocol.txt @@ -0,0 +1,15 @@ +--------------------------------------------------------- +Request | Meaning | Reply +----------------+---------------+------------------------ + 0 | | c0 00 00 00 51 81 01 00 +-- - - - - - - -+ - - - - - - - + - - - - - - - - - - - - + 5 | ping | c0 05 00 00 01 00 01 00 +-- - - - - - - -+ - - - - - - - + - - - - - - - - - - - - + 6 | wait | c0 06 00 00 00 00 01 00 +-- - - - - - - -+ - - - - - - - + - - - - - - - - - - - - + 8 | ask pic NN | c1 08 NN 00 01 00 03 00 +-- - - - - - - -+ - - - - - - - + - - - - - - - - - - - - + 9 | erase | c1 09 00 00 01 00 03 00 +-- - - - - - - -+ - - - - - - - + - - - - - - - - - - - - + b | get jpg Header| c1 0b 03 00 03 00 6f 02 +-- - - - - - - -+ - - - - - - - + - - - - - - - - - - - - diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/ez200-lsusb.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/ez200-lsusb.txt new file mode 100644 index 00000000..810bd689 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/ez200-lsusb.txt @@ -0,0 +1,230 @@ +------------------------------------------------- +Bus 002 Device 002: ID 040a:0300 Kodak Co. EZ-200 +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 1.10 + bDeviceClass 255 Vendor Specific Class + bDeviceSubClass 255 Vendor Specific Subclass + bDeviceProtocol 255 Vendor Specific Protocol + bMaxPacketSize0 8 + idVendor 0x040a Kodak Co. + idProduct 0x0300 EZ-200 + bcdDevice 1.00 + iManufacturer 1 EASTMAN KODAK COMPANY + iProduct 2 Kodak EZ200 DIGITAL CAMERA + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 167 + bNumInterfaces 2 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0x80 + (Bus Powered) + MaxPower 500mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0000 1x 0 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 1 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0080 1x 128 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 2 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0180 1x 384 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 3 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0200 1x 512 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 4 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0280 1x 640 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 5 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0300 1x 768 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 6 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0380 1x 896 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 7 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x03ff 1x 1023 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 1 + bAlternateSetting 0 + bNumEndpoints 3 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x82 EP 2 IN + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0040 1x 64 bytes + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x03 EP 3 OUT + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0040 1x 64 bytes + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x84 EP 4 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0001 1x 1 bytes + bInterval 8 +Device Status: 0x0001 + Self Powered +---------------------------------------------------------------------------- diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/ez200.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/ez200.c new file mode 100644 index 00000000..ea8e4f09 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/kodak/ez200/ez200.c @@ -0,0 +1,349 @@ +/* ez200.c + * + * Copyright (C) 2004 Bucas Jean-Francois + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include +#include +#include +#include +#include +#include + +#include +#include + +#define PING 0x05 +#define STATUS 0x06 +#define PICTURE 0x08 +#define ERASE 0x09 +#define PICTURE_HEAD 0x0b +#define ACTIVE 0xe0 + +#define JPG_HEADER_SIZE 0x24D /* 589 */ +#define HEADER_SIZE 0x26F +#define DATA_HEADER_SIZE 0x200 + +typedef unsigned char Info; + +typedef enum { + MODEL_MINI +} Model; + +#define GP_MODULE "ez200" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define WRITE gp_port_usb_msg_write +#define READ gp_port_usb_msg_read + +static int +ez200_wait_status_ok(GPPort *port) { + char c = 0; + + do READ(port, STATUS, 0, 0, &c, 1); + while (c != 0); /* Wait */ + return GP_OK; +} + +/* enter photo mode */ +static int +ez200_init (GPPort *port, Model *model, Info *info) { + char c = 0; + + GP_DEBUG("Running ez200_init"); + + WRITE(port, ACTIVE, 0, 1, NULL, 0); /* index = 1; */ + ez200_wait_status_ok(port); + + /* get number of pictures */ + READ(port, PICTURE, 0, 0, &c, 1); + memcpy (info, &c, 1); + GP_DEBUG("number of pics : %i", c); + return GP_OK; +} + +/* quit photo mode */ +static int +ez200_exit (GPPort *port) { + WRITE(port, ACTIVE, 0, 0, NULL, 0); /* index = 0; */ + ez200_wait_status_ok(port); + return GP_OK; +} + +#define ez200_get_num_pics(info) info[0] + +static int +ez200_get_picture_size (GPPort *port, int n) { + unsigned char c[4]; + unsigned int size = 0; + memset (c,0,sizeof(c)); + + GP_DEBUG("Running ez200_get_picture_size"); + + READ(port, PICTURE, n, 1, (char *)c, 3); + size = (int)c[0] + (int)c[1]*0x100 + (int)c[2]*0x10000; + + GP_DEBUG(" size of picture %i is 0x%x = %i byte(s)", n, size, size); + if ( (size >= 0xfffff ) ) { return GP_ERROR; } + return size; +} + +static int +ez200_read_data (GPPort *port, char *data, int size) { + int MAX_BULK = 0x1000; + + /* Read Data by blocks */ + while(size > 0) { + int len = (size>MAX_BULK)?MAX_BULK:size; + gp_port_read (port, data, len); + data += len; + size -= len; + } + return 1; +} + +static int +ez200_read_picture_data (GPPort *port, char *data, int size, int n) { + char c[4]; + + memset(c,0,sizeof(c)); + /* ask picture n transfert */ + READ(port, PICTURE, n, 1, c, 3); + ez200_read_data (port, data, size); + return GP_OK; +} + + +/* after read_picture_data, we can retrieve the header by : */ +static int +ez200_read_picture_header(GPPort *port, char *data) { + /* lecture de l'entete :: read header of picture */ + READ(port, PICTURE_HEAD, 3, 3, data, HEADER_SIZE); + return GP_OK; +} + +struct _CameraPrivateLibrary { + Model model; + Info info[2]; +}; + +static const struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {"Kodak EZ200", GP_DRIVER_STATUS_PRODUCTION, 0x040a, 0x0300}, + {NULL,0,0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Kodak EZ200 camera"); + return GP_OK; +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].name); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + a.operations = GP_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + a.file_operations = GP_FILE_OPERATION_NONE; + gp_abilities_list_append (list, a); + } + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) { + sprintf (summary->text,_("Your USB camera is a Kodak EZ200.\n" + "Number of PICs = %i\n" + ), ez200_get_num_pics(camera->pl->info)); + return GP_OK; +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) { + strcpy (about->text, _("Kodak EZ200 driver\nBucas Jean-Francois \n")); + return GP_OK; +} + +/* + * doesnt work, just creates a empty file. +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) { + unsigned char c[3]; + int size; + char *data; + WRITE(camera->port,0,0x8003,0,NULL,0); + WRITE(camera->port,5,0x0000,0,NULL,0); + + return GP_OK; +} +*/ + + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) { + Camera *camera = data; + + WRITE (camera->port, ERASE, 0, 1, NULL, 0); + ez200_wait_status_ok(camera->port); + return GP_OK; +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) { + Camera *camera = data; + + return gp_list_populate (list, "ez200_pic%03i.jpg", ez200_get_num_pics (camera->pl->info)); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int n, len; + char *data, *data_start; + + n = gp_filesystem_number(camera->fs, "/", filename, context); + if (nport, n); + GP_DEBUG("len = %i", len); + if (len < GP_OK) return len; + + data = (char *)malloc(len + HEADER_SIZE + 1); + if (!data) return GP_ERROR_NO_MEMORY; + + data_start = data + (HEADER_SIZE - DATA_HEADER_SIZE); + GP_DEBUG("data - data_start : %p %p : %lx",data, data_start, (long) (data_start - data)); + + ez200_read_picture_data (camera->port, data_start, len, n); + ez200_read_picture_header (camera->port, data); + switch (type) { + case GP_FILE_TYPE_PREVIEW: + case GP_FILE_TYPE_NORMAL: + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_data_and_size (file, data, len + HEADER_SIZE + 1); + break; + case GP_FILE_TYPE_RAW: + gp_file_set_data_and_size (file, data, len); + gp_file_set_mime_type (file, GP_MIME_RAW); + gp_file_adjust_name_for_mime_type(file); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + return GP_OK; +} + +static int +camera_exit (Camera *camera, GPContext *context) { + GP_DEBUG ("Kodak EZ200 camera_exit"); + ez200_exit (camera->port); + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .delete_all_func = delete_all_func, +}; + +int +camera_init(Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int ret = 0; + + /* First, set up all the function pointers */ + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + /*camera->functions->capture = camera_capture;*/ + + GP_DEBUG ("Initializing Kodak EZ200"); + ret = gp_port_get_settings(camera->port, &settings); + if (ret < 0) return ret; + + switch (camera->port->type) { + case GP_PORT_USB: + settings.usb.config = 0; + settings.usb.altsetting = 0; + settings.usb.interface = 1; + settings.usb.inep = 0x82; + settings.usb.outep = 0x03; + break; + default: + return ( GP_ERROR ); + } + + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) return ret; + + GP_DEBUG("interface = %i", settings.usb.interface); + GP_DEBUG("inep = %x", settings.usb.inep); + GP_DEBUG("outep = %x", settings.usb.outep); + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + + /* Connect to the camera */ + ez200_init (camera->port, &camera->pl->model, camera->pl->info); + GP_DEBUG("fin_camera_init"); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/COPYING b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/COPYING new file mode 100644 index 00000000..95e3c232 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright © 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright © + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright © year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/ChangeLog new file mode 100644 index 00000000..bf883418 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/ChangeLog @@ -0,0 +1,124 @@ +2004-03-25 Hubert Figuiere + + * qm150.c (k_getdata): + (camera_summary): fix C99 stuff for Solaris C compiler + See bug #923219. + +2003-12-17 Lutz Mueller + + Patch by Andreas Burmester : + + * lowlevel.c (l_receive): Don't write beyond allocated memory. + +2003-12-17 Lutz Mueller + + Patch by Andreas Burmester : + + * konica.c (k_check): unsigned. + +2003-12-11 Lutz Mueller + + Patches by Andreas Burmester : + + * library.c (camera_[get,set]_config: Months are counted from 1 to + 12 on the C200. + +2003-05-25 Marcus Meissner + Aurélien Croc (AP²C) + + * qm150.c: Reverse engineered Konica Q-M150 camera serial + protocol and implemented a basic driver. Still work in progress, + but picture download/deletion already possible. + +2003-02-27 Marcus Meissner + + * library.c: We support EXIF download. + +2002-11-20 Hans Ulrich Niedermann + + * Makefile.am: also tell driver that i18n stuff is in $(PACKAGE)/$(VERSION) + +2002-11-18 Lutz Müller + + * localization/Makefile.am: Install files in a $(PACKAGE)/$(VERSION) + subdir. + +2002-11-17 Marcus Meissner + + * library.c: Got rid of some broken long*/int*/time_t* casts. + (would break 64bit on big endian). + +2002-11-05 Lutz MÜller + + * Makefile.am + * localization/Makefile.am: Install files in a $(PACKAGE) subdir. + +2002-07-11 Lutz Müller + + * library.c: Add a couple of 'gp_context_idle's. + +2002-07-05 Lutz Müller + + * library.c: We can't change the name of files. + +2002-07-04 Lutz Müller + + * library.c: (camera_capture): Fix bug. + +2002-05-06 Lutz Müller + + * library.c: ping the camera every minute to prevent shutdown. + +2002-03-08 Marcus Meissner + + * lowlevel.c: When reading we do not need to escape that much, + the original HP PhotoSmart does not escape all characters. + +2002-03-04 Lutz Müller + + With the help of Thomas Ronayne : + + * lowlevel.c: DEFAULT_TIMEOUT now 1000 - C200 needs it. + +2002-03-04 Lutz Müller + + With the help of Thomas Ronayne : + + * konica.c (konica_get_image_info): The C200 needs up to 2 seconds + to respond. + * library.c: The image ids for a C200 are 2 bytes long, not 4. + +2002-01-29 Lutz Müller + + * library.h: Removed. + * konica.[c,h]: Prepare support for progress information. + +2002-01-13 Lutz Müller + + * library.c: More progress reporting. Remove references to + gp_camera_set_error. + +2002-01-11 Dan Fandrich + + * library.c: fgetc() returns type int, not char. + +2002-01-07 Lutz Müller + + * README: Removed duplicate camera models. + +2002-01-06 Lutz Müller + + * konica.c: #define PACKET_SIZE instead of using a static variable. + +2001-12-11 Lutz Müller + + * lowlevel.c: Clean up. + +2001-12-11 Lutz Müller + + * lowlevel.c: Fix bug introduced with last patch. + +2001-12-09 Lutz Müller + + * lowlevel.c: Do not read one byte after another - that makes + debugging output easier to read. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/EXPERTS b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/EXPERTS new file mode 100644 index 00000000..98300b52 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/EXPERTS @@ -0,0 +1,49 @@ + Expert Mode + ----------- + +This document describes how to enter the expert mode and adjust several low level settings like the brightness of the flash that can't be accessed through the user menu or a driver. + +******************************************************************************** +* This information has to be handled with care. By entering the expert mode, * +* you are able to render your camera unfunctional. Only enter the expert mode * +* when you are willing to sacrifice your camera. * +******************************************************************************** + +Recommendation: Please write down the initial values for each (sub)menu before you ever change a value. The values have been chosen carefully by the manufacturer. + +This document is by no means perfect. Please tell me if you find out additional things about the expert mode that should be included in this document. + +How to enter +------------ +Keep the "Menu" button pressed while turning on the camera. Press ">", "<", "<", ">", ">", ">", "<", "<", ">". You'll now see the expert menu in the small display. + +How to navigate +--------------- +You can select the different menus by pressing the "Menu" button. If a menu contains a submenu, you'll automatically be in the first one. You can scroll through submenus by pressing the "OK" button. + -------------------------------------------------------------------------- + | Menu | Submenu(s) | Description | + -------------------------------------------------------------------------- + | Aut | - | Self test. Result will be shown on the small | + | | | display. | + | Inf | - | Adjustment of the focus (DANGER!). | + | Seb | - | Adjustment of the strobe brightness | + | - | Lcd | Adjustment of the big Lcd screen | + | | Nts | Adjustment of the TV output (NTSC) | + | | Pal | Adjustment of the TV output (PAL) | + | - | Pru | Live preview | + | | Pr1 | Live preview (black/white only) | + | | Pr2 | Live preview (?) | + | - | Adr | ? (Range: 0x00 to 0xFF) | + | | Dat | ? (Range: 0x00 to oxFF) | + | Ldp | - | Equivalent to exposure (Range: 0 to 255) | + | Sht | | Shutter? Preview (Pr*) get's brighter and darker. | + | | - | (Range: 100, 106-109) | + | | - | (Range: 200, 208-213) | + | | - | (Range: 300, 310-316) | + | End | - | Exit the expert mode | + -------------------------------------------------------------------------- +Start a process (e.g. self test) or store a value by pressing the release button. Values can be selected by pressing "<" or ">". When a process has been sucessfully started or a value stored, the camera will beep. + +How to exit +----------- +Select the "End" menu. Press the release button. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/Makefile-files new file mode 100644 index 00000000..5d20d348 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/Makefile-files @@ -0,0 +1,29 @@ +# -*- Makefile -*- + +SUBDIRS += konica/localization + +EXTRA_DIST += konica/EXPERTS konica/qm150.txt konica/README.konica konica/ChangeLog konica/COPYING konica/TODO +camlibdoc_DATA += konica/README.konica + +konica_defs = \ + -DLOCALIZATION=\"$(datadir)/$(PACKAGE)/$(VERSION)/konica\" + +EXTRA_LTLIBRARIES += konica.la + +konica_la_SOURCES = \ + konica/lowlevel.c konica/lowlevel.h \ + konica/konica.c konica/konica.h \ + konica/library.c +konica_la_CPPFLAGS = $(AM_CPPFLAGS) $(konica_defs) $(CPPFLAGS) +konica_la_LDFLAGS = $(camlib_ldflags) +konica_la_DEPENDENCIES = $(camlib_dependencies) +konica_la_LIBADD = $(camlib_libadd) + + +EXTRA_LTLIBRARIES += konica_qm150.la + +konica_qm150_la_SOURCES = konica/qm150.c +konica_qm150_la_CPPFLAGS = $(AM_CPPFLAGS) $(konica_defs) $(CPPFLAGS) $(LIBEXIF_CFLAGS) +konica_qm150_la_LDFLAGS = $(camlib_ldflags) +konica_qm150_la_DEPENDENCIES = $(camlib_dependencies) +konica_qm150_la_LIBADD = $(camlib_libadd) $(LIBEXIF_LIBS) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/README.konica b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/README.konica new file mode 100644 index 00000000..4b337581 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/README.konica @@ -0,0 +1,37 @@ +History +------- +This library is heavily based upon the work of Phill Hugo who based his work +heavily "on reverse engineering work by Jesper Skov and his Perl script of +similar functionality". Additionally, Konica has been very supportive by +issuing their own driver explaining the syntax of the commands. Konica even +responded to my questions and gave additional hints. Thank you! + +Supported Cameras +----------------- + - HP PhotoSmart C20 + - HP PhotoSmart C30 + - HP PhotoSmart C200 + - Konica Q-EZ + - Konica Q-M100 + - Konica Q-M100V + - Konica Q-M200 + +Features +-------- +Lots of them :-) This driver supports all features that the +hardware offers except two commands for "testing" (I don't know the +syntax of those - could be for updating the camera's software). + +Licence +------- +This library is released under the terms of the GNU General Public Licence. +Please see the file COPYING for details. + +Reporting Bugs +-------------- +If you find any, please report them to . + +Author +------ +Lutz Müller + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/TODO b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/TODO new file mode 100644 index 00000000..d41862ae --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/TODO @@ -0,0 +1,32 @@ + +Multithreading +-------------- +The commands can overlap. However, we don't do that right now, although it +would be interesting to test it. + +Actually, we need a thread that constantly watches the serial port. The camera for example sends packets up to three times when we do nothing but listen to the port (and not acknowledging that we received something). We need a thread that reacts to such packets. + +Commands +-------- +* get_information: You can add additional bytes. For what? They don't have any effect and don't +return error "illegal parameter". +* get_status: You can add additional bytes. For what? If non-zero, all status information +is set to zero. +* see konica.h for two undocumented commands. +* Localization: I added some preliminary code and files. It has not been tested yet. + +Features +-------- +How to set +- small photos +- TSC / PAL +- Screen Brightness +- Zoom + +Just in case... +--------------- +What's the operating system of the camera? It would be neat to port Tetris to it... + + + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/konica.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/konica.c new file mode 100644 index 00000000..ab73762c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/konica.c @@ -0,0 +1,1330 @@ +/* konica.c + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "konica.h" + +#include +#include +#include + +#include +#include + +#include "lowlevel.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "konica" +#define CHECK_NULL(r) {if (!(r)) return (GP_ERROR_BAD_PARAMETERS);} + +static int +k_check (GPContext *c, const unsigned char *rb) +{ + switch ((rb[3] << 8) | rb[2]) { + case 0x0000: + return (GP_OK); + case 0x0101: + gp_context_error (c, _("Focusing error.")); + return (GP_ERROR); + case 0x0102: + gp_context_error (c, _("Iris error.")); + return (GP_ERROR); + case 0x0201: + gp_context_error (c, _("Strobe error.")); + return (GP_ERROR); + case 0x0203: + gp_context_error (c, _("EEPROM checksum error.")); + return (GP_ERROR); + case 0x0205: + gp_context_error (c, _("Internal error (1).")); + return (GP_ERROR); + case 0x0206: + gp_context_error (c, _("Internal error (2).")); + return (GP_ERROR); + case 0x0301: + gp_context_error (c, _("No card present.")); + return (GP_ERROR); + case 0x0311: + gp_context_error (c, _("Card not supported.")); + return (GP_ERROR); + case 0x0321: + gp_context_error (c, _("Card removed during access.")); + return (GP_ERROR); + case 0x0340: + gp_context_error (c, _("Image number not valid.")); + return (GP_ERROR); + case 0x0341: + gp_context_error (c, _("Card can not be written.")); + return (GP_ERROR); + case 0x0381: + gp_context_error (c, _("Card is write protected.")); + return (GP_ERROR); + case 0x0382: + gp_context_error (c, _("No space left on card.")); + return (GP_ERROR); + case 0x0390: + gp_context_error (c, _("Image protected.")); + return (GP_ERROR); + case 0x0401: + gp_context_error (c, _("Light too dark.")); + return (GP_ERROR); + case 0x0402: + gp_context_error (c, _("Autofocus error.")); + return (GP_ERROR); + case 0x0501: + gp_context_error (c, _("System error.")); + return (GP_ERROR); + case 0x0800: + gp_context_error (c, _("Illegal parameter.")); + return (GP_ERROR); + case 0x0801: + gp_context_error (c, _("Command can not be cancelled.")); + return (GP_ERROR); + case 0x0b00: + gp_context_error (c, _("Localization data too long.")); + return (GP_ERROR); + case 0x0bff: + gp_context_error (c, _("Localization data corrupt.")); + return (GP_ERROR); + case 0x0c01: + gp_context_error (c, _("Unsupported command.")); + return (GP_ERROR); + case 0x0c02: + gp_context_error (c, _("Other command executing.")); + return (GP_ERROR); + case 0x0c03: + gp_context_error (c, _("Command order error.")); + return (GP_ERROR); + case 0x0ffff: + gp_context_error (c, _("Unknown error.")); + return (GP_ERROR); + default: + gp_context_error (c, _("The camera has just sent an " + "error that has not yet been discovered. Please " + "report the following to %s " + "with additional information how you got this error: " + "(0x%x,0x%x). Thank you very much!"), + MAIL_GPHOTO_DEVEL, rb[2], rb[3]); + return (GP_ERROR); + } +} + +#define CRF(c,result,rb) \ +{ \ + int r = (result); \ + if (r < 0) { \ + free (rb); \ + return r; \ + } \ + r = k_check ((c), rb); \ + if (r < 0) { \ + free (rb); \ + return r; \ + } \ +} + +int +k_ping (GPPort *p, GPContext *c) +{ + return (l_ping (p, c)); +} + +int +k_init (GPPort *p, GPContext *c) +{ + return (l_init (p, c)); +} + +int +k_erase_image (GPPort *p, GPContext *c, + int image_id_long, unsigned long image_id) +{ + /************************************************/ + /* Command to erase one image. */ + /* */ + /* 0x00: Byte 0 of command identifier */ + /* 0x80: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0xXX: Byte 0 of p ID */ + /* 0x02: Flash memory card */ + /* 0xXX: Byte 1 of p ID */ + /* 0x00: Flash memory card */ + /* 0xXX: Byte 3 of image ID (QM200 only) */ + /* 0xXX: Byte 4 of image ID (QM200 only) */ + /* 0xXX: Byte 0 of image ID */ + /* 0xXX: Byte 1 of image ID */ + /* */ + /* Return values: */ + /* 0x00: Byte 0 of command identifier */ + /* 0x80: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + unsigned char sb[] = {0x00, 0x80, 0x00, 0x00, 0x02, + 0x00, 0x00, 0x00, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + if (!image_id_long) { + sb[6] = image_id; + sb[7] = image_id >> 8; + CRF (c, l_send_receive (p, c, sb, 8, &rb, &rbs, + 0, NULL, NULL), rb); + } else { + sb[6] = image_id >> 16; + sb[7] = image_id >> 24; + sb[8] = image_id; + sb[9] = image_id >> 8; + CRF (c, l_send_receive (p, c, sb, 10, &rb, &rbs, + 0, NULL, NULL), rb); + } + + free (rb); + return (GP_OK); +} + + +int +k_format_memory_card (GPPort *p, GPContext *c) +{ + /************************************************/ + /* Command to format the memory card. */ + /* */ + /* 0x10: Byte 0 of command identifier */ + /* 0x80: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0xXX: Byte 0 of p ID */ + /* 0x02: Flash memory card */ + /* 0xXX: Byte 1 of p ID */ + /* 0x00: Flash memory card */ + /* */ + /* Return values: */ + /* 0x10: Byte 0 of command identifier */ + /* 0x80: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + unsigned char sb[] = {0x10, 0x80, 0x00, 0x00, 0x02, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CRF (c, l_send_receive (p, c, sb, 6, &rb, &rbs, 0, NULL, NULL), rb); + + free (rb); + return (GP_OK); +} + + +int +k_erase_all (GPPort *p, GPContext *c, + unsigned int *number_of_images_not_erased) +{ + /************************************************/ + /* Command to erase all images in the camera, */ + /* except the protected ones. */ + /* */ + /* 0x20: Byte 0 of command identifier */ + /* 0x80: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0xXX: Byte 0 of p ID */ + /* 0x02: Flash memory card */ + /* 0xXX: Byte 1 of p ID */ + /* 0x00: Flash memory card */ + /* */ + /* Return values: */ + /* 0x20: Byte 0 of command identifier */ + /* 0x80: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /* Following bytes only in case of success. */ + /* 0xXX: Byte 0 of number of images not erased */ + /* 0xXX: Byte 1 of number of images not erased */ + /************************************************/ + unsigned char sb[] = {0x20, 0x80, 0x00, 0x00, 0x02, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CHECK_NULL (number_of_images_not_erased); + + CRF (c, l_send_receive (p, c, sb, 6, &rb, &rbs, 0, NULL, NULL), rb); + + *number_of_images_not_erased = (rb[5] << 8) | rb[4]; + free (rb); + return (GP_OK); +} + + +int +k_set_protect_status (GPPort *p, GPContext *c, int image_id_long, + unsigned long image_id, int protected) +{ + /************************************************/ + /* Command to set the protect status of one */ + /* image. */ + /* */ + /* 0x30: Byte 0 of command identifier */ + /* 0x80: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0xXX: Byte 0 of p ID */ + /* 0x02: Flash memory card */ + /* 0xXX: Byte 1 of p ID */ + /* 0x00: Flash memory card */ + /* 0xXX: Byte 3 of image ID (QM200 only) */ + /* 0xXX: Byte 4 of image ID (QM200 only) */ + /* 0xXX: Byte 0 of image ID */ + /* 0xXX: Byte 1 of image ID */ + /* 0xXX: Byte 0 of protect status */ + /* 0x00: not protected */ + /* 0x01: protected */ + /* 0x00: Byte 1 of protect status */ + /* */ + /* Return values: */ + /* 0x30: Byte 0 of command identifier */ + /* 0x80: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + unsigned char sb[] = {0x30, 0x80, 0x00, 0x00, 0x02, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + if (!image_id_long) { + if (protected) sb[8] = 0x01; + sb[6] = image_id; + sb[7] = image_id >> 8; + CRF (c, l_send_receive (p, c, sb, 10, &rb, &rbs, + 0, NULL, NULL), rb); + } else { + if (protected) sb[10] = 0x01; + sb[6] = image_id >> 16; + sb[7] = image_id >> 24; + sb[8] = image_id; + sb[9] = image_id >> 8; + CRF (c, l_send_receive (p, c, sb, 12, &rb, &rbs, + 0, NULL, NULL), rb); + } + + free (rb); + return (GP_OK); +} + + +int +k_get_image ( + GPPort *p, GPContext *c, + int image_id_long, + unsigned long image_id, + KImageType image_type, + unsigned char **ib, + unsigned int *ibs) +{ + /************************************************/ + /* Commands to get an image from the camera. */ + /* */ + /* 0xXX: Byte 0 of command identifier */ + /* 0x00: get thumbnail */ + /* 0x10: get image (jpeg) */ + /* 0x30: get image (exif) */ + /* 0x88: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0xXX: Byte 0 of p ID */ + /* 0x02: Flash memory card */ + /* 0xXX: Byte 1 of p ID */ + /* 0x00: Flash memory card */ + /* 0xXX: Byte 3 of image ID (QM200 only) */ + /* 0xXX: Byte 4 of image ID (QM200 only) */ + /* 0xXX: Byte 0 of image ID */ + /* 0xXX: Byte 1 of image ID */ + /* */ + /* The data will be received first, followed by */ + /* the return values. */ + /* */ + /* Return values: */ + /* 0xXX: Byte 0 of command identifier */ + /* 0x00: get thumbnail */ + /* 0x10: get image (jpeg) */ + /* 0x30: get image (exif) */ + /* 0x88: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + unsigned char sb[10]; + unsigned char *rb = NULL; + unsigned int rbs; + + CHECK_NULL (ib && ibs); + + sb[0] = image_type; + sb[1] = 0x88; + sb[2] = 0x00; /* reserved */ + sb[3] = 0x00; /* reserved */ + sb[4] = 0x02; + sb[5] = 0x00; + if (!image_id_long) { + sb[6] = image_id; + sb[7] = image_id >> 8; + CRF (c, l_send_receive (p, c, sb, 8, &rb, &rbs, 5000, + ib, ibs), rb); + } else { + sb[6] = image_id >> 16; + sb[7] = image_id >> 24; + sb[8] = image_id; + sb[9] = image_id >> 8; + CRF (c, l_send_receive (p, c, sb, 10, &rb, &rbs, 5000, + ib, ibs), rb); + } + + free (rb); + return (GP_OK); +} + + +int +k_get_image_information ( + GPPort *p, GPContext *c, + int image_id_long, + unsigned long image_number, + unsigned long *image_id, + unsigned int *exif_size, + int *protected, + unsigned char **ib, + unsigned int *ibs) +{ + /************************************************/ + /* Command to get the information about an */ + /* image from the camera. */ + /* */ + /* 0x20: Byte 0 of command identifier */ + /* 0x88: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0xXX: Byte 0 of p ID */ + /* 0x02: Flash memory card */ + /* 0xXX: Byte 1 of p ID */ + /* 0x00: Flash memory card */ + /* 0xXX: Byte 3 of image number (QM200 only) */ + /* 0xXX: Byte 4 of image number (QM200 only) */ + /* 0xXX: Byte 0 of image number */ + /* 0xXX: Byte 1 of image number */ + /* */ + /* The data will be received first, followed by */ + /* the return values. */ + /* */ + /* Return values: */ + /* 0x20: Byte 0 of command identifier */ + /* 0x88: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /* Following bytes only in case of success. */ + /* 0xXX: Byte 3 of image ID (QM200 only) */ + /* 0xXX: Byte 4 of image ID (QM200 only) */ + /* 0xXX: Byte 0 of image ID */ + /* 0xXX: Byte 1 of image ID */ + /* 0xXX: Byte 0 of exif size */ + /* 0xXX: Byte 1 of exif size */ + /* 0xXX: Byte 0 of protect status */ + /* 0x00: not protected */ + /* 0x01: protected */ + /* 0x00: Byte 1 of protect status */ + /************************************************/ + unsigned char sb[] = {0x20, 0x88, 0x00, 0x00, 0x02, 0x00, + 0x00, 0x00, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CHECK_NULL (image_id && exif_size && protected && ib && + ibs); + + if (!image_id_long) { + sb[6] = image_number; + sb[7] = image_number >> 8; + CRF (c, l_send_receive (p, c, sb, 8, &rb, &rbs, 2000, + ib, ibs), rb); + *image_id = (unsigned long) ((rb[5] << 8) | rb[4]); + *exif_size = (rb[7] << 8) | rb[6]; + *protected = (rb[8] != 0x00); + } else { + sb[6] = image_number >> 16; + sb[7] = image_number >> 24; + sb[8] = image_number; + sb[9] = image_number >> 8; + CRF (c, l_send_receive (p, c, sb, 10, &rb, &rbs, 2000, + ib, ibs), rb); + *image_id = (rb[5] << 24) | (rb[4] << 16) | + (rb[7] << 8 ) | rb[6]; + *exif_size = (rb[9] << 8) | rb[8]; + *protected = (rb[10] != 0x00); + } + + free (rb); + return (GP_OK); +} + +int +k_get_preview (GPPort *p, GPContext *c, int thumbnail, + unsigned char **ib, unsigned int *ibs) +{ + /************************************************/ + /* Command to get the preview from the camera. */ + /* */ + /* 0x40: Byte 0 of command identifier */ + /* 0x88: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0xXX: Byte 0 of preview mode */ + /* 0x00: no thumbnail */ + /* 0x01: thumbnail */ + /* 0x00: Byte 1 of preview mode */ + /* */ + /* The data will be received first, followed by */ + /* the return values. */ + /* */ + /* Return values: */ + /* 0x40: Byte 0 of command identifier */ + /* 0x88: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + unsigned char sb[] = {0x40, 0x88, 0x00, 0x00, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CHECK_NULL (ib && ibs); + + if (thumbnail) + sb[4] = 0x01; + CRF (c, l_send_receive (p, c, sb, 6, &rb, &rbs, 5000, ib, ibs), rb); + + free (rb); + return (GP_OK); +} + +int +k_get_io_capability (GPPort *p, GPContext *c, + KBitRate *bit_rates, KBitFlag *bit_flags) +{ + /************************************************/ + /* Command to get the IO capability from the */ + /* camera. */ + /* */ + /* 0x00: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* */ + /* Return values: */ + /* 0x40: Byte 0 of command identifier */ + /* 0x88: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /* Following bytes only in case of success. */ + /* 0xXX: Byte 0 of supported bit rates */ + /* 0xXX: Byte 1 of supported bit rates */ + /* 0xXX: Byte 0 of supported flags */ + /* 0xXX: Byte 1 of supported flags */ + /************************************************/ + unsigned char sb[] = {0x00, 0x90, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CHECK_NULL (bit_rates && bit_flags); + + GP_DEBUG ("Getting IO capabilities..."); + CRF (c, l_send_receive (p, c, sb, 4, &rb, &rbs, 0, NULL, NULL), rb); + GP_DEBUG ("Got IO capabilities: bit rates 0x%x 0x%x, bit flags " + "0x%x 0x%x.", rb[5], rb[4], rb[7], rb[6]); + + *bit_rates = (rb[5] << 8) | rb[4]; + *bit_flags = (rb[7] << 8) | rb[6]; + + free (rb); + return (GP_OK); +} + +int +k_get_information (GPPort *p, GPContext *c, KInformation *info) +{ + /************************************************/ + /* Command to get some information about the */ + /* camera. */ + /* */ + /* 0x10: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* (...) */ + /* */ + /* You can add pairs of additional bytes with */ + /* no effect on the command. */ + /* */ + /* Return values: */ + /* 0x10: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /* Following bytes only in case of success. */ + /* 0xXX: Reserved */ + /* 0xXX: Reserved */ + /* 0xXX: Reserved */ + /* 0xXX: Reserved */ + /* 0xXX: Byte 0 of model */ + /* 0xXX: Byte 1 of model */ + /* 0xXX: Byte 2 of model */ + /* 0xXX: Byte 3 of model */ + /* 0xXX: Byte 0 of serial number */ + /* 0xXX: Byte 1 of serial number */ + /* 0xXX: Byte 2 serial number */ + /* 0xXX: Byte 3 serial number */ + /* 0xXX: Byte 4 serial number */ + /* 0xXX: Byte 5 serial number */ + /* 0xXX: Byte 6 serial number */ + /* 0xXX: Byte 7 serial number */ + /* 0xXX: Byte 8 serial number */ + /* 0xXX: Byte 9 serial number */ + /* 0xXX: Hardware version (major) */ + /* 0xXX: Hardware version (minor) */ + /* 0xXX: Software version (major) */ + /* 0xXX: Software version (minor) */ + /* 0xXX: Testing software version (major) */ + /* 0xXX: Testing software version (minor) */ + /* 0xXX: Byte 0 of name */ + /* 0xXX: Byte 1 of name */ + /* 0xXX: Byte 2 of name */ + /* 0xXX: Byte 3 of name */ + /* 0xXX: Byte 4 of name */ + /* 0xXX: Byte 5 of name */ + /* 0xXX: Byte 6 of name */ + /* 0xXX: Byte 7 of name */ + /* 0xXX: Byte 8 of name */ + /* 0xXX: Byte 9 of name */ + /* 0xXX: Byte 10 of name */ + /* 0xXX: Byte 11 of name */ + /* 0xXX: Byte 12 of name */ + /* 0xXX: Byte 13 of name */ + /* 0xXX: Byte 14 of name */ + /* 0xXX: Byte 15 of name */ + /* 0xXX: Byte 16 of name */ + /* 0xXX: Byte 17 of name */ + /* 0xXX: Byte 18 of name */ + /* 0xXX: Byte 19 of name */ + /* 0xXX: Byte 20 of name */ + /* 0xXX: Byte 21 of name */ + /* 0xXX: Byte 0 of manufacturer */ + /* 0xXX: Byte 1 of manufacturer */ + /* 0xXX: Byte 2 of manufacturer */ + /* 0xXX: Byte 3 of manufacturer */ + /* 0xXX: Byte 4 of manufacturer */ + /* 0xXX: Byte 5 of manufacturer */ + /* 0xXX: Byte 6 of manufacturer */ + /* 0xXX: Byte 7 of manufacturer */ + /* 0xXX: Byte 8 of manufacturer */ + /* 0xXX: Byte 9 of manufacturer */ + /* 0xXX: Byte 10 of manufacturer */ + /* 0xXX: Byte 11 of manufacturer */ + /* 0xXX: Byte 12 of manufacturer */ + /* 0xXX: Byte 13 of manufacturer */ + /* 0xXX: Byte 14 of manufacturer */ + /* 0xXX: Byte 15 of manufacturer */ + /* 0xXX: Byte 16 of manufacturer */ + /* 0xXX: Byte 17 of manufacturer */ + /* 0xXX: Byte 18 of manufacturer */ + /* 0xXX: Byte 19 of manufacturer */ + /* 0xXX: Byte 20 of manufacturer */ + /* 0xXX: Byte 21 of manufacturer */ + /* 0xXX: Byte 22 of manufacturer */ + /* 0xXX: Byte 23 of manufacturer */ + /* 0xXX: Byte 24 of manufacturer */ + /* 0xXX: Byte 25 of manufacturer */ + /* 0xXX: Byte 26 of manufacturer */ + /* 0xXX: Byte 27 of manufacturer */ + /* 0xXX: Byte 28 of manufacturer */ + /* 0xXX: Byte 29 of manufacturer */ + /************************************************/ + unsigned char sb[] = {0x10, 0x90, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CHECK_NULL (info); + + CRF (c, l_send_receive (p, c, sb, 4, &rb, &rbs, 0, NULL, NULL), rb); + + memset (info, 0, sizeof (KInformation)); + strncpy (info->model, (char *)&rb[ 8], 4); + strncpy (info->serial_number, (char *)&rb[12], 10); + info->hardware.major = rb[22]; + info->hardware.minor = rb[23]; + info->software.major = rb[24]; + info->software.minor = rb[25]; + info->testing.major = rb[26]; + info->testing.minor = rb[27]; + strncpy (info->name, (char *)&rb[28], 22); + strncpy (info->manufacturer, (char *)&rb[50], 30); + + free (rb); + return (GP_OK); +} + +int +k_get_status (GPPort *p, GPContext *c, KStatus *status) +{ + /************************************************/ + /* Command to get the status of the camera. */ + /* */ + /* 0x20: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* (...) */ + /* */ + /* You can add pairs of additional bytes. If */ + /* those are all 0x00, then nothing will */ + /* change. If at least one deviates, all */ + /* individual pieces of the status information */ + /* will be returned as being zero. */ + /* */ + /* Return values: */ + /* 0x20: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /* Following bytes only in case of success. */ + /* 0xXX: Result of self test */ + /* 0x00: Self test passed */ + /* other: Self test failed */ + /* 0xXX: Power level */ + /* 0x00: Low */ + /* 0x01: Normal */ + /* 0x02: High */ + /* 0xXX: Power source */ + /* 0x00: Battery */ + /* 0x01: AC */ + /* 0xXX: Card status */ + /* 0x07: Card */ + /* 0x12: No card */ + /* 0xXX: Display */ + /* 0x00: built in */ + /* 0x02: TV */ + /* 0xXX: Byte 0 of card size */ + /* 0xXX: Byte 1 of card size */ + /* 0xXX: Byte 0 of pictures in camera */ + /* 0xXX: Byte 1 of left pictures in camera */ + /* 0xXX: Year */ + /* 0xXX: Month */ + /* 0xXX: Day */ + /* 0xXX: Hour */ + /* 0xXX: Minute */ + /* 0xXX: Second */ + /* 0xXX: Byte 0 of bit rates */ + /* 0xXX: Byte 1 of bit rates */ + /* 0xXX: Byte 0 of bit flags */ + /* 0xXX: Byte 1 of bit flags */ + /* 0xXX: Flash */ + /* 0xXX: Resolution */ + /* 0xXX: Focus */ + /* 0xXX: Exposure */ + /* 0xXX: Byte 0 of total pictures */ + /* 0xXX: Byte 1 of total pictures */ + /* 0xXX: Byte 0 of total strobes */ + /* 0xXX: Byte 1 of total strobes */ + /************************************************/ + unsigned char sb[] = {0x20, 0x90, 0x00, 0x00, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CHECK_NULL (status); + + CRF (c, l_send_receive (p, c, sb, 6, &rb, &rbs, 0, NULL, NULL), rb); + + status->self_test_result = (rb[5] << 8) | rb[4]; + status->power_level = rb[6]; + status->power_source = rb[7]; + status->card_status = rb[8]; + status->display = rb[9]; + status->card_size = (rb[11] << 8) | rb[10]; + status->pictures = (rb[13] << 8) | rb[12]; + status->pictures_left = (rb[15] << 8) | rb[14]; + status->date.year = rb[16]; + status->date.month = rb[17]; + status->date.day = rb[18]; + status->date.hour = rb[19]; + status->date.minute = rb[20]; + status->date.second = rb[21]; + status->bit_rate = (rb[23] << 8) | rb[22]; + status->bit_flags = (rb[25] << 8) | rb[24]; + status->flash = rb[26]; + status->resolution = rb[27]; + status->focus = rb[28]; + status->exposure = rb[29]; + status->total_pictures = (rb[31] << 8) | rb[30]; + status->total_strobes = (rb[33] << 8) | rb[32]; + + free (rb); + return (GP_OK); +} + +int +k_get_date_and_time (GPPort *p, GPContext *c, KDate *date) +{ + /************************************************/ + /* Command to get the date and time from the */ + /* camera. */ + /* */ + /* 0x30: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* */ + /* Return values: */ + /* 0x30: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /* Following bytes only in case of success. */ + /* 0xXX: Year */ + /* 0xXX: Month */ + /* 0xXX: Day */ + /* 0xXX: Hour */ + /* 0xXX: Minute */ + /* 0xXX: Second */ + /************************************************/ + unsigned char sb[] = {0x30, 0x90, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CRF (c, l_send_receive (p, c, sb, 4, &rb, &rbs, 0, NULL, NULL), rb); + date->year = rb[4]; + date->month = rb[5]; + date->day = rb[6]; + date->hour = rb[7]; + date->minute = rb[8]; + date->second = rb[9]; + + free (rb); + return (GP_OK); +}; + +int +k_get_preferences (GPPort *p, GPContext *c, + KPreferences *preferences) +{ + /************************************************/ + /* Command to get the preferences from the */ + /* camera. */ + /* */ + /* 0x40: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* */ + /* Return values: */ + /* 0x40: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /* Following bytes only in case of success. */ + /* 0xXX: Byte 0 of shutoff time */ + /* 0xXX: Byte 1 of shutoff time */ + /* 0xXX: Byte 0 of self timer time */ + /* 0xXX: Byte 1 of self timer time */ + /* 0xXX: Byte 0 of beep */ + /* 0xXX: Byte 1 of beep */ + /* 0xXX: Byte 0 of slide show interval */ + /* 0xXX: Byte 1 of slide show interval */ + /************************************************/ + unsigned char sb[] = {0x40, 0x90, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CRF (c, l_send_receive (p, c, sb, 4, &rb, &rbs, 0, NULL, NULL), rb); + preferences->shutoff_time = rb[4]; + preferences->self_timer_time = rb[5]; + preferences->beep = rb[6]; + preferences->slide_show_interval = rb[7]; + + free (rb); + return (GP_OK); +} + +int +k_set_io_capability (GPPort *p, GPContext *c, + KBitRate bit_rate, KBitFlag bit_flags) +{ + /************************************************/ + /* Command to set the IO capability of the */ + /* camera. */ + /* */ + /* 0x80: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0xXX: Byte 0 of bit rates */ + /* 0xXX: Byte 1 of bit rates */ + /* 0xXX: Byte 0 of bit flags */ + /* 0xXX: Byte 1 of bit flags */ + /* */ + /* Return values: */ + /* 0x80: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + unsigned char sb[8]; + unsigned char *rb = NULL; + unsigned int rbs; + + sb[0] = 0x80; + sb[1] = 0x90; + sb[2] = 0x00; /* reserved */ + sb[3] = 0x00; /* reserved */ + sb[4] = bit_rate >> 0; + sb[5] = bit_rate >> 8; + sb[6] = bit_flags >> 0; + sb[7] = bit_flags >> 8; + + CRF (c, l_send_receive (p, c, sb, 8, &rb, &rbs, 0, NULL, NULL), rb); + + free (rb); + return (GP_OK); +} + + +int +k_set_date_and_time (GPPort *p, GPContext *c, KDate date) +{ + /************************************************/ + /* Command to set date and time of the camera. */ + /* */ + /* 0xb0: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0xXX: Year (0x00 to 0x25, 0x60 to 0x63) */ + /* 0xXX: Month (0x01 to 0x0C) */ + /* 0xXX: Day (0x01 to 0x1F) */ + /* 0xXX: Hour (0x00 to 0x17) */ + /* 0xXX: Minute (0x00 to 0x3b) */ + /* 0xXX: Second (0x00 to 0x3b) */ + /* */ + /* Return values: */ + /* 0xb0: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + unsigned char sb[10]; + unsigned char *rb = NULL; + unsigned int rbs; + + sb[0] = 0xb0; + sb[1] = 0x90; + sb[2] = 0x00; /* reserved */ + sb[3] = 0x00; /* reserved */ + sb[4] = date.year; + sb[5] = date.month; + sb[6] = date.day; + sb[7] = date.hour; + sb[8] = date.minute; + sb[9] = date.second; + CRF (c, l_send_receive (p, c, sb, 10, &rb, &rbs, 0, NULL, NULL), rb); + free (rb); + return (GP_OK); +} + + +int +k_set_preference (GPPort *p, GPContext *c, + KPreference preference, unsigned int value) +{ + /* Return values: */ + /* 0xc0: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + unsigned char sb[8]; + unsigned char *rb = NULL; + unsigned int rbs; + + sb[0] = 0xc0; + sb[1] = 0x90; + sb[2] = 0x00; /* reserved */ + sb[3] = 0x00; /* reserved */ + sb[4] = preference >> 0; + sb[5] = preference >> 8; + sb[6] = value >> 0; + sb[7] = value >> 8; + CRF (c, l_send_receive (p, c, sb, 8, &rb, &rbs, 0, NULL, NULL), rb); + free (rb); + return (GP_OK); +} + +int +k_reset_preferences (GPPort *p, GPContext *c) +{ + /************************************************/ + /* Command to reset the preferences of the */ + /* camera. */ + /* */ + /* 0xc1: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* */ + /* Return values: */ + /* 0xc1: Byte 0 of command identifier */ + /* 0x90: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + unsigned char sb[] = {0xc1, 0x90, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CRF (c, l_send_receive (p, c, sb, 4, &rb, &rbs, 0, NULL, NULL), rb); + free (rb); + return (GP_OK); +} + + +int +k_take_picture ( + GPPort *p, GPContext *c, + int image_id_long, + unsigned long *image_id, + unsigned int *exif_size, + unsigned char **ib, + unsigned int *ibs, + int *protected) +{ + /************************************************/ + /* Command to take a picture. */ + /* */ + /* 0x00: Byte 0 of command identifier */ + /* 0x91: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0x02: Byte 0 of p ID */ + /* 0x00: Byte 1 of p ID */ + /* */ + /* The data (thumbnail) will be received first, */ + /* followed by the return values. */ + /* */ + /* Return values: */ + /* 0x00: Byte 0 of command identifier */ + /* 0x91: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /* Following bytes only in case of success. */ + /* 0xXX: Byte 3 of image ID (QM200 only) */ + /* 0xXX: Byte 4 of image ID (QM200 only) */ + /* 0xXX: Byte 0 of image ID */ + /* 0xXX: Byte 1 of image ID */ + /* 0xXX: Byte 0 of exif size */ + /* 0xXX: Byte 1 of exif size */ + /* 0xXX: Byte 0 of protect status */ + /* 0x00: not protected */ + /* 0x01: protected */ + /* 0x00: Byte 1 of protect status */ + /************************************************/ + unsigned char sb[] = {0x00, 0x91, 0x00, 0x00, 0x02, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CHECK_NULL (image_id && exif_size && protected && ib && + ibs); + + CRF (c, l_send_receive (p, c, sb, 6, &rb, &rbs, 60000, ib, ibs), rb); + + if (!image_id_long) { + *image_id = 0x00 | 0x00 | (rb[5] << 8) | rb[4]; + *exif_size = (rb[7] << 8) | rb[6]; + *protected = (rb[8] != 0x00); + } else { + *image_id = (rb[5] << 24) | (rb[4] << 16) | + (rb[7] << 8 ) | (rb[6]); + *exif_size = (rb[9] << 8) | rb[8]; + *protected = (rb[10] != 0x00); + } + free (rb); + return (GP_OK); +} + +int +k_localization_tv_output_format_set (GPPort *p, GPContext *c, + KTVOutputFormat tv_output_format) +{ + /************************************************/ + /* Command for various localization issues. */ + /* Here: Setting of tv output format. */ + /* */ + /* 0x00: Byte 0 of command identifier */ + /* 0x92: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0x01: Byte 0 of localization type identifier */ + /* 0x00: transmission of */ + /* localization data */ + /* 0x01: setting of tv output */ + /* format */ + /* 0x02: setting of date format */ + /* 0x00: Byte 1 of localization type identifier */ + /* 0xXX: Byte 0 of tv output format */ + /* 0x00: NTSC */ + /* 0x01: PAL */ + /* 0x02: None */ + /* 0x00: Byte 1 of tv output format */ + /* */ + /* Return values: */ + /* 0x00: Byte 0 of command identifier */ + /* 0x92: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + unsigned char sb[] = {0x00, 0x92, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + sb[6] = tv_output_format; + CRF (c, l_send_receive (p, c, sb, 8, &rb, &rbs, 0, NULL, NULL), rb); + free (rb); + return (GP_OK); +} + +int +k_localization_date_format_set (GPPort *p, GPContext *c, + KDateFormat date_format) +{ + /************************************************/ + /* Command for various localization issues. */ + /* Here: Setting of date format. */ + /* */ + /* 0x00: Byte 0 of command identifier */ + /* 0x92: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0x02: Byte 0 of localization type identifier */ + /* 0x00: transmission of */ + /* localization data */ + /* 0x01: setting of tv output */ + /* format */ + /* 0x02: setting of date format */ + /* 0x00: Byte 1 of localization type identifier */ + /* 0xXX: Byte 0 of date format */ + /* 0x00: month/day/year */ + /* 0x01: day/month/year */ + /* 0x02: year/month/day */ + /* 0x00: Byte 1 of date format */ + /* */ + /* Return values: */ + /* 0x00: Byte 0 of command identifier */ + /* 0x92: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + unsigned char sb[] = {0x00, 0x92, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + sb[6] = date_format; + CRF (c, l_send_receive (p, c, sb, 8, &rb, &rbs, 0, NULL, NULL), rb); + free (rb); + return (GP_OK); +} + +#define PACKET_SIZE 1024 + +int +k_localization_data_put (GPPort *p, GPContext *c, + unsigned char *data, unsigned long data_size) +{ + /************************************************/ + /* Command for various localization issues. */ + /* Here: Transmission of localization data. */ + /* */ + /* 0x00: Byte 0 of command identifier */ + /* 0x92: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* 0x00: Byte 0 of localization type identifier */ + /* 0x00: transmission of */ + /* localization data */ + /* 0x01: setting of tv output */ + /* format */ + /* 0x02: setting of date format */ + /* 0x00: Byte 1 of localization type identifier */ + /* 0x00: Byte 0 of ? */ + /* 0x00: Byte 1 of ? */ + /* 0xXX: Byte 0 of number of bytes of packet */ + /* 0xXX: Byte 1 of number of bytes of packet */ + /* 0xXX: Byte 3 of memory address where to */ + /* write the packet to */ + /* 0xXX: Byte 4 of memory address */ + /* 0xXX: Byte 0 of memory address */ + /* 0xXX: Byte 1 of memory address */ + /* 0xXX: Byte 0 of last packet identifier */ + /* 0x00: packets to follow */ + /* 0x01: no more packets to follow */ + /* 0x00: Byte 1 of last packet identifier */ + /* */ + /* Then follows the packet (size see above). */ + /* */ + /* */ + /* Return values: */ + /* 0x00: Byte 0 of command identifier */ + /* 0x92: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /************************************************/ + int result; + unsigned char *rb = NULL; + unsigned int rbs; + unsigned long i, j; + unsigned char sb[16 + PACKET_SIZE]; + + gp_log (GP_LOG_DEBUG, "konica", "Uploading %ld bytes localization " + "data...", data_size); + + CHECK_NULL (data); + if (data_size < 512) + return (GP_ERROR_BAD_PARAMETERS); + + sb[0] = 0x00; + sb[1] = 0x92; + sb[2] = 0x00; /* reserved */ + sb[3] = 0x00; /* reserved */ + sb[4] = 0x00; + sb[5] = 0x00; + sb[6] = 0x00; + sb[7] = 0x00; + sb[8] = (unsigned char) (PACKET_SIZE >> 0); + sb[9] = (unsigned char) (PACKET_SIZE >> 8); + sb[10] = 0x00; + sb[11] = 0x00; + sb[12] = 0x00; + sb[13] = 0x00; + sb[14] = 0x00; + sb[15] = 0x00; + i = 0; + while (TRUE) { + + /* Set up the packet. */ + sb[10] = i >> 16; + sb[11] = i >> 24; + sb[12] = i; + sb[13] = i >> 8; + for (j = 0; j < PACKET_SIZE; j++) { + if ((i + j) < data_size) sb[16 + j] = data[i + j]; + else sb[16 + j] = 0xFF; + } + + /* + * We could wait until the camera sends us + * K_ERROR_LOCALIZATION_DATA_EXCESS, but it does that + * not until the 70000th byte or so. However, as we can + * provoke the message with sb[14] = 0x01, we do so as + * soon as we exceed the 65535th byte to shorten the + * transmission time. We can't do that before or the + * camera reports K_ERROR_LOCALIZATION_DATA_CORRUPT. + */ + if (i + PACKET_SIZE > 65536) + sb[14] = 0x01; + result = l_send_receive (p, c, sb, PACKET_SIZE + 16, + &rb, &rbs, 0, NULL, NULL); + if (result == GP_OK) { + if ((rb[3] == 0x0b) && (rb[2] == 0x00)) { + + /* + * The camera does no longer want to receive + * localization data. We are done. + */ + return (GP_OK); + } else if ((rb[3] == 0x00) && (rb[2] == 0x00)) { + + /* + * Everything is fine. Continue sending + * packets but make sure we don't loop + * forever. + */ + if (i > 131072) + return (GP_ERROR); + } + } + CRF (c, result, rb); + free (rb); + rb = NULL; + i += PACKET_SIZE; + } +} + +int +k_cancel (GPPort *p, GPContext *c, KCommand* command) +{ + /************************************************/ + /* Command to cancel a command. */ + /* */ + /* 0x00: Byte 0 of command identifier */ + /* 0x9e: Byte 1 of command identifier */ + /* 0x00: Reserved */ + /* 0x00: Reserved */ + /* */ + /* Return values: */ + /* 0x00: Byte 0 of command identifier */ + /* 0x9e: Byte 1 of command identifier */ + /* 0xXX: Byte 0 of return status */ + /* 0xXX: Byte 1 of return status */ + /* Following bytes only in case of success. */ + /* 0xXX: Byte 0 of cancelled command */ + /* 0xXX: Byte 1 of cancelled command */ + /************************************************/ + unsigned char sb[] = {0x00, 0x9e, 0x00, 0x00}; + unsigned char *rb = NULL; + unsigned int rbs; + + CHECK_NULL (command); + + CRF (c, l_send_receive (p, c, sb, 4, &rb, &rbs, 0, NULL, NULL), rb); + *command = (rb[5] << 8) | rb[4]; + free (rb); + GP_DEBUG ("Cancelled command 0x%x.", *command); + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/konica.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/konica.h new file mode 100644 index 00000000..8a9c3110 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/konica.h @@ -0,0 +1,380 @@ +/* konica.h + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __KONICA_H__ +#define __KONICA_H__ + +#include +#include + +/* + * The following are the commands that are supported by the + * camera. All other commands will be rejected as unsupported. + * + * 0x9200: On 'HP PhotoSmart C20', this command seems to + * set the language by transferring huge amounts + * of data. For 'Q-M100', this command is not + * defined according to Konica. + * 0x9e10: Used for development and testing of the camera. + * 0x9e20: Used for development and testing of the camera. + * + * For those commands, no documentation is available. They are + * therefore not implemented. + */ +typedef enum +{ + K_ERASE_IMAGE = 0x8000, + K_FORMAT_MEMORY_CARD = 0x8010, + K_ERASE_ALL = 0x8020, + K_SET_PROTECT_STATUS = 0x8030, + K_GET_THUMBNAIL = 0x8800, + K_GET_IMAGE_JPEG = 0x8810, + K_GET_IMAGE_INFORMATION = 0x8820, + K_GET_IMAGE_EXIF = 0x8830, + K_GET_PREVIEW = 0x8840, + K_GET_IO_CAPABILITY = 0x9000, + K_GET_INFORMATION = 0x9010, + K_GET_STATUS = 0x9020, + K_GET_DATE_AND_TIME = 0x9030, + K_GET_PREFERENCES = 0x9040, + K_SET_IO_CAPABILITY = 0x9080, + K_SET_DATE_AND_TIME = 0x90b0, + K_SET_PREFERENCE = 0x90c0, + K_RESET_PREFERENCES = 0x90c1, + K_TAKE_PICTURE = 0x9100, + K_PUT_LOCALIZATION_FILE = 0x9200, + K_CANCEL = 0x9e00 + /* ? = 0x9e10, */ + /* ? = 0x9e20, */ +} KCommand; + +/* + * The following are the preferences that can be set. The + * sixteen bits that identify the preference are as follows. + * Low order byte: 0000 0aa0 + * High order byte: 1x0b xxxx + * x can be 1 or 0 with no effect on the command. The a and b + * bits identify the preference and are as follows. + * + * b: 0 1 + * aa: ---------------------------------------------------- + * 00 | resolution flash + * 01 | exposure focus / self timer + * 10 | self timer time auto off time + * 11 | slide show interval beep + * + * A short explanation of the values of the preferences: + * + * RESOLUTION (default: 2) + * Only the low order byte is processed. + * - 0: medium resolution (same as 2) + * - 1: high resolution (1152 x 872) + * - 2: medium resolution (1152 x 872) + * - 3: low resolution ( 576 x 436) + * Other values are accepted as well, produce however strange + * results on the display, as the camera will calculate the + * remaining pictures on the basis of this value. Those values + * are at some point changed to 'normal' ones. + * Each pixel has an area of 4.6um x 4.6 um. + * + * EXPOSURE (default: 0) + * Only the low order byte is processed. + * - 0 to 255. + * The behaviour is somewhat strange. Sending a value will + * not necessarily set the value to exactly the sent one. + * The following table gives an overview. + * sent received sent received + * ---------------- ---------------- + * 0 - 0 128 129 + * 1 0 129 130 + * 2 1 131 - 131 + * 3 2 132 133 + * 4 3 133 134 + * 5 - 5 134 135 + * 6 5 135 136 + * 7 6 136 - 136 + * 8 7 (...) + * 9 8 246 - 246 + * 10 - 10 247 248 + * (...) 248 249 + * 120 - 120 249 250 + * 121 120 250 251 + * 122 121 251 - 251 + * 123 122 252 253 + * 124 123 253 254 + * 125 - 125 254 255 + * 126 125 255 0 + * 127 126 + * + * Additional information from HP: + * - Range: EV 6 to EV 16 (ISO 100). + * - Exposure times: 1/500th to 2 (sec) + * + * SELF_TIMER_TIME (default: 10) + * - 3 to 40. Measured in seconds. + * All other values are rejected. + * + * SLIDE_SHOW_INTERVAL (default: 3) + * - 1 to 30. Measured in seconds. + * All other values are rejected. + * + * FLASH (default: 2) + * Only the low order byte is processed. + * - 0: off + * - 1: on + * - 2: auto + * - 5: on, redeye + * - 6: auto, redeye + * Other values are accepted as well, but will be changed to 2 + * at some point. + * + * FOCUS_SELF_TIMER (default: 0) + * Only the low order byte is processed. + * - 0: fixed, next picture in normal mode + * - 1: fixed, next picture in self timer mode + * - 2: auto, next picture in normal mode + * - 3: auto, next picture in self timer mode + * After the next picture has been taken in self timer mode, + * the value is automatically changed to the next lower even + * value (normal mode). + * + * Additional information from HP: + * - Fixed: 2.6 feet to infinity + * - Auto: 8 inches to infinity + * + * AUTO_OFF_TIME (default: 5) + * Only the low order byte is processed. + * - 0: Will be changed by the camera to 255. + * - 1 to 255. Measured in minutes. + * + * BEEP (default: 1) + * Only the low order byte is processed. + * - 0: off + * - 1 to 255: on + */ +typedef enum +{ + K_PREFERENCE_RESOLUTION = 0xc000, + K_PREFERENCE_EXPOSURE = 0xc002, + K_PREFERENCE_SELF_TIMER_TIME = 0xc004, + K_PREFERENCE_SLIDE_SHOW_INTERVAL = 0xc006, + K_PREFERENCE_FLASH = 0xd000, + K_PREFERENCE_FOCUS_SELF_TIMER = 0xd002, + K_PREFERENCE_AUTO_OFF_TIME = 0xd004, + K_PREFERENCE_BEEP = 0xd006 +} KPreference; + +typedef enum +{ + K_POWER_LEVEL_LOW = 0x00, + K_POWER_LEVEL_NORMAL = 0x01, + K_POWER_LEVEL_HIGH = 0x02 +} KPowerLevel; + +typedef enum +{ + K_POWER_SOURCE_BATTERY = 0x00, + K_POWER_SOURCE_AC = 0x01 +} KPowerSource; + +typedef enum +{ + K_THUMBNAIL = 0x00, + K_IMAGE_JPEG = 0x10, + K_IMAGE_EXIF = 0x30 +} KImageType; + +typedef enum +{ + K_DISPLAY_BUILT_IN = 0x00, + K_DISPLAY_TV = 0x02 +} KDisplay; + +typedef enum +{ + K_CARD_STATUS_CARD = 0x07, + K_CARD_STATUS_NO_CARD = 0x12 +} KCardStatus; + +typedef enum +{ + K_DATE_FORMAT_MONTH_DAY_YEAR = 0x00, + K_DATE_FORMAT_DAY_MONTH_YEAR = 0x01, + K_DATE_FORMAT_YEAR_MONTH_DAY = 0x02 +} KDateFormat; + +typedef enum +{ + K_TV_OUTPUT_FORMAT_NTSC = 0x00, + K_TV_OUTPUT_FORMAT_PAL = 0x01, + K_TV_OUTPUT_FORMAT_HIDE = 0x02 +} KTVOutputFormat; + +/* + * Two flavours of Konica's protocol exist: One uses two bytes + * for image IDs (qm100, unsigned int), the other one uses four + * (qm200, unsigned long). + */ +int k_init (GPPort *, GPContext *); +int k_ping (GPPort *, GPContext *); + +typedef enum +{ + K_BIT_RATE_300 = 1 << 0, + K_BIT_RATE_600 = 1 << 1, + K_BIT_RATE_1200 = 1 << 2, + K_BIT_RATE_2400 = 1 << 3, + K_BIT_RATE_4800 = 1 << 4, + K_BIT_RATE_9600 = 1 << 5, + K_BIT_RATE_19200 = 1 << 6, + K_BIT_RATE_38400 = 1 << 7, + K_BIT_RATE_57600 = 1 << 8, + K_BIT_RATE_115200 = 1 << 9 +} KBitRate; + +typedef enum +{ + K_BIT_FLAG_8_BITS = 1 << 0, + K_BIT_FLAG_STOP_2_BITS = 1 << 1, + K_BIT_FLAG_PARITY_ON = 1 << 2, + K_BIT_FLAG_PARITY_ODD = 1 << 3, + K_BIT_FLAG_HW_FLOW_CTRL = 1 << 4 +} KBitFlag; + +int k_get_io_capability (GPPort *, GPContext *, + KBitRate *bit_rates, KBitFlag *bit_flags); +int k_set_io_capability (GPPort *, GPContext *, + KBitRate bit_rate, KBitFlag bit_flags); + +int k_erase_all (GPPort *device, GPContext *, + unsigned int *number_of_images_not_erased); + +int k_format_memory_card (GPPort *, GPContext *); + +int k_take_picture ( + GPPort *device, GPContext *, + int image_id_long, + unsigned long *image_id, + unsigned int *exif_size, + unsigned char **information_buffer, + unsigned int *information_buffer_size, + int *protected); + + +int k_get_preview (GPPort *device, GPContext *, int thumbnail, + unsigned char **image_buffer, + unsigned int *image_buffer_size); + + +int k_set_protect_status (GPPort *device, GPContext *, int image_id_long, + unsigned long image_id, int protected); + + +int k_erase_image (GPPort *device, GPContext *, int image_id_long, + unsigned long image_id); + + +int k_reset_preferences (GPPort *device, GPContext *); + +typedef struct { + unsigned char year, month, day; + unsigned char hour, minute, second; +} KDate; + +int k_get_date_and_time (GPPort *device, GPContext *, KDate *date); +int k_set_date_and_time (GPPort *device, GPContext *, KDate date); + +typedef struct { + unsigned int shutoff_time; + unsigned int self_timer_time; + unsigned int beep; + unsigned int slide_show_interval; +} KPreferences; + +int k_get_preferences (GPPort *device, GPContext *, KPreferences *preferences); +int k_set_preference (GPPort *device, GPContext *, KPreference preference, + unsigned int value); + +typedef struct { + KPowerLevel power_level; + KPowerSource power_source; + KCardStatus card_status; + KDisplay display; + unsigned int self_test_result; + unsigned int card_size; + unsigned int pictures, pictures_left; + KDate date; + unsigned int bit_rate; + KBitFlag bit_flags; + unsigned char flash, resolution, focus, exposure; + unsigned char total_pictures, total_strobes; +} KStatus; + +int k_get_status (GPPort *device, GPContext *, KStatus *status); + +typedef struct _KVersion KVersion; +struct _KVersion { + unsigned char major; + unsigned char minor; +}; + +typedef struct _KInformation KInformation; +struct _KInformation { + char model[5]; + char serial_number[11]; + KVersion hardware; + KVersion software; + KVersion testing; + char name[23]; + char manufacturer[31]; +}; + +int k_get_information (GPPort *device, GPContext *, KInformation *info); + +int k_get_image_information ( + GPPort *device, GPContext *, + int image_id_long, + unsigned long image_number, + unsigned long *image_id, + unsigned int *exif_size, + int *protected, + unsigned char **information_buffer, + unsigned int *information_buffer_size); + +int k_get_image ( + GPPort *device, GPContext *, + int image_id_long, + unsigned long image_id, + KImageType image_type, + unsigned char **image_buffer, + unsigned int *image_buffer_size); + +/* Localization */ +int k_localization_tv_output_format_set (GPPort *device, GPContext *, + KTVOutputFormat tv_output_format); +int k_localization_date_format_set (GPPort *device, GPContext *, + KDateFormat date_format); +int k_localization_data_put (GPPort *device, GPContext *, + unsigned char *data, + unsigned long data_size); + +int k_cancel (GPPort *device, GPContext *, KCommand *command); + +#endif /* __KONICA_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/library.c new file mode 100644 index 00000000..58ad29ca --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/library.c @@ -0,0 +1,1287 @@ +/* library.c + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include + +#include +#include + +#include "konica.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define C(r) {int ret=(r);if(ret<0) return(ret);} +#define C_NULL(r) {if (!(r)) return (GP_ERROR_BAD_PARAMETERS);} + +#define GP_MODULE "konica" +#define PING_TIMEOUT 60 + +static struct { + const char *model; + int image_id_long; + int vendor; + int product; +} konica_cameras[] = { + {"Konica Q-EZ", 0, 0, 0}, + {"Konica Q-M100", 0, 0, 0}, + {"Konica Q-M100V", 0, 0, 0}, + {"Konica Q-M200", 1, 0, 0}, + {"HP PhotoSmart", 0, 0, 0}, + {"HP PhotoSmart C20", 0, 0, 0}, + {"HP PhotoSmart C30", 0, 0, 0}, + {"HP PhotoSmart C200", 0, 0, 0}, + {NULL, 0, 0, 0} +}; + +struct _CameraPrivateLibrary { + unsigned int speed, timeout; + int image_id_long; +}; + + +static int localization_file_read (Camera* camera, const char* file_name, + unsigned char** data, long int* data_size, + GPContext *context); + +static int +timeout_func (Camera *camera, GPContext *context) +{ + C(k_ping (camera->port, context)); + + return (GP_OK); +} + +static int +get_info (Camera *camera, unsigned int n, CameraFileInfo *info, + char *fn, CameraFile *file, GPContext *context) +{ + unsigned long image_id; + unsigned int buffer_size, exif_size; + unsigned char *buffer = NULL; + int protected, r; + + /* + * Remove the timeout, get the information and restart the + * timeout afterwards. + */ + gp_camera_stop_timeout (camera, camera->pl->timeout); + r = k_get_image_information (camera->port, context, + camera->pl->image_id_long, n, &image_id, &exif_size, + &protected, &buffer, &buffer_size); + camera->pl->timeout = gp_camera_start_timeout (camera, PING_TIMEOUT, + timeout_func); + C(r); + + info->audio.fields = GP_FILE_INFO_NONE; + + info->preview.fields = GP_FILE_INFO_TYPE; + strcpy (info->preview.type, GP_MIME_JPEG); + + info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_PERMISSIONS | + GP_FILE_INFO_TYPE; + info->file.size = exif_size * 1000; + info->file.permissions = GP_FILE_PERM_READ; + if (!protected) + info->file.permissions |= GP_FILE_PERM_DELETE; + strcpy (info->file.type, GP_MIME_JPEG); + sprintf (fn, "%06i.jpeg", (int) image_id); + + if (file) + gp_file_set_data_and_size (file, (char*)buffer, buffer_size); + else + free (buffer); + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + CameraFile *file; + CameraFileInfo info; + KStatus status; + unsigned int i, id; + Camera *camera = data; + int result; + + /* + * We can't get the filename from the camera. + * But we decide to call the images %6i.jpeg', with the image id as + * parameter. Therefore, let's get the image ids. + */ + C(k_get_status (camera->port, context, &status)); + + id = gp_context_progress_start (context, status.pictures, + _("Getting file list...")); + for (i = 0; i < status.pictures; i++) { + char fn[40]; + /* Get information */ + gp_file_new (&file); + result = get_info (camera, i + 1, &info, fn, file, context); + if (result < 0) { + gp_file_unref (file); + return (result); + } + + /* + * Append directly to the filesystem instead of to the list, + * because we have additional information. + */ + gp_filesystem_append (camera->fs, folder, fn, context); + gp_filesystem_set_info_noop (camera->fs, folder, fn, info, context); + gp_filesystem_set_file_noop (camera->fs, folder, fn, GP_FILE_TYPE_PREVIEW, file, context); + gp_file_unref (file); + + gp_context_idle (context); + gp_context_progress_update (context, id, i + 1); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + } + gp_context_progress_stop (context, id); + + return (GP_OK); +} + +int +camera_id (CameraText* id) +{ + strcpy (id->text, "konica"); + + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList* list) +{ + int i; + CameraAbilities a; + + for (i = 0; konica_cameras [i].model; i++) { + memset(&a, 0, sizeof(a)); + a.status = GP_DRIVER_STATUS_PRODUCTION; + strcpy (a.model, konica_cameras [i].model); + a.usb_vendor = konica_cameras [i].vendor; + a.usb_product = konica_cameras [i].product; + if (konica_cameras [i].vendor) + a.port = GP_PORT_USB; + else { + a.port = GP_PORT_SERIAL; + a.speed[0] = 300; + a.speed[1] = 600; + a.speed[2] = 1200; + a.speed[3] = 2400; + a.speed[4] = 4800; + a.speed[5] = 9600; + a.speed[6] = 19200; + a.speed[7] = 38400; + a.speed[8] = 57600; + a.speed[9] = 115200; + a.speed[10] = 0; + } + a.operations = GP_OPERATION_CONFIG | + GP_OPERATION_CAPTURE_IMAGE | + GP_OPERATION_CAPTURE_PREVIEW; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW | + GP_FILE_OPERATION_EXIF; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + gp_abilities_list_append (list, a); + } + + return (GP_OK); +} + +static int +set_speed (Camera *camera, int speed, GPContext *context) +{ + GPPortSettings settings; + KBitRate bit_rates; + KBitFlag bit_flags; + int i; + int speeds[] = {300, 600, 1200, 2400, 4800, 9600, 19200, + 38400, 57600, 115200}; + + C(gp_port_get_settings (camera->port, &settings)); + if ((settings.serial.speed == speed) || + (settings.serial.speed == 115200)) + return (GP_OK); + + switch (speed) { + case 0: + + /* Set the highest possible speed */ + C(k_get_io_capability (camera->port, context, &bit_rates, + &bit_flags)); + for (i = 9; i >= 0; i--) + if ((1 << i) & bit_rates) + break; + if (i < 0) + return (GP_ERROR_IO_SERIAL_SPEED); + bit_rates = (1 << i); + speed = speeds[i]; + break; + case 300: + bit_rates = 1 << 0; + break; + case 600: + bit_rates = 1 << 1; + break; + case 1200: + bit_rates = 1 << 2; + break; + case 2400: + bit_rates = 1 << 3; + break; + case 4800: + bit_rates = 1 << 4; + break; + case 9600: + bit_rates = 1 << 5; + break; + case 19200: + bit_rates = 1 << 6; + break; + case 38400: + bit_rates = 1 << 7; + break; + case 57600: + bit_rates = 1 << 8; + break; + case 115200: + bit_rates = 1 << 9; + break; + default: + return (GP_ERROR_IO_SERIAL_SPEED); + } + + /* Request the new speed */ + bit_flags = K_BIT_FLAG_8_BITS; + C(k_set_io_capability (camera->port, context, bit_rates, + bit_flags)); + gp_log (GP_LOG_DEBUG, "konica", "Reconnecting at speed %d", speed); + settings.serial.speed = speed; + C(gp_port_set_settings (camera->port, settings)); + C(k_init (camera->port, context)); + + return (GP_OK); +} + +static int +test_speed (Camera *camera, GPContext *context) +{ + int i; + unsigned int speeds[] = {115200, 9600, 57600, 38400, 19200, + 4800, 2400, 1200, 600, 300}; + unsigned int id; + GPPortSettings settings; + + C(gp_port_get_settings (camera->port, &settings)); + + id = gp_context_progress_start (context, 10, + _("Testing different speeds...")); + for (i = 0; i < 10; i++) { + gp_log (GP_LOG_DEBUG, "konica", "Testing speed %d", + speeds[i]); + settings.serial.speed = speeds[i]; + C(gp_port_set_settings (camera->port, settings)); + if (k_init (camera->port, context) == GP_OK) + break; + gp_context_idle (context); + gp_context_progress_update (context, id, i + 1); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + } + gp_context_progress_stop (context, id); + if (i == 10) { + gp_context_error (context, _("The camera could not be " + "contacted. Please make sure it is connected to the " + "computer and turned on.")); + return (GP_ERROR_IO); + } + + return (speeds[i]); +} + +static int +set_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo info, void *data, GPContext *context) +{ + Camera *camera = data; + char tmp[7]; + int protected; + unsigned long image_id; + + /* Permissions? */ + if (info.file.fields & GP_FILE_INFO_PERMISSIONS) { + strncpy (tmp, file, 6); + tmp[6] = '\0'; + image_id = atol (tmp); + if (info.file.permissions & GP_FILE_PERM_DELETE) + protected = FALSE; + else + protected = TRUE; + C(k_set_protect_status (camera->port, context, + camera->pl->image_id_long, image_id, protected)); + } + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + CameraFile *file; + int n, result; + char fn[40]; + + /* We need image numbers starting with 1 */ + n = gp_filesystem_number (camera->fs, folder, filename, context); + if (n < 0) + return (n); + n++; + + gp_file_new (&file); + result = get_info (camera, n, info, fn, file, context); + if (result < 0) { + gp_file_unref (file); + return (result); + } + gp_filesystem_set_file_noop (fs, folder, filename, GP_FILE_TYPE_PREVIEW, file, context); + gp_file_unref (file); + return (GP_OK); +} + +static int +camera_exit (Camera* camera, GPContext *context) +{ + if (camera->pl) { + gp_camera_stop_timeout (camera, camera->pl->timeout); + free (camera->pl); + camera->pl = NULL; + } + + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char* folder, void *data, + GPContext *context) +{ + Camera *camera = data; + unsigned int not_erased = 0; + + if (strcmp (folder, "/")) + return (GP_ERROR_DIRECTORY_NOT_FOUND); + + C(k_erase_all (camera->port, context, ¬_erased)); + + if (not_erased) { + gp_context_error (context, _("%i pictures could not be " + "deleted because they are protected"), not_erased); + gp_filesystem_reset (camera->fs); + return (GP_ERROR); + } + + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + unsigned long image_id; + char image_id_string[] = {0, 0, 0, 0, 0, 0, 0}; + unsigned char *fdata = NULL; + unsigned int size; + CameraFileInfo info; + int r; + + if (strlen (filename) != 11) + return (GP_ERROR_FILE_NOT_FOUND); + if (strcmp (folder, "/")) + return (GP_ERROR_DIRECTORY_NOT_FOUND); + + /* Check if we can get the image id from the filename. */ + strncpy (image_id_string, filename, 6); + image_id = atol (image_id_string); + + /* Get information about the image */ + if (type == GP_FILE_TYPE_NORMAL) + C(gp_filesystem_get_info (camera->fs, folder, + filename, &info, context)); + + /* + * Remove the timeout, get the image and start the timeout + * afterwards. + */ + gp_camera_stop_timeout (camera, camera->pl->timeout); + switch (type) { + case GP_FILE_TYPE_PREVIEW: + size = 2048; + r = k_get_image (camera->port, context, + camera->pl->image_id_long, + image_id, K_THUMBNAIL, &fdata, + &size); + break; + case GP_FILE_TYPE_NORMAL: + size = info.file.size; + r = k_get_image (camera->port, context, + camera->pl->image_id_long, + image_id, K_IMAGE_EXIF, &fdata, + &size); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + C(r); + camera->pl->timeout = gp_camera_start_timeout (camera, PING_TIMEOUT, + timeout_func); + + C(gp_file_set_data_and_size (file, (char*)fdata, size)); + return gp_file_set_mime_type (file, GP_MIME_JPEG); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + char tmp[] = {0, 0, 0, 0, 0, 0, 0}; + unsigned long image_id; + + C_NULL (camera && folder && filename); + + /* We don't support folders */ + if (strcmp (folder, "/")) return (GP_ERROR_DIRECTORY_NOT_FOUND); + + /* Extract the image id from the filename */ + strncpy (tmp, filename, 6); + image_id = atol (tmp); + + C(k_erase_image (camera->port, context, camera->pl->image_id_long, + image_id)); + + return (GP_OK); +} + +static int +camera_summary (Camera* camera, CameraText* summary, GPContext *context) +{ + KInformation info; + + GP_DEBUG ("*** ENTER: camera_summary " + "***"); + C(k_get_information (camera->port, context, &info)); + + snprintf (summary->text, sizeof (summary->text), + _("Model: %s\n" + "Serial Number: %s,\n" + "Hardware Version: %i.%i\n" + "Software Version: %i.%i\n" + "Testing Software Version: %i.%i\n" + "Name: %s,\n" + "Manufacturer: %s\n"), + info.model, info.serial_number, + info.hardware.major, info.hardware.minor, + info.software.major, info.software.minor, + info.testing.major, info.testing.minor, + info.name, info.manufacturer); + + return (GP_OK); +} + +static int +camera_capture_preview (Camera* camera, CameraFile* file, GPContext *context) +{ + unsigned char *data = NULL; + unsigned int size = 0; + + C(k_get_preview (camera->port, context, TRUE, &data, &size)); + C(gp_file_set_data_and_size (file, (char*)data, size)); + C(gp_file_set_mime_type (file, GP_MIME_JPEG)); + + return (GP_OK); +} + +static int +camera_capture (Camera* camera, CameraCaptureType type, CameraFilePath* path, + GPContext *context) +{ + unsigned long image_id; + unsigned int exif_size; + unsigned char *buffer = NULL; + unsigned int buffer_size; + int protected, r; + CameraFile *file = NULL; + CameraFileInfo info; + char fn[40]; + + C_NULL (camera && path); + + /* We only support capturing of images */ + if (type != GP_CAPTURE_IMAGE) + return (GP_ERROR_NOT_SUPPORTED); + + /* Stop the timeout, take the picture, and restart the timeout. */ + gp_camera_stop_timeout (camera, camera->pl->timeout); + r = k_take_picture (camera->port, context, camera->pl->image_id_long, + &image_id, &exif_size, &buffer, &buffer_size, &protected); + camera->pl->timeout = gp_camera_start_timeout (camera, PING_TIMEOUT, + timeout_func); + C(r); + + sprintf (path->name, "%06i.jpeg", (int) image_id); + strcpy (path->folder, "/"); + C(gp_filesystem_append (camera->fs, path->folder, + path->name, context)); + + info.preview.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + info.preview.size = buffer_size; + strcpy (info.preview.type, GP_MIME_JPEG); + + info.file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_PERMISSIONS | + GP_FILE_INFO_TYPE; + info.file.size = exif_size; + info.file.permissions = GP_FILE_PERM_READ; + if (!protected) + info.file.permissions |= GP_FILE_PERM_DELETE; + strcpy (info.file.type, GP_MIME_JPEG); + sprintf (fn, "%06i.jpeg", (int) image_id); + gp_filesystem_set_info_noop (camera->fs, path->folder, fn, info, context); + + gp_file_new (&file); + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_data_and_size (file, (char*)buffer, buffer_size); + gp_filesystem_set_file_noop (camera->fs, path->folder, fn, GP_FILE_TYPE_EXIF, file, context); + gp_file_unref (file); + + return (GP_OK); +} + +static int +camera_about (Camera* camera, CameraText* about, GPContext *context) +{ + C_NULL (camera && about); + + /* Translators: please write 'M"uller' (that is, with u-umlaut) + if your charset allows it. If not, use "Mueller". */ + strcpy (about->text, _("Konica library\n" + "Lutz Mueller \n" + "Support for all Konica and several HP cameras.")); + + return (GP_OK); +} + +static int +camera_get_config (Camera* camera, CameraWidget** window, GPContext *context) +{ + CameraWidget *widget; + CameraWidget *section; + KStatus status; + KPreferences preferences; + int year_4_digits; + struct tm tm_struct; + time_t t; + float value_float; + const char *name; + gp_system_dir d; + gp_system_dirent de; + unsigned int id; + + /* Get the current settings. */ + id = gp_context_progress_start (context, 2, + _("Getting configuration...")); + C(k_get_status (camera->port, context, &status)); + gp_context_progress_update (context, id, 1); + C(k_get_preferences (camera->port, context, &preferences)); + gp_context_progress_stop (context, id); + + /* Create the window. */ + gp_widget_new (GP_WIDGET_WINDOW, _("Konica Configuration"), window); + + /************************/ + /* Persistent Settings */ + /************************/ + gp_widget_new (GP_WIDGET_SECTION, _("Persistent Settings"), §ion); + gp_widget_append (*window, section); + + /* Date */ + gp_widget_new (GP_WIDGET_DATE, _("Date and Time"), &widget); + gp_widget_append (section, widget); + if (status.date.year > 80) year_4_digits = status.date.year + 1900; + else year_4_digits = status.date.year + 2000; + tm_struct.tm_year = year_4_digits - 1900; + tm_struct.tm_mon = status.date.month - 1; + tm_struct.tm_mday = status.date.day; + tm_struct.tm_hour = status.date.hour; + tm_struct.tm_min = status.date.minute; + tm_struct.tm_sec = status.date.second; + t = mktime (&tm_struct); + gp_widget_set_value (widget, &t); + + /* Beep */ + gp_widget_new (GP_WIDGET_RADIO, _("Beep"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("On")); + gp_widget_add_choice (widget, _("Off")); + switch (preferences.beep) { + case 0: + gp_widget_set_value (widget, _("Off")); + break; + default: + gp_widget_set_value (widget, _("On")); + break; + } + gp_widget_set_info (widget, _("Shall the camera beep when taking a " + "picture?")); + + /* Self Timer Time */ + gp_widget_new (GP_WIDGET_RANGE, _("Self Timer Time"), &widget); + gp_widget_append (section, widget); + gp_widget_set_range (widget, 3, 40, 1); + value_float = preferences.self_timer_time; + gp_widget_set_value (widget, &value_float); + + /* Auto Off Time */ + gp_widget_new (GP_WIDGET_RANGE, _("Auto Off Time"), &widget); + gp_widget_append (section, widget); + gp_widget_set_range (widget, 1, 255, 1); + value_float = preferences.shutoff_time; + gp_widget_set_value (widget, &value_float); + + /* Slide Show Interval */ + gp_widget_new (GP_WIDGET_RANGE, _("Slide Show Interval"), &widget); + gp_widget_append (section, widget); + gp_widget_set_range (widget, 1, 30, 1); + value_float = preferences.slide_show_interval; + gp_widget_set_value (widget, &value_float); + + /* Resolution */ + gp_widget_new (GP_WIDGET_RADIO, _("Resolution"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("Low (576 x 436)")); + gp_widget_add_choice (widget, _("Medium (1152 x 872)")); + gp_widget_add_choice (widget, _("High (1152 x 872)")); + switch (status.resolution) { + case 1: + gp_widget_set_value (widget, _("High (1152 x 872)")); + break; + case 3: + gp_widget_set_value (widget, _("Low (576 x 436)")); + break; + default: + gp_widget_set_value (widget, _("Medium (1152 x 872)")); + break; + } + + /****************/ + /* Localization */ + /****************/ + gp_widget_new (GP_WIDGET_SECTION, _("Localization"), §ion); + gp_widget_append (*window, section); + + /* Language */ + d = gp_system_opendir (LOCALIZATION); + if (d) { + gp_widget_new (GP_WIDGET_MENU, _("Language"), &widget); + gp_widget_append (section, widget); + while ((de = gp_system_readdir (d))) { + name = gp_system_filename (de); + if (name && (*name != '.')) + gp_widget_add_choice (widget, name); + } + gp_widget_set_value (widget, _("None selected")); + gp_system_closedir (d); + } + + /* TV output format */ + gp_widget_new (GP_WIDGET_MENU, _("TV Output Format"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("NTSC")); + gp_widget_add_choice (widget, _("PAL")); + gp_widget_add_choice (widget, _("Do not display TV menu")); + gp_widget_set_value (widget, _("None selected")); + + /* Date format */ + gp_widget_new (GP_WIDGET_MENU, _("Date Format"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("Month/Day/Year")); + gp_widget_add_choice (widget, _("Day/Month/Year")); + gp_widget_add_choice (widget, _("Year/Month/Day")); + gp_widget_set_value (widget, _("None selected")); + + /********************************/ + /* Session-persistent Settings */ + /********************************/ + gp_widget_new (GP_WIDGET_SECTION, _("Session-persistent Settings"), + §ion); + gp_widget_append (*window, section); + + /* Flash */ + gp_widget_new (GP_WIDGET_RADIO, _("Flash"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("Off")); + gp_widget_add_choice (widget, _("On")); + gp_widget_add_choice (widget, _("On, red-eye reduction")); + gp_widget_add_choice (widget, _("Auto")); + gp_widget_add_choice (widget, _("Auto, red-eye reduction")); + switch (status.flash) { + case 0: + gp_widget_set_value (widget, _("Off")); + break; + case 1: + gp_widget_set_value (widget, _("On")); + break; + case 5: + gp_widget_set_value (widget, _("On, red-eye reduction")); + break; + case 6: + gp_widget_set_value (widget, _("Auto, red-eye reduction")); + break; + default: + gp_widget_set_value (widget, _("Auto")); + break; + } + + /* Exposure */ + gp_widget_new (GP_WIDGET_RANGE, _("Exposure"), &widget); + gp_widget_append (section, widget); + gp_widget_set_range (widget, 0, 255, 1); + value_float = status.exposure; + gp_widget_set_value (widget, &value_float); + + /* Focus */ + gp_widget_new (GP_WIDGET_RADIO, _("Focus"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("Fixed")); + gp_widget_add_choice (widget, _("Auto")); + switch ((unsigned int) (status.focus / 2)) { + case 1: + gp_widget_set_value (widget, _("Auto")); + break; + default: + gp_widget_set_value (widget, _("Fixed")); + break; + } + + /************************/ + /* Volatile Settings */ + /************************/ + gp_widget_new (GP_WIDGET_SECTION, _("Volatile Settings"), §ion); + gp_widget_append (*window, section); + + /* Self Timer */ + gp_widget_new (GP_WIDGET_RADIO, _("Self Timer"), &widget); + gp_widget_append (section, widget); + gp_widget_add_choice (widget, _("Self Timer (next picture only)")); + gp_widget_add_choice (widget, _("Normal")); + switch (status.focus % 2) { + case 1: + gp_widget_set_value (widget, _("Self Timer (" + "next picture only)")); + break; + default: + gp_widget_set_value (widget, _("Normal")); + break; + } + + /* That's it. */ + return (GP_OK); +} + +static int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *section; + CameraWidget *widget_focus; + CameraWidget *widget_self_timer; + CameraWidget *widget; + KDate date; + KDateFormat date_format = K_DATE_FORMAT_YEAR_MONTH_DAY; + KTVOutputFormat tv_output_format = K_TV_OUTPUT_FORMAT_HIDE; + unsigned int beep = 0; + int i, j = 0; + unsigned char *data; + long int data_size; + unsigned char focus_self_timer = 0; + float f; + char *c; + struct tm *tm_struct; + int result; + + GP_DEBUG ("*** ENTER: camera_set_config ***"); + + /************************/ + /* Persistent Settings */ + /************************/ + gp_widget_get_child_by_label (window, _("Persistent Settings"), + §ion); + + /* Date & Time */ + gp_widget_get_child_by_label (section, _("Date and Time"), &widget); + if (gp_widget_changed (widget)) { + time_t xtime; + + gp_widget_get_value (widget, &i); + gp_widget_set_changed (widget, 0); + xtime = i; + tm_struct = localtime (&xtime); + date.year = tm_struct->tm_year - 100; + date.month = tm_struct->tm_mon + 1; + date.day = tm_struct->tm_mday; + date.hour = tm_struct->tm_hour; + date.minute = tm_struct->tm_min; + date.second = tm_struct->tm_sec; + C(k_set_date_and_time (camera->port, context, date)); + } + + /* Beep */ + gp_widget_get_child_by_label (section, _("Beep"), &widget); + if (gp_widget_changed (widget)) { + gp_widget_get_value (widget, &c); + gp_widget_set_changed (widget, 0); + if (strcmp (c, _("Off")) == 0) + beep = 0; + else + beep = 1; + C(k_set_preference (camera->port, context, + K_PREFERENCE_BEEP, beep)); + } + + /* Self Timer Time */ + gp_widget_get_child_by_label (section, _("Self Timer Time"), &widget); + if (gp_widget_changed (widget)) { + gp_widget_get_value (widget, &f); + gp_widget_set_changed (widget, 0); + C(k_set_preference (camera->port, context, + K_PREFERENCE_SELF_TIMER_TIME, (int) f)); + } + + /* Auto Off Time */ + gp_widget_get_child_by_label (section, _("Auto Off Time"), &widget); + if (gp_widget_changed (widget)) { + gp_widget_get_value (widget, &f); + gp_widget_set_changed (widget, 0); + C(k_set_preference (camera->port, context, + K_PREFERENCE_AUTO_OFF_TIME, (int) f)); + } + + /* Slide Show Interval */ + gp_widget_get_child_by_label (section, _("Slide Show Interval"), + &widget); + if (gp_widget_changed (widget)) { + gp_widget_get_value (widget, &f); + gp_widget_set_changed (widget, 0); + C(k_set_preference (camera->port, context, + K_PREFERENCE_SLIDE_SHOW_INTERVAL, (int) f)); + } + + /* Resolution */ + gp_widget_get_child_by_label (section, _("Resolution"), &widget); + if (gp_widget_changed (widget)) { + gp_widget_get_value (widget, &c); + gp_widget_set_changed (widget, 0); + if (!strcmp (c, _("High (1152 x 872)"))) + j = 1; + else if (!strcmp (c, _("Low (576 x 436)"))) + j = 3; + else + j = 0; + C(k_set_preference (camera->port, context, + K_PREFERENCE_RESOLUTION, j)); + } + + /****************/ + /* Localization */ + /****************/ + gp_widget_get_child_by_label (window, _("Localization"), §ion); + + /* Localization File */ + C(gp_widget_get_child_by_label (section, _("Language"), &widget)); + C(result = gp_widget_changed (widget)); + if (result) { + gp_widget_set_changed (widget, 0); + C(gp_widget_get_value (widget, &c)); + if (strcmp (c, _("None selected"))) { + data = NULL; + data_size = 0; + + /* Read localization file */ + result = localization_file_read (camera, c, + &data, &data_size, + context); + if (result != GP_OK) { + free (data); + return (result); + } + + /* Go! */ + result = k_localization_data_put (camera->port, context, + data, data_size); + free (data); + C(result); + } + } + + /* TV Output Format */ + gp_widget_get_child_by_label (section, _("TV Output Format"), &widget); + if (gp_widget_changed (widget)) { + gp_widget_set_changed (widget, 0); + gp_widget_get_value (widget, &c); + if (strcmp (c, _("None selected"))) { + if (!strcmp (c, _("NTSC"))) + tv_output_format = K_TV_OUTPUT_FORMAT_NTSC; + else if (!strcmp (c, _("PAL"))) + tv_output_format = K_TV_OUTPUT_FORMAT_PAL; + else if (!strcmp (c, _("Do not display TV menu"))) + tv_output_format = K_TV_OUTPUT_FORMAT_HIDE; + else + return (GP_ERROR); + C(k_localization_tv_output_format_set ( + camera->port, context, tv_output_format)); + } + } + + /* Date Format */ + gp_widget_get_child_by_label (section, _("Date Format"), &widget); + if (gp_widget_changed (widget)) { + gp_widget_set_changed (widget, 0); + gp_widget_get_value (widget, &c); + if (strcmp (c, _("None selected"))) { + if (!strcmp (c, _("Month/Day/Year"))) + date_format = K_DATE_FORMAT_MONTH_DAY_YEAR; + else if (!strcmp (c, _("Day/Month/Year"))) + date_format = K_DATE_FORMAT_DAY_MONTH_YEAR; + else if (!strcmp (c, _("Year/Month/Day"))) + date_format = K_DATE_FORMAT_YEAR_MONTH_DAY; + else + return (GP_ERROR); + C(k_localization_date_format_set ( + camera->port, context, date_format)); + } + } + + /********************************/ + /* Session-persistent Settings */ + /********************************/ + gp_widget_get_child_by_label (window, _("Session-persistent Settings"), + §ion); + + /* Flash */ + gp_widget_get_child_by_label (section, _("Flash"), &widget); + if (gp_widget_changed (widget)) { + gp_widget_set_changed (widget, 0); + gp_widget_get_value (widget, &c); + if (!strcmp (c, _("Off"))) + j = 0; + else if (!strcmp (c, _("On"))) + j = 1; + else if (!strcmp (c, _("On, red-eye reduction"))) + j = 5; + else if (!strcmp (c, _("Auto"))) + j = 2; + else + j = 6; + C(k_set_preference (camera->port, context, + K_PREFERENCE_FLASH, j)); + } + + /* Exposure */ + gp_widget_get_child_by_label (section, _("Exposure"), &widget); + if (gp_widget_changed (widget)) { + gp_widget_set_changed (widget, 0); + gp_widget_get_value (widget, &f); + C(k_set_preference (camera->port, context, + K_PREFERENCE_EXPOSURE, (int) f)); + } + + /* Focus will be set together with self timer. */ + gp_widget_get_child_by_label (section, _("Focus"), &widget_focus); + + /************************/ + /* Volatile Settings */ + /************************/ + gp_widget_get_child_by_label (window, _("Volatile Settings"), §ion); + + /* Self Timer (and Focus) */ + gp_widget_get_child_by_label (section, _("Self Timer"), + &widget_self_timer); + if (gp_widget_changed (widget_focus) && + gp_widget_changed (widget_self_timer)) { + gp_widget_set_changed (widget_focus, 0); + gp_widget_set_changed (widget_self_timer, 0); + gp_widget_get_value (widget_focus, &c); + if (!strcmp (c, _("Auto"))) + focus_self_timer = 2; + else + focus_self_timer = 0; + gp_widget_get_value (widget_self_timer, &c); + if (!strcmp (c, _("Self Timer (next picture only)"))) + focus_self_timer++; + C(k_set_preference (camera->port, context, + K_PREFERENCE_FOCUS_SELF_TIMER, focus_self_timer)); + } + + /* We are done. */ + return (GP_OK); +} + +int +localization_file_read (Camera *camera, const char *file_name, + unsigned char **data, long int *data_size, + GPContext *context) +{ + FILE *file; + unsigned int j; + int f; + unsigned char c[] = "\0\0"; + unsigned long line_number; + unsigned int d; + char path[1024]; + + strcpy (path, LOCALIZATION); + strcat (path, "/"); + strcat (path, file_name); + gp_log (GP_LOG_DEBUG, "konica", "Uploading '%s'...", path); + file = fopen (path, "r"); + if (!file) { + gp_context_error (context, _("Could not find localization " + "data at '%s'"), path); + return (GP_ERROR_FILE_NOT_FOUND); + } + + /* Allocate the memory */ + *data_size = 0; + *data = malloc (sizeof (char) * 65536); + if (!*data) { + fclose (file); + return (GP_ERROR_NO_MEMORY); + } + + j = 0; + line_number = 1; + do { + f = fgetc (file); + switch (f) { + case '\n': + line_number++; + continue; + case EOF: + break; + case '#': + /************************/ + /* Comment: Discard. */ + /************************/ + do { + f = fgetc (file); + } while ((f != '\n') && (f != EOF)); + if (f == '\n') line_number++; + continue; + case '\t': + continue; + case ' ': + continue; + default: + /****************************************/ + /* j == 0: We have to read the second */ + /* half of the byte to send. */ + /* j == 1: We'll compose our byte. */ + /****************************************/ + if ((f != '0') && (f != '1') && (f != '2') && + (f != '3') && (f != '4') && (f != '5') && + (f != '6') && (f != '7') && (f != '8') && + (f != '9') && (f != 'A') && (f != 'B') && + (f != 'C') && (f != 'D') && (f != 'E') && + (f != 'F')) { + GP_DEBUG ("Error in localization " + "file: '%c' in line %i is " + "not allowed.", f, + (int) line_number); + fclose (file); + return (GP_ERROR_CORRUPTED_DATA); + } + c[j] = (char) f; + if (j == 1) { + if (sscanf ((char *)&c[0], "%X", &d) != 1) { + GP_DEBUG ("Error in localization " + "file."); + fclose (file); + return (GP_ERROR_CORRUPTED_DATA); + } + (*data)[*data_size] = d; + (*data_size)++; + if (*data_size == 65536) { + gp_context_error (context, + _("Localization file too long!")); + fclose (file); + return (GP_ERROR_CORRUPTED_DATA); + } + } + j = 1 - j; + continue; + } + } while (f != EOF); + fclose (file); + + /* Calculate and check checksum. */ + gp_log (GP_LOG_DEBUG, "konica", "Checksum not implemented!"); + /*FIXME: There's a checksum at (*data)[100]. I could not + figure out how it is calculated. */ + + /* Calculate and check frame check sequence. */ + + gp_log (GP_LOG_DEBUG, "konica", "Frame check sequence " + "not implemented!"); + /* FIXME: There's a frame check sequence at (*data)[108] + and (*data)[109]. I could not figure out how it is + calculated. */ + gp_log (GP_LOG_DEBUG, "konica", "-> %i bytes read.\n", + (int) *data_size); + return (GP_OK); +} + +static int +camera_pre_func (Camera *camera, GPContext *context) +{ + /* Set best speed */ + set_speed (camera, 0, context); + + return (GP_OK); +} + +static int +camera_post_func (Camera *camera, GPContext *context) +{ + /* Set default speed */ + set_speed (camera, 9600, context); + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .get_info_func = get_info_func, + .set_info_func = set_info_func, + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func, +}; + +int +camera_init (Camera* camera, GPContext *context) +{ + int i, speed; + GPPortSettings settings; + CameraAbilities a; + + /* First, set up all the function pointers. */ + camera->functions->pre_func = camera_pre_func; + camera->functions->post_func = camera_post_func; + camera->functions->exit = camera_exit; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + camera->functions->capture = camera_capture; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + /* Lookup model information */ + gp_camera_get_abilities (camera, &a); + for (i = 0; konica_cameras [i].model; i++) + if (!strcmp (konica_cameras [i].model, a.model)) + break; + if (!konica_cameras [i].model) + return (GP_ERROR_MODEL_NOT_FOUND); + + /* Store some data we constantly need. */ + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + camera->pl->image_id_long = konica_cameras [i].image_id_long; + + /* Initiate the connection */ + C(gp_port_get_settings (camera->port, &settings)); + switch (camera->port->type) { + case GP_PORT_SERIAL: + + /* Set up the device */ + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + C(gp_port_set_settings (camera->port, settings)); + + /* Initiate the connection */ + C(speed = test_speed (camera, context)); +#if 0 +/* Ideally, we need to reset the speed to the speed that we encountered + after each operation (multiple programs accessing the camera). However, + that takes quite a bit of time for HP cameras... */ + camera->pl->speed = speed; +#endif + + break; + case GP_PORT_USB: + + /* Use the defaults the core parsed */ + C(gp_port_set_settings (camera->port, settings)); + + /* Initiate the connection */ + C(k_init (camera->port, context)); + + break; + default: + return (GP_ERROR_UNKNOWN_PORT); + } + /* Set up the filesystem */ + C(gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera)); + + /* Ping the camera every minute to prevent shut-down. */ + camera->pl->timeout = gp_camera_start_timeout (camera, PING_TIMEOUT, + timeout_func); + return (GP_OK); +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/Makefile.am new file mode 100644 index 00000000..73f35be6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/Makefile.am @@ -0,0 +1,4 @@ +localizationdir = $(datadir)/$(PACKAGE)/$(VERSION)/konica +localization_DATA = english french german japanese korean spanish + +EXTRA_DIST = $(localization_DATA) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/english b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/english new file mode 100644 index 00000000..43914db2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/english @@ -0,0 +1,2305 @@ +################################################################################ +# LOCALIZATION FOR HP PhotoSmart C30 # +# ---------------------------------- # +# This file (except the comments) will be sent to the camera (0x9200 command). # +# In order to make the data readable for humans, I commented the data and # +# formatted to some extend. # +# # +# SYMBOLS # +# ------- # +# Each symbol begins with a red pixel in the upper left corner, followed by a # +# yellow one, then by a blue one. The headline "red" does simply indicate that # +# those are lines beginning with a red pixel. The same with headline "yellow" # +# and headline "blue". The brightness of each pixel is defined by a value # +# ranging between A (dark) and F (bright). # +################################################################################ +# +# Variable: KC_LOCALIZE_CARDREV +# Value: 0x00 0x02 +# Length: 32 +# +4B 43 5F 4C 4F 43 41 4C 49 5A 45 5F 43 41 52 44 52 45 56 3A 00 02 FF FF FF FF FF FF FF FF FF FF +# +# Variable: LOCALIZATION +# Length: 16 +# +4C 4F 43 41 4C 49 5A 41 54 49 4F 4E FF FF FF FF +# +# Variable: LNG +# Value: 0x00 +# Length: 5 +# Explanation: Indicator for language. Known values are: +# - 0x00: English +# - 0x01: French +# - 0x02: Spanish +# - 0x04: German +# - 0x05: Japanese +# - 0x06: Korean +# +4C 4E 47 3A 00 +# +# Variable: TV +# Value: 0x00 +# Length: 4 +# Explanation: Format of TV output. Accepted values are: +# - 0x00: NTSC +# - 0x01: PAL +# - 0x02: Do not display TV menu. +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the format of the TV output. +# +54 56 3A 00 +# +# Variable: DT +# Value: 0x00 +# Length: 7 +# Explanation: Date format. Accepted values are: +# - 0x00: Month/Day/Year +# - 0x01: Day/Month/Year +# - 0x02: Year/Month/Day +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the date format. +# +44 54 3A 00 FF FF FF +# +# Variable: DST +# Value: 0x00 0x86 0x00 0x00 +# Length: 16 +# +44 53 54 3A 00 86 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SIZ +# Value: 0x00 0x01 0x00 0x00 +# Length: 16 +# +53 49 5A 3A 00 01 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SUM: +# Value: 0x11 +# Length: 8 +# Explanation: Sum of all bytes starting with the table of contents. The camera +# won't check this number. +# +53 55 4D 3A 11 FF FF FF +# +# Variable: CRC +# Value: 0x7F 0x8C +# Length: 8 +# Explanation: FCS (frame check sequence) of CRC (cyclic redundancy check). The +# camera will check this number. +# +43 52 43 3A 7F 8C FF FF +# +# Table of Contents (text entries only) +# +# One entry: 00 FE XX XX (XX XX is the memory address). +# +00 FE C4 80 +00 FE C4 82 +00 FE C4 84 +00 FE C4 87 +00 FE C4 8A +00 FE C4 A1 +00 FE C4 A5 +00 FE C4 A8 +00 FE C4 AA +00 FE C4 AB +00 FE C4 AC +00 FE C4 B2 +00 FE C4 BA +00 FE C4 C1 +00 FE C4 D4 +00 FE C4 E6 +00 FE C4 FD +00 FE C5 0F +00 FE C5 20 +00 FE C5 35 +00 FE C5 49 +00 FE C5 5A +00 FE C5 6B +00 FE C5 7B +00 FE C5 8C +00 FE C5 9B +00 FE C5 9C +00 FE C5 A6 +00 FE C5 B1 +00 FE C5 BB +00 FE C5 BC +00 FE C5 C3 +00 FE C5 D7 +00 FE C5 ED +00 FE C6 01 +00 FE C6 14 +00 FE C6 3C +00 FE C6 50 +00 FE C6 68 +00 FE C6 70 +00 FE C6 76 +00 FE C6 8C +00 FE C6 A0 +00 FE C6 E8 +00 FE C7 08 +00 FE C7 18 +00 FE C7 29 +00 FE C7 2A +00 FE C7 38 +00 FE C7 3F +00 FE C7 4A +00 FE C7 52 +00 FE C7 5B +00 FE C7 61 +00 FE C7 67 +00 FE C7 6B +00 FE C7 70 +00 FE C7 75 +00 FE C7 7C +00 FE C7 86 +00 FE C7 8E +00 FE C7 97 +00 FE C7 A0 +00 FE C7 A4 +00 FE C7 AA +00 FE C7 AF +00 FE C7 B4 +00 FE C7 B7 +00 FE C7 BA +00 FE C7 CC +00 FE C7 DD +00 FE C7 DE +00 FE C7 DF +00 FE C7 E0 +00 FE C7 E1 +00 FE C7 E2 +00 FE C7 E3 +00 FE C7 E4 +00 FE C7 E5 +00 FE C7 E6 +00 FE C7 E7 +00 FE C7 F9 +00 FE C8 0B +00 FE C8 1D +00 FE C8 2F +00 FE C8 41 +00 FE C8 53 +00 FE C8 65 +00 FE C8 77 +00 FE C8 89 +00 FE C8 9B +00 FE C8 A9 +00 FE C8 B4 +00 FE C8 BB +00 FE C8 C2 +00 FE C8 C6 +00 FE C8 C9 +00 FE C8 CA +00 FE C8 DC +00 FE C8 EE +# +# Title: Take Pictures +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAABAEBAAAAAAAEBAEBAEBAEBAEBF BBAEAAABAABAEAAABAEBEEBAEBAEBAEE +FEBAABAAAAEAAEAAEBAFAEEBAEBAEBAB EAEAAEAAEBAABAABAEBEBAAEBAEBAEBF BBAEBAEBAABAEBAEBAFAEBBAEBAEBAEE +FEBAABAAAAEAAEAAEBEBAEBBAEBAEBAB EAEAAEAAEBAABAABAFAEBAEABAEBAEBF BBAEAAABAABAEBAEBEBAEBAEEBAEBAEE +FEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAB EAEBAABAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAAABFFFFFFFFFFAFFEBFFFFFFFEAABF BBAAFFFFFFFFFFFAFFEBFFFFFFFFEAEE +FEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAB EAABAEBAEFBEFBEFAAABEFBEEAAABEBF BAAEBAEBBEFBEFBAAAAABEFBEAAABAAE +FEBAEBAEFBEFBEEAAAAABBEFAAAAAEAB EAABAEBAEFBEFBAABFFAAFBEEAAABEBF BAAEBAEBBEFBEEABFFFEAAFBEAAABAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAAFFFFFEABEFBEFBEBF BAAEBAEBBEFBEABFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBABFFFFFEAEFBEFBEEAB EAABAEBAEFBEFABFFFFFEABEFBEFBEBF BAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAABFFFEABBEFBEFBEBF BAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAE +FEBAEBAEFBEFBEEAAAAABBEFBEFBEEAB EAABAEBAEFBEFBEAAAAAEFBEFBEFBEBF BAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Take Pictures +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAABAEBAAAAAAAEBAEBAEBAEBAEBA ABAEAAABAABAEAAABAEBEEBAEBAEBAEA +AEBAABAAAAEAAEAAEBAFAEEBAEBAEBAA AAEAAEAAEBAABAABAEBEBAAEBAEBAEBA ABAEBAEBAABAEBAEBAFAEBBAEBAEBAEA +AEBAABAAAAEAAEAAEBEBAEBBAEBAEBAA AAEAAEAAEBAABAABAFAEBAEABAEBAEBA ABAEAAABAABAEBAEBEBAEBAEEBAEBAEA +AEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAA AAEBAABAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAAABFFFFFFFFFFAFFEBFFFFFFFEAABA ABAAFFFFFFFFFFFAFFEBFFFFFFFFEAEA +AEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA AAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAA AAABAEBAEFBEFBEFAAABEFBEEAAABEBA AAAEBAEBBEFBEFBAAAAABEFBEAAABAAA +AEBAEBAEFBEFBEEAAAAABBEFAAAAAEAA AAABAEBAEFBEFBAABFFAAFBEEAAABEBA AAAEBAEBBEFBEEABFFFEAAFBEAAABAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAAFFFFFEABEFBEFBEBA AAAEBAEBBEFBEABFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBABFFFFFEAEFBEFBEEAA AAABAEBAEFBEFABFFFFFEABEFBEFBEBA AAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAABFFFEABBEFBEFBEBA AAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAA +AEBAEBAEFBEFBEEAAAAABBEFBEFBEEAA AAABAEBAEFBEFBEAAAAAEFBEFBEFBEBA AAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBEBAEBAEEBAEBAEE +FEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAB EAEBAEBAEAAABAABAEAEBAEEBAEBAEBF BBAEBAEBAABAABAEBAFAEBBAEBAEBAEE +FEBAEBAEBAEAAEAAEBABAEEBAEBAEBAB EAEBAEBAEAAAAAABAEBABBAEBAEBAEBF BBAEBAEBAABAEAAEBAEBEEBAEBAEBAEE +FEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAB EAEBAEBAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAE +FEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAB EABFFFFFFFFFFFFAFFEBFFFFFFFFFEBF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BABEFBEFBEFBEFBEFBEFBEFBEFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEEAEFBAAAAAAAAAAAAAABEABEBF BABEFBAABEFAEBAEBAEBAEBAAFAABAAE +FEBBEFAABBEAAEBAEBAEBAEBAEAAAEAB EAAFBEAAAFBABAEBAEBAEBAEABAABEBF BABEFBEABEFAEBAEBAEBAEBAAFAAFAAE +FEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEFBEABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAABBEAAEBAEBAEBAEBAEFBEEAB EAAFBEAAAFBABAEBAEBAEBAEABEFBEBF BABEFBAABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAEBAEBAEBAEBAAFBEFAAE +FEBBAABEAAEAAEBAEBAEBAEBAEFBEEAB EAAFAAFBAABABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAAAAAAAAAAAAAAFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBEBAEBAEEBAEBAEA +AEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAA AAEBAEBAEAAABAABAEAEBAEEBAEBAEBA ABAEBAEBAABAABAEBAFAEBBAEBAEBAEA +AEBAEBAEBAEAAEAAEBABAEEBAEBAEBAA AAEBAEBAEAAAAAABAEBABBAEBAEBAEBA ABAEBAEBAABAEAAEBAEBEEBAEBAEBAEA +AEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAA AAEBAEBAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAA +AEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAA AABFFFFFFFFFFFFAFFEBFFFFFFFFFEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA AABEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEEAEFBAAAAAAAAAAAAAABEABEBA AABEFBAABEFAEBAEBAEBAEBAAFAABAAA +AEBBEFAABBEAAEBAEBAEBAEBAEAAAEAA AAAFBEAAAFBABAEBAEBAEBAEABAABEBA AABEFBEABEFAEBAEBAEBAEBAAFAAFAAA +AEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEFBEABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAABBEAAEBAEBAEBAEBAEFBEEAA AAAFBEAAAFBABAEBAEBAEBAEABEFBEBA AABEFBAABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAEBAEBAEBAEBAAFBEFAAA +AEBBAABEAAEAAEBAEBAEBAEBAEFBEEAA AAAFAAFBAABABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAAAAAAAAAAAAAAFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: View Small Photos +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABAAAAAAAABAAAAAAAAEAAAAAAAAEBF BBFAAEBABAAFABEFBEFAAAEFBAEBAAEE +FEEABAEBEBAEAFBEFBEABABEFBAEABAB EABAEBABAEABAFFFEFBAEAFBEEBAAEBF BBFAAEBEBAAFABFFBEFAAAEFBAEBAAEE +FEEABABAEBAEAFFEFBAABABEFBAEABAB EABAEBEBAEABAEFBEFBAEAFBEFBAAEBF BBFAABAEBAAFABEFBAEAAAFBBEFBAAEE +FEEABEBAEBAEAFBEFBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEAAEAEBF BBFAEBAEBAAFABEFBAEAAAFBBAABAAEE +FEEAAEBAEBAEAFBAEBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEFBEAEBF BBFAAAAAAAAFAAAAAAAAAAAAAAAAAAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAABAEFBEAAABEFBEBAAAEBAEBAAAEE +FEBAEBAEFBABAFBEFAEABAAEBAEBABAB EAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBF BBAABAEFBEAAABEFBEBAAABBAEBAAAEE +FEBAFBEEFBABAFBEFAEABAFBBAEBABAB EAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBF BBAABEFFBEAAAAEBBEFAAABEFEBAAAEE +FEBAFBEEFBABABAEFBEABAFBEAEBABAB EAEABAEBEFAEAEBAEFBAEAEFBBAEAEBF BBAAEBAFBEAAAAEBBEFAAABEFEBAAAEE +FEBAAEBEFBABABAEFBEABAFBEFEBABAB EAEABAEBEFAEAEBAEFBAEAEFBEAEAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAAEFBEFAAAAABEFBEAAABEFBEBAAEE +FEBABFFBEBABABFBEFBABAFBEFAEABAB EAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBF BBAAEFBEBBAAAABEFFEAAABEFBEBAAEE +FEBABEBAEFABABFBEFBABAFBBEAEABAB EAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABAFBBEAEABAB EAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABABAEBAEABAB EAEAAEBABEAEAAEBBAEAEAEBAEBAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: View Small Photos +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABAAAAAAAABAAAAAAAAEAAAAAAAAEBA ABFAAEBABAAFABEFBEFAAAEFBAEBAAEA +AEEABAEBEBAEAFBEFBEABABEFBAEABAA AABAEBABAEABAFFFEFBAEAFBEEBAAEBA ABFAAEBEBAAFABFFBEFAAAEFBAEBAAEA +AEEABABAEBAEAFFEFBAABABEFBAEABAA AABAEBEBAEABAEFBEFBAEAFBEFBAAEBA ABFAABAEBAAFABEFBAEAAAFBBEFBAAEA +AEEABEBAEBAEAFBEFBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEAAEAEBA ABFAEBAEBAAFABEFBAEAAAFBBAABAAEA +AEEAAEBAEBAEAFBAEBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEFBEAEBA ABFAAAAAAAAFAAAAAAAAAAAAAAAAAAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAABAEFBEAAABEFBEBAAAEBAEBAAAEA +AEBAEBAEFBABAFBEFAEABAAEBAEBABAA AAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBA ABAABAEFBEAAABEFBEBAAABBAEBAAAEA +AEBAFBEEFBABAFBEFAEABAFBBAEBABAA AAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBA ABAABEFFBEAAAAEBBEFAAABEFEBAAAEA +AEBAFBEEFBABABAEFBEABAFBEAEBABAA AAEABAEBEFAEAEBAEFBAEAEFBBAEAEBA ABAAEBAFBEAAAAEBBEFAAABEFEBAAAEA +AEBAAEBEFBABABAEFBEABAFBEFEBABAA AAEABAEBEFAEAEBAEFBAEAEFBEAEAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAAEFBEFAAAAABEFBEAAABEFBEBAAEA +AEBABFFBEBABABFBEFBABAFBEFAEABAA AAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBA ABAAEFBEBBAAAABEFFEAAABEFBEBAAEA +AEBABEBAEFABABFBEFBABAFBBEAEABAA AAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABAFBBEAEABAA AAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABABAEBAEABAA AAEAAEBABEAEAAEBBAEAEAEBAEBAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Screen Brightness +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBABBAEBAEBAEBAEBAB EAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAEAEEBABBAFAEBAEEBAABAEAAEBAB EAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABAAEAEBAEBAEBAEEAEBBAEBAB EAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAB EAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEABAEBAB EAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBF BBAEAEFAEBEFBEFFFFBEFBEEBAABBAEE +FEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAB EAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAB EABAEBAEBEFBEFFFFFFFBEFBEEBAEBBF BAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAE +FEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAB EAEBABAEBEFBEFFFFFFFBEFBEEBAAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAAAEBEFBEFBFFFFFBEFBEEBAABBAB EAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBF BBAEBAFAEBEFBEFFFFBEFBEEBAAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEBBAEBAB EAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAEBEFBEFBEFBEFBAEBBAEBAB EAEBAFAABAEBEFBEFBEFBEEBBABBAEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAEBABAEBAEBEFBEFBAEBAEABAEBAB EAEBAEAEBBABAEBAEBAEBBAFAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABBABBABAEBAEBBEABABBAEBAB EAEBAFBAEBEEBABAEBAAEAEEBABBAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAEBAEBABBAFBABBAEBAABAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Screen Brightness +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBABBAEBAEBAEBAEBAA AAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAEAEEBABBAFAEBAEEBAABAEAAEBAA AAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABAAEAEBAEBAEBAEEAEBBAEBAA AAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAA AAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEABAEBAA AAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBA ABAEAEFAEBEFBEFFFFBEFBEEBAABBAEA +AEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAA AAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAA AABAEBAEBEFBEFFFFFFFBEFBEEBAEBBA AAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAA +AEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAA AAEBABAEBEFBEFFFFFFFBEFBEEBAAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAAAEBEFBEFBFFFFFBEFBEEBAABBAA AAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBA ABAEBAFAEBEFBEFFFFBEFBEEBAAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEBBAEBAA AAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAEBEFBEFBEFBEFBAEBBAEBAA AAEBAFAABAEBEFBEFBEFBEEBBABBAEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAEBABAEBAEBEFBEFBAEBAEABAEBAA AAEBAEAEBBABAEBAEBAEBBAFAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABBABBABAEBAEBBEABABBAEBAA AAEBAFBAEBEEBABAEBAAEAEEBABBAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAEBAEBABBAFBABBAEBAABAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Date & Time +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEABAFBEFAEFBAFBEFBAFBEFBABF BBAEFBAFAEFBEABEEBEFBEFAEFBEFAEE +FEABEFAEABEFBAFBAFBEFBEABEFBEAAB EAAFBEABAFBEFAEEBEFBEFBAFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEABAFAEFBEFBAFBEFBEFBEFBAFAEE +FEABAFAEABEFBEFAEFBEFBEFBEEBEAAB EAAFAEABAFBEFBEABEFBEFBEFBAFBABF BBAEABAFAEFBEFBAFBEFBEFBEEBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBAFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFAEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEABEFBEFBEFAAABABF BBAEAAAFBEFBEFBAFBEFBEFBEAAAFAEE +FEABAFAEFBEFBEFAEFBEFBEFBEFAEAAB EAAFAEABEFBEFBEABEFBEFBEFBEABABF BBAEAAAFBAAAAAAAABEFBEFBEFAAFAEE +FEABAAAEFAAAAAAAAFBEFBEFBEAAEAAB EAAFBEABEFBEFBEABEFBEFBEFBEABABF BBAEFBAFBEFBEFBAFBEFBEFBEFBAFAEE +FEABEFAEFBEFBEFAEFBEFBEFBAAAEAAB EAAFBEABEFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEABAFAEE +FEABAFAEFBEFBEFBEFBEFBEFBAFAEAAB EAAFAEABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEAAAFAEE +FEABAAAEFBEFBEFBEFBEFBEFBAAAEAAB EAAFAEABEAAAFBEFAEFBEFAAFBEABABF BBAEABAFBAAAEFBEABEFBEAAEFBAFAEE +FEABAAAEFBEABEFBAFBEFBAFBEFBEAAB EAAFAAABEFBAFBEFAEFBEFAEFBEFBABF BBAEFBEFBEFAEFBEAAAFBEAAAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAEABEFBEABEFBABF BBAEFBEFBEFAEFBEABAFBEFBAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAAABEFAAABEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Date & Time +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEABAFBEFAEFBAFBEFBAFBEFBABA ABAEFBAFAEFBEABEEBEFBEFAEFBEFAEA +AEABEFAEABEFBAFBAFBEFBEABEFBEAAA AAAFBEABAFBEFAEEBEFBEFBAFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEABAFAEFBEFBAFBEFBEFBEFBAFAEA +AEABAFAEABEFBEFAEFBEFBEFBEEBEAAA AAAFAEABAFBEFBEABEFBEFBEFBAFBABA ABAEABAFAEFBEFBAFBEFBEFBEEBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBAFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFAEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEABEFBEFBEFAAABABA ABAEAAAFBEFBEFBAFBEFBEFBEAAAFAEA +AEABAFAEFBEFBEFAEFBEFBEFBEFAEAAA AAAFAEABEFBEFBEABEFBEFBEFBEABABA ABAEAAAFBAAAAAAAABEFBEFBEFAAFAEA +AEABAAAEFAAAAAAAAFBEFBEFBEAAEAAA AAAFBEABEFBEFBEABEFBEFBEFBEABABA ABAEFBAFBEFBEFBAFBEFBEFBEFBAFAEA +AEABEFAEFBEFBEFAEFBEFBEFBAAAEAAA AAAFBEABEFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEABAFAEA +AEABAFAEFBEFBEFBEFBEFBEFBAFAEAAA AAAFAEABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEAAAFAEA +AEABAAAEFBEFBEFBEFBEFBEFBAAAEAAA AAAFAEABEAAAFBEFAEFBEFAAFBEABABA ABAEABAFBAAAEFBEABEFBEAAEFBAFAEA +AEABAAAEFBEABEFBAFBEFBAFBEFBEAAA AAAFAAABEFBAFBEFAEFBEFAEFBEFBABA ABAEFBEFBEFAEFBEAAAFBEAAAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAEABEFBEABEFBABA ABAEFBEFBEFAEFBEABAFBEFBAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAAABEFAAABEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Erase +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBBFFAABAEBAEBAEBAEE +FEBAEBAEBAEBAABFEBAEBAEBAEBAEBAB EAEBAEBAAAAAAAAAAAAAAAAABAEBAEBF BBAEBAEAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEBAAABEEBEBAAFAAAAEAAABAEBAB EAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBF BBAEBAAAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEAAAAAAAAAAAAAAAAAAAAABAEBAB EAEBAABFFFFFABEFBEFBEBAABAEBAEBF BBAEABFFFFFEAFBEFBEFBEBAABAEBAEE +FEBABFFFFFFEBEFBEFBEFAEAAEBAEBAB EAEBFFFFFFEAFBEFAEBBEBAABAEBAEBF BBABFFFFFFEBEBBEAAEFBEBAABAEBAEE +FEBFFFFFFFAFAEFBABAEFAEAAEBAEBAB EABFFFFFFFAEBBEFAEBBEBAABAEBAEBF BBABFFFFFAFAEBBEAAEFBEBAABAEBAEE +FEAABFFFFAEFAEFBABAEFAEAAEBAEBAB EAEABFFFAFBEBBEFAEBBEBAABAEBAEBF BBAEABFFAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBFAABEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAAAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEAAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBAAAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAAABEBAABAEBAEBF BBAEBAEAAEFBEFBEFBEFBEAAABAEBAEE +FEBAEBAABBEFBEFBEFBEFAAAAEBAEBAB EAEBAEBAEFBEFBEFBEFBEAAABAEBAEBF BBAEBAEAAABAEBAEBAEBAAAAABAEBAEE +FEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAB EAEBAEBAEAAAAAAAAAAAAAAABAEBAEBF BBAEBAEBAAAAAAAAAAAAAAAAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Erase +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBBFFAABAEBAEBAEBAEA +AEBAEBAEBAEBAABFEBAEBAEBAEBAEBAA AAEBAEBAAAAAAAAAAAAAAAAABAEBAEBA ABAEBAEAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEBAAABEEBEBAAFAAAAEAAABAEBAA AAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBA ABAEBAAAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEAAAAAAAAAAAAAAAAAAAAABAEBAA AAEBAABFFFFFABEFBEFBEBAABAEBAEBA ABAEABFFFFFEAFBEFBEFBEBAABAEBAEA +AEBABFFFFFFEBEFBEFBEFAEAAEBAEBAA AAEBFFFFFFEAFBEFAEBBEBAABAEBAEBA ABABFFFFFFEBEBBEAAEFBEBAABAEBAEA +AEBFFFFFFFAFAEFBABAEFAEAAEBAEBAA AABFFFFFFFAEBBEFAEBBEBAABAEBAEBA ABABFFFFFAFAEBBEAAEFBEBAABAEBAEA +AEAABFFFFAEFAEFBABAEFAEAAEBAEBAA AAEABFFFAFBEBBEFAEBBEBAABAEBAEBA ABAEABFFAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBFAABEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAAAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEAAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBAAAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAAABEBAABAEBAEBA ABAEBAEAAEFBEFBEFBEFBEAAABAEBAEA +AEBAEBAABBEFBEFBEFBEFAAAAEBAEBAA AAEBAEBAEFBEFBEFBEFBEAAABAEBAEBA ABAEBAEAAABAEBAEBAEBAAAAABAEBAEA +AEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAA AAEBAEBAEAAAAAAAAAAAAAAABAEBAEBA ABAEBAEBAAAAAAAAAAAAAAAAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Camera Exposure +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEAABFFFFFEAAEBAEBAEBAB EAEBAEBAEBAEABFFFFFEABAEBAEBAEBF BBAEBAEBAEABFFFFFFFFFEAAEBAEBAEE +FEBAEBAEBAABFFFFFFFFFEABAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEBABFFFFFFFFFFFFFEABAEBAEE +FEBAEBAEABFFFFFFFFFFFFFEAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBAEBFFFFFFFFFFFFFFFEABAEBAB EAEBAEBABFFFFFFFFFFFFFFFEAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBABFFFFFEBEBEBFFFFFFEBAEBAB EAEBAEABFFFFFEBEBEBFFFFFFEABAEBF BBAEBAEBFFFFEBEBEBEABFFFFEAEBAEE +FEBAEBABFFFFEBEBEBEABFFFFEBAEBAB EAEBAEABFFFFEBFFFFFEBFFFFEABAEBF BBAEBAEBFFFFEBFFFFFEBFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBABFFFFEBFFFEBFFFFEAEBAEBF BBAEBAEABFFFFEBFFFEBFFFFEBAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBABFFFFEBFEBFFFFEABAEBAEE +FEBAEBAEABFFFFEBFEBFFFFEAEBAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBAEBFFFEBFEBFFFEAEBAEBAEE +FEBAEBAEBABFFFEBFEBFFFEBAEBAEBAB EAEBAEBAEBABFFEBFEBFFEAEBAEBAEBF BBAEBAEBAEABFFEBFEBFFEBAEBAEBAEE +FEBAEBAEBAEABFEBFEABEAEBAEBAEBAB EAEBAEBAEBAEBFEBFEABEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBAAAFBEAABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEABBEEAAAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAABAEBAEBAEBAB EAEBAEBAEBAEBAEAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Camera Exposure +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEAABFFFFFEAAEBAEBAEBAA AAEBAEBAEBAEABFFFFFEABAEBAEBAEBA ABAEBAEBAEABFFFFFFFFFEAAEBAEBAEA +AEBAEBAEBAABFFFFFFFFFEABAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEBABFFFFFFFFFFFFFEABAEBAEA +AEBAEBAEABFFFFFFFFFFFFFEAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBAEBFFFFFFFFFFFFFFFEABAEBAA AAEBAEBABFFFFFFFFFFFFFFFEAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBABFFFFFEBEBEBFFFFFFEBAEBAA AAEBAEABFFFFFEBEBEBFFFFFFEABAEBA ABAEBAEBFFFFEBEBEBEABFFFFEAEBAEA +AEBAEBABFFFFEBEBEBEABFFFFEBAEBAA AAEBAEABFFFFEBFFFFFEBFFFFEABAEBA ABAEBAEBFFFFEBFFFFFEBFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBABFFFFEBFFFEBFFFFEAEBAEBA ABAEBAEABFFFFEBFFFEBFFFFEBAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBABFFFFEBFEBFFFFEABAEBAEA +AEBAEBAEABFFFFEBFEBFFFFEAEBAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBAEBFFFEBFEBFFFEAEBAEBAEA +AEBAEBAEBABFFFEBFEBFFFEBAEBAEBAA AAEBAEBAEBABFFEBFEBFFEAEBAEBAEBA ABAEBAEBAEABFFEBFEBFFEBAEBAEBAEA +AEBAEBAEBAEABFEBFEABEAEBAEBAEBAA AAEBAEBAEBAEBFEBFEABEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBAAAFBEAABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEABBEEAAAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAABAEBAEBAEBAA AAEBAEBAEBAEBAEAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Format Memory Card +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEEFBEFBEFBEFBEFBEFBEFBEFBEFEE +FEBBBAAAAAAAAAAAAAAAAAAAAAAABEAB EAEEFAAFAEABAFAEABAFAEABAFAAFBBF BBBBAAAAAAAAAAAAAAAAAAAAAAABEFEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEABBF BBFAAAAAFFFFFFFFFFFFFFFFFFFFAFEE +FEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAB EABAABAAFFFFFFFFEFFFFFFFFFFEABBF BBFAAEAAFFFFFFFFABFFFFFFFFFFAFEE +FEEABAEAFFFFFFFEBAFFFFFFFFFFAEAB EABAAAAAFFFFFFFAFEBFFFFFFFFEABBF BBFAAAAAFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAAABFFFFFFAFABEBFFFFFFFFAEAB EABAAAABFFFFFEBEAAFAFFFFFFFEABBF BBFAAAABFFFFFAFAAABEBFFFFFFFAFEE +FEEAAAABFFFFEBEAAAAFAFFFFFFFAEAB EABAAAAFFFFFAFAAAAABEBFFFFFEABBF BBFAAAAFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAAAAFFFFAFAAAAAAABEBFFFFFAEAB EABAAAAFFFEBEAAAAAAAAFAFFFFEABBF BBFAAAAFFFAFAAAAAAAAABEBFFFFAFEE +FEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAB EABAAABFFAFAABFFEBFFFABEBFFEABBF BBFAAABFEBEAAFFFEBFFFAAFAFFFAFEE +FEEAAABFAFAABFAAABEAAAABEBFFAEAB EABAAABEBEAABEAAABEAAAAAFAFEABBF BBFAAAFAFAAABEAAABEAAAAABEBFAFEE +FEEAAAFEBEAABEAAABFFEAAAFAFFAEAB EABAAAFFAFAABEAAABFFEAABEBFEABBF BBFAAAFFEBEABEAAABEAAAAFAFFFAFEE +FEEAAAFFFAFABFAAABEAAABEBFFFAEAB EABAAAFFFEBEAFFFEBEAAAFAFFFEABBF BBFAABFFFFAFABFFEBEAABEBFFFFAFEE +FEEAABFFFFEBEAAAAAAAAFAFFFFFAEAB EABAABFFFFFAFAAAAAAABEBFFFFEABBF BBFAABFFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAABFFFFFFAFAAAAABEBFFFFFFAEAB EABAABFFFFFFEBEAAAAFAFFFFFFEABBF BBFAAFFFFFFFFAFAAABEBFFFFFFFAFEE +FEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAB EABAAFFFFFFFFFAFABEBFFFFFFFEABBF BBFAAFFFFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAB EABAAFFFFFFFFFFEBAFFFFFFFFFEABBF BBFABFFFFFFFFFFFABFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFEFFFFFFFFFFFAEAB EABABFFFFFFFFFFFFFFFFFFFFFFEABBF BBFABFFFFFFFFFFFFFFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFFFFFFFFFFFFFBEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEFBBF BBFBEFBEFBEFBEFBEFBEFBEFBEFBEEEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAB EAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Format Memory Card +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEEFBEFBEFBEFBEFBEFBEFBEFBEFEA +AEBBBAAAAAAAAAAAAAAAAAAAAAAABEAA AAEEFAAFAEABAFAEABAFAEABAFAAFBBA ABBBAAAAAAAAAAAAAAAAAAAAAAABEFEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEABBA ABFAAAAAFFFFFFFFFFFFFFFFFFFFAFEA +AEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAA AABAABAAFFFFFFFFEFFFFFFFFFFEABBA ABFAAEAAFFFFFFFFABFFFFFFFFFFAFEA +AEEABAEAFFFFFFFEBAFFFFFFFFFFAEAA AABAAAAAFFFFFFFAFEBFFFFFFFFEABBA ABFAAAAAFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAAABFFFFFFAFABEBFFFFFFFFAEAA AABAAAABFFFFFEBEAAFAFFFFFFFEABBA ABFAAAABFFFFFAFAAABEBFFFFFFFAFEA +AEEAAAABFFFFEBEAAAAFAFFFFFFFAEAA AABAAAAFFFFFAFAAAAABEBFFFFFEABBA ABFAAAAFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAAAAFFFFAFAAAAAAABEBFFFFFAEAA AABAAAAFFFEBEAAAAAAAAFAFFFFEABBA ABFAAAAFFFAFAAAAAAAAABEBFFFFAFEA +AEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAA AABAAABFFAFAABFFEBFFFABEBFFEABBA ABFAAABFEBEAAFFFEBFFFAAFAFFFAFEA +AEEAAABFAFAABFAAABEAAAABEBFFAEAA AABAAABEBEAABEAAABEAAAAAFAFEABBA ABFAAAFAFAAABEAAABEAAAAABEBFAFEA +AEEAAAFEBEAABEAAABFFEAAAFAFFAEAA AABAAAFFAFAABEAAABFFEAABEBFEABBA ABFAAAFFEBEABEAAABEAAAAFAFFFAFEA +AEEAAAFFFAFABFAAABEAAABEBFFFAEAA AABAAAFFFEBEAFFFEBEAAAFAFFFEABBA ABFAABFFFFAFABFFEBEAABEBFFFFAFEA +AEEAABFFFFEBEAAAAAAAAFAFFFFFAEAA AABAABFFFFFAFAAAAAAABEBFFFFEABBA ABFAABFFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAABFFFFFFAFAAAAABEBFFFFFFAEAA AABAABFFFFFFEBEAAAAFAFFFFFFEABBA ABFAAFFFFFFFFAFAAABEBFFFFFFFAFEA +AEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAA AABAAFFFFFFFFFAFABEBFFFFFFFEABBA ABFAAFFFFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAA AABAAFFFFFFFFFFEBAFFFFFFFFFEABBA ABFABFFFFFFFFFFFABFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFEFFFFFFFFFFFAEAA AABABFFFFFFFFFFFFFFFFFFFFFFEABBA ABFABFFFFFFFFFFFFFFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFFFFFFFFFFFFFBEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEFBBA ABFBEFBEFBEFBEFBEFBEFBEFBEFBEEEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAA AAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Lock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBF BBAEBAEBAAEAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEABEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Lock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBA ABAEBAEBAAEAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEABEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Unlock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAAAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEAAABAEBAEBAEABABAEBAEBAB EAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBF BBAEBAEBAEAAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEBAEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Unlock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAAAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEAAABAEBAEBAEABABAEBAEBAA AAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBA ABAEBAEBAEAAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEBAEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set for PAL / NTSC TV +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAABAEBAEBAEBAEBAABAEBAB EAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBF BBAEBAEBAEAAEBAEBAEBAEBAABAEBAEE +FEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAB EAEBAEBAEBAABAEBAEBAEBAABAEBAEBF BBAEBAEBAEBAABAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAABAEBAEBAABAEBAEBAB EAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBF BBAEBAEBAEBAEAAEBAEBAABAEBAEBAEE +FEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAB EAEBAEBAEBAEBAABAEBAABAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEABEFBEFBEFBEFBEFBEFBEFBEEAABF BBAAFBEFBEFBEFBEFBEFBEFBEFBAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAB EAEAAAAAAAAAAAAAAAAAAAAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAEAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAEBAEBAEBAEBAEBAEBAAAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEFBEBAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBAEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAAAAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set for PAL / NTSC TV +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAABAEBAEBAEBAEBAABAEBAA AAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBA ABAEBAEBAEAAEBAEBAEBAEBAABAEBAEA +AEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAA AAEBAEBAEBAABAEBAEBAEBAABAEBAEBA ABAEBAEBAEBAABAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAABAEBAEBAABAEBAEBAA AAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBA ABAEBAEBAEBAEAAEBAEBAABAEBAEBAEA +AEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAA AAEBAEBAEBAEBAABAEBAABAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEABEFBEFBEFBEFBEFBEFBEFBEEAABA ABAAFBEFBEFBEFBEFBEFBEFBEFBAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAA AAEAAAAAAAAAAAAAAAAAAAAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAEAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAEBAEBAEBAEBAEBAEBAAAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEFBEBAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBAEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAAAAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Start Slide Show +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAB EAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAAFBEFBEFBEFBEFBEFBEAAEE +FEBAEBAEBAEFBEFBEFBEFBEFBEFBABAB EAEBAEBAAFBEFBEFBEFBEFBEFBEFBABF BBAEBAEBAEFBEFBEFBEFBEFBEFBEFAEE +FEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAB EAEBAEBAAAAAAAAAAAAAAAAAABEFBABF BBAEBAAFBEFBEFBEFBEFBEFBEABEFAEE +FEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAB EAEBAAFBEFBEFBEFBEFBEFBEFBAFBABF BBAEBAEFBEFBEFBEFBEFBEFBEFAEFAEE +FEBAAAAAAAAAAAAAAAAAAAEFBEABEAAB EAEBAAAAAAAAAAAAAAAAAABEFBAFBABF BBAAFBEFBEFBEFBEFBEFBEABEFAEFAEE +FEBAEFBEFBEFBEFBEFBEFBAFBEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEFBEFBEFBEFBEFBEFAEFAEFAEE +FEABEFBEFBEFBEFBEFBEFBEABEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEAAAAAAAAAAAAFBEFAEFAEFAEE +FEABEFBAAAAAAAAAAAAEFBEABEABEAAB EAAFBEAAEBAEBAEBAEBAEFBAFBAFBABF BBAEFBABAEBAEBAEBAEABEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABABAB EAAFBABAEBAEBAEBAEBAAFBAFBAFAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAABAEE +FEABEAAEBAEBAEBAEBAEABEABEAAEBAB EAAFBABAEBAEBAEBAEBAAFBAFBABAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAEBAEE +FEABEFAEBAEBAEBAEBAAFBEABABAEBAB EAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBF BBAEFBEAAAAAAAAAAAAFBEFAABAEBAEE +FEABEFBAAAAAAAAAAAAEFBEAAEBAEBAB EAAFBEFBEFBEFBEFBEFBEFBABAEBAEBF BBAEFBEFBEFBEFBEFBEFBEFAEBAEBAEE +FEBAEFBEFBEFBEFBEFBEFBABAEBAEBAB EAEABEFBEFBEFBEFBEFBEFAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAABAEBAEBAEE +FEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Start Slide Show +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAA AAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAAFBEFBEFBEFBEFBEFBEAAEA +AEBAEBAEBAEFBEFBEFBEFBEFBEFBABAA AAEBAEBAAFBEFBEFBEFBEFBEFBEFBABA ABAEBAEBAEFBEFBEFBEFBEFBEFBEFAEA +AEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAA AAEBAEBAAAAAAAAAAAAAAAAAABEFBABA ABAEBAAFBEFBEFBEFBEFBEFBEABEFAEA +AEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAA AAEBAAFBEFBEFBEFBEFBEFBEFBAFBABA ABAEBAEFBEFBEFBEFBEFBEFBEFAEFAEA +AEBAAAAAAAAAAAAAAAAAAAEFBEABEAAA AAEBAAAAAAAAAAAAAAAAAABEFBAFBABA ABAAFBEFBEFBEFBEFBEFBEABEFAEFAEA +AEBAEFBEFBEFBEFBEFBEFBAFBEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEFBEFBEFBEFBEFBEFAEFAEFAEA +AEABEFBEFBEFBEFBEFBEFBEABEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEAAAAAAAAAAAAFBEFAEFAEFAEA +AEABEFBAAAAAAAAAAAAEFBEABEABEAAA AAAFBEAAEBAEBAEBAEBAEFBAFBAFBABA ABAEFBABAEBAEBAEBAEABEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABABAA AAAFBABAEBAEBAEBAEBAAFBAFBAFAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAABAEA +AEABEAAEBAEBAEBAEBAEABEABEAAEBAA AAAFBABAEBAEBAEBAEBAAFBAFBABAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAEBAEA +AEABEFAEBAEBAEBAEBAAFBEABABAEBAA AAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBA ABAEFBEAAAAAAAAAAAAFBEFAABAEBAEA +AEABEFBAAAAAAAAAAAAEFBEAAEBAEBAA AAAFBEFBEFBEFBEFBEFBEFBABAEBAEBA ABAEFBEFBEFBEFBEFBEFBEFAEBAEBAEA +AEBAEFBEFBEFBEFBEFBEFBABAEBAEBAA AAEABEFBEFBEFBEFBEFBEFAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAABAEBAEBAEA +AEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 72 +# Height: 36 +# Length: 2592 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBE +AEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFB +BAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEF +EBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Width: 18 +# Height: 12 +# Length: 216 +# +0000000000000000000000000000FBEF0000 +0000EEFE00000000BBAB00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000BBAB00000000FAAF0000 +0000EFBE0000000000000000000000000000 +# +# Title: ? +# Length: 544 +# +FBCFBCFBEF3EF3EF +# +FAEBAEBAEBAEBAE8 ABAEBAEAAEBAEBAF EEBAEBAEFAEBAEBB +FAEBAEFAAFAEBAEA 2BAEBBEBAAEAEBAF EEBAEFAEBAEBAEBB +FAEBAEBAEBBABAE8 ABAEAAEBAEBAEBAF EEBAEEAEBAABAEBB +FAEBAEAAABBABAEA 2BAEAAAFBEBAEBAF EEBAEFBBABEBAEBB +FAEBAAFAAFAABAE8 ABAEABEAAEFAEBAF EEBAEEABEAEBAEBB +FAEBBEAAAABEBAEA 2BAEBAEAABAAABAF EEBAEAAAAAAFAEBB +FAEAAAAFFAAABAE8 ABAEEABEBEABABAF EEBAEEBAAEBBAEBB +FAEAAABEBEAABAEA 2BAEFAAFFAABABAF EEBAAAEAABAEAEBB +FAEBBEAAAABEBAE8 ABAEABABEAFAEBAF EEBAEBBAABEBAEBB +FAEBAEBBEEAEBAEA 2BAEBAAAAABAEBAF EEBAEBAEBAEBAEBB +# +CFBEF3CF3CFBEFBC +# +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# same as above +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000020000 +00000000000000000000000000000000000AC000 +00000000000000000000000000000000002BA000 +0000000000000000000000000000000000AEB800 +0000000000000000000000000000000002BAEB00 +000000000000000000000000000000000AEBAE80 +000000000000000000000000000000002BAEBAE0 +00000000000000000000000000000000AEBAEBAC +000000000000000000000000000000003AEBAEB0 +000000000000000000000000000000000BAEBAC0 +0000000000000000000000000000000002BAEB00 +0000000000000000000000000000000000EBAC00 +00000000000000000000000000000000002EB000 +00000000000000000000000000000000000AC000 +0000000000000000000000000000000000030000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000200000000000000020000 +0000000000000000000B800000000000000AC000 +0000000000000000002EB00000000000002BA000 +000000000000000000BAE8000000000000AEB800 +000000000000000002EBAE000000000002BAEB00 +00000000000000000BAEBAC0000000000AEBAE80 +00000000000000002EBAEBA0000000002BAEBAE0 +0000000000000000BAEBAEB800000000AEBAEBAC +00000000000000002BAEBAE0000000003AEBAEB0 +00000000000000000EBAEB80000000000BAEBAC0 +000000000000000002EBAE000000000002BAEB00 +000000000000000000AEB8000000000000EBAC00 +0000000000000000003AE00000000000002EB000 +0000000000000000000B800000000000000AC000 +0000000000000000000200000000000000030000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0003000000000000000200000000000000020000 +000E800000000000000B800000000000000AC000 +003AE00000000000002EB00000000000002BA000 +00EBAC000000000000BAE8000000000000AEB800 +03AEBA000000000002EBAE000000000002BAEB00 +0EBAEB80000000000BAEBAC0000000000AEBAE80 +3AEBAEB0000000002EBAEBA0000000002BAEBAE0 +EBAEBAE800000000BAEBAEB800000000AEBAEBAC +2EBAEBA0000000002BAEBAE0000000003AEBAEB0 +0AEBAE80000000000EBAEB80000000000BAEBAC0 +03AEBA000000000002EBAE000000000002BAEB00 +00BAE8000000000000AEB8000000000000EBAC00 +002BA00000000000003AE00000000000002EB000 +000E800000000000000B800000000000000AC000 +0002000000000000000200000000000000030000 +# +# Title: ? +# Width: 72 +# Height: 74 +# Length: 5328 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAFBEFBEFBEFBEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEEAAAAA +AAAAABEFBEFBEFBEFBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAABFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEAAA +AAAFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBAAA +AAAFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFAAA +AAAFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEAAA +AAAFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAABFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEEAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 24 +# Height: 10 +# Length: 240 +# +00000003800000000000000EB00000000000003AE8000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +0000002BAC0000000000000EB000000000000002C0000000 +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF8EAA8AE88FFFFFFFFFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFF8EEEEA888A8AA8AAEEEEFEEFF8FFFFFFFF +FFFFF8FFFFFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF +FFFF89999999999FAAAAAAAAEEEEEF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +F89999999999998EAAAA8F88AEEEEF8FFFFFFFFF +899999999999AAEEAAA8FEFFAAEFFF8FFFFFFFFF +F8999999999A88EEAAA8FFEEAEEEEF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFF899998AA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFF8988EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFF888EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA888EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA888AAAAAAAAAAAEEEEF8FFFFFFFFF +FFFFFFF88EAAAAAAAAAAEAEEAEEFFF8FFFFFFFFF +FFFFFFFFF88EEEEEEEEEEEEEEEFFF88FFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999FFFFFF999999999999999999 +999999999999999FEAA8AEFF9999999999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +999999FEEEEA888A8AA8AAEEEEFEEFFF99999999 +99999FFFFFFFFFFFFFFFFFFFFFFFFFFF99999999 +99999F888888888FAAAAAAAAEEEEEFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +9F8888888888FF8EAAAA8F88AEEEEFF999999999 +F8888888888FAAEEAAA8FEFFAAEFFFF999999999 +9F88888888FA88EEAAA8FFEEAEEEEFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +9999F8888FAA88EEAAA8FFEEAEEEEFF999999999 +99999F8FFEAA88EEAAA8FEEEAAEFFFF999999999 +999999FFFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA888EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA888AAAAAAAAAAAEEEEFF999999999 +9999999FFEAAAAAAAAAAEAEEAEEFFFF999999999 +999999999FFEEEEEEEEEEEEEEEFFFFF999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999999999999999999999999999999999 +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FF88888888888888888888888888888888888FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FDDDDDBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDDDBBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDBBBBBBFF8FCCCCCEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCCEEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCEEEEEF8FAAA99999F8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FBBBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FCCCCAAAFF8FCCCCCDDDF8FCCCBBBBBF8FFF +FF88FCCCCAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99999B9FF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99BBBB9FF8FDAAAAAAAF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEE99FF8FEEEEBBBBF8FDDDDDDDDF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9F99999999999999999999999999999999999FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FDDDDDBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDDDBBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDBBBBBBFF9FCCCCCEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCCEEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCEEEEEF9FAAA99999F9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FBBBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FCCCCAAAFF9FCCCCCDDDF9FCCCBBBBBF9FF9 +9F99FCCCCAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99999B9FF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99BBBB9FF9FDAAAAAAAF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEE99FF9FEEEEBBBBF9FDDDDDDDDF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9999999999999999999999999999999999999999 +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFF88EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8888FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFFF8EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FFFF99999999999FEFF99999999999 +9999999999999999999999999FEFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999FFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEEFFFFF +FFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAEFFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEFFF +FFFFFFFEEAAAAAAAAAAAAAAAAAAAAAAEAAAAEFFF +FFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEAAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEEFFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEFFFFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAEFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEFFFFFFFFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEFFFFFFFFFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +999999999999FFFFFFFFFFFFFFFFFFFFFFF99999 +99999999999FAAAAAAAAAAAAAAAAAAAAAAAF9999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +999999999FFFFFFFFFFFFFFFFFFFFFFAAAAAF999 +9999999FFAAAAAAAAAAAAAAAAAAAAAAFAAAAF999 +999999FAAAAAAAAAAAAAAAAAAAAAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +9999FAAAAAAAAAAAAAAAAAAAAAAFFAAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFF99999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFF999999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAF99999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAF9999999999 +9999FAAAAAAAAAAAAAAAAAAAAAAFF99999999999 +99999FFFFFFFFFFFFFFFFFFFFFF9999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Locked +# Width: 12 +# Height: 24 +# Length: 288 +# +999999999999999999999999 +99999999FFEEEFF999999999 +9999999FEEFFFEEF99999999 +9999999EEF999FEE99999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9FFFFF9FF9999999 +999999FFFEEEEEFFF9999999 +999999FEEEDDDEEEF9999999 +99999FEEEEFFFEEEEF999999 +9999FEEEFFF8FFFEEEF99999 +9999FEEFFFFFFFFFEEF99999 +9999EEEFFFFFFFFFEEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF88AFFFFEE99999 +9999EEFFFF8AEFFFFEE99999 +9999FEEFFFFFFFFF8EF99999 +99999FEFFFFFFFFFEF999999 +999999FEFFF8FFFEF9999999 +9999999EEEFFF8EE99999999 +999999999FFFFF9999999999 +999999999999999999999999 +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000B00000 +000000000000000000000000000000000BBB0000 +00000000000000000000000000000000BBBBB000 +0000000000000000000000000000000BBBBBBB00 +000000000000000000000000000000BBBBBBBBB0 +0000000000000000000000000000000BBBBBBB00 +00000000000000000000000000000000BBBBB000 +000000000000000000000000000000000BBB0000 +0000000000000000000000000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +00000000000000000000B0000000000000B00000 +0000000000000000000BBB00000000000BBB0000 +000000000000000000BBBBB000000000BBBBB000 +00000000000000000BBBBBBB0000000BBBBBBB00 +0000000000000000BBBBBBBBB00000BBBBBBBBB0 +00000000000000000BBBBBBB0000000BBBBBBB00 +000000000000000000BBBBB000000000BBBBB000 +0000000000000000000BBB00000000000BBB0000 +00000000000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +000000B0000000000000B0000000000000B00000 +00000BBB00000000000BBB00000000000BBB0000 +0000BBBBB000000000BBBBB000000000BBBBB000 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +00BBBBBBBBB00000BBBBBBBBB00000BBBBBBBBB0 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +0000BBBBB000000000BBBBB000000000BBBBB000 +00000BBB00000000000BBB00000000000BBB0000 +000000B0000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAABEFBEFBEFBEFBEFBEFBEAAAAEB +AEAAAAFBEFBEFBEFBEFBEFBEFBAAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAABBEFBEFBEFBEFBEFBEFBEEAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBAEABAE BAEAFAAFBEFBEFBEFBEFBEFBEEBEAABA EBABEFAEFBEFBEFBEFBEFBEFBAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEEBEFABAE BAEAFBEABEFBEFBEFBEFBEFBAFBEEABA EBABEFBEBBEFBEFBEFBEFBEEBEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBAFBEFABAE BAEAFBEFAAFBEFBEFBEFBEEBEFBEEABA EBABEFBEFAEFBEFBEFBEFBEFBEFBEAEB +AEABBEFBEEBEFBAFBEFBEFBEFBEFABAE BAEAFBEFBEABEEBEFBEFBEFBEFBEEABA EBABEFBEFBEFAABBEFBEFBEFBEFBEAEB +AEABBEFBEFBEAAAFBEFBEFBEFBEFABAE BAEAFBEFBEFAAABEAAEAAAFBEFBEEABA EBABEFBEFBEFAABBAABAABEFBEFBEAEB +AEABBEFBEFBEEAAFAAEAAFBEFBEFABAE BAEAFBEFBEFBEABEEAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFBEABEFBEFBEFABAE BAEAFBEFBEFBEABEFAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFAAFAAFBEFBEFABAE BAEAFBEFBEEBEABEAAEAAEFBEFBEEABA EBABEFBEFBAFAABAABBEABEFBEFBEAEB +AEABBEFBEEBEFBEFBEFBEFAEFBEFABAE BAEAFBEFBAFBEFBEFBEFBEEBEFBEEABA EBABEFBEEBEFBEFBEFBEFBEABEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBEBBEFABAE BAEAFBEEBEFBEFBEFBEFBEFBAFBEEABA EBABEFBAFBEFBEFBEFBEFBEFAAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEFAEFABAE BAEAFBAFBEFBEFBEFBEFBEFBEEBEAABA EBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBEAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAAABEFBEFBEFBEFBEFBEFBEEAAAEB +AEAAAABBEFBEFBEFBEFBEFBEFBAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Normal +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAABEFBEFBEFBEFBEFBEFBEAAAAEE +FEAAAAFBEFBEFBEFBEFBEFBEFBAAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAABBEFBEFBEFBEFBEFBEFBEEAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBAEABAB EAEAFAAFBEFBEFBEFBEFBEFBEEBEAABF BBABEFAEFBEFBEFBEFBEFBEFBAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEEBEFABAB EAEAFBEABEFBEFBEFBEFBEFBAFBEEABF BBABEFBEBBEFBEFBEFBEFBEEBEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBAFBEFABAB EAEAFBEFAAFBEFBEFBEFBEEBEFBEEABF BBABEFBEFAEFBEFBEFBEFBEFBEFBEAEE +FEABBEFBEEBEFBAFBEFBEFBEFBEFABAB EAEAFBEFBEABEEBEFBEFBEFBEFBEEABF BBABEFBEFBEFAABBEFBEFBEFBEFBEAEE +FEABBEFBEFBEAAAFBEFBEFBEFBEFABAB EAEAFBEFBEFAAABEAAEAAAFBEFBEEABF BBABEFBEFBEFAABBAABAABEFBEFBEAEE +FEABBEFBEFBEEAAFAAEAAFBEFBEFABAB EAEAFBEFBEFBEABEEAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFBEABEFBEFBEFABAB EAEAFBEFBEFBEABEFAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFAAFAAFBEFBEFABAB EAEAFBEFBEEBEABEAAEAAEFBEFBEEABF BBABEFBEFBAFAABAABBEABEFBEFBEAEE +FEABBEFBEEBEFBEFBEFBEFAEFBEFABAB EAEAFBEFBAFBEFBEFBEFBEEBEFBEEABF BBABEFBEEBEFBEFBEFBEFBEABEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBEBBEFABAB EAEAFBEEBEFBEFBEFBEFBEFBAFBEEABF BBABEFBAFBEFBEFBEFBEFBEFAAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEFAEFABAB EAEAFBAFBEFBEFBEFBEFBEFBEEBEAABF BBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBEAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAAABEFBEFBEFBEFBEFBEFBEEAAAEE +FEAAAABBEFBEFBEFBEFBEFBEFBAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Zoom +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEEABAE BAEAABAFBEFBEFBEFBEFBEFBEABAEABA EBABEBAEFBEFBEFBEFBEFBEFBAEBEAEB +AEABBAABEFBEFBEFBEFBEFBEFAAFABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAAAAAAAAAAAAAAAAAAAAABEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEFFEBAEBAEBAEAFABAE BAEAFABAEBAEBBFFFEBAEBAEBABEEABA EBABEEABAFFAEFFFFEEBAEBAEABBEAEB +AEABBEAEBBEBAFFBFFAEBAEBAEAFABAE BAEAFABAEBEEBFEBFEBFFBFFFABEEABA EBABEEABAFFAEBEFFEEFFEFFEABBEAEB +AEABBEAFFFFFEEBFFBAFFBFFAEAFABAE BAEAFABBFFFFFAFFFEBBFFFEBABEEABA EBABEEABAFFAEBBFFAEBFFFAEABBEAEB +AEABBEAEBBEBAEFFEBAEBFEBAEAFABAE BAEAFABAEBEEBAFFAEBAFFFEBABEEABA EBABEEABAFFAEBFEBAEBFFFAEABBEAEB +AEABBEAEBAEBAFFFFFAFFAFFAEAFABAE BAEAFABAEBAEBFFFFEBFFBFFBABEEABA EBABEEABAEBAFFFFFEFFEEBFEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAAAAAAAAAAAAAAAAAAAAABABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAEFBEFBEFBEFBEFBEFBAABEAEB +AEABBAABEFBEFBEFBEFBEFBEFAEBABAE BAEAEBAFBEFBEFBEFBEFBEFBEABAEABA EBABAFBEFBEFBEFBEFBEFBEFBEFAAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEFABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Zoom +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEEABAB EAEAABAFBEFBEFBEFBEFBEFBEABAEABF BBABEBAEFBEFBEFBEFBEFBEFBAEBEAEE +FEABBAABEFBEFBEFBEFBEFBEFAAFABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAAAAAAAAAAAAAAAAAAAAABEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEFFEBAEBAEBAEAFABAB EAEAFABAEBAEBBFFFEBAEBAEBABEEABF BBABEEABAFFAEFFFFEEBAEBAEABBEAEE +FEABBEAEBBEBAFFBFFAEBAEBAEAFABAB EAEAFABAEBEEBFEBFEBFFBFFFABEEABF BBABEEABAFFAEBEFFEEFFEFFEABBEAEE +FEABBEAFFFFFEEBFFBAFFBFFAEAFABAB EAEAFABBFFFFFAFFFEBBFFFEBABEEABF BBABEEABAFFAEBBFFAEBFFFAEABBEAEE +FEABBEAEBBEBAEFFEBAEBFEBAEAFABAB EAEAFABAEBEEBAFFAEBAFFFEBABEEABF BBABEEABAFFAEBFEBAEBFFFAEABBEAEE +FEABBEAEBAEBAFFFFFAFFAFFAEAFABAB EAEAFABAEBAEBFFFFEBFFBFFBABEEABF BBABEEABAEBAFFFFFEFFEEBFEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAAAAAAAAAAAAAAAAAAAAABABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAEFBEFBEFBEFBEFBEFBAABEAEE +FEABBAABEFBEFBEFBEFBEFBEFAEBABAB EAEAEBAFBEFBEFBEFBEFBEFBEABAEABF BBABAFBEFBEFBEFBEFBEFBEFBEFAAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEFABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Length: 48 +# +00000007 +00000008 +00000005 +00000005 +00000003 +00000004 +00000004 +00000006 +00000009 +00000007 +00000008 +00000008 +# +# Title: ? +# Length: +# +00000000000007E01FF81C38381C381C381C381C1C381FF807E0000000000000 +00000000000003801F801F80038003800380038003803FF83FF8000000000000 +0000000000000FE03FF03838003800F003E00F803E383FF83FF8000000000000 +0000000000000FE03FF03838003803F003F0003838383FF00FE0000000000000 +00000000000003E007E00EE01CE038E07FF87FF800E007F807F8000000000000 +0000000000003FF83FF838003FE03FF00078003878783FF00FC0000000000000 +00000000000007F01FF03C003BC07FF07C7878383C783FF00FC0000000000000 +0000000000003FF83FF8007000F000E001E001C003C003800780000000000000 +00000000000007E01FF81C381C380FF01FF8381C381C1FF807E0000000000000 +00000000000007E01FF83C78383C3C7C1FFC07B800781FF01FC0000000000000 +0000000000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +0000000000007FF87FFE1C0E1C0E1FF81FFE1C0E1C0E7FFE7FF8000000000000 +00000000000007F61FFE3C0E78067000700078003C0E1FFE07F0000000000000 +0000000000007FE07FF81C3C1C1E1C0E1C0E1C1E1C3C7FF87FE0000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C001C007F807F80000000000000 +00000000000007F61FFE3C0E78007000703F783F3C0E1FFE07F0000000000000 +0000000000007E7E7E7E1C381C381FF81FF81C381C387E7E7E7E000000000000 +0000000000003FF83FF80380038003800380038003803FF83FF8000000000000 +00000000000007FE07FE0070007000707070707078F03FE01FC0000000000000 +0000000000007EFC7EFC1C701CE01FC01FE01DF01C7C7F3E7F3E000000000000 +0000000000007FC07FC00E000E000E000E000E060E067FFE7FFE000000000000 +000000000000F83EFC7E7C7C7EFC77DC77DC739C739CF93EF83E000000000000 +000000000000F8FEFCFE3E383F383FB83BF839F838F8FE78FE38000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0000000000007FF07FF81C3C1C1C1C3C1FF81FF01C007F007F00000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE01FFE1CFC0000 +0000000000007FF07FFC1C3C1C3C1FF81FF01CF01C787F3E7F1E000000000000 +0000000000001FEC7FFC701C70007FF01FFC001C701C7FFC6FF0000000000000 +0000000000007FFC7FFC739C739C03800380038003803FF83FF8000000000000 +0000000000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +000000000000FEFEFEFE38381C701C700EE00EE007C007C00380000000000000 +000000000000FC3FFC3F718E718E3BDC3BDC3FFC1E781C381C38000000000000 +0000000000007F7E7F7E1E380FF007C003E00FF01C787EFE7EFE000000000000 +0000000000007EFC7EFC1C700EE007C007C0038003801FF01FF0000000000000 +0000000000003FFC3FFC38F839F003E007C00F9C1F1C3FFC3FFC000000000000 +000000000000000000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000000F800F8003BF03FFC3C1E380E380E3C1EFFFCFBF0000000000000 +000000000000000000000FDC3FFC783C70007000781C3FFC0FF0000000000000 +000000000000007C007C0FDC3FFC783C701C701C783C3FFF0FDF000000000000 +000000000000000000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +00000000000001FC07FC07003FF03FF00700070007003FF03FF0000000000000 +000000000000000000000FDF3FFF783C701C701C783C3FFC0FDC001C3FF81FF0 +000000000000F800F8003BF03FF83C38383838383838FEFEFEFE000000000000 +000000000380038000001F801F8003800380038003803FF83FF8000000000000 +0000000000E000E000003FE03FE000E000E000E000E000E000E001E03FC03F80 +0000000000007C007C001CF81CF81DE01F801FC01FF07CFC7C7C000000000000 +0000000000001F801F800380038003800380038003803FF83FF8000000000000 +00000000000000000000EF78FFFC739C739C739C739CFBDEFBDE000000000000 +00000000000000000000FBF0FFF83C38383838383838FEFEFEFE000000000000 +000000000000000000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +00000000000000000000FBF0FFFC3C1E380E380E3C1E3FFC3BF03800FF00FF00 +000000000000000000001FBE7FFEF078E038E038F0787FF81FB8003801FE01FE +000000000000000000003EF83FFE0F1E0E000E000E007FF07FF0000000000000 +000000000000000000001FB07FF070307FC01FF060707FF06FC0000000000000 +0000000000001C001C00FFF0FFF01C001C001C001C1C1FFC07F0000000000000 +00000000000000000000F8F8F8F838383838383838783FFE0FBE000000000000 +00000000000000007E7E7E7E1C381E780E7007E007E003C003C0000000000000 +00000000000000000000F83EF93E739C7BBC3FF83EF81C701C70000000000000 +000000000000000000007EFC7EFC1E700FC007E01CF07EFC7EFC000000000000 +000000000000000000007E7E7E7E1C380E700FE007C00380038007003FC03FC0 +000000000000000000003FF83FF831F003C007801F183FF83FF8000000000000 +00000000000003C003C003C003C003C001800180000003C003C0000000000000 +000000000000000000000000000000000000000003C003C003C0000000000000 +0000000000000FF01FF81C38003800F007C00700000007800780000000000000 +000000000000001C0038007000E001C0038007000E001C003800000000000000 +0000000000000000000003C003C003C00000000003C003C003C0000000000000 +00000000000007C00FE00E600F00079C1FD839F838F03FFC0FBC000000000000 +# +# Text: / +# +2F 00 +# +# Text: : +# +3A 00 +# +# Text: am +# +61 6D 00 +# +# Text: pm +# +70 6D 00 +# +# Text: No pictures in camera. +# +4E 6F 20 70 69 63 74 75 72 65 73 0A 69 6E 20 63 61 6D 65 72 61 2E 00 +# +# Text: Yes +# +59 65 73 00 +# +# Text: No +# +4E 6F 00 +# +# Text: . +# +2E 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Lock? +# +4C 6F 63 6B 3F 00 +# +# Text: Unlock? +# +55 6E 6C 6F 63 6B 3F 00 +# +# Text: Erase? +# +45 72 61 73 65 3F 00 +# +# Text: View Small Photos? +# +56 69 65 77 0A 53 6D 61 6C 6C 0A 50 68 6F 74 6F 73 3F 00 +# +# Text: View Full screen? +# +56 69 65 77 0A 46 75 6C 6C 0A 73 63 72 65 65 6E 3F 00 +# +# Text: Set Screen Brightness? +# +53 65 74 0A 53 63 72 65 65 6E 0A 42 72 69 67 68 74 6E 65 73 73 3F 00 +# +# Text: Start Slide Show? +# +53 74 61 72 74 0A 53 6C 69 64 65 0A 53 68 6F 77 3F 00 +# +# Text: Stop Slide Show? +# +53 74 6F 70 0A 53 6C 69 64 65 0A 53 68 6F 77 3F 00 +# +# Text: Set Camera Exposure? +# +53 65 74 0A 43 61 6D 65 72 61 0A 45 78 70 6F 73 75 72 65 3F 00 +# +# Text: Format Memory Card? +# +46 6F 72 6D 61 74 0A 4D 65 6D 6F 72 79 0A 43 61 72 64 3F 00 +# +# Text: Set Date & Time? +# +53 65 74 0A 44 61 74 65 20 26 0A 54 69 6D 65 3F 00 +# +# Text: Set for NTSC TV? +# +53 65 74 20 66 6F 72 0A 4E 54 53 43 20 54 56 3F 00 +# +# Text: Set for PAL TV? +# +53 65 74 20 66 6F 72 0A 50 41 4C 20 54 56 3F 00 +# +# Text: Review Pictures? +# +52 65 76 69 65 77 0A 50 69 63 74 75 72 65 73 3F 00 +# +# Text: Take Pictures? +# +54 61 6B 65 0A 50 69 63 74 75 72 65 73 3F 00 +# +# Text: +# +00 +# +# Text: One +# +4F 6E 65 0A 20 20 20 20 20 00 +# +# Text: None +# +4E 6F 6E 65 0A 20 20 20 20 20 00 +# +# Text: All +# +41 6C 6C 0A 20 20 20 20 20 00 +# +# Text: +# +00 +# +# Text: ERASE? +# +45 52 41 53 45 3F 00 +# +# Text: Erase This Picture? +# +45 72 61 73 65 0A 54 68 69 73 0A 50 69 63 74 75 72 65 3F 00 +# +# Text: Cancel Picture Erase? +# +43 61 6E 63 65 6C 0A 50 69 63 74 75 72 65 0A 45 72 61 73 65 3F 00 +# +# Text: Erase All Pictures? +# +45 72 61 73 65 0A 41 6C 6C 0A 50 69 63 74 75 72 65 73 3F 00 +# +# Text: Erasing picture... +# +45 72 61 73 69 6E 67 0A 70 69 63 74 75 72 65 2E 2E 2E 00 +# +# Text: Picture is LOCKED Unlock before erasing +# +50 69 63 74 75 72 65 20 69 73 0A 4C 4F 43 4B 45 44 0A 55 6E 6C 6F 63 6B 20 62 65 66 6F 72 65 0A 65 72 61 73 69 6E 67 00 +# +# Text: Erase ALL pictures? +# +45 72 61 73 65 0A 41 4C 4C 20 70 69 63 74 75 72 65 73 3F 00 +# +# Text: Erasing ALL pictures... +# +45 72 61 73 69 6E 67 0A 41 4C 4C 20 70 69 63 74 75 72 65 73 2E 2E 2E 00 +# +# Text: Normal? +# +4E 6F 72 6D 61 6C 3F 00 +# +# Text: Zoom? +# +5A 6F 6F 6D 3F 00 +# +# Text: Set Screen Brightness +# +53 65 74 20 53 63 72 65 65 6E 0A 42 72 69 67 68 74 6E 65 73 73 00 +# +# Text: Set Camera Exposure +# +53 65 74 20 43 61 6D 65 72 61 0A 45 78 70 6F 73 75 72 65 00 +# +# Text: Formatting resets the memory card and erases all photos on it. Format? +# +46 6F 72 6D 61 74 74 69 6E 67 20 72 65 73 65 74 73 0A 74 68 65 20 6D 65 6D 6F 72 79 20 63 61 72 64 0A 61 6E 64 20 65 72 61 73 65 73 20 61 6C 6C 0A 70 68 6F 74 6F 73 20 6F 6E 20 69 74 2E 0A 0A 46 6F 72 6D 61 74 3F 00 +# +# Text: Formatting the memory card..... +# +46 6F 72 6D 61 74 74 69 6E 67 20 74 68 65 0A 6D 65 6D 6F 72 79 20 63 61 72 64 2E 2E 2E 2E 2E 00 +# +# Text: Set for PAL TV? +# +53 65 74 20 66 6F 72 0A 50 41 4C 20 54 56 3F 00 +# +# Text: Set for NTSC TV? +# +53 65 74 20 66 6F 72 0A 4E 54 53 43 20 54 56 3F 00 +# +# Text: +# +00 +# +# Text: This pict +# +20 54 68 69 73 20 0A 20 70 69 63 74 20 00 +# +# Text: No +# +4E 6F 0A 20 20 20 00 +# +# Text: ALL pict +# +41 4C 4C 0A 20 70 69 63 74 20 00 +# +# Text: January +# +4A 61 6E 75 61 72 79 00 +# +# Text: February +# +46 65 62 72 75 61 72 79 00 +# +# Text: March +# +4D 61 72 63 68 00 +# +# Text: April +# +41 70 72 69 6C 00 +# +# Text: May +# +4D 61 79 00 +# +# Text: June +# +4A 75 6E 65 00 +# +# Text: July +# +4A 75 6C 79 00 +# +# Text: August +# +41 75 67 75 73 74 00 +# +# Text: September +# +53 65 70 74 65 6D 62 65 72 00 +# +# Text: October +# +4F 63 74 6F 62 65 72 00 +# +# Text: November +# +4E 6F 76 65 6D 62 65 72 00 +# +# Text: December +# +44 65 63 65 6D 62 65 72 00 +# +# Text: Day +# +44 61 79 00 +# +# Text: Month +# +4D 6F 6E 74 68 00 +# +# Text: Year +# +59 65 61 72 00 +# +# Text: Time +# +54 69 6D 65 00 +# +# Text: AM +# +41 4D 00 +# +# Text: PM +# +50 4D 00 +# +# Text: Set Date and Time +# +53 65 74 20 44 61 74 65 20 61 6E 64 20 54 69 6D 65 00 +# +# Text: Is this correct? +# +49 73 20 74 68 69 73 20 63 6F 72 72 65 63 74 3F 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Service Menu +# +20 20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 20 20 00 +# +# Text: P +# +50 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: S +# +53 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service ID +# +53 65 72 76 69 63 65 20 49 44 20 20 20 20 20 20 20 00 +# +# Text: Ver +# +56 65 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service Menu 2 +# +20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 32 20 20 00 +# +# Text: Reset Pictures +# +52 65 73 65 74 20 50 69 63 74 75 72 65 73 20 20 20 00 +# +# Text: Reset Strobe Pict +# +52 65 73 65 74 20 53 74 72 6F 62 65 20 50 69 63 74 00 +# +# Text: Reset Born OnDate +# +52 65 73 65 74 20 42 6F 72 6E 20 4F 6E 44 61 74 65 00 +# +# Text: Reset FactoryDflt +# +52 65 73 65 74 20 46 61 63 74 6F 72 79 44 66 6C 74 00 +# +# Text: Are You Sure? +# +41 72 65 20 59 6F 75 20 53 75 72 65 3F 00 +# +# Text: Reset to 0 +# +52 65 73 65 74 20 74 6F 20 30 00 +# +# Text: S . +# +53 20 20 2E 20 20 00 +# +# Text: M . +# +4D 20 20 2E 20 20 00 +# +# Text: Yes +# +59 65 73 00 +# +# Text: No +# +4E 6F 00 +# +# Text: +# +00 +# +# Text: BornOnDate +# +42 6F 72 6E 4F 6E 44 61 74 65 20 20 20 20 20 20 20 00 +# +# Text: FinalErrCode +# +46 69 6E 61 6C 45 72 72 43 6F 64 65 20 20 20 20 20 00 +# +# Text: ResetFinalErrCode +# +52 65 73 65 74 46 69 6E 61 6C 45 72 72 43 6F 64 65 00 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/french b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/french new file mode 100644 index 00000000..4a25ac5e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/french @@ -0,0 +1,2340 @@ +################################################################################ +# LOCALIZATION FOR HP PhotoSmart C30 # +# ---------------------------------- # +# This file (except the comments) will be sent to the camera (0x9200 command). # +# In order to make the data readable for humans, I commented the data and # +# formatted to some extend. # +# # +# SYMBOLS # +# ------- # +# Each symbol begins with a red pixel in the upper left corner, followed by a # +# yellow one, then by a blue one. The headline "red" does simply indicate that # +# those are lines beginning with a red pixel. The same with headline "yellow" # +# and headline "blue". The brightness of each pixel is defined by a value # +# ranging between A (dark) and F (bright). # +################################################################################ +# +# Variable: KC_LOCALIZE_CARDREV +# Value: 0x00 0x02 +# Length: 32 +# +4B 43 5F 4C 4F 43 41 4C 49 5A 45 5F 43 41 52 44 52 45 56 3A 00 02 FF FF FF FF FF FF FF FF FF FF +# +# Variable: LOCALIZATION +# Length: 16 +# +4C 4F 43 41 4C 49 5A 41 54 49 4F 4E FF FF FF FF +# +# Variable: LNG +# Value: 0x01 +# Length: 5 +# Explanation: Indicator for language. Known values are: +# - 0x00: English +# - 0x01: French +# - 0x02: Spanish +# - 0x04: German +# - 0x05: Japanese +# - 0x06: Korean +# +4C 4E 47 3A 01 +# +# Variable: TV +# Value: 0x01 +# Length: 4 +# Explanation: Format of TV output. Accepted values are: +# - 0x00: NTSC +# - 0x01: PAL +# - 0x02: Do not display TV menu. +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the format of the TV output. +# +54 56 3A 01 +# +# Variable: DT +# Value: 0x01 +# Length: 7 +# Explanation: Date format. Accepted values are: +# - 0x00: Month/Day/Year +# - 0x01: Day/Month/Year +# - 0x02: Year/Month/Day +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the date format. +# +44 54 3A 01 FF FF FF +# +# Variable: DST +# Value: 0x00 0x86 0x00 0x00 +# Length: 16 +# +44 53 54 3A 00 86 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SIZ +# Value: 0x00 0x01 0x00 0x00 +# Length: 16 +# +53 49 5A 3A 00 01 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SUM: +# Value: 0xBD +# Length: 8 +# Explanation: Sum of all bytes starting with the table of contents. The camera +# won't check this number. +# +53 55 4D 3A BD FF FF FF +# +# Variable: CRC +# Value: 0xA2 0xFB +# Length: 8 +# Explanation: FCS (frame check sequence) of CRC (cyclic redundancy check). The +# camera will check this number. +# +43 52 43 3A A2 FB FF FF +# +# Table of Contents (text entries only) +# +# One entry: 00 FE XX XX (XX XX is the memory address). +# +00 FE C8 C0 +00 FE C8 C2 +00 FE C8 C4 +00 FE C8 C7 +00 FE C8 CA +00 FE C8 E8 +00 FE C8 EC +00 FE C8 F0 +00 FE C8 F2 +00 FE C8 F3 +00 FE C8 F4 +00 FE C9 01 +00 FE C9 10 +00 FE C9 19 +00 FE C9 33 +00 FE C9 34 +00 FE C9 4D +00 FE C9 5E +00 FE C9 5F +00 FE C9 7B +00 FE C9 93 +00 FE C9 A9 +00 FE C9 B9 +00 FE C9 C8 +00 FE C9 D7 +00 FE C9 E6 +00 FE C9 E7 +00 FE C9 F1 +00 FE C9 FB +00 FE CA 06 +00 FE CA 07 +00 FE CA 10 +00 FE CA 25 +00 FE CA 3F +00 FE CA 56 +00 FE CA 6A +00 FE CA 9B +00 FE CA B2 +00 FE CA CE +00 FE CA D6 +00 FE CA DC +00 FE CA F4 +00 FE CB 0F +00 FE CB 61 +00 FE CB 82 +00 FE CB 91 +00 FE CB A1 +00 FE CB A2 +00 FE CB AE +00 FE CB B2 +00 FE CB C0 +00 FE CB C8 +00 FE CB D0 +00 FE CB D5 +00 FE CB DB +00 FE CB DF +00 FE CB E4 +00 FE CB EC +00 FE CB F1 +00 FE CB FB +00 FE CC 03 +00 FE CC 0C +00 FE CC 15 +00 FE CC 1A +00 FE CC 1F +00 FE CC 25 +00 FE CC 2B +00 FE CC 2E +00 FE CC 31 +00 FE CC 40 +00 FE CC 50 +00 FE CC 51 +00 FE CC 52 +00 FE CC 53 +00 FE CC 54 +00 FE CC 55 +00 FE CC 56 +00 FE CC 57 +00 FE CC 58 +00 FE CC 59 +00 FE CC 5A +00 FE CC 6C +00 FE CC 7E +00 FE CC 90 +00 FE CC A2 +00 FE CC B4 +00 FE CC C6 +00 FE CC D8 +00 FE CC EA +00 FE CC FC +00 FE CD 0E +00 FE CD 1C +00 FE CD 27 +00 FE CD 2E +00 FE CD 35 +00 FE CD 39 +00 FE CD 3C +00 FE CD 3D +00 FE CD 4F +00 FE CD 61 +# +# Title: Take Pictures +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAABAEBAAAAAAAEBAEBAEBAEBAEBF BBAEAAABAABAEAAABAEBEEBAEBAEBAEE +FEBAABAAAAEAAEAAEBAFAEEBAEBAEBAB EAEAAEAAEBAABAABAEBEBAAEBAEBAEBF BBAEBAEBAABAEBAEBAFAEBBAEBAEBAEE +FEBAABAAAAEAAEAAEBEBAEBBAEBAEBAB EAEAAEAAEBAABAABAFAEBAEABAEBAEBF BBAEAAABAABAEBAEBEBAEBAEEBAEBAEE +FEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAB EAEBAABAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAAABFFFFFFFFFFAFFEBFFFFFFFEAABF BBAAFFFFFFFFFFFAFFEBFFFFFFFFEAEE +FEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAB EAABAEBAEFBEFBEFAAABEFBEEAAABEBF BAAEBAEBBEFBEFBAAAAABEFBEAAABAAE +FEBAEBAEFBEFBEEAAAAABBEFAAAAAEAB EAABAEBAEFBEFBAABFFAAFBEEAAABEBF BAAEBAEBBEFBEEABFFFEAAFBEAAABAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAAFFFFFEABEFBEFBEBF BAAEBAEBBEFBEABFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBABFFFFFEAEFBEFBEEAB EAABAEBAEFBEFABFFFFFEABEFBEFBEBF BAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAABFFFEABBEFBEFBEBF BAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAE +FEBAEBAEFBEFBEEAAAAABBEFBEFBEEAB EAABAEBAEFBEFBEAAAAAEFBEFBEFBEBF BAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Take Pictures +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAABAEBAAAAAAAEBAEBAEBAEBAEBA ABAEAAABAABAEAAABAEBEEBAEBAEBAEA +AEBAABAAAAEAAEAAEBAFAEEBAEBAEBAA AAEAAEAAEBAABAABAEBEBAAEBAEBAEBA ABAEBAEBAABAEBAEBAFAEBBAEBAEBAEA +AEBAABAAAAEAAEAAEBEBAEBBAEBAEBAA AAEAAEAAEBAABAABAFAEBAEABAEBAEBA ABAEAAABAABAEBAEBEBAEBAEEBAEBAEA +AEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAA AAEBAABAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAAABFFFFFFFFFFAFFEBFFFFFFFEAABA ABAAFFFFFFFFFFFAFFEBFFFFFFFFEAEA +AEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA AAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAA AAABAEBAEFBEFBEFAAABEFBEEAAABEBA AAAEBAEBBEFBEFBAAAAABEFBEAAABAAA +AEBAEBAEFBEFBEEAAAAABBEFAAAAAEAA AAABAEBAEFBEFBAABFFAAFBEEAAABEBA AAAEBAEBBEFBEEABFFFEAAFBEAAABAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAAFFFFFEABEFBEFBEBA AAAEBAEBBEFBEABFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBABFFFFFEAEFBEFBEEAA AAABAEBAEFBEFABFFFFFEABEFBEFBEBA AAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAABFFFEABBEFBEFBEBA AAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAA +AEBAEBAEFBEFBEEAAAAABBEFBEFBEEAA AAABAEBAEFBEFBEAAAAAEFBEFBEFBEBA AAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBEBAEBAEEBAEBAEE +FEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAB EAEBAEBAEAAABAABAEAEBAEEBAEBAEBF BBAEBAEBAABAABAEBAFAEBBAEBAEBAEE +FEBAEBAEBAEAAEAAEBABAEEBAEBAEBAB EAEBAEBAEAAAAAABAEBABBAEBAEBAEBF BBAEBAEBAABAEAAEBAEBEEBAEBAEBAEE +FEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAB EAEBAEBAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAE +FEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAB EABFFFFFFFFFFFFAFFEBFFFFFFFFFEBF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BABEFBEFBEFBEFBEFBEFBEFBEFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEEAEFBAAAAAAAAAAAAAABEABEBF BABEFBAABEFAEBAEBAEBAEBAAFAABAAE +FEBBEFAABBEAAEBAEBAEBAEBAEAAAEAB EAAFBEAAAFBABAEBAEBAEBAEABAABEBF BABEFBEABEFAEBAEBAEBAEBAAFAAFAAE +FEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEFBEABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAABBEAAEBAEBAEBAEBAEFBEEAB EAAFBEAAAFBABAEBAEBAEBAEABEFBEBF BABEFBAABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAEBAEBAEBAEBAAFBEFAAE +FEBBAABEAAEAAEBAEBAEBAEBAEFBEEAB EAAFAAFBAABABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAAAAAAAAAAAAAAFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBEBAEBAEEBAEBAEA +AEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAA AAEBAEBAEAAABAABAEAEBAEEBAEBAEBA ABAEBAEBAABAABAEBAFAEBBAEBAEBAEA +AEBAEBAEBAEAAEAAEBABAEEBAEBAEBAA AAEBAEBAEAAAAAABAEBABBAEBAEBAEBA ABAEBAEBAABAEAAEBAEBEEBAEBAEBAEA +AEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAA AAEBAEBAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAA +AEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAA AABFFFFFFFFFFFFAFFEBFFFFFFFFFEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA AABEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEEAEFBAAAAAAAAAAAAAABEABEBA AABEFBAABEFAEBAEBAEBAEBAAFAABAAA +AEBBEFAABBEAAEBAEBAEBAEBAEAAAEAA AAAFBEAAAFBABAEBAEBAEBAEABAABEBA AABEFBEABEFAEBAEBAEBAEBAAFAAFAAA +AEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEFBEABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAABBEAAEBAEBAEBAEBAEFBEEAA AAAFBEAAAFBABAEBAEBAEBAEABEFBEBA AABEFBAABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAEBAEBAEBAEBAAFBEFAAA +AEBBAABEAAEAAEBAEBAEBAEBAEFBEEAA AAAFAAFBAABABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAAAAAAAAAAAAAAFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: View Small Photos +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABAAAAAAAABAAAAAAAAEAAAAAAAAEBF BBFAAEBABAAFABEFBEFAAAEFBAEBAAEE +FEEABAEBEBAEAFBEFBEABABEFBAEABAB EABAEBABAEABAFFFEFBAEAFBEEBAAEBF BBFAAEBEBAAFABFFBEFAAAEFBAEBAAEE +FEEABABAEBAEAFFEFBAABABEFBAEABAB EABAEBEBAEABAEFBEFBAEAFBEFBAAEBF BBFAABAEBAAFABEFBAEAAAFBBEFBAAEE +FEEABEBAEBAEAFBEFBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEAAEAEBF BBFAEBAEBAAFABEFBAEAAAFBBAABAAEE +FEEAAEBAEBAEAFBAEBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEFBEAEBF BBFAAAAAAAAFAAAAAAAAAAAAAAAAAAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAABAEFBEAAABEFBEBAAAEBAEBAAAEE +FEBAEBAEFBABAFBEFAEABAAEBAEBABAB EAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBF BBAABAEFBEAAABEFBEBAAABBAEBAAAEE +FEBAFBEEFBABAFBEFAEABAFBBAEBABAB EAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBF BBAABEFFBEAAAAEBBEFAAABEFEBAAAEE +FEBAFBEEFBABABAEFBEABAFBEAEBABAB EAEABAEBEFAEAEBAEFBAEAEFBBAEAEBF BBAAEBAFBEAAAAEBBEFAAABEFEBAAAEE +FEBAAEBEFBABABAEFBEABAFBEFEBABAB EAEABAEBEFAEAEBAEFBAEAEFBEAEAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAAEFBEFAAAAABEFBEAAABEFBEBAAEE +FEBABFFBEBABABFBEFBABAFBEFAEABAB EAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBF BBAAEFBEBBAAAABEFFEAAABEFBEBAAEE +FEBABEBAEFABABFBEFBABAFBBEAEABAB EAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABAFBBEAEABAB EAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABABAEBAEABAB EAEAAEBABEAEAAEBBAEAEAEBAEBAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: View Small Photos +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABAAAAAAAABAAAAAAAAEAAAAAAAAEBA ABFAAEBABAAFABEFBEFAAAEFBAEBAAEA +AEEABAEBEBAEAFBEFBEABABEFBAEABAA AABAEBABAEABAFFFEFBAEAFBEEBAAEBA ABFAAEBEBAAFABFFBEFAAAEFBAEBAAEA +AEEABABAEBAEAFFEFBAABABEFBAEABAA AABAEBEBAEABAEFBEFBAEAFBEFBAAEBA ABFAABAEBAAFABEFBAEAAAFBBEFBAAEA +AEEABEBAEBAEAFBEFBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEAAEAEBA ABFAEBAEBAAFABEFBAEAAAFBBAABAAEA +AEEAAEBAEBAEAFBAEBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEFBEAEBA ABFAAAAAAAAFAAAAAAAAAAAAAAAAAAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAABAEFBEAAABEFBEBAAAEBAEBAAAEA +AEBAEBAEFBABAFBEFAEABAAEBAEBABAA AAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBA ABAABAEFBEAAABEFBEBAAABBAEBAAAEA +AEBAFBEEFBABAFBEFAEABAFBBAEBABAA AAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBA ABAABEFFBEAAAAEBBEFAAABEFEBAAAEA +AEBAFBEEFBABABAEFBEABAFBEAEBABAA AAEABAEBEFAEAEBAEFBAEAEFBBAEAEBA ABAAEBAFBEAAAAEBBEFAAABEFEBAAAEA +AEBAAEBEFBABABAEFBEABAFBEFEBABAA AAEABAEBEFAEAEBAEFBAEAEFBEAEAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAAEFBEFAAAAABEFBEAAABEFBEBAAEA +AEBABFFBEBABABFBEFBABAFBEFAEABAA AAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBA ABAAEFBEBBAAAABEFFEAAABEFBEBAAEA +AEBABEBAEFABABFBEFBABAFBBEAEABAA AAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABAFBBEAEABAA AAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABABAEBAEABAA AAEAAEBABEAEAAEBBAEAEAEBAEBAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Screen Brightness +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBABBAEBAEBAEBAEBAB EAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAEAEEBABBAFAEBAEEBAABAEAAEBAB EAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABAAEAEBAEBAEBAEEAEBBAEBAB EAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAB EAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEABAEBAB EAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBF BBAEAEFAEBEFBEFFFFBEFBEEBAABBAEE +FEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAB EAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAB EABAEBAEBEFBEFFFFFFFBEFBEEBAEBBF BAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAE +FEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAB EAEBABAEBEFBEFFFFFFFBEFBEEBAAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAAAEBEFBEFBFFFFFBEFBEEBAABBAB EAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBF BBAEBAFAEBEFBEFFFFBEFBEEBAAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEBBAEBAB EAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAEBEFBEFBEFBEFBAEBBAEBAB EAEBAFAABAEBEFBEFBEFBEEBBABBAEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAEBABAEBAEBEFBEFBAEBAEABAEBAB EAEBAEAEBBABAEBAEBAEBBAFAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABBABBABAEBAEBBEABABBAEBAB EAEBAFBAEBEEBABAEBAAEAEEBABBAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAEBAEBABBAFBABBAEBAABAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Screen Brightness +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBABBAEBAEBAEBAEBAA AAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAEAEEBABBAFAEBAEEBAABAEAAEBAA AAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABAAEAEBAEBAEBAEEAEBBAEBAA AAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAA AAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEABAEBAA AAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBA ABAEAEFAEBEFBEFFFFBEFBEEBAABBAEA +AEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAA AAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAA AABAEBAEBEFBEFFFFFFFBEFBEEBAEBBA AAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAA +AEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAA AAEBABAEBEFBEFFFFFFFBEFBEEBAAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAAAEBEFBEFBFFFFFBEFBEEBAABBAA AAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBA ABAEBAFAEBEFBEFFFFBEFBEEBAAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEBBAEBAA AAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAEBEFBEFBEFBEFBAEBBAEBAA AAEBAFAABAEBEFBEFBEFBEEBBABBAEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAEBABAEBAEBEFBEFBAEBAEABAEBAA AAEBAEAEBBABAEBAEBAEBBAFAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABBABBABAEBAEBBEABABBAEBAA AAEBAFBAEBEEBABAEBAAEAEEBABBAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAEBAEBABBAFBABBAEBAABAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Date & Time +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEABAFBEFAEFBAFBEFBAFBEFBABF BBAEFBAFAEFBEABEEBEFBEFAEFBEFAEE +FEABEFAEABEFBAFBAFBEFBEABEFBEAAB EAAFBEABAFBEFAEEBEFBEFBAFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEABAFAEFBEFBAFBEFBEFBEFBAFAEE +FEABAFAEABEFBEFAEFBEFBEFBEEBEAAB EAAFAEABAFBEFBEABEFBEFBEFBAFBABF BBAEABAFAEFBEFBAFBEFBEFBEEBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBAFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFAEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEABEFBEFBEFAAABABF BBAEAAAFBEFBEFBAFBEFBEFBEAAAFAEE +FEABAFAEFBEFBEFAEFBEFBEFBEFAEAAB EAAFAEABEFBEFBEABEFBEFBEFBEABABF BBAEAAAFBAAAAAAAABEFBEFBEFAAFAEE +FEABAAAEFAAAAAAAAFBEFBEFBEAAEAAB EAAFBEABEFBEFBEABEFBEFBEFBEABABF BBAEFBAFBEFBEFBAFBEFBEFBEFBAFAEE +FEABEFAEFBEFBEFAEFBEFBEFBAAAEAAB EAAFBEABEFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEABAFAEE +FEABAFAEFBEFBEFBEFBEFBEFBAFAEAAB EAAFAEABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEAAAFAEE +FEABAAAEFBEFBEFBEFBEFBEFBAAAEAAB EAAFAEABEAAAFBEFAEFBEFAAFBEABABF BBAEABAFBAAAEFBEABEFBEAAEFBAFAEE +FEABAAAEFBEABEFBAFBEFBAFBEFBEAAB EAAFAAABEFBAFBEFAEFBEFAEFBEFBABF BBAEFBEFBEFAEFBEAAAFBEAAAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAEABEFBEABEFBABF BBAEFBEFBEFAEFBEABAFBEFBAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAAABEFAAABEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Date & Time +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEABAFBEFAEFBAFBEFBAFBEFBABA ABAEFBAFAEFBEABEEBEFBEFAEFBEFAEA +AEABEFAEABEFBAFBAFBEFBEABEFBEAAA AAAFBEABAFBEFAEEBEFBEFBAFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEABAFAEFBEFBAFBEFBEFBEFBAFAEA +AEABAFAEABEFBEFAEFBEFBEFBEEBEAAA AAAFAEABAFBEFBEABEFBEFBEFBAFBABA ABAEABAFAEFBEFBAFBEFBEFBEEBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBAFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFAEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEABEFBEFBEFAAABABA ABAEAAAFBEFBEFBAFBEFBEFBEAAAFAEA +AEABAFAEFBEFBEFAEFBEFBEFBEFAEAAA AAAFAEABEFBEFBEABEFBEFBEFBEABABA ABAEAAAFBAAAAAAAABEFBEFBEFAAFAEA +AEABAAAEFAAAAAAAAFBEFBEFBEAAEAAA AAAFBEABEFBEFBEABEFBEFBEFBEABABA ABAEFBAFBEFBEFBAFBEFBEFBEFBAFAEA +AEABEFAEFBEFBEFAEFBEFBEFBAAAEAAA AAAFBEABEFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEABAFAEA +AEABAFAEFBEFBEFBEFBEFBEFBAFAEAAA AAAFAEABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEAAAFAEA +AEABAAAEFBEFBEFBEFBEFBEFBAAAEAAA AAAFAEABEAAAFBEFAEFBEFAAFBEABABA ABAEABAFBAAAEFBEABEFBEAAEFBAFAEA +AEABAAAEFBEABEFBAFBEFBAFBEFBEAAA AAAFAAABEFBAFBEFAEFBEFAEFBEFBABA ABAEFBEFBEFAEFBEAAAFBEAAAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAEABEFBEABEFBABA ABAEFBEFBEFAEFBEABAFBEFBAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAAABEFAAABEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Erase +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBBFFAABAEBAEBAEBAEE +FEBAEBAEBAEBAABFEBAEBAEBAEBAEBAB EAEBAEBAAAAAAAAAAAAAAAAABAEBAEBF BBAEBAEAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEBAAABEEBEBAAFAAAAEAAABAEBAB EAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBF BBAEBAAAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEAAAAAAAAAAAAAAAAAAAAABAEBAB EAEBAABFFFFFABEFBEFBEBAABAEBAEBF BBAEABFFFFFEAFBEFBEFBEBAABAEBAEE +FEBABFFFFFFEBEFBEFBEFAEAAEBAEBAB EAEBFFFFFFEAFBEFAEBBEBAABAEBAEBF BBABFFFFFFEBEBBEAAEFBEBAABAEBAEE +FEBFFFFFFFAFAEFBABAEFAEAAEBAEBAB EABFFFFFFFAEBBEFAEBBEBAABAEBAEBF BBABFFFFFAFAEBBEAAEFBEBAABAEBAEE +FEAABFFFFAEFAEFBABAEFAEAAEBAEBAB EAEABFFFAFBEBBEFAEBBEBAABAEBAEBF BBAEABFFAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBFAABEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAAAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEAAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBAAAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAAABEBAABAEBAEBF BBAEBAEAAEFBEFBEFBEFBEAAABAEBAEE +FEBAEBAABBEFBEFBEFBEFAAAAEBAEBAB EAEBAEBAEFBEFBEFBEFBEAAABAEBAEBF BBAEBAEAAABAEBAEBAEBAAAAABAEBAEE +FEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAB EAEBAEBAEAAAAAAAAAAAAAAABAEBAEBF BBAEBAEBAAAAAAAAAAAAAAAAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Erase +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBBFFAABAEBAEBAEBAEA +AEBAEBAEBAEBAABFEBAEBAEBAEBAEBAA AAEBAEBAAAAAAAAAAAAAAAAABAEBAEBA ABAEBAEAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEBAAABEEBEBAAFAAAAEAAABAEBAA AAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBA ABAEBAAAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEAAAAAAAAAAAAAAAAAAAAABAEBAA AAEBAABFFFFFABEFBEFBEBAABAEBAEBA ABAEABFFFFFEAFBEFBEFBEBAABAEBAEA +AEBABFFFFFFEBEFBEFBEFAEAAEBAEBAA AAEBFFFFFFEAFBEFAEBBEBAABAEBAEBA ABABFFFFFFEBEBBEAAEFBEBAABAEBAEA +AEBFFFFFFFAFAEFBABAEFAEAAEBAEBAA AABFFFFFFFAEBBEFAEBBEBAABAEBAEBA ABABFFFFFAFAEBBEAAEFBEBAABAEBAEA +AEAABFFFFAEFAEFBABAEFAEAAEBAEBAA AAEABFFFAFBEBBEFAEBBEBAABAEBAEBA ABAEABFFAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBFAABEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAAAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEAAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBAAAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAAABEBAABAEBAEBA ABAEBAEAAEFBEFBEFBEFBEAAABAEBAEA +AEBAEBAABBEFBEFBEFBEFAAAAEBAEBAA AAEBAEBAEFBEFBEFBEFBEAAABAEBAEBA ABAEBAEAAABAEBAEBAEBAAAAABAEBAEA +AEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAA AAEBAEBAEAAAAAAAAAAAAAAABAEBAEBA ABAEBAEBAAAAAAAAAAAAAAAAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Camera Exposure +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEAABFFFFFEAAEBAEBAEBAB EAEBAEBAEBAEABFFFFFEABAEBAEBAEBF BBAEBAEBAEABFFFFFFFFFEAAEBAEBAEE +FEBAEBAEBAABFFFFFFFFFEABAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEBABFFFFFFFFFFFFFEABAEBAEE +FEBAEBAEABFFFFFFFFFFFFFEAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBAEBFFFFFFFFFFFFFFFEABAEBAB EAEBAEBABFFFFFFFFFFFFFFFEAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBABFFFFFEBEBEBFFFFFFEBAEBAB EAEBAEABFFFFFEBEBEBFFFFFFEABAEBF BBAEBAEBFFFFEBEBEBEABFFFFEAEBAEE +FEBAEBABFFFFEBEBEBEABFFFFEBAEBAB EAEBAEABFFFFEBFFFFFEBFFFFEABAEBF BBAEBAEBFFFFEBFFFFFEBFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBABFFFFEBFFFEBFFFFEAEBAEBF BBAEBAEABFFFFEBFFFEBFFFFEBAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBABFFFFEBFEBFFFFEABAEBAEE +FEBAEBAEABFFFFEBFEBFFFFEAEBAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBAEBFFFEBFEBFFFEAEBAEBAEE +FEBAEBAEBABFFFEBFEBFFFEBAEBAEBAB EAEBAEBAEBABFFEBFEBFFEAEBAEBAEBF BBAEBAEBAEABFFEBFEBFFEBAEBAEBAEE +FEBAEBAEBAEABFEBFEABEAEBAEBAEBAB EAEBAEBAEBAEBFEBFEABEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBAAAFBEAABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEABBEEAAAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAABAEBAEBAEBAB EAEBAEBAEBAEBAEAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Camera Exposure +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEAABFFFFFEAAEBAEBAEBAA AAEBAEBAEBAEABFFFFFEABAEBAEBAEBA ABAEBAEBAEABFFFFFFFFFEAAEBAEBAEA +AEBAEBAEBAABFFFFFFFFFEABAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEBABFFFFFFFFFFFFFEABAEBAEA +AEBAEBAEABFFFFFFFFFFFFFEAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBAEBFFFFFFFFFFFFFFFEABAEBAA AAEBAEBABFFFFFFFFFFFFFFFEAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBABFFFFFEBEBEBFFFFFFEBAEBAA AAEBAEABFFFFFEBEBEBFFFFFFEABAEBA ABAEBAEBFFFFEBEBEBEABFFFFEAEBAEA +AEBAEBABFFFFEBEBEBEABFFFFEBAEBAA AAEBAEABFFFFEBFFFFFEBFFFFEABAEBA ABAEBAEBFFFFEBFFFFFEBFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBABFFFFEBFFFEBFFFFEAEBAEBA ABAEBAEABFFFFEBFFFEBFFFFEBAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBABFFFFEBFEBFFFFEABAEBAEA +AEBAEBAEABFFFFEBFEBFFFFEAEBAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBAEBFFFEBFEBFFFEAEBAEBAEA +AEBAEBAEBABFFFEBFEBFFFEBAEBAEBAA AAEBAEBAEBABFFEBFEBFFEAEBAEBAEBA ABAEBAEBAEABFFEBFEBFFEBAEBAEBAEA +AEBAEBAEBAEABFEBFEABEAEBAEBAEBAA AAEBAEBAEBAEBFEBFEABEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBAAAFBEAABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEABBEEAAAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAABAEBAEBAEBAA AAEBAEBAEBAEBAEAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Format Memory Card +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEEFBEFBEFBEFBEFBEFBEFBEFBEFEE +FEBBBAAAAAAAAAAAAAAAAAAAAAAABEAB EAEEFAAFAEABAFAEABAFAEABAFAAFBBF BBBBAAAAAAAAAAAAAAAAAAAAAAABEFEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEABBF BBFAAAAAFFFFFFFFFFFFFFFFFFFFAFEE +FEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAB EABAABAAFFFFFFFFEFFFFFFFFFFEABBF BBFAAEAAFFFFFFFFABFFFFFFFFFFAFEE +FEEABAEAFFFFFFFEBAFFFFFFFFFFAEAB EABAAAAAFFFFFFFAFEBFFFFFFFFEABBF BBFAAAAAFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAAABFFFFFFAFABEBFFFFFFFFAEAB EABAAAABFFFFFEBEAAFAFFFFFFFEABBF BBFAAAABFFFFFAFAAABEBFFFFFFFAFEE +FEEAAAABFFFFEBEAAAAFAFFFFFFFAEAB EABAAAAFFFFFAFAAAAABEBFFFFFEABBF BBFAAAAFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAAAAFFFFAFAAAAAAABEBFFFFFAEAB EABAAAAFFFEBEAAAAAAAAFAFFFFEABBF BBFAAAAFFFAFAAAAAAAAABEBFFFFAFEE +FEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAB EABAAABFFAFAABFFEBFFFABEBFFEABBF BBFAAABFEBEAAFFFEBFFFAAFAFFFAFEE +FEEAAABFAFAABFAAABEAAAABEBFFAEAB EABAAABEBEAABEAAABEAAAAAFAFEABBF BBFAAAFAFAAABEAAABEAAAAABEBFAFEE +FEEAAAFEBEAABEAAABFFEAAAFAFFAEAB EABAAAFFAFAABEAAABFFEAABEBFEABBF BBFAAAFFEBEABEAAABEAAAAFAFFFAFEE +FEEAAAFFFAFABFAAABEAAABEBFFFAEAB EABAAAFFFEBEAFFFEBEAAAFAFFFEABBF BBFAABFFFFAFABFFEBEAABEBFFFFAFEE +FEEAABFFFFEBEAAAAAAAAFAFFFFFAEAB EABAABFFFFFAFAAAAAAABEBFFFFEABBF BBFAABFFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAABFFFFFFAFAAAAABEBFFFFFFAEAB EABAABFFFFFFEBEAAAAFAFFFFFFEABBF BBFAAFFFFFFFFAFAAABEBFFFFFFFAFEE +FEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAB EABAAFFFFFFFFFAFABEBFFFFFFFEABBF BBFAAFFFFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAB EABAAFFFFFFFFFFEBAFFFFFFFFFEABBF BBFABFFFFFFFFFFFABFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFEFFFFFFFFFFFAEAB EABABFFFFFFFFFFFFFFFFFFFFFFEABBF BBFABFFFFFFFFFFFFFFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFFFFFFFFFFFFFBEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEFBBF BBFBEFBEFBEFBEFBEFBEFBEFBEFBEEEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAB EAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Format Memory Card +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEEFBEFBEFBEFBEFBEFBEFBEFBEFEA +AEBBBAAAAAAAAAAAAAAAAAAAAAAABEAA AAEEFAAFAEABAFAEABAFAEABAFAAFBBA ABBBAAAAAAAAAAAAAAAAAAAAAAABEFEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEABBA ABFAAAAAFFFFFFFFFFFFFFFFFFFFAFEA +AEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAA AABAABAAFFFFFFFFEFFFFFFFFFFEABBA ABFAAEAAFFFFFFFFABFFFFFFFFFFAFEA +AEEABAEAFFFFFFFEBAFFFFFFFFFFAEAA AABAAAAAFFFFFFFAFEBFFFFFFFFEABBA ABFAAAAAFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAAABFFFFFFAFABEBFFFFFFFFAEAA AABAAAABFFFFFEBEAAFAFFFFFFFEABBA ABFAAAABFFFFFAFAAABEBFFFFFFFAFEA +AEEAAAABFFFFEBEAAAAFAFFFFFFFAEAA AABAAAAFFFFFAFAAAAABEBFFFFFEABBA ABFAAAAFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAAAAFFFFAFAAAAAAABEBFFFFFAEAA AABAAAAFFFEBEAAAAAAAAFAFFFFEABBA ABFAAAAFFFAFAAAAAAAAABEBFFFFAFEA +AEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAA AABAAABFFAFAABFFEBFFFABEBFFEABBA ABFAAABFEBEAAFFFEBFFFAAFAFFFAFEA +AEEAAABFAFAABFAAABEAAAABEBFFAEAA AABAAABEBEAABEAAABEAAAAAFAFEABBA ABFAAAFAFAAABEAAABEAAAAABEBFAFEA +AEEAAAFEBEAABEAAABFFEAAAFAFFAEAA AABAAAFFAFAABEAAABFFEAABEBFEABBA ABFAAAFFEBEABEAAABEAAAAFAFFFAFEA +AEEAAAFFFAFABFAAABEAAABEBFFFAEAA AABAAAFFFEBEAFFFEBEAAAFAFFFEABBA ABFAABFFFFAFABFFEBEAABEBFFFFAFEA +AEEAABFFFFEBEAAAAAAAAFAFFFFFAEAA AABAABFFFFFAFAAAAAAABEBFFFFEABBA ABFAABFFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAABFFFFFFAFAAAAABEBFFFFFFAEAA AABAABFFFFFFEBEAAAAFAFFFFFFEABBA ABFAAFFFFFFFFAFAAABEBFFFFFFFAFEA +AEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAA AABAAFFFFFFFFFAFABEBFFFFFFFEABBA ABFAAFFFFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAA AABAAFFFFFFFFFFEBAFFFFFFFFFEABBA ABFABFFFFFFFFFFFABFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFEFFFFFFFFFFFAEAA AABABFFFFFFFFFFFFFFFFFFFFFFEABBA ABFABFFFFFFFFFFFFFFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFFFFFFFFFFFFFBEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEFBBA ABFBEFBEFBEFBEFBEFBEFBEFBEFBEEEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAA AAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Lock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBF BBAEBAEBAAEAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEABEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Lock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBA ABAEBAEBAAEAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEABEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Unlock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAAAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEAAABAEBAEBAEABABAEBAEBAB EAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBF BBAEBAEBAEAAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEBAEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Unlock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAAAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEAAABAEBAEBAEABABAEBAEBAA AAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBA ABAEBAEBAEAAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEBAEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set for PAL / NTSC TV +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAABAEBAEBAEBAEBAABAEBAB EAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBF BBAEBAEBAEAAEBAEBAEBAEBAABAEBAEE +FEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAB EAEBAEBAEBAABAEBAEBAEBAABAEBAEBF BBAEBAEBAEBAABAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAABAEBAEBAABAEBAEBAB EAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBF BBAEBAEBAEBAEAAEBAEBAABAEBAEBAEE +FEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAB EAEBAEBAEBAEBAABAEBAABAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEABEFBEFBEFBEFBEFBEFBEFBEEAABF BBAAFBEFBEFBEFBEFBEFBEFBEFBAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAB EAEAAAAAAAAAAAAAAAAAAAAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAEAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAEBAEBAEBAEBAEBAEBAAAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEFBEBAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBAEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAAAAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set for PAL / NTSC TV +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAABAEBAEBAEBAEBAABAEBAA AAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBA ABAEBAEBAEAAEBAEBAEBAEBAABAEBAEA +AEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAA AAEBAEBAEBAABAEBAEBAEBAABAEBAEBA ABAEBAEBAEBAABAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAABAEBAEBAABAEBAEBAA AAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBA ABAEBAEBAEBAEAAEBAEBAABAEBAEBAEA +AEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAA AAEBAEBAEBAEBAABAEBAABAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEABEFBEFBEFBEFBEFBEFBEFBEEAABA ABAAFBEFBEFBEFBEFBEFBEFBEFBAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAA AAEAAAAAAAAAAAAAAAAAAAAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAEAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAEBAEBAEBAEBAEBAEBAAAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEFBEBAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBAEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAAAAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Start Slide Show +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAB EAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAAFBEFBEFBEFBEFBEFBEAAEE +FEBAEBAEBAEFBEFBEFBEFBEFBEFBABAB EAEBAEBAAFBEFBEFBEFBEFBEFBEFBABF BBAEBAEBAEFBEFBEFBEFBEFBEFBEFAEE +FEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAB EAEBAEBAAAAAAAAAAAAAAAAAABEFBABF BBAEBAAFBEFBEFBEFBEFBEFBEABEFAEE +FEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAB EAEBAAFBEFBEFBEFBEFBEFBEFBAFBABF BBAEBAEFBEFBEFBEFBEFBEFBEFAEFAEE +FEBAAAAAAAAAAAAAAAAAAAEFBEABEAAB EAEBAAAAAAAAAAAAAAAAAABEFBAFBABF BBAAFBEFBEFBEFBEFBEFBEABEFAEFAEE +FEBAEFBEFBEFBEFBEFBEFBAFBEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEFBEFBEFBEFBEFBEFAEFAEFAEE +FEABEFBEFBEFBEFBEFBEFBEABEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEAAAAAAAAAAAAFBEFAEFAEFAEE +FEABEFBAAAAAAAAAAAAEFBEABEABEAAB EAAFBEAAEBAEBAEBAEBAEFBAFBAFBABF BBAEFBABAEBAEBAEBAEABEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABABAB EAAFBABAEBAEBAEBAEBAAFBAFBAFAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAABAEE +FEABEAAEBAEBAEBAEBAEABEABEAAEBAB EAAFBABAEBAEBAEBAEBAAFBAFBABAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAEBAEE +FEABEFAEBAEBAEBAEBAAFBEABABAEBAB EAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBF BBAEFBEAAAAAAAAAAAAFBEFAABAEBAEE +FEABEFBAAAAAAAAAAAAEFBEAAEBAEBAB EAAFBEFBEFBEFBEFBEFBEFBABAEBAEBF BBAEFBEFBEFBEFBEFBEFBEFAEBAEBAEE +FEBAEFBEFBEFBEFBEFBEFBABAEBAEBAB EAEABEFBEFBEFBEFBEFBEFAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAABAEBAEBAEE +FEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Start Slide Show +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAA AAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAAFBEFBEFBEFBEFBEFBEAAEA +AEBAEBAEBAEFBEFBEFBEFBEFBEFBABAA AAEBAEBAAFBEFBEFBEFBEFBEFBEFBABA ABAEBAEBAEFBEFBEFBEFBEFBEFBEFAEA +AEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAA AAEBAEBAAAAAAAAAAAAAAAAAABEFBABA ABAEBAAFBEFBEFBEFBEFBEFBEABEFAEA +AEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAA AAEBAAFBEFBEFBEFBEFBEFBEFBAFBABA ABAEBAEFBEFBEFBEFBEFBEFBEFAEFAEA +AEBAAAAAAAAAAAAAAAAAAAEFBEABEAAA AAEBAAAAAAAAAAAAAAAAAABEFBAFBABA ABAAFBEFBEFBEFBEFBEFBEABEFAEFAEA +AEBAEFBEFBEFBEFBEFBEFBAFBEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEFBEFBEFBEFBEFBEFAEFAEFAEA +AEABEFBEFBEFBEFBEFBEFBEABEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEAAAAAAAAAAAAFBEFAEFAEFAEA +AEABEFBAAAAAAAAAAAAEFBEABEABEAAA AAAFBEAAEBAEBAEBAEBAEFBAFBAFBABA ABAEFBABAEBAEBAEBAEABEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABABAA AAAFBABAEBAEBAEBAEBAAFBAFBAFAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAABAEA +AEABEAAEBAEBAEBAEBAEABEABEAAEBAA AAAFBABAEBAEBAEBAEBAAFBAFBABAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAEBAEA +AEABEFAEBAEBAEBAEBAAFBEABABAEBAA AAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBA ABAEFBEAAAAAAAAAAAAFBEFAABAEBAEA +AEABEFBAAAAAAAAAAAAEFBEAAEBAEBAA AAAFBEFBEFBEFBEFBEFBEFBABAEBAEBA ABAEFBEFBEFBEFBEFBEFBEFAEBAEBAEA +AEBAEFBEFBEFBEFBEFBEFBABAEBAEBAA AAEABEFBEFBEFBEFBEFBEFAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAABAEBAEBAEA +AEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 72 +# Height: 36 +# Length: 2592 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBE +AEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFB +BAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEF +EBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Width: 18 +# Height: 12 +# Length: 216 +# +0000000000000000000000000000FBEF0000 +0000EEFE00000000BBAB00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000BBAB00000000FAAF0000 +0000EFBE0000000000000000000000000000 +# +# Title: ? +# Length: 544 +# +FBCFBCFBEF3EF3EF +# +FAEBAEBAEBAEBAE8 ABAEBAEAAEBAEBAF EEBAEBAEFAEBAEBB +FAEBAEFAAFAEBAEA 2BAEBBEBAAEAEBAF EEBAEFAEBAEBAEBB +FAEBAEBAEBBABAE8 ABAEAAEBAEBAEBAF EEBAEEAEBAABAEBB +FAEBAEAAABBABAEA 2BAEAAAFBEBAEBAF EEBAEFBBABEBAEBB +FAEBAAFAAFAABAE8 ABAEABEAAEFAEBAF EEBAEEABEAEBAEBB +FAEBBEAAAABEBAEA 2BAEBAEAABAAABAF EEBAEAAAAAAFAEBB +FAEAAAAFFAAABAE8 ABAEEABEBEABABAF EEBAEEBAAEBBAEBB +FAEAAABEBEAABAEA 2BAEFAAFFAABABAF EEBAAAEAABAEAEBB +FAEBBEAAAABEBAE8 ABAEABABEAFAEBAF EEBAEBBAABEBAEBB +FAEBAEBBEEAEBAEA 2BAEBAAAAABAEBAF EEBAEBAEBAEBAEBB +# +CFBEF3CF3CFBEFBC +# +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# same as above +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000020000 +00000000000000000000000000000000000AC000 +00000000000000000000000000000000002BA000 +0000000000000000000000000000000000AEB800 +0000000000000000000000000000000002BAEB00 +000000000000000000000000000000000AEBAE80 +000000000000000000000000000000002BAEBAE0 +00000000000000000000000000000000AEBAEBAC +000000000000000000000000000000003AEBAEB0 +000000000000000000000000000000000BAEBAC0 +0000000000000000000000000000000002BAEB00 +0000000000000000000000000000000000EBAC00 +00000000000000000000000000000000002EB000 +00000000000000000000000000000000000AC000 +0000000000000000000000000000000000030000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000200000000000000020000 +0000000000000000000B800000000000000AC000 +0000000000000000002EB00000000000002BA000 +000000000000000000BAE8000000000000AEB800 +000000000000000002EBAE000000000002BAEB00 +00000000000000000BAEBAC0000000000AEBAE80 +00000000000000002EBAEBA0000000002BAEBAE0 +0000000000000000BAEBAEB800000000AEBAEBAC +00000000000000002BAEBAE0000000003AEBAEB0 +00000000000000000EBAEB80000000000BAEBAC0 +000000000000000002EBAE000000000002BAEB00 +000000000000000000AEB8000000000000EBAC00 +0000000000000000003AE00000000000002EB000 +0000000000000000000B800000000000000AC000 +0000000000000000000200000000000000030000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0003000000000000000200000000000000020000 +000E800000000000000B800000000000000AC000 +003AE00000000000002EB00000000000002BA000 +00EBAC000000000000BAE8000000000000AEB800 +03AEBA000000000002EBAE000000000002BAEB00 +0EBAEB80000000000BAEBAC0000000000AEBAE80 +3AEBAEB0000000002EBAEBA0000000002BAEBAE0 +EBAEBAE800000000BAEBAEB800000000AEBAEBAC +2EBAEBA0000000002BAEBAE0000000003AEBAEB0 +0AEBAE80000000000EBAEB80000000000BAEBAC0 +03AEBA000000000002EBAE000000000002BAEB00 +00BAE8000000000000AEB8000000000000EBAC00 +002BA00000000000003AE00000000000002EB000 +000E800000000000000B800000000000000AC000 +0002000000000000000200000000000000030000 +# +# Title: ? +# Width: 72 +# Height: 74 +# Length: 5328 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAFBEFBEFBEFBEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEEAAAAA +AAAAABEFBEFBEFBEFBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAABFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEAAA +AAAFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBAAA +AAAFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFAAA +AAAFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEAAA +AAAFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAABFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEEAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 24 +# Height: 10 +# Length: 240 +# +00000003800000000000000EB00000000000003AE8000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +0000002BAC0000000000000EB000000000000002C0000000 +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF8EAA8AE88FFFFFFFFFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFF8EEEEA888A8AA8AAEEEEFEEFF8FFFFFFFF +FFFFF8FFFFFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF +FFFF89999999999FAAAAAAAAEEEEEF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +F89999999999998EAAAA8F88AEEEEF8FFFFFFFFF +899999999999AAEEAAA8FEFFAAEFFF8FFFFFFFFF +F8999999999A88EEAAA8FFEEAEEEEF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFF899998AA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFF8988EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFF888EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA888EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA888AAAAAAAAAAAEEEEF8FFFFFFFFF +FFFFFFF88EAAAAAAAAAAEAEEAEEFFF8FFFFFFFFF +FFFFFFFFF88EEEEEEEEEEEEEEEFFF88FFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999FFFFFF999999999999999999 +999999999999999FEAA8AEFF9999999999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +999999FEEEEA888A8AA8AAEEEEFEEFFF99999999 +99999FFFFFFFFFFFFFFFFFFFFFFFFFFF99999999 +99999F888888888FAAAAAAAAEEEEEFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +9F8888888888FF8EAAAA8F88AEEEEFF999999999 +F8888888888FAAEEAAA8FEFFAAEFFFF999999999 +9F88888888FA88EEAAA8FFEEAEEEEFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +9999F8888FAA88EEAAA8FFEEAEEEEFF999999999 +99999F8FFEAA88EEAAA8FEEEAAEFFFF999999999 +999999FFFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA888EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA888AAAAAAAAAAAEEEEFF999999999 +9999999FFEAAAAAAAAAAEAEEAEEFFFF999999999 +999999999FFEEEEEEEEEEEEEEEFFFFF999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999999999999999999999999999999999 +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FF88888888888888888888888888888888888FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FDDDDDBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDDDBBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDBBBBBBFF8FCCCCCEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCCEEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCEEEEEF8FAAA99999F8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FBBBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FCCCCAAAFF8FCCCCCDDDF8FCCCBBBBBF8FFF +FF88FCCCCAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99999B9FF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99BBBB9FF8FDAAAAAAAF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEE99FF8FEEEEBBBBF8FDDDDDDDDF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9F99999999999999999999999999999999999FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FDDDDDBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDDDBBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDBBBBBBFF9FCCCCCEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCCEEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCEEEEEF9FAAA99999F9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FBBBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FCCCCAAAFF9FCCCCCDDDF9FCCCBBBBBF9FF9 +9F99FCCCCAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99999B9FF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99BBBB9FF9FDAAAAAAAF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEE99FF9FEEEEBBBBF9FDDDDDDDDF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9999999999999999999999999999999999999999 +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFF88EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8888FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFFF8EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FFFF99999999999FEFF99999999999 +9999999999999999999999999FEFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999FFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEEFFFFF +FFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAEFFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEFFF +FFFFFFFEEAAAAAAAAAAAAAAAAAAAAAAEAAAAEFFF +FFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEAAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEEFFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEFFFFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAEFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEFFFFFFFFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEFFFFFFFFFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +999999999999FFFFFFFFFFFFFFFFFFFFFFF99999 +99999999999FAAAAAAAAAAAAAAAAAAAAAAAF9999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +999999999FFFFFFFFFFFFFFFFFFFFFFAAAAAF999 +9999999FFAAAAAAAAAAAAAAAAAAAAAAFAAAAF999 +999999FAAAAAAAAAAAAAAAAAAAAAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +9999FAAAAAAAAAAAAAAAAAAAAAAFFAAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFF99999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFF999999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAF99999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAF9999999999 +9999FAAAAAAAAAAAAAAAAAAAAAAFF99999999999 +99999FFFFFFFFFFFFFFFFFFFFFF9999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Locked +# Width: 12 +# Height: 24 +# Length: 288 +# +999999999999999999999999 +99999999FFEEEFF999999999 +9999999FEEFFFEEF99999999 +9999999EEF999FEE99999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9FFFFF9FF9999999 +999999FFFEEEEEFFF9999999 +999999FEEEDDDEEEF9999999 +99999FEEEEFFFEEEEF999999 +9999FEEEFFF8FFFEEEF99999 +9999FEEFFFFFFFFFEEF99999 +9999EEEFFFFFFFFFEEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF88AFFFFEE99999 +9999EEFFFF8AEFFFFEE99999 +9999FEEFFFFFFFFF8EF99999 +99999FEFFFFFFFFFEF999999 +999999FEFFF8FFFEF9999999 +9999999EEEFFF8EE99999999 +999999999FFFFF9999999999 +999999999999999999999999 +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000B00000 +000000000000000000000000000000000BBB0000 +00000000000000000000000000000000BBBBB000 +0000000000000000000000000000000BBBBBBB00 +000000000000000000000000000000BBBBBBBBB0 +0000000000000000000000000000000BBBBBBB00 +00000000000000000000000000000000BBBBB000 +000000000000000000000000000000000BBB0000 +0000000000000000000000000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +00000000000000000000B0000000000000B00000 +0000000000000000000BBB00000000000BBB0000 +000000000000000000BBBBB000000000BBBBB000 +00000000000000000BBBBBBB0000000BBBBBBB00 +0000000000000000BBBBBBBBB00000BBBBBBBBB0 +00000000000000000BBBBBBB0000000BBBBBBB00 +000000000000000000BBBBB000000000BBBBB000 +0000000000000000000BBB00000000000BBB0000 +00000000000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +000000B0000000000000B0000000000000B00000 +00000BBB00000000000BBB00000000000BBB0000 +0000BBBBB000000000BBBBB000000000BBBBB000 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +00BBBBBBBBB00000BBBBBBBBB00000BBBBBBBBB0 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +0000BBBBB000000000BBBBB000000000BBBBB000 +00000BBB00000000000BBB00000000000BBB0000 +000000B0000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAABEFBEFBEFBEFBEFBEFBEAAAAEB +AEAAAAFBEFBEFBEFBEFBEFBEFBAAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAABBEFBEFBEFBEFBEFBEFBEEAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBAEABAE BAEAFAAFBEFBEFBEFBEFBEFBEEBEAABA EBABEFAEFBEFBEFBEFBEFBEFBAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEEBEFABAE BAEAFBEABEFBEFBEFBEFBEFBAFBEEABA EBABEFBEBBEFBEFBEFBEFBEEBEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBAFBEFABAE BAEAFBEFAAFBEFBEFBEFBEEBEFBEEABA EBABEFBEFAEFBEFBEFBEFBEFBEFBEAEB +AEABBEFBEEBEFBAFBEFBEFBEFBEFABAE BAEAFBEFBEABEEBEFBEFBEFBEFBEEABA EBABEFBEFBEFAABBEFBEFBEFBEFBEAEB +AEABBEFBEFBEAAAFBEFBEFBEFBEFABAE BAEAFBEFBEFAAABEAAEAAAFBEFBEEABA EBABEFBEFBEFAABBAABAABEFBEFBEAEB +AEABBEFBEFBEEAAFAAEAAFBEFBEFABAE BAEAFBEFBEFBEABEEAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFBEABEFBEFBEFABAE BAEAFBEFBEFBEABEFAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFAAFAAFBEFBEFABAE BAEAFBEFBEEBEABEAAEAAEFBEFBEEABA EBABEFBEFBAFAABAABBEABEFBEFBEAEB +AEABBEFBEEBEFBEFBEFBEFAEFBEFABAE BAEAFBEFBAFBEFBEFBEFBEEBEFBEEABA EBABEFBEEBEFBEFBEFBEFBEABEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBEBBEFABAE BAEAFBEEBEFBEFBEFBEFBEFBAFBEEABA EBABEFBAFBEFBEFBEFBEFBEFAAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEFAEFABAE BAEAFBAFBEFBEFBEFBEFBEFBEEBEAABA EBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBEAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAAABEFBEFBEFBEFBEFBEFBEEAAAEB +AEAAAABBEFBEFBEFBEFBEFBEFBAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Normal +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAABEFBEFBEFBEFBEFBEFBEAAAAEE +FEAAAAFBEFBEFBEFBEFBEFBEFBAAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAABBEFBEFBEFBEFBEFBEFBEEAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBAEABAB EAEAFAAFBEFBEFBEFBEFBEFBEEBEAABF BBABEFAEFBEFBEFBEFBEFBEFBAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEEBEFABAB EAEAFBEABEFBEFBEFBEFBEFBAFBEEABF BBABEFBEBBEFBEFBEFBEFBEEBEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBAFBEFABAB EAEAFBEFAAFBEFBEFBEFBEEBEFBEEABF BBABEFBEFAEFBEFBEFBEFBEFBEFBEAEE +FEABBEFBEEBEFBAFBEFBEFBEFBEFABAB EAEAFBEFBEABEEBEFBEFBEFBEFBEEABF BBABEFBEFBEFAABBEFBEFBEFBEFBEAEE +FEABBEFBEFBEAAAFBEFBEFBEFBEFABAB EAEAFBEFBEFAAABEAAEAAAFBEFBEEABF BBABEFBEFBEFAABBAABAABEFBEFBEAEE +FEABBEFBEFBEEAAFAAEAAFBEFBEFABAB EAEAFBEFBEFBEABEEAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFBEABEFBEFBEFABAB EAEAFBEFBEFBEABEFAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFAAFAAFBEFBEFABAB EAEAFBEFBEEBEABEAAEAAEFBEFBEEABF BBABEFBEFBAFAABAABBEABEFBEFBEAEE +FEABBEFBEEBEFBEFBEFBEFAEFBEFABAB EAEAFBEFBAFBEFBEFBEFBEEBEFBEEABF BBABEFBEEBEFBEFBEFBEFBEABEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBEBBEFABAB EAEAFBEEBEFBEFBEFBEFBEFBAFBEEABF BBABEFBAFBEFBEFBEFBEFBEFAAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEFAEFABAB EAEAFBAFBEFBEFBEFBEFBEFBEEBEAABF BBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBEAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAAABEFBEFBEFBEFBEFBEFBEEAAAEE +FEAAAABBEFBEFBEFBEFBEFBEFBAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Zoom +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEEABAE BAEAABAFBEFBEFBEFBEFBEFBEABAEABA EBABEBAEFBEFBEFBEFBEFBEFBAEBEAEB +AEABBAABEFBEFBEFBEFBEFBEFAAFABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAAAAAAAAAAAAAAAAAAAAABEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEFFEBAEBAEBAEAFABAE BAEAFABAEBAEBBFFFEBAEBAEBABEEABA EBABEEABAFFAEFFFFEEBAEBAEABBEAEB +AEABBEAEBBEBAFFBFFAEBAEBAEAFABAE BAEAFABAEBEEBFEBFEBFFBFFFABEEABA EBABEEABAFFAEBEFFEEFFEFFEABBEAEB +AEABBEAFFFFFEEBFFBAFFBFFAEAFABAE BAEAFABBFFFFFAFFFEBBFFFEBABEEABA EBABEEABAFFAEBBFFAEBFFFAEABBEAEB +AEABBEAEBBEBAEFFEBAEBFEBAEAFABAE BAEAFABAEBEEBAFFAEBAFFFEBABEEABA EBABEEABAFFAEBFEBAEBFFFAEABBEAEB +AEABBEAEBAEBAFFFFFAFFAFFAEAFABAE BAEAFABAEBAEBFFFFEBFFBFFBABEEABA EBABEEABAEBAFFFFFEFFEEBFEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAAAAAAAAAAAAAAAAAAAAABABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAEFBEFBEFBEFBEFBEFBAABEAEB +AEABBAABEFBEFBEFBEFBEFBEFAEBABAE BAEAEBAFBEFBEFBEFBEFBEFBEABAEABA EBABAFBEFBEFBEFBEFBEFBEFBEFAAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEFABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Zoom +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEEABAB EAEAABAFBEFBEFBEFBEFBEFBEABAEABF BBABEBAEFBEFBEFBEFBEFBEFBAEBEAEE +FEABBAABEFBEFBEFBEFBEFBEFAAFABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAAAAAAAAAAAAAAAAAAAAABEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEFFEBAEBAEBAEAFABAB EAEAFABAEBAEBBFFFEBAEBAEBABEEABF BBABEEABAFFAEFFFFEEBAEBAEABBEAEE +FEABBEAEBBEBAFFBFFAEBAEBAEAFABAB EAEAFABAEBEEBFEBFEBFFBFFFABEEABF BBABEEABAFFAEBEFFEEFFEFFEABBEAEE +FEABBEAFFFFFEEBFFBAFFBFFAEAFABAB EAEAFABBFFFFFAFFFEBBFFFEBABEEABF BBABEEABAFFAEBBFFAEBFFFAEABBEAEE +FEABBEAEBBEBAEFFEBAEBFEBAEAFABAB EAEAFABAEBEEBAFFAEBAFFFEBABEEABF BBABEEABAFFAEBFEBAEBFFFAEABBEAEE +FEABBEAEBAEBAFFFFFAFFAFFAEAFABAB EAEAFABAEBAEBFFFFEBFFBFFBABEEABF BBABEEABAEBAFFFFFEFFEEBFEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAAAAAAAAAAAAAAAAAAAAABABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAEFBEFBEFBEFBEFBEFBAABEAEE +FEABBAABEFBEFBEFBEFBEFBEFAEBABAB EAEAEBAFBEFBEFBEFBEFBEFBEABAEABF BBABAFBEFBEFBEFBEFBEFBEFBEFAAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEFABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Length: 48 +# +00000007 +00000007 +00000004 +00000005 +00000003 +00000004 +00000007 +00000004 +00000009 +00000007 +00000008 +00000008 +# +# Title: ? +# Length: +# +00000000000007E01FF81C38381C381C381C381C1C381FF807E0000000000000 +00000000000003801F801F80038003800380038003803FF83FF8000000000000 +0000000000000FE03FF03838003800F003E00F803E383FF83FF8000000000000 +0000000000000FE03FF03838003803F003F0003838383FF00FE0000000000000 +00000000000003E007E00EE01CE038E07FF87FF800E007F807F8000000000000 +0000000000003FF83FF838003FE03FF00078003878783FF00FC0000000000000 +00000000000007F01FF03C003BC07FF07C7878383C783FF00FC0000000000000 +0000000000003FF83FF8007000F000E001E001C003C003800780000000000000 +00000000000007E01FF81C381C380FF01FF8381C381C1FF807E0000000000000 +00000000000007E01FF83C78383C3C7C1FFC07B800781FF01FC0000000000000 +0000000000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +0000000000007FF87FFE1C0E1C0E1FF81FFE1C0E1C0E7FFE7FF8000000000000 +00000000000007F61FFE3C0E78067000700078003C0E1FFE07F0000000000000 +0000000000007FE07FF81C3C1C1E1C0E1C0E1C1E1C3C7FF87FE0000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C001C007F807F80000000000000 +00000000000007F61FFE3C0E78007000703F783F3C0E1FFE07F0000000000000 +0000000000007E7E7E7E1C381C381FF81FF81C381C387E7E7E7E000000000000 +0000000000003FF83FF80380038003800380038003803FF83FF8000000000000 +00000000000007FE07FE0070007000707070707078F03FE01FC0000000000000 +0000000000007EFC7EFC1C701CE01FC01FE01DF01C7C7F3E7F3E000000000000 +0000000000007FC07FC00E000E000E000E000E060E067FFE7FFE000000000000 +000000000000F83EFC7E7C7C7EFC77DC77DC739C739CF93EF83E000000000000 +000000000000F8FEFCFE3E383F383FB83BF839F838F8FE78FE38000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0000000000007FF07FF81C3C1C1C1C3C1FF81FF01C007F007F00000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE01FFE1CFC0000 +0000000000007FF07FFC1C3C1C3C1FF81FF01CF01C787F3E7F1E000000000000 +0000000000001FEC7FFC701C70007FF01FFC001C701C7FFC6FF0000000000000 +0000000000007FFC7FFC739C739C03800380038003803FF83FF8000000000000 +0000000000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +000000000000FEFEFEFE38381C701C700EE00EE007C007C00380000000000000 +000000000000FC3FFC3F718E718E3BDC3BDC3FFC1E781C381C38000000000000 +0000000000007F7E7F7E1E380FF007C003E00FF01C787EFE7EFE000000000000 +0000000000007EFC7EFC1C700EE007C007C0038003801FF01FF0000000000000 +0000000000003FFC3FFC38F839F003E007C00F9C1F1C3FFC3FFC000000000000 +000000000000000000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000000F800F8003BF03FFC3C1E380E380E3C1EFFFCFBF0000000000000 +000000000000000000000FDC3FFC783C70007000781C3FFC0FF0000000000000 +000000000000007C007C0FDC3FFC783C701C701C783C3FFF0FDF000000000000 +000000000000000000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +00000000000001FC07FC07003FF03FF00700070007003FF03FF0000000000000 +000000000000000000000FDF3FFF783C701C701C783C3FFC0FDC001C3FF81FF0 +000000000000F800F8003BF03FF83C38383838383838FEFEFEFE000000000000 +000000000380038000001F801F8003800380038003803FF83FF8000000000000 +0000000000E000E000003FE03FE000E000E000E000E000E000E001E03FC03F80 +0000000000007C007C001CF81CF81DE01F801FC01FF07CFC7C7C000000000000 +0000000000001F801F800380038003800380038003803FF83FF8000000000000 +00000000000000000000EF78FFFC739C739C739C739CFBDEFBDE000000000000 +00000000000000000000FBF0FFF83C38383838383838FEFEFEFE000000000000 +000000000000000000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +00000000000000000000FBF0FFFC3C1E380E380E3C1E3FFC3BF03800FF00FF00 +000000000000000000001FBE7FFEF078E038E038F0787FF81FB8003801FE01FE +000000000000000000003EF83FFE0F1E0E000E000E007FF07FF0000000000000 +000000000000000000001FB07FF070307FC01FF060707FF06FC0000000000000 +0000000000001C001C00FFF0FFF01C001C001C001C1C1FFC07F0000000000000 +00000000000000000000F8F8F8F838383838383838783FFE0FBE000000000000 +00000000000000007E7E7E7E1C381E780E7007E007E003C003C0000000000000 +00000000000000000000F83EF93E739C7BBC3FF83EF81C701C70000000000000 +000000000000000000007EFC7EFC1E700FC007E01CF07EFC7EFC000000000000 +000000000000000000007E7E7E7E1C380E700FE007C00380038007003FC03FC0 +000000000000000000003FF83FF831F003C007801F183FF83FF8000000000000 +00000000000003C003C003C003C003C001800180000003C003C0000000000000 +000000000000000000000000000000000000000003C003C003C0000000000000 +0000000000000FF01FF81C38003800F007C00700000007800780000000000000 +000000000000001C0038007000E001C0038007000E001C003800000000000000 +0000000000000000000003C003C003C00000000003C003C003C0000000000000 +00000000000007C00FE00E600F00079C1FD839F838F03FFC0FBC000000000000 +# +00000000000003C003C000000180018003C003C003C003C003C0000000000000 +0000000000000FC0006007E00C600C6007F00000000000000000000000000000 +00000000000007C00C600C600C600C6007C00000000000000000000000000000 +00000000000001E001E0000000E003E00F001C001C381FF80FF0000000000000 +0F0003C000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +0CC00CC000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +00000000000007F61FFE3C0E78067000700078003C0E1FFE07F001C007C00780 +078001E000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +01E0078000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +0F0003C000003FF83FF80380038003800380038003803FF83FF8000000000000 +07600DC00000F8FEFCFE3E383F383FB83BF839F838F8FE78FE38000000000000 +0F0003C000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0CC00CC000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0F0003C000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +0660066000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +00000000000007E00FF81C381C381DF01DF81C1C1C1C7DF87DF0000000000000 +000000000F0003C000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000660066000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000000000000000FDC3FFC783C70007000781C3FFC0FF003800F800F00 +000000000F0003C000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +0000000001E0078000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +000000001E00078000001F801F8003800380038003803FF83FF8000000000000 +0000000007600DC00000FBF0FFF83C38383838383838FEFEFEFE000000000000 +00000000078001E000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +000000000660066000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +000000000F0003C00000F8F8F8F838383838383838783FFE0FBE000000000000 +000000000CC00CC00000F8F8F8F838383838383838783FFE0FBE000000000000 +00000000000001E001C003800300000000000000000000000000000000000000 +000000000000000000000000000000000000000003C003800700060000000000 +000000000000000000000000000007C007C00000000000000000000000000000 +0000000001E0078000001F801F8003800380038003803FF83FF8000000000000 +0000000001E0078000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +0000000003C00F0000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000007C01EF0783C0000F8F8F8F838383838383838783FFE0FBE000000000000 +# +# Text: / +# +2F 00 +# +# Text: : +# +3A 00 +# +# Text: am +# +61 6D 00 +# +# Text: pm +# +70 6D 00 +# +# Text: No pictures in camera. +# +41 75 63 75 6E 65 20 69 6D 61 67 65 0A 64 61 6E 73 20 6C 9B 61 70 70 61 72 65 69 6C 0A 00 +# +# Text: Yes +# +4F 75 69 00 +# +# Text: No +# +4E 6F 6E 00 +# +# Text: . +# +2E 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Lock? +# +56 65 72 72 6F 75 69 6C 6C 65 72 3F 00 +# +# Text: Unlock? +# +44 94 76 65 72 72 6F 75 69 6C 6C 65 72 3F 00 +# +# Text: Erase? +# +45 66 66 61 63 65 72 3F 00 +# +# Text: View Small Photos? +# +41 66 66 69 63 68 65 72 0A 70 6C 61 6E 63 68 65 0A 63 6F 6E 74 61 63 74 3F 00 +# +# Text: View Full screen? +# +00 +# +# Text: Set Screen Brightness? +# +52 94 67 6C 65 72 0A 6C 75 6D 69 6E 6F 73 69 74 94 0A 94 63 72 61 6E 3F 00 +# +# Text: Start Slide Show? +# +44 94 66 69 6C 65 6D 65 6E 74 0A 61 75 74 6F 3F 00 +# +# Text: Stop Slide Show? +# +00 +# +# Text: Set Camera Exposure? +# +52 94 67 6C 65 72 0A 65 78 70 6F 73 69 74 69 6F 6E 0A 61 70 70 61 72 65 69 6C 3F00 +# +# Text: Format Memory Card? +# +46 6F 72 6D 61 74 65 72 0A 63 61 72 74 65 0A 6D 94 6D 6F 69 72 65 3F 00 +# +# Text: Set Date & Time? +# +52 94 67 6C 65 72 0A 64 61 74 65 0A 65 74 20 68 65 75 72 65 3F 00 +# +# Text: Set for NTSC TV? +# +43 6F 6E 66 69 67 20 54 56 0A 4E 54 53 43 3F 00 +# +# Text: Set for PAL TV? +# +43 6F 6E 66 69 67 20 54 56 0A 50 41 4C 3F 00 +# +# Text: Review Pictures? +# +52 65 76 6F 69 72 0A 70 68 6F 74 6F 73 3F 00 +# +# Text: Take Pictures? +# +50 72 65 6E 64 72 65 20 70 68 6F 74 6F 3F 00 +# +# Text: +# +00 +# +# Text: One +# +55 6E 65 0A 20 20 20 20 20 00 +# +# Text: None +# +4E 6F 6E 0A 20 20 20 20 20 00 +# +# Text: All +# +54 74 65 73 0A 20 20 20 20 20 00 +# +# Text: +# +00 +# +# Text: ERASE? +# +45 66 66 61 63 65 72 3F 00 +# +# Text: Erase This Picture? +# +45 66 66 61 63 65 72 0A 63 65 74 74 65 0A 70 68 6F 74 6F 3F 00 +# +# Text: Cancel Picture Erase? +# +41 6E 6E 75 6C 65 72 0A 65 66 66 61 63 65 6D 65 6E 74 0A 70 68 6F 74 6F 3F 00 +# +# Text: Erase All Pictures? +# +45 66 66 61 63 65 72 0A 74 6F 75 74 65 73 0A 70 68 6F 74 6F 73 3F 00 +# +# Text: Erasing picture... +# +45 66 66 61 63 65 6D 65 6E 74 0A 70 68 6F 74 6F 2E 2E 2E 00 +# +# Text: Picture is LOCKED Unlock before erasing +# +50 68 6F 74 6F 0A 76 65 72 72 6F 75 69 6C 6C 94 65 2E 0A 44 94 76 65 72 72 6F 75 69 6C 6C 65 0A 61 76 61 6E 74 20 64 9B 65 66 66 61 63 65 72 2E 00 +# +# Text: Erase ALL pictures? +# +45 66 66 61 63 65 72 0A 54 4F 55 54 45 53 0A 70 68 6F 74 6F 73 3F 00 +# +# Text: Erasing ALL pictures... +# +45 66 66 61 63 65 6D 65 6E 74 0A 54 4F 55 54 45 53 0A 70 68 6F 74 6F 73 2E 2E 2E 00 +# +# Text: Normal? +# +4E 6F 72 6D 61 6C 3F 00 +# +# Text: Zoom? +# +5A 6F 6F 6D 3F 00 +# +# Text: Set Screen Brightness +# +52 94 67 6C 65 72 0A 6C 75 6D 69 6E 6F 73 69 74 94 20 94 63 72 61 6E 00 +# +# Text: Set Camera Exposure +# +52 94 67 6C 65 72 20 65 78 70 6F 73 69 74 69 6F 6E 0A 61 70 70 61 72 65 69 6C 00 +# +# Text: Formatting resets the memory card and erases all photos on it. Format? +# +4C 65 20 66 6F 72 6D 61 74 61 67 65 0A 72 94 69 6E 69 74 69 61 6C 69 73 65 0A 6C 61 20 63 61 72 74 65 20 6D 94 6D 6F 69 72 65 0A 65 74 20 65 66 66 61 63 65 20 74 6F 75 74 65 73 0A 6C 65 73 20 70 68 6F 74 6F 73 2E 0A 46 6F 72 6D 61 74 65 72 3F 00 +# +# Text: Formatting the memory card..... +# +46 6F 72 6D 61 74 61 67 65 0A 64 65 20 6C 61 0A 63 61 72 74 65 20 6D 94 6D 6F 69 72 65 2E 2E 2E 00 +# +# Text: Set for PAL TV? +# +43 6F 6E 66 69 67 20 54 56 0A 50 41 4C 3F 00 +# +# Text: Set for NTSC TV? +# +43 6F 6E 66 69 67 20 54 56 0A 4E 54 53 43 3F 00 +# +# Text: +# +00 +# +# Text: This pict +# +43 65 74 74 65 0A 70 68 6F 74 6F 00 +# +# Text: No +# +4E 6F 6E 00 +# +# Text: ALL pict +# +54 4F 55 54 45 53 0A 70 68 6F 74 6F 73 00 +# +# Text: January +# +4A 61 6E 76 69 65 72 00 +# +# Text: February +# +46 94 76 72 69 65 72 00 +# +# Text: March +# +4D 61 72 73 00 +# +# Text: April +# +41 76 72 69 6C 00 +# +# Text: May +# +4D 61 69 00 +# +# Text: June +# +4A 75 69 6E 00 +# +# Text: July +# +4A 75 69 6C 6C 65 74 00 +# +# Text: August +# +41 6F A1 74 00 +# +# Text: September +# +53 65 70 74 65 6D 62 72 65 00 +# +# Text: October +# +4F 63 74 6F 62 72 65 00 +# +# Text: November +# +4E 6F 76 65 6D 62 72 65 00 +# +# Text: December +# +44 94 63 65 6D 62 72 65 00 +# +# Text: Day +# +4A 6F 75 72 00 +# +# Text: Month +# +4D 6F 69 73 00 +# +# Text: Year +# +41 6E 6E 94 65 00 +# +# Text: Time +# +48 65 75 72 65 00 +# +# Text: AM +# +41 4D 00 +# +# Text: PM +# +50 4D 00 +# +# Text: Set Date and Time +# +20 20 44 61 74 65 20 26 20 68 65 75 72 65 00 +# +# Text: Is this correct? +# +45 73 74 9D 63 65 20 63 6F 72 72 65 63 74 3F 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Service Menu +# +20 20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 20 20 00 +# +# Text: P +# +50 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: S +# +53 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service ID +# +53 65 72 76 69 63 65 20 49 44 20 20 20 20 20 20 20 00 +# +# Text: Ver +# +56 65 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service Menu 2 +# +20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 32 20 20 00 +# +# Text: Reset Pictures +# +52 65 73 65 74 20 50 69 63 74 75 72 65 73 20 20 20 00 +# +# Text: Reset Strobe Pict +# +52 65 73 65 74 20 53 74 72 6F 62 65 20 50 69 63 74 00 +# +# Text: Reset Born OnDate +# +52 65 73 65 74 20 42 6F 72 6E 20 4F 6E 44 61 74 65 00 +# +# Text: Reset FactoryDflt +# +52 65 73 65 74 20 46 61 63 74 6F 72 79 44 66 6C 74 00 +# +# Text: Are You Sure? +# +41 72 65 20 59 6F 75 20 53 75 72 65 3F 00 +# +# Text: Reset to 0 +# +52 65 73 65 74 20 74 6F 20 30 00 +# +# Text: S . +# +53 20 20 2E 20 20 00 +# +# Text: M . +# +4D 20 20 2E 20 20 00 +# +# Text: Yes +# +59 65 73 00 +# +# Text: No +# +4E 6F 00 +# +# Text: +# +00 +# +# Text: BornOnDate +# +42 6F 72 6E 4F 6E 44 61 74 65 20 20 20 20 20 20 20 00 +# +# Text: FinalErrCode +# +46 69 6E 61 6C 45 72 72 43 6F 64 65 20 20 20 20 20 00 +# +# Text: ResetFinalErrCode +# +52 65 73 65 74 46 69 6E 61 6C 45 72 72 43 6F 64 65 00 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/german b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/german new file mode 100644 index 00000000..4e1ae3fb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/german @@ -0,0 +1,2339 @@ +################################################################################ +# LOCALIZATION FOR HP PhotoSmart C30 # +# ---------------------------------- # +# This file (except the comments) will be sent to the camera (0x9200 command). # +# In order to make the data readable for humans, I commented the data and # +# formatted to some extend. # +# # +# SYMBOLS # +# ------- # +# Each symbol begins with a red pixel in the upper left corner, followed by a # +# yellow one, then by a blue one. The headline "red" does simply indicate that # +# those are lines beginning with a red pixel. The same with headline "yellow" # +# and headline "blue". The brightness of each pixel is defined by a value # +# ranging between A (dark) and F (bright). # +################################################################################ +# +# Variable: KC_LOCALIZE_CARDREV +# Value: 0x00 0x02 +# Length: 32 +# +4B 43 5F 4C 4F 43 41 4C 49 5A 45 5F 43 41 52 44 52 45 56 3A 00 02 FF FF FF FF FF FF FF FF FF FF +# +# Variable: LOCALIZATION +# Length: 16 +# +4C 4F 43 41 4C 49 5A 41 54 49 4F 4E FF FF FF FF +# +# Variable: LNG +# Value: 0x00 +# Length: 5 +# Explanation: Indicator for language. Known values are: +# - 0x00: English +# - 0x01: French +# - 0x02: Spanish +# - 0x04: German +# - 0x05: Japanese +# - 0x06: Korean +# +4C 4E 47 3A 04 +# +# Variable: TV +# Value: 0x01 +# Length: 4 +# Explanation: Format of TV output. Accepted values are: +# - 0x00: NTSC +# - 0x01: PAL +# - 0x02: Do not display TV menu. +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the format of the TV output. +# +54 56 3A 01 +# +# Variable: DT +# Value: 0x01 +# Length: 7 +# Explanation: Date format. Accepted values are: +# - 0x00: Month/Day/Year +# - 0x01: Day/Month/Year +# - 0x02: Year/Month/Day +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the date format. +# +44 54 3A 01 FF FF FF +# +# Variable: DST +# Value: 0x00 0x86 0x00 0x00 +# Length: 16 +# +44 53 54 3A 00 86 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SIZ +# Value: 0x00 0x01 0x00 0x00 +# Length: 16 +# +53 49 5A 3A 00 01 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SUM: +# Value: 0xe9 +# Length: 8 +# Explanation: Sum of all bytes starting with the table of contents. The camera +# won't check this number. +# +53 55 4D 3A E9 FF FF FF +# +# Variable: CRC +# Value: 0x58 0xb6 +# Length: 8 +# Explanation: FCS (frame check sequence) of CRC (cyclic redundancy check). The +# camera will check this number. +# +43 52 43 3A 58 B6 FF FF +# +# Table of Contents (text entries only) +# +# One entry: 00 FE XX XX (XX XX is the memory address). +# +00 FE C8 C0 +00 FE C8 C2 +00 FE C8 C4 +00 FE C8 C7 +00 FE C8 CA +00 FE C8 E6 +00 FE C8 E9 +00 FE C8 EE +00 FE C8 F0 +00 FE C8 F1 +00 FE C8 F2 +00 FE C8 FB +00 FE C9 07 +00 FE C9 10 +00 FE C9 28 +00 FE C9 29 +00 FE C9 47 +00 FE C9 5D +00 FE C9 5E +00 FE C9 75 +00 FE C9 90 +00 FE C9 A9 +00 FE C9 C1 +00 FE C9 D8 +00 FE C9 E8 +00 FE C9 F8 +00 FE C9 F9 +00 FE CA 04 +00 FE CA 0F +00 FE CA 1A +00 FE CA 1B +00 FE CA 25 +00 FE CA 39 +00 FE CA 4F +00 FE CA 64 +00 FE CA 7E +00 FE CA AD +00 FE CA C2 +00 FE CA E1 +00 FE CA EB +00 FE CA F1 +00 FE CB 0E +00 FE CB 24 +00 FE CB 74 +00 FE CB 95 +00 FE CB AC +00 FE CB C4 +00 FE CB C5 +00 FE CB DA +00 FE CB DF +00 FE CB F4 +00 FE CB FB +00 FE CC 03 +00 FE CC 08 +00 FE CC 0E +00 FE CC 12 +00 FE CC 17 +00 FE CC 1C +00 FE CC 23 +00 FE CC 2D +00 FE CC 35 +00 FE CC 3E +00 FE CC 47 +00 FE CC 4B +00 FE CC 51 +00 FE CC 56 +00 FE CC 5B +00 FE CC 5E +00 FE CC 61 +00 FE CC 70 +00 FE CC 79 +00 FE CC 7A +00 FE CC 7B +00 FE CC 7C +00 FE CC 7D +00 FE CC 7E +00 FE CC 7F +00 FE CC 80 +00 FE CC 81 +00 FE CC 82 +00 FE CC 83 +00 FE CC 95 +00 FE CC A7 +00 FE CC B9 +00 FE CC CB +00 FE CC DD +00 FE CC EF +00 FE CD 01 +00 FE CD 13 +00 FE CD 25 +00 FE CD 37 +00 FE CD 45 +00 FE CD 50 +00 FE CD 57 +00 FE CD 5E +00 FE CD 62 +00 FE CD 65 +00 FE CD 66 +00 FE CD 78 +00 FE CD 8A +# +# Title: Take Pictures +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAABAEBAAAAAAAEBAEBAEBAEBAEBF BBAEAAABAABAEAAABAEBEEBAEBAEBAEE +FEBAABAAAAEAAEAAEBAFAEEBAEBAEBAB EAEAAEAAEBAABAABAEBEBAAEBAEBAEBF BBAEBAEBAABAEBAEBAFAEBBAEBAEBAEE +FEBAABAAAAEAAEAAEBEBAEBBAEBAEBAB EAEAAEAAEBAABAABAFAEBAEABAEBAEBF BBAEAAABAABAEBAEBEBAEBAEEBAEBAEE +FEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAB EAEBAABAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAAABFFFFFFFFFFAFFEBFFFFFFFEAABF BBAAFFFFFFFFFFFAFFEBFFFFFFFFEAEE +FEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAB EAABAEBAEFBEFBEFAAABEFBEEAAABEBF BAAEBAEBBEFBEFBAAAAABEFBEAAABAAE +FEBAEBAEFBEFBEEAAAAABBEFAAAAAEAB EAABAEBAEFBEFBAABFFAAFBEEAAABEBF BAAEBAEBBEFBEEABFFFEAAFBEAAABAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAAFFFFFEABEFBEFBEBF BAAEBAEBBEFBEABFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBABFFFFFEAEFBEFBEEAB EAABAEBAEFBEFABFFFFFEABEFBEFBEBF BAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAABFFFEABBEFBEFBEBF BAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAE +FEBAEBAEFBEFBEEAAAAABBEFBEFBEEAB EAABAEBAEFBEFBEAAAAAEFBEFBEFBEBF BAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Take Pictures +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAABAEBAAAAAAAEBAEBAEBAEBAEBA ABAEAAABAABAEAAABAEBEEBAEBAEBAEA +AEBAABAAAAEAAEAAEBAFAEEBAEBAEBAA AAEAAEAAEBAABAABAEBEBAAEBAEBAEBA ABAEBAEBAABAEBAEBAFAEBBAEBAEBAEA +AEBAABAAAAEAAEAAEBEBAEBBAEBAEBAA AAEAAEAAEBAABAABAFAEBAEABAEBAEBA ABAEAAABAABAEBAEBEBAEBAEEBAEBAEA +AEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAA AAEBAABAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAAABFFFFFFFFFFAFFEBFFFFFFFEAABA ABAAFFFFFFFFFFFAFFEBFFFFFFFFEAEA +AEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA AAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAA AAABAEBAEFBEFBEFAAABEFBEEAAABEBA AAAEBAEBBEFBEFBAAAAABEFBEAAABAAA +AEBAEBAEFBEFBEEAAAAABBEFAAAAAEAA AAABAEBAEFBEFBAABFFAAFBEEAAABEBA AAAEBAEBBEFBEEABFFFEAAFBEAAABAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAAFFFFFEABEFBEFBEBA AAAEBAEBBEFBEABFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBABFFFFFEAEFBEFBEEAA AAABAEBAEFBEFABFFFFFEABEFBEFBEBA AAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAABFFFEABBEFBEFBEBA AAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAA +AEBAEBAEFBEFBEEAAAAABBEFBEFBEEAA AAABAEBAEFBEFBEAAAAAEFBEFBEFBEBA AAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBEBAEBAEEBAEBAEE +FEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAB EAEBAEBAEAAABAABAEAEBAEEBAEBAEBF BBAEBAEBAABAABAEBAFAEBBAEBAEBAEE +FEBAEBAEBAEAAEAAEBABAEEBAEBAEBAB EAEBAEBAEAAAAAABAEBABBAEBAEBAEBF BBAEBAEBAABAEAAEBAEBEEBAEBAEBAEE +FEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAB EAEBAEBAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAE +FEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAB EABFFFFFFFFFFFFAFFEBFFFFFFFFFEBF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BABEFBEFBEFBEFBEFBEFBEFBEFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEEAEFBAAAAAAAAAAAAAABEABEBF BABEFBAABEFAEBAEBAEBAEBAAFAABAAE +FEBBEFAABBEAAEBAEBAEBAEBAEAAAEAB EAAFBEAAAFBABAEBAEBAEBAEABAABEBF BABEFBEABEFAEBAEBAEBAEBAAFAAFAAE +FEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEFBEABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAABBEAAEBAEBAEBAEBAEFBEEAB EAAFBEAAAFBABAEBAEBAEBAEABEFBEBF BABEFBAABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAEBAEBAEBAEBAAFBEFAAE +FEBBAABEAAEAAEBAEBAEBAEBAEFBEEAB EAAFAAFBAABABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAAAAAAAAAAAAAAFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBEBAEBAEEBAEBAEA +AEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAA AAEBAEBAEAAABAABAEAEBAEEBAEBAEBA ABAEBAEBAABAABAEBAFAEBBAEBAEBAEA +AEBAEBAEBAEAAEAAEBABAEEBAEBAEBAA AAEBAEBAEAAAAAABAEBABBAEBAEBAEBA ABAEBAEBAABAEAAEBAEBEEBAEBAEBAEA +AEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAA AAEBAEBAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAA +AEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAA AABFFFFFFFFFFFFAFFEBFFFFFFFFFEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA AABEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEEAEFBAAAAAAAAAAAAAABEABEBA AABEFBAABEFAEBAEBAEBAEBAAFAABAAA +AEBBEFAABBEAAEBAEBAEBAEBAEAAAEAA AAAFBEAAAFBABAEBAEBAEBAEABAABEBA AABEFBEABEFAEBAEBAEBAEBAAFAAFAAA +AEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEFBEABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAABBEAAEBAEBAEBAEBAEFBEEAA AAAFBEAAAFBABAEBAEBAEBAEABEFBEBA AABEFBAABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAEBAEBAEBAEBAAFBEFAAA +AEBBAABEAAEAAEBAEBAEBAEBAEFBEEAA AAAFAAFBAABABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAAAAAAAAAAAAAAFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: View Small Photos +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABAAAAAAAABAAAAAAAAEAAAAAAAAEBF BBFAAEBABAAFABEFBEFAAAEFBAEBAAEE +FEEABAEBEBAEAFBEFBEABABEFBAEABAB EABAEBABAEABAFFFEFBAEAFBEEBAAEBF BBFAAEBEBAAFABFFBEFAAAEFBAEBAAEE +FEEABABAEBAEAFFEFBAABABEFBAEABAB EABAEBEBAEABAEFBEFBAEAFBEFBAAEBF BBFAABAEBAAFABEFBAEAAAFBBEFBAAEE +FEEABEBAEBAEAFBEFBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEAAEAEBF BBFAEBAEBAAFABEFBAEAAAFBBAABAAEE +FEEAAEBAEBAEAFBAEBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEFBEAEBF BBFAAAAAAAAFAAAAAAAAAAAAAAAAAAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAABAEFBEAAABEFBEBAAAEBAEBAAAEE +FEBAEBAEFBABAFBEFAEABAAEBAEBABAB EAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBF BBAABAEFBEAAABEFBEBAAABBAEBAAAEE +FEBAFBEEFBABAFBEFAEABAFBBAEBABAB EAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBF BBAABEFFBEAAAAEBBEFAAABEFEBAAAEE +FEBAFBEEFBABABAEFBEABAFBEAEBABAB EAEABAEBEFAEAEBAEFBAEAEFBBAEAEBF BBAAEBAFBEAAAAEBBEFAAABEFEBAAAEE +FEBAAEBEFBABABAEFBEABAFBEFEBABAB EAEABAEBEFAEAEBAEFBAEAEFBEAEAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAAEFBEFAAAAABEFBEAAABEFBEBAAEE +FEBABFFBEBABABFBEFBABAFBEFAEABAB EAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBF BBAAEFBEBBAAAABEFFEAAABEFBEBAAEE +FEBABEBAEFABABFBEFBABAFBBEAEABAB EAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABAFBBEAEABAB EAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABABAEBAEABAB EAEAAEBABEAEAAEBBAEAEAEBAEBAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: View Small Photos +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABAAAAAAAABAAAAAAAAEAAAAAAAAEBA ABFAAEBABAAFABEFBEFAAAEFBAEBAAEA +AEEABAEBEBAEAFBEFBEABABEFBAEABAA AABAEBABAEABAFFFEFBAEAFBEEBAAEBA ABFAAEBEBAAFABFFBEFAAAEFBAEBAAEA +AEEABABAEBAEAFFEFBAABABEFBAEABAA AABAEBEBAEABAEFBEFBAEAFBEFBAAEBA ABFAABAEBAAFABEFBAEAAAFBBEFBAAEA +AEEABEBAEBAEAFBEFBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEAAEAEBA ABFAEBAEBAAFABEFBAEAAAFBBAABAAEA +AEEAAEBAEBAEAFBAEBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEFBEAEBA ABFAAAAAAAAFAAAAAAAAAAAAAAAAAAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAABAEFBEAAABEFBEBAAAEBAEBAAAEA +AEBAEBAEFBABAFBEFAEABAAEBAEBABAA AAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBA ABAABAEFBEAAABEFBEBAAABBAEBAAAEA +AEBAFBEEFBABAFBEFAEABAFBBAEBABAA AAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBA ABAABEFFBEAAAAEBBEFAAABEFEBAAAEA +AEBAFBEEFBABABAEFBEABAFBEAEBABAA AAEABAEBEFAEAEBAEFBAEAEFBBAEAEBA ABAAEBAFBEAAAAEBBEFAAABEFEBAAAEA +AEBAAEBEFBABABAEFBEABAFBEFEBABAA AAEABAEBEFAEAEBAEFBAEAEFBEAEAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAAEFBEFAAAAABEFBEAAABEFBEBAAEA +AEBABFFBEBABABFBEFBABAFBEFAEABAA AAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBA ABAAEFBEBBAAAABEFFEAAABEFBEBAAEA +AEBABEBAEFABABFBEFBABAFBBEAEABAA AAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABAFBBEAEABAA AAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABABAEBAEABAA AAEAAEBABEAEAAEBBAEAEAEBAEBAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Screen Brightness +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBABBAEBAEBAEBAEBAB EAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAEAEEBABBAFAEBAEEBAABAEAAEBAB EAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABAAEAEBAEBAEBAEEAEBBAEBAB EAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAB EAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEABAEBAB EAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBF BBAEAEFAEBEFBEFFFFBEFBEEBAABBAEE +FEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAB EAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAB EABAEBAEBEFBEFFFFFFFBEFBEEBAEBBF BAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAE +FEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAB EAEBABAEBEFBEFFFFFFFBEFBEEBAAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAAAEBEFBEFBFFFFFBEFBEEBAABBAB EAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBF BBAEBAFAEBEFBEFFFFBEFBEEBAAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEBBAEBAB EAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAEBEFBEFBEFBEFBAEBBAEBAB EAEBAFAABAEBEFBEFBEFBEEBBABBAEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAEBABAEBAEBEFBEFBAEBAEABAEBAB EAEBAEAEBBABAEBAEBAEBBAFAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABBABBABAEBAEBBEABABBAEBAB EAEBAFBAEBEEBABAEBAAEAEEBABBAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAEBAEBABBAFBABBAEBAABAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Screen Brightness +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBABBAEBAEBAEBAEBAA AAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAEAEEBABBAFAEBAEEBAABAEAAEBAA AAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABAAEAEBAEBAEBAEEAEBBAEBAA AAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAA AAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEABAEBAA AAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBA ABAEAEFAEBEFBEFFFFBEFBEEBAABBAEA +AEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAA AAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAA AABAEBAEBEFBEFFFFFFFBEFBEEBAEBBA AAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAA +AEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAA AAEBABAEBEFBEFFFFFFFBEFBEEBAAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAAAEBEFBEFBFFFFFBEFBEEBAABBAA AAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBA ABAEBAFAEBEFBEFFFFBEFBEEBAAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEBBAEBAA AAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAEBEFBEFBEFBEFBAEBBAEBAA AAEBAFAABAEBEFBEFBEFBEEBBABBAEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAEBABAEBAEBEFBEFBAEBAEABAEBAA AAEBAEAEBBABAEBAEBAEBBAFAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABBABBABAEBAEBBEABABBAEBAA AAEBAFBAEBEEBABAEBAAEAEEBABBAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAEBAEBABBAFBABBAEBAABAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Date & Time +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEABAFBEFAEFBAFBEFBAFBEFBABF BBAEFBAFAEFBEABEEBEFBEFAEFBEFAEE +FEABEFAEABEFBAFBAFBEFBEABEFBEAAB EAAFBEABAFBEFAEEBEFBEFBAFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEABAFAEFBEFBAFBEFBEFBEFBAFAEE +FEABAFAEABEFBEFAEFBEFBEFBEEBEAAB EAAFAEABAFBEFBEABEFBEFBEFBAFBABF BBAEABAFAEFBEFBAFBEFBEFBEEBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBAFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFAEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEABEFBEFBEFAAABABF BBAEAAAFBEFBEFBAFBEFBEFBEAAAFAEE +FEABAFAEFBEFBEFAEFBEFBEFBEFAEAAB EAAFAEABEFBEFBEABEFBEFBEFBEABABF BBAEAAAFBAAAAAAAABEFBEFBEFAAFAEE +FEABAAAEFAAAAAAAAFBEFBEFBEAAEAAB EAAFBEABEFBEFBEABEFBEFBEFBEABABF BBAEFBAFBEFBEFBAFBEFBEFBEFBAFAEE +FEABEFAEFBEFBEFAEFBEFBEFBAAAEAAB EAAFBEABEFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEABAFAEE +FEABAFAEFBEFBEFBEFBEFBEFBAFAEAAB EAAFAEABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEAAAFAEE +FEABAAAEFBEFBEFBEFBEFBEFBAAAEAAB EAAFAEABEAAAFBEFAEFBEFAAFBEABABF BBAEABAFBAAAEFBEABEFBEAAEFBAFAEE +FEABAAAEFBEABEFBAFBEFBAFBEFBEAAB EAAFAAABEFBAFBEFAEFBEFAEFBEFBABF BBAEFBEFBEFAEFBEAAAFBEAAAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAEABEFBEABEFBABF BBAEFBEFBEFAEFBEABAFBEFBAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAAABEFAAABEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Date & Time +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEABAFBEFAEFBAFBEFBAFBEFBABA ABAEFBAFAEFBEABEEBEFBEFAEFBEFAEA +AEABEFAEABEFBAFBAFBEFBEABEFBEAAA AAAFBEABAFBEFAEEBEFBEFBAFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEABAFAEFBEFBAFBEFBEFBEFBAFAEA +AEABAFAEABEFBEFAEFBEFBEFBEEBEAAA AAAFAEABAFBEFBEABEFBEFBEFBAFBABA ABAEABAFAEFBEFBAFBEFBEFBEEBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBAFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFAEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEABEFBEFBEFAAABABA ABAEAAAFBEFBEFBAFBEFBEFBEAAAFAEA +AEABAFAEFBEFBEFAEFBEFBEFBEFAEAAA AAAFAEABEFBEFBEABEFBEFBEFBEABABA ABAEAAAFBAAAAAAAABEFBEFBEFAAFAEA +AEABAAAEFAAAAAAAAFBEFBEFBEAAEAAA AAAFBEABEFBEFBEABEFBEFBEFBEABABA ABAEFBAFBEFBEFBAFBEFBEFBEFBAFAEA +AEABEFAEFBEFBEFAEFBEFBEFBAAAEAAA AAAFBEABEFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEABAFAEA +AEABAFAEFBEFBEFBEFBEFBEFBAFAEAAA AAAFAEABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEAAAFAEA +AEABAAAEFBEFBEFBEFBEFBEFBAAAEAAA AAAFAEABEAAAFBEFAEFBEFAAFBEABABA ABAEABAFBAAAEFBEABEFBEAAEFBAFAEA +AEABAAAEFBEABEFBAFBEFBAFBEFBEAAA AAAFAAABEFBAFBEFAEFBEFAEFBEFBABA ABAEFBEFBEFAEFBEAAAFBEAAAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAEABEFBEABEFBABA ABAEFBEFBEFAEFBEABAFBEFBAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAAABEFAAABEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Erase +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBBFFAABAEBAEBAEBAEE +FEBAEBAEBAEBAABFEBAEBAEBAEBAEBAB EAEBAEBAAAAAAAAAAAAAAAAABAEBAEBF BBAEBAEAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEBAAABEEBEBAAFAAAAEAAABAEBAB EAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBF BBAEBAAAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEAAAAAAAAAAAAAAAAAAAAABAEBAB EAEBAABFFFFFABEFBEFBEBAABAEBAEBF BBAEABFFFFFEAFBEFBEFBEBAABAEBAEE +FEBABFFFFFFEBEFBEFBEFAEAAEBAEBAB EAEBFFFFFFEAFBEFAEBBEBAABAEBAEBF BBABFFFFFFEBEBBEAAEFBEBAABAEBAEE +FEBFFFFFFFAFAEFBABAEFAEAAEBAEBAB EABFFFFFFFAEBBEFAEBBEBAABAEBAEBF BBABFFFFFAFAEBBEAAEFBEBAABAEBAEE +FEAABFFFFAEFAEFBABAEFAEAAEBAEBAB EAEABFFFAFBEBBEFAEBBEBAABAEBAEBF BBAEABFFAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBFAABEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAAAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEAAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBAAAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAAABEBAABAEBAEBF BBAEBAEAAEFBEFBEFBEFBEAAABAEBAEE +FEBAEBAABBEFBEFBEFBEFAAAAEBAEBAB EAEBAEBAEFBEFBEFBEFBEAAABAEBAEBF BBAEBAEAAABAEBAEBAEBAAAAABAEBAEE +FEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAB EAEBAEBAEAAAAAAAAAAAAAAABAEBAEBF BBAEBAEBAAAAAAAAAAAAAAAAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Erase +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBBFFAABAEBAEBAEBAEA +AEBAEBAEBAEBAABFEBAEBAEBAEBAEBAA AAEBAEBAAAAAAAAAAAAAAAAABAEBAEBA ABAEBAEAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEBAAABEEBEBAAFAAAAEAAABAEBAA AAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBA ABAEBAAAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEAAAAAAAAAAAAAAAAAAAAABAEBAA AAEBAABFFFFFABEFBEFBEBAABAEBAEBA ABAEABFFFFFEAFBEFBEFBEBAABAEBAEA +AEBABFFFFFFEBEFBEFBEFAEAAEBAEBAA AAEBFFFFFFEAFBEFAEBBEBAABAEBAEBA ABABFFFFFFEBEBBEAAEFBEBAABAEBAEA +AEBFFFFFFFAFAEFBABAEFAEAAEBAEBAA AABFFFFFFFAEBBEFAEBBEBAABAEBAEBA ABABFFFFFAFAEBBEAAEFBEBAABAEBAEA +AEAABFFFFAEFAEFBABAEFAEAAEBAEBAA AAEABFFFAFBEBBEFAEBBEBAABAEBAEBA ABAEABFFAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBFAABEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAAAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEAAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBAAAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAAABEBAABAEBAEBA ABAEBAEAAEFBEFBEFBEFBEAAABAEBAEA +AEBAEBAABBEFBEFBEFBEFAAAAEBAEBAA AAEBAEBAEFBEFBEFBEFBEAAABAEBAEBA ABAEBAEAAABAEBAEBAEBAAAAABAEBAEA +AEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAA AAEBAEBAEAAAAAAAAAAAAAAABAEBAEBA ABAEBAEBAAAAAAAAAAAAAAAAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Camera Exposure +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEAABFFFFFEAAEBAEBAEBAB EAEBAEBAEBAEABFFFFFEABAEBAEBAEBF BBAEBAEBAEABFFFFFFFFFEAAEBAEBAEE +FEBAEBAEBAABFFFFFFFFFEABAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEBABFFFFFFFFFFFFFEABAEBAEE +FEBAEBAEABFFFFFFFFFFFFFEAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBAEBFFFFFFFFFFFFFFFEABAEBAB EAEBAEBABFFFFFFFFFFFFFFFEAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBABFFFFFEBEBEBFFFFFFEBAEBAB EAEBAEABFFFFFEBEBEBFFFFFFEABAEBF BBAEBAEBFFFFEBEBEBEABFFFFEAEBAEE +FEBAEBABFFFFEBEBEBEABFFFFEBAEBAB EAEBAEABFFFFEBFFFFFEBFFFFEABAEBF BBAEBAEBFFFFEBFFFFFEBFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBABFFFFEBFFFEBFFFFEAEBAEBF BBAEBAEABFFFFEBFFFEBFFFFEBAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBABFFFFEBFEBFFFFEABAEBAEE +FEBAEBAEABFFFFEBFEBFFFFEAEBAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBAEBFFFEBFEBFFFEAEBAEBAEE +FEBAEBAEBABFFFEBFEBFFFEBAEBAEBAB EAEBAEBAEBABFFEBFEBFFEAEBAEBAEBF BBAEBAEBAEABFFEBFEBFFEBAEBAEBAEE +FEBAEBAEBAEABFEBFEABEAEBAEBAEBAB EAEBAEBAEBAEBFEBFEABEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBAAAFBEAABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEABBEEAAAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAABAEBAEBAEBAB EAEBAEBAEBAEBAEAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Camera Exposure +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEAABFFFFFEAAEBAEBAEBAA AAEBAEBAEBAEABFFFFFEABAEBAEBAEBA ABAEBAEBAEABFFFFFFFFFEAAEBAEBAEA +AEBAEBAEBAABFFFFFFFFFEABAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEBABFFFFFFFFFFFFFEABAEBAEA +AEBAEBAEABFFFFFFFFFFFFFEAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBAEBFFFFFFFFFFFFFFFEABAEBAA AAEBAEBABFFFFFFFFFFFFFFFEAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBABFFFFFEBEBEBFFFFFFEBAEBAA AAEBAEABFFFFFEBEBEBFFFFFFEABAEBA ABAEBAEBFFFFEBEBEBEABFFFFEAEBAEA +AEBAEBABFFFFEBEBEBEABFFFFEBAEBAA AAEBAEABFFFFEBFFFFFEBFFFFEABAEBA ABAEBAEBFFFFEBFFFFFEBFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBABFFFFEBFFFEBFFFFEAEBAEBA ABAEBAEABFFFFEBFFFEBFFFFEBAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBABFFFFEBFEBFFFFEABAEBAEA +AEBAEBAEABFFFFEBFEBFFFFEAEBAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBAEBFFFEBFEBFFFEAEBAEBAEA +AEBAEBAEBABFFFEBFEBFFFEBAEBAEBAA AAEBAEBAEBABFFEBFEBFFEAEBAEBAEBA ABAEBAEBAEABFFEBFEBFFEBAEBAEBAEA +AEBAEBAEBAEABFEBFEABEAEBAEBAEBAA AAEBAEBAEBAEBFEBFEABEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBAAAFBEAABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEABBEEAAAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAABAEBAEBAEBAA AAEBAEBAEBAEBAEAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Format Memory Card +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEEFBEFBEFBEFBEFBEFBEFBEFBEFEE +FEBBBAAAAAAAAAAAAAAAAAAAAAAABEAB EAEEFAAFAEABAFAEABAFAEABAFAAFBBF BBBBAAAAAAAAAAAAAAAAAAAAAAABEFEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEABBF BBFAAAAAFFFFFFFFFFFFFFFFFFFFAFEE +FEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAB EABAABAAFFFFFFFFEFFFFFFFFFFEABBF BBFAAEAAFFFFFFFFABFFFFFFFFFFAFEE +FEEABAEAFFFFFFFEBAFFFFFFFFFFAEAB EABAAAAAFFFFFFFAFEBFFFFFFFFEABBF BBFAAAAAFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAAABFFFFFFAFABEBFFFFFFFFAEAB EABAAAABFFFFFEBEAAFAFFFFFFFEABBF BBFAAAABFFFFFAFAAABEBFFFFFFFAFEE +FEEAAAABFFFFEBEAAAAFAFFFFFFFAEAB EABAAAAFFFFFAFAAAAABEBFFFFFEABBF BBFAAAAFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAAAAFFFFAFAAAAAAABEBFFFFFAEAB EABAAAAFFFEBEAAAAAAAAFAFFFFEABBF BBFAAAAFFFAFAAAAAAAAABEBFFFFAFEE +FEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAB EABAAABFFAFAABFFEBFFFABEBFFEABBF BBFAAABFEBEAAFFFEBFFFAAFAFFFAFEE +FEEAAABFAFAABFAAABEAAAABEBFFAEAB EABAAABEBEAABEAAABEAAAAAFAFEABBF BBFAAAFAFAAABEAAABEAAAAABEBFAFEE +FEEAAAFEBEAABEAAABFFEAAAFAFFAEAB EABAAAFFAFAABEAAABFFEAABEBFEABBF BBFAAAFFEBEABEAAABEAAAAFAFFFAFEE +FEEAAAFFFAFABFAAABEAAABEBFFFAEAB EABAAAFFFEBEAFFFEBEAAAFAFFFEABBF BBFAABFFFFAFABFFEBEAABEBFFFFAFEE +FEEAABFFFFEBEAAAAAAAAFAFFFFFAEAB EABAABFFFFFAFAAAAAAABEBFFFFEABBF BBFAABFFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAABFFFFFFAFAAAAABEBFFFFFFAEAB EABAABFFFFFFEBEAAAAFAFFFFFFEABBF BBFAAFFFFFFFFAFAAABEBFFFFFFFAFEE +FEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAB EABAAFFFFFFFFFAFABEBFFFFFFFEABBF BBFAAFFFFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAB EABAAFFFFFFFFFFEBAFFFFFFFFFEABBF BBFABFFFFFFFFFFFABFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFEFFFFFFFFFFFAEAB EABABFFFFFFFFFFFFFFFFFFFFFFEABBF BBFABFFFFFFFFFFFFFFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFFFFFFFFFFFFFBEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEFBBF BBFBEFBEFBEFBEFBEFBEFBEFBEFBEEEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAB EAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Format Memory Card +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEEFBEFBEFBEFBEFBEFBEFBEFBEFEA +AEBBBAAAAAAAAAAAAAAAAAAAAAAABEAA AAEEFAAFAEABAFAEABAFAEABAFAAFBBA ABBBAAAAAAAAAAAAAAAAAAAAAAABEFEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEABBA ABFAAAAAFFFFFFFFFFFFFFFFFFFFAFEA +AEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAA AABAABAAFFFFFFFFEFFFFFFFFFFEABBA ABFAAEAAFFFFFFFFABFFFFFFFFFFAFEA +AEEABAEAFFFFFFFEBAFFFFFFFFFFAEAA AABAAAAAFFFFFFFAFEBFFFFFFFFEABBA ABFAAAAAFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAAABFFFFFFAFABEBFFFFFFFFAEAA AABAAAABFFFFFEBEAAFAFFFFFFFEABBA ABFAAAABFFFFFAFAAABEBFFFFFFFAFEA +AEEAAAABFFFFEBEAAAAFAFFFFFFFAEAA AABAAAAFFFFFAFAAAAABEBFFFFFEABBA ABFAAAAFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAAAAFFFFAFAAAAAAABEBFFFFFAEAA AABAAAAFFFEBEAAAAAAAAFAFFFFEABBA ABFAAAAFFFAFAAAAAAAAABEBFFFFAFEA +AEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAA AABAAABFFAFAABFFEBFFFABEBFFEABBA ABFAAABFEBEAAFFFEBFFFAAFAFFFAFEA +AEEAAABFAFAABFAAABEAAAABEBFFAEAA AABAAABEBEAABEAAABEAAAAAFAFEABBA ABFAAAFAFAAABEAAABEAAAAABEBFAFEA +AEEAAAFEBEAABEAAABFFEAAAFAFFAEAA AABAAAFFAFAABEAAABFFEAABEBFEABBA ABFAAAFFEBEABEAAABEAAAAFAFFFAFEA +AEEAAAFFFAFABFAAABEAAABEBFFFAEAA AABAAAFFFEBEAFFFEBEAAAFAFFFEABBA ABFAABFFFFAFABFFEBEAABEBFFFFAFEA +AEEAABFFFFEBEAAAAAAAAFAFFFFFAEAA AABAABFFFFFAFAAAAAAABEBFFFFEABBA ABFAABFFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAABFFFFFFAFAAAAABEBFFFFFFAEAA AABAABFFFFFFEBEAAAAFAFFFFFFEABBA ABFAAFFFFFFFFAFAAABEBFFFFFFFAFEA +AEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAA AABAAFFFFFFFFFAFABEBFFFFFFFEABBA ABFAAFFFFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAA AABAAFFFFFFFFFFEBAFFFFFFFFFEABBA ABFABFFFFFFFFFFFABFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFEFFFFFFFFFFFAEAA AABABFFFFFFFFFFFFFFFFFFFFFFEABBA ABFABFFFFFFFFFFFFFFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFFFFFFFFFFFFFBEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEFBBA ABFBEFBEFBEFBEFBEFBEFBEFBEFBEEEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAA AAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Lock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBF BBAEBAEBAAEAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEABEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Lock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBA ABAEBAEBAAEAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEABEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Unlock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAAAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEAAABAEBAEBAEABABAEBAEBAB EAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBF BBAEBAEBAEAAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEBAEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Unlock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAAAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEAAABAEBAEBAEABABAEBAEBAA AAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBA ABAEBAEBAEAAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEBAEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set for PAL / NTSC TV +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAABAEBAEBAEBAEBAABAEBAB EAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBF BBAEBAEBAEAAEBAEBAEBAEBAABAEBAEE +FEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAB EAEBAEBAEBAABAEBAEBAEBAABAEBAEBF BBAEBAEBAEBAABAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAABAEBAEBAABAEBAEBAB EAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBF BBAEBAEBAEBAEAAEBAEBAABAEBAEBAEE +FEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAB EAEBAEBAEBAEBAABAEBAABAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEABEFBEFBEFBEFBEFBEFBEFBEEAABF BBAAFBEFBEFBEFBEFBEFBEFBEFBAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAB EAEAAAAAAAAAAAAAAAAAAAAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAEAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAEBAEBAEBAEBAEBAEBAAAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEFBEBAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBAEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAAAAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set for PAL / NTSC TV +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAABAEBAEBAEBAEBAABAEBAA AAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBA ABAEBAEBAEAAEBAEBAEBAEBAABAEBAEA +AEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAA AAEBAEBAEBAABAEBAEBAEBAABAEBAEBA ABAEBAEBAEBAABAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAABAEBAEBAABAEBAEBAA AAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBA ABAEBAEBAEBAEAAEBAEBAABAEBAEBAEA +AEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAA AAEBAEBAEBAEBAABAEBAABAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEABEFBEFBEFBEFBEFBEFBEFBEEAABA ABAAFBEFBEFBEFBEFBEFBEFBEFBAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAA AAEAAAAAAAAAAAAAAAAAAAAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAEAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAEBAEBAEBAEBAEBAEBAAAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEFBEBAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBAEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAAAAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Start Slide Show +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAB EAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAAFBEFBEFBEFBEFBEFBEAAEE +FEBAEBAEBAEFBEFBEFBEFBEFBEFBABAB EAEBAEBAAFBEFBEFBEFBEFBEFBEFBABF BBAEBAEBAEFBEFBEFBEFBEFBEFBEFAEE +FEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAB EAEBAEBAAAAAAAAAAAAAAAAAABEFBABF BBAEBAAFBEFBEFBEFBEFBEFBEABEFAEE +FEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAB EAEBAAFBEFBEFBEFBEFBEFBEFBAFBABF BBAEBAEFBEFBEFBEFBEFBEFBEFAEFAEE +FEBAAAAAAAAAAAAAAAAAAAEFBEABEAAB EAEBAAAAAAAAAAAAAAAAAABEFBAFBABF BBAAFBEFBEFBEFBEFBEFBEABEFAEFAEE +FEBAEFBEFBEFBEFBEFBEFBAFBEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEFBEFBEFBEFBEFBEFAEFAEFAEE +FEABEFBEFBEFBEFBEFBEFBEABEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEAAAAAAAAAAAAFBEFAEFAEFAEE +FEABEFBAAAAAAAAAAAAEFBEABEABEAAB EAAFBEAAEBAEBAEBAEBAEFBAFBAFBABF BBAEFBABAEBAEBAEBAEABEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABABAB EAAFBABAEBAEBAEBAEBAAFBAFBAFAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAABAEE +FEABEAAEBAEBAEBAEBAEABEABEAAEBAB EAAFBABAEBAEBAEBAEBAAFBAFBABAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAEBAEE +FEABEFAEBAEBAEBAEBAAFBEABABAEBAB EAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBF BBAEFBEAAAAAAAAAAAAFBEFAABAEBAEE +FEABEFBAAAAAAAAAAAAEFBEAAEBAEBAB EAAFBEFBEFBEFBEFBEFBEFBABAEBAEBF BBAEFBEFBEFBEFBEFBEFBEFAEBAEBAEE +FEBAEFBEFBEFBEFBEFBEFBABAEBAEBAB EAEABEFBEFBEFBEFBEFBEFAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAABAEBAEBAEE +FEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Start Slide Show +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAA AAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAAFBEFBEFBEFBEFBEFBEAAEA +AEBAEBAEBAEFBEFBEFBEFBEFBEFBABAA AAEBAEBAAFBEFBEFBEFBEFBEFBEFBABA ABAEBAEBAEFBEFBEFBEFBEFBEFBEFAEA +AEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAA AAEBAEBAAAAAAAAAAAAAAAAAABEFBABA ABAEBAAFBEFBEFBEFBEFBEFBEABEFAEA +AEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAA AAEBAAFBEFBEFBEFBEFBEFBEFBAFBABA ABAEBAEFBEFBEFBEFBEFBEFBEFAEFAEA +AEBAAAAAAAAAAAAAAAAAAAEFBEABEAAA AAEBAAAAAAAAAAAAAAAAAABEFBAFBABA ABAAFBEFBEFBEFBEFBEFBEABEFAEFAEA +AEBAEFBEFBEFBEFBEFBEFBAFBEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEFBEFBEFBEFBEFBEFAEFAEFAEA +AEABEFBEFBEFBEFBEFBEFBEABEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEAAAAAAAAAAAAFBEFAEFAEFAEA +AEABEFBAAAAAAAAAAAAEFBEABEABEAAA AAAFBEAAEBAEBAEBAEBAEFBAFBAFBABA ABAEFBABAEBAEBAEBAEABEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABABAA AAAFBABAEBAEBAEBAEBAAFBAFBAFAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAABAEA +AEABEAAEBAEBAEBAEBAEABEABEAAEBAA AAAFBABAEBAEBAEBAEBAAFBAFBABAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAEBAEA +AEABEFAEBAEBAEBAEBAAFBEABABAEBAA AAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBA ABAEFBEAAAAAAAAAAAAFBEFAABAEBAEA +AEABEFBAAAAAAAAAAAAEFBEAAEBAEBAA AAAFBEFBEFBEFBEFBEFBEFBABAEBAEBA ABAEFBEFBEFBEFBEFBEFBEFAEBAEBAEA +AEBAEFBEFBEFBEFBEFBEFBABAEBAEBAA AAEABEFBEFBEFBEFBEFBEFAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAABAEBAEBAEA +AEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 72 +# Height: 36 +# Length: 2592 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBE +AEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFB +BAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEF +EBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Width: 18 +# Height: 12 +# Length: 216 +# +0000000000000000000000000000FBEF0000 +0000EEFE00000000BBAB00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000BBAB00000000FAAF0000 +0000EFBE0000000000000000000000000000 +# +# Title: ? +# Length: 544 +# +FBCFBCFBEF3EF3EF +# +FAEBAEBAEBAEBAE8 ABAEBAEAAEBAEBAF EEBAEBAEFAEBAEBB +FAEBAEFAAFAEBAEA 2BAEBBEBAAEAEBAF EEBAEFAEBAEBAEBB +FAEBAEBAEBBABAE8 ABAEAAEBAEBAEBAF EEBAEEAEBAABAEBB +FAEBAEAAABBABAEA 2BAEAAAFBEBAEBAF EEBAEFBBABEBAEBB +FAEBAAFAAFAABAE8 ABAEABEAAEFAEBAF EEBAEEABEAEBAEBB +FAEBBEAAAABEBAEA 2BAEBAEAABAAABAF EEBAEAAAAAAFAEBB +FAEAAAAFFAAABAE8 ABAEEABEBEABABAF EEBAEEBAAEBBAEBB +FAEAAABEBEAABAEA 2BAEFAAFFAABABAF EEBAAAEAABAEAEBB +FAEBBEAAAABEBAE8 ABAEABABEAFAEBAF EEBAEBBAABEBAEBB +FAEBAEBBEEAEBAEA 2BAEBAAAAABAEBAF EEBAEBAEBAEBAEBB +# +CFBEF3CF3CFBEFBC +# +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# same as above +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000020000 +00000000000000000000000000000000000AC000 +00000000000000000000000000000000002BA000 +0000000000000000000000000000000000AEB800 +0000000000000000000000000000000002BAEB00 +000000000000000000000000000000000AEBAE80 +000000000000000000000000000000002BAEBAE0 +00000000000000000000000000000000AEBAEBAC +000000000000000000000000000000003AEBAEB0 +000000000000000000000000000000000BAEBAC0 +0000000000000000000000000000000002BAEB00 +0000000000000000000000000000000000EBAC00 +00000000000000000000000000000000002EB000 +00000000000000000000000000000000000AC000 +0000000000000000000000000000000000030000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000200000000000000020000 +0000000000000000000B800000000000000AC000 +0000000000000000002EB00000000000002BA000 +000000000000000000BAE8000000000000AEB800 +000000000000000002EBAE000000000002BAEB00 +00000000000000000BAEBAC0000000000AEBAE80 +00000000000000002EBAEBA0000000002BAEBAE0 +0000000000000000BAEBAEB800000000AEBAEBAC +00000000000000002BAEBAE0000000003AEBAEB0 +00000000000000000EBAEB80000000000BAEBAC0 +000000000000000002EBAE000000000002BAEB00 +000000000000000000AEB8000000000000EBAC00 +0000000000000000003AE00000000000002EB000 +0000000000000000000B800000000000000AC000 +0000000000000000000200000000000000030000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0003000000000000000200000000000000020000 +000E800000000000000B800000000000000AC000 +003AE00000000000002EB00000000000002BA000 +00EBAC000000000000BAE8000000000000AEB800 +03AEBA000000000002EBAE000000000002BAEB00 +0EBAEB80000000000BAEBAC0000000000AEBAE80 +3AEBAEB0000000002EBAEBA0000000002BAEBAE0 +EBAEBAE800000000BAEBAEB800000000AEBAEBAC +2EBAEBA0000000002BAEBAE0000000003AEBAEB0 +0AEBAE80000000000EBAEB80000000000BAEBAC0 +03AEBA000000000002EBAE000000000002BAEB00 +00BAE8000000000000AEB8000000000000EBAC00 +002BA00000000000003AE00000000000002EB000 +000E800000000000000B800000000000000AC000 +0002000000000000000200000000000000030000 +# +# Title: ? +# Width: 72 +# Height: 74 +# Length: 5328 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAFBEFBEFBEFBEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEEAAAAA +AAAAABEFBEFBEFBEFBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAABFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEAAA +AAAFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBAAA +AAAFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFAAA +AAAFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEAAA +AAAFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAABFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEEAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 24 +# Height: 10 +# Length: 240 +# +00000003800000000000000EB00000000000003AE8000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +0000002BAC0000000000000EB000000000000002C0000000 +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF8EAA8AE88FFFFFFFFFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFF8EEEEA888A8AA8AAEEEEFEEFF8FFFFFFFF +FFFFF8FFFFFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF +FFFF89999999999FAAAAAAAAEEEEEF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +F89999999999998EAAAA8F88AEEEEF8FFFFFFFFF +899999999999AAEEAAA8FEFFAAEFFF8FFFFFFFFF +F8999999999A88EEAAA8FFEEAEEEEF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFF899998AA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFF8988EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFF888EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA888EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA888AAAAAAAAAAAEEEEF8FFFFFFFFF +FFFFFFF88EAAAAAAAAAAEAEEAEEFFF8FFFFFFFFF +FFFFFFFFF88EEEEEEEEEEEEEEEFFF88FFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999FFFFFF999999999999999999 +999999999999999FEAA8AEFF9999999999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +999999FEEEEA888A8AA8AAEEEEFEEFFF99999999 +99999FFFFFFFFFFFFFFFFFFFFFFFFFFF99999999 +99999F888888888FAAAAAAAAEEEEEFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +9F8888888888FF8EAAAA8F88AEEEEFF999999999 +F8888888888FAAEEAAA8FEFFAAEFFFF999999999 +9F88888888FA88EEAAA8FFEEAEEEEFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +9999F8888FAA88EEAAA8FFEEAEEEEFF999999999 +99999F8FFEAA88EEAAA8FEEEAAEFFFF999999999 +999999FFFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA888EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA888AAAAAAAAAAAEEEEFF999999999 +9999999FFEAAAAAAAAAAEAEEAEEFFFF999999999 +999999999FFEEEEEEEEEEEEEEEFFFFF999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999999999999999999999999999999999 +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FF88888888888888888888888888888888888FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FDDDDDBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDDDBBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDBBBBBBFF8FCCCCCEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCCEEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCEEEEEF8FAAA99999F8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FBBBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FCCCCAAAFF8FCCCCCDDDF8FCCCBBBBBF8FFF +FF88FCCCCAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99999B9FF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99BBBB9FF8FDAAAAAAAF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEE99FF8FEEEEBBBBF8FDDDDDDDDF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9F99999999999999999999999999999999999FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FDDDDDBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDDDBBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDBBBBBBFF9FCCCCCEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCCEEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCEEEEEF9FAAA99999F9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FBBBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FCCCCAAAFF9FCCCCCDDDF9FCCCBBBBBF9FF9 +9F99FCCCCAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99999B9FF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99BBBB9FF9FDAAAAAAAF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEE99FF9FEEEEBBBBF9FDDDDDDDDF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9999999999999999999999999999999999999999 +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFF88EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8888FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFFF8EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FFFF99999999999FEFF99999999999 +9999999999999999999999999FEFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999FFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEEFFFFF +FFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAEFFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEFFF +FFFFFFFEEAAAAAAAAAAAAAAAAAAAAAAEAAAAEFFF +FFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEAAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEEFFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEFFFFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAEFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEFFFFFFFFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEFFFFFFFFFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +999999999999FFFFFFFFFFFFFFFFFFFFFFF99999 +99999999999FAAAAAAAAAAAAAAAAAAAAAAAF9999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +999999999FFFFFFFFFFFFFFFFFFFFFFAAAAAF999 +9999999FFAAAAAAAAAAAAAAAAAAAAAAFAAAAF999 +999999FAAAAAAAAAAAAAAAAAAAAAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +9999FAAAAAAAAAAAAAAAAAAAAAAFFAAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFF99999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFF999999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAF99999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAF9999999999 +9999FAAAAAAAAAAAAAAAAAAAAAAFF99999999999 +99999FFFFFFFFFFFFFFFFFFFFFF9999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Locked +# Width: 12 +# Height: 24 +# Length: 288 +# +999999999999999999999999 +99999999FFEEEFF999999999 +9999999FEEFFFEEF99999999 +9999999EEF999FEE99999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9FFFFF9FF9999999 +999999FFFEEEEEFFF9999999 +999999FEEEDDDEEEF9999999 +99999FEEEEFFFEEEEF999999 +9999FEEEFFF8FFFEEEF99999 +9999FEEFFFFFFFFFEEF99999 +9999EEEFFFFFFFFFEEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF88AFFFFEE99999 +9999EEFFFF8AEFFFFEE99999 +9999FEEFFFFFFFFF8EF99999 +99999FEFFFFFFFFFEF999999 +999999FEFFF8FFFEF9999999 +9999999EEEFFF8EE99999999 +999999999FFFFF9999999999 +999999999999999999999999 +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000B00000 +000000000000000000000000000000000BBB0000 +00000000000000000000000000000000BBBBB000 +0000000000000000000000000000000BBBBBBB00 +000000000000000000000000000000BBBBBBBBB0 +0000000000000000000000000000000BBBBBBB00 +00000000000000000000000000000000BBBBB000 +000000000000000000000000000000000BBB0000 +0000000000000000000000000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +00000000000000000000B0000000000000B00000 +0000000000000000000BBB00000000000BBB0000 +000000000000000000BBBBB000000000BBBBB000 +00000000000000000BBBBBBB0000000BBBBBBB00 +0000000000000000BBBBBBBBB00000BBBBBBBBB0 +00000000000000000BBBBBBB0000000BBBBBBB00 +000000000000000000BBBBB000000000BBBBB000 +0000000000000000000BBB00000000000BBB0000 +00000000000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +000000B0000000000000B0000000000000B00000 +00000BBB00000000000BBB00000000000BBB0000 +0000BBBBB000000000BBBBB000000000BBBBB000 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +00BBBBBBBBB00000BBBBBBBBB00000BBBBBBBBB0 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +0000BBBBB000000000BBBBB000000000BBBBB000 +00000BBB00000000000BBB00000000000BBB0000 +000000B0000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAABEFBEFBEFBEFBEFBEFBEAAAAEB +AEAAAAFBEFBEFBEFBEFBEFBEFBAAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAABBEFBEFBEFBEFBEFBEFBEEAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBAEABAE BAEAFAAFBEFBEFBEFBEFBEFBEEBEAABA EBABEFAEFBEFBEFBEFBEFBEFBAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEEBEFABAE BAEAFBEABEFBEFBEFBEFBEFBAFBEEABA EBABEFBEBBEFBEFBEFBEFBEEBEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBAFBEFABAE BAEAFBEFAAFBEFBEFBEFBEEBEFBEEABA EBABEFBEFAEFBEFBEFBEFBEFBEFBEAEB +AEABBEFBEEBEFBAFBEFBEFBEFBEFABAE BAEAFBEFBEABEEBEFBEFBEFBEFBEEABA EBABEFBEFBEFAABBEFBEFBEFBEFBEAEB +AEABBEFBEFBEAAAFBEFBEFBEFBEFABAE BAEAFBEFBEFAAABEAAEAAAFBEFBEEABA EBABEFBEFBEFAABBAABAABEFBEFBEAEB +AEABBEFBEFBEEAAFAAEAAFBEFBEFABAE BAEAFBEFBEFBEABEEAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFBEABEFBEFBEFABAE BAEAFBEFBEFBEABEFAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFAAFAAFBEFBEFABAE BAEAFBEFBEEBEABEAAEAAEFBEFBEEABA EBABEFBEFBAFAABAABBEABEFBEFBEAEB +AEABBEFBEEBEFBEFBEFBEFAEFBEFABAE BAEAFBEFBAFBEFBEFBEFBEEBEFBEEABA EBABEFBEEBEFBEFBEFBEFBEABEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBEBBEFABAE BAEAFBEEBEFBEFBEFBEFBEFBAFBEEABA EBABEFBAFBEFBEFBEFBEFBEFAAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEFAEFABAE BAEAFBAFBEFBEFBEFBEFBEFBEEBEAABA EBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBEAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAAABEFBEFBEFBEFBEFBEFBEEAAAEB +AEAAAABBEFBEFBEFBEFBEFBEFBAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Normal +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAABEFBEFBEFBEFBEFBEFBEAAAAEE +FEAAAAFBEFBEFBEFBEFBEFBEFBAAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAABBEFBEFBEFBEFBEFBEFBEEAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBAEABAB EAEAFAAFBEFBEFBEFBEFBEFBEEBEAABF BBABEFAEFBEFBEFBEFBEFBEFBAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEEBEFABAB EAEAFBEABEFBEFBEFBEFBEFBAFBEEABF BBABEFBEBBEFBEFBEFBEFBEEBEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBAFBEFABAB EAEAFBEFAAFBEFBEFBEFBEEBEFBEEABF BBABEFBEFAEFBEFBEFBEFBEFBEFBEAEE +FEABBEFBEEBEFBAFBEFBEFBEFBEFABAB EAEAFBEFBEABEEBEFBEFBEFBEFBEEABF BBABEFBEFBEFAABBEFBEFBEFBEFBEAEE +FEABBEFBEFBEAAAFBEFBEFBEFBEFABAB EAEAFBEFBEFAAABEAAEAAAFBEFBEEABF BBABEFBEFBEFAABBAABAABEFBEFBEAEE +FEABBEFBEFBEEAAFAAEAAFBEFBEFABAB EAEAFBEFBEFBEABEEAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFBEABEFBEFBEFABAB EAEAFBEFBEFBEABEFAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFAAFAAFBEFBEFABAB EAEAFBEFBEEBEABEAAEAAEFBEFBEEABF BBABEFBEFBAFAABAABBEABEFBEFBEAEE +FEABBEFBEEBEFBEFBEFBEFAEFBEFABAB EAEAFBEFBAFBEFBEFBEFBEEBEFBEEABF BBABEFBEEBEFBEFBEFBEFBEABEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBEBBEFABAB EAEAFBEEBEFBEFBEFBEFBEFBAFBEEABF BBABEFBAFBEFBEFBEFBEFBEFAAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEFAEFABAB EAEAFBAFBEFBEFBEFBEFBEFBEEBEAABF BBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBEAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAAABEFBEFBEFBEFBEFBEFBEEAAAEE +FEAAAABBEFBEFBEFBEFBEFBEFBAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Zoom +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEEABAE BAEAABAFBEFBEFBEFBEFBEFBEABAEABA EBABEBAEFBEFBEFBEFBEFBEFBAEBEAEB +AEABBAABEFBEFBEFBEFBEFBEFAAFABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAAAAAAAAAAAAAAAAAAAAABEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEFFEBAEBAEBAEAFABAE BAEAFABAEBAEBBFFFEBAEBAEBABEEABA EBABEEABAFFAEFFFFEEBAEBAEABBEAEB +AEABBEAEBBEBAFFBFFAEBAEBAEAFABAE BAEAFABAEBEEBFEBFEBFFBFFFABEEABA EBABEEABAFFAEBEFFEEFFEFFEABBEAEB +AEABBEAFFFFFEEBFFBAFFBFFAEAFABAE BAEAFABBFFFFFAFFFEBBFFFEBABEEABA EBABEEABAFFAEBBFFAEBFFFAEABBEAEB +AEABBEAEBBEBAEFFEBAEBFEBAEAFABAE BAEAFABAEBEEBAFFAEBAFFFEBABEEABA EBABEEABAFFAEBFEBAEBFFFAEABBEAEB +AEABBEAEBAEBAFFFFFAFFAFFAEAFABAE BAEAFABAEBAEBFFFFEBFFBFFBABEEABA EBABEEABAEBAFFFFFEFFEEBFEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAAAAAAAAAAAAAAAAAAAAABABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAEFBEFBEFBEFBEFBEFBAABEAEB +AEABBAABEFBEFBEFBEFBEFBEFAEBABAE BAEAEBAFBEFBEFBEFBEFBEFBEABAEABA EBABAFBEFBEFBEFBEFBEFBEFBEFAAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEFABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Zoom +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEEABAB EAEAABAFBEFBEFBEFBEFBEFBEABAEABF BBABEBAEFBEFBEFBEFBEFBEFBAEBEAEE +FEABBAABEFBEFBEFBEFBEFBEFAAFABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAAAAAAAAAAAAAAAAAAAAABEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEFFEBAEBAEBAEAFABAB EAEAFABAEBAEBBFFFEBAEBAEBABEEABF BBABEEABAFFAEFFFFEEBAEBAEABBEAEE +FEABBEAEBBEBAFFBFFAEBAEBAEAFABAB EAEAFABAEBEEBFEBFEBFFBFFFABEEABF BBABEEABAFFAEBEFFEEFFEFFEABBEAEE +FEABBEAFFFFFEEBFFBAFFBFFAEAFABAB EAEAFABBFFFFFAFFFEBBFFFEBABEEABF BBABEEABAFFAEBBFFAEBFFFAEABBEAEE +FEABBEAEBBEBAEFFEBAEBFEBAEAFABAB EAEAFABAEBEEBAFFAEBAFFFEBABEEABF BBABEEABAFFAEBFEBAEBFFFAEABBEAEE +FEABBEAEBAEBAFFFFFAFFAFFAEAFABAB EAEAFABAEBAEBFFFFEBFFBFFBABEEABF BBABEEABAEBAFFFFFEFFEEBFEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAAAAAAAAAAAAAAAAAAAAABABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAEFBEFBEFBEFBEFBEFBAABEAEE +FEABBAABEFBEFBEFBEFBEFBEFAEBABAB EAEAEBAFBEFBEFBEFBEFBEFBEABAEABF BBABAFBEFBEFBEFBEFBEFBEFBEFAAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEFABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Length: 48 +# +00000006 +00000007 +00000004 +00000005 +00000003 +00000004 +00000004 +00000006 +00000009 +00000007 +00000008 +00000008 +# +# Title: ? +# Length: +# +00000000000007E01FF81C38381C381C381C381C1C381FF807E0000000000000 +00000000000003801F801F80038003800380038003803FF83FF8000000000000 +0000000000000FE03FF03838003800F003E00F803E383FF83FF8000000000000 +0000000000000FE03FF03838003803F003F0003838383FF00FE0000000000000 +00000000000003E007E00EE01CE038E07FF87FF800E007F807F8000000000000 +0000000000003FF83FF838003FE03FF00078003878783FF00FC0000000000000 +00000000000007F01FF03C003BC07FF07C7878383C783FF00FC0000000000000 +0000000000003FF83FF8007000F000E001E001C003C003800780000000000000 +00000000000007E01FF81C381C380FF01FF8381C381C1FF807E0000000000000 +00000000000007E01FF83C78383C3C7C1FFC07B800781FF01FC0000000000000 +0000000000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +0000000000007FF87FFE1C0E1C0E1FF81FFE1C0E1C0E7FFE7FF8000000000000 +00000000000007F61FFE3C0E78067000700078003C0E1FFE07F0000000000000 +0000000000007FE07FF81C3C1C1E1C0E1C0E1C1E1C3C7FF87FE0000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C001C007F807F80000000000000 +00000000000007F61FFE3C0E78007000703F783F3C0E1FFE07F0000000000000 +0000000000007E7E7E7E1C381C381FF81FF81C381C387E7E7E7E000000000000 +0000000000003FF83FF80380038003800380038003803FF83FF8000000000000 +00000000000007FE07FE0070007000707070707078F03FE01FC0000000000000 +0000000000007EFC7EFC1C701CE01FC01FE01DF01C7C7F3E7F3E000000000000 +0000000000007FC07FC00E000E000E000E000E060E067FFE7FFE000000000000 +000000000000F83EFC7E7C7C7EFC77DC77DC739C739CF93EF83E000000000000 +000000000000F8FEFCFE3E383F383FB83BF839F838F8FE78FE38000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0000000000007FF07FF81C3C1C1C1C3C1FF81FF01C007F007F00000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE01FFE1CFC0000 +0000000000007FF07FFC1C3C1C3C1FF81FF01CF01C787F3E7F1E000000000000 +0000000000001FEC7FFC701C70007FF01FFC001C701C7FFC6FF0000000000000 +0000000000007FFC7FFC739C739C03800380038003803FF83FF8000000000000 +0000000000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +000000000000FEFEFEFE38381C701C700EE00EE007C007C00380000000000000 +000000000000FC3FFC3F718E718E3BDC3BDC3FFC1E781C381C38000000000000 +0000000000007F7E7F7E1E380FF007C003E00FF01C787EFE7EFE000000000000 +0000000000007EFC7EFC1C700EE007C007C0038003801FF01FF0000000000000 +0000000000003FFC3FFC38F839F003E007C00F9C1F1C3FFC3FFC000000000000 +000000000000000000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000000F800F8003BF03FFC3C1E380E380E3C1EFFFCFBF0000000000000 +000000000000000000000FDC3FFC783C70007000781C3FFC0FF0000000000000 +000000000000007C007C0FDC3FFC783C701C701C783C3FFF0FDF000000000000 +000000000000000000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +00000000000001FC07FC07003FF03FF00700070007003FF03FF0000000000000 +000000000000000000000FDF3FFF783C701C701C783C3FFC0FDC001C3FF81FF0 +000000000000F800F8003BF03FF83C38383838383838FEFEFEFE000000000000 +000000000380038000001F801F8003800380038003803FF83FF8000000000000 +0000000000E000E000003FE03FE000E000E000E000E000E000E001E03FC03F80 +0000000000007C007C001CF81CF81DE01F801FC01FF07CFC7C7C000000000000 +0000000000001F801F800380038003800380038003803FF83FF8000000000000 +00000000000000000000EF78FFFC739C739C739C739CFBDEFBDE000000000000 +00000000000000000000FBF0FFF83C38383838383838FEFEFEFE000000000000 +000000000000000000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +00000000000000000000FBF0FFFC3C1E380E380E3C1E3FFC3BF03800FF00FF00 +000000000000000000001FBE7FFEF078E038E038F0787FF81FB8003801FE01FE +000000000000000000003EF83FFE0F1E0E000E000E007FF07FF0000000000000 +000000000000000000001FB07FF070307FC01FF060707FF06FC0000000000000 +0000000000001C001C00FFF0FFF01C001C001C001C1C1FFC07F0000000000000 +00000000000000000000F8F8F8F838383838383838783FFE0FBE000000000000 +00000000000000007E7E7E7E1C381E780E7007E007E003C003C0000000000000 +00000000000000000000F83EF93E739C7BBC3FF83EF81C701C70000000000000 +000000000000000000007EFC7EFC1E700FC007E01CF07EFC7EFC000000000000 +000000000000000000007E7E7E7E1C380E700FE007C00380038007003FC03FC0 +000000000000000000003FF83FF831F003C007801F183FF83FF8000000000000 +00000000000003C003C003C003C003C001800180000003C003C0000000000000 +000000000000000000000000000000000000000003C003C003C0000000000000 +0000000000000FF01FF81C38003800F007C00700000007800780000000000000 +000000000000001C0038007000E001C0038007000E001C003800000000000000 +0000000000000000000003C003C003C00000000003C003C003C0000000000000 +00000000000007C00FE00E600F00079C1FD839F838F03FFC0FBC000000000000 +# +00000000000003C003C000000180018003C003C003C003C003C0000000000000 +0000000000000FC0006007E00C600C6007F00000000000000000000000000000 +00000000000007C00C600C600C600C6007C00000000000000000000000000000 +00000000000001E001E0000000E003E00F001C001C381FF80FF0000000000000 +0F0003C000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +0CC00CC000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +00000000000007F61FFE3C0E78067000700078003C0E1FFE07F001C007C00780 +078001E000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +01E0078000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +0F0003C000003FF83FF80380038003800380038003803FF83FF8000000000000 +07600DC00000F8FEFCFE3E383F383FB83BF839F838F8FE78FE38000000000000 +0F0003C000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0CC00CC000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0F0003C000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +0660066000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +00000000000007E00FF81C381C381DF01DF81C1C1C1C7DF87DF0000000000000 +000000000F0003C000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000660066000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000000000000000FDC3FFC783C70007000781C3FFC0FF003800F800F00 +000000000F0003C000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +0000000001E0078000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +000000001E00078000001F801F8003800380038003803FF83FF8000000000000 +0000000007600DC00000FBF0FFF83C38383838383838FEFEFEFE000000000000 +00000000078001E000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +000000000660066000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +000000000F0003C00000F8F8F8F838383838383838783FFE0FBE000000000000 +000000000CC00CC00000F8F8F8F838383838383838783FFE0FBE000000000000 +00000000000001E001C003800300000000000000000000000000000000000000 +000000000000000000000000000000000000000003C003800700060000000000 +000000000000000000000000000007C007C00000000000000000000000000000 +0000000001E0078000001F801F8003800380038003803FF83FF8000000000000 +0000000001E0078000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +0000000003C00F0000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000007C01EF0783C0000F8F8F8F838383838383838783FFE0FBE000000000000 +# +# Text: / +# +2F 00 +# +# Text: : +# +3A 00 +# +# Text: am +# +61 6D 00 +# +# Text: pm +# +70 6D 00 +# +# Text: No pictures in camera. +# +4B 65 69 6E 65 20 42 69 6C 64 65 72 0A 69 6E 20 64 65 72 20 4B 61 6D 65 72 61 2E 00 +# +# Text: Yes +# +4A 61 00 +# +# Text: No +# +4E 65 69 6E 00 +# +# Text: . +# +2E 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Lock? +# +53 70 65 72 72 65 6E 3F 00 +# +# Text: Unlock? +# +45 6E 74 73 70 65 72 72 65 6E 3F 00 +# +# Text: Erase? +# +4C 98 73 63 68 65 6E 3F 00 +# +# Text: View Small Photos? +# +4B 6C 65 69 6E 65 0A 42 69 6C 64 65 72 0A 61 6E 7A 65 69 67 65 6E 3F 00 +# +# Text: View Full screen? +# +00 +# +# Text: Set Screen Brightness? +# +41 6E 7A 65 69 67 65 68 65 6C 6C 69 67 6B 65 69 74 0A 65 69 6E 73 74 65 6C 6C 65 6E 3F 00 +# +# Text: Start Slide Show? +# +44 69 61 9D 0A 56 6F 72 74 72 61 67 0A 73 74 61 72 74 65 6E 3F 00 +# +# Text: Stop Slide Show? +# +00 +# +# Text: Set Camera Exposure? +# +42 65 6C 69 63 68 74 75 6E 67 0A 65 69 6E 73 74 65 6C 6C 65 6E 3F 00 +# +# Text: Format Memory Card? +# +53 70 65 69 63 68 65 72 6B 61 72 74 65 0A 66 6F 72 6D 61 74 69 65 72 65 6E 3F 00 +# +# Text: Set Date & Time? +# +44 61 74 75 6D 20 26 0A 5A 65 69 74 0A 65 69 6E 73 74 65 6C 6C 65 6E 3F 00 +# +# Text: Set for NTSC TV? +# +41 75 66 20 4E 54 53 43 0A 54 56 20 65 69 6E 73 74 65 6C 6C 65 6E 3F 00 +# +# Text: Set for PAL TV? +# +41 75 66 20 50 41 4C 0A 54 56 20 65 69 6E 73 74 65 6C 6C 65 6E 3F 00 +# +# Text: Review Pictures? +# +42 69 6C 64 65 72 0A 61 6E 73 65 68 65 6E 3F 00 +# +# Text: Take Pictures? +# +42 69 6C 64 0A 61 75 66 6E 65 68 6D 65 6E 3F 00 +# +# Text: +# +00 +# +# Text: One +# +45 69 6E 73 0A 20 20 20 20 20 00 +# +# Text: None +# +53 74 6F 70 0A 20 20 20 20 20 00 +# +# Text: All +# +41 6C 6C 65 0A 20 20 20 20 20 00 +# +# Text: +# +00 +# +# Text: ERASE? +# +4C 98 73 63 68 65 6E 73 3F 00 +# +# Text: Erase This Picture? +# +42 69 6C 64 0A 77 69 72 64 0A 67 65 6C 98 73 63 68 74 3F 00 +# +# Text: Cancel Picture Erase? +# +41 62 62 72 75 63 68 0A 42 69 6C 64 0A 6C 98 73 63 68 65 6E 3F 00 +# +# Text: Erase All Pictures? +# +41 6C 6C 65 0A 42 69 6C 64 65 72 0A 6C 98 73 63 68 65 6E 3F 00 +# +# Text: Erasing picture... +# +42 69 6C 64 65 72 20 77 65 72 64 65 6E 0A 67 65 6C 98 73 63 68 74 2E 2E 2E 00 +# +# Text: Picture is LOCKED Unlock before erasing +# +42 69 6C 64 20 69 73 74 0A 67 65 73 70 65 72 72 74 2E 0A 56 6F 72 20 64 65 6D 0A 4C 98 73 63 68 65 6E 0A 65 6E 74 73 70 65 72 72 65 6E 2E 00 +# +# Text: Erase ALL pictures? +# +41 4C 4C 45 20 42 69 6C 64 65 72 0A 6C 98 73 63 68 65 6E 3F 00 +# +# Text: Erasing ALL pictures... +# +41 4C 4C 45 20 42 69 6C 64 65 72 0A 77 65 72 64 65 6E 0A 67 65 6C 98 73 63 68 74 2E 2E 2E 00 +# +# Text: Normal? +# +53 74 61 6E 64 61 72 64 3F 00 +# +# Text: Zoom? +# +5A 6F 6F 6D 3F 00 +# +# Text: Set Screen Brightness +# +41 6E 7A 65 69 67 65 68 65 6C 6C 69 67 6B 65 69 74 0A 65 69 6E 73 74 65 6C 6C 65 6E 00 +# +# Text: Set Camera Exposure +# +42 65 6C 69 63 68 74 75 6E 67 0A 65 69 6E 73 74 65 6C 6C 65 6E 00 +# +# Text: Formatting resets the memory card and erases all photos on it. Format? +# +46 6F 72 6D 61 74 69 65 72 65 6E 20 73 65 74 7A 74 0A 64 69 65 20 53 70 65 69 63 68 65 72 6B 61 72 74 65 0A 7A 75 72 9A 63 6B 20 75 6E 64 20 6C 98 73 63 68 74 0A 61 6C 6C 65 20 46 6F 74 6F 73 2E 0A 0A 46 6F 72 6D 61 74 69 65 72 65 6E 3F 00 +# +# Text: Formatting the memory card..... +# +46 6F 72 6D 61 74 69 65 72 65 6E 20 64 65 72 0A 53 70 65 69 63 68 65 72 6B 61 72 74 65 2E 2E 2E 00 +# +# Text: Set for PAL TV? +# +41 75 66 0A 50 41 4C 20 54 56 0A 65 69 6E 73 74 65 6C 6C 65 6E 3F 00 +# +# Text: Set for NTSC TV? +# +41 75 66 0A 4E 54 53 43 20 54 56 0A 65 69 6E 73 74 65 6C 6C 65 6E 3F 00 +# +# Text: +# +00 +# +# Text: This pict +# +4C 98 73 63 68 65 6E 73 0A 44 69 65 73 65 73 0A 42 69 6C 64 00 +# +# Text: No +# +4E 65 69 6E 00 +# +# Text: ALL pict +# +4C 98 73 63 68 65 6E 73 0A 44 69 65 73 65 73 0A 42 69 6C 64 00 +# +# Text: January +# +4A 61 6E 75 61 72 00 +# +# Text: February +# +46 65 62 72 75 61 72 00 +# +# Text: March +# +4D 91 72 7A 00 +# +# Text: April +# +41 70 72 69 6C 00 +# +# Text: May +# +4D 61 69 00 +# +# Text: June +# +4A 75 6E 69 00 +# +# Text: July +# +4A 75 6C 69 00 +# +# Text: August +# +41 75 67 75 73 74 00 +# +# Text: September +# +53 65 70 74 65 6D 62 65 72 00 +# +# Text: October +# +4F 6B 74 6F 62 65 72 00 +# +# Text: November +# +4E 6F 76 65 6D 62 65 72 00 +# +# Text: December +# +44 65 7A 65 6D 62 65 72 00 +# +# Text: Day +# +54 61 67 00 +# +# Text: Month +# +4D 6F 6E 61 74 00 +# +# Text: Year +# +4A 61 68 72 00 +# +# Text: Time +# +5A 65 69 74 00 +# +# Text: AM +# +41 4D 00 +# +# Text: PM +# +50 4D 00 +# +# Text: Set Date and Time +# +20 20 44 61 74 75 6D 20 26 20 5A 65 69 74 00 +# +# Text: Is this correct? +# +4B 6F 72 72 65 6B 74 3F 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Service Menu +# +20 20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 20 20 00 +# +# Text: P +# +50 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: S +# +53 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service ID +# +53 65 72 76 69 63 65 20 49 44 20 20 20 20 20 20 20 00 +# +# Text: Ver +# +56 65 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service Menu 2 +# +20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 32 20 20 00 +# +# Text: Reset Pictures +# +52 65 73 65 74 20 50 69 63 74 75 72 65 73 20 20 20 00 +# +# Text: Reset Strobe Pict +# +52 65 73 65 74 20 53 74 72 6F 62 65 20 50 69 63 74 00 +# +# Text: Reset Born OnDate +# +52 65 73 65 74 20 42 6F 72 6E 20 4F 6E 44 61 74 65 00 +# +# Text: Reset FactoryDflt +# +52 65 73 65 74 20 46 61 63 74 6F 72 79 44 66 6C 74 00 +# +# Text: Are You Sure? +# +41 72 65 20 59 6F 75 20 53 75 72 65 3F 00 +# +# Text: Reset to 0 +# +52 65 73 65 74 20 74 6F 20 30 00 +# +# Text: S . +# +53 20 20 2E 20 20 00 +# +# Text: M . +# +4D 20 20 2E 20 20 00 +# +# Text: Yes +# +59 65 73 00 +# +# Text: No +# +4E 6F 00 +# +# Text: +# +00 +# +# Text: BornOnDate +# +42 6F 72 6E 4F 6E 44 61 74 65 20 20 20 20 20 20 20 00 +# +# Text: FinalErrCode +# +46 69 6E 61 6C 45 72 72 43 6F 64 65 20 20 20 20 20 00 +# +# Text: ResetFinalErrCode +# +52 65 73 65 74 46 69 6E 61 6C 45 72 72 43 6F 64 65 00 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/japanese b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/japanese new file mode 100644 index 00000000..10310ce6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/japanese @@ -0,0 +1,2396 @@ +################################################################################ +# LOCALIZATION FOR HP PhotoSmart C30 # +# ---------------------------------- # +# This file (except the comments) will be sent to the camera (0x9200 command). # +# In order to make the data readable for humans, I commented the data and # +# formatted to some extend. # +# # +# SYMBOLS # +# ------- # +# Each symbol begins with a red pixel in the upper left corner, followed by a # +# yellow one, then by a blue one. The headline "red" does simply indicate that # +# those are lines beginning with a red pixel. The same with headline "yellow" # +# and headline "blue". The brightness of each pixel is defined by a value # +# ranging between A (dark) and F (bright). # +################################################################################ +# +# Variable: KC_LOCALIZE_CARDREV +# Value: 0x00 0x02 +# Length: 32 +# +4B 43 5F 4C 4F 43 41 4C 49 5A 45 5F 43 41 52 44 52 45 56 3A 00 02 FF FF FF FF FF FF FF FF FF FF +# +# Variable: LOCALIZATION +# Length: 16 +# +4C 4F 43 41 4C 49 5A 41 54 49 4F 4E FF FF FF FF +# +# Variable: LNG +# Value: 0x05 +# Length: 5 +# Explanation: Indicator for language. Known values are: +# - 0x00: English +# - 0x01: French +# - 0x02: Spanish +# - 0x04: German +# - 0x05: Japanese +# - 0x06: Korean +# +4C 4E 47 3A 05 +# +# Variable: TV +# Value: 0x00 +# Length: 4 +# Explanation: Format of TV output. Accepted values are: +# - 0x00: NTSC +# - 0x01: PAL +# - 0x02: Do not display TV menu. +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the format of the TV output. +# +54 56 3A 00 +# +# Variable: DT +# Value: 0x00 +# Length: 7 +# Explanation: Date format. Accepted values are: +# - 0x00: Month/Day/Year +# - 0x01: Day/Month/Year +# - 0x02: Year/Month/Day +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the date format. +# +44 54 3A 02 FF FF FF +# +# Variable: DST +# Value: 0x00 0x86 0x00 0x00 +# Length: 16 +# +44 53 54 3A 00 86 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SIZ +# Value: 0x00 0x01 0x00 0x00 +# Length: 16 +# +53 49 5A 3A 00 01 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SUM: +# Value: 0x54 +# Length: 8 +# Explanation: Sum of all bytes starting with the table of contents. The camera +# won't check this number. +# +53 55 4D 3A 54 FF FF FF +# +# Variable: CRC +# Value: 0xbf 0x32 +# Length: 8 +# Explanation: FCS (frame check sequence) of CRC (cyclic redundancy check). The +# camera will check this number. +# +43 52 43 3A EF 32 FF FF +# +# Table of Contents (text entries only) +# +# One entry: 00 FE XX XX (XX XX is the memory address). +# +00 FE CF C0 +00 FE CF C2 +00 FE CF C4 +00 FE CF C7 +00 FE CF CA +00 FE CF D8 +00 FE CF DC +00 FE CF DF +00 FE CF E1 +00 FE CF E2 +00 FE CF E3 +00 FE CF EA +00 FE CF F3 +00 FE CF F7 +00 FE D0 04 +00 FE D0 05 +00 FE D0 0C +00 FE D0 15 +00 FE D0 16 +00 FE D0 1C +00 FE D0 2C +00 FE D0 32 +00 FE D0 3E +00 FE D0 49 +00 FE D0 50 +00 FE D0 59 +00 FE D0 5A +00 FE D0 64 +00 FE D0 6D +00 FE D0 76 +00 FE D0 77 +00 FE D0 7B +00 FE D0 84 +00 FE D0 8A +00 FE D0 91 +00 FE D0 98 +00 FE D0 B7 +00 FE D0 C3 +00 FE D0 CE +00 FE D0 D6 +00 FE D0 DC +00 FE D0 E3 +00 FE D0 E9 +00 FE D1 15 +00 FE D1 23 +00 FE D1 36 +00 FE D1 4A +00 FE D1 4B +00 FE D1 51 +00 FE D1 57 +00 FE D1 5D +00 FE D1 60 +00 FE D1 63 +00 FE D1 66 +00 FE D1 69 +00 FE D1 6C +00 FE D1 6F +00 FE D1 72 +00 FE D1 75 +00 FE D1 78 +00 FE D1 7B +00 FE D1 7E +00 FE D1 81 +00 FE D1 85 +00 FE D1 89 +00 FE D1 8D +00 FE D1 92 +00 FE D1 95 +00 FE D1 98 +00 FE D1 A3 +00 FE D1 AB +00 FE D1 AC +00 FE D1 AD +00 FE D1 AE +00 FE D1 AF +00 FE D1 B0 +00 FE D1 B1 +00 FE D1 B2 +00 FE D1 B3 +00 FE D1 B4 +00 FE D1 B5 +00 FE D1 C7 +00 FE D1 D9 +00 FE D1 EB +00 FE D1 FD +00 FE D2 0F +00 FE D2 21 +00 FE D2 33 +00 FE D2 45 +00 FE D2 57 +00 FE D2 69 +00 FE D2 77 +00 FE D2 82 +00 FE D2 89 +00 FE D2 90 +00 FE D2 94 +00 FE D2 97 +00 FE D2 98 +00 FE D2 AA +00 FE D2 BC +# +# Title: Take Pictures +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAABAEBAAAAAAAEBAEBAEBAEBAEBF BBAEAAABAABAEAAABAEBEEBAEBAEBAEE +FEBAABAAAAEAAEAAEBAFAEEBAEBAEBAB EAEAAEAAEBAABAABAEBEBAAEBAEBAEBF BBAEBAEBAABAEBAEBAFAEBBAEBAEBAEE +FEBAABAAAAEAAEAAEBEBAEBBAEBAEBAB EAEAAEAAEBAABAABAFAEBAEABAEBAEBF BBAEAAABAABAEBAEBEBAEBAEEBAEBAEE +FEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAB EAEBAABAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAAABFFFFFFFFFFAFFEBFFFFFFFEAABF BBAAFFFFFFFFFFFAFFEBFFFFFFFFEAEE +FEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAB EAABAEBAEFBEFBEFAAABEFBEEAAABEBF BAAEBAEBBEFBEFBAAAAABEFBEAAABAAE +FEBAEBAEFBEFBEEAAAAABBEFAAAAAEAB EAABAEBAEFBEFBAABFFAAFBEEAAABEBF BAAEBAEBBEFBEEABFFFEAAFBEAAABAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAAFFFFFEABEFBEFBEBF BAAEBAEBBEFBEABFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBABFFFFFEAEFBEFBEEAB EAABAEBAEFBEFABFFFFFEABEFBEFBEBF BAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAABFFFEABBEFBEFBEBF BAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAE +FEBAEBAEFBEFBEEAAAAABBEFBEFBEEAB EAABAEBAEFBEFBEAAAAAEFBEFBEFBEBF BAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Take Pictures +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAABAEBAAAAAAAEBAEBAEBAEBAEBA ABAEAAABAABAEAAABAEBEEBAEBAEBAEA +AEBAABAAAAEAAEAAEBAFAEEBAEBAEBAA AAEAAEAAEBAABAABAEBEBAAEBAEBAEBA ABAEBAEBAABAEBAEBAFAEBBAEBAEBAEA +AEBAABAAAAEAAEAAEBEBAEBBAEBAEBAA AAEAAEAAEBAABAABAFAEBAEABAEBAEBA ABAEAAABAABAEBAEBEBAEBAEEBAEBAEA +AEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAA AAEBAABAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAAABFFFFFFFFFFAFFEBFFFFFFFEAABA ABAAFFFFFFFFFFFAFFEBFFFFFFFFEAEA +AEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA AAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAA AAABAEBAEFBEFBEFAAABEFBEEAAABEBA AAAEBAEBBEFBEFBAAAAABEFBEAAABAAA +AEBAEBAEFBEFBEEAAAAABBEFAAAAAEAA AAABAEBAEFBEFBAABFFAAFBEEAAABEBA AAAEBAEBBEFBEEABFFFEAAFBEAAABAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAAFFFFFEABEFBEFBEBA AAAEBAEBBEFBEABFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBABFFFFFEAEFBEFBEEAA AAABAEBAEFBEFABFFFFFEABEFBEFBEBA AAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAABFFFEABBEFBEFBEBA AAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAA +AEBAEBAEFBEFBEEAAAAABBEFBEFBEEAA AAABAEBAEFBEFBEAAAAAEFBEFBEFBEBA AAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBEBAEBAEEBAEBAEE +FEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAB EAEBAEBAEAAABAABAEAEBAEEBAEBAEBF BBAEBAEBAABAABAEBAFAEBBAEBAEBAEE +FEBAEBAEBAEAAEAAEBABAEEBAEBAEBAB EAEBAEBAEAAAAAABAEBABBAEBAEBAEBF BBAEBAEBAABAEAAEBAEBEEBAEBAEBAEE +FEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAB EAEBAEBAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAE +FEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAB EABFFFFFFFFFFFFAFFEBFFFFFFFFFEBF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BABEFBEFBEFBEFBEFBEFBEFBEFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEEAEFBAAAAAAAAAAAAAABEABEBF BABEFBAABEFAEBAEBAEBAEBAAFAABAAE +FEBBEFAABBEAAEBAEBAEBAEBAEAAAEAB EAAFBEAAAFBABAEBAEBAEBAEABAABEBF BABEFBEABEFAEBAEBAEBAEBAAFAAFAAE +FEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEFBEABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAABBEAAEBAEBAEBAEBAEFBEEAB EAAFBEAAAFBABAEBAEBAEBAEABEFBEBF BABEFBAABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAEBAEBAEBAEBAAFBEFAAE +FEBBAABEAAEAAEBAEBAEBAEBAEFBEEAB EAAFAAFBAABABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAAAAAAAAAAAAAAFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBEBAEBAEEBAEBAEA +AEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAA AAEBAEBAEAAABAABAEAEBAEEBAEBAEBA ABAEBAEBAABAABAEBAFAEBBAEBAEBAEA +AEBAEBAEBAEAAEAAEBABAEEBAEBAEBAA AAEBAEBAEAAAAAABAEBABBAEBAEBAEBA ABAEBAEBAABAEAAEBAEBEEBAEBAEBAEA +AEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAA AAEBAEBAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAA +AEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAA AABFFFFFFFFFFFFAFFEBFFFFFFFFFEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA AABEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEEAEFBAAAAAAAAAAAAAABEABEBA AABEFBAABEFAEBAEBAEBAEBAAFAABAAA +AEBBEFAABBEAAEBAEBAEBAEBAEAAAEAA AAAFBEAAAFBABAEBAEBAEBAEABAABEBA AABEFBEABEFAEBAEBAEBAEBAAFAAFAAA +AEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEFBEABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAABBEAAEBAEBAEBAEBAEFBEEAA AAAFBEAAAFBABAEBAEBAEBAEABEFBEBA AABEFBAABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAEBAEBAEBAEBAAFBEFAAA +AEBBAABEAAEAAEBAEBAEBAEBAEFBEEAA AAAFAAFBAABABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAAAAAAAAAAAAAAFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: View Small Photos +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABAAAAAAAABAAAAAAAAEAAAAAAAAEBF BBFAAEBABAAFABEFBEFAAAEFBAEBAAEE +FEEABAEBEBAEAFBEFBEABABEFBAEABAB EABAEBABAEABAFFFEFBAEAFBEEBAAEBF BBFAAEBEBAAFABFFBEFAAAEFBAEBAAEE +FEEABABAEBAEAFFEFBAABABEFBAEABAB EABAEBEBAEABAEFBEFBAEAFBEFBAAEBF BBFAABAEBAAFABEFBAEAAAFBBEFBAAEE +FEEABEBAEBAEAFBEFBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEAAEAEBF BBFAEBAEBAAFABEFBAEAAAFBBAABAAEE +FEEAAEBAEBAEAFBAEBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEFBEAEBF BBFAAAAAAAAFAAAAAAAAAAAAAAAAAAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAABAEFBEAAABEFBEBAAAEBAEBAAAEE +FEBAEBAEFBABAFBEFAEABAAEBAEBABAB EAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBF BBAABAEFBEAAABEFBEBAAABBAEBAAAEE +FEBAFBEEFBABAFBEFAEABAFBBAEBABAB EAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBF BBAABEFFBEAAAAEBBEFAAABEFEBAAAEE +FEBAFBEEFBABABAEFBEABAFBEAEBABAB EAEABAEBEFAEAEBAEFBAEAEFBBAEAEBF BBAAEBAFBEAAAAEBBEFAAABEFEBAAAEE +FEBAAEBEFBABABAEFBEABAFBEFEBABAB EAEABAEBEFAEAEBAEFBAEAEFBEAEAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAAEFBEFAAAAABEFBEAAABEFBEBAAEE +FEBABFFBEBABABFBEFBABAFBEFAEABAB EAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBF BBAAEFBEBBAAAABEFFEAAABEFBEBAAEE +FEBABEBAEFABABFBEFBABAFBBEAEABAB EAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABAFBBEAEABAB EAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABABAEBAEABAB EAEAAEBABEAEAAEBBAEAEAEBAEBAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: View Small Photos +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABAAAAAAAABAAAAAAAAEAAAAAAAAEBA ABFAAEBABAAFABEFBEFAAAEFBAEBAAEA +AEEABAEBEBAEAFBEFBEABABEFBAEABAA AABAEBABAEABAFFFEFBAEAFBEEBAAEBA ABFAAEBEBAAFABFFBEFAAAEFBAEBAAEA +AEEABABAEBAEAFFEFBAABABEFBAEABAA AABAEBEBAEABAEFBEFBAEAFBEFBAAEBA ABFAABAEBAAFABEFBAEAAAFBBEFBAAEA +AEEABEBAEBAEAFBEFBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEAAEAEBA ABFAEBAEBAAFABEFBAEAAAFBBAABAAEA +AEEAAEBAEBAEAFBAEBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEFBEAEBA ABFAAAAAAAAFAAAAAAAAAAAAAAAAAAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAABAEFBEAAABEFBEBAAAEBAEBAAAEA +AEBAEBAEFBABAFBEFAEABAAEBAEBABAA AAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBA ABAABAEFBEAAABEFBEBAAABBAEBAAAEA +AEBAFBEEFBABAFBEFAEABAFBBAEBABAA AAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBA ABAABEFFBEAAAAEBBEFAAABEFEBAAAEA +AEBAFBEEFBABABAEFBEABAFBEAEBABAA AAEABAEBEFAEAEBAEFBAEAEFBBAEAEBA ABAAEBAFBEAAAAEBBEFAAABEFEBAAAEA +AEBAAEBEFBABABAEFBEABAFBEFEBABAA AAEABAEBEFAEAEBAEFBAEAEFBEAEAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAAEFBEFAAAAABEFBEAAABEFBEBAAEA +AEBABFFBEBABABFBEFBABAFBEFAEABAA AAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBA ABAAEFBEBBAAAABEFFEAAABEFBEBAAEA +AEBABEBAEFABABFBEFBABAFBBEAEABAA AAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABAFBBEAEABAA AAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABABAEBAEABAA AAEAAEBABEAEAAEBBAEAEAEBAEBAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Screen Brightness +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBABBAEBAEBAEBAEBAB EAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAEAEEBABBAFAEBAEEBAABAEAAEBAB EAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABAAEAEBAEBAEBAEEAEBBAEBAB EAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAB EAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEABAEBAB EAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBF BBAEAEFAEBEFBEFFFFBEFBEEBAABBAEE +FEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAB EAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAB EABAEBAEBEFBEFFFFFFFBEFBEEBAEBBF BAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAE +FEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAB EAEBABAEBEFBEFFFFFFFBEFBEEBAAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAAAEBEFBEFBFFFFFBEFBEEBAABBAB EAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBF BBAEBAFAEBEFBEFFFFBEFBEEBAAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEBBAEBAB EAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAEBEFBEFBEFBEFBAEBBAEBAB EAEBAFAABAEBEFBEFBEFBEEBBABBAEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAEBABAEBAEBEFBEFBAEBAEABAEBAB EAEBAEAEBBABAEBAEBAEBBAFAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABBABBABAEBAEBBEABABBAEBAB EAEBAFBAEBEEBABAEBAAEAEEBABBAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAEBAEBABBAFBABBAEBAABAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Screen Brightness +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBABBAEBAEBAEBAEBAA AAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAEAEEBABBAFAEBAEEBAABAEAAEBAA AAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABAAEAEBAEBAEBAEEAEBBAEBAA AAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAA AAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEABAEBAA AAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBA ABAEAEFAEBEFBEFFFFBEFBEEBAABBAEA +AEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAA AAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAA AABAEBAEBEFBEFFFFFFFBEFBEEBAEBBA AAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAA +AEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAA AAEBABAEBEFBEFFFFFFFBEFBEEBAAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAAAEBEFBEFBFFFFFBEFBEEBAABBAA AAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBA ABAEBAFAEBEFBEFFFFBEFBEEBAAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEBBAEBAA AAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAEBEFBEFBEFBEFBAEBBAEBAA AAEBAFAABAEBEFBEFBEFBEEBBABBAEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAEBABAEBAEBEFBEFBAEBAEABAEBAA AAEBAEAEBBABAEBAEBAEBBAFAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABBABBABAEBAEBBEABABBAEBAA AAEBAFBAEBEEBABAEBAAEAEEBABBAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAEBAEBABBAFBABBAEBAABAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Date & Time +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEABAFBEFAEFBAFBEFBAFBEFBABF BBAEFBAFAEFBEABEEBEFBEFAEFBEFAEE +FEABEFAEABEFBAFBAFBEFBEABEFBEAAB EAAFBEABAFBEFAEEBEFBEFBAFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEABAFAEFBEFBAFBEFBEFBEFBAFAEE +FEABAFAEABEFBEFAEFBEFBEFBEEBEAAB EAAFAEABAFBEFBEABEFBEFBEFBAFBABF BBAEABAFAEFBEFBAFBEFBEFBEEBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBAFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFAEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEABEFBEFBEFAAABABF BBAEAAAFBEFBEFBAFBEFBEFBEAAAFAEE +FEABAFAEFBEFBEFAEFBEFBEFBEFAEAAB EAAFAEABEFBEFBEABEFBEFBEFBEABABF BBAEAAAFBAAAAAAAABEFBEFBEFAAFAEE +FEABAAAEFAAAAAAAAFBEFBEFBEAAEAAB EAAFBEABEFBEFBEABEFBEFBEFBEABABF BBAEFBAFBEFBEFBAFBEFBEFBEFBAFAEE +FEABEFAEFBEFBEFAEFBEFBEFBAAAEAAB EAAFBEABEFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEABAFAEE +FEABAFAEFBEFBEFBEFBEFBEFBAFAEAAB EAAFAEABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEAAAFAEE +FEABAAAEFBEFBEFBEFBEFBEFBAAAEAAB EAAFAEABEAAAFBEFAEFBEFAAFBEABABF BBAEABAFBAAAEFBEABEFBEAAEFBAFAEE +FEABAAAEFBEABEFBAFBEFBAFBEFBEAAB EAAFAAABEFBAFBEFAEFBEFAEFBEFBABF BBAEFBEFBEFAEFBEAAAFBEAAAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAEABEFBEABEFBABF BBAEFBEFBEFAEFBEABAFBEFBAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAAABEFAAABEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Date & Time +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEABAFBEFAEFBAFBEFBAFBEFBABA ABAEFBAFAEFBEABEEBEFBEFAEFBEFAEA +AEABEFAEABEFBAFBAFBEFBEABEFBEAAA AAAFBEABAFBEFAEEBEFBEFBAFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEABAFAEFBEFBAFBEFBEFBEFBAFAEA +AEABAFAEABEFBEFAEFBEFBEFBEEBEAAA AAAFAEABAFBEFBEABEFBEFBEFBAFBABA ABAEABAFAEFBEFBAFBEFBEFBEEBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBAFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFAEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEABEFBEFBEFAAABABA ABAEAAAFBEFBEFBAFBEFBEFBEAAAFAEA +AEABAFAEFBEFBEFAEFBEFBEFBEFAEAAA AAAFAEABEFBEFBEABEFBEFBEFBEABABA ABAEAAAFBAAAAAAAABEFBEFBEFAAFAEA +AEABAAAEFAAAAAAAAFBEFBEFBEAAEAAA AAAFBEABEFBEFBEABEFBEFBEFBEABABA ABAEFBAFBEFBEFBAFBEFBEFBEFBAFAEA +AEABEFAEFBEFBEFAEFBEFBEFBAAAEAAA AAAFBEABEFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEABAFAEA +AEABAFAEFBEFBEFBEFBEFBEFBAFAEAAA AAAFAEABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEAAAFAEA +AEABAAAEFBEFBEFBEFBEFBEFBAAAEAAA AAAFAEABEAAAFBEFAEFBEFAAFBEABABA ABAEABAFBAAAEFBEABEFBEAAEFBAFAEA +AEABAAAEFBEABEFBAFBEFBAFBEFBEAAA AAAFAAABEFBAFBEFAEFBEFAEFBEFBABA ABAEFBEFBEFAEFBEAAAFBEAAAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAEABEFBEABEFBABA ABAEFBEFBEFAEFBEABAFBEFBAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAAABEFAAABEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Erase +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBBFFAABAEBAEBAEBAEE +FEBAEBAEBAEBAABFEBAEBAEBAEBAEBAB EAEBAEBAAAAAAAAAAAAAAAAABAEBAEBF BBAEBAEAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEBAAABEEBEBAAFAAAAEAAABAEBAB EAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBF BBAEBAAAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEAAAAAAAAAAAAAAAAAAAAABAEBAB EAEBAABFFFFFABEFBEFBEBAABAEBAEBF BBAEABFFFFFEAFBEFBEFBEBAABAEBAEE +FEBABFFFFFFEBEFBEFBEFAEAAEBAEBAB EAEBFFFFFFEAFBEFAEBBEBAABAEBAEBF BBABFFFFFFEBEBBEAAEFBEBAABAEBAEE +FEBFFFFFFFAFAEFBABAEFAEAAEBAEBAB EABFFFFFFFAEBBEFAEBBEBAABAEBAEBF BBABFFFFFAFAEBBEAAEFBEBAABAEBAEE +FEAABFFFFAEFAEFBABAEFAEAAEBAEBAB EAEABFFFAFBEBBEFAEBBEBAABAEBAEBF BBAEABFFAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBFAABEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAAAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEAAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBAAAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAAABEBAABAEBAEBF BBAEBAEAAEFBEFBEFBEFBEAAABAEBAEE +FEBAEBAABBEFBEFBEFBEFAAAAEBAEBAB EAEBAEBAEFBEFBEFBEFBEAAABAEBAEBF BBAEBAEAAABAEBAEBAEBAAAAABAEBAEE +FEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAB EAEBAEBAEAAAAAAAAAAAAAAABAEBAEBF BBAEBAEBAAAAAAAAAAAAAAAAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Erase +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBBFFAABAEBAEBAEBAEA +AEBAEBAEBAEBAABFEBAEBAEBAEBAEBAA AAEBAEBAAAAAAAAAAAAAAAAABAEBAEBA ABAEBAEAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEBAAABEEBEBAAFAAAAEAAABAEBAA AAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBA ABAEBAAAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEAAAAAAAAAAAAAAAAAAAAABAEBAA AAEBAABFFFFFABEFBEFBEBAABAEBAEBA ABAEABFFFFFEAFBEFBEFBEBAABAEBAEA +AEBABFFFFFFEBEFBEFBEFAEAAEBAEBAA AAEBFFFFFFEAFBEFAEBBEBAABAEBAEBA ABABFFFFFFEBEBBEAAEFBEBAABAEBAEA +AEBFFFFFFFAFAEFBABAEFAEAAEBAEBAA AABFFFFFFFAEBBEFAEBBEBAABAEBAEBA ABABFFFFFAFAEBBEAAEFBEBAABAEBAEA +AEAABFFFFAEFAEFBABAEFAEAAEBAEBAA AAEABFFFAFBEBBEFAEBBEBAABAEBAEBA ABAEABFFAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBFAABEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAAAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEAAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBAAAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAAABEBAABAEBAEBA ABAEBAEAAEFBEFBEFBEFBEAAABAEBAEA +AEBAEBAABBEFBEFBEFBEFAAAAEBAEBAA AAEBAEBAEFBEFBEFBEFBEAAABAEBAEBA ABAEBAEAAABAEBAEBAEBAAAAABAEBAEA +AEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAA AAEBAEBAEAAAAAAAAAAAAAAABAEBAEBA ABAEBAEBAAAAAAAAAAAAAAAAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Camera Exposure +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEAABFFFFFEAAEBAEBAEBAB EAEBAEBAEBAEABFFFFFEABAEBAEBAEBF BBAEBAEBAEABFFFFFFFFFEAAEBAEBAEE +FEBAEBAEBAABFFFFFFFFFEABAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEBABFFFFFFFFFFFFFEABAEBAEE +FEBAEBAEABFFFFFFFFFFFFFEAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBAEBFFFFFFFFFFFFFFFEABAEBAB EAEBAEBABFFFFFFFFFFFFFFFEAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBABFFFFFEBEBEBFFFFFFEBAEBAB EAEBAEABFFFFFEBEBEBFFFFFFEABAEBF BBAEBAEBFFFFEBEBEBEABFFFFEAEBAEE +FEBAEBABFFFFEBEBEBEABFFFFEBAEBAB EAEBAEABFFFFEBFFFFFEBFFFFEABAEBF BBAEBAEBFFFFEBFFFFFEBFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBABFFFFEBFFFEBFFFFEAEBAEBF BBAEBAEABFFFFEBFFFEBFFFFEBAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBABFFFFEBFEBFFFFEABAEBAEE +FEBAEBAEABFFFFEBFEBFFFFEAEBAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBAEBFFFEBFEBFFFEAEBAEBAEE +FEBAEBAEBABFFFEBFEBFFFEBAEBAEBAB EAEBAEBAEBABFFEBFEBFFEAEBAEBAEBF BBAEBAEBAEABFFEBFEBFFEBAEBAEBAEE +FEBAEBAEBAEABFEBFEABEAEBAEBAEBAB EAEBAEBAEBAEBFEBFEABEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBAAAFBEAABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEABBEEAAAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAABAEBAEBAEBAB EAEBAEBAEBAEBAEAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Camera Exposure +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEAABFFFFFEAAEBAEBAEBAA AAEBAEBAEBAEABFFFFFEABAEBAEBAEBA ABAEBAEBAEABFFFFFFFFFEAAEBAEBAEA +AEBAEBAEBAABFFFFFFFFFEABAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEBABFFFFFFFFFFFFFEABAEBAEA +AEBAEBAEABFFFFFFFFFFFFFEAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBAEBFFFFFFFFFFFFFFFEABAEBAA AAEBAEBABFFFFFFFFFFFFFFFEAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBABFFFFFEBEBEBFFFFFFEBAEBAA AAEBAEABFFFFFEBEBEBFFFFFFEABAEBA ABAEBAEBFFFFEBEBEBEABFFFFEAEBAEA +AEBAEBABFFFFEBEBEBEABFFFFEBAEBAA AAEBAEABFFFFEBFFFFFEBFFFFEABAEBA ABAEBAEBFFFFEBFFFFFEBFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBABFFFFEBFFFEBFFFFEAEBAEBA ABAEBAEABFFFFEBFFFEBFFFFEBAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBABFFFFEBFEBFFFFEABAEBAEA +AEBAEBAEABFFFFEBFEBFFFFEAEBAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBAEBFFFEBFEBFFFEAEBAEBAEA +AEBAEBAEBABFFFEBFEBFFFEBAEBAEBAA AAEBAEBAEBABFFEBFEBFFEAEBAEBAEBA ABAEBAEBAEABFFEBFEBFFEBAEBAEBAEA +AEBAEBAEBAEABFEBFEABEAEBAEBAEBAA AAEBAEBAEBAEBFEBFEABEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBAAAFBEAABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEABBEEAAAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAABAEBAEBAEBAA AAEBAEBAEBAEBAEAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Format Memory Card +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEEFBEFBEFBEFBEFBEFBEFBEFBEFEE +FEBBBAAAAAAAAAAAAAAAAAAAAAAABEAB EAEEFAAFAEABAFAEABAFAEABAFAAFBBF BBBBAAAAAAAAAAAAAAAAAAAAAAABEFEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEABBF BBFAAAAAFFFFFFFFFFFFFFFFFFFFAFEE +FEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAB EABAABAAFFFFFFFFEFFFFFFFFFFEABBF BBFAAEAAFFFFFFFFABFFFFFFFFFFAFEE +FEEABAEAFFFFFFFEBAFFFFFFFFFFAEAB EABAAAAAFFFFFFFAFEBFFFFFFFFEABBF BBFAAAAAFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAAABFFFFFFAFABEBFFFFFFFFAEAB EABAAAABFFFFFEBEAAFAFFFFFFFEABBF BBFAAAABFFFFFAFAAABEBFFFFFFFAFEE +FEEAAAABFFFFEBEAAAAFAFFFFFFFAEAB EABAAAAFFFFFAFAAAAABEBFFFFFEABBF BBFAAAAFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAAAAFFFFAFAAAAAAABEBFFFFFAEAB EABAAAAFFFEBEAAAAAAAAFAFFFFEABBF BBFAAAAFFFAFAAAAAAAAABEBFFFFAFEE +FEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAB EABAAABFFAFAABFFEBFFFABEBFFEABBF BBFAAABFEBEAAFFFEBFFFAAFAFFFAFEE +FEEAAABFAFAABFAAABEAAAABEBFFAEAB EABAAABEBEAABEAAABEAAAAAFAFEABBF BBFAAAFAFAAABEAAABEAAAAABEBFAFEE +FEEAAAFEBEAABEAAABFFEAAAFAFFAEAB EABAAAFFAFAABEAAABFFEAABEBFEABBF BBFAAAFFEBEABEAAABEAAAAFAFFFAFEE +FEEAAAFFFAFABFAAABEAAABEBFFFAEAB EABAAAFFFEBEAFFFEBEAAAFAFFFEABBF BBFAABFFFFAFABFFEBEAABEBFFFFAFEE +FEEAABFFFFEBEAAAAAAAAFAFFFFFAEAB EABAABFFFFFAFAAAAAAABEBFFFFEABBF BBFAABFFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAABFFFFFFAFAAAAABEBFFFFFFAEAB EABAABFFFFFFEBEAAAAFAFFFFFFEABBF BBFAAFFFFFFFFAFAAABEBFFFFFFFAFEE +FEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAB EABAAFFFFFFFFFAFABEBFFFFFFFEABBF BBFAAFFFFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAB EABAAFFFFFFFFFFEBAFFFFFFFFFEABBF BBFABFFFFFFFFFFFABFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFEFFFFFFFFFFFAEAB EABABFFFFFFFFFFFFFFFFFFFFFFEABBF BBFABFFFFFFFFFFFFFFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFFFFFFFFFFFFFBEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEFBBF BBFBEFBEFBEFBEFBEFBEFBEFBEFBEEEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAB EAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Format Memory Card +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEEFBEFBEFBEFBEFBEFBEFBEFBEFEA +AEBBBAAAAAAAAAAAAAAAAAAAAAAABEAA AAEEFAAFAEABAFAEABAFAEABAFAAFBBA ABBBAAAAAAAAAAAAAAAAAAAAAAABEFEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEABBA ABFAAAAAFFFFFFFFFFFFFFFFFFFFAFEA +AEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAA AABAABAAFFFFFFFFEFFFFFFFFFFEABBA ABFAAEAAFFFFFFFFABFFFFFFFFFFAFEA +AEEABAEAFFFFFFFEBAFFFFFFFFFFAEAA AABAAAAAFFFFFFFAFEBFFFFFFFFEABBA ABFAAAAAFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAAABFFFFFFAFABEBFFFFFFFFAEAA AABAAAABFFFFFEBEAAFAFFFFFFFEABBA ABFAAAABFFFFFAFAAABEBFFFFFFFAFEA +AEEAAAABFFFFEBEAAAAFAFFFFFFFAEAA AABAAAAFFFFFAFAAAAABEBFFFFFEABBA ABFAAAAFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAAAAFFFFAFAAAAAAABEBFFFFFAEAA AABAAAAFFFEBEAAAAAAAAFAFFFFEABBA ABFAAAAFFFAFAAAAAAAAABEBFFFFAFEA +AEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAA AABAAABFFAFAABFFEBFFFABEBFFEABBA ABFAAABFEBEAAFFFEBFFFAAFAFFFAFEA +AEEAAABFAFAABFAAABEAAAABEBFFAEAA AABAAABEBEAABEAAABEAAAAAFAFEABBA ABFAAAFAFAAABEAAABEAAAAABEBFAFEA +AEEAAAFEBEAABEAAABFFEAAAFAFFAEAA AABAAAFFAFAABEAAABFFEAABEBFEABBA ABFAAAFFEBEABEAAABEAAAAFAFFFAFEA +AEEAAAFFFAFABFAAABEAAABEBFFFAEAA AABAAAFFFEBEAFFFEBEAAAFAFFFEABBA ABFAABFFFFAFABFFEBEAABEBFFFFAFEA +AEEAABFFFFEBEAAAAAAAAFAFFFFFAEAA AABAABFFFFFAFAAAAAAABEBFFFFEABBA ABFAABFFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAABFFFFFFAFAAAAABEBFFFFFFAEAA AABAABFFFFFFEBEAAAAFAFFFFFFEABBA ABFAAFFFFFFFFAFAAABEBFFFFFFFAFEA +AEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAA AABAAFFFFFFFFFAFABEBFFFFFFFEABBA ABFAAFFFFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAA AABAAFFFFFFFFFFEBAFFFFFFFFFEABBA ABFABFFFFFFFFFFFABFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFEFFFFFFFFFFFAEAA AABABFFFFFFFFFFFFFFFFFFFFFFEABBA ABFABFFFFFFFFFFFFFFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFFFFFFFFFFFFFBEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEFBBA ABFBEFBEFBEFBEFBEFBEFBEFBEFBEEEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAA AAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Lock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBF BBAEBAEBAAEAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEABEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Lock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBA ABAEBAEBAAEAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEABEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Unlock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAAAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEAAABAEBAEBAEABABAEBAEBAB EAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBF BBAEBAEBAEAAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEBAEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Unlock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAAAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEAAABAEBAEBAEABABAEBAEBAA AAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBA ABAEBAEBAEAAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEBAEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set for PAL / NTSC TV +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAABAEBAEBAEBAEBAABAEBAB EAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBF BBAEBAEBAEAAEBAEBAEBAEBAABAEBAEE +FEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAB EAEBAEBAEBAABAEBAEBAEBAABAEBAEBF BBAEBAEBAEBAABAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAABAEBAEBAABAEBAEBAB EAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBF BBAEBAEBAEBAEAAEBAEBAABAEBAEBAEE +FEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAB EAEBAEBAEBAEBAABAEBAABAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEABEFBEFBEFBEFBEFBEFBEFBEEAABF BBAAFBEFBEFBEFBEFBEFBEFBEFBAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAB EAEAAAAAAAAAAAAAAAAAAAAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAEAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAEBAEBAEBAEBAEBAEBAAAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEFBEBAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBAEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAAAAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set for PAL / NTSC TV +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAABAEBAEBAEBAEBAABAEBAA AAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBA ABAEBAEBAEAAEBAEBAEBAEBAABAEBAEA +AEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAA AAEBAEBAEBAABAEBAEBAEBAABAEBAEBA ABAEBAEBAEBAABAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAABAEBAEBAABAEBAEBAA AAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBA ABAEBAEBAEBAEAAEBAEBAABAEBAEBAEA +AEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAA AAEBAEBAEBAEBAABAEBAABAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEABEFBEFBEFBEFBEFBEFBEFBEEAABA ABAAFBEFBEFBEFBEFBEFBEFBEFBAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAA AAEAAAAAAAAAAAAAAAAAAAAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAEAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAEBAEBAEBAEBAEBAEBAAAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEFBEBAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBAEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAAAAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Start Slide Show +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAB EAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAAFBEFBEFBEFBEFBEFBEAAEE +FEBAEBAEBAEFBEFBEFBEFBEFBEFBABAB EAEBAEBAAFBEFBEFBEFBEFBEFBEFBABF BBAEBAEBAEFBEFBEFBEFBEFBEFBEFAEE +FEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAB EAEBAEBAAAAAAAAAAAAAAAAAABEFBABF BBAEBAAFBEFBEFBEFBEFBEFBEABEFAEE +FEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAB EAEBAAFBEFBEFBEFBEFBEFBEFBAFBABF BBAEBAEFBEFBEFBEFBEFBEFBEFAEFAEE +FEBAAAAAAAAAAAAAAAAAAAEFBEABEAAB EAEBAAAAAAAAAAAAAAAAAABEFBAFBABF BBAAFBEFBEFBEFBEFBEFBEABEFAEFAEE +FEBAEFBEFBEFBEFBEFBEFBAFBEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEFBEFBEFBEFBEFBEFAEFAEFAEE +FEABEFBEFBEFBEFBEFBEFBEABEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEAAAAAAAAAAAAFBEFAEFAEFAEE +FEABEFBAAAAAAAAAAAAEFBEABEABEAAB EAAFBEAAEBAEBAEBAEBAEFBAFBAFBABF BBAEFBABAEBAEBAEBAEABEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABABAB EAAFBABAEBAEBAEBAEBAAFBAFBAFAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAABAEE +FEABEAAEBAEBAEBAEBAEABEABEAAEBAB EAAFBABAEBAEBAEBAEBAAFBAFBABAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAEBAEE +FEABEFAEBAEBAEBAEBAAFBEABABAEBAB EAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBF BBAEFBEAAAAAAAAAAAAFBEFAABAEBAEE +FEABEFBAAAAAAAAAAAAEFBEAAEBAEBAB EAAFBEFBEFBEFBEFBEFBEFBABAEBAEBF BBAEFBEFBEFBEFBEFBEFBEFAEBAEBAEE +FEBAEFBEFBEFBEFBEFBEFBABAEBAEBAB EAEABEFBEFBEFBEFBEFBEFAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAABAEBAEBAEE +FEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Start Slide Show +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAA AAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAAFBEFBEFBEFBEFBEFBEAAEA +AEBAEBAEBAEFBEFBEFBEFBEFBEFBABAA AAEBAEBAAFBEFBEFBEFBEFBEFBEFBABA ABAEBAEBAEFBEFBEFBEFBEFBEFBEFAEA +AEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAA AAEBAEBAAAAAAAAAAAAAAAAAABEFBABA ABAEBAAFBEFBEFBEFBEFBEFBEABEFAEA +AEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAA AAEBAAFBEFBEFBEFBEFBEFBEFBAFBABA ABAEBAEFBEFBEFBEFBEFBEFBEFAEFAEA +AEBAAAAAAAAAAAAAAAAAAAEFBEABEAAA AAEBAAAAAAAAAAAAAAAAAABEFBAFBABA ABAAFBEFBEFBEFBEFBEFBEABEFAEFAEA +AEBAEFBEFBEFBEFBEFBEFBAFBEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEFBEFBEFBEFBEFBEFAEFAEFAEA +AEABEFBEFBEFBEFBEFBEFBEABEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEAAAAAAAAAAAAFBEFAEFAEFAEA +AEABEFBAAAAAAAAAAAAEFBEABEABEAAA AAAFBEAAEBAEBAEBAEBAEFBAFBAFBABA ABAEFBABAEBAEBAEBAEABEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABABAA AAAFBABAEBAEBAEBAEBAAFBAFBAFAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAABAEA +AEABEAAEBAEBAEBAEBAEABEABEAAEBAA AAAFBABAEBAEBAEBAEBAAFBAFBABAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAEBAEA +AEABEFAEBAEBAEBAEBAAFBEABABAEBAA AAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBA ABAEFBEAAAAAAAAAAAAFBEFAABAEBAEA +AEABEFBAAAAAAAAAAAAEFBEAAEBAEBAA AAAFBEFBEFBEFBEFBEFBEFBABAEBAEBA ABAEFBEFBEFBEFBEFBEFBEFAEBAEBAEA +AEBAEFBEFBEFBEFBEFBEFBABAEBAEBAA AAEABEFBEFBEFBEFBEFBEFAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAABAEBAEBAEA +AEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 72 +# Height: 36 +# Length: 2592 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBE +AEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFB +BAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEF +EBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Width: 18 +# Height: 12 +# Length: 216 +# +0000000000000000000000000000FBEF0000 +0000EEFE00000000BBAB00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000BBAB00000000FAAF0000 +0000EFBE0000000000000000000000000000 +# +# Title: ? +# Length: 544 +# +FBCFBCFBEF3EF3EF +# +FAEBAEBAEBAEBAE8 ABAEBAEAAEBAEBAF EEBAEBAEFAEBAEBB +FAEBAEFAAFAEBAEA 2BAEBBEBAAEAEBAF EEBAEFAEBAEBAEBB +FAEBAEBAEBBABAE8 ABAEAAEBAEBAEBAF EEBAEEAEBAABAEBB +FAEBAEAAABBABAEA 2BAEAAAFBEBAEBAF EEBAEFBBABEBAEBB +FAEBAAFAAFAABAE8 ABAEABEAAEFAEBAF EEBAEEABEAEBAEBB +FAEBBEAAAABEBAEA 2BAEBAEAABAAABAF EEBAEAAAAAAFAEBB +FAEAAAAFFAAABAE8 ABAEEABEBEABABAF EEBAEEBAAEBBAEBB +FAEAAABEBEAABAEA 2BAEFAAFFAABABAF EEBAAAEAABAEAEBB +FAEBBEAAAABEBAE8 ABAEABABEAFAEBAF EEBAEBBAABEBAEBB +FAEBAEBBEEAEBAEA 2BAEBAAAAABAEBAF EEBAEBAEBAEBAEBB +# +CFBEF3CF3CFBEFBC +# +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# same as above +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000020000 +00000000000000000000000000000000000AC000 +00000000000000000000000000000000002BA000 +0000000000000000000000000000000000AEB800 +0000000000000000000000000000000002BAEB00 +000000000000000000000000000000000AEBAE80 +000000000000000000000000000000002BAEBAE0 +00000000000000000000000000000000AEBAEBAC +000000000000000000000000000000003AEBAEB0 +000000000000000000000000000000000BAEBAC0 +0000000000000000000000000000000002BAEB00 +0000000000000000000000000000000000EBAC00 +00000000000000000000000000000000002EB000 +00000000000000000000000000000000000AC000 +0000000000000000000000000000000000030000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000200000000000000020000 +0000000000000000000B800000000000000AC000 +0000000000000000002EB00000000000002BA000 +000000000000000000BAE8000000000000AEB800 +000000000000000002EBAE000000000002BAEB00 +00000000000000000BAEBAC0000000000AEBAE80 +00000000000000002EBAEBA0000000002BAEBAE0 +0000000000000000BAEBAEB800000000AEBAEBAC +00000000000000002BAEBAE0000000003AEBAEB0 +00000000000000000EBAEB80000000000BAEBAC0 +000000000000000002EBAE000000000002BAEB00 +000000000000000000AEB8000000000000EBAC00 +0000000000000000003AE00000000000002EB000 +0000000000000000000B800000000000000AC000 +0000000000000000000200000000000000030000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0003000000000000000200000000000000020000 +000E800000000000000B800000000000000AC000 +003AE00000000000002EB00000000000002BA000 +00EBAC000000000000BAE8000000000000AEB800 +03AEBA000000000002EBAE000000000002BAEB00 +0EBAEB80000000000BAEBAC0000000000AEBAE80 +3AEBAEB0000000002EBAEBA0000000002BAEBAE0 +EBAEBAE800000000BAEBAEB800000000AEBAEBAC +2EBAEBA0000000002BAEBAE0000000003AEBAEB0 +0AEBAE80000000000EBAEB80000000000BAEBAC0 +03AEBA000000000002EBAE000000000002BAEB00 +00BAE8000000000000AEB8000000000000EBAC00 +002BA00000000000003AE00000000000002EB000 +000E800000000000000B800000000000000AC000 +0002000000000000000200000000000000030000 +# +# Title: ? +# Width: 72 +# Height: 74 +# Length: 5328 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAFBEFBEFBEFBEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEEAAAAA +AAAAABEFBEFBEFBEFBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAABFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEAAA +AAAFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBAAA +AAAFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFAAA +AAAFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEAAA +AAAFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAABFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEEAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 24 +# Height: 10 +# Length: 240 +# +00000003800000000000000EB00000000000003AE8000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +0000002BAC0000000000000EB000000000000002C0000000 +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF8EAA8AE88FFFFFFFFFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFF8EEEEA888A8AA8AAEEEEFEEFF8FFFFFFFF +FFFFF8FFFFFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF +FFFF89999999999FAAAAAAAAEEEEEF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +F89999999999998EAAAA8F88AEEEEF8FFFFFFFFF +899999999999AAEEAAA8FEFFAAEFFF8FFFFFFFFF +F8999999999A88EEAAA8FFEEAEEEEF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFF899998AA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFF8988EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFF888EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA888EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA888AAAAAAAAAAAEEEEF8FFFFFFFFF +FFFFFFF88EAAAAAAAAAAEAEEAEEFFF8FFFFFFFFF +FFFFFFFFF88EEEEEEEEEEEEEEEFFF88FFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999FFFFFF999999999999999999 +999999999999999FEAA8AEFF9999999999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +999999FEEEEA888A8AA8AAEEEEFEEFFF99999999 +99999FFFFFFFFFFFFFFFFFFFFFFFFFFF99999999 +99999F888888888FAAAAAAAAEEEEEFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +9F8888888888FF8EAAAA8F88AEEEEFF999999999 +F8888888888FAAEEAAA8FEFFAAEFFFF999999999 +9F88888888FA88EEAAA8FFEEAEEEEFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +9999F8888FAA88EEAAA8FFEEAEEEEFF999999999 +99999F8FFEAA88EEAAA8FEEEAAEFFFF999999999 +999999FFFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA888EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA888AAAAAAAAAAAEEEEFF999999999 +9999999FFEAAAAAAAAAAEAEEAEEFFFF999999999 +999999999FFEEEEEEEEEEEEEEEFFFFF999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999999999999999999999999999999999 +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FF88888888888888888888888888888888888FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FDDDDDBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDDDBBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDBBBBBBFF8FCCCCCEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCCEEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCEEEEEF8FAAA99999F8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FBBBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FCCCCAAAFF8FCCCCCDDDF8FCCCBBBBBF8FFF +FF88FCCCCAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99999B9FF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99BBBB9FF8FDAAAAAAAF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEE99FF8FEEEEBBBBF8FDDDDDDDDF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9F99999999999999999999999999999999999FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FDDDDDBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDDDBBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDBBBBBBFF9FCCCCCEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCCEEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCEEEEEF9FAAA99999F9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FBBBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FCCCCAAAFF9FCCCCCDDDF9FCCCBBBBBF9FF9 +9F99FCCCCAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99999B9FF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99BBBB9FF9FDAAAAAAAF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEE99FF9FEEEEBBBBF9FDDDDDDDDF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9999999999999999999999999999999999999999 +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFF88EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8888FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFFF8EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FFFF99999999999FEFF99999999999 +9999999999999999999999999FEFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999FFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEEFFFFF +FFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAEFFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEFFF +FFFFFFFEEAAAAAAAAAAAAAAAAAAAAAAEAAAAEFFF +FFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEAAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEEFFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEFFFFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAEFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEFFFFFFFFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEFFFFFFFFFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +999999999999FFFFFFFFFFFFFFFFFFFFFFF99999 +99999999999FAAAAAAAAAAAAAAAAAAAAAAAF9999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +999999999FFFFFFFFFFFFFFFFFFFFFFAAAAAF999 +9999999FFAAAAAAAAAAAAAAAAAAAAAAFAAAAF999 +999999FAAAAAAAAAAAAAAAAAAAAAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +9999FAAAAAAAAAAAAAAAAAAAAAAFFAAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFF99999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFF999999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAF99999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAF9999999999 +9999FAAAAAAAAAAAAAAAAAAAAAAFF99999999999 +99999FFFFFFFFFFFFFFFFFFFFFF9999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Locked +# Width: 12 +# Height: 24 +# Length: 288 +# +999999999999999999999999 +99999999FFEEEFF999999999 +9999999FEEFFFEEF99999999 +9999999EEF999FEE99999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9FFFFF9FF9999999 +999999FFFEEEEEFFF9999999 +999999FEEEDDDEEEF9999999 +99999FEEEEFFFEEEEF999999 +9999FEEEFFF8FFFEEEF99999 +9999FEEFFFFFFFFFEEF99999 +9999EEEFFFFFFFFFEEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF88AFFFFEE99999 +9999EEFFFF8AEFFFFEE99999 +9999FEEFFFFFFFFF8EF99999 +99999FEFFFFFFFFFEF999999 +999999FEFFF8FFFEF9999999 +9999999EEEFFF8EE99999999 +999999999FFFFF9999999999 +999999999999999999999999 +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000B00000 +000000000000000000000000000000000BBB0000 +00000000000000000000000000000000BBBBB000 +0000000000000000000000000000000BBBBBBB00 +000000000000000000000000000000BBBBBBBBB0 +0000000000000000000000000000000BBBBBBB00 +00000000000000000000000000000000BBBBB000 +000000000000000000000000000000000BBB0000 +0000000000000000000000000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +00000000000000000000B0000000000000B00000 +0000000000000000000BBB00000000000BBB0000 +000000000000000000BBBBB000000000BBBBB000 +00000000000000000BBBBBBB0000000BBBBBBB00 +0000000000000000BBBBBBBBB00000BBBBBBBBB0 +00000000000000000BBBBBBB0000000BBBBBBB00 +000000000000000000BBBBB000000000BBBBB000 +0000000000000000000BBB00000000000BBB0000 +00000000000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +000000B0000000000000B0000000000000B00000 +00000BBB00000000000BBB00000000000BBB0000 +0000BBBBB000000000BBBBB000000000BBBBB000 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +00BBBBBBBBB00000BBBBBBBBB00000BBBBBBBBB0 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +0000BBBBB000000000BBBBB000000000BBBBB000 +00000BBB00000000000BBB00000000000BBB0000 +000000B0000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAABEFBEFBEFBEFBEFBEFBEAAAAEB +AEAAAAFBEFBEFBEFBEFBEFBEFBAAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAABBEFBEFBEFBEFBEFBEFBEEAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBAEABAE BAEAFAAFBEFBEFBEFBEFBEFBEEBEAABA EBABEFAEFBEFBEFBEFBEFBEFBAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEEBEFABAE BAEAFBEABEFBEFBEFBEFBEFBAFBEEABA EBABEFBEBBEFBEFBEFBEFBEEBEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBAFBEFABAE BAEAFBEFAAFBEFBEFBEFBEEBEFBEEABA EBABEFBEFAEFBEFBEFBEFBEFBEFBEAEB +AEABBEFBEEBEFBAFBEFBEFBEFBEFABAE BAEAFBEFBEABEEBEFBEFBEFBEFBEEABA EBABEFBEFBEFAABBEFBEFBEFBEFBEAEB +AEABBEFBEFBEAAAFBEFBEFBEFBEFABAE BAEAFBEFBEFAAABEAAEAAAFBEFBEEABA EBABEFBEFBEFAABBAABAABEFBEFBEAEB +AEABBEFBEFBEEAAFAAEAAFBEFBEFABAE BAEAFBEFBEFBEABEEAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFBEABEFBEFBEFABAE BAEAFBEFBEFBEABEFAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFAAFAAFBEFBEFABAE BAEAFBEFBEEBEABEAAEAAEFBEFBEEABA EBABEFBEFBAFAABAABBEABEFBEFBEAEB +AEABBEFBEEBEFBEFBEFBEFAEFBEFABAE BAEAFBEFBAFBEFBEFBEFBEEBEFBEEABA EBABEFBEEBEFBEFBEFBEFBEABEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBEBBEFABAE BAEAFBEEBEFBEFBEFBEFBEFBAFBEEABA EBABEFBAFBEFBEFBEFBEFBEFAAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEFAEFABAE BAEAFBAFBEFBEFBEFBEFBEFBEEBEAABA EBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBEAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAAABEFBEFBEFBEFBEFBEFBEEAAAEB +AEAAAABBEFBEFBEFBEFBEFBEFBAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Normal +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAABEFBEFBEFBEFBEFBEFBEAAAAEE +FEAAAAFBEFBEFBEFBEFBEFBEFBAAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAABBEFBEFBEFBEFBEFBEFBEEAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBAEABAB EAEAFAAFBEFBEFBEFBEFBEFBEEBEAABF BBABEFAEFBEFBEFBEFBEFBEFBAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEEBEFABAB EAEAFBEABEFBEFBEFBEFBEFBAFBEEABF BBABEFBEBBEFBEFBEFBEFBEEBEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBAFBEFABAB EAEAFBEFAAFBEFBEFBEFBEEBEFBEEABF BBABEFBEFAEFBEFBEFBEFBEFBEFBEAEE +FEABBEFBEEBEFBAFBEFBEFBEFBEFABAB EAEAFBEFBEABEEBEFBEFBEFBEFBEEABF BBABEFBEFBEFAABBEFBEFBEFBEFBEAEE +FEABBEFBEFBEAAAFBEFBEFBEFBEFABAB EAEAFBEFBEFAAABEAAEAAAFBEFBEEABF BBABEFBEFBEFAABBAABAABEFBEFBEAEE +FEABBEFBEFBEEAAFAAEAAFBEFBEFABAB EAEAFBEFBEFBEABEEAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFBEABEFBEFBEFABAB EAEAFBEFBEFBEABEFAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFAAFAAFBEFBEFABAB EAEAFBEFBEEBEABEAAEAAEFBEFBEEABF BBABEFBEFBAFAABAABBEABEFBEFBEAEE +FEABBEFBEEBEFBEFBEFBEFAEFBEFABAB EAEAFBEFBAFBEFBEFBEFBEEBEFBEEABF BBABEFBEEBEFBEFBEFBEFBEABEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBEBBEFABAB EAEAFBEEBEFBEFBEFBEFBEFBAFBEEABF BBABEFBAFBEFBEFBEFBEFBEFAAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEFAEFABAB EAEAFBAFBEFBEFBEFBEFBEFBEEBEAABF BBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBEAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAAABEFBEFBEFBEFBEFBEFBEEAAAEE +FEAAAABBEFBEFBEFBEFBEFBEFBAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Zoom +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEEABAE BAEAABAFBEFBEFBEFBEFBEFBEABAEABA EBABEBAEFBEFBEFBEFBEFBEFBAEBEAEB +AEABBAABEFBEFBEFBEFBEFBEFAAFABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAAAAAAAAAAAAAAAAAAAAABEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEFFEBAEBAEBAEAFABAE BAEAFABAEBAEBBFFFEBAEBAEBABEEABA EBABEEABAFFAEFFFFEEBAEBAEABBEAEB +AEABBEAEBBEBAFFBFFAEBAEBAEAFABAE BAEAFABAEBEEBFEBFEBFFBFFFABEEABA EBABEEABAFFAEBEFFEEFFEFFEABBEAEB +AEABBEAFFFFFEEBFFBAFFBFFAEAFABAE BAEAFABBFFFFFAFFFEBBFFFEBABEEABA EBABEEABAFFAEBBFFAEBFFFAEABBEAEB +AEABBEAEBBEBAEFFEBAEBFEBAEAFABAE BAEAFABAEBEEBAFFAEBAFFFEBABEEABA EBABEEABAFFAEBFEBAEBFFFAEABBEAEB +AEABBEAEBAEBAFFFFFAFFAFFAEAFABAE BAEAFABAEBAEBFFFFEBFFBFFBABEEABA EBABEEABAEBAFFFFFEFFEEBFEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAAAAAAAAAAAAAAAAAAAAABABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAEFBEFBEFBEFBEFBEFBAABEAEB +AEABBAABEFBEFBEFBEFBEFBEFAEBABAE BAEAEBAFBEFBEFBEFBEFBEFBEABAEABA EBABAFBEFBEFBEFBEFBEFBEFBEFAAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEFABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Zoom +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEEABAB EAEAABAFBEFBEFBEFBEFBEFBEABAEABF BBABEBAEFBEFBEFBEFBEFBEFBAEBEAEE +FEABBAABEFBEFBEFBEFBEFBEFAAFABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAAAAAAAAAAAAAAAAAAAAABEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEFFEBAEBAEBAEAFABAB EAEAFABAEBAEBBFFFEBAEBAEBABEEABF BBABEEABAFFAEFFFFEEBAEBAEABBEAEE +FEABBEAEBBEBAFFBFFAEBAEBAEAFABAB EAEAFABAEBEEBFEBFEBFFBFFFABEEABF BBABEEABAFFAEBEFFEEFFEFFEABBEAEE +FEABBEAFFFFFEEBFFBAFFBFFAEAFABAB EAEAFABBFFFFFAFFFEBBFFFEBABEEABF BBABEEABAFFAEBBFFAEBFFFAEABBEAEE +FEABBEAEBBEBAEFFEBAEBFEBAEAFABAB EAEAFABAEBEEBAFFAEBAFFFEBABEEABF BBABEEABAFFAEBFEBAEBFFFAEABBEAEE +FEABBEAEBAEBAFFFFFAFFAFFAEAFABAB EAEAFABAEBAEBFFFFEBFFBFFBABEEABF BBABEEABAEBAFFFFFEFFEEBFEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAAAAAAAAAAAAAAAAAAAAABABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAEFBEFBEFBEFBEFBEFBAABEAEE +FEABBAABEFBEFBEFBEFBEFBEFAEBABAB EAEAEBAFBEFBEFBEFBEFBEFBEABAEABF BBABAFBEFBEFBEFBEFBEFBEFBEFAAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEFABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Length: 48 +# +00000002 +00000002 +00000002 +00000002 +00000002 +00000002 +00000002 +00000002 +00000002 +00000002 +00000002 +00000002 +# +# Title: ? +# Length: +# +00000000000007E01FF81C38381C381C381C381C1C381FF807E0000000000000 +00000000000003801F801F80038003800380038003803FF83FF8000000000000 +0000000000000FE03FF03838003800F003E00F803E383FF83FF8000000000000 +0000000000000FE03FF03838003803F003F0003838383FF00FE0000000000000 +00000000000003E007E00EE01CE038E07FF87FF800E007F807F8000000000000 +0000000000003FF83FF838003FE03FF00078003878783FF00FC0000000000000 +00000000000007F01FF03C003BC07FF07C7878383C783FF00FC0000000000000 +0000000000003FF83FF8007000F000E001E001C003C003800780000000000000 +00000000000007E01FF81C381C380FF01FF8381C381C1FF807E0000000000000 +00000000000007E01FF83C78383C3C7C1FFC07B800781FF01FC0000000000000 +0000000000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +0000000000007FF87FFE1C0E1C0E1FF81FFE1C0E1C0E7FFE7FF8000000000000 +00000000000007F61FFE3C0E78067000700078003C0E1FFE07F0000000000000 +0000000000007FE07FF81C3C1C1E1C0E1C0E1C1E1C3C7FF87FE0000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C001C007F807F80000000000000 +00000000000007F61FFE3C0E78007000703F783F3C0E1FFE07F0000000000000 +0000000000007E7E7E7E1C381C381FF81FF81C381C387E7E7E7E000000000000 +0000000000003FF83FF80380038003800380038003803FF83FF8000000000000 +00000000000007FE07FE0070007000707070707078F03FE01FC0000000000000 +0000000000007EFC7EFC1C701CE01FC01FE01DF01C7C7F3E7F3E000000000000 +0000000000007FC07FC00E000E000E000E000E060E067FFE7FFE000000000000 +000000000000F83EFC7E7C7C7EFC77DC77DC739C739CF93EF83E000000000000 +000000000000F8FEFCFE3E383F383FB83BF839F838F8FE78FE38000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0000000000007FF07FF81C3C1C1C1C3C1FF81FF01C007F007F00000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE01FFE1CFC0000 +0000000000007FF07FFC1C3C1C3C1FF81FF01CF01C787F3E7F1E000000000000 +0000000000001FEC7FFC701C70007FF01FFC001C701C7FFC6FF0000000000000 +0000000000007FFC7FFC739C739C03800380038003803FF83FF8000000000000 +0000000000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +000000000000FEFEFEFE38381C701C700EE00EE007C007C00380000000000000 +000000000000FC3FFC3F718E718E3BDC3BDC3FFC1E781C381C38000000000000 +0000000000007F7E7F7E1E380FF007C003E00FF01C787EFE7EFE000000000000 +0000000000007EFC7EFC1C700EE007C007C0038003801FF01FF0000000000000 +0000000000003FFC3FFC38F839F003E007C00F9C1F1C3FFC3FFC000000000000 +000000000000000000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000000F800F8003BF03FFC3C1E380E380E3C1EFFFCFBF0000000000000 +000000000000000000000FDC3FFC783C70007000781C3FFC0FF0000000000000 +000000000000007C007C0FDC3FFC783C701C701C783C3FFF0FDF000000000000 +000000000000000000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +00000000000001FC07FC07003FF03FF00700070007003FF03FF0000000000000 +000000000000000000000FDF3FFF783C701C701C783C3FFC0FDC001C3FF81FF0 +000000000000F800F8003BF03FF83C38383838383838FEFEFEFE000000000000 +000000000380038000001F801F8003800380038003803FF83FF8000000000000 +0000000000E000E000003FE03FE000E000E000E000E000E000E001E03FC03F80 +0000000000007C007C001CF81CF81DE01F801FC01FF07CFC7C7C000000000000 +0000000000001F801F800380038003800380038003803FF83FF8000000000000 +00000000000000000000EF78FFFC739C739C739C739CFBDEFBDE000000000000 +00000000000000000000FBF0FFF83C38383838383838FEFEFEFE000000000000 +000000000000000000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +00000000000000000000FBF0FFFC3C1E380E380E3C1E3FFC3BF03800FF00FF00 +000000000000000000001FBE7FFEF078E038E038F0787FF81FB8003801FE01FE +000000000000000000003EF83FFE0F1E0E000E000E007FF07FF0000000000000 +000000000000000000001FB07FF070307FC01FF060707FF06FC0000000000000 +0000000000001C001C00FFF0FFF01C001C001C001C1C1FFC07F0000000000000 +00000000000000000000F8F8F8F838383838383838783FFE0FBE000000000000 +00000000000000007E7E7E7E1C381E780E7007E007E003C003C0000000000000 +00000000000000000000F83EF93E739C7BBC3FF83EF81C701C70000000000000 +000000000000000000007EFC7EFC1E700FC007E01CF07EFC7EFC000000000000 +000000000000000000007E7E7E7E1C380E700FE007C00380038007003FC03FC0 +000000000000000000003FF83FF831F003C007801F183FF83FF8000000000000 +00000000000003C003C003C003C003C001800180000003C003C0000000000000 +000000000000000000000000000000000000000003C003C003C0000000000000 +0000000000000FF01FF81C38003800F007C00700000007800780000000000000 +000000000000001C0038007000E001C0038007000E001C003800000000000000 +0000000000000000000003C003C003C00000000003C003C003C0000000000000 +00000000000007C00FE00E600F00079C1FD839F838F03FFC0FBC000000000000 +# +0000000030003060307030383018301C300C300C300C330037001E000C000000 +00001C001F8007E000E000003FF83FFC001C001C001C003800781FF01FC00000 +00000C300C387F9C7FCC0CCE1CC618C618C038C030C031C07180678007000000 +00001C000E0007007FFE7FFE00E000700FF81FFC381830003C001FF807F80000 +00001C001C001C001C001C001C001C001C001C061C0E0E3C0FF803E000000000 +0000018001807FFE7FFE018007C00FE00C600C600FE007E000C00FC00F800000 +00001818181818187FFE7FFE1818181818381870186018001C000FF807F80000 +000000007FFE7FFE00E001C003800300070006000600070003C001F800780000 +000030003800181C0C7C0EF007C00F001C0038007000600070003FF81FF80000 +000003E00FF81C3C38CC30C660C661C6618673863F0E1E0C003C03F803E00000 +00003030303073FE63FE603060306030603061F063F063386B3C73EE31C60000 +0000018001803FFC3FFC01803FFC3FFC01803F807FC063F0637E7F1E3E000000 +00000C000C000C007C007CE00DF00FB00F301E303C307C306C360C3E0C1C0000 +0000060007E07FE07E0E0C3E1E783FE073C066C01EC03CC030003FFC1FFC0000 +0000060006000C000C000C0018001BC01FE03C60386030607066607E603C0000 +00000006000E001C003800F003E00FC07EC070C000C000C000C000C000C00000 +00000000003000301FFE1FFE0330033006300E303C30383001F001F000000000 +00000180018001807FFC7FFC018C018C038C030C070C060C0E1C7C7878780000 +00000300030007F807F806180E181C1818300030006000E003C01F801E000000 +000000000E000F000300000C380C3C1C0C38007000E003C00F803E003C000000 +000000003FF03FF000300070006000E001C003E007700E381C1C380E30060000 +00000000000000000000330C330C199C19980030007000E001C00F800F000000 +000000361FF61FC0000000003FF83FF8018001800380030007001E001C000000 +00000C000C000C000C000C000F800FE00C780C180C000C000C000C000C000000 +00000C6C0C6C0C6C0C000C000F800FE00C780C180C000C000C000C000C000000 +0000000000000FF00FF00000000000000000000000003FFC3FFC000000000000 +0000000000000660067006300E380C180C1C0C0C1C0C180E7806700600000000 +000000003FFC3FFC001C0038007018E01DC00F800700038001C000C000000000 +000000180018003800300E700FE001E001F003B8071C0E0C1C00780070000000 +000000000000000000001FC01FC000C000C000C000C000C03FF83FF800000000 +0000000000003FFC3FFC000C000C000C1FFC1FFC000C000C000C3FFC3FFC0000 +000000001FF81FF8000000003FFC3FFC001C00180038007001E01FC01F000000 +000000003FFC3FFC300C300C300C300C300C300C300C300C3FFC3FFC00000000 +000030003C000F00030C000C001C00180038007000E003C00F803E0038000000 +00000000000000000000000060007FFE1FFE0000000000000000000000000000 +0000018007E01E78781E7FFE3FF8018001807FFC7FFC018001807FFE7FFE0000 +00006636776E336C006073FE7BFE1B0603FE1BFE1B061BFE33FE7306630E0000 +0000018001801FF81FF801803FFC3FFC06000E300C3018781FF87F8C700C0000 +00007FFE7FFE01803FFC3FFC318C3FFC3FFC318C7FFE7FFE300C300C301C0000 +00000180198019803FF83FF8718061801FF81FF80180018001807FFE7FFE0000 +000031FE31FE7D867DB601FE7DFE7DB601867DFE7DFE6DCE6DCE7DFE7DFE0000 +00000C607F7E7F7E1CE63CEC7F1C6F1800003FFE3FFE01E019807FFE7FFE0000 +00007E7E7E7E666666667E7E7E7E60066FF66FF666666FF66FF6666666660000 +000018601860186C7ECC7ECE36FE36F666006C7E7E7E7F661B66387E307E0000 +00003FFC3FFC7FFE7FFE618600007EFE7EFE67CC7F387EFE18C67E7C7E7C0000 +00000180318C318C318C3FFC3FFC0180018001806186618661867FFE7FFE0000 +0000183018367FFE7FFE06300FFE0DFE19B63FB67FB67FFE19FE19B619B60000 +00007FFE7FFE00C000C000C000C018FC18FC18C018C018C018C07FFE7FFE0000 +00007FFE7FFE0180018067E665A665A667E665A667E6600660067FFE7FFE0000 +000019F019B01FFE366677FE70E0376630FE37F8377030F837BC377630760000 +000030FC30FC7C0C7C0C000C7C0C7CFC00FC7CC07CC06CC06CC67CFE7C7C0000 +000038F87CF8EE18C6187EFE7EFE18307FB67FFE18FC18307EFC7FFE61B60000 +00003EFE3EFE6C666CEE00CC7E007ED866FE66FE7E187EFE66FE661866180000 +00007CF07CF06D986F9E77FE71F8606077FE77FE7060736C676E666660E00000 +00001FF81FF818181818181818181FF81FF818181818181818181FF81FF80000 +000000307DFC7DFC6C306DFE7DFE7C186DFE6DFE7C187F18039801B800380000 +0000187C187C7ECC7ECE00CE7E007EFE00FE7EC67E6C6638667C7EEE7EC60000 +000001807FFE7FFE600607F807F818C018C018F81CF83EC037C063FE60FE0000 +00001FFC1FFC180C1FFC1FFC180C1FFC1FFC180C180C380C300C701C601C0000 +000018003FFE7FFE60C000C01FFE1FFE18C018C018C07FFE7FFE00C000C00000 +00000C367FB67FB61836733667363C3619B673B667360E063B0673DE60DE0000 +00000C001C7C387C730067000EFE3CFE7C186C180C180C180C180C780C780000 +0000018001807FFE7FFE6186618663C663E667666E366C166006601E001E0000 +000000000000000000000000000000000000300038001C000C00040000000000 +00140C2A0C357F9A7FCC0CCC1CC618C618C038C030C031C07180678007000000 +00000006000B066D067606300E380C180C1C0C0C1C0C180E7806700600000000 +000000007FFE7FFE0006000E000E001C00180038007001E007C0070000000000 +000000007FFE7FFE000600060006000600060006000600067FFE7FFE00000000 +00000180018001807FFE7FFE6186618661867FFE7FFE01800180018001800000 +000037FC37FC36CC366C7FFE7FFE36C037DE37FE76F677DE37D83EFE3CE60000 +00000FF80FF8003800F003C00F003FF030F8001C0E0C1F0C1B7C1FF80FE00000 +00000C000C000CFE7FFE7F001800183C19FC19C0300031C031FC303C30000000 +000000367FF67FE000E001C003800300070006000600070003C001F000700000 +00000C307FFE7FFE00003F6C3F6C336C3F6C3F6C336C3F6C3F0C331C331C0000 +00001800180018FC1BFC338030003000300030001B001BC019FC183C18000000 +000000007FFE7FFE01C001E001F001B801980180018001800180018001800000 +0000000000000000000007FC07FC000C000C07FC07FC000C000C07FC07FC0000 +000000C000C000C000C000C000FC18FC18C018C018C018C018C07FFE7FFE0000 +00007F867F8E61BC7FB87F800C067F8E7FBC00383F003F060C0E6DBC6DB80000 +0000000000001FF81FF800000000000000003000300038001FFC0FFC00000000 +000000003FF83FF80038007001E001C001800180018003001F001C0000000000 +000000001FF81FF80300030003FC7FFC7F0003000300030003F801F800000000 +000000000C300C300C300C300C300C300C300C30007000E007C0070000000000 +0000000000C00CC00CC00CC00CC00CC00CCC0CCC18CC78D860F800E000000000 +00007EFE7EFE66C666C67EFE7EFE66C666C67EFE7EFE00C601C6079E071E0000 +00007FFE7FFE0180018067E665A665A667E665A667E6600660067FFE7FFE0000 +000019F019B01FFE366677FE70E0376630FE37F8377030F837BC377630760000 +00003FFC3FFC01801FF81FF801803FFC3FFC03C01F6C7E6C66380FBE0F9E0000 +000000000FF00FF000003FFC3FFC018019B019B039B8719C618C078007000000 +000019987BB8633001EC18CC3BFE73FE70C031FC37FC379830F033FC330C0000 +# +# Text: / +# +2F 00 +# +# Text: : +# +3A 00 +# +# Text: am +# +61 6D 00 +# +# Text: pm +# +70 6D 00 +# +# Text: No pictures in camera. +# +B0 B1 8A 0A B2 B3 83 8C 87 80 8B 86 8E 00 +# +# Text: Yes +# +59 65 73 00 +# +# Text: No +# +4E 6F 00 +# +# Text: . +# +2E 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Lock? +# +B0 B1 A0 95 92 3F 00 +# +# Text: Unlock? +# +B0 B1 D0 A1 A0 95 92 3F 00 +# +# Text: Erase? +# +A4 A5 3F 00 +# +# Text: View Small Photos? +# +8F A1 96 95 92 94 0A D5 D6 D7 D8 3F 00 +# +# Text: View Full screen? +# +00 +# +# Text: Set Screen Brightness? +# +D4 C6 83 A8 A9 3F 00 +# +# Text: Start Slide Show? +# +94 9F 8F 98 93 CC A2 3F 00 +# +# Text: Stop Slide Show? +# +00 +# +# Text: Set Camera Exposure? +# +AC AD AE AF 3F 00 +# +# Text: Format Memory Card? +# +9C D1 D2 91 A2 98 8D 0A C2 90 A2 9B 95 97 3F 00 +# +# Text: Set Date & Time? +# +B6 B7 B8 B9 3F 00 +# +# Text: Set for NTSC TV? +# +4E 54 53 43 20 54 56 0A AD 91 3F 00 +# +# Text: Set for PAL TV? +# +50 41 4C 20 54 56 0A AD 91 3F 00 +# +# Text: Review Pictures? +# +31 C3 9B D7 D8 3F 00 +# +# Text: Take Pictures? +# +94 D3 A2 D5 D6 D7 D8 3F 00 +# +# Text: +# +00 +# +# Text: One +# +31 C3 9B 0A 20 20 20 20 20 00 +# +# Text: None +# +C4 CD 0A 20 20 20 20 20 00 +# +# Text: All +# +A3 87 0A 20 20 20 20 20 00 +# +# Text: +# +00 +# +# Text: ERASE? +# +A4 A5 3F 00 +# +# Text: Erase This Picture? +# +CF 89 B0 B1 8D A4 A5 3F 00 +# +# Text: Cancel Picture Erase? +# +A4 A5 C4 CD 3F 00 +# +# Text: Erase All Pictures? +# +A3 B0 B1 A4 A5 3F 00 +# +# Text: Erasing picture... +# +A4 A5 C4 2E 2E 2E 00 +# +# Text: Picture is LOCKED Unlock before erasing +# +B0 B1 C0 A0 95 92 83 8C 87 80 8B 85 0A B0 B1 D0 A1 A0 95 92 89 D9 0A A4 A5 84 87 CB 83 80 00 +# +# Text: Erase ALL pictures? +# +0A A3 B0 B1 A4 A5 84 8B 85 82 3F 00 +# +# Text: Erasing ALL pictures... +# +0A A3 B0 B1 A4 A5 C4 2E 2E 2E 00 +# +# Text: Normal? +# +4E 6F 72 6D 61 6C 3F 00 +# +# Text: Zoom? +# +5A 6F 6F 6D 3F 00 +# +# Text: Set Screen Brightness +# +0A D4 C6 83 A8 A9 00 +# +# Text: Set Camera Exposure +# +0A AC AD AE AF 00 +# +# Text: Formatting resets the memory card and erases all photos on it. Format? +# +0A C2 90 A2 9B 95 97 8D BD 81 88 0A 91 A2 98 BE 89 A3 87 89 B0 B1 8A 0A A4 A5 83 8C 8B 85 0A 0A C2 90 A2 9B 95 97 84 8B 85 82 3F 00 +# +# Text: Formatting the memory card..... +# +0A C2 90 A2 9B 95 97 C4 C8 85 2E 2E 2E 00 +# +# Text: Set for PAL TV? +# +0A 50 41 4C 20 54 56 20 AD 91 0A B8 B9 84 8B 85 82 3F 00 +# +# Text: Set for NTSC TV? +# +0A 4E 54 53 43 20 54 56 20 AD 91 0A B8 B9 84 8B 85 82 3F 00 +# +# Text: +# +00 +# +# Text: This pict +# +31 C3 9B A4 A5 00 +# +# Text: No +# +A4 A5 C4 CD 3F 00 +# +# Text: ALL pict +# +A3 C3 9B A4 A5 00 +# +# Text: January +# +20 31 00 +# +# Text: February +# +20 32 00 +# +# Text: March +# +20 33 00 +# +# Text: April +# +20 34 00 +# +# Text: May +# +20 35 00 +# +# Text: June +# +20 36 00 +# +# Text: July +# +20 37 00 +# +# Text: August +# +20 38 00 +# +# Text: September +# +20 39 00 +# +# Text: October +# +31 30 00 +# +# Text: November +# +31 31 00 +# +# Text: December +# +31 32 00 +# +# Text: Day +# +20 20 B6 00 +# +# Text: Month +# +20 20 BA 00 +# +# Text: Year +# +20 20 BB 00 +# +# Text: Time +# +20 20 B7 BC 00 +# +# Text: AM +# +41 4D 00 +# +# Text: PM +# +50 4D 00 +# +# Text: Set Date and Time +# +20 20 20 20 20 20 B6 B7 B8 B9 00 +# +# Text: Is this correct? +# +B8 B9 84 8B 85 82 3F 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Service Menu +# +20 20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 20 20 00 +# +# Text: P +# +50 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: S +# +53 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service ID +# +53 65 72 76 69 63 65 20 49 44 20 20 20 20 20 20 20 00 +# +# Text: Ver +# +56 65 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service Menu 2 +# +20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 32 20 20 00 +# +# Text: Reset Pictures +# +52 65 73 65 74 20 50 69 63 74 75 72 65 73 20 20 20 00 +# +# Text: Reset Strobe Pict +# +52 65 73 65 74 20 53 74 72 6F 62 65 20 50 69 63 74 00 +# +# Text: Reset Born OnDate +# +52 65 73 65 74 20 42 6F 72 6E 20 4F 6E 44 61 74 65 00 +# +# Text: Reset FactoryDflt +# +52 65 73 65 74 20 46 61 63 74 6F 72 79 44 66 6C 74 00 +# +# Text: Are You Sure? +# +41 72 65 20 59 6F 75 20 53 75 72 65 3F 00 +# +# Text: Reset to 0 +# +52 65 73 65 74 20 74 6F 20 30 00 +# +# Text: S . +# +53 20 20 2E 20 20 00 +# +# Text: M . +# +4D 20 20 2E 20 20 00 +# +# Text: Yes +# +59 65 73 00 +# +# Text: No +# +4E 6F 00 +# +# Text: +# +00 +# +# Text: BornOnDate +# +42 6F 72 6E 4F 6E 44 61 74 65 20 20 20 20 20 20 20 00 +# +# Text: FinalErrCode +# +46 69 6E 61 6C 45 72 72 43 6F 64 65 20 20 20 20 20 00 +# +# Text: ResetFinalErrCode +# +52 65 73 65 74 46 69 6E 61 6C 45 72 72 43 6F 64 65 00 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/korean b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/korean new file mode 100644 index 00000000..c6046fbb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/korean @@ -0,0 +1,2399 @@ +################################################################################ +# LOCALIZATION FOR HP PhotoSmart C30 # +# ---------------------------------- # +# This file (except the comments) will be sent to the camera (0x9200 command). # +# In order to make the data readable for humans, I commented the data and # +# formatted to some extend. # +# # +# SYMBOLS # +# ------- # +# Each symbol begins with a red pixel in the upper left corner, followed by a # +# yellow one, then by a blue one. The headline "red" does simply indicate that # +# those are lines beginning with a red pixel. The same with headline "yellow" # +# and headline "blue". The brightness of each pixel is defined by a value # +# ranging between A (dark) and F (bright). # +################################################################################ +# +# Variable: KC_LOCALIZE_CARDREV +# Value: 0x00 0x02 +# Length: 32 +# +4B 43 5F 4C 4F 43 41 4C 49 5A 45 5F 43 41 52 44 52 45 56 3A 00 02 FF FF FF FF FF FF FF FF FF FF +# +# Variable: LOCALIZATION +# Length: 16 +# +4C 4F 43 41 4C 49 5A 41 54 49 4F 4E FF FF FF FF +# +# Variable: LNG +# Value: 0x00 +# Length: 5 +# Explanation: Indicator for language. Known values are: +# - 0x00: English +# - 0x01: French +# - 0x02: Spanish +# - 0x04: German +# - 0x06: Korean +# +4C 4E 47 3A 06 +# +# Variable: TV +# Value: 0x00 +# Length: 4 +# Explanation: Format of TV output. Accepted values are: +# - 0x00: NTSC +# - 0x01: PAL +# - 0x02: Do not display TV menu. +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the format of the TV output. +# +54 56 3A 00 +# +# Variable: DT +# Value: 0x02 +# Length: 7 +# Explanation: Date format. Accepted values are: +# - 0x00: Month/Day/Year +# - 0x01: Day/Month/Year +# - 0x02: Year/Month/Day +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the date format. +# +44 54 3A 02 FF FF FF +# +# Variable: DST +# Value: 0x00 0x86 0x00 0x00 +# Length: 16 +# +44 53 54 3A 00 86 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SIZ +# Value: 0x00 0x01 0x00 0x00 +# Length: 16 +# +53 49 5A 3A 00 01 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SUM: +# Value: 0xcd +# Length: 8 +# Explanation: Sum of all bytes starting with the table of contents. The camera +# won't check this number. +# +53 55 4D 3A CD FF FF FF +# +# Variable: CRC +# Value: 0x32 0xb2 +# Length: 8 +# Explanation: FCS (frame check sequence) of CRC (cyclic redundancy check). The +# camera will check this number. +# +43 52 43 3A 32 B2 FF FF +# +# Table of Contents (text entries only) +# +# One entry: 00 FE XX XX (XX XX is the memory address). +# +00 FE D0 60 +00 FE D0 62 +00 FE D0 64 +00 FE D0 67 +00 FE D0 6A +00 FE D0 74 +00 FE D0 76 +00 FE D0 7A +00 FE D0 7C +00 FE D0 7D +00 FE D0 7E +00 FE D0 82 +00 FE D0 88 +00 FE D0 8C +00 FE D0 94 +00 FE D0 95 +00 FE D0 9D +00 FE D0 A6 +00 FE D0 A7 +00 FE D0 B0 +00 FE D0 B9 +00 FE D0 C2 +00 FE D0 CE +00 FE D0 D9 +00 FE D0 DF +00 FE D0 E5 +00 FE D0 E6 +00 FE D0 EF +00 FE D0 F9 +00 FE D1 02 +00 FE D1 03 +00 FE D1 07 +00 FE D1 11 +00 FE D1 19 +00 FE D1 22 +00 FE D1 28 +00 FE D1 38 +00 FE D1 41 +00 FE D1 49 +00 FE D1 4D +00 FE D1 50 +00 FE D1 58 +00 FE D1 61 +00 FE D1 91 +00 FE D1 9A +00 FE D1 A5 +00 FE D1 B1 +00 FE D1 B2 +00 FE D1 B7 +00 FE D1 BB +00 FE D1 C0 +00 FE D1 C4 +00 FE D1 C8 +00 FE D1 CC +00 FE D1 D0 +00 FE D1 D4 +00 FE D1 D8 +00 FE D1 DC +00 FE D1 E0 +00 FE D1 E4 +00 FE D1 E8 +00 FE D1 EC +00 FE D1 F0 +00 FE D1 F4 +00 FE D1 F8 +00 FE D1 FC +00 FE D2 01 +00 FE D2 04 +00 FE D2 07 +00 FE D2 14 +00 FE D2 1A +00 FE D2 1B +00 FE D2 1C +00 FE D2 1D +00 FE D2 1E +00 FE D2 1F +00 FE D2 20 +00 FE D2 21 +00 FE D2 22 +00 FE D2 23 +00 FE D2 24 +00 FE D2 36 +00 FE D2 48 +00 FE D2 5A +00 FE D2 6C +00 FE D2 7E +00 FE D2 90 +00 FE D2 A2 +00 FE D2 B4 +00 FE D2 C6 +00 FE D2 D8 +00 FE D2 E6 +00 FE D2 F1 +00 FE D2 F8 +00 FE D2 FF +00 FE D3 03 +00 FE D3 06 +00 FE D3 07 +00 FE D3 19 +00 FE D3 2B +# +# Title: Take Pictures +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAABAEBAAAAAAAEBAEBAEBAEBAEBF BBAEAAABAABAEAAABAEBEEBAEBAEBAEE +FEBAABAAAAEAAEAAEBAFAEEBAEBAEBAB EAEAAEAAEBAABAABAEBEBAAEBAEBAEBF BBAEBAEBAABAEBAEBAFAEBBAEBAEBAEE +FEBAABAAAAEAAEAAEBEBAEBBAEBAEBAB EAEAAEAAEBAABAABAFAEBAEABAEBAEBF BBAEAAABAABAEBAEBEBAEBAEEBAEBAEE +FEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAB EAEBAABAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAAABFFFFFFFFFFAFFEBFFFFFFFEAABF BBAAFFFFFFFFFFFAFFEBFFFFFFFFEAEE +FEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAB EAABAEBAEFBEFBEFAAABEFBEEAAABEBF BAAEBAEBBEFBEFBAAAAABEFBEAAABAAE +FEBAEBAEFBEFBEEAAAAABBEFAAAAAEAB EAABAEBAEFBEFBAABFFAAFBEEAAABEBF BAAEBAEBBEFBEEABFFFEAAFBEAAABAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAAFFFFFEABEFBEFBEBF BAAEBAEBBEFBEABFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBABFFFFFEAEFBEFBEEAB EAABAEBAEFBEFABFFFFFEABEFBEFBEBF BAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAABFFFEABBEFBEFBEBF BAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAE +FEBAEBAEFBEFBEEAAAAABBEFBEFBEEAB EAABAEBAEFBEFBEAAAAAEFBEFBEFBEBF BAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Take Pictures +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAABAEBAAAAAAAEBAEBAEBAEBAEBA ABAEAAABAABAEAAABAEBEEBAEBAEBAEA +AEBAABAAAAEAAEAAEBAFAEEBAEBAEBAA AAEAAEAAEBAABAABAEBEBAAEBAEBAEBA ABAEBAEBAABAEBAEBAFAEBBAEBAEBAEA +AEBAABAAAAEAAEAAEBEBAEBBAEBAEBAA AAEAAEAAEBAABAABAFAEBAEABAEBAEBA ABAEAAABAABAEBAEBEBAEBAEEBAEBAEA +AEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAA AAEBAABAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAAABFFFFFFFFFFAFFEBFFFFFFFEAABA ABAAFFFFFFFFFFFAFFEBFFFFFFFFEAEA +AEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA AAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAA AAABAEBAEFBEFBEFAAABEFBEEAAABEBA AAAEBAEBBEFBEFBAAAAABEFBEAAABAAA +AEBAEBAEFBEFBEEAAAAABBEFAAAAAEAA AAABAEBAEFBEFBAABFFAAFBEEAAABEBA AAAEBAEBBEFBEEABFFFEAAFBEAAABAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAAFFFFFEABEFBEFBEBA AAAEBAEBBEFBEABFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBABFFFFFEAEFBEFBEEAA AAABAEBAEFBEFABFFFFFEABEFBEFBEBA AAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAABFFFEABBEFBEFBEBA AAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAA +AEBAEBAEFBEFBEEAAAAABBEFBEFBEEAA AAABAEBAEFBEFBEAAAAAEFBEFBEFBEBA AAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBEBAEBAEEBAEBAEE +FEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAB EAEBAEBAEAAABAABAEAEBAEEBAEBAEBF BBAEBAEBAABAABAEBAFAEBBAEBAEBAEE +FEBAEBAEBAEAAEAAEBABAEEBAEBAEBAB EAEBAEBAEAAAAAABAEBABBAEBAEBAEBF BBAEBAEBAABAEAAEBAEBEEBAEBAEBAEE +FEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAB EAEBAEBAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAE +FEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAB EABFFFFFFFFFFFFAFFEBFFFFFFFFFEBF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BABEFBEFBEFBEFBEFBEFBEFBEFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEEAEFBAAAAAAAAAAAAAABEABEBF BABEFBAABEFAEBAEBAEBAEBAAFAABAAE +FEBBEFAABBEAAEBAEBAEBAEBAEAAAEAB EAAFBEAAAFBABAEBAEBAEBAEABAABEBF BABEFBEABEFAEBAEBAEBAEBAAFAAFAAE +FEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEFBEABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAABBEAAEBAEBAEBAEBAEFBEEAB EAAFBEAAAFBABAEBAEBAEBAEABEFBEBF BABEFBAABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAEBAEBAEBAEBAAFBEFAAE +FEBBAABEAAEAAEBAEBAEBAEBAEFBEEAB EAAFAAFBAABABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAAAAAAAAAAAAAAFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBEBAEBAEEBAEBAEA +AEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAA AAEBAEBAEAAABAABAEAEBAEEBAEBAEBA ABAEBAEBAABAABAEBAFAEBBAEBAEBAEA +AEBAEBAEBAEAAEAAEBABAEEBAEBAEBAA AAEBAEBAEAAAAAABAEBABBAEBAEBAEBA ABAEBAEBAABAEAAEBAEBEEBAEBAEBAEA +AEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAA AAEBAEBAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAA +AEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAA AABFFFFFFFFFFFFAFFEBFFFFFFFFFEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA AABEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEEAEFBAAAAAAAAAAAAAABEABEBA AABEFBAABEFAEBAEBAEBAEBAAFAABAAA +AEBBEFAABBEAAEBAEBAEBAEBAEAAAEAA AAAFBEAAAFBABAEBAEBAEBAEABAABEBA AABEFBEABEFAEBAEBAEBAEBAAFAAFAAA +AEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEFBEABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAABBEAAEBAEBAEBAEBAEFBEEAA AAAFBEAAAFBABAEBAEBAEBAEABEFBEBA AABEFBAABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAEBAEBAEBAEBAAFBEFAAA +AEBBAABEAAEAAEBAEBAEBAEBAEFBEEAA AAAFAAFBAABABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAAAAAAAAAAAAAAFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: View Small Photos +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABAAAAAAAABAAAAAAAAEAAAAAAAAEBF BBFAAEBABAAFABEFBEFAAAEFBAEBAAEE +FEEABAEBEBAEAFBEFBEABABEFBAEABAB EABAEBABAEABAFFFEFBAEAFBEEBAAEBF BBFAAEBEBAAFABFFBEFAAAEFBAEBAAEE +FEEABABAEBAEAFFEFBAABABEFBAEABAB EABAEBEBAEABAEFBEFBAEAFBEFBAAEBF BBFAABAEBAAFABEFBAEAAAFBBEFBAAEE +FEEABEBAEBAEAFBEFBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEAAEAEBF BBFAEBAEBAAFABEFBAEAAAFBBAABAAEE +FEEAAEBAEBAEAFBAEBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEFBEAEBF BBFAAAAAAAAFAAAAAAAAAAAAAAAAAAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAABAEFBEAAABEFBEBAAAEBAEBAAAEE +FEBAEBAEFBABAFBEFAEABAAEBAEBABAB EAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBF BBAABAEFBEAAABEFBEBAAABBAEBAAAEE +FEBAFBEEFBABAFBEFAEABAFBBAEBABAB EAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBF BBAABEFFBEAAAAEBBEFAAABEFEBAAAEE +FEBAFBEEFBABABAEFBEABAFBEAEBABAB EAEABAEBEFAEAEBAEFBAEAEFBBAEAEBF BBAAEBAFBEAAAAEBBEFAAABEFEBAAAEE +FEBAAEBEFBABABAEFBEABAFBEFEBABAB EAEABAEBEFAEAEBAEFBAEAEFBEAEAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAAEFBEFAAAAABEFBEAAABEFBEBAAEE +FEBABFFBEBABABFBEFBABAFBEFAEABAB EAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBF BBAAEFBEBBAAAABEFFEAAABEFBEBAAEE +FEBABEBAEFABABFBEFBABAFBBEAEABAB EAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABAFBBEAEABAB EAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABABAEBAEABAB EAEAAEBABEAEAAEBBAEAEAEBAEBAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: View Small Photos +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABAAAAAAAABAAAAAAAAEAAAAAAAAEBA ABFAAEBABAAFABEFBEFAAAEFBAEBAAEA +AEEABAEBEBAEAFBEFBEABABEFBAEABAA AABAEBABAEABAFFFEFBAEAFBEEBAAEBA ABFAAEBEBAAFABFFBEFAAAEFBAEBAAEA +AEEABABAEBAEAFFEFBAABABEFBAEABAA AABAEBEBAEABAEFBEFBAEAFBEFBAAEBA ABFAABAEBAAFABEFBAEAAAFBBEFBAAEA +AEEABEBAEBAEAFBEFBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEAAEAEBA ABFAEBAEBAAFABEFBAEAAAFBBAABAAEA +AEEAAEBAEBAEAFBAEBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEFBEAEBA ABFAAAAAAAAFAAAAAAAAAAAAAAAAAAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAABAEFBEAAABEFBEBAAAEBAEBAAAEA +AEBAEBAEFBABAFBEFAEABAAEBAEBABAA AAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBA ABAABAEFBEAAABEFBEBAAABBAEBAAAEA +AEBAFBEEFBABAFBEFAEABAFBBAEBABAA AAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBA ABAABEFFBEAAAAEBBEFAAABEFEBAAAEA +AEBAFBEEFBABABAEFBEABAFBEAEBABAA AAEABAEBEFAEAEBAEFBAEAEFBBAEAEBA ABAAEBAFBEAAAAEBBEFAAABEFEBAAAEA +AEBAAEBEFBABABAEFBEABAFBEFEBABAA AAEABAEBEFAEAEBAEFBAEAEFBEAEAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAAEFBEFAAAAABEFBEAAABEFBEBAAEA +AEBABFFBEBABABFBEFBABAFBEFAEABAA AAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBA ABAAEFBEBBAAAABEFFEAAABEFBEBAAEA +AEBABEBAEFABABFBEFBABAFBBEAEABAA AAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABAFBBEAEABAA AAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABABAEBAEABAA AAEAAEBABEAEAAEBBAEAEAEBAEBAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Screen Brightness +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBABBAEBAEBAEBAEBAB EAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAEAEEBABBAFAEBAEEBAABAEAAEBAB EAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABAAEAEBAEBAEBAEEAEBBAEBAB EAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAB EAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEABAEBAB EAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBF BBAEAEFAEBEFBEFFFFBEFBEEBAABBAEE +FEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAB EAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAB EABAEBAEBEFBEFFFFFFFBEFBEEBAEBBF BAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAE +FEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAB EAEBABAEBEFBEFFFFFFFBEFBEEBAAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAAAEBEFBEFBFFFFFBEFBEEBAABBAB EAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBF BBAEBAFAEBEFBEFFFFBEFBEEBAAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEBBAEBAB EAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAEBEFBEFBEFBEFBAEBBAEBAB EAEBAFAABAEBEFBEFBEFBEEBBABBAEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAEBABAEBAEBEFBEFBAEBAEABAEBAB EAEBAEAEBBABAEBAEBAEBBAFAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABBABBABAEBAEBBEABABBAEBAB EAEBAFBAEBEEBABAEBAAEAEEBABBAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAEBAEBABBAFBABBAEBAABAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Screen Brightness +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBABBAEBAEBAEBAEBAA AAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAEAEEBABBAFAEBAEEBAABAEAAEBAA AAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABAAEAEBAEBAEBAEEAEBBAEBAA AAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAA AAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEABAEBAA AAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBA ABAEAEFAEBEFBEFFFFBEFBEEBAABBAEA +AEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAA AAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAA AABAEBAEBEFBEFFFFFFFBEFBEEBAEBBA AAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAA +AEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAA AAEBABAEBEFBEFFFFFFFBEFBEEBAAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAAAEBEFBEFBFFFFFBEFBEEBAABBAA AAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBA ABAEBAFAEBEFBEFFFFBEFBEEBAAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEBBAEBAA AAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAEBEFBEFBEFBEFBAEBBAEBAA AAEBAFAABAEBEFBEFBEFBEEBBABBAEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAEBABAEBAEBEFBEFBAEBAEABAEBAA AAEBAEAEBBABAEBAEBAEBBAFAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABBABBABAEBAEBBEABABBAEBAA AAEBAFBAEBEEBABAEBAAEAEEBABBAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAEBAEBABBAFBABBAEBAABAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Date & Time +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEABAFBEFAEFBAFBEFBAFBEFBABF BBAEFBAFAEFBEABEEBEFBEFAEFBEFAEE +FEABEFAEABEFBAFBAFBEFBEABEFBEAAB EAAFBEABAFBEFAEEBEFBEFBAFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEABAFAEFBEFBAFBEFBEFBEFBAFAEE +FEABAFAEABEFBEFAEFBEFBEFBEEBEAAB EAAFAEABAFBEFBEABEFBEFBEFBAFBABF BBAEABAFAEFBEFBAFBEFBEFBEEBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBAFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFAEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEABEFBEFBEFAAABABF BBAEAAAFBEFBEFBAFBEFBEFBEAAAFAEE +FEABAFAEFBEFBEFAEFBEFBEFBEFAEAAB EAAFAEABEFBEFBEABEFBEFBEFBEABABF BBAEAAAFBAAAAAAAABEFBEFBEFAAFAEE +FEABAAAEFAAAAAAAAFBEFBEFBEAAEAAB EAAFBEABEFBEFBEABEFBEFBEFBEABABF BBAEFBAFBEFBEFBAFBEFBEFBEFBAFAEE +FEABEFAEFBEFBEFAEFBEFBEFBAAAEAAB EAAFBEABEFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEABAFAEE +FEABAFAEFBEFBEFBEFBEFBEFBAFAEAAB EAAFAEABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEAAAFAEE +FEABAAAEFBEFBEFBEFBEFBEFBAAAEAAB EAAFAEABEAAAFBEFAEFBEFAAFBEABABF BBAEABAFBAAAEFBEABEFBEAAEFBAFAEE +FEABAAAEFBEABEFBAFBEFBAFBEFBEAAB EAAFAAABEFBAFBEFAEFBEFAEFBEFBABF BBAEFBEFBEFAEFBEAAAFBEAAAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAEABEFBEABEFBABF BBAEFBEFBEFAEFBEABAFBEFBAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAAABEFAAABEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Date & Time +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEABAFBEFAEFBAFBEFBAFBEFBABA ABAEFBAFAEFBEABEEBEFBEFAEFBEFAEA +AEABEFAEABEFBAFBAFBEFBEABEFBEAAA AAAFBEABAFBEFAEEBEFBEFBAFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEABAFAEFBEFBAFBEFBEFBEFBAFAEA +AEABAFAEABEFBEFAEFBEFBEFBEEBEAAA AAAFAEABAFBEFBEABEFBEFBEFBAFBABA ABAEABAFAEFBEFBAFBEFBEFBEEBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBAFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFAEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEABEFBEFBEFAAABABA ABAEAAAFBEFBEFBAFBEFBEFBEAAAFAEA +AEABAFAEFBEFBEFAEFBEFBEFBEFAEAAA AAAFAEABEFBEFBEABEFBEFBEFBEABABA ABAEAAAFBAAAAAAAABEFBEFBEFAAFAEA +AEABAAAEFAAAAAAAAFBEFBEFBEAAEAAA AAAFBEABEFBEFBEABEFBEFBEFBEABABA ABAEFBAFBEFBEFBAFBEFBEFBEFBAFAEA +AEABEFAEFBEFBEFAEFBEFBEFBAAAEAAA AAAFBEABEFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEABAFAEA +AEABAFAEFBEFBEFBEFBEFBEFBAFAEAAA AAAFAEABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEAAAFAEA +AEABAAAEFBEFBEFBEFBEFBEFBAAAEAAA AAAFAEABEAAAFBEFAEFBEFAAFBEABABA ABAEABAFBAAAEFBEABEFBEAAEFBAFAEA +AEABAAAEFBEABEFBAFBEFBAFBEFBEAAA AAAFAAABEFBAFBEFAEFBEFAEFBEFBABA ABAEFBEFBEFAEFBEAAAFBEAAAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAEABEFBEABEFBABA ABAEFBEFBEFAEFBEABAFBEFBAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAAABEFAAABEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Erase +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBBFFAABAEBAEBAEBAEE +FEBAEBAEBAEBAABFEBAEBAEBAEBAEBAB EAEBAEBAAAAAAAAAAAAAAAAABAEBAEBF BBAEBAEAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEBAAABEEBEBAAFAAAAEAAABAEBAB EAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBF BBAEBAAAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEAAAAAAAAAAAAAAAAAAAAABAEBAB EAEBAABFFFFFABEFBEFBEBAABAEBAEBF BBAEABFFFFFEAFBEFBEFBEBAABAEBAEE +FEBABFFFFFFEBEFBEFBEFAEAAEBAEBAB EAEBFFFFFFEAFBEFAEBBEBAABAEBAEBF BBABFFFFFFEBEBBEAAEFBEBAABAEBAEE +FEBFFFFFFFAFAEFBABAEFAEAAEBAEBAB EABFFFFFFFAEBBEFAEBBEBAABAEBAEBF BBABFFFFFAFAEBBEAAEFBEBAABAEBAEE +FEAABFFFFAEFAEFBABAEFAEAAEBAEBAB EAEABFFFAFBEBBEFAEBBEBAABAEBAEBF BBAEABFFAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBFAABEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAAAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEAAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBAAAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAAABEBAABAEBAEBF BBAEBAEAAEFBEFBEFBEFBEAAABAEBAEE +FEBAEBAABBEFBEFBEFBEFAAAAEBAEBAB EAEBAEBAEFBEFBEFBEFBEAAABAEBAEBF BBAEBAEAAABAEBAEBAEBAAAAABAEBAEE +FEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAB EAEBAEBAEAAAAAAAAAAAAAAABAEBAEBF BBAEBAEBAAAAAAAAAAAAAAAAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Erase +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBBFFAABAEBAEBAEBAEA +AEBAEBAEBAEBAABFEBAEBAEBAEBAEBAA AAEBAEBAAAAAAAAAAAAAAAAABAEBAEBA ABAEBAEAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEBAAABEEBEBAAFAAAAEAAABAEBAA AAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBA ABAEBAAAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEAAAAAAAAAAAAAAAAAAAAABAEBAA AAEBAABFFFFFABEFBEFBEBAABAEBAEBA ABAEABFFFFFEAFBEFBEFBEBAABAEBAEA +AEBABFFFFFFEBEFBEFBEFAEAAEBAEBAA AAEBFFFFFFEAFBEFAEBBEBAABAEBAEBA ABABFFFFFFEBEBBEAAEFBEBAABAEBAEA +AEBFFFFFFFAFAEFBABAEFAEAAEBAEBAA AABFFFFFFFAEBBEFAEBBEBAABAEBAEBA ABABFFFFFAFAEBBEAAEFBEBAABAEBAEA +AEAABFFFFAEFAEFBABAEFAEAAEBAEBAA AAEABFFFAFBEBBEFAEBBEBAABAEBAEBA ABAEABFFAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBFAABEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAAAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEAAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBAAAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAAABEBAABAEBAEBA ABAEBAEAAEFBEFBEFBEFBEAAABAEBAEA +AEBAEBAABBEFBEFBEFBEFAAAAEBAEBAA AAEBAEBAEFBEFBEFBEFBEAAABAEBAEBA ABAEBAEAAABAEBAEBAEBAAAAABAEBAEA +AEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAA AAEBAEBAEAAAAAAAAAAAAAAABAEBAEBA ABAEBAEBAAAAAAAAAAAAAAAAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Camera Exposure +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEAABFFFFFEAAEBAEBAEBAB EAEBAEBAEBAEABFFFFFEABAEBAEBAEBF BBAEBAEBAEABFFFFFFFFFEAAEBAEBAEE +FEBAEBAEBAABFFFFFFFFFEABAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEBABFFFFFFFFFFFFFEABAEBAEE +FEBAEBAEABFFFFFFFFFFFFFEAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBAEBFFFFFFFFFFFFFFFEABAEBAB EAEBAEBABFFFFFFFFFFFFFFFEAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBABFFFFFEBEBEBFFFFFFEBAEBAB EAEBAEABFFFFFEBEBEBFFFFFFEABAEBF BBAEBAEBFFFFEBEBEBEABFFFFEAEBAEE +FEBAEBABFFFFEBEBEBEABFFFFEBAEBAB EAEBAEABFFFFEBFFFFFEBFFFFEABAEBF BBAEBAEBFFFFEBFFFFFEBFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBABFFFFEBFFFEBFFFFEAEBAEBF BBAEBAEABFFFFEBFFFEBFFFFEBAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBABFFFFEBFEBFFFFEABAEBAEE +FEBAEBAEABFFFFEBFEBFFFFEAEBAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBAEBFFFEBFEBFFFEAEBAEBAEE +FEBAEBAEBABFFFEBFEBFFFEBAEBAEBAB EAEBAEBAEBABFFEBFEBFFEAEBAEBAEBF BBAEBAEBAEABFFEBFEBFFEBAEBAEBAEE +FEBAEBAEBAEABFEBFEABEAEBAEBAEBAB EAEBAEBAEBAEBFEBFEABEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBAAAFBEAABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEABBEEAAAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAABAEBAEBAEBAB EAEBAEBAEBAEBAEAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Camera Exposure +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEAABFFFFFEAAEBAEBAEBAA AAEBAEBAEBAEABFFFFFEABAEBAEBAEBA ABAEBAEBAEABFFFFFFFFFEAAEBAEBAEA +AEBAEBAEBAABFFFFFFFFFEABAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEBABFFFFFFFFFFFFFEABAEBAEA +AEBAEBAEABFFFFFFFFFFFFFEAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBAEBFFFFFFFFFFFFFFFEABAEBAA AAEBAEBABFFFFFFFFFFFFFFFEAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBABFFFFFEBEBEBFFFFFFEBAEBAA AAEBAEABFFFFFEBEBEBFFFFFFEABAEBA ABAEBAEBFFFFEBEBEBEABFFFFEAEBAEA +AEBAEBABFFFFEBEBEBEABFFFFEBAEBAA AAEBAEABFFFFEBFFFFFEBFFFFEABAEBA ABAEBAEBFFFFEBFFFFFEBFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBABFFFFEBFFFEBFFFFEAEBAEBA ABAEBAEABFFFFEBFFFEBFFFFEBAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBABFFFFEBFEBFFFFEABAEBAEA +AEBAEBAEABFFFFEBFEBFFFFEAEBAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBAEBFFFEBFEBFFFEAEBAEBAEA +AEBAEBAEBABFFFEBFEBFFFEBAEBAEBAA AAEBAEBAEBABFFEBFEBFFEAEBAEBAEBA ABAEBAEBAEABFFEBFEBFFEBAEBAEBAEA +AEBAEBAEBAEABFEBFEABEAEBAEBAEBAA AAEBAEBAEBAEBFEBFEABEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBAAAFBEAABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEABBEEAAAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAABAEBAEBAEBAA AAEBAEBAEBAEBAEAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Format Memory Card +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEEFBEFBEFBEFBEFBEFBEFBEFBEFEE +FEBBBAAAAAAAAAAAAAAAAAAAAAAABEAB EAEEFAAFAEABAFAEABAFAEABAFAAFBBF BBBBAAAAAAAAAAAAAAAAAAAAAAABEFEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEABBF BBFAAAAAFFFFFFFFFFFFFFFFFFFFAFEE +FEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAB EABAABAAFFFFFFFFEFFFFFFFFFFEABBF BBFAAEAAFFFFFFFFABFFFFFFFFFFAFEE +FEEABAEAFFFFFFFEBAFFFFFFFFFFAEAB EABAAAAAFFFFFFFAFEBFFFFFFFFEABBF BBFAAAAAFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAAABFFFFFFAFABEBFFFFFFFFAEAB EABAAAABFFFFFEBEAAFAFFFFFFFEABBF BBFAAAABFFFFFAFAAABEBFFFFFFFAFEE +FEEAAAABFFFFEBEAAAAFAFFFFFFFAEAB EABAAAAFFFFFAFAAAAABEBFFFFFEABBF BBFAAAAFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAAAAFFFFAFAAAAAAABEBFFFFFAEAB EABAAAAFFFEBEAAAAAAAAFAFFFFEABBF BBFAAAAFFFAFAAAAAAAAABEBFFFFAFEE +FEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAB EABAAABFFAFAABFFEBFFFABEBFFEABBF BBFAAABFEBEAAFFFEBFFFAAFAFFFAFEE +FEEAAABFAFAABFAAABEAAAABEBFFAEAB EABAAABEBEAABEAAABEAAAAAFAFEABBF BBFAAAFAFAAABEAAABEAAAAABEBFAFEE +FEEAAAFEBEAABEAAABFFEAAAFAFFAEAB EABAAAFFAFAABEAAABFFEAABEBFEABBF BBFAAAFFEBEABEAAABEAAAAFAFFFAFEE +FEEAAAFFFAFABFAAABEAAABEBFFFAEAB EABAAAFFFEBEAFFFEBEAAAFAFFFEABBF BBFAABFFFFAFABFFEBEAABEBFFFFAFEE +FEEAABFFFFEBEAAAAAAAAFAFFFFFAEAB EABAABFFFFFAFAAAAAAABEBFFFFEABBF BBFAABFFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAABFFFFFFAFAAAAABEBFFFFFFAEAB EABAABFFFFFFEBEAAAAFAFFFFFFEABBF BBFAAFFFFFFFFAFAAABEBFFFFFFFAFEE +FEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAB EABAAFFFFFFFFFAFABEBFFFFFFFEABBF BBFAAFFFFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAB EABAAFFFFFFFFFFEBAFFFFFFFFFEABBF BBFABFFFFFFFFFFFABFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFEFFFFFFFFFFFAEAB EABABFFFFFFFFFFFFFFFFFFFFFFEABBF BBFABFFFFFFFFFFFFFFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFFFFFFFFFFFFFBEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEFBBF BBFBEFBEFBEFBEFBEFBEFBEFBEFBEEEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAB EAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Format Memory Card +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEEFBEFBEFBEFBEFBEFBEFBEFBEFEA +AEBBBAAAAAAAAAAAAAAAAAAAAAAABEAA AAEEFAAFAEABAFAEABAFAEABAFAAFBBA ABBBAAAAAAAAAAAAAAAAAAAAAAABEFEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEABBA ABFAAAAAFFFFFFFFFFFFFFFFFFFFAFEA +AEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAA AABAABAAFFFFFFFFEFFFFFFFFFFEABBA ABFAAEAAFFFFFFFFABFFFFFFFFFFAFEA +AEEABAEAFFFFFFFEBAFFFFFFFFFFAEAA AABAAAAAFFFFFFFAFEBFFFFFFFFEABBA ABFAAAAAFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAAABFFFFFFAFABEBFFFFFFFFAEAA AABAAAABFFFFFEBEAAFAFFFFFFFEABBA ABFAAAABFFFFFAFAAABEBFFFFFFFAFEA +AEEAAAABFFFFEBEAAAAFAFFFFFFFAEAA AABAAAAFFFFFAFAAAAABEBFFFFFEABBA ABFAAAAFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAAAAFFFFAFAAAAAAABEBFFFFFAEAA AABAAAAFFFEBEAAAAAAAAFAFFFFEABBA ABFAAAAFFFAFAAAAAAAAABEBFFFFAFEA +AEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAA AABAAABFFAFAABFFEBFFFABEBFFEABBA ABFAAABFEBEAAFFFEBFFFAAFAFFFAFEA +AEEAAABFAFAABFAAABEAAAABEBFFAEAA AABAAABEBEAABEAAABEAAAAAFAFEABBA ABFAAAFAFAAABEAAABEAAAAABEBFAFEA +AEEAAAFEBEAABEAAABFFEAAAFAFFAEAA AABAAAFFAFAABEAAABFFEAABEBFEABBA ABFAAAFFEBEABEAAABEAAAAFAFFFAFEA +AEEAAAFFFAFABFAAABEAAABEBFFFAEAA AABAAAFFFEBEAFFFEBEAAAFAFFFEABBA ABFAABFFFFAFABFFEBEAABEBFFFFAFEA +AEEAABFFFFEBEAAAAAAAAFAFFFFFAEAA AABAABFFFFFAFAAAAAAABEBFFFFEABBA ABFAABFFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAABFFFFFFAFAAAAABEBFFFFFFAEAA AABAABFFFFFFEBEAAAAFAFFFFFFEABBA ABFAAFFFFFFFFAFAAABEBFFFFFFFAFEA +AEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAA AABAAFFFFFFFFFAFABEBFFFFFFFEABBA ABFAAFFFFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAA AABAAFFFFFFFFFFEBAFFFFFFFFFEABBA ABFABFFFFFFFFFFFABFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFEFFFFFFFFFFFAEAA AABABFFFFFFFFFFFFFFFFFFFFFFEABBA ABFABFFFFFFFFFFFFFFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFFFFFFFFFFFFFBEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEFBBA ABFBEFBEFBEFBEFBEFBEFBEFBEFBEEEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAA AAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Lock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBF BBAEBAEBAAEAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEABEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Lock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBA ABAEBAEBAAEAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEABEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Unlock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAAAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEAAABAEBAEBAEABABAEBAEBAB EAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBF BBAEBAEBAEAAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEBAEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Unlock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAAAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEAAABAEBAEBAEABABAEBAEBAA AAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBA ABAEBAEBAEAAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEBAEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set for PAL / NTSC TV +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAABAEBAEBAEBAEBAABAEBAB EAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBF BBAEBAEBAEAAEBAEBAEBAEBAABAEBAEE +FEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAB EAEBAEBAEBAABAEBAEBAEBAABAEBAEBF BBAEBAEBAEBAABAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAABAEBAEBAABAEBAEBAB EAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBF BBAEBAEBAEBAEAAEBAEBAABAEBAEBAEE +FEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAB EAEBAEBAEBAEBAABAEBAABAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEABEFBEFBEFBEFBEFBEFBEFBEEAABF BBAAFBEFBEFBEFBEFBEFBEFBEFBAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAB EAEAAAAAAAAAAAAAAAAAAAAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAEAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAEBAEBAEBAEBAEBAEBAAAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEFBEBAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBAEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAAAAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set for PAL / NTSC TV +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAABAEBAEBAEBAEBAABAEBAA AAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBA ABAEBAEBAEAAEBAEBAEBAEBAABAEBAEA +AEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAA AAEBAEBAEBAABAEBAEBAEBAABAEBAEBA ABAEBAEBAEBAABAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAABAEBAEBAABAEBAEBAA AAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBA ABAEBAEBAEBAEAAEBAEBAABAEBAEBAEA +AEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAA AAEBAEBAEBAEBAABAEBAABAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEABEFBEFBEFBEFBEFBEFBEFBEEAABA ABAAFBEFBEFBEFBEFBEFBEFBEFBAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAA AAEAAAAAAAAAAAAAAAAAAAAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAEAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAEBAEBAEBAEBAEBAEBAAAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEFBEBAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBAEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAAAAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Start Slide Show +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAB EAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAAFBEFBEFBEFBEFBEFBEAAEE +FEBAEBAEBAEFBEFBEFBEFBEFBEFBABAB EAEBAEBAAFBEFBEFBEFBEFBEFBEFBABF BBAEBAEBAEFBEFBEFBEFBEFBEFBEFAEE +FEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAB EAEBAEBAAAAAAAAAAAAAAAAAABEFBABF BBAEBAAFBEFBEFBEFBEFBEFBEABEFAEE +FEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAB EAEBAAFBEFBEFBEFBEFBEFBEFBAFBABF BBAEBAEFBEFBEFBEFBEFBEFBEFAEFAEE +FEBAAAAAAAAAAAAAAAAAAAEFBEABEAAB EAEBAAAAAAAAAAAAAAAAAABEFBAFBABF BBAAFBEFBEFBEFBEFBEFBEABEFAEFAEE +FEBAEFBEFBEFBEFBEFBEFBAFBEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEFBEFBEFBEFBEFBEFAEFAEFAEE +FEABEFBEFBEFBEFBEFBEFBEABEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEAAAAAAAAAAAAFBEFAEFAEFAEE +FEABEFBAAAAAAAAAAAAEFBEABEABEAAB EAAFBEAAEBAEBAEBAEBAEFBAFBAFBABF BBAEFBABAEBAEBAEBAEABEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABABAB EAAFBABAEBAEBAEBAEBAAFBAFBAFAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAABAEE +FEABEAAEBAEBAEBAEBAEABEABEAAEBAB EAAFBABAEBAEBAEBAEBAAFBAFBABAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAEBAEE +FEABEFAEBAEBAEBAEBAAFBEABABAEBAB EAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBF BBAEFBEAAAAAAAAAAAAFBEFAABAEBAEE +FEABEFBAAAAAAAAAAAAEFBEAAEBAEBAB EAAFBEFBEFBEFBEFBEFBEFBABAEBAEBF BBAEFBEFBEFBEFBEFBEFBEFAEBAEBAEE +FEBAEFBEFBEFBEFBEFBEFBABAEBAEBAB EAEABEFBEFBEFBEFBEFBEFAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAABAEBAEBAEE +FEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Start Slide Show +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAA AAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAAFBEFBEFBEFBEFBEFBEAAEA +AEBAEBAEBAEFBEFBEFBEFBEFBEFBABAA AAEBAEBAAFBEFBEFBEFBEFBEFBEFBABA ABAEBAEBAEFBEFBEFBEFBEFBEFBEFAEA +AEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAA AAEBAEBAAAAAAAAAAAAAAAAAABEFBABA ABAEBAAFBEFBEFBEFBEFBEFBEABEFAEA +AEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAA AAEBAAFBEFBEFBEFBEFBEFBEFBAFBABA ABAEBAEFBEFBEFBEFBEFBEFBEFAEFAEA +AEBAAAAAAAAAAAAAAAAAAAEFBEABEAAA AAEBAAAAAAAAAAAAAAAAAABEFBAFBABA ABAAFBEFBEFBEFBEFBEFBEABEFAEFAEA +AEBAEFBEFBEFBEFBEFBEFBAFBEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEFBEFBEFBEFBEFBEFAEFAEFAEA +AEABEFBEFBEFBEFBEFBEFBEABEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEAAAAAAAAAAAAFBEFAEFAEFAEA +AEABEFBAAAAAAAAAAAAEFBEABEABEAAA AAAFBEAAEBAEBAEBAEBAEFBAFBAFBABA ABAEFBABAEBAEBAEBAEABEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABABAA AAAFBABAEBAEBAEBAEBAAFBAFBAFAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAABAEA +AEABEAAEBAEBAEBAEBAEABEABEAAEBAA AAAFBABAEBAEBAEBAEBAAFBAFBABAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAEBAEA +AEABEFAEBAEBAEBAEBAAFBEABABAEBAA AAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBA ABAEFBEAAAAAAAAAAAAFBEFAABAEBAEA +AEABEFBAAAAAAAAAAAAEFBEAAEBAEBAA AAAFBEFBEFBEFBEFBEFBEFBABAEBAEBA ABAEFBEFBEFBEFBEFBEFBEFAEBAEBAEA +AEBAEFBEFBEFBEFBEFBEFBABAEBAEBAA AAEABEFBEFBEFBEFBEFBEFAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAABAEBAEBAEA +AEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 72 +# Height: 36 +# Length: 2592 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBE +AEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFB +BAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEF +EBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Width: 18 +# Height: 12 +# Length: 216 +# +0000000000000000000000000000FBEF0000 +0000EEFE00000000BBAB00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000BBAB00000000FAAF0000 +0000EFBE0000000000000000000000000000 +# +# Title: ? +# Length: 544 +# +FBCFBCFBEF3EF3EF +# +FAEBAEBAEBAEBAE8 ABAEBAEAAEBAEBAF EEBAEBAEFAEBAEBB +FAEBAEFAAFAEBAEA 2BAEBBEBAAEAEBAF EEBAEFAEBAEBAEBB +FAEBAEBAEBBABAE8 ABAEAAEBAEBAEBAF EEBAEEAEBAABAEBB +FAEBAEAAABBABAEA 2BAEAAAFBEBAEBAF EEBAEFBBABEBAEBB +FAEBAAFAAFAABAE8 ABAEABEAAEFAEBAF EEBAEEABEAEBAEBB +FAEBBEAAAABEBAEA 2BAEBAEAABAAABAF EEBAEAAAAAAFAEBB +FAEAAAAFFAAABAE8 ABAEEABEBEABABAF EEBAEEBAAEBBAEBB +FAEAAABEBEAABAEA 2BAEFAAFFAABABAF EEBAAAEAABAEAEBB +FAEBBEAAAABEBAE8 ABAEABABEAFAEBAF EEBAEBBAABEBAEBB +FAEBAEBBEEAEBAEA 2BAEBAAAAABAEBAF EEBAEBAEBAEBAEBB +# +CFBEF3CF3CFBEFBC +# +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# same as above +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000020000 +00000000000000000000000000000000000AC000 +00000000000000000000000000000000002BA000 +0000000000000000000000000000000000AEB800 +0000000000000000000000000000000002BAEB00 +000000000000000000000000000000000AEBAE80 +000000000000000000000000000000002BAEBAE0 +00000000000000000000000000000000AEBAEBAC +000000000000000000000000000000003AEBAEB0 +000000000000000000000000000000000BAEBAC0 +0000000000000000000000000000000002BAEB00 +0000000000000000000000000000000000EBAC00 +00000000000000000000000000000000002EB000 +00000000000000000000000000000000000AC000 +0000000000000000000000000000000000030000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000200000000000000020000 +0000000000000000000B800000000000000AC000 +0000000000000000002EB00000000000002BA000 +000000000000000000BAE8000000000000AEB800 +000000000000000002EBAE000000000002BAEB00 +00000000000000000BAEBAC0000000000AEBAE80 +00000000000000002EBAEBA0000000002BAEBAE0 +0000000000000000BAEBAEB800000000AEBAEBAC +00000000000000002BAEBAE0000000003AEBAEB0 +00000000000000000EBAEB80000000000BAEBAC0 +000000000000000002EBAE000000000002BAEB00 +000000000000000000AEB8000000000000EBAC00 +0000000000000000003AE00000000000002EB000 +0000000000000000000B800000000000000AC000 +0000000000000000000200000000000000030000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0003000000000000000200000000000000020000 +000E800000000000000B800000000000000AC000 +003AE00000000000002EB00000000000002BA000 +00EBAC000000000000BAE8000000000000AEB800 +03AEBA000000000002EBAE000000000002BAEB00 +0EBAEB80000000000BAEBAC0000000000AEBAE80 +3AEBAEB0000000002EBAEBA0000000002BAEBAE0 +EBAEBAE800000000BAEBAEB800000000AEBAEBAC +2EBAEBA0000000002BAEBAE0000000003AEBAEB0 +0AEBAE80000000000EBAEB80000000000BAEBAC0 +03AEBA000000000002EBAE000000000002BAEB00 +00BAE8000000000000AEB8000000000000EBAC00 +002BA00000000000003AE00000000000002EB000 +000E800000000000000B800000000000000AC000 +0002000000000000000200000000000000030000 +# +# Title: ? +# Width: 72 +# Height: 74 +# Length: 5328 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAFBEFBEFBEFBEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEEAAAAA +AAAAABEFBEFBEFBEFBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAABFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEAAA +AAAFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBAAA +AAAFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFAAA +AAAFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEAAA +AAAFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAABFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEEAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 24 +# Height: 10 +# Length: 240 +# +00000003800000000000000EB00000000000003AE8000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +0000002BAC0000000000000EB000000000000002C0000000 +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF8EAA8AE88FFFFFFFFFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFF8EEEEA888A8AA8AAEEEEFEEFF8FFFFFFFF +FFFFF8FFFFFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF +FFFF89999999999FAAAAAAAAEEEEEF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +F89999999999998EAAAA8F88AEEEEF8FFFFFFFFF +899999999999AAEEAAA8FEFFAAEFFF8FFFFFFFFF +F8999999999A88EEAAA8FFEEAEEEEF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFF899998AA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFF8988EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFF888EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA888EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA888AAAAAAAAAAAEEEEF8FFFFFFFFF +FFFFFFF88EAAAAAAAAAAEAEEAEEFFF8FFFFFFFFF +FFFFFFFFF88EEEEEEEEEEEEEEEFFF88FFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999FFFFFF999999999999999999 +999999999999999FEAA8AEFF9999999999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +999999FEEEEA888A8AA8AAEEEEFEEFFF99999999 +99999FFFFFFFFFFFFFFFFFFFFFFFFFFF99999999 +99999F888888888FAAAAAAAAEEEEEFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +9F8888888888FF8EAAAA8F88AEEEEFF999999999 +F8888888888FAAEEAAA8FEFFAAEFFFF999999999 +9F88888888FA88EEAAA8FFEEAEEEEFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +9999F8888FAA88EEAAA8FFEEAEEEEFF999999999 +99999F8FFEAA88EEAAA8FEEEAAEFFFF999999999 +999999FFFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA888EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA888AAAAAAAAAAAEEEEFF999999999 +9999999FFEAAAAAAAAAAEAEEAEEFFFF999999999 +999999999FFEEEEEEEEEEEEEEEFFFFF999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999999999999999999999999999999999 +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FF88888888888888888888888888888888888FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FDDDDDBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDDDBBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDBBBBBBFF8FCCCCCEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCCEEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCEEEEEF8FAAA99999F8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FBBBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FCCCCAAAFF8FCCCCCDDDF8FCCCBBBBBF8FFF +FF88FCCCCAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99999B9FF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99BBBB9FF8FDAAAAAAAF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEE99FF8FEEEEBBBBF8FDDDDDDDDF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9F99999999999999999999999999999999999FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FDDDDDBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDDDBBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDBBBBBBFF9FCCCCCEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCCEEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCEEEEEF9FAAA99999F9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FBBBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FCCCCAAAFF9FCCCCCDDDF9FCCCBBBBBF9FF9 +9F99FCCCCAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99999B9FF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99BBBB9FF9FDAAAAAAAF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEE99FF9FEEEEBBBBF9FDDDDDDDDF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9999999999999999999999999999999999999999 +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFF88EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8888FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFFF8EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FFFF99999999999FEFF99999999999 +9999999999999999999999999FEFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999FFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEEFFFFF +FFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAEFFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEFFF +FFFFFFFEEAAAAAAAAAAAAAAAAAAAAAAEAAAAEFFF +FFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEAAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEEFFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEFFFFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAEFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEFFFFFFFFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEFFFFFFFFFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +999999999999FFFFFFFFFFFFFFFFFFFFFFF99999 +99999999999FAAAAAAAAAAAAAAAAAAAAAAAF9999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +999999999FFFFFFFFFFFFFFFFFFFFFFAAAAAF999 +9999999FFAAAAAAAAAAAAAAAAAAAAAAFAAAAF999 +999999FAAAAAAAAAAAAAAAAAAAAAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +9999FAAAAAAAAAAAAAAAAAAAAAAFFAAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFF99999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFF999999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAF99999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAF9999999999 +9999FAAAAAAAAAAAAAAAAAAAAAAFF99999999999 +99999FFFFFFFFFFFFFFFFFFFFFF9999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Locked +# Width: 12 +# Height: 24 +# Length: 288 +# +999999999999999999999999 +99999999FFEEEFF999999999 +9999999FEEFFFEEF99999999 +9999999EEF999FEE99999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9FFFFF9FF9999999 +999999FFFEEEEEFFF9999999 +999999FEEEDDDEEEF9999999 +99999FEEEEFFFEEEEF999999 +9999FEEEFFF8FFFEEEF99999 +9999FEEFFFFFFFFFEEF99999 +9999EEEFFFFFFFFFEEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF88AFFFFEE99999 +9999EEFFFF8AEFFFFEE99999 +9999FEEFFFFFFFFF8EF99999 +99999FEFFFFFFFFFEF999999 +999999FEFFF8FFFEF9999999 +9999999EEEFFF8EE99999999 +999999999FFFFF9999999999 +999999999999999999999999 +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000B00000 +000000000000000000000000000000000BBB0000 +00000000000000000000000000000000BBBBB000 +0000000000000000000000000000000BBBBBBB00 +000000000000000000000000000000BBBBBBBBB0 +0000000000000000000000000000000BBBBBBB00 +00000000000000000000000000000000BBBBB000 +000000000000000000000000000000000BBB0000 +0000000000000000000000000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +00000000000000000000B0000000000000B00000 +0000000000000000000BBB00000000000BBB0000 +000000000000000000BBBBB000000000BBBBB000 +00000000000000000BBBBBBB0000000BBBBBBB00 +0000000000000000BBBBBBBBB00000BBBBBBBBB0 +00000000000000000BBBBBBB0000000BBBBBBB00 +000000000000000000BBBBB000000000BBBBB000 +0000000000000000000BBB00000000000BBB0000 +00000000000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +000000B0000000000000B0000000000000B00000 +00000BBB00000000000BBB00000000000BBB0000 +0000BBBBB000000000BBBBB000000000BBBBB000 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +00BBBBBBBBB00000BBBBBBBBB00000BBBBBBBBB0 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +0000BBBBB000000000BBBBB000000000BBBBB000 +00000BBB00000000000BBB00000000000BBB0000 +000000B0000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAABEFBEFBEFBEFBEFBEFBEAAAAEB +AEAAAAFBEFBEFBEFBEFBEFBEFBAAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAABBEFBEFBEFBEFBEFBEFBEEAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBAEABAE BAEAFAAFBEFBEFBEFBEFBEFBEEBEAABA EBABEFAEFBEFBEFBEFBEFBEFBAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEEBEFABAE BAEAFBEABEFBEFBEFBEFBEFBAFBEEABA EBABEFBEBBEFBEFBEFBEFBEEBEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBAFBEFABAE BAEAFBEFAAFBEFBEFBEFBEEBEFBEEABA EBABEFBEFAEFBEFBEFBEFBEFBEFBEAEB +AEABBEFBEEBEFBAFBEFBEFBEFBEFABAE BAEAFBEFBEABEEBEFBEFBEFBEFBEEABA EBABEFBEFBEFAABBEFBEFBEFBEFBEAEB +AEABBEFBEFBEAAAFBEFBEFBEFBEFABAE BAEAFBEFBEFAAABEAAEAAAFBEFBEEABA EBABEFBEFBEFAABBAABAABEFBEFBEAEB +AEABBEFBEFBEEAAFAAEAAFBEFBEFABAE BAEAFBEFBEFBEABEEAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFBEABEFBEFBEFABAE BAEAFBEFBEFBEABEFAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFAAFAAFBEFBEFABAE BAEAFBEFBEEBEABEAAEAAEFBEFBEEABA EBABEFBEFBAFAABAABBEABEFBEFBEAEB +AEABBEFBEEBEFBEFBEFBEFAEFBEFABAE BAEAFBEFBAFBEFBEFBEFBEEBEFBEEABA EBABEFBEEBEFBEFBEFBEFBEABEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBEBBEFABAE BAEAFBEEBEFBEFBEFBEFBEFBAFBEEABA EBABEFBAFBEFBEFBEFBEFBEFAAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEFAEFABAE BAEAFBAFBEFBEFBEFBEFBEFBEEBEAABA EBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBEAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAAABEFBEFBEFBEFBEFBEFBEEAAAEB +AEAAAABBEFBEFBEFBEFBEFBEFBAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Normal +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAABEFBEFBEFBEFBEFBEFBEAAAAEE +FEAAAAFBEFBEFBEFBEFBEFBEFBAAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAABBEFBEFBEFBEFBEFBEFBEEAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBAEABAB EAEAFAAFBEFBEFBEFBEFBEFBEEBEAABF BBABEFAEFBEFBEFBEFBEFBEFBAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEEBEFABAB EAEAFBEABEFBEFBEFBEFBEFBAFBEEABF BBABEFBEBBEFBEFBEFBEFBEEBEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBAFBEFABAB EAEAFBEFAAFBEFBEFBEFBEEBEFBEEABF BBABEFBEFAEFBEFBEFBEFBEFBEFBEAEE +FEABBEFBEEBEFBAFBEFBEFBEFBEFABAB EAEAFBEFBEABEEBEFBEFBEFBEFBEEABF BBABEFBEFBEFAABBEFBEFBEFBEFBEAEE +FEABBEFBEFBEAAAFBEFBEFBEFBEFABAB EAEAFBEFBEFAAABEAAEAAAFBEFBEEABF BBABEFBEFBEFAABBAABAABEFBEFBEAEE +FEABBEFBEFBEEAAFAAEAAFBEFBEFABAB EAEAFBEFBEFBEABEEAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFBEABEFBEFBEFABAB EAEAFBEFBEFBEABEFAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFAAFAAFBEFBEFABAB EAEAFBEFBEEBEABEAAEAAEFBEFBEEABF BBABEFBEFBAFAABAABBEABEFBEFBEAEE +FEABBEFBEEBEFBEFBEFBEFAEFBEFABAB EAEAFBEFBAFBEFBEFBEFBEEBEFBEEABF BBABEFBEEBEFBEFBEFBEFBEABEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBEBBEFABAB EAEAFBEEBEFBEFBEFBEFBEFBAFBEEABF BBABEFBAFBEFBEFBEFBEFBEFAAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEFAEFABAB EAEAFBAFBEFBEFBEFBEFBEFBEEBEAABF BBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBEAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAAABEFBEFBEFBEFBEFBEFBEEAAAEE +FEAAAABBEFBEFBEFBEFBEFBEFBAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Zoom +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEEABAE BAEAABAFBEFBEFBEFBEFBEFBEABAEABA EBABEBAEFBEFBEFBEFBEFBEFBAEBEAEB +AEABBAABEFBEFBEFBEFBEFBEFAAFABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAAAAAAAAAAAAAAAAAAAAABEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEFFEBAEBAEBAEAFABAE BAEAFABAEBAEBBFFFEBAEBAEBABEEABA EBABEEABAFFAEFFFFEEBAEBAEABBEAEB +AEABBEAEBBEBAFFBFFAEBAEBAEAFABAE BAEAFABAEBEEBFEBFEBFFBFFFABEEABA EBABEEABAFFAEBEFFEEFFEFFEABBEAEB +AEABBEAFFFFFEEBFFBAFFBFFAEAFABAE BAEAFABBFFFFFAFFFEBBFFFEBABEEABA EBABEEABAFFAEBBFFAEBFFFAEABBEAEB +AEABBEAEBBEBAEFFEBAEBFEBAEAFABAE BAEAFABAEBEEBAFFAEBAFFFEBABEEABA EBABEEABAFFAEBFEBAEBFFFAEABBEAEB +AEABBEAEBAEBAFFFFFAFFAFFAEAFABAE BAEAFABAEBAEBFFFFEBFFBFFBABEEABA EBABEEABAEBAFFFFFEFFEEBFEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAAAAAAAAAAAAAAAAAAAAABABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAEFBEFBEFBEFBEFBEFBAABEAEB +AEABBAABEFBEFBEFBEFBEFBEFAEBABAE BAEAEBAFBEFBEFBEFBEFBEFBEABAEABA EBABAFBEFBEFBEFBEFBEFBEFBEFAAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEFABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Zoom +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEEABAB EAEAABAFBEFBEFBEFBEFBEFBEABAEABF BBABEBAEFBEFBEFBEFBEFBEFBAEBEAEE +FEABBAABEFBEFBEFBEFBEFBEFAAFABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAAAAAAAAAAAAAAAAAAAAABEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEFFEBAEBAEBAEAFABAB EAEAFABAEBAEBBFFFEBAEBAEBABEEABF BBABEEABAFFAEFFFFEEBAEBAEABBEAEE +FEABBEAEBBEBAFFBFFAEBAEBAEAFABAB EAEAFABAEBEEBFEBFEBFFBFFFABEEABF BBABEEABAFFAEBEFFEEFFEFFEABBEAEE +FEABBEAFFFFFEEBFFBAFFBFFAEAFABAB EAEAFABBFFFFFAFFFEBBFFFEBABEEABF BBABEEABAFFAEBBFFAEBFFFAEABBEAEE +FEABBEAEBBEBAEFFEBAEBFEBAEAFABAB EAEAFABAEBEEBAFFAEBAFFFEBABEEABF BBABEEABAFFAEBFEBAEBFFFAEABBEAEE +FEABBEAEBAEBAFFFFFAFFAFFAEAFABAB EAEAFABAEBAEBFFFFEBFFBFFBABEEABF BBABEEABAEBAFFFFFEFFEEBFEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAAAAAAAAAAAAAAAAAAAAABABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAEFBEFBEFBEFBEFBEFBAABEAEE +FEABBAABEFBEFBEFBEFBEFBEFAEBABAB EAEAEBAFBEFBEFBEFBEFBEFBEABAEABF BBABAFBEFBEFBEFBEFBEFBEFBEFAAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEFABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Length: 48 +# +00000003 +00000003 +00000003 +00000003 +00000003 +00000003 +00000003 +00000003 +00000003 +00000003 +00000003 +00000003 +# +# Title: ? +# Length: +# +00000000000007E01FF81C38381C381C381C381C1C381FF807E0000000000000 +00000000000003801F801F80038003800380038003803FF83FF8000000000000 +0000000000000FE03FF03838003800F003E00F803E383FF83FF8000000000000 +0000000000000FE03FF03838003803F003F0003838383FF00FE0000000000000 +00000000000003E007E00EE01CE038E07FF87FF800E007F807F8000000000000 +0000000000003FF83FF838003FE03FF00078003878783FF00FC0000000000000 +00000000000007F01FF03C003BC07FF07C7878383C783FF00FC0000000000000 +0000000000003FF83FF8007000F000E001E001C003C003800780000000000000 +00000000000007E01FF81C381C380FF01FF8381C381C1FF807E0000000000000 +00000000000007E01FF83C78383C3C7C1FFC07B800781FF01FC0000000000000 +0000000000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +0000000000007FF87FFE1C0E1C0E1FF81FFE1C0E1C0E7FFE7FF8000000000000 +00000000000007F61FFE3C0E78067000700078003C0E1FFE07F0000000000000 +0000000000007FE07FF81C3C1C1E1C0E1C0E1C1E1C3C7FF87FE0000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C001C007F807F80000000000000 +00000000000007F61FFE3C0E78007000703F783F3C0E1FFE07F0000000000000 +0000000000007E7E7E7E1C381C381FF81FF81C381C387E7E7E7E000000000000 +0000000000003FF83FF80380038003800380038003803FF83FF8000000000000 +00000000000007FE07FE0070007000707070707078F03FE01FC0000000000000 +0000000000007EFC7EFC1C701CE01FC01FE01DF01C7C7F3E7F3E000000000000 +0000000000007FC07FC00E000E000E000E000E060E067FFE7FFE000000000000 +000000000000F83EFC7E7C7C7EFC77DC77DC739C739CF93EF83E000000000000 +000000000000F8FEFCFE3E383F383FB83BF839F838F8FE78FE38000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0000000000007FF07FF81C3C1C1C1C3C1FF81FF01C007F007F00000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE01FFE1CFC0000 +0000000000007FF07FFC1C3C1C3C1FF81FF01CF01C787F3E7F1E000000000000 +0000000000001FEC7FFC701C70007FF01FFC001C701C7FFC6FF0000000000000 +0000000000007FFC7FFC739C739C03800380038003803FF83FF8000000000000 +0000000000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +000000000000FEFEFEFE38381C701C700EE00EE007C007C00380000000000000 +000000000000FC3FFC3F718E718E3BDC3BDC3FFC1E781C381C38000000000000 +0000000000007F7E7F7E1E380FF007C003E00FF01C787EFE7EFE000000000000 +0000000000007EFC7EFC1C700EE007C007C0038003801FF01FF0000000000000 +0000000000003FFC3FFC38F839F003E007C00F9C1F1C3FFC3FFC000000000000 +000000000000000000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000000F800F8003BF03FFC3C1E380E380E3C1EFFFCFBF0000000000000 +000000000000000000000FDC3FFC783C70007000781C3FFC0FF0000000000000 +000000000000007C007C0FDC3FFC783C701C701C783C3FFF0FDF000000000000 +000000000000000000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +00000000000001FC07FC07003FF03FF00700070007003FF03FF0000000000000 +000000000000000000000FDF3FFF783C701C701C783C3FFC0FDC001C3FF81FF0 +000000000000F800F8003BF03FF83C38383838383838FEFEFEFE000000000000 +000000000380038000001F801F8003800380038003803FF83FF8000000000000 +0000000000E000E000003FE03FE000E000E000E000E000E000E001E03FC03F80 +0000000000007C007C001CF81CF81DE01F801FC01FF07CFC7C7C000000000000 +0000000000001F801F800380038003800380038003803FF83FF8000000000000 +00000000000000000000EF78FFFC739C739C739C739CFBDEFBDE000000000000 +00000000000000000000FBF0FFF83C38383838383838FEFEFEFE000000000000 +000000000000000000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +00000000000000000000FBF0FFFC3C1E380E380E3C1E3FFC3BF03800FF00FF00 +000000000000000000001FBE7FFEF078E038E038F0787FF81FB8003801FE01FE +000000000000000000003EF83FFE0F1E0E000E000E007FF07FF0000000000000 +000000000000000000001FB07FF070307FC01FF060707FF06FC0000000000000 +0000000000001C001C00FFF0FFF01C001C001C001C1C1FFC07F0000000000000 +00000000000000000000F8F8F8F838383838383838783FFE0FBE000000000000 +00000000000000007E7E7E7E1C381E780E7007E007E003C003C0000000000000 +00000000000000000000F83EF93E739C7BBC3FF83EF81C701C70000000000000 +000000000000000000007EFC7EFC1E700FC007E01CF07EFC7EFC000000000000 +000000000000000000007E7E7E7E1C380E700FE007C00380038007003FC03FC0 +000000000000000000003FF83FF831F003C007801F183FF83FF8000000000000 +00000000000003C003C003C003C003C001800180000003C003C0000000000000 +000000000000000000000000000000000000000003C003C003C0000000000000 +0000000000000FF01FF81C38003800F007C00700000007800780000000000000 +000000000000001C0038007000E001C0038007000E001C003800000000000000 +0000000000000000000003C003C003C00000000003C003C003C0000000000000 +00000000000007C00FE00E600F00079C1FD839F838F03FFC0FBC000000000000 +# +00001FF81FF8180018001FF81FF800007FFE7FFE1800180018001FF81FF80000 +00001E0C3F0C618C618C3F0C1E0C0FFC0FFC000C1FFC1FFC18001FFC1FFC0000 +00000C180C180C180C180E1E1E1E331861D860D800003FF83FF8001800180000 +000000367FB67FB60C360C360CF60CF61E361E363336333661B661B600060000 +00003FFC3FFC300C300C300C300C3FFC3FFC01800180018001807FFE7FFE0000 +000000063FE63FE60066006600663FE63FE63006300630363FF63FC600060000 +000000003FFC3FFC0000181818181C380C303FFC3FFC018001807FFE7FFE0000 +00007F667F666366637E637E7F667F6600060186018003C00E707C3E700E0000 +00003E303E3000307FB07FB0003E1E3E3F3061B061B061B061B03F301E300000 +0000000C7FEC7FEC060C060C060C0F0C0D8C1D8C18CC38CC706C606C000C0000 +00001F863FC6606660663FC61F8600067FE67FE60606067E067E060606060000 +00007FE67FE606060F061D8638E630660C060FFE0FFE0C060C060FFE0FFE0000 +000000187F987F9860186018601E601E6018601861D87FD87E18001800180000 +00000FF01FF8300C300C1FF80FF07FFE7FFE00181FF81FF818001FF81FF80000 +000000303FB03FB001B001B0033E033E063006300C3038303030003000300000 +000000667F667F660C660C660C7E1E7E1E663366336673E661E6006600660000 +00003FE63FE630063006300630063FE63FE60306030603067FF67FF600060000 +000000003FFC3FFC000C000C000C030C03180318031803007FFC7FFC00000000 +000000361C363E36633663366336637663766336633663363E361C3600000000 +00001E0C3F0C618C618C618C3F0C1E0C00300C300C301E7836FC73CE63060000 +00001800180018001FF81FF8000000007FFE7FFE1800180018001FF81FF80000 +00003FFC3FFC3000300030003FFC3FFC00007FFE7FFE01800180018001800000 +0000061806180618071E0F9E19D870D860180FE01FF0301830181FF00FE00000 +0000000C1F0C3F8C60CC60CC60CC3F8C1F0C000C000C7FEC7FEC000C000C0000 +00007F307F30633E633E7F307F3000003FF83FF8018003C006603E7C381C0000 +00000180018007E03E7C381C00007FFE7FFE18181FF81FF818181FF81FF80000 +0000001800187BD87BD818D818D818DE30DE3198619863180E180C1800180000 +00007F987F980C1E0E1E1E181B18719860C01FF81FF8181818181FF81FF80000 +00001FF81FF80018001800307FFE7FFE00001FFC1FFC180C180C1FFC1FFC0000 +000000367E367E3666366636663666F666F66636663666367E367E3600060000 +00001800180018001FF81FF8000000007FFE7FFE0C300C300C300C300C300000 +00001F863FC630C67FE67FE606061FFE1FFE00061FFE1FFE18001FFE1FFE0000 +000000301C303E3063306330633E633E63306330633063303E301C3000300000 +0000000C300C300C300C300C300C300C300C30EC3FEC3F8C000C000C000C0000 +000000001FF03FF8701C600C701C3FF81FF00000018001803FFC3FFC00000000 +00003F183F1800187FD87FD83F1E619E7F983F180C187FF87FF8001800180000 +00003F067F8661866186618661867F863F0600060C060C060C000FFE0FFE0000 +000007E01FF8381C300C1FF80FF00C307FFE7FFE1818300C381C1FF807E00000 +00007F067F060C3E0C3E1E067306618607F01FFC380E3006380E1FFC07F00000 +000000307FB07FB001B001B07FB07F3E033E0330063006300C30783070300000 +00001800180018001800180018001FF81FF80180018001807FFC7FFC00000000 +00007FFE7FFE018007E03E7C381C7FFE7FFE00067FFE7FFE60007FFE7FFE0000 +000000003FF83FF83000300030003FF83FF80180018001807FFC7FFC00000000 +000060186018601E7F9E7F9800183FF83FF800383FF83FF830003FF83FF80000 +000000187BD87BD83198319831983B9E6EDE66D866D80C780C78001800180000 +00007F0C7F0C630C630C7F0C7FEC0FEC00007FFC7FFC07C01C70783C701C0000 +000000307F307F300330063E063E1C30783060300C300C000C000FF80FF80000 +00001F181F1800187FD87FD800181F1E3FDE60D860D83F981F187FD87FD80000 +00007F067F7E637E63066306637E7F7E7F0600061806180618001FF81FF80000 +00007F067F3E633E630663067F3E7F3E00061FF63FF8600C600C3FF81FF00000 +00001E303F3061B061BE61BE3F301E3000303FF83FF8301830183FF83FF80000 +00007FFE7FFE0180018003C007E00E701C38781E6186018001807FFE7FFE0000 +00007F867F860C3E3F3E738661867FFE7FFE00067FFE7FFE60007FFE7FFE0000 +00000180018007E01E78781E60067FFE7FFE000C3FFC3FFC30003FFC3FFC0000 +000000307F307F300330033003307F3E7F3E6030603063B07FB07E3000300000 +000000060F061F8639C630C630C630C630C630C630C639C61F860F0600060000 +000000003FF83FF83000300030003FF83FF80000000000007FFE7FFE00000000 +000001800180018003C006600E707C3E700E00000C300C300C307FFE7FFE0000 +000006060606070607060D860D860D8618C618C6306670766036000600060000 +00007F307F306330633E633E7F307F30003018301800180018001FF81FF80000 +00003E363E3600367FB67FB600361E3E3F3E61B661B661B661B63F361E360000 +00007F987F980C180C180E1E1E1E331861D860D800003FF83FF8001800180000 +00000FE01FF03018301830181FF00FE000007FFE7FFE300030003FF03FF00000 +00000C300C300C300C300C300C301E3E1E3E1E303330333061B061B000300000 +0000000C7FCC7FCC060C060C0F0C198C39CC30CC000C180C18001FFC1FFC0000 +0000300C300C3FFC3FFC300C300C3FFC3FFC0000018001807FFE7FFE00000000 +0000000C000C3FEC3FEC006C006C00CC00CC018C038C0F0C3C0C300C000C0000 +00006006603E603E6006603E63BE7F867C0600061806180618001FF81FF80000 +000000361C363E3663766376633663366336637663763E361C36003600360000 +0000018007E01E78381C7FFE00001FF81FF800181FF81FF818001FF81FF80000 +000007E000007FFE018007E03E7C381C7FFE01803FFC000C3FFC30003FFC0000 +00000C0C0C0C3F3C3F3C738C618C7FFC7FFC000C1FFC1FFC18001FFC1FFC0000 +00000FF01FF8300C300C300C1FF80FF000007FFE7FFE0C300C300C300C300000 +00001F0C1F0C000C7FCC1F0C318C7FFC7FFC000C1FFC1FFC18001FFC1FFC0000 +00003F9800181B1E1B1E3F9800183FF83FF800383FF83FF830003FF83FF80000 +00001FF81FF80018001800307FFE7FFE01800180018001800180018001800000 +00001E303F3061B061BE61BE3F301E30003030003000300030003FFC3FFC0000 +00001E063F06618661BE61BE3F061E0600066318633C633C63247F667F660000 +00000FF01FF8300C300C1FF80FF000007FFE00003FFC3FFC300C3FFC3FFC0000 +00001FF81FF807E00E700C307FFE7FFE01800FF01FF8300C300C1FF80FF00000 +000000060F061F8639C630C630C630FE30FE30C630C639C61F860F0600060000 +00007F867F860C061E3E1E3E73866186618600003000300030003FFC3FFC0000 +00007DF67DF6186638E630C679E67DF66DB600007FFE7FFE0006000600060000 +000000001FF03FF8701C600C701C3FF81FF00C600C600C607FFC7FFC00000000 +000060D87FD87FDE60DE7FD87FD800007FFE7FFE00C67FC660067FC67FC60000 +000000303030303030303030303C303C303033B03FB03E300030003000300000 +000000180F181F9839D830D830DE30DE30D830D830D839D81F980F1800180000 +00001FF83FFC300C3FFC1FF800007FFE01801FF800181FF818001FF81FF80000 +00000F0C0F0C000C7FEC7FEC198C30CC30CC000C7FEC7FEC060C060C060C0000 +000001800180018003C006600E707C3E700E01800180018001807FFE7FFE0000 +0000000C3F8C3F8C018C01BC033C030C060C063C0C3C380C300C000C000C0000 +00007E367E3606F60EF61C36783660000C0C1C1C181830303C3C6E6E66660000 +00003FFC3FFC07E00E701C3800007FFE7FFE01801FF81FF818181FF81FF80000 +00001E0C3F0C618C618C3F0C1E0C0FFC0FFC000C1FFC1FFC18001FFC1FFC0000 +00006330633063307F3E7F3E633063307F307F300000180018001FF81FF80000 +# +# Text: / +# +2F 00 +# +# Text: : +# +3A 00 +# +# Text: am +# +61 6D 00 +# +# Text: pm +# +70 6D 00 +# +# Text: No pictures in camera. +# +A7 9D B6 92 BF C0 B7 CD CE 00 +# +# Text: Yes +# +C4 00 +# +# Text: No +# +A0 A1 A2 00 +# +# Text: . +# +2E 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Lock? +# +9B 9C 3F 00 +# +# Text: Unlock? +# +9B 9C BC 83 3F 00 +# +# Text: Erase? +# +82 83 3F 00 +# +# Text: View Small Photos? +# +BD BE BF C0 C1 C2 3F 00 +# +# Text: View Full screen? +# +00 +# +# Text: Set Screen Brightness? +# +A3 B0 D4 C2 B3 B4 3F 00 +# +# Text: Start Slide Show? +# +C5 B6 B7 B8 B9 BA BD 3F 00 +# +# Text: Stop Slide Show? +# +00 +# +# Text: Set Camera Exposure? +# +A7 9D B6 A8 C6 B3 B4 3F 00 +# +# Text: Format Memory Card? +# +9D 84 85 A7 B8 86 87 3F 00 +# +# Text: Set Date & Time? +# +AB AC AD BA AE C7 A6 3F 00 +# +# Text: Set for NTSC TV? +# +4E 54 53 43 0A 54 56 A5 20 C7 A6 00 +# +# Text: Set for PAL TV? +# +50 41 4C 0A 54 56 A5 20 C7 A6 00 +# +# Text: Review Pictures? +# +BF C0 C1 C2 3F 00 +# +# Text: Take Pictures? +# +BF C0 D2 C2 3F 00 +# +# Text: +# +00 +# +# Text: One +# +88 D5 0A 20 20 20 20 20 00 +# +# Text: None +# +D6 A1 A2 0A 20 20 20 20 20 00 +# +# Text: All +# +84 95 0A 20 20 20 20 20 00 +# +# Text: +# +00 +# +# Text: ERASE? +# +82 83 3F 00 +# +# Text: Erase This Picture? +# +B7 BF C0 8D 89 D7 9A D3 3F 00 +# +# Text: Cancel Picture Erase? +# +BF C0 82 83 D8 D9 3F 00 +# +# Text: Erase All Pictures? +# +84 80 BF C0 8D 82 83 3F 00 +# +# Text: Erasing picture... +# +BF C0 82 83 CF 00 +# +# Text: Picture is LOCKED Unlock before erasing +# +BF C0 B7 9B DA 93 CE 0A 82 83 D1 9B 9C BC 83 00 +# +# Text: Erase ALL pictures? +# +84 80 BF C0 8D 82 83 3F 00 +# +# Text: Erasing ALL pictures... +# +84 80 BF C0 82 83 CF 00 +# +# Text: Normal? +# +DD DE 3F 00 +# +# Text: Zoom? +# +DC 3F 00 +# +# Text: Set Screen Brightness +# +0A A3 B0 D4 C2 B3 B4 00 +# +# Text: Set Camera Exposure +# +0A A7 9D B6 A8 C6 B3 B4 00 +# +# Text: Formatting resets the memory card and erases all photos on it. Format? +# +86 87 8D AF B0 0A 9D 84 85 A7 B8 8E 8F B4 A6 90 91 0A 9D 84 85 A7 B8 92 93 94 BF C0 B7 0A 84 95 89 8A 8B A1 8C 0A 0A 86 87 88 DB 99 A1 9A 3F 00 +# +# Text: Formatting the memory card..... +# +9D 84 85 A7 B8 86 87 CF 00 +# +# Text: Set for PAL TV? +# +50 41 4C 0A 54 56 A5 20 C7 A6 00 +# +# Text: Set for NTSC TV? +# +4E 54 53 43 0A 54 56 A5 20 C7 A6 00 +# +# Text: +# +00 +# +# Text: This pict +# +B7 BF C0 BB 00 +# +# Text: No +# +A0 A1 A2 00 +# +# Text: ALL pict +# +84 80 BF C0 00 +# +# Text: January +# +20 31 9F 00 +# +# Text: February +# +20 32 9F 00 +# +# Text: March +# +20 33 9F 00 +# +# Text: April +# +20 34 9F 00 +# +# Text: May +# +20 35 9F 00 +# +# Text: June +# +20 36 9F 00 +# +# Text: July +# +20 37 9F 00 +# +# Text: August +# +20 38 9F 00 +# +# Text: September +# +20 39 9F 00 +# +# Text: October +# +31 30 9F 00 +# +# Text: November +# +31 31 9F 00 +# +# Text: December +# +31 32 9F 00 +# +# Text: Day +# +20 20 81 00 +# +# Text: Month +# +20 20 9F 00 +# +# Text: Year +# +20 20 C3 00 +# +# Text: Time +# +20 20 BA AE 00 +# +# Text: AM +# +41 4D 00 +# +# Text: PM +# +50 4D 00 +# +# Text: Set Date and Time +# +20 20 20 20 20 AB AC AD BA AE C7 A6 00 +# +# Text: Is this correct? +# +98 99 A1 9A 3F 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Service Menu +# +20 20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 20 20 00 +# +# Text: P +# +50 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: S +# +53 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service ID +# +53 65 72 76 69 63 65 20 49 44 20 20 20 20 20 20 20 00 +# +# Text: Ver +# +56 65 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service Menu 2 +# +20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 32 20 20 00 +# +# Text: Reset Pictures +# +52 65 73 65 74 20 50 69 63 74 75 72 65 73 20 20 20 00 +# +# Text: Reset Strobe Pict +# +52 65 73 65 74 20 53 74 72 6F 62 65 20 50 69 63 74 00 +# +# Text: Reset Born OnDate +# +52 65 73 65 74 20 42 6F 72 6E 20 4F 6E 44 61 74 65 00 +# +# Text: Reset FactoryDflt +# +52 65 73 65 74 20 46 61 63 74 6F 72 79 44 66 6C 74 00 +# +# Text: Are You Sure? +# +41 72 65 20 59 6F 75 20 53 75 72 65 3F 00 +# +# Text: Reset to 0 +# +52 65 73 65 74 20 74 6F 20 30 00 +# +# Text: S . +# +53 20 20 2E 20 20 00 +# +# Text: M . +# +4D 20 20 2E 20 20 00 +# +# Text: Yes +# +59 65 73 00 +# +# Text: No +# +4E 6F 00 +# +# Text: +# +00 +# +# Text: BornOnDate +# +42 6F 72 6E 4F 6E 44 61 74 65 20 20 20 20 20 20 20 00 +# +# Text: FinalErrCode +# +46 69 6E 61 6C 45 72 72 43 6F 64 65 20 20 20 20 20 00 +# +# Text: ResetFinalErrCode +# +52 65 73 65 74 46 69 6E 61 6C 45 72 72 43 6F 64 65 00 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/spanish b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/spanish new file mode 100644 index 00000000..22761e6f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/localization/spanish @@ -0,0 +1,2339 @@ +################################################################################ +# LOCALIZATION FOR HP PhotoSmart C30 # +# ---------------------------------- # +# This file (except the comments) will be sent to the camera (0x9200 command). # +# In order to make the data readable for humans, I commented the data and # +# formatted to some extend. # +# # +# SYMBOLS # +# ------- # +# Each symbol begins with a red pixel in the upper left corner, followed by a # +# yellow one, then by a blue one. The headline "red" does simply indicate that # +# those are lines beginning with a red pixel. The same with headline "yellow" # +# and headline "blue". The brightness of each pixel is defined by a value # +# ranging between A (dark) and F (bright). # +################################################################################ +# +# Variable: KC_LOCALIZE_CARDREV +# Value: 0x00 0x02 +# Length: 32 +# +4B 43 5F 4C 4F 43 41 4C 49 5A 45 5F 43 41 52 44 52 45 56 3A 00 02 FF FF FF FF FF FF FF FF FF FF +# +# Variable: LOCALIZATION +# Length: 16 +# +4C 4F 43 41 4C 49 5A 41 54 49 4F 4E FF FF FF FF +# +# Variable: LNG +# Value: 0x02 +# Length: 5 +# Explanation: Indicator for language. Known values are: +# - 0x00: English +# - 0x01: French +# - 0x02: Spanish +# - 0x04: German +# - 0x05: Japanese +# - 0x06: Korean +# +4C 4E 47 3A 02 +# +# Variable: TV +# Value: 0x01 +# Length: 4 +# Explanation: Format of TV output. Accepted values are: +# - 0x00: NTSC +# - 0x01: PAL +# - 0x02: Do not display TV menu. +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the format of the TV output. +# +54 56 3A 01 +# +# Variable: DT +# Value: 0x01 +# Length: 7 +# Explanation: Date format. Accepted values are: +# - 0x00: Month/Day/Year +# - 0x01: Day/Month/Year +# - 0x02: Year/Month/Day +# Neither the camera nor gphoto2 will use this variable. gphoto2 provides +# an extra command to set the date format. +# +44 54 3A 01 FF FF FF +# +# Variable: DST +# Value: 0x00 0x86 0x00 0x00 +# Length: 16 +# +44 53 54 3A 00 86 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SIZ +# Value: 0x00 0x01 0x00 0x00 +# Length: 16 +# +53 49 5A 3A 00 01 00 00 FF FF FF FF FF FF FF FF +# +# Variable: SUM: +# Value: 0x8C +# Length: 8 +# Explanation: Sum of all bytes starting with the table of contents. The camera +# won't check this number. +# +53 55 4D 3A 8C FF FF FF +# +# Variable: CRC +# Value: 0x78 0xF5 +# Length: 8 +# Explanation: FCS (frame check sequence) of CRC (cyclic redundancy check). The +# camera will check this number. +# +43 52 43 3A 78 F5 FF FF +# +# Table of Contents (text entries only) +# +# One entry: 00 FE XX XX (XX XX is the memory address). +# +00 FE C8 C0 +00 FE C8 C2 +00 FE C8 C4 +00 FE C8 C7 +00 FE C8 CA +00 FE C8 E2 +00 FE C8 E5 +00 FE C8 E8 +00 FE C8 EA +00 FE C8 EB +00 FE C8 EC +00 FE C8 F7 +00 FE C9 04 +00 FE C9 0D +00 FE C9 22 +00 FE C9 23 +00 FE C9 46 +00 FE C9 70 +00 FE C9 71 +00 FE C9 93 +00 FE C9 B5 +00 FE C9 CC +00 FE C9 E3 +00 FE C9 F9 +00 FE CA 05 +00 FE CA 12 +00 FE CA 13 +00 FE CA 1D +00 FE CA 28 +00 FE CA 33 +00 FE CA 34 +00 FE CA 3D +00 FE CA 50 +00 FE CA 63 +00 FE CA 7C +00 FE CA 8D +00 FE CA BE +00 FE CA D7 +00 FE CA F3 +00 FE CA FC +00 FE CB 03 +00 FE CB 24 +00 FE CB 45 +00 FE CB A1 +00 FE CB C6 +00 FE CB DC +00 FE CB F3 +00 FE CB F4 +00 FE CC 00 +00 FE CC 03 +00 FE CC 16 +00 FE CC 1C +00 FE CC 24 +00 FE CC 2A +00 FE CC 30 +00 FE CC 35 +00 FE CC 3B +00 FE CC 41 +00 FE CC 48 +00 FE CC 53 +00 FE CC 5B +00 FE CC 65 +00 FE CC 6F +00 FE CC 73 +00 FE CC 77 +00 FE CC 7B +00 FE CC 80 +00 FE CC 83 +00 FE CC 86 +00 FE CC 95 +00 FE CC A4 +00 FE CC A5 +00 FE CC A6 +00 FE CC A7 +00 FE CC A8 +00 FE CC A9 +00 FE CC AA +00 FE CC AB +00 FE CC AC +00 FE CC AD +00 FE CC AE +00 FE CC C0 +00 FE CC D2 +00 FE CC E4 +00 FE CC F6 +00 FE CD 08 +00 FE CD 1A +00 FE CD 2C +00 FE CD 3E +00 FE CD 50 +00 FE CD 62 +00 FE CD 70 +00 FE CD 7B +00 FE CD 82 +00 FE CD 89 +00 FE CD 8D +00 FE CD 90 +00 FE CD 91 +00 FE CD A3 +00 FE CD B5 +# +# Title: Take Pictures +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAABAEBAAAAAAAEBAEBAEBAEBAEBF BBAEAAABAABAEAAABAEBEEBAEBAEBAEE +FEBAABAAAAEAAEAAEBAFAEEBAEBAEBAB EAEAAEAAEBAABAABAEBEBAAEBAEBAEBF BBAEBAEBAABAEBAEBAFAEBBAEBAEBAEE +FEBAABAAAAEAAEAAEBEBAEBBAEBAEBAB EAEAAEAAEBAABAABAFAEBAEABAEBAEBF BBAEAAABAABAEBAEBEBAEBAEEBAEBAEE +FEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAB EAEBAABAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAAABFFFFFFFFFFAFFEBFFFFFFFEAABF BBAAFFFFFFFFFFFAFFEBFFFFFFFFEAEE +FEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAB EAABAEBAEFBEFBEFAAABEFBEEAAABEBF BAAEBAEBBEFBEFBAAAAABEFBEAAABAAE +FEBAEBAEFBEFBEEAAAAABBEFAAAAAEAB EAABAEBAEFBEFBAABFFAAFBEEAAABEBF BAAEBAEBBEFBEEABFFFEAAFBEAAABAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAAFFFFFEABEFBEFBEBF BAAEBAEBBEFBEABFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBABFFFFFEAEFBEFBEEAB EAABAEBAEFBEFABFFFFFEABEFBEFBEBF BAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAE +FEBAEBAEFBEFBEAFFFFFABEFBEFBEEAB EAABAEBAEFBEFAABFFFEABBEFBEFBEBF BAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAE +FEBAEBAEFBEFBEEAAAAABBEFBEFBEEAB EAABAEBAEFBEFBEAAAAAEFBEFBEFBEBF BAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAE +FEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAB EAABAEBAEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Take Pictures +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAABAEBAAAAAAAEBAEBAEBAEBAEBA ABAEAAABAABAEAAABAEBEEBAEBAEBAEA +AEBAABAAAAEAAEAAEBAFAEEBAEBAEBAA AAEAAEAAEBAABAABAEBEBAAEBAEBAEBA ABAEBAEBAABAEBAEBAFAEBBAEBAEBAEA +AEBAABAAAAEAAEAAEBEBAEBBAEBAEBAA AAEAAEAAEBAABAABAFAEBAEABAEBAEBA ABAEAAABAABAEBAEBEBAEBAEEBAEBAEA +AEBAAAAEAAAAAEAAFAEBAEBAEEBAEBAA AAEBAABAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAAABFFFFFFFFFFAFFEBFFFFFFFEAABA ABAAFFFFFFFFFFFAFFEBFFFFFFFFEAEA +AEAFFFFFFFFFFFFAFFEBFFFFFFFFFAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA AAAEBAEBBEFBEFBEFBEFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFAAAAAEAA AAABAEBAEFBEFBEFAAABEFBEEAAABEBA AAAEBAEBBEFBEFBAAAAABEFBEAAABAAA +AEBAEBAEFBEFBEEAAAAABBEFAAAAAEAA AAABAEBAEFBEFBAABFFAAFBEEAAABEBA AAAEBAEBBEFBEEABFFFEAAFBEAAABAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAAFFFFFEABEFBEFBEBA AAAEBAEBBEFBEABFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBABFFFFFEAEFBEFBEEAA AAABAEBAEFBEFABFFFFFEABEFBEFBEBA AAAEBAEBBEFBEAAFFFFFEAFBEFBEFAAA +AEBAEBAEFBEFBEAFFFFFABEFBEFBEEAA AAABAEBAEFBEFAABFFFEABBEFBEFBEBA AAAEBAEBBEFBEFAAFFFAAEFBEFBEFAAA +AEBAEBAEFBEFBEEAAAAABBEFBEFBEEAA AAABAEBAEFBEFBEAAAAAEFBEFBEFBEBA AAAEBAEBBEFBEFBEAAAFBEFBEFBEFAAA +AEBAEBAEFBEFBEFBEFBEFBEFBEFBEEAA AAABAEBAEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBEBAEBAEEBAEBAEE +FEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAB EAEBAEBAEAAABAABAEAEBAEEBAEBAEBF BBAEBAEBAABAABAEBAFAEBBAEBAEBAEE +FEBAEBAEBAEAAEAAEBABAEEBAEBAEBAB EAEBAEBAEAAAAAABAEBABBAEBAEBAEBF BBAEBAEBAABAEAAEBAEBEEBAEBAEBAEE +FEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAB EAEBAEBAEAAABAABAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAAAAABAEBAEBAEBAEBAABAEBAB EAEBAEAAAAAABAEBAEBAEBAEAAABAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFFFFFFFFFFFFAFFEBFFFFFFFFFABF BAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAE +FEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAB EABFFFFFFFFFFFFAFFEBFFFFFFFFFEBF BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BABEFBEFBEFBEFBEFBEFBEFBEFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEEAEFBAAAAAAAAAAAAAABEABEBF BABEFBAABEFAEBAEBAEBAEBAAFAABAAE +FEBBEFAABBEAAEBAEBAEBAEBAEAAAEAB EAAFBEAAAFBABAEBAEBAEBAEABAABEBF BABEFBEABEFAEBAEBAEBAEBAAFAAFAAE +FEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEFBEABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAABBEAAEBAEBAEBAEBAEFBEEAB EAAFBEAAAFBABAEBAEBAEBAEABEFBEBF BABEFBAABEFAEBAEBAEBAEBAAFBEFAAE +FEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAB EAAFBEFBEFBABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAEBAEBAEBAEBAAFBEFAAE +FEBBAABEAAEAAEBAEBAEBAEBAEFBEEAB EAAFAAFBAABABAEBAEBAEBAEABEFBEBF BABEAAEFAAFAAAAAAAAAAAAAAFBEFAAE +FEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEBFFFFFFFFFFFFFFFFFFFFFFFFEABF BBABFFFFFFFFFFFFFFFFFFFFFFFFEAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBEBAEBAEEBAEBAEA +AEBAEBAEBAEAAEAAEAEBAEBBAEBAEBAA AAEBAEBAEAAABAABAEAEBAEEBAEBAEBA ABAEBAEBAABAABAEBAFAEBBAEBAEBAEA +AEBAEBAEBAEAAEAAEBABAEEBAEBAEBAA AAEBAEBAEAAAAAABAEBABBAEBAEBAEBA ABAEBAEBAABAEAAEBAEBEEBAEBAEBAEA +AEBAEBAEBAEAAEAAEBAEBAEBAEBAEBAA AAEBAEBAEAAABAABAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAAAAABAEBAEBAEBAEBAABAEBAA AAEBAEAAAAAABAEBAEBAEBAEAAABAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFABA AAAFFFFFFFFFFFFAFFEBFFFFFFFFFEAA +AEBFFFFFFFFFFFFAFFEBFFFFFFFFFEAA AABFFFFFFFFFFFFAFFEBFFFFFFFFFEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA AABEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEEAEFBAAAAAAAAAAAAAABEABEBA AABEFBAABEFAEBAEBAEBAEBAAFAABAAA +AEBBEFAABBEAAEBAEBAEBAEBAEAAAEAA AAAFBEAAAFBABAEBAEBAEBAEABAABEBA AABEFBEABEFAEBAEBAEBAEBAAFAAFAAA +AEBBEFBEFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEFBEABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAABBEAAEBAEBAEBAEBAEFBEEAA AAAFBEAAAFBABAEBAEBAEBAEABEFBEBA AABEFBAABEFAEBAEBAEBAEBAAFBEFAAA +AEBBEFAAFBEAAEBAEBAEBAEBAEFBEEAA AAAFBEFBEFBABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAEBAEBAEBAEBAAFBEFAAA +AEBBAABEAAEAAEBAEBAEBAEBAEFBEEAA AAAFAAFBAABABAEBAEBAEBAEABEFBEBA AABEAAEFAAFAAAAAAAAAAAAAAFBEFAAA +AEBBEFBEFBEAAAAAAAAAAAAAAEFBEEAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEBFFFFFFFFFFFFFFFFFFFFFFFFEABA ABABFFFFFFFFFFFFFFFFFFFFFFFFEAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: View Small Photos +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABAAAAAAAABAAAAAAAAEAAAAAAAAEBF BBFAAEBABAAFABEFBEFAAAEFBAEBAAEE +FEEABAEBEBAEAFBEFBEABABEFBAEABAB EABAEBABAEABAFFFEFBAEAFBEEBAAEBF BBFAAEBEBAAFABFFBEFAAAEFBAEBAAEE +FEEABABAEBAEAFFEFBAABABEFBAEABAB EABAEBEBAEABAEFBEFBAEAFBEFBAAEBF BBFAABAEBAAFABEFBAEAAAFBBEFBAAEE +FEEABEBAEBAEAFBEFBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEAAEAEBF BBFAEBAEBAAFABEFBAEAAAFBBAABAAEE +FEEAAEBAEBAEAFBAEBAABAEFFAAFABAB EABABAEBAEABAEFBAEBAEABEEFBEAEBF BBFAAAAAAAAFAAAAAAAAAAAAAAAAAAEE +FEEAAAAAAAAEAAAAAAAABAAAAAAAABAB EABEFBEFBEFBBAEBAEBAEBAEBAEBAEBF BBFBEFBEFBEFEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAABAEFBEAAABEFBEBAAAEBAEBAAAEE +FEBAEBAEFBABAFBEFAEABAAEBAEBABAB EAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBF BBAABAEFBEAAABEFBEBAAABBAEBAAAEE +FEBAFBEEFBABAFBEFAEABAFBBAEBABAB EAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBF BBAABEFFBEAAAAEBBEFAAABEFEBAAAEE +FEBAFBEEFBABABAEFBEABAFBEAEBABAB EAEABAEBEFAEAEBAEFBAEAEFBBAEAEBF BBAAEBAFBEAAAAEBBEFAAABEFEBAAAEE +FEBAAEBEFBABABAEFBEABAFBEFEBABAB EAEABAEBEFAEAEBAEFBAEAEFBEAEAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBF BBAAEFBEFAAAAABEFBEAAABEFBEBAAEE +FEBABFFBEBABABFBEFBABAFBEFAEABAB EAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBF BBAAEFBEBBAAAABEFFEAAABEFBEBAAEE +FEBABEBAEFABABFBEFBABAFBBEAEABAB EAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABAFBBEAEABAB EAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBF BBAABAEBBBAAABAEEBAAAABEEFEBAAEE +FEBAEBAEEFABAEBAAEBABABAEBAEABAB EAEAAEBABEAEAAEBBAEAEAEBAEBAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAABAAAAAAAABAAAAAAAABAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: View Small Photos +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABAAAAAAAABAAAAAAAAEAAAAAAAAEBA ABFAAEBABAAFABEFBEFAAAEFBAEBAAEA +AEEABAEBEBAEAFBEFBEABABEFBAEABAA AABAEBABAEABAFFFEFBAEAFBEEBAAEBA ABFAAEBEBAAFABFFBEFAAAEFBAEBAAEA +AEEABABAEBAEAFFEFBAABABEFBAEABAA AABAEBEBAEABAEFBEFBAEAFBEFBAAEBA ABFAABAEBAAFABEFBAEAAAFBBEFBAAEA +AEEABEBAEBAEAFBEFBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEAAEAEBA ABFAEBAEBAAFABEFBAEAAAFBBAABAAEA +AEEAAEBAEBAEAFBAEBAABAEFFAAFABAA AABABAEBAEABAEFBAEBAEABEEFBEAEBA ABFAAAAAAAAFAAAAAAAAAAAAAAAAAAEA +AEEAAAAAAAAEAAAAAAAABAAAAAAAABAA AABEFBEFBEFBBAEBAEBAEBAEBAEBAEBA ABFBEFBEFBEFEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAABAEFBEAAABEFBEBAAAEBAEBAAAEA +AEBAEBAEFBABAFBEFAEABAAEBAEBABAA AAEAAEBBEFAEAEFBEBAAEAEAEBAEAEBA ABAABAEFBEAAABEFBEBAAABBAEBAAAEA +AEBAFBEEFBABAFBEFAEABAFBBAEBABAA AAEAEFBBEFAEAEFBEBAAEAEFEBAEAEBA ABAABEFFBEAAAAEBBEFAAABEFEBAAAEA +AEBAFBEEFBABABAEFBEABAFBEAEBABAA AAEABAEBEFAEAEBAEFBAEAEFBBAEAEBA ABAAEBAFBEAAAAEBBEFAAABEFEBAAAEA +AEBAAEBEFBABABAEFBEABAFBEFEBABAA AAEABAEBEFAEAEBAEFBAEAEFBEAEAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEAAAAAAAAEAAAAAAAAEAAAAAAAAEBA ABAAEFBEFAAAAABEFBEAAABEFBEBAAEA +AEBABFFBEBABABFBEFBABAFBEFAEABAA AAEAFFEFAEAEAEEFFEFAEAEFBEBAAEBA ABAAEFBEBBAAAABEFFEAAABEFBEBAAEA +AEBABEBAEFABABFBEFBABAFBBEAEABAA AAEAFBEBAEAEAEEFBEFAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABAFBBEAEABAA AAEAAEBAAEAEAAEBBAEAEAEFFBBAAEBA ABAABAEBBBAAABAEEBAAAABEEFEBAAEA +AEBAEBAEEFABAEBAAEBABABAEBAEABAA AAEAAEBABEAEAAEBBAEAEAEBAEBAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAABAAAAAAAABAAAAAAAABAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Screen Brightness +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBABBAEBAEBAEBAEBAB EAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAEAEEBABBAFAEBAEEBAABAEAAEBAB EAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABAAEAEBAEBAEBAEEAEBBAEBAB EAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAB EAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEABAEBAB EAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBF BBAEAEFAEBEFBEFFFFBEFBEEBAABBAEE +FEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAB EAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAB EABAEBAEBEFBEFFFFFFFBEFBEEBAEBBF BAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAE +FEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAB EAEBABAEBEFBEFFFFFFFBEFBEEBAAEBF BBAEAEBAFBEFBFFFFFFEFBEFBAEBBAEE +FEBAAAEBEFBEFBFFFFFBEFBEEBAABBAB EAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBF BBAEBAFAEBEFBEFFFFBEFBEEBAAEBAEE +FEBAEBABAFBEFBEFBEFBEFBEEBBAEBAB EAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBF BBAEBAEAEBEFBEFBEFBEFBEEBBAEBAEE +FEBAEBABAEBEFBEFBEFBEFBAEBBAEBAB EAEBAFAABAEBEFBEFBEFBEEBBABBAEBF BBAEBABBEBAFBEFBEFBEFBAEAAEEBAEE +FEBAABAEAEBAFBEFBEFBEEBAEEBABBAB EAEAEEBABAEBEFBEFBEFBAEBBAEBEEBF BBAEBAEAEBAEBAFBEFBAEBAEBBAEBAEE +FEBAEBABAEBAEBEFBEFBAEBAEABAEBAB EAEBAEAEBBABAEBAEBAEBBAFAEEBAEBF BBAEBAFAEEBEBAEBAEBAEABABAAEBAEE +FEBAEBABBABBABAEBAEBBEABABBAEBAB EAEBAFBAEBEEBABAEBAAEAEEBABBAEBF BBAEBAABAEAAEAEBAEBBAFBAEBEEBAEE +FEBAFBAEBAEBAEAEBAABBAEBAEBEEBAB EAEBAABAEBAEBAFAEBBEEBAEBAEAAEBF BBAEBAEBAEAAEAEFAAEBAFBAEBAEBAEE +FEBAEBAEBABBAFBABBAEBAABAEBAEBAB EAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAFAAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAABAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Screen Brightness +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBABBAEBAEBAEBAEBAA AAEBAEBAEBEEBAAAEEBAEAEEBAEBAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAEAEEBABBAFAEBAEEBAABAEAAEBAA AAEBAEAEEBEAAEBAEBAEEAEEAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABAAEAEBAEBAEBAEEAEBBAEBAA AAEBAEBEBAEBAFBEFBEEBAEBAEEBAEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAEAEEAEBEFBEFBEFBEEBAEFAAEBAA AAEBAEAEBAFBEFBEFBEFBEEBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEABAEBAA AAEBAAAEBEFBEFBEFBEFBEFBAEEAAEBA ABAEAEFAEBEFBEFFFFBEFBEEBAABBAEA +AEBAEAEBEFBEFBFFFFFBEFBEEBAAEBAA AAEBAFAEBEFBEFFFFFEFBEFBEEBBAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAFAEBEFBEFFFFFFFFEFBEEBAEEBAA AABAEBAEBEFBEFFFFFFFBEFBEEBAEBBA AAEBAEBAFBEFBFFFFFFEFBEFBAEBAEAA +AEAEBAEBEFBEFFFFFFFFEFBEEBAEBAAA AAEBABAEBEFBEFFFFFFFBEFBEEBAAEBA ABAEAEBAFBEFBFFFFFFEFBEFBAEBBAEA +AEBAAAEBEFBEFBFFFFFBEFBEEBAABBAA AAEAEFAEBEFBEFBFFFEFBEFBEEBBEEBA ABAEBAFAEBEFBEFFFFBEFBEEBAAEBAEA +AEBAEBABAFBEFBEFBEFBEFBEEBBAEBAA AAEBAEBEBEFBEFBEFBEFBEFBAEEBAEBA ABAEBAEAEBEFBEFBEFBEFBEEBBAEBAEA +AEBAEBABAEBEFBEFBEFBEFBAEBBAEBAA AAEBAFAABAEBEFBEFBEFBEEBBABBAEBA ABAEBABBEBAFBEFBEFBEFBAEAAEEBAEA +AEBAABAEAEBAFBEFBEFBEEBAEEBABBAA AAEAEEBABAEBEFBEFBEFBAEBBAEBEEBA ABAEBAEAEBAEBAFBEFBAEBAEBBAEBAEA +AEBAEBABAEBAEBEFBEFBAEBAEABAEBAA AAEBAEAEBBABAEBAEBAEBBAFAEEBAEBA ABAEBAFAEEBEBAEBAEBAEABABAAEBAEA +AEBAEBABBABBABAEBAEBBEABABBAEBAA AAEBAFBAEBEEBABAEBAAEAEEBABBAEBA ABAEBAABAEAAEAEBAEBBAFBAEBEEBAEA +AEBAFBAEBAEBAEAEBAABBAEBAEBEEBAA AAEBAABAEBAEBAFAEBBEEBAEBAEAAEBA ABAEBAEBAEAAEAEFAAEBAFBAEBAEBAEA +AEBAEBAEBABBAFBABBAEBAABAEBAEBAA AAEBAEBAEBAEBAEAEEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAFAAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAABAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Date & Time +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEABAFBEFAEFBAFBEFBAFBEFBABF BBAEFBAFAEFBEABEEBEFBEFAEFBEFAEE +FEABEFAEABEFBAFBAFBEFBEABEFBEAAB EAAFBEABAFBEFAEEBEFBEFBAFBEFBABF BBAEFBAFAEFBEABAAAEFBEFAEFBEFAEE +FEABEFAEABEFBAFAAABEFBEABEFBEAAB EAAFBEFBEFBEFBEFBEFBEFBEFBEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEABAFAEFBEFBAFBEFBEFBEFBAFAEE +FEABAFAEABEFBEFAEFBEFBEFBEEBEAAB EAAFAEABAFBEFBEABEFBEFBEFBAFBABF BBAEABAFAEFBEFBAFBEFBEFBEEBEFAEE +FEABAFAAABEFBEFAEFBEFBEFBAAAEAAB EAAFAEAAAFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBAFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFAEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEABEFBEFBEFAAABABF BBAEAAAFBEFBEFBAFBEFBEFBEAAAFAEE +FEABAFAEFBEFBEFAEFBEFBEFBEFAEAAB EAAFAEABEFBEFBEABEFBEFBEFBEABABF BBAEAAAFBAAAAAAAABEFBEFBEFAAFAEE +FEABAAAEFAAAAAAAAFBEFBEFBEAAEAAB EAAFBEABEFBEFBEABEFBEFBEFBEABABF BBAEFBAFBEFBEFBAFBEFBEFBEFBAFAEE +FEABEFAEFBEFBEFAEFBEFBEFBAAAEAAB EAAFBEABEFBEFBEABEFBEFBEFAAABABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAFAAABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEABAFAEE +FEABAFAEFBEFBEFBEFBEFBEFBAFAEAAB EAAFAEABEFBEFBEFBEFBEFBEFAEABABF BBAEAAAFBEFBEFBEFBEFBEFBEAAAFAEE +FEABAAAEFBEFBEFBEFBEFBEFBAAAEAAB EAAFAEABEAAAFBEFAEFBEFAAFBEABABF BBAEABAFBAAAEFBEABEFBEAAEFBAFAEE +FEABAAAEFBEABEFBAFBEFBAFBEFBEAAB EAAFAAABEFBAFBEFAEFBEFAEFBEFBABF BBAEFBEFBEFAEFBEAAAFBEAAAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAEABEFBEABEFBABF BBAEFBEFBEFAEFBEABAFBEFBAFBEFAEE +FEABEFBEFBEABEFBAAAEFBAAAEFBEAAB EAAFBEFBEFBAFBEFAAABEFAAABEFBABF BBAEFBEFBEFBEFBEFBEFBEFBEFBEFAEE +FEABEFBEFBEFBEFBEFBEFBEFBEFBEAAB EAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Date & Time +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEABAFBEFAEFBAFBEFBAFBEFBABA ABAEFBAFAEFBEABEEBEFBEFAEFBEFAEA +AEABEFAEABEFBAFBAFBEFBEABEFBEAAA AAAFBEABAFBEFAEEBEFBEFBAFBEFBABA ABAEFBAFAEFBEABAAAEFBEFAEFBEFAEA +AEABEFAEABEFBAFAAABEFBEABEFBEAAA AAAFBEFBEFBEFBEFBEFBEFBEFBEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEABAFAEFBEFBAFBEFBEFBEFBAFAEA +AEABAFAEABEFBEFAEFBEFBEFBEEBEAAA AAAFAEABAFBEFBEABEFBEFBEFBAFBABA ABAEABAFAEFBEFBAFBEFBEFBEEBEFAEA +AEABAFAAABEFBEFAEFBEFBEFBAAAEAAA AAAFAEAAAFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBAFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFAEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEABEFBEFBEFAAABABA ABAEAAAFBEFBEFBAFBEFBEFBEAAAFAEA +AEABAFAEFBEFBEFAEFBEFBEFBEFAEAAA AAAFAEABEFBEFBEABEFBEFBEFBEABABA ABAEAAAFBAAAAAAAABEFBEFBEFAAFAEA +AEABAAAEFAAAAAAAAFBEFBEFBEAAEAAA AAAFBEABEFBEFBEABEFBEFBEFBEABABA ABAEFBAFBEFBEFBAFBEFBEFBEFBAFAEA +AEABEFAEFBEFBEFAEFBEFBEFBAAAEAAA AAAFBEABEFBEFBEABEFBEFBEFAAABABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAFAAABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEABAFAEA +AEABAFAEFBEFBEFBEFBEFBEFBAFAEAAA AAAFAEABEFBEFBEFBEFBEFBEFAEABABA ABAEAAAFBEFBEFBEFBEFBEFBEAAAFAEA +AEABAAAEFBEFBEFBEFBEFBEFBAAAEAAA AAAFAEABEAAAFBEFAEFBEFAAFBEABABA ABAEABAFBAAAEFBEABEFBEAAEFBAFAEA +AEABAAAEFBEABEFBAFBEFBAFBEFBEAAA AAAFAAABEFBAFBEFAEFBEFAEFBEFBABA ABAEFBEFBEFAEFBEAAAFBEAAAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAEABEFBEABEFBABA ABAEFBEFBEFAEFBEABAFBEFBAFBEFAEA +AEABEFBEFBEABEFBAAAEFBAAAEFBEAAA AAAFBEFBEFBAFBEFAAABEFAAABEFBABA ABAEFBEFBEFBEFBEFBEFBEFBEFBEFAEA +AEABEFBEFBEFBEFBEFBEFBEFBEFBEAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Erase +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBBFFAABAEBAEBAEBAEE +FEBAEBAEBAEBAABFEBAEBAEBAEBAEBAB EAEBAEBAAAAAAAAAAAAAAAAABAEBAEBF BBAEBAEAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEBAAABEEBEBAAFAAAAEAAABAEBAB EAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBF BBAEBAAAAAAAAAAAAAAAAAAAABAEBAEE +FEBAEAAAAAAAAAAAAAAAAAAAAABAEBAB EAEBAABFFFFFABEFBEFBEBAABAEBAEBF BBAEABFFFFFEAFBEFBEFBEBAABAEBAEE +FEBABFFFFFFEBEFBEFBEFAEAAEBAEBAB EAEBFFFFFFEAFBEFAEBBEBAABAEBAEBF BBABFFFFFFEBEBBEAAEFBEBAABAEBAEE +FEBFFFFFFFAFAEFBABAEFAEAAEBAEBAB EABFFFFFFFAEBBEFAEBBEBAABAEBAEBF BBABFFFFFAFAEBBEAAEFBEBAABAEBAEE +FEAABFFFFAEFAEFBABAEFAEAAEBAEBAB EAEABFFFAFBEBBEFAEBBEBAABAEBAEBF BBAEABFFAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBFAABEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAAAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEAAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBABAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAEBBEBAABAEBAEBF BBAEBAEAAEFAEBBEAAEFBEBAABAEBAEE +FEBAEBAABBEFAEFBAAAEFAEAAEBAEBAB EAEBAEBAEFBEBBEFAAABEBAABAEBAEBF BBAEBAEAAEFBEFBEFBEFBEAAABAEBAEE +FEBAEBAABBEFBEFBEFBEFAAAAEBAEBAB EAEBAEBAEFBEFBEFBEFBEAAABAEBAEBF BBAEBAEAAABAEBAEBAEBAAAAABAEBAEE +FEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAB EAEBAEBAEAAAAAAAAAAAAAAABAEBAEBF BBAEBAEBAAAAAAAAAAAAAAAAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Erase +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBBFFAABAEBAEBAEBAEA +AEBAEBAEBAEBAABFEBAEBAEBAEBAEBAA AAEBAEBAAAAAAAAAAAAAAAAABAEBAEBA ABAEBAEAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEBAAABEEBEBAAFAAAAEAAABAEBAA AAEBAEAAEBBEBAAEBEEAEBAAAAEBAEBA ABAEBAAAAAAAAAAAAAAAAAAAABAEBAEA +AEBAEAAAAAAAAAAAAAAAAAAAAABAEBAA AAEBAABFFFFFABEFBEFBEBAABAEBAEBA ABAEABFFFFFEAFBEFBEFBEBAABAEBAEA +AEBABFFFFFFEBEFBEFBEFAEAAEBAEBAA AAEBFFFFFFEAFBEFAEBBEBAABAEBAEBA ABABFFFFFFEBEBBEAAEFBEBAABAEBAEA +AEBFFFFFFFAFAEFBABAEFAEAAEBAEBAA AABFFFFFFFAEBBEFAEBBEBAABAEBAEBA ABABFFFFFAFAEBBEAAEFBEBAABAEBAEA +AEAABFFFFAEFAEFBABAEFAEAAEBAEBAA AAEABFFFAFBEBBEFAEBBEBAABAEBAEBA ABAEABFFAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBFAABEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAAAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEAAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBABAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAEBBEBAABAEBAEBA ABAEBAEAAEFAEBBEAAEFBEBAABAEBAEA +AEBAEBAABBEFAEFBAAAEFAEAAEBAEBAA AAEBAEBAEFBEBBEFAAABEBAABAEBAEBA ABAEBAEAAEFBEFBEFBEFBEAAABAEBAEA +AEBAEBAABBEFBEFBEFBEFAAAAEBAEBAA AAEBAEBAEFBEFBEFBEFBEAAABAEBAEBA ABAEBAEAAABAEBAEBAEBAAAAABAEBAEA +AEBAEBAEAAEBAEBAEBAEBAAAAEBAEBAA AAEBAEBAEAAAAAAAAAAAAAAABAEBAEBA ABAEBAEBAAAAAAAAAAAAAAAAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set Camera Exposure +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEAABFFFFFEAAEBAEBAEBAB EAEBAEBAEBAEABFFFFFEABAEBAEBAEBF BBAEBAEBAEABFFFFFFFFFEAAEBAEBAEE +FEBAEBAEBAABFFFFFFFFFEABAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEBABFFFFFFFFFFFFFEABAEBAEE +FEBAEBAEABFFFFFFFFFFFFFEAEBAEBAB EAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBAEBFFFFFFFFFFFFFFFEABAEBAB EAEBAEBABFFFFFFFFFFFFFFFEAEBAEBF BBAEBAEABFFFFFFFFFFFFFFFEBAEBAEE +FEBAEBABFFFFFEBEBEBFFFFFFEBAEBAB EAEBAEABFFFFFEBEBEBFFFFFFEABAEBF BBAEBAEBFFFFEBEBEBEABFFFFEAEBAEE +FEBAEBABFFFFEBEBEBEABFFFFEBAEBAB EAEBAEABFFFFEBFFFFFEBFFFFEABAEBF BBAEBAEBFFFFEBFFFFFEBFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBABFFFFFEBFFFEBFFFFFEBAEBAB EAEBAEABFFFFFEBFFFEBFFFFFEABAEBF BBAEBAEBFFFFFEBFFFEBFFFFFEAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBABFFFFEBFFFEBFFFFEAEBAEBF BBAEBAEABFFFFEBFFFEBFFFFEBAEBAEE +FEBAEBAEBFFFFEBFFFEBFFFFEABAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBABFFFFEBFEBFFFFEABAEBAEE +FEBAEBAEABFFFFEBFEBFFFFEAEBAEBAB EAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBF BBAEBAEBAEBFFFEBFEBFFFEAEBAEBAEE +FEBAEBAEBABFFFEBFEBFFFEBAEBAEBAB EAEBAEBAEBABFFEBFEBFFEAEBAEBAEBF BBAEBAEBAEABFFEBFEBFFEBAEBAEBAEE +FEBAEBAEBAEABFEBFEABEAEBAEBAEBAB EAEBAEBAEBAEBFEBFEABEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBAAAFBEAABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEAFBEFBEAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEAABEFAAAABAEBAEBAEBF BBAEBAEBAEBAEABBEEAAAEBAEBAEBAEE +FEBAEBAEBAEBABEFBEFABAEBAEBAEBAB EAEBAEBAEBAEABBEFBEEABAEBAEBAEBF BBAEBAEBAEBAEAAAAAAAAEBAEBAEBAEE +FEBAEBAEBAEBAEAAAAAABAEBAEBAEBAB EAEBAEBAEBAEBAEAAABAEBAEBAEBAEBF BBAEBAEBAEBAEBAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set Camera Exposure +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAAAAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEAABFFFFFEAAEBAEBAEBAA AAEBAEBAEBAEABFFFFFEABAEBAEBAEBA ABAEBAEBAEABFFFFFFFFFEAAEBAEBAEA +AEBAEBAEBAABFFFFFFFFFEABAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEBABFFFFFFFFFFFFFEABAEBAEA +AEBAEBAEABFFFFFFFFFFFFFEAEBAEBAA AAEBAEBAEBFFFFFFFFFFFFFEBAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBAEBFFFFFFFFFFFFFFFEABAEBAA AAEBAEBABFFFFFFFFFFFFFFFEAEBAEBA ABAEBAEABFFFFFFFFFFFFFFFEBAEBAEA +AEBAEBABFFFFFEBEBEBFFFFFFEBAEBAA AAEBAEABFFFFFEBEBEBFFFFFFEABAEBA ABAEBAEBFFFFEBEBEBEABFFFFEAEBAEA +AEBAEBABFFFFEBEBEBEABFFFFEBAEBAA AAEBAEABFFFFEBFFFFFEBFFFFEABAEBA ABAEBAEBFFFFEBFFFFFEBFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBABFFFFFEBFFFEBFFFFFEBAEBAA AAEBAEABFFFFFEBFFFEBFFFFFEABAEBA ABAEBAEBFFFFFEBFFFEBFFFFFEAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBABFFFFEBFFFEBFFFFEAEBAEBA ABAEBAEABFFFFEBFFFEBFFFFEBAEBAEA +AEBAEBAEBFFFFEBFFFEBFFFFEABAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBABFFFFEBFEBFFFFEABAEBAEA +AEBAEBAEABFFFFEBFEBFFFFEAEBAEBAA AAEBAEBAEBFFFFEBFEBFFFFEBAEBAEBA ABAEBAEBAEBFFFEBFEBFFFEAEBAEBAEA +AEBAEBAEBABFFFEBFEBFFFEBAEBAEBAA AAEBAEBAEBABFFEBFEBFFEAEBAEBAEBA ABAEBAEBAEABFFEBFEBFFEBAEBAEBAEA +AEBAEBAEBAEABFEBFEABEAEBAEBAEBAA AAEBAEBAEBAEBFEBFEABEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBAAAFBEAABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEAFBEFBEAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEAABEFAAAABAEBAEBAEBA ABAEBAEBAEBAEABBEEAAAEBAEBAEBAEA +AEBAEBAEBAEBABEFBEFABAEBAEBAEBAA AAEBAEBAEBAEABBEFBEEABAEBAEBAEBA ABAEBAEBAEBAEAAAAAAAAEBAEBAEBAEA +AEBAEBAEBAEBAEAAAAAABAEBAEBAEBAA AAEBAEBAEBAEBAEAAABAEBAEBAEBAEBA ABAEBAEBAEBAEBAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Format Memory Card +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEEFBEFBEFBEFBEFBEFBEFBEFBEFEE +FEBBBAAAAAAAAAAAAAAAAAAAAAAABEAB EAEEFAAFAEABAFAEABAFAEABAFAAFBBF BBBBAAAAAAAAAAAAAAAAAAAAAAABEFEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEABBF BBFAAAAAFFFFFFFFFFFFFFFFFFFFAFEE +FEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAB EABAABAAFFFFFFFFEFFFFFFFFFFEABBF BBFAAEAAFFFFFFFFABFFFFFFFFFFAFEE +FEEABAEAFFFFFFFEBAFFFFFFFFFFAEAB EABAAAAAFFFFFFFAFEBFFFFFFFFEABBF BBFAAAAAFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAAABFFFFFFAFABEBFFFFFFFFAEAB EABAAAABFFFFFEBEAAFAFFFFFFFEABBF BBFAAAABFFFFFAFAAABEBFFFFFFFAFEE +FEEAAAABFFFFEBEAAAAFAFFFFFFFAEAB EABAAAAFFFFFAFAAAAABEBFFFFFEABBF BBFAAAAFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAAAAFFFFAFAAAAAAABEBFFFFFAEAB EABAAAAFFFEBEAAAAAAAAFAFFFFEABBF BBFAAAAFFFAFAAAAAAAAABEBFFFFAFEE +FEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAB EABAAABFFAFAABFFEBFFFABEBFFEABBF BBFAAABFEBEAAFFFEBFFFAAFAFFFAFEE +FEEAAABFAFAABFAAABEAAAABEBFFAEAB EABAAABEBEAABEAAABEAAAAAFAFEABBF BBFAAAFAFAAABEAAABEAAAAABEBFAFEE +FEEAAAFEBEAABEAAABFFEAAAFAFFAEAB EABAAAFFAFAABEAAABFFEAABEBFEABBF BBFAAAFFEBEABEAAABEAAAAFAFFFAFEE +FEEAAAFFFAFABFAAABEAAABEBFFFAEAB EABAAAFFFEBEAFFFEBEAAAFAFFFEABBF BBFAABFFFFAFABFFEBEAABEBFFFFAFEE +FEEAABFFFFEBEAAAAAAAAFAFFFFFAEAB EABAABFFFFFAFAAAAAAABEBFFFFEABBF BBFAABFFFFFEBEAAAAAAFAFFFFFFAFEE +FEEAABFFFFFFAFAAAAABEBFFFFFFAEAB EABAABFFFFFFEBEAAAAFAFFFFFFEABBF BBFAAFFFFFFFFAFAAABEBFFFFFFFAFEE +FEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAB EABAAFFFFFFFFFAFABEBFFFFFFFEABBF BBFAAFFFFFFFFFEBEFAFFFFFFFFFAFEE +FEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAB EABAAFFFFFFFFFFEBAFFFFFFFFFEABBF BBFABFFFFFFFFFFFABFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFEFFFFFFFFFFFAEAB EABABFFFFFFFFFFFFFFFFFFFFFFEABBF BBFABFFFFFFFFFFFFFFFFFFFFFFFAFEE +FEEABFFFFFFFFFFFFFFFFFFFFFFFBEAB EABEFBEFBEFBEFBEFBEFBEFBEFBEFBBF BBFBEFBEFBEFBEFBEFBEFBEFBEFBEEEE +FEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAB EAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Format Memory Card +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEEFBEFBEFBEFBEFBEFBEFBEFBEFEA +AEBBBAAAAAAAAAAAAAAAAAAAAAAABEAA AAEEFAAFAEABAFAEABAFAEABAFAAFBBA ABBBAAAAAAAAAAAAAAAAAAAAAAABEFEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFAEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEABBA ABFAAAAAFFFFFFFFFFFFFFFFFFFFAFEA +AEEAAAAAFFFFFFFFFFFFFFFFFFFFAEAA AABAABAAFFFFFFFFEFFFFFFFFFFEABBA ABFAAEAAFFFFFFFFABFFFFFFFFFFAFEA +AEEABAEAFFFFFFFEBAFFFFFFFFFFAEAA AABAAAAAFFFFFFFAFEBFFFFFFFFEABBA ABFAAAAAFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAAABFFFFFFAFABEBFFFFFFFFAEAA AABAAAABFFFFFEBEAAFAFFFFFFFEABBA ABFAAAABFFFFFAFAAABEBFFFFFFFAFEA +AEEAAAABFFFFEBEAAAAFAFFFFFFFAEAA AABAAAAFFFFFAFAAAAABEBFFFFFEABBA ABFAAAAFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAAAAFFFFAFAAAAAAABEBFFFFFAEAA AABAAAAFFFEBEAAAAAAAAFAFFFFEABBA ABFAAAAFFFAFAAAAAAAAABEBFFFFAFEA +AEEAAAAFFEBEAAAAAAAAAAFAFFFFAEAA AABAAABFFAFAABFFEBFFFABEBFFEABBA ABFAAABFEBEAAFFFEBFFFAAFAFFFAFEA +AEEAAABFAFAABFAAABEAAAABEBFFAEAA AABAAABEBEAABEAAABEAAAAAFAFEABBA ABFAAAFAFAAABEAAABEAAAAABEBFAFEA +AEEAAAFEBEAABEAAABFFEAAAFAFFAEAA AABAAAFFAFAABEAAABFFEAABEBFEABBA ABFAAAFFEBEABEAAABEAAAAFAFFFAFEA +AEEAAAFFFAFABFAAABEAAABEBFFFAEAA AABAAAFFFEBEAFFFEBEAAAFAFFFEABBA ABFAABFFFFAFABFFEBEAABEBFFFFAFEA +AEEAABFFFFEBEAAAAAAAAFAFFFFFAEAA AABAABFFFFFAFAAAAAAABEBFFFFEABBA ABFAABFFFFFEBEAAAAAAFAFFFFFFAFEA +AEEAABFFFFFFAFAAAAABEBFFFFFFAEAA AABAABFFFFFFEBEAAAAFAFFFFFFEABBA ABFAAFFFFFFFFAFAAABEBFFFFFFFAFEA +AEEAAFFFFFFFFEBEAAFAFFFFFFFFAEAA AABAAFFFFFFFFFAFABEBFFFFFFFEABBA ABFAAFFFFFFFFFEBEFAFFFFFFFFFAFEA +AEEAAFFFFFFFFFFAFEBFFFFFFFFFAEAA AABAAFFFFFFFFFFEBAFFFFFFFFFEABBA ABFABFFFFFFFFFFFABFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFEFFFFFFFFFFFAEAA AABABFFFFFFFFFFFFFFFFFFFFFFEABBA ABFABFFFFFFFFFFFFFFFFFFFFFFFAFEA +AEEABFFFFFFFFFFFFFFFFFFFFFFFBEAA AABEFBEFBEFBEFBEFBEFBEFBEFBEFBBA ABFBEFBEFBEFBEFBEFBEFBEFBEFBEEEA +AEEFBEFBEFBEFBEFBEFBEFBEFBEFBBAA AAFEFBEFBEFBEFBEFBEFBEFBEFBEEEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Lock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBF BBAEBAEBAAEAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEABEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Lock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAAAAAAAAAAAFAEBAEBAEBA ABAEBAEBAAEAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEABEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Unlock +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAAAAABAEBAEBAEBAEBF BBAEBAEBAEBAEAAAAAEBAEBAEBAEBAEE +FEBAEBAEBAEAAAFBEFAABAEBAEBAEBAB EAEBAEBAEBAEABEFBEAAEBAEBAEBAEBF BBAEBAEBAEABEFAAABEFAEBAEBAEBAEE +FEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAB EAEBAEBAEABEEAABAAABEAAEBAEBAEBF BBAEBAEBAEBBEAAEBAAFBABAEBAEBAEE +FEBAEBAEABEEAEBAEBAAFBABAEBAEBAB EAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBF BBAEBAEBAAEAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEABEBAEBAEBAEABABAEBAEBAB EAEBAEBAEBAABAEBAEBAAFAEBAEBAEBF BBAEBAEBAAAAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEAAABAEBAEBAEABABAEBAEBAB EAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEABABAEBAEBAB EAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBF BBAEBAEBAEAAAFBEFBEAAEAAEBAEBAEE +FEBAEBAEBAEABEFBEFBAABABAEBAEBAB EAEBAEBAEABEFBBAEAFBEAAEBAEBAEBF BBAEBAEBAABBEFEBAFEFBAAAEBAEBAEE +FEBAEBAEABEFBEFEAFBEFBABAEBAEBAB EAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBF BBAEBAEBAEFBEEAAAAEFBEEAEBAEBAEE +FEBAEBAEABEFBEAAAABEFBEBAEBAEBAB EAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBF BBAEBAEABEEAAAAFEAAAAEFAABAEBAEE +FEBAEBAAFBEAAAAAAAAAABEEAEBAEBAB EAEBAEABEEABEAAAAAAFAABEEAEBAEBF BBAEBAAFBEABEAAAAAAFAAFBEBAEBAEE +FEBAEBAEFAAAAAAAAAAAAAEFAABAEBAB EAEBAEABEEAAAAAAAAAAAABEEAEBAEBF BBAEBAAFAAAAAABFFAAAAAABEBAEBAEE +FEBAEBAEEAAAAABFFAAAAAAFAABAEBAB EAEBAEABEAAAABFABFAAAAAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEBEAABAAABAAAFAFAABAEBAB EAEBAEABEBEAABAAABAAAFAEEAEBAEBF BBAEBAAFAAAAABEAAFAAAAABEBAEBAEE +FEBAEBAEEAAAABFABFAAAAAFAABAEBAB EAEBAEABEAAAAABFFAAAAAAEEAEBAEBF BBAEBAEABEAAAABFFAAAAAFAABAEBAEE +FEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAB EAEBAEBAEEABEAAAAAAFAABEBAEBAEBF BBAEBAEABEABEAAAAAAFAAFAABAEBAEE +FEBAEBAEABEAAAAAAAAAABEBAEBAEBAB EAEBAEBAAFAAAAAAAAAAAFAABAEBAEBF BBAEBAEBAAFAAAABEAAABEAAEBAEBAEE +FEBAEBAEABEEAAABEAAAFBABAEBAEBAB EAEBAEBAEABEFAAAAAFBEAAEBAEBAEBF BBAEBAEBAEBBEEAAAAEFBABAEBAEBAEE +FEBAEBAEBAEABEFBEFBAAAEBAEBAEBAB EAEBAEBAEBAABBEFBEFAABAEBAEBAEBF BBAEBAEBAEBAEAAAAAABAEBAEBAEBAEE +FEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Unlock +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAAAAABAEBAEBAEBAEBA ABAEBAEBAEBAEAAAAAEBAEBAEBAEBAEA +AEBAEBAEBAEAAAFBEFAABAEBAEBAEBAA AAEBAEBAEBAEABEFBEAAEBAEBAEBAEBA ABAEBAEBAEABEFAAABEFAEBAEBAEBAEA +AEBAEBAEBAEBBEEAAFBEAAEBAEBAEBAA AAEBAEBAEABEEAABAAABEAAEBAEBAEBA ABAEBAEBAEBBEAAEBAAFBABAEBAEBAEA +AEBAEBAEABEEAEBAEBAAFBABAEBAEBAA AAEBAEBAEBBEBAEBAEBAEFAEBAEBAEBA ABAEBAEBAAEAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEABEBAEBAEBAEABABAEBAEBAA AAEBAEBAEBAABAEBAEBAAFAEBAEBAEBA ABAEBAEBAAAAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEAAABAEBAEBAEABABAEBAEBAA AAEBAEBAEBAEBAEBAEBAAFAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEABABAEBAEBAA AAEBAEBAEBAEAAAAAAAAAFAEBAEBAEBA ABAEBAEBAEAAAFBEFBEAAEAAEBAEBAEA +AEBAEBAEBAEABEFBEFBAABABAEBAEBAA AAEBAEBAEABEFBBAEAFBEAAEBAEBAEBA ABAEBAEBAABBEFEBAFEFBAAAEBAEBAEA +AEBAEBAEABEFBEFEAFBEFBABAEBAEBAA AAEBAEBAEBBEFBEAFEFBEFAEBAEBAEBA ABAEBAEBAEFBEEAAAAEFBEEAEBAEBAEA +AEBAEBAEABEFBEAAAABEFBEBAEBAEBAA AAEBAEBAEFBEAAAFEAAAEFBEBAEBAEBA ABAEBAEABEEAAAAFEAAAAEFAABAEBAEA +AEBAEBAAFBEAAAAAAAAAABEEAEBAEBAA AAEBAEABEEABEAAAAAAFAABEEAEBAEBA ABAEBAAFBEABEAAAAAAFAAFBEBAEBAEA +AEBAEBAEFAAAAAAAAAAAAAEFAABAEBAA AAEBAEABEEAAAAAAAAAAAABEEAEBAEBA ABAEBAAFAAAAAABFFAAAAAABEBAEBAEA +AEBAEBAEEAAAAABFFAAAAAAFAABAEBAA AAEBAEABEAAAABFABFAAAAAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEBEAABAAABAAAFAFAABAEBAA AAEBAEABEBEAABAAABAAAFAEEAEBAEBA ABAEBAAFAAAAABEAAFAAAAABEBAEBAEA +AEBAEBAEEAAAABFABFAAAAAFAABAEBAA AAEBAEABEAAAAABFFAAAAAAEEAEBAEBA ABAEBAEABEAAAABFFAAAAAFAABAEBAEA +AEBAEBAAFAAAAAAAAAAAAAEEAEBAEBAA AAEBAEBAEEABEAAAAAAFAABEBAEBAEBA ABAEBAEABEABEAAAAAAFAAFAABAEBAEA +AEBAEBAEABEAAAAAAAAAABEBAEBAEBAA AAEBAEBAAFAAAAAAAAAAAFAABAEBAEBA ABAEBAEBAAFAAAABEAAABEAAEBAEBAEA +AEBAEBAEABEEAAABEAAAFBABAEBAEBAA AAEBAEBAEABEFAAAAAFBEAAEBAEBAEBA ABAEBAEBAEBBEEAAAAEFBABAEBAEBAEA +AEBAEBAEBAEABEFBEFBAAAEBAEBAEBAA AAEBAEBAEBAABBEFBEFAABAEBAEBAEBA ABAEBAEBAEBAEAAAAAABAEBAEBAEBAEA +AEBAEBAEBAEBAAAAAAAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Set for PAL / NTSC TV +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAABAEBAEBAEBAEBAABAEBAB EAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBF BBAEBAEBAEAAEBAEBAEBAEBAABAEBAEE +FEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAB EAEBAEBAEBAABAEBAEBAEBAABAEBAEBF BBAEBAEBAEBAABAEBAEBAEAAEBAEBAEE +FEBAEBAEBAEBAABAEBAEBAABAEBAEBAB EAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBF BBAEBAEBAEBAEAAEBAEBAABAEBAEBAEE +FEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAB EAEBAEBAEBAEBAABAEBAABAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEABEFBEFBEFBEFBEFBEFBEFBEEAABF BBAAFBEFBEFBEFBEFBEFBEFBEFBAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAB EAEAAAAAAAAAAAAAAAAAAAAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAEAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAEBAEBAEBAEBAEBAEBAAAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEFBEBAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBBEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBBEFAEBAABAABF BBAABAEBAEBAEBAEBAEFBEFAEAAAEAEE +FEAAABAEBAEBAEBAEBAEFBEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAEABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAABAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAABAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAEBAEBAEBAEBAEBAEBAEBAABAABF BBAAAAEBAEBAEBAEBAEBAEBAEAAAEAEE +FEAAAAAEBAEBAEBAEBAEBAEBAAABEBAB EAEAAAAAEBAEBAEBAEBAEBAAAAABAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBF BBAAAAAAAAAAAAAAAAAAAAAAAAAABAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Set for PAL / NTSC TV +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAABAEBAEBAEBAEBAABAEBAA AAEBAEBAEAAEBAEBAEBAEBAEAAEBAEBA ABAEBAEBAEAAEBAEBAEBAEBAABAEBAEA +AEBAEBAEBAEAAEBAEBAEBAEAAEBAEBAA AAEBAEBAEBAABAEBAEBAEBAABAEBAEBA ABAEBAEBAEBAABAEBAEBAEAAEBAEBAEA +AEBAEBAEBAEBAABAEBAEBAABAEBAEBAA AAEBAEBAEBAEAAEBAEBAEAAEBAEBAEBA ABAEBAEBAEBAEAAEBAEBAABAEBAEBAEA +AEBAEBAEBAEBAEAAEBAEAAEBAEBAEBAA AAEBAEBAEBAEBAABAEBAABAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEBAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEABEFBEFBEFBEFBEFBEFBEFBEEAABA ABAAFBEFBEFBEFBEFBEFBEFBEFBAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAEBAA AAEAAAAAAAAAAAAAAAAAAAAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAEAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAEBAEBAEBAEBAEBAEBAAAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEFBEBAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBBEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBBEFAEBAABAABA ABAABAEBAEBAEBAEBAEFBEFAEAAAEAEA +AEAAABAEBAEBAEBAEBAEFBEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAEABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAABAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAABAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAEBAEBAEBAEBAEBAEBAEBAABAABA ABAAAAEBAEBAEBAEBAEBAEBAEAAAEAEA +AEAAAAAEBAEBAEBAEBAEBAEBAAABEBAA AAEAAAAAEBAEBAEBAEBAEBAAAAABAABA ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAEBA ABAAAAAAAAAAAAAAAAAAAAAAAAAABAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: Start Slide Show +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAB EAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBF BBAEBAEBAAFBEFBEFBEFBEFBEFBEAAEE +FEBAEBAEBAEFBEFBEFBEFBEFBEFBABAB EAEBAEBAAFBEFBEFBEFBEFBEFBEFBABF BBAEBAEBAEFBEFBEFBEFBEFBEFBEFAEE +FEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAB EAEBAEBAAAAAAAAAAAAAAAAAABEFBABF BBAEBAAFBEFBEFBEFBEFBEFBEABEFAEE +FEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAB EAEBAAFBEFBEFBEFBEFBEFBEFBAFBABF BBAEBAEFBEFBEFBEFBEFBEFBEFAEFAEE +FEBAAAAAAAAAAAAAAAAAAAEFBEABEAAB EAEBAAAAAAAAAAAAAAAAAABEFBAFBABF BBAAFBEFBEFBEFBEFBEFBEABEFAEFAEE +FEBAEFBEFBEFBEFBEFBEFBAFBEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEFBEFBEFBEFBEFBEFAEFAEFAEE +FEABEFBEFBEFBEFBEFBEFBEABEABEAAB EAAFBEFBEFBEFBEFBEFBEFBAFBAFBABF BBAEFBEAAAAAAAAAAAAFBEFAEFAEFAEE +FEABEFBAAAAAAAAAAAAEFBEABEABEAAB EAAFBEAAEBAEBAEBAEBAEFBAFBAFBABF BBAEFBABAEBAEBAEBAEABEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABEAAB EAAFBABAEBAEBAEBAEBAAFBAFBAFBABF BBAEFAEBAEBAEBAEBAEBAEFAEFAEFAEE +FEABEAAEBAEBAEBAEBAEABEABEABABAB EAAFBABAEBAEBAEBAEBAAFBAFBAFAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAABAEE +FEABEAAEBAEBAEBAEBAEABEABEAAEBAB EAAFBABAEBAEBAEBAEBAAFBAFBABAEBF BBAEFAEBAEBAEBAEBAEBAEFAEFAEBAEE +FEABEFAEBAEBAEBAEBAAFBEABABAEBAB EAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBF BBAEFBEAAAAAAAAAAAAFBEFAABAEBAEE +FEABEFBAAAAAAAAAAAAEFBEAAEBAEBAB EAAFBEFBEFBEFBEFBEFBEFBABAEBAEBF BBAEFBEFBEFBEFBEFBEFBEFAEBAEBAEE +FEBAEFBEFBEFBEFBEFBEFBABAEBAEBAB EAEABEFBEFBEFBEFBEFBEFAEBAEBAEBF BBAEAAAAAAAAAAAAAAAAAABAEBAEBAEE +FEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Start Slide Show +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAAAAAAAAAAAAAAAAAAAEBAA AAEBAEBAEBAAAAAAAAAAAAAAAAAAAEBA ABAEBAEBAAFBEFBEFBEFBEFBEFBEAAEA +AEBAEBAEBAEFBEFBEFBEFBEFBEFBABAA AAEBAEBAAFBEFBEFBEFBEFBEFBEFBABA ABAEBAEBAEFBEFBEFBEFBEFBEFBEFAEA +AEBAEBAAAAAAAAAAAAAAAAAAAEFBEAAA AAEBAEBAAAAAAAAAAAAAAAAAABEFBABA ABAEBAAFBEFBEFBEFBEFBEFBEABEFAEA +AEBAEBAEFBEFBEFBEFBEFBEFBAFBEAAA AAEBAAFBEFBEFBEFBEFBEFBEFBAFBABA ABAEBAEFBEFBEFBEFBEFBEFBEFAEFAEA +AEBAAAAAAAAAAAAAAAAAAAEFBEABEAAA AAEBAAAAAAAAAAAAAAAAAABEFBAFBABA ABAAFBEFBEFBEFBEFBEFBEABEFAEFAEA +AEBAEFBEFBEFBEFBEFBEFBAFBEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEFBEFBEFBEFBEFBEFAEFAEFAEA +AEABEFBEFBEFBEFBEFBEFBEABEABEAAA AAAFBEFBEFBEFBEFBEFBEFBAFBAFBABA ABAEFBEAAAAAAAAAAAAFBEFAEFAEFAEA +AEABEFBAAAAAAAAAAAAEFBEABEABEAAA AAAFBEAAEBAEBAEBAEBAEFBAFBAFBABA ABAEFBABAEBAEBAEBAEABEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABEAAA AAAFBABAEBAEBAEBAEBAAFBAFBAFBABA ABAEFAEBAEBAEBAEBAEBAEFAEFAEFAEA +AEABEAAEBAEBAEBAEBAEABEABEABABAA AAAFBABAEBAEBAEBAEBAAFBAFBAFAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAABAEA +AEABEAAEBAEBAEBAEBAEABEABEAAEBAA AAAFBABAEBAEBAEBAEBAAFBAFBABAEBA ABAEFAEBAEBAEBAEBAEBAEFAEFAEBAEA +AEABEFAEBAEBAEBAEBAAFBEABABAEBAA AAAFBEAAEBAEBAEBAEBAEFBAFAEBAEBA ABAEFBEAAAAAAAAAAAAFBEFAABAEBAEA +AEABEFBAAAAAAAAAAAAEFBEAAEBAEBAA AAAFBEFBEFBEFBEFBEFBEFBABAEBAEBA ABAEFBEFBEFBEFBEFBEFBEFAEBAEBAEA +AEBAEFBEFBEFBEFBEFBEFBABAEBAEBAA AAEABEFBEFBEFBEFBEFBEFAEBAEBAEBA ABAEAAAAAAAAAAAAAAAAAABAEBAEBAEA +AEBAAAAAAAAAAAAAAAAAAAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA ABAEBAEBAEBAEBAEBAEBAEBAEBAEBAEA +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAA AAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 72 +# Height: 36 +# Length: 2592 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBE +AEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFB +BAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEF +EBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF +EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Width: 18 +# Height: 12 +# Length: 216 +# +0000000000000000000000000000FBEF0000 +0000EEFE00000000BBAB00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000ABAF00000000EEBB0000 +0000FAEA00000000BBAB00000000FAAF0000 +0000EFBE0000000000000000000000000000 +# +# Title: ? +# Length: 544 +# +FBCFBCFBEF3EF3EF +# +FAEBAEBAEBAEBAE8 ABAEBAEAAEBAEBAF EEBAEBAEFAEBAEBB +FAEBAEFAAFAEBAEA 2BAEBBEBAAEAEBAF EEBAEFAEBAEBAEBB +FAEBAEBAEBBABAE8 ABAEAAEBAEBAEBAF EEBAEEAEBAABAEBB +FAEBAEAAABBABAEA 2BAEAAAFBEBAEBAF EEBAEFBBABEBAEBB +FAEBAAFAAFAABAE8 ABAEABEAAEFAEBAF EEBAEEABEAEBAEBB +FAEBBEAAAABEBAEA 2BAEBAEAABAAABAF EEBAEAAAAAAFAEBB +FAEAAAAFFAAABAE8 ABAEEABEBEABABAF EEBAEEBAAEBBAEBB +FAEAAABEBEAABAEA 2BAEFAAFFAABABAF EEBAAAEAABAEAEBB +FAEBBEAAAABEBAE8 ABAEABABEAFAEBAF EEBAEBBAABEBAEBB +FAEBAEBBEEAEBAEA 2BAEBAAAAABAEBAF EEBAEBAEBAEBAEBB +# +CFBEF3CF3CFBEFBC +# +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# same as above +FBEFBEFBEFBE FAEBAEBAEBAF ABAEAAABAEBB +EEBAAFBABAEA FAEABAAAABAF ABAEEAEBAEBB +EEBAEBAABAEA FAEAAEBBABAF ABAEEAABAEBB +EEBAEFBEBAEA FAEABFBAABAF ABAAEAABAEBB +EEABABEAFAEA FAEEBAAEABAF ABAEABEABABB +EEAAEEBBBAEA FAEEABEAABAF ABAEBAAEBABB +EEABABEAFAEA FAEBAAABEBAF ABAEFBEFAEBB +EEBAAAAABAEA FAEBAEBAEBAF BEFBEFBEFBEF +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000020000 +00000000000000000000000000000000000AC000 +00000000000000000000000000000000002BA000 +0000000000000000000000000000000000AEB800 +0000000000000000000000000000000002BAEB00 +000000000000000000000000000000000AEBAE80 +000000000000000000000000000000002BAEBAE0 +00000000000000000000000000000000AEBAEBAC +000000000000000000000000000000003AEBAEB0 +000000000000000000000000000000000BAEBAC0 +0000000000000000000000000000000002BAEB00 +0000000000000000000000000000000000EBAC00 +00000000000000000000000000000000002EB000 +00000000000000000000000000000000000AC000 +0000000000000000000000000000000000030000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000200000000000000020000 +0000000000000000000B800000000000000AC000 +0000000000000000002EB00000000000002BA000 +000000000000000000BAE8000000000000AEB800 +000000000000000002EBAE000000000002BAEB00 +00000000000000000BAEBAC0000000000AEBAE80 +00000000000000002EBAEBA0000000002BAEBAE0 +0000000000000000BAEBAEB800000000AEBAEBAC +00000000000000002BAEBAE0000000003AEBAEB0 +00000000000000000EBAEB80000000000BAEBAC0 +000000000000000002EBAE000000000002BAEB00 +000000000000000000AEB8000000000000EBAC00 +0000000000000000003AE00000000000002EB000 +0000000000000000000B800000000000000AC000 +0000000000000000000200000000000000030000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0003000000000000000200000000000000020000 +000E800000000000000B800000000000000AC000 +003AE00000000000002EB00000000000002BA000 +00EBAC000000000000BAE8000000000000AEB800 +03AEBA000000000002EBAE000000000002BAEB00 +0EBAEB80000000000BAEBAC0000000000AEBAE80 +3AEBAEB0000000002EBAEBA0000000002BAEBAE0 +EBAEBAE800000000BAEBAEB800000000AEBAEBAC +2EBAEBA0000000002BAEBAE0000000003AEBAEB0 +0AEBAE80000000000EBAEB80000000000BAEBAC0 +03AEBA000000000002EBAE000000000002BAEB00 +00BAE8000000000000AEB8000000000000EBAC00 +002BA00000000000003AE00000000000002EB000 +000E800000000000000B800000000000000AC000 +0002000000000000000200000000000000030000 +# +# Title: ? +# Width: 72 +# Height: 74 +# Length: 5328 +# +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAFBEFBEFBEFBEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEEAAAAA +AAAAABEFBEFBEFBEFBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAABFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEAAA +AAAFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBAAA +AAAFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFAAA +AAAFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEAAA +AAAFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAAAAAAAAAAABEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAAAAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEAAA +AAAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAABBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBAAA +AAABFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAAAFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEEAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +# +# Title: ? +# Width: 24 +# Height: 10 +# Length: 240 +# +00000003800000000000000EB00000000000003AE8000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +000000EBEE000000000000AFBA000000000000BEFB000000 +0000002BAC0000000000000EB000000000000002C0000000 +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF8EAA8AE88FFFFFFFFFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFFF888888888FFFFFF888888888FFFFFFFFF +FFFFFF8EEEEA888A8AA8AAEEEEFEEFF8FFFFFFFF +FFFFF8FFFFFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF +FFFF89999999999FAAAAAAAAEEEEEF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +FF88999999999998AAAAAAAAAAEFFF8FFFFFFFFF +F89999999999998EAAAA8F88AEEEEF8FFFFFFFFF +899999999999AAEEAAA8FEFFAAEFFF8FFFFFFFFF +F8999999999A88EEAAA8FFEEAEEEEF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FF889999998A88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFF899998AA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFF8988EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFF888EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FFEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA888EEAAA8FEEEAAEFFF8FFFFFFFFF +FFFFFFF88EAA88EEAAA8FEEEAEEEEF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA8888EAAAA8F88AAEFFF8FFFFFFFFF +FFFFFFF88EA888AAAAAAAAAAAEEEEF8FFFFFFFFF +FFFFFFF88EAAAAAAAAAAEAEEAEEFFF8FFFFFFFFF +FFFFFFFFF88EEEEEEEEEEEEEEEFFF88FFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFF8888888888888888888FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Erase +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999FFFFFF999999999999999999 +999999999999999FEAA8AEFF9999999999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +9999999FFFFFFFFFFFFFFFFFFFFFFFF999999999 +999999FEEEEA888A8AA8AAEEEEFEEFFF99999999 +99999FFFFFFFFFFFFFFFFFFFFFFFFFFF99999999 +99999F888888888FAAAAAAAAEEEEEFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +99FFF888888888F8AAAAAAAAAAEFFFF999999999 +9F8888888888FF8EAAAA8F88AEEEEFF999999999 +F8888888888FAAEEAAA8FEFFAAEFFFF999999999 +9F88888888FA88EEAAA8FFEEAEEEEFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +99FF88888FFA88EEAAA8FEEEAAEFFFF999999999 +9999F8888FAA88EEAAA8FFEEAEEEEFF999999999 +99999F8FFEAA88EEAAA8FEEEAAEFFFF999999999 +999999FFFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FFEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA888EEAAA8FEEEAAEFFFF999999999 +9999999FFEAA88EEAAA8FEEEAEEEEFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA8888EAAAA8F88AAEFFFF999999999 +9999999FFEA888AAAAAAAAAAAEEEEFF999999999 +9999999FFEAAAAAAAAAAEAEEAEEFFFF999999999 +999999999FFEEEEEEEEEEEEEEEFFFFF999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999FFFFFFFFFFFFFFFFFFF99999999999 +9999999999999999999999999999999999999999 +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FF88888888888888888888888888888888888FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FDDDDDBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDDDBBBFF8FCCCCCCCCF8F9999DDDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDDBBBBBFF8FCCCCCCEEF8F99999DDDF8FFF +FF88FDBBBBBBFF8FCCCCCEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCCEEEEF8FAAA99999F8FFF +FF88FBBBBBBBFF8FCCCEEEEEF8FAAA99999F8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FBBBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FEEEEAAAFF8FCCCCCDDDF8FCCBBBBBBF8FFF +FF88FCCCCAAAFF8FCCCCCDDDF8FCCCBBBBBF8FFF +FF88FCCCCAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCBBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FBBBBAAAFF8FDDDDCCCCF8FCCCCCBBBF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F999999BFF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99999B9FF8FDAAAAAAAF8FCCCCCDDDF8FFF +FF88F99BBBB9FF8FDAAAAAAAF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEEB9FF8FEEEEBBBBF8FCCCAADDDF8FFF +FF88FEEEEE99FF8FEEEEBBBBF8FDDDDDDDDF8FFF +FF88FFFFFFFFFF8FFFFFFFFFF8FFFFFFFFFF8FFF +FF88888888888888888888888888888888888FFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: View Small Photos +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9F99999999999999999999999999999999999FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FDDDDDBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDDDBBBFF9FCCCCCCCCF9F9999DDDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDDBBBBBFF9FCCCCCCEEF9F99999DDDF9FF9 +9F99FDBBBBBBFF9FCCCCCEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCCEEEEF9FAAA99999F9FF9 +9F99FBBBBBBBFF9FCCCEEEEEF9FAAA99999F9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FBBBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FEEEEAAAFF9FCCCCCDDDF9FCCBBBBBBF9FF9 +9F99FCCCCAAAFF9FCCCCCDDDF9FCCCBBBBBF9FF9 +9F99FCCCCAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCBBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FBBBBAAAFF9FDDDDCCCCF9FCCCCCBBBF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F999999BFF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99999B9FF9FDAAAAAAAF9FCCCCCDDDF9FF9 +9F99F99BBBB9FF9FDAAAAAAAF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEEB9FF9FEEEEBBBBF9FCCCAADDDF9FF9 +9F99FEEEEE99FF9FEEEEBBBBF9FDDDDDDDDF9FF9 +9F99FFFFFFFFFF9FFFFFFFFFF9FFFFFFFFFF9FF9 +9F99999999999999999999999999999999999FF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9 +9999999999999999999999999999999999999999 +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A88F888888888F8A88FFFFFFFFFFF +FFFFFFFFFF8A888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFF88EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Lock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFF9FFFFFFFFF9FAFF99999999999 +9999999999FAFFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFF888888FFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFFFF88EEEEEE888FFFFFFFFFFFFFFF +FFFFFFFFFFFF88EEE8888EEEE8FFFFFFFFFFFFFF +FFFFFFFFFFF8EEE88FFFF888EE8FFFFFFFFFFFFF +FFFFFFFFFF8EEE8FFFFFFFFF8EE88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8E88FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFF8888FFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFF8E88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFFFFF888888888F8A88FFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88A88FFFFFFFFFFF +FFFFFFFFFFF8EEEEEDDDDEEEEE888FFFFFFFFFFF +FFFFFFFFFF8EEEEEEEEDEEEEEEE88FFFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFFFF8EEEEEEFFFFFFEEEEEEE8FFFFFFFFFF +FFFFFFF88EEEEEFFFFF8FFFFFEEEEE8FFFFFFFFF +FFFFFFF88EEEFFFFFFFFFFFFFFEEEE8FFFFFFFFF +FFFFFF8EEEEFFF8FFFFFFFFF8FFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEEFFFFFFFFFFFFFFFFEEEE8FFFFFFFF +FFFFFF8EEEFFFFFFF8888FFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF888888FFFFFFFEE8FFFFFFFF +FFFFFF8EEEF8FFFF88888AFFFF8FFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFF8888AEFFFFFFFEE8FFFFFFFF +FFFFFF8EEEFFFFFFF88AEFFFFFFFFEE8FFFFFFFF +FFFFFFF88EEFFFFFFFFFFFFFFFF88E8FFFFFFFFF +FFFFFFF88EEFFF8FFFFFFFFF8FFEEE8FFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFF8EEFFFFFFFFFFFFFFEEE8FFFFFFFFFF +FFFFFFFFFF8EEEFFFFF8FFFFFEE88FFFFFFFFFFF +FFFFFFFFFFF8EEEEFFFFFF88EE8FFFFFFFFFFFFF +FFFFFFFFFFFF888EEEEEEEEE88FFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFF888888888FFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Unlock +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999FFFFFF999999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +99999999999999FFEEEEEEFFF999999999999999 +999999999999FFEEEFFFFEEEEF99999999999999 +99999999999FEEEFF9999FFFEEF9999999999999 +9999999999FEEEF999999999FEEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FEFF99999999999FEFF99999999999 +9999999999FFFF99999999999FEFF99999999999 +9999999999999999999999999FEFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999999FFFFFFFFF9FAFF99999999999 +999999999999FFFEEEEEEEEEFFAFF99999999999 +9999999999FFEEEEEDDDDEEEEEFFF99999999999 +9999999999FEEEEEEEEDEEEEEEEFF99999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +999999999FEEEEEEFFFFFFEEEEEEEF9999999999 +9999999FFEEEEEFFFFF8FFFFFEEEEEF999999999 +9999999FFEEEFFFFFFFFFFFFFFEEEEF999999999 +999999FEEEEFFF8FFFFFFFFF8FFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEEFFFFFFFFFFFFFFFFEEEEF99999999 +999999FEEEFFFFFFF8888FFFFFFFFEEF99999999 +999999FEEEFFFFFF888888FFFFFFFEEF99999999 +999999FEEEF8FFFF88888AFFFF8FFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFF8888AEFFFFFFFEEF99999999 +999999FEEEFFFFFFF88AEFFFFFFFFEEF99999999 +9999999FFEEFFFFFFFFFFFFFFFF88EF999999999 +9999999FFEEFFF8FFFFFFFFF8FFEEEF999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +999999999FEEFFFFFFFFFFFFFFEEEF9999999999 +9999999999FEEEFFFFF8FFFFFEEFF99999999999 +99999999999FEEEEFFFFFF88EEF9999999999999 +999999999999FFFEEEEEEEEEFF99999999999999 +999999999999999FFFFFFFFF9999999999999999 +999999999999999FFFFFFFFF9999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEEFFFFF +FFFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAEFFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEFFF +FFFFFFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEFFF +FFFFFFFEEAAAAAAAAAAAAAAAAAAAAAAEAAAAEFFF +FFFFFFEAAAAAAAAAAAAAAAAAAAAAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEAAAAAEEAAEFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEAAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEAAEEAAEFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAAEFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEAEFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEEFFFFF +FFEEAAFEEEEEEEEEEEEEEEEEEFAAAEAAEEFFFFFF +FFEEAAAFFEEEEEEEEEEEEEEEFAAAAEAEFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAFFFFFFFFFFFFFFFAAAAAEEFFFFFFFFF +FFEEAAAAAAAAAAAAAAAAAAAAAAAAAEFFFFFFFFFF +FFFFEAAAAAAAAAAAAAAAAAAAAAAEEFFFFFFFFFFF +FFFFFEEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +# +# Title: Start Slide Show +# Width: 20 +# Height: 40 +# Length: 400 +# +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +999999999999FFFFFFFFFFFFFFFFFFFFFFF99999 +99999999999FAAAAAAAAAAAAAAAAAAAAAAAF9999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +9999999999FAAAAAAAAAAAAAAAAAAAAAAAAAF999 +999999999FFFFFFFFFFFFFFFFFFFFFFAAAAAF999 +9999999FFAAAAAAAAAAAAAAAAAAAAAAFAAAAF999 +999999FAAAAAAAAAAAAAAAAAAAAAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +99999FFFFFFFFFFFFFFFFFFFFFFAAAAAFFAAF999 +9999FAAAAAAAAAAAAAAAAAAAAAAFFAAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFAAFFAAF999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAAF999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFAF9999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFFF99999 +99FFAAFEEEEEEEEEEEEEEEEEEFAAAFAAFF999999 +99FFAAAFFEEEEEEEEEEEEEEEFAAAAFAF99999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAFFFFFFFFFFFFFFFAAAAAFF999999999 +99FFAAAAAAAAAAAAAAAAAAAAAAAAAF9999999999 +9999FAAAAAAAAAAAAAAAAAAAAAAFF99999999999 +99999FFFFFFFFFFFFFFFFFFFFFF9999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +9999999999999999999999999999999999999999 +# +# Title: Locked +# Width: 12 +# Height: 24 +# Length: 288 +# +999999999999999999999999 +99999999FFEEEFF999999999 +9999999FEEFFFEEF99999999 +9999999EEF999FEE99999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9999999FF9999999 +999999FF9FFFFF9FF9999999 +999999FFFEEEEEFFF9999999 +999999FEEEDDDEEEF9999999 +99999FEEEEFFFEEEEF999999 +9999FEEEFFF8FFFEEEF99999 +9999FEEFFFFFFFFFEEF99999 +9999EEEFFFFFFFFFEEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF888FFFFEE99999 +9999EEFFFF88AFFFFEE99999 +9999EEFFFF8AEFFFFEE99999 +9999FEEFFFFFFFFF8EF99999 +99999FEFFFFFFFFFEF999999 +999999FEFFF8FFFEF9999999 +9999999EEEFFF8EE99999999 +999999999FFFFF9999999999 +999999999999999999999999 +# +# Title: Low Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000B00000 +000000000000000000000000000000000BBB0000 +00000000000000000000000000000000BBBBB000 +0000000000000000000000000000000BBBBBBB00 +000000000000000000000000000000BBBBBBBBB0 +0000000000000000000000000000000BBBBBBB00 +00000000000000000000000000000000BBBBB000 +000000000000000000000000000000000BBB0000 +0000000000000000000000000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +00000000000000000000B0000000000000B00000 +0000000000000000000BBB00000000000BBB0000 +000000000000000000BBBBB000000000BBBBB000 +00000000000000000BBBBBBB0000000BBBBBBB00 +0000000000000000BBBBBBBBB00000BBBBBBBBB0 +00000000000000000BBBBBBB0000000BBBBBBB00 +000000000000000000BBBBB000000000BBBBB000 +0000000000000000000BBB00000000000BBB0000 +00000000000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: High Resolution +# Width: 20 +# Height: 15 +# Length: 300 +# +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +000000B0000000000000B0000000000000B00000 +00000BBB00000000000BBB00000000000BBB0000 +0000BBBBB000000000BBBBB000000000BBBBB000 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +00BBBBBBBBB00000BBBBBBBBB00000BBBBBBBBB0 +000BBBBBBB0000000BBBBBBB0000000BBBBBBB00 +0000BBBBB000000000BBBBB000000000BBBBB000 +00000BBB00000000000BBB00000000000BBB0000 +000000B0000000000000B0000000000000B00000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +0000000000000000000000000000000000000000 +# +# Title: Normal +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAABEFBEFBEFBEFBEFBEFBEAAAAEB +AEAAAAFBEFBEFBEFBEFBEFBEFBAAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAABBEFBEFBEFBEFBEFBEFBEEAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBAEABAE BAEAFAAFBEFBEFBEFBEFBEFBEEBEAABA EBABEFAEFBEFBEFBEFBEFBEFBAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEEBEFABAE BAEAFBEABEFBEFBEFBEFBEFBAFBEEABA EBABEFBEBBEFBEFBEFBEFBEEBEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBAFBEFABAE BAEAFBEFAAFBEFBEFBEFBEEBEFBEEABA EBABEFBEFAEFBEFBEFBEFBEFBEFBEAEB +AEABBEFBEEBEFBAFBEFBEFBEFBEFABAE BAEAFBEFBEABEEBEFBEFBEFBEFBEEABA EBABEFBEFBEFAABBEFBEFBEFBEFBEAEB +AEABBEFBEFBEAAAFBEFBEFBEFBEFABAE BAEAFBEFBEFAAABEAAEAAAFBEFBEEABA EBABEFBEFBEFAABBAABAABEFBEFBEAEB +AEABBEFBEFBEEAAFAAEAAFBEFBEFABAE BAEAFBEFBEFBEABEEAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFBEABEFBEFBEFABAE BAEAFBEFBEFBEABEFAAABEFBEFBEEABA EBABEFBEFBEFAABBEAAAFBEFBEFBEAEB +AEABBEFBEFBEEAAFAAFAAFBEFBEFABAE BAEAFBEFBEEBEABEAAEAAEFBEFBEEABA EBABEFBEFBAFAABAABBEABEFBEFBEAEB +AEABBEFBEEBEFBEFBEFBEFAEFBEFABAE BAEAFBEFBAFBEFBEFBEFBEEBEFBEEABA EBABEFBEEBEFBEFBEFBEFBEABEFBEAEB +AEABBEFBAFBEFBEFBEFBEFBEBBEFABAE BAEAFBEEBEFBEFBEFBEFBEFBAFBEEABA EBABEFBAFBEFBEFBEFBEFBEFAAFBEAEB +AEABBEEBEFBEFBEFBEFBEFBEFAEFABAE BAEAFBAFBEFBEFBEFBEFBEFBEEBEAABA EBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEB +AEAABAFBEFBEFBEFBEFBEFBEFBEAABAE BAEAABEFBEFBEFBEFBEFBEFBEFBAAABA EBAAAABEFBEFBEFBEFBEFBEFBEEAAAEB +AEAAAABBEFBEFBEFBEFBEFBEFBAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Normal +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAABEFBEFBEFBEFBEFBEFBEAAAAEE +FEAAAAFBEFBEFBEFBEFBEFBEFBAAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAABBEFBEFBEFBEFBEFBEFBEEAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBAEABAB EAEAFAAFBEFBEFBEFBEFBEFBEEBEAABF BBABEFAEFBEFBEFBEFBEFBEFBAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEEBEFABAB EAEAFBEABEFBEFBEFBEFBEFBAFBEEABF BBABEFBEBBEFBEFBEFBEFBEEBEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBAFBEFABAB EAEAFBEFAAFBEFBEFBEFBEEBEFBEEABF BBABEFBEFAEFBEFBEFBEFBEFBEFBEAEE +FEABBEFBEEBEFBAFBEFBEFBEFBEFABAB EAEAFBEFBEABEEBEFBEFBEFBEFBEEABF BBABEFBEFBEFAABBEFBEFBEFBEFBEAEE +FEABBEFBEFBEAAAFBEFBEFBEFBEFABAB EAEAFBEFBEFAAABEAAEAAAFBEFBEEABF BBABEFBEFBEFAABBAABAABEFBEFBEAEE +FEABBEFBEFBEEAAFAAEAAFBEFBEFABAB EAEAFBEFBEFBEABEEAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFBEABEFBEFBEFABAB EAEAFBEFBEFBEABEFAAABEFBEFBEEABF BBABEFBEFBEFAABBEAAAFBEFBEFBEAEE +FEABBEFBEFBEEAAFAAFAAFBEFBEFABAB EAEAFBEFBEEBEABEAAEAAEFBEFBEEABF BBABEFBEFBAFAABAABBEABEFBEFBEAEE +FEABBEFBEEBEFBEFBEFBEFAEFBEFABAB EAEAFBEFBAFBEFBEFBEFBEEBEFBEEABF BBABEFBEEBEFBEFBEFBEFBEABEFBEAEE +FEABBEFBAFBEFBEFBEFBEFBEBBEFABAB EAEAFBEEBEFBEFBEFBEFBEFBAFBEEABF BBABEFBAFBEFBEFBEFBEFBEFAAFBEAEE +FEABBEEBEFBEFBEFBEFBEFBEFAEFABAB EAEAFBAFBEFBEFBEFBEFBEFBEEBEAABF BBAAEEBEFBEFBEFBEFBEFBEFBEAAAAEE +FEAABAFBEFBEFBEFBEFBEFBEFBEAABAB EAEAABEFBEFBEFBEFBEFBEFBEFBAAABF BBAAAABEFBEFBEFBEFBEFBEFBEEAAAEE +FEAAAABBEFBEFBEFBEFBEFBEFBAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: Zoom +# Status: Not Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEAAAAAAAAAAAAAAAAAAAAAAAAAAABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEEABAE BAEAABAFBEFBEFBEFBEFBEFBEABAEABA EBABEBAEFBEFBEFBEFBEFBEFBAEBEAEB +AEABBAABEFBEFBEFBEFBEFBEFAAFABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAAAAAAAAAAAAAAAAAAAAABEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEFFEBAEBAEBAEAFABAE BAEAFABAEBAEBBFFFEBAEBAEBABEEABA EBABEEABAFFAEFFFFEEBAEBAEABBEAEB +AEABBEAEBBEBAFFBFFAEBAEBAEAFABAE BAEAFABAEBEEBFEBFEBFFBFFFABEEABA EBABEEABAFFAEBEFFEEFFEFFEABBEAEB +AEABBEAFFFFFEEBFFBAFFBFFAEAFABAE BAEAFABBFFFFFAFFFEBBFFFEBABEEABA EBABEEABAFFAEBBFFAEBFFFAEABBEAEB +AEABBEAEBBEBAEFFEBAEBFEBAEAFABAE BAEAFABAEBEEBAFFAEBAFFFEBABEEABA EBABEEABAFFAEBFEBAEBFFFAEABBEAEB +AEABBEAEBAEBAFFFFFAFFAFFAEAFABAE BAEAFABAEBAEBFFFFEBFFBFFBABEEABA EBABEEABAEBAFFFFFEFFEEBFEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAEBAEBAEBAEBAEBAEBAEAFABAE BAEAFABAEBAEBAEBAEBAEBAEBABEEABA EBABEEABAEBAEBAEBAEBAEBAEABBEAEB +AEABBEAAAAAAAAAAAAAAAAAAAAABABAE BAEAEAAAAAAAAAAAAAAAAAAAAAAAEABA EBABEAAEFBEFBEFBEFBEFBEFBAABEAEB +AEABBAABEFBEFBEFBEFBEFBEFAEBABAE BAEAEBAFBEFBEFBEFBEFBEFBEABAEABA EBABAFBEFBEFBEFBEFBEFBEFBEFAAAEB +AEAABEFBEFBEFBEFBEFBEFBEFBEFABAE BAEAAAAAAAAAAAAAAAAAAAAAAAAAAABA EBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE BAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBA EBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEB +AEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAE +# +# Title: Zoom +# Status: Selected +# Width: 16 +# Length: 1024 +# +######## red ######## ######## yellow ######## ######## blue ######## +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB EFBEFBEFBEFBEFBEFBEFBEFBEFBEFBEF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEAAAAAAAAAAAAAAAAAAAAAAAAAAABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAEFBEFBEFBEFBEFBEFBEFBEFBAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEEABAB EAEAABAFBEFBEFBEFBEFBEFBEABAEABF BBABEBAEFBEFBEFBEFBEFBEFBAEBEAEE +FEABBAABEFBEFBEFBEFBEFBEFAAFABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAAAAAAAAAAAAAAAAAAAAABEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEFFEBAEBAEBAEAFABAB EAEAFABAEBAEBBFFFEBAEBAEBABEEABF BBABEEABAFFAEFFFFEEBAEBAEABBEAEE +FEABBEAEBBEBAFFBFFAEBAEBAEAFABAB EAEAFABAEBEEBFEBFEBFFBFFFABEEABF BBABEEABAFFAEBEFFEEFFEFFEABBEAEE +FEABBEAFFFFFEEBFFBAFFBFFAEAFABAB EAEAFABBFFFFFAFFFEBBFFFEBABEEABF BBABEEABAFFAEBBFFAEBFFFAEABBEAEE +FEABBEAEBBEBAEFFEBAEBFEBAEAFABAB EAEAFABAEBEEBAFFAEBAFFFEBABEEABF BBABEEABAFFAEBFEBAEBFFFAEABBEAEE +FEABBEAEBAEBAFFFFFAFFAFFAEAFABAB EAEAFABAEBAEBFFFFEBFFBFFBABEEABF BBABEEABAEBAFFFFFEFFEEBFEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAEBAEBAEBAEBAEBAEBAEAFABAB EAEAFABAEBAEBAEBAEBAEBAEBABEEABF BBABEEABAEBAEBAEBAEBAEBAEABBEAEE +FEABBEAAAAAAAAAAAAAAAAAAAAABABAB EAEAEAAAAAAAAAAAAAAAAAAAAAAAEABF BBABEAAEFBEFBEFBEFBEFBEFBAABEAEE +FEABBAABEFBEFBEFBEFBEFBEFAEBABAB EAEAEBAFBEFBEFBEFBEFBEFBEABAEABF BBABAFBEFBEFBEFBEFBEFBEFBEFAAAEE +FEAABEFBEFBEFBEFBEFBEFBEFBEFABAB EAEAAAAAAAAAAAAAAAAAAAAAAAAAAABF BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BBAEBAEBAEBAEBAEBAEBAEBAEBAEBAEE +FEBAEBAEBAEBAEBAEBAEBAEBAEBAEBAB EAEBAEBAEBAEBAEBAEBAEBAEBAEBAEBF BEFBEFBEFBEFBEFBEFBEFBEFBEFBEFBE +FBEFBEFBEFBEFBEFBEFBEFBEFBEFBEFB +# +# Title: ? +# Length: 48 +# +00000005 +00000007 +00000005 +00000005 +00000004 +00000005 +00000005 +00000006 +0000000A +00000007 +00000009 +00000009 +# +# Title: ? +# Length: +# +00000000000007E01FF81C38381C381C381C381C1C381FF807E0000000000000 +00000000000003801F801F80038003800380038003803FF83FF8000000000000 +0000000000000FE03FF03838003800F003E00F803E383FF83FF8000000000000 +0000000000000FE03FF03838003803F003F0003838383FF00FE0000000000000 +00000000000003E007E00EE01CE038E07FF87FF800E007F807F8000000000000 +0000000000003FF83FF838003FE03FF00078003878783FF00FC0000000000000 +00000000000007F01FF03C003BC07FF07C7878383C783FF00FC0000000000000 +0000000000003FF83FF8007000F000E001E001C003C003800780000000000000 +00000000000007E01FF81C381C380FF01FF8381C381C1FF807E0000000000000 +00000000000007E01FF83C78383C3C7C1FFC07B800781FF01FC0000000000000 +0000000000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +0000000000007FF87FFE1C0E1C0E1FF81FFE1C0E1C0E7FFE7FF8000000000000 +00000000000007F61FFE3C0E78067000700078003C0E1FFE07F0000000000000 +0000000000007FE07FF81C3C1C1E1C0E1C0E1C1E1C3C7FF87FE0000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +0000000000007FFE7FFE1C0E1C0E1FE01FE01C001C007F807F80000000000000 +00000000000007F61FFE3C0E78007000703F783F3C0E1FFE07F0000000000000 +0000000000007E7E7E7E1C381C381FF81FF81C381C387E7E7E7E000000000000 +0000000000003FF83FF80380038003800380038003803FF83FF8000000000000 +00000000000007FE07FE0070007000707070707078F03FE01FC0000000000000 +0000000000007EFC7EFC1C701CE01FC01FE01DF01C7C7F3E7F3E000000000000 +0000000000007FC07FC00E000E000E000E000E060E067FFE7FFE000000000000 +000000000000F83EFC7E7C7C7EFC77DC77DC739C739CF93EF83E000000000000 +000000000000F8FEFCFE3E383F383FB83BF839F838F8FE78FE38000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0000000000007FF07FF81C3C1C1C1C3C1FF81FF01C007F007F00000000000000 +0000000000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE01FFE1CFC0000 +0000000000007FF07FFC1C3C1C3C1FF81FF01CF01C787F3E7F1E000000000000 +0000000000001FEC7FFC701C70007FF01FFC001C701C7FFC6FF0000000000000 +0000000000007FFC7FFC739C739C03800380038003803FF83FF8000000000000 +0000000000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +000000000000FEFEFEFE38381C701C700EE00EE007C007C00380000000000000 +000000000000FC3FFC3F718E718E3BDC3BDC3FFC1E781C381C38000000000000 +0000000000007F7E7F7E1E380FF007C003E00FF01C787EFE7EFE000000000000 +0000000000007EFC7EFC1C700EE007C007C0038003801FF01FF0000000000000 +0000000000003FFC3FFC38F839F003E007C00F9C1F1C3FFC3FFC000000000000 +000000000000000000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000000F800F8003BF03FFC3C1E380E380E3C1EFFFCFBF0000000000000 +000000000000000000000FDC3FFC783C70007000781C3FFC0FF0000000000000 +000000000000007C007C0FDC3FFC783C701C701C783C3FFF0FDF000000000000 +000000000000000000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +00000000000001FC07FC07003FF03FF00700070007003FF03FF0000000000000 +000000000000000000000FDF3FFF783C701C701C783C3FFC0FDC001C3FF81FF0 +000000000000F800F8003BF03FF83C38383838383838FEFEFEFE000000000000 +000000000380038000001F801F8003800380038003803FF83FF8000000000000 +0000000000E000E000003FE03FE000E000E000E000E000E000E001E03FC03F80 +0000000000007C007C001CF81CF81DE01F801FC01FF07CFC7C7C000000000000 +0000000000001F801F800380038003800380038003803FF83FF8000000000000 +00000000000000000000EF78FFFC739C739C739C739CFBDEFBDE000000000000 +00000000000000000000FBF0FFF83C38383838383838FEFEFEFE000000000000 +000000000000000000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +00000000000000000000FBF0FFFC3C1E380E380E3C1E3FFC3BF03800FF00FF00 +000000000000000000001FBE7FFEF078E038E038F0787FF81FB8003801FE01FE +000000000000000000003EF83FFE0F1E0E000E000E007FF07FF0000000000000 +000000000000000000001FB07FF070307FC01FF060707FF06FC0000000000000 +0000000000001C001C00FFF0FFF01C001C001C001C1C1FFC07F0000000000000 +00000000000000000000F8F8F8F838383838383838783FFE0FBE000000000000 +00000000000000007E7E7E7E1C381E780E7007E007E003C003C0000000000000 +00000000000000000000F83EF93E739C7BBC3FF83EF81C701C70000000000000 +000000000000000000007EFC7EFC1E700FC007E01CF07EFC7EFC000000000000 +000000000000000000007E7E7E7E1C380E700FE007C00380038007003FC03FC0 +000000000000000000003FF83FF831F003C007801F183FF83FF8000000000000 +00000000000001E001E0000000E003E00F001C001C381FF80FF0000000000000 +000000000000000000000000000000000000000003C003C003C0000000000000 +0000000000000FF01FF81C38003800F007C00700000007800780000000000000 +000000000000001C0038007000E001C0038007000E001C003800000000000000 +0000000000000000000003C003C003C00000000003C003C003C0000000000000 +00000000000007C00FE00E600F00079C1FD839F838F03FFC0FBC000000000000 +# +00000000000003C003C000000180018003C003C003C003C003C0000000000000 +0000000000000FC0006007E00C600C6007F00000000000000000000000000000 +00000000000007C00C600C600C600C6007C00000000000000000000000000000 +00000000000001E001E0000000E003E00F001C001C381FF80FF0000000000000 +0F0003C000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +0CC00CC000001FC01FC00FE00EE01C701FF03FF838387C7C7C7C000000000000 +00000000000007F61FFE3C0E78067000700078003C0E1FFE07F001C007C00780 +078001E000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +01E0078000007FFE7FFE1C0E1C0E1FE01FE01C0E1C0E7FFE7FFE000000000000 +0F0003C000003FF83FF80380038003800380038003803FF83FF8000000000000 +07600DC00000F8FEFCFE3E383F383FB83BF839F838F8FE78FE38000000000000 +0F0003C000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0CC00CC000000FE03FF8783CF01EE00EE00EF01E783C3FF80FE0000000000000 +0F0003C000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +0660066000007E7E7E7E381C381C381C381C381C3C3C1FF80FF0000000000000 +00000000000007E00FF81C381C381DF01DF81C1C1C1C7DF87DF0000000000000 +000000000F0003C000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000660066000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000000000000000000000FDC3FFC783C70007000781C3FFC0FF003800F800F00 +000000000F0003C000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +0000000001E0078000000FE03FF8783C7FFC7FFC78003FFC0FF8000000000000 +000000001E00078000001F801F8003800380038003803FF83FF8000000000000 +0000000007600DC00000FBF0FFF83C38383838383838FEFEFEFE000000000000 +00000000078001E000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +000000000660066000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +000000000F0003C00000F8F8F8F838383838383838783FFE0FBE000000000000 +000000000CC00CC00000F8F8F8F838383838383838783FFE0FBE000000000000 +00000000000001E001C003800300000000000000000000000000000000000000 +000000000000000000000000000000000000000003C003800700060000000000 +000000000000000000000000000007C007C00000000000000000000000000000 +0000000001E0078000001F801F8003800380038003803FF83FF8000000000000 +0000000001E0078000000FF03FFC781E700E700E781E3FFC0FF0000000000000 +0000000003C00F0000003FE03FF800381FF87FF870387FFE1FDE000000000000 +000007C01EF0783C0000F8F8F8F838383838383838783FFE0FBE000000000000 +# +# Text: / +# +2F 00 +# +# Text: : +# +3A 00 +# +# Text: am +# +61 6D 00 +# +# Text: pm +# +70 6D 00 +# +# Text: No pictures in camera. +# +43 61 6D 61 72 61 20 73 69 6E 0A 66 6F 74 6F 73 20 64 65 6E 74 72 6F 00 +# +# Text: Yes +# +53 9E 00 +# +# Text: No +# +4E 6F 00 +# +# Text: . +# +2E 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Lock? +# +21 42 6C 6F 71 75 65 61 72 3F 00 +# +# Text: Unlock? +# +21 44 65 73 62 6C 6F 71 65 61 72 3F 00 +# +# Text: Erase? +# +21 42 6F 72 72 61 72 3F 00 +# +# Text: View Small Photos? +# +21 56 65 72 0A 66 6F 74 6F 73 0A 70 65 71 75 65 96 61 73 3F 00 +# +# Text: View Full screen? +# +00 +# +# Text: Set Screen Brightness? +# +21 41 6A 75 73 74 61 72 0A 65 6C 20 62 72 69 6C 6C 6F 0A 64 65 20 6C 61 20 70 61 6E 74 61 6C 6C 61 3F 00 +# +# Text: Start Slide Show? +# +21 49 6E 69 63 69 61 72 20 70 72 65 9D 0A 73 65 6E 74 61 63 69 9F 6E 20 63 6F 6E 0A 64 69 61 70 6F 73 69 74 69 76 61 73 3F 00 +# +# Text: Stop Slide Show? +# +00 +# +# Text: Set Camera Exposure? +# +21 41 64 6A 75 73 74 61 72 0A 65 6C 20 74 65 6D 70 6F 0A 64 65 20 65 78 70 6F 73 69 63 69 9F 6E 3F 00 +# +# Text: Format Memory Card? +# +21 46 6F 72 6D 61 74 65 61 72 0A 6C 61 20 74 61 72 6A 65 74 61 0A 64 65 20 6D 65 6D 6F 72 69 61 3F 00 +# +# Text: Set Date & Time? +# +21 41 6A 75 73 74 61 72 0A 66 65 63 68 61 20 79 0A 68 6F 72 61 3F 00 +# +# Text: Set for NTSC TV? +# +21 41 6A 75 73 74 61 72 20 70 61 72 61 0A 4E 54 53 43 20 54 56 3F 00 +# +# Text: Set for PAL TV? +# +21 41 6A 75 73 74 61 72 20 70 61 72 61 0A 50 41 4C 20 54 56 3F 00 +# +# Text: Review Pictures? +# +21 56 65 72 0A 66 6F 74 6F 73 3F 00 +# +# Text: Take Pictures? +# +21 54 6F 6D 61 72 0A 66 6F 74 6F 3F 00 +# +# Text: +# +00 +# +# Text: One +# +55 6E 61 0A 20 20 20 20 20 00 +# +# Text: None +# +4E 61 64 61 0A 20 20 20 20 20 00 +# +# Text: All +# +54 6F 64 6F 0A 20 20 20 20 20 00 +# +# Text: +# +00 +# +# Text: ERASE? +# +21 42 6F 72 72 61 72 3F 00 +# +# Text: Erase This Picture? +# +21 42 6F 72 72 61 72 0A 65 73 74 61 0A 66 6F 74 6F 3F 00 +# +# Text: Cancel Picture Erase? +# +21 53 61 6C 69 72 0A 73 69 6E 0A 62 6F 72 72 61 72 3F 00 +# +# Text: Erase All Pictures? +# +21 42 6F 72 72 61 72 0A 74 6F 64 61 73 0A 6C 61 73 20 66 6F 74 6F 73 3F 00 +# +# Text: Erasing picture... +# +42 6F 72 72 61 6E 64 6F 0A 66 6F 74 6F 2E 2E 2E 00 +# +# Text: Picture is LOCKED Unlock before erasing +# +46 6F 74 6F 20 65 73 74 A0 0A 62 6C 6F 71 75 65 61 64 61 2E 0A 44 65 73 62 6C 6F 71 75 65 61 72 0A 61 6E 74 65 73 0A 64 65 20 62 6F 72 72 61 2E 00 +# +# Text: Erase ALL pictures? +# +21 42 6F 72 72 61 72 20 74 6F 64 61 73 0A 6C 61 73 20 66 6F 74 6F 73 3F 00 +# +# Text: Erasing ALL pictures... +# +42 6F 72 72 61 6E 64 6F 20 74 6F 64 61 73 0A 6C 61 73 20 66 6F 74 6F 73 2E 2E 2E 00 +# +# Text: Normal? +# +21 4E 6F 72 6D 61 6C 3F 00 +# +# Text: Zoom? +# +21 5A 6F 6F 6D 3F 00 +# +# Text: Set Screen Brightness +# +41 6A 75 73 74 61 72 20 65 6C 20 62 72 69 6C 6C 6F 0A 64 65 20 6C 61 20 70 61 6E 74 61 6C 6C 61 00 +# +# Text: Set Camera Exposure +# +41 64 6A 75 73 74 61 72 20 65 6C 20 74 65 6D 70 6F 0A 64 65 20 65 78 70 6F 73 69 63 69 9F 6E 3F 00 +# +# Text: Formatting resets the memory card and erases all photos on it. Format? +# +45 6C 20 70 72 6F 63 65 73 6F 0A 64 65 20 66 6F 72 6D 61 74 6F 0A 72 65 73 74 61 62 6C 65 63 65 0A 6C 61 20 74 61 72 6A 65 74 61 20 64 65 0A 6D 65 6D 6F 72 69 61 20 79 20 62 6F 72 72 61 0A 74 6F 64 61 73 20 73 75 73 20 66 6F 74 6F 73 2E 0A 21 46 6F 72 6D 61 74 65 61 72 3F 00 +# +# Text: Formatting the memory card..... +# +46 6F 72 6D 61 74 65 61 6E 64 6F 0A 6C 61 20 74 61 72 6A 65 74 61 0A 64 65 20 6D 65 6D 6F 72 69 61 2E 2E 2E 00 +# +# Text: Set for PAL TV? +# +21 41 6A 75 73 74 61 72 20 70 61 72 61 0A 50 41 4C 20 54 56 3F 00 +# +# Text: Set for NTSC TV? +# +21 41 6A 75 73 74 61 72 20 70 61 72 61 0A 4E 54 53 43 20 54 56 3F 00 +# +# Text: +# +00 +# +# Text: This pict +# +45 73 74 61 0A 69 6D 61 67 65 6E 00 +# +# Text: No +# +4E 6F 00 +# +# Text: ALL pict +# +54 6F 64 61 73 0A 6C 61 73 20 69 6D A0 67 65 6E 65 73 00 +# +# Text: January +# +65 6E 65 72 6F 00 +# +# Text: February +# +66 65 62 72 65 72 6F 00 +# +# Text: March +# +6D 61 72 7A 6F 00 +# +# Text: April +# +61 62 72 69 6C 00 +# +# Text: May +# +6D 61 79 6F 00 +# +# Text: June +# +6A 75 6E 69 6F 00 +# +# Text: July +# +6A 75 6C 69 6F 00 +# +# Text: August +# +61 67 6F 73 74 6F 00 +# +# Text: September +# +73 65 70 74 69 65 6D 62 72 65 00 +# +# Text: October +# +6F 63 74 75 62 72 65 00 +# +# Text: November +# +6E 6F 76 69 65 6D 62 72 65 00 +# +# Text: December +# +64 69 63 69 65 6D 62 72 65 00 +# +# Text: Day +# +44 9E 61 00 +# +# Text: Month +# +4D 65 73 00 +# +# Text: Year +# +41 96 6F 00 +# +# Text: Time +# +48 6F 72 61 00 +# +# Text: AM +# +41 4D 00 +# +# Text: PM +# +50 4D 00 +# +# Text: Set Date and Time +# +20 20 46 65 63 68 61 20 79 20 68 6F 72 61 00 +# +# Text: Is this correct? +# +21 53 6F 6E 20 63 6F 72 72 65 63 74 6F 3F 00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: +# +00 +# +# Text: Service Menu +# +20 20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 20 20 00 +# +# Text: P +# +50 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: S +# +53 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service ID +# +53 65 72 76 69 63 65 20 49 44 20 20 20 20 20 20 20 00 +# +# Text: Ver +# +56 65 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 +# +# Text: Service Menu 2 +# +20 53 65 72 76 69 63 65 20 4D 65 6E 75 20 32 20 20 00 +# +# Text: Reset Pictures +# +52 65 73 65 74 20 50 69 63 74 75 72 65 73 20 20 20 00 +# +# Text: Reset Strobe Pict +# +52 65 73 65 74 20 53 74 72 6F 62 65 20 50 69 63 74 00 +# +# Text: Reset Born OnDate +# +52 65 73 65 74 20 42 6F 72 6E 20 4F 6E 44 61 74 65 00 +# +# Text: Reset FactoryDflt +# +52 65 73 65 74 20 46 61 63 74 6F 72 79 44 66 6C 74 00 +# +# Text: Are You Sure? +# +41 72 65 20 59 6F 75 20 53 75 72 65 3F 00 +# +# Text: Reset to 0 +# +52 65 73 65 74 20 74 6F 20 30 00 +# +# Text: S . +# +53 20 20 2E 20 20 00 +# +# Text: M . +# +4D 20 20 2E 20 20 00 +# +# Text: Yes +# +59 65 73 00 +# +# Text: No +# +4E 6F 00 +# +# Text: +# +00 +# +# Text: BornOnDate +# +42 6F 72 6E 4F 6E 44 61 74 65 20 20 20 20 20 20 20 00 +# +# Text: FinalErrCode +# +46 69 6E 61 6C 45 72 72 43 6F 64 65 20 20 20 20 20 00 +# +# Text: ResetFinalErrCode +# +52 65 73 65 74 46 69 6E 61 6C 45 72 72 43 6F 64 65 00 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/lowlevel.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/lowlevel.c new file mode 100644 index 00000000..0d923150 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/lowlevel.c @@ -0,0 +1,656 @@ +/* lowlevel.c + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "lowlevel.h" + +#include +#include +#include + +#include +#include + +#include "konica.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "konica" + +#define DEFAULT_TIMEOUT 1000 + +#define LESSER_ESCAPES + +/* ESC quotes */ +#define STX 0x02 +#define ETX 0x03 +#define ENQ 0x05 +#define ACK 0x06 +#define XOFF 0x11 +#define XON 0x13 +#define NACK 0x15 +#define ETB 0x17 +#define ESC 0x1b + +/* Not an ESC quote */ +#define EOT 0x04 + +#define CHECK(r) {int ret = (r); if (ret < 0) return (ret);} +#define CHECK_NULL(r) {if (!(r)) return (GP_ERROR_BAD_PARAMETERS);} +#define CHECK_FREE(r,f) {int ret = (r); if (ret < 0) {free (f); return (ret);}} + +static int +l_ping_rec (GPPort *p, unsigned int level) +{ + unsigned char c; + + /* Write ENQ and read the response. */ + c = ENQ; + CHECK (gp_port_write (p, (char *)&c, 1)); + CHECK (gp_port_read (p, (char *)&c, 1)); + switch (c) { + case ACK: + return (GP_OK); + case NACK: + + /* + * Uh, lets try again a couple of times, but + * make sure we don't recurse forever. + */ + if (level < 30) + return (l_ping_rec (p, level + 1)); + else + return (GP_ERROR_CORRUPTED_DATA); + case ENQ: + + /* + * ENQ received. It seems that the camera would like + * to send us data, but we do not want it and + * therefore simply reject it. The camera will try + * two more times with ENQ to get us to receive data + * before finally giving up and sending us ACK. + */ + + /* Write NACK. */ + c = NACK; + CHECK (gp_port_write (p, (char *)&c, 1)); + for (;;) { + CHECK (gp_port_read (p, (char *)&c, 1)); + switch (c) { + case ENQ: + + /* The camera has not yet given up. */ + continue; + + case ACK: + + /* ACK received. We can proceed. */ + return (GP_OK); + default: + + /* This should not happen. */ + return (GP_ERROR_CORRUPTED_DATA); + } + break; + } + break; + default: + + /* + * The camera seems to send us data. We'll + * simply ignore it and try again (but make + * sure that we don't loop forever). + */ + CHECK (gp_port_flush (p, 0)); + CHECK (gp_port_flush (p, 1)); + if (level > 50) + return (GP_ERROR_CORRUPTED_DATA); + else + return (l_ping_rec (p, level + 1)); + } + + return (GP_OK); +} + +int +l_ping (GPPort *p, GPContext *c) +{ + return (l_ping_rec (p, 0)); +} + +int +l_init (GPPort *p, GPContext *c) +{ + unsigned int i; + int result = GP_OK; + CHECK_NULL (p); + + CHECK (gp_port_set_timeout (p, DEFAULT_TIMEOUT)); + for (i = 0; i < 3; i++) { + result = l_ping (p, c); + if (result != GP_ERROR_TIMEOUT) + break; + } + return (result); +} + +static int +l_esc_read (GPPort *p, unsigned char *c) +{ + CHECK_NULL (p && c); + + CHECK (gp_port_read (p, (char *)c, 1)); + + /* + * STX, ETX, ENQ, ACK, XOFF, XON, NACK, and ETB have to be masked by + * ESC. If we receive one of those (except ETX and ETB) without mask, + * we will not report an error, as it will be recovered automatically + * later. If we receive ETX or ETB, we reached the end of the packet + * and report a transmission error, so that the error can be + * recovered. + * If the camera sends us ESC (the mask), we will not count this byte + * and read a second one. This will be reverted and processed. It + * then must be one of STX, ETX, ENQ, ACK, XOFF, XON, NACK, ETB, or + * ESC. As before, if it is not one of those, we'll not report an + * error, as it will be recovered automatically later. + */ + /* The HP PhotoSmart does not escape every special code, only + * some and it gets confused if we do this checks. By relaxing + * these, it now downloads images etc. + */ +#ifndef LESSER_ESCAPES + if ((*c == STX ) || (*c == ETX) || (*c == ENQ ) || (*c == ACK) || + (*c == XOFF) || (*c == XON) || (*c == NACK) || (*c == ETB)) { +#else /* LESSER_ESCAPES */ + if ((*c == STX ) || (*c == XOFF) || (*c == XON)) { +#endif /* LESSER_ESCAPES */ + GP_DEBUG ("Wrong ESC masking!"); + if ((*c == ETX) || (*c == ETB)) + return (GP_ERROR_CORRUPTED_DATA); + } else if (*c == ESC) { + CHECK (gp_port_read (p, (char *)c, 1)); + *c = (~*c & 0xff); + if ((*c != STX ) && (*c != ETX ) && (*c != ENQ) && + (*c != ACK ) && (*c != XOFF) && (*c != XON) && + (*c != NACK) && (*c != ETB ) && (*c != ESC)) + GP_DEBUG ("Wrong ESC masking!"); + } + return (GP_OK); +} + + +static int +l_send (GPPort *p, GPContext *context, unsigned char *send_buffer, + unsigned int send_buffer_size) +{ + unsigned char c; + unsigned char checksum; + /**********************************************************************/ + /* sb: A pointer to the buffer that we will send. */ + /* sbs: Its size. */ + /**********************************************************************/ + unsigned char *sb; + unsigned int sbs; + int i = 0; + + CHECK_NULL (p && send_buffer); + + /* We need to ping the camera first */ + CHECK (l_ping (p, context)); + + /********************************************************/ + /* We will write: */ + /* - STX */ + /* - low order byte of (send_buffer_size + 5) */ + /* - high order byte of (send_buffer_size + 5) */ + /* - 'send_buffer_size' bytes data plus ESC quotes */ + /* - ETX */ + /* - 1 byte for checksum plus ESC quotes */ + /* */ + /* The checksum covers all bytes after STX and before */ + /* the checksum byte(s). */ + /********************************************************/ + sbs = send_buffer_size + 5; + sb = malloc (sizeof (char) * sbs); + sb[0] = STX; + sb[1] = send_buffer_size; + sb[2] = send_buffer_size >> 8; + checksum = sb[1]; + checksum += sb[2]; + for (i = 3; i < (sbs - 2); i++) { + checksum += *send_buffer; + if ( (*send_buffer == STX ) || + (*send_buffer == ETX ) || + (*send_buffer == ENQ ) || + (*send_buffer == ACK ) || + (*send_buffer == XOFF) || + (*send_buffer == XON ) || + (*send_buffer == NACK) || + (*send_buffer == ETB ) || + (*send_buffer == ESC )) { + sb = realloc (sb, ++sbs * sizeof (char)); + sb[ i] = ESC; + sb[++i] = ~*send_buffer; + } else sb[ i] = *send_buffer; + send_buffer++; + } + sb[sbs - 2] = ETX; + checksum += ETX; + if ( (checksum == STX ) || + (checksum == ETX ) || + (checksum == ENQ ) || + (checksum == ACK ) || + (checksum == XOFF) || + (checksum == XON ) || + (checksum == NACK) || + (checksum == ETB ) || + (checksum == ESC )) { + sb = realloc (sb, ++sbs * sizeof (char)); + sb[sbs - 2] = ESC; + sb[sbs - 1] = ~checksum; + } else sb[sbs - 1] = checksum; + for (i = 0; ; i++) { + + /* Write data as above. */ + CHECK_FREE (gp_port_write (p, (char *)sb, sbs), sb); + CHECK_FREE (gp_port_read (p, (char *)&c, 1), sb); + switch (c) { + case ACK: + + /* ACK received. We can proceed. */ + free (sb); + + /* Write EOT. */ + c = EOT; + CHECK (gp_port_write (p, (char *)&c, 1)); + return (GP_OK); + + case NACK: + + /* NACK received. We'll try up to three times. */ + if (i == 2) { + free (sb); + return (GP_ERROR_CORRUPTED_DATA); + } else break; + default: + + /* Should not happen. */ + return (GP_ERROR_CORRUPTED_DATA); + } + } +} + + +static int +l_receive (GPPort *p, GPContext *context, + unsigned char **rb, unsigned int *rbs, + unsigned int timeout) +{ + unsigned char c, d, progress = 0; + int error_flag; + unsigned int i, j, rbs_internal, id = 0; + unsigned char checksum; + int result; + KCommand command; + + CHECK_NULL (p && rb && rbs); + + for (i = 0; ; ) { + CHECK (gp_port_set_timeout (p, timeout)); + CHECK (gp_port_read (p, (char *)&c, 1)); + CHECK (gp_port_set_timeout (p, DEFAULT_TIMEOUT)); + switch (c) { + case ENQ: + + /* ENQ received. We can proceed. */ + break; + + case ACK: + + /* ACK received. We'll try again at most ten times. */ + if (i == 9) { + + /* + * The camera hangs! Although it could be + * that the camera accepts one of the + * commands + * - KONICA_CANCEL, + * - KONICA_GET_IO_CAPABILITY, and + * - KONICA_SET_IO_CAPABILITY, + * we can not get the camera back to working + * correctly. + */ + return (GP_ERROR_CORRUPTED_DATA); + + } + i++; + break; + default: + /* + * We'll dump this data until we get ENQ (then, we'll + * proceed) or nothing any more (then, we'll report + * error). + */ + for (;;) { + CHECK (gp_port_read (p, (char *)&c, 1)); + if (c == ENQ) + break; + } + break; + } + if (c == ENQ) + break; + } + + /* Start progress */ + if (*rbs > 1000) { + id = gp_context_progress_start (context, *rbs, + _("Downloading...")); + progress = 1; + } + + /* Write ACK. */ + CHECK (gp_port_write (p, "\6", 1)); + for (*rbs = 0; ; ) { + for (j = 0; ; j++) { + CHECK (gp_port_read (p, (char *)&c, 1)); + switch (c) { + case STX: + + /* STX received. We can proceed. */ + break; + + default: + + /* We'll dump this data and try again. */ + continue; + + } + + /* + * Read 2 bytes for size (low order byte, high order + * byte) plus ESC quotes. + */ + CHECK (l_esc_read (p, &c)); + checksum = c; + CHECK (l_esc_read (p, &d)); + checksum += d; + rbs_internal = (d << 8) | c; + if (*rbs == 0) + *rb = malloc (rbs_internal * sizeof (char)); + else + *rb = realloc (*rb, + sizeof (char) * (*rbs + rbs_internal)); + + /* Read 'rbs_internal' bytes data plus ESC quotes. */ + error_flag = 0; +{ +unsigned int read = 0, r = 0; +while (read < rbs_internal) { + + /* + * Read the specified amount of bytes. We will probably read more + * because some bytes will be quoted. + */ + GP_DEBUG ("Reading %i bytes (%i of %i already read)...", + rbs_internal - read, read, rbs_internal); + result = gp_port_read (p, (char *)&((*rb)[*rbs + read]), + rbs_internal - read); + if (result < 0) { + error_flag = 1; + break; + } + r = rbs_internal - read; + + /* Unescape the data we just read */ + for (i = read; i < read + r; i++) { + unsigned char *c = &(*rb)[*rbs + i]; + + /* The HP PhotoSmart does not escape every special code, only + * some and it gets confused if we do this checks. By relaxing + * these, it now downloads images etc. + */ +#ifndef LESSER_ESCAPES + if ((*c == STX) || (*c == ETX) || (*c == ENQ ) || + (*c == ACK) || (*c == XOFF) || (*c == XON) || + (*c == NACK) || (*c == ETB)) { +#else /* LESSER_ESCAPES */ + if ((*c == STX) || (*c == XOFF) || (*c == XON)) { +#endif /* LESSER_ESCAPES */ + GP_DEBUG ("Wrong ESC masking!"); + error_flag = 1; + break; + } else if (*c == ESC) { + if (i == read + r - 1) { + /* ESC is last char of packet */ + CHECK (gp_port_read (p, (char *)c, 1)); + } else { + memmove (c, c + 1, read + r - i - 1); + r--; + } + *c = ~*c & 0xff; + if ((*c != STX ) && (*c != ETX ) && (*c != ENQ) && + (*c != ACK ) && (*c != XOFF) && (*c != XON) && + (*c != NACK) && (*c != ETB ) && (*c != ESC)) { + GP_DEBUG ("Wrong ESC masking!"); + error_flag = 1; + break; + } + } + checksum += (*rb)[*rbs + i]; + } + if (error_flag) + break; + read += r; +}} + if (!error_flag) { + CHECK (gp_port_read (p, (char *)&d, 1)); + switch (d) { + case ETX: + + /* + * ETX received. This is the last + * packet. + */ + GP_DEBUG ("Last packet."); + break; + + case ETB: + + /* + * ETB received. There are more + * packets to come. + */ + GP_DEBUG ("More packets coming."); + break; + + default: + + /* + * We get more bytes than expected. + * Nothing serious, as we will simply + * dump all bytes until we receive + * ETX or ETB. Later, we'll read the + * checksum with ESC quotes and + * reject the packet. + */ + while ((d != ETX) && (d != ETB)) { + CHECK (gp_port_read (p, + (char *)&d, 1)); + } + error_flag = 1; + break; + } + } + checksum += d; + + /* Read 1 byte for checksum plus ESC quotes. */ + CHECK (l_esc_read (p, &c)); + if ((c == checksum) && (!error_flag)) { + *rbs += rbs_internal; + + /* Write ACK. */ + CHECK (gp_port_write (p, "\6", 1)); + break; + + } else { + + /* + * Checksum wrong or transmission error. The + * camera will send us the data at the most + * three times. + */ + GP_DEBUG ("Checksum wrong: expected %i, " + "got %i.", c, checksum); + if (j == 2) + return (GP_ERROR_CORRUPTED_DATA); + + /* Write NACK. */ + c = NACK; + CHECK (gp_port_write (p, (char *)&c, 1)); + continue; + } + } + CHECK (gp_port_read (p, (char *)&c, 1)); + switch (c) { + case EOT: + + /* EOT received. We can proceed. */ + break; + + default: + + /* Should not happen. */ + return (GP_ERROR_CORRUPTED_DATA); + } + /* + * Depending on d, we will either continue to receive data or + * stop. + * + * - ETX: We are all done. + * - ETB: We expect more data. + * - else: Should not happen. + */ + switch (d) { + case ETX: + + /* We are all done. */ + if (progress) + gp_context_progress_stop (context, id); + return (GP_OK); + + case ETB: + + /* We expect more data. Read ENQ. */ + CHECK (gp_port_read (p, (char *)&c, 1)); + switch (c) { + case ENQ: + + /* ENQ received. We can proceed. */ + break; + + default: + + /* Should not happen. */ + return (GP_ERROR_CORRUPTED_DATA); + } + + if (gp_context_cancel (context) == + GP_CONTEXT_FEEDBACK_CANCEL) { + GP_DEBUG ("Trying to cancel operation..."); + CHECK (k_cancel (p, context, &command)); + GP_DEBUG ("Operation 0x%x cancelled.", + command); + return (GP_ERROR_CANCEL); + } + + /* Write ACK. */ + CHECK (gp_port_write (p, "\6", 1)); + break; + + default: + + /* Should not happen. */ + return (GP_ERROR_CORRUPTED_DATA); + } + if (progress) + gp_context_progress_update (context, id, *rbs); + } +} + +int +l_send_receive ( + GPPort *p, GPContext *c, + unsigned char *send_buffer, unsigned int send_buffer_size, + unsigned char **receive_buffer, unsigned int *receive_buffer_size, + unsigned int timeout, + unsigned char **image_buffer, unsigned int *image_buffer_size) +{ + if (!timeout) + timeout = DEFAULT_TIMEOUT; + + /* Send data. */ + CHECK (l_send (p, c, send_buffer, send_buffer_size)); + + /* Receive data. */ + if (image_buffer_size) + *receive_buffer_size = *image_buffer_size; + CHECK (l_receive (p, c, receive_buffer, receive_buffer_size, + timeout)); + + /* Check if we've received the control data. */ + if ((*receive_buffer_size > 1) && + (((*receive_buffer)[0] == send_buffer[0]) && + ((*receive_buffer)[1] == send_buffer[1]))) + return (GP_OK); + + /* We didn't receive control data yet. */ + *image_buffer = *receive_buffer; + *image_buffer_size = *receive_buffer_size; + *receive_buffer = NULL; + + /* Receive control data. */ + CHECK (l_receive (p, c, receive_buffer, receive_buffer_size, + DEFAULT_TIMEOUT)); + + /* Sanity check: Did we receive the right control data? */ + if (((*receive_buffer)[0] != send_buffer[0]) || + ((*receive_buffer)[1] != send_buffer[1])) + return (GP_ERROR_CORRUPTED_DATA); + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/lowlevel.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/lowlevel.h new file mode 100644 index 00000000..f9961a7d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/lowlevel.h @@ -0,0 +1,55 @@ +/* lowlevel.h + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __KONICA_LOWLEVEL_H__ +#define __KONICA_LOWLEVEL_H__ + +#include +#include + +int l_ping (GPPort *, GPContext *); +int l_init (GPPort *, GPContext *); + +/* + * Some comments on the structure of send_buffer, image_buffer, + * and receive_buffer: + * + * send_buffer: The first two bytes are low order and high + * byte of the command, followed by at least two + * more bytes. The number of sent bytes has to be + * even. + * + * image_buffer: This buffer will contain raw data like + * jpeg or exif data. + * + * receive_buffer: The first two bytes will be the same as + * in send_buffer. This will be checked + * here. Then will follow low and high + * order byte of the return status. After + * that, depending on command and return + * status, other bytes will follow. + */ +int l_send_receive (GPPort *, GPContext *, + unsigned char *send_buffer, unsigned int send_buffer_size, + unsigned char **receive_buffer, unsigned int *receive_buffer_size, + unsigned int timeout, + unsigned char **image_buffer, unsigned int *image_buffer_size); + +#endif /* __KONICA_LOWLEVEL_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/qm150.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/qm150.c new file mode 100644 index 00000000..59b4e59c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/qm150.c @@ -0,0 +1,1332 @@ +/* qm150.c + * + * Copyright 2003 Marcus Meissner + * Aurelien Croc (AP2C) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * Modified by Aurélien Croc (AP²C) + * In particular : fix some bugs, and implementation of advanced + * functions : delete some images, delete all images, capture new image, + * update an image to the camera, get thumbnails, get information, get + * summary, get configuration, get manual, get about, get EXIF informations + * + */ + +/* NOTES : + * Becareful, image information number starts at 1 and finish at the + * max image number. But when you want to work on the images, you must + * read image informations, and check the real image number in the image + * information header and use this number with all functions !! + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include +#include +#include + +#ifdef HAVE_LIBEXIF +# include +# include +#endif + + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +/* Functions codes */ +#define CAPTUREIMAGE_CMD2 0x30 +#define SETSPEED 0x42 +#define ERASEIMAGE_CMD1 0x45 +#define IMAGE_CMD2 0x46 +#define GETIMAGE_CMD1 0x47 +#define GETIMAGEINFO 0x49 +#define CAPTUREIMAGE_CMD1 0x52 +#define GETCAMINFO 0x53 +#define GETTHUMBNAIL_CMD1 0x54 +#define UPLOADDATA 0x55 +#define PING 0x58 + +/* Return codes */ +#define ESC 0x1b +#define ACK 0x06 +#define NACK 0x15 +#define NEXTFRAME 0x01 +#define EOT 0x04 + +/* Data section pointers */ +#define REC_MODE 0x01 +#define IMAGE_PROTECTED 0x01 + +#define GP_MODULE "Konica" +#define FILENAME "image%04d.jpg" +#define IMAGE_WIDTH 1360 +#define IMAGE_HEIGHT 1024 +#define PREVIEW_WIDTH 160 +#define PREVIEW_HEIGHT 120 +#define FILENAME_LEN 1024+128 + +#define ACK_LEN 1 +#define STATE_LEN 1 +#define CSUM_LEN 1 +#define INFO_BUFFER 256 +#define DATA_BUFFER 512 + +/* Image information pointers */ +#define PREVIEW_SIZE_PTR 0x4 +#define IMAGE_SIZE_PTR 0x8 +#define IMAGE_NUMBER 0xE +#define IMAGE_PROTECTION_FLAG 0x11 + +/* Camera information pointers */ +#define CAPACITY_PTR 0x3 +#define POWER_STATE_PTR 0x7 +#define AUTO_OFF_PTR 0x8 +#define CAMERA_MODE_PTR 0xA +#define LCD_STATE_PTR 0xB +#define ICON_STATE_PTR 0xC +#define FLASH_STATE_PTR 0xD +#define TIMER_PTR 0xE +#define RESOLUTION_PTR 0xF +#define WHITE_BALANCE_PTR 0x10 +#define EXPOSURE_TIME_PTR 0x11 +#define TAKEN_IMAGE_PTR 0x12 +#define FREE_IMAGE_PTR 0x14 +#define SHARPNESS_PTR 0x16 +#define COLOR_PTR 0x17 +#define RED_EYE_STATE_PTR 0x18 +#define FOCUS_PTR 0x19 +#define MACRO_PTR 0x1A +#define ZOOM_PTR 0x1B +#define CAPTURE_TYPE_PTR 0x1E +#define REC_DATE_DISP_PTR 0x1F +#define PLAY_DATE_DISP_PTR 0x20 +#define DATE_FORMAT_PTR 0x21 +#define TIMESTAMP_PTR 0x22 + +/** Local functions **********************************************************/ + +/* + * Check the integrity of datas + */ +static unsigned char +k_calculate_checksum (unsigned char *buf, unsigned long int len) +{ + int i; + unsigned char result=0; + for (i=0; i < len; i++) + result += buf[i]; + return result; +} + +/* + * Check the connection and the camera + */ +static int +k_ping (GPPort *port) { + char cmd[2], buf[1]; + int ret; + + cmd[0] = ESC; + cmd[1] = PING; + ret = gp_port_write (port, cmd, 2); + if (retport, (char*)cmd, sizeof(cmd)); + if (retport, (char*)buf, INFO_BUFFER); + if (ret */ + /* There is no audio support with this camera */ + info->audio.fields = GP_FILE_INFO_NONE; + /* Preview informations */ + info->preview.fields = GP_FILE_INFO_TYPE | GP_FILE_INFO_SIZE + | GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT; + strcpy (info->preview.type, GP_MIME_JPEG); + info->preview.size = ((buf[PREVIEW_SIZE_PTR] << 24) | + (buf[PREVIEW_SIZE_PTR+1] << 16) | (buf[PREVIEW_SIZE_PTR+2] << 8) + | buf[PREVIEW_SIZE_PTR+3]); + info->preview.width = PREVIEW_WIDTH; + info->preview.height = PREVIEW_HEIGHT; + + /* Image information */ + info->file.fields = GP_FILE_INFO_TYPE | GP_FILE_INFO_SIZE + | GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT + | GP_FILE_INFO_PERMISSIONS; + strcpy (info->file.type, GP_MIME_JPEG); + info->file.size = ((buf[IMAGE_SIZE_PTR] << 24) | + (buf[IMAGE_SIZE_PTR+1] << 16) | (buf[IMAGE_SIZE_PTR+2] << 8) + | buf[IMAGE_SIZE_PTR+3]); + info->file.width = IMAGE_WIDTH; + info->file.height = IMAGE_HEIGHT; + if (buf[IMAGE_PROTECTION_FLAG] == IMAGE_PROTECTED) + info->file.permissions = GP_FILE_PERM_READ; + else + info->file.permissions = GP_FILE_PERM_ALL; + return (GP_OK); +} + +/* + * Get data from the camera + * type = GP_FILE_TYPE_NORMAL, GP_FILE_TYPE_PREVIEW or GP_FILE_TYPE_EXIF + */ +static int +k_getdata (int image_no, int type, unsigned int len, void *data, + unsigned char *d, GPContext *context) +{ + Camera *camera = data; + unsigned char ack,state, cmd[7], buf[DATA_BUFFER], *buffer=d; + unsigned int id=0, bytes_read=0, i; + int ret; + + cmd[0] = ESC; + cmd[1] = GETIMAGE_CMD1; + if (type != GP_FILE_TYPE_NORMAL) + cmd[1] = GETTHUMBNAIL_CMD1; + cmd[2] = IMAGE_CMD2; + cmd[3] = 0x30 + ((image_no/1000)%10); + cmd[4] = 0x30 + ((image_no/100 )%10); + cmd[5] = 0x30 + ((image_no/10 )%10); + cmd[6] = 0x30 + ( image_no %10); + + ret = gp_port_write (camera->port, (char*)cmd, sizeof(cmd)); + if (retport, (char*)&ack, ACK_LEN); + if (ret < GP_OK) return ret; + if (ack == NACK) { + gp_context_error(context, _("This preview doesn't exist.")); + return (GP_ERROR); + } + + /* Download the required image */ + if (type == GP_FILE_TYPE_NORMAL) + id = gp_context_progress_start (context, len, + _("Downloading image...")); + for (i=0; i <= (len+DATA_BUFFER-1)/DATA_BUFFER ; i++) { + unsigned char csum; + int xret; + + xret = gp_port_read (camera->port, (char*)buf, DATA_BUFFER); + if (xret < GP_OK) { + if (type == GP_FILE_TYPE_NORMAL) + gp_context_progress_stop (context, id); + return xret; + } + ret = gp_port_read (camera->port, (char*)&csum, CSUM_LEN); + if (ret < GP_OK) { + if (type == GP_FILE_TYPE_NORMAL) + gp_context_progress_stop (context, id); + return ret; + } + if ((k_calculate_checksum(buf, DATA_BUFFER)) != csum) { + if (type == GP_FILE_TYPE_NORMAL) + gp_context_progress_stop (context, id); + /* acknowledge the packet */ + ack = NACK; + ret = gp_port_write (camera->port, (char*)&ack, ACK_LEN); + if (ret < GP_OK) + return ret; + gp_context_error(context, _("Data has been corrupted.")); + return (GP_ERROR_CORRUPTED_DATA); + } + if ((len - bytes_read) > DATA_BUFFER) { + memcpy((char *)buffer, buf, xret); + buffer += DATA_BUFFER; + } else { + memcpy((char *)buffer, buf, (len - bytes_read)); + buffer += len - bytes_read; + } + + /* acknowledge the packet */ + ack = ACK; + ret = gp_port_write (camera->port, (char*)&ack, ACK_LEN); + if (ret < GP_OK) { + if (type == GP_FILE_TYPE_NORMAL) + gp_context_progress_stop (context, id); + return ret; + } + ret = gp_port_read (camera->port, (char*)&state, STATE_LEN); + if (ret < GP_OK) { + if (type == GP_FILE_TYPE_NORMAL) + gp_context_progress_stop (context, id); + return ret; + } + if (state == EOT) + break; + bytes_read += DATA_BUFFER; + if (type == GP_FILE_TYPE_NORMAL) + gp_context_progress_update (context, id, bytes_read); + } + /* acknowledge the packet */ + ack = ACK; + ret = gp_port_write (camera->port, (char*)&ack, ACK_LEN); + if (ret < GP_OK) { + if (type == GP_FILE_TYPE_NORMAL) + gp_context_progress_stop (context, id); + return ret; + } + if (type == GP_FILE_TYPE_NORMAL) + gp_context_progress_stop (context, id); + return (GP_OK); +} + + +/** Get and delete files *****************************************************/ + +/* + * Get images, thumbnails or EXIF datas + */ +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + unsigned char *d; + int image_number, image_no, len, ret; + CameraFileInfo file_info; +#ifdef HAVE_LIBEXIF + ExifData *ed; +#endif + + GP_DEBUG ("*** ENTER: get_file_func ***"); + + image_no = gp_filesystem_number(fs, folder, filename, context); + if (image_no < 0) return image_no; + + /* Search the image informations */ + image_no++; + ret = k_info_img (image_no, data, (CameraFileInfo *)&file_info, + &image_number); + image_no = image_number; + if (ret < GP_OK) + return ret; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + len = file_info.file.size; + if (!(d = (unsigned char *)malloc(len))) + return (GP_ERROR_NO_MEMORY); + ret = k_getdata(image_no, GP_FILE_TYPE_NORMAL,len, + data, d, context); + if (ret < GP_OK) { + free(d); + return ret; + } + break; + case GP_FILE_TYPE_PREVIEW: + len = file_info.preview.size; + if (!(d = (unsigned char *)malloc(len))) + return (GP_ERROR_NO_MEMORY); + ret = k_getdata(image_no, GP_FILE_TYPE_PREVIEW, len, + data, d, context); + if (ret < GP_OK) { + free(d); + return ret; + } +#ifdef HAVE_LIBEXIF + ed = exif_data_new_from_data ((unsigned char*)d, len); + if (ed->data) { + gp_file_set_mime_type (file, GP_MIME_JPEG); + ret = gp_file_append(file, (char*)ed->data, ed->size); + exif_data_unref (ed); + free (d); + return GP_OK; + } + exif_data_unref (ed); + free(d); + return GP_ERROR_NOT_SUPPORTED; +#else + gp_context_error(context, _("Compiled without EXIF support, no thumbnails available.")); + free(d); + return GP_ERROR_NOT_SUPPORTED; +#endif + case GP_FILE_TYPE_EXIF: + len = file_info.preview.size; + if (!(d = (unsigned char *)malloc(len))) + return (GP_ERROR_NO_MEMORY); + ret = k_getdata(image_no, GP_FILE_TYPE_EXIF, len, + data, d, context); + if (ret < GP_OK) { + free(d); + return ret; + } + break; + default: + gp_context_error(context, + _("Image type %d is not supported by this camera !"), type); + return (GP_ERROR_NOT_SUPPORTED); + } + gp_file_set_mime_type (file, GP_MIME_JPEG); + ret = gp_file_append(file, (char*)d, len); + free(d); + return (ret); +} + +/* + * Delete one image + * The image mustn't be protected + */ +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + CameraFileInfo file_info; + unsigned char cmd[7], ack; + int image_no; + int ret; + + GP_DEBUG ("*** ENTER: delete_file_func ***"); + + image_no = gp_filesystem_number(fs, folder, filename, context); + if (image_no < 0) return image_no; + + image_no++; + ret = k_info_img (image_no, data, (CameraFileInfo *)&file_info, + &image_no); + if (ret < GP_OK) + return ret; + + /* Now, check if the image isn't protected */ + if (file_info.file.permissions == GP_FILE_PERM_READ) { + gp_context_error(context, _("Image %s is delete protected."), + filename); + return (GP_ERROR); + } + + /* Erase the image */ + cmd[0] = ESC; + cmd[1] = ERASEIMAGE_CMD1; + cmd[2] = IMAGE_CMD2; + cmd[3] = 0x30 + ((image_no/1000)%10); + cmd[4] = 0x30 + ((image_no/100 )%10); + cmd[5] = 0x30 + ((image_no/10 )%10); + cmd[6] = 0x30 + ( image_no %10); + ret = gp_port_write (camera->port, (char*)cmd, sizeof(cmd)); + if (retport, (char*)&ack, ACK_LEN); + if (retport, (char*)cmd, sizeof(cmd)); + if (retport, (char*)&ack, ACK_LEN); + if (retport, (char*)cmd, sizeof(cmd)); + if (retport, (char*)&ack, ACK_LEN); + if (retport, (char*)&state, STATE_LEN); + if (retport, (char*)&d[i*DATA_BUFFER], + (len - len_sent)); + if (retport, (char*)buf, (DATA_BUFFER - + (len - len_sent))); + if (retport, &d[i*DATA_BUFFER], + DATA_BUFFER); + if (retport, (char*)&sum, CSUM_LEN); + if (retport, (char*)&state, STATE_LEN); + if (retport, (char*)&ack, ACK_LEN); + if (retport, (char*)cmd, 2); + if (retport, (char*)buf, INFO_BUFFER); + nbr_images = (buf[FREE_IMAGE_PTR] << 8) | (buf[FREE_IMAGE_PTR+1]); + images_taken = (buf[TAKEN_IMAGE_PTR] << 8) | (buf[TAKEN_IMAGE_PTR+1]); + + /* Capture the image */ + cmd[0] = ESC; + cmd[1] = CAPTUREIMAGE_CMD1; + cmd[2] = CAPTUREIMAGE_CMD2; + ret = gp_port_write (camera->port, (char*)cmd, sizeof(cmd)); + if (retport, (char*)&ack, ACK_LEN); + if (retport)) == GP_OK) + break; + } + if (ret < GP_OK) { + gp_context_error(context, _("No answer from the camera.")); + return (GP_ERROR); + } + + /* Now register new image */ + images_taken++; + sprintf (path->name, FILENAME, (unsigned int) images_taken); + return (GP_OK); +} + +/* + * Get informations about an image + */ +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + int image_no; + + GP_DEBUG ("*** ENTER: get_info_func ***"); + + image_no = gp_filesystem_number(fs, folder, filename, context); + if (image_no < 0) + return image_no; + image_no++; + + return (k_info_img(image_no, data, info, NULL)); +} + + +/** Driver base functions ****************************************************/ + +/* + * Create the image list + */ +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + unsigned char cmd[2], buf[INFO_BUFFER]; + int num, ret; + + GP_DEBUG ("*** ENTER: file_list_func ***"); + + cmd[0] = ESC; + cmd[1] = GETCAMINFO; + ret = gp_port_write (camera->port, (char*)cmd, sizeof(cmd)); + if (retport, (char*)buf, INFO_BUFFER); + if (retport, (char*)cmd, sizeof(cmd)); + if (retport, (char*)buf, INFO_BUFFER); + if (retport, (char*)cmd, sizeof(cmd)); + if (retport, (char*)buf, INFO_BUFFER); + if (rettext, sizeof(text->text), + _("Model: %s\n" + "Capacity: %i Mb\n" + "Power: %s\n" + "Auto Off Time: %i min\n" + "Mode: %s\n" + "Images: %i/%i\n" + "Date display: %s\n" + "Date and Time: %s\n"), + "Konica Q-M150",capacity, + power,autopoweroff,mode, + image_taken,image_remained, + date_disp,date); + return (GP_OK); +} + +/** Camera's driver informations *********************************************/ + +/* + * Say somethings about driver's authors + */ +static int +camera_about (Camera* camera, CameraText* about, GPContext *context) +{ + snprintf(about->text,sizeof(about->text),_("Konica Q-M150 Library\n" + "Marcus Meissner \n" + "Aurelien Croc (AP2C) \n" + "http://www.ap2c.com\n" + "Support for the french Konica Q-M150.")); + return(GP_OK); +} + +/* + * just say some things about this driver + */ +static int +camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + snprintf(manual->text,sizeof(manual->text), + _("About Konica Q-M150:\n" + "This camera does not allow any changes\n" + "from the outside. So in the configuration, you can\n" + "only see what it is configured on the camera\n" + "but you can not change anything.\n\n" + "If you have some issues with this driver, please e-mail its authors.\n" + )); + return (GP_OK); +} + +/* + * Camera's identification + */ +int +camera_id (CameraText *id) +{ + strcpy(id->text, "konica qm150"); + return (GP_OK); +} + +/* + * List all camera's abilities + */ +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "Konica:Q-M150"); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_SERIAL; + a.speed[0] = 115200; + a.speed[1] = 0; + a.operations = GP_OPERATION_CAPTURE_IMAGE | + GP_OPERATION_CAPTURE_PREVIEW | GP_OPERATION_CONFIG; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_EXIF | GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL | + GP_FOLDER_OPERATION_PUT_FILE; + gp_abilities_list_append(list, a); + return (GP_OK); +} + +/** Camera's initialization **************************************************/ +/* + * Initialization of the camera + */ + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .put_file_func = put_file_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func, +}; +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int speeds[] = { 115200, 9600, 19200, 38400, 57600, 115200 }; + int ret, i; + char cmd[3], buf[1]; + + /* First, set up all the function pointers. */ + camera->functions->capture = camera_capture; + camera->functions->about = camera_about; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + + + /* Now, tell the filesystem where to get lists, files and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + /* + * The port is already provided with camera->port (and + * already open). You just have to use functions like + * gp_port_timeout_set, gp_port_settings_get, gp_port_settings_set. + */ + gp_port_get_settings (camera->port, &settings); + settings.serial.speed = 115200; + settings.serial.bits = 8; + settings.serial.stopbits= 1; + settings.serial.parity = 0; + gp_port_set_settings (camera->port, settings); + /* + * Once you have configured the port, you should check if a + * connection to the camera can be established. + */ + for (i=0;iport, &settings); + settings.serial.speed = speeds[i]; + gp_port_set_settings (camera->port, settings); + if (GP_OK<=k_ping (camera->port)) + break; + } + if (i == sizeof(speeds)/sizeof(speeds[0])) + return GP_ERROR; + cmd[0] = ESC; + cmd[1] = SETSPEED; + cmd[2] = 0x30 + 4; /* speed nr 4:(9600, 19200, 38400, 57600, 115200) */ + ret = gp_port_write (camera->port, cmd, 3); + if (retport, buf, 1); + if (retport, &settings); + settings.serial.speed = 115200; + gp_port_set_settings (camera->port, settings); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/qm150.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/qm150.txt new file mode 100644 index 00000000..9cb0045f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/konica/qm150.txt @@ -0,0 +1,192 @@ +Functions codes : +all functions are preceded by escape code (0x1B). + - 0x58 = ping (receive 1 byte = ACK or anything else will be an error) + - 0x53 = get camera informations (receive 256 bytes of informations. Details after this list) + - 0x49 0x3X 0x3X 0x3X 0x3X = get image informations (receive 256 bytes of informations. Details after this list) + - 0x42 0x3X = Set broadcast speed : + 0x30 = 9600 bauds + 0x31 = 19200 bauds + 0x32 = 38400 bauds + 0x33 = 57600 bauds + 0x34 = 115200 bauds + (In all case, if ok, receive an ACK (1 byte)) + - 0x47 0x46 0x3X 0x3X 0x3X 0x3X = Get image + receive 1 byte which contains the ACK (0x6 = all is ok | 0x15 = there is an error) + And by cycle : + receive a part of the picture (512 bytes) + receive a checksum (1 byte) + we must send the result of the checksum (0x6 = All os OK | 0x15 = seems to be an error is happened) + receive information about the transmission (1 byte) + 0x1 = next buffer will be transmetted just after + so we must loop + 0x4 = finished : we must send an ACK (1 byte) and it's finished + - 0x45 0x46 0x3X 0x3X 0x3X 0x3X = Delete an image (Receive an ACK (1 byte)) Here, we must check if image isn't protected + - 0x45 0x46 0x30 0x30 0x30 0x30 = Delete all images (Receive an ACK (1 byte)) + - 0x52 0x90 = Capture an image (Receive an ACK (1 byte)) Here, the camera must be in rec mode ! + + +Camera's Information buffer : +0x00 - 0x02 = Seems to be a signature ? 0x03 0x03 0x02 +0x03 - 0x04 = Len of the memory card (or just 0x04 ?!?) +0x05 - 0x06 = Ne serait-ce pas la taille du buffer de données ?! NON !!! ERRONE +0x07 = AC / pile (0 = pile | 1 = AC) +0x08 - 0x09 = Auto-extinction (en secondes) +0x0A = camera's mode (0x0 = play mode | 0x1 = rec mode) +0x0B = LCD (0 = on | 1 = off) +0x0C = Affichage de la barre sur l'écran du numérique (1 = absente | 0 = présente) +0x0D = Flash (0 = automatique | 1 = forcé | 2 = pas de flash) +0x0E = Minuterie (0 = off | 1 = on) +0x0F = Qualité d'enregistrement (0 = Normal | 1 = forte qualité | 2 = économique) +0x10 = white balance (0 = auto | 2 = office | 1 = Day-lt) +0x11 = exposure : 0 à 8 = 0, 0.3, 0.5, 0.8, 1.0, 1.3, 1.5, 1.8, 2.0 + 0xf8 à 0xff = -2.0, -1.8, -1.5, -1.3, -1.0, -0.8, -0.5, -0.3 +0x12 - 0x13 = Images taken (MBR and LBR) +0x14 - 0x15 = Image remaining (MBR and LBR) +0x16 = Sharpness (0 = auto | 1 = sharp | 2 = soft) +0x17 = Color (0 = auto | 1 = light | 2 = deep | 3 = B/W | 4 = Sepia) +0x18 = Pre-flash (0 = off | 1 = on) +0x19 = Focus (0 = auto | 1 = 2.0m | 2 = 0.5m | 3 = 0.1m) +0x1A = Macro (0 = off | 1 = on) +0x1B = Zoom (0 = off | 1 = on) +0x1C - 0x1D = Rapport avec la carte mémoire : surement sa présence + sa taille ?? +0x1E = capture (0 = single | 1 = sequence 9) +0x1F = Date display (0 = off | 1 = on) +0x20 = Date display in play mode (0 = on | 1 = off) +0x21 = Date option (0 = M/D/Y | 1 = D/M/Y | 2 =Y/M/D) +0x22 - 0x25 = date and the time +0x25 - 0xFF = seems to be unused + +Image's Information buffer : +0x00 - 0x01 = ??? +0x02 - 0x03 = maybe the number of the next image ? +0x04 - 0x07 = seems to be Thumbnail size (in bytes) +0x08 - 0x0B = Image size (in bytes) +0x0E - 0x0F = Image number associated to this image info +0x0B - 0x10 = ??? +0x11 = Image protected (0x0 = no protection | 0x1 = Image protected) +0x12 - 0xFF = seels to be unused + + + + + +Escape codes of the windows driver: + +Ping: + Writes 2 byte: 1B 58 ESC X + Expects: 1 byte NACK/ACK + +Getcaminfo: + Writes 2 byte: 1B 53 ESC S + Expects: 1 byte NACK or 256 byte data. + The 256 byte data must start with bytes: 03 03. + +cmd_C: UNSUPPORTED ! + Writes 6 byte: 1B 43 ESC C x x y y + + Gets 2 numbers as argument. + Expects: 1 byte, NACK/ACK + +cmd_H: UNSUPPORTED ! + Writes 4 byte: 1B 48 ESC H x x + + The numbers are from a 8bit value passed to the command. + + Expects: 1 byte, NACK/ACK. + +SetSpeed: + Writes 3 byte: 1B 42 ESC B x + + Speeds are mapped to this (ascii) number: + 0 - 9600 + 1 - 19200 + 2 - 38400 + 3 - 57600 + 4 - 115200 + + Expects: 1 byte: NACK/ACK. + +ImageInfo 1: + Writes 6 byte: 1B 49 ESC I xxxx + + Expects: 1 byte NACK or 256 byte data. + The 256 byte data must start with 03 03. + +ImageInfo 2: + Writes 7 byte: 1B 49 46 ESC I F xxxx + + Expects: 1 byte NACK or 256 byte data. + + The data is the same as in ImageInfo 1. + + Unclear what the difference between the 2 commands is. + +cmd_P 1: UNSUPPOTED ! + Writes 10 byte: 1B 50 + ESC P xxxxyyyy + + Expects: 1 byte NACK or 1024 byte data (?). + +cmd_P 2: UNSUPPORTED ! + Writes 11 byte: 1B 50 46 + ESC P F xxxxyyyy + Expects: 1 byte NACK or 1024 byte data (?). + + +cmd_V 1: UNSUPPORTED ! + Writes 6 byte: 1B 56 ESC V xxxx + Expects: 1 byte NACK/ACK. + +cmd_V 2: UNSUPPORTEd ! + Writes 7 byte: 1B 56 46 ESC V F xxxx + Expects: 1 byte NACK/ACK. + +Erase 1 (not used in win driver): + Writes 6 byte: 1B 45 ESC E xxxx + Expects: 1 byte NACK/ACK + +Erase 2 (used): + Writes 7 byte: 1B 45 46 ESC E F xxxx + Expects: 1 byte NACK/ACK + + +cmd_K 1: UNSUPPORTED ! + Writes 6 byte: 1B 4B ESC K xxxx + Expects: 1 byte NACK/ACK. + +cmd_K 2: UNSUPPORTED ! + Writes 7 byte: 1B 4B 46 ESC K xxxx + Expects: 1 byte NACK/ACK. + +Capture: + Writes 3 byte: 1B 52 ESC R x + Expects: 1 byte NACK/ACK. + + can be '1' or '0'. + +Set Time (?): do nothing ? + Writes 11 byte: 1B 57 44 <8*nr> ESC W D xxxxxxxx + Expects: 1 byte NACK/ACK. + + The number is the current time in seconds sinc 1980 I guess. + +Get Thumbnail 1: + Writes: 6 byte 1B 54 <4*nr> ESC T xxxx + Expects: ... see code + +Get Thumbnail 2: + Writes: 7 byte 1B 54 46 <4*nr> ESC TF xxxx + Expects: ... see code + +Get Image 1: + Writes: 6 byte 1B 47 <4*nr> ESC G xxxx + Expects: ... see code + +Get Image 2: + Writes: 7 byte 1B 47 46 <4*nr> ESC GF xxxx + Expects: ... see code + +Upload: + Writes: 2 byte 1B 55 ESC U + Expects: ... see code + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/Makefile.am new file mode 100644 index 00000000..f07ea5c9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/Makefile.am @@ -0,0 +1,4 @@ +## Process this file with automake to generate a GNU Makefile + +SUBDIRS = lmini + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/ChangeLog new file mode 100644 index 00000000..4ead34d4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/ChangeLog @@ -0,0 +1,37 @@ +2004-04-13 Hubert Figuiere + + * lmini.c (largan_get_pict): get the reply (patch by + Lee Olsen ) + +2003-05-01 matthschulz + + * lmini.c: more fixing + * largan.c: more fixing + +2003-03-04 matthschulz + + * lmini.c (wakeup_camera): rewrote to make it work + (largan_recv_reply): fixed reply reading + (largan_erase): now works + (largan_get_pict): now works + + * largan.c (camera_init): delete_file_func + (delete_all_func): parameter change + (delete_file_func): implemented file deletion + + +2003-01-29 Hubert Figuiere + + * lmini.c: changed packet handling. More debug. Better return code + checking. (still untested). + + * largan.c (camera_id): changed camlib ID. + +2002-10-31 Marcus Meissner + + * fixed compiler warnings, got rid of unnecessary global variables + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/Makefile-files new file mode 100644 index 00000000..70f5d1d5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/Makefile-files @@ -0,0 +1,14 @@ +# -*- Makefile -*- + +EXTRA_DIST += largan/lmini/README.largan-lmini largan/lmini/ChangeLog +camlibdoc_DATA += largan/lmini/README.largan-lmini + +EXTRA_LTLIBRARIES += largan.la + +largan_la_SOURCES = \ + largan/lmini/largan.c \ + largan/lmini/lmini.c largan/lmini/lmini.h \ + largan/lmini/lmini_ccd.c largan/lmini/lmini_ccd.h +largan_la_LDFLAGS = $(camlib_ldflags) +largan_la_DEPENDENCIES = $(camlib_dependencies) +largan_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/README.largan-lmini b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/README.largan-lmini new file mode 100644 index 00000000..b133f183 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/README.largan-lmini @@ -0,0 +1,3 @@ +This is the driver for largan lmini camera. + +It is still untested because I don't have the camera. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/largan.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/largan.c new file mode 100644 index 00000000..c1ccc29f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/largan.c @@ -0,0 +1,320 @@ +/* largan.c + * + * Copyright 2001 Lutz Mueller + * Copyright 2002 Hubert Figuiere + * Code largely borrowed to lmini-0.1 by Steve O Connor + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/* + * Currently only largan lmini is supported + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include + +#include +#include + +#include "lmini.h" + + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define TIMEOUT 1500 + +/* internal functions prototypes */ +static uint8_t convert_name_to_index (const char * name); + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "largan-lmini"); + + return (GP_OK); +} + + +static const struct largan_cameras { + char * name; + unsigned short idVendor; + unsigned short idProduct; + char hasSerial; +} largan_cameras [] = { + { "Largan:Lmini", 0, 0, 1 }, +/* these are other largan camera. I'm not sure they use the same + * protocol */ +/* { "Largan:Chameleon Slim", 0, 0, 0 }, + { "Largan:Chameleon Mega", 0, 0, 0 }, + { "Largan:Chameleon", 0, 0, 0 }, + { "Largan:Easy 800", 0, 0, 1 }, */ + { NULL, 0, 0, 0 } +}; + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + int i; + + for (i = 0; largan_cameras[i].name; i++) { + memset(&a, 0, sizeof(a)); + strcpy(a.model, largan_cameras[i].name); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + if (largan_cameras[i].hasSerial) { + a.port |= GP_PORT_SERIAL; + } + if (largan_cameras[i].idVendor && largan_cameras[i].idProduct) { + a.port |= GP_PORT_USB; + } + if (largan_cameras[i].hasSerial) { + a.speed[0] = 4800; + a.speed[1] = 9600; + a.speed[2] = 19200; + a.speed[3] = 38400; + a.speed[4] = 0; + + } + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + if (a.port) { + /* only append if port is defined.*/ + gp_abilities_list_append(list, a); + } + } + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + + /* + * Get the file from the camera. Use gp_file_set_mime_type, + * gp_file_set_data_and_size, etc. + */ + int ret; + largan_pict_info *pict; + uint8_t index; /* the index of the file to fetch */ + largan_pict_type pict_type; + + index = convert_name_to_index (filename); + + switch (type) { + case GP_FILE_TYPE_NORMAL: + pict_type = LARGAN_PICT; + break; + case GP_FILE_TYPE_PREVIEW: + pict_type = LARGAN_THUMBNAIL; + break; + default: + return GP_ERROR_NOT_SUPPORTED; + } + + pict = largan_pict_new (); + ret = largan_get_pict (camera, pict_type, (uint8_t)index, pict); + if (ret == GP_OK) { + gp_file_append (file, pict->data , pict->data_size); + if (pict->type == LARGAN_THUMBNAIL) { + gp_file_set_mime_type (file, GP_MIME_BMP); + } else { + gp_file_set_mime_type (file, GP_MIME_JPEG); + } + } + + largan_pict_free (pict); + + return ret; +} + + +static uint8_t +convert_name_to_index (const char * name) +{ + long index; + /* extract the index from the file name */ + char * myFile = strdup (name); + *strstr (myFile, ".jpg") = 0; /* strip the extension */ + index = strtol(myFile, (char **)NULL, 10); + /* TODO check index bounds */ + free (myFile); + + return (uint8_t)index; +} + + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int index; + + /* Delete one file from the camera. + (only the last file can be deleted)*/ + + index = convert_name_to_index (filename); + return largan_erase (camera, index); +} + + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + /* + * Delete all files in the given folder. If your camera doesn't have + * such a functionality, just don't implement this function. + */ + + return largan_erase (camera, 0xff); +} + + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + return largan_capture (camera); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Largan driver\n" + "Hubert Figuiere \n")); + + return (GP_OK); +} + + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int num, i; + char name[32]; + + num = largan_get_num_pict (camera); + if (num < 0) { + /* error */ + return num; + } + /* List your files here */ + for (i = 1; i <= num; i++) { + snprintf (name, sizeof(name), "%08d.jpg", i); + gp_list_append (list, name, NULL); + } + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func, +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + int ret; + GPPortSettings settings; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->capture = camera_capture; + camera->functions->about = camera_about; + + /* Now, tell the filesystem where to get lists, files and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + /* + * The port is already provided with camera->port (and + * already open). You just have to use functions like + * gp_port_timeout_set, gp_port_settings_get, gp_port_settings_set. + */ + ret = gp_port_get_settings (camera->port, &settings); + if (ret < 0) + return (ret); + switch (camera->port->type) { + case GP_PORT_SERIAL: + + /* Remember the selected speed */ + + settings.serial.speed = 19200;/* initial speed is 19200 */ + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + ret = gp_port_set_timeout (camera->port, TIMEOUT); + if (ret < 0) { + return (ret); + } + break; + case GP_PORT_USB: + /* TODO check with a USB camera.... */ + settings.usb.inep = 0x82; + settings.usb.outep = 0x01; + settings.usb.config = 1; + settings.usb.interface = 0; + settings.usb.altsetting = 0; + break; + default: + return (GP_ERROR_UNKNOWN_PORT); + } + + ret = gp_port_set_settings (camera->port, settings); + if (ret < 0) + return (ret); + + /* + * Once you have configured the port, you should check if a + * connection to the camera can be established. + */ + return largan_open (camera); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini.c new file mode 100644 index 00000000..b1d5cf58 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini.c @@ -0,0 +1,583 @@ +/* library.c (for Largan) + * + * Copyright 2002 Hubert Figuiere + * Code largely borrowed to lmini-0.1 by Steve O Connor + * With the help of specifications for lmini camera by Largan + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include + +#include +#include +#include "gphoto2-endian.h" + +#include "lmini.h" +#include "lmini_ccd.h" + + +#define GP_MODULE "largan" + +static const char BMPheader[54]={ + 0x42, 0x4d, 0x36, 0x10, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x36, 0x0, 0x0, 0x0, 0x28, + 0x0, 0x0, 0x0, 0x54, 0x0, 0x0, 0x0,0x40, 0x0, 0x0, 0x0, 0x1, 0x0,0x18, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0,0x10, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + }; + +#if 0 +/* + * baud rate enumerations + */ +static struct largan_baud_rate { + int baud; + char value; /* value to be sent in the protocol */ +} bauds [] = { + {19200, 0x02 }, /* default */ + {38400, 0x03 }, + { 9600, 0x01 }, + { 4800, 0x00 }, + { 0, 0x00 } +}; +#endif + +enum { + LARGAN_NUM_PICT_CMD = 0xfa, + LARGAN_GET_PICT_CMD = 0xfb, + LARGAN_BAUD_ERASE_CMD = 0xfc, /* set baud rate and erase use the same command */ + LARGAN_CAPTURE_CMD = 0xfd +}; + + +static int purge_camera (Camera * camera); +static int wakeup_camera (Camera * camera); +static int largan_send_command (Camera * camera, uint8_t cmd, + uint8_t param1, uint8_t param2); +static int largan_recv_reply (Camera * camera, uint8_t *reply, + uint8_t *code, uint8_t * code2); +static int set_serial_speed (Camera * camera, int speed); + + +largan_pict_info * largan_pict_new (void) +{ + largan_pict_info * ptr = (largan_pict_info *)malloc (sizeof (largan_pict_info)); + memset (ptr, 0, sizeof (largan_pict_info)); + ptr->quality = 0xff; /* something invalid */ + return ptr; +} + + +void largan_pict_free (largan_pict_info * ptr) +{ + if (ptr->data) { + free (ptr->data); + } + free (ptr); +} + + +static void +largan_pict_alloc_data (largan_pict_info * ptr, uint32_t size) +{ + ptr->data = realloc (ptr->data, size); + ptr->data_size = size; +} + + +/* + * Open the camera + */ +int largan_open (Camera * camera) +{ + int ret; + + ret = largan_get_num_pict (camera); + if (ret < 0){ + ret = purge_camera (camera); + if (ret == GP_ERROR) { + return ret; + } + ret = wakeup_camera (camera); + } + return ret; /* here: number of pictures */ +} + +/* + * Return the number of pictures in the camera, -1 if error. + */ +int largan_get_num_pict (Camera * camera) +{ + int ret; + unsigned char reply, code; + + ret = largan_send_command (camera, LARGAN_NUM_PICT_CMD, 0, 0); + if (ret < 0) { + GP_DEBUG ("largan_send_command() failed: %d\n", ret); + return -1; + } + ret = largan_recv_reply (camera, &reply, &code, NULL); + if (ret < 0) { + GP_DEBUG ("largan_recv_reply() failed: %d\n", ret); + return -1; + } + if (reply != LARGAN_NUM_PICT_CMD) { + GP_DEBUG ("Reply incorrect\n"); + return -1; + } + return code; +} + +/* + * get image index and return it in largan_pict_info + * + * return GP_OK if OK. Otherwise < 0 + */ +int largan_get_pict (Camera * camera, largan_pict_type type, + uint8_t index, largan_pict_info * pict) +{ + int ret; + uint8_t reply,code; + uint8_t param; + uint8_t buf[5]; + uint32_t pict_size; /* size of the picture as returned by the camera */ + + switch (type) { + case LARGAN_PICT: + param = 0x01; + break; + case LARGAN_THUMBNAIL: + param = 0x00; + break; + default: + GP_DEBUG ("largan_get_pict(): wrong picture type requested !\n"); + return GP_ERROR; + } + ret = largan_send_command (camera, LARGAN_GET_PICT_CMD, param, index); + if (ret < 0) { + return ret; + } + ret = largan_recv_reply (camera, &reply, &code, NULL); +/* here we have to receive 7 bytes back + the 2nd contains 00 for thumbnail or 01 for original picture + the 3rd contains the picturenumber for an original picture + or 00 for an thumbnail for an lowres picture + or 01 for an thumbnail for an hires picture + bytes 4 5 6 7 contain the number of byte coming in the datastream */ +/* the 1st and the 2nd byte are read here */ + if (ret < 0) { + /* clean up and give it a 2nd chance */ + wakeup_camera (camera); + largan_send_command (camera, LARGAN_GET_PICT_CMD, param, index); + GP_DEBUG ("largan_get_pict(): command sent 2nd time\n"); + ret = largan_recv_reply (camera, &reply, &code, NULL); + if (ret < 0) { + /* clean up and give it even a 3rd chance */ + wakeup_camera (camera); + sleep (5); + largan_send_command (camera, LARGAN_GET_PICT_CMD, param, index); + GP_DEBUG ("largan_get_pict(): command sent 3rd time\n"); + ret = largan_recv_reply (camera, &reply, &code, NULL); + if (ret < 0) { + GP_DEBUG ("largan_get_pict(): timeout after command sent 3rd time\n"); + return ret; /* timeout after 3rd trial */ + } + } + } + if ((reply != LARGAN_GET_PICT_CMD) || ((code != 0x01) && (code != 0x00))) { + GP_DEBUG ("largan_get_pict(): code != 0x01 && 0x00\n"); + return GP_ERROR; + } + + /* the remaining 5 bytes are read here */ + + ret = gp_port_read (camera->port, (char *)buf, sizeof(buf)); + if (ret < GP_OK) { + return ret; + } + if (ret < 5) { + GP_DEBUG ("largan_get_pict(): unexpected short read\n"); + return GP_ERROR; + } + if (type == LARGAN_PICT) { + if (buf[0] != index) { + GP_DEBUG ("largan_get_pict(): picture index inconsistent\n"); + return GP_ERROR; + } + } + else { + if (buf[0] > 1) { + GP_DEBUG ("largan_get_pict(): thumb size inconsistent\n"); + return GP_ERROR; + } + } + pict->type = type; + pict_size = be32atoh (&buf[1]); + switch (type) { + case LARGAN_PICT: + largan_pict_alloc_data (pict, pict_size); + ret = gp_port_read (camera->port, pict->data, pict->data_size); + if (ret < GP_OK) { + return ret; + } + if (ret < pict->data_size) { + GP_DEBUG ("largan_get_pict(): picture data short read\n"); + return GP_ERROR; + } + pict->quality = 0xff; /* this is not a thumbnail */ + break; + case LARGAN_THUMBNAIL: + { + char * buffer = (char*)malloc(pict_size); + + if (!buffer) + return GP_ERROR_NO_MEMORY; + ret = gp_port_read (camera->port, buffer, pict_size); + if (ret < GP_OK) { + free (buffer); + return ret; + } + largan_pict_alloc_data (pict, 19200 + sizeof(BMPheader)); + memcpy (pict->data, BMPheader, sizeof(BMPheader)); + /*this is the segfaulty function */ + largan_ccd2dib (buffer, pict->data + sizeof(BMPheader), 240, 1); + + free (buffer); + pict->quality = buf[0]; + break; + } + default: + GP_DEBUG ("largan_get_pict(): type not LARGAN_PICT nor LARGAN_THUMBNAIL\n"); + return GP_ERROR; + } + return GP_OK; +} + + + +/* + * erase a pictures + * if all > 0 then all pictures are erased, otherwise the last one is + * + * return GP_OK if OK. + */ +int largan_erase (Camera *camera, int pict_num) +{ + int ret; + int num_pix; + uint8_t erase_code; + uint8_t reply,code; + + if (pict_num == 0xff) { + erase_code = 0x11; + GP_DEBUG ("largan_erase() all sheets \n"); + } + else { + num_pix = largan_get_num_pict (camera); + if (pict_num == num_pix) { + erase_code = 0x10; + GP_DEBUG ("largan_erase() last sheet \n"); + } + else { + GP_DEBUG ("Only the last sheet can be erased!\n"); + return GP_ERROR; + } + } + ret = largan_send_command (camera, LARGAN_BAUD_ERASE_CMD, erase_code, 0); + if (ret < 0) { + return ret; + } + ret = largan_recv_reply (camera, &reply, &code, NULL); + if (ret < 0) { + return ret; + } + if ((reply != LARGAN_BAUD_ERASE_CMD) || (code != erase_code)) { + GP_DEBUG ("largan_erase() wrong error code\n"); + return GP_ERROR; + } + return GP_OK; +} + +/* + * Take a picture with the camera + * + * return GP_OK if OK + */ +int largan_capture (Camera *camera) +{ + int ret; + uint8_t reply, code, code2; + + ret = largan_send_command (camera, LARGAN_CAPTURE_CMD, 0, 0); + if (ret < 0) { + return ret; + } + ret = largan_recv_reply (camera, &reply, &code, &code2); + if (ret < 0) { + GP_DEBUG ("return ret\n"); + return ret; + } + if (reply != LARGAN_CAPTURE_CMD) { + GP_DEBUG ("largan_capture(): inconsisten reply code\n"); + return GP_ERROR; + } + if (code != code2) { + GP_DEBUG ("code != code2\n"); + return GP_ERROR; + } + if (code == 0xee) { + GP_DEBUG ("Memory full\n"); + return GP_ERROR; + } + if (code != 0xff) { + GP_DEBUG ("largan_capture(): inconsistent reply\n"); + return GP_ERROR; + } + return GP_OK; +} + + +#if 0 +/* + * Tell the camera to change the speed + * Then set the serial port speed + */ +static int largan_set_serial_speed (Camera * camera, int speed) +{ + int ret; + int i; + uint8_t reply, code; + + if (camera->port->type != GP_PORT_SERIAL) { + GP_DEBUG ("largan_set_serial_speed() called on non serial port\n"); + return GP_ERROR; + } + for (i = 0; bauds[i].baud; i++) { + if (bauds[i].baud == speed) { + ret = largan_send_command (camera, LARGAN_BAUD_ERASE_CMD, bauds[i].value, 0); + if (ret < 0) { + return ret; + } + ret = largan_recv_reply (camera, &reply, &code, NULL); + if (ret < 0) { + return ret; + } + if (reply != LARGAN_BAUD_ERASE_CMD) { + return ret; + } + if (code != bauds[i].baud) { + return ret; + } + return set_serial_speed (camera, bauds[i].baud); + } + } + GP_DEBUG ("largan_set_serial_speed(): baud rate not found\n"); + return GP_ERROR; +} +#endif + + +/* + * received a reply from the camera. + * can accept NULL on input. + * TODO: check how much we need to read. + */ +static int largan_recv_reply (Camera * camera, uint8_t *reply, + uint8_t *code, uint8_t *code2) +{ + int ret; + uint8_t packet [4]; + uint8_t packet_size = 0; + memset (packet, 0, sizeof (packet)); + ret = gp_port_read (camera->port, (char *)packet, 1); + if (ret < GP_OK) { + return ret; + } + switch (packet[0]) + { + case LARGAN_NUM_PICT_CMD: + packet_size = 2; + break; + case LARGAN_GET_PICT_CMD: + packet_size = 2; + break; + case LARGAN_BAUD_ERASE_CMD: + packet_size = 2; + break; + case LARGAN_CAPTURE_CMD: + packet_size = 3; + break; + default: + packet_size = 0; + GP_DEBUG("largan_receive_reply: Unknown reply.\n"); + break; + } + if (reply) { + *reply = packet[0]; + } + if (packet_size >= 2) { + ret = gp_port_read (camera->port, (char *)&packet[1], 1); + if (ret < GP_OK) { + return ret; + } + if (code) { + *code = packet[1]; + } + } + if (packet_size >= 3) { + ret = gp_port_read (camera->port, (char *)&packet[2], 1); + if (ret < GP_OK) { + return ret; + } + if (code2) { + *code2 = packet[2]; + } + } + + return ret; +} + +/* + * Send a command packet + */ +static int largan_send_command (Camera * camera, uint8_t cmd, uint8_t param1, + uint8_t param2) +{ + uint8_t packet_size = 0; + uint8_t packet [3]; + memset (&packet, 0, sizeof (packet)); + + packet [0] = cmd; + + switch (cmd) { + case LARGAN_NUM_PICT_CMD: + packet_size = 1; + break; + case LARGAN_GET_PICT_CMD: + if ((param1 != 0) && (param1 != 1)) { + GP_DEBUG ("wrong parameter for get picture\n"); + return GP_ERROR; /* wrong parameter */ + } + packet[1] = param1; + packet[2] = param2; + packet_size = 3; + break; + case LARGAN_BAUD_ERASE_CMD: + if ((param1 > 0x11) || ((param1 > 0x03) && (param1 < 0x10))) { + GP_DEBUG ("wrong parameter for baud/erase\n"); + return GP_ERROR; /* wrong parameter */ + } + packet[1] = param1; + packet_size = 2; + break; + case LARGAN_CAPTURE_CMD: + packet_size = 1; + break; + default: + GP_DEBUG ("unknown command\n"); + return GP_ERROR; /* unknown command */ + } + + return gp_port_write (camera->port, (char *)packet, packet_size); +} + + +/* + * set the baud speed for serial port + */ +static int set_serial_speed (Camera * camera, int speed) +{ + int ret; + GPPortSettings settings; + GP_DEBUG ("set_serial_speed() called ***************\n"); + + if (camera->port->type != GP_PORT_SERIAL) { + GP_DEBUG ("set_serial_speed() called on non serial port\n"); + return GP_ERROR; + } + + ret = gp_port_get_settings (camera->port, &settings); + if (ret < 0) { + return ret; + } + settings.serial.speed = speed; + + ret = gp_port_set_settings (camera->port, settings); + return ret; +} + +/* + * purge the camera internal buffers + */ +static int purge_camera (Camera * camera) +{ + int count; + long t1, t2; + uint8_t buffer[1]; + + t1 = time (NULL); + + while (1) + { + count = gp_port_read (camera->port, (char *)buffer, 1); + if (count < GP_OK) + return count; + + if (count) + { + t1 = time(NULL); + } + else + { + t2 = time(NULL); + if ((t2 - t1) > 1) + { + GP_DEBUG ("Camera purged\n"); + return GP_OK; + } + } + } + GP_DEBUG ("Could not purge camera\n"); + return GP_ERROR; +} + +/* + * Try to initiate something with the camera just to make sure it + * answer. Will check all the speed in case the camera has not been reset + * Perhaps is there a smarter way. This is the way it is done in lmini. + */ +static int wakeup_camera (Camera * camera) +{ + int num_pix; + /* int i;*/ + + if (camera->port->type == GP_PORT_SERIAL) { + set_serial_speed (camera, 4800); /*wakes camera best*/ + num_pix = largan_get_num_pict (camera); /*this wakes*/ + set_serial_speed (camera, 19200); /*back to normal*/ + sleep (1); + num_pix = largan_get_num_pict (camera); /*this wakes*/ + if (num_pix >= 0){ + return GP_OK; + } + } + purge_camera (camera); + return GP_ERROR; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini.h new file mode 100644 index 00000000..d37fae4f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini.h @@ -0,0 +1,56 @@ +/* library.h (for Largan) + * + * Copyright 2002 Hubert Figuiere + * Code largely inspired by lmini-0.1 by Steve O Connor + * With the help of specifications for lmini camera by Largan + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef _LARGAN_LIBRARY_H_ +#define _LARGAN_LIBRARY_H_ + +#include +#include "gphoto2-endian.h" + + +typedef enum { + LARGAN_NONPICT = 0, + LARGAN_PICT, + LARGAN_THUMBNAIL +} largan_pict_type; + + +typedef struct { + largan_pict_type type; + uint8_t quality; + uint32_t data_size; + char * data; +} largan_pict_info; + + + +largan_pict_info * largan_pict_new (void); +void largan_pict_free (largan_pict_info *); + + +int largan_open (Camera * camera); +int largan_get_num_pict (Camera * camera); +int largan_get_pict (Camera * camera, largan_pict_type type, + uint8_t index, largan_pict_info * pict); +int largan_erase (Camera *camera, int all); +int largan_capture (Camera *camera); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini_ccd.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini_ccd.c new file mode 100644 index 00000000..af7dd5e3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini_ccd.c @@ -0,0 +1,346 @@ +/* + * This file convert raw CCD bitmaps to BMP. Used for thumbnails. + * Code probably grafted from Largan Lmini SDK. + */ + +#include + +#include "lmini_ccd.h" + + +static void fetchstr(int, int, int); +static void dhuf(int); +static void YCbCr2RGB(int *YY, int Cb, int Cr, int w, int h); + +static int _nCcdFactor = 1; + +static char *data; + +static long out_index; +static long count; +static int in_bit; + +static unsigned char BUFF11[14400]; + +static unsigned long in_string; +static int pre_y, pre_cb, pre_cr; + +static int y[7446]; + +static const int y_max[10]= { + 0x0, 0x0, 0x0, 0x6, + 0xe, 0x1e, 0x3e, 0x7e, + 0xfe, 0x1fe, + }; + +static const int y_min[10]= { + 0x0, 0x0, 0x0, 0x2, + 0xe, 0x1e, 0x3e, 0x7e, + 0xfe, 0x1fe, + }; + +static const int uv_max[12]= { + 0x0, 0x0, 0x2, 0x6, + 0xe, 0x1e, 0x3e, 0x7e, + 0xfe, 0x1fe, 0x3fe, 0x7fe + }; + +static const int uv_min[12]= { + 0x0, 0x0, 0x0, 0x6, + 0xe, 0x1e, 0x3e, 0x7e, + 0xfe, 0x1fe, 0x3fe, 0x7fe + }; + + +/* --------------------------------------------------------------------------- */ +void largan_ccd2dib(char *pData, char *pDib, long dwDibRowBytes, int nCcdFactor) +{ + int i, j, w, h; + int YY[4], Cb, Cr; + + _nCcdFactor = nCcdFactor; + + data = pData; + +/************************************************/ + + Cb = 0; + Cr = 0; + + pre_y = 0; + pre_cb = 0; + pre_cr = 0; + + in_string = (*data << 8) | *(data + 1); + + in_bit = 16; + count = 2; + out_index = 0; +/******************************************************/ + + for (j = 0; j < 1200; j++) +{ + for (i = 0; i < 4; i++) + dhuf(0); + + dhuf(1); + dhuf(2); + } + + /* printf("Now process the DC term to R G B transfer !\n"); */ + + for (h = 0; h < 30; h++) /* mini size height = 30 x 2 */ + { + for (w = 0; w < 40; w++) + { + for (i = 0; i < 6; i++) + { + int k = i + w * 6 + h * 240; + + if (i < 4) + YY[i] = y[k] * _nCcdFactor; + else if (i == 4) + Cb = y[k] * _nCcdFactor; + else if (i == 5) + Cr = y[k] * _nCcdFactor; + } + + YCbCr2RGB(YY, Cb, Cr, w, h); + } + } + + for (i = 0, j = 0; i < 60; i++, j += 240) + { + memcpy (pDib, &BUFF11[j], 240); + pDib -= dwDibRowBytes; + } +} + +/* --------------------------------------------------------------------------- */ +static void YCbCr2RGB(int *YY, int Cb, int Cr, int w, int h) +{ + int i; + double B,G,R; + double c2 = 1.7753, c3 = -0.0015; + double c5 = -0.3443, c6 = -0.7137; + double c8 = -0.0009, c9 = 1.4017; + + for (i = 0; i < 2; i++) + { + int k = 3 * i + w * 6 + h * 480; + + B = ((double) YY[i] + 128.0 + c2 * Cb + c3 * Cr) + 0.5; + if (B > 255) + B = 255; + else if (B < 0) + B = 0; + BUFF11[k] = (unsigned char) B; + + G = ((double) YY[i] + 128.0 + c5 * Cb + c6 * Cr) + 0.5; + if (G > 255) + G = 255; + else if (G < 0) + G = 0; + BUFF11[k + 1] = (unsigned char) G; + + R = ((double) YY[i] + 128.0 + c8 * Cb + c9 * Cr) + 0.5; + if (R > 255) + R = 255; + else if (R < 0) + R = 0; + BUFF11[k + 2] = (unsigned char) R; + } + + for (i = 0; i < 2; i++) + { + int k = 3 * i + w * 6 + h * 480 + 240; + + B = ((double) YY[i + 2] + 128.0 + c2 * Cb + c3 * Cr) + 0.5; + if (B > 255) + B = 255; + else if (B < 0) + B = 0; + BUFF11[k] = (unsigned char) B; + + G = ((double) YY[i + 2] + 128.0 + c5 * Cb + c6 * Cr) + 0.5; + if (G > 255) + G = 255; + else if (G < 0) + G = 0; + BUFF11[k + 1] = (unsigned char) G; + + R = ((double) YY[i + 2] + 128.0 + c8 * Cb + c9 * Cr) + 0.5; + if (R > 255) + R = 255; + else if (R < 0) + R = 0; + BUFF11[k + 2] = (unsigned char) R; + } +} + +/* --------------------------------------------------------------------------- */ +static void dhuf(int flag) +{ + int code_leng, val_leng; + int temp_s; + int temp; + int temp1; + + code_leng = 2; + val_leng = 0; + temp_s = (int) in_string; + temp_s >>= 14; + + if (flag == 0) + { + while (((int)temp_s > y_max[code_leng]) || ((int)temp_s < y_min[code_leng])) + { + code_leng++; + temp_s = (int) in_string; + temp_s >>= (16 - code_leng); + } + } + else + { + while (((int)temp_s > uv_max[code_leng]) || ((int)temp_s < uv_min[code_leng])) + { + code_leng++; + temp_s = (int) in_string; + temp_s >>= (16 - code_leng); + } + } + + temp = (int) in_string; + temp >>= (16 - code_leng); + temp1 = (int) temp; + + fetchstr(code_leng, 0, flag); + + if (flag == 0) + { + if (code_leng == 3) + { + switch (temp1) + { + case 2 : val_leng = 1; break; + case 3 : val_leng = 2; break; + case 4 : val_leng = 3; break; + case 5 : val_leng = 4; break; + case 6 : val_leng = 5; break; + default: break; + } + } + else if (code_leng == 2) + val_leng = 0; + else + val_leng = code_leng + 2; + } + else + { + if (code_leng == 2) + { + switch (temp1) + { + case 0 : val_leng = 0; break; + case 1 : val_leng = 1; break; + case 2 : val_leng = 2; break; + default: break; + } + } + else + val_leng = code_leng; + } + + fetchstr(val_leng, 1, flag); +} + + +/* --------------------------------------------------------------------------- */ +static void fetchstr(int shift_bit, int val_flag, int flag) +{ + int temp_val; + int value1, value2; + int temp = 0; + + temp_val = (int) in_string; + temp_val >>= (16 - shift_bit); + in_string <<= shift_bit; + in_bit -= shift_bit; + + if ((val_flag == 1) && (shift_bit == 0)) + { + if (flag == 0) + temp = pre_y; + else if (flag == 1) + temp = pre_cb; + else if (flag == 2) + temp = pre_cr; + + y[out_index] = temp; + out_index++; + } + + if ((val_flag == 1) && (shift_bit != 0)) + { + value1 = (int) temp_val; + value2 = value1; + value2 &= (1 << (shift_bit - 1)); + + if (value2 != 0) + { + if (flag == 0) + { + pre_y += value1; + temp = pre_y; + } + else if (flag == 1) + { + pre_cb += value1; + temp = pre_cb; + } + else if (flag == 2) + { + pre_cr += value1; + temp=pre_cr; + } + + y[out_index] = temp; + out_index++; + } + else + { + value1++; + value1 = -value1; + + value1 &= ((1 << shift_bit) - 1); + value1 = -value1; + + if (flag == 0) + { + pre_y += value1; + temp = pre_y; + } + else if (flag == 1) + { + pre_cb += value1; + temp = pre_cb; + } + else if (flag == 2) + { + pre_cr +=value1; + temp = pre_cr; + } + + y[out_index] = temp; + out_index++; + } + } + + while (in_bit <= 8) + { + in_string = in_string | (*(data + count) << (8 - in_bit)); + in_bit += 8; + count++; + } +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini_ccd.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini_ccd.h new file mode 100644 index 00000000..c2cfb284 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/largan/lmini/lmini_ccd.h @@ -0,0 +1,7 @@ +#ifndef __LARGAN_CCD_H__ +#define __LARGAN_CCD_H__ + +void largan_ccd2dib(char *pData, char *pDib, long dwDibRowBytes, int nCcdFactor); + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/ChangeLog new file mode 100644 index 00000000..00ed8f66 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/ChangeLog @@ -0,0 +1,7 @@ +2005-12-25 Hubert Figuiere + + * library.c, lg_gsm.c: cleanup the code and warning removal + +2005-12-16 Guillaume Bedot + + * First attempt to make a gphoto2 driver for the LG T5100 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/Makefile-files new file mode 100644 index 00000000..754147af --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_DIST += lg_gsm/README.lg_gsm lg_gsm/ChangeLog +camlibdoc_DATA += lg_gsm/README.lg_gsm + +EXTRA_LTLIBRARIES += lg_gsm.la + +lg_gsm_la_SOURCES = lg_gsm/library.c lg_gsm/lg_gsm.c lg_gsm/lg_gsm.h +lg_gsm_la_LDFLAGS = $(camlib_ldflags) +lg_gsm_la_DEPENDENCIES = $(camlib_dependencies) +lg_gsm_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/README.lg_gsm b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/README.lg_gsm new file mode 100644 index 00000000..6fb1afa8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/README.lg_gsm @@ -0,0 +1,22 @@ +This driver will download pictures from the LG T5100. +This GSM/camera has Vendor:Product number 0x1004:0x6005. +Other LG phones may have a similar behaviour (?). + +Here are only addressed camera features. +For mp3 or videos, you may have a look at http://sf.net/projects/t5100-utils + +Some things which work for me, with various gphoto2 options: +(TODO: check assumptions made here !!!) +gphoto2 --summary : will report the total number of pictures. +gphoto2 -P : is functional. +gphoto2 -p x-y : is functional, too, assuming there are at least y pictures in the camera and x <= y. +gphoto2 --get-all-raw-data ??? + +License: +LGPL (see the head of the libgphoto2 source tree; this camera library is a +part of the libgphoto2 project). + +Warranty: +None. + +Copyright by Guillaume Bedot, 2005. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/lg_gsm.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/lg_gsm.c new file mode 100644 index 00000000..b6266fbe --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/lg_gsm.c @@ -0,0 +1,274 @@ +/* lg_gsm.c + * + * Copyright (C) 2005 Guillaume Bedot + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "lg_gsm.h" + +#define GP_MODULE "lg_gsm" + +#define MSGWRITE gp_port_usb_msg_write +#define WRITE gp_port_write +#define READ gp_port_read + +static char sync_start[] = "\x2\x0\x0\x0\x0\x0"; +static char sync_stop[] = "\x3\x0\x0\x0\x0\x0"; +static char get_firmware[] = "\x1\x0\x0\x0\x0\x0"; +static char list_all_photo[]= "\x04\x0\x08\x0\x0\x0\x40\x0\x0\x0\xff\xff\xff\xff"; +static char get_photo_cmd[]="\x0b\x0\x8a\x0\x0\x0\x40\x0\x0\x0"; + +int lg_gsm_init (GPPort *port, Model *model, Info *info) +{ + char firmware[54]; + char oknok[6]; + memset (oknok,0,6); + memset (firmware,0,54); + + GP_DEBUG("Running lg_gsm_init\n"); + port->timeout=20000; + /* syncstart */ + MSGWRITE(port, 0x13, 0x6, 0x0, "", 0); + WRITE(port, sync_start, 6); + READ(port, oknok, 6); + /* getfirmware : write 0x010000000000 */ + MSGWRITE(port, 0x13, 0x6, 0x0, "", 0); + WRITE(port, get_firmware, 0x6); + READ(port, firmware, 54); + /* syncstop */ + MSGWRITE(port, 0x13, 0x6, 0x0, "", 0); + WRITE(port, sync_stop, 6); + READ(port, oknok, 6); + + /* This information, too. */ + memcpy (info, &firmware[6], 40); + info[39] = 0; + + GP_DEBUG("info = %s\n", info); + /*GP_DEBUG("info[20] = 0x%x\n", firmware[26]);*/ + GP_DEBUG("Leaving lg_gsm_init\n"); + + return GP_OK; +} + +unsigned int lg_gsm_get_picture_size (GPPort *port, int pic) +{ + + unsigned int size; + /* example : list photos 2 & 3: 0x04000800000040000000 + + 0100 : from + + 0200 : to + */ + char listphotos[] = "\x04\x0\x08\x0\x0\x0\x40\x0\x0\x0\x0\x0\x0\x0"; + char photonumber[22]; + char photodesc[142]; /* 1 * 142 */ + char oknok[6]; + memset (oknok,0,6); + memset (photonumber,0,22); + memset (photodesc,0,142); + + /*listphotos[11]=listphotos[13]=pic / 256;*/ + /*listphotos[10]=listphotos[12]=pic % 256;*/ + listphotos[10] = listphotos[12] = pic; + + GP_DEBUG("Running lg_gsm_get_picture_size\n"); + MSGWRITE(port, 0x13, 0x6, 0x0, "", 0); + WRITE(port, sync_start, 6); + READ(port, oknok, 6); + MSGWRITE(port, 0x13, 0xe, 0x0, "", 0); + WRITE(port, listphotos, 0xe); + /* read 22 */ + READ(port, photonumber, 0x16); + /* then read 142 */ + READ(port, photodesc, 0x8e); + size = (unsigned int)photodesc[138] + (unsigned int)photodesc[139]*0x100 + (unsigned int)photodesc[140]*0x10000+(unsigned int)photodesc[141]*0x1000000; + GP_DEBUG(" size of picture %i is 0x%x\n", pic, size); + /* max. 1280x960x24bits ? */ + if ( (size >= 0x384000 ) ) {return GP_ERROR;} + MSGWRITE(port, 0x13, 0x6, 0x0, "", 0); + WRITE(port, sync_stop, 6); + READ(port, oknok, 6); + GP_DEBUG("Leaving lg_gsm_get_picture_size\n"); + return size; +} + +int lg_gsm_read_picture_data (GPPort *port, char *data, unsigned int datasize, unsigned int n) +{ + char listphotos[] = "\x04\x0\x08\x0\x0\x0\x40\x0\x0\x0\x0\x0\x0\x0"; + + char photonumber[22]; + char photodesc[142]; /* 1 * 142 */ + char getphoto[144]; + char getphotorespheader[150]; + char block[50000]; + char oknok[6]; + + unsigned int size; + int pos=0; + int block_size=50000; + int header_size=8; + int nb_blocks; + int i; + int remain; + + memset (oknok,0,6); + memset (photonumber,0,22); + memset (photodesc,0,142); + memset (getphoto,0,144); + memset (getphotorespheader,0,150); + memset (block,0,50000); + + /*listphotos[11]=listphotos[13]=n / 256;*/ + /*listphotos[10]=listphotos[12]=n % 256;*/ + listphotos[10]=listphotos[12]=n; + /* port->timeout=20000;*/ + GP_DEBUG("Running lg_gsm_read_picture_data\n"); + /* syncstart */ + MSGWRITE(port, 0x13, 0x6, 0x0, "", 0); + WRITE(port, sync_start, 6); + READ(port, oknok, 6); + + MSGWRITE(port, 0x13, 0x0e, 0x0, "", 0); + WRITE(port, listphotos, 0xe); + /* read 22 */ + READ(port, photonumber, 0x16); + /* then read 142 */ + READ(port, photodesc, 142); + size = (int)photodesc[138] + (int)photodesc[139]*0x100 + (int)photodesc[140]*0x10000+(int)photodesc[141]*0x1000000; + GP_DEBUG(" size of picture %i is 0x%x", n, size); + /* max. 1280x960x24bits ? */ + if ( (size >= 0x384000 ) ) { + return GP_ERROR; + } + if (datasize < size) { + GP_DEBUG("size of picture %u, previous read %u", datasize, size); + return GP_ERROR_CORRUPTED_DATA; + } + + memcpy(getphoto, &get_photo_cmd[0], 10); + memcpy(getphoto +10, &n, 1); /*TODO: fix this*/ + /*memcpy(getphoto +11, 0, 1);*/ + memcpy(getphoto +12, &photodesc[6],44); + memcpy(getphoto +56, &photodesc[50],88); + /* send getphoto cmd */ + MSGWRITE(port, 0x13, 0x90, 0x0, "", 0); + WRITE(port, getphoto, 0x90); + /* read */ + READ(port, getphotorespheader, 0x96); + + nb_blocks=size/block_size+1; + /*port->timeout=15000;*/ + for (i = 1 ; i <= nb_blocks ; i++) + { + remain = size - pos; + GP_DEBUG ("size %d, pos %d, remain %d, block_size %d, header_size %d", size, pos, remain, block_size, header_size); + if (remain >= block_size - header_size) + { + READ(port, block, block_size); + memcpy(data+pos,&block[header_size],block_size - header_size); + pos=pos+block_size-header_size; + } + else { + READ(port,block, remain+header_size); + memcpy(data+pos,&block[header_size],remain); + pos=pos+remain; + } + + } + /*port->timeout=5000;*/ + /* syncstop */ + MSGWRITE(port, 0x13, 0x6, 0x0, "", 0); + WRITE(port, sync_stop, 6); + READ(port, oknok, 6); + GP_DEBUG("Leaving lg_gsm_read_picture_data\n"); + + return GP_OK; +} + +int lg_gsm_list_files (GPPort *port, CameraList *list) +{ + unsigned int num_pics; + int i; + + char oknok[6]; + unsigned char photonumber[22]; + char photolist[142000]; /* max_photos * 142 */ + char name[44]; + char value[88]; + + memset (oknok,0,6); + memset (photonumber,0,22); + memset (photolist,0,142000); + memset (name,0,44); + memset (value,0,88); + + GP_DEBUG("Running lg_gsm_list_files\n"); + + /* set timeout to 3s */ + /*port->timeout=20000;*/ + /* syncstart */ + MSGWRITE(port, 0x13, 0x6, 0x0, "", 0); + WRITE(port, sync_start, 6); + READ(port, oknok, 6); + + /* lsphoto : write 0x04000800000040000000ffffffff */ + MSGWRITE(port, 0x13, 0xe, 0x0, "", 0); + WRITE(port, list_all_photo, 0xe); + READ(port, (char*)photonumber, 0x16); + + num_pics=photonumber[20]+256*photonumber[21]; + + GP_DEBUG ("num_pics = %d\n", num_pics); + if (num_pics > 1000) return GP_ERROR; + + /* increase timeout to 20s */ + /*port->timeout=20000;*/ + /* read 142 * nb_photos */ + READ(port, photolist, 142*num_pics); + + for (i = 0; i < num_pics; i++){ + /* sprintf( name, "lg_gsm_pic%03i.jpg", i ); */ + memcpy(name,&photolist[6+142*i],44); + name[43] = 0; + memcpy(value,&photolist[50+142*i],80); + value[80] = 0; + gp_list_append(list, name, value); + } + /* restore timeout to 5s */ + /*port->timeout=5000; */ + /* syncstop */ + MSGWRITE(port, 0x13, 0x6, 0x0, "", 0); + WRITE(port, sync_stop, 6); + READ(port, oknok, 6); + /*port->timeout=5000;*/ + + GP_DEBUG("Number of pics : %03i\n", num_pics); + + GP_DEBUG("Leaving lg_gsm_list_files\n"); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/lg_gsm.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/lg_gsm.h new file mode 100644 index 00000000..bcbb2372 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/lg_gsm.h @@ -0,0 +1,38 @@ +/* lg_gsm.h + * + * Copyright (C) 2005 Guillaume Bedot + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __LG_GSM_H__ +#define __LG_GSM_H__ + +#include + +typedef unsigned char Info; + +typedef enum { + MODEL_LG_T5100 +} Model; + +int lg_gsm_init (GPPort *port, Model *model, Info *info); +unsigned int lg_gsm_get_picture_size (GPPort *port, int pic); +int lg_gsm_read_picture_data (GPPort *port, char *data, unsigned int size, unsigned int n); +int lg_gsm_list_files (GPPort *port, CameraList *list); + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/library.c new file mode 100644 index 00000000..6ecb26cc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lg_gsm/library.c @@ -0,0 +1,238 @@ +/* library.c + * + * Copyright (C) 2003 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include + +#include +#include +#include + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "lg_gsm.h" +#include + +#define GP_MODULE "lg_gsm" + +struct _CameraPrivateLibrary { + Model model; + Info info[40]; +}; + +static struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {"LG T5100", GP_DRIVER_STATUS_EXPERIMENTAL, 0x1004, 0x6005}, + {NULL,0,0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "LG GSM camera"); + return GP_OK; +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].name); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + a.operations = GP_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_NONE; + gp_abilities_list_append (list, a); + } + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + + char firmware[20]; + char firmware_version[20]; + + memcpy(firmware,&camera->pl->info[0],20); + firmware[19] = 0; + memcpy(firmware_version,&camera->pl->info[20],20); + firmware_version[19] = 0; + + sprintf (summary->text,_("Your USB camera seems to be a LG GSM.\n" + "Firmware: %s\n" + "Firmware Version: %s\n" + ), firmware, firmware_version); + + return GP_OK; +} + + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("LG GSM generic driver\n" + "Guillaume Bedot \n")); + return GP_OK; +} + +/*************** File and Downloading Functions *******************/ + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + lg_gsm_list_files (camera->port, list); + + return GP_OK; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + + int k; + char *data; + unsigned int len; + + k = gp_filesystem_number(camera->fs, "/", filename, context); + + switch (type) { + case GP_FILE_TYPE_PREVIEW: + return GP_ERROR_NOT_SUPPORTED; + case GP_FILE_TYPE_NORMAL: + len = lg_gsm_get_picture_size (camera->port, k); + GP_DEBUG("len = %i\n", len); + data = malloc(len); + if (!data) { + GP_DEBUG("malloc failed\n"); + return GP_ERROR_NO_MEMORY; + } + lg_gsm_read_picture_data (camera->port, data, len, k); + gp_file_append (file, data, len); + free (data); + break; + default: + return GP_ERROR_NOT_SUPPORTED; + + } + + return GP_OK; +} + +/*************** Exit and Initialization Functions ******************/ + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("LG GSM camera_exit"); + + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func +}; + +int +camera_init(Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int ret = 0; + + /* First, set up all the function pointers */ + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + + GP_DEBUG ("Initializing the camera\n"); + ret = gp_port_get_settings(camera->port,&settings); + if (ret < 0) + return ret; + + switch (camera->port->type) { + case GP_PORT_SERIAL: + return GP_ERROR; + case GP_PORT_USB: + settings.usb.config = 1; + settings.usb.altsetting = 0; + settings.usb.interface = 1; + settings.usb.inep = 0x81; + settings.usb.outep =0x02; + break; + default: + return GP_ERROR; + } + + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) + return ret; + + GP_DEBUG("interface = %i\n", settings.usb.interface); + GP_DEBUG("inep = %x\n", settings.usb.inep); + GP_DEBUG("outep = %x\n", settings.usb.outep); + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return GP_ERROR_NO_MEMORY; + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + + /* Connect to the camera */ + lg_gsm_init (camera->port, &camera->pl->model, camera->pl->info); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lumix/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lumix/Makefile-files new file mode 100644 index 00000000..1670b332 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lumix/Makefile-files @@ -0,0 +1,12 @@ +# -*- Makefile -*- + +EXTRA_DIST += lumix/README.lumix +noinst_DATA += lumix/README.lumix + +EXTRA_LTLIBRARIES += lumix.la + +lumix_la_SOURCES = lumix/lumix.c +lumix_la_CFLAGS = $(AM_CFLAGS) $(NO_UNUSED_CFLAGS) $(CFLAGS) $(LIBXML2_CFLAGS) $(LIBCURL_CFLAGS) +lumix_la_LDFLAGS = $(camlib_ldflags) +lumix_la_DEPENDENCIES = $(camlib_dependencies) +lumix_la_LIBADD = $(camlib_libadd) $(LIBCURL_LIBS) $(LIBXML2_LIBS) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lumix/README.lumix b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lumix/README.lumix new file mode 100644 index 00000000..aebb3d77 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lumix/README.lumix @@ -0,0 +1 @@ +This is a small Lumix WIFI library. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lumix/lumix.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lumix/lumix.c new file mode 100644 index 00000000..3115b064 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/lumix/lumix.c @@ -0,0 +1,1942 @@ +/** \file lumix.c + * + * \author Copyright 2019 Robert Hasson + * \author Copyright 2019 Marcus Meissner + * + * \par + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + */ +#include "config.h" + + +#include +#include +#ifdef HAVE_LIBCURL +# include +#endif +#include +#include +#ifdef HAVE_LIBXML2 +# include +# include +# include +# include +#endif + + +#include +#include +#include +#include + + +#include +#include + + +#define GP_MODULE "lumix" + +#define CHECK(result) \ +{ \ + int res = (result); \ + \ + if (res < 0) { \ + gp_log (GP_LOG_DEBUG, "lumix", "Operation failed in %s (%i)!", __FUNCTION__, res); \ + return (res); \ + } \ +} + + +#ifdef ENABLE_NLS +# include +# undef _ +/** +* This define is the string translation macro used in +* libgphoto2. It will resolve to a dcgettext() function call and +* does both the translation itself and also marks up the string +* for the collector (xgettext). +*/ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +/** +* This is the noop translation macro, which does not translate the +* string, but marks it up for the extraction of translatable strings. +*/ +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#if defined(HAVE_LIBCURL) && defined(HAVE_LIBXML2) + +char* CDS_Control = ":60606/Server0/CDS_control"; +int ReadoutMode = 2; // this should be picked up from the settings.... 0-> JPG; 1->RAW; 2 -> Thumbnails +char* cameraShutterSpeed = "B"; // //placeholder to store the value of the shutterspeed set in camera; "B" is for bulb. +int captureDuration = 10; //placeholder to store the value of the bulb shot this should be taken as input. note that my primary goal is in fact to perform bulb captures. but this should be extended for sure to take Shutter Speed capture as set in camera + +static int NumberPix(Camera *camera); +static char* loadCmd (Camera *camera,char* cmd); +static char* switchToRecMode(Camera *camera); +static char* switchToPlayMode(Camera *camera); + +typedef struct { + char *data; + size_t size; +} LumixMemoryBuffer; + +typedef struct { + char *id; + char *url_raw; + char *url_movie; + char *url_large; + char *url_medium; + char *url_thumb; +} LumixPicture; + +struct _CameraPrivateLibrary { + /* all private data */ + + int numpics; + LumixPicture *pics; + + int liveview; + int udpsocket; +}; + + +static int +camera_exit (Camera *camera, GPContext *context) +{ + if (camera->pl->udpsocket > 0) { + close (camera->pl->udpsocket); + camera->pl->udpsocket = 0; + } + return GP_OK; +} + +static int +camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + int valread; + struct sockaddr_in serv_addr; + unsigned char buffer[65536]; + GPPortInfo info; + int i, start, end, tries; + + switchToRecMode (camera); + + if (!camera->pl->liveview) { + loadCmd(camera,"cam.cgi?mode=startstream&value=49199"); + camera->pl->liveview = 1; + if (camera->pl->udpsocket <= 0) { + if ((camera->pl->udpsocket = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { + GP_LOG_E("\n Socket creation error \n"); + return GP_ERROR; + } + + gp_port_get_info (camera->port, &info); + + memset(&serv_addr, 0, sizeof(serv_addr)); + + serv_addr.sin_family = AF_INET; + serv_addr.sin_port = htons(49199); + serv_addr.sin_addr.s_addr = 0; + + if (bind(camera->pl->udpsocket, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < 0) { + GP_LOG_E("bind Failed: %d", errno); + return GP_ERROR; + } + } + } else { + /* this reminds the camera we are still doing it */ + loadCmd(camera,"cam.cgi?mode=getstate"); + } + tries = 3; + while (tries--) { + valread = recv ( camera->pl->udpsocket, buffer, sizeof(buffer), 0); + if (valread == -1) { + GP_LOG_E("recv failed: %d", errno); + return GP_ERROR; + } + + GP_LOG_DATA((char*)buffer,valread,"read from udp port"); + + if (valread == 0) + continue; + + start = end = -1; + for (i = 0; i */ + + return GP_OK; +} + + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + /*Camera *camera = data;*/ + /* currently no folders exposed */ + return GP_OK; +} + + +/** + * List available files in the specified folder. + * + * This function is a CameraFilesystem method. + */ +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i; + + for (i=0;ipl->numpics;i++) { + if (camera->pl->pics[i].url_raw) { + char *s = strrchr(camera->pl->pics[i].url_raw, '/')+1; + gp_list_append (list, s, NULL); + continue; + } + if (camera->pl->pics[i].url_large) { + char *s = strrchr(camera->pl->pics[i].url_large, '/')+1; + gp_list_append (list, s, NULL); + continue; + } + if (camera->pl->pics[i].url_movie) { + char *s = strrchr(camera->pl->pics[i].url_movie, '/')+1; + gp_list_append (list, s, NULL); + continue; + } + } + return GP_OK; +} + +/** + * Get information on all available storages in the camera. + * + * This function is a CameraFilesystem method. + */ +int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **storageinformations, + int *nrofstorageinformations, void *data, + GPContext *context); +int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **storageinformations, + int *nrofstorageinformations, void *data, + GPContext *context) +{ + /*Camera *camera = data;*/ + + /* List your storages here */ + + return GP_ERROR_NOT_SUPPORTED; +} + +/*@}*/ + + +/**********************************************************************/ +/** + * @name camlib API functions + * + * @{ + */ +/**********************************************************************/ + + +static size_t +write_callback(char *contents, size_t size, size_t nmemb, void *userp) +{ + size_t realsize = size * nmemb; + size_t oldsize; + LumixMemoryBuffer *lmb = userp; + + oldsize = lmb->size; + /* 1 additionaly byte for 0x00 */ + lmb->data = realloc(lmb->data, lmb->size+realsize+1); + lmb->size += realsize; + lmb->data[lmb->size] = 0x00; + + GP_LOG_DATA(contents, realsize, "lumix read from url"); + + memcpy(lmb->data+oldsize,contents,realsize); + return realsize; +} + + +static char* +loadCmd (Camera *camera,char* cmd) { + CURL *curl; + CURLcode res; + char URL[100]; + GPPortInfo info; + char *xpath; + LumixMemoryBuffer lmb; + + curl = curl_easy_init(); + gp_port_get_info (camera->port, &info); + gp_port_info_get_path (info, &xpath); /* xpath now contains ip:192.168.1.1 */ + snprintf( URL,100, "http://%s/%s", xpath+strlen("ip:"), cmd); + GP_LOG_D("cam url is %s", URL); + + curl_easy_setopt(curl, CURLOPT_URL, URL); + + lmb.size = 0; + lmb.data = malloc(0); + curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback); + curl_easy_setopt(curl, CURLOPT_WRITEDATA, &lmb); + + res = curl_easy_perform(curl); + if(res != CURLE_OK) { + fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res)); + return NULL; + } else { + /* read the XML that is now in Buffer*/ + GP_LOG_D("result %s\n", lmb.data); + + /* ok */ + } + curl_easy_cleanup(curl); + return lmb.data; +} + +static char* +switchToRecMode(Camera *camera) { + return loadCmd(camera,"cam.cgi?mode=camcmd&value=recmode"); +} + +static char* +switchToPlayMode(Camera *camera) { + return loadCmd(camera,"cam.cgi?mode=camcmd&value=playmode"); +} + + +static void Set_ISO(Camera *camera,const char * ISOValue) { + char buf[200]; + sprintf(buf, "?mode=setsetting&type=iso&value=%s",ISOValue); + loadCmd(camera,buf); +} + +static char* +generic_setting_getter(Camera *camera, char *type) { + char *result, *s; + xmlDocPtr docin; + xmlNodePtr docroot, output; + xmlAttr *attr; + char url[50]; + + sprintf(url,"cam.cgi?mode=getsetting&type=%s", type); + result = loadCmd(camera, url); + docin = xmlReadMemory (result, strlen(result), "http://gphoto.org/", "utf-8", 0); + + /* + * ok + */ + + if (!docin) return NULL; + docroot = xmlDocGetRootElement (docin); + if (!docroot) { + xmlFreeDoc (docin); + return NULL; + } + if (strcmp((char*)docroot->name,"camrply")) { + GP_LOG_E ("docroot name unexpected %s", docroot->name); + return NULL; + } + output = docroot->children; + if (strcmp((char*)output->name, "result")) { + GP_LOG_E ("node name expected 'result', got %s", output->name); + return NULL; + } + if (strcmp((char*)xmlNodeGetContent (output),"ok")) { + GP_LOG_E ("result was not 'ok', got %s", (char*)xmlNodeGetContent (output)); + return NULL; + } + output = xmlNextElementSibling (output); + if (strcmp((char*)output->name, "settingvalue")) { + GP_LOG_E ("node name expected 'settingvalue', got %s", output->name); + return NULL; + } + attr = output->properties; + if (strcmp((char*)attr->name, type)) { + GP_LOG_E ("attr name expected '%s', got %s", type, output->name); + return NULL; + } + s = (char*)xmlNodeGetContent (attr->children); + GP_LOG_D("%s content %s", type, s); + xmlFreeDoc (docin); + return strdup(s); +} + +static char* +Get_Clock(Camera *camera) { + return generic_setting_getter(camera,"clock"); +} + +static char* +Get_Video_Quality(Camera *camera) { + return generic_setting_getter(camera,"videoquality"); +} + +static char* +Get_ISO(Camera *camera) { + /* + * ok + */ + return generic_setting_getter(camera,"iso"); +} + +static char* +Get_ShutterSpeed(Camera *camera) { + /* + * ok + */ + return generic_setting_getter(camera, "shtrspeed"); +} + +static char* +Get_Aperture(Camera *camera) { + /* + * ok + */ + return generic_setting_getter(camera, "focal"); +} + +static char* +Get_AFMode(Camera *camera) { + return generic_setting_getter(camera,"afmode"); +} + +static char* +Get_LiveViewSize(Camera *camera) { + return generic_setting_getter(camera,"liveviewsize"); +} + +static char* +Get_DeviceName(Camera *camera) { + return generic_setting_getter(camera,"device_name"); +} + +static char* +Get_FocusMode(Camera *camera) { + return generic_setting_getter(camera,"focusmode"); +} + +static char* +Get_MFAssist(Camera *camera) { + return generic_setting_getter(camera,"mf_asst"); +} + +static char* +Get_MFAssist_Mag(Camera *camera) { + return generic_setting_getter(camera,"mf_asst_mag"); +} + +static char* +Get_ExTeleConv(Camera *camera) { + return generic_setting_getter(camera,"ex_tele_conv"); +} + +static char* +Get_Capability(Camera *camera) { + return loadCmd(camera,"cam.cgi?mode=getinfo&type=capability"); +} + +static char* +Get_Lens(Camera *camera) { + return loadCmd(camera,"cam.cgi?mode=getinfo&type=lens"); +} + +static char* +Get_AllMenu(Camera *camera) { + return loadCmd(camera,"cam.cgi?mode=getinfo&type=allmenu"); +} + +static char* +Get_CurMenu(Camera *camera) { + return loadCmd(camera,"cam.cgi?mode=getinfo&type=curmenu"); +} + + +static void Set_ShutterSpeed(Camera *camera,const char* SpeedValue) { + char buf[200]; + sprintf(buf, "cam.cgi?mode=setsetting&type=shtrspeed&value=%s",SpeedValue); + loadCmd(camera,buf); +} + +static char* +Get_Quality(Camera *camera) { + return generic_setting_getter(camera,"quality"); +} + +static void +Set_quality(Camera *camera,const char* Quality) { + char buf[200]; + sprintf(buf,"cam.cgi?mode=setsetting&type=quality&value=%s", Quality); + loadCmd(camera,buf); +} + + +static int +startCapture(Camera *camera) { + char *result; + + result = loadCmd(camera,"cam.cgi?mode=camcmd&value=capture"); + + if (strstr(result,"ok")) return GP_OK; + if (strstr(result,"err_busy")) return GP_ERROR_CAMERA_BUSY; + return GP_ERROR; +} + +static int +stopCapture(Camera *camera) { + char *result; + + result = loadCmd(camera,"cam.cgi?mode=camcmd&value=capture_cancel"); + + if (strstr(result,"ok")) return GP_OK; + if (strstr(result,"err_busy")) return GP_ERROR_CAMERA_BUSY; + return GP_ERROR; +} + +static void startMovie(Camera *camera) { + loadCmd(camera,"cam.cgi?mode=camcmd&value=video_recstart"); +} + +static void stopMovie(Camera *camera) { + loadCmd(camera,"cam.cgi?mode=camcmd&value=video_recstop"); +} + +static void zoomIn(Camera *camera) { + loadCmd(camera,"cam.cgi?mode=camcmd&value=tele-fast"); +} + +static void zoomOut(Camera *camera) { + loadCmd(camera,"cam.cgi?mode=camcmd&value=wide-fast"); +} + +static void zoomStop(Camera *camera) { + loadCmd(camera,"cam.cgi?mode=camcmd&value=zoomstop"); +} + +static void focusIn(Camera *camera) { + loadCmd(camera,"cam.cgi?mode=camctrl&type=focus&value=tele-fast"); +} + +static void focusOut(Camera *camera) { + loadCmd(camera,"cam.cgi?mode=camctrl&type=focus&value=wide-fast"); +} + +/* + +this is the XML sample to be parsed by the function below NumberPix() + +ok341372342 + + +*/ +static int +strend(const char *s, const char *t) +{ + size_t ls = strlen(s); // find length of s + size_t lt = strlen(t); // find length of t + if (ls >= lt) // check if t can fit in s + { + // point s to where t should start and compare the strings from there + return (0 == memcmp(t, s + (ls - lt), lt)); + } + return 0; // t was longer than s +} + +static int +NumberPix(Camera *camera) { + xmlChar *keyz = NULL; + int numpics = 0; + char *temp = loadCmd(camera,"cam.cgi?mode=get_content_info"); + xmlDocPtr doc = xmlParseDoc((unsigned char*) temp); + xmlNodePtr cur = NULL; + + cur = xmlDocGetRootElement(doc); + + if (cur == NULL) { + GP_LOG_E("empty xml result document"); + xmlFreeDoc(doc); + return GP_ERROR; + } + /* + * busy mode: + err_busy + + * regular return: + + ok2651651 + */ + if (strstr(temp, "err_busy")) { + xmlFreeDoc(doc); + return GP_ERROR_CAMERA_BUSY; + } + + cur = cur->xmlChildrenNode; + while (cur != NULL) { + /*GP_LOG_D("NumberPix Decode current node is %s \n", (char*)cur);*/ + if ((!xmlStrcmp(cur->name, (const xmlChar *)"content_number"))) { + keyz = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); + break; + } + cur = cur->next; + } + if (!keyz) { + xmlFreeDoc(doc); + return GP_ERROR; + } + GP_LOG_D("NumberPix Found is %s", (char *) keyz); + numpics = strtol((char*)keyz, NULL, 10); + + xmlFreeDoc(doc); + return numpics; +} + +/*utility function to creat a SOAP envelope for the lumix cam */ +static char* +SoapEnvelop(int start, int num){ + static char Envelop[1000]; + snprintf(Envelop,1000, "0BrowseDirectChildren*%d%dLumixLink2.0",start,num); + + return Envelop; +} + +/* + * retrieves the XML doc with the last num pictures avail in the camera. + */ +static char* +GetPixRange(Camera *camera, int start, int num) { + long NumPix; + int numreadint; + xmlDocPtr docin, docin2; + xmlNodePtr docroot, docroot2, output, output2, next; + xmlChar *xchar, *numread; + char* SoapMsg; + CURL *curl; + CURLcode res; + struct curl_slist *list = NULL; + GPPortInfo info; + char *xpath; + LumixMemoryBuffer lmb; + char URL[1000]; + + switchToPlayMode (camera); + NumPix = NumberPix(camera); + //GP_LOG_D("NumPix is %d \n", NumPix); + if (NumPix < GP_OK) return NULL; + + if (camera->pl->numpics < NumPix) { + camera->pl->pics = realloc(camera->pl->pics,NumPix * sizeof(camera->pl->pics[0])); + memset(camera->pl->pics+camera->pl->numpics, 0, (NumPix - camera->pl->numpics) * sizeof(camera->pl->pics[0])); + camera->pl->numpics = NumPix; + } + + while (num > 0) { + SoapMsg = SoapEnvelop(start, num); + //GP_LOG_D("SoapMsg is %s \n", SoapMsg); + + curl = curl_easy_init(); + + list = curl_slist_append(list, "SOAPaction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse"); + list = curl_slist_append(list, "Content-Type: text/xml; charset=\"utf-8\""); + list = curl_slist_append(list, "Accept: text/xml"); + + gp_port_get_info (camera->port, &info); + gp_port_info_get_path (info, &xpath); /* xpath now contains ip:192.168.1.1 */ + snprintf( URL, 1000, "http://%s%s",xpath+strlen("ip:"), CDS_Control); + curl_easy_setopt(curl, CURLOPT_URL, URL); + + lmb.size = 0; + lmb.data = malloc(0); + curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback); + curl_easy_setopt(curl, CURLOPT_WRITEDATA, &lmb); + + curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list); + curl_easy_setopt(curl, CURLOPT_POST,1); + curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) strlen(SoapMsg)); + + curl_easy_setopt(curl, CURLOPT_POSTFIELDS, SoapMsg); + + GP_LOG_D("camera url is %s", URL); + GP_LOG_D("posting %s", SoapMsg); + + res = curl_easy_perform(curl); + if(res != CURLE_OK) { + fprintf(stderr, "curl_easy_perform() failed: %s\n", + curl_easy_strerror(res)); + curl_easy_cleanup(curl); + return NULL; + } + curl_easy_cleanup(curl); + + docin = xmlReadMemory (lmb.data, lmb.size, "http://gphoto.org/", "utf-8", 0); + if (!docin) return NULL; + docroot = xmlDocGetRootElement (docin); + if (!docroot) { + xmlFreeDoc (docin); + return NULL; + } + if (strcmp((char*)docroot->name,"Envelope")) { + GP_LOG_E("root node is '%s', expected 'Envelope'", docroot->name); + xmlFreeDoc (docin); + return NULL; + } + output = xmlFirstElementChild (docroot); + if (strcmp((char*)output->name,"Body")) { + GP_LOG_E("second level node is %s, expected Body", docroot->name); + xmlFreeDoc (docin); + return NULL; + } + output = xmlFirstElementChild (output); + if (strcmp((char*)output->name,"BrowseResponse")) { + GP_LOG_E("third level node is %s, expected BrowseResponse", docroot->name); + xmlFreeDoc (docin); + return NULL; + } + output = xmlFirstElementChild (output); + if (strcmp((char*)output->name,"Result")) { + GP_LOG_E("fourth level node is %s, expected Result", docroot->name); + xmlFreeDoc (docin); + return NULL; + } + xchar = xmlNodeGetContent (output); + GP_LOG_D("content of %s is %s", output->name, xchar); + /* + + + + 103-0822 + WRITABLE + object.item.imageItem + + http://192.168.54.1:50001/DO1030822.JPG + + + http://192.168.54.1:50001/DT1030822.JPG + + + http://192.168.54.1:50001/DL1030822.JPG + + + + + */ + docin2 = xmlReadMemory ((char*)xchar, strlen((char*)xchar), "http://gphoto.org/", "utf-8", 0); + if (!docin2) return NULL; + docroot2 = xmlDocGetRootElement (docin2); + if (!docroot) { + xmlFreeDoc (docin2); + return NULL; + } + if (strcmp((char*)docroot2->name,"DIDL-Lite")) { + GP_LOG_E("expected DIDL-Lite, got %s", docroot2->name); + xmlFreeDoc (docin2); + return NULL; + } + output2 = xmlFirstElementChild (docroot2); + if (strcmp((char*)output2->name,"item")) { + GP_LOG_E("expected item, got %s", output2->name); + xmlFreeDoc (docin2); + return NULL; + } + /* + + 103-0822 + WRITABLE + object.item.imageItem + + http://192.168.54.1:50001/DO1030822.JPG + + + http://192.168.54.1:50001/DT1030822.JPG + + + http://192.168.54.1:50001/DL1030822.JPG + + + +we have: +Picture: + http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00900000000000000000000000000000;PANASONIC.COM_PN=CAM_ORG + http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=01;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00900000000000000000000000000000;PANASONIC.COM_PN=CAM_TN + http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_OP=01;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00900000000000000000000000000000;PANASONIC.COM_PN=CAM_LRGTN + +Movie: + http-get:*:application/octet-stream:DLNA.ORG_OP=01;PANASONIC.COM_PN=CAM_AVC_MP4_HP_2160_30P_AAC + http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=01;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00900000000000000000000000000000;PANASONIC.COM_PN=CAM_TN + content is http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_OP=01;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00900000000000000000000000000000;PANASONIC.COM_PN=CAM_LRGTN + +Raw: + http-get:*:application/octet-stream;PANASONIC.COM_PN=CAM_RAW_JPG + http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=01;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00900000000000000000000000000000;PANASONIC.COM_PN=CAM_TN + http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_OP=01;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00900000000000000000000000000000;PANASONIC.COM_PN=CAM_LRGTN + http-get:*:application/octet-stream;PANASONIC.COM_PN=CAM_RAW + + */ + next = output2; + do { + char *id = NULL; + int i; + xmlNode *child; + xmlAttr *attr = next->properties; + + GP_LOG_D("got %s", next->name); + + while (attr) { + GP_LOG_D("\t attribute %s", attr->name); + GP_LOG_D("\t attribute content %s", xmlNodeGetContent(attr->children)); + + if (!strcmp((char*)attr->name, "id")) { + id = (char*)xmlNodeGetContent(attr->children); + break; + } + attr = attr->next; + } + /* look if we have the id */ + for (i=0;ipl->numpics;i++) + if (camera->pl->pics[i].id && !strcmp(camera->pl->pics[i].id, id)) + break; + if (ipl->numpics) { + GP_LOG_D("already read id %s, is element %d\n", id, i); + continue; + } + for (i=0;ipl->numpics;i++) + if (!camera->pl->pics[i].id) + break; + if (i==camera->pl->numpics) { + GP_LOG_D("no free slot found for id %s\n", id); + continue; + } + camera->pl->pics[i].id = strdup(id); + child = next->children; + + /* + + http://192.168.54.1:50001/DL1030822.JPG + + */ + while (child) { + xmlAttr *attr; + xmlChar *attrcontent; + + if (strcmp((char*)child->name,"res")) { + GP_LOG_D("skipping %s", child->name); + child = child->next; + continue; + } + attr = child->properties; + + if (strcmp((char*)attr->name,"protocolInfo")) { + GP_LOG_D("expected attribute protocolInfo, got %s", attr->name); + } + attrcontent = xmlNodeGetContent(attr->children); + GP_LOG_D("\t\tattribute content is %s", attrcontent); + + GP_LOG_D("\t child content %s", xmlNodeGetContent(child)); + + /* FIXME: perhaps shorten match? */ + if (strstr((char*)attrcontent,"PANASONIC.COM_PN=CAM_AVC_MP4_HP_2160_30P_AAC")) { + camera->pl->pics[i].url_movie = strdup((char*)xmlNodeGetContent(child)); + } + // http-get:*:application/octet-stream;PANASONIC.COM_PN=CAM_RAW + // but not + // http-get:*:application/octet-stream;PANASONIC.COM_PN=CAM_RAW_JPG + if (strstr((char*)attrcontent,"PANASONIC.COM_PN=CAM_RAW") && + !strstr((char*)attrcontent,"PANASONIC.COM_PN=CAM_RAW_JPG") + ) { + camera->pl->pics[i].url_raw = strdup((char*)xmlNodeGetContent(child)); + } + if (strstr((char*)attrcontent,"PANASONIC.COM_PN=CAM_ORG")) { + camera->pl->pics[i].url_large = strdup((char*)xmlNodeGetContent(child)); + } + if (strstr((char*)attrcontent,"PANASONIC.COM_PN=CAM_LRGTN")) { + camera->pl->pics[i].url_medium = strdup((char*)xmlNodeGetContent(child)); + } + if (strstr((char*)attrcontent,"PANASONIC.COM_PN=CAM_TN")) { + camera->pl->pics[i].url_thumb = strdup((char*)xmlNodeGetContent(child)); + } + child = child->next; + } + } while ((next = xmlNextElementSibling (next))); + + + output = xmlNextElementSibling (output); + if (strcmp((char*)output->name,"NumberReturned")) { + GP_LOG_E("fourth level node is %s, expected NumberReturned", output->name); + xmlFreeDoc (docin); + return NULL; + } + numread = xmlNodeGetContent (output); + GP_LOG_D("content of %s is %s", output->name, numread); + + numreadint = 1; + sscanf((char*)numread,"%d", &numreadint); + + start += numreadint; + num -= numreadint; + } + return strdup((char*)xchar); +} + +static struct shuttermap { + char *cameraspeed; + char *speed; +} shutterspeeds[] = { + {"3328/256","8000"}, + {"3243/256","6400"}, + {"3158/256","5000"}, + {"3072/256","4000"}, + {"2987/256","3200"}, + {"2902/256","2500"}, + {"2816/256","2000"}, + {"2731/256","1600"}, + {"2646/256","1300"}, + {"2560/256","1000"}, + {"2475/256","800"}, + {"2390/256","640"}, + {"2304/256","500"}, + {"2219/256","400"}, + {"2134/256","320"}, + {"2048/256","250"}, + {"1963/256","200"}, + {"1878/256","160"}, + {"1792/256","125"}, + {"1707/256","100"}, + {"1622/256","80"}, + {"1536/256","60"}, + {"1451/256","50"}, + {"1366/256","40"}, + {"1280/256","30"}, + {"1195/256","25"}, + {"1110/256","20"}, + {"1024/256","15"}, + {"939/256","13"}, + {"854/256","10"}, + {"768/256","8"}, + {"683/256","6"}, + {"598/256","5"}, + {"512/256","4"}, + {"427/256","3.2"}, + {"342/256","2.5"}, + {"256/256","2"}, + {"171/256","1.6"}, + {"86/256","1.3"}, + {"0/256","1"}, + {"-85/256","1.3s"}, + {"-170/256","1.6s"}, + {"-256/256","2s"}, + {"-341/256","2.5s"}, + {"-426/256","3.2s"}, + {"-512/256","4s"}, + {"-682/256","5s"}, + {"-768/256","6s"}, + {"-853/256","8s"}, + {"-938/256","10s"}, + {"-1024/256","13s"}, + {"-1109/256","15s"}, + {"-1194/256","20s"}, + {"-1280/256","25s"}, + {"-1365/256","30s"}, + {"-1450/256","40s"}, + {"-1536/256","50s"}, + {"16384/256","60s"}, + {"256/256","B"}, +}; + +static struct aperturemap { + char *cameraaperture; + char *aperture; +} apertures[] = { + {"392/256","1.7"}, + {"427/256","1.8"}, + {"512/256","2"}, + {"598/256","2.2"}, + {"683/256","2.5"}, + {"768/256","2.8"}, + {"854/256","3.2"}, + {"938/256","3.5"}, + {"1024/256","4"}, + {"1110/256","4.5"}, + {"1195/256","5"}, + {"1280/256","5.6"}, + {"1366/256","6.3"}, + {"1451/256","7.1"}, + {"1536/256","8"}, + {"1622/256","9"}, + {"1707/256","10"}, + {"1792/256","11"}, + {"1878/256","13"}, + {"1963/256","14"}, + {"2048/256","16"}, +}; + +static int +camera_config_get (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *widget,*section; + int ret, i, valset; + char *val, *curval; + + switchToRecMode (camera); + + gp_widget_new (GP_WIDGET_WINDOW, _("Lumix Configuration"), window); + gp_widget_set_name (*window, "config"); + + gp_widget_new (GP_WIDGET_SECTION, _("Camera Settings"), §ion); + gp_widget_set_name (section, "settings"); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_TEXT, _("Clock"), &widget); + gp_widget_set_name (widget, "clock"); + gp_widget_set_value (widget, Get_Clock(camera)); + gp_widget_append (section, widget); + + + val = Get_ShutterSpeed(camera); + if (!val) val = "unknown"; + gp_widget_new (GP_WIDGET_RADIO, _("Shutterspeed"), &widget); + gp_widget_set_name (widget, "shutterspeed"); + valset = 0; + for (i=0;i +- +- +- +- +- +- +103-0516 +WRITABLE +object.item.imageItem +http://192.168.1.26:50001/DO1030516.JPG +http://192.168.1.26:50001/DT1030516.JPG +http://192.168.1.26:50001/DL1030516.JPG +http://192.168.1.26:50001/DO1030516.RW2 + + + +1 +343 +1 + + + + +case RAW: + +- +- +- +- +- +- +103-0517 +WRITABLE +object.item.imageItem +http://192.168.1.26:50001/DO1030517.RAW +http://192.168.1.26:50001/DT1030517.JPG +http://192.168.1.26:50001/DL1030517.JPG + + + +1 +344 +1 + + + + +*/ +static int +add_objectid_and_upload (Camera *camera, CameraFilePath *path, GPContext *context, char *ximage, size_t size) { + int ret; + CameraFile *file = NULL; + CameraFileInfo info; + + ret = gp_file_new(&file); + if (ret!=GP_OK) return ret; + gp_file_set_mtime (file, time(NULL)); + strcpy(info.file.type, GP_MIME_JPEG); + + GP_LOG_D ("setting size"); + ret = gp_file_set_data_and_size(file, ximage, size); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + GP_LOG_D ("append to fs"); + ret = gp_filesystem_append(camera->fs, path->folder, path->name, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + GP_LOG_D ("adding filedata to fs"); + ret = gp_filesystem_set_file_noop(camera->fs, path->folder, path->name, GP_FILE_TYPE_NORMAL, file, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + + /* We have now handed over the file, disclaim responsibility by unref. */ + gp_file_unref (file); + + /* we also get the fs info for free, so just set it */ + info.file.fields = GP_FILE_INFO_TYPE | + /*GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT |*/ + GP_FILE_INFO_SIZE /*| GP_FILE_INFO_MTIME */ ; + strcpy(info.file.type, GP_MIME_JPEG); + + info.preview.fields = 0; /* so far none */ +/* + info.file.width = oi->ImagePixWidth; + info.file.height = oi->ImagePixHeight; + info.file.size = oi->ObjectCompressedSize; + info.file.mtime = time(NULL); + + info.preview.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | + GP_FILE_INFO_SIZE; + strcpy_mime (info.preview.type, params->deviceinfo.VendorExtensionID, oi->ThumbFormat); + info.preview.width = oi->ThumbPixWidth; + info.preview.height = oi->ThumbPixHeight; + info.preview.size = oi->ThumbCompressedSize; +*/ + + GP_LOG_D ("setting fileinfo in fs"); + return gp_filesystem_set_info_noop(camera->fs, path->folder, path->name, info, context); +} + +static int +ReadImageFromCamera(Camera *camera, CameraFilePath *path, GPContext *context) { + char *image; + long nRead; + LumixMemoryBuffer lmb; + char *xmlimageName; + xmlDocPtr doc; /* the resulting document tree */ + int ret; + char * imageURL=""; + xmlTextReaderPtr reader; + + switchToPlayMode (camera); + + reader = xmlReaderForDoc((xmlChar*)GetPixRange(camera,NumberPix(camera)-1,1), NULL,"noname.xml", XML_PARSE_DTDATTR | /* default DTD attributes */ XML_PARSE_NOENT); + ret = xmlTextReaderRead(reader); + while (ret == 1) { + imageURL = processNode(reader); + if (strlen(imageURL)) + break; + ret = xmlTextReaderRead(reader); + } + + GP_DEBUG("the image URL is %s\n",imageURL); + image = strdup(imageURL); + nRead = 0; + CURL* imageUrl; + imageUrl = curl_easy_init(); + CURLcode res; + double bytesread = 0; + char filename[100]; + long http_response; + int ret_val=0; + + + while (ret_val!=2) { + GP_DEBUG("reading stream %s position %ld", image, nRead); + + curl_easy_setopt(imageUrl, CURLOPT_URL, image); + //curl_easy_setopt(imageUrl,CURLOPT_TCP_KEEPALIVE,1L); + //curl_easy_setopt(imageUrl, CURLOPT_TCP_KEEPIDLE, 120L); + //curl_easy_setopt(imageUrl, CURLOPT_TCP_KEEPINTVL, 60L); + +#if 0 + /* FIXME trick wont work anymore with new buffering code -Marcus */ + if (nRead) { + curl_easy_setopt(imageUrl, CURLOPT_RESUME_FROM, nRead); + GetPix(camera,1);//'if the file not found happened then this trick is to get the camera in a readmode again and making sure it remembers the filename + GP_DEBUG("continuing the read where it stopped %s position %ld", image, nRead); + } +#endif + lmb.size = 0; + lmb.data = malloc(0); + curl_easy_setopt(imageUrl, CURLOPT_WRITEFUNCTION, write_callback); + curl_easy_setopt(imageUrl, CURLOPT_WRITEDATA, &lmb); + + res = curl_easy_perform(imageUrl); + + if (res != CURLE_OK) { + GP_LOG_E("curl_easy_perform() failed: %s", curl_easy_strerror(res)); + GP_DEBUG("error in reading stream %s position %ld", image, nRead); + curl_easy_getinfo(imageUrl, CURLINFO_RESPONSE_CODE, &http_response); + GP_DEBUG("CURLINFO_RESPONSE_CODE:%ld\n", http_response); + } else { + GP_DEBUG("read the whole file"); + ret_val=2; + } + } + curl_easy_cleanup(imageUrl); + strcpy(path->name, strrchr(image,'/')+1); + strcpy(path->folder, "/"); + return add_objectid_and_upload (camera, path, context, lmb.data, lmb.size); +} + + +/** +* Capture an image and tell libgphoto2 where to find it by filling +* out the path. +* +* This function is a method of the Camera object. +*/ +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) { + int ret, tries, before, after; + char *s, *url; + + + tries = 10; + do { + ret = NumberPix(camera); + if (ret == GP_ERROR_CAMERA_BUSY) + sleep(1); + } while ((ret == GP_ERROR_CAMERA_BUSY) && (tries--)); + + if (ret < GP_OK) + return ret; + + before = ret; + GP_LOG_D("numberpix before=%d", ret); + + switchToRecMode (camera); + + sleep(2); + + ret = startCapture (camera); + if (ret != GP_OK) + return ret; + + + if (strcmp(cameraShutterSpeed, "B")!=0) { + sleep(captureDuration); // Sleep for the duration to simulate exposure, if this is in Bulb mode + } else { + sleep(3); + } + stopCapture(camera); + + tries = 10; + do { + ret = NumberPix(camera); + if (ret == GP_ERROR_CAMERA_BUSY) + sleep(1); + } while ((ret == GP_ERROR_CAMERA_BUSY) && (tries--)); + + if (ret < GP_OK) + return ret; + + after = ret; + GP_LOG_D("numberpix after=%d", ret); + + if (after > before) + GetPixRange(camera,before,after-before); + /* handle case where we have more than one picture, otherwise we just take one */ + url = "unknown"; + if (camera->pl->pics[after-1].url_large) url = camera->pl->pics[after-1].url_large; + if (camera->pl->pics[after-1].url_raw) url = camera->pl->pics[after-1].url_raw; + s = strrchr(url,'/')+1; + strcpy(path->name, s); + strcpy(path->folder, "/"); + return GP_OK; +} + +/** +* Fill out the summary with textual information about the current +* state of the camera (like pictures taken, etc.). +* +* This function is a method of the Camera object. +*/ +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + return GP_OK; +} + + +/** +* Return the camera drivers manual. +* If you would like to tell the user some information about how +* to use the camera or the driver, this is the place to do. +* +* This function is a method of the Camera object. +*/ +static int camera_manual (Camera *camera, CameraText *manual, GPContext *context) { + return GP_OK; +} + + +/** +* Return "About" content as textual description. +* Will be translated. +* +* This function is a method of the Camera object. +*/ +int camera_about (Camera *camera, CameraText *about, GPContext *context); +int camera_about (Camera *camera, CameraText *about, GPContext *context) { + strcpy (about->text, _("Lumix WiFi Library\n" + "Robert Hasson \n" + "Connects to Lumix Cameras over Wifi.\n" + "using the http GET commands.")); + return GP_OK; +} + +/*@}*/ + + +/**********************************************************************/ +/** +* @name CameraFilesystem member functions +* +* @{ +*/ +/**********************************************************************/ + + +/** +* Get the file from the camera. +* +* This function is a CameraFilesystem method. +*/ +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, CameraFileType type, CameraFile *file, void *data, GPContext *context) +{ + Camera *camera = data; + int i; + CURLcode res; + CURL *imageUrl; + double bytesread = 0; + long http_response; + int ret_val = 0; + long nRead; + LumixMemoryBuffer lmb; + const char *url; + + for (i=0;ipl->numpics;i++) { + char *s; + + if (camera->pl->pics[i].url_movie) { + s = strrchr(camera->pl->pics[i].url_movie,'/')+1; + if (!strcmp(s,filename)) { + url = camera->pl->pics[i].url_movie; + break; + } + } + if (camera->pl->pics[i].url_raw) { + s = strrchr(camera->pl->pics[i].url_raw,'/')+1; + if (!strcmp(s,filename)) { + url = camera->pl->pics[i].url_raw; + break; + } + } + if (camera->pl->pics[i].url_large) { + s = strrchr(camera->pl->pics[i].url_large,'/')+1; + if (!strcmp(s,filename)) { + url = camera->pl->pics[i].url_large; + break; + } + } + } + if (i == camera->pl->numpics) /* not found */ + return GP_ERROR; + + switch (type) { + case GP_FILE_TYPE_PREVIEW: + if (camera->pl->pics[i].url_thumb) + url = camera->pl->pics[i].url_thumb; + break; + case GP_FILE_TYPE_NORMAL: + default: + /* just use regular url */ + break; + } + + switchToPlayMode (camera); + + imageUrl = curl_easy_init(); + + while (ret_val != 2) { + GP_DEBUG("reading stream %s position %ld", url, nRead); + + curl_easy_setopt(imageUrl, CURLOPT_URL, url); + //curl_easy_setopt(imageUrl,CURLOPT_TCP_KEEPALIVE,1L); + //curl_easy_setopt(imageUrl, CURLOPT_TCP_KEEPIDLE, 120L); + //curl_easy_setopt(imageUrl, CURLOPT_TCP_KEEPINTVL, 60L); + +#if 1 + /* FIXME trick wont work anymore with new buffering code -Marcus */ + if (nRead) { + curl_easy_setopt(imageUrl, CURLOPT_RESUME_FROM, nRead); + GetPixRange(camera,NumberPix(camera)-1,1);//'if the file not found happened then this trick is to get the camera in a readmode again and making sure it remembers the filename + GP_DEBUG("continuing the read where it stopped %s position %ld", url, nRead); + } +#endif + lmb.size = 0; + lmb.data = malloc(0); + curl_easy_setopt(imageUrl, CURLOPT_WRITEFUNCTION, write_callback); + curl_easy_setopt(imageUrl, CURLOPT_WRITEDATA, &lmb); + + res = curl_easy_perform(imageUrl); + + if (res != CURLE_OK) { + GP_LOG_E("curl_easy_perform() failed: %s", curl_easy_strerror(res)); + GP_DEBUG("error in reading stream %s position %ld", url, nRead); + curl_easy_getinfo(imageUrl, CURLINFO_RESPONSE_CODE, &http_response); + GP_DEBUG("CURLINFO_RESPONSE_CODE:%ld\n", http_response); + return GP_ERROR_IO; + } else { + GP_DEBUG("read the whole file"); + ret_val=2; + } + } + curl_easy_cleanup(imageUrl); + + return gp_file_set_data_and_size (file, lmb.data, lmb.size); +} + + +int camera_abilities (CameraAbilitiesList *list) { + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "Panasonic:LumixGSeries"); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_IP; + a.operations = GP_CAPTURE_IMAGE| GP_OPERATION_CAPTURE_VIDEO | GP_OPERATION_CONFIG; + a.file_operations = GP_FILE_OPERATION_PREVIEW ; + /* it should be possible to browse and DL images the files using the ReadImageFromCamera() function but for now lets keep it simple*/ + a.folder_operations = GP_FOLDER_OPERATION_NONE; + return gp_abilities_list_append(list, a); +} + +/** +* All filesystem accessor functions. +* +* This should contain all filesystem accessor functions +* available in the camera library. Non-present fields +* are NULL. +* +*/ +CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, +// .get_info_func = get_info_func, +// .set_info_func = set_info_func, + .get_file_func = get_file_func, +// .del_file_func = delete_file_func, +// .put_file_func = put_file_func, +// .delete_all_func = delete_all_func, +// .storage_info_func = storage_info_func +}; + +/** +* Initialize a Camera object. +* +* Sets up all the proper object function pointers, initialize camlib +* internal data structures, and probably establish a connection to +* the camera. +* +* This is a camlib API function. +*/ +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortInfo info; + int ret; + + camera->pl = calloc(sizeof(CameraPrivateLibrary),1); + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->get_config = camera_config_get; + camera->functions->set_config = camera_config_set; + camera->functions->capture = camera_capture; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + + LIBXML_TEST_VERSION + + curl_global_init(CURL_GLOBAL_ALL); + + ret = gp_port_get_info (camera->port, &info); + if (ret != GP_OK) { + GP_LOG_E ("Failed to get port info?"); + return ret; + } + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + +/* + startup code might need: + + loadCmd(camera,"cam.cgi?mode=accctrl&type=req_acc&value=4D454930-0100-1000-8001-020D0090325B&value2=GT-I9300"); + loadCmd(camera,"cam.cgi?mode=setsetting&type=device_name&value=GT-I9300"); +*/ + + if (switchToRecMode (camera) != NULL) { + int numpix; + + Set_quality(camera,"raw_fine"); + + switchToPlayMode (camera); + + numpix = NumberPix(camera); + GetPixRange(camera,0,numpix); + return GP_OK; + } else + return GP_ERROR_IO; +} + +#else +/* no XML2 or no CURL -> no camera here */ +int +camera_init (Camera *camera, GPContext *context) +{ + return GP_OK; +} + +int camera_abilities (CameraAbilitiesList *list) +{ + return GP_OK; +} +#endif + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "Lumix Wifi"); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/ChangeLog new file mode 100644 index 00000000..78cfacc8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/ChangeLog @@ -0,0 +1,194 @@ +2008-04-28 Theodore Kilgore + * library.c: MerchSource "Shift3" discovered at CVS pharmacy, added. + +2008-04-28 Theodore Kilgore + * library.c: gp_ahd_decode() replaces gp_bayer_decode() + +2008-03-15 Theodore Kilgore + * mars.[c,h]: mars_white_balance() postprocessing function, based + upon work with Amauri Magagna done for an Aox camera. + * library.c: Added line to use mars_white_balance() + * README.mars: Description of what mars_white_balance() does. + +2007-11-15 Theodore Kilgore + * library.c: Added Sakar no. 1638x Cyberpix + * README.mars: Description of new camera added. + +2007-10-12 Theodore Kilgore + * mars.c: "0x50" decompression issues resolved. + +2007-10-21 Theodore Kilgore + * library.c: Added Vivitar Mini Digital Camera + * README.mars: Description of new camera added. + +2007-08-14 Theodore Kilgore + * library.c: Added Trust Spycam 100, reported by + Aurelien Jacobs + +2007-04-07 Theodore Kilgore + * library.c: Clean up signedness errors + * mars.c: ditto + +2007-04-07 Theodore Kilgore + + * library.c: Added support for downloading audio files, as some + of the Mars cameras have such abilities. + * README.mars: revisions. + +2007-01-24 Theodore Kilgore + + * library.c: Added "Sakar 56399 Spyshot" + Added "Pixart Gemini Keychain Camera" + reported by R P Herrold + * README.mars: Added these cameras there, too. + +2006-12-23 Theodore Kilgore + + * library.c: Added "ION digital camera" + * README.mars: Added "ION digital camera" + +2006-11-19 Marcus Meissner + + * mars.c,mars.h: Made some functions static to mars.c + +2006-09-23 Theodore Kilgore + + * library.c: RAW files saved now with pixelsize information, + so that the info in them is "self-contained". + * mars.c: usleep() added to mars_routine() to fix a USB timing + problem reported by conon . Changes + to decompression algorithm proposed by conon also + adopted. Changes to way of handling RAW files imply + elimination of mars_get_picture_width(). + * mars.h: now-extraneous functions de-listed. + * README: updated; changes to RAW file header explained. + * protocol.txt: updated. + + +2006-08-28 Theodore Kilgore + + * library.c: Added INNOVAGE Digital Mini. Corrected USB Product + number for Philips Keychain camera (worked anyway, + but number was wrong). + Minor tweak to gamma setting. + Improvements to camera_manual(). + * mars.c: More improvements in mars_decompress(). + * README: updated. + + +2006-02-08 Theodore Kilgore + + * library.c: Added two new cameras. One is the Argus QuickClix, + which uses a new, still unsolved compression codec and + is therefore marked as DEPRECATED. + The other cameras I personally own are upgraded to + TESTING, because of improvements in decompression. + Minor code changes in get_file_func(). + Improvements to camera_manual(). + * mars.c: Improvements in mars_decompress(). + mars_postprocess() eliminated. + * mars.h: mars_postprocess() eliminated. + * README: updated. + * protocol.txt: updated. + + +2005-09-21 Theodore Kilgore + + * mars.c: Removal of two overlooked "//" comment symbols. + + +2005-09-19 Theodore Kilgore + + * library.c: Added Argus DC-1610 and Philips P44417B keychain camera. + * mars.c: More improvement for decompression, based upon some ideas + of Michel Xhaard . + +2005-09-12 Theodore Kilgore + + * library.c: Added Argus DC-1620 to list of experimentally supported. + + +2005-09-12 Theodore Kilgore + + * library.c: Changes to get_file_func() include new computation for + gamma factor. + * mars.c: Support for compressed mode. Thanks to Bertrik Sikkens + for help with the algorithm and to + Michel Xhaard for testing. Minor + changes to mars_init(); + mars_postprocess() distinguishes between compressed and + uncompressed; + mars_get_gamma() eliminated. + * mars.h: Changes to accommodate changes in mars.c. + * README: Updated. + * protocol.txt: Updated. + + +2005-06-12 Theodore Kilgore + + * library.c: Added CD302N, reported by Pedro de Oliveira + Code cleanup. + * mars.c: Code cleanup. Argus DC-1620 will download raw files now. + * mars.h: Code cleanup. + + +2005-01-24 Theodore Kilgore + + * library.c: Added Precision Mini Model HA513A, reported by Alexander Bostrom. + get_info_func() added, patch from Alexander Bostrom + + +2005-01-17 Theodore Kilgore + + * library.c: Argus DC-1610/20 do not currently work; commented out. + + +2005-01-14 Theodore Kilgore + + * library.c: Added Argus DC-1610 and DC-1620. + + +2004-12-22 Hubert Figuiere + + * library.c (camera_manual): fixed some trigraph issues. + +2004-10-26 Theodore Kilgore + * library.c: ID for Haimei HE-501A, reported by + Scott MacKenzie + ID for Elta Medi@ digicam, reported by + Nils Naumann, + Support patch submitted by Scott, tested by Nils. + * mars.c: Scott's patch applied. + * protocol.txt: byte codes for new 352x288 and 176x144 resolution + settings recorded; section "UPDATES and REVISIONS" added. + + +2004-09-04 Theodore Kilgore + * library.c: Vivitar Vivicam 55 added. Credits to + Sebastien Soilen + * mars.c: init sequence improved; thanks to Sebastien + for intensive testing. + + +2004-06-09 Theodore Kilgore + + * library.c: support for thumbnails; gtkam works now + * mars.c: choice routine for gamma factor + * mars.h: choice routine for gamma factor + * README: support for gtkam described + + +2004-05-18 Theodore Kilgore + + * library.c: Model Emprex PCD3800 added. Credits to + Hisham Muhammad + + +2004-05-02 Theodore Kilgore + + * mars.c: Minor changes to lessen memory footprint. + * library.c: Minor changes to lessen memory footprint. + +2004-05-01 Theodore Kilgore + + * *.[c,h]: First check-in. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/Makefile-files new file mode 100644 index 00000000..4009a68d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_DIST += mars/protocol.txt mars/README.mars mars/ChangeLog +camlibdoc_DATA += mars/README.mars + +EXTRA_LTLIBRARIES += mars.la + +mars_la_SOURCES = mars/library.c mars/mars.c mars/mars.h +mars_la_LDFLAGS = $(camlib_ldflags) +mars_la_DEPENDENCIES = $(camlib_dependencies) +mars_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/README.mars b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/README.mars new file mode 100644 index 00000000..5f87cedc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/README.mars @@ -0,0 +1,246 @@ +MARS MR97310 STILLCAM DRIVER +Copyright Theodore Kilgore April, 2004. Latest revision +of this README March 15, 2008. + +(Everything in libgphoto2/camlibs/mars is LGPL-licensed, including this README; +see any of the source files for a more complete statement of the license.) + +INTRODUCTION + +This driver is for cameras which use the Mars MR97310 chip, frequently found in +budget cameras. + +FEATURES OF THE CAMERAS + +The first MR97310 camera which I encountered was the Aiptek PenCam VGA+, +a "budget" camera with resolution settings of 640x480 and 320x240. +This camera and the other MR97310 cameras can also be used as webcams (not +supportable by gphoto2; would require a kernel module) or to make a "video +clip." Some of the other cameras automatically will run in compressed mode +when shooting clips, but on the Aiptek it is optional to compress clips. +Clips download nicely on all these cameras as a succession of PPM files. +The compression method (optional for the Aiptek camera) is proprietary and +not obvious. With recent progress, it ought to be usable. However, the +adventurous and persistent are hereby encouraged to play with it some more. + +09/12/05: Decompression sort of works, now. Thanks to Bertrik Sikkens +for the basic algorithm, and to Michel Xhaard for testing my additional tweaks. +With some of the cameras it is possible now to get decent photos in compressed +mode, at least some of the time. For this, the camera seems to function best +at outdoor use. + +Update 08/28/06: Decompression algorithm much improved, after much trial +and error. I would say it is somewhere between 90% to 100% good now. Seems to +work almost perfectly outdoors and in strong light. Works even better at low +resolution settings, that is, 352x288 or lower. + +Update 08/21/07: Decompression issues essentially resolved, for the "0x50" +compression algorithm. However, another, different compression algorithm is +also used in some of the cameras. + +The camera uses a configuration "block," as do the sq905 cameras. However, +here the information can be used to run options such as gphoto2 -p 3 and +gphoto2 -p 3-5. The OEM software provided with the various cameras does not +take advantage even of the mentioned abilities. With the OEM driver, one has +the choice either to download all photos, or none. If all are downloaded, then +thumbnails are created from temporry image files in C:\TEMP. Thereby, the user +can decide what to "save" in some more permanent place. + + +STATUS NOTES ON SUPPORTED CAMERAS (7 Feb. 2006, revised 28 Aug. 2006) + +First, a special note: On many of these cameras, the LED will read "PC" when +the camera is hooked to a live USB connector. It seems locked in this position. +But all of the cameras which do this, which I have tested, will permit this +lock to be cleared if one runs any gphoto2 option (for example, gphoto2 -n or +gphoto2 --summary will clear the "PC" lock very nicely), and after this +everything on the camera can be made to work, just as if the camera were not +tethered. Consequently, one can use the camera thus tethered, without any +battery in it, to shoot and download photos. The photos will die soon if the +camera is unhooked without a good battery in it, though, because +the camera uses volatile memory for its data storage. + +The only problem with using any of these cameras is the compression codec. +Bertrik's decompression algorithm seems basically correct, but it has a problem +with leaving diagonal color artifacts, a problem which can be severe in bad +lighting conditions, especially if there are lots of dark colors in the photo. +Those cameras with 352x288 max resolution instead of 640x480 do better, and the +Argus DC-1620 does better in poor light than does the Aiptek Pencam VGA+. +I have recently been able to alleviate these problems to a great extent, but +not completely. Also, not all of the cameras seem to perform equally well +in compressed mode when used to shoot similar photos under similar lighting +conditions. After the tweaks I have added as of August 2006, though, the +situation with compression mode is improved quite a bit. + +Here is a report on the cameras which I own. I can not say anything +about the others unless their performance is reported to me. This especially +applies in case that the camera uses compressed mode, since there are two +compression algorithms in use and we can handle only one of them to any extent +at all. + +Aiptek Pencam VGA+: Compressed mode is very sensitive to bad lighting, +especially when there are dark colors in the image (08/27/06: better now). +The camera also will refuse to shoot both in compressed and in uncompressed +mode if the light is very bad (indoors, in the evening) and that is probably +all for the best. + +Argus DC-1620: Compressed mode only. No uncompressed photos. The compressed +mode works pretty well, though. Outdoor photos are pretty good, and if you are +willing to put up with a cheap, compressed-mode-only camera it might even be +worth your money. The camera does have some problems in bad light, but not so +severe as with the Aiptek Pencam VGA+. Camera does have a flash-light which can +be turned on in bad light. The camera will then decide if it wants to use it. + +Sakar Digital #77379: Also compressed mode only. Seems to work pretty well. Has +a very high cutoff threshold and will not take photos in the evening, even if +one points it at a bright monitor screen. Color mapping is cruddy, though, even +running in uncompressed mode. 640x480 and 320x240 resolution. + +Philips Keychain, INNOVAGE Mini Digital Vivitar Mini Digital: These seem to be +clones, even having very similar cases. They will do max resolution 352x488. +But for what they are they work very well. It seems that these shoot clips in +compressed mode (no matter if you otherwise turned compression on, or not), but +at the resolution settings these cameras use the decompression works nicely, +too. Probably the CD302N and the Pixart Gemini are the same, too, but I do not +have direct experience. Trust SpyC@m 100: Reported as working, seems from +manufacturer's description to be another camera similar to the Philips KeyChain. +Furthermore, www.trust.com (the manufacturer) says that the Trust SpyC@m 100s +is the same camera inside, too, so it is also presumed to work. + + +Sakar Digital 56379 "Spy Shot": Another keychain camera, but also contains a +microphone and will capture sound. There is a toggle switch on the camera, +which is labelled "photo" on one side and "voice" on the other. If the +"voice" toggle is chosen, then actual recording is turned on and off with a +press of the shutter button. The output is kept in the camera. This feature +is supported as of 04/07/07; the audio output may be downloaded as a WAVE file +with the usual options gphoto2 -P or gphoto2 -p (number). Note: the option +--capture-sound and the various "audio" options are _not_ supported. In any +event, the usual options do make sound files accessible in a GUI environment. + +ION digital camera: Compression optional. High cutoff threshold for what the +camera considers bad light; will not take photos indoors, sometimes, even on a +bright day. Color mapping is unspectacular. Camera case looks like there is a +microphone on it, but there isn't. + +Sakar no. 1638x CyberPix: Usable in uncompressed mode. Compression algorithm +appears to be the same as that for the Argus QuickClix (see next listing) and +is unknown. WARNING! When turned on the camera comes up in compressed mode !!! +The user can change this by hand by choosing "nP" in the camera's LCD. Do this +before you shoot photos, else the photos will be useless !!! + +Argus QuickClix: Compressed mode only. The compression algorithm is different +from the compression algorithm in the other known Mars cameras, too. I have +no idea how the compression algorithm works, either. Thus, this camera is a +paperweight unless someone figures out how to decompress the data. Don't buy +one unless you are adventurous, patient, and want to help out. That's why it +is listed as DEPRECATED. + +SPECIFIC WARNING REGARDING ARGUS QUICKCLIX + +For the Mars cameras, all data for raw photos begins with a signature. The +uncompressed photos begin with FF FF 00 FF 96 64 00, and raw photos using the +compression which is solved begin with FF FF 00 FF 96 64 50. If you get a +camera in which the raw data begins with the signature FF FF 00 FF 96 64 20 +then your camera uses the same compression algorithm as the Argus QuickClix. +That compression method is as yet unknown; a camera using it is a paperweight. + +Finally, one can not distinguish an Argus QuickClix from an Argus DC-1620 by +appearance. From the outside they are identical. Also they and several other +cameras use the same USB Vendor:Product number and do not give any +identification string after they are connected, either. So, unless the new +compression algorithm is unlocked, there is a real problem here. + +The Sakar CyberPix also uses this unknown compression, which is turned on by +default. The user must turn it off in order to get usable photos. See notes +about this camera, above. + +USABILITY OF DRIVER WITH GUI FRONTENDS + +The camera library presented here seems to work with gtkam as a frontend. To +use gtkam for the first time with any camera, you must choose the camera. +For this purpose, after starting gtkam click on "Camera." Then choose +"Add Camera." Then "Detect." Click on the name of the camera to get photos. +Gtkam creates its own thumbnails for cameras which do not offer them. These +cameras do not offer thumbnails. Sound files are "seen" by name, with no +thumbnail, and can otherwise be selected, deleted, or saved, just like image +files. The default option in gtkam is to save to $PWD. I like that. You can +change that behavior if you want, I understand. + +Digikam as a frontend works, too. But for some reason digikam seems unable to +display thumbnails from this camera. Anyone who knows what the problem is +here, please let me know. + +Flphoto works well, too, with no obvious glitches. Flphoto is also willing to +create thumbnails and does so without any tweaking. Sound files are handled +pretty much as in gtkam. You will get a whine on saving, that the file cannot +be put into the "album" but it will be saved to the chosen directory +nevertheless. Flphoto will not automatically save in $PWD but instead will +open the directory it used last time. I hate that. Someone out there must love +that behavior, though. Or it wouldn't be set up that way. Otherwise, flphoto +is really slick. + + +SAVING RAW PHOTO FILES AND USING THEM LATER (09-23-06) + +All raw photos downloaded from the camera come with a signature and a header +which is 12 bytes in length. This header has always been retained if the +photo is saved in raw format. The last few of the bytes in this header seem to +pertain to things like brightness and color balance (not usable information, +at this time, but may be in the future). The first bytes are always + +FF FF 00 FF 96 64 + +and the next byte (as received from the camera) is either 00 (if the image is +uncompressed) or is 50 if the image has been subjected to the "standard" +MR97310 compression or is 20 if the image has been subjected to the totally +unknown Argus QuickClix compression. + +Thus the header of any given image as it comes from the camera tells us in +byte 6 of the header whether the image is compressed or if compressed then +which algorithm has been used. That information uses the most significant nibble +of the "compression" byte. But if we do not do something, the pixel dimension of +the photo to be obtained from the raw file is not recorded. As the camera also +codes this information in one nibble, we place that nibble here, thus: + +Original raw signature pixel dim. Saved as Comp. +FF FF 00 FF 96 64 00 176x144 FF FF 00 FF 96 64 00 no + 352x288 FF FF 00 FF 96 64 02 no + 320x240 FF FF 00 FF 96 64 06 no + 640x480 FF FF 00 FF 96 64 08 no +FF FF 00 FF 96 64 50 176x144 FF FF 00 FF 96 64 50 yes + 352x288 FF FF 00 FF 96 64 52 yes + 320x240 FF FF 00 FF 96 64 56 yes + 640x480 FF FF 00 FF 96 64 58 yes + +(similar will happen if compression code is the bad 0x20, as well) + +With this small change, the raw file now contains all information within +itself that is needed for processing it. + + +FURTHER DETAILS + +Further details are given in "protocol.txt". These details have been obtained +through trial and error and are intended solely to meet the problems of +compatibility in other than a Microsoft Windows (trademark) environment. If +you would like to see this file and it is not included for some reason in a +"released" version of libgphoto2, then it can be found in the SVN source +repository. + +THE mars_white_balance() FUNCTION + +This function first of all does what its name implies. It also re-computes a +better gamma factor for the individual image, based upon internal +characteristics detected in the image, and does color enhancement. If you do +not like what it is doing, then you can turn it off by commenting out the line +in library.c where it is called, but I expect that the user will not want to +do that, because it seems to me that the image quality is much, much better. + + +WARRANTY? + +Absolutely none. Remember, I did not sell you this software. I have written +this driver for my own edification and in the sincere hope that it might help +you to use of your camera. Please see also the warranty clauses in the LGPL +license, which do not appear to me to conflict with my own statement here. \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/library.c new file mode 100644 index 00000000..5c3d87a9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/library.c @@ -0,0 +1,400 @@ +/* library.c + * + * Copyright (C) 2004 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include + +#include +#include +#include +#include +#include +#include + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +# define ngettext(String1,String2,Count) ((Count==1)?String1:String2) +#endif + +#include "mars.h" +#include + +#define GP_MODULE "mars" + +struct _CameraPrivateLibrary { + Info info[0x2000]; +}; + +static const struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {"Aiptek PenCam VGA+", GP_DRIVER_STATUS_TESTING, 0x08ca, 0x0111}, + {"Trust Spyc@m 100", GP_DRIVER_STATUS_TESTING, 0x08ca, 0x0110}, + {"Emprex PCD3600", GP_DRIVER_STATUS_EXPERIMENTAL, 0x093a, 0x010f}, + {"Vivitar Vivicam 55", GP_DRIVER_STATUS_EXPERIMENTAL, 0x093a, 0x010f}, + {"Haimei Electronics HE-501A", GP_DRIVER_STATUS_EXPERIMENTAL, 0x093a, 0x010e}, + {"Elta Medi@ digi-cam", GP_DRIVER_STATUS_EXPERIMENTAL, 0x093a, 0x010e}, + {"Precision Mini, Model HA513A", GP_DRIVER_STATUS_EXPERIMENTAL, 0x093a, 0x010f}, + {"Digital camera, CD302N", GP_DRIVER_STATUS_EXPERIMENTAL, 0x093a, 0x010e}, + {"INNOVAGE Mini Digital, CD302N", GP_DRIVER_STATUS_TESTING, 0x093a, 0x010e}, + {"Argus DC-1610", GP_DRIVER_STATUS_EXPERIMENTAL, 0x093a, 0x010f}, + {"Argus DC-1620", GP_DRIVER_STATUS_TESTING, 0x093a, 0x010f}, + {"Philips P44417B keychain camera", GP_DRIVER_STATUS_TESTING, 0x093a, 0x010e}, + {"Sakar Digital no. 77379", GP_DRIVER_STATUS_EXPERIMENTAL, 0x093a, 0x010f}, + {"ION digital camera", GP_DRIVER_STATUS_TESTING, 0x093a, 0x010f}, + {"Argus QuickClix", GP_DRIVER_STATUS_DEPRECATED, 0x093a, 0x010f}, + {"Pixart Gemini Keychain Camera", GP_DRIVER_STATUS_TESTING, 0x093a, 0x010e}, + {"Sakar Digital no. 56379 Spyshot", GP_DRIVER_STATUS_TESTING, 0x093a, 0x010e}, + {"Sakar no. 1638x CyberPix", GP_DRIVER_STATUS_EXPERIMENTAL, 0x093a, 0x010f}, + {"Shift3", GP_DRIVER_STATUS_EXPERIMENTAL, 0x093a, 0x010e}, + {"Vivitar Mini Digital Camera", GP_DRIVER_STATUS_TESTING, 0x093a, 0x010e}, + {NULL,0,0,0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Aiptek PenCam VGA+"); + return GP_OK; +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].name); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + if (a.status == GP_DRIVER_STATUS_EXPERIMENTAL) + a.operations = GP_OPERATION_NONE; + else + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_PREVIEW + | GP_FILE_OPERATION_RAW; + gp_abilities_list_append (list, a); + } + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + int num_pics = mars_get_num_pics(camera->pl->info); + + sprintf (summary->text,ngettext( + "Mars MR97310 camera.\nThere is %i photo in it.\n", + "Mars MR97310 camera.\nThere are %i photos in it.\n", + num_pics), num_pics + ); + return GP_OK; +} + +static int camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy(manual->text, + _( + "This driver supports cameras with Mars MR97310 chip (and direct\n" + "equivalents ??Pixart PACx07?\?).\n" + "These cameras do not support deletion of photos, nor uploading\n" + "of data.\n" + "Decoding of compressed photos may or may not work well\n" + "and does not work equally well for all supported cameras.\n" + "Photo data processing for Argus QuickClix is NOT SUPPORTED.\n" + "If present on the camera, video clip frames are downloaded \n" + "as consecutive still photos.\n" + "For further details please consult libgphoto2/camlibs/README.\n" + )); + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Mars MR97310 camera library\n" + "Theodore Kilgore \n")); + return GP_OK; +} + +/*************** File and Downloading Functions *******************/ + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i = 0, n; + char name[30]; + + n = mars_get_num_pics(camera->pl->info); + for (i=0; i < n; i++) { + if ((camera->pl->info[8*i]&0x0f) == 1) { + sprintf (name, "mr%03isnd.wav", i+1); + } else + sprintf (name, "mr%03ipic.ppm", i+1); + gp_list_append (list, name, NULL); + } + return GP_OK; +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + info->file.fields = GP_FILE_INFO_TYPE; + strcpy (info->file.type, GP_MIME_PPM); + + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int w=0, h = 0, b = 0, k; + unsigned char *data; + unsigned char *ppm; + unsigned char *p_data = NULL; + unsigned char gtable[256], photo_code, res_code, compressed; + unsigned char audio = 0; + unsigned char *ptr; + int size = 0, raw_size = 0; + float gamma_factor; + + GP_DEBUG ("Downloading pictures!\n"); + + /* These are cheap cameras. There ain't no EXIF data. */ + if (GP_FILE_TYPE_EXIF == type) return GP_ERROR_FILE_EXISTS; + + + /* Get the number of the photo on the camera */ + k = gp_filesystem_number (camera->fs, "/", filename, context); + /* Determine the resolution setting from the PAT table */ + photo_code = camera->pl->info[8*k]; + res_code = photo_code & 0x0f; + /* Compression presence or absence is seen here, and is given again + * by the camera, in the header of raw data for each photo. + */ + compressed = (photo_code >> 4) & 2; + switch (res_code) { + case 0: w = 176; h = 144; break; + case 1: audio = 1; break; + case 2: w = 352; h = 288; break; + case 6: w = 320; h = 240; break; + case 8: w = 640; h = 480; break; + default: w = 640; h = 480; + } + + GP_DEBUG ("height is %i\n", h); + + b = mars_get_pic_data_size(camera->pl->info, k); + raw_size = b; + /* Now increase b from "actual size" to _downloaded_ size. */ + b = ((b+ 0x1b0)/0x2000 + 1) * 0x2000; + + data = malloc (b); + if (!data) return GP_ERROR_NO_MEMORY; + memset (data, 0, b); + GP_DEBUG ("buffersize= %i = 0x%x butes\n", b,b); + + mars_read_picture_data (camera, camera->pl->info, + camera->port, (char *)data, b, k); + /* The first 128 bytes are junk, so we toss them.*/ + memmove(data, data+128, b - 128); + if (audio) { + p_data = malloc (raw_size+256); + if (!p_data) {free (data); return GP_ERROR_NO_MEMORY;} + memset (p_data, 0, raw_size+256); + sprintf ((char *)p_data, "RIFF"); + p_data[4] = (raw_size+36)&0xff; + p_data[5] = ((raw_size+36)>>8)&0xff; + p_data[6] = ((raw_size+36)>>16)&0xff; + p_data[7] = ((raw_size+36)>>24)&0xff; + sprintf ((char *)p_data+8, "WAVE");\ + sprintf ((char *)p_data+12, "fmt "); + p_data[16] = 0x10; + p_data[20] = 1; + p_data[22] = 1; + p_data[24] = 0x40; + p_data[25] = 0x1F; + p_data[28] = 0x40; + p_data[29] = 0x1F; + p_data[32] = 1; + p_data[34] = 8; + sprintf ((char *)p_data+36, "data"); + p_data[40] = (raw_size)&0xff; + p_data[41] = ((raw_size)>>8)&0xff; + p_data[42] = ((raw_size)>>16)&0xff; + p_data[43] = ((raw_size)>>24)&0xff; + memcpy (p_data+44, data, raw_size); + gp_file_set_mime_type(file, GP_MIME_WAV); + gp_file_set_data_and_size(file, (char *)p_data , raw_size+44); + return GP_OK; + } + + if (GP_FILE_TYPE_RAW == type) { + + /* We keep the SOF marker. Actual data starts at byte 12. + * Byte 6, upper nibble, is a code for compression mode. We + * use the lower nibble to store the resolution code. + * Then it is possible to know "everything" from a raw file. + * Purpose of the info in bytes 7 thru 11 is currently unknown. + * A "raw" audio file will also have the WAV header prepended. + * So do nothing to an audio file. + */ + if (!audio) + data[6] = (data[6] | res_code); + gp_file_set_mime_type(file, GP_MIME_RAW); + gp_file_set_data_and_size(file, (char *)data , raw_size ); + return GP_OK; + } + + p_data = malloc (w * h); + if (!p_data) {free (data); return GP_ERROR_NO_MEMORY;} + memset (p_data, 0, w * h); + + if (compressed) { + mars_decompress (data + 12, p_data, w, h); + } + else memcpy (p_data, data + 12, w*h); + gamma_factor = sqrt((float)data[7]/100.); + if (gamma_factor <= .60) + gamma_factor = .60; + free(data); + + /* Now put the data into a PPM image file. */ + + ppm = malloc (w * h * 3 + 256); /* Data + header */ + if (!ppm) {free (p_data); return GP_ERROR_NO_MEMORY;} + memset (ppm, 0, w * h * 3 + 256); + sprintf ((char *)ppm, + "P6\n" + "# CREATOR: gphoto2, Mars library\n" + "%d %d\n" + "255\n", w, h); + ptr = ppm + strlen ((char *)ppm); + size = strlen ((char *)ppm) + (w * h * 3); + GP_DEBUG ("size = %i\n", size); + gp_ahd_decode (p_data, w , h , ptr, BAYER_TILE_RGGB); + gp_gamma_fill_table (gtable, gamma_factor ); + gp_gamma_correct_single (gtable, ptr, w * h); + mars_white_balance (ptr, w*h, 1.4, gamma_factor); + gp_file_set_mime_type (file, GP_MIME_PPM); + gp_file_set_data_and_size (file, (char *)ppm, size); + free (p_data); + + return GP_OK; +} + +/*************** Exit and Initialization Functions ******************/ + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("Mars camera_exit"); + mars_reset(camera->port); + gp_port_close(camera->port); + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func +}; + +int +camera_init(Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int ret = 0; + + /* First, set up all the function pointers */ + camera->functions->manual = camera_manual; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + + GP_DEBUG ("Initializing the camera\n"); + ret = gp_port_get_settings(camera->port,&settings); + if (ret < 0) return ret; + + switch (camera->port->type) { + case GP_PORT_SERIAL: + return ( GP_ERROR ); + case GP_PORT_USB: + settings.usb.config = 1; + settings.usb.altsetting = 0; + settings.usb.interface = 0; + /* settings.usb.inep = 0x82; */ + /* inep 0x83 used for commands. Switch to 0x82 for data! */ + settings.usb.inep = 0x83; + settings.usb.outep = 0x04; + break; + default: + return ( GP_ERROR ); + } + + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) return ret; + + GP_DEBUG("interface = %i\n", settings.usb.interface); + GP_DEBUG("inep = %x\n", settings.usb.inep); + GP_DEBUG("outep = %x\n", settings.usb.outep); + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + /* Connect to the camera */ + mars_init (camera,camera->port, camera->pl->info); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/mars.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/mars.c new file mode 100644 index 00000000..9d1bd1a9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/mars.c @@ -0,0 +1,550 @@ +/* mars.c + * + * Copyright (C) 2004 Theodore Kilgore + * + * white_balance() Copyright (C) 2008 Theodore Kilgore and Amauri Magagna. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include "gphoto2-endian.h" + +#include "mars.h" + +#define GP_MODULE "mars" + +#define INIT 0xb5 +#define GET_DATA 0x0f + +static int +m_read (GPPort *port, char *data, int size) +{ + int ret; + ret = gp_port_write(port, "\x21", 1); + if (ret < GP_OK) return ret; + + return gp_port_read(port, data, 16); +} + +static int +m_command (GPPort *port, char *command, int size, char *response) +{ + gp_port_write(port, command, size); + return m_read(port, response, 16); +} + +static int mars_routine (Info *info, GPPort *port, char param, int n); + +int +mars_init (Camera *camera, GPPort *port, Info *info) +{ + char c[16]; + unsigned char status = 0; + memset(info,0, sizeof(*info)); + memset(c,0,sizeof(c)); + GP_DEBUG("Running mars_init\n"); + + /* Init routine done twice, usually. First time is a dry run. But if + * camera reports 0x02 it is "jammed" and we must clear it. + */ + + m_read(port, c, 16); + if (c[0] == 0x02) { + gp_port_write(port, "\x19", 1); + gp_port_read(port, c, 16); + } + else { + status = mars_routine (info, port, INIT, 0); + GP_DEBUG("status = 0x%x\n", status); + } + + /* Not a typo. This _will_ download the config data ;) */ + mars_read_picture_data (camera, info, port, (char *)info, 0x2000, 0); + + /* Removing extraneous line(s) of data. See "protocol.txt" */ + + if ((info[0] == 0xff)&& (info[1] == 0)&&(info[2]==0xff)) + memmove(info, info + 16, 0x1ff0); /* Saving config */ + else + memmove(info, info + 144, 0x1f70); /* Saving config */ + + GP_DEBUG("Leaving mars_init\n"); + return GP_OK; +} + +int +mars_get_num_pics (Info *info) +{ + unsigned int i = 0; + + for (i = 0; i < 0x3fe; i++) + if ( !(0xff - info[8*i]) ) { + GP_DEBUG ( "i is %i\n", i); + memcpy(info+0x1ff0, "i", 1); + return i; + } + memcpy(info+0x1ff0, "0", 1); + return 0; +} + + +int +mars_get_pic_data_size (Info *info, int n) +{ + return (info[8*n+6]*0x100 + info[8*n+5])*0x100 + info[8*n+4]; +} + +static int +set_usb_in_endpoint (Camera *camera, int inep) +{ + GPPortSettings settings; + gp_port_get_settings ( camera ->port, &settings); + settings.usb.inep = inep; + GP_DEBUG("inep reset to %02X\n", inep); + return gp_port_set_settings ( camera ->port, settings); +} + + +static int +mars_read_data (GPPort *port, char *data, int size) +{ + int MAX_BULK = 0x2000; + int len = 0; + while(size > 0) { + len = (size>MAX_BULK)?MAX_BULK:size; + gp_port_read (port, data, len); + data += len; + size -= len; + } + + return 1; +} + +int +mars_read_picture_data (Camera *camera, Info *info, GPPort *port, + char *data, int size, int n) + +{ + unsigned char c[16]; + + memset(c,0,sizeof(c)); + /*Initialization routine for download. */ + mars_routine (info, port, GET_DATA, n); + /*Data transfer begins*/ + set_usb_in_endpoint (camera, 0x82); + mars_read_data (port, data, size); + set_usb_in_endpoint (camera, 0x83); + return GP_OK; +} + +int +mars_reset (GPPort *port) +{ + gp_port_write(port, "\x19\x54", 2); + return GP_OK; +} + +static void precalc_table(code_table_t *table) +{ + int i; + int is_abs, val, len; + + for (i = 0; i < 256; i++) { + is_abs = 0; + val = 0; + len = 0; + if ((i & 0x80) == 0) { + /* code 0 */ + val = 0; + len = 1; + }else if ((i & 0xE0) == 0xC0) { + /* code 110 */ + val = -3; + len = 3; + }else if ((i & 0xE0) == 0xA0) { + /* code 101 */ + val = +3; + len = 3; + }else if ((i & 0xF0) == 0x80) { + /* code 1000 */ + val = +8; + len = 4; + }else if ((i & 0xF0) == 0x90) { + /* code 1001 */ + val = -8; + len = 4; + }else if ((i & 0xF0) == 0xF0) { + /* code 1111 */ + val = -20; + len = 4; + }else if ((i & 0xF8) == 0xE0) { + /* code 11100 */ + val = +20; + len = 5; + }else if ((i & 0xF8) == 0xE8) { + /* code 11101xxxxx */ + is_abs = 1; + val = 0; /* value is calculated later */ + len = 5; + } + table[i].is_abs = is_abs; + table[i].val = val; + table[i].len = len; + } +} + +#define CLAMP(x) ((x)<0?0:((x)>255)?255:(x)) +#define GET_CODE addr = inp + (bitpos >> 3); \ + code = (addr[0] << (bitpos & 7)) | (addr[1] >> (8 - (bitpos & 7))) + + +int mars_decompress (unsigned char *inp, unsigned char *outp, int width, + int height) +{ + int row, col; + unsigned char code; + int val; + code_table_t table[256]; + unsigned char *addr; + int bitpos; + unsigned char lp=0,tp=0,tlp=0,trp=0; + /* First calculate the Huffman table */ + precalc_table(table); + + bitpos = 0; + + /* main decoding loop */ + for (row = 0; row < height; row++) { + col = 0; + + /* first two pixels in first two rows are stored as raw 8-bit */ + if (row < 2) { + GET_CODE; + bitpos += 8; + *outp++ = code; + + GET_CODE; + bitpos += 8; + *outp++ = code; + + col += 2; + } + + while (col < width) { + /* get bitcode */ + GET_CODE; + /* update bit position */ + bitpos += table[code].len; + + /* calculate pixel value */ + if (table[code].is_abs) { + /* get 5 more bits and use them as absolute value */ + GET_CODE; + val = (code & 0xF8); + bitpos += 5; + + }else { + /* value is relative to top or left pixel */ + val = table[code].val; + lp = outp[-2]; + if (row > 1) { + tlp = outp[-2*width-2]; + tp = outp[-2*width]; + if (col < width-2) + trp = outp[-2*width+2]; + } + if (row < 2) { + /* top row: relative to left pixel */ + val += lp; + }else if (col < 2) { + /* left column: relative to top pixel */ + /* initial estimate */ + val += (tp + trp)/2; + }else if (col > width - 3) { + /* left column: relative to top pixel */ + val += (tp + lp + tlp +1)/3; + /* main area: average of left and top pixel */ + }else { + /* initial estimate for predictor */ + tlp>>=1; + trp>>=1; + val += (lp + tp + tlp + trp +1)/3; + } + } + /* store pixel */ + *outp++ = CLAMP(val); + col++; + } + } + return GP_OK; +} + +static int +mars_routine (Info *info, GPPort *port, char param, int n) +{ + char c[16]; + char start[2] = {0x19, 0x51}; + char do_something[2]; + char address1[2]; + char address2[2]; + char address3[2]; + char address4[2]; + char address5[2]; + char address6[2]; + + do_something[0]= 0x19; + do_something[1]=param; + + /* See protocol.txt for my theories about what these mean. */ + address1[0] = 0x19; + address1[1] = info[8*n+1]; + address2[0] = 0x19; + address2[1] = info[8*n+2]; + address3[0] = 0x19; + address3[1] = info[8*n+3]; + address4[0] = 0x19; + address4[1] = info[8*n+4]; + address5[0] = 0x19; + address5[1] = info[8*n+5]; + address6[0] = 0x19; + address6[1] = info[8*n+6]; + + + memset(c,0,sizeof(c)); + + /*Routine used in initialization, photo download, and reset. */ + m_read(port, c, 16); + m_command(port, start, 2, c); + m_command(port, do_something, 2, c); + m_command(port, address1, 2, c); + + c[0] = 0; + gp_port_write(port, address2, 2); + /* Moving the memory cursor to the given address? */ + while (( c[0] != 0xa) ) { + if (m_read(port, c, 16) < 16) + break; + } + + m_command(port, address3, 2, c); + m_command(port, address4, 2, c); + m_command(port, address5, 2, c); + m_command(port, address6, 2, c); + gp_port_write(port, "\x19", 1); + gp_port_read(port, c , 16); + /* Next thing is to switch the inep. Some cameras need a pause here */ + usleep (MARS_SLEEP); + + return(c[0]); +} + + +/* + * ========= White Balance / Color Enhance / Gamma adjust =============== + * + * Get histogram for each color plane + * Expand to reach 0.5% of white dots in image + * + * Get new histogram for each color plane + * Expand to reach 0.5% of black dots in image + * + * Get new histogram + * Calculate and apply gamma correction + * + * if not a dark image: + * For each dot, increases color separation + * + * ====================================================================== + */ + +int +histogram (unsigned char *data, unsigned int size, int *htable_r, int *htable_g, int *htable_b) +{ + int x; + /* Initializations */ + for (x = 0; x < 0x100; x++) { + htable_r[x] = 0; + htable_g[x] = 0; + htable_b[x] = 0; + } + /* Building the histograms */ + for (x = 0; x < (size * 3); x += 3) + { + htable_r[data[x+0]]++; /* red histogram */ + htable_g[data[x+1]]++; /* green histogram */ + htable_b[data[x+2]]++; /* blue histogram */ + } + return 0; +} + +int +mars_white_balance (unsigned char *data, unsigned int size, float saturation, + float image_gamma) +{ + int x, r, g, b, max, d; + double r_factor, g_factor, b_factor, max_factor; + int htable_r[0x100], htable_g[0x100], htable_b[0x100]; + unsigned char gtable[0x100]; + double new_gamma, gamma=1.0; + + /* ------------------- GAMMA CORRECTION ------------------- */ + + histogram(data, size, htable_r, htable_g, htable_b); + x = 1; + for (r = 48; r < 208; r++) + { + x += htable_r[r]; + x += htable_g[r]; + x += htable_r[r]; + } + new_gamma = sqrt((double) (x * 1.5) / (double) (size * 3)); + x=0; + GP_DEBUG("Provisional gamma correction = %1.2f\n", new_gamma); + /* Recalculate saturation factor for later use. */ + saturation=saturation*new_gamma*new_gamma; + GP_DEBUG("saturation = %1.2f\n", saturation); + if(new_gamma >= 1.0) + gamma = new_gamma; + else + gamma = image_gamma; + + GP_DEBUG("Gamma correction = %1.2f\n", gamma); + gp_gamma_fill_table(gtable, gamma); + + /* ---------------- BRIGHT DOTS ------------------- */ + max = size / 200; + histogram(data, size, htable_r, htable_g, htable_b); + + for (r=0xfe, x=0; (r > 32) && (x < max); r--) + x += htable_r[r]; + for (g=0xfe, x=0; (g > 32) && (x < max); g--) + x += htable_g[g]; + for (b=0xfe, x=0; (b > 32) && (x < max); b--) + x += htable_b[b]; + r_factor = (double) 0xfd / r; + g_factor = (double) 0xfd / g; + b_factor = (double) 0xfd / b; + + max_factor = r_factor; + if (g_factor > max_factor) max_factor = g_factor; + if (b_factor > max_factor) max_factor = b_factor; + + if (max_factor >= 2.5) { + r_factor = (r_factor / max_factor) * 2.5; + g_factor = (g_factor / max_factor) * 2.5; + b_factor = (b_factor / max_factor) * 2.5; + } + GP_DEBUG("White balance (bright): r=%1d, g=%1d, b=%1d, fr=%1.3f, fg=%1.3f, fb=%1.3f\n", r, g, b, r_factor, g_factor, b_factor); + if (max_factor <= 2.5) { + for (x = 0; x < (size * 3); x += 3) + { + d = (data[x+0]<<8) * r_factor; + d >>=8; + if (d > 0xff) { d = 0xff; } + data[x+0] = d; + d = (data[x+1]<<8) * g_factor; + d >>=8; + if (d > 0xff) { d = 0xff; } + data[x+1] = d; + d = (data[x+2]<<8) * b_factor; + d >>=8; + if (d > 0xff) { d = 0xff; } + data[x+2] = d; + } + } + /* ---------------- DARK DOTS ------------------- */ + max = size / 200; /* 1/200 = 0.5% */ + histogram(data, size, htable_r, htable_g, htable_b); + + for (r=0, x=0; (r < 96) && (x < max); r++) + x += htable_r[r]; + for (g=0, x=0; (g < 96) && (x < max); g++) + x += htable_g[g]; + for (b=0, x=0; (b < 96) && (x < max); b++) + x += htable_b[b]; + + r_factor = (double) 0xfe / (0xff-r); + g_factor = (double) 0xfe / (0xff-g); + b_factor = (double) 0xfe / (0xff-b); + + max_factor = r_factor; + if (g_factor > max_factor) max_factor = g_factor; + if (b_factor > max_factor) max_factor = b_factor; + + if (max_factor >= 1.15) { + r_factor = (r_factor / max_factor) * 1.15; + g_factor = (g_factor / max_factor) * 1.15; + b_factor = (b_factor / max_factor) * 1.15; + } + GP_DEBUG( + "White balance (dark): r=%1d, g=%1d, b=%1d, fr=%1.3f, fg=%1.3f, fb=%1.3f\n", + r, g, b, r_factor, g_factor, b_factor); + + for (x = 0; x < (size * 3); x += 3) + { + d = (int) 0xff08-(((0xff-data[x+0])<<8) * r_factor); + d >>= 8; + if (d < 0) { d = 0; } + data[x+0] = d; + d = (int) 0xff08-(((0xff-data[x+1])<<8) * g_factor); + d >>= 8; + if (d < 0) { d = 0; } + data[x+1] = d; + d = (int) 0xff08-(((0xff-data[x+2])<<8) * b_factor); + d >>= 8; + if (d < 0) { d = 0; } + data[x+2] = d; + } + + /* ------------------ COLOR ENHANCE ------------------ */ + + if(saturation > 0.0) { + for (x = 0; x < (size * 3); x += 3) + { + r = data[x+0]; g = data[x+1]; b = data[x+2]; + d = (int) (r + g + b) /3.; + if ( r > d ) + r = r + (int) ((r - d) * (0xff-r)/(0x100-d) * saturation); + else + r = r + (int) ((r - d) * (0xff-d)/(0x100-r) * saturation); + if (g > d) + g = g + (int) ((g - d) * (0xff-g)/(0x100-d) * saturation); + else + g = g + (int) ((g - d) * (0xff-d)/(0x100-g) * saturation); + if (b > d) + b = b + (int) ((b - d) * (0xff-b)/(0x100-d) * saturation); + else + b = b + (int) ((b - d) * (0xff-d)/(0x100-b) * saturation); + data[x+0] = CLAMP(r); + data[x+1] = CLAMP(g); + data[x+2] = CLAMP(b); + } + } + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/mars.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/mars.h new file mode 100644 index 00000000..b4a3f504 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/mars.h @@ -0,0 +1,54 @@ +/* mars.h + * + * Copyright (C) 2003 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __mars_H__ +#define __mars_H__ + +#ifdef HAVE_UNISTD_H +# include +#endif +#include + +typedef unsigned char Info; + +/* Huffman table for decompressing the compressed mode */ + +typedef struct { + int is_abs; + int len; + int val; +} code_table_t; + +#define MARS_SLEEP 10000 + +int mars_init (Camera *camera, GPPort *port, Info *info); +int mars_reset (GPPort *port); +int mars_get_num_pics (Info *info); +int mars_get_pic_data_size (Info *info, int n); +int mars_read_picture_data (Camera *camera, Info *info, + GPPort *port, char *data, int size, int n); + +int mars_decompress (unsigned char *inp ,unsigned char *outp, int w, int h); +int histogram (unsigned char *data, unsigned int size, int *htable_r, + int *htable_g, int *htable_b); +int mars_white_balance (unsigned char *data, unsigned int size, float saturation, + float image_gamma); +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/protocol.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/protocol.txt new file mode 100644 index 00000000..e7dc417f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mars/protocol.txt @@ -0,0 +1,270 @@ +CONNECTION AND COMMAND PROTOCOLS OF THE MARS MR97310 +Theodore Kilgore April, 2004. + +(This camera library and all files in it carry the LGPL license; +see any of the source files for a more complete statement.) + + +Peculiarly, the MR97310 camera uses bulk endpoint 0x04 (out) to receive +commands, sending back its responses over bulk endpoint 0x83 (in). Then, it +uses bulk endpoint 0x82 (in) to send data to the computer. The driver has to +switch the pipe appropriately. A command is a bulk write operation of one or +two bytes, with the first byte being 0x19. All requests to read a block or +blocks of data are performed by sending only the single byte 0x19. Otherwise, +the second byte can apparently be either a command, or part of a sequence +giving information. + +A command is usually followed by a read request for confirmation. The read +request is of a bulk write of the one byte 0x21. The camera responds by +sending 16 bytes, in which only the first byte seems significant. + +When the single byte 0x19 is sent with no second byte, immediate intention to +download data is signalled. The 0x19 which is sent must be followed by an 0x21 +read request for confirmation. If the response is correct (must begin with +0xa8), then the pipe must be switched to 0x82 and the download may be carried +out by repetition of + +gp_port_read(port,data,size); (where maximum size is 0x2000), + +until the intended amount of data has been read. After the data has been +successfully read, the pipe must be switched back to 0x83 for the next +command sequence. + +To summarize: bulk inep 0x83 is for receiving responses to commands; bulk +inep 0x82 is for receiving data, and bulk outep 0x04 is for sending commands. +The camera also has bulk pipe 0x07, which one would reasonably expect could be +used to write data to the camera. However, it is not obvious how to do that. +It may not be possible. + +The observed command sequences sent to the camera are: + +19 51 (starts the initialization sequence, any data download +initialization sequence, and the exit sequence) + +19 b5 (appears during initialization; could also be part of a memory +address) + +19 0f (flag instructing to move to a memory location which will be +sent to the camera in immediately subsequent communications) + +19 54 (computer's acknowledgement to camera that a data download has just +been successfully completed; causes much beeping; mostly not used here) + +19 ba (flag indicating that memory location should be reset, on exit; +followed by instructions to reset memory pointer to 00 00). + +Other things are instructions to go to a memory location. For example, to +download the first photo in the camera, which begins at memory block 0x400, +the sequence is + +send 19 0f +send 21, read response +send 19 00 +send 21, read response +send 19 04 +send 21, read response; do this repeatedly until first byte of response is +0x0a, then proceed with next command. My conjecture is that this sequence of +read requests is causing the memory pointer to move to the right place, +which is registered as done when the 0x0a comes up. + +After the memory pointer has been successfully moved, the camera must be +told several other things, by sending one byte at a time, ending with an +indication of how big is the photo to be downloaded. For example, if a photo +is 640x480 pixels, equal to 4b000 bytes, then the sequence + +19 b0 +21, read response +19 04 +21, read response + +must be sent. Where this comes from is presented in the next section. + + +THE CONFIGURATION DATA + +The MR973120 camera uses a block of configuration data of size 0x2000, which +is downloaded during the initialization of the camera. Here is a sample of the +first few, relevant lines from the configuration data. We have 9 photos in the +camera. + + +0000 ff 00 ff 00 ff 00 ff 01-00 00 00 00 00 00 00 00 +0010 08 00 04 00 0c b0 04 cc-86 13 9a 00 0c 2c 01 6c +0020 06 a6 bf 00 0c 2c 01 a4-88 39 e5 00 0c b0 04 66 +0030 06 4c 7b 01 0c 2c 01 07-86 df a0 01 0c 2c 01 3f +0040 08 72 c6 01 0c b0 04 01-88 85 5c 02 0c b0 04 2b +0050 08 98 f2 02 0c b0 04 54-ff ff ff ff ff ff ff ff +0060 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff + + +Line 0000 is always the same (or should be -- see next section). +The first block of 8 bytes seems to be a marker signifying the configuration +block. The second eight-byte block may, it will become later apparent, refer +to some data about the block itself -- its type and its memory +location, perhaps. This would seem paradoxical since one can not know the +configuration data before downloading it, but not all in life is logical. + + +Lines 0010 through 0050 give data about the photos. There are nine photos in +the camera in this sample. When we reach byte 0x58 and begin repeating 0xff, +we finished reading about these nine photos. Thus, each block of 8 bytes says +something about a photo, until the repetition of 0xff begins. After this +the rest of the configuration data is simply junk. + +Let's rearrange the sample, throwing away the unhelpful line 0000 and also +terminating after byte 0x57: + +photo 1 08 00 04 00 0c b0 04 cc + 2 86 13 9a 00 0c 2c 01 6c + 3 06 a6 bf 00 0c 2c 01 a4 + 4 88 39 e5 00 0c b0 04 66 + 5 06 4c 7b 01 0c 2c 01 07 + 6 86 df a0 01 0c 2c 01 3f + 7 08 72 c6 01 0c b0 04 01 + 8 88 85 5c 02 0c b0 04 2b + 9 08 98 f2 02 0c b0 04 54 + +(the columns in this table are numbered from 0 to 7 in what follows) + +In this pattern, the entry in the zeroeth column is a code which gives the +size of the photo and indicates if there is compression, or not. In +this particular example, none of the photos are compressed. The second digit of +this byte indicates the size: + + 0 -> 176x144 + 2 -> 352x288 + 6 -> 320x240 + 8 -> 640x480 + +The first digit of this byte indicates presence or absence of compression. If +it is 2, 3, 6, 7, a, b, d, or f there is compression; otherwise the photo +is not compressed. For a photo of given size and compression status, the first +digit is also dependent upon the location in the line of config data. If in +the first position on the line, then that digit is less than 8, and if in the +second position then 8 is added. This is seen in our example, where 08 and 88 +both signify 640x480 uncompressed, and 06 and 86 both signify 320x240 +uncompressed. + +The entries in columns 1, 2, and 3 of our rearranged data seem to indicate the +storage location, in (hexadecimal) little endian format. Comparison of these +numbers to the sizes of photos and to the size of the configuration data and +to the advertised 8 Meg size of the RAM in the camera would seem to imply +that the memory is addressed as storage blocks, or words, of size 8 bytes. For +example, the configuration data, of size 0x2000, would require +0x2000/8 = 0x400 storage blocks, and the beginning point for the first photo is +listed as location 0x400. + +The entries in columns 4 through 6 indicate, again in little endian form, the +data size for the given photo, in bytes. The actual data size to be requested +and downloaded from the camera needs to be tne next integer multiple of 0x2000. + + +Finally, for the seventh column there is at this time no obvious +interpretation. + +A DATA-SHIFTING PROBLEM + +An example of what the same config data can look like if gphoto2 (or the OEM +camera software, too) is run twice without replugging the camera in between, +is as follows: + + +0000 5c 73 60 73 5c 71 5d 6e-5c 72 5d 6c 5c 70 5b 6e +0010 5d 71 5b 71 5e 71 5c 71-5c 72 5d 6e 5c 72 5e 71 +0020 5c 6f 59 6f 58 67 49 4c-38 43 3a 4c 43 59 49 5b +0030 4b 5d 51 64 54 66 54 6b-58 6b 56 66 52 64 53 64 +0040 56 6d 55 66 57 6a 56 6a-59 6d 57 6b 58 6a 59 6d +0050 59 6c 59 67 58 6b 56 6b-57 6a 56 6a 54 63 44 49 +0060 31 3a 2c 38 2c 39 2c 39-2e 38 30 39 2a 36 2a 37 +0070 2a 32 2a 34 26 30 29 31-1f 2d 21 29 1e 26 1c 25 +0080 ff 00 ff 00 ff 00 ff 01-00 00 00 00 00 00 00 00 +0090 08 00 04 00 0c b0 04 cc-86 13 9a 00 0c 2c 01 6c +00a0 06 a6 bf 00 0c 2c 01 a4-88 39 e5 00 0c b0 04 66 +00b0 06 4c 7b 01 0c 2c 01 07-86 df a0 01 0c 2c 01 3f +00c0 08 72 c6 01 0c b0 04 01-88 85 5c 02 0c b0 04 2b +00d0 08 98 f2 02 0c b0 04 54-ff ff ff ff ff ff ff ff +00e0 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff + + +For some unknown reason, this data shift occurs if the camera is not +replugged, but the data is always offset either not at all or by exactly 128 +bytes. Thus the problem can apparently be overcome by checking whether +ff 00 ff 00 occurs on line 0000 or on line 0080. + +For similarly unknown reasons, the same offset seems to occur at the +beginning of every download of a photo. One gets 128 bytes of pure junk, +followed by 12 bytes which include a signature, and only then comes the data. + + +UPDATES and REVISIONS: + +This section is intended to give further explanations of some things which +are otherwise mentioned briefly, in the ChangeLog. + +1. 2004-05-18 ID number of Emprex PDC3800 contributed by Hisham Muhammad +. + +2. 2004-06-09 Compatibility with gtkam ensured; method of adjusting the gamma +setting of a photo introduced, based upon photo's config data. + +3. 2004-09-04 The Vivitar Vivicam 55 has the same USB ID as the Emprex PDC3800 +and presumably is therefore the same camera. Turned out that the camera is +very finicky about initialization. Extensive efforts to make this camera +actually to work resulted in major revisions to the init sequence. Special +credit to Sebastien Soilen for sustained, patient, and +thorough testing. + +4. 2004-10-26 Support for two new cameras with new ID of 0x093a:0x10e, which use +two new resolution settings, of 352x288 and 176x144. The new codes for these +resolution settings are: + +352x288, uncompressed 0x02 or 0x82 +352x288, compressed 0x22 or 0xa2 +176x144, uncompressed 0x0 or 0x80 +176x144, compressed 0x20 or 0xa0 + +Credits to + +Scott MacKenzie for reporting his camera and for +submitting the patch which makes it work. +Nils Naumann for reporting his camera 24 hours after Scott, +and for testing Scott's patch. + +5. 2005-06-12 Code streamlined considerably. There are several more cameras +out there which I call the "new generation." Some of these cameras are +compressed-mode only, and some of them have a flashlamp. the flashlamp seems +to need new codes for the photos sizes, starting with 1 or 9 (uncompressed), or +3 or b (compressed). The "routine" function needed to be rewritten, and it +is also discovered that the proper data size for the download of a photo is +always an integer multiple of 0x2000. Anything else, some of the new cameras +will freeze. The old Aiptek Pencam VGA+ seems to work better this way, too. +Some new cameras such as the Argus DC-1620 have the same Vendor:Product IDs +as older cameras. + +6. 2005-09-12 Some minor changes to the init routine make it more reliable +across the various different cameras. The big change is the support for the +compression mode. I got lucky by noticing that the camlibs/sonix routine +almost works here. After this, credit to + +Bertrik Sikkens for figuring out the rest of the codec, +which still needed a lot of tweaking and smoothing after that. The camera uses +a quite lossy differential Huffman encoding, and apparently due to the data +loss the decompression can get unstable. + +Michel Xhaard for testing. + +7. 2006-02-08 "Tweaking and smoothing" of decompression carried out, for +the most part successfully. Several new cameras added. One of them is the +Argus QuickClix, which uses a *different* compression algorithm! I hope +nobody else buys one, unless the purchaser is a decompression expert. + +8. 2006-09-23 A freeze-up using a Vivitar Vivicam 55 has been reported by +conon , apparently due to a timing issue while switching +the USB inep from 0x83 to 0x82. Conon also proposed a fix, in the form of a +usleep() command. He reports that this works with his camera, and after +extensive testing it does not seem to impair the functioning of other MR97310 +cameras. Patch adopted. Conon has also submitted some simplifications of the +decompression algorithm, which seem to work well. These changes also +incorporated in current version. +NOTE: Vivitar in fact has discontinued this camera. They now offer a +Vivicam 55 which uses the SQ905C chip instead (see camlibs/digigr8)! \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/Makefile-files new file mode 100644 index 00000000..5cd6f5d2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/Makefile-files @@ -0,0 +1,3 @@ +# -*- Makefile -*- + +EXTRA_DIST += minolta/NEWER_MINOLTAS diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/NEWER_MINOLTAS b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/NEWER_MINOLTAS new file mode 100644 index 00000000..2fc91343 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/NEWER_MINOLTAS @@ -0,0 +1,67 @@ +UPDATE: + +Here is an update about what is written below. Most recent Minolta +digital camera now use USB Mass Storage device protocol for USB +connectivity. That means that they can be mounted as a disk device +within the OS without additionnal support (Linux 2.4.x, *BSD, +etc.). This is a great step forward to having these camera universally +supported without requiring complex and non-standard device driver +support. + +This list includes Dimage 5, Dimage 7, Dimage X and probably many +other. I recommend to consult + for an up to date +compatibility chart. + +The bottom line, the text below is probably now really obsolete. + +-- Hubert Figuiere - June 19th 2002 + + +----------------------------------------------------------------------------- + +Below is a message from Minolta regarding the dim possibility of them +releasing the protocols for their newer cameras. In short, the official line +is to buy a flash reader when not using a supported system. + + + + +Date: Tue, 02 Jan 2001 15:42:42 "GMT" +From: MinoltaUSA +To: Customer Service +Subject: FAQs + +Dear Customer, + +The FAQ you submitted on 12/28/00 has been resolved. + +Question: + Hello, + + Approximately eighteen months ago, I contacted Minolta for +information regarding the serial transfer protocol for the Dimage V, +with the intent of writing a program that would work under Linux and +other Unix variants. Minolta was kind enough to provide this to me, +after I had signed an NDA, but was told that I could "share this +information freely with the Linux community". Since then, I have written +more than one program to access the camera, and my code has since been +included in a very popular Linux program called gphoto, which aims to +support cameras from many different vendors. More information on gphoto +is available at http://www.gphoto.org/ . + + As I am the only developer currently supporting a Minolta driver +for gphoto, I am often contacted regarding the newer Minolta cameras. +The most common question I receive is if the same serial driver will +work on the newer models as on the Dimage V. I don not believe this to +be the case, but would be interested in finding out an official answer. + Additionally, would Minolta be willing to release the serial and +USB image transfer specifications for any of the other camera models, +with the same caveats and conditions as before? + + Thanks, + Gus + +Answer: +We recommend the use of Compact Flash Card Readers for acquiring images from +all of our newer digital cameras on incompatible systems. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/COPYING b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/COPYING new file mode 100644 index 00000000..bb2e7c83 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright © 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright © 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright © 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/Makefile-files new file mode 100644 index 00000000..e24e2009 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/Makefile-files @@ -0,0 +1,22 @@ +# -*- Makefile -*- + +EXTRA_DIST += minolta/dimagev/README.minolta-dimagev minolta/dimagev/COPYING +camlibdoc_DATA += minolta/dimagev/README.minolta-dimagev + +EXTRA_LTLIBRARIES += dimagev.la + +dimagev_la_SOURCES = \ + minolta/dimagev/capture.c \ + minolta/dimagev/data.c \ + minolta/dimagev/delete.c \ + minolta/dimagev/dimagev.c \ + minolta/dimagev/dimagev.h \ + minolta/dimagev/download.c \ + minolta/dimagev/info.c \ + minolta/dimagev/packet.c \ + minolta/dimagev/status.c \ + minolta/dimagev/upload.c \ + minolta/dimagev/util.c +dimagev_la_LDFLAGS = $(camlib_ldflags) +dimagev_la_DEPENDENCIES = $(camlib_dependencies) +dimagev_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/README.minolta-dimagev b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/README.minolta-dimagev new file mode 100644 index 00000000..36c1b904 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/README.minolta-dimagev @@ -0,0 +1,57 @@ +This is a fresh driver for the Minolta Dimage V camera, which has since been +discontinued by Minolta. This driver contains no code form my earlier efforts. + +The assistance of Minolta was very helpful in writing this driver; I was given +a copy of the specification and told that I could "share it with the Linux +community". I am interpreting this "sharing" as the GNU GPL. Minolta takes no +responsibility for the information they provided me, which is perfectly fair. +Please see the file COPYING for more information. + +Copies of the Dimage V transfer specification are available under the +aforementioned "share" clause; I will mail them globally, and fax them +anywhere in the US or Canada. A lot of the information is in the code +itself, but sometimes the real spec is nice so readers can find my bugs. +Minolta has made it clear that they do not wish to release further protocols, +and recommend that users of unsupported systems purchase SmartMedia readers +to transfer images. + +This library is far from complete. There are plenty of places where better +sanity checking could be done. I will continue to work on it until I buy a +newer camera ;> + +Notes on specific functions: + The capture function takes a picture, downloads it, and then deletes it. + This image is always named dv00000.jpg, since that holds with the naming + convention for the rest of the pictures, and simultaneously cannot be a + valid name for an image retrieved from the camera. Sometimes the deletion + of an image will fail after it has been retrieved; since reporting this + error would mean the entire capture process failed, I merely print a + message indicating which image needs to be deleted. This is, in my + opinion, preferable to losing the picture entirely. + + The camera_init() function attempts to set the camera clock to the current + system time. If it fails, the init function can still succeed; I do not + believe that failing to set the clock should mean failure to initialize. + The same is true of the camera_exit() function. + + At long last, the preview thumbnails finally work! The strange distortions + that were occurring previously have been eliminated, and I have been able + to retrieve accurate thumbnails reliably for the last several hundred + images. This puts this driver as the first that I know of that handles + the Dimage V thumbnail format; there were other programs to connect, but + all (including my earlier attempts) just gave up on the retrieved data. + More information on the file format can be obtained in the code itself. + + Deleting all images is now implemented correctly. This beats iterating + accross all of them, hands down. + + Here are the pinouts for the serial cable: + _____________ /-----\ + \ 5 4 3 2 1 / / X X X \ + \ 9 8 7 6 / | 2 5 3 | + --------- -| 8 7 |- + ----- + + + +--Gus Hartmann, diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/capture.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/capture.c new file mode 100644 index 00000000..dbbc91c5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/capture.c @@ -0,0 +1,179 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +/* $Id$ */ + +#include "config.h" + +#include "dimagev.h" + +#define GP_MODULE "dimagev" + +/* This function handles sending the camera command to take a new picture, and + the Dimage V automatically stores it in the lowest number available, which + is the current number of images plus one. Since gphoto2 assumes that images + can be captured without being saved on the camera first, camera_capture() + is actually made up of a few steps, the primary ones being dimagev_shutter(), + dimagev_get_picture(), and dimagev_delete_picture(). +*/ +int dimagev_shutter(dimagev_t *dimagev) { + dimagev_packet *p, *raw; + unsigned char char_buffer; + + /* Check the device. */ + if ( dimagev->dev == NULL ) { + GP_DEBUG( "dimagev_shutter::device not valid"); + return GP_ERROR_BAD_PARAMETERS; + } + + /* Verify that we can write to the memory card. */ + if ( dimagev->status->card_status != (unsigned char) 0 ) { + GP_DEBUG( "dimagev_shutter::unable to write to memory card - check status"); + return GP_ERROR; + } + + /* Make sure we're in record mode and in host mode. */ + dimagev->data->play_rec_mode = (unsigned char) 1; + dimagev->data->host_mode = (unsigned char) 1; + + /* Make sure we can set the data into the camera. */ + if ( dimagev_send_data(dimagev) < GP_OK ) { + GP_DEBUG( "dimagev_shutter::unable to set host mode or record mode"); + return GP_ERROR; + } + + /* Maybe reduce this later? */ + if ( sleep(2) != 0 ) { + GP_DEBUG( "dimagev_shutter::sleep() returned non-zero value"); + } + + /* Let's say hello and get the current status. */ + if ( ( p = dimagev_make_packet(DIMAGEV_SHUTTER, 1, 0)) == NULL ) { + GP_DEBUG( "dimagev_shutter::unable to allocate packet"); + return GP_ERROR_NO_MEMORY; + } + + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_shutter::unable to write packet"); + + if ( p != NULL ) { + free(p); + } + + return GP_ERROR_IO; + } + + if ( p != NULL ) { + free(p); + } + + + if ( sleep(1) != 0 ) { + GP_DEBUG( "dimagev_shutter::sleep() returned non-zero value"); + } + + if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_shutter::no response from camera"); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + /* Sleep for a few seconds while the image is written to flash. */ + if ( sleep(5) != 0 ) { + GP_DEBUG( "dimagev_shutter::sleep() returned non-zero value"); + } + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_shutter::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_shutter::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_shutter::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + if ( sleep(1) != 0 ) { + GP_DEBUG( "dimagev_shutter::sleep() returned non-zero value"); + } + + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + GP_DEBUG( "dimagev_shutter::unable to read packet"); + return GP_ERROR_IO; + } + + if ( ( raw = dimagev_strip_packet(p) ) == NULL ) { + GP_DEBUG( "dimagev_shutter::unable to strip data packet"); + free(p); + return GP_ERROR; + } + + free(p); + + if ( raw->buffer[0] != (unsigned char) 0 ) { + GP_DEBUG( "dimagev_shutter::camera returned error code"); + free(raw); + return GP_ERROR; + } + + free(raw); + + if ( sleep(1) != 0 ) { + GP_DEBUG( "dimagev_shutter::sleep() returned non-zero value"); + } + + char_buffer = DIMAGEV_EOT; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_shutter::unable to send EOT"); + return GP_ERROR_IO; + } + + if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_shutter::no response from camera"); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_shutter::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_shutter::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_shutter::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + dimagev->data->play_rec_mode = (unsigned char) 0; + + if ( dimagev_send_data(dimagev) < GP_OK ) { + GP_DEBUG( "dimagev_shutter::unable to set host mode or record mode - non-fatal!"); +/* return GP_ERROR;*/ + } + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/data.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/data.c new file mode 100644 index 00000000..d9836582 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/data.c @@ -0,0 +1,412 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +/* $Id$ */ + +#include "config.h" + +#include + +#include "dimagev.h" + +#define GP_MODULE "dimagev" + +/* This is the parent function, who calls most of the functions below. + It returns GP_ERROR if it cannot get the camera data, and GP_OK otherwise. + The subroutines will print out more detained information should they fail. +*/ +int dimagev_get_camera_data(dimagev_t *dimagev) { + dimagev_packet *p, *raw; + unsigned char char_buffer; + + /* Check the device. */ + if ( dimagev->dev == NULL ) { + GP_DEBUG( "dimagev_get_camera_data::device not valid"); + return GP_ERROR_BAD_PARAMETERS; + } + + /* Let's say hello and get the current status. */ + if ( ( p = dimagev_make_packet(DIMAGEV_GET_DATA, 1, 0)) == NULL ) { + GP_DEBUG( "dimagev_get_camera_data::unable to allocate packet"); + return GP_ERROR_NO_MEMORY; + } + + if ( gp_port_write(dimagev->dev, (char*)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_data::unable to write packet"); + free(p); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, (char*)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_data::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_get_camera_data::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_get_camera_data::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_get_camera_data::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + GP_DEBUG( "dimagev_get_camera_data::unable to read packet"); + return GP_ERROR_IO; + } + + char_buffer = DIMAGEV_EOT; + if ( gp_port_write(dimagev->dev, (char*)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_data::unable to send EOT"); + free(p); + return GP_ERROR_IO; + } + + if ( gp_port_read(dimagev->dev, (char*)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_data::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_get_camera_data::camera did not acknowledge transmission"); + free(p); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_get_camera_data::camera cancels transmission"); + free(p); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_get_camera_data::camera responded with unknown value %x", char_buffer); + free(p); + return GP_ERROR_IO; + } + + if ( ( raw = dimagev_strip_packet(p) ) == NULL ) { + GP_DEBUG( "dimagev_get_camera_data::unable to strip data packet"); + free(p); + return GP_ERROR; + } + + if ( ( dimagev->data = dimagev_import_camera_data(raw->buffer)) == NULL ) { + GP_DEBUG( "dimagev_get_camera_data::unable to read camera data"); + free(raw); + free(p); + return GP_ERROR; + } + + /* Sure it *should* get freed automagically, but why take the risk? */ + free(p); + free(raw); + + return GP_OK; +} + +/* This function sends the contents of a dimagev_data_t to the current camera. + This allows many changes to be made (e.g. entering host mode and record + mode) while only sending a single set_data command. +*/ +int dimagev_send_data(dimagev_t *dimagev) { + dimagev_packet *p; + unsigned char *export_data, char_buffer; + + + if ( dimagev == NULL ) { + GP_DEBUG( "dimagev_send_data::unable to use NULL dimagev_t"); + return GP_ERROR_BAD_PARAMETERS; + } + + if ( ( export_data = dimagev_export_camera_data(dimagev->data) ) == NULL ) { + GP_DEBUG( "dimagev_send_data::unable to export camera data"); + return GP_ERROR; + } + + dimagev_dump_camera_data(dimagev->data); + + if ( ( p = dimagev_make_packet(DIMAGEV_SET_DATA, 1, 0) ) == NULL ) { + GP_DEBUG( "dimagev_send_data::unable to create set_data packet"); + free(export_data); + return GP_ERROR_NO_MEMORY; + } + + if ( gp_port_write(dimagev->dev, (char*)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_send_data::unable to send set_data packet"); + free(p); + free(export_data); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, (char*)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_send_data::no response from camera - trying to send NAK"); + free(p); + free(export_data); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_send_data::camera did not acknowledge transmission"); + free(export_data); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_send_data::camera cancels transmission"); + free(export_data); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_send_data::camera responded with unknown value %x", char_buffer); + free(export_data); + return GP_ERROR_IO; + } + + if ( ( p = dimagev_make_packet(export_data, 9, 1) ) == NULL ) { + GP_DEBUG( "dimagev_send_data::unable to create set_data packet"); + free(export_data); + return GP_ERROR_NO_MEMORY; + } + + free(export_data); + + if ( gp_port_write(dimagev->dev, (char*)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_send_data::unable to send data packet"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + if ( gp_port_read(dimagev->dev, (char*)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_send_data::no response from camera"); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_send_data::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_send_data::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_send_data::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + + char_buffer = DIMAGEV_EOT; + if ( gp_port_write(dimagev->dev, (char*)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_send_data::unable to send EOT"); + return GP_ERROR_IO; + } + + if ( gp_port_read(dimagev->dev, (char*)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_send_data::no response from camera"); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_send_data::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_send_data::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_send_data::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + if ( sleep(3) != 0 ) { + GP_DEBUG( "dimagev_send_data::sleep() returned non-zero value"); + } + + return GP_OK; +} + +/* This function populates and retuens a dimagev_data_t with the values + contained inside an array of bytes, as returned by the Dimage V. See + the description of these fields in the appropriate header file for + more information on the bit-packing done here. +*/ +dimagev_data_t *dimagev_import_camera_data(unsigned char *raw_data) { + dimagev_data_t *processed_data; + + if ( raw_data == NULL ) { + return NULL; + } + + if ( ( processed_data = malloc(sizeof(dimagev_data_t)) ) == NULL ) { + return NULL; + } + + /* They really pack those bit fields. */ + processed_data->host_mode = ( raw_data[0] & 0x80) >> 7; + processed_data->exposure_valid = (raw_data[0] & 0x40 ) >> 6; + processed_data->date_valid = (raw_data[0] & 0x20 ) >> 5; + processed_data->self_timer_mode = (raw_data[0] & 0x10 ) >> 4; + processed_data->flash_mode = ( raw_data[0] & 0x0C ) >> 2; + processed_data->quality_setting = ( raw_data[0] & 0x02 ) >> 1; + processed_data->play_rec_mode = (raw_data[0] & 0x01 ); + processed_data->year = dimagev_bcd_to_decimal(raw_data[1]); + processed_data->month = dimagev_bcd_to_decimal(raw_data[2]); + processed_data->day = dimagev_bcd_to_decimal(raw_data[3]); + processed_data->hour = dimagev_bcd_to_decimal(raw_data[4]); + processed_data->minute = dimagev_bcd_to_decimal(raw_data[5]); + processed_data->second = dimagev_bcd_to_decimal(raw_data[6]); + processed_data->exposure_correction = raw_data[7]; + processed_data->valid = ( raw_data[8] & 0x80) >> 7; + processed_data->id_number = ( raw_data[8] & 0x7F); + + return processed_data; +} + +unsigned char *dimagev_export_camera_data(dimagev_data_t *good_data) { + unsigned char *export_data; + + if ( ( export_data = malloc(9) ) == NULL ) { + perror("dimagev_export_camera_data::unable to allocate buffer"); + return NULL; + } + + export_data[0] = (unsigned char) 0; + export_data[0] = export_data[0] | ( ( ( good_data->host_mode ) << 7 ) & 0x80 ); + export_data[0] = export_data[0] | ( ( ( good_data->exposure_valid ) << 6 ) & 0x40 ); + export_data[0] = export_data[0] | ( ( ( good_data->date_valid ) << 5 ) & 0x20 ); + export_data[0] = export_data[0] | ( ( ( good_data->self_timer_mode ) << 4 ) & 0x10 ); + export_data[0] = export_data[0] | ( ( ( good_data->flash_mode ) << 2 ) & 0x0C ); + export_data[0] = export_data[0] | ( ( ( good_data->quality_setting ) << 1 ) & 0x02 ); + export_data[0] = export_data[0] | ( ( ( good_data->play_rec_mode )) & 0x01 ); + export_data[1] = (unsigned char) 0; + export_data[1] = dimagev_decimal_to_bcd(good_data->year); + export_data[2] = (unsigned char) 0; + export_data[2] = dimagev_decimal_to_bcd(good_data->month); + export_data[3] = (unsigned char) 0; + export_data[3] = dimagev_decimal_to_bcd(good_data->day); + export_data[4] = (unsigned char) 0; + export_data[4] = dimagev_decimal_to_bcd(good_data->hour); + export_data[5] = (unsigned char) 0; + export_data[5] = dimagev_decimal_to_bcd(good_data->minute); + export_data[6] = (unsigned char) 0; + export_data[6] = dimagev_decimal_to_bcd(good_data->second); + export_data[7] = (unsigned char) 0; + export_data[7] = good_data->exposure_correction; + export_data[8] = (unsigned char) 0; + export_data[8] = export_data[8] & ( ( ( good_data->valid ) << 7 ) & 0x80 ); + export_data[8] = export_data[8] & ( ( ( good_data->id_number ) ) & 0x7F ); + + return export_data; +} + +void dimagev_dump_camera_data(dimagev_data_t *data) { + GP_DEBUG( "========= Begin Camera Data ========="); + GP_DEBUG( "Host mode: %s ( %d )", data->host_mode != (unsigned char) 0 ? "Host mode" : "Camera mode", data->host_mode); + GP_DEBUG( "Exposure valid: %s ( %d )", data->exposure_valid != (unsigned char) 0 ? "Valid" : "Not Valid", data->exposure_valid); + GP_DEBUG( "Exposure correction: %d", (signed char)data->exposure_correction); + GP_DEBUG( "Date valid: %s ( %d )", data->date_valid != (unsigned char) 0 ? "Valid" : "Not Valid", data->exposure_valid); + GP_DEBUG( "Self timer mode: %s ( %d )", data->self_timer_mode != (unsigned char) 0 ? "Yes" : "No", data->self_timer_mode); + GP_DEBUG( "Flash mode: "); + + switch ( data->flash_mode ) { + case 0: + GP_DEBUG( "\tAuto ( 0 )"); + break; + case 1: + GP_DEBUG( "\tForce Flash ( 1 )"); + break; + case 2: + GP_DEBUG( "\tProhibit Flash ( 2 )"); + break; + default: + GP_DEBUG( "\tInvalid mode for flash ( %d )", data->flash_mode); + break; + } + + GP_DEBUG( "Quality mode: %s ( %d )", data->quality_setting ? "High" : "Low", data->quality_setting); + GP_DEBUG( "Play or Record mode: %s ( %d )", data->play_rec_mode != (unsigned char) 0 ? "Record" : "Play", data->play_rec_mode); + GP_DEBUG( "Date: %02d/%02d/%02d %02d:%02d:%02d", data->year, data->month, data->day, data->hour, data->minute, data->second); + GP_DEBUG( "Card ID Valid: %s ( %d )", data->valid != (unsigned char) 0 ? "Valid" : "Invalid", data->valid); + GP_DEBUG( "Card ID Data: %02x", data->id_number); + GP_DEBUG( "========== End Camera Data =========="); + + return; +} + +/* This function gets the current system time, sets the contents of the current + dimagev->data struct appropriately, and then sends the data. +*/ +int dimagev_set_date(dimagev_t *dimagev) { + struct tm *this_time; + time_t now; + + if ( dimagev == NULL ) { + return GP_ERROR_BAD_PARAMETERS; + } + + if ( ( now = time(NULL) ) < 0 ) { + GP_DEBUG( "dimagev_set_date::unable to get system time"); + return GP_ERROR; + } + + if ( ( this_time = localtime(&now) ) == NULL ) { + GP_DEBUG( "dimagev_set_date::unable to convert system time to local time"); + return GP_ERROR; + } + + GP_DEBUG( "Setting clock to %02d/%02d/%02d %02d:%02d:%02d", this_time->tm_year % 100, ( this_time->tm_mon + 1 ), this_time->tm_mday, this_time->tm_hour, this_time->tm_min, this_time->tm_sec); + + dimagev->data->date_valid = (unsigned char) 1; + dimagev->data->year = (unsigned char) ( this_time->tm_year % 100 ); + dimagev->data->month = (unsigned char) ( this_time->tm_mon + 1 ); + dimagev->data->day = (unsigned char) this_time->tm_mday; + dimagev->data->hour = (unsigned char) this_time->tm_hour; + dimagev->data->minute = (unsigned char) this_time->tm_min; + dimagev->data->second = (unsigned char) this_time->tm_sec; + + if ( dimagev_send_data(dimagev) < GP_OK ) { + GP_DEBUG( "dimagev_set_date::unable to set time"); + return GP_ERROR_IO; + } + + /* So we don't set this date again later by mistake. */ + dimagev->data->date_valid = (unsigned char) 0; + + if ( dimagev_send_data(dimagev) < GP_OK ) { + GP_DEBUG( "dimagev_set_date::unable to set time"); + return GP_ERROR_IO; + } + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/delete.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/delete.c new file mode 100644 index 00000000..eefbed3f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/delete.c @@ -0,0 +1,250 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +/* $Id$ */ + +#include "config.h" + +#include "dimagev.h" + +#define GP_MODULE "dimagev" + +int dimagev_delete_picture(dimagev_t *dimagev, int file_number) { + dimagev_packet *p, *raw; + unsigned char command_buffer[3]; + char char_buffer = 0; + + if ( dimagev == NULL ) { + GP_DEBUG( "dimagev_delete_picture::unable to use NULL dimagev_t"); + return GP_ERROR_BAD_PARAMETERS; + } + + dimagev_dump_camera_status(dimagev->status); + /* An image can only be deleted if the card is normal or full. */ + if ( dimagev->status->card_status > (unsigned char) 1 ) { + GP_DEBUG( "dimagev_delete_picture::memory card does not permit deletion"); + return GP_ERROR; + } + + if ( dimagev->data->host_mode != (unsigned char) 1 ) { + + dimagev->data->host_mode = (unsigned char) 1; + + if ( dimagev_send_data(dimagev) < GP_OK ) { + GP_DEBUG( "dimagev_delete_picture::unable to set host mode"); + return GP_ERROR_IO; + } + } + + + /* First make the command packet. */ + command_buffer[0] = 0x05; + command_buffer[1] = (unsigned char)( file_number / 256 ); + command_buffer[2] = (unsigned char)( file_number % 256 ); + if ( ( p = dimagev_make_packet(command_buffer, 3, 0) ) == NULL ) { + GP_DEBUG( "dimagev_delete_picture::unable to allocate command packet"); + return GP_ERROR_NO_MEMORY; + } + + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_delete_picture::unable to send set_data packet"); + free(p); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, &char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_delete_picture::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_delete_picture::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_delete_picture::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_delete_picture::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + GP_DEBUG( "dimagev_delete_picture::unable to read packet"); + return GP_ERROR_IO; + } + + if ( ( raw = dimagev_strip_packet(p) ) == NULL ) { + GP_DEBUG( "dimagev_delete_picture::unable to strip packet"); + free(p); + return GP_ERROR; + } + + free(p); + + if ( raw->buffer[0] != (unsigned char) 0 ) { + GP_DEBUG( "dimagev_delete_picture::delete returned error code"); + free(raw); + return GP_ERROR_NO_MEMORY; + } + free(raw); + + char_buffer=DIMAGEV_EOT; + if ( gp_port_write(dimagev->dev, &char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_delete_picture::unable to send ACK"); + return GP_ERROR_IO; + } + + if ( gp_port_read(dimagev->dev, &char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_delete_picture::no response from camera"); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_delete_picture::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_delete_picture::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_delete_picture::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + return GP_OK; +} + +int dimagev_delete_all(dimagev_t *dimagev) { + dimagev_packet *p, *raw; + unsigned char command_buffer[3]; + char char_buffer; + + if ( dimagev == NULL ) { + GP_DEBUG( "dimagev_delete_all::unable to use NULL dimagev_t"); + return GP_ERROR_BAD_PARAMETERS; + } + + dimagev_dump_camera_status(dimagev->status); + /* An image can only be deleted if the card is normal or full. */ + if ( dimagev->status->card_status > (unsigned char) 1 ) { + GP_DEBUG( "dimagev_delete_all::memory card does not permit deletion"); + return GP_ERROR; + } + + if ( dimagev->data->host_mode != (unsigned char) 1 ) { + + dimagev->data->host_mode = (unsigned char) 1; + + if ( dimagev_send_data(dimagev) < GP_OK ) { + GP_DEBUG( "dimagev_delete_all::unable to set host mode"); + return GP_ERROR_IO; + } + } + + + /* First make the command packet. */ + command_buffer[0] = 0x06; + if ( ( p = dimagev_make_packet(command_buffer, 1, 0) ) == NULL ) { + GP_DEBUG( "dimagev_delete_all::unable to allocate command packet"); + return GP_ERROR_IO; + } + + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_delete_all::unable to send set_data packet"); + free(p); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, &char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_delete_all::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_delete_all::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_delete_all::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_delete_all::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + GP_DEBUG( "dimagev_delete_all::unable to read packet"); + return GP_ERROR_IO; + } + + if ( ( raw = dimagev_strip_packet(p) ) == NULL ) { + GP_DEBUG( "dimagev_delete_all::unable to strip packet"); + free(p); + return GP_ERROR_NO_MEMORY; + } + + free(p); + + if ( raw->buffer[0] != (unsigned char) 0 ) { + GP_DEBUG( "dimagev_delete_all::delete returned error code"); + free(raw); + return GP_ERROR; + } + free(raw); + + char_buffer=DIMAGEV_EOT; + if ( gp_port_write(dimagev->dev, &char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_delete_all::unable to send ACK"); + return GP_ERROR_IO; + } + + if ( gp_port_read(dimagev->dev, &char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_delete_all::no response from camera"); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_delete_all::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_delete_all::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_delete_all::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/dimagev.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/dimagev.c new file mode 100644 index 00000000..0f977092 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/dimagev.c @@ -0,0 +1,490 @@ +/**********************************************************************; +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# ifdef gettext_noop +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# define N_(String) gettext_noop (String) +# else +# define _(String) (String) +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "dimagev.h" + +#define GP_MODULE "dimagev" + +int camera_id (CameraText *id) +{ +#if defined HAVE_STRNCPY + strncpy(id->text, "minolta-dimagev", sizeof(id->text)); +#else + strcpy(id->text, "minolta-dimagev"); +#endif + + return GP_OK; +} + +int camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); +#if defined HAVE_STRNCPY + strncpy(a.model, "Minolta:Dimage V", sizeof(a.model)); +#else + strcpy(a.model, "Minolta:Dimage V"); +#endif + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 38400; + a.speed[1] = 0; + a.operations = GP_OPERATION_CAPTURE_IMAGE | + GP_OPERATION_CAPTURE_PREVIEW; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE | + GP_FOLDER_OPERATION_DELETE_ALL; + + gp_abilities_list_append(list, a); + + return GP_OK; +} + +static int camera_exit (Camera *camera, GPContext *context) +{ + /* Set the camera back into a normal mode. */ + if (camera->pl) { + + if (camera->pl->data) { + camera->pl->data->host_mode = (unsigned char) 0; + + /* This will also send the host mode of zero. */ + if ( dimagev_set_date(camera->pl) < GP_OK ) { + GP_DEBUG( "camera_init::unable to set camera to system time"); + return GP_ERROR_IO; + } + free (camera->pl->data); + camera->pl->data = NULL; + } + + if (camera->pl->status) { + free (camera->pl->status); + camera->pl->status = NULL; + } + + if (camera->pl->info) { + free (camera->pl->info); + camera->pl->info = NULL; + } + + free (camera->pl); + } + + return GP_OK; +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + int ret; + + if ( dimagev_get_camera_status(camera->pl) < GP_OK ) { + GP_DEBUG( "camera_file_list::unable to get camera status"); + return GP_ERROR_IO; + } + + if ((ret = gp_list_populate(list, DIMAGEV_FILENAME_FMT, camera->pl->status->number_images)) < GP_OK ) { + GP_DEBUG( "camera_file_list::unable to populate list"); + return ret; + } + + return GP_OK; +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *data, GPContext *context) +{ + Camera *camera = data; + int file_number=0, result; + + file_number = gp_filesystem_number(fs, folder, filename, context); + if (file_number < 0) + return (file_number); + + switch (type) { + case GP_FILE_TYPE_NORMAL: + gp_file_set_mime_type (file, GP_MIME_JPEG); + result = dimagev_get_picture (camera->pl, file_number + 1, file); + break; + case GP_FILE_TYPE_PREVIEW: + gp_file_set_mime_type (file, GP_MIME_PPM); + result = dimagev_get_thumbnail (camera->pl, file_number + 1, file); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + + if (result < 0) { + GP_DEBUG( "camera_file_get::unable to retrieve image file"); + return result; + } + + sleep(2); + return GP_OK; +} + +static int delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, + GPContext *context) +{ + Camera *camera = data; + int file_number=0; + + file_number = gp_filesystem_number(camera->fs, folder, filename, context); + if (file_number < 0) + return (file_number); + + return dimagev_delete_picture(camera->pl, (file_number + 1 )); +} + +static int camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) +{ + if (type != GP_CAPTURE_IMAGE) + return (GP_ERROR_NOT_SUPPORTED); + + if ( dimagev_shutter(camera->pl) < GP_OK ) { + GP_DEBUG( "camera_capture::unable to open shutter"); + return GP_ERROR_IO; + } + + /* Now check how many pictures are taken, and return the last one. */ + if ( dimagev_get_camera_status(camera->pl) != 0 ) { + GP_DEBUG( "camera_capture::unable to get camera status"); + return GP_ERROR_IO; + } + +#if defined HAVE_SNPRINTF + snprintf(path->folder, sizeof(path->folder), "/"); + snprintf(path->name, sizeof(path->name), DIMAGEV_FILENAME_FMT, camera->pl->status->number_images); +#else + sprintf(path->folder, "/"); + sprintf(path->name, DIMAGEV_FILENAME_FMT, camera->pl->status->number_images); +#endif + + /* Tell the CameraFilesystem about this picture */ + gp_filesystem_append (camera->fs, path->folder, path->name, context); + + return GP_OK; +} + +static int put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *data, GPContext *context) +{ + Camera *camera = data; + + return dimagev_put_file(camera->pl, file); +} + +static int delete_all_func (CameraFilesystem *fs, const char *folder, + void *data, GPContext *context) +{ + Camera *camera = data; + + return dimagev_delete_all(camera->pl); +} + +static int camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + int i = 0, count = 0; + + if ( dimagev_get_camera_status(camera->pl) < GP_OK ) { + GP_DEBUG( "camera_summary::unable to get camera status"); + return GP_ERROR_IO; + } + + if ( dimagev_get_camera_data(camera->pl) < GP_OK ) { + GP_DEBUG( "camera_summary::unable to get camera data"); + return GP_ERROR_IO; + } + + if ( dimagev_get_camera_info(camera->pl) < GP_OK ) { + GP_DEBUG( "camera_summary::unable to get camera info"); + return GP_ERROR_IO; + } + + dimagev_dump_camera_status(camera->pl->status); + dimagev_dump_camera_data(camera->pl->data); + dimagev_dump_camera_info(camera->pl->info); + + /* Now put all of the information into a reasonably formatted string. */ + /* i keeps track of the length. */ + i = 0; + /* First the stuff from the dimagev_info_t */ +#if defined HAVE_SNPRINTF + i = snprintf(summary->text, sizeof(summary->text), +#else + i = sprintf(summary->text, +#endif + _("Model:\t\t\tMinolta Dimage V (%s)\n" + "Hardware Revision:\t%s\nFirmware Revision:\t%s\n"), + camera->pl->info->model, camera->pl->info->hardware_rev, + camera->pl->info->firmware_rev); + + if ( i > 0 ) { + count += i; + } + + /* Now the stuff from dimagev_data_t */ +#if defined HAVE_SNPRINTF + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, +#else + i = sprintf(&(summary->text[count]), +#endif + _("Host Mode:\t\t%s\n" + "Exposure Correction:\t%s\n" + "Exposure Data:\t\t%d\n" + "Date Valid:\t\t%s\n" + "Date:\t\t\t%d/%02d/%02d %02d:%02d:%02d\n" + "Self Timer Set:\t\t%s\n" + "Quality Setting:\t%s\n" + "Play/Record Mode:\t%s\n" + "Card ID Valid:\t\t%s\n" + "Card ID:\t\t%d\n" + "Flash Mode:\t\t"), + + ( camera->pl->data->host_mode != (unsigned char) 0 ? _("Remote") : _("Local") ), + ( camera->pl->data->exposure_valid != (unsigned char) 0 ? _("Yes") : _("No") ), + (signed char)camera->pl->data->exposure_correction, + ( camera->pl->data->date_valid != (unsigned char) 0 ? _("Yes") : _("No") ), + ( camera->pl->data->year < (unsigned char) 70 ? 2000 + (int) camera->pl->data->year : 1900 + (int) camera->pl->data->year ), + camera->pl->data->month, camera->pl->data->day, camera->pl->data->hour, + camera->pl->data->minute, camera->pl->data->second, + ( camera->pl->data->self_timer_mode != (unsigned char) 0 ? _("Yes") : _("No")), + ( camera->pl->data->quality_setting != (unsigned char) 0 ? _("Fine") : _("Standard") ), + ( camera->pl->data->play_rec_mode != (unsigned char) 0 ? _("Record") : _("Play") ), + ( camera->pl->data->valid != (unsigned char) 0 ? _("Yes") : _("No")), camera->pl->data->id_number ); + + if ( i > 0 ) { + count += i; + } + + /* Flash is a special case, a switch is needed. */ + switch ( camera->pl->data->flash_mode ) { + case 0: +#if defined HAVE_SNPRINTF + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, +#else + i = sprintf(&(summary->text[count]), +#endif + _("Automatic\n")); + break; + case 1: +#if defined HAVE_SNPRINTF + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, +#else + i = sprintf(&(summary->text[count]), +#endif + _("Force Flash\n")); + break; + case 2: +#if defined HAVE_SNPRINTF + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, +#else + i = sprintf(&(summary->text[count]), +#endif + _("Prohibit Flash\n")); + break; + default: +#if defined HAVE_SNPRINTF + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, +#else + i = sprintf(&(summary->text[count]), +#endif + _("Invalid Value ( %d )\n"), camera->pl->data->flash_mode); + break; + } + + if ( i > 0 ) { + count += i; + } + + /* Now for the information in dimagev_status_t */ +#if defined HAVE_SNPRINTF + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, +#else + i = sprintf(&(summary->text[count]), +#endif + _("Battery Level:\t\t%s\n" + "Number of Images:\t%d\n" + "Minimum Capacity Left:\t%d\n" + "Busy:\t\t\t%s\n" + "Flash Charging:\t\t%s\n" + "Lens Status:\t\t"), + ( camera->pl->status->battery_level ? _("Not Full") : _("Full") ), + camera->pl->status->number_images, + camera->pl->status->minimum_images_can_take, + ( camera->pl->status->busy ? _("Busy") : _("Idle") ), + ( camera->pl->status->flash_charging ? _("Charging") : _("Ready") ) + + ); + + if ( i > 0 ) { + count += i; + } + + /* Lens status is another switch. */ + switch ( camera->pl->status->lens_status ) { + case 0: + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, _("Normal\n")); + break; + case 1: case 2: + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, _("Lens direction does not match flash light\n")); + break; + case 3: + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, _("Lens is not connected\n")); + break; + default: + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, _("Bad value for lens status %d\n"), camera->pl->status->lens_status); + break; + } + + if ( i > 0 ) { + count += i; + } + + /* Card status is another switch. */ + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, _("Card Status:\t\t")); + if ( i > 0 ) { + count += i; + } + + switch ( camera->pl->status->card_status ) { + case 0: + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, _("Normal")); + break; + case 1: + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, _("Full")); + break; + case 2: + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, _("Write-protected")); + break; + case 3: + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, _("Unsuitable card")); + break; + default: + i = snprintf(&(summary->text[count]), sizeof(summary->text) - count, _("Bad value for card status %d"), camera->pl->status->card_status); + break; + } + + if ( i > 0 ) { + count += i; + } + + + return GP_OK; +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ +#if defined HAVE_SNPRINTF + snprintf(about->text, sizeof(about->text), +#else + sprintf(about->text, +#endif +_("Minolta Dimage V Camera Library\n%s\nGus Hartmann \nSpecial thanks to Minolta for the spec."), DIMAGEV_VERSION); + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .put_file_func = put_file_func, + .delete_all_func = delete_all_func, +}; + +int camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->capture = camera_capture; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + GP_DEBUG( "initializing the camera"); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + camera->pl->dev = camera->port; + + /* Configure the port */ + gp_port_set_timeout(camera->port, 5000); + gp_port_get_settings(camera->port, &settings); + settings.serial.speed = 38400; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + gp_port_set_settings(camera->port, settings); + + if ( dimagev_get_camera_data(camera->pl) < GP_OK ) { + GP_DEBUG( "camera_init::unable to get current camera data"); + free (camera->pl); + camera->pl = NULL; + return GP_ERROR_IO; + } + + if ( dimagev_get_camera_status(camera->pl) < GP_OK ) { + GP_DEBUG( "camera_init::unable to get current camera status"); + free (camera->pl); + camera->pl = NULL; + return GP_ERROR_IO; + } + + /* Apparently, trying to set the clock now leaves the camera in an + unstable state. Skiping it for now. */ + /* if ( dimagev_set_date(camera->pl) < GP_OK ) { + GP_DEBUG( "camera_init::unable to set camera to system time"); + } */ + + /* Set up the filesystem */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/dimagev.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/dimagev.h new file mode 100644 index 00000000..ec3f6e9a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/dimagev.h @@ -0,0 +1,240 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +/* $Id$ */ + +#if defined HAVE_UNISTD_H +#include +#endif + +#if defined HAVE_STDIO_H +#include +#endif + +#if defined HAVE_STDLIB_H +#include +#endif + +#if defined HAVE_STRING_H +#include +#endif + +#if defined HAVE_SYS_TIME_H +#include +#endif + +/* These better be around. */ +#include +#include + +#define DIMAGEV_VERSION "$Revision$" + +/* These are the repsonse codes. */ +#define DIMAGEV_STX 0x02 +#define DIMAGEV_ETX 0x03 +#define DIMAGEV_EOT 0x04 +#define DIMAGEV_ACK 0x06 +#define DIMAGEV_NAK 0x15 +#define DIMAGEV_CAN 0x18 + +/* These are the commands. */ +#define DIMAGEV_INQUIRY (unsigned char*)"\x01" +#define DIMAGEV_DRIVE_READY (unsigned char*)"\x02" +#define DIMAGEV_GET_DIR (unsigned char*)"\x03" +#define DIMAGEV_GET_IMAGE (unsigned char*)"\x04" +#define DIMAGEV_ERASE_IMAGE (unsigned char*)"\x05" +#define DIMAGEV_ERASE_ALL (unsigned char*)"\x06" +#define DIMAGEV_GET_STATUS (unsigned char*)"\x07" +#define DIMAGEV_SET_DATA (unsigned char*)"\x08" +#define DIMAGEV_GET_DATA (unsigned char*)"\x09" +#define DIMAGEV_SHUTTER (unsigned char*)"\x0a" +#define DIMAGEV_FORMAT (unsigned char*)"\x0b" +#define DIMAGEV_DIAG (unsigned char*)"\x0c" +#define DIMAGEV_GET_THUMB (unsigned char*)"\x0d" +#define DIMAGEV_SET_IMAGE (unsigned char*)"\x0e" + +/* Using five digits is a bit forward-thinking, since I've never even gotten + enough pictures on a card to fill two digits, but I may as well use all + the eight.three I can. +*/ +#define DIMAGEV_FILENAME_FMT "dv%05i.jpg" +#define DIMAGEV_THUMBNAIL_FMT "dv%05i.ppm" + +/* These values are needed to convert Y:Cb:Cr image data into RGB. */ +/* Salt as needed. */ +#define CR_COEFF 0.114 +#define CB_COEFF 0.587 +#define Y_COEFF 0.299 + +/* This struct basically is a NULL-safe string; image data and other buffers + can contain NULLs, and classic C strings won't work. +*/ +typedef struct { + int length; + unsigned char buffer[1024]; +} dimagev_packet; + +/* This struct represents the information returned by the DIMAGEV_INQUIRY + command. The response packet payload is 25 bytes, in the order listed + below. The strings are all ASCII values, e.g. "MINOLTA ". The model is + always "L1", which was apparently the development name for the Dimage V. +*/ +typedef struct { + unsigned char vendor[8]; + unsigned char model[8]; + unsigned char hardware_rev[4]; + unsigned char firmware_rev[4]; + unsigned char have_storage; +} dimagev_info_t; + +/* This struct represents the information returned by the DIMAGEV_GET_STATUS + command. This information is all wedged into seven bytes, as shown here: + + bits + |-- 7 --|-- 6 --|-- 5 --|-- 4 --|-- 3 --|-- 2 --|-- 1 --|-- 0 --| + byte |---------------------------------------------------------------| + 0 | Battery level | + 1 | Number of images (most significant byte) | + 2 | Number of images (least significant byte) | + 3 | Minimum number of images left to take (most significant byte) | + 4 | Minimum number of images left to take (least significant byte)| + 5 | 0 | Busy | 0 | Flash | Lens Status | Card Status | + 6 | Camera and Card ID number | + |---------------------------------------------------------------| + + Battery level: 0x00 == "not enough", 0xff == "enough" + Lens status: 00 == normal, 01|10 == doesn't match flash, 11 == detached + Card status: 00 == normal, 01 == full, 10 == write-protected, 11 == bad + Flash: 1 == charging, 0 == ready + + I could probably have left it in one of these compacted structures, but + memory is not so expensive as to spend that much effort shifting bits. +*/ +typedef struct { + unsigned char battery_level; + unsigned int number_images; + unsigned int minimum_images_can_take; + unsigned char busy; + unsigned char flash_charging; + unsigned char lens_status; + unsigned char card_status; + unsigned char id_number; +} dimagev_status_t; + +/* This struct represents the information returned by the DIMAGEV_GET_DATA + command and sent with the DIMAGEV_SET_DATA command. It's another tightly + packed bit field, as described below: + + bits + |-- 7 --|-- 6 --|-- 5 --|-- 4 --|-- 3 --|-- 2 --|-- 1 --|-- 0 --| + byte |---------------------------------------------------------------| + 0 | hmode | OR | Date | Self | Flash |Quality| Rec | + 1 | Camera Clock (year) | + 2 | Camera Clock (month) | + 3 | Camera Clock (day) | + 4 | Camera Clock (hour) | + 5 | Camera Clock (minute) | + 6 | Camera Clock (second) | + 7 | Exposure correction data | + 8 | valid | Camera and Card ID number | + |---------------------------------------------------------------| + + hmode: "host mode" e.g. if the PC or camera is in control. + OR: Exposure correction data field is valid - used only for SET command. + Date: The date information is valid - used only for SET command. + Self: True if camera is in self-timer mode. + Flash: 00 == Auto, 01 == Force Flash, 10==No Flash, 11 == Invalid + Quality: Compression setting, 1 == Fine, 0 == Standard + Record mode: When setting, 1 == turn on LCD viewfinder. + When getting, 1 == switch in record mode. + Camera Clock: BCD two-digit values for times. Hours are military 0-23. + Exposure correction data: sets exposure correction, from -127 to 128. + valid: Used to set "valid" for memory cards. + Camera and Card ID: used when switching cards. +*/ +typedef struct { + unsigned char host_mode; + unsigned char exposure_valid; + unsigned char date_valid; + unsigned char self_timer_mode; + unsigned char flash_mode; + unsigned char quality_setting; + unsigned char play_rec_mode; + unsigned char year; + unsigned char month; + unsigned char day; + unsigned char hour; + unsigned char minute; + unsigned char second; + unsigned char exposure_correction; + unsigned char valid; + unsigned char id_number; +} dimagev_data_t; + +/* This struct is used as the camera->camlib_data value in this library. */ +typedef struct _CameraPrivateLibrary { + int size; + GPPort *dev; + dimagev_data_t *data; + dimagev_status_t *status; + dimagev_info_t *info; +} dimagev_t; + +/* These functions are in packet.c */ +dimagev_packet *dimagev_make_packet(const unsigned char *const buffer, unsigned int length, unsigned int seq); +dimagev_packet *dimagev_read_packet(dimagev_t *dimagev); +int dimagev_verify_packet(dimagev_packet *p); +dimagev_packet *dimagev_strip_packet(dimagev_packet *p); +void dimagev_dump_packet(dimagev_packet *p); +unsigned char dimagev_decimal_to_bcd(unsigned char decimal); +unsigned char dimagev_bcd_to_decimal(unsigned char bcd); +int dimagev_packet_sequence(dimagev_packet *p); + +/* These functions are in data.c */ +int dimagev_send_data(dimagev_t *dimagev); +int dimagev_get_camera_data(dimagev_t *dimagev); +dimagev_data_t *dimagev_import_camera_data(unsigned char *raw_data); +unsigned char *dimagev_export_camera_data(dimagev_data_t *good_data); +void dimagev_dump_camera_data(dimagev_data_t *data); +int dimagev_set_date(dimagev_t *dimagev); + +/* These functions are in status.c */ +int dimagev_get_camera_status(dimagev_t *dimagev); +dimagev_status_t *dimagev_import_camera_status(unsigned char *raw_data); +void dimagev_dump_camera_status(dimagev_status_t *status); + +/* These functions are in info.c */ +int dimagev_get_camera_info(dimagev_t *dimagev); +dimagev_info_t *dimagev_import_camera_info(unsigned char *raw_data); +void dimagev_dump_camera_info(dimagev_info_t *info); + +/* These functions are in capture.c */ +int dimagev_shutter(dimagev_t *dimagev); + +/* These functions are in upload.c */ +int dimagev_put_file(dimagev_t* dimagev, CameraFile *file); + +/* These functions are in util.c */ +int dimagev_get_picture(dimagev_t *dimagev, int file_number, CameraFile *file); +int dimagev_delete_picture(dimagev_t *dimagev, int file_number); +int dimagev_delete_all(dimagev_t *dimagev); +int dimagev_get_thumbnail(dimagev_t *dimagev, int file_number, CameraFile *file); +unsigned char *dimagev_ycbcr_to_ppm(unsigned char *ycbcr); diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/download.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/download.c new file mode 100644 index 00000000..5d74b558 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/download.c @@ -0,0 +1,344 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +/* $Id$ */ + +#include "config.h" + +#include "dimagev.h" + +#define GP_MODULE "dimagev" + +int dimagev_get_picture(dimagev_t *dimagev, int file_number, CameraFile *file) { + int total_packets, i; + unsigned long size = 0; + dimagev_packet *p, *r; + unsigned char char_buffer, command_buffer[3]; + char *data; + + if ( dimagev->data->host_mode != (unsigned char) 1 ) { + + dimagev->data->host_mode = (unsigned char) 1; + + if ( dimagev_send_data(dimagev) < GP_OK ) { + GP_DEBUG( "dimagev_get_picture::unable to set host mode"); + return GP_ERROR_IO; + } + } + + GP_DEBUG( "dimagev_get_picture::file_number is %d", file_number); + + /* Maybe check if it exists? Check the file type? */ + + /* First make the command packet. */ + command_buffer[0] = 0x04; + command_buffer[1] = (unsigned char)( file_number / 256 ); + command_buffer[2] = (unsigned char)( file_number % 256 ); + if ( ( p = dimagev_make_packet(command_buffer, 3, 0) ) == NULL ) { + GP_DEBUG( "dimagev_get_picture::unable to allocate command packet"); + return GP_ERROR_NO_MEMORY; + } + + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_get_picture::unable to send set_data packet"); + free(p); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_picture::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_get_picture::camera did not acknowledge transmission"); + return dimagev_get_picture(dimagev, file_number, file); +/* return GP_ERROR_IO;*/ + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_get_picture::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_get_picture::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + GP_DEBUG( "dimagev_get_picture::unable to read packet"); + return GP_ERROR_IO; + } + + if ( ( r = dimagev_strip_packet(p) ) == NULL ) { + GP_DEBUG( "dimagev_get_picture::unable to strip packet"); + free(p); + return GP_ERROR_NO_MEMORY; + } + + free(p); + + total_packets = (int) r->buffer[0]; + + /* Allocate an extra byte just in case. */ + if ( ( data = malloc((size_t)((993 * total_packets) + 1)) ) == NULL ) { + GP_DEBUG( "dimagev_get_picture::unable to allocate buffer for file"); + free(r); + return GP_ERROR_NO_MEMORY; + } + + memcpy(data, &(r->buffer[1]), (size_t) r->length ); + size += ( r->length - 2 ); + + free(r); + + for ( i = 0 ; i < ( total_packets -1 ) ; i++ ) { + char_buffer=DIMAGEV_ACK; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_picture::unable to send ACK"); + free(data); + return GP_ERROR_IO; + } + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + /* + GP_DEBUG( "dimagev_get_picture::unable to read packet"); + return GP_ERROR_IO; + */ + + GP_DEBUG( "dimagev_get_picture::sending NAK to get retry"); + char_buffer=DIMAGEV_NAK; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_picture::unable to send NAK"); + free(data); + return GP_ERROR_IO; + } + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + GP_DEBUG( "dimagev_get_picture::unable to read packet"); + free(data); + return GP_ERROR_IO; + } + } + + if ( ( r = dimagev_strip_packet(p) ) == NULL ) { + GP_DEBUG( "dimagev_get_picture::unable to strip packet"); + free(data); + free(p); + return GP_ERROR_NO_MEMORY; + } + + free(p); + + memcpy(&( data[ ( size + 1) ] ), r->buffer, (size_t) r->length ); + size += r->length; + + free(r); + } + + size++; + + char_buffer=DIMAGEV_EOT; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_picture::unable to send ACK"); + free(data); + return GP_ERROR_IO; + } + + if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_picture::no response from camera"); + free(data); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_get_picture::camera did not acknowledge transmission"); + free(data); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_get_picture::camera cancels transmission"); + free(data); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_get_picture::camera responded with unknown value %x", char_buffer); + free(data); + return GP_ERROR_IO; + } + + gp_file_set_data_and_size (file, data, size); + + return GP_OK; +} + +int dimagev_get_thumbnail(dimagev_t *dimagev, int file_number, CameraFile *file) { + dimagev_packet *p, *r; + unsigned char char_buffer, command_buffer[3], *ycrcb_data; + char *data; + long int size = 0; + + if ( dimagev->data->host_mode != (unsigned char) 1 ) { + + dimagev->data->host_mode = (unsigned char) 1; + + if ( dimagev_send_data(dimagev) < GP_OK ) { + GP_DEBUG( "dimagev_get_thumbnail::unable to set host mode"); + return GP_ERROR_IO; + } + } + + /* First make the command packet. */ + command_buffer[0] = 0x0d; + command_buffer[1] = (unsigned char)( file_number / 256 ); + command_buffer[2] = (unsigned char)( file_number % 256 ); + if ( ( p = dimagev_make_packet(command_buffer, 3, 0) ) == NULL ) { + GP_DEBUG( "dimagev_get_thumbnail::unable to allocate command packet"); + return GP_ERROR_NO_MEMORY; + } + + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_get_thumbnail::unable to send set_data packet"); + free(p); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_thumbnail::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_get_thumbnail::camera did not acknowledge transmission"); + return dimagev_get_thumbnail(dimagev, file_number, file); +/* return GP_ERROR_IO;*/ + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_get_thumbnail::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_get_thumbnail::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + GP_DEBUG( "dimagev_get_thumbnail::unable to read packet"); + return GP_ERROR_IO; + } + + if ( ( r = dimagev_strip_packet(p) ) == NULL ) { + GP_DEBUG( "dimagev_get_thumbnail::unable to strip packet"); + free(p); + return GP_ERROR_NO_MEMORY; + } + + free(p); + + /* Unlike normal images, we are guaranteed 9600 bytes *exactly*. */ + + /* Allocate an extra byte just in case. */ + if ( ( ycrcb_data = malloc(9600) ) == NULL ) { + GP_DEBUG( "dimagev_get_thumbnail::unable to allocate buffer for file"); + free(r); + return GP_ERROR_NO_MEMORY; + } + + memcpy(ycrcb_data, r->buffer, (size_t) r->length ); + size += r->length - 1 ; + + free(r); + + while ( size < 9599 ) { + + char_buffer=DIMAGEV_ACK; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_thumbnail::unable to send ACK"); + free(ycrcb_data); + return GP_ERROR_IO; + } + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + GP_DEBUG( "dimagev_get_thumbnail::unable to read packet"); + free(ycrcb_data); + return GP_ERROR_IO; + } + + if ( ( r = dimagev_strip_packet(p) ) == NULL ) { + GP_DEBUG( "dimagev_get_thumbnail::unable to strip packet"); + free(p); + free(ycrcb_data); + return GP_ERROR_NO_MEMORY; + } + + free(p); + + memcpy(&( ycrcb_data[ ( size + 1) ] ), r->buffer, (size_t) r->length ); + size += r->length; + + free(r); + + GP_DEBUG( "dimagev_get_thumbnail::current file size is %ld", size); + } + + size++; + + char_buffer=DIMAGEV_EOT; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_thumbnail::unable to send ACK"); + free(ycrcb_data); + return GP_ERROR_IO; + } + + if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_thumbnail::no response from camera"); + free(ycrcb_data); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_get_thumbnail::camera did not acknowledge transmission"); + free(ycrcb_data); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_get_thumbnail::camera cancels transmission"); + free(ycrcb_data); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_get_thumbnail::camera responded with unknown value %x", char_buffer); + free(ycrcb_data); + return GP_ERROR_IO; + } + + data = (char *)dimagev_ycbcr_to_ppm(ycrcb_data); + size = 14413; + + gp_file_set_data_and_size (file, data, size); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/info.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/info.c new file mode 100644 index 00000000..bd6d1525 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/info.c @@ -0,0 +1,175 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +/* $Id$ */ + +#include "config.h" + +#include + +#include "dimagev.h" + +#define GP_MODULE "dimagev" + +/* This is the parent function, who calls most of the functions below. + It returns GP_ERROR if it cannot get the camera data, and GP_OK otherwise. + The subroutines will print out more detained information should they fail. */ +int dimagev_get_camera_info(dimagev_t *dimagev) { + dimagev_packet *p, *raw; + unsigned char char_buffer; + + /* Check the device. */ + if ( dimagev->dev == NULL ) { + GP_DEBUG( "dimagev_get_camera_info::device not valid"); + return GP_ERROR_BAD_PARAMETERS; + } + + /* Make sure that the old info struct is fred, and allocate a new one. */ + /* + if ( dimagev->info != NULL ) { + free(dimagev->info); + } + */ + + /* Let's say hello and get the current status. */ + if ( ( p = dimagev_make_packet(DIMAGEV_INQUIRY, 1, 0)) == NULL ) { + GP_DEBUG( "dimagev_get_camera_info::unable to allocate packet"); + return GP_ERROR_IO; + } + + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_info::unable to write packet"); + free(p); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_info::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + /* Keep trying until a CAN is issued. */ + GP_DEBUG( "dimagev_get_camera_info::camera did not acknowledge transmission"); + return dimagev_get_camera_info(dimagev); + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_get_camera_info::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_get_camera_info::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + GP_DEBUG( "dimagev_get_camera_info::unable to read packet"); + return GP_ERROR_IO; + } + + char_buffer = DIMAGEV_EOT; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_info::unable to send EOT"); + free(p); + return GP_ERROR_IO; + } + + if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_info::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_get_camera_info::camera did not acknowledge transmission"); + free(p); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_get_camera_info::camera cancels transmission"); + free(p); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_get_camera_info::camera responded with unknown value %x", char_buffer); + free(p); + return GP_ERROR_IO; + } + + if ( ( raw = dimagev_strip_packet(p) ) == NULL ) { + GP_DEBUG( "dimagev_get_camera_info::unable to strip data packet"); + free(p); + return GP_ERROR_NO_MEMORY; + } + + if ( ( dimagev->info = dimagev_import_camera_info(raw->buffer) ) == NULL ) { + GP_DEBUG( "dimagev_get_camera_info::unable to read camera info"); + free(p); + free(raw); + return GP_ERROR; + } + + /* Sure it *should* get fred automagically, but why take the risk? */ + free(p); + free(raw); + + return GP_OK; +} + +dimagev_info_t *dimagev_import_camera_info(unsigned char *raw_data) { + dimagev_info_t *info; + + if ( ( info = malloc(sizeof(dimagev_info_t)) ) == NULL ) { + perror("dimagev_import_camera_info::unable to allocate dimagev_info_t"); + return NULL; + } + + memcpy(info->vendor, &(raw_data[0]), 8); + info->vendor[7]= (unsigned char) 0; + memcpy(info->model, &(raw_data[8]), 8); + info->model[7]= (unsigned char) 0; + memcpy(info->hardware_rev, &(raw_data[16]), 4); + info->hardware_rev[3]= (unsigned char) 0; + memcpy(info->firmware_rev, &(raw_data[20]), 4); + info->firmware_rev[3]= (unsigned char) 0; + info->have_storage = raw_data[24]; + + return info; +} + +void dimagev_dump_camera_info(dimagev_info_t *info) { + if ( info == NULL ) { + GP_DEBUG( "dimagev_dump_camera_info::unable to read NULL simagev_info_t"); + return; + } + + GP_DEBUG( "========= Begin Camera Info ========="); + GP_DEBUG( "Vendor: %s", info->vendor); + GP_DEBUG( "Model: %s", info->model); + GP_DEBUG( "Hardware Revision: %s", info->hardware_rev); + GP_DEBUG( "Firmware Revision: %s", info->firmware_rev); + GP_DEBUG( "========== End Camera Info =========="); + + return; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/packet.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/packet.c new file mode 100644 index 00000000..165dfa80 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/packet.c @@ -0,0 +1,227 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +/* $Id$ */ + +#include "config.h" + +#include + +#include "dimagev.h" + +#define GP_MODULE "dimagev" + +/* This function takes an array of unsigned chars, as well as the length, and + creates a dimagev_packet ready for sending to the camera. Packets must be + of the form below: + + bytes + -------------------------------------------------------------------- + | 0 | 1 | 2 | 3 | 4 through ( n-4) | n-3 | n-2 | n-1 | + -------------------------------------------------------------------- + | STX | Seq | Length | Payload | Checksum | ETX | + -------------------------------------------------------------------- + + STX and ETX are defined in dimage.h; their values are 0x02 and 0x03. + Seq is the sequence number; start at zero. + Payload is the good stuff. + Checksum is the sum of all bytes 0 through ( n-4 ) mod 65536. + + A packet must be at least eight bytes, with at least one byte of payload. +*/ +dimagev_packet *dimagev_make_packet(const unsigned char *const buffer, unsigned int length, unsigned int seq) { + unsigned int i=0, checksum=0; + dimagev_packet *p; + + if ( ( p = calloc(1, sizeof(dimagev_packet) ) ) == NULL ) { + GP_DEBUG("dimagev_make_packet::unable to allocate packet"); + return NULL; + } + + p->length = length + 7; + + p->buffer[0] = DIMAGEV_STX; + p->buffer[1] = seq & 0x000000ff; + p->buffer[2] = ( p->length & 0x0000ff00) >> 8; + p->buffer[3] = p->length & 0x000000ff; + + memcpy(&(p->buffer[4]), buffer, (unsigned int) length); + + /* Now the footer. */ + for (i=0 ; i < p->length - 3 ; i++ ) + { + checksum += (unsigned int) p->buffer[i]; + } + p->buffer[(p->length - 3)] = (unsigned char) ((checksum & 0x0000ff00) >> 8 ); + p->buffer[(p->length - 2)] = (unsigned char) ( checksum & 0x000000ff ); + p->buffer[(p->length - 1)] = (unsigned char) DIMAGEV_ETX; + + return p; +} + +/* dimagev_verify_packet(): return GP_OK if valid packet, GP_ERROR otherwise. */ +int dimagev_verify_packet(dimagev_packet *p) { + int i=0; + unsigned short correct_checksum=0, current_checksum=0; + + /* All packets must start with DIMAGEV_STX and end with DIMAGEV_ETX. It's an easy check. */ + if ( ( p->buffer[0] != (unsigned char) DIMAGEV_STX ) || ( p->buffer[(p->length - 1)] != (unsigned char) DIMAGEV_ETX ) ) { + GP_DEBUG( "dimagev_verify_packet::packet missing STX and/or ETX"); + return GP_ERROR_CORRUPTED_DATA; + } + + correct_checksum = (p->buffer[(p->length - 3)] * 256) + p->buffer[(p->length - 2)]; + + for ( i = 0 ; i < ( p->length - 3 ) ; i++ ) { + current_checksum += p->buffer[i]; + } + + if ( current_checksum != correct_checksum ) { + GP_DEBUG( "dimagev_verify_packet::checksum bytes were %02x%02x, checksum was %d, should be %d", p->buffer[( p->length - 3) ], p->buffer[ ( p->length -2 ) ], current_checksum, correct_checksum); + return GP_ERROR_CORRUPTED_DATA; + } else { + return GP_OK; + } +} + +dimagev_packet *dimagev_read_packet(dimagev_t *dimagev) { + dimagev_packet *p; + unsigned char char_buffer; + + if ( ( p = malloc(sizeof(dimagev_packet)) ) == NULL ) { + GP_DEBUG("dimagev_read_packet::unable to allocate packet"); + return NULL; + } + + if ( gp_port_read(dimagev->dev, (char *)p->buffer, 4) < GP_OK ) { + GP_DEBUG( "dimagev_read_packet::unable to read packet header - will try to send NAK"); + free(p); + + /* Send a NAK */ + char_buffer = DIMAGEV_NAK; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_read_packet::unable to send NAK"); + return NULL; + } + + /* Who likes recursion? */ + return dimagev_read_packet(dimagev); + + } + + p->length = ( p->buffer[2] * 256 ) + ( p->buffer[3] ); + + if ( gp_port_read(dimagev->dev, (char *)&(p->buffer[4]), ( p->length - 4)) < GP_OK ) { + GP_DEBUG( "dimagev_read_packet::unable to read packet body - will try to send NAK"); + free(p); + + /* Send a NAK */ + char_buffer = DIMAGEV_NAK; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_read_packet::unable to send NAK"); + return NULL; + } + + /* Who likes recursion? */ + return dimagev_read_packet(dimagev); + + } + + /* Now we *should* have a packet. Let's do a sanity check. */ + if ( dimagev_verify_packet(p) < GP_OK ) { + GP_DEBUG( "dimagev_read_packet::got an invalid packet - will try to send NAK"); + free(p); + + /* Send a NAK */ + char_buffer = DIMAGEV_NAK; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_read_packet::unable to send NAK"); + return NULL; + } + + /* Who likes recursion? */ + return dimagev_read_packet(dimagev); + + } + + return p; +} + +void dimagev_dump_packet(dimagev_packet *p) { + int i=0; + + printf("Packet length is %d\n", p->length); + + for ( i = 0 ; i < p->length ; i++ ) { + printf("%02x ",(unsigned int) p->buffer[i]); + } + printf("\n"); + return; +} + +dimagev_packet *dimagev_strip_packet(dimagev_packet *p) { + dimagev_packet *stripped; + + /* All camera packets must start with DIMAGEV_STX and end with DIMAGEV_ETX. */ + /* Packets used as strings shouldn't have these. It's an easy check. */ + if ( ( p->buffer[0] != (unsigned char) DIMAGEV_STX ) || ( p->buffer[(p->length - 1)] != (unsigned char) DIMAGEV_ETX ) ) { + return NULL; + } + + if ( ( stripped = malloc(sizeof(dimagev_packet)) ) == NULL ) { + GP_DEBUG("dimagev_strip_packet::unable to allocate destination packet"); + return NULL; + } + + stripped->length = ( p->length - 7 ); + + memcpy(stripped->buffer, &(p->buffer[4]), stripped->length); + + return stripped; +} + +unsigned char dimagev_decimal_to_bcd(unsigned char decimal) { + unsigned char bcd = (unsigned char) 0; + int tensdigit = 0; + + if ( decimal > (unsigned char) 99 ) { + /* No good way to handle this. */ + return (unsigned char) 0; + } else { + tensdigit = decimal / 10; + bcd = tensdigit * 16; + bcd += decimal % 10; + return bcd; + } +} + +unsigned char dimagev_bcd_to_decimal(unsigned char bcd) { + if ( bcd > 99 ) { + /* The highest value that we can handle in BCD */ + return (unsigned char) 99; + } else { + return ((bcd/16)*10 + (bcd%16)); + } +} + +int dimagev_packet_sequence(dimagev_packet *p) { + return (int) p->buffer[1]; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/status.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/status.c new file mode 100644 index 00000000..07b2c60e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/status.c @@ -0,0 +1,212 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +/* $Id$ */ + +#include "config.h" + +#include "dimagev.h" + +#define GP_MODULE "dimagev" + +/* This is the parent function, who calls most of the functions below. + It returns GP_ERROR if it cannot get the camera data, and GP_OK otherwise. + The subroutines will print out more detained information should they fail. +*/ +int dimagev_get_camera_status(dimagev_t *dimagev) { + dimagev_packet *p, *raw; + unsigned char char_buffer; + + /* Check the device. */ + if ( dimagev->dev == NULL ) { + GP_DEBUG( "dimagev_get_camera_status::device not valid"); + return GP_ERROR_BAD_PARAMETERS; + } + + /* Let's say hello and get the current status. */ + if ( ( p = dimagev_make_packet(DIMAGEV_GET_STATUS, 1, 0)) == NULL ) { + GP_DEBUG( "dimagev_get_camera_status::unable to allocate packet"); + return GP_ERROR_IO; + } + + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_status::unable to write packet"); + free(p); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_status::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_get_camera_status::camera did not acknowledge transmission"); + return dimagev_get_camera_status(dimagev); +/* return GP_ERROR_IO;*/ + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_get_camera_status::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_get_camera_status::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + if ( ( p = dimagev_read_packet(dimagev) ) == NULL ) { + GP_DEBUG( "dimagev_get_camera_status::unable to read packet"); + return GP_ERROR_IO; + } + + char_buffer = DIMAGEV_EOT; + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_status::unable to send EOT"); + free(p); + return GP_ERROR_IO; + } + + if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_get_camera_status::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_get_camera_status::camera did not acknowledge transmission"); + free(p); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_get_camera_status::camera cancels transmission"); + free(p); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_get_camera_status::camera responded with unknown value %x", char_buffer); + free(p); + return GP_ERROR_IO; + } + + if ( ( raw = dimagev_strip_packet(p) ) == NULL ) { + GP_DEBUG( "dimagev_get_camera_status::unable to strip data packet"); + free(p); + return GP_ERROR; + } + + free(p); + + if ( ( dimagev->status = dimagev_import_camera_status(raw->buffer) ) == NULL ) { + GP_DEBUG( "dimagev_get_camera_status::unable to read camera status"); + free(raw); + return GP_ERROR; + } + + free(raw); + return GP_OK; +} + +/* This function converts a few chars of data, such as is given by the camera + to indicate status, and massages it into a dimagev_status_t. +*/ +dimagev_status_t *dimagev_import_camera_status(unsigned char *raw_data) { + dimagev_status_t *processed_data; + + if ( raw_data == NULL ) { + return NULL; + } + + if ( ( processed_data = malloc(sizeof(dimagev_status_t)) ) == NULL ) { + return NULL; + } + + processed_data->battery_level = raw_data[0]; + processed_data->number_images = ( raw_data[1] * 256 ) + ( raw_data[2] ); + processed_data->minimum_images_can_take = ( raw_data[3] * 256 ) + ( raw_data[4] ); + processed_data->busy = ( raw_data[5] & 0x40 ) >> 6; + processed_data->flash_charging = ( raw_data[5] & 0x10 ) >> 4; + processed_data->lens_status = ( raw_data[5] & 0x0c ) >> 2 ; + processed_data->card_status = ( raw_data[5] & 0x03 ); + processed_data->id_number = raw_data[6]; + + return processed_data; +} + +/* This is a fairly simple dump function, using the GPIO debug funtions. It + just prints the current status to stderr in a reasonably readable format. +*/ +void dimagev_dump_camera_status(dimagev_status_t *status) { + + if ( status == NULL ) { + GP_DEBUG( "Unable to dump NULL status"); + return; + } + + GP_DEBUG( "========= Begin Camera Status ========="); + GP_DEBUG( "Battery level: %d", status->battery_level); + GP_DEBUG( "Number of images: %d", status->number_images); + GP_DEBUG( "Minimum images remaining: %d", status->minimum_images_can_take); + GP_DEBUG( "Busy: %s ( %d )", status->busy != (unsigned char) 0 ? "Busy" : "Not Busy", status->busy); + GP_DEBUG( "Flash charging: %s ( %d )", status->flash_charging != (unsigned char) 0 ? "Charging" : "Ready", status->flash_charging); + + GP_DEBUG( "Lens status: "); + switch ( status->lens_status ) { + case 0: + GP_DEBUG( "Normal ( 0 )"); + break; + case 1: case 2: + GP_DEBUG( "Lens direction does not match flash light ( %d )", status->lens_status ); + break; + case 3: + GP_DEBUG( "Lens is not attached ( 3 )"); + break; + default: + GP_DEBUG( "Bad value for lens status ( %d )", status->lens_status); + break; + } + + GP_DEBUG( "Card status: "); + switch ( status->card_status ) { + case 0: + GP_DEBUG( "Normal ( 0 )"); + break; + case 1: + GP_DEBUG( "Full ( 1 )"); + break; + case 2: + GP_DEBUG( "Write-protected ( 2 )"); + break; + case 3: + GP_DEBUG( "Card not valid for this camera ( 3 )"); + break; + default: + GP_DEBUG( "Invalid value for card status ( %d )", status->card_status); + break; + } + + GP_DEBUG( "Card ID Data: %02x", status->id_number); + GP_DEBUG( "========== End Camera Status =========="); + + return; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/upload.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/upload.c new file mode 100644 index 00000000..11da451d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/upload.c @@ -0,0 +1,187 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +/* $Id$ */ + +#include "config.h" + +#include "dimagev.h" + +#define GP_MODULE "dimagev" + +int dimagev_put_file(dimagev_t* dimagev, CameraFile *file) { + unsigned char total_packets= (unsigned char) 0, sent_packets= (unsigned char) 0; + int left_to_send=0; + const char *data; + unsigned long int size; + + dimagev_packet *p; + unsigned char char_buffer, command_buffer[3], *packet_buffer; + + if ( dimagev == NULL ) { + GP_DEBUG( "dimagev_put_file::null camera device"); + return GP_ERROR_BAD_PARAMETERS; + } + + if ( dimagev->data->host_mode != (unsigned char) 1 ) { + + dimagev->data->host_mode = (unsigned char) 1; + + if ( dimagev_send_data(dimagev) < GP_OK ) { + GP_DEBUG( "dimagev_put_file::unable to set host mode"); + return GP_ERROR_IO; + } + } + + gp_file_get_data_and_size (file, &data, &size); + + /* First make the command packet. */ + command_buffer[0] = 0x0e; + if ( ( p = dimagev_make_packet(command_buffer, 1, 0) ) == NULL ) { + GP_DEBUG( "dimagev_put_file::unable to allocate command packet"); + return GP_ERROR_NO_MEMORY; + } + + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_put_file::unable to send command packet"); + free(p); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_put_file::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_put_file::camera did not acknowledge transmission"); + /* Since we haven't sent anything, keep trying until we get a cancel. */ + return dimagev_put_file(dimagev, file); +/* return GP_ERROR_IO;*/ + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_put_file::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_put_file::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + /* Now start chopping up the picture and sending it over. */ + + total_packets = ( size / 993 ) +1; + + /* The first packet is a special case. */ + if ( ( packet_buffer = malloc((size_t)993)) == NULL ) { + GP_DEBUG( "dimagev_put_file::unable to allocate packet buffer"); + return GP_ERROR_NO_MEMORY; + } + + packet_buffer[0]= total_packets; + memcpy(&(packet_buffer[1]), data, (size_t) 992); + + if ( ( p = dimagev_make_packet(packet_buffer, 993, 0) ) == NULL ) { + GP_DEBUG( "dimagev_put_file::unable to allocate command packet"); + free(packet_buffer); + return GP_ERROR_NO_MEMORY; + } + + free(packet_buffer); + + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_put_file::unable to send data packet"); + free(p); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_put_file::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_put_file::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_put_file::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_put_file::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + + left_to_send = ( size - 992 ); + + for ( sent_packets = (unsigned char) 1 ; sent_packets < total_packets ; sent_packets++ ) { + if ( left_to_send > 993 ) { + if ( ( p = dimagev_make_packet((unsigned char *)&(data[(sent_packets * 993) - 1]), + 993, sent_packets) ) == NULL ) { + GP_DEBUG( "dimagev_put_file::unable to allocate data packet"); + free(p); + return GP_ERROR_NO_MEMORY; + } + left_to_send-=993; + } else { + if ( ( p = dimagev_make_packet((unsigned char *)&(data[((sent_packets * 993) - 1)]), + left_to_send, sent_packets) ) == NULL ) { + GP_DEBUG( "dimagev_put_file::unable to allocate data packet"); + return GP_ERROR_NO_MEMORY; + } + } + + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { + GP_DEBUG( "dimagev_put_file::unable to send data packet"); + free(p); + return GP_ERROR_IO; + } else if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { + GP_DEBUG( "dimagev_put_file::no response from camera"); + free(p); + return GP_ERROR_IO; + } + + free(p); + + switch ( char_buffer ) { + case DIMAGEV_ACK: + break; + case DIMAGEV_NAK: + GP_DEBUG( "dimagev_put_file::camera did not acknowledge transmission"); + return GP_ERROR_IO; + case DIMAGEV_CAN: + GP_DEBUG( "dimagev_put_file::camera cancels transmission"); + return GP_ERROR_IO; + default: + GP_DEBUG( "dimagev_put_file::camera responded with unknown value %x", char_buffer); + return GP_ERROR_IO; + } + } + + + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/util.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/util.c new file mode 100644 index 00000000..aa715cba --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/minolta/dimagev/util.c @@ -0,0 +1,110 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright 2000,2001 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +* Boston, MA 02110-1301 USA +* * +**********************************************************************/ + +/* $Id$ */ + +#include "config.h" + +#include "dimagev.h" + +#define GP_MODULE "dimagev" + +/* This function handles the ugliness of converting Y:Cb:Cr data to RGB. The + return value is a pointer to an array of unsigned chars that has 14413) + members. The additional thirteen bytes are the PPM "rawbits" header. + + The Dimage V returns 9600 bytes of data for a thumbnail, in what is referred + to in the documentation as a "Y:Cb:Cr (4:2:2)" format. This means that the + data is in a Y:Cr:Cb solor space, and is horizontally compressed so that + the Cb and Cr values are used for two adjacent bytes. The data essentially + looks like this: + + Y(0):Y(1):Cb(0):Cr(0):Y(2):Y(3) ... Y(9599):Y(9600):Cb(9599):Cr(9599) + + Each of the above is a byte. The image is defined as having 80 pixels of + width and 60 of height, and this information is not included in the 9600 + bytes of data. Since Y:Cb:Cr data is essentially useless, this function + converts it into RGB data, with a PPM "rawbits" header containing the + height and width. The formulae to convert Y:Cb:Cr to RGB are below: + + B(0,0) = (Cb - 128) * (2 - ( 2 * Cr_Coeff )) + Y(0,0) + R(0,0) = (Cr - 128) * (2 - ( 2 * Y_Coeff )) + Y(0,0) + G(0,0) = (Y(0,0) - ( Cr_Coeff * B(0,0) + Y_Coeff * R(0,0)) ) / Cb_Coeff + + Still with me? Good. The values for the three coefficients all add up to + one; the values used here are defined in dimagev.h . The code below is + more complex than this, however; Minolta has not been forthcoming with + the permitted ranges for the values of Y, Cb, and Cr, so I have had to + do some guesswork based on the math. I don't know much about colorspaces, + and I'm not looking to know more. It looks like Cb and Cr have a range + of (0,128) and Y has a range of (0,255). The Dimage V sometimes returns + values for Cb and Cr slightly over this range; I crop these to 128. Also, + sometimes the values returned by the conversion formulae are greater + than 255, which would overflow the unsigned char used to store them, so + I crop these to 0. I used to just drop them to 255, but this lead to + image corruption in dark areas. An afternoon of guesswork later, I tried + cutting them to 0, and it works well enough for me. + + I could not have possibly figured this out without the help of these sites: + http://www.butaman.ne.jp/~tsuruzoh/Computer/Digicams/exif-e.html + http://www.efg2.com/lab/Graphics/Colors/YUV.htm#411 + http://www.dcs.ed.ac.uk/home/mxr/gfx/2d-hi.html +*/ +unsigned char *dimagev_ycbcr_to_ppm(unsigned char *ycbcr) { + unsigned char *rgb_data, *ycrcb_current, *rgb_current; + int count=0; + unsigned int magic_r, magic_g, magic_b; + + if ( ( rgb_data = malloc( 14413 ) ) == NULL ) { + GP_DEBUG( "dimagev_ycbcr_to_ppm::unable to allocate buffer for Y:Cb:Cr conversion"); + return NULL; + } + + ycrcb_current = ycbcr; + rgb_current = &(rgb_data[13]); + + /* This is the header for a PPM "rawbits" bitmap of size 80x60. */ + strncpy((char *)rgb_data, "P6\n80 60\n255\n", 13); + + for ( count = 0 ; count < 9600 ; count+=4, ycrcb_current+=4, rgb_current+=6 ) { + magic_b = ( ( ycrcb_current[2] > (unsigned char) 128 ? 128 : ycrcb_current[2] ) - 128 ) * ( 2 - ( 2 * CR_COEFF ) ) + ycrcb_current[0]; + rgb_current[2] = (unsigned char) ( magic_b > 255 ? 0 : magic_b ); + magic_r = ( ( ycrcb_current[3] > (unsigned char) 128 ? 128 : ycrcb_current[3] ) - 128 ) * ( 2 - ( 2 * Y_COEFF ) ) + ycrcb_current[0]; + rgb_current[0] = (unsigned char) ( magic_r > 255 ? 0 : magic_r ); + magic_g = (( ycrcb_current[0] - ( CR_COEFF * rgb_current[2] ) ) - ( Y_COEFF * rgb_current[0])) / CB_COEFF ; + rgb_current[1] = (unsigned char) ( magic_g > 255 ? 0 : magic_g ); + + /* Wipe everything clean. */ + magic_b = magic_r = magic_g = 0; + + magic_b = ( ( ycrcb_current[2] > (unsigned char) 128 ? 128 : ycrcb_current[2] ) - 128 ) * ( 2 - ( 2 * CR_COEFF ) ) + ycrcb_current[1]; + rgb_current[5] = (unsigned char) ( magic_b > 255 ? 0 : magic_b ); + magic_r = ( ( ycrcb_current[3] > (unsigned char) 128 ? 128 : ycrcb_current[3] ) - 128 ) * ( 2 - ( 2 * Y_COEFF ) ) + ycrcb_current[1]; + rgb_current[3] = (unsigned char) ( magic_r > 255 ? 0 : magic_r ); + magic_g = (( ycrcb_current[1] - ( CR_COEFF * rgb_current[5] ) ) - ( Y_COEFF * rgb_current[3])) / CB_COEFF ; + rgb_current[4] = (unsigned char) ( magic_g > 255 ? 0 : magic_g ); + + /* Wipe everything clean. */ + magic_b = magic_r = magic_g = 0; + } + + return rgb_data; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/AUTHOR b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/AUTHOR new file mode 100644 index 00000000..52790f55 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/AUTHOR @@ -0,0 +1,3 @@ +Henning Zabel + +Gphoto2 Port by Marcus Meissner diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/ChangeLog new file mode 100644 index 00000000..9cbf24d6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/ChangeLog @@ -0,0 +1,17 @@ +2007-12-30 Marcus Meissner + + * *.[ch]: Fixed signedness warnings, use unsigned char* + more consistently. + +2002-07-30 Lutz Müller + + * rs232.c: Change != GP_OK to < GP_OK. + +2001-03-25 Marcus Meissner + + * *: forward ported from gphoto 0.4.3. + + I doesnt work for me due to USB interrupt problems which + will hopefully clear up in the future. + + Someone please test if you have a serial cable. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/Makefile-files new file mode 100644 index 00000000..88977519 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/Makefile-files @@ -0,0 +1,14 @@ +# -*- Makefile -*- + +EXTRA_DIST += mustek/AUTHOR mustek/README.mustek mustek/ChangeLog mustek/STATUS +camlibdoc_DATA += mustek/README.mustek + +EXTRA_LTLIBRARIES += mustek.la + +mustek_la_SOURCES = \ + mustek/mdc800.c mustek/core.c mustek/image.c \ + mustek/io.c mustek/rs232.c mustek/usb.c mustek/core.h mustek/image.h \ + mustek/io.h mustek/mdc800_spec.h mustek/print.h mustek/rs232.h mustek/usb.h +mustek_la_LDFLAGS = $(camlib_ldflags) +mustek_la_DEPENDENCIES = $(camlib_dependencies) +mustek_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/README.mustek b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/README.mustek new file mode 100644 index 00000000..8f713d3a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/README.mustek @@ -0,0 +1,35 @@ +Driver for Mustek MDC 800 cameras by Henning Zabel + +The driver supports the rs232 and the USB interface of the +Mustek MDC800 Digital Camera. It implements all function +to download pictures, view their thumbnails or delete them. +It is also possible to take photos with the library. +In the GUI of this driver you can select some preferences +for this. + +On rs232 it is possible to use every supported Baudrate. The +Baudrate is selectable in the GUI. + +History : + +10.01.2000 The Library was ported to the ne iolib. It uses also + the USB Interfave from Johannes Erdfeld. This makes it + unneccessary to have a special Kernelmodul for the + Mustek. + In camera.h there is added a new entry, so you can select + wether you want to use USB or rs232. This is needed + because the iolib does not support autodetection for this. + +19.11.1999 Autoprobe of the Baudrate when starting (opening) this + driver was added. This makes it possible to reopen the + camera after an error, when the camera has been set + to another baudrate than 57k. + Automatic command retry has moved from rs232 to io, now + it also touches usb. + +17.11.1999 Rewrite of the GUI: Some useless Function where deleted. + The GUI now uses ComboBoxes. + Added support to select Baudrate of the camera in the GUI. + +07.11.1999 This lib was posted to gphoto, after adapting the GUI + from the earlier driver. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/STATUS b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/STATUS new file mode 100644 index 00000000..ccb20b57 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/STATUS @@ -0,0 +1,10 @@ +Current Status: + +It compiles. + +Due to the USB Interrupt reading the driver is not yet working with USB. +Sometimes the correct interrupt data is transfered, most time it isn't. + +I do not have a serial cable :/ + +- Marcus diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/core.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/core.c new file mode 100644 index 00000000..d2ebaae0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/core.c @@ -0,0 +1,809 @@ +/* + * Copyright 1999/2000 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * gphoto driver for the Mustek MDC800 Digital Camera. The driver + * supports rs232 and USB. + */ + +#include +#include + +#include +#include + +#include "core.h" +#include "print.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define _(String) (String) +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +/*---------------------- Funktion for Communication ------------------------ */ + +/* + * Send the Initial Command. If the device is rs232 this + * function will probe for the baudrate. + */ +static int +mdc800_sendInitialCommand (Camera *camera, unsigned char* answer) +{ + int baud_rates[3]={19200,57600,115200}; + int rate,ret; + unsigned char command [8]={COMMAND_BEGIN,COMMAND_INIT_CONNECT,0,0,0,COMMAND_END,0,0}; + + if (camera->port->type == GP_PORT_USB) + return mdc800_io_sendCommand_with_retry(camera->port,command,answer,8,1,1); + for (rate=0;rate<3;rate++) + { + GPPortSettings settings; + + ret = gp_port_get_settings(camera->port,&settings); + if (ret != GP_OK) return ret; + settings.serial.speed = baud_rates[rate]; + ret = gp_port_set_settings(camera->port, settings); + if (ret != GP_OK) return ret; + if (GP_OK==mdc800_io_sendCommand_with_retry(camera->port,command,answer,8,1,1)) { + printCoreNote("RS232 Baudrate probed at %d.\n",baud_rates[rate]); + return GP_OK; + } + printCoreError("Probing RS232 Baudrate with %d fails.\n",baud_rates[rate]); + } + printCoreError ("Probing failed completely.\n"); + return GP_ERROR_IO; +} + +/* + * Opens the Camera: + * (camera is already opened by gphoto2) + * (1) send Initial command + */ +int mdc800_openCamera (Camera *camera) +{ + unsigned char answer [8]; + int i,ret; + + if (camera->port->type == GP_PORT_USB) { + printCoreNote ("Device Registered as USB.\n"); + } else { + printCoreNote ("Device Registered as RS232. \n"); + } + + camera->pl = malloc(sizeof(struct _CameraPrivateLibrary)); + if (!camera->pl) + return GP_ERROR_NO_MEMORY; + camera->pl->system_flags_valid = 0; + camera->pl->memory_source = -1; + + /* Send initial command */ + ret = mdc800_sendInitialCommand(camera,answer); + if (ret != GP_OK) + { + printCoreError ("(mdc800_openCamera) can't send initial command.\n"); + return ret; + } + printCoreNote ("Firmware info (last 5 Bytes) : "); + for (i=0; i<8; i++) + printCoreNote ("%i ", answer[i]); + printCoreNote ("\n"); + camera->pl->system_flags_valid=0; + camera->pl->memory_source=-1; + ret = mdc800_setDefaultStorageSource(camera); + if (ret != GP_OK) { + printCoreError ("(mdc800_openCamera) can't set Storage Source.\n"); + return ret; + } + return GP_OK; +} + +int mdc800_closeCamera (Camera *camera) +{ + if (camera->pl) { + free(camera->pl); + camera->pl = NULL; + } + return GP_OK; +} + + +/* + * Sets the camera speed to the defined value: + * 0: 19200, 1:57600, 2: 115200 + */ +int mdc800_changespeed (Camera *camera,int new) +{ + int baud_rate [3]={19200,57600,115200}; + GPPortSettings settings; + int ret,oldrate; + + printFnkCall ("(mdc800_changespeed) called.\n"); + if (camera->port->type != GP_PORT_SERIAL) /* USB ... */ + return GP_OK; + + gp_port_get_settings(camera->port,&settings); + + if (settings.serial.speed == baud_rate[new]) /* nothing to do */ + return GP_OK; + + for (oldrate=0;oldrateport,COMMAND_CHANGE_RS232_BAUD_RATE,new,oldrate,0,0,0); + if (ret != GP_OK) + { + printCoreError ("(mdc800_changespeed) can't send first command.\n"); + return GP_ERROR_IO; + } + settings.serial.speed = baud_rate[new]; + ret = gp_port_set_settings(camera->port,settings); + if (ret != GP_OK) + { + printCoreError ("(mdc800_changespeed) Changing Baudrate fails.\n"); + return ret; + } + /* Second Command */ + ret = mdc800_io_sendCommand(camera->port,COMMAND_CHANGE_RS232_BAUD_RATE,new,new,0,0,0); + if (ret != GP_OK) + { + printCoreError ("(mdc800_changespeed) can't send second command.\n"); + return ret; + } + printCoreNote ("Set Baudrate to %d\n", baud_rate[new]); + return GP_OK; +} + +/* + * Get the current Bautrate + */ +int mdc800_getSpeed (Camera *camera, int *speed) +{ + int rate, ret, baud_rate [3]={19200,57600,115200}; + GPPortSettings settings; + + if (camera->port->type != GP_PORT_SERIAL) + return GP_ERROR_IO; + + ret = gp_port_get_settings(camera->port,&settings); + if (ret!=GP_OK) return ret; + + for (rate=0;rate<3;rate++) + if (settings.serial.speed == baud_rate[rate]) + break; + if (rate == 3) + return GP_ERROR_IO; + *speed = rate; + return GP_OK; +} + + +/* + * Sets Target + * 1: image, 2:thumbnail, 3:video, 4:not setting + */ +int mdc800_setTarget (Camera *camera,int value) +{ + return mdc800_io_sendCommand(camera->port,COMMAND_SET_TARGET,value,0,0,0,0); +} + + +/* + * Loads a thumbnail from the cam . + */ +int mdc800_getThumbnail (Camera *camera,int index, void **data, int *size) +{ + int ret; + + printFnkCall ("(mdc800_getThumbNail) called for %i . \n",index); + + *size = 4096; + *data = malloc(4096); + if (!*data) + return GP_ERROR_NO_MEMORY; + ret = mdc800_io_sendCommand(camera->port,COMMAND_GET_THUMBNAIL,index/100,(index%100)/10,index%10,*data,4096); + if (ret != GP_OK) + { + printCoreError ("(mdc800_getThumbNail) can't get Thumbnail.\n"); + return ret; + } + mdc800_correctImageData(*data,1,0,camera->pl->memory_source == 1); + return GP_OK; +} + + + +/* + * Load an Image from the cam .. + */ +int mdc800_getImage (Camera *camera, int nr, void **data, int *size) +{ + unsigned char buffer[3]; + int imagequality=-1; + int imagesize=0; + int ret; + + printFnkCall ("(mdc800_getImage) called for %i . \n",nr); + + ret = mdc800_setTarget (camera,1); + if (GP_OK != ret) { + printCoreError ("(mdc800_getImage) can't set Target. \n"); + return ret; + } + ret = mdc800_io_sendCommand(camera->port,COMMAND_GET_IMAGE_SIZE,nr/100,(nr%100)/10,nr%10,buffer,3); + if (ret != GP_OK) + { + printCoreError ("(mdc800_getImage) request for Imagesize of %i fails.\n",nr); + return ret; + } + + imagesize = buffer[0]*65536+buffer[1]*256+buffer[2]; + printCoreNote ("Imagesize of %i is %i ",nr,imagesize); + switch (imagesize/1024) + { + case 48: + imagequality=0; + printCoreNote ("(Economic Quality 506x384)\n"); + break; + case 128: + imagequality=1; + printCoreNote ("(Standard Quality 1012x768)\n"); + break; + case 320: + imagequality=2; + printCoreNote ("(High Quality 1012x768)\n"); + break; + case 4: + printCoreNote ("(ThumbNail ? 112x96)\n"); + imagequality=-1; + break; + default: + printCoreNote ("(not detected)\n"); + return 0; + } + *size = imagesize; + *data = malloc(imagesize); + ret = mdc800_io_sendCommand(camera->port,COMMAND_GET_IMAGE,nr/100,(nr%100)/10,nr%10,*data,imagesize); + if (ret != GP_OK) { + printCoreError ("(mdc800_getImage) request fails for Image %i.\n",nr); + return 0; + } + mdc800_correctImageData(*data,imagequality == -1,imagequality,camera->pl->memory_source == 1); + return GP_OK; +} + + + +/* ------ SystemStatus of the Camera ------------------------------------------/ */ + + +/* Load the Status from the camera if necessary */ +int mdc800_getSystemStatus (Camera *camera) +{ + int ret = GP_OK; + int tries = 3; + if (camera->pl->system_flags_valid) + return GP_OK; + fprintf(stderr,"mdc800_getSystemStatus entered...\n"); + while (tries--) { + ret = mdc800_io_sendCommand(camera->port,COMMAND_GET_SYSTEM_STATUS,0,0,0,camera->pl->system_flags,4); + if (ret == GP_OK) + break; + } + if (ret!=GP_OK) + { + printCoreError ("(mdc800_getSystemStatus) request fails.\n"); + return ret; + } + fprintf(stderr,"mdc800_getSystemStatus leaving.\n"); + camera->pl->system_flags_valid=1; + return GP_OK; +} + + +int mdc800_isCFCardPresent(Camera *camera) +{ + mdc800_getSystemStatus(camera); + if (camera->pl->system_flags_valid) + return ((camera->pl->system_flags[0]&1) == 0); + else + { + printCoreError ("(mdc800_isCFCardPresent) detection fails.\n"); + return 0; + } +} + + +int mdc800_isBatteryOk(Camera *camera) +{ + mdc800_getSystemStatus(camera); + return ((camera->pl->system_flags[0]&4) == 0)?1:0; +} + + +/* + * Gets CamMode. + * 0: Camera, 1: Playback, 2:VCam + */ +int mdc800_getMode(Camera *camera) +{ + mdc800_getSystemStatus(camera); + if ((camera->pl->system_flags[1]&16) == 0) + return ((camera->pl->system_flags[1]&32) == 0)?1:0; + else + return 2; +} + + +/* + * Return status of Flashlight. The + * answer is one of MDC800_FLASHLIGHT_ Mask. + */ +int mdc800_getFlashLightStatus(Camera *camera) +{ + mdc800_getSystemStatus(camera); + return (camera->pl->system_flags[3]&7); +} + + +int mdc800_isLCDEnabled(Camera *camera) +{ + mdc800_getSystemStatus(camera); + return ((camera->pl->system_flags[1]&4) == 4); +} + + +int mdc800_isMenuOn(Camera *camera) +{ + mdc800_getSystemStatus(camera); + return ((camera->pl->system_flags[1]&1) == 1); +} + +int mdc800_isAutoOffEnabled(Camera *camera) +{ + mdc800_getSystemStatus(camera); + return ((camera->pl->system_flags[1]&8) == 8); +} + +/* ----- Other fine functions------------------------------------------------- */ + + +/* + * Sets Source of Images : + * 0: FlashCard, 1: Internal Memory + */ +int mdc800_setStorageSource (Camera *camera,int flag) +{ + int ret; + if (flag == camera->pl->memory_source) + return GP_OK; + + /* Check wether FlashCard is present */ + if ((flag == 0) && mdc800_isCFCardPresent (camera)) + { + printCoreNote ("There's is no FlashCard in the Camera !\n"); + return GP_OK; + } + printFnkCall ("(mdc800_setStorageSource) called with flag=%i\n",flag); + ret=mdc800_io_sendCommand(camera->port,COMMAND_SET_STORAGE_SOURCE,flag,0,0,0,0); + if (ret != GP_OK) + { + if (flag) + { + printCoreError ("Can't set InternalMemory as Input!\n"); + } + else + { + printCoreError ("Can't set FlashCard as Input!\n"); + } + return ret; + } + + printCoreNote ("Storage Source set to "); + if (flag) { + printCoreNote ("Internal Memory.\n"); + } else { + printCoreNote ("Compact Flash Card.\n"); + } + camera->pl->system_flags_valid=0; + camera->pl->memory_source=flag; + return GP_OK; +} + + +/* + * Sets the default storage source. + * Default means, that if there's a FlashCard, the Flashcard + * is used, else the InternalMemory + * + * If camera->pl->memory_source is set ( after driver has been closed ), + * this value will be used. + */ +int mdc800_setDefaultStorageSource (Camera *camera) +{ + int ret,source; + + if (camera->pl->memory_source != -1) + { + source=camera->pl->memory_source; + camera->pl->memory_source=-1; + } + else + { + source=mdc800_isCFCardPresent (camera)?0:1; + } + ret=mdc800_setStorageSource (camera,source); + if (ret!=GP_OK) + { + printCoreError ("(mdc800_setDefaultStorageSource) Setting Storage Source fails\n"); + return ret; + } + return GP_OK; +} + + +/* + * Returns what StorageSource is selected by the driver + * 0: FlashCard, 1: Internal + */ +int mdc800_getStorageSource(Camera *camera) +{ + if (camera->pl->memory_source == -1) + mdc800_setDefaultStorageSource(camera); + return camera->pl->memory_source; +} + + + +/* + * Sets Camera to Camera- or PlaybackMode + * m: 0 Camera, 1 Playback, 2:VCam (USB) + */ +int mdc800_setMode (Camera *camera,int m) +{ + int last=mdc800_getMode (camera); + int ret; +/* + if (mdc800_getMode () == m) + return 1; +*/ + switch (m) + { + case 0: + ret = mdc800_io_sendCommand(camera->port,COMMAND_SET_CAMERA_MODE,0,0,0,0,0); + if (ret != GP_OK) + { + printCoreError ("(mdc800_setMode) setting Camera Mode fails\n"); + return ret; + } + if (last != m) + printCoreNote ("Mode set to Camera Mode.\n"); + break; + + case 1: + ret = mdc800_io_sendCommand(camera->port,COMMAND_SET_PLAYBACK_MODE,0,0,0,0,0); + if (ret != GP_OK) + { + printCoreError ("(mdc800_setMode) setting Playback Mode fails\n"); + return ret; + } + if (last != m) + printCoreNote ("Mode set to Payback Mode.\n"); + break; + + } + camera->pl->system_flags_valid=0; + return GP_OK; +} + + +/* + * Sets up Flashlight. The waitForCommit waits a long + * time, to give the camera enough time to load the + * flashlight. + */ +int mdc800_setFlashLight (Camera* camera,int value) +{ + int command=0,redeye_flag=0,ret; + + if (mdc800_getFlashLightStatus (camera) == value) + return GP_OK; + + redeye_flag=(value&MDC800_FLASHLIGHT_REDEYE) != 0; + + if ((value&MDC800_FLASHLIGHT_ON) != 0) + command=COMMAND_SET_FLASHMODE_ON; + else if ((value&MDC800_FLASHLIGHT_OFF) != 0) + { + command=COMMAND_SET_FLASHMODE_OFF; + redeye_flag=0; + } + else + command=COMMAND_SET_FLASHMODE_AUTO; + + camera->pl->system_flags_valid=0; + ret = mdc800_io_sendCommand(camera->port,command,redeye_flag,0,0,0,0); + if (ret != GP_OK) + { + printCoreError ("(mdc800_setFlashLight) sending command fails.\n"); + return ret; + } + printCoreNote ("%s", mdc800_getFlashLightString(value)); + printCoreNote ("\n"); + return GP_OK; +} + +/* + * Gets a String with the Text of the Flashlight-Status + * depending on value + */ +char* mdc800_getFlashLightString (int value) +{ + switch (value) + { + case ( MDC800_FLASHLIGHT_REDEYE | MDC800_FLASHLIGHT_AUTO ) : + return _("FlashLight : Auto (RedEye Reduction)"); + case MDC800_FLASHLIGHT_AUTO : + return _("FlashLight : Auto"); + case ( MDC800_FLASHLIGHT_REDEYE | MDC800_FLASHLIGHT_ON ) : + return _("FlashLight : On (RedEye Reduction)"); + case MDC800_FLASHLIGHT_ON : + return _("FlashLight : On"); + case MDC800_FLASHLIGHT_OFF : + return _("FlashLight : Off"); + } + return _("FlashLight : undefined"); +} + + +/* + * Enable/Disable the LCD + */ +int mdc800_enableLCD (Camera*camera,int enable) +{ + int ret,command; + if (enable == mdc800_isLCDEnabled (camera)) + return GP_OK; + + if (enable) + command=COMMAND_SET_LCD_ON; + else + command=COMMAND_SET_LCD_OFF; + + camera->pl->system_flags_valid=0; + ret = mdc800_io_sendCommand (camera->port,command,0,0,0,0,0); + if (ret!=GP_OK) + { + printCoreError ("(mdc800_enableLCD) can't enable/disable LCD\n"); + return ret; + } + if (enable) + { + printCoreNote ("LCD is enabled\n"); + } + else + { + printCoreNote ("LCD is disabled\n"); + } + return GP_OK; +} + + +/* + * Shows the specified Image, the Camera has to + * be in Playback Mode ! + */ +int mdc800_playbackImage (Camera *camera,int nr ) +{ + int ret; + ret = mdc800_getMode (camera); + if (ret != GP_OK) + { + printCoreError ("(mdc800_showImage) camera must be in Playback Mode !"); + return ret; + } + + ret = mdc800_io_sendCommand (camera->port,COMMAND_PLAYBACK_IMAGE,nr/100,(nr%100)/10,nr%10,0,0); + if (ret!=GP_OK) + { + printCoreError ("(mdc800_showImage) can't playback Image %i \n",nr); + return ret; + } + return GP_OK; +} + +/* + * With ths function you can get information about, how many + * pictures can be stored in the free memory of the camera. + * + * h: High Quality, s: Standard Quality, e: Economy Quality + * If one of these Pointers are 0 the will be ignored. + */ +int mdc800_getRemainFreeImageCount (Camera *camera,int* h,int* s,int *e) +{ + unsigned char data [6]; + int ret; + + ret = mdc800_io_sendCommand (camera->port,COMMAND_GET_REMAIN_FREE_IMAGE_COUNT,0,0,0,data,6); + if (ret != GP_OK) + { + printCoreError ("(mdc800_getRemainFreeImageCount) Error sending Command.\n"); + return ret; + } + + if (h) + *h=(int)((data[0]/16)*1000)+((data[0]%16)*100)+((data[1]/16)*10)+(data[1]%16); + if (s) + *s=(int)((data[2]/16)*1000)+((data[2]%16)*100)+((data[3]/16)*10)+(data[3]%16); + if (e) + *e=(int)((data[4]/16)*1000)+((data[4]%16)*100)+((data[5]/16)*10)+(data[5]%16); + return GP_OK; +} + + +/* + * Get Image Quallity + * 0: Economic, 1:Standard, 2:High + */ +int mdc800_getImageQuality (Camera *camera, unsigned char *retval) +{ + int ret; + ret = mdc800_io_sendCommand (camera->port,COMMAND_GET_IMAGE_QUALITY,0,0,0,retval,1); + if (ret!=GP_OK) + { + printCoreError ("(mdc800_getImageQuality) fails.\n"); + return ret; + } + return GP_OK; +} + + +/* + * Set Image Quality, return GP_OK if ok. + */ +int mdc800_setImageQuality (Camera *camera,int v) +{ + return mdc800_io_sendCommand (camera->port,COMMAND_SET_IMAGE_QUALITY,v,0,0,0,0); +} + + + +/* + * Set the WhiteBalance value + * 1:auto ,2:indoor, 4:indoor with flashlight, 8:outdoor + */ +int mdc800_setWB (Camera *camera, int v) +{ + return mdc800_io_sendCommand(camera->port,COMMAND_SET_WB,v,0,0,0,0); +} + + +/* + * Return the Exposure settings and W.B. + */ +int mdc800_getWBandExposure (Camera *camera,int* exp, int* wb) +{ + unsigned char retval[2]; + int ret; + + /* What's that here is a real diffenrence between USB and RS232 */ + int toggle= (camera->port->type == GP_PORT_USB); + + ret = mdc800_io_sendCommand(camera->port,COMMAND_GET_WB_AND_EXPOSURE,0,0,0,retval,2); + if (ret == GP_OK) + { + (*exp)= retval[toggle]-2; + (*wb)= retval[1-toggle]; + return 1; + } + printCoreError ("(mdc800_getWBandExposure) fails.\n"); + return 0; +} + + +/* + * Sets the Exposure Value + */ +int mdc800_setExposure (Camera *camera,int v) +{ + return mdc800_io_sendCommand(camera->port,COMMAND_SET_EXPOSURE,v+2,0,0,0,0); +} + +/* + * Sets the Exposure Mode + * 0: MTRX 1:CNTR + */ +int mdc800_setExposureMode (Camera *camera,int m) +{ + return mdc800_io_sendCommand (camera->port,COMMAND_SET_EXPOSURE_MODE,m,0,0,0,0); +} + + +/* + * return the Exposure Mode or -1 + */ +int mdc800_getExposureMode (Camera *camera,int *retval) +{ + unsigned char cretval; + int ret; + ret = mdc800_io_sendCommand (camera->port,COMMAND_GET_EXPOSURE_MODE,0,0,0,&cretval,1); + if (ret == GP_OK) + *retval = cretval; + return ret; +} + +/* + * Enable, Disable the Menu + */ +int mdc800_enableMenu (Camera *camera,int enable) +{ + char command=enable?COMMAND_SET_MENU_ON:COMMAND_SET_MENU_OFF; + + if (enable == mdc800_isMenuOn (camera)) + return GP_OK; + camera->pl->system_flags_valid=0; + return mdc800_io_sendCommand (camera->port,command,0,0,0,0,0); +} + +int mdc800_number_of_pictures (Camera *camera, int *nrofpics) +{ + unsigned char answer [2]; + int ret; + + printFnkCall ("(mdc800_number_of_pictures) called.\n"); + + ret= mdc800_setTarget (camera, 1); + if (ret != GP_OK) + { + printAPIError ("(mdc800_number_of_pictures) can't set Target\n"); + return ret; + } + +/* + if (!mdc800_setMode (1)) + { + printError ("(mdc800_number_of_pictures) can't set Mode\n"); + mdc800_close (); + return 0; + } +*/ + + ret = mdc800_io_sendCommand(camera->port,COMMAND_GET_NUM_IMAGES,0,0,0,answer,2); + if (ret != GP_OK) + { + printAPIError ("(mdc800_getNumberOfImages) request Number of Pictures fails.\n"); + return ret; + } + *nrofpics=answer[0]*256+answer [1]; + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/core.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/core.h new file mode 100644 index 00000000..780f95f2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/core.h @@ -0,0 +1,94 @@ +/* + * Copyright 1999/2000 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef _MUSTEK_CORE_H +#define _MUSTEK_CORE_H + +#include "io.h" +#include "mdc800_spec.h" +#include "image.h" + +#define MDC800_FLASHLIGHT_REDEYE 1 +#define MDC800_FLASHLIGHT_ON 2 +#define MDC800_FLASHLIGHT_OFF 4 +#define MDC800_FLASHLIGHT_AUTO 0 + +struct _CameraPrivateLibrary { + unsigned char system_flags[4]; + int system_flags_valid; + int memory_source; +}; + +/* -------------------------------------------------------------------------- */ + +int mdc800_openCamera (Camera*); +int mdc800_closeCamera (Camera*); + +int mdc800_changespeed (Camera*,int); +int mdc800_getSpeed (Camera*,int *); + +/* - Camera must be open for these functions -------------------------------- */ + +int mdc800_setTarget (Camera *camera, int); + + +int mdc800_getThumbnail (Camera *cam, int nr, void **data,int *size); +int mdc800_getImage (Camera *cam,int nr, void **data, int *size); + +/* ------- SystemStatus ---------------------------------------------------- */ + +int mdc800_getSystemStatus(Camera *); +int mdc800_isCFCardPresent(Camera *); +int mdc800_getMode(Camera*); +int mdc800_getFlashLightStatus(Camera*); +int mdc800_isLCDEnabled(Camera*); +int mdc800_isBatteryOk(Camera*); +int mdc800_isMenuOn(Camera*); +int mdc800_isAutoOffEnabled(Camera*); + +int mdc800_getStorageSource(Camera*); + +/* ------- Other Functions -------------------------------------------------- */ + +/* Most of these Function depends on the Storage Source */ + +int mdc800_setDefaultStorageSource(Camera*); +int mdc800_setStorageSource (Camera *,int); +int mdc800_setMode (Camera *,int); +int mdc800_enableLCD (Camera*,int); +int mdc800_playbackImage (Camera*,int ); +int mdc800_getRemainFreeImageCount (Camera*,int*,int* ,int*); +int mdc800_setFlashLight (Camera*,int ); + +char* mdc800_getFlashLightString (int); + +int mdc800_getImageQuality (Camera*,unsigned char *retval); +int mdc800_setImageQuality (Camera*,int); + +int mdc800_getWBandExposure (Camera*,int*, int*); +int mdc800_setExposure (Camera*,int); + +int mdc800_setWB (Camera*,int); + +int mdc800_setExposureMode (Camera*,int); +int mdc800_getExposureMode (Camera*,int *); + +int mdc800_enableMenu (Camera *,int); + +int mdc800_number_of_pictures (Camera *camera, int *nrofpics); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/image.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/image.c new file mode 100644 index 00000000..3be0af57 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/image.c @@ -0,0 +1,223 @@ +/* + * Copyright 1999 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * gphoto driver for the Mustek MDC800 Digital Camera. The driver + * supports rs232 and USB. It automatically detects which Kernelnode + * is used. + */ + +#include +#include "image.h" +#include "print.h" + +static const unsigned char Huffman_Tab[424] = +{ + 0xFF,0xC4,0x01,0xA2, + /* DC_Luminance_Bits */ + 0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, + /* DC_Luminance_Value */ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0x0A, 0x0B, + /* DC_Chrominance_Bits */ + 1, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, + /* DC_Chrominance_Value */ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0x0A, 0x0B, + /* AC_Luminance_Bits */ + 0x10, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 0x7D, + /* AC_Luminance_Value */ + 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, + 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07, + 0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xA1, 0x08, + 0x23, 0x42, 0xB1, 0xC1, 0x15, 0x52, 0xD1, 0xF0, + 0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0A, 0x16, + 0x17, 0x18, 0x19, 0x1A, 0x25, 0x26, 0x27, 0x28, + 0x29, 0x2A, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, + 0x3A, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, + 0x4A, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, + 0x5A, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, + 0x6A, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, + 0x7A, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, + 0x8A, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, + 0x99, 0x9A, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, + 0xA8, 0xA9, 0xAA, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, + 0xB7, 0xB8, 0xB9, 0xBA, 0xC2, 0xC3, 0xC4, 0xC5, + 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xD2, 0xD3, 0xD4, + 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xE1, 0xE2, + 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, + 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, + /* AC_Chrominance_Bits */ + 0x11, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 0x77, + /* AC_Chrominance_Value */ + 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21, + 0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71, + 0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91, + 0xA1, 0xB1, 0xC1, 0x09, 0x23, 0x33, 0x52, 0xF0, + 0x15, 0x62, 0x72, 0xD1, 0x0A, 0x16, 0x24, 0x34, + 0xE1, 0x25, 0xF1, 0x17, 0x18, 0x19, 0x1A, 0x26, + 0x27, 0x28, 0x29, 0x2A, 0x35, 0x36, 0x37, 0x38, + 0x39, 0x3A, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, + 0x49, 0x4A, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, + 0x59, 0x5A, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, + 0x69, 0x6A, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, + 0x79, 0x7A, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, + 0x88, 0x89, 0x8A, 0x92, 0x93, 0x94, 0x95, 0x96, + 0x97, 0x98, 0x99, 0x9A, 0xA2, 0xA3, 0xA4, 0xA5, + 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xB2, 0xB3, 0xB4, + 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xC2, 0xC3, + 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xD2, + 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, + 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, + 0xEA, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, + /* Blank data */ + 0xFF, 0xFE, 0x01, 0x8F +}; + + +static const unsigned char File_Header[41]= +{ + /* JPG file start marker */ + 0xFF, 0xD8, + /* Application marker */ + 0xFF, 0xE0, 0x00, 0x10, 0x4A, 0x46, 0x49, 0x46, 0x00, 0x01, + 0x00, 0x01, 0x00, 0x48, 0x00, 0x48, 0x00, 0x00, + /* Application marker */ + 0xFF, 0xE1, 0x00, 0x0E, 0x43, 0x41, 0x4D, 0x2D, 0x4D, 0x44, + 0x43, 0x38, 0x30, 0x30, 0x00, 0x00, + /* Quantization table marker */ + 0xFF, 0xDB, 0x00, 0x84, 0x00 +}; + + +static const unsigned char File_Header1[24]= +{ + /* JPG file start marker */ + 0xFF, 0xD8, + /* Application marker */ + 0xFF, 0xE0, 0x00, 0x10, 0x4A, 0x46, 0x49, 0x46, 0x00, 0x01, + 0x00, 0x01, 0x00, 0x48, 0x00, 0x48, 0x00, 0x00, + /* Application marker */ + 0xFF, 0xE1, 0x0F, 0xEC +}; + +static const unsigned char File_Header2[34]= +{ + /* JPG file start marker */ + 0xFF, 0xD8, + /* Application marker */ + 0xFF, 0xE0, 0x00, 0x10, 0x4A, 0x46, 0x49, 0x46, 0x00, 0x01, + 0x00, 0x01, 0x00, 0x48, 0x00, 0x48, 0x00, 0x00, + /* Application marker */ + 0xFF, 0xE1, 0x00, 0x0E, 0x43, 0x41, 0x4D, 0x2D, 0x4D, 0x44, + 0x43, 0x38, 0x30, 0x30 +}; + + +/* For Thumbnail: 112x96 */ +static const unsigned char SOF_SOS1[33]= +{ + /* Start of frame marker */ + 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x00, 0x60, 0x00, 0x70, 0x03, + 0x01, 0x21, 0x00, 0x02, 0x11, 0x01, 0x03, 0x11, 0x01, + /* Start of scan marker */ + 0xFF, 0xDA, 0x00, 0x0C, 0x03, 0x01, 0x00, 0x02, 0x11, 0x03, + 0x11, 0x00, 0x3F, 0x00 +}; + + +/* For Economic quality image: 506x384 */ +static const unsigned char SOF_SOS2[33]= +{ + /* Start of frame marker */ + 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x01, 0x80, 0x01, 0xFA, 0x03, + 0x01, 0x21, 0x00, 0x02, 0x11, 0x01, 0x03, 0x11, 0x01, + /* Start of scan marker */ + 0xFF, 0xDA, 0x00, 0x0C, 0x03, 0x01, 0x00, 0x02, 0x11, 0x03, + 0x11, 0x00, 0x3F, 0x00 +}; + + +/* For Standard and High quality image: 1012x768 */ +static const unsigned char SOF_SOS3[33]= +{ + /* Start of frame marker */ + 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x03, 0x00, 0x03, 0xF4, 0x03, + 0x01, 0x21, 0x00, 0x02, 0x11, 0x01, 0x03, 0x11, 0x01, + /* Start of scan marker */ + 0xFF, 0xDA, 0x00, 0x0C, 0x03, 0x01, 0x00, 0x02, 0x11, 0x03, + 0x11, 0x00, 0x3F, 0x00 +}; + + +/* + * corrects downloaded data + * + * thumbnail : 1 data is a thumbnail + * quality : 0 economy , 1 standard, 2 High + * location : 1 internal, 0 CF-Card + */ +int mdc800_correctImageData (unsigned char* buffer, int thumbnail,int quality,int location) +{ + printCError ("(mdc800_correctImageData) thumbnail:%i quality:%i location:%i \n", thumbnail, quality, location); + if (thumbnail) + { + if (location == 1) + { + memcpy (buffer, File_Header,41); + *(buffer+105)=1; + buffer+=170; + memcpy (buffer, Huffman_Tab, 424); + buffer+=821; + memcpy (buffer,SOF_SOS1,33); + } + else + { + *(buffer+22)=0x00; + *(buffer+23)=0x0e; + } + return 1; + } + else + { + if (location == 1) + { + memcpy (buffer, File_Header1, 24); + buffer+=4096; + memcpy (buffer, File_Header, 41); + *buffer=*(buffer+1)=0; + *(buffer+105)=1; + buffer+=170; + memcpy (buffer, Huffman_Tab,424); + buffer+=821; + switch (quality) + { + case 0: + memcpy (buffer,SOF_SOS2,33); + break; + case 1: + case 2: + memcpy (buffer, SOF_SOS3,33); + break; + } + } + + + /* CF Image is correct. */ + return 1; + } + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/image.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/image.h new file mode 100644 index 00000000..9a4c191e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/image.h @@ -0,0 +1,28 @@ +/* + * Copyright 1999 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * JPeg corrections table + */ +#ifndef DEFINE_IMAGE_H +#define DEFINE_IMAGE_H + +int mdc800_correctImageData (unsigned char*, int,int,int ); + + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/io.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/io.c new file mode 100644 index 00000000..0436a9d7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/io.c @@ -0,0 +1,116 @@ +/* + * Copyright 1999/2000 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * gphoto driver for the Mustek MDC800 Digital Camera. The driver + * supports rs232 and USB. It automatically detects which Kernelnode + * is used. + */ + +/* + * Implements cummunication-core : + * + * Sending commands and receiving data + */ + +#include +#include + + +#include "io.h" +#include +#include +#include "print.h" +#include "rs232.h" +#include "usb.h" +#include "mdc800_spec.h" + +/* + * Send a Command to the Camera. It is unimportent wether this + * is a USB or a RS232 Command. The Function implements an automatic + * retry of a failed command. + * + * The Function will only be used in this Layer, execpt on probing + * the Baudrate of Rs232. + * if quiet is true, the function won't print notes + */ +int mdc800_io_sendCommand_with_retry (GPPort *port,unsigned char* command, unsigned char* buffer, int length, int maxtries,int quiet) +{ + int try=0; + int ret=GP_OK; + + while (try < maxtries) + { + usleep(MDC800_DEFAULT_COMMAND_RETRY_DELAY*1000); + if (port->type == GP_PORT_USB) + ret=mdc800_usb_sendCommand(port,command, buffer, length ); + else + ret=mdc800_rs232_sendCommand(port, command, buffer, length); + if (ret==GP_OK) + return GP_OK; + try++; + } + if (!quiet) + { + printCoreNote ("\nCamera is not responding (Maybe off?)\n"); + printCoreNote ("giving it up after %i times.\n\n", try); + } + return GP_ERROR_IO; +} + + +/* + * sends a command and receives the answer to this + * buffer: Strores the answer + * length: length of answer or null + */ +int mdc800_io_sendCommand (GPPort*port,unsigned char commandid,unsigned char par1,unsigned char par2,unsigned char par3, unsigned char* buffer, int length) +{ + unsigned char command [8]; + command[0]=COMMAND_BEGIN; + command[1]=commandid; + command[2]=par1; + command[3]=par2; + command[4]=par3; + command[5]=COMMAND_END; + command[6]=0; + command[7]=0; + return mdc800_io_sendCommand_with_retry (port,command,buffer,length, MDC800_DEFAULT_COMMAND_RETRY,0); +} + +/* + * Helper function for rs232 and usb + * It returns a timeout for the specified command + */ +int mdc800_io_getCommandTimeout (unsigned char command) +{ + switch (command) + { + case COMMAND_SET_STORAGE_SOURCE: + case COMMAND_SET_TARGET: + case COMMAND_SET_CAMERA_MODE: + case COMMAND_DELETE_IMAGE: + return MDC800_LONG_TIMEOUT; + + case COMMAND_TAKE_PICTURE: + case COMMAND_PLAYBACK_IMAGE: + case COMMAND_SET_PLAYBACK_MODE: + return MDC800_TAKE_PICTURE_TIMEOUT; + } + return MDC800_DEFAULT_TIMEOUT; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/io.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/io.h new file mode 100644 index 00000000..d5477719 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/io.h @@ -0,0 +1,48 @@ +/* + * Copyright 1999/2000 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef _IO_H +#define _IO_H + +/* Maximum Number of tries, before a command is given up */ +#define MDC800_DEFAULT_COMMAND_RETRY 4 + +/* There is a little delay for the next sending (ms) */ +#define MDC800_DEFAULT_COMMAND_RETRY_DELAY 300 + +/* Default Timeout */ +#define MDC800_DEFAULT_TIMEOUT 250 + +/* Prevent Overruns ( ms) ?? */ +#define MDC800_DEFAULT_COMMAND_DELAY 50 + +/* Long Timeout for Functions that needs time (Take Photo, delete..) */ +#define MDC800_LONG_TIMEOUT 5000 + +/* 20sec Timeout for Flashlight */ +#define MDC800_TAKE_PICTURE_TIMEOUT 20000 + + +int mdc800_io_sendCommand_with_retry(GPPort *, unsigned char*, unsigned char* , int, int,int); + +/* The API to the upper Layer */ +int mdc800_io_sendCommand(GPPort *, unsigned char ,unsigned char,unsigned char,unsigned char,unsigned char *,int ); + +/* Helper Function for rs232 and usb */ +int mdc800_io_getCommandTimeout(unsigned char); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mdc800.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mdc800.c new file mode 100644 index 00000000..4390a732 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mdc800.c @@ -0,0 +1,343 @@ +/* mdc800.c + * + * Copyright 1999/2000 by Henning Zabel + * Copyright 2001 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include + +#include +#include + +#include "print.h" +#include "core.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define _(String) (String) +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "Mustek MDC 800"); + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a,0,sizeof(a)); + strcpy(a.model, "Mustek:MDC 800"); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_SERIAL | GP_PORT_USB; + a.speed[0] = 19200; + a.speed[1] = 57600; + a.speed[2] = 115200; + a.speed[3] = 0; + + a.usb_vendor = 0x055f; + a.usb_product = 0xa800; + a.operations = GP_OPERATION_CAPTURE_PREVIEW | + GP_CAPTURE_IMAGE; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; +/* Deliberately commented out. this driver does not work due to USB interrupts + gp_abilities_list_append(list, a); + */ + return (GP_OK); +} + +#if 0 +static int +camera_exit (Camera *camera, GPContext *context) +{ + return (GP_OK); +} +#endif + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + int size, nr, result; + + nr = gp_filesystem_number(fs, folder, filename, context); + if(nr < 0) + return nr; + + switch (type) { +#if 0 + case GP_FILE_TYPE_RAW: + result = jd11_get_image_full (camera, nr, &data, (int*) &size, 1); + break; +#endif + case GP_FILE_TYPE_NORMAL: + result = mdc800_getImage(camera,nr,&data,&size); + break; + case GP_FILE_TYPE_PREVIEW: + result = mdc800_getThumbnail(camera,nr,&data,&size); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + if (result < 0) + return result; + + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_data_and_size(file, data, size); + return (GP_OK); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int ret,nr ; + + nr = gp_filesystem_number(fs, folder, filename, context); + if (nr < 0) + return nr; + + ret = mdc800_setTarget (camera,1); + if (ret!=GP_OK) + { + printAPIError ("(mdc800_delete_image) can't set Target\n"); + return ret; + } + ret = mdc800_io_sendCommand(camera->port, COMMAND_DELETE_IMAGE,nr/100,(nr%100)/10,nr%10,0,0); + if (ret != GP_OK) + { + printAPIError ("(mdc800_delete_image ) deleting Image %i fails !.\n",nr); + return ret; + } + return GP_OK; +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + /*Camera *camera = data;*/ + + /* + * Delete all files in the given folder. If your camera doesn't have + * such a functionality, just don't implement this function. + */ + + return (GP_OK); +} + +static int +camera_config_get (Camera *camera, CameraWidget **window, GPContext *ctx) +{ + gp_widget_new (GP_WIDGET_WINDOW, "Camera Configuration", window); + + /* Append your sections and widgets here. */ + + return (GP_OK); +} + +static int +camera_config_set (Camera *camera, CameraWidget *window, GPContext *ctx) +{ + /* + * Check if the widgets' values have changed. If yes, tell the camera. + */ + + return (GP_OK); +} + +#if 0 +static int +camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + /* + * Capture a preview and return the data in the given file (again, + * use gp_file_set_data_and_size, gp_file_set_mime_type, etc.). + * libgphoto2 assumes that previews are NOT stored on the camera's + * disk. If your camera does, please delete it from the camera. + */ + + return (GP_OK); +} +#endif + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + /* + * Capture an image and tell libgphoto2 where to find it by filling + * out the path. + */ + + return (GP_OK); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *ctx) +{ + char mdc800_summary_output[500]; + char line[50]; + /* + * Fill out the summary with some information about the current + * state of the camera (like pictures taken, etc.). + */ + strcpy (mdc800_summary_output,_("Summary for Mustek MDC800:\n")); + if (GP_OK!=mdc800_getSystemStatus (camera)) + { + strcat(mdc800_summary_output,_("no status reported.")); + strcpy(summary->text, mdc800_summary_output); + return GP_OK; + } + + if (mdc800_isCFCardPresent (camera)) + strcpy (line,_("Compact Flash Card detected\n")); + else + strcpy (line,_("No Compact Flash Card detected\n")); + strcat(mdc800_summary_output,line); + + if (mdc800_getMode (camera) == 0) + strcpy (line, _("Current Mode: Camera Mode\n")); + else + strcpy (line, _("Current Mode: Playback Mode\n")); + strcat (mdc800_summary_output,line); + + strcpy (line,mdc800_getFlashLightString (mdc800_getFlashLightStatus (camera))); + strcat (line,"\n"); + strcat (mdc800_summary_output,line); + + + if (mdc800_isBatteryOk (camera)) + strcpy (line, _("Batteries are ok.")); + else + strcpy (line, _("Batteries are low.")); + strcat (mdc800_summary_output,line); + strcpy(summary->text,mdc800_summary_output); + return GP_OK; +} + +static int +camera_manual (Camera *camera, CameraText *manual, GPContext *ctx) +{ + /* + * If you would like to tell the user some information about how + * to use the camera or the driver, this is the place to do. + */ + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *ctx) +{ + strcpy (about->text, _("Mustek MDC-800 gPhoto2 Library\n" + "Henning Zabel \n" + "Ported to gphoto2 by Marcus Meissner \n" + "Supports Serial and USB Protocols.")); + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + /*Camera *camera = data;*/ + + /* Get the file info here and write it into */ + + return (GP_OK); +} + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + /*Camera *camera = data;*/ + + /* List your folders here */ + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int count, result; + + result = mdc800_number_of_pictures (camera, &count); + if (result != GP_OK) + return result; + gp_list_populate(list, "image%02i.jpg", count); + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + /* First, set up all the function pointers */ + /* camera->functions->exit = camera_exit; */ + camera->functions->get_config = camera_config_get; + camera->functions->set_config = camera_config_set; + camera->functions->capture = camera_capture; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + + /* Now, tell the filesystem where to get lists, files and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + /* Configure port */ + gp_port_set_timeout(camera->port,MDC800_DEFAULT_COMMAND_RETRY_DELAY); + if (camera->port->type == GP_PORT_SERIAL) { + GPPortSettings settings; + gp_port_get_settings(camera->port, &settings); + settings.serial.speed = 57600; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits= 1; + gp_port_set_settings(camera->port, settings); + } + return mdc800_openCamera(camera); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mdc800_spec.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mdc800_spec.h new file mode 100644 index 00000000..3384e21c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mdc800_spec.h @@ -0,0 +1,72 @@ +/* + * Copyright 1999/2000 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * Definition of Commands and usefull structs. + */ + +#ifndef DEFINE_MDC800_SPEC_H +#define DEFINE_MDC800_SPEC_H + + +#define ANSWER_COMMIT 0xbb +/* Commands */ + +#define COMMAND_BEGIN 0x55 +#define COMMAND_END 0xAA + +#define COMMAND_INIT_CONNECT 0x00 +#define COMMAND_GET_SYSTEM_STATUS 0x01 +#define COMMAND_TAKE_PICTURE 0x02 +#define COMMAND_SET_TARGET 0x03 +#define COMMAND_DELETE_IMAGE 0x04 + +#define COMMAND_GET_IMAGE 0x05 +#define COMMAND_GET_IMAGE_SIZE 0x07 +#define COMMAND_GET_THUMBNAIL 0x09 + +#define COMMAND_CHANGE_RS232_BAUD_RATE 0x0b +#define COMMAND_GET_NUM_IMAGES 0x0d + +#define COMMAND_SET_PLAYBACK_MODE 0x12 +#define COMMAND_SET_CAMERA_MODE 0x16 +#define COMMAND_PLAYBACK_IMAGE 0x17 + +#define COMMAND_SET_FLASHMODE_AUTO 0x18 +#define COMMAND_SET_FLASHMODE_ON 0x19 +#define COMMAND_SET_FLASHMODE_OFF 0x1A + +#define COMMAND_GET_WB_AND_EXPOSURE 0x20 +#define COMMAND_SET_EXPOSURE 0x21 +#define COMMAND_SET_WB 0x22 + +#define COMMAND_GET_REMAIN_FREE_IMAGE_COUNT 0x25 +#define COMMAND_SET_LCD_ON 0x2a +#define COMMAND_SET_LCD_OFF 0x2b +#define COMMAND_SET_IMAGE_QUALITY 0x2d +#define COMMAND_SET_MENU_ON 0x2f +#define COMMAND_SET_MENU_OFF 0x30 + +#define COMMAND_SET_STORAGE_SOURCE 0x32 +#define COMMAND_DISCONNECT 0x34 + +#define COMMAND_GET_IMAGE_QUALITY 0x49 +#define COMMAND_SET_EXPOSURE_MODE 0x50 +#define COMMAND_GET_EXPOSURE_MODE 0x51 + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mustek-config.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mustek-config.c new file mode 100644 index 00000000..e78c79a4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mustek-config.c @@ -0,0 +1,502 @@ +/* + * Copyright 1999/2000 by + * Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * gphoto driver for the Mustek MDC800 Digital Camera. The driver + * supports rs232 and USB. + */ + +/* FIXME: Needs to be converted to new config stuff first */ + +#include "config.h" + +#include "mustek-config.h" +#include "mdc800.h" + +#include "../src/gphoto.h" +#include "../src/util.h" +#include +#include + +#include +#include +#include +#include + +#include +#include +#include + +#include + +#include + +#include "core.h" +#include "print.h" +#include "io.h" + +/**************************************************************************** + Dialog Data +*****************************************************************************/ + +struct ConfigValues { + GtkWidget *cam_id; + + GtkWidget *image_quality; + + GtkWidget *lcd; + GtkObject *lcd_adj; + + GtkWidget *light; + GtkWidget *flash; + GtkWidget *lcd_on; + GtkWidget *source; + GtkWidget *exp_mode; + + GtkWidget *baud; + + GtkWidget *save_button, *cancel_button; + GtkWidget *dialog; + +} mdc800_dialog; + + +char* mdc800_image_quality_string [3] = {"Economic(506x384)","Standard(1012x768)","High(1012x768)"}; +char* mdc800_storage_source_string [2] = {"Compact Flash Card","Internal Memory"}; +char* mdc800_exposure_mode_string [2] = {"MTRX","CNTR"}; +char* mdc800_wb_string [4] = {"Auto","Indoor","Indoor with Flashlight","Outdoor"}; +char* mdc800_flash_light_string [5] = {"Auto","Auto(Redeye Red.)","On","On(Redeye Red.)","Off"}; +char* mdc800_baud_rate_string [3] = {"19200","57600","115200"}; + +/***************************************************************************** + Creating/Disposing GUI +******************************************************************************/ + +/* + * Return a combo Box filled up with content, assuming that + * content has count entries. + */ +GtkWidget* mdc800_createComboBox (char** content,int count) +{ + int i=0; + GList* list=0; + + GtkWidget* retval=gtk_combo_new (); + for (i=0; ientry),0); + return retval; +} + + +/* + * Sets up the item index in StringList list of + * ComboBox box + */ +void mdc800_ComboBox_SetEntry (GtkWidget *box, char** list, int index) +{ + gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (box)->entry), list[index]); +} + + +/* + * Gets the index of the Item in StringList list + * of ComboBox box + */ +int mdc800_ComboBox_GetEntry (GtkWidget *box, char** list,int length) +{ + int i=0; + char* entry=gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (box)->entry)); + while (ivbox),10); + table = gtk_table_new(16,5,FALSE); + gtk_widget_show(table); + gtk_container_add(GTK_CONTAINER(GTK_DIALOG(mdc800_dialog.dialog)->vbox), table); + + spacer = gtk_vseparator_new(); + gtk_widget_show(spacer); + gtk_table_attach_defaults(GTK_TABLE(table),spacer,2,3,2,22); + + /* camera id ---------------------- */ + label = gtk_label_new("Camera ID:"); + gtk_widget_show(label); + mdc800_dialog.cam_id = gtk_label_new ("Mustek MDC800"); + gtk_widget_show (mdc800_dialog.cam_id); + gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,0,1); + gtk_table_attach_defaults(GTK_TABLE(table),mdc800_dialog.cam_id,1,2,0,1); + + spacer = gtk_hseparator_new(); + gtk_widget_show(spacer); + gtk_table_attach_defaults(GTK_TABLE(table),spacer,0,5,1,2); + + + /* image quality ---------------------- */ + label = gtk_label_new("Image Quality:"); + gtk_widget_show(label); + gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,2,3); + mdc800_dialog.image_quality=mdc800_createComboBox (mdc800_image_quality_string,3); + gtk_table_attach_defaults(GTK_TABLE(table),mdc800_dialog.image_quality,1,2,2,3); + + + /* exposure seting ---------------------- */ + label = gtk_label_new("Exposure:"); + gtk_widget_show(label); + value = 0; + adj = gtk_adjustment_new(value, -2, 2, 1, 0, 0); + mdc800_dialog.lcd_adj=adj; + mdc800_dialog.lcd = gtk_hscale_new(GTK_ADJUSTMENT(adj)); + gtk_range_set_update_policy(GTK_RANGE(mdc800_dialog.lcd),GTK_UPDATE_CONTINUOUS); + gtk_scale_set_draw_value(GTK_SCALE(mdc800_dialog.lcd), TRUE); + gtk_scale_set_digits(GTK_SCALE(mdc800_dialog.lcd), 0); + gtk_widget_show(mdc800_dialog.lcd); + gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,6,7); + gtk_table_attach_defaults(GTK_TABLE(table),mdc800_dialog.lcd,1,2,6,7); + + + /* flash mode ---------------------- */ + label = gtk_label_new("Flash Mode:"); + gtk_widget_show(label); + mdc800_dialog.flash=mdc800_createComboBox (mdc800_flash_light_string,5); + gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,3,4); + gtk_table_attach_defaults(GTK_TABLE(table),mdc800_dialog.flash,1,2,3,4); + + + /* light source ---------------------- */ + label = gtk_label_new("White Balance:"); + gtk_widget_show(label); + mdc800_dialog.light=mdc800_createComboBox (mdc800_wb_string,4); + gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,4,5); + gtk_table_attach_defaults(GTK_TABLE(table),mdc800_dialog.light,1,2,4,5); + + + /* Set exposure Mode ---------------------- */ + label = gtk_label_new("Exposure Mode:"); + gtk_widget_show(label); + mdc800_dialog.exp_mode=mdc800_createComboBox (mdc800_exposure_mode_string,2); + gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,5,6); + gtk_table_attach_defaults(GTK_TABLE(table),mdc800_dialog.exp_mode,1,2,5,6); + + + /* Storage Source ---------------------- */ + label = gtk_label_new("Storage-Source:"); + gtk_widget_show(label); + mdc800_dialog.source=mdc800_createComboBox (mdc800_storage_source_string,2); + gtk_table_attach_defaults(GTK_TABLE(table),label,3,4,2,3); + gtk_table_attach_defaults(GTK_TABLE(table),mdc800_dialog.source,4,5,2,3); + + spacer = gtk_hseparator_new(); + gtk_widget_show(spacer); + gtk_table_attach_defaults(GTK_TABLE(table),spacer,3,5,3,4); + + + + /* Different Options */ + label = gtk_label_new("Special Options:"); + gtk_widget_show(label); + gtk_table_attach_defaults(GTK_TABLE(table),label,3,4,4,5); + + + /* LCD ON/OFF ---------------------- */ + mdc800_dialog.lcd_on = gtk_check_button_new_with_label("Turn on LCD"); + gtk_widget_show(mdc800_dialog.lcd_on); + gtk_table_attach_defaults(GTK_TABLE(table),mdc800_dialog.lcd_on,4,5,4,5); + + + spacer = gtk_hseparator_new(); + gtk_widget_show(spacer); + gtk_table_attach_defaults(GTK_TABLE(table),spacer,3,5,7,8); + + + /* Baud Rate Selection (only for rs232)*/ + if (mdc800_io_using_usb) + { + label=gtk_label_new ("USB detected."); + gtk_widget_show(label); + gtk_table_attach_defaults(GTK_TABLE(table),label,3,4,8,9); + } + else + { + label = gtk_label_new("Baudrate:"); + gtk_widget_show(label); + mdc800_dialog.baud=mdc800_createComboBox (mdc800_baud_rate_string,3); + gtk_table_attach_defaults(GTK_TABLE(table),label,3,4,8,9); + gtk_table_attach_defaults(GTK_TABLE(table),mdc800_dialog.baud,4,5,8,9); + } + + + /* done with the widgets */ + + toggle = gtk_toggle_button_new(); + gtk_widget_show(toggle); + gtk_widget_hide(toggle); + gtk_box_pack_start(GTK_BOX(GTK_DIALOG(mdc800_dialog.dialog)->action_area), + toggle, TRUE, TRUE, 0); + + mdc800_dialog.save_button = gtk_button_new_with_label("Save"); + gtk_widget_show(mdc800_dialog.save_button); + GTK_WIDGET_SET_FLAGS (mdc800_dialog.save_button, GTK_CAN_DEFAULT); + gtk_box_pack_start(GTK_BOX(GTK_DIALOG(mdc800_dialog.dialog)->action_area), + mdc800_dialog.save_button, FALSE, FALSE, 0); + mdc800_dialog.cancel_button = gtk_button_new_with_label("Cancel"); + gtk_widget_show(mdc800_dialog.cancel_button); + gtk_box_pack_start(GTK_BOX(GTK_DIALOG(mdc800_dialog.dialog)->action_area), + mdc800_dialog.cancel_button, FALSE, FALSE, 0); + gtk_widget_grab_default (mdc800_dialog.save_button); + + gtk_object_set_data(GTK_OBJECT(mdc800_dialog.dialog), "button", "CANCEL"); + +} + +void mdc800_disposeDialog (void) +{ + gtk_widget_destroy(mdc800_dialog.dialog); +} + + +/***************************************************************************** + Set Dialog Field / Set Konfiguration from Dialog +******************************************************************************/ + +int mdc800_setupDialog (void) +{ + int value, tmp; + + if (!mdc800_initialize ()) + { + return -1; + } + + update_status("Receiving Configuration."); + update_progress (0); + + /* Image Quality */ + value=mdc800_getImageQuality (); + if (value<0) + return -1; + + mdc800_ComboBox_SetEntry (mdc800_dialog.image_quality, mdc800_image_quality_string, value); + update_progress (12); + + + if (!mdc800_getWBandExposure (&tmp, &value)) + return -1; + gtk_adjustment_set_value(GTK_ADJUSTMENT(mdc800_dialog.lcd_adj), tmp); + + switch (value) { + case 1: value=0; break; + case 2: value=1; break; + case 4: value=2; break; + case 8: value=3; break; + } + mdc800_ComboBox_SetEntry (mdc800_dialog.light,mdc800_wb_string,value); + update_progress (25); + + + /* flash mode ---------------------- */ + value = mdc800_getFlashLightStatus (); + mdc800_ComboBox_SetEntry (mdc800_dialog.flash,mdc800_flash_light_string,value); + update_progress (37); + + + /* LCD ON/OFF ---------------------- */ + if (mdc800_isLCDEnabled ()) + gtk_widget_activate(mdc800_dialog.lcd_on); + update_progress (50); + + + /* Storage Source ---------------------- */ + value = mdc800_getStorageSource (); + if (value < 0) + return -1; + mdc800_ComboBox_SetEntry (mdc800_dialog.source, mdc800_storage_source_string, value); + update_progress (87); + + + /* Set exposure Mode ---------------------- */ + value = mdc800_getExposureMode (); + if (value < 0) + return -1; + mdc800_ComboBox_SetEntry (mdc800_dialog.exp_mode, mdc800_exposure_mode_string, value); + update_progress (95); + + /* Baudrate */ + if (!mdc800_io_using_usb) { + int speed; + mdc800_getSpeed(camera,&speed); + mdc800_ComboBox_SetEntry (mdc800_dialog.baud, mdc800_baud_rate_string, speed); + } + + update_progress (100); + update_status("Done."); + + update_progress (0); + return 0; +} + + +int mdc800_setupConfig (void) +{ + int value; + + update_status("Writing Configuration."); + update_progress (0); + + + /* Set image quality... */ + value = mdc800_ComboBox_GetEntry (mdc800_dialog.image_quality, mdc800_image_quality_string,3); + if (value < 0) + return -1; + if (!mdc800_setImageQuality (value)) + return -1; + update_progress (12); + + + /* set exposure setting */ + value= GTK_ADJUSTMENT(mdc800_dialog.lcd_adj)->value; + if (!mdc800_setExposure (value)) + return -1; + update_progress(25); + + + /* Set flash mode... */ + value=mdc800_ComboBox_GetEntry (mdc800_dialog.flash, mdc800_flash_light_string,5); + if (value<0) + return -1; + if (!mdc800_setFlashLight (value)) + return -1; + update_progress(37); + + + /* Set White Balance... */ + value = mdc800_ComboBox_GetEntry (mdc800_dialog.light, mdc800_wb_string,4); + switch (value) + { + case 0: value=1; break; + case 1: value=2; break; + case 2: value=4; break; + case 3: value=8; break; + default: + return -1; + } + if (!mdc800_setWB (value)) + return -1; + update_progress(50); + + + /* Set LCD ON/OFF... */ + if (GTK_WIDGET_STATE(mdc800_dialog.lcd_on) == GTK_STATE_ACTIVE) + mdc800_enableLCD (1); + else + mdc800_enableLCD (0); + update_progress(62); + + + /* Set Storage Source... */ + value = mdc800_ComboBox_GetEntry (mdc800_dialog.source, mdc800_storage_source_string,2); + if (value < 0) + return -1; + update_progress(75); + + + if (!mdc800_setStorageSource (value)) + return -1; + update_progress(87); + + + mdc800_setTarget (1); + + + /* Set Exposure Mode... */ + value =mdc800_ComboBox_GetEntry (mdc800_dialog.exp_mode, mdc800_exposure_mode_string,2); + if (value < 0) + return -1; + if (!mdc800_setExposureMode (value)) + return -1; + update_progress (95); + + + /* Change BaudRate */ + if (!mdc800_io_using_usb) + { + value = mdc800_ComboBox_GetEntry (mdc800_dialog.baud, mdc800_baud_rate_string,3); + if (value < 0) + return -1; + mdc800_changespeed (value); + } + + update_progress(100); + + update_status("Done."); + update_progress(0); + return 0; +} + + +/***************************************************************************** + API for gphoto +******************************************************************************/ + + +int mdc800_configure () +{ + if (mdc800_initialize ()) + { + mdc800_createDialog (); + if (mdc800_setupDialog () == 0) + { + gtk_widget_show(mdc800_dialog.dialog); + if (wait_for_hide(mdc800_dialog.dialog, mdc800_dialog.save_button, mdc800_dialog.cancel_button) != 0) + { + if (mdc800_setupConfig () != 0) + { + printAPIError ("(mdc800_configure) Error sending Configuration to Camera\n"); + mdc800_close (); + } + } + } + else + { + printAPIError ("(mdc800_configure) Error receiving Configuration from Camera\n"); + mdc800_close (); + } + mdc800_disposeDialog (); + } + return 1; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mustek-config.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mustek-config.h new file mode 100644 index 00000000..d04c4129 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/mustek-config.h @@ -0,0 +1,7 @@ +#ifndef DEFINE_MUSTEK_CONFIG_H +#define DEFINE_MUSTEK_CONFIG_H + +int mdc800_configure (); + + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/print.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/print.h new file mode 100644 index 00000000..4b8c805b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/print.h @@ -0,0 +1,44 @@ +/* + * Copyright 1999/2000 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + Defines some PrintMacros. They are need to disable much + outputs they were used during development. +*/ +#ifndef DEFINE_PRINT_H +#define DEFINE_PRINT_H +#include + +/* Message or Errors from the gphoto API */ +#define printAPINote if (1) printf +#define printAPIError if (1) printf + +/* only for debugging : The FunktionCall */ +#define printFnkCall if (0) printf + +/* Message or Errors from the Core Layer */ +#define printCoreNote if (1) printf +#define printCoreError if (1) printf + +/* CError are Error Messages below */ +/* the Core of this driver */ +#define printCError if (1) printf + + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/rs232.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/rs232.c new file mode 100644 index 00000000..9f020b80 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/rs232.c @@ -0,0 +1,213 @@ +/* + * Copyright 1999/2000 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * gphoto driver for the Mustek MDC800 Digital Camera. The driver + * supports rs232 and USB. + */ + +#include +#include + +#include "print.h" +#include "rs232.h" +#include "mdc800_spec.h" +#include "io.h" + +#include +#include + + +/* + * sends a command and receives the answer to this + * buffer: Strores the answer + * length: length of answer or null + */ +int mdc800_rs232_sendCommand(GPPort *port,unsigned char* command, unsigned char* buffer, int length) +{ + char answer; + int fault=0,ret; + int i; + + printFnkCall ("(mdc800_rs232_sendCommand) id:%i (%i,%i,%i),answer:%i\n",command[1],command[2],command[3],command[4],length); + + usleep(MDC800_DEFAULT_COMMAND_DELAY*1000); + gp_port_set_timeout (port, MDC800_DEFAULT_TIMEOUT ); + + /* Send command */ + for (i=0; i<6; i++) + { + if (gp_port_write (port, (char*)&command[i] ,1) < GP_OK) + { + printCError ("(mdc800_rs232_sendCommand) sending Byte %i fails!\n",i); + fault=1; + } + + ret = gp_port_read (port,&answer,1); + if ( ret != 1) + { + printCError ("(mdc800_rs232_sendCommand) receiving resend of Byte %i fails.\n",i); + fault=1; + } + if (command [i] != answer) + { + printCError ("(mdc800_rs232_sendCommand) Byte %i differs : send %i, received %i \n",i,command[i],answer); + fault=1; + } + } + if (fault) + return GP_ERROR_IO; + + /* Receive answer */ + if (length) + { + /* Some Commands needs a download. */ + switch (command[1]) + { + case COMMAND_GET_IMAGE: + case COMMAND_GET_THUMBNAIL: + if (!mdc800_rs232_download(port,buffer,length)) + { + printCError ("(mdc800_rs232_sendCommand) download of %i Bytes fails.\n",length); + fault=1; + } + break; + default: + if (!mdc800_rs232_receive(port,buffer,length)) + { + printCError ("(mdc800_rs232_sendCommand) receiving %i Bytes fails.\n",length); + fault=1; + } + } + } + + if (fault) + return GP_ERROR_IO; + + /* commit */ + if (!(command[1] == COMMAND_CHANGE_RS232_BAUD_RATE)) { + if (!mdc800_rs232_waitForCommit(port,command[1])) + { + printCError ("(mdc800_rs232_sendCommand) receiving commit fails.\n"); + fault=1; + } + } + if (fault) + return GP_ERROR_IO; + return GP_OK; +} + + +/* + * waits for the Commit value + * The function expects the commandid of the corresponding command + * to determine whether a long timeout is needed or not. (Take Photo) + */ +int mdc800_rs232_waitForCommit (GPPort *port,char commandid) +{ + unsigned char ch[1]; + int ret; + + gp_port_set_timeout(port,mdc800_io_getCommandTimeout(commandid)); + ret = gp_port_read(port,(char *)ch,1); + if (ret!=1) + { + printCError ("(mdc800_rs232_waitForCommit) Error receiving commit !\n"); + return GP_ERROR_IO; + } + + if (ch[0] != ANSWER_COMMIT ) + { + printCError ("(mdc800_rs232_waitForCommit) Byte \"%i\" was not the commit !\n",ch[0]); + return GP_ERROR_IO; + } + return GP_OK; +} + +/* + * receive Bytes from camera + */ +int mdc800_rs232_receive (GPPort *port,unsigned char* buffer, int b) +{ + int ret; + gp_port_set_timeout (port,MDC800_DEFAULT_TIMEOUT ); + + ret=gp_port_read(port,(char*)buffer,b); + if (ret!=b) + { + printCError ("(mdc800_rs232_receive) can't read %i Bytes !\n",b); + return GP_ERROR_IO; + } + return GP_OK; +} + + +/* + * downloads data from camera and send + * a checksum every 512 bytes. + */ +int mdc800_rs232_download (GPPort *port,unsigned char* buffer, int size) +{ + int readen=0,i,j; + unsigned char checksum; + unsigned char DSC_checksum; + int numtries=0; + + gp_port_set_timeout(port, MDC800_DEFAULT_TIMEOUT ); + + while (readen < size) + { + if (!mdc800_rs232_receive (port,&buffer[readen],512)) + return readen; + checksum=0; + for (i=0; i<512; i++) + checksum=(checksum+buffer[readen+i])%256; + if (gp_port_write (port,(char*) &checksum,1) < GP_OK) + return readen; + + if (!mdc800_rs232_receive (port,&DSC_checksum,1)) + return readen; + + + if (checksum != DSC_checksum) + { + numtries++; + printCError ("(mdc800_rs232_download) checksum: software %i, DSC %i , reload block! (%i) \n",checksum,DSC_checksum,numtries); + if (numtries > 10) + { + printCError ("(mdc800_rs232_download) to many retries, giving up.."); + return 0; + } + } + else + { + readen+=512; + numtries=0; + } + } + + + for (i=0; i<4; i++) + { + printCError ("%i: ",i); + for (j=0; j<8; j++) + printCError (" %i", buffer[i*8+j]); + printCError ("\n"); + } + return readen; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/rs232.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/rs232.h new file mode 100644 index 00000000..163b91c1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/rs232.h @@ -0,0 +1,26 @@ +/* + * Copyright 1999/2000 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ +#ifndef _RS232_H +#define _RS232_H + +int mdc800_rs232_sendCommand(GPPort*,unsigned char* , unsigned char * , int ); +int mdc800_rs232_waitForCommit(GPPort*,char commandid); +int mdc800_rs232_receive(GPPort*,unsigned char * , int ); +int mdc800_rs232_download(GPPort*,unsigned char *, int); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/usb.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/usb.c new file mode 100644 index 00000000..75d3e154 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/usb.c @@ -0,0 +1,206 @@ +/* + * Copyright 1999/2000 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * gphoto driver for the Mustek MDC800 Digital Camera. The driver + * supports rs232 and USB. + */ + +#define _DEFAULT_SOURCE + +/* + Implemenation of the USB Version of ExecuteCommand +*/ +#include + +#include +#include + +#include "print.h" +#include "usb.h" +#include "io.h" +#include "mdc800_spec.h" + +#include +#include + + +/* + * Checks wether the camera responds busy + */ +static int mdc800_usb_isBusy (unsigned char* ch) +{ + int i; + for (i=0;i<8;i++) + if (ch [i] != 0x99) + return 0; + return 1; +} + + +/* + * Checks wether the Camera is ready + */ +static int mdc800_usb_isReady (unsigned char *ch) +{ + int i; + for (i=0;i<8;i++) + if (ch [i] != 0xbb) + return 0; + return 1; +} + + +/* + * Waits for the camera + * type: 0: Wait until the camera gets ready + * 1: Read data from irq + * The function stores the readen 8 Bytes in data. + * and return 0 on success else -1. + */ +static int mdc800_usb_readFromIrq (GPPort *port,int type,unsigned char* data,int timeout) +{ + int ret; + struct timeval tv; + + gp_port_set_timeout(port,1); + timeout+=10*MDC800_USB_IRQ_INTERVAL; + gettimeofday(&tv,NULL); + while (timeout>=0) + { + /* try a read */ + ret = gp_port_check_int(port,(char*)data,8); + if (ret!=8) + { + printCError ("(mdc800_usb_readFromIRQ) reading bytes from irq fails (%d)\n",ret); + return ret; + } + if (0) { + int i=0; + printf ("irq :"); + for (i=0; i<8; i++) + { + printf ("%i ", data [i]); + } + printf ("\n"); + } + /* check data */ + if (type) + { + if (!(mdc800_usb_isReady(data)||mdc800_usb_isBusy(data))) { + fprintf(stderr,"got data.\n"); + /* Data received successfull */ + return GP_OK; + } + } else { + if (mdc800_usb_isReady (data)) + { + fprintf(stderr,"got readiness.\n"); + /* Camera response ready */ + return GP_OK; + } + } + /* wait the specified time */ + if (1) { + + usleep(MDC800_USB_IRQ_INTERVAL * 1000); + + timeout-=MDC800_USB_IRQ_INTERVAL; + } + } + /* Timeout */ + printCError ("(mdc800_usb_readFromIrq) timeout\n"); + return GP_ERROR_IO; +} + +int mdc800_usb_sendCommand(GPPort*port,unsigned char*command,unsigned char*buffer,int length) +{ + unsigned char tmp_buffer [16]; + GPPortSettings settings; + int ret; + + printf ("(mdc800_usb_sendCommand) id:%i (%i,%i,%i,%i,%i,%i),answer:%i\n",command[1],command[2],command[3],command[4],command[5],command[6],command[7],length); + /* Send the Command */ + gp_port_set_timeout(port,MDC800_DEFAULT_TIMEOUT); + + gp_port_get_settings(port,&settings); + settings.usb.outep = MDC800_USB_ENDPOINT_COMMAND; + gp_port_set_settings(port,settings); + + ret = mdc800_usb_readFromIrq(port,0,tmp_buffer,MDC800_DEFAULT_TIMEOUT); + if (ret != GP_OK) { + fprintf(stderr,"Camera did not get ready before mdc800_usb_sendCommand!\n"); + } + + if ((ret=gp_port_write(port,(char*)command,8)) != 8) + { + printCError ("(mdc800_usb_sendCommand) sending Command fails (%d)!\n",ret); + return ret; + } + + /* receive the answer */ + switch (command [1]) + { + case COMMAND_GET_THUMBNAIL: + case COMMAND_GET_IMAGE: + gp_port_set_timeout (port, 2000); + if (gp_port_read (port,(char*)buffer,64) != 64) + { + printCError ("(mdc800_usb_sendCommand) requesting 64Byte dummy data fails.\n"); + return GP_ERROR_IO; + } + fprintf(stderr,"got 64 byte\n"); + { /* Download loop */ + int readen=0; + while (readen < length) + { + if (gp_port_read(port,(char*)(buffer+readen),64) != 64) + { + printCError ("(mdc800_usb_sendCommand) reading image data fails.\n"); + return 0; + } + fprintf(stderr,"got 64 byte\n"); + readen+=64; + } + } + break; + default : + if (length > 0) + { + ret = mdc800_usb_readFromIrq (port,1,tmp_buffer, mdc800_io_getCommandTimeout(command[1])); + if (ret != GP_OK) + { + /* Reading fails */ + printCError ("(mdc800_usb_sendCommand) receiving answer fails (%d).\n",ret); + return ret; + } + memcpy(buffer,tmp_buffer,length); + } + } +#if 1 + /* Waiting for camera to get ready */ + ret = mdc800_usb_readFromIrq(port,0,tmp_buffer,mdc800_io_getCommandTimeout (command[1])); + if (ret!=GP_OK) + { + /* Reading fails */ + printCError ("(mdc800_usb_sendCommand) camera didn't get ready in the defined intervall ?!\n"); + return ret; + } +#endif + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/usb.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/usb.h new file mode 100644 index 00000000..a28b8053 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/mustek/usb.h @@ -0,0 +1,32 @@ +/* + * Copyright 1999/2000 by Henning Zabel + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + Header for USB Interface +*/ +#ifndef _USB_H +#define _USB_H + +#define MDC800_USB_ENDPOINT_COMMAND 0x01 +#define MDC800_USB_ENDPOINT_STATUS 0x82 +#define MDC800_USB_ENDPOINT_DOWNLOAD 0x84 +#define MDC800_USB_IRQ_INTERVAL 255 /* 255ms */ + +int mdc800_usb_sendCommand (GPPort*,unsigned char* , unsigned char * , int ); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/ChangeLog new file mode 100644 index 00000000..f9663bac --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/ChangeLog @@ -0,0 +1,19 @@ +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-01-15 Lutz Müller + + * dc1000.c: + * dc1580.c: gp_camera_status -> gp_context_status. + +2002-01-15 Lutz Müller + + * dc1000.c + * dc1580.c: Use gp_context_progress_* + +2001-12-05 Hubert Figuiere + + * l859/l859.c: Fixed a typo that failed to initialize camera. See + bug 483903. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/Makefile-files new file mode 100644 index 00000000..804aa51d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/Makefile-files @@ -0,0 +1,24 @@ +# -*- Makefile -*- + +# SUBDIRS = coolshot l859 +EXTRA_DIST += panasonic/README.panasonic panasonic/ChangeLog +camlibdoc_DATA += panasonic/README.panasonic + +EXTRA_LTLIBRARIES += panasonic_dc1000.la + +panasonic_dc1000_la_SOURCES = \ + panasonic/dc1000.c panasonic/dc1000.h \ + panasonic/dc.c panasonic/dc.h +panasonic_dc1000_la_LDFLAGS = $(camlib_ldflags) +panasonic_dc1000_la_DEPENDENCIES = $(camlib_dependencies) +panasonic_dc1000_la_LIBADD = $(camlib_libadd) + +EXTRA_LTLIBRARIES += panasonic_dc1580.la + +panasonic_dc1580_la_SOURCES = \ + panasonic/dc1580.c panasonic/dc1580.h \ + panasonic/dc.c panasonic/dc.h \ + panasonic/dc1000.h +panasonic_dc1580_la_LDFLAGS = $(camlib_ldflags) +panasonic_dc1580_la_DEPENDENCIES = $(camlib_dependencies) +panasonic_dc1580_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/README.panasonic b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/README.panasonic new file mode 100644 index 00000000..640c8271 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/README.panasonic @@ -0,0 +1,80 @@ + +$Id$ + +Overview +-------- + + This directory contains Panasonic PV-DC1000 and PV-DC1580 gPhoto + libraries. In Europe, these models are known as NV-DC1000 and NV-DC1580 + respectively. To avoid confusion we simply write DC1000 and DC1580. + + Both libraries are based on dc1000 utility, written by Fredrik Roubert + and Galen Brooks. Despite similarities in the two protocols there are + two separate libraries, for DC1000 and DC1580 models respectively. + + From the source code of Michael McCormack's Nikon CoolPix 600 library + for gPhoto1 it follows that DC1580 and Nikon CP 600 use the same + protocol. As of 28-th July, there are no reports if this Nikon model + works or not with DC1580 library. + +Copyright +--------- + + Copyright © 2000 Mariusz Zynel (gPhoto port) + Copyright © 2000 Fredrik Roubert (idea) + Copyright © 1999 Galen Brooks (DC1580 code) + +Changes +------- + * 18 September, 2001 + - get rid of gp_port_(new|open|close|free) + - adapted to use filesystem provided in core + + * 5 August, 2000 + - filename based communication between library and core + - abilities accomodated to the new API + + * 28 July, 2000 + - added library for DC1000 series + - debugging messages revised + - new debug and error reporting functions + - incremental image downloading support added + + * 21 July, 2000 + - image uploading function added + - Nikon CoolPix 600 added as it uses the same protocol + as DC1580 + + * 15 July, 2000 + - introduction of Panasonic library in gPhoto2 + +To be done +---------- + + * Test DC1000 model. + * Setting the time and date of camera. + * Writing manual. + +Contact +------- + + * Mariusz Zynel - mariusz@mizar.org, mariusz@math.uwb.edu.pl + * Fredrik Roubert -roubert@df.lth.se + * Galen Brooks - galen@nine.com + +References +---------- + + * gPhoto web pages: + http://www.gphoto.org + http://www.gphoto.com + http://gphoto.sourceforge.net/ + + * dc1000 web page: + + http://www.df.lth.se/~roubert/dc1000/ + + * Panasonic DC1000 PalmCam communication protocol: + + http://pelletiernet.com/PalmCam/PalmCam-Protocol.html + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/ChangeLog new file mode 100644 index 00000000..85250ba3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/ChangeLog @@ -0,0 +1,16 @@ +2002-01-04 Chris Pinkham + + * coolshot.c, library.c, library.h: updated code to use new + gp_file_progress instead of gp_camera_progress. + +2001-11-28 Chris Pinkham + + * README: took out mention of protocol.txt until file is ready. + * coolshot.c, library.c, library.h: fixed bug in code where value + passed to gp_camera_progress was always 0.0. Changed license of + source code from GPL to LPGL. + +2001-11-28 Chris Pinkham + + * ChangeLog: created file. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/Makefile-files new file mode 100644 index 00000000..1213940c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/Makefile-files @@ -0,0 +1,13 @@ +# -*- Makefile -*- + +EXTRA_DIST += panasonic/coolshot/README.panasonic-coolshot panasonic/coolshot/ChangeLog +camlibdoc_DATA += panasonic/coolshot/README.panasonic-coolshot + +EXTRA_LTLIBRARIES += panasonic_coolshot.la + +panasonic_coolshot_la_SOURCES = \ + panasonic/coolshot/coolshot.c \ + panasonic/coolshot/library.c panasonic/coolshot/library.h +panasonic_coolshot_la_LDFLAGS = $(camlib_ldflags) +panasonic_coolshot_la_DEPENDENCIES = $(camlib_dependencies) +panasonic_coolshot_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/README.panasonic-coolshot b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/README.panasonic-coolshot new file mode 100644 index 00000000..4c6fbbc0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/README.panasonic-coolshot @@ -0,0 +1,21 @@ +Panasonic KXL-600A and KXL-601A a.k.a. "Coolshot" + +This driver is based upon protocol reverse-engineered +using ComLite32 under Windows 95. + +For questions/comments, email the library author: + + Chris Pinkham + cpinkham@infi.net + + +TODO List +--------- +- file upload capability +- better error checking ("fixme"s) & recovery +- modify coolshot_file_count to return GP_ code and take *count as argument + Comment by Lutz : Why? Throughout libgphoto2, + we say that negative return values are errors. That is, we do + CHECK_RESULT (pic_num = count_pictures (camera)); everywhere and let + CHECK_RESULT test for a return value < 0. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/coolshot.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/coolshot.c new file mode 100644 index 00000000..e14c1821 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/coolshot.c @@ -0,0 +1,311 @@ +/****************************************************************/ +/* coolshot.c - Gphoto2 library for accessing the Panasonic */ +/* Coolshot KXL-600A & KXL-601A digital cameras. */ +/* */ +/* Copyright 2001 Chris Pinkham */ +/* */ +/* Author: Chris Pinkham */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#include "config.h" + +#include +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "library.h" + +#define GP_MODULE "coolshot" + +#define TIMEOUT 2000 +#define DEFAULT_SPEED 9600 + +#define COOLSHOT_VERSION "0.4" +#define COOLSHOT_LAST_MOD "09/06/2001 02:28 EST" + +/* define what cameras we support */ +static char *coolshot_cameras[] = { + "Panasonic:Coolshot KXL-600A", + "Panasonic:Coolshot KXL-601A", + "" +}; + +struct _CameraPrivateLibrary { + int speed; +}; + +int camera_id (CameraText *id) +{ + /* GP_DEBUG ("* camera_id"); */ + + strcpy (id->text, "coolshot"); + + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) +{ + int x = 0; + char *ptr; + CameraAbilities a; + + /* GP_DEBUG ("* camera_abilities"); */ + + ptr = coolshot_cameras[x++]; + while (*ptr) { + memset(&a, 0, sizeof(a)); + strcpy (a.model, ptr ); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.speed[5] = 0; + + /* fixme, need to set these operations lists to correct values */ + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_PREVIEW; + + /* fixme, believe supports GP_FOLDER_PUT_FILE */ + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + gp_abilities_list_append (list, a); + + ptr = coolshot_cameras[x++]; + } + + return (GP_OK); +} + +static int camera_start (Camera *camera) +{ + GP_DEBUG ("* camera_start"); + + /* coolshot_sb sets to default speed if speed == 0 */ + CHECK (coolshot_sb (camera, camera->pl->speed)); + return( GP_OK ); +} + +static int camera_stop (Camera *camera) +{ + GP_DEBUG ("* camera_stop"); + + CHECK (coolshot_sb( camera, DEFAULT_SPEED)); + return (GP_OK); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + int count; + + GP_DEBUG ("* file_list_func"); + GP_DEBUG ("*** folder: %s", folder); + + CHECK (camera_start (camera)); + CHECK (count = coolshot_file_count (camera)); + CHECK (gp_list_populate (list, "pic_%04i.jpg", count)); + + return (camera_stop (camera)); +} + +static int get_info_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, void *data, + GPContext *context) +{ + Camera *camera = data; + int n; + + GP_DEBUG ("* get_info_func"); + GP_DEBUG ("*** folder: %s", folder); + GP_DEBUG ("*** filename: %s",filename); + + CHECK (camera_start (camera)); + + /* Get the file number from the CameraFileSystem */ + CHECK (n = gp_filesystem_number (camera->fs, folder, filename, + context)); + + /* fixme, get file size also */ + info->file.fields = GP_FILE_INFO_TYPE; + strcpy (info->file.type, GP_MIME_JPEG ); + + info->preview.fields = GP_FILE_INFO_TYPE; + strcpy (info->preview.type, GP_MIME_JPEG); + + return (camera_stop (camera)); +} + +static int camera_exit (Camera *camera, GPContext *context) +{ + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + + return (GP_OK); +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + char data[128000]; + int size, n; + + GP_DEBUG ("* camera_file_get"); + GP_DEBUG ("*** folder: %s", folder); + GP_DEBUG ("*** filename: %s",filename); + GP_DEBUG ("*** type: %d", type); + + CHECK (camera_start (camera)); + + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + camera_stop (camera); + return (GP_ERROR_CANCEL); + } + + /* + * Get the file number from the CameraFileSystem (and increment + * because we need numbers starting with 1) + */ + CHECK (n = gp_filesystem_number (camera->fs, folder, filename, + context)); + n++; + + switch (type) { + case GP_FILE_TYPE_PREVIEW: + CHECK (coolshot_request_thumbnail (camera, file, data, &size, n, context)); + CHECK (coolshot_build_thumbnail (data, &size)); + CHECK (gp_file_set_mime_type (file, GP_MIME_PPM)); + break; + + case GP_FILE_TYPE_NORMAL: + CHECK (coolshot_request_image (camera, file, data, &size, n, context)); + CHECK (gp_file_set_mime_type (file, GP_MIME_JPEG)); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + + CHECK (gp_file_append (file, data, size)); + + return (camera_stop (camera)); +} + +static int camera_summary (Camera *camera, CameraText *summary, + GPContext *context) +{ + int count; + char tmp[1024]; + + GP_DEBUG ("* camera_summary"); + + CHECK (camera_start (camera)); + + /* possibly get # pics, mem free, etc. */ + count = coolshot_file_count (camera); + + sprintf (tmp, "Frames Taken : %4d\n", count); + strcat (summary->text, tmp ); + + return (camera_stop (camera)); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + GP_DEBUG ("* camera_about"); + + strcpy (about->text, + _("coolshot library v" COOLSHOT_VERSION + " " COOLSHOT_LAST_MOD "\n" + "Chris Pinkham \n" + "Support for Panasonic Coolshot digital cameras\n" + "based on reverse engineering serial protocol.\n" + "\n")); + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func, +}; + +int camera_init (Camera *camera, GPContext *context) +{ + int count; + GPPortSettings settings; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + + /* Set up the port and remember the requested speed */ + CHECK (gp_port_get_settings (camera->port, &settings)); + camera->pl->speed = settings.serial.speed; + settings.serial.speed = DEFAULT_SPEED; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + CHECK (gp_port_set_settings (camera->port, settings)); + CHECK (gp_port_set_timeout (camera->port, TIMEOUT)); + + /* check to see if camera is really there */ + CHECK (coolshot_enq (camera)); + + coolshot_sm (camera); + + /* get number of images */ + CHECK (count = coolshot_file_count (camera)); + + CHECK (camera_start (camera)); + CHECK (gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera)); + + /* coolshot_sb sets to default speed if speed == 0 */ + CHECK (coolshot_sb (camera, camera->pl->speed)); + + return (camera_stop (camera)); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/library.c new file mode 100644 index 00000000..17cebf40 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/library.c @@ -0,0 +1,745 @@ +/****************************************************************/ +/* library.c - Gphoto2 library for accessing the Panasonic */ +/* Coolshot KXL-600A & KXL-601A digital cameras. */ +/* */ +/* Copyright 2001 Chris Pinkham */ +/* */ +/* Author: Chris Pinkham */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#define _POSIX_C_SOURCE 199309L +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include +#include "library.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "coolshot" + +#define COOL_SLEEP 10000 + +#define RETRIES 10 + +#define COOLSHOT_DONE 0x00 +#define COOLSHOT_PKT 0x01 +#define COOLSHOT_ENQ 0x05 +#define COOLSHOT_ACK 0x06 +#define COOLSHOT_NAK 0x15 + + +static int coolshot_ack (Camera *camera); +#if 0 +static int coolshot_nak (Camera *camera); +#endif +static int coolshot_sp (Camera *camera); +static int coolshot_fs( Camera *camera, int number ); +static int coolshot_write_packet (Camera *camera, char *packet); +static int coolshot_read_packet (Camera *camera, char *packet); +static int coolshot_check_checksum( char *packet, int length ); +static int coolshot_download_image( Camera *camera, CameraFile *file, + char *buf, int *len, int thumbnail, GPContext *context ); + +static int packet_size = 500; + +/* ??set mode?? */ +int coolshot_sm( Camera *camera ) { + char buf[16]; + + GP_DEBUG ("* coolshot_sm"); + + memset( buf, 0, sizeof( buf )); + + buf[0] = COOLSHOT_PKT; + buf[2] = 'S'; + buf[3] = 'M'; + buf[4] = 0x01; + buf[15] = 0x02; + + coolshot_write_packet( camera, buf ); + + /* read ACK */ + coolshot_read_packet( camera, buf ); + + /* read data */ + coolshot_read_packet( camera, buf ); + + /* send ACK */ + coolshot_ack( camera ); + + packet_size = 128; + + return( GP_OK ); +} + +/* ?set baud? */ +int coolshot_sb( Camera *camera, int speed ) { + char buf[16]; + gp_port_settings settings; + + GP_DEBUG ("* coolshot_sb"); + GP_DEBUG ("*** speed: %i", speed); + + memset( buf, 0, sizeof( buf )); + + buf[0] = COOLSHOT_PKT; + buf[2] = 'S'; + buf[3] = 'B'; + buf[4] = 0x01; + buf[15] = 0x02; + + gp_port_get_settings (camera->port, &settings); + + switch (speed) { + case 9600: + buf[4] = '1'; + settings.serial.speed = 9600; + break; + case -1: + case 19200: + buf[4] = '2'; + settings.serial.speed = 19200; + break; + case 28800: + buf[4] = '3'; + settings.serial.speed = 28800; + break; + case 38400: + buf[4] = '4'; + settings.serial.speed = 38400; + break; + case 57600: + buf[4] = '5'; + settings.serial.speed = 57600; + break; + case 0: /* Default speed */ + case 115200: + buf[4] = '6'; + settings.serial.speed = 115200; + break; + default: + return (GP_ERROR_IO_SERIAL_SPEED); + } + + coolshot_enq( camera ); + + /* set speed */ + coolshot_write_packet( camera, buf ); + + /* read ack */ + coolshot_read_packet( camera, buf ); + + /* read OK */ + coolshot_read_packet( camera, buf ); + + /* ack the OK */ + coolshot_ack( camera ); + + CHECK (gp_port_set_settings (camera->port, settings)); + + usleep(10 * 1000); + return (GP_OK); +} + +static +int coolshot_fs( Camera *camera, int number ) { + char buf[16]; + + GP_DEBUG ("* coolshot_fs"); + + memset( buf, 0, sizeof( buf )); + + buf[0] = COOLSHOT_PKT; + buf[2] = 'F'; + buf[3] = 'S'; + buf[7] = number; + buf[15] = 0x02; + + coolshot_enq( camera ); + + coolshot_write_packet( camera, buf ); + + /* read ACK */ + coolshot_read_packet( camera, buf ); + + /* read data */ + coolshot_read_packet( camera, buf ); + + /* send ACK */ + coolshot_ack( camera ); + return( GP_OK ); +} + +static +int coolshot_sp( Camera *camera ) { + char buf[16]; + + GP_DEBUG ("* coolshot_sp"); + + memset( buf, 0, sizeof( buf )); + + buf[0] = COOLSHOT_PKT; + buf[2] = 'S'; + buf[3] = 'P'; + buf[4] = 0x02; + buf[15] = 0x02; + + coolshot_enq( camera ); + + coolshot_write_packet( camera, buf ); + + /* read ACK */ + coolshot_read_packet( camera, buf ); + + packet_size = 500; + + return( GP_OK ); +} + +int coolshot_file_count (Camera *camera) { + char buf[16]; + int count = 0; + + GP_DEBUG ("* coolshot_file_count"); + + memset( buf, 0, sizeof( buf )); + + buf[0] = COOLSHOT_PKT; + buf[2] = 'R'; + buf[3] = 'N'; + buf[5] = 0x01; + buf[15] = 0x02; + + coolshot_enq( camera ); + + /* request count */ + coolshot_write_packet( camera, buf ); + + /* read ack */ + coolshot_read_packet( camera, buf ); + + /* read data packet */ + coolshot_read_packet( camera, buf ); + + count = buf[7]; + + usleep( COOL_SLEEP ); + coolshot_ack( camera ); + + return( count ); +} + +int coolshot_request_image( Camera *camera, CameraFile *file, + char *buf, int *len, int number, GPContext *context ) { + char packet[16]; + + GP_DEBUG ("* coolshot_request_image"); + + memset( packet, 0, sizeof( packet )); + + packet[0] = COOLSHOT_PKT; + packet[2] = 'R'; + packet[3] = 'D'; + packet[7] = number; + packet[15] = 0x02; + + /* fixme */ + coolshot_fs( camera, number ); + coolshot_sp( camera ); + + coolshot_enq( camera ); + + /* request image */ + coolshot_write_packet( camera, packet ); + + /* read ack */ + coolshot_read_packet( camera, packet ); + + /* read OK */ + coolshot_read_packet( camera, packet ); + + /* read data */ + coolshot_download_image( camera, file, buf, len, 0, context ); + + return( GP_OK ); +} + +int coolshot_request_thumbnail( Camera *camera, CameraFile *file, + char *buf, int *len, int number, GPContext *context ) { + char packet[16]; + + GP_DEBUG ("* coolshot_request_thumbnail"); + + memset( packet, 0, sizeof( packet )); + + packet[0] = COOLSHOT_PKT; + packet[2] = 'R'; + packet[3] = 'M'; + packet[7] = number; + packet[15] = 0x02; + + /* fixme */ + coolshot_fs( camera, number ); + /* + coolshot_sp( camera ); + */ + + coolshot_enq( camera ); + + /* request image */ + coolshot_write_packet( camera, packet ); + + /* read ack */ + coolshot_read_packet( camera, packet ); + + /* read OK */ + coolshot_read_packet( camera, packet ); + + /* read data */ + coolshot_download_image( camera, file, buf, len, 1, context ); + + return( GP_OK ); +} + +static +int coolshot_check_checksum( char *packet, int length ) { + int checksum = 0; + int p_csum = 0; + int x; + unsigned char *ptr; + + ptr = (unsigned char *)packet + 2; + for( x = 2; x < (length - 4 ); x++ ) { + checksum += *(ptr++); + /* checksum += (unsigned char)packet[x]; */ + } + checksum &= 0xffff; /* 16 bit checksum */ + + p_csum = (unsigned char)packet[length - 4]; + p_csum = p_csum << 8; + p_csum += (unsigned char)packet[length - 3]; + + if ( checksum == p_csum ) { + return( GP_OK ); + } else { + return( GP_ERROR ); + } +} + +int coolshot_download_image( Camera *camera, CameraFile *file, + char *buf, int *len, int thumbnail, GPContext *context ) { + char packet[1024]; + int data_len; + int bytes_read = 0; + int last_good = 0; + unsigned int id; + + GP_DEBUG ("* coolshot_download_image"); + + memset( packet, 0, sizeof( packet )); + + packet[2] = '0'; + packet[3] = '0'; + + coolshot_ack( camera ); + + coolshot_read_packet( camera, packet ); + + data_len = (unsigned char)packet[6] * 256; + data_len += (unsigned char)packet[7]; + + /* fixme, get rid of hardcoded length */ + if ( coolshot_check_checksum( packet, 8 + packet_size + 4 ) == GP_OK ) { + coolshot_ack( camera ); + last_good = 1; + } else { + /* + coolshot_nak( camera ); + */ + last_good = 0; + } + + id = gp_context_progress_start (context, thumbnail ? 1800 : 80000, + _("Downloading image...")); + while( strncmp( packet + 2, "DT", 2 ) == 0 ) { + /* process packet */ + if ( last_good ) { + data_len = (unsigned char)packet[6] * 256; + data_len += (unsigned char)packet[7]; + + memcpy( buf + bytes_read, packet + 8, data_len ); + + bytes_read += data_len; + } + + gp_context_progress_update (context, id, bytes_read); + /* fixme, add ability to cancel download */ + + coolshot_read_packet( camera, packet ); + + data_len = (unsigned char)packet[6] * 256; + data_len += (unsigned char)packet[7]; + + /* fixme, get rid of hardcoded length */ + if ( coolshot_check_checksum( packet, 8 + packet_size + 4 ) == GP_OK) { + coolshot_ack( camera ); + last_good = 1; + } else { + /* + coolshot_nak( camera ); + */ + last_good = 0; + } + } + gp_context_progress_stop (context, id); + + coolshot_ack( camera ); + + *len = bytes_read; + + return( GP_OK ); +} + +static +int coolshot_write_packet (Camera *camera, char *packet) { + int x, ret, r, checksum=0, length; + + GP_DEBUG ("* coolshot_write_packet"); + + if ( packet[0] == COOLSHOT_PKT ) { + /* fixme */ + length = 16; + + for ( x = 2 ; x < 12; x++ ) { + checksum += (unsigned char)packet[x]; + } + + packet[length - 4] = (checksum >> 8 ) & 0xff; + packet[length - 3] = checksum & 0xff; + + } else if (( packet[0] == COOLSHOT_ENQ ) || + ( packet[0] == COOLSHOT_ACK ) || + ( packet[0] == COOLSHOT_NAK )) { + length = 1; + } else { + length = 0; + /* fixme */ + return( -1 ); + } + + for (r = 0; r < RETRIES; r++) { + ret = gp_port_write (camera->port, packet, length); + if (ret == GP_ERROR_TIMEOUT) + continue; + + return (ret); + } + + return (GP_ERROR_TIMEOUT); +} + +static +int coolshot_read_packet (Camera *camera, char *packet) { + int r = 0, x = 0, ret, done, length=0; + int blocksize, bytes_read; + + GP_DEBUG ("* coolshot_read_packet"); + +read_packet_again: + packet[0] = 0; + + if (r > 0) + GP_DEBUG ("* reading again..."); + + done = 0; + + blocksize = 1; + + for (r = 0; r < RETRIES; r++) { + + bytes_read = gp_port_read (camera->port, packet, blocksize); + if (bytes_read == GP_ERROR_TIMEOUT) + continue; + if (bytes_read < 0) + return (bytes_read); + + if ( packet[0] == COOLSHOT_ENQ ) { + usleep( COOL_SLEEP ); + coolshot_ack( camera ); + coolshot_read_packet( camera, packet ); + return( GP_OK ); + } + + if (( packet[0] == COOLSHOT_ACK ) || + ( packet[0] == COOLSHOT_DONE )) { + return( GP_OK ); + } + + if ( packet[0] != COOLSHOT_PKT ) { + return( GP_ERROR ); + } + + bytes_read = gp_port_read (camera->port, packet + 1, 3 ); + if (bytes_read == GP_ERROR_TIMEOUT) + continue; + if (bytes_read < 0) + return (bytes_read); + + /* Determine the packet type */ + if (( strncmp( packet + 2, "OK", 2 ) == 0 ) || + ( strncmp( packet + 2, "DE", 2 ) == 0 ) || + ( strncmp( packet + 2, "SB", 2 ) == 0 )) { + /* normal 16-byte packet, so read the other 12 bytes */ + ret = gp_port_read (camera->port, packet + 4, 12 ); + if (ret == GP_ERROR_TIMEOUT) { + /* fixme */ + /* + coolshot_nak (camera); + */ + goto read_packet_again; + } + + if (ret < 0) + return (ret); + + return( GP_OK ); + } else if ( strncmp( packet + 2, "DT", 2 ) == 0 ) { + /* read in packet number and length */ + ret = gp_port_read (camera->port, packet + 4, 4 ); + /* fixme, error detection */ + + length = (unsigned char)packet[6] * 256; + length += (unsigned char)packet[7]; + + if (( packet_size == 128 ) || + ( length == 128 )) { + length = 128; + } else { + length = 500; + } + length += 4; + + ret = gp_port_read (camera->port, packet + 8, length ); + /* fixme, error detection */ + + x = 0; + while(( ret == GP_ERROR_TIMEOUT ) && + ( x < RETRIES )) { + x++; + ret = gp_port_read (camera->port, packet + 8, length ); + } + + return( GP_OK ); + } + + if (done) break; + } + + return (GP_ERROR_TIMEOUT); +} + +static +int coolshot_ack (Camera *camera) +{ + int ret, r = 0; + char buf[16]; + + GP_DEBUG ("* coolshot_ack"); + + buf[0] = COOLSHOT_ACK; + + for (r = 0; r < RETRIES; r++) { + + ret = coolshot_write_packet (camera, buf); + if (ret == GP_ERROR_TIMEOUT) + continue; + if (ret == GP_OK) + return (ret); + } + return (GP_ERROR_TIMEOUT); +} + +#if 0 +static +int coolshot_nak (Camera *camera) +{ + int ret, r = 0; + char buf[16]; + + GP_DEBUG ("* coolshot_nak"); + + buf[0] = COOLSHOT_NAK; + + for (r = 0; r < RETRIES; r++) { + + ret = coolshot_write_packet (camera, buf); + if (ret == GP_ERROR_TIMEOUT) + continue; + if (ret == GP_OK) + return (ret); + } + return (GP_ERROR_TIMEOUT); +} +#endif + +int coolshot_enq (Camera *camera) +{ + int ret, r = 0; + char buf[16]; + + GP_DEBUG ("* coolshot_enq"); + + buf[0] = COOLSHOT_ENQ; + + for (r = 0; r < RETRIES; r++) { + + ret = coolshot_write_packet (camera, buf); + if (ret == GP_ERROR_TIMEOUT) + continue; + if (ret != GP_OK) + return (ret); + + ret = coolshot_read_packet (camera, buf); + if (ret == GP_ERROR_TIMEOUT) + continue; + if (ret != GP_OK) + return (ret); + + if (buf[0] == COOLSHOT_ACK) + return (GP_OK); + else + return (GP_ERROR_CORRUPTED_DATA); + + } + return (GP_ERROR_TIMEOUT); +} + + +#define WIDTH 40 +#define HEIGHT 30 + +#define Y_ADJ 25 + +#define RIND(x, y, w) (((w)*(HEIGHT))+((y/2)*(WIDTH/2))+(x/2)) +#define BIND(x, y, w) (((w)*(HEIGHT))+((WIDTH/4)*(HEIGHT))+((y/2)*(WIDTH/2))+(x/2)) + +int coolshot_build_thumbnail (char *data, int *size) +{ + char thumbnail[32768]; + char *ptr; + unsigned char *udata = (unsigned char *)data; + char *src; + int length; + int x, y; + int loop; + int Y, U, V; + + + ptr = thumbnail; + + src = data; + x = y = 0; + + for( loop = 0; loop < *size; loop++ ) { + if ( x == WIDTH ) { + x = 0; + y++; + } + + if ( y < HEIGHT ) { + /* + from imagemagick + Y = 0.299000*R+0.587000*G+0.114000*B + Cb= -0.168736*R-0.331264*G+0.500000*B + Cr= 0.500000*R-0.418688*G-0.081316*B + + R = Y +1.402000*Cr + G = Y-0.344136*Cb-0.714136*Cr + B = Y+1.772000*Cb + */ + + Y = *src + Y_ADJ; + U = udata[RIND(x,y,WIDTH)] - 128; + V = udata[BIND(x,y,WIDTH)] - 128; + + ptr[0] = Y + ( 1.402000 * V ); + ptr[1] = Y - ( 0.344136 * U ) - ( 0.714136 * V ); + ptr[2] = Y + ( 1.772000 * U ); + ptr += 3; + + x++; + src++; + } + } + + /* copy the header */ + sprintf( data, + "P6\n" + "# CREATOR: gphoto2, panasonic coolshot library\n" + "%d %d\n" + "255\n", 80, 60 ); + + length = strlen( data ); + + /* copy the image doubling both height and width */ + ptr = data + length; + for( y = 0; y < HEIGHT; y++ ) { + src = thumbnail + (y * WIDTH * 3); + for( x = 0; x < WIDTH ; x++, src += 3 ) { + ptr[0] = src[0]; ptr[1] = src[1]; ptr[2] = src[2]; ptr += 3; + ptr[0] = src[0]; ptr[1] = src[1]; ptr[2] = src[2]; ptr += 3; + } + src = thumbnail + (y * WIDTH * 3); + for( x = 0; x < WIDTH ; x++, src += 3 ) { + ptr[0] = src[0]; ptr[1] = src[1]; ptr[2] = src[2]; ptr += 3; + ptr[0] = src[0]; ptr[1] = src[1]; ptr[2] = src[2]; ptr += 3; + } + } + + length += WIDTH * HEIGHT * 3 * 4; + + *size = length; + + return( GP_OK ); +} + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/library.h new file mode 100644 index 00000000..9ee3914e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/coolshot/library.h @@ -0,0 +1,35 @@ +/****************************************************************/ +/* library.h - Gphoto2 library for accessing the Panasonic */ +/* Coolshot KXL-600A & KXL-601A digital cameras. */ +/* */ +/* Copyright 2001 Chris Pinkham */ +/* */ +/* Author: Chris Pinkham */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#define CHECK(result) {int res; res = result; if (res < 0) return (res);} + +int coolshot_sm (Camera *camera); +int coolshot_sb (Camera *camera, int speed); +int coolshot_enq (Camera *camera); +int coolshot_file_count (Camera *camera); +int coolshot_request_image (Camera *camera, CameraFile *file, char *buf, int *len, int number, GPContext *context); +int coolshot_request_thumbnail (Camera *camera, CameraFile *file, char *buf, int *len, int number, GPContext *context); +int coolshot_build_thumbnail (char *data, int *size); diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc.c new file mode 100644 index 00000000..a1ffb99e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc.c @@ -0,0 +1,248 @@ +/* + $Id$ + + Copyright 2000 Mariusz Zynel (gPhoto port) + Copyright 2000 Fredrik Roubert (idea) + Copyright 1999 Galen Brooks (DC1580 code) + + This file is part of the gPhoto project and may only be used, modified, + and distributed under the terms of the gPhoto project license, COPYING. + By continuing to use, modify, or distribute this file you indicate that + you have read the license, understand and accept it fully. + + THIS SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, + EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDER BE + LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE. + + Note: + + This is a Panasonic DC series common routines. +*/ +#include "config.h" + +#include +#include +#include +#include +#include +#include +#ifdef HAVE_MEMORY_H +#include +#endif +#include "dc.h" +#include "dc1000.h" + +#ifndef __FILE__ +# define __FILE__ "dc.c" +#endif + +#define GP_MODULE "dc" + + +static const char + c_prefix[13] = /* generic command prefix */ + { 'M', 'K', 'E', ' ', 'D', 'S', 'C', ' ', 'P', 'C', ' ', ' ' }, + + r_prefix[13] = /* generic response prefix */ + { 'M', 'K', 'E', ' ', 'P', 'C', ' ', ' ', 'D', 'S', 'C', ' ' }; + + +int dsc1_sendcmd(Camera *camera, uint8_t cmd, void *data, int size) { + + int i; + + DEBUG_PRINT_MEDIUM(("Sending command: 0x%02x, data size: %i.", cmd, size)); + + memset(camera->pl->buf, 0, DSC_BUFSIZE); + + memcpy(camera->pl->buf, c_prefix, 12); + + for (i = 0; i < 4; i++) + camera->pl->buf[DSC1_BUF_SIZE + i] = (uint8_t)(size >> 8*(3 - i)); + + camera->pl->buf[DSC1_BUF_CMD] = cmd; + + if (DSC_BUFSIZE - DSC1_BUF_DATA <= size) { + RETURN_ERROR(EDSCOVERFL) + /* overflow */ + } + + if (data && 0 < size) + memcpy(&camera->pl->buf[DSC1_BUF_DATA], data, size); + + return gp_port_write(camera->port, camera->pl->buf, 17 + size); +} + +int dsc1_retrcmd(Camera *camera) { + + int result = GP_ERROR; + int s; + + if ((s = gp_port_read(camera->port, camera->pl->buf, 17)) == GP_ERROR) + return GP_ERROR; + +/* Make sense in debug only. Done on gp_port level. + if (0 < s) + dsc_dumpmem(camera->pl->buf, s); +*/ + + if (s != 17 || memcmp(camera->pl->buf, r_prefix, 12) != 0 ) + RETURN_ERROR(EDSCBADRSP) + /* bad response */ + else + result = camera->pl->buf[DSC1_BUF_CMD]; + + camera->pl->size = + (uint32_t)camera->pl->buf[DSC1_BUF_SIZE + 3] | + ((uint8_t)camera->pl->buf[DSC1_BUF_SIZE + 2] << 8) | + ((uint8_t)camera->pl->buf[DSC1_BUF_SIZE + 1] << 16) | + ((uint8_t)camera->pl->buf[DSC1_BUF_SIZE] << 24); + + if (DSC_BUFSIZE < camera->pl->size) { + RETURN_ERROR(EDSCOVERFL); + /* overflow */ + } + + if (gp_port_read(camera->port, camera->pl->buf, camera->pl->size) != camera->pl->size) + return GP_ERROR; + + DEBUG_PRINT_MEDIUM(("Retrieved command: %i.", result)); + + return result; +} + +int dsc1_setbaudrate(Camera *camera, int speed) { + + GPPortSettings settings; + uint8_t s_bps; + int result; + + DEBUG_PRINT_MEDIUM(("Setting baud rate to: %i.", speed)); + + switch (speed) { + + case 9600: + s_bps = 0x02; + break; + + case 19200: + s_bps = 0x0d; + break; + + case 38400: + s_bps = 0x01; + break; + + case 57600: + s_bps = 0x03; + break; + + case 115200: + s_bps = 0x00; + break; + + default: + RETURN_ERROR(EDSCBPSRNG); + } + + if (dsc1_sendcmd(camera, DSC1_CMD_SET_BAUD, &s_bps, 1) != GP_OK) + return GP_ERROR; + + if (dsc1_retrcmd(camera) != DSC1_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + sleep(DSC_PAUSE/2); + + CHECK (gp_port_get_settings(camera->port, &settings)); + settings.serial.speed = speed; + CHECK (gp_port_set_settings(camera->port, settings)); + + DEBUG_PRINT_MEDIUM(("Baudrate set to: %i.", speed)); + + return GP_OK; +} + +int dsc1_getmodel(Camera *camera) { + + static const char response[3] = { 'D', 'S', 'C' }; + + DEBUG_PRINT_MEDIUM(("Getting camera model.")); + + if (dsc1_sendcmd(camera, DSC1_CMD_GET_MODEL, NULL, 0) != GP_OK) + return GP_ERROR; + + if (dsc1_retrcmd(camera) != DSC1_RSP_MODEL || + memcmp(camera->pl->buf, response, 3) != 0) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Camera model is: %c.", camera->pl->buf[3])); + + switch (camera->pl->buf[3]) { + case '1': + return DSC1; + + case '2': + return DSC2; + + default: + return 0; + } + return GP_ERROR; +} + +void dsc_dumpmem(void *buf, int size) { + + int i; + + fprintf(stderr, "\nMemory dump: size: %i, contents:\n", size); + for (i = 0; i < size; i ++) + fprintf( + stderr, + *((char*)buf + i) >= 32 && + *((char*)buf + i) < 127 ? "%c" : "\\x%02x", + (uint8_t)*((char*)buf + i) + ); + fprintf(stderr, "\n\n"); +} + +const char *dsc_strerror(int error) { + + static const char * const errorlist[] = { + "Unknown error code", + "Baud rate out of range", + "Bad image number", + "Bad response", + "Bad camera model", + "Overflow" + }; + + if (error == EDSCSERRNO) + return strerror(errno); + + if (error < 1 || EDSCMAXERR < error) + return errorlist[EDSCUNKNWN]; + + return errorlist[error]; +} + +char *dsc_msgprintf(char *format, ...) { + + va_list pvar; + static char msg[512]; + + va_start(pvar, format); + vsprintf(msg, format, pvar); + va_end(pvar); + return msg; +} + +void dsc_errorprint(int error, char *file, int line) { + + GP_DEBUG( + "%s:%u: return code: %i, errno: %i, %s", + file, line, error, errno, dsc_strerror(error)); +} + +/* End of dc.c */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc.h new file mode 100644 index 00000000..3c577121 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc.h @@ -0,0 +1,114 @@ +/* + $Id$ + + Copyright 2000 Mariusz Zynel (gPhoto port) + Copyright 2000 Fredrik Roubert (idea) + Copyright 1999 Galen Brooks (DC1580 code) + + This file is part of the gPhoto project and may only be used, modified, + and distributed under the terms of the gPhoto project license, COPYING. + By continuing to use, modify, or distribute this file you indicate that + you have read the license, understand and accept it fully. + + THIS SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, + EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDER BE + LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE. + + Note: + + This header contains common typedefs, constants and utility functions + for Panasonic DC1000 and DC1580 cameras. +*/ + +#include +#include +#include <_stdint.h> +#include + +#define DSC1 1 /* DC1000 */ +#define DSC2 2 /* DC1580 */ + +typedef enum { + unavailable = -1, + normal = 0, + fine = 1, + superfine = 2 +} dsc_quality_t; + +struct _CameraPrivateLibrary { + char *buf; + int size; +}; + +#define DSC_BLOCKSIZE 0x400 /* amount of image data transferred in a single packet */ +#define DSC_BUFSIZE 0x406 /* largest possible amount of data transferred in a single packet */ +#define DSC_MAXIMAGESIZE 0xfffff /* largest possible file that can be uploaded */ +#define DSC_FILENAMEFMT "dsc%04i.jpg" /* format of image file names */ +#define DSC_THUMBNAMEFMT "dsc%04i-thumbnail.jpg" /* format of thumbnail file names */ + +#define DSC_PAUSE 4 /* seconds to wait for camera to redraw screen */ + +#define DSC_FULLIMAGE 0 +#define DSC_THUMBNAIL 1 + +#define EDSCSERRNO -1 /* see errno value */ +#define EDSCUNKNWN 0 /* unknown error code */ +#define EDSCBPSRNG 1 /* bps out of range */ +#define EDSCBADNUM 2 /* bad image number */ +#define EDSCBADRSP 3 /* bad response */ +#define EDSCBADDSC 4 /* bad camera model */ +#define EDSCOVERFL 5 /* overfolw */ +#define EDSCMAXERR 5 /* highest used error code */ + +int dsc1_sendcmd(Camera *camera, uint8_t cmd, void *data, int size); + /* Send command with 'data' of 'size' to DSC */ + +int dsc1_retrcmd(Camera *camera); + /* Retrieve command and its data from DSC */ + +int dsc1_setbaudrate(Camera *camera, int speed); + /* Set baud rate of connection. Part of hand shake procedure */ + /* Returns GP_OK if succesful and GP_ERROR otherwise. */ + +int dsc1_getmodel(Camera *camera); + /* Returns camera (sub)model, DSC1: DC1000, DSC2: DC1580, */ + /* 0: unknown, or GP_ERROR. Part of hand shake procedure. */ + +void dsc_dumpmem(void *buf, int size); + /* Print size bytes of memory at the buf pointer. */ + +const char *dsc_strerror(int error); + /* Convert error numbers into readable messages. */ + +char *dsc_msgprintf(char *format, ...); + /* Format message string. */ + +void dsc_errorprint(int error, char *file, int line); + /* Print information on error, including file name, function */ + /* name and line number. */ + +/******************************************************************************/ + +/* Pre-procesor macros for verbose messaging and debugging */ + +#define DEBUG_PRINT_LOW(ARGS) \ + GP_DEBUG( "%s: %s", __FILE__, dsc_msgprintf ARGS ); + +#define DEBUG_PRINT_MEDIUM(ARGS) \ + GP_DEBUG( "%s: %s", __FILE__, dsc_msgprintf ARGS ); + +#define DEBUG_PRINT_HIGH(ARGS) \ + GP_DEBUG( "%s: %s", __FILE__, dsc_msgprintf ARGS ); + +#define RETURN_ERROR(ERROR) { \ + dsc_errorprint(ERROR, __FILE__, __LINE__); \ + return GP_ERROR; \ + } + +#define CHECK(OPERATION) \ + if ((result = OPERATION) < 0) { \ + dsc_errorprint(EDSCSERRNO, __FILE__, __LINE__); \ + return result; \ + } + +/* End of dc.h */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1000.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1000.c new file mode 100644 index 00000000..91b1383a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1000.c @@ -0,0 +1,565 @@ +/* + Copyright 2000 Mariusz Zynel (gPhoto port) + Copyright 2000 Fredrik Roubert (idea) + Copyright 1999 Galen Brooks (DC1580 code) + + This file is part of the gPhoto project and may only be used, modified, + and distributed under the terms of the gPhoto project license, COPYING. + By continuing to use, modify, or distribute this file you indicate that + you have read the license, understand and accept it fully. + + THIS SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, + EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDER BE + LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE. + + Note: + + This is a Panasonic PV/NV-DC1000 camera gPhoto library source code. + +*/ + +#include "config.h" + +#include +#include +#ifdef HAVE_MEMORY_H +#include +#endif +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "dc.h" +#include "dc1000.h" + +#ifndef __FILE__ +# define __FILE__ "dc1000.c" +#endif + +#define GP_MODULE "dc1000" + +/******************************************************************************/ + +/* Internal utility functions */ + + +/* dsc1_connect - try hand shake with camera and establish connection */ + +static int dsc1_connect(Camera *camera, int speed) { + + uint8_t data = 0; + + DEBUG_PRINT_MEDIUM(("Connecting a camera.")); + + if (dsc1_setbaudrate(camera, speed) != GP_OK) + return GP_ERROR; + + if (dsc1_getmodel(camera) != DSC1) + RETURN_ERROR(EDSCBADDSC); + /* bad camera model */ + + dsc1_sendcmd(camera, DSC1_CMD_CONNECT, &data, 1); + + if (dsc1_retrcmd(camera) != DSC1_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Camera connected successfully.")); + + return GP_OK; +} + +/* dsc1_disconnect - reset camera, free buffers and close files */ + +static int dsc1_disconnect(Camera *camera) { + + DEBUG_PRINT_MEDIUM(("Disconnecting the camera.")); + + if (dsc1_sendcmd(camera, DSC1_CMD_RESET, NULL, 0) != GP_OK) + return GP_ERROR; + + if (dsc1_retrcmd(camera) != DSC1_RSP_OK) + RETURN_ERROR(EDSCBADRSP) + /* bad response */ + else + sleep(DSC_PAUSE); /* let camera to redraw its screen */ + + DEBUG_PRINT_MEDIUM(("Camera disconnected.")); + + return GP_OK; +} + +/* dsc1_getindex - retrieve the number of images stored in camera memory */ + +static int dsc1_getindex(Camera *camera) { + + int result = GP_ERROR; + + DEBUG_PRINT_MEDIUM(("Retrieving the number of images.")); + + if (dsc1_sendcmd(camera, DSC1_CMD_GET_INDEX, NULL, 0) != GP_OK) + return GP_ERROR; + + if (dsc1_retrcmd(camera) == DSC1_RSP_INDEX) + result = camera->pl->size / 2; + else + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Number of images: %i", result)); + + return result; +} + +/* dsc1_delete - delete image #index from camera memory */ + +static int dsc1_delete(Camera *camera, uint8_t index) { + + DEBUG_PRINT_MEDIUM(("Deleting image: %i.", index)); + + if (index < 1) + RETURN_ERROR(EDSCBADNUM); + /* bad image number */ + + if (dsc1_sendcmd(camera, DSC1_CMD_DELETE, &index, 1) != GP_OK) + return GP_ERROR; + + if (dsc1_retrcmd(camera) != DSC1_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Image: %i deleted.", index)); + + return GP_OK; +} + +/* dsc1_selectimage - select image to download, return its size */ + +static int dsc1_selectimage(Camera *camera, uint8_t index) +{ + int size = 0; + + DEBUG_PRINT_MEDIUM(("Selecting image: %i.", index)); + + if (index < 1) + RETURN_ERROR(EDSCBADNUM); + /* bad image number */ + + if (dsc1_sendcmd(camera, DSC1_CMD_SELECT, &index, 1) != GP_OK) + return GP_ERROR; + + if (dsc1_retrcmd(camera) != DSC1_RSP_IMGSIZE) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + if (camera->pl->size != 4) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + size = (uint32_t)camera->pl->buf[3] | + ((uint8_t)camera->pl->buf[2] << 8) | + ((uint8_t)camera->pl->buf[1] << 16) | + ((uint8_t)camera->pl->buf[0] << 24); + + DEBUG_PRINT_MEDIUM(("Selected image: %i, size: %i.", index, size)); + + return size; +} + +/* gp_port_readimageblock - read #block block (1024 bytes) of an image into buf */ + +static int dsc1_readimageblock(Camera *camera, int block, char *buffer) { + + char buf[2]; + + DEBUG_PRINT_MEDIUM(("Reading image block: %i.", block)); + + buf[0] = (uint8_t)(block >> 8); + buf[1] = (uint8_t)block; + + if (dsc1_sendcmd(camera, DSC1_CMD_GET_DATA, buf, 2) != GP_OK) + return GP_ERROR; + + if (dsc1_retrcmd(camera) != DSC1_RSP_DATA) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + if (buffer) + memcpy(buffer, camera->pl->buf, camera->pl->size); + + DEBUG_PRINT_MEDIUM(("Block: %i read in.", block)); + + return camera->pl->size; +} + +/* dsc1_readimage - read #index image or thumbnail and return its contents */ +#if 0 +static char *dsc1_readimage(Camera *camera, int index, int *size) { + + int rsize, i, s; + char *buffer = NULL; + + DEBUG_PRINT_MEDIUM(("Reading image: %i.", index)); + + if ((*size = dsc1_selectimage(camera, index)) < 0) + return NULL; + + if (!(buffer = (char*)malloc(*size))) { + DEBUG_PRINT_MEDIUM(("Failed to allocate memory for image data.")); + return NULL; + } + + for (i = 0, s = 0; s < *size; i++) { + if ((rsize = dsc1_readimageblock(camera, i, &buffer[s])) == GP_ERROR) { + DEBUG_PRINT_MEDIUM(("Error during image transfer.")); + free(buffer); + return NULL; + } + s += rsize; + } + + DEBUG_PRINT_MEDIUM(("Image: %i read in.", index)); + + return buffer; +} +#endif + +/* dsc1_setimageres - set image resolution based on its size, used on upload to camera */ + +static int dsc1_setimageres(Camera *camera, int size) { + + dsc_quality_t res; + + DEBUG_PRINT_MEDIUM(("Setting image resolution, image size: %i.", size)); + + if (size < 65536) + res = normal; + else if (size < 196608) + res = fine; + else + res = superfine; + + if (dsc1_sendcmd(camera, DSC1_CMD_SET_RES, &res, 1) != GP_OK) + return GP_ERROR; + + if (dsc1_retrcmd(camera) != DSC1_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Image resolution set to: %i", res)); + + return GP_OK; +} + +/* gp_port_writeimageblock - write size bytes from buffer rounded to 1024 bytes to camera */ + +static int dsc1_writeimageblock(Camera *camera, int block, char *buffer, int size) { + + DEBUG_PRINT_MEDIUM(("Writing image block: %i", block)); + + dsc1_sendcmd(camera, DSC1_CMD_SEND_DATA, buffer, size); + + if (dsc1_retrcmd(camera) != DSC1_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Block: %i of size: %i written.", block, size)); + + return GP_OK; +} + +/* gp_port_writeimage - write an image to camera memory, size bytes at buffer */ +#if 0 +static int dsc1_writeimage(Camera *camera, char *buffer, int size) +{ + int blocks, blocksize, i; + + DEBUG_PRINT_MEDIUM(("Writing an image of size: %i.", size)); + + if ((dsc1_setimageres(camera, size)) != GP_OK) + return GP_ERROR; + + blocks = (size - 1)/DSC_BLOCKSIZE + 1; + + for (i = 0; i < blocks; i++) { + blocksize = size - i*DSC_BLOCKSIZE; + if (DSC_BLOCKSIZE < blocksize) + blocksize = DSC_BLOCKSIZE; + if (dsc1_writeimageblock(camera, i, &buffer[i*DSC_BLOCKSIZE], blocksize) != GP_OK) { + DEBUG_PRINT_MEDIUM(("Error during image transfer.")); + return GP_ERROR; + } + } + + DEBUG_PRINT_MEDIUM(("Image written successfully.")); + + return GP_OK; +} +#endif + +/* dsc1_preview - show selected image on camera's LCD - is it supported? */ + +#if 0 +static int dsc1_preview(Camera *camera, int index) +{ + if (index < 1) + RETURN_ERROR(EDSCBADNUM); + /* bad image number */ + + if (dsc1_sendcmd(camera, DSC1_CMD_PREVIEW, &index, 1) != GP_OK) + return GP_ERROR; + + if (dsc1_retrcmd(camera) != DSC1_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + return GP_OK; +} +#endif + +/******************************************************************************/ + +/* Library interface functions */ + +int camera_id (CameraText *id) { + + strcpy(id->text, "panasonic-dc1000"); + + return GP_OK; +} + +int camera_abilities (CameraAbilitiesList *list) { + + CameraAbilities a; + int result; + + memset (&a, 0, sizeof(a)); + strcpy(a.model, "Panasonic:DC1000"); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.speed[5] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE; + + CHECK (gp_abilities_list_append(list, a)); + + return GP_OK; +} + +static int camera_exit (Camera *camera, GPContext *context) { + + gp_context_status(context, _("Disconnecting camera.")); + dsc1_disconnect(camera); + + if (camera->pl->buf) { + free (camera->pl->buf); + camera->pl->buf = NULL; + } + free (camera->pl); + camera->pl = NULL; + return GP_OK; +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + int count; + + if ((count = dsc1_getindex (camera)) == GP_ERROR) + return GP_ERROR; + + gp_list_populate (list, DSC_FILENAMEFMT, count); + + return GP_OK; +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *data, GPContext *context) +{ + Camera *camera = data; + int index, size, rsize, i, s; + unsigned int id; + + if (type != GP_FILE_TYPE_NORMAL) + return (GP_ERROR_NOT_SUPPORTED); + + gp_context_status(context, _("Downloading image %s."), filename); + + /* index is the 0-based image number on the camera */ + index = gp_filesystem_number (camera->fs, folder, filename, context); + if (index < 0) + return (index); + + if ((size = dsc1_selectimage(camera, index + 1)) < 0) + return (GP_ERROR); + + gp_file_set_mime_type (file, GP_MIME_JPEG); + + id = gp_context_progress_start (context, size, _("Getting data...")); + for (i = 0, s = 0; s < size; i++) { + if ((rsize = dsc1_readimageblock(camera, i, NULL)) == GP_ERROR) + return GP_ERROR; + s += rsize; + gp_file_append (file, camera->pl->buf, camera->pl->size); + gp_context_progress_update (context, id, s); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + } + gp_context_progress_stop (context, id); + + return GP_OK; +} + +static int put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int blocks, blocksize, i; + int result; + const char *data; + unsigned long int size; + unsigned int id; + + gp_context_status(context, _("Uploading image: %s."), name); + +/* We can not figure out file type, at least by now. + + if (strcmp(file->type, "image/jpg") != 0) { + dsc_print_message(camera, "JPEG image format allowed only."); + return GP_ERROR; + } +*/ + gp_file_get_data_and_size (file, &data, &size); + if (size > DSC_MAXIMAGESIZE) { + gp_context_message (context, _("File size is %ld bytes. " + "The size of the largest file possible to " + "upload is: %i bytes."), size, + DSC_MAXIMAGESIZE); + return GP_ERROR; + } + + result = dsc1_setimageres (camera, size); + if (result != GP_OK) + return (result); + + blocks = (size - 1)/DSC_BLOCKSIZE + 1; + + id = gp_context_progress_start (context, blocks, _("Uploading...")); + for (i = 0; i < blocks; i++) { + blocksize = size - i*DSC_BLOCKSIZE; + if (DSC_BLOCKSIZE < blocksize) + blocksize = DSC_BLOCKSIZE; + result = dsc1_writeimageblock (camera, i, + (char*)&data[i*DSC_BLOCKSIZE], + blocksize); + if (result != GP_OK) + return (result); + + gp_context_progress_update (context, id, i + 1); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + } + gp_context_progress_stop (context, id); + + return GP_OK; +} + +static int delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, + GPContext *context) +{ + Camera *camera = data; + int index, result; + + gp_context_status(context, _("Deleting image %s."), filename); + + /* index is the 0-based image number on the camera */ + CHECK (index = gp_filesystem_number (camera->fs, folder, filename, + context)); + index++; + + return dsc1_delete(camera, index); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy(about->text, + _("Panasonic DC1000 gPhoto library\n" + "Mariusz Zynel \n\n" + "Based on dc1000 program written by\n" + "Fredrik Roubert and\n" + "Galen Brooks .")); + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .put_file_func = put_file_func, +}; + +int camera_init (Camera *camera, GPContext *context) { + + int ret, selected_speed; + GPPortSettings settings; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->about = camera_about; + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + camera->pl->buf = malloc (sizeof (char) * DSC_BUFSIZE); + if (!camera->pl->buf) { + free (camera->pl); + camera->pl = NULL; + return (GP_ERROR_NO_MEMORY); + } + + /* Configure the port (remember the selected speed) */ + gp_port_set_timeout(camera->port, 5000); + gp_port_get_settings(camera->port, &settings); + selected_speed = settings.serial.speed; + settings.serial.speed = 9600; /* hand shake speed */ + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + gp_port_set_settings(camera->port, settings); + + /* Set up the filesystem */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + /* Connect with selected speed */ + ret = dsc1_connect(camera, selected_speed); + if (ret < 0) { + free (camera->pl->buf); + free (camera->pl); + camera->pl = NULL; + return (ret); + } + + return (GP_OK); +} +/* End of dc1000.c */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1000.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1000.h new file mode 100644 index 00000000..5855e8ca --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1000.h @@ -0,0 +1,50 @@ +/* + $Id$ + + Copyright 2000 Mariusz Zynel (gPhoto port) + Copyright 2000 Fredrik Roubert (idea) + Copyright 1999 Galen Brooks (DC1580 code) + + This file is part of the gPhoto project and may only be used, modified, + and distributed under the terms of the gPhoto project license, COPYING. + By continuing to use, modify, or distribute this file you indicate that + you have read the license, understand and accept it fully. + + THIS SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, + EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDER BE + LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE. + + Note: + + This is a Panasonic DC1000 camera gPhoto library header file. +*/ + +/* DC1000 command codes */ + +#define DSC1_CMD_SEND_DATA 0x00 +#define DSC1_CMD_GET_MODEL 0x02 +#define DSC1_CMD_SET_BAUD 0x04 +#define DSC1_CMD_GET_INDEX 0x07 +#define DSC1_CMD_CONNECT 0x10 +#define DSC1_CMD_DELETE 0x11 +#define DSC1_CMD_PREVIEW 0x14 +#define DSC1_CMD_SET_RES 0x15 +#define DSC1_CMD_SELECT 0x1a +#define DSC1_CMD_GET_DATA 0x1e +#define DSC1_CMD_RESET 0x1f + +/* DC1000 response codes */ + +#define DSC1_RSP_DATA 0x00 +#define DSC1_RSP_OK 0x01 +#define DSC1_RSP_MODEL 0x03 +#define DSC1_RSP_INDEX 0x08 +#define DSC1_RSP_IMGSIZE 0x1d + +/* DC1000 response buffer offsets, 0 - first byte in buffer */ + +#define DSC1_BUF_SIZE 12 +#define DSC1_BUF_CMD 16 +#define DSC1_BUF_DATA 17 + +/* End of dc1000.h */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1580.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1580.c new file mode 100644 index 00000000..0db1db39 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1580.c @@ -0,0 +1,676 @@ +/* + Copyright 2000 Mariusz Zynel (gPhoto port) + Copyright 2000 Fredrik Roubert (idea) + Copyright 1999 Galen Brooks (DC1580 code) + + This file is part of the gPhoto project and may only be used, modified, + and distributed under the terms of the gPhoto project license, COPYING. + By continuing to use, modify, or distribute this file you indicate that + you have read the license, understand and accept it fully. + + THIS SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, + EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDER BE + LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE. + + Note: + + This is a Panasonic PV/NV-DC1580 camera gPhoto library source code. + + An algorithm for checksums borrowed from Michael McCormack's Nikon + CoolPix 600 library for gPhoto1. +*/ + +#include "config.h" + +#include +#include +#include +#ifdef HAVE_MEMORY_H +#include +#endif +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "dc.h" +#include "dc1580.h" + +#ifndef __FILE__ +# define __FILE__ "dc1580.c" +#endif + +#define GP_MODULE "dc1580" + +/******************************************************************************/ + +/* Internal utility functions */ + +/* dsc2_checksum - establish checksum for size bytes in buffer */ + +static uint8_t dsc2_checksum(char *buffer, int size) { + + int checksum = 0; + int i; + + for (i = 1; i < size - 2; i++) { + checksum += buffer[i]; + checksum %= 0x100; + } + + return checksum; +} + +/* dsc2_sendcmd - send command with data to DSC */ + +static int dsc2_sendcmd(Camera *camera, uint8_t cmd, long int data, uint8_t sequence) { + + int i; + + DEBUG_PRINT_MEDIUM(("Sending command: 0x%02x, data: %i, sequence: %i.", cmd, data, sequence)); + + memset(camera->pl->buf, 0, 16); + + camera->pl->buf[0] = 0x08; + camera->pl->buf[1] = sequence; + camera->pl->buf[2] = 0xff - sequence; + camera->pl->buf[3] = cmd; + + for (i = 0; i < sizeof(data); i++) + camera->pl->buf[4 + i] = (uint8_t)(data >> 8*i); + + camera->pl->buf[14] = dsc2_checksum(camera->pl->buf, 16); + + return gp_port_write(camera->port, camera->pl->buf, 16); +} + +/* dsc2_retrcmd - retrieve command and its data from DSC */ + +static int dsc2_retrcmd(Camera *camera) { + + int result = GP_ERROR; + int s; + + if ((s = gp_port_read(camera->port, camera->pl->buf, 16)) == GP_ERROR) + return GP_ERROR; + +/* Make sense in debug only. Done on gp_port level. + if (0 < s) + dsc_dumpmem(camera->pl->buf, s); + +*/ + if (s != 16 || camera->pl->buf[DSC2_BUF_BASE] != 0x08 || + camera->pl->buf[DSC2_BUF_SEQ] != 0xff - (uint8_t)camera->pl->buf[DSC2_BUF_SEQC]) { + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + } + else + result = camera->pl->buf[DSC2_BUF_CMD]; + + DEBUG_PRINT_MEDIUM(("Retrieved command: %i.", result)); + + return result; +} + +/* dsc2_connect - try hand shake with camera and establish connection */ + +static int dsc2_connect(Camera *camera, int speed) { + + DEBUG_PRINT_MEDIUM(("Connecting camera with speed: %i.", speed)); + + if (dsc1_setbaudrate(camera, speed) != GP_OK) + return GP_ERROR; + + if (dsc1_getmodel(camera) != DSC2) + RETURN_ERROR(EDSCBADDSC); + /* bad camera model */ + + if (dsc2_sendcmd(camera, DSC2_CMD_CONNECT, 0, 0) != GP_OK) + return GP_ERROR; + + if (dsc2_retrcmd(camera) != DSC2_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Camera connected successfully.")); + + return GP_OK; +} + +/* dsc2_disconnect - reset camera, free buffers and close files */ + +static int dsc2_disconnect(Camera *camera) { + + DEBUG_PRINT_MEDIUM(("Disconnecting the camera.")); + + if (dsc2_sendcmd(camera, DSC2_CMD_RESET, 0, 0) != GP_OK) + return GP_ERROR; + + if (dsc2_retrcmd(camera) != DSC2_RSP_OK) + RETURN_ERROR(EDSCBADRSP) + /* bad response */ + else + sleep(DSC_PAUSE); /* let camera to redraw its screen */ + + DEBUG_PRINT_MEDIUM(("Camera disconnected.")); + + return GP_OK; +} + +/* dsc2_getindex - retrieve the number of images stored in camera memory */ + +static int dsc2_getindex(Camera *camera) { + + int result = GP_ERROR; + + DEBUG_PRINT_MEDIUM(("Retrieving the number of images.")); + + if (dsc2_sendcmd(camera, DSC2_CMD_GET_INDEX, 0, 0) != GP_OK) + return GP_ERROR; + + if (dsc2_retrcmd(camera) == DSC2_RSP_INDEX) + result = + ((uint32_t)camera->pl->buf[DSC2_BUF_DATA]) | + ((uint8_t)camera->pl->buf[DSC2_BUF_DATA + 1] << 8) | + ((uint8_t)camera->pl->buf[DSC2_BUF_DATA + 2] << 16) | + ((uint8_t)camera->pl->buf[DSC2_BUF_DATA + 3] << 24); + else + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Number of images: %i", result)); + + return result; +} + +/* dsc2_delete - delete image #index from camera memory */ + +static int dsc2_delete(Camera *camera, int index) { + + DEBUG_PRINT_MEDIUM(("Deleting image: %i.", index)); + + if (index < 1) + RETURN_ERROR(EDSCBADNUM); + /* bad image number */ + + if (dsc2_sendcmd(camera, DSC2_CMD_DELETE, index, 0) != GP_OK) + return GP_ERROR; + + if (dsc2_retrcmd(camera) != DSC2_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Image: %i deleted.", index)); + return GP_OK; +} + +/* dsc2_selectimage - select image to download, return its size */ + +static int dsc2_selectimage(Camera *camera, int index, int thumbnail) { + + int size = 0; + + DEBUG_PRINT_MEDIUM(("Selecting image: %i, thumbnail: %i.", index, thumbnail)); + + if (index < 1) + RETURN_ERROR(EDSCBADNUM); + /* bad image number */ + + if (thumbnail == DSC_THUMBNAIL) { + if (dsc2_sendcmd(camera, DSC2_CMD_THUMB, index, 0) != GP_OK) + return GP_ERROR; + } else { + if (dsc2_sendcmd(camera, DSC2_CMD_SELECT, index, 0) != GP_OK) + return GP_ERROR; + } + + if (dsc2_retrcmd(camera) != DSC2_RSP_IMGSIZE) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + size = ((uint32_t)camera->pl->buf[DSC2_BUF_DATA]) | + ((uint8_t)camera->pl->buf[DSC2_BUF_DATA + 1] << 8) | + ((uint8_t)camera->pl->buf[DSC2_BUF_DATA + 2] << 16) | + ((uint8_t)camera->pl->buf[DSC2_BUF_DATA + 3] << 24); + + DEBUG_PRINT_MEDIUM(("Selected image: %i, thumbnail: %i, size: %i.", index, thumbnail, size)); + + return size; +} + +/* gp_port_readimageblock - read #block block (1024 bytes) of an image into buf */ + +static int dsc2_readimageblock(Camera *camera, int block, char *buffer) { + + DEBUG_PRINT_MEDIUM(("Reading image block: %i.", block)); + + if (dsc2_sendcmd(camera, DSC2_CMD_GET_DATA, block, block) != GP_OK) + return GP_ERROR; + + if (gp_port_read(camera->port, camera->pl->buf, DSC_BUFSIZE) != DSC_BUFSIZE) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + if ((uint8_t)camera->pl->buf[0] != 1 || + (uint8_t)camera->pl->buf[1] != block || + (uint8_t)camera->pl->buf[2] != 0xff - block || + (uint8_t)camera->pl->buf[3] != DSC2_RSP_DATA || + (uint8_t)camera->pl->buf[DSC_BUFSIZE - 2] != dsc2_checksum(camera->pl->buf, DSC_BUFSIZE)) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + if (buffer) + memcpy(buffer, &camera->pl->buf[4], DSC_BLOCKSIZE); + + DEBUG_PRINT_MEDIUM(("Block: %i read in.", block)); + + return DSC_BLOCKSIZE; +} + +/* dsc2_readimage - read #index image or thumbnail and return its contents */ + +#if 0 +static char *dsc2_readimage(Camera *camera, int index, int thumbnail, int *size) { + + char kind[16]; + int blocks, i; + char *buffer = NULL; + + DEBUG_PRINT_MEDIUM(("Reading image: %i, thumbnail: %i.", index, thumbnail)); + + if ((*size = dsc2_selectimage(camera, index, thumbnail)) < 0) + return NULL; + + if (thumbnail == DSC_THUMBNAIL) + strcpy(kind, "thumbnail"); + else + strcpy(kind, "image"); + + if (!(buffer = (char*)malloc(*size))) { + DEBUG_PRINT_MEDIUM(("Failed to allocate memory for %s data.", kind)); + return NULL; + } + + blocks = (*size - 1)/DSC_BLOCKSIZE + 1; + + for (i = 0; i < blocks; i++) { + if (dsc2_readimageblock(camera, i, &buffer[i*DSC_BLOCKSIZE]) == GP_ERROR) { + DEBUG_PRINT_MEDIUM(("Error during %s transfer.", kind)); + free(buffer); + return NULL; + } + } + + DEBUG_PRINT_MEDIUM(("Image: %i read in.", index)); + + return buffer; +} +#endif + +/* dsc2_setimagesize - set size of an image to upload to camera */ + +static int dsc2_setimagesize(Camera *camera, int size) { + + DEBUG_PRINT_MEDIUM(("Setting image size to: %i.", size)); + + if (dsc2_sendcmd(camera, DSC2_CMD_SET_SIZE, size, 0) != GP_OK) + return GP_ERROR; + + if (dsc2_retrcmd(camera) != DSC2_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Image size set to: %i.", size)); + + return GP_OK; +} + +/* gp_port_writeimageblock - write size bytes from buffer rounded to 1024 bytes to camera */ + +static int dsc2_writeimageblock(Camera *camera, int block, char *buffer, int size) { + + DEBUG_PRINT_MEDIUM(("Writing image block: %i.", block)); + + memset(camera->pl->buf, 0, DSC_BUFSIZE); + + camera->pl->buf[0] = 0x01; + camera->pl->buf[1] = block; + camera->pl->buf[2] = 0xff - block; + camera->pl->buf[3] = DSC2_CMD_SEND_DATA; + + if (DSC_BLOCKSIZE < size) + size = DSC_BLOCKSIZE; + + memcpy(&camera->pl->buf[4], buffer, size); + + camera->pl->buf[DSC_BUFSIZE - 2] = dsc2_checksum(camera->pl->buf, DSC_BUFSIZE); + + if (gp_port_write(camera->port, camera->pl->buf, DSC_BUFSIZE) != GP_OK) + return GP_ERROR; + + if (dsc2_retrcmd(camera) != DSC2_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + DEBUG_PRINT_MEDIUM(("Block: %i of size: %i written.", block, size)); + + return GP_OK; +} + +/* dsc2_writeimage - write an image to camera memory, size bytes at buffer */ + +#if 0 +static int dsc2_writeimage(Camera *camera, char *buffer, int size) { + + int blocks, blocksize, i; + + DEBUG_PRINT_MEDIUM(("Writing an image of size: %i.", size)); + + if ((dsc2_setimagesize(camera, size)) != GP_OK) + return GP_ERROR; + + blocks = (size - 1)/DSC_BLOCKSIZE + 1; + + for (i = 0; i < blocks; i++) { + blocksize = size - i*DSC_BLOCKSIZE; + if (DSC_BLOCKSIZE < blocksize) + blocksize = DSC_BLOCKSIZE; + if (dsc2_writeimageblock(camera, i, &buffer[i*DSC_BLOCKSIZE], blocksize) != GP_OK) { + DEBUG_PRINT_MEDIUM(("Error during image transfer.")); + return GP_ERROR; + } + } + + DEBUG_PRINT_MEDIUM(("Image written successfully.")); + + return GP_OK; +} +#endif + +/* dsc2_preview - show selected image on camera's LCD */ + +#if 0 +static int dsc2_preview(Camera *camera, int index) { + + if (index < 1) + RETURN_ERROR(EDSCBADNUM); + /* bad image number */ + + if (dsc2_sendcmd(camera, DSC2_CMD_PREVIEW, index, 0) != GP_OK) + return GP_ERROR; + + if (dsc2_retrcmd(camera) != DSC2_RSP_OK) + RETURN_ERROR(EDSCBADRSP); + /* bad response */ + + return GP_OK; +} +#endif + +/******************************************************************************/ + +/* Library interface functions */ + +int camera_id (CameraText *id) { + + strcpy(id->text, "panasonic-dc1580"); + + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) { + + CameraAbilities a; + char *models[] = { + "Panasonic:DC1580", + "Nikon:CoolPix 600", + NULL }; + int i = 0, result; + + while (models[i]) { + memset(&a, 0, sizeof(a)); + a.status = GP_DRIVER_STATUS_PRODUCTION; + strcpy(a.model, models[i]); + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.speed[5] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE; + + CHECK (gp_abilities_list_append(list, a)); + i++; + } + + return GP_OK; +} + +static int camera_exit (Camera *camera, GPContext *context) { + gp_context_status(context, _("Disconnecting camera.")); + dsc2_disconnect(camera); + if (camera->pl->buf) { + free (camera->pl->buf); + camera->pl->buf = NULL; + } + free (camera->pl); + camera->pl = NULL; + return (GP_OK); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) { + + Camera *camera = data; + int count, result; + + CHECK (count = dsc2_getindex(camera)); + + CHECK (gp_list_populate(list, DSC_FILENAMEFMT, count)); + + return GP_OK; +} + +static int get_info_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, + void *data, GPContext *context) { + + Camera *camera = data; + int index, result; + + /* index is the 0-based image number on the camera */ + CHECK (index = gp_filesystem_number(camera->fs, folder, filename, context)); + index++; + + info->file.fields = GP_FILE_INFO_TYPE | GP_FILE_INFO_SIZE; + strcpy(info->file.type, GP_MIME_JPEG); + info->file.size = dsc2_selectimage(camera, index, DSC_FULLIMAGE); + + info->preview.fields = GP_FILE_INFO_TYPE | GP_FILE_INFO_SIZE; + strcpy(info->preview.type, GP_MIME_JPEG); + info->preview.size = dsc2_selectimage(camera, index, DSC_THUMBNAIL); + + return GP_OK; +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *data, GPContext *context) { + + Camera *camera = data; + int index, i, size, blocks, result; + unsigned int id; + + gp_context_status(context, _("Downloading %s."), filename); + + /* index is the 0-based image number on the camera */ + CHECK (index = gp_filesystem_number(camera->fs, folder, filename, context)); + index++; + + switch (type) { + case GP_FILE_TYPE_PREVIEW: + size = dsc2_selectimage(camera, index, DSC_THUMBNAIL); + break; + case GP_FILE_TYPE_NORMAL: + size = dsc2_selectimage(camera, index, DSC_FULLIMAGE); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + if (size < 0) + return (size); + + CHECK (gp_file_set_mime_type(file, GP_MIME_JPEG)); + + blocks = (size - 1)/DSC_BLOCKSIZE + 1; + + id = gp_context_progress_start (context, blocks, _("Getting data...")); + for (i = 0; i < blocks; i++) { + CHECK (dsc2_readimageblock(camera, i, NULL)); + CHECK (gp_file_append(file, &camera->pl->buf[4], DSC_BLOCKSIZE)); + gp_context_progress_update (context, id, i + 1); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + } + gp_context_progress_stop (context, id); + + return GP_OK; +} + +static int put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) { + + Camera *camera = user_data; + int blocks, blocksize, i, result; + const char *data; + long unsigned int size; + unsigned int id; + + gp_context_status(context, _("Uploading image: %s."), name); + +/* We can not figure out file type, at least by now. (? curious, mime type -Marcus) + + if (strcmp(file->type, "image/jpg") != 0) { + dsc_print_message(camera, "JPEG image format allowed only."); + return GP_ERROR; + } +*/ + gp_file_get_data_and_size (file, &data, &size); + if (size > DSC_MAXIMAGESIZE) { + gp_context_message (context, _("File size is %ld bytes. " + "The size of the largest file possible to " + "upload is: %i bytes."), size, + DSC_MAXIMAGESIZE); + return GP_ERROR; + } + + if ((result = dsc2_setimagesize(camera, size)) != GP_OK) return result; + + blocks = (size - 1)/DSC_BLOCKSIZE + 1; + + id = gp_context_progress_start (context, blocks, _("Uploading...")); + for (i = 0; i < blocks; i++) { + blocksize = size - i*DSC_BLOCKSIZE; + if (DSC_BLOCKSIZE < blocksize) + blocksize = DSC_BLOCKSIZE; + result = dsc2_writeimageblock(camera, i, + (char*)&data[i*DSC_BLOCKSIZE], + blocksize); + if (result != GP_OK) + return result; + gp_context_progress_update (context, id, i + 1); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + } + gp_context_progress_stop (context, id); + + return GP_OK; +} + +static int delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, + GPContext *context) { + + Camera *camera = data; + int index, result; + + gp_context_status(context, _("Deleting image %s."), filename); + + /* index is the 0-based image number on the camera */ + CHECK (index = gp_filesystem_number (camera->fs, folder, filename, context)); + index++; + + return dsc2_delete(camera, index); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy(about->text, + _("Panasonic DC1580 gPhoto2 library\n" + "Mariusz Zynel \n\n" + "Based on dc1000 program written by\n" + "Fredrik Roubert and\n" + "Galen Brooks .")); + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .put_file_func = put_file_func, + .del_file_func = delete_file_func, +}; + +int camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int result, selected_speed; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->about = camera_about; + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + camera->pl->buf = malloc (sizeof (char) * DSC_BUFSIZE); + if (!camera->pl->buf) { + free (camera->pl); + camera->pl = NULL; + return (GP_ERROR_NO_MEMORY); + } + + CHECK (gp_port_set_timeout (camera->port, 5000)); + + /* Configure the port (and remember the speed) */ + CHECK (gp_port_get_settings (camera->port, &settings)); + selected_speed = settings.serial.speed; + settings.serial.speed = 9600; /* hand shake speed */ + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + CHECK (gp_port_set_settings (camera->port, settings)); + + CHECK (gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera)); + /* Connect with the selected speed */ + return dsc2_connect(camera, selected_speed); +} + +/* End of dc1580.c */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1580.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1580.h new file mode 100644 index 00000000..7681a744 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/dc1580.h @@ -0,0 +1,53 @@ +/* + $Id$ + + Copyright 2000 Mariusz Zynel (gPhoto port) + Copyright 2000 Fredrik Roubert (idea) + Copyright 1999 Galen Brooks (DC1580 code) + + This file is part of the gPhoto project and may only be used, modified, + and distributed under the terms of the gPhoto project license, COPYING. + By continuing to use, modify, or distribute this file you indicate that + you have read the license, understand and accept it fully. + + THIS SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, + EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDER BE + LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE. + + Note: + + This is a Panasonic DC1580 camera gPhoto library header file. +*/ + +/* DC1580 command codes */ + +#define DSC2_CMD_SET_BAUD 0x04 +#define DSC2_CMD_SEND_DATA 0x05 +#define DSC2_CMD_GET_INDEX 0x07 +#define DSC2_CMD_CONNECT 0x10 +#define DSC2_CMD_DELETE 0x11 +#define DSC2_CMD_PREVIEW 0x14 +#define DSC2_CMD_SET_SIZE 0x15 +#define DSC2_CMD_THUMB 0x16 +#define DSC2_CMD_SELECT 0x1a +#define DSC2_CMD_GET_DATA 0x1e +#define DSC2_CMD_RESET 0x1f + +/* DC1580 response codes */ + +#define DSC2_RSP_OK 0x01 +#define DSC2_RSP_MODEL 0x03 +#define DSC2_RSP_DATA 0x05 +#define DSC2_RSP_INDEX 0x08 +#define DSC2_RSP_IMGSIZE 0x1d + +/* DC1580 response buffer offsets, 0 - first byte in buffer */ + +#define DSC2_BUF_BASE 0 +#define DSC2_BUF_SEQ 1 +#define DSC2_BUF_SEQC 2 +#define DSC2_BUF_CMD 3 +#define DSC2_BUF_DATA 4 +#define DSC2_BUF_CSUM 14 + +/* End of dc1580.h */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/ChangeLog new file mode 100644 index 00000000..0b97b559 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/ChangeLog @@ -0,0 +1,14 @@ +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-01-08 Lutz Müller + + * l859.c: Christopher Worley reported that + his "Panasonic PV-L691" works with this driver, too. + Fix headers. + +2001-12-29 Lutz Müller + + * l859.c: gp_camera_progress -> gp_file_progress. Kill warning. + gp_debug_printf -> gp_log. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/Makefile-files new file mode 100644 index 00000000..d1753d57 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_DIST += panasonic/l859/README.panasonic-l859 panasonic/l859/ChangeLog panasonic/l859/TODO +camlibdoc_DATA += panasonic/l859/README.panasonic-l859 + +EXTRA_LTLIBRARIES += panasonic_l859.la + +panasonic_l859_la_SOURCES = panasonic/l859/l859.c panasonic/l859/l859.h +panasonic_l859_la_LDFLAGS = $(camlib_ldflags) +panasonic_l859_la_DEPENDENCIES = $(camlib_dependencies) +panasonic_l859_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/README.panasonic-l859 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/README.panasonic-l859 new file mode 100644 index 00000000..55be8dbc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/README.panasonic-l859 @@ -0,0 +1,23 @@ +Panasonic PV-L859-K/PV-L779-K Palmcorder + +Panasonic introduced image capturing technology +called PHOTOSHOT for the first time to this series +of Palmcorders. Images are stored in JPEG format on +an internal flashcard and can be transferred to a +computer through the built-in serial port. Images +are saved in one of two resolutions; NORMAL is +320x240 and FINE is 640x480. The CCD device which +captures the images from the lens is only 300K and +thus produces only low quality pictures. + +Panasonic provided no specifications for the creation +of this driver (although a request was made). The +protocol was reverse engineered using ComLite32 under +windows while using the bundled Digital PhotoShot +application. I hope to include with this driver, in +the future, a document that outlines the protocol. + +If you have any questions regarding this driver, you +can contact me at aselkirk@mailandnew.com + +Andrew... diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/TODO b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/TODO new file mode 100644 index 00000000..ec145291 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/TODO @@ -0,0 +1,16 @@ +TODO + +- when problems occur resulting in the camera not + being disconnected properly, if the speed was + greater than 9600, the camera must be reset + For example: specifying an invalid image # +- quite of bit of testing has been done, but more + is needed +- support for the image capture features of the + camera +- cleanup. The driver was based on the Panasonic + DC1000 driver. Much of the structure of the + file is still inherited and needs to be reworked +- JPEG image created by camera appears to be an + older format (missing JFIF header tag). Possibly + convert to new format? Probably not. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/l859.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/l859.c new file mode 100644 index 00000000..67a1cdd9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/l859.c @@ -0,0 +1,663 @@ +/* + Copyright 2001 Andrew Selkirk + + This file is part of the gPhoto project and may only be used, modified, + and distributed under the terms of the gPhoto project license, COPYING. + By continuing to use, modify, or distribute this file you indicate that + you have read the license, understand and accept it fully. + + THIS SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, + EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDER BE + LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE. + + Note: + + This is the Panasonic PV-L859 camera gPhoto library source code. + +*/ +#include "config.h" +#include "l859.h" + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "gphoto2-endian.h" +#include +#include + +#ifndef __FILE__ +# define __FILE__ "l859.c" +#endif + +#define GP_MODULE "l859" + +/******************************************************************************/ +/* Internal utility functions */ + +/* + * l859_sendcmd - Send command to camera + */ +static int l859_sendcmd(Camera *camera, uint8_t cmd) { + + GP_DEBUG ("Sending command: 0x%02x.", cmd); + + memset(camera->pl->buf, 0, 1); + camera->pl->buf[0] = cmd; + + return gp_port_write(camera->port, camera->pl->buf, 1); + +} + +/* + * l859_retrcmd - Packet received from camera + */ +static int l859_retrcmd(Camera *camera) { + + int s; + + if ((s = gp_port_read(camera->port, camera->pl->buf, 116)) == GP_ERROR) + return GP_ERROR; + + if (s != 116) + return GP_ERROR; + + camera->pl->size = 116; + + GP_DEBUG ("Retrieved Data"); + + return GP_OK; +} + +/* + * l859_connect - try hand shake with camera and establish connection + */ +static int l859_connect(Camera *camera) { + + GPPortSettings settings; + uint8_t bps; + int ret; + + GP_DEBUG ("Connecting to a camera."); + + ret = l859_sendcmd(camera, L859_CMD_CONNECT); + if (ret < GP_OK) + return ret; + if (l859_retrcmd(camera) == GP_ERROR) { + if (l859_sendcmd(camera, L859_CMD_RESET) != GP_OK) + return GP_ERROR; + if (l859_sendcmd(camera, L859_CMD_CONNECT)!= GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + } + + switch (camera->pl->speed) { + case 19200: + bps = L859_CMD_SPEED_19200; + break; + case 57600: + bps = L859_CMD_SPEED_57600; + break; + case 115200: + bps = L859_CMD_SPEED_115200; + break; + default: + bps = L859_CMD_SPEED_DEFAULT; + break; + } + + if (bps != L859_CMD_SPEED_DEFAULT) { + + if (l859_sendcmd(camera, bps) != GP_OK) + return GP_ERROR; + + gp_port_get_settings(camera->port, &settings); + settings.serial.speed = camera->pl->speed; + gp_port_set_settings(camera->port, settings); + + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + } + + if (l859_sendcmd(camera, L859_CMD_INIT) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + + GP_DEBUG ("Camera connected successfully."); + + return GP_OK; +} + +/* + * l859_disconnect - reset camera, free buffers and close files + */ +static int l859_disconnect(Camera *camera) { + + GP_DEBUG ("Disconnecting the camera."); + + if (l859_sendcmd(camera, L859_CMD_RESET) != GP_OK) + return GP_ERROR; + if (gp_port_read(camera->port, camera->pl->buf, 1) == GP_ERROR) + return GP_ERROR; + + GP_DEBUG ("Camera disconnected."); + + return GP_OK; +} + +/* + *l859_delete - delete image #index from camera memory + */ +static int l859_delete(Camera *camera, uint8_t index) { + + int value0; + int value1; + int value2; + int value3; + + GP_DEBUG ("Deleting image: %i.", index); + + value0 = index; + value1 = value0 % 10; + value2 = (value0 - value1) % 100; + value3 = (value0 - value1 - value2) / 100; + value2 = value2 / 10; + + if (l859_sendcmd(camera, L859_CMD_DELETE_1) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, 0xa0 + value1) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, 0xb0 + value2) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, 0xc0 + value3) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, L859_CMD_DELETE_2) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, L859_CMD_DELETE_3) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, L859_CMD_DELETE_ACK) != GP_OK) + return GP_ERROR; + + GP_DEBUG ("Image %i deleted.", index); + + return GP_OK; +} + +/* + * l859_selectimage - select image to download, return its size + */ +static int l859_selectimage(Camera *camera, uint8_t index) { + + int size = 0; + uint8_t byte1 = 0; + uint8_t byte2 = 0; + uint8_t byte3 = 0; + int value0; + int value1; + int value2; + int value3; + + GP_DEBUG ("Selecting image: %i.", index); + + value0 = index; + value1 = value0 % 10; + value2 = (value0 - value1) % 100; + value3 = (value0 - value1 - value2) / 100; + value2 = value2 / 10; + + if (l859_sendcmd(camera, 0xa0 + value1) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, 0xb0 + value2) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, 0xc0 + value3) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, L859_CMD_IMAGE) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + + byte1 = camera->pl->buf[5]; + byte2 = camera->pl->buf[6]; + byte3 = camera->pl->buf[7]; + + size = (byte1 * 256 * 256) + (byte2 * 256) + byte3; + + GP_DEBUG ("Selected image: %i, size: %i.", index, size); + + return size; +} + +/* + * l859_selectimage_preview - select preview image to download, + * return its size + */ +static int l859_selectimage_preview(Camera *camera, uint8_t index) { + + int size = 0; + uint8_t byte1 = 0; + uint8_t byte2 = 0; + uint8_t byte3 = 0; + int value0; + int value1; + int value2; + int value3; + + GP_DEBUG ("Selected preview image: %i.", index); + + value0 = index; + value1 = value0 % 10; + value2 = (value0 - value1) % 100; + value3 = (value0 - value1 - value2) / 100; + value2 = value2 / 10; + + if (l859_sendcmd(camera, 0xa0 + value1) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, 0xb0 + value2) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, 0xc0 + value3) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, L859_CMD_PREVIEW) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + + byte1 = camera->pl->buf[5]; + byte2 = camera->pl->buf[6]; + byte3 = camera->pl->buf[7]; + + size = (byte1 * 256 * 256) + (byte2 * 256) + byte3; + + GP_DEBUG ("Selected preview image: %i, size: %i.", index, size); + + return size; +} + +#if 0 +/* + * l859_readimageblock - read #block block (116 bytes) of an + * image into buf + */ +static int l859_readimageblock(Camera *camera, int block, char *buffer) { + + int index; + + GP_DEBUG ("Reading image block: %i.", block); + + if (l859_sendcmd(camera, L859_CMD_ACK) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + + for (index = 3; index < 116; index++) { + buffer[index - 3] = camera->pl->buf[index]; + } + + GP_DEBUG ("Block: %i read in.", block); + + return 112; + +} +#endif + +/******************************************************************************/ +/* Library interface functions */ + +int camera_id (CameraText *id) { + + /* GP_DEBUG ("Camera ID"); */ + + strcpy(id->text, "panasonic-l859"); + + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) { + + CameraAbilities a; + + memset (&a, 0, sizeof(a)); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 57600; + a.speed[3] = 115200; + a.speed[4] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + + strncpy (a.model, "Panasonic:PV-L691", sizeof (a.model)); + gp_abilities_list_append (list, a); + strncpy (a.model, "Panasonic:PV-L859", sizeof (a.model)); + gp_abilities_list_append (list, a); + + return GP_OK; +} + +static int camera_exit (Camera *camera, GPContext *context) { + + GP_DEBUG ("Camera Exit"); + + if (camera->pl) { + l859_disconnect(camera); + free(camera->pl); + camera->pl = NULL; + } + + return (GP_OK); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) { + + Camera *camera = data; + int num = 0; + int width; + int year; + int size; + uint8_t month; + uint8_t day; + uint8_t hour; + uint8_t minute; + uint8_t byte1; + uint8_t byte2; + uint8_t byte3; + char *filename; + + GP_DEBUG ("Camera List Files"); + + if (l859_sendcmd(camera, 0xa0) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, 0xb0) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, 0xc0) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, L859_CMD_PREVIEW) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + + while (camera->pl->buf[13] == num) { + + byte1 = camera->pl->buf[8]; + byte2 = camera->pl->buf[9]; + width = (byte1 * 256) + byte2; + byte1 = camera->pl->buf[22]; + year = byte1 + 1900; + month = camera->pl->buf[23]; + day = camera->pl->buf[24]; + hour = camera->pl->buf[25]; + minute = camera->pl->buf[26]; + + byte1 = camera->pl->buf[5]; + byte2 = camera->pl->buf[6]; + byte3 = camera->pl->buf[7]; + size = (byte1 * 256 * 256) + (byte2 * 256) + byte3; + + /* Check for no images */ + if (size == 0) + return GP_OK; + + if (!(filename = (char*)malloc(31))) { + GP_DEBUG ("Unable to allocate memory for filename."); + return GP_ERROR_NO_MEMORY; + } + + sprintf(filename, "%.4i%s%i-%i-%i(%i-%i).jpg", num + 1, + width == 640 ? "F" : "N", year, month, day, hour, minute); + GP_DEBUG ("Filename: %s.", filename); + + gp_list_append (list, filename, NULL); +/* GP_DEBUG ("Num %i Filename %s", num, filename); */ + free (filename); + num = num + 1; + if (l859_sendcmd(camera, L859_CMD_PREVIEW_NEXT) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + } + GP_DEBUG ("Camera List Files Done"); + return GP_OK; +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *data, GPContext *context) { + + Camera *camera = data; + int index; + int size; + int i; + int s; + char buffer[112]; + int bufIndex; + unsigned int id; + + GP_DEBUG ("Get File %s", filename); + + /* index is the 0-based image number on the camera */ + index = gp_filesystem_number (camera->fs, folder, filename, context); + if (index < 0) + return (index); + + switch (type) { + case GP_FILE_TYPE_NORMAL: + size = l859_selectimage(camera, index); + break; + case GP_FILE_TYPE_PREVIEW: + size = l859_selectimage_preview(camera, index); + default: + return (GP_ERROR_NOT_SUPPORTED); + } + if (size < 0) + return (size); + + id = gp_context_progress_start (context, size, + _("Downloading '%s'..."), filename); + for (i = 0, s = 0; s < size; i++) { + + if (l859_sendcmd(camera, L859_CMD_ACK) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + + for (bufIndex = 3; bufIndex < 115 && s < size; bufIndex++) { + buffer[bufIndex - 3] = camera->pl->buf[bufIndex]; + s += 1; + } + GP_DEBUG ("Packet Size: %i Data Size: %i", bufIndex - 3, s); + + /* Append data to the file */ + gp_file_append (file, buffer, bufIndex - 3); + + /* Check for cancellation */ + gp_context_progress_update (context, id, s); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + l859_disconnect (camera); + l859_connect (camera); + return (GP_ERROR_CANCEL); + } + } + + gp_file_set_mime_type (file, GP_MIME_JPEG); + GP_DEBUG ("Camera Get File Done"); + return (GP_OK); +} + +static int delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, + GPContext *context) { + + Camera *camera = data; + int index; + int result; + + GP_DEBUG ("Delete File %s", filename); + + /* index is the 0-based image number on the camera */ + index = gp_filesystem_number (camera->fs, folder, filename, context); + if (index < 0) + return (index); + + result = l859_delete (camera, index); + if (result < 0) + return (result); + + GP_DEBUG ("Delete File Done"); + + return GP_OK; +} + +static int delete_all_func (CameraFilesystem *fs, const char *folder, + void *data, GPContext *context) { + + Camera *camera = data; + + GP_DEBUG ("Delete all images"); + + if (l859_sendcmd(camera, L859_CMD_DELETE_ALL) != GP_OK) + return GP_ERROR; + if (l859_retrcmd(camera) == GP_ERROR) + return GP_ERROR; + if (l859_sendcmd(camera, L859_CMD_DELETE_ACK) != GP_OK) + return GP_ERROR; + + GP_DEBUG ("Delete all images done."); + + return GP_OK; +} + +static int camera_summary (Camera *camera, CameraText *summary, + GPContext *context) { + + strcpy (summary->text, + _("Panasonic PV-L859-K/PV-L779-K Palmcorder\n" + "\n" + "Panasonic introduced image capturing technology " + "called PHOTOSHOT for the first time, in this series " + "of Palmcorders. Images are stored in JPEG format on " + "an internal flashcard and can be transferred to a " + "computer through the built-in serial port. Images " + "are saved in one of two resolutions; NORMAL is " + "320x240 and FINE is 640x480. The CCD device which " + "captures the images from the lens is only 300K and " + "thus produces only low quality pictures.")); + return (GP_OK); +} + +static int camera_manual (Camera *camera, CameraText *manual, + GPContext *context) { + + strcpy (manual->text, + _("Known problems:\n" + "\n" + "If communications problems occur, reset the camera " + "and restart the application. The driver is not robust " + "enough yet to recover from these situations, especially " + "if a problem occurs and the camera is not properly shutdown " + "at speeds faster than 9600.")); + return (GP_OK); +} + +static int camera_about (Camera *camera, CameraText *about, + GPContext *context) { + + strcpy(about->text, + _("Panasonic PV-L859-K/PV-L779-K Palmcorder Driver\n" + "Andrew Selkirk ")); + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .delete_all_func = delete_all_func, + .del_file_func = delete_file_func +}; + +int camera_init (Camera *camera, GPContext *context) { + + int ret; + GPPortSettings settings; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + + /* Allocate memory for a read/write buffer */ + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + + gp_port_set_timeout (camera->port, 2000); + gp_port_get_settings(camera->port, &settings); + camera->pl->speed = settings.serial.speed; + settings.serial.speed = 9600; /* hand shake speed */ + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + gp_port_set_settings(camera->port, settings); + + /* Set up the filesystem */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + ret = l859_connect (camera); + if (ret < 0) { + free (camera->pl); + camera->pl = NULL; + } + + return (ret); +} + +/* End of l859.c */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/l859.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/l859.h new file mode 100644 index 00000000..64c36df4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/panasonic/l859/l859.h @@ -0,0 +1,53 @@ +/* + $Id$ + + Copyright 2001 Andrew Selkirk + + This file is part of the gPhoto project and may only be used, modified, + and distributed under the terms of the gPhoto project license, COPYING. + By continuing to use, modify, or distribute this file you indicate that + you have read the license, understand and accept it fully. + + THIS SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, + EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDER BE + LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE. + + Note: + + This is the Panasonic PV-L859 camera gPhoto library source code. + +*/ + +#ifndef __L859_H__ +#define __L859_H__ + +#include + +#define L859_BLOCKSIZE 0x74 +#define L859_BUFSIZE 0x74 + +struct _CameraPrivateLibrary { + char buf[L859_BUFSIZE]; + int size; + int speed; +}; + +/* L859 Command Codes */ +#define L859_CMD_CONNECT 0x2a +#define L859_CMD_INIT 0x28 +#define L859_CMD_SPEED_DEFAULT 0x00 +#define L859_CMD_SPEED_19200 0x22 +#define L859_CMD_SPEED_57600 0x24 +#define L859_CMD_SPEED_115200 0x26 +#define L859_CMD_RESET 0x20 +#define L859_CMD_IMAGE 0xd0 +#define L859_CMD_PREVIEW 0xe8 +#define L859_CMD_PREVIEW_NEXT 0xe5 +#define L859_CMD_ACK 0x06 +#define L859_CMD_DELETE_1 0xd1 +#define L859_CMD_DELETE_2 0xd2 +#define L859_CMD_DELETE_3 0xd3 +#define L859_CMD_DELETE_ALL 0xef +#define L859_CMD_DELETE_ACK 0x15 + +#endif /* __L859_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/ChangeLog new file mode 100644 index 00000000..b5c7d98f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/ChangeLog @@ -0,0 +1,17 @@ +2007-05-02 Marcus Meissner + + * library.c: Change interface to be 0 instead of 1. + Newer kernels seem to be more picky here. Cross checked + with lsusb output from a user. + +2004-08-04 Marcus Meissner + + * library.c: added Intel Pocket PC Camera as reported. + +2003-06-26 Lutz Mueller + + * pccam300.c: Fix includes so that the thing compiles. + +2003-01-20 Till Adam + + * initial import diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/Makefile-files new file mode 100644 index 00000000..5b1c0e64 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_DIST += pccam300/README.pccam300 pccam300/pccam300-lsusb.txt pccam300/ChangeLog +camlibdoc_DATA += pccam300/README.pccam300 + +EXTRA_LTLIBRARIES += pccam300.la + +pccam300_la_SOURCES = pccam300/pccam300.c pccam300/pccam300.h pccam300/library.c +pccam300_la_LDFLAGS = $(camlib_ldflags) +pccam300_la_DEPENDENCIES = $(camlib_dependencies) +pccam300_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/README.pccam300 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/README.pccam300 new file mode 100644 index 00000000..9af61fc9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/README.pccam300 @@ -0,0 +1,27 @@ +What is it? +----------- +This is a camlib supporting the Intel PC Cam 300 camera and possibly others +based on the same chip, namely the SunPlus spca500a. It was implemented using +information obtained by sniffing the usb bus on Windows, disassembling the +windows driver dll's and some guesswork. + +It is losely based on the pccam600 camlib and contains some code from that. + +Features +-------- +It currently supports downloading of images and deleting all files on the +camera. + +TODO +____ +- Figure out the avi and wav formats and support them. +- Thumbnails? Can the cam do them? + +Authors +------- +Till Adam +Miah Gregory + +Thanks +------ +Pedro de Oliviera - Testing and feedback diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/library.c new file mode 100644 index 00000000..25167f06 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/library.c @@ -0,0 +1,304 @@ +/****************************************************************/ +/* library.c - Gphoto2 library for the Creative PC-CAM 300 */ +/* */ +/* */ +/* Authors: Till Adam */ +/* Miah Gregory */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#include + +#include "pccam300.h" + +#include +#include +#include +#include +#include + +#include +#include + +#define GP_MODULE "pccam300" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "pccam300" + +static const struct models +{ + char *name; + unsigned short idVendor; + unsigned short idProduct; +} +models[] = +{ + { "Creative PC-CAM 300", 0x041e, 0x400a}, + { "Intel Pocket PC Camera", 0x8086, 0x0630}, + { NULL, 0, 0} +}; + +static int delete_all_func (CameraFilesystem *fs, const char *folder, + void *data, GPContext *context); + + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Creative PC-CAM 300"); + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof (CameraAbilities)); + strcpy (a.model, models[i].name); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + a.usb_vendor = models[i].idVendor; + a.usb_product = models[i].idProduct; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + gp_abilities_list_append (list, a); + } + return GP_OK; +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + unsigned int i, id, size, type; + int filecount; + CameraFile *file; + CameraFileInfo info; + unsigned char *buffer = NULL; + int ret, n_img=0, n_avi=0, n_wav=0; + char fn[100]; + + CHECK (pccam300_get_filecount (camera->port, &filecount)); + + id = gp_context_progress_start (context, filecount, + _("Getting file list...")); + + for (i = 0; i < filecount; i++) { + /* Get information */ + gp_file_new (&file); + + ret = pccam300_get_file (camera->port, context, i, + &buffer, &size, &type); + if (ret < GP_OK) { + gp_file_free (file); + return ret; + } + + info.audio.fields = GP_FILE_INFO_NONE; + info.preview.fields = GP_FILE_INFO_NONE; + + info.file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + info.file.size = size; + + switch (type) { + case PCCAM300_MIME_JPEG: + strcpy (info.file.type, GP_MIME_JPEG); + sprintf (fn, "Image%03i.jpeg", n_img++); + break; + case PCCAM300_MIME_AVI: + strcpy (info.file.type, GP_MIME_AVI); + sprintf (fn, "Movie%03i.UNUSABLE", n_avi++); + break; + case PCCAM300_MIME_WAV: + strcpy (info.file.type, GP_MIME_WAV); + sprintf (fn, "Audio%03i.UNUSABLE", n_wav++); + break; + default: + break; + } + + if (file) + gp_file_set_data_and_size (file, (char *)buffer, size); + else + free (buffer); + + /* + * Append directly to the filesystem instead of to the list, + * because we have additional information. + * */ + gp_filesystem_append (camera->fs, folder, fn, context); + gp_filesystem_set_info_noop (camera->fs, folder, fn, info, context); + gp_filesystem_set_file_noop (camera->fs, folder, fn, GP_FILE_TYPE_NORMAL, + file, context); + gp_file_unref (file); + + gp_context_idle (context); + gp_context_progress_update (context, id, i + 1); + if (gp_context_cancel(context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + } + gp_context_progress_stop (context, id); + return GP_OK; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + unsigned char *data = NULL; + unsigned int size, mimetype; + int index; + + size = 0; + index = gp_filesystem_number (fs, folder, filename, context); + if (index < 0) + return index; + switch (type) { + case GP_FILE_TYPE_NORMAL: + CHECK (pccam300_get_file (camera->port, context, + index, &data, &size, + &mimetype)); + break; + default: + return GP_ERROR_NOT_SUPPORTED; + } + return gp_file_set_data_and_size (file, (char *)data, size); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + int totalmem; + int freemem; + int filecount; + char summary_text[256]; + + CHECK (pccam300_get_mem_info (camera->port, context, &totalmem, + &freemem)); + CHECK (pccam300_get_filecount (camera->port, &filecount)); + snprintf (summary_text, sizeof (summary_text), + _(" Total memory is %8d bytes.\n" + " Free memory is %8d bytes.\n" + " Filecount: %d"), + totalmem, freemem, filecount); + strcat (summary->text, summary_text); + return GP_OK; +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _("Creative PC-CAM 300\n Authors: Till Adam\n" + "\n" + "and: Miah Gregory\n ")); + return GP_OK; +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + + return GP_OK; +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + int index; + Camera *camera = data; + + index = gp_filesystem_number (fs, folder, filename, context); + gp_log (GP_LOG_DEBUG, "pccam", "deleting '%s' in '%s'.. index:%d", + filename, folder, index); + CHECK (pccam300_delete_file (camera->port, context, index)); + return GP_OK; +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + + CHECK (pccam300_delete_all (camera->port, context)); + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func, +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int ret = 0; + + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + gp_log (GP_LOG_DEBUG, "pccam 300", "Initializing the camera\n"); + switch (camera->port->type) { + case GP_PORT_USB: + ret = gp_port_get_settings (camera->port, &settings); + if (ret < 0) + return ret; + settings.usb.inep = 0x82; + settings.usb.outep = 0x03; + settings.usb.config = 1; + settings.usb.interface = 0; + settings.usb.altsetting = 0; + ret = gp_port_set_settings (camera->port, settings); + if (ret < 0) + return ret; + break; + case GP_PORT_SERIAL: + return GP_ERROR_IO_SUPPORTED_SERIAL; + default: + return GP_ERROR_NOT_SUPPORTED; + } + CHECK (pccam300_init (camera->port, context)); + return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/pccam300-lsusb.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/pccam300-lsusb.txt new file mode 100644 index 00000000..5dcb9c83 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/pccam300-lsusb.txt @@ -0,0 +1,225 @@ +Bus 002 Device 005: ID 041e:400a Creative Technology, Ltd PC-Cam 300 +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 1.10 + bDeviceClass 255 Vendor Specific Class + bDeviceSubClass 255 Vendor Specific Subclass + bDeviceProtocol 255 Vendor Specific Protocol + bMaxPacketSize0 8 + idVendor 0x041e Creative Technology, Ltd + idProduct 0x400a PC-Cam 300 + bcdDevice 1.00 + iManufacturer 1 Creative Tech. Ltd + iProduct 2 Creative PC-CAM 300 + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 167 + bNumInterfaces 2 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0x80 + MaxPower 500mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0000 1x 0 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 1 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0080 1x 128 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 2 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0180 1x 384 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 3 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0200 1x 512 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 4 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0280 1x 640 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 5 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0300 1x 768 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 6 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x0380 1x 896 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 7 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type None + Usage Type Data + wMaxPacketSize 0x03ff 1x 1023 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 1 + bAlternateSetting 0 + bNumEndpoints 3 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x82 EP 2 IN + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0040 1x 64 bytes + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x03 EP 3 OUT + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0040 1x 64 bytes + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x84 EP 4 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0002 1x 2 bytes + bInterval 8 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/pccam300.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/pccam300.c new file mode 100644 index 00000000..014b2e2d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/pccam300.c @@ -0,0 +1,218 @@ +/****************************************************************/ +/* pccam300.c - Gphoto2 library for the Creative PC-CAM 300 */ +/* */ +/* Authors: Till Adam */ +/* Miah Gregory */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#include +#include +#include +#include + +#include <_stdint.h> + +#include "pccam300.h" + +#include +#include +#include + +#define GP_MODULE "pccam300" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +/* + * waits until the status value is 0 or 8. + * if status == 0xb0 or 0x40 we will wait some more + */ +static int +pccam300_wait_for_status (GPPort *port) +{ + int retries = 20; + unsigned char status = 1; + + while (status != 0x00 && retries--) { + gp_port_set_timeout (port, 3000); + CHECK(gp_port_usb_msg_read (port, 0x06, 0x00, 0x00, (char *)&status, 1)); + if (status == 0 || status == 8) + return GP_OK; + if (status == 0xb0) { + gp_port_set_timeout (port, 200000); + CHECK(gp_port_usb_msg_read (port, 0x06, 0x00, 0x00, + (char *)&status, 1)); + } + if (status == 0x40) { + gp_port_set_timeout (port, 400000); + CHECK(gp_port_usb_msg_read (port, 0x06, 0x00, 0x00, + (char *)&status, 1)); + } + } + return GP_ERROR; +} + +/* + * FIXME + */ +int +pccam300_delete_file (GPPort *port, GPContext *context, int index) +{ + return GP_ERROR_NOT_SUPPORTED; +} + +int +pccam300_delete_all (GPPort *port, GPContext *context) +{ + + CHECK (gp_port_usb_msg_write (port, 0x4, 0x0, 0x0, NULL, 0)); + CHECK (pccam300_wait_for_status (port)); + CHECK (gp_port_usb_msg_write (port, 0x9, 0x0, 0x1, NULL, 0)); + CHECK (pccam300_wait_for_status (port)); + return GP_OK; +} + +int +pccam300_get_filecount (GPPort *port, int *filecount) +{ + uint8_t response; + + gp_port_set_timeout (port, 400000); + CHECK (gp_port_usb_msg_read (port, 0x08, 0x00, 0x00, + (char *)&response, 0x01)); + *filecount = response; + return GP_OK; +} + +int +pccam300_get_filesize (GPPort *port, unsigned int index, + unsigned int *filesize) +{ + uint8_t response[3]; + uint16_t i = index; + + gp_port_set_timeout (port, 400000); + CHECK (gp_port_usb_msg_read (port, 0x08, i, 0x0001, + (char *)response, 0x03)); + *filesize = (response[0] & 0xff) + + (response[1] & 0xff) * 0x100 + (response[2] & 0xff) * 0x10000; + + return GP_OK; +} + +int +pccam300_get_mem_info (GPPort *port, GPContext *context, int *totalmem, + int *freemem) +{ + unsigned char response[4]; + + gp_port_set_timeout (port, 400000); + CHECK (gp_port_usb_msg_read (port, 0x60, 0x00, 0x02, + (char *)response, 0x04)); + *totalmem = response[2] * 65536 + response[1] * 256 + response[0]; + CHECK (pccam300_wait_for_status (port)); + CHECK (gp_port_usb_msg_read (port, 0x60, 0x00, 0x03, + (char *)response, 0x04)); + *freemem = response[2] * 65536 + response[1] * 256 + response[0]; + CHECK (pccam300_wait_for_status (port)); + return GP_OK; +} + + +int +pccam300_get_file (GPPort *port, GPContext *context, int index, + unsigned char **data, unsigned int *size, + unsigned int *type) +{ + unsigned int data_size, alloc_size; + int r; + uint8_t *buf = NULL; + + /* This is somewhat strange, but works, and the win driver does the + * same. Apparently requesting the file size twice triggers the + * download of the file. */ + CHECK (pccam300_get_filesize (port, index, &data_size)); + CHECK (pccam300_get_filesize (port, index, &data_size)); + + /* The jpeg header we will download after the data itself is 623 + * bytes long. The first 0x200 bytes of the data appear to be + * garbage, they are overwritten by the header. */ + *size = data_size + 623 - 0x200; + + alloc_size = *size; + if (alloc_size < 623) alloc_size = 623; + if (!(buf = malloc (alloc_size))) + return GP_ERROR_NO_MEMORY; + + /* Read the data into the buffer overlapping the header area by + * 0x200 bytes. */ + r = gp_port_read (port, (char *)buf + 623 - 0x200, data_size); + if (r < GP_OK) { + free (buf); + return r; + } + + /* FIXME: if we find a RIFF marker in the data stream, assume that + * this is an avi, for now + * NWG: Sat 18th January 2003. + */ + if (buf[0x243] == 'R' && buf[0x244] == 'I' && + buf[0x245] == 'F' && buf[0x246] == 'F') + { + /* maybe an avi, but could be a wav too */ + *type = PCCAM300_MIME_AVI; + memmove(buf, buf + 623 - 0x200, data_size); + *size = data_size; + } else { + /* offset 0x8 in the downloaded data contains the identifier + * we need to request the correct header. + */ + r = gp_port_usb_msg_read(port, 0x0b, buf[623 - 0x200 + 8], + 0x3, (char *)buf, 623); + if (r < GP_OK) { + free (buf); + return r; + } + *type = PCCAM300_MIME_JPEG; + } + *data = buf; + return GP_OK; +} + + +int +pccam300_init (GPPort *port, GPContext *context) +{ + CHECK (gp_port_usb_msg_write (port, 0xe0, 0x00, 0x1, NULL, 0x00)); + CHECK (pccam300_wait_for_status (port)); + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/pccam300.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/pccam300.h new file mode 100644 index 00000000..b0e88f2c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam300/pccam300.h @@ -0,0 +1,56 @@ +/****************************************************************/ +/* pccam300.h - Gphoto2 library for the Creative PC-CAM 300 */ +/* */ +/* */ +/* Authors: Till Adam */ +/* Miah Gregory */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + + +#ifndef __PCCAM300_H__ +#define __PCCAM300_H__ + +#include +#include + +#define CHECK(result) {int res; res = result; if (res < 0) return (res);} + +int pccam300_init (GPPort *port, GPContext *context); +int pccam300_close (GPPort *port, GPContext *context); +int pccam300_get_file_list (GPPort *port, GPContext *context); +int pccam300_delete_file (GPPort *port, GPContext *context, int index); +int pccam300_delete_all (GPPort *port, GPContext *context); +int pccam300_get_file (GPPort *port, GPContext *context, int index, + unsigned char **data, unsigned int *size, + unsigned int *type); +int pccam300_get_mem_info (GPPort *port, GPContext *context, int *totalmem, + int *freemem); +int pccam300_get_filecount (GPPort *port, int *filecount); +int pccam300_get_filesize (GPPort *port, unsigned int index, + unsigned int *filesize); + +enum { + PCCAM300_MIME_JPEG, + PCCAM300_MIME_WAV, + PCCAM300_MIME_AVI +}; + + +#endif /* __PCCAM300_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/ChangeLog new file mode 100644 index 00000000..a1ac6769 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/ChangeLog @@ -0,0 +1,24 @@ + + + + This software is based upon usbsniffing, and therefore is + marked EXPERIMENTAL. + + Any comments email me at pbk@odense.kollegienet.dk + +2004-09-05 Marcus Meissner + + Ambigel http://ambigel.blogia.com/ has a pc cam 350, added + Removed explicit size handling of JPEGs for now (not really needed). + +2004-01-27 Marcus Meissner + + Andres Guerrero reports the PC CAM 750 working with this driver, + added id. + +2002-08-16 + Fixed a newline compile error with gcc 2.96. + +2002-08-09 + Først release of the library. + As this is the first release there might be errors, please report them. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/Makefile-files new file mode 100644 index 00000000..38905bb2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_DIST += pccam600/README.pccam600 pccam600/ChangeLog +camlibdoc_DATA += pccam600/README.pccam600 + +EXTRA_LTLIBRARIES += pccam600.la + +pccam600_la_SOURCES = pccam600/pccam600.c pccam600/pccam600.h pccam600/library.c +pccam600_la_LDFLAGS = $(camlib_ldflags) +pccam600_la_DEPENDENCIES = $(camlib_dependencies) +pccam600_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/README.pccam600 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/README.pccam600 new file mode 100644 index 00000000..7000001f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/README.pccam600 @@ -0,0 +1,6 @@ +This software is based upon usbsniffing, and therefore is +marked EXPERIMENTAL. +The format of the WAV file is IMA ADPCM (code=0x11) also called DVI ADPCM, +and can be converted with sox -i inputfile outputfile. +The format of the RAW files is unknown so if anyone finds/knows a way +to decode it please contact me. \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/library.c new file mode 100644 index 00000000..286dc6d7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/library.c @@ -0,0 +1,295 @@ +/****************************************************************/ +/* library.c - Gphoto2 library for the Creative PC-CAM600 */ +/* */ +/* */ +/* Author: Peter Kajberg */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* Please notice that camera commands was sniffed by use of a */ +/* usbsniffer under windows. This is an experimental driver and */ +/* a work in progess(I hope :)) */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#include "config.h" + +#include "pccam600.h" + +#include +#include +#include +#include +#include + +#include +#include + +#define GP_MODULE "pccam600" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + + +#define QUALITY_LO 0x56 +#define QUALITY_ME 0x58 +#define QUALITY_HI 0x45 + +static const struct models{ + char *name; + unsigned short idVendor; + unsigned short idProduct; + char serial; +} models[] = { + {"Creative:PC-CAM600",0x041e,0x400b,0}, + {"Creative:PC-CAM750",0x041e,0x4013,0}, + {"Creative PC-CAM350",0x041e,0x4012,0}, + {NULL,0,0,0} +}; + +int camera_id(CameraText *id) +{ + strcpy(id->text, "Creative PC-CAM600/750/350"); + return (GP_OK); +} + +int camera_abilities(CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + for(i=0; models[i].name; i++) { + memset(&a , 0, sizeof(CameraAbilities)); + strcpy(a.model, models[i].name); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product = models[i].idProduct; + a.operations = GP_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE; + gp_abilities_list_append(list, a); + } + return GP_OK; +} + +static int camera_exit(Camera *camera, GPContext *context){ + return pccam600_close(camera->port, context); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context){ + + Camera *camera = data; + CameraFileInfo info; + int n,i,nr_of_blocks; + int offset = 64; + char *temp; + char buffer[512]; + FileEntry *file_entry; + + file_entry = malloc(sizeof(FileEntry)); + if ( (nr_of_blocks = pccam600_get_file_list(camera->port, context)) < 0 ){ + gp_log(GP_LOG_DEBUG,"pccam600","pccam600->get_file_list return <0"); + free (file_entry); + return GP_ERROR; + } + for (n = 0; n != nr_of_blocks; n++) + { + CHECK(pccam600_read_data(camera->port, (unsigned char *)buffer)); + for (i = offset; i <= 512-32; i=i+32) + { + memcpy(file_entry,&(buffer)[i],32); + file_entry->name[8] = 0; + /*Fileentry valid? */ + if( !((file_entry->state & 0x02) != 2) && + !((file_entry->state & 0x08) == 8) ) + { + info.file.fields = 0; + temp = (char *)&(file_entry->name)[5]; + if (strncmp(temp,"JPG",3) == 0) + { + memcpy(&(file_entry->name)[5],".jpg",4); + strcpy(info.file.type,GP_MIME_JPEG); + info.file.fields = GP_FILE_INFO_TYPE; + } + else if (strncmp(temp,"AVI",3) == 0) + { + memcpy(&(file_entry->name)[5],".avi",4); + info.file.fields = GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | GP_FILE_INFO_TYPE; + info.file.height = 352; + info.file.width = 288; + strcpy(info.file.type, GP_MIME_AVI); + } + else if (strncmp(temp,"WAV",3) == 0) + { + memcpy(&(file_entry->name)[5],".wav",4); + strcpy(info.file.type, GP_MIME_WAV); + info.file.fields = GP_FILE_INFO_TYPE; + info.file.height = 0; + } + else if (strncmp(temp,"RAW",3) == 0) + { + memcpy(&(file_entry->name)[5],".raw",4); + info.file.width = 1280; + info.file.height = 960; + info.file.fields = GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | GP_FILE_INFO_TYPE; + strcpy(info.file.type, GP_MIME_RAW); + } + gp_filesystem_append(fs,folder,(char *)file_entry->name,context); + info.preview.fields = 0; + info.file.size = (file_entry->size[1]*256+ + file_entry->size[0]) * 256; + info.file.permissions = GP_FILE_PERM_READ | GP_FILE_PERM_DELETE; + info.file.fields |= GP_FILE_INFO_SIZE | GP_FILE_INFO_PERMISSIONS + |GP_FILE_INFO_TYPE; + CHECK(gp_filesystem_set_info_noop(fs, folder, (char *)file_entry->name, info, context)); + } + } + offset = 0; + } + return GP_OK; +} + +static int camera_get_file (Camera *camera, GPContext *context, int index, + unsigned char **data, int *size) +{ + unsigned char buffer[512]; + int nr_of_blocks = 0; + int n,id,canceled=0; + int picturebuffersize = 0; + int offset = 0; + nr_of_blocks = pccam600_get_file(camera->port,context,index); + if (nr_of_blocks < 0) + return GP_ERROR_FILE_NOT_FOUND; + picturebuffersize = nr_of_blocks * 512; + id = gp_context_progress_start(context,nr_of_blocks,_("Downloading file...")); + *data= malloc(picturebuffersize+1); + memset(*data,0,picturebuffersize+1); + for (n = 0; n != nr_of_blocks; n++){ + pccam600_read_data(camera->port, buffer); + memmove(&(*data)[offset],buffer,512); + offset = offset + 512; + gp_context_progress_update(context,id,n); + if (gp_context_cancel(context) == GP_CONTEXT_FEEDBACK_CANCEL) + { + /* Keep reading data or else data will be invalid next time*/ + canceled = 1; + } + } + *size = offset; + gp_context_progress_stop(context,id); + if (canceled) return GP_ERROR_CANCEL; + return GP_OK; +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + unsigned char *data = NULL; + int size,index; + size = 0; + index = gp_filesystem_number(fs, folder, filename, context); + if (index < 0) + return index; + switch(type) + { + case GP_FILE_TYPE_NORMAL: + CHECK(camera_get_file(camera, context, index, &data, &size)); + break; + default: + return GP_ERROR_NOT_SUPPORTED; + } + return gp_file_set_data_and_size(file, (char *)data, size); +} + +static int camera_summary(Camera *camera, CameraText *summary, GPContext *context) +{ + int totalmem; + int freemem; + char summary_text[256]; + CHECK(pccam600_get_mem_info(camera->port,context,&totalmem,&freemem)); + snprintf(summary_text,sizeof(summary_text), + (" Total memory is %8d bytes.\n Free memory is %8d bytes."), + totalmem,freemem ); + strcat(summary->text,summary_text); + return GP_OK; +} + +static int camera_about(Camera *camera, CameraText *about, GPContext *context) +{ + strcpy(about->text, + _("Creative PC-CAM600\nAuthor: Peter Kajberg \n")); + return GP_OK; +} + +static int delete_file_func(CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context){ + int index; + + Camera *camera = data; + index = gp_filesystem_number(fs, folder, filename, context); + gp_log(GP_LOG_DEBUG,"pccam","deleting '%s' in '%s'.. index:%d",filename, folder,index); + CHECK(pccam600_delete_file(camera->port, context, index)); + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .get_file_func = get_file_func, + .file_list_func = file_list_func, + .del_file_func = delete_file_func, +}; + +int camera_init(Camera *camera, GPContext *context){ + GPPortSettings settings; + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + gp_log (GP_LOG_DEBUG, "pccam", "Initializing the camera\n"); + switch (camera->port->type) + { + case GP_PORT_USB: + CHECK(gp_port_get_settings(camera->port,&settings)); + settings.usb.inep = 0x82; + settings.usb.outep = 0x03; + settings.usb.config = 1; + settings.usb.interface = 1; + settings.usb.altsetting = 0; + CHECK(gp_port_set_settings(camera->port,settings)); + break; + case GP_PORT_SERIAL: + return GP_ERROR_IO_SUPPORTED_SERIAL; + default: + return GP_ERROR_NOT_SUPPORTED; + } + CHECK(pccam600_init(camera->port, context)); + return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/pccam600.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/pccam600.c new file mode 100644 index 00000000..48d955b2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pccam600/pccam600.c @@ -0,0 +1,237 @@ +/****************************************************************/ +/* pccam600.c - Gphoto2 library for the Creative PC-CAM600 */ +/* */ +/* */ +/* Author: Peter Kajberg */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* Please notice that camera commands was sniffed by use of a */ +/* usbsniffer under windows. This is an experimental driver and */ +/* a work in progess(I hope :)) */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#include "config.h" +#include + + +#include "pccam600.h" + +#include +#include +#include + +#define GP_MODULE "pccam600" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +/* + *waits until the status value is 0 or 8. + *if status == 0xb0 or 0x40 we will wait some more + */ +static int pccam600_wait_for_status(GPPort *port){ + unsigned char status = 1; + while(status != 0x00){ + gp_port_set_timeout(port,3000); + CHECK(gp_port_usb_msg_read(port,0x06,0x00,0x00,(char*)&status,1)); + if (status == 0 || status == 8) + return GP_OK; + if (status == 0xb0){ + gp_port_set_timeout(port,200000); + CHECK(gp_port_usb_msg_read(port,0x06,0x00,0x00,(char*)&status,1)); + } + if (status == 0x40){ + gp_port_set_timeout(port,400000); + CHECK(gp_port_usb_msg_read(port,0x06,0x00,0x00,(char*)&status,1)); + } + } + return GP_ERROR; +} + +/* + *Deletes a file. The first file has index = 2. + */ +int pccam600_delete_file(GPPort *port, GPContext *context, int index){ + unsigned char response[4]; + index = index + 2; + gp_port_set_timeout(port,200000); + CHECK(gp_port_usb_msg_write(port,0x09,index,0x1001,NULL,0x00)); + CHECK(pccam600_wait_for_status(port)); + gp_port_set_timeout(port, 400000); + CHECK(gp_port_usb_msg_read(port,0x60,0x00,0x03,(char*)response,0x04)); + CHECK(pccam600_wait_for_status(port)); + CHECK(gp_port_usb_msg_read(port,0x60,0x00,0x04,(char*)response,0x04)); + CHECK(pccam600_wait_for_status(port)); + return GP_OK; +} + +int pccam600_get_mem_info(GPPort *port, GPContext *context, int *totalmem, + int *freemem) +{ + unsigned char response[4]; + gp_port_set_timeout(port, 400000); + CHECK(gp_port_usb_msg_read(port,0x60,0x00,0x03,(char*)response,0x04)); + *totalmem = response[2]*65536+response[1]*256+response[0]; + CHECK(pccam600_wait_for_status(port)); + CHECK(gp_port_usb_msg_read(port,0x60,0x00,0x04,(char*)response,0x04)); + *freemem = response[2]*65536+response[1]*256+response[0]; + CHECK(pccam600_wait_for_status(port)); + return GP_OK; +} + +/* + * + */ +int pccam600_get_file_list(GPPort *port, GPContext *context){ + unsigned char response[4]; + int nr_of_blocks; + gp_port_set_timeout(port,500); + CHECK(gp_port_usb_msg_write(port,0x08,0x00,0x1021,NULL,0x00)); + CHECK(pccam600_wait_for_status(port)); + gp_port_set_timeout(port, 200000); + CHECK(gp_port_usb_msg_write(port,0x08,0x00,0x1021,NULL,0x00)); + CHECK(pccam600_wait_for_status(port)); + CHECK(gp_port_usb_msg_read(port,0x08,0x00,0x1000,(char*)response,0x04)); + nr_of_blocks = response[2]*256+response[1]; + if (nr_of_blocks == 0){ + gp_log(GP_LOG_DEBUG,"pccam600 library: pccam600_get_file_list", + "nr_of_blocks is 0"); + gp_context_error(context,_("pccam600_init: Expected > %d blocks got %d"), + 0,nr_of_blocks); + return GP_ERROR; + } + return nr_of_blocks / 2; +} + +int pccam600_get_file(GPPort *port, GPContext *context, int index){ + unsigned char response[4]; + int nr_of_blocks; + index = index + 2; + if (index < 2) { + gp_context_error(context, + _("pccam600_get_file:got index %d but expected index > %d"), + index,2); + return GP_ERROR; + } + gp_port_set_timeout(port,200000); + CHECK(gp_port_usb_msg_read(port,0x08,index,0x1001,(char*)response,0x04)); + gp_port_set_timeout(port,3000); + CHECK(gp_port_usb_msg_write(port,0x04,0x00,0x00,NULL,0x00)); + CHECK(pccam600_wait_for_status(port)); + gp_port_set_timeout(port,200000); + CHECK(gp_port_usb_msg_read(port,0x08,index,0x1002,(char*)response,0x04)); + CHECK(gp_port_usb_msg_read(port,0x08,index,0x1001,(char*)response,0x04)); + nr_of_blocks = response[2]*256+response[1]; + if (nr_of_blocks == 0){ + gp_log(GP_LOG_DEBUG, + "pccam600 library: pccam600_get_file","nr_of_msg is 0"); + gp_context_error(context,_("pccam600_init: Expected > %d blocks got %d"), + 0,nr_of_blocks); + return GP_ERROR; + } + return nr_of_blocks / 2; +} + +/* + *Reads bulk data from the camera in 512bytes chunks. + */ +int pccam600_read_data(GPPort *port, unsigned char *buffer){ + gp_port_set_timeout(port,500); + CHECK(gp_port_read(port,(char*)buffer,512)); + return GP_OK; +} + +/* + * + */ +int pccam600_close(GPPort *port, GPContext *context){ + int ret; + gp_port_set_timeout(port,500); + ret = gp_port_usb_msg_write(port,0x08,0x00,0xf0,NULL,0x00); + if (ret < 0) { + gp_context_error(context, + _("pccam600_close: return value was %d instead of %d"), + ret,0); + return GP_ERROR; + } + CHECK(pccam600_wait_for_status(port)); + return GP_OK; +} + +/* + *Sets up the camera and then read 32 512bytes blocks. + *Why it is read those 32 blocks I dont know. Just + *doing what the windows driver does :). + */ +int pccam600_init(GPPort *port, GPContext *context){ + unsigned char response[4]; + unsigned char buffer[512]; + int nr_of_blocks; + int ret,i; + gp_port_set_timeout(port,100); + CHECK(gp_port_usb_msg_write(port,0x0e,0x00,0x01,NULL,0x0)); + CHECK(gp_port_usb_msg_write(port,0x08,0x00,0xff,NULL,0x0)); + CHECK(pccam600_wait_for_status(port)); + gp_port_set_timeout(port,100000); + CHECK(gp_port_usb_msg_read(port,0x08,0x00,0xff,(char*)response,0x1)); + gp_port_set_timeout(port,500); + CHECK(gp_port_usb_msg_write(port,0x08,0x00,0x1020,NULL,0x0)); + CHECK(pccam600_wait_for_status(port)); + gp_port_set_timeout(port,200000); + CHECK(gp_port_usb_msg_read(port,0x08,0x00,0x1000,(char*)response,0x4)); + nr_of_blocks = response[2]*256+response[1]; + + if (nr_of_blocks == 0) { + gp_context_error(context,_("pccam600_init: Expected %d blocks got %d"),64,nr_of_blocks); + return GP_ERROR; + } + + nr_of_blocks = 512 / nr_of_blocks; + gp_log(GP_LOG_DEBUG,"pccam600 library: init","nr_of_blocks %d",nr_of_blocks); + if (nr_of_blocks == 0) { + gp_context_error(context,_("pccam600_init: Expected %d blocks got %d"),64,nr_of_blocks); + return GP_ERROR; + } + gp_port_set_timeout(port,500); + for (i = 0; i + */ + +#ifndef __PCCAM600_H__ +#define __PCCAM600_H__ + +#include +#include + +typedef struct { + unsigned char state; /*delete or ok*/ + unsigned char unk1; + unsigned char quality; + unsigned char name[9]; + unsigned char unk2[4]; + + unsigned char unk3[10]; + unsigned char unk4[2]; + unsigned char unk5; + unsigned char size[2]; + unsigned char unk6; +} FileEntry; + +#define CHECK(result) {int res; res = result; if (res < 0) return (res);} + +int pccam600_init(GPPort *port, GPContext *context); +int pccam600_close(GPPort *port, GPContext *context); +int pccam600_get_file_list(GPPort *port, GPContext *context); +int pccam600_delete_file(GPPort *port, GPContext *context, int index); +int pccam600_read_data(GPPort *port, unsigned char *buffer); +int pccam600_get_file(GPPort *port, GPContext *context, int index); +int pccam600_get_mem_info(GPPort *port, GPContext *context, int *totalmem, + int *freemem); +#endif /* __PCCAM600_H__ */ + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/ChangeLog new file mode 100644 index 00000000..0f4ee7db --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/ChangeLog @@ -0,0 +1,9 @@ +2011-10-01 Marcus Meissner + + * pslr.c,pslr.h: Imported from pkremote project, adjusted to + have more generic port handling + + * library.c: Interfaced with pslr code: + - capture image (to ram) + - configuration of base values + - capture tethered diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/Makefile-files new file mode 100644 index 00000000..7317e702 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/Makefile-files @@ -0,0 +1,12 @@ +# -*- Makefile -*- + +EXTRA_DIST += pentax/README.pentax pentax/ChangeLog pentax/exiftool_pentax_lens.txt + +camlibdoc_DATA += pentax/README.pentax +EXTRA_LTLIBRARIES += pentax.la + +pentax_la_SOURCES = pentax/pslr.c pentax/library.c pentax/pslr_enum.c pentax/pslr_lens.c pentax/pslr_model.c pentax/pslr_enum.h pentax/pslr.h pentax/pslr_lens.h pentax/pslr_model.h pentax/pslr_scsi.h pentax/exiftool_pentax_lens.txt pentax/js0n.c pentax/js0n.h +pentax_la_CFLAGS = $(AM_CFLAGS) $(NO_UNUSED_CFLAGS) $(CFLAGS) -DLIBGPHOTO2 -DPKTDATADIR='"/"' +pentax_la_LDFLAGS = $(camlib_ldflags) +pentax_la_DEPENDENCIES = $(camlib_dependencies) +pentax_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/README.pentax b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/README.pentax new file mode 100644 index 00000000..19d8e4fa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/README.pentax @@ -0,0 +1,6 @@ +This driver is imported from the pkremote project. + +http://sf.net/projects/pkremote/ + +It uses special SCSI commands tunneled over USB Mass +Storage to control the camera. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/exiftool_pentax_lens.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/exiftool_pentax_lens.txt new file mode 100644 index 00000000..9d8d6bef --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/exiftool_pentax_lens.txt @@ -0,0 +1,218 @@ +{0, 0, "M-42 or No Lens"}, +{1, 0, "K or M Lens"}, +{2, 0, "A Series Lens"}, +{3, 0, "Sigma"}, +{3, 17, "smc PENTAX-FA SOFT 85mm F2.8"}, +{3, 18, "smc PENTAX-F 1.7X AF ADAPTER"}, +{3, 19, "smc PENTAX-F 24-50mm F4"}, +{3, 20, "smc PENTAX-F 35-80mm F4-5.6"}, +{3, 21, "smc PENTAX-F 80-200mm F4.7-5.6"}, +{3, 22, "smc PENTAX-F FISH-EYE 17-28mm F3.5-4.5"}, +{3, 23, "smc PENTAX-F 100-300mm F4.5-5.6 or Sigma Lens"}, +{3, 24, "smc PENTAX-F 35-135mm F3.5-4.5"}, +{3, 25, "smc PENTAX-F 35-105mm F4-5.6 or Sigma or Tokina Lens"}, +{3, 26, "smc PENTAX-F* 250-600mm F5.6 ED[IF]"}, +{3, 27, "smc PENTAX-F 28-80mm F3.5-4.5 or Tokina Lens"}, +{3, 28, "smc PENTAX-F 35-70mm F3.5-4.5 or Tokina Lens"}, +{3, 29, "PENTAX-F 28-80mm F3.5-4.5 or Sigma or Tokina Lens"}, +{3, 30, "PENTAX-F 70-200mm F4-5.6"}, +{3, 31, "smc PENTAX-F 70-210mm F4-5.6 or Tokina or Takumar Lens"}, +{3, 32, "smc PENTAX-F 50mm F1.4"}, +{3, 33, "smc PENTAX-F 50mm F1.7"}, +{3, 34, "smc PENTAX-F 135mm F2.8 [IF]"}, +{3, 35, "smc PENTAX-F 28mm F2.8"}, +{3, 36, "Sigma 20mm F1.8 EX DG Aspherical RF"}, +{3, 38, "smc PENTAX-F* 300mm F4.5 ED[IF]"}, +{3, 39, "smc PENTAX-F* 600mm F4 ED[IF]"}, +{3, 40, "smc PENTAX-F Macro 100mm F2.8"}, +{3, 41, "smc PENTAX-F Macro 50mm F2.8 or Sigma Lens"}, +{3, 42, "Sigma 300mm F2.8 EX DG APO IF"}, +{3, 44, "Sigma or Tamron Lens (3 44)"}, +{3, 46, "Sigma or Samsung Lens (3 46)"}, +{3, 50, "smc PENTAX-FA 28-70mm F4 AL"}, +{3, 51, "Sigma 28mm F1.8 EX DG Aspherical Macro"}, +{3, 52, "smc PENTAX-FA 28-200mm F3.8-5.6 AL[IF] or Tamron Lens"}, +{3, 53, "smc PENTAX-FA 28-80mm F3.5-5.6 AL"}, +{3, 247, "smc PENTAX-DA FISH-EYE 10-17mm F3.5-4.5 ED[IF]"}, +{3, 248, "smc PENTAX-DA 12-24mm F4 ED AL[IF]"}, +{3, 250, "smc PENTAX-DA 50-200mm F4-5.6 ED"}, +{3, 251, "smc PENTAX-DA 40mm F2.8 Limited"}, +{3, 252, "smc PENTAX-DA 18-55mm F3.5-5.6 AL"}, +{3, 253, "smc PENTAX-DA 14mm F2.8 ED[IF]"}, +{3, 254, "smc PENTAX-DA 16-45mm F4 ED AL"}, +{3, 255, "Sigma Lens (3 255)"}, +{4, 1, "smc PENTAX-FA SOFT 28mm F2.8"}, +{4, 2, "smc PENTAX-FA 80-320mm F4.5-5.6"}, +{4, 3, "smc PENTAX-FA 43mm F1.9 Limited"}, +{4, 6, "smc PENTAX-FA 35-80mm F4-5.6"}, +{4, 9, "Irix 11mm F4 Firefly"}, +{4, 10, "Irix 15mm F2.4"}, +{4, 12, "smc PENTAX-FA 50mm F1.4"}, +{4, 15, "smc PENTAX-FA 28-105mm F4-5.6 [IF]"}, +{4, 16, "Tamron AF 80-210mm F4-5.6 (178D)"}, +{4, 19, "Tamron SP AF 90mm F2.8 (172E)"}, +{4, 20, "smc PENTAX-FA 28-80mm F3.5-5.6"}, +{4, 21, "Cosina AF 100-300mm F5.6-6.7"}, +{4, 22, "Tokina 28-80mm F3.5-5.6"}, +{4, 23, "smc PENTAX-FA 20-35mm F4 AL"}, +{4, 24, "smc PENTAX-FA 77mm F1.8 Limited"}, +{4, 25, "Tamron SP AF 14mm F2.8"}, +{4, 26, "smc PENTAX-FA Macro 100mm F3.5 or Cosina Lens"}, +{4, 27, "Tamron AF 28-300mm F3.5-6.3 LD Aspherical[IF] Macro (185D/285D)"}, +{4, 28, "smc PENTAX-FA 35mm F2 AL"}, +{4, 29, "Tamron AF 28-200mm F3.8-5.6 LD Super II Macro (371D)"}, +{4, 34, "smc PENTAX-FA 24-90mm F3.5-4.5 AL[IF]"}, +{4, 35, "smc PENTAX-FA 100-300mm F4.7-5.8"}, +{4, 36, "Tamron AF 70-300mm F4-5.6 LD Macro 1:2"}, +{4, 37, "Tamron SP AF 24-135mm F3.5-5.6 AD AL (190D)"}, +{4, 38, "smc PENTAX-FA 28-105mm F3.2-4.5 AL[IF]"}, +{4, 39, "smc PENTAX-FA 31mm F1.8 AL Limited"}, +{4, 41, "Tamron AF 28-200mm Super Zoom F3.8-5.6 Aspherical XR [IF] Macro (A03)"}, +{4, 43, "smc PENTAX-FA 28-90mm F3.5-5.6"}, +{4, 44, "smc PENTAX-FA J 75-300mm F4.5-5.8 AL"}, +{4, 45, "Tamron Lens (4 45)"}, +{4, 46, "smc PENTAX-FA J 28-80mm F3.5-5.6 AL"}, +{4, 47, "smc PENTAX-FA J 18-35mm F4-5.6 AL"}, +{4, 49, "Tamron SP AF 28-75mm F2.8 XR Di LD Aspherical [IF] Macro"}, +{4, 51, "smc PENTAX-D FA 50mm F2.8 Macro"}, +{4, 52, "smc PENTAX-D FA 100mm F2.8 Macro"}, +{4, 55, "Samsung/Schneider D-XENOGON 35mm F2"}, +{4, 56, "Samsung/Schneider D-XENON 100mm F2.8 Macro"}, +{4, 75, "Tamron SP AF 70-200mm F2.8 Di LD [IF] Macro (A001)"}, +{4, 214, "smc PENTAX-DA 35mm F2.4 AL"}, +{4, 229, "smc PENTAX-DA 18-55mm F3.5-5.6 AL II"}, +{4, 230, "Tamron SP AF 17-50mm F2.8 XR Di II"}, +{4, 231, "smc PENTAX-DA 18-250mm F3.5-6.3 ED AL [IF]"}, +{4, 237, "Samsung/Schneider D-XENOGON 10-17mm F3.5-4.5"}, +{4, 239, "Samsung/Schneider D-XENON 12-24mm F4 ED AL [IF]"}, +{4, 242, "smc PENTAX-DA* 16-50mm F2.8 ED AL [IF] SDM (SDM unused)"}, +{4, 243, "smc PENTAX-DA 70mm F2.4 Limited"}, +{4, 244, "smc PENTAX-DA 21mm F3.2 AL Limited"}, +{4, 245, "Samsung/Schneider D-XENON 50-200mm F4-5.6"}, +{4, 246, "Samsung/Schneider D-XENON 18-55mm F3.5-5.6"}, +{4, 247, "smc PENTAX-DA FISH-EYE 10-17mm F3.5-4.5 ED[IF]"}, +{4, 248, "smc PENTAX-DA 12-24mm F4 ED AL [IF]"}, +{4, 249, "Tamron XR DiII 18-200mm F3.5-6.3 (A14)"}, +{4, 250, "smc PENTAX-DA 50-200mm F4-5.6 ED"}, +{4, 251, "smc PENTAX-DA 40mm F2.8 Limited"}, +{4, 252, "smc PENTAX-DA 18-55mm F3.5-5.6 AL"}, +{4, 253, "smc PENTAX-DA 14mm F2.8 ED[IF]"}, +{4, 254, "smc PENTAX-DA 16-45mm F4 ED AL"}, +{5, 1, "smc PENTAX-FA* 24mm F2 AL[IF]"}, +{5, 2, "smc PENTAX-FA 28mm F2.8 AL"}, +{5, 3, "smc PENTAX-FA 50mm F1.7"}, +{5, 4, "smc PENTAX-FA 50mm F1.4"}, +{5, 5, "smc PENTAX-FA* 600mm F4 ED[IF]"}, +{5, 6, "smc PENTAX-FA* 300mm F4.5 ED[IF]"}, +{5, 7, "smc PENTAX-FA 135mm F2.8 [IF]"}, +{5, 8, "smc PENTAX-FA Macro 50mm F2.8"}, +{5, 9, "smc PENTAX-FA Macro 100mm F2.8"}, +{5, 10, "smc PENTAX-FA* 85mm F1.4 [IF]"}, +{5, 11, "smc PENTAX-FA* 200mm F2.8 ED[IF]"}, +{5, 12, "smc PENTAX-FA 28-80mm F3.5-4.7"}, +{5, 13, "smc PENTAX-FA 70-200mm F4-5.6"}, +{5, 14, "smc PENTAX-FA* 250-600mm F5.6 ED[IF]"}, +{5, 15, "smc PENTAX-FA 28-105mm F4-5.6"}, +{5, 16, "smc PENTAX-FA 100-300mm F4.5-5.6"}, +{5, 98, "smc PENTAX-FA 100-300mm F4.5-5.6"}, +{6, 1, "smc PENTAX-FA* 85mm F1.4 [IF]"}, +{6, 2, "smc PENTAX-FA* 200mm F2.8 ED[IF]"}, +{6, 3, "smc PENTAX-FA* 300mm F2.8 ED[IF]"}, +{6, 4, "smc PENTAX-FA* 28-70mm F2.8 AL"}, +{6, 5, "smc PENTAX-FA* 80-200mm F2.8 ED[IF]"}, +{6, 6, "smc PENTAX-FA* 28-70mm F2.8 AL"}, +{6, 7, "smc PENTAX-FA* 80-200mm F2.8 ED[IF]"}, +{6, 8, "smc PENTAX-FA 28-70mm F4AL"}, +{6, 9, "smc PENTAX-FA 20mm F2.8"}, +{6, 10, "smc PENTAX-FA* 400mm F5.6 ED[IF]"}, +{6, 13, "smc PENTAX-FA* 400mm F5.6 ED[IF]"}, +{6, 14, "smc PENTAX-FA* Macro 200mm F4 ED[IF]"}, +{7, 0, "smc PENTAX-DA 21mm F3.2 AL Limited"}, +{7, 58, "smc PENTAX-D FA Macro 100mm F2.8 WR"}, +{7, 75, "Tamron SP AF 70-200mm F2.8 Di LD [IF] Macro (A001)"}, +{7, 201, "smc Pentax-DA L 50-200mm F4-5.6 ED WR"}, +{7, 202, "smc PENTAX-DA L 18-55mm F3.5-5.6 AL WR"}, +{7, 203, "HD PENTAX-DA 55-300mm F4-5.8 ED WR"}, +{7, 204, "HD PENTAX-DA 15mm F4 ED AL Limited"}, +{7, 205, "HD PENTAX-DA 35mm F2.8 Macro Limited"}, +{7, 206, "HD PENTAX-DA 70mm F2.4 Limited"}, +{7, 207, "HD PENTAX-DA 21mm F3.2 ED AL Limited"}, +{7, 208, "HD PENTAX-DA 40mm F2.8 Limited"}, +{7, 212, "smc PENTAX-DA 50mm F1.8"}, +{7, 213, "smc PENTAX-DA 40mm F2.8 XS"}, +{7, 214, "smc PENTAX-DA 35mm F2.4 AL"}, +{7, 216, "smc PENTAX-DA L 55-300mm F4-5.8 ED"}, +{7, 217, "smc PENTAX-DA 50-200mm F4-5.6 ED WR"}, +{7, 218, "smc PENTAX-DA 18-55mm F3.5-5.6 AL WR"}, +{7, 220, "Tamron SP AF 10-24mm F3.5-4.5 Di II LD Aspherical [IF]"}, +{7, 221, "smc PENTAX-DA L 50-200mm F4-5.6 ED"}, +{7, 222, "smc PENTAX-DA L 18-55mm F3.5-5.6"}, +{7, 223, "Samsung/Schneider D-XENON 18-55mm F3.5-5.6 II"}, +{7, 224, "smc PENTAX-DA 15mm F4 ED AL Limited"}, +{7, 225, "Samsung/Schneider D-XENON 18-250mm F3.5-6.3"}, +{7, 226, "smc PENTAX-DA* 55mm F1.4 SDM (SDM unused)"}, +{7, 227, "smc PENTAX-DA* 60-250mm F4 [IF] SDM (SDM unused)"}, +{7, 228, "Samsung 16-45mm F4 ED"}, +{7, 229, "smc PENTAX-DA 18-55mm F3.5-5.6 AL II"}, +{7, 230, "Tamron AF 17-50mm F2.8 XR Di-II LD (Model A16)"}, +{7, 231, "smc PENTAX-DA 18-250mm F3.5-6.3 ED AL [IF]"}, +{7, 233, "smc PENTAX-DA 35mm F2.8 Macro Limited"}, +{7, 234, "smc PENTAX-DA* 300mm F4 ED [IF] SDM (SDM unused)"}, +{7, 235, "smc PENTAX-DA* 200mm F2.8 ED [IF] SDM (SDM unused)"}, +{7, 236, "smc PENTAX-DA 55-300mm F4-5.8 ED"}, +{7, 238, "Tamron AF 18-250mm F3.5-6.3 Di II LD Aspherical [IF] Macro"}, +{7, 241, "smc PENTAX-DA* 50-135mm F2.8 ED [IF] SDM (SDM unused)"}, +{7, 242, "smc PENTAX-DA* 16-50mm F2.8 ED AL [IF] SDM (SDM unused)"}, +{7, 243, "smc PENTAX-DA 70mm F2.4 Limited"}, +{7, 244, "smc PENTAX-DA 21mm F3.2 AL Limited"}, +{8, 0, "Sigma 50-150mm F2.8 II APO EX DC HSM"}, +{8, 3, "Sigma 18-125mm F3.8-5.6 DC HSM"}, +{8, 4, "Sigma 50mm F1.4 EX DG HSM"}, +{8, 6, "Sigma 4.5mm F2.8 EX DC Fisheye"}, +{8, 7, "Sigma 24-70mm F2.8 IF EX DG HSM"}, +{8, 8, "Sigma 18-250mm F3.5-6.3 DC OS HSM"}, +{8, 11, "Sigma 10-20mm F3.5 EX DC HSM"}, +{8, 12, "Sigma 70-300mm F4-5.6 DG OS"}, +{8, 13, "Sigma 120-400mm F4.5-5.6 APO DG OS HSM"}, +{8, 14, "Sigma 17-70mm F2.8-4.0 DC Macro OS HSM"}, +{8, 15, "Sigma 150-500mm F5-6.3 APO DG OS HSM"}, +{8, 16, "Sigma 70-200mm F2.8 EX DG Macro HSM II"}, +{8, 17, "Sigma 50-500mm F4.5-6.3 DG OS HSM"}, +{8, 18, "Sigma 8-16mm F4.5-5.6 DC HSM"}, +{8, 20, "Sigma 18-50mm F2.8-4.5 DC HSM"}, +{8, 21, "Sigma 17-50mm F2.8 EX DC OS HSM"}, +{8, 22, "Sigma 85mm F1.4 EX DG HSM"}, +{8, 23, "Sigma 70-200mm F2.8 APO EX DG OS HSM"}, +{8, 25, "Sigma 17-50mm F2.8 EX DC HSM"}, +{8, 27, "Sigma 18-200mm F3.5-6.3 II DC HSM"}, +{8, 28, "Sigma 18-250mm F3.5-6.3 DC Macro HSM"}, +{8, 29, "Sigma 35mm F1.4 DG HSM"}, +{8, 30, "Sigma 17-70mm F2.8-4 DC Macro HSM | C"}, +{8, 31, "Sigma 18-35mm F1.8 DC HSM"}, +{8, 32, "Sigma 30mm F1.4 DC HSM | A"}, +{8, 33, "Sigma 18-200mm F3.5-6.3 DC Macro HSM"}, +{8, 34, "Sigma 18-300mm F3.5-6.3 DC Macro HSM"}, +{8, 59, "HD PENTAX-D FA 150-450mm F4.5-5.6 ED DC AW"}, +{8, 60, "HD PENTAX-D FA* 70-200mm F2.8 ED DC AW"}, +{8, 61, "HD PENTAX-D FA 28-105mm F3.5-5.6 ED DC WR"}, +{8, 62, "HD PENTAX-D FA 24-70mm F2.8 ED SDM WR"}, +{8, 63, "HD PENTAX-D FA 15-30mm F2.8 ED SDM WR"}, +{8, 64, "HD PENTAX-D FA* 50mm F1.4 SDM AW"}, +{8, 196, "HD PENTAX-DA* 11-18mm F2.8 ED DC AW"}, +{8, 197, "HD PENTAX-DA 55-300mm F4.5-6.3 ED PLM WR RE"}, +{8, 198, "smc PENTAX-DA L 18-50mm F4-5.6 DC WR RE"}, +{8, 199, "HD PENTAX-DA 18-50mm F4-5.6 DC WR RE"}, +{8, 200, "HD PENTAX-DA 16-85mm F3.5-5.6 ED DC WR"}, +{8, 209, "HD PENTAX-DA 20-40mm F2.8-4 ED Limited DC WR"}, +{8, 210, "smc PENTAX-DA 18-270mm F3.5-6.3 ED SDM"}, +{8, 211, "HD PENTAX-DA 560mm F5.6 ED AW"}, +{8, 215, "smc PENTAX-DA 18-135mm F3.5-5.6 ED AL [IF] DC WR"}, +{8, 226, "smc PENTAX-DA* 55mm F1.4 SDM"}, +{8, 227, "smc PENTAX-DA* 60-250mm F4 [IF] SDM"}, +{8, 232, "smc PENTAX-DA 17-70mm F4 AL [IF] SDM"}, +{8, 234, "smc PENTAX-DA* 300mm F4 ED [IF] SDM"}, +{8, 235, "smc PENTAX-DA* 200mm F2.8 ED [IF] SDM"}, +{8, 241, "smc PENTAX-DA* 50-135mm F2.8 ED [IF] SDM"}, +{8, 242, "smc PENTAX-DA* 16-50mm F2.8 ED AL [IF] SDM"}, +{8, 255, "Sigma Lens (8 255)"}, +{9, 0, "645 Manual Lens"}, diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/js0n.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/js0n.c new file mode 100644 index 00000000..062859b3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/js0n.c @@ -0,0 +1,162 @@ +// by jeremie miller - 2014 +// public domain or MIT license, contributions/improvements welcome via github at https://github.com/quartzjer/js0n + +#include // one strncmp() is used to do key comparison, and a strlen(key) if no len passed in + +// gcc started warning for the init syntax used here, is not helpful so don't generate the spam, supressing the warning is really inconsistently supported across versions +#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) +#pragma GCC diagnostic push +#endif +#pragma GCC diagnostic ignored "-Wunknown-pragmas" +#pragma GCC diagnostic ignored "-Wpragmas" +#pragma GCC diagnostic ignored "-Winitializer-overrides" +#pragma GCC diagnostic ignored "-Woverride-init" + +// only at depth 1, track start pointers to match key/value +#define PUSH(i) if(depth == 1) { if(!index) { val = cur+i; }else{ if(klen && index == 1) start = cur+i; else index--; } } + +// determine if key matches or value is complete +#define CAP(i) if(depth == 1) { if(val && !index) {*vlen = (size_t)((cur+i+1) - val); return val;}; if(klen && start) {index = (klen == (size_t)(cur-start) && strncmp(key,start,klen)==0) ? 0 : 2; start = 0;} } + +// this makes a single pass across the json bytes, using each byte as an index into a jump table to build an index and transition state +const char *js0n(const char *key, size_t klen, + const char *json, size_t jlen, size_t *vlen) +{ + const char *val = 0; + const char *cur, *end, *start; + size_t index = 1; + int depth = 0; + int utf8_remain = 0; + static void *gostruct[] = + { + [0 ... 255] = &&l_bad, + ['\t'] = &&l_loop, [' '] = &&l_loop, ['\r'] = &&l_loop, ['\n'] = &&l_loop, + ['"'] = &&l_qup, + [':'] = &&l_loop,[','] = &&l_loop, + ['['] = &&l_up, [']'] = &&l_down, // tracking [] and {} individually would allow fuller validation but is really messy + ['{'] = &&l_up, ['}'] = &&l_down, + ['-'] = &&l_bare, [48 ... 57] = &&l_bare, // 0-9 + [65 ... 90] = &&l_bare, // A-Z + [97 ... 122] = &&l_bare // a-z + }; + static void *gobare[] = + { + [0 ... 31] = &&l_bad, + [32 ... 126] = &&l_loop, // could be more pedantic/validation-checking + ['\t'] = &&l_unbare, [' '] = &&l_unbare, ['\r'] = &&l_unbare, ['\n'] = &&l_unbare, + [','] = &&l_unbare, [']'] = &&l_unbare, ['}'] = &&l_unbare, [':'] = &&l_unbare, + [127 ... 255] = &&l_bad + }; + static void *gostring[] = + { + [0 ... 31] = &&l_bad, [127] = &&l_bad, + [32 ... 126] = &&l_loop, + ['\\'] = &&l_esc, ['"'] = &&l_qdown, + [128 ... 191] = &&l_bad, + [192 ... 223] = &&l_utf8_2, + [224 ... 239] = &&l_utf8_3, + [240 ... 247] = &&l_utf8_4, + [248 ... 255] = &&l_bad + }; + static void *goutf8_continue[] = + { + [0 ... 127] = &&l_bad, + [128 ... 191] = &&l_utf_continue, + [192 ... 255] = &&l_bad + }; + static void *goesc[] = + { + [0 ... 255] = &&l_bad, + ['"'] = &&l_unesc, ['\\'] = &&l_unesc, ['/'] = &&l_unesc, ['b'] = &&l_unesc, + ['f'] = &&l_unesc, ['n'] = &&l_unesc, ['r'] = &&l_unesc, ['t'] = &&l_unesc, ['u'] = &&l_unesc + }; + void **go = gostruct; + + if(!json || jlen <= 0 || !vlen) return 0; + *vlen = 0; + + // no key is array mode, klen provides requested index + if(!key) + { + index = klen; + klen = 0; + }else{ + if(klen <= 0) klen = strlen(key); // convenience + } + + for(start=cur=json,end=cur+jlen; cur 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) +#pragma GCC diagnostic pop +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/js0n.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/js0n.h new file mode 100644 index 00000000..1656113e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/js0n.h @@ -0,0 +1,16 @@ +// key = string to match or null +// klen = key length (or 0), or if null key then len is the array offset value +// json = json object or array +// jlen = length of json +// vlen = where to store return value length +// returns pointer to value and sets len to value length, or 0 if not found +// any parse error will set vlen to the position of the error +#include +#ifdef __cplusplus +extern "C" { +#endif +const char *js0n(const char *key, size_t klen, + const char *json, size_t jlen, size_t *vlen); +#ifdef __cplusplus +} /* extern "C" */ +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/library.c new file mode 100644 index 00000000..8e3885da --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/library.c @@ -0,0 +1,1019 @@ + /* Pentax K series library + * + * Copyright (c) 2011,2017 Marcus Meissner + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#define GP_MODULE "pentax" + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include "pslr.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +bool debug = true; + +struct _CameraPrivateLibrary { + ipslr_handle_t pslr; + char *lastfn; + int capcnt; +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "pentax"); + return GP_OK; +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + int ret; + + memset (&a, 0, sizeof(a)); + strcpy (a.model, "Pentax:K20D"); + a.status = GP_DRIVER_STATUS_TESTING; + a.port = GP_PORT_USB_SCSI; + a.speed[0] = 0; + a.usb_vendor = 0x0a17; + a.usb_product = 0x0091; + a.operations = GP_OPERATION_CAPTURE_IMAGE | GP_OPERATION_CONFIG | GP_OPERATION_TRIGGER_CAPTURE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + strcpy (a.model, "Pentax:K10D"); + a.usb_product = 0x006e; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + strcpy (a.model, "Pentax:K100D"); + a.usb_product = 0x0070; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + strcpy (a.model, "Pentax:K100DS"); + a.usb_product = 0x00a1; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + strcpy (a.model, "Pentax:K200D"); + a.usb_product = 0x0093; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + /* weird usb vendor? */ + strcpy (a.model, "Pentax:K5D"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x0102; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + strcpy (a.model, "Pentax:K50D"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x0160; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + /* TommyLimKW at Twitter */ + strcpy (a.model, "Pentax:K01"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x0130; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + strcpy (a.model, "Pentax:K30"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x0132; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + strcpy (a.model, "Pentax:K5II"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x0148; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + /* TommyLimKW @ Twitter */ + strcpy (a.model, "Pentax:K5IIs"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x014a; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + strcpy (a.model, "Pentax:K3"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x0164; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + strcpy (a.model, "Pentax:K3II"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x017a; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + + /* Keld Henningsen */ + strcpy (a.model, "Pentax:K70"); + a.usb_vendor = 0x25fb; + a.usb_product = 0x017c; + if (GP_OK != (ret = gp_abilities_list_append (list, a))) + return ret; + return GP_OK; + +} + +int scsi_write(GPPort *port, uint8_t *cmd, uint32_t cmdLen, + uint8_t *buf, uint32_t bufLen) { + int ret; + char sense_buffer[32]; + + ret = gp_port_send_scsi_cmd (port, 1, (char*)cmd, cmdLen, + sense_buffer, sizeof(sense_buffer), (char*)buf, bufLen); + if (ret == GP_OK) return PSLR_OK; + return PSLR_SCSI_ERROR; +} + +int scsi_read(GPPort *port, uint8_t *cmd, uint32_t cmdLen, + uint8_t *buf, uint32_t bufLen) +{ + int ret; + char sense_buffer[32]; + + ret = gp_port_send_scsi_cmd (port, 0, (char*)cmd, cmdLen, + sense_buffer, sizeof(sense_buffer), (char*)buf, bufLen); + if (ret == GP_OK) return bufLen; + return -PSLR_SCSI_ERROR; +} + +void close_drive(GPPort **port) { + /* is going to be closed by other means */ + return; +} + + + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + char *statusinfo; + pslr_status status; + + pslr_get_status (&camera->pl->pslr, &status); + + statusinfo = collect_status_info( &camera->pl->pslr, status ); + + sprintf (summary->text, _( + "Pentax K DSLR capture driver.\n" + "Using code from pktriggercord by Andras Salamon.\n" + "Collected Status Information:\n%s" + ), statusinfo); + free (statusinfo); + return GP_OK; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + return GP_ERROR_NOT_SUPPORTED; +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + return GP_OK; +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + /* virtual file created by Penta capture */ + if (!strncmp (filename, "capt", 4)) + return GP_OK; + return GP_ERROR_NOT_SUPPORTED; +} + + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func +}; + +static int +save_buffer(pslr_handle_t camhandle, int bufno, pslr_buffer_type buftype, uint32_t jpegres, CameraFile *file) +{ + uint8_t buf[65536]; + uint32_t current; + + gp_log(GP_LOG_DEBUG, "pentax", "save_buffer: get buffer %d type %d res %d\n", bufno, buftype, jpegres); + if ( pslr_buffer_open(camhandle, bufno, buftype, jpegres) != PSLR_OK) + return GP_ERROR; + + current = 0; + while (1) { + uint32_t bytes; + bytes = pslr_buffer_read(camhandle, buf, sizeof(buf)); + if (bytes == 0) + break; + // PEF file got from K100D Super have broken header, WTF? + if (current == 0 && (buftype == PSLR_BUF_PEF)) { + const unsigned char correct_header[92] = + { + 0x4d, 0x4d, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x08, + 0x00, 0x13, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, + 0x00, 0x01, 0x00, 0x00, 0x0b, 0xe0, 0x01, 0x01, + 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, + 0x07, 0xe8, 0x01, 0x02, 0x00, 0x03, 0x00, 0x00, + 0x00, 0x01, 0x00, 0x0c, 0x00, 0x00, 0x01, 0x03, + 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, 0x80, 0x05, + 0x00, 0x00, 0x01, 0x06, 0x00, 0x03, 0x00, 0x00, + 0x00, 0x01, 0x80, 0x23, 0x00, 0x00, 0x01, 0x0f, + 0x00, 0x02, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, + 0x00, 0xf2, 0x01, 0x10, 0x00, 0x02, 0x00, 0x00, + 0x00, 0x14, 0x00, 0x00 + }; + + if (bytes < sizeof(correct_header)) + return GP_ERROR; + memcpy(buf, correct_header, sizeof(correct_header)); + } + gp_file_append (file, (char*)buf, bytes); + current += bytes; + } + pslr_buffer_close(camhandle); + return current; +} + +static int +_timeout_passed(struct timeval *start, int timeout) { + struct timeval curtime; + + gettimeofday (&curtime, NULL); + return ((curtime.tv_sec - start->tv_sec)*1000)+((curtime.tv_usec - start->tv_usec)/1000) >= timeout; +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + pslr_handle_t p = &camera->pl->pslr; + pslr_status status; + int ret, length; + CameraFile *file = NULL; + CameraFileInfo info; + int bufno, i; + const char *mimes[2]; + int buftypes[2], jpegres[2], nrofdownloads = 1; + char *fns[2], *lastfn = NULL; + struct timeval event_start; + + gp_log (GP_LOG_DEBUG, "pentax", "camera_capture"); + + pslr_get_status (p, &status); + pslr_shutter (p); + + strcpy (path->folder, "/"); + gp_log (GP_LOG_ERROR, "pentax", "image format image=0x%x, raw=0x%x", status.image_format, status.raw_format); + switch (status.image_format) { + case PSLR_IMAGE_FORMAT_JPEG: + sprintf (path->name, "capt%04d.jpg", camera->pl->capcnt++); + mimes[0] = GP_MIME_JPEG; + buftypes[0] = status.jpeg_quality + 1; + jpegres[0] = status.jpeg_resolution; + fns[0] = strdup(path->name); + break; + case PSLR_IMAGE_FORMAT_RAW_PLUS: /* FIXME: the same as _RAW ? */ + buftypes[1] = status.jpeg_quality + 1; + jpegres[1] = status.jpeg_resolution; + mimes[1] = GP_MIME_JPEG; + sprintf (path->name, "capt%04d.jpg", camera->pl->capcnt); + fns[1] = strdup(path->name); + lastfn = strdup (fns[1]); + nrofdownloads = 2; + /* FALLTHROUGH */ + case PSLR_IMAGE_FORMAT_RAW: + jpegres[0] = 0; + switch (status.raw_format) { + case PSLR_RAW_FORMAT_PEF: + sprintf (path->name, "capt%04d.pef", camera->pl->capcnt++); + fns[0] = strdup (path->name); + mimes[0] = GP_MIME_RAW; + buftypes[0] = PSLR_BUF_PEF; + break; + case PSLR_RAW_FORMAT_DNG: + sprintf (path->name, "capt%04d.dng", camera->pl->capcnt++); + fns[0] = strdup (path->name); + mimes[0] = "image/x-adobe-dng"; + buftypes[0] = PSLR_BUF_DNG; + break; + default: + gp_log (GP_LOG_ERROR, "pentax", "unknown format image=0x%x, raw=0x%x", status.image_format, status.raw_format); + return GP_ERROR; + } + break; + default: + gp_log (GP_LOG_ERROR, "pentax", "unknown format image=0x%x (raw=0x%x)", status.image_format, status.raw_format); + return GP_ERROR; + } + /* get status again, also waits until not busy */ + pslr_get_status (p, &status); + + gettimeofday (&event_start, 0); + while (1) { + if (status.bufmask != 0) + break; + if (_timeout_passed (&event_start, 30*1000)) + break; + usleep(100*1000); /* 100 ms */ + pslr_get_status (p, &status); + } + if (status.bufmask == 0) { + gp_log (GP_LOG_ERROR, "pentax", "no buffer available for download after 30 seconds."); + free (lastfn); + return GP_ERROR; + } + for (bufno=0;bufno<16;bufno++) + if (status.bufmask & (1 << bufno)) + break; + /* we will have found one if bufmask != 0 */ + + for (i = 0; i= GP_OK) + break; + usleep(100000); + } + + gp_log (GP_LOG_DEBUG, "pentax", "append image to fs"); + ret = gp_filesystem_append(camera->fs, path->folder, fns[i], context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + gp_log (GP_LOG_DEBUG, "pentax", "adding filedata to fs"); + ret = gp_filesystem_set_file_noop(camera->fs, path->folder, fns[i], GP_FILE_TYPE_NORMAL, file, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + /* We have now handed over the file, disclaim responsibility by unref. */ + gp_file_unref (file); + /* we also get the fs info for free, so just set it */ + info.file.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_SIZE | GP_FILE_INFO_MTIME; + strcpy (info.file.type, GP_MIME_JPEG); + info.file.size = length; + info.file.mtime = time(NULL); + + info.preview.fields = 0; + gp_log (GP_LOG_DEBUG, "pentax", "setting fileinfo in fs"); + ret = gp_filesystem_set_info_noop(camera->fs, path->folder, fns[i], info, context); + free (fns[i]); + } + camera->pl->lastfn = lastfn; + + pslr_delete_buffer(p, bufno ); + pslr_get_status (&camera->pl->pslr, &status); /* wait until busy is gone */ + + return ret; +} + +static int +camera_trigger_capture (Camera *camera, GPContext *context) +{ + pslr_handle_t p = &camera->pl->pslr; + pslr_status status; + + gp_log (GP_LOG_DEBUG, "pentax", "camera_trigger_capture"); + + pslr_get_status (p, &status); + pslr_shutter (p); + /* get status again, also waits until not busy */ + pslr_get_status (p, &status); + + return GP_OK; +} + + +static int +camera_wait_for_event (Camera *camera, int timeout, + CameraEventType *eventtype, void **eventdata, + GPContext *context) { + struct timeval event_start; + CameraFilePath *path; + pslr_handle_t p = &camera->pl->pslr; + int ret, length; + CameraFile *file = NULL; + CameraFileInfo info; + + gp_log (GP_LOG_DEBUG, "pentax", "camera_wait_for_event %d ms", timeout); + + *eventtype = GP_EVENT_TIMEOUT; + *eventdata = NULL; + + if (camera->pl->lastfn) { + path = malloc(sizeof(CameraFilePath)); + strcpy (path->folder, "/"); + strcpy (path->name, camera->pl->lastfn); + free (camera->pl->lastfn); + camera->pl->lastfn = NULL; + *eventtype = GP_EVENT_FILE_ADDED; + *eventdata = path; + return GP_OK; + } + + gettimeofday (&event_start, 0); + while (1) { + pslr_status status; + int i, bufno; + const char *mimes[2]; + int buftypes[2], jpegres[2], nrofdownloads = 1; + char *fns[2]; + + if (PSLR_OK != pslr_get_status (&camera->pl->pslr, &status)) + break; + + if (status.bufmask == 0) + goto next; + gp_log (GP_LOG_ERROR, "pentax", "wait_for_event: new image found! mask 0x%x", status.bufmask); + /* New image on camera! */ + for (bufno=0;bufno<16;bufno++) + if (status.bufmask & (1<folder, "/"); + gp_log (GP_LOG_ERROR, "pentax", "wait_for_event: imageformat %d / rawformat %d", status.image_format, status.raw_format); + switch (status.image_format) { + case PSLR_IMAGE_FORMAT_JPEG: + sprintf (path->name, "capt%04d.jpg", camera->pl->capcnt++); + mimes[0] = GP_MIME_JPEG; + buftypes[0] = status.jpeg_quality + 1; + jpegres[0] = status.jpeg_resolution; + fns[0] = strdup (path->name); + break; + case PSLR_IMAGE_FORMAT_RAW_PLUS: /* FIXME: the same as _RAW ? */ + mimes[1] = GP_MIME_JPEG; + buftypes[1] = status.jpeg_quality + 1; + jpegres[1] = status.jpeg_resolution; + nrofdownloads = 2; + sprintf (path->name, "capt%04d.jpg", camera->pl->capcnt); + fns[1] = strdup (path->name); + /* we pass back the secondary file via the private struct, and return the first */ + camera->pl->lastfn = strdup (fns[1]); + /* FALLTHROUGH */ + case PSLR_IMAGE_FORMAT_RAW: + jpegres[0] = 0; + switch (status.raw_format) { + case PSLR_RAW_FORMAT_PEF: + sprintf (path->name, "capt%04d.pef", camera->pl->capcnt++); + fns[0] = strdup (path->name); + mimes[0] = GP_MIME_RAW; + buftypes[0] = PSLR_BUF_PEF; + break; + case PSLR_RAW_FORMAT_DNG: + sprintf (path->name, "capt%04d.dng", camera->pl->capcnt++); + fns[0] = strdup (path->name); + mimes[0] = "image/x-adobe-dng"; + buftypes[0] = PSLR_BUF_DNG; + break; + default: + gp_log (GP_LOG_ERROR, "pentax", "unknown format image=0x%x, raw=0x%x", status.image_format, status.raw_format); + return GP_ERROR; + } + break; + default: + gp_log (GP_LOG_ERROR, "pentax", "unknown format image=0x%x (raw=0x%x)", status.image_format, status.raw_format); + return GP_ERROR; + } + + for (i = 0; i < nrofdownloads; i++) { + ret = gp_file_new(&file); + if (ret!=GP_OK) return ret; + gp_file_set_mtime (file, time(NULL)); + gp_file_set_mime_type (file, mimes[i]); + + while (1) { + length = save_buffer( p, bufno, buftypes[i], jpegres[i], file); + if (length == GP_ERROR_NOT_SUPPORTED) return length; + if (length >= GP_OK) + break; + usleep(100000); + } + + + gp_log (GP_LOG_DEBUG, "pentax", "append image to fs"); + ret = gp_filesystem_append(camera->fs, path->folder, fns[i], context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + gp_log (GP_LOG_DEBUG, "pentax", "adding filedata to fs"); + ret = gp_filesystem_set_file_noop(camera->fs, path->folder, fns[i], GP_FILE_TYPE_NORMAL, file, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + /* We have now handed over the file, disclaim responsibility by unref. */ + gp_file_unref (file); + /* we also get the fs info for free, so just set it */ + info.file.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_SIZE | GP_FILE_INFO_MTIME; + strcpy (info.file.type, GP_MIME_JPEG); + info.file.size = length; + info.file.mtime = time(NULL); + + info.preview.fields = 0; + gp_log (GP_LOG_DEBUG, "pentax", "setting fileinfo in fs"); + ret = gp_filesystem_set_info_noop(camera->fs, path->folder, fns[i], info, context); + free (fns[i]); + } + pslr_delete_buffer (p, bufno); + pslr_get_status (&camera->pl->pslr, &status); /* wait until busy is gone */ + + *eventtype = GP_EVENT_FILE_ADDED; + *eventdata = path; + return GP_OK; + +next: + if (_timeout_passed (&event_start, timeout)) + break; + usleep(100*1000); /* 100 ms */ + } + return GP_OK; +} + +static int +camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *t, *section; + const char *model; + pslr_status status; + char buf[20]; + int *available_resolutions; + int i, ival; + float fval; + + pslr_get_status (&camera->pl->pslr, &status); + + model = pslr_camera_name (&camera->pl->pslr); + + available_resolutions = pslr_get_model_jpeg_resolutions (&camera->pl->pslr); + + gp_log (GP_LOG_DEBUG, "pentax", "*** camera_get_config"); + + gp_widget_new (GP_WIDGET_WINDOW, _("Camera and Driver Configuration"), window); + gp_widget_set_name (*window, "main"); + + gp_widget_new (GP_WIDGET_SECTION, _("Camera Settings"), §ion); + gp_widget_set_name (section, "settings"); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_TEXT, _("Model"), &t); + gp_widget_set_name (t, "model"); + gp_widget_set_value (t, model); + gp_widget_set_readonly (t, 1); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_RADIO, _("Image Format"), &t); + gp_widget_set_name (t, "imageformat"); + /* it seems the upstream code seems to have it always available? */ + gp_widget_add_choice (t, "JPEG"); + gp_widget_add_choice (t, "RAW"); + gp_widget_add_choice (t, "RAW+JPEG"); + switch (status.image_format) { + case PSLR_IMAGE_FORMAT_JPEG: gp_widget_set_value (t, "JPEG"); break; + case PSLR_IMAGE_FORMAT_RAW: gp_widget_set_value (t, "RAW"); break; + case PSLR_IMAGE_FORMAT_RAW_PLUS: gp_widget_set_value (t, "RAW+"); break; + default: + sprintf(buf, _("Unknown format %d"), status.image_format); + gp_widget_set_value (t, buf); + break; + } + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_RADIO, _("Image Size"), &t); + gp_widget_set_name (t, "imgsize"); + for (i = 0; i < MAX_RESOLUTION_SIZE && available_resolutions[i]; i++) + { + char buf[20]; + + sprintf(buf,"%d", available_resolutions[i]); + gp_widget_add_choice (t, buf); + } + + if (status.jpeg_resolution > 0 && status.jpeg_resolution < MAX_RESOLUTION_SIZE) { + char buf[20]; + + sprintf(buf, "%d", status.jpeg_resolution); + gp_widget_set_value (t, buf); + } else + gp_widget_set_value (t, _("Unknown")); + + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_RADIO, _("Image Quality"), &t); + gp_widget_set_name (t, "imagequality"); + gp_widget_add_choice (t, "4"); + gp_widget_add_choice (t, "3"); + gp_widget_add_choice (t, "2"); + gp_widget_add_choice (t, "1"); + sprintf (buf,"%d",status.jpeg_quality); + gp_widget_set_value (t, buf); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_RADIO, _("ISO"), &t); + gp_widget_set_name (t, "iso"); + gp_widget_add_choice (t, "100"); + gp_widget_add_choice (t, "200"); + gp_widget_add_choice (t, "400"); + gp_widget_add_choice (t, "800"); + gp_widget_add_choice (t, "1600"); + gp_widget_add_choice (t, "3200"); + sprintf(buf,"%d",status.current_iso); + gp_widget_set_value (t, buf); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_TEXT, _("Shutter Speed"), &t); + gp_widget_set_name (t, "shutterspeed"); + sprintf(buf,"%d/%d",status.current_shutter_speed.nom,status.current_shutter_speed.denom); + gp_widget_set_value (t, buf); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_TEXT, _("Aperture"), &t); + gp_widget_set_name (t, "aperture"); + if (status.current_aperture.denom == 1) { + sprintf(buf,"%d",status.current_aperture.nom); + } else if (status.current_aperture.denom == 10) { + if (status.current_aperture.nom % 10 == 0) + sprintf(buf,"%d",status.current_aperture.nom/10); + else + sprintf(buf,"%d.%d",status.current_aperture.nom/10,status.current_aperture.nom%10); + } else { + sprintf(buf,"%d/%d",status.current_aperture.nom,status.current_aperture.denom); + } + gp_widget_set_value (t, buf); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_TEXT, _("Aperture at Lens Minimum Focal Length"), &t); + gp_widget_set_name (t, "apertureatminfocallength"); + if (status.lens_min_aperture.denom == 1) { + sprintf(buf,"%d",status.lens_min_aperture.nom); + } else if (status.lens_min_aperture.denom == 10) { + if (status.lens_min_aperture.nom % 10 == 0) + sprintf(buf,"%d",status.lens_min_aperture.nom/10); + else + sprintf(buf,"%d.%d",status.lens_min_aperture.nom/10,status.lens_min_aperture.nom%10); + } else { + sprintf(buf,"%d/%d",status.lens_min_aperture.nom,status.lens_min_aperture.denom); + } + gp_widget_set_value (t, buf); + gp_widget_set_readonly (t, 1); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_TEXT, _("Aperture at Lens Maximum Focal Length"), &t); + gp_widget_set_name (t, "apertureatmaxfocallength"); + if (status.lens_max_aperture.denom == 1) { + sprintf(buf,"%d",status.lens_max_aperture.nom); + } else if (status.lens_max_aperture.denom == 10) { + if (status.lens_max_aperture.nom % 10 == 0) + sprintf(buf,"%d",status.lens_max_aperture.nom/10); + else + sprintf(buf,"%d.%d",status.lens_max_aperture.nom/10,status.lens_max_aperture.nom%10); + } else { + sprintf(buf,"%d/%d",status.lens_max_aperture.nom,status.lens_max_aperture.denom); + } + gp_widget_set_value (t, buf); + gp_widget_set_readonly (t, 1); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_TEXT, _("Zoom"), &t); + gp_widget_set_name (t, "zoom"); + sprintf(buf,"%d/%d",status.zoom.nom,status.zoom.denom); + gp_widget_set_value (t, buf); + gp_widget_set_readonly (t, 1); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_RANGE, _("Exposure Compensation"), &t); + gp_widget_set_name (t, "exposurecompensation"); + fval = 1.0*status.ec.nom/status.ec.denom; + gp_widget_set_range (t, -3.0, 3.0, (status.custom_ev_steps == PSLR_CUSTOM_EV_STEPS_1_2)? 0.5:0.333333); + gp_widget_set_value (t, &fval); + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_RADIO, _("Shooting Mode"), &t); + gp_widget_set_name (t, "shootingmode"); + gp_widget_add_choice (t, _("GREEN")); + gp_widget_add_choice (t, _("P")); + gp_widget_add_choice (t, _("SV")); + gp_widget_add_choice (t, _("TV")); + gp_widget_add_choice (t, _("AV")); + gp_widget_add_choice (t, _("TAV")); + gp_widget_add_choice (t, _("M")); + gp_widget_add_choice (t, _("B")); + gp_widget_add_choice (t, _("X")); + switch (status.exposure_mode) { + case PSLR_GUI_EXPOSURE_MODE_GREEN: gp_widget_set_value (t, _("GREEN"));break; + case PSLR_GUI_EXPOSURE_MODE_M: gp_widget_set_value (t, _("M"));break; + case PSLR_GUI_EXPOSURE_MODE_P: gp_widget_set_value (t, _("P"));break; + case PSLR_GUI_EXPOSURE_MODE_AV: gp_widget_set_value (t, _("AV"));break; + case PSLR_GUI_EXPOSURE_MODE_TV: gp_widget_set_value (t, _("TV"));break; + case PSLR_GUI_EXPOSURE_MODE_SV: gp_widget_set_value (t, _("SV"));break; + case PSLR_GUI_EXPOSURE_MODE_TAV: gp_widget_set_value (t, _("TAV"));break; + case PSLR_GUI_EXPOSURE_MODE_X: gp_widget_set_value (t, _("X"));break; + case PSLR_GUI_EXPOSURE_MODE_B: gp_widget_set_value (t, _("B"));break; + default: + sprintf(buf, _("Unknown mode %d"), status.exposure_mode); + gp_widget_set_value (t, buf); + break; + } + gp_widget_append (section, t); + + gp_widget_new (GP_WIDGET_TOGGLE, _("Bulb"), &t); + gp_widget_set_name (t, "bulb"); + ival = 2; + gp_widget_set_value (t, &ival); + gp_widget_append (section, t); + + return GP_OK; +} + +static int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *w = NULL; + char *sval; + pslr_status status; + int ret; + + pslr_get_status(&camera->pl->pslr, &status); + + gp_log (GP_LOG_DEBUG, "pentax", "*** camera_set_config"); + ret = gp_widget_get_child_by_label (window, _("Image Size"), &w); + if ((ret == GP_OK) && (gp_widget_changed (w))) { + int i, resolution = -1; + int *valid_resolutions; + + gp_widget_set_changed (w, 0); + valid_resolutions = pslr_get_model_jpeg_resolutions (&camera->pl->pslr); + + gp_widget_get_value (w, &sval); + for (i = 0; i < MAX_RESOLUTION_SIZE; i++) + { + int foo; + + sscanf(sval, "%d", &foo); + if (foo != valid_resolutions[i]) + resolution = i; + } + + if (resolution == -1) { + gp_log (GP_LOG_ERROR, "pentax", "Could not decode image size %s", sval); + } else { + pslr_set_jpeg_resolution(&camera->pl->pslr, resolution); + pslr_get_status(&camera->pl->pslr, &status); + } + } + + ret = gp_widget_get_child_by_label (window, _("Shooting Mode"), &w); + if ((ret == GP_OK) && gp_widget_changed (w)) { + pslr_gui_exposure_mode_t exposuremode; + + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &sval); + + exposuremode = PSLR_GUI_EXPOSURE_MODE_MAX; + if (!strcmp(sval,_("GREEN"))) exposuremode = PSLR_GUI_EXPOSURE_MODE_GREEN; + if (!strcmp(sval,_("M"))) exposuremode = PSLR_GUI_EXPOSURE_MODE_M; + if (!strcmp(sval,_("B"))) exposuremode = PSLR_GUI_EXPOSURE_MODE_B; + if (!strcmp(sval,_("P"))) exposuremode = PSLR_GUI_EXPOSURE_MODE_P; + if (!strcmp(sval,_("SV"))) exposuremode = PSLR_GUI_EXPOSURE_MODE_SV; + if (!strcmp(sval,_("TV"))) exposuremode = PSLR_GUI_EXPOSURE_MODE_TV; + if (!strcmp(sval,_("AV"))) exposuremode = PSLR_GUI_EXPOSURE_MODE_AV; + if (!strcmp(sval,_("TAV"))) exposuremode = PSLR_GUI_EXPOSURE_MODE_TAV; + if (!strcmp(sval,_("X"))) exposuremode = PSLR_GUI_EXPOSURE_MODE_TAV; + if (exposuremode != PSLR_GUI_EXPOSURE_MODE_MAX) { + pslr_set_exposure_mode(&camera->pl->pslr, exposuremode); + pslr_get_status(&camera->pl->pslr, &status); + } else { + gp_log (GP_LOG_ERROR, "pentax", "Could not decode exposuremode %s", sval); + } + } + + ret = gp_widget_get_child_by_label (window, _("ISO"), &w); + if ((ret == GP_OK) && gp_widget_changed (w)) { + int iso; + + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &sval); + if (sscanf(sval, "%d", &iso)) { + /* pslr_set_iso(&camera->pl->pslr, iso); */ + pslr_set_iso(&camera->pl->pslr, iso, 0, 0); /* FIXME: check if 0 is ok */ + pslr_get_status(&camera->pl->pslr, &status); + // FIXME: K-30 iso doesn't get updated immediately + } else + gp_log (GP_LOG_ERROR, "pentax", "Could not decode iso %s", sval); + } + + gp_widget_get_child_by_label (window, _("Exposure Compensation"), &w); + if (gp_widget_changed (w)) { + float fval; + pslr_rational_t rational; + + gp_widget_get_value (w, &fval); + rational.denom = 10; + rational.nom = (int)(10 * fval); + + pslr_set_ec (&camera->pl->pslr, rational); + + } + + gp_widget_get_child_by_label (window, _("Image Quality"), &w); + if (gp_widget_changed (w)) { + int qual; + + /* FIXME: decoding is strange. the UI shows number of stars + * on k20d: 4 stars = 3, 3 stars = 0, 2 stars = 1, 1 star = 2 + */ + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &sval); + if (sscanf(sval, "%d", &qual)) { + pslr_set_jpeg_stars (&camera->pl->pslr, qual); + pslr_get_status (&camera->pl->pslr, &status); + } else + gp_log (GP_LOG_ERROR, "pentax", "Could not decode image quality %s", sval); + } + + ret = gp_widget_get_child_by_label (window, _("Shutter Speed"), &w); + if ((ret == GP_OK) && gp_widget_changed (w)) { + pslr_rational_t speed; + + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &sval); + if (sscanf(sval, "%d/%d", &speed.nom, &speed.denom)) { + pslr_set_shutter(&camera->pl->pslr, speed); + pslr_get_status(&camera->pl->pslr, &status); + } else { + char c; + if (sscanf(sval, "%d%c", &speed.nom, &c) && (c=='s')) { + speed.denom = 1; + pslr_set_shutter(&camera->pl->pslr, speed); + pslr_get_status(&camera->pl->pslr, &status); + } else { + gp_log (GP_LOG_ERROR, "pentax", "Could not decode shutterspeed %s", sval); + } + } + /* parse more? */ + } + + ret = gp_widget_get_child_by_label (window, _("Aperture"), &w); + if ((ret == GP_OK) && gp_widget_changed (w)) { + pslr_rational_t aperture; + int apt1,apt2; + + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &sval); + if (sscanf(sval, "%d.%d", &apt1, &apt2)) { + if (apt1<11) { + aperture.nom = apt1*10+apt2; + aperture.denom = 10; + } else { + /* apt2 not in use */ + aperture.nom = apt1; + aperture.denom = 1; + } + pslr_set_aperture(&camera->pl->pslr, aperture); + pslr_get_status(&camera->pl->pslr, &status); + } else if (sscanf(sval, "%d", &apt1)) { + if (apt1<11) { + aperture.nom = apt1*10; + aperture.denom = 10; + } else { + aperture.nom = apt1; + aperture.denom = 1; + } + pslr_set_aperture(&camera->pl->pslr, aperture); + pslr_get_status(&camera->pl->pslr, &status); + } else { + gp_log (GP_LOG_ERROR, "pentax", "Could not decode aperture %s", sval); + } + } + + ret = gp_widget_get_child_by_label (window, _("Bulb"), &w); + if ((ret == GP_OK) && gp_widget_changed (w)) { + int bulb; + + if (status.exposure_mode != PSLR_GUI_EXPOSURE_MODE_B) { + gp_context_error (context, _("You need to switch the shooting mode or the camera to 'B' for bulb exposure.")); + return GP_ERROR; + } + + gp_widget_set_changed (w, 0); + gp_widget_get_value (w, &bulb); + pslr_bulb (&camera->pl->pslr, bulb); + + if (bulb) /* also press the shutter */ + pslr_shutter (&camera->pl->pslr); + } + + return GP_OK; +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + pslr_disconnect (&camera->pl->pslr); + free (camera->pl); + return GP_OK; +} + +char ** +get_drives(int *driveNum) { + /* should not be called */ + return NULL; +} + +pslr_result get_drive_info(char* driveName, FDTYPE* hDevice, + char* vendorId, int vendorIdSizeMax, + char* productId, int productIdSizeMax) { + /* should not be called */ + return PSLR_NO_MEMORY; +} + + +int +camera_init (Camera *camera, GPContext *context) +{ + CameraPrivateLibrary *cpl; + + cpl = calloc (sizeof (CameraPrivateLibrary), 1); + /* pslr = pslr_init (model, device); ... but it basically just opens the fd */ + cpl->pslr.fd = camera->port; + + camera->pl = cpl; + + pslr_connect (&cpl->pslr); + + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + camera->functions->capture = camera_capture; + camera->functions->trigger_capture = camera_trigger_capture; + camera->functions->wait_for_event = camera_wait_for_event; + return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr.c new file mode 100644 index 00000000..8550a623 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr.c @@ -0,0 +1,1822 @@ +/* + pkTriggerCord + Copyright (C) 2011-2019 Andras Salamon + Remote control of Pentax DSLR cameras. + + Support for K200D added by Jens Dreyer 04/2011 + Support for K-r added by Vincenc Podobnik 06/2011 + Support for K-30 added by Camilo Polymeris 09/2012 + Support for K-01 added by Ethan Queen 01/2013 + Support for K-3 added by Tao Wang 01/2016 + + based on: + + PK-Remote + Remote control of Pentax DSLR cameras. + Copyright (C) 2008 Pontus Lidman + + PK-Remote for Windows + Copyright (C) 2010 Tomasz Kos + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + and GNU Lesser General Public License + along with this program. If not, see . + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "pslr.h" +#include "pslr_scsi.h" +#include "pslr_lens.h" + +#define POLL_INTERVAL 50000 /* Number of us to wait when polling */ +#define BLKSZ 65536 /* Block size for downloads; if too big, we get + * memory allocation error from sg driver */ +#define BLOCK_RETRY 3 /* Number of retries, since we can occasionally + * get SCSI errors when downloading data */ + +void sleep_sec(double sec) { + int i; + for (i=0; ifd, 0x02, 0x00, 0)); + n = get_result(p->fd); + DPRINT("[C]\t\tipslr_get_buffer_status() bytes: %d\n",n); + if (n!= 8) { + return PSLR_READ_ERROR; + } + CHECK(read_result(p->fd, buf, n)); + int i; + for (i=0; imodel->is_little_endian) { + get_uint32_func_ptr = get_uint32_le; + } else { + get_uint32_func_ptr = get_uint32_be; + } + *x = (*get_uint32_func_ptr)(buf); + *y = (*get_uint32_func_ptr)(buf+4); + return PSLR_OK; +} + +/* Commands in form 23 XX YY. I know it is stupid, but ipslr_cmd functions */ +/* are sooooo handy. */ +static int ipslr_cmd_23_XX(ipslr_handle_t *p, char XX, char YY, uint32_t mode) { + DPRINT("[C]\t\tipslr_cmd_23_XX(%x, %x, mode=%x)\n", XX, YY, mode); + CHECK(ipslr_write_args(p, 1, mode)); + CHECK(command(p->fd, 0x23, XX, YY)); + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +/* First of two exceptions. Command 0x23 0x06 0x14 behaves differently than */ +/* generic 23 XX YY commands */ +static int ipslr_cmd_23_06(ipslr_handle_t *p, char debug_on_off) { + DPRINT("[C]\t\tipslr_cmd_23_06(debug=%d)\n", debug_on_off); + CHECK(ipslr_write_args(p, 1, 3)); + if (debug_on_off==0) { + CHECK(ipslr_write_args_special(p, 4,0,0,0,0)); + } else { + CHECK(ipslr_write_args_special(p, 4,1,1,0,0)); + } + CHECK(command(p->fd, 0x23, 0x06, 0x14)); + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +/* Second exception. Command 0x23 0x04 0x08 behaves differently than generic */ +/* 23 XX YY commands */ +static int ipslr_cmd_23_04(ipslr_handle_t *p) { + DPRINT("[C]\t\tipslr_cmd_23_04()\n"); + CHECK(ipslr_write_args(p, 1, 3)); // posebni ARGS-i + CHECK(ipslr_write_args_special(p, 1, 1)); // posebni ARGS-i + CHECK(command(p->fd, 0x23, 0x04, 0x08)); + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +/* Function called to enable/disable debug mode. If debug_mode argument is 0 */ +/* function disables debug mode, else debug mode is enabled */ +int debug_onoff(ipslr_handle_t *p, char debug_mode) { + DPRINT("[C]\tdebug_onoff(%d)\n", debug_mode); + uint8_t buf[16]; /* buffer for storing statuses and read_results */ + + ipslr_cmd_00_09(p,1); + + ipslr_cmd_23_XX(p,0x07,0x04,3); + read_result(p->fd,buf,0x10); + + ipslr_cmd_23_XX(p,0x05,0x04,3); + read_result(p->fd,buf,0x04); + ipslr_status(p,buf); + + if (debug_mode==0) { + ipslr_cmd_23_06(p,DEBUG_OFF); + } else { + ipslr_cmd_23_06(p,DEBUG_ON); + } + ipslr_status(p,buf); + + + ipslr_cmd_23_04(p); + + ipslr_cmd_23_XX(p,0x00,0x04, 0); + + ipslr_cmd_00_09(p,2); + ipslr_status(p,buf); + + return PSLR_OK; +} + +/* ************* End enabling/disabling debug mode ************ */ + +user_file_format_t *get_file_format_t( user_file_format uff ) { + unsigned int i; + for (i = 0; iraw_format; + int imgfmt = st->image_format; + if (imgfmt == PSLR_IMAGE_FORMAT_JPEG) { + return USER_FILE_FORMAT_JPEG; + } else { + if (rawfmt == PSLR_RAW_FORMAT_PEF) { + return USER_FILE_FORMAT_PEF; + } else { + return USER_FILE_FORMAT_DNG; + } + } +} + +// most of the cameras require this exposure mode conversion step +pslr_gui_exposure_mode_t exposure_mode_conversion( pslr_exposure_mode_t exp ) { + switch ( exp ) { + + case PSLR_EXPOSURE_MODE_GREEN: + return PSLR_GUI_EXPOSURE_MODE_GREEN; + case PSLR_EXPOSURE_MODE_P: + return PSLR_GUI_EXPOSURE_MODE_P; + case PSLR_EXPOSURE_MODE_SV: + return PSLR_GUI_EXPOSURE_MODE_SV; + case PSLR_EXPOSURE_MODE_TV: + return PSLR_GUI_EXPOSURE_MODE_TV; + case PSLR_EXPOSURE_MODE_AV: + case PSLR_EXPOSURE_MODE_AV_OFFAUTO: + return PSLR_GUI_EXPOSURE_MODE_AV; + case PSLR_EXPOSURE_MODE_TAV: + return PSLR_GUI_EXPOSURE_MODE_TAV; + case PSLR_EXPOSURE_MODE_M: + case PSLR_EXPOSURE_MODE_M_OFFAUTO: + return PSLR_GUI_EXPOSURE_MODE_M; + case PSLR_EXPOSURE_MODE_B: + case PSLR_EXPOSURE_MODE_B_OFFAUTO: + return PSLR_GUI_EXPOSURE_MODE_B; + case PSLR_EXPOSURE_MODE_X: + return PSLR_GUI_EXPOSURE_MODE_X; + case PSLR_EXPOSURE_MODE_MAX: + return PSLR_GUI_EXPOSURE_MODE_MAX; + } + return 0; +} + +pslr_handle_t pslr_init( char *model, char *device ) { + FDTYPE fd; + char vendorId[20]; + char productId[20]; + int driveNum; + char **drives; + const char *camera_name; + + DPRINT("[C]\tplsr_init()\n"); + + if ( device == NULL ) { + drives = get_drives(&driveNum); + } else { + driveNum = 1; + drives = malloc( driveNum * sizeof(char*) ); + drives[0] = malloc( strlen( device )+1 ); + strncpy( drives[0], device, strlen( device ) ); + drives[0][strlen(device)]='\0'; + } + DPRINT("driveNum:%d\n",driveNum); + int i; + for ( i=0; imodel ) { + DPRINT("\nUnknown Pentax camera.\n"); + return -1; + } + CHECK(ipslr_status_full(p, &p->status)); + DPRINT("\tinit bufmask=0x%x\n", p->status.bufmask); + if ( !p->model->old_scsi_command ) { + CHECK(ipslr_cmd_00_09(p, 2)); + } + CHECK(ipslr_status_full(p, &p->status)); + CHECK(ipslr_cmd_10_0a(p, 1)); + if ( p->model->old_scsi_command ) { + CHECK(ipslr_cmd_00_05(p)); + } + CHECK(ipslr_status_full(p, &p->status)); + return 0; +} + +int pslr_disconnect(pslr_handle_t h) { + DPRINT("[C]\tpslr_disconnect()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + uint8_t statusbuf[28]; + CHECK(ipslr_cmd_10_0a(p, 0)); + CHECK(ipslr_set_mode(p, 0)); + CHECK(ipslr_status(p, statusbuf)); + return PSLR_OK; +} + +int pslr_shutdown(pslr_handle_t h) { + DPRINT("[C]\tpslr_shutdown()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + close_drive(&p->fd); + return PSLR_OK; +} + +int pslr_shutter(pslr_handle_t h) { + DPRINT("[C]\tpslr_shutter()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_press_shutter(p, true); +} + +int pslr_focus(pslr_handle_t h) { + DPRINT("[C]\tpslr_focus()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_press_shutter(p, false); +} + +int pslr_get_status(pslr_handle_t h, pslr_status *ps) { + DPRINT("[C]\tpslr_get_status()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + memset( ps, 0, sizeof( pslr_status )); + CHECK(ipslr_status_full(p, &p->status)); + memcpy(ps, &p->status, sizeof (pslr_status)); + return PSLR_OK; +} + +char *format_rational( pslr_rational_t rational, char * fmt ) { + char *ret = malloc(32); + if ( rational.denom == 0 ) { + snprintf( ret, 32, "unknown" ); + } else { + snprintf( ret, 32, fmt, 1.0 * rational.nom / rational.denom ); + } + return ret; +} + +static +char *get_white_balance_single_adjust_str( uint32_t adjust, char negativeChar, char positiveChar ) { + char *ret = malloc(4); + if ( adjust < 7 ) { + snprintf( ret, 4, "%c%d", negativeChar, 7-adjust); + } else if ( adjust > 7 ) { + snprintf( ret, 4, "%c%d", positiveChar, adjust-7); + } else { + ret = ""; + } + return ret; +} + +static +char *get_white_balance_adjust_str( uint32_t adjust_mg, uint32_t adjust_ba ) { + char *ret = malloc(8); + if ( adjust_mg != 7 || adjust_ba != 7 ) { + snprintf(ret, 8, "%s%s", get_white_balance_single_adjust_str(adjust_mg, 'M', 'G'),get_white_balance_single_adjust_str(adjust_ba, 'B', 'A')); + } else { + ret = "0"; + } + return ret; +} + +char *pslr_get_af_name(pslr_handle_t h, uint32_t af_point) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + if (p->model->af_point_num==11) { + return get_pslr_af11_point_str(af_point); + } else { + char *raw = malloc(11); + sprintf(raw, "%d", af_point); + return raw; + } +} + +char *collect_status_info( pslr_handle_t h, pslr_status status ) { + char *strbuffer = malloc(8192); + sprintf(strbuffer,"%-32s: %d\n", "current iso", status.current_iso); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d/%d\n", "current shutter speed", status.current_shutter_speed.nom, status.current_shutter_speed.denom); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d/%d\n", "camera max shutter speed", status.max_shutter_speed.nom, status.max_shutter_speed.denom); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "current aperture", format_rational( status.current_aperture, "%.1f")); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "lens max aperture", format_rational( status.lens_max_aperture, "%.1f")); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "lens min aperture", format_rational( status.lens_min_aperture, "%.1f")); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d/%d\n", "set shutter speed", status.set_shutter_speed.nom, status.set_shutter_speed.denom); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "set aperture", format_rational( status.set_aperture, "%.1f")); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "fixed iso", status.fixed_iso); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d-%d\n", "auto iso", status.auto_iso_min,status.auto_iso_max); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "jpeg quality", status.jpeg_quality); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %dM\n", "jpeg resolution", pslr_get_jpeg_resolution( h, status.jpeg_resolution)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "jpeg image tone", get_pslr_jpeg_image_tone_str(status.jpeg_image_tone)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "jpeg saturation", status.jpeg_saturation); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "jpeg contrast", status.jpeg_contrast); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "jpeg sharpness", status.jpeg_sharpness); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "jpeg hue", status.jpeg_hue); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s mm\n", "zoom", format_rational(status.zoom, "%.2f")); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "focus", status.focus); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "color space", get_pslr_color_space_str(status.color_space)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "image format", get_pslr_image_format_str(status.image_format)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "raw format", get_pslr_raw_format_str(status.raw_format)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "light meter flags", status.light_meter_flags); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "ec", format_rational( status.ec, "%.2f" ) ); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s EV steps\n", "custom ev steps", get_pslr_custom_ev_steps_str(status.custom_ev_steps)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s EV steps\n", "custom sensitivity steps", get_pslr_custom_sensitivity_steps_str(status.custom_sensitivity_steps)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "exposure mode", status.exposure_mode); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "scene mode", get_pslr_scene_mode_str(status.scene_mode)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "user mode flag", status.user_mode_flag); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "ae metering mode", get_pslr_ae_metering_str(status.ae_metering_mode)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "af mode", get_pslr_af_mode_str(status.af_mode)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "af point select", get_pslr_af_point_sel_str(status.af_point_select)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "selected af point", pslr_get_af_name( h, status.selected_af_point)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "focused af point", pslr_get_af_name( h, status.focused_af_point)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "drive mode", get_pslr_drive_mode_str(status.drive_mode)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "auto bracket mode", status.auto_bracket_mode > 0 ? "on" : "off"); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "auto bracket picture count", status.auto_bracket_picture_count); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %d\n", "auto bracket picture counter", status.auto_bracket_picture_counter); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "auto bracket ev", format_rational(status.auto_bracket_ev, "%.2f")); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "shake reduction", status.shake_reduction > 0 ? "on" : "off"); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "white balance mode", get_pslr_white_balance_mode_str(status.white_balance_mode)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "white balance adjust", get_white_balance_adjust_str(status.white_balance_adjust_mg, status.white_balance_adjust_ba)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "flash mode", get_pslr_flash_mode_str(status.flash_mode)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %.2f\n", "flash exposure compensation", (1.0 * status.flash_exposure_compensation/256)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %.2f\n", "manual mode ev", (1.0 * status.manual_mode_ev / 10)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "lens", get_lens_name(status.lens_id1, status.lens_id2)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %.2fV %.2fV %.2fV %.2fV\n", "battery", 0.01 * status.battery_1, 0.01 * status.battery_2, 0.01 * status.battery_3, 0.01 * status.battery_4); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %s\n", "buffer mask", int_to_binary(status.bufmask)); + return strbuffer; +} + +static +char *get_hardwired_setting_bool_info( pslr_bool_setting setting) { + char *strbuffer = malloc(32+1); + sprintf(strbuffer,"%-32s", setting.pslr_setting_status == PSLR_SETTING_STATUS_HARDWIRED ? "\t[hardwired]" : ""); + return strbuffer; +} + +static +char *get_special_setting_info( pslr_setting_status_t setting_status) { + char *strbuffer = malloc(32); + switch ( setting_status ) { + case PSLR_SETTING_STATUS_NA: + sprintf(strbuffer,"N/A"); + break; + case PSLR_SETTING_STATUS_UNKNOWN: + sprintf(strbuffer,"Unknown"); + break; + default: + return NULL; + } + return strbuffer; +} + +static +char *get_hardwired_setting_uint16_info( pslr_uint16_setting setting) { + char *strbuffer = malloc(32+1); + sprintf(strbuffer,"%-32s", setting.pslr_setting_status == PSLR_SETTING_STATUS_HARDWIRED ? "\t[hardwired]" : ""); + return strbuffer; +} + +char *collect_settings_info( pslr_handle_t h, pslr_settings settings ) { + char *strbuffer = malloc(8192); + sprintf(strbuffer,"%-32s: %-8s%s\n", "one push bracketing", get_special_setting_info(settings.one_push_bracketing.pslr_setting_status) ?: settings.one_push_bracketing.value ? "on" : "off", get_hardwired_setting_bool_info(settings.one_push_bracketing)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %-8s%s\n", "bulb mode", get_special_setting_info(settings.bulb_mode_press_press.pslr_setting_status) ?: settings.bulb_mode_press_press.value ? "press-press" : "press-hold", get_hardwired_setting_bool_info(settings.bulb_mode_press_press)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %-8s%s\n", "bulb timer", get_special_setting_info(settings.bulb_timer.pslr_setting_status) ?: settings.bulb_timer.value ? "on" : "off", get_hardwired_setting_bool_info(settings.bulb_timer)); + char *bulb_timer_sec = malloc(32); + sprintf(bulb_timer_sec, "%d s", settings.bulb_timer_sec.value); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %-8s%s\n", "bulb timer sec", get_special_setting_info(settings.bulb_timer_sec.pslr_setting_status) ?: bulb_timer_sec, get_hardwired_setting_uint16_info(settings.bulb_timer_sec)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %-8s%s\n", "remote bulb mode", get_special_setting_info(settings.remote_bulb_mode_press_press.pslr_setting_status) ?: settings.remote_bulb_mode_press_press.value ? "press-press" : "press-hold", get_hardwired_setting_bool_info(settings.remote_bulb_mode_press_press)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %-8s%s\n", "using aperture ring", get_special_setting_info(settings.using_aperture_ring.pslr_setting_status) ?: settings.using_aperture_ring.value ? "on" : "off", get_hardwired_setting_bool_info(settings.using_aperture_ring)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %-8s%s\n", "shake reduction", get_special_setting_info(settings.shake_reduction.pslr_setting_status) ?: settings.shake_reduction.value ? "on" : "off", get_hardwired_setting_bool_info(settings.shake_reduction)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %-8s%s\n", "astrotracer", get_special_setting_info(settings.astrotracer.pslr_setting_status) ?: settings.astrotracer.value ? "on" : "off", get_hardwired_setting_bool_info(settings.astrotracer)); + char *astrotracer_timer_sec = malloc(32); + sprintf(astrotracer_timer_sec, "%d s", settings.astrotracer_timer_sec.value); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %-8s%s\n", "astrotracer timer sec", get_special_setting_info(settings.astrotracer_timer_sec.pslr_setting_status) ?: astrotracer_timer_sec, get_hardwired_setting_uint16_info(settings.astrotracer_timer_sec)); + sprintf(strbuffer+strlen(strbuffer),"%-32s: %-8s%s\n", "horizon correction", get_special_setting_info(settings.horizon_correction.pslr_setting_status) ?: settings.horizon_correction.value ? "on" : "off", get_hardwired_setting_bool_info(settings.horizon_correction)); + return strbuffer; +} + + +int pslr_get_status_buffer(pslr_handle_t h, uint8_t *st_buf) { + DPRINT("[C]\tpslr_get_status_buffer()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + memset( st_buf, 0, MAX_STATUS_BUF_SIZE); +// CHECK(ipslr_status_full(p, &p->status)); +// ipslr_status_full(p, &p->status); + memcpy(st_buf, p->status_buffer, MAX_STATUS_BUF_SIZE); + return PSLR_OK; +} + +int pslr_get_settings_buffer(pslr_handle_t h, uint8_t *st_buf) { + DPRINT("[C]\tpslr_get_settings_buffer()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + memset( st_buf, 0, SETTINGS_BUFFER_SIZE); + memcpy(st_buf, p->settings_buffer, SETTINGS_BUFFER_SIZE); + return PSLR_OK; +} + +int pslr_get_buffer(pslr_handle_t h, int bufno, pslr_buffer_type type, int resolution, + uint8_t **ppData, uint32_t *pLen) { + DPRINT("[C]\tpslr_get_buffer()\n"); + uint8_t *buf = 0; + int ret; + ret = pslr_buffer_open(h, bufno, type, resolution); + if ( ret != PSLR_OK ) { + return ret; + } + + uint32_t size = pslr_buffer_get_size(h); + buf = malloc(size); + if (!buf) { + return PSLR_NO_MEMORY; + } + + uint32_t bufpos = 0; + while (true) { + uint32_t nextread = size - bufpos > 65536 ? 65536 : size - bufpos; + if (nextread == 0) { + break; + } + uint32_t bytes = pslr_buffer_read(h, buf+bufpos, nextread); + if (bytes == 0) { + break; + } + bufpos += bytes; + } + if ( bufpos != size ) { + return PSLR_READ_ERROR; + } + pslr_buffer_close(h); + if (ppData) { + *ppData = buf; + } + if (pLen) { + *pLen = size; + } + + return PSLR_OK; +} + +int pslr_set_progress_callback(pslr_handle_t h, pslr_progress_callback_t cb, uintptr_t user_data) { + progress_callback = cb; + return PSLR_OK; +} + +static +int ipslr_handle_command_x18( ipslr_handle_t *p, bool cmd9_wrap, int subcommand, int argnum, ...) { + DPRINT("[C]\t\tipslr_handle_command_x18(0x%x, %d)\n", subcommand, argnum); + if ( cmd9_wrap ) { + CHECK(ipslr_cmd_00_09(p, 1)); + } + // max 4 args + va_list ap; + int args[4]; + int i; + for ( i = 0; i < 4; ++i ) { + args[i] = 0; + } + va_start(ap, argnum); + for (i = 0; i < argnum; i++) { + args[i] = va_arg(ap, int); + } + va_end(ap); + CHECK(ipslr_write_args(p, argnum, args[0], args[1], args[2], args[3])); + CHECK(command(p->fd, 0x18, subcommand, 4 * argnum)); + CHECK(get_status(p->fd)); + if ( cmd9_wrap ) { + CHECK(ipslr_cmd_00_09(p, 2)); + } + return PSLR_OK; +} + +int pslr_test( pslr_handle_t h, bool cmd9_wrap, int subcommand, int argnum, int arg1, int arg2, int arg3, int arg4) { + DPRINT("[C]\tpslr_test(wrap=%d, subcommand=0x%x, %x, %x, %x, %x)\n", cmd9_wrap, subcommand, arg1, arg2, arg3, arg4); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, cmd9_wrap, subcommand, argnum, arg1, arg2, arg3, arg4); +} + +int pslr_set_shutter(pslr_handle_t h, pslr_rational_t value) { + DPRINT("[C]\tpslr_set_shutter(%x %x)\n", value.nom, value.denom); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_SHUTTER, 2, value.nom, value.denom, 0); +} + +int pslr_set_aperture(pslr_handle_t h, pslr_rational_t value) { + DPRINT("[C]\tpslr_set_aperture(%x %x)\n", value.nom, value.denom); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, false, X18_APERTURE, 3, value.nom, value.denom, 0); +} + +int pslr_set_iso(pslr_handle_t h, uint32_t value, uint32_t auto_min_value, uint32_t auto_max_value) { + DPRINT("[C]\tpslr_set_iso(0x%X, auto_min=%X, auto_max=%X)\n", value, auto_min_value, auto_max_value); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_ISO, 3, value, auto_min_value, auto_max_value); +} + +int pslr_set_ec(pslr_handle_t h, pslr_rational_t value) { + DPRINT("[C]\tpslr_set_ec(0x%X 0x%X)\n", value.nom, value.denom); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_EC, 2, value.nom, value.denom, 0); +} + +int pslr_set_white_balance(pslr_handle_t h, pslr_white_balance_mode_t wb_mode) { + DPRINT("[C]\tpslr_set_white_balance(0x%X)\n", wb_mode); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_WHITE_BALANCE, 1, wb_mode); +} + +int pslr_set_white_balance_adjustment(pslr_handle_t h, pslr_white_balance_mode_t wb_mode, uint32_t wbadj_mg, uint32_t wbadj_ba) { + DPRINT("[C]\tpslr_set_white_balance_adjustment(mode=0x%X, tint=0x%X, temp=0x%X)\n", wb_mode, wbadj_mg, wbadj_ba); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_WHITE_BALANCE_ADJ, 3, wb_mode, wbadj_mg, wbadj_ba); +} + + +int pslr_set_flash_mode(pslr_handle_t h, pslr_flash_mode_t value) { + DPRINT("[C]\tpslr_set_flash_mode(%X)\n", value); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_FLASH_MODE, 1, value, 0, 0); +} + +int pslr_set_flash_exposure_compensation(pslr_handle_t h, pslr_rational_t value) { + DPRINT("[C]\tpslr_set_flash_exposure_compensation(%X %X)\n", value.nom, value.denom); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_FLASH_EXPOSURE_COMPENSATION, 2, value.nom, value.denom, 0); +} + +int pslr_set_drive_mode(pslr_handle_t h, pslr_drive_mode_t drive_mode) { + DPRINT("[C]\tpslr_set_drive_mode(%X)\n", drive_mode); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_DRIVE_MODE, 1, drive_mode, 0, 0); +} + +int pslr_set_ae_metering_mode(pslr_handle_t h, pslr_ae_metering_t ae_metering_mode) { + DPRINT("[C]\tpslr_set_ae_metering_mode(%X)\n", ae_metering_mode); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_AE_METERING_MODE, 1, ae_metering_mode, 0, 0); +} + +int pslr_set_af_mode(pslr_handle_t h, pslr_af_mode_t af_mode) { + DPRINT("[C]\tpslr_set_af_mode(%X)\n", af_mode); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_AF_MODE, 1, af_mode, 0, 0); +} + +int pslr_set_af_point_sel(pslr_handle_t h, pslr_af_point_sel_t af_point_sel) { + DPRINT("[C]\tpslr_set_af_point_sel(%X)\n", af_point_sel); + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_AF_POINT_SEL, 1, af_point_sel, 0, 0); +} + +int pslr_set_jpeg_stars(pslr_handle_t h, int jpeg_stars ) { + DPRINT("[C]\tpslr_set_jpeg_stars(%X)\n", jpeg_stars); + int hwqual; + ipslr_handle_t *p = (ipslr_handle_t *) h; + if ( jpeg_stars > p->model->max_jpeg_stars ) { + return PSLR_PARAM; + } + hwqual = get_hw_jpeg_quality( p->model, jpeg_stars ); + return ipslr_handle_command_x18( p, true, X18_JPEG_STARS, 2, 1, hwqual, 0); +} + +static +int _get_user_jpeg_resolution( ipslr_model_info_t *model, int hwres ) { + return model->jpeg_resolutions[hwres]; +} + +int pslr_get_jpeg_resolution(pslr_handle_t h, int hwres) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return _get_user_jpeg_resolution( p->model, hwres ); +} + +static +int _get_hw_jpeg_resolution( ipslr_model_info_t *model, int megapixel) { + int resindex = 0; + while ( resindex < MAX_RESOLUTION_SIZE && model->jpeg_resolutions[resindex] > megapixel ) { + ++resindex; + } + return resindex < MAX_RESOLUTION_SIZE ? resindex : MAX_RESOLUTION_SIZE-1; +} + +int pslr_set_jpeg_resolution(pslr_handle_t h, int megapixel) { + DPRINT("[C]\tpslr_set_jpeg_resolution(%X)\n", megapixel); + ipslr_handle_t *p = (ipslr_handle_t *) h; + int hwres = _get_hw_jpeg_resolution( p->model, megapixel ); + return ipslr_handle_command_x18( p, true, X18_JPEG_RESOLUTION, 2, 1, hwres, 0); +} + +int pslr_set_jpeg_image_tone(pslr_handle_t h, pslr_jpeg_image_tone_t image_tone) { + DPRINT("[C]\tpslr_set_jpeg_image_tone(%X)\n", image_tone); + ipslr_handle_t *p = (ipslr_handle_t *) h; + if (image_tone < 0 || image_tone > PSLR_JPEG_IMAGE_TONE_MAX) { + return PSLR_PARAM; + } + return ipslr_handle_command_x18( p, true, X18_JPEG_IMAGE_TONE, 1, image_tone, 0, 0); +} + +int pslr_set_jpeg_sharpness(pslr_handle_t h, int32_t sharpness) { + DPRINT("[C]\tpslr_set_jpeg_sharpness(%X)\n", sharpness); + ipslr_handle_t *p = (ipslr_handle_t *) h; + int hw_sharpness = sharpness + (pslr_get_model_jpeg_property_levels( h )-1) / 2; + if (hw_sharpness < 0 || hw_sharpness >= p->model->jpeg_property_levels) { + return PSLR_PARAM; + } + return ipslr_handle_command_x18( p, false, X18_JPEG_SHARPNESS, 2, 0, hw_sharpness, 0); +} + +int pslr_set_jpeg_contrast(pslr_handle_t h, int32_t contrast) { + DPRINT("[C]\tpslr_set_jpeg_contrast(%X)\n", contrast); + ipslr_handle_t *p = (ipslr_handle_t *) h; + int hw_contrast = contrast + (pslr_get_model_jpeg_property_levels( h )-1) / 2; + if (hw_contrast < 0 || hw_contrast >= p->model->jpeg_property_levels) { + return PSLR_PARAM; + } + return ipslr_handle_command_x18( p, false, X18_JPEG_CONTRAST, 2, 0, hw_contrast, 0); +} + +int pslr_set_jpeg_hue(pslr_handle_t h, int32_t hue) { + DPRINT("[C]\tpslr_set_jpeg_hue(%X)\n", hue); + ipslr_handle_t *p = (ipslr_handle_t *) h; + int hw_hue = hue + (pslr_get_model_jpeg_property_levels( h )-1) / 2; + DPRINT("hw_hue: %d\n", hw_hue); + if (hw_hue < 0 || hw_hue >= p->model->jpeg_property_levels) { + return PSLR_PARAM; + } + DPRINT("before return\n"); + return ipslr_handle_command_x18( p, false, X18_JPEG_HUE, 2, 0, hw_hue, 0); +} + +int pslr_set_jpeg_saturation(pslr_handle_t h, int32_t saturation) { + DPRINT("[C]\tpslr_set_jpeg_saturation(%X)\n", saturation); + ipslr_handle_t *p = (ipslr_handle_t *) h; + int hw_saturation = saturation + (pslr_get_model_jpeg_property_levels( h )-1) / 2; + if (hw_saturation < 0 || hw_saturation >= p->model->jpeg_property_levels) { + return PSLR_PARAM; + } + return ipslr_handle_command_x18( p, false, X18_JPEG_SATURATION, 2, 0, hw_saturation, 0); +} + +int pslr_set_image_format(pslr_handle_t h, pslr_image_format_t format) { + DPRINT("[C]\tpslr_set_image_format(%X)\n", format); + ipslr_handle_t *p = (ipslr_handle_t *) h; + if (format >= PSLR_IMAGE_FORMAT_MAX) { + return PSLR_PARAM; + } + return ipslr_handle_command_x18( p, true, X18_IMAGE_FORMAT, 2, 1, format, 0); +} + +int pslr_set_raw_format(pslr_handle_t h, pslr_raw_format_t format) { + DPRINT("[C]\tpslr_set_raw_format(%X)\n", format); + ipslr_handle_t *p = (ipslr_handle_t *) h; + if (format >= PSLR_RAW_FORMAT_MAX) { + return PSLR_PARAM; + } + return ipslr_handle_command_x18( p, true, X18_RAW_FORMAT, 2, 1, format, 0); +} + +int pslr_set_color_space(pslr_handle_t h, pslr_color_space_t color_space) { + DPRINT("[C]\tpslr_set_raw_format(%X)\n", color_space); + ipslr_handle_t *p = (ipslr_handle_t *) h; + if (color_space >= PSLR_COLOR_SPACE_MAX) { + return PSLR_PARAM; + } + return ipslr_handle_command_x18( p, true, X18_COLOR_SPACE, 1, color_space, 0, 0); +} + + +int pslr_delete_buffer(pslr_handle_t h, int bufno) { + DPRINT("[C]\tpslr_delete_buffer(%X)\n", bufno); + ipslr_handle_t *p = (ipslr_handle_t *) h; + if (bufno < 0 || bufno > 9) { + return PSLR_PARAM; + } + CHECK(ipslr_write_args(p, 1, bufno)); + CHECK(command(p->fd, 0x02, 0x03, 0x04)); + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +int pslr_green_button(pslr_handle_t h) { + DPRINT("[C]\tpslr_green_button()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + CHECK(command(p->fd, 0x10, X10_GREEN, 0x00)); + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +int pslr_dust_removal(pslr_handle_t h) { + DPRINT("[C]\tpslr_dust_removal()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + CHECK(command(p->fd, 0x10, X10_DUST, 0x00)); + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +int pslr_bulb(pslr_handle_t h, bool on ) { + DPRINT("[C]\tpslr_bulb(%d)\n", on); + ipslr_handle_t *p = (ipslr_handle_t *) h; + CHECK(ipslr_write_args(p, 1, on ? 1 : 0)); + CHECK(command(p->fd, 0x10, X10_BULB, 0x04)); + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +int pslr_button_test(pslr_handle_t h, int bno, int arg) { + DPRINT("[C]\tpslr_button_test(%X, %X)\n", bno, arg); + int r; + ipslr_handle_t *p = (ipslr_handle_t *) h; + CHECK(ipslr_write_args(p, 1, arg)); + CHECK(command(p->fd, 0x10, bno, 4)); + r = get_status(p->fd); + DPRINT("\tbutton result code: 0x%x\n", r); + return PSLR_OK; +} + + +int pslr_ae_lock(pslr_handle_t h, bool lock) { + DPRINT("[C]\tpslr_ae_lock(%X)\n", lock); + ipslr_handle_t *p = (ipslr_handle_t *) h; + if (lock) { + CHECK(command(p->fd, 0x10, X10_AE_LOCK, 0x00)); + } else { + CHECK(command(p->fd, 0x10, X10_AE_UNLOCK, 0x00)); + } + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +int pslr_set_exposure_mode(pslr_handle_t h, pslr_exposure_mode_t mode) { + DPRINT("[C]\tpslr_set_exposure_mode(%X)\n", mode); + ipslr_handle_t *p = (ipslr_handle_t *) h; + + if (mode >= PSLR_EXPOSURE_MODE_MAX) { + return PSLR_PARAM; + } + return ipslr_handle_command_x18( p, true, X18_EXPOSURE_MODE, 2, 1, mode, 0); +} + +int pslr_buffer_open(pslr_handle_t h, int bufno, pslr_buffer_type buftype, int bufres) { + DPRINT("[C]\tpslr_buffer_open(#%X, type=%X, res=%X)\n", bufno, buftype, bufres); + pslr_buffer_segment_info info; + uint16_t bufs; + uint32_t buf_total = 0; + int i, j; + int ret; + int retry = 0; + int retry2 = 0; + + ipslr_handle_t *p = (ipslr_handle_t *) h; + + memset(&info, 0, sizeof (info)); + + CHECK(ipslr_status_full(p, &p->status)); + bufs = p->status.bufmask; + DPRINT("\tp->status.bufmask = %x\n", p->status.bufmask); + + if ( p->model->status_parser_function && (bufs & (1 << bufno)) == 0) { + // do not check this for limited support cameras + DPRINT("\tNo buffer data (%d)\n", bufno); + return PSLR_READ_ERROR; + } + + while (retry < 3) { + /* If we get response 0x82 from the camera, there is a + * desynch. We can recover by stepping through segment infos + * until we get the last one (b = 2). Retry up to 3 times. */ + ret = ipslr_select_buffer(p, bufno, buftype, bufres); + if (ret == PSLR_OK) { + break; + } + + retry++; + retry2 = 0; + /* Try up to 9 times to reach segment info type 2 (last + * segment) */ + do { + CHECK(ipslr_buffer_segment_info(p, &info)); + CHECK(ipslr_next_segment(p)); + DPRINT("\tRecover: b=%d\n", info.b); + } while (++retry2 < 10 && info.b != 2); + } + + if (retry == 3) { + return ret; + } + + i = 0; + j = 0; + do { + CHECK(ipslr_buffer_segment_info(p, &info)); + DPRINT("\t%d: Addr: 0x%X Len: %d(0x%08X) B=%d\n", i, info.addr, info.length, info.length, info.b); + if (info.b == 4) { + p->segments[j].offset = info.length; + } else if (info.b == 3) { + if (j == MAX_SEGMENTS) { + DPRINT("\tToo many segments.\n"); + return PSLR_NO_MEMORY; + } + p->segments[j].addr = info.addr; + p->segments[j].length = info.length; + j++; + } + CHECK(ipslr_next_segment(p)); + buf_total += info.length; + i++; + } while (i < 9 && info.b != 2); + p->segment_count = j; + p->offset = 0; + return PSLR_OK; +} + +uint32_t pslr_buffer_read(pslr_handle_t h, uint8_t *buf, uint32_t size) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + int i; + uint32_t pos = 0; + uint32_t seg_offs; + uint32_t addr; + uint32_t blksz; + int ret; + + DPRINT("[C]\tpslr_buffer_read(%d)\n", size); + + /* Find current segment */ + for (i = 0; i < p->segment_count; i++) { + if (p->offset < pos + p->segments[i].length) { + break; + } + pos += p->segments[i].length; + } + + seg_offs = p->offset - pos; + addr = p->segments[i].addr + seg_offs; + + /* Compute block size */ + blksz = size; + if (blksz > p->segments[i].length - seg_offs) { + blksz = p->segments[i].length - seg_offs; + } + if (blksz > BLKSZ) { + blksz = BLKSZ; + } + +// DPRINT("File offset %d segment: %d offset %d address 0x%x read size %d\n", p->offset, +// i, seg_offs, addr, blksz); + + ret = ipslr_download(p, addr, blksz, buf); + if (ret != PSLR_OK) { + return 0; + } + p->offset += blksz; + return blksz; +} + +uint32_t pslr_fullmemory_read(pslr_handle_t h, uint8_t *buf, uint32_t offset, uint32_t size) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + int ret; + + DPRINT("[C]\tpslr_fullmemory_read(%d)\n", size); + + ret = ipslr_download(p, offset, size, buf); + if (ret != PSLR_OK) { + return 0; + } + return size; +} + +uint32_t pslr_buffer_get_size(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + int i; + uint32_t len = 0; + for (i = 0; i < p->segment_count; i++) { + len += p->segments[i].length; + } + DPRINT("\tbuffer get size:%d\n",len); + return len; +} + +void pslr_buffer_close(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + memset(&p->segments[0], 0, sizeof (p->segments)); + p->offset = 0; + p->segment_count = 0; +} + +int pslr_select_af_point(pslr_handle_t h, uint32_t point) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return ipslr_handle_command_x18( p, true, X18_AF_POINT, 1, point, 0, 0); +} + +int pslr_get_model_max_jpeg_stars(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->max_jpeg_stars; +} + +int pslr_get_model_status_buffer_size(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->status_buffer_size; +} + +int pslr_get_model_jpeg_property_levels(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->jpeg_property_levels; +} + +int *pslr_get_model_jpeg_resolutions(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->jpeg_resolutions; +} + +bool pslr_get_model_only_limited(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->status_buffer_size == 0 && !p->model->status_parser_function; +} + +bool pslr_get_model_has_jpeg_hue(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->has_jpeg_hue; +} + +bool pslr_get_model_need_exposure_conversion(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->need_exposure_mode_conversion; +} + +int pslr_get_model_fastest_shutter_speed(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->fastest_shutter_speed; +} + +int pslr_get_model_base_iso_min(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->base_iso_min; +} + +int pslr_get_model_base_iso_max(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->base_iso_max; +} + +int pslr_get_model_extended_iso_min(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->extended_iso_min; +} + +int pslr_get_model_extended_iso_max(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->extended_iso_max; +} + +pslr_jpeg_image_tone_t pslr_get_model_max_supported_image_tone(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->max_supported_image_tone; +} + +int pslr_get_model_af_point_num(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->af_point_num; +} + +bool pslr_get_model_old_bulb_mode(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->old_bulb_mode; +} + +bool pslr_get_model_bufmask_single(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return p->model->bufmask_single; +} + +bool pslr_get_model_has_settings_parser(pslr_handle_t h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + char cameraid[10]; + sprintf(cameraid, "0x%0x", p->model->id); + int def_num; + setting_file_process(cameraid, &def_num); + return def_num>0; +} + +const char *pslr_camera_name(pslr_handle_t h) { + DPRINT("[C]\tpslr_camera_name()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + int ret; + if (p->id == 0) { + ret = ipslr_identify(p); + if (ret != PSLR_OK) { + return NULL; + } + } + if (p->model) { + return p->model->name; + } else { + static char unk_name[256]; + snprintf(unk_name, sizeof (unk_name), "ID#%x", p->id); + unk_name[sizeof (unk_name) - 1] = '\0'; + return unk_name; + } +} + +pslr_buffer_type pslr_get_jpeg_buffer_type(pslr_handle_t h, int jpeg_stars) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + return 2 + get_hw_jpeg_quality( p->model, jpeg_stars ); +} + +static int ipslr_set_mode(ipslr_handle_t *p, uint32_t mode) { + DPRINT("[C]\t\tipslr_set_mode(0x%x)\n", mode); + CHECK(ipslr_write_args(p, 1, mode)); + CHECK(command(p->fd, 0, 0, 4)); + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +static int ipslr_cmd_00_09(ipslr_handle_t *p, uint32_t mode) { + DPRINT("[C]\t\tipslr_cmd_00_09(0x%x)\n", mode); + CHECK(ipslr_write_args(p, 1, mode)); + CHECK(command(p->fd, 0, 9, 4)); + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +static int ipslr_cmd_10_0a(ipslr_handle_t *p, uint32_t mode) { + DPRINT("[C]\t\tipslr_cmd_10_0a(0x%x)\n", mode); + CHECK(ipslr_write_args(p, 1, mode)); + CHECK(command(p->fd, 0x10, X10_CONNECT, 4)); + CHECK(get_status(p->fd)); + return PSLR_OK; +} + +static int ipslr_cmd_00_05(ipslr_handle_t *p) { + DPRINT("[C]\t\tipslr_cmd_00_05()\n"); + int n; + uint8_t buf[0xb8]; + CHECK(command(p->fd, 0x00, 0x05, 0x00)); + n = get_result(p->fd); + if (n != 0xb8) { + DPRINT("\tonly got %d bytes\n", n); + return PSLR_READ_ERROR; + } + CHECK(read_result(p->fd, buf, n)); + return PSLR_OK; +} + +static int ipslr_status(ipslr_handle_t *p, uint8_t *buf) { + int n; + DPRINT("[C]\t\tipslr_status()\n"); + CHECK(command(p->fd, 0, 1, 0)); + n = get_result(p->fd); + if (n == 16 || n == 28) { + return read_result(p->fd, buf, n); + } else { + return PSLR_READ_ERROR; + } +} + +static int ipslr_status_full(ipslr_handle_t *p, pslr_status *status) { + int n; + DPRINT("[C]\t\tipslr_status_full()\n"); + CHECK(command(p->fd, 0, 8, 0)); + n = get_result(p->fd); + DPRINT("\tread %d bytes\n", n); + int expected_bufsize = p->model != NULL ? p->model->status_buffer_size : 0; + if ( p->model == NULL ) { + DPRINT("\tp model null\n"); + } + DPRINT("\texpected_bufsize: %d\n",expected_bufsize); + + CHECK(read_result(p->fd, p->status_buffer, n > MAX_STATUS_BUF_SIZE ? MAX_STATUS_BUF_SIZE: n)); + + if ( expected_bufsize == 0 || !p->model->status_parser_function ) { + // limited support only + return PSLR_OK; + } else if ( expected_bufsize > 0 && expected_bufsize != n ) { + DPRINT("\tWaiting for %d bytes but got %d\n", expected_bufsize, n); + return PSLR_READ_ERROR; + } else { + // everything OK + (*p->model->status_parser_function)(p, status); + if ( p->model->need_exposure_mode_conversion ) { + status->exposure_mode = exposure_mode_conversion( status->exposure_mode ); + } + if ( p->model->bufmask_command ) { + uint32_t x, y; + int ret; + + ret = pslr_get_buffer_status(p, &x, &y); + if (ret != PSLR_OK) { + return ret; + } + status->bufmask = x; + } + return PSLR_OK; + } +} + +// fullpress: take picture +// halfpress: autofocus +static int ipslr_press_shutter(ipslr_handle_t *p, bool fullpress) { + DPRINT("[C]\t\tipslr_press_shutter(fullpress = %s)\n", (fullpress ? "true" : "false")); + int r; + CHECK(ipslr_status_full(p, &p->status)); + DPRINT("\t\tbefore: mask=0x%x\n", p->status.bufmask); + CHECK(ipslr_write_args(p, 1, fullpress ? 2 : 1)); + CHECK(command(p->fd, 0x10, X10_SHUTTER, 0x04)); + r = get_status(p->fd); + DPRINT("\t\tshutter result code: 0x%x\n", r); + return PSLR_OK; +} + +static int ipslr_select_buffer(ipslr_handle_t *p, int bufno, pslr_buffer_type buftype, int bufres) { + int r; + DPRINT("\t\tSelect buffer %d,%d,%d,0\n", bufno, buftype, bufres); + if ( !p->model->old_scsi_command ) { + CHECK(ipslr_write_args(p, 4, bufno, buftype, bufres, 0)); + CHECK(command(p->fd, 0x02, 0x01, 0x10)); + } else { + /* older cameras: 3-arg select buffer */ + CHECK(ipslr_write_args(p, 4, bufno, buftype, bufres)); + CHECK(command(p->fd, 0x02, 0x01, 0x0c)); + } + r = get_status(p->fd); + if (r != 0) { + return PSLR_COMMAND_ERROR; + } + return PSLR_OK; +} + +static int ipslr_next_segment(ipslr_handle_t *p) { + DPRINT("[C]\t\tipslr_next_segment()\n"); + int r; + CHECK(ipslr_write_args(p, 1, 0)); + CHECK(command(p->fd, 0x04, 0x01, 0x04)); + usleep(100000); // needed !! 100 too short, 1000 not short enough for PEF + r = get_status(p->fd); + if (r == 0) { + return PSLR_OK; + } + return PSLR_COMMAND_ERROR; +} + +static int ipslr_buffer_segment_info(ipslr_handle_t *p, pslr_buffer_segment_info *pInfo) { + DPRINT("[C]\t\tipslr_buffer_segment_info()\n"); + uint8_t buf[16]; + uint32_t n; + int num_try = 20; + + pInfo->b = 0; + while ( pInfo->b == 0 && --num_try > 0 ) { + CHECK(command(p->fd, 0x04, 0x00, 0x00)); + n = get_result(p->fd); + if (n != 16) { + return PSLR_READ_ERROR; + } + CHECK(read_result(p->fd, buf, 16)); + + // use the right function based on the endian. + get_uint32_func get_uint32_func_ptr; + if (p->model->is_little_endian) { + get_uint32_func_ptr = get_uint32_le; + } else { + get_uint32_func_ptr = get_uint32_be; + } + + pInfo->a = (*get_uint32_func_ptr)(&buf[0]); + pInfo->b = (*get_uint32_func_ptr)(&buf[4]); + pInfo->addr = (*get_uint32_func_ptr)(&buf[8]); + pInfo->length = (*get_uint32_func_ptr)(&buf[12]); + if ( pInfo-> b == 0 ) { + DPRINT("\tWaiting for segment info addr: 0x%x len: %d B=%d\n", pInfo->addr, pInfo->length, pInfo->b); + sleep_sec( 0.1 ); + } + } + return PSLR_OK; +} + +static int ipslr_download(ipslr_handle_t *p, uint32_t addr, uint32_t length, uint8_t *buf) { + DPRINT("[C]\t\tipslr_download(address = 0x%X, length = %d)\n", addr, length); + uint8_t downloadCmd[8] = {0xf0, 0x24, 0x06, 0x02, 0x00, 0x00, 0x00, 0x00}; + uint32_t block; + int n; + int retry; + uint32_t length_start = length; + + retry = 0; + while (length > 0) { + if (length > BLKSZ) { + block = BLKSZ; + } else { + block = length; + } + + //DPRINT("Get 0x%x bytes from 0x%x\n", block, addr); + CHECK(ipslr_write_args(p, 2, addr, block)); + CHECK(command(p->fd, 0x06, 0x00, 0x08)); + get_status(p->fd); + + n = scsi_read(p->fd, downloadCmd, sizeof (downloadCmd), buf, block); + get_status(p->fd); + + if (n < 0) { + if (retry < BLOCK_RETRY) { + retry++; + continue; + } + return PSLR_READ_ERROR; + } + buf += n; + length -= n; + addr += n; + retry = 0; + if (progress_callback) { + progress_callback(length_start - length, length_start); + } + } + return PSLR_OK; +} + +static int ipslr_identify(ipslr_handle_t *p) { + DPRINT("[C]\t\tipslr_identify()\n"); + uint8_t idbuf[8]; + int n; + + CHECK(command(p->fd, 0, 4, 0)); + n = get_result(p->fd); + if (n != 8) { + return PSLR_READ_ERROR; + } + CHECK(read_result(p->fd, idbuf, 8)); + // Check the camera endian, which affect ID + if (idbuf[0] == 0) { + p->id = get_uint32_be(&idbuf[0]); + } else { + p->id = get_uint32_le(&idbuf[0]); + } + DPRINT("\tid of the camera: %x\n", p->id); + p->model = find_model_by_id( p->id ); + return PSLR_OK; +} + +int pslr_read_datetime(pslr_handle_t *h, int *year, int *month, int *day, int *hour, int *min, int *sec) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + DPRINT("[C]\t\tipslr_read_datetime()\n"); + uint8_t idbuf[800]; + int n; + + CHECK(command(p->fd, 0x20, 0x06, 0)); + n = get_result(p->fd); + DPRINT("[C]\t\tipslr_read_datetime() bytes: %d\n",n); + if (n!= 24) { + return PSLR_READ_ERROR; + } + CHECK(read_result(p->fd, idbuf, n)); + get_uint32_func get_uint32_func_ptr; + + if (p->model->is_little_endian) { + get_uint32_func_ptr = get_uint32_le; + } else { + get_uint32_func_ptr = get_uint32_be; + } + *year = (*get_uint32_func_ptr)(idbuf); + *month = (*get_uint32_func_ptr)(idbuf+4); + *day = (*get_uint32_func_ptr)(idbuf+8); + *hour = (*get_uint32_func_ptr)(idbuf+12); + *min = (*get_uint32_func_ptr)(idbuf+16); + *sec = (*get_uint32_func_ptr)(idbuf+20); + return PSLR_OK; +} + +int pslr_read_dspinfo(pslr_handle_t *h, char* firmware) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + DPRINT("[C]\t\tipslr_read_dspinfo()\n"); + uint8_t buf[4]; + int n; + + CHECK(command(p->fd, 0x01, 0x01, 0)); + n = get_result(p->fd); + DPRINT("[C]\t\tipslr_read_dspinfo() bytes: %d\n",n); + if (n!= 4) { + return PSLR_READ_ERROR; + } + CHECK(read_result(p->fd, buf, n)); + if (p->model->is_little_endian) { + snprintf( firmware, 16, "%d.%02d.%02d.%02d", buf[3], buf[2], buf[1], buf[0]); + } else { + snprintf( firmware, 16, "%d.%02d.%02d.%02d", buf[0], buf[1], buf[2], buf[3]); + } + return PSLR_OK; +} + +int pslr_read_setting(pslr_handle_t *h, int offset, uint32_t *value) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + DPRINT("[C]\t\tipslr_read_setting(%d)\n", offset); + uint8_t buf[4]; + int n; + + CHECK(ipslr_write_args(p, 1, offset)); + CHECK(command(p->fd, 0x20, 0x09, 4)); + n = get_result(p->fd); + DPRINT("[C]\t\tipslr_read_setting() bytes: %d\n",n); + if (n!= 4) { + return PSLR_READ_ERROR; + } + CHECK(read_result(p->fd, buf, n)); + get_uint32_func get_uint32_func_ptr; + if (p->model->is_little_endian) { + get_uint32_func_ptr = get_uint32_le; + } else { + get_uint32_func_ptr = get_uint32_be; + } + *value = (*get_uint32_func_ptr)(buf); + return PSLR_OK; +} + +int pslr_write_setting(pslr_handle_t *h, int offset, uint32_t value) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + DPRINT("[C]\t\tipslr_write_setting(%d)=%d\n", offset, value); + CHECK(ipslr_cmd_00_09(p, 1)); + CHECK(ipslr_write_args(p, 2, offset, value)); + CHECK(command(p->fd, 0x20, 0x08, 8)); + CHECK(ipslr_cmd_00_09(p, 2)); + return PSLR_OK; +} + +int pslr_write_setting_by_name(pslr_handle_t *h, char *name, uint32_t value) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + int def_num; + char cameraid[10]; + sprintf(cameraid, "0x%0x", p->model->id); + // printf("cameraid: %s\n", cameraid); + pslr_setting_def_t *defs = setting_file_process(cameraid, &def_num); + pslr_setting_def_t *setting_def = find_setting_by_name(defs, def_num, name); + if (setting_def != NULL) { + if (strcmp(setting_def->type,"boolean") == 0) { + pslr_write_setting(h, setting_def->address, value); + } else if (strcmp(setting_def->type, "uint16") == 0) { + pslr_write_setting(h, setting_def->address, value >> 8); + pslr_write_setting(h, setting_def->address+1, value & 0xff); + } + } + return PSLR_OK; +} + +bool pslr_has_setting_by_name(pslr_handle_t *h, char *name) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + int def_num; + char cameraid[10]; + sprintf(cameraid, "0x%0x", p->model->id); + pslr_setting_def_t *defs = setting_file_process(cameraid, &def_num); + pslr_setting_def_t *setting_def = find_setting_by_name(defs, def_num, name); +// printf("%d %d\n", def_num, (setting_def != NULL)); + return (setting_def != NULL); +} + + +int pslr_read_settings(pslr_handle_t *h) { + ipslr_handle_t *p = (ipslr_handle_t *) h; + int index=0; + uint32_t value; + int ret; + while (indexsettings_buffer[index] = value; + ++index; + } + return PSLR_OK; +} + +int pslr_get_settings_json(pslr_handle_t h, pslr_settings *ps) { + DPRINT("[C]\tpslr_get_settings_json()\n"); + ipslr_handle_t *p = (ipslr_handle_t *) h; + memset( ps, 0, sizeof( pslr_settings )); + CHECK(pslr_read_settings(h)); + char cameraid[20]; + sprintf(cameraid, "0x%05x", p->id); + DPRINT("cameraid:%s\n", cameraid); + ipslr_settings_parser_json(cameraid, p, &p->settings); + memcpy(ps, &p->settings, sizeof (pslr_settings)); + return PSLR_OK; +} + + +static int _ipslr_write_args(uint8_t cmd_2, ipslr_handle_t *p, int n, ...) { + va_list ap; + uint8_t cmd[8] = {0xf0, 0x4f, cmd_2, 0x00, 0x00, 0x00, 0x00, 0x00}; + uint8_t buf[4 * n]; + FDTYPE fd = p->fd; + int res; + int i; + uint32_t data; + + // print debug info + va_start(ap, n); + DPRINT("[C]\t\t\t_ipslr_write_args(cmd_2 = 0x%x, {", cmd_2); + for (i = 0; i < n; i++) { + if (i > 0) { + DPRINT(", "); + } + DPRINT("0x%X", va_arg(ap, uint32_t)); + } + DPRINT("})\n"); + va_end(ap); + + va_start(ap, n); + if ( p->model && !p->model->old_scsi_command ) { + /* All at once */ + for (i = 0; i < n; i++) { + data = va_arg(ap, uint32_t); + + if (p->model == NULL || !p->model->is_little_endian) { + set_uint32_be(data, &buf[4*i]); + } else { + set_uint32_le(data, &buf[4*i]); + } + } + cmd[4] = 4 * n; + + + res = scsi_write(fd, cmd, sizeof (cmd), buf, 4 * n); + if (res != PSLR_OK) { + va_end(ap); + return res; + } + } else { + /* Arguments one by one */ + for (i = 0; i < n; i++) { + data = va_arg(ap, uint32_t); + + if (p->model == NULL || !p->model->is_little_endian) { + set_uint32_be(data, &buf[0]); + } else { + set_uint32_le(data, &buf[0]); + } + + cmd[4] = 4; + cmd[2] = i * 4; + res = scsi_write(fd, cmd, sizeof (cmd), buf, 4); + if (res != PSLR_OK) { + va_end(ap); + return res; + } + } + } + va_end(ap); + return PSLR_OK; +} + +static int command(FDTYPE fd, int a, int b, int c) { + DPRINT("[C]\t\t\tcommand(fd=%x, %x, %x, %x)\n", fd, a, b, c); + uint8_t cmd[8] = {0xf0, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; + + cmd[2] = a; + cmd[3] = b; + cmd[4] = c; + + CHECK(scsi_write(fd, cmd, sizeof (cmd), 0, 0)); + return PSLR_OK; +} + +static int read_status(FDTYPE fd, uint8_t *buf) { + uint8_t cmd[8] = {0xf0, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; + int n; + + n = scsi_read(fd, cmd, 8, buf, 8); + if (n != 8) { + DPRINT("\tOnly got %d bytes\n", n); + /* The *ist DS doesn't know to return the correct number of + read bytes for this command, so return PSLR_OK instead of + PSLR_READ_ERROR */ + return PSLR_OK; + } + return PSLR_OK; +} + +static int get_status(FDTYPE fd) { + DPRINT("[C]\t\t\tget_status(0x%x)\n", fd); + + uint8_t statusbuf[8]; + memset(statusbuf,0,8); + + while (1) { + CHECK(read_status(fd, statusbuf)); + DPRINT("[R]\t\t\t\t => ERROR: 0x%02X\n", statusbuf[7]); + if (statusbuf[7] != 0x01) { + break; + } + usleep(POLL_INTERVAL); + } + if (statusbuf[7] != 0) { + DPRINT("\tERROR: 0x%x\n", statusbuf[7]); + } + return statusbuf[7]; +} + +static int get_result(FDTYPE fd) { + DPRINT("[C]\t\t\tget_result(0x%x)\n", fd); + uint8_t statusbuf[8]; + while (1) { + //DPRINT("read out status\n"); + CHECK(read_status(fd, statusbuf)); + //hexdump_debug(statusbuf, 8); + if (statusbuf[6] == 0x01) { + break; + } + //DPRINT("Waiting for result\n"); + //hexdump_debug(statusbuf, 8); + usleep(POLL_INTERVAL); + } + if ((statusbuf[7] & 0xff) != 0) { + DPRINT("\tERROR: 0x%x\n", statusbuf[7]); + return -1; + } else { + DPRINT("[R]\t\t\t\t => [%02X %02X %02X %02X]\n", + statusbuf[0], statusbuf[1], statusbuf[2], statusbuf[3]); + } + return statusbuf[0] | statusbuf[1] << 8 | statusbuf[2] << 16 | statusbuf[3] << 24; +} + +static int read_result(FDTYPE fd, uint8_t *buf, uint32_t n) { + DPRINT("[C]\t\t\tread_result(0x%x, size=%d)\n", fd, n); + uint8_t cmd[8] = {0xf0, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; + int r; + int i; + set_uint32_le(n, &cmd[4]); + r = scsi_read(fd, cmd, sizeof (cmd), buf, n); + if (r != n) { + return PSLR_READ_ERROR; + } else { + // Print first 32 bytes of the result. + DPRINT("[R]\t\t\t\t => ["); + for (i = 0; i < n && i < 32; ++i) { + if (i > 0) { + if (i % 16 == 0) { + DPRINT("\n\t\t\t\t "); + } else if ((i%4) == 0 ) { + DPRINT(" "); + } + DPRINT(" "); + } + DPRINT("%02X", buf[i]); + } + if (n > 32) { + DPRINT(" ... (%d bytes more)", (n-32)); + } + DPRINT("]\n"); + } + return PSLR_OK; +} + +char *copyright() { + char *ret = malloc(sizeof(char)*1024); + sprintf(ret, "Copyright (C) 2011-2019 Andras Salamon\n\ +\n\ +Based on:\n\ +pslr-shoot (C) 2009 Ramiro Barreiro\n\ +PK-Remote (C) 2008 Pontus Lidman \n\n"); + return ret; +} + +void write_debug( const char* message, ... ) { + + // Be sure debug is really on as DPRINT doesn't know + // + if ( !debug ) { + return; + } + + // Write to stderr + // + va_list argp; + va_start(argp, message); + vfprintf( stderr, message, argp ); + va_end(argp); + return; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr.h new file mode 100644 index 00000000..df9c196f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr.h @@ -0,0 +1,237 @@ +/* + pkTriggerCord + Copyright (C) 2011-2019 Andras Salamon + Remote control of Pentax DSLR cameras. + + Support for K200D added by Jens Dreyer 04/2011 + Support for K-r added by Vincenc Podobnik 06/2011 + Support for K-30 added by Camilo Polymeris 09/2012 + Support for K-01 added by Ethan Queen 01/2013 + Support for K-3 added by Tao Wang 01/2016 + + based on: + + PK-Remote + Remote control of Pentax DSLR cameras. + Copyright (C) 2008 Pontus Lidman + + PK-Remote for Windows + Copyright (C) 2010 Tomasz Kos + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + and GNU Lesser General Public License + along with this program. If not, see . + */ + +#ifndef PSLR_H +#define PSLR_H + +#include "pslr_enum.h" +#include "pslr_scsi.h" +#include "pslr_model.h" + +#define PSLR_LIGHT_METER_AE_LOCK 0x8 + +typedef enum { + PSLR_BUF_PEF, + PSLR_BUF_DNG, + PSLR_BUF_JPEG_MAX, + PSLR_BUF_JPEG_MAX_M1, + PSLR_BUF_JPEG_MAX_M2, + PSLR_BUF_JPEG_MAX_M3, + PSLR_BUF_PREVIEW = 8, + PSLR_BUF_THUMBNAIL = 9 // 7 works also +} pslr_buffer_type; + +typedef enum { + USER_FILE_FORMAT_PEF, + USER_FILE_FORMAT_DNG, + USER_FILE_FORMAT_JPEG, + USER_FILE_FORMAT_MAX +} user_file_format; + +typedef struct { + user_file_format uff; + const char *file_format_name; + const char *extension; +} user_file_format_t; + +extern user_file_format_t file_formats[3]; + +user_file_format_t *get_file_format_t( user_file_format uff ); + +// OFF-AUTO: Off-Auto-Aperture +typedef enum { + PSLR_EXPOSURE_MODE_P = 0, + PSLR_EXPOSURE_MODE_GREEN = 1, +// PSLR_EXPOSURE_MODE_HYP = 2, +// PSLR_EXPOSURE_MODE_AUTO_PICT = 1, +// PSLR_EXPOSURE_MODE_GREEN = 3, maybe 1 is AUTO_PICT + PSLR_EXPOSURE_MODE_TV = 4, + PSLR_EXPOSURE_MODE_AV = 5, +// PSLR_EXPOSURE_MODE_TV_SHIFT = 6, //? +// PSLR_EXPOSURE_MODE_AV_SHIFT = 7, //? + PSLR_EXPOSURE_MODE_M = 8, + PSLR_EXPOSURE_MODE_B = 9, + PSLR_EXPOSURE_MODE_AV_OFFAUTO = 10, + PSLR_EXPOSURE_MODE_M_OFFAUTO = 11, + PSLR_EXPOSURE_MODE_B_OFFAUTO = 12, + PSLR_EXPOSURE_MODE_TAV = 13, // ? + PSLR_EXPOSURE_MODE_SV = 15, + PSLR_EXPOSURE_MODE_X = 16, // ? + PSLR_EXPOSURE_MODE_MAX = 17 +} pslr_exposure_mode_t; + +typedef enum { + PSLR_GUI_EXPOSURE_MODE_GREEN, + PSLR_GUI_EXPOSURE_MODE_P, + PSLR_GUI_EXPOSURE_MODE_SV, + PSLR_GUI_EXPOSURE_MODE_TV, + PSLR_GUI_EXPOSURE_MODE_AV, + PSLR_GUI_EXPOSURE_MODE_TAV, + PSLR_GUI_EXPOSURE_MODE_M, + PSLR_GUI_EXPOSURE_MODE_B, + PSLR_GUI_EXPOSURE_MODE_X, + PSLR_GUI_EXPOSURE_MODE_MAX +} pslr_gui_exposure_mode_t; + +typedef void *pslr_handle_t; + +typedef struct { + uint32_t a; + uint32_t b; + uint32_t addr; + uint32_t length; +} pslr_buffer_segment_info; + +typedef void (*pslr_progress_callback_t)(uint32_t current, uint32_t total); + +void sleep_sec(double sec); + +pslr_handle_t pslr_init(char *model, char *device); +int pslr_connect(pslr_handle_t h); +int pslr_disconnect(pslr_handle_t h); +int pslr_shutdown(pslr_handle_t h); +const char *pslr_model(uint32_t id); + +int pslr_shutter(pslr_handle_t h); +int pslr_focus(pslr_handle_t h); + +int pslr_get_status(pslr_handle_t h, pslr_status *sbuf); +int pslr_get_status_buffer(pslr_handle_t h, uint8_t *st_buf); +int pslr_get_settings(pslr_handle_t h, pslr_settings *ps); +int pslr_get_settings_json(pslr_handle_t h, pslr_settings *ps); +int pslr_get_settings_buffer(pslr_handle_t h, uint8_t *st_buf); + +char *collect_status_info( pslr_handle_t h, pslr_status status ); +char *collect_settings_info( pslr_handle_t h, pslr_settings settings ); + +int pslr_get_buffer(pslr_handle_t h, int bufno, pslr_buffer_type type, int resolution, + uint8_t **pdata, uint32_t *pdatalen); + +int pslr_set_progress_callback(pslr_handle_t h, pslr_progress_callback_t cb, + uintptr_t user_data); + +int pslr_set_shutter(pslr_handle_t h, pslr_rational_t value); +int pslr_set_aperture(pslr_handle_t h, pslr_rational_t value); +int pslr_set_iso(pslr_handle_t h, uint32_t value, uint32_t auto_min_value, uint32_t auto_max_value); +int pslr_set_ec(pslr_handle_t h, pslr_rational_t value); + +int pslr_set_white_balance(pslr_handle_t h, pslr_white_balance_mode_t wb_mode); +int pslr_set_white_balance_adjustment(pslr_handle_t h, pslr_white_balance_mode_t wb_mode, uint32_t wbadj_mg, uint32_t wbadj_ba); +int pslr_set_flash_mode(pslr_handle_t h, pslr_flash_mode_t value); +int pslr_set_flash_exposure_compensation(pslr_handle_t h, pslr_rational_t value); +int pslr_set_drive_mode(pslr_handle_t h, pslr_drive_mode_t drive_mode); +int pslr_set_af_mode(pslr_handle_t h, pslr_af_mode_t af_mode); +int pslr_set_af_point_sel(pslr_handle_t h, pslr_af_point_sel_t af_point_sel); +int pslr_set_ae_metering_mode(pslr_handle_t h, pslr_ae_metering_t ae_metering_mode); +int pslr_set_color_space(pslr_handle_t h, pslr_color_space_t color_space); + +int pslr_set_jpeg_stars(pslr_handle_t h, int jpeg_stars); +int pslr_set_jpeg_resolution(pslr_handle_t h, int megapixel); +int pslr_set_jpeg_image_tone(pslr_handle_t h, pslr_jpeg_image_tone_t image_mode); + +int pslr_set_jpeg_sharpness(pslr_handle_t h, int32_t sharpness); +int pslr_set_jpeg_contrast(pslr_handle_t h, int32_t contrast); +int pslr_set_jpeg_saturation(pslr_handle_t h, int32_t saturation); +int pslr_set_jpeg_hue(pslr_handle_t h, int32_t hue); + +int pslr_set_image_format(pslr_handle_t h, pslr_image_format_t format); +int pslr_set_raw_format(pslr_handle_t h, pslr_raw_format_t format); +int pslr_set_user_file_format(pslr_handle_t h, user_file_format uff); +user_file_format get_user_file_format( pslr_status *st ); + +int pslr_delete_buffer(pslr_handle_t h, int bufno); + +int pslr_green_button(pslr_handle_t h); + +int pslr_button_test(pslr_handle_t h, int bno, int arg); + +int pslr_ae_lock(pslr_handle_t h, bool lock); + +int pslr_dust_removal(pslr_handle_t h); + +int pslr_bulb(pslr_handle_t h, bool on ); + +int pslr_buffer_open(pslr_handle_t h, int bufno, pslr_buffer_type type, int resolution); +uint32_t pslr_buffer_read(pslr_handle_t h, uint8_t *buf, uint32_t size); +uint32_t pslr_fullmemory_read(pslr_handle_t h, uint8_t *buf, uint32_t offset, uint32_t size); +void pslr_buffer_close(pslr_handle_t h); +uint32_t pslr_buffer_get_size(pslr_handle_t h); + +int pslr_set_exposure_mode(pslr_handle_t h, pslr_exposure_mode_t mode); +int pslr_select_af_point(pslr_handle_t h, uint32_t point); + +const char *pslr_camera_name(pslr_handle_t h); +int pslr_get_model_max_jpeg_stars(pslr_handle_t h); +int pslr_get_model_jpeg_property_levels(pslr_handle_t h); +int pslr_get_model_status_buffer_size(pslr_handle_t h); +int pslr_get_model_fastest_shutter_speed(pslr_handle_t h); +int pslr_get_model_base_iso_min(pslr_handle_t h); +int pslr_get_model_base_iso_max(pslr_handle_t h); +int pslr_get_model_extended_iso_min(pslr_handle_t h); +int pslr_get_model_extended_iso_max(pslr_handle_t h); +int *pslr_get_model_jpeg_resolutions(pslr_handle_t h); +bool pslr_get_model_only_limited(pslr_handle_t h); +bool pslr_get_model_has_jpeg_hue(pslr_handle_t h); +bool pslr_get_model_need_exposure_conversion(pslr_handle_t h); +pslr_jpeg_image_tone_t pslr_get_model_max_supported_image_tone(pslr_handle_t h); +bool pslr_get_model_has_settings_parser(pslr_handle_t h); +int pslr_get_model_af_point_num(pslr_handle_t h); +bool pslr_get_model_old_bulb_mode(pslr_handle_t h); +bool pslr_get_model_bufmask_single(pslr_handle_t h); + +pslr_buffer_type pslr_get_jpeg_buffer_type(pslr_handle_t h, int quality); +int pslr_get_jpeg_resolution(pslr_handle_t h, int hwres); + +int pslr_read_datetime(pslr_handle_t *h, int *year, int *month, int *day, int *hour, int *min, int *sec); + +int pslr_read_dspinfo(pslr_handle_t *h, char *firmware); + +int pslr_read_setting(pslr_handle_t *h, int offset, uint32_t *value); +int pslr_write_setting(pslr_handle_t *h, int offset, uint32_t value); +int pslr_write_setting_by_name(pslr_handle_t *h, char *name, uint32_t value); +bool pslr_has_setting_by_name(pslr_handle_t *h, char *name); +int pslr_read_settings(pslr_handle_t *h); + +pslr_gui_exposure_mode_t exposure_mode_conversion( pslr_exposure_mode_t exp ); +char *format_rational( pslr_rational_t rational, char * fmt ); + +int pslr_test( pslr_handle_t h, bool cmd9_wrap, int subcommand, int argnum, int arg1, int arg2, int arg3, int arg4); + +char *copyright(void); + +void write_debug( const char* message, ... ); + +int debug_onoff(ipslr_handle_t *p, char debug_mode); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_enum.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_enum.c new file mode 100644 index 00000000..7c2cf0dc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_enum.c @@ -0,0 +1,348 @@ +/* + pkTriggerCord + Copyright (C) 2011-2019 Andras Salamon + Remote control of Pentax DSLR cameras. + + Support for K200D added by Jens Dreyer 04/2011 + Support for K-r added by Vincenc Podobnik 06/2011 + Support for K-30 added by Camilo Polymeris 09/2012 + Support for K-01 added by Ethan Queen 01/2013 + Support for K-3 added by Tao Wang 01/2016 + + based on: + + PK-Remote + Remote control of Pentax DSLR cameras. + Copyright (C) 2008 Pontus Lidman + + PK-Remote for Windows + Copyright (C) 2010 Tomasz Kos + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + and GNU Lesser General Public License + along with this program. If not, see . + */ +#include "pslr_enum.h" + +#include +#include +#include +#include + +const char* pslr_color_space_str[PSLR_COLOR_SPACE_MAX] = { + "sRGB", + "AdobeRGB" +}; + +const char* pslr_af_mode_str[PSLR_AF_MODE_MAX] = { + "MF", + "AF.S", + "AF.C", + "AF.A" +}; + +const char* pslr_ae_metering_str[PSLR_AE_METERING_MAX] = { + "Multi", + "Center", + "Spot" +}; + +const char* pslr_flash_mode_str[PSLR_FLASH_MODE_MAX] = { + "Manual", + "Manual-RedEye", + "Slow", + "Slow-RedEye", + "TrailingCurtain", + "Auto", + "Auto-RedEye", + "TrailingCurtain", /* maybe in manual mode?? */ + "Wireless" +}; + +const char* pslr_drive_mode_str[PSLR_DRIVE_MODE_MAX] = { + "Single", /* Bracketing also returns Single */ + "Continuous-HI", + "SelfTimer-12", + "SelfTimer-2", + "Remote", + "Remote-3", + "Continuous-LO" +}; + +const char* pslr_af_point_sel_str[PSLR_AF_POINT_SEL_MAX] = { + "Auto-5", + "Select", + "Spot", + "Auto-11", + "Expanded" +}; + +const char* pslr_af11_point_str[11] = { + "topleft", + "topmiddle", + "topright", + "farleft", + "middleleft", + "middlemiddle", + "middleright", + "farright", + "bottomleft", + "bottommiddle", + "bottomright" +}; + +const char* pslr_jpeg_image_tone_str[PSLR_JPEG_IMAGE_TONE_MAX] = { + "Natural", + "Bright", + "Portrait", + "Landscape", + "Vibrant", + "Monochrome", + "Muted", + "ReversalFilm", + "BleachBypass", + "Radiant", + "CrossProcessing", + "Flat", + "Auto" +}; + +const char* pslr_white_balance_mode_str[PSLR_WHITE_BALANCE_MODE_MAX] = { + "Auto", + "Daylight", + "Shade", + "Cloudy", + "Fluorescent_D", + "Fluorescent_N", + "Fluorescent_W", + "Tungsten", + "Flash", + "Manual", /* sometimes called Manual1 */ + "Manual2", + "Manual3", + "Kelvin1", + "Kelvin2", + "Kelvin3", + "Fluorescent_L", + "CTE", + "MultiAuto" +}; + +const char* pslr_custom_ev_steps_str[PSLR_CUSTOM_EV_STEPS_MAX] = { + "1/2", + "1/3" +}; + +const char* pslr_custom_sensitivity_steps_str[PSLR_CUSTOM_SENSITIVITY_STEPS_MAX] = { + "1", + "As" +}; + +const char* pslr_image_format_str[PSLR_IMAGE_FORMAT_MAX] = { + "JPEG", + "RAW", + "RAW+" +}; + +const char* pslr_raw_format_str[PSLR_RAW_FORMAT_MAX] = { + "PEF", + "DNG" +}; + +const char* pslr_scene_mode_str[PSLR_SCENE_MODE_MAX] = { + "NONE", + "HISPEED", + "DOF", + "MTF", + "STANDARD", + "PORTRAIT", + "LANDSCAPE", + "MACRO", + "SPORT", + "NIGHTSCENEPORTRAIT", + "NOFLASH", + "NIGHTSCENE", + "SURFANDSNOW", + "TEXT", + "SUNSET", + "KIDS", + "PET", + "CANDLELIGHT", + "MUSEUM", + "19", + "FOOD", + "STAGE", + "NIGHTSNAP", + "SWALLOWDOF", + "24", + "NIGHTSCENEHDR", + "BLUESKY", + "FOREST", + "28", + "BLACKLIGHTSILHOUETTE" +}; + + +/* case insenstive comparison - strnicmp */ +int str_comparison_i (const char *s1, const char *s2, int n) { + if ( s1 == NULL ) { + return s2 == NULL ? 0 : -(*s2); + } + if (s2 == NULL) { + return *s1; + } + + char c1='\0', c2='\0'; + int length=0; + while ( length found_index_length) ) { + found_index_length = string_length; + found_index = i; + } + } + return found_index; +} + +static +const char *get_pslr_str( const char** array, int length, int value ) { + if (value >=0 && value < length) { + return array[value]; + } else { + char *ret = malloc(128); + sprintf (ret, "Unknown value: %d", value); + return ret; + } +} + + +pslr_color_space_t get_pslr_color_space( char *str ) { + return find_in_array( pslr_color_space_str, sizeof(pslr_color_space_str)/sizeof(pslr_color_space_str[0]),str); +} + +const char *get_pslr_color_space_str( pslr_color_space_t value ) { + return get_pslr_str( pslr_color_space_str, sizeof(pslr_color_space_str)/sizeof(pslr_color_space_str[0]),value); +} + +pslr_af_mode_t get_pslr_af_mode( char *str ) { + return find_in_array( pslr_af_mode_str, sizeof(pslr_af_mode_str)/sizeof(pslr_af_mode_str[0]),str); +} + +const char *get_pslr_af_mode_str( pslr_af_mode_t value ) { + return get_pslr_str( pslr_af_mode_str, sizeof(pslr_af_mode_str)/sizeof(pslr_af_mode_str[0]),value); +} + +pslr_ae_metering_t get_pslr_ae_metering( char *str ) { + return find_in_array( pslr_ae_metering_str, sizeof(pslr_ae_metering_str)/sizeof(pslr_ae_metering_str[0]),str); +} + +const char *get_pslr_ae_metering_str( pslr_ae_metering_t value ) { + return get_pslr_str( pslr_ae_metering_str, sizeof(pslr_ae_metering_str)/sizeof(pslr_ae_metering_str[0]),value); +} + +pslr_flash_mode_t get_pslr_flash_mode( char *str ) { + return find_in_array( pslr_flash_mode_str, sizeof(pslr_flash_mode_str)/sizeof(pslr_flash_mode_str[0]),str); +} + +const char *get_pslr_flash_mode_str( pslr_flash_mode_t value ) { + return get_pslr_str( pslr_flash_mode_str, sizeof(pslr_flash_mode_str)/sizeof(pslr_flash_mode_str[0]),value); +} + +pslr_drive_mode_t get_pslr_drive_mode( char *str ) { + return find_in_array( pslr_drive_mode_str, sizeof(pslr_drive_mode_str)/sizeof(pslr_drive_mode_str[0]),str); +} + +const char *get_pslr_drive_mode_str( pslr_drive_mode_t value ) { + return get_pslr_str( pslr_drive_mode_str, sizeof(pslr_drive_mode_str)/sizeof(pslr_drive_mode_str[0]),value); +} + +pslr_af_point_sel_t get_pslr_af_point_sel( char *str ) { + return find_in_array( pslr_af_point_sel_str, sizeof(pslr_af_point_sel_str)/sizeof(pslr_af_point_sel_str[0]),str); +} + +const char *get_pslr_af_point_sel_str( pslr_af_point_sel_t value ) { + return get_pslr_str( pslr_af_point_sel_str, sizeof(pslr_af_point_sel_str)/sizeof(pslr_af_point_sel_str[0]),value); +} + +char *get_pslr_af11_point_str( uint32_t value ) { + if (value==0) { + return "none"; + } + int bitidx=0; + char *ret = malloc(1024); + sprintf(ret, "%s", ""); + while (value>0 && bitidx<11) { + if ((value & 0x01) == 1) { + sprintf(ret, "%s%s%s", ret, strlen(ret) == 0 ? "" : ",", pslr_af11_point_str[bitidx]); + } + value >>= 1; + ++bitidx; + } + if (value>0) { + sprintf(ret, "%s", "invalid"); + } + return ret; +} + + +pslr_jpeg_image_tone_t get_pslr_jpeg_image_tone( char *str ) { + return find_in_array( pslr_jpeg_image_tone_str, sizeof(pslr_jpeg_image_tone_str)/sizeof(pslr_jpeg_image_tone_str[0]),str); +} + +const char *get_pslr_jpeg_image_tone_str( pslr_jpeg_image_tone_t value ) { + return get_pslr_str( pslr_jpeg_image_tone_str, sizeof(pslr_jpeg_image_tone_str)/sizeof(pslr_jpeg_image_tone_str[0]),value); +} + +pslr_white_balance_mode_t get_pslr_white_balance_mode( char *str ) { + return find_in_array( pslr_white_balance_mode_str, sizeof(pslr_white_balance_mode_str)/sizeof(pslr_white_balance_mode_str[0]),str); +} + +const char *get_pslr_white_balance_mode_str( pslr_white_balance_mode_t value ) { + return get_pslr_str( pslr_white_balance_mode_str, sizeof(pslr_white_balance_mode_str)/sizeof(pslr_white_balance_mode_str[0]),value); +} + +const char *get_pslr_custom_ev_steps_str( pslr_custom_ev_steps_t value ) { + return get_pslr_str( pslr_custom_ev_steps_str, sizeof(pslr_custom_ev_steps_str)/sizeof(pslr_custom_ev_steps_str[0]),value); +} + +const char *get_pslr_custom_sensitivity_steps_str( pslr_custom_sensitivity_steps_t value ) { + return get_pslr_str( pslr_custom_sensitivity_steps_str, sizeof(pslr_custom_sensitivity_steps_str)/sizeof(pslr_custom_sensitivity_steps_str[0]),value); +} + +const char *get_pslr_image_format_str( pslr_image_format_t value ) { + return get_pslr_str( pslr_image_format_str, sizeof(pslr_image_format_str)/sizeof(pslr_image_format_str[0]),value); +} + +const char *get_pslr_raw_format_str( pslr_raw_format_t value ) { + return get_pslr_str( pslr_raw_format_str, sizeof(pslr_raw_format_str)/sizeof(pslr_raw_format_str[0]),value); +} + +const char *get_pslr_scene_mode_str( pslr_scene_mode_t value ) { + return get_pslr_str( pslr_scene_mode_str, sizeof(pslr_scene_mode_str)/sizeof(pslr_scene_mode_str[0]),value); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_enum.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_enum.h new file mode 100644 index 00000000..773c1f07 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_enum.h @@ -0,0 +1,241 @@ +/* + pkTriggerCord + Copyright (C) 2011-2019 Andras Salamon + Remote control of Pentax DSLR cameras. + + based on: + + PK-Remote + Remote control of Pentax DSLR cameras. + Copyright (C) 2008 Pontus Lidman + + PK-Remote for Windows + Copyright (C) 2010 Tomasz Kos + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + and GNU Lesser General Public License + along with this program. If not, see . + */ +#ifndef PSLR_ENUM_H +#define PSLR_ENUM_H + +#include + +typedef enum { + PSLR_COLOR_SPACE_SRGB, + PSLR_COLOR_SPACE_ADOBERGB, + PSLR_COLOR_SPACE_MAX +} pslr_color_space_t; + +typedef enum { + PSLR_AF_MODE_MF, + PSLR_AF_MODE_AF_S, + PSLR_AF_MODE_AF_C, + PSLR_AF_MODE_AF_A, + PSLR_AF_MODE_MAX +} pslr_af_mode_t; + +typedef enum { + PSLR_AE_METERING_MULTI, + PSLR_AE_METERING_CENTER, + PSLR_AE_METERING_SPOT, + PSLR_AE_METERING_MAX +} pslr_ae_metering_t; + +typedef enum { + PSLR_FLASH_MODE_MANUAL = 0, + PSLR_FLASH_MODE_MANUAL_REDEYE = 1, + PSLR_FLASH_MODE_SLOW = 2, + PSLR_FLASH_MODE_SLOW_REDEYE = 3, + PSLR_FLASH_MODE_TRAILING_CURTAIN = 4, + PSLR_FLASH_MODE_AUTO = 5, + PSLR_FLASH_MODE_AUTO_REDEYE = 6, + /* 7 not used */ + PSLR_FLASH_MODE_WIRELESS = 8, + PSLR_FLASH_MODE_MAX = 9 +} pslr_flash_mode_t; + +typedef enum { + PSLR_DRIVE_MODE_SINGLE, + PSLR_DRIVE_MODE_CONTINUOUS_HI, + PSLR_DRIVE_MODE_SELF_TIMER_12, + PSLR_DRIVE_MODE_SELF_TIMER_2, + PSLR_DRIVE_MODE_REMOTE, + PSLR_DRIVE_MODE_REMOTE_3, + PSLR_DRIVE_MODE_CONTINUOUS_LO, + PSLR_DRIVE_MODE_MAX +} pslr_drive_mode_t; + +typedef enum { + PSLR_AF_POINT_SEL_AUTO_5, + PSLR_AF_POINT_SEL_SELECT, + PSLR_AF_POINT_SEL_SPOT, + PSLR_AF_POINT_SEL_AUTO_11, /* maybe not for all cameras */ + PSLR_AF_POINT_SEL_EXPANDED, /* only for newer */ + PSLR_AF_POINT_SEL_MAX +} pslr_af_point_sel_t; + +typedef enum { + PSLR_AF11_POINT_TOP_LEFT = 0x01, + PSLR_AF11_POINT_TOP_MID = 0x2, + PSLR_AF11_POINT_TOP_RIGHT = 0x4, + PSLR_AF11_POINT_FAR_LEFT = 0x8, + PSLR_AF11_POINT_MID_LEFT = 0x10, + PSLR_AF11_POINT_MID_MID = 0x20, + PSLR_AF11_POINT_MID_RIGHT = 0x40, + PSLR_AF11_POINT_FAR_RIGHT = 0x80, + PSLR_AF11_POINT_BOT_LEFT = 0x100, + PSLR_AF11_POINT_BOT_MID = 0x200, + PSLR_AF11_POINT_BOT_RIGHT = 0x400 +} pslr_af11_point_t; + +typedef enum { + PSLR_JPEG_IMAGE_TONE_NONE = -1, + PSLR_JPEG_IMAGE_TONE_NATURAL, + PSLR_JPEG_IMAGE_TONE_BRIGHT, + PSLR_JPEG_IMAGE_TONE_PORTRAIT, + PSLR_JPEG_IMAGE_TONE_LANDSCAPE, + PSLR_JPEG_IMAGE_TONE_VIBRANT, + PSLR_JPEG_IMAGE_TONE_MONOCHROME, + PSLR_JPEG_IMAGE_TONE_MUTED, + PSLR_JPEG_IMAGE_TONE_REVERSAL_FILM, + PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS, + PSLR_JPEG_IMAGE_TONE_RADIANT, + PSLR_JPEG_IMAGE_TONE_CROSS_PROCESSING, + PSLR_JPEG_IMAGE_TONE_FLAT, + PSLR_JPEG_IMAGE_TONE_AUTO, + PSLR_JPEG_IMAGE_TONE_MAX +} pslr_jpeg_image_tone_t; + +typedef enum { + PSLR_WHITE_BALANCE_MODE_AUTO, + PSLR_WHITE_BALANCE_MODE_DAYLIGHT, + PSLR_WHITE_BALANCE_MODE_SHADE, + PSLR_WHITE_BALANCE_MODE_CLOUDY, + PSLR_WHITE_BALANCE_MODE_FLUORESCENT_DAYLIGHT_COLOR, + PSLR_WHITE_BALANCE_MODE_FLUORESCENT_DAYLIGHT_WHITE, + PSLR_WHITE_BALANCE_MODE_FLUORESCENT_COOL_WHITE, + PSLR_WHITE_BALANCE_MODE_TUNGSTEN, + PSLR_WHITE_BALANCE_MODE_FLASH, + PSLR_WHITE_BALANCE_MODE_MANUAL, + PSLR_WHITE_BALANCE_MODE_MANUAL_2, + PSLR_WHITE_BALANCE_MODE_MANUAL_3, + PSLR_WHITE_BALANCE_MODE_KELVIN_1, + PSLR_WHITE_BALANCE_MODE_KELVIN_2, + PSLR_WHITE_BALANCE_MODE_KELVIN_3, + PSLR_WHITE_BALANCE_MODE_FLUORESCENT_WARM_WHITE, + PSLR_WHITE_BALANCE_MODE_CTE, + PSLR_WHITE_BALANCE_MODE_MULTI_AUTO, + PSLR_WHITE_BALANCE_MODE_MAX +} pslr_white_balance_mode_t; + +typedef enum { + PSLR_CUSTOM_EV_STEPS_1_2, + PSLR_CUSTOM_EV_STEPS_1_3, + PSLR_CUSTOM_EV_STEPS_MAX +} pslr_custom_ev_steps_t; + +typedef enum { + PSLR_CUSTOM_SENSITIVITY_STEPS_1EV, + PSLR_CUSTOM_SENSITIVITY_STEPS_AS_EV, + PSLR_CUSTOM_SENSITIVITY_STEPS_MAX +} pslr_custom_sensitivity_steps_t; + +typedef enum { + PSLR_IMAGE_FORMAT_JPEG, + PSLR_IMAGE_FORMAT_RAW, + PSLR_IMAGE_FORMAT_RAW_PLUS, + PSLR_IMAGE_FORMAT_MAX +} pslr_image_format_t; + +typedef enum { + PSLR_RAW_FORMAT_PEF, + PSLR_RAW_FORMAT_DNG, + PSLR_RAW_FORMAT_MAX +} pslr_raw_format_t; + +typedef enum { + PSLR_SCENE_MODE_NONE, + PSLR_SCENE_MODE_HISPEED, + PSLR_SCENE_MODE_DOF, + PSLR_SCENE_MODE_MTF, + PSLR_SCENE_MODE_STANDARD, + PSLR_SCENE_MODE_PORTRAIT, + PSLR_SCENE_MODE_LANDSCAPE, + PSLR_SCENE_MODE_MACRO, + PSLR_SCENE_MODE_SPORT, + PSLR_SCENE_MODE_NIGHTSCENEPORTRAIT, + PSLR_SCENE_MODE_NOFLASH, + PSLR_SCENE_MODE_NIGHTSCENE, + PSLR_SCENE_MODE_SURFANDSNOW, + PSLR_SCENE_MODE_TEXT, + PSLR_SCENE_MODE_SUNSET, + PSLR_SCENE_MODE_KIDS, + PSLR_SCENE_MODE_PET, + PSLR_SCENE_MODE_CANDLELIGHT, + PSLR_SCENE_MODE_MUSEUM, + PSLR_SCENE_MODE_19, + PSLR_SCENE_MODE_FOOD, + PSLR_SCENE_MODE_STAGE, + PSLR_SCENE_MODE_NIGHTSNAP, + PSLR_SCENE_MODE_SWALLOWDOF, + PSLR_SCENE_MODE_24, + PSLR_SCENE_MODE_NIGHTSCENEHDR, + PSLR_SCENE_MODE_BLUESKY, + PSLR_SCENE_MODE_FOREST, + PSLR_SCENE_MODE_28, + PSLR_SCENE_MODE_BLACKLIGHTSILHOUETTE, + PSLR_SCENE_MODE_MAX +} pslr_scene_mode_t; + +int str_comparison_i (const char *s1, const char *s2, int n); +int find_in_array( const char** array, int length, char* str ); + +pslr_color_space_t get_pslr_color_space( char *str ); +const char *get_pslr_color_space_str( pslr_color_space_t value ); + +pslr_af_mode_t get_pslr_af_mode( char *str ); +const char *get_pslr_af_mode_str( pslr_af_mode_t value ); + +pslr_ae_metering_t get_pslr_ae_metering( char *str ); +const char *get_pslr_ae_metering_str( pslr_ae_metering_t value ); + +pslr_flash_mode_t get_pslr_flash_mode( char *str ); +const char *get_pslr_flash_mode_str( pslr_flash_mode_t value ); + +pslr_drive_mode_t get_pslr_drive_mode( char *str ); +const char *get_pslr_drive_mode_str( pslr_drive_mode_t value ); + +pslr_af_point_sel_t get_pslr_af_point_sel( char *str ); +const char *get_pslr_af_point_sel_str( pslr_af_point_sel_t value ); + +char *get_pslr_af11_point_str( uint32_t value ); + +pslr_jpeg_image_tone_t get_pslr_jpeg_image_tone( char *str ); +const char *get_pslr_jpeg_image_tone_str( pslr_jpeg_image_tone_t value ); + +pslr_white_balance_mode_t get_pslr_white_balance_mode( char *str ); +const char *get_pslr_white_balance_mode_str( pslr_white_balance_mode_t value ); + +/* pslr_custom_ev_steps_t get_pslr_custom_ev_steps( char *str ); */ +const char *get_pslr_custom_ev_steps_str( pslr_custom_ev_steps_t value ); + +const char *get_pslr_custom_sensitivity_steps_str( pslr_custom_sensitivity_steps_t value ); + +const char *get_pslr_image_format_str( pslr_image_format_t value ); + +const char *get_pslr_raw_format_str( pslr_raw_format_t value ); + +const char *get_pslr_scene_mode_str( pslr_scene_mode_t value ); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_lens.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_lens.c new file mode 100644 index 00000000..83c334f7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_lens.c @@ -0,0 +1,51 @@ +/* + pkTriggerCord + Copyright (C) 2011-2019 Andras Salamon + Remote control of Pentax DSLR cameras. + + based on: + + PK-Remote + Remote control of Pentax DSLR cameras. + Copyright (C) 2008 Pontus Lidman + + Pentax lens database comes from ExifTool ( http://www.sno.phy.queensu.ca/~phil/exiftool/ ) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + and GNU Lesser General Public License + along with this program. If not, see . + */ + +#include "pslr_lens.h" + +#include + +static const struct { + uint32_t id1; + uint32_t id2; + const char *name; +} lens_id[] = { +#include "exiftool_pentax_lens.txt" +}; + +const char *get_lens_name( uint32_t id1, uint32_t id2) { + int lens_num = sizeof(lens_id)/sizeof(lens_id[0]); + int i; + for ( i=0; i + Remote control of Pentax DSLR cameras. + + based on: + + PK-Remote + Remote control of Pentax DSLR cameras. + Copyright (C) 2008 Pontus Lidman + + Pentax lens database comes from ExifTool ( http://www.sno.phy.queensu.ca/~phil/exiftool/ ) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + and GNU Lesser General Public License + along with this program. If not, see . + */ +#ifndef PSLR_LENS_H +#define PSLR_LENS_H + +#include + +const char *get_lens_name( uint32_t id1, uint32_t id2); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_model.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_model.c new file mode 100644 index 00000000..5d3068df --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_model.c @@ -0,0 +1,996 @@ +/* + pkTriggerCord + Copyright (C) 2011-2019 Andras Salamon + Remote control of Pentax DSLR cameras. + + Support for K200D added by Jens Dreyer 04/2011 + Support for K-r added by Vincenc Podobnik 06/2011 + Support for K-30 added by Camilo Polymeris 09/2012 + Support for K-01 added by Ethan Queen 01/2013 + Support for K-3 added by Tao Wang 01/2016 + + based on: + + PK-Remote + Remote control of Pentax DSLR cameras. + Copyright (C) 2008 Pontus Lidman + + PK-Remote for Windows + Copyright (C) 2010 Tomasz Kos + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + and GNU Lesser General Public License + along with this program. If not, see . + */ + +#include +#include +#include +#include +#include +#include +#include +#include "js0n.h" + +#include "pslr_model.h" +#include "pslr.h" + +static uint8_t lastbuf[MAX_STATUS_BUF_SIZE]; +static int first = 1; +static char *jsontext=NULL; +static int jsonsize; + +static void ipslr_status_diff(uint8_t *buf) { + int n; + int diffs; + if (first) { + hexdump(buf, MAX_STATUS_BUF_SIZE); + memcpy(lastbuf, buf, MAX_STATUS_BUF_SIZE); + first = 0; + } + + diffs = 0; + for (n = 0; n < MAX_STATUS_BUF_SIZE; n++) { + if (lastbuf[n] != buf[n]) { + DPRINT("\t\tbuf[%03X] last %02Xh %3d new %02Xh %3d\n", n, lastbuf[n], lastbuf[n], buf[n], buf[n]); + diffs++; + } + } + if (diffs) { + DPRINT("---------------------------\n"); + memcpy(lastbuf, buf, MAX_STATUS_BUF_SIZE); + } +} + +static +uint16_t get_uint16_be(const uint8_t *buf) { + uint16_t res; + res = buf[0] << 8 | buf[1]; + return res; +} + +uint32_t get_uint32_be(uint8_t *buf) { + uint32_t res; + res = buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3]; + return res; +} + +static +int32_t get_int32_be(uint8_t *buf) { + int32_t res; + res = buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3]; + return res; +} + +static +uint16_t get_uint16_le(const uint8_t *buf) { + uint16_t res; + res = buf[1] << 8 | buf[0]; + return res; +} + +uint32_t get_uint32_le(uint8_t *buf) { + uint32_t res; + res = buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0]; + return res; +} + +static +int32_t get_int32_le(uint8_t *buf) { + int32_t res; + res = buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0]; + return res; +} + +void set_uint32_le(uint32_t v, uint8_t *buf) { + buf[0] = v; + buf[1] = v >> 8; + buf[2] = v >> 16; + buf[3] = v >> 24; +} + +void set_uint32_be(uint32_t v, uint8_t *buf) { + buf[0] = v >> 24; + buf[1] = v >> 16; + buf[2] = v >> 8; + buf[3] = v; +} + +char *shexdump(uint8_t *buf, uint32_t bufLen) { + char *ret = malloc(4*bufLen); + uint32_t i; + sprintf(ret,"%s",""); + for (i = 0; i < bufLen; i++) { + if (i % 16 == 0) { + sprintf(ret+strlen(ret),"0x%04x | ", i); + } + sprintf(ret+strlen(ret), "%02x ", buf[i]); + if (i % 8 == 7) { + sprintf(ret+strlen(ret), " "); + } + if (i % 16 == 15) { + sprintf(ret+strlen(ret), "\n"); + } + } + if (i % 16 != 15) { + sprintf(ret+strlen(ret), "\n"); + } + return ret; +} + +void hexdump(uint8_t *buf, uint32_t bufLen) { + char *dmp = shexdump(buf, bufLen); + DPRINT("%s",dmp); + free(dmp); +} + +void hexdump_debug(uint8_t *buf, uint32_t bufLen) { + char *dmp = shexdump(buf, bufLen); + DPRINT("%s",dmp); + free(dmp); +} + + +// based on http://stackoverflow.com/a/657202/21348 + +const char* int_to_binary( uint16_t x ) { + static char b[sizeof(uint16_t)*8+1] = {0}; + int y; + long long z; + for (z=(1LL<0; z>>=1,y++) { + b[y] = ( ((x & z) == z) ? '1' : '0'); + } + b[y] = 0; + return b; +} + + +static +int _get_user_jpeg_stars( ipslr_model_info_t *model, int hwqual ) { + if ( model->id == 0x12f71 ) { + // K5IIs hack + // TODO: test it + if ( hwqual == model->max_jpeg_stars -1 ) { + return model->max_jpeg_stars; + } else { + return model->max_jpeg_stars - 1 - hwqual; + } + } else { + return model->max_jpeg_stars - hwqual; + } +} + +int get_hw_jpeg_quality( ipslr_model_info_t *model, int user_jpeg_stars) { + if ( model->id == 0x12f71 ) { + // K5IIs hack + // TODO: test it + if ( user_jpeg_stars == model->max_jpeg_stars ) { + return model->max_jpeg_stars-1; + } else { + return model->max_jpeg_stars - 1 - user_jpeg_stars; + } + } else { + return model->max_jpeg_stars - user_jpeg_stars; + } +} + + +static +void ipslr_status_parse_k10d(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + memset(status, 0, sizeof (*status)); + status->bufmask = get_uint16_be(&buf[0x16]); + status->user_mode_flag = get_uint32_be(&buf[0x1c]); + status->set_shutter_speed.nom = get_uint32_be(&buf[0x2c]); + status->set_shutter_speed.denom = get_uint32_be(&buf[0x30]); + status->set_aperture.nom = get_uint32_be(&buf[0x34]); + status->set_aperture.denom = get_uint32_be(&buf[0x38]); + status->ec.nom = get_uint32_be(&buf[0x3c]); + status->ec.denom = get_uint32_be(&buf[0x40]); + status->fixed_iso = get_uint32_be(&buf[0x60]); + status->image_format = get_uint32_be(&buf[0x78]); + status->jpeg_resolution = get_uint32_be(&buf[0x7c]); + status->jpeg_quality = _get_user_jpeg_stars( p->model, get_uint32_be(&buf[0x80])); + status->raw_format = get_uint32_be(&buf[0x84]); + status->jpeg_image_tone = get_uint32_be(&buf[0x88]); + status->jpeg_saturation = get_uint32_be(&buf[0x8c]); + status->jpeg_sharpness = get_uint32_be(&buf[0x90]); + status->jpeg_contrast = get_uint32_be(&buf[0x94]); + status->custom_ev_steps = get_uint32_be(&buf[0x9c]); + status->custom_sensitivity_steps = get_uint32_be(&buf[0xa0]); + status->af_point_select = get_uint32_be(&buf[0xbc]); + status->selected_af_point = get_uint32_be(&buf[0xc0]); + status->exposure_mode = get_uint32_be(&buf[0xac]); + status->current_shutter_speed.nom = get_uint32_be(&buf[0xf4]); + status->current_shutter_speed.denom = get_uint32_be(&buf[0xf8]); + status->current_aperture.nom = get_uint32_be(&buf[0xfc]); + status->current_aperture.denom = get_uint32_be(&buf[0x100]); + status->current_iso = get_uint32_be(&buf[0x11c]); + status->light_meter_flags = get_uint32_be(&buf[0x124]); + status->lens_min_aperture.nom = get_uint32_be(&buf[0x12c]); + status->lens_min_aperture.denom = get_uint32_be(&buf[0x130]); + status->lens_max_aperture.nom = get_uint32_be(&buf[0x134]); + status->lens_max_aperture.denom = get_uint32_be(&buf[0x138]); + status->focused_af_point = get_uint32_be(&buf[0x150]); + status->zoom.nom = get_uint32_be(&buf[0x16c]); + status->zoom.denom = get_uint32_be(&buf[0x170]); + status->focus = get_int32_be(&buf[0x174]); +} + +static +void ipslr_status_parse_k20d(ipslr_handle_t *p, pslr_status *status) { + + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + memset(status, 0, sizeof (*status)); + status->bufmask = get_uint16_be( &buf[0x16]); + status->user_mode_flag = get_uint32_be(&buf[0x1c]); + status->set_shutter_speed.nom = get_uint32_be(&buf[0x2c]); + status->set_shutter_speed.denom = get_uint32_be(&buf[0x30]); + status->set_aperture.nom = get_uint32_be(&buf[0x34]); + status->set_aperture.denom = get_uint32_be(&buf[0x38]); + status->ec.nom = get_uint32_be(&buf[0x3c]); + status->ec.denom = get_uint32_be(&buf[0x40]); + status->fixed_iso = get_uint32_be(&buf[0x60]); + status->image_format = get_uint32_be(&buf[0x78]); + status->jpeg_resolution = get_uint32_be(&buf[0x7c]); + status->jpeg_quality = _get_user_jpeg_stars( p->model, get_uint32_be(&buf[0x80])); + status->raw_format = get_uint32_be(&buf[0x84]); + status->jpeg_image_tone = get_uint32_be(&buf[0x88]); + status->jpeg_saturation = get_uint32_be(&buf[0x8c]); // commands do now work for it? + status->jpeg_sharpness = get_uint32_be(&buf[0x90]); // commands do now work for it? + status->jpeg_contrast = get_uint32_be(&buf[0x94]); // commands do now work for it? + status->custom_ev_steps = get_uint32_be(&buf[0x9c]); + status->custom_sensitivity_steps = get_uint32_be(&buf[0xa0]); + status->ae_metering_mode = get_uint32_be(&buf[0xb4]); // same as c4 + status->af_mode = get_uint32_be(&buf[0xb8]); + status->af_point_select = get_uint32_be(&buf[0xbc]); // not sure + status->selected_af_point = get_uint32_be(&buf[0xc0]); + status->exposure_mode = get_uint32_be(&buf[0xac]); + status->current_shutter_speed.nom = get_uint32_be(&buf[0x108]); + status->current_shutter_speed.denom = get_uint32_be(&buf[0x10C]); + status->current_aperture.nom = get_uint32_be(&buf[0x110]); + status->current_aperture.denom = get_uint32_be(&buf[0x114]); + status->current_iso = get_uint32_be(&buf[0x130]); + status->light_meter_flags = get_uint32_be(&buf[0x138]); + status->lens_min_aperture.nom = get_uint32_be(&buf[0x140]); + status->lens_min_aperture.denom = get_uint32_be(&buf[0x144]); + status->lens_max_aperture.nom = get_uint32_be(&buf[0x148]); + status->lens_max_aperture.denom = get_uint32_be(&buf[0x14B]); + status->focused_af_point = get_uint32_be(&buf[0x160]); // unsure about it, a lot is changing when the camera focuses + status->zoom.nom = get_uint32_be(&buf[0x180]); + status->zoom.denom = get_uint32_be(&buf[0x184]); + status->focus = get_int32_be(&buf[0x188]); // current focus ring position? + // 0x158 current ev? + // 0x160 and 0x164 change when AF +} + +static +void ipslr_status_parse_istds(ipslr_handle_t *p, pslr_status *status) { + + uint8_t *buf = p->status_buffer; + /* *ist DS status block */ + memset(status, 0, sizeof (*status)); + status->bufmask = get_uint16_be(&buf[0x12]); + status->set_shutter_speed.nom = get_uint32_be(&buf[0x80]); + status->set_shutter_speed.denom = get_uint32_be(&buf[0x84]); + status->set_aperture.nom = get_uint32_be(&buf[0x88]); + status->set_aperture.denom = get_uint32_be(&buf[0x8c]); + status->lens_min_aperture.nom = get_uint32_be(&buf[0xb8]); + status->lens_min_aperture.denom = get_uint32_be(&buf[0xbc]); + status->lens_max_aperture.nom = get_uint32_be(&buf[0xc0]); + status->lens_max_aperture.denom = get_uint32_be(&buf[0xc4]); + + // no DNG support so raw format is PEF + status->raw_format = PSLR_RAW_FORMAT_PEF; +} + +// some of the cameras share most of the status fields +// this method is used for K-x, K-7, K-5, K-r +// +// some cameras also have this data block, but it's shifted a bit +static +void ipslr_status_parse_common(ipslr_handle_t *p, pslr_status *status, int shift) { + + uint8_t *buf = p->status_buffer; + get_uint32_func get_uint32_func_ptr; + get_int32_func get_int32_func_ptr; + get_uint16_func get_uint16_func_ptr; + + if (p->model->is_little_endian) { + get_uint32_func_ptr = get_uint32_le; + get_int32_func_ptr = get_int32_le; + get_uint16_func_ptr = get_uint16_le; + } else { + get_uint32_func_ptr = get_uint32_be; + get_int32_func_ptr = get_int32_be; + get_uint16_func_ptr = get_uint16_be; + } + + // 0x0C: 0x85 0xA5 + // 0x0F: beginning 0 sometime changes to 1 + // 0x14: LCD panel 2: turned off 3: on? + status->bufmask = (*get_uint16_func_ptr)( &buf[0x1E + shift]); + status->user_mode_flag = (*get_uint32_func_ptr)(&buf[0x24 + shift]); + status->flash_mode = (*get_uint32_func_ptr)(&buf[0x28 + shift]); + status->flash_exposure_compensation = (*get_int32_func_ptr)(&buf[0x2C + shift]); + status->set_shutter_speed.nom = (*get_uint32_func_ptr)(&buf[0x34 + shift]); + status->set_shutter_speed.denom = (*get_uint32_func_ptr)(&buf[0x38 + shift]); + status->set_aperture.nom = (*get_uint32_func_ptr)(&buf[0x3C + shift]); + status->set_aperture.denom = (*get_uint32_func_ptr)(&buf[0x40 + shift]); + status->ec.nom = (*get_uint32_func_ptr)(&buf[0x44 + shift]); + status->ec.denom = (*get_uint32_func_ptr)(&buf[0x48 + shift]); + status->auto_bracket_mode = (*get_uint32_func_ptr)(&buf[0x4C + shift]); + status->auto_bracket_ev.nom = (*get_uint32_func_ptr)(&buf[0x50 + shift]); + status->auto_bracket_ev.denom = (*get_uint32_func_ptr)(&buf[0x54 + shift]); + status->auto_bracket_picture_count = (*get_uint32_func_ptr)(&buf[0x58 + shift]); + status->drive_mode = (*get_uint32_func_ptr)(&buf[0x5C + shift]); + status->fixed_iso = (*get_uint32_func_ptr)(&buf[0x68 + shift]); + status->auto_iso_min = (*get_uint32_func_ptr)(&buf[0x6C + shift]); + status->auto_iso_max = (*get_uint32_func_ptr)(&buf[0x70 + shift]); + status->white_balance_mode = (*get_uint32_func_ptr)(&buf[0x74 + shift]); + status->white_balance_adjust_mg = (*get_uint32_func_ptr)(&buf[0x78 + shift]); // 0: M7 7: 0 14: G7 + status->white_balance_adjust_ba = (*get_uint32_func_ptr)(&buf[0x7C + shift]); // 0: B7 7: 0 14: A7 + status->image_format = (*get_uint32_func_ptr)(&buf[0x80 + shift]); + status->jpeg_resolution = (*get_uint32_func_ptr)(&buf[0x84 + shift]); + status->jpeg_quality = _get_user_jpeg_stars( p->model, (*get_uint32_func_ptr)(&buf[0x88 + shift])); + status->raw_format = (*get_uint32_func_ptr)(&buf[0x8C + shift]); + status->jpeg_image_tone = (*get_uint32_func_ptr)(&buf[0x90 + shift]); + status->jpeg_saturation = (*get_uint32_func_ptr)(&buf[0x94 + shift]); + status->jpeg_sharpness = (*get_uint32_func_ptr)(&buf[0x98 + shift]); + status->jpeg_contrast = (*get_uint32_func_ptr)(&buf[0x9C + shift]); + status->color_space = (*get_uint32_func_ptr)(&buf[0xA0 + shift]); + status->custom_ev_steps = (*get_uint32_func_ptr)(&buf[0xA4 + shift]); + status->custom_sensitivity_steps = (*get_uint32_func_ptr)(&buf[0xa8 + shift]); + status->exposure_mode = (*get_uint32_func_ptr)(&buf[0xb4 + shift]); + status->scene_mode = (*get_uint32_func_ptr)(&buf[0xb8 + shift]); + status->ae_metering_mode = (*get_uint32_func_ptr)(&buf[0xbc + shift]); // same as cc + status->af_mode = (*get_uint32_func_ptr)(&buf[0xC0 + shift]); + status->af_point_select = (*get_uint32_func_ptr)(&buf[0xc4 + shift]); + status->selected_af_point = (*get_uint32_func_ptr)(&buf[0xc8 + shift]); + status->shake_reduction = (*get_uint32_func_ptr)(&buf[0xE0 + shift]); + status->auto_bracket_picture_counter = (*get_uint32_func_ptr)(&buf[0xE4 + shift]); + status->jpeg_hue = (*get_uint32_func_ptr)(&buf[0xFC + shift]); + status->current_shutter_speed.nom = (*get_uint32_func_ptr)(&buf[0x10C + shift]); + status->current_shutter_speed.denom = (*get_uint32_func_ptr)(&buf[0x110 + shift]); + status->current_aperture.nom = (*get_uint32_func_ptr)(&buf[0x114 + shift]); + status->current_aperture.denom = (*get_uint32_func_ptr)(&buf[0x118 + shift]); + status->max_shutter_speed.nom = (*get_uint32_func_ptr)(&buf[0x12C + shift]); + status->max_shutter_speed.denom = (*get_uint32_func_ptr)(&buf[0x130 + shift]); + status->current_iso = (*get_uint32_func_ptr)(&buf[0x134 + shift]); + status->light_meter_flags = (*get_uint32_func_ptr)(&buf[0x13C + shift]); + status->lens_min_aperture.nom = (*get_uint32_func_ptr)(&buf[0x144 + shift]); + status->lens_min_aperture.denom = (*get_uint32_func_ptr)(&buf[0x148 + shift]); + status->lens_max_aperture.nom = (*get_uint32_func_ptr)(&buf[0x14C + shift]); + status->lens_max_aperture.denom = (*get_uint32_func_ptr)(&buf[0x150 + shift]); + status->manual_mode_ev = (*get_int32_func_ptr)(&buf[0x15C + shift]); + status->focused_af_point = (*get_uint32_func_ptr)(&buf[0x168 + shift]); //d, unsure about it, a lot is changing when the camera focuses + // probably voltage*100 + // battery_1 > battery2 ( noload vs load voltage?) + status->battery_1 = (*get_uint32_func_ptr)( &buf[0x170 + shift] ); + status->battery_2 = (*get_uint32_func_ptr)( &buf[0x174 + shift] ); + status->battery_3 = (*get_uint32_func_ptr)( &buf[0x180 + shift] ); + status->battery_4 = (*get_uint32_func_ptr)( &buf[0x184 + shift] ); + +} + +static +void ipslr_status_parse_kx(ipslr_handle_t *p, pslr_status *status) { + + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0); + status->zoom.nom = get_uint32_be(&buf[0x198]); + status->zoom.denom = get_uint32_be(&buf[0x19C]); + status->focus = get_int32_be(&buf[0x1A0]); + status->lens_id1 = get_uint32_be(&buf[0x188]) & 0x0F; + status->lens_id2 = get_uint32_be( &buf[0x194]); + // selected_af_point: cannot find the field, 0xc8 is always zero +} + +// Vince: K-r support 2011-06-22 +// +static +void ipslr_status_parse_kr(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0 ); + status->zoom.nom = get_uint32_be(&buf[0x19C]); + status->zoom.denom = get_uint32_be(&buf[0x1A0]); + status->focus = get_int32_be(&buf[0x1A4]); + status->lens_id1 = get_uint32_be(&buf[0x18C]) & 0x0F; + status->lens_id2 = get_uint32_be( &buf[0x198]); +} + +static +void ipslr_status_parse_k5(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0 ); + status->zoom.nom = get_uint32_be(&buf[0x1A0]); + status->zoom.denom = get_uint32_be(&buf[0x1A4]); + status->focus = get_int32_be(&buf[0x1A8]); // ? + status->lens_id1 = get_uint32_be(&buf[0x190]) & 0x0F; + status->lens_id2 = get_uint32_be( &buf[0x19C]); + +// TODO: check these fields +//status.focused = getInt32(statusBuf, 0x164); +} + +static +void ipslr_status_parse_k30(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0 ); + //~ status->jpeg_contrast -= 4; + //~ status->jpeg_hue -= 4; + //~ status->jpeg_sharpness -= 4; + //~ status->jpeg_saturation -= 4; + status->zoom.nom = get_uint32_be(&buf[0x1A0]); + status->zoom.denom = 100; + status->focus = get_int32_be(&buf[0x1A8]); // ? + status->lens_id1 = get_uint32_be(&buf[0x190]) & 0x0F; + status->lens_id2 = get_uint32_be( &buf[0x19C]); +} + +// status check seems to be the same as K30 +static +void ipslr_status_parse_k01(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0 ); + //~ status->jpeg_contrast -= 4; + //~ status->jpeg_hue -= 4; + //~ status->jpeg_sharpness -= 4; + //~ status->jpeg_saturation -= 4; + status->zoom.nom = get_uint32_be(&buf[0x1A0]); // - good for K01 + status->zoom.denom = 100; // good for K-01 + status->focus = get_int32_be(&buf[0x1A8]); // ? - good for K01 + status->lens_id1 = get_uint32_be(&buf[0x190]) & 0x0F; // - good for K01 + status->lens_id2 = get_uint32_be( &buf[0x19C]); // - good for K01 +} + +static +void ipslr_status_parse_k50(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0 ); + status->zoom.nom = get_uint32_be(&buf[0x1A0]); + status->zoom.denom = get_uint32_be(&buf[0x1A4]); + // status->focus = get_int32_be(&buf[0x1A8]); // ? + status->lens_id1 = get_uint32_be(&buf[0x190]) & 0x0F; + status->lens_id2 = get_uint32_be( &buf[0x19C]); +} + +static +void ipslr_status_parse_k500(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0 ); + status->zoom.nom = get_uint32_be(&buf[0x1A0]); + status->zoom.denom = get_uint32_be(&buf[0x1A4]); + // status->focus = get_int32_be(&buf[0x1A8]); // ? + status->lens_id1 = get_uint32_be(&buf[0x190]) & 0x0F; + status->lens_id2 = get_uint32_be( &buf[0x19C]); + // cannot read max_shutter_speed from status buffer, hardwire the values here + status->max_shutter_speed.nom = 1; + status->max_shutter_speed.denom = 6000; +} + +static +void ipslr_status_parse_km(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, -4); + status->zoom.nom = get_uint32_be(&buf[0x180]); + status->zoom.denom = get_uint32_be(&buf[0x184]); + status->lens_id1 = get_uint32_be(&buf[0x170]) & 0x0F; + status->lens_id2 = get_uint32_be( &buf[0x17c]); +// TODO +// status.focused = getInt32(statusBuf, 0x164); +} + +// K-3 returns data in little-endian +static +void ipslr_status_parse_k3(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0 ); + status->bufmask = get_uint16_le( &buf[0x1C]); + status->zoom.nom = get_uint32_le(&buf[0x1A0]); + status->zoom.denom = get_uint32_le(&buf[0x1A4]); + status->focus = get_int32_le(&buf[0x1A8]); + status->lens_id1 = get_uint32_le(&buf[0x190]) & 0x0F; + status->lens_id2 = get_uint32_le( &buf[0x19C]); +} + +static +void ipslr_status_parse_ks1(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0 ); + status->bufmask = get_uint16_le( &buf[0x0C]); + status->zoom.nom = get_uint32_le(&buf[0x1A0]); + status->zoom.denom = get_uint32_le(&buf[0x1A4]); + status->focus = get_int32_le(&buf[0x1A8]); + status->lens_id1 = get_uint32_le(&buf[0x190]) & 0x0F; + status->lens_id2 = get_uint32_le( &buf[0x19C]); +} + + +static +void ipslr_status_parse_k1(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0 ); +// parse_common returns invalid values for the following fields. Fixing the fields: + + status->jpeg_hue = get_uint32_le(&buf[0x100]); + status->current_shutter_speed.nom = get_uint32_le(&buf[0x110]); + status->current_shutter_speed.denom = get_uint32_le(&buf[0x114]); + status->current_aperture.nom = get_uint32_le(&buf[0x118]); + status->current_aperture.denom = get_uint32_le(&buf[0x11c]); + status->max_shutter_speed.nom = get_uint32_le(&buf[0x130]); + status->max_shutter_speed.denom = get_uint32_le(&buf[0x134]); + status->current_iso = get_uint32_le(&buf[0x138]); + status->light_meter_flags = get_uint32_le(&buf[0x140]); // ? + status->lens_min_aperture.nom = get_uint32_le(&buf[0x148]); + status->lens_min_aperture.denom = get_uint32_le(&buf[0x14c]); + status->lens_max_aperture.nom = get_uint32_le(&buf[0x150]); + status->lens_max_aperture.denom = get_uint32_le(&buf[0x154]); + status->manual_mode_ev = get_uint32_le(&buf[0x160]); // ? + status->focused_af_point = get_uint32_le(&buf[0x16c]); // ? + status->battery_1 = get_uint32_le(&buf[0x174]); + status->battery_2 = get_uint32_le(&buf[0x178]); + + // selected_af_point + // toprow left: 0x04000000 + // toprow leftmiddle: 0x02000000 + // toprow middle: 0x01000000 + // toprow rightmiddle: 0x00800000 + // bottomright: 0x00000004 + + status->bufmask = get_uint16_le( &buf[0x0C]); + status->zoom.nom = get_uint32_le(&buf[0x1A4]); + status->zoom.denom = get_uint32_le(&buf[0x1A8]); +// status->focus = get_int32_le(&buf[0x1A8]); + status->lens_id1 = get_uint32_le(&buf[0x194]) & 0x0F; + status->lens_id2 = get_uint32_le( &buf[0x1A0]); +} + +static +void ipslr_status_parse_k70(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + ipslr_status_parse_common( p, status, 0 ); +// parse_common returns invalid values for the following fields. Fixing the fields: + + status->auto_bracket_picture_counter = get_uint32_le(&buf[0xE8]); + status->jpeg_hue = get_uint32_le(&buf[0x100]); + status->current_shutter_speed.nom = get_uint32_le(&buf[0x110]); + status->current_shutter_speed.denom = get_uint32_le(&buf[0x114]); + status->current_aperture.nom = get_uint32_le(&buf[0x118]); + status->current_aperture.denom = get_uint32_le(&buf[0x11c]); + status->max_shutter_speed.nom = get_uint32_le(&buf[0x130]); + status->max_shutter_speed.denom = get_uint32_le(&buf[0x134]); + status->current_iso = get_uint32_le(&buf[0x138]); + status->light_meter_flags = get_uint32_le(&buf[0x140]); // ? + status->lens_min_aperture.nom = get_uint32_le(&buf[0x148]); + status->lens_min_aperture.denom = get_uint32_le(&buf[0x14c]); + status->lens_max_aperture.nom = get_uint32_le(&buf[0x150]); + status->lens_max_aperture.denom = get_uint32_le(&buf[0x154]); + status->manual_mode_ev = get_uint32_le(&buf[0x160]); // ? + status->focused_af_point = get_uint32_le(&buf[0x16c]); // ? + + switch ( status->af_point_select) { + case 0: + status->af_point_select=PSLR_AF_POINT_SEL_SPOT; + break; + case 1: + status->af_point_select=PSLR_AF_POINT_SEL_SELECT; + break; + case 2: + status->af_point_select=PSLR_AF_POINT_SEL_EXPANDED; + break; + case 5: + status->af_point_select=PSLR_AF_POINT_SEL_AUTO_5; + break; + case 6: + status->af_point_select=PSLR_AF_POINT_SEL_AUTO_11; + break; + } + + status->battery_1 = get_uint32_le(&buf[0x174]); + status->battery_2 = get_uint32_le(&buf[0x178]); + status->battery_3 = 0; + status->battery_4 = 0; + + uint32_t converted_selected_af_point=0; + int convert_bit_index[11] = { 26, 24, 22, 1, 16, 14, 12, 0, 6, 4, 2}; + int bitidx=0; + for (bitidx=0; bitidx<11; ++bitidx) { + if (status->selected_af_point & 1<selected_af_point = converted_selected_af_point; + + status->bufmask = get_uint16_le( &buf[0x0C]); + status->zoom.nom = get_uint32_le(&buf[0x1A4]); + status->zoom.denom = get_uint32_le(&buf[0x1A8]); +// status->focus = get_int32_le(&buf[0x1A8]); + status->lens_id1 = get_uint32_le(&buf[0x194]) & 0x0F; + status->lens_id2 = get_uint32_le( &buf[0x1A0]); + status->shake_reduction = get_uint32_le(&buf[0xe4]); +} + +static +void ipslr_status_parse_k200d(ipslr_handle_t *p, pslr_status *status) { + uint8_t *buf = p->status_buffer; + if ( debug ) { + ipslr_status_diff(buf); + } + + memset(status, 0, sizeof (*status)); + status->bufmask = get_uint16_be(&buf[0x16]); + status->user_mode_flag = get_uint32_be(&buf[0x1c]); + status->set_shutter_speed.nom = get_uint32_be(&buf[0x2c]); + status->set_shutter_speed.denom = get_uint32_be(&buf[0x30]); + status->current_aperture.nom = get_uint32_be(&buf[0x034]); + status->current_aperture.denom = get_uint32_be(&buf[0x038]); + status->set_aperture.nom = get_uint32_be(&buf[0x34]); + status->set_aperture.denom = get_uint32_be(&buf[0x38]); + status->ec.nom = get_uint32_be(&buf[0x3c]); + status->ec.denom = get_uint32_be(&buf[0x40]); + status->current_iso = get_uint32_be(&buf[0x060]); + status->fixed_iso = get_uint32_be(&buf[0x60]); + status->auto_iso_min = get_uint32_be(&buf[0x64]); + status->auto_iso_max = get_uint32_be(&buf[0x68]); + status->image_format = get_uint32_be(&buf[0x78]); + status->jpeg_resolution = get_uint32_be(&buf[0x7c]); + status->jpeg_quality = _get_user_jpeg_stars( p->model, get_uint32_be(&buf[0x80])); + status->raw_format = get_uint32_be(&buf[0x84]); + status->jpeg_image_tone = get_uint32_be(&buf[0x88]); + status->jpeg_saturation = get_uint32_be(&buf[0x8c]); + status->jpeg_sharpness = get_uint32_be(&buf[0x90]); + status->jpeg_contrast = get_uint32_be(&buf[0x94]); + //status->custom_ev_steps = get_uint32_be(&buf[0x9c]); + //status->custom_sensitivity_steps = get_uint32_be(&buf[0xa0]); + status->exposure_mode = get_uint32_be(&buf[0xac]); + status->af_mode = get_uint32_be(&buf[0xb8]); + status->af_point_select = get_uint32_be(&buf[0xbc]); + status->selected_af_point = get_uint32_be(&buf[0xc0]); + status->drive_mode = get_uint32_be(&buf[0xcc]); + status->shake_reduction = get_uint32_be(&buf[0xda]); + status->jpeg_hue = get_uint32_be(&buf[0xf4]); + status->current_shutter_speed.nom = get_uint32_be(&buf[0x0104]); + status->current_shutter_speed.denom = get_uint32_be(&buf[0x108]); + status->light_meter_flags = get_uint32_be(&buf[0x124]); + status->lens_min_aperture.nom = get_uint32_be(&buf[0x13c]); + status->lens_min_aperture.denom = get_uint32_be(&buf[0x140]); + status->lens_max_aperture.nom = get_uint32_be(&buf[0x144]); + status->lens_max_aperture.denom = get_uint32_be(&buf[0x148]); + status->focused_af_point = get_uint32_be(&buf[0x150]); + status->zoom.nom = get_uint32_be(&buf[0x17c]); + status->zoom.denom = get_uint32_be(&buf[0x180]); + status->focus = get_int32_be(&buf[0x184]); + // Drive mode: 0=Single shot, 1= Continous Hi, 2= Continous Low or Self timer 12s, 3=Self timer 2s + // 4= remote, 5= remote 3s delay +} + +pslr_setting_def_t *find_setting_by_name (pslr_setting_def_t *array, int array_length, char *name) { + if (array == NULL || array_length == 0) { + return NULL; + } + int i; + for ( i = 0; ivalue != NULL) { + bool_setting = (pslr_bool_setting) { + PSLR_SETTING_STATUS_HARDWIRED, strcmp("false", def->value) == 0 ? false : true + }; + } else if (def->address != 0) { + uint8_t target = strcmp(def->type, "boolean!") == 0 ? 0 : 1; + bool_setting = (pslr_bool_setting) { + PSLR_SETTING_STATUS_READ, buf[def->address] == target + }; + } else { + bool_setting = (pslr_bool_setting) { + PSLR_SETTING_STATUS_NA, false + }; + } + return bool_setting; +} + +pslr_uint16_setting ipslr_settings_parse_uint16(const uint8_t *buf, const pslr_setting_def_t *def) { + pslr_uint16_setting uint16_setting; + if (def->value != NULL) { + uint16_setting = (pslr_uint16_setting) { + PSLR_SETTING_STATUS_HARDWIRED, atoi(def->value) + }; + } else if (def->address != 0) { + uint16_setting = (pslr_uint16_setting) { + PSLR_SETTING_STATUS_READ, get_uint16_be(&buf[def->address]) + }; + } else { + uint16_setting = (pslr_uint16_setting) { + PSLR_SETTING_STATUS_NA, 0 + }; + } + return uint16_setting; +} + +void ipslr_settings_parser_json(const char *cameraid, ipslr_handle_t *p, pslr_settings *settings) { + uint8_t *buf = p->settings_buffer; + memset(settings, 0, sizeof (*settings)); + int def_num; + + pslr_setting_def_t *defs = setting_file_process(cameraid,&def_num); + int def_index=0; + while (def_index < def_num) { + pslr_bool_setting bool_setting; + pslr_uint16_setting uint16_setting; + pslr_setting_def_t def = defs[def_index]; + if (strncmp(def.type, "boolean", 7) == 0) { + bool_setting = ipslr_settings_parse_bool(buf, &def); + } else if (strcmp(def.type, "uint16") == 0) { + uint16_setting = ipslr_settings_parse_uint16(buf, &def); + } else { + fprintf(stderr, "Invalid json type: %s\n", def.type); + } + if (strcmp(def.name, "bulb_mode_press_press") == 0) { + settings->bulb_mode_press_press = bool_setting; + } else if (strcmp(def.name, "remote_bulb_mode_press_press") == 0) { + settings->remote_bulb_mode_press_press = bool_setting; + } else if (strcmp(def.name, "one_push_bracketing") == 0) { + settings->one_push_bracketing = bool_setting; + } else if (strcmp(def.name, "bulb_timer") == 0) { + settings->bulb_timer = bool_setting; + } else if (strcmp(def.name, "bulb_timer_sec") == 0) { + settings->bulb_timer_sec = uint16_setting; + } else if (strcmp(def.name, "using_aperture_ring") == 0) { + settings->using_aperture_ring = bool_setting; + } else if (strcmp(def.name, "shake_reduction") == 0) { + settings->shake_reduction = bool_setting; + } else if (strcmp(def.name, "astrotracer") == 0) { + settings->astrotracer = bool_setting; + } else if (strcmp(def.name, "astrotracer_timer_sec") == 0) { + settings->astrotracer_timer_sec = uint16_setting; + } else if (strcmp(def.name, "horizon_correction") == 0) { + settings->horizon_correction = bool_setting; + } + ++def_index; + } +} + + +ipslr_model_info_t camera_models[] = { + { 0x12aa2, "*ist DS", true, true, true, false, false, false, 264, 3, {6, 4, 2}, 5, 4000, 200, 3200, 200, 3200, PSLR_JPEG_IMAGE_TONE_BRIGHT, false, 11, ipslr_status_parse_istds}, + { 0x12cd2, "K20D", false, true, true, false, false, false, 412, 4, {14, 10, 6, 2}, 7, 4000, 100, 3200, 100, 6400, PSLR_JPEG_IMAGE_TONE_MONOCHROME, true, 11, ipslr_status_parse_k20d}, + { 0x12c1e, "K10D", false, true, true, false, false, false, 392, 3, {10, 6, 2}, 7, 4000, 100, 1600, 100, 1600, PSLR_JPEG_IMAGE_TONE_BRIGHT, false, 11, ipslr_status_parse_k10d}, + { 0x12c20, "GX10", false, true, true, false, false, false, 392, 3, {10, 6, 2}, 7, 4000, 100, 1600, 100, 1600, PSLR_JPEG_IMAGE_TONE_BRIGHT, false, 11, ipslr_status_parse_k10d}, + { 0x12cd4, "GX20", false, true, true, false, false, false, 412, 4, {14, 10, 6, 2}, 7, 4000, 100, 3200, 100, 6400, PSLR_JPEG_IMAGE_TONE_MONOCHROME, true, 11, ipslr_status_parse_k20d}, + { 0x12dfe, "K-x", false, true, true, false, false, false, 436, 3, {12, 10, 6, 2}, 9, 6000, 200, 6400, 100, 12800, PSLR_JPEG_IMAGE_TONE_MONOCHROME, true, 11, ipslr_status_parse_kx}, //muted: bug + { 0x12cfa, "K200D", false, true, true, false, false, false, 408, 3, {10, 6, 2}, 9, 4000, 100, 1600, 100, 1600, PSLR_JPEG_IMAGE_TONE_MONOCHROME, true, 11, ipslr_status_parse_k200d}, + { 0x12db8, "K-7", false, true, true, false, false, false, 436, 4, {14, 10, 6, 2}, 9, 8000, 100, 3200, 100, 6400, PSLR_JPEG_IMAGE_TONE_MUTED, true, 11, ipslr_status_parse_kx}, + { 0x12e6c, "K-r", false, true, true, false, false, false, 440, 3, {12, 10, 6, 2}, 9, 6000, 200,12800, 100, 25600, PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS, true, 11, ipslr_status_parse_kr}, + { 0x12e76, "K-5", false, true, true, false, false, false, 444, 4, {16, 10, 6, 2}, 9, 8000, 100,12800, 80, 51200, PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS, true, 11, ipslr_status_parse_k5}, + { 0x12d72, "K-2000", false, true, true, false, false, false, 412, 3, {10, 6, 2}, 9, 4000, 100, 3200, 100, 3200, PSLR_JPEG_IMAGE_TONE_MONOCHROME, true, 11, ipslr_status_parse_km}, + { 0x12d73, "K-m", false, true, true, false, false, false, 412, 3, {10, 6, 2}, 9, 4000, 100, 3200, 100, 3200, PSLR_JPEG_IMAGE_TONE_MONOCHROME, true, 11, ipslr_status_parse_km}, + { 0x12f52, "K-30", false, true, false, false, false, false, 452, 3, {16, 12, 8, 5}, 9, 6000, 100,12800, 100, 25600, PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS, true, 11, ipslr_status_parse_k30}, + { 0x12ef8, "K-01", false, true, true, false, false, false, 452, 3, {16, 12, 8, 5}, 9, 4000, 100,12800, 100, 25600, PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS, true, 11, ipslr_status_parse_k01}, + { 0x12f70, "K-5II", false, true, true, false, false, false, 444, 4, {16, 10, 6, 2}, 9, 8000, 100, 12800, 80, 51200, PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS, true, 11, ipslr_status_parse_k5}, + { 0x12f71, "K-5IIs", false, true, true, false, false, false, 444, 4, {16, 10, 6, 2}, 9, 8000, 100, 12800, 80, 51200, PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS, true, 11, ipslr_status_parse_k5}, + { 0x12fb6, "K-50", false, true, true, false, false, false, 452, 4, {16, 12, 8, 5}, 9, 6000, 100, 51200, 100, 51200, PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS, true, 11, ipslr_status_parse_k50}, + { 0x12fc0, "K-3", false, true, true, false, false, true, 452, 4, {24, 14, 6, 2}, 9, 8000, 100, 51200, 100, 51200, PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS, true, 27, ipslr_status_parse_k3}, + { 0x1309c, "K-3II", false, false, true, true, false, true, 452, 4, {24, 14, 6, 2}, 9, 8000, 100, 51200, 100, 51200, PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS, true, 27, ipslr_status_parse_k3}, + { 0x12fca, "K-500", false, true, true, false, false, false, 452, 3, {16, 12, 8, 5}, 9, 6000, 100, 51200, 100, 51200, PSLR_JPEG_IMAGE_TONE_CROSS_PROCESSING, true, 11, ipslr_status_parse_k500}, + // only limited support from here + { 0x12994, "*ist D", true, true, true, false, false, false, 0, 3, {6, 4, 2}, 3, 4000, 200, 3200, 200, 3200, PSLR_JPEG_IMAGE_TONE_NONE, false, 11, NULL}, // buffersize: 264 + { 0x12b60, "*ist DS2", true, true, true, false, false, false, 0, 3, {6, 4, 2}, 5, 4000, 200, 3200, 200, 3200, PSLR_JPEG_IMAGE_TONE_BRIGHT, false, 11, NULL}, + { 0x12b1a, "*ist DL", true, true, true, false, false, false, 0, 3, {6, 4, 2}, 5, 4000, 200, 3200, 200, 3200, PSLR_JPEG_IMAGE_TONE_BRIGHT, false, 11, NULL}, + { 0x12b80, "GX-1L", true, true, true, false, false, false, 0, 3, {6, 4, 2}, 5, 4000, 200, 3200, 200, 3200, PSLR_JPEG_IMAGE_TONE_BRIGHT, false, 11, NULL}, + { 0x12b9d, "K110D", false, true, true, false, false, false, 0, 3, {6, 4, 2}, 5, 4000, 200, 3200, 200, 3200, PSLR_JPEG_IMAGE_TONE_BRIGHT, false, 11, NULL}, + { 0x12b9c, "K100D", true, true, true, false, false, false, 0, 3, {6, 4, 2}, 5, 4000, 200, 3200, 200, 3200, PSLR_JPEG_IMAGE_TONE_BRIGHT, false, 11, NULL}, + { 0x12ba2, "K100D Super", true, true, true, false, false, false, 0, 3, {6, 4, 2}, 5, 4000, 200, 3200, 200, 3200, PSLR_JPEG_IMAGE_TONE_BRIGHT, false, 11, NULL}, + { 0x1301a, "K-S1", false, true, true, false, false, true, 452, 3, {20, 12, 6, 2}, 9, 6000, 100, 51200, 100, 51200, PSLR_JPEG_IMAGE_TONE_CROSS_PROCESSING, true, 11, ipslr_status_parse_ks1}, + { 0x13024, "K-S2", false, true, true, false, false, true, 452, 3, {20, 12, 6, 2}, 9, 6000, 100, 51200, 100, 51200, PSLR_JPEG_IMAGE_TONE_CROSS_PROCESSING, true, 11, ipslr_status_parse_k3}, + { 0x13092, "K-1", false, false, true, true, false, true, 456, 3, {36, 22, 12, 2}, 9, 8000, 100, 204800, 100, 204800, PSLR_JPEG_IMAGE_TONE_FLAT, true, 33, ipslr_status_parse_k1 }, + { 0x13240, "K-1 II", false, false, true, true, false, true, 456, 3, {36, 22, 12, 2}, 9, 8000, 100, 819200, 100, 819200, PSLR_JPEG_IMAGE_TONE_FLAT, true, 33, ipslr_status_parse_k1 }, + { 0x13222, "K-70", false, false, true, true, true, true, 456, 3, {24, 14, 6, 2}, 9, 6000, 100, 102400, 100, 102400, PSLR_JPEG_IMAGE_TONE_AUTO, true, 11, ipslr_status_parse_k70}, + { 0x1322c, "KP", false, false, true, true, false, true, 456, 3, {24, 14, 6, 2}, 9, 6000, 100, 819200, 100, 819200, PSLR_JPEG_IMAGE_TONE_AUTO, true, 27, ipslr_status_parse_k70} +}; + +ipslr_model_info_t *find_model_by_id( uint32_t id ) { + int i; + for ( i = 0; i + Remote control of Pentax DSLR cameras. + + Support for K200D added by Jens Dreyer 04/2011 + Support for K-r added by Vincenc Podobnik 06/2011 + Support for K-30 added by Camilo Polymeris 09/2012 + Support for K-01 added by Ethan Queen 01/2013 + Support for K-3 added by Tao Wang 01/2016 + + based on: + + PK-Remote + Remote control of Pentax DSLR cameras. + Copyright (C) 2008 Pontus Lidman + + PK-Remote for Windows + Copyright (C) 2010 Tomasz Kos + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + and GNU Lesser General Public License + along with this program. If not, see . + */ +#ifndef PSLR_MODEL_H +#define PSLR_MODEL_H + +#include "pslr_enum.h" +#include "pslr_scsi.h" + +#define MAX_RESOLUTION_SIZE 4 +#define MAX_STATUS_BUF_SIZE 456 +#define SETTINGS_BUFFER_SIZE 1024 +#define MAX_SEGMENTS 4 + +typedef struct ipslr_handle ipslr_handle_t; + +typedef struct { + int32_t nom; + int32_t denom; +} pslr_rational_t; + +typedef struct { + uint16_t bufmask; + uint32_t current_iso; + pslr_rational_t current_shutter_speed; + pslr_rational_t current_aperture; + pslr_rational_t lens_max_aperture; + pslr_rational_t lens_min_aperture; + pslr_rational_t set_shutter_speed; + pslr_rational_t set_aperture; + pslr_rational_t max_shutter_speed; + uint32_t auto_bracket_mode; + pslr_rational_t auto_bracket_ev; + uint32_t auto_bracket_picture_count; + uint32_t auto_bracket_picture_counter; + uint32_t fixed_iso; + uint32_t jpeg_resolution; + uint32_t jpeg_saturation; + uint32_t jpeg_quality; + uint32_t jpeg_contrast; + uint32_t jpeg_sharpness; + uint32_t jpeg_image_tone; + uint32_t jpeg_hue; + pslr_rational_t zoom; + int32_t focus; + uint32_t image_format; + uint32_t raw_format; + uint32_t light_meter_flags; + pslr_rational_t ec; + uint32_t custom_ev_steps; + uint32_t custom_sensitivity_steps; + uint32_t exposure_mode; + uint32_t scene_mode; + uint32_t user_mode_flag; + uint32_t ae_metering_mode; + uint32_t af_mode; + uint32_t af_point_select; + uint32_t selected_af_point; + uint32_t focused_af_point; + uint32_t auto_iso_min; + uint32_t auto_iso_max; + uint32_t drive_mode; + uint32_t shake_reduction; + uint32_t white_balance_mode; + uint32_t white_balance_adjust_mg; + uint32_t white_balance_adjust_ba; + uint32_t flash_mode; + int32_t flash_exposure_compensation; /* 1/256 */ + int32_t manual_mode_ev; /* 1/10 */ + uint32_t color_space; + uint32_t lens_id1; + uint32_t lens_id2; + uint32_t battery_1; + uint32_t battery_2; + uint32_t battery_3; + uint32_t battery_4; +} pslr_status; + +typedef enum { + PSLR_SETTING_STATUS_UNKNOWN, + PSLR_SETTING_STATUS_READ, + PSLR_SETTING_STATUS_HARDWIRED, + PSLR_SETTING_STATUS_NA +} pslr_setting_status_t; + +typedef struct { + pslr_setting_status_t pslr_setting_status; + bool value; +} pslr_bool_setting; + +typedef struct { + pslr_setting_status_t pslr_setting_status; + uint16_t value; +} pslr_uint16_setting; + +typedef struct { + pslr_bool_setting one_push_bracketing; + pslr_bool_setting bulb_mode_press_press; + pslr_bool_setting bulb_timer; + pslr_uint16_setting bulb_timer_sec; + pslr_bool_setting using_aperture_ring; + pslr_bool_setting shake_reduction; + pslr_bool_setting astrotracer; + pslr_uint16_setting astrotracer_timer_sec; + pslr_bool_setting horizon_correction; + pslr_bool_setting remote_bulb_mode_press_press; +} pslr_settings; + +typedef struct { + const char *name; + unsigned long address; + const char *value; + const char *type; +} pslr_setting_def_t; + +typedef void (*ipslr_status_parse_t)(ipslr_handle_t *p, pslr_status *status); +pslr_setting_def_t *find_setting_by_name (pslr_setting_def_t *array, int array_length, char *name); +void ipslr_settings_parser_json(const char *cameraid, ipslr_handle_t *p, pslr_settings *settings); +pslr_setting_def_t *setting_file_process(const char *cameraid, int *def_num); + +typedef struct { + uint32_t id; // Pentax model ID + const char *name; // name + bool old_scsi_command; // true for *ist cameras, false for the newer cameras + bool old_bulb_mode; // true for older cameras + bool need_exposure_mode_conversion; // is exposure_mode_conversion required + bool bufmask_command; // true if bufmask determined by calling command 0x02 0x00 + bool bufmask_single; // true if buffer cannot handle multiple images + bool is_little_endian; // whether the return value should be parsed as little-endian + int status_buffer_size; // status buffer size in bytes + int max_jpeg_stars; // maximum jpeg stars + int jpeg_resolutions[MAX_RESOLUTION_SIZE]; // jpeg resolution table + int jpeg_property_levels; // 5 [-2, 2] or 7 [-3,3] or 9 [-4,4] + int fastest_shutter_speed; // fastest shutter speed denominator + int base_iso_min; // base iso minimum + int base_iso_max; // base iso maximum + int extended_iso_min; // extended iso minimum + int extended_iso_max; // extended iso maximum + pslr_jpeg_image_tone_t max_supported_image_tone; // last supported jpeg image tone + bool has_jpeg_hue; // camera has jpeg hue setting + int af_point_num; // number of AF points + ipslr_status_parse_t status_parser_function; // parse function for status buffer +} ipslr_model_info_t; + +typedef struct { + uint32_t offset; + uint32_t addr; + uint32_t length; +} ipslr_segment_t; + +struct ipslr_handle { + FDTYPE fd; + pslr_status status; + pslr_settings settings; + uint32_t id; + ipslr_model_info_t *model; + ipslr_segment_t segments[MAX_SEGMENTS]; + uint32_t segment_count; + uint32_t offset; + uint8_t status_buffer[MAX_STATUS_BUF_SIZE]; + uint8_t settings_buffer[SETTINGS_BUFFER_SIZE]; +}; + +ipslr_model_info_t *find_model_by_id( uint32_t id ); + +int get_hw_jpeg_quality( ipslr_model_info_t *model, int user_jpeg_stars); + +uint32_t get_uint32_be(uint8_t *buf); +uint32_t get_uint32_le(uint8_t *buf); +void set_uint32_be(uint32_t v, uint8_t *buf); +void set_uint32_le(uint32_t v, uint8_t *buf); + +typedef uint32_t (*get_uint32_func)(uint8_t *buf); +typedef uint16_t (*get_uint16_func)(const uint8_t *buf); +typedef int32_t (*get_int32_func)(uint8_t *buf); + +char *shexdump(uint8_t *buf, uint32_t bufLen); +void hexdump(uint8_t *buf, uint32_t bufLen); +void hexdump_debug(uint8_t *buf, uint32_t bufLen); +const char* int_to_binary( uint16_t x ); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_scsi.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_scsi.h new file mode 100644 index 00000000..da5500c0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/pentax/pslr_scsi.h @@ -0,0 +1,91 @@ +/* + pkTriggerCord + Copyright (C) 2011-2019 Andras Salamon + Remote control of Pentax DSLR cameras. + + based on: + + PK-Remote + Remote control of Pentax DSLR cameras. + Copyright (C) 2008 Pontus Lidman + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + and GNU Lesser General Public License + along with this program. If not, see . + */ + +#ifndef PSLR_SCSI_H +#define PSLR_SCSI_H + +#include +#include +#include +#include + +extern bool debug; +extern void write_debug( const char* message, ... ); + +#ifdef ANDROID +#include +#define DPRINT(...) __android_log_print(ANDROID_LOG_DEBUG, "PkTriggerCord", __VA_ARGS__) +#else +#ifdef LIBGPHOTO2 +#include +#define DPRINT(x...) gp_log (GP_LOG_DEBUG, "pentax", x) +#else +#define DPRINT(x...) write_debug(x) +#endif +#endif + +#define CHECK(x) do { \ + int __r; \ + __r = (x); \ + if (__r != PSLR_OK) { \ + fprintf(stderr, "%s:%d:%s failed: %d\n", __FILE__, __LINE__, #x, __r); \ + return __r; \ + } \ +} while (0) + +typedef enum { + PSLR_OK = 0, + PSLR_DEVICE_ERROR, + PSLR_SCSI_ERROR, + PSLR_COMMAND_ERROR, + PSLR_READ_ERROR, + PSLR_NO_MEMORY, + PSLR_PARAM, /* Invalid parameters to API */ + PSLR_ERROR_MAX +} pslr_result; + +/* This also could be used to specify FDTYPE HANDLE for Win32, but this seems tricky with includes */ +#ifdef LIBGPHOTO2 +#define FDTYPE GPPort* +#else +/* classic UNIX style handle */ +#define FDTYPE int +#endif + +int scsi_read(FDTYPE sg_fd, uint8_t *cmd, uint32_t cmdLen, + uint8_t *buf, uint32_t bufLen); + +int scsi_write(FDTYPE sg_fd, uint8_t *cmd, uint32_t cmdLen, + uint8_t *buf, uint32_t bufLen); + +char **get_drives(int *drive_num); + +pslr_result get_drive_info(char* drive_name, FDTYPE* device, + char* vendor_id, int vendor_id_size_max, + char* product_id, int product_id_size_max); + +void close_drive(FDTYPE *device); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/ChangeLog new file mode 100644 index 00000000..c95170e4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/ChangeLog @@ -0,0 +1,149 @@ +2005-04-09 Marcus Meissner + + * pdc320.c: Check for both : and non : names + in model detection. + +2004-01-08 Marcus Meissner + + From Mark Slemko + * dlink350f.c, dlink350f.h, pdc640.c: + Orientation, byte order, and brightness correction for the + D-Link 350F + +2004-01-04 Marcus Meissner + + * pdc640.c: Use different names for Skanhex SX-35, or + the lower level gets confused. + +2003-12-28 Lutz Mueller + + * pdc640.c: Martin Sarfy reports that his camera + (Trust 350FT PowerC@m FLASH, 0x6d6:0x2d) works using the driver + for 0x6d6:0x2e. + +2003-09-15 Marcus Meissner + + Reported by Andreas Kies: + + * pdc640.c: Remove :, since ability.mode again + contains names without :, or we do not find + our cameras. + Use flip_both for UMAX AstraPix. + +2003-05-15 Lutz Mueller + + Patch by Drew Sullivan : + + * pdc640.c: Correctly post-process images taken by a SiPix:Stylecam. + +2003-05-13 Marcus Meissner + + * pdc640.c, jd350e.c, jd350e.h: Applied Trustcam 350FS + fix from Hans de Goede + +2003-04-26 Marcus Meissner + + * pdc640.c: compression type 1 appears to be just + like compression type 2, at least for the SiPix + Stylecam. + +2003-04-17 Marcus Meissner + + * pdc640.c: Added SiPix StyleCam (0x0d64/0x1001), + UMAX AstraPix 320s (same) and DLINK DSC-350F + (0xd64/0x1021). + +2003-03-02 Marcus Meissner + + * pdc640.c,jd350e.[ch]: Meade binocs need filter and + flip vertical. Renamed rotate180 to flip_vertical. + +2003-02-25 Marcus Meissner + + * pdc320.c,h: Rewritten the command/reply handling + to a large degree after reverse engineering the + windows driver. + + * pdc320.html: Started documenting the command structure. + +2003-02-18 Marcus Meissner + + * pdc640.c: Added ScopeCam (www.meade.com). + +2003-02-04 Marcus Meissner + + * pdc640.c: Skanhex-SX 35 IDs added, USB id for + JD350 entrance added (from Joerg Hackenberg). + +2003-01-30 Marcus Meissner + + * pdc640.c: Added support for Typhoon Stylocam, + required some stability fixes for the USB communication. + +2003-01-14 Marcus Meissner + + * pdc320.c, pdc640.c, pdc700.c: Translate some strings. + +2002-11-17 Marcus Meissner + + * pdc700.c: Do not cast bween time_t* and int*. + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-09-15 Marcus Meissner + + * pdc640.c: Added Jenoptik JD350v(ideo) USB support. + +2002-03-22 Lutz Müller + + Patch by Andrea Suatoni : + + * pdc640.c: IRIX fixes. + +2002-03-19 Greg Ingram + + * pdc700.c: Added pdc700_set_date() which appears to work. Is the + date widget working completely? Added the ability to select image + size (resolution). The configuration dialog was getting rather too + tall so I split it up onto three sections (tabs). + + * pdc700.c: Fix off-by-one thinko in get_config where the + camera's month datum is one-based but tm.tm_mon is + zero-based. + +2002-01-15 Lutz Müller + + * pdc700.c: Introduced a bug in last fix... + +2002-01-15 Lutz Müller + + * pdc700.c: When status is PDC_STATUS_FAIL, the camera will only + send the checksum, nothing else. + +2002-01-13 Lutz Müller + + * pdc700.c: Remove references to gp_camera_set_error. + +2002-01-09 Dan Fandrich + + * jd350e.c: Added definitions of MIN and MAX + +2001-12-05 Lutz Müller + + * pdc640.c: Includes again :-) + +2001-12-05 Lutz Müller + + * pdc320.h + * pdc640.c: Still fixing includes + +2001-12-05 Lutz Müller + + * pdc640.c: Fix includes. + +2001-11-28 Lutz Müller + + * pdc700.c: Rename PDC700_FIRST into PDC700_FAIL. Try to implement + some error recovery strategy. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/Makefile-files new file mode 100644 index 00000000..e58a5e98 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/Makefile-files @@ -0,0 +1,31 @@ +# -*- Makefile -*- + +EXTRA_DIST += polaroid/jpeg.txt polaroid/jpeghead.h \ + polaroid/pdc320.html polaroid/gt98x.html polaroid/ChangeLog + + +EXTRA_LTLIBRARIES += polaroid_pdc320.la + +polaroid_pdc320_la_SOURCES = polaroid/pdc320.c polaroid/pdc320.h +polaroid_pdc320_la_LDFLAGS = $(camlib_ldflags) +polaroid_pdc320_la_DEPENDENCIES = $(camlib_dependencies) +polaroid_pdc320_la_LIBADD = $(camlib_libadd) + + +EXTRA_LTLIBRARIES += polaroid_pdc640.la + +polaroid_pdc640_la_SOURCES = polaroid/pdc640.c \ + polaroid/jd350e.h polaroid/jd350e.c \ + polaroid/jd350e_red.h polaroid/jd350e_blue.h \ + polaroid/dlink350f.c polaroid/dlink350f.h +polaroid_pdc640_la_LDFLAGS = $(camlib_ldflags) +polaroid_pdc640_la_DEPENDENCIES = $(camlib_dependencies) +polaroid_pdc640_la_LIBADD = $(camlib_libadd) + + +EXTRA_LTLIBRARIES += polaroid_pdc700.la + +polaroid_pdc700_la_SOURCES = polaroid/pdc700.c +polaroid_pdc700_la_LDFLAGS = $(camlib_ldflags) +polaroid_pdc700_la_DEPENDENCIES = $(camlib_dependencies) +polaroid_pdc700_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/dlink350f.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/dlink350f.c new file mode 100644 index 00000000..8d4cf888 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/dlink350f.c @@ -0,0 +1,108 @@ +/* dlink350f.c + * + * orientation, byte order, and brightness correction for the D-Link 350F + * + * Copyright 2003 Mark Slemko + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include + +#include +#include + +#define GP_MODULE "dlink350f" + +#include "dlink350f.h" + +#define RED(p,x,y,w) *((p)+3*((y)*(w)+(x)) ) +#define GREEN(p,x,y,w) *((p)+3*((y)*(w)+(x))+1) +#define BLUE(p,x,y,w) *((p)+3*((y)*(w)+(x))+2) + +#define SWAP(a,b) {unsigned char t=(a); (a)=(b); (b)=t;} + +#define MINMAX(a,min,max) { (min)=MIN(min,a); (max)=MAX(max,a); } + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + +/* + * function added for the D-Link DSC 350F - written by Mark Slemko - mslemko@netscape.net + * This function correctly adjusts the color and orientation of the image + */ +int dlink_dsc350f_postprocessing_and_flip_both (int width, int height, unsigned char* rgb) { + unsigned char *start, *end, c; + + int whichcolor = 0; + int lowred=255, lowgreen=255, lowblue=255; + int hired=0, higreen=0, hiblue=0; + + GP_DEBUG("flipping byte order"); + + /* flip image left/right and top/bottom (actually reverse byte order) */ + start = rgb; + end = start + ((width * height) * 3); + + while (start < end) { + c = *start; + + /* validation - debugging info - collect the color range info + * for first half of image. + */ + switch (whichcolor % 3) { + case 0: /* blue */ + MINMAX((int)c,lowblue,hiblue); + break; + case 1: /* green */ + MINMAX((int)c,lowgreen,higreen); + break; + default: /* red */ + MINMAX((int)c,lowred,hired); + break; + } + + /* adjust color magnitude, since it appears that the 350f only had 7 bits of color info */ + *start++ = *--end << 1; + *end = c << 1; + + whichcolor++; + } + + /* could do more color processing here + GP_DEBUG("adjusting color"); + + // adjust image colours + start = rgb; + end = start + ((width * height) * 3); + + while (start < end) { + c = *start++; + } + */ + + /* show the color range of image in debug mode. */ + GP_DEBUG("\nred low = %d high = %d\ngreen low = %d high = %d\nblue low = %d high = %d\n", lowred,hired, lowgreen,higreen, lowblue,hiblue); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/dlink350f.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/dlink350f.h new file mode 100644 index 00000000..a4390280 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/dlink350f.h @@ -0,0 +1,26 @@ + /* dlink350f.h + * + * orientation, byte order, and brightness correction for the D-Link 350F + * + * Copyright 2003 Mark Slemko + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __DLINK350F_H__ +#define __DLINK350F_H__ +int dlink_dsc350f_postprocessing_and_flip_both (int width, int height, unsigned char* rgb); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/gt98x.html b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/gt98x.html new file mode 100644 index 00000000..38fc2905 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/gt98x.html @@ -0,0 +1,249 @@ +This document describes the protocol used by the Grandtek/Grandtech 980, +981,and 9811 chips, supported by the pdc640 driver. +

+The chip is serial and USB capable, some cameras have only serial +connections, some have only USB connections. +

+This document describes the USB communication. +

+The USB command is at most 3 bytes long: A B C +and is converted into an USB control message:
+ 0xc0 0x10 <A> <B> <C> <checksum> 0x40 +

+The checksum is calculated by:
+ (A^0x34)+(B^0xcb)+(C^0x67)+0x14f; +

+All commands return 8 byte of control data, which contains A at +the start of it. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameStructureArgumentsResult buffer
READ VERSION0x05 x xarguments are unspecified
    +
  1. 0x05 (echo)
  2. +
  3. hardware version
  4. +
  5. firmware version
  6. +
+
SELECT PICTURE TYPE0x61 type 0 0type can be: +
    +
  • 0x20: GET CALIBRATION PARAM
  • + ...FIXME: Marcus fill in ... +
+
+ This is followed by a SEND DRAM command + and a bulkread usually, depending on type. +
NEW BAUD0x69 baudcodebaudcode: +
    +
  1. 2400
  2. +
  3. 3600
  4. +
  5. 4800
  6. +
  7. 7200
  8. +
  9. 9600
  10. +
  11. 14400
  12. +
  13. 19200
  14. +
  15. 28800
  16. +
  17. 38400
  18. +
  19. 57600
  20. +
  21. 76800
  22. +
  23. 115200
  24. +
  25. 153600
  26. +
  27. 230400
  28. +
  29. 307200
  30. +
  31. 460800
  32. +
+
Set baudrate. Only useful for serial I guess.
AT0x41 0x00 0x00 0x00Appears to be some kind of ping command.
SELECT PICTURE0xf6 picnum 0x00 0x00picnum is the picture number, starting with 0.Selects the specified picture. At offset 7 of the return buffer is the new picture.
SICE DOWNLOAD0xf2 lsb msblsb/msb is the size? offset? of the uploaded firmware.Function unclear.
QUERY STORAGE FULL0x92 + Storage card is:
+ 1: Full, otherwise: Empty. +
SEND PARAMETER0xf8 lsb msblsb/msb is the size. This is followed by a USB bulk write.Unclear.
WRITE REG0x81 reg valSets register reg to value valSee pseudo function below.
READ REG0xf9 regReads register reg1: return value (1 byte)
SIMSCANNER0x86 0 0 0Only for serial. Whatever it does.
DUAL CAPTURE0x87 00: echo (0x87) 1..4: some values.
PUSH BUTTON0xfd 0 00: echo (0xfd) 1: reply value.
SNAP0x2d0: echo (0xfd) 1: reply value.
WAIT EXPOSURE0x930: echo (0xfd) 1: return value. Wait for 1.
SEND DRAM0x15 lsb1 msb1 lsb2 msb2Followed by bulk read. parameters are a bit unclear.
LOCK SNAP0x90
FREE SNAP0x91
RS232 INIT0x01Serial only I guess.
ERASE IMAGE0x59 xWith x: +
    +
  1. Delete all images. +
  2. Delete the last image. +
+
NORMAL EXIT0xfc
88 Command0x88
+ +

+
+void
+DOWNLOAD_DATA(type, buffer, size) {
+	SELECT_PICTURE_TYPE(type);
+	SEND_DRAM(buffer, size);
+}
+
+/* Unclear why and how used */
+void
+SEND_USER_COMMAND(cmd, inputbuffer, inputsize, outputbuffer, outputsize) {
+	SEND_PARAMETER(&cmd, 1);
+	if (inputbuffer && inputsize) {
+		SEND_PARAMETER(inputbuffer, inputsize);
+	}
+	if (outputbuffer && outputsize) {
+		SEND_PARAMETER(&outputsize, 4);
+		DOWNLOAD_DATA(0x21, outputbuffer, outputsize);
+	}
+}
+
+void
+WRITE_REG_Command(byte reg, byte val, int porttype) {
+	// strangely different between USB/SERIAL
+	if (porttype == USB) {
+		byte buf[2];
+		buf[0] = reg;
+		buf[1] = val;
+		SEND_PARAMETERk(buf, 2);
+	} else {
+		call_driver(0x81, reg, val);
+	}
+}
+
+void
+take_picture(int checkstoragefull, int locksnapflag, int waitforexpflag) {
+	byte val;
+
+	if (checkstoragefull) QUERY_STORAGE_FULL():
+	if (locksnapflag) LOCK_SNAP();
+	SNAP();
+	if (waitforexpflag) {
+		do {
+			Sleep(500);
+			WAIT_EXPOSURE(&val);
+		} while (val != 1);
+	}
+	if (locksnapflag) FREE_SNAP();
+}
+
diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e.c new file mode 100644 index 00000000..ba0836bd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e.c @@ -0,0 +1,214 @@ +/* jd350e.c + * + * White balancing and brightness correction for the Jenoptik + * JD350 entrance camera + * + * Copyright 2001 Michael Trawny + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include + +#include +#include + +#include "jd350e.h" +#include "jd350e_red.h" +/*#include "jd350e_blue.h"*/ + +#define GP_MODULE "jd350e" + +#define THRESHOLD 0xf8 + +#define RED(p,x,y,w) *((p)+3*((y)*(w)+(x)) ) +#define GREEN(p,x,y,w) *((p)+3*((y)*(w)+(x))+1) +#define BLUE(p,x,y,w) *((p)+3*((y)*(w)+(x))+2) + +#define SWAP(a,b) {unsigned char t=(a); (a)=(b); (b)=t;} + +#define MINMAX(a,min,max) { (min)=MIN(min,a); (max)=MAX(max,a); } + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + + +int jd350e_postprocessing(int width, int height, unsigned char* rgb){ + int + x,y, + red_min=255, red_max=0, + blue_min=255, blue_max=0, + green_min=255, green_max=0; + double + min, max, amplify; + + /* reverse image row by row... */ + + for( y=0; y red_max ){ +#endif + /* outdoor daylight : red color correction curve*/ + GP_DEBUG( "daylight mode"); + for( y=0; y blue_max ){ + /* indoor electric light */ + GP_DEBUG( "electric light mode"); + for( y=0; y (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + + for(i=0; i<(width*height*3); i++) + MINMAX( rgb[i], min, max ); + + amplify = 255.0/(max-min); + + for(i=0; i<(width*height*3); i++) + { + int val = amplify * (rgb[i] - min); + + if(val < brightness_adjust) + rgb[i] = val * 2; + else if (val > (255 - brightness_adjust)) + rgb[i] = 255; + else + rgb[i] = val + brightness_adjust; + } + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e.h new file mode 100644 index 00000000..6b3916cd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e.h @@ -0,0 +1,29 @@ +/* jd350e.h + * + * White balancing and brightness correction for the Jenoptik + * JD350 entrance camera + * + * Copyright 2001 Michael Trawny + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __JD350E_H__ +#define __JD350E_H__ +int jd350e_postprocessing(int width, int height, unsigned char* rgb); +int jd350e_postprocessing_and_flip(int width, int height, unsigned char* rgb); +int trust350fs_postprocessing(int width, int height, unsigned char* rgb); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e_blue.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e_blue.h new file mode 100644 index 00000000..c30e1570 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e_blue.h @@ -0,0 +1,87 @@ +/* jd350e_blue.h + * + * White balancing curve for indoor / electric light pictures + * (experimental) + * + * Copyright 2001 Michael Trawny + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +static unsigned jd350e_blue_curve [] = { + 0, 2, 5, 7, + 10, 13, 15, 18, + 21, 22, 25, 28, + 31, 34, 36, 39, + 41, 45, 47, 51, + 53, 56, 58, 62, + 64, 67, 69, 72, + 74, 77, 79, 81, + 84, 86, 89, 92, + 95, 99, 102, 107, + 110, 113, 116, 119, + 121, 122, 124, 125, + 127, 129, 131, 133, + 136, 139, 141, 144, + 147, 149, 151, 154, + 156, 159, 161, 164, + 166, 168, 170, 173, + 175, 177, 180, 182, + 184, 187, 189, 192, + 194, 196, 198, 201, + 203, 206, 208, 211, + 213, 215, 217, 219, + 220, 220, 220, 220, + 221, 221, 221, 221, + 221, 222, 222, 222, + 222, 223, 223, 223, + 223, 223, 224, 224, + 224, 224, 224, 225, + 225, 225, 225, 225, + 226, 226, 226, 226, + 226, 227, 227, 227, + 227, 227, 228, 228, + 228, 228, 229, 229, + 229, 229, 229, 230, + 230, 230, 230, 230, + 231, 231, 231, 231, + 231, 232, 232, 232, + 232, 232, 233, 233, + 233, 233, 234, 234, + 234, 234, 234, 235, + 235, 235, 235, 235, + 236, 236, 236, 236, + 236, 237, 237, 237, + 237, 237, 238, 238, + 238, 238, 239, 239, + 239, 239, 239, 240, + 240, 240, 240, 240, + 241, 241, 241, 241, + 241, 242, 242, 242, + 242, 242, 243, 243, + 243, 243, 243, 244, + 244, 244, 244, 245, + 245, 245, 245, 245, + 246, 246, 246, 246, + 246, 247, 247, 247, + 247, 247, 248, 248, + 248, 248, 248, 249, + 249, 249, 249, 250, + 250, 250, 250, 250, + 251, 251, 251, 251, + 251, 252, 252, 252, + 252, 252, 253, 253, + 253, 253, 253, 254, + 254, 254, 254, 255}; diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e_red.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e_red.h new file mode 100644 index 00000000..f1495e77 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jd350e_red.h @@ -0,0 +1,87 @@ +/* jd350e_red.h + * + * White balancing curve for daylight images (experimental) + * + * Copyright 2001 Michael Trawny + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + + static unsigned jd350e_red_curve [] = { + 0, 1, 2, 3, + 4, 5, 6, 8, + 9, 10, 11, 12, + 13, 15, 16, 17, + 18, 19, 20, 21, + 23, 24, 25, 25, + 26, 28, 31, 33, + 36, 39, 41, 43, + 45, 48, 50, 52, + 55, 57, 60, 62, + 64, 66, 69, 72, + 73, 75, 78, 80, + 81, 83, 86, 88, + 89, 90, 92, 97, + 98, 101, 107, 108, + 111, 114, 115, 117, + 119, 120, 121, 122, + 123, 127, 129, 133, + 132, 136, 137, 144, + 145, 147, 150, 153, + 154, 157, 158, 161, + 164, 167, 168, 170, + 172, 176, 178, 180, + 183, 184, 186, 190, + 191, 194, 193, 197, + 199, 201, 201, 207, + 206, 210, 211, 215, + 217, 219, 219, 221, + 225, 231, 231, 232, + 235, 235, 236, 242, + 243, 244, 245, 247, + 247, 250, 250, 251, + 250, 250, 250, 250, + 250, 250, 250, 250, + 250, 250, 250, 250, + 250, 250, 250, 250, + 250, 250, 250, 250, + 250, 250, 250, 250, + 250, 250, 251, 251, + 251, 251, 251, 251, + 251, 251, 251, 251, + 251, 251, 251, 251, + 251, 251, 251, 251, + 251, 251, 251, 251, + 251, 251, 251, 252, + 252, 252, 252, 252, + 252, 252, 252, 252, + 252, 252, 252, 252, + 252, 252, 252, 252, + 252, 252, 252, 252, + 252, 252, 252, 252, + 252, 253, 253, 253, + 253, 253, 253, 253, + 253, 253, 253, 253, + 253, 253, 253, 253, + 253, 253, 253, 253, + 253, 253, 253, 253, + 253, 253, 254, 254, + 254, 254, 254, 254, + 254, 254, 254, 254, + 254, 254, 254, 254, + 254, 254, 254, 254, + 254, 254, 254, 254, + 254, 254, 254, 255}; diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jpeg.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jpeg.txt new file mode 100644 index 00000000..c7feeaec --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jpeg.txt @@ -0,0 +1,99 @@ +This should help understand jpeg headers. +Warning: I don't understand the jpeg headers or jpegs that well! +Oh well, I will try to explain here anyway. + +Jpeg markers in general: +------------ +0xFF marker# lenth(2 bytes) data +length is the size of the information after the 0xFF XX + +Quantization tables: +------------------- +0xFF 0xDB 0x00 length tables +Funny.....for what I have the data is all 0x01's. +I guess there is a precision number in there somewhere, but I don't know. +For what I have, both quantization tables are precision 0. +Precision 1 will not be used by us. We need precision 0. +Jpeg's have two tables. +Table 0 should be luminance and table 1 should be chrominance. + +Start of Frame 0: +---------------- +0xFF 0xC0 0x00 length bits-per-pixel 0x00 height(2 bytes) width(2 bytes) + #_of_components sets(1 or 3 of them) +A set would be component# v/h quantization-table-number. +The v/h is the vertical to horizontal compression ratio. +I misplaced some info I had on the components here. +There are a couple of formats that the data could be in. +The 3 component ones are YCbCr and CMY. +The 4 component ones are YCbCrK and CMYK. +The #_of_components is set to 3 or 4 accordingly. +The component# can be something like 0 through 5 +The component# would refer to Y, Cb, Cr, C, M, or K +1=Y, 2=Cb, 3=Cr, but I forget what C, M and K are. + +Huffman tables: +-------------- +0xFF 0xC4 0x00 length ACorDC bits(16 bytes) Huffman_values +length is the size of that huffman table (you don't count the FFCO) +Repeat until length is exhausted (usually 4 Huffman tables): + If ACorDC>=0x10 it is an AC table, otherwise, it is a DC table + The length of the Huffman_values is the sum of the previous 16 bytes + +Ending piece of header (I have no clue what to call it): +------------------------------------------------------- +0xFF 0xDA length(2 bytes) #_of_components(1 byte) sets Ss Se Ah Al +Ss and Se, I guess are each one byte. +I guess Ah and Al are one byte total. +The sets are: component#(1 byte) DC+ACtable#'s +For DC+ACtable#'s, the high nibble is DC table# and the low nibble is AC table# + + # Quantization tables given in JPEG spec, section K.1 + + # This is table 0 (the luminance table): + 16 11 10 16 24 40 51 61 + 12 12 14 19 26 58 60 55 + 14 13 16 24 40 57 69 56 + 14 17 22 29 51 87 80 62 + 18 22 37 56 68 109 103 77 + 24 35 55 64 81 104 113 92 + 49 64 78 87 103 121 120 101 + 72 92 95 98 112 100 103 99 + + # This is table 1 (the chrominance table): + 17 18 24 47 99 99 99 99 + 18 21 26 66 99 99 99 99 + 24 26 56 99 99 99 99 99 + 47 66 99 99 99 99 99 99 + 99 99 99 99 99 99 99 99 + 99 99 99 99 99 99 99 99 + 99 99 99 99 99 99 99 99 + 99 99 99 99 99 99 99 99 + +Those are not in the order that it appears in the jpeg. +Those two tables are accessed in this order: + 1 3 4 10 11 21 22 36 + 2 5 9 12 20 23 35 37 + 6 8 13 19 24 34 38 49 + 7 14 18 25 33 39 48 50 + 15 17 26 32 40 47 51 58 + 16 27 31 41 46 52 57 59 + 28 30 42 45 53 56 60 63 + 29 43 44 54 55 61 62 64 + +Comparing the before and after of putting a really high and out of place number +in the table will help you locate bad spots in the table. It will make an +obvious distortion in the image. Use this technique to find the table entry +that affects the pixels that are distorted and then decrease the difference +between that table entry and the ones around it (look at the order table). + +The greater the difference between the numbers in the table, the greater the +contrast or annoying shadow. Smaller differences will create smoother +transitions between pixels. A table entry of 0 will make the table result be 0. +Consider the quantization table as a multiplier table. For every dot in every +8x8 block of the picture, the input is multiplied by the corresponding value in +the quantization table. Therefore, you can probably find out what quantization +table entry needs to be changed by looking at its coordinates. Keep in mind +that different compression ratios are used for different cameras though, so +this might not work the same way for all cameras. If you use a bunch of 1's in +the tables, you will probably come up with a very dull image. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jpeghead.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jpeghead.h new file mode 100644 index 00000000..cf329a3d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/jpeghead.h @@ -0,0 +1,168 @@ +/* This file was added by Nathan Stenzel + It will only get rough rough images, but might do for now + I may be working on the header by decoding the image into a stream "manually" + This is the Polaroid Fun! 320's header + It should be modified for the Polaroid 640SE + For the bennifit of anyone else that wants to try to figure improve this.... + ...I split the jpegheder into the different sections. + I believe I did this right. I split it at FF markers that were not ended by OO + Please email me if you can help me out. + I need to figure out how to decode the image data by "hand" + and then edit this header to fit + */ + +/* New table */ +#define quantization_chroma_new \ + "\x03\x02\x02\x03\x02\x02\x03\x03" "\x03\x03\x04\x03\x03\x04\x05\x08" \ + "\x05\x05\x04\x04\x05\x0A\x07\x07" "\x06\x08\x0C\x0A\x0C\x0C\x0B\x0A" \ + "\x0B\x0B\x0D\x0E\x12\x10\x0D\x0E" "\x11\x0E\x0B\x0B\x10\x16\x10\x11" \ + "\x13\x14\x15\x15\x15\x0C\x0F\x17" "\x18\x16\x14\x18\x12\x14\x15\x14" + +#define quantization_luma_new \ + "\x03\x04\x04\x05\x04\x05\x09\x05" "\x05\x09\x14\x0D\x0B\x0D\x14\x14" \ + "\x14\x14\x14\x14\x14\x14\x14\x14" "\x14\x14\x14\x14\x14\x14\x14\x14" \ + "\x14\x14\x14\x14\x14\x14\x14\x14" "\x14\x14\x14\x14\x14\x14\x14\x14" \ + "\x14\x14\x14\x14\x14\x14\x14\x14" "\x14\x14\x14\x14\x14\x14\x14\x14" + +#define quantization_table_1s \ + "\x01\x01\x01\x01\x01\x01\x01\x01" "\x01\x01\x01\x01\x01\x01\x01\x01" \ + "\x01\x01\x01\x01\x01\x01\x01\x01" "\x01\x01\x01\x01\x01\x01\x01\x01" \ + "\x01\x01\x01\x01\x01\x01\x01\x01" "\x01\x01\x01\x01\x01\x01\x01\x01" \ + "\x01\x01\x01\x01\x01\x01\x01\x01" "\x01\x01\x01\x01\x01\x01\x01\x01" + +#define quantization_table_6s \ + "\x02\x03\x03\x05\x05\x06\x06\x06" "\x06\x06\x06\x06\x06\x06\x06\x06" \ + "\x06\x06\x06\x06\x06\x06\x06\x06" "\x06\x06\x06\x06\x06\x06\x06\x06" \ + "\x06\x06\x06\x06\x06\x06\x06\x06" "\x06\x06\x06\x06\x06\x06\x06\x06" \ + "\x06\x06\x06\x06\x06\x06\x06\x06" "\x06\x06\x06\x06\x06\x06\x06\x06" + +#define quantization_table_14s \ + "\x06\x08\x08\x0a\x07\x0a\x0d\x0a" "\x0a\x0d\x13\x0f\x0c\x0f\x13\x14" \ + "\x0f\x0d\x0d\x0f\x14\x14\x14\x14" "\x14\x14\x14\x14\x14\x14\x14\x14" \ + "\x14\x14\x14\x14\x14\x14\x14\x14" "\x14\x14\x14\x14\x14\x14\x14\x14" \ + "\x14\x14\x14\x14\x14\x14\x14\x14" "\x14\x14\x14\x14\x14\x14\x14\x14" + +#define quantization_table_36s \ + "\x04\x05\x08\x16\x36\x36\x36\x36" "\x36\x36\x36\x36\x36\x36\x36\x36" \ + "\x36\x36\x36\x36\x36\x36\x36\x36" "\x36\x36\x36\x36\x36\x36\x36\x36" \ + "\x36\x36\x36\x36\x36\x36\x36\x36" "\x36\x36\x36\x36\x36\x36\x36\x36" \ + "\x36\x36\x36\x36\x36\x36\x36\x36" "\x36\x36\x36\x36\x36\x36\x36\x36" + +/* Default luminance table */ +#define quantization_luma \ + "\x10\x0B\x0C\x0E\x0C\x0A\x10\x0E" "\x0D\x0E\x12\x11\x10\x13\x18\x28" \ + "\x1A\x18\x16\x16\x18\x31\x23\x25" "\x1D\x28\x3A\x33\x3D\x3C\x39\x33" \ + "\x38\x37\x40\x48\x5C\x4E\x40\x44" "\x57\x45\x37\x38\x50\x6D\x51\x57" \ + "\x5F\x62\x67\x68\x67\x3E\x4D\x71" "\x79\x70\x64\x78\x5C\x65\x67\x63" + +/* Default Chrominance table */ +#define quantization_chroma \ + "\x11\x12\x12\x18\x15\x18\x2f\x1a" "\x1a\x2f\x63\x63\x63\x63\x63\x63" \ + "\x63\x63\x63\x63\x63\x63\x63\x63" "\x63\x63\x63\x63\x63\x63\x63\x63" \ + "\x63\x63\x63\x63\x63\x63\x63\x63" "\x63\x63\x63\x63\x63\x63\x63\x63" \ + "\x63\x63\x63\x63\x63\x63\x63\x63" "\x63\x63\x63\x63\x63\x63\x63\x63" + +#define JPEG_Q0 "\xFF\xDB\x00\x43\x00" +#define JPEG_Q1 "\xFF\xDB\x00\x43\x01" + +/* This is the old table that might be faulty +#define quantization_table2 \ + "\xFF\xDB\x00\x43\x01" \ + "\x01\x01\x01\x01\x01\x01\x01\x01" "\x01\x01\x01\x01\x01\x01\x01\x01" \ + "\x01\x01\x01\x01\x01\x01\x01\x01" "\x01\x01\x01\x01\x01\x01\x01\x01" \ + "\x01\x01\x01\x01\x01\x01\x01\x01" "\x01\x01\x01\x01\x01\x01\x01\x01" \ + "\x01\x01\x01\x01\x01\x01\x01\x01" "\x01\x01\x01\x01\x01\x01\x01\x01" +*/ + +/* I am trying setting the SOFC0 so that component one uses quantization table 2 + * This seems to give it higher contrast that would be needed to understand the image. + */ +#define SOFCO_320x128 \ + "\xFF\xC0\x00\x11" \ + "\x08\x00\x80\x01\x40\x03" "\x01\x11\x01" "\x02\x11\x00" "\x03\x21\x00" + +#define SOFC0_640x248 \ + "\xFF\xC0\x00\x11" \ + "\x08\x00\xf8\x02\x80\x03" "\x01\x11\x00" "\x02\x11\x00" "\x03\x21\x00" + +static struct { +unsigned int size; +char *data; +} jpegheader[] = { + {2, "\xFF\xD8"}, +/* JFIF APPO Marker:Version 1.01, density 78x78 (the 00 48 00 48) */ + {18, "\xFF\xE0\x00\x10\x4A\x46\x49\x46" "\x00\x01\x01\x01\x00\x48\x00\x48" "\x00\x00"}, + + {69, JPEG_Q0 quantization_chroma_new}, + {69, JPEG_Q1 quantization_luma_new}, +/* +/* define quantization table 0 precision 0 */ + {69, jpeg_q0 quantization_table_6s}, +/* define quantization table 1 precision 0 */ + {69, jpeg_q1 quantization_table_14s}, +*/ +/* Start Of Frame 0: width=320, height=128, components=3 */ +/* It seems that the camera makes 320x120 images */ +/* 8 of the 128 is to get the pixels I think are for color correction */ +/* I have to wonder if the camera even makes actual 320x240 images */ + {19, SOFCO_320x128}, +/* Define Huffman Table 0x00 (same in old and new) */ + {33, "\xFF\xC4\x00\x1F\x00\x00\x01\x05" "\x01\x01\x01\x01\x01\x01\x00\x00" + "\x00\x00\x00\x00\x00\x00\x01\x02" "\x03\x04\x05\x06\x07\x08\x09\x0A\x0B"}, +/* Define Huffman Table 0x10 */ + {183, "\xFF\xC4\x00\xB5\x10\x00\x02\x01" "\x03\x03\x02\x04\x03\x05\x05\x04" + "\x04\x00\x00\x01\x7D\x01\x02\x03" "\x00\x04\x11\x05\x12\x21\x31\x41" + "\x06\x13\x51\x61\x07\x22\x71\x14" "\x32\x81\x91\xA1\x08\x23\x42\xB1" + "\xC1\x15\x52\xD1\xF0\x24\x33\x62" "\x72\x82\x09\x0A\x16\x17\x18\x19" + "\x1A\x25\x26\x27\x28\x29\x2A\x34" "\x35\x36\x37\x38\x39\x3A\x43\x44" + "\x45\x46\x47\x48\x49\x4A\x53\x54" "\x55\x56\x57\x58\x59\x5A\x63\x64" + "\x65\x66\x67\x68\x69\x6A\x73\x74" "\x75\x76\x77\x78\x79\x7A\x83\x84" + "\x85\x86\x87\x88\x89\x8A\x92\x93" "\x94\x95\x96\x97\x98\x99\x9A\xA2" + "\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA" "\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9" + "\xBA\xC2\xC3\xC4\xC5\xC6\xC7\xC8" "\xC9\xCA\xD2\xD3\xD4\xD5\xD6\xD7" + "\xD8\xD9\xDA\xE1\xE2\xE3\xE4\xE5" "\xE6\xE7\xE8\xE9\xEA\xF1\xF2\xF3" + "\xF4\xF5\xF6\xF7\xF8\xF9\xFA"}, +/* Define Huffman Table 0x01 */ + {33, "\xFF\xC4\x00\x1F\x01\x00\x03\x01" "\x01\x01\x01\x01\x01\x01\x01\x01" + "\x00\x00\x00\x00\x00\x00\x01\x02" "\x03\x04\x05\x06\x07\x08\x09\x0A\x0B"}, +/* Define Huffman Table 0x11 */ + {183, "\xFF\xC4\x00\xB5\x11\x00\x02\x01" "\x02\x04\x04\x03\x04\x07\x05\x04" + "\x04\x00\x01\x02\x77\x00\x01\x02" "\x03\x11\x04\x05\x21\x31\x06\x12" + "\x41\x51\x07\x61\x71\x13\x22\x32" "\x81\x08\x14\x42\x91\xA1\xB1\xC1" + "\x09\x23\x33\x52\xF0\x15\x62\x72" "\xD1\x0A\x16\x24\x34\xE1\x25\xF1" + "\x17\x18\x19\x1A\x26\x27\x28\x29" "\x2A\x35\x36\x37\x38\x39\x3A\x43" + "\x44\x45\x46\x47\x48\x49\x4A\x53" "\x54\x55\x56\x57\x58\x59\x5A\x63" + "\x64\x65\x66\x67\x68\x69\x6A\x73" "\x74\x75\x76\x77\x78\x79\x7A\x82" + "\x83\x84\x85\x86\x87\x88\x89\x8A" "\x92\x93\x94\x95\x96\x97\x98\x99" + "\x9A\xA2\xA3\xA4\xA5\xA6\xA7\xA8" "\xA9\xAA\xB2\xB3\xB4\xB5\xB6\xB7" + "\xB8\xB9\xBA\xC2\xC3\xC4\xC5\xC6" "\xC7\xC8\xC9\xCA\xD2\xD3\xD4\xD5" + "\xD6\xD7\xD8\xD9\xDA\xE2\xE3\xE4" "\xE5\xE6\xE7\xE8\xE9\xEA\xF2\xF3" + "\xF4\xF5\xF6\xF7\xF8\xF9\xFA"}, +/* Ss=0, Se=63, Ah=0, Al=0 */ + {14, "\xFF\xDA\x00\x0C\x03\x01\x00\x02" "\x00\x03\x00\x00\x3F\x00"} +}; + +/* djpeg can be used with -debug to show some info on the encoding of a jpeg + * I fed my modified djpeg (which makes jpegs from my raw camera data) and got: + +Start of Image +JFIF APP0 marker: version 1.01, density 72x72 1 +Define Quantization Table 0 precision 0 +Define Quantization Table 1 precision 0 +Start Of Frame 0xc0: width=320, height=240, components=3 + Component 1: 1hx1v q=0 + Component 2: 1hx1v q=0 + Component 3: 2hx1v q=0 +Define Huffman Table 0x00 +Define Huffman Table 0x10 +Define Huffman Table 0x01 +Define Huffman Table 0x11 +Start Of Scan: 3 components + Component 1: dc=0 ac=0 + Component 2: dc=0 ac=0 + Component 3: dc=0 ac=0 + Ss=0, Se=63, Ah=0, Al=0 + + * I used this info to comment the jpeg header above + * I honestly still don't understand it very well + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc320.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc320.c new file mode 100644 index 00000000..5473da16 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc320.c @@ -0,0 +1,565 @@ +/* pdc320.c + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/* Originally written by Peter Desnoyers , + * and adapted for gphoto2 by + * Nathan Stenzel and + * Lutz Mueller + * + * Maintained by Nathan Stenzel + * + * Original windows drivers available at: + * http://www.polaroid.com/service/software/index.html + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include + +#include +#include + +#include "pdc320.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "pdc320" + +/*******************************************************************************/ +/* NOTICE: There is a 16x8 block of pixels after the image data. */ +/* All of them are about the same and I believe they are for image correction. */ +/*******************************************************************************/ + +/* Notes on what needs work: + * Make a better header that could correct color problems.... + * or manage to decode, color correct, and save the image. + * The quantization tables are incorrect for the PDC320. + */ + +/* + * For the PDC640SE, the init sequence is INIT,ID,ENDINIT,STATE,NUM,SIZE,PIC. + * + * During handshake, if the first read byte is not 6 then it is not good. Read + * the number of bytes mentioned +2 ("FE FF"?)and then INIT and try SIZE + * again (this is a loop). + * + * It is possible that the PDC320 might do a similar handshaking sequence at + * that same point. + */ + +typedef enum { + PDC320, + PDC640SE +} PDCModel; + +struct _CameraPrivateLibrary { + PDCModel model; +}; + +static int +pdc320_escape( + const unsigned char *inbuf, int inbuflen, + unsigned char *outbuf +) { + int i,j; + + j = 0; + for (i=0;i 0xffff) { + checksum = + (checksum & 0xffff) + + ((checksum >> 16) & 0xffff); + } + return 0xffff-checksum; /* neg checksum actually */ +} + +static int +pdc320_command( + GPPort *port, + const unsigned char *cmd, int cmdlen +) { + unsigned char csum[2]; + int checksum, off, ret; + unsigned char *newcmd; + + checksum = pdc320_calc_checksum (cmd, cmdlen); + csum[0] = checksum & 0xff; + csum[1] = (checksum >> 8) & 0xff; + /* 4 times 0xe6, checksum and command, both might be escaped */ + newcmd = malloc (2*(sizeof(csum)+cmdlen)+4); + if (!newcmd) + return GP_ERROR_NO_MEMORY; + memset (newcmd, 0xe6, 4); off = 4; + off += pdc320_escape (cmd, cmdlen, newcmd + off); + off += pdc320_escape (csum, 2, newcmd + off); + ret = gp_port_write (port, (char *)newcmd, off); + free(newcmd); + return ret; +} + +static int +pdc320_simple_command (GPPort *port, const unsigned char cmd) { + return pdc320_command(port, &cmd, 1); +} + +static int +pdc320_simple_reply (GPPort *port, const unsigned char expcode, + unsigned int replysize, unsigned char *reply +) { + unsigned char csum[2]; + int calccsum; + + CR (gp_port_read (port, (char *)reply, 1)); + if (reply[0] != expcode) { + GP_DEBUG("*** reply got 0x%02x, expected 0x%02x\n", + reply[0], expcode + ); + return GP_ERROR; + } + CR (gp_port_read (port, (char *)reply+1, replysize-1)); + CR (gp_port_read (port, (char *)csum, 2)); + calccsum = pdc320_calc_checksum (reply, replysize); + if (calccsum != ((csum[1] << 8) | csum[0])) { + GP_DEBUG("csum %x vs %x\n",calccsum,((csum[0]<<8)|csum[1])); + return GP_ERROR; + } + return GP_OK; +} + +static int +pdc320_simple_command_reply (GPPort *port, + const unsigned char cmd, const unsigned char expcode, + unsigned int replysize, unsigned char *reply +) { + CR (pdc320_simple_command (port, cmd)); + CR (pdc320_simple_reply (port, expcode, replysize, reply)); + return GP_OK; +} + +static int +pdc320_init (GPPort *port) +{ + unsigned char buf[32]; + unsigned char e6[4]; + int i; + + GP_DEBUG ("*** PDC320_INIT ***"); + + /* The initial command is prefixed by 4 raw E6. */ + memset(e6,0xe6,sizeof(e6)); + CR (gp_port_write (port, (char *)e6, sizeof (e6) )); + + GP_DEBUG ("*** PDC320_INIT ***"); + CR (pdc320_simple_command_reply (port, PDC320_INIT, 5, 1, buf)); + GP_DEBUG ("*** PDC320_ID ***"); + CR (pdc320_simple_command_reply (port, PDC320_ID, 0, 12, buf)); + GP_DEBUG ("*** PDC320_STATE ***"); + CR (pdc320_simple_command_reply (port, PDC320_STATE, 2, 22, buf)); + + for (i=0;i<9;i++) { + GP_DEBUG ("%d: %d (0x%x)",i,((buf[2+i*2]<<8)|buf[2+2*i+1]), ((buf[2+i*2]<<8)|buf[2+2*i+1])); + } + GP_DEBUG ("*** PDC320_ENDINIT ***"); + return pdc320_simple_command_reply (port, PDC320_ENDINIT, 9, 1, buf); +} + +static int +pdc320_num (GPPort *port) +{ + unsigned char buf[2]; + + GP_DEBUG ("*** PDC320_NUM ***"); + CR (pdc320_simple_command_reply (port, PDC320_NUM, 3, 2, buf)); + GP_DEBUG ("The camera contains %i files.", buf[1]); + return buf[1]; +} + +static int +pdc320_delete (GPPort *port) +{ + unsigned char buf[1]; + + GP_DEBUG ("*** PDC320_DELETE ***"); + return pdc320_simple_command_reply(port, PDC320_DEL, 8, 1, buf); +} + +static int +pdc320_size (Camera *camera, int n) +{ + int size; + unsigned char buf[5]; + unsigned char cmd[2]; + + GP_DEBUG ("*** PDC320_SIZE ***"); + cmd[0] = PDC320_SIZE; + cmd[1] = n; + CR (pdc320_command (camera->port, cmd, sizeof (cmd))); + CR (pdc320_simple_reply (camera->port, 6, 5, buf)); + size = (buf[1] << 24) + (buf[2] << 16) + (buf[3] << 8) + buf[4]; + GP_DEBUG ("Image %i has size %i.", n, size); + return (size); +} + +/* Unclear. */ +static int +pdc320_0c (Camera *camera, int n) +{ + int size, i; + unsigned char buf[3], *xbuf; + unsigned char cmd[2]; + + cmd[0] = 0x0c; + cmd[1] = n; /* n is from 1 on up */ + + /* Write the command */ + GP_DEBUG ("*** PDC320_0c ***"); + CR (pdc320_command (camera->port, cmd, sizeof (cmd))); + CR (gp_port_read (camera->port, (char *)buf, 3)); + if (buf[0] != 7) + return GP_ERROR; + size = (buf[1] << 8) | buf[2]; + xbuf = malloc (size); + CR (gp_port_read (camera->port, (char *)xbuf, size)); + for (i=0; iport, (char *)buf, 2)); + /* checksum is calculated from both, but i am not clear how. */ + free (xbuf); + return GP_OK; +} + +static int +pdc320_pic (Camera *camera, int n, unsigned char **data, int *size) +{ + unsigned char cmd[2]; + unsigned char buf[2048]; + int remaining, f1, f2, i, len; + int chunksize=2000; + + /* Get the size of the picture and allocate the memory */ + GP_DEBUG ("Checking size of image %i...", n); + CR (*size = pdc320_size (camera, n)); + *data = malloc (sizeof (char) * (*size)); + if (!*data) + return (GP_ERROR_NO_MEMORY); + + cmd[0] = PDC320_PIC; + cmd[1] = n; + + CR_FREE (pdc320_command (camera->port, cmd, sizeof (cmd)), *data); + switch (camera->pl->model) { + case PDC640SE: + chunksize = 528; + break; + case PDC320: + chunksize = 2000; + break; + } + + len = *size; + for (i = 0; i < *size; i += chunksize) { + + /* How many bytes do we read in this round? */ + remaining = *size - i; + len = (remaining > chunksize) ? chunksize : remaining; + + /* Read the frame number */ + usleep (10000); + CR_FREE (gp_port_read (camera->port, (char *)buf, 5), *data); + f1 = (buf[1] << 8) + buf[2]; + f2 = (buf[3] << 8) + buf[4]; + GP_DEBUG ("Reading frame %d " + "(%d)...", f1, f2); + + /* Read the actual data */ + usleep(1000); + CR_FREE (gp_port_read (camera->port, (char *)*data + i, len), *data); + + /* Read the checksum */ + CR_FREE (gp_port_read (camera->port, (char *)buf, 2), *data); + } + + return (GP_OK); +} + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Polaroid DC320"); + + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].model; i++) { + memset(&a, 0, sizeof(a)); + strcpy (a.model, models[i].model); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_SERIAL; + a.speed[0] = 115200; + a.speed[1] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + CR (gp_abilities_list_append (list, a)); + } + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + jpeg *myjpeg; + chunk *tempchunk; + int r, n, size, width, height; + unsigned char *data; + + if ((type != GP_FILE_TYPE_RAW) && (type != GP_FILE_TYPE_NORMAL)) + return (GP_ERROR_NOT_SUPPORTED); + + /* + * Get the number of the picture from the filesystem and increment + * since we need a range starting with 1. + */ + GP_DEBUG ("Getting number from fs..."); + CR (n = gp_filesystem_number (camera->fs, folder, filename, context)); + n++; + + /* Get the file */ + GP_DEBUG ("Getting file %i...", n); + CR (pdc320_pic (camera, n, &data, &size)); + r = pdc320_0c (camera, n); + if (r < GP_OK) { + free (data); + return r; + } + + /* Post-processing */ + switch (type) { + case GP_FILE_TYPE_RAW: + CR (gp_file_set_data_and_size (file, (char *)data, size)); + CR (gp_file_set_mime_type (file, GP_MIME_RAW)); + break; + case GP_FILE_TYPE_NORMAL: + default: + GP_DEBUG ("Using Nathan Stenzel's experimental jpeg.c\n"); + GP_DEBUG ("About to make jpeg header\n"); + width = data[4]*256 + data[5]; + height = data[2]*256 + data[3]; + GP_DEBUG ("Width=%i\tHeight=%i\n", width, height); + myjpeg = gpi_jpeg_header(width,height/2, 0x11,0x11,0x21, 1,0,0, &chrominance, &luminance, + 0,0,0, gpi_jpeg_chunk_new_filled(HUFF_00), + gpi_jpeg_chunk_new_filled(HUFF_10), NULL, NULL); + GP_DEBUG ("Turning the picture data into a chunk data type\n"); + tempchunk = gpi_jpeg_chunk_new(size); + tempchunk->data = data; + GP_DEBUG ("Adding the picture data to the jpeg structure\n"); + gpi_jpeg_add_marker(myjpeg, tempchunk, 6, size-1); + GP_DEBUG ("Writing the jpeg file\n"); + gpi_jpeg_write(file, filename, myjpeg); + GP_DEBUG ("Cleaning up the mess\n"); + gpi_jpeg_destroy(myjpeg); + free (tempchunk); + break; + } + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + + CR (pdc320_delete (camera->port)); + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Download program for several Polaroid cameras. " + "Originally written by Peter Desnoyers " + ", and adapted for gphoto2 by " + "Nathan Stenzel and " + "Lutz Mueller .\n" + "Polaroid 640SE testing was done by Michael Golden " + ".")); + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + int n; + Camera *camera = data; + + /* Fill the list */ + CR (n = pdc320_num (camera->port)); + gp_list_populate (list, "PDC320%04i.jpg", n); + return (GP_OK); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + char buf[12]; + + GP_DEBUG ("*** PDC320_ID ***"); + CR (pdc320_simple_command_reply (camera->port, PDC320_ID, 0, 12, (unsigned char *)buf)); + sprintf (summary->text, _("Model: %x, %x, %x, %x"), buf[8],buf[9],buf[10],buf[11]); + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + if (!camera) + return (GP_ERROR_BAD_PARAMETERS); + + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .delete_all_func = delete_all_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + CameraAbilities abilities; + int result; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->about = camera_about; + camera->functions->summary = camera_summary; + + /* Now, tell the filesystem where to get lists and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + + /* What model are we talking to? */ + gp_camera_get_abilities (camera, &abilities); + if ( !strcmp (abilities.model, "Polaroid:Fun! 320") || + !strcmp (abilities.model, "Polaroid Fun! 320") + ) + camera->pl->model = PDC320; + else if (!strcmp (abilities.model, "Polaroid:640SE") || + !strcmp (abilities.model, "Polaroid 640SE") + ) + camera->pl->model = PDC640SE; + else { + free (camera->pl); + camera->pl = NULL; + return (GP_ERROR_MODEL_NOT_FOUND); + } + + /* Open the port and check if the camera is there */ + gp_port_get_settings (camera->port, &settings); + if (!settings.serial.speed) + settings.serial.speed = 115200; + gp_port_set_settings (camera->port, settings); + gp_port_set_timeout (camera->port, 30000); + + /* Check if the camera is really there */ + result = pdc320_init (camera->port); + if (result < 0) { + free (camera->pl); + camera->pl = NULL; + return (result); + } + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc320.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc320.h new file mode 100644 index 00000000..f57c0c40 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc320.h @@ -0,0 +1,73 @@ +#ifndef __GPHOTO2_PDC320_H__ +#define __GPHOTO2_PDC320_H__ + +#include + +static const jpeg_quantization_table chrominance = { + 3, 2, 2, 3, 5, 8, 10, 12, + 2, 2, 3, 4, 5, 12, 12, 11, + 3, 3, 3, 5, 8, 11, 14, 11, + 3, 3, 4, 6, 10, 17, 16, 12, + 4, 4, 7, 11, 14, 22, 21, 15, + 5, 7, 11, 13, 16, 21, 23, 18, + 10, 13, 16, 17, 21, 24, 24, 20, + 14, 18, 19, 20, 22, 20, 21, 20 +}; +static const jpeg_quantization_table luminance = { + 3, 4, 5, 9, 20, 20, 20, 20, + 4, 4, 5, 13, 20, 20, 20, 20, + 5, 5, 11, 20, 20, 20, 20, 20, + 9, 13, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20 +}; + +/* ID returns 0 , XIRLINK, and 4 byte more */ +#define ID_PDC640SE "\x0XIRLINK\x2\x1\x3\x1" +#define ID_PDC320 "\x0XIRLINK\x2\x1\x3\x0" + +#define PDC320_INIT 0x00 +#define PDC320_ID 0x01 +#define PDC320_STATE 0x02 +#define PDC320_NUM 0x03 +#define PDC320_SIZE 0x04 +#define PDC320_PIC 0x05 +#define PDC320_DEL 0x07 +#define PDC320_ENDINIT 0x0a +#define PDC320_UNKNOWN3 0x0c + + +#define RETRIES 3 + +#define CR(result) {int r = (result); if (r < 0) return (r);} +#define CR_FREE(result, data) {int r = (result); if (r < 0) {free (data); return (r);}} + +static struct { + const char *model; + unsigned char id; +} models[] = { + {"Polaroid:Fun! 320", 0x3f}, + {"Polaroid:640SE", 0x40}, + {NULL, 0x00} +}; + +#define HUFF_00 33, \ + "\xFF\xC4\x00\x1F\x00\x00\x01\x05" "\x01\x01\x01\x01\x01\x01\x00\x00" \ + "\x00\x00\x00\x00\x00\x00\x01\x02" "\x03\x04\x05\x06\x07\x08\x09\x0A\x0B" + +#define HUFF_10 183, \ + "\xFF\xC4\x00\xB5\x10\x00\x02\x01" "\x03\x03\x02\x04\x03\x05\x05\x04" \ + "\x04\x00\x00\x01\x7D\x01\x02\x03" "\x00\x04\x11\x05\x12\x21\x31\x41" \ + "\x06\x13\x51\x61\x07\x22\x71\x14" "\x32\x81\x91\xA1\x08\x23\x42\xB1" \ + "\xC1\x15\x52\xD1\xF0\x24\x33\x62" "\x72\x82\x09\x0A\x16\x17\x18\x19" \ + "\x1A\x25\x26\x27\x28\x29\x2A\x34" "\x35\x36\x37\x38\x39\x3A\x43\x44" \ + "\x45\x46\x47\x48\x49\x4A\x53\x54" "\x55\x56\x57\x58\x59\x5A\x63\x64" \ + "\x65\x66\x67\x68\x69\x6A\x73\x74" "\x75\x76\x77\x78\x79\x7A\x83\x84" \ + "\x85\x86\x87\x88\x89\x8A\x92\x93" "\x94\x95\x96\x97\x98\x99\x9A\xA2" \ + "\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA" "\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9" \ + "\xBA\xC2\xC3\xC4\xC5\xC6\xC7\xC8" "\xC9\xCA\xD2\xD3\xD4\xD5\xD6\xD7" \ + "\xD8\xD9\xDA\xE1\xE2\xE3\xE4\xE5" "\xE6\xE7\xE8\xE9\xEA\xF1\xF2\xF3" \ + "\xF4\xF5\xF6\xF7\xF8\xF9\xFA" +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc320.html b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc320.html new file mode 100644 index 00000000..68d0f9f4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc320.html @@ -0,0 +1,107 @@ + +PDC320 protocol description + +

Polaroid PDC320 protocol description

+
+Commands are prefixed with 4 E6.
+The commands return 1 reply code byte. +All commands return an addition 2 byte checksum. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameByte codeArgumentsReply codereply lengthreply desc
Init0x00None.0x05None.Nothing.
Id0x01None.0x0011 bytes Returns 11 byte. Byte 0-8 are the string "XIRLINK", + these are followed by a 0x02, 0x01 and 2 unknown additional bytes. +
State0x02None.0x0221Returns 21 bytes. First byte is 0x3f, the following 9 byte + are big endian 16bit values:
+ 320,240,5,320,240,5,80,80,0 on the pdc320. +
Num0x03None.0x031 ByteReturns 1 bytes, the number of images.
Size0x04Imagenr.(starting with 1)0x064 BytesReturns 4 bytes, the big endian size of the image.
Pic0x05Imagenr.(starting with 1)0x044 Bytes, then data. Returns 4 bytes, 2 byte part offset, 2 byte part offset, + then data, then 2 byte checksum. Then again a reply until + the end of the image. +
Delete All0x07None.0x08None.Nothing.
End Init0x0aNone.0x09None.Nothing.
Get Image Params0x0cImagenr. (starting with 1)0x072 byte bigendian size, then data of this sizeThe data is expected to be 6 byte, which seems to be picture + parameters. Unclear what they mean. The checksum is appended + after the data.
+For checksum calculation see the sourcecode (for now). +

+The image data return starts with:
+0xff,0xc0,16 bit bigendian height, 16 bit bigendian width, raw JPEG data. + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc640.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc640.c new file mode 100644 index 00000000..146f4779 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/polaroid/pdc640.c @@ -0,0 +1,1098 @@ +/* pdc640.c + * + * Copyright 2001 Lutz Mueller + * Copyright 2002 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include +#include + +#include +#include +#include + +#include "jd350e.h" +#include "dlink350f.h" + +#define GP_MODULE "pdc640" + +#define PDC640_PING "\x01" +#define PDC640_SPEED "\x69\x0b" + +#define PDC640_MAXTRIES 3 + +#define CHECK_RESULT(result) {int __r = (result); if (__r < 0) return (__r);} + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + + +typedef enum{ + pdc640, + jd350e, + dlink350f +} Model; + +typedef int postproc_func(int,int,unsigned char*); + +struct _CameraPrivateLibrary{ + Model model; + BayerTile bayer_tile; + postproc_func* postprocessor; + char* filespec; +}; + +static int flip_vertical (int width, int height, unsigned char *rgb); +static int flip_both (int width, int height, unsigned char *rgb); + +static struct { + const char* model; + int vendor,product; + struct _CameraPrivateLibrary pl; +} models[] = { + {"Polaroid Fun Flash 640", 0, 0, { + pdc640, + BAYER_TILE_RGGB, + NULL, /* add postprocessor here! */ + "pdc640%04i.ppm" + } + }, + {"Novatech Digital Camera CC30", 0, 0, { + pdc640, + BAYER_TILE_RGGB, + NULL, /* add postprocessor here! */ + "pdc640%04i.ppm" + } + }, + {"Jenoptik JD350 entrance", 0x5da, 0x1006, { + jd350e, + BAYER_TILE_BGGR, + &jd350e_postprocessing, + "jd350e%04i.ppm" + } + }, + {"Jenoptik JD350 video", 0xd96, 0x0000, { + jd350e, + BAYER_TILE_BGGR, + NULL /*&jd350e_postprocessing*/, + "jd350v%04i.ppm" + } + }, + {"ScanHex SX-35a", 0x797, 0x8901, { + jd350e, + BAYER_TILE_BGGR, + &jd350e_postprocessing, + "jd350v%04i.ppm" + } + }, + {"ScanHex SX-35b", 0x797, 0x8909, { + jd350e, + BAYER_TILE_BGGR, + &jd350e_postprocessing, + "jd350v%04i.ppm" + } + }, + {"ScanHex SX-35c", 0x797, 0x8911, { + jd350e, + BAYER_TILE_BGGR, + &jd350e_postprocessing, + "jd350v%04i.ppm" + } + }, + {"ScanHex SX-35d", 0x84d, 0x1001, { + jd350e, + BAYER_TILE_BGGR, + &jd350e_postprocessing, + "jd350v%04i.ppm" + } + }, + {"Typhoon StyloCam", 0x797, 0x801a, { + jd350e, + BAYER_TILE_BGGR, + &flip_vertical, + "stylo%04i.ppm" + } + }, + {"Trust PowerC@m 350FS", 0x6d6, 0x002e, { + jd350e, + BAYER_TILE_RGGB, + &trust350fs_postprocessing, + "trust%04i.ppm" + } + }, + {"Trust PowerC@m 350FT", 0x6d6, 0x002d, { + jd350e, + BAYER_TILE_RGGB, + &trust350fs_postprocessing, + "trust%04i.ppm" + } + }, + {"Clever CAM 360", 0x797, 0x8001, { + jd350e, + BAYER_TILE_BGGR, + &jd350e_postprocessing_and_flip, + "scope%04i.ppm" + } + }, + /* http://www.meade.com/sportsoptics/catalog/captureview/index.html */ + {"GrandTek ScopeCam", 0x797, 0x801c, { + jd350e, + BAYER_TILE_BGGR, + &jd350e_postprocessing_and_flip, + "scope%04i.ppm" + } + }, + /* http://www.sipixdigital.com/cameras/stylecam/ */ + /* Ids glanced from downloaded driver / .inf file. */ + {"SiPix Stylecam", 0xd64, 0x1001, { + jd350e, + BAYER_TILE_BGGR, + &flip_both, + "style%04i.ppm" + } + }, + /* http://www.umax.de/digicam/AstraPix320S.htm */ + /* reportedly has same ids as SiPix StyleCam and also + * looks identical. */ + {"UMAX AstraPix 320s", 0xd64, 0x1001, { + jd350e, + BAYER_TILE_BGGR, + &flip_both, + "astra%04i.ppm" + } + }, + + /* http://www.dlink.com/products/usb/dsc350/ */ + /* ids from driver download */ + {"D-Link DSC 350F", 0xd64, 0x1021, { + dlink350f, + BAYER_TILE_BGGR, + &dlink_dsc350f_postprocessing_and_flip_both, + "dlink%04i.ppm" + } + }, + {NULL,} +}; + +static int +pdc640_read_packet (GPPort *port, unsigned char *buf, int buf_size) +{ + int i; + char checksum, c; + + /* Calculate the checksum */ + for (i = 0, checksum = 0; i < buf_size; i++) + buf[i] = 0; + + /* Read the packet */ + CHECK_RESULT (gp_port_read (port, (char*)buf, buf_size)); + + /* Calculate the checksum */ + for (i = 0, checksum = 0; i < buf_size; i++) + checksum += buf[i]; + + /* Read the checksum */ + CHECK_RESULT (gp_port_read (port, &c, 1)); + GP_DEBUG ("Checksum: %d calculated, %d received", checksum, c); + if (checksum != c) + return (GP_ERROR_CORRUPTED_DATA); + + return (GP_OK); +} + +static int +pdc640_transmit (GPPort *port, unsigned char *cmd, int cmd_size, + unsigned char *buf, int buf_size) +{ + int r, tries; + + if (port->type == GP_PORT_USB) { + unsigned char xbuf[64]; + unsigned char xcmd[4]; + int checksum; + + /* USB has always just 3 bytes + 1 byte checksum */ + memset(xcmd,0,4);memcpy(xcmd,cmd,cmd_size); + checksum = (xcmd[0]^0x34)+(xcmd[1]^0xcb)+0x14f+(xcmd[2]^0x67); + xcmd[3] = checksum & 0xff; + + /* Wait until we get back the echo of the command. */ + r = gp_port_usb_msg_read( port, 0x10, xcmd[0]|(xcmd[1]<<8),xcmd[2]|(xcmd[3]<<8),(char*)xbuf,sizeof(xbuf)); + /* Sometimes we want to read here, sometimes not. + if (r < GP_OK) + return r; + */ + if (buf && buf_size) { + /* bulk read things. The JD350v can read in 1 block, + * the Stylocam returns only 64byte blocks here. + */ + int curr = 0, readsize = (buf_size + 63) & ~63; + while (curr < readsize) { + r = gp_port_read( port, (char*)buf + curr, readsize - curr); + if (r < GP_OK) break; + curr += r; + } + } + return r; + } else { + char c; + + /* In event of a checksum or timing failure, retry */ + for (tries = 0; tries < PDC640_MAXTRIES; tries++) { + /* + * The first byte returned is always the same as the first byte + * of the command. + */ + CHECK_RESULT (gp_port_write (port, (char*)cmd, cmd_size)); + r = gp_port_read (port, &c, 1); + if ((r < 0) || (c != cmd[0])) + continue; + + if (buf) { + r = pdc640_read_packet (port, buf, buf_size); + if (r < 0) + continue; + } + + return (GP_OK); + } + return (GP_ERROR_CORRUPTED_DATA); + } +} + + +static int +pdc640_transmit_pic (GPPort *port, char cmd, int width, int thumbnail, + unsigned char *buf, int buf_size) +{ + unsigned char cmd1[] = {0x61, 0x00}; + unsigned char cmd2[] = {0x15, 0x00, 0x00, 0x00, 0x00}; + + /* First send the command ... */ + cmd1[1] = cmd; + CHECK_RESULT (pdc640_transmit (port, cmd1, 2, NULL, 0)); + + if (port->type == GP_PORT_USB) { + cmd2[1] = (buf_size + 63) >> 6; + cmd2[2] = ((buf_size + 63) >> 6) >> 8; + return pdc640_transmit (port, cmd2, 4, buf, buf_size); + } else { + int i, packet_size, result, size, ofs; + unsigned char *data; + + /* Set how many scanlines worth of data to get at once */ + cmd2[4] = 0x06; + + /* Packet size is a multiple of the image width */ + packet_size = width * cmd2[4]; + + /* Allocate memory to temporarily store received data */ + data = malloc (packet_size); + if (!data) + return (GP_ERROR_NO_MEMORY); + + /* Now get the packets */ + ofs = 0; + result = GP_OK; + for (i = 0; i < buf_size; i += packet_size) { + /* Read the packet */ + result = pdc640_transmit (port, cmd2, 5, + data, packet_size); + if (result < 0) + break; + + /* Copy from temp buffer -> actual */ + size = packet_size; + if (size > buf_size - i) + size = buf_size - i; + memcpy(buf + i, data, size); + + /* Move to next offset */ + ofs += cmd2[4]; + cmd2[2] = ofs & 0xFF; + cmd2[1] = (ofs >> 8) & 0xFF; + } + free (data); + return (result); + } +} + +static int +pdc640_transmit_packet (GPPort *port, char cmd, unsigned char *buf, int buf_size) { + unsigned char cmd1[] = {0x61, 0x00}; + /* Send the command and get the packet */ + cmd1[1] = cmd; + CHECK_RESULT (pdc640_transmit (port, cmd1, 2, NULL, 0)); + + if (port->type == GP_PORT_USB) { + unsigned char cmd2[] = {0x15, 0x00, 0x00, 0x00}; + + cmd2[1] = ((buf_size+63)/64) & 0xff; + cmd2[2] = (((buf_size+63)/64) >> 8) & 0xff; + return pdc640_transmit (port, cmd2, 4, buf, buf_size); + } else { + unsigned char cmd2[] = {0x15, 0x00, 0x00, 0x00, 0x01}; + + return pdc640_transmit (port, cmd2, 5, buf, buf_size); + } +} + + +static int +pdc640_ping_low (GPPort *port) +{ + unsigned char cmd[] = {0x01}; + + CHECK_RESULT (pdc640_transmit (port, cmd, 1, NULL, 0)); + + return (GP_OK); +} + +#if 0 +static int +pdc640_push_button (GPPort *port) +{ + char cmd[] = {0xfd}; + + CHECK_RESULT (pdc640_transmit (port, cmd, 1, NULL, 0)); + + return (GP_OK); +} +#endif + +static int +pdc640_ping_high (GPPort *port) +{ + unsigned char cmd[] = {0x41}; + + CHECK_RESULT (pdc640_transmit (port, cmd, 1, NULL, 0)); + + return (GP_OK); +} + +static int +pdc640_speed (GPPort *port, int speed) +{ + unsigned char cmd[] = {0x69, 0x00}; + + cmd[1] = (speed / 9600) - 1; + CHECK_RESULT (pdc640_transmit (port, cmd, 2, NULL, 0)); + + return (GP_OK); +} + +#if 0 +/* read version I think */ +static int +pdc640_unknown5 (GPPort *port) +{ + char cmd[] = {0x05}; + char buf[3]; + + CHECK_RESULT (pdc640_transmit (port, cmd, 1, buf, 3)); + if ((buf[0] != 0x33) || (buf[1] != 0x02) || (buf[2] != 0x35)) + return (GP_ERROR_CORRUPTED_DATA); + + return (GP_OK); +} +#endif + +#if 0 +/* get calibration param */ +static int +pdc640_unknown20 (GPPort* port) +{ + unsigned char buf[128]; + + CHECK_RESULT (pdc640_transmit_packet (port, 0x20, buf, 128)); + + return (GP_OK); +} +#endif + +static int +pdc640_caminfo (GPPort *port, int *numpic) +{ + unsigned char buf[1280]; + + CHECK_RESULT (pdc640_transmit_packet (port, 0x40, buf, 1280)); + *numpic = buf[2]; /* thats the only useful info :( */ + return (GP_OK); +} + +static int +pdc640_setpic (GPPort *port, char n) +{ + unsigned char cmd[2] = {0xf6, 0x00}; + + cmd[1] = n; + if (port->type == GP_PORT_USB) { + /* USB does not like a bulkread afterwards */ + return pdc640_transmit (port, cmd, 2, NULL, 0); + } else { + unsigned char buf[8]; + + return pdc640_transmit (port, cmd, 2, buf, 7); + } +} + +static int +pdc640_picinfo (GPPort *port, char n, + int *size_pic, int *width_pic, int *height_pic, + int *size_thumb, int *width_thumb, int *height_thumb, + int *compression_type ) +{ + unsigned char buf[64]; + + CHECK_RESULT (pdc640_setpic (port, n)); + CHECK_RESULT (pdc640_transmit_packet (port, 0x80, buf, 32)); + + /* Check image number matches */ + if (buf[0] != n) + return (GP_ERROR_CORRUPTED_DATA); + + /* Picture size, width and height */ + *size_pic = buf[2] | (buf[3] << 8) | (buf[4] << 16); + *width_pic = buf[5] | (buf[6] << 8); + *height_pic = buf[7] | (buf[8] << 8); + + /* Compression Type */ + *compression_type = buf[9]; + + *size_thumb = buf[25] | (buf[26] << 8) | (buf[27] << 16); + + *width_thumb = buf[28] | (buf[29] << 8); + *height_thumb = buf[30] | (buf[31] << 8); + + /* Even though it should the be the correct size, the Typhoon + * Stylocam returns junk in there. So calculate for ourselves. + */ + if (*size_thumb > *width_thumb * *height_thumb) + *size_thumb = *width_thumb * *height_thumb; + return (GP_OK); +} + +static int +pdc640_processtn (int width, int height, unsigned char **data, int size) { + unsigned char *newdata; + int y; + + /* Sanity checks */ + if ((data == NULL) || (size < width * height)) + return (GP_ERROR_CORRUPTED_DATA); + + /* Allocate a new buffer */ + newdata = malloc(size); + if (!newdata) + return (GP_ERROR_NO_MEMORY); + + /* Flip the thumbnail */ + for (y = 0; y < height; y++) { + memcpy(&newdata[(height - y - 1) * width], + &((*data)[y * width]), width); + } + + /* Set new buffer */ + free (*data); + *data = newdata; + + return (GP_OK); +} + +static int +pdc640_getbit (unsigned char *data, int *ofs, int size, int *bit) { + static char c; + int b; + + /* Check if next byte required */ + if (*bit == 0) { + if (*ofs >= size) + return (-1); + + c = data[*ofs]; + (*ofs)++; + } + + /* Get current bit value */ + b = (c >> *bit) & 1; + + /* Then move onto the next bit */ + (*bit)++; + if (*bit >= 8) + *bit = 0; + + return (b); +} + +static int +pdc640_deltadecode (int width, int height, unsigned char **rawdata, int *rawsize) +{ + char col1, col2; + unsigned char *data; + int rawofs, x, y, ofs, bit, ones; + int size; + int e, d, o, val; + + GP_DEBUG ("pdc640_deltacode ()"); + + if (width < 2) return GP_ERROR_CORRUPTED_DATA; /* invalid, we implicitly assume it to be 2 or higher in the decoder */ + /* Create a buffer to store RGB data in */ + size = width * height; + data = malloc (size * sizeof (char)); + if (!data) + return (GP_ERROR_NO_MEMORY); + + /* Delta decode scanline by scanline */ + rawofs = 0; + for (y = height-1; y >= 0; y--) { + /* Word alignment */ + if (rawofs & 1) + rawofs++; + + /* Sanity check */ + if (rawofs >= *rawsize) { + free (data); + return (GP_ERROR_CORRUPTED_DATA); + } + + /* Offset into the uncompressed data */ + ofs = y * width; + + /* Get the first two pixel values */ + col1 = (*rawdata)[rawofs]; + col2 = (*rawdata)[rawofs + 1]; + rawofs += 2; + data[ofs + 0] = col1 << 1; + data[ofs + 1] = col2 << 1; + + /* Work out the remaining pixels */ + bit = 0; + for (x = 2; x < width; x++) { + /* Count number of ones */ + ones = 0; + while (pdc640_getbit(*rawdata, &rawofs, *rawsize, &bit) == 1) + ones++; + + /* + * Get the delta value + * (size dictated by number of ones) + */ + val = 0; + for (o = 0, e = 0, d = 1; o < ones; o++, d <<= 1) { + e = pdc640_getbit(*rawdata, &rawofs, *rawsize, &bit); + if (e == 1) val += d; + } + if (e == 0) val += 1 - d; /* adjust for negatives */ + + /* Adjust the corresponding pixel value */ + if (x & 1) + val = (col2 += val); + else + val = (col1 += val); + + data[ofs + x] = val << 1; + } + } + + /* Set new buffer */ + free (*rawdata); + *rawdata = data; + *rawsize = size; + + return (GP_OK); +} + +static int +pdc640_getpic (Camera *camera, int n, int thumbnail, int justraw, + unsigned char **data, int *size) +{ + char cmd, ppmheader[100]; + int size_pic, width_pic, height_pic; + int size_thumb, width_thumb, height_thumb; + int height, width, outsize, result, pmmhdr_len; + int compression_type; + unsigned char *outdata; + + /* Get the size of the picture */ + CHECK_RESULT (pdc640_picinfo (camera->port, n, + &size_pic, &width_pic, &height_pic, + &size_thumb, &width_thumb, &height_thumb, + &compression_type)); + + /* Evaluate parameters */ + if (thumbnail) { + GP_DEBUG ("Size %d, width %d, height %d, comptype %d", + size_thumb, width_thumb, height_thumb, + (compression_type>>2) & 3); + + *size = size_thumb; + width = width_thumb; + height = height_thumb; + if ((compression_type >> 2) & 3) + cmd = 0x02; + else + cmd = 0x03; + } else { + GP_DEBUG ("Size %d, width %d, height %d, comptype %d", + size_pic, width_pic, height_pic, compression_type & 3); + + *size = size_pic; + width = width_pic; + height = height_pic; + switch (compression_type & 3) { + case 1: + case 2: cmd = 0x10; /* delta compressed */ + break; + case 0: cmd = 0x00; /* uncompressed */ + break; + default: /* unknown compression type */ + GP_DEBUG ("Unknown compression type %d", compression_type & 3); + return (GP_ERROR_CORRUPTED_DATA); + } + } + + /* Sanity check */ + if ((*size <= 0) || (width <= 0) || (height <= 0)) + return (GP_ERROR_CORRUPTED_DATA); + + /* Allocate the memory, including 64byte align */ + *data = malloc ((*size + 64) * sizeof (char)); + if (!*data) + return (GP_ERROR_NO_MEMORY); + + /* Get the raw picture */ + CHECK_RESULT (pdc640_setpic (camera->port, n)); + CHECK_RESULT (pdc640_transmit_pic (camera->port, cmd, width, thumbnail, + *data, *size)); + + if (thumbnail || ((compression_type & 3) == 0 )) { + /* Process uncompressed data */ + CHECK_RESULT (pdc640_processtn (width, height, + data, *size)); + } else if (compression_type & 3) { + /* Image data is delta encoded so decode it */ + CHECK_RESULT (pdc640_deltadecode (width, height, + data, size)); + } + + /* Just wanted the raw camera data */ + if (justraw) + return(GP_OK); + + GP_DEBUG ("Bayer decode..."); + sprintf (ppmheader, "P6\n" + "# CREATOR: gphoto2, pdc640/jd350e library\n" + "%d %d\n" + "255\n", width, height); + + /* Allocate memory for Interpolated ppm image */ + pmmhdr_len = strlen(ppmheader); + outsize = width * height * 3 + pmmhdr_len + 1; + outdata = malloc(outsize); + if (!outdata) + return (GP_ERROR_NO_MEMORY); + + /* Set header */ + strcpy((char *)outdata, ppmheader); + + /* Decode and interpolate the Bayer Mask */ + result = gp_bayer_decode(*data, width, height, + &outdata[pmmhdr_len], camera->pl->bayer_tile ); + if (result < 0) { + free (outdata); + return (result); + } + + /* Call a specific postprocessor if available*/ + if( camera->pl->postprocessor ){ + result = camera->pl->postprocessor(width,height,&outdata[pmmhdr_len]); + if (result < 0) { + free (outdata); + return (result); + } + } + + /* Fix up data pointers */ + free (*data); + *data = outdata; + *size = outsize; + + return (GP_OK); +} + +static int +pdc640_delpic (GPPort *port) +{ + unsigned char cmd[2] = {0x59, 0x01}; + + CHECK_RESULT (pdc640_transmit (port, cmd, 2, NULL, 0)); + + return (GP_OK); +} + +static int +pdc640_takepic (GPPort *port) +{ + unsigned char cmd[2] = {0x2D, 0x00}; + + CHECK_RESULT (pdc640_transmit (port, cmd, 2, NULL, 0)); + + return (GP_OK); +} + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "pdc640/jd350e"); + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].model; i++) { + memset(&a, 0, sizeof(a)); + strcpy (a.model, models[i].model); + + if (models[i].vendor) { + a.status = GP_DRIVER_STATUS_TESTING; + a.port = GP_PORT_USB | GP_PORT_SERIAL; + a.usb_vendor = models[i].vendor; + a.usb_product = models[i].product; + a.speed[0] = 0; + } else { + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_SERIAL; + a.speed[0] = 0; + } + + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.file_operations = GP_FILE_OPERATION_DELETE | GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + CHECK_RESULT (gp_abilities_list_append (list, a)); + } + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int n, size; + unsigned char *data; + + /* + * Get the number of the picture from the filesystem and increment + * since we need a range starting with 1. + */ + CHECK_RESULT (n = gp_filesystem_number (camera->fs, folder, filename, + context)); + n++; + + /* Get the picture */ + switch (type) { + case GP_FILE_TYPE_NORMAL: + CHECK_RESULT (pdc640_getpic (camera, n, 0, 0, &data, &size)); + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_PPM)); + break; + case GP_FILE_TYPE_RAW: + CHECK_RESULT (pdc640_getpic (camera, n, 0, 1, &data, &size)); + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_RAW)); + break; + case GP_FILE_TYPE_PREVIEW: + CHECK_RESULT (pdc640_getpic (camera, n, 1, 0, &data, &size)); + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_PPM)); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + + CHECK_RESULT (gp_file_set_data_and_size (file, (char*)data, size)); + + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + unsigned char cmd[2] = {0x59, 0x00}; + + CHECK_RESULT (pdc640_transmit (camera->port, cmd, 2, NULL, 0)); + + return (GP_OK); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, const char *file, + void *data, GPContext *context) +{ + Camera *camera = data; + int n, count; + + /* We can only delete the last picture */ + CHECK_RESULT (n = gp_filesystem_number (camera->fs, folder, file, + context)); + n++; + + CHECK_RESULT (pdc640_caminfo (camera->port, &count)); + if (count != n) + return (GP_ERROR_NOT_SUPPORTED); + + CHECK_RESULT (pdc640_delpic (camera->port)); + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Download program for GrandTek 98x based cameras. " + "Originally written by Chris Byrne , " + "and adapted for gphoto2 by Lutz Mueller " + "." + "Protocol enhancements and postprocessing " + "for Jenoptik JD350e by Michael Trawny " + ". " + "Bugfixes by Marcus Meissner .")); + + return (GP_OK); +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + int num, numpic; + + if (type != GP_CAPTURE_IMAGE) + return (GP_ERROR_NOT_SUPPORTED); + + /* First get the current number of images */ + CHECK_RESULT (pdc640_caminfo (camera->port, &numpic)); + + /* Take a picture */ + CHECK_RESULT (pdc640_takepic (camera->port)); + + /* Wait a bit for the camera */ + sleep(4); + + /* Picture will be the last one in the camera */ + CHECK_RESULT (pdc640_caminfo (camera->port, &num)); + if (num <= numpic) + return (GP_ERROR); + + /* Set the filename */ + sprintf (path->name, camera->pl->filespec, num); + strcpy (path->folder, "/"); + + CHECK_RESULT (gp_filesystem_append (camera->fs, "/", path->name, + context)); + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + int n; + Camera *camera = data; + + /* Fill the list */ + CHECK_RESULT (pdc640_caminfo (camera->port, &n)); + CHECK_RESULT (gp_list_populate (list, camera->pl->filespec, n)); + + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + int n, dummy; + int size_pic, size_thumb; + int width_pic, width_thumb, height_pic, height_thumb; + + CHECK_RESULT (n = gp_filesystem_number (fs, folder, file, context)); + n++; + + CHECK_RESULT (pdc640_picinfo (camera->port, n, + &size_pic, &width_pic, &height_pic, + &size_thumb, &width_thumb, &height_thumb, + &dummy )); + + info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_WIDTH | + GP_FILE_INFO_HEIGHT | GP_FILE_INFO_TYPE; + info->file.width = width_pic; + info->file.height = height_pic; +/* + info->file.size = size_pic; +*/ + info->file.size = width_pic * height_pic * 3; + strcpy (info->file.type, GP_MIME_PPM); + + info->preview.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_WIDTH | + GP_FILE_INFO_HEIGHT | GP_FILE_INFO_TYPE; + info->preview.width = width_thumb; + info->preview.height = height_thumb; + info->preview.size = size_thumb * 3; + strcpy (info->preview.type, GP_MIME_PPM); + + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func, +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + int result, i; + GPPortSettings settings; + CameraAbilities abilities; + + /* + * First of all, tell gphoto2 about the functions we + * implement (especially camera_exit so that everything + * gets correctly cleaned up even in case of error). + */ + camera->functions->about = camera_about; + camera->functions->capture = camera_capture; + camera->functions->exit = camera_exit; + + CHECK_RESULT (gp_camera_get_abilities(camera,&abilities) ); + camera->pl = 0; + for( i=0; models[i].model; i++ ){ + if (!strcmp(models[i].model, abilities.model)) { + GP_DEBUG ("Model: %s", abilities.model); + camera->pl = malloc( sizeof(struct _CameraPrivateLibrary) ); + if( camera->pl ){ + *(camera->pl) = models[i].pl; + break; + } + else{ + return (GP_ERROR_NO_MEMORY); + } + } + } + if( ! camera->pl ){ + return (GP_ERROR_NOT_SUPPORTED); + } + /* Tell the filesystem where to get lists and info */ + CHECK_RESULT (gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera)); + + if (camera->port->type == GP_PORT_SERIAL) { + /* Open the port */ + CHECK_RESULT (gp_port_get_settings (camera->port, &settings)); + settings.serial.speed = 9600; + CHECK_RESULT (gp_port_set_settings (camera->port, settings)); + + /* Start with a low timeout (so we don't have to wait if already initialized) */ + CHECK_RESULT (gp_port_set_timeout (camera->port, 1000)); + + /* Is the camera at 9600? */ + result = pdc640_ping_low (camera->port); + if (result == GP_OK) + CHECK_RESULT (pdc640_speed (camera->port, 115200)); + + /* Switch to 115200 */ + settings.serial.speed = 115200; + CHECK_RESULT (gp_port_set_settings (camera->port, settings)); + + /* Is the camera at 115200? */ + CHECK_RESULT (pdc640_ping_high (camera->port)); + + /* Switch to a higher timeout */ + CHECK_RESULT (gp_port_set_timeout (camera->port, 5000)); + } + return (GP_OK); +} + +static int +flip_both (int width, int height, unsigned char *rgb) +{ + unsigned char *end, c; + + end = rgb + ((width * height) * 3); + while (rgb < end) { + c = *rgb; + *rgb++ = *--end; + *end = c; + } + + return GP_OK; +} + +static int +flip_vertical (int width, int height, unsigned char* rgb) { + int i; + unsigned char *buf; + + buf = malloc(width*3); + if (!buf) return GP_ERROR_NO_MEMORY; + for (i=0;i +#include +#include +#include + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "pdc700" + +#define PDC700_INIT 0x01 +#define PDC700_INFO 0x02 +#define PDC700_CONFIG 0x03 +#define PDC700_BAUD 0x04 +#define PDC700_PICINFO 0x05 +#define PDC700_THUMB 0x06 +#define PDC700_PIC 0x07 +#define PDC700_DEL 0x09 +#define PDC700_CAPTURE 0x0a + +#define RETRIES 5 + +enum _PDCStatus { + PDC_STATUS_FAIL = 0x00, + PDC_STATUS_DONE = 0x01, + PDC_STATUS_LAST = 0x02 +}; +typedef enum _PDCStatus PDCStatus; + +enum _PDCConf { + PDC_CONF_FLASH = 0x00, + PDC_CONF_TIMER = 0x01, + PDC_CONF_CAPTION = 0x02, + PDC_CONF_LCD = 0x03, + PDC_CONF_QUALITY = 0x04, + PDC_CONF_TIME = 0x05, + PDC_CONF_POWEROFF = 0x06, + PDC_CONF_SIZE = 0x07 + /* I think we have them all... 8 and 9 return failure */ +}; +typedef enum _PDCConf PDCConf; + +enum _PDCBaud { + PDC_BAUD_9600 = 0x00, + PDC_BAUD_19200 = 0x01, + PDC_BAUD_38400 = 0x02, + PDC_BAUD_57600 = 0x03, + PDC_BAUD_115200 = 0x04 +}; +typedef enum _PDCBaud PDCBaud; + +enum _PDCBool { + PDC_BOOL_OFF = 0, + PDC_BOOL_ON = 1 +}; +typedef enum _PDCBool PDCBool; + +typedef struct _PDCDate PDCDate; +struct _PDCDate { + + /* + * v2.45: Years since 1980 + * V3.10: Years since 2000 + */ + unsigned char year, month, day; + unsigned char hour, minute, second; +}; + +enum _PDCMode { + PDC_MODE_PLAY = 0, + PDC_MODE_RECORD = 1, + PDC_MODE_MENU = 2 +}; +typedef enum _PDCMode PDCMode; + +enum _PDCQuality { + PDC_QUALITY_NORMAL = 0, + PDC_QUALITY_FINE = 1, + PDC_QUALITY_SUPERFINE = 2 +}; +typedef enum _PDCQuality PDCQuality; + +enum _PDCSize { + PDC_SIZE_VGA = 0, + PDC_SIZE_XGA = 1, +}; +typedef enum _PDCSize PDCSize; + +enum _PDCFlash { + PDC_FLASH_AUTO = 0, + PDC_FLASH_ON = 1, + PDC_FLASH_OFF = 2 +}; +typedef enum _PDCFlash PDCFlash; + +typedef struct _PDCInfo PDCInfo; +struct _PDCInfo { + unsigned int num_taken, num_free; + unsigned char auto_poweroff; + char version[6]; + unsigned char memory; + PDCDate date; + PDCMode mode; + PDCQuality quality; + PDCSize size; + PDCFlash flash; + PDCBaud speed; + PDCBool caption, timer, lcd, ac_power; +}; + +typedef struct _PDCPicInfo PDCPicInfo; +struct _PDCPicInfo { + char version[6]; + unsigned int pic_size, thumb_size; + unsigned char flash; +}; + +#define IMAGE_QUALITY _("Image Quality") +#define IMAGE_SIZE _("Image Size") +#define FLASH_SETTING _("Flash Setting") +#define LCD_STATE _("LCD") +#define SELF_TIMER _("Self Timer") +#define AUTO_POWEROFF _("Auto Power Off (minutes)") +#define SHOW_CAPTIONS _("Information") + +static const char *quality[] = {N_("normal"), N_("fine"), N_("superfine"), + NULL}; +static const char *flash[] = {N_("auto"), N_("on"), N_("off"), NULL}; +static const char *bool[] = {N_("off"), N_("on"), NULL}; +static const char *mode[] = {N_("play"), N_("record"), N_("menu"), NULL}; +static const char *power[] = {N_("battery"), N_("a/c adaptor"), NULL}; +/* no real need to translate those ... */ +static const char *speed[] = {"9600", "19200", "38400", "57600", "115200", NULL}; +static const char *size[] = {"VGA (640x480)", "XGA (1024x768", NULL}; + +#define CR(result) {int __r=(result);if(__r<0) return (__r);} +#define CRF(result,d) {int r=(result);if(r<0) {free(d);return(r);}} + +#define PDC_EPOCH(info) ((!strcmp ((info)->version, "v2.45")) ? 1980 : 2000) + +/* + * Every command sent to the camera begins with 0x40 followed by two bytes + * indicating the number of following bytes. Then follows the byte that + * indicates the command (see above defines), perhaps some parameters. The + * last byte is the checksum, the sum of all bytes between length bytes + * (3rd one) and the last one (checksum). + */ +static int +calc_checksum (unsigned char *cmd, unsigned int len) +{ + int i; + unsigned char checksum; + + for (checksum = 0, i = 0; i < len; i++) + checksum += cmd[i]; + + return (checksum); +} + +static int +pdc700_send (Camera *camera, unsigned char *cmd, unsigned int cmd_len) +{ + /* Finish the command and send it */ + cmd[0] = 0x40; + cmd[1] = (cmd_len - 3) >> 8; + cmd[2] = (cmd_len - 3) & 0xff; + cmd[cmd_len - 1] = calc_checksum (cmd + 3, cmd_len - 1 - 3); + CR (gp_port_write (camera->port, (char *)cmd, cmd_len)); + + return (GP_OK); +} + +static int +pdc700_read (Camera *camera, unsigned char *cmd, + unsigned char *b, unsigned int *b_len, + PDCStatus *status, unsigned char *sequence_number, + GPContext *context) +{ + unsigned char header[3], checksum; + unsigned int i; + + /* + * Read the header (0x40 plus 2 bytes indicating how many bytes + * will follow) + */ + CR (gp_port_read (camera->port, (char *)header, 3)); + if (header[0] != 0x40) { + gp_context_error (context, _("Received unexpected " + "header (%i)"), header[0]); + return (GP_ERROR_CORRUPTED_DATA); + } + *b_len = (header[2] << 8) | header [1]; + if (*b_len > 2048) { + GP_DEBUG ("length %d too large", *b_len); + return GP_ERROR_CORRUPTED_DATA; + } + + /* Read the remaining bytes */ + CR (gp_port_read (camera->port, (char *)b, *b_len)); + + /* + * The first byte indicates if this the response for our command. + */ + if (b[0] != (0x80 | cmd[3])) { + gp_context_error (context, _("Received unexpected response")); + return (GP_ERROR_CORRUPTED_DATA); + } + + /* Will other packets follow? Has the transaction been successful? */ + *status = b[1]; + + /* + * If everything went ok and if we are downloading a picture or + * thumbnail, we got a sequence number (number of next packet). + */ + if ((*status != PDC_STATUS_FAIL) && ((cmd[3] == PDC700_THUMB) || + (cmd[3] == PDC700_PIC))) + *sequence_number = b[2]; + else + sequence_number = NULL; + + /* Check the checksum */ + for (checksum = i = 0; i < *b_len - 1; i++) + checksum += b[i]; + if (checksum != b[*b_len - 1]) { + gp_context_error (context, _("Checksum error")); + return (GP_ERROR_CORRUPTED_DATA); + } + + /* Preserve only the actual data */ + *b_len -= (sequence_number ? 4 : 3); + memmove (b, b + (sequence_number ? 3 : 2), *b_len); + + return (GP_OK); +} + +static int +pdc700_transmit (Camera *camera, unsigned char *cmd, unsigned int cmd_len, + unsigned char *buf, unsigned int *buf_len, GPContext *context) +{ + unsigned char b[2048], n; + unsigned int b_len, r; + unsigned int target = *buf_len, id; + int result; + PDCStatus status; + + status = PDC_STATUS_DONE; + for (r = 0; r < RETRIES; r++) { + if (status == PDC_STATUS_FAIL) + GP_DEBUG ("Retrying (%i)...", r); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return GP_ERROR_CANCEL; + CR (pdc700_send (camera, cmd, cmd_len)); + CR (pdc700_read (camera, cmd, b, &b_len, &status, &n, context)); + if (status != PDC_STATUS_FAIL) + break; + } + if (status == PDC_STATUS_FAIL) { + gp_context_error (context, _("The camera did not accept the " + "command.")); + return (GP_ERROR); + } + + /* Copy over the data */ + *buf_len = b_len; + memcpy (buf, b, b_len); + + /* + * Other packets will follow only in case of PDC700_THUMB or + * PDC700_PIC. + */ + if ((cmd[3] == PDC700_THUMB) || (cmd[3] == PDC700_PIC)) { + + /* Get those other packets */ + r = 0; + id = gp_context_progress_start (context, target, + _("Downloading...")); + while ((status != PDC_STATUS_LAST) && (r < RETRIES)) { + GP_DEBUG ("Fetching sequence %i...", n); + cmd[4] = status; + cmd[5] = n; + CR (pdc700_send (camera, cmd, 7)); + + /* Read data. */ + result = pdc700_read (camera, cmd, b, &b_len, + &status, &n, context); + + /* Did libgphoto2(_port) report an error? */ + if (result < 0) { + GP_DEBUG ("Read failed ('%s'). Trying again.", + gp_result_as_string (result)); + r++; + continue; + } + + /* Did the camera report an error? */ + if (status == PDC_STATUS_FAIL) { + GP_DEBUG ("Read failed: camera reported " + "failure. Trying again."); + r++; + continue; + } + + /* Read succeeded. Reset error counter */ + r = 0; + + /* + * Sanity check: We should never read more bytes than + * targeted + */ + if (*buf_len + b_len > target) { + gp_context_error (context, _("The camera " + "sent more bytes than expected (%i)"), + target); + return (GP_ERROR_CORRUPTED_DATA); + } + + /* Copy over the data */ + memcpy (buf + *buf_len, b, b_len); + *buf_len += b_len; + + /* + * Update the progress bar and check for + * cancellation. + */ + gp_context_progress_update (context, id, *buf_len); + if (gp_context_cancel (context) == + GP_CONTEXT_FEEDBACK_CANCEL) { + cmd[4] = PDC_STATUS_LAST; + cmd[5] = n; + CR (pdc700_send (camera, cmd, 7)); + return (GP_ERROR_CANCEL); + } + } + + /* Check if anything went wrong */ + if (status != PDC_STATUS_LAST) + return (GP_ERROR_CORRUPTED_DATA); + + /* Acknowledge last packet */ + cmd[4] = PDC_STATUS_LAST; + cmd[5] = n; + CR (pdc700_send (camera, cmd, 7)); + + gp_context_progress_stop (context, id); + } + + return (GP_OK); +} + +static int +pdc700_baud (Camera *camera, int baud, GPContext *context) +{ + unsigned char cmd[6]; + unsigned char buf[2048]; + unsigned int buf_len = 0; + + cmd[3] = PDC700_BAUD; + switch (baud) { + case 115200: + cmd[4] = PDC_BAUD_115200; + break; + case 57600: + cmd[4] = PDC_BAUD_57600; + break; + case 38400: + cmd[4] = PDC_BAUD_38400; + break; + case 19200: + cmd[4] = PDC_BAUD_19200; + break; + case 9600: + cmd[4] = PDC_BAUD_9600; + break; + default: + return (GP_ERROR_IO_SERIAL_SPEED); + } + CR (pdc700_transmit (camera, cmd, 6, buf, &buf_len, context)); + + return (GP_OK); +} + +static int +pdc700_init (Camera *camera, GPContext *context) +{ + unsigned int buf_len = 0; + unsigned char cmd[5]; + unsigned char buf[2048]; + + cmd[3] = PDC700_INIT; + CR (pdc700_transmit (camera, cmd, 5, buf, &buf_len, context)); + + return (GP_OK); +} + +static int +pdc700_picinfo (Camera *camera, unsigned int n, PDCPicInfo *info, + GPContext *context) +{ + unsigned int buf_len = 0; + unsigned char cmd[7]; + unsigned char buf[2048]; + + GP_DEBUG ("Getting info about picture %i...", n); + cmd[3] = PDC700_PICINFO; + cmd[4] = n; + cmd[5] = n >> 8; + CR (pdc700_transmit (camera, cmd, 7, buf, &buf_len, context)); + + /* We don't know about the meaning of buf[0-1] */ + + /* Check if this information is about the right picture */ + if (n != (buf[2] | (buf[3] << 8))) { + gp_context_error (context, _("Requested information about " + "picture %i (= 0x%x), but got information about " + "picture %i back"), n, cmd[4] | (cmd[5] << 8), + buf[2] | (buf[3] << 8)); + return (GP_ERROR_CORRUPTED_DATA); + } + + /* Picture size */ + info->pic_size = buf[4] | (buf[5] << 8) | + (buf[6] << 16) | (buf[7] << 24); + GP_DEBUG ("Size of picture: %i", info->pic_size); + + /* Flash used? */ + info->flash = buf[8]; + GP_DEBUG ("This picture has been taken with%s flash.", + buf[8] ? "" : "out"); + + /* The meaning of buf[9-17] is unknown */ + + /* Thumbnail size */ + info->thumb_size = buf[18] | (buf[19] << 8) | (buf[20] << 16) | + (buf[21] << 24); + GP_DEBUG ("Size of thumbnail: %i", info->thumb_size); + + /* The meaning of buf[22] is unknown */ + + /* Version info */ + strncpy (info->version, (char *)&buf[23], 6); + + /* + * Now follows some picture data we have yet to reverse + * engineer (buf[24-63]). + */ + + return (GP_OK); +} + +static int +pdc700_config (Camera *camera, PDCConf conf, unsigned char value, GPContext *context) +{ + unsigned char cmd[12]; + unsigned char buf[512]; + unsigned int buf_len = 0; + + cmd[3] = PDC700_CONFIG; + cmd[4] = conf; + cmd[5] = value; + + CR (pdc700_transmit (camera, cmd, 12, buf, &buf_len, context)); + + return GP_OK; +} + + +static int +pdc700_info (Camera *camera, PDCInfo *info, GPContext *context) +{ + unsigned int buf_len = 0; + unsigned char buf[2048]; + unsigned char cmd[5]; + + cmd[3] = PDC700_INFO; + CR (pdc700_transmit (camera, cmd, 5, buf, &buf_len, context)); + + /* + * buf[0-1,3]: We don't know. The following has been seen: + * 01 12 .. 01 + * 01 20 .. 02 + * 01 20 .. 02 + */ + + info->memory = buf[2]; + + /* Power source state (make sure it's valid) */ + info->ac_power = buf[4]; + if (info->ac_power != 0 && info->ac_power != 1) { + GP_DEBUG ("Unknown power source: %i", info->ac_power); + info->ac_power = PDC_BOOL_OFF; + } + + info->auto_poweroff = buf[5]; + + /* Mode (make sure we know it) */ + info->mode = buf[6]; + if (info->mode < 0 || info->mode > 2) { + GP_DEBUG ("Unknown mode setting: %i", info->mode); + /* record mode is the power-on default -gi */ + info->mode = PDC_MODE_RECORD; + } + + /* Flash (make sure we know it) */ + info->flash = buf[7]; + if (info->flash < 0 || info->flash > 2) { + GP_DEBUG ("Unknown flash setting: %i", info->flash); + info->flash = PDC_FLASH_AUTO; + } + + /* Protocol version */ + strncpy (info->version, (char *)&buf[8], 6); + + /* buf[14-15]: We don't know. Seems to be always 00 00 */ + + /* Pictures */ + info->num_taken = buf[16] | (buf[17] << 8); + info->num_free = buf[18] | (buf[19] << 8); + + /* Date */ + info->date.year = buf[20]; + info->date.month = buf[21]; + info->date.day = buf[22]; + info->date.hour = buf[23]; + info->date.minute = buf[24]; + info->date.second = buf[25]; + + /* Speed (kind of bogus as we already know about it) */ + info->speed = buf[26]; + if (info->speed < 0 || info->speed > 4) { + GP_DEBUG ("Unknown speed: %i", info->speed); + info->speed = PDC_BAUD_9600; + } + + /* Caption/Information state (make sure it's valid) */ + info->caption = buf[27]; + if (info->caption != 0 && info->caption != 1) { + GP_DEBUG ("Unknown caption state: %i", info->caption); + info->caption = PDC_BOOL_OFF; + } + + /* + * buf[28-31]: We don't know. Below are some samples: + * + * f8 b2 64 03 + * + * c6 03 86 28 + * + * 3a 7f 65 83 + * + * 23 25 66 83 + */ + + /* Timer state (make sure it's valid) */ + info->timer = buf[32]; + if (info->timer != 0 && info->timer != 1) { + GP_DEBUG ("Unknown timer state %i", info->timer); + info->timer = PDC_BOOL_OFF; + } + + /* LCD state (make sure it's valid) */ + info->lcd = buf[33]; + if (info->lcd != 0 && info->lcd != 1) { + GP_DEBUG ("Unknown LCD state %i", info->lcd); + info->lcd = PDC_BOOL_OFF; + } + + /* Quality (make sure we know it) */ + info->quality = buf[34]; + if (info->quality < 0 || info->quality > 2) { + GP_DEBUG ("Unknown quality: %i", info->quality); + info->quality = PDC_QUALITY_NORMAL; + } + + /* Here follow lots of 0s */ + + info->size = 0; + + return (GP_OK); +} + +static int +pdc700_set_date (Camera *camera, time_t time, GPContext *context) +{ + unsigned char cmd[15]; + unsigned char buf[512]; + unsigned int buf_len = 0; + struct tm *tm; + PDCInfo info; + + CR (pdc700_info (camera, &info, context)); + + tm = localtime(&time); + + cmd[3] = PDC700_CONFIG; + cmd[4] = PDC_CONF_TIME; + + cmd[5] = (tm->tm_year + 1900) - PDC_EPOCH(&info); + cmd[6] = tm->tm_mon + 1; + cmd[7] = tm->tm_mday; + cmd[8] = tm->tm_hour; + cmd[9] = tm->tm_min; + cmd[10] = tm->tm_sec; + + CR (pdc700_transmit (camera, cmd, 12, buf, &buf_len, context)); + return GP_OK; +} + +static int +pdc700_capture (Camera *camera, GPContext *context) +{ + unsigned char cmd[5], buf[1024]; + unsigned int buf_len = 0; + int r = 0; + int try; + PDCInfo info; + + cmd[3] = PDC700_CAPTURE; + cmd[4] = 0; + + CR (pdc700_transmit (camera, cmd, 5, buf, &buf_len, context)); + + /* + * This is rather hackish. The camera needs a little time to recover + * after taking a picture. I tried a general-purpose retry thing in + * pdc_transmit, but that got in the way during initialization. So + * I'm leaving this ugly-but-works junk here for now. + */ + for (try = 0; try < 10; try++) + if ((r = pdc700_info(camera, &info, context)) == GP_OK) + break; + + return r; +}; + +static int +pdc700_pic (Camera *camera, unsigned int n, + unsigned char **data, unsigned int *size, unsigned char thumb, + GPContext *context) +{ + unsigned char cmd[8]; + int r; + PDCPicInfo info; + + /* Picture size? Allocate the memory */ + CR (pdc700_picinfo (camera, n, &info, context)); + *size = thumb ? info.thumb_size : info.pic_size; + *data = malloc (sizeof (char) * *size); + if (!*data) + return (GP_ERROR_NO_MEMORY); + + /* Get picture data */ + GP_DEBUG ("Getting picture %i...", n); + cmd[3] = (thumb) ? PDC700_THUMB : PDC700_PIC; + cmd[4] = 0; /* No idea what that byte is for */ + cmd[5] = n; + cmd[6] = n >> 8; + r = pdc700_transmit (camera, cmd, 8, *data, size, context); + if (r < 0) { + free (*data); + return (r); + } + + return (GP_OK); +} + +static int +pdc700_delete (Camera *camera, unsigned int n, GPContext *context) +{ + unsigned char cmd[6], buf[1024]; + unsigned int buf_len = 0; + + cmd[3] = PDC700_DEL; + cmd[4] = n; + CR (pdc700_transmit (camera, cmd, 6, buf, &buf_len, context)); + + /* + * We get three bytes back but don't know the meaning of those. + * Perhaps some error codes with regard to read-only images? + */ + + return (GP_OK); +} + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Polaroid DC700"); + + return (GP_OK); +} + +static struct { + const char *model; + unsigned short usb_vendor; + unsigned short usb_product; + +} models[] = { + {"Polaroid:DC700", 0x784, 0x2888}, + {NULL, 0, 0} +}; + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].model; i++) { + memset(&a, 0, sizeof(a)); + strcpy (a.model, models[i].model); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL | GP_PORT_USB; + a.usb_vendor = models[i].usb_vendor; + a.usb_product= models[i].usb_product; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.speed[3] = 57600; + a.speed[4] = 115200; + a.operations = GP_OPERATION_CAPTURE_IMAGE | + GP_OPERATION_CONFIG; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + + CR (gp_abilities_list_append (list, a)); + } + + return (GP_OK); +} + +static void +pdc700_expand (unsigned char *src, unsigned char *dst) +{ + int Y, Y2, U, V; + int x, y; + + for (y = 0; y < 60; y++) + for (x = 0; x < 80; x += 2) { + Y = (char) src[0]; Y += 128; + U = (char) src[1]; U -= 0; + Y2 = (char) src[2]; Y2 += 128; + V = (char) src[3]; V -= 0; + + if ((Y > -16) && (Y < 16)) Y = 0; + if ((Y2 > -16) && (Y2 < 16)) Y2 = 0; + if ((U > -16) && (U < 16)) U = 0; + if ((V > -16) && (V < 16)) V = 0; + + dst[0] = Y + (1.402000 * V); + dst[1] = Y - (0.344136 * U) - (0.714136 * V); + dst[2] = Y + (1.772000 * U); + dst += 3; + + dst[0] = Y2 + (1.402000 * V); + dst[1] = Y2 - (0.344136 * U) - (0.714136 * V); + dst[2] = Y2 + (1.772000 * U); + dst += 3; + + src += 4; + } +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + int count; + char buf[1024]; + + CR (pdc700_capture (camera, context)); + + /* + * We don't get any info back. However, we need to tell the + * CameraFilesystem that there is one additional picture. + */ + CR (count = gp_filesystem_count (camera->fs, "/", context)); + snprintf (buf, sizeof (buf), "PDC700%04i.jpg", count + 1); + CR (gp_filesystem_append (camera->fs, "/", buf, context)); + + /* Now tell the frontend where to look for the image */ + strncpy (path->folder, "/", sizeof (path->folder)); + strncpy (path->name, buf, sizeof (path->name)); + + return (GP_OK); +} + +static int +del_file_func (CameraFilesystem *fs, const char *folder, const char *file, + void *data, GPContext *context) +{ + Camera *camera = data; + int n; + + /* We need picture numbers starting with 1 */ + CR (n = gp_filesystem_number (fs, folder, file, context)); + n++; + + CR (pdc700_delete (camera, n, context)); + + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int n; + unsigned int size; + unsigned char *data = NULL; + +#if 0 + if (type == GP_FILE_TYPE_RAW) + return (GP_ERROR_NOT_SUPPORTED); +#endif + + /* Get the number of the picture from the filesystem */ + CR (n = gp_filesystem_number (camera->fs, folder, filename, context)); + + /* Get the file */ + CR (pdc700_pic (camera, n + 1, &data, &size, + (type == GP_FILE_TYPE_NORMAL) ? 0 : 1, context)); + switch (type) { + case GP_FILE_TYPE_NORMAL: + + /* Files are always JPEG */ + CRF (gp_file_set_data_and_size (file, (char *)data, size), data); + CR (gp_file_set_mime_type (file, GP_MIME_JPEG)); + break; + + case GP_FILE_TYPE_PREVIEW: + + /* + * Depending on the protocol version, we have different + * encodings. + */ + if ((data[0] == 0xff) && (data[1] == 0xd8) && + (data[size - 2] == 0xff) && (data[size - 1] == 0xd9)) { + + /* Image is JPEG */ + CRF (gp_file_set_data_and_size (file, (char *)data, size), + data); + CR (gp_file_set_mime_type (file, GP_MIME_JPEG)); + + } else if (size == 9600) { + const char header[] = "P6\n80 60\n255\n"; + unsigned char *ppm; + unsigned int ppm_size; + + /* + * Image is a YUF 2:1:1 format: 4 bytes for each 2 + * pixels. Y0 U0 Y1 V0 Y2 U2 Y3 V2 Y4 U4 Y5 V4 .... + * So the first four bytes make up the first two + * pixels. You use Y0, U0, V0 to get pixel0 then Y1, + * U0, V0 to get pixel 2. Then onto the next 4-byte + * sequence. + */ + ppm_size = size * 3 / 2; + ppm = malloc (sizeof (char) * ppm_size); + if (!ppm) { + free (data); + return (GP_ERROR_NO_MEMORY); + } + pdc700_expand (data, ppm); + free (data); + CRF (gp_file_append (file, header, strlen (header)), + ppm); + CRF (gp_file_append (file, (char *)ppm, ppm_size), ppm); + free (ppm); + CR (gp_file_set_mime_type (file, GP_MIME_PPM)); + + } else { + free (data); + gp_context_error (context, _("%i bytes of an " + "unknown image format have been received. " + "Please write to %s and ask for " + "assistance."), size, MAIL_GPHOTO_DEVEL); + return (GP_ERROR); + } + break; + + case GP_FILE_TYPE_RAW: +#if 1 + CRF (gp_file_set_data_and_size (file, (char *)data, size), data); + CR (gp_file_set_mime_type (file, GP_MIME_RAW)); + break; +#endif + default: + free (data); + return (GP_ERROR_NOT_SUPPORTED); + } + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Download program for Polaroid DC700 camera. " + "Originally written by Ryan Lantzer " + " for gphoto-4.x. Adapted for gphoto2 by " + "Lutz Mueller .")); + + return (GP_OK); +} + +/* + * We encapsulate the process of adding an entire radio control. + */ +static void +add_radio (CameraWidget *section, const char *blurb, const char **opt, + int selected) +{ + CameraWidget *child; + int i; + + gp_widget_new (GP_WIDGET_RADIO, blurb, &child); + + for (i = 0; opt[i]; i++) + gp_widget_add_choice (child, opt[i]); + + gp_widget_set_value (child, (void *) opt[selected]); + gp_widget_append (section, child); +} + + +static int +camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *child; + CameraWidget *section; + float range; + PDCInfo info; + time_t time; + struct tm tm; + int xtime; + + CR (pdc700_info (camera, &info, context)); + + gp_widget_new (GP_WIDGET_WINDOW, _("Camera Configuration"), window); + + gp_widget_new (GP_WIDGET_SECTION, _("Camera"), §ion); + gp_widget_append (*window, section); + + add_radio (section, LCD_STATE, bool, info.lcd); + add_radio (section, SELF_TIMER, bool, info.timer); + add_radio (section, SHOW_CAPTIONS, bool, info.caption); + + /* Auto poweroff */ + gp_widget_new (GP_WIDGET_RANGE, AUTO_POWEROFF, &child); + gp_widget_set_range (child, 1., 99., 1.); + range = (float) info.auto_poweroff; + gp_widget_set_value (child, &range); + gp_widget_append (section, child); + gp_widget_set_info (child, _("How long will it take until the " + "camera powers off?")); + + gp_widget_new (GP_WIDGET_SECTION, _("Image"), §ion); + gp_widget_append (*window, section); + add_radio (section, IMAGE_QUALITY, quality, info.quality); + add_radio (section, IMAGE_SIZE, size, info.size); + add_radio (section, FLASH_SETTING, flash, info.flash); + + gp_widget_new (GP_WIDGET_SECTION, _("Date and Time"), §ion); + gp_widget_append (*window, section); + + /* Date and time */ + tm.tm_year = info.date.year + + ((!strcmp (info.version, "v2.45")) ? 1980 : 2000) - 1900; + tm.tm_mon = info.date.month - 1; + tm.tm_mday = info.date.day; + tm.tm_hour = info.date.hour; + tm.tm_min = info.date.minute; + tm.tm_sec = info.date.second; + time = mktime (&tm); + GP_DEBUG ("time: %X", (unsigned int) time); + gp_widget_new (GP_WIDGET_DATE, _("Date and Time"), &child); + gp_widget_append (section, child); + xtime = time; + gp_widget_set_value (child, &xtime); + return GP_OK; +} + +static int +which_radio_button (CameraWidget *window, const char *label, + const char * const *opt) +{ + CameraWidget *child; + int i; + const char *value; + + if (gp_widget_get_child_by_label (window, label, &child) != GP_OK) + return -1; + + if (!gp_widget_changed (child)) + return -1; + + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + + for (i = 0; opt[i]; i++) + if (!strcmp (value, opt[i])) + return i; + + return -1; +} + +static int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *child; + int i = 0, r; + float range; + + if ((i = which_radio_button (window, IMAGE_QUALITY, quality)) >= 0) + CR (pdc700_config (camera, PDC_CONF_QUALITY, + (unsigned char) i, context)); + + if ((i = which_radio_button (window, IMAGE_SIZE, size)) >= 0) + CR (pdc700_config (camera, PDC_CONF_SIZE, + (unsigned char) i, context)); + + if ((i = which_radio_button (window, FLASH_SETTING, flash)) >= 0) + CR (pdc700_config (camera, PDC_CONF_FLASH, + (unsigned char) i, context)); + + if ((i = which_radio_button (window, LCD_STATE, bool)) >= 0) + CR (pdc700_config (camera, PDC_CONF_LCD, + (unsigned char) i, context)); + + if ((i = which_radio_button (window, SELF_TIMER, bool)) >= 0) + CR (pdc700_config (camera, PDC_CONF_TIMER, + (unsigned char) i, context)); + + if ((i = which_radio_button (window, SHOW_CAPTIONS, bool)) >= 0) + CR (pdc700_config (camera, PDC_CONF_CAPTION, + (unsigned char) i, context)); + + /* Auto poweroff */ + r = gp_widget_get_child_by_label (window, AUTO_POWEROFF, &child); + if ((r == GP_OK) && gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &range); + CR (pdc700_config (camera, PDC_CONF_POWEROFF, + (unsigned char) range, context)); + } + + /* Date and time */ + r = gp_widget_get_child_by_label (window, _("Date and Time"), &child); + if ((r == GP_OK) && gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &i); + if (i != -1) + pdc700_set_date(camera, (time_t) i, context); + else + GP_DEBUG ("date widget returned -1, not setting datee/time"); + /* GP_DEBUG ("Implement setting of date & time!"); */ + } + + + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *about, GPContext *context) +{ + PDCInfo info; + + CR (pdc700_info (camera, &info, context)); + + sprintf (about->text, _( + "Date: %i/%02i/%02i %02i:%02i:%02i\n" + "Pictures taken: %i\n" + "Free pictures: %i\n" + "Software version: %s\n" + "Baudrate: %s\n" + "Memory: %i megabytes\n" + "Camera mode: %s\n" + "Image quality: %s\n" + "Flash setting: %s\n" + "Information: %s\n" + "Timer: %s\n" + "LCD: %s\n" + "Auto power off: %i minutes\n" + "Power source: %s"), + info.date.year + ((!strcmp (info.version, "v2.45")) ? 1980 : + 2000), + info.date.month, info.date.day, + info.date.hour, info.date.minute, info.date.second, + info.num_taken, info.num_free, info.version, + _(speed[info.speed]), + info.memory, + _(mode[info.mode]), + _(quality[info.quality]), + _(flash[info.flash]), + _(bool[info.caption]), + _(bool[info.timer]), + _(bool[info.lcd]), + info.auto_poweroff, + _(power[info.ac_power])); + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + PDCInfo info; + + /* Fill the list */ + CR (pdc700_info (camera, &info, context)); + gp_list_populate (list, "PDC700%04i.jpg", info.num_taken); + + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo *info, void *data, GPContext *context) +{ + int n; + Camera *camera = data; + PDCPicInfo pic_info; + + /* Get the picture number from the CameraFilesystem */ + CR (n = gp_filesystem_number (fs, folder, file, context)); + + CR (pdc700_picinfo (camera, n + 1, &pic_info, context)); + info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + info->preview.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + strcpy (info->file.type, GP_MIME_JPEG); + strcpy (info->preview.type, GP_MIME_JPEG); + info->file.size = pic_info.pic_size; + info->preview.size = pic_info.thumb_size; + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .del_file_func = del_file_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + int result = GP_OK, i; + GPPortSettings settings; + int speeds[] = {115200, 9600, 57600, 19200, 38400}; + + /* First, set up all the function pointers */ + camera->functions->capture = camera_capture; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + + /* Now, tell the filesystem where to get lists and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + /* Check if the camera is really there */ + CR (gp_port_get_settings (camera->port, &settings)); + CR (gp_port_set_timeout (camera->port, 1000)); + + switch (camera->port->type) { + case GP_PORT_SERIAL: + + /* Figure out current speed */ + for (i = 0; i < 5; i++) { + settings.serial.speed = speeds[i]; + CR (gp_port_set_settings (camera->port, settings)); + result = pdc700_init (camera, context); + if (result == GP_OK) + break; + } + if (i == 5) + return (result); + + /* Set the speed to the highest one */ + if (speeds[i] < 115200) { + CR (pdc700_baud (camera, 115200, context)); + settings.serial.speed = 115200; + CR (gp_port_set_settings (camera->port, settings)); + } + break; + case GP_PORT_USB: + /* Use the defaults the core parsed */ + CR (gp_port_set_settings (camera->port, settings)); + CR (pdc700_init (camera, context)); + break; + default: + gp_context_error (context, _("The requested port type (%i) " + "is not supported by this driver."), + camera->port->type); + return (GP_ERROR_NOT_SUPPORTED); + } + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ChangeLog new file mode 100644 index 00000000..b558224c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ChangeLog @@ -0,0 +1,2252 @@ +2012-04-07 Axel Waggershauser + + * EOS 5D Mark III support + * CustomFunctionEx support for EOS + +2010-11-17 Marcus Meissner + + * config.c, library.c, ptp.c, ptp.h: switch the canon powershot event + handling to be non-interrupt (just using the 0x9013 opcode). + +2010-11-17 Marcus Meissner + + * library.c: Replace 20 by 100 tries in EOS preview capturing. + +2010-11-15 Flori Radlherr + + * config.c: Implement a "Immediate" button trigger config on Canon EOS. + + +2010-10-28 Marcus Meissner + + * library.c: Speed up initial EOS capture if the event stack was not + drained before. + +2010-10-15 Chris Wulff + + * library.c: Fixed session setup to really use incremental, + from Chris Wulff. + +2010-09-15 Marcus Meissner + + * library.c: When querying the thumb, use the direct thumbsize. + +2010-06-30 Marcus Meissner + + * library.c: restructured eos event handling loops + to be less USB intensive after report by Axel. + * config.c,library.c: various ptp errors passed up. + +2010-06-30 Axel Waggershauser + + * ptp-pack.c: Fixed EOS imageformat unpacking regression. + * config.c: fixed shadowed variable usage making set_config + leave too early. + +2010-01-09 Daniel P. Berrange + + * config.c: Added several new Nikon flash configurations. + +2009-12-13 Marcus Meissner + + * config.c: Mark readonly widgets as readonly + * library.c: make timeout code the same for all functions, + fixed canon capture timeouts. + +2009-12-06 Laurent Calmes + + * library.c: Fixed Nikon Preview code for Nikon D300, + +2009-10-31 Marcus Meissner + + * config.c: Implemented Sharpness, Capture Delay and Burst + Interval standard PTP properties. + * config.c: Implemented Fuji Image Format and Release/Capture mode. + +2009-10-29 Marcus Meissner + + * library.c: Fuji Pro S5 support. Detect FUJI vendor. + * ptp.h: More vendor codes from i3a.org. + * config.c: Hook up lots of PTP codes from Fuji S5 Pro. + +2009-10-02 Marcus Meissner + + * config.c,ptp.c,ptp-pack.c: Added more EOS configuration values. + * library.c: Made EOS preview capturing more stable. + * config.c: Hide action commands if command is not present. + +2009-09-25 Marcus Meissner + + * config.c: Handle different Canon EOS card target values. + +2009-08-02 Marcus Meissner + + * library.c: In wait_for_event do not wait for full seconds anymore. + +2009-07-28 Axel Waggershauser + + * config.c: Unified names and values of configuration settings. + + Some of the common names have been changed, like owner -> ownername + and exptime -> shutterspeed etc. + +2009-07-24 Marcus Meissner + + * config.c: Finalized generic PTP property setter. + * library.c,config.c: Enable Viewfinder on demand only, not for + regular capture. Should fix camera-switching-off issues. + +2009-07-19 Marcus Meissner + + * config.c: New subsection "status" for all read-only values. + * config.c: New subsection "action" for simple camera actions. + + * config.c: Added new "bulb" action for newer Canon EOS cameras,. + + --set-config bulb=1 to put it in Bulb mode + --set-config bulb=0 to put it out of Bulb mode + (--wait-event for looking where the image went or so) + +2009-07-15 Axel Waggershauser + + * config.c: some unnecessary debuglines removed. + * config.c: Decode EOS battery charge value. + * config.c,library.c: support for 'online-updates' of capturetarget for EOS + +2009-07-10 Marcus Meissner + + * ptp.c,ptp.h: Generic PTP wrapper function (no data, no output) + to avoid coding all generic functions as seperate functions. + Converted all convertable functions to macros. + +2009-07-09 Axel Waggershauser + + * ptp.c: Some sprintf format adjustments. + * ptp.h: EOS_RemoteRelease doc comments. + * config.c: More Canon ISO and FStop values for the Canon 5D Mark II. + * ptp-pack.c,library.c: More EOS debugging output. + * config.c: Added AEB and DriveMode configuration. + * ptp.c,ptp.h: Added ptp_canon_eos_requestdevicepropvalue() + * config.c: request some string types, handle owner, artist, + copyright, lensname, serialnr, shuttercount, availableshots + * ptp.c: decode EOS strings better + * ptp-pack.c: dpd.GetSet adjustments. + * ptp-pack.c,config.c,ptp.c: Implemented EOS ImageSize and ImageFormat handling. + +2009-05-26 Marcus Meissner + + * ptp.c,ptp.h,library.c.usb.c:: Unify and abstract ptp object handling. + Add "on demand" loading throughout library.c. + + (Larger rewrite ... might still be a bit buggy.) + +2009-04-10 Marcus Meissner + + * ptp.c,ptp.h,ptp-pack.c: make nikon check event return a + generic PTPContainer, make canon check event also return + a generic PTPContainer. + + * ptp.c,ptp.h: Added 2 PTP event queue, generic events and Canon EOS. + + * library.c: Rewrote wait_for_event to use event queues etc. + + * library.c: Hooked up the first try at the trigger capture method, + currently just PTP generic, others to follow. + +2009-03-27 Marcus Meissner + + * library.c, ptp.c, ptp.h: use Nikon Get Vendor Extension Codes + call instead of fixed lists. Removed static lists. + + * library.c: In wait_event, handle Nikon cameras with Check Event + to also allow tethered capture via SDRAM. (cut and paste code needs + to be cleaned up sometime). + + * library.c: Nikon LiveView support for --capture-preview. + * library.c: Nikon DSLR: AutoFocus Drive (always possible) + and Manual Focus Drive (only during LiveView) added. + + * library.c: If a MTP device has vendor name Canon or Nikon, mark it as Nikon + or Canon. + + * library.c: Canon capture: Automatically fallback to SDRAM if + no CF/SD Card inserted. + * library.c: Canon EOS Capture: download all images on tethered capture. + + * config.c: longer timeout for Canon ViewFinder On command + * config.c: some more error reporting on the table driven config engine + * config.c: some new values added + + * music-players.h, device-flags.h: imported from latest libmtp. + + * library.c: Added: + Nikon CoolPix P50, S60 + Canon Digital IXUS 85 + Canon PowerShot A740, G10, + Canon EOS 5D Mark II + + +2009-01-21 Marcus Meissner + + * library.c: Adjusted flags for Canon Powershots to match capture + abilities on the SDK page. + * config.c: Do not list WiFi stuff on non-WiFi Nikons in config. + * library.c: Added Nikon D200 property set. + +2009-01-18 Marcus Meissner + + * library.c: Fixed stupid bug in "canon capture to card" mode. + + * ptp.c,ptp.h,config.c: PTP Nikon AfDrive (Nikon DSLR). (not doing much) + + * ptp.c, config.c: Various additions of missing config values. + +2009-01-15 Marcus Meissner + + * config.c: Enable viewfinder in enable capture for Powershots, + so we can just --set-config capture=1 --set-config output=0 + or so. + + * library.c: Added Nikon D90 and its hidden properties. + +2009-01-08 Marcus Meissner + + * library.c: Added set_info_func, to set/reset Object Protection + flags. Added queries for it to get_info_func. (Used by digikam + already). + * library.c: Added Canon Digital IXUS 960 IS, EOS 1000D, PowerShot + SX10 IS, Fuji FinePix A920, S2000HD. + * library.c: Added Nikon D200 hidden properties. + * config.c: Added more Nikon properties (almost of D70s properties + now added). + +2008-12-22 Marcus Meissner + + * library.c,ptp.c,ptp.h: Added more Nikon properties. + +2008-12-21 Marcus Meissner + + * library.c: Handle CR2 in Canon ObjectAdd events + * ptp.c, config.c: More Nikon property handling + +2008-12-14 Marcus Meissner + + * ptp.h: Found some Nikon property ids. + +2008-11-27 Marcus Meissner + + * library.c: Got the data for the D700 and D300, included. + Changed nikon capture code to work with the D700 and other + newer Nikon DSLRs. + + * ptp.[ch]: Decode the Nikon DSLR current rotation flag. + * ptp.h: Mark up the operation codes for Nikons. + +2008-11-23 Marcus Meissner + + * library.c: Newer Nikon DSLRs "hide" the Nikon + vendor device properties, re-add them when we + find them missing. Reviewed with a D80 already. + + * ptp.h: Fixed Canon Capture to Card mode bug. + + * ptp.c,ptp.h: Dumper for lots of Canon properties + for --summary. + +2008-11-05 Marcus Meissner + + * ptp-private.h, library.c: Move init_ptp_fs + out of initialization and into the routines + that need it. + + This avoids loading the whole PTP fs for: + - configuration + - summary + +2008-10-26 Marcus Meissner + + * ptp.h,ptp.c: Started adding PTP v1.1 defines. + +2008-10-12 Marcus Meissner + + * library.c: Adjusted summary output a bit. + + * library.c: Handle "wrong parent" or "no root parent" + devices every time, so when we autodetect new ones + we do not need to add them to the list. + Should avoid releasing libgphoto2 for new iPhones etc. + + * library.c: If a filename is empty or not set, replace it by + the 8 char hexcode. (Should enable movie retrieval on + Panasonics). + +2008-10-09 Marcus Meissner + + * ptp-pack.c: factored out ptp time string parser + * library.c: also support MTP commands for cameras. + (fast directory download) + Using it for the Canon Digital IXUS SX100IS already. + +2008-09-20 Marcus Meissner + + * library.c: Do not disable viewfinder just after one preview. + Repeatedly switching on/off viewfinder mode causes refocus + all the time. + +2008-08-28 Marcus Meissner + + * library.c: Increase timeout for mtp proplist reading (from + Chris Bagwell). + + * ptp.c, music-players.h, device-flags.h: Merged updates from libmtp. + +2008-07-31 Marcus Meissner + + * library.c: Added Nikon Coolpix L16 , Nikon D700. + + * ptp-unpack.c: Fixed a property handling issue + with empty/non existant strings in the unpacker, + triggered by the D700. + + * README.ptp2: Added link to now official MTP 1.0 spec. + +2008-07-18 Marcus Meissner + + * library.c: Added the Canon EOS 1D Mark III (reported by jholt) + + * library.c: Disabled more 0x2372 panasonic mass storage ids. + +2008-07-03 Marcus Meissner + + * config.c: allow capture=off + +2008-06-13 Marcus Meissner + + * library.c: Change initial timeout magic + for Canon cameras to use 0.5 second timeouts. + + Lets hope all the Canons can do this. + +2008-06-05 Marcus Meissner + Linus Walleij + + * music-players.h, device-flags.h: Merged new music + players from libmtp. + +2008-04-11 Marcus Meissner + + * library.c, config.c: Added EOS 450D capture mode. + Changed setting of 0xd11c EOS property from 1 to 4. + +2008-03-31 Marcus Meissner + + * ptp.c, ptp.h, config.c: Try to fix EOS capture preparation, + by doing a real ptp_eos_getstorageids. + +2008-03-15 Marcus Meissner + + * library.c: Adjust for GPPortInfo change. + +2008-03-13 Linus Walleij + + * ptp.c/ptp.h: Added 2 new MTP object format codes. + +2008-03-02 Marcus Meissner + + * music-players.h: Synced from libmtp. + +2008-03-01 Marcus Meissner + + * ptp.c: MTP GetObjectReferences on Sansa MTP device + can skip the dataphase, but return OK as response. + + Handle this strange case here. + +2008-02-22 Marcus Meissner + + * library.c, ptp.h: + Always use Canon capture mode if available. + + Allow the Canon capture mode to store its stuff on the card + by using the 0xd029 property (CaptureTransferMode). + +2008-02-19 Marcus Meissner + + * config.c: Do not clear the "changed" flag when its not the + widget we want. + +2008-02-07 Marcus Meissner + + * library.c: Added Canon IXUS 860 IS as reported. + +2008-02-06 Marcus Meissner + + * config.c: Allow synchronising the system time to + the camera. Just do: + + gphoto2 --set-config synctime=on + + Confirmed to work for Canon IXUS. + +2008-01-03 Linus Walleij + + * ptp.c,ptp.h: Moved mtp property caching and + removing into this file. (not currently hooked up). + +2007-12-10 Marcus Meissner + + * library.c: Disabled LUMIX FZ-20 (alternate ID), + since customer reports it only doing mass storage. + +2007-12-10 Marcus Meissner + + * library.c, music-players.h, device-flags.h: + New devices from libmtp project. + New device-flags.h from libmtp project. + +2007-12-03 Marcus Meissner + + * library.c: Added Nikon DSC D300, Coolpix 7900. + +2007-11-16 Marcus Meissner + + * library.c: Made metadata reading more intelligent, + and fall back to lowlevel methods if necessary. + +2007-11-14 Marcus Meissner + + * usb.c, ptp-bugs.h, library.c: Handle Creative Zen 8GB broken + header devices. + +2007-11-12 Marcus Meissner + + * library.c: Added Canon A460, Nikon D40X. + +2007-11-06 Linus Walleij + + * ptp.c: Do not print to stderr on not yet supported + OPFF types. + +2007-10-31 Marcus Meissner + + * library.c: also check for audio/x-wma and audio/x-wmv + mimetypes. + +2007-10-27 Marcus Meissner + + * music-players.h, library.c, Makefile-files: + Split off music-players.h from libmtp to share + between us and libmtp. + +2007-10-26 Marcus Meissner + + * library.c, config.c: Set GPContext consistently + in the Params struct, otherwise we might resuse + already free contexts. + +2007-10-25 Marcus Meissner + + * library.c, ptp-bugs.h: The newer Nikons have the regular + capture events just fine, just the old ones suck a bit here. + Mark them broken for now. + +2007-09-18 Linus Walleij + + * usb.c, library.c, ptp.c, ptp.h: + Split out cancel handling to shared code. + +2007-09-13 Marcus Meissner + + * usb.c, library.c: Added cancellation support for read transfers. + +2007-09-11 Marcus Meissner + + * ptp-pack.c, ptp.h, ptp.c, library.c: + Change MTP proplist to a proparray. + Rename MTPPropList to MTPProperties to match the + Use qsort() instead of a O(n^2) insertion sort. + state. + +2007-08-28 Marcus Meissner + + * ptp-pack.c: Pack NULL strings same as "" (from libmtp). + +2007-08-22 Marcus Meissner + + * library.c: Added Nikon Coolpix S200 (from Marius Groeger) + * library.c: Added Nikon Coolpix L12, Cowon iAudio U3 + +2007-08-03 Marcus Meissner + + * ptp.h, ptp-pack.c: From libmtp: + Pack/unpack 64bit integers. + Fixed packing of arrays. + +2007-07-26 Marcus Meissner + + * library.c: Merged MTP devices from libmtp. + +2007-07-18 Marcus Meissner + + * ptp.c,ptp.h: Added PTP reset handling (from libmtp). + + * ptp-pack.c, config.c: Handle EOS CameraTime (just a UNIX timestamp again) + +2007-07-17 Marcus Meissner + + * library.c: Added Canon PowerShot S5 IS. + +2007-07-03 Marcus Meissner + + * ptp.c, ptp.h, config.c: Set EOS properties. + + * library.c: Added Kodak C613 id. + + * ptp.c,ptp.h: Added freeing of objectinfos. + +2007-06-29 Marcus Meissner + + * library.c: Only allow Nikon fast fs retrieval on the USB port. + +2007-06-22 Marcus Meissner + + * Added Sony DSC-W200 (new Sony id!) + +2007-06-17 Marcus Meissner + + * library.c: If we get errors on OpenSession try + to send RESET USB control message to the device + to reset it / clear buffered stuff. + +2007-06-15 Marcus Meissner + + * library.c: Nikon Coolpix series capture now determines + the captured filenames. + +2007-06-05 Marcus Meissner + + * ptp.c, ptp.h, ptp-pack.c, library.c, config.c: + Started EOS 400D+ style capture support. + + * ptp.h: Added lots of new Canon Powershot specific defines. + +2007-05-28 Paul Walmsley + + * usb.c: replace gp_port_usb_check_int_fast() calls with + timeout save/change/restore and gp_port_usb_check_int() + +2007-05-25 Paul Walmsley + + * library.c: fix bogus Canon EOS 5D USB product ID + +2007-05-23 Marcus Meissner + + * config.c: Allow configuration of Exposure Bias Compensation + + * usb.c: Handle response instead of data answer (happens on failure). + * ptp.c: Handle GetObjectHandles errors as non critical (Just as "0 handles"). + +2007-05-09 Marcus Meissner + + * ptp.h, usb.c: Send/Receive control messages to class. + * library.c: Added Kodak C653 + +2007-05-06 Marcus Meissner + + * library.c: Added Canon IXUS 75 aka PowerShot SD750. + * library.c: Added Fuji FinePix S9500. + * library.c: Added Motorola A1200 smart phone in MTP. + +2007-04-16 Marcus Meissner + + * ptp.h, library.c: Added some Canon EOS specific properties + and values. + + * library.c: Added PowerShot SD1000 aka IXUS 70. + * library.c: Added Kodak Easyshare C743 + +2007-04-11 Marcus Meissner + + * Added Archos 504 MTP player. + +2007-04-04 Marcus Meissner + + * library.c: Added Canon PowerShot A550 + * ptpip.c: Added major/minor version reporting. + +2007-03-27 Marcus Meissner + + * library.c: Check for overflows in --summary. + * library.c: Skip the 0xd201 property, it causes hangs. + +2007-03-24 Marcus Meissner + + * library.c: Added configuration of shooting mode. + +2007-03-23 Marcus Meissner + + * ptp.c,ptp.h: Added MTP command 0x9806 (from libmtp). + +2007-03-12 Marcus Meissner + + * library.c: Added Canon MV750i. + +2007-03-07 Marcus Meissner + + * library.c: Avoid emitting the d029 property if the camera does + not have it. + +2007-03-05 Marcus Meissner + + * library.c: Added Fuji FinePix F20. + * usb.c: Adjusted PTP error reporting not to spew on the + gp_context_error channel. + +2007-03-03 Marcus Meissner + + * library.c: Disable Canon fast directory retrieval, + since it reportedly fails with the Canon PowerShot A430. + +2007-02-27 Marcus Meissner + + * library.c: If we have a Canon USB device, but with + Microsoft vendor extid, switch the exitid back to Canon. + +2007-02-26 Marcus Meissner + + * ptpip.c: Some small bugfixes, removed memory leaks. + * library.c: Added Toshiba Gigabeat P20 (from libmtp). + * Use different read/write block sizes (to help some MTP devices). + +2007-02-14 Marcus Meissner + + * Added Minolta DIMAGE x21 (pictbridge mode) + * Added Nikon Coolpix S4. + * Added several MTP players from libmtp. + +2007-02-07 Marcus Meissner + + * config.c: Handle exptime using integers, + not floats. + +2007-02-02 Marcus Meissner + + * library.c: Rewritten UCS-2 handling to not + use strange hacks, but UCS-2LE directly. + (from Chuck Cranor) + +2007-01-29 Marcus Meissner + + * library.c: Added focuslock toggle option. + +2007-01-25 Marcus Meissner + + * ptp-pack.c: Use a fallback method if iconv is not correct. + +2007-01-20 Marcus Meissner + + * Added Canon PowerShot A420. + * Added Canon Digital IXUS 900Ti. + * Added Philips PSA235 and Samsung YH-925GS from libmtp. + * Added SanDisk Sansa c250. + * Added Nikon CoolPix S6. + +2007-01-18 Marcus Meissner + + * library.c, ptp.c, ptp-pack.c, ptp.h: + Free datastructures on closing the camera. + +2007-01-14 Marcus Meissner + + * usb.c: read in 64kb blobs again (512 bytes read are + ineffecient). + + * library.c: On delete and rmdir also remove the + information from the internal handles and objectinfos. + Otherwise remove, upload, remove, upload cycles + will not work ... and gphotofs needs them. + +2007-01-10 Marcus Meissner + + * library.c: Added NULL check in MTP objlist reader. + +2007-01-06 Marcus Meissner + + * library.c, ptp.c, ptp.h, ptp-private.h, usb.c: + + Rewrote the USB lowlevel communication layer. + Merged write_func, read_func, check_int and check_int_fast + into the ptp_usb_sendreq etc. + Split the latter into its own file, usb.c. + +2007-01-03 Marcus Meissner + + * library.c: Get endpoint maxpacketsize from the USB + port settings and use it in 0 write detection code. + + * library.c: More MTP mime types (from libmtp folks). + + * library.c: Rewrote the MIME type handling to + take vendorextensionid into account. (me) + + * library.c: Various new USB ids out of Ubuntu launchpad + bugreports. + Canon PowerShot SD40 + Kodak EasyShare C433 + Kodak EasyShare V705 + Casio EX-Z700 + +2007-01-02 Marcus Meissner + + * library.c: Report storage information + dynamically using the new API. + + * ptp.c,ptp.h: From libmtp folks: + Renamed some defines of MTP commands. + +2006-12-30 Marcus Meissner + + * library.c,ptp-bugs.h: Mark up MTP devices + known to support MTP GetObjectPropertyList + correctly. Do not call it for others. + + From libmtp developers: + 2006-12-30 Orson Teodoro + * ptp.c,ptp.h: Lots of new MTP defines and + debug output. + + 2006-12-29 Richard Low + * ptp-pack.c: Fixed bugs in ObjectInfo packing + magic. + + * library.c: Added Philips SA9200. + +2006-12-29 Marcus Meissner + + * library.c: Added Kodak C875, HP Photosmart R967. + * config.c: Report battery level (read-only) + +2006-12-28 Marcus Meissner + + * library.c, ptp.h, ptp.c, ptpip.c: + + Rewrote the whole data flow handling to allow streaming of + data from and to PTP devices without taking up memory. + + Introduced generic PTPDataHandler with get and putfunctions. + +2006-12-21 Marcus Meissner + + * Added Kodak V570 as reported. + * Added iRiver T20 and N12 as reported from libmtp. + +2006-12-19 Marcus Meissner + + * ptp.c: Fixed FD writing with short files (from libmtp). + +2006-12-17 Marcus Meissner + + * library.c: Fixed leaking CameraFile + data on Canon and Nikon + capture. + +2006-12-16 Marcus Meissner + + * library.c: Added HP Photosmart E427. + +2006-12-14 Marcus Meissner + + * ptp.h,ptp.c,config.c: Imported some knowledge from libptp2. + +2006-12-13 Marcus Meissner + + * ptp.c,ptp.h: Added "BuyNow" property define and debugoutput. + * ptp-pack.c: Handle offset of DPVs of INT64 and INT128 datatype + correct. + + * library.c: Fast directory tree and metadata retrieval for + MTP devices. + +2006-12-08 Marcus Meissner + + * ptp.c: Get back to split headers in getobjectpropertylist. + * ptp-pack.c: Fixed string packing. Include terminating \0. + +2006-12-04 Marcus Meissner + + * ptp.c: Fixed the response packet in-data-phase + handling to actually work. From libmtp folks. + +2006-12-02 Marcus Meissner + + * library.c: Added Canon PowerShot SD600, HP Photosmart C500. + +2006-12-01 Marcus Meissner + + * ptp.[ch]: MTP devices might send the response packet + during data-in phase. Handle such a case. + + Patch supplied by libmtp guys and adapted. + +2006-11-30 Marcus Meissner + + * library.c: Added Microsoft Zune (not fully working!) + * library.c: Added Sirius Stilletto. + +2006-11-27 Marcus Meissner + + * ptp.c,ptp.h,ptp-pack.c: + Bugfixes for GetObjProplist code. + +2006-11-19 Marcus Meissner + + * ptp.c,ptp.h,ptp-pack.c: + From Libmtp folks: + Implemented MTP GetObjProplist opcode. + + Handle the PTP violating READ (length 0xffffffff). + + * library.c: Added PowerShot G7. + +2006-11-15 Marcus Meissner + + * library.c: Added Kodak C643, Samsung YP-K5. + * library.c: added Creative Zen Vision W + +2006-11-12 Marcus Meissner + + * ptp.c, ptp.h, ptp-pack.c: Implementation of + MTP_SendObjectproplist from the libmtp folks. + + * library.c: added Creative Zen Vision M + +2006-11-07 Marcus Meissner + + * library.c: Do incremental event read only for + actual PTP events. + + * library.c: added Nikon CoolPix L1, Kodak C530. + * library.c: Added some HP Photosmarts, USB ids + extracted from the .INF files downloadable from hp.com. + +2006-11-04 Marcus Meissner + + * library.c: Added Canon Digital IXUS 850 IS + * library.c: removed pragma pack(1) ... umm. + +2006-10-31 Marcus Meissner + + * library.c: Added Canon PowerShot A640. + * library.c: Added Nikon D80. + +2006-10-23 Marcus Meissner + + * ptp.c,ptp.h: render more MTP opcodes. (from libmtp). + +2006-10-21 Marcus Meissner + + * ptp.c: Check sequence number sequence. A mismatched response + sequence number indicates a problem. + * library.c: On read errors, clear USB HALT of the IN EP. + * library.c: Added Toshiba Gigabeat S. + +2006-10-18 Marcus Meissner + + * library.c: added HP Photosmart M425 + +2006-10-16 Marcus Meissner + * library.c: Added Creative Zen Vplus, Dunlop MP3 Player 1GB, + EGOMAN MD223AFD (submitted by libmtp folks). + +2006-10-14 Marcus Meissner + + * library.c: removed unused variable j + The Canon fast retrieval seems to be a bit flawed + on the IXUS 55, so add some checking. + +2006-10-13 Marcus Meissner + + * ptp.c,ptp.h,ptp-pack.c,library.c: + + Implement CANON fast directory retrieval (just one + call for all objects). Should give speed-up if + lots of files are on the camera. + (Apparently needs Canon released in/after 2005). + + * library.c: Implemented "NEW" flag handling for newer + Canons, like with Canon driver. + + * library.c: Do not retrieve storage info unnecessary on + / folder listing. The information is not used at all. + + * ptp.h/ptp-pack.c: Fixed typo in StandardVersion. + + * library.c: Implemented "NEW" flag handling also for + older Canons using the older directory retrieval method. + +2006-10-12 Marcus Meissner + + * library.c: Corrected SD630 name (its PowerShot brand), + added Digital IXUS 65 alias for same. + +2006-10-11 Marcus Meissner + + * ptp.c,ptp.h: translate opcodes to strings (merged from libmtp). + + * ptp.c, ptp.h, library.c: Sync CANON opcode names with list + gleamed from camera access library. + + * ptp.[ch]: Get Canon wireless MAC address wrapper. + +2006-10-10 Marcus Meissner + + * library.c: Added Canon Digital IXUS Wireless (same as SD430) + Marked them as capture capable, but capture mode not supported + yet. + + * ptp.c/ptp.h: Added "Request Direct Transfer" opcode for newer Canons. + * ptp.c/ptp.h: Added "Get Direct Transfer Entries" opcode for newer Canons. + * ptp.c: Read event in multiple parts (necessary for Canons who only read 8 + byte per interrupt). + +2006-10-05 Marcus Meissner + + * config.c: Do not call Nikon commands on Canons. + * library.c,config.c,ptp-private.h: + Initialize Canon capture if we do "to RAM" capture + on canons. + +2006-09-30 Marcus Meissner + + * library.c: If PTP is busy, retry Nikon Capture + command. + +2006-09-29 Marcus Meissner + + * library.c: Added Kodak Z612 as reported. + +2006-09-25 Marcus Meissner + + * library.c: Added Canon PowerShot A710 IS as reported. + +2006-09-21 Marcus Meissner + + * library.c: Added Olympus IR-300 + * library.c: Do not allow "mkdir" of the same directory twice. + * library.c: Do not allow "put" of the same file twice. + +2006-09-18 Marcus Meissner + + * library.c: Added Kodak CD33. + +2006-09-16 Marcus Meissner + + * library.c: Added Creative Zen V. + * library.c: Added Canon PowerShot A630 + +2006-09-15 Hubert Figuiere + + * library.c: Added Canon EOS 400D/Digital Rebel XTi + This camera does not have the infamous PTP bug. + +2006-09-13 Marcus Meissner + + * ptp.[ch]: formatstore function (from libmtp). + * library.c: fixed iconv() usage for non glibc etc (from libmtp). + +2006-09-11 Marcus Meissner + + * library.c: Added iRIver T10 2GB model. + * library.c: Added Toshiba Gigabeat P10 model. + +2006-09-09 Marcus Meissner + + * library.c: Uses short timeout during startup, but + longer timeouts later on. + +2006-09-03 Marcus Meissner + + * library.c: Implemented MTP Abstract Playlist upload. + +2006-09-02 Marcus Meissner + + * library.c: CANON cmd 9006 is "lookup object". + (Could be used later to speed up directory listing.) + +2006-08-31 Marcus Meissner + + * library.c: Handle cameras which just have files, but no + directory or root object. Kodak EasyShare C330 for instance. + + * library.c: GP_CAPTURE_IMAGE -> GP_OPERATION_CAPTURE_IMAGE. + + * library.c,ptp-bugs.h: Mark up capture capable cameras for + the static capabilities. + + * library.c: added Samsung YP-F2J (from libmtp). + +2006-08-30 Marcus Meissner + + * library.c: Added iRiver Clix. + +2006-08-25 Linus Walleij + Marcus Meissner + + * ptp.c,library.c,ptp.h,ptp-pack.c: + + Use iconv(3) to convert the UCS-2 used in ptp + strings to the current codeset (detected by + nl_langinfo(3)). + +2006-08-27 Marcus Meissner + + * ptp.c,ptp.h,ptpip.c: Merged upload from fd patch + from libmtp folks (Linus Walleij). + +2006-08-20 Marcus Meissner + + * library.c: Do not download 0 sized objects. + + * ptp.{c,h}: Merged libmtp patch "download to fd" + to keep in sync with them. + +2006-08-10 Marcus Meissner + + * Added alternate iRiver H10 id, reported by Scott Call. + * Added SanDisk sansa m240, Samsung YP-U2J, Archos 104 + +2006-08-07 Hubert Figuiere + + * library.c: Added Canon SD430 + +2006-07-22 Hubert Figuiere + + * library.c: Added Kodak P850 + +2006-07-08 Marcus Meissner + + * config.c: Hue Adjustment is an Enumeration on Nikon P3. + +2006-07-08 Nicolas Boichat + + * config.c: Fixed bug in generic handler, when widgets + could be added twice. + +2006-07-07 Nicolas Boichat + + * library.c,ptp.c,ptp.h,ptpip.c: + Added configuration upload of WIFI profiles + for the Nikon P2. + + * ptpip.c: Generate a random GUID if not set yet + and store it in the gphoto settings. + + * PTPIP.TXT: Documented profile layout. + +2006-07-02 Marcus Meissner + + * library.c: Enhanced duplication logic to + work for the cases we encounter on MTP devices. + + * ptp-bugs.h, library.c: Mark up MTP devices + and classify them as Audio Devices. (For later + use by packaging scripts.) + + * library.c: Generic autodetection of MTP devices + by bypass hack with USB class. + +2006-06-26 Marcus Meissner + + * library.c: Added Kodak Z650. + + +2006-06-24 Marcus Meissner + + * library.c: Added AVPlaylist download (upload to come). + +2006-06-24 Marcus Meissner + + * library.c, config.c, ptp-private.h, Makefile.am: + + Split out configuration handling into new file config.c + +2006-06-16 Hubert Figuiere + + * library.c: 30D has DCIM ROOT bug + +2006-06-13 Marcus Meissner + + * ptp.{ch}: Updated MTP defines from libmtp. + +2006-06-01 Marcus Meissner + + * library.c: Added new USB ids for: + Canon PowerShot A540, A530, S3 IS, SD700, IXUS 800, IXUS 60, + iRiver T20 FM + Dell Pocket DJ + Nikon Coolpix L4, L3 + Kodak Easyshare Z740 + Sony DSC-U10 + Leica D-LUX 2 + JVC Alneo XA-HD500 + +2006-04-27 Marcus Meissner + + * ptp.c: The iRiver devices occasionaly send a byte more than + we requested which could lead to memory corruption due to + logic that did not expect that. + + * library.c: Replaced fprintf by gp_log in parse_metadata. + +2006-04-17 Marcus Meissner + + * ptp.c, library.c: Added several more Nikon DSLR config options. + * library.c: Prepare handling Burst mode on the Nikon DSLRs, + (I just need to know the Object ID sequence generated). + + * library.c: Added METADATA retrieval and setting for MTP devices. + +2006-04-12 Marcus Meissner + + * library.c: Added PowerShot A700 as reported. + +2006-04-04 Marcus Meissner + + * library.c: Added Nikon D200, as reported by Jana Jaeger. + +2006-04-02 Marcus Meissner + + * library.c: Added lots of Nikon configure options. + +2006-03-28 Marcus Meissner + + * library.c: Added EOS 30D as reported on SF. + + * library.c: Enhance about text a bit. Explain + that we are not a Licensed MTP Implementation, + but are fully able and willing to serve MTP + devices. + +2006-03-26 Marcus Meissner + + * library.c: Handle mp3 mime type correctly. + New devices (copied from libmtp). + Better "bad folder" errormessage. + +2006-03-21 Marcus Meissner + + * library.c: Added wait_for_event hook to return + ptp events. + +2006-03-18 Marcus Meissner + + * library.c: Added Canon Optura 600. + +2006-03-16 Marcus Meissner + + * Makefile.am, library.c: Enable PTP/IP per default + to shake out compile problems on !Linux before + release. + +2006-03-10 Hubert Figuiere + + * library.c: HP 850 has PTPBUG_DUPE_FILE + (file_list_func): handle DUPE_FILE bug + + * ptp-bugs.h (PTPBUG_DUPE_FILE): added this PTP bug + +2006-03-09 Hubert Figuiere + + * library.c: Added Kodak C360 (from Debian) + +2006-02-17 Marcus Meissner + + * ptpip.c,ptp.h,library.c: + + PTP/IP protocol implementation. + + Currently not enabled, just included for + reference and the not so faint at heart. + + Missing: + - Still using hardcoded IP address and GUID. + - autoconf the UNIX socket function stuff. + - PTPIP event handling + +2006-02-17 Marcus Meissner + + * ptp.c: Return the actual PTP protocol return + code from the ptp_transaction(). + + This makes us see the actual errors the camera + reports. + +2006-02-06 Marcus Meissner + * library.c: Added EOS 5D + +2006-02-05 Marcus Meissner + + * library.c: Use event_check and event_wait + functions from params struct. Initialise those + entries. + +2006-01-31 Marcus Meissner + + * library.c: Enabled Canon SDRAM capture, + using the same methods as the Nikon capture. + +2006-01-31 Marcus Meissner + + * library.c: Added Toshiba Gigabeat MTP player. + +2006-01-30 Marcus Meissner + + * library.c: Added Nikon SDRAM capture. + Downloads images directly after capture. + + Added configuration for Capture Target + (Card or SDRAM). + +2006-01-24 Marcus Meissner + + * ptp-bugs.h, library.c: Added bug handling where some canon + cameras send ObjectDeleted events on DeleteObject. + + Since EOS firmware doesnt do that, use a bugflag + instead of vendor check. + +2006-01-21 Marcus Meissner + + * library.c: Added HP Photosmart E317 + Added Canon PowerShot S80. + * library.c: Relaxed Association checks for directories. + The E317 sees AssocType 0x0 (undefined) for DCIM/ et.al. + + Avoid buffer overflows on too long filenames. + + Enabled Creative Zen Micro (was failing on the 512 byte + problem before, should be fixed now). + +2006-01-17 Marcus Meissner + + * ptp-parse.pl: parse binary SnoopyPro / usbsnoop logs too. + + * PTPIP.TXT: enhanced. PTP/IP uses actually 2 tcp/ip connections. + +2006-01-16 Marcus Meissner + + * library.c: Added progress bar support for + downloads and uploads. Contributed by + Dave O . + + * ptp.c, ptp.h, library.c: Print MTP object properties + in --summary + +2006-01-14 Marcus Meissner + + * library.c, ptp.c, ptp.h: more --summary output. + List OFC codes now. + + * library.c: + Cleaned up config function parameter lists. + Need to property desc on "put" too (for Focal Length + currently). + Replaced 19 tablelookup based functions doing + the same by 2. + + Implemented configuration for: + - FocalLength + - FocusMode + +2006-01-12 Marcus Meissner + + * library.c, ptp-pack.c: + Unpack all members of the StorageInfo structure. + Add Storage summary to --summary output. + +2006-01-11 Marcus Meissner + + * library.c: Also split ptp writes into 4k chunks + to avoid lowlevel timeouts. + +2006-01-09 Marcus Meissner + + * library.c: added iRiver U10. + +2006-01-08 Marcus Meissner + + * ptp.c, ptp-pack.c, ptp.h: Enhanced ptp_nikon_check_event(), + unpack event list. + +2006-01-06 Marcus Meissner + + * PTPIP.TXT: describes PTP/IP communication basics. + + +2006-01-05 Marcus Meissner + + * library.c: Removed one unnecessary line of code. + Use event_check instead of event_wait for now in + canon specific delete code. + Added Fuji Finepix E900/PictBridge id. + + * library.c: Added Philipps HDD6320 MTP player. + +2006-01-01 Marcus Meissner + + * library.c: Add EOS 350 canon id too, since + it apparently reacts to PTP traffic on it too. + + * ptp.c, ptp.h: Adjusted several canon properties to + better names. Added some previously not known ones. + "ramsize" is actually "firmwareversion" and so on. + +2005-12-30 Marcus Meissner + + * library.c: Only allow getpartialobject for EXIF + JPEG images. + +2005-12-29 Marcus Meissner + + * ptp.c, ptp.h, library.c: + Added "fast filesystem" startup mode for newer + Nikon cameras. + + For cards with large number of images this patch + reduces the time from > 10 seconds down to 1.5 seconds. + + It however only allows recreation of a limited view + of the /DCIM tree. + + To switch between old (more correct) and new (faster) + model, use the "Camera Settings" -> "Fast Filesystem" + config. + + * library.c: Kodak C330 has no 0x0 parentobject entry in + non-card mode, so mark it as "autodetect parent". + + * Cleaned up some names of Nikon defines values. + + * ptp-pack.c, ptp.c, ptp.h: Added Eastman Kodak + setserial, getserial and settext commands. + You can display "Hello World!" on the TFT ... ;) + +2005-12-28 Marcus Meissner + + * Fixed signedness warnings by using "unsigned char*" + more often. + + Added ptp_getnumobjects() function. + +2005-12-19 Marcus Meissner + + * Added Canon IXUS 750. + * Added HP PhotoSmart M23. + +2005-12-18 Hubert Figuiere + + * Added Kodak V530. + +2005-12-18 Marcus Meissner + + * library.c, ptp.c, ptp.h: + + Synchronized Nikon defines with libptp2. + + Added Nikon (special) capture, checkevent, check readyness + +2005-12-08 Marcus Meissner + + * Added Nikon Coolpix P2. + * Added Ricoh R3 (print mode). + * Added Kodak Easyshare C31, reported by Giulio Salani. + * Added Canon PowerShot A620, reported by Tom Roelz. + * Added iRiver T20, reported by Martin Senst. + * Added HP Photosmart M415, mentioned in a bugreport. + * Added Canon PowerShot A610, reported by Andriy Kulchyts. + * Added Olympus d-540z, c-310z, x-100, reported by Bruno Parente. + * Added Panasonic DMC-LZ2, reported by Jens Stutte. + * Added iRiver T30, reported by Bruno Parente Lima. + * Added Nikon D50. + * Added iRiver T10 with alternate ID, reported by Jay MacDonald. + +2005-10-28 Marcus Meissner + + * Added Canon Digital IXUS 55, PowerShot SD450. + * Added Canon PowerShot A410 + * Added Nikon Coolpix 4800. + + * library.c: Do partial read only if there is enough to read. + (from Jon Burgess) + +2005-10-24 Marcus Meissner + + * Added Kodak C300 as reported. + * Added Kodak V550 as reported. + +2005-10-13 Marcus Meissner + + * Added iRiver T10. + This is an MTP device, but the user reported being able to + browse the filesystem and to download stuff. + +2005-09-24 Marcus Meissner + + * README: Added Copyrights Marcus & Hubert + Added documentation URLs. + +2005-08-11 Hubert Figuiere + + * library.c: Added Coolpix 5600. + +2005-08-07 Marcus Meissner + + * library.c: Added Kodak C340 (mail by Maurizio Daniele ) + +2005-07-31 Marcus Meissner + + * library.c: Added Coolpix 5900 + https://sourceforge.net/tracker/?func=detail&atid=358874&aid=1248287&group_id=8874 + +2005-07-19 Marcus Meissner + + From Vince Vegard : + * library.c, ptp.c, ptp.h: + + Implemented Nikon Curve download. + + * library.c: Added Nikon Coolpix 5200. + + * library.c: PTP is class 6, subclass 1, protocol 1. + + +2005-07-19 Marcus Meissner + + * library.c: Use params everywhere. + + Enhance errorhandling to report errors only for + the correct vendor. + + Completed Canon theme download, but disabled. + +2005-07-14 Marcus Meissner + + * library.c: Added GX 8 in ptp mode. + +2005-07-08 Marcus Meissner + + * library.c: Borrowed a Nikon D70 for a day + (thanks AJ!) and implemented: + + F-Number, Focal Length, Exposure Metering Mode, + Focus Metering Mode, Flash Mode, Exposure Time, + Exposure Program Mode, Exposure Index (ISO), + Still Capture Mode, AF Illumination (dont know what + this is), AF Beep Mode. + +2005-07-07 Marcus Meissner + + * library.c: Moved one Olympus product id to sierra + driver where it belongs. + +2005-05-25 Marcus Meissner + + * library.c: Hub reverted the Kodak LS473 -> 743 change, + corrected again. + + * library.c: Eos Mark II D has root bug too. + +2005-05-14 Marcus Meissner + + * library.c: Added a /special folder for camera specific + non ptp filesystem data. + + (Canon: theme data, Nikon: Whitebalance Curve, etc.) + + Implemented Canon theme download (but still as a blob + file). + +2005-05-08 Marcus Meissner + + * library.c: Get removeobject events for canons on delete. + +2005-05-05 Marcus Meissner + + * library.c: Added PowerShot SD500 aka IXUS 700 + +2005-04-26 Marcus Meissner + + * library.c: Added Canon PowerShot A520. + +2005-04-11 Marcus Meissner + + * library.c: Added Nikon D2Hs SLR. + +2005-04-10 Marcus Meissner + + * ptp.[ch]: 9010 and 9011 is Canon Theme + Download and Upload. + +2005-04-05 Hubert Figuiere + + * library.c: Added Pentax Optio 43WR (as reported) + +2005-03-20 Marcus Meissner + + * library.c: Merged in most of the code from: + ptpcanon 0.0.2 + http://jalkapallo.org/superkolik/canon.html + Capture 1.0.3 + http://sf.net/projects/capture/ + into generic PTP property handling. + + Added camera prepare und unprepare capture handling. + Using a gphoto widget based toggle currently. + + Disabled by using EXPERIMENTAL_CANON_CAPTURE, since + it does not save the capture image to the FlashCard yet. + +2005-03-17 Marcus Meissner + + * Added Kodak CX7525 ( as reported). + +2005-03-07 Marcus Meissner + + * Added Nikon D2H SLR (as reported). + * Added PowerShot A510 (as reported). + +2005-03-02 Marcus Meissner + + * Added PowerShot S70 (as reported). + +2005-02-22 Marcus Meissner + + * Added Digital IXUS 30 (as reported). + +2005-02-09 Hubert Figuiere + + * library.c: added Sony DSC-W1 and DSC-W12. + added Fuji FinePix A330. + added Sony DSC-P73. + +2005-01-25 Marcus Meissner + + * ptp.c, ptp.h, library.c: + Vegard Engen + Clean up of last Nikon PTP patch. + +2005-01-24 Marcus Meissner + + * ptp.c, ptp.h, library.c: + Implemented EXIF reading by using GetPartialObject. + +2005-01-24 Marcus Meissner + + * library.c, ptp.c, ptp.h: + Merged Nikon property dumping patch from + Steve Harris + +2005-01-23 Marcus Meissner + + * ptp.c, ptp.h: Added ptp_event_issupported helper + function. + + * library.c: Canon IXUS 2 (and some other IXUSs) + send ObjectRemoved events on deleteobject. We need + to read them or we hang the communication. + +2005-01-21 Marcus Meissner + + * library.c: + + Vegard Engen + For Nikon PTP cameras: + Added Long Exposure settings. + Added Compression mode setting. + +2005-01-21 Hubert Figuiere + + * ptp-bugs.h: Added file. + + * library.c (camera_init): Lookup for PTP bug + (init_ptp_fs): Bug specific workaround (EOS 20D + 300D) + Added flags for bugs in camera-list. + +2005-01-20 Hubert Figuiere + + * library.c: Added Sony DSC-P120 + +2005-01-17 Marcus Meissner + + From Dean Brettle + * library.c: Use capture date if no modify date is + there. + +2005-01-17 Marcus Meissner + + From Vegard Engen + * library.c, ptp.h: + + Implemented PTP Property handling for: + - generic WhiteBalance + - generic ImageSize + - Nikon Image Comment + +2005-01-17 Marcus Meissner + + * library.c: Added PowerShot SD200. + +2005-01-16 Marcus Meissner + + * library.c: Pass Camera* to property put and get + functions too, so we can make vendor based adjustements. + +2005-01-15 Marcus Meissner + + * library.c: Return the correct path and filename + on --capture-image. + +2005-01-13 Marcus Meissner + + * library.c: Added Minolta DIMage Z2 (PictBridge). + +2005-01-11 Marcus Meissner + + * library.c: Added Sony DSC-T3 as reported. + +2005-01-08 Marcus Meissner + + * library.c: Send owner name with \0, or we get + it back corrupted. + +2005-01-02 Marcus Meissner + + * library.c: Added Canon FlashMode property. + +2004-12-22 Marcus Meissner + + * library.c: Added Nikon CoolPix 4100 as reported. + +2004-12-21 Hubert Figuiere + + * library.c: Added Kodak DX7590 (bug #1089154) + +2004-12-21 Marcus Meissner + + * library.c: Added Sony DSC-P51 (bug #1088798) + +2004-12-20 Hubert Figuiere + + * library.c: Added Sony DSC-F717. (bug #1087148) + +2004-12-16 Marcus Meissner + + * library.c: Added HP Photosmart R707 and M307. + +2004-11-29 Marcus Meissner + + * library.c: D70 PTP mode has 0x406 id. + * library.c: Kodak LS473 should be 743 (typo fixed) + the CX4210 should have product id 0x560 instead of 0x565 + +2004-11-29 Marcus Meissner + + Edward Kuns + * library.c: Added hack to detect / if no + object has parentid 0. fixes Canon EOS 20d. + +2004-11-15 Marcus Meissner + + * library.c: Added Panasonic DMC-FZ20. + +2004-11-09 Marcus Meissner + + * library.c: Added IXUS 40. + +2004-10-28 Hubert Figuiere + + * ptp.h: Fix build for gcc 2.95 + (bug #1055868) + +2004-10-20 Hubert Figuiere + + * library.c: Added Konica-Minolta DiMAGE Z3 + +2004-10-17 Marcus Meissner + + * library.c: Added Canon PowerShot G6. + +2004-09-28 Marcus Meissner + + * library.c: Added Canon PowerShot A400. + +2004-09-21 Marcus Meissner + + * library.c: Added Canon EOS 20D. + +2004-09-11 Marcus Meissner + + * library.c: Use widget name to mark up config entries. + + Added more config cases from Canon in capture mode. + - zoom (working) + - auto focus assist light + - beep mode + - exposure compensation (not fully done) + +2004-09-05 Marcus Meissner + + * ptp-pack.c: Pack integer arrays. + * library.c: Enabled setting of configuration. + - Made work and tested: + * Canon Camera Owner. + * Canon Time on camera. + + * ptp.[ch]: Make ptp_free_propertyvalue nonstatic. + +2004-09-04 Hubert Figuiere + + * library.c: Added Nikon Coolpix 2200 + +2004-08-25 Marcus Meissner + + * ptp-pack.c, ptp.c, ptp.h: + - Added length parameters to the read functionality + to avoid buffer overflows. + - Added PTPPropertyValues as generic property values. + - Rewrote all property handling functions. + - Added property array support. + - Move property names from ptpcam to libptp. + + * library.c: + - Print all available property values with names in --summary + - Started generic configuration handling. + +2004-08-15 Marcus Meissner + + * library.c: Added Canon PowerShot A85. + * library.c: Added Kodak LS753 DX7630 CX7300 CX7220 + CX7330 CX7530 DX7440 CX6445 as reported on SourceForge + http://sourceforge.net/tracker/index.php?func=detail&aid=982934&group_id=8874&atid=358874 + * library.c: Added Nikon Coolpix 4200 (thanks Lars!) + +2004-08-15 Hubert Figuiere + + * library.c: Added EOS 1D Mark II + +2004-08-12 Hubert Figuiere + + * library.c: Added Canon Powershot S60 as it works. + +2004-08-04 Marcus Meissner + + * Added Canon PowerShot A310 ids as reported. + * Added Ricoh Caplio GX ids as reported. + * Added Nikon D70 ids as reported. + * Added Sony MVC-CD500. + +2004-07-16 Mariusz Woloszyn + + * ptp.h: Added NIKON extension code by Corey Manders + +2004-06-23 Hubert Figuiere + + * library.c: Added Kodak LS-473 + Close RFE #977619 + +2004-06-13 Marcus Meissner + + * library.c: Added Canon PowerShot S1 IS. + +2004-05-29 Mariusz Woloszyn + + * library.c: Fixed a small problem that caused objects of undefined + type not beeing downloadable. Now they are downloadable if the Thumb + type is known. + +2004-05-24 Marcus Meissner + + * library.c: Added Canon PowerShot SD110. + +2004-05-17 Hubert Figuiere + + * library.c: Added Canon A75 (PTP mode) + +2004-05-12 Hubert Figuiere + + * library.c: Added Fuji FinePix S7000 (PictBridge mode) + +2004-05-11 Hubert Figuiere + + * library.c: Added Kodak CX4310 + +2004-04-26 Marcus Meissner + + * library.c: Added Canon Digital IXUS 430 / + PowerShot S410 as reported. + +2004-04-18 Marcus Meissner + + * library.c: Nikon Coolpix 3200 as reported. + +2004-04-13 Hubert Figuiere + + * library.c: Added Kodak CX7430. Close patch #934142. + +2004-04-07 Hubert Figuiere + + * library.c: Added HP PhotoSmart 945 (T. Jelbert) + Close bug #930400 + +2004-04-02 Hubert Figuiere + + * library.c: Added PowerShot S500 (Digital IXUS 500 alias) + +2004-04-01 Hubert Figuiere + + * library.c: Added HP PhotoSmart 635 + +2004-03-28 Marcus Meissner + + * library.c: Added Canon Elura 50 as reported. + +2004-03-20 Hubert Figuiere + + * library.c: Added Digital IXUS 500 + +2004-03-19 Mariusz Woloszyn + * library.c: added Konica-Minolta DiMAGE A2 +2004-03-01 Mariusz Woloszyn + * library.c: better capture code +2004-02-13 Mariusz Woloszyn + * TODO: updated TODO +2004-02-06 Mariusz Woloszyn + * library.c: added more descriptive error message +2004-02-01 Marcus Meissner + + * Sony P-10 as reported by Fred Point. + +2004-01-20 Mariusz Woloszyn + * library.c: added more descriptive error message to capture code +2004-01-20 Marcus Meissner + + * ptp.c: As reported by Eric Valette added Canon PowerShot S50. + * ptp.c: New sony name, one generic Sony PTP name. + +2004-01-18 Marcus Meissner + + * ptp.c: As reported by Thorsten Ehlers - t_ehlers@users.sf.net, + added Nikon Coolpix 3700. + +2004-01-10 Marcus Meissner + + * ptp.c: As reported by VICTOR , + added Olympus cameras: C-350Z, D-560Z, and X-250 (all the same id). + +2004-01-05 Mariusz Woloszyn + * ptp.c: sync with libptp2 code. + +2004-01-04 Marcus Meissner + + * ptp.c: Added Canon Digital IXUS i as reported. + +2004-01-02 Marcus Meissner + + (merged from libptp2) + * ptp.c, ptp-h.c, ptp-pack.c: added Canon specific PTP extension + code written by Nikolai Kopanygin. + +2003-12-27 Hubert Figuiere + + * library.c: Added Sony DSC-U20 + +2003-11-26 Mariusz Woloszyn + * library.c: make the capture code less sensibe for protocol + incompatibility. +2003-10-20 Hubert Figuiere + + * library.c: Added Sony DSC-P52, DSC-P72, DSC-P92 +2003-10-14 Marcus Meissner + + * library.c: Fixed progress max value to be 100, or we get Inf/Nan + or division by 0... + +2003-10-10 Olivier Crete + * library.c: Add Canon A80 + +2003-10-01 Mariusz Woloszyn + * library.c: removed Canon Digital Rebel, as the report was with the + wrong Product ID + +2003-09-30 Marcus Meissner + + * library.c: Added Canon Digital Rebel as reported by Yves Boisjoly + + * library.c: Check if we support DeleteObject before calling it. Some + cameras do not have it. + +2003-09-24 Marcus Meissner + + * library.c: Use strtoul instead of strtol, or we cant handle + stores with id 0x80000001. + Replaced one check for GetStorageIds by GetStorageInfo. + +2003-09-20 Hans Ulrich Niedermann + + * library.c: Added support for + EOS 300D/Digital Rebel/KISS Digital, thanks to Johan Herland + and T.V. + +2003-09-20 Marcus Meissner + + * library.c: Fixed compile. (defined names with - are invalid). + +2003-09-19 Mariusz Woloszyn + * library.c: fixed capture imout and increased to 20 seconds; fixed + internal structures update when uploding files and creating + folders; + * TODO: updated + +2003-09-17 Marcus Meissner + + * library.c: Increase timeout for capture. A G5 needs longer than 8 seconds... + +2003-09-12 Mariusz Woloszyn + + * library.c: fixed a minor bug that caused error while deleting + folders not in storage subfolder (removed trailing '/' in folder + names); fixed making folders on devices not supporting kodak PTP + extension; some debug improvement; + +2003-09-12 Mariusz Woloszyn + + * library.c, ptp-pack.c, ptp.c ptp.h: be proper as hell, changed all + '//' comments to '/* blah */' ;) +2003-09-12 Mariusz Woloszyn + * ptp.h: added some defines (sync with libptpt2-1.0pre6) + * library.c: use kodak extension operation ONLY VendorExtensionID + field indicates that the device uses kodak PTP extension + * ptpcam.c: removed; download libptp2 sources if you need it + * Makefile.am: ptpcam.c removed + * README: updated for ptpcam.c removal + +2003-09-11 Marcus Meissner + + * library.c: Note down filename in info struct. + Update battery level status display (not quite finished). + Add Canon Digital IXUS 2. + +2003-09-11 Hubert Figuiere + + * library.c: Added, Sony DSC-V1 + +2003-09-10 Hubert Figuiere + + * library.c: Added Sony DSC-P31 + +2003-08-05 Mariusz Woloszyn + + * library.c: ups... PTP_OFC_EXIF_JPEG thumbnails may not contain + EXIF information... revertig to previous behavior :( + +2003-08-05 Mariusz Woloszyn + + * library.c: return thumbnauil when asked for GP_FILE_TYPE_EXIF if + object is PTP_OFC_EXIF_JPEG, otherwise return + GP_ERROR_NOT_SUPPORTED + +2003-08-03 Mariusz Woloszyn + + * library.c: PTP do not offer plain EXIF data; return + GP_ERROR_NOT_SUPPORTED while downloading GP_FILE_TYPE_EXIF. + +2003-08-29 Mariusz Woloszyn + + * library.c: allow downloading thumbnail of nonimage objects, + however only in case that the ThumbCompressedSize is greater than 0 + +2003-08-28 Mariusz Woloszyn + + * library.c: added Canon IXUS 400, thanks to Till Kamppeter + +2003-08-28 Mariusz Woloszyn + + * library.c: added Nikon Coolpix 3500, 5000, 3100 & 2100, thanks to + Antti Tuominen +2003-08-22 Mariusz Woloszyn + * library.c: added Nikon CoolPix 4500 and HP PhotoSmart 935, thanks + to T. Kaproncai + +2003-07-28 Mariusz Woloszyn + + * library.c: removed Kodak DC290, DX4230, DX4300, changed productID + of Kodak CX4210 and added Nikon Coolpix 5400. Thanks to T. + Kaproncai + +2003-07-17 Mariusz Woloszyn + + * library.c: added following cameras: Kodak DC290, Kodak DX4530, + Kodak DX6440, Kodak DX6490, Kodak LS663, Kodak CX4230, + Kodak CX6200, Kodak CX6230, Kodak CX6330, HP PhotoSmart 120, + HP PhotoSmart 620, HP PhotoSmart 735, HP PhotoSmart 812 + +2003-07-09 Mariusz Woloszyn + + * library.c: added Nikon Coolpix SQ: M. Holzbauer + +2003-06-12 Mariusz Woloszyn + + * library.c: added DX6340 explicite support + +2003-05-14 Mariusz Woloszyn + + * ptpcam.c: changed test_ptp.c to ptpcam.c; + * Makefile.am: changed test_ptp.c to ptpcam.c; + * TODO: added the idea of error reporting improvement + * README: reorganized a bit + +2003-05-13 Mariusz Woloszyn + + * ptp-pack.c: ptp_pack_DPV() fixup; + * ptp.c: reorganized reporting errors, added ptp_perror(); + * ptp.h: added ptp_perror() prototype; + * test_ptp.c: reorganized reporting errors; added property setting + support! + +2003-05-12 Mariusz Woloszyn + + * ptp.c: fflush(stderr) on error and debug; + added datatype argument for ptp_getdevicepropvalue(); + added ptp_setdevicepropvalue();A + * ptp-pack.c: added ptp_unpack_DPV() and ptp_pack_DPV(); + fixed missing strings while unpacking enumerated DPD; + * ptp.h: fixed ptp_getdevicepropvalue() prototype and added + ptp_setdevicepropvalue() prototype; + * .cvsignore: changed ptp_test to ptpcam + * Makefile.am: changed ptp_test to ptpcam + * test_ptp.c: reorganized debug/error output, added more verbose + levels; fixed extension properties debug (only EK supported as for + now); added property supported values output; + +2003-05-09 Mariusz Woloszyn + + * test_ptp.c: added the device reset option (uses class specific + reset) + +2003-05-09 Mariusz Woloszyn + + * ptp.h: added some Kodak extension device property codes + definitions + * test_ptp.c: added properties listing support and --force option + +2003-05-01 Hubert Figuiere + + * library.c: add explicitly DSC-P32 (was autodetected) + add Coolpix 2000 + +2003-04-25 Mariusz Woloszyn + * Makefile.am: added ptp_test as noinst_PROGRAMS + * README: changed references to test_ptp to ptp_test + * test_ptp.c: added some functions prototypes (to avoid warnings), + reconstructed usage() plus some cosmetic changes + +2003-04-25 Mariusz Woloszyn + * library.c: romved dups in cameras declaration, cosmetic --about + changes + +2003-04-25 Mariusz Woloszyn + * README: added to ptp2 + * test_ptp.c: added to ptp2 + * TODO: added to ptp2 + +2003-04-25 Mariusz Woloszyn + * library.c: added perror on gp_port_read() and write error; it + won't hurt + * ptp.c: NULL does not have to be 0 bug fixed; + cosmetics error output tuning; + unpack structures only if transaction succeeded + * ChangeLog: reformated this file ;) + +2003-04-12 Marcus Meissner + + * ptp.c, library.c: Check return codes for property get during + --config. + +2003-04-10 Mariusz Woloszyn + * library.c: added Canon A70 +2003-04-03 Mariusz Woloszyn + * ptp.c: added ptp_free_devicepropdesc() + * ptp.h: added ptp_free_devicepropdesc() + * library.c: ptp_free_devicepropdesc() used to free allocated + structures +2003-04-03 Mariusz Woloszyn + * library.c: enabled getting config support; + curently only getting batery level is supported; + * ptp-pack.c: "finished" Device Property Describing Dataset + unpacking function ptp_unpack_DPD(); + * ptp.h: changed PTP_DC_* to PTP_DTC_* (DTC stands for DataType Code); + changed PTPDevicePropDesc fields name; + * ptp.c: added ptp_getdevicepropvalue() (not working properly yet); +2003-04-01 Mariusz Woloszyn + * library.c: added Kodak CX4200 explicite support; + added some get config code (it's not enabled, nor finished yet); + added some extra debug info about events and properties supported + * ptp-pack.c: intoduced ptp_unpack_DPD (not finished yet) + * ptp.c: added ptp_getdevicepropdesc() + * ptp.h: introduced some device property describing structures and + constants + +2003-03-29 Mariusz Woloszyn + * library.c: enabled downloading of nonimage files + * ptp.c: fixed a bug in capture code + +2003-03-29 Mariusz Woloszyn + * library.c: enabled back capture image support + +2003-03-29 Mariusz Woloszyn + * ptp.h: added Nparam field to PTPContainer + * ptp.c: using Nparam field we send requests with only used params + to the camera (although specs says it's legal, some cameras do not + like it) + +2003-03-29 Mariusz Woloszyn + * ptp.c: fixed a memcopy size bug +2003-03-27 Mariusz Woloszyn + * library.c: added HP PhotoSmart 320 + +2003-01-08 Mariusz Woloszyn + * ptp.c: cosmetic + * ptp-pack.c: fixed a bug in ptp_unpack_DI(), totallen could be + bigger than uint8_t + * library.c: added camera summary + +2003-01-08 Mariusz Woloszyn + * ptp-pack.c: + * ptp.c: fixed buggy ptp_usb_senddata() + +2003-01-06 Mariusz Woloszyn + * updated some comments, added some extra debug and introduced + support for senobjectinfo and sendobject. + * Makefile.am: changed driver name to ptp2 + +2003-01-03 Mariusz Woloszyn + * Commited version 2 of libptp2 and ptp driver. + This code is unfinished yet, but it's meant to be transport layer + independent. It fixes a lot of other bugs also. + +2002-10-16 Stephen H. Westin + * library.c: Nikon D100 has a PTP mode + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-08-20 Mariusz Woloszyn + + * README: added some descriptions and hints for users + +2002-08-02 Mariusz Woloszyn + + * ptp-pack.c: Fixed an awfull bug (one byte overflow). + Thanks to go to Hubert Figuiere for pointing me at Valgrind, the + tool that helped me to find this bug. + * ptp-pack.c: initialized uninitialized timezone structure + +2002-06-10 Mariusz Woloszyn + * added basic capture functionality with events support + +2002-03-18 Mariusz Woloszyn + * library.c: added multiple storage support + * ptp.c: fixed missed parameter for getstorageinfo + +2002-03-14 Mariusz Woloszyn + * library.c: undefined file is a file + +2002-03-06 Marcus Meissner + * library.c: translate the error messages + +2002-03-05 Mariusz Woloszyn + * ptp.c: updated ptp_getobjecthandles() to be protocol compliant + * ptp.c: rewrited ptp_transaction and ptp_sendreq code to send no + more bytes than expected by device (fix for HP cameras) + +2002-03-04 Mariusz Woloszyn + * library.c: some vendor/product IDs added + * library.c: changed initial transaction_id + * ptp.c: added ptp_getstorageids, fixed ptp_getobjecthandles + * ptp-pack.c: added ptp_unpack_OH, ptp_unpack_SIDs, + ptp_unpack_uint32_t_array + * ptp.h: added typedef of PTPStorageIDs, ptp_getstorageids function + prototype + (all changes according to TODO, multi storage support) + +2002-01-16 Lutz Müller + + * library.c: No time for previews... + +2002-01-16 Mariusz Woloszyn + * ptp-pack.c: added fake date packing + * ptp.c: Fixed ptp_ek_sendfileobjectinfo to use packed structures + * library.: started implementation of upload file (for Kodak only!) + +2002-01-13 Lutz Müller + + * library.c: Remove references to gp_camera_set_error. + +2002-01-11 Marcus Meissner + + * Makefile.am: Moved ptp-pack.c from SOURCES to EXTRA_DIST, since + it cannot be compiled stand alone. + +2002-01-10 Dan Fandrich + + * Makefile.am: Added ptp-pack.c + +2002-01-09 Dan Fandrich + + * library.c: + * ptp.c: + * ptp.h: Moved include of time.h to ptp.h to get time_t definition + Moved typedef lines after their dependent definitions. + Fixed spelling of PTPDeviceInfo. + +2002-01-09 Mariusz Woloszyn + * Started ptp fs implementation + +2002-01-08 Mariusz Woloszyn + * Added pack / unpack C structures to ptpdatasets code + * fixed host byteorder / data layer byteorder problem + +2002-01-04 Mariusz Woloszyn + * Added workaround for ioctl return 0 problem (this does not hurt) + * Added DX-3215 support + * removed hto*le() stuff + * updated TODO (describes how to solve byteorder problem) + +2001-12-14 Mariusz Woloszyn + * huge parts of code rewriten, added SENDDATA transaction feature, + added make directory ability (curently BROKEN!!!) + +2001-12-14 Mariusz Woloszyn + * file deleting implemented + +2001-12-13 Mariusz Woloszyn + * whole parts of code has been rewriten + +2001-12-13 Mariusz Woloszyn + * added implementation of Object Format, fixing get_info_func + +2001-12-11 Lutz Müller + + * library.c: Add some debugging stuff. + +2001-12-02 Mariusz Woloszyn + + * library.c: Updatet vendor & product numbers for Kodak DX-3900. + +2001-12-02 Lutz Müller + + * library.c: Fix warning + +2001-12-02 Lutz Müller + + * library.c: Fixed vendor/product if of HP PhotoSmart 318. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/Makefile-files new file mode 100644 index 00000000..b855d13b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/Makefile-files @@ -0,0 +1,20 @@ +# -*- Makefile -*- + +EXTRA_DIST += ptp2/ptp-pack.c ptp2/PTPIP.TXT ptp2/README.ptp2 \ + ptp2/TODO ptp2/ChangeLog ptp2/ptpip.html ptp2/TESTPLAN.ptp2 +camlibdoc_DATA += ptp2/README.ptp2 + +EXTRA_LTLIBRARIES += ptp2.la + +ptp2_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS) $(LIBXML2_CFLAGS) +ptp2_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS) $(LIBXML2_CFLAGS) -Wshadow +ptp2_la_SOURCES = \ + ptp2/ptp.c ptp2/ptp.h ptp2/chdk_ptp.h ptp2/chdk_live_view.h \ + ptp2/library.c ptp2/usb.c ptp2/ptp-bugs.h \ + ptp2/ptp-private.h ptp2/ptpip.c ptp2/config.c \ + ptp2/music-players.h ptp2/device-flags.h \ + ptp2/olympus-wrap.c ptp2/olympus-wrap.h \ + ptp2/chdk.c +ptp2_la_LDFLAGS = $(camlib_ldflags) +ptp2_la_DEPENDENCIES = $(camlib_dependencies) +ptp2_la_LIBADD = $(camlib_libadd) $(LTLIBICONV) $(LIBXML2_LIBS) @LIBJPEG@ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/PTPIP.TXT b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/PTPIP.TXT new file mode 100644 index 00000000..bb500a20 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/PTPIP.TXT @@ -0,0 +1,197 @@ +This briefly describes the PTP/IP transfer layer. + +(It was reverse engineered from a ethereal network packet dump.) + +The connections are simple TCP/IP socket connection. + +Default port is 15740 (same as the ISO number for PTP). + +There are 2 connections used: + - control & data connection (initiator (computer) driven) + - event connection (responder (camera) driven) + +The participants communicate in packets, their layout is: + + 4 byte length (little endian) + 4 byte type (little endian) + length - 8 byte data (type specific) + + +Type: 1 - (to ) Init_Command_Request + 2 - (from) Init_Command_Ack + 3 - (to ) Init_Event_Request + 4 - (from) Init_Event_Ack + 5 - (from) Init_Fail + + 6 - (to ) Cmd_Request + 7 - (from) Cmd_Response + 8 - (from) Event + 9 - (both) Start_Data_Packet + a - (both) Data_Packet + b - (to ) Cancel_Transaction + c - (from) End_Data_Packet + d - (to ) Ping + e - (from) Pong + +State transitions: + +Initial Phase: + Command Connection: 1 (initiator) -> 2 -> PTP traffic + \> 5 -> exit + Event Connection: 3 (initiator) -> 4 -> EVEN traffic + \ 5 -> exit + + +PTP Traffic: + START -> 6 -> 7 -> START + \ + 9 -> A/C -> 7 -> START + +EVENT Traffic: + START -> 8 -> START (EVENT) + \ + 13 -> 14 -> START (PING/PONG) + +The packet types are: + +TYPE 1 (Init_Command_Request) + payload sizeof(GUID)+(1+lstrlenW(computername))*sizeof(WCHAR) bytes + 16 byte GUID + xx byte WCHAR computername with terminating \0 + + => Can be followed by type 2 or type 5. + +TYPE 2 (Init_Command_Ack) + payload 4+sizeof(GUID)+(1+lstrlenW(cameraname))*sizeof(WCHAR) bytes. + 4 byte ID (session id, to be used for event startup) + 16 byte GUID (MAC is used here for my camera, and repeated) + xx byte WCHAR Camera Name with terminating \0 + +TYPE 3 (Init_Event_Request) + payload 4 bytes. + 4 byte ID (from Init_Command_Ack) + + => Can get type 4 or type 5 reply. + +TYPE 4 (Init_Event_Ack) + No payload. + You can start sending PTP traffic now. + +TYPE 5 (Init_Fail) + payload 4 byte. + 4 byte error code (unclear meaning) + -> might mean busy / access denied. + + +TYPE 6 (Cmd_Request): + payload n bytes. + 2 bytes PTP command + n bytes command arguments + + May be followed by 0x9 (data reader/data sender) + Will be followed then by 0x7 (PTP response) + +TYPE 7 (Cmd_Response): + payload 6 - 26 bytes + 2 bytes PTP response code + 4 bytes nr of arguments + nr*4 bytes arguments + + +TYPE 8 (Event) + length 14 - 26 + 2 byte event code + ptp event specific data.. + +TYPE 9 (Start_Data_Packet): + 8 byte payload. + + 4 byte number + 4 byte download size (without 0e/0a blob size) + + can be followed by 0e, 0a, 0c + +TYPE 10 (Data_Packet): + 4 byte payload. + 4 byte xid (transaction id?) + +TYPE 11 (Cancel_Transaction): + 12 byte + 4 length + 4 type + 4 + + -> Gets 0x7 ack back. + +TYPE 12 (End_Data_Packet): + 4 byte payload. + 4 byte xid (transaction id?) + +TYPE 13 (Ping + 0 byte payload. + +TYPE 14 (Pong) + 0 byte payload. + + +PTP READ DATA: + (type can be: 0A, 0C, 07(response)) + + 0A, 0C: + packetlen < 12 -> error + + +Profile creation packet (USB) +----------------------------- +0x00 BYTE Version (0x64) +0x01 0x00 UINT32 length (always 16+1, as 16 is the maximum profilename length) +0x05 0x04 BYTE profilename[length] + +0x16 BYTE DisplayOrder (always 00) +0x17 BYTE DeviceType + 0 - Computer + 1 - Printer + +0x18 BYTE IconType (at least 01 is a valid value) +0x19 0x00 BYTE length_in_characters (always 0x10 == 0x20 bytes : 4(Year) + 2(Month) + 2(Day) + 1('T') + 2(Hour) + 2(Minute) + 2(Second) + 1('\0') = 16) +0x1A 0x01 UINT16 timestr[length_in_characters] +0x3A INT32 IPAddress +0x3E BYTE SubnetMask (1 byte only? first byte) +0x3F INT32 Gateway + +0x43 BYTE AddressSetting + 0 Manual + 2 DHCP in ad-hoc mode : + Pick a random address in 169.254.1.* + (check with several ARP requests that no one use + this address) + 3 DHCP in managed mode : + Send a standard DHCP request, if it gets no + answer, switch to mode 2 + +0x44 BYTE AccessMode + 0 Managed/Infrastructure + 1 Ad-Hoc Mode + +0x45 BYTE Channel + +0x46 0x00 UINT32 length (always 32+1, maximum Wifi essid length) +0x4A 0x04 BYTE SSID[length] + +0x6B BYTE Authentication + 0 Open (?) + 1 Shared + 2 WPA-PSK + +0x6C BYTE Encryption + 0 None (?) + 1 WEP 64 bits + 2 WEP 128 bits + 3 TKIP + +0x6D 0x00 UINT32 length (always 64, whatever the key size is) +0x71 0x04 BYTE EncryptionKey[length] + +0xB1 BYTE EncryptionKeyNr +0xB2 BYTE MachineGUID[0x10] +0xC2 UINT16 Encryption key length in bytes 0x0005 for WEP64, 0x000d for WEP128 \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/README.ptp2 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/README.ptp2 new file mode 100644 index 00000000..2a85337b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/README.ptp2 @@ -0,0 +1,196 @@ +libptp2 (c)2001-2003 Mariusz Woloszyn + +libgphoto2 ptp2 camlib driver also +Copyright 2003 - 2012 Marcus Meissner +Copyright 2005 Hubert Figuire. + +======================== +*Upstream documentation* +======================== +- For the PTP command set there is no freely available reference. However + you can buy the ISO standard ISO 15740 from http://www.iso.org/ + +- For PTP via USB Documentation check: + http://www.usb.org/developers/devclass_docs/usb_still_img10.pdf + +- For PTP via PTPIP check: + ftp://www.fotonation.com//download/IEEE_PTPIP_paper.pdf + +- For MTP additions check: + http://www.usb.org/developers/devclass_docs/MTP_1.0.zip + + +===================== +*About this software* +===================== + +This folder contains following code: +generic: +ptp.c - the main libptp2 code; this library is used to communicate + with PTP devices. This is not libgphoto2 specific, but used + in libmtp too. +ptp.h - header file for the above. +ptp-pack.c - this file is included into ptp.c (internal structure + pack/unpack code) + +libgphoto2 specific: +config.c - Contains the device and driver configuration management code. +usb.c - The USB Imaging Class interface code. +ptpip.c - The PTP/IP interfacing code (for wireless devices). +library.c - gphoto2 PTP2 driver (used by gphoto2 to communicate with + PTP devices) + +=================== +*Supported Cameras* +=================== + +NOTE, that if your camera is not on the list, it DOES NOT mean that it is not +supported! Most of USB cameras designed after 2002 are PTP or USB Mass +Storage. In both cases the camera is supported under Linux! + +Below the list of cameras explicitly supported by gphoto2 ptp driver: + +=============================================+ +Model |Vendor ID|Product ID| +========================|=========|==========| +Kodak DC240 (PTP) | 0x040a | 0x0121 | +Kodak DC4800 | 0x040a | 0x0160 | +Kodak DX3215 | 0x040a | 0x0525 | +Kodak DX3500 | 0x040a | 0x0500 | +Kodak DX3600 | 0x040a | 0x0510 | +Kodak DX3700 | 0x040a | 0x0530 | +Kodak DX3900 | 0x040a | 0x0170 | +Kodak DX4330 | 0x040a | 0x0555 | +Kodak DX4900 | 0x040a | 0x0550 | +Kodak MC3 | 0x040a | 0x0400 | +Kodak LS420 | 0x040a | 0x0540 | +Kodak LS443 | 0x040a | 0x0568 | +Kodak CX4200 | 0x040a | 0x0560 | +Kodak CX4210 | 0x040a | 0x0560 | +Kodak CX4230 | 0x040a | 0x0535 | +Kodak CX4300 | 0x040a | 0x0566 | +Kodak Easyshare *any* | 0x040a | any | +------------------------+---------+----------+ +HP PhotoSmart 120 | 0x03f0 | 0x6502 | +HP PhotoSmart 318 | 0x03f0 | 0x6302 | +HP PhotoSmart 320 | 0x03f0 | 0x6602 | +HP PhotoSmart 612 | 0x03f0 | 0x6302 | +HP PhotoSmart 620 | 0x03f0 | 0x6802 | +HP PhotoSmart 715 | 0x03f0 | 0x6402 | +HP PhotoSmart 720 | 0x03f0 | 0x6702 | +HP PhotoSmart 735 | 0x03f0 | 0x6a02 | +HP PhotoSmart 812 | 0x03f0 | 0x4202 | +HP PhotoSmart 850 | 0x03f0 | 0x4302 | +------------------------+---------+----------+ +Sony DSC-CD300 | 0x054c | 0x004e | +Sony DSC-F505 | 0x054c | 0x004e | +Sony DSC-F505V | 0x054c | 0x004e | +Sony DSC-F707 | 0x054c | 0x004e | +Sony DSC-F707V | 0x054c | 0x004e | +Sony DSC-P5 | 0x054c | 0x004e | +Sony DSC-P30 | 0x054c | 0x004e | +Sony DSC-P50 | 0x054c | 0x004e | +Sony DSC-P71 | 0x054c | 0x004e | +Sony DSC-S75 | 0x054c | 0x004e | +Sony DSC-S85 | 0x054c | 0x004e | +Sony MVC-CD300 | 0x054c | 0x004e | +------------------------+---------+----------+ +Nikon DSC D100 | 0x04b0 | 0x0402 | +Nikon Coolpix 2000 | 0x04b0 | 0x0302 | +Nikon Coolpix SQ | 0x04b0 | 0x0202 | +Nikon Coolpix 2500 | 0x04b0 | 0x0109 | +Nikon Coolpix 4500 | 0x04b0 | 0x010b | +Nikon Coolpix 5700 | 0x04b0 | 0x010d | +Nikon Coolpix 4300 | 0x04b0 | 0x010f | +Nikon Coolpix 3500 | 0x04b0 | 0x0111 | +Nikon Coolpix 885 | 0x04b0 | 0x0112 | +Nikon Coolpix 5000 | 0x04b0 | 0x0113 | +Nikon Coolpix 3100 | 0x04b0 | 0x0115 | +Nikon Coolpix 2100 | 0x04b0 | 0x0117 | +Nikon Coolpix 5400 | 0x04b0 | 0x0119 | +Nikon Coolpix 5600 | 0x04b0 | 0x012e | +Nikon Coolpix 5200 | 0x04b0 | 0x0206 | +------------------------+---------+----------+ +Canon PowerShot S45 | 0x04a9 | 0x306d | +Canon PowerShot G3 | 0x04a9 | 0x306f | +Canon PowerShot S230 | 0x04a9 | 0x3071 | +Canon Digital IXUS v3 | 0x04a9 | 0x3071 | +Canon PowerShot A60 | 0x04a9 | 0x3074 | +Canon PowerShot A70 | 0x04a9 | 0x3073 | +Canon PowerShot A80 | 0x04a9 | 0x309A | +============================================== + +ABOVE LIST IS OUTDATED! + +Note that for some HP, Nikon, Canon and Sony cameras you have to switch +them to PTP mode, as in most cases the camera is dual mode: +PTP and USB Mass Storage. +For some cameras it even changes the Product ID number, so don't panic if +it does not match the one listed above, just switch the mode. +Don't ask me how to do it. Refer to camera documentation. + +If you know that your camera might be a PTP one, you may test it +against this code even if it's not on the list above. If it's really +a PTP device, the USB interface class should be set to 6 (it's called "still"). +You may check this by reading /proc/bus/usb/devices, for example: + +cat /proc/bus/usb/devices | grep "Cls=06" + +If you find something like this: + +I: If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none) + ^^^^^^^^^^^^^ +that means that your camera is a PTP one. +The ptp driver should detect that camera by interface class as "USB PTP +Class Camera" and allow downloading the pictures and do other stuff exactly +the same way as if it would be detected by product and vendor ID. + +If you're not Linux user fetch libptp2 from: +http://sourceforge.net/projects/libptp +and try to compile and install it. +The ptpcam tool attached to thil library is able to find and identify PTP +devices. Type: + +ptpcam --list-devices + +and ptpcam will search and display the names of all found PTP devices. + + +================================ +*Solving and reporting problems* +================================ + +To solve the problem stick to gphoto2 CLI, forget about the GUI now. +Use gphoto2 -L to see if it detects the camera. + +If you see something like this: + +~> gphoto2 -L +Unable to get descriptor (-1) +(... lot of other errors ...) + +it may mean that you're working as user while the usb access is restricted. +See gphoto2-manual, section "Setting up your system for use with libgphoto2 +and gphoto2", subsection "Setting up permissions for USB ports" +(http://gphoto.sourceforge.net/doc/manual/permissions-usb.html). + +If the gphoto2 detects the camera but then fails with some error messages +please report the bug sending the mail to gphoto-devel@lists.sourceforge.net or +directly to me at: emsi@emsi.it.pl. +The mail should contain the full output of gphoto2 -L --debug with locale +language set to _ENGLISH_. +For example in bash do: +env LANG=C gphoto2 --debug -L +tcsh/csh: +setenv LANG C; gphoto2 --debug -L + +WARGING!!! Before sending any mail make sure you read the notes in +"Supported Cameras" above. + +Enjoy! + +============= +Documentation + +While ptp transactions usage seems to be quite obvious the ptp events +handling code should be documented. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/TESTPLAN.ptp2 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/TESTPLAN.ptp2 new file mode 100644 index 00000000..1de3a616 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/TESTPLAN.ptp2 @@ -0,0 +1,198 @@ +Testplan ptp2 driver + + +I now use tests/testcamera.pl in the "gphoto2" repository for testing. + + + +--------------------------- OLD ------------------------------------------------- + +(Card capture with 16MB reference SD card.) + +Canon Powershot series (currently: Powershot SX100IS) + time gphoto2 -L + UNTESTED + + --capture-image-and-download + - via SDRAM (capturetarget=0): TODO + - via Card (capturetarget=1): TODO + - Card configured, but not inserted (capturetarget=1) TODO + + --capture-image-and-download -F 3 -I 5 + - via SDRAM (capturetarget=0): TODO + - via Card (capturetarget=1): TODO + - Card configured, but not inserted (capturetarget=1) TODO + + time gphoto2 --capture-image-and-download -F 5 -I 1 TODO + - via SDRAM (capturetarget=0) + approx 19-20 seconds 2.4.11 baseline + 16.75-17 seconds 2.4.12 + + - via CARD (capturetarget=1) + approx 28.6 seconds 2.4.11 baseline + approx 26-28 seconds 2.4.12 + + + --capture-preview + commandline tool TODO + gtkam TODO (gtkam brokenness) + mixed with --capture-image-and-download TODO + + --capture-movie=10s TODO + + --list-config TODO + "capture option" TODO + --get-config capture + --set-config capture=1 + --get-config capture + --set-config capture=0 + --get-config capture + "zoom" and /other/ config tree value TODO + --get-config zoom + --set-config zoom=20 + --get-config zoom + --get-config d02a + --set-config d02a=10 + --get-config d02a + "ownername" TODO + --get-config ownername + --set-config ownername="Markus Meissner" + --get-config ownername + --set-config ownername="Marcus Meissner" + --get-config d402 TODO + (no string settable for the SX100IS) + + +Canon EOS series (currently: Canon EOS 1000D) + time gphoto2 -L + UNTESTED + --capture-image-and-download + - via SDRAM (capturetarget=0) + - JPEG TODO + - JPEG + RAW TODO + - RAW TODO + - via Card (SD) (capturetarget=1) + - JPEG TODO + - JPEG + RAW TODO + - RAW TODO + + --capture-image-and-download -F 3 -I 5 + - via SDRAM (capturetarget=0) + - JPEG TODO + - JPEG + RAW TODO + - RAW TODO + - via Card (capturetarget=1) + - JPEG TODO + - JPEG + RAW TODO + - RAW TODO + + time gphoto2 --capture-image-and-download -F 5 -I 1 + - via SDRAM (capturetarget=0) + real 12.3s 2.4.11 baseline + real 11.1s 2.4.12 new baseline + + - via CARD (capturetarget=1) + real 29.8s,30.5s 2.4.11 baseline + real 30.4s 2.4.12 + + --capture-preview + commandline tool TODO + gtkam TODO ? + mixed with --capture-image-and-download TODO + + --capture-movie=10s TODO + + --wait-event-and-download + - JPEG TODO + --set-config capturetarget=0 + --set-config capturetarget=1 + - JPEG + RAW TODO + --set-config capturetarget=0 + --set-config capturetarget=1 + + --list-config TODO + "imageformat" TODO + --get-config imageformat=0 + --get-config imageformat + --set-config imageformat=6 + --get-config imageformat + + "ownername" TODO + --get-config ownername + --set-config ownername="Marcus Meissner" + --get-config ownername + + +Nikon DSLR series (currently: Nikon D90) + time gphoto2 -L + UNTESTED + --capture-image-and-download + - via SDRAM (capturetarget=0) + - JPEG PASS + - JPEG + RAW PASS + - via Card (SD) (capturetarget=1) + - JPEG PASS + - JPEG + RAW PASS + - no SD card inserted, capturetarget=0 + - JPEG FAIL/IGNORE (correct error) + - JPEG + RAW FAIL/IGNORE (correct error) + + --capture-image-and-download -F 3 -I 5 + - via SDRAM (capturetarget=0) + - JPEG PASS + - JPEG + RAW PASS (but not in correct order, JPGs are behind/IGNORE) + - via Card (capturetarget=1) + - JPEG PASS + - JPEG + RAW PASS + - no SD card insert, capturetarget=0 + - JPEG FAIL/IGNORE (correct error) + - JPEG + RAW FAIL/IGNORE (correct error) + + time gphoto2 --capture-image-and-download -F 5 -I 1 + - via SDRAM (capturetarget=0) + - FAIL (endless repeat) + + - via CARD (capturetarget=1) + - real 32.7 libgphoto2 2.4.11 baseline + + --capture-preview + commandline tool TODO/CHECK - First image is always plain white :( + gtkam TODO/CHECK (but no image capture possible) + mixed with --capture-image-and-download + - SDRAM mode TODO + - Card mode TODO/IGNORE (returns PTP Device Busy) + + --capture-movie=10s TODO + + --wait-event-and-download + - JPEG TODO + --set-config capturetarget=0 + --set-config capturetarget=1 + - JPEG + RAW TODO + --set-config capturetarget=0 + --set-config capturetarget=1 + + + --list-config TODO + + "imagecommentenable", also in /other/ tree TODO + --get-config imagecommentenable + --set-config imagecommentenable=An + --get-config imagecommentenable + --get-config d091 + --set-config d091=0 + --get-config d091 + --set-config d091=1 + + "imagecomment" , also in /other/ tree TODO + --get-config imagecomment + --set-config imagecomment="Marcus Meissner" + --get-config imagecomment + --get-config d090 + --set-config d090="Markus Meissner" + --get-config d090 + --set-config d090="Marcus Meissner" + + +Samsung Galaxy S2 + -- gphoto2 -L TODO diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/TODO b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/TODO new file mode 100644 index 00000000..6af5cc95 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/TODO @@ -0,0 +1,6 @@ +Unordered TODO list: + +-- lot of internal error handling code is needed and the whole internal +error reporting scheme has to be reorganized and improved! + +-- consider the idea of adding lasterror variable to PTPParams diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone-4.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone-4.txt new file mode 100644 index 00000000..6d823708 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone-4.txt @@ -0,0 +1,43 @@ +Device info: +Manufacturer: Apple Inc. + Model: Apple iPhone + device version: 6.1.3 + serial number: '0123456ABCD' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: Device has no vendor extensions +Functional Mode: 0x0000 +PTP Standard Version: 110 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x1014 + 0x1015 + 0x101b + 0x1023 + 0x9001 + 0x9002 + 0x9003 + 0x9004 + 0x9005 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4006 +Device Properties Supported: + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone-5s.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone-5s.txt new file mode 100644 index 00000000..93f76a82 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone-5s.txt @@ -0,0 +1,43 @@ +Device info: +Manufacturer: Apple Inc. + Model: Apple iPhone + device version: 7.0.4 + serial number: 'ABCDEF012345' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: Device has no vendor extensions +Functional Mode: 0x0000 +PTP Standard Version: 110 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x1014 + 0x1015 + 0x101b + 0x1023 + 0x9001 + 0x9002 + 0x9003 + 0x9004 + 0x9005 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4006 +Device Properties Supported: + 0xd302 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone-touch.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone-touch.txt new file mode 100644 index 00000000..0e8cde1a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone-touch.txt @@ -0,0 +1,50 @@ +Device info: +Manufacturer: Apple Inc. + Model: Apple iPhone + device version: 1.2.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Functional Mode: 0x0000 +PTP Standard Version: 1.00 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x1014 + 0x1015 + 0x101b +Events Supported: + 0x4006 + +Kamerazusammenfassung: +Hersteller: Apple Inc. +Model: Apple iPhone + Version: 1.2.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + +Aufnahmeformate: JPEG PNG TIFF +Anzeigeformate: JPEG, PNG, TIFF + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, kein Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: +store_00010002: + Beschreibung des Speichergeräts: Internal Storage + Label des Speichergerätes: Internal Storage + Speichertyp: Eingebauter Speicher + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 5595395568 (5336 MB) + Freier Platz (Bytes): 5557014528 (5299 MB) + Freier Speicher (Bilder): 15877 + +Properties des Geräts: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone.txt new file mode 100644 index 00000000..8f5a3f06 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone.txt @@ -0,0 +1,54 @@ +Device info: +Manufacturer: Apple Inc. + Model: Apple iPhone + device version: 1.2.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x00000000 +Vendor extension version: 0 +Vendor extension description: Device has no vendor extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x1014 + 0x1015 + 0x101b +Events Supported: + 0x4006 +Device Properties Supported: + +Kamerazusammenfassung: +Hersteller: Apple Inc. +Model: Apple iPhone + Version: 1.2.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + +Aufnahmeformate: JPEG PNG TIFF +Anzeigeformate: JPEG, PNG, TIFF + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, kein Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: +store_00010002: + Beschreibung des Speichergeräts: Internal Storage + Label des Speichergerätes: Internal Storage + Speichertyp: Eingebauter Speicher + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 5595395568 (5336 MB) + Freier Platz (Bytes): 5557014528 (5299 MB) + Freier Speicher (Bilder): 15877 + +Properties des Geräts: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone5.1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone5.1.txt new file mode 100644 index 00000000..a752d86f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/apple-iphone5.1.txt @@ -0,0 +1,41 @@ +Device info: +Manufacturer: Apple Inc. + Model: Apple iPhone + device version: 5.1 + serial number: 'ABCDEFGH0123' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: Device has no vendor extensions +Functional Mode: 0x0000 +PTP Standard Version: 110 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x1014 + 0x1015 + 0x101b + 0x1023 + 0x9001 + 0x9002 + 0x9003 + 0x9004 + 0x9005 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4006 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-80d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-80d.txt new file mode 100644 index 00000000..c2a3354a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-80d.txt @@ -0,0 +1,207 @@ +Device info: +Manufacturer: Canon.Inc + Model: Canon EOS 80D + device version: 3-1.0.1 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x1005 (Get storage info) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9170 (Unknown PTP_OC) + 0x1009 (Get object) + 0x9104 (PTP_OC_CANON_EOS_GetObject) + 0x9171 (Unknown PTP_OC) + 0x100a (Get thumbnail) + 0x100f (Format storage) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x1014 (Get device property description) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9172 (Unknown PTP_OC) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9174 (Unknown PTP_OC) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x9173 (Unknown PTP_OC) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9068 (PTP_OC_CANON_GetWebServiceSpec) + 0x9069 (PTP_OC_CANON_GetWebServiceData) + 0x906a (Unknown PTP_OC) + 0x906b (PTP_OC_CANON_SetWebServiceData) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x911e (PTP_OC_CANON_EOS_SetNullPacketMode) + 0x911f (PTP_OC_CANON_EOS_UpdateFirmware) + 0x9122 (PTP_OC_CANON_EOS_SetWftProfile) + 0x9123 (PTP_OC_CANON_EOS_GetWftProfile) + 0x9124 (PTP_OC_CANON_EOS_SetProfileToWft) + 0x9131 (PTP_OC_CANON_EOS_PopupBuiltinFlash) + 0x9133 (PTP_OC_CANON_EOS_MovieSelectSWOn) + 0x9134 (PTP_OC_CANON_EOS_MovieSelectSWOff) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x913c (PTP_OC_CANON_EOS_SetCTGInfo) + 0x913e (PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x9157 (PTP_OC_CANON_EOS_ClickWB) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x915a (PTP_OC_CANON_EOS_SetLiveAfFrame) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x91fe (PTP_OC_CANON_EOS_FAPIMessageTX) + 0x91ff (PTP_OC_CANON_EOS_FAPIMessageRX) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9108 (PTP_OC_CANON_EOS_GetDeviceInfoEx) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x912b (PTP_OC_CANON_EOS_ChangePhotoStudioMode) + 0x9130 (PTP_OC_CANON_EOS_ResetMirrorLockupState) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x915c (PTP_OC_CANON_EOS_SetLvPcFlavoreditMode) + 0x915d (PTP_OC_CANON_EOS_SetLvPcFlavoreditParam) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x902f (Unknown PTP_OC) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x910e (PTP_OC_CANON_EOS_SetObjectTime) + 0x91f0 (PTP_OC_CANON_EOS_TransferComplete2) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x91f1 (PTP_OC_CANON_EOS_CancelTransfer2) + 0x91e1 (Unknown PTP_OC) + 0x91e2 (Unknown PTP_OC) + 0x91e3 (Unknown PTP_OC) + 0x91e4 (Unknown PTP_OC) + 0x91e6 (Unknown PTP_OC) + 0x91e7 (Unknown PTP_OC) + 0x91e8 (PTP_OC_CANON_EOS_NotifyNetworkError) + 0x91e9 (PTP_OC_CANON_EOS_AdapterTransferProgress) + 0x91ea (Unknown PTP_OC) + 0x91eb (Unknown PTP_OC) + 0x91ec (Unknown PTP_OC) + 0x91ed (Unknown PTP_OC) + 0x91ee (Unknown PTP_OC) + 0x91ef (Unknown PTP_OC) + 0x91f8 (Unknown PTP_OC) + 0x91f9 (Unknown PTP_OC) + 0x9144 (PTP_OC_CANON_EOS_GpsLoggingDataMode) + 0x9145 (PTP_OC_CANON_EOS_GetGpsLogCurrentHandle) + 0x91d3 (Unknown PTP_OC) + 0x91d4 (Unknown PTP_OC) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9146 (Unknown PTP_OC) + 0x9147 (Unknown PTP_OC) + 0x9148 (Unknown PTP_OC) + 0x9149 (Unknown PTP_OC) + 0x91df (Unknown PTP_OC) + 0x91fb (Unknown PTP_OC) + 0x91fc (Unknown PTP_OC) + 0x914a (Unknown PTP_OC) + 0x910f (PTP_OC_CANON_EOS_RemoteRelease) + 0x914b (Unknown PTP_OC) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x100b (Delete object) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x912d (Unknown PTP_OC) + 0x912e (Unknown PTP_OC) + 0x912f (Unknown PTP_OC) + 0x914c (Unknown PTP_OC) + 0x9139 (PTP_OC_CANON_EOS_CreateHandle) + 0x913a (PTP_OC_CANON_EOS_SendPartialObjectEx) + 0x913b (PTP_OC_CANON_EOS_EndSendPartialObjectEx) + 0x914e (Unknown PTP_OC) + 0x91d7 (Unknown PTP_OC) + 0x91d8 (Unknown PTP_OC) + 0x91d9 (Unknown PTP_OC) + 0x91da (Unknown PTP_OC) + 0x91db (Unknown PTP_OC) + 0x91dc (Unknown PTP_OC) + 0x91dd (Unknown PTP_OC) + 0x91de (Unknown PTP_OC) + 0x91d5 (Unknown PTP_OC) + 0x9180 (Unknown PTP_OC) + 0x9181 (Unknown PTP_OC) + 0x9182 (Unknown PTP_OC) + 0x9183 (Unknown PTP_OC) + 0x9184 (Unknown PTP_OC) + 0x9185 (Unknown PTP_OC) + 0x9138 (PTP_OC_CANON_EOS_GetMusicInfo) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x91f5 (Unknown PTP_OC) + 0x91f6 (Unknown PTP_OC) + 0x917f (Unknown PTP_OC) + 0x914d (Unknown PTP_OC) + 0x914f (Unknown PTP_OC) + 0x9150 (Unknown PTP_OC) + 0x91f2 (Unknown PTP_OC) + 0x91f3 (Unknown PTP_OC) + 0x91f4 (Unknown PTP_OC) + 0x91fd (Unknown PTP_OC) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) + 0x9052 (Unknown PTP_OC) + 0x9053 (Unknown PTP_OC) + 0x9057 (Unknown PTP_OC) + 0x9058 (Unknown PTP_OC) + 0x9059 (Unknown PTP_OC) + 0x905a (Unknown PTP_OC) + 0x905b (Unknown PTP_OC) + 0x905f (Unknown PTP_OC) +Events Supported: + 0xc181 + 0x4003 + 0xc183 + 0xc184 + 0xc185 + 0xc186 + 0xc187 + 0xc188 + 0xc189 + 0xc18a + 0xc18b + 0xc18d + 0xc18e + 0xc18f + 0xc190 + 0xc191 + 0xc1a0 + 0xc1a1 + 0x4009 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus-980is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus-980is.txt new file mode 100644 index 00000000..1b82b924 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus-980is.txt @@ -0,0 +1,75 @@ +Kamerazusammenfassung: +Hersteller: Canon Inc. +Modell: Canon DIGITAL IXUS 980 IS + Version: 1-5.0.1.0 + Seriennummer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Aufnahmeformate: JPEG +Anzeigeformate: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b104), Unknown(bf01) +Unterstützte MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: Keine + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 1085538304 (1035 MB) + Freier Platz (Bytes): 1085079552 (1034 MB) + Freier Speicher (Bilder): -1 + +Properties des Geräts: +Event Emulations Modus(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Datengröße beim Transfer von der Kamera(0xd02e):(read only) (type=0x6) 524288 +Datengröße beim Transfer zur Kamera(0xd02f):(read only) (type=0x6) 524288 +Batterietyp(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Batteriemodus(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Zeit(0xd034):(readwrite) (type=0x6) 1240325649 +Art der Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Unterstützte Thumbnail Größe(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Bildgröße und -qualität(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 3312,4416,1,0,0,0, + a[6] 3312,4416,6,0,0,0, + a[6] 3312,4416,11,0,0,0, + a[6] 2592,3456,2,0,0,0, + a[6] 2592,3456,7,0,0,0, + a[6] 2592,3456,12,0,0,0, + a[6] 1944,2592,3,0,0,0, + a[6] 1944,2592,8,0,0,0, + a[6] 1944,2592,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Kamera API Version(0xd030):(read only) (type=0x6) 256 +Modell ID(0xd049):(read only) (type=0x6) 38993920 +Kameramodell(0xd032):(read only) (type=0xffff) 'Canon DIGITAL IXUS 980 IS' +Kamerabesitzer(0xd033):(readwrite) (type=0x4002) a[13] 75,117,114,116,32,71,97,114,108,111,102,102,0 +Firmware Revision(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon DIGITAL IXUS 980 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus-wireless.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus-wireless.txt new file mode 100644 index 00000000..138e9c57 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus-wireless.txt @@ -0,0 +1,177 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon DIGITAL IXUS WIRELESS + device version: 1-2.2.1.1 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x9030 + 0x9031 + 0x9032 + 0x9035 + 0x9033 + 0x9036 + 0x902f + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00e + 0xc00f + 0xc011 + 0xc013 + 0xc014 + 0xc015 + 0xc016 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd048 + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd04d + +Camera summary: +Model: Canon DIGITAL IXUS WIRELESS + device version: 1-2.2.1.1 + serial number: (null) +Vendor extension ID: 0x0000000b +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Script, DPOF, MS AVI, MS Wave, JPEG, Unknown(b101) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: A + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 14860288 (14 MB) + Free Space (Bytes): 14860288 (14 MB) + Free Space (Images): -1 +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) (type=0x6) 262144 +Property 0xd02f:(read only) (type=0x6) 131072 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Viewfinder Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +UNIX Time(0xd034):(readwrite) (type=0x6) 1160489284 +Property 0xd047:(read only) (type=0x4) 2 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd02d:(read only) (type=0x4006) a[4] 119,0,159,0 +Property 0xd048:(read only) (type=0x4006) a[19] 2563072,1640448,1026048,0,254976,1428480,914432,571392,0,153600,711680,455680,284672,0,86016,0,0,0,0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 1944,2592,1,0,0,0, + a[6] 1944,2592,6,0,0,0, + a[6] 1944,2592,11,0,0,0, + a[6] 1536,2048,2,0,0,0, + a[6] 1536,2048,7,0,0,0, + a[6] 1536,2048,12,0,0,0, + a[6] 1200,1600,3,0,0,0, + a[6] 1200,1600,8,0,0,0, + a[6] 1200,1600,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd049:(read only) (type=0x6) 23396352 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon DIGITAL IXUS WIRELESS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[16] 77,97,114,99,117,115,32,77,101,105,115,115,110,101,114,0 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd04d:(read only) (type=0x2) 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus120is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus120is.txt new file mode 100644 index 00000000..dbcec491 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus120is.txt @@ -0,0 +1,166 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon DIGITAL IXUS 120 IS + device version: 1-7.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x905e + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd402 + 0xd406 + 0xd407 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon DIGITAL IXUS 120 IS + Version: 1-7.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 998440960 (952 MB) + Free Space (Bytes): 241303552 (230 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1269252984 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 3000,4000,1,0,0,0, + a[6] 3000,4000,6,0,0,0, + a[6] 3000,4000,11,0,0,0, + a[6] 2448,3264,2,0,0,0, + a[6] 2448,3264,7,0,0,0, + a[6] 2448,3264,12,0,0,0, + a[6] 1944,2592,3,0,0,0, + a[6] 1944,2592,8,0,0,0, + a[6] 1944,2592,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 41353216 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon DIGITAL IXUS 120 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777984 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon DIGITAL IXUS 120 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus180.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus180.txt new file mode 100644 index 00000000..43c58508 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus180.txt @@ -0,0 +1,337 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon IXUS 180 + device version: 1-15.0.1.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x9013 (PTP_OC_CANON_CheckEvent) + 0x901f (PTP_OC_CANON_ChangeUSBProtocol) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1012 (Set object protection) + 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) + 0x9021 (PTP_OC_CANON_GetObjectInfoEx) + 0x901b (PTP_OC_CANON_GetPartialObjectEx) + 0x901e (PTP_OC_CANON_GetObjectAttributes) + 0x9019 (PTP_OC_CANON_SendPartialObject) + 0x9006 (PTP_OC_CANON_GetObjectHandleByName) + 0x901c (PTP_OC_CANON_SetObjectTime) + 0x9002 (PTP_OC_CANON_SetObjectArchive) + 0x904c (Unknown PTP_OC) + 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) + 0x9025 (PTP_OC_CANON_SendObjectByPath ) + 0x9038 (Unknown PTP_OC) + 0x9039 (Unknown PTP_OC) + 0x903a (Unknown PTP_OC) + 0x903b (Unknown PTP_OC) + 0x904b (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) + 0x9062 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9182 (Unknown PTP_OC) + 0x9183 (Unknown PTP_OC) + 0x9184 (Unknown PTP_OC) + 0x9185 (Unknown PTP_OC) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x9075 (Unknown PTP_OC) + 0x9076 (Unknown PTP_OC) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x902f (Unknown PTP_OC) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc101 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd057 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1472848914 +Printable: Fri Sep 2 22:41:54 2016 +Help: Use 'now' as the current time when setting. + +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: None +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon IXUS 180 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-15.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon IXUS 180 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1472856114 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 67305472 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon IXUS 180 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d057 +Label: PTP Property 0xd057 +Type: TEXT +Current: 263061015624 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon IXUS 180 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus2-cap.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus2-cap.txt new file mode 100644 index 00000000..14831c22 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus2-cap.txt @@ -0,0 +1,539 @@ +Canon PowerShot SD100 / Digital IXUS II in capture mode. + +Manufacturer: Canon Inc. + model: Canon PowerShot SD100 + device version: 01.0001 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 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 + 0x1012 SetObjectProtection + 0x1014 GetDevicePropDesc + 0x1015 GetDevicePropValue + 0x1016 SetDevicePropValue + 0x101b GetPartialObject + 0x9001 GetPartialObjectInfo + 0x9002 SetObjectArchive + 0x9003 KeepDeviceOn + 0x9006 GetObjectHandleByName + 0x9008 InitiateReleaseControl + 0x9009 TerminateReleaseControl + 0x900a TerminatePlaybackMode + 0x900b ViewFinderOn + 0x900c ViewFinderOff + 0x900d DoAeAfAwb + 0x900e GetCustomizeSpec + 0x900f GetCustomizeItemInfo + 0x9010 GetCustomizeData + 0x9011 SetCustomizeData + 0x9012 GetCaptureStatus + 0x9013 CheckEvent + 0x9014 FocusLock + 0x9015 FocusUnlock + 0x9018 AskAboutPcEvf + 0x9019 SendPartialObject + 0x901a InitiateCaptureIntoMemory + 0x901b GetPartialObjectEx + 0x901c SetObjectTime + 0x901d GetViewFinderImage + 0x901e GetObjectAttributes + 0x901f ChangeUSBProtocol + 0x9020 GetChanges + 0x9021 GetObjectInfoEx +Events Supported: + 0x4001 CancelTransaction + 0x4002 ObjectAdded + 0x4003 ObjectRemoved + 0x4004 StoreAdded + 0x4005 StoreRemoved + 0x4006 DevicePropChanged + 0x4008 DeviceInfoChanged + 0x4009 RequestObjectTransfer + 0x400a StoreFull + 0x400c StorageInfoChanged + 0x400d CaptureComplete + 0xc001 + 0xc005 + 0xc006 + 0xc007 + 0xc008 ObjectInfoChanged + 0xc009 RequestObjectTransfer + 0xc00a + 0xc00b + 0xc00c CameraModeChanged + 0xc00d +Device Properties Supported: + 0xd001 BeepMode + 0xd002 + 0xd003 ViewfinderMode + 0xd005 + 0xd006 ImageQuality + 0xd007 + 0xd008 ImageSize + 0xd009 + 0xd00a FlashMode + 0xd00b + 0xd00c ShootingMode + 0xd00e DriveMode + 0xd00f + 0xd010 MeteringMode + 0xd011 AFDistance + 0xd012 FocusingPoint + 0xd013 WhiteBalance + 0xd015 + 0xd017 + 0xd018 + 0xd019 + 0xd01c ISOSpeed + 0xd01d Aperture + 0xd01e ShutterSpeed + 0xd01f ExpCompensation + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02a Zoom + 0xd02c SizeQualityMode + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 FirmwareVersion + 0xd032 CameraModel + 0xd033 CameraOwner + 0xd034 UNIXTime + 0xd037 + 0xd038 + 0xd039 DZoomMagnification + 0xd03a + 0xd03b + 0xd03c + 0xd03d + 0xd03e + 0xd03f + 0xd040 PhotoEffect + 0xd041 AssistLight + 0xd043 + 0xd044 + 0xd045 + 0xd046 + 0xd047 + 0xd048 AverageFilesizes + 0xd049 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SD100 + Version: 01.0001 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, JPEG, MS AVI, MS Wave, CRW, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: D + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 14696448 (14 MB) + Free Space (Bytes): 9535488 (9 MB) + Free Space (Images): 9 +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Beep Mode(0xd001):(readwrite) (type=0x2) Enumeration [0,1] value: Off (1) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Lithium Ion (2) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Warning Level 1 (2) +Camera Mode(0xd005):(read only) (type=0x2) 32 +Image Quality(0xd006):(readwrite) (type=0x2) Enumeration [2,3,5] value: Fine (3) +Full View File Format(0xd007):(readwrite) (type=0x2) Enumeration [1] value: JPEG (1) +Image Size(0xd008):(readwrite) (type=0x2) Enumeration [0,1,3,2] value: Large (0) +Self Time(0xd009):(read only) (type=0x4) 10 seconds (100) +Flash Mode(0xd00a):(readwrite) (type=0x2) Enumeration [0,1,2,4,5] value: Auto + Red Eye Suppression (5) +Beep(0xd00b):(read only) (type=0x2) Off (0) +Shooting Mode(0xd00c):(readwrite) (type=0x2) Enumeration [1] value: P (1) +Drive Mode(0xd00e):(read only) (type=0x2) Single-Frame Shooting (0) +Zoom(0xd00f):(read only) (type=0x2) Off (0) +Metering Mode(0xd010):(readwrite) (type=0x2) Enumeration [0,1,3] value: Evaluative Metering (3) +AF Distance(0xd011):(readwrite) (type=0x2) Enumeration [1,3,7] value: Auto (1) +Focusing Point(0xd012):(readwrite) (type=0x4) Enumeration [12291,12289] value: Multiple Focusing Points, Auto (12289) +White Balance(0xd013):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,7,6] value: Auto (0) +AF Mode(0xd015):(read only) (type=0x2) Single Shot (0) +Contrast(0xd017):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +Color Gain(0xd018):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +Sharpness(0xd019):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +ISO Speed(0xd01c):(readwrite) (type=0x4) Enumeration [64,72,80,88,0] value: 50 (64) +Aperture(0xd01d):(readwrite) (type=0x4) Enumeration [] value: 32 +Shutter Speed(0xd01e):(readwrite) (type=0x4) Enumeration [] value: 112 +Exposure Compensation(0xd01f):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Av Open(0xd023):(read only) (type=0x4) 32 +Av Max(0xd024):(read only) (type=0x4) 53 +Focal Length(0xd025):(read only) (type=0x4) 173 +Focal Length Tele(0xd026):(read only) (type=0x4) 346 +Focal Length Wide(0xd027):(read only) (type=0x4) 173 +Focal Length Denominator(0xd028):(read only) (type=0x4) 32 +Capture Transfer Mode(0xd029):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] value: 3 +Zoom(0xd02a):(readwrite) (type=0x4) Range [0 - 9, step 1] value: 0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 1536,2048,1,0,0,0, + a[6] 1536,2048,6,0,0,0, + a[6] 1536,2048,11,0,0,0, + a[6] 1200,1600,2,0,0,0, + a[6] 1200,1600,7,0,0,0, + a[6] 1200,1600,12,0,0,0, + a[6] 768,1024,3,0,0,0, + a[6] 768,1024,8,0,0,0, + a[6] 768,1024,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 1536,2048,6,0,0,0 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) Enumeration [ + a[4] 119,0,159,0 + ] value: a[4] 119,0,159,0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 20480 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 5120 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Firmware Version(0xd031):(read only) (type=0x6) 33554688 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SD100' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[16] 77,97,114,99,117,115,32,77,101,105,115,115,110,101,114,0 +UNIX Time(0xd034):(readwrite) (type=0x6) 1232297778 +Disp Av(0xd037):(read only) (type=0x4) 0 +Av Open Apex(0xd038):(read only) (type=0x3) 32 +Digital Zoom Magnification(0xd039):(read only) (type=0x4) 2048 +Ml Spot Position(0xd03a):(read only) (type=0x4) MlSpotPosCenter (0) +Disp Av Max(0xd03b):(read only) (type=0x4) 0 +Av Max Apex(0xd03c):(read only) (type=0x4) 53 +EZoom Start Position(0xd03d):(read only) (type=0x4) 5 +Focal Length Tele(0xd03e):(read only) (type=0x4) 346 +EZoom Size of Tele(0xd03f):(read only) (type=0x4) 640 +Photo Effect(0xd040):(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5] value: Off (0) +Assist Light(0xd041):(readwrite) (type=0x4) Enumeration [0,1] value: On (1) +Rotation Angle(0xd043):(read only) (type=0x4) 0' (0) +Rotation Scene(0xd044):(readwrite) (type=0x4) Enumeration [0,1] value: On (0) +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +Average Filesizes(0xd048):(read only) (type=0x4006) a[16] 1640448,1026048,583680,0,254976,914432,571392,327680,0,153600,455680,284672,174080,0,86016,2097152 +Model ID(0xd049):(read only) (type=0x6) 19070976 + +/main/settings/owner + Label: Camera Owner + Type: TEXT + Current: Marcus Meissner +/main/settings/model + Label: Camera Model + Type: TEXT + Current: Canon PowerShot SD100 +/main/settings/firmwareversion + Label: Firmware Version + Type: TEXT + Current: 2.0.1.0 +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1232297822 + Printable: Sun Jan 18 17:57:02 2009 +/main/settings/synctime + Label: Set camera time to PC time + Type: TOGGLE + Current: 0 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/imgsettings/canonimgquality + Label: Canon Image Quality + Type: RADIO + Current: fine + Choice: 0 normal + Choice: 1 fine + Choice: 2 superfine +/main/imgsettings/canonimgformat + Label: Canon Image Format + Type: RADIO + Current: JPEG + Choice: 0 JPEG +/main/imgsettings/canonimgsize + Label: Canon Image Size + Type: RADIO + Current: large + Choice: 0 large + Choice: 1 medium 1 + Choice: 2 medium 2 + Choice: 3 small +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 50 + Choice: 0 50 + Choice: 1 100 + Choice: 2 200 + Choice: 3 400 + Choice: 4 Auto +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Cloudy + Choice: 3 Tungsten + Choice: 4 Fluorescent + Choice: 5 Fluorescent H + Choice: 6 Custom +/main/imgsettings/photoeffect + Label: Photo Effect + Type: RADIO + Current: Off + Choice: 0 Off + Choice: 1 Vivid + Choice: 2 Neutral + Choice: 3 Low sharpening + Choice: 4 Sepia + Choice: 5 Black & white +/main/capturesettings/zoom + Label: Zoom + Type: RANGE + Current: 0 + Bottom: 0 + Top: 9 + Step: 1 +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: On + Choice: 0 Off + Choice: 1 On +/main/capturesettings/autorotation + Label: Rotation Flag + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 +2 + Choice: 1 +1 2/3 + Choice: 2 +1 1/3 + Choice: 3 +1 + Choice: 4 +2/3 + Choice: 5 +1/3 + Choice: 6 0 + Choice: 7 -1/3 + Choice: 8 -2/3 + Choice: 9 -1 + Choice: 10 -1 1/3 + Choice: 11 -1 2/3 + Choice: 12 -2 +/main/capturesettings/canonflashmode + Label: Flash Mode + Type: RADIO + Current: auto + red eye suppression + Choice: 0 off + Choice: 1 auto + Choice: 2 on + Choice: 3 fill in + Choice: 4 auto + red eye suppression +/main/capturesettings/shootingmode + Label: Canon Shooting Mode + Type: RADIO + Current: Auto + Choice: 0 Auto +/main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 2.8 + Choice: 0 auto + Choice: 1 1.0 + Choice: 2 1.1 + Choice: 3 1.2 + Choice: 4 1.2 (1/3) + Choice: 5 1.4 + Choice: 6 1.6 + Choice: 7 1.8 + Choice: 8 1.8 (1/3) + Choice: 9 2.0 + Choice: 10 2.2 + Choice: 11 2.5 + Choice: 12 2.5 (1/3) + Choice: 13 2.8 + Choice: 14 3.2 + Choice: 15 3.5 + Choice: 16 3.5 (1/3) + Choice: 17 4.0 + Choice: 18 4.5 (1/3) + Choice: 19 4.5 + Choice: 20 5.6 (1/3) + Choice: 21 5.6 + Choice: 22 6.3 + Choice: 23 7.1 + Choice: 24 8.0 + Choice: 25 9.0 + Choice: 26 9.5 + Choice: 27 10 + Choice: 28 11 + Choice: 29 13 (1/3) + Choice: 30 13 + Choice: 31 14 + Choice: 32 16 + Choice: 33 18 + Choice: 34 19 + Choice: 35 20 + Choice: 36 22 + Choice: 37 25 + Choice: 38 27 + Choice: 39 29 + Choice: 40 32 + Choice: 41 36 + Choice: 42 38 + Choice: 43 40 + Choice: 44 45 + Choice: 45 51 + Choice: 46 54 + Choice: 47 57 + Choice: 48 64 + Choice: 49 72 + Choice: 50 76 + Choice: 51 81 + Choice: 52 91 +/main/capturesettings/focusingpoint + Label: Focusing Point + Type: RADIO + Current: Multiple Focusing Points, Auto + Choice: 0 Multiple Focusing Points (Center) + Choice: 1 Multiple Focusing Points, Auto +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 1/125 + Choice: 0 auto + Choice: 1 bulb + Choice: 2 30" + Choice: 3 25" + Choice: 4 20" (1/3) + Choice: 5 20" + Choice: 6 15" + Choice: 7 13" + Choice: 8 10" + Choice: 9 10" (1/3) + Choice: 10 8" + Choice: 11 6" (1/3) + Choice: 12 6" + Choice: 13 5" + Choice: 14 4" + Choice: 15 3"2 + Choice: 16 3" + Choice: 17 2"5 + Choice: 18 2" + Choice: 19 1"6 + Choice: 20 1"5 + Choice: 21 1"3 + Choice: 22 1" + Choice: 23 0"8 + Choice: 24 0"7 + Choice: 25 0"6 + Choice: 26 0"5 + Choice: 27 0"4 + Choice: 28 0"3 + Choice: 29 0"3 (1/3) + Choice: 30 1/4 + Choice: 31 1/5 + Choice: 32 1/6 + Choice: 33 1/6 (1/3) + Choice: 34 1/8 + Choice: 35 1/10 (1/3) + Choice: 36 1/10 + Choice: 37 1/13 + Choice: 38 1/15 + Choice: 39 1/20 (1/3) + Choice: 40 1/20 + Choice: 41 1/25 + Choice: 42 1/30 + Choice: 43 1/40 + Choice: 44 1/45 + Choice: 45 1/50 + Choice: 46 1/60 + Choice: 47 1/80 + Choice: 48 1/90 + Choice: 49 1/100 + Choice: 50 1/125 + Choice: 51 1/160 + Choice: 52 1/180 + Choice: 53 1/200 + Choice: 54 1/250 + Choice: 55 1/320 + Choice: 56 1/350 + Choice: 57 1/400 + Choice: 58 1/500 + Choice: 59 1/640 + Choice: 60 1/750 + Choice: 61 1/800 + Choice: 62 1/1000 + Choice: 63 1/1250 + Choice: 64 1/1500 + Choice: 65 1/1600 + Choice: 66 1/2000 + Choice: 67 1/2500 + Choice: 68 1/3000 + Choice: 69 1/3200 + Choice: 70 1/4000 +/main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 center-weighted + Choice: 1 spot + Choice: 2 evaluative +/main/capturesettings/afdistance + Label: AF Distance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Zone Focus (Close-up) + Choice: 2 Zone Focus (Far) +/main/capturesettings/focuslock + Label: Focus Lock + Type: TOGGLE + Current: 2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus40.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus40.txt new file mode 100644 index 00000000..00ebabde --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus40.txt @@ -0,0 +1,91 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon DIGITAL IXUS 40 + device version: 1-1.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x9027 + 0x9024 + 0x9025 + 0x9022 + 0x9026 + 0x9023 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00f + 0xc010 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd02e + 0xd02f + 0xd04b diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus55.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus55.txt new file mode 100644 index 00000000..3e4927a9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus55.txt @@ -0,0 +1,157 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon DIGITAL IXUS 55 + device version: 1-2.0.1.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + +Camera summary: +Model: Canon DIGITAL IXUS 55 + device version: 1-2.0.1.0 + serial number: (null) +Vendor extension ID: 0x0000000b +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Script, DPOF, MS AVI, MS Wave, JPEG, Unknown(b101) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: A + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 14696448 (14 MB) + Free Space (Bytes): 4964352 (4 MB) + Free Space (Images): -1 +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) (type=0x6) 524288 +Property 0xd02f:(read only) (type=0x6) 262144 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Viewfinder Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +UNIX Time(0xd034):(readwrite) (type=0x6) 1157063853 +Property 0xd047:(read only) (type=0x4) 2 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd02d:(read only) (type=0x4006) a[4] 119,0,159,0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 1944,2592,1,0,0,0, + a[6] 1944,2592,6,0,0,0, + a[6] 1944,2592,11,0,0,0, + a[6] 1536,2048,2,0,0,0, + a[6] 1536,2048,7,0,0,0, + a[6] 1536,2048,12,0,0,0, + a[6] 1200,1600,3,0,0,0, + a[6] 1200,1600,8,0,0,0, + a[6] 1200,1600,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd049:(read only) (type=0x6) 25231360 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon DIGITAL IXUS 55' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[1] 0 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus70.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus70.txt new file mode 100644 index 00000000..efa03db4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus70.txt @@ -0,0 +1,174 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon DIGITAL IXUS 70 + device version: 1-3.0.1.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd402 + 0xd406 + 0xd407 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon DIGITAL IXUS 70 + Version: 1-3.0.1.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 2057437184 (1962 MB) + Free Space (Bytes): 45383680 (43 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 262144 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +UNIX Time(0xd034):(readwrite) (type=0x6) 1223996786 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2304,3072,1,0,0,0, + a[6] 2304,3072,6,0,0,0, + a[6] 2304,3072,11,0,0,0, + a[6] 1944,2592,2,0,0,0, + a[6] 1944,2592,7,0,0,0, + a[6] 1944,2592,12,0,0,0, + a[6] 1536,2048,3,0,0,0, + a[6] 1536,2048,8,0,0,0, + a[6] 1536,2048,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 34996224 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon DIGITAL IXUS 70' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd402:(read only) (type=0xffff) 'Canon DIGITAL IXUS 70' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus750.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus750.txt new file mode 100644 index 00000000..b4658820 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus750.txt @@ -0,0 +1,160 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon DIGITAL IXUS 750 + device version: 1-2.0.1.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x9027 + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 +Camera summary: +Model: Canon DIGITAL IXUS 750 + device version: 1-2.0.1.0 + serial number: (null) +Vendor extension ID: 0x0000000b +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Script, DPOF, MS AVI, MS Wave, JPEG, Unknown(b101) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: A + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 990576640 (944 MB) + Free Space (Bytes): 758169600 (723 MB) + Free Space (Images): -1 +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) (type=0x6) 524288 +Property 0xd02f:(read only) (type=0x6) 262144 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Viewfinder Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +UNIX Time(0xd034):(readwrite) (type=0x6) 1167157328 +Property 0xd047:(read only) (type=0x4) 2 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd02d:(read only) (type=0x4006) a[4] 119,0,159,0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2304,3072,1,0,0,0, + a[6] 2304,3072,6,0,0,0, + a[6] 2304,3072,11,0,0,0, + a[6] 1944,2592,2,0,0,0, + a[6] 1944,2592,7,0,0,0, + a[6] 1944,2592,12,0,0,0, + a[6] 1536,2048,3,0,0,0, + a[6] 1536,2048,8,0,0,0, + a[6] 1536,2048,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd049:(read only) (type=0x6) 26214400 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon DIGITAL IXUS 750' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[1] 0 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 + + 0xc005 + 0xc00a + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus95is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus95is.txt new file mode 100644 index 00000000..7da79d29 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-digital-ixus95is.txt @@ -0,0 +1,96 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon DIGITAL IXUS 95 IS + device version: 1-6.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd402 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-elph340hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-elph340hs.txt new file mode 100644 index 00000000..ba9ac063 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-elph340hs.txt @@ -0,0 +1,290 @@ +Bus 002 Device 006: ID 04a9:3289 Canon, Inc +USB PTP Class Camera usb:002,006 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot ELPH 340 HS + Version: 1-14.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, +Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), +Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Shutter Button + +Storage Devices Summary: +store_00010001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 15923183616 (15185 MB) + Free Space (Bytes): 11403264 (10 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1410844432 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 57671680 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot ELPH 340 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,47490 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd1b0:(readwrite) (type=0x2) 0 +Property 0xd055:(readwrite) (type=0x2) 0 +Property 0xd056:(readwrite) (type=0x2) 0 +Property 0xd106:(readwrite) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot ELPH 340 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot ELPH 340 HS +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot ELPH 340 HS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1410844546 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 57671680 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot ELPH 340 HS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d1b0 +Label: PTP Property 0xd1b0 +Type: TEXT +Current: 0 +/main/other/d055 +Label: PTP Property 0xd055 +Type: TEXT +Current: 0 +/main/other/d056 +Label: PTP Property 0xd056 +Type: TEXT +Current: 0 +/main/other/d106 +Label: PTP Property 0xd106 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot ELPH 340 HS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + + +>gphoto2 --capture-image + +*** Error *** +Sorry, your camera does not support generic capture +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** + + + +-- +. +Reed M. Johnson +Assistant Professor +Department of Entomology +The Ohio State University +Ohio Agriculture Research and Development Center +118 Thorne Hall +1680 Madison Avenue +Wooster, OH 44691 +(330) 202-3523 (office) +(330) 439-8295 (cell) +(330) 263-3686 (fax) + +------------------------------------------------------------------------------ +Want excitement? +Manually upgrade your production database. +When you want reliability, choose Perforce +Perforce version control. Predictably reliable. +http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk +_______________________________________________ +Gphoto-devel mailing list +Gphoto-devel@lists.sourceforge.net +https://lists.sourceforge.net/lists/listinfo/gphoto-devel + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-1000d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-1000d.txt new file mode 100644 index 00000000..3320be9b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-1000d.txt @@ -0,0 +1,13280 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 1000D + device version: 3-1.0.3 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 200 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b + 0x910c + 0x910e + 0x910f + 0x9110 + 0x9113 + 0x9114 + 0x9115 + 0x9116 + 0x9117 + 0x9118 + 0x911a + 0x911b + 0x911c + 0x911d + 0x911e + 0x911f + 0x9120 + 0x9121 + 0x9125 + 0x9126 + 0x9127 + 0x9153 + 0x9154 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + + 0x91f0 ? + 0x91f1 ? + 0x91fe + 0x91ff + + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4007 + 0x4009 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + +from devicepropex: + event: c181 + event: c182 + event: c183 + event: c184 + event: c185 + event: c186 + event: c187 + event: c188 + event: c189 + event: c18a + event: c18b + event: c18d + event: c18e + event: c18f + event: c190 + event: c191 + event: c1a0 + event: c1a1 + deviceprop: d101 + deviceprop: d102 + deviceprop: d103 + deviceprop: d104 + deviceprop: d105 + deviceprop: d106 + deviceprop: d107 + deviceprop: d108 + deviceprop: d109 + deviceprop: d10b + deviceprop: d10c + deviceprop: d10d + deviceprop: d10e + deviceprop: d10f + deviceprop: d110 + deviceprop: d111 + deviceprop: d112 + deviceprop: d113 + deviceprop: d114 + deviceprop: d115 + deviceprop: d116 + deviceprop: d119 + deviceprop: d11a + deviceprop: d11b + deviceprop: d11c + deviceprop: d11d + deviceprop: d120 + deviceprop: d122 + deviceprop: d145 + deviceprop: d150 + deviceprop: d151 + deviceprop: d152 + deviceprop: d153 + deviceprop: d154 + deviceprop: d155 + deviceprop: d160 + deviceprop: d161 + deviceprop: d162 + deviceprop: d170 + deviceprop: d171 + deviceprop: d172 + deviceprop: d1a0 + deviceprop: d1a1 + deviceprop: d1a2 + deviceprop: d1a8 + deviceprop: d1a9 + deviceprop: d1ab + deviceprop: d1ac + deviceprop: d1ad + deviceprop: d1ae + deviceprop: d1af + deviceprop: d1b0 + deviceprop: d1b1 + deviceprop: d1b2 + deviceprop: d1b3 + deviceprop: d1b4 + deviceprop: d1b5 + deviceprop: d17f + deviceprop: d1b7 + unk: 0000 + unk: 0001 + unk: 0002 + unk: 0004 + + + event 0: EOS prop d102 info record, datasize 12 + event 0: currentvalue of d102 is 0 + event 1: EOS prop d101 info record, datasize 12 + event 1: currentvalue of d101 is 2b + event 2: EOS prop d103 info record, datasize 12 + event 2: currentvalue of d103 is 68 + event 3: EOS prop d106 info record, datasize 12 + event 3: Unknown EOS property d106, datasize is 4, using uint16 + 0: 01 + 1: 00 + 2: 00 + 3: 00 + event 3: currentvalue of d106 is 1 + event 4: EOS prop d108 info record, datasize 12 + event 4: currentvalue of d108 is 3 + event 5: EOS prop d107 info record, datasize 12 + event 5: currentvalue of d107 is 3 + event 6: EOS prop d109 info record, datasize 12 + event 6: currentvalue of d109 is 6 + event 7: EOS prop d105 info record, datasize 12 + event 7: currentvalue of d105 is 2 + event 8: EOS prop d11b info record, datasize 12 + event 8: Unknown EOS property d11b, datasize is 4, using uint16 + 0: cb + 1: 02 + 2: 00 + 3: 00 + event 8: currentvalue of d11b is 2cb + event 9: EOS prop d104 info record, datasize 12 + event 9: currentvalue of d104 is 0 + event 10: EOS prop d10c info record, datasize 12 + event 11: EOS prop d10b info record, datasize 12 + event 12: EOS prop d10d info record, datasize 12 + event 12: Unknown EOS property d10d, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + event 12: currentvalue of d10d is 0 + event 13: EOS prop d10e info record, datasize 12 + event 13: Unknown EOS property d10e, datasize is 4, using uint16 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + event 13: currentvalue of d10e is 0 + event 14: EOS prop d10f info record, datasize 12 + event 14: currentvalue of d10f is 1 + event 15: EOS prop d114 info record, datasize 12 + event 15: Unknown EOS property d114, datasize is 4, using uint16 + 0: 1e + 1: 00 + 2: 00 + 3: 00 + event 15: currentvalue of d114 is 1e + event 16: EOS prop d1a9 info record, datasize 12 + event 16: Unknown EOS property d1a9, datasize is 4, using uint32 + 0: 02 + 1: 00 + 2: 00 + 3: 00 + event 16: currentvalue of d1a9 is 2 + event 17: EOS prop d11a info record, datasize 12 + event 17: Unknown EOS property d11a, datasize is 4, using uint16 + 0: 01 + 1: 01 + 2: 00 + 3: 00 + event 17: currentvalue of d11a is 101 + event 18: EOS prop d119 info record, datasize 12 + event 18: Unknown EOS property d119, datasize is 4, using uint16 + 0: 00 + 1: 01 + 2: 00 + 3: 00 + event 18: currentvalue of d119 is 100 + event 19: EOS prop d1b7 info record, datasize 12 + event 19: Unknown EOS property d1b7, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + event 20: EOS prop d1a3 info record, datasize 12 + event 20: Unknown EOS property d1a3, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + event 20: currentvalue of d1a3 is 0 + event 21: EOS prop d11d info record, datasize 12 + event 21: Unknown EOS property d11d, datasize is 4, using uint16 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + event 21: currentvalue of d11d is 0 + event 22: EOS prop d110 info record, datasize 12 + event 22: currentvalue of d110 is 81 + event 23: EOS prop d113 info record, datasize 12 + event 23: currentvalue of d113 is 49f0b8d0 + event 24: EOS prop d116 info record, datasize 12 + event 24: Unknown EOS property d116, datasize is 4, using uint32 + 0: 54 + 1: 02 + 2: 00 + 3: 80 + event 24: currentvalue of d116 is 80000254 + event 25: EOS prop d11c info record, datasize 12 + event 25: Unknown EOS property d11c, datasize is 4, using uint16 + 0: 02 + 1: 00 + 2: 00 + 3: 00 + event 25: currentvalue of d11c is 2 + event 26: EOS prop d150 info record, datasize 36 + event 26: Unknown EOS property d150, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + event 27: EOS prop d151 info record, datasize 36 + event 27: Unknown EOS property d151, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 02 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + event 28: EOS prop d152 info record, datasize 36 + event 28: Unknown EOS property d152, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 04 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + event 29: EOS prop d153 info record, datasize 36 + event 29: Unknown EOS property d153, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + event 30: EOS prop d154 info record, datasize 36 + event 30: Unknown EOS property d154, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + event 31: EOS prop d155 info record, datasize 36 + event 31: Unknown EOS property d155, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + event 32: EOS prop d160 info record, datasize 40 + event 32: Unknown EOS property d160, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 81 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + event 33: EOS prop d161 info record, datasize 40 + event 33: Unknown EOS property d161, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 81 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + event 34: EOS prop d162 info record, datasize 40 + event 34: Unknown EOS property d162, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 81 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + event 35: EOS prop d170 info record, datasize 16696 + event 35: Unknown EOS property d170, datasize is 16688 + 0: 30 + 1: 41 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + ... + event 36: EOS prop d171 info record, datasize 16696 + event 36: Unknown EOS property d171, datasize is 16688 + 0: 30 + 1: 41 + 2: 00 + 3: 00 + ... + event 37: EOS prop d172 info record, datasize 16696 + event 37: Unknown EOS property d172, datasize is 16688 + 0: 30 + 1: 41 + 2: 00 + 3: 00 + + ... +event 38: EOS prop d17f info record, datasize 7504 +event 38: Unknown EOS property d17f, datasize is 7496 + 0: 48 + 1: 1d + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 20 + 8: d8 + 9: 05 + 10: 00 + 11: 00 + 12: 81 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 01 + 19: 00 + 20: d0 + 21: af + 22: 79 + 23: c8 + 24: 64 + 25: 89 + 26: c3 + 27: 9b + 28: 0a + 29: cc + 30: 3c + 31: 49 + 32: 63 + 33: 7a + 34: bc + 35: 75 + 36: 3e + 37: 0a + 38: 23 + 39: 03 + 40: 5e + 41: 2e + 42: f2 + 43: ca + 44: 14 + 45: 28 + 46: fc + 47: eb + 48: 23 + 49: 2d + 50: 75 + 51: 12 + 52: 9b + 53: e2 + 54: d5 + 55: 26 + 56: 00 + 57: 9f + 58: 20 + 59: 20 + 60: 51 + 61: 51 + 62: 39 + 63: 39 + 64: e6 + 65: e6 + 66: 58 + 67: 9b + 68: ea + 69: 7a + 70: 4b + 71: dc + 72: a2 + 73: a0 + 74: 26 + 75: b8 + 76: b1 + 77: 20 + 78: 48 + 79: d4 + 80: 46 + 81: cf + 82: 34 + 83: b3 + 84: 4e + 85: 68 + 86: 7c + 87: 69 + 88: 67 + 89: d4 + 90: 66 + 91: 90 + 92: e0 + 93: f4 + 94: 1e + 95: 0d + 96: 68 + 97: 21 + 98: a4 + 99: 79 + 100: 06 + 101: d9 + 102: 10 + 103: 0c + 104: 64 + 105: 12 + 106: 1c + 107: bb + 108: 54 + 109: 10 + 110: ce + 111: 8d + 112: c9 + 113: dc + 114: a9 + 115: c7 + 116: c4 + 117: 69 + 118: 6f + 119: 2d + 120: 4e + 121: 8f + 122: 40 + 123: 92 + 124: 12 + 125: a8 + 126: 30 + 127: a3 + 128: 2c + 129: ea + 130: ef + 131: d9 + 132: 14 + 133: 97 + 134: 07 + 135: 68 + 136: 6b + 137: c4 + 138: d1 + 139: fa + 140: 05 + 141: a1 + 142: 21 + 143: 54 + 144: 4a + 145: c5 + 146: 4c + 147: 09 + 148: da + 149: 8a + 150: 6c + 151: 1a + 152: ab + 153: c0 + 154: b7 + 155: e3 + 156: 31 + 157: cc + 158: 64 + 159: 17 + 160: d0 + 161: 9b + 162: 8d + 163: b5 + 164: e0 + 165: c1 + 166: 0a + 167: 2e + 168: a5 + 169: a5 + 170: f5 + 171: ea + 172: f4 + 173: ee + 174: bd + 175: 63 + 176: ca + 177: 69 + 178: 59 + 179: e5 + 180: 00 + 181: 34 + 182: 69 + 183: f5 + 184: 7d + 185: 0c + 186: 4b + 187: 34 + 188: d3 + 189: 09 + 190: 30 + 191: 75 + 192: c7 + 193: 88 + 194: 56 + 195: 26 + 196: 32 + 197: e0 + 198: e5 + 199: 34 + 200: 74 + 201: b9 + 202: b4 + 203: 0f + 204: 2a + 205: 08 + 206: 2a + 207: a4 + 208: ed + 209: 78 + 210: 16 + 211: 58 + 212: 34 + 213: f3 + 214: 46 + 215: 8f + 216: 0b + 217: 83 + 218: 07 + 219: 8f + 220: 85 + 221: 7b + 222: 02 + 223: 81 + 224: dc + 225: cc + 226: 83 + 227: 17 + 228: 43 + 229: ba + 230: 21 + 231: d1 + 232: 33 + 233: dd + 234: 9e + 235: e9 + 236: a0 + 237: ab + 238: cd + 239: 93 + 240: 83 + 241: ff + 242: 97 + 243: 7a + 244: b5 + 245: f9 + 246: 2b + 247: 72 + 248: 34 + 249: fa + 250: eb + 251: 40 + 252: 1d + 253: 18 + 254: 53 + 255: 0b + 256: d6 + 257: 85 + 258: e6 + 259: 84 + 260: b4 + 261: a2 + 262: 81 + 263: 6e + 264: 33 + 265: 58 + 266: eb + 267: b7 + 268: f2 + 269: b6 + 270: 4c + 271: 10 + 272: a6 + 273: 42 + 274: 3b + 275: 10 + 276: a5 + 277: 95 + 278: e9 + 279: 43 + 280: 67 + 281: 3e + 282: f9 + 283: 4d + 284: bf + 285: 90 + 286: b8 + 287: 00 + 288: 1c + 289: 31 + 290: f2 + 291: a2 + 292: a4 + 293: 9d + 294: 1b + 295: 0e + 296: db + 297: ac + 298: 5f + 299: ca + 300: a7 + 301: 27 + 302: 20 + 303: d2 + 304: ef + 305: a7 + 306: a1 + 307: 98 + 308: db + 309: 31 + 310: 90 + 311: 1c + 312: 02 + 313: 82 + 314: 85 + 315: 0f + 316: 5d + 317: b7 + 318: 59 + 319: 5e + 320: e2 + 321: d9 + 322: ce + 323: 46 + 324: aa + 325: fd + 326: e8 + 327: 76 + 328: 1f + 329: 26 + 330: 5b + 331: d0 + 332: 6b + 333: 5a + 334: c2 + 335: cd + 336: 25 + 337: 2a + 338: 53 + 339: bc + 340: fb + 341: 14 + 342: bc + 343: 99 + 344: ed + 345: 4c + 346: f0 + 347: 94 + 348: e9 + 349: 5c + 350: 11 + 351: f2 + 352: 2c + 353: a8 + 354: 70 + 355: cc + 356: ed + 357: 57 + 358: 27 + 359: ca + 360: 12 + 361: b8 + 362: 94 + 363: 34 + 364: 0a + 365: 8d + 366: bc + 367: a1 + 368: 85 + 369: 72 + 370: 62 + 371: 89 + 372: 6c + 373: 42 + 374: c3 + 375: df + 376: 92 + 377: f1 + 378: 06 + 379: 70 + 380: da + 381: 4e + 382: c9 + 383: 5d + 384: cb + 385: 4f + 386: 82 + 387: 6b + 388: fa + 389: 7d + 390: 5b + 391: 02 + 392: 0a + 393: a1 + 394: 9e + 395: 47 + 396: f4 + 397: cf + 398: c0 + 399: a4 + 400: 87 + 401: 70 + 402: 41 + 403: 27 + 404: cd + 405: f4 + 406: cf + 407: cf + 408: 4c + 409: b8 + 410: 58 + 411: 58 + 412: 9d + 413: c6 + 414: 0c + 415: 36 + 416: e3 + 417: 91 + 418: c3 + 419: 2e + 420: fb + 421: 31 + 422: 17 + 423: 04 + 424: 4d + 425: b4 + 426: ac + 427: 45 + 428: cf + 429: e0 + 430: df + 431: 25 + 432: 75 + 433: 2d + 434: 4a + 435: 97 + 436: 3f + 437: 2d + 438: e5 + 439: 67 + 440: d9 + 441: 66 + 442: 8b + 443: 5e + 444: 36 + 445: 86 + 446: f9 + 447: 2b + 448: 43 + 449: e0 + 450: c4 + 451: 21 + 452: f8 + 453: 57 + 454: 8b + 455: 15 + 456: 10 + 457: d0 + 458: 93 + 459: 7b + 460: 02 + 461: 5f + 462: 29 + 463: 29 + 464: c1 + 465: 70 + 466: 1a + 467: 1a + 468: 62 + 469: 1f + 470: 83 + 471: 50 + 472: 88 + 473: f1 + 474: 9c + 475: 2f + 476: fb + 477: d4 + 478: ac + 479: 82 + 480: 74 + 481: b3 + 482: 77 + 483: 18 + 484: 2c + 485: 24 + 486: 0c + 487: e9 + 488: 1b + 489: 41 + 490: 3d + 491: 2d + 492: 81 + 493: 6d + 494: 26 + 495: 48 + 496: 0f + 497: f0 + 498: 77 + 499: cf + 500: 00 + 501: 00 + 502: 01 + 503: 00 + 504: d0 + 505: af + 506: 79 + 507: c8 + 508: 64 + 509: 89 + 510: c3 + 511: 9b + 512: 0a + 513: cc + 514: 3c + 515: 49 + 516: 63 + 517: 7a + 518: bc + 519: 75 + 520: 3e + 521: 0a + 522: 23 + 523: 03 + 524: 5e + 525: 2e + 526: f2 + 527: ca + 528: 14 + 529: 28 + 530: fc + 531: eb + 532: 23 + 533: 2d + 534: 75 + 535: 12 + 536: 9b + 537: e2 + 538: d5 + 539: 26 + 540: 00 + 541: 9f + 542: 20 + 543: 20 + 544: 51 + 545: 51 + 546: 39 + 547: 39 + 548: e6 + 549: e6 + 550: 58 + 551: 9b + 552: ea + 553: 7a + 554: 4b + 555: dc + 556: a2 + 557: a0 + 558: 26 + 559: b8 + 560: b1 + 561: 20 + 562: 48 + 563: d4 + 564: 46 + 565: cf + 566: 34 + 567: b3 + 568: 4e + 569: 68 + 570: 7c + 571: 69 + 572: 67 + 573: d4 + 574: 66 + 575: 90 + 576: e0 + 577: f4 + 578: 1e + 579: 0d + 580: 68 + 581: 21 + 582: a4 + 583: 79 + 584: 06 + 585: d9 + 586: 10 + 587: 0c + 588: 64 + 589: 12 + 590: 1c + 591: bb + 592: 54 + 593: 10 + 594: ce + 595: 8d + 596: c9 + 597: dc + 598: a9 + 599: c7 + 600: c4 + 601: 69 + 602: 6f + 603: 2d + 604: 4e + 605: 8f + 606: 40 + 607: 92 + 608: 12 + 609: a8 + 610: 30 + 611: a3 + 612: 2c + 613: ea + 614: ef + 615: d9 + 616: 14 + 617: 97 + 618: 07 + 619: 68 + 620: 6b + 621: c4 + 622: d1 + 623: fa + 624: 05 + 625: a1 + 626: 21 + 627: 54 + 628: 4a + 629: c5 + 630: 4c + 631: 09 + 632: da + 633: 8a + 634: 6c + 635: 1a + 636: ab + 637: c0 + 638: b7 + 639: e3 + 640: 31 + 641: cc + 642: 64 + 643: 17 + 644: d0 + 645: 9b + 646: 8d + 647: b5 + 648: e0 + 649: c1 + 650: 0a + 651: 2e + 652: a5 + 653: a5 + 654: f5 + 655: ea + 656: f4 + 657: ee + 658: bd + 659: 63 + 660: ca + 661: 69 + 662: 59 + 663: e5 + 664: 00 + 665: 34 + 666: 69 + 667: f5 + 668: 7d + 669: 0c + 670: 4b + 671: 34 + 672: d3 + 673: 09 + 674: 30 + 675: 75 + 676: c7 + 677: 88 + 678: 56 + 679: 26 + 680: 32 + 681: e0 + 682: e5 + 683: 34 + 684: 74 + 685: b9 + 686: b4 + 687: 0f + 688: 2a + 689: 08 + 690: 2a + 691: a4 + 692: ed + 693: 78 + 694: 16 + 695: 58 + 696: 34 + 697: f3 + 698: 46 + 699: 8f + 700: 0b + 701: 83 + 702: 07 + 703: 8f + 704: 85 + 705: 7b + 706: 02 + 707: 81 + 708: dc + 709: cc + 710: 83 + 711: 17 + 712: 43 + 713: ba + 714: 21 + 715: d1 + 716: 33 + 717: dd + 718: 9e + 719: e9 + 720: a0 + 721: ab + 722: cd + 723: 93 + 724: 83 + 725: ff + 726: 97 + 727: 7a + 728: b5 + 729: f9 + 730: 2b + 731: 72 + 732: 34 + 733: fa + 734: eb + 735: 40 + 736: 1d + 737: 18 + 738: 53 + 739: 0b + 740: d6 + 741: 85 + 742: e6 + 743: 84 + 744: d7 + 745: a0 + 746: 81 + 747: 6e + 748: cc + 749: a9 + 750: 14 + 751: 48 + 752: 6c + 753: bd + 754: 4c + 755: 10 + 756: af + 757: 4c + 758: 3b + 759: 10 + 760: 0b + 761: 87 + 762: e9 + 763: 43 + 764: 89 + 765: dd + 766: 06 + 767: b2 + 768: c6 + 769: b6 + 770: b8 + 771: 00 + 772: 67 + 773: d9 + 774: 0d + 775: 5d + 776: cc + 777: 71 + 778: e4 + 779: f1 + 780: 17 + 781: 75 + 782: a0 + 783: 35 + 784: f2 + 785: de + 786: df + 787: 2d + 788: 55 + 789: 88 + 790: a1 + 791: 98 + 792: b8 + 793: ea + 794: 6f + 795: e3 + 796: 75 + 797: 74 + 798: 7a + 799: f0 + 800: a6 + 801: 69 + 802: a6 + 803: a1 + 804: a1 + 805: ce + 806: ce + 807: 46 + 808: fd + 809: c0 + 810: e8 + 811: 76 + 812: 22 + 813: 9e + 814: a4 + 815: 2f + 816: 10 + 817: 65 + 818: c2 + 819: cd + 820: 25 + 821: 2a + 822: 53 + 823: bc + 824: 8a + 825: ed + 826: 43 + 827: 66 + 828: 83 + 829: b3 + 830: f1 + 831: 94 + 832: f6 + 833: 5b + 834: 11 + 835: f2 + 836: eb + 837: 62 + 838: 8f + 839: 33 + 840: 69 + 841: 7d + 842: 27 + 843: ca + 844: ca + 845: 9f + 846: 94 + 847: 34 + 848: b2 + 849: 84 + 850: bc + 851: a1 + 852: c4 + 853: 94 + 854: 9d + 855: 76 + 856: 89 + 857: b0 + 858: 3c + 859: 20 + 860: 08 + 861: 08 + 862: f9 + 863: 8f + 864: 3b + 865: 70 + 866: c9 + 867: 5d + 868: 07 + 869: 96 + 870: 7d + 871: 94 + 872: b9 + 873: 74 + 874: 5b + 875: 02 + 876: 6a + 877: aa + 878: 9e + 879: 47 + 880: 3b + 881: dd + 882: c0 + 883: a4 + 884: 3a + 885: a6 + 886: be + 887: d8 + 888: f6 + 889: 18 + 890: 30 + 891: 30 + 892: b9 + 893: b9 + 894: 58 + 895: 58 + 896: c7 + 897: c7 + 898: 0c + 899: 36 + 900: e3 + 901: 91 + 902: c3 + 903: 2e + 904: 2e + 905: e8 + 906: e8 + 907: fb + 908: fb + 909: 53 + 910: 53 + 911: ba + 912: ba + 913: de + 914: df + 915: 25 + 916: 27 + 917: 2a + 918: 4a + 919: 97 + 920: e1 + 921: 2a + 922: e5 + 923: 67 + 924: 79 + 925: 9d + 926: 74 + 927: a1 + 928: 65 + 929: 68 + 930: 06 + 931: d4 + 932: af + 933: 2c + 934: 3b + 935: de + 936: 17 + 937: 6e + 938: 8b + 939: 15 + 940: 75 + 941: 21 + 942: 6c + 943: 84 + 944: 4c + 945: 4c + 946: 29 + 947: 29 + 948: 97 + 949: 97 + 950: e5 + 951: e5 + 952: 68 + 953: 31 + 954: 83 + 955: 50 + 956: 3e + 957: c6 + 958: 9c + 959: 2f + 960: 32 + 961: 2b + 962: 53 + 963: 7d + 964: 3c + 965: 75 + 966: 88 + 967: e7 + 968: 82 + 969: a8 + 970: 0c + 971: e9 + 972: d9 + 973: e8 + 974: c2 + 975: d2 + 976: 37 + 977: dc + 978: d9 + 979: b7 + 980: 0f + 981: f0 + 982: 77 + 983: cf + 984: 00 + 985: 00 + 986: 00 + 987: 00 + 988: 00 + 989: 00 + 990: 00 + 991: 00 + 992: 00 + 993: 00 + 994: 00 + 995: 00 + 996: 00 + 997: 00 + 998: 00 + 999: 00 + 1000: 00 + 1001: 00 + 1002: 00 + 1003: 00 + 1004: 00 + 1005: 00 + 1006: 00 + 1007: 00 + 1008: 00 + 1009: 00 + 1010: 00 + 1011: 00 + 1012: 00 + 1013: 00 + 1014: 00 + 1015: 00 + 1016: 00 + 1017: 00 + 1018: 00 + 1019: 00 + 1020: 00 + 1021: 00 + 1022: 00 + 1023: 00 + 1024: 00 + 1025: 00 + 1026: 00 + 1027: 00 + 1028: 00 + 1029: 00 + 1030: 00 + 1031: 00 + 1032: 00 + 1033: 00 + 1034: 00 + 1035: 00 + 1036: 00 + 1037: 00 + 1038: 00 + 1039: 00 + 1040: 00 + 1041: 00 + 1042: 00 + 1043: 00 + 1044: 00 + 1045: 00 + 1046: 00 + 1047: 00 + 1048: 00 + 1049: 00 + 1050: 00 + 1051: 00 + 1052: 00 + 1053: 00 + 1054: 00 + 1055: 00 + 1056: 00 + 1057: 00 + 1058: 00 + 1059: 00 + 1060: 00 + 1061: 00 + 1062: 00 + 1063: 00 + 1064: 00 + 1065: 00 + 1066: 00 + 1067: 00 + 1068: 00 + 1069: 00 + 1070: 00 + 1071: 00 + 1072: 00 + 1073: 00 + 1074: 00 + 1075: 00 + 1076: 00 + 1077: 00 + 1078: 00 + 1079: 00 + 1080: 00 + 1081: 00 + 1082: 00 + 1083: 00 + 1084: 00 + 1085: 00 + 1086: 00 + 1087: 00 + 1088: 00 + 1089: 00 + 1090: 00 + 1091: 00 + 1092: 00 + 1093: 00 + 1094: 00 + 1095: 00 + 1096: 00 + 1097: 00 + 1098: 00 + 1099: 00 + 1100: 00 + 1101: 00 + 1102: 00 + 1103: 00 + 1104: 00 + 1105: 00 + 1106: 00 + 1107: 00 + 1108: 00 + 1109: 00 + 1110: 00 + 1111: 00 + 1112: 00 + 1113: 00 + 1114: 00 + 1115: 00 + 1116: 00 + 1117: 00 + 1118: 00 + 1119: 00 + 1120: 00 + 1121: 00 + 1122: 00 + 1123: 00 + 1124: 00 + 1125: 00 + 1126: 00 + 1127: 00 + 1128: 00 + 1129: 00 + 1130: 00 + 1131: 00 + 1132: 00 + 1133: 00 + 1134: 00 + 1135: 00 + 1136: 00 + 1137: 00 + 1138: 00 + 1139: 00 + 1140: 00 + 1141: 00 + 1142: 00 + 1143: 00 + 1144: 00 + 1145: 00 + 1146: 00 + 1147: 00 + 1148: 00 + 1149: 00 + 1150: 00 + 1151: 00 + 1152: 00 + 1153: 00 + 1154: 00 + 1155: 00 + 1156: 00 + 1157: 00 + 1158: 00 + 1159: 00 + 1160: 00 + 1161: 00 + 1162: 00 + 1163: 00 + 1164: 00 + 1165: 00 + 1166: 00 + 1167: 00 + 1168: 00 + 1169: 00 + 1170: 00 + 1171: 00 + 1172: 00 + 1173: 00 + 1174: 00 + 1175: 00 + 1176: 00 + 1177: 00 + 1178: 00 + 1179: 00 + 1180: 00 + 1181: 00 + 1182: 00 + 1183: 00 + 1184: 00 + 1185: 00 + 1186: 00 + 1187: 00 + 1188: 00 + 1189: 00 + 1190: 00 + 1191: 00 + 1192: 00 + 1193: 00 + 1194: 00 + 1195: 00 + 1196: 00 + 1197: 00 + 1198: 00 + 1199: 00 + 1200: 00 + 1201: 00 + 1202: 00 + 1203: 00 + 1204: 00 + 1205: 00 + 1206: 00 + 1207: 00 + 1208: 00 + 1209: 00 + 1210: 00 + 1211: 00 + 1212: 00 + 1213: 00 + 1214: 00 + 1215: 00 + 1216: 00 + 1217: 00 + 1218: 00 + 1219: 00 + 1220: 00 + 1221: 00 + 1222: 00 + 1223: 00 + 1224: 00 + 1225: 00 + 1226: 00 + 1227: 00 + 1228: 00 + 1229: 00 + 1230: 00 + 1231: 00 + 1232: 00 + 1233: 00 + 1234: 00 + 1235: 00 + 1236: 00 + 1237: 00 + 1238: 00 + 1239: 00 + 1240: 00 + 1241: 00 + 1242: 00 + 1243: 00 + 1244: 00 + 1245: 00 + 1246: 01 + 1247: 00 + 1248: 00 + 1249: 00 + 1250: 14 + 1251: 00 + 1252: 14 + 1253: 00 + 1254: 32 + 1255: 00 + 1256: 01 + 1257: 00 + 1258: 00 + 1259: 00 + 1260: 00 + 1261: 00 + 1262: 00 + 1263: 00 + 1264: 02 + 1265: 00 + 1266: 28 + 1267: 00 + 1268: 28 + 1269: 00 + 1270: 64 + 1271: 00 + 1272: 03 + 1273: 00 + 1274: 05 + 1275: 00 + 1276: ff + 1277: ff + 1278: 00 + 1279: 00 + 1280: 00 + 1281: 00 + 1282: 00 + 1283: 00 + 1284: 00 + 1285: 00 + 1286: 00 + 1287: 00 + 1288: 00 + 1289: 00 + 1290: 00 + 1291: 00 + 1292: 00 + 1293: 00 + 1294: 00 + 1295: 00 + 1296: 00 + 1297: 00 + 1298: 00 + 1299: 00 + 1300: 00 + 1301: 00 + 1302: 00 + 1303: 00 + 1304: 00 + 1305: 00 + 1306: 00 + 1307: 00 + 1308: 00 + 1309: 00 + 1310: 00 + 1311: 00 + 1312: 00 + 1313: 00 + 1314: 00 + 1315: 00 + 1316: 00 + 1317: 00 + 1318: 00 + 1319: 00 + 1320: 00 + 1321: 00 + 1322: 00 + 1323: 00 + 1324: 00 + 1325: 00 + 1326: 00 + 1327: 00 + 1328: 00 + 1329: 00 + 1330: 00 + 1331: 00 + 1332: 00 + 1333: 00 + 1334: 00 + 1335: 00 + 1336: 00 + 1337: 00 + 1338: 00 + 1339: 00 + 1340: 00 + 1341: 00 + 1342: 00 + 1343: 00 + 1344: 00 + 1345: 00 + 1346: 00 + 1347: 00 + 1348: 00 + 1349: 00 + 1350: 00 + 1351: 00 + 1352: 00 + 1353: 00 + 1354: 00 + 1355: 00 + 1356: 00 + 1357: 00 + 1358: 00 + 1359: 00 + 1360: 00 + 1361: 00 + 1362: 00 + 1363: 00 + 1364: 00 + 1365: 00 + 1366: 00 + 1367: 00 + 1368: 00 + 1369: 00 + 1370: 00 + 1371: 00 + 1372: 00 + 1373: 00 + 1374: 00 + 1375: 00 + 1376: 00 + 1377: 00 + 1378: 00 + 1379: 00 + 1380: 00 + 1381: 00 + 1382: 00 + 1383: 00 + 1384: 00 + 1385: 00 + 1386: 00 + 1387: 00 + 1388: 00 + 1389: 00 + 1390: 00 + 1391: 00 + 1392: 00 + 1393: 00 + 1394: 00 + 1395: 00 + 1396: 00 + 1397: 00 + 1398: 00 + 1399: 00 + 1400: 00 + 1401: 00 + 1402: 00 + 1403: 00 + 1404: 00 + 1405: 00 + 1406: 00 + 1407: 00 + 1408: 00 + 1409: 00 + 1410: 00 + 1411: 00 + 1412: 00 + 1413: 00 + 1414: 00 + 1415: 00 + 1416: 00 + 1417: 00 + 1418: 00 + 1419: 00 + 1420: 00 + 1421: 00 + 1422: 00 + 1423: 00 + 1424: 00 + 1425: 00 + 1426: 00 + 1427: 00 + 1428: 00 + 1429: 00 + 1430: 00 + 1431: 00 + 1432: 00 + 1433: 00 + 1434: 00 + 1435: 00 + 1436: 00 + 1437: 00 + 1438: 00 + 1439: 00 + 1440: 00 + 1441: 00 + 1442: 00 + 1443: 00 + 1444: 00 + 1445: 00 + 1446: 00 + 1447: 00 + 1448: 00 + 1449: 00 + 1450: 00 + 1451: 00 + 1452: 00 + 1453: 00 + 1454: 00 + 1455: 00 + 1456: 00 + 1457: 00 + 1458: 00 + 1459: 00 + 1460: 00 + 1461: 00 + 1462: 00 + 1463: 00 + 1464: 00 + 1465: 00 + 1466: 00 + 1467: 00 + 1468: 00 + 1469: 00 + 1470: 00 + 1471: 00 + 1472: 00 + 1473: 00 + 1474: 00 + 1475: 00 + 1476: 00 + 1477: 00 + 1478: 00 + 1479: 00 + 1480: 00 + 1481: 00 + 1482: 00 + 1483: 00 + 1484: 00 + 1485: 00 + 1486: 00 + 1487: 00 + 1488: 00 + 1489: 00 + 1490: 00 + 1491: 00 + 1492: 00 + 1493: 00 + 1494: 00 + 1495: 00 + 1496: 00 + 1497: 00 + 1498: 00 + 1499: 00 + 1500: 00 + 1501: 00 + 1502: 00 + 1503: 00 + 1504: d8 + 1505: 05 + 1506: 00 + 1507: 00 + 1508: 82 + 1509: 00 + 1510: 00 + 1511: 00 + 1512: 01 + 1513: 00 + 1514: 01 + 1515: 00 + 1516: cb + 1517: 63 + 1518: 79 + 1519: c8 + 1520: 1c + 1521: 04 + 1522: 3c + 1523: 64 + 1524: 6d + 1525: 6a + 1526: c3 + 1527: b6 + 1528: 23 + 1529: 8c + 1530: 42 + 1531: 8a + 1532: 0e + 1533: b3 + 1534: 23 + 1535: 03 + 1536: 74 + 1537: fa + 1538: f2 + 1539: ca + 1540: b3 + 1541: 1f + 1542: fc + 1543: eb + 1544: 85 + 1545: cc + 1546: 8b + 1547: ed + 1548: 83 + 1549: 81 + 1550: d5 + 1551: 26 + 1552: 00 + 1553: 9f + 1554: 20 + 1555: 20 + 1556: 51 + 1557: 51 + 1558: 39 + 1559: 39 + 1560: e6 + 1561: e6 + 1562: 58 + 1563: 9b + 1564: ea + 1565: 7a + 1566: 4b + 1567: dc + 1568: a2 + 1569: a0 + 1570: 26 + 1571: b8 + 1572: b1 + 1573: 20 + 1574: 48 + 1575: d4 + 1576: 46 + 1577: cf + 1578: 34 + 1579: b3 + 1580: 4e + 1581: 68 + 1582: 7c + 1583: 69 + 1584: 67 + 1585: d4 + 1586: 66 + 1587: 90 + 1588: e0 + 1589: f4 + 1590: 1e + 1591: 0d + 1592: 68 + 1593: 21 + 1594: a4 + 1595: 79 + 1596: 7b + 1597: 66 + 1598: ef + 1599: f3 + 1600: 71 + 1601: 78 + 1602: 1c + 1603: bb + 1604: 3b + 1605: c6 + 1606: 31 + 1607: 72 + 1608: f8 + 1609: f4 + 1610: a9 + 1611: c7 + 1612: ff + 1613: 89 + 1614: 90 + 1615: d2 + 1616: 80 + 1617: e9 + 1618: 40 + 1619: 92 + 1620: 18 + 1621: b9 + 1622: 30 + 1623: a3 + 1624: 90 + 1625: fc + 1626: 10 + 1627: 26 + 1628: ef + 1629: ff + 1630: 07 + 1631: 68 + 1632: 6b + 1633: c4 + 1634: d1 + 1635: fa + 1636: 05 + 1637: a1 + 1638: 21 + 1639: 54 + 1640: 4a + 1641: c5 + 1642: 4c + 1643: 09 + 1644: da + 1645: 8a + 1646: 6c + 1647: 1a + 1648: ab + 1649: c0 + 1650: b7 + 1651: e3 + 1652: 31 + 1653: cc + 1654: 64 + 1655: 17 + 1656: d0 + 1657: 9b + 1658: 8d + 1659: b5 + 1660: e0 + 1661: c1 + 1662: 0a + 1663: 2e + 1664: a5 + 1665: a5 + 1666: f5 + 1667: ea + 1668: f4 + 1669: ee + 1670: bd + 1671: 63 + 1672: ca + 1673: 69 + 1674: 59 + 1675: e5 + 1676: d4 + 1677: b9 + 1678: 96 + 1679: 0a + 1680: 7d + 1681: 53 + 1682: 4b + 1683: 34 + 1684: f8 + 1685: 1a + 1686: 30 + 1687: 75 + 1688: 51 + 1689: c8 + 1690: 56 + 1691: 26 + 1692: 1f + 1693: 11 + 1694: e5 + 1695: 34 + 1696: 4d + 1697: 7f + 1698: 4b + 1699: f0 + 1700: fb + 1701: b0 + 1702: d4 + 1703: 5b + 1704: 3c + 1705: 90 + 1706: e9 + 1707: a7 + 1708: 52 + 1709: 95 + 1710: 46 + 1711: 8f + 1712: 0b + 1713: 83 + 1714: 07 + 1715: 8f + 1716: 85 + 1717: 7b + 1718: 02 + 1719: 81 + 1720: dc + 1721: cc + 1722: 83 + 1723: 17 + 1724: 43 + 1725: ba + 1726: 21 + 1727: d1 + 1728: 33 + 1729: dd + 1730: 9e + 1731: e9 + 1732: a0 + 1733: ab + 1734: cd + 1735: 93 + 1736: 83 + 1737: ff + 1738: 97 + 1739: 7a + 1740: b5 + 1741: f9 + 1742: 2b + 1743: 72 + 1744: 34 + 1745: fa + 1746: eb + 1747: 40 + 1748: 1d + 1749: 18 + 1750: 53 + 1751: 0b + 1752: d6 + 1753: 85 + 1754: e6 + 1755: 84 + 1756: 6d + 1757: f3 + 1758: 81 + 1759: 6e + 1760: 3a + 1761: 67 + 1762: eb + 1763: b7 + 1764: 26 + 1765: 60 + 1766: b3 + 1767: ef + 1768: 57 + 1769: 38 + 1770: c4 + 1771: ef + 1772: bd + 1773: d8 + 1774: e9 + 1775: 43 + 1776: 78 + 1777: 93 + 1778: 06 + 1779: b2 + 1780: 94 + 1781: a0 + 1782: b8 + 1783: 00 + 1784: 68 + 1785: 68 + 1786: f2 + 1787: a2 + 1788: 37 + 1789: 65 + 1790: e4 + 1791: f1 + 1792: 17 + 1793: 75 + 1794: a0 + 1795: 35 + 1796: f2 + 1797: de + 1798: df + 1799: 2d + 1800: 55 + 1801: 88 + 1802: a1 + 1803: 98 + 1804: b8 + 1805: ea + 1806: 6f + 1807: e3 + 1808: 75 + 1809: 74 + 1810: 7a + 1811: f0 + 1812: a6 + 1813: 69 + 1814: a6 + 1815: a1 + 1816: a1 + 1817: ce + 1818: ce + 1819: 46 + 1820: fd + 1821: c0 + 1822: e8 + 1823: 76 + 1824: 22 + 1825: 9e + 1826: a4 + 1827: 2f + 1828: 10 + 1829: 65 + 1830: c2 + 1831: cd + 1832: 25 + 1833: 2a + 1834: 53 + 1835: bc + 1836: 71 + 1837: 7c + 1838: bc + 1839: 99 + 1840: c9 + 1841: 28 + 1842: f1 + 1843: 94 + 1844: 36 + 1845: 89 + 1846: ee + 1847: 0d + 1848: 08 + 1849: 26 + 1850: 8f + 1851: 33 + 1852: 62 + 1853: 69 + 1854: 27 + 1855: ca + 1856: 15 + 1857: a2 + 1858: 94 + 1859: 34 + 1860: ec + 1861: 08 + 1862: 43 + 1863: 5e + 1864: ab + 1865: 27 + 1866: 62 + 1867: 89 + 1868: ea + 1869: 99 + 1870: 3c + 1871: 20 + 1872: 08 + 1873: 08 + 1874: f9 + 1875: 8f + 1876: 3b + 1877: 70 + 1878: c9 + 1879: 5d + 1880: 07 + 1881: 96 + 1882: 7d + 1883: 94 + 1884: b9 + 1885: 74 + 1886: 5b + 1887: 02 + 1888: 6a + 1889: aa + 1890: 9e + 1891: 47 + 1892: 3b + 1893: dd + 1894: c0 + 1895: a4 + 1896: 3a + 1897: a6 + 1898: be + 1899: d8 + 1900: f6 + 1901: 18 + 1902: 30 + 1903: 30 + 1904: b9 + 1905: b9 + 1906: 58 + 1907: 58 + 1908: c7 + 1909: c7 + 1910: 0c + 1911: 36 + 1912: e3 + 1913: 91 + 1914: c3 + 1915: 2e + 1916: 31 + 1917: 6d + 1918: 17 + 1919: 04 + 1920: 3a + 1921: 07 + 1922: 53 + 1923: ba + 1924: a6 + 1925: f8 + 1926: df + 1927: 25 + 1928: 52 + 1929: 68 + 1930: 4a + 1931: 97 + 1932: c7 + 1933: 69 + 1934: e4 + 1935: 67 + 1936: 88 + 1937: ea + 1938: 8b + 1939: 5e + 1940: 6b + 1941: d7 + 1942: f8 + 1943: 2b + 1944: 22 + 1945: b4 + 1946: c4 + 1947: 21 + 1948: c5 + 1949: c4 + 1950: 8b + 1951: 15 + 1952: 75 + 1953: 21 + 1954: 6c + 1955: 84 + 1956: 4c + 1957: 4c + 1958: 29 + 1959: 29 + 1960: 97 + 1961: 97 + 1962: e5 + 1963: e5 + 1964: 68 + 1965: 31 + 1966: 83 + 1967: 50 + 1968: 3e + 1969: c6 + 1970: 9c + 1971: 2f + 1972: 32 + 1973: 2b + 1974: 53 + 1975: 7d + 1976: 3c + 1977: 75 + 1978: 88 + 1979: e7 + 1980: 82 + 1981: a8 + 1982: 0c + 1983: e9 + 1984: d9 + 1985: e8 + 1986: c2 + 1987: d2 + 1988: 37 + 1989: dc + 1990: d9 + 1991: b7 + 1992: 0f + 1993: f0 + 1994: 77 + 1995: cf + 1996: 01 + 1997: 00 + 1998: 01 + 1999: 00 + 2000: d0 + 2001: af + 2002: 79 + 2003: c8 + 2004: 64 + 2005: 89 + 2006: c3 + 2007: 9b + 2008: 0a + 2009: cc + 2010: 3c + 2011: 49 + 2012: 63 + 2013: 7a + 2014: bc + 2015: 75 + 2016: 3e + 2017: 0a + 2018: 23 + 2019: 03 + 2020: 5e + 2021: 2e + 2022: f2 + 2023: ca + 2024: 14 + 2025: 28 + 2026: fc + 2027: eb + 2028: 23 + 2029: 2d + 2030: 75 + 2031: 12 + 2032: 9b + 2033: e2 + 2034: d5 + 2035: 26 + 2036: 00 + 2037: 9f + 2038: 20 + 2039: 20 + 2040: 51 + 2041: 51 + 2042: 39 + 2043: 39 + 2044: e6 + 2045: e6 + 2046: 58 + 2047: 9b + 2048: ea + 2049: 7a + 2050: 4b + 2051: dc + 2052: a2 + 2053: a0 + 2054: 26 + 2055: b8 + 2056: b1 + 2057: 20 + 2058: 48 + 2059: d4 + 2060: 46 + 2061: cf + 2062: 34 + 2063: b3 + 2064: 4e + 2065: 68 + 2066: 7c + 2067: 69 + 2068: 67 + 2069: d4 + 2070: 66 + 2071: 90 + 2072: e0 + 2073: f4 + 2074: 1e + 2075: 0d + 2076: 68 + 2077: 21 + 2078: a4 + 2079: 79 + 2080: 06 + 2081: d9 + 2082: 10 + 2083: 0c + 2084: 64 + 2085: 12 + 2086: 1c + 2087: bb + 2088: 54 + 2089: 10 + 2090: ce + 2091: 8d + 2092: c9 + 2093: dc + 2094: a9 + 2095: c7 + 2096: c4 + 2097: 69 + 2098: 6f + 2099: 2d + 2100: 4e + 2101: 8f + 2102: 40 + 2103: 92 + 2104: 12 + 2105: a8 + 2106: 30 + 2107: a3 + 2108: 2c + 2109: ea + 2110: ef + 2111: d9 + 2112: 14 + 2113: 97 + 2114: 07 + 2115: 68 + 2116: 6b + 2117: c4 + 2118: d1 + 2119: fa + 2120: 05 + 2121: a1 + 2122: 21 + 2123: 54 + 2124: 4a + 2125: c5 + 2126: 4c + 2127: 09 + 2128: da + 2129: 8a + 2130: 6c + 2131: 1a + 2132: ab + 2133: c0 + 2134: b7 + 2135: e3 + 2136: 31 + 2137: cc + 2138: 64 + 2139: 17 + 2140: d0 + 2141: 9b + 2142: 8d + 2143: b5 + 2144: e0 + 2145: c1 + 2146: 0a + 2147: 2e + 2148: a5 + 2149: a5 + 2150: f5 + 2151: ea + 2152: f4 + 2153: ee + 2154: bd + 2155: 63 + 2156: ca + 2157: 69 + 2158: 59 + 2159: e5 + 2160: 00 + 2161: 34 + 2162: 69 + 2163: f5 + 2164: 7d + 2165: 0c + 2166: 4b + 2167: 34 + 2168: d3 + 2169: 09 + 2170: 30 + 2171: 75 + 2172: c7 + 2173: 88 + 2174: 56 + 2175: 26 + 2176: 32 + 2177: e0 + 2178: e5 + 2179: 34 + 2180: 74 + 2181: b9 + 2182: b4 + 2183: 0f + 2184: 2a + 2185: 08 + 2186: 2a + 2187: a4 + 2188: ed + 2189: 78 + 2190: 16 + 2191: 58 + 2192: 34 + 2193: f3 + 2194: 46 + 2195: 8f + 2196: 0b + 2197: 83 + 2198: 07 + 2199: 8f + 2200: 85 + 2201: 7b + 2202: 02 + 2203: 81 + 2204: dc + 2205: cc + 2206: 83 + 2207: 17 + 2208: 43 + 2209: ba + 2210: 21 + 2211: d1 + 2212: 33 + 2213: dd + 2214: 9e + 2215: e9 + 2216: a0 + 2217: ab + 2218: cd + 2219: 93 + 2220: 83 + 2221: ff + 2222: 97 + 2223: 7a + 2224: b5 + 2225: f9 + 2226: 2b + 2227: 72 + 2228: 34 + 2229: fa + 2230: eb + 2231: 40 + 2232: 1d + 2233: 18 + 2234: 53 + 2235: 0b + 2236: d6 + 2237: 85 + 2238: e6 + 2239: 84 + 2240: d7 + 2241: a0 + 2242: 81 + 2243: 6e + 2244: cc + 2245: a9 + 2246: 14 + 2247: 48 + 2248: 6c + 2249: bd + 2250: 4c + 2251: 10 + 2252: af + 2253: 4c + 2254: 3b + 2255: 10 + 2256: 0b + 2257: 87 + 2258: e9 + 2259: 43 + 2260: 89 + 2261: dd + 2262: 06 + 2263: b2 + 2264: c6 + 2265: b6 + 2266: b8 + 2267: 00 + 2268: 67 + 2269: d9 + 2270: 0d + 2271: 5d + 2272: cc + 2273: 71 + 2274: e4 + 2275: f1 + 2276: 17 + 2277: 75 + 2278: a0 + 2279: 35 + 2280: f2 + 2281: de + 2282: df + 2283: 2d + 2284: 55 + 2285: 88 + 2286: a1 + 2287: 98 + 2288: b8 + 2289: ea + 2290: 6f + 2291: e3 + 2292: 75 + 2293: 74 + 2294: 7a + 2295: f0 + 2296: a6 + 2297: 69 + 2298: a6 + 2299: a1 + 2300: a1 + 2301: ce + 2302: ce + 2303: 46 + 2304: fd + 2305: c0 + 2306: e8 + 2307: 76 + 2308: 22 + 2309: 9e + 2310: a4 + 2311: 2f + 2312: 10 + 2313: 65 + 2314: c2 + 2315: cd + 2316: 25 + 2317: 2a + 2318: 53 + 2319: bc + 2320: 8a + 2321: ed + 2322: 43 + 2323: 66 + 2324: 83 + 2325: b3 + 2326: f1 + 2327: 94 + 2328: f6 + 2329: 5b + 2330: 11 + 2331: f2 + 2332: eb + 2333: 62 + 2334: 8f + 2335: 33 + 2336: 69 + 2337: 7d + 2338: 27 + 2339: ca + 2340: ca + 2341: 9f + 2342: 94 + 2343: 34 + 2344: b2 + 2345: 84 + 2346: bc + 2347: a1 + 2348: c4 + 2349: 94 + 2350: 9d + 2351: 76 + 2352: 89 + 2353: b0 + 2354: 3c + 2355: 20 + 2356: 08 + 2357: 08 + 2358: f9 + 2359: 8f + 2360: 3b + 2361: 70 + 2362: c9 + 2363: 5d + 2364: 07 + 2365: 96 + 2366: 7d + 2367: 94 + 2368: b9 + 2369: 74 + 2370: 5b + 2371: 02 + 2372: 6a + 2373: aa + 2374: 9e + 2375: 47 + 2376: 3b + 2377: dd + 2378: c0 + 2379: a4 + 2380: 3a + 2381: a6 + 2382: be + 2383: d8 + 2384: f6 + 2385: 18 + 2386: 30 + 2387: 30 + 2388: b9 + 2389: b9 + 2390: 58 + 2391: 58 + 2392: c7 + 2393: c7 + 2394: 0c + 2395: 36 + 2396: e3 + 2397: 91 + 2398: c3 + 2399: 2e + 2400: 2e + 2401: e8 + 2402: e8 + 2403: fb + 2404: fb + 2405: 53 + 2406: 53 + 2407: ba + 2408: ba + 2409: de + 2410: df + 2411: 25 + 2412: 27 + 2413: 2a + 2414: 4a + 2415: 97 + 2416: e1 + 2417: 2a + 2418: e5 + 2419: 67 + 2420: 79 + 2421: 9d + 2422: 74 + 2423: a1 + 2424: 65 + 2425: 68 + 2426: 06 + 2427: d4 + 2428: af + 2429: 2c + 2430: 3b + 2431: de + 2432: 17 + 2433: 6e + 2434: 8b + 2435: 15 + 2436: 75 + 2437: 21 + 2438: 6c + 2439: 84 + 2440: 4c + 2441: 4c + 2442: 29 + 2443: 29 + 2444: 97 + 2445: 97 + 2446: e5 + 2447: e5 + 2448: 68 + 2449: 31 + 2450: 83 + 2451: 50 + 2452: 3e + 2453: c6 + 2454: 9c + 2455: 2f + 2456: 32 + 2457: 2b + 2458: 53 + 2459: 7d + 2460: 3c + 2461: 75 + 2462: 88 + 2463: e7 + 2464: 82 + 2465: a8 + 2466: 0c + 2467: e9 + 2468: d9 + 2469: e8 + 2470: c2 + 2471: d2 + 2472: 37 + 2473: dc + 2474: d9 + 2475: b7 + 2476: 0f + 2477: f0 + 2478: 77 + 2479: cf + 2480: 00 + 2481: 00 + 2482: 03 + 2483: 00 + 2484: 00 + 2485: 00 + 2486: 14 + 2487: 00 + 2488: 14 + 2489: 00 + 2490: 3c + 2491: 00 + 2492: 01 + 2493: 00 + 2494: 00 + 2495: 00 + 2496: 00 + 2497: 00 + 2498: 00 + 2499: 00 + 2500: 02 + 2501: 00 + 2502: 28 + 2503: 00 + 2504: 32 + 2505: 00 + 2506: 64 + 2507: 00 + 2508: 03 + 2509: 00 + 2510: 07 + 2511: 00 + 2512: 00 + 2513: 00 + 2514: 00 + 2515: 00 + 2516: 00 + 2517: 00 + 2518: 1f + 2519: 01 + 2520: 0a + 2521: 00 + 2522: 14 + 2523: 00 + 2524: 01 + 2525: 00 + 2526: 01 + 2527: 01 + 2528: 00 + 2529: 00 + 2530: 00 + 2531: 00 + 2532: 02 + 2533: 00 + 2534: 3d + 2535: 01 + 2536: 28 + 2537: 00 + 2538: 64 + 2539: 00 + 2540: 03 + 2541: 00 + 2542: fb + 2543: ff + 2544: fc + 2545: ff + 2546: 00 + 2547: 00 + 2548: 00 + 2549: 00 + 2550: e6 + 2551: 00 + 2552: 10 + 2553: 00 + 2554: 2d + 2555: 00 + 2556: 01 + 2557: 00 + 2558: c8 + 2559: 00 + 2560: 00 + 2561: 00 + 2562: 1e + 2563: 00 + 2564: 02 + 2565: 00 + 2566: fa + 2567: 00 + 2568: 64 + 2569: 00 + 2570: 64 + 2571: 00 + 2572: 03 + 2573: 00 + 2574: fc + 2575: ff + 2576: 02 + 2577: 00 + 2578: 00 + 2579: 00 + 2580: 00 + 2581: 00 + 2582: 00 + 2583: 00 + 2584: 00 + 2585: 00 + 2586: 00 + 2587: 00 + 2588: 00 + 2589: 00 + 2590: 00 + 2591: 00 + 2592: 00 + 2593: 00 + 2594: 00 + 2595: 00 + 2596: 00 + 2597: 00 + 2598: 00 + 2599: 00 + 2600: 00 + 2601: 00 + 2602: 00 + 2603: 00 + 2604: 00 + 2605: 00 + 2606: 00 + 2607: 00 + 2608: 00 + 2609: 00 + 2610: 00 + 2611: 00 + 2612: 00 + 2613: 00 + 2614: 00 + 2615: 00 + 2616: 00 + 2617: 00 + 2618: 00 + 2619: 00 + 2620: 00 + 2621: 00 + 2622: 00 + 2623: 00 + 2624: 00 + 2625: 00 + 2626: 00 + 2627: 00 + 2628: 00 + 2629: 00 + 2630: 00 + 2631: 00 + 2632: 00 + 2633: 00 + 2634: 00 + 2635: 00 + 2636: 00 + 2637: 00 + 2638: 00 + 2639: 00 + 2640: 00 + 2641: 00 + 2642: 00 + 2643: 00 + 2644: 00 + 2645: 00 + 2646: 00 + 2647: 00 + 2648: 00 + 2649: 00 + 2650: 00 + 2651: 00 + 2652: 00 + 2653: 00 + 2654: 00 + 2655: 00 + 2656: 00 + 2657: 00 + 2658: 00 + 2659: 00 + 2660: 00 + 2661: 00 + 2662: 00 + 2663: 00 + 2664: 00 + 2665: 00 + 2666: 00 + 2667: 00 + 2668: 00 + 2669: 00 + 2670: 00 + 2671: 00 + 2672: 00 + 2673: 00 + 2674: 00 + 2675: 00 + 2676: 00 + 2677: 00 + 2678: 00 + 2679: 00 + 2680: 00 + 2681: 00 + 2682: 00 + 2683: 00 + 2684: 00 + 2685: 00 + 2686: 00 + 2687: 00 + 2688: 00 + 2689: 00 + 2690: 00 + 2691: 00 + 2692: 00 + 2693: 00 + 2694: 00 + 2695: 00 + 2696: 00 + 2697: 00 + 2698: 00 + 2699: 00 + 2700: 00 + 2701: 00 + 2702: 00 + 2703: 00 + 2704: 00 + 2705: 00 + 2706: 00 + 2707: 00 + 2708: 00 + 2709: 00 + 2710: 00 + 2711: 00 + 2712: 00 + 2713: 00 + 2714: 00 + 2715: 00 + 2716: 00 + 2717: 00 + 2718: 00 + 2719: 00 + 2720: 00 + 2721: 00 + 2722: 00 + 2723: 00 + 2724: 00 + 2725: 00 + 2726: 00 + 2727: 00 + 2728: 00 + 2729: 00 + 2730: 00 + 2731: 00 + 2732: 00 + 2733: 00 + 2734: 00 + 2735: 00 + 2736: 00 + 2737: 00 + 2738: 00 + 2739: 00 + 2740: 00 + 2741: 00 + 2742: 03 + 2743: 00 + 2744: 00 + 2745: 00 + 2746: 14 + 2747: 00 + 2748: 14 + 2749: 00 + 2750: 3c + 2751: 00 + 2752: 01 + 2753: 00 + 2754: 00 + 2755: 00 + 2756: 00 + 2757: 00 + 2758: 00 + 2759: 00 + 2760: 02 + 2761: 00 + 2762: 28 + 2763: 00 + 2764: 1e + 2765: 00 + 2766: 64 + 2767: 00 + 2768: 03 + 2769: 00 + 2770: 06 + 2771: 00 + 2772: 00 + 2773: 00 + 2774: 00 + 2775: 00 + 2776: 00 + 2777: 00 + 2778: 1f + 2779: 01 + 2780: 0a + 2781: 00 + 2782: 14 + 2783: 00 + 2784: 01 + 2785: 00 + 2786: 01 + 2787: 01 + 2788: 00 + 2789: 00 + 2790: 00 + 2791: 00 + 2792: 02 + 2793: 00 + 2794: 3d + 2795: 01 + 2796: 14 + 2797: 00 + 2798: 64 + 2799: 00 + 2800: 03 + 2801: 00 + 2802: ff + 2803: ff + 2804: fc + 2805: ff + 2806: 00 + 2807: 00 + 2808: 00 + 2809: 00 + 2810: a0 + 2811: 00 + 2812: 1e + 2813: 00 + 2814: 1e + 2815: 00 + 2816: 01 + 2817: 00 + 2818: 82 + 2819: 00 + 2820: 00 + 2821: 00 + 2822: 00 + 2823: 00 + 2824: 02 + 2825: 00 + 2826: d2 + 2827: 00 + 2828: 64 + 2829: 00 + 2830: 64 + 2831: 00 + 2832: 03 + 2833: 00 + 2834: 00 + 2835: 00 + 2836: fe + 2837: ff + 2838: 00 + 2839: 00 + 2840: 00 + 2841: 00 + 2842: 00 + 2843: 00 + 2844: 00 + 2845: 00 + 2846: 00 + 2847: 00 + 2848: 00 + 2849: 00 + 2850: 00 + 2851: 00 + 2852: 00 + 2853: 00 + 2854: 00 + 2855: 00 + 2856: 00 + 2857: 00 + 2858: 00 + 2859: 00 + 2860: 00 + 2861: 00 + 2862: 00 + 2863: 00 + 2864: 00 + 2865: 00 + 2866: 00 + 2867: 00 + 2868: 00 + 2869: 00 + 2870: 00 + 2871: 00 + 2872: 00 + 2873: 00 + 2874: 00 + 2875: 00 + 2876: 00 + 2877: 00 + 2878: 00 + 2879: 00 + 2880: 00 + 2881: 00 + 2882: 00 + 2883: 00 + 2884: 00 + 2885: 00 + 2886: 00 + 2887: 00 + 2888: 00 + 2889: 00 + 2890: 00 + 2891: 00 + 2892: 00 + 2893: 00 + 2894: 00 + 2895: 00 + 2896: 00 + 2897: 00 + 2898: 00 + 2899: 00 + 2900: 00 + 2901: 00 + 2902: 00 + 2903: 00 + 2904: 00 + 2905: 00 + 2906: 00 + 2907: 00 + 2908: 00 + 2909: 00 + 2910: 00 + 2911: 00 + 2912: 00 + 2913: 00 + 2914: 00 + 2915: 00 + 2916: 00 + 2917: 00 + 2918: 00 + 2919: 00 + 2920: 00 + 2921: 00 + 2922: 00 + 2923: 00 + 2924: 00 + 2925: 00 + 2926: 00 + 2927: 00 + 2928: 00 + 2929: 00 + 2930: 00 + 2931: 00 + 2932: 00 + 2933: 00 + 2934: 00 + 2935: 00 + 2936: 00 + 2937: 00 + 2938: 00 + 2939: 00 + 2940: 00 + 2941: 00 + 2942: 00 + 2943: 00 + 2944: 00 + 2945: 00 + 2946: 00 + 2947: 00 + 2948: 00 + 2949: 00 + 2950: 00 + 2951: 00 + 2952: 00 + 2953: 00 + 2954: 00 + 2955: 00 + 2956: 00 + 2957: 00 + 2958: 00 + 2959: 00 + 2960: 00 + 2961: 00 + 2962: 00 + 2963: 00 + 2964: 00 + 2965: 00 + 2966: 00 + 2967: 00 + 2968: 00 + 2969: 00 + 2970: 00 + 2971: 00 + 2972: 00 + 2973: 00 + 2974: 00 + 2975: 00 + 2976: 00 + 2977: 00 + 2978: 00 + 2979: 00 + 2980: 00 + 2981: 00 + 2982: 00 + 2983: 00 + 2984: 00 + 2985: 00 + 2986: 00 + 2987: 00 + 2988: 00 + 2989: 00 + 2990: 00 + 2991: 00 + 2992: 00 + 2993: 00 + 2994: 00 + 2995: 00 + 2996: 00 + 2997: 00 + 2998: 00 + 2999: 00 + 3000: d8 + 3001: 05 + 3002: 00 + 3003: 00 + 3004: 83 + 3005: 00 + 3006: 00 + 3007: 00 + 3008: 01 + 3009: 00 + 3010: 01 + 3011: 00 + 3012: aa + 3013: da + 3014: 79 + 3015: c8 + 3016: 78 + 3017: 65 + 3018: 3c + 3019: 64 + 3020: 61 + 3021: 52 + 3022: c3 + 3023: b6 + 3024: 14 + 3025: d4 + 3026: 43 + 3027: 8a + 3028: 47 + 3029: 2c + 3030: 23 + 3031: 03 + 3032: d7 + 3033: a0 + 3034: f2 + 3035: ca + 3036: 8a + 3037: ed + 3038: 03 + 3039: 14 + 3040: d6 + 3041: e6 + 3042: 8a + 3043: ed + 3044: 6f + 3045: e8 + 3046: d5 + 3047: 26 + 3048: 00 + 3049: 9f + 3050: 20 + 3051: 20 + 3052: 51 + 3053: 51 + 3054: 39 + 3055: 39 + 3056: e6 + 3057: e6 + 3058: 58 + 3059: 9b + 3060: ea + 3061: 7a + 3062: 4b + 3063: dc + 3064: a2 + 3065: a0 + 3066: 26 + 3067: b8 + 3068: b1 + 3069: 20 + 3070: 48 + 3071: d4 + 3072: 46 + 3073: cf + 3074: 34 + 3075: b3 + 3076: 4e + 3077: 68 + 3078: 7c + 3079: 69 + 3080: 67 + 3081: d4 + 3082: 66 + 3083: 90 + 3084: e0 + 3085: f4 + 3086: 1e + 3087: 0d + 3088: 68 + 3089: 21 + 3090: a4 + 3091: 79 + 3092: 93 + 3093: c8 + 3094: 10 + 3095: 0c + 3096: f9 + 3097: 72 + 3098: 1c + 3099: bb + 3100: 99 + 3101: 9d + 3102: 31 + 3103: 72 + 3104: ae + 3105: 26 + 3106: 56 + 3107: 38 + 3108: f3 + 3109: 29 + 3110: 90 + 3111: d2 + 3112: fb + 3113: 4b + 3114: 40 + 3115: 92 + 3116: 80 + 3117: 93 + 3118: 30 + 3119: a3 + 3120: 25 + 3121: 41 + 3122: 10 + 3123: 26 + 3124: 01 + 3125: 8d + 3126: 07 + 3127: 68 + 3128: 6b + 3129: c4 + 3130: d1 + 3131: fa + 3132: 05 + 3133: a1 + 3134: 21 + 3135: 54 + 3136: 4a + 3137: c5 + 3138: 4c + 3139: 09 + 3140: da + 3141: 8a + 3142: 6c + 3143: 1a + 3144: ab + 3145: c0 + 3146: b7 + 3147: e3 + 3148: 31 + 3149: cc + 3150: 64 + 3151: 17 + 3152: d0 + 3153: 9b + 3154: 8d + 3155: b5 + 3156: e0 + 3157: c1 + 3158: 0a + 3159: 2e + 3160: a5 + 3161: a5 + 3162: f5 + 3163: ea + 3164: f4 + 3165: ee + 3166: bd + 3167: 63 + 3168: ca + 3169: 69 + 3170: 59 + 3171: e5 + 3172: 09 + 3173: 32 + 3174: 69 + 3175: f5 + 3176: 43 + 3177: 3b + 3178: 4b + 3179: 34 + 3180: 65 + 3181: cb + 3182: 31 + 3183: 75 + 3184: 0e + 3185: 87 + 3186: 56 + 3187: 26 + 3188: 88 + 3189: 83 + 3190: e5 + 3191: 34 + 3192: 58 + 3193: fe + 3194: 4b + 3195: f0 + 3196: 8b + 3197: 66 + 3198: d5 + 3199: 5b + 3200: a5 + 3201: be + 3202: e9 + 3203: a7 + 3204: 5c + 3205: e3 + 3206: 47 + 3207: 8f + 3208: 0b + 3209: 83 + 3210: 07 + 3211: 8f + 3212: 85 + 3213: 7b + 3214: 02 + 3215: 81 + 3216: dc + 3217: cc + 3218: 83 + 3219: 17 + 3220: 43 + 3221: ba + 3222: 21 + 3223: d1 + 3224: 33 + 3225: dd + 3226: 9e + 3227: e9 + 3228: a0 + 3229: ab + 3230: cd + 3231: 93 + 3232: 83 + 3233: ff + 3234: 97 + 3235: 7a + 3236: b5 + 3237: f9 + 3238: 2b + 3239: 72 + 3240: 34 + 3241: fa + 3242: eb + 3243: 40 + 3244: 1d + 3245: 18 + 3246: 53 + 3247: 0b + 3248: d6 + 3249: 85 + 3250: e6 + 3251: 84 + 3252: bf + 3253: 8c + 3254: 81 + 3255: 6e + 3256: 7c + 3257: 84 + 3258: 14 + 3259: 48 + 3260: 88 + 3261: 18 + 3262: b3 + 3263: ef + 3264: 9f + 3265: 46 + 3266: 3b + 3267: 10 + 3268: f4 + 3269: c2 + 3270: 16 + 3271: bc + 3272: 94 + 3273: 54 + 3274: 06 + 3275: b2 + 3276: 2d + 3277: e6 + 3278: b8 + 3279: 00 + 3280: 0b + 3281: 04 + 3282: f2 + 3283: a2 + 3284: ad + 3285: 89 + 3286: 1b + 3287: 0e + 3288: 17 + 3289: 75 + 3290: a0 + 3291: 35 + 3292: f2 + 3293: de + 3294: df + 3295: 2d + 3296: 55 + 3297: 88 + 3298: a1 + 3299: 98 + 3300: b8 + 3301: ea + 3302: 6f + 3303: e3 + 3304: 75 + 3305: 74 + 3306: 7a + 3307: f0 + 3308: a6 + 3309: 69 + 3310: a6 + 3311: a1 + 3312: a1 + 3313: ce + 3314: ce + 3315: 46 + 3316: fd + 3317: c0 + 3318: e8 + 3319: 76 + 3320: 22 + 3321: 9e + 3322: a4 + 3323: 2f + 3324: 10 + 3325: 65 + 3326: c2 + 3327: cd + 3328: 25 + 3329: 2a + 3330: 53 + 3331: bc + 3332: 7d + 3333: fd + 3334: 43 + 3335: 66 + 3336: c9 + 3337: d8 + 3338: f1 + 3339: 94 + 3340: 49 + 3341: d8 + 3342: ee + 3343: 0d + 3344: 30 + 3345: bc + 3346: 70 + 3347: cc + 3348: 61 + 3349: 3d + 3350: d8 + 3351: 35 + 3352: de + 3353: 70 + 3354: 94 + 3355: 34 + 3356: 6e + 3357: d4 + 3358: bc + 3359: a1 + 3360: 61 + 3361: 16 + 3362: 62 + 3363: 89 + 3364: 00 + 3365: ae + 3366: 3c + 3367: 20 + 3368: 08 + 3369: 08 + 3370: f9 + 3371: 8f + 3372: 3b + 3373: 70 + 3374: c9 + 3375: 5d + 3376: 07 + 3377: 96 + 3378: 7d + 3379: 94 + 3380: b9 + 3381: 74 + 3382: 5b + 3383: 02 + 3384: 6a + 3385: aa + 3386: 9e + 3387: 47 + 3388: 3b + 3389: dd + 3390: c0 + 3391: a4 + 3392: 3a + 3393: a6 + 3394: be + 3395: d8 + 3396: f6 + 3397: 18 + 3398: 30 + 3399: 30 + 3400: b9 + 3401: b9 + 3402: 58 + 3403: 58 + 3404: c7 + 3405: c7 + 3406: 0c + 3407: 36 + 3408: e3 + 3409: 91 + 3410: c3 + 3411: 2e + 3412: c3 + 3413: f5 + 3414: e8 + 3415: fb + 3416: 48 + 3417: 49 + 3418: 53 + 3419: ba + 3420: e7 + 3421: 19 + 3422: de + 3423: 25 + 3424: 7f + 3425: 2e + 3426: 4a + 3427: 97 + 3428: 36 + 3429: 4b + 3430: e5 + 3431: 67 + 3432: 16 + 3433: be + 3434: 8b + 3435: 5e + 3436: be + 3437: e3 + 3438: f9 + 3439: 2b + 3440: 3d + 3441: e1 + 3442: c4 + 3443: 21 + 3444: ed + 3445: 72 + 3446: 8a + 3447: 15 + 3448: 75 + 3449: 21 + 3450: 6c + 3451: 84 + 3452: 4c + 3453: 4c + 3454: 29 + 3455: 29 + 3456: 97 + 3457: 97 + 3458: e5 + 3459: e5 + 3460: 68 + 3461: 31 + 3462: 83 + 3463: 50 + 3464: 3e + 3465: c6 + 3466: 9c + 3467: 2f + 3468: 32 + 3469: 2b + 3470: 53 + 3471: 7d + 3472: 3c + 3473: 75 + 3474: 88 + 3475: e7 + 3476: 82 + 3477: a8 + 3478: 0c + 3479: e9 + 3480: d9 + 3481: e8 + 3482: c2 + 3483: d2 + 3484: 37 + 3485: dc + 3486: d9 + 3487: b7 + 3488: 0f + 3489: f0 + 3490: 77 + 3491: cf + 3492: 00 + 3493: 00 + 3494: 00 + 3495: 00 + 3496: d0 + 3497: af + 3498: 79 + 3499: c8 + 3500: 64 + 3501: 89 + 3502: c3 + 3503: 9b + 3504: 0a + 3505: cc + 3506: 3c + 3507: 49 + 3508: 63 + 3509: 7a + 3510: bc + 3511: 75 + 3512: 3e + 3513: 0a + 3514: 23 + 3515: 03 + 3516: 5e + 3517: 2e + 3518: f2 + 3519: ca + 3520: 14 + 3521: 28 + 3522: fc + 3523: eb + 3524: 23 + 3525: 2d + 3526: 75 + 3527: 12 + 3528: 9b + 3529: e2 + 3530: d5 + 3531: 26 + 3532: 00 + 3533: 9f + 3534: 20 + 3535: 20 + 3536: 51 + 3537: 51 + 3538: 39 + 3539: 39 + 3540: e6 + 3541: e6 + 3542: 58 + 3543: 9b + 3544: ea + 3545: 7a + 3546: 4b + 3547: dc + 3548: a2 + 3549: a0 + 3550: 26 + 3551: b8 + 3552: b1 + 3553: 20 + 3554: 48 + 3555: d4 + 3556: 46 + 3557: cf + 3558: 34 + 3559: b3 + 3560: 4e + 3561: 68 + 3562: 7c + 3563: 69 + 3564: 67 + 3565: d4 + 3566: 66 + 3567: 90 + 3568: e0 + 3569: f4 + 3570: 1e + 3571: 0d + 3572: 68 + 3573: 21 + 3574: a4 + 3575: 79 + 3576: 06 + 3577: d9 + 3578: 10 + 3579: 0c + 3580: 64 + 3581: 12 + 3582: 1c + 3583: bb + 3584: 54 + 3585: 10 + 3586: ce + 3587: 8d + 3588: c9 + 3589: dc + 3590: a9 + 3591: c7 + 3592: c4 + 3593: 69 + 3594: 6f + 3595: 2d + 3596: 4e + 3597: 8f + 3598: 40 + 3599: 92 + 3600: 12 + 3601: a8 + 3602: 30 + 3603: a3 + 3604: 2c + 3605: ea + 3606: ef + 3607: d9 + 3608: 14 + 3609: 97 + 3610: 07 + 3611: 68 + 3612: 6b + 3613: c4 + 3614: d1 + 3615: fa + 3616: 05 + 3617: a1 + 3618: 21 + 3619: 54 + 3620: 4a + 3621: c5 + 3622: 4c + 3623: 09 + 3624: da + 3625: 8a + 3626: 6c + 3627: 1a + 3628: ab + 3629: c0 + 3630: b7 + 3631: e3 + 3632: 31 + 3633: cc + 3634: 64 + 3635: 17 + 3636: d0 + 3637: 9b + 3638: 8d + 3639: b5 + 3640: e0 + 3641: c1 + 3642: 0a + 3643: 2e + 3644: a5 + 3645: a5 + 3646: f5 + 3647: ea + 3648: f4 + 3649: ee + 3650: bd + 3651: 63 + 3652: ca + 3653: 69 + 3654: 59 + 3655: e5 + 3656: 00 + 3657: 34 + 3658: 69 + 3659: f5 + 3660: 7d + 3661: 0c + 3662: 4b + 3663: 34 + 3664: d3 + 3665: 09 + 3666: 30 + 3667: 75 + 3668: c7 + 3669: 88 + 3670: 56 + 3671: 26 + 3672: 32 + 3673: e0 + 3674: e5 + 3675: 34 + 3676: 74 + 3677: b9 + 3678: b4 + 3679: 0f + 3680: 2a + 3681: 08 + 3682: 2a + 3683: a4 + 3684: ed + 3685: 78 + 3686: 16 + 3687: 58 + 3688: 34 + 3689: f3 + 3690: 46 + 3691: 8f + 3692: 0b + 3693: 83 + 3694: 07 + 3695: 8f + 3696: 85 + 3697: 7b + 3698: 02 + 3699: 81 + 3700: dc + 3701: cc + 3702: 83 + 3703: 17 + 3704: 43 + 3705: ba + 3706: 21 + 3707: d1 + 3708: 33 + 3709: dd + 3710: 9e + 3711: e9 + 3712: a0 + 3713: ab + 3714: cd + 3715: 93 + 3716: 83 + 3717: ff + 3718: 97 + 3719: 7a + 3720: b5 + 3721: f9 + 3722: 2b + 3723: 72 + 3724: 34 + 3725: fa + 3726: eb + 3727: 40 + 3728: 1d + 3729: 18 + 3730: 53 + 3731: 0b + 3732: d6 + 3733: 85 + 3734: e6 + 3735: 84 + 3736: d7 + 3737: a0 + 3738: 81 + 3739: 6e + 3740: cc + 3741: a9 + 3742: 14 + 3743: 48 + 3744: 6c + 3745: bd + 3746: 4c + 3747: 10 + 3748: af + 3749: 4c + 3750: 3b + 3751: 10 + 3752: 0b + 3753: 87 + 3754: e9 + 3755: 43 + 3756: 89 + 3757: dd + 3758: 06 + 3759: b2 + 3760: c6 + 3761: b6 + 3762: b8 + 3763: 00 + 3764: 67 + 3765: d9 + 3766: 0d + 3767: 5d + 3768: cc + 3769: 71 + 3770: e4 + 3771: f1 + 3772: 17 + 3773: 75 + 3774: a0 + 3775: 35 + 3776: f2 + 3777: de + 3778: df + 3779: 2d + 3780: 55 + 3781: 88 + 3782: a1 + 3783: 98 + 3784: b8 + 3785: ea + 3786: 6f + 3787: e3 + 3788: 75 + 3789: 74 + 3790: 7a + 3791: f0 + 3792: a6 + 3793: 69 + 3794: a6 + 3795: a1 + 3796: a1 + 3797: ce + 3798: ce + 3799: 46 + 3800: fd + 3801: c0 + 3802: e8 + 3803: 76 + 3804: 22 + 3805: 9e + 3806: a4 + 3807: 2f + 3808: 10 + 3809: 65 + 3810: c2 + 3811: cd + 3812: 25 + 3813: 2a + 3814: 53 + 3815: bc + 3816: 8a + 3817: ed + 3818: 43 + 3819: 66 + 3820: 83 + 3821: b3 + 3822: f1 + 3823: 94 + 3824: f6 + 3825: 5b + 3826: 11 + 3827: f2 + 3828: eb + 3829: 62 + 3830: 8f + 3831: 33 + 3832: 69 + 3833: 7d + 3834: 27 + 3835: ca + 3836: ca + 3837: 9f + 3838: 94 + 3839: 34 + 3840: b2 + 3841: 84 + 3842: bc + 3843: a1 + 3844: c4 + 3845: 94 + 3846: 9d + 3847: 76 + 3848: 89 + 3849: b0 + 3850: 3c + 3851: 20 + 3852: 08 + 3853: 08 + 3854: f9 + 3855: 8f + 3856: 3b + 3857: 70 + 3858: c9 + 3859: 5d + 3860: 07 + 3861: 96 + 3862: 7d + 3863: 94 + 3864: b9 + 3865: 74 + 3866: 5b + 3867: 02 + 3868: 6a + 3869: aa + 3870: 9e + 3871: 47 + 3872: 3b + 3873: dd + 3874: c0 + 3875: a4 + 3876: 3a + 3877: a6 + 3878: be + 3879: d8 + 3880: f6 + 3881: 18 + 3882: 30 + 3883: 30 + 3884: b9 + 3885: b9 + 3886: 58 + 3887: 58 + 3888: c7 + 3889: c7 + 3890: 0c + 3891: 36 + 3892: e3 + 3893: 91 + 3894: c3 + 3895: 2e + 3896: 2e + 3897: e8 + 3898: e8 + 3899: fb + 3900: fb + 3901: 53 + 3902: 53 + 3903: ba + 3904: ba + 3905: de + 3906: df + 3907: 25 + 3908: 27 + 3909: 2a + 3910: 4a + 3911: 97 + 3912: e1 + 3913: 2a + 3914: e5 + 3915: 67 + 3916: 79 + 3917: 9d + 3918: 74 + 3919: a1 + 3920: 65 + 3921: 68 + 3922: 06 + 3923: d4 + 3924: af + 3925: 2c + 3926: 3b + 3927: de + 3928: 17 + 3929: 6e + 3930: 8b + 3931: 15 + 3932: 75 + 3933: 21 + 3934: 6c + 3935: 84 + 3936: 4c + 3937: 4c + 3938: 29 + 3939: 29 + 3940: 97 + 3941: 97 + 3942: e5 + 3943: e5 + 3944: 68 + 3945: 31 + 3946: 83 + 3947: 50 + 3948: 3e + 3949: c6 + 3950: 9c + 3951: 2f + 3952: 32 + 3953: 2b + 3954: 53 + 3955: 7d + 3956: 3c + 3957: 75 + 3958: 88 + 3959: e7 + 3960: 82 + 3961: a8 + 3962: 0c + 3963: e9 + 3964: d9 + 3965: e8 + 3966: c2 + 3967: d2 + 3968: 37 + 3969: dc + 3970: d9 + 3971: b7 + 3972: 0f + 3973: f0 + 3974: 77 + 3975: cf + 3976: 00 + 3977: 00 + 3978: 00 + 3979: 00 + 3980: 00 + 3981: 00 + 3982: 00 + 3983: 00 + 3984: 00 + 3985: 00 + 3986: 00 + 3987: 00 + 3988: 00 + 3989: 00 + 3990: 00 + 3991: 00 + 3992: 00 + 3993: 00 + 3994: 00 + 3995: 00 + 3996: 00 + 3997: 00 + 3998: 00 + 3999: 00 + 4000: 00 + 4001: 00 + 4002: 00 + 4003: 00 + 4004: 00 + 4005: 00 + 4006: 00 + 4007: 00 + 4008: 00 + 4009: 00 + 4010: 00 + 4011: 00 + 4012: 00 + 4013: 00 + 4014: 00 + 4015: 00 + 4016: 00 + 4017: 00 + 4018: 00 + 4019: 00 + 4020: 00 + 4021: 00 + 4022: 00 + 4023: 00 + 4024: 00 + 4025: 00 + 4026: 00 + 4027: 00 + 4028: 00 + 4029: 00 + 4030: 00 + 4031: 00 + 4032: 00 + 4033: 00 + 4034: 00 + 4035: 00 + 4036: 00 + 4037: 00 + 4038: 00 + 4039: 00 + 4040: 00 + 4041: 00 + 4042: 00 + 4043: 00 + 4044: 00 + 4045: 00 + 4046: 00 + 4047: 00 + 4048: 00 + 4049: 00 + 4050: 00 + 4051: 00 + 4052: 00 + 4053: 00 + 4054: 00 + 4055: 00 + 4056: 00 + 4057: 00 + 4058: 00 + 4059: 00 + 4060: 00 + 4061: 00 + 4062: 00 + 4063: 00 + 4064: 00 + 4065: 00 + 4066: 00 + 4067: 00 + 4068: 00 + 4069: 00 + 4070: 00 + 4071: 00 + 4072: 00 + 4073: 00 + 4074: 00 + 4075: 00 + 4076: 00 + 4077: 00 + 4078: 00 + 4079: 00 + 4080: 00 + 4081: 00 + 4082: 00 + 4083: 00 + 4084: 00 + 4085: 00 + 4086: 00 + 4087: 00 + 4088: 00 + 4089: 00 + 4090: 00 + 4091: 00 + 4092: 00 + 4093: 00 + 4094: 00 + 4095: 00 + 4096: 00 + 4097: 00 + 4098: 00 + 4099: 00 + 4100: 00 + 4101: 00 + 4102: 00 + 4103: 00 + 4104: 00 + 4105: 00 + 4106: 00 + 4107: 00 + 4108: 00 + 4109: 00 + 4110: 00 + 4111: 00 + 4112: 00 + 4113: 00 + 4114: 00 + 4115: 00 + 4116: 00 + 4117: 00 + 4118: 00 + 4119: 00 + 4120: 00 + 4121: 00 + 4122: 00 + 4123: 00 + 4124: 00 + 4125: 00 + 4126: 00 + 4127: 00 + 4128: 00 + 4129: 00 + 4130: 00 + 4131: 00 + 4132: 00 + 4133: 00 + 4134: 00 + 4135: 00 + 4136: 00 + 4137: 00 + 4138: 00 + 4139: 00 + 4140: 00 + 4141: 00 + 4142: 00 + 4143: 00 + 4144: 00 + 4145: 00 + 4146: 00 + 4147: 00 + 4148: 00 + 4149: 00 + 4150: 00 + 4151: 00 + 4152: 00 + 4153: 00 + 4154: 00 + 4155: 00 + 4156: 00 + 4157: 00 + 4158: 00 + 4159: 00 + 4160: 00 + 4161: 00 + 4162: 00 + 4163: 00 + 4164: 00 + 4165: 00 + 4166: 00 + 4167: 00 + 4168: 00 + 4169: 00 + 4170: 00 + 4171: 00 + 4172: 00 + 4173: 00 + 4174: 00 + 4175: 00 + 4176: 00 + 4177: 00 + 4178: 00 + 4179: 00 + 4180: 00 + 4181: 00 + 4182: 00 + 4183: 00 + 4184: 00 + 4185: 00 + 4186: 00 + 4187: 00 + 4188: 00 + 4189: 00 + 4190: 00 + 4191: 00 + 4192: 00 + 4193: 00 + 4194: 00 + 4195: 00 + 4196: 00 + 4197: 00 + 4198: 00 + 4199: 00 + 4200: 00 + 4201: 00 + 4202: 00 + 4203: 00 + 4204: 00 + 4205: 00 + 4206: 00 + 4207: 00 + 4208: 00 + 4209: 00 + 4210: 00 + 4211: 00 + 4212: 00 + 4213: 00 + 4214: 00 + 4215: 00 + 4216: 00 + 4217: 00 + 4218: 00 + 4219: 00 + 4220: 00 + 4221: 00 + 4222: 00 + 4223: 00 + 4224: 00 + 4225: 00 + 4226: 00 + 4227: 00 + 4228: 00 + 4229: 00 + 4230: 00 + 4231: 00 + 4232: 00 + 4233: 00 + 4234: 00 + 4235: 00 + 4236: 00 + 4237: 00 + 4238: 00 + 4239: 00 + 4240: 00 + 4241: 00 + 4242: 00 + 4243: 00 + 4244: 00 + 4245: 00 + 4246: 00 + 4247: 00 + 4248: 00 + 4249: 00 + 4250: 00 + 4251: 00 + 4252: 00 + 4253: 00 + 4254: 00 + 4255: 00 + 4256: 00 + 4257: 00 + 4258: 00 + 4259: 00 + 4260: 00 + 4261: 00 + 4262: 00 + 4263: 00 + 4264: 00 + 4265: 00 + 4266: 00 + 4267: 00 + 4268: 00 + 4269: 00 + 4270: 00 + 4271: 00 + 4272: 00 + 4273: 00 + 4274: 00 + 4275: 00 + 4276: 00 + 4277: 00 + 4278: 00 + 4279: 00 + 4280: 00 + 4281: 00 + 4282: 00 + 4283: 00 + 4284: 00 + 4285: 00 + 4286: 00 + 4287: 00 + 4288: 00 + 4289: 00 + 4290: 00 + 4291: 00 + 4292: 00 + 4293: 00 + 4294: 00 + 4295: 00 + 4296: 00 + 4297: 00 + 4298: 00 + 4299: 00 + 4300: 00 + 4301: 00 + 4302: 00 + 4303: 00 + 4304: 00 + 4305: 00 + 4306: 00 + 4307: 00 + 4308: 00 + 4309: 00 + 4310: 00 + 4311: 00 + 4312: 00 + 4313: 00 + 4314: 00 + 4315: 00 + 4316: 00 + 4317: 00 + 4318: 00 + 4319: 00 + 4320: 00 + 4321: 00 + 4322: 00 + 4323: 00 + 4324: 00 + 4325: 00 + 4326: 00 + 4327: 00 + 4328: 00 + 4329: 00 + 4330: 00 + 4331: 00 + 4332: 00 + 4333: 00 + 4334: 00 + 4335: 00 + 4336: 00 + 4337: 00 + 4338: 00 + 4339: 00 + 4340: 00 + 4341: 00 + 4342: 00 + 4343: 00 + 4344: 00 + 4345: 00 + 4346: 00 + 4347: 00 + 4348: 00 + 4349: 00 + 4350: 00 + 4351: 00 + 4352: 00 + 4353: 00 + 4354: 00 + 4355: 00 + 4356: 00 + 4357: 00 + 4358: 00 + 4359: 00 + 4360: 00 + 4361: 00 + 4362: 00 + 4363: 00 + 4364: 00 + 4365: 00 + 4366: 00 + 4367: 00 + 4368: 00 + 4369: 00 + 4370: 00 + 4371: 00 + 4372: 00 + 4373: 00 + 4374: 00 + 4375: 00 + 4376: 00 + 4377: 00 + 4378: 00 + 4379: 00 + 4380: 00 + 4381: 00 + 4382: 00 + 4383: 00 + 4384: 00 + 4385: 00 + 4386: 00 + 4387: 00 + 4388: 00 + 4389: 00 + 4390: 00 + 4391: 00 + 4392: 00 + 4393: 00 + 4394: 00 + 4395: 00 + 4396: 00 + 4397: 00 + 4398: 00 + 4399: 00 + 4400: 00 + 4401: 00 + 4402: 00 + 4403: 00 + 4404: 00 + 4405: 00 + 4406: 00 + 4407: 00 + 4408: 00 + 4409: 00 + 4410: 00 + 4411: 00 + 4412: 00 + 4413: 00 + 4414: 00 + 4415: 00 + 4416: 00 + 4417: 00 + 4418: 00 + 4419: 00 + 4420: 00 + 4421: 00 + 4422: 00 + 4423: 00 + 4424: 00 + 4425: 00 + 4426: 00 + 4427: 00 + 4428: 00 + 4429: 00 + 4430: 00 + 4431: 00 + 4432: 00 + 4433: 00 + 4434: 00 + 4435: 00 + 4436: 00 + 4437: 00 + 4438: 00 + 4439: 00 + 4440: 00 + 4441: 00 + 4442: 00 + 4443: 00 + 4444: 00 + 4445: 00 + 4446: 00 + 4447: 00 + 4448: 00 + 4449: 00 + 4450: 00 + 4451: 00 + 4452: 00 + 4453: 00 + 4454: 00 + 4455: 00 + 4456: 00 + 4457: 00 + 4458: 00 + 4459: 00 + 4460: 00 + 4461: 00 + 4462: 00 + 4463: 00 + 4464: 00 + 4465: 00 + 4466: 00 + 4467: 00 + 4468: 00 + 4469: 00 + 4470: 00 + 4471: 00 + 4472: 00 + 4473: 00 + 4474: 00 + 4475: 00 + 4476: 00 + 4477: 00 + 4478: 00 + 4479: 00 + 4480: 00 + 4481: 00 + 4482: 00 + 4483: 00 + 4484: 00 + 4485: 00 + 4486: 00 + 4487: 00 + 4488: 00 + 4489: 00 + 4490: 00 + 4491: 00 + 4492: 00 + 4493: 00 + 4494: 00 + 4495: 00 + 4496: d8 + 4497: 05 + 4498: 00 + 4499: 00 + 4500: 84 + 4501: 00 + 4502: 00 + 4503: 00 + 4504: 00 + 4505: 00 + 4506: 01 + 4507: 00 + 4508: d0 + 4509: af + 4510: 79 + 4511: c8 + 4512: 64 + 4513: 89 + 4514: c3 + 4515: 9b + 4516: 0a + 4517: cc + 4518: 3c + 4519: 49 + 4520: 63 + 4521: 7a + 4522: bc + 4523: 75 + 4524: 3e + 4525: 0a + 4526: 23 + 4527: 03 + 4528: 5e + 4529: 2e + 4530: f2 + 4531: ca + 4532: 14 + 4533: 28 + 4534: fc + 4535: eb + 4536: 23 + 4537: 2d + 4538: 75 + 4539: 12 + 4540: 9b + 4541: e2 + 4542: d5 + 4543: 26 + 4544: 00 + 4545: 9f + 4546: 20 + 4547: 20 + 4548: 51 + 4549: 51 + 4550: 39 + 4551: 39 + 4552: e6 + 4553: e6 + 4554: 58 + 4555: 9b + 4556: ea + 4557: 7a + 4558: 4b + 4559: dc + 4560: a2 + 4561: a0 + 4562: 26 + 4563: b8 + 4564: b1 + 4565: 20 + 4566: 48 + 4567: d4 + 4568: 46 + 4569: cf + 4570: 34 + 4571: b3 + 4572: 4e + 4573: 68 + 4574: 7c + 4575: 69 + 4576: 67 + 4577: d4 + 4578: 66 + 4579: 90 + 4580: e0 + 4581: f4 + 4582: 1e + 4583: 0d + 4584: 68 + 4585: 21 + 4586: a4 + 4587: 79 + 4588: 06 + 4589: d9 + 4590: 10 + 4591: 0c + 4592: 64 + 4593: 12 + 4594: 1c + 4595: bb + 4596: 54 + 4597: 10 + 4598: ce + 4599: 8d + 4600: c9 + 4601: dc + 4602: a9 + 4603: c7 + 4604: c4 + 4605: 69 + 4606: 6f + 4607: 2d + 4608: 4e + 4609: 8f + 4610: 40 + 4611: 92 + 4612: 12 + 4613: a8 + 4614: 30 + 4615: a3 + 4616: 2c + 4617: ea + 4618: ef + 4619: d9 + 4620: 14 + 4621: 97 + 4622: 07 + 4623: 68 + 4624: 6b + 4625: c4 + 4626: d1 + 4627: fa + 4628: 05 + 4629: a1 + 4630: 21 + 4631: 54 + 4632: 4a + 4633: c5 + 4634: 4c + 4635: 09 + 4636: da + 4637: 8a + 4638: 6c + 4639: 1a + 4640: ab + 4641: c0 + 4642: b7 + 4643: e3 + 4644: 31 + 4645: cc + 4646: 64 + 4647: 17 + 4648: d0 + 4649: 9b + 4650: 8d + 4651: b5 + 4652: e0 + 4653: c1 + 4654: 0a + 4655: 2e + 4656: a5 + 4657: a5 + 4658: f5 + 4659: ea + 4660: f4 + 4661: ee + 4662: bd + 4663: 63 + 4664: ca + 4665: 69 + 4666: 59 + 4667: e5 + 4668: 00 + 4669: 34 + 4670: 69 + 4671: f5 + 4672: 7d + 4673: 0c + 4674: 4b + 4675: 34 + 4676: d3 + 4677: 09 + 4678: 30 + 4679: 75 + 4680: c7 + 4681: 88 + 4682: 56 + 4683: 26 + 4684: 32 + 4685: e0 + 4686: e5 + 4687: 34 + 4688: 74 + 4689: b9 + 4690: b4 + 4691: 0f + 4692: 2a + 4693: 08 + 4694: 2a + 4695: a4 + 4696: ed + 4697: 78 + 4698: 16 + 4699: 58 + 4700: 34 + 4701: f3 + 4702: 46 + 4703: 8f + 4704: 0b + 4705: 83 + 4706: 07 + 4707: 8f + 4708: 85 + 4709: 7b + 4710: 02 + 4711: 81 + 4712: dc + 4713: cc + 4714: 83 + 4715: 17 + 4716: 43 + 4717: ba + 4718: 21 + 4719: d1 + 4720: 33 + 4721: dd + 4722: 9e + 4723: e9 + 4724: a0 + 4725: ab + 4726: cd + 4727: 93 + 4728: 83 + 4729: ff + 4730: 97 + 4731: 7a + 4732: b5 + 4733: f9 + 4734: 2b + 4735: 72 + 4736: 34 + 4737: fa + 4738: eb + 4739: 40 + 4740: 1d + 4741: 18 + 4742: 53 + 4743: 0b + 4744: d6 + 4745: 85 + 4746: e6 + 4747: 84 + 4748: b8 + 4749: 78 + 4750: 80 + 4751: 6e + 4752: de + 4753: b5 + 4754: 14 + 4755: 48 + 4756: 11 + 4757: b6 + 4758: 4c + 4759: 10 + 4760: d9 + 4761: 2e + 4762: 3b + 4763: 10 + 4764: 91 + 4765: fa + 4766: 16 + 4767: bc + 4768: e7 + 4769: d8 + 4770: 06 + 4771: b2 + 4772: 53 + 4773: 8b + 4774: b8 + 4775: 00 + 4776: 40 + 4777: 21 + 4778: f2 + 4779: a2 + 4780: 0a + 4781: 95 + 4782: 1b + 4783: 0e + 4784: b4 + 4785: a1 + 4786: 5f + 4787: ca + 4788: 7e + 4789: c9 + 4790: df + 4791: 2d + 4792: f5 + 4793: 93 + 4794: a1 + 4795: 98 + 4796: 42 + 4797: 0b + 4798: 90 + 4799: 1c + 4800: 7c + 4801: 7d + 4802: 7a + 4803: f0 + 4804: 93 + 4805: bf + 4806: 59 + 4807: 5e + 4808: 46 + 4809: c1 + 4810: ce + 4811: 46 + 4812: 56 + 4813: de + 4814: e8 + 4815: 76 + 4816: c2 + 4817: 53 + 4818: 5b + 4819: d0 + 4820: 96 + 4821: 5f + 4822: c2 + 4823: cd + 4824: 25 + 4825: 2a + 4826: 53 + 4827: bc + 4828: c7 + 4829: 1f + 4830: bc + 4831: 99 + 4832: 9c + 4833: b7 + 4834: f1 + 4835: 94 + 4836: 67 + 4837: 52 + 4838: 11 + 4839: f2 + 4840: 58 + 4841: 47 + 4842: 8f + 4843: 33 + 4844: 93 + 4845: 87 + 4846: d8 + 4847: 35 + 4848: eb + 4849: 69 + 4850: 6b + 4851: cb + 4852: 16 + 4853: 7b + 4854: 43 + 4855: 5e + 4856: d2 + 4857: 7a + 4858: 62 + 4859: 89 + 4860: f4 + 4861: 4b + 4862: c3 + 4863: df + 4864: 64 + 4865: e1 + 4866: 06 + 4867: 70 + 4868: bf + 4869: 60 + 4870: c9 + 4871: 5d + 4872: b7 + 4873: 9c + 4874: 7d + 4875: 94 + 4876: 21 + 4877: 67 + 4878: 5b + 4879: 02 + 4880: 1b + 4881: 76 + 4882: 61 + 4883: b8 + 4884: 47 + 4885: 20 + 4886: 3f + 4887: 5b + 4888: 59 + 4889: 40 + 4890: 41 + 4891: 27 + 4892: 06 + 4893: 00 + 4894: 30 + 4895: 30 + 4896: 55 + 4897: 41 + 4898: a7 + 4899: a7 + 4900: 5e + 4901: d2 + 4902: 0c + 4903: 36 + 4904: e3 + 4905: 91 + 4906: c3 + 4907: 2e + 4908: dc + 4909: 37 + 4910: 17 + 4911: 04 + 4912: 3f + 4913: b1 + 4914: ac + 4915: 45 + 4916: f1 + 4917: e3 + 4918: df + 4919: 25 + 4920: 71 + 4921: 10 + 4922: 4a + 4923: 97 + 4924: ff + 4925: 73 + 4926: e5 + 4927: 67 + 4928: 09 + 4929: 28 + 4930: 8b + 4931: 5e + 4932: a2 + 4933: b3 + 4934: f9 + 4935: 2b + 4936: 13 + 4937: 86 + 4938: c4 + 4939: 21 + 4940: 8d + 4941: 5e + 4942: 8b + 4943: 15 + 4944: 6a + 4945: f5 + 4946: 93 + 4947: 7b + 4948: e7 + 4949: a7 + 4950: d6 + 4951: d6 + 4952: ba + 4953: aa + 4954: e5 + 4955: e5 + 4956: ea + 4957: cb + 4958: 7c + 4959: af + 4960: 53 + 4961: 3d + 4962: 63 + 4963: d0 + 4964: c5 + 4965: fe + 4966: ac + 4967: 82 + 4968: 04 + 4969: 63 + 4970: 88 + 4971: e7 + 4972: 7b + 4973: a6 + 4974: 0c + 4975: e9 + 4976: 27 + 4977: fd + 4978: c2 + 4979: d2 + 4980: ce + 4981: 27 + 4982: 26 + 4983: 48 + 4984: 0f + 4985: f0 + 4986: 77 + 4987: cf + 4988: 00 + 4989: 00 + 4990: 01 + 4991: 00 + 4992: d0 + 4993: af + 4994: 79 + 4995: c8 + 4996: 64 + 4997: 89 + 4998: c3 + 4999: 9b + 5000: 0a + 5001: cc + 5002: 3c + 5003: 49 + 5004: 63 + 5005: 7a + 5006: bc + 5007: 75 + 5008: 3e + 5009: 0a + 5010: 23 + 5011: 03 + 5012: 5e + 5013: 2e + 5014: f2 + 5015: ca + 5016: 14 + 5017: 28 + 5018: fc + 5019: eb + 5020: 23 + 5021: 2d + 5022: 75 + 5023: 12 + 5024: 9b + 5025: e2 + 5026: d5 + 5027: 26 + 5028: 00 + 5029: 9f + 5030: 20 + 5031: 20 + 5032: 51 + 5033: 51 + 5034: 39 + 5035: 39 + 5036: e6 + 5037: e6 + 5038: 58 + 5039: 9b + 5040: ea + 5041: 7a + 5042: 4b + 5043: dc + 5044: a2 + 5045: a0 + 5046: 26 + 5047: b8 + 5048: b1 + 5049: 20 + 5050: 48 + 5051: d4 + 5052: 46 + 5053: cf + 5054: 34 + 5055: b3 + 5056: 4e + 5057: 68 + 5058: 7c + 5059: 69 + 5060: 67 + 5061: d4 + 5062: 66 + 5063: 90 + 5064: e0 + 5065: f4 + 5066: 1e + 5067: 0d + 5068: 68 + 5069: 21 + 5070: a4 + 5071: 79 + 5072: 06 + 5073: d9 + 5074: 10 + 5075: 0c + 5076: 64 + 5077: 12 + 5078: 1c + 5079: bb + 5080: 54 + 5081: 10 + 5082: ce + 5083: 8d + 5084: c9 + 5085: dc + 5086: a9 + 5087: c7 + 5088: c4 + 5089: 69 + 5090: 6f + 5091: 2d + 5092: 4e + 5093: 8f + 5094: 40 + 5095: 92 + 5096: 12 + 5097: a8 + 5098: 30 + 5099: a3 + 5100: 2c + 5101: ea + 5102: ef + 5103: d9 + 5104: 14 + 5105: 97 + 5106: 07 + 5107: 68 + 5108: 6b + 5109: c4 + 5110: d1 + 5111: fa + 5112: 05 + 5113: a1 + 5114: 21 + 5115: 54 + 5116: 4a + 5117: c5 + 5118: 4c + 5119: 09 + 5120: da + 5121: 8a + 5122: 6c + 5123: 1a + 5124: ab + 5125: c0 + 5126: b7 + 5127: e3 + 5128: 31 + 5129: cc + 5130: 64 + 5131: 17 + 5132: d0 + 5133: 9b + 5134: 8d + 5135: b5 + 5136: e0 + 5137: c1 + 5138: 0a + 5139: 2e + 5140: a5 + 5141: a5 + 5142: f5 + 5143: ea + 5144: f4 + 5145: ee + 5146: bd + 5147: 63 + 5148: ca + 5149: 69 + 5150: 59 + 5151: e5 + 5152: 00 + 5153: 34 + 5154: 69 + 5155: f5 + 5156: 7d + 5157: 0c + 5158: 4b + 5159: 34 + 5160: d3 + 5161: 09 + 5162: 30 + 5163: 75 + 5164: c7 + 5165: 88 + 5166: 56 + 5167: 26 + 5168: 32 + 5169: e0 + 5170: e5 + 5171: 34 + 5172: 74 + 5173: b9 + 5174: b4 + 5175: 0f + 5176: 2a + 5177: 08 + 5178: 2a + 5179: a4 + 5180: ed + 5181: 78 + 5182: 16 + 5183: 58 + 5184: 34 + 5185: f3 + 5186: 46 + 5187: 8f + 5188: 0b + 5189: 83 + 5190: 07 + 5191: 8f + 5192: 85 + 5193: 7b + 5194: 02 + 5195: 81 + 5196: dc + 5197: cc + 5198: 83 + 5199: 17 + 5200: 43 + 5201: ba + 5202: 21 + 5203: d1 + 5204: 33 + 5205: dd + 5206: 9e + 5207: e9 + 5208: a0 + 5209: ab + 5210: cd + 5211: 93 + 5212: 83 + 5213: ff + 5214: 97 + 5215: 7a + 5216: b5 + 5217: f9 + 5218: 2b + 5219: 72 + 5220: 34 + 5221: fa + 5222: eb + 5223: 40 + 5224: 1d + 5225: 18 + 5226: 53 + 5227: 0b + 5228: d6 + 5229: 85 + 5230: e6 + 5231: 84 + 5232: d7 + 5233: a0 + 5234: 81 + 5235: 6e + 5236: cc + 5237: a9 + 5238: 14 + 5239: 48 + 5240: 6c + 5241: bd + 5242: 4c + 5243: 10 + 5244: af + 5245: 4c + 5246: 3b + 5247: 10 + 5248: 0b + 5249: 87 + 5250: e9 + 5251: 43 + 5252: 89 + 5253: dd + 5254: 06 + 5255: b2 + 5256: c6 + 5257: b6 + 5258: b8 + 5259: 00 + 5260: 67 + 5261: d9 + 5262: 0d + 5263: 5d + 5264: cc + 5265: 71 + 5266: e4 + 5267: f1 + 5268: 17 + 5269: 75 + 5270: a0 + 5271: 35 + 5272: f2 + 5273: de + 5274: df + 5275: 2d + 5276: 55 + 5277: 88 + 5278: a1 + 5279: 98 + 5280: b8 + 5281: ea + 5282: 6f + 5283: e3 + 5284: 75 + 5285: 74 + 5286: 7a + 5287: f0 + 5288: a6 + 5289: 69 + 5290: a6 + 5291: a1 + 5292: a1 + 5293: ce + 5294: ce + 5295: 46 + 5296: fd + 5297: c0 + 5298: e8 + 5299: 76 + 5300: 22 + 5301: 9e + 5302: a4 + 5303: 2f + 5304: 10 + 5305: 65 + 5306: c2 + 5307: cd + 5308: 25 + 5309: 2a + 5310: 53 + 5311: bc + 5312: 8a + 5313: ed + 5314: 43 + 5315: 66 + 5316: 83 + 5317: b3 + 5318: f1 + 5319: 94 + 5320: f6 + 5321: 5b + 5322: 11 + 5323: f2 + 5324: eb + 5325: 62 + 5326: 8f + 5327: 33 + 5328: 69 + 5329: 7d + 5330: 27 + 5331: ca + 5332: ca + 5333: 9f + 5334: 94 + 5335: 34 + 5336: b2 + 5337: 84 + 5338: bc + 5339: a1 + 5340: c4 + 5341: 94 + 5342: 9d + 5343: 76 + 5344: 89 + 5345: b0 + 5346: 3c + 5347: 20 + 5348: 08 + 5349: 08 + 5350: f9 + 5351: 8f + 5352: 3b + 5353: 70 + 5354: c9 + 5355: 5d + 5356: 07 + 5357: 96 + 5358: 7d + 5359: 94 + 5360: b9 + 5361: 74 + 5362: 5b + 5363: 02 + 5364: 6a + 5365: aa + 5366: 9e + 5367: 47 + 5368: 3b + 5369: dd + 5370: c0 + 5371: a4 + 5372: 3a + 5373: a6 + 5374: be + 5375: d8 + 5376: f6 + 5377: 18 + 5378: 30 + 5379: 30 + 5380: b9 + 5381: b9 + 5382: 58 + 5383: 58 + 5384: c7 + 5385: c7 + 5386: 0c + 5387: 36 + 5388: e3 + 5389: 91 + 5390: c3 + 5391: 2e + 5392: 2e + 5393: e8 + 5394: e8 + 5395: fb + 5396: fb + 5397: 53 + 5398: 53 + 5399: ba + 5400: ba + 5401: de + 5402: df + 5403: 25 + 5404: 27 + 5405: 2a + 5406: 4a + 5407: 97 + 5408: e1 + 5409: 2a + 5410: e5 + 5411: 67 + 5412: 79 + 5413: 9d + 5414: 74 + 5415: a1 + 5416: 65 + 5417: 68 + 5418: 06 + 5419: d4 + 5420: af + 5421: 2c + 5422: 3b + 5423: de + 5424: 17 + 5425: 6e + 5426: 8b + 5427: 15 + 5428: 75 + 5429: 21 + 5430: 6c + 5431: 84 + 5432: 4c + 5433: 4c + 5434: 29 + 5435: 29 + 5436: 97 + 5437: 97 + 5438: e5 + 5439: e5 + 5440: 68 + 5441: 31 + 5442: 83 + 5443: 50 + 5444: 3e + 5445: c6 + 5446: 9c + 5447: 2f + 5448: 32 + 5449: 2b + 5450: 53 + 5451: 7d + 5452: 3c + 5453: 75 + 5454: 88 + 5455: e7 + 5456: 82 + 5457: a8 + 5458: 0c + 5459: e9 + 5460: d9 + 5461: e8 + 5462: c2 + 5463: d2 + 5464: 37 + 5465: dc + 5466: d9 + 5467: b7 + 5468: 0f + 5469: f0 + 5470: 77 + 5471: cf + 5472: 00 + 5473: 00 + 5474: 00 + 5475: 00 + 5476: 00 + 5477: 00 + 5478: 00 + 5479: 00 + 5480: 00 + 5481: 00 + 5482: 00 + 5483: 00 + 5484: 00 + 5485: 00 + 5486: 00 + 5487: 00 + 5488: 00 + 5489: 00 + 5490: 00 + 5491: 00 + 5492: 00 + 5493: 00 + 5494: 00 + 5495: 00 + 5496: 00 + 5497: 00 + 5498: 00 + 5499: 00 + 5500: 00 + 5501: 00 + 5502: 00 + 5503: 00 + 5504: 00 + 5505: 00 + 5506: 00 + 5507: 00 + 5508: 00 + 5509: 00 + 5510: 00 + 5511: 00 + 5512: 00 + 5513: 00 + 5514: 00 + 5515: 00 + 5516: 00 + 5517: 00 + 5518: 00 + 5519: 00 + 5520: 00 + 5521: 00 + 5522: 00 + 5523: 00 + 5524: 00 + 5525: 00 + 5526: 00 + 5527: 00 + 5528: 00 + 5529: 00 + 5530: 00 + 5531: 00 + 5532: 00 + 5533: 00 + 5534: 00 + 5535: 00 + 5536: 00 + 5537: 00 + 5538: 00 + 5539: 00 + 5540: 00 + 5541: 00 + 5542: 00 + 5543: 00 + 5544: 00 + 5545: 00 + 5546: 00 + 5547: 00 + 5548: 00 + 5549: 00 + 5550: 00 + 5551: 00 + 5552: 00 + 5553: 00 + 5554: 00 + 5555: 00 + 5556: 00 + 5557: 00 + 5558: 00 + 5559: 00 + 5560: 00 + 5561: 00 + 5562: 00 + 5563: 00 + 5564: 00 + 5565: 00 + 5566: 00 + 5567: 00 + 5568: 00 + 5569: 00 + 5570: 00 + 5571: 00 + 5572: 00 + 5573: 00 + 5574: 00 + 5575: 00 + 5576: 00 + 5577: 00 + 5578: 00 + 5579: 00 + 5580: 00 + 5581: 00 + 5582: 00 + 5583: 00 + 5584: 00 + 5585: 00 + 5586: 00 + 5587: 00 + 5588: 00 + 5589: 00 + 5590: 00 + 5591: 00 + 5592: 00 + 5593: 00 + 5594: 00 + 5595: 00 + 5596: 00 + 5597: 00 + 5598: 00 + 5599: 00 + 5600: 00 + 5601: 00 + 5602: 00 + 5603: 00 + 5604: 00 + 5605: 00 + 5606: 00 + 5607: 00 + 5608: 00 + 5609: 00 + 5610: 00 + 5611: 00 + 5612: 00 + 5613: 00 + 5614: 00 + 5615: 00 + 5616: 00 + 5617: 00 + 5618: 00 + 5619: 00 + 5620: 00 + 5621: 00 + 5622: 00 + 5623: 00 + 5624: 00 + 5625: 00 + 5626: 00 + 5627: 00 + 5628: 00 + 5629: 00 + 5630: 00 + 5631: 00 + 5632: 00 + 5633: 00 + 5634: 00 + 5635: 00 + 5636: 00 + 5637: 00 + 5638: 00 + 5639: 00 + 5640: 00 + 5641: 00 + 5642: 00 + 5643: 00 + 5644: 00 + 5645: 00 + 5646: 00 + 5647: 00 + 5648: 00 + 5649: 00 + 5650: 00 + 5651: 00 + 5652: 00 + 5653: 00 + 5654: 00 + 5655: 00 + 5656: 00 + 5657: 00 + 5658: 00 + 5659: 00 + 5660: 00 + 5661: 00 + 5662: 00 + 5663: 00 + 5664: 00 + 5665: 00 + 5666: 00 + 5667: 00 + 5668: 00 + 5669: 00 + 5670: 00 + 5671: 00 + 5672: 00 + 5673: 00 + 5674: 00 + 5675: 00 + 5676: 00 + 5677: 00 + 5678: 00 + 5679: 00 + 5680: 00 + 5681: 00 + 5682: 00 + 5683: 00 + 5684: 00 + 5685: 00 + 5686: 00 + 5687: 00 + 5688: 00 + 5689: 00 + 5690: 00 + 5691: 00 + 5692: 00 + 5693: 00 + 5694: 00 + 5695: 00 + 5696: 00 + 5697: 00 + 5698: 00 + 5699: 00 + 5700: 00 + 5701: 00 + 5702: 00 + 5703: 00 + 5704: 00 + 5705: 00 + 5706: 00 + 5707: 00 + 5708: 00 + 5709: 00 + 5710: 00 + 5711: 00 + 5712: 00 + 5713: 00 + 5714: 00 + 5715: 00 + 5716: 00 + 5717: 00 + 5718: 00 + 5719: 00 + 5720: 00 + 5721: 00 + 5722: 00 + 5723: 00 + 5724: 00 + 5725: 00 + 5726: 00 + 5727: 00 + 5728: 00 + 5729: 00 + 5730: 00 + 5731: 00 + 5732: 00 + 5733: 00 + 5734: 02 + 5735: 00 + 5736: 00 + 5737: 00 + 5738: 00 + 5739: 00 + 5740: 1e + 5741: 00 + 5742: 23 + 5743: 00 + 5744: 01 + 5745: 00 + 5746: e7 + 5747: ff + 5748: 0f + 5749: 00 + 5750: 00 + 5751: 00 + 5752: 02 + 5753: 00 + 5754: 05 + 5755: 00 + 5756: 64 + 5757: 00 + 5758: 64 + 5759: 00 + 5760: 03 + 5761: 00 + 5762: fd + 5763: ff + 5764: fe + 5765: ff + 5766: fd + 5767: ff + 5768: 00 + 5769: 00 + 5770: 14 + 5771: 00 + 5772: 14 + 5773: 00 + 5774: 3c + 5775: 00 + 5776: 01 + 5777: 00 + 5778: 0a + 5779: 00 + 5780: 00 + 5781: 00 + 5782: 00 + 5783: 00 + 5784: 02 + 5785: 00 + 5786: 23 + 5787: 00 + 5788: 28 + 5789: 00 + 5790: 64 + 5791: 00 + 5792: 03 + 5793: 00 + 5794: 02 + 5795: 00 + 5796: 00 + 5797: 00 + 5798: fd + 5799: ff + 5800: 00 + 5801: 00 + 5802: 00 + 5803: 00 + 5804: 00 + 5805: 00 + 5806: 00 + 5807: 00 + 5808: 00 + 5809: 00 + 5810: 00 + 5811: 00 + 5812: 00 + 5813: 00 + 5814: 00 + 5815: 00 + 5816: 00 + 5817: 00 + 5818: 00 + 5819: 00 + 5820: 00 + 5821: 00 + 5822: 00 + 5823: 00 + 5824: 00 + 5825: 00 + 5826: 00 + 5827: 00 + 5828: 00 + 5829: 00 + 5830: 00 + 5831: 00 + 5832: 00 + 5833: 00 + 5834: 00 + 5835: 00 + 5836: 00 + 5837: 00 + 5838: 00 + 5839: 00 + 5840: 00 + 5841: 00 + 5842: 00 + 5843: 00 + 5844: 00 + 5845: 00 + 5846: 00 + 5847: 00 + 5848: 00 + 5849: 00 + 5850: 00 + 5851: 00 + 5852: 00 + 5853: 00 + 5854: 00 + 5855: 00 + 5856: 00 + 5857: 00 + 5858: 00 + 5859: 00 + 5860: 00 + 5861: 00 + 5862: 00 + 5863: 00 + 5864: 00 + 5865: 00 + 5866: 00 + 5867: 00 + 5868: 00 + 5869: 00 + 5870: 00 + 5871: 00 + 5872: 00 + 5873: 00 + 5874: 00 + 5875: 00 + 5876: 00 + 5877: 00 + 5878: 00 + 5879: 00 + 5880: 00 + 5881: 00 + 5882: 00 + 5883: 00 + 5884: 00 + 5885: 00 + 5886: 00 + 5887: 00 + 5888: 00 + 5889: 00 + 5890: 00 + 5891: 00 + 5892: 00 + 5893: 00 + 5894: 00 + 5895: 00 + 5896: 00 + 5897: 00 + 5898: 00 + 5899: 00 + 5900: 00 + 5901: 00 + 5902: 00 + 5903: 00 + 5904: 00 + 5905: 00 + 5906: 00 + 5907: 00 + 5908: 00 + 5909: 00 + 5910: 00 + 5911: 00 + 5912: 00 + 5913: 00 + 5914: 00 + 5915: 00 + 5916: 00 + 5917: 00 + 5918: 00 + 5919: 00 + 5920: 00 + 5921: 00 + 5922: 00 + 5923: 00 + 5924: 00 + 5925: 00 + 5926: 00 + 5927: 00 + 5928: 00 + 5929: 00 + 5930: 00 + 5931: 00 + 5932: 00 + 5933: 00 + 5934: 00 + 5935: 00 + 5936: 00 + 5937: 00 + 5938: 00 + 5939: 00 + 5940: 00 + 5941: 00 + 5942: 00 + 5943: 00 + 5944: 00 + 5945: 00 + 5946: 00 + 5947: 00 + 5948: 00 + 5949: 00 + 5950: 00 + 5951: 00 + 5952: 00 + 5953: 00 + 5954: 00 + 5955: 00 + 5956: 00 + 5957: 00 + 5958: 00 + 5959: 00 + 5960: 00 + 5961: 00 + 5962: 00 + 5963: 00 + 5964: 00 + 5965: 00 + 5966: 00 + 5967: 00 + 5968: 00 + 5969: 00 + 5970: 00 + 5971: 00 + 5972: 00 + 5973: 00 + 5974: 00 + 5975: 00 + 5976: 00 + 5977: 00 + 5978: 00 + 5979: 00 + 5980: 00 + 5981: 00 + 5982: 00 + 5983: 00 + 5984: 00 + 5985: 00 + 5986: 00 + 5987: 00 + 5988: 00 + 5989: 00 + 5990: 00 + 5991: 00 + 5992: d8 + 5993: 05 + 5994: 00 + 5995: 00 + 5996: 85 + 5997: 00 + 5998: 00 + 5999: 00 + 6000: 01 + 6001: 00 + 6002: 01 + 6003: 00 + 6004: a3 + 6005: e8 + 6006: 79 + 6007: c8 + 6008: e6 + 6009: 7a + 6010: 3c + 6011: 64 + 6012: 06 + 6013: 09 + 6014: c3 + 6015: b6 + 6016: 2a + 6017: f4 + 6018: 43 + 6019: 8a + 6020: 4a + 6021: 45 + 6022: 23 + 6023: 03 + 6024: ae + 6025: 61 + 6026: f2 + 6027: ca + 6028: ce + 6029: 84 + 6030: 03 + 6031: 14 + 6032: 16 + 6033: 20 + 6034: 75 + 6035: 12 + 6036: a6 + 6037: fa + 6038: d5 + 6039: 26 + 6040: a3 + 6041: 94 + 6042: 20 + 6043: 20 + 6044: 7e + 6045: 6a + 6046: 39 + 6047: 39 + 6048: c8 + 6049: fa + 6050: 58 + 6051: 9b + 6052: a4 + 6053: 75 + 6054: 4b + 6055: dc + 6056: 6b + 6057: af + 6058: 26 + 6059: b8 + 6060: 89 + 6061: 01 + 6062: 48 + 6063: d4 + 6064: d2 + 6065: 27 + 6066: cb + 6067: 4c + 6068: f0 + 6069: 89 + 6070: 83 + 6071: 96 + 6072: cc + 6073: 14 + 6074: 99 + 6075: 6f + 6076: 4a + 6077: 25 + 6078: e1 + 6079: f2 + 6080: 68 + 6081: 21 + 6082: a4 + 6083: 79 + 6084: 30 + 6085: 38 + 6086: ef + 6087: f3 + 6088: 71 + 6089: 14 + 6090: 1c + 6091: bb + 6092: e0 + 6093: 08 + 6094: ce + 6095: 8d + 6096: 73 + 6097: fb + 6098: a9 + 6099: c7 + 6100: fd + 6101: 69 + 6102: 6f + 6103: 2d + 6104: 10 + 6105: 89 + 6106: 40 + 6107: 92 + 6108: 92 + 6109: 51 + 6110: cf + 6111: 5c + 6112: 0b + 6113: 02 + 6114: 10 + 6115: 26 + 6116: 04 + 6117: 67 + 6118: f8 + 6119: 97 + 6120: eb + 6121: 2c + 6122: 2e + 6123: 05 + 6124: 6f + 6125: 52 + 6126: de + 6127: ab + 6128: 77 + 6129: de + 6130: 4c + 6131: 09 + 6132: f3 + 6133: 83 + 6134: 6c + 6135: 1a + 6136: ef + 6137: e8 + 6138: b7 + 6139: e3 + 6140: fd + 6141: 12 + 6142: 9b + 6143: e8 + 6144: 88 + 6145: 9f + 6146: 8d + 6147: b5 + 6148: 1c + 6149: 38 + 6150: f5 + 6151: d1 + 6152: 9c + 6153: 4f + 6154: 0a + 6155: 15 + 6156: ff + 6157: fe + 6158: bd + 6159: 63 + 6160: ca + 6161: 69 + 6162: 59 + 6163: e5 + 6164: a2 + 6165: c2 + 6166: 96 + 6167: 0a + 6168: 4a + 6169: d0 + 6170: b4 + 6171: cb + 6172: fb + 6173: 24 + 6174: 30 + 6175: 75 + 6176: bf + 6177: a2 + 6178: 56 + 6179: 26 + 6180: f0 + 6181: e3 + 6182: e5 + 6183: 34 + 6184: 5e + 6185: 9d + 6186: b4 + 6187: 0f + 6188: b0 + 6189: 2c + 6190: 2a + 6191: a4 + 6192: 20 + 6193: a5 + 6194: e9 + 6195: a7 + 6196: 04 + 6197: 58 + 6198: b9 + 6199: 70 + 6200: 23 + 6201: 50 + 6202: f8 + 6203: 70 + 6204: 51 + 6205: 63 + 6206: 02 + 6207: 81 + 6208: 7b + 6209: 25 + 6210: 7c + 6211: e8 + 6212: 15 + 6213: 5a + 6214: de + 6215: 2e + 6216: 33 + 6217: d6 + 6218: 9e + 6219: e9 + 6220: 34 + 6221: 89 + 6222: cd + 6223: 93 + 6224: d8 + 6225: 39 + 6226: 68 + 6227: 85 + 6228: 0f + 6229: ee + 6230: 2b + 6231: 72 + 6232: bd + 6233: 0d + 6234: 14 + 6235: bf + 6236: c7 + 6237: 5e + 6238: 53 + 6239: 0b + 6240: d6 + 6241: 85 + 6242: e6 + 6243: 84 + 6244: d4 + 6245: b4 + 6246: 81 + 6247: 6e + 6248: 79 + 6249: 89 + 6250: 14 + 6251: 48 + 6252: 28 + 6253: 76 + 6254: b3 + 6255: ef + 6256: fe + 6257: 31 + 6258: c4 + 6259: ef + 6260: 29 + 6261: af + 6262: e9 + 6263: 43 + 6264: e8 + 6265: cf + 6266: 06 + 6267: b2 + 6268: 83 + 6269: b1 + 6270: b8 + 6271: 00 + 6272: 15 + 6273: d0 + 6274: 0d + 6275: 5d + 6276: bf + 6277: 46 + 6278: e4 + 6279: f1 + 6280: ee + 6281: 4b + 6282: a0 + 6283: 35 + 6284: 13 + 6285: d4 + 6286: df + 6287: 2d + 6288: 53 + 6289: d8 + 6290: a1 + 6291: 98 + 6292: d5 + 6293: 16 + 6294: 90 + 6295: 1c + 6296: 9c + 6297: af + 6298: 85 + 6299: 0f + 6300: bc + 6301: 9f + 6302: 59 + 6303: 5e + 6304: eb + 6305: 12 + 6306: 31 + 6307: b9 + 6308: ea + 6309: d7 + 6310: e8 + 6311: 76 + 6312: 68 + 6313: 32 + 6314: 5b + 6315: d0 + 6316: 01 + 6317: 9d + 6318: 3d + 6319: 32 + 6320: 25 + 6321: 2a + 6322: 53 + 6323: bc + 6324: 4d + 6325: 22 + 6326: bc + 6327: 99 + 6328: 4f + 6329: bb + 6330: f1 + 6331: 94 + 6332: 93 + 6333: 7c + 6334: 11 + 6335: f2 + 6336: b4 + 6337: 5a + 6338: 8f + 6339: 33 + 6340: b5 + 6341: 79 + 6342: 27 + 6343: ca + 6344: 90 + 6345: b1 + 6346: 94 + 6347: 34 + 6348: 8a + 6349: 7f + 6350: 43 + 6351: 5e + 6352: f8 + 6353: 4a + 6354: 62 + 6355: 89 + 6356: 7f + 6357: 0a + 6358: c3 + 6359: df + 6360: 87 + 6361: e1 + 6362: 06 + 6363: 70 + 6364: 6f + 6365: 71 + 6366: c9 + 6367: 5d + 6368: 29 + 6369: 63 + 6370: 82 + 6371: 6b + 6372: a2 + 6373: 91 + 6374: a4 + 6375: fd + 6376: 5c + 6377: a2 + 6378: 9e + 6379: 47 + 6380: e7 + 6381: dd + 6382: c0 + 6383: a4 + 6384: ef + 6385: b0 + 6386: be + 6387: d8 + 6388: d3 + 6389: 0d + 6390: 30 + 6391: 30 + 6392: 85 + 6393: 06 + 6394: a7 + 6395: a7 + 6396: 4a + 6397: 81 + 6398: 0c + 6399: 36 + 6400: e3 + 6401: 91 + 6402: c3 + 6403: 2e + 6404: ab + 6405: ee + 6406: e8 + 6407: fb + 6408: bf + 6409: ad + 6410: ac + 6411: 45 + 6412: 8c + 6413: 25 + 6414: de + 6415: 25 + 6416: 5d + 6417: 3e + 6418: 4a + 6419: 97 + 6420: b3 + 6421: c3 + 6422: 1a + 6423: 98 + 6424: db + 6425: b9 + 6426: 74 + 6427: a1 + 6428: 11 + 6429: 94 + 6430: f9 + 6431: 2b + 6432: e6 + 6433: c9 + 6434: c4 + 6435: 21 + 6436: c1 + 6437: 95 + 6438: 74 + 6439: ea + 6440: be + 6441: f7 + 6442: 93 + 6443: 7b + 6444: 3b + 6445: 00 + 6446: 29 + 6447: 29 + 6448: 5f + 6449: 49 + 6450: 1a + 6451: 1a + 6452: 85 + 6453: d2 + 6454: 7c + 6455: af + 6456: 66 + 6457: c1 + 6458: 9c + 6459: 2f + 6460: 06 + 6461: 21 + 6462: 53 + 6463: 7d + 6464: f7 + 6465: 83 + 6466: 77 + 6467: 18 + 6468: 4a + 6469: 71 + 6470: f3 + 6471: 16 + 6472: 54 + 6473: 13 + 6474: 3d + 6475: 2d + 6476: 5f + 6477: e0 + 6478: d9 + 6479: b7 + 6480: 0f + 6481: f0 + 6482: 77 + 6483: cf + 6484: 01 + 6485: 00 + 6486: 01 + 6487: 00 + 6488: d0 + 6489: af + 6490: 79 + 6491: c8 + 6492: 64 + 6493: 89 + 6494: c3 + 6495: 9b + 6496: 0a + 6497: cc + 6498: 3c + 6499: 49 + 6500: 63 + 6501: 7a + 6502: bc + 6503: 75 + 6504: 3e + 6505: 0a + 6506: 23 + 6507: 03 + 6508: 5e + 6509: 2e + 6510: f2 + 6511: ca + 6512: 14 + 6513: 28 + 6514: fc + 6515: eb + 6516: 23 + 6517: 2d + 6518: 75 + 6519: 12 + 6520: 9b + 6521: e2 + 6522: d5 + 6523: 26 + 6524: 00 + 6525: 9f + 6526: 20 + 6527: 20 + 6528: 51 + 6529: 51 + 6530: 39 + 6531: 39 + 6532: e6 + 6533: e6 + 6534: 58 + 6535: 9b + 6536: ea + 6537: 7a + 6538: 4b + 6539: dc + 6540: a2 + 6541: a0 + 6542: 26 + 6543: b8 + 6544: b1 + 6545: 20 + 6546: 48 + 6547: d4 + 6548: 46 + 6549: cf + 6550: 34 + 6551: b3 + 6552: 4e + 6553: 68 + 6554: 7c + 6555: 69 + 6556: 67 + 6557: d4 + 6558: 66 + 6559: 90 + 6560: e0 + 6561: f4 + 6562: 1e + 6563: 0d + 6564: 68 + 6565: 21 + 6566: a4 + 6567: 79 + 6568: 06 + 6569: d9 + 6570: 10 + 6571: 0c + 6572: 64 + 6573: 12 + 6574: 1c + 6575: bb + 6576: 54 + 6577: 10 + 6578: ce + 6579: 8d + 6580: c9 + 6581: dc + 6582: a9 + 6583: c7 + 6584: c4 + 6585: 69 + 6586: 6f + 6587: 2d + 6588: 4e + 6589: 8f + 6590: 40 + 6591: 92 + 6592: 12 + 6593: a8 + 6594: 30 + 6595: a3 + 6596: 2c + 6597: ea + 6598: ef + 6599: d9 + 6600: 14 + 6601: 97 + 6602: 07 + 6603: 68 + 6604: 6b + 6605: c4 + 6606: d1 + 6607: fa + 6608: 05 + 6609: a1 + 6610: 21 + 6611: 54 + 6612: 4a + 6613: c5 + 6614: 4c + 6615: 09 + 6616: da + 6617: 8a + 6618: 6c + 6619: 1a + 6620: ab + 6621: c0 + 6622: b7 + 6623: e3 + 6624: 31 + 6625: cc + 6626: 64 + 6627: 17 + 6628: d0 + 6629: 9b + 6630: 8d + 6631: b5 + 6632: e0 + 6633: c1 + 6634: 0a + 6635: 2e + 6636: a5 + 6637: a5 + 6638: f5 + 6639: ea + 6640: f4 + 6641: ee + 6642: bd + 6643: 63 + 6644: ca + 6645: 69 + 6646: 59 + 6647: e5 + 6648: 00 + 6649: 34 + 6650: 69 + 6651: f5 + 6652: 7d + 6653: 0c + 6654: 4b + 6655: 34 + 6656: d3 + 6657: 09 + 6658: 30 + 6659: 75 + 6660: c7 + 6661: 88 + 6662: 56 + 6663: 26 + 6664: 32 + 6665: e0 + 6666: e5 + 6667: 34 + 6668: 74 + 6669: b9 + 6670: b4 + 6671: 0f + 6672: 2a + 6673: 08 + 6674: 2a + 6675: a4 + 6676: ed + 6677: 78 + 6678: 16 + 6679: 58 + 6680: 34 + 6681: f3 + 6682: 46 + 6683: 8f + 6684: 0b + 6685: 83 + 6686: 07 + 6687: 8f + 6688: 85 + 6689: 7b + 6690: 02 + 6691: 81 + 6692: dc + 6693: cc + 6694: 83 + 6695: 17 + 6696: 43 + 6697: ba + 6698: 21 + 6699: d1 + 6700: 33 + 6701: dd + 6702: 9e + 6703: e9 + 6704: a0 + 6705: ab + 6706: cd + 6707: 93 + 6708: 83 + 6709: ff + 6710: 97 + 6711: 7a + 6712: b5 + 6713: f9 + 6714: 2b + 6715: 72 + 6716: 34 + 6717: fa + 6718: eb + 6719: 40 + 6720: 1d + 6721: 18 + 6722: 53 + 6723: 0b + 6724: d6 + 6725: 85 + 6726: e6 + 6727: 84 + 6728: d7 + 6729: a0 + 6730: 81 + 6731: 6e + 6732: cc + 6733: a9 + 6734: 14 + 6735: 48 + 6736: 6c + 6737: bd + 6738: 4c + 6739: 10 + 6740: af + 6741: 4c + 6742: 3b + 6743: 10 + 6744: 0b + 6745: 87 + 6746: e9 + 6747: 43 + 6748: 89 + 6749: dd + 6750: 06 + 6751: b2 + 6752: c6 + 6753: b6 + 6754: b8 + 6755: 00 + 6756: 67 + 6757: d9 + 6758: 0d + 6759: 5d + 6760: cc + 6761: 71 + 6762: e4 + 6763: f1 + 6764: 17 + 6765: 75 + 6766: a0 + 6767: 35 + 6768: f2 + 6769: de + 6770: df + 6771: 2d + 6772: 55 + 6773: 88 + 6774: a1 + 6775: 98 + 6776: b8 + 6777: ea + 6778: 6f + 6779: e3 + 6780: 75 + 6781: 74 + 6782: 7a + 6783: f0 + 6784: a6 + 6785: 69 + 6786: a6 + 6787: a1 + 6788: a1 + 6789: ce + 6790: ce + 6791: 46 + 6792: fd + 6793: c0 + 6794: e8 + 6795: 76 + 6796: 22 + 6797: 9e + 6798: a4 + 6799: 2f + 6800: 10 + 6801: 65 + 6802: c2 + 6803: cd + 6804: 25 + 6805: 2a + 6806: 53 + 6807: bc + 6808: 8a + 6809: ed + 6810: 43 + 6811: 66 + 6812: 83 + 6813: b3 + 6814: f1 + 6815: 94 + 6816: f6 + 6817: 5b + 6818: 11 + 6819: f2 + 6820: eb + 6821: 62 + 6822: 8f + 6823: 33 + 6824: 69 + 6825: 7d + 6826: 27 + 6827: ca + 6828: ca + 6829: 9f + 6830: 94 + 6831: 34 + 6832: b2 + 6833: 84 + 6834: bc + 6835: a1 + 6836: c4 + 6837: 94 + 6838: 9d + 6839: 76 + 6840: 89 + 6841: b0 + 6842: 3c + 6843: 20 + 6844: 08 + 6845: 08 + 6846: f9 + 6847: 8f + 6848: 3b + 6849: 70 + 6850: c9 + 6851: 5d + 6852: 07 + 6853: 96 + 6854: 7d + 6855: 94 + 6856: b9 + 6857: 74 + 6858: 5b + 6859: 02 + 6860: 6a + 6861: aa + 6862: 9e + 6863: 47 + 6864: 3b + 6865: dd + 6866: c0 + 6867: a4 + 6868: 3a + 6869: a6 + 6870: be + 6871: d8 + 6872: f6 + 6873: 18 + 6874: 30 + 6875: 30 + 6876: b9 + 6877: b9 + 6878: 58 + 6879: 58 + 6880: c7 + 6881: c7 + 6882: 0c + 6883: 36 + 6884: e3 + 6885: 91 + 6886: c3 + 6887: 2e + 6888: 2e + 6889: e8 + 6890: e8 + 6891: fb + 6892: fb + 6893: 53 + 6894: 53 + 6895: ba + 6896: ba + 6897: de + 6898: df + 6899: 25 + 6900: 27 + 6901: 2a + 6902: 4a + 6903: 97 + 6904: e1 + 6905: 2a + 6906: e5 + 6907: 67 + 6908: 79 + 6909: 9d + 6910: 74 + 6911: a1 + 6912: 65 + 6913: 68 + 6914: 06 + 6915: d4 + 6916: af + 6917: 2c + 6918: 3b + 6919: de + 6920: 17 + 6921: 6e + 6922: 8b + 6923: 15 + 6924: 75 + 6925: 21 + 6926: 6c + 6927: 84 + 6928: 4c + 6929: 4c + 6930: 29 + 6931: 29 + 6932: 97 + 6933: 97 + 6934: e5 + 6935: e5 + 6936: 68 + 6937: 31 + 6938: 83 + 6939: 50 + 6940: 3e + 6941: c6 + 6942: 9c + 6943: 2f + 6944: 32 + 6945: 2b + 6946: 53 + 6947: 7d + 6948: 3c + 6949: 75 + 6950: 88 + 6951: e7 + 6952: 82 + 6953: a8 + 6954: 0c + 6955: e9 + 6956: d9 + 6957: e8 + 6958: c2 + 6959: d2 + 6960: 37 + 6961: dc + 6962: d9 + 6963: b7 + 6964: 0f + 6965: f0 + 6966: 77 + 6967: cf + 6968: 00 + 6969: 00 + 6970: 01 + 6971: 00 + 6972: 00 + 6973: 00 + 6974: 57 + 6975: 00 + 6976: 08 + 6977: 00 + 6978: 17 + 6979: 00 + 6980: 01 + 6981: 00 + 6982: 39 + 6983: 00 + 6984: 00 + 6985: 00 + 6986: 00 + 6987: 00 + 6988: 02 + 6989: 00 + 6990: 75 + 6991: 00 + 6992: 64 + 6993: 00 + 6994: 28 + 6995: 00 + 6996: 03 + 6997: 00 + 6998: 10 + 6999: 00 + 7000: 09 + 7001: 00 + 7002: 01 + 7003: 00 + 7004: 00 + 7005: 00 + 7006: 00 + 7007: 00 + 7008: 00 + 7009: 00 + 7010: 00 + 7011: 00 + 7012: 00 + 7013: 00 + 7014: 00 + 7015: 00 + 7016: 00 + 7017: 00 + 7018: 00 + 7019: 00 + 7020: 00 + 7021: 00 + 7022: 00 + 7023: 00 + 7024: 00 + 7025: 00 + 7026: 00 + 7027: 00 + 7028: 00 + 7029: 00 + 7030: 00 + 7031: 00 + 7032: 00 + 7033: 00 + 7034: 00 + 7035: 00 + 7036: 00 + 7037: 00 + 7038: 00 + 7039: 00 + 7040: 00 + 7041: 00 + 7042: 00 + 7043: 00 + 7044: 00 + 7045: 00 + 7046: 00 + 7047: 00 + 7048: 00 + 7049: 00 + 7050: 00 + 7051: 00 + 7052: 00 + 7053: 00 + 7054: 00 + 7055: 00 + 7056: 00 + 7057: 00 + 7058: 00 + 7059: 00 + 7060: 00 + 7061: 00 + 7062: 00 + 7063: 00 + 7064: 00 + 7065: 00 + 7066: 00 + 7067: 00 + 7068: 00 + 7069: 00 + 7070: 00 + 7071: 00 + 7072: 00 + 7073: 00 + 7074: 00 + 7075: 00 + 7076: 00 + 7077: 00 + 7078: 00 + 7079: 00 + 7080: 00 + 7081: 00 + 7082: 00 + 7083: 00 + 7084: 00 + 7085: 00 + 7086: 00 + 7087: 00 + 7088: 00 + 7089: 00 + 7090: 00 + 7091: 00 + 7092: 00 + 7093: 00 + 7094: 00 + 7095: 00 + 7096: 00 + 7097: 00 + 7098: 00 + 7099: 00 + 7100: 00 + 7101: 00 + 7102: 00 + 7103: 00 + 7104: 00 + 7105: 00 + 7106: 00 + 7107: 00 + 7108: 00 + 7109: 00 + 7110: 00 + 7111: 00 + 7112: 00 + 7113: 00 + 7114: 00 + 7115: 00 + 7116: 00 + 7117: 00 + 7118: 00 + 7119: 00 + 7120: 00 + 7121: 00 + 7122: 00 + 7123: 00 + 7124: 00 + 7125: 00 + 7126: 00 + 7127: 00 + 7128: 00 + 7129: 00 + 7130: 00 + 7131: 00 + 7132: 00 + 7133: 00 + 7134: 00 + 7135: 00 + 7136: 00 + 7137: 00 + 7138: 00 + 7139: 00 + 7140: 00 + 7141: 00 + 7142: 00 + 7143: 00 + 7144: 00 + 7145: 00 + 7146: 00 + 7147: 00 + 7148: 00 + 7149: 00 + 7150: 00 + 7151: 00 + 7152: 00 + 7153: 00 + 7154: 00 + 7155: 00 + 7156: 00 + 7157: 00 + 7158: 00 + 7159: 00 + 7160: 00 + 7161: 00 + 7162: 00 + 7163: 00 + 7164: 00 + 7165: 00 + 7166: 00 + 7167: 00 + 7168: 00 + 7169: 00 + 7170: 00 + 7171: 00 + 7172: 00 + 7173: 00 + 7174: 00 + 7175: 00 + 7176: 00 + 7177: 00 + 7178: 00 + 7179: 00 + 7180: 00 + 7181: 00 + 7182: 00 + 7183: 00 + 7184: 00 + 7185: 00 + 7186: 00 + 7187: 00 + 7188: 00 + 7189: 00 + 7190: 00 + 7191: 00 + 7192: 00 + 7193: 00 + 7194: 00 + 7195: 00 + 7196: 00 + 7197: 00 + 7198: 00 + 7199: 00 + 7200: 00 + 7201: 00 + 7202: 00 + 7203: 00 + 7204: 00 + 7205: 00 + 7206: 00 + 7207: 00 + 7208: 00 + 7209: 00 + 7210: 00 + 7211: 00 + 7212: 00 + 7213: 00 + 7214: 00 + 7215: 00 + 7216: 00 + 7217: 00 + 7218: 00 + 7219: 00 + 7220: 00 + 7221: 00 + 7222: 00 + 7223: 00 + 7224: 00 + 7225: 00 + 7226: 00 + 7227: 00 + 7228: 00 + 7229: 00 + 7230: 01 + 7231: 00 + 7232: 00 + 7233: 00 + 7234: 10 + 7235: 00 + 7236: 0a + 7237: 00 + 7238: 19 + 7239: 00 + 7240: 01 + 7241: 00 + 7242: f2 + 7243: ff + 7244: 00 + 7245: 00 + 7246: 00 + 7247: 00 + 7248: 02 + 7249: 00 + 7250: 2e + 7251: 00 + 7252: 1e + 7253: 00 + 7254: 28 + 7255: 00 + 7256: 03 + 7257: 00 + 7258: 0b + 7259: 00 + 7260: 00 + 7261: 00 + 7262: fa + 7263: ff + 7264: 00 + 7265: 00 + 7266: 00 + 7267: 00 + 7268: 00 + 7269: 00 + 7270: 00 + 7271: 00 + 7272: 00 + 7273: 00 + 7274: 00 + 7275: 00 + 7276: 00 + 7277: 00 + 7278: 00 + 7279: 00 + 7280: 00 + 7281: 00 + 7282: 00 + 7283: 00 + 7284: 00 + 7285: 00 + 7286: 00 + 7287: 00 + 7288: 00 + 7289: 00 + 7290: 00 + 7291: 00 + 7292: 00 + 7293: 00 + 7294: 00 + 7295: 00 + 7296: 00 + 7297: 00 + 7298: 00 + 7299: 00 + 7300: 00 + 7301: 00 + 7302: 00 + 7303: 00 + 7304: 00 + 7305: 00 + 7306: 00 + 7307: 00 + 7308: 00 + 7309: 00 + 7310: 00 + 7311: 00 + 7312: 00 + 7313: 00 + 7314: 00 + 7315: 00 + 7316: 00 + 7317: 00 + 7318: 00 + 7319: 00 + 7320: 00 + 7321: 00 + 7322: 00 + 7323: 00 + 7324: 00 + 7325: 00 + 7326: 00 + 7327: 00 + 7328: 00 + 7329: 00 + 7330: 00 + 7331: 00 + 7332: 00 + 7333: 00 + 7334: 00 + 7335: 00 + 7336: 00 + 7337: 00 + 7338: 00 + 7339: 00 + 7340: 00 + 7341: 00 + 7342: 00 + 7343: 00 + 7344: 00 + 7345: 00 + 7346: 00 + 7347: 00 + 7348: 00 + 7349: 00 + 7350: 00 + 7351: 00 + 7352: 00 + 7353: 00 + 7354: 00 + 7355: 00 + 7356: 00 + 7357: 00 + 7358: 00 + 7359: 00 + 7360: 00 + 7361: 00 + 7362: 00 + 7363: 00 + 7364: 00 + 7365: 00 + 7366: 00 + 7367: 00 + 7368: 00 + 7369: 00 + 7370: 00 + 7371: 00 + 7372: 00 + 7373: 00 + 7374: 00 + 7375: 00 + 7376: 00 + 7377: 00 + 7378: 00 + 7379: 00 + 7380: 00 + 7381: 00 + 7382: 00 + 7383: 00 + 7384: 00 + 7385: 00 + 7386: 00 + 7387: 00 + 7388: 00 + 7389: 00 + 7390: 00 + 7391: 00 + 7392: 00 + 7393: 00 + 7394: 00 + 7395: 00 + 7396: 00 + 7397: 00 + 7398: 00 + 7399: 00 + 7400: 00 + 7401: 00 + 7402: 00 + 7403: 00 + 7404: 00 + 7405: 00 + 7406: 00 + 7407: 00 + 7408: 00 + 7409: 00 + 7410: 00 + 7411: 00 + 7412: 00 + 7413: 00 + 7414: 00 + 7415: 00 + 7416: 00 + 7417: 00 + 7418: 00 + 7419: 00 + 7420: 00 + 7421: 00 + 7422: 00 + 7423: 00 + 7424: 00 + 7425: 00 + 7426: 00 + 7427: 00 + 7428: 00 + 7429: 00 + 7430: 00 + 7431: 00 + 7432: 00 + 7433: 00 + 7434: 00 + 7435: 00 + 7436: 00 + 7437: 00 + 7438: 00 + 7439: 00 + 7440: 00 + 7441: 00 + 7442: 00 + 7443: 00 + 7444: 00 + 7445: 00 + 7446: 00 + 7447: 00 + 7448: 00 + 7449: 00 + 7450: 00 + 7451: 00 + 7452: 00 + 7453: 00 + 7454: 00 + 7455: 00 + 7456: 00 + 7457: 00 + 7458: 00 + 7459: 00 + 7460: 00 + 7461: 00 + 7462: 00 + 7463: 00 + 7464: 00 + 7465: 00 + 7466: 00 + 7467: 00 + 7468: 00 + 7469: 00 + 7470: 00 + 7471: 00 + 7472: 00 + 7473: 00 + 7474: 00 + 7475: 00 + 7476: 00 + 7477: 00 + 7478: 00 + 7479: 00 + 7480: 00 + 7481: 00 + 7482: 00 + 7483: 00 + 7484: 00 + 7485: 00 + 7486: 00 + 7487: 00 + 7488: 08 + 7489: 00 + 7490: 00 + 7491: 00 + 7492: 86 + 7493: 00 + 7494: 00 + 7495: 00 +event 39: EOS prop d1b1 info record, datasize 12 +event 39: Unknown EOS property d1b1, datasize is 4, using uint32 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 39: currentvalue of d1b1 is 1 +event 40: EOS prop d1b2 info record, datasize 12 +event 40: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 40: currentvalue of d1b2 is 0 +event 41: EOS prop d1b3 info record, datasize 12 +event 41: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 41: currentvalue of d1b3 is 0 +event 42: EOS prop d1b4 info record, datasize 12 +event 42: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 06 + 1: 00 + 2: 00 + 3: 00 +event 42: currentvalue of d1b4 is 6 +event 43: EOS prop d1b6 info record, datasize 12 +event 43: Unknown EOS property d1b6, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 43: currentvalue of d1b6 is 0 +event 44: EOS prop d1ab info record, datasize 12 +event 44: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 44: currentvalue of d1ab is 0 +event 45: EOS prop d1b0 info record, datasize 12 +event 45: Unknown EOS property d1b0, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 45: currentvalue of d1b0 is 0 +event 46: EOS prop d1b5 info record, datasize 56 +event 46: Unknown EOS property d1b5, datasize is 48, using uint32 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 60 + 9: 7d + 10: 7c + 11: 00 + 12: 18 + 13: 99 + 14: 00 + 15: 00 + 16: c0 + 17: 14 + 18: 4b + 19: 00 + 20: ac + 21: 95 + 22: b1 + 23: ff + 24: 50 + 25: 89 + 26: 13 + 27: 00 + 28: e8 + 29: 9c + 30: 0d + 31: 00 + 32: 0a + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 02 + 47: 00 +event 46: currentvalue of d1b5 is 30 +event 47: EOS prop d10a info record, datasize 12 +event 47: Unknown EOS property d10a, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 47: currentvalue of d10a is 0 +event 48: EOS prop d1a8 info record, datasize 12 +event 48: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 48: currentvalue of d1a8 is 1 +event 49: EOS prop d1a1 info record, datasize 16 +event 49: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 50: EOS prop d1af info record, datasize 18 +event 50: Unknown EOS property d1af, datasize is 10 + 0: 37 + 1: 33 + 2: 30 + 3: 32 + 4: 30 + 5: 34 + 6: 33 + 7: 37 + 8: 38 + 9: 00 +event 51: EOS prop d115 info record, datasize 24 +event 51: currentvalue of d115 is 䥑十ⴠ䴠捩慨汥퀀 +event 52: EOS prop d1a2 info record, datasize 204 +event 52: Unknown EOS property d1a2, datasize is 196 + 0: c4 + 1: 00 + 2: 00 + 3: 00 + 4: 06 + 5: 00 + 6: 00 + 7: 00 + 8: 0b + 9: 00 + 10: 00 + 11: 00 + 12: 0c + 13: 00 + 14: 00 + 15: 00 + 16: 08 + 17: 00 + 18: 00 + 19: 00 + 20: 09 + 21: 00 + 22: 00 + 23: 00 + 24: 07 + 25: 00 + 26: 00 + 27: 00 + 28: 0d + 29: 00 + 30: 00 + 31: 00 + 32: 10 + 33: 00 + 34: 00 + 35: 00 + 36: 0f + 37: 00 + 38: 00 + 39: 00 + 40: 02 + 41: 00 + 42: 00 + 43: 00 + 44: 03 + 45: 00 + 46: 00 + 47: 00 + 48: 04 + 49: 00 + 50: 00 + 51: 00 + 52: 0a + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 01 + 59: 00 + 60: 01 + 61: 00 + 62: 01 + 63: 00 + 64: 02 + 65: 00 + 66: 01 + 67: 00 + 68: 03 + 69: 00 + 70: 01 + 71: 00 + 72: 04 + 73: 00 + 74: 01 + 75: 00 + 76: 09 + 77: 00 + 78: 01 + 79: 00 + 80: 0c + 81: 00 + 82: 01 + 83: 00 + 84: 00 + 85: 00 + 86: 02 + 87: 00 + 88: 02 + 89: 00 + 90: 02 + 91: 00 + 92: 04 + 93: 00 + 94: 02 + 95: 00 + 96: 05 + 97: 00 + 98: 02 + 99: 00 + 100: 1c + 101: 00 + 102: 02 + 103: 00 + 104: 19 + 105: 00 + 106: 02 + 107: 00 + 108: 06 + 109: 00 + 110: 02 + 111: 00 + 112: 07 + 113: 00 + 114: 02 + 115: 00 + 116: 08 + 117: 00 + 118: 02 + 119: 00 + 120: 09 + 121: 00 + 122: 02 + 123: 00 + 124: 10 + 125: 00 + 126: 02 + 127: 00 + 128: 0b + 129: 00 + 130: 02 + 131: 00 + 132: 16 + 133: 00 + 134: 02 + 135: 00 + 136: 1a + 137: 00 + 138: 02 + 139: 00 + 140: 1b + 141: 00 + 142: 02 + 143: 00 + 144: 11 + 145: 00 + 146: 02 + 147: 00 + 148: 00 + 149: 00 + 150: 04 + 151: 00 + 152: 0e + 153: 00 + 154: 04 + 155: 00 + 156: 00 + 157: 00 + 158: 05 + 159: 00 + 160: 01 + 161: 00 + 162: 05 + 163: 00 + 164: 09 + 165: 00 + 166: 05 + 167: 00 + 168: 0d + 169: 00 + 170: 06 + 171: 00 + 172: 11 + 173: 00 + 174: 06 + 175: 00 + 176: 0e + 177: 00 + 178: 06 + 179: 00 + 180: 10 + 181: 00 + 182: 07 + 183: 00 + 184: 03 + 185: 00 + 186: 07 + 187: 00 + 188: 11 + 189: 00 + 190: 07 + 191: 00 + 192: 0e + 193: 00 + 194: 07 + 195: 00 +event 53: EOS prop d1a4 info record, datasize 492 +event 53: Unknown EOS property d1a4, datasize is 484 + 0: e4 + 1: 01 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 00 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 00 + 97: 00 + 98: 00 + 99: 00 + 100: 00 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 00 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 00 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 00 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 00 + 209: 00 + 210: 00 + 211: 00 + 212: 00 + 213: 00 + 214: 00 + 215: 00 + 216: 00 + 217: 00 + 218: 00 + 219: 00 + 220: 00 + 221: 00 + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 00 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 00 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: 00 + 273: 00 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: 00 + 281: 00 + 282: 00 + 283: 00 + 284: 00 + 285: 00 + 286: 00 + 287: 00 + 288: 00 + 289: 00 + 290: 00 + 291: 00 + 292: 00 + 293: 00 + 294: 00 + 295: 00 + 296: 00 + 297: 00 + 298: 00 + 299: 00 + 300: 00 + 301: 00 + 302: 00 + 303: 00 + 304: 00 + 305: 00 + 306: 00 + 307: 00 + 308: 00 + 309: 00 + 310: 00 + 311: 00 + 312: 00 + 313: 00 + 314: 00 + 315: 00 + 316: 00 + 317: 00 + 318: 00 + 319: 00 + 320: 00 + 321: 00 + 322: 00 + 323: 00 + 324: 00 + 325: 00 + 326: 00 + 327: 00 + 328: 00 + 329: 00 + 330: 00 + 331: 00 + 332: 00 + 333: 00 + 334: 00 + 335: 00 + 336: 00 + 337: 00 + 338: 00 + 339: 00 + 340: 00 + 341: 00 + 342: 00 + 343: 00 + 344: 00 + 345: 00 + 346: 00 + 347: 00 + 348: 00 + 349: 00 + 350: 00 + 351: 00 + 352: 00 + 353: 00 + 354: 00 + 355: 00 + 356: 00 + 357: 00 + 358: 00 + 359: 00 + 360: 00 + 361: 00 + 362: 00 + 363: 00 + 364: 00 + 365: 00 + 366: 00 + 367: 00 + 368: 00 + 369: 00 + 370: 00 + 371: 00 + 372: 00 + 373: 00 + 374: 00 + 375: 00 + 376: 00 + 377: 00 + 378: 00 + 379: 00 + 380: 00 + 381: 00 + 382: 00 + 383: 00 + 384: 00 + 385: 00 + 386: 00 + 387: 00 + 388: 00 + 389: 00 + 390: 00 + 391: 00 + 392: 00 + 393: 00 + 394: 00 + 395: 00 + 396: 00 + 397: 00 + 398: 00 + 399: 00 + 400: 00 + 401: 00 + 402: 00 + 403: 00 + 404: 00 + 405: 00 + 406: 00 + 407: 00 + 408: 00 + 409: 00 + 410: 00 + 411: 00 + 412: 00 + 413: 00 + 414: 00 + 415: 00 + 416: 00 + 417: 00 + 418: 00 + 419: 00 + 420: 00 + 421: 00 + 422: 00 + 423: 00 + 424: 00 + 425: 00 + 426: 00 + 427: 00 + 428: 00 + 429: 00 + 430: 00 + 431: 00 + 432: 00 + 433: 00 + 434: 00 + 435: 00 + 436: 00 + 437: 00 + 438: 00 + 439: 00 + 440: 00 + 441: 00 + 442: 00 + 443: 00 + 444: 00 + 445: 00 + 446: 00 + 447: 00 + 448: 00 + 449: 00 + 450: 00 + 451: 00 + 452: 00 + 453: 00 + 454: 00 + 455: 00 + 456: 00 + 457: 00 + 458: 00 + 459: 00 + 460: 00 + 461: 00 + 462: 00 + 463: 00 + 464: 00 + 465: 00 + 466: 00 + 467: 00 + 468: 00 + 469: 00 + 470: 00 + 471: 00 + 472: 00 + 473: 00 + 474: 00 + 475: 00 + 476: 00 + 477: 00 + 478: 00 + 479: 00 + 480: 00 + 481: 00 + 482: 00 + 483: 00 +event 54: EOS prop d11f info record, datasize 12 +event 54: Unknown EOS property d11f, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 90 + 3: 91 +event 54: currentvalue of d11f is 91900000 +event 55: EOS prop d1a7 info record, datasize 44 +event 55: Unknown EOS property d1a7, datasize is 36 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 +event 56: EOS prop d11e info record, datasize 12 +event 56: Unknown EOS property d11e, datasize is 4, using uint32 + 0: 01 + 1: 00 + 2: 02 + 3: 00 +event 56: currentvalue of d11e is 20001 +event 57: EOS prop d1aa info record, datasize 12 +event 57: Unknown EOS property d1aa, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 57: currentvalue of d1aa is 0 +event 58: EOS prop d1a0 info record, datasize 208 +event 58: Unknown EOS property d1a0, datasize is 200 + 0: c8 + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 20 + 13: 00 + 14: 00 + 15: 00 + 16: 02 + 17: 00 + 18: 00 + 19: 00 + 20: 01 + 21: 01 + 22: 00 + 23: 00 + 24: 01 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 0f + 33: 01 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 02 + 45: 00 + 46: 00 + 47: 00 + 48: 2c + 49: 00 + 50: 00 + 51: 00 + 52: 03 + 53: 00 + 54: 00 + 55: 00 + 56: 01 + 57: 02 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 02 + 69: 02 + 70: 00 + 71: 00 + 72: 01 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 04 + 81: 02 + 82: 00 + 83: 00 + 84: 01 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + 89: 00 + 90: 00 + 91: 00 + 92: 03 + 93: 00 + 94: 00 + 95: 00 + 96: 2c + 97: 00 + 98: 00 + 99: 00 + 100: 03 + 101: 00 + 102: 00 + 103: 00 + 104: 0e + 105: 05 + 106: 00 + 107: 00 + 108: 01 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 11 + 117: 05 + 118: 00 + 119: 00 + 120: 01 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 0f + 129: 06 + 130: 00 + 131: 00 + 132: 01 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 04 + 141: 00 + 142: 00 + 143: 00 + 144: 38 + 145: 00 + 146: 00 + 147: 00 + 148: 04 + 149: 00 + 150: 00 + 151: 00 + 152: 01 + 153: 07 + 154: 00 + 155: 00 + 156: 01 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 04 + 165: 07 + 166: 00 + 167: 00 + 168: 01 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 11 + 177: 08 + 178: 00 + 179: 00 + 180: 01 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 0f + 189: 08 + 190: 00 + 191: 00 + 192: 01 + 193: 00 + 194: 00 + 195: 00 + 196: 00 + 197: 00 + 198: 00 + 199: 00 +event 59: EOS prop d120 info record, datasize 28 +event 59: Unknown EOS property d120, datasize is 20 + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 10 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 +event 60: EOS prop d121 info record, datasize 28 +event 60: Unknown EOS property d121, datasize is 20 + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 10 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 +event 61: EOS prop d112 info record, datasize 12 +event 61: Unknown EOS property d112, datasize is 4, using uint16 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 61: currentvalue of d112 is 0 +event 62: EOS prop d111 info record, datasize 12 +event 62: currentvalue of d111 is 2 +event 63: EOS prop d122 info record, datasize 28 +event 63: Unknown EOS property d122, datasize is 20 + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 10 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 +event 64: EOS prop d145 info record, datasize 64 +event 64: Unknown EOS property d145, datasize is 56 + 0: 38 + 1: 00 + 2: 00 + 3: 00 + 4: e0 + 5: 05 + 6: 90 + 7: 91 + 8: da + 9: 08 + 10: 86 + 11: 2b + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: fe + 49: 07 + 50: 00 + 51: 04 + 52: 00 + 53: 04 + 54: 08 + 55: 01 +event 65: EOS prop d1ac info record, datasize 12 +event 65: Unknown EOS property d1ac, datasize is 4, using uint32 + 0: 93 + 1: 00 + 2: 00 + 3: 00 +event 65: currentvalue of d1ac is 93 +event 66: EOS prop d1ad info record, datasize 16 +event 66: Unknown EOS property d1ad, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 67: EOS prop d1ae info record, datasize 12 +event 67: Unknown EOS property d1ae, datasize is 4, using uint32 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 67: currentvalue of d1ae is 0 +event 68: EOS prop d101 desc record, datasize 68, propxtype 3 +event 68: suppval[0] of d101 is 2b. +event 68: suppval[1] of d101 is 2d. +event 68: suppval[2] of d101 is 30. +event 68: suppval[3] of d101 is 33. +event 68: suppval[4] of d101 is 35. +event 68: suppval[5] of d101 is 38. +event 68: suppval[6] of d101 is 3b. +event 68: suppval[7] of d101 is 3d. +event 68: suppval[8] of d101 is 40. +event 68: suppval[9] of d101 is 43. +event 68: suppval[10] of d101 is 45. +event 68: suppval[11] of d101 is 48. +event 68: suppval[12] of d101 is 4b. +event 68: suppval[13] of d101 is 4d. +event 68: suppval[14] of d101 is 50. +event 68: suppval[15] of d101 is 53. +event 68: suppval[16] of d101 is 55. +event 69: EOS prop d102 desc record, datasize 0, propxtype 3 +event 70: EOS prop d103 desc record, datasize 24, propxtype 3 +event 70: suppval[0] of d103 is 0. +event 70: suppval[1] of d103 is 48. +event 70: suppval[2] of d103 is 50. +event 70: suppval[3] of d103 is 58. +event 70: suppval[4] of d103 is 60. +event 70: suppval[5] of d103 is 68. +event 71: EOS prop d104 desc record, datasize 52, propxtype 3 +event 71: suppvalue[0] of d104 is f0 +event 71: suppvalue[1] of d104 is f3 +event 71: suppvalue[2] of d104 is f5 +event 71: suppvalue[3] of d104 is f8 +event 71: suppvalue[4] of d104 is fb +event 71: suppvalue[5] of d104 is fd +event 71: suppvalue[6] of d104 is 0 +event 71: suppvalue[7] of d104 is 3 +event 71: suppvalue[8] of d104 is 5 +event 71: suppvalue[9] of d104 is 8 +event 71: suppvalue[10] of d104 is b +event 71: suppvalue[11] of d104 is d +event 71: suppvalue[12] of d104 is 10 +event 72: EOS prop d105 desc record, datasize 0, propxtype 1 +event 72: propxtype is 1 for d105, unhandled. +event 73: EOS prop d106 desc record, datasize 20, propxtype 3 +event 73: suppval[0] of d106 is 0. +event 73: suppval[1] of d106 is 1. +event 73: suppval[2] of d106 is 10. +event 73: suppval[3] of d106 is 11. +event 73: suppval[4] of d106 is 7. +event 74: EOS prop d107 desc record, datasize 12, propxtype 3 +event 74: suppvalue[0] of d107 is 3 +event 74: suppvalue[1] of d107 is 4 +event 74: suppvalue[2] of d107 is 5 +event 75: EOS prop d108 desc record, datasize 0, propxtype 3 +event 76: EOS prop d109 desc record, datasize 36, propxtype 3 +event 76: suppvalue[0] of d109 is 0 +event 76: suppvalue[1] of d109 is 1 +event 76: suppvalue[2] of d109 is 8 +event 76: suppvalue[3] of d109 is 2 +event 76: suppvalue[4] of d109 is 3 +event 76: suppvalue[5] of d109 is 4 +event 76: suppvalue[6] of d109 is 5 +event 76: suppvalue[7] of d109 is 6 +event 77: EOS prop d10b desc record, datasize 76, propxtype 3 +event 77: suppval[0] of d10b is fff7. +event 77: suppval[1] of d10b is fff8. +event 77: suppval[2] of d10b is fff9. +event 77: suppval[3] of d10b is fffa. +event 77: suppval[4] of d10b is fffb. +event 77: suppval[5] of d10b is fffc. +event 77: suppval[6] of d10b is fffd. +event 77: suppval[7] of d10b is fffe. +event 77: suppval[8] of d10b is ffff. +event 77: suppval[9] of d10b is 0. +event 77: suppval[10] of d10b is 1. +event 77: suppval[11] of d10b is 2. +event 77: suppval[12] of d10b is 3. +event 77: suppval[13] of d10b is 4. +event 77: suppval[14] of d10b is 5. +event 77: suppval[15] of d10b is 6. +event 77: suppval[16] of d10b is 7. +event 77: suppval[17] of d10b is 8. +event 77: suppval[18] of d10b is 9. +event 78: EOS prop d10c desc record, datasize 76, propxtype 3 +event 78: suppval[0] of d10c is fff7. +event 78: suppval[1] of d10c is fff8. +event 78: suppval[2] of d10c is fff9. +event 78: suppval[3] of d10c is fffa. +event 78: suppval[4] of d10c is fffb. +event 78: suppval[5] of d10c is fffc. +event 78: suppval[6] of d10c is fffd. +event 78: suppval[7] of d10c is fffe. +event 78: suppval[8] of d10c is ffff. +event 78: suppval[9] of d10c is 0. +event 78: suppval[10] of d10c is 1. +event 78: suppval[11] of d10c is 2. +event 78: suppval[12] of d10c is 3. +event 78: suppval[13] of d10c is 4. +event 78: suppval[14] of d10c is 5. +event 78: suppval[15] of d10c is 6. +event 78: suppval[16] of d10c is 7. +event 78: suppval[17] of d10c is 8. +event 78: suppval[18] of d10c is 9. +event 79: EOS prop d10d desc record, datasize 0, propxtype 1 +event 79: propxtype is 1 for d10d, unhandled. +event 80: EOS prop d10e desc record, datasize 0, propxtype 1 +event 80: propxtype is 1 for d10e, unhandled. +event 81: EOS prop d10f desc record, datasize 8, propxtype 3 +event 81: suppval[0] of d10f is 1. +event 81: suppval[1] of d10f is 2. +event 82: EOS prop d110 desc record, datasize 36, propxtype 3 +event 82: suppvalue[0] of d110 is 81 +event 82: suppvalue[1] of d110 is 82 +event 82: suppvalue[2] of d110 is 83 +event 82: suppvalue[3] of d110 is 84 +event 82: suppvalue[4] of d110 is 85 +event 82: suppvalue[5] of d110 is 86 +event 82: suppvalue[6] of d110 is 21 +event 82: suppvalue[7] of d110 is 22 +event 82: suppvalue[8] of d110 is 23 +event 83: EOS prop d111 desc record, datasize 0, propxtype 1 +event 83: propxtype is 1 for d111, unhandled. +event 84: EOS prop d112 desc record, datasize 0, propxtype 1 +event 84: propxtype is 1 for d112, unhandled. +event 85: EOS prop d113 desc record, datasize 0, propxtype 7 +event 85: propxtype is 7 for d113, unhandled. +event 86: EOS prop d114 desc record, datasize 0, propxtype 1 +event 86: propxtype is 1 for d114, unhandled. +event 87: EOS prop d115 desc record, datasize 0, propxtype 7 +event 87: propxtype is 7 for d115, unhandled. +event 88: EOS prop d116 desc record, datasize 0, propxtype 1 +event 88: propxtype is 1 for d116, unhandled. +event 89: EOS prop d119 desc record, datasize 0, propxtype 1 +event 89: propxtype is 1 for d119, unhandled. +event 90: EOS prop d11a desc record, datasize 0, propxtype 1 +event 90: propxtype is 1 for d11a, unhandled. +event 91: EOS prop d11b desc record, datasize 0, propxtype 1 +event 91: propxtype is 1 for d11b, unhandled. +event 92: EOS prop d11c desc record, datasize 8, propxtype 3 +event 92: suppval[0] of d11c is 2. +event 92: suppval[1] of d11c is 4. +event 93: EOS prop d11d desc record, datasize 0, propxtype 1 +event 93: propxtype is 1 for d11d, unhandled. +event 94: EOS prop d120 desc record, datasize 180, propxtype 3 +event 94: data type 0x0000 of d120 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 10 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 01 + 21: 00 + 22: 00 + 23: 00 + 24: 10 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 01 + 41: 00 + 42: 00 + 43: 00 + 44: 10 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 01 + 53: 00 + 54: 00 + 55: 00 + 56: 03 + 57: 00 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 10 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 01 + 73: 00 + 74: 00 + 75: 00 + 76: 02 + 77: 00 + 78: 00 + 79: 00 + 80: 01 + 81: 00 + 82: 00 + 83: 00 + 84: 10 + 85: 00 + 86: 00 + 87: 00 + 88: 01 + 89: 00 + 90: 00 + 91: 00 + 92: 02 + 93: 00 + 94: 00 + 95: 00 + 96: 03 + 97: 00 + 98: 00 + 99: 00 + 100: 01 + 101: 00 + 102: 00 + 103: 00 + 104: 10 + 105: 00 + 106: 00 + 107: 00 + 108: 01 + 109: 00 + 110: 00 + 111: 00 + 112: 02 + 113: 00 + 114: 00 + 115: 00 + 116: 02 + 117: 00 + 118: 00 + 119: 00 + 120: 02 + 121: 00 + 122: 00 + 123: 00 + 124: 10 + 125: 00 + 126: 00 + 127: 00 + 128: 06 + 129: 00 + 130: 00 + 131: 00 + 132: 00 + 133: 00 + 134: 00 + 135: 00 + 136: 04 + 137: 00 + 138: 00 + 139: 00 + 140: 10 + 141: 00 + 142: 00 + 143: 00 + 144: 01 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 03 + 153: 00 + 154: 00 + 155: 00 + 156: 01 + 157: 00 + 158: 00 + 159: 00 + 160: 10 + 161: 00 + 162: 00 + 163: 00 + 164: 06 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 04 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 +event 94: data type 0x0000 of d120 unhandled, fill in (val=10). + 0: 10 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 + 20: 10 + 21: 00 + 22: 00 + 23: 00 + 24: 01 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 + 40: 10 + 41: 00 + 42: 00 + 43: 00 + 44: 01 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 03 + 53: 00 + 54: 00 + 55: 00 + 56: 01 + 57: 00 + 58: 00 + 59: 00 + 60: 10 + 61: 00 + 62: 00 + 63: 00 + 64: 01 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 02 + 73: 00 + 74: 00 + 75: 00 + 76: 01 + 77: 00 + 78: 00 + 79: 00 + 80: 10 + 81: 00 + 82: 00 + 83: 00 + 84: 01 + 85: 00 + 86: 00 + 87: 00 + 88: 02 + 89: 00 + 90: 00 + 91: 00 + 92: 03 + 93: 00 + 94: 00 + 95: 00 + 96: 01 + 97: 00 + 98: 00 + 99: 00 + 100: 10 + 101: 00 + 102: 00 + 103: 00 + 104: 01 + 105: 00 + 106: 00 + 107: 00 + 108: 02 + 109: 00 + 110: 00 + 111: 00 + 112: 02 + 113: 00 + 114: 00 + 115: 00 + 116: 02 + 117: 00 + 118: 00 + 119: 00 + 120: 10 + 121: 00 + 122: 00 + 123: 00 + 124: 06 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 04 + 133: 00 + 134: 00 + 135: 00 + 136: 10 + 137: 00 + 138: 00 + 139: 00 + 140: 01 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 03 + 149: 00 + 150: 00 + 151: 00 + 152: 01 + 153: 00 + 154: 00 + 155: 00 + 156: 10 + 157: 00 + 158: 00 + 159: 00 + 160: 06 + 161: 00 + 162: 00 + 163: 00 + 164: 00 + 165: 00 + 166: 00 + 167: 00 + 168: 04 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: c8 + 177: 00 + 178: 00 + 179: 00 +event 94: data type 0x0000 of d120 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 10 + 17: 00 + 18: 00 + 19: 00 + 20: 01 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 02 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 10 + 37: 00 + 38: 00 + 39: 00 + 40: 01 + 41: 00 + 42: 00 + 43: 00 + 44: 01 + 45: 00 + 46: 00 + 47: 00 + 48: 03 + 49: 00 + 50: 00 + 51: 00 + 52: 01 + 53: 00 + 54: 00 + 55: 00 + 56: 10 + 57: 00 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 01 + 65: 00 + 66: 00 + 67: 00 + 68: 02 + 69: 00 + 70: 00 + 71: 00 + 72: 01 + 73: 00 + 74: 00 + 75: 00 + 76: 10 + 77: 00 + 78: 00 + 79: 00 + 80: 01 + 81: 00 + 82: 00 + 83: 00 + 84: 02 + 85: 00 + 86: 00 + 87: 00 + 88: 03 + 89: 00 + 90: 00 + 91: 00 + 92: 01 + 93: 00 + 94: 00 + 95: 00 + 96: 10 + 97: 00 + 98: 00 + 99: 00 + 100: 01 + 101: 00 + 102: 00 + 103: 00 + 104: 02 + 105: 00 + 106: 00 + 107: 00 + 108: 02 + 109: 00 + 110: 00 + 111: 00 + 112: 02 + 113: 00 + 114: 00 + 115: 00 + 116: 10 + 117: 00 + 118: 00 + 119: 00 + 120: 06 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 04 + 129: 00 + 130: 00 + 131: 00 + 132: 10 + 133: 00 + 134: 00 + 135: 00 + 136: 01 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 03 + 145: 00 + 146: 00 + 147: 00 + 148: 01 + 149: 00 + 150: 00 + 151: 00 + 152: 10 + 153: 00 + 154: 00 + 155: 00 + 156: 06 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 04 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: c8 + 173: 00 + 174: 00 + 175: 00 + 176: 8a + 177: c1 + 178: 00 + 179: 00 +event 94: data type 0x0000 of d120 unhandled, fill in (val=0). + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 03 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 10 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 02 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 10 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 + 40: 01 + 41: 00 + 42: 00 + 43: 00 + 44: 03 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 10 + 53: 00 + 54: 00 + 55: 00 + 56: 01 + 57: 00 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 02 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 10 + 73: 00 + 74: 00 + 75: 00 + 76: 01 + 77: 00 + 78: 00 + 79: 00 + 80: 02 + 81: 00 + 82: 00 + 83: 00 + 84: 03 + 85: 00 + 86: 00 + 87: 00 + 88: 01 + 89: 00 + 90: 00 + 91: 00 + 92: 10 + 93: 00 + 94: 00 + 95: 00 + 96: 01 + 97: 00 + 98: 00 + 99: 00 + 100: 02 + 101: 00 + 102: 00 + 103: 00 + 104: 02 + 105: 00 + 106: 00 + 107: 00 + 108: 02 + 109: 00 + 110: 00 + 111: 00 + 112: 10 + 113: 00 + 114: 00 + 115: 00 + 116: 06 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 04 + 125: 00 + 126: 00 + 127: 00 + 128: 10 + 129: 00 + 130: 00 + 131: 00 + 132: 01 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 03 + 141: 00 + 142: 00 + 143: 00 + 144: 01 + 145: 00 + 146: 00 + 147: 00 + 148: 10 + 149: 00 + 150: 00 + 151: 00 + 152: 06 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 04 + 161: 00 + 162: 00 + 163: 00 + 164: 00 + 165: 00 + 166: 00 + 167: 00 + 168: c8 + 169: 00 + 170: 00 + 171: 00 + 172: 8a + 173: c1 + 174: 00 + 175: 00 + 176: 22 + 177: d1 + 178: 00 + 179: 00 +event 94: data type 0x0000 of d120 unhandled, fill in (val=3). + 0: 03 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 10 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 02 + 21: 00 + 22: 00 + 23: 00 + 24: 01 + 25: 00 + 26: 00 + 27: 00 + 28: 10 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 + 40: 03 + 41: 00 + 42: 00 + 43: 00 + 44: 01 + 45: 00 + 46: 00 + 47: 00 + 48: 10 + 49: 00 + 50: 00 + 51: 00 + 52: 01 + 53: 00 + 54: 00 + 55: 00 + 56: 01 + 57: 00 + 58: 00 + 59: 00 + 60: 02 + 61: 00 + 62: 00 + 63: 00 + 64: 01 + 65: 00 + 66: 00 + 67: 00 + 68: 10 + 69: 00 + 70: 00 + 71: 00 + 72: 01 + 73: 00 + 74: 00 + 75: 00 + 76: 02 + 77: 00 + 78: 00 + 79: 00 + 80: 03 + 81: 00 + 82: 00 + 83: 00 + 84: 01 + 85: 00 + 86: 00 + 87: 00 + 88: 10 + 89: 00 + 90: 00 + 91: 00 + 92: 01 + 93: 00 + 94: 00 + 95: 00 + 96: 02 + 97: 00 + 98: 00 + 99: 00 + 100: 02 + 101: 00 + 102: 00 + 103: 00 + 104: 02 + 105: 00 + 106: 00 + 107: 00 + 108: 10 + 109: 00 + 110: 00 + 111: 00 + 112: 06 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 04 + 121: 00 + 122: 00 + 123: 00 + 124: 10 + 125: 00 + 126: 00 + 127: 00 + 128: 01 + 129: 00 + 130: 00 + 131: 00 + 132: 00 + 133: 00 + 134: 00 + 135: 00 + 136: 03 + 137: 00 + 138: 00 + 139: 00 + 140: 01 + 141: 00 + 142: 00 + 143: 00 + 144: 10 + 145: 00 + 146: 00 + 147: 00 + 148: 06 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 04 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: c8 + 165: 00 + 166: 00 + 167: 00 + 168: 8a + 169: c1 + 170: 00 + 171: 00 + 172: 22 + 173: d1 + 174: 00 + 175: 00 + 176: 03 + 177: 00 + 178: 00 + 179: 00 +event 94: data type 0x0000 of d120 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 10 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 02 + 17: 00 + 18: 00 + 19: 00 + 20: 01 + 21: 00 + 22: 00 + 23: 00 + 24: 10 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 03 + 37: 00 + 38: 00 + 39: 00 + 40: 01 + 41: 00 + 42: 00 + 43: 00 + 44: 10 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 01 + 53: 00 + 54: 00 + 55: 00 + 56: 02 + 57: 00 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 10 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 02 + 73: 00 + 74: 00 + 75: 00 + 76: 03 + 77: 00 + 78: 00 + 79: 00 + 80: 01 + 81: 00 + 82: 00 + 83: 00 + 84: 10 + 85: 00 + 86: 00 + 87: 00 + 88: 01 + 89: 00 + 90: 00 + 91: 00 + 92: 02 + 93: 00 + 94: 00 + 95: 00 + 96: 02 + 97: 00 + 98: 00 + 99: 00 + 100: 02 + 101: 00 + 102: 00 + 103: 00 + 104: 10 + 105: 00 + 106: 00 + 107: 00 + 108: 06 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 04 + 117: 00 + 118: 00 + 119: 00 + 120: 10 + 121: 00 + 122: 00 + 123: 00 + 124: 01 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 03 + 133: 00 + 134: 00 + 135: 00 + 136: 01 + 137: 00 + 138: 00 + 139: 00 + 140: 10 + 141: 00 + 142: 00 + 143: 00 + 144: 06 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 04 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: c8 + 161: 00 + 162: 00 + 163: 00 + 164: 8a + 165: c1 + 166: 00 + 167: 00 + 168: 22 + 169: d1 + 170: 00 + 171: 00 + 172: 03 + 173: 00 + 174: 00 + 175: 00 + 176: 08 + 177: 00 + 178: 00 + 179: 00 +event 94: data type 0x0000 of d120 unhandled, fill in (val=10). + 0: 10 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 02 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 + 20: 10 + 21: 00 + 22: 00 + 23: 00 + 24: 01 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 03 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 + 40: 10 + 41: 00 + 42: 00 + 43: 00 + 44: 01 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 02 + 53: 00 + 54: 00 + 55: 00 + 56: 01 + 57: 00 + 58: 00 + 59: 00 + 60: 10 + 61: 00 + 62: 00 + 63: 00 + 64: 01 + 65: 00 + 66: 00 + 67: 00 + 68: 02 + 69: 00 + 70: 00 + 71: 00 + 72: 03 + 73: 00 + 74: 00 + 75: 00 + 76: 01 + 77: 00 + 78: 00 + 79: 00 + 80: 10 + 81: 00 + 82: 00 + 83: 00 + 84: 01 + 85: 00 + 86: 00 + 87: 00 + 88: 02 + 89: 00 + 90: 00 + 91: 00 + 92: 02 + 93: 00 + 94: 00 + 95: 00 + 96: 02 + 97: 00 + 98: 00 + 99: 00 + 100: 10 + 101: 00 + 102: 00 + 103: 00 + 104: 06 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 04 + 113: 00 + 114: 00 + 115: 00 + 116: 10 + 117: 00 + 118: 00 + 119: 00 + 120: 01 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 03 + 129: 00 + 130: 00 + 131: 00 + 132: 01 + 133: 00 + 134: 00 + 135: 00 + 136: 10 + 137: 00 + 138: 00 + 139: 00 + 140: 06 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 04 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: c8 + 157: 00 + 158: 00 + 159: 00 + 160: 8a + 161: c1 + 162: 00 + 163: 00 + 164: 22 + 165: d1 + 166: 00 + 167: 00 + 168: 03 + 169: 00 + 170: 00 + 171: 00 + 172: 08 + 173: 00 + 174: 00 + 175: 00 + 176: 01 + 177: 00 + 178: 00 + 179: 00 +event 94: data type 0x0000 of d120 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 02 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 10 + 17: 00 + 18: 00 + 19: 00 + 20: 01 + 21: 00 + 22: 00 + 23: 00 + 24: 01 + 25: 00 + 26: 00 + 27: 00 + 28: 03 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 10 + 37: 00 + 38: 00 + 39: 00 + 40: 01 + 41: 00 + 42: 00 + 43: 00 + 44: 01 + 45: 00 + 46: 00 + 47: 00 + 48: 02 + 49: 00 + 50: 00 + 51: 00 + 52: 01 + 53: 00 + 54: 00 + 55: 00 + 56: 10 + 57: 00 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 02 + 65: 00 + 66: 00 + 67: 00 + 68: 03 + 69: 00 + 70: 00 + 71: 00 + 72: 01 + 73: 00 + 74: 00 + 75: 00 + 76: 10 + 77: 00 + 78: 00 + 79: 00 + 80: 01 + 81: 00 + 82: 00 + 83: 00 + 84: 02 + 85: 00 + 86: 00 + 87: 00 + 88: 02 + 89: 00 + 90: 00 + 91: 00 + 92: 02 + 93: 00 + 94: 00 + 95: 00 + 96: 10 + 97: 00 + 98: 00 + 99: 00 + 100: 06 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 04 + 109: 00 + 110: 00 + 111: 00 + 112: 10 + 113: 00 + 114: 00 + 115: 00 + 116: 01 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 03 + 125: 00 + 126: 00 + 127: 00 + 128: 01 + 129: 00 + 130: 00 + 131: 00 + 132: 10 + 133: 00 + 134: 00 + 135: 00 + 136: 06 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 04 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: c8 + 153: 00 + 154: 00 + 155: 00 + 156: 8a + 157: c1 + 158: 00 + 159: 00 + 160: 22 + 161: d1 + 162: 00 + 163: 00 + 164: 03 + 165: 00 + 166: 00 + 167: 00 + 168: 08 + 169: 00 + 170: 00 + 171: 00 + 172: 01 + 173: 00 + 174: 00 + 175: 00 + 176: 10 + 177: 00 + 178: 00 + 179: 00 +event 95: EOS prop d122 desc record, datasize 180, propxtype 3 +event 95: data type 0x0000 of d122 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 10 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 01 + 21: 00 + 22: 00 + 23: 00 + 24: 10 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 01 + 41: 00 + 42: 00 + 43: 00 + 44: 10 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 01 + 53: 00 + 54: 00 + 55: 00 + 56: 03 + 57: 00 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 10 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 01 + 73: 00 + 74: 00 + 75: 00 + 76: 02 + 77: 00 + 78: 00 + 79: 00 + 80: 01 + 81: 00 + 82: 00 + 83: 00 + 84: 10 + 85: 00 + 86: 00 + 87: 00 + 88: 01 + 89: 00 + 90: 00 + 91: 00 + 92: 02 + 93: 00 + 94: 00 + 95: 00 + 96: 03 + 97: 00 + 98: 00 + 99: 00 + 100: 01 + 101: 00 + 102: 00 + 103: 00 + 104: 10 + 105: 00 + 106: 00 + 107: 00 + 108: 01 + 109: 00 + 110: 00 + 111: 00 + 112: 02 + 113: 00 + 114: 00 + 115: 00 + 116: 02 + 117: 00 + 118: 00 + 119: 00 + 120: 02 + 121: 00 + 122: 00 + 123: 00 + 124: 10 + 125: 00 + 126: 00 + 127: 00 + 128: 06 + 129: 00 + 130: 00 + 131: 00 + 132: 00 + 133: 00 + 134: 00 + 135: 00 + 136: 04 + 137: 00 + 138: 00 + 139: 00 + 140: 10 + 141: 00 + 142: 00 + 143: 00 + 144: 01 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 03 + 153: 00 + 154: 00 + 155: 00 + 156: 01 + 157: 00 + 158: 00 + 159: 00 + 160: 10 + 161: 00 + 162: 00 + 163: 00 + 164: 06 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 04 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 +event 95: data type 0x0000 of d122 unhandled, fill in (val=10). + 0: 10 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 + 20: 10 + 21: 00 + 22: 00 + 23: 00 + 24: 01 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 + 40: 10 + 41: 00 + 42: 00 + 43: 00 + 44: 01 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 03 + 53: 00 + 54: 00 + 55: 00 + 56: 01 + 57: 00 + 58: 00 + 59: 00 + 60: 10 + 61: 00 + 62: 00 + 63: 00 + 64: 01 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 02 + 73: 00 + 74: 00 + 75: 00 + 76: 01 + 77: 00 + 78: 00 + 79: 00 + 80: 10 + 81: 00 + 82: 00 + 83: 00 + 84: 01 + 85: 00 + 86: 00 + 87: 00 + 88: 02 + 89: 00 + 90: 00 + 91: 00 + 92: 03 + 93: 00 + 94: 00 + 95: 00 + 96: 01 + 97: 00 + 98: 00 + 99: 00 + 100: 10 + 101: 00 + 102: 00 + 103: 00 + 104: 01 + 105: 00 + 106: 00 + 107: 00 + 108: 02 + 109: 00 + 110: 00 + 111: 00 + 112: 02 + 113: 00 + 114: 00 + 115: 00 + 116: 02 + 117: 00 + 118: 00 + 119: 00 + 120: 10 + 121: 00 + 122: 00 + 123: 00 + 124: 06 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 04 + 133: 00 + 134: 00 + 135: 00 + 136: 10 + 137: 00 + 138: 00 + 139: 00 + 140: 01 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 03 + 149: 00 + 150: 00 + 151: 00 + 152: 01 + 153: 00 + 154: 00 + 155: 00 + 156: 10 + 157: 00 + 158: 00 + 159: 00 + 160: 06 + 161: 00 + 162: 00 + 163: 00 + 164: 00 + 165: 00 + 166: 00 + 167: 00 + 168: 04 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 14 + 177: 00 + 178: 00 + 179: 00 +event 95: data type 0x0000 of d122 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 10 + 17: 00 + 18: 00 + 19: 00 + 20: 01 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 02 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 10 + 37: 00 + 38: 00 + 39: 00 + 40: 01 + 41: 00 + 42: 00 + 43: 00 + 44: 01 + 45: 00 + 46: 00 + 47: 00 + 48: 03 + 49: 00 + 50: 00 + 51: 00 + 52: 01 + 53: 00 + 54: 00 + 55: 00 + 56: 10 + 57: 00 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 01 + 65: 00 + 66: 00 + 67: 00 + 68: 02 + 69: 00 + 70: 00 + 71: 00 + 72: 01 + 73: 00 + 74: 00 + 75: 00 + 76: 10 + 77: 00 + 78: 00 + 79: 00 + 80: 01 + 81: 00 + 82: 00 + 83: 00 + 84: 02 + 85: 00 + 86: 00 + 87: 00 + 88: 03 + 89: 00 + 90: 00 + 91: 00 + 92: 01 + 93: 00 + 94: 00 + 95: 00 + 96: 10 + 97: 00 + 98: 00 + 99: 00 + 100: 01 + 101: 00 + 102: 00 + 103: 00 + 104: 02 + 105: 00 + 106: 00 + 107: 00 + 108: 02 + 109: 00 + 110: 00 + 111: 00 + 112: 02 + 113: 00 + 114: 00 + 115: 00 + 116: 10 + 117: 00 + 118: 00 + 119: 00 + 120: 06 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 04 + 129: 00 + 130: 00 + 131: 00 + 132: 10 + 133: 00 + 134: 00 + 135: 00 + 136: 01 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 03 + 145: 00 + 146: 00 + 147: 00 + 148: 01 + 149: 00 + 150: 00 + 151: 00 + 152: 10 + 153: 00 + 154: 00 + 155: 00 + 156: 06 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 04 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 14 + 173: 00 + 174: 00 + 175: 00 + 176: 8a + 177: c1 + 178: 00 + 179: 00 +event 95: data type 0x0000 of d122 unhandled, fill in (val=0). + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 03 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 10 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 02 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 10 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 + 40: 01 + 41: 00 + 42: 00 + 43: 00 + 44: 03 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 10 + 53: 00 + 54: 00 + 55: 00 + 56: 01 + 57: 00 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 02 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 10 + 73: 00 + 74: 00 + 75: 00 + 76: 01 + 77: 00 + 78: 00 + 79: 00 + 80: 02 + 81: 00 + 82: 00 + 83: 00 + 84: 03 + 85: 00 + 86: 00 + 87: 00 + 88: 01 + 89: 00 + 90: 00 + 91: 00 + 92: 10 + 93: 00 + 94: 00 + 95: 00 + 96: 01 + 97: 00 + 98: 00 + 99: 00 + 100: 02 + 101: 00 + 102: 00 + 103: 00 + 104: 02 + 105: 00 + 106: 00 + 107: 00 + 108: 02 + 109: 00 + 110: 00 + 111: 00 + 112: 10 + 113: 00 + 114: 00 + 115: 00 + 116: 06 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 04 + 125: 00 + 126: 00 + 127: 00 + 128: 10 + 129: 00 + 130: 00 + 131: 00 + 132: 01 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 03 + 141: 00 + 142: 00 + 143: 00 + 144: 01 + 145: 00 + 146: 00 + 147: 00 + 148: 10 + 149: 00 + 150: 00 + 151: 00 + 152: 06 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 04 + 161: 00 + 162: 00 + 163: 00 + 164: 00 + 165: 00 + 166: 00 + 167: 00 + 168: 14 + 169: 00 + 170: 00 + 171: 00 + 172: 8a + 173: c1 + 174: 00 + 175: 00 + 176: 45 + 177: d1 + 178: 00 + 179: 00 +event 95: data type 0x0000 of d122 unhandled, fill in (val=3). + 0: 03 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 10 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 02 + 21: 00 + 22: 00 + 23: 00 + 24: 01 + 25: 00 + 26: 00 + 27: 00 + 28: 10 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 + 40: 03 + 41: 00 + 42: 00 + 43: 00 + 44: 01 + 45: 00 + 46: 00 + 47: 00 + 48: 10 + 49: 00 + 50: 00 + 51: 00 + 52: 01 + 53: 00 + 54: 00 + 55: 00 + 56: 01 + 57: 00 + 58: 00 + 59: 00 + 60: 02 + 61: 00 + 62: 00 + 63: 00 + 64: 01 + 65: 00 + 66: 00 + 67: 00 + 68: 10 + 69: 00 + 70: 00 + 71: 00 + 72: 01 + 73: 00 + 74: 00 + 75: 00 + 76: 02 + 77: 00 + 78: 00 + 79: 00 + 80: 03 + 81: 00 + 82: 00 + 83: 00 + 84: 01 + 85: 00 + 86: 00 + 87: 00 + 88: 10 + 89: 00 + 90: 00 + 91: 00 + 92: 01 + 93: 00 + 94: 00 + 95: 00 + 96: 02 + 97: 00 + 98: 00 + 99: 00 + 100: 02 + 101: 00 + 102: 00 + 103: 00 + 104: 02 + 105: 00 + 106: 00 + 107: 00 + 108: 10 + 109: 00 + 110: 00 + 111: 00 + 112: 06 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 04 + 121: 00 + 122: 00 + 123: 00 + 124: 10 + 125: 00 + 126: 00 + 127: 00 + 128: 01 + 129: 00 + 130: 00 + 131: 00 + 132: 00 + 133: 00 + 134: 00 + 135: 00 + 136: 03 + 137: 00 + 138: 00 + 139: 00 + 140: 01 + 141: 00 + 142: 00 + 143: 00 + 144: 10 + 145: 00 + 146: 00 + 147: 00 + 148: 06 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 04 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 14 + 165: 00 + 166: 00 + 167: 00 + 168: 8a + 169: c1 + 170: 00 + 171: 00 + 172: 45 + 173: d1 + 174: 00 + 175: 00 + 176: 01 + 177: 00 + 178: 00 + 179: 00 +event 95: data type 0x0000 of d122 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 10 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 02 + 17: 00 + 18: 00 + 19: 00 + 20: 01 + 21: 00 + 22: 00 + 23: 00 + 24: 10 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 03 + 37: 00 + 38: 00 + 39: 00 + 40: 01 + 41: 00 + 42: 00 + 43: 00 + 44: 10 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 01 + 53: 00 + 54: 00 + 55: 00 + 56: 02 + 57: 00 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 10 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 02 + 73: 00 + 74: 00 + 75: 00 + 76: 03 + 77: 00 + 78: 00 + 79: 00 + 80: 01 + 81: 00 + 82: 00 + 83: 00 + 84: 10 + 85: 00 + 86: 00 + 87: 00 + 88: 01 + 89: 00 + 90: 00 + 91: 00 + 92: 02 + 93: 00 + 94: 00 + 95: 00 + 96: 02 + 97: 00 + 98: 00 + 99: 00 + 100: 02 + 101: 00 + 102: 00 + 103: 00 + 104: 10 + 105: 00 + 106: 00 + 107: 00 + 108: 06 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 04 + 117: 00 + 118: 00 + 119: 00 + 120: 10 + 121: 00 + 122: 00 + 123: 00 + 124: 01 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 03 + 133: 00 + 134: 00 + 135: 00 + 136: 01 + 137: 00 + 138: 00 + 139: 00 + 140: 10 + 141: 00 + 142: 00 + 143: 00 + 144: 06 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 04 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 14 + 161: 00 + 162: 00 + 163: 00 + 164: 8a + 165: c1 + 166: 00 + 167: 00 + 168: 45 + 169: d1 + 170: 00 + 171: 00 + 172: 01 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 +event 95: data type 0x0000 of d122 unhandled, fill in (val=10). + 0: 10 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 02 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 + 20: 10 + 21: 00 + 22: 00 + 23: 00 + 24: 01 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 03 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 + 40: 10 + 41: 00 + 42: 00 + 43: 00 + 44: 01 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 02 + 53: 00 + 54: 00 + 55: 00 + 56: 01 + 57: 00 + 58: 00 + 59: 00 + 60: 10 + 61: 00 + 62: 00 + 63: 00 + 64: 01 + 65: 00 + 66: 00 + 67: 00 + 68: 02 + 69: 00 + 70: 00 + 71: 00 + 72: 03 + 73: 00 + 74: 00 + 75: 00 + 76: 01 + 77: 00 + 78: 00 + 79: 00 + 80: 10 + 81: 00 + 82: 00 + 83: 00 + 84: 01 + 85: 00 + 86: 00 + 87: 00 + 88: 02 + 89: 00 + 90: 00 + 91: 00 + 92: 02 + 93: 00 + 94: 00 + 95: 00 + 96: 02 + 97: 00 + 98: 00 + 99: 00 + 100: 10 + 101: 00 + 102: 00 + 103: 00 + 104: 06 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 04 + 113: 00 + 114: 00 + 115: 00 + 116: 10 + 117: 00 + 118: 00 + 119: 00 + 120: 01 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 03 + 129: 00 + 130: 00 + 131: 00 + 132: 01 + 133: 00 + 134: 00 + 135: 00 + 136: 10 + 137: 00 + 138: 00 + 139: 00 + 140: 06 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 04 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 14 + 157: 00 + 158: 00 + 159: 00 + 160: 8a + 161: c1 + 162: 00 + 163: 00 + 164: 45 + 165: d1 + 166: 00 + 167: 00 + 168: 01 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 14 + 177: 00 + 178: 00 + 179: 00 +event 95: data type 0x0000 of d122 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 02 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 10 + 17: 00 + 18: 00 + 19: 00 + 20: 01 + 21: 00 + 22: 00 + 23: 00 + 24: 01 + 25: 00 + 26: 00 + 27: 00 + 28: 03 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 10 + 37: 00 + 38: 00 + 39: 00 + 40: 01 + 41: 00 + 42: 00 + 43: 00 + 44: 01 + 45: 00 + 46: 00 + 47: 00 + 48: 02 + 49: 00 + 50: 00 + 51: 00 + 52: 01 + 53: 00 + 54: 00 + 55: 00 + 56: 10 + 57: 00 + 58: 00 + 59: 00 + 60: 01 + 61: 00 + 62: 00 + 63: 00 + 64: 02 + 65: 00 + 66: 00 + 67: 00 + 68: 03 + 69: 00 + 70: 00 + 71: 00 + 72: 01 + 73: 00 + 74: 00 + 75: 00 + 76: 10 + 77: 00 + 78: 00 + 79: 00 + 80: 01 + 81: 00 + 82: 00 + 83: 00 + 84: 02 + 85: 00 + 86: 00 + 87: 00 + 88: 02 + 89: 00 + 90: 00 + 91: 00 + 92: 02 + 93: 00 + 94: 00 + 95: 00 + 96: 10 + 97: 00 + 98: 00 + 99: 00 + 100: 06 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 04 + 109: 00 + 110: 00 + 111: 00 + 112: 10 + 113: 00 + 114: 00 + 115: 00 + 116: 01 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 03 + 125: 00 + 126: 00 + 127: 00 + 128: 01 + 129: 00 + 130: 00 + 131: 00 + 132: 10 + 133: 00 + 134: 00 + 135: 00 + 136: 06 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 04 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 14 + 153: 00 + 154: 00 + 155: 00 + 156: 8a + 157: c1 + 158: 00 + 159: 00 + 160: 45 + 161: d1 + 162: 00 + 163: 00 + 164: 01 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 14 + 173: 00 + 174: 00 + 175: 00 + 176: 8a + 177: c1 + 178: 00 + 179: 00 +event 96: EOS prop d145 desc record, datasize 0, propxtype 1 +event 96: propxtype is 1 for d145, unhandled. +event 97: EOS prop d150 desc record, datasize 0, propxtype 7 +event 97: propxtype is 7 for d150, unhandled. +event 98: EOS prop d151 desc record, datasize 0, propxtype 7 +event 98: propxtype is 7 for d151, unhandled. +event 99: EOS prop d152 desc record, datasize 0, propxtype 7 +event 99: propxtype is 7 for d152, unhandled. +event 100: EOS prop d153 desc record, datasize 0, propxtype 7 +event 100: propxtype is 7 for d153, unhandled. +event 101: EOS prop d154 desc record, datasize 0, propxtype 7 +event 101: propxtype is 7 for d154, unhandled. +event 102: EOS prop d155 desc record, datasize 0, propxtype 7 +event 102: propxtype is 7 for d155, unhandled. +event 103: EOS prop d160 desc record, datasize 0, propxtype 7 +event 103: propxtype is 7 for d160, unhandled. +event 104: EOS prop d161 desc record, datasize 0, propxtype 7 +event 104: propxtype is 7 for d161, unhandled. +event 105: EOS prop d162 desc record, datasize 0, propxtype 7 +event 105: propxtype is 7 for d162, unhandled. +event 106: EOS prop d170 desc record, datasize 0, propxtype 7 +event 106: propxtype is 7 for d170, unhandled. +event 107: EOS prop d171 desc record, datasize 0, propxtype 7 +event 107: propxtype is 7 for d171, unhandled. +event 108: EOS prop d172 desc record, datasize 0, propxtype 7 +event 108: propxtype is 7 for d172, unhandled. +event 109: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 109: propxtype is 7 for d1a0, unhandled. +event 110: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 110: propxtype is 7 for d1a1, unhandled. +event 111: EOS prop d1a2 desc record, datasize 0, propxtype 1 +event 111: propxtype is 1 for d1a2, unhandled. +event 112: EOS prop d1a8 desc record, datasize 8, propxtype 1 +event 112: propxtype is 1 for d1a8, unhandled. + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 +event 113: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 113: data type 0x0006 of d1a9 unhandled, fill in (val=0). + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 04 + 9: 00 + 10: 00 + 11: 00 + 12: 08 + 13: 00 + 14: 00 + 15: 00 + 16: ff + 17: 00 + 18: 00 + 19: 00 +event 113: data type 0x0006 of d1a9 unhandled, fill in (val=2). + 0: 02 + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 08 + 9: 00 + 10: 00 + 11: 00 + 12: ff + 13: 00 + 14: 00 + 15: 00 + 16: 14 + 17: 00 + 18: 00 + 19: 00 +event 113: data type 0x0006 of d1a9 unhandled, fill in (val=4). + 0: 04 + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: ff + 9: 00 + 10: 00 + 11: 00 + 12: 14 + 13: 00 + 14: 00 + 15: 00 + 16: 8a + 17: c1 + 18: 00 + 19: 00 +event 113: data type 0x0006 of d1a9 unhandled, fill in (val=8). + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: ff + 5: 00 + 6: 00 + 7: 00 + 8: 14 + 9: 00 + 10: 00 + 11: 00 + 12: 8a + 13: c1 + 14: 00 + 15: 00 + 16: ab + 17: d1 + 18: 00 + 19: 00 +event 113: data type 0x0006 of d1a9 unhandled, fill in (val=ff). + 0: ff + 1: 00 + 2: 00 + 3: 00 + 4: 14 + 5: 00 + 6: 00 + 7: 00 + 8: 8a + 9: c1 + 10: 00 + 11: 00 + 12: ab + 13: d1 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 +event 114: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 114: propxtype is 1 for d1ab, unhandled. +event 115: EOS prop d1ac desc record, datasize 0, propxtype 1 +event 115: propxtype is 1 for d1ac, unhandled. +event 116: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 116: propxtype is 1 for d1ad, unhandled. +event 117: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 117: propxtype is 1 for d1ae, unhandled. +event 118: EOS prop d1af desc record, datasize 0, propxtype 1 +event 118: propxtype is 1 for d1af, unhandled. +event 119: EOS prop d1b0 desc record, datasize 8, propxtype 3 +event 119: data type 0x0006 of d1b0 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 +event 119: data type 0x0006 of d1b0 unhandled, fill in (val=2). + 0: 02 + 1: 00 + 2: 00 + 3: 00 + 4: 1c + 5: 00 + 6: 00 + 7: 00 +event 120: EOS prop d1b1 desc record, datasize 8, propxtype 3 +event 120: data type 0x0006 of d1b1 unhandled, fill in (val=0). + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 +event 120: data type 0x0006 of d1b1 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 14 + 5: 00 + 6: 00 + 7: 00 +event 121: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 121: propxtype is 7 for d1b2, unhandled. +event 122: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 122: propxtype is 7 for d1b3, unhandled. +event 123: EOS prop d1b4 desc record, datasize 40, propxtype 3 +event 123: data type 0x0006 of d1b4 unhandled, fill in (val=0). + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 08 + 9: 00 + 10: 00 + 11: 00 + 12: 02 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 04 + 21: 00 + 22: 00 + 23: 00 + 24: 05 + 25: 00 + 26: 00 + 27: 00 + 28: 06 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 80 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 +event 123: data type 0x0006 of d1b4 unhandled, fill in (val=1). + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 02 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 05 + 21: 00 + 22: 00 + 23: 00 + 24: 06 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 80 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 14 + 37: 00 + 38: 00 + 39: 00 +event 123: data type 0x0006 of d1b4 unhandled, fill in (val=8). + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 05 + 17: 00 + 18: 00 + 19: 00 + 20: 06 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 80 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 14 + 33: 00 + 34: 00 + 35: 00 + 36: 8a + 37: c1 + 38: 00 + 39: 00 +event 123: data type 0x0006 of d1b4 unhandled, fill in (val=2). + 0: 02 + 1: 00 + 2: 00 + 3: 00 + 4: 03 + 5: 00 + 6: 00 + 7: 00 + 8: 04 + 9: 00 + 10: 00 + 11: 00 + 12: 05 + 13: 00 + 14: 00 + 15: 00 + 16: 06 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 80 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 14 + 29: 00 + 30: 00 + 31: 00 + 32: 8a + 33: c1 + 34: 00 + 35: 00 + 36: b5 + 37: d1 + 38: 00 + 39: 00 +event 123: data type 0x0006 of d1b4 unhandled, fill in (val=3). + 0: 03 + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 05 + 9: 00 + 10: 00 + 11: 00 + 12: 06 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 80 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 14 + 25: 00 + 26: 00 + 27: 00 + 28: 8a + 29: c1 + 30: 00 + 31: 00 + 32: b5 + 33: d1 + 34: 00 + 35: 00 + 36: 07 + 37: 00 + 38: 00 + 39: 00 +event 123: data type 0x0006 of d1b4 unhandled, fill in (val=4). + 0: 04 + 1: 00 + 2: 00 + 3: 00 + 4: 05 + 5: 00 + 6: 00 + 7: 00 + 8: 06 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 80 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 14 + 21: 00 + 22: 00 + 23: 00 + 24: 8a + 25: c1 + 26: 00 + 27: 00 + 28: b5 + 29: d1 + 30: 00 + 31: 00 + 32: 07 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 +event 123: data type 0x0006 of d1b4 unhandled, fill in (val=5). + 0: 05 + 1: 00 + 2: 00 + 3: 00 + 4: 06 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 80 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 14 + 17: 00 + 18: 00 + 19: 00 + 20: 8a + 21: c1 + 22: 00 + 23: 00 + 24: b5 + 25: d1 + 26: 00 + 27: 00 + 28: 07 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 14 + 37: 00 + 38: 00 + 39: 00 +event 123: data type 0x0006 of d1b4 unhandled, fill in (val=6). + 0: 06 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 80 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 14 + 13: 00 + 14: 00 + 15: 00 + 16: 8a + 17: c1 + 18: 00 + 19: 00 + 20: b5 + 21: d1 + 22: 00 + 23: 00 + 24: 07 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 14 + 33: 00 + 34: 00 + 35: 00 + 36: 8a + 37: c1 + 38: 00 + 39: 00 +event 123: data type 0x0006 of d1b4 unhandled, fill in (val=8000). + 0: 00 + 1: 80 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 14 + 9: 00 + 10: 00 + 11: 00 + 12: 8a + 13: c1 + 14: 00 + 15: 00 + 16: b5 + 17: d1 + 18: 00 + 19: 00 + 20: 07 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 14 + 29: 00 + 30: 00 + 31: 00 + 32: 8a + 33: c1 + 34: 00 + 35: 00 + 36: 7f + 37: d1 + 38: 00 + 39: 00 +event 124: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 124: propxtype is 7 for d1b5, unhandled. +event 125: EOS prop d17f desc record, datasize 0, propxtype 1 +event 125: propxtype is 1 for d17f, unhandled. +event 126: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 126: propxtype is 1 for d1b7, unhandled. + + +/main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 +/main/actions/uilock + Label: UI Lock + Type: TOGGLE + Current: 2 +/main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 +/main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 +/main/actions/eoszoom + Label: Canon EOS Zoom + Type: TEXT + Current: 0 +/main/actions/eoszoomposition + Label: Canon EOS Zoom Position + Type: TEXT + Current: 0,0 +/main/actions/eosviewfinder + Label: Canon EOS Viewfinder + Type: TOGGLE + Current: 2 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1337727664 + Printable: Wed May 23 01:01:04 2012 +/main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 4 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold +/main/settings/output + Label: Camera Output + Type: RADIO + Current: Unknown value 0000 + Choice: 0 TFT + Choice: 1 PC + Choice: 2 Unknown value 0000 +/main/settings/evfmode + Label: EVF Mode + Type: RADIO + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/settings/ownername + Label: Owner Name + Type: TEXT + Current: Marcus Meissner +/main/settings/customfuncex + Label: Custom Functions Ex + Type: TEXT + Current: c8,4,1,20,2,101,1,0,10f,1,0,2,2c,3,201,1,0,202,1,0,204,1,0,3,2c,3,50e,1,0,511,1,0,60f,1,0,4,38,4,701,1,0,704,1,0,811,1,0,80f,1,0, +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 0 +/main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484244 +/main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 +/main/status/dpofversion + Label: DPOF Version + Type: TEXT + Current: 257 +/main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% +/main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 1780314346 +/main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 4832 +/main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 26 +/main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: RAW + Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW +/main/imgsettings/imageformatsd + Label: Image Format SD + Type: RADIO + Current: RAW + Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 100 + Choice: 2 200 + Choice: 3 400 + Choice: 4 800 + Choice: 5 1600 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual +/main/imgsettings/whitebalanceadjusta + Label: WhiteBalance Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 +/main/imgsettings/whitebalanceadjustb + Label: WhiteBalance Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 +/main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 +/main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 +/main/imgsettings/colorspace + Label: Color Space + Type: RADIO + Current: sRGB + Choice: 0 sRGB + Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 -2 + Choice: 1 -1.6 + Choice: 2 -1.3 + Choice: 3 -1.0 + Choice: 4 -0.6 + Choice: 5 -0.3 + Choice: 6 0 + Choice: 7 0.3 + Choice: 8 0.6 + Choice: 9 1.0 + Choice: 10 1.3 + Choice: 11 1.6 + Choice: 12 2 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: AI Servo + Choice: 0 One Shot + Choice: 1 AI Focus + Choice: 2 AI Servo +/main/capturesettings/autoexposuremode + Label: Canon Auto Exposure Mode + Type: RADIO + Current: AV + Choice: 0 P + Choice: 1 TV + Choice: 2 AV + Choice: 3 Manual + Choice: 4 Bulb + Choice: 5 A_DEP + Choice: 6 DEP + Choice: 7 Custom + Choice: 8 Lock + Choice: 9 Green + Choice: 10 Night Portrait + Choice: 11 Sports + Choice: 12 Portrait + Choice: 13 Landscape + Choice: 14 Closeup + Choice: 15 Flash Off +/main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Continuous + Choice: 0 Single + Choice: 1 Continuous + Choice: 2 Timer 10 sec + Choice: 3 Timer 2 sec +/main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 +/main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 4.5 + Choice: 0 4 + Choice: 1 4.5 + Choice: 2 5 + Choice: 3 5.6 + Choice: 4 6.3 + Choice: 5 7.1 + Choice: 6 8 + Choice: 7 9 + Choice: 8 10 + Choice: 9 11 + Choice: 10 13 + Choice: 11 14 + Choice: 12 16 + Choice: 13 18 + Choice: 14 20 + Choice: 15 22 + Choice: 16 25 + Choice: 17 29 +/main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: Evaluative + Choice: 0 Evaluative + Choice: 1 Partial + Choice: 2 Center-weighted average +/main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 +/main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 1000D +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-1100d-rebelt3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-1100d-rebelt3.txt new file mode 100644 index 00000000..15943d74 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-1100d-rebelt3.txt @@ -0,0 +1,282 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS REBEL T3 + Version: 3-1.0.5 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (2.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7813988352 (7452 MB) + Free Space (Bytes): 7759986688 (7400 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS REBEL T3' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1328747980 +Printable: Wed Feb 8 19:39:40 2012 +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Unknown value 0000 +Choice: 0 TFT +Choice: 1 PC +Choice: 2 TFT + PC +Choice: 3 Unknown value 0004 +Choice: 4 Unknown value 0005 +Choice: 5 Unknown value 0006 +Choice: 6 Unknown value 0007 +Choice: 7 Unknown value 0000 +/main/settings/movierecord +Label: Movie Recording +Type: TEXT +Current: 0 +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d105,9, +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS REBEL T3 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.0.5 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484296 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-S18-55mm f/3.5-5.6 III +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 172163154146 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 30903 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 233014 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Smaller JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: Smaller JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: Green +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Timer 10 sec +Choice: 2 Unknown value 0007 +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS REBEL T3 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-1dx.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-1dx.txt new file mode 100644 index 00000000..14a8af8d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-1dx.txt @@ -0,0 +1,576 @@ + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS-1D X + Version: 3-2.0.9 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button + +Storage Devices Summary: +store_00010001: + StorageDescription: CF1 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 64014548992 (61049 MB) + Free Space (Bytes): 64014385152 (61048 MB) + Free Space (Images): -1 +store_00020001: + StorageDescription: CF2 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 64014548992 (61049 MB) + Free Space (Bytes): 64014385152 (61048 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS-1D X' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/10.0.14393 MTPClassDriver/10.0.14393.0' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 50% (50) + +/main/actions/syncdatetimeutc +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/cancelautofocus +Label: Cancel Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetimeutc +Label: Camera Date and Time +Type: DATE +Current: 1483268472 +Printable: Sun Jan 1 11:01:12 2017 +Help: Use 'now' as the current time when setting. + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1483268472 +Printable: Sun Jan 1 11:01:12 2017 +Help: Use 'now' as the current time when setting. + +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Setting 4 +Choice: 5 Setting 5 +Choice: 6 Setting 6 +Choice: 7 Setting 7 +/main/settings/movierecordtarget +Label: Recording Destination +Type: RADIO +Current: None +Choice: 0 None +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: Unknown value 0002 +Choice: 0 0 +Choice: 1 1 +Choice: 2 Unknown value 0002 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: Goran Lowkrantz +/main/settings/artist +Label: Artist +Type: TEXT +Current: Goran Lowkrantz +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: All Rights Reserved +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 174,1,4,168,a,70c,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,ff,ff,0,3,70,30,0,0,0,0,0,0,0,0,0,0,0,14,50,0,0,0,7,0,706,1,0,707,1,0,70f,2,0,2,709,2,1,1f,80e,1,0,80c,4,0,6,10,2,80d,1,0,812,1,0,813,1,0, +/main/settings/focusinfo +Label: Focus Info +Type: TEXT +Current: eosversion=2,size=5184x3456,size2=5184x3456,points={{259,-584,169,171},{0,-584,169,171},{-259,-584,169,171},{1368,-390,169,171},{1109,-390,169,171},{850,-390,169,171},{575,-390,169,171},{259,-390,169,171},{0,-390,169,171},{-1368,-390,169,171},{-1109,-390,169,171},{-850,-390,169,171},{-575,-390,169,171},{-259,-390,169,171},{1368,-193,169,171},{1109,-193,169,171},{850,-193,169,171},{575,-193,169,171},{259,-193,169,171},{0,-193,169,171},{-1368,-193,169,171},{-1109,-193,169,171},{-850,-193,169,171},{-575,-193,169,171},{-259,-193,169,171},{1368,0,169,171},{1109,0,169,171},{850,0,169,171},{575,0,169,171},{259,0,169,171},{0,0,169,171},{-1368,0,169,171},{-1109,0,169,171},{-850,0,169,171},{-575,0,169,171},{-259,0,169,171},{1368,193,169,171},{1109,193,169,171},{850,193,169,171},{575,193,169,171},{259,193,169,171},{0,193,169,171},{-1368,193,169,171},{-1109,193,169,171},{-850,193,169,171},{-575,193,169,171},{-259,193,169,171},{1368,390,169,171},{1109,390,169,171},{850,390,169,171},{575,390,169,171},{259,390,169,171},{0,390,169,171},{-1368,390,169,171},{-1109,390,169,171},{-850,390,169,171},{-575,390,169,171},{-259,390,169,171},{259,584,169,171},{0,584,169,171},{-259,584,169,171}},select={},unknown={00000040000000000000000000000000ffff} +/main/settings/focusarea +Label: Focus Area +Type: TEXT +Current: 63 +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 120 +/main/settings/depthoffield +Label: Depth of Field +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS-1D X +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-2.0.9 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484265 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/Battery Level +Label: Battery Level +Type: TEXT +Current: 50% +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 50% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF16-35mm f/2.8L II USM +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 123017000159 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 24879 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 8343 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Unknown value 0450 +Choice: 0 Unknown value 0000 +Choice: 1 Unknown value 5000 +Choice: 2 Unknown value 6000 +Choice: 3 Unknown value 2000 +Choice: 4 RAW +Choice: 5 Unknown value 0450 +Choice: 6 Unknown value 0460 +Choice: 7 Unknown value 0420 +Choice: 8 mRAW +Choice: 9 Unknown value 1450 +Choice: 10 Unknown value 1460 +Choice: 11 Unknown value 1420 +Choice: 12 sRAW +Choice: 13 Unknown value 2450 +Choice: 14 Unknown value 2460 +Choice: 15 Unknown value 2420 +Choice: 16 RAW +Choice: 17 mRAW +Choice: 18 sRAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: Unknown value 0450 +Choice: 0 Unknown value 0000 +Choice: 1 Unknown value 5000 +Choice: 2 Unknown value 6000 +Choice: 3 Unknown value 2000 +Choice: 4 RAW +Choice: 5 Unknown value 0450 +Choice: 6 Unknown value 0460 +Choice: 7 Unknown value 0420 +Choice: 8 mRAW +Choice: 9 Unknown value 1450 +Choice: 10 Unknown value 1460 +Choice: 11 Unknown value 1420 +Choice: 12 sRAW +Choice: 13 Unknown value 2450 +Choice: 14 Unknown value 2460 +Choice: 15 Unknown value 2420 +Choice: 16 RAW +Choice: 17 mRAW +Choice: 18 sRAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: Unknown value 0450 +Choice: 0 Unknown value 0000 +Choice: 1 Unknown value 5000 +Choice: 2 Unknown value 6000 +Choice: 3 Unknown value 2000 +Choice: 4 RAW +Choice: 5 Unknown value 0450 +Choice: 6 Unknown value 0460 +Choice: 7 Unknown value 0420 +Choice: 8 mRAW +Choice: 9 Unknown value 1450 +Choice: 10 Unknown value 1460 +Choice: 11 Unknown value 1420 +Choice: 12 sRAW +Choice: 13 Unknown value 2450 +Choice: 14 Unknown value 2460 +Choice: 15 Unknown value 2420 +Choice: 16 RAW +Choice: 17 mRAW +Choice: 18 sRAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 25600 +Choice: 0 Auto +Choice: 1 100 +Choice: 2 125 +Choice: 3 160 +Choice: 4 200 +Choice: 5 250 +Choice: 6 320 +Choice: 7 400 +Choice: 8 500 +Choice: 9 640 +Choice: 10 800 +Choice: 11 1000 +Choice: 12 1250 +Choice: 13 1600 +Choice: 14 2000 +Choice: 15 2500 +Choice: 16 3200 +Choice: 17 4000 +Choice: 18 5000 +Choice: 19 6400 +Choice: 20 8000 +Choice: 21 10000 +Choice: 22 12800 +Choice: 23 16000 +Choice: 24 20000 +Choice: 25 25600 +Choice: 26 Unknown value 008b +Choice: 27 Unknown value 008d +Choice: 28 51200 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +Choice: 8 Unknown value 000f +Choice: 9 Unknown value 0010 +Choice: 10 Unknown value 0012 +Choice: 11 Unknown value 0013 +Choice: 12 Color Temperature +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 5200 +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: AdobeRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 -4.3 +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: P +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous high speed +Choice: 2 Continuous low speed +Choice: 3 Timer 10 sec +Choice: 4 Timer 2 sec +Choice: 5 Unknown value 0006 +Choice: 6 Unknown value 0012 +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Neutral +Choice: 0 Auto +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +/main/capturesettings/aperture +Label: Aperture +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Unknown value 0000 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: auto +Choice: 0 auto +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +Choice: 7 +/- 2 1/3 +Choice: 8 +/- 2 2/3 +Choice: 9 +/- 3 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS-1D X +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/10.0.14393 MTPClassDriver/10.0.14393.0 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 50 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-700d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-700d.txt new file mode 100644 index 00000000..570112b8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-700d.txt @@ -0,0 +1,830 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 700D + Version: 3-1.1.1 + Serial Number: xxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 7939391488 (7571 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 700D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1366989522 +Printable: Fri 26 Apr 2013 05:18:42 PM CEST +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Undefined +Choice: 0 Undefined +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +/main/settings/movierecord +Label: Movie Recording +Type: TEXT +Current: 0 +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d105,0, +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 30 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: ded483777464d3a +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 700D +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.1.1 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484454 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-S18-55mm f/3.5-5.6 IS STM +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 033031006315 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 20 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 253 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: RAW +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: RAW +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +Choice: 4 800 +Choice: 5 1600 +Choice: 6 3200 +Choice: 7 6400 +Choice: 8 12800 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 Unknown value 00dd +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: P +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous +Choice: 2 Timer 10 sec +Choice: 3 Timer 2 sec +Choice: 4 Unknown value 0007 +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Unknown value 0087 +Choice: 0 Unknown value 0087 +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +Choice: 10 Unknown value 0087 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 700D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. +UNKNOWN PTP Property d105 changed +UNKNOWN PTP Property d108 changed +UNKNOWN PTP Property d106 changed +UNKNOWN PTP Property d107 changed +UNKNOWN PTP Property d109 changed +UNKNOWN PTP Property d10a changed +UNKNOWN PTP Property d10b changed +UNKNOWN PTP Property d10c changed +UNKNOWN PTP Property d10d changed +UNKNOWN PTP Property d10e changed +UNKNOWN PTP Property d10f changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d114 changed +UNKNOWN PTP Property d116 changed +UNKNOWN PTP Property d119 changed +UNKNOWN PTP Property d110 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d103 changed +UNKNOWN PTP Property d104 changed +UNKNOWN PTP Property d11d changed +UNKNOWN PTP Property d111 changed +UNKNOWN PTP Property d112 changed +UNKNOWN PTP Property d113 changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d156 changed +UNKNOWN PTP Property d150 changed +UNKNOWN PTP Property d151 changed +UNKNOWN PTP Property d152 changed +UNKNOWN PTP Property d153 changed +UNKNOWN PTP Property d154 changed +UNKNOWN PTP Property d155 changed +UNKNOWN PTP Property d160 changed +UNKNOWN PTP Property d161 changed +UNKNOWN PTP Property d162 changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a1 changed +UNKNOWN PTP Property d1a8 changed +UNKNOWN PTP Property d1a7 changed +UNKNOWN PTP Property d1ab changed +UNKNOWN PTP Property d1b0 changed +UNKNOWN PTP Property d1b1 changed +UNKNOWN PTP Property d1b2 changed +UNKNOWN PTP Property d1b3 changed +UNKNOWN PTP Property d1b4 changed +UNKNOWN PTP Property d1b5 changed +UNKNOWN PTP Property d1b6 changed +UNKNOWN PTP Property d1a9 changed +UNKNOWN PTP Property d146 changed +UNKNOWN PTP Property d1ac changed +UNKNOWN PTP Property d1aa changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d11f changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1ba changed +UNKNOWN PTP Property d1cc changed +UNKNOWN PTP Property d1bc changed +UNKNOWN PTP Property d1b8 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1d8 changed +UNKNOWN PTP Property d1b7 changed +UNKNOWN PTP Property d1cb changed +UNKNOWN PTP Property d1db changed +UNKNOWN PTP Property d1dc changed +UNKNOWN PTP Property d1a4 changed +UNKNOWN PTP Property d1df changed +UNKNOWN PTP Property d1bd changed +UNKNOWN PTP Property d1c1 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1c4 changed +UNKNOWN PTP Property d1c2 changed +UNKNOWN PTP Property d1c5 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d195 changed +UNKNOWN PTP Property d196 changed +UNKNOWN PTP Property d197 changed +UNKNOWN PTP Property d198 changed +UNKNOWN PTP Property d1dd changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d199 changed +UNKNOWN PTP Property d138 changed +UNKNOWN PTP Property d139 changed +UNKNOWN PTP Property d13a changed +UNKNOWN PTP Property d13c changed +UNKNOWN PTP Property d13d changed +UNKNOWN PTP Property d14d changed +UNKNOWN PTP Property d19a changed +UNKNOWN PTP Property d19c changed +UNKNOWN PTP Property d17c changed +UNKNOWN PTP Property d17d changed +UNKNOWN PTP Property d17e changed +UNKNOWN PTP Property d1c6 changed +UNKNOWN PTP Property d1c8 changed +UNKNOWN PTP Property d178 changed +UNKNOWN PTP Property d179 changed +UNKNOWN PTP Property d17a changed +UNKNOWN PTP Property d17b changed +UNKNOWN PTP Property d1c9 changed +UNKNOWN PTP Property d137 changed +UNKNOWN PTP Property d115 changed +UNKNOWN PTP Property d1d0 changed +UNKNOWN PTP Property d1d1 changed +UNKNOWN PTP Property d1af changed +UNKNOWN PTP Property d105 changed +UNKNOWN PTP Property d108 changed +UNKNOWN PTP Property d106 changed +UNKNOWN PTP Property d107 changed +UNKNOWN PTP Property d109 changed +UNKNOWN PTP Property d10a changed +UNKNOWN PTP Property d10b changed +UNKNOWN PTP Property d10c changed +UNKNOWN PTP Property d10d changed +UNKNOWN PTP Property d10e changed +UNKNOWN PTP Property d10f changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d114 changed +UNKNOWN PTP Property d116 changed +UNKNOWN PTP Property d119 changed +UNKNOWN PTP Property d110 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d103 changed +UNKNOWN PTP Property d104 changed +UNKNOWN PTP Property d11d changed +UNKNOWN PTP Property d111 changed +UNKNOWN PTP Property d112 changed +UNKNOWN PTP Property d113 changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d156 changed +UNKNOWN PTP Property d150 changed +UNKNOWN PTP Property d151 changed +UNKNOWN PTP Property d152 changed +UNKNOWN PTP Property d153 changed +UNKNOWN PTP Property d154 changed +UNKNOWN PTP Property d155 changed +UNKNOWN PTP Property d160 changed +UNKNOWN PTP Property d161 changed +UNKNOWN PTP Property d162 changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a1 changed +UNKNOWN PTP Property d1a8 changed +UNKNOWN PTP Property d1a7 changed +UNKNOWN PTP Property d1ab changed +UNKNOWN PTP Property d1b0 changed +UNKNOWN PTP Property d1b1 changed +UNKNOWN PTP Property d1b2 changed +UNKNOWN PTP Property d1b3 changed +UNKNOWN PTP Property d1b4 changed +UNKNOWN PTP Property d1b5 changed +UNKNOWN PTP Property d1b6 changed +UNKNOWN PTP Property d1a9 changed +UNKNOWN PTP Property d146 changed +UNKNOWN PTP Property d1ac changed +UNKNOWN PTP Property d1aa changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d11f changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1ba changed +UNKNOWN PTP Property d1cc changed +UNKNOWN PTP Property d1bc changed +UNKNOWN PTP Property d1b8 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1d8 changed +UNKNOWN PTP Property d1b7 changed +UNKNOWN PTP Property d1cb changed +UNKNOWN PTP Property d1db changed +UNKNOWN PTP Property d1dc changed +UNKNOWN PTP Property d1a4 changed +UNKNOWN PTP Property d1df changed +UNKNOWN PTP Property d1bd changed +UNKNOWN PTP Property d1c1 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1c4 changed +UNKNOWN PTP Property d1c2 changed +UNKNOWN PTP Property d1c5 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d195 changed +UNKNOWN PTP Property d196 changed +UNKNOWN PTP Property d197 changed +UNKNOWN PTP Property d198 changed +UNKNOWN PTP Property d1dd changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d199 changed +UNKNOWN PTP Property d138 changed +UNKNOWN PTP Property d139 changed +UNKNOWN PTP Property d13a changed +UNKNOWN PTP Property d13c changed +UNKNOWN PTP Property d13d changed +UNKNOWN PTP Property d14d changed +UNKNOWN PTP Property d19a changed +UNKNOWN PTP Property d19c changed +UNKNOWN PTP Property d17c changed +UNKNOWN PTP Property d17d changed +UNKNOWN PTP Property d17e changed +UNKNOWN PTP Property d1c6 changed +UNKNOWN PTP Property d1c8 changed +UNKNOWN PTP Property d178 changed +UNKNOWN PTP Property d179 changed +UNKNOWN PTP Property d17a changed +UNKNOWN PTP Property d17b changed +UNKNOWN PTP Property d1c9 changed +UNKNOWN PTP Property d137 changed +UNKNOWN PTP Property d115 changed +UNKNOWN PTP Property d1d0 changed +UNKNOWN PTP Property d1d1 changed +UNKNOWN PTP Property d1af changed +New file is in location /store_00020001/DCIM/100CANON/IMG_0001.CR2 on the camera + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 700D + device version: 3-1.1.1 + serial number: 'xxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1014 + 0x1015 + 0x1016 + 0x91d5 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x912d + 0x912e + 0x912f + 0x912c + 0x9130 + 0x9131 + 0x9132 + 0x9133 + 0x9134 + 0x912b + 0x9135 + 0x9136 + 0x9137 + 0x9138 + 0x9139 + 0x913a + 0x913b + 0x913c + 0x913d + 0x913f + 0x91da + 0x91db + 0x91dc + 0x91dd + 0x91de + 0x91d8 + 0x91d9 + 0x91d7 + 0x913e + 0x9113 + 0x9114 + 0x9115 + 0x9116 + 0x915b + 0x91c0 + 0x91c1 + 0x91c2 + 0x91c3 + 0x91c4 + 0x91c5 + 0x91c6 + 0x91c7 + 0x91c8 + 0x91c9 + 0x91ca + 0x91cb + 0x91cc + 0x91ce + 0x91cf + 0x91d0 + 0x91d1 + 0x91d2 + 0x91e1 + 0x91e2 + 0x91e3 + 0x91e4 + 0x91e5 + 0x91e6 + 0x91e7 + 0x91e8 + 0x91e9 + 0x91ea + 0x91eb + 0x91ec + 0x91ed + 0x91ee + 0x91ef + 0x91f8 + 0x91f9 + 0x91f2 + 0x91f3 + 0x91f4 + 0x91f7 + 0x91df + 0x91fb + 0x91fc + 0x91fd + 0x9122 + 0x9123 + 0x9124 + 0x91f5 + 0x91f6 + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905f +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m.txt new file mode 100644 index 00000000..5c81f7e5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m.txt @@ -0,0 +1,221 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS M + device version: 3-1.0.6 + serial number: 'xxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 200 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x91d5 + 0x101b + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b + 0x910c + 0x910e + 0x9110 + 0x9113 + 0x9114 + 0x9115 + 0x9116 + 0x9117 + 0x9118 + 0x911b + 0x911c + 0x911d + 0x911e + 0x911f + 0x9127 + 0x912c + 0x9132 + 0x9135 + 0x9136 + 0x9137 + 0x9138 + 0x9139 + 0x913a + 0x913b + 0x913c + 0x913f + 0x913d + 0x91da + 0x91db + 0x91dc + 0x91dd + 0x91de + 0x91d8 + 0x91d9 + 0x91d7 + 0x913e + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905f +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS M + Version: 3-1.0.6 + Serial Number: xxxxxxx +Vendor Extension ID: 0xb (2.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS M' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 + attery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + + +print_debug_deviceinfo (2): Device info: +print_debug_deviceinfo (2): Manufacturer: Canon Inc. +print_debug_deviceinfo (2): Model: Canon EOS M +print_debug_deviceinfo (2): device version: 3-2.0.2 +print_debug_deviceinfo (2): serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +print_debug_deviceinfo (2): Vendor extension ID: 0x0000000b +print_debug_deviceinfo (2): Vendor extension version: 200 +print_debug_deviceinfo (2): Vendor extension description: (null) +print_debug_deviceinfo (2): Functional Mode: 0x0000 +print_debug_deviceinfo (2): PTP Standard Version: 100 +print_debug_deviceinfo (2): Supported operations: +print_debug_deviceinfo (2): 0x1001 (Get device info) +print_debug_deviceinfo (2): 0x1002 (Open session) +print_debug_deviceinfo (2): 0x1003 (Close session) +print_debug_deviceinfo (2): 0x1004 (Get storage IDs) +print_debug_deviceinfo (2): 0x1005 (Get storage info) +print_debug_deviceinfo (2): 0x1006 (Get number of objects) +print_debug_deviceinfo (2): 0x1007 (Get object handles) +print_debug_deviceinfo (2): 0x1008 (Get object info) +print_debug_deviceinfo (2): 0x1009 (Get object) +print_debug_deviceinfo (2): 0x100a (Get thumbnail) +print_debug_deviceinfo (2): 0x100b (Delete object) +print_debug_deviceinfo (2): 0x100c (Send object info) +print_debug_deviceinfo (2): 0x100d (Send object) +print_debug_deviceinfo (2): 0x100f (Format storage) +print_debug_deviceinfo (2): 0x1014 (Get device property description) +print_debug_deviceinfo (2): 0x1015 (Get device property value) +print_debug_deviceinfo (2): 0x1016 (Set device property value) +print_debug_deviceinfo (2): 0x91d5 (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x101b (Get partial object) +print_debug_deviceinfo (2): 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) +print_debug_deviceinfo (2): 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) +print_debug_deviceinfo (2): 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) +print_debug_deviceinfo (2): 0x9104 (PTP_OC_CANON_EOS_GetObject) +print_debug_deviceinfo (2): 0x9105 (PTP_OC_CANON_EOS_DeleteObject) +print_debug_deviceinfo (2): 0x9106 (PTP_OC_CANON_EOS_FormatStore) +print_debug_deviceinfo (2): 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) +print_debug_deviceinfo (2): 0x9108 (PTP_OC_CANON_EOS_GetDeviceInfoEx) +print_debug_deviceinfo (2): 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) +print_debug_deviceinfo (2): 0x910a (PTP_OC_CANON_EOS_GetThumbEx) +print_debug_deviceinfo (2): 0x910b (PTP_OC_CANON_EOS_SendPartialObject) +print_debug_deviceinfo (2): 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) +print_debug_deviceinfo (2): 0x910e (PTP_OC_CANON_EOS_SetObjectTime) +print_debug_deviceinfo (2): 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) +print_debug_deviceinfo (2): 0x9113 (PTP_OC_CANON_EOS_GetRemoteMode) +print_debug_deviceinfo (2): 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) +print_debug_deviceinfo (2): 0x9115 (PTP_OC_CANON_EOS_SetEventMode) +print_debug_deviceinfo (2): 0x9116 (PTP_OC_CANON_EOS_GetEvent) +print_debug_deviceinfo (2): 0x9117 (PTP_OC_CANON_EOS_TransferComplete) +print_debug_deviceinfo (2): 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) +print_debug_deviceinfo (2): 0x911b (PTP_OC_CANON_EOS_SetUILock) +print_debug_deviceinfo (2): 0x911c (PTP_OC_CANON_EOS_ResetUILock) +print_debug_deviceinfo (2): 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) +print_debug_deviceinfo (2): 0x911e (PTP_OC_CANON_EOS_SetNullPacketMode) +print_debug_deviceinfo (2): 0x911f (PTP_OC_CANON_EOS_UpdateFirmware) +print_debug_deviceinfo (2): 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) +print_debug_deviceinfo (2): 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) +print_debug_deviceinfo (2): 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) +print_debug_deviceinfo (2): 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) +print_debug_deviceinfo (2): 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) +print_debug_deviceinfo (2): 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) +print_debug_deviceinfo (2): 0x9138 (PTP_OC_CANON_EOS_GetMusicInfo) +print_debug_deviceinfo (2): 0x9139 (PTP_OC_CANON_EOS_CreateHandle) +print_debug_deviceinfo (2): 0x913a (PTP_OC_CANON_EOS_SendPartialObjectEx) +print_debug_deviceinfo (2): 0x913b (PTP_OC_CANON_EOS_EndSendPartialObjectEx) +print_debug_deviceinfo (2): 0x913c (PTP_OC_CANON_EOS_SetCTGInfo) +print_debug_deviceinfo (2): 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) +print_debug_deviceinfo (2): 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) +print_debug_deviceinfo (2): 0x91da (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x91db (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x91dc (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x91dd (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x91de (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x91d8 (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x91d9 (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x91d7 (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x913e (PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel) +print_debug_deviceinfo (2): 0x9052 (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x9053 (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x9057 (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x9058 (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x9059 (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x905a (Unknown PTP_OC) +print_debug_deviceinfo (2): 0x905f (Unknown PTP_OC) +print_debug_deviceinfo (2): Events Supported: +print_debug_deviceinfo (2): 0x4009 +print_debug_deviceinfo (2): 0x4004 +print_debug_deviceinfo (2): 0x4005 +print_debug_deviceinfo (2): 0x4003 +print_debug_deviceinfo (2): 0x4002 +print_debug_deviceinfo (2): 0x4007 +print_debug_deviceinfo (2): 0xc101 +print_debug_deviceinfo (2): Device Properties Supported: +print_debug_deviceinfo (2): 0xd402 +print_debug_deviceinfo (2): 0xd407 +print_debug_deviceinfo (2): 0xd406 +print_debug_deviceinfo (2): 0xd303 +print_debug_deviceinfo (2): 0x5001 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m10.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m10.txt new file mode 100644 index 00000000..0d2e46a7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m10.txt @@ -0,0 +1,1599 @@ +Kamerazusammenfassung: +Hersteller: Canon Inc. +Modell: Canon EOS M10 + Version: 3-14.0.1.0 + Seriennummer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Aufnahmeformate: JPEG +Anzeigeformate: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Canon EOS Capture 2 + +Informationen über Speichermedium: + +Properties des Geräts: +Event Emulations Modus(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Datengröße beim Transfer von der Kamera(0xd02e):(read only) (type=0x6) 524288 +Datengröße beim Transfer zur Kamera(0xd02f):(read only) (type=0x6) 524288 +Batterie Ladezustand(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Batterietyp(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Batteriemodus(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Zeit(0xd034):(readwrite) (type=0x6) 1490793637 +Art der Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Kamera API Version(0xd030):(read only) (type=0x6) 256 +Modell ID(0xd049):(read only) (type=0x6) 58982400 +Kameramodell(0xd032):(read only) (type=0xffff) 'Canon EOS M10' +Kamerabesitzer(0xd033):(readwrite) (type=0x4002) a[0] +Firmware-Version(0xd031):(read only) (type=0x6) 16842752 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x0) Undefined +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053:(readwrite) (type=0x4002) a[0] +Property 0xd054:(readwrite) (type=0x4002) a[0] +Property 0xd057:(read only) (type=0xffff) '313031005103' +Property 0xd402:(read only) (type=0xffff) 'Canon EOS M10' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetimeutc +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/cancelautofocus +Label: Cancel Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetimeutc +Label: Camera Date and Time +Type: DATE +Current: 1490790060 +Printable: Wed Mar 29 14:21:00 2017 +Help: Use 'now' as the current time when setting. + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1490786460 +Printable: Wed Mar 29 13:21:00 2017 +Help: Use 'now' as the current time when setting. + +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 Unknown value 0008 +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/depthoffield +Label: Depth of Field +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS M10 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon EOS M10 +/main/status/model +Label: Camera Model +Type: TEXT +Current: 58982400 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.1.0.0 +/main/status/Battery Level +Label: Battery Level +Type: TEXT +Current: 3% +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-M15-45mm f/3.5-6.3 IS STM +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 313031005103 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -3 +Choice: 1 -2.6 +Choice: 2 -2.3 +Choice: 3 -2 +Choice: 4 -1.6 +Choice: 5 -1.3 +Choice: 6 -1 +Choice: 7 -0.6 +Choice: 8 -0.3 +Choice: 9 0 +Choice: 10 0.3 +Choice: 11 0.6 +Choice: 12 1 +Choice: 13 1.3 +Choice: 14 1.6 +Choice: 15 2 +Choice: 16 2.3 +Choice: 17 2.6 +Choice: 18 3 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +/main/capturesettings/continuousaf +Label: Continuous AF +Type: RADIO +Current: On +Choice: 0 Off +Choice: 1 On +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: TV +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +/main/capturesettings/aperture +Label: Aperture +Type: RADIO +Current: 4 +Choice: 0 4 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1/125 +Choice: 0 1/125 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 8 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1490793660 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 58982400 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon EOS M10 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16842752 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d053 +Label: PTP Property 0xd053 +Type: TEXT +Current: (null) +/main/other/d054 +Label: PTP Property 0xd054 +Type: TEXT +Current: (null) +/main/other/d057 +Label: PTP Property 0xd057 +Type: TEXT +Current: 313031005103 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS M10 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS M10 + device version: 3-14.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x9013 (PTP_OC_CANON_CheckEvent) + 0x901f (PTP_OC_CANON_ChangeUSBProtocol) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1012 (Set object protection) + 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) + 0x9021 (PTP_OC_CANON_GetObjectInfoEx) + 0x901b (PTP_OC_CANON_GetPartialObjectEx) + 0x901e (PTP_OC_CANON_GetObjectAttributes) + 0x9019 (PTP_OC_CANON_SendPartialObject) + 0x9006 (PTP_OC_CANON_GetObjectHandleByName) + 0x901c (PTP_OC_CANON_SetObjectTime) + 0x9002 (PTP_OC_CANON_SetObjectArchive) + 0x904c (Unknown PTP_OC) + 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) + 0x9025 (PTP_OC_CANON_SendObjectByPath ) + 0x9038 (Unknown PTP_OC) + 0x9039 (Unknown PTP_OC) + 0x903a (Unknown PTP_OC) + 0x903b (Unknown PTP_OC) + 0x904b (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) + 0x9062 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x902f (Unknown PTP_OC) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x9182 (PTP_OC_CANON_EOS_NotifyEstimateNumberofImport) + 0x9183 (PTP_OC_CANON_EOS_NotifyNumberofImported) + 0x9184 (PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer) + 0x9185 (PTP_OC_CANON_EOS_NotifyFinish) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) +Events Supported: + 0x4001 (CancelTransaction) + 0x4002 (ObjectAdded) + 0x4003 (ObjectRemoved) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4006 (DevicePropChanged) + 0x4007 (ObjectInfoChanged) + 0x4008 (DeviceInfoChanged) + 0x4009 (RequestObjectTransfer) + 0x400a (StoreFull) + 0x400b (DeviceReset) + 0x400c (StorageInfoChanged) + 0x400e (UnreportedStatus) + 0xc001 (Unknown Event) + 0xc005 (Unknown Event) + 0xc00a (Unknown Event) + 0xc101 (Unknown Event) +Device Properties Supported: + 0xd045 (Event Emulate Mode) + 0xd04a (Unknown DPC code) + 0xd02e (Size of Output Data from Camera) + 0xd02f (Size of Input Data to Camera) + 0x5001 (Battery Level) + 0xd002 (Battery Type) + 0xd003 (Battery Mode) + 0xd034 (UNIX Time) + 0xd047 (Type of Slideshow) + 0xd046 (DPOF Version) + 0xd030 (Remote API Version) + 0xd049 (Model ID) + 0xd032 (Camera Model) + 0xd033 (Camera Owner) + 0xd031 (Firmware Version) + 0xd050 (Unknown DPC code) + 0xd051 (Unknown DPC code) + 0xd052 (Unknown DPC code) + 0xd053 (Unknown DPC code) + 0xd054 (Unknown DPC code) + 0xd057 (Unknown DPC code) + 0xd402 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd303 (Unknown DPC code) + +event 0: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 +event 2: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +event 4: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 +event 6: EOS prop d116 info record, datasize is 4 +event 6: currentvalue of d116 is 3840000 +event 7: EOS prop d111 info record, datasize is 4 +event 7: currentvalue of d111 is 2 +event 8: EOS prop d112 info record, datasize is 4 +event 8: currentvalue of d112 is 0 +event 9: EOS prop d1b1 info record, datasize is 4 +event 9: currentvalue of d1b1 is 1 +event 10: EOS prop d1b0 info record, datasize is 4 +event 10: currentvalue of d1b0 is 0 +event 11: EOS prop d108 info record, datasize is 4 +event 11: currentvalue of d108 is 0 +event 12: EOS prop d109 info record, datasize is 4 +event 12: currentvalue of d109 is 0 +event 13: EOS prop d107 info record, datasize is 4 +event 13: currentvalue of d107 is 3 +event 14: EOS prop d106 info record, datasize is 4 +event 14: currentvalue of d106 is 0 +event 15: EOS prop d120 info record, datasize is 20 +event 15: decoded imageformat, currentvalue of d120 is 400 +event 16: EOS prop d1ba info record, datasize is 4 +event 16: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 1 +event 16: currentvalue of d1ba is 1 +event 17: EOS prop d101 info record, datasize is 4 +event 17: currentvalue of d101 is 28 +event 18: EOS prop d102 info record, datasize is 4 +event 18: currentvalue of d102 is 70 +event 19: EOS prop d103 info record, datasize is 4 +event 19: currentvalue of d103 is 0 +event 20: EOS prop d104 info record, datasize is 4 +event 20: currentvalue of d104 is 0 +event 21: EOS prop d194 info record, datasize is 4 +event 21: currentvalue of d194 is 7 +event 22: EOS prop d1c9 info record, datasize is 4 +event 22: currentvalue of d1c9 is 1 +event 23: EOS prop d1b2 info record, datasize is 4 +event 23: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 23: currentvalue of d1b2 is 0 +event 24: EOS prop d105 info record, datasize is 4 +event 24: currentvalue of d105 is 0 +event 25: EOS prop d138 info record, datasize is 4 +event 25: Unknown EOS property d138, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 26: EOS prop d199 info record, datasize is 4 +event 26: Unknown EOS property d199, datasize is 4 + 0: 08 + 1: 00 + 2: 00 + 3: 00 +event 27: EOS prop d17c info record, datasize is 4 +event 27: currentvalue of d17c is 5b142510 +event 28: EOS prop d11e info record, datasize is 4 +event 28: currentvalue of d11e is 10001 +event 29: EOS prop d1a8 info record, datasize is 4 +event 29: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 29: currentvalue of d1a8 is 1 +event 30: EOS prop d177 info record, datasize is 24 +event 30: Unknown EOS property d177, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 38 + 5: e3 + 6: 4c + 7: cc + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 31: EOS prop d175 info record, datasize is 4 +event 31: Unknown EOS property d175, datasize is 4 + 0: 07 + 1: 00 + 2: 00 + 3: 00 +event 32: EOS prop d13f info record, datasize is 60 +event 32: Unknown EOS property d13f, datasize is 60 + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 6a + 5: 70 + 6: 2e + 7: 63 + 8: 6f + 9: 2e + 10: 63 + 11: 61 + 12: 6e + 13: 6f + 14: 6e + 15: 2e + 16: 69 + 17: 63 + 18: 2e + 19: 63 + 20: 61 + 21: 6d + 22: 65 + 23: 72 + 24: 61 + 25: 63 + 26: 6f + 27: 6e + 28: 6e + 29: 65 + 30: 63 + 31: 74 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 63 + 45: 61 + 46: 6e + 47: 6f + 48: 6e + 49: 2d + 50: 61 + 51: 30 + 52: 31 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 +event 33: EOS prop d160 info record, datasize is 32 +event 33: Unknown EOS property d160, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 34: EOS prop d161 info record, datasize is 32 +event 34: Unknown EOS property d161, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 35: EOS prop d162 info record, datasize is 32 +event 35: Unknown EOS property d162, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 36: EOS prop d1d8 info record, datasize is 64 +event 36: currentvalue of d1d8 is EF-M15-45mm f/3.5-6.3 IS STM +event 37: EOS prop d1dd info record, datasize is 4 +event 37: currentvalue of d1dd is 1039 +event 38: EOS prop d058 info record, datasize is 4 +event 38: Unknown EOS property d058, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 39: EOS prop d1b0 desc record, datasize 8, propxtype 3 +event 39: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +event 39: suppval[0] of d1b0 is 0x0. +event 39: suppval[1] of d1b0 is 0x8. +event 40: EOS prop d108 desc record, datasize 0, propxtype 0 +event 40: propxtype is 0 for d108, unhandled, size 20 +event 41: EOS prop d105 desc record, datasize 0, propxtype 0 +event 41: propxtype is 0 for d105, unhandled, size 20 +event 42: EOS prop d107 desc record, datasize 0, propxtype 0 +event 42: propxtype is 0 for d107, unhandled, size 20 +event 43: EOS prop d111 desc record, datasize 0, propxtype 0 +event 43: propxtype is 0 for d111, unhandled, size 20 +event 44: EOS prop d112 desc record, datasize 0, propxtype 0 +event 44: propxtype is 0 for d112, unhandled, size 20 +event 45: EOS prop d116 desc record, datasize 0, propxtype 0 +event 45: propxtype is 0 for d116, unhandled, size 20 +event 46: EOS prop d11b desc record, datasize 0, propxtype 0 +event 46: propdesc d11b, default value not found. +event 47: EOS prop d120 desc record, datasize 0, propxtype 0 +event 47: propxtype is 0 for d120, unhandled, size 20 +event 48: EOS prop d138 desc record, datasize 0, propxtype 0 +event 48: propxtype is 0 for d138, unhandled, size 20 +event 49: EOS prop d194 desc record, datasize 0, propxtype 0 +event 49: propxtype is 0 for d194, unhandled, size 20 +event 50: EOS prop d1b1 desc record, datasize 0, propxtype 0 +event 50: propxtype is 0 for d1b1, unhandled, size 20 +event 51: EOS prop d101 desc record, datasize 0, propxtype 3 +event 52: EOS prop d102 desc record, datasize 0, propxtype 3 +event 53: EOS prop d103 desc record, datasize 0, propxtype 3 +event 54: EOS prop d104 desc record, datasize 76, propxtype 3 +event 54: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 54: suppval[0] of d104 is 0xe8. +event 54: suppval[1] of d104 is 0xeb. +event 54: suppval[2] of d104 is 0xed. +event 54: suppval[3] of d104 is 0xf0. +event 54: suppval[4] of d104 is 0xf3. +event 54: suppval[5] of d104 is 0xf5. +event 54: suppval[6] of d104 is 0xf8. +event 54: suppval[7] of d104 is 0xfb. +event 54: suppval[8] of d104 is 0xfd. +event 54: suppval[9] of d104 is 0x0. +event 54: suppval[10] of d104 is 0x3. +event 54: suppval[11] of d104 is 0x5. +event 54: suppval[12] of d104 is 0x8. +event 54: suppval[13] of d104 is 0xb. +event 54: suppval[14] of d104 is 0xd. +event 54: suppval[15] of d104 is 0x10. +event 54: suppval[16] of d104 is 0x13. +event 54: suppval[17] of d104 is 0x15. +event 54: suppval[18] of d104 is 0x18. +event 55: EOS prop d1c9 desc record, datasize 0, propxtype 0 +event 55: propxtype is 0 for d1c9, unhandled, size 20 +event 56: EOS prop d177 desc record, datasize 0, propxtype 0 +event 56: propxtype is 0 for d177, unhandled, size 20 +event 57: EOS prop d11e desc record, datasize 0, propxtype 0 +event 57: propxtype is 0 for d11e, unhandled, size 20 +event 58: EOS prop d17c desc record, datasize 0, propxtype 0 +event 58: propxtype is 0 for d17c, unhandled, size 20 +event 59: EOS prop d1a8 desc record, datasize 0, propxtype 0 +event 59: propxtype is 0 for d1a8, unhandled, size 20 +event 60: EOS prop d160 desc record, datasize 0, propxtype 0 +event 60: propxtype is 0 for d160, unhandled, size 20 +event 61: EOS prop d161 desc record, datasize 0, propxtype 0 +event 61: propxtype is 0 for d161, unhandled, size 20 +event 62: EOS prop d162 desc record, datasize 0, propxtype 0 +event 62: propxtype is 0 for d162, unhandled, size 20 +event 63: EOS prop d1d8 desc record, datasize 0, propxtype 0 +event 63: propxtype is 0 for d1d8, unhandled, size 20 +event 64: EOS prop d1dd desc record, datasize 0, propxtype 0 +event 64: propxtype is 0 for d1dd, unhandled, size 20 +event 65: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 01 + 11: 00 + +event 0: EOS prop d115 info record, datasize is 32 +event 0: currentvalue of d115 is Marcus Meissner +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is GPHOTO +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is +event 3: EOS prop d1af info record, datasize is 32 +event 3: currentvalue of d1af is 313031005103 + + +event 0: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 +event 2: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +event 4: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 +event 6: EOS prop d116 info record, datasize is 4 +event 6: currentvalue of d116 is 3840000 +event 7: EOS prop d111 info record, datasize is 4 +event 7: currentvalue of d111 is 2 +event 8: EOS prop d112 info record, datasize is 4 +event 8: currentvalue of d112 is 0 +event 9: EOS prop d1b1 info record, datasize is 4 +event 9: currentvalue of d1b1 is 1 +event 10: EOS prop d1b0 info record, datasize is 4 +event 10: currentvalue of d1b0 is 0 +event 11: EOS prop d108 info record, datasize is 4 +event 11: currentvalue of d108 is 0 +event 12: EOS prop d109 info record, datasize is 4 +event 12: currentvalue of d109 is 0 +event 13: EOS prop d107 info record, datasize is 4 +event 13: currentvalue of d107 is 3 +event 14: EOS prop d106 info record, datasize is 4 +event 14: currentvalue of d106 is 0 +event 15: EOS prop d120 info record, datasize is 20 +event 15: currentvalue of d120 is 1 +event 15: decoded imageformat, currentvalue of d120 is 400 +event 16: EOS prop d1ba info record, datasize is 4 +event 16: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 1 +event 16: currentvalue of d1ba is 1 +event 17: EOS prop d101 info record, datasize is 4 +event 17: currentvalue of d101 is 28 +event 18: EOS prop d102 info record, datasize is 4 +event 18: currentvalue of d102 is 70 +event 19: EOS prop d103 info record, datasize is 4 +event 19: currentvalue of d103 is 0 +event 20: EOS prop d104 info record, datasize is 4 +event 20: currentvalue of d104 is 0 +event 21: EOS prop d194 info record, datasize is 4 +event 21: currentvalue of d194 is 7 +event 22: EOS prop d1c9 info record, datasize is 4 +event 22: currentvalue of d1c9 is 1 +event 23: EOS prop d1b2 info record, datasize is 4 +event 23: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 23: currentvalue of d1b2 is 0 +event 24: EOS prop d105 info record, datasize is 4 +event 24: currentvalue of d105 is 0 +event 25: EOS prop d138 info record, datasize is 4 +event 25: Unknown EOS property d138, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 26: EOS prop d199 info record, datasize is 4 +event 26: Unknown EOS property d199, datasize is 4 + 0: 08 + 1: 00 + 2: 00 + 3: 00 +event 27: EOS prop d17c info record, datasize is 4 +event 27: currentvalue of d17c is 5b142510 +event 28: EOS prop d11e info record, datasize is 4 +event 28: currentvalue of d11e is 10001 +event 29: EOS prop d1a8 info record, datasize is 4 +event 29: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 29: currentvalue of d1a8 is 1 +event 30: EOS prop d177 info record, datasize is 24 +event 30: Unknown EOS property d177, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 38 + 5: e3 + 6: 4c + 7: cc + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 31: EOS prop d175 info record, datasize is 4 +event 31: Unknown EOS property d175, datasize is 4 + 0: 07 + 1: 00 + 2: 00 + 3: 00 +event 32: EOS prop d13f info record, datasize is 60 +event 32: Unknown EOS property d13f, datasize is 60 + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 6a + 5: 70 + 6: 2e + 7: 63 + 8: 6f + 9: 2e + 10: 63 + 11: 61 + 12: 6e + 13: 6f + 14: 6e + 15: 2e + 16: 69 + 17: 63 + 18: 2e + 19: 63 + 20: 61 + 21: 6d + 22: 65 + 23: 72 + 24: 61 + 25: 63 + 26: 6f + 27: 6e + 28: 6e + 29: 65 + 30: 63 + 31: 74 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 63 + 45: 61 + 46: 6e + 47: 6f + 48: 6e + 49: 2d + 50: 61 + 51: 30 + 52: 31 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 +event 33: EOS prop d160 info record, datasize is 32 +event 33: Unknown EOS property d160, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 34: EOS prop d161 info record, datasize is 32 +event 34: Unknown EOS property d161, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 35: EOS prop d162 info record, datasize is 32 +event 35: Unknown EOS property d162, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 36: EOS prop d1d8 info record, datasize is 64 +event 36: currentvalue of d1d8 is EF-M15-45mm f/3.5-6.3 IS STM +event 37: EOS prop d1dd info record, datasize is 4 +event 37: currentvalue of d1dd is 1039 +event 38: EOS prop d058 info record, datasize is 4 +event 38: Unknown EOS property d058, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 39: EOS prop d1b0 desc record, datasize 8, propxtype 3 +event 39: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +event 39: suppval[0] of d1b0 is 0x0. +event 39: suppval[1] of d1b0 is 0x8. +event 40: EOS prop d108 desc record, datasize 0, propxtype 0 +event 40: propxtype is 0 for d108, unhandled, size 20 +event 41: EOS prop d105 desc record, datasize 0, propxtype 0 +event 41: propxtype is 0 for d105, unhandled, size 20 +event 42: EOS prop d107 desc record, datasize 0, propxtype 0 +event 42: propxtype is 0 for d107, unhandled, size 20 +event 43: EOS prop d111 desc record, datasize 0, propxtype 0 +event 43: propxtype is 0 for d111, unhandled, size 20 +event 44: EOS prop d112 desc record, datasize 0, propxtype 0 +event 44: propxtype is 0 for d112, unhandled, size 20 +event 45: EOS prop d116 desc record, datasize 0, propxtype 0 +event 45: propxtype is 0 for d116, unhandled, size 20 +event 46: EOS prop d11b desc record, datasize 0, propxtype 0 +event 46: propdesc d11b, default value not found. +event 47: EOS prop d120 desc record, datasize 0, propxtype 0 +event 47: propxtype is 0 for d120, unhandled, size 20 +event 48: EOS prop d138 desc record, datasize 0, propxtype 0 +event 48: propxtype is 0 for d138, unhandled, size 20 +event 49: EOS prop d194 desc record, datasize 0, propxtype 0 +event 49: propxtype is 0 for d194, unhandled, size 20 +event 50: EOS prop d1b1 desc record, datasize 0, propxtype 0 +event 50: propxtype is 0 for d1b1, unhandled, size 20 +event 51: EOS prop d101 desc record, datasize 0, propxtype 3 +event 52: EOS prop d102 desc record, datasize 0, propxtype 3 +event 53: EOS prop d103 desc record, datasize 0, propxtype 3 +event 54: EOS prop d104 desc record, datasize 76, propxtype 3 +event 54: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 54: suppval[0] of d104 is 0xe8. +event 54: suppval[1] of d104 is 0xeb. +event 54: suppval[2] of d104 is 0xed. +event 54: suppval[3] of d104 is 0xf0. +event 54: suppval[4] of d104 is 0xf3. +event 54: suppval[5] of d104 is 0xf5. +event 54: suppval[6] of d104 is 0xf8. +event 54: suppval[7] of d104 is 0xfb. +event 54: suppval[8] of d104 is 0xfd. +event 54: suppval[9] of d104 is 0x0. +event 54: suppval[10] of d104 is 0x3. +event 54: suppval[11] of d104 is 0x5. +event 54: suppval[12] of d104 is 0x8. +event 54: suppval[13] of d104 is 0xb. +event 54: suppval[14] of d104 is 0xd. +event 54: suppval[15] of d104 is 0x10. +event 54: suppval[16] of d104 is 0x13. +event 54: suppval[17] of d104 is 0x15. +event 54: suppval[18] of d104 is 0x18. +event 55: EOS prop d1c9 desc record, datasize 0, propxtype 0 +event 55: propxtype is 0 for d1c9, unhandled, size 20 +event 56: EOS prop d177 desc record, datasize 0, propxtype 0 +event 56: propxtype is 0 for d177, unhandled, size 20 +event 57: EOS prop d11e desc record, datasize 0, propxtype 0 +event 57: propxtype is 0 for d11e, unhandled, size 20 +event 58: EOS prop d17c desc record, datasize 0, propxtype 0 +event 58: propxtype is 0 for d17c, unhandled, size 20 +event 59: EOS prop d1a8 desc record, datasize 0, propxtype 0 +event 59: propxtype is 0 for d1a8, unhandled, size 20 +event 60: EOS prop d160 desc record, datasize 0, propxtype 0 +event 60: propxtype is 0 for d160, unhandled, size 20 +event 61: EOS prop d161 desc record, datasize 0, propxtype 0 +event 61: propxtype is 0 for d161, unhandled, size 20 +event 62: EOS prop d162 desc record, datasize 0, propxtype 0 +event 62: propxtype is 0 for d162, unhandled, size 20 +event 63: EOS prop d1d8 desc record, datasize 0, propxtype 0 +event 63: propxtype is 0 for d1d8, unhandled, size 20 +event 64: EOS prop d1dd desc record, datasize 0, propxtype 0 +event 64: propxtype is 0 for d1dd, unhandled, size 20 +event 65: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 01 + 11: 00 +event 66: EOS prop d1b0 info record, datasize is 4 +event 66: currentvalue of d1b0 is 8 +event 67: EOS prop d1a8 info record, datasize is 4 +event 67: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 67: currentvalue of d1a8 is 1 +event 68: EOS prop d1d8 info record, datasize is 64 +event 68: currentvalue of d1d8 is EF-M15-45mm f/3.5-6.3 IS STM +event 69: EOS prop d1dd info record, datasize is 4 +event 69: currentvalue of d1dd is 1039 +event 70: EOS prop d101 info record, datasize is 4 +event 70: currentvalue of d101 is 28 +event 71: EOS prop d108 info record, datasize is 4 +event 71: currentvalue of d108 is 0 +event 72: EOS prop d1ba info record, datasize is 4 +event 72: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 1 +event 72: currentvalue of d1ba is 1 +event 73: EOS prop d1c9 info record, datasize is 4 +event 73: currentvalue of d1c9 is 1 +event 74: EOS prop d101 desc record, datasize 0, propxtype 3 +event 75: EOS prop d1ba desc record, datasize 8, propxtype 3 +event 75: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 2. +event 75: suppval[0] of d1ba is 0x2. +event 75: suppval[1] of d1ba is 0x1. +event 76: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 +event 78: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +event 80: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 +event 82: EOS prop d101 info record, datasize is 4 +event 82: currentvalue of d101 is 28 +event 83: EOS prop d102 info record, datasize is 4 +event 83: currentvalue of d102 is 70 +event 84: EOS prop d103 info record, datasize is 4 +event 84: currentvalue of d103 is 0 +event 85: EOS prop d104 info record, datasize is 4 +event 85: currentvalue of d104 is 0 +event 86: EOS prop d105 info record, datasize is 4 +event 86: currentvalue of d105 is 0 +event 87: EOS prop d106 info record, datasize is 4 +event 87: currentvalue of d106 is 0 +event 88: EOS prop d107 info record, datasize is 4 +event 88: currentvalue of d107 is 3 +event 89: EOS prop d108 info record, datasize is 4 +event 89: currentvalue of d108 is 0 +event 90: EOS prop d109 info record, datasize is 4 +event 90: currentvalue of d109 is 0 +event 91: EOS prop d138 info record, datasize is 4 +event 91: Unknown EOS property d138, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 92: EOS prop d1a8 info record, datasize is 4 +event 92: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 92: currentvalue of d1a8 is 1 +event 93: EOS prop d1ba info record, datasize is 4 +event 93: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 1 +event 93: currentvalue of d1ba is 1 +event 94: EOS prop d1c9 info record, datasize is 4 +event 94: currentvalue of d1c9 is 1 +event 95: EOS prop d120 info record, datasize is 20 +event 95: currentvalue of d120 is 1 +event 95: decoded imageformat, currentvalue of d120 is 400 +event 96: EOS prop d11b info record, datasize is 4 +event 96: currentvalue of d11b is 2 +event 97: EOS prop d112 info record, datasize is 4 +event 97: currentvalue of d112 is 0 +event 98: EOS prop d111 info record, datasize is 4 +event 98: currentvalue of d111 is 2 +event 99: EOS prop d101 desc record, datasize 0, propxtype 3 +event 100: EOS prop d102 desc record, datasize 0, propxtype 3 +event 101: EOS prop d103 desc record, datasize 36, propxtype 3 +event 101: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 9. +event 101: suppval[0] of d103 is 0x0. +event 101: suppval[1] of d103 is 0x48. +event 101: suppval[2] of d103 is 0x50. +event 101: suppval[3] of d103 is 0x58. +event 101: suppval[4] of d103 is 0x60. +event 101: suppval[5] of d103 is 0x68. +event 101: suppval[6] of d103 is 0x70. +event 101: suppval[7] of d103 is 0x78. +event 101: suppval[8] of d103 is 0x80. +event 102: EOS prop d104 desc record, datasize 76, propxtype 3 +event 102: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 102: suppval[0] of d104 is 0xe8. +event 102: suppval[1] of d104 is 0xeb. +event 102: suppval[2] of d104 is 0xed. +event 102: suppval[3] of d104 is 0xf0. +event 102: suppval[4] of d104 is 0xf3. +event 102: suppval[5] of d104 is 0xf5. +event 102: suppval[6] of d104 is 0xf8. +event 102: suppval[7] of d104 is 0xfb. +event 102: suppval[8] of d104 is 0xfd. +event 102: suppval[9] of d104 is 0x0. +event 102: suppval[10] of d104 is 0x3. +event 102: suppval[11] of d104 is 0x5. +event 102: suppval[12] of d104 is 0x8. +event 102: suppval[13] of d104 is 0xb. +event 102: suppval[14] of d104 is 0xd. +event 102: suppval[15] of d104 is 0x10. +event 102: suppval[16] of d104 is 0x13. +event 102: suppval[17] of d104 is 0x15. +event 102: suppval[18] of d104 is 0x18. +event 103: EOS prop d106 desc record, datasize 16, propxtype 3 +event 103: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 4. +event 103: suppval[0] of d106 is 0x0. +event 103: suppval[1] of d106 is 0x1. +event 103: suppval[2] of d106 is 0x10. +event 103: suppval[3] of d106 is 0x11. +event 104: EOS prop d109 desc record, datasize 0, propxtype 0 +event 104: propxtype is 0 for d109, unhandled, size 20 +event 105: EOS prop d1ba desc record, datasize 8, propxtype 3 +event 105: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 2. +event 105: suppval[0] of d1ba is 0x2. +event 105: suppval[1] of d1ba is 0x1. +event 106: EOS prop d108 desc record, datasize 0, propxtype 0 +event 106: propxtype is 0 for d108, unhandled, size 20 +event 107: EOS prop d1c9 desc record, datasize 0, propxtype 0 +event 107: propxtype is 0 for d1c9, unhandled, size 20 +event 108: EOS event OLCInfoChanged (size 18) + 0: 0a + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 +event 110: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 +event 112: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +event 114: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 + +event 0: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 +event 2: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +event 4: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 +event 6: EOS prop d1b0 info record, datasize is 4 +event 6: currentvalue of d1b0 is 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m100.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m100.txt new file mode 100644 index 00000000..cb3d4411 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m100.txt @@ -0,0 +1,2326 @@ +Kamerazusammenfassung: +Hersteller: Canon Inc. +Modell: Canon EOS M100 + Version: 3-15.0.1.0 + Seriennummer: 205CA1E14C16482090808E3667122F10 +Vendor Extension ID: 0xb (1.0) + +Aufnahmeformate: JPEG +Anzeigeformate: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Canon EOS Capture 2 + Canon WiFI Unterstützung + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: SD + Label des Speichergerätes: Keine + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 128228392960 (122288 MB) + Freier Platz (Bytes): 128219873280 (122280 MB) + Freier Speicher (Bilder): -1 + +Properties des Geräts: +Event Emulations Modus(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 0 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Datengröße beim Transfer von der Kamera(0xd02e):(read only) (type=0x6) 524288 +Datengröße beim Transfer zur Kamera(0xd02f):(read only) (type=0x6) 524288 +Batterie Ladezustand(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Batterietyp(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Batteriemodus(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Zeit(0xd034):(readwrite) (type=0x6) 1528719729 +Art der Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Kamera API Version(0xd030):(read only) (type=0x6) 256 +Modell ID(0xd049):(read only) (type=0x6) 60293120 +Kameramodell(0xd032):(read only) (type=0xffff) 'Canon EOS M100' +Kamerabesitzer(0xd033):(readwrite) (type=0x4002) a[0] +Firmware-Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x0) Undefined +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053:(readwrite) (type=0x4002) a[0] +Property 0xd054:(readwrite) (type=0x4002) a[0] +Property 0xd057:(read only) (type=0xffff) '493050000785' +Property 0xd402:(read only) (type=0xffff) 'Canon EOS M100' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetimeutc +Label: Kamera Datum und Zeit mit dem PC synchronisieren +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/actions/uilock +Label: UILock +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/autofocusdrive +Label: Fahre Canon DSLR Autofokus +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/actions/manualfocusdrive +Label: Fahre Canon DSLR manuellen Fokus +Readonly: 0 +Type: RADIO +Current: Keine +Choice: 0 Nah 1 +Choice: 1 Nah 2 +Choice: 2 Nah 3 +Choice: 3 Keine +Choice: 4 Weit 1 +Choice: 5 Weit 2 +Choice: 6 Weit 3 +END +/main/actions/cancelautofocus +Label: Breche Canon DSLR Autofokus ab +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/actions/eoszoom +Label: Canon EOS Zoom +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Readonly: 0 +Type: TEXT +Current: 0,0 +END +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/eosremoterelease +Label: Canon EOS Auslöser +Readonly: 0 +Type: RADIO +Current: Keine +Choice: 0 Keine +Choice: 1 Halb durchdrücken +Choice: 2 Voll durchdrücken +Choice: 3 Halb durchdrücken +Choice: 4 Voll auslösen +Choice: 5 Sofort +Choice: 6 Drücke 1 +Choice: 7 Drücke 2 +Choice: 8 Drücke 3 +Choice: 9 Loslassen 1 +Choice: 10 Loslassen 2 +Choice: 11 Loslassen 3 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/settings/datetimeutc +Label: Kamera Datum und Zeit +Readonly: 0 +Type: DATE +Current: 1528716129 +Printable: Mo 11 Jun 2018 13:22:09 CEST +Help: Use 'now' as the current time when setting. + +END +/main/settings/datetime +Label: Kamera Datum und Zeit +Readonly: 0 +Type: DATE +Current: 1528712530 +Printable: Mo 11 Jun 2018 12:22:10 CEST +Help: Use 'now' as the current time when setting. + +END +/main/settings/output +Label: Kamera Output +Readonly: 0 +Type: RADIO +Current: Unbekannter Wert 0008 +Choice: 0 Aus +Choice: 1 Unbekannter Wert 0008 +END +/main/settings/evfmode +Label: EVF Modus +Readonly: 0 +Type: RADIO +Current: 1 +Choice: 0 1 +END +/main/settings/ownername +Label: Eigentümername +Readonly: 0 +Type: TEXT +Current: +END +/main/settings/ownername +Label: Eigentümername +Readonly: 0 +Type: TEXT +Current: +END +/main/settings/artist +Label: Künstler +Readonly: 0 +Type: TEXT +Current: +END +/main/settings/copyright +Label: Copyright +Readonly: 0 +Type: TEXT +Current: +END +/main/settings/depthoffield +Label: Depth of Field +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/settings/capturetarget +Label: Aufnahmeziel +Readonly: 0 +Type: RADIO +Current: interner Speicher +Choice: 0 interner Speicher +Choice: 1 Speicherkarte +END +/main/settings/capture +Label: Aufnahme +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/status/serialnumber +Label: Seriennummer +Readonly: 0 +Type: TEXT +Current: 205CA1E14C16482090808E3667122F10 +END +/main/status/manufacturer +Label: Kamera Hersteller +Readonly: 0 +Type: TEXT +Current: Canon Inc. +END +/main/status/cameramodel +Label: Kameramodell +Readonly: 0 +Type: TEXT +Current: Canon EOS M100 +END +/main/status/deviceversion +Label: Version des Gerätes +Readonly: 0 +Type: TEXT +Current: 3-15.0.1.0 +END +/main/status/vendorextension +Label: Hersteller Erweiterung +Readonly: 0 +Type: TEXT +Current: Keine +END +/main/status/model +Label: Kameramodell +Readonly: 1 +Type: TEXT +Current: Canon EOS M100 +END +/main/status/model +Label: Kameramodell +Readonly: 0 +Type: TEXT +Current: 60293120 +END +/main/status/firmwareversion +Label: Firmware-Version +Readonly: 1 +Type: TEXT +Current: 1.0.0.0 +END +/main/status/Batterie Ladezustand +Label: Batterie Ladezustand +Readonly: 1 +Type: TEXT +Current: 3% +END +/main/status/batterylevel +Label: Batterie Ladezustand +Readonly: 0 +Type: TEXT +Current: 100% +END +/main/status/lensname +Label: Objektivbezeichnung +Readonly: 0 +Type: TEXT +Current: EF-M15-45mm f/3.5-6.3 IS STM +END +/main/status/eosserialnumber +Label: Seriennummer +Readonly: 0 +Type: TEXT +Current: 493050000785 +END +/main/status/availableshots +Label: Verfügbarer Aufnahmen +Readonly: 0 +Type: TEXT +Current: 9999 +END +/main/imgsettings/imageformat +Label: Bild Format +Readonly: 0 +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +END +/main/imgsettings/iso +Label: ISO-Empfindlichkeit +Readonly: 0 +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 100 +Choice: 2 125 +Choice: 3 160 +Choice: 4 200 +Choice: 5 250 +Choice: 6 320 +Choice: 7 400 +Choice: 8 500 +Choice: 9 640 +Choice: 10 800 +Choice: 11 1000 +Choice: 12 1250 +Choice: 13 1600 +Choice: 14 2000 +Choice: 15 2500 +Choice: 16 3200 +Choice: 17 4000 +Choice: 18 5000 +Choice: 19 6400 +Choice: 20 8000 +Choice: 21 10000 +Choice: 22 12800 +Choice: 23 16000 +Choice: 24 20000 +Choice: 25 25600 +END +/main/capturesettings/exposurecompensation +Label: Belichtungskorrektur +Readonly: 0 +Type: RADIO +Current: 0 +Choice: 0 -3 +Choice: 1 -2.6 +Choice: 2 -2.3 +Choice: 3 -2 +Choice: 4 -1.6 +Choice: 5 -1.3 +Choice: 6 -1 +Choice: 7 -0.6 +Choice: 8 -0.3 +Choice: 9 0 +Choice: 10 0.3 +Choice: 11 0.6 +Choice: 12 1 +Choice: 13 1.3 +Choice: 14 1.6 +Choice: 15 2 +Choice: 16 2.3 +Choice: 17 2.6 +Choice: 18 3 +END +/main/capturesettings/focusmode +Label: Fokusmodus +Readonly: 0 +Type: RADIO +Current: Einzel AF +Choice: 0 Einzel AF +END +/main/capturesettings/continuousaf +Label: Continuous AF +Readonly: 0 +Type: RADIO +Current: An +Choice: 0 Aus +Choice: 1 An +END +/main/capturesettings/aspectratio +Label: Seitenverhältnis +Readonly: 0 +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +END +/main/capturesettings/storageid +Label: Storage Device +Readonly: 0 +Type: TEXT +Current: 00010001 +END +/main/capturesettings/autoexposuremode +Label: Canon Automatischer Belichtungsmodus +Readonly: 0 +Type: RADIO +Current: AV +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manuell +Choice: 4 Langzeitbelichtung +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Benutzerdefiniert +Choice: 8 Lock +Choice: 9 Grün +Choice: 10 Nachtportrait +Choice: 11 Sport +Choice: 12 Portrait +Choice: 13 Landschaft +Choice: 14 Nahaufnahme +Choice: 15 Blitz aus +END +/main/capturesettings/drivemode +Label: Auslöse Modus +Readonly: 0 +Type: RADIO +Current: Einzelbild +Choice: 0 Einzelbild +Choice: 1 Kontinuierlich +Choice: 2 Selbstauslöser 10 Sekunden +Choice: 3 Selbstauslöser 2 Sekunden +END +/main/capturesettings/aperture +Label: Blende +Readonly: 0 +Type: RADIO +Current: 4.5 +Choice: 0 3.5 +Choice: 1 4 +Choice: 2 4.5 +Choice: 3 5 +Choice: 4 5.6 +Choice: 5 6.3 +Choice: 6 7.1 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 13 +Choice: 12 14 +Choice: 13 16 +Choice: 14 18 +Choice: 15 20 +Choice: 16 22 +END +/main/capturesettings/shutterspeed +Label: Belichtungszeit +Readonly: 0 +Type: RADIO +Current: auto +Choice: 0 auto +END +/main/other/d045 +Label: Event Emulations Modus +Readonly: 0 +Type: MENU +Current: 9 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +END +/main/other/d04a +Label: PTP Property 0xd04a +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d02e +Label: Datengröße beim Transfer von der Kamera +Readonly: 1 +Type: TEXT +Current: 524288 +END +/main/other/d02f +Label: Datengröße beim Transfer zur Kamera +Readonly: 1 +Type: TEXT +Current: 524288 +END +/main/other/5001 +Label: Batterie Ladezustand +Readonly: 1 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d002 +Label: Batterietyp +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d003 +Label: Batteriemodus +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d034 +Label: UNIX Zeit +Readonly: 0 +Type: TEXT +Current: 1528719730 +END +/main/other/d047 +Label: Art der Slideshow +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d046 +Label: DPOF Version +Readonly: 1 +Type: TEXT +Current: 257 +END +/main/other/d030 +Label: Kamera API Version +Readonly: 1 +Type: TEXT +Current: 256 +END +/main/other/d049 +Label: Modell ID +Readonly: 1 +Type: TEXT +Current: 60293120 +END +/main/other/d032 +Label: Kameramodell +Readonly: 1 +Type: TEXT +Current: Canon EOS M100 +END +/main/other/d033 +Label: Kamerabesitzer +Readonly: 0 +Type: TEXT +Current: (null) +END +/main/other/d031 +Label: Firmware-Version +Readonly: 1 +Type: TEXT +Current: 16777216 +END +/main/other/d050 +Label: PTP Property 0xd050 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d051 +Label: PTP Property 0xd051 +Readonly: 1 +Type: TEXT +Current: (null) +END +/main/other/d052 +Label: PTP Property 0xd052 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d053 +Label: PTP Property 0xd053 +Readonly: 0 +Type: TEXT +Current: (null) +END +/main/other/d054 +Label: PTP Property 0xd054 +Readonly: 0 +Type: TEXT +Current: (null) +END +/main/other/d057 +Label: PTP Property 0xd057 +Readonly: 1 +Type: TEXT +Current: 493050000785 +END +/main/other/d402 +Label: PTP Property 0xd402 +Readonly: 1 +Type: TEXT +Current: Canon EOS M100 +END +/main/other/d406 +Label: PTP Property 0xd406 +Readonly: 0 +Type: TEXT +Current: Windows +END +/main/other/d407 +Label: PTP Property 0xd407 +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d303 +Label: PTP Property 0xd303 +Readonly: 1 +Type: TEXT +Current: 1 +END + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS M100 + device version: 3-15.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x9013 (PTP_OC_CANON_CheckEvent) + 0x901f (PTP_OC_CANON_ChangeUSBProtocol) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1012 (Set object protection) + 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) + 0x9021 (PTP_OC_CANON_GetObjectInfoEx) + 0x901b (PTP_OC_CANON_GetPartialObjectEx) + 0x901e (PTP_OC_CANON_GetObjectAttributes) + 0x9019 (PTP_OC_CANON_SendPartialObject) + 0x9006 (PTP_OC_CANON_GetObjectHandleByName) + 0x901c (PTP_OC_CANON_SetObjectTime) + 0x9002 (PTP_OC_CANON_SetObjectArchive) + 0x904c (Unknown PTP_OC) + 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) + 0x9025 (PTP_OC_CANON_SendObjectByPath ) + 0x9038 (Unknown PTP_OC) + 0x9039 (Unknown PTP_OC) + 0x903a (Unknown PTP_OC) + 0x903b (Unknown PTP_OC) + 0x904b (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) + 0x9062 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9182 (PTP_OC_CANON_EOS_NotifyEstimateNumberofImport) + 0x9183 (PTP_OC_CANON_EOS_NotifyNumberofImported) + 0x9184 (PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer) + 0x9185 (PTP_OC_CANON_EOS_NotifyFinish) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x902f (Unknown PTP_OC) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) +Events Supported: + 0x4001 (CancelTransaction) + 0x4002 (ObjectAdded) + 0x4003 (ObjectRemoved) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4006 (DevicePropChanged) + 0x4007 (ObjectInfoChanged) + 0x4008 (DeviceInfoChanged) + 0x4009 (RequestObjectTransfer) + 0x400a (StoreFull) + 0x400b (DeviceReset) + 0x400c (StorageInfoChanged) + 0x400e (UnreportedStatus) + 0xc001 (Unknown Event) + 0xc005 (Unknown Event) + 0xc00a (Unknown Event) + 0xc101 (Unknown Event) +Device Properties Supported: + 0xd045 (Event Emulate Mode) + 0xd04a (Unknown DPC code) + 0xd02e (Size of Output Data from Camera) + 0xd02f (Size of Input Data to Camera) + 0x5001 (Battery Level) + 0xd002 (Battery Type) + 0xd003 (Battery Mode) + 0xd034 (UNIX Time) + 0xd047 (Type of Slideshow) + 0xd046 (DPOF Version) + 0xd030 (Remote API Version) + 0xd049 (Model ID) + 0xd032 (Camera Model) + 0xd033 (Camera Owner) + 0xd031 (Firmware Version) + 0xd050 (Unknown DPC code) + 0xd051 (Unknown DPC code) + 0xd052 (Unknown DPC code) + 0xd053 (Unknown DPC code) + 0xd054 (Unknown DPC code) + 0xd057 (Unknown DPC code) + 0xd402 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd303 (Unknown DPC code) + +olcinfoversion is 0 +event 0: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 + 12: 00 +olcinfoversion is 0 +event 2: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +olcinfoversion is 0 +event 4: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 +event 6: EOS prop d111 info record, datasize is 4 +event 6: currentvalue of d111 is 2 +event 7: EOS prop d112 info record, datasize is 4 +event 7: currentvalue of d112 is 0 +event 8: EOS prop d116 info record, datasize is 4 +event 8: currentvalue of d116 is 3980000 +event 9: EOS prop d11e info record, datasize is 4 +event 9: currentvalue of d11e is 10001 +event 10: EOS prop d136 info record, datasize is 4 +event 10: Unknown EOS property d136, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 11: EOS prop d120 info record, datasize is 20 +event 11: decoded imageformat, currentvalue of d120 is 500 +event 12: EOS prop d125 info record, datasize is 16 +event 12: Unknown EOS property d125, datasize is 16 + 0: 45 + 1: 4f + 2: 53 + 3: 4d + 4: 31 + 5: 30 + 6: 30 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 +event 13: EOS prop d175 info record, datasize is 4 +event 13: Unknown EOS property d175, datasize is 4 + 0: 07 + 1: 00 + 2: 00 + 3: 00 +event 14: EOS prop d17c info record, datasize is 4 +event 14: currentvalue of d17c is 5b1e5b61 +event 15: EOS prop d194 info record, datasize is 4 +event 15: currentvalue of d194 is 7 +event 16: EOS prop d199 info record, datasize is 4 +event 16: currentvalue of d199 is 8 +event 17: EOS prop d1b0 info record, datasize is 4 +event 17: currentvalue of d1b0 is 0 +event 18: EOS prop d1b1 info record, datasize is 4 +event 18: currentvalue of d1b1 is 1 +event 19: EOS prop d1b2 info record, datasize is 4 +event 19: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 19: currentvalue of d1b2 is 0 +event 20: EOS prop d058 info record, datasize is 4 +event 20: Unknown EOS property d058, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 21: EOS prop d167 info record, datasize is 16 +event 21: Unknown EOS property d167, datasize is 16 + 0: 10 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: ff + 9: ff + 10: ff + 11: ff + 12: e8 + 13: 03 + 14: 00 + 15: 00 +event 22: EOS prop d168 info record, datasize is 104 +event 22: Unknown EOS property d168, datasize is 104 + 0: 05 + 1: 00 + 2: 00 + 3: 00 + 4: 14 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 70 + 17: 17 + 18: 00 + 19: 00 + 20: a0 + 21: 0f + 22: 00 + 23: 00 + 24: 14 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 90 + 37: 0f + 38: 00 + 39: 00 + 40: 60 + 41: 0a + 42: 00 + 43: 00 + 44: 14 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 0e + 53: 00 + 54: 00 + 55: 00 + 56: a0 + 57: 0b + 58: 00 + 59: 00 + 60: c0 + 61: 07 + 62: 00 + 63: 00 + 64: 14 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 0f + 73: 00 + 74: 00 + 75: 00 + 76: 60 + 77: 09 + 78: 00 + 79: 00 + 80: 40 + 81: 06 + 82: 00 + 83: 00 + 84: 14 + 85: 00 + 86: 00 + 87: 00 + 88: 06 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 70 + 97: 17 + 98: 00 + 99: 00 + 100: a0 + 101: 0f + 102: 00 + 103: 00 +event 23: EOS prop d13f info record, datasize is 60 +event 23: Unknown EOS property d13f, datasize is 60 + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 6a + 5: 70 + 6: 2e + 7: 63 + 8: 6f + 9: 2e + 10: 63 + 11: 61 + 12: 6e + 13: 6f + 14: 6e + 15: 2e + 16: 69 + 17: 63 + 18: 2e + 19: 63 + 20: 61 + 21: 6d + 22: 65 + 23: 72 + 24: 61 + 25: 63 + 26: 6f + 27: 6e + 28: 6e + 29: 65 + 30: 63 + 31: 74 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 63 + 45: 61 + 46: 6e + 47: 6f + 48: 6e + 49: 2d + 50: 61 + 51: 30 + 52: 31 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 +event 24: EOS prop d101 info record, datasize is 4 +event 24: currentvalue of d101 is 0 +event 25: EOS prop d102 info record, datasize is 4 +event 25: currentvalue of d102 is 0 +event 26: EOS prop d103 info record, datasize is 4 +event 26: currentvalue of d103 is 0 +event 27: EOS prop d104 info record, datasize is 4 +event 27: currentvalue of d104 is e8 +event 28: EOS prop d105 info record, datasize is 4 +event 28: currentvalue of d105 is 0 +event 29: EOS prop d106 info record, datasize is 4 +event 29: currentvalue of d106 is 0 +event 30: EOS prop d107 info record, datasize is 4 +event 30: currentvalue of d107 is 3 +event 31: EOS prop d108 info record, datasize is 4 +event 31: currentvalue of d108 is 0 +event 32: EOS prop d109 info record, datasize is 4 +event 32: currentvalue of d109 is 0 +event 33: EOS prop d1c9 info record, datasize is 4 +event 33: currentvalue of d1c9 is 1 +event 34: EOS prop d1a8 info record, datasize is 4 +event 34: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 34: currentvalue of d1a8 is 1 +event 35: EOS prop d1d8 info record, datasize is 64 +event 35: currentvalue of d1d8 is EF-M15-45mm f/3.5-6.3 IS STM +event 36: EOS prop d1dd info record, datasize is 4 +event 36: currentvalue of d1dd is 1039 +event 37: EOS prop d17d info record, datasize is 12 +event 37: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: ff + 5: ff + 6: ff + 7: ff + 8: 3c + 9: 00 + 10: 00 + 11: 00 +event 38: EOS prop d17e info record, datasize is 4 +event 38: currentvalue of d17e is 0 +event 39: EOS prop d163 info record, datasize is 44 +event 39: Unknown EOS property d163, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 40: EOS prop d164 info record, datasize is 44 +event 40: Unknown EOS property d164, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 41: EOS prop d165 info record, datasize is 44 +event 41: Unknown EOS property d165, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 42: EOS prop d111 desc record, datasize 0, propxtype 0 +event 42: propxtype is 0 for d111, unhandled, size 20 +event 43: EOS prop d112 desc record, datasize 0, propxtype 0 +event 43: propxtype is 0 for d112, unhandled, size 20 +event 44: EOS prop d116 desc record, datasize 0, propxtype 0 +event 44: propxtype is 0 for d116, unhandled, size 20 +event 45: EOS prop d11e desc record, datasize 0, propxtype 0 +event 45: propxtype is 0 for d11e, unhandled, size 20 +event 46: EOS prop d120 desc record, datasize 0, propxtype 0 +event 46: propxtype is 0 for d120, unhandled, size 20 +event 47: EOS prop d125 desc record, datasize 0, propxtype 0 +event 47: propxtype is 0 for d125, unhandled, size 20 +event 48: EOS prop d138 desc record, datasize 0, propxtype 0 +event 48: propdesc d138, default value not found. +event 49: EOS prop d177 desc record, datasize 0, propxtype 0 +event 49: propdesc d177, default value not found. +event 50: EOS prop d17c desc record, datasize 0, propxtype 0 +event 50: propxtype is 0 for d17c, unhandled, size 20 +event 51: EOS prop d194 desc record, datasize 0, propxtype 0 +event 51: propxtype is 0 for d194, unhandled, size 20 +event 52: EOS prop d1b0 desc record, datasize 8, propxtype 3 +event 52: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +event 52: suppval[0] of d1b0 is 0x0. +event 52: suppval[1] of d1b0 is 0x8. +event 53: EOS prop d1b1 desc record, datasize 0, propxtype 0 +event 53: propxtype is 0 for d1b1, unhandled, size 20 +event 54: EOS prop d101 desc record, datasize 68, propxtype 3 +event 54: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 17. +event 54: suppval[0] of d101 is 0x25. +event 54: suppval[1] of d101 is 0x28. +event 54: suppval[2] of d101 is 0x2b. +event 54: suppval[3] of d101 is 0x2d. +event 54: suppval[4] of d101 is 0x30. +event 54: suppval[5] of d101 is 0x33. +event 54: suppval[6] of d101 is 0x35. +event 54: suppval[7] of d101 is 0x38. +event 54: suppval[8] of d101 is 0x3b. +event 54: suppval[9] of d101 is 0x3d. +event 54: suppval[10] of d101 is 0x40. +event 54: suppval[11] of d101 is 0x43. +event 54: suppval[12] of d101 is 0x45. +event 54: suppval[13] of d101 is 0x48. +event 54: suppval[14] of d101 is 0x4b. +event 54: suppval[15] of d101 is 0x4d. +event 54: suppval[16] of d101 is 0x50. +event 55: EOS prop d102 desc record, datasize 0, propxtype 3 +event 56: EOS prop d103 desc record, datasize 104, propxtype 3 +event 56: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 56: suppval[0] of d103 is 0x0. +event 56: suppval[1] of d103 is 0x48. +event 56: suppval[2] of d103 is 0x4b. +event 56: suppval[3] of d103 is 0x4d. +event 56: suppval[4] of d103 is 0x50. +event 56: suppval[5] of d103 is 0x53. +event 56: suppval[6] of d103 is 0x55. +event 56: suppval[7] of d103 is 0x58. +event 56: suppval[8] of d103 is 0x5b. +event 56: suppval[9] of d103 is 0x5d. +event 56: suppval[10] of d103 is 0x60. +event 56: suppval[11] of d103 is 0x63. +event 56: suppval[12] of d103 is 0x65. +event 56: suppval[13] of d103 is 0x68. +event 56: suppval[14] of d103 is 0x6b. +event 56: suppval[15] of d103 is 0x6d. +event 56: suppval[16] of d103 is 0x70. +event 56: suppval[17] of d103 is 0x73. +event 56: suppval[18] of d103 is 0x75. +event 56: suppval[19] of d103 is 0x78. +event 56: suppval[20] of d103 is 0x7b. +event 56: suppval[21] of d103 is 0x7d. +event 56: suppval[22] of d103 is 0x80. +event 56: suppval[23] of d103 is 0x83. +event 56: suppval[24] of d103 is 0x85. +event 56: suppval[25] of d103 is 0x88. +event 57: EOS prop d104 desc record, datasize 76, propxtype 3 +event 57: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 57: suppval[0] of d104 is 0xe8. +event 57: suppval[1] of d104 is 0xeb. +event 57: suppval[2] of d104 is 0xed. +event 57: suppval[3] of d104 is 0xf0. +event 57: suppval[4] of d104 is 0xf3. +event 57: suppval[5] of d104 is 0xf5. +event 57: suppval[6] of d104 is 0xf8. +event 57: suppval[7] of d104 is 0xfb. +event 57: suppval[8] of d104 is 0xfd. +event 57: suppval[9] of d104 is 0x0. +event 57: suppval[10] of d104 is 0x3. +event 57: suppval[11] of d104 is 0x5. +event 57: suppval[12] of d104 is 0x8. +event 57: suppval[13] of d104 is 0xb. +event 57: suppval[14] of d104 is 0xd. +event 57: suppval[15] of d104 is 0x10. +event 57: suppval[16] of d104 is 0x13. +event 57: suppval[17] of d104 is 0x15. +event 57: suppval[18] of d104 is 0x18. +event 58: EOS prop d105 desc record, datasize 0, propxtype 0 +event 58: propxtype is 0 for d105, unhandled, size 20 +event 59: EOS prop d107 desc record, datasize 0, propxtype 0 +event 59: propxtype is 0 for d107, unhandled, size 20 +event 60: EOS prop d108 desc record, datasize 0, propxtype 0 +event 60: propxtype is 0 for d108, unhandled, size 20 +event 61: EOS prop d11b desc record, datasize 0, propxtype 0 +event 61: propdesc d11b, default value not found. +event 62: EOS prop d1c9 desc record, datasize 0, propxtype 0 +event 62: propxtype is 0 for d1c9, unhandled, size 20 +event 63: EOS prop d1a8 desc record, datasize 0, propxtype 0 +event 63: propxtype is 0 for d1a8, unhandled, size 20 +event 64: EOS prop d1d8 desc record, datasize 0, propxtype 0 +event 64: propxtype is 0 for d1d8, unhandled, size 20 +event 65: EOS prop d1dd desc record, datasize 0, propxtype 0 +event 65: propxtype is 0 for d1dd, unhandled, size 20 +event 66: EOS prop d163 desc record, datasize 0, propxtype 0 +event 66: propxtype is 0 for d163, unhandled, size 20 +event 67: EOS prop d164 desc record, datasize 0, propxtype 0 +event 67: propxtype is 0 for d164, unhandled, size 20 +event 68: EOS prop d165 desc record, datasize 0, propxtype 0 +event 68: propxtype is 0 for d165, unhandled, size 20 +event 69: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 01 + 11: 00 +... +olcinfoversion is 8 +event 0: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 + 12: 00 +olcinfoversion is 8 +event 2: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +olcinfoversion is 8 +event 4: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 +event 6: EOS prop d111 info record, datasize is 4 +event 6: currentvalue of d111 is 2 +event 7: EOS prop d112 info record, datasize is 4 +event 7: currentvalue of d112 is 0 +event 8: EOS prop d116 info record, datasize is 4 +event 8: currentvalue of d116 is 3980000 +event 9: EOS prop d11e info record, datasize is 4 +event 9: currentvalue of d11e is 10001 +event 10: EOS prop d136 info record, datasize is 4 +event 10: Unknown EOS property d136, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 11: EOS prop d120 info record, datasize is 20 +event 11: currentvalue of d120 is 1 +event 11: decoded imageformat, currentvalue of d120 is 500 +event 12: EOS prop d125 info record, datasize is 16 +event 12: Unknown EOS property d125, datasize is 16 + 0: 45 + 1: 4f + 2: 53 + 3: 4d + 4: 31 + 5: 30 + 6: 30 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 +event 13: EOS prop d175 info record, datasize is 4 +event 13: Unknown EOS property d175, datasize is 4 + 0: 07 + 1: 00 + 2: 00 + 3: 00 +event 14: EOS prop d17c info record, datasize is 4 +event 14: currentvalue of d17c is 5b1e5b61 +event 15: EOS prop d194 info record, datasize is 4 +event 15: currentvalue of d194 is 7 +event 16: EOS prop d199 info record, datasize is 4 +event 16: currentvalue of d199 is 8 +event 17: EOS prop d1b0 info record, datasize is 4 +event 17: currentvalue of d1b0 is 0 +event 18: EOS prop d1b1 info record, datasize is 4 +event 18: currentvalue of d1b1 is 1 +event 19: EOS prop d1b2 info record, datasize is 4 +event 19: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 19: currentvalue of d1b2 is 0 +event 20: EOS prop d058 info record, datasize is 4 +event 20: Unknown EOS property d058, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 21: EOS prop d167 info record, datasize is 16 +event 21: Unknown EOS property d167, datasize is 16 + 0: 10 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: ff + 9: ff + 10: ff + 11: ff + 12: e8 + 13: 03 + 14: 00 + 15: 00 +event 22: EOS prop d168 info record, datasize is 104 +event 22: Unknown EOS property d168, datasize is 104 + 0: 05 + 1: 00 + 2: 00 + 3: 00 + 4: 14 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 70 + 17: 17 + 18: 00 + 19: 00 + 20: a0 + 21: 0f + 22: 00 + 23: 00 + 24: 14 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 90 + 37: 0f + 38: 00 + 39: 00 + 40: 60 + 41: 0a + 42: 00 + 43: 00 + 44: 14 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 0e + 53: 00 + 54: 00 + 55: 00 + 56: a0 + 57: 0b + 58: 00 + 59: 00 + 60: c0 + 61: 07 + 62: 00 + 63: 00 + 64: 14 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 0f + 73: 00 + 74: 00 + 75: 00 + 76: 60 + 77: 09 + 78: 00 + 79: 00 + 80: 40 + 81: 06 + 82: 00 + 83: 00 + 84: 14 + 85: 00 + 86: 00 + 87: 00 + 88: 06 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 70 + 97: 17 + 98: 00 + 99: 00 + 100: a0 + 101: 0f + 102: 00 + 103: 00 +event 23: EOS prop d13f info record, datasize is 60 +event 23: Unknown EOS property d13f, datasize is 60 + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 6a + 5: 70 + 6: 2e + 7: 63 + 8: 6f + 9: 2e + 10: 63 + 11: 61 + 12: 6e + 13: 6f + 14: 6e + 15: 2e + 16: 69 + 17: 63 + 18: 2e + 19: 63 + 20: 61 + 21: 6d + 22: 65 + 23: 72 + 24: 61 + 25: 63 + 26: 6f + 27: 6e + 28: 6e + 29: 65 + 30: 63 + 31: 74 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 63 + 45: 61 + 46: 6e + 47: 6f + 48: 6e + 49: 2d + 50: 61 + 51: 30 + 52: 31 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 +event 24: EOS prop d101 info record, datasize is 4 +event 24: currentvalue of d101 is 0 +event 25: EOS prop d102 info record, datasize is 4 +event 25: currentvalue of d102 is 0 +event 26: EOS prop d103 info record, datasize is 4 +event 26: currentvalue of d103 is 0 +event 27: EOS prop d104 info record, datasize is 4 +event 27: currentvalue of d104 is e8 +event 28: EOS prop d105 info record, datasize is 4 +event 28: currentvalue of d105 is 0 +event 29: EOS prop d106 info record, datasize is 4 +event 29: currentvalue of d106 is 0 +event 30: EOS prop d107 info record, datasize is 4 +event 30: currentvalue of d107 is 3 +event 31: EOS prop d108 info record, datasize is 4 +event 31: currentvalue of d108 is 0 +event 32: EOS prop d109 info record, datasize is 4 +event 32: currentvalue of d109 is 0 +event 33: EOS prop d1c9 info record, datasize is 4 +event 33: currentvalue of d1c9 is 1 +event 34: EOS prop d1a8 info record, datasize is 4 +event 34: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 34: currentvalue of d1a8 is 1 +event 35: EOS prop d1d8 info record, datasize is 64 +event 35: currentvalue of d1d8 is EF-M15-45mm f/3.5-6.3 IS STM +event 36: EOS prop d1dd info record, datasize is 4 +event 36: currentvalue of d1dd is 1039 +event 37: EOS prop d17d info record, datasize is 12 +event 37: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: ff + 5: ff + 6: ff + 7: ff + 8: 3c + 9: 00 + 10: 00 + 11: 00 +event 38: EOS prop d17e info record, datasize is 4 +event 38: currentvalue of d17e is 0 +event 39: EOS prop d163 info record, datasize is 44 +event 39: Unknown EOS property d163, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 40: EOS prop d164 info record, datasize is 44 +event 40: Unknown EOS property d164, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 41: EOS prop d165 info record, datasize is 44 +event 41: Unknown EOS property d165, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 42: EOS prop d111 desc record, datasize 0, propxtype 0 +event 42: propxtype is 0 for d111, unhandled, size 20 +event 43: EOS prop d112 desc record, datasize 0, propxtype 0 +event 43: propxtype is 0 for d112, unhandled, size 20 +event 44: EOS prop d116 desc record, datasize 0, propxtype 0 +event 44: propxtype is 0 for d116, unhandled, size 20 +event 45: EOS prop d11e desc record, datasize 0, propxtype 0 +event 45: propxtype is 0 for d11e, unhandled, size 20 +event 46: EOS prop d120 desc record, datasize 0, propxtype 0 +event 46: propxtype is 0 for d120, unhandled, size 20 +event 47: EOS prop d125 desc record, datasize 0, propxtype 0 +event 47: propxtype is 0 for d125, unhandled, size 20 +event 48: EOS prop d138 desc record, datasize 0, propxtype 0 +event 48: propdesc d138, default value not found. +event 49: EOS prop d177 desc record, datasize 0, propxtype 0 +event 49: propdesc d177, default value not found. +event 50: EOS prop d17c desc record, datasize 0, propxtype 0 +event 50: propxtype is 0 for d17c, unhandled, size 20 +event 51: EOS prop d194 desc record, datasize 0, propxtype 0 +event 51: propxtype is 0 for d194, unhandled, size 20 +event 52: EOS prop d1b0 desc record, datasize 8, propxtype 3 +event 52: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +event 52: suppval[0] of d1b0 is 0x0. +event 52: suppval[1] of d1b0 is 0x8. +event 53: EOS prop d1b1 desc record, datasize 0, propxtype 0 +event 53: propxtype is 0 for d1b1, unhandled, size 20 +event 54: EOS prop d101 desc record, datasize 68, propxtype 3 +event 54: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 17. +event 54: suppval[0] of d101 is 0x25. +event 54: suppval[1] of d101 is 0x28. +event 54: suppval[2] of d101 is 0x2b. +event 54: suppval[3] of d101 is 0x2d. +event 54: suppval[4] of d101 is 0x30. +event 54: suppval[5] of d101 is 0x33. +event 54: suppval[6] of d101 is 0x35. +event 54: suppval[7] of d101 is 0x38. +event 54: suppval[8] of d101 is 0x3b. +event 54: suppval[9] of d101 is 0x3d. +event 54: suppval[10] of d101 is 0x40. +event 54: suppval[11] of d101 is 0x43. +event 54: suppval[12] of d101 is 0x45. +event 54: suppval[13] of d101 is 0x48. +event 54: suppval[14] of d101 is 0x4b. +event 54: suppval[15] of d101 is 0x4d. +event 54: suppval[16] of d101 is 0x50. +event 55: EOS prop d102 desc record, datasize 0, propxtype 3 +event 56: EOS prop d103 desc record, datasize 104, propxtype 3 +event 56: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 56: suppval[0] of d103 is 0x0. +event 56: suppval[1] of d103 is 0x48. +event 56: suppval[2] of d103 is 0x4b. +event 56: suppval[3] of d103 is 0x4d. +event 56: suppval[4] of d103 is 0x50. +event 56: suppval[5] of d103 is 0x53. +event 56: suppval[6] of d103 is 0x55. +event 56: suppval[7] of d103 is 0x58. +event 56: suppval[8] of d103 is 0x5b. +event 56: suppval[9] of d103 is 0x5d. +event 56: suppval[10] of d103 is 0x60. +event 56: suppval[11] of d103 is 0x63. +event 56: suppval[12] of d103 is 0x65. +event 56: suppval[13] of d103 is 0x68. +event 56: suppval[14] of d103 is 0x6b. +event 56: suppval[15] of d103 is 0x6d. +event 56: suppval[16] of d103 is 0x70. +event 56: suppval[17] of d103 is 0x73. +event 56: suppval[18] of d103 is 0x75. +event 56: suppval[19] of d103 is 0x78. +event 56: suppval[20] of d103 is 0x7b. +event 56: suppval[21] of d103 is 0x7d. +event 56: suppval[22] of d103 is 0x80. +event 56: suppval[23] of d103 is 0x83. +event 56: suppval[24] of d103 is 0x85. +event 56: suppval[25] of d103 is 0x88. +event 57: EOS prop d104 desc record, datasize 76, propxtype 3 +event 57: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 57: suppval[0] of d104 is 0xe8. +event 57: suppval[1] of d104 is 0xeb. +event 57: suppval[2] of d104 is 0xed. +event 57: suppval[3] of d104 is 0xf0. +event 57: suppval[4] of d104 is 0xf3. +event 57: suppval[5] of d104 is 0xf5. +event 57: suppval[6] of d104 is 0xf8. +event 57: suppval[7] of d104 is 0xfb. +event 57: suppval[8] of d104 is 0xfd. +event 57: suppval[9] of d104 is 0x0. +event 57: suppval[10] of d104 is 0x3. +event 57: suppval[11] of d104 is 0x5. +event 57: suppval[12] of d104 is 0x8. +event 57: suppval[13] of d104 is 0xb. +event 57: suppval[14] of d104 is 0xd. +event 57: suppval[15] of d104 is 0x10. +event 57: suppval[16] of d104 is 0x13. +event 57: suppval[17] of d104 is 0x15. +event 57: suppval[18] of d104 is 0x18. +event 58: EOS prop d105 desc record, datasize 0, propxtype 0 +event 58: propxtype is 0 for d105, unhandled, size 20 +event 59: EOS prop d107 desc record, datasize 0, propxtype 0 +event 59: propxtype is 0 for d107, unhandled, size 20 +event 60: EOS prop d108 desc record, datasize 0, propxtype 0 +event 60: propxtype is 0 for d108, unhandled, size 20 +event 61: EOS prop d11b desc record, datasize 0, propxtype 0 +event 61: propdesc d11b, default value not found. +event 62: EOS prop d1c9 desc record, datasize 0, propxtype 0 +event 62: propxtype is 0 for d1c9, unhandled, size 20 +event 63: EOS prop d1a8 desc record, datasize 0, propxtype 0 +event 63: propxtype is 0 for d1a8, unhandled, size 20 +event 64: EOS prop d1d8 desc record, datasize 0, propxtype 0 +event 64: propxtype is 0 for d1d8, unhandled, size 20 +event 65: EOS prop d1dd desc record, datasize 0, propxtype 0 +event 65: propxtype is 0 for d1dd, unhandled, size 20 +event 66: EOS prop d163 desc record, datasize 0, propxtype 0 +event 66: propxtype is 0 for d163, unhandled, size 20 +event 67: EOS prop d164 desc record, datasize 0, propxtype 0 +event 67: propxtype is 0 for d164, unhandled, size 20 +event 68: EOS prop d165 desc record, datasize 0, propxtype 0 +event 68: propxtype is 0 for d165, unhandled, size 20 +event 69: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 01 + 11: 00 +event 70: EOS prop d1a8 info record, datasize is 4 +event 70: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 70: currentvalue of d1a8 is 1 +event 71: EOS prop d1d8 info record, datasize is 64 +event 71: currentvalue of d1d8 is EF-M15-45mm f/3.5-6.3 IS STM +event 72: EOS prop d1dd info record, datasize is 4 +event 72: currentvalue of d1dd is 1039 +event 73: EOS prop d101 info record, datasize is 4 +event 73: currentvalue of d101 is 2b +event 74: EOS prop d108 info record, datasize is 4 +event 74: currentvalue of d108 is 0 +event 75: EOS prop d1ba info record, datasize is 4 +event 75: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 1 +event 75: currentvalue of d1ba is 1 +event 76: EOS prop d1c9 info record, datasize is 4 +event 76: currentvalue of d1c9 is 1 +event 77: EOS prop d101 desc record, datasize 68, propxtype 3 +event 77: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 17. +event 77: suppval[0] of d101 is 0x25. +event 77: suppval[1] of d101 is 0x28. +event 77: suppval[2] of d101 is 0x2b. +event 77: suppval[3] of d101 is 0x2d. +event 77: suppval[4] of d101 is 0x30. +event 77: suppval[5] of d101 is 0x33. +event 77: suppval[6] of d101 is 0x35. +event 77: suppval[7] of d101 is 0x38. +event 77: suppval[8] of d101 is 0x3b. +event 77: suppval[9] of d101 is 0x3d. +event 77: suppval[10] of d101 is 0x40. +event 77: suppval[11] of d101 is 0x43. +event 77: suppval[12] of d101 is 0x45. +event 77: suppval[13] of d101 is 0x48. +event 77: suppval[14] of d101 is 0x4b. +event 77: suppval[15] of d101 is 0x4d. +event 77: suppval[16] of d101 is 0x50. +event 78: EOS prop d1ba desc record, datasize 12, propxtype 3 +event 78: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 3. +event 78: suppval[0] of d1ba is 0x2. +event 78: suppval[1] of d1ba is 0x4. +event 78: suppval[2] of d1ba is 0x1. +olcinfoversion is 8 +event 79: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 + 12: 2b +olcinfoversion is 8 +event 81: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +olcinfoversion is 8 +event 83: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 +event 85: EOS prop d106 info record, datasize is 4 +event 85: currentvalue of d106 is 0 +event 86: EOS prop d106 desc record, datasize 16, propxtype 3 +event 86: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 4. +event 86: suppval[0] of d106 is 0x0. +event 86: suppval[1] of d106 is 0x1. +event 86: suppval[2] of d106 is 0x10. +event 86: suppval[3] of d106 is 0x11. +event 87: EOS prop d106 info record, datasize is 4 +event 87: currentvalue of d106 is 0 +event 88: EOS prop d106 desc record, datasize 16, propxtype 3 +event 88: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 4. +event 88: suppval[0] of d106 is 0x0. +event 88: suppval[1] of d106 is 0x1. +event 88: suppval[2] of d106 is 0x10. +event 88: suppval[3] of d106 is 0x11. +event 89: EOS prop d101 info record, datasize is 4 +event 89: currentvalue of d101 is 2b +event 90: EOS prop d101 desc record, datasize 68, propxtype 3 +event 90: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 17. +event 90: suppval[0] of d101 is 0x25. +event 90: suppval[1] of d101 is 0x28. +event 90: suppval[2] of d101 is 0x2b. +event 90: suppval[3] of d101 is 0x2d. +event 90: suppval[4] of d101 is 0x30. +event 90: suppval[5] of d101 is 0x33. +event 90: suppval[6] of d101 is 0x35. +event 90: suppval[7] of d101 is 0x38. +event 90: suppval[8] of d101 is 0x3b. +event 90: suppval[9] of d101 is 0x3d. +event 90: suppval[10] of d101 is 0x40. +event 90: suppval[11] of d101 is 0x43. +event 90: suppval[12] of d101 is 0x45. +event 90: suppval[13] of d101 is 0x48. +event 90: suppval[14] of d101 is 0x4b. +event 90: suppval[15] of d101 is 0x4d. +event 90: suppval[16] of d101 is 0x50. +olcinfoversion is 8 +event 91: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 + 12: 2b +event 93: EOS prop d102 info record, datasize is 4 +event 93: currentvalue of d102 is 50 +event 94: EOS prop d102 desc record, datasize 0, propxtype 3 +olcinfoversion is 8 +event 95: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +event 97: EOS prop d108 info record, datasize is 4 +event 97: currentvalue of d108 is 0 +event 98: EOS prop d108 desc record, datasize 0, propxtype 0 +event 98: propxtype is 0 for d108, unhandled, size 20 +event 99: EOS prop d111 info record, datasize is 4 +event 99: currentvalue of d111 is 2 +event 100: EOS prop d112 info record, datasize is 4 +event 100: currentvalue of d112 is 0 +event 101: EOS prop d101 info record, datasize is 4 +event 101: currentvalue of d101 is 2b +event 102: EOS prop d102 info record, datasize is 4 +event 102: currentvalue of d102 is 50 +event 103: EOS prop d103 info record, datasize is 4 +event 103: currentvalue of d103 is 0 +event 104: EOS prop d104 info record, datasize is 4 +event 104: currentvalue of d104 is 0 +event 105: EOS prop d105 info record, datasize is 4 +event 105: currentvalue of d105 is 2 +event 106: EOS prop d106 info record, datasize is 4 +event 106: currentvalue of d106 is 0 +event 107: EOS prop d107 info record, datasize is 4 +event 107: currentvalue of d107 is 3 +event 108: EOS prop d108 info record, datasize is 4 +event 108: currentvalue of d108 is 0 +event 109: EOS prop d109 info record, datasize is 4 +event 109: currentvalue of d109 is 0 +event 110: EOS prop d11b info record, datasize is 4 +event 110: currentvalue of d11b is 270f +event 111: EOS prop d120 info record, datasize is 20 +event 111: currentvalue of d120 is 1 +event 111: decoded imageformat, currentvalue of d120 is 300 +event 112: EOS prop d1a8 info record, datasize is 4 +event 112: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 112: currentvalue of d1a8 is 1 +event 113: EOS prop d1ba info record, datasize is 4 +event 113: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 1 +event 113: currentvalue of d1ba is 1 +event 114: EOS prop d1c9 info record, datasize is 4 +event 114: currentvalue of d1c9 is 1 +event 115: EOS prop d194 info record, datasize is 4 +event 115: currentvalue of d194 is 0 +event 116: EOS prop d101 desc record, datasize 68, propxtype 3 +event 116: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 17. +event 116: suppval[0] of d101 is 0x25. +event 116: suppval[1] of d101 is 0x28. +event 116: suppval[2] of d101 is 0x2b. +event 116: suppval[3] of d101 is 0x2d. +event 116: suppval[4] of d101 is 0x30. +event 116: suppval[5] of d101 is 0x33. +event 116: suppval[6] of d101 is 0x35. +event 116: suppval[7] of d101 is 0x38. +event 116: suppval[8] of d101 is 0x3b. +event 116: suppval[9] of d101 is 0x3d. +event 116: suppval[10] of d101 is 0x40. +event 116: suppval[11] of d101 is 0x43. +event 116: suppval[12] of d101 is 0x45. +event 116: suppval[13] of d101 is 0x48. +event 116: suppval[14] of d101 is 0x4b. +event 116: suppval[15] of d101 is 0x4d. +event 116: suppval[16] of d101 is 0x50. +event 117: EOS prop d102 desc record, datasize 0, propxtype 3 +event 118: EOS prop d103 desc record, datasize 104, propxtype 3 +event 118: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 118: suppval[0] of d103 is 0x0. +event 118: suppval[1] of d103 is 0x48. +event 118: suppval[2] of d103 is 0x4b. +event 118: suppval[3] of d103 is 0x4d. +event 118: suppval[4] of d103 is 0x50. +event 118: suppval[5] of d103 is 0x53. +event 118: suppval[6] of d103 is 0x55. +event 118: suppval[7] of d103 is 0x58. +event 118: suppval[8] of d103 is 0x5b. +event 118: suppval[9] of d103 is 0x5d. +event 118: suppval[10] of d103 is 0x60. +event 118: suppval[11] of d103 is 0x63. +event 118: suppval[12] of d103 is 0x65. +event 118: suppval[13] of d103 is 0x68. +event 118: suppval[14] of d103 is 0x6b. +event 118: suppval[15] of d103 is 0x6d. +event 118: suppval[16] of d103 is 0x70. +event 118: suppval[17] of d103 is 0x73. +event 118: suppval[18] of d103 is 0x75. +event 118: suppval[19] of d103 is 0x78. +event 118: suppval[20] of d103 is 0x7b. +event 118: suppval[21] of d103 is 0x7d. +event 118: suppval[22] of d103 is 0x80. +event 118: suppval[23] of d103 is 0x83. +event 118: suppval[24] of d103 is 0x85. +event 118: suppval[25] of d103 is 0x88. +event 119: EOS prop d104 desc record, datasize 76, propxtype 3 +event 119: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 119: suppval[0] of d104 is 0xe8. +event 119: suppval[1] of d104 is 0xeb. +event 119: suppval[2] of d104 is 0xed. +event 119: suppval[3] of d104 is 0xf0. +event 119: suppval[4] of d104 is 0xf3. +event 119: suppval[5] of d104 is 0xf5. +event 119: suppval[6] of d104 is 0xf8. +event 119: suppval[7] of d104 is 0xfb. +event 119: suppval[8] of d104 is 0xfd. +event 119: suppval[9] of d104 is 0x0. +event 119: suppval[10] of d104 is 0x3. +event 119: suppval[11] of d104 is 0x5. +event 119: suppval[12] of d104 is 0x8. +event 119: suppval[13] of d104 is 0xb. +event 119: suppval[14] of d104 is 0xd. +event 119: suppval[15] of d104 is 0x10. +event 119: suppval[16] of d104 is 0x13. +event 119: suppval[17] of d104 is 0x15. +event 119: suppval[18] of d104 is 0x18. +event 120: EOS prop d106 desc record, datasize 16, propxtype 3 +event 120: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 4. +event 120: suppval[0] of d106 is 0x0. +event 120: suppval[1] of d106 is 0x1. +event 120: suppval[2] of d106 is 0x10. +event 120: suppval[3] of d106 is 0x11. +event 121: EOS prop d109 desc record, datasize 0, propxtype 0 +event 121: propxtype is 0 for d109, unhandled, size 20 +event 122: EOS prop d1ba desc record, datasize 12, propxtype 3 +event 122: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 3. +event 122: suppval[0] of d1ba is 0x2. +event 122: suppval[1] of d1ba is 0x4. +event 122: suppval[2] of d1ba is 0x1. +event 123: EOS prop d108 desc record, datasize 0, propxtype 0 +event 123: propxtype is 0 for d108, unhandled, size 20 +event 124: EOS prop d1c9 desc record, datasize 0, propxtype 0 +event 124: propxtype is 0 for d1c9, unhandled, size 20 +olcinfoversion is 8 +event 125: EOS event OLCInfoChanged (size 18) + 0: 0a + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 +olcinfoversion is 8 +event 127: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 + 12: 2b +olcinfoversion is 8 +event 129: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +olcinfoversion is 8 +event 131: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 +event 133: EOS prop d1b0 info record, datasize is 4 +event 133: currentvalue of d1b0 is 8 +event 134: EOS prop d1c9 info record, datasize is 4 +event 134: currentvalue of d1c9 is 1 +event 135: EOS prop d1c9 desc record, datasize 0, propxtype 0 +event 135: propxtype is 0 for d1c9, unhandled, size 20 +event 136: EOS prop d1c9 info record, datasize is 4 +event 136: currentvalue of d1c9 is 1 +event 137: EOS prop d1c9 desc record, datasize 0, propxtype 0 +event 137: propxtype is 0 for d1c9, unhandled, size 20 +event 138: EOS prop d1ba info record, datasize is 4 +event 138: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 1 +event 138: currentvalue of d1ba is 1 +event 139: EOS prop d1ba desc record, datasize 12, propxtype 3 +event 139: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 3. +event 139: suppval[0] of d1ba is 0x2. +event 139: suppval[1] of d1ba is 0x4. +event 139: suppval[2] of d1ba is 0x1. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m3.txt new file mode 100644 index 00000000..5ef067bb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m3.txt @@ -0,0 +1,1176 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS M3 + Version: 3-14.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Shutter Button + +Storage Devices Summary: +store_00010001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 64114262016 (61144 MB) + Free Space (Bytes): 29699211264 (28323 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1432152485 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 57933824 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon EOS M3' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,47490 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053:(readwrite) (type=0x4002) a[42] 72,97,114,108,97,110,32,65,117,66,117,99,104,111,110,32,104,116,116,112,58,47,47,104,97,114,108,97,110,97,117,98,117,99,104,111,110,46,99,111,109,0 +Property 0xd054:(readwrite) (type=0x4002) a[16] 72,97,114,108,97,110,32,65,117,66,117,99,104,111,110,0 +Property 0xd057:(read only) (type=0xffff) '031040012369' +Property 0xd402:(read only) (type=0xffff) 'Canon EOS M3' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS M3 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon EOS M3 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1432152534 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 57933824 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon EOS M3 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d053 +Label: PTP Property 0xd053 +Type: TEXT +Current: (null) +/main/other/d054 +Label: PTP Property 0xd054 +Type: TEXT +Current: (null) +/main/other/d057 +Label: PTP Property 0xd057 +Type: TEXT +Current: 031040012369 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS M3 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS M3 + device version: 3-14.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9116 + 0x9101 + 0x9102 + 0x9103 + 0x9105 + 0x9106 + 0x9107 + 0x9109 + 0x910a + 0x910c + 0x9117 + 0x9118 + 0x912c + 0x9132 + 0x9135 + 0x9140 + 0x9141 + 0x9143 + 0x911a + 0x913f + 0x9115 + 0x911b + 0x911c + 0x911d + 0x913d + 0x9136 + 0x9137 + 0x9114 + 0x9153 + 0x9128 + 0x9129 + 0x9158 + 0x9159 + 0x9154 + 0x9160 + 0x9155 + 0x915b + 0x902f + 0x9110 + 0x9127 + 0x9182 + 0x9183 + 0x9184 + 0x9185 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc101 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd053 + 0xd054 + 0xd057 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS M3 + device version: 3-14.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x9013 (PTP_OC_CANON_CheckEvent) + 0x901f (PTP_OC_CANON_ChangeUSBProtocol) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1012 (Set object protection) + 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) + 0x9021 (PTP_OC_CANON_GetObjectInfoEx) + 0x901b (PTP_OC_CANON_GetPartialObjectEx) + 0x901e (PTP_OC_CANON_GetObjectAttributes) + 0x9019 (PTP_OC_CANON_SendPartialObject) + 0x9006 (PTP_OC_CANON_GetObjectHandleByName) + 0x901c (PTP_OC_CANON_SetObjectTime) + 0x9002 (PTP_OC_CANON_SetObjectArchive) + 0x904c (Unknown PTP_OC) + 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) + 0x9025 (PTP_OC_CANON_SendObjectByPath ) + 0x9038 (Unknown PTP_OC) + 0x9039 (Unknown PTP_OC) + 0x903a (Unknown PTP_OC) + 0x903b (Unknown PTP_OC) + 0x904b (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) + 0x9062 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x902f (Unknown PTP_OC) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x9182 (PTP_OC_CANON_EOS_NotifyEstimateNumberofImport) + 0x9183 (PTP_OC_CANON_EOS_NotifyNumberofImported) + 0x9184 (PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer) + 0x9185 (PTP_OC_CANON_EOS_NotifyFinish) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) +Events Supported: + 0x4001 (CancelTransaction) + 0x4002 (ObjectAdded) + 0x4003 (ObjectRemoved) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4006 (DevicePropChanged) + 0x4007 (ObjectInfoChanged) + 0x4008 (DeviceInfoChanged) + 0x4009 (RequestObjectTransfer) + 0x400a (StoreFull) + 0x400b (DeviceReset) + 0x400c (StorageInfoChanged) + 0x400e (UnreportedStatus) + 0xc001 (Unknown Event) + 0xc005 (Unknown Event) + 0xc00a (Unknown Event) + 0xc101 (Unknown Event) +Device Properties Supported: + 0xd045 (Event Emulate Mode) + 0xd04a (Unknown DPC code) + 0xd02e (Size of Output Data from Camera) + 0xd02f (Size of Input Data to Camera) + 0x5001 (Battery Level) + 0xd002 (Battery Type) + 0xd003 (Battery Mode) + 0xd034 (UNIX Time) + 0xd047 (Type of Slideshow) + 0xd046 (DPOF Version) + 0xd030 (Remote API Version) + 0xd049 (Model ID) + 0xd032 (Camera Model) + 0xd033 (Camera Owner) + 0xd031 (Firmware Version) + 0xd050 (Unknown DPC code) + 0xd051 (Unknown DPC code) + 0xd052 (Unknown DPC code) + 0xd053 (Unknown DPC code) + 0xd054 (Unknown DPC code) + 0xd057 (Unknown DPC code) + 0xd402 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd303 (Unknown DPC code) + +0000 07 07 00 00 02 00 16 91-0b 00 00 00 15 00 00 00 ................ +0010 a5 c1 00 00 0d 00 00 00-04 00 00 00 00 01 00 00 ................ +0020 18 16 00 00 00 a5 c1 00-00 0e 00 00 00 02 00 00 ................ +0030 00 00 01 00 00 00 0c 14-00 00 00 a5 c1 00 00 0c ................ +0040 00 00 00 08 00 00 00 00-01 00 60 10 00 00 00 89 ..........`..... +0050 c1 00 00 16 d1 00 00 00-00 74 03 10 00 00 00 89 .........t...... +0060 c1 00 00 11 d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0070 c1 00 00 12 d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0080 c1 00 00 75 d1 00 00 07-00 00 00 10 00 00 00 89 ...u............ +0090 c1 00 00 b1 d1 00 00 01-00 00 00 10 00 00 00 89 ................ +00a0 c1 00 00 99 d1 00 00 08-00 00 00 24 00 00 00 89 ...........$.... +00b0 c1 00 00 77 d1 00 00 18-00 00 00 04 0e d6 b1 00 ...w............ +00c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 10 ................ +00d0 00 00 00 89 c1 00 00 b0-d1 00 00 08 00 00 00 10 ................ +00e0 00 00 00 89 c1 00 00 a8-d1 00 00 01 00 00 00 10 ................ +00f0 00 00 00 89 c1 00 00 08-d1 00 00 03 00 00 00 10 ................ +0100 00 00 00 89 c1 00 00 05-d1 00 00 07 00 00 00 10 ................ +0110 00 00 00 89 c1 00 00 09-d1 00 00 01 00 00 00 10 ................ +0120 00 00 00 89 c1 00 00 07-d1 00 00 05 00 00 00 10 ................ +0130 00 00 00 89 c1 00 00 06-d1 00 00 00 00 00 00 30 ...............0 +0140 00 00 00 89 c1 00 00 20-d1 00 00 02 00 00 00 10 ....... ........ +0150 00 00 00 06 00 00 00 00-00 00 00 04 00 00 00 10 ................ +0160 00 00 00 01 00 00 00 00-00 00 00 03 00 00 00 10 ................ +0170 00 00 00 89 c1 00 00 ba-d1 00 00 01 00 00 00 10 ................ +0180 00 00 00 89 c1 00 00 01-d1 00 00 18 00 00 00 10 ................ +0190 00 00 00 89 c1 00 00 02-d1 00 00 0c 00 00 00 10 ................ +01a0 00 00 00 89 c1 00 00 03-d1 00 00 60 00 00 00 10 ...........`.... +01b0 00 00 00 89 c1 00 00 04-d1 00 00 00 00 00 00 10 ................ +01c0 00 00 00 89 c1 00 00 1e-d1 00 00 01 00 01 00 10 ................ +01d0 00 00 00 89 c1 00 00 7c-d1 00 00 42 a7 10 5c 10 .......|...B..\. +01e0 00 00 00 89 c1 00 00 38-d1 00 00 b0 01 40 03 10 .......8.....@.. +01f0 00 00 00 89 c1 00 00 94-d1 00 00 00 00 00 00 10 ................ +0200 00 00 00 89 c1 00 00 c9-d1 00 00 01 00 00 00 10 ................ +0210 00 00 00 89 c1 00 00 b2-d1 00 00 00 00 00 00 48 ...............H +0220 00 00 00 89 c1 00 00 3f-d1 00 00 01 00 00 00 6a .......?.......j +0230 70 2e 63 6f 2e 63 61 6e-6f 6e 2e 69 63 2e 65 6f p.co.canon.ic.eo +0240 73 2e 65 6f 73 72 65 6d-6f 74 65 00 00 00 00 00 s.eosremote..... +0250 00 00 00 00 00 00 00 63-61 6e 6f 6e 2d 61 30 31 .......canon-a01 +0260 2d 65 72 00 00 00 00 2c-00 00 00 89 c1 00 00 60 -er....,.......` +0270 d1 00 00 20 00 00 00 87-00 00 00 00 00 00 00 03 ... ............ +0280 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0290 00 00 00 2c 00 00 00 89-c1 00 00 61 d1 00 00 20 ...,.......a... +02a0 00 00 00 87 00 00 00 00-00 00 00 03 00 00 00 00 ................ +02b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 2c ..............., +02c0 00 00 00 89 c1 00 00 62-d1 00 00 20 00 00 00 87 .......b... .... +02d0 00 00 00 00 00 00 00 03-00 00 00 00 00 00 00 00 ................ +02e0 00 00 00 00 00 00 00 00-00 00 00 4c 00 00 00 89 ...........L.... +02f0 c1 00 00 d8 d1 00 00 45-46 2d 4d 32 32 6d 6d 20 .......EF-M22mm +0300 66 2f 32 20 53 54 4d 00-00 00 00 00 00 00 00 00 f/2 STM......... +0310 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0320 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0330 00 00 00 00 00 00 00 10-00 00 00 89 c1 00 00 dd ................ +0340 d1 00 00 31 10 00 00 1c-00 00 00 8a c1 00 00 b0 ...1............ +0350 d1 00 00 03 00 00 00 02-00 00 00 00 00 00 00 08 ................ +0360 00 00 00 14 00 00 00 8a-c1 00 00 08 d1 00 00 00 ................ +0370 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 05 ................ +0380 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0390 c1 00 00 07 d1 00 00 00-00 00 00 00 00 00 00 14 ................ +03a0 00 00 00 8a c1 00 00 11-d1 00 00 00 00 00 00 00 ................ +03b0 00 00 00 14 00 00 00 8a-c1 00 00 12 d1 00 00 00 ................ +03c0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 16 ................ +03d0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +03e0 c1 00 00 1b d1 00 00 00-00 00 00 00 00 00 00 14 ................ +03f0 00 00 00 8a c1 00 00 1e-d1 00 00 00 00 00 00 00 ................ + +0.218709 gp_port_read (3): Reading 512 = 0x200 bytes from port... +0.218844 gp_port_read (3): Read 512 = 0x200 bytes from port: (hexdump of 512 bytes) +0000 00 00 00 14 00 00 00 8a-c1 00 00 20 d1 00 00 00 ........... .... +0010 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 38 ...............8 +0020 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0030 c1 00 00 77 d1 00 00 00-00 00 00 00 00 00 00 14 ...w............ +0040 00 00 00 8a c1 00 00 7c-d1 00 00 00 00 00 00 00 .......|........ +0050 00 00 00 14 00 00 00 8a-c1 00 00 94 d1 00 00 00 ................ +0060 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 a8 ................ +0070 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0080 c1 00 00 b1 d1 00 00 00-00 00 00 00 00 00 00 6c ...............l +0090 00 00 00 8a c1 00 00 01-d1 00 00 03 00 00 00 16 ................ +00a0 00 00 00 18 00 00 00 1b-00 00 00 1d 00 00 00 20 ............... +00b0 00 00 00 23 00 00 00 25-00 00 00 28 00 00 00 2b ...#...%...(...+ +00c0 00 00 00 2d 00 00 00 30-00 00 00 33 00 00 00 35 ...-...0...3...5 +00d0 00 00 00 38 00 00 00 3b-00 00 00 3d 00 00 00 40 ...8...;...=...@ +00e0 00 00 00 43 00 00 00 45-00 00 00 48 00 00 00 4b ...C...E...H...K +00f0 00 00 00 4d 00 00 00 50-00 00 00 e8 00 00 00 8a ...M...P........ +0100 c1 00 00 02 d1 00 00 03-00 00 00 35 00 00 00 0c ...........5.... +0110 00 00 00 10 00 00 00 13-00 00 00 15 00 00 00 18 ................ +0120 00 00 00 1b 00 00 00 1d-00 00 00 20 00 00 00 23 ........... ...# +0130 00 00 00 25 00 00 00 28-00 00 00 2b 00 00 00 2d ...%...(...+...- +0140 00 00 00 30 00 00 00 33-00 00 00 35 00 00 00 38 ...0...3...5...8 +0150 00 00 00 3b 00 00 00 3d-00 00 00 40 00 00 00 43 ...;...=...@...C +0160 00 00 00 45 00 00 00 48-00 00 00 4b 00 00 00 4d ...E...H...K...M +0170 00 00 00 50 00 00 00 53-00 00 00 55 00 00 00 58 ...P...S...U...X +0180 00 00 00 5b 00 00 00 5d-00 00 00 60 00 00 00 63 ...[...]...`...c +0190 00 00 00 65 00 00 00 68-00 00 00 6b 00 00 00 6d ...e...h...k...m +01a0 00 00 00 70 00 00 00 73-00 00 00 75 00 00 00 78 ...p...s...u...x +01b0 00 00 00 7b 00 00 00 7d-00 00 00 80 00 00 00 83 ...{...}........ +01c0 00 00 00 85 00 00 00 88-00 00 00 8b 00 00 00 8d ................ +01d0 00 00 00 90 00 00 00 93-00 00 00 95 00 00 00 98 ................ +01e0 00 00 00 70 00 00 00 8a-c1 00 00 03 d1 00 00 03 ...p............ +01f0 00 00 00 17 00 00 00 00-00 00 00 48 00 00 00 4b ...........H...K + +0.218865 gp_port_read (3): Reading 263 = 0x107 bytes from port... +0.218983 gp_port_read (3): Read 263 = 0x107 bytes from port: (hexdump of 263 bytes) +0000 00 00 00 4d 00 00 00 50-00 00 00 53 00 00 00 55 ...M...P...S...U +0010 00 00 00 58 00 00 00 5b-00 00 00 5d 00 00 00 60 ...X...[...]...` +0020 00 00 00 63 00 00 00 65-00 00 00 68 00 00 00 6b ...c...e...h...k +0030 00 00 00 6d 00 00 00 70-00 00 00 73 00 00 00 75 ...m...p...s...u +0040 00 00 00 78 00 00 00 7b-00 00 00 7d 00 00 00 80 ...x...{...}.... +0050 00 00 00 14 00 00 00 8a-c1 00 00 04 d1 00 00 03 ................ +0060 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 ba ................ +0070 d1 00 00 03 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0080 c1 00 00 c9 d1 00 00 00-00 00 00 00 00 00 00 14 ................ +0090 00 00 00 8a c1 00 00 60-d1 00 00 00 00 00 00 00 .......`........ +00a0 00 00 00 14 00 00 00 8a-c1 00 00 61 d1 00 00 00 ...........a.... +00b0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 62 ...............b +00c0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +00d0 c1 00 00 d8 d1 00 00 00-00 00 00 00 00 00 00 14 ................ +00e0 00 00 00 8a c1 00 00 dd-d1 00 00 00 00 00 00 00 ................ +00f0 00 00 00 0c 00 00 00 a4-c1 00 00 01 00 01 00 08 ................ +0100 00 00 00 00 00 00 00 - ....... + +0.219515 ptp (2): olcinfoversion is 0 +0.219529 ptp (2): event 0: EOS event OLCInfoChanged (size 21) +0.219542 ptp (2): 0: 0d +0.219554 ptp (2): 1: 00 +0.219565 ptp (2): 2: 00 +0.219576 ptp (2): 3: 00 +0.219588 ptp (2): 4: 04 +0.219599 ptp (2): 5: 00 +0.219610 ptp (2): 6: 00 +0.219621 ptp (2): 7: 00 +0.219632 ptp (2): 8: 00 +0.219643 ptp (2): 9: 01 +0.219654 ptp (2): 10: 00 +0.219666 ptp (2): 11: 00 +0.219678 ptp (2): 12: 18 +0.219712 ptp (2): olcinfoversion is 0 +0.219724 ptp (2): event 2: EOS event OLCInfoChanged (size 22) +0.219736 ptp (2): 0: 0e +0.219747 ptp (2): 1: 00 +0.219759 ptp (2): 2: 00 +0.219770 ptp (2): 3: 00 +0.219781 ptp (2): 4: 02 +0.219793 ptp (2): 5: 00 +0.219804 ptp (2): 6: 00 +0.219815 ptp (2): 7: 00 +0.219826 ptp (2): 8: 00 +0.219837 ptp (2): 9: 01 +0.219848 ptp (2): 10: 00 +0.219859 ptp (2): 11: 00 +0.219870 ptp (2): 12: 00 +0.219882 ptp (2): 13: 0c +0.219897 ptp (2): olcinfoversion is 0 +0.219909 ptp (2): event 4: EOS event OLCInfoChanged (size 20) +0.219921 ptp (2): 0: 0c +0.219932 ptp (2): 1: 00 +0.219943 ptp (2): 2: 00 +0.219954 ptp (2): 3: 00 +0.219965 ptp (2): 4: 08 +0.219976 ptp (2): 5: 00 +0.219987 ptp (2): 6: 00 +0.219999 ptp (2): 7: 00 +0.220009 ptp (2): 8: 00 +0.220021 ptp (2): 9: 01 +0.220032 ptp (2): 10: 00 +0.220043 ptp (2): 11: 60 +0.220058 ptp (2): event 6: EOS prop d116 info record, datasize is 4 +0.220072 ptp (2): event 6: currentvalue of d116 is 3740000 +0.220085 ptp (2): event 7: EOS prop d111 info record, datasize is 4 +0.220098 ptp (2): event 7: currentvalue of d111 is 2 +0.220110 ptp (2): event 8: EOS prop d112 info record, datasize is 4 +0.220123 ptp (2): event 8: currentvalue of d112 is 2 +0.220136 ptp (2): event 9: EOS prop d175 info record, datasize is 4 +0.220149 ptp (2): event 9: Unknown EOS property d175, datasize is 4 +0.220163 ptp (2): 0: 07 +0.220174 ptp (2): 1: 00 +0.220186 ptp (2): 2: 00 +0.220197 ptp (2): 3: 00 +0.220209 ptp (2): event 10: EOS prop d1b1 info record, datasize is 4 +0.220222 ptp (2): event 10: currentvalue of d1b1 is 1 +0.220236 ptp (2): event 11: EOS prop d199 info record, datasize is 4 +0.220248 ptp (2): event 11: currentvalue of d199 is 8 +0.220261 ptp (2): event 12: EOS prop d177 info record, datasize is 24 +0.220274 ptp (2): event 12: Unknown EOS property d177, datasize is 24 +0.220299 ptp (2): 0: 18 +0.220311 ptp (2): 1: 00 +0.220322 ptp (2): 2: 00 +0.220333 ptp (2): 3: 00 +0.220344 ptp (2): 4: 04 +0.220355 ptp (2): 5: 0e +0.220366 ptp (2): 6: d6 +0.220377 ptp (2): 7: b1 +0.220388 ptp (2): 8: 00 +0.220398 ptp (2): 9: 00 +0.220409 ptp (2): 10: 00 +0.220421 ptp (2): 11: 00 +0.220432 ptp (2): 12: 00 +0.220443 ptp (2): 13: 00 +0.220454 ptp (2): 14: 00 +0.220465 ptp (2): 15: 00 +0.220477 ptp (2): 16: 00 +0.220488 ptp (2): 17: 00 +0.220499 ptp (2): 18: 00 +0.220510 ptp (2): 19: 00 +0.220521 ptp (2): 20: 00 +0.220532 ptp (2): 21: 00 +0.220544 ptp (2): 22: 00 +0.220555 ptp (2): 23: 00 +0.220568 ptp (2): event 13: EOS prop d1b0 info record, datasize is 4 +0.220581 ptp (2): event 13: currentvalue of d1b0 is 8 +0.220593 ptp (2): event 14: EOS prop d1a8 info record, datasize is 4 +0.220607 ptp (2): event 14: Unknown EOS property d1a8, datasize is 4, using uint32 +0.220619 ptp (2): 0: 0x 1 +0.220632 ptp (2): event 14: currentvalue of d1a8 is 1 +0.220644 ptp (2): event 15: EOS prop d108 info record, datasize is 4 +0.220657 ptp (2): event 15: currentvalue of d108 is 3 +0.220670 ptp (2): event 16: EOS prop d105 info record, datasize is 4 +0.220683 ptp (2): event 16: currentvalue of d105 is 7 +0.220696 ptp (2): event 17: EOS prop d109 info record, datasize is 4 +0.220709 ptp (2): event 17: currentvalue of d109 is 1 +0.220722 ptp (2): event 18: EOS prop d107 info record, datasize is 4 +0.220735 ptp (2): event 18: currentvalue of d107 is 5 +0.220747 ptp (2): event 19: EOS prop d106 info record, datasize is 4 +0.220760 ptp (2): event 19: currentvalue of d106 is 0 +0.220773 ptp (2): event 20: EOS prop d120 info record, datasize is 36 +0.220788 ptp (2): event 20: decoded imageformat, currentvalue of d120 is 403 +0.220801 ptp (2): event 21: EOS prop d1ba info record, datasize is 4 +0.220815 ptp (2): event 21: Unknown EOS property d1ba, datasize is 4, using uint32 +0.220827 ptp (2): 0: 0x 1 +0.220839 ptp (2): event 21: currentvalue of d1ba is 1 +0.220852 ptp (2): event 22: EOS prop d101 info record, datasize is 4 +0.220864 ptp (2): event 22: currentvalue of d101 is 18 +0.220877 ptp (2): event 23: EOS prop d102 info record, datasize is 4 +0.220889 ptp (2): event 23: currentvalue of d102 is c +0.220902 ptp (2): event 24: EOS prop d103 info record, datasize is 4 +0.220915 ptp (2): event 24: currentvalue of d103 is 60 +0.220927 ptp (2): event 25: EOS prop d104 info record, datasize is 4 +0.220941 ptp (2): event 25: currentvalue of d104 is 0 +0.220954 ptp (2): event 26: EOS prop d11e info record, datasize is 4 +0.220967 ptp (2): event 26: currentvalue of d11e is 10001 +0.220980 ptp (2): event 27: EOS prop d17c info record, datasize is 4 +0.220999 ptp (2): event 27: currentvalue of d17c is 5c10a742 +0.221013 ptp (2): event 28: EOS prop d138 info record, datasize is 4 +0.221027 ptp (2): event 28: Unknown EOS property d138, datasize is 4 +0.221040 ptp (2): 0: b0 +0.221051 ptp (2): 1: 01 +0.221062 ptp (2): 2: 40 +0.221074 ptp (2): 3: 03 +0.221086 ptp (2): event 29: EOS prop d194 info record, datasize is 4 +0.221099 ptp (2): event 29: currentvalue of d194 is 0 +0.221111 ptp (2): event 30: EOS prop d1c9 info record, datasize is 4 +0.221125 ptp (2): event 30: currentvalue of d1c9 is 1 +0.221137 ptp (2): event 31: EOS prop d1b2 info record, datasize is 4 +0.221152 ptp (2): event 31: Unknown EOS property d1b2, datasize is 4, using uint32 +0.221165 ptp (2): 0: 0x 0 +0.221177 ptp (2): event 31: currentvalue of d1b2 is 0 +0.221190 ptp (2): event 32: EOS prop d13f info record, datasize is 60 +0.221204 ptp (2): event 32: Unknown EOS property d13f, datasize is 60 +0.221216 ptp (2): 0: 01 +0.221235 ptp (2): 1: 00 +0.221247 ptp (2): 2: 00 +0.221258 ptp (2): 3: 00 +0.221269 ptp (2): 4: 6a +0.221280 ptp (2): 5: 70 +0.221291 ptp (2): 6: 2e +0.221302 ptp (2): 7: 63 +0.221313 ptp (2): 8: 6f +0.221324 ptp (2): 9: 2e +0.221335 ptp (2): 10: 63 +0.221346 ptp (2): 11: 61 +0.221357 ptp (2): 12: 6e +0.221368 ptp (2): 13: 6f +0.221379 ptp (2): 14: 6e +0.221390 ptp (2): 15: 2e +0.221401 ptp (2): 16: 69 +0.221412 ptp (2): 17: 63 +0.221423 ptp (2): 18: 2e +0.221434 ptp (2): 19: 65 +0.221445 ptp (2): 20: 6f +0.221456 ptp (2): 21: 73 +0.221467 ptp (2): 22: 2e +0.221478 ptp (2): 23: 65 +0.221489 ptp (2): 24: 6f +0.221500 ptp (2): 25: 73 +0.221511 ptp (2): 26: 72 +0.221522 ptp (2): 27: 65 +0.221533 ptp (2): 28: 6d +0.221545 ptp (2): 29: 6f +0.221556 ptp (2): 30: 74 +0.221567 ptp (2): 31: 65 +0.221578 ptp (2): 32: 00 +0.221589 ptp (2): 33: 00 +0.221600 ptp (2): 34: 00 +0.221611 ptp (2): 35: 00 +0.221622 ptp (2): 36: 00 +0.221633 ptp (2): 37: 00 +0.221644 ptp (2): 38: 00 +0.221655 ptp (2): 39: 00 +0.221667 ptp (2): 40: 00 +0.221678 ptp (2): 41: 00 +0.221689 ptp (2): 42: 00 +0.221700 ptp (2): 43: 00 +0.221711 ptp (2): 44: 63 +0.221722 ptp (2): 45: 61 +0.221733 ptp (2): 46: 6e +0.221744 ptp (2): 47: 6f +0.221755 ptp (2): 48: 6e +0.221766 ptp (2): 49: 2d +0.221776 ptp (2): 50: 61 +0.221798 ptp (2): 51: 30 +0.221810 ptp (2): 52: 31 +0.221821 ptp (2): 53: 2d +0.221832 ptp (2): 54: 65 +0.221842 ptp (2): 55: 72 +0.221854 ptp (2): 56: 00 +0.221865 ptp (2): 57: 00 +0.221876 ptp (2): 58: 00 +0.221887 ptp (2): 59: 00 +0.221899 ptp (2): event 33: EOS prop d160 info record, datasize is 32 +0.221913 ptp (2): event 33: Unknown EOS property d160, datasize is 32 +0.221925 ptp (2): 0: 20 +0.221936 ptp (2): 1: 00 +0.221948 ptp (2): 2: 00 +0.221958 ptp (2): 3: 00 +0.221969 ptp (2): 4: 87 +0.221980 ptp (2): 5: 00 +0.221991 ptp (2): 6: 00 +0.222003 ptp (2): 7: 00 +0.222014 ptp (2): 8: 00 +0.222025 ptp (2): 9: 00 +0.222036 ptp (2): 10: 00 +0.222047 ptp (2): 11: 00 +0.222058 ptp (2): 12: 03 +0.222069 ptp (2): 13: 00 +0.222081 ptp (2): 14: 00 +0.222092 ptp (2): 15: 00 +0.222103 ptp (2): 16: 00 +0.222114 ptp (2): 17: 00 +0.222125 ptp (2): 18: 00 +0.222136 ptp (2): 19: 00 +0.222147 ptp (2): 20: 00 +0.222158 ptp (2): 21: 00 +0.222169 ptp (2): 22: 00 +0.222181 ptp (2): 23: 00 +0.222192 ptp (2): 24: 00 +0.222203 ptp (2): 25: 00 +0.222214 ptp (2): 26: 00 +0.222225 ptp (2): 27: 00 +0.222236 ptp (2): 28: 00 +0.222247 ptp (2): 29: 00 +0.222258 ptp (2): 30: 00 +0.222269 ptp (2): 31: 00 +0.222281 ptp (2): event 34: EOS prop d161 info record, datasize is 32 +0.222295 ptp (2): event 34: Unknown EOS property d161, datasize is 32 +0.222306 ptp (2): 0: 20 +0.222318 ptp (2): 1: 00 +0.222329 ptp (2): 2: 00 +0.222339 ptp (2): 3: 00 +0.222350 ptp (2): 4: 87 +0.222361 ptp (2): 5: 00 +0.222372 ptp (2): 6: 00 +0.222383 ptp (2): 7: 00 +0.222394 ptp (2): 8: 00 +0.222405 ptp (2): 9: 00 +0.222416 ptp (2): 10: 00 +0.222427 ptp (2): 11: 00 +0.222439 ptp (2): 12: 03 +0.222450 ptp (2): 13: 00 +0.222461 ptp (2): 14: 00 +0.222472 ptp (2): 15: 00 +0.222483 ptp (2): 16: 00 +0.222494 ptp (2): 17: 00 +0.222505 ptp (2): 18: 00 +0.222516 ptp (2): 19: 00 +0.222527 ptp (2): 20: 00 +0.222539 ptp (2): 21: 00 +0.222551 ptp (2): 22: 00 +0.222562 ptp (2): 23: 00 +0.222573 ptp (2): 24: 00 +0.222584 ptp (2): 25: 00 +0.222595 ptp (2): 26: 00 +0.222606 ptp (2): 27: 00 +0.222617 ptp (2): 28: 00 +0.222637 ptp (2): 29: 00 +0.222649 ptp (2): 30: 00 +0.222660 ptp (2): 31: 00 +0.222673 ptp (2): event 35: EOS prop d162 info record, datasize is 32 +0.222687 ptp (2): event 35: Unknown EOS property d162, datasize is 32 +0.222698 ptp (2): 0: 20 +0.222709 ptp (2): 1: 00 +0.222720 ptp (2): 2: 00 +0.222731 ptp (2): 3: 00 +0.222742 ptp (2): 4: 87 +0.222753 ptp (2): 5: 00 +0.222764 ptp (2): 6: 00 +0.222775 ptp (2): 7: 00 +0.222787 ptp (2): 8: 00 +0.222798 ptp (2): 9: 00 +0.222809 ptp (2): 10: 00 +0.222820 ptp (2): 11: 00 +0.222831 ptp (2): 12: 03 +0.222842 ptp (2): 13: 00 +0.222853 ptp (2): 14: 00 +0.222864 ptp (2): 15: 00 +0.222875 ptp (2): 16: 00 +0.222887 ptp (2): 17: 00 +0.222897 ptp (2): 18: 00 +0.222908 ptp (2): 19: 00 +0.222920 ptp (2): 20: 00 +0.222931 ptp (2): 21: 00 +0.222942 ptp (2): 22: 00 +0.222953 ptp (2): 23: 00 +0.222964 ptp (2): 24: 00 +0.222975 ptp (2): 25: 00 +0.222986 ptp (2): 26: 00 +0.222997 ptp (2): 27: 00 +0.223008 ptp (2): 28: 00 +0.223019 ptp (2): 29: 00 +0.223030 ptp (2): 30: 00 +0.223042 ptp (2): 31: 00 +0.223054 ptp (2): event 36: EOS prop d1d8 info record, datasize is 64 +0.223068 ptp (2): event 36: currentvalue of d1d8 is EF-M22mm f/2 STM +0.223081 ptp (2): event 37: EOS prop d1dd info record, datasize is 4 +0.223094 ptp (2): event 37: currentvalue of d1dd is 1031 +0.223108 ptp (2): event 38: EOS prop d1b0 desc record, datasize 8, propxtype 3 +0.223123 ptp (2): event 38: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +0.223136 ptp (2): event 38: suppval[0] of d1b0 is 0x0. +0.223149 ptp (2): event 38: suppval[1] of d1b0 is 0x8. +0.223163 ptp (2): event 39: EOS prop d108 desc record, datasize 0, propxtype 0 +0.223177 ptp (2): event 39: propxtype is 0 for d108, unhandled, size 20 +0.223190 ptp (2): event 40: EOS prop d105 desc record, datasize 0, propxtype 0 +0.223203 ptp (2): event 40: propxtype is 0 for d105, unhandled, size 20 +0.223216 ptp (2): event 41: EOS prop d107 desc record, datasize 0, propxtype 0 +0.223229 ptp (2): event 41: propxtype is 0 for d107, unhandled, size 20 +0.223242 ptp (2): event 42: EOS prop d111 desc record, datasize 0, propxtype 0 +0.223255 ptp (2): event 42: propxtype is 0 for d111, unhandled, size 20 +0.223268 ptp (2): event 43: EOS prop d112 desc record, datasize 0, propxtype 0 +0.223281 ptp (2): event 43: propxtype is 0 for d112, unhandled, size 20 +0.223295 ptp (2): event 44: EOS prop d116 desc record, datasize 0, propxtype 0 +0.223308 ptp (2): event 44: propxtype is 0 for d116, unhandled, size 20 +0.223321 ptp (2): event 45: EOS prop d11b desc record, datasize 0, propxtype 0 +0.223333 ptp (2): event 45: propdesc d11b, default value not found. +0.223356 ptp (2): event 46: EOS prop d11e desc record, datasize 0, propxtype 0 +0.223370 ptp (2): event 46: propxtype is 0 for d11e, unhandled, size 20 +0.223383 ptp (2): event 47: EOS prop d120 desc record, datasize 0, propxtype 0 +0.223396 ptp (2): event 47: propxtype is 0 for d120, unhandled, size 20 +0.223409 ptp (2): event 48: EOS prop d138 desc record, datasize 0, propxtype 0 +0.223423 ptp (2): event 48: propxtype is 0 for d138, unhandled, size 20 +0.223436 ptp (2): event 49: EOS prop d177 desc record, datasize 0, propxtype 0 +0.223449 ptp (2): event 49: propxtype is 0 for d177, unhandled, size 20 +0.223462 ptp (2): event 50: EOS prop d17c desc record, datasize 0, propxtype 0 +0.223475 ptp (2): event 50: propxtype is 0 for d17c, unhandled, size 20 +0.223489 ptp (2): event 51: EOS prop d194 desc record, datasize 0, propxtype 0 +0.223502 ptp (2): event 51: propxtype is 0 for d194, unhandled, size 20 +0.223515 ptp (2): event 52: EOS prop d1a8 desc record, datasize 0, propxtype 0 +0.223528 ptp (2): event 52: propxtype is 0 for d1a8, unhandled, size 20 +0.223542 ptp (2): event 53: EOS prop d1b1 desc record, datasize 0, propxtype 0 +0.223555 ptp (2): event 53: propxtype is 0 for d1b1, unhandled, size 20 +0.223568 ptp (2): event 54: EOS prop d101 desc record, datasize 88, propxtype 3 +0.223583 ptp (2): event 54: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 22. +0.223597 ptp (2): event 54: suppval[0] of d101 is 0x18. +0.223609 ptp (2): event 54: suppval[1] of d101 is 0x1b. +0.223622 ptp (2): event 54: suppval[2] of d101 is 0x1d. +0.223635 ptp (2): event 54: suppval[3] of d101 is 0x20. +0.223647 ptp (2): event 54: suppval[4] of d101 is 0x23. +0.223660 ptp (2): event 54: suppval[5] of d101 is 0x25. +0.223673 ptp (2): event 54: suppval[6] of d101 is 0x28. +0.223685 ptp (2): event 54: suppval[7] of d101 is 0x2b. +0.223698 ptp (2): event 54: suppval[8] of d101 is 0x2d. +0.223710 ptp (2): event 54: suppval[9] of d101 is 0x30. +0.223723 ptp (2): event 54: suppval[10] of d101 is 0x33. +0.223735 ptp (2): event 54: suppval[11] of d101 is 0x35. +0.223748 ptp (2): event 54: suppval[12] of d101 is 0x38. +0.223760 ptp (2): event 54: suppval[13] of d101 is 0x3b. +0.223773 ptp (2): event 54: suppval[14] of d101 is 0x3d. +0.223785 ptp (2): event 54: suppval[15] of d101 is 0x40. +0.223798 ptp (2): event 54: suppval[16] of d101 is 0x43. +0.223811 ptp (2): event 54: suppval[17] of d101 is 0x45. +0.223823 ptp (2): event 54: suppval[18] of d101 is 0x48. +0.223836 ptp (2): event 54: suppval[19] of d101 is 0x4b. +0.223849 ptp (2): event 54: suppval[20] of d101 is 0x4d. +0.223861 ptp (2): event 54: suppval[21] of d101 is 0x50. +0.223874 ptp (2): event 55: EOS prop d102 desc record, datasize 212, propxtype 3 +0.223889 ptp (2): event 55: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 53. +0.223902 ptp (2): event 55: suppval[0] of d102 is 0xc. +0.223916 ptp (2): event 55: suppval[1] of d102 is 0x10. +0.223928 ptp (2): event 55: suppval[2] of d102 is 0x13. +0.223951 ptp (2): event 55: suppval[3] of d102 is 0x15. +0.223964 ptp (2): event 55: suppval[4] of d102 is 0x18. +0.223976 ptp (2): event 55: suppval[5] of d102 is 0x1b. +0.223989 ptp (2): event 55: suppval[6] of d102 is 0x1d. +0.224001 ptp (2): event 55: suppval[7] of d102 is 0x20. +0.224014 ptp (2): event 55: suppval[8] of d102 is 0x23. +0.224026 ptp (2): event 55: suppval[9] of d102 is 0x25. +0.224039 ptp (2): event 55: suppval[10] of d102 is 0x28. +0.224052 ptp (2): event 55: suppval[11] of d102 is 0x2b. +0.224064 ptp (2): event 55: suppval[12] of d102 is 0x2d. +0.224077 ptp (2): event 55: suppval[13] of d102 is 0x30. +0.224089 ptp (2): event 55: suppval[14] of d102 is 0x33. +0.224102 ptp (2): event 55: suppval[15] of d102 is 0x35. +0.224114 ptp (2): event 55: suppval[16] of d102 is 0x38. +0.224127 ptp (2): event 55: suppval[17] of d102 is 0x3b. +0.224139 ptp (2): event 55: suppval[18] of d102 is 0x3d. +0.224152 ptp (2): event 55: suppval[19] of d102 is 0x40. +0.224165 ptp (2): event 55: suppval[20] of d102 is 0x43. +0.224178 ptp (2): event 55: suppval[21] of d102 is 0x45. +0.224190 ptp (2): event 55: suppval[22] of d102 is 0x48. +0.224203 ptp (2): event 55: suppval[23] of d102 is 0x4b. +0.224215 ptp (2): event 55: suppval[24] of d102 is 0x4d. +0.224228 ptp (2): event 55: suppval[25] of d102 is 0x50. +0.224240 ptp (2): event 55: suppval[26] of d102 is 0x53. +0.224253 ptp (2): event 55: suppval[27] of d102 is 0x55. +0.224266 ptp (2): event 55: suppval[28] of d102 is 0x58. +0.224278 ptp (2): event 55: suppval[29] of d102 is 0x5b. +0.224291 ptp (2): event 55: suppval[30] of d102 is 0x5d. +0.224304 ptp (2): event 55: suppval[31] of d102 is 0x60. +0.224316 ptp (2): event 55: suppval[32] of d102 is 0x63. +0.224329 ptp (2): event 55: suppval[33] of d102 is 0x65. +0.224341 ptp (2): event 55: suppval[34] of d102 is 0x68. +0.224353 ptp (2): event 55: suppval[35] of d102 is 0x6b. +0.224366 ptp (2): event 55: suppval[36] of d102 is 0x6d. +0.224379 ptp (2): event 55: suppval[37] of d102 is 0x70. +0.224391 ptp (2): event 55: suppval[38] of d102 is 0x73. +0.224403 ptp (2): event 55: suppval[39] of d102 is 0x75. +0.224417 ptp (2): event 55: suppval[40] of d102 is 0x78. +0.224429 ptp (2): event 55: suppval[41] of d102 is 0x7b. +0.224442 ptp (2): event 55: suppval[42] of d102 is 0x7d. +0.224454 ptp (2): event 55: suppval[43] of d102 is 0x80. +0.224467 ptp (2): event 55: suppval[44] of d102 is 0x83. +0.224479 ptp (2): event 55: suppval[45] of d102 is 0x85. +0.224492 ptp (2): event 55: suppval[46] of d102 is 0x88. +0.224504 ptp (2): event 55: suppval[47] of d102 is 0x8b. +0.224517 ptp (2): event 55: suppval[48] of d102 is 0x8d. +0.224529 ptp (2): event 55: suppval[49] of d102 is 0x90. +0.224543 ptp (2): event 55: suppval[50] of d102 is 0x93. +0.224555 ptp (2): event 55: suppval[51] of d102 is 0x95. +0.224568 ptp (2): event 55: suppval[52] of d102 is 0x98. +0.224581 ptp (2): event 56: EOS prop d103 desc record, datasize 92, propxtype 3 +0.224606 ptp (2): event 56: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 23. +0.224621 ptp (2): event 56: suppval[0] of d103 is 0x0. +0.224633 ptp (2): event 56: suppval[1] of d103 is 0x48. +0.224646 ptp (2): event 56: suppval[2] of d103 is 0x4b. +0.224659 ptp (2): event 56: suppval[3] of d103 is 0x4d. +0.224671 ptp (2): event 56: suppval[4] of d103 is 0x50. +0.224684 ptp (2): event 56: suppval[5] of d103 is 0x53. +0.224696 ptp (2): event 56: suppval[6] of d103 is 0x55. +0.224709 ptp (2): event 56: suppval[7] of d103 is 0x58. +0.224721 ptp (2): event 56: suppval[8] of d103 is 0x5b. +0.224734 ptp (2): event 56: suppval[9] of d103 is 0x5d. +0.224746 ptp (2): event 56: suppval[10] of d103 is 0x60. +0.224759 ptp (2): event 56: suppval[11] of d103 is 0x63. +0.224771 ptp (2): event 56: suppval[12] of d103 is 0x65. +0.224784 ptp (2): event 56: suppval[13] of d103 is 0x68. +0.224797 ptp (2): event 56: suppval[14] of d103 is 0x6b. +0.224809 ptp (2): event 56: suppval[15] of d103 is 0x6d. +0.224822 ptp (2): event 56: suppval[16] of d103 is 0x70. +0.224834 ptp (2): event 56: suppval[17] of d103 is 0x73. +0.224847 ptp (2): event 56: suppval[18] of d103 is 0x75. +0.224859 ptp (2): event 56: suppval[19] of d103 is 0x78. +0.224872 ptp (2): event 56: suppval[20] of d103 is 0x7b. +0.224884 ptp (2): event 56: suppval[21] of d103 is 0x7d. +0.224897 ptp (2): event 56: suppval[22] of d103 is 0x80. +0.224909 ptp (2): event 57: EOS prop d104 desc record, datasize 0, propxtype 3 +0.224923 ptp (2): event 58: EOS prop d1ba desc record, datasize 0, propxtype 3 +0.224937 ptp (2): event 59: EOS prop d1c9 desc record, datasize 0, propxtype 0 +0.224950 ptp (2): event 59: propxtype is 0 for d1c9, unhandled, size 20 +0.224963 ptp (2): event 60: EOS prop d160 desc record, datasize 0, propxtype 0 +0.224976 ptp (2): event 60: propxtype is 0 for d160, unhandled, size 20 +0.224989 ptp (2): event 61: EOS prop d161 desc record, datasize 0, propxtype 0 +0.225003 ptp (2): event 61: propxtype is 0 for d161, unhandled, size 20 +0.225016 ptp (2): event 62: EOS prop d162 desc record, datasize 0, propxtype 0 +0.225029 ptp (2): event 62: propxtype is 0 for d162, unhandled, size 20 +0.225042 ptp (2): event 63: EOS prop d1d8 desc record, datasize 0, propxtype 0 +0.225055 ptp (2): event 63: propxtype is 0 for d1d8, unhandled, size 20 +0.225069 ptp (2): event 64: EOS prop d1dd desc record, datasize 0, propxtype 0 +0.225082 ptp (2): event 64: propxtype is 0 for d1dd, unhandled, size 20 +0.225095 ptp (2): event 65: unknown EOS event c1a4 +0.225108 ptp (2): 8: 01 +0.225119 ptp (2): 9: 00 +0.225130 ptp (2): 10: 01 +0.225141 ptp (2): 11: 00 + +0000 04 01 00 00 02 00 16 91-11 00 00 00 2c 00 00 00 ............,... +0010 89 c1 00 00 15 d1 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-4c 00 00 00 89 c1 00 00 ........L....... +0040 d0 d1 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0080 00 00 00 00 4c 00 00 00-89 c1 00 00 d1 d1 00 00 ....L........... +0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00d0 2c 00 00 00 89 c1 00 00-af d1 00 00 34 36 38 30 ,...........4680 +00e0 33 37 30 30 30 31 34 34-00 00 00 00 00 00 00 00 37000144........ +00f0 00 00 00 00 00 00 00 00-00 00 00 00 08 00 00 00 ................ +0100 00 00 00 00 - .... + +0.247020 ptp (2): event 0: EOS prop d115 info record, datasize is 32 +0.247042 ptp (2): event 0: currentvalue of d115 is +0.247056 ptp (2): event 1: EOS prop d1d0 info record, datasize is 64 +0.247072 ptp (2): event 1: currentvalue of d1d0 is +0.247085 ptp (2): event 2: EOS prop d1d1 info record, datasize is 64 +0.247100 ptp (2): event 2: currentvalue of d1d1 is +0.247113 ptp (2): event 3: EOS prop d1af info record, datasize is 32 +0.247127 ptp (2): event 3: currentvalue of d1af is 468037000144 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m5.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m5.txt new file mode 100644 index 00000000..1d6cac74 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m5.txt @@ -0,0 +1,442 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS M5 + Version: 3-15.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Shutter Button + Canon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 127832031232 (121910 MB) + Free Space (Bytes): 127041798144 (121156 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1489072463 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 60030976 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon EOS M5' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x0) Undefined +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053:(readwrite) (type=0x0) Undefined +Property 0xd054:(readwrite) (type=0x0) Undefined +Property 0xd057:(read only) (type=0xffff) 'nnnnnnnnnnnn' +Property 0xd402:(read only) (type=0xffff) 'Canon EOS M5' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/cancelautofocus +Label: Cancel Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1489094101 +Printable: Thu Mar 9 15:15:01 2017 +Help: Use 'now' as the current time when setting. + +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS M5 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-15.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon EOS M5 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/status/Battery Level +Label: Battery Level +Type: TEXT +Current: 3% +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1489072501 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 60030976 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon EOS M5 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d053 +Label: PTP Property 0xd053 +Type: TEXT +Current: (null) +/main/other/d054 +Label: PTP Property 0xd054 +Type: TEXT +Current: (null) +/main/other/d057 +Label: PTP Property 0xd057 +Type: TEXT +Current: 312051000465 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS M5 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS M5 + device version: 3-15.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x9013 (PTP_OC_CANON_CheckEvent) + 0x901f (PTP_OC_CANON_ChangeUSBProtocol) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1012 (Set object protection) + 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) + 0x9021 (PTP_OC_CANON_GetObjectInfoEx) + 0x901b (PTP_OC_CANON_GetPartialObjectEx) + 0x901e (PTP_OC_CANON_GetObjectAttributes) + 0x9019 (PTP_OC_CANON_SendPartialObject) + 0x9006 (PTP_OC_CANON_GetObjectHandleByName) + 0x901c (PTP_OC_CANON_SetObjectTime) + 0x9002 (PTP_OC_CANON_SetObjectArchive) + 0x904c (Unknown PTP_OC) + 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) + 0x9025 (PTP_OC_CANON_SendObjectByPath ) + 0x9038 (Unknown PTP_OC) + 0x9039 (Unknown PTP_OC) + 0x903a (Unknown PTP_OC) + 0x903b (Unknown PTP_OC) + 0x904b (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) + 0x9062 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9182 (Unknown PTP_OC) + 0x9183 (Unknown PTP_OC) + 0x9184 (Unknown PTP_OC) + 0x9185 (Unknown PTP_OC) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x9075 (Unknown PTP_OC) + 0x9076 (Unknown PTP_OC) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x902f (Unknown PTP_OC) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc101 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd053 + 0xd054 + 0xd057 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m50.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m50.txt new file mode 100644 index 00000000..8436bd28 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m50.txt @@ -0,0 +1,3447 @@ +Device info: +Manufacturer: Canon.Inc + Model: Canon EOS M50 + device version: 3-1.0.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x1005 (Get storage info) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9170 (Unknown PTP_OC) + 0x1009 (Get object) + 0x9104 (PTP_OC_CANON_EOS_GetObject) + 0x9171 (Unknown PTP_OC) + 0x100a (Get thumbnail) + 0x100f (Format storage) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x1014 (Get device property description) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9172 (Unknown PTP_OC) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9174 (Unknown PTP_OC) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x9173 (Unknown PTP_OC) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9068 (PTP_OC_CANON_GetWebServiceSpec) + 0x9069 (PTP_OC_CANON_GetWebServiceData) + 0x906a (Unknown PTP_OC) + 0x906b (PTP_OC_CANON_SetWebServiceData) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x911e (PTP_OC_CANON_EOS_SetNullPacketMode) + 0x911f (PTP_OC_CANON_EOS_UpdateFirmware) + 0x9122 (PTP_OC_CANON_EOS_SetWftProfile) + 0x9123 (PTP_OC_CANON_EOS_GetWftProfile) + 0x9124 (PTP_OC_CANON_EOS_SetProfileToWft) + 0x9131 (PTP_OC_CANON_EOS_PopupBuiltinFlash) + 0x9133 (PTP_OC_CANON_EOS_MovieSelectSWOn) + 0x9134 (PTP_OC_CANON_EOS_MovieSelectSWOff) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x913c (PTP_OC_CANON_EOS_SetCTGInfo) + 0x913e (PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x9157 (PTP_OC_CANON_EOS_ClickWB) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x915a (PTP_OC_CANON_EOS_SetLiveAfFrame) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x91fe (PTP_OC_CANON_EOS_FAPIMessageTX) + 0x91ff (PTP_OC_CANON_EOS_FAPIMessageRX) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9108 (PTP_OC_CANON_EOS_GetDeviceInfoEx) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x912b (PTP_OC_CANON_EOS_ChangePhotoStudioMode) + 0x9130 (PTP_OC_CANON_EOS_ResetMirrorLockupState) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x915c (PTP_OC_CANON_EOS_SetLvPcFlavoreditMode) + 0x915d (PTP_OC_CANON_EOS_SetLvPcFlavoreditParam) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x902f (Unknown PTP_OC) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x910e (PTP_OC_CANON_EOS_SetObjectTime) + 0x91f0 (PTP_OC_CANON_EOS_TransferComplete2) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x91f1 (PTP_OC_CANON_EOS_CancelTransfer2) + 0x91e1 (Unknown PTP_OC) + 0x91e2 (Unknown PTP_OC) + 0x91e3 (Unknown PTP_OC) + 0x91e4 (Unknown PTP_OC) + 0x91e6 (Unknown PTP_OC) + 0x91e7 (Unknown PTP_OC) + 0x91e8 (PTP_OC_CANON_EOS_NotifyNetworkError) + 0x91e9 (PTP_OC_CANON_EOS_AdapterTransferProgress) + 0x91ea (Unknown PTP_OC) + 0x91eb (Unknown PTP_OC) + 0x91ec (Unknown PTP_OC) + 0x91ed (Unknown PTP_OC) + 0x91ee (Unknown PTP_OC) + 0x91ef (Unknown PTP_OC) + 0x91f8 (Unknown PTP_OC) + 0x91f9 (Unknown PTP_OC) + 0x9144 (PTP_OC_CANON_EOS_GpsLoggingDataMode) + 0x9145 (PTP_OC_CANON_EOS_GetGpsLogCurrentHandle) + 0x91d3 (Unknown PTP_OC) + 0x91d4 (Unknown PTP_OC) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9146 (Unknown PTP_OC) + 0x916b (Unknown PTP_OC) + 0x9147 (Unknown PTP_OC) + 0x916c (Unknown PTP_OC) + 0x9148 (Unknown PTP_OC) + 0x9149 (Unknown PTP_OC) + 0x91df (Unknown PTP_OC) + 0x91fb (Unknown PTP_OC) + 0x91fc (Unknown PTP_OC) + 0x914a (Unknown PTP_OC) + 0x910f (PTP_OC_CANON_EOS_RemoteRelease) + 0x914b (Unknown PTP_OC) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x100b (Delete object) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x912d (Unknown PTP_OC) + 0x912e (Unknown PTP_OC) + 0x912f (Unknown PTP_OC) + 0x914c (Unknown PTP_OC) + 0x9139 (PTP_OC_CANON_EOS_CreateHandle) + 0x913a (PTP_OC_CANON_EOS_SendPartialObjectEx) + 0x913b (PTP_OC_CANON_EOS_EndSendPartialObjectEx) + 0x914e (Unknown PTP_OC) + 0x91d7 (Unknown PTP_OC) + 0x91d8 (Unknown PTP_OC) + 0x91d9 (Unknown PTP_OC) + 0x91da (Unknown PTP_OC) + 0x91db (Unknown PTP_OC) + 0x91dc (Unknown PTP_OC) + 0x91dd (Unknown PTP_OC) + 0x91de (Unknown PTP_OC) + 0x91d5 (Unknown PTP_OC) + 0x9180 (Unknown PTP_OC) + 0x9181 (Unknown PTP_OC) + 0x9182 (Unknown PTP_OC) + 0x9183 (Unknown PTP_OC) + 0x9184 (Unknown PTP_OC) + 0x9185 (Unknown PTP_OC) + 0x9138 (PTP_OC_CANON_EOS_GetMusicInfo) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x91f5 (Unknown PTP_OC) + 0x91f6 (Unknown PTP_OC) + 0x917f (Unknown PTP_OC) + 0x914d (Unknown PTP_OC) + 0x914f (Unknown PTP_OC) + 0x9150 (Unknown PTP_OC) + 0x91f2 (Unknown PTP_OC) + 0x91f3 (Unknown PTP_OC) + 0x91f4 (Unknown PTP_OC) + 0x91fd (Unknown PTP_OC) + 0x916f (Unknown PTP_OC) + 0x916e (Unknown PTP_OC) + 0x916d (Unknown PTP_OC) + 0x9177 (Unknown PTP_OC) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) + 0x9052 (Unknown PTP_OC) + 0x9053 (Unknown PTP_OC) + 0x9057 (Unknown PTP_OC) + 0x9058 (Unknown PTP_OC) + 0x9059 (Unknown PTP_OC) + 0x905a (Unknown PTP_OC) + 0x905b (Unknown PTP_OC) + 0x905f (Unknown PTP_OC) +Events Supported: + 0xc181 + 0x4003 + 0xc183 + 0xc184 + 0xc185 + 0xc186 + 0xc187 + 0xc188 + 0xc189 + 0xc18a + 0xc18b + 0xc18d + 0xc18e + 0xc18f + 0xc190 + 0xc191 + 0xc1a0 + 0xc1a1 + 0x4009 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + + +0.391347 ptp_usb_getdata (2): Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) data... +0.391363 gp_port_read (3): Reading 1024 = 0x400 bytes from port... +0.391733 gp_port_read (3): Read 1024 = 0x400 bytes from port: (hexdump of 1024 bytes) +0000 7e 24 00 00 02 00 16 91-0a 00 00 00 10 00 00 00 ~$.............. +0010 89 c1 00 00 16 d1 00 00-12 04 00 00 10 00 00 00 ................ +0020 89 c1 00 00 05 d1 00 00-16 00 00 00 10 00 00 00 ................ +0030 89 c1 00 00 38 d1 00 00-16 00 00 00 10 00 00 00 ....8........... +0040 89 c1 00 00 02 d1 00 00-38 00 00 00 10 00 00 00 ........8....... +0050 89 c1 00 00 01 d1 00 00-b0 00 00 00 10 00 00 00 ................ +0060 89 c1 00 00 03 d1 00 00-00 00 00 00 10 00 00 00 ................ +0070 89 c1 00 00 06 d1 00 00-00 00 00 00 10 00 00 00 ................ +0080 89 c1 00 00 08 d1 00 00-00 00 00 00 10 00 00 00 ................ +0090 89 c1 00 00 07 d1 00 00-03 00 00 00 10 00 00 00 ................ +00a0 89 c1 00 00 09 d1 00 00-00 00 00 00 10 00 00 00 ................ +00b0 89 c1 00 00 1b d1 00 00-04 05 00 00 10 00 00 00 ................ +00c0 89 c1 00 00 04 d1 00 00-00 00 00 00 10 00 00 00 ................ +00d0 89 c1 00 00 0c d1 00 00-00 00 00 00 10 00 00 00 ................ +00e0 89 c1 00 00 0b d1 00 00-00 00 00 00 10 00 00 00 ................ +00f0 89 c1 00 00 0e d1 00 00-00 00 00 00 10 00 00 00 ................ +0100 89 c1 00 00 0d d1 00 00-00 00 00 00 10 00 00 00 ................ +0110 89 c1 00 00 d9 d1 00 00-00 00 00 00 10 00 00 00 ................ +0120 89 c1 00 00 d5 d1 00 00-00 00 00 00 10 00 00 00 ................ +0130 89 c1 00 00 c1 d1 00 00-00 00 00 00 10 00 00 00 ................ +0140 89 c1 00 00 0f d1 00 00-01 00 00 00 10 00 00 00 ................ +0150 89 c1 00 00 14 d1 00 00-3c 00 00 00 10 00 00 00 ........<....... +0160 89 c1 00 00 b7 d1 00 00-01 00 00 00 10 00 00 00 ................ +0170 89 c1 00 00 10 d1 00 00-87 00 00 00 34 00 00 00 ............4... +0180 89 c1 00 00 57 d1 00 00-28 00 00 00 01 00 00 00 ....W...(....... +0190 00 00 00 00 04 00 00 00-00 00 00 00 00 00 00 00 ................ +01a0 00 00 00 00 00 00 00 00-02 00 00 00 04 00 00 00 ................ +01b0 34 00 00 00 89 c1 00 00-58 d1 00 00 28 00 00 00 4.......X...(... +01c0 01 00 00 00 00 00 00 00-03 00 00 00 00 00 00 00 ................ +01d0 00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00 ................ +01e0 04 00 00 00 34 00 00 00-89 c1 00 00 59 d1 00 00 ....4.......Y... +01f0 28 00 00 00 01 00 00 00-00 00 00 00 05 00 00 00 (............... +0200 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0210 02 00 00 00 04 00 00 00-34 00 00 00 89 c1 00 00 ........4....... +0220 5a d1 00 00 28 00 00 00-01 00 00 00 00 00 00 00 Z...(........... +0230 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0240 00 00 00 00 02 00 00 00-02 00 00 00 34 00 00 00 ............4... +0250 89 c1 00 00 5b d1 00 00-28 00 00 00 01 00 00 00 ....[...(....... +0260 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0270 00 00 00 00 00 00 00 00-02 00 00 00 02 00 00 00 ................ +0280 34 00 00 00 89 c1 00 00-5c d1 00 00 28 00 00 00 4.......\...(... +0290 01 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +02a0 00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00 ................ +02b0 04 00 00 00 34 00 00 00-89 c1 00 00 5d d1 00 00 ....4.......]... +02c0 28 00 00 00 01 00 00 00-00 00 00 00 04 00 00 00 (............... +02d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02e0 02 00 00 00 04 00 00 00-34 00 00 00 89 c1 00 00 ........4....... +02f0 5e d1 00 00 28 00 00 00-01 00 00 00 00 00 00 00 ^...(........... +0300 04 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0310 00 00 00 00 01 00 00 00-01 00 00 00 38 00 00 00 ............8... +0320 89 c1 00 00 63 d1 00 00-2c 00 00 00 01 00 00 00 ....c...,....... +0330 87 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +0340 00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00 ................ +0350 04 00 00 00 38 00 00 00-89 c1 00 00 64 d1 00 00 ....8.......d... +0360 2c 00 00 00 01 00 00 00-87 00 00 00 00 00 00 00 ,............... +0370 04 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0380 00 00 00 00 02 00 00 00-04 00 00 00 38 00 00 00 ............8... +0390 89 c1 00 00 65 d1 00 00-2c 00 00 00 01 00 00 00 ....e...,....... +03a0 87 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +03b0 00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00 ................ +03c0 04 00 00 00 10 00 00 00-89 c1 00 00 b1 d1 00 00 ................ +03d0 01 00 00 00 10 00 00 00-89 c1 00 00 bc d1 00 00 ................ +03e0 01 00 00 00 10 00 00 00-89 c1 00 00 b2 d1 00 00 ................ +03f0 00 00 00 00 10 00 00 00-89 c1 00 00 b3 d1 00 00 ................ + +0.391806 gp_port_read (3): Reading 8192 = 0x2000 bytes from port... +0.393111 gp_port_read (3): Read 8192 = 0x2000 bytes from port: (hexdump of 8192 bytes) +0000 00 00 00 00 10 00 00 00-89 c1 00 00 b4 d1 00 00 ................ +0010 00 00 00 00 10 00 00 00-89 c1 00 00 b6 d1 00 00 ................ +0020 50 14 00 00 10 00 00 00-89 c1 00 00 ab d1 00 00 P............... +0030 00 00 00 00 10 00 00 00-89 c1 00 00 b0 d1 00 00 ................ +0040 01 00 00 00 10 00 00 00-89 c1 00 00 0a d1 00 00 ................ +0050 50 14 00 00 10 00 00 00-89 c1 00 00 a8 d1 00 00 P............... +0060 01 00 00 00 10 00 00 00-89 c1 00 00 98 d1 00 00 ................ +0070 ff 00 00 00 10 00 00 00-89 c1 00 00 dd d1 00 00 ................ +0080 39 10 00 00 14 00 00 00-89 c1 00 00 a1 d1 00 00 9............... +0090 08 00 00 00 00 00 00 00-0d 00 00 00 89 c1 00 00 ................ +00a0 15 d1 00 00 00 f0 01 00-00 89 c1 00 00 a4 d1 00 ................ +00b0 00 e4 01 00 00 30 00 00-00 00 00 00 00 00 00 00 .....0.......... +00c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00d0 00 00 00 00 00 31 00 00-00 00 00 00 00 00 00 00 .....1.......... +00e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00f0 00 00 00 00 00 32 00 00-00 00 00 00 00 00 00 00 .....2.......... +0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0110 00 00 00 00 00 33 00 00-00 00 00 00 00 00 00 00 .....3.......... +0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0130 00 00 00 00 00 34 00 00-00 00 00 00 00 00 00 00 .....4.......... +0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0150 00 00 00 00 00 35 00 00-00 00 00 00 00 00 00 00 .....5.......... +0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0170 00 00 00 00 00 36 00 00-00 00 00 00 00 00 00 00 .....6.......... +0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0190 00 00 00 00 00 37 00 00-00 00 00 00 00 00 00 00 .....7.......... +01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01b0 00 00 00 00 00 38 00 00-00 00 00 00 00 00 00 00 .....8.......... +01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01d0 00 00 00 00 00 39 00 00-00 00 00 00 00 00 00 00 .....9.......... +01e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01f0 00 00 00 00 00 31 30 00-00 00 00 00 00 00 00 00 .....10......... +0200 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0210 00 00 00 00 00 31 31 00-00 00 00 00 00 00 00 00 .....11......... +0220 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0230 00 00 00 00 00 31 32 00-00 00 00 00 00 00 00 00 .....12......... +0240 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0250 00 00 00 00 00 31 33 00-00 00 00 00 00 00 00 00 .....13......... +0260 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0270 00 00 00 00 00 31 34 00-00 00 00 00 00 00 00 00 .....14......... +0280 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0290 00 00 00 00 00 10 00 00-00 89 c1 00 00 b8 d1 00 ................ +02a0 00 03 00 00 00 10 00 00-00 89 c1 00 00 ba d1 00 ................ +02b0 00 02 00 00 00 10 00 00-00 89 c1 00 00 c9 d1 00 ................ +02c0 00 01 00 00 00 10 00 00-00 89 c1 00 00 7a d1 00 .............z.. +02d0 00 01 00 00 00 38 00 00-00 89 c1 00 00 cd d1 00 .....8.......... +02e0 00 2c 00 00 00 00 00 00-00 00 00 00 00 c4 09 00 .,.............. +02f0 00 0c 00 00 00 00 00 00-00 03 00 00 00 01 00 00 ................ +0300 00 00 00 00 00 00 00 00-00 55 45 45 55 10 00 00 .........UEEU... +0310 00 89 c1 00 00 c5 d1 00-00 00 00 00 00 10 00 00 ................ +0320 00 89 c1 00 00 d4 d1 00-00 00 00 00 00 10 00 00 ................ +0330 00 89 c1 00 00 c2 d1 00-00 00 00 00 00 10 00 00 ................ +0340 00 89 c1 00 00 bd d1 00-00 00 00 00 00 10 00 00 ................ +0350 00 89 c1 00 00 94 d1 00-00 00 00 00 00 10 00 00 ................ +0360 00 89 c1 00 00 95 d1 00-00 02 00 00 00 10 00 00 ................ +0370 00 89 c1 00 00 96 d1 00-00 2f 00 00 00 10 00 00 ........./...... +0380 00 89 c1 00 00 97 d1 00-00 01 00 00 00 10 00 00 ................ +0390 00 89 c1 00 00 99 d1 00-00 10 00 00 00 10 00 00 ................ +03a0 00 89 c1 00 00 3c d1 00-00 57 57 00 00 24 00 00 .....<...WW..$.. +03b0 00 89 c1 00 00 3d d1 00-00 18 00 00 00 00 00 00 .....=.......... +03c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +03d0 00 10 00 00 00 89 c1 00-00 79 d1 00 00 01 00 00 .........y...... +03e0 00 10 00 00 00 89 c1 00-00 7b d1 00 00 02 00 00 .........{...... +03f0 00 24 00 00 00 89 c1 00-00 77 d1 00 00 18 00 00 .$.......w...... +0400 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0410 00 00 00 00 00 10 00 00-00 89 c1 00 00 76 d1 00 .............v.. +0420 00 00 00 00 00 10 00 00-00 89 c1 00 00 75 d1 00 .............u.. +0430 00 00 00 00 00 10 00 00-00 89 c1 00 00 37 d1 00 .............7.. +0440 00 00 00 00 00 10 00 00-00 89 c1 00 00 78 d1 00 .............x.. +0450 00 00 00 00 00 30 00 00-00 89 c1 00 00 21 d1 00 .....0.......!.. +0460 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +0470 00 04 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +0480 00 03 00 00 00 30 00 00-00 89 c1 00 00 20 d1 00 .....0....... .. +0490 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +04a0 00 04 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +04b0 00 03 00 00 00 30 00 00-00 89 c1 00 00 22 d1 00 .....0.......".. +04c0 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +04d0 00 04 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +04e0 00 03 00 00 00 10 00 00-00 89 c1 00 00 33 d1 00 .............3.. +04f0 00 00 00 00 00 10 00 00-00 89 c1 00 00 31 d1 00 .............1.. +0500 00 00 00 00 00 10 00 00-00 89 c1 00 00 32 d1 00 .............2.. +0510 00 00 00 00 00 10 00 00-00 89 c1 00 00 30 d1 00 .............0.. +0520 00 00 00 00 00 10 00 00-00 89 c1 00 00 1c d1 00 ................ +0530 00 02 00 00 00 10 00 00-00 89 c1 00 00 13 d1 00 ................ +0540 00 3d 2b b5 5b 34 00 00-00 89 c1 00 00 a7 d1 00 .=+.[4.......... +0550 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0560 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0570 00 00 00 00 00 00 00 00-00 10 00 00 00 89 c1 00 ................ +0580 00 12 d1 00 00 00 00 00-00 10 00 00 00 89 c1 00 ................ +0590 00 11 d1 00 00 02 00 00-00 4b 00 00 00 89 c1 00 .........K...... +05a0 00 d8 d1 00 00 45 46 2d-4d 31 35 2d 34 35 6d 6d .....EF-M15-45mm +05b0 20 66 2f 33 2e 35 2d 36-2e 33 20 49 53 20 53 54 f/3.5-6.3 IS ST +05c0 4d 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 M............... +05d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +05e0 00 00 00 00 1c 00 00 00-89 c1 00 00 da d1 00 00 ................ +05f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0600 10 00 00 00 89 c1 00 00-7e d1 00 00 01 00 00 00 ........~....... +0610 10 00 00 00 89 c1 00 00-7c d1 00 00 1d 0f b5 5b ........|......[ +0620 10 00 00 00 89 c1 00 00-1f d1 00 00 00 00 90 91 ................ +0630 10 00 00 00 89 c1 00 00-1f d1 00 00 00 00 90 91 ................ +0640 10 00 00 00 89 c1 00 00-1e d1 00 00 01 00 02 00 ................ +0650 10 00 00 00 89 c1 00 00-aa d1 00 00 00 00 00 00 ................ +0660 18 00 00 00 89 c1 00 00-39 d1 00 00 00 00 00 00 ........9....... +0670 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0680 c3 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0690 3a d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 :............... +06a0 bf d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +06b0 1d d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +06c0 c7 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +06d0 c4 d1 00 00 00 00 00 00-40 00 00 00 89 c1 00 00 ........@....... +06e0 cb d1 00 00 34 00 00 00-00 00 00 00 00 00 00 00 ....4........... +06f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0700 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0710 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0720 df d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0730 dc d1 00 00 02 00 00 00-10 00 00 00 89 c1 00 00 ................ +0740 c0 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0750 36 d1 00 00 00 00 00 00-24 00 00 00 89 c1 00 00 6.......$....... +0760 34 d1 00 00 18 00 00 00-00 00 00 00 00 00 00 00 4............... +0770 00 00 00 00 0a 00 00 00-0a 00 00 00 10 00 00 00 ................ +0780 89 c1 00 00 35 d1 00 00-00 00 00 00 3c 00 00 00 ....5.......<... +0790 89 c1 00 00 40 d1 00 00-30 00 00 00 00 00 00 00 ....@...0....... +07a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07c0 91 02 00 04 00 04 12 03-3c 00 00 00 89 c1 00 00 ........<....... +07d0 41 d1 00 00 30 00 00 00-00 00 00 00 00 00 00 00 A...0........... +07e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0800 00 00 00 00 3c 00 00 00-89 c1 00 00 42 d1 00 00 ....<.......B... +0810 30 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 0............... +0820 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0830 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0840 3c 00 00 00 89 c1 00 00-43 d1 00 00 30 00 00 00 <.......C...0... +0850 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0860 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0870 00 00 00 00 00 00 00 00-00 00 00 00 3c 00 00 00 ............<... +0880 89 c1 00 00 44 d1 00 00-30 00 00 00 00 00 00 00 ....D...0....... +0890 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +08a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +08b0 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +08c0 4a d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 J............... +08d0 49 d1 00 00 00 00 00 00-20 00 00 00 89 c1 00 00 I....... ....... +08e0 3e d1 00 00 14 00 00 00-00 00 00 00 00 00 00 00 >............... +08f0 00 00 00 00 01 00 00 00-10 00 00 00 89 c1 00 00 ................ +0900 9a d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0910 3b d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ;............... +0920 a3 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0930 9f d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0940 24 d1 00 00 00 00 00 00-1c 00 00 00 89 c1 00 00 $............... +0950 67 d1 00 00 10 00 00 00-01 00 00 00 e8 03 00 00 g............... +0960 e8 03 00 00 10 00 00 00-89 c1 00 00 c6 d1 00 00 ................ +0970 00 00 00 00 18 00 00 00-89 c1 00 00 2d d1 00 00 ............-... +0980 0c 00 00 00 00 00 00 00-00 00 00 00 10 00 00 00 ................ +0990 89 c1 00 00 2c d1 00 00-01 00 00 00 14 00 00 00 ....,........... +09a0 89 c1 00 00 27 d1 00 00-00 00 00 00 00 00 00 00 ....'........... +09b0 18 00 00 00 89 c1 00 00-7d d1 00 00 0c 00 00 00 ........}....... +09c0 13 00 00 00 3c 00 00 00-1c 00 00 00 89 c1 00 00 ....<........... +09d0 25 d1 00 00 45 4f 53 4d-35 30 00 00 00 00 00 00 %...EOSM50...... +09e0 00 00 00 00 14 00 00 00-8a c1 00 00 03 d1 00 00 ................ +09f0 03 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0a00 05 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0a10 8a c1 00 00 1b d1 00 00-01 00 00 00 00 00 00 00 ................ +0a20 14 00 00 00 8a c1 00 00-1b d1 00 00 01 00 00 00 ................ +0a30 00 00 00 00 14 00 00 00-8a c1 00 00 14 d1 00 00 ................ +0a40 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0a50 14 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0a60 8a c1 00 00 16 d1 00 00-01 00 00 00 00 00 00 00 ................ +0a70 14 00 00 00 8a c1 00 00-11 d1 00 00 01 00 00 00 ................ +0a80 00 00 00 00 14 00 00 00-8a c1 00 00 12 d1 00 00 ................ +0a90 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0aa0 a8 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0ab0 8a c1 00 00 ab d1 00 00-01 00 00 00 00 00 00 00 ................ +0ac0 14 00 00 00 8a c1 00 00-47 d1 00 00 01 00 00 00 ........G....... +0ad0 00 00 00 00 14 00 00 00-8a c1 00 00 ad d1 00 00 ................ +0ae0 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0af0 ae d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0b00 8a c1 00 00 aa d1 00 00-01 00 00 00 00 00 00 00 ................ +0b10 14 00 00 00 8a c1 00 00-1e d1 00 00 01 00 00 00 ................ +0b20 00 00 00 00 14 00 00 00-8a c1 00 00 1f d1 00 00 ................ +0b30 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0b40 af d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0b50 8a c1 00 00 00 00 00 00-01 00 00 00 00 00 00 00 ................ +0b60 14 00 00 00 8a c1 00 00-7f d1 00 00 01 00 00 00 ................ +0b70 00 00 00 00 14 00 00 00-8a c1 00 00 b7 d1 00 00 ................ +0b80 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0b90 c4 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0ba0 8a c1 00 00 c2 d1 00 00-01 00 00 00 00 00 00 00 ................ +0bb0 14 00 00 00 8a c1 00 00-99 d1 00 00 01 00 00 00 ................ +0bc0 00 00 00 00 14 00 00 00-8a c1 00 00 38 d1 00 00 ............8... +0bd0 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0be0 39 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 9............... +0bf0 8a c1 00 00 3b d1 00 00-01 00 00 00 00 00 00 00 ....;........... +0c00 14 00 00 00 8a c1 00 00-3c d1 00 00 01 00 00 00 ........<....... +0c10 00 00 00 00 14 00 00 00-8a c1 00 00 9d d1 00 00 ................ +0c20 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0c30 9a d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0c40 8a c1 00 00 9c d1 00 00-01 00 00 00 00 00 00 00 ................ +0c50 14 00 00 00 8a c1 00 00-4c d1 00 00 01 00 00 00 ........L....... +0c60 00 00 00 00 14 00 00 00-8a c1 00 00 bd d1 00 00 ................ +0c70 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0c80 9f d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0c90 8a c1 00 00 24 d1 00 00-01 00 00 00 00 00 00 00 ....$........... +0ca0 14 00 00 00 8a c1 00 00-15 d1 00 00 07 00 00 00 ................ +0cb0 00 00 00 00 14 00 00 00-8a c1 00 00 10 d1 00 00 ................ +0cc0 03 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0cd0 70 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 p............... +0ce0 8a c1 00 00 70 d1 00 00-07 00 00 00 00 00 00 00 ....p........... +0cf0 14 00 00 00 8a c1 00 00-71 d1 00 00 07 00 00 00 ........q....... +0d00 00 00 00 00 14 00 00 00-8a c1 00 00 71 d1 00 00 ............q... +0d10 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0d20 72 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 r............... +0d30 8a c1 00 00 72 d1 00 00-07 00 00 00 00 00 00 00 ....r........... +0d40 14 00 00 00 8a c1 00 00-a1 d1 00 00 07 00 00 00 ................ +0d50 00 00 00 00 14 00 00 00-8a c1 00 00 a7 d1 00 00 ................ +0d60 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0d70 a2 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +0d80 8a c1 00 00 b2 d1 00 00-07 00 00 00 00 00 00 00 ................ +0d90 14 00 00 00 8a c1 00 00-b3 d1 00 00 07 00 00 00 ................ +0da0 00 00 00 00 14 00 00 00-8a c1 00 00 b5 d1 00 00 ................ +0db0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0dc0 46 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 F............... +0dd0 8a c1 00 00 d0 d1 00 00-07 00 00 00 00 00 00 00 ................ +0de0 14 00 00 00 8a c1 00 00-d1 d1 00 00 07 00 00 00 ................ +0df0 00 00 00 00 14 00 00 00-8a c1 00 00 d3 d1 00 00 ................ +0e00 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0e10 cb d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +0e20 8a c1 00 00 4d d1 00 00-07 00 00 00 00 00 00 00 ....M........... +0e30 14 00 00 00 8a c1 00 00-96 d1 00 00 07 00 00 00 ................ +0e40 00 00 00 00 14 00 00 00-8a c1 00 00 db d1 00 00 ................ +0e50 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0e60 a4 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +0e70 8a c1 00 00 bf d1 00 00-07 00 00 00 00 00 00 00 ................ +0e80 2c 00 00 00 8a c1 00 00-06 d1 00 00 03 00 00 00 ,............... +0e90 06 00 00 00 00 00 00 00-04 00 00 00 05 00 00 00 ................ +0ea0 10 00 00 00 11 00 00 00-07 00 00 00 14 00 00 00 ................ +0eb0 8a c1 00 00 07 d1 00 00-03 00 00 00 00 00 00 00 ................ +0ec0 14 00 00 00 8a c1 00 00-09 d1 00 00 03 00 00 00 ................ +0ed0 00 00 00 00 44 01 00 00-8a c1 00 00 0a d1 00 00 ....D........... +0ee0 03 00 00 00 4c 00 00 00-c4 09 00 00 28 0a 00 00 ....L.......(... +0ef0 8c 0a 00 00 f0 0a 00 00-54 0b 00 00 b8 0b 00 00 ........T....... +0f00 1c 0c 00 00 80 0c 00 00-e4 0c 00 00 48 0d 00 00 ............H... +0f10 ac 0d 00 00 10 0e 00 00-74 0e 00 00 d8 0e 00 00 ........t....... +0f20 3c 0f 00 00 a0 0f 00 00-04 10 00 00 68 10 00 00 <...........h... +0f30 cc 10 00 00 30 11 00 00-94 11 00 00 f8 11 00 00 ....0........... +0f40 5c 12 00 00 c0 12 00 00-24 13 00 00 88 13 00 00 \.......$....... +0f50 ec 13 00 00 50 14 00 00-b4 14 00 00 18 15 00 00 ....P........... +0f60 7c 15 00 00 e0 15 00 00-44 16 00 00 a8 16 00 00 |.......D....... +0f70 0c 17 00 00 70 17 00 00-d4 17 00 00 38 18 00 00 ....p.......8... +0f80 9c 18 00 00 00 19 00 00-64 19 00 00 c8 19 00 00 ........d....... +0f90 2c 1a 00 00 90 1a 00 00-f4 1a 00 00 58 1b 00 00 ,...........X... +0fa0 bc 1b 00 00 20 1c 00 00-84 1c 00 00 e8 1c 00 00 .... ........... +0fb0 4c 1d 00 00 b0 1d 00 00-14 1e 00 00 78 1e 00 00 L...........x... +0fc0 dc 1e 00 00 40 1f 00 00-a4 1f 00 00 08 20 00 00 ....@........ .. +0fd0 6c 20 00 00 d0 20 00 00-34 21 00 00 98 21 00 00 l ... ..4!...!.. +0fe0 fc 21 00 00 60 22 00 00-c4 22 00 00 28 23 00 00 .!..`"..."..(#.. +0ff0 8c 23 00 00 f0 23 00 00-54 24 00 00 b8 24 00 00 .#...#..T$...$.. +1000 1c 25 00 00 80 25 00 00-e4 25 00 00 48 26 00 00 .%...%...%..H&.. +1010 ac 26 00 00 10 27 00 00-14 00 00 00 8a c1 00 00 .&...'.......... +1020 0b d1 00 00 03 00 00 00-00 00 00 00 14 00 00 00 ................ +1030 8a c1 00 00 0c d1 00 00-03 00 00 00 00 00 00 00 ................ +1040 14 00 00 00 8a c1 00 00-0d d1 00 00 03 00 00 00 ................ +1050 00 00 00 00 14 00 00 00-8a c1 00 00 0e d1 00 00 ................ +1060 03 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +1070 0f d1 00 00 03 00 00 00-00 00 00 00 14 00 00 00 ................ +1080 8a c1 00 00 01 d1 00 00-03 00 00 00 00 00 00 00 ................ +1090 14 00 00 00 8a c1 00 00-02 d1 00 00 03 00 00 00 ................ +10a0 00 00 00 00 14 00 00 00-8a c1 00 00 04 d1 00 00 ................ +10b0 03 00 00 00 00 00 00 00-a0 01 00 00 8a c1 00 00 ................ +10c0 7d d1 00 00 03 00 00 00-21 00 00 00 0c 00 00 00 }.......!....... +10d0 21 00 00 00 0c 03 00 00-0c 00 00 00 01 00 00 00 !............... +10e0 fd 02 00 00 0c 00 00 00-02 00 00 00 d0 02 00 00 ................ +10f0 0c 00 00 00 03 00 00 00-94 02 00 00 0c 00 00 00 ................ +1100 04 00 00 00 58 02 00 00-0c 00 00 00 05 00 00 00 ....X........... +1110 3a 02 00 00 0c 00 00 00-06 00 00 00 1c 02 00 00 :............... +1120 0c 00 00 00 07 00 00 00-e0 01 00 00 0c 00 00 00 ................ +1130 08 00 00 00 a4 01 00 00-0c 00 00 00 09 00 00 00 ................ +1140 86 01 00 00 0c 00 00 00-0a 00 00 00 68 01 00 00 ............h... +1150 0c 00 00 00 0b 00 00 00-59 01 00 00 0c 00 00 00 ........Y....... +1160 0c 00 00 00 4a 01 00 00-0c 00 00 00 0d 00 00 00 ....J........... +1170 2c 01 00 00 0c 00 00 00-0e 00 00 00 0e 01 00 00 ,............... +1180 0c 00 00 00 0f 00 00 00-f0 00 00 00 0c 00 00 00 ................ +1190 10 00 00 00 d2 00 00 00-0c 00 00 00 11 00 00 00 ................ +11a0 b4 00 00 00 0c 00 00 00-12 00 00 00 78 00 00 00 ............x... +11b0 0c 00 00 00 13 00 00 00-3c 00 00 00 0c 00 00 00 ........<....... +11c0 14 00 00 00 00 00 00 00-0c 00 00 00 15 00 00 00 ................ +11d0 c4 ff ff ff 0c 00 00 00-16 00 00 00 88 ff ff ff ................ +11e0 0c 00 00 00 17 00 00 00-4c ff ff ff 0c 00 00 00 ........L....... +11f0 18 00 00 00 2e ff ff ff-0c 00 00 00 1a 00 00 00 ................ +1200 10 ff ff ff 0c 00 00 00-1b 00 00 00 d4 fe ff ff ................ +1210 0c 00 00 00 1c 00 00 00-98 fe ff ff 0c 00 00 00 ................ +1220 1d 00 00 00 5c fe ff ff-0c 00 00 00 1e 00 00 00 ....\........... +1230 20 fe ff ff 0c 00 00 00-1f 00 00 00 e4 fd ff ff ............... +1240 0c 00 00 00 20 00 00 00-a8 fd ff ff 0c 00 00 00 .... ........... +1250 ff ff ff ff 00 00 00 00-1c 00 00 00 8a c1 00 00 ................ +1260 7e d1 00 00 03 00 00 00-02 00 00 00 00 00 00 00 ~............... +1270 01 00 00 00 14 00 00 00-8a c1 00 00 7c d1 00 00 ............|... +1280 07 00 00 00 00 00 00 00-c0 02 00 00 8a c1 00 00 ................ +1290 21 d1 00 00 03 00 00 00-17 00 00 00 01 00 00 00 !............... +12a0 10 00 00 00 01 00 00 00-00 00 00 00 03 00 00 00 ................ +12b0 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +12c0 02 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +12d0 01 00 00 00 03 00 00 00-01 00 00 00 10 00 00 00 ................ +12e0 01 00 00 00 01 00 00 00-02 00 00 00 01 00 00 00 ................ +12f0 10 00 00 00 01 00 00 00-0e 00 00 00 03 00 00 00 ................ +1300 01 00 00 00 10 00 00 00-01 00 00 00 0e 00 00 00 ................ +1310 02 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1320 0f 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1330 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +1340 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1350 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1360 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1370 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1380 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1390 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +13a0 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +13b0 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +13c0 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +13d0 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +13e0 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +13f0 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1400 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1410 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1420 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1430 00 00 00 00 03 00 00 00-10 00 00 00 01 00 00 00 ................ +1440 00 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1450 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +1460 01 00 00 00 00 00 00 00-02 00 00 00 02 00 00 00 ................ +1470 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +1480 10 00 00 00 01 00 00 00-01 00 00 00 03 00 00 00 ................ +1490 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +14a0 03 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +14b0 02 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +14c0 00 00 00 00 03 00 00 00-10 00 00 00 01 00 00 00 ................ +14d0 0e 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +14e0 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +14f0 01 00 00 00 0e 00 00 00-02 00 00 00 02 00 00 00 ................ +1500 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +1510 10 00 00 00 01 00 00 00-0f 00 00 00 03 00 00 00 ................ +1520 01 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1530 04 00 00 00 01 00 00 00-10 00 00 00 06 00 00 00 ................ +1540 00 00 00 00 03 00 00 00-c0 02 00 00 8a c1 00 00 ................ +1550 22 d1 00 00 03 00 00 00-17 00 00 00 01 00 00 00 "............... +1560 10 00 00 00 01 00 00 00-00 00 00 00 03 00 00 00 ................ +1570 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +1580 02 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1590 01 00 00 00 03 00 00 00-01 00 00 00 10 00 00 00 ................ +15a0 01 00 00 00 01 00 00 00-02 00 00 00 01 00 00 00 ................ +15b0 10 00 00 00 01 00 00 00-0e 00 00 00 03 00 00 00 ................ +15c0 01 00 00 00 10 00 00 00-01 00 00 00 0e 00 00 00 ................ +15d0 02 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +15e0 0f 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +15f0 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +1600 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1610 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1620 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1630 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1640 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1650 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1660 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1670 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +1680 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +1690 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +16a0 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +16b0 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +16c0 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +16d0 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +16e0 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +16f0 00 00 00 00 03 00 00 00-10 00 00 00 01 00 00 00 ................ +1700 00 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1710 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +1720 01 00 00 00 00 00 00 00-02 00 00 00 02 00 00 00 ................ +1730 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +1740 10 00 00 00 01 00 00 00-01 00 00 00 03 00 00 00 ................ +1750 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1760 03 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1770 02 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1780 00 00 00 00 03 00 00 00-10 00 00 00 01 00 00 00 ................ +1790 0e 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +17a0 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +17b0 01 00 00 00 0e 00 00 00-02 00 00 00 02 00 00 00 ................ +17c0 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +17d0 10 00 00 00 01 00 00 00-0f 00 00 00 03 00 00 00 ................ +17e0 01 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +17f0 04 00 00 00 01 00 00 00-10 00 00 00 06 00 00 00 ................ +1800 00 00 00 00 03 00 00 00-c0 02 00 00 8a c1 00 00 ................ +1810 20 d1 00 00 03 00 00 00-17 00 00 00 01 00 00 00 ............... +1820 10 00 00 00 01 00 00 00-00 00 00 00 03 00 00 00 ................ +1830 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +1840 02 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1850 01 00 00 00 03 00 00 00-01 00 00 00 10 00 00 00 ................ +1860 01 00 00 00 01 00 00 00-02 00 00 00 01 00 00 00 ................ +1870 10 00 00 00 01 00 00 00-0e 00 00 00 03 00 00 00 ................ +1880 01 00 00 00 10 00 00 00-01 00 00 00 0e 00 00 00 ................ +1890 02 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +18a0 0f 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +18b0 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +18c0 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +18d0 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +18e0 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +18f0 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1900 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1910 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1920 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1930 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +1940 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +1950 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +1960 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1970 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1980 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1990 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +19a0 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +19b0 00 00 00 00 03 00 00 00-10 00 00 00 01 00 00 00 ................ +19c0 00 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +19d0 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +19e0 01 00 00 00 00 00 00 00-02 00 00 00 02 00 00 00 ................ +19f0 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +1a00 10 00 00 00 01 00 00 00-01 00 00 00 03 00 00 00 ................ +1a10 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1a20 03 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1a30 02 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1a40 00 00 00 00 03 00 00 00-10 00 00 00 01 00 00 00 ................ +1a50 0e 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1a60 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +1a70 01 00 00 00 0e 00 00 00-02 00 00 00 02 00 00 00 ................ +1a80 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +1a90 10 00 00 00 01 00 00 00-0f 00 00 00 03 00 00 00 ................ +1aa0 01 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1ab0 04 00 00 00 01 00 00 00-10 00 00 00 06 00 00 00 ................ +1ac0 00 00 00 00 03 00 00 00-20 00 00 00 8a c1 00 00 ........ ....... +1ad0 1c d1 00 00 03 00 00 00-03 00 00 00 02 00 00 00 ................ +1ae0 06 00 00 00 04 00 00 00-44 00 00 00 8a c1 00 00 ........D....... +1af0 b0 d1 00 00 03 00 00 00-0c 00 00 00 00 00 00 00 ................ +1b00 01 00 00 00 02 00 00 00-03 00 00 00 04 00 00 00 ................ +1b10 05 00 00 00 06 00 00 00-07 00 00 00 08 00 00 00 ................ +1b20 09 00 00 00 0a 00 00 00-0b 00 00 00 14 00 00 00 ................ +1b30 8a c1 00 00 b1 d1 00 00-03 00 00 00 00 00 00 00 ................ +1b40 44 01 00 00 8a c1 00 00-b6 d1 00 00 03 00 00 00 D............... +1b50 4c 00 00 00 c4 09 00 00-28 0a 00 00 8c 0a 00 00 L.......(....... +1b60 f0 0a 00 00 54 0b 00 00-b8 0b 00 00 1c 0c 00 00 ....T........... +1b70 80 0c 00 00 e4 0c 00 00-48 0d 00 00 ac 0d 00 00 ........H....... +1b80 10 0e 00 00 74 0e 00 00-d8 0e 00 00 3c 0f 00 00 ....t.......<... +1b90 a0 0f 00 00 04 10 00 00-68 10 00 00 cc 10 00 00 ........h....... +1ba0 30 11 00 00 94 11 00 00-f8 11 00 00 5c 12 00 00 0...........\... +1bb0 c0 12 00 00 24 13 00 00-88 13 00 00 ec 13 00 00 ....$........... +1bc0 50 14 00 00 b4 14 00 00-18 15 00 00 7c 15 00 00 P...........|... +1bd0 e0 15 00 00 44 16 00 00-a8 16 00 00 0c 17 00 00 ....D........... +1be0 70 17 00 00 d4 17 00 00-38 18 00 00 9c 18 00 00 p.......8....... +1bf0 00 19 00 00 64 19 00 00-c8 19 00 00 2c 1a 00 00 ....d.......,... +1c00 90 1a 00 00 f4 1a 00 00-58 1b 00 00 bc 1b 00 00 ........X....... +1c10 20 1c 00 00 84 1c 00 00-e8 1c 00 00 4c 1d 00 00 ...........L... +1c20 b0 1d 00 00 14 1e 00 00-78 1e 00 00 dc 1e 00 00 ........x....... +1c30 40 1f 00 00 a4 1f 00 00-08 20 00 00 6c 20 00 00 @........ ..l .. +1c40 d0 20 00 00 34 21 00 00-98 21 00 00 fc 21 00 00 . ..4!...!...!.. +1c50 60 22 00 00 c4 22 00 00-28 23 00 00 8c 23 00 00 `"..."..(#...#.. +1c60 f0 23 00 00 54 24 00 00-b8 24 00 00 1c 25 00 00 .#..T$...$...%.. +1c70 80 25 00 00 e4 25 00 00-48 26 00 00 ac 26 00 00 .%...%..H&...&.. +1c80 10 27 00 00 28 00 00 00-8a c1 00 00 a9 d1 00 00 .'..(........... +1c90 03 00 00 00 05 00 00 00-00 00 00 00 02 00 00 00 ................ +1ca0 04 00 00 00 08 00 00 00-ff 00 00 00 14 00 00 00 ................ +1cb0 8a c1 00 00 b4 d1 00 00-03 00 00 00 00 00 00 00 ................ +1cc0 14 00 00 00 8a c1 00 00-d9 d1 00 00 03 00 00 00 ................ +1cd0 00 00 00 00 18 00 00 00-8a c1 00 00 ba d1 00 00 ................ +1ce0 03 00 00 00 01 00 00 00-02 00 00 00 1c 00 00 00 ................ +1cf0 8a c1 00 00 2c d1 00 00-03 00 00 00 02 00 00 00 ....,........... +1d00 00 00 00 00 01 00 00 00-a4 00 00 00 8a c1 00 00 ................ +1d10 cd d1 00 00 03 00 00 00-04 00 00 00 24 00 00 00 ............$... +1d20 00 00 00 00 05 00 00 00-c4 09 00 00 0c 00 00 00 ................ +1d30 00 00 00 00 03 00 00 00-01 00 00 00 00 00 00 00 ................ +1d40 24 00 00 00 00 00 00 00-00 00 00 00 88 13 00 00 $............... +1d50 18 00 00 00 00 00 00 00-03 00 00 00 01 00 00 00 ................ +1d60 00 00 00 00 24 00 00 00-00 00 00 00 00 00 00 00 ....$........... +1d70 c4 09 00 00 0c 00 00 00-00 00 00 00 03 00 00 00 ................ +1d80 01 00 00 00 00 00 00 00-24 00 00 00 00 00 00 00 ........$....... +1d90 01 00 00 00 88 13 00 00-18 00 00 00 00 00 00 00 ................ +1da0 03 00 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +1db0 8a c1 00 00 bc d1 00 00-03 00 00 00 00 00 00 00 ................ +1dc0 1c 00 00 00 8a c1 00 00-b8 d1 00 00 03 00 00 00 ................ +1dd0 02 00 00 00 04 00 00 00-00 00 00 00 20 00 00 00 ............ ... +1de0 8a c1 00 00 dc d1 00 00-03 00 00 00 03 00 00 00 ................ +1df0 02 00 00 00 00 00 00 00-01 00 00 00 14 00 00 00 ................ +1e00 8a c1 00 00 df d1 00 00-03 00 00 00 00 00 00 00 ................ +1e10 14 00 00 00 8a c1 00 00-c1 d1 00 00 03 00 00 00 ................ +1e20 00 00 00 00 24 00 00 00-8a c1 00 00 94 d1 00 00 ....$........... +1e30 03 00 00 00 04 00 00 00-00 00 00 00 02 00 00 00 ................ +1e40 07 00 00 00 01 00 00 00-14 00 00 00 8a c1 00 00 ................ +1e50 95 d1 00 00 03 00 00 00-00 00 00 00 14 00 00 00 ................ +1e60 8a c1 00 00 97 d1 00 00-03 00 00 00 00 00 00 00 ................ +1e70 14 00 00 00 8a c1 00 00-78 d1 00 00 03 00 00 00 ........x....... +1e80 00 00 00 00 14 00 00 00-8a c1 00 00 79 d1 00 00 ............y... +1e90 03 00 00 00 00 00 00 00-1c 00 00 00 8a c1 00 00 ................ +1ea0 7a d1 00 00 03 00 00 00-02 00 00 00 01 00 00 00 z............... +1eb0 00 00 00 00 14 00 00 00-8a c1 00 00 7b d1 00 00 ............{... +1ec0 03 00 00 00 00 00 00 00-1c 00 00 00 8a c1 00 00 ................ +1ed0 c9 d1 00 00 03 00 00 00-02 00 00 00 01 00 00 00 ................ +1ee0 00 00 00 00 18 00 00 00-8a c1 00 00 75 d1 00 00 ............u... +1ef0 03 00 00 00 01 00 00 00-00 00 00 00 18 00 00 00 ................ +1f00 8a c1 00 00 4b d1 00 00-03 00 00 00 01 00 00 00 ....K........... +1f10 06 00 00 00 14 00 00 00-8a c1 00 00 3e d1 00 00 ............>... +1f20 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +1f30 57 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 W............... +1f40 8a c1 00 00 58 d1 00 00-07 00 00 00 00 00 00 00 ....X........... +1f50 14 00 00 00 8a c1 00 00-59 d1 00 00 07 00 00 00 ........Y....... +1f60 00 00 00 00 14 00 00 00-8a c1 00 00 5a d1 00 00 ............Z... +1f70 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +1f80 5b d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 [............... +1f90 8a c1 00 00 5c d1 00 00-07 00 00 00 00 00 00 00 ....\........... +1fa0 14 00 00 00 8a c1 00 00-5d d1 00 00 07 00 00 00 ........]....... +1fb0 00 00 00 00 14 00 00 00-8a c1 00 00 5e d1 00 00 ............^... +1fc0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +1fd0 63 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 c............... +1fe0 8a c1 00 00 64 d1 00 00-07 00 00 00 00 00 00 00 ....d........... +1ff0 14 00 00 00 8a c1 00 00-65 d1 00 00 07 00 00 00 ........e....... + +0.393356 gp_port_read (3): Reading 126 = 0x7e bytes from port... +0.393464 gp_port_read (3): Read 126 = 0x7e bytes from port: (hexdump of 126 bytes) +0000 00 00 00 00 0c 00 00 00-a4 c1 00 00 01 00 02 00 ................ +0010 0c 00 00 00 9d c1 00 00-00 00 00 00 5a 00 00 00 ............Z... +0020 a5 c1 00 00 56 00 00 00-ff 1f 00 00 01 00 00 00 ....V........... +0030 38 38 00 38 00 00 00 50-25 b0 00 00 00 00 00 04 88.8...P%....... +0040 01 05 04 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0070 00 00 00 00 00 00 08 00-00 00 00 00 00 00 .............. + +event 0: EOS prop d116 info record, datasize is 4 +event 0: currentvalue of d116 is 412 +event 1: EOS prop d105 info record, datasize is 4 +event 1: currentvalue of d105 is 16 +event 2: EOS prop d138 info record, datasize is 4 +event 2: Unknown EOS property d138, datasize is 4 + 0: 16 + 1: 00 + 2: 00 + 3: 00 +event 3: EOS prop d102 info record, datasize is 4 +event 3: currentvalue of d102 is 38 +event 4: EOS prop d101 info record, datasize is 4 +event 4: currentvalue of d101 is b0 +event 5: EOS prop d103 info record, datasize is 4 +event 5: currentvalue of d103 is 0 +event 6: EOS prop d106 info record, datasize is 4 +event 6: currentvalue of d106 is 0 +event 7: EOS prop d108 info record, datasize is 4 +event 7: currentvalue of d108 is 0 +event 8: EOS prop d107 info record, datasize is 4 +event 8: currentvalue of d107 is 3 +event 9: EOS prop d109 info record, datasize is 4 +event 9: currentvalue of d109 is 0 +event 10: EOS prop d11b info record, datasize is 4 +event 10: currentvalue of d11b is 504 +event 11: EOS prop d104 info record, datasize is 4 +event 11: currentvalue of d104 is 0 +event 12: EOS prop d10c info record, datasize is 4 +event 12: currentvalue of d10c is 0 +event 13: EOS prop d10b info record, datasize is 4 +event 13: currentvalue of d10b is 0 +event 14: EOS prop d10e info record, datasize is 4 +event 14: currentvalue of d10e is 0 +event 15: EOS prop d10d info record, datasize is 4 +event 15: currentvalue of d10d is 0 +event 16: EOS prop d1d9 info record, datasize is 4 +event 16: currentvalue of d1d9 is 0 +event 17: EOS prop d1d5 info record, datasize is 4 +event 17: Unknown EOS property d1d5, datasize is 4, using uint32 + 0: 0x 0 +event 17: currentvalue of d1d5 is 0 +event 18: EOS prop d1c1 info record, datasize is 4 +event 18: Unknown EOS property d1c1, datasize is 4, using uint32 + 0: 0x 0 +event 18: currentvalue of d1c1 is 0 +event 19: EOS prop d10f info record, datasize is 4 +event 19: currentvalue of d10f is 1 +event 20: EOS prop d114 info record, datasize is 4 +event 20: currentvalue of d114 is 3c +event 21: EOS prop d1b7 info record, datasize is 4 +event 21: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 1 +event 21: currentvalue of d1b7 is 1 +event 22: EOS prop d110 info record, datasize is 4 +event 22: currentvalue of d110 is 87 +event 23: EOS prop d157 info record, datasize is 40 +event 23: Unknown EOS property d157, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 24: EOS prop d158 info record, datasize is 40 +event 24: Unknown EOS property d158, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 25: EOS prop d159 info record, datasize is 40 +event 25: Unknown EOS property d159, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 05 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 26: EOS prop d15a info record, datasize is 40 +event 26: Unknown EOS property d15a, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 +event 27: EOS prop d15b info record, datasize is 40 +event 27: Unknown EOS property d15b, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 +event 28: EOS prop d15c info record, datasize is 40 +event 28: Unknown EOS property d15c, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 29: EOS prop d15d info record, datasize is 40 +event 29: Unknown EOS property d15d, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 30: EOS prop d15e info record, datasize is 40 +event 30: Unknown EOS property d15e, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 +event 31: EOS prop d163 info record, datasize is 44 +event 31: Unknown EOS property d163, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 32: EOS prop d164 info record, datasize is 44 +event 32: Unknown EOS property d164, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 33: EOS prop d165 info record, datasize is 44 +event 33: Unknown EOS property d165, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 34: EOS prop d1b1 info record, datasize is 4 +event 34: currentvalue of d1b1 is 1 +event 35: EOS prop d1bc info record, datasize is 4 +event 35: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 35: currentvalue of d1bc is 1 +event 36: EOS prop d1b2 info record, datasize is 4 +event 36: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 36: currentvalue of d1b2 is 0 +event 37: EOS prop d1b3 info record, datasize is 4 +event 37: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 37: currentvalue of d1b3 is 0 +event 38: EOS prop d1b4 info record, datasize is 4 +event 38: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 0 +event 38: currentvalue of d1b4 is 0 +event 39: EOS prop d1b6 info record, datasize is 4 +event 39: Unknown EOS property d1b6, datasize is 4, using uint32 + 0: 0x 1450 +event 39: currentvalue of d1b6 is 1450 +event 40: EOS prop d1ab info record, datasize is 4 +event 40: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 40: currentvalue of d1ab is 0 +event 41: EOS prop d1b0 info record, datasize is 4 +event 41: currentvalue of d1b0 is 1 +event 42: EOS prop d10a info record, datasize is 4 +event 42: Unknown EOS property d10a, datasize is 4, using uint32 + 0: 0x 1450 +event 42: currentvalue of d10a is 1450 +event 43: EOS prop d1a8 info record, datasize is 4 +event 43: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 43: currentvalue of d1a8 is 1 +event 44: EOS prop d198 info record, datasize is 4 +event 44: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 45: EOS prop d1dd info record, datasize is 4 +event 45: currentvalue of d1dd is 1039 +event 46: EOS prop d1a1 info record, datasize is 8 +event 46: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 47: EOS prop d115 info record, datasize is 1 +event 47: currentvalue of d115 is +event 48: EOS prop d1a4 info record, datasize is 484 +event 48: Unknown EOS property d1a4, datasize is 484 + 0: e4 + 1: 01 + 2: 00 + 3: 00 + 4: 30 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 31 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 32 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 00 + 97: 00 + 98: 00 + 99: 00 + 100: 33 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 34 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 35 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 36 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 00 + 209: 00 + 210: 00 + 211: 00 + 212: 00 + 213: 00 + 214: 00 + 215: 00 + 216: 00 + 217: 00 + 218: 00 + 219: 00 + 220: 00 + 221: 00 + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 37 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 38 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: 00 + 273: 00 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: 00 + 281: 00 + 282: 00 + 283: 00 + 284: 00 + 285: 00 + 286: 00 + 287: 00 + 288: 00 + 289: 00 + 290: 00 + 291: 00 + 292: 39 + 293: 00 + 294: 00 + 295: 00 + 296: 00 + 297: 00 + 298: 00 + 299: 00 + 300: 00 + 301: 00 + 302: 00 + 303: 00 + 304: 00 + 305: 00 + 306: 00 + 307: 00 + 308: 00 + 309: 00 + 310: 00 + 311: 00 + 312: 00 + 313: 00 + 314: 00 + 315: 00 + 316: 00 + 317: 00 + 318: 00 + 319: 00 + 320: 00 + 321: 00 + 322: 00 + 323: 00 + 324: 31 + 325: 30 + 326: 00 + 327: 00 + 328: 00 + 329: 00 + 330: 00 + 331: 00 + 332: 00 + 333: 00 + 334: 00 + 335: 00 + 336: 00 + 337: 00 + 338: 00 + 339: 00 + 340: 00 + 341: 00 + 342: 00 + 343: 00 + 344: 00 + 345: 00 + 346: 00 + 347: 00 + 348: 00 + 349: 00 + 350: 00 + 351: 00 + 352: 00 + 353: 00 + 354: 00 + 355: 00 + 356: 31 + 357: 31 + 358: 00 + 359: 00 + 360: 00 + 361: 00 + 362: 00 + 363: 00 + 364: 00 + 365: 00 + 366: 00 + 367: 00 + 368: 00 + 369: 00 + 370: 00 + 371: 00 + 372: 00 + 373: 00 + 374: 00 + 375: 00 + 376: 00 + 377: 00 + 378: 00 + 379: 00 + 380: 00 + 381: 00 + 382: 00 + 383: 00 + 384: 00 + 385: 00 + 386: 00 + 387: 00 + 388: 31 + 389: 32 + 390: 00 + 391: 00 + 392: 00 + 393: 00 + 394: 00 + 395: 00 + 396: 00 + 397: 00 + 398: 00 + 399: 00 + 400: 00 + 401: 00 + 402: 00 + 403: 00 + 404: 00 + 405: 00 + 406: 00 + 407: 00 + 408: 00 + 409: 00 + 410: 00 + 411: 00 + 412: 00 + 413: 00 + 414: 00 + 415: 00 + 416: 00 + 417: 00 + 418: 00 + 419: 00 + 420: 31 + 421: 33 + 422: 00 + 423: 00 + 424: 00 + 425: 00 + 426: 00 + 427: 00 + 428: 00 + 429: 00 + 430: 00 + 431: 00 + 432: 00 + 433: 00 + 434: 00 + 435: 00 + 436: 00 + 437: 00 + 438: 00 + 439: 00 + 440: 00 + 441: 00 + 442: 00 + 443: 00 + 444: 00 + 445: 00 + 446: 00 + 447: 00 + 448: 00 + 449: 00 + 450: 00 + 451: 00 + 452: 31 + 453: 34 + 454: 00 + 455: 00 + 456: 00 + 457: 00 + 458: 00 + 459: 00 + 460: 00 + 461: 00 + 462: 00 + 463: 00 + 464: 00 + 465: 00 + 466: 00 + 467: 00 + 468: 00 + 469: 00 + 470: 00 + 471: 00 + 472: 00 + 473: 00 + 474: 00 + 475: 00 + 476: 00 + 477: 00 + 478: 00 + 479: 00 + 480: 00 + 481: 00 + 482: 00 + 483: 00 +event 49: EOS prop d1b8 info record, datasize is 4 +event 49: currentvalue of d1b8 is 3 +event 50: EOS prop d1ba info record, datasize is 4 +event 50: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 2 +event 50: currentvalue of d1ba is 2 +event 51: EOS prop d1c9 info record, datasize is 4 +event 51: currentvalue of d1c9 is 1 +event 52: EOS prop d17a info record, datasize is 4 +event 52: Unknown EOS property d17a, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 53: EOS prop d1cd info record, datasize is 44 +event 53: Unknown EOS property d1cd, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: c4 + 13: 09 + 14: 00 + 15: 00 + 16: 0c + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 55 + 41: 45 + 42: 45 + 43: 55 +event 54: EOS prop d1c5 info record, datasize is 4 +event 54: Unknown EOS property d1c5, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 55: EOS prop d1d4 info record, datasize is 4 +event 55: Unknown EOS property d1d4, datasize is 4, using uint32 + 0: 0x 0 +event 55: currentvalue of d1d4 is 0 +event 56: EOS prop d1c2 info record, datasize is 4 +event 56: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 57: EOS prop d1bd info record, datasize is 4 +event 57: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 58: EOS prop d194 info record, datasize is 4 +event 58: Unknown EOS property d194, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 59: EOS prop d195 info record, datasize is 4 +event 59: Unknown EOS property d195, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 60: EOS prop d196 info record, datasize is 4 +event 60: Unknown EOS property d196, datasize is 4 + 0: 2f + 1: 00 + 2: 00 + 3: 00 +event 61: EOS prop d197 info record, datasize is 4 +event 61: Unknown EOS property d197, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 62: EOS prop d199 info record, datasize is 4 +event 62: Unknown EOS property d199, datasize is 4 + 0: 10 + 1: 00 + 2: 00 + 3: 00 +event 63: EOS prop d13c info record, datasize is 4 +event 63: currentvalue of d13c is 5757 +event 64: EOS prop d13d info record, datasize is 24 +event 64: Unknown EOS property d13d, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 65: EOS prop d179 info record, datasize is 4 +event 65: Unknown EOS property d179, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 66: EOS prop d17b info record, datasize is 4 +event 66: Unknown EOS property d17b, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 67: EOS prop d177 info record, datasize is 24 +event 67: Unknown EOS property d177, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 68: EOS prop d176 info record, datasize is 4 +event 68: Unknown EOS property d176, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 69: EOS prop d175 info record, datasize is 4 +event 69: Unknown EOS property d175, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 70: EOS prop d137 info record, datasize is 4 +event 70: Unknown EOS property d137, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 71: EOS prop d178 info record, datasize is 4 +event 71: Unknown EOS property d178, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 72: EOS prop d121 info record, datasize is 36 +event 72: decoded imageformat, currentvalue of d121 is 403 +event 73: EOS prop d120 info record, datasize is 36 +event 73: decoded imageformat, currentvalue of d120 is 403 +event 74: EOS prop d122 info record, datasize is 36 +event 74: decoded imageformat, currentvalue of d122 is 403 +event 75: EOS prop d133 info record, datasize is 4 +event 75: Unknown EOS property d133, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 76: EOS prop d131 info record, datasize is 4 +event 76: Unknown EOS property d131, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 77: EOS prop d132 info record, datasize is 4 +event 77: Unknown EOS property d132, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 78: EOS prop d130 info record, datasize is 4 +event 78: Unknown EOS property d130, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 79: EOS prop d11c info record, datasize is 4 +event 79: currentvalue of d11c is 2 +event 80: EOS prop d113 info record, datasize is 4 +event 80: currentvalue of d113 is 5bb52b3d +event 81: EOS prop d1a7 info record, datasize is 40 +event 81: Unknown EOS property d1a7, datasize is 40 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 +event 82: EOS prop d112 info record, datasize is 4 +event 82: currentvalue of d112 is 0 +event 83: EOS prop d111 info record, datasize is 4 +event 83: currentvalue of d111 is 2 +event 84: EOS prop d1d8 info record, datasize is 63 +event 84: currentvalue of d1d8 is EF-M15-45mm f/3.5-6.3 IS STM +event 85: EOS prop d1da info record, datasize is 16 +event 85: Unknown EOS property d1da, datasize is 16 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 +event 86: EOS prop d17e info record, datasize is 4 +event 86: currentvalue of d17e is 1 +event 87: EOS prop d17c info record, datasize is 4 +event 87: currentvalue of d17c is 5bb50f1d +event 88: EOS prop d11f info record, datasize is 4 +event 88: currentvalue of d11f is 91900000 +event 89: EOS prop d11f info record, datasize is 4 +event 89: currentvalue of d11f is 91900000 +event 90: EOS prop d11e info record, datasize is 4 +event 90: currentvalue of d11e is 20001 +event 91: EOS prop d1aa info record, datasize is 4 +event 91: Unknown EOS property d1aa, datasize is 4, using uint32 + 0: 0x 0 +event 91: currentvalue of d1aa is 0 +event 92: EOS prop d139 info record, datasize is 12 +event 92: Unknown EOS property d139, datasize is 12 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 93: EOS prop d1c3 info record, datasize is 4 +event 93: Unknown EOS property d1c3, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 94: EOS prop d13a info record, datasize is 4 +event 94: Unknown EOS property d13a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 95: EOS prop d1bf info record, datasize is 4 +event 95: Unknown EOS property d1bf, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 96: EOS prop d11d info record, datasize is 4 +event 96: currentvalue of d11d is 0 +event 97: EOS prop d1c7 info record, datasize is 4 +event 97: Unknown EOS property d1c7, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 98: EOS prop d1c4 info record, datasize is 4 +event 98: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 99: EOS prop d1cb info record, datasize is 52 +event 99: Unknown EOS property d1cb, datasize is 52 + 0: 34 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 +event 100: EOS prop d1df info record, datasize is 4 +event 100: Unknown EOS property d1df, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 101: EOS prop d1dc info record, datasize is 4 +event 101: currentvalue of d1dc is 2 +event 102: EOS prop d1c0 info record, datasize is 4 +event 102: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 103: EOS prop d136 info record, datasize is 4 +event 103: Unknown EOS property d136, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 104: EOS prop d134 info record, datasize is 24 +event 104: Unknown EOS property d134, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 0a + 17: 00 + 18: 00 + 19: 00 + 20: 0a + 21: 00 + 22: 00 + 23: 00 +event 105: EOS prop d135 info record, datasize is 4 +event 105: Unknown EOS property d135, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 106: EOS prop d140 info record, datasize is 48 +event 106: Unknown EOS property d140, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 91 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 12 + 47: 03 +event 107: EOS prop d141 info record, datasize is 48 +event 107: Unknown EOS property d141, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 +event 108: EOS prop d142 info record, datasize is 48 +event 108: Unknown EOS property d142, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 +event 109: EOS prop d143 info record, datasize is 48 +event 109: Unknown EOS property d143, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 +event 110: EOS prop d144 info record, datasize is 48 +event 110: Unknown EOS property d144, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 +event 111: EOS prop d14a info record, datasize is 4 +event 111: Unknown EOS property d14a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 112: EOS prop d149 info record, datasize is 4 +event 112: Unknown EOS property d149, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 113: EOS prop d13e info record, datasize is 20 +event 113: Unknown EOS property d13e, datasize is 20 + 0: 14 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 +event 114: EOS prop d19a info record, datasize is 4 +event 114: Unknown EOS property d19a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 115: EOS prop d13b info record, datasize is 4 +event 115: Unknown EOS property d13b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 116: EOS prop d1a3 info record, datasize is 4 +event 116: Unknown EOS property d1a3, datasize is 4, using uint32 + 0: 0x 0 +event 116: currentvalue of d1a3 is 0 +event 117: EOS prop d19f info record, datasize is 4 +event 117: Unknown EOS property d19f, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 118: EOS prop d124 info record, datasize is 4 +event 118: Unknown EOS property d124, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 119: EOS prop d167 info record, datasize is 16 +event 119: Unknown EOS property d167, datasize is 16 + 0: 10 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: e8 + 9: 03 + 10: 00 + 11: 00 + 12: e8 + 13: 03 + 14: 00 + 15: 00 +event 120: EOS prop d1c6 info record, datasize is 4 +event 120: Unknown EOS property d1c6, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 121: EOS prop d12d info record, datasize is 12 +event 121: Unknown EOS property d12d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 122: EOS prop d12c info record, datasize is 4 +event 122: Unknown EOS property d12c, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 123: EOS prop d127 info record, datasize is 8 +event 123: Unknown EOS property d127, datasize is 8 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 124: EOS prop d17d info record, datasize is 12 +event 124: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 13 + 5: 00 + 6: 00 + 7: 00 + 8: 3c + 9: 00 + 10: 00 + 11: 00 +event 125: EOS prop d125 info record, datasize is 16 +event 125: Unknown EOS property d125, datasize is 16 + 0: 45 + 1: 4f + 2: 53 + 3: 4d + 4: 35 + 5: 30 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 +event 126: EOS prop d103 desc record, datasize 0, propxtype 3 +event 127: EOS prop d105 desc record, datasize 0, propxtype 1 +event 127: propxtype is 1 for d105, unhandled, size 20 +event 128: EOS prop d11b desc record, datasize 0, propxtype 1 +event 128: propxtype is 1 for d11b, unhandled, size 20 +event 129: EOS prop d11b desc record, datasize 0, propxtype 1 +event 129: propxtype is 1 for d11b, unhandled, size 20 +event 130: EOS prop d114 desc record, datasize 0, propxtype 1 +event 130: propxtype is 1 for d114, unhandled, size 20 +event 131: EOS prop d114 desc record, datasize 0, propxtype 1 +event 131: propxtype is 1 for d114, unhandled, size 20 +event 132: EOS prop d116 desc record, datasize 0, propxtype 1 +event 132: propxtype is 1 for d116, unhandled, size 20 +event 133: EOS prop d111 desc record, datasize 0, propxtype 1 +event 133: propxtype is 1 for d111, unhandled, size 20 +event 134: EOS prop d112 desc record, datasize 0, propxtype 1 +event 134: propxtype is 1 for d112, unhandled, size 20 +event 135: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 135: propxtype is 1 for d1a8, unhandled, size 20 +event 136: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 136: propxtype is 1 for d1ab, unhandled, size 20 +event 137: EOS prop d147 desc record, datasize 0, propxtype 1 +event 137: propdesc d147, default value not found. +event 138: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 138: propdesc d1ad, default value not found. +event 139: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 139: propdesc d1ae, default value not found. +event 140: EOS prop d1aa desc record, datasize 0, propxtype 1 +event 140: propxtype is 1 for d1aa, unhandled, size 20 +event 141: EOS prop d11e desc record, datasize 0, propxtype 1 +event 141: propxtype is 1 for d11e, unhandled, size 20 +event 142: EOS prop d11f desc record, datasize 0, propxtype 1 +event 142: propxtype is 1 for d11f, unhandled, size 20 +event 143: EOS prop d1af desc record, datasize 0, propxtype 1 +event 143: propdesc d1af, default value not found. +event 144: EOS prop 0000 desc record, datasize 0, propxtype 1 +event 144: propdesc 0, default value not found. +event 145: EOS prop d17f desc record, datasize 0, propxtype 1 +event 145: propdesc d17f, default value not found. +event 146: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 146: propxtype is 1 for d1b7, unhandled, size 20 +event 147: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 147: propxtype is 1 for d1c4, unhandled, size 20 +event 148: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 148: propxtype is 1 for d1c2, unhandled, size 20 +event 149: EOS prop d199 desc record, datasize 0, propxtype 1 +event 149: propxtype is 1 for d199, unhandled, size 20 +event 150: EOS prop d138 desc record, datasize 0, propxtype 1 +event 150: propxtype is 1 for d138, unhandled, size 20 +event 151: EOS prop d139 desc record, datasize 0, propxtype 1 +event 151: propxtype is 1 for d139, unhandled, size 20 +event 152: EOS prop d13b desc record, datasize 0, propxtype 1 +event 152: propxtype is 1 for d13b, unhandled, size 20 +event 153: EOS prop d13c desc record, datasize 0, propxtype 1 +event 153: propxtype is 1 for d13c, unhandled, size 20 +event 154: EOS prop d19d desc record, datasize 0, propxtype 1 +event 154: propdesc d19d, default value not found. +event 155: EOS prop d19a desc record, datasize 0, propxtype 1 +event 155: propxtype is 1 for d19a, unhandled, size 20 +event 156: EOS prop d19c desc record, datasize 0, propxtype 1 +event 156: propdesc d19c, default value not found. +event 157: EOS prop d14c desc record, datasize 0, propxtype 1 +event 157: propdesc d14c, default value not found. +event 158: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 158: propxtype is 1 for d1bd, unhandled, size 20 +event 159: EOS prop d19f desc record, datasize 0, propxtype 1 +event 159: propxtype is 1 for d19f, unhandled, size 20 +event 160: EOS prop d124 desc record, datasize 0, propxtype 1 +event 160: propxtype is 1 for d124, unhandled, size 20 +event 161: EOS prop d115 desc record, datasize 0, propxtype 7 +event 161: propxtype is 7 for d115, unhandled, size 20 +event 162: EOS prop d110 desc record, datasize 0, propxtype 3 +event 163: EOS prop d170 desc record, datasize 0, propxtype 7 +event 163: propdesc d170, default value not found. +event 164: EOS prop d170 desc record, datasize 0, propxtype 7 +event 164: propdesc d170, default value not found. +event 165: EOS prop d171 desc record, datasize 0, propxtype 7 +event 165: propdesc d171, default value not found. +event 166: EOS prop d171 desc record, datasize 0, propxtype 7 +event 166: propdesc d171, default value not found. +event 167: EOS prop d172 desc record, datasize 0, propxtype 7 +event 167: propdesc d172, default value not found. +event 168: EOS prop d172 desc record, datasize 0, propxtype 7 +event 168: propdesc d172, default value not found. +event 169: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 169: propxtype is 7 for d1a1, unhandled, size 20 +event 170: EOS prop d1a7 desc record, datasize 0, propxtype 7 +event 170: propxtype is 7 for d1a7, unhandled, size 20 +event 171: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 171: propdesc d1a2, default value not found. +event 172: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 172: propxtype is 7 for d1b2, unhandled, size 20 +event 173: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 173: propxtype is 7 for d1b3, unhandled, size 20 +event 174: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 174: propdesc d1b5, default value not found. +event 175: EOS prop d146 desc record, datasize 0, propxtype 7 +event 175: propdesc d146, default value not found. +event 176: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 176: propdesc d1d0, default value not found. +event 177: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 177: propdesc d1d1, default value not found. +event 178: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 178: propdesc d1d3, default value not found. +event 179: EOS prop d1cb desc record, datasize 0, propxtype 7 +event 179: propxtype is 7 for d1cb, unhandled, size 20 +event 180: EOS prop d14d desc record, datasize 0, propxtype 7 +event 180: propdesc d14d, default value not found. +event 181: EOS prop d196 desc record, datasize 0, propxtype 7 +event 181: propxtype is 7 for d196, unhandled, size 20 +event 182: EOS prop d1db desc record, datasize 0, propxtype 7 +event 182: propdesc d1db, default value not found. +event 183: EOS prop d1a4 desc record, datasize 0, propxtype 7 +event 183: propxtype is 7 for d1a4, unhandled, size 20 +event 184: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 184: propxtype is 7 for d1bf, unhandled, size 20 +event 185: EOS prop d106 desc record, datasize 24, propxtype 3 +event 185: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 6. +event 185: suppval[0] of d106 is 0x0. +event 185: suppval[1] of d106 is 0x4. +event 185: suppval[2] of d106 is 0x5. +event 185: suppval[3] of d106 is 0x10. +event 185: suppval[4] of d106 is 0x11. +event 185: suppval[5] of d106 is 0x7. +event 186: EOS prop d107 desc record, datasize 0, propxtype 3 +event 187: EOS prop d109 desc record, datasize 0, propxtype 3 +event 188: EOS prop d10a desc record, datasize 304, propxtype 3 +event 188: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +event 188: suppval[0] of d10a is 0x9c4. +event 188: suppval[1] of d10a is 0xa28. +event 188: suppval[2] of d10a is 0xa8c. +event 188: suppval[3] of d10a is 0xaf0. +event 188: suppval[4] of d10a is 0xb54. +event 188: suppval[5] of d10a is 0xbb8. +event 188: suppval[6] of d10a is 0xc1c. +event 188: suppval[7] of d10a is 0xc80. +event 188: suppval[8] of d10a is 0xce4. +event 188: suppval[9] of d10a is 0xd48. +event 188: suppval[10] of d10a is 0xdac. +event 188: suppval[11] of d10a is 0xe10. +event 188: suppval[12] of d10a is 0xe74. +event 188: suppval[13] of d10a is 0xed8. +event 188: suppval[14] of d10a is 0xf3c. +event 188: suppval[15] of d10a is 0xfa0. +event 188: suppval[16] of d10a is 0x1004. +event 188: suppval[17] of d10a is 0x1068. +event 188: suppval[18] of d10a is 0x10cc. +event 188: suppval[19] of d10a is 0x1130. +event 188: suppval[20] of d10a is 0x1194. +event 188: suppval[21] of d10a is 0x11f8. +event 188: suppval[22] of d10a is 0x125c. +event 188: suppval[23] of d10a is 0x12c0. +event 188: suppval[24] of d10a is 0x1324. +event 188: suppval[25] of d10a is 0x1388. +event 188: suppval[26] of d10a is 0x13ec. +event 188: suppval[27] of d10a is 0x1450. +event 188: suppval[28] of d10a is 0x14b4. +event 188: suppval[29] of d10a is 0x1518. +event 188: suppval[30] of d10a is 0x157c. +event 188: suppval[31] of d10a is 0x15e0. +event 188: suppval[32] of d10a is 0x1644. +event 188: suppval[33] of d10a is 0x16a8. +event 188: suppval[34] of d10a is 0x170c. +event 188: suppval[35] of d10a is 0x1770. +event 188: suppval[36] of d10a is 0x17d4. +event 188: suppval[37] of d10a is 0x1838. +event 188: suppval[38] of d10a is 0x189c. +event 188: suppval[39] of d10a is 0x1900. +event 188: suppval[40] of d10a is 0x1964. +event 188: suppval[41] of d10a is 0x19c8. +event 188: suppval[42] of d10a is 0x1a2c. +event 188: suppval[43] of d10a is 0x1a90. +event 188: suppval[44] of d10a is 0x1af4. +event 188: suppval[45] of d10a is 0x1b58. +event 188: suppval[46] of d10a is 0x1bbc. +event 188: suppval[47] of d10a is 0x1c20. +event 188: suppval[48] of d10a is 0x1c84. +event 188: suppval[49] of d10a is 0x1ce8. +event 188: suppval[50] of d10a is 0x1d4c. +event 188: suppval[51] of d10a is 0x1db0. +event 188: suppval[52] of d10a is 0x1e14. +event 188: suppval[53] of d10a is 0x1e78. +event 188: suppval[54] of d10a is 0x1edc. +event 188: suppval[55] of d10a is 0x1f40. +event 188: suppval[56] of d10a is 0x1fa4. +event 188: suppval[57] of d10a is 0x2008. +event 188: suppval[58] of d10a is 0x206c. +event 188: suppval[59] of d10a is 0x20d0. +event 188: suppval[60] of d10a is 0x2134. +event 188: suppval[61] of d10a is 0x2198. +event 188: suppval[62] of d10a is 0x21fc. +event 188: suppval[63] of d10a is 0x2260. +event 188: suppval[64] of d10a is 0x22c4. +event 188: suppval[65] of d10a is 0x2328. +event 188: suppval[66] of d10a is 0x238c. +event 188: suppval[67] of d10a is 0x23f0. +event 188: suppval[68] of d10a is 0x2454. +event 188: suppval[69] of d10a is 0x24b8. +event 188: suppval[70] of d10a is 0x251c. +event 188: suppval[71] of d10a is 0x2580. +event 188: suppval[72] of d10a is 0x25e4. +event 188: suppval[73] of d10a is 0x2648. +event 188: suppval[74] of d10a is 0x26ac. +event 188: suppval[75] of d10a is 0x2710. +event 189: EOS prop d10b desc record, datasize 0, propxtype 3 +event 190: EOS prop d10c desc record, datasize 0, propxtype 3 +event 191: EOS prop d10d desc record, datasize 0, propxtype 3 +event 192: EOS prop d10e desc record, datasize 0, propxtype 3 +event 193: EOS prop d10f desc record, datasize 0, propxtype 3 +event 194: EOS prop d101 desc record, datasize 0, propxtype 3 +event 195: EOS prop d102 desc record, datasize 0, propxtype 3 +event 196: EOS prop d104 desc record, datasize 0, propxtype 3 +event 197: EOS prop d17d desc record, datasize 396, propxtype 3 +event 197: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +event 197: data type 0x0000 of d17d unhandled, size 12, raw values: + 0: 0x c + 1: 0x 21 + 2: 0x 30c + 3: 0x c + 4: 0x 1 + 5: 0x 2fd + 6: 0x c + 7: 0x 2 + 8: 0x 2d0 + 9: 0x c + 10: 0x 3 + 11: 0x 294 + 12: 0x c + 13: 0x 4 + 14: 0x 258 + 15: 0x c + 16: 0x 5 + 17: 0x 23a + 18: 0x c + 19: 0x 6 + 20: 0x 21c + 21: 0x c + 22: 0x 7 + 23: 0x 1e0 + 24: 0x c + 25: 0x 8 + 26: 0x 1a4 + 27: 0x c + 28: 0x 9 + 29: 0x 186 + 30: 0x c + 31: 0x a + 32: 0x 168 + 33: 0x c + 34: 0x b + 35: 0x 159 + 36: 0x c + 37: 0x c + 38: 0x 14a + 39: 0x c + 40: 0x d + 41: 0x 12c + 42: 0x c + 43: 0x e + 44: 0x 10e + 45: 0x c + 46: 0x f + 47: 0x f0 + 48: 0x c + 49: 0x 10 + 50: 0x d2 + 51: 0x c + 52: 0x 11 + 53: 0x b4 + 54: 0x c + 55: 0x 12 + 56: 0x 78 + 57: 0x c + 58: 0x 13 + 59: 0x 3c + 60: 0x c + 61: 0x 14 + 62: 0x 0 + 63: 0x c + 64: 0x 15 + 65: 0xffffffc4 + 66: 0x c + 67: 0x 16 + 68: 0xffffff88 + 69: 0x c + 70: 0x 17 + 71: 0xffffff4c + 72: 0x c + 73: 0x 18 + 74: 0xffffff2e + 75: 0x c + 76: 0x 1a + 77: 0xffffff10 + 78: 0x c + 79: 0x 1b + 80: 0xfffffed4 + 81: 0x c + 82: 0x 1c + 83: 0xfffffe98 + 84: 0x c + 85: 0x 1d + 86: 0xfffffe5c + 87: 0x c + 88: 0x 1e + 89: 0xfffffe20 + 90: 0x c + 91: 0x 1f + 92: 0xfffffde4 + 93: 0x c + 94: 0x 20 + 95: 0xfffffda8 + 96: 0x c + 97: 0xffffffff + 98: 0x 0 +event 198: EOS prop d17e desc record, datasize 8, propxtype 3 +event 198: propxtype is 3, prop is 0xd17e, data type is 0x0006, propxcnt is 2. +event 198: suppval[0] of d17e is 0x0. +event 198: suppval[1] of d17e is 0x1. +event 199: EOS prop d17c desc record, datasize 0, propxtype 7 +event 199: propxtype is 7 for d17c, unhandled, size 20 +event 200: EOS prop d121 desc record, datasize 684, propxtype 3 +event 200: propxtype is 3, prop is 0xd121, data type is 0x0004, propxcnt is 23. +event 200: suppval[0] of d121 is 0x300. +event 200: suppval[1] of d121 is 0x200. +event 200: suppval[2] of d121 is 0x1300. +event 200: suppval[3] of d121 is 0x1200. +event 200: suppval[4] of d121 is 0xd300. +event 200: suppval[5] of d121 is 0xd200. +event 200: suppval[6] of d121 is 0xe300. +event 200: suppval[7] of d121 is 0x403. +event 200: suppval[8] of d121 is 0x402. +event 200: suppval[9] of d121 is 0x413. +event 200: suppval[10] of d121 is 0x412. +event 200: suppval[11] of d121 is 0x4d3. +event 200: suppval[12] of d121 is 0x4d2. +event 200: suppval[13] of d121 is 0x4e3. +event 200: suppval[14] of d121 is 0x303. +event 200: suppval[15] of d121 is 0x302. +event 200: suppval[16] of d121 is 0x313. +event 200: suppval[17] of d121 is 0x312. +event 200: suppval[18] of d121 is 0x3d3. +event 200: suppval[19] of d121 is 0x3d2. +event 200: suppval[20] of d121 is 0x3e3. +event 200: suppval[21] of d121 is 0x400. +event 200: suppval[22] of d121 is 0x300. +event 201: EOS prop d122 desc record, datasize 684, propxtype 3 +event 201: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 23. +event 201: suppval[0] of d122 is 0x300. +event 201: suppval[1] of d122 is 0x200. +event 201: suppval[2] of d122 is 0x1300. +event 201: suppval[3] of d122 is 0x1200. +event 201: suppval[4] of d122 is 0xd300. +event 201: suppval[5] of d122 is 0xd200. +event 201: suppval[6] of d122 is 0xe300. +event 201: suppval[7] of d122 is 0x403. +event 201: suppval[8] of d122 is 0x402. +event 201: suppval[9] of d122 is 0x413. +event 201: suppval[10] of d122 is 0x412. +event 201: suppval[11] of d122 is 0x4d3. +event 201: suppval[12] of d122 is 0x4d2. +event 201: suppval[13] of d122 is 0x4e3. +event 201: suppval[14] of d122 is 0x303. +event 201: suppval[15] of d122 is 0x302. +event 201: suppval[16] of d122 is 0x313. +event 201: suppval[17] of d122 is 0x312. +event 201: suppval[18] of d122 is 0x3d3. +event 201: suppval[19] of d122 is 0x3d2. +event 201: suppval[20] of d122 is 0x3e3. +event 201: suppval[21] of d122 is 0x400. +event 201: suppval[22] of d122 is 0x300. +event 202: EOS prop d120 desc record, datasize 684, propxtype 3 +event 202: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 23. +event 202: suppval[0] of d120 is 0x300. +event 202: suppval[1] of d120 is 0x200. +event 202: suppval[2] of d120 is 0x1300. +event 202: suppval[3] of d120 is 0x1200. +event 202: suppval[4] of d120 is 0xd300. +event 202: suppval[5] of d120 is 0xd200. +event 202: suppval[6] of d120 is 0xe300. +event 202: suppval[7] of d120 is 0x403. +event 202: suppval[8] of d120 is 0x402. +event 202: suppval[9] of d120 is 0x413. +event 202: suppval[10] of d120 is 0x412. +event 202: suppval[11] of d120 is 0x4d3. +event 202: suppval[12] of d120 is 0x4d2. +event 202: suppval[13] of d120 is 0x4e3. +event 202: suppval[14] of d120 is 0x303. +event 202: suppval[15] of d120 is 0x302. +event 202: suppval[16] of d120 is 0x313. +event 202: suppval[17] of d120 is 0x312. +event 202: suppval[18] of d120 is 0x3d3. +event 202: suppval[19] of d120 is 0x3d2. +event 202: suppval[20] of d120 is 0x3e3. +event 202: suppval[21] of d120 is 0x400. +event 202: suppval[22] of d120 is 0x300. +event 203: EOS prop d11c desc record, datasize 12, propxtype 3 +event 203: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +event 203: suppval[0] of d11c is 0x2. +event 203: suppval[1] of d11c is 0x6. +event 203: suppval[2] of d11c is 0x4. +event 204: EOS prop d1b0 desc record, datasize 48, propxtype 3 +event 204: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 12. +event 204: suppval[0] of d1b0 is 0x0. +event 204: suppval[1] of d1b0 is 0x1. +event 204: suppval[2] of d1b0 is 0x2. +event 204: suppval[3] of d1b0 is 0x3. +event 204: suppval[4] of d1b0 is 0x4. +event 204: suppval[5] of d1b0 is 0x5. +event 204: suppval[6] of d1b0 is 0x6. +event 204: suppval[7] of d1b0 is 0x7. +event 204: suppval[8] of d1b0 is 0x8. +event 204: suppval[9] of d1b0 is 0x9. +event 204: suppval[10] of d1b0 is 0xa. +event 204: suppval[11] of d1b0 is 0xb. +event 205: EOS prop d1b1 desc record, datasize 0, propxtype 3 +event 206: EOS prop d1b6 desc record, datasize 304, propxtype 3 +event 206: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +event 206: suppval[0] of d1b6 is 0x9c4. +event 206: suppval[1] of d1b6 is 0xa28. +event 206: suppval[2] of d1b6 is 0xa8c. +event 206: suppval[3] of d1b6 is 0xaf0. +event 206: suppval[4] of d1b6 is 0xb54. +event 206: suppval[5] of d1b6 is 0xbb8. +event 206: suppval[6] of d1b6 is 0xc1c. +event 206: suppval[7] of d1b6 is 0xc80. +event 206: suppval[8] of d1b6 is 0xce4. +event 206: suppval[9] of d1b6 is 0xd48. +event 206: suppval[10] of d1b6 is 0xdac. +event 206: suppval[11] of d1b6 is 0xe10. +event 206: suppval[12] of d1b6 is 0xe74. +event 206: suppval[13] of d1b6 is 0xed8. +event 206: suppval[14] of d1b6 is 0xf3c. +event 206: suppval[15] of d1b6 is 0xfa0. +event 206: suppval[16] of d1b6 is 0x1004. +event 206: suppval[17] of d1b6 is 0x1068. +event 206: suppval[18] of d1b6 is 0x10cc. +event 206: suppval[19] of d1b6 is 0x1130. +event 206: suppval[20] of d1b6 is 0x1194. +event 206: suppval[21] of d1b6 is 0x11f8. +event 206: suppval[22] of d1b6 is 0x125c. +event 206: suppval[23] of d1b6 is 0x12c0. +event 206: suppval[24] of d1b6 is 0x1324. +event 206: suppval[25] of d1b6 is 0x1388. +event 206: suppval[26] of d1b6 is 0x13ec. +event 206: suppval[27] of d1b6 is 0x1450. +event 206: suppval[28] of d1b6 is 0x14b4. +event 206: suppval[29] of d1b6 is 0x1518. +event 206: suppval[30] of d1b6 is 0x157c. +event 206: suppval[31] of d1b6 is 0x15e0. +event 206: suppval[32] of d1b6 is 0x1644. +event 206: suppval[33] of d1b6 is 0x16a8. +event 206: suppval[34] of d1b6 is 0x170c. +event 206: suppval[35] of d1b6 is 0x1770. +event 206: suppval[36] of d1b6 is 0x17d4. +event 206: suppval[37] of d1b6 is 0x1838. +event 206: suppval[38] of d1b6 is 0x189c. +event 206: suppval[39] of d1b6 is 0x1900. +event 206: suppval[40] of d1b6 is 0x1964. +event 206: suppval[41] of d1b6 is 0x19c8. +event 206: suppval[42] of d1b6 is 0x1a2c. +event 206: suppval[43] of d1b6 is 0x1a90. +event 206: suppval[44] of d1b6 is 0x1af4. +event 206: suppval[45] of d1b6 is 0x1b58. +event 206: suppval[46] of d1b6 is 0x1bbc. +event 206: suppval[47] of d1b6 is 0x1c20. +event 206: suppval[48] of d1b6 is 0x1c84. +event 206: suppval[49] of d1b6 is 0x1ce8. +event 206: suppval[50] of d1b6 is 0x1d4c. +event 206: suppval[51] of d1b6 is 0x1db0. +event 206: suppval[52] of d1b6 is 0x1e14. +event 206: suppval[53] of d1b6 is 0x1e78. +event 206: suppval[54] of d1b6 is 0x1edc. +event 206: suppval[55] of d1b6 is 0x1f40. +event 206: suppval[56] of d1b6 is 0x1fa4. +event 206: suppval[57] of d1b6 is 0x2008. +event 206: suppval[58] of d1b6 is 0x206c. +event 206: suppval[59] of d1b6 is 0x20d0. +event 206: suppval[60] of d1b6 is 0x2134. +event 206: suppval[61] of d1b6 is 0x2198. +event 206: suppval[62] of d1b6 is 0x21fc. +event 206: suppval[63] of d1b6 is 0x2260. +event 206: suppval[64] of d1b6 is 0x22c4. +event 206: suppval[65] of d1b6 is 0x2328. +event 206: suppval[66] of d1b6 is 0x238c. +event 206: suppval[67] of d1b6 is 0x23f0. +event 206: suppval[68] of d1b6 is 0x2454. +event 206: suppval[69] of d1b6 is 0x24b8. +event 206: suppval[70] of d1b6 is 0x251c. +event 206: suppval[71] of d1b6 is 0x2580. +event 206: suppval[72] of d1b6 is 0x25e4. +event 206: suppval[73] of d1b6 is 0x2648. +event 206: suppval[74] of d1b6 is 0x26ac. +event 206: suppval[75] of d1b6 is 0x2710. +event 207: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 207: propdesc d1a9, default value not found. +event 208: EOS prop d1b4 desc record, datasize 0, propxtype 3 +event 209: EOS prop d1d9 desc record, datasize 0, propxtype 3 +event 210: EOS prop d1ba desc record, datasize 4, propxtype 3 +event 210: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 1. +event 210: suppval[0] of d1ba is 0x2. +event 211: EOS prop d12c desc record, datasize 8, propxtype 3 +event 211: propxtype is 3, prop is 0xd12c, data type is 0x0000, propxcnt is 2. +event 211: data type 0x0000 of d12c unhandled, size 0, raw values: + 0: 0x 0 + 1: 0x 1 +event 212: EOS prop d1cd desc record, datasize 144, propxtype 3 +event 212: propxtype is 3, prop is 0xd1cd, data type is 0x0000, propxcnt is 4. +event 212: data type 0x0000 of d1cd unhandled, size 36, raw values: + 0: 0x 24 + 1: 0x 0 + 2: 0x 5 + 3: 0x 9c4 + 4: 0x c + 5: 0x 0 + 6: 0x 3 + 7: 0x 1 + 8: 0x 0 + 9: 0x 24 + 10: 0x 0 + 11: 0x 0 + 12: 0x 1388 + 13: 0x 18 + 14: 0x 0 + 15: 0x 3 + 16: 0x 1 + 17: 0x 0 + 18: 0x 24 + 19: 0x 0 + 20: 0x 0 + 21: 0x 9c4 + 22: 0x c + 23: 0x 0 + 24: 0x 3 + 25: 0x 1 + 26: 0x 0 + 27: 0x 24 + 28: 0x 0 + 29: 0x 1 + 30: 0x 1388 + 31: 0x 18 + 32: 0x 0 + 33: 0x 3 + 34: 0x 1 + 35: 0x 0 +event 213: EOS prop d1bc desc record, datasize 0, propxtype 3 +event 214: EOS prop d1b8 desc record, datasize 8, propxtype 3 +event 214: propxtype is 3, prop is 0xd1b8, data type is 0x0004, propxcnt is 2. +event 214: suppval[0] of d1b8 is 0x4. +event 214: suppval[1] of d1b8 is 0x0. +event 215: EOS prop d1dc desc record, datasize 12, propxtype 3 +event 215: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 3. +event 215: suppval[0] of d1dc is 0x2. +event 215: suppval[1] of d1dc is 0x0. +event 215: suppval[2] of d1dc is 0x1. +event 216: EOS prop d1df desc record, datasize 0, propxtype 3 +event 217: EOS prop d1c1 desc record, datasize 0, propxtype 3 +event 218: EOS prop d194 desc record, datasize 16, propxtype 3 +event 218: propxtype is 3, prop is 0xd194, data type is 0x0000, propxcnt is 4. +event 218: data type 0x0000 of d194 unhandled, size 0, raw values: + 0: 0x 0 + 1: 0x 2 + 2: 0x 7 + 3: 0x 1 +event 219: EOS prop d195 desc record, datasize 0, propxtype 3 +event 220: EOS prop d197 desc record, datasize 0, propxtype 3 +event 221: EOS prop d178 desc record, datasize 0, propxtype 3 +event 222: EOS prop d179 desc record, datasize 0, propxtype 3 +event 223: EOS prop d17a desc record, datasize 8, propxtype 3 +event 223: propxtype is 3, prop is 0xd17a, data type is 0x0000, propxcnt is 2. +event 223: data type 0x0000 of d17a unhandled, size 1, raw values: + 0: 0x 1 + 1: 0x 0 +event 224: EOS prop d17b desc record, datasize 0, propxtype 3 +event 225: EOS prop d1c9 desc record, datasize 8, propxtype 3 +event 225: propxtype is 3, prop is 0xd1c9, data type is 0x0006, propxcnt is 2. +event 225: suppval[0] of d1c9 is 0x1. +event 225: suppval[1] of d1c9 is 0x0. +event 226: EOS prop d175 desc record, datasize 4, propxtype 3 +event 226: propxtype is 3, prop is 0xd175, data type is 0x0000, propxcnt is 1. +event 226: data type 0x0000 of d175 unhandled, size 0, raw values: + 0: 0x 0 +event 227: EOS prop d14b desc record, datasize 4, propxtype 3 +event 227: propdesc d14b, default value not found. +event 228: EOS prop d13e desc record, datasize 0, propxtype 1 +event 228: propxtype is 1 for d13e, unhandled, size 20 +event 229: EOS prop d157 desc record, datasize 0, propxtype 7 +event 229: propxtype is 7 for d157, unhandled, size 20 +event 230: EOS prop d158 desc record, datasize 0, propxtype 7 +event 230: propxtype is 7 for d158, unhandled, size 20 +event 231: EOS prop d159 desc record, datasize 0, propxtype 7 +event 231: propxtype is 7 for d159, unhandled, size 20 +event 232: EOS prop d15a desc record, datasize 0, propxtype 7 +event 232: propxtype is 7 for d15a, unhandled, size 20 +event 233: EOS prop d15b desc record, datasize 0, propxtype 7 +event 233: propxtype is 7 for d15b, unhandled, size 20 +event 234: EOS prop d15c desc record, datasize 0, propxtype 7 +event 234: propxtype is 7 for d15c, unhandled, size 20 +event 235: EOS prop d15d desc record, datasize 0, propxtype 7 +event 235: propxtype is 7 for d15d, unhandled, size 20 +event 236: EOS prop d15e desc record, datasize 0, propxtype 7 +event 236: propxtype is 7 for d15e, unhandled, size 20 +event 237: EOS prop d163 desc record, datasize 0, propxtype 7 +event 237: propxtype is 7 for d163, unhandled, size 20 +event 238: EOS prop d164 desc record, datasize 0, propxtype 7 +event 238: propxtype is 7 for d164, unhandled, size 20 +event 239: EOS prop d165 desc record, datasize 0, propxtype 7 +event 239: propxtype is 7 for d165, unhandled, size 20 +event 240: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 02 + 11: 00 +event 241: unknown EOS event c19d + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 242: EOS event OLCInfoChanged (size 90) + 0: 56 + 1: 00 + 2: 00 + 3: 00 + 4: ff + 5: 1f + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 38 + 13: 38 + 14: 00 + 15: 38 + 16: 00 + 17: 00 + 18: 00 + 19: 50 + 20: 25 + 21: b0 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 04 + 28: 01 + 29: 05 + 30: 04 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 00 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m6-mark2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m6-mark2.txt new file mode 100644 index 00000000..dd7bc7ae --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m6-mark2.txt @@ -0,0 +1,7915 @@ +Device info: +Manufacturer: Canon.Inc + Model: Canon EOS M6 Mark II + device version: 3-1.0.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x1005 (Get storage info) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9170 (PTP_OC_CANON_EOS_GetObjectInfo64) + 0x1009 (Get object) + 0x9104 (PTP_OC_CANON_EOS_GetObject) + 0x9171 (PTP_OC_CANON_EOS_GetObject64) + 0x100a (Get thumbnail) + 0x100f (Format storage) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x1014 (Get device property description) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9172 (PTP_OC_CANON_EOS_GetPartialObject64) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9174 (PTP_OC_CANON_EOS_GetPartialObjectEX64) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x9173 (PTP_OC_CANON_EOS_GetObjectInfoEx64) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9068 (PTP_OC_CANON_GetWebServiceSpec) + 0x9069 (PTP_OC_CANON_GetWebServiceData) + 0x906a (PTP_OC_CANON_SetWebServiceData) + 0x906b (Unknown PTP_OC) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x911e (PTP_OC_CANON_EOS_SetNullPacketMode) + 0x911f (PTP_OC_CANON_EOS_UpdateFirmware) + 0x9122 (PTP_OC_CANON_EOS_SetWftProfile) + 0x9123 (PTP_OC_CANON_EOS_GetWftProfile) + 0x9124 (PTP_OC_CANON_EOS_SetProfileToWft) + 0x9131 (PTP_OC_CANON_EOS_PopupBuiltinFlash) + 0x9133 (PTP_OC_CANON_EOS_MovieSelectSWOn) + 0x9134 (PTP_OC_CANON_EOS_MovieSelectSWOff) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x913c (PTP_OC_CANON_EOS_SetCTGInfo) + 0x913e (PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x9157 (PTP_OC_CANON_EOS_ClickWB) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x915a (PTP_OC_CANON_EOS_SetLiveAfFrame) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9108 (PTP_OC_CANON_EOS_GetDeviceInfoEx) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x912b (PTP_OC_CANON_EOS_ChangePhotoStudioMode) + 0x9130 (PTP_OC_CANON_EOS_ResetMirrorLockupState) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x915c (PTP_OC_CANON_EOS_SetLvPcFlavoreditMode) + 0x915d (PTP_OC_CANON_EOS_SetLvPcFlavoreditParam) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x902f (Unknown PTP_OC) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x91f0 (PTP_OC_CANON_EOS_TransferCompleteFTP) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x91f1 (PTP_OC_CANON_EOS_CancelTransferFTP) + 0x91e1 (Unknown PTP_OC) + 0x91e3 (Unknown PTP_OC) + 0x91e6 (Unknown PTP_OC) + 0x91e7 (Unknown PTP_OC) + 0x91e8 (PTP_OC_CANON_EOS_NotifyNetworkError) + 0x91e9 (PTP_OC_CANON_EOS_AdapterTransferProgress) + 0x91ec (Unknown PTP_OC) + 0x9144 (PTP_OC_CANON_EOS_GpsLoggingDataMode) + 0x9145 (PTP_OC_CANON_EOS_GetGpsLogCurrentHandle) + 0x91d3 (Unknown PTP_OC) + 0x91d4 (Unknown PTP_OC) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9146 (PTP_OC_CANON_EOS_SetImageRecoveryData) + 0x916b (PTP_OC_CANON_EOS_SetImageRecoveryDataEx) + 0x916c (PTP_OC_CANON_EOS_GetImageRecoveryListEx) + 0x9148 (PTP_OC_CANON_EOS_FormatImageRecoveryData) + 0x9149 (PTP_OC_CANON_EOS_GetPresetLensAdjustParam) + 0x914a (PTP_OC_CANON_EOS_GetRawDispImage) + 0x910f (PTP_OC_CANON_EOS_RemoteRelease) + 0x914b (PTP_OC_CANON_EOS_SaveImageRecoveryData) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x100b (Delete object) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x912d (Unknown PTP_OC) + 0x912e (Unknown PTP_OC) + 0x912f (Unknown PTP_OC) + 0x914c (PTP_OC_CANON_EOS_RequestBLE) + 0x9139 (PTP_OC_CANON_EOS_CreateHandle) + 0x913a (PTP_OC_CANON_EOS_SendPartialObjectEx) + 0x913b (PTP_OC_CANON_EOS_EndSendPartialObjectEx) + 0x91d7 (Unknown PTP_OC) + 0x91d8 (Unknown PTP_OC) + 0x91d9 (Unknown PTP_OC) + 0x91da (Unknown PTP_OC) + 0x91db (Unknown PTP_OC) + 0x91dc (Unknown PTP_OC) + 0x91dd (Unknown PTP_OC) + 0x91de (Unknown PTP_OC) + 0x91d5 (Unknown PTP_OC) + 0x9180 (Unknown PTP_OC) + 0x9181 (Unknown PTP_OC) + 0x9182 (PTP_OC_CANON_EOS_NotifyEstimateNumberofImport) + 0x9183 (PTP_OC_CANON_EOS_NotifyNumberofImported) + 0x9184 (PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer) + 0x9185 (PTP_OC_CANON_EOS_NotifyFinish) + 0x9138 (PTP_OC_CANON_EOS_ReadyToSendMusic) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x914d (PTP_OC_CANON_EOS_DrivePowerZoom) + 0x914f (PTP_OC_CANON_EOS_GetIptcData) + 0x9150 (PTP_OC_CANON_EOS_SetIptcData) + 0x916f (PTP_OC_CANON_EOS_GetReducedObject) + 0x916e (PTP_OC_CANON_EOS_NotifyAutoTransferStatus) + 0x916d (Unknown PTP_OC) + 0x9177 (PTP_OC_CANON_EOS_NotifySaveComplete) + 0x91ae (Unknown PTP_OC) + 0x91af (Unknown PTP_OC) + 0x91b9 (PTP_OC_CANON_EOS_SetFELock) + 0x9077 (Unknown PTP_OC) + 0x9078 (Unknown PTP_OC) + 0x9079 (Unknown PTP_OC) + 0x9178 (Unknown PTP_OC) + 0x9179 (Unknown PTP_OC) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) +Events Supported: + 0xc181 (Unknown Event) + 0x4003 (ObjectRemoved) + 0xc183 (Unknown Event) + 0xc184 (Unknown Event) + 0xc185 (Unknown Event) + 0xc186 (Unknown Event) + 0xc187 (Unknown Event) + 0xc188 (Unknown Event) + 0xc189 (Unknown Event) + 0xc18a (Unknown Event) + 0xc18b (Unknown Event) + 0xc18d (Unknown Event) + 0xc18e (Unknown Event) + 0xc18f (Unknown Event) + 0xc190 (Unknown Event) + 0xc191 (Unknown Event) + 0xc1a0 (Unknown Event) + 0xc1a1 (Unknown Event) + 0x4009 (RequestObjectTransfer) +Device Properties Supported: + 0xd402 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd303 (Unknown DPC code) + 0x5001 (Battery Level) + +0000 45 34 00 00 02 00 16 91-0b 00 00 00 10 00 00 00 E4.............. +0010 89 c1 00 00 16 d1 00 00-11 08 00 00 10 00 00 00 ................ +0020 89 c1 00 00 05 d1 00 00-37 00 00 00 10 00 00 00 ........7....... +0030 89 c1 00 00 38 d1 00 00-37 00 00 00 10 00 00 00 ....8...7....... +0040 89 c1 00 00 02 d1 00 00-80 00 00 00 10 00 00 00 ................ +0050 89 c1 00 00 01 d1 00 00-ff 00 00 00 10 00 00 00 ................ +0060 89 c1 00 00 03 d1 00 00-00 00 00 00 10 00 00 00 ................ +0070 89 c1 00 00 06 d1 00 00-04 00 00 00 10 00 00 00 ................ +0080 89 c1 00 00 08 d1 00 00-01 00 00 00 10 00 00 00 ................ +0090 89 c1 00 00 07 d1 00 00-03 00 00 00 10 00 00 00 ................ +00a0 89 c1 00 00 09 d1 00 00-00 00 00 00 10 00 00 00 ................ +00b0 89 c1 00 00 1b d1 00 00-0f 06 00 00 10 00 00 00 ................ +00c0 89 c1 00 00 04 d1 00 00-00 00 00 00 10 00 00 00 ................ +00d0 89 c1 00 00 0c d1 00 00-00 00 00 00 10 00 00 00 ................ +00e0 89 c1 00 00 0b d1 00 00-00 00 00 00 10 00 00 00 ................ +00f0 89 c1 00 00 0e d1 00 00-00 00 00 00 10 00 00 00 ................ +0100 89 c1 00 00 0d d1 00 00-00 00 00 00 10 00 00 00 ................ +0110 89 c1 00 00 d9 d1 00 00-00 00 00 00 10 00 00 00 ................ +0120 89 c1 00 00 d5 d1 00 00-01 00 00 00 10 00 00 00 ................ +0130 89 c1 00 00 c1 d1 00 00-00 00 00 00 10 00 00 00 ................ +0140 89 c1 00 00 0f d1 00 00-01 00 00 00 10 00 00 00 ................ +0150 89 c1 00 00 14 d1 00 00-3c 00 00 00 10 00 00 00 ........<....... +0160 89 c1 00 00 b7 d1 00 00-01 00 00 00 10 00 00 00 ................ +0170 89 c1 00 00 10 d1 00 00-87 00 00 00 34 00 00 00 ............4... +0180 89 c1 00 00 57 d1 00 00-28 00 00 00 01 00 00 00 ....W...(....... +0190 00 00 00 00 04 00 00 00-00 00 00 00 00 00 00 00 ................ +01a0 00 00 00 00 00 00 00 00-02 00 00 00 04 00 00 00 ................ +01b0 34 00 00 00 89 c1 00 00-58 d1 00 00 28 00 00 00 4.......X...(... +01c0 01 00 00 00 00 00 00 00-03 00 00 00 00 00 00 00 ................ +01d0 00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00 ................ +01e0 04 00 00 00 34 00 00 00-89 c1 00 00 59 d1 00 00 ....4.......Y... +01f0 28 00 00 00 01 00 00 00-00 00 00 00 05 00 00 00 (............... +0200 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0210 02 00 00 00 04 00 00 00-34 00 00 00 89 c1 00 00 ........4....... +0220 5a d1 00 00 28 00 00 00-01 00 00 00 00 00 00 00 Z...(........... +0230 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0240 00 00 00 00 02 00 00 00-02 00 00 00 34 00 00 00 ............4... +0250 89 c1 00 00 5b d1 00 00-28 00 00 00 01 00 00 00 ....[...(....... +0260 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0270 00 00 00 00 00 00 00 00-02 00 00 00 02 00 00 00 ................ +0280 34 00 00 00 89 c1 00 00-5c d1 00 00 28 00 00 00 4.......\...(... +0290 01 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +02a0 00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00 ................ +02b0 04 00 00 00 34 00 00 00-89 c1 00 00 5d d1 00 00 ....4.......]... +02c0 28 00 00 00 01 00 00 00-00 00 00 00 04 00 00 00 (............... +02d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02e0 02 00 00 00 04 00 00 00-34 00 00 00 89 c1 00 00 ........4....... +02f0 5e d1 00 00 28 00 00 00-01 00 00 00 00 00 00 00 ^...(........... +0300 04 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0310 00 00 00 00 01 00 00 00-01 00 00 00 38 00 00 00 ............8... +0320 89 c1 00 00 63 d1 00 00-2c 00 00 00 01 00 00 00 ....c...,....... +0330 87 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +0340 00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00 ................ +0350 04 00 00 00 38 00 00 00-89 c1 00 00 64 d1 00 00 ....8.......d... +0360 2c 00 00 00 01 00 00 00-87 00 00 00 00 00 00 00 ,............... +0370 04 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0380 00 00 00 00 02 00 00 00-04 00 00 00 38 00 00 00 ............8... +0390 89 c1 00 00 65 d1 00 00-2c 00 00 00 01 00 00 00 ....e...,....... +03a0 87 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +03b0 00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00 ................ +03c0 04 00 00 00 10 00 00 00-89 c1 00 00 b1 d1 00 00 ................ +03d0 01 00 00 00 10 00 00 00-89 c1 00 00 bc d1 00 00 ................ +03e0 01 00 00 00 10 00 00 00-89 c1 00 00 b2 d1 00 00 ................ +03f0 00 00 00 00 10 00 00 00-89 c1 00 00 b3 d1 00 00 ................ + +0.356403 gp_port_read (3): Reading 12288 = 0x3000 bytes from port... +0.356974 gp_port_read (3): Read 12288 = 0x3000 bytes from port: (hexdump of 12288 bytes) +0000 00 00 00 00 10 00 00 00-89 c1 00 00 b4 d1 00 00 ................ +0010 00 00 00 00 10 00 00 00-89 c1 00 00 b6 d1 00 00 ................ +0020 50 14 00 00 10 00 00 00-89 c1 00 00 ab d1 00 00 P............... +0030 00 00 00 00 10 00 00 00-89 c1 00 00 b0 d1 00 00 ................ +0040 01 00 00 00 10 00 00 00-89 c1 00 00 0a d1 00 00 ................ +0050 50 14 00 00 10 00 00 00-89 c1 00 00 a8 d1 00 00 P............... +0060 01 00 00 00 10 00 00 00-89 c1 00 00 98 d1 00 00 ................ +0070 ff 00 00 00 10 00 00 00-89 c1 00 00 dd d1 00 00 ................ +0080 3a 10 00 00 14 00 00 00-89 c1 00 00 a1 d1 00 00 :............... +0090 08 00 00 00 00 00 00 00-0d 00 00 00 89 c1 00 00 ................ +00a0 15 d1 00 00 00 f0 01 00-00 89 c1 00 00 a4 d1 00 ................ +00b0 00 e4 01 00 00 30 00 00-00 00 00 00 00 00 00 00 .....0.......... +00c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00d0 00 00 00 00 00 31 00 00-00 00 00 00 00 00 00 00 .....1.......... +00e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00f0 00 00 00 00 00 32 00 00-00 00 00 00 00 00 00 00 .....2.......... +0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0110 00 00 00 00 00 33 00 00-00 00 00 00 00 00 00 00 .....3.......... +0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0130 00 00 00 00 00 34 00 00-00 00 00 00 00 00 00 00 .....4.......... +0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0150 00 00 00 00 00 35 00 00-00 00 00 00 00 00 00 00 .....5.......... +0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0170 00 00 00 00 00 36 00 00-00 00 00 00 00 00 00 00 .....6.......... +0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0190 00 00 00 00 00 37 00 00-00 00 00 00 00 00 00 00 .....7.......... +01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01b0 00 00 00 00 00 38 00 00-00 00 00 00 00 00 00 00 .....8.......... +01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01d0 00 00 00 00 00 39 00 00-00 00 00 00 00 00 00 00 .....9.......... +01e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01f0 00 00 00 00 00 31 30 00-00 00 00 00 00 00 00 00 .....10......... +0200 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0210 00 00 00 00 00 31 31 00-00 00 00 00 00 00 00 00 .....11......... +0220 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0230 00 00 00 00 00 31 32 00-00 00 00 00 00 00 00 00 .....12......... +0240 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0250 00 00 00 00 00 31 33 00-00 00 00 00 00 00 00 00 .....13......... +0260 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0270 00 00 00 00 00 31 34 00-00 00 00 00 00 00 00 00 .....14......... +0280 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0290 00 00 00 00 00 10 00 00-00 89 c1 00 00 b8 d1 00 ................ +02a0 00 03 00 00 00 10 00 00-00 89 c1 00 00 ba d1 00 ................ +02b0 00 02 00 00 00 10 00 00-00 89 c1 00 00 c9 d1 00 ................ +02c0 00 00 00 00 00 10 00 00-00 89 c1 00 00 7a d1 00 .............z.. +02d0 00 01 aa be aa 38 00 00-00 89 c1 00 00 cd d1 00 .....8.......... +02e0 00 2c 00 00 00 00 00 00-00 00 00 00 00 b5 0b 00 .,.............. +02f0 00 0f 00 00 00 00 00 00-00 03 00 00 00 01 00 00 ................ +0300 00 00 00 00 00 00 00 00-00 00 00 00 00 10 00 00 ................ +0310 00 89 c1 00 00 c5 d1 00-00 37 00 00 00 10 00 00 .........7...... +0320 00 89 c1 00 00 d4 d1 00-00 00 00 00 00 10 00 00 ................ +0330 00 89 c1 00 00 c2 d1 00-00 00 00 00 00 10 00 00 ................ +0340 00 89 c1 00 00 bd d1 00-00 00 00 00 00 10 00 00 ................ +0350 00 89 c1 00 00 94 d1 00-00 00 00 00 00 10 00 00 ................ +0360 00 89 c1 00 00 95 d1 00-00 02 00 00 00 10 00 00 ................ +0370 00 89 c1 00 00 96 d1 00-00 2f 00 00 00 10 00 00 ........./...... +0380 00 89 c1 00 00 97 d1 00-00 01 00 00 00 10 00 00 ................ +0390 00 89 c1 00 00 3c d1 00-00 57 57 aa aa 24 00 00 .....<...WW..$.. +03a0 00 89 c1 00 00 3d d1 00-00 18 00 00 00 00 00 00 .....=.......... +03b0 00 00 00 00 00 01 00 00-00 00 00 00 00 00 00 00 ................ +03c0 00 10 00 00 00 89 c1 00-00 79 d1 00 00 01 00 00 .........y...... +03d0 00 10 00 00 00 89 c1 00-00 7b d1 00 00 02 00 00 .........{...... +03e0 00 24 00 00 00 89 c1 00-00 77 d1 00 00 00 00 00 .$.......w...... +03f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0400 00 00 00 00 00 10 00 00-00 89 c1 00 00 76 d1 00 .............v.. +0410 00 00 00 00 00 10 00 00-00 89 c1 00 00 75 d1 00 .............u.. +0420 00 00 00 00 00 10 00 00-00 89 c1 00 00 37 d1 00 .............7.. +0430 00 00 00 00 00 10 00 00-00 89 c1 00 00 78 d1 00 .............x.. +0440 00 00 00 00 00 30 00 00-00 89 c1 00 00 21 d1 00 .....0.......!.. +0450 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +0460 00 03 00 00 00 10 00 00-00 01 00 00 00 01 00 00 ................ +0470 00 03 00 00 00 30 00 00-00 89 c1 00 00 20 d1 00 .....0....... .. +0480 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +0490 00 03 00 00 00 10 00 00-00 01 00 00 00 01 00 00 ................ +04a0 00 03 00 00 00 30 00 00-00 89 c1 00 00 22 d1 00 .....0.......".. +04b0 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +04c0 00 03 00 00 00 10 00 00-00 01 00 00 00 01 00 00 ................ +04d0 00 03 00 00 00 10 00 00-00 89 c1 00 00 33 d1 00 .............3.. +04e0 00 00 00 00 00 10 00 00-00 89 c1 00 00 31 d1 00 .............1.. +04f0 00 00 00 00 00 10 00 00-00 89 c1 00 00 32 d1 00 .............2.. +0500 00 00 00 00 00 10 00 00-00 89 c1 00 00 30 d1 00 .............0.. +0510 00 00 00 00 00 10 00 00-00 89 c1 00 00 1c d1 00 ................ +0520 00 02 00 00 00 10 00 00-00 89 c1 00 00 13 d1 00 ................ +0530 00 80 e8 96 5d 34 00 00-00 89 c1 00 00 a7 d1 00 ....]4.......... +0540 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0550 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0560 00 00 00 00 00 00 00 00-00 10 00 00 00 89 c1 00 ................ +0570 00 12 d1 00 00 00 00 00-00 10 00 00 00 89 c1 00 ................ +0580 00 11 d1 00 00 02 00 00-00 4b 00 00 00 89 c1 00 .........K...... +0590 00 d8 d1 00 00 45 46 2d-53 32 34 6d 6d 20 66 2f .....EF-S24mm f/ +05a0 32 2e 38 20 53 54 4d 00-00 00 00 00 00 00 00 00 2.8 STM......... +05b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +05c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +05d0 00 00 00 00 1c 00 00 00-89 c1 00 00 da d1 00 00 ................ +05e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +05f0 10 00 00 00 89 c1 00 00-7e d1 00 00 01 00 00 00 ........~....... +0600 10 00 00 00 89 c1 00 00-7c d1 00 00 60 cc 96 5d ........|...`..] +0610 10 00 00 00 89 c1 00 00-1f d1 00 00 00 00 90 91 ................ +0620 10 00 00 00 89 c1 00 00-1f d1 00 00 00 00 90 91 ................ +0630 10 00 00 00 89 c1 00 00-1e d1 00 00 01 00 02 00 ................ +0640 10 00 00 00 89 c1 00 00-aa d1 00 00 00 00 00 00 ................ +0650 18 00 00 00 89 c1 00 00-39 d1 00 00 00 00 00 00 ........9....... +0660 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0670 c3 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0680 bf d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0690 1d d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +06a0 c7 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +06b0 c4 d1 00 00 00 00 00 00-40 00 00 00 89 c1 00 00 ........@....... +06c0 cb d1 00 00 34 00 00 00-00 00 00 00 00 00 00 00 ....4........... +06d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +06e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +06f0 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0700 26 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 &............... +0710 dc d1 00 00 01 00 00 00-10 00 00 00 89 c1 00 00 ................ +0720 dc d1 00 00 01 00 00 00-10 00 00 00 89 c1 00 00 ................ +0730 c0 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0740 36 d1 00 00 00 00 00 00-3c 00 00 00 89 c1 00 00 6.......<....... +0750 40 d1 00 00 30 00 00 00-00 00 00 00 00 00 00 00 @...0........... +0760 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0770 00 00 00 00 00 00 00 00-00 00 00 00 46 02 00 04 ............F... +0780 00 04 98 02 3c 00 00 00-89 c1 00 00 41 d1 00 00 ....<.......A... +0790 30 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 0............... +07a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07b0 00 00 00 00 00 00 00 00-46 02 00 04 00 04 98 02 ........F....... +07c0 3c 00 00 00 89 c1 00 00-42 d1 00 00 30 00 00 00 <.......B...0... +07d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07f0 00 00 00 00 46 02 00 04-00 04 98 02 3c 00 00 00 ....F.......<... +0800 89 c1 00 00 43 d1 00 00-30 00 00 00 00 00 00 00 ....C...0....... +0810 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0820 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0830 46 02 00 04 00 04 98 02-3c 00 00 00 89 c1 00 00 F.......<....... +0840 44 d1 00 00 30 00 00 00-00 00 00 00 00 00 00 00 D...0........... +0850 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0860 00 00 00 00 00 00 00 00-00 00 00 00 46 02 00 04 ............F... +0870 00 04 98 02 10 00 00 00-89 c1 00 00 4a d1 00 00 ............J... +0880 00 00 00 00 10 00 00 00-89 c1 00 00 49 d1 00 00 ............I... +0890 00 00 00 00 20 00 00 00-89 c1 00 00 3e d1 00 00 .... .......>... +08a0 14 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +08b0 01 00 00 00 10 00 00 00-89 c1 00 00 9a d1 00 00 ................ +08c0 00 00 00 00 10 00 00 00-89 c1 00 00 3b d1 00 00 ............;... +08d0 00 00 00 00 10 00 00 00-89 c1 00 00 a3 d1 00 00 ................ +08e0 00 00 00 00 10 00 00 00-89 c1 00 00 9f d1 00 00 ................ +08f0 00 00 00 00 10 00 00 00-89 c1 00 00 24 d1 00 00 ............$... +0900 00 00 00 00 1c 00 00 00-89 c1 00 00 67 d1 00 00 ............g... +0910 10 00 00 00 01 00 00 00-e8 03 00 00 e8 03 00 00 ................ +0920 10 00 00 00 89 c1 00 00-c6 d1 00 00 00 00 00 00 ................ +0930 18 00 00 00 89 c1 00 00-2d d1 00 00 0c 00 00 00 ........-....... +0940 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0950 2c d1 00 00 01 00 00 00-14 00 00 00 89 c1 00 00 ,............... +0960 27 d1 00 00 00 00 00 00-00 00 00 00 44 00 00 00 '...........D... +0970 89 c1 00 00 a0 d1 00 00-38 00 00 00 01 00 00 00 ........8....... +0980 01 00 00 00 2c 00 00 00-03 00 00 00 01 01 00 00 ....,........... +0990 01 00 00 00 00 00 00 00-08 01 00 00 01 00 00 00 ................ +09a0 00 00 00 00 12 01 00 00-01 00 00 00 00 00 00 00 ................ +09b0 48 00 00 00 89 c1 00 00-a0 d1 00 00 3c 00 00 00 H...........<... +09c0 01 00 00 00 02 00 00 00-30 00 00 00 03 00 00 00 ........0....... +09d0 04 01 00 00 01 00 00 00-00 00 00 00 05 01 00 00 ................ +09e0 01 00 00 00 00 00 00 00-06 01 00 00 02 00 00 00 ................ +09f0 03 00 00 00 00 00 00 00-5c 00 00 00 89 c1 00 00 ........\....... +0a00 a0 d1 00 00 50 00 00 00-01 00 00 00 03 00 00 00 ....P........... +0a10 44 00 00 00 03 00 00 00-0c 01 00 00 04 00 00 00 D............... +0a20 00 24 00 00 00 f1 ff ff-00 24 00 00 00 f1 ff ff .$.......$...... +0a30 0d 01 00 00 04 00 00 00-00 27 00 00 00 00 00 00 .........'...... +0a40 00 1b 00 00 00 09 00 00-14 01 00 00 01 00 00 00 ................ +0a50 01 00 00 00 c4 01 00 00-89 c1 00 00 a0 d1 00 00 ................ +0a60 b8 01 00 00 01 00 00 00-04 00 00 00 ac 01 00 00 ................ +0a70 01 00 00 00 0c 07 00 00-67 00 00 00 00 00 00 00 ........g....... +0a80 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0a90 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0aa0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0ab0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0ac0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0ad0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0ae0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0af0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0b00 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0b10 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0b20 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0b30 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0b40 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0b50 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0b60 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0b70 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0b80 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0b90 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0ba0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0bb0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0bc0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0bd0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0be0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0bf0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0c00 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0c10 00 00 00 00 00 00 00 00-8c 00 00 00 89 c1 00 00 ................ +0c20 a0 d1 00 00 80 00 00 00-01 00 00 00 05 00 00 00 ................ +0c30 74 00 00 00 09 00 00 00-06 07 00 00 01 00 00 00 t............... +0c40 00 00 00 00 12 07 00 00-01 00 00 00 00 00 00 00 ................ +0c50 13 07 00 00 01 00 00 00-00 00 00 00 14 07 00 00 ................ +0c60 01 00 00 00 00 00 00 00-0e 08 00 00 01 00 00 00 ................ +0c70 00 00 00 00 13 08 00 00-01 00 00 00 00 00 00 00 ................ +0c80 11 07 00 00 01 00 00 00-00 00 00 00 14 08 00 00 ................ +0c90 01 00 00 00 00 00 00 00-15 08 00 00 01 00 00 00 ................ +0ca0 00 00 00 00 2c 00 00 00-89 c1 00 00 a0 d1 00 00 ....,........... +0cb0 20 00 00 00 01 00 00 00-06 00 00 00 14 00 00 00 ............... +0cc0 01 00 00 00 02 01 00 00-01 00 00 00 00 00 00 00 ................ +0cd0 10 00 00 00 89 c1 00 00-99 d1 00 00 12 00 00 00 ................ +0ce0 10 00 00 00 89 c1 00 00-66 d1 00 00 00 00 00 00 ........f....... +0cf0 10 00 00 00 89 c1 00 00-00 00 00 00 00 00 00 00 ................ +0d00 24 00 00 00 89 c1 00 00-08 d2 00 00 18 00 00 00 $............... +0d10 01 00 00 00 00 00 00 00-64 00 00 00 04 00 00 00 ........d....... +0d20 00 00 00 00 10 00 00 00-89 c1 00 00 00 00 00 00 ................ +0d30 01 00 00 00 10 00 00 00-89 c1 00 00 00 00 00 00 ................ +0d40 3c 00 00 00 10 00 00 00-89 c1 00 00 14 d1 00 00 <............... +0d50 3c 00 00 00 10 00 00 00-89 c1 00 00 2b d0 00 00 <...........+... +0d60 02 00 00 00 10 00 00 00-89 c1 00 00 0b d2 00 00 ................ +0d70 00 00 00 00 24 00 00 00-89 c1 00 00 25 d1 00 00 ....$.......%... +0d80 45 4f 53 4d 36 6d 32 5f-43 42 43 43 36 35 00 00 EOSM6m2_CBCC65.. +0d90 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0da0 0e d2 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0db0 26 d1 00 00 00 00 00 00-18 00 00 00 89 c1 00 00 &............... +0dc0 7d d1 00 00 0c 00 00 00-13 00 00 00 3c 00 00 00 }...........<... +0dd0 24 00 00 00 89 c1 00 00-25 d1 00 00 45 4f 53 4d $.......%...EOSM +0de0 36 6d 32 5f 43 42 43 43-36 35 00 00 00 00 00 00 6m2_CBCC65...... +0df0 00 00 00 00 7c 00 00 00-8a c1 00 00 03 d1 00 00 ....|........... +0e00 03 00 00 00 1a 00 00 00-00 00 00 00 48 00 00 00 ............H... +0e10 4b 00 00 00 4d 00 00 00-50 00 00 00 53 00 00 00 K...M...P...S... +0e20 55 00 00 00 58 00 00 00-5b 00 00 00 5d 00 00 00 U...X...[...]... +0e30 60 00 00 00 63 00 00 00-65 00 00 00 68 00 00 00 `...c...e...h... +0e40 6b 00 00 00 6d 00 00 00-70 00 00 00 73 00 00 00 k...m...p...s... +0e50 75 00 00 00 78 00 00 00-7b 00 00 00 7d 00 00 00 u...x...{...}... +0e60 80 00 00 00 83 00 00 00-85 00 00 00 88 00 00 00 ................ +0e70 14 00 00 00 8a c1 00 00-05 d1 00 00 01 00 00 00 ................ +0e80 00 00 00 00 14 00 00 00-8a c1 00 00 1b d1 00 00 ................ +0e90 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0ea0 1b d1 00 00 01 00 00 00-00 00 00 00 2c 00 00 00 ............,... +0eb0 8a c1 00 00 14 d1 00 00-03 00 00 00 06 00 00 00 ................ +0ec0 1e 00 00 00 3c 00 00 00-b4 00 00 00 2c 01 00 00 ....<.......,... +0ed0 58 02 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 X............... +0ee0 14 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0ef0 8a c1 00 00 16 d1 00 00-01 00 00 00 00 00 00 00 ................ +0f00 14 00 00 00 8a c1 00 00-11 d1 00 00 01 00 00 00 ................ +0f10 00 00 00 00 14 00 00 00-8a c1 00 00 12 d1 00 00 ................ +0f20 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0f30 a8 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0f40 8a c1 00 00 ab d1 00 00-01 00 00 00 00 00 00 00 ................ +0f50 14 00 00 00 8a c1 00 00-47 d1 00 00 01 00 00 00 ........G....... +0f60 00 00 00 00 14 00 00 00-8a c1 00 00 ad d1 00 00 ................ +0f70 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0f80 ae d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0f90 8a c1 00 00 aa d1 00 00-01 00 00 00 00 00 00 00 ................ +0fa0 14 00 00 00 8a c1 00 00-1e d1 00 00 01 00 00 00 ................ +0fb0 00 00 00 00 14 00 00 00-8a c1 00 00 1f d1 00 00 ................ +0fc0 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0fd0 af d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0fe0 8a c1 00 00 7f d1 00 00-01 00 00 00 00 00 00 00 ................ +0ff0 14 00 00 00 8a c1 00 00-b7 d1 00 00 01 00 00 00 ................ +1000 00 00 00 00 14 00 00 00-8a c1 00 00 c4 d1 00 00 ................ +1010 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +1020 c2 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +1030 8a c1 00 00 38 d1 00 00-01 00 00 00 00 00 00 00 ....8........... +1040 14 00 00 00 8a c1 00 00-39 d1 00 00 01 00 00 00 ........9....... +1050 00 00 00 00 14 00 00 00-8a c1 00 00 3b d1 00 00 ............;... +1060 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +1070 3c d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 <............... +1080 8a c1 00 00 9d d1 00 00-01 00 00 00 00 00 00 00 ................ +1090 14 00 00 00 8a c1 00 00-9a d1 00 00 01 00 00 00 ................ +10a0 00 00 00 00 14 00 00 00-8a c1 00 00 9c d1 00 00 ................ +10b0 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +10c0 4c d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 L............... +10d0 8a c1 00 00 bd d1 00 00-01 00 00 00 00 00 00 00 ................ +10e0 14 00 00 00 8a c1 00 00-9f d1 00 00 01 00 00 00 ................ +10f0 00 00 00 00 14 00 00 00-8a c1 00 00 24 d1 00 00 ............$... +1100 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +1110 15 d1 00 00 07 00 00 00-00 00 00 00 40 00 00 00 ............@... +1120 8a c1 00 00 10 d1 00 00-03 00 00 00 0b 00 00 00 ................ +1130 87 00 00 00 81 00 00 00-82 00 00 00 83 00 00 00 ................ +1140 88 00 00 00 84 00 00 00-85 00 00 00 86 00 00 00 ................ +1150 21 00 00 00 22 00 00 00-23 00 00 00 14 00 00 00 !..."...#....... +1160 8a c1 00 00 70 d1 00 00-07 00 00 00 00 00 00 00 ....p........... +1170 14 00 00 00 8a c1 00 00-70 d1 00 00 07 00 00 00 ........p....... +1180 00 00 00 00 14 00 00 00-8a c1 00 00 71 d1 00 00 ............q... +1190 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +11a0 71 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 q............... +11b0 8a c1 00 00 72 d1 00 00-07 00 00 00 00 00 00 00 ....r........... +11c0 14 00 00 00 8a c1 00 00-72 d1 00 00 07 00 00 00 ........r....... +11d0 00 00 00 00 14 00 00 00-8a c1 00 00 a1 d1 00 00 ................ +11e0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +11f0 a7 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +1200 8a c1 00 00 a2 d1 00 00-07 00 00 00 00 00 00 00 ................ +1210 14 00 00 00 8a c1 00 00-b2 d1 00 00 07 00 00 00 ................ +1220 00 00 00 00 14 00 00 00-8a c1 00 00 b3 d1 00 00 ................ +1230 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +1240 b5 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +1250 8a c1 00 00 46 d1 00 00-07 00 00 00 00 00 00 00 ....F........... +1260 14 00 00 00 8a c1 00 00-d0 d1 00 00 07 00 00 00 ................ +1270 00 00 00 00 14 00 00 00-8a c1 00 00 d1 d1 00 00 ................ +1280 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +1290 d3 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +12a0 8a c1 00 00 cb d1 00 00-07 00 00 00 00 00 00 00 ................ +12b0 14 00 00 00 8a c1 00 00-4d d1 00 00 07 00 00 00 ........M....... +12c0 00 00 00 00 14 00 00 00-8a c1 00 00 96 d1 00 00 ................ +12d0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +12e0 db d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +12f0 8a c1 00 00 a4 d1 00 00-07 00 00 00 00 00 00 00 ................ +1300 14 00 00 00 8a c1 00 00-bf d1 00 00 07 00 00 00 ................ +1310 00 00 00 00 18 00 00 00-8a c1 00 00 55 d0 00 00 ............U... +1320 03 00 00 00 01 00 00 00-00 00 00 00 1c 00 00 00 ................ +1330 8a c1 00 00 08 d1 00 00-03 00 00 00 02 00 00 00 ................ +1340 00 00 00 00 01 00 00 00-30 00 00 00 8a c1 00 00 ........0....... +1350 06 d1 00 00 03 00 00 00-07 00 00 00 00 00 00 00 ................ +1360 12 00 00 00 04 00 00 00-05 00 00 00 10 00 00 00 ................ +1370 11 00 00 00 07 00 00 00-24 00 00 00 8a c1 00 00 ........$....... +1380 07 d1 00 00 03 00 00 00-04 00 00 00 03 00 00 00 ................ +1390 04 00 00 00 01 00 00 00-05 00 00 00 3c 00 00 00 ............<... +13a0 8a c1 00 00 09 d1 00 00-03 00 00 00 0a 00 00 00 ................ +13b0 00 00 00 00 17 00 00 00-01 00 00 00 08 00 00 00 ................ +13c0 02 00 00 00 03 00 00 00-04 00 00 00 05 00 00 00 ................ +13d0 06 00 00 00 09 00 00 00-44 01 00 00 8a c1 00 00 ........D....... +13e0 0a d1 00 00 03 00 00 00-4c 00 00 00 c4 09 00 00 ........L....... +13f0 28 0a 00 00 8c 0a 00 00-f0 0a 00 00 54 0b 00 00 (...........T... +1400 b8 0b 00 00 1c 0c 00 00-80 0c 00 00 e4 0c 00 00 ................ +1410 48 0d 00 00 ac 0d 00 00-10 0e 00 00 74 0e 00 00 H...........t... +1420 d8 0e 00 00 3c 0f 00 00-a0 0f 00 00 04 10 00 00 ....<........... +1430 68 10 00 00 cc 10 00 00-30 11 00 00 94 11 00 00 h.......0....... +1440 f8 11 00 00 5c 12 00 00-c0 12 00 00 24 13 00 00 ....\.......$... +1450 88 13 00 00 ec 13 00 00-50 14 00 00 b4 14 00 00 ........P....... +1460 18 15 00 00 7c 15 00 00-e0 15 00 00 44 16 00 00 ....|.......D... +1470 a8 16 00 00 0c 17 00 00-70 17 00 00 d4 17 00 00 ........p....... +1480 38 18 00 00 9c 18 00 00-00 19 00 00 64 19 00 00 8...........d... +1490 c8 19 00 00 2c 1a 00 00-90 1a 00 00 f4 1a 00 00 ....,........... +14a0 58 1b 00 00 bc 1b 00 00-20 1c 00 00 84 1c 00 00 X....... ....... +14b0 e8 1c 00 00 4c 1d 00 00-b0 1d 00 00 14 1e 00 00 ....L........... +14c0 78 1e 00 00 dc 1e 00 00-40 1f 00 00 a4 1f 00 00 x.......@....... +14d0 08 20 00 00 6c 20 00 00-d0 20 00 00 34 21 00 00 . ..l ... ..4!.. +14e0 98 21 00 00 fc 21 00 00-60 22 00 00 c4 22 00 00 .!...!..`"...".. +14f0 28 23 00 00 8c 23 00 00-f0 23 00 00 54 24 00 00 (#...#...#..T$.. +1500 b8 24 00 00 1c 25 00 00-80 25 00 00 e4 25 00 00 .$...%...%...%.. +1510 48 26 00 00 ac 26 00 00-10 27 00 00 60 00 00 00 H&...&...'..`... +1520 8a c1 00 00 0b d1 00 00-03 00 00 00 13 00 00 00 ................ +1530 f7 ff ff ff f8 ff ff ff-f9 ff ff ff fa ff ff ff ................ +1540 fb ff ff ff fc ff ff ff-fd ff ff ff fe ff ff ff ................ +1550 ff ff ff ff 00 00 00 00-01 00 00 00 02 00 00 00 ................ +1560 03 00 00 00 04 00 00 00-05 00 00 00 06 00 00 00 ................ +1570 07 00 00 00 08 00 00 00-09 00 00 00 60 00 00 00 ............`... +1580 8a c1 00 00 0c d1 00 00-03 00 00 00 13 00 00 00 ................ +1590 f7 ff ff ff f8 ff ff ff-f9 ff ff ff fa ff ff ff ................ +15a0 fb ff ff ff fc ff ff ff-fd ff ff ff fe ff ff ff ................ +15b0 ff ff ff ff 00 00 00 00-01 00 00 00 02 00 00 00 ................ +15c0 03 00 00 00 04 00 00 00-05 00 00 00 06 00 00 00 ................ +15d0 07 00 00 00 08 00 00 00-09 00 00 00 24 00 00 00 ............$... +15e0 8a c1 00 00 0d d1 00 00-03 00 00 00 04 00 00 00 ................ +15f0 00 00 00 00 01 00 00 00-02 00 00 00 03 00 00 00 ................ +1600 24 00 00 00 8a c1 00 00-0e d1 00 00 03 00 00 00 $............... +1610 04 00 00 00 00 00 00 00-01 00 00 00 02 00 00 00 ................ +1620 03 00 00 00 1c 00 00 00-8a c1 00 00 0f d1 00 00 ................ +1630 03 00 00 00 02 00 00 00-01 00 00 00 02 00 00 00 ................ +1640 64 00 00 00 8a c1 00 00-01 d1 00 00 03 00 00 00 d............... +1650 14 00 00 00 ff 00 00 00-20 00 00 00 23 00 00 00 ........ ...#... +1660 25 00 00 00 28 00 00 00-2b 00 00 00 2d 00 00 00 %...(...+...-... +1670 30 00 00 00 33 00 00 00-35 00 00 00 38 00 00 00 0...3...5...8... +1680 3b 00 00 00 3d 00 00 00-40 00 00 00 43 00 00 00 ;...=...@...C... +1690 45 00 00 00 48 00 00 00-4b 00 00 00 4d 00 00 00 E...H...K...M... +16a0 50 00 00 00 e8 00 00 00-8a c1 00 00 02 d1 00 00 P............... +16b0 03 00 00 00 35 00 00 00-04 00 00 00 10 00 00 00 ....5........... +16c0 13 00 00 00 15 00 00 00-18 00 00 00 1b 00 00 00 ................ +16d0 1d 00 00 00 20 00 00 00-23 00 00 00 25 00 00 00 .... ...#...%... +16e0 28 00 00 00 2b 00 00 00-2d 00 00 00 30 00 00 00 (...+...-...0... +16f0 33 00 00 00 35 00 00 00-38 00 00 00 3b 00 00 00 3...5...8...;... +1700 3d 00 00 00 40 00 00 00-43 00 00 00 45 00 00 00 =...@...C...E... +1710 48 00 00 00 4b 00 00 00-4d 00 00 00 50 00 00 00 H...K...M...P... +1720 53 00 00 00 55 00 00 00-58 00 00 00 5b 00 00 00 S...U...X...[... +1730 5d 00 00 00 60 00 00 00-63 00 00 00 65 00 00 00 ]...`...c...e... +1740 68 00 00 00 6b 00 00 00-6d 00 00 00 70 00 00 00 h...k...m...p... +1750 73 00 00 00 75 00 00 00-78 00 00 00 7b 00 00 00 s...u...x...{... +1760 7d 00 00 00 80 00 00 00-83 00 00 00 85 00 00 00 }............... +1770 88 00 00 00 8b 00 00 00-8d 00 00 00 90 00 00 00 ................ +1780 93 00 00 00 95 00 00 00-98 00 00 00 60 00 00 00 ............`... +1790 8a c1 00 00 04 d1 00 00-03 00 00 00 13 00 00 00 ................ +17a0 e8 00 00 00 eb 00 00 00-ed 00 00 00 f0 00 00 00 ................ +17b0 f3 00 00 00 f5 00 00 00-f8 00 00 00 fb 00 00 00 ................ +17c0 fd 00 00 00 00 00 00 00-03 00 00 00 05 00 00 00 ................ +17d0 08 00 00 00 0b 00 00 00-0d 00 00 00 10 00 00 00 ................ +17e0 13 00 00 00 15 00 00 00-18 00 00 00 a0 01 00 00 ................ +17f0 8a c1 00 00 7d d1 00 00-03 00 00 00 21 00 00 00 ....}.......!... +1800 0c 00 00 00 21 00 00 00-0c 03 00 00 0c 00 00 00 ....!........... +1810 01 00 00 00 fd 02 00 00-0c 00 00 00 02 00 00 00 ................ +1820 d0 02 00 00 0c 00 00 00-03 00 00 00 94 02 00 00 ................ +1830 0c 00 00 00 04 00 00 00-58 02 00 00 0c 00 00 00 ........X....... +1840 05 00 00 00 3a 02 00 00-0c 00 00 00 06 00 00 00 ....:........... +1850 1c 02 00 00 0c 00 00 00-07 00 00 00 e0 01 00 00 ................ +1860 0c 00 00 00 08 00 00 00-a4 01 00 00 0c 00 00 00 ................ +1870 09 00 00 00 86 01 00 00-0c 00 00 00 0a 00 00 00 ................ +1880 68 01 00 00 0c 00 00 00-0b 00 00 00 59 01 00 00 h...........Y... +1890 0c 00 00 00 0c 00 00 00-4a 01 00 00 0c 00 00 00 ........J....... +18a0 0d 00 00 00 2c 01 00 00-0c 00 00 00 0e 00 00 00 ....,........... +18b0 0e 01 00 00 0c 00 00 00-0f 00 00 00 f0 00 00 00 ................ +18c0 0c 00 00 00 10 00 00 00-d2 00 00 00 0c 00 00 00 ................ +18d0 11 00 00 00 b4 00 00 00-0c 00 00 00 12 00 00 00 ................ +18e0 78 00 00 00 0c 00 00 00-13 00 00 00 3c 00 00 00 x...........<... +18f0 0c 00 00 00 14 00 00 00-00 00 00 00 0c 00 00 00 ................ +1900 15 00 00 00 c4 ff ff ff-0c 00 00 00 16 00 00 00 ................ +1910 88 ff ff ff 0c 00 00 00-17 00 00 00 4c ff ff ff ............L... +1920 0c 00 00 00 18 00 00 00-2e ff ff ff 0c 00 00 00 ................ +1930 1a 00 00 00 10 ff ff ff-0c 00 00 00 1b 00 00 00 ................ +1940 d4 fe ff ff 0c 00 00 00-1c 00 00 00 98 fe ff ff ................ +1950 0c 00 00 00 1d 00 00 00-5c fe ff ff 0c 00 00 00 ........\....... +1960 1e 00 00 00 20 fe ff ff-0c 00 00 00 1f 00 00 00 .... ........... +1970 e4 fd ff ff 0c 00 00 00-20 00 00 00 a8 fd ff ff ........ ....... +1980 0c 00 00 00 ff ff ff ff-00 00 00 00 1c 00 00 00 ................ +1990 8a c1 00 00 7e d1 00 00-03 00 00 00 02 00 00 00 ....~........... +19a0 00 00 00 00 01 00 00 00-14 00 00 00 8a c1 00 00 ................ +19b0 7c d1 00 00 07 00 00 00-00 00 00 00 c0 02 00 00 |............... +19c0 8a c1 00 00 21 d1 00 00-03 00 00 00 17 00 00 00 ....!........... +19d0 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +19e0 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +19f0 00 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +1a00 01 00 00 00 01 00 00 00-03 00 00 00 01 00 00 00 ................ +1a10 10 00 00 00 01 00 00 00-01 00 00 00 02 00 00 00 ................ +1a20 01 00 00 00 10 00 00 00-01 00 00 00 0e 00 00 00 ................ +1a30 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1a40 0e 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +1a50 01 00 00 00 0f 00 00 00-03 00 00 00 02 00 00 00 ................ +1a60 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1a70 10 00 00 00 01 00 00 00-00 00 00 00 03 00 00 00 ................ +1a80 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1a90 04 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +1aa0 02 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1ab0 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1ac0 01 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1ad0 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +1ae0 01 00 00 00 01 00 00 00-02 00 00 00 02 00 00 00 ................ +1af0 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1b00 10 00 00 00 01 00 00 00-0e 00 00 00 03 00 00 00 ................ +1b10 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1b20 04 00 00 00 10 00 00 00-01 00 00 00 0e 00 00 00 ................ +1b30 02 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1b40 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1b50 0f 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1b60 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +1b70 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1b80 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +1b90 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1ba0 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1bb0 03 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1bc0 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1bd0 00 00 00 00 03 00 00 00-10 00 00 00 01 00 00 00 ................ +1be0 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +1bf0 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +1c00 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +1c10 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +1c20 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1c30 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1c40 03 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1c50 03 00 00 00 01 00 00 00-10 00 00 00 06 00 00 00 ................ +1c60 00 00 00 00 04 00 00 00-01 00 00 00 10 00 00 00 ................ +1c70 06 00 00 00 00 00 00 00-03 00 00 00 c0 02 00 00 ................ +1c80 8a c1 00 00 22 d1 00 00-03 00 00 00 17 00 00 00 ...."........... +1c90 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +1ca0 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1cb0 00 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +1cc0 01 00 00 00 01 00 00 00-03 00 00 00 01 00 00 00 ................ +1cd0 10 00 00 00 01 00 00 00-01 00 00 00 02 00 00 00 ................ +1ce0 01 00 00 00 10 00 00 00-01 00 00 00 0e 00 00 00 ................ +1cf0 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1d00 0e 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +1d10 01 00 00 00 0f 00 00 00-03 00 00 00 02 00 00 00 ................ +1d20 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1d30 10 00 00 00 01 00 00 00-00 00 00 00 03 00 00 00 ................ +1d40 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1d50 04 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +1d60 02 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1d70 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1d80 01 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1d90 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +1da0 01 00 00 00 01 00 00 00-02 00 00 00 02 00 00 00 ................ +1db0 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1dc0 10 00 00 00 01 00 00 00-0e 00 00 00 03 00 00 00 ................ +1dd0 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1de0 04 00 00 00 10 00 00 00-01 00 00 00 0e 00 00 00 ................ +1df0 02 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1e00 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1e10 0f 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1e20 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +1e30 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1e40 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +1e50 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1e60 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1e70 03 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1e80 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1e90 00 00 00 00 03 00 00 00-10 00 00 00 01 00 00 00 ................ +1ea0 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +1eb0 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +1ec0 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +1ed0 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +1ee0 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1ef0 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1f00 03 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1f10 03 00 00 00 01 00 00 00-10 00 00 00 06 00 00 00 ................ +1f20 00 00 00 00 04 00 00 00-01 00 00 00 10 00 00 00 ................ +1f30 06 00 00 00 00 00 00 00-03 00 00 00 c0 02 00 00 ................ +1f40 8a c1 00 00 20 d1 00 00-03 00 00 00 17 00 00 00 .... ........... +1f50 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +1f60 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1f70 00 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +1f80 01 00 00 00 01 00 00 00-03 00 00 00 01 00 00 00 ................ +1f90 10 00 00 00 01 00 00 00-01 00 00 00 02 00 00 00 ................ +1fa0 01 00 00 00 10 00 00 00-01 00 00 00 0e 00 00 00 ................ +1fb0 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1fc0 0e 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +1fd0 01 00 00 00 0f 00 00 00-03 00 00 00 02 00 00 00 ................ +1fe0 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1ff0 10 00 00 00 01 00 00 00-00 00 00 00 03 00 00 00 ................ +2000 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +2010 04 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +2020 02 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +2030 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +2040 01 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +2050 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +2060 01 00 00 00 01 00 00 00-02 00 00 00 02 00 00 00 ................ +2070 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +2080 10 00 00 00 01 00 00 00-0e 00 00 00 03 00 00 00 ................ +2090 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +20a0 04 00 00 00 10 00 00 00-01 00 00 00 0e 00 00 00 ................ +20b0 02 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +20c0 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +20d0 0f 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +20e0 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +20f0 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +2100 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +2110 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +2120 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +2130 03 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +2140 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +2150 00 00 00 00 03 00 00 00-10 00 00 00 01 00 00 00 ................ +2160 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +2170 06 00 00 00 00 00 00 00-03 00 00 00 10 00 00 00 ................ +2180 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +2190 10 00 00 00 06 00 00 00-00 00 00 00 03 00 00 00 ................ +21a0 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +21b0 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +21c0 03 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +21d0 03 00 00 00 01 00 00 00-10 00 00 00 06 00 00 00 ................ +21e0 00 00 00 00 04 00 00 00-01 00 00 00 10 00 00 00 ................ +21f0 06 00 00 00 00 00 00 00-03 00 00 00 20 00 00 00 ............ ... +2200 8a c1 00 00 1c d1 00 00-03 00 00 00 03 00 00 00 ................ +2210 02 00 00 00 06 00 00 00-04 00 00 00 44 00 00 00 ............D... +2220 8a c1 00 00 b0 d1 00 00-03 00 00 00 0c 00 00 00 ................ +2230 00 00 00 00 01 00 00 00-02 00 00 00 03 00 00 00 ................ +2240 04 00 00 00 05 00 00 00-06 00 00 00 07 00 00 00 ................ +2250 08 00 00 00 09 00 00 00-0a 00 00 00 0b 00 00 00 ................ +2260 14 00 00 00 8a c1 00 00-b1 d1 00 00 03 00 00 00 ................ +2270 00 00 00 00 44 01 00 00-8a c1 00 00 b6 d1 00 00 ....D........... +2280 03 00 00 00 4c 00 00 00-c4 09 00 00 28 0a 00 00 ....L.......(... +2290 8c 0a 00 00 f0 0a 00 00-54 0b 00 00 b8 0b 00 00 ........T....... +22a0 1c 0c 00 00 80 0c 00 00-e4 0c 00 00 48 0d 00 00 ............H... +22b0 ac 0d 00 00 10 0e 00 00-74 0e 00 00 d8 0e 00 00 ........t....... +22c0 3c 0f 00 00 a0 0f 00 00-04 10 00 00 68 10 00 00 <...........h... +22d0 cc 10 00 00 30 11 00 00-94 11 00 00 f8 11 00 00 ....0........... +22e0 5c 12 00 00 c0 12 00 00-24 13 00 00 88 13 00 00 \.......$....... +22f0 ec 13 00 00 50 14 00 00-b4 14 00 00 18 15 00 00 ....P........... +2300 7c 15 00 00 e0 15 00 00-44 16 00 00 a8 16 00 00 |.......D....... +2310 0c 17 00 00 70 17 00 00-d4 17 00 00 38 18 00 00 ....p.......8... +2320 9c 18 00 00 00 19 00 00-64 19 00 00 c8 19 00 00 ........d....... +2330 2c 1a 00 00 90 1a 00 00-f4 1a 00 00 58 1b 00 00 ,...........X... +2340 bc 1b 00 00 20 1c 00 00-84 1c 00 00 e8 1c 00 00 .... ........... +2350 4c 1d 00 00 b0 1d 00 00-14 1e 00 00 78 1e 00 00 L...........x... +2360 dc 1e 00 00 40 1f 00 00-a4 1f 00 00 08 20 00 00 ....@........ .. +2370 6c 20 00 00 d0 20 00 00-34 21 00 00 98 21 00 00 l ... ..4!...!.. +2380 fc 21 00 00 60 22 00 00-c4 22 00 00 28 23 00 00 .!..`"..."..(#.. +2390 8c 23 00 00 f0 23 00 00-54 24 00 00 b8 24 00 00 .#...#..T$...$.. +23a0 1c 25 00 00 80 25 00 00-e4 25 00 00 48 26 00 00 .%...%...%..H&.. +23b0 ac 26 00 00 10 27 00 00-28 00 00 00 8a c1 00 00 .&...'..(....... +23c0 a9 d1 00 00 03 00 00 00-05 00 00 00 00 00 00 00 ................ +23d0 02 00 00 00 04 00 00 00-08 00 00 00 ff 00 00 00 ................ +23e0 40 00 00 00 8a c1 00 00-b4 d1 00 00 03 00 00 00 @............... +23f0 0b 00 00 00 00 00 00 00-17 00 00 00 01 00 00 00 ................ +2400 08 00 00 00 02 00 00 00-03 00 00 00 04 00 00 00 ................ +2410 05 00 00 00 06 00 00 00-09 00 00 00 00 80 00 00 ................ +2420 3c 00 00 00 8a c1 00 00-d9 d1 00 00 03 00 00 00 <............... +2430 0a 00 00 00 00 00 00 00-03 00 00 00 05 00 00 00 ................ +2440 08 00 00 00 0b 00 00 00-0d 00 00 00 10 00 00 00 ................ +2450 13 00 00 00 15 00 00 00-18 00 00 00 24 00 00 00 ............$... +2460 8a c1 00 00 ba d1 00 00-03 00 00 00 04 00 00 00 ................ +2470 02 00 00 00 0a 00 00 00-01 00 00 00 04 00 00 00 ................ +2480 1c 00 00 00 8a c1 00 00-2c d1 00 00 03 00 00 00 ........,....... +2490 02 00 00 00 00 00 00 00-01 00 00 00 14 00 00 00 ................ +24a0 8a c1 00 00 cd d1 00 00-03 00 00 00 00 00 00 00 ................ +24b0 20 00 00 00 8a c1 00 00-bc d1 00 00 03 00 00 00 ............... +24c0 03 00 00 00 01 00 00 00-00 00 00 00 03 00 00 00 ................ +24d0 14 00 00 00 8a c1 00 00-b8 d1 00 00 03 00 00 00 ................ +24e0 00 00 00 00 1c 00 00 00-8a c1 00 00 dc d1 00 00 ................ +24f0 03 00 00 00 02 00 00 00-00 00 00 00 01 00 00 00 ................ +2500 4c 00 00 00 8a c1 00 00-26 d1 00 00 03 00 00 00 L.......&....... +2510 0d 00 00 00 f0 00 00 00-f3 00 00 00 f5 00 00 00 ................ +2520 f8 00 00 00 fb 00 00 00-fd 00 00 00 00 00 00 00 ................ +2530 03 00 00 00 05 00 00 00-08 00 00 00 0b 00 00 00 ................ +2540 0d 00 00 00 10 00 00 00-d8 0e 00 00 24 00 00 00 ............$... +2550 8a c1 00 00 c1 d1 00 00-03 00 00 00 04 00 00 00 ................ +2560 03 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +2570 14 00 00 00 8a c1 00 00-c5 d1 00 00 03 00 00 00 ................ +2580 00 00 00 00 24 00 00 00-8a c1 00 00 94 d1 00 00 ....$........... +2590 03 00 00 00 04 00 00 00-00 00 00 00 02 00 00 00 ................ +25a0 07 00 00 00 01 00 00 00-14 00 00 00 8a c1 00 00 ................ +25b0 95 d1 00 00 03 00 00 00-00 00 00 00 14 00 00 00 ................ +25c0 8a c1 00 00 97 d1 00 00-03 00 00 00 00 00 00 00 ................ +25d0 14 00 00 00 8a c1 00 00-3d d1 00 00 07 00 00 00 ........=....... +25e0 00 00 00 00 24 00 00 00-8a c1 00 00 78 d1 00 00 ....$.......x... +25f0 03 00 00 00 04 00 00 00-03 00 00 00 01 00 00 00 ................ +2600 00 00 00 00 02 00 00 00-14 00 00 00 8a c1 00 00 ................ +2610 79 d1 00 00 03 00 00 00-00 00 00 00 1c 00 00 00 y............... +2620 8a c1 00 00 7a d1 00 00-03 00 00 00 02 00 00 00 ....z........... +2630 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +2640 7b d1 00 00 03 00 00 00-00 00 00 00 1c 00 00 00 {............... +2650 8a c1 00 00 c9 d1 00 00-03 00 00 00 02 00 00 00 ................ +2660 01 00 00 00 00 00 00 00-18 00 00 00 8a c1 00 00 ................ +2670 75 d1 00 00 03 00 00 00-01 00 00 00 00 00 00 00 u............... +2680 18 00 00 00 8a c1 00 00-4b d1 00 00 03 00 00 00 ........K....... +2690 01 00 00 00 06 00 00 00-14 00 00 00 8a c1 00 00 ................ +26a0 3e d1 00 00 01 00 00 00-00 00 00 00 20 00 00 00 >........... ... +26b0 8a c1 00 00 c6 d1 00 00-03 00 00 00 03 00 00 00 ................ +26c0 00 00 00 00 01 00 00 00-02 00 00 00 14 00 00 00 ................ +26d0 8a c1 00 00 57 d1 00 00-07 00 00 00 00 00 00 00 ....W........... +26e0 14 00 00 00 8a c1 00 00-58 d1 00 00 07 00 00 00 ........X....... +26f0 00 00 00 00 14 00 00 00-8a c1 00 00 59 d1 00 00 ............Y... +2700 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +2710 5a d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 Z............... +2720 8a c1 00 00 5b d1 00 00-07 00 00 00 00 00 00 00 ....[........... +2730 14 00 00 00 8a c1 00 00-5c d1 00 00 07 00 00 00 ........\....... +2740 00 00 00 00 14 00 00 00-8a c1 00 00 5d d1 00 00 ............]... +2750 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +2760 5e d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ^............... +2770 8a c1 00 00 63 d1 00 00-07 00 00 00 00 00 00 00 ....c........... +2780 14 00 00 00 8a c1 00 00-64 d1 00 00 07 00 00 00 ........d....... +2790 00 00 00 00 14 00 00 00-8a c1 00 00 65 d1 00 00 ............e... +27a0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +27b0 49 d1 00 00 03 00 00 00-00 00 00 00 64 00 00 00 I...........d... +27c0 8a c1 00 00 01 d1 00 00-03 00 00 00 14 00 00 00 ................ +27d0 ff 00 00 00 20 00 00 00-23 00 00 00 25 00 00 00 .... ...#...%... +27e0 28 00 00 00 2b 00 00 00-2d 00 00 00 30 00 00 00 (...+...-...0... +27f0 33 00 00 00 35 00 00 00-38 00 00 00 3b 00 00 00 3...5...8...;... +2800 3d 00 00 00 40 00 00 00-43 00 00 00 45 00 00 00 =...@...C...E... +2810 48 00 00 00 4b 00 00 00-4d 00 00 00 50 00 00 00 H...K...M...P... +2820 e8 00 00 00 8a c1 00 00-02 d1 00 00 03 00 00 00 ................ +2830 35 00 00 00 04 00 00 00-10 00 00 00 13 00 00 00 5............... +2840 15 00 00 00 18 00 00 00-1b 00 00 00 1d 00 00 00 ................ +2850 20 00 00 00 23 00 00 00-25 00 00 00 28 00 00 00 ...#...%...(... +2860 2b 00 00 00 2d 00 00 00-30 00 00 00 33 00 00 00 +...-...0...3... +2870 35 00 00 00 38 00 00 00-3b 00 00 00 3d 00 00 00 5...8...;...=... +2880 40 00 00 00 43 00 00 00-45 00 00 00 48 00 00 00 @...C...E...H... +2890 4b 00 00 00 4d 00 00 00-50 00 00 00 53 00 00 00 K...M...P...S... +28a0 55 00 00 00 58 00 00 00-5b 00 00 00 5d 00 00 00 U...X...[...]... +28b0 60 00 00 00 63 00 00 00-65 00 00 00 68 00 00 00 `...c...e...h... +28c0 6b 00 00 00 6d 00 00 00-70 00 00 00 73 00 00 00 k...m...p...s... +28d0 75 00 00 00 78 00 00 00-7b 00 00 00 7d 00 00 00 u...x...{...}... +28e0 80 00 00 00 83 00 00 00-85 00 00 00 88 00 00 00 ................ +28f0 8b 00 00 00 8d 00 00 00-90 00 00 00 93 00 00 00 ................ +2900 95 00 00 00 98 00 00 00-3c 00 00 00 8a c1 00 00 ........<....... +2910 d9 d1 00 00 03 00 00 00-0a 00 00 00 00 00 00 00 ................ +2920 03 00 00 00 05 00 00 00-08 00 00 00 0b 00 00 00 ................ +2930 0d 00 00 00 10 00 00 00-13 00 00 00 15 00 00 00 ................ +2940 18 00 00 00 60 00 00 00-8a c1 00 00 04 d1 00 00 ....`........... +2950 03 00 00 00 13 00 00 00-e8 00 00 00 eb 00 00 00 ................ +2960 ed 00 00 00 f0 00 00 00-f3 00 00 00 f5 00 00 00 ................ +2970 f8 00 00 00 fb 00 00 00-fd 00 00 00 00 00 00 00 ................ +2980 03 00 00 00 05 00 00 00-08 00 00 00 0b 00 00 00 ................ +2990 0d 00 00 00 10 00 00 00-13 00 00 00 15 00 00 00 ................ +29a0 18 00 00 00 7c 00 00 00-8a c1 00 00 03 d1 00 00 ....|........... +29b0 03 00 00 00 1a 00 00 00-00 00 00 00 48 00 00 00 ............H... +29c0 4b 00 00 00 4d 00 00 00-50 00 00 00 53 00 00 00 K...M...P...S... +29d0 55 00 00 00 58 00 00 00-5b 00 00 00 5d 00 00 00 U...X...[...]... +29e0 60 00 00 00 63 00 00 00-65 00 00 00 68 00 00 00 `...c...e...h... +29f0 6b 00 00 00 6d 00 00 00-70 00 00 00 73 00 00 00 k...m...p...s... +2a00 75 00 00 00 78 00 00 00-7b 00 00 00 7d 00 00 00 u...x...{...}... +2a10 80 00 00 00 83 00 00 00-85 00 00 00 88 00 00 00 ................ +2a20 14 00 00 00 8a c1 00 00-d5 d1 00 00 03 00 00 00 ................ +2a30 00 00 00 00 64 00 00 00-8a c1 00 00 01 d1 00 00 ....d........... +2a40 03 00 00 00 14 00 00 00-ff 00 00 00 20 00 00 00 ............ ... +2a50 23 00 00 00 25 00 00 00-28 00 00 00 2b 00 00 00 #...%...(...+... +2a60 2d 00 00 00 30 00 00 00-33 00 00 00 35 00 00 00 -...0...3...5... +2a70 38 00 00 00 3b 00 00 00-3d 00 00 00 40 00 00 00 8...;...=...@... +2a80 43 00 00 00 45 00 00 00-48 00 00 00 4b 00 00 00 C...E...H...K... +2a90 4d 00 00 00 50 00 00 00-e8 00 00 00 8a c1 00 00 M...P........... +2aa0 02 d1 00 00 03 00 00 00-35 00 00 00 04 00 00 00 ........5....... +2ab0 10 00 00 00 13 00 00 00-15 00 00 00 18 00 00 00 ................ +2ac0 1b 00 00 00 1d 00 00 00-20 00 00 00 23 00 00 00 ........ ...#... +2ad0 25 00 00 00 28 00 00 00-2b 00 00 00 2d 00 00 00 %...(...+...-... +2ae0 30 00 00 00 33 00 00 00-35 00 00 00 38 00 00 00 0...3...5...8... +2af0 3b 00 00 00 3d 00 00 00-40 00 00 00 43 00 00 00 ;...=...@...C... +2b00 45 00 00 00 48 00 00 00-4b 00 00 00 4d 00 00 00 E...H...K...M... +2b10 50 00 00 00 53 00 00 00-55 00 00 00 58 00 00 00 P...S...U...X... +2b20 5b 00 00 00 5d 00 00 00-60 00 00 00 63 00 00 00 [...]...`...c... +2b30 65 00 00 00 68 00 00 00-6b 00 00 00 6d 00 00 00 e...h...k...m... +2b40 70 00 00 00 73 00 00 00-75 00 00 00 78 00 00 00 p...s...u...x... +2b50 7b 00 00 00 7d 00 00 00-80 00 00 00 83 00 00 00 {...}........... +2b60 85 00 00 00 88 00 00 00-8b 00 00 00 8d 00 00 00 ................ +2b70 90 00 00 00 93 00 00 00-95 00 00 00 98 00 00 00 ................ +2b80 3c 00 00 00 8a c1 00 00-d9 d1 00 00 03 00 00 00 <............... +2b90 0a 00 00 00 00 00 00 00-03 00 00 00 05 00 00 00 ................ +2ba0 08 00 00 00 0b 00 00 00-0d 00 00 00 10 00 00 00 ................ +2bb0 13 00 00 00 15 00 00 00-18 00 00 00 60 00 00 00 ............`... +2bc0 8a c1 00 00 04 d1 00 00-03 00 00 00 13 00 00 00 ................ +2bd0 e8 00 00 00 eb 00 00 00-ed 00 00 00 f0 00 00 00 ................ +2be0 f3 00 00 00 f5 00 00 00-f8 00 00 00 fb 00 00 00 ................ +2bf0 fd 00 00 00 00 00 00 00-03 00 00 00 05 00 00 00 ................ +2c00 08 00 00 00 0b 00 00 00-0d 00 00 00 10 00 00 00 ................ +2c10 13 00 00 00 15 00 00 00-18 00 00 00 7c 00 00 00 ............|... +2c20 8a c1 00 00 03 d1 00 00-03 00 00 00 1a 00 00 00 ................ +2c30 00 00 00 00 48 00 00 00-4b 00 00 00 4d 00 00 00 ....H...K...M... +2c40 50 00 00 00 53 00 00 00-55 00 00 00 58 00 00 00 P...S...U...X... +2c50 5b 00 00 00 5d 00 00 00-60 00 00 00 63 00 00 00 [...]...`...c... +2c60 65 00 00 00 68 00 00 00-6b 00 00 00 6d 00 00 00 e...h...k...m... +2c70 70 00 00 00 73 00 00 00-75 00 00 00 78 00 00 00 p...s...u...x... +2c80 7b 00 00 00 7d 00 00 00-80 00 00 00 83 00 00 00 {...}........... +2c90 85 00 00 00 88 00 00 00-14 00 00 00 8a c1 00 00 ................ +2ca0 d5 d1 00 00 03 00 00 00-00 00 00 00 14 00 00 00 ................ +2cb0 8a c1 00 00 a0 d1 00 00-07 00 00 00 00 00 00 00 ................ +2cc0 14 00 00 00 8a c1 00 00-a0 d1 00 00 07 00 00 00 ................ +2cd0 00 00 00 00 14 00 00 00-8a c1 00 00 a0 d1 00 00 ................ +2ce0 07 00 00 00 00 00 00 00-64 00 00 00 8a c1 00 00 ........d....... +2cf0 01 d1 00 00 03 00 00 00-14 00 00 00 ff 00 00 00 ................ +2d00 20 00 00 00 23 00 00 00-25 00 00 00 28 00 00 00 ...#...%...(... +2d10 2b 00 00 00 2d 00 00 00-30 00 00 00 33 00 00 00 +...-...0...3... +2d20 35 00 00 00 38 00 00 00-3b 00 00 00 3d 00 00 00 5...8...;...=... +2d30 40 00 00 00 43 00 00 00-45 00 00 00 48 00 00 00 @...C...E...H... +2d40 4b 00 00 00 4d 00 00 00-50 00 00 00 e8 00 00 00 K...M...P....... +2d50 8a c1 00 00 02 d1 00 00-03 00 00 00 35 00 00 00 ............5... +2d60 04 00 00 00 10 00 00 00-13 00 00 00 15 00 00 00 ................ +2d70 18 00 00 00 1b 00 00 00-1d 00 00 00 20 00 00 00 ............ ... +2d80 23 00 00 00 25 00 00 00-28 00 00 00 2b 00 00 00 #...%...(...+... +2d90 2d 00 00 00 30 00 00 00-33 00 00 00 35 00 00 00 -...0...3...5... +2da0 38 00 00 00 3b 00 00 00-3d 00 00 00 40 00 00 00 8...;...=...@... +2db0 43 00 00 00 45 00 00 00-48 00 00 00 4b 00 00 00 C...E...H...K... +2dc0 4d 00 00 00 50 00 00 00-53 00 00 00 55 00 00 00 M...P...S...U... +2dd0 58 00 00 00 5b 00 00 00-5d 00 00 00 60 00 00 00 X...[...]...`... +2de0 63 00 00 00 65 00 00 00-68 00 00 00 6b 00 00 00 c...e...h...k... +2df0 6d 00 00 00 70 00 00 00-73 00 00 00 75 00 00 00 m...p...s...u... +2e00 78 00 00 00 7b 00 00 00-7d 00 00 00 80 00 00 00 x...{...}....... +2e10 83 00 00 00 85 00 00 00-88 00 00 00 8b 00 00 00 ................ +2e20 8d 00 00 00 90 00 00 00-93 00 00 00 95 00 00 00 ................ +2e30 98 00 00 00 3c 00 00 00-8a c1 00 00 d9 d1 00 00 ....<........... +2e40 03 00 00 00 0a 00 00 00-00 00 00 00 03 00 00 00 ................ +2e50 05 00 00 00 08 00 00 00-0b 00 00 00 0d 00 00 00 ................ +2e60 10 00 00 00 13 00 00 00-15 00 00 00 18 00 00 00 ................ +2e70 60 00 00 00 8a c1 00 00-04 d1 00 00 03 00 00 00 `............... +2e80 13 00 00 00 e8 00 00 00-eb 00 00 00 ed 00 00 00 ................ +2e90 f0 00 00 00 f3 00 00 00-f5 00 00 00 f8 00 00 00 ................ +2ea0 fb 00 00 00 fd 00 00 00-00 00 00 00 03 00 00 00 ................ +2eb0 05 00 00 00 08 00 00 00-0b 00 00 00 0d 00 00 00 ................ +2ec0 10 00 00 00 13 00 00 00-15 00 00 00 18 00 00 00 ................ +2ed0 7c 00 00 00 8a c1 00 00-03 d1 00 00 03 00 00 00 |............... +2ee0 1a 00 00 00 00 00 00 00-48 00 00 00 4b 00 00 00 ........H...K... +2ef0 4d 00 00 00 50 00 00 00-53 00 00 00 55 00 00 00 M...P...S...U... +2f00 58 00 00 00 5b 00 00 00-5d 00 00 00 60 00 00 00 X...[...]...`... +2f10 63 00 00 00 65 00 00 00-68 00 00 00 6b 00 00 00 c...e...h...k... +2f20 6d 00 00 00 70 00 00 00-73 00 00 00 75 00 00 00 m...p...s...u... +2f30 78 00 00 00 7b 00 00 00-7d 00 00 00 80 00 00 00 x...{...}....... +2f40 83 00 00 00 85 00 00 00-88 00 00 00 14 00 00 00 ................ +2f50 8a c1 00 00 d5 d1 00 00-03 00 00 00 00 00 00 00 ................ +2f60 14 00 00 00 8a c1 00 00-08 d2 00 00 07 00 00 00 ................ +2f70 00 00 00 00 20 00 00 00-8a c1 00 00 00 00 00 00 .... ........... +2f80 03 00 00 00 03 00 00 00-01 00 00 00 02 00 00 00 ................ +2f90 00 00 00 00 30 00 00 00-8a c1 00 00 00 00 00 00 ....0........... +2fa0 03 00 00 00 07 00 00 00-0f 00 00 00 1e 00 00 00 ................ +2fb0 3c 00 00 00 b4 00 00 00-2c 01 00 00 58 02 00 00 <.......,...X... +2fc0 08 07 00 00 0c 00 00 00-a4 c1 00 00 01 00 02 00 ................ +2fd0 0c 00 00 00 9d c1 00 00-00 00 00 00 61 00 00 00 ............a... +2fe0 a5 c1 00 00 5d 00 00 00-ff 1f 00 00 01 00 01 03 ....]........... +2ff0 98 10 00 80 00 01 01 00-50 00 20 00 ff 00 01 01 ........P. ..... + +event 0: EOS prop d116 info record, datasize is 4 +event 0: currentvalue of d116 is 811 +event 1: EOS prop d105 info record, datasize is 4 +event 1: currentvalue of d105 is 37 +event 2: EOS prop d138 info record, datasize is 4 +event 2: Unknown EOS property d138, datasize is 4 + 0: 37 + 1: 00 + 2: 00 + 3: 00 +event 3: EOS prop d102 info record, datasize is 4 +event 3: currentvalue of d102 is 80 +event 4: EOS prop d101 info record, datasize is 4 +event 4: currentvalue of d101 is ff +event 5: EOS prop d103 info record, datasize is 4 +event 5: currentvalue of d103 is 0 +event 6: EOS prop d106 info record, datasize is 4 +event 6: currentvalue of d106 is 4 +event 7: EOS prop d108 info record, datasize is 4 +event 7: currentvalue of d108 is 1 +event 8: EOS prop d107 info record, datasize is 4 +event 8: currentvalue of d107 is 3 +event 9: EOS prop d109 info record, datasize is 4 +event 9: currentvalue of d109 is 0 +event 10: EOS prop d11b info record, datasize is 4 +event 10: currentvalue of d11b is 60f +event 11: EOS prop d104 info record, datasize is 4 +event 11: currentvalue of d104 is 0 +event 12: EOS prop d10c info record, datasize is 4 +event 13: EOS prop d10b info record, datasize is 4 +event 14: EOS prop d10e info record, datasize is 4 +event 14: currentvalue of d10e is 0 +event 15: EOS prop d10d info record, datasize is 4 +event 15: currentvalue of d10d is 0 +event 16: EOS prop d1d9 info record, datasize is 4 +event 16: currentvalue of d1d9 is 0 +event 17: EOS prop d1d5 info record, datasize is 4 +event 17: Unknown EOS property d1d5, datasize is 4, using uint32 + 0: 0x 1 +event 17: currentvalue of d1d5 is 1 +event 18: EOS prop d1c1 info record, datasize is 4 +event 18: Unknown EOS property d1c1, datasize is 4, using uint32 + 0: 0x 0 +event 18: currentvalue of d1c1 is 0 +event 19: EOS prop d10f info record, datasize is 4 +event 19: currentvalue of d10f is 1 +event 20: EOS prop d114 info record, datasize is 4 +event 20: currentvalue of d114 is 3c +event 21: EOS prop d1b7 info record, datasize is 4 +event 21: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 1 +event 21: currentvalue of d1b7 is 1 +event 22: EOS prop d110 info record, datasize is 4 +event 22: currentvalue of d110 is 87 +event 23: EOS prop d157 info record, datasize is 40 +event 23: Unknown EOS property d157, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 24: EOS prop d158 info record, datasize is 40 +event 24: Unknown EOS property d158, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 25: EOS prop d159 info record, datasize is 40 +event 25: Unknown EOS property d159, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 05 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 26: EOS prop d15a info record, datasize is 40 +event 26: Unknown EOS property d15a, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 +event 27: EOS prop d15b info record, datasize is 40 +event 27: Unknown EOS property d15b, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 +event 28: EOS prop d15c info record, datasize is 40 +event 28: Unknown EOS property d15c, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 29: EOS prop d15d info record, datasize is 40 +event 29: Unknown EOS property d15d, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 30: EOS prop d15e info record, datasize is 40 +event 30: Unknown EOS property d15e, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 +event 31: EOS prop d163 info record, datasize is 44 +event 31: Unknown EOS property d163, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 32: EOS prop d164 info record, datasize is 44 +event 32: Unknown EOS property d164, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 33: EOS prop d165 info record, datasize is 44 +event 33: Unknown EOS property d165, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 34: EOS prop d1b1 info record, datasize is 4 +event 34: currentvalue of d1b1 is 1 +event 35: EOS prop d1bc info record, datasize is 4 +event 35: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 35: currentvalue of d1bc is 1 +event 36: EOS prop d1b2 info record, datasize is 4 +event 36: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 36: currentvalue of d1b2 is 0 +event 37: EOS prop d1b3 info record, datasize is 4 +event 37: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 37: currentvalue of d1b3 is 0 +event 38: EOS prop d1b4 info record, datasize is 4 +event 38: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 0 +event 38: currentvalue of d1b4 is 0 +event 39: EOS prop d1b6 info record, datasize is 4 +event 39: Unknown EOS property d1b6, datasize is 4, using uint32 + 0: 0x 1450 +event 39: currentvalue of d1b6 is 1450 +event 40: EOS prop d1ab info record, datasize is 4 +event 40: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 40: currentvalue of d1ab is 0 +event 41: EOS prop d1b0 info record, datasize is 4 +event 41: currentvalue of d1b0 is 1 +event 42: EOS prop d10a info record, datasize is 4 +event 42: currentvalue of d10a is 1450 +event 43: EOS prop d1a8 info record, datasize is 4 +event 43: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 43: currentvalue of d1a8 is 1 +event 44: EOS prop d198 info record, datasize is 4 +event 44: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 45: EOS prop d1dd info record, datasize is 4 +event 45: currentvalue of d1dd is 103a +event 46: EOS prop d1a1 info record, datasize is 8 +event 46: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 47: EOS prop d115 info record, datasize is 1 +event 47: currentvalue of d115 is +event 48: EOS prop d1a4 info record, datasize is 484 +event 48: Unknown EOS property d1a4, datasize is 484 + 0: e4 + 1: 01 + 2: 00 + 3: 00 + 4: 30 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 31 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 32 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 00 + 97: 00 + 98: 00 + 99: 00 + 100: 33 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 34 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 35 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 36 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 00 + 209: 00 + 210: 00 + 211: 00 + 212: 00 + 213: 00 + 214: 00 + 215: 00 + 216: 00 + 217: 00 + 218: 00 + 219: 00 + 220: 00 + 221: 00 + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 37 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 38 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: 00 + 273: 00 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: 00 + 281: 00 + 282: 00 + 283: 00 + 284: 00 + 285: 00 + 286: 00 + 287: 00 + 288: 00 + 289: 00 + 290: 00 + 291: 00 + 292: 39 + 293: 00 + 294: 00 + 295: 00 + 296: 00 + 297: 00 + 298: 00 + 299: 00 + 300: 00 + 301: 00 + 302: 00 + 303: 00 + 304: 00 + 305: 00 + 306: 00 + 307: 00 + 308: 00 + 309: 00 + 310: 00 + 311: 00 + 312: 00 + 313: 00 + 314: 00 + 315: 00 + 316: 00 + 317: 00 + 318: 00 + 319: 00 + 320: 00 + 321: 00 + 322: 00 + 323: 00 + 324: 31 + 325: 30 + 326: 00 + 327: 00 + 328: 00 + 329: 00 + 330: 00 + 331: 00 + 332: 00 + 333: 00 + 334: 00 + 335: 00 + 336: 00 + 337: 00 + 338: 00 + 339: 00 + 340: 00 + 341: 00 + 342: 00 + 343: 00 + 344: 00 + 345: 00 + 346: 00 + 347: 00 + 348: 00 + 349: 00 + 350: 00 + 351: 00 + 352: 00 + 353: 00 + 354: 00 + 355: 00 + 356: 31 + 357: 31 + 358: 00 + 359: 00 + 360: 00 + 361: 00 + 362: 00 + 363: 00 + 364: 00 + 365: 00 + 366: 00 + 367: 00 + 368: 00 + 369: 00 + 370: 00 + 371: 00 + 372: 00 + 373: 00 + 374: 00 + 375: 00 + 376: 00 + 377: 00 + 378: 00 + 379: 00 + 380: 00 + 381: 00 + 382: 00 + 383: 00 + 384: 00 + 385: 00 + 386: 00 + 387: 00 + 388: 31 + 389: 32 + 390: 00 + 391: 00 + 392: 00 + 393: 00 + 394: 00 + 395: 00 + 396: 00 + 397: 00 + 398: 00 + 399: 00 + 400: 00 + 401: 00 + 402: 00 + 403: 00 + 404: 00 + 405: 00 + 406: 00 + 407: 00 + 408: 00 + 409: 00 + 410: 00 + 411: 00 + 412: 00 + 413: 00 + 414: 00 + 415: 00 + 416: 00 + 417: 00 + 418: 00 + 419: 00 + 420: 31 + 421: 33 + 422: 00 + 423: 00 + 424: 00 + 425: 00 + 426: 00 + 427: 00 + 428: 00 + 429: 00 + 430: 00 + 431: 00 + 432: 00 + 433: 00 + 434: 00 + 435: 00 + 436: 00 + 437: 00 + 438: 00 + 439: 00 + 440: 00 + 441: 00 + 442: 00 + 443: 00 + 444: 00 + 445: 00 + 446: 00 + 447: 00 + 448: 00 + 449: 00 + 450: 00 + 451: 00 + 452: 31 + 453: 34 + 454: 00 + 455: 00 + 456: 00 + 457: 00 + 458: 00 + 459: 00 + 460: 00 + 461: 00 + 462: 00 + 463: 00 + 464: 00 + 465: 00 + 466: 00 + 467: 00 + 468: 00 + 469: 00 + 470: 00 + 471: 00 + 472: 00 + 473: 00 + 474: 00 + 475: 00 + 476: 00 + 477: 00 + 478: 00 + 479: 00 + 480: 00 + 481: 00 + 482: 00 + 483: 00 +event 49: EOS prop d1b8 info record, datasize is 4 +event 49: currentvalue of d1b8 is 3 +event 50: EOS prop d1ba info record, datasize is 4 +event 50: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 2 +event 50: currentvalue of d1ba is 2 +event 51: EOS prop d1c9 info record, datasize is 4 +event 51: currentvalue of d1c9 is 0 +event 52: EOS prop d17a info record, datasize is 4 +event 52: Unknown EOS property d17a, datasize is 4 + 0: 01 + 1: aa + 2: be + 3: aa +event 53: EOS prop d1cd info record, datasize is 44 +event 53: Unknown EOS property d1cd, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: b5 + 13: 0b + 14: 00 + 15: 00 + 16: 0f + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 +event 54: EOS prop d1c5 info record, datasize is 4 +event 54: Unknown EOS property d1c5, datasize is 4 + 0: 37 + 1: 00 + 2: 00 + 3: 00 +event 55: EOS prop d1d4 info record, datasize is 4 +event 55: Unknown EOS property d1d4, datasize is 4, using uint32 + 0: 0x 0 +event 55: currentvalue of d1d4 is 0 +event 56: EOS prop d1c2 info record, datasize is 4 +event 56: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 57: EOS prop d1bd info record, datasize is 4 +event 57: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 58: EOS prop d194 info record, datasize is 4 +event 58: currentvalue of d194 is 0 +event 59: EOS prop d195 info record, datasize is 4 +event 59: Unknown EOS property d195, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 60: EOS prop d196 info record, datasize is 4 +event 60: Unknown EOS property d196, datasize is 4 + 0: 2f + 1: 00 + 2: 00 + 3: 00 +event 61: EOS prop d197 info record, datasize is 4 +event 61: Unknown EOS property d197, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 62: EOS prop d13c info record, datasize is 4 +event 62: currentvalue of d13c is aaaa5757 +event 63: EOS prop d13d info record, datasize is 24 +event 63: Unknown EOS property d13d, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 64: EOS prop d179 info record, datasize is 4 +event 64: Unknown EOS property d179, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 65: EOS prop d17b info record, datasize is 4 +event 65: Unknown EOS property d17b, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 66: EOS prop d177 info record, datasize is 24 +event 66: Unknown EOS property d177, datasize is 24 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 67: EOS prop d176 info record, datasize is 4 +event 67: Unknown EOS property d176, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 68: EOS prop d175 info record, datasize is 4 +event 68: Unknown EOS property d175, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 69: EOS prop d137 info record, datasize is 4 +event 69: Unknown EOS property d137, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 70: EOS prop d178 info record, datasize is 4 +event 70: currentvalue of d178 is 0 +event 71: EOS prop d121 info record, datasize is 36 +event 71: decoded imageformat, currentvalue of d121 is b13 +event 72: EOS prop d120 info record, datasize is 36 +event 72: decoded imageformat, currentvalue of d120 is b13 +event 73: EOS prop d122 info record, datasize is 36 +event 73: decoded imageformat, currentvalue of d122 is b13 +event 74: EOS prop d133 info record, datasize is 4 +event 74: Unknown EOS property d133, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 75: EOS prop d131 info record, datasize is 4 +event 75: Unknown EOS property d131, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 76: EOS prop d132 info record, datasize is 4 +event 76: Unknown EOS property d132, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 77: EOS prop d130 info record, datasize is 4 +event 77: Unknown EOS property d130, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 78: EOS prop d11c info record, datasize is 4 +event 78: currentvalue of d11c is 2 +event 79: EOS prop d113 info record, datasize is 4 +event 79: currentvalue of d113 is 5d96e880 +event 80: EOS prop d1a7 info record, datasize is 40 +event 80: Unknown EOS property d1a7, datasize is 40 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 +event 81: EOS prop d112 info record, datasize is 4 +event 81: currentvalue of d112 is 0 +event 82: EOS prop d111 info record, datasize is 4 +event 82: currentvalue of d111 is 2 +event 83: EOS prop d1d8 info record, datasize is 63 +event 83: currentvalue of d1d8 is EF-S24mm f/2.8 STM +event 84: EOS prop d1da info record, datasize is 16 +event 84: Unknown EOS property d1da, datasize is 16 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 +event 85: EOS prop d17e info record, datasize is 4 +event 85: currentvalue of d17e is 1 +event 86: EOS prop d17c info record, datasize is 4 +event 86: currentvalue of d17c is 5d96cc60 +event 87: EOS prop d11f info record, datasize is 4 +event 87: currentvalue of d11f is 91900000 +event 88: EOS prop d11f info record, datasize is 4 +event 88: currentvalue of d11f is 91900000 +event 89: EOS prop d11e info record, datasize is 4 +event 89: currentvalue of d11e is 20001 +event 90: EOS prop d1aa info record, datasize is 4 +event 90: Unknown EOS property d1aa, datasize is 4, using uint32 + 0: 0x 0 +event 90: currentvalue of d1aa is 0 +event 91: EOS prop d139 info record, datasize is 12 +event 91: Unknown EOS property d139, datasize is 12 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 92: EOS prop d1c3 info record, datasize is 4 +event 92: Unknown EOS property d1c3, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 93: EOS prop d1bf info record, datasize is 4 +event 93: Unknown EOS property d1bf, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 94: EOS prop d11d info record, datasize is 4 +event 94: currentvalue of d11d is 0 +event 95: EOS prop d1c7 info record, datasize is 4 +event 95: Unknown EOS property d1c7, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 96: EOS prop d1c4 info record, datasize is 4 +event 96: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 97: EOS prop d1cb info record, datasize is 52 +event 97: Unknown EOS property d1cb, datasize is 52 + 0: 34 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 +event 98: EOS prop d126 info record, datasize is 4 +event 98: Unknown EOS property d126, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 99: EOS prop d1dc info record, datasize is 4 +event 99: currentvalue of d1dc is 1 +event 100: EOS prop d1dc info record, datasize is 4 +event 100: currentvalue of d1dc is 1 +event 101: EOS prop d1c0 info record, datasize is 4 +event 101: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 102: EOS prop d136 info record, datasize is 4 +event 102: Unknown EOS property d136, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 103: EOS prop d140 info record, datasize is 48 +event 103: Unknown EOS property d140, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 46 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 98 + 47: 02 +event 104: EOS prop d141 info record, datasize is 48 +event 104: Unknown EOS property d141, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 46 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 98 + 47: 02 +event 105: EOS prop d142 info record, datasize is 48 +event 105: Unknown EOS property d142, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 46 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 98 + 47: 02 +event 106: EOS prop d143 info record, datasize is 48 +event 106: Unknown EOS property d143, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 46 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 98 + 47: 02 +event 107: EOS prop d144 info record, datasize is 48 +event 107: Unknown EOS property d144, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 46 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 98 + 47: 02 +event 108: EOS prop d14a info record, datasize is 4 +event 108: Unknown EOS property d14a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 109: EOS prop d149 info record, datasize is 4 +event 109: currentvalue of d149 is 0 +event 110: EOS prop d13e info record, datasize is 20 +event 110: Unknown EOS property d13e, datasize is 20 + 0: 14 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 +event 111: EOS prop d19a info record, datasize is 4 +event 111: Unknown EOS property d19a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 112: EOS prop d13b info record, datasize is 4 +event 112: Unknown EOS property d13b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 113: EOS prop d1a3 info record, datasize is 4 +event 113: Unknown EOS property d1a3, datasize is 4, using uint32 + 0: 0x 0 +event 113: currentvalue of d1a3 is 0 +event 114: EOS prop d19f info record, datasize is 4 +event 114: Unknown EOS property d19f, datasize is 4, using uint32 + 0: 0x 0 +event 114: currentvalue of d19f is 0 +event 115: EOS prop d124 info record, datasize is 4 +event 115: Unknown EOS property d124, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 116: EOS prop d167 info record, datasize is 16 +event 116: Unknown EOS property d167, datasize is 16 + 0: 10 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: e8 + 9: 03 + 10: 00 + 11: 00 + 12: e8 + 13: 03 + 14: 00 + 15: 00 +event 117: EOS prop d1c6 info record, datasize is 4 +event 117: currentvalue of d1c6 is 0 +event 118: EOS prop d12d info record, datasize is 12 +event 118: Unknown EOS property d12d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 119: EOS prop d12c info record, datasize is 4 +event 119: Unknown EOS property d12c, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 120: EOS prop d127 info record, datasize is 8 +event 120: Unknown EOS property d127, datasize is 8 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 121: EOS prop d1a0 info record, datasize is 56 +event 121: decoded custom function, currentvalue of d1a0 is 38,1,1,2c,3,101,1,0,108,1,0,112,1,0, +event 122: EOS prop d1a0 info record, datasize is 60 +event 122: currentvalue of d1a0 is < +event 122: decoded custom function, currentvalue of d1a0 is 3c,1,2,30,3,104,1,0,105,1,0,106,2,3,0, +event 123: EOS prop d1a0 info record, datasize is 80 +event 123: currentvalue of d1a0 is P +event 123: decoded custom function, currentvalue of d1a0 is 50,1,3,44,3,10c,4,2400,fffff100,2400,fffff100,10d,4,2700,0,1b00,900,114,1,1, +event 124: EOS prop d1a0 info record, datasize is 440 +event 124: currentvalue of d1a0 is ¸ +event 124: decoded custom function, currentvalue of d1a0 is 1b8,1,4,1ac,1,70c,67,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +event 125: EOS prop d1a0 info record, datasize is 128 +event 125: currentvalue of d1a0 is € +event 125: decoded custom function, currentvalue of d1a0 is 80,1,5,74,9,706,1,0,712,1,0,713,1,0,714,1,0,80e,1,0,813,1,0,711,1,0,814,1,0,815,1,0, +event 126: EOS prop d1a0 info record, datasize is 32 +event 126: currentvalue of d1a0 is +event 126: decoded custom function, currentvalue of d1a0 is 20,1,6,14,1,102,1,0, +event 127: EOS prop d199 info record, datasize is 4 +event 127: currentvalue of d199 is 12 +event 128: EOS prop d166 info record, datasize is 4 +event 128: Unknown EOS property d166, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 129: EOS prop 0000 info record, datasize is 4 +event 129: Unknown EOS property 0000, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 130: EOS prop d208 info record, datasize is 24 +event 130: Unknown EOS property d208, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 64 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 131: EOS prop 0000 info record, datasize is 4 +event 131: Unknown EOS property 0000, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 132: EOS prop 0000 info record, datasize is 4 +event 132: Unknown EOS property 0000, datasize is 4 + 0: 3c + 1: 00 + 2: 00 + 3: 00 +event 133: EOS prop d114 info record, datasize is 4 +event 133: currentvalue of d114 is 3c +event 134: EOS prop d02b info record, datasize is 4 +event 134: Unknown EOS property d02b, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 135: EOS prop d20b info record, datasize is 4 +event 135: Unknown EOS property d20b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 136: EOS prop d125 info record, datasize is 24 +event 136: Unknown EOS property d125, datasize is 24 + 0: 45 + 1: 4f + 2: 53 + 3: 4d + 4: 36 + 5: 6d + 6: 32 + 7: 5f + 8: 43 + 9: 42 + 10: 43 + 11: 43 + 12: 36 + 13: 35 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 137: EOS prop d20e info record, datasize is 4 +event 137: Unknown EOS property d20e, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 138: EOS prop d126 info record, datasize is 4 +event 138: Unknown EOS property d126, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 139: EOS prop d17d info record, datasize is 12 +event 139: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 13 + 5: 00 + 6: 00 + 7: 00 + 8: 3c + 9: 00 + 10: 00 + 11: 00 +event 140: EOS prop d125 info record, datasize is 24 +event 140: Unknown EOS property d125, datasize is 24 + 0: 45 + 1: 4f + 2: 53 + 3: 4d + 4: 36 + 5: 6d + 6: 32 + 7: 5f + 8: 43 + 9: 42 + 10: 43 + 11: 43 + 12: 36 + 13: 35 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 141: EOS prop d103 desc record, datasize 104, propxtype 3 +event 141: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 141: suppval[0] of d103 is 0x0. +event 141: suppval[1] of d103 is 0x48. +event 141: suppval[2] of d103 is 0x4b. +event 141: suppval[3] of d103 is 0x4d. +event 141: suppval[4] of d103 is 0x50. +event 141: suppval[5] of d103 is 0x53. +event 141: suppval[6] of d103 is 0x55. +event 141: suppval[7] of d103 is 0x58. +event 141: suppval[8] of d103 is 0x5b. +event 141: suppval[9] of d103 is 0x5d. +event 141: suppval[10] of d103 is 0x60. +event 141: suppval[11] of d103 is 0x63. +event 141: suppval[12] of d103 is 0x65. +event 141: suppval[13] of d103 is 0x68. +event 141: suppval[14] of d103 is 0x6b. +event 141: suppval[15] of d103 is 0x6d. +event 141: suppval[16] of d103 is 0x70. +event 141: suppval[17] of d103 is 0x73. +event 141: suppval[18] of d103 is 0x75. +event 141: suppval[19] of d103 is 0x78. +event 141: suppval[20] of d103 is 0x7b. +event 141: suppval[21] of d103 is 0x7d. +event 141: suppval[22] of d103 is 0x80. +event 141: suppval[23] of d103 is 0x83. +event 141: suppval[24] of d103 is 0x85. +event 141: suppval[25] of d103 is 0x88. +event 142: EOS prop d105 desc record, datasize 0, propxtype 1 +event 142: propxtype is 1 for d105, unhandled, size 20 +event 143: EOS prop d11b desc record, datasize 0, propxtype 1 +event 143: propxtype is 1 for d11b, unhandled, size 20 +event 144: EOS prop d11b desc record, datasize 0, propxtype 1 +event 144: propxtype is 1 for d11b, unhandled, size 20 +event 145: EOS prop d114 desc record, datasize 24, propxtype 3 +event 145: propxtype is 3, prop is 0xd114, data type is 0x0004, propxcnt is 6. +event 145: suppval[0] of d114 is 0x1e. +event 145: suppval[1] of d114 is 0x3c. +event 145: suppval[2] of d114 is 0xb4. +event 145: suppval[3] of d114 is 0x12c. +event 145: suppval[4] of d114 is 0x258. +event 145: suppval[5] of d114 is 0x0. +event 146: EOS prop d114 desc record, datasize 0, propxtype 1 +event 146: propxtype is 1 for d114, unhandled, size 20 +event 147: EOS prop d116 desc record, datasize 0, propxtype 1 +event 147: propxtype is 1 for d116, unhandled, size 20 +event 148: EOS prop d111 desc record, datasize 0, propxtype 1 +event 148: propxtype is 1 for d111, unhandled, size 20 +event 149: EOS prop d112 desc record, datasize 0, propxtype 1 +event 149: propxtype is 1 for d112, unhandled, size 20 +event 150: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 150: propxtype is 1 for d1a8, unhandled, size 20 +event 151: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 151: propxtype is 1 for d1ab, unhandled, size 20 +event 152: EOS prop d147 desc record, datasize 0, propxtype 1 +event 152: propdesc d147, default value not found. +event 153: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 153: propdesc d1ad, default value not found. +event 154: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 154: propdesc d1ae, default value not found. +event 155: EOS prop d1aa desc record, datasize 0, propxtype 1 +event 155: propxtype is 1 for d1aa, unhandled, size 20 +event 156: EOS prop d11e desc record, datasize 0, propxtype 1 +event 156: propxtype is 1 for d11e, unhandled, size 20 +event 157: EOS prop d11f desc record, datasize 0, propxtype 1 +event 157: propxtype is 1 for d11f, unhandled, size 20 +event 158: EOS prop d1af desc record, datasize 0, propxtype 1 +event 158: propdesc d1af, default value not found. +event 159: EOS prop d17f desc record, datasize 0, propxtype 1 +event 159: propdesc d17f, default value not found. +event 160: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 160: propxtype is 1 for d1b7, unhandled, size 20 +event 161: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 161: propxtype is 1 for d1c4, unhandled, size 20 +event 162: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 162: propxtype is 1 for d1c2, unhandled, size 20 +event 163: EOS prop d138 desc record, datasize 0, propxtype 1 +event 163: propxtype is 1 for d138, unhandled, size 20 +event 164: EOS prop d139 desc record, datasize 0, propxtype 1 +event 164: propxtype is 1 for d139, unhandled, size 20 +event 165: EOS prop d13b desc record, datasize 0, propxtype 1 +event 165: propxtype is 1 for d13b, unhandled, size 20 +event 166: EOS prop d13c desc record, datasize 0, propxtype 1 +event 166: propxtype is 1 for d13c, unhandled, size 20 +event 167: EOS prop d19d desc record, datasize 0, propxtype 1 +event 167: propdesc d19d, default value not found. +event 168: EOS prop d19a desc record, datasize 0, propxtype 1 +event 168: propxtype is 1 for d19a, unhandled, size 20 +event 169: EOS prop d19c desc record, datasize 0, propxtype 1 +event 169: propdesc d19c, default value not found. +event 170: EOS prop d14c desc record, datasize 0, propxtype 1 +event 170: propdesc d14c, default value not found. +event 171: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 171: propxtype is 1 for d1bd, unhandled, size 20 +event 172: EOS prop d19f desc record, datasize 0, propxtype 1 +event 172: propxtype is 1 for d19f, unhandled, size 20 +event 173: EOS prop d124 desc record, datasize 0, propxtype 1 +event 173: propxtype is 1 for d124, unhandled, size 20 +event 174: EOS prop d115 desc record, datasize 0, propxtype 7 +event 174: propxtype is 7 for d115, unhandled, size 20 +event 175: EOS prop d110 desc record, datasize 44, propxtype 3 +event 175: propxtype is 3, prop is 0xd110, data type is 0x0002, propxcnt is 11. +event 175: suppval[0] of d110 is 0x87. +event 175: suppval[1] of d110 is 0x81. +event 175: suppval[2] of d110 is 0x82. +event 175: suppval[3] of d110 is 0x83. +event 175: suppval[4] of d110 is 0x88. +event 175: suppval[5] of d110 is 0x84. +event 175: suppval[6] of d110 is 0x85. +event 175: suppval[7] of d110 is 0x86. +event 175: suppval[8] of d110 is 0x21. +event 175: suppval[9] of d110 is 0x22. +event 175: suppval[10] of d110 is 0x23. +event 176: EOS prop d170 desc record, datasize 0, propxtype 7 +event 176: propdesc d170, default value not found. +event 177: EOS prop d170 desc record, datasize 0, propxtype 7 +event 177: propdesc d170, default value not found. +event 178: EOS prop d171 desc record, datasize 0, propxtype 7 +event 178: propdesc d171, default value not found. +event 179: EOS prop d171 desc record, datasize 0, propxtype 7 +event 179: propdesc d171, default value not found. +event 180: EOS prop d172 desc record, datasize 0, propxtype 7 +event 180: propdesc d172, default value not found. +event 181: EOS prop d172 desc record, datasize 0, propxtype 7 +event 181: propdesc d172, default value not found. +event 182: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 182: propxtype is 7 for d1a1, unhandled, size 20 +event 183: EOS prop d1a7 desc record, datasize 0, propxtype 7 +event 183: propxtype is 7 for d1a7, unhandled, size 20 +event 184: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 184: propdesc d1a2, default value not found. +event 185: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 185: propxtype is 7 for d1b2, unhandled, size 20 +event 186: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 186: propxtype is 7 for d1b3, unhandled, size 20 +event 187: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 187: propdesc d1b5, default value not found. +event 188: EOS prop d146 desc record, datasize 0, propxtype 7 +event 188: propdesc d146, default value not found. +event 189: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 189: propdesc d1d0, default value not found. +event 190: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 190: propdesc d1d1, default value not found. +event 191: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 191: propdesc d1d3, default value not found. +event 192: EOS prop d1cb desc record, datasize 0, propxtype 7 +event 192: propxtype is 7 for d1cb, unhandled, size 20 +event 193: EOS prop d14d desc record, datasize 0, propxtype 7 +event 193: propdesc d14d, default value not found. +event 194: EOS prop d196 desc record, datasize 0, propxtype 7 +event 194: propxtype is 7 for d196, unhandled, size 20 +event 195: EOS prop d1db desc record, datasize 0, propxtype 7 +event 195: propdesc d1db, default value not found. +event 196: EOS prop d1a4 desc record, datasize 0, propxtype 7 +event 196: propxtype is 7 for d1a4, unhandled, size 20 +event 197: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 197: propxtype is 7 for d1bf, unhandled, size 20 +event 198: EOS prop d055 desc record, datasize 4, propxtype 3 +event 198: propdesc d055, default value not found. +event 199: EOS prop d108 desc record, datasize 8, propxtype 3 +event 199: propxtype is 3, prop is 0xd108, data type is 0x0004, propxcnt is 2. +event 199: suppval[0] of d108 is 0x0. +event 199: suppval[1] of d108 is 0x1. +event 200: EOS prop d106 desc record, datasize 28, propxtype 3 +event 200: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 7. +event 200: suppval[0] of d106 is 0x0. +event 200: suppval[1] of d106 is 0x12. +event 200: suppval[2] of d106 is 0x4. +event 200: suppval[3] of d106 is 0x5. +event 200: suppval[4] of d106 is 0x10. +event 200: suppval[5] of d106 is 0x11. +event 200: suppval[6] of d106 is 0x7. +event 201: EOS prop d107 desc record, datasize 16, propxtype 3 +event 201: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 4. +event 201: suppval[0] of d107 is 0x3. +event 201: suppval[1] of d107 is 0x4. +event 201: suppval[2] of d107 is 0x1. +event 201: suppval[3] of d107 is 0x5. +event 202: EOS prop d109 desc record, datasize 40, propxtype 3 +event 202: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 10. +event 202: suppval[0] of d109 is 0x0. +event 202: suppval[1] of d109 is 0x17. +event 202: suppval[2] of d109 is 0x1. +event 202: suppval[3] of d109 is 0x8. +event 202: suppval[4] of d109 is 0x2. +event 202: suppval[5] of d109 is 0x3. +event 202: suppval[6] of d109 is 0x4. +event 202: suppval[7] of d109 is 0x5. +event 202: suppval[8] of d109 is 0x6. +event 202: suppval[9] of d109 is 0x9. +event 203: EOS prop d10a desc record, datasize 304, propxtype 3 +event 203: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +event 203: suppval[0] of d10a is 0x9c4. +event 203: suppval[1] of d10a is 0xa28. +event 203: suppval[2] of d10a is 0xa8c. +event 203: suppval[3] of d10a is 0xaf0. +event 203: suppval[4] of d10a is 0xb54. +event 203: suppval[5] of d10a is 0xbb8. +event 203: suppval[6] of d10a is 0xc1c. +event 203: suppval[7] of d10a is 0xc80. +event 203: suppval[8] of d10a is 0xce4. +event 203: suppval[9] of d10a is 0xd48. +event 203: suppval[10] of d10a is 0xdac. +event 203: suppval[11] of d10a is 0xe10. +event 203: suppval[12] of d10a is 0xe74. +event 203: suppval[13] of d10a is 0xed8. +event 203: suppval[14] of d10a is 0xf3c. +event 203: suppval[15] of d10a is 0xfa0. +event 203: suppval[16] of d10a is 0x1004. +event 203: suppval[17] of d10a is 0x1068. +event 203: suppval[18] of d10a is 0x10cc. +event 203: suppval[19] of d10a is 0x1130. +event 203: suppval[20] of d10a is 0x1194. +event 203: suppval[21] of d10a is 0x11f8. +event 203: suppval[22] of d10a is 0x125c. +event 203: suppval[23] of d10a is 0x12c0. +event 203: suppval[24] of d10a is 0x1324. +event 203: suppval[25] of d10a is 0x1388. +event 203: suppval[26] of d10a is 0x13ec. +event 203: suppval[27] of d10a is 0x1450. +event 203: suppval[28] of d10a is 0x14b4. +event 203: suppval[29] of d10a is 0x1518. +event 203: suppval[30] of d10a is 0x157c. +event 203: suppval[31] of d10a is 0x15e0. +event 203: suppval[32] of d10a is 0x1644. +event 203: suppval[33] of d10a is 0x16a8. +event 203: suppval[34] of d10a is 0x170c. +event 203: suppval[35] of d10a is 0x1770. +event 203: suppval[36] of d10a is 0x17d4. +event 203: suppval[37] of d10a is 0x1838. +event 203: suppval[38] of d10a is 0x189c. +event 203: suppval[39] of d10a is 0x1900. +event 203: suppval[40] of d10a is 0x1964. +event 203: suppval[41] of d10a is 0x19c8. +event 203: suppval[42] of d10a is 0x1a2c. +event 203: suppval[43] of d10a is 0x1a90. +event 203: suppval[44] of d10a is 0x1af4. +event 203: suppval[45] of d10a is 0x1b58. +event 203: suppval[46] of d10a is 0x1bbc. +event 203: suppval[47] of d10a is 0x1c20. +event 203: suppval[48] of d10a is 0x1c84. +event 203: suppval[49] of d10a is 0x1ce8. +event 203: suppval[50] of d10a is 0x1d4c. +event 203: suppval[51] of d10a is 0x1db0. +event 203: suppval[52] of d10a is 0x1e14. +event 203: suppval[53] of d10a is 0x1e78. +event 203: suppval[54] of d10a is 0x1edc. +event 203: suppval[55] of d10a is 0x1f40. +event 203: suppval[56] of d10a is 0x1fa4. +event 203: suppval[57] of d10a is 0x2008. +event 203: suppval[58] of d10a is 0x206c. +event 203: suppval[59] of d10a is 0x20d0. +event 203: suppval[60] of d10a is 0x2134. +event 203: suppval[61] of d10a is 0x2198. +event 203: suppval[62] of d10a is 0x21fc. +event 203: suppval[63] of d10a is 0x2260. +event 203: suppval[64] of d10a is 0x22c4. +event 203: suppval[65] of d10a is 0x2328. +event 203: suppval[66] of d10a is 0x238c. +event 203: suppval[67] of d10a is 0x23f0. +event 203: suppval[68] of d10a is 0x2454. +event 203: suppval[69] of d10a is 0x24b8. +event 203: suppval[70] of d10a is 0x251c. +event 203: suppval[71] of d10a is 0x2580. +event 203: suppval[72] of d10a is 0x25e4. +event 203: suppval[73] of d10a is 0x2648. +event 203: suppval[74] of d10a is 0x26ac. +event 203: suppval[75] of d10a is 0x2710. +event 204: EOS prop d10b desc record, datasize 76, propxtype 3 +event 204: propxtype is 3, prop is 0xd10b, data type is 0x0005, propxcnt is 19. +event 204: suppval[0] of d10b is 0xfffffff7. +event 204: suppval[1] of d10b is 0xfffffff8. +event 204: suppval[2] of d10b is 0xfffffff9. +event 204: suppval[3] of d10b is 0xfffffffa. +event 204: suppval[4] of d10b is 0xfffffffb. +event 204: suppval[5] of d10b is 0xfffffffc. +event 204: suppval[6] of d10b is 0xfffffffd. +event 204: suppval[7] of d10b is 0xfffffffe. +event 204: suppval[8] of d10b is 0xffffffff. +event 204: suppval[9] of d10b is 0x0. +event 204: suppval[10] of d10b is 0x1. +event 204: suppval[11] of d10b is 0x2. +event 204: suppval[12] of d10b is 0x3. +event 204: suppval[13] of d10b is 0x4. +event 204: suppval[14] of d10b is 0x5. +event 204: suppval[15] of d10b is 0x6. +event 204: suppval[16] of d10b is 0x7. +event 204: suppval[17] of d10b is 0x8. +event 204: suppval[18] of d10b is 0x9. +event 205: EOS prop d10c desc record, datasize 76, propxtype 3 +event 205: propxtype is 3, prop is 0xd10c, data type is 0x0005, propxcnt is 19. +event 205: suppval[0] of d10c is 0xfffffff7. +event 205: suppval[1] of d10c is 0xfffffff8. +event 205: suppval[2] of d10c is 0xfffffff9. +event 205: suppval[3] of d10c is 0xfffffffa. +event 205: suppval[4] of d10c is 0xfffffffb. +event 205: suppval[5] of d10c is 0xfffffffc. +event 205: suppval[6] of d10c is 0xfffffffd. +event 205: suppval[7] of d10c is 0xfffffffe. +event 205: suppval[8] of d10c is 0xffffffff. +event 205: suppval[9] of d10c is 0x0. +event 205: suppval[10] of d10c is 0x1. +event 205: suppval[11] of d10c is 0x2. +event 205: suppval[12] of d10c is 0x3. +event 205: suppval[13] of d10c is 0x4. +event 205: suppval[14] of d10c is 0x5. +event 205: suppval[15] of d10c is 0x6. +event 205: suppval[16] of d10c is 0x7. +event 205: suppval[17] of d10c is 0x8. +event 205: suppval[18] of d10c is 0x9. +event 206: EOS prop d10d desc record, datasize 16, propxtype 3 +event 206: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +event 206: suppval[0] of d10d is 0x0. +event 206: suppval[1] of d10d is 0x1. +event 206: suppval[2] of d10d is 0x2. +event 206: suppval[3] of d10d is 0x3. +event 207: EOS prop d10e desc record, datasize 16, propxtype 3 +event 207: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +event 207: suppval[0] of d10e is 0x0. +event 207: suppval[1] of d10e is 0x1. +event 207: suppval[2] of d10e is 0x2. +event 207: suppval[3] of d10e is 0x3. +event 208: EOS prop d10f desc record, datasize 8, propxtype 3 +event 208: propxtype is 3, prop is 0xd10f, data type is 0x0004, propxcnt is 2. +event 208: suppval[0] of d10f is 0x1. +event 208: suppval[1] of d10f is 0x2. +event 209: EOS prop d101 desc record, datasize 80, propxtype 3 +event 209: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 20. +event 209: suppval[0] of d101 is 0xff. +event 209: suppval[1] of d101 is 0x20. +event 209: suppval[2] of d101 is 0x23. +event 209: suppval[3] of d101 is 0x25. +event 209: suppval[4] of d101 is 0x28. +event 209: suppval[5] of d101 is 0x2b. +event 209: suppval[6] of d101 is 0x2d. +event 209: suppval[7] of d101 is 0x30. +event 209: suppval[8] of d101 is 0x33. +event 209: suppval[9] of d101 is 0x35. +event 209: suppval[10] of d101 is 0x38. +event 209: suppval[11] of d101 is 0x3b. +event 209: suppval[12] of d101 is 0x3d. +event 209: suppval[13] of d101 is 0x40. +event 209: suppval[14] of d101 is 0x43. +event 209: suppval[15] of d101 is 0x45. +event 209: suppval[16] of d101 is 0x48. +event 209: suppval[17] of d101 is 0x4b. +event 209: suppval[18] of d101 is 0x4d. +event 209: suppval[19] of d101 is 0x50. +event 210: EOS prop d102 desc record, datasize 212, propxtype 3 +event 210: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 53. +event 210: suppval[0] of d102 is 0x4. +event 210: suppval[1] of d102 is 0x10. +event 210: suppval[2] of d102 is 0x13. +event 210: suppval[3] of d102 is 0x15. +event 210: suppval[4] of d102 is 0x18. +event 210: suppval[5] of d102 is 0x1b. +event 210: suppval[6] of d102 is 0x1d. +event 210: suppval[7] of d102 is 0x20. +event 210: suppval[8] of d102 is 0x23. +event 210: suppval[9] of d102 is 0x25. +event 210: suppval[10] of d102 is 0x28. +event 210: suppval[11] of d102 is 0x2b. +event 210: suppval[12] of d102 is 0x2d. +event 210: suppval[13] of d102 is 0x30. +event 210: suppval[14] of d102 is 0x33. +event 210: suppval[15] of d102 is 0x35. +event 210: suppval[16] of d102 is 0x38. +event 210: suppval[17] of d102 is 0x3b. +event 210: suppval[18] of d102 is 0x3d. +event 210: suppval[19] of d102 is 0x40. +event 210: suppval[20] of d102 is 0x43. +event 210: suppval[21] of d102 is 0x45. +event 210: suppval[22] of d102 is 0x48. +event 210: suppval[23] of d102 is 0x4b. +event 210: suppval[24] of d102 is 0x4d. +event 210: suppval[25] of d102 is 0x50. +event 210: suppval[26] of d102 is 0x53. +event 210: suppval[27] of d102 is 0x55. +event 210: suppval[28] of d102 is 0x58. +event 210: suppval[29] of d102 is 0x5b. +event 210: suppval[30] of d102 is 0x5d. +event 210: suppval[31] of d102 is 0x60. +event 210: suppval[32] of d102 is 0x63. +event 210: suppval[33] of d102 is 0x65. +event 210: suppval[34] of d102 is 0x68. +event 210: suppval[35] of d102 is 0x6b. +event 210: suppval[36] of d102 is 0x6d. +event 210: suppval[37] of d102 is 0x70. +event 210: suppval[38] of d102 is 0x73. +event 210: suppval[39] of d102 is 0x75. +event 210: suppval[40] of d102 is 0x78. +event 210: suppval[41] of d102 is 0x7b. +event 210: suppval[42] of d102 is 0x7d. +event 210: suppval[43] of d102 is 0x80. +event 210: suppval[44] of d102 is 0x83. +event 210: suppval[45] of d102 is 0x85. +event 210: suppval[46] of d102 is 0x88. +event 210: suppval[47] of d102 is 0x8b. +event 210: suppval[48] of d102 is 0x8d. +event 210: suppval[49] of d102 is 0x90. +event 210: suppval[50] of d102 is 0x93. +event 210: suppval[51] of d102 is 0x95. +event 210: suppval[52] of d102 is 0x98. +event 211: EOS prop d104 desc record, datasize 76, propxtype 3 +event 211: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 211: suppval[0] of d104 is 0xe8. +event 211: suppval[1] of d104 is 0xeb. +event 211: suppval[2] of d104 is 0xed. +event 211: suppval[3] of d104 is 0xf0. +event 211: suppval[4] of d104 is 0xf3. +event 211: suppval[5] of d104 is 0xf5. +event 211: suppval[6] of d104 is 0xf8. +event 211: suppval[7] of d104 is 0xfb. +event 211: suppval[8] of d104 is 0xfd. +event 211: suppval[9] of d104 is 0x0. +event 211: suppval[10] of d104 is 0x3. +event 211: suppval[11] of d104 is 0x5. +event 211: suppval[12] of d104 is 0x8. +event 211: suppval[13] of d104 is 0xb. +event 211: suppval[14] of d104 is 0xd. +event 211: suppval[15] of d104 is 0x10. +event 211: suppval[16] of d104 is 0x13. +event 211: suppval[17] of d104 is 0x15. +event 211: suppval[18] of d104 is 0x18. +event 212: EOS prop d17d desc record, datasize 396, propxtype 3 +event 212: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +event 212: data type 0x0000 of d17d unhandled, size 12, raw values: + 0: 0x c + 1: 0x 21 + 2: 0x 30c + 3: 0x c + 4: 0x 1 + 5: 0x 2fd + 6: 0x c + 7: 0x 2 + 8: 0x 2d0 + 9: 0x c + 10: 0x 3 + 11: 0x 294 + 12: 0x c + 13: 0x 4 + 14: 0x 258 + 15: 0x c + 16: 0x 5 + 17: 0x 23a + 18: 0x c + 19: 0x 6 + 20: 0x 21c + 21: 0x c + 22: 0x 7 + 23: 0x 1e0 + 24: 0x c + 25: 0x 8 + 26: 0x 1a4 + 27: 0x c + 28: 0x 9 + 29: 0x 186 + 30: 0x c + 31: 0x a + 32: 0x 168 + 33: 0x c + 34: 0x b + 35: 0x 159 + 36: 0x c + 37: 0x c + 38: 0x 14a + 39: 0x c + 40: 0x d + 41: 0x 12c + 42: 0x c + 43: 0x e + 44: 0x 10e + 45: 0x c + 46: 0x f + 47: 0x f0 + 48: 0x c + 49: 0x 10 + 50: 0x d2 + 51: 0x c + 52: 0x 11 + 53: 0x b4 + 54: 0x c + 55: 0x 12 + 56: 0x 78 + 57: 0x c + 58: 0x 13 + 59: 0x 3c + 60: 0x c + 61: 0x 14 + 62: 0x 0 + 63: 0x c + 64: 0x 15 + 65: 0xffffffc4 + 66: 0x c + 67: 0x 16 + 68: 0xffffff88 + 69: 0x c + 70: 0x 17 + 71: 0xffffff4c + 72: 0x c + 73: 0x 18 + 74: 0xffffff2e + 75: 0x c + 76: 0x 1a + 77: 0xffffff10 + 78: 0x c + 79: 0x 1b + 80: 0xfffffed4 + 81: 0x c + 82: 0x 1c + 83: 0xfffffe98 + 84: 0x c + 85: 0x 1d + 86: 0xfffffe5c + 87: 0x c + 88: 0x 1e + 89: 0xfffffe20 + 90: 0x c + 91: 0x 1f + 92: 0xfffffde4 + 93: 0x c + 94: 0x 20 + 95: 0xfffffda8 + 96: 0x c + 97: 0xffffffff + 98: 0x 0 +event 213: EOS prop d17e desc record, datasize 8, propxtype 3 +event 213: propxtype is 3, prop is 0xd17e, data type is 0x0006, propxcnt is 2. +event 213: suppval[0] of d17e is 0x0. +event 213: suppval[1] of d17e is 0x1. +event 214: EOS prop d17c desc record, datasize 0, propxtype 7 +event 214: propxtype is 7 for d17c, unhandled, size 20 +event 215: EOS prop d121 desc record, datasize 684, propxtype 3 +event 215: propxtype is 3, prop is 0xd121, data type is 0x0004, propxcnt is 23. +event 215: suppval[0] of d121 is 0x300. +event 215: suppval[1] of d121 is 0x200. +event 215: suppval[2] of d121 is 0x1300. +event 215: suppval[3] of d121 is 0x1200. +event 215: suppval[4] of d121 is 0xd300. +event 215: suppval[5] of d121 is 0xd200. +event 215: suppval[6] of d121 is 0xe300. +event 215: suppval[7] of d121 is 0xc03. +event 215: suppval[8] of d121 is 0xc02. +event 215: suppval[9] of d121 is 0xc13. +event 215: suppval[10] of d121 is 0xc12. +event 215: suppval[11] of d121 is 0xcd3. +event 215: suppval[12] of d121 is 0xcd2. +event 215: suppval[13] of d121 is 0xce3. +event 215: suppval[14] of d121 is 0xb03. +event 215: suppval[15] of d121 is 0xb02. +event 215: suppval[16] of d121 is 0xb13. +event 215: suppval[17] of d121 is 0xb12. +event 215: suppval[18] of d121 is 0xbd3. +event 215: suppval[19] of d121 is 0xbd2. +event 215: suppval[20] of d121 is 0xbe3. +event 215: suppval[21] of d121 is 0xc00. +event 215: suppval[22] of d121 is 0xb00. +event 216: EOS prop d122 desc record, datasize 684, propxtype 3 +event 216: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 23. +event 216: suppval[0] of d122 is 0x300. +event 216: suppval[1] of d122 is 0x200. +event 216: suppval[2] of d122 is 0x1300. +event 216: suppval[3] of d122 is 0x1200. +event 216: suppval[4] of d122 is 0xd300. +event 216: suppval[5] of d122 is 0xd200. +event 216: suppval[6] of d122 is 0xe300. +event 216: suppval[7] of d122 is 0xc03. +event 216: suppval[8] of d122 is 0xc02. +event 216: suppval[9] of d122 is 0xc13. +event 216: suppval[10] of d122 is 0xc12. +event 216: suppval[11] of d122 is 0xcd3. +event 216: suppval[12] of d122 is 0xcd2. +event 216: suppval[13] of d122 is 0xce3. +event 216: suppval[14] of d122 is 0xb03. +event 216: suppval[15] of d122 is 0xb02. +event 216: suppval[16] of d122 is 0xb13. +event 216: suppval[17] of d122 is 0xb12. +event 216: suppval[18] of d122 is 0xbd3. +event 216: suppval[19] of d122 is 0xbd2. +event 216: suppval[20] of d122 is 0xbe3. +event 216: suppval[21] of d122 is 0xc00. +event 216: suppval[22] of d122 is 0xb00. +event 217: EOS prop d120 desc record, datasize 684, propxtype 3 +event 217: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 23. +event 217: suppval[0] of d120 is 0x300. +event 217: suppval[1] of d120 is 0x200. +event 217: suppval[2] of d120 is 0x1300. +event 217: suppval[3] of d120 is 0x1200. +event 217: suppval[4] of d120 is 0xd300. +event 217: suppval[5] of d120 is 0xd200. +event 217: suppval[6] of d120 is 0xe300. +event 217: suppval[7] of d120 is 0xc03. +event 217: suppval[8] of d120 is 0xc02. +event 217: suppval[9] of d120 is 0xc13. +event 217: suppval[10] of d120 is 0xc12. +event 217: suppval[11] of d120 is 0xcd3. +event 217: suppval[12] of d120 is 0xcd2. +event 217: suppval[13] of d120 is 0xce3. +event 217: suppval[14] of d120 is 0xb03. +event 217: suppval[15] of d120 is 0xb02. +event 217: suppval[16] of d120 is 0xb13. +event 217: suppval[17] of d120 is 0xb12. +event 217: suppval[18] of d120 is 0xbd3. +event 217: suppval[19] of d120 is 0xbd2. +event 217: suppval[20] of d120 is 0xbe3. +event 217: suppval[21] of d120 is 0xc00. +event 217: suppval[22] of d120 is 0xb00. +event 218: EOS prop d11c desc record, datasize 12, propxtype 3 +event 218: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +event 218: suppval[0] of d11c is 0x2. +event 218: suppval[1] of d11c is 0x6. +event 218: suppval[2] of d11c is 0x4. +event 219: EOS prop d1b0 desc record, datasize 48, propxtype 3 +event 219: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 12. +event 219: suppval[0] of d1b0 is 0x0. +event 219: suppval[1] of d1b0 is 0x1. +event 219: suppval[2] of d1b0 is 0x2. +event 219: suppval[3] of d1b0 is 0x3. +event 219: suppval[4] of d1b0 is 0x4. +event 219: suppval[5] of d1b0 is 0x5. +event 219: suppval[6] of d1b0 is 0x6. +event 219: suppval[7] of d1b0 is 0x7. +event 219: suppval[8] of d1b0 is 0x8. +event 219: suppval[9] of d1b0 is 0x9. +event 219: suppval[10] of d1b0 is 0xa. +event 219: suppval[11] of d1b0 is 0xb. +event 220: EOS prop d1b1 desc record, datasize 0, propxtype 3 +event 221: EOS prop d1b6 desc record, datasize 304, propxtype 3 +event 221: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +event 221: suppval[0] of d1b6 is 0x9c4. +event 221: suppval[1] of d1b6 is 0xa28. +event 221: suppval[2] of d1b6 is 0xa8c. +event 221: suppval[3] of d1b6 is 0xaf0. +event 221: suppval[4] of d1b6 is 0xb54. +event 221: suppval[5] of d1b6 is 0xbb8. +event 221: suppval[6] of d1b6 is 0xc1c. +event 221: suppval[7] of d1b6 is 0xc80. +event 221: suppval[8] of d1b6 is 0xce4. +event 221: suppval[9] of d1b6 is 0xd48. +event 221: suppval[10] of d1b6 is 0xdac. +event 221: suppval[11] of d1b6 is 0xe10. +event 221: suppval[12] of d1b6 is 0xe74. +event 221: suppval[13] of d1b6 is 0xed8. +event 221: suppval[14] of d1b6 is 0xf3c. +event 221: suppval[15] of d1b6 is 0xfa0. +event 221: suppval[16] of d1b6 is 0x1004. +event 221: suppval[17] of d1b6 is 0x1068. +event 221: suppval[18] of d1b6 is 0x10cc. +event 221: suppval[19] of d1b6 is 0x1130. +event 221: suppval[20] of d1b6 is 0x1194. +event 221: suppval[21] of d1b6 is 0x11f8. +event 221: suppval[22] of d1b6 is 0x125c. +event 221: suppval[23] of d1b6 is 0x12c0. +event 221: suppval[24] of d1b6 is 0x1324. +event 221: suppval[25] of d1b6 is 0x1388. +event 221: suppval[26] of d1b6 is 0x13ec. +event 221: suppval[27] of d1b6 is 0x1450. +event 221: suppval[28] of d1b6 is 0x14b4. +event 221: suppval[29] of d1b6 is 0x1518. +event 221: suppval[30] of d1b6 is 0x157c. +event 221: suppval[31] of d1b6 is 0x15e0. +event 221: suppval[32] of d1b6 is 0x1644. +event 221: suppval[33] of d1b6 is 0x16a8. +event 221: suppval[34] of d1b6 is 0x170c. +event 221: suppval[35] of d1b6 is 0x1770. +event 221: suppval[36] of d1b6 is 0x17d4. +event 221: suppval[37] of d1b6 is 0x1838. +event 221: suppval[38] of d1b6 is 0x189c. +event 221: suppval[39] of d1b6 is 0x1900. +event 221: suppval[40] of d1b6 is 0x1964. +event 221: suppval[41] of d1b6 is 0x19c8. +event 221: suppval[42] of d1b6 is 0x1a2c. +event 221: suppval[43] of d1b6 is 0x1a90. +event 221: suppval[44] of d1b6 is 0x1af4. +event 221: suppval[45] of d1b6 is 0x1b58. +event 221: suppval[46] of d1b6 is 0x1bbc. +event 221: suppval[47] of d1b6 is 0x1c20. +event 221: suppval[48] of d1b6 is 0x1c84. +event 221: suppval[49] of d1b6 is 0x1ce8. +event 221: suppval[50] of d1b6 is 0x1d4c. +event 221: suppval[51] of d1b6 is 0x1db0. +event 221: suppval[52] of d1b6 is 0x1e14. +event 221: suppval[53] of d1b6 is 0x1e78. +event 221: suppval[54] of d1b6 is 0x1edc. +event 221: suppval[55] of d1b6 is 0x1f40. +event 221: suppval[56] of d1b6 is 0x1fa4. +event 221: suppval[57] of d1b6 is 0x2008. +event 221: suppval[58] of d1b6 is 0x206c. +event 221: suppval[59] of d1b6 is 0x20d0. +event 221: suppval[60] of d1b6 is 0x2134. +event 221: suppval[61] of d1b6 is 0x2198. +event 221: suppval[62] of d1b6 is 0x21fc. +event 221: suppval[63] of d1b6 is 0x2260. +event 221: suppval[64] of d1b6 is 0x22c4. +event 221: suppval[65] of d1b6 is 0x2328. +event 221: suppval[66] of d1b6 is 0x238c. +event 221: suppval[67] of d1b6 is 0x23f0. +event 221: suppval[68] of d1b6 is 0x2454. +event 221: suppval[69] of d1b6 is 0x24b8. +event 221: suppval[70] of d1b6 is 0x251c. +event 221: suppval[71] of d1b6 is 0x2580. +event 221: suppval[72] of d1b6 is 0x25e4. +event 221: suppval[73] of d1b6 is 0x2648. +event 221: suppval[74] of d1b6 is 0x26ac. +event 221: suppval[75] of d1b6 is 0x2710. +event 222: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 222: propdesc d1a9, default value not found. +event 223: EOS prop d1b4 desc record, datasize 44, propxtype 3 +event 223: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 11. +event 223: suppval[0] of d1b4 is 0x0. +event 223: suppval[1] of d1b4 is 0x17. +event 223: suppval[2] of d1b4 is 0x1. +event 223: suppval[3] of d1b4 is 0x8. +event 223: suppval[4] of d1b4 is 0x2. +event 223: suppval[5] of d1b4 is 0x3. +event 223: suppval[6] of d1b4 is 0x4. +event 223: suppval[7] of d1b4 is 0x5. +event 223: suppval[8] of d1b4 is 0x6. +event 223: suppval[9] of d1b4 is 0x9. +event 223: suppval[10] of d1b4 is 0x8000. +event 224: EOS prop d1d9 desc record, datasize 40, propxtype 3 +event 224: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +event 224: suppval[0] of d1d9 is 0x0. +event 224: suppval[1] of d1d9 is 0x3. +event 224: suppval[2] of d1d9 is 0x5. +event 224: suppval[3] of d1d9 is 0x8. +event 224: suppval[4] of d1d9 is 0xb. +event 224: suppval[5] of d1d9 is 0xd. +event 224: suppval[6] of d1d9 is 0x10. +event 224: suppval[7] of d1d9 is 0x13. +event 224: suppval[8] of d1d9 is 0x15. +event 224: suppval[9] of d1d9 is 0x18. +event 225: EOS prop d1ba desc record, datasize 16, propxtype 3 +event 225: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 4. +event 225: suppval[0] of d1ba is 0x2. +event 225: suppval[1] of d1ba is 0xa. +event 225: suppval[2] of d1ba is 0x1. +event 225: suppval[3] of d1ba is 0x4. +event 226: EOS prop d12c desc record, datasize 8, propxtype 3 +event 226: propxtype is 3, prop is 0xd12c, data type is 0x0000, propxcnt is 2. +event 226: data type 0x0000 of d12c unhandled, size 0, raw values: + 0: 0x 0 + 1: 0x 1 +event 227: EOS prop d1cd desc record, datasize 0, propxtype 3 +event 228: EOS prop d1bc desc record, datasize 12, propxtype 3 +event 228: propxtype is 3, prop is 0xd1bc, data type is 0x0006, propxcnt is 3. +event 228: suppval[0] of d1bc is 0x1. +event 228: suppval[1] of d1bc is 0x0. +event 228: suppval[2] of d1bc is 0x3. +event 229: EOS prop d1b8 desc record, datasize 0, propxtype 3 +event 230: EOS prop d1dc desc record, datasize 8, propxtype 3 +event 230: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 2. +event 230: suppval[0] of d1dc is 0x0. +event 230: suppval[1] of d1dc is 0x1. +event 231: EOS prop d126 desc record, datasize 56, propxtype 3 +event 231: propxtype is 3, prop is 0xd126, data type is 0x0000, propxcnt is 13. +event 231: data type 0x0000 of d126 unhandled, size 240, raw values: + 0: 0x f0 + 1: 0x f3 + 2: 0x f5 + 3: 0x f8 + 4: 0x fb + 5: 0x fd + 6: 0x 0 + 7: 0x 3 + 8: 0x 5 + 9: 0x 8 + 10: 0x b + 11: 0x d + 12: 0x 10 + 13: 0x ed8 +event 232: EOS prop d1c1 desc record, datasize 16, propxtype 3 +event 232: propxtype is 3, prop is 0xd1c1, data type is 0x0006, propxcnt is 4. +event 232: suppval[0] of d1c1 is 0x3. +event 232: suppval[1] of d1c1 is 0x1. +event 232: suppval[2] of d1c1 is 0x0. +event 232: suppval[3] of d1c1 is 0x2. +event 233: EOS prop d1c5 desc record, datasize 0, propxtype 3 +event 234: EOS prop d194 desc record, datasize 16, propxtype 3 +event 234: propxtype is 3, prop is 0xd194, data type is 0x0004, propxcnt is 4. +event 234: suppval[0] of d194 is 0x0. +event 234: suppval[1] of d194 is 0x2. +event 234: suppval[2] of d194 is 0x7. +event 234: suppval[3] of d194 is 0x1. +event 235: EOS prop d195 desc record, datasize 0, propxtype 3 +event 236: EOS prop d197 desc record, datasize 0, propxtype 3 +event 237: EOS prop d13d desc record, datasize 0, propxtype 7 +event 237: propxtype is 7 for d13d, unhandled, size 20 +event 238: EOS prop d178 desc record, datasize 16, propxtype 3 +event 238: propxtype is 3, prop is 0xd178, data type is 0x0004, propxcnt is 4. +event 238: suppval[0] of d178 is 0x3. +event 238: suppval[1] of d178 is 0x1. +event 238: suppval[2] of d178 is 0x0. +event 238: suppval[3] of d178 is 0x2. +event 239: EOS prop d179 desc record, datasize 0, propxtype 3 +event 240: EOS prop d17a desc record, datasize 8, propxtype 3 +event 240: propxtype is 3, prop is 0xd17a, data type is 0x0000, propxcnt is 2. +event 240: data type 0x0000 of d17a unhandled, size 1, raw values: + 0: 0x 1 + 1: 0x 0 +event 241: EOS prop d17b desc record, datasize 0, propxtype 3 +event 242: EOS prop d1c9 desc record, datasize 8, propxtype 3 +event 242: propxtype is 3, prop is 0xd1c9, data type is 0x0006, propxcnt is 2. +event 242: suppval[0] of d1c9 is 0x1. +event 242: suppval[1] of d1c9 is 0x0. +event 243: EOS prop d175 desc record, datasize 4, propxtype 3 +event 243: propxtype is 3, prop is 0xd175, data type is 0x0000, propxcnt is 1. +event 243: data type 0x0000 of d175 unhandled, size 0, raw values: + 0: 0x 0 +event 244: EOS prop d14b desc record, datasize 4, propxtype 3 +event 244: propdesc d14b, default value not found. +event 245: EOS prop d13e desc record, datasize 0, propxtype 1 +event 245: propxtype is 1 for d13e, unhandled, size 20 +event 246: EOS prop d1c6 desc record, datasize 12, propxtype 3 +event 246: propxtype is 3, prop is 0xd1c6, data type is 0x0006, propxcnt is 3. +event 246: suppval[0] of d1c6 is 0x0. +event 246: suppval[1] of d1c6 is 0x1. +event 246: suppval[2] of d1c6 is 0x2. +event 247: EOS prop d157 desc record, datasize 0, propxtype 7 +event 247: propxtype is 7 for d157, unhandled, size 20 +event 248: EOS prop d158 desc record, datasize 0, propxtype 7 +event 248: propxtype is 7 for d158, unhandled, size 20 +event 249: EOS prop d159 desc record, datasize 0, propxtype 7 +event 249: propxtype is 7 for d159, unhandled, size 20 +event 250: EOS prop d15a desc record, datasize 0, propxtype 7 +event 250: propxtype is 7 for d15a, unhandled, size 20 +event 251: EOS prop d15b desc record, datasize 0, propxtype 7 +event 251: propxtype is 7 for d15b, unhandled, size 20 +event 252: EOS prop d15c desc record, datasize 0, propxtype 7 +event 252: propxtype is 7 for d15c, unhandled, size 20 +event 253: EOS prop d15d desc record, datasize 0, propxtype 7 +event 253: propxtype is 7 for d15d, unhandled, size 20 +event 254: EOS prop d15e desc record, datasize 0, propxtype 7 +event 254: propxtype is 7 for d15e, unhandled, size 20 +event 255: EOS prop d163 desc record, datasize 0, propxtype 7 +event 255: propxtype is 7 for d163, unhandled, size 20 +event 256: EOS prop d164 desc record, datasize 0, propxtype 7 +event 256: propxtype is 7 for d164, unhandled, size 20 +event 257: EOS prop d165 desc record, datasize 0, propxtype 7 +event 257: propxtype is 7 for d165, unhandled, size 20 +event 258: EOS prop d149 desc record, datasize 0, propxtype 3 +event 259: EOS prop d101 desc record, datasize 80, propxtype 3 +event 259: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 20. +event 259: suppval[0] of d101 is 0xff. +event 259: suppval[1] of d101 is 0x20. +event 259: suppval[2] of d101 is 0x23. +event 259: suppval[3] of d101 is 0x25. +event 259: suppval[4] of d101 is 0x28. +event 259: suppval[5] of d101 is 0x2b. +event 259: suppval[6] of d101 is 0x2d. +event 259: suppval[7] of d101 is 0x30. +event 259: suppval[8] of d101 is 0x33. +event 259: suppval[9] of d101 is 0x35. +event 259: suppval[10] of d101 is 0x38. +event 259: suppval[11] of d101 is 0x3b. +event 259: suppval[12] of d101 is 0x3d. +event 259: suppval[13] of d101 is 0x40. +event 259: suppval[14] of d101 is 0x43. +event 259: suppval[15] of d101 is 0x45. +event 259: suppval[16] of d101 is 0x48. +event 259: suppval[17] of d101 is 0x4b. +event 259: suppval[18] of d101 is 0x4d. +event 259: suppval[19] of d101 is 0x50. +event 260: EOS prop d102 desc record, datasize 212, propxtype 3 +event 260: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 53. +event 260: suppval[0] of d102 is 0x4. +event 260: suppval[1] of d102 is 0x10. +event 260: suppval[2] of d102 is 0x13. +event 260: suppval[3] of d102 is 0x15. +event 260: suppval[4] of d102 is 0x18. +event 260: suppval[5] of d102 is 0x1b. +event 260: suppval[6] of d102 is 0x1d. +event 260: suppval[7] of d102 is 0x20. +event 260: suppval[8] of d102 is 0x23. +event 260: suppval[9] of d102 is 0x25. +event 260: suppval[10] of d102 is 0x28. +event 260: suppval[11] of d102 is 0x2b. +event 260: suppval[12] of d102 is 0x2d. +event 260: suppval[13] of d102 is 0x30. +event 260: suppval[14] of d102 is 0x33. +event 260: suppval[15] of d102 is 0x35. +event 260: suppval[16] of d102 is 0x38. +event 260: suppval[17] of d102 is 0x3b. +event 260: suppval[18] of d102 is 0x3d. +event 260: suppval[19] of d102 is 0x40. +event 260: suppval[20] of d102 is 0x43. +event 260: suppval[21] of d102 is 0x45. +event 260: suppval[22] of d102 is 0x48. +event 260: suppval[23] of d102 is 0x4b. +event 260: suppval[24] of d102 is 0x4d. +event 260: suppval[25] of d102 is 0x50. +event 260: suppval[26] of d102 is 0x53. +event 260: suppval[27] of d102 is 0x55. +event 260: suppval[28] of d102 is 0x58. +event 260: suppval[29] of d102 is 0x5b. +event 260: suppval[30] of d102 is 0x5d. +event 260: suppval[31] of d102 is 0x60. +event 260: suppval[32] of d102 is 0x63. +event 260: suppval[33] of d102 is 0x65. +event 260: suppval[34] of d102 is 0x68. +event 260: suppval[35] of d102 is 0x6b. +event 260: suppval[36] of d102 is 0x6d. +event 260: suppval[37] of d102 is 0x70. +event 260: suppval[38] of d102 is 0x73. +event 260: suppval[39] of d102 is 0x75. +event 260: suppval[40] of d102 is 0x78. +event 260: suppval[41] of d102 is 0x7b. +event 260: suppval[42] of d102 is 0x7d. +event 260: suppval[43] of d102 is 0x80. +event 260: suppval[44] of d102 is 0x83. +event 260: suppval[45] of d102 is 0x85. +event 260: suppval[46] of d102 is 0x88. +event 260: suppval[47] of d102 is 0x8b. +event 260: suppval[48] of d102 is 0x8d. +event 260: suppval[49] of d102 is 0x90. +event 260: suppval[50] of d102 is 0x93. +event 260: suppval[51] of d102 is 0x95. +event 260: suppval[52] of d102 is 0x98. +event 261: EOS prop d1d9 desc record, datasize 40, propxtype 3 +event 261: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +event 261: suppval[0] of d1d9 is 0x0. +event 261: suppval[1] of d1d9 is 0x3. +event 261: suppval[2] of d1d9 is 0x5. +event 261: suppval[3] of d1d9 is 0x8. +event 261: suppval[4] of d1d9 is 0xb. +event 261: suppval[5] of d1d9 is 0xd. +event 261: suppval[6] of d1d9 is 0x10. +event 261: suppval[7] of d1d9 is 0x13. +event 261: suppval[8] of d1d9 is 0x15. +event 261: suppval[9] of d1d9 is 0x18. +event 262: EOS prop d104 desc record, datasize 76, propxtype 3 +event 262: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 262: suppval[0] of d104 is 0xe8. +event 262: suppval[1] of d104 is 0xeb. +event 262: suppval[2] of d104 is 0xed. +event 262: suppval[3] of d104 is 0xf0. +event 262: suppval[4] of d104 is 0xf3. +event 262: suppval[5] of d104 is 0xf5. +event 262: suppval[6] of d104 is 0xf8. +event 262: suppval[7] of d104 is 0xfb. +event 262: suppval[8] of d104 is 0xfd. +event 262: suppval[9] of d104 is 0x0. +event 262: suppval[10] of d104 is 0x3. +event 262: suppval[11] of d104 is 0x5. +event 262: suppval[12] of d104 is 0x8. +event 262: suppval[13] of d104 is 0xb. +event 262: suppval[14] of d104 is 0xd. +event 262: suppval[15] of d104 is 0x10. +event 262: suppval[16] of d104 is 0x13. +event 262: suppval[17] of d104 is 0x15. +event 262: suppval[18] of d104 is 0x18. +event 263: EOS prop d103 desc record, datasize 104, propxtype 3 +event 263: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 263: suppval[0] of d103 is 0x0. +event 263: suppval[1] of d103 is 0x48. +event 263: suppval[2] of d103 is 0x4b. +event 263: suppval[3] of d103 is 0x4d. +event 263: suppval[4] of d103 is 0x50. +event 263: suppval[5] of d103 is 0x53. +event 263: suppval[6] of d103 is 0x55. +event 263: suppval[7] of d103 is 0x58. +event 263: suppval[8] of d103 is 0x5b. +event 263: suppval[9] of d103 is 0x5d. +event 263: suppval[10] of d103 is 0x60. +event 263: suppval[11] of d103 is 0x63. +event 263: suppval[12] of d103 is 0x65. +event 263: suppval[13] of d103 is 0x68. +event 263: suppval[14] of d103 is 0x6b. +event 263: suppval[15] of d103 is 0x6d. +event 263: suppval[16] of d103 is 0x70. +event 263: suppval[17] of d103 is 0x73. +event 263: suppval[18] of d103 is 0x75. +event 263: suppval[19] of d103 is 0x78. +event 263: suppval[20] of d103 is 0x7b. +event 263: suppval[21] of d103 is 0x7d. +event 263: suppval[22] of d103 is 0x80. +event 263: suppval[23] of d103 is 0x83. +event 263: suppval[24] of d103 is 0x85. +event 263: suppval[25] of d103 is 0x88. +event 264: EOS prop d1d5 desc record, datasize 0, propxtype 3 +event 265: EOS prop d101 desc record, datasize 80, propxtype 3 +event 265: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 20. +event 265: suppval[0] of d101 is 0xff. +event 265: suppval[1] of d101 is 0x20. +event 265: suppval[2] of d101 is 0x23. +event 265: suppval[3] of d101 is 0x25. +event 265: suppval[4] of d101 is 0x28. +event 265: suppval[5] of d101 is 0x2b. +event 265: suppval[6] of d101 is 0x2d. +event 265: suppval[7] of d101 is 0x30. +event 265: suppval[8] of d101 is 0x33. +event 265: suppval[9] of d101 is 0x35. +event 265: suppval[10] of d101 is 0x38. +event 265: suppval[11] of d101 is 0x3b. +event 265: suppval[12] of d101 is 0x3d. +event 265: suppval[13] of d101 is 0x40. +event 265: suppval[14] of d101 is 0x43. +event 265: suppval[15] of d101 is 0x45. +event 265: suppval[16] of d101 is 0x48. +event 265: suppval[17] of d101 is 0x4b. +event 265: suppval[18] of d101 is 0x4d. +event 265: suppval[19] of d101 is 0x50. +event 266: EOS prop d102 desc record, datasize 212, propxtype 3 +event 266: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 53. +event 266: suppval[0] of d102 is 0x4. +event 266: suppval[1] of d102 is 0x10. +event 266: suppval[2] of d102 is 0x13. +event 266: suppval[3] of d102 is 0x15. +event 266: suppval[4] of d102 is 0x18. +event 266: suppval[5] of d102 is 0x1b. +event 266: suppval[6] of d102 is 0x1d. +event 266: suppval[7] of d102 is 0x20. +event 266: suppval[8] of d102 is 0x23. +event 266: suppval[9] of d102 is 0x25. +event 266: suppval[10] of d102 is 0x28. +event 266: suppval[11] of d102 is 0x2b. +event 266: suppval[12] of d102 is 0x2d. +event 266: suppval[13] of d102 is 0x30. +event 266: suppval[14] of d102 is 0x33. +event 266: suppval[15] of d102 is 0x35. +event 266: suppval[16] of d102 is 0x38. +event 266: suppval[17] of d102 is 0x3b. +event 266: suppval[18] of d102 is 0x3d. +event 266: suppval[19] of d102 is 0x40. +event 266: suppval[20] of d102 is 0x43. +event 266: suppval[21] of d102 is 0x45. +event 266: suppval[22] of d102 is 0x48. +event 266: suppval[23] of d102 is 0x4b. +event 266: suppval[24] of d102 is 0x4d. +event 266: suppval[25] of d102 is 0x50. +event 266: suppval[26] of d102 is 0x53. +event 266: suppval[27] of d102 is 0x55. +event 266: suppval[28] of d102 is 0x58. +event 266: suppval[29] of d102 is 0x5b. +event 266: suppval[30] of d102 is 0x5d. +event 266: suppval[31] of d102 is 0x60. +event 266: suppval[32] of d102 is 0x63. +event 266: suppval[33] of d102 is 0x65. +event 266: suppval[34] of d102 is 0x68. +event 266: suppval[35] of d102 is 0x6b. +event 266: suppval[36] of d102 is 0x6d. +event 266: suppval[37] of d102 is 0x70. +event 266: suppval[38] of d102 is 0x73. +event 266: suppval[39] of d102 is 0x75. +event 266: suppval[40] of d102 is 0x78. +event 266: suppval[41] of d102 is 0x7b. +event 266: suppval[42] of d102 is 0x7d. +event 266: suppval[43] of d102 is 0x80. +event 266: suppval[44] of d102 is 0x83. +event 266: suppval[45] of d102 is 0x85. +event 266: suppval[46] of d102 is 0x88. +event 266: suppval[47] of d102 is 0x8b. +event 266: suppval[48] of d102 is 0x8d. +event 266: suppval[49] of d102 is 0x90. +event 266: suppval[50] of d102 is 0x93. +event 266: suppval[51] of d102 is 0x95. +event 266: suppval[52] of d102 is 0x98. +event 267: EOS prop d1d9 desc record, datasize 40, propxtype 3 +event 267: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +event 267: suppval[0] of d1d9 is 0x0. +event 267: suppval[1] of d1d9 is 0x3. +event 267: suppval[2] of d1d9 is 0x5. +event 267: suppval[3] of d1d9 is 0x8. +event 267: suppval[4] of d1d9 is 0xb. +event 267: suppval[5] of d1d9 is 0xd. +event 267: suppval[6] of d1d9 is 0x10. +event 267: suppval[7] of d1d9 is 0x13. +event 267: suppval[8] of d1d9 is 0x15. +event 267: suppval[9] of d1d9 is 0x18. +event 268: EOS prop d104 desc record, datasize 76, propxtype 3 +event 268: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 268: suppval[0] of d104 is 0xe8. +event 268: suppval[1] of d104 is 0xeb. +event 268: suppval[2] of d104 is 0xed. +event 268: suppval[3] of d104 is 0xf0. +event 268: suppval[4] of d104 is 0xf3. +event 268: suppval[5] of d104 is 0xf5. +event 268: suppval[6] of d104 is 0xf8. +event 268: suppval[7] of d104 is 0xfb. +event 268: suppval[8] of d104 is 0xfd. +event 268: suppval[9] of d104 is 0x0. +event 268: suppval[10] of d104 is 0x3. +event 268: suppval[11] of d104 is 0x5. +event 268: suppval[12] of d104 is 0x8. +event 268: suppval[13] of d104 is 0xb. +event 268: suppval[14] of d104 is 0xd. +event 268: suppval[15] of d104 is 0x10. +event 268: suppval[16] of d104 is 0x13. +event 268: suppval[17] of d104 is 0x15. +event 268: suppval[18] of d104 is 0x18. +event 269: EOS prop d103 desc record, datasize 104, propxtype 3 +event 269: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 269: suppval[0] of d103 is 0x0. +event 269: suppval[1] of d103 is 0x48. +event 269: suppval[2] of d103 is 0x4b. +event 269: suppval[3] of d103 is 0x4d. +event 269: suppval[4] of d103 is 0x50. +event 269: suppval[5] of d103 is 0x53. +event 269: suppval[6] of d103 is 0x55. +event 269: suppval[7] of d103 is 0x58. +event 269: suppval[8] of d103 is 0x5b. +event 269: suppval[9] of d103 is 0x5d. +event 269: suppval[10] of d103 is 0x60. +event 269: suppval[11] of d103 is 0x63. +event 269: suppval[12] of d103 is 0x65. +event 269: suppval[13] of d103 is 0x68. +event 269: suppval[14] of d103 is 0x6b. +event 269: suppval[15] of d103 is 0x6d. +event 269: suppval[16] of d103 is 0x70. +event 269: suppval[17] of d103 is 0x73. +event 269: suppval[18] of d103 is 0x75. +event 269: suppval[19] of d103 is 0x78. +event 269: suppval[20] of d103 is 0x7b. +event 269: suppval[21] of d103 is 0x7d. +event 269: suppval[22] of d103 is 0x80. +event 269: suppval[23] of d103 is 0x83. +event 269: suppval[24] of d103 is 0x85. +event 269: suppval[25] of d103 is 0x88. +event 270: EOS prop d1d5 desc record, datasize 0, propxtype 3 +event 271: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 271: propxtype is 7 for d1a0, unhandled, size 20 +event 272: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 272: propxtype is 7 for d1a0, unhandled, size 20 +event 273: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 273: propxtype is 7 for d1a0, unhandled, size 20 +event 274: EOS prop d101 desc record, datasize 80, propxtype 3 +event 274: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 20. +event 274: suppval[0] of d101 is 0xff. +event 274: suppval[1] of d101 is 0x20. +event 274: suppval[2] of d101 is 0x23. +event 274: suppval[3] of d101 is 0x25. +event 274: suppval[4] of d101 is 0x28. +event 274: suppval[5] of d101 is 0x2b. +event 274: suppval[6] of d101 is 0x2d. +event 274: suppval[7] of d101 is 0x30. +event 274: suppval[8] of d101 is 0x33. +event 274: suppval[9] of d101 is 0x35. +event 274: suppval[10] of d101 is 0x38. +event 274: suppval[11] of d101 is 0x3b. +event 274: suppval[12] of d101 is 0x3d. +event 274: suppval[13] of d101 is 0x40. +event 274: suppval[14] of d101 is 0x43. +event 274: suppval[15] of d101 is 0x45. +event 274: suppval[16] of d101 is 0x48. +event 274: suppval[17] of d101 is 0x4b. +event 274: suppval[18] of d101 is 0x4d. +event 274: suppval[19] of d101 is 0x50. +event 275: EOS prop d102 desc record, datasize 212, propxtype 3 +event 275: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 53. +event 275: suppval[0] of d102 is 0x4. +event 275: suppval[1] of d102 is 0x10. +event 275: suppval[2] of d102 is 0x13. +event 275: suppval[3] of d102 is 0x15. +event 275: suppval[4] of d102 is 0x18. +event 275: suppval[5] of d102 is 0x1b. +event 275: suppval[6] of d102 is 0x1d. +event 275: suppval[7] of d102 is 0x20. +event 275: suppval[8] of d102 is 0x23. +event 275: suppval[9] of d102 is 0x25. +event 275: suppval[10] of d102 is 0x28. +event 275: suppval[11] of d102 is 0x2b. +event 275: suppval[12] of d102 is 0x2d. +event 275: suppval[13] of d102 is 0x30. +event 275: suppval[14] of d102 is 0x33. +event 275: suppval[15] of d102 is 0x35. +event 275: suppval[16] of d102 is 0x38. +event 275: suppval[17] of d102 is 0x3b. +event 275: suppval[18] of d102 is 0x3d. +event 275: suppval[19] of d102 is 0x40. +event 275: suppval[20] of d102 is 0x43. +event 275: suppval[21] of d102 is 0x45. +event 275: suppval[22] of d102 is 0x48. +event 275: suppval[23] of d102 is 0x4b. +event 275: suppval[24] of d102 is 0x4d. +event 275: suppval[25] of d102 is 0x50. +event 275: suppval[26] of d102 is 0x53. +event 275: suppval[27] of d102 is 0x55. +event 275: suppval[28] of d102 is 0x58. +event 275: suppval[29] of d102 is 0x5b. +event 275: suppval[30] of d102 is 0x5d. +event 275: suppval[31] of d102 is 0x60. +event 275: suppval[32] of d102 is 0x63. +event 275: suppval[33] of d102 is 0x65. +event 275: suppval[34] of d102 is 0x68. +event 275: suppval[35] of d102 is 0x6b. +event 275: suppval[36] of d102 is 0x6d. +event 275: suppval[37] of d102 is 0x70. +event 275: suppval[38] of d102 is 0x73. +event 275: suppval[39] of d102 is 0x75. +event 275: suppval[40] of d102 is 0x78. +event 275: suppval[41] of d102 is 0x7b. +event 275: suppval[42] of d102 is 0x7d. +event 275: suppval[43] of d102 is 0x80. +event 275: suppval[44] of d102 is 0x83. +event 275: suppval[45] of d102 is 0x85. +event 275: suppval[46] of d102 is 0x88. +event 275: suppval[47] of d102 is 0x8b. +event 275: suppval[48] of d102 is 0x8d. +event 275: suppval[49] of d102 is 0x90. +event 275: suppval[50] of d102 is 0x93. +event 275: suppval[51] of d102 is 0x95. +event 275: suppval[52] of d102 is 0x98. +event 276: EOS prop d1d9 desc record, datasize 40, propxtype 3 +event 276: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +event 276: suppval[0] of d1d9 is 0x0. +event 276: suppval[1] of d1d9 is 0x3. +event 276: suppval[2] of d1d9 is 0x5. +event 276: suppval[3] of d1d9 is 0x8. +event 276: suppval[4] of d1d9 is 0xb. +event 276: suppval[5] of d1d9 is 0xd. +event 276: suppval[6] of d1d9 is 0x10. +event 276: suppval[7] of d1d9 is 0x13. +event 276: suppval[8] of d1d9 is 0x15. +event 276: suppval[9] of d1d9 is 0x18. +event 277: EOS prop d104 desc record, datasize 76, propxtype 3 +event 277: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 277: suppval[0] of d104 is 0xe8. +event 277: suppval[1] of d104 is 0xeb. +event 277: suppval[2] of d104 is 0xed. +event 277: suppval[3] of d104 is 0xf0. +event 277: suppval[4] of d104 is 0xf3. +event 277: suppval[5] of d104 is 0xf5. +event 277: suppval[6] of d104 is 0xf8. +event 277: suppval[7] of d104 is 0xfb. +event 277: suppval[8] of d104 is 0xfd. +event 277: suppval[9] of d104 is 0x0. +event 277: suppval[10] of d104 is 0x3. +event 277: suppval[11] of d104 is 0x5. +event 277: suppval[12] of d104 is 0x8. +event 277: suppval[13] of d104 is 0xb. +event 277: suppval[14] of d104 is 0xd. +event 277: suppval[15] of d104 is 0x10. +event 277: suppval[16] of d104 is 0x13. +event 277: suppval[17] of d104 is 0x15. +event 277: suppval[18] of d104 is 0x18. +event 278: EOS prop d103 desc record, datasize 104, propxtype 3 +event 278: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 278: suppval[0] of d103 is 0x0. +event 278: suppval[1] of d103 is 0x48. +event 278: suppval[2] of d103 is 0x4b. +event 278: suppval[3] of d103 is 0x4d. +event 278: suppval[4] of d103 is 0x50. +event 278: suppval[5] of d103 is 0x53. +event 278: suppval[6] of d103 is 0x55. +event 278: suppval[7] of d103 is 0x58. +event 278: suppval[8] of d103 is 0x5b. +event 278: suppval[9] of d103 is 0x5d. +event 278: suppval[10] of d103 is 0x60. +event 278: suppval[11] of d103 is 0x63. +event 278: suppval[12] of d103 is 0x65. +event 278: suppval[13] of d103 is 0x68. +event 278: suppval[14] of d103 is 0x6b. +event 278: suppval[15] of d103 is 0x6d. +event 278: suppval[16] of d103 is 0x70. +event 278: suppval[17] of d103 is 0x73. +event 278: suppval[18] of d103 is 0x75. +event 278: suppval[19] of d103 is 0x78. +event 278: suppval[20] of d103 is 0x7b. +event 278: suppval[21] of d103 is 0x7d. +event 278: suppval[22] of d103 is 0x80. +event 278: suppval[23] of d103 is 0x83. +event 278: suppval[24] of d103 is 0x85. +event 278: suppval[25] of d103 is 0x88. +event 279: EOS prop d1d5 desc record, datasize 0, propxtype 3 +event 280: EOS prop d208 desc record, datasize 0, propxtype 7 +event 280: propxtype is 7 for d208, unhandled, size 20 +event 281: EOS prop 0000 desc record, datasize 12, propxtype 3 +event 281: propxtype is 3, prop is 0x0000, data type is 0x0000, propxcnt is 3. +event 281: data type 0x0000 of 0 unhandled, size 1, raw values: + 0: 0x 1 + 1: 0x 2 + 2: 0x 0 +event 282: EOS prop 0000 desc record, datasize 28, propxtype 3 +event 282: propxtype is 3, prop is 0x0000, data type is 0x0000, propxcnt is 7. +event 282: data type 0x0000 of 0 unhandled, size 15, raw values: + 0: 0x f + 1: 0x 1e + 2: 0x 3c + 3: 0x b4 + 4: 0x 12c + 5: 0x 258 + 6: 0x 708 +event 283: unhandled EOS event CTGInfoCheckComplete (size 12) + 8: 01 + 9: 00 + 10: 02 + 11: 00 +event 284: unhandled EOS event PowerZoomInfoChanged (size 12) + 8: 00 + 9: 00 + 10: 00 + 11: 00 +olcinfoversion is 18 +event 285: EOS event OLCInfoChanged (size 97) + 0: 5d + 1: 00 + 2: 00 + 3: 00 + 4: ff + 5: 1f + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 01 + 11: 03 + 12: 98 + 13: 10 + 14: 00 + 15: 80 + 16: 00 + 17: 01 + 18: 01 + 19: 00 + 20: 50 + 21: 00 + 22: 20 + 23: 00 + 24: ff + 25: 00 + 26: 01 + 27: 01 + 28: 00 + 29: 00 + 30: 68 + 31: 28 + 32: 04 + 33: 01 + 34: 06 + 35: 0f + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 01 + 43: 01 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 00 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + +event: c181 +event: 4003 +event: c183 +event: c184 +event: c185 +event: c186 +event: c187 +event: c188 +event: c189 +event: c18a +event: c18b +event: c18d +event: c18e +event: c18f +event: c190 +event: c191 +event: c1a0 +event: c1a1 +event: 4009 +deviceprop: d101 +deviceprop: d102 +deviceprop: d103 +deviceprop: d1a7 +deviceprop: d105 +deviceprop: d108 +deviceprop: d106 +deviceprop: d107 +deviceprop: d109 +deviceprop: d10a +deviceprop: d10b +deviceprop: d10c +deviceprop: d10d +deviceprop: d10e +deviceprop: d10f +deviceprop: d11b +deviceprop: d114 +deviceprop: d116 +deviceprop: d119 +deviceprop: d11a +deviceprop: d110 +deviceprop: d115 +deviceprop: d104 +deviceprop: d11d +deviceprop: d111 +deviceprop: d112 +deviceprop: d113 +deviceprop: d17c +deviceprop: d17d +deviceprop: d17e +deviceprop: d120 +deviceprop: d121 +deviceprop: d122 +deviceprop: d15d +deviceprop: d157 +deviceprop: d158 +deviceprop: d159 +deviceprop: d15a +deviceprop: d15b +deviceprop: d15c +deviceprop: d163 +deviceprop: d164 +deviceprop: d165 +deviceprop: d170 +deviceprop: d171 +deviceprop: d172 +deviceprop: d11c +deviceprop: d1a1 +deviceprop: d1a2 +deviceprop: d1a5 +deviceprop: d1a8 +deviceprop: d1ab +deviceprop: d1b0 +deviceprop: d1b1 +deviceprop: d1b2 +deviceprop: d1b3 +deviceprop: d1b4 +deviceprop: d1b5 +deviceprop: d1b6 +deviceprop: d1a9 +deviceprop: d146 +deviceprop: d147 +deviceprop: d1ad +deviceprop: d1ae +deviceprop: d1aa +deviceprop: d11e +deviceprop: d11f +deviceprop: d1af +deviceprop: d1d0 +deviceprop: d1d1 +deviceprop: d1d9 +deviceprop: d1ba +deviceprop: d1cd +deviceprop: d20d +deviceprop: d1bc +deviceprop: d1b8 +deviceprop: d1d3 +deviceprop: d1d8 +deviceprop: d17f +deviceprop: d1b7 +deviceprop: d1cb +deviceprop: d1db +deviceprop: d1dc +deviceprop: d1a3 +deviceprop: d1a4 +deviceprop: d1df +deviceprop: d1bd +deviceprop: d1c1 +deviceprop: d1c0 +deviceprop: d1bf +deviceprop: d1c4 +deviceprop: d1c2 +deviceprop: d1c5 +deviceprop: d194 +deviceprop: d195 +deviceprop: d196 +deviceprop: d197 +deviceprop: d198 +deviceprop: d1dd +deviceprop: d1c7 +deviceprop: d199 +deviceprop: d138 +deviceprop: d139 +deviceprop: d13a +deviceprop: d13b +deviceprop: d13c +deviceprop: d14d +deviceprop: d19d +deviceprop: d19a +deviceprop: d19c +deviceprop: d1c6 +deviceprop: d1c8 +deviceprop: d177 +deviceprop: d178 +deviceprop: d17b +deviceprop: d179 +deviceprop: d1c9 +deviceprop: d19f +deviceprop: d175 +deviceprop: d14c +deviceprop: d14b +deviceprop: d169 +deviceprop: d16a +deviceprop: d16b +deviceprop: d136 +deviceprop: d137 +deviceprop: d124 +deviceprop: d167 +deviceprop: d208 +deviceprop: d126 +deviceprop: d02b +unk: 0000 +unk: 0001 +unk: 0002 +unk: 0004 +unk: 0008 + +event 0: EOS prop d115 info record, datasize is 1 +event 0: currentvalue of d115 is +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is +event 3: EOS prop d1af info record, datasize is 13 +event 3: currentvalue of d1af is 882040000512 + +event 0: EOS prop d116 info record, datasize is 4 +event 0: currentvalue of d116 is 811 +event 1: EOS prop d105 info record, datasize is 4 +event 1: currentvalue of d105 is 37 +event 2: EOS prop d138 info record, datasize is 4 +event 2: Unknown EOS property d138, datasize is 4 + 0: 37 + 1: 00 + 2: 00 + 3: 00 +event 3: EOS prop d102 info record, datasize is 4 +event 3: currentvalue of d102 is 80 +event 4: EOS prop d101 info record, datasize is 4 +event 4: currentvalue of d101 is ff +event 5: EOS prop d103 info record, datasize is 4 +event 5: currentvalue of d103 is 0 +event 6: EOS prop d106 info record, datasize is 4 +event 6: currentvalue of d106 is 4 +event 7: EOS prop d108 info record, datasize is 4 +event 7: currentvalue of d108 is 1 +event 8: EOS prop d107 info record, datasize is 4 +event 8: currentvalue of d107 is 3 +event 9: EOS prop d109 info record, datasize is 4 +event 9: currentvalue of d109 is 0 +event 10: EOS prop d11b info record, datasize is 4 +event 10: currentvalue of d11b is 60f +event 11: EOS prop d104 info record, datasize is 4 +event 11: currentvalue of d104 is 0 +event 12: EOS prop d10c info record, datasize is 4 +event 13: EOS prop d10b info record, datasize is 4 +event 14: EOS prop d10e info record, datasize is 4 +event 14: currentvalue of d10e is 0 +event 15: EOS prop d10d info record, datasize is 4 +event 15: currentvalue of d10d is 0 +event 16: EOS prop d1d9 info record, datasize is 4 +event 16: currentvalue of d1d9 is 0 +event 17: EOS prop d1d5 info record, datasize is 4 +event 17: Unknown EOS property d1d5, datasize is 4, using uint32 + 0: 0x 1 +event 17: currentvalue of d1d5 is 1 +event 18: EOS prop d1c1 info record, datasize is 4 +event 18: Unknown EOS property d1c1, datasize is 4, using uint32 + 0: 0x 0 +event 18: currentvalue of d1c1 is 0 +event 19: EOS prop d10f info record, datasize is 4 +event 19: currentvalue of d10f is 1 +event 20: EOS prop d114 info record, datasize is 4 +event 20: currentvalue of d114 is 3c +event 21: EOS prop d1b7 info record, datasize is 4 +event 21: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 1 +event 21: currentvalue of d1b7 is 1 +event 22: EOS prop d110 info record, datasize is 4 +event 22: currentvalue of d110 is 87 +event 23: EOS prop d157 info record, datasize is 40 +event 23: Unknown EOS property d157, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 24: EOS prop d158 info record, datasize is 40 +event 24: Unknown EOS property d158, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 25: EOS prop d159 info record, datasize is 40 +event 25: Unknown EOS property d159, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 05 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 26: EOS prop d15a info record, datasize is 40 +event 26: Unknown EOS property d15a, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 +event 27: EOS prop d15b info record, datasize is 40 +event 27: Unknown EOS property d15b, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 +event 28: EOS prop d15c info record, datasize is 40 +event 28: Unknown EOS property d15c, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 29: EOS prop d15d info record, datasize is 40 +event 29: Unknown EOS property d15d, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 30: EOS prop d15e info record, datasize is 40 +event 30: Unknown EOS property d15e, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 +event 31: EOS prop d163 info record, datasize is 44 +event 31: Unknown EOS property d163, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 32: EOS prop d164 info record, datasize is 44 +event 32: Unknown EOS property d164, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 33: EOS prop d165 info record, datasize is 44 +event 33: Unknown EOS property d165, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 34: EOS prop d1b1 info record, datasize is 4 +event 34: currentvalue of d1b1 is 1 +event 35: EOS prop d1bc info record, datasize is 4 +event 35: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 35: currentvalue of d1bc is 1 +event 36: EOS prop d1b2 info record, datasize is 4 +event 36: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 36: currentvalue of d1b2 is 0 +event 37: EOS prop d1b3 info record, datasize is 4 +event 37: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 37: currentvalue of d1b3 is 0 +event 38: EOS prop d1b4 info record, datasize is 4 +event 38: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 0 +event 38: currentvalue of d1b4 is 0 +event 39: EOS prop d1b6 info record, datasize is 4 +event 39: Unknown EOS property d1b6, datasize is 4, using uint32 + 0: 0x 1450 +event 39: currentvalue of d1b6 is 1450 +event 40: EOS prop d1ab info record, datasize is 4 +event 40: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 40: currentvalue of d1ab is 0 +event 41: EOS prop d1b0 info record, datasize is 4 +event 41: currentvalue of d1b0 is 1 +event 42: EOS prop d10a info record, datasize is 4 +event 42: currentvalue of d10a is 1450 +event 43: EOS prop d1a8 info record, datasize is 4 +event 43: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 43: currentvalue of d1a8 is 1 +event 44: EOS prop d198 info record, datasize is 4 +event 44: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 45: EOS prop d1dd info record, datasize is 4 +event 45: currentvalue of d1dd is 103a +event 46: EOS prop d1a1 info record, datasize is 8 +event 46: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 47: EOS prop d115 info record, datasize is 1 +event 47: currentvalue of d115 is +event 48: EOS prop d1a4 info record, datasize is 484 +event 48: Unknown EOS property d1a4, datasize is 484 + 0: e4 + 1: 01 + 2: 00 + 3: 00 + 4: 30 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 31 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 32 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 00 + 97: 00 + 98: 00 + 99: 00 + 100: 33 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 34 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 35 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 36 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 00 + 209: 00 + 210: 00 + 211: 00 + 212: 00 + 213: 00 + 214: 00 + 215: 00 + 216: 00 + 217: 00 + 218: 00 + 219: 00 + 220: 00 + 221: 00 + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 37 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 38 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: 00 + 273: 00 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: 00 + 281: 00 + 282: 00 + 283: 00 + 284: 00 + 285: 00 + 286: 00 + 287: 00 + 288: 00 + 289: 00 + 290: 00 + 291: 00 + 292: 39 + 293: 00 + 294: 00 + 295: 00 + 296: 00 + 297: 00 + 298: 00 + 299: 00 + 300: 00 + 301: 00 + 302: 00 + 303: 00 + 304: 00 + 305: 00 + 306: 00 + 307: 00 + 308: 00 + 309: 00 + 310: 00 + 311: 00 + 312: 00 + 313: 00 + 314: 00 + 315: 00 + 316: 00 + 317: 00 + 318: 00 + 319: 00 + 320: 00 + 321: 00 + 322: 00 + 323: 00 + 324: 31 + 325: 30 + 326: 00 + 327: 00 + 328: 00 + 329: 00 + 330: 00 + 331: 00 + 332: 00 + 333: 00 + 334: 00 + 335: 00 + 336: 00 + 337: 00 + 338: 00 + 339: 00 + 340: 00 + 341: 00 + 342: 00 + 343: 00 + 344: 00 + 345: 00 + 346: 00 + 347: 00 + 348: 00 + 349: 00 + 350: 00 + 351: 00 + 352: 00 + 353: 00 + 354: 00 + 355: 00 + 356: 31 + 357: 31 + 358: 00 + 359: 00 + 360: 00 + 361: 00 + 362: 00 + 363: 00 + 364: 00 + 365: 00 + 366: 00 + 367: 00 + 368: 00 + 369: 00 + 370: 00 + 371: 00 + 372: 00 + 373: 00 + 374: 00 + 375: 00 + 376: 00 + 377: 00 + 378: 00 + 379: 00 + 380: 00 + 381: 00 + 382: 00 + 383: 00 + 384: 00 + 385: 00 + 386: 00 + 387: 00 + 388: 31 + 389: 32 + 390: 00 + 391: 00 + 392: 00 + 393: 00 + 394: 00 + 395: 00 + 396: 00 + 397: 00 + 398: 00 + 399: 00 + 400: 00 + 401: 00 + 402: 00 + 403: 00 + 404: 00 + 405: 00 + 406: 00 + 407: 00 + 408: 00 + 409: 00 + 410: 00 + 411: 00 + 412: 00 + 413: 00 + 414: 00 + 415: 00 + 416: 00 + 417: 00 + 418: 00 + 419: 00 + 420: 31 + 421: 33 + 422: 00 + 423: 00 + 424: 00 + 425: 00 + 426: 00 + 427: 00 + 428: 00 + 429: 00 + 430: 00 + 431: 00 + 432: 00 + 433: 00 + 434: 00 + 435: 00 + 436: 00 + 437: 00 + 438: 00 + 439: 00 + 440: 00 + 441: 00 + 442: 00 + 443: 00 + 444: 00 + 445: 00 + 446: 00 + 447: 00 + 448: 00 + 449: 00 + 450: 00 + 451: 00 + 452: 31 + 453: 34 + 454: 00 + 455: 00 + 456: 00 + 457: 00 + 458: 00 + 459: 00 + 460: 00 + 461: 00 + 462: 00 + 463: 00 + 464: 00 + 465: 00 + 466: 00 + 467: 00 + 468: 00 + 469: 00 + 470: 00 + 471: 00 + 472: 00 + 473: 00 + 474: 00 + 475: 00 + 476: 00 + 477: 00 + 478: 00 + 479: 00 + 480: 00 + 481: 00 + 482: 00 + 483: 00 +event 49: EOS prop d1b8 info record, datasize is 4 +event 49: currentvalue of d1b8 is 3 +event 50: EOS prop d1ba info record, datasize is 4 +event 50: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 2 +event 50: currentvalue of d1ba is 2 +event 51: EOS prop d1c9 info record, datasize is 4 +event 51: currentvalue of d1c9 is 0 +event 52: EOS prop d17a info record, datasize is 4 +event 52: Unknown EOS property d17a, datasize is 4 + 0: 01 + 1: aa + 2: be + 3: aa +event 53: EOS prop d1cd info record, datasize is 44 +event 53: Unknown EOS property d1cd, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: b5 + 13: 0b + 14: 00 + 15: 00 + 16: 0f + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 +event 54: EOS prop d1c5 info record, datasize is 4 +event 54: Unknown EOS property d1c5, datasize is 4 + 0: 37 + 1: 00 + 2: 00 + 3: 00 +event 55: EOS prop d1d4 info record, datasize is 4 +event 55: Unknown EOS property d1d4, datasize is 4, using uint32 + 0: 0x 0 +event 55: currentvalue of d1d4 is 0 +event 56: EOS prop d1c2 info record, datasize is 4 +event 56: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 57: EOS prop d1bd info record, datasize is 4 +event 57: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 58: EOS prop d194 info record, datasize is 4 +event 58: currentvalue of d194 is 0 +event 59: EOS prop d195 info record, datasize is 4 +event 59: Unknown EOS property d195, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 60: EOS prop d196 info record, datasize is 4 +event 60: Unknown EOS property d196, datasize is 4 + 0: 2f + 1: 00 + 2: 00 + 3: 00 +event 61: EOS prop d197 info record, datasize is 4 +event 61: Unknown EOS property d197, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 62: EOS prop d13c info record, datasize is 4 +event 62: currentvalue of d13c is aaaa5757 +event 63: EOS prop d13d info record, datasize is 24 +event 63: Unknown EOS property d13d, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 64: EOS prop d179 info record, datasize is 4 +event 64: Unknown EOS property d179, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 65: EOS prop d17b info record, datasize is 4 +event 65: Unknown EOS property d17b, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 66: EOS prop d177 info record, datasize is 24 +event 66: Unknown EOS property d177, datasize is 24 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 67: EOS prop d176 info record, datasize is 4 +event 67: Unknown EOS property d176, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 68: EOS prop d175 info record, datasize is 4 +event 68: Unknown EOS property d175, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 69: EOS prop d137 info record, datasize is 4 +event 69: Unknown EOS property d137, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 70: EOS prop d178 info record, datasize is 4 +event 70: currentvalue of d178 is 0 +event 71: EOS prop d121 info record, datasize is 36 +event 71: currentvalue of d121 is 2 +event 71: decoded imageformat, currentvalue of d121 is b13 +event 72: EOS prop d120 info record, datasize is 36 +event 72: currentvalue of d120 is 2 +event 72: decoded imageformat, currentvalue of d120 is b13 +event 73: EOS prop d122 info record, datasize is 36 +event 73: currentvalue of d122 is 2 +event 73: decoded imageformat, currentvalue of d122 is b13 +event 74: EOS prop d133 info record, datasize is 4 +event 74: Unknown EOS property d133, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 75: EOS prop d131 info record, datasize is 4 +event 75: Unknown EOS property d131, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 76: EOS prop d132 info record, datasize is 4 +event 76: Unknown EOS property d132, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 77: EOS prop d130 info record, datasize is 4 +event 77: Unknown EOS property d130, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 78: EOS prop d11c info record, datasize is 4 +event 78: currentvalue of d11c is 2 +event 79: EOS prop d113 info record, datasize is 4 +event 79: currentvalue of d113 is 5d96e880 +event 80: EOS prop d1a7 info record, datasize is 40 +event 80: Unknown EOS property d1a7, datasize is 40 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 +event 81: EOS prop d112 info record, datasize is 4 +event 81: currentvalue of d112 is 0 +event 82: EOS prop d111 info record, datasize is 4 +event 82: currentvalue of d111 is 2 +event 83: EOS prop d1d8 info record, datasize is 63 +event 83: currentvalue of d1d8 is EF-S24mm f/2.8 STM +event 84: EOS prop d1da info record, datasize is 16 +event 84: Unknown EOS property d1da, datasize is 16 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 +event 85: EOS prop d17e info record, datasize is 4 +event 85: currentvalue of d17e is 1 +event 86: EOS prop d17c info record, datasize is 4 +event 86: currentvalue of d17c is 5d96cc60 +event 87: EOS prop d11f info record, datasize is 4 +event 87: currentvalue of d11f is 91900000 +event 88: EOS prop d11f info record, datasize is 4 +event 88: currentvalue of d11f is 91900000 +event 89: EOS prop d11e info record, datasize is 4 +event 89: currentvalue of d11e is 20001 +event 90: EOS prop d1aa info record, datasize is 4 +event 90: Unknown EOS property d1aa, datasize is 4, using uint32 + 0: 0x 0 +event 90: currentvalue of d1aa is 0 +event 91: EOS prop d139 info record, datasize is 12 +event 91: Unknown EOS property d139, datasize is 12 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 92: EOS prop d1c3 info record, datasize is 4 +event 92: Unknown EOS property d1c3, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 93: EOS prop d1bf info record, datasize is 4 +event 93: Unknown EOS property d1bf, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 94: EOS prop d11d info record, datasize is 4 +event 94: currentvalue of d11d is 0 +event 95: EOS prop d1c7 info record, datasize is 4 +event 95: Unknown EOS property d1c7, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 96: EOS prop d1c4 info record, datasize is 4 +event 96: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 97: EOS prop d1cb info record, datasize is 52 +event 97: Unknown EOS property d1cb, datasize is 52 + 0: 34 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 +event 98: EOS prop d126 info record, datasize is 4 +event 98: Unknown EOS property d126, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 99: EOS prop d1dc info record, datasize is 4 +event 99: currentvalue of d1dc is 1 +event 100: EOS prop d1dc info record, datasize is 4 +event 100: currentvalue of d1dc is 1 +event 101: EOS prop d1c0 info record, datasize is 4 +event 101: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 102: EOS prop d136 info record, datasize is 4 +event 102: Unknown EOS property d136, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 103: EOS prop d140 info record, datasize is 48 +event 103: Unknown EOS property d140, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 46 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 98 + 47: 02 +event 104: EOS prop d141 info record, datasize is 48 +event 104: Unknown EOS property d141, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 46 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 98 + 47: 02 +event 105: EOS prop d142 info record, datasize is 48 +event 105: Unknown EOS property d142, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 46 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 98 + 47: 02 +event 106: EOS prop d143 info record, datasize is 48 +event 106: Unknown EOS property d143, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 46 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 98 + 47: 02 +event 107: EOS prop d144 info record, datasize is 48 +event 107: Unknown EOS property d144, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 46 + 41: 02 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 98 + 47: 02 +event 108: EOS prop d14a info record, datasize is 4 +event 108: Unknown EOS property d14a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 109: EOS prop d149 info record, datasize is 4 +event 109: currentvalue of d149 is 0 +event 110: EOS prop d13e info record, datasize is 20 +event 110: Unknown EOS property d13e, datasize is 20 + 0: 14 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 +event 111: EOS prop d19a info record, datasize is 4 +event 111: Unknown EOS property d19a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 112: EOS prop d13b info record, datasize is 4 +event 112: Unknown EOS property d13b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 113: EOS prop d1a3 info record, datasize is 4 +event 113: Unknown EOS property d1a3, datasize is 4, using uint32 + 0: 0x 0 +event 113: currentvalue of d1a3 is 0 +event 114: EOS prop d19f info record, datasize is 4 +event 114: Unknown EOS property d19f, datasize is 4, using uint32 + 0: 0x 0 +event 114: currentvalue of d19f is 0 +event 115: EOS prop d124 info record, datasize is 4 +event 115: Unknown EOS property d124, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 116: unknown EOS event c1f6 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 117: EOS prop d167 info record, datasize is 16 +event 117: Unknown EOS property d167, datasize is 16 + 0: 10 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: e8 + 9: 03 + 10: 00 + 11: 00 + 12: e8 + 13: 03 + 14: 00 + 15: 00 +event 118: EOS prop d1c6 info record, datasize is 4 +event 118: currentvalue of d1c6 is 0 +event 119: EOS prop d12d info record, datasize is 12 +event 119: Unknown EOS property d12d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 120: EOS prop d12c info record, datasize is 4 +event 120: Unknown EOS property d12c, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 121: EOS prop d127 info record, datasize is 8 +event 121: Unknown EOS property d127, datasize is 8 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 122: EOS prop d1a0 info record, datasize is 56 +event 122: currentvalue of d1a0 is 8 +event 122: decoded custom function, currentvalue of d1a0 is 38,1,1,2c,3,101,1,0,108,1,0,112,1,0, +event 123: EOS prop d1a0 info record, datasize is 60 +event 123: currentvalue of d1a0 is < +event 123: decoded custom function, currentvalue of d1a0 is 3c,1,2,30,3,104,1,0,105,1,0,106,2,3,0, +event 124: EOS prop d1a0 info record, datasize is 80 +event 124: currentvalue of d1a0 is P +event 124: decoded custom function, currentvalue of d1a0 is 50,1,3,44,3,10c,4,2400,fffff100,2400,fffff100,10d,4,2700,0,1b00,900,114,1,1, +event 125: EOS prop d1a0 info record, datasize is 440 +event 125: currentvalue of d1a0 is ¸ +event 125: decoded custom function, currentvalue of d1a0 is 1b8,1,4,1ac,1,70c,67,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +event 126: EOS prop d1a0 info record, datasize is 128 +event 126: currentvalue of d1a0 is € +event 126: decoded custom function, currentvalue of d1a0 is 80,1,5,74,9,706,1,0,712,1,0,713,1,0,714,1,0,80e,1,0,813,1,0,711,1,0,814,1,0,815,1,0, +event 127: EOS prop d1a0 info record, datasize is 32 +event 127: currentvalue of d1a0 is +event 127: decoded custom function, currentvalue of d1a0 is 20,1,6,14,1,102,1,0, +event 128: EOS prop d199 info record, datasize is 4 +event 128: currentvalue of d199 is 12 +event 129: EOS prop d166 info record, datasize is 4 +event 129: Unknown EOS property d166, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 130: EOS prop 0000 info record, datasize is 4 +event 130: Unknown EOS property 0000, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 131: EOS prop d208 info record, datasize is 24 +event 131: Unknown EOS property d208, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 64 + 13: 00 + 14: 00 + 15: 00 + 16: 04 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 132: EOS prop 0000 info record, datasize is 4 +event 132: Unknown EOS property 0000, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 133: EOS prop 0000 info record, datasize is 4 +event 133: Unknown EOS property 0000, datasize is 4 + 0: 3c + 1: 00 + 2: 00 + 3: 00 +event 134: EOS prop d114 info record, datasize is 4 +event 134: currentvalue of d114 is 3c +event 135: EOS prop d02b info record, datasize is 4 +event 135: Unknown EOS property d02b, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 136: EOS prop d20b info record, datasize is 4 +event 136: Unknown EOS property d20b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 137: EOS prop d125 info record, datasize is 24 +event 137: Unknown EOS property d125, datasize is 24 + 0: 45 + 1: 4f + 2: 53 + 3: 4d + 4: 36 + 5: 6d + 6: 32 + 7: 5f + 8: 43 + 9: 42 + 10: 43 + 11: 43 + 12: 36 + 13: 35 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 138: EOS prop d20e info record, datasize is 4 +event 138: Unknown EOS property d20e, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 139: EOS prop d126 info record, datasize is 4 +event 139: Unknown EOS property d126, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 140: EOS prop d17d info record, datasize is 12 +event 140: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 13 + 5: 00 + 6: 00 + 7: 00 + 8: 3c + 9: 00 + 10: 00 + 11: 00 +event 141: EOS prop d125 info record, datasize is 24 +event 141: Unknown EOS property d125, datasize is 24 + 0: 45 + 1: 4f + 2: 53 + 3: 4d + 4: 36 + 5: 6d + 6: 32 + 7: 5f + 8: 43 + 9: 42 + 10: 43 + 11: 43 + 12: 36 + 13: 35 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 142: EOS prop d103 desc record, datasize 104, propxtype 3 +event 142: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 142: suppval[0] of d103 is 0x0. +event 142: suppval[1] of d103 is 0x48. +event 142: suppval[2] of d103 is 0x4b. +event 142: suppval[3] of d103 is 0x4d. +event 142: suppval[4] of d103 is 0x50. +event 142: suppval[5] of d103 is 0x53. +event 142: suppval[6] of d103 is 0x55. +event 142: suppval[7] of d103 is 0x58. +event 142: suppval[8] of d103 is 0x5b. +event 142: suppval[9] of d103 is 0x5d. +event 142: suppval[10] of d103 is 0x60. +event 142: suppval[11] of d103 is 0x63. +event 142: suppval[12] of d103 is 0x65. +event 142: suppval[13] of d103 is 0x68. +event 142: suppval[14] of d103 is 0x6b. +event 142: suppval[15] of d103 is 0x6d. +event 142: suppval[16] of d103 is 0x70. +event 142: suppval[17] of d103 is 0x73. +event 142: suppval[18] of d103 is 0x75. +event 142: suppval[19] of d103 is 0x78. +event 142: suppval[20] of d103 is 0x7b. +event 142: suppval[21] of d103 is 0x7d. +event 142: suppval[22] of d103 is 0x80. +event 142: suppval[23] of d103 is 0x83. +event 142: suppval[24] of d103 is 0x85. +event 142: suppval[25] of d103 is 0x88. +event 143: EOS prop d105 desc record, datasize 0, propxtype 1 +event 143: propxtype is 1 for d105, unhandled, size 20 +event 144: EOS prop d11b desc record, datasize 0, propxtype 1 +event 144: propxtype is 1 for d11b, unhandled, size 20 +event 145: EOS prop d11b desc record, datasize 0, propxtype 1 +event 145: propxtype is 1 for d11b, unhandled, size 20 +event 146: EOS prop d114 desc record, datasize 24, propxtype 3 +event 146: propxtype is 3, prop is 0xd114, data type is 0x0004, propxcnt is 6. +event 146: suppval[0] of d114 is 0x1e. +event 146: suppval[1] of d114 is 0x3c. +event 146: suppval[2] of d114 is 0xb4. +event 146: suppval[3] of d114 is 0x12c. +event 146: suppval[4] of d114 is 0x258. +event 146: suppval[5] of d114 is 0x0. +event 147: EOS prop d114 desc record, datasize 0, propxtype 1 +event 147: propxtype is 1 for d114, unhandled, size 20 +event 148: EOS prop d116 desc record, datasize 0, propxtype 1 +event 148: propxtype is 1 for d116, unhandled, size 20 +event 149: EOS prop d111 desc record, datasize 0, propxtype 1 +event 149: propxtype is 1 for d111, unhandled, size 20 +event 150: EOS prop d112 desc record, datasize 0, propxtype 1 +event 150: propxtype is 1 for d112, unhandled, size 20 +event 151: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 151: propxtype is 1 for d1a8, unhandled, size 20 +event 152: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 152: propxtype is 1 for d1ab, unhandled, size 20 +event 153: EOS prop d147 desc record, datasize 0, propxtype 1 +event 153: propdesc d147, default value not found. +event 154: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 154: propdesc d1ad, default value not found. +event 155: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 155: propdesc d1ae, default value not found. +event 156: EOS prop d1aa desc record, datasize 0, propxtype 1 +event 156: propxtype is 1 for d1aa, unhandled, size 20 +event 157: EOS prop d11e desc record, datasize 0, propxtype 1 +event 157: propxtype is 1 for d11e, unhandled, size 20 +event 158: EOS prop d11f desc record, datasize 0, propxtype 1 +event 158: propxtype is 1 for d11f, unhandled, size 20 +event 159: EOS prop d1af desc record, datasize 0, propxtype 1 +event 159: propxtype is 1 for d1af, unhandled, size 20 +event 160: EOS prop d17f desc record, datasize 0, propxtype 1 +event 160: propdesc d17f, default value not found. +event 161: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 161: propxtype is 1 for d1b7, unhandled, size 20 +event 162: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 162: propxtype is 1 for d1c4, unhandled, size 20 +event 163: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 163: propxtype is 1 for d1c2, unhandled, size 20 +event 164: EOS prop d138 desc record, datasize 0, propxtype 1 +event 164: propxtype is 1 for d138, unhandled, size 20 +event 165: EOS prop d139 desc record, datasize 0, propxtype 1 +event 165: propxtype is 1 for d139, unhandled, size 20 +event 166: EOS prop d13b desc record, datasize 0, propxtype 1 +event 166: propxtype is 1 for d13b, unhandled, size 20 +event 167: EOS prop d13c desc record, datasize 0, propxtype 1 +event 167: propxtype is 1 for d13c, unhandled, size 20 +event 168: EOS prop d19d desc record, datasize 0, propxtype 1 +event 168: propdesc d19d, default value not found. +event 169: EOS prop d19a desc record, datasize 0, propxtype 1 +event 169: propxtype is 1 for d19a, unhandled, size 20 +event 170: EOS prop d19c desc record, datasize 0, propxtype 1 +event 170: propdesc d19c, default value not found. +event 171: EOS prop d14c desc record, datasize 0, propxtype 1 +event 171: propdesc d14c, default value not found. +event 172: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 172: propxtype is 1 for d1bd, unhandled, size 20 +event 173: EOS prop d19f desc record, datasize 0, propxtype 1 +event 173: propxtype is 1 for d19f, unhandled, size 20 +event 174: EOS prop d124 desc record, datasize 0, propxtype 1 +event 174: propxtype is 1 for d124, unhandled, size 20 +event 175: EOS prop d115 desc record, datasize 0, propxtype 7 +event 175: propxtype is 7 for d115, unhandled, size 20 +event 176: EOS prop d110 desc record, datasize 44, propxtype 3 +event 176: propxtype is 3, prop is 0xd110, data type is 0x0002, propxcnt is 11. +event 176: suppval[0] of d110 is 0x87. +event 176: suppval[1] of d110 is 0x81. +event 176: suppval[2] of d110 is 0x82. +event 176: suppval[3] of d110 is 0x83. +event 176: suppval[4] of d110 is 0x88. +event 176: suppval[5] of d110 is 0x84. +event 176: suppval[6] of d110 is 0x85. +event 176: suppval[7] of d110 is 0x86. +event 176: suppval[8] of d110 is 0x21. +event 176: suppval[9] of d110 is 0x22. +event 176: suppval[10] of d110 is 0x23. +event 177: EOS prop d170 desc record, datasize 0, propxtype 7 +event 177: propdesc d170, default value not found. +event 178: EOS prop d170 desc record, datasize 0, propxtype 7 +event 178: propdesc d170, default value not found. +event 179: EOS prop d171 desc record, datasize 0, propxtype 7 +event 179: propdesc d171, default value not found. +event 180: EOS prop d171 desc record, datasize 0, propxtype 7 +event 180: propdesc d171, default value not found. +event 181: EOS prop d172 desc record, datasize 0, propxtype 7 +event 181: propdesc d172, default value not found. +event 182: EOS prop d172 desc record, datasize 0, propxtype 7 +event 182: propdesc d172, default value not found. +event 183: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 183: propxtype is 7 for d1a1, unhandled, size 20 +event 184: EOS prop d1a7 desc record, datasize 0, propxtype 7 +event 184: propxtype is 7 for d1a7, unhandled, size 20 +event 185: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 185: propdesc d1a2, default value not found. +event 186: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 186: propxtype is 7 for d1b2, unhandled, size 20 +event 187: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 187: propxtype is 7 for d1b3, unhandled, size 20 +event 188: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 188: propdesc d1b5, default value not found. +event 189: EOS prop d146 desc record, datasize 0, propxtype 7 +event 189: propdesc d146, default value not found. +event 190: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 190: propxtype is 7 for d1d0, unhandled, size 20 +event 191: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 191: propxtype is 7 for d1d1, unhandled, size 20 +event 192: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 192: propdesc d1d3, default value not found. +event 193: EOS prop d1cb desc record, datasize 0, propxtype 7 +event 193: propxtype is 7 for d1cb, unhandled, size 20 +event 194: EOS prop d14d desc record, datasize 0, propxtype 7 +event 194: propdesc d14d, default value not found. +event 195: EOS prop d196 desc record, datasize 0, propxtype 7 +event 195: propxtype is 7 for d196, unhandled, size 20 +event 196: EOS prop d1db desc record, datasize 0, propxtype 7 +event 196: propdesc d1db, default value not found. +event 197: EOS prop d1a4 desc record, datasize 0, propxtype 7 +event 197: propxtype is 7 for d1a4, unhandled, size 20 +event 198: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 198: propxtype is 7 for d1bf, unhandled, size 20 +event 199: EOS prop d055 desc record, datasize 4, propxtype 3 +event 199: propdesc d055, default value not found. +event 200: EOS prop d108 desc record, datasize 8, propxtype 3 +event 200: propxtype is 3, prop is 0xd108, data type is 0x0004, propxcnt is 2. +event 200: suppval[0] of d108 is 0x0. +event 200: suppval[1] of d108 is 0x1. +event 201: EOS prop d106 desc record, datasize 28, propxtype 3 +event 201: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 7. +event 201: suppval[0] of d106 is 0x0. +event 201: suppval[1] of d106 is 0x12. +event 201: suppval[2] of d106 is 0x4. +event 201: suppval[3] of d106 is 0x5. +event 201: suppval[4] of d106 is 0x10. +event 201: suppval[5] of d106 is 0x11. +event 201: suppval[6] of d106 is 0x7. +event 202: EOS prop d107 desc record, datasize 16, propxtype 3 +event 202: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 4. +event 202: suppval[0] of d107 is 0x3. +event 202: suppval[1] of d107 is 0x4. +event 202: suppval[2] of d107 is 0x1. +event 202: suppval[3] of d107 is 0x5. +event 203: EOS prop d109 desc record, datasize 40, propxtype 3 +event 203: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 10. +event 203: suppval[0] of d109 is 0x0. +event 203: suppval[1] of d109 is 0x17. +event 203: suppval[2] of d109 is 0x1. +event 203: suppval[3] of d109 is 0x8. +event 203: suppval[4] of d109 is 0x2. +event 203: suppval[5] of d109 is 0x3. +event 203: suppval[6] of d109 is 0x4. +event 203: suppval[7] of d109 is 0x5. +event 203: suppval[8] of d109 is 0x6. +event 203: suppval[9] of d109 is 0x9. +event 204: EOS prop d10a desc record, datasize 304, propxtype 3 +event 204: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +event 204: suppval[0] of d10a is 0x9c4. +event 204: suppval[1] of d10a is 0xa28. +event 204: suppval[2] of d10a is 0xa8c. +event 204: suppval[3] of d10a is 0xaf0. +event 204: suppval[4] of d10a is 0xb54. +event 204: suppval[5] of d10a is 0xbb8. +event 204: suppval[6] of d10a is 0xc1c. +event 204: suppval[7] of d10a is 0xc80. +event 204: suppval[8] of d10a is 0xce4. +event 204: suppval[9] of d10a is 0xd48. +event 204: suppval[10] of d10a is 0xdac. +event 204: suppval[11] of d10a is 0xe10. +event 204: suppval[12] of d10a is 0xe74. +event 204: suppval[13] of d10a is 0xed8. +event 204: suppval[14] of d10a is 0xf3c. +event 204: suppval[15] of d10a is 0xfa0. +event 204: suppval[16] of d10a is 0x1004. +event 204: suppval[17] of d10a is 0x1068. +event 204: suppval[18] of d10a is 0x10cc. +event 204: suppval[19] of d10a is 0x1130. +event 204: suppval[20] of d10a is 0x1194. +event 204: suppval[21] of d10a is 0x11f8. +event 204: suppval[22] of d10a is 0x125c. +event 204: suppval[23] of d10a is 0x12c0. +event 204: suppval[24] of d10a is 0x1324. +event 204: suppval[25] of d10a is 0x1388. +event 204: suppval[26] of d10a is 0x13ec. +event 204: suppval[27] of d10a is 0x1450. +event 204: suppval[28] of d10a is 0x14b4. +event 204: suppval[29] of d10a is 0x1518. +event 204: suppval[30] of d10a is 0x157c. +event 204: suppval[31] of d10a is 0x15e0. +event 204: suppval[32] of d10a is 0x1644. +event 204: suppval[33] of d10a is 0x16a8. +event 204: suppval[34] of d10a is 0x170c. +event 204: suppval[35] of d10a is 0x1770. +event 204: suppval[36] of d10a is 0x17d4. +event 204: suppval[37] of d10a is 0x1838. +event 204: suppval[38] of d10a is 0x189c. +event 204: suppval[39] of d10a is 0x1900. +event 204: suppval[40] of d10a is 0x1964. +event 204: suppval[41] of d10a is 0x19c8. +event 204: suppval[42] of d10a is 0x1a2c. +event 204: suppval[43] of d10a is 0x1a90. +event 204: suppval[44] of d10a is 0x1af4. +event 204: suppval[45] of d10a is 0x1b58. +event 204: suppval[46] of d10a is 0x1bbc. +event 204: suppval[47] of d10a is 0x1c20. +event 204: suppval[48] of d10a is 0x1c84. +event 204: suppval[49] of d10a is 0x1ce8. +event 204: suppval[50] of d10a is 0x1d4c. +event 204: suppval[51] of d10a is 0x1db0. +event 204: suppval[52] of d10a is 0x1e14. +event 204: suppval[53] of d10a is 0x1e78. +event 204: suppval[54] of d10a is 0x1edc. +event 204: suppval[55] of d10a is 0x1f40. +event 204: suppval[56] of d10a is 0x1fa4. +event 204: suppval[57] of d10a is 0x2008. +event 204: suppval[58] of d10a is 0x206c. +event 204: suppval[59] of d10a is 0x20d0. +event 204: suppval[60] of d10a is 0x2134. +event 204: suppval[61] of d10a is 0x2198. +event 204: suppval[62] of d10a is 0x21fc. +event 204: suppval[63] of d10a is 0x2260. +event 204: suppval[64] of d10a is 0x22c4. +event 204: suppval[65] of d10a is 0x2328. +event 204: suppval[66] of d10a is 0x238c. +event 204: suppval[67] of d10a is 0x23f0. +event 204: suppval[68] of d10a is 0x2454. +event 204: suppval[69] of d10a is 0x24b8. +event 204: suppval[70] of d10a is 0x251c. +event 204: suppval[71] of d10a is 0x2580. +event 204: suppval[72] of d10a is 0x25e4. +event 204: suppval[73] of d10a is 0x2648. +event 204: suppval[74] of d10a is 0x26ac. +event 204: suppval[75] of d10a is 0x2710. +event 205: EOS prop d10b desc record, datasize 76, propxtype 3 +event 205: propxtype is 3, prop is 0xd10b, data type is 0x0005, propxcnt is 19. +event 205: suppval[0] of d10b is 0xfffffff7. +event 205: suppval[1] of d10b is 0xfffffff8. +event 205: suppval[2] of d10b is 0xfffffff9. +event 205: suppval[3] of d10b is 0xfffffffa. +event 205: suppval[4] of d10b is 0xfffffffb. +event 205: suppval[5] of d10b is 0xfffffffc. +event 205: suppval[6] of d10b is 0xfffffffd. +event 205: suppval[7] of d10b is 0xfffffffe. +event 205: suppval[8] of d10b is 0xffffffff. +event 205: suppval[9] of d10b is 0x0. +event 205: suppval[10] of d10b is 0x1. +event 205: suppval[11] of d10b is 0x2. +event 205: suppval[12] of d10b is 0x3. +event 205: suppval[13] of d10b is 0x4. +event 205: suppval[14] of d10b is 0x5. +event 205: suppval[15] of d10b is 0x6. +event 205: suppval[16] of d10b is 0x7. +event 205: suppval[17] of d10b is 0x8. +event 205: suppval[18] of d10b is 0x9. +event 206: EOS prop d10c desc record, datasize 76, propxtype 3 +event 206: propxtype is 3, prop is 0xd10c, data type is 0x0005, propxcnt is 19. +event 206: suppval[0] of d10c is 0xfffffff7. +event 206: suppval[1] of d10c is 0xfffffff8. +event 206: suppval[2] of d10c is 0xfffffff9. +event 206: suppval[3] of d10c is 0xfffffffa. +event 206: suppval[4] of d10c is 0xfffffffb. +event 206: suppval[5] of d10c is 0xfffffffc. +event 206: suppval[6] of d10c is 0xfffffffd. +event 206: suppval[7] of d10c is 0xfffffffe. +event 206: suppval[8] of d10c is 0xffffffff. +event 206: suppval[9] of d10c is 0x0. +event 206: suppval[10] of d10c is 0x1. +event 206: suppval[11] of d10c is 0x2. +event 206: suppval[12] of d10c is 0x3. +event 206: suppval[13] of d10c is 0x4. +event 206: suppval[14] of d10c is 0x5. +event 206: suppval[15] of d10c is 0x6. +event 206: suppval[16] of d10c is 0x7. +event 206: suppval[17] of d10c is 0x8. +event 206: suppval[18] of d10c is 0x9. +event 207: EOS prop d10d desc record, datasize 16, propxtype 3 +event 207: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +event 207: suppval[0] of d10d is 0x0. +event 207: suppval[1] of d10d is 0x1. +event 207: suppval[2] of d10d is 0x2. +event 207: suppval[3] of d10d is 0x3. +event 208: EOS prop d10e desc record, datasize 16, propxtype 3 +event 208: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +event 208: suppval[0] of d10e is 0x0. +event 208: suppval[1] of d10e is 0x1. +event 208: suppval[2] of d10e is 0x2. +event 208: suppval[3] of d10e is 0x3. +event 209: EOS prop d10f desc record, datasize 8, propxtype 3 +event 209: propxtype is 3, prop is 0xd10f, data type is 0x0004, propxcnt is 2. +event 209: suppval[0] of d10f is 0x1. +event 209: suppval[1] of d10f is 0x2. +event 210: EOS prop d101 desc record, datasize 80, propxtype 3 +event 210: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 20. +event 210: suppval[0] of d101 is 0xff. +event 210: suppval[1] of d101 is 0x20. +event 210: suppval[2] of d101 is 0x23. +event 210: suppval[3] of d101 is 0x25. +event 210: suppval[4] of d101 is 0x28. +event 210: suppval[5] of d101 is 0x2b. +event 210: suppval[6] of d101 is 0x2d. +event 210: suppval[7] of d101 is 0x30. +event 210: suppval[8] of d101 is 0x33. +event 210: suppval[9] of d101 is 0x35. +event 210: suppval[10] of d101 is 0x38. +event 210: suppval[11] of d101 is 0x3b. +event 210: suppval[12] of d101 is 0x3d. +event 210: suppval[13] of d101 is 0x40. +event 210: suppval[14] of d101 is 0x43. +event 210: suppval[15] of d101 is 0x45. +event 210: suppval[16] of d101 is 0x48. +event 210: suppval[17] of d101 is 0x4b. +event 210: suppval[18] of d101 is 0x4d. +event 210: suppval[19] of d101 is 0x50. +event 211: EOS prop d102 desc record, datasize 212, propxtype 3 +event 211: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 53. +event 211: suppval[0] of d102 is 0x4. +event 211: suppval[1] of d102 is 0x10. +event 211: suppval[2] of d102 is 0x13. +event 211: suppval[3] of d102 is 0x15. +event 211: suppval[4] of d102 is 0x18. +event 211: suppval[5] of d102 is 0x1b. +event 211: suppval[6] of d102 is 0x1d. +event 211: suppval[7] of d102 is 0x20. +event 211: suppval[8] of d102 is 0x23. +event 211: suppval[9] of d102 is 0x25. +event 211: suppval[10] of d102 is 0x28. +event 211: suppval[11] of d102 is 0x2b. +event 211: suppval[12] of d102 is 0x2d. +event 211: suppval[13] of d102 is 0x30. +event 211: suppval[14] of d102 is 0x33. +event 211: suppval[15] of d102 is 0x35. +event 211: suppval[16] of d102 is 0x38. +event 211: suppval[17] of d102 is 0x3b. +event 211: suppval[18] of d102 is 0x3d. +event 211: suppval[19] of d102 is 0x40. +event 211: suppval[20] of d102 is 0x43. +event 211: suppval[21] of d102 is 0x45. +event 211: suppval[22] of d102 is 0x48. +event 211: suppval[23] of d102 is 0x4b. +event 211: suppval[24] of d102 is 0x4d. +event 211: suppval[25] of d102 is 0x50. +event 211: suppval[26] of d102 is 0x53. +event 211: suppval[27] of d102 is 0x55. +event 211: suppval[28] of d102 is 0x58. +event 211: suppval[29] of d102 is 0x5b. +event 211: suppval[30] of d102 is 0x5d. +event 211: suppval[31] of d102 is 0x60. +event 211: suppval[32] of d102 is 0x63. +event 211: suppval[33] of d102 is 0x65. +event 211: suppval[34] of d102 is 0x68. +event 211: suppval[35] of d102 is 0x6b. +event 211: suppval[36] of d102 is 0x6d. +event 211: suppval[37] of d102 is 0x70. +event 211: suppval[38] of d102 is 0x73. +event 211: suppval[39] of d102 is 0x75. +event 211: suppval[40] of d102 is 0x78. +event 211: suppval[41] of d102 is 0x7b. +event 211: suppval[42] of d102 is 0x7d. +event 211: suppval[43] of d102 is 0x80. +event 211: suppval[44] of d102 is 0x83. +event 211: suppval[45] of d102 is 0x85. +event 211: suppval[46] of d102 is 0x88. +event 211: suppval[47] of d102 is 0x8b. +event 211: suppval[48] of d102 is 0x8d. +event 211: suppval[49] of d102 is 0x90. +event 211: suppval[50] of d102 is 0x93. +event 211: suppval[51] of d102 is 0x95. +event 211: suppval[52] of d102 is 0x98. +event 212: EOS prop d104 desc record, datasize 76, propxtype 3 +event 212: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 212: suppval[0] of d104 is 0xe8. +event 212: suppval[1] of d104 is 0xeb. +event 212: suppval[2] of d104 is 0xed. +event 212: suppval[3] of d104 is 0xf0. +event 212: suppval[4] of d104 is 0xf3. +event 212: suppval[5] of d104 is 0xf5. +event 212: suppval[6] of d104 is 0xf8. +event 212: suppval[7] of d104 is 0xfb. +event 212: suppval[8] of d104 is 0xfd. +event 212: suppval[9] of d104 is 0x0. +event 212: suppval[10] of d104 is 0x3. +event 212: suppval[11] of d104 is 0x5. +event 212: suppval[12] of d104 is 0x8. +event 212: suppval[13] of d104 is 0xb. +event 212: suppval[14] of d104 is 0xd. +event 212: suppval[15] of d104 is 0x10. +event 212: suppval[16] of d104 is 0x13. +event 212: suppval[17] of d104 is 0x15. +event 212: suppval[18] of d104 is 0x18. +event 213: EOS prop d17d desc record, datasize 396, propxtype 3 +event 213: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +event 213: data type 0x0000 of d17d unhandled, size 12, raw values: + 0: 0x c + 1: 0x 21 + 2: 0x 30c + 3: 0x c + 4: 0x 1 + 5: 0x 2fd + 6: 0x c + 7: 0x 2 + 8: 0x 2d0 + 9: 0x c + 10: 0x 3 + 11: 0x 294 + 12: 0x c + 13: 0x 4 + 14: 0x 258 + 15: 0x c + 16: 0x 5 + 17: 0x 23a + 18: 0x c + 19: 0x 6 + 20: 0x 21c + 21: 0x c + 22: 0x 7 + 23: 0x 1e0 + 24: 0x c + 25: 0x 8 + 26: 0x 1a4 + 27: 0x c + 28: 0x 9 + 29: 0x 186 + 30: 0x c + 31: 0x a + 32: 0x 168 + 33: 0x c + 34: 0x b + 35: 0x 159 + 36: 0x c + 37: 0x c + 38: 0x 14a + 39: 0x c + 40: 0x d + 41: 0x 12c + 42: 0x c + 43: 0x e + 44: 0x 10e + 45: 0x c + 46: 0x f + 47: 0x f0 + 48: 0x c + 49: 0x 10 + 50: 0x d2 + 51: 0x c + 52: 0x 11 + 53: 0x b4 + 54: 0x c + 55: 0x 12 + 56: 0x 78 + 57: 0x c + 58: 0x 13 + 59: 0x 3c + 60: 0x c + 61: 0x 14 + 62: 0x 0 + 63: 0x c + 64: 0x 15 + 65: 0xffffffc4 + 66: 0x c + 67: 0x 16 + 68: 0xffffff88 + 69: 0x c + 70: 0x 17 + 71: 0xffffff4c + 72: 0x c + 73: 0x 18 + 74: 0xffffff2e + 75: 0x c + 76: 0x 1a + 77: 0xffffff10 + 78: 0x c + 79: 0x 1b + 80: 0xfffffed4 + 81: 0x c + 82: 0x 1c + 83: 0xfffffe98 + 84: 0x c + 85: 0x 1d + 86: 0xfffffe5c + 87: 0x c + 88: 0x 1e + 89: 0xfffffe20 + 90: 0x c + 91: 0x 1f + 92: 0xfffffde4 + 93: 0x c + 94: 0x 20 + 95: 0xfffffda8 + 96: 0x c + 97: 0xffffffff + 98: 0x 0 +event 214: EOS prop d17e desc record, datasize 8, propxtype 3 +event 214: propxtype is 3, prop is 0xd17e, data type is 0x0006, propxcnt is 2. +event 214: suppval[0] of d17e is 0x0. +event 214: suppval[1] of d17e is 0x1. +event 215: EOS prop d17c desc record, datasize 0, propxtype 7 +event 215: propxtype is 7 for d17c, unhandled, size 20 +event 216: EOS prop d121 desc record, datasize 684, propxtype 3 +event 216: propxtype is 3, prop is 0xd121, data type is 0x0004, propxcnt is 23. +event 216: suppval[0] of d121 is 0x300. +event 216: suppval[1] of d121 is 0x200. +event 216: suppval[2] of d121 is 0x1300. +event 216: suppval[3] of d121 is 0x1200. +event 216: suppval[4] of d121 is 0xd300. +event 216: suppval[5] of d121 is 0xd200. +event 216: suppval[6] of d121 is 0xe300. +event 216: suppval[7] of d121 is 0xc03. +event 216: suppval[8] of d121 is 0xc02. +event 216: suppval[9] of d121 is 0xc13. +event 216: suppval[10] of d121 is 0xc12. +event 216: suppval[11] of d121 is 0xcd3. +event 216: suppval[12] of d121 is 0xcd2. +event 216: suppval[13] of d121 is 0xce3. +event 216: suppval[14] of d121 is 0xb03. +event 216: suppval[15] of d121 is 0xb02. +event 216: suppval[16] of d121 is 0xb13. +event 216: suppval[17] of d121 is 0xb12. +event 216: suppval[18] of d121 is 0xbd3. +event 216: suppval[19] of d121 is 0xbd2. +event 216: suppval[20] of d121 is 0xbe3. +event 216: suppval[21] of d121 is 0xc00. +event 216: suppval[22] of d121 is 0xb00. +event 217: EOS prop d122 desc record, datasize 684, propxtype 3 +event 217: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 23. +event 217: suppval[0] of d122 is 0x300. +event 217: suppval[1] of d122 is 0x200. +event 217: suppval[2] of d122 is 0x1300. +event 217: suppval[3] of d122 is 0x1200. +event 217: suppval[4] of d122 is 0xd300. +event 217: suppval[5] of d122 is 0xd200. +event 217: suppval[6] of d122 is 0xe300. +event 217: suppval[7] of d122 is 0xc03. +event 217: suppval[8] of d122 is 0xc02. +event 217: suppval[9] of d122 is 0xc13. +event 217: suppval[10] of d122 is 0xc12. +event 217: suppval[11] of d122 is 0xcd3. +event 217: suppval[12] of d122 is 0xcd2. +event 217: suppval[13] of d122 is 0xce3. +event 217: suppval[14] of d122 is 0xb03. +event 217: suppval[15] of d122 is 0xb02. +event 217: suppval[16] of d122 is 0xb13. +event 217: suppval[17] of d122 is 0xb12. +event 217: suppval[18] of d122 is 0xbd3. +event 217: suppval[19] of d122 is 0xbd2. +event 217: suppval[20] of d122 is 0xbe3. +event 217: suppval[21] of d122 is 0xc00. +event 217: suppval[22] of d122 is 0xb00. +event 218: EOS prop d120 desc record, datasize 684, propxtype 3 +event 218: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 23. +event 218: suppval[0] of d120 is 0x300. +event 218: suppval[1] of d120 is 0x200. +event 218: suppval[2] of d120 is 0x1300. +event 218: suppval[3] of d120 is 0x1200. +event 218: suppval[4] of d120 is 0xd300. +event 218: suppval[5] of d120 is 0xd200. +event 218: suppval[6] of d120 is 0xe300. +event 218: suppval[7] of d120 is 0xc03. +event 218: suppval[8] of d120 is 0xc02. +event 218: suppval[9] of d120 is 0xc13. +event 218: suppval[10] of d120 is 0xc12. +event 218: suppval[11] of d120 is 0xcd3. +event 218: suppval[12] of d120 is 0xcd2. +event 218: suppval[13] of d120 is 0xce3. +event 218: suppval[14] of d120 is 0xb03. +event 218: suppval[15] of d120 is 0xb02. +event 218: suppval[16] of d120 is 0xb13. +event 218: suppval[17] of d120 is 0xb12. +event 218: suppval[18] of d120 is 0xbd3. +event 218: suppval[19] of d120 is 0xbd2. +event 218: suppval[20] of d120 is 0xbe3. +event 218: suppval[21] of d120 is 0xc00. +event 218: suppval[22] of d120 is 0xb00. +event 219: EOS prop d11c desc record, datasize 12, propxtype 3 +event 219: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +event 219: suppval[0] of d11c is 0x2. +event 219: suppval[1] of d11c is 0x6. +event 219: suppval[2] of d11c is 0x4. +event 220: EOS prop d1b0 desc record, datasize 48, propxtype 3 +event 220: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 12. +event 220: suppval[0] of d1b0 is 0x0. +event 220: suppval[1] of d1b0 is 0x1. +event 220: suppval[2] of d1b0 is 0x2. +event 220: suppval[3] of d1b0 is 0x3. +event 220: suppval[4] of d1b0 is 0x4. +event 220: suppval[5] of d1b0 is 0x5. +event 220: suppval[6] of d1b0 is 0x6. +event 220: suppval[7] of d1b0 is 0x7. +event 220: suppval[8] of d1b0 is 0x8. +event 220: suppval[9] of d1b0 is 0x9. +event 220: suppval[10] of d1b0 is 0xa. +event 220: suppval[11] of d1b0 is 0xb. +event 221: EOS prop d1b1 desc record, datasize 0, propxtype 3 +event 222: EOS prop d1b6 desc record, datasize 304, propxtype 3 +event 222: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +event 222: suppval[0] of d1b6 is 0x9c4. +event 222: suppval[1] of d1b6 is 0xa28. +event 222: suppval[2] of d1b6 is 0xa8c. +event 222: suppval[3] of d1b6 is 0xaf0. +event 222: suppval[4] of d1b6 is 0xb54. +event 222: suppval[5] of d1b6 is 0xbb8. +event 222: suppval[6] of d1b6 is 0xc1c. +event 222: suppval[7] of d1b6 is 0xc80. +event 222: suppval[8] of d1b6 is 0xce4. +event 222: suppval[9] of d1b6 is 0xd48. +event 222: suppval[10] of d1b6 is 0xdac. +event 222: suppval[11] of d1b6 is 0xe10. +event 222: suppval[12] of d1b6 is 0xe74. +event 222: suppval[13] of d1b6 is 0xed8. +event 222: suppval[14] of d1b6 is 0xf3c. +event 222: suppval[15] of d1b6 is 0xfa0. +event 222: suppval[16] of d1b6 is 0x1004. +event 222: suppval[17] of d1b6 is 0x1068. +event 222: suppval[18] of d1b6 is 0x10cc. +event 222: suppval[19] of d1b6 is 0x1130. +event 222: suppval[20] of d1b6 is 0x1194. +event 222: suppval[21] of d1b6 is 0x11f8. +event 222: suppval[22] of d1b6 is 0x125c. +event 222: suppval[23] of d1b6 is 0x12c0. +event 222: suppval[24] of d1b6 is 0x1324. +event 222: suppval[25] of d1b6 is 0x1388. +event 222: suppval[26] of d1b6 is 0x13ec. +event 222: suppval[27] of d1b6 is 0x1450. +event 222: suppval[28] of d1b6 is 0x14b4. +event 222: suppval[29] of d1b6 is 0x1518. +event 222: suppval[30] of d1b6 is 0x157c. +event 222: suppval[31] of d1b6 is 0x15e0. +event 222: suppval[32] of d1b6 is 0x1644. +event 222: suppval[33] of d1b6 is 0x16a8. +event 222: suppval[34] of d1b6 is 0x170c. +event 222: suppval[35] of d1b6 is 0x1770. +event 222: suppval[36] of d1b6 is 0x17d4. +event 222: suppval[37] of d1b6 is 0x1838. +event 222: suppval[38] of d1b6 is 0x189c. +event 222: suppval[39] of d1b6 is 0x1900. +event 222: suppval[40] of d1b6 is 0x1964. +event 222: suppval[41] of d1b6 is 0x19c8. +event 222: suppval[42] of d1b6 is 0x1a2c. +event 222: suppval[43] of d1b6 is 0x1a90. +event 222: suppval[44] of d1b6 is 0x1af4. +event 222: suppval[45] of d1b6 is 0x1b58. +event 222: suppval[46] of d1b6 is 0x1bbc. +event 222: suppval[47] of d1b6 is 0x1c20. +event 222: suppval[48] of d1b6 is 0x1c84. +event 222: suppval[49] of d1b6 is 0x1ce8. +event 222: suppval[50] of d1b6 is 0x1d4c. +event 222: suppval[51] of d1b6 is 0x1db0. +event 222: suppval[52] of d1b6 is 0x1e14. +event 222: suppval[53] of d1b6 is 0x1e78. +event 222: suppval[54] of d1b6 is 0x1edc. +event 222: suppval[55] of d1b6 is 0x1f40. +event 222: suppval[56] of d1b6 is 0x1fa4. +event 222: suppval[57] of d1b6 is 0x2008. +event 222: suppval[58] of d1b6 is 0x206c. +event 222: suppval[59] of d1b6 is 0x20d0. +event 222: suppval[60] of d1b6 is 0x2134. +event 222: suppval[61] of d1b6 is 0x2198. +event 222: suppval[62] of d1b6 is 0x21fc. +event 222: suppval[63] of d1b6 is 0x2260. +event 222: suppval[64] of d1b6 is 0x22c4. +event 222: suppval[65] of d1b6 is 0x2328. +event 222: suppval[66] of d1b6 is 0x238c. +event 222: suppval[67] of d1b6 is 0x23f0. +event 222: suppval[68] of d1b6 is 0x2454. +event 222: suppval[69] of d1b6 is 0x24b8. +event 222: suppval[70] of d1b6 is 0x251c. +event 222: suppval[71] of d1b6 is 0x2580. +event 222: suppval[72] of d1b6 is 0x25e4. +event 222: suppval[73] of d1b6 is 0x2648. +event 222: suppval[74] of d1b6 is 0x26ac. +event 222: suppval[75] of d1b6 is 0x2710. +event 223: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 223: propdesc d1a9, default value not found. +event 224: EOS prop d1b4 desc record, datasize 44, propxtype 3 +event 224: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 11. +event 224: suppval[0] of d1b4 is 0x0. +event 224: suppval[1] of d1b4 is 0x17. +event 224: suppval[2] of d1b4 is 0x1. +event 224: suppval[3] of d1b4 is 0x8. +event 224: suppval[4] of d1b4 is 0x2. +event 224: suppval[5] of d1b4 is 0x3. +event 224: suppval[6] of d1b4 is 0x4. +event 224: suppval[7] of d1b4 is 0x5. +event 224: suppval[8] of d1b4 is 0x6. +event 224: suppval[9] of d1b4 is 0x9. +event 224: suppval[10] of d1b4 is 0x8000. +event 225: EOS prop d1d9 desc record, datasize 40, propxtype 3 +event 225: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +event 225: suppval[0] of d1d9 is 0x0. +event 225: suppval[1] of d1d9 is 0x3. +event 225: suppval[2] of d1d9 is 0x5. +event 225: suppval[3] of d1d9 is 0x8. +event 225: suppval[4] of d1d9 is 0xb. +event 225: suppval[5] of d1d9 is 0xd. +event 225: suppval[6] of d1d9 is 0x10. +event 225: suppval[7] of d1d9 is 0x13. +event 225: suppval[8] of d1d9 is 0x15. +event 225: suppval[9] of d1d9 is 0x18. +event 226: EOS prop d1ba desc record, datasize 16, propxtype 3 +event 226: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 4. +event 226: suppval[0] of d1ba is 0x2. +event 226: suppval[1] of d1ba is 0xa. +event 226: suppval[2] of d1ba is 0x1. +event 226: suppval[3] of d1ba is 0x4. +event 227: EOS prop d12c desc record, datasize 8, propxtype 3 +event 227: propxtype is 3, prop is 0xd12c, data type is 0x0000, propxcnt is 2. +event 227: data type 0x0000 of d12c unhandled, size 0, raw values: + 0: 0x 0 + 1: 0x 1 +event 228: EOS prop d1cd desc record, datasize 0, propxtype 3 +event 229: EOS prop d1bc desc record, datasize 12, propxtype 3 +event 229: propxtype is 3, prop is 0xd1bc, data type is 0x0006, propxcnt is 3. +event 229: suppval[0] of d1bc is 0x1. +event 229: suppval[1] of d1bc is 0x0. +event 229: suppval[2] of d1bc is 0x3. +event 230: EOS prop d1b8 desc record, datasize 0, propxtype 3 +event 231: EOS prop d1dc desc record, datasize 8, propxtype 3 +event 231: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 2. +event 231: suppval[0] of d1dc is 0x0. +event 231: suppval[1] of d1dc is 0x1. +event 232: EOS prop d126 desc record, datasize 56, propxtype 3 +event 232: propxtype is 3, prop is 0xd126, data type is 0x0000, propxcnt is 13. +event 232: data type 0x0000 of d126 unhandled, size 240, raw values: + 0: 0x f0 + 1: 0x f3 + 2: 0x f5 + 3: 0x f8 + 4: 0x fb + 5: 0x fd + 6: 0x 0 + 7: 0x 3 + 8: 0x 5 + 9: 0x 8 + 10: 0x b + 11: 0x d + 12: 0x 10 + 13: 0x ed8 +event 233: EOS prop d1c1 desc record, datasize 16, propxtype 3 +event 233: propxtype is 3, prop is 0xd1c1, data type is 0x0006, propxcnt is 4. +event 233: suppval[0] of d1c1 is 0x3. +event 233: suppval[1] of d1c1 is 0x1. +event 233: suppval[2] of d1c1 is 0x0. +event 233: suppval[3] of d1c1 is 0x2. +event 234: EOS prop d1c5 desc record, datasize 0, propxtype 3 +event 235: EOS prop d194 desc record, datasize 16, propxtype 3 +event 235: propxtype is 3, prop is 0xd194, data type is 0x0004, propxcnt is 4. +event 235: suppval[0] of d194 is 0x0. +event 235: suppval[1] of d194 is 0x2. +event 235: suppval[2] of d194 is 0x7. +event 235: suppval[3] of d194 is 0x1. +event 236: EOS prop d195 desc record, datasize 0, propxtype 3 +event 237: EOS prop d197 desc record, datasize 0, propxtype 3 +event 238: EOS prop d13d desc record, datasize 0, propxtype 7 +event 238: propxtype is 7 for d13d, unhandled, size 20 +event 239: EOS prop d178 desc record, datasize 16, propxtype 3 +event 239: propxtype is 3, prop is 0xd178, data type is 0x0004, propxcnt is 4. +event 239: suppval[0] of d178 is 0x3. +event 239: suppval[1] of d178 is 0x1. +event 239: suppval[2] of d178 is 0x0. +event 239: suppval[3] of d178 is 0x2. +event 240: EOS prop d179 desc record, datasize 0, propxtype 3 +event 241: EOS prop d17a desc record, datasize 8, propxtype 3 +event 241: propxtype is 3, prop is 0xd17a, data type is 0x0000, propxcnt is 2. +event 241: data type 0x0000 of d17a unhandled, size 1, raw values: + 0: 0x 1 + 1: 0x 0 +event 242: EOS prop d17b desc record, datasize 0, propxtype 3 +event 243: EOS prop d1c9 desc record, datasize 8, propxtype 3 +event 243: propxtype is 3, prop is 0xd1c9, data type is 0x0006, propxcnt is 2. +event 243: suppval[0] of d1c9 is 0x1. +event 243: suppval[1] of d1c9 is 0x0. +event 244: EOS prop d175 desc record, datasize 4, propxtype 3 +event 244: propxtype is 3, prop is 0xd175, data type is 0x0000, propxcnt is 1. +event 244: data type 0x0000 of d175 unhandled, size 0, raw values: + 0: 0x 0 +event 245: EOS prop d14b desc record, datasize 4, propxtype 3 +event 245: propdesc d14b, default value not found. +event 246: EOS prop d13e desc record, datasize 0, propxtype 1 +event 246: propxtype is 1 for d13e, unhandled, size 20 +event 247: EOS prop d1c6 desc record, datasize 12, propxtype 3 +event 247: propxtype is 3, prop is 0xd1c6, data type is 0x0006, propxcnt is 3. +event 247: suppval[0] of d1c6 is 0x0. +event 247: suppval[1] of d1c6 is 0x1. +event 247: suppval[2] of d1c6 is 0x2. +event 248: EOS prop d157 desc record, datasize 0, propxtype 7 +event 248: propxtype is 7 for d157, unhandled, size 20 +event 249: EOS prop d158 desc record, datasize 0, propxtype 7 +event 249: propxtype is 7 for d158, unhandled, size 20 +event 250: EOS prop d159 desc record, datasize 0, propxtype 7 +event 250: propxtype is 7 for d159, unhandled, size 20 +event 251: EOS prop d15a desc record, datasize 0, propxtype 7 +event 251: propxtype is 7 for d15a, unhandled, size 20 +event 252: EOS prop d15b desc record, datasize 0, propxtype 7 +event 252: propxtype is 7 for d15b, unhandled, size 20 +event 253: EOS prop d15c desc record, datasize 0, propxtype 7 +event 253: propxtype is 7 for d15c, unhandled, size 20 +event 254: EOS prop d15d desc record, datasize 0, propxtype 7 +event 254: propxtype is 7 for d15d, unhandled, size 20 +event 255: EOS prop d15e desc record, datasize 0, propxtype 7 +event 255: propxtype is 7 for d15e, unhandled, size 20 +event 256: EOS prop d163 desc record, datasize 0, propxtype 7 +event 256: propxtype is 7 for d163, unhandled, size 20 +event 257: EOS prop d164 desc record, datasize 0, propxtype 7 +event 257: propxtype is 7 for d164, unhandled, size 20 +event 258: EOS prop d165 desc record, datasize 0, propxtype 7 +event 258: propxtype is 7 for d165, unhandled, size 20 +event 259: EOS prop d149 desc record, datasize 0, propxtype 3 +event 260: EOS prop d101 desc record, datasize 80, propxtype 3 +event 260: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 20. +event 260: suppval[0] of d101 is 0xff. +event 260: suppval[1] of d101 is 0x20. +event 260: suppval[2] of d101 is 0x23. +event 260: suppval[3] of d101 is 0x25. +event 260: suppval[4] of d101 is 0x28. +event 260: suppval[5] of d101 is 0x2b. +event 260: suppval[6] of d101 is 0x2d. +event 260: suppval[7] of d101 is 0x30. +event 260: suppval[8] of d101 is 0x33. +event 260: suppval[9] of d101 is 0x35. +event 260: suppval[10] of d101 is 0x38. +event 260: suppval[11] of d101 is 0x3b. +event 260: suppval[12] of d101 is 0x3d. +event 260: suppval[13] of d101 is 0x40. +event 260: suppval[14] of d101 is 0x43. +event 260: suppval[15] of d101 is 0x45. +event 260: suppval[16] of d101 is 0x48. +event 260: suppval[17] of d101 is 0x4b. +event 260: suppval[18] of d101 is 0x4d. +event 260: suppval[19] of d101 is 0x50. +event 261: EOS prop d102 desc record, datasize 212, propxtype 3 +event 261: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 53. +event 261: suppval[0] of d102 is 0x4. +event 261: suppval[1] of d102 is 0x10. +event 261: suppval[2] of d102 is 0x13. +event 261: suppval[3] of d102 is 0x15. +event 261: suppval[4] of d102 is 0x18. +event 261: suppval[5] of d102 is 0x1b. +event 261: suppval[6] of d102 is 0x1d. +event 261: suppval[7] of d102 is 0x20. +event 261: suppval[8] of d102 is 0x23. +event 261: suppval[9] of d102 is 0x25. +event 261: suppval[10] of d102 is 0x28. +event 261: suppval[11] of d102 is 0x2b. +event 261: suppval[12] of d102 is 0x2d. +event 261: suppval[13] of d102 is 0x30. +event 261: suppval[14] of d102 is 0x33. +event 261: suppval[15] of d102 is 0x35. +event 261: suppval[16] of d102 is 0x38. +event 261: suppval[17] of d102 is 0x3b. +event 261: suppval[18] of d102 is 0x3d. +event 261: suppval[19] of d102 is 0x40. +event 261: suppval[20] of d102 is 0x43. +event 261: suppval[21] of d102 is 0x45. +event 261: suppval[22] of d102 is 0x48. +event 261: suppval[23] of d102 is 0x4b. +event 261: suppval[24] of d102 is 0x4d. +event 261: suppval[25] of d102 is 0x50. +event 261: suppval[26] of d102 is 0x53. +event 261: suppval[27] of d102 is 0x55. +event 261: suppval[28] of d102 is 0x58. +event 261: suppval[29] of d102 is 0x5b. +event 261: suppval[30] of d102 is 0x5d. +event 261: suppval[31] of d102 is 0x60. +event 261: suppval[32] of d102 is 0x63. +event 261: suppval[33] of d102 is 0x65. +event 261: suppval[34] of d102 is 0x68. +event 261: suppval[35] of d102 is 0x6b. +event 261: suppval[36] of d102 is 0x6d. +event 261: suppval[37] of d102 is 0x70. +event 261: suppval[38] of d102 is 0x73. +event 261: suppval[39] of d102 is 0x75. +event 261: suppval[40] of d102 is 0x78. +event 261: suppval[41] of d102 is 0x7b. +event 261: suppval[42] of d102 is 0x7d. +event 261: suppval[43] of d102 is 0x80. +event 261: suppval[44] of d102 is 0x83. +event 261: suppval[45] of d102 is 0x85. +event 261: suppval[46] of d102 is 0x88. +event 261: suppval[47] of d102 is 0x8b. +event 261: suppval[48] of d102 is 0x8d. +event 261: suppval[49] of d102 is 0x90. +event 261: suppval[50] of d102 is 0x93. +event 261: suppval[51] of d102 is 0x95. +event 261: suppval[52] of d102 is 0x98. +event 262: EOS prop d1d9 desc record, datasize 40, propxtype 3 +event 262: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +event 262: suppval[0] of d1d9 is 0x0. +event 262: suppval[1] of d1d9 is 0x3. +event 262: suppval[2] of d1d9 is 0x5. +event 262: suppval[3] of d1d9 is 0x8. +event 262: suppval[4] of d1d9 is 0xb. +event 262: suppval[5] of d1d9 is 0xd. +event 262: suppval[6] of d1d9 is 0x10. +event 262: suppval[7] of d1d9 is 0x13. +event 262: suppval[8] of d1d9 is 0x15. +event 262: suppval[9] of d1d9 is 0x18. +event 263: EOS prop d104 desc record, datasize 76, propxtype 3 +event 263: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 263: suppval[0] of d104 is 0xe8. +event 263: suppval[1] of d104 is 0xeb. +event 263: suppval[2] of d104 is 0xed. +event 263: suppval[3] of d104 is 0xf0. +event 263: suppval[4] of d104 is 0xf3. +event 263: suppval[5] of d104 is 0xf5. +event 263: suppval[6] of d104 is 0xf8. +event 263: suppval[7] of d104 is 0xfb. +event 263: suppval[8] of d104 is 0xfd. +event 263: suppval[9] of d104 is 0x0. +event 263: suppval[10] of d104 is 0x3. +event 263: suppval[11] of d104 is 0x5. +event 263: suppval[12] of d104 is 0x8. +event 263: suppval[13] of d104 is 0xb. +event 263: suppval[14] of d104 is 0xd. +event 263: suppval[15] of d104 is 0x10. +event 263: suppval[16] of d104 is 0x13. +event 263: suppval[17] of d104 is 0x15. +event 263: suppval[18] of d104 is 0x18. +event 264: EOS prop d103 desc record, datasize 104, propxtype 3 +event 264: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 264: suppval[0] of d103 is 0x0. +event 264: suppval[1] of d103 is 0x48. +event 264: suppval[2] of d103 is 0x4b. +event 264: suppval[3] of d103 is 0x4d. +event 264: suppval[4] of d103 is 0x50. +event 264: suppval[5] of d103 is 0x53. +event 264: suppval[6] of d103 is 0x55. +event 264: suppval[7] of d103 is 0x58. +event 264: suppval[8] of d103 is 0x5b. +event 264: suppval[9] of d103 is 0x5d. +event 264: suppval[10] of d103 is 0x60. +event 264: suppval[11] of d103 is 0x63. +event 264: suppval[12] of d103 is 0x65. +event 264: suppval[13] of d103 is 0x68. +event 264: suppval[14] of d103 is 0x6b. +event 264: suppval[15] of d103 is 0x6d. +event 264: suppval[16] of d103 is 0x70. +event 264: suppval[17] of d103 is 0x73. +event 264: suppval[18] of d103 is 0x75. +event 264: suppval[19] of d103 is 0x78. +event 264: suppval[20] of d103 is 0x7b. +event 264: suppval[21] of d103 is 0x7d. +event 264: suppval[22] of d103 is 0x80. +event 264: suppval[23] of d103 is 0x83. +event 264: suppval[24] of d103 is 0x85. +event 264: suppval[25] of d103 is 0x88. +event 265: EOS prop d1d5 desc record, datasize 0, propxtype 3 +event 266: EOS prop d101 desc record, datasize 80, propxtype 3 +event 266: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 20. +event 266: suppval[0] of d101 is 0xff. +event 266: suppval[1] of d101 is 0x20. +event 266: suppval[2] of d101 is 0x23. +event 266: suppval[3] of d101 is 0x25. +event 266: suppval[4] of d101 is 0x28. +event 266: suppval[5] of d101 is 0x2b. +event 266: suppval[6] of d101 is 0x2d. +event 266: suppval[7] of d101 is 0x30. +event 266: suppval[8] of d101 is 0x33. +event 266: suppval[9] of d101 is 0x35. +event 266: suppval[10] of d101 is 0x38. +event 266: suppval[11] of d101 is 0x3b. +event 266: suppval[12] of d101 is 0x3d. +event 266: suppval[13] of d101 is 0x40. +event 266: suppval[14] of d101 is 0x43. +event 266: suppval[15] of d101 is 0x45. +event 266: suppval[16] of d101 is 0x48. +event 266: suppval[17] of d101 is 0x4b. +event 266: suppval[18] of d101 is 0x4d. +event 266: suppval[19] of d101 is 0x50. +event 267: EOS prop d102 desc record, datasize 212, propxtype 3 +event 267: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 53. +event 267: suppval[0] of d102 is 0x4. +event 267: suppval[1] of d102 is 0x10. +event 267: suppval[2] of d102 is 0x13. +event 267: suppval[3] of d102 is 0x15. +event 267: suppval[4] of d102 is 0x18. +event 267: suppval[5] of d102 is 0x1b. +event 267: suppval[6] of d102 is 0x1d. +event 267: suppval[7] of d102 is 0x20. +event 267: suppval[8] of d102 is 0x23. +event 267: suppval[9] of d102 is 0x25. +event 267: suppval[10] of d102 is 0x28. +event 267: suppval[11] of d102 is 0x2b. +event 267: suppval[12] of d102 is 0x2d. +event 267: suppval[13] of d102 is 0x30. +event 267: suppval[14] of d102 is 0x33. +event 267: suppval[15] of d102 is 0x35. +event 267: suppval[16] of d102 is 0x38. +event 267: suppval[17] of d102 is 0x3b. +event 267: suppval[18] of d102 is 0x3d. +event 267: suppval[19] of d102 is 0x40. +event 267: suppval[20] of d102 is 0x43. +event 267: suppval[21] of d102 is 0x45. +event 267: suppval[22] of d102 is 0x48. +event 267: suppval[23] of d102 is 0x4b. +event 267: suppval[24] of d102 is 0x4d. +event 267: suppval[25] of d102 is 0x50. +event 267: suppval[26] of d102 is 0x53. +event 267: suppval[27] of d102 is 0x55. +event 267: suppval[28] of d102 is 0x58. +event 267: suppval[29] of d102 is 0x5b. +event 267: suppval[30] of d102 is 0x5d. +event 267: suppval[31] of d102 is 0x60. +event 267: suppval[32] of d102 is 0x63. +event 267: suppval[33] of d102 is 0x65. +event 267: suppval[34] of d102 is 0x68. +event 267: suppval[35] of d102 is 0x6b. +event 267: suppval[36] of d102 is 0x6d. +event 267: suppval[37] of d102 is 0x70. +event 267: suppval[38] of d102 is 0x73. +event 267: suppval[39] of d102 is 0x75. +event 267: suppval[40] of d102 is 0x78. +event 267: suppval[41] of d102 is 0x7b. +event 267: suppval[42] of d102 is 0x7d. +event 267: suppval[43] of d102 is 0x80. +event 267: suppval[44] of d102 is 0x83. +event 267: suppval[45] of d102 is 0x85. +event 267: suppval[46] of d102 is 0x88. +event 267: suppval[47] of d102 is 0x8b. +event 267: suppval[48] of d102 is 0x8d. +event 267: suppval[49] of d102 is 0x90. +event 267: suppval[50] of d102 is 0x93. +event 267: suppval[51] of d102 is 0x95. +event 267: suppval[52] of d102 is 0x98. +event 268: EOS prop d1d9 desc record, datasize 40, propxtype 3 +event 268: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +event 268: suppval[0] of d1d9 is 0x0. +event 268: suppval[1] of d1d9 is 0x3. +event 268: suppval[2] of d1d9 is 0x5. +event 268: suppval[3] of d1d9 is 0x8. +event 268: suppval[4] of d1d9 is 0xb. +event 268: suppval[5] of d1d9 is 0xd. +event 268: suppval[6] of d1d9 is 0x10. +event 268: suppval[7] of d1d9 is 0x13. +event 268: suppval[8] of d1d9 is 0x15. +event 268: suppval[9] of d1d9 is 0x18. +event 269: EOS prop d104 desc record, datasize 76, propxtype 3 +event 269: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 269: suppval[0] of d104 is 0xe8. +event 269: suppval[1] of d104 is 0xeb. +event 269: suppval[2] of d104 is 0xed. +event 269: suppval[3] of d104 is 0xf0. +event 269: suppval[4] of d104 is 0xf3. +event 269: suppval[5] of d104 is 0xf5. +event 269: suppval[6] of d104 is 0xf8. +event 269: suppval[7] of d104 is 0xfb. +event 269: suppval[8] of d104 is 0xfd. +event 269: suppval[9] of d104 is 0x0. +event 269: suppval[10] of d104 is 0x3. +event 269: suppval[11] of d104 is 0x5. +event 269: suppval[12] of d104 is 0x8. +event 269: suppval[13] of d104 is 0xb. +event 269: suppval[14] of d104 is 0xd. +event 269: suppval[15] of d104 is 0x10. +event 269: suppval[16] of d104 is 0x13. +event 269: suppval[17] of d104 is 0x15. +event 269: suppval[18] of d104 is 0x18. +event 270: EOS prop d103 desc record, datasize 104, propxtype 3 +event 270: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 270: suppval[0] of d103 is 0x0. +event 270: suppval[1] of d103 is 0x48. +event 270: suppval[2] of d103 is 0x4b. +event 270: suppval[3] of d103 is 0x4d. +event 270: suppval[4] of d103 is 0x50. +event 270: suppval[5] of d103 is 0x53. +event 270: suppval[6] of d103 is 0x55. +event 270: suppval[7] of d103 is 0x58. +event 270: suppval[8] of d103 is 0x5b. +event 270: suppval[9] of d103 is 0x5d. +event 270: suppval[10] of d103 is 0x60. +event 270: suppval[11] of d103 is 0x63. +event 270: suppval[12] of d103 is 0x65. +event 270: suppval[13] of d103 is 0x68. +event 270: suppval[14] of d103 is 0x6b. +event 270: suppval[15] of d103 is 0x6d. +event 270: suppval[16] of d103 is 0x70. +event 270: suppval[17] of d103 is 0x73. +event 270: suppval[18] of d103 is 0x75. +event 270: suppval[19] of d103 is 0x78. +event 270: suppval[20] of d103 is 0x7b. +event 270: suppval[21] of d103 is 0x7d. +event 270: suppval[22] of d103 is 0x80. +event 270: suppval[23] of d103 is 0x83. +event 270: suppval[24] of d103 is 0x85. +event 270: suppval[25] of d103 is 0x88. +event 271: EOS prop d1d5 desc record, datasize 0, propxtype 3 +event 272: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 272: propxtype is 7 for d1a0, unhandled, size 20 +event 273: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 273: propxtype is 7 for d1a0, unhandled, size 20 +event 274: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 274: propxtype is 7 for d1a0, unhandled, size 20 +event 275: EOS prop d101 desc record, datasize 80, propxtype 3 +event 275: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 20. +event 275: suppval[0] of d101 is 0xff. +event 275: suppval[1] of d101 is 0x20. +event 275: suppval[2] of d101 is 0x23. +event 275: suppval[3] of d101 is 0x25. +event 275: suppval[4] of d101 is 0x28. +event 275: suppval[5] of d101 is 0x2b. +event 275: suppval[6] of d101 is 0x2d. +event 275: suppval[7] of d101 is 0x30. +event 275: suppval[8] of d101 is 0x33. +event 275: suppval[9] of d101 is 0x35. +event 275: suppval[10] of d101 is 0x38. +event 275: suppval[11] of d101 is 0x3b. +event 275: suppval[12] of d101 is 0x3d. +event 275: suppval[13] of d101 is 0x40. +event 275: suppval[14] of d101 is 0x43. +event 275: suppval[15] of d101 is 0x45. +event 275: suppval[16] of d101 is 0x48. +event 275: suppval[17] of d101 is 0x4b. +event 275: suppval[18] of d101 is 0x4d. +event 275: suppval[19] of d101 is 0x50. +event 276: EOS prop d102 desc record, datasize 212, propxtype 3 +event 276: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 53. +event 276: suppval[0] of d102 is 0x4. +event 276: suppval[1] of d102 is 0x10. +event 276: suppval[2] of d102 is 0x13. +event 276: suppval[3] of d102 is 0x15. +event 276: suppval[4] of d102 is 0x18. +event 276: suppval[5] of d102 is 0x1b. +event 276: suppval[6] of d102 is 0x1d. +event 276: suppval[7] of d102 is 0x20. +event 276: suppval[8] of d102 is 0x23. +event 276: suppval[9] of d102 is 0x25. +event 276: suppval[10] of d102 is 0x28. +event 276: suppval[11] of d102 is 0x2b. +event 276: suppval[12] of d102 is 0x2d. +event 276: suppval[13] of d102 is 0x30. +event 276: suppval[14] of d102 is 0x33. +event 276: suppval[15] of d102 is 0x35. +event 276: suppval[16] of d102 is 0x38. +event 276: suppval[17] of d102 is 0x3b. +event 276: suppval[18] of d102 is 0x3d. +event 276: suppval[19] of d102 is 0x40. +event 276: suppval[20] of d102 is 0x43. +event 276: suppval[21] of d102 is 0x45. +event 276: suppval[22] of d102 is 0x48. +event 276: suppval[23] of d102 is 0x4b. +event 276: suppval[24] of d102 is 0x4d. +event 276: suppval[25] of d102 is 0x50. +event 276: suppval[26] of d102 is 0x53. +event 276: suppval[27] of d102 is 0x55. +event 276: suppval[28] of d102 is 0x58. +event 276: suppval[29] of d102 is 0x5b. +event 276: suppval[30] of d102 is 0x5d. +event 276: suppval[31] of d102 is 0x60. +event 276: suppval[32] of d102 is 0x63. +event 276: suppval[33] of d102 is 0x65. +event 276: suppval[34] of d102 is 0x68. +event 276: suppval[35] of d102 is 0x6b. +event 276: suppval[36] of d102 is 0x6d. +event 276: suppval[37] of d102 is 0x70. +event 276: suppval[38] of d102 is 0x73. +event 276: suppval[39] of d102 is 0x75. +event 276: suppval[40] of d102 is 0x78. +event 276: suppval[41] of d102 is 0x7b. +event 276: suppval[42] of d102 is 0x7d. +event 276: suppval[43] of d102 is 0x80. +event 276: suppval[44] of d102 is 0x83. +event 276: suppval[45] of d102 is 0x85. +event 276: suppval[46] of d102 is 0x88. +event 276: suppval[47] of d102 is 0x8b. +event 276: suppval[48] of d102 is 0x8d. +event 276: suppval[49] of d102 is 0x90. +event 276: suppval[50] of d102 is 0x93. +event 276: suppval[51] of d102 is 0x95. +event 276: suppval[52] of d102 is 0x98. +event 277: EOS prop d1d9 desc record, datasize 40, propxtype 3 +event 277: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +event 277: suppval[0] of d1d9 is 0x0. +event 277: suppval[1] of d1d9 is 0x3. +event 277: suppval[2] of d1d9 is 0x5. +event 277: suppval[3] of d1d9 is 0x8. +event 277: suppval[4] of d1d9 is 0xb. +event 277: suppval[5] of d1d9 is 0xd. +event 277: suppval[6] of d1d9 is 0x10. +event 277: suppval[7] of d1d9 is 0x13. +event 277: suppval[8] of d1d9 is 0x15. +event 277: suppval[9] of d1d9 is 0x18. +event 278: EOS prop d104 desc record, datasize 76, propxtype 3 +event 278: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 278: suppval[0] of d104 is 0xe8. +event 278: suppval[1] of d104 is 0xeb. +event 278: suppval[2] of d104 is 0xed. +event 278: suppval[3] of d104 is 0xf0. +event 278: suppval[4] of d104 is 0xf3. +event 278: suppval[5] of d104 is 0xf5. +event 278: suppval[6] of d104 is 0xf8. +event 278: suppval[7] of d104 is 0xfb. +event 278: suppval[8] of d104 is 0xfd. +event 278: suppval[9] of d104 is 0x0. +event 278: suppval[10] of d104 is 0x3. +event 278: suppval[11] of d104 is 0x5. +event 278: suppval[12] of d104 is 0x8. +event 278: suppval[13] of d104 is 0xb. +event 278: suppval[14] of d104 is 0xd. +event 278: suppval[15] of d104 is 0x10. +event 278: suppval[16] of d104 is 0x13. +event 278: suppval[17] of d104 is 0x15. +event 278: suppval[18] of d104 is 0x18. +event 279: EOS prop d103 desc record, datasize 104, propxtype 3 +event 279: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +event 279: suppval[0] of d103 is 0x0. +event 279: suppval[1] of d103 is 0x48. +event 279: suppval[2] of d103 is 0x4b. +event 279: suppval[3] of d103 is 0x4d. +event 279: suppval[4] of d103 is 0x50. +event 279: suppval[5] of d103 is 0x53. +event 279: suppval[6] of d103 is 0x55. +event 279: suppval[7] of d103 is 0x58. +event 279: suppval[8] of d103 is 0x5b. +event 279: suppval[9] of d103 is 0x5d. +event 279: suppval[10] of d103 is 0x60. +event 279: suppval[11] of d103 is 0x63. +event 279: suppval[12] of d103 is 0x65. +event 279: suppval[13] of d103 is 0x68. +event 279: suppval[14] of d103 is 0x6b. +event 279: suppval[15] of d103 is 0x6d. +event 279: suppval[16] of d103 is 0x70. +event 279: suppval[17] of d103 is 0x73. +event 279: suppval[18] of d103 is 0x75. +event 279: suppval[19] of d103 is 0x78. +event 279: suppval[20] of d103 is 0x7b. +event 279: suppval[21] of d103 is 0x7d. +event 279: suppval[22] of d103 is 0x80. +event 279: suppval[23] of d103 is 0x83. +event 279: suppval[24] of d103 is 0x85. +event 279: suppval[25] of d103 is 0x88. +event 280: EOS prop d1d5 desc record, datasize 0, propxtype 3 +event 281: EOS prop d208 desc record, datasize 0, propxtype 7 +event 281: propxtype is 7 for d208, unhandled, size 20 +event 282: EOS prop 0000 desc record, datasize 12, propxtype 3 +event 282: propxtype is 3, prop is 0x0000, data type is 0x0000, propxcnt is 3. +event 282: data type 0x0000 of 0 unhandled, size 1, raw values: + 0: 0x 1 + 1: 0x 2 + 2: 0x 0 +event 283: EOS prop 0000 desc record, datasize 28, propxtype 3 +event 283: propxtype is 3, prop is 0x0000, data type is 0x0000, propxcnt is 7. +event 283: data type 0x0000 of 0 unhandled, size 15, raw values: + 0: 0x f + 1: 0x 1e + 2: 0x 3c + 3: 0x b4 + 4: 0x 12c + 5: 0x 258 + 6: 0x 708 +event 284: unhandled EOS event CTGInfoCheckComplete (size 12) + 8: 01 + 9: 00 + 10: 02 + 11: 00 +event 285: unhandled EOS event PowerZoomInfoChanged (size 12) + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 286: EOS prop d1b0 info record, datasize is 4 +event 286: currentvalue of d1b0 is 8 +olcinfoversion is 18 +event 287: EOS event OLCInfoChanged (size 25) + 0: 15 + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 01 + 10: 00 + 11: 50 + 12: 00 + 13: 20 + 14: 00 + 15: ff + 16: 01 + +event 0: EOS prop d175 info record, datasize is 4 +event 0: Unknown EOS property d175, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 1: EOS prop d1a3 info record, datasize is 4 +event 1: Unknown EOS property d1a3, datasize is 4, using uint32 + 0: 0x 0 +event 1: currentvalue of d1a3 is 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m6.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m6.txt new file mode 100644 index 00000000..dcd4ca01 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos-m6.txt @@ -0,0 +1,811 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS M6 + device version: 3-15.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x9013 (PTP_OC_CANON_CheckEvent) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) + 0x901f (PTP_OC_CANON_ChangeUSBProtocol) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1012 (Set object protection) + 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) + 0x9021 (PTP_OC_CANON_GetObjectInfoEx) + 0x901b (PTP_OC_CANON_GetPartialObjectEx) + 0x901e (PTP_OC_CANON_GetObjectAttributes) + 0x9019 (PTP_OC_CANON_SendPartialObject) + 0x9006 (PTP_OC_CANON_GetObjectHandleByName) + 0x901c (PTP_OC_CANON_SetObjectTime) + 0x9002 (PTP_OC_CANON_SetObjectArchive) + 0x904c (Unknown PTP_OC) + 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) + 0x9025 (PTP_OC_CANON_SendObjectByPath ) + 0x9038 (Unknown PTP_OC) + 0x9039 (Unknown PTP_OC) + 0x903a (Unknown PTP_OC) + 0x903b (Unknown PTP_OC) + 0x904b (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) + 0x9062 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9182 (PTP_OC_CANON_EOS_NotifyEstimateNumberofImport) + 0x9183 (PTP_OC_CANON_EOS_NotifyNumberofImported) + 0x9184 (PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer) + 0x9185 (PTP_OC_CANON_EOS_NotifyFinish) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x9075 (Unknown PTP_OC) + 0x9076 (Unknown PTP_OC) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x902f (Unknown PTP_OC) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) +Events Supported: + 0x4001 (CancelTransaction) + 0x4002 (ObjectAdded) + 0x4003 (ObjectRemoved) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4006 (DevicePropChanged) + 0x4007 (ObjectInfoChanged) + 0x4008 (DeviceInfoChanged) + 0x4009 (RequestObjectTransfer) + 0x400a (StoreFull) + 0x400b (DeviceReset) + 0x400c (StorageInfoChanged) + 0x400e (UnreportedStatus) + 0xc001 (Unknown Event) + 0xc005 (Unknown Event) + 0xc00a (Unknown Event) + 0xc101 (Unknown Event) +Device Properties Supported: + 0xd045 (Event Emulate Mode) + 0xd04a (Unknown DPC code) + 0xd02e (Size of Output Data from Camera) + 0xd02f (Size of Input Data to Camera) + 0x5001 (Battery Level) + 0xd002 (Battery Type) + 0xd003 (Battery Mode) + 0xd034 (UNIX Time) + 0xd047 (Type of Slideshow) + 0xd046 (DPOF Version) + 0xd030 (Remote API Version) + 0xd049 (Model ID) + 0xd032 (Camera Model) + 0xd033 (Camera Owner) + 0xd031 (Firmware Version) + 0xd050 (Unknown DPC code) + 0xd051 (Unknown DPC code) + 0xd052 (Unknown DPC code) + 0xd053 (Unknown DPC code) + 0xd054 (Unknown DPC code) + 0xd057 (Unknown DPC code) + 0xd402 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd303 (Unknown DPC code) + +0000 37 06 00 00 02 00 16 91-0b 00 00 00 15 00 00 00 7............... +0010 a5 c1 00 00 0d 00 00 00-04 00 00 00 00 00 00 00 ................ +0020 00 16 00 00 00 a5 c1 00-00 0e 00 00 00 02 00 00 ................ +0030 00 00 00 00 00 00 00 14-00 00 00 a5 c1 00 00 0c ................ +0040 00 00 00 08 00 00 00 00-01 00 00 10 00 00 00 89 ................ +0050 c1 00 00 11 d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0060 c1 00 00 12 d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0070 c1 00 00 16 d1 00 00 00-00 07 04 10 00 00 00 89 ................ +0080 c1 00 00 1e d1 00 00 01-00 01 00 10 00 00 00 89 ................ +0090 c1 00 00 36 d1 00 00 00-00 00 00 20 00 00 00 89 ...6....... .... +00a0 c1 00 00 20 d1 00 00 01-00 00 00 10 00 00 00 01 ... ............ +00b0 00 00 00 00 00 00 00 03-00 00 00 1c 00 00 00 89 ................ +00c0 c1 00 00 25 d1 00 00 00-00 00 00 00 00 00 00 00 ...%............ +00d0 00 00 00 00 00 00 00 10-00 00 00 89 c1 00 00 75 ...............u +00e0 d1 00 00 07 00 00 00 10-00 00 00 89 c1 00 00 7c ...............| +00f0 d1 00 00 c1 82 05 5c 10-00 00 00 89 c1 00 00 94 ......\......... +0100 d1 00 00 00 00 00 00 10-00 00 00 89 c1 00 00 99 ................ +0110 d1 00 00 08 00 00 00 10-00 00 00 89 c1 00 00 b0 ................ +0120 d1 00 00 08 00 00 00 10-00 00 00 89 c1 00 00 b1 ................ +0130 d1 00 00 01 00 00 00 10-00 00 00 89 c1 00 00 b2 ................ +0140 d1 00 00 00 00 00 00 10-00 00 00 89 c1 00 00 58 ...............X +0150 d0 00 00 00 00 00 00 74-00 00 00 89 c1 00 00 68 .......t.......h +0160 d1 00 00 05 00 00 00 14-00 00 00 01 00 00 00 00 ................ +0170 00 00 00 70 17 00 00 a0-0f 00 00 14 00 00 00 01 ...p............ +0180 00 00 00 01 00 00 00 90-0f 00 00 60 0a 00 00 14 ...........`.... +0190 00 00 00 01 00 00 00 0e-00 00 00 a0 0b 00 00 c0 ................ +01a0 07 00 00 14 00 00 00 01-00 00 00 0f 00 00 00 60 ...............` +01b0 09 00 00 40 06 00 00 14-00 00 00 06 00 00 00 00 ...@............ +01c0 00 00 00 70 17 00 00 a0-0f 00 00 48 00 00 00 89 ...p.......H.... +01d0 c1 00 00 3f d1 00 00 01-00 00 00 6a 70 2e 63 6f ...?.......jp.co +01e0 2e 63 61 6e 6f 6e 2e 69-63 2e 63 61 6d 65 72 61 .canon.ic.camera +01f0 63 6f 6e 6e 65 63 74 00-00 00 00 00 00 00 00 00 connect......... +0200 00 00 00 63 61 6e 6f 6e-2d 61 30 31 00 00 00 00 ...canon-a01.... +0210 00 00 00 10 00 00 00 89-c1 00 00 01 d1 00 00 28 ...............( +0220 00 00 00 10 00 00 00 89-c1 00 00 02 d1 00 00 70 ...............p +0230 00 00 00 10 00 00 00 89-c1 00 00 03 d1 00 00 00 ................ +0240 00 00 00 10 00 00 00 89-c1 00 00 04 d1 00 00 00 ................ +0250 00 00 00 10 00 00 00 89-c1 00 00 05 d1 00 00 16 ................ +0260 00 00 00 10 00 00 00 89-c1 00 00 06 d1 00 00 00 ................ +0270 00 00 00 10 00 00 00 89-c1 00 00 07 d1 00 00 03 ................ +0280 00 00 00 10 00 00 00 89-c1 00 00 08 d1 00 00 01 ................ +0290 00 00 00 10 00 00 00 89-c1 00 00 09 d1 00 00 00 ................ +02a0 00 00 00 10 00 00 00 89-c1 00 00 ba d1 00 00 02 ................ +02b0 00 00 00 10 00 00 00 89-c1 00 00 c9 d1 00 00 00 ................ +02c0 00 00 00 10 00 00 00 89-c1 00 00 a8 d1 00 00 01 ................ +02d0 00 00 00 4c 00 00 00 89-c1 00 00 d8 d1 00 00 45 ...L...........E +02e0 46 2d 4d 31 35 2d 34 35-6d 6d 20 66 2f 33 2e 35 F-M15-45mm f/3.5 +02f0 2d 36 2e 33 20 49 53 20-53 54 4d 00 00 00 00 00 -6.3 IS STM..... +0300 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0310 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 10 ................ +0320 00 00 00 89 c1 00 00 dd-d1 00 00 39 10 00 00 18 ...........9.... +0330 00 00 00 89 c1 00 00 7d-d1 00 00 0c 00 00 00 ff .......}........ +0340 ff ff ff 20 fe ff ff 10-00 00 00 89 c1 00 00 7e ... ...........~ +0350 d1 00 00 00 00 00 00 38-00 00 00 89 c1 00 00 63 .......8.......c +0360 d1 00 00 2c 00 00 00 01-00 00 00 87 00 00 00 00 ...,............ +0370 00 00 00 03 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0380 00 00 00 00 00 00 00 04-00 00 00 04 00 00 00 38 ...............8 +0390 00 00 00 89 c1 00 00 64-d1 00 00 2c 00 00 00 01 .......d...,.... +03a0 00 00 00 87 00 00 00 00-00 00 00 03 00 00 00 00 ................ +03b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 04 ................ +03c0 00 00 00 04 00 00 00 38-00 00 00 89 c1 00 00 65 .......8.......e +03d0 d1 00 00 2c 00 00 00 01-00 00 00 87 00 00 00 00 ...,............ +03e0 00 00 00 03 00 00 00 00-00 00 00 00 00 00 00 00 ................ +03f0 00 00 00 00 00 00 00 04-00 00 00 04 00 00 00 14 ................ + +0.845670 gp_port_read (3): Reading 512 = 0x200 bytes from port... +0.845822 gp_port_read (3): Read 512 = 0x200 bytes from port: (hexdump of 512 bytes) +0000 00 00 00 8a c1 00 00 11-d1 00 00 00 00 00 00 00 ................ +0010 00 00 00 14 00 00 00 8a-c1 00 00 12 d1 00 00 00 ................ +0020 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 16 ................ +0030 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0040 c1 00 00 1e d1 00 00 00-00 00 00 00 00 00 00 14 ................ +0050 00 00 00 8a c1 00 00 20-d1 00 00 00 00 00 00 00 ....... ........ +0060 00 00 00 14 00 00 00 8a-c1 00 00 25 d1 00 00 00 ...........%.... +0070 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 38 ...............8 +0080 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0090 c1 00 00 77 d1 00 00 00-00 00 00 00 00 00 00 14 ...w............ +00a0 00 00 00 8a c1 00 00 7c-d1 00 00 00 00 00 00 00 .......|........ +00b0 00 00 00 14 00 00 00 8a-c1 00 00 94 d1 00 00 00 ................ +00c0 00 00 00 00 00 00 00 1c-00 00 00 8a c1 00 00 b0 ................ +00d0 d1 00 00 03 00 00 00 02-00 00 00 00 00 00 00 08 ................ +00e0 00 00 00 14 00 00 00 8a-c1 00 00 b1 d1 00 00 00 ................ +00f0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 01 ................ +0100 d1 00 00 03 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0110 c1 00 00 02 d1 00 00 03-00 00 00 00 00 00 00 14 ................ +0120 00 00 00 8a c1 00 00 03-d1 00 00 03 00 00 00 00 ................ +0130 00 00 00 14 00 00 00 8a-c1 00 00 04 d1 00 00 03 ................ +0140 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 05 ................ +0150 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0160 c1 00 00 07 d1 00 00 00-00 00 00 00 00 00 00 14 ................ +0170 00 00 00 8a c1 00 00 08-d1 00 00 00 00 00 00 00 ................ +0180 00 00 00 14 00 00 00 8a-c1 00 00 1b d1 00 00 00 ................ +0190 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 c9 ................ +01a0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +01b0 c1 00 00 a8 d1 00 00 00-00 00 00 00 00 00 00 14 ................ +01c0 00 00 00 8a c1 00 00 d8-d1 00 00 00 00 00 00 00 ................ +01d0 00 00 00 14 00 00 00 8a-c1 00 00 dd d1 00 00 00 ................ +01e0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 63 ...............c +01f0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ + +0.845859 gp_port_read (3): Reading 55 = 0x37 bytes from port... +0.845923 gp_port_read (3): Read 55 = 0x37 bytes from port: (hexdump of 55 bytes) +0000 c1 00 00 64 d1 00 00 00-00 00 00 00 00 00 00 14 ...d............ +0010 00 00 00 8a c1 00 00 65-d1 00 00 00 00 00 00 00 .......e........ +0020 00 00 00 0c 00 00 00 a4-c1 00 00 01 00 01 00 08 ................ +0030 00 00 00 00 00 00 00 - ....... + +0.845996 ptp_usb_getresp (2): Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) response... +0.846012 gp_port_read (3): Reading 1024 = 0x400 bytes from port... +0.852858 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes) +0000 0c 00 00 00 03 00 01 20-0b 00 00 00 ....... .... + +0.852934 ptp (2): olcinfoversion is 0 +0.852949 ptp (2): event 0: EOS event OLCInfoChanged (size 21) +0.852961 ptp (2): 0: 0d +0.852972 ptp (2): 1: 00 +0.852982 ptp (2): 2: 00 +0.852992 ptp (2): 3: 00 +0.853002 ptp (2): 4: 04 +0.853012 ptp (2): 5: 00 +0.853021 ptp (2): 6: 00 +0.853031 ptp (2): 7: 00 +0.853041 ptp (2): 8: 00 +0.853050 ptp (2): 9: 00 +0.853060 ptp (2): 10: 00 +0.853070 ptp (2): 11: 00 +0.853080 ptp (2): 12: 00 +0.853104 ptp (2): olcinfoversion is 0 +0.853116 ptp (2): event 2: EOS event OLCInfoChanged (size 22) +0.853126 ptp (2): 0: 0e +0.853136 ptp (2): 1: 00 +0.853146 ptp (2): 2: 00 +0.853156 ptp (2): 3: 00 +0.853166 ptp (2): 4: 02 +0.853175 ptp (2): 5: 00 +0.853185 ptp (2): 6: 00 +0.853194 ptp (2): 7: 00 +0.853204 ptp (2): 8: 00 +0.853214 ptp (2): 9: 00 +0.853223 ptp (2): 10: 00 +0.853233 ptp (2): 11: 00 +0.853243 ptp (2): 12: 00 +0.853253 ptp (2): 13: 00 +0.853265 ptp (2): olcinfoversion is 0 +0.853275 ptp (2): event 4: EOS event OLCInfoChanged (size 20) +0.853286 ptp (2): 0: 0c +0.853295 ptp (2): 1: 00 +0.853305 ptp (2): 2: 00 +0.853314 ptp (2): 3: 00 +0.853324 ptp (2): 4: 08 +0.853334 ptp (2): 5: 00 +0.853343 ptp (2): 6: 00 +0.853353 ptp (2): 7: 00 +0.853363 ptp (2): 8: 00 +0.853373 ptp (2): 9: 01 +0.853382 ptp (2): 10: 00 +0.853409 ptp (2): 11: 00 +0.853424 ptp (2): event 6: EOS prop d111 info record, datasize is 4 +0.853440 ptp (2): event 6: currentvalue of d111 is 2 +0.853451 ptp (2): event 7: EOS prop d112 info record, datasize is 4 +0.853463 ptp (2): event 7: currentvalue of d112 is 2 +0.853474 ptp (2): event 8: EOS prop d116 info record, datasize is 4 +0.853486 ptp (2): event 8: currentvalue of d116 is 4070000 +0.853497 ptp (2): event 9: EOS prop d11e info record, datasize is 4 +0.853509 ptp (2): event 9: currentvalue of d11e is 10001 +0.853520 ptp (2): event 10: EOS prop d136 info record, datasize is 4 +0.853533 ptp (2): event 10: Unknown EOS property d136, datasize is 4 +0.853544 ptp (2): 0: 00 +0.853555 ptp (2): 1: 00 +0.853565 ptp (2): 2: 00 +0.853574 ptp (2): 3: 00 +0.853586 ptp (2): event 11: EOS prop d120 info record, datasize is 20 +0.853602 ptp (2): event 11: decoded imageformat, currentvalue of d120 is 300 +0.853613 ptp (2): event 12: EOS prop d125 info record, datasize is 16 +0.853626 ptp (2): event 12: Unknown EOS property d125, datasize is 16 +0.853636 ptp (2): 0: 00 +0.853647 ptp (2): 1: 00 +0.853657 ptp (2): 2: 00 +0.853666 ptp (2): 3: 00 +0.853676 ptp (2): 4: 00 +0.853686 ptp (2): 5: 00 +0.853695 ptp (2): 6: 00 +0.853705 ptp (2): 7: 00 +0.853714 ptp (2): 8: 00 +0.853724 ptp (2): 9: 00 +0.853734 ptp (2): 10: 00 +0.853744 ptp (2): 11: 00 +0.853754 ptp (2): 12: 00 +0.853763 ptp (2): 13: 00 +0.853773 ptp (2): 14: 00 +0.853783 ptp (2): 15: 00 +0.853793 ptp (2): event 13: EOS prop d175 info record, datasize is 4 +0.853808 ptp (2): event 13: Unknown EOS property d175, datasize is 4 +0.853818 ptp (2): 0: 07 +0.853828 ptp (2): 1: 00 +0.853838 ptp (2): 2: 00 +0.853847 ptp (2): 3: 00 +0.853858 ptp (2): event 14: EOS prop d17c info record, datasize is 4 +0.853870 ptp (2): event 14: currentvalue of d17c is 5c0582c1 +0.853881 ptp (2): event 15: EOS prop d194 info record, datasize is 4 +0.853894 ptp (2): event 15: currentvalue of d194 is 0 +0.853905 ptp (2): event 16: EOS prop d199 info record, datasize is 4 +0.853916 ptp (2): event 16: currentvalue of d199 is 8 +0.853927 ptp (2): event 17: EOS prop d1b0 info record, datasize is 4 +0.853941 ptp (2): event 17: currentvalue of d1b0 is 8 +0.853952 ptp (2): event 18: EOS prop d1b1 info record, datasize is 4 +0.853965 ptp (2): event 18: currentvalue of d1b1 is 1 +0.853976 ptp (2): event 19: EOS prop d1b2 info record, datasize is 4 +0.853990 ptp (2): event 19: Unknown EOS property d1b2, datasize is 4, using uint32 +0.854002 ptp (2): 0: 0x 0 +0.854013 ptp (2): event 19: currentvalue of d1b2 is 0 +0.854024 ptp (2): event 20: EOS prop d058 info record, datasize is 4 +0.854039 ptp (2): event 20: Unknown EOS property d058, datasize is 4 +0.854054 ptp (2): 0: 00 +0.854064 ptp (2): 1: 00 +0.854074 ptp (2): 2: 00 +0.854084 ptp (2): 3: 00 +0.854095 ptp (2): event 21: EOS prop d168 info record, datasize is 104 +0.854108 ptp (2): event 21: Unknown EOS property d168, datasize is 104 +0.854118 ptp (2): 0: 05 +0.854128 ptp (2): 1: 00 +0.854138 ptp (2): 2: 00 +0.854147 ptp (2): 3: 00 +0.854158 ptp (2): 4: 14 +0.854168 ptp (2): 5: 00 +0.854177 ptp (2): 6: 00 +0.854187 ptp (2): 7: 00 +0.854197 ptp (2): 8: 01 +0.854207 ptp (2): 9: 00 +0.854216 ptp (2): 10: 00 +0.854226 ptp (2): 11: 00 +0.854236 ptp (2): 12: 00 +0.854246 ptp (2): 13: 00 +0.854256 ptp (2): 14: 00 +0.854265 ptp (2): 15: 00 +0.854275 ptp (2): 16: 70 +0.854285 ptp (2): 17: 17 +0.854295 ptp (2): 18: 00 +0.854305 ptp (2): 19: 00 +0.854314 ptp (2): 20: a0 +0.854324 ptp (2): 21: 0f +0.854334 ptp (2): 22: 00 +0.854344 ptp (2): 23: 00 +0.854353 ptp (2): 24: 14 +0.854363 ptp (2): 25: 00 +0.854373 ptp (2): 26: 00 +0.854382 ptp (2): 27: 00 +0.854392 ptp (2): 28: 01 +0.854402 ptp (2): 29: 00 +0.854412 ptp (2): 30: 00 +0.854421 ptp (2): 31: 00 +0.854431 ptp (2): 32: 01 +0.854441 ptp (2): 33: 00 +0.854450 ptp (2): 34: 00 +0.854460 ptp (2): 35: 00 +0.854470 ptp (2): 36: 90 +0.854479 ptp (2): 37: 0f +0.854489 ptp (2): 38: 00 +0.854499 ptp (2): 39: 00 +0.854508 ptp (2): 40: 60 +0.854518 ptp (2): 41: 0a +0.854528 ptp (2): 42: 00 +0.854538 ptp (2): 43: 00 +0.854547 ptp (2): 44: 14 +0.854557 ptp (2): 45: 00 +0.854567 ptp (2): 46: 00 +0.854576 ptp (2): 47: 00 +0.854586 ptp (2): 48: 01 +0.854596 ptp (2): 49: 00 +0.854606 ptp (2): 50: 00 +0.854615 ptp (2): 51: 00 +0.854625 ptp (2): 52: 0e +0.854635 ptp (2): 53: 00 +0.854645 ptp (2): 54: 00 +0.854654 ptp (2): 55: 00 +0.854664 ptp (2): 56: a0 +0.854674 ptp (2): 57: 0b +0.854753 ptp (2): 58: 00 +0.854762 ptp (2): 59: 00 +0.854772 ptp (2): 60: c0 +0.854782 ptp (2): 61: 07 +0.854791 ptp (2): 62: 00 +0.854801 ptp (2): 63: 00 +0.854811 ptp (2): 64: 14 +0.854820 ptp (2): 65: 00 +0.854830 ptp (2): 66: 00 +0.854840 ptp (2): 67: 00 +0.854849 ptp (2): 68: 01 +0.854864 ptp (2): 69: 00 +0.854874 ptp (2): 70: 00 +0.854883 ptp (2): 71: 00 +0.854893 ptp (2): 72: 0f +0.854903 ptp (2): 73: 00 +0.854913 ptp (2): 74: 00 +0.854922 ptp (2): 75: 00 +0.854932 ptp (2): 76: 60 +0.854942 ptp (2): 77: 09 +0.854951 ptp (2): 78: 00 +0.854961 ptp (2): 79: 00 +0.854971 ptp (2): 80: 40 +0.854980 ptp (2): 81: 06 +0.854990 ptp (2): 82: 00 +0.855000 ptp (2): 83: 00 +0.855009 ptp (2): 84: 14 +0.855019 ptp (2): 85: 00 +0.855028 ptp (2): 86: 00 +0.855038 ptp (2): 87: 00 +0.855048 ptp (2): 88: 06 +0.855058 ptp (2): 89: 00 +0.855067 ptp (2): 90: 00 +0.855077 ptp (2): 91: 00 +0.855087 ptp (2): 92: 00 +0.855096 ptp (2): 93: 00 +0.855106 ptp (2): 94: 00 +0.855116 ptp (2): 95: 00 +0.855125 ptp (2): 96: 70 +0.855135 ptp (2): 97: 17 +0.855145 ptp (2): 98: 00 +0.855154 ptp (2): 99: 00 +0.855164 ptp (2): 100: a0 +0.855174 ptp (2): 101: 0f +0.855184 ptp (2): 102: 00 +0.855194 ptp (2): 103: 00 +0.855205 ptp (2): event 22: EOS prop d13f info record, datasize is 60 +0.855218 ptp (2): event 22: Unknown EOS property d13f, datasize is 60 +0.855228 ptp (2): 0: 01 +0.855238 ptp (2): 1: 00 +0.855248 ptp (2): 2: 00 +0.855258 ptp (2): 3: 00 +0.855268 ptp (2): 4: 6a +0.855277 ptp (2): 5: 70 +0.855287 ptp (2): 6: 2e +0.855297 ptp (2): 7: 63 +0.855306 ptp (2): 8: 6f +0.855316 ptp (2): 9: 2e +0.855326 ptp (2): 10: 63 +0.855336 ptp (2): 11: 61 +0.855345 ptp (2): 12: 6e +0.855355 ptp (2): 13: 6f +0.855365 ptp (2): 14: 6e +0.855374 ptp (2): 15: 2e +0.855384 ptp (2): 16: 69 +0.855393 ptp (2): 17: 63 +0.855403 ptp (2): 18: 2e +0.855413 ptp (2): 19: 63 +0.855422 ptp (2): 20: 61 +0.855432 ptp (2): 21: 6d +0.855441 ptp (2): 22: 65 +0.855451 ptp (2): 23: 72 +0.855460 ptp (2): 24: 61 +0.855470 ptp (2): 25: 63 +0.855480 ptp (2): 26: 6f +0.855489 ptp (2): 27: 6e +0.855499 ptp (2): 28: 6e +0.855509 ptp (2): 29: 65 +0.855518 ptp (2): 30: 63 +0.855528 ptp (2): 31: 74 +0.855537 ptp (2): 32: 00 +0.855547 ptp (2): 33: 00 +0.855557 ptp (2): 34: 00 +0.855566 ptp (2): 35: 00 +0.855576 ptp (2): 36: 00 +0.855586 ptp (2): 37: 00 +0.855595 ptp (2): 38: 00 +0.855609 ptp (2): 39: 00 +0.855619 ptp (2): 40: 00 +0.855629 ptp (2): 41: 00 +0.855638 ptp (2): 42: 00 +0.855648 ptp (2): 43: 00 +0.855658 ptp (2): 44: 63 +0.855667 ptp (2): 45: 61 +0.855677 ptp (2): 46: 6e +0.855687 ptp (2): 47: 6f +0.855696 ptp (2): 48: 6e +0.855706 ptp (2): 49: 2d +0.855716 ptp (2): 50: 61 +0.855725 ptp (2): 51: 30 +0.855735 ptp (2): 52: 31 +0.855745 ptp (2): 53: 00 +0.855754 ptp (2): 54: 00 +0.855764 ptp (2): 55: 00 +0.855774 ptp (2): 56: 00 +0.855784 ptp (2): 57: 00 +0.855793 ptp (2): 58: 00 +0.855803 ptp (2): 59: 00 +0.855814 ptp (2): event 23: EOS prop d101 info record, datasize is 4 +0.855826 ptp (2): event 23: currentvalue of d101 is 28 +0.855837 ptp (2): event 24: EOS prop d102 info record, datasize is 4 +0.855848 ptp (2): event 24: currentvalue of d102 is 70 +0.855859 ptp (2): event 25: EOS prop d103 info record, datasize is 4 +0.855870 ptp (2): event 25: currentvalue of d103 is 0 +0.855881 ptp (2): event 26: EOS prop d104 info record, datasize is 4 +0.855893 ptp (2): event 26: currentvalue of d104 is 0 +0.855904 ptp (2): event 27: EOS prop d105 info record, datasize is 4 +0.855916 ptp (2): event 27: currentvalue of d105 is 16 +0.855926 ptp (2): event 28: EOS prop d106 info record, datasize is 4 +0.855938 ptp (2): event 28: currentvalue of d106 is 0 +0.855949 ptp (2): event 29: EOS prop d107 info record, datasize is 4 +0.855960 ptp (2): event 29: currentvalue of d107 is 3 +0.855971 ptp (2): event 30: EOS prop d108 info record, datasize is 4 +0.855983 ptp (2): event 30: currentvalue of d108 is 1 +0.855994 ptp (2): event 31: EOS prop d109 info record, datasize is 4 +0.856005 ptp (2): event 31: currentvalue of d109 is 0 +0.856016 ptp (2): event 32: EOS prop d1ba info record, datasize is 4 +0.856029 ptp (2): event 32: Unknown EOS property d1ba, datasize is 4, using uint32 +0.856040 ptp (2): 0: 0x 2 +0.856051 ptp (2): event 32: currentvalue of d1ba is 2 +0.856061 ptp (2): event 33: EOS prop d1c9 info record, datasize is 4 +0.856073 ptp (2): event 33: currentvalue of d1c9 is 0 +0.856084 ptp (2): event 34: EOS prop d1a8 info record, datasize is 4 +0.856096 ptp (2): event 34: Unknown EOS property d1a8, datasize is 4, using uint32 +0.856107 ptp (2): 0: 0x 1 +0.856117 ptp (2): event 34: currentvalue of d1a8 is 1 +0.856128 ptp (2): event 35: EOS prop d1d8 info record, datasize is 64 +0.856143 ptp (2): event 35: currentvalue of d1d8 is EF-M15-45mm f/3.5-6.3 IS STM +0.856154 ptp (2): event 36: EOS prop d1dd info record, datasize is 4 +0.856167 ptp (2): event 36: currentvalue of d1dd is 1039 +0.856178 ptp (2): event 37: EOS prop d17d info record, datasize is 12 +0.856191 ptp (2): event 37: Unknown EOS property d17d, datasize is 12 +0.856206 ptp (2): 0: 0c +0.856216 ptp (2): 1: 00 +0.856226 ptp (2): 2: 00 +0.856236 ptp (2): 3: 00 +0.856246 ptp (2): 4: ff +0.856256 ptp (2): 5: ff +0.856266 ptp (2): 6: ff +0.856275 ptp (2): 7: ff +0.856285 ptp (2): 8: 20 +0.856294 ptp (2): 9: fe +0.856304 ptp (2): 10: ff +0.856314 ptp (2): 11: ff +0.856325 ptp (2): event 38: EOS prop d17e info record, datasize is 4 +0.856337 ptp (2): event 38: currentvalue of d17e is 0 +0.856347 ptp (2): event 39: EOS prop d163 info record, datasize is 44 +0.856360 ptp (2): event 39: Unknown EOS property d163, datasize is 44 +0.856370 ptp (2): 0: 2c +0.856380 ptp (2): 1: 00 +0.856390 ptp (2): 2: 00 +0.856400 ptp (2): 3: 00 +0.856410 ptp (2): 4: 01 +0.856420 ptp (2): 5: 00 +0.856429 ptp (2): 6: 00 +0.856439 ptp (2): 7: 00 +0.856448 ptp (2): 8: 87 +0.856458 ptp (2): 9: 00 +0.856468 ptp (2): 10: 00 +0.856478 ptp (2): 11: 00 +0.856487 ptp (2): 12: 00 +0.856497 ptp (2): 13: 00 +0.856507 ptp (2): 14: 00 +0.856517 ptp (2): 15: 00 +0.856527 ptp (2): 16: 03 +0.856537 ptp (2): 17: 00 +0.856546 ptp (2): 18: 00 +0.856556 ptp (2): 19: 00 +0.856566 ptp (2): 20: 00 +0.856575 ptp (2): 21: 00 +0.856585 ptp (2): 22: 00 +0.856595 ptp (2): 23: 00 +0.856604 ptp (2): 24: 00 +0.856631 ptp (2): 25: 00 +0.856639 ptp (2): 26: 00 +0.856647 ptp (2): 27: 00 +0.856655 ptp (2): 28: 00 +0.856663 ptp (2): 29: 00 +0.856671 ptp (2): 30: 00 +0.856679 ptp (2): 31: 00 +0.856687 ptp (2): 32: 00 +0.856695 ptp (2): 33: 00 +0.856703 ptp (2): 34: 00 +0.856712 ptp (2): 35: 00 +0.856720 ptp (2): 36: 04 +0.856728 ptp (2): 37: 00 +0.856736 ptp (2): 38: 00 +0.856744 ptp (2): 39: 00 +0.856752 ptp (2): 40: 04 +0.856760 ptp (2): 41: 00 +0.856768 ptp (2): 42: 00 +0.856776 ptp (2): 43: 00 +0.856785 ptp (2): event 40: EOS prop d164 info record, datasize is 44 +0.856795 ptp (2): event 40: Unknown EOS property d164, datasize is 44 +0.856804 ptp (2): 0: 2c +0.856812 ptp (2): 1: 00 +0.856820 ptp (2): 2: 00 +0.856828 ptp (2): 3: 00 +0.856837 ptp (2): 4: 01 +0.856845 ptp (2): 5: 00 +0.856853 ptp (2): 6: 00 +0.856861 ptp (2): 7: 00 +0.856869 ptp (2): 8: 87 +0.856877 ptp (2): 9: 00 +0.856885 ptp (2): 10: 00 +0.856893 ptp (2): 11: 00 +0.856905 ptp (2): 12: 00 +0.856913 ptp (2): 13: 00 +0.856921 ptp (2): 14: 00 +0.856930 ptp (2): 15: 00 +0.856938 ptp (2): 16: 03 +0.856946 ptp (2): 17: 00 +0.856954 ptp (2): 18: 00 +0.856962 ptp (2): 19: 00 +0.856970 ptp (2): 20: 00 +0.856978 ptp (2): 21: 00 +0.856986 ptp (2): 22: 00 +0.856994 ptp (2): 23: 00 +0.857002 ptp (2): 24: 00 +0.857010 ptp (2): 25: 00 +0.857018 ptp (2): 26: 00 +0.857026 ptp (2): 27: 00 +0.857035 ptp (2): 28: 00 +0.857043 ptp (2): 29: 00 +0.857051 ptp (2): 30: 00 +0.857059 ptp (2): 31: 00 +0.857067 ptp (2): 32: 00 +0.857075 ptp (2): 33: 00 +0.857083 ptp (2): 34: 00 +0.857092 ptp (2): 35: 00 +0.857100 ptp (2): 36: 04 +0.857108 ptp (2): 37: 00 +0.857116 ptp (2): 38: 00 +0.857124 ptp (2): 39: 00 +0.857132 ptp (2): 40: 04 +0.857140 ptp (2): 41: 00 +0.857148 ptp (2): 42: 00 +0.857157 ptp (2): 43: 00 +0.857165 ptp (2): event 41: EOS prop d165 info record, datasize is 44 +0.857175 ptp (2): event 41: Unknown EOS property d165, datasize is 44 +0.857183 ptp (2): 0: 2c +0.857192 ptp (2): 1: 00 +0.857200 ptp (2): 2: 00 +0.857208 ptp (2): 3: 00 +0.857217 ptp (2): 4: 01 +0.857225 ptp (2): 5: 00 +0.857233 ptp (2): 6: 00 +0.857241 ptp (2): 7: 00 +0.857249 ptp (2): 8: 87 +0.857257 ptp (2): 9: 00 +0.857265 ptp (2): 10: 00 +0.857274 ptp (2): 11: 00 +0.857282 ptp (2): 12: 00 +0.857290 ptp (2): 13: 00 +0.857298 ptp (2): 14: 00 +0.857307 ptp (2): 15: 00 +0.857315 ptp (2): 16: 03 +0.857323 ptp (2): 17: 00 +0.857331 ptp (2): 18: 00 +0.857339 ptp (2): 19: 00 +0.857347 ptp (2): 20: 00 +0.857355 ptp (2): 21: 00 +0.857363 ptp (2): 22: 00 +0.857372 ptp (2): 23: 00 +0.857380 ptp (2): 24: 00 +0.857388 ptp (2): 25: 00 +0.857396 ptp (2): 26: 00 +0.857404 ptp (2): 27: 00 +0.857412 ptp (2): 28: 00 +0.857421 ptp (2): 29: 00 +0.857429 ptp (2): 30: 00 +0.857437 ptp (2): 31: 00 +0.857445 ptp (2): 32: 00 +0.857453 ptp (2): 33: 00 +0.857461 ptp (2): 34: 00 +0.857470 ptp (2): 35: 00 +0.857478 ptp (2): 36: 04 +0.857486 ptp (2): 37: 00 +0.857494 ptp (2): 38: 00 +0.857503 ptp (2): 39: 00 +0.857511 ptp (2): 40: 04 +0.857519 ptp (2): 41: 00 +0.857530 ptp (2): 42: 00 +0.857539 ptp (2): 43: 00 +0.857549 ptp (2): event 42: EOS prop d111 desc record, datasize 0, propxtype 0 +0.857560 ptp (2): event 42: propxtype is 0 for d111, unhandled, size 20 +0.857570 ptp (2): event 43: EOS prop d112 desc record, datasize 0, propxtype 0 +0.857580 ptp (2): event 43: propxtype is 0 for d112, unhandled, size 20 +0.857589 ptp (2): event 44: EOS prop d116 desc record, datasize 0, propxtype 0 +0.857599 ptp (2): event 44: propxtype is 0 for d116, unhandled, size 20 +0.857608 ptp (2): event 45: EOS prop d11e desc record, datasize 0, propxtype 0 +0.857617 ptp (2): event 45: propxtype is 0 for d11e, unhandled, size 20 +0.857627 ptp (2): event 46: EOS prop d120 desc record, datasize 0, propxtype 0 +0.857636 ptp (2): event 46: propxtype is 0 for d120, unhandled, size 20 +0.857645 ptp (2): event 47: EOS prop d125 desc record, datasize 0, propxtype 0 +0.857655 ptp (2): event 47: propxtype is 0 for d125, unhandled, size 20 +0.857664 ptp (2): event 48: EOS prop d138 desc record, datasize 0, propxtype 0 +0.857673 ptp (2): event 48: propdesc d138, default value not found. +0.857682 ptp (2): event 49: EOS prop d177 desc record, datasize 0, propxtype 0 +0.857691 ptp (2): event 49: propdesc d177, default value not found. +0.857700 ptp (2): event 50: EOS prop d17c desc record, datasize 0, propxtype 0 +0.857710 ptp (2): event 50: propxtype is 0 for d17c, unhandled, size 20 +0.857719 ptp (2): event 51: EOS prop d194 desc record, datasize 0, propxtype 0 +0.857728 ptp (2): event 51: propxtype is 0 for d194, unhandled, size 20 +0.857738 ptp (2): event 52: EOS prop d1b0 desc record, datasize 8, propxtype 3 +0.857750 ptp (2): event 52: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +0.857762 ptp (2): event 52: suppval[0] of d1b0 is 0x0. +0.857772 ptp (2): event 52: suppval[1] of d1b0 is 0x8. +0.857781 ptp (2): event 53: EOS prop d1b1 desc record, datasize 0, propxtype 0 +0.857791 ptp (2): event 53: propxtype is 0 for d1b1, unhandled, size 20 +0.857800 ptp (2): event 54: EOS prop d101 desc record, datasize 0, propxtype 3 +0.857809 ptp (2): event 55: EOS prop d102 desc record, datasize 0, propxtype 3 +0.857819 ptp (2): event 56: EOS prop d103 desc record, datasize 0, propxtype 3 +0.857828 ptp (2): event 57: EOS prop d104 desc record, datasize 0, propxtype 3 +0.857837 ptp (2): event 58: EOS prop d105 desc record, datasize 0, propxtype 0 +0.857847 ptp (2): event 58: propxtype is 0 for d105, unhandled, size 20 +0.857856 ptp (2): event 59: EOS prop d107 desc record, datasize 0, propxtype 0 +0.857865 ptp (2): event 59: propxtype is 0 for d107, unhandled, size 20 +0.857875 ptp (2): event 60: EOS prop d108 desc record, datasize 0, propxtype 0 +0.857884 ptp (2): event 60: propxtype is 0 for d108, unhandled, size 20 +0.857893 ptp (2): event 61: EOS prop d11b desc record, datasize 0, propxtype 0 +0.857902 ptp (2): event 61: propdesc d11b, default value not found. +0.857911 ptp (2): event 62: EOS prop d1c9 desc record, datasize 0, propxtype 0 +0.857920 ptp (2): event 62: propxtype is 0 for d1c9, unhandled, size 20 +0.857937 ptp (2): event 63: EOS prop d1a8 desc record, datasize 0, propxtype 0 +0.857946 ptp (2): event 63: propxtype is 0 for d1a8, unhandled, size 20 +0.857956 ptp (2): event 64: EOS prop d1d8 desc record, datasize 0, propxtype 0 +0.857965 ptp (2): event 64: propxtype is 0 for d1d8, unhandled, size 20 +0.857974 ptp (2): event 65: EOS prop d1dd desc record, datasize 0, propxtype 0 +0.857984 ptp (2): event 65: propxtype is 0 for d1dd, unhandled, size 20 +0.857993 ptp (2): event 66: EOS prop d163 desc record, datasize 0, propxtype 0 +0.858002 ptp (2): event 66: propxtype is 0 for d163, unhandled, size 20 +0.858012 ptp (2): event 67: EOS prop d164 desc record, datasize 0, propxtype 0 +0.858021 ptp (2): event 67: propxtype is 0 for d164, unhandled, size 20 +0.858030 ptp (2): event 68: EOS prop d165 desc record, datasize 0, propxtype 0 +0.858040 ptp (2): event 68: propxtype is 0 for d165, unhandled, size 20 +0.858049 ptp (2): event 69: unknown EOS event c1a4 +0.858058 ptp (2): 8: 01 +0.858066 ptp (2): 9: 00 +0.858075 ptp (2): 10: 01 +0.858083 ptp (2): 11: 00 + +0000 04 01 00 00 02 00 16 91-11 00 00 00 2c 00 00 00 ............,... +0010 89 c1 00 00 15 d1 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-4c 00 00 00 89 c1 00 00 ........L....... +0040 d0 d1 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0080 00 00 00 00 4c 00 00 00-89 c1 00 00 d1 d1 00 00 ....L........... +0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00d0 2c 00 00 00 89 c1 00 00-af d1 00 00 36 35 32 30 ,...........6520 +00e0 33 32 30 30 30 37 37 31-00 00 00 00 00 00 00 00 32000771........ +00f0 00 00 00 00 00 00 00 00-00 00 00 00 08 00 00 00 ................ +0100 00 00 00 00 - .... + +0.968688 ptp (2): event 0: EOS prop d115 info record, datasize is 32 +0.968706 ptp (2): event 0: currentvalue of d115 is +0.968719 ptp (2): event 1: EOS prop d1d0 info record, datasize is 64 +0.968733 ptp (2): event 1: currentvalue of d1d0 is +0.968762 ptp (2): event 2: EOS prop d1d1 info record, datasize is 64 +0.968776 ptp (2): event 2: currentvalue of d1d1 is +0.968787 ptp (2): event 3: EOS prop d1af info record, datasize is 32 +0.968801 ptp (2): event 3: currentvalue of d1af is 652032000771 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos100d-focusinfoex.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos100d-focusinfoex.txt new file mode 100644 index 00000000..42be1ae8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos100d-focusinfoex.txt @@ -0,0 +1,150 @@ +0: 1a 01 00 00 +4: 16 01 + +6: 04 00 +8: 1f 00 31 +10: 09 00 anzahl fokuspunkte + +12: 40 14 +14: 80 0d +16: 40 14 +18: 80 0d + +20: df 00 +22: b5 00 +24: b5 00 +26: 80 00 +28: 80 00 +30: 80 00 +32: 80 00 +34: 80 00 +36: 80 00 + +38: 00 00 +40: 00 00 +42: 00 00 +44: 00 00 +46: 00 00 +48: 00 00 +50: 00 00 +52: 00 00 +54: 00 00 +56: 00 00 +58: 00 00 +60: 00 00 +62: 00 00 +64: 00 00 +66: 00 00 +68: 00 00 +70: 00 00 +72: 00 00 +74: 00 00 +76: 00 00 +78: 00 00 +80: 00 00 + +82: df 00 +84: 77 00 +86: 77 00 +88: ac 00 +90: ac 00 +92: ac 00 +94: ac 00 +96: ac 00 +98: ac 00 + +100: 00 00 +102: 00 00 +104: 00 00 +106: 00 00 +108: 00 00 +110: 00 00 +112: 00 00 +114: 00 00 +116: 00 00 +118: 00 00 +120: 00 00 +122: 00 00 +124: 00 00 +126: 00 00 +128: 00 00 +130: 00 00 +132: 00 00 +134: 00 00 +136: 00 00 +138: 00 00 +140: 00 00 +142: 00 00 + +144: 00 00 +146: 00 00 +148: 00 00 +150: cb fc +152: 35 03 +154: cb fc +156: 35 03 +158: a6 fa +160: 5a 05 + +162: 00 00 +164: 00 00 +166: 00 00 +168: 00 00 +170: 00 00 +172: 00 00 +174: 00 00 +176: 00 00 +178: 00 00 +180: 00 00 +182: 00 00 +184: 00 00 +186: 00 00 +188: 00 00 +190: 00 00 +192: 00 00 +194: 00 00 +196: 00 00 +198: 00 00 +200: 00 00 +202: 00 00 +204: 00 00 +206: 00 00 + +208: da 02 +210: 26 fd +212: 84 01 +214: 84 01 +216: 7c fe +218: 7c fe +220: 00 00 +222: 00 00 +224: 00 00 + +226: 00 00 +228: 00 00 +230: 00 00 +232: 00 00 +234: 00 00 +236: 00 00 +238: 00 00 +240: 00 00 +242: 00 00 +244: 00 00 +246: 00 00 +248: 00 00 +250: 00 00 +252: 00 00 +254: 00 00 +256: 00 00 +258: 00 00 +260: 00 00 +262: 00 00 +264: 00 00 +266: 00 00 +268: 00 00 +270: 00 00 +272: ff 01 +274: 00 00 +276: 00 00 +278: 00 00 +280: ff ff diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos100d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos100d.txt new file mode 100644 index 00000000..e22364c5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos100d.txt @@ -0,0 +1,3423 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 100D + Version: 3-1.0.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture + Canon Wifi support + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 8308916224 (7924 MB) + Free Space (Bytes): 8302559232 (7917 MB) + Free Space (Images): -1 + +Device Property Summary: +Model ID(0xd049):(read only) (type=0x6) 2147484486 +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 100D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1367681903 +Printable: Sat 04 May 2013 05:38:23 PM CEST +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Undefined +Choice: 0 Undefined +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +/main/settings/movierecord +Label: Movie Recording +Type: TEXT +Current: 0 +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d105,0, +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 30 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 100D +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.0.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484486 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-S18-55mm f/3.5-5.6 IS STM +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 013070012034 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 2 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 916 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +Choice: 4 800 +Choice: 5 1600 +Choice: 6 3200 +Choice: 7 6400 +Choice: 8 12800 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 Unknown value 00dd +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: P +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous +Choice: 2 Single silent +Choice: 3 Continuous silent +Choice: 4 Timer 10 sec +Choice: 5 Timer 2 sec +Choice: 6 Unknown value 0007 +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Unknown value 0087 +Choice: 0 Unknown value 0087 +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +Choice: 10 Unknown value 0087 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: -2147482810 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 100D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. +UNKNOWN PTP Property d105 changed +UNKNOWN PTP Property d108 changed +UNKNOWN PTP Property d106 changed +UNKNOWN PTP Property d107 changed +UNKNOWN PTP Property d109 changed +UNKNOWN PTP Property d10a changed +UNKNOWN PTP Property d10b changed +UNKNOWN PTP Property d10c changed +UNKNOWN PTP Property d10d changed +UNKNOWN PTP Property d10e changed +UNKNOWN PTP Property d10f changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d114 changed +UNKNOWN PTP Property d116 changed +UNKNOWN PTP Property d119 changed +UNKNOWN PTP Property d110 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d103 changed +UNKNOWN PTP Property d104 changed +UNKNOWN PTP Property d11d changed +UNKNOWN PTP Property d111 changed +UNKNOWN PTP Property d112 changed +UNKNOWN PTP Property d113 changed +UNKNOWN PTP Property d17c changed +UNKNOWN PTP Property d17d changed +UNKNOWN PTP Property d17e changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d121 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d156 changed +UNKNOWN PTP Property d150 changed +UNKNOWN PTP Property d151 changed +UNKNOWN PTP Property d152 changed +UNKNOWN PTP Property d153 changed +UNKNOWN PTP Property d154 changed +UNKNOWN PTP Property d155 changed +UNKNOWN PTP Property d160 changed +UNKNOWN PTP Property d161 changed +UNKNOWN PTP Property d162 changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a1 changed +UNKNOWN PTP Property d1a8 changed +UNKNOWN PTP Property d1a7 changed +UNKNOWN PTP Property d1ab changed +UNKNOWN PTP Property d1b0 changed +UNKNOWN PTP Property d1b1 changed +UNKNOWN PTP Property d1b2 changed +UNKNOWN PTP Property d1b3 changed +UNKNOWN PTP Property d1b4 changed +UNKNOWN PTP Property d1b5 changed +UNKNOWN PTP Property d1b6 changed +UNKNOWN PTP Property d1a9 changed +UNKNOWN PTP Property d146 changed +UNKNOWN PTP Property d1ac changed +UNKNOWN PTP Property d1aa changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d11f changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1ba changed +UNKNOWN PTP Property d1cc changed +UNKNOWN PTP Property d1bc changed +UNKNOWN PTP Property d1b8 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1d8 changed +UNKNOWN PTP Property d1b7 changed +UNKNOWN PTP Property d1cb changed +UNKNOWN PTP Property d1db changed +UNKNOWN PTP Property d1dc changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d1a4 changed +UNKNOWN PTP Property d1df changed +UNKNOWN PTP Property d1bd changed +UNKNOWN PTP Property d1c1 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1c4 changed +UNKNOWN PTP Property d1c2 changed +UNKNOWN PTP Property d1c5 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d195 changed +UNKNOWN PTP Property d196 changed +UNKNOWN PTP Property d197 changed +UNKNOWN PTP Property d198 changed +UNKNOWN PTP Property d1dd changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d199 changed +UNKNOWN PTP Property d138 changed +UNKNOWN PTP Property d139 changed +UNKNOWN PTP Property d13a changed +UNKNOWN PTP Property d13c changed +UNKNOWN PTP Property d13d changed +UNKNOWN PTP Property d14d changed +UNKNOWN PTP Property d19a changed +UNKNOWN PTP Property d19c changed +UNKNOWN PTP Property d1c6 changed +UNKNOWN PTP Property d1c8 changed +UNKNOWN PTP Property d178 changed +UNKNOWN PTP Property d179 changed +UNKNOWN PTP Property d17a changed +UNKNOWN PTP Property d17b changed +UNKNOWN PTP Property d1c9 changed +UNKNOWN PTP Property d19f changed +UNKNOWN PTP Property d137 changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1d5 changed +UNKNOWN PTP Property d115 changed +UNKNOWN PTP Property d1d0 changed +UNKNOWN PTP Property d1d1 changed +UNKNOWN PTP Property d1af changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d121 changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d1c3 changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d105 changed +UNKNOWN PTP Property d108 changed +UNKNOWN PTP Property d106 changed +UNKNOWN PTP Property d107 changed +UNKNOWN PTP Property d109 changed +UNKNOWN PTP Property d10a changed +UNKNOWN PTP Property d10b changed +UNKNOWN PTP Property d10c changed +UNKNOWN PTP Property d10d changed +UNKNOWN PTP Property d10e changed +UNKNOWN PTP Property d10f changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d114 changed +UNKNOWN PTP Property d116 changed +UNKNOWN PTP Property d119 changed +UNKNOWN PTP Property d110 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d103 changed +UNKNOWN PTP Property d104 changed +UNKNOWN PTP Property d11d changed +UNKNOWN PTP Property d111 changed +UNKNOWN PTP Property d112 changed +UNKNOWN PTP Property d113 changed +UNKNOWN PTP Property d17c changed +UNKNOWN PTP Property d17d changed +UNKNOWN PTP Property d17e changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d121 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d156 changed +UNKNOWN PTP Property d150 changed +UNKNOWN PTP Property d151 changed +UNKNOWN PTP Property d152 changed +UNKNOWN PTP Property d153 changed +UNKNOWN PTP Property d154 changed +UNKNOWN PTP Property d155 changed +UNKNOWN PTP Property d160 changed +UNKNOWN PTP Property d161 changed +UNKNOWN PTP Property d162 changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a1 changed +UNKNOWN PTP Property d1a8 changed +UNKNOWN PTP Property d1a7 changed +UNKNOWN PTP Property d1ab changed +UNKNOWN PTP Property d1b0 changed +UNKNOWN PTP Property d1b1 changed +UNKNOWN PTP Property d1b2 changed +UNKNOWN PTP Property d1b3 changed +UNKNOWN PTP Property d1b4 changed +UNKNOWN PTP Property d1b5 changed +UNKNOWN PTP Property d1b6 changed +UNKNOWN PTP Property d1a9 changed +UNKNOWN PTP Property d146 changed +UNKNOWN PTP Property d1ac changed +UNKNOWN PTP Property d1aa changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d11f changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1ba changed +UNKNOWN PTP Property d1cc changed +UNKNOWN PTP Property d1bc changed +UNKNOWN PTP Property d1b8 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1d8 changed +UNKNOWN PTP Property d1b7 changed +UNKNOWN PTP Property d1cb changed +UNKNOWN PTP Property d1db changed +UNKNOWN PTP Property d1dc changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d1a4 changed +UNKNOWN PTP Property d1df changed +UNKNOWN PTP Property d1bd changed +UNKNOWN PTP Property d1c1 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1c4 changed +UNKNOWN PTP Property d1c2 changed +UNKNOWN PTP Property d1c5 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d195 changed +UNKNOWN PTP Property d196 changed +UNKNOWN PTP Property d197 changed +UNKNOWN PTP Property d198 changed +UNKNOWN PTP Property d1dd changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d199 changed +UNKNOWN PTP Property d138 changed +UNKNOWN PTP Property d139 changed +UNKNOWN PTP Property d13a changed +UNKNOWN PTP Property d13c changed +UNKNOWN PTP Property d13d changed +UNKNOWN PTP Property d14d changed +UNKNOWN PTP Property d19a changed +UNKNOWN PTP Property d19c changed +UNKNOWN PTP Property d1c6 changed +UNKNOWN PTP Property d1c8 changed +UNKNOWN PTP Property d178 changed +UNKNOWN PTP Property d179 changed +UNKNOWN PTP Property d17a changed +UNKNOWN PTP Property d17b changed +UNKNOWN PTP Property d1c9 changed +UNKNOWN PTP Property d19f changed +UNKNOWN PTP Property d137 changed +UNKNOWN PTP Property d115 changed +UNKNOWN PTP Property d1d0 changed +UNKNOWN PTP Property d1d1 changed +UNKNOWN PTP Property d1af changed +New file is in location /store_00020001/DCIM/100CANON/IMG_0002.JPG on the camera + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 100D + device version: 3-1.0.0 + serial number: '3d3685acbd6b4a7caac5efb8fbb41c72' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 #define PTP_OC_GetDeviceInfo 0x1001 + 0x1002 #define PTP_OC_OpenSession 0x1002 + 0x1003 #define PTP_OC_CloseSession 0x1003 + 0x1004 #define PTP_OC_GetStorageIDs 0x1004 + 0x1005 #define PTP_OC_GetStorageInfo 0x1005 + 0x1006 #define PTP_OC_GetNumObjects 0x1006 + 0x1007 #define PTP_OC_GetObjectHandles 0x1007 + 0x1008 #define PTP_OC_GetObjectInfo 0x1008 + 0x1009 #define PTP_OC_GetObject 0x1009 + 0x100a #define PTP_OC_GetThumb 0x100A + 0x100b #define PTP_OC_DeleteObject 0x100B + 0x100c #define PTP_OC_SendObjectInfo 0x100C + 0x100d #define PTP_OC_SendObject 0x100D + 0x100f #define PTP_OC_FormatStore 0x100F + 0x1014 #define PTP_OC_GetDevicePropDesc 0x1014 + 0x1015 #define PTP_OC_GetDevicePropValue 0x1015 + 0x1016 #define PTP_OC_SetDevicePropValue 0x1016 + 0x101b #define PTP_OC_GetPartialObject 0x101B + 0x902f unknown + 0x9033 #define PTP_OC_CANON_GetMACAddress 0x9033 + 0x9052 unknown + 0x9053 unknown + 0x9057 unknown + 0x9058 unknown + 0x9059 unknown + 0x905a unknown + 0x905f unknown + 0x9068 unknown + 0x9069 unknown + 0x906a unknown + 0x906b unknown + 0x906c unknown + 0x906d unknown + 0x906e unknown + 0x906f unknown + 0x9101 #define PTP_OC_CANON_EOS_GetStorageIDs 0x9101 + 0x9102 #define PTP_OC_CANON_EOS_GetStorageInfo 0x9102 + 0x9103 #define PTP_OC_CANON_EOS_GetObjectInfo 0x9103 + 0x9104 #define PTP_OC_CANON_EOS_GetObject 0x9104 + 0x9105 #define PTP_OC_CANON_EOS_DeleteObject 0x9105 + 0x9106 #define PTP_OC_CANON_EOS_FormatStore 0x9106 + 0x9107 #define PTP_OC_CANON_EOS_GetPartialObject 0x9107 + 0x9108 #define PTP_OC_CANON_EOS_GetDeviceInfoEx 0x9108 + 0x9109 #define PTP_OC_CANON_EOS_GetObjectInfoEx 0x9109 + 0x910a #define PTP_OC_CANON_EOS_GetThumbEx 0x910A + 0x910b #define PTP_OC_CANON_EOS_SendPartialObject 0x910B + 0x910c #define PTP_OC_CANON_EOS_SetObjectAttributes 0x910C + 0x910e #define PTP_OC_CANON_EOS_SetObjectTime 0x910E + 0x910f #define PTP_OC_CANON_EOS_RemoteRelease 0x910F + 0x9110 #define PTP_OC_CANON_EOS_SetDevicePropValueEx 0x9110 + 0x9113 #define PTP_OC_CANON_EOS_GetRemoteMode 0x9113 + 0x9114 #define PTP_OC_CANON_EOS_SetRemoteMode 0x9114 + 0x9115 #define PTP_OC_CANON_EOS_SetEventMode 0x9115 + 0x9116 #define PTP_OC_CANON_EOS_GetEvent 0x9116 + 0x9117 #define PTP_OC_CANON_EOS_TransferComplete 0x9117 + 0x9118 #define PTP_OC_CANON_EOS_CancelTransfer 0x9118 + 0x911a #define PTP_OC_CANON_EOS_PCHDDCapacity 0x911A + 0x911b #define PTP_OC_CANON_EOS_SetUILock 0x911B + 0x911c #define PTP_OC_CANON_EOS_ResetUILock 0x911C + 0x911d #define PTP_OC_CANON_EOS_KeepDeviceOn 0x911D + 0x911e #define PTP_OC_CANON_EOS_SetNullPacketMode 0x911E + 0x911f #define PTP_OC_CANON_EOS_UpdateFirmware 0x911F + 0x9120 #define PTP_OC_CANON_EOS_TransferCompleteDT 0x9120 + 0x9121 #define PTP_OC_CANON_EOS_CancelTransferDT 0x9121 + 0x9122 #define PTP_OC_CANON_EOS_SetWftProfile 0x9122 + 0x9123 #define PTP_OC_CANON_EOS_GetWftProfile 0x9123 + 0x9124 #define PTP_OC_CANON_EOS_SetProfileToWft 0x9124 + 0x9127 #define PTP_OC_CANON_EOS_RequestDevicePropValue 0x9127 + 0x9128 #define PTP_OC_CANON_EOS_RemoteReleaseOn 0x9128 + 0x9129 #define PTP_OC_CANON_EOS_RemoteReleaseOff 0x9129 + 0x912b #define PTP_OC_CANON_EOS_ChangePhotoStadioMode 0x912B + 0x912c #define PTP_OC_CANON_EOS_GetPartialObjectEx 0x912C + 0x912d unknown + 0x912e unknown + 0x912f unknown + 0x9130 #define PTP_OC_CANON_EOS_ResetMirrorLockupState 0x9130 + 0x9131 #define PTP_OC_CANON_EOS_PopupBuiltinFlash 0x9131 + 0x9132 #define PTP_OC_CANON_EOS_EndGetPartialObjectEx 0x9132 + 0x9133 #define PTP_OC_CANON_EOS_MovieSelectSWOn 0x9133 + 0x9134 #define PTP_OC_CANON_EOS_MovieSelectSWOff 0x9134 + 0x9135 #define PTP_OC_CANON_EOS_GetCTGInfo 0x9135 + 0x9136 #define PTP_OC_CANON_EOS_GetLensAdjust 0x9136 + 0x9137 #define PTP_OC_CANON_EOS_SetLensAdjust 0x9137 + 0x9138 #define PTP_OC_CANON_EOS_ReadyToSendMusic 0x9138 + 0x9139 #define PTP_OC_CANON_EOS_CreateHandle 0x9139 + 0x913a #define PTP_OC_CANON_EOS_SendPartialObjectEx 0x913A + 0x913b #define PTP_OC_CANON_EOS_EndSendPartialObjectEx 0x913B + 0x913c #define PTP_OC_CANON_EOS_SetCTGInfo 0x913C + 0x913d #define PTP_OC_CANON_EOS_SetRequestOLCInfoGroup 0x913D + 0x913e #define PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel 0x913E + 0x913f unknown + 0x9140 unknown + 0x9141 unknown + 0x9142 unknown + 0x9143 unknown + 0x9144 unknown + 0x9145 unknown + 0x9153 #define PTP_OC_CANON_EOS_GetViewFinderData 0x9153 + 0x9154 #define PTP_OC_CANON_EOS_DoAf 0x9154 + 0x9155 #define PTP_OC_CANON_EOS_DriveLens 0x9155 + 0x9157 #define PTP_OC_CANON_EOS_ClickWB 0x9157 + 0x9158 #define PTP_OC_CANON_EOS_Zoom 0x9158 + 0x9159 #define PTP_OC_CANON_EOS_ZoomPosition 0x9159 + 0x915a #define PTP_OC_CANON_EOS_SetLiveAfFrame 0x915a + 0x915b unknown + 0x9160 #define PTP_OC_CANON_EOS_AfCancel 0x9160 + 0x91c0 unknown + 0x91c1 unknown + 0x91c2 unknown + 0x91c3 unknown + 0x91c4 unknown + 0x91c5 unknown + 0x91c6 unknown + 0x91c7 unknown + 0x91c8 unknown + 0x91c9 unknown + 0x91ca unknown + 0x91cb unknown + 0x91cc unknown + 0x91ce unknown + 0x91cf unknown + 0x91d0 unknown + 0x91d1 unknown + 0x91d2 unknown + 0x91d5 unknown + 0x91d7 unknown + 0x91d8 unknown + 0x91d9 unknown + 0x91da unknown + 0x91db unknown + 0x91dc unknown + 0x91dd unknown + 0x91de unknown + 0x91df unknown + 0x91e1 unknown + 0x91e2 unknown + 0x91e3 unknown + 0x91e4 unknown + 0x91e5 unknown + 0x91e6 unknown + 0x91e7 unknown + 0x91e8 #define PTP_OC_CANON_EOS_NotifyNetworkError 0x91E8 + 0x91e9 #define PTP_OC_CANON_EOS_AdapterTransferProgress 0x91E9 + 0x91ea unknown + 0x91eb unknown + 0x91ec unknown + 0x91ed unknown + 0x91ee unknown + 0x91ef unknown + 0x91f0 unknown + 0x91f1 unknown + 0x91f2 unknown + 0x91f3 unknown + 0x91f4 unknown + 0x91f5 unknown + 0x91f6 unknown + 0x91f7 unknown + 0x91f8 unknown + 0x91f9 unknown + 0x91fb unknown + 0x91fc unknown + 0x91fd unknown + 0x91fe #define PTP_OC_CANON_EOS_FAPIMessageTX 0x91FE + 0x91ff #define PTP_OC_CANON_EOS_FAPIMessageRX 0x91FF + 0x9801 #define PTP_OC_MTP_GetObjectPropsSupported 0x9801 + 0x9802 #define PTP_OC_MTP_GetObjectPropDesc 0x9802 + 0x9803 #define PTP_OC_MTP_GetObjectPropValue 0x9803 + 0x9804 #define PTP_OC_MTP_SetObjectPropValue 0x9804 + 0x9805 #define PTP_OC_MTP_GetObjPropList 0x9805 +Events Supported: + 0x4009 #define PTP_EC_RequestObjectTransfer 0x4009 + 0x4004 #define PTP_EC_StoreAdded 0x4004 + 0x4005 #define PTP_EC_StoreRemoved 0x4005 + 0x4003 #define PTP_EC_ObjectRemoved 0x4003 + 0x4002 #define PTP_EC_ObjectAdded 0x4002 + 0x4007 #define PTP_EC_ObjectInfoChanged 0x4007 + 0xc101 #define PTP_EC_CANON_EOS_RequestGetEvent 0xc101 +Device Properties Supported: + 0xd049 #define PTP_DPC_CANON_ModelID 0xD049 + 0xd402 #define PTP_DPC_MTP_DeviceFriendlyName 0xD402 + 0xd407 #define PTP_DPC_MTP_PerceivedDeviceType 0xD407 + 0xd406 #define PTP_DPC_MTP_SessionInitiatorInfo 0xD406 + 0xd303 unknown + 0x5001 #define PTP_DPC_BatteryLevel 0x5001 + +event 0: EOS prop d105 info record, datasize is 4 +event 0: currentvalue of d105 is 0 +event 1: EOS prop d108 info record, datasize is 4 +event 1: currentvalue of d108 is 0 +event 2: EOS prop d106 info record, datasize is 4 +event 2: currentvalue of d106 is 0 +event 3: EOS prop d107 info record, datasize is 4 +event 3: currentvalue of d107 is 3 +event 4: EOS prop d109 info record, datasize is 4 +event 4: currentvalue of d109 is 0 +event 5: EOS prop d10a info record, datasize is 4 +event 5: Unknown EOS property d10a, datasize is 4, using uint32 + 0: 0x 1450 +event 5: currentvalue of d10a is 1450 +event 6: EOS prop d10b info record, datasize is 4 +event 7: EOS prop d10c info record, datasize is 4 +event 8: EOS prop d10d info record, datasize is 4 +event 8: currentvalue of d10d is 0 +event 9: EOS prop d10e info record, datasize is 4 +event 9: currentvalue of d10e is 0 +event 10: EOS prop d10f info record, datasize is 4 +event 10: currentvalue of d10f is 1 +event 11: EOS prop d11b info record, datasize is 4 +event 11: currentvalue of d11b is 393 +event 12: EOS prop d114 info record, datasize is 4 +event 12: currentvalue of d114 is 1e +event 13: EOS prop d116 info record, datasize is 4 +event 13: currentvalue of d116 is 80000346 +event 14: EOS prop d119 info record, datasize is 4 +event 14: currentvalue of d119 is 100 +event 15: EOS prop d110 info record, datasize is 4 +event 15: currentvalue of d110 is 87 +event 16: EOS prop d101 info record, datasize is 4 +event 16: currentvalue of d101 is 30 +event 17: EOS prop d102 info record, datasize is 4 +event 17: currentvalue of d102 is 70 +event 18: EOS prop d103 info record, datasize is 4 +event 18: currentvalue of d103 is 0 +event 19: EOS prop d104 info record, datasize is 4 +event 19: currentvalue of d104 is 0 +event 20: EOS prop d11d info record, datasize is 4 +event 20: currentvalue of d11d is 0 +event 21: EOS prop d111 info record, datasize is 4 +event 21: currentvalue of d111 is 2 +event 22: EOS prop d112 info record, datasize is 4 +event 22: currentvalue of d112 is 0 +event 23: EOS prop d113 info record, datasize is 4 +event 23: currentvalue of d113 is 51852b7a +event 24: EOS prop d17c info record, datasize is 4 +event 24: Unknown EOS property d17c, datasize is 4 + 0: 5a + 1: 0f + 2: 85 + 3: 51 +event 25: EOS prop d17d info record, datasize is 12 +event 25: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 13 + 5: 00 + 6: 00 + 7: 00 + 8: 3c + 9: 00 + 10: 00 + 11: 00 +event 26: EOS prop d17e info record, datasize is 4 +event 26: Unknown EOS property d17e, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 27: EOS prop d120 info record, datasize is 20 +event 27: decoded imageformat, currentvalue of d120 is 300 +event 28: EOS prop d121 info record, datasize is 20 +event 28: decoded imageformat, currentvalue of d121 is 300 +event 29: EOS prop d122 info record, datasize is 20 +event 29: decoded imageformat, currentvalue of d122 is 300 +event 30: EOS prop d156 info record, datasize is 28 +event 30: Unknown EOS property d156, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 31: EOS prop d150 info record, datasize is 28 +event 31: Unknown EOS property d150, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 32: EOS prop d151 info record, datasize is 28 +event 32: Unknown EOS property d151, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 02 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 33: EOS prop d152 info record, datasize is 28 +event 33: Unknown EOS property d152, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 04 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 34: EOS prop d153 info record, datasize is 28 +event 34: Unknown EOS property d153, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 35: EOS prop d154 info record, datasize is 28 +event 35: Unknown EOS property d154, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 36: EOS prop d155 info record, datasize is 28 +event 36: Unknown EOS property d155, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 37: EOS prop d160 info record, datasize is 32 +event 37: Unknown EOS property d160, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 38: EOS prop d161 info record, datasize is 32 +event 38: Unknown EOS property d161, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 39: EOS prop d162 info record, datasize is 32 +event 39: Unknown EOS property d162, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 40: EOS prop d11c info record, datasize is 4 +event 40: currentvalue of d11c is 2 +event 41: EOS prop d1a0 info record, datasize is 152 +event 41: decoded custom function, currentvalue of d1a0 is 10,c189,d105,0, +event 42: EOS prop d1a1 info record, datasize is 8 +event 42: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 43: EOS prop d1a8 info record, datasize is 4 +event 43: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 43: currentvalue of d1a8 is 1 +event 44: EOS prop d1a7 info record, datasize is 40 +event 44: Unknown EOS property d1a7, datasize is 40 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 +event 45: EOS prop d1ab info record, datasize is 4 +event 45: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 45: currentvalue of d1ab is 0 +event 46: EOS prop d1b0 info record, datasize is 4 +event 46: currentvalue of d1b0 is 0 +event 47: EOS prop d1b1 info record, datasize is 4 +event 47: currentvalue of d1b1 is 1 +event 48: EOS prop d1b2 info record, datasize is 4 +event 48: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 48: currentvalue of d1b2 is 0 +event 49: EOS prop d1b3 info record, datasize is 4 +event 49: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 49: currentvalue of d1b3 is 0 +event 50: EOS prop d1b4 info record, datasize is 4 +event 50: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 0 +event 50: currentvalue of d1b4 is 0 +event 51: EOS prop d1b5 info record, datasize is 48 +event 51: Unknown EOS property d1b5, datasize is 48, using uint32 + 0: 0x 30 + 1: 0x 0 + 2: 0xffffff00 + 3: 0xffffffff + 4: 0xffffffff + 5: 0xffffffff + 6: 0xffffffff + 7: 0xffffffff + 8: 0xffffffff + 9: 0xffffffff + 10: 0x 4000400 + 11: 0x 4000400 +event 51: currentvalue of d1b5 is 30 +event 52: EOS prop d1b6 info record, datasize is 4 +event 52: Unknown EOS property d1b6, datasize is 4, using uint32 + 0: 0x 1450 +event 52: currentvalue of d1b6 is 1450 +event 53: EOS prop d1a9 info record, datasize is 4 +event 53: currentvalue of d1a9 is 2 +event 54: EOS prop d146 info record, datasize is 48 +event 54: Unknown EOS property d146, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: e3 + 41: 01 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 94 + 47: 02 +event 55: EOS prop d1ac info record, datasize is 4 +event 55: currentvalue of d1ac is 2 +event 56: EOS prop d1aa info record, datasize is 4 +event 56: Unknown EOS property d1aa, datasize is 4, using uint32 + 0: 0x 0 +event 56: currentvalue of d1aa is 0 +event 57: EOS prop d11e info record, datasize is 4 +event 57: currentvalue of d11e is 20001 +event 58: EOS prop d11f info record, datasize is 4 +event 58: currentvalue of d11f is 91900000 +event 59: EOS prop d1d9 info record, datasize is 4 +event 59: currentvalue of d1d9 is 0 +event 60: EOS prop d1ba info record, datasize is 4 +event 60: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 2 +event 60: currentvalue of d1ba is 2 +event 61: EOS prop d1cc info record, datasize is 36 +event 61: Unknown EOS property d1cc, datasize is 36 + 0: 24 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 19 + 13: 00 + 14: 00 + 15: 00 + 16: 0c + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 02 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 +event 62: EOS prop d1bc info record, datasize is 4 +event 62: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 62: currentvalue of d1bc is 1 +event 63: EOS prop d1b8 info record, datasize is 4 +event 63: Unknown EOS property d1b8, datasize is 4, using uint32 + 0: 0x 0 +event 63: currentvalue of d1b8 is 0 +event 64: EOS prop d1d3 info record, datasize is 282 +event 64: Unknown EOS property d1d3, datasize is 282 + 0: 1a + 1: 01 + 2: 00 + 3: 00 + 4: 16 + 5: 01 + 6: 04 + 7: 00 + 8: 1f + 9: 00 + 10: 09 + 11: 00 + 12: 40 + 13: 14 + 14: 80 + 15: 0d + 16: 40 + 17: 14 + 18: 80 + 19: 0d + 20: df + 21: 00 + 22: b5 + 23: 00 + 24: b5 + 25: 00 + 26: 80 + 27: 00 + 28: 80 + 29: 00 + 30: 80 + 31: 00 + 32: 80 + 33: 00 + 34: 80 + 35: 00 + 36: 80 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 00 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: df + 83: 00 + 84: 77 + 85: 00 + 86: 77 + 87: 00 + 88: ac + 89: 00 + 90: ac + 91: 00 + 92: ac + 93: 00 + 94: ac + 95: 00 + 96: ac + 97: 00 + 98: ac + 99: 00 + 100: 00 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 00 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: cb + 151: fc + 152: 35 + 153: 03 + 154: cb + 155: fc + 156: 35 + 157: 03 + 158: a6 + 159: fa + 160: 5a + 161: 05 + 162: 00 + 163: 00 + 164: 00 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 00 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: da + 209: 02 + 210: 26 + 211: fd + 212: 84 + 213: 01 + 214: 84 + 215: 01 + 216: 7c + 217: fe + 218: 7c + 219: fe + 220: 00 + 221: 00 + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 00 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 00 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: ff + 273: 01 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: ff + 281: ff +event 65: EOS prop d1d8 info record, datasize is 64 +event 65: currentvalue of d1d8 is EF-S18-55mm f/3.5-5.6 IS STM +event 66: EOS prop d1b7 info record, datasize is 4 +event 66: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 0 +event 66: currentvalue of d1b7 is 0 +event 67: EOS prop d1cb info record, datasize is 52 +event 67: Unknown EOS property d1cb, datasize is 52 + 0: 34 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 03 + 19: 80 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 48 + 29: 00 + 30: 00 + 31: 00 + 32: 49 + 33: 00 + 34: 03 + 35: 80 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 03 + 41: 00 + 42: 00 + 43: 00 + 44: 4b + 45: 00 + 46: 00 + 47: 00 + 48: 4c + 49: 00 + 50: 03 + 51: 80 +event 68: EOS prop d1db info record, datasize is 14 +event 68: Unknown EOS property d1db, datasize is 14 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 03 + 5: 00 + 6: 00 + 7: 00 + 8: 2f + 9: 00 + 10: 00 + 11: 00 + 12: 28 + 13: 00 +event 69: EOS prop d1dc info record, datasize is 4 +event 69: currentvalue of d1dc is 0 +event 70: EOS prop d1a3 info record, datasize is 4 +event 70: Unknown EOS property d1a3, datasize is 4, using uint32 + 0: 0x 0 +event 70: currentvalue of d1a3 is 0 +event 71: EOS prop d1a4 info record, datasize is 484 +event 71: Unknown EOS property d1a4, datasize is 484 + 0: e4 + 1: 01 + 2: 00 + 3: 00 + 4: 30 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 31 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 32 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 00 + 97: 00 + 98: 00 + 99: 00 + 100: 33 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 34 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 35 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 36 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 00 + 209: 00 + 210: 00 + 211: 00 + 212: 00 + 213: 00 + 214: 00 + 215: 00 + 216: 00 + 217: 00 + 218: 00 + 219: 00 + 220: 00 + 221: 00 + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 37 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 38 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: 00 + 273: 00 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: 00 + 281: 00 + 282: 00 + 283: 00 + 284: 00 + 285: 00 + 286: 00 + 287: 00 + 288: 00 + 289: 00 + 290: 00 + 291: 00 + 292: 39 + 293: 00 + 294: 00 + 295: 00 + 296: 00 + 297: 00 + 298: 00 + 299: 00 + 300: 00 + 301: 00 + 302: 00 + 303: 00 + 304: 00 + 305: 00 + 306: 00 + 307: 00 + 308: 00 + 309: 00 + 310: 00 + 311: 00 + 312: 00 + 313: 00 + 314: 00 + 315: 00 + 316: 00 + 317: 00 + 318: 00 + 319: 00 + 320: 00 + 321: 00 + 322: 00 + 323: 00 + 324: 31 + 325: 30 + 326: 00 + 327: 00 + 328: 00 + 329: 00 + 330: 00 + 331: 00 + 332: 00 + 333: 00 + 334: 00 + 335: 00 + 336: 00 + 337: 00 + 338: 00 + 339: 00 + 340: 00 + 341: 00 + 342: 00 + 343: 00 + 344: 00 + 345: 00 + 346: 00 + 347: 00 + 348: 00 + 349: 00 + 350: 00 + 351: 00 + 352: 00 + 353: 00 + 354: 00 + 355: 00 + 356: 31 + 357: 31 + 358: 00 + 359: 00 + 360: 00 + 361: 00 + 362: 00 + 363: 00 + 364: 00 + 365: 00 + 366: 00 + 367: 00 + 368: 00 + 369: 00 + 370: 00 + 371: 00 + 372: 00 + 373: 00 + 374: 00 + 375: 00 + 376: 00 + 377: 00 + 378: 00 + 379: 00 + 380: 00 + 381: 00 + 382: 00 + 383: 00 + 384: 00 + 385: 00 + 386: 00 + 387: 00 + 388: 31 + 389: 32 + 390: 00 + 391: 00 + 392: 00 + 393: 00 + 394: 00 + 395: 00 + 396: 00 + 397: 00 + 398: 00 + 399: 00 + 400: 00 + 401: 00 + 402: 00 + 403: 00 + 404: 00 + 405: 00 + 406: 00 + 407: 00 + 408: 00 + 409: 00 + 410: 00 + 411: 00 + 412: 00 + 413: 00 + 414: 00 + 415: 00 + 416: 00 + 417: 00 + 418: 00 + 419: 00 + 420: 31 + 421: 33 + 422: 00 + 423: 00 + 424: 00 + 425: 00 + 426: 00 + 427: 00 + 428: 00 + 429: 00 + 430: 00 + 431: 00 + 432: 00 + 433: 00 + 434: 00 + 435: 00 + 436: 00 + 437: 00 + 438: 00 + 439: 00 + 440: 00 + 441: 00 + 442: 00 + 443: 00 + 444: 00 + 445: 00 + 446: 00 + 447: 00 + 448: 00 + 449: 00 + 450: 00 + 451: 00 + 452: 31 + 453: 34 + 454: 00 + 455: 00 + 456: 00 + 457: 00 + 458: 00 + 459: 00 + 460: 00 + 461: 00 + 462: 00 + 463: 00 + 464: 00 + 465: 00 + 466: 00 + 467: 00 + 468: 00 + 469: 00 + 470: 00 + 471: 00 + 472: 00 + 473: 00 + 474: 00 + 475: 00 + 476: 00 + 477: 00 + 478: 00 + 479: 00 + 480: 00 + 481: 00 + 482: 00 + 483: 00 +event 72: EOS prop d1df info record, datasize is 4 +event 72: Unknown EOS property d1df, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 73: EOS prop d1bd info record, datasize is 4 +event 73: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 74: EOS prop d1c1 info record, datasize is 4 +event 74: Unknown EOS property d1c1, datasize is 4 + 0: 00 + 1: 00 + 2: 01 + 3: ff +event 75: EOS prop d1c0 info record, datasize is 4 +event 75: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 76: EOS prop d1bf info record, datasize is 4 +event 76: Unknown EOS property d1bf, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 77: EOS prop d1c4 info record, datasize is 4 +event 77: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 78: EOS prop d1c2 info record, datasize is 4 +event 78: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 79: EOS prop d1c5 info record, datasize is 4 +event 79: Unknown EOS property d1c5, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 80: EOS prop d194 info record, datasize is 4 +event 80: Unknown EOS property d194, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 81: EOS prop d195 info record, datasize is 4 +event 81: Unknown EOS property d195, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 82: EOS prop d196 info record, datasize is 4 +event 82: Unknown EOS property d196, datasize is 4 + 0: 2f + 1: 00 + 2: 00 + 3: 00 +event 83: EOS prop d197 info record, datasize is 4 +event 83: Unknown EOS property d197, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 84: EOS prop d198 info record, datasize is 4 +event 84: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 85: EOS prop d1dd info record, datasize is 4 +event 85: currentvalue of d1dd is 1032 +event 86: EOS prop d1c7 info record, datasize is 4 +event 86: Unknown EOS property d1c7, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 87: EOS prop d199 info record, datasize is 4 +event 87: Unknown EOS property d199, datasize is 4 + 0: 07 + 1: 00 + 2: 00 + 3: 00 +event 88: EOS prop d138 info record, datasize is 4 +event 88: Unknown EOS property d138, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 89: EOS prop d139 info record, datasize is 12 +event 89: Unknown EOS property d139, datasize is 12 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 90: EOS prop d13a info record, datasize is 4 +event 90: Unknown EOS property d13a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 91: EOS prop d13c info record, datasize is 4 +event 91: Unknown EOS property d13c, datasize is 4 + 0: 03 + 1: 00 + 2: 00 + 3: 00 +event 92: EOS prop d13d info record, datasize is 24 +event 92: Unknown EOS property d13d, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 93: EOS prop d14d info record, datasize is 4 +event 93: Unknown EOS property d14d, datasize is 4 + 0: 3c + 1: 00 + 2: 00 + 3: 00 +event 94: EOS prop d19a info record, datasize is 4 +event 94: Unknown EOS property d19a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 95: EOS prop d19c info record, datasize is 4 +event 95: Unknown EOS property d19c, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 96: EOS prop d1c6 info record, datasize is 4 +event 96: Unknown EOS property d1c6, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 97: EOS prop d1c8 info record, datasize is 4 +event 97: Unknown EOS property d1c8, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 98: EOS prop d178 info record, datasize is 4 +event 98: Unknown EOS property d178, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 99: EOS prop d179 info record, datasize is 4 +event 99: Unknown EOS property d179, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 100: EOS prop d17a info record, datasize is 4 +event 100: Unknown EOS property d17a, datasize is 4 + 0: 01 + 1: ff + 2: ff + 3: ff +event 101: EOS prop d17b info record, datasize is 4 +event 101: Unknown EOS property d17b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 102: EOS prop d1c9 info record, datasize is 4 +event 102: Unknown EOS property d1c9, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 103: EOS prop d19f info record, datasize is 4 +event 103: Unknown EOS property d19f, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 104: EOS prop d137 info record, datasize is 4 +event 104: Unknown EOS property d137, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 105: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 02 + 11: 00 +event 106: EOS prop d105 desc record, datasize 0, propxtype 1 +event 106: propxtype is 1 for d105, unhandled. +event 107: EOS prop d108 desc record, datasize 12, propxtype 3 +event 107: propxtype is 3, prop is 0xd108, data type is 0x0004, propxcnt is 3. +event 107: suppval[0] of d108 is 0x0. +event 107: suppval[1] of d108 is 0x2. +event 107: suppval[2] of d108 is 0x1. +event 108: EOS prop d106 desc record, datasize 28, propxtype 3 +event 108: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 7. +event 108: suppval[0] of d106 is 0x0. +event 108: suppval[1] of d106 is 0x1. +event 108: suppval[2] of d106 is 0x13. +event 108: suppval[3] of d106 is 0x14. +event 108: suppval[4] of d106 is 0x10. +event 108: suppval[5] of d106 is 0x11. +event 108: suppval[6] of d106 is 0x7. +event 109: EOS prop d107 desc record, datasize 16, propxtype 3 +event 109: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 4. +event 109: suppval[0] of d107 is 0x3. +event 109: suppval[1] of d107 is 0x4. +event 109: suppval[2] of d107 is 0x1. +event 109: suppval[3] of d107 is 0x5. +event 110: EOS prop d109 desc record, datasize 32, propxtype 3 +event 110: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 8. +event 110: suppval[0] of d109 is 0x0. +event 110: suppval[1] of d109 is 0x1. +event 110: suppval[2] of d109 is 0x8. +event 110: suppval[3] of d109 is 0x2. +event 110: suppval[4] of d109 is 0x3. +event 110: suppval[5] of d109 is 0x4. +event 110: suppval[6] of d109 is 0x5. +event 110: suppval[7] of d109 is 0x6. +event 111: EOS prop d10a desc record, datasize 304, propxtype 3 +event 111: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +event 111: suppval[0] of d10a is 0x9c4. +event 111: suppval[1] of d10a is 0xa28. +event 111: suppval[2] of d10a is 0xa8c. +event 111: suppval[3] of d10a is 0xaf0. +event 111: suppval[4] of d10a is 0xb54. +event 111: suppval[5] of d10a is 0xbb8. +event 111: suppval[6] of d10a is 0xc1c. +event 111: suppval[7] of d10a is 0xc80. +event 111: suppval[8] of d10a is 0xce4. +event 111: suppval[9] of d10a is 0xd48. +event 111: suppval[10] of d10a is 0xdac. +event 111: suppval[11] of d10a is 0xe10. +event 111: suppval[12] of d10a is 0xe74. +event 111: suppval[13] of d10a is 0xed8. +event 111: suppval[14] of d10a is 0xf3c. +event 111: suppval[15] of d10a is 0xfa0. +event 111: suppval[16] of d10a is 0x1004. +event 111: suppval[17] of d10a is 0x1068. +event 111: suppval[18] of d10a is 0x10cc. +event 111: suppval[19] of d10a is 0x1130. +event 111: suppval[20] of d10a is 0x1194. +event 111: suppval[21] of d10a is 0x11f8. +event 111: suppval[22] of d10a is 0x125c. +event 111: suppval[23] of d10a is 0x12c0. +event 111: suppval[24] of d10a is 0x1324. +event 111: suppval[25] of d10a is 0x1388. +event 111: suppval[26] of d10a is 0x13ec. +event 111: suppval[27] of d10a is 0x1450. +event 111: suppval[28] of d10a is 0x14b4. +event 111: suppval[29] of d10a is 0x1518. +event 111: suppval[30] of d10a is 0x157c. +event 111: suppval[31] of d10a is 0x15e0. +event 111: suppval[32] of d10a is 0x1644. +event 111: suppval[33] of d10a is 0x16a8. +event 111: suppval[34] of d10a is 0x170c. +event 111: suppval[35] of d10a is 0x1770. +event 111: suppval[36] of d10a is 0x17d4. +event 111: suppval[37] of d10a is 0x1838. +event 111: suppval[38] of d10a is 0x189c. +event 111: suppval[39] of d10a is 0x1900. +event 111: suppval[40] of d10a is 0x1964. +event 111: suppval[41] of d10a is 0x19c8. +event 111: suppval[42] of d10a is 0x1a2c. +event 111: suppval[43] of d10a is 0x1a90. +event 111: suppval[44] of d10a is 0x1af4. +event 111: suppval[45] of d10a is 0x1b58. +event 111: suppval[46] of d10a is 0x1bbc. +event 111: suppval[47] of d10a is 0x1c20. +event 111: suppval[48] of d10a is 0x1c84. +event 111: suppval[49] of d10a is 0x1ce8. +event 111: suppval[50] of d10a is 0x1d4c. +event 111: suppval[51] of d10a is 0x1db0. +event 111: suppval[52] of d10a is 0x1e14. +event 111: suppval[53] of d10a is 0x1e78. +event 111: suppval[54] of d10a is 0x1edc. +event 111: suppval[55] of d10a is 0x1f40. +event 111: suppval[56] of d10a is 0x1fa4. +event 111: suppval[57] of d10a is 0x2008. +event 111: suppval[58] of d10a is 0x206c. +event 111: suppval[59] of d10a is 0x20d0. +event 111: suppval[60] of d10a is 0x2134. +event 111: suppval[61] of d10a is 0x2198. +event 111: suppval[62] of d10a is 0x21fc. +event 111: suppval[63] of d10a is 0x2260. +event 111: suppval[64] of d10a is 0x22c4. +event 111: suppval[65] of d10a is 0x2328. +event 111: suppval[66] of d10a is 0x238c. +event 111: suppval[67] of d10a is 0x23f0. +event 111: suppval[68] of d10a is 0x2454. +event 111: suppval[69] of d10a is 0x24b8. +event 111: suppval[70] of d10a is 0x251c. +event 111: suppval[71] of d10a is 0x2580. +event 111: suppval[72] of d10a is 0x25e4. +event 111: suppval[73] of d10a is 0x2648. +event 111: suppval[74] of d10a is 0x26ac. +event 111: suppval[75] of d10a is 0x2710. +event 112: EOS prop d10b desc record, datasize 76, propxtype 3 +event 112: propxtype is 3, prop is 0xd10b, data type is 0x0003, propxcnt is 19. +event 112: suppval[0] of d10b is 0xfff7. +event 112: suppval[1] of d10b is 0xfff8. +event 112: suppval[2] of d10b is 0xfff9. +event 112: suppval[3] of d10b is 0xfffa. +event 112: suppval[4] of d10b is 0xfffb. +event 112: suppval[5] of d10b is 0xfffc. +event 112: suppval[6] of d10b is 0xfffd. +event 112: suppval[7] of d10b is 0xfffe. +event 112: suppval[8] of d10b is 0xffff. +event 112: suppval[9] of d10b is 0x0. +event 112: suppval[10] of d10b is 0x1. +event 112: suppval[11] of d10b is 0x2. +event 112: suppval[12] of d10b is 0x3. +event 112: suppval[13] of d10b is 0x4. +event 112: suppval[14] of d10b is 0x5. +event 112: suppval[15] of d10b is 0x6. +event 112: suppval[16] of d10b is 0x7. +event 112: suppval[17] of d10b is 0x8. +event 112: suppval[18] of d10b is 0x9. +event 113: EOS prop d10c desc record, datasize 76, propxtype 3 +event 113: propxtype is 3, prop is 0xd10c, data type is 0x0003, propxcnt is 19. +event 113: suppval[0] of d10c is 0xfff7. +event 113: suppval[1] of d10c is 0xfff8. +event 113: suppval[2] of d10c is 0xfff9. +event 113: suppval[3] of d10c is 0xfffa. +event 113: suppval[4] of d10c is 0xfffb. +event 113: suppval[5] of d10c is 0xfffc. +event 113: suppval[6] of d10c is 0xfffd. +event 113: suppval[7] of d10c is 0xfffe. +event 113: suppval[8] of d10c is 0xffff. +event 113: suppval[9] of d10c is 0x0. +event 113: suppval[10] of d10c is 0x1. +event 113: suppval[11] of d10c is 0x2. +event 113: suppval[12] of d10c is 0x3. +event 113: suppval[13] of d10c is 0x4. +event 113: suppval[14] of d10c is 0x5. +event 113: suppval[15] of d10c is 0x6. +event 113: suppval[16] of d10c is 0x7. +event 113: suppval[17] of d10c is 0x8. +event 113: suppval[18] of d10c is 0x9. +event 114: EOS prop d10d desc record, datasize 16, propxtype 3 +event 114: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +event 114: suppval[0] of d10d is 0x0. +event 114: suppval[1] of d10d is 0x1. +event 114: suppval[2] of d10d is 0x2. +event 114: suppval[3] of d10d is 0x3. +event 115: EOS prop d10e desc record, datasize 16, propxtype 3 +event 115: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +event 115: suppval[0] of d10e is 0x0. +event 115: suppval[1] of d10e is 0x1. +event 115: suppval[2] of d10e is 0x2. +event 115: suppval[3] of d10e is 0x3. +event 116: EOS prop d10f desc record, datasize 8, propxtype 3 +event 116: propxtype is 3, prop is 0xd10f, data type is 0x0004, propxcnt is 2. +event 116: suppval[0] of d10f is 0x1. +event 116: suppval[1] of d10f is 0x2. +event 117: EOS prop d11b desc record, datasize 0, propxtype 1 +event 117: propxtype is 1 for d11b, unhandled. +event 118: EOS prop d114 desc record, datasize 0, propxtype 1 +event 118: propxtype is 1 for d114, unhandled. +event 119: EOS prop d116 desc record, datasize 0, propxtype 1 +event 119: propxtype is 1 for d116, unhandled. +event 120: EOS prop d119 desc record, datasize 0, propxtype 1 +event 120: propxtype is 1 for d119, unhandled. +event 121: EOS prop d11a desc record, datasize 0, propxtype 1 +event 121: propdesc d11a, default value not found. +event 122: EOS prop d110 desc record, datasize 40, propxtype 3 +event 122: propxtype is 3, prop is 0xd110, data type is 0x0002, propxcnt is 10. +event 122: suppval[0] of d110 is 0x87. +event 122: suppval[1] of d110 is 0x81. +event 122: suppval[2] of d110 is 0x82. +event 122: suppval[3] of d110 is 0x83. +event 122: suppval[4] of d110 is 0x84. +event 122: suppval[5] of d110 is 0x85. +event 122: suppval[6] of d110 is 0x86. +event 122: suppval[7] of d110 is 0x21. +event 122: suppval[8] of d110 is 0x22. +event 122: suppval[9] of d110 is 0x23. +event 123: EOS prop d115 desc record, datasize 0, propxtype 7 +event 123: propdesc d115, default value not found. +event 124: EOS prop d101 desc record, datasize 0, propxtype 3 +event 125: EOS prop d102 desc record, datasize 0, propxtype 3 +event 126: EOS prop d103 desc record, datasize 36, propxtype 3 +event 126: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 9. +event 126: suppval[0] of d103 is 0x0. +event 126: suppval[1] of d103 is 0x48. +event 126: suppval[2] of d103 is 0x50. +event 126: suppval[3] of d103 is 0x58. +event 126: suppval[4] of d103 is 0x60. +event 126: suppval[5] of d103 is 0x68. +event 126: suppval[6] of d103 is 0x70. +event 126: suppval[7] of d103 is 0x78. +event 126: suppval[8] of d103 is 0x80. +event 127: EOS prop d104 desc record, datasize 124, propxtype 3 +event 127: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 31. +event 127: suppval[0] of d104 is 0xd8. +event 127: suppval[1] of d104 is 0xdb. +event 127: suppval[2] of d104 is 0xdd. +event 127: suppval[3] of d104 is 0xe0. +event 127: suppval[4] of d104 is 0xe3. +event 127: suppval[5] of d104 is 0xe5. +event 127: suppval[6] of d104 is 0xe8. +event 127: suppval[7] of d104 is 0xeb. +event 127: suppval[8] of d104 is 0xed. +event 127: suppval[9] of d104 is 0xf0. +event 127: suppval[10] of d104 is 0xf3. +event 127: suppval[11] of d104 is 0xf5. +event 127: suppval[12] of d104 is 0xf8. +event 127: suppval[13] of d104 is 0xfb. +event 127: suppval[14] of d104 is 0xfd. +event 127: suppval[15] of d104 is 0x0. +event 127: suppval[16] of d104 is 0x3. +event 127: suppval[17] of d104 is 0x5. +event 127: suppval[18] of d104 is 0x8. +event 127: suppval[19] of d104 is 0xb. +event 127: suppval[20] of d104 is 0xd. +event 127: suppval[21] of d104 is 0x10. +event 127: suppval[22] of d104 is 0x13. +event 127: suppval[23] of d104 is 0x15. +event 127: suppval[24] of d104 is 0x18. +event 127: suppval[25] of d104 is 0x1b. +event 127: suppval[26] of d104 is 0x1d. +event 127: suppval[27] of d104 is 0x20. +event 127: suppval[28] of d104 is 0x23. +event 127: suppval[29] of d104 is 0x25. +event 127: suppval[30] of d104 is 0x28. +event 128: EOS prop d11d desc record, datasize 0, propxtype 1 +event 128: propxtype is 1 for d11d, unhandled. +event 129: EOS prop d111 desc record, datasize 0, propxtype 1 +event 129: propxtype is 1 for d111, unhandled. +event 130: EOS prop d112 desc record, datasize 0, propxtype 1 +event 130: propxtype is 1 for d112, unhandled. +event 131: EOS prop d113 desc record, datasize 0, propxtype 7 +event 131: propxtype is 7 for d113, unhandled. +event 132: EOS prop d17c desc record, datasize 0, propxtype 7 +event 132: propxtype is 7 for d17c, unhandled. +event 133: EOS prop d17d desc record, datasize 396, propxtype 3 +event 133: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +event 133: data type 0x0000 of d17d unhandled, raw values: + 0: 0x c + 1: 0x 21 + 2: 0x 30c + 3: 0x c + 4: 0x 1 + 5: 0x 2fd + 6: 0x c + 7: 0x 2 + 8: 0x 2d0 + 9: 0x c + 10: 0x 3 + 11: 0x 294 + 12: 0x c + 13: 0x 4 + 14: 0x 258 + 15: 0x c + 16: 0x 5 + 17: 0x 23a + 18: 0x c + 19: 0x 6 + 20: 0x 21c + 21: 0x c + 22: 0x 7 + 23: 0x 1e0 + 24: 0x c + 25: 0x 8 + 26: 0x 1a4 + 27: 0x c + 28: 0x 9 + 29: 0x 186 + 30: 0x c + 31: 0x a + 32: 0x 168 + 33: 0x c + 34: 0x b + 35: 0x 159 + 36: 0x c + 37: 0x c + 38: 0x 14a + 39: 0x c + 40: 0x d + 41: 0x 12c + 42: 0x c + 43: 0x e + 44: 0x 10e + 45: 0x c + 46: 0x f + 47: 0x f0 + 48: 0x c + 49: 0x 10 + 50: 0x d2 + 51: 0x c + 52: 0x 11 + 53: 0x b4 + 54: 0x c + 55: 0x 12 + 56: 0x 78 + 57: 0x c + 58: 0x 13 + 59: 0x 3c + 60: 0x c + 61: 0x 14 + 62: 0x 0 + 63: 0x c + 64: 0x 15 + 65: 0xffffffc4 + 66: 0x c + 67: 0x 16 + 68: 0xffffff88 + 69: 0x c + 70: 0x 17 + 71: 0xffffff4c + 72: 0x c + 73: 0x 18 + 74: 0xffffff2e + 75: 0x c + 76: 0x 19 + 77: 0xffffff10 + 78: 0x c + 79: 0x 1a + 80: 0xffffff10 + 81: 0x c + 82: 0x 1b + 83: 0xfffffed4 + 84: 0x c + 85: 0x 1c + 86: 0xfffffe98 + 87: 0x c + 88: 0x 1d + 89: 0xfffffe5c + 90: 0x c + 91: 0x 1e + 92: 0xfffffe20 + 93: 0x c + 94: 0x 1f + 95: 0xfffffde4 + 96: 0x c + 97: 0x 20 + 98: 0xfffffda8 +event 134: EOS prop d17e desc record, datasize 8, propxtype 3 +event 134: propxtype is 3, prop is 0xd17e, data type is 0x0000, propxcnt is 2. +event 134: data type 0x0000 of d17e unhandled, raw values: + 0: 0x 0 + 1: 0x 1 +event 135: EOS prop d120 desc record, datasize 216, propxtype 3 +event 135: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 10. +event 135: suppval[0] of d120 is 0x300. +event 135: suppval[1] of d120 is 0x200. +event 135: suppval[2] of d120 is 0x1300. +event 135: suppval[3] of d120 is 0x1200. +event 135: suppval[4] of d120 is 0xd300. +event 135: suppval[5] of d120 is 0xd200. +event 135: suppval[6] of d120 is 0xe300. +event 135: suppval[7] of d120 is 0xf300. +event 135: suppval[8] of d120 is 0x403. +event 135: suppval[9] of d120 is 0x400. +event 136: EOS prop d121 desc record, datasize 216, propxtype 3 +event 136: propxtype is 3, prop is 0xd121, data type is 0x0004, propxcnt is 10. +event 136: suppval[0] of d121 is 0x300. +event 136: suppval[1] of d121 is 0x200. +event 136: suppval[2] of d121 is 0x1300. +event 136: suppval[3] of d121 is 0x1200. +event 136: suppval[4] of d121 is 0xd300. +event 136: suppval[5] of d121 is 0xd200. +event 136: suppval[6] of d121 is 0xe300. +event 136: suppval[7] of d121 is 0xf300. +event 136: suppval[8] of d121 is 0x403. +event 136: suppval[9] of d121 is 0x400. +event 137: EOS prop d122 desc record, datasize 216, propxtype 3 +event 137: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 10. +event 137: suppval[0] of d122 is 0x300. +event 137: suppval[1] of d122 is 0x200. +event 137: suppval[2] of d122 is 0x1300. +event 137: suppval[3] of d122 is 0x1200. +event 137: suppval[4] of d122 is 0xd300. +event 137: suppval[5] of d122 is 0xd200. +event 137: suppval[6] of d122 is 0xe300. +event 137: suppval[7] of d122 is 0xf300. +event 137: suppval[8] of d122 is 0x403. +event 137: suppval[9] of d122 is 0x400. +event 138: EOS prop d156 desc record, datasize 0, propxtype 7 +event 138: propxtype is 7 for d156, unhandled. +event 139: EOS prop d150 desc record, datasize 0, propxtype 7 +event 139: propxtype is 7 for d150, unhandled. +event 140: EOS prop d151 desc record, datasize 0, propxtype 7 +event 140: propxtype is 7 for d151, unhandled. +event 141: EOS prop d152 desc record, datasize 0, propxtype 7 +event 141: propxtype is 7 for d152, unhandled. +event 142: EOS prop d153 desc record, datasize 0, propxtype 7 +event 142: propxtype is 7 for d153, unhandled. +event 143: EOS prop d154 desc record, datasize 0, propxtype 7 +event 143: propxtype is 7 for d154, unhandled. +event 144: EOS prop d155 desc record, datasize 0, propxtype 7 +event 144: propxtype is 7 for d155, unhandled. +event 145: EOS prop d160 desc record, datasize 0, propxtype 7 +event 145: propxtype is 7 for d160, unhandled. +event 146: EOS prop d161 desc record, datasize 0, propxtype 7 +event 146: propxtype is 7 for d161, unhandled. +event 147: EOS prop d162 desc record, datasize 0, propxtype 7 +event 147: propxtype is 7 for d162, unhandled. +event 148: EOS prop d170 desc record, datasize 0, propxtype 7 +event 148: propdesc d170, default value not found. +event 149: EOS prop d171 desc record, datasize 0, propxtype 7 +event 149: propdesc d171, default value not found. +event 150: EOS prop d172 desc record, datasize 0, propxtype 7 +event 150: propdesc d172, default value not found. +event 151: EOS prop d11c desc record, datasize 12, propxtype 3 +event 151: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +event 151: suppval[0] of d11c is 0x2. +event 151: suppval[1] of d11c is 0x6. +event 151: suppval[2] of d11c is 0x4. +event 152: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 152: propxtype is 7 for d1a0, unhandled. +event 153: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 153: propxtype is 7 for d1a1, unhandled. +event 154: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 154: propdesc d1a2, default value not found. +event 155: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 155: propxtype is 1 for d1a8, unhandled. +event 156: EOS prop d1a7 desc record, datasize 0, propxtype 7 +event 156: propxtype is 7 for d1a7, unhandled. +event 157: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 157: propxtype is 1 for d1ab, unhandled. +event 158: EOS prop d1b0 desc record, datasize 32, propxtype 3 +event 158: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 8. +event 158: suppval[0] of d1b0 is 0x0. +event 158: suppval[1] of d1b0 is 0x1. +event 158: suppval[2] of d1b0 is 0x2. +event 158: suppval[3] of d1b0 is 0x3. +event 158: suppval[4] of d1b0 is 0x4. +event 158: suppval[5] of d1b0 is 0x5. +event 158: suppval[6] of d1b0 is 0x6. +event 158: suppval[7] of d1b0 is 0x7. +event 159: EOS prop d1b1 desc record, datasize 8, propxtype 3 +event 159: propxtype is 3, prop is 0xd1b1, data type is 0x0004, propxcnt is 2. +event 159: suppval[0] of d1b1 is 0x1. +event 159: suppval[1] of d1b1 is 0x0. +event 160: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 160: propxtype is 7 for d1b2, unhandled. +event 161: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 161: propxtype is 7 for d1b3, unhandled. +event 162: EOS prop d1b4 desc record, datasize 36, propxtype 3 +event 162: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 9. +event 162: suppval[0] of d1b4 is 0x0. +event 162: suppval[1] of d1b4 is 0x1. +event 162: suppval[2] of d1b4 is 0x8. +event 162: suppval[3] of d1b4 is 0x2. +event 162: suppval[4] of d1b4 is 0x3. +event 162: suppval[5] of d1b4 is 0x4. +event 162: suppval[6] of d1b4 is 0x5. +event 162: suppval[7] of d1b4 is 0x6. +event 162: suppval[8] of d1b4 is 0x8000. +event 163: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 163: propxtype is 7 for d1b5, unhandled. +event 164: EOS prop d1b6 desc record, datasize 304, propxtype 3 +event 164: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +event 164: suppval[0] of d1b6 is 0x9c4. +event 164: suppval[1] of d1b6 is 0xa28. +event 164: suppval[2] of d1b6 is 0xa8c. +event 164: suppval[3] of d1b6 is 0xaf0. +event 164: suppval[4] of d1b6 is 0xb54. +event 164: suppval[5] of d1b6 is 0xbb8. +event 164: suppval[6] of d1b6 is 0xc1c. +event 164: suppval[7] of d1b6 is 0xc80. +event 164: suppval[8] of d1b6 is 0xce4. +event 164: suppval[9] of d1b6 is 0xd48. +event 164: suppval[10] of d1b6 is 0xdac. +event 164: suppval[11] of d1b6 is 0xe10. +event 164: suppval[12] of d1b6 is 0xe74. +event 164: suppval[13] of d1b6 is 0xed8. +event 164: suppval[14] of d1b6 is 0xf3c. +event 164: suppval[15] of d1b6 is 0xfa0. +event 164: suppval[16] of d1b6 is 0x1004. +event 164: suppval[17] of d1b6 is 0x1068. +event 164: suppval[18] of d1b6 is 0x10cc. +event 164: suppval[19] of d1b6 is 0x1130. +event 164: suppval[20] of d1b6 is 0x1194. +event 164: suppval[21] of d1b6 is 0x11f8. +event 164: suppval[22] of d1b6 is 0x125c. +event 164: suppval[23] of d1b6 is 0x12c0. +event 164: suppval[24] of d1b6 is 0x1324. +event 164: suppval[25] of d1b6 is 0x1388. +event 164: suppval[26] of d1b6 is 0x13ec. +event 164: suppval[27] of d1b6 is 0x1450. +event 164: suppval[28] of d1b6 is 0x14b4. +event 164: suppval[29] of d1b6 is 0x1518. +event 164: suppval[30] of d1b6 is 0x157c. +event 164: suppval[31] of d1b6 is 0x15e0. +event 164: suppval[32] of d1b6 is 0x1644. +event 164: suppval[33] of d1b6 is 0x16a8. +event 164: suppval[34] of d1b6 is 0x170c. +event 164: suppval[35] of d1b6 is 0x1770. +event 164: suppval[36] of d1b6 is 0x17d4. +event 164: suppval[37] of d1b6 is 0x1838. +event 164: suppval[38] of d1b6 is 0x189c. +event 164: suppval[39] of d1b6 is 0x1900. +event 164: suppval[40] of d1b6 is 0x1964. +event 164: suppval[41] of d1b6 is 0x19c8. +event 164: suppval[42] of d1b6 is 0x1a2c. +event 164: suppval[43] of d1b6 is 0x1a90. +event 164: suppval[44] of d1b6 is 0x1af4. +event 164: suppval[45] of d1b6 is 0x1b58. +event 164: suppval[46] of d1b6 is 0x1bbc. +event 164: suppval[47] of d1b6 is 0x1c20. +event 164: suppval[48] of d1b6 is 0x1c84. +event 164: suppval[49] of d1b6 is 0x1ce8. +event 164: suppval[50] of d1b6 is 0x1d4c. +event 164: suppval[51] of d1b6 is 0x1db0. +event 164: suppval[52] of d1b6 is 0x1e14. +event 164: suppval[53] of d1b6 is 0x1e78. +event 164: suppval[54] of d1b6 is 0x1edc. +event 164: suppval[55] of d1b6 is 0x1f40. +event 164: suppval[56] of d1b6 is 0x1fa4. +event 164: suppval[57] of d1b6 is 0x2008. +event 164: suppval[58] of d1b6 is 0x206c. +event 164: suppval[59] of d1b6 is 0x20d0. +event 164: suppval[60] of d1b6 is 0x2134. +event 164: suppval[61] of d1b6 is 0x2198. +event 164: suppval[62] of d1b6 is 0x21fc. +event 164: suppval[63] of d1b6 is 0x2260. +event 164: suppval[64] of d1b6 is 0x22c4. +event 164: suppval[65] of d1b6 is 0x2328. +event 164: suppval[66] of d1b6 is 0x238c. +event 164: suppval[67] of d1b6 is 0x23f0. +event 164: suppval[68] of d1b6 is 0x2454. +event 164: suppval[69] of d1b6 is 0x24b8. +event 164: suppval[70] of d1b6 is 0x251c. +event 164: suppval[71] of d1b6 is 0x2580. +event 164: suppval[72] of d1b6 is 0x25e4. +event 164: suppval[73] of d1b6 is 0x2648. +event 164: suppval[74] of d1b6 is 0x26ac. +event 164: suppval[75] of d1b6 is 0x2710. +event 165: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 165: propxtype is 3, prop is 0xd1a9, data type is 0x0004, propxcnt is 5. +event 165: suppval[0] of d1a9 is 0x0. +event 165: suppval[1] of d1a9 is 0x2. +event 165: suppval[2] of d1a9 is 0x4. +event 165: suppval[3] of d1a9 is 0x8. +event 165: suppval[4] of d1a9 is 0xff. +event 166: EOS prop d146 desc record, datasize 0, propxtype 7 +event 166: propxtype is 7 for d146, unhandled. +event 167: EOS prop d1ac desc record, datasize 0, propxtype 1 +event 167: propxtype is 1 for d1ac, unhandled. +event 168: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 168: propdesc d1ad, default value not found. +event 169: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 169: propdesc d1ae, default value not found. +event 170: EOS prop d1aa desc record, datasize 0, propxtype 1 +event 170: propxtype is 1 for d1aa, unhandled. +event 171: EOS prop d11e desc record, datasize 0, propxtype 1 +event 171: propxtype is 1 for d11e, unhandled. +event 172: EOS prop d11f desc record, datasize 0, propxtype 1 +event 172: propxtype is 1 for d11f, unhandled. +event 173: EOS prop d1af desc record, datasize 0, propxtype 1 +event 173: propdesc d1af, default value not found. +event 174: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 174: propdesc d1d0, default value not found. +event 175: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 175: propdesc d1d1, default value not found. +event 176: EOS prop d1d9 desc record, datasize 28, propxtype 3 +event 176: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 7. +event 176: suppval[0] of d1d9 is 0x0. +event 176: suppval[1] of d1d9 is 0x3. +event 176: suppval[2] of d1d9 is 0x5. +event 176: suppval[3] of d1d9 is 0x8. +event 176: suppval[4] of d1d9 is 0xb. +event 176: suppval[5] of d1d9 is 0xd. +event 176: suppval[6] of d1d9 is 0x10. +event 177: EOS prop d1ba desc record, datasize 16, propxtype 3 +event 177: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 4. +event 177: suppval[0] of d1ba is 0x2. +event 177: suppval[1] of d1ba is 0x3. +event 177: suppval[2] of d1ba is 0x1. +event 177: suppval[3] of d1ba is 0x0. +event 178: EOS prop d1cc desc record, datasize 0, propxtype 3 +event 179: EOS prop d1bc desc record, datasize 12, propxtype 3 +event 179: propxtype is 3, prop is 0xd1bc, data type is 0x0006, propxcnt is 3. +event 179: suppval[0] of d1bc is 0x1. +event 179: suppval[1] of d1bc is 0x0. +event 179: suppval[2] of d1bc is 0x3. +event 180: EOS prop d1b8 desc record, datasize 0, propxtype 3 +event 181: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 181: propxtype is 7 for d1d3, unhandled. +event 182: EOS prop d1d8 desc record, datasize 0, propxtype 1 +event 182: propxtype is 1 for d1d8, unhandled. +event 183: EOS prop d17f desc record, datasize 0, propxtype 1 +event 183: propdesc d17f, default value not found. +event 184: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 184: propxtype is 1 for d1b7, unhandled. +event 185: EOS prop d1cb desc record, datasize 0, propxtype 7 +event 185: propxtype is 7 for d1cb, unhandled. +event 186: EOS prop d1db desc record, datasize 0, propxtype 7 +event 186: propxtype is 7 for d1db, unhandled. +event 187: EOS prop d1dc desc record, datasize 8, propxtype 3 +event 187: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 2. +event 187: suppval[0] of d1dc is 0x0. +event 187: suppval[1] of d1dc is 0x1. +event 188: EOS prop d1a3 desc record, datasize 0, propxtype 1 +event 188: propxtype is 1 for d1a3, unhandled. +event 189: EOS prop d1a4 desc record, datasize 0, propxtype 7 +event 189: propxtype is 7 for d1a4, unhandled. +event 190: EOS prop d1df desc record, datasize 0, propxtype 3 +event 191: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 191: propxtype is 1 for d1bd, unhandled. +event 192: EOS prop d1c1 desc record, datasize 16, propxtype 3 +event 192: propxtype is 3, prop is 0xd1c1, data type is 0x0000, propxcnt is 4. +event 192: data type 0x0000 of d1c1 unhandled, raw values: + 0: 0x 3 + 1: 0x 1 + 2: 0x 0 + 3: 0x 2 +event 193: EOS prop d1c0 desc record, datasize 0, propxtype 1 +event 193: propxtype is 1 for d1c0, unhandled. +event 194: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 194: propxtype is 7 for d1bf, unhandled. +event 195: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 195: propxtype is 1 for d1c4, unhandled. +event 196: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 196: propxtype is 1 for d1c2, unhandled. +event 197: EOS prop d1c5 desc record, datasize 0, propxtype 3 +event 198: EOS prop d194 desc record, datasize 16, propxtype 3 +event 198: propxtype is 3, prop is 0xd194, data type is 0x0000, propxcnt is 4. +event 198: data type 0x0000 of d194 unhandled, raw values: + 0: 0x 0 + 1: 0x 2 + 2: 0x 7 + 3: 0x 1 +event 199: EOS prop d195 desc record, datasize 0, propxtype 3 +event 200: EOS prop d196 desc record, datasize 0, propxtype 7 +event 200: propxtype is 7 for d196, unhandled. +event 201: EOS prop d197 desc record, datasize 0, propxtype 3 +event 202: EOS prop d198 desc record, datasize 0, propxtype 1 +event 202: propxtype is 1 for d198, unhandled. +event 203: EOS prop d1dd desc record, datasize 0, propxtype 1 +event 203: propxtype is 1 for d1dd, unhandled. +event 204: EOS prop d1c7 desc record, datasize 0, propxtype 7 +event 204: propxtype is 7 for d1c7, unhandled. +event 205: EOS prop d199 desc record, datasize 0, propxtype 1 +event 205: propxtype is 1 for d199, unhandled. +event 206: EOS prop d138 desc record, datasize 0, propxtype 1 +event 206: propxtype is 1 for d138, unhandled. +event 207: EOS prop d139 desc record, datasize 0, propxtype 1 +event 207: propxtype is 1 for d139, unhandled. +event 208: EOS prop d13a desc record, datasize 8, propxtype 3 +event 208: propxtype is 3, prop is 0xd13a, data type is 0x0000, propxcnt is 2. +event 208: data type 0x0000 of d13a unhandled, raw values: + 0: 0x 0 + 1: 0x 1 +event 209: EOS prop d13c desc record, datasize 0, propxtype 1 +event 209: propxtype is 1 for d13c, unhandled. +event 210: EOS prop d13d desc record, datasize 0, propxtype 7 +event 210: propxtype is 7 for d13d, unhandled. +event 211: EOS prop d14d desc record, datasize 0, propxtype 7 +event 211: propxtype is 7 for d14d, unhandled. +event 212: EOS prop d19d desc record, datasize 0, propxtype 1 +event 212: propdesc d19d, default value not found. +event 213: EOS prop d19a desc record, datasize 0, propxtype 1 +event 213: propxtype is 1 for d19a, unhandled. +event 214: EOS prop d19c desc record, datasize 0, propxtype 1 +event 214: propxtype is 1 for d19c, unhandled. +event 215: EOS prop d1c6 desc record, datasize 12, propxtype 3 +event 215: propxtype is 3, prop is 0xd1c6, data type is 0x0000, propxcnt is 3. +event 215: data type 0x0000 of d1c6 unhandled, raw values: + 0: 0x 0 + 1: 0x 1 + 2: 0x 2 +event 216: EOS prop d1c8 desc record, datasize 8, propxtype 3 +event 216: propxtype is 3, prop is 0xd1c8, data type is 0x0000, propxcnt is 2. +event 216: data type 0x0000 of d1c8 unhandled, raw values: + 0: 0x 0 + 1: 0x 1 +event 217: EOS prop d178 desc record, datasize 20, propxtype 3 +event 217: propxtype is 3, prop is 0xd178, data type is 0x0000, propxcnt is 5. +event 217: data type 0x0000 of d178 unhandled, raw values: + 0: 0x 3 + 1: 0x 1 + 2: 0x 0 + 3: 0x 2 + 4: 0x 4 +event 218: EOS prop d179 desc record, datasize 0, propxtype 3 +event 219: EOS prop d17a desc record, datasize 8, propxtype 3 +event 219: propxtype is 3, prop is 0xd17a, data type is 0x0000, propxcnt is 2. +event 219: data type 0x0000 of d17a unhandled, raw values: + 0: 0x 1 + 1: 0x 0 +event 220: EOS prop d17b desc record, datasize 0, propxtype 3 +event 221: EOS prop d1c9 desc record, datasize 8, propxtype 3 +event 221: propxtype is 3, prop is 0xd1c9, data type is 0x0000, propxcnt is 2. +event 221: data type 0x0000 of d1c9 unhandled, raw values: + 0: 0x 1 + 1: 0x 0 +event 222: EOS prop d19f desc record, datasize 0, propxtype 1 +event 222: propxtype is 1 for d19f, unhandled. +event 223: EOS prop d137 desc record, datasize 0, propxtype 1 +event 223: propxtype is 1 for d137, unhandled. + +event: c181 +event: c182 +event: c183 +event: c184 +event: c185 +event: c186 +event: c187 +event: c188 +event: c189 +event: c18a +event: c18b +event: c18d +event: c18e +event: c18f +event: c190 +event: c191 +event: c1a0 +event: c1a1 +deviceprop: d105 +deviceprop: d108 +deviceprop: d106 +deviceprop: d107 +deviceprop: d109 +deviceprop: d10a +deviceprop: d10b +deviceprop: d10c +deviceprop: d10d +deviceprop: d10e +deviceprop: d10f +deviceprop: d11b +deviceprop: d114 +deviceprop: d116 +deviceprop: d119 +deviceprop: d11a +deviceprop: d110 +deviceprop: d115 +deviceprop: d101 +deviceprop: d102 +deviceprop: d103 +deviceprop: d104 +deviceprop: d11d +deviceprop: d111 +deviceprop: d112 +deviceprop: d113 +deviceprop: d17c +deviceprop: d17d +deviceprop: d17e +deviceprop: d120 +deviceprop: d121 +deviceprop: d122 +deviceprop: d156 +deviceprop: d150 +deviceprop: d151 +deviceprop: d152 +deviceprop: d153 +deviceprop: d154 +deviceprop: d155 +deviceprop: d160 +deviceprop: d161 +deviceprop: d162 +deviceprop: d170 +deviceprop: d171 +deviceprop: d172 +deviceprop: d11c +deviceprop: d1a0 +deviceprop: d1a1 +deviceprop: d1a2 +deviceprop: d1a5 +deviceprop: d1a8 +deviceprop: d1a7 +deviceprop: d1ab +deviceprop: d1b0 +deviceprop: d1b1 +deviceprop: d1b2 +deviceprop: d1b3 +deviceprop: d1b4 +deviceprop: d1b5 +deviceprop: d1b6 +deviceprop: d1a9 +deviceprop: d146 +deviceprop: d1ac +deviceprop: d1ad +deviceprop: d1ae +deviceprop: d1aa +deviceprop: d11e +deviceprop: d11f +deviceprop: d1af +deviceprop: d1d0 +deviceprop: d1d1 +deviceprop: d1d9 +deviceprop: d1ba +deviceprop: d1cc +deviceprop: d1bc +deviceprop: d1b8 +deviceprop: d1d3 +deviceprop: d1d8 +deviceprop: d17f +deviceprop: d1b7 +deviceprop: d1cb +deviceprop: d1db +deviceprop: d1dc +deviceprop: d1a3 +deviceprop: d1a4 +deviceprop: d1df +deviceprop: d1bd +deviceprop: d1c1 +deviceprop: d1c0 +deviceprop: d1bf +deviceprop: d1c4 +deviceprop: d1c2 +deviceprop: d1c5 +deviceprop: d194 +deviceprop: d195 +deviceprop: d196 +deviceprop: d197 +deviceprop: d198 +deviceprop: d1dd +deviceprop: d1c7 +deviceprop: d199 +deviceprop: d138 +deviceprop: d139 +deviceprop: d13a +deviceprop: d13c +deviceprop: d13d +deviceprop: d14d +deviceprop: d19d +deviceprop: d19a +deviceprop: d19c +deviceprop: d1c6 +deviceprop: d1c8 +deviceprop: d178 +deviceprop: d179 +deviceprop: d17a +deviceprop: d17b +deviceprop: d1c9 +deviceprop: d19f +deviceprop: d137 +unk: 0000 +unk: 0001 +unk: 0002 +unk: 0004 +unk: 0008 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos1200d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos1200d.txt new file mode 100644 index 00000000..a83032ea --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos1200d.txt @@ -0,0 +1,2039 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 1200D + Version: 3-1.0.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 15923150848 (15185 MB) + Free Space (Bytes): 15922987008 (15185 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 1200D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1400097552 +Printable: Wed May 14 19:59:12 2014 +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Unknown value 0000 +Choice: 0 TFT +Choice: 1 PC +Choice: 2 TFT + PC +Choice: 3 Setting 4 +Choice: 4 Setting 5 +Choice: 5 Setting 6 +Choice: 6 Setting 7 +Choice: 7 Unknown value 0000 +/main/settings/movierecordtarget +Label: Recording Destination +Type: RADIO +Current: Disabled +Choice: 0 Disabled +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d105,2, +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 53f444dfb783410c922e75d39ab76f23 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 1200D +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.0.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484455 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-S18-55mm f/3.5-5.6 III +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 013070014011 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 1504 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 0 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: RAW +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: RAW +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +Choice: 4 800 +Choice: 5 1600 +Choice: 6 3200 +Choice: 7 6400 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 -4.3 +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: AV +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous +Choice: 2 Timer 10 sec +Choice: 3 Timer 2 sec +Choice: 4 Unknown value 0007 +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +/main/capturesettings/aperture +Label: Aperture +Type: RADIO +Current: 5.6 +Choice: 0 3.5 +Choice: 1 4 +Choice: 2 4.5 +Choice: 3 5 +Choice: 4 5.6 +Choice: 5 6.3 +Choice: 6 7.1 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 13 +Choice: 12 14 +Choice: 13 16 +Choice: 14 18 +Choice: 15 20 +Choice: 16 22 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 1200D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 1200D + device version: 3-1.0.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1001 + 0x1002 + 0x1003 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9115 + 0x9114 + 0x9113 + 0x9116 + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x912d + 0x912e + 0x912f + 0x912c + 0x9130 + 0x9131 + 0x9132 + 0x9133 + 0x9134 + 0x912b + 0x9135 + 0x9136 + 0x9137 + 0x9138 + 0x9139 + 0x913a + 0x913b + 0x913c + 0x91da + 0x91db + 0x91dc + 0x91dd + 0x91de + 0x91d8 + 0x91d9 + 0x91d7 + 0x91d5 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905f +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + + +event 0: EOS prop d105 info record, datasize is 4 +event 0: currentvalue of d105 is 2 +event 1: EOS prop d108 info record, datasize is 4 +event 1: currentvalue of d108 is 0 +event 2: EOS prop d106 info record, datasize is 4 +event 2: currentvalue of d106 is 0 +event 3: EOS prop d107 info record, datasize is 4 +event 3: currentvalue of d107 is 3 +event 4: EOS prop d109 info record, datasize is 4 +event 4: currentvalue of d109 is 0 +event 5: EOS prop d10b info record, datasize is 4 +event 5: currentvalue of d10b is 0 +event 6: EOS prop d10c info record, datasize is 4 +event 6: currentvalue of d10c is 0 +event 7: EOS prop d10d info record, datasize is 4 +event 7: currentvalue of d10d is 0 +event 8: EOS prop d10e info record, datasize is 4 +event 8: currentvalue of d10e is 0 +event 9: EOS prop d10f info record, datasize is 4 +event 9: currentvalue of d10f is 1 +event 10: EOS prop d11b info record, datasize is 4 +event 10: currentvalue of d11b is 21c +event 11: EOS prop d114 info record, datasize is 4 +event 11: currentvalue of d114 is 0 +event 12: EOS prop d116 info record, datasize is 4 +event 12: currentvalue of d116 is 80000327 +event 13: EOS prop d119 info record, datasize is 4 +event 13: currentvalue of d119 is 100 +event 14: EOS prop d110 info record, datasize is 4 +event 14: currentvalue of d110 is 87 +event 15: EOS prop d101 info record, datasize is 4 +event 15: currentvalue of d101 is 30 +event 16: EOS prop d102 info record, datasize is 4 +event 16: currentvalue of d102 is 0 +event 17: EOS prop d103 info record, datasize is 4 +event 17: currentvalue of d103 is 0 +event 18: EOS prop d104 info record, datasize is 4 +event 18: currentvalue of d104 is 0 +event 19: EOS prop d11d info record, datasize is 4 +event 19: currentvalue of d11d is 0 +event 20: EOS prop d111 info record, datasize is 4 +event 20: currentvalue of d111 is 2 +event 21: EOS prop d112 info record, datasize is 4 +event 21: currentvalue of d112 is 0 +event 22: EOS prop d113 info record, datasize is 4 +event 22: currentvalue of d113 is 5373cb16 +event 23: EOS prop d120 info record, datasize is 20 +event 23: decoded imageformat, currentvalue of d120 is 400 +event 24: EOS prop d122 info record, datasize is 20 +event 24: decoded imageformat, currentvalue of d122 is 400 +event 25: EOS prop d156 info record, datasize is 28 +event 25: Unknown EOS property d156, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 26: EOS prop d150 info record, datasize is 28 +event 26: Unknown EOS property d150, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 27: EOS prop d151 info record, datasize is 28 +event 27: Unknown EOS property d151, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 02 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 28: EOS prop d152 info record, datasize is 28 +event 28: Unknown EOS property d152, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 04 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 29: EOS prop d153 info record, datasize is 28 +event 29: Unknown EOS property d153, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 30: EOS prop d154 info record, datasize is 28 +event 30: Unknown EOS property d154, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 31: EOS prop d155 info record, datasize is 28 +event 31: Unknown EOS property d155, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 32: EOS prop d160 info record, datasize is 32 +event 32: Unknown EOS property d160, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 33: EOS prop d161 info record, datasize is 32 +event 33: Unknown EOS property d161, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 34: EOS prop d162 info record, datasize is 32 +event 34: Unknown EOS property d162, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 35: EOS prop d11c info record, datasize is 4 +event 35: currentvalue of d11c is 2 +event 36: EOS prop d1a0 info record, datasize is 188 +event 36: decoded custom function, currentvalue of d1a0 is 10,c189,d105,2, +event 37: EOS prop d1a1 info record, datasize is 8 +event 37: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 38: EOS prop d1a8 info record, datasize is 4 +event 38: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 38: currentvalue of d1a8 is 1 +event 39: EOS prop d1ab info record, datasize is 4 +event 39: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 39: currentvalue of d1ab is 0 +event 40: EOS prop d1b0 info record, datasize is 4 +event 40: currentvalue of d1b0 is 0 +event 41: EOS prop d1b1 info record, datasize is 4 +event 41: currentvalue of d1b1 is 1 +event 42: EOS prop d1b2 info record, datasize is 4 +event 42: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 42: currentvalue of d1b2 is 0 +event 43: EOS prop d1b3 info record, datasize is 4 +event 43: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 43: currentvalue of d1b3 is 0 +event 44: EOS prop d1b4 info record, datasize is 4 +event 44: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 0 +event 44: currentvalue of d1b4 is 0 +event 45: EOS prop d1b5 info record, datasize is 48 +event 45: Unknown EOS property d1b5, datasize is 48, using uint32 + 0: 0x 30 + 1: 0x 0 + 2: 0x 0 + 3: 0x 0 + 4: 0x 0 + 5: 0x 0 + 6: 0x 0 + 7: 0x 0 + 8: 0x 0 + 9: 0x 0 + 10: 0x 4000400 + 11: 0x 4000400 +event 45: currentvalue of d1b5 is 30 +event 46: EOS prop d1a9 info record, datasize is 4 +event 46: currentvalue of d1a9 is 0 +event 47: EOS prop d146 info record, datasize is 48 +event 47: Unknown EOS property d146, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: de + 41: 01 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: a3 + 47: 02 +event 48: EOS prop d1ac info record, datasize is 4 +event 48: currentvalue of d1ac is 5e0 +event 49: EOS prop d11e info record, datasize is 4 +event 49: currentvalue of d11e is 20001 +event 50: EOS prop d11f info record, datasize is 4 +event 50: currentvalue of d11f is 91900000 +event 51: EOS prop d1d9 info record, datasize is 4 +event 51: currentvalue of d1d9 is 0 +event 52: EOS prop d1ba info record, datasize is 4 +event 52: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 1 +event 52: currentvalue of d1ba is 1 +event 53: EOS prop d1ca info record, datasize is 24 +event 53: Unknown EOS property d1ca, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 19 + 13: 00 + 14: 00 + 15: 00 + 16: 0c + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 54: EOS prop d1bc info record, datasize is 4 +event 54: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 54: currentvalue of d1bc is 1 +event 55: EOS prop d1b8 info record, datasize is 4 +event 55: Unknown EOS property d1b8, datasize is 4, using uint32 + 0: 0x 0 +event 55: currentvalue of d1b8 is 0 +event 56: EOS prop d1d3 info record, datasize is 100 +event 56: Unknown EOS property d1d3, datasize is 100 + 0: 64 + 1: 00 + 2: 00 + 3: 00 + 4: 60 + 5: 00 + 6: 04 + 7: 00 + 8: 09 + 9: 00 + 10: 09 + 11: 00 + 12: 40 + 13: 14 + 14: 80 + 15: 0d + 16: 40 + 17: 14 + 18: 80 + 19: 0d + 20: b5 + 21: 00 + 22: 81 + 23: 00 + 24: 81 + 25: 00 + 26: 81 + 27: 00 + 28: de + 29: 00 + 30: 81 + 31: 00 + 32: 81 + 33: 00 + 34: 81 + 35: 00 + 36: b5 + 37: 00 + 38: 75 + 39: 00 + 40: ac + 41: 00 + 42: ac + 43: 00 + 44: ac + 45: 00 + 46: e0 + 47: 00 + 48: ac + 49: 00 + 50: ac + 51: 00 + 52: ac + 53: 00 + 54: 75 + 55: 00 + 56: 00 + 57: 00 + 58: b9 + 59: fc + 60: 47 + 61: 03 + 62: 8e + 63: fa + 64: 00 + 65: 00 + 66: 72 + 67: 05 + 68: b9 + 69: fc + 70: 47 + 71: 03 + 72: 00 + 73: 00 + 74: e7 + 75: 02 + 76: 89 + 77: 01 + 78: 89 + 79: 01 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 77 + 87: fe + 88: 77 + 89: fe + 90: 19 + 91: fd + 92: 00 + 93: 00 + 94: ff + 95: 01 + 96: 00 + 97: 00 + 98: ff + 99: ff +event 57: EOS prop d1d8 info record, datasize is 64 +event 57: currentvalue of d1d8 is EF-S18-55mm f/3.5-5.6 III +event 58: EOS prop d1b7 info record, datasize is 4 +event 58: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 0 +event 58: currentvalue of d1b7 is 0 +event 59: EOS prop d1b9 info record, datasize is 38 +event 59: Unknown EOS property d1b9, datasize is 38 + 0: 26 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 3a + 13: 00 + 14: 00 + 15: 00 + 16: 39 + 17: 00 + 18: 03 + 19: 80 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 32 + 29: 00 + 30: 00 + 31: 00 + 32: 3a + 33: 00 + 34: 03 + 35: 80 + 36: 00 + 37: 00 +event 60: EOS prop d1db info record, datasize is 14 +event 60: Unknown EOS property d1db, datasize is 14 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 03 + 5: 00 + 6: 00 + 7: 00 + 8: 2f + 9: 00 + 10: 00 + 11: 00 + 12: 28 + 13: 00 +event 61: EOS prop d1dc info record, datasize is 4 +event 61: currentvalue of d1dc is 0 +event 62: EOS prop d1df info record, datasize is 4 +event 62: Unknown EOS property d1df, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 63: EOS prop d1bd info record, datasize is 4 +event 63: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 64: EOS prop d1c1 info record, datasize is 4 +event 64: Unknown EOS property d1c1, datasize is 4, using uint32 + 0: 0x 0 +event 64: currentvalue of d1c1 is 0 +event 65: EOS prop d1c0 info record, datasize is 4 +event 65: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 66: EOS prop d1bf info record, datasize is 4 +event 66: Unknown EOS property d1bf, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 67: EOS prop d1c4 info record, datasize is 4 +event 67: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 68: EOS prop d1c2 info record, datasize is 4 +event 68: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 69: EOS prop d1c5 info record, datasize is 4 +event 69: Unknown EOS property d1c5, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 70: EOS prop d194 info record, datasize is 4 +event 70: Unknown EOS property d194, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 71: EOS prop d195 info record, datasize is 4 +event 71: Unknown EOS property d195, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 72: EOS prop d196 info record, datasize is 4 +event 72: Unknown EOS property d196, datasize is 4 + 0: 2f + 1: 00 + 2: 00 + 3: 00 +event 73: EOS prop d197 info record, datasize is 4 +event 73: Unknown EOS property d197, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 74: EOS prop d198 info record, datasize is 4 +event 74: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 75: EOS prop d1c6 info record, datasize is 4 +event 75: Unknown EOS property d1c6, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 76: EOS prop d1c8 info record, datasize is 4 +event 76: Unknown EOS property d1c8, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 77: EOS prop d17c info record, datasize is 4 +event 77: Unknown EOS property d17c, datasize is 4 + 0: 06 + 1: bd + 2: 73 + 3: 53 +event 78: EOS prop d17d info record, datasize is 12 +event 78: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 14 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 79: EOS prop d17e info record, datasize is 4 +event 79: Unknown EOS property d17e, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 80: EOS prop d138 info record, datasize is 4 +event 80: Unknown EOS property d138, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 81: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 02 + 11: 00 +event 82: EOS prop d105 desc record, datasize 0, propxtype 1 +event 82: propxtype is 1 for d105, unhandled. +event 83: EOS prop d108 desc record, datasize 12, propxtype 3 +event 83: propxtype is 3, prop is 0xd108, data type is 0x0004, propxcnt is 3. +event 83: suppval[0] of d108 is 0x0. +event 83: suppval[1] of d108 is 0x2. +event 83: suppval[2] of d108 is 0x1. +event 84: EOS prop d106 desc record, datasize 20, propxtype 3 +event 84: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 5. +event 84: suppval[0] of d106 is 0x0. +event 84: suppval[1] of d106 is 0x1. +event 84: suppval[2] of d106 is 0x10. +event 84: suppval[3] of d106 is 0x11. +event 84: suppval[4] of d106 is 0x7. +event 85: EOS prop d107 desc record, datasize 12, propxtype 3 +event 85: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 3. +event 85: suppval[0] of d107 is 0x3. +event 85: suppval[1] of d107 is 0x4. +event 85: suppval[2] of d107 is 0x5. +event 86: EOS prop d109 desc record, datasize 32, propxtype 3 +event 86: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 8. +event 86: suppval[0] of d109 is 0x0. +event 86: suppval[1] of d109 is 0x1. +event 86: suppval[2] of d109 is 0x8. +event 86: suppval[3] of d109 is 0x2. +event 86: suppval[4] of d109 is 0x3. +event 86: suppval[5] of d109 is 0x4. +event 86: suppval[6] of d109 is 0x5. +event 86: suppval[7] of d109 is 0x6. +event 87: EOS prop d10b desc record, datasize 76, propxtype 3 +event 87: propxtype is 3, prop is 0xd10b, data type is 0x0003, propxcnt is 19. +event 87: suppval[0] of d10b is 0xfff7. +event 87: suppval[1] of d10b is 0xfff8. +event 87: suppval[2] of d10b is 0xfff9. +event 87: suppval[3] of d10b is 0xfffa. +event 87: suppval[4] of d10b is 0xfffb. +event 87: suppval[5] of d10b is 0xfffc. +event 87: suppval[6] of d10b is 0xfffd. +event 87: suppval[7] of d10b is 0xfffe. +event 87: suppval[8] of d10b is 0xffff. +event 87: suppval[9] of d10b is 0x0. +event 87: suppval[10] of d10b is 0x1. +event 87: suppval[11] of d10b is 0x2. +event 87: suppval[12] of d10b is 0x3. +event 87: suppval[13] of d10b is 0x4. +event 87: suppval[14] of d10b is 0x5. +event 87: suppval[15] of d10b is 0x6. +event 87: suppval[16] of d10b is 0x7. +event 87: suppval[17] of d10b is 0x8. +event 87: suppval[18] of d10b is 0x9. +event 88: EOS prop d10c desc record, datasize 76, propxtype 3 +event 88: propxtype is 3, prop is 0xd10c, data type is 0x0003, propxcnt is 19. +event 88: suppval[0] of d10c is 0xfff7. +event 88: suppval[1] of d10c is 0xfff8. +event 88: suppval[2] of d10c is 0xfff9. +event 88: suppval[3] of d10c is 0xfffa. +event 88: suppval[4] of d10c is 0xfffb. +event 88: suppval[5] of d10c is 0xfffc. +event 88: suppval[6] of d10c is 0xfffd. +event 88: suppval[7] of d10c is 0xfffe. +event 88: suppval[8] of d10c is 0xffff. +event 88: suppval[9] of d10c is 0x0. +event 88: suppval[10] of d10c is 0x1. +event 88: suppval[11] of d10c is 0x2. +event 88: suppval[12] of d10c is 0x3. +event 88: suppval[13] of d10c is 0x4. +event 88: suppval[14] of d10c is 0x5. +event 88: suppval[15] of d10c is 0x6. +event 88: suppval[16] of d10c is 0x7. +event 88: suppval[17] of d10c is 0x8. +event 88: suppval[18] of d10c is 0x9. +event 89: EOS prop d10d desc record, datasize 16, propxtype 3 +event 89: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +event 89: suppval[0] of d10d is 0x0. +event 89: suppval[1] of d10d is 0x1. +event 89: suppval[2] of d10d is 0x2. +event 89: suppval[3] of d10d is 0x3. +event 90: EOS prop d10e desc record, datasize 16, propxtype 3 +event 90: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +event 90: suppval[0] of d10e is 0x0. +event 90: suppval[1] of d10e is 0x1. +event 90: suppval[2] of d10e is 0x2. +event 90: suppval[3] of d10e is 0x3. +event 91: EOS prop d10f desc record, datasize 8, propxtype 3 +event 91: propxtype is 3, prop is 0xd10f, data type is 0x0004, propxcnt is 2. +event 91: suppval[0] of d10f is 0x1. +event 91: suppval[1] of d10f is 0x2. +event 92: EOS prop d11b desc record, datasize 0, propxtype 1 +event 92: propxtype is 1 for d11b, unhandled. +event 93: EOS prop d114 desc record, datasize 0, propxtype 1 +event 93: propxtype is 1 for d114, unhandled. +event 94: EOS prop d116 desc record, datasize 0, propxtype 1 +event 94: propxtype is 1 for d116, unhandled. +event 95: EOS prop d119 desc record, datasize 0, propxtype 1 +event 95: propxtype is 1 for d119, unhandled. +event 96: EOS prop d11a desc record, datasize 0, propxtype 1 +event 96: propdesc d11a, default value not found. +event 97: EOS prop d110 desc record, datasize 40, propxtype 3 +event 97: propxtype is 3, prop is 0xd110, data type is 0x0002, propxcnt is 10. +event 97: suppval[0] of d110 is 0x87. +event 97: suppval[1] of d110 is 0x81. +event 97: suppval[2] of d110 is 0x82. +event 97: suppval[3] of d110 is 0x83. +event 97: suppval[4] of d110 is 0x84. +event 97: suppval[5] of d110 is 0x85. +event 97: suppval[6] of d110 is 0x86. +event 97: suppval[7] of d110 is 0x21. +event 97: suppval[8] of d110 is 0x22. +event 97: suppval[9] of d110 is 0x23. +event 98: EOS prop d115 desc record, datasize 0, propxtype 7 +event 98: propdesc d115, default value not found. +event 99: EOS prop d101 desc record, datasize 68, propxtype 3 +event 99: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 17. +event 99: suppval[0] of d101 is 0x25. +event 99: suppval[1] of d101 is 0x28. +event 99: suppval[2] of d101 is 0x2b. +event 99: suppval[3] of d101 is 0x2d. +event 99: suppval[4] of d101 is 0x30. +event 99: suppval[5] of d101 is 0x33. +event 99: suppval[6] of d101 is 0x35. +event 99: suppval[7] of d101 is 0x38. +event 99: suppval[8] of d101 is 0x3b. +event 99: suppval[9] of d101 is 0x3d. +event 99: suppval[10] of d101 is 0x40. +event 99: suppval[11] of d101 is 0x43. +event 99: suppval[12] of d101 is 0x45. +event 99: suppval[13] of d101 is 0x48. +event 99: suppval[14] of d101 is 0x4b. +event 99: suppval[15] of d101 is 0x4d. +event 99: suppval[16] of d101 is 0x50. +event 100: EOS prop d102 desc record, datasize 0, propxtype 3 +event 101: EOS prop d103 desc record, datasize 32, propxtype 3 +event 101: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 8. +event 101: suppval[0] of d103 is 0x0. +event 101: suppval[1] of d103 is 0x48. +event 101: suppval[2] of d103 is 0x50. +event 101: suppval[3] of d103 is 0x58. +event 101: suppval[4] of d103 is 0x60. +event 101: suppval[5] of d103 is 0x68. +event 101: suppval[6] of d103 is 0x70. +event 101: suppval[7] of d103 is 0x78. +event 102: EOS prop d104 desc record, datasize 124, propxtype 3 +event 102: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 31. +event 102: suppval[0] of d104 is 0xd8. +event 102: suppval[1] of d104 is 0xdb. +event 102: suppval[2] of d104 is 0xdd. +event 102: suppval[3] of d104 is 0xe0. +event 102: suppval[4] of d104 is 0xe3. +event 102: suppval[5] of d104 is 0xe5. +event 102: suppval[6] of d104 is 0xe8. +event 102: suppval[7] of d104 is 0xeb. +event 102: suppval[8] of d104 is 0xed. +event 102: suppval[9] of d104 is 0xf0. +event 102: suppval[10] of d104 is 0xf3. +event 102: suppval[11] of d104 is 0xf5. +event 102: suppval[12] of d104 is 0xf8. +event 102: suppval[13] of d104 is 0xfb. +event 102: suppval[14] of d104 is 0xfd. +event 102: suppval[15] of d104 is 0x0. +event 102: suppval[16] of d104 is 0x3. +event 102: suppval[17] of d104 is 0x5. +event 102: suppval[18] of d104 is 0x8. +event 102: suppval[19] of d104 is 0xb. +event 102: suppval[20] of d104 is 0xd. +event 102: suppval[21] of d104 is 0x10. +event 102: suppval[22] of d104 is 0x13. +event 102: suppval[23] of d104 is 0x15. +event 102: suppval[24] of d104 is 0x18. +event 102: suppval[25] of d104 is 0x1b. +event 102: suppval[26] of d104 is 0x1d. +event 102: suppval[27] of d104 is 0x20. +event 102: suppval[28] of d104 is 0x23. +event 102: suppval[29] of d104 is 0x25. +event 102: suppval[30] of d104 is 0x28. +event 103: EOS prop d11d desc record, datasize 0, propxtype 1 +event 103: propxtype is 1 for d11d, unhandled. +event 104: EOS prop d111 desc record, datasize 0, propxtype 1 +event 104: propxtype is 1 for d111, unhandled. +event 105: EOS prop d112 desc record, datasize 0, propxtype 1 +event 105: propxtype is 1 for d112, unhandled. +event 106: EOS prop d113 desc record, datasize 0, propxtype 7 +event 106: propxtype is 7 for d113, unhandled. +event 107: EOS prop d120 desc record, datasize 216, propxtype 3 +event 107: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 10. +event 107: suppval[0] of d120 is 0x300. +event 107: suppval[1] of d120 is 0x200. +event 107: suppval[2] of d120 is 0x1300. +event 107: suppval[3] of d120 is 0x1200. +event 107: suppval[4] of d120 is 0xd300. +event 107: suppval[5] of d120 is 0xd200. +event 107: suppval[6] of d120 is 0xe300. +event 107: suppval[7] of d120 is 0xf300. +event 107: suppval[8] of d120 is 0x403. +event 107: suppval[9] of d120 is 0x400. +event 108: EOS prop d122 desc record, datasize 216, propxtype 3 +event 108: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 10. +event 108: suppval[0] of d122 is 0x300. +event 108: suppval[1] of d122 is 0x200. +event 108: suppval[2] of d122 is 0x1300. +event 108: suppval[3] of d122 is 0x1200. +event 108: suppval[4] of d122 is 0xd300. +event 108: suppval[5] of d122 is 0xd200. +event 108: suppval[6] of d122 is 0xe300. +event 108: suppval[7] of d122 is 0xf300. +event 108: suppval[8] of d122 is 0x403. +event 108: suppval[9] of d122 is 0x400. +event 109: EOS prop d156 desc record, datasize 0, propxtype 7 +event 109: propxtype is 7 for d156, unhandled. +event 110: EOS prop d150 desc record, datasize 0, propxtype 7 +event 110: propxtype is 7 for d150, unhandled. +event 111: EOS prop d151 desc record, datasize 0, propxtype 7 +event 111: propxtype is 7 for d151, unhandled. +event 112: EOS prop d152 desc record, datasize 0, propxtype 7 +event 112: propxtype is 7 for d152, unhandled. +event 113: EOS prop d153 desc record, datasize 0, propxtype 7 +event 113: propxtype is 7 for d153, unhandled. +event 114: EOS prop d154 desc record, datasize 0, propxtype 7 +event 114: propxtype is 7 for d154, unhandled. +event 115: EOS prop d155 desc record, datasize 0, propxtype 7 +event 115: propxtype is 7 for d155, unhandled. +event 116: EOS prop d160 desc record, datasize 0, propxtype 7 +event 116: propxtype is 7 for d160, unhandled. +event 117: EOS prop d161 desc record, datasize 0, propxtype 7 +event 117: propxtype is 7 for d161, unhandled. +event 118: EOS prop d162 desc record, datasize 0, propxtype 7 +event 118: propxtype is 7 for d162, unhandled. +event 119: EOS prop d170 desc record, datasize 0, propxtype 7 +event 119: propdesc d170, default value not found. +event 120: EOS prop d171 desc record, datasize 0, propxtype 7 +event 120: propdesc d171, default value not found. +event 121: EOS prop d172 desc record, datasize 0, propxtype 7 +event 121: propdesc d172, default value not found. +event 122: EOS prop d11c desc record, datasize 12, propxtype 3 +event 122: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +event 122: suppval[0] of d11c is 0x2. +event 122: suppval[1] of d11c is 0x4. +event 122: suppval[2] of d11c is 0x6. +event 123: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 123: propxtype is 7 for d1a0, unhandled. +event 124: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 124: propxtype is 7 for d1a1, unhandled. +event 125: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 125: propdesc d1a2, default value not found. +event 126: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 126: propxtype is 1 for d1a8, unhandled. +event 127: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 127: propxtype is 1 for d1ab, unhandled. +event 128: EOS prop d1b0 desc record, datasize 28, propxtype 3 +event 128: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 7. +event 128: suppval[0] of d1b0 is 0x1. +event 128: suppval[1] of d1b0 is 0x2. +event 128: suppval[2] of d1b0 is 0x3. +event 128: suppval[3] of d1b0 is 0x4. +event 128: suppval[4] of d1b0 is 0x5. +event 128: suppval[5] of d1b0 is 0x6. +event 128: suppval[6] of d1b0 is 0x7. +event 129: EOS prop d1b1 desc record, datasize 8, propxtype 3 +event 129: propxtype is 3, prop is 0xd1b1, data type is 0x0004, propxcnt is 2. +event 129: suppval[0] of d1b1 is 0x1. +event 129: suppval[1] of d1b1 is 0x0. +event 130: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 130: propxtype is 7 for d1b2, unhandled. +event 131: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 131: propxtype is 7 for d1b3, unhandled. +event 132: EOS prop d1b4 desc record, datasize 36, propxtype 3 +event 132: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 9. +event 132: suppval[0] of d1b4 is 0x0. +event 132: suppval[1] of d1b4 is 0x1. +event 132: suppval[2] of d1b4 is 0x8. +event 132: suppval[3] of d1b4 is 0x2. +event 132: suppval[4] of d1b4 is 0x3. +event 132: suppval[5] of d1b4 is 0x4. +event 132: suppval[6] of d1b4 is 0x5. +event 132: suppval[7] of d1b4 is 0x6. +event 132: suppval[8] of d1b4 is 0x8000. +event 133: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 133: propxtype is 7 for d1b5, unhandled. +event 134: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 134: propxtype is 3, prop is 0xd1a9, data type is 0x0004, propxcnt is 5. +event 134: suppval[0] of d1a9 is 0x0. +event 134: suppval[1] of d1a9 is 0x2. +event 134: suppval[2] of d1a9 is 0x4. +event 134: suppval[3] of d1a9 is 0x8. +event 134: suppval[4] of d1a9 is 0xff. +event 135: EOS prop d146 desc record, datasize 0, propxtype 7 +event 135: propxtype is 7 for d146, unhandled. +event 136: EOS prop d1ac desc record, datasize 0, propxtype 1 +event 136: propxtype is 1 for d1ac, unhandled. +event 137: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 137: propdesc d1ad, default value not found. +event 138: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 138: propdesc d1ae, default value not found. +event 139: EOS prop d11e desc record, datasize 0, propxtype 1 +event 139: propxtype is 1 for d11e, unhandled. +event 140: EOS prop d11f desc record, datasize 0, propxtype 1 +event 140: propxtype is 1 for d11f, unhandled. +event 141: EOS prop d1af desc record, datasize 0, propxtype 1 +event 141: propdesc d1af, default value not found. +event 142: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 142: propdesc d1d0, default value not found. +event 143: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 143: propdesc d1d1, default value not found. +event 144: EOS prop d1d9 desc record, datasize 28, propxtype 3 +event 144: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 7. +event 144: suppval[0] of d1d9 is 0x0. +event 144: suppval[1] of d1d9 is 0x3. +event 144: suppval[2] of d1d9 is 0x5. +event 144: suppval[3] of d1d9 is 0x8. +event 144: suppval[4] of d1d9 is 0xb. +event 144: suppval[5] of d1d9 is 0xd. +event 144: suppval[6] of d1d9 is 0x10. +event 145: EOS prop d1ba desc record, datasize 12, propxtype 3 +event 145: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 3. +event 145: suppval[0] of d1ba is 0x1. +event 145: suppval[1] of d1ba is 0x2. +event 145: suppval[2] of d1ba is 0x0. +event 146: EOS prop d1ca desc record, datasize 0, propxtype 3 +event 147: EOS prop d1bc desc record, datasize 8, propxtype 3 +event 147: propxtype is 3, prop is 0xd1bc, data type is 0x0006, propxcnt is 2. +event 147: suppval[0] of d1bc is 0x0. +event 147: suppval[1] of d1bc is 0x1. +event 148: EOS prop d1b8 desc record, datasize 0, propxtype 3 +event 149: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 149: propxtype is 7 for d1d3, unhandled. +event 150: EOS prop d1d8 desc record, datasize 0, propxtype 1 +event 150: propxtype is 1 for d1d8, unhandled. +event 151: EOS prop d17f desc record, datasize 0, propxtype 1 +event 151: propdesc d17f, default value not found. +event 152: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 152: propxtype is 1 for d1b7, unhandled. +event 153: EOS prop d1b9 desc record, datasize 0, propxtype 7 +event 153: propxtype is 7 for d1b9, unhandled. +event 154: EOS prop d1db desc record, datasize 0, propxtype 7 +event 154: propxtype is 7 for d1db, unhandled. +event 155: EOS prop d1dc desc record, datasize 12, propxtype 3 +event 155: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 3. +event 155: suppval[0] of d1dc is 0x0. +event 155: suppval[1] of d1dc is 0x1. +event 155: suppval[2] of d1dc is 0x2. +event 156: EOS prop d1df desc record, datasize 52, propxtype 3 +event 156: propxtype is 3, prop is 0xd1df, data type is 0x0000, propxcnt is 13. +event 156: data type 0x0000 of d1df unhandled, raw values: + 0: 0x f0 + 1: 0x f3 + 2: 0x f5 + 3: 0x f8 + 4: 0x fb + 5: 0x fd + 6: 0x 0 + 7: 0x 3 + 8: 0x 5 + 9: 0x 8 + 10: 0x b + 11: 0x d + 12: 0x 10 +event 157: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 157: propxtype is 1 for d1bd, unhandled. +event 158: EOS prop d1c1 desc record, datasize 16, propxtype 3 +event 158: propxtype is 3, prop is 0xd1c1, data type is 0x0006, propxcnt is 4. +event 158: suppval[0] of d1c1 is 0x0. +event 158: suppval[1] of d1c1 is 0x1. +event 158: suppval[2] of d1c1 is 0x2. +event 158: suppval[3] of d1c1 is 0x3. +event 159: EOS prop d1c0 desc record, datasize 0, propxtype 1 +event 159: propxtype is 1 for d1c0, unhandled. +event 160: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 160: propxtype is 7 for d1bf, unhandled. +event 161: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 161: propxtype is 1 for d1c4, unhandled. +event 162: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 162: propxtype is 1 for d1c2, unhandled. +event 163: EOS prop d1c5 desc record, datasize 0, propxtype 3 +event 164: EOS prop d194 desc record, datasize 16, propxtype 3 +event 164: propxtype is 3, prop is 0xd194, data type is 0x0000, propxcnt is 4. +event 164: data type 0x0000 of d194 unhandled, raw values: + 0: 0x 0 + 1: 0x 2 + 2: 0x 7 + 3: 0x 1 +event 165: EOS prop d195 desc record, datasize 0, propxtype 3 +event 166: EOS prop d196 desc record, datasize 0, propxtype 7 +event 166: propxtype is 7 for d196, unhandled. +event 167: EOS prop d197 desc record, datasize 0, propxtype 3 +event 168: EOS prop d198 desc record, datasize 0, propxtype 1 +event 168: propxtype is 1 for d198, unhandled. +event 169: EOS prop d1c6 desc record, datasize 12, propxtype 3 +event 169: propxtype is 3, prop is 0xd1c6, data type is 0x0000, propxcnt is 3. +event 169: data type 0x0000 of d1c6 unhandled, raw values: + 0: 0x 0 + 1: 0x 1 + 2: 0x 2 +event 170: EOS prop d1c8 desc record, datasize 8, propxtype 3 +event 170: propxtype is 3, prop is 0xd1c8, data type is 0x0000, propxcnt is 2. +event 170: data type 0x0000 of d1c8 unhandled, raw values: + 0: 0x 0 + 1: 0x 1 +event 171: EOS prop d17c desc record, datasize 0, propxtype 7 +event 171: propxtype is 7 for d17c, unhandled. +event 172: EOS prop d17d desc record, datasize 396, propxtype 3 +event 172: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +event 172: data type 0x0000 of d17d unhandled, raw values: + 0: 0x c + 1: 0x 21 + 2: 0x 30c + 3: 0x c + 4: 0x 1 + 5: 0x 2fd + 6: 0x c + 7: 0x 2 + 8: 0x 2d0 + 9: 0x c + 10: 0x 3 + 11: 0x 294 + 12: 0x c + 13: 0x 4 + 14: 0x 258 + 15: 0x c + 16: 0x 5 + 17: 0x 23a + 18: 0x c + 19: 0x 6 + 20: 0x 21c + 21: 0x c + 22: 0x 7 + 23: 0x 1e0 + 24: 0x c + 25: 0x 8 + 26: 0x 1a4 + 27: 0x c + 28: 0x 9 + 29: 0x 186 + 30: 0x c + 31: 0x a + 32: 0x 168 + 33: 0x c + 34: 0x b + 35: 0x 159 + 36: 0x c + 37: 0x c + 38: 0x 14a + 39: 0x c + 40: 0x d + 41: 0x 12c + 42: 0x c + 43: 0x e + 44: 0x 10e + 45: 0x c + 46: 0x 11 + 47: 0x f0 + 48: 0x c + 49: 0x 10 + 50: 0x d2 + 51: 0x c + 52: 0x 22 + 53: 0x b4 + 54: 0x c + 55: 0x 12 + 56: 0x 78 + 57: 0x c + 58: 0x 13 + 59: 0x 3c + 60: 0x c + 61: 0x 14 + 62: 0x 0 + 63: 0x c + 64: 0x 15 + 65: 0xffffffc4 + 66: 0x c + 67: 0x 16 + 68: 0xffffff88 + 69: 0x c + 70: 0x 17 + 71: 0xffffff4c + 72: 0x c + 73: 0x 18 + 74: 0xffffff2e + 75: 0x c + 76: 0x 19 + 77: 0xffffff10 + 78: 0x c + 79: 0x 1a + 80: 0xfffffef2 + 81: 0x c + 82: 0x 1b + 83: 0xfffffed4 + 84: 0x c + 85: 0x 1c + 86: 0xfffffe98 + 87: 0x c + 88: 0x 1d + 89: 0xfffffe5c + 90: 0x c + 91: 0x 1e + 92: 0xfffffe20 + 93: 0x c + 94: 0x 1f + 95: 0xfffffde4 + 96: 0x c + 97: 0x 20 + 98: 0xfffffda8 +event 173: EOS prop d17e desc record, datasize 8, propxtype 3 +event 173: propxtype is 3, prop is 0xd17e, data type is 0x0000, propxcnt is 2. +event 173: data type 0x0000 of d17e unhandled, raw values: + 0: 0x 0 + 1: 0x 1 +event 174: EOS prop d14d desc record, datasize 0, propxtype 7 +event 174: propdesc d14d, default value not found. +event 175: EOS prop d19d desc record, datasize 0, propxtype 1 +event 175: propdesc d19d, default value not found. +event 176: EOS prop d138 desc record, datasize 0, propxtype 1 +event 176: propxtype is 1 for d138, unhandled. + + +event: c181 +event: c182 +event: c183 +event: c184 +event: c185 +event: c186 +event: c187 +event: c188 +event: c189 +event: c18a +event: c18b +event: c18d +event: c18e +event: c18f +event: c190 +event: c191 +event: c1a0 +event: c1a1 +deviceprop: d105 +deviceprop: d108 +deviceprop: d106 +deviceprop: d107 +deviceprop: d109 +deviceprop: d10b +deviceprop: d10c +deviceprop: d10d +deviceprop: d10e +deviceprop: d10f +deviceprop: d11b +deviceprop: d114 +deviceprop: d116 +deviceprop: d119 +deviceprop: d11a +deviceprop: d110 +deviceprop: d115 +deviceprop: d101 +deviceprop: d102 +deviceprop: d103 +deviceprop: d104 +deviceprop: d11d +deviceprop: d111 +deviceprop: d112 +deviceprop: d113 +deviceprop: d120 +deviceprop: d122 +deviceprop: d156 +deviceprop: d150 +deviceprop: d151 +deviceprop: d152 +deviceprop: d153 +deviceprop: d154 +deviceprop: d155 +deviceprop: d160 +deviceprop: d161 +deviceprop: d162 +deviceprop: d170 +deviceprop: d171 +deviceprop: d172 +deviceprop: d11c +deviceprop: d1a0 +deviceprop: d1a1 +deviceprop: d1a2 +deviceprop: d1a5 +deviceprop: d1a8 +deviceprop: d1ab +deviceprop: d1b0 +deviceprop: d1b1 +deviceprop: d1b2 +deviceprop: d1b3 +deviceprop: d1b4 +deviceprop: d1b5 +deviceprop: d1a9 +deviceprop: d146 +deviceprop: d1ac +deviceprop: d1ad +deviceprop: d1ae +deviceprop: d11e +deviceprop: d11f +deviceprop: d1af +deviceprop: d1d0 +deviceprop: d1d1 +deviceprop: d1d9 +deviceprop: d1ba +deviceprop: d1ca +deviceprop: d1bc +deviceprop: d1b8 +deviceprop: d1d3 +deviceprop: d1d8 +deviceprop: d17f +deviceprop: d1b7 +deviceprop: d1b9 +deviceprop: d1db +deviceprop: d1dc +deviceprop: d1df +deviceprop: d1bd +deviceprop: d1c1 +deviceprop: d1c0 +deviceprop: d1bf +deviceprop: d1c4 +deviceprop: d1c2 +deviceprop: d1c5 +deviceprop: d194 +deviceprop: d195 +deviceprop: d196 +deviceprop: d197 +deviceprop: d198 +deviceprop: d1c6 +deviceprop: d1c8 +deviceprop: d17c +deviceprop: d17d +deviceprop: d17e +deviceprop: d14d +deviceprop: d19d +deviceprop: d138 +unk: 0000 +unk: 0001 +unk: 0002 +unk: 0004 +unk: 0008 + + +event 0: EOS prop d115 info record, datasize is 1 +event 0: currentvalue of d115 is +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is +event 3: EOS prop d1af info record, datasize is 13 +event 3: currentvalue of d1af is 013070014011 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos2000d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos2000d.txt new file mode 100644 index 00000000..4b93de38 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos2000d.txt @@ -0,0 +1,903 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 2000D + Version: 3-1.0.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button + Canon Wifi support + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 32383172608 (30883 MB) + Free Space (Bytes): 32343654400 (30845 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 2000D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 2000D + device version: 3-1.0.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1006 (Get number of objects) + 0x1004 (Get storage IDs) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x1005 (Get storage info) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x1009 (Get object) + 0x9104 (PTP_OC_CANON_EOS_GetObject) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x100f (Format storage) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x910b (PTP_OC_CANON_EOS_SendPartialObject) + 0x9108 (PTP_OC_CANON_EOS_GetDeviceInfoEx) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x910e (PTP_OC_CANON_EOS_SetObjectTime) + 0x910f (PTP_OC_CANON_EOS_RemoteRelease) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9113 (PTP_OC_CANON_EOS_GetRemoteMode) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9120 (PTP_OC_CANON_EOS_TransferCompleteDT) + 0x91f0 (PTP_OC_CANON_EOS_TransferComplete2) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x9121 (PTP_OC_CANON_EOS_CancelTransferDT) + 0x91f1 (PTP_OC_CANON_EOS_CancelTransfer2) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x911e (PTP_OC_CANON_EOS_SetNullPacketMode) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x9157 (PTP_OC_CANON_EOS_ClickWB) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x915a (PTP_OC_CANON_EOS_SetLiveAfFrame) + 0x911f (PTP_OC_CANON_EOS_UpdateFirmware) + 0x91fe (PTP_OC_CANON_EOS_FAPIMessageTX) + 0x91ff (PTP_OC_CANON_EOS_FAPIMessageRX) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x912d (Unknown PTP_OC) + 0x912e (Unknown PTP_OC) + 0x912f (Unknown PTP_OC) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9130 (PTP_OC_CANON_EOS_ResetMirrorLockupState) + 0x9131 (PTP_OC_CANON_EOS_PopupBuiltinFlash) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9133 (PTP_OC_CANON_EOS_MovieSelectSWOn) + 0x9134 (PTP_OC_CANON_EOS_MovieSelectSWOff) + 0x912b (PTP_OC_CANON_EOS_ChangePhotoStudioMode) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9138 (PTP_OC_CANON_EOS_GetMusicInfo) + 0x9139 (PTP_OC_CANON_EOS_CreateHandle) + 0x913a (PTP_OC_CANON_EOS_SendPartialObjectEx) + 0x913b (PTP_OC_CANON_EOS_EndSendPartialObjectEx) + 0x913c (PTP_OC_CANON_EOS_SetCTGInfo) + 0x91da (Unknown PTP_OC) + 0x91db (Unknown PTP_OC) + 0x91dc (Unknown PTP_OC) + 0x91dd (Unknown PTP_OC) + 0x91de (Unknown PTP_OC) + 0x91d8 (Unknown PTP_OC) + 0x91d9 (Unknown PTP_OC) + 0x91d7 (Unknown PTP_OC) + 0x91d5 (Unknown PTP_OC) + 0x902f (Unknown PTP_OC) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9142 (PTP_OC_CANON_EOS_RequestInnerDevelopParamChange) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9068 (PTP_OC_CANON_GetWebServiceSpec) + 0x9069 (PTP_OC_CANON_GetWebServiceData) + 0x906a (Unknown PTP_OC) + 0x906b (PTP_OC_CANON_SetWebServiceData) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x9180 (Unknown PTP_OC) + 0x9181 (Unknown PTP_OC) + 0x9182 (Unknown PTP_OC) + 0x9183 (Unknown PTP_OC) + 0x9184 (Unknown PTP_OC) + 0x9185 (Unknown PTP_OC) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x91c0 (Unknown PTP_OC) + 0x91c1 (Unknown PTP_OC) + 0x91c2 (Unknown PTP_OC) + 0x91c3 (Unknown PTP_OC) + 0x91c4 (Unknown PTP_OC) + 0x91c5 (Unknown PTP_OC) + 0x91c6 (Unknown PTP_OC) + 0x91c7 (Unknown PTP_OC) + 0x91c8 (Unknown PTP_OC) + 0x91c9 (Unknown PTP_OC) + 0x91ca (Unknown PTP_OC) + 0x91cb (Unknown PTP_OC) + 0x91cc (Unknown PTP_OC) + 0x91ce (Unknown PTP_OC) + 0x91cf (Unknown PTP_OC) + 0x91d0 (Unknown PTP_OC) + 0x91d1 (Unknown PTP_OC) + 0x91d2 (Unknown PTP_OC) + 0x91e1 (Unknown PTP_OC) + 0x91e2 (Unknown PTP_OC) + 0x91e3 (Unknown PTP_OC) + 0x91e4 (Unknown PTP_OC) + 0x91e5 (Unknown PTP_OC) + 0x91e6 (Unknown PTP_OC) + 0x91e7 (Unknown PTP_OC) + 0x91e8 (PTP_OC_CANON_EOS_NotifyNetworkError) + 0x91e9 (PTP_OC_CANON_EOS_AdapterTransferProgress) + 0x91ea (Unknown PTP_OC) + 0x91eb (Unknown PTP_OC) + 0x91ec (Unknown PTP_OC) + 0x91ed (Unknown PTP_OC) + 0x91ee (Unknown PTP_OC) + 0x91ef (Unknown PTP_OC) + 0x91f8 (Unknown PTP_OC) + 0x91f9 (Unknown PTP_OC) + 0x91f2 (Unknown PTP_OC) + 0x91f3 (Unknown PTP_OC) + 0x91f4 (Unknown PTP_OC) + 0x91f7 (Unknown PTP_OC) + 0x9122 (PTP_OC_CANON_EOS_SetWftProfile) + 0x9123 (PTP_OC_CANON_EOS_GetWftProfile) + 0x9124 (PTP_OC_CANON_EOS_SetProfileToWft) + 0x91f5 (Unknown PTP_OC) + 0x91f6 (Unknown PTP_OC) + 0x9052 (Unknown PTP_OC) + 0x9053 (Unknown PTP_OC) + 0x9057 (Unknown PTP_OC) + 0x9058 (Unknown PTP_OC) + 0x9059 (Unknown PTP_OC) + 0x905a (Unknown PTP_OC) + 0x905f (Unknown PTP_OC) +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + +/main/actions/syncdatetimeutc +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/cancelautofocus +Label: Cancel Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetimeutc +Label: Camera Date and Time +Type: DATE +Current: 1554641975 +Printable: Sun 07 Apr 2019 15:59:35 MSK +Help: Use 'now' as the current time when setting. + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1554641974 +Printable: Sun 07 Apr 2019 15:59:34 MSK +Help: Use 'now' as the current time when setting. + +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Off +Choice: 0 TFT +Choice: 1 PC +Choice: 2 TFT + PC +Choice: 3 Setting 4 +Choice: 4 Setting 5 +Choice: 5 Setting 6 +Choice: 6 Setting 7 +Choice: 7 Unknown value 0008 +Choice: 8 Unknown value 0009 +Choice: 9 Unknown value 000a +Choice: 10 Unknown value 000b +Choice: 11 Off +/main/settings/movierecordtarget +Label: Recording Destination +Type: RADIO +Current: None +Choice: 0 None +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: bc,4,1,2c,3,101,1,0,103,1,0,10f,1,0,2,2c,3,201,1,0,202,1,0,203,1,0,3,14,1,50e,1,0,4,38,4,701,1,0,704,1,0,70e,1,0,811,1,0, +/main/settings/focusinfo +Label: Focus Info +Type: TEXT +Current: eosversion=0,size=6000x4000,size2=6000x4000,points={{0,860,136,210},{-972,456,200,150},{972,456,200,150},{-1614,0,200,150},{0,0,260,258},{1614,0,200,150},{-972,-456,200,150},{972,-456,200,150},{0,-860,136,210}},select={},unknown={ff010000ffff} +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 0 +/main/settings/depthoffield +Label: Depth of Field +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 2000D +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.0.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484722 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/Battery Level +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-S18-55mm f/3.5-5.6 IS II +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 063070025673 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 2578 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 735 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +Choice: 4 800 +Choice: 5 1600 +Choice: 6 3200 +Choice: 7 6400 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Unknown value 0017 +Choice: 2 Daylight +Choice: 3 Shadow +Choice: 4 Cloudy +Choice: 5 Tungsten +Choice: 6 Fluorescent +Choice: 7 Flash +Choice: 8 Manual +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 -4.3 +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Manual +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +Choice: 3 Manual +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: AV +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous +Choice: 2 Timer 10 sec +Choice: 3 Timer 2 sec +Choice: 4 Unknown value 0007 +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +/main/capturesettings/aperture +Label: Aperture +Type: RADIO +Current: 11 +Choice: 0 3.5 +Choice: 1 4 +Choice: 2 4.5 +Choice: 3 5 +Choice: 4 5.6 +Choice: 5 6.3 +Choice: 6 7.1 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 13 +Choice: 12 14 +Choice: 13 16 +Choice: 14 18 +Choice: 15 20 +Choice: 16 22 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: auto +Choice: 0 auto +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 2000D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 2000D + device version: 3-1.0.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1006 (Get number of objects) + 0x1004 (Get storage IDs) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x1005 (Get storage info) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x1009 (Get object) + 0x9104 (PTP_OC_CANON_EOS_GetObject) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x100f (Format storage) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x910b (PTP_OC_CANON_EOS_SendPartialObject) + 0x9108 (PTP_OC_CANON_EOS_GetDeviceInfoEx) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x910e (PTP_OC_CANON_EOS_SetObjectTime) + 0x910f (PTP_OC_CANON_EOS_RemoteRelease) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9113 (PTP_OC_CANON_EOS_GetRemoteMode) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9120 (PTP_OC_CANON_EOS_TransferCompleteDT) + 0x91f0 (PTP_OC_CANON_EOS_TransferComplete2) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x9121 (PTP_OC_CANON_EOS_CancelTransferDT) + 0x91f1 (PTP_OC_CANON_EOS_CancelTransfer2) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x911e (PTP_OC_CANON_EOS_SetNullPacketMode) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x9157 (PTP_OC_CANON_EOS_ClickWB) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x915a (PTP_OC_CANON_EOS_SetLiveAfFrame) + 0x911f (PTP_OC_CANON_EOS_UpdateFirmware) + 0x91fe (PTP_OC_CANON_EOS_FAPIMessageTX) + 0x91ff (PTP_OC_CANON_EOS_FAPIMessageRX) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x912d (Unknown PTP_OC) + 0x912e (Unknown PTP_OC) + 0x912f (Unknown PTP_OC) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9130 (PTP_OC_CANON_EOS_ResetMirrorLockupState) + 0x9131 (PTP_OC_CANON_EOS_PopupBuiltinFlash) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9133 (PTP_OC_CANON_EOS_MovieSelectSWOn) + 0x9134 (PTP_OC_CANON_EOS_MovieSelectSWOff) + 0x912b (PTP_OC_CANON_EOS_ChangePhotoStudioMode) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9138 (PTP_OC_CANON_EOS_GetMusicInfo) + 0x9139 (PTP_OC_CANON_EOS_CreateHandle) + 0x913a (PTP_OC_CANON_EOS_SendPartialObjectEx) + 0x913b (PTP_OC_CANON_EOS_EndSendPartialObjectEx) + 0x913c (PTP_OC_CANON_EOS_SetCTGInfo) + 0x91da (Unknown PTP_OC) + 0x91db (Unknown PTP_OC) + 0x91dc (Unknown PTP_OC) + 0x91dd (Unknown PTP_OC) + 0x91de (Unknown PTP_OC) + 0x91d8 (Unknown PTP_OC) + 0x91d9 (Unknown PTP_OC) + 0x91d7 (Unknown PTP_OC) + 0x91d5 (Unknown PTP_OC) + 0x902f (Unknown PTP_OC) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9142 (PTP_OC_CANON_EOS_RequestInnerDevelopParamChange) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9068 (PTP_OC_CANON_GetWebServiceSpec) + 0x9069 (PTP_OC_CANON_GetWebServiceData) + 0x906a (Unknown PTP_OC) + 0x906b (PTP_OC_CANON_SetWebServiceData) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x9180 (Unknown PTP_OC) + 0x9181 (Unknown PTP_OC) + 0x9182 (Unknown PTP_OC) + 0x9183 (Unknown PTP_OC) + 0x9184 (Unknown PTP_OC) + 0x9185 (Unknown PTP_OC) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x91c0 (Unknown PTP_OC) + 0x91c1 (Unknown PTP_OC) + 0x91c2 (Unknown PTP_OC) + 0x91c3 (Unknown PTP_OC) + 0x91c4 (Unknown PTP_OC) + 0x91c5 (Unknown PTP_OC) + 0x91c6 (Unknown PTP_OC) + 0x91c7 (Unknown PTP_OC) + 0x91c8 (Unknown PTP_OC) + 0x91c9 (Unknown PTP_OC) + 0x91ca (Unknown PTP_OC) + 0x91cb (Unknown PTP_OC) + 0x91cc (Unknown PTP_OC) + 0x91ce (Unknown PTP_OC) + 0x91cf (Unknown PTP_OC) + 0x91d0 (Unknown PTP_OC) + 0x91d1 (Unknown PTP_OC) + 0x91d2 (Unknown PTP_OC) + 0x91e1 (Unknown PTP_OC) + 0x91e2 (Unknown PTP_OC) + 0x91e3 (Unknown PTP_OC) + 0x91e4 (Unknown PTP_OC) + 0x91e5 (Unknown PTP_OC) + 0x91e6 (Unknown PTP_OC) + 0x91e7 (Unknown PTP_OC) + 0x91e8 (PTP_OC_CANON_EOS_NotifyNetworkError) + 0x91e9 (PTP_OC_CANON_EOS_AdapterTransferProgress) + 0x91ea (Unknown PTP_OC) + 0x91eb (Unknown PTP_OC) + 0x91ec (Unknown PTP_OC) + 0x91ed (Unknown PTP_OC) + 0x91ee (Unknown PTP_OC) + 0x91ef (Unknown PTP_OC) + 0x91f8 (Unknown PTP_OC) + 0x91f9 (Unknown PTP_OC) + 0x91f2 (Unknown PTP_OC) + 0x91f3 (Unknown PTP_OC) + 0x91f4 (Unknown PTP_OC) + 0x91f7 (Unknown PTP_OC) + 0x9122 (PTP_OC_CANON_EOS_SetWftProfile) + 0x9123 (PTP_OC_CANON_EOS_GetWftProfile) + 0x9124 (PTP_OC_CANON_EOS_SetProfileToWft) + 0x91f5 (Unknown PTP_OC) + 0x91f6 (Unknown PTP_OC) + 0x9052 (Unknown PTP_OC) + 0x9053 (Unknown PTP_OC) + 0x9057 (Unknown PTP_OC) + 0x9058 (Unknown PTP_OC) + 0x9059 (Unknown PTP_OC) + 0x905a (Unknown PTP_OC) + 0x905f (Unknown PTP_OC) +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + +event 0: EOS prop d115 info record, datasize is 1 +event 0: currentvalue of d115 is +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is +event 3: EOS prop d1af info record, datasize is 13 +event 3: currentvalue of d1af is 063070025673 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos200d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos200d.txt new file mode 100644 index 00000000..497848c3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos200d.txt @@ -0,0 +1,3114 @@ +Device info: +Manufacturer: Canon.Inc + Model: Canon EOS Rebel SL2 + device version: 3-1.0.1 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x1005 (Get storage info) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9170 (PTP_OC_CANON_EOS_GetObjectInfo64) + 0x1009 (Get object) + 0x9104 (PTP_OC_CANON_EOS_GetObject) + 0x9171 (PTP_OC_CANON_EOS_GetObject64) + 0x100a (Get thumbnail) + 0x100f (Format storage) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x1014 (Get device property description) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9172 (PTP_OC_CANON_EOS_GetPartialObject64) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9174 (PTP_OC_CANON_EOS_GetPartialObjectEX64) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x9173 (PTP_OC_CANON_EOS_GetObjectInfoEx64) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9068 (PTP_OC_CANON_GetWebServiceSpec) + 0x9069 (PTP_OC_CANON_GetWebServiceData) + 0x906a (Unknown PTP_OC) + 0x906b (PTP_OC_CANON_SetWebServiceData) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x911e (PTP_OC_CANON_EOS_SetNullPacketMode) + 0x911f (PTP_OC_CANON_EOS_UpdateFirmware) + 0x9122 (PTP_OC_CANON_EOS_SetWftProfile) + 0x9123 (PTP_OC_CANON_EOS_GetWftProfile) + 0x9124 (PTP_OC_CANON_EOS_SetProfileToWft) + 0x9131 (PTP_OC_CANON_EOS_PopupBuiltinFlash) + 0x9133 (PTP_OC_CANON_EOS_MovieSelectSWOn) + 0x9134 (PTP_OC_CANON_EOS_MovieSelectSWOff) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x913c (PTP_OC_CANON_EOS_SetCTGInfo) + 0x913e (PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x9157 (PTP_OC_CANON_EOS_ClickWB) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x915a (PTP_OC_CANON_EOS_SetLiveAfFrame) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x91fe (PTP_OC_CANON_EOS_FAPIMessageTX) + 0x91ff (PTP_OC_CANON_EOS_FAPIMessageRX) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9108 (PTP_OC_CANON_EOS_GetDeviceInfoEx) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x912b (PTP_OC_CANON_EOS_ChangePhotoStudioMode) + 0x9130 (PTP_OC_CANON_EOS_ResetMirrorLockupState) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x915c (PTP_OC_CANON_EOS_SetLvPcFlavoreditMode) + 0x915d (PTP_OC_CANON_EOS_SetLvPcFlavoreditParam) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x902f (Unknown PTP_OC) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x910e (PTP_OC_CANON_EOS_SetObjectTime) + 0x91f0 (PTP_OC_CANON_EOS_TransferComplete2) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x91f1 (PTP_OC_CANON_EOS_CancelTransfer2) + 0x91e1 (Unknown PTP_OC) + 0x91e2 (Unknown PTP_OC) + 0x91e3 (Unknown PTP_OC) + 0x91e4 (Unknown PTP_OC) + 0x91e6 (Unknown PTP_OC) + 0x91e7 (Unknown PTP_OC) + 0x91e8 (PTP_OC_CANON_EOS_NotifyNetworkError) + 0x91e9 (PTP_OC_CANON_EOS_AdapterTransferProgress) + 0x91ea (Unknown PTP_OC) + 0x91eb (Unknown PTP_OC) + 0x91ec (Unknown PTP_OC) + 0x91ed (Unknown PTP_OC) + 0x91ee (Unknown PTP_OC) + 0x91ef (Unknown PTP_OC) + 0x91f8 (Unknown PTP_OC) + 0x91f9 (Unknown PTP_OC) + 0x9144 (PTP_OC_CANON_EOS_GpsLoggingDataMode) + 0x9145 (PTP_OC_CANON_EOS_GetGpsLogCurrentHandle) + 0x91d3 (Unknown PTP_OC) + 0x91d4 (Unknown PTP_OC) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9146 (PTP_OC_CANON_EOS_SetImageRecoveryData) + 0x9147 (PTP_OC_CANON_EOS_GetImageRecoveryList) + 0x9148 (PTP_OC_CANON_EOS_FormatImageRecoveryData) + 0x9149 (PTP_OC_CANON_EOS_GetPresetLensAdjustParam) + 0x91df (Unknown PTP_OC) + 0x91fb (Unknown PTP_OC) + 0x91fc (Unknown PTP_OC) + 0x914a (PTP_OC_CANON_EOS_GetRawDispImage) + 0x910f (PTP_OC_CANON_EOS_RemoteRelease) + 0x914b (PTP_OC_CANON_EOS_SaveImageRecoveryData) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x100b (Delete object) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x912d (Unknown PTP_OC) + 0x912e (Unknown PTP_OC) + 0x912f (Unknown PTP_OC) + 0x914c (PTP_OC_CANON_EOS_RequestBLE) + 0x9139 (PTP_OC_CANON_EOS_CreateHandle) + 0x913a (PTP_OC_CANON_EOS_SendPartialObjectEx) + 0x913b (PTP_OC_CANON_EOS_EndSendPartialObjectEx) + 0x914e (Unknown PTP_OC) + 0x91d7 (Unknown PTP_OC) + 0x91d8 (Unknown PTP_OC) + 0x91d9 (Unknown PTP_OC) + 0x91da (Unknown PTP_OC) + 0x91db (Unknown PTP_OC) + 0x91dc (Unknown PTP_OC) + 0x91dd (Unknown PTP_OC) + 0x91de (Unknown PTP_OC) + 0x91d5 (Unknown PTP_OC) + 0x9180 (Unknown PTP_OC) + 0x9181 (Unknown PTP_OC) + 0x9182 (PTP_OC_CANON_EOS_NotifyEstimateNumberofImport) + 0x9183 (PTP_OC_CANON_EOS_NotifyNumberofImported) + 0x9184 (PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer) + 0x9185 (PTP_OC_CANON_EOS_NotifyFinish) + 0x9138 (PTP_OC_CANON_EOS_GetMusicInfo) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x91f5 (Unknown PTP_OC) + 0x91f6 (Unknown PTP_OC) + 0x917f (Unknown PTP_OC) + 0x914d (PTP_OC_CANON_EOS_DrivePowerZoom) + 0x914f (PTP_OC_CANON_EOS_GetIptcData) + 0x9150 (PTP_OC_CANON_EOS_SetIptcData) + 0x91f2 (Unknown PTP_OC) + 0x91f3 (Unknown PTP_OC) + 0x91f4 (Unknown PTP_OC) + 0x91fd (Unknown PTP_OC) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) + 0x9052 (Unknown PTP_OC) + 0x9053 (Unknown PTP_OC) + 0x9057 (Unknown PTP_OC) + 0x9058 (Unknown PTP_OC) + 0x9059 (Unknown PTP_OC) + 0x905a (Unknown PTP_OC) + 0x905b (Unknown PTP_OC) + 0x905f (Unknown PTP_OC) +Events Supported: + 0xc181 (Unknown Event) + 0x4003 (ObjectRemoved) + 0xc183 (Unknown Event) + 0xc184 (Unknown Event) + 0xc185 (Unknown Event) + 0xc186 (Unknown Event) + 0xc187 (Unknown Event) + 0xc188 (Unknown Event) + 0xc189 (Unknown Event) + 0xc18a (Unknown Event) + 0xc18b (Unknown Event) + 0xc18d (Unknown Event) + 0xc18e (Unknown Event) + 0xc18f (Unknown Event) + 0xc190 (Unknown Event) + 0xc191 (Unknown Event) + 0xc1a0 (Unknown Event) + 0xc1a1 (Unknown Event) + 0x4009 (RequestObjectTransfer) +Device Properties Supported: + 0xd402 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd303 (Unknown DPC code) + 0x5001 (Battery Level) + +event 0: EOS prop d116 info record, datasize is 4 +event 0: currentvalue of d116 is 80000417 +event 1: EOS prop d105 info record, datasize is 4 +event 1: currentvalue of d105 is 3 +event 2: EOS prop d138 info record, datasize is 4 +event 2: Unknown EOS property d138, datasize is 4 + 0: 03 + 1: 00 + 2: 00 + 3: 00 +event 3: EOS prop d102 info record, datasize is 4 +event 3: currentvalue of d102 is 70 +event 4: EOS prop d101 info record, datasize is 4 +event 4: currentvalue of d101 is 20 +event 5: EOS prop d103 info record, datasize is 4 +event 5: currentvalue of d103 is 50 +event 6: EOS prop d106 info record, datasize is 4 +event 6: currentvalue of d106 is 0 +event 7: EOS prop d108 info record, datasize is 4 +event 7: currentvalue of d108 is 3 +event 8: EOS prop d107 info record, datasize is 4 +event 8: currentvalue of d107 is 3 +event 9: EOS prop d109 info record, datasize is 4 +event 9: currentvalue of d109 is 1 +event 10: EOS prop d11b info record, datasize is 4 +event 10: currentvalue of d11b is 1ced1 +event 11: EOS prop d104 info record, datasize is 4 +event 11: currentvalue of d104 is 0 +event 12: EOS prop d10c info record, datasize is 4 +event 13: EOS prop d10b info record, datasize is 4 +event 14: EOS prop d10e info record, datasize is 4 +event 14: currentvalue of d10e is 0 +event 15: EOS prop d10d info record, datasize is 4 +event 15: currentvalue of d10d is 0 +event 16: EOS prop d1d9 info record, datasize is 4 +event 16: currentvalue of d1d9 is 0 +event 17: EOS prop d1d5 info record, datasize is 4 +event 17: Unknown EOS property d1d5, datasize is 4, using uint32 + 0: 0x 0 +event 17: currentvalue of d1d5 is 0 +event 18: EOS prop d1c1 info record, datasize is 4 +event 18: Unknown EOS property d1c1, datasize is 4, using uint32 + 0: 0x 3 +event 18: currentvalue of d1c1 is 3 +event 19: EOS prop d10f info record, datasize is 4 +event 19: currentvalue of d10f is 1 +event 20: EOS prop d114 info record, datasize is 4 +event 20: currentvalue of d114 is 0 +event 21: EOS prop d1b7 info record, datasize is 4 +event 21: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 0 +event 21: currentvalue of d1b7 is 0 +event 22: EOS prop d110 info record, datasize is 4 +event 22: currentvalue of d110 is 81 +event 23: EOS prop d157 info record, datasize is 40 +event 23: Unknown EOS property d157, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 04 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 24: EOS prop d158 info record, datasize is 40 +event 24: Unknown EOS property d158, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 02 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 04 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 25: EOS prop d159 info record, datasize is 40 +event 25: Unknown EOS property d159, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 04 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 26: EOS prop d15a info record, datasize is 40 +event 26: Unknown EOS property d15a, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 +event 27: EOS prop d15b info record, datasize is 40 +event 27: Unknown EOS property d15b, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 +event 28: EOS prop d15c info record, datasize is 40 +event 28: Unknown EOS property d15c, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 04 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 29: EOS prop d15d info record, datasize is 40 +event 29: Unknown EOS property d15d, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 04 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 30: EOS prop d15e info record, datasize is 40 +event 30: Unknown EOS property d15e, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 +event 31: EOS prop d163 info record, datasize is 44 +event 31: Unknown EOS property d163, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 32: EOS prop d164 info record, datasize is 44 +event 32: Unknown EOS property d164, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 33: EOS prop d165 info record, datasize is 44 +event 33: Unknown EOS property d165, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 34: EOS prop d1b1 info record, datasize is 4 +event 34: currentvalue of d1b1 is 1 +event 35: EOS prop d1bc info record, datasize is 4 +event 35: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 35: currentvalue of d1bc is 1 +event 36: EOS prop d1b2 info record, datasize is 4 +event 36: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 36: currentvalue of d1b2 is 0 +event 37: EOS prop d1b3 info record, datasize is 4 +event 37: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 37: currentvalue of d1b3 is 0 +event 38: EOS prop d1b4 info record, datasize is 4 +event 38: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 1 +event 38: currentvalue of d1b4 is 1 +event 39: EOS prop d1b6 info record, datasize is 4 +event 39: Unknown EOS property d1b6, datasize is 4, using uint32 + 0: 0x 1450 +event 39: currentvalue of d1b6 is 1450 +event 40: EOS prop d1ab info record, datasize is 4 +event 40: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 40: currentvalue of d1ab is 0 +event 41: EOS prop d1b0 info record, datasize is 4 +event 41: currentvalue of d1b0 is 0 +event 42: EOS prop d10a info record, datasize is 4 +event 42: Unknown EOS property d10a, datasize is 4, using uint32 + 0: 0x 1450 +event 42: currentvalue of d10a is 1450 +event 43: EOS prop d1a8 info record, datasize is 4 +event 43: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 43: currentvalue of d1a8 is 1 +event 44: EOS prop d198 info record, datasize is 4 +event 44: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 45: EOS prop d1dd info record, datasize is 4 +event 45: currentvalue of d1dd is 103a +event 46: EOS prop d1a1 info record, datasize is 8 +event 46: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 47: EOS prop d115 info record, datasize is 1 +event 47: currentvalue of d115 is +event 48: EOS prop d1a4 info record, datasize is 484 +event 48: Unknown EOS property d1a4, datasize is 484 + 0: e4 + 1: 01 + 2: 00 + 3: 00 + 4: 30 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 31 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 32 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 00 + 97: 00 + 98: 00 + 99: 00 + 100: 33 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 34 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 35 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 36 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 00 + 209: 00 + 210: 00 + 211: 00 + 212: 00 + 213: 00 + 214: 00 + 215: 00 + 216: 00 + 217: 00 + 218: 00 + 219: 00 + 220: 00 + 221: 00 + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 37 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 38 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: 00 + 273: 00 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: 00 + 281: 00 + 282: 00 + 283: 00 + 284: 00 + 285: 00 + 286: 00 + 287: 00 + 288: 00 + 289: 00 + 290: 00 + 291: 00 + 292: 39 + 293: 00 + 294: 00 + 295: 00 + 296: 00 + 297: 00 + 298: 00 + 299: 00 + 300: 00 + 301: 00 + 302: 00 + 303: 00 + 304: 00 + 305: 00 + 306: 00 + 307: 00 + 308: 00 + 309: 00 + 310: 00 + 311: 00 + 312: 00 + 313: 00 + 314: 00 + 315: 00 + 316: 00 + 317: 00 + 318: 00 + 319: 00 + 320: 00 + 321: 00 + 322: 00 + 323: 00 + 324: 31 + 325: 30 + 326: 00 + 327: 00 + 328: 00 + 329: 00 + 330: 00 + 331: 00 + 332: 00 + 333: 00 + 334: 00 + 335: 00 + 336: 00 + 337: 00 + 338: 00 + 339: 00 + 340: 00 + 341: 00 + 342: 00 + 343: 00 + 344: 00 + 345: 00 + 346: 00 + 347: 00 + 348: 00 + 349: 00 + 350: 00 + 351: 00 + 352: 00 + 353: 00 + 354: 00 + 355: 00 + 356: 31 + 357: 31 + 358: 00 + 359: 00 + 360: 00 + 361: 00 + 362: 00 + 363: 00 + 364: 00 + 365: 00 + 366: 00 + 367: 00 + 368: 00 + 369: 00 + 370: 00 + 371: 00 + 372: 00 + 373: 00 + 374: 00 + 375: 00 + 376: 00 + 377: 00 + 378: 00 + 379: 00 + 380: 00 + 381: 00 + 382: 00 + 383: 00 + 384: 00 + 385: 00 + 386: 00 + 387: 00 + 388: 31 + 389: 32 + 390: 00 + 391: 00 + 392: 00 + 393: 00 + 394: 00 + 395: 00 + 396: 00 + 397: 00 + 398: 00 + 399: 00 + 400: 00 + 401: 00 + 402: 00 + 403: 00 + 404: 00 + 405: 00 + 406: 00 + 407: 00 + 408: 00 + 409: 00 + 410: 00 + 411: 00 + 412: 00 + 413: 00 + 414: 00 + 415: 00 + 416: 00 + 417: 00 + 418: 00 + 419: 00 + 420: 31 + 421: 33 + 422: 00 + 423: 00 + 424: 00 + 425: 00 + 426: 00 + 427: 00 + 428: 00 + 429: 00 + 430: 00 + 431: 00 + 432: 00 + 433: 00 + 434: 00 + 435: 00 + 436: 00 + 437: 00 + 438: 00 + 439: 00 + 440: 00 + 441: 00 + 442: 00 + 443: 00 + 444: 00 + 445: 00 + 446: 00 + 447: 00 + 448: 00 + 449: 00 + 450: 00 + 451: 00 + 452: 31 + 453: 34 + 454: 00 + 455: 00 + 456: 00 + 457: 00 + 458: 00 + 459: 00 + 460: 00 + 461: 00 + 462: 00 + 463: 00 + 464: 00 + 465: 00 + 466: 00 + 467: 00 + 468: 00 + 469: 00 + 470: 00 + 471: 00 + 472: 00 + 473: 00 + 474: 00 + 475: 00 + 476: 00 + 477: 00 + 478: 00 + 479: 00 + 480: 00 + 481: 00 + 482: 00 + 483: 00 +event 49: EOS prop d1b8 info record, datasize is 4 +event 49: currentvalue of d1b8 is 0 +event 50: EOS prop d1ba info record, datasize is 4 +event 50: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 2 +event 50: currentvalue of d1ba is 2 +event 51: EOS prop d1c9 info record, datasize is 4 +event 51: currentvalue of d1c9 is 0 +event 52: EOS prop d17a info record, datasize is 4 +event 52: Unknown EOS property d17a, datasize is 4 + 0: 01 + 1: fc + 2: 4f + 3: 92 +event 53: EOS prop d1cd info record, datasize is 36 +event 53: Unknown EOS property d1cd, datasize is 36 + 0: 24 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: b5 + 13: 0b + 14: 00 + 15: 00 + 16: 0f + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 +event 54: EOS prop d1c5 info record, datasize is 4 +event 54: Unknown EOS property d1c5, datasize is 4 + 0: 03 + 1: 00 + 2: 00 + 3: 00 +event 55: EOS prop d1d4 info record, datasize is 4 +event 55: Unknown EOS property d1d4, datasize is 4, using uint32 + 0: 0x 0 +event 55: currentvalue of d1d4 is 0 +event 56: EOS prop d1c2 info record, datasize is 4 +event 56: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 57: EOS prop d1bd info record, datasize is 4 +event 57: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 58: EOS prop d194 info record, datasize is 4 +event 58: currentvalue of d194 is 0 +event 59: EOS prop d195 info record, datasize is 4 +event 59: Unknown EOS property d195, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 60: EOS prop d196 info record, datasize is 4 +event 60: Unknown EOS property d196, datasize is 4 + 0: 2f + 1: 00 + 2: 00 + 3: 00 +event 61: EOS prop d197 info record, datasize is 4 +event 61: Unknown EOS property d197, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 62: EOS prop d199 info record, datasize is 4 +event 62: Unknown EOS property d199, datasize is 4 + 0: 0f + 1: 00 + 2: 00 + 3: 00 +event 63: EOS prop d13c info record, datasize is 4 +event 63: currentvalue of d13c is 5ccd0303 +event 64: EOS prop d13d info record, datasize is 24 +event 64: Unknown EOS property d13d, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 65: EOS prop d179 info record, datasize is 4 +event 65: Unknown EOS property d179, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 66: EOS prop d17b info record, datasize is 4 +event 66: Unknown EOS property d17b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 67: EOS prop d177 info record, datasize is 24 +event 67: Unknown EOS property d177, datasize is 24 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 68: EOS prop d176 info record, datasize is 4 +event 68: Unknown EOS property d176, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 69: EOS prop d175 info record, datasize is 4 +event 69: Unknown EOS property d175, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 70: EOS prop d137 info record, datasize is 4 +event 70: Unknown EOS property d137, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 71: EOS prop d178 info record, datasize is 4 +event 71: currentvalue of d178 is 0 +event 72: EOS prop d121 info record, datasize is 36 +event 72: decoded imageformat, currentvalue of d121 is d300 +event 73: EOS prop d120 info record, datasize is 36 +event 73: decoded imageformat, currentvalue of d120 is d300 +event 74: EOS prop d122 info record, datasize is 36 +event 74: decoded imageformat, currentvalue of d122 is d300 +event 75: EOS prop d133 info record, datasize is 4 +event 75: Unknown EOS property d133, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 76: EOS prop d131 info record, datasize is 4 +event 76: Unknown EOS property d131, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 77: EOS prop d132 info record, datasize is 4 +event 77: Unknown EOS property d132, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 78: EOS prop d130 info record, datasize is 4 +event 78: Unknown EOS property d130, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 79: EOS prop d11c info record, datasize is 4 +event 79: currentvalue of d11c is 4 +event 80: EOS prop d113 info record, datasize is 4 +event 80: currentvalue of d113 is 386d44c2 +event 81: EOS prop d1a0 info record, datasize is 152 +event 81: decoded custom function, currentvalue of d1a0 is 98,1,1,8c,b,101,1,0,103,1,0,113,1,0,203,1,0,50e,1,0,60f,1,1,40a,1,43,702,1,0,704,1,0,811,1,0,814,1,0, +event 82: EOS prop d1a7 info record, datasize is 40 +event 82: Unknown EOS property d1a7, datasize is 40 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 +event 83: EOS prop d112 info record, datasize is 4 +event 83: currentvalue of d112 is 2 +event 84: EOS prop d111 info record, datasize is 4 +event 84: currentvalue of d111 is 2 +event 85: EOS prop d1d8 info record, datasize is 63 +event 85: currentvalue of d1d8 is EF-S24mm f/2.8 STM +event 86: EOS prop 0000 info record, datasize is 16 +event 86: Unknown EOS property 0000, datasize is 16 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 +event 87: EOS prop d17e info record, datasize is 4 +event 87: currentvalue of d17e is 0 +event 88: EOS prop d17c info record, datasize is 4 +event 88: currentvalue of d17c is 386d44c2 +event 89: EOS prop d11f info record, datasize is 4 +event 89: currentvalue of d11f is 91900000 +event 90: EOS prop d11f info record, datasize is 4 +event 90: currentvalue of d11f is 91900000 +event 91: EOS prop d11e info record, datasize is 4 +event 91: currentvalue of d11e is 20000 +event 92: EOS prop d1aa info record, datasize is 4 +event 92: Unknown EOS property d1aa, datasize is 4, using uint32 + 0: 0x 0 +event 92: currentvalue of d1aa is 0 +event 93: EOS prop d139 info record, datasize is 12 +event 93: Unknown EOS property d139, datasize is 12 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 94: EOS prop d1c3 info record, datasize is 4 +event 94: Unknown EOS property d1c3, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 95: EOS prop d13a info record, datasize is 4 +event 95: currentvalue of d13a is 1 +event 96: EOS prop d1bf info record, datasize is 4 +event 96: Unknown EOS property d1bf, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 97: EOS prop d11d info record, datasize is 4 +event 97: currentvalue of d11d is 0 +event 98: EOS prop d1c7 info record, datasize is 4 +event 98: Unknown EOS property d1c7, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 99: EOS prop d1c4 info record, datasize is 4 +event 99: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 100: EOS prop d1cb info record, datasize is 52 +event 100: Unknown EOS property d1cb, datasize is 52 + 0: 34 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 03 + 19: 80 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 48 + 29: 00 + 30: 00 + 31: 00 + 32: 49 + 33: 00 + 34: 03 + 35: 80 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 03 + 41: 00 + 42: 00 + 43: 00 + 44: 4b + 45: 00 + 46: 00 + 47: 00 + 48: 4c + 49: 00 + 50: 03 + 51: 80 +event 101: EOS prop d1df info record, datasize is 4 +event 101: Unknown EOS property d1df, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 102: EOS prop d1dc info record, datasize is 4 +event 102: currentvalue of d1dc is 0 +event 103: EOS prop d1c0 info record, datasize is 4 +event 103: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 104: EOS prop d136 info record, datasize is 4 +event 104: Unknown EOS property d136, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 105: EOS prop d134 info record, datasize is 24 +event 105: Unknown EOS property d134, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 0a + 17: 00 + 18: 00 + 19: 00 + 20: 0a + 21: 00 + 22: 00 + 23: 00 +event 106: EOS prop d135 info record, datasize is 4 +event 106: Unknown EOS property d135, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 107: EOS prop d140 info record, datasize is 48 +event 107: Unknown EOS property d140, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 04 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 00 + 47: 04 +event 108: EOS prop d141 info record, datasize is 48 +event 108: Unknown EOS property d141, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 04 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 00 + 47: 04 +event 109: EOS prop d142 info record, datasize is 48 +event 109: Unknown EOS property d142, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 04 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 00 + 47: 04 +event 110: EOS prop d143 info record, datasize is 48 +event 110: Unknown EOS property d143, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 04 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 00 + 47: 04 +event 111: EOS prop d144 info record, datasize is 48 +event 111: Unknown EOS property d144, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 04 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 00 + 47: 04 +event 112: EOS prop d14a info record, datasize is 4 +event 112: Unknown EOS property d14a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 113: EOS prop d149 info record, datasize is 4 +event 113: Unknown EOS property d149, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 114: EOS prop d13e info record, datasize is 20 +event 114: Unknown EOS property d13e, datasize is 20 + 0: 14 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 +event 115: EOS prop d19a info record, datasize is 4 +event 115: Unknown EOS property d19a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 116: EOS prop d13b info record, datasize is 4 +event 116: Unknown EOS property d13b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 117: EOS prop d1a3 info record, datasize is 4 +event 117: Unknown EOS property d1a3, datasize is 4, using uint32 + 0: 0x 0 +event 117: currentvalue of d1a3 is 0 +event 118: EOS prop d19f info record, datasize is 4 +event 118: Unknown EOS property d19f, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 119: EOS prop d124 info record, datasize is 4 +event 119: Unknown EOS property d124, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 120: EOS prop d127 info record, datasize is 8 +event 120: Unknown EOS property d127, datasize is 8 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 121: EOS prop d167 info record, datasize is 16 +event 121: Unknown EOS property d167, datasize is 16 + 0: 10 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: e8 + 9: 03 + 10: 00 + 11: 00 + 12: e8 + 13: 03 + 14: 00 + 15: 00 +event 122: EOS prop d1c6 info record, datasize is 4 +event 122: Unknown EOS property d1c6, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 123: EOS prop d17d info record, datasize is 12 +event 123: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 14 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 124: EOS prop d125 info record, datasize is 16 +event 124: Unknown EOS property d125, datasize is 16 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 +event 125: EOS prop d103 desc record, datasize 40, propxtype 3 +event 125: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 10. +event 125: suppval[0] of d103 is 0x0. +event 125: suppval[1] of d103 is 0x48. +event 125: suppval[2] of d103 is 0x50. +event 125: suppval[3] of d103 is 0x58. +event 125: suppval[4] of d103 is 0x60. +event 125: suppval[5] of d103 is 0x68. +event 125: suppval[6] of d103 is 0x70. +event 125: suppval[7] of d103 is 0x78. +event 125: suppval[8] of d103 is 0x80. +event 125: suppval[9] of d103 is 0x88. +event 126: EOS prop d105 desc record, datasize 0, propxtype 1 +event 126: propxtype is 1 for d105, unhandled, size 20 +event 127: EOS prop d11b desc record, datasize 0, propxtype 1 +event 127: propxtype is 1 for d11b, unhandled, size 20 +event 128: EOS prop d11b desc record, datasize 0, propxtype 1 +event 128: propxtype is 1 for d11b, unhandled, size 20 +event 129: EOS prop d114 desc record, datasize 0, propxtype 1 +event 129: propxtype is 1 for d114, unhandled, size 20 +event 130: EOS prop d114 desc record, datasize 0, propxtype 1 +event 130: propxtype is 1 for d114, unhandled, size 20 +event 131: EOS prop d116 desc record, datasize 0, propxtype 1 +event 131: propxtype is 1 for d116, unhandled, size 20 +event 132: EOS prop d111 desc record, datasize 0, propxtype 1 +event 132: propxtype is 1 for d111, unhandled, size 20 +event 133: EOS prop d112 desc record, datasize 0, propxtype 1 +event 133: propxtype is 1 for d112, unhandled, size 20 +event 134: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 134: propxtype is 1 for d1a8, unhandled, size 20 +event 135: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 135: propxtype is 1 for d1ab, unhandled, size 20 +event 136: EOS prop d147 desc record, datasize 0, propxtype 1 +event 136: propdesc d147, default value not found. +event 137: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 137: propdesc d1ad, default value not found. +event 138: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 138: propdesc d1ae, default value not found. +event 139: EOS prop d1aa desc record, datasize 0, propxtype 1 +event 139: propxtype is 1 for d1aa, unhandled, size 20 +event 140: EOS prop d11e desc record, datasize 0, propxtype 1 +event 140: propxtype is 1 for d11e, unhandled, size 20 +event 141: EOS prop d11f desc record, datasize 0, propxtype 1 +event 141: propxtype is 1 for d11f, unhandled, size 20 +event 142: EOS prop d1af desc record, datasize 0, propxtype 1 +event 142: propdesc d1af, default value not found. +event 143: EOS prop d1d8 desc record, datasize 0, propxtype 1 +event 143: propxtype is 1 for d1d8, unhandled, size 20 +event 144: EOS prop d17f desc record, datasize 0, propxtype 1 +event 144: propdesc d17f, default value not found. +event 145: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 145: propxtype is 1 for d1b7, unhandled, size 20 +event 146: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 146: propxtype is 1 for d1c4, unhandled, size 20 +event 147: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 147: propxtype is 1 for d1c2, unhandled, size 20 +event 148: EOS prop d199 desc record, datasize 0, propxtype 1 +event 148: propxtype is 1 for d199, unhandled, size 20 +event 149: EOS prop d138 desc record, datasize 0, propxtype 1 +event 149: propxtype is 1 for d138, unhandled, size 20 +event 150: EOS prop d139 desc record, datasize 0, propxtype 1 +event 150: propxtype is 1 for d139, unhandled, size 20 +event 151: EOS prop d13b desc record, datasize 0, propxtype 1 +event 151: propxtype is 1 for d13b, unhandled, size 20 +event 152: EOS prop d13c desc record, datasize 0, propxtype 1 +event 152: propxtype is 1 for d13c, unhandled, size 20 +event 153: EOS prop d19d desc record, datasize 0, propxtype 1 +event 153: propdesc d19d, default value not found. +event 154: EOS prop d19a desc record, datasize 0, propxtype 1 +event 154: propxtype is 1 for d19a, unhandled, size 20 +event 155: EOS prop d19c desc record, datasize 0, propxtype 1 +event 155: propdesc d19c, default value not found. +event 156: EOS prop d14c desc record, datasize 0, propxtype 1 +event 156: propdesc d14c, default value not found. +event 157: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 157: propxtype is 1 for d1bd, unhandled, size 20 +event 158: EOS prop d19f desc record, datasize 0, propxtype 1 +event 158: propxtype is 1 for d19f, unhandled, size 20 +event 159: EOS prop d124 desc record, datasize 0, propxtype 1 +event 159: propxtype is 1 for d124, unhandled, size 20 +event 160: EOS prop d115 desc record, datasize 0, propxtype 7 +event 160: propxtype is 7 for d115, unhandled, size 20 +event 161: EOS prop d110 desc record, datasize 44, propxtype 3 +event 161: propxtype is 3, prop is 0xd110, data type is 0x0002, propxcnt is 11. +event 161: suppval[0] of d110 is 0x87. +event 161: suppval[1] of d110 is 0x81. +event 161: suppval[2] of d110 is 0x82. +event 161: suppval[3] of d110 is 0x83. +event 161: suppval[4] of d110 is 0x88. +event 161: suppval[5] of d110 is 0x84. +event 161: suppval[6] of d110 is 0x85. +event 161: suppval[7] of d110 is 0x86. +event 161: suppval[8] of d110 is 0x21. +event 161: suppval[9] of d110 is 0x22. +event 161: suppval[10] of d110 is 0x23. +event 162: EOS prop d170 desc record, datasize 0, propxtype 7 +event 162: propdesc d170, default value not found. +event 163: EOS prop d170 desc record, datasize 0, propxtype 7 +event 163: propdesc d170, default value not found. +event 164: EOS prop d171 desc record, datasize 0, propxtype 7 +event 164: propdesc d171, default value not found. +event 165: EOS prop d171 desc record, datasize 0, propxtype 7 +event 165: propdesc d171, default value not found. +event 166: EOS prop d172 desc record, datasize 0, propxtype 7 +event 166: propdesc d172, default value not found. +event 167: EOS prop d172 desc record, datasize 0, propxtype 7 +event 167: propdesc d172, default value not found. +event 168: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 168: propxtype is 7 for d1a0, unhandled, size 20 +event 169: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 169: propxtype is 7 for d1a0, unhandled, size 20 +event 170: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 170: propxtype is 7 for d1a0, unhandled, size 20 +event 171: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 171: propxtype is 7 for d1a0, unhandled, size 20 +event 172: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 172: propxtype is 7 for d1a1, unhandled, size 20 +event 173: EOS prop d1a7 desc record, datasize 0, propxtype 7 +event 173: propxtype is 7 for d1a7, unhandled, size 20 +event 174: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 174: propdesc d1a2, default value not found. +event 175: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 175: propxtype is 7 for d1b2, unhandled, size 20 +event 176: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 176: propxtype is 7 for d1b3, unhandled, size 20 +event 177: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 177: propdesc d1b5, default value not found. +event 178: EOS prop d146 desc record, datasize 0, propxtype 7 +event 178: propdesc d146, default value not found. +event 179: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 179: propdesc d1d0, default value not found. +event 180: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 180: propdesc d1d1, default value not found. +event 181: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 181: propdesc d1d3, default value not found. +event 182: EOS prop d1cb desc record, datasize 0, propxtype 7 +event 182: propxtype is 7 for d1cb, unhandled, size 20 +event 183: EOS prop d14d desc record, datasize 0, propxtype 7 +event 183: propdesc d14d, default value not found. +event 184: EOS prop d196 desc record, datasize 0, propxtype 7 +event 184: propxtype is 7 for d196, unhandled, size 20 +event 185: EOS prop d177 desc record, datasize 0, propxtype 7 +event 185: propxtype is 7 for d177, unhandled, size 20 +event 186: EOS prop d1db desc record, datasize 0, propxtype 7 +event 186: propdesc d1db, default value not found. +event 187: EOS prop d1a4 desc record, datasize 0, propxtype 7 +event 187: propxtype is 7 for d1a4, unhandled, size 20 +event 188: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 188: propxtype is 7 for d1bf, unhandled, size 20 +event 189: EOS prop d108 desc record, datasize 12, propxtype 3 +event 189: propxtype is 3, prop is 0xd108, data type is 0x0004, propxcnt is 3. +event 189: suppval[0] of d108 is 0x0. +event 189: suppval[1] of d108 is 0x2. +event 189: suppval[2] of d108 is 0x1. +event 190: EOS prop d106 desc record, datasize 28, propxtype 3 +event 190: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 7. +event 190: suppval[0] of d106 is 0x0. +event 190: suppval[1] of d106 is 0x1. +event 190: suppval[2] of d106 is 0x13. +event 190: suppval[3] of d106 is 0x14. +event 190: suppval[4] of d106 is 0x10. +event 190: suppval[5] of d106 is 0x11. +event 190: suppval[6] of d106 is 0x7. +event 191: EOS prop d107 desc record, datasize 16, propxtype 3 +event 191: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 4. +event 191: suppval[0] of d107 is 0x3. +event 191: suppval[1] of d107 is 0x4. +event 191: suppval[2] of d107 is 0x1. +event 191: suppval[3] of d107 is 0x5. +event 192: EOS prop d109 desc record, datasize 36, propxtype 3 +event 192: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 9. +event 192: suppval[0] of d109 is 0x0. +event 192: suppval[1] of d109 is 0x17. +event 192: suppval[2] of d109 is 0x1. +event 192: suppval[3] of d109 is 0x8. +event 192: suppval[4] of d109 is 0x2. +event 192: suppval[5] of d109 is 0x3. +event 192: suppval[6] of d109 is 0x4. +event 192: suppval[7] of d109 is 0x5. +event 192: suppval[8] of d109 is 0x6. +event 193: EOS prop d10a desc record, datasize 304, propxtype 3 +event 193: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +event 193: suppval[0] of d10a is 0x9c4. +event 193: suppval[1] of d10a is 0xa28. +event 193: suppval[2] of d10a is 0xa8c. +event 193: suppval[3] of d10a is 0xaf0. +event 193: suppval[4] of d10a is 0xb54. +event 193: suppval[5] of d10a is 0xbb8. +event 193: suppval[6] of d10a is 0xc1c. +event 193: suppval[7] of d10a is 0xc80. +event 193: suppval[8] of d10a is 0xce4. +event 193: suppval[9] of d10a is 0xd48. +event 193: suppval[10] of d10a is 0xdac. +event 193: suppval[11] of d10a is 0xe10. +event 193: suppval[12] of d10a is 0xe74. +event 193: suppval[13] of d10a is 0xed8. +event 193: suppval[14] of d10a is 0xf3c. +event 193: suppval[15] of d10a is 0xfa0. +event 193: suppval[16] of d10a is 0x1004. +event 193: suppval[17] of d10a is 0x1068. +event 193: suppval[18] of d10a is 0x10cc. +event 193: suppval[19] of d10a is 0x1130. +event 193: suppval[20] of d10a is 0x1194. +event 193: suppval[21] of d10a is 0x11f8. +event 193: suppval[22] of d10a is 0x125c. +event 193: suppval[23] of d10a is 0x12c0. +event 193: suppval[24] of d10a is 0x1324. +event 193: suppval[25] of d10a is 0x1388. +event 193: suppval[26] of d10a is 0x13ec. +event 193: suppval[27] of d10a is 0x1450. +event 193: suppval[28] of d10a is 0x14b4. +event 193: suppval[29] of d10a is 0x1518. +event 193: suppval[30] of d10a is 0x157c. +event 193: suppval[31] of d10a is 0x15e0. +event 193: suppval[32] of d10a is 0x1644. +event 193: suppval[33] of d10a is 0x16a8. +event 193: suppval[34] of d10a is 0x170c. +event 193: suppval[35] of d10a is 0x1770. +event 193: suppval[36] of d10a is 0x17d4. +event 193: suppval[37] of d10a is 0x1838. +event 193: suppval[38] of d10a is 0x189c. +event 193: suppval[39] of d10a is 0x1900. +event 193: suppval[40] of d10a is 0x1964. +event 193: suppval[41] of d10a is 0x19c8. +event 193: suppval[42] of d10a is 0x1a2c. +event 193: suppval[43] of d10a is 0x1a90. +event 193: suppval[44] of d10a is 0x1af4. +event 193: suppval[45] of d10a is 0x1b58. +event 193: suppval[46] of d10a is 0x1bbc. +event 193: suppval[47] of d10a is 0x1c20. +event 193: suppval[48] of d10a is 0x1c84. +event 193: suppval[49] of d10a is 0x1ce8. +event 193: suppval[50] of d10a is 0x1d4c. +event 193: suppval[51] of d10a is 0x1db0. +event 193: suppval[52] of d10a is 0x1e14. +event 193: suppval[53] of d10a is 0x1e78. +event 193: suppval[54] of d10a is 0x1edc. +event 193: suppval[55] of d10a is 0x1f40. +event 193: suppval[56] of d10a is 0x1fa4. +event 193: suppval[57] of d10a is 0x2008. +event 193: suppval[58] of d10a is 0x206c. +event 193: suppval[59] of d10a is 0x20d0. +event 193: suppval[60] of d10a is 0x2134. +event 193: suppval[61] of d10a is 0x2198. +event 193: suppval[62] of d10a is 0x21fc. +event 193: suppval[63] of d10a is 0x2260. +event 193: suppval[64] of d10a is 0x22c4. +event 193: suppval[65] of d10a is 0x2328. +event 193: suppval[66] of d10a is 0x238c. +event 193: suppval[67] of d10a is 0x23f0. +event 193: suppval[68] of d10a is 0x2454. +event 193: suppval[69] of d10a is 0x24b8. +event 193: suppval[70] of d10a is 0x251c. +event 193: suppval[71] of d10a is 0x2580. +event 193: suppval[72] of d10a is 0x25e4. +event 193: suppval[73] of d10a is 0x2648. +event 193: suppval[74] of d10a is 0x26ac. +event 193: suppval[75] of d10a is 0x2710. +event 194: EOS prop d10b desc record, datasize 76, propxtype 3 +event 194: propxtype is 3, prop is 0xd10b, data type is 0x0005, propxcnt is 19. +event 194: suppval[0] of d10b is 0xfffffff7. +event 194: suppval[1] of d10b is 0xfffffff8. +event 194: suppval[2] of d10b is 0xfffffff9. +event 194: suppval[3] of d10b is 0xfffffffa. +event 194: suppval[4] of d10b is 0xfffffffb. +event 194: suppval[5] of d10b is 0xfffffffc. +event 194: suppval[6] of d10b is 0xfffffffd. +event 194: suppval[7] of d10b is 0xfffffffe. +event 194: suppval[8] of d10b is 0xffffffff. +event 194: suppval[9] of d10b is 0x0. +event 194: suppval[10] of d10b is 0x1. +event 194: suppval[11] of d10b is 0x2. +event 194: suppval[12] of d10b is 0x3. +event 194: suppval[13] of d10b is 0x4. +event 194: suppval[14] of d10b is 0x5. +event 194: suppval[15] of d10b is 0x6. +event 194: suppval[16] of d10b is 0x7. +event 194: suppval[17] of d10b is 0x8. +event 194: suppval[18] of d10b is 0x9. +event 195: EOS prop d10c desc record, datasize 76, propxtype 3 +event 195: propxtype is 3, prop is 0xd10c, data type is 0x0005, propxcnt is 19. +event 195: suppval[0] of d10c is 0xfffffff7. +event 195: suppval[1] of d10c is 0xfffffff8. +event 195: suppval[2] of d10c is 0xfffffff9. +event 195: suppval[3] of d10c is 0xfffffffa. +event 195: suppval[4] of d10c is 0xfffffffb. +event 195: suppval[5] of d10c is 0xfffffffc. +event 195: suppval[6] of d10c is 0xfffffffd. +event 195: suppval[7] of d10c is 0xfffffffe. +event 195: suppval[8] of d10c is 0xffffffff. +event 195: suppval[9] of d10c is 0x0. +event 195: suppval[10] of d10c is 0x1. +event 195: suppval[11] of d10c is 0x2. +event 195: suppval[12] of d10c is 0x3. +event 195: suppval[13] of d10c is 0x4. +event 195: suppval[14] of d10c is 0x5. +event 195: suppval[15] of d10c is 0x6. +event 195: suppval[16] of d10c is 0x7. +event 195: suppval[17] of d10c is 0x8. +event 195: suppval[18] of d10c is 0x9. +event 196: EOS prop d10d desc record, datasize 16, propxtype 3 +event 196: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +event 196: suppval[0] of d10d is 0x0. +event 196: suppval[1] of d10d is 0x1. +event 196: suppval[2] of d10d is 0x2. +event 196: suppval[3] of d10d is 0x3. +event 197: EOS prop d10e desc record, datasize 16, propxtype 3 +event 197: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +event 197: suppval[0] of d10e is 0x0. +event 197: suppval[1] of d10e is 0x1. +event 197: suppval[2] of d10e is 0x2. +event 197: suppval[3] of d10e is 0x3. +event 198: EOS prop d10f desc record, datasize 8, propxtype 3 +event 198: propxtype is 3, prop is 0xd10f, data type is 0x0004, propxcnt is 2. +event 198: suppval[0] of d10f is 0x1. +event 198: suppval[1] of d10f is 0x2. +event 199: EOS prop d101 desc record, datasize 76, propxtype 3 +event 199: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 19. +event 199: suppval[0] of d101 is 0x20. +event 199: suppval[1] of d101 is 0x23. +event 199: suppval[2] of d101 is 0x25. +event 199: suppval[3] of d101 is 0x28. +event 199: suppval[4] of d101 is 0x2b. +event 199: suppval[5] of d101 is 0x2d. +event 199: suppval[6] of d101 is 0x30. +event 199: suppval[7] of d101 is 0x33. +event 199: suppval[8] of d101 is 0x35. +event 199: suppval[9] of d101 is 0x38. +event 199: suppval[10] of d101 is 0x3b. +event 199: suppval[11] of d101 is 0x3d. +event 199: suppval[12] of d101 is 0x40. +event 199: suppval[13] of d101 is 0x43. +event 199: suppval[14] of d101 is 0x45. +event 199: suppval[15] of d101 is 0x48. +event 199: suppval[16] of d101 is 0x4b. +event 199: suppval[17] of d101 is 0x4d. +event 199: suppval[18] of d101 is 0x50. +event 200: EOS prop d102 desc record, datasize 212, propxtype 3 +event 200: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 53. +event 200: suppval[0] of d102 is 0xc. +event 200: suppval[1] of d102 is 0x10. +event 200: suppval[2] of d102 is 0x13. +event 200: suppval[3] of d102 is 0x15. +event 200: suppval[4] of d102 is 0x18. +event 200: suppval[5] of d102 is 0x1b. +event 200: suppval[6] of d102 is 0x1d. +event 200: suppval[7] of d102 is 0x20. +event 200: suppval[8] of d102 is 0x23. +event 200: suppval[9] of d102 is 0x25. +event 200: suppval[10] of d102 is 0x28. +event 200: suppval[11] of d102 is 0x2b. +event 200: suppval[12] of d102 is 0x2d. +event 200: suppval[13] of d102 is 0x30. +event 200: suppval[14] of d102 is 0x33. +event 200: suppval[15] of d102 is 0x35. +event 200: suppval[16] of d102 is 0x38. +event 200: suppval[17] of d102 is 0x3b. +event 200: suppval[18] of d102 is 0x3d. +event 200: suppval[19] of d102 is 0x40. +event 200: suppval[20] of d102 is 0x43. +event 200: suppval[21] of d102 is 0x45. +event 200: suppval[22] of d102 is 0x48. +event 200: suppval[23] of d102 is 0x4b. +event 200: suppval[24] of d102 is 0x4d. +event 200: suppval[25] of d102 is 0x50. +event 200: suppval[26] of d102 is 0x53. +event 200: suppval[27] of d102 is 0x55. +event 200: suppval[28] of d102 is 0x58. +event 200: suppval[29] of d102 is 0x5b. +event 200: suppval[30] of d102 is 0x5d. +event 200: suppval[31] of d102 is 0x60. +event 200: suppval[32] of d102 is 0x63. +event 200: suppval[33] of d102 is 0x65. +event 200: suppval[34] of d102 is 0x68. +event 200: suppval[35] of d102 is 0x6b. +event 200: suppval[36] of d102 is 0x6d. +event 200: suppval[37] of d102 is 0x70. +event 200: suppval[38] of d102 is 0x73. +event 200: suppval[39] of d102 is 0x75. +event 200: suppval[40] of d102 is 0x78. +event 200: suppval[41] of d102 is 0x7b. +event 200: suppval[42] of d102 is 0x7d. +event 200: suppval[43] of d102 is 0x80. +event 200: suppval[44] of d102 is 0x83. +event 200: suppval[45] of d102 is 0x85. +event 200: suppval[46] of d102 is 0x88. +event 200: suppval[47] of d102 is 0x8b. +event 200: suppval[48] of d102 is 0x8d. +event 200: suppval[49] of d102 is 0x90. +event 200: suppval[50] of d102 is 0x93. +event 200: suppval[51] of d102 is 0x95. +event 200: suppval[52] of d102 is 0x98. +event 201: EOS prop d104 desc record, datasize 0, propxtype 3 +event 202: EOS prop d17d desc record, datasize 396, propxtype 3 +event 202: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +event 202: data type 0x0000 of d17d unhandled, size 12, raw values: + 0: 0x c + 1: 0x 21 + 2: 0x 30c + 3: 0x c + 4: 0x 1 + 5: 0x 2fd + 6: 0x c + 7: 0x 2 + 8: 0x 2d0 + 9: 0x c + 10: 0x 3 + 11: 0x 294 + 12: 0x c + 13: 0x 4 + 14: 0x 258 + 15: 0x c + 16: 0x 5 + 17: 0x 23a + 18: 0x c + 19: 0x 6 + 20: 0x 21c + 21: 0x c + 22: 0x 7 + 23: 0x 1e0 + 24: 0x c + 25: 0x 8 + 26: 0x 1a4 + 27: 0x c + 28: 0x 9 + 29: 0x 186 + 30: 0x c + 31: 0x a + 32: 0x 168 + 33: 0x c + 34: 0x b + 35: 0x 159 + 36: 0x c + 37: 0x c + 38: 0x 14a + 39: 0x c + 40: 0x d + 41: 0x 12c + 42: 0x c + 43: 0x e + 44: 0x 10e + 45: 0x c + 46: 0x f + 47: 0x f0 + 48: 0x c + 49: 0x 10 + 50: 0x d2 + 51: 0x c + 52: 0x 11 + 53: 0x b4 + 54: 0x c + 55: 0x 12 + 56: 0x 78 + 57: 0x c + 58: 0x 13 + 59: 0x 3c + 60: 0x c + 61: 0x 14 + 62: 0x 0 + 63: 0x c + 64: 0x 15 + 65: 0xffffffc4 + 66: 0x c + 67: 0x 16 + 68: 0xffffff88 + 69: 0x c + 70: 0x 17 + 71: 0xffffff4c + 72: 0x c + 73: 0x 18 + 74: 0xffffff2e + 75: 0x c + 76: 0x 1a + 77: 0xffffff10 + 78: 0x c + 79: 0x 1b + 80: 0xfffffed4 + 81: 0x c + 82: 0x 1c + 83: 0xfffffe98 + 84: 0x c + 85: 0x 1d + 86: 0xfffffe5c + 87: 0x c + 88: 0x 1e + 89: 0xfffffe20 + 90: 0x c + 91: 0x 1f + 92: 0xfffffde4 + 93: 0x c + 94: 0x 20 + 95: 0xfffffda8 + 96: 0x c + 97: 0xffffffff + 98: 0x 0 +event 203: EOS prop d17e desc record, datasize 8, propxtype 3 +event 203: propxtype is 3, prop is 0xd17e, data type is 0x0006, propxcnt is 2. +event 203: suppval[0] of d17e is 0x0. +event 203: suppval[1] of d17e is 0x1. +event 204: EOS prop d17c desc record, datasize 0, propxtype 7 +event 204: propxtype is 7 for d17c, unhandled, size 20 +event 205: EOS prop d121 desc record, datasize 196, propxtype 3 +event 205: propxtype is 3, prop is 0xd121, data type is 0x0004, propxcnt is 9. +event 205: suppval[0] of d121 is 0x300. +event 205: suppval[1] of d121 is 0x200. +event 205: suppval[2] of d121 is 0x1300. +event 205: suppval[3] of d121 is 0x1200. +event 205: suppval[4] of d121 is 0xd300. +event 205: suppval[5] of d121 is 0xd200. +event 205: suppval[6] of d121 is 0xe300. +event 205: suppval[7] of d121 is 0x403. +event 205: suppval[8] of d121 is 0x400. +event 206: EOS prop d122 desc record, datasize 196, propxtype 3 +event 206: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 9. +event 206: suppval[0] of d122 is 0x300. +event 206: suppval[1] of d122 is 0x200. +event 206: suppval[2] of d122 is 0x1300. +event 206: suppval[3] of d122 is 0x1200. +event 206: suppval[4] of d122 is 0xd300. +event 206: suppval[5] of d122 is 0xd200. +event 206: suppval[6] of d122 is 0xe300. +event 206: suppval[7] of d122 is 0x403. +event 206: suppval[8] of d122 is 0x400. +event 207: EOS prop d120 desc record, datasize 196, propxtype 3 +event 207: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 9. +event 207: suppval[0] of d120 is 0x300. +event 207: suppval[1] of d120 is 0x200. +event 207: suppval[2] of d120 is 0x1300. +event 207: suppval[3] of d120 is 0x1200. +event 207: suppval[4] of d120 is 0xd300. +event 207: suppval[5] of d120 is 0xd200. +event 207: suppval[6] of d120 is 0xe300. +event 207: suppval[7] of d120 is 0x403. +event 207: suppval[8] of d120 is 0x400. +event 208: EOS prop d11c desc record, datasize 4, propxtype 3 +event 208: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 1. +event 208: suppval[0] of d11c is 0x4. +event 209: EOS prop d1b0 desc record, datasize 48, propxtype 3 +event 209: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 12. +event 209: suppval[0] of d1b0 is 0x0. +event 209: suppval[1] of d1b0 is 0x1. +event 209: suppval[2] of d1b0 is 0x2. +event 209: suppval[3] of d1b0 is 0x3. +event 209: suppval[4] of d1b0 is 0x4. +event 209: suppval[5] of d1b0 is 0x5. +event 209: suppval[6] of d1b0 is 0x6. +event 209: suppval[7] of d1b0 is 0x7. +event 209: suppval[8] of d1b0 is 0x8. +event 209: suppval[9] of d1b0 is 0x9. +event 209: suppval[10] of d1b0 is 0xa. +event 209: suppval[11] of d1b0 is 0xb. +event 210: EOS prop d1b1 desc record, datasize 8, propxtype 3 +event 210: propxtype is 3, prop is 0xd1b1, data type is 0x0004, propxcnt is 2. +event 210: suppval[0] of d1b1 is 0x1. +event 210: suppval[1] of d1b1 is 0x0. +event 211: EOS prop d1b6 desc record, datasize 304, propxtype 3 +event 211: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +event 211: suppval[0] of d1b6 is 0x9c4. +event 211: suppval[1] of d1b6 is 0xa28. +event 211: suppval[2] of d1b6 is 0xa8c. +event 211: suppval[3] of d1b6 is 0xaf0. +event 211: suppval[4] of d1b6 is 0xb54. +event 211: suppval[5] of d1b6 is 0xbb8. +event 211: suppval[6] of d1b6 is 0xc1c. +event 211: suppval[7] of d1b6 is 0xc80. +event 211: suppval[8] of d1b6 is 0xce4. +event 211: suppval[9] of d1b6 is 0xd48. +event 211: suppval[10] of d1b6 is 0xdac. +event 211: suppval[11] of d1b6 is 0xe10. +event 211: suppval[12] of d1b6 is 0xe74. +event 211: suppval[13] of d1b6 is 0xed8. +event 211: suppval[14] of d1b6 is 0xf3c. +event 211: suppval[15] of d1b6 is 0xfa0. +event 211: suppval[16] of d1b6 is 0x1004. +event 211: suppval[17] of d1b6 is 0x1068. +event 211: suppval[18] of d1b6 is 0x10cc. +event 211: suppval[19] of d1b6 is 0x1130. +event 211: suppval[20] of d1b6 is 0x1194. +event 211: suppval[21] of d1b6 is 0x11f8. +event 211: suppval[22] of d1b6 is 0x125c. +event 211: suppval[23] of d1b6 is 0x12c0. +event 211: suppval[24] of d1b6 is 0x1324. +event 211: suppval[25] of d1b6 is 0x1388. +event 211: suppval[26] of d1b6 is 0x13ec. +event 211: suppval[27] of d1b6 is 0x1450. +event 211: suppval[28] of d1b6 is 0x14b4. +event 211: suppval[29] of d1b6 is 0x1518. +event 211: suppval[30] of d1b6 is 0x157c. +event 211: suppval[31] of d1b6 is 0x15e0. +event 211: suppval[32] of d1b6 is 0x1644. +event 211: suppval[33] of d1b6 is 0x16a8. +event 211: suppval[34] of d1b6 is 0x170c. +event 211: suppval[35] of d1b6 is 0x1770. +event 211: suppval[36] of d1b6 is 0x17d4. +event 211: suppval[37] of d1b6 is 0x1838. +event 211: suppval[38] of d1b6 is 0x189c. +event 211: suppval[39] of d1b6 is 0x1900. +event 211: suppval[40] of d1b6 is 0x1964. +event 211: suppval[41] of d1b6 is 0x19c8. +event 211: suppval[42] of d1b6 is 0x1a2c. +event 211: suppval[43] of d1b6 is 0x1a90. +event 211: suppval[44] of d1b6 is 0x1af4. +event 211: suppval[45] of d1b6 is 0x1b58. +event 211: suppval[46] of d1b6 is 0x1bbc. +event 211: suppval[47] of d1b6 is 0x1c20. +event 211: suppval[48] of d1b6 is 0x1c84. +event 211: suppval[49] of d1b6 is 0x1ce8. +event 211: suppval[50] of d1b6 is 0x1d4c. +event 211: suppval[51] of d1b6 is 0x1db0. +event 211: suppval[52] of d1b6 is 0x1e14. +event 211: suppval[53] of d1b6 is 0x1e78. +event 211: suppval[54] of d1b6 is 0x1edc. +event 211: suppval[55] of d1b6 is 0x1f40. +event 211: suppval[56] of d1b6 is 0x1fa4. +event 211: suppval[57] of d1b6 is 0x2008. +event 211: suppval[58] of d1b6 is 0x206c. +event 211: suppval[59] of d1b6 is 0x20d0. +event 211: suppval[60] of d1b6 is 0x2134. +event 211: suppval[61] of d1b6 is 0x2198. +event 211: suppval[62] of d1b6 is 0x21fc. +event 211: suppval[63] of d1b6 is 0x2260. +event 211: suppval[64] of d1b6 is 0x22c4. +event 211: suppval[65] of d1b6 is 0x2328. +event 211: suppval[66] of d1b6 is 0x238c. +event 211: suppval[67] of d1b6 is 0x23f0. +event 211: suppval[68] of d1b6 is 0x2454. +event 211: suppval[69] of d1b6 is 0x24b8. +event 211: suppval[70] of d1b6 is 0x251c. +event 211: suppval[71] of d1b6 is 0x2580. +event 211: suppval[72] of d1b6 is 0x25e4. +event 211: suppval[73] of d1b6 is 0x2648. +event 211: suppval[74] of d1b6 is 0x26ac. +event 211: suppval[75] of d1b6 is 0x2710. +event 212: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 212: propdesc d1a9, default value not found. +event 213: EOS prop d1b4 desc record, datasize 40, propxtype 3 +event 213: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 10. +event 213: suppval[0] of d1b4 is 0x0. +event 213: suppval[1] of d1b4 is 0x17. +event 213: suppval[2] of d1b4 is 0x1. +event 213: suppval[3] of d1b4 is 0x8. +event 213: suppval[4] of d1b4 is 0x2. +event 213: suppval[5] of d1b4 is 0x3. +event 213: suppval[6] of d1b4 is 0x4. +event 213: suppval[7] of d1b4 is 0x5. +event 213: suppval[8] of d1b4 is 0x6. +event 213: suppval[9] of d1b4 is 0x8000. +event 214: EOS prop d1d9 desc record, datasize 28, propxtype 3 +event 214: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 7. +event 214: suppval[0] of d1d9 is 0x0. +event 214: suppval[1] of d1d9 is 0x3. +event 214: suppval[2] of d1d9 is 0x5. +event 214: suppval[3] of d1d9 is 0x8. +event 214: suppval[4] of d1d9 is 0xb. +event 214: suppval[5] of d1d9 is 0xd. +event 214: suppval[6] of d1d9 is 0x10. +event 215: EOS prop d1ba desc record, datasize 12, propxtype 3 +event 215: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 3. +event 215: suppval[0] of d1ba is 0x2. +event 215: suppval[1] of d1ba is 0x4. +event 215: suppval[2] of d1ba is 0x1. +event 216: EOS prop d1cd desc record, datasize 0, propxtype 3 +event 217: EOS prop d1bc desc record, datasize 12, propxtype 3 +event 217: propxtype is 3, prop is 0xd1bc, data type is 0x0006, propxcnt is 3. +event 217: suppval[0] of d1bc is 0x1. +event 217: suppval[1] of d1bc is 0x0. +event 217: suppval[2] of d1bc is 0x3. +event 218: EOS prop d1b8 desc record, datasize 0, propxtype 3 +event 219: EOS prop d1dc desc record, datasize 8, propxtype 3 +event 219: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 2. +event 219: suppval[0] of d1dc is 0x0. +event 219: suppval[1] of d1dc is 0x1. +event 220: EOS prop d1df desc record, datasize 0, propxtype 3 +event 221: EOS prop d1c1 desc record, datasize 4, propxtype 3 +event 221: propxtype is 3, prop is 0xd1c1, data type is 0x0006, propxcnt is 1. +event 221: suppval[0] of d1c1 is 0x3. +event 222: EOS prop d1c5 desc record, datasize 0, propxtype 3 +event 223: EOS prop d194 desc record, datasize 16, propxtype 3 +event 223: propxtype is 3, prop is 0xd194, data type is 0x0004, propxcnt is 4. +event 223: suppval[0] of d194 is 0x0. +event 223: suppval[1] of d194 is 0x2. +event 223: suppval[2] of d194 is 0x7. +event 223: suppval[3] of d194 is 0x1. +event 224: EOS prop d195 desc record, datasize 0, propxtype 3 +event 225: EOS prop d197 desc record, datasize 0, propxtype 3 +event 226: EOS prop d13a desc record, datasize 8, propxtype 3 +event 226: propxtype is 3, prop is 0xd13a, data type is 0x0006, propxcnt is 2. +event 226: suppval[0] of d13a is 0x0. +event 226: suppval[1] of d13a is 0x1. +event 227: EOS prop d13d desc record, datasize 0, propxtype 7 +event 227: propxtype is 7 for d13d, unhandled, size 20 +event 228: EOS prop d178 desc record, datasize 20, propxtype 3 +event 228: propxtype is 3, prop is 0xd178, data type is 0x0004, propxcnt is 5. +event 228: suppval[0] of d178 is 0x3. +event 228: suppval[1] of d178 is 0x1. +event 228: suppval[2] of d178 is 0x0. +event 228: suppval[3] of d178 is 0x2. +event 228: suppval[4] of d178 is 0x4. +event 229: EOS prop 0000 desc record, datasize 20, propxtype 3 +event 229: propxtype is 3, prop is 0x0000, data type is 0x0000, propxcnt is 5. +event 229: data type 0x0000 of 0 unhandled, size 3, raw values: + 0: 0x 3 + 1: 0x 1 + 2: 0x 0 + 3: 0x 2 + 4: 0x 4 +event 230: EOS prop d179 desc record, datasize 0, propxtype 3 +event 231: EOS prop d17a desc record, datasize 8, propxtype 3 +event 231: propxtype is 3, prop is 0xd17a, data type is 0x0000, propxcnt is 2. +event 231: data type 0x0000 of d17a unhandled, size 1, raw values: + 0: 0x 1 + 1: 0x 0 +event 232: EOS prop d17b desc record, datasize 0, propxtype 3 +event 233: EOS prop d1c9 desc record, datasize 8, propxtype 3 +event 233: propxtype is 3, prop is 0xd1c9, data type is 0x0006, propxcnt is 2. +event 233: suppval[0] of d1c9 is 0x1. +event 233: suppval[1] of d1c9 is 0x0. +event 234: EOS prop d175 desc record, datasize 0, propxtype 3 +event 235: EOS prop d14b desc record, datasize 4, propxtype 3 +event 235: propdesc d14b, default value not found. +event 236: EOS prop d13e desc record, datasize 0, propxtype 1 +event 236: propxtype is 1 for d13e, unhandled, size 20 +event 237: EOS prop d1c6 desc record, datasize 12, propxtype 3 +event 237: propxtype is 3, prop is 0xd1c6, data type is 0x0000, propxcnt is 3. +event 237: data type 0x0000 of d1c6 unhandled, size 0, raw values: + 0: 0x 0 + 1: 0x 1 + 2: 0x 2 +event 238: EOS prop d157 desc record, datasize 0, propxtype 7 +event 238: propxtype is 7 for d157, unhandled, size 20 +event 239: EOS prop d158 desc record, datasize 0, propxtype 7 +event 239: propxtype is 7 for d158, unhandled, size 20 +event 240: EOS prop d159 desc record, datasize 0, propxtype 7 +event 240: propxtype is 7 for d159, unhandled, size 20 +event 241: EOS prop d15a desc record, datasize 0, propxtype 7 +event 241: propxtype is 7 for d15a, unhandled, size 20 +event 242: EOS prop d15b desc record, datasize 0, propxtype 7 +event 242: propxtype is 7 for d15b, unhandled, size 20 +event 243: EOS prop d15c desc record, datasize 0, propxtype 7 +event 243: propxtype is 7 for d15c, unhandled, size 20 +event 244: EOS prop d15d desc record, datasize 0, propxtype 7 +event 244: propxtype is 7 for d15d, unhandled, size 20 +event 245: EOS prop d15e desc record, datasize 0, propxtype 7 +event 245: propxtype is 7 for d15e, unhandled, size 20 +event 246: EOS prop d163 desc record, datasize 0, propxtype 7 +event 246: propxtype is 7 for d163, unhandled, size 20 +event 247: EOS prop d164 desc record, datasize 0, propxtype 7 +event 247: propxtype is 7 for d164, unhandled, size 20 +event 248: EOS prop d165 desc record, datasize 0, propxtype 7 +event 248: propxtype is 7 for d165, unhandled, size 20 +event 249: EOS prop d149 desc record, datasize 0, propxtype 3 +event 250: unknown EOS event c19d + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 251: EOS prop d194 info record, datasize is 4 +event 251: currentvalue of d194 is 0 +event 252: EOS event OLCInfoChanged (size 90) + 0: 56 + 1: 00 + 2: 00 + 3: 00 + 4: ff + 5: 1f + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 01 + 11: 03 + 12: 98 + 13: 10 + 14: 00 + 15: 70 + 16: 00 + 17: 01 + 18: 01 + 19: 50 + 20: 20 + 21: 20 + 22: 00 + 23: 01 + 24: 01 + 25: 00 + 26: 50 + 27: 04 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 01 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 01 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 00 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + +event: c181 +event: 4003 +event: c183 +event: c184 +event: c185 +event: c186 +event: c187 +event: c188 +event: c189 +event: c18a +event: c18b +event: c18d +event: c18e +event: c18f +event: c190 +event: c191 +event: c1a0 +event: c1a1 +event: 4009 +deviceprop: d101 +deviceprop: d102 +deviceprop: d103 +deviceprop: d1a7 +deviceprop: d105 +deviceprop: d108 +deviceprop: d106 +deviceprop: d107 +deviceprop: d109 +deviceprop: d10a +deviceprop: d10b +deviceprop: d10c +deviceprop: d10d +deviceprop: d10e +deviceprop: d10f +deviceprop: d11b +deviceprop: d114 +deviceprop: d116 +deviceprop: d119 +deviceprop: d11a +deviceprop: d110 +deviceprop: d115 +deviceprop: d104 +deviceprop: d11d +deviceprop: d111 +deviceprop: d112 +deviceprop: d113 +deviceprop: d17c +deviceprop: d17d +deviceprop: d17e +deviceprop: d120 +deviceprop: d121 +deviceprop: d122 +deviceprop: d15d +deviceprop: d157 +deviceprop: d158 +deviceprop: d159 +deviceprop: d15a +deviceprop: d15b +deviceprop: d15c +deviceprop: d163 +deviceprop: d164 +deviceprop: d165 +deviceprop: d170 +deviceprop: d171 +deviceprop: d172 +deviceprop: d11c +deviceprop: d1a0 +deviceprop: d1a1 +deviceprop: d1a2 +deviceprop: d1a5 +deviceprop: d1a8 +deviceprop: d1ab +deviceprop: d1b0 +deviceprop: d1b1 +deviceprop: d1b2 +deviceprop: d1b3 +deviceprop: d1b4 +deviceprop: d1b5 +deviceprop: d1b6 +deviceprop: d1a9 +deviceprop: d146 +deviceprop: d147 +deviceprop: d1ad +deviceprop: d1ae +deviceprop: d1aa +deviceprop: d11e +deviceprop: d11f +deviceprop: d1af +deviceprop: d1d0 +deviceprop: d1d1 +deviceprop: d1d9 +deviceprop: d1d5 +deviceprop: d1ba +deviceprop: d1cd +deviceprop: d1bc +deviceprop: d1b8 +deviceprop: d1d3 +deviceprop: d1d8 +deviceprop: d17f +deviceprop: d1b7 +deviceprop: d1cb +deviceprop: d1db +deviceprop: d1dc +deviceprop: d1a3 +deviceprop: d1a4 +deviceprop: d1df +deviceprop: d1bd +deviceprop: d1c1 +deviceprop: d1c0 +deviceprop: d1bf +deviceprop: d1c4 +deviceprop: d1c2 +deviceprop: d1c5 +deviceprop: d194 +deviceprop: d195 +deviceprop: d196 +deviceprop: d197 +deviceprop: d198 +deviceprop: d1dd +deviceprop: d1c7 +deviceprop: d199 +deviceprop: d138 +deviceprop: d139 +deviceprop: d13a +deviceprop: d13b +deviceprop: d13c +deviceprop: d14d +deviceprop: d19d +deviceprop: d19a +deviceprop: d19c +deviceprop: d1c6 +deviceprop: d1c8 +deviceprop: d177 +deviceprop: d178 +deviceprop: d17b +deviceprop: d179 +deviceprop: d1c9 +deviceprop: d19f +deviceprop: d175 +deviceprop: d14c +deviceprop: d14b +deviceprop: d169 +deviceprop: d16a +deviceprop: d16b +deviceprop: d136 +deviceprop: d137 +deviceprop: d124 +deviceprop: d167 +deviceprop: d1a6 +unk: 0000 +unk: 0001 +unk: 0002 +unk: 0004 +unk: 0008 + + +event 0: EOS prop d115 info record, datasize is 1 +event 0: currentvalue of d115 is +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is +event 3: EOS prop d1af info record, datasize is 13 +event 3: currentvalue of d1af is 092071019017 +BAD: i 4, entries 4 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos30d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos30d.txt new file mode 100644 index 00000000..c8828045 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos30d.txt @@ -0,0 +1,62 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 30D + device version: 3-1.0.6 + serial number: 'nnnnnnnnn' +Vendor extension ID: 0x0000000b +Vendor extension version: 200 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1015 + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x100a + 0x1009 + 0x101b + 0x100c + 0x100d + 0x100b + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9107 + 0x9105 + 0x9117 + 0x9118 + 0x9116 + 0x910f + 0x9115 + 0x9110 + 0x9114 + 0x9113 + 0x9106 + 0x910a + 0x910b + 0x910c + 0x910e + 0x911a + 0x911b + 0x911c + 0x911d + 0x9108 + 0x911f + 0x9109 + 0x911e + 0x9120 + 0x9121 + 0x91fe + 0x91ff +Events Supported: + 0x4009 + 0xc101 +Device Properties Supported: + 0xd049 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos350d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos350d.txt new file mode 100644 index 00000000..ba0d8758 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos350d.txt @@ -0,0 +1,105 @@ +Manufacturer: Canon Inc. + model: Canon EOS 350D DIGITAL + device version: 3-0.0.0.1 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x9001 + 0x9002 + 0x9006 + 0x900e + 0x901b + 0x901c + 0x901e + 0x9021 + 0x100f + 0x901f +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc006 + 0xc007 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d +Device Properties Supported: + 0xd045 + 0xd002 + 0xd003 + 0xd02c + 0xd02d + 0xd049 + 0xd032 + 0xd031 + 0xd034 + 0xd033 + 0xd02e + 0xd02f + 0xd046 + 0xd047 + 0xd030 + 0xd04a + +Model: Canon EOS 350D DIGITAL + device version: 3-0.0.0.1 + serial number: (null) +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,5] value: 0 +Viewfinder Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 2 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2304,3456,6,0,0,0, + a[6] 2304,3456,11,0,0,0, + a[6] 1664,2496,9,0,0,0, + a[6] 1664,2496,14,0,0,0, + a[6] 1152,1728,10,0,0,0, + a[6] 1152,1728,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd02d:(read only) (type=0x4006) a[4] 119,0,159,0 +Property 0xd049:(read only) (type=0x6) 2147484041 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon EOS 350D DIGITAL' +Flash Memory(0xd031):(read only) (type=0x6) 1664942591 +UNIX Time(0xd034):(readwrite) (type=0x6) 1112115344 +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Property 0xd02e:(read only) (type=0x6) 1048576 +Property 0xd02f:(read only) (type=0x6) 64768 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd047:(read only) (type=0x4) 0 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos400d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos400d.txt new file mode 100644 index 00000000..ad9dddb4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos400d.txt @@ -0,0 +1,906 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon EOS 400D DIGITAL + device version: 3-1.0.4 + serial number: 'NNNNNNNNN' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1015 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x100a + 0x1009 + 0x101b + 0x100c + 0x100d + 0x100b + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9107 + 0x9105 + 0x9117 + 0x9118 + 0x9116 + 0x910f + 0x9115 + 0x9110 + 0x9114 + 0x9113 + 0x9106 + 0x910a + 0x910b + 0x910c + 0x910e + 0x911a + 0x911b + 0x911c + 0x911d + 0x9108 + 0x911f + 0x9109 + 0x911e + 0x9120 + 0x9121 + 0x91fe + 0x91ff + 0x901f +Events Supported: + 0x4009 + 0xc101 +Device Properties Supported: + 0xd045 + 0xd049 + 0xd04a + +Camera summary: +Model: Canon EOS 400D DIGITAL + device version: 3-1.1.1 + serial number: 000000000000000000000000xxxxxxxx +Vendor extension ID: 0x0000000b +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: CF + VolumeLabel: + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 4112781312 (3922 MB) + Free Space (Bytes): 3969277952 (3785 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 400D DIGITAL' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Model ID(0xd049):(read only) (type=0x6) 2147484214 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 + +/main/actions/focuslock + Label: Focus Lock + Type: TOGGLE + Current: 2 +/main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 +/main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1249471394 + Printable: Wed Aug 5 13:23:14 2009 +/main/settings/ownername + Label: Owner Name + Type: TEXT + Current: unknown +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% +/main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 121 +/main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: RAW + Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Choice: 7 RAW + Large Fine JPEG +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 1600 + Choice: 0 100 + Choice: 1 200 + Choice: 2 400 + Choice: 3 800 + Choice: 4 1600 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Cloudy + Choice: 3 Tungsten + Choice: 4 Fluorescent + Choice: 5 Flash + Choice: 6 Manual + Choice: 7 Shadow +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 -2 + Choice: 1 -1.6 + Choice: 2 -1.3 + Choice: 3 -1.0 + Choice: 4 -0.6 + Choice: 5 -0.3 + Choice: 6 0 + Choice: 7 0.3 + Choice: 8 0.6 + Choice: 9 1.0 + Choice: 10 1.3 + Choice: 11 1.6 + Choice: 12 2 +/main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Landscape + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 +/main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 2.8 + Choice: 0 2.8 + Choice: 1 3.2 + Choice: 2 3.5 + Choice: 3 4 + Choice: 4 4.5 + Choice: 5 5 + Choice: 6 5.6 + Choice: 7 6.3 + Choice: 8 7.1 + Choice: 9 8 + Choice: 10 9 + Choice: 11 10 + Choice: 12 11 + Choice: 13 13 + Choice: 14 14 + Choice: 15 16 + Choice: 16 18 + Choice: 17 20 + Choice: 18 22 + Choice: 19 25 + Choice: 20 29 + Choice: 21 32 +/main/other/d045 + Label: Event Emulate Mode + Type: MENU + Current: 2 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 +/main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 400D DIGITAL +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator +/main/other/d049 + Label: Model ID + Type: TEXT + Current: -2147483082 +/main/other/d04a + Label: PTP Property 0xd04a + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + + +Notes: +Auflösung ändern: + 00000000: 0c 00 00 00 01 00 10 91 23 00 00 00 + 00000000: 28 00 00 00 02 00 10 91 23 00 00 00 1c 00 00 00 +L-HQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 00 00 00 00 03 00 00 00 +L-LQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 00 00 00 00 02 00 00 00 +M-HQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 01 00 00 00 03 00 00 00 +M-LQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 01 00 00 00 02 00 00 00 +S-HQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 02 00 00 00 03 00 00 00 +S-LQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 02 00 00 00 02 00 00 00 +RAW+L-HQ + 00000010: 20 d1 00 00 02 00 00 00 10 00 00 00 06 00 00 00 + 00000020: 00 00 00 00 04 00 00 00 10 00 00 00 01 00 00 00 + 00000030: 00 00 00 00 03 00 00 00 +RAW + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 06 00 00 00 + 00000020: 00 00 00 00 04 00 00 00 + +Register: 0xd120 +Werte: +DWORD: Anzahl der nachfolgenden Formatdefinitionen (1 oder 2) + +Formatdefinition: +DWORD: Länge des Formats (0x10) +DWORD: Format: JPG:0x01 RAW:0x06 +DWORD: Auflösung L/RAW:0x00 M:0x01 S:0x02 +DWORD: Qualität HQ:0x03 LQ:0x02 RAW:0x04 + +================ + +Picturestyle ändern: + + 00000000: 0c 00 00 00 01 00 10 91 99 00 00 00 + 00000000: 30 00 00 00 02 00 10 91 99 00 00 00 24 00 00 00 + 00000010: 50 d1 00 00 1c 00 00 00 01 00 00 00 03 00 00 00 + 00000020: 02 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 + +Register: +0xd150 (Standard) +0xd151 (Portrait) +0xd152 (Landscape) +0xd153 (Neutral) +0xd154 (Faithful) +0xd155 (Monochrome) +0xd160 (User Def. 1) +0xd161 (User Def. 2) +0xd162 (User Def. 3) +DWORD: Länge des Style (0x1c) +DWORD: Contrast -4 bis +4 +DWORD: Sharpness 0 bis 7 +DWORD: Saturation -4 bis +4 +DWORD: Color tone -4 bis +4 +Wobei -1 wird durch 0xffffffff dargestellt. + +Bei Monochrome (0xd155) gilt: +DWORD: Länge des Style (0x1c) +DWORD: Contrast -4 bis +4 +DWORD: Sharpness 0 bis 7 +DWORD: Filter effect (None:0 Yellow:1 Orange:2 Red:3 Green:4) +DWORD: Toning effect (None:0 Sepia:1 Blue:2 Purple:3 Green:4) + +================ + +WB-Shift Blue/Amber + 00000000: 0c 00 00 00 01 00 10 91 45 0a 00 00 + 00000000: 18 00 00 00 02 00 10 91 45 0a 00 00 0c 00 00 00 + 00000010: 0b d1 00 00 01 00 00 00 +Register 0xd10b +Wertebereich: -9 bis +9 +DWORD: (0xfffffff7 bis 0x9) + +================ + +WB-Shift Magenta/Green + 00000000: 0c 00 00 00 01 00 10 91 46 0a 00 00 + 00000000: 18 00 00 00 02 00 10 91 46 0a 00 00 0c 00 00 00 + 00000010: 0c d1 00 00 00 00 00 00 +Register 0xd10c +Wertebereich: -9 bis +9 +DWORD: (0xfffffff7 bis 0x9) + + +0xd101: Av +0xd102: Tv +0xd103: ISO +0xd104: Exposure +0xd107: AE-Metering +0xd109: AWB +0xd10b: WB-Shift Blue/Amber +0xd10c: WB-Shift Magenta/Green +0xd110: Set Picture Style +0xd113: Clock +0xd115: Owner Name +0xd120: Format/Resolution/Quality +0xd150: Picturestyle +0xd151: Picturestyle +0xd152: Picturestyle +0xd153: Picturestyle +0xd154: Picturestyle +0xd155: Picturestyle +0xd160: Picturestyle +0xd161: Picturestyle +0xd162: Picturestyle + + +Format CF: + 00000000: 10 00 00 00 01 00 06 91 2c 00 00 00 01 00 00 00 + +===================== + +Aperture Value: + + 00000000: 0c 00 00 00 01 00 10 91 be 08 00 00 + 00000000: 18 00 00 00 02 00 10 91 be 08 00 00 0c 00 00 00 + 00000010: 01 d1 00 00 50 00 00 00 + +Register: 0xd101 +Value Range: 0x25-0x50 +DWORD: Table: +22: 0x50 +20: 0x4d +18: 0x4b +16: 0x48 +14: 0x45 +13: 0x43 +11: 0x40 +10: 0x3d +9: 0x3b +8: 0x38 +7,1: 0x35 +6,3: 0x33 +5,6: 0x30 +5,0: 0x2d +4,5: 0x2b +4: 0x28 +3,5: 0x25 + +===================== + +Shutter Speed: + + 00000000: 0c 00 00 00 01 00 10 91 59 01 00 00 + 00000000: 18 00 00 00 02 00 10 91 59 01 00 00 0c 00 00 00 + 00000010: 02 d1 00 00 73 00 00 00 + +Register: 0xd102 +Value Range: 0x1b-0x98 +DWORD: Table: +30": 0x10 +25": 0x13 +20": 0x15 +15": 0x18 +13": 0x1b +10": 0x1d + +8": 0x20 +6": 0x23 +5": 0x25 +4": 0x28 +3,2": 0x2b +2,5": 0x2d + +2": 0x30 +1,6": 0x33 +1,3": 0x35 +1": 0x38 +0,8": 0x3b +0,6": 0x3d + +0,5": 0x40 +0,4": 0x43 +0,3": 0x45 +4: 0x48 +5: 0x4b +6: 0x4d + +8: 0x50 +10: 0x53 +13: 0x55 +15: 0x58 +20: 0x5b +25: 0x5d + +30: 0x60 +40: 0x63 +50: 0x65 +60: 0x68 +80: 0x6b +100: 0x6d + +125: 0x70 +160: 0x73 +200: 0x75 +250: 0x78 +320: 0x7b +400: 0x7d + +500: 0x80 +640: 0x83 +800: 0x85 +1000: 0x88 +1250: 0x8b +1600: 0x8d + +2000: 0x90 +2500: 0x93 +3200: 0x95 +4000: 0x98 + +============================ + +ISO Value: + 00000000: 0c 00 00 00 01 00 10 91 36 00 00 00 + 00000000: 18 00 00 00 02 00 10 91 36 00 00 00 0c 00 00 00 + 00000010: 03 d1 00 00 68 00 00 00 + +Register: 0xd103 +Value Range: 100,200,400,800,1600 +DWORD: Table: +100:0x48 +200:0x50 +400:0x58 +800:0x60 +1600:0x68 + +============================ + +Exposure Value: + + 00000000: 18 00 00 00 02 00 10 91 41 00 00 00 0c 00 00 00 + 00000010: 04 d1 00 00 f8 00 00 00 + +Register: 0xd104 +Value Range: -2 to +2 +Table: ++2.0:0x10 ++1.6:0x0d ++1.5:0x0c ++1.3:0x0b ++1.0:0x08 ++0.6:0x05 ++0.5:0x04 ++0.3:0x03 + 0.0:0x00 +-0.3:0xfd +-0.5:0xfc +-0.6:0xfb +-1.0:0xf8 +-1.3:0xf5 +-1.5:0xf4 +-1.6:0xf3 +-2.0:0xf0 + +============================ + +AE Metering: + + 00000000: 0c 00 00 00 01 00 10 91 2c 00 00 00 + 00000000: 18 00 00 00 02 00 10 91 2c 00 00 00 0c 00 00 00 + 00000010: 07 d1 00 00 04 00 00 00 + +Register: 0xd107 +Value Range: 3-5 +DWORD: Table: +Evaluative Metering: 0x03 +Partial Metering: 0x04 +Center Weighted average metering: 0x05 + +============================ + +Auto White Balance: + 00000000: 0c 00 00 00 01 00 10 91 2a 00 00 00 + 00000000: 18 00 00 00 02 00 10 91 2a 00 00 00 0c 00 00 00 + 00000010: 09 d1 00 00 08 00 00 00 + +Register: 0xd109 +Value Range: 0-7,8 +DWORD: Table +Auto: 0x00 +Daylight: 0x01 +Shade: 0x02 +Cloudy: 0x03 +Tungsten Light: 0x04 +White fluorescent light: 0x05 +Flash: 0x06 +Custom: 0x08 + +================ +WB-Shift Blue/Amber + 00000000: 0c 00 00 00 01 00 10 91 45 0a 00 00 + 00000000: 18 00 00 00 02 00 10 91 45 0a 00 00 0c 00 00 00 + 00000010: 0b d1 00 00 01 00 00 00 +Register: 0xd10b +Value Range: -9 to +9 +DWORD: (0xfffffff7 to 0x9) + +================ + +WB-Shift Magenta/Green + 00000000: 0c 00 00 00 01 00 10 91 46 0a 00 00 + 00000000: 18 00 00 00 02 00 10 91 46 0a 00 00 0c 00 00 00 + 00000010: 0c d1 00 00 00 00 00 00 + +Register: 0xd10c +Value Range: -9 to +9 +DWORD: (0xfffffff7 to 0x9) + +================ + +Set Picture Style: + 00000000: 0c 00 00 00 01 00 10 91 27 00 00 00 + 00000000: 18 00 00 00 02 00 10 91 27 00 00 00 0c 00 00 00 + 00000010: 10 d1 00 00 82 00 00 00 + +Register: 0xd110 +Value Range: +Standard: 0x81 +Portrait: 0x82 +Landscape: 0x83 +Neutral: 0x84 +Faithful: 0x85 +Monochrome: 0x86 +User Def. 1: 0x21 +User Def. 2: 0x22 +User Def. 3: 0x23 + +============================ + +Time and Date: + 00000000: 0c 00 00 00 01 00 10 91 43 00 00 00 + 00000000: 18 00 00 00 02 00 10 91 43 00 00 00 0c 00 00 00 + 00000010: 13 d1 00 00 ee 2a 68 46 + +Register: 0xd113 +Value Range: Unixtime=time(NULL) + +============================ + +Owner Name: + 00000000: 0c 00 00 00 01 00 10 91 34 00 00 00 + 00000000: 30 00 00 00 02 00 10 91 34 00 00 00 24 00 00 00 + 00000010: 15 d1 00 00 44 65 74 69 20 46 6c 69 65 67 6c 20 + 00000020: 30 30 34 39 31 35 31 31 37 38 36 37 34 38 30 00 + +Register: 0xd115 +Parameter: ASCII String + +===================== + +Quality: + 00000000: 0c 00 00 00 01 00 10 91 23 00 00 00 + 00000000: 28 00 00 00 02 00 10 91 23 00 00 00 1c 00 00 00 +L-HQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 00 00 00 00 03 00 00 00 +L-LQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 00 00 00 00 02 00 00 00 +M-HQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 01 00 00 00 03 00 00 00 +M-LQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 01 00 00 00 02 00 00 00 +S-HQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 02 00 00 00 03 00 00 00 +S-LQ + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 01 00 00 00 + 00000020: 02 00 00 00 02 00 00 00 +RAW+L-HQ + 00000010: 20 d1 00 00 02 00 00 00 10 00 00 00 06 00 00 00 + 00000020: 00 00 00 00 04 00 00 00 10 00 00 00 01 00 00 00 + 00000030: 00 00 00 00 03 00 00 00 +RAW + 00000010: 20 d1 00 00 01 00 00 00 10 00 00 00 06 00 00 00 + 00000020: 00 00 00 00 04 00 00 00 + +Register: 0xd120 +Values: +DWORD: Number of subsequent format definitions (1 oder 2) + +Format definition: +DWORD: Length of Format (0x10) +DWORD: Format: JPG:0x01 RAW:0x06 +DWORD: Resolution L/RAW:0x00 M:0x01 S:0x02 +DWORD: Quality HQ:0x03 LQ:0x02 RAW:0x04 + +================ + +Edit Picturestyle: + + 00000000: 0c 00 00 00 01 00 10 91 99 00 00 00 + 00000000: 30 00 00 00 02 00 10 91 99 00 00 00 24 00 00 00 + 00000010: 50 d1 00 00 1c 00 00 00 01 00 00 00 03 00 00 00 + 00000020: 02 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 + +Register: +0xd150 (Standard) +0xd151 (Portrait) +0xd152 (Landscape) +0xd153 (Neutral) +0xd154 (Faithful) +0xd155 (Monochrome) +0xd160 (User Def. 1) +0xd161 (User Def. 2) +0xd162 (User Def. 3) + +DWORD: Length of style (0x1c) +DWORD: Contrast -4 to +4 +DWORD: Sharpness 0 to 7 +DWORD: Saturation -4 to +4 +DWORD: Color tone -4 to +4 +Value -1 is expressed by 0xffffffff + +For Monochrome (0xd155) the settings differ: +DWORD: Length of Style (0x1c) +DWORD: Contrast -4 to +4 +DWORD: Sharpness 0 to 7 +DWORD: Filter effect (None:0 Yellow:1 Orange:2 Red:3 Green:4) +DWORD: Toning effect (None:0 Sepia:1 Blue:2 Purple:3 Green:4) + +================ + +Das steht am Bildschirm bei 1600ISO - brauchst du noch ein Logfile? Noch +was: Wenn keine Speicherkarte in der Kamera ist, dann gibt's ein Segfault. + + value on, t 1 +unknown EOS property type c18e +unknown EOS property type c18e +unknown EOS property type c18e +Adding EOS property d103, datasize is 4 +Adding EOS property d11b, datasize is 4 +Adding EOS property d11b, datasize is 4 +unknown EOS property type c18e +unknown EOS property type c18e +Adding EOS property d103, datasize is 4 +Adding EOS property d11b, datasize is 4 +Adding EOS property d11b, datasize is 4 +unknown EOS property type c18e +unknown EOS property type c18e +unknown EOS property type c18e +unknown EOS property type c18e +unknown EOS property type c18e +Adding EOS property d103, datasize is 4 +Adding EOS property d11b, datasize is 4 +Adding EOS property d11b, datasize is 4 +unknown EOS property type c18e +unknown EOS property type c18e +Adding EOS property d103, datasize is 4 +Adding EOS property d11b, datasize is 4 +Adding EOS property d11b, datasize is 4 +unknown EOS property type c18e +unknown EOS property type c18e +Adding EOS property d103, datasize is 4 +Adding EOS property d11b, datasize is 4 +Adding EOS property d11b, datasize is 4 +unknown EOS property type c18e +unknown EOS property type c18e +Adding EOS property d103, datasize is 4 +Adding EOS property d11b, datasize is 4 +Adding EOS property d11b, datasize is 4 +unknown EOS property type c18e +unknown EOS property type c18e +unknown EOS property type c18e +Adding EOS property d102, datasize is 4 +Adding EOS property d101, datasize is 4 +Adding EOS property d103, datasize is 4 +Adding EOS property d106, datasize is 4 +Adding EOS property d108, datasize is 4 +Adding EOS property d107, datasize is 4 +Adding EOS property d109, datasize is 4 +Adding EOS property d105, datasize is 4 +Adding EOS property d11b, datasize is 4 +Adding EOS property d104, datasize is 4 +Adding EOS property d112, datasize is 4 +Adding EOS property d111, datasize is 4 +Adding EOS property d10c, datasize is 4 +Adding EOS property d10b, datasize is 4 +Adding EOS property d10d, datasize is 4 +Adding EOS property d10e, datasize is 4 +Adding EOS property d10f, datasize is 4 +Adding EOS property d114, datasize is 4 +Adding EOS property d11a, datasize is 4 +Adding EOS property d115, datasize is 28 +Adding EOS property d119, datasize is 4 +Adding EOS property d116, datasize is 4 +Adding EOS property d11d, datasize is 4 +Adding EOS property d180, datasize is 5 +Adding EOS property d181, datasize is 5 +Adding EOS property d182, datasize is 5 +Adding EOS property d183, datasize is 5 +Adding EOS property d184, datasize is 5 +Adding EOS property d185, datasize is 5 +Adding EOS property d186, datasize is 5 +Adding EOS property d187, datasize is 5 +Adding EOS property d188, datasize is 5 +Adding EOS property d189, datasize is 5 +Adding EOS property d18a, datasize is 5 +Adding EOS property d110, datasize is 4 +Adding EOS property d150, datasize is 28 +Adding EOS property d151, datasize is 28 +Adding EOS property d152, datasize is 28 +Adding EOS property d153, datasize is 28 +Adding EOS property d154, datasize is 28 +Adding EOS property d155, datasize is 28 +Adding EOS property d160, datasize is 32 +Adding EOS property d161, datasize is 32 +Adding EOS property d162, datasize is 32 +Adding EOS property d170, datasize is 8 +Adding EOS property d171, datasize is 8 +Adding EOS property d172, datasize is 8 +Adding EOS property d113, datasize is 4 +Adding EOS property d11c, datasize is 4 +Adding EOS property d120, datasize is 20 +Adding EOS property d107, datasize is 20 +Adding EOS property d108, datasize is 20 +Adding EOS property d109, datasize is 40 +Adding EOS property d103, datasize is 28 +Adding EOS property d102, datasize is 8 +Adding EOS property d101, datasize is 8 +Adding EOS property d10b, datasize is 84 +Adding EOS property d10c, datasize is 84 +Adding EOS property d104, datasize is 60 +Adding EOS property d10f, datasize is 16 +Adding EOS property d110, datasize is 44 +Adding EOS property d11c, datasize is 20 +Adding EOS property d120, datasize is 184 +Adding EOS property d106, datasize is 8 +Adding EOS property d105, datasize is 8 +Adding EOS property d10d, datasize is 8 +Adding EOS property d10e, datasize is 8 +Adding EOS property d11b, datasize is 8 +Adding EOS property d114, datasize is 8 +Adding EOS property d116, datasize is 8 +Adding EOS property d119, datasize is 8 +Adding EOS property d11a, datasize is 8 +Adding EOS property d112, datasize is 8 +Adding EOS property d111, datasize is 8 +Adding EOS property d11d, datasize is 8 +Adding EOS property d115, datasize is 8 +Adding EOS property d180, datasize is 8 +Adding EOS property d181, datasize is 8 +Adding EOS property d182, datasize is 8 +Adding EOS property d183, datasize is 8 +Adding EOS property d184, datasize is 8 +Adding EOS property d185, datasize is 8 +Adding EOS property d186, datasize is 8 +Adding EOS property d187, datasize is 8 +Adding EOS property d188, datasize is 8 +Adding EOS property d189, datasize is 8 +Adding EOS property d18a, datasize is 8 +Adding EOS property d150, datasize is 8 +Adding EOS property d151, datasize is 8 +Adding EOS property d152, datasize is 8 +Adding EOS property d153, datasize is 8 +Adding EOS property d154, datasize is 8 +Adding EOS property d155, datasize is 8 +Adding EOS property d160, datasize is 8 +Adding EOS property d161, datasize is 8 +Adding EOS property d162, datasize is 8 +Adding EOS property d170, datasize is 8 +Adding EOS property d171, datasize is 8 +Adding EOS property d172, datasize is 8 +Adding EOS property d113, datasize is 8 +unknown EOS property type 0000 +unknown EOS property type 0000 +Adding EOS property d11b, datasize is 4 +Adding EOS property d11b, datasize is 4 +Adding EOS property d11c, datasize is 4 +Adding EOS property d11b, datasize is 4 +unknown EOS property type 0000 +unknown EOS property type 0000 +currentvalue is 3 +currentvalue is 3 +currentvalue is 3 +currentvalue is 3 +/main/settings/capturetarget +/main/settings/capture +/main/imgsettings/iso +/main/capturesettings/exposurecompensation +/main/capturesettings/aperture +/main/capturesettings/shutterspeed +/main/capturesettings/focuslock +currentvalue is 3 +currentvalue is 3 +currentvalue is 3 +currentvalue is 3 +Label: ISO Speed +Type: RADIO +Current: (null) +Choice: 0 Factory Default +Choice: 1 50 +Choice: 2 100 +Choice: 3 200 +Choice: 4 400 +Choice: 5 800 +Choice: 6 1600 +Choice: 7 Auto + +MARCUS: +30.106163 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows: +0000 50 00 00 00 02 00 16 91-0b 07 00 00 3c 00 00 00 P...........<... +0010 81 c1 00 00 52 63 94 31-01 00 01 00 01 38 00 00 ....Rc.1.....8.. +0020 00 00 00 00 20 00 00 00-85 41 27 00 00 00 94 31 .... ....A'....1 +0030 50 63 94 31 49 4d 47 5f-31 35 38 39 2e 4a 50 47 Pc.1IMG_1589.JPG +0040 00 00 00 00 f8 d2 ed 49-08 00 00 00 00 00 00 00 .......I........ + +30.111620 ptp(2): event 0: unknown EOS event c182 +30.111650 ptp(2): 8: 52 63 94 31 uint32_t objectid +30.111755 ptp(2): 12: 01 00 01 00 uint32_t storageid +30.111859 ptp(2): 16: 01 38 uint16_t ofc +30.111912 ptp(2): 18: 00 +30.111937 ptp(2): 19: 00 + +30.111963 ptp(2): 20: 00 +30.111989 ptp(2): 21: 00 +30.112015 ptp(2): 22: 00 +30.112041 ptp(2): 23: 00 + +30.112067 ptp(2): 24: 20 +30.112093 ptp(2): 25: 00 +30.112119 ptp(2): 26: 00 +30.112145 ptp(2): 27: 00 +30.112171 ptp(2): 28: 85 41 27 00 uint32_t compressedsize +30.112297 ptp(2): 32: 00 00 94 31 uint32_t parentid +30.112399 ptp(2): 36: 50 63 94 31 uint32_t obid again? +30.112502 ptp(2): 40: 49 IMG_1589.JPG... +30.112839 ptp(2): 53: 00 +30.112865 ptp(2): 54: 00 +30.112891 ptp(2): 55: 00 +30.112917 ptp(2): 56: f8 d2 ed 49 ? diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos40d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos40d.txt new file mode 100644 index 00000000..9e3dd37d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos40d.txt @@ -0,0 +1,156 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon EOS 40D + device version: 3-1.0.5 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1001 + 0x1002 + 0x1003 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9125 + 0x9126 + 0x9115 + 0x9114 + 0x9113 + 0x9116 + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9153 + 0x9154 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x911f + 0x91fe + 0x91ff + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x91c0 + 0x91c1 + 0x91c2 + 0x91c3 + 0x91c4 + 0x91c5 + 0x91c6 + 0x91c7 + 0x91c8 + 0x91c9 + 0x91ca + 0x91cb + 0x91cc + 0x91ce + 0x91cf + 0x91e1 + 0x91e2 + 0x91e3 + 0x91e4 + 0x91e5 + 0x91e6 + 0x91e7 + 0x91e8 + 0x91e9 + 0x91ea + 0x91eb + 0x91f2 + 0x91f3 + 0x91f4 + 0x91f7 + 0x9122 + 0x9123 + 0x9124 + 0x91f5 + 0x91f6 +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + + +Camera summary: +Model: Canon EOS 40D + device version: 3-1.0.5 + serial number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor extension ID: 0x0000000b +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, +CRW, Unknown(b103), Unknown(bf02), Defined Type + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: CF + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 2048065536 (1953 MB) + Free Space (Bytes): 2047967232 (1953 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 40D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos450d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos450d.txt new file mode 100644 index 00000000..ace29520 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos450d.txt @@ -0,0 +1,325 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 450D + device version: 3-1.0.4 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 2.00 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 1.00 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1001 + 0x1002 + 0x1003 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9125 + 0x9126 + 0x9115 + 0x9114 + 0x9113 + 0x9116 + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9153 + 0x9154 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x911f + 0x91fe + 0x91ff + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + +Kamerazusammenfassung: +Hersteller: Canon Inc. +Model: Canon EOS 450D + Version: 3-1.0.4 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (2.0) + +Aufnahmeformate: JPEG +Anzeigeformate: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type +Unterstützte MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Unknown(bf02)/bf02: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Canon EOS Capture + +Informationen über Speichermedium: +store_00020001: + Beschreibung des Speichergeräts: SD + Label des Speichergerätes: Keine + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 2059010048 (1963 MB) + Freier Platz (Bytes): 1156874240 (1103 MB) + Freier Speicher (Bilder): -1 + +Properties des Geräts: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 450D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' + +/main/actions/focuslock + Label: Focus Lock + Type: TOGGLE + Current: 2 +/main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 +/main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1250090349 + Printable: Wed Aug 12 17:19:09 2009 +/main/settings/ownername + Label: Owner Name + Type: TEXT + Current: +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 50% +/main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 680233724 +/main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 769 +/main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 0 +/main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: RAW + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 100 + Choice: 0 Auto + Choice: 1 100 + Choice: 2 200 + Choice: 3 400 + Choice: 4 800 + Choice: 5 1600 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual +/main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Continuous + Choice: 0 Single + Choice: 1 Continuous + Choice: 2 Timer 10 sec + Choice: 3 Timer 2 sec + Choice: 4 Unknown value 0007 +/main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 +/main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 4 + Choice: 0 2.8 + Choice: 1 3.2 + Choice: 2 3.5 + Choice: 3 4 + Choice: 4 4.5 + Choice: 5 5 + Choice: 6 5.6 + Choice: 7 6.3 + Choice: 8 7.1 + Choice: 9 8 + Choice: 10 9 + Choice: 11 10 + Choice: 12 11 + Choice: 13 13 + Choice: 14 14 + Choice: 15 16 + Choice: 16 18 + Choice: 17 20 + Choice: 18 22 +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 1/125 + Choice: 0 Unknown value 000c + Choice: 1 30 + Choice: 2 25 + Choice: 3 20 + Choice: 4 15 + Choice: 5 13 + Choice: 6 10 + Choice: 7 8 + Choice: 8 6 + Choice: 9 5 + Choice: 10 4 + Choice: 11 3.2 + Choice: 12 2.5 + Choice: 13 2 + Choice: 14 1.6 + Choice: 15 1.3 + Choice: 16 1 + Choice: 17 0.8 + Choice: 18 0.6 + Choice: 19 0.5 + Choice: 20 0.4 + Choice: 21 0.3 + Choice: 22 1/4 + Choice: 23 1/5 + Choice: 24 1/6 + Choice: 25 1/8 + Choice: 26 1/10 + Choice: 27 1/13 + Choice: 28 1/15 + Choice: 29 1/20 + Choice: 30 1/25 + Choice: 31 1/30 + Choice: 32 1/40 + Choice: 33 1/50 + Choice: 34 1/60 + Choice: 35 1/80 + Choice: 36 1/100 + Choice: 37 1/125 + Choice: 38 1/160 + Choice: 39 1/200 + Choice: 40 1/250 + Choice: 41 1/320 + Choice: 42 1/400 + Choice: 43 1/500 + Choice: 44 1/640 + Choice: 45 1/800 + Choice: 46 1/1000 + Choice: 47 1/1250 + Choice: 48 1/1600 + Choice: 49 1/2000 + Choice: 50 1/2500 + Choice: 51 1/3200 + Choice: 52 1/4000 +/main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 450D +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos500d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos500d.txt new file mode 100644 index 00000000..f89ccd3a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos500d.txt @@ -0,0 +1,219 @@ +/main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 +/main/actions/uilock + Label: UI Lock + Type: TOGGLE + Current: 2 +/main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 +/main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 +/main/actions/eoszoom + Label: Canon EOS Zoom + Type: TEXT + Current: 0 +/main/actions/eoszoomposition + Label: Canon EOS Zoom Position + Type: TEXT + Current: 0,0 +/main/actions/eosviewfinder + Label: Canon EOS Viewfinder + Type: TOGGLE + Current: 2 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1292186018 + Printable: Sun 12 Dec 2010 01:33:38 PM MST +/main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold +/main/settings/output + Label: Camera Output + Type: RADIO + Current: Unknown value 0000 + Choice: 0 TFT + Choice: 1 PC + Choice: 2 Unknown value 0000 +/main/settings/evfmode + Label: EVF Mode + Type: RADIO + Current: 0 + Choice: 0 0 +/main/settings/ownername + Label: Owner Name + Type: TEXT + Current: Yiding Han +/main/settings/artist + Label: Artist + Type: TEXT + Current: Photographer:Yiding +/main/settings/copyright + Label: Copyright + Type: TEXT + Current: +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484242 +/main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 +/main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% +/main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S18-55mm f/3.5-5.6 IS +/main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 370113800 +/main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 5419 +/main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 50901 +/main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW +/main/imgsettings/imageformatsd + Label: Image Format SD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW +/main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 +/main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 -2 + Choice: 1 -1.6 + Choice: 2 -1.3 + Choice: 3 -1.0 + Choice: 4 -0.6 + Choice: 5 -0.3 + Choice: 6 0 + Choice: 7 0.3 + Choice: 8 0.6 + Choice: 9 1.0 + Choice: 10 1.3 + Choice: 11 1.6 + Choice: 12 2 +/main/capturesettings/autoexposuremode + Label: Canon Auto Exposure Mode + Type: RADIO + Current: Green + Choice: 0 P + Choice: 1 TV + Choice: 2 AV + Choice: 3 Manual + Choice: 4 Bulb + Choice: 5 A_DEP + Choice: 6 DEP + Choice: 7 Custom + Choice: 8 Lock + Choice: 9 Green + Choice: 10 Night Portrait + Choice: 11 Sports + Choice: 12 Portrait + Choice: 13 Landscape + Choice: 14 Closeup + Choice: 15 Flash Off +/main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Timer 10 sec +/main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 +/main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 +/main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS REBEL T1i +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos50d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos50d.txt new file mode 100644 index 00000000..4543505e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos50d.txt @@ -0,0 +1,622 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon EOS 50D + device version: 3-1.0.2 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x00000006 +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1001 + 0x1002 + 0x1003 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9125 + 0x9126 + 0x9115 + 0x9114 + 0x9113 + 0x9116 + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x91c0 + 0x91c1 + 0x91c2 + 0x91c3 + 0x91c4 + 0x91c5 + 0x91c6 + 0x91c7 + 0x91c8 + 0x91c9 + 0x91ca + 0x91cb + 0x91cc + 0x91ce + 0x91cf + 0x91e1 + 0x91e2 + 0x91e3 + 0x91e4 + 0x91e5 + 0x91e6 + 0x91e7 + 0x91e8 + 0x91e9 + 0x91ea + 0x91eb + 0x91ec + 0x91ed + 0x91f2 + 0x91f3 + 0x91f4 + 0x91f7 + 0x9122 + 0x9123 + 0x9124 + 0x91f5 + 0x91f6 + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + +Camera summary: +Model: Canon EOS 50D + device version: 3-1.0.2 + serial number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor extension ID: 0x6 + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Unknown(b101), Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth + Unknown(b101)/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Unknown(bf02)/bf02: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: CF + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 8193015808 (7813 MB) + Free Space (Bytes): 7394885632 (7052 MB) + Free Space (Images): -1 + +Device Property Summary: +Device Friendly Name(0xd402):(read only) (type=0xffff) Canon EOS 50D ('Canon EOS 50D') +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +main/actions/manualfocusdrive + Label: Fahre Canon DSLR Manueller Fokus + Type: RADIO + Current: Keine + Choice: 0 Nah 1 + Choice: 1 Nah 2 + Choice: 2 Nah 3 + Choice: 3 Keine + Choice: 4 Fern 1 + Choice: 5 Fern 2 + Choice: 6 Fern 3 +main/actions/focuslock + Label: Fokus Lock + Type: TOGGLE + Current: 2 +main/actions/bulb + Label: Kunstlicht Modus + Type: TOGGLE + Current: 2 +main/actions/autofocusdrive + Label: Fahre Canon DSLR Autofokus + Type: TOGGLE + Current: 0 +main/actions/uilock + Label: UI Lock + Type: TOGGLE + Current: 2 +main/status/availableshots + Label: Verfügbare Aufnahmen + Type: TEXT + Current: 62977 +main/status/batterylevel + Label: Batterie Ladezustand + Type: TEXT + Current: 100% +main/status/model + Label: Kameramodell + Type: TEXT + Current: 2147484257 +main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 +main/status/lensname + Label: Objektivname + Type: TEXT + Current: EF-S17-85mm f/4-5.6 IS USM +main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 50D +main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator +main/settings/evfmode + Label: EVF Modus + Type: RADIO + Current: 1 + Choice: 0 0 + Choice: 1 1 +main/settings/reviewtime + Label: Schnellvorschau Zeit + Type: RADIO + Current: 4 Sekunden + Choice: 0 Keine + Choice: 1 2 Sekunden + Choice: 2 4 Sekunden + Choice: 3 8 Sekunden + Choice: 4 Halten +main/settings/artist + Label: Künstler + Type: TEXT + Current: Photographer:Andreas Hoppe +main/settings/copyright + Label: Copyright + Type: TEXT + Current: Copyright:Andreas Hoppe +main/settings/capturetarget + Label: Aufnahmeziel + Type: RADIO + Current: interner Speicher + Choice: 0 interner Speicher + Choice: 1 Speicherkarte +main/settings/capture + Label: Aufnahme + Type: TOGGLE + Current: 2 +main/settings/ownername + Label: Eigentümername + Type: TEXT + Current: Andreas Hoppe +main/settings/datetime + Label: Datum und Zeit + Type: DATE + Current: 1274819056 + Printable: Di 25 Mai 2010 22:24:16 CEST +main/settings/output + Label: Kamera Output + Type: RADIO + Current: (null) + Choice: 0 TFT + Choice: 1 PC +main/capturesettings/picturestyle + Label: Bild Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landschaft + Choice: 3 Neutral + Choice: 4 Treu + Choice: 5 Einfarbig + Choice: 6 Benutzerdefiniert 1 + Choice: 7 Benutzerdefiniert 2 + Choice: 8 Benutzerdefiniet 3 +main/capturesettings/autoexposuremode + Label: Canon Automatische Belichtungsmodus + Type: RADIO + Current: P + Choice: 0 P + Choice: 1 TV + Choice: 2 AV + Choice: 3 Manuell + Choice: 4 Lampe + Choice: 5 A_DEP + Choice: 6 DEP + Choice: 7 Benutzerdefiniert + Choice: 8 Lock + Choice: 9 Grün + Choice: 10 Nachtportrait + Choice: 11 Sport + Choice: 12 Portrait + Choice: 13 Landschaft + Choice: 14 Nah + Choice: 15 Blitz aus +main/capturesettings/aperture + Label: Blende + Type: RADIO + Current: 9 + Choice: 0 4 + Choice: 1 4.5 + Choice: 2 5 + Choice: 3 5.6 + Choice: 4 6.3 + Choice: 5 7.1 + Choice: 6 8 + Choice: 7 9 + Choice: 8 10 + Choice: 9 11 + Choice: 10 13 + Choice: 11 14 + Choice: 12 16 + Choice: 13 18 + Choice: 14 20 + Choice: 15 22 +main/capturesettings/drivemode + Label: Auslöse Modus + Type: RADIO + Current: Einzelbild + Choice: 0 Einzelbild + Choice: 1 Kontinuierliche hohe Geschwindigkeit + Choice: 2 Kontinuierliche langsame Geschwindigkeit + Choice: 3 Selbstauslöser 2 Sekunden + Choice: 4 Selbstauslöser 10 Sekunden +main/capturesettings/bracketmode + Label: Abstufungsmodus + Type: TEXT + Current: 1 +main/capturesettings/aeb + Label: Automatische Belichtungs Abstufung Anzahl + Type: RADIO + Current: +/- 1 + Choice: 0 aus + Choice: 1 +/- 1/3 + Choice: 2 +/- 2/3 + Choice: 3 +/- 1 + Choice: 4 +/- 1 1/3 + Choice: 5 +/- 1 2/3 + Choice: 6 +/- 2 +main/capturesettings/meteringmode + Label: Spotmessung + Type: RADIO + Current: Berechnend + Choice: 0 Berechnend + Choice: 1 Partiell + Choice: 2 Punkt + Choice: 3 Mittelpunkt/Gewichtete Messung +main/capturesettings/exposurecompensation + Label: Belichtungskompensation + Type: RADIO + Current: 0 + Choice: 0 -2 + Choice: 1 -1.6 + Choice: 2 -1.3 + Choice: 3 -1.0 + Choice: 4 -0.6 + Choice: 5 -0.3 + Choice: 6 0 + Choice: 7 0.3 + Choice: 8 0.6 + Choice: 9 1.0 + Choice: 10 1.3 + Choice: 11 1.6 + Choice: 12 2 +main/capturesettings/shutterspeed + Label: Belichtungszeit + Type: RADIO + Current: 1/320 + Choice: 0 30 + Choice: 1 25 + Choice: 2 20 + Choice: 3 15 + Choice: 4 13 + Choice: 5 10 + Choice: 6 8 + Choice: 7 6 + Choice: 8 5 + Choice: 9 4 + Choice: 10 3.2 + Choice: 11 2.5 + Choice: 12 2 + Choice: 13 1.6 + Choice: 14 1.3 + Choice: 15 1 + Choice: 16 0.8 + Choice: 17 0.6 + Choice: 18 0.5 + Choice: 19 0.4 + Choice: 20 0.3 + Choice: 21 1/4 + Choice: 22 1/5 + Choice: 23 1/6 + Choice: 24 1/8 + Choice: 25 1/10 + Choice: 26 1/13 + Choice: 27 1/15 + Choice: 28 1/20 + Choice: 29 1/25 + Choice: 30 1/30 + Choice: 31 1/40 + Choice: 32 1/50 + Choice: 33 1/60 + Choice: 34 1/80 + Choice: 35 1/100 + Choice: 36 1/125 + Choice: 37 1/160 + Choice: 38 1/200 + Choice: 39 1/250 + Choice: 40 1/320 + Choice: 41 1/400 + Choice: 42 1/500 + Choice: 43 1/640 + Choice: 44 1/800 + Choice: 45 1/1000 + Choice: 46 1/1250 + Choice: 47 1/1600 + Choice: 48 1/2000 + Choice: 49 1/2500 + Choice: 50 1/3200 + Choice: 51 1/4000 + Choice: 52 1/5000 + Choice: 53 1/6400 + Choice: 54 1/8000 +main/imgsettings/whitebalancexa + Label: Weißabgleich X A + Type: TEXT + Current: 0 +main/imgsettings/imageformatexthd + Label: Bildformat Externe HD + Type: RADIO + Current: (null) + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 +main/imgsettings/imageformat + Label: Bildformat + Type: RADIO + Current: (null) + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 +main/imgsettings/whitebalancexb + Label: Weißabgleich X B + Type: TEXT + Current: 0 +main/imgsettings/whitebalanceadjusta + Label: Weißabgleich Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 +main/imgsettings/whitebalance + Label: Weißabgleich + Type: RADIO + Current: Tageslicht + Choice: 0 Auto + Choice: 1 Tageslicht + Choice: 2 Schatten + Choice: 3 Wolkig + Choice: 4 Kunstlicht - Glühlampe + Choice: 5 Kunstlicht - Fluoreszenzlampe + Choice: 6 Blitz + Choice: 7 Manuell + Choice: 8 Farbtemperatur +main/imgsettings/iso + Label: ISO-Geschwindigkeit + Type: RADIO + Current: 100 + Choice: 0 Auto + Choice: 1 100 + Choice: 2 125 + Choice: 3 160 + Choice: 4 200 + Choice: 5 250 + Choice: 6 320 + Choice: 7 400 + Choice: 8 500 + Choice: 9 640 + Choice: 10 800 + Choice: 11 1000 + Choice: 12 1250 + Choice: 13 1600 + Choice: 14 2000 + Choice: 15 2500 + Choice: 16 3200 +main/imgsettings/whitebalanceadjustb + Label: Weißabgleich Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 +main/imgsettings/imageformatcf + Label: Bildformat CF + Type: RADIO + Current: (null) + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos550d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos550d.txt new file mode 100644 index 00000000..d8fb6239 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos550d.txt @@ -0,0 +1,419 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS REBEL T2i + Version: 3-1.0.9 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (2.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 8027897856 (7656 MB) + Free Space (Bytes): 7896465408 (7530 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS REBEL T2i' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 On 1 +Choice: 2 On 2 +Choice: 3 Off +Choice: 4 Immediate +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1359128832 +Printable: Fri Jan 25 12:47:12 2013 +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Unknown value 0000 +Choice: 0 TFT +Choice: 1 PC +Choice: 2 Unknown value 0000 +/main/settings/movierecord +Label: Movie Recording +Type: TEXT +Current: 0 +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: Andrea Veronica Fasulis. +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: CC-BY-SA +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d1c0,0, +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484272 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-S18-55mm f/3.5-5.6 IS +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 1823927870 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 5103 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 73069 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Medium Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 RAW + Large Fine JPEG +Choice: 7 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: Medium Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 RAW + Large Fine JPEG +Choice: 7 RAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 200 +Choice: 2 400 +Choice: 3 800 +Choice: 4 1600 +Choice: 5 3200 +Choice: 6 6400 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Shadow +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Unknown value 0003 +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +Choice: 3 Unknown value 0003 +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: Manual +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous +Choice: 2 Timer 10 sec +Choice: 3 Timer 2 sec +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Faithful +Choice: 0 Standard +Choice: 1 Portrait +Choice: 2 Landscape +Choice: 3 Neutral +Choice: 4 Faithful +Choice: 5 Monochrome +Choice: 6 User defined 1 +Choice: 7 User defined 2 +Choice: 8 User defined 3 +/main/capturesettings/aperture +Label: Aperture +Type: RADIO +Current: 4 +Choice: 0 4 +Choice: 1 4.5 +Choice: 2 5.6 +Choice: 3 6.7 +Choice: 4 8 +Choice: 5 9.5 +Choice: 6 11 +Choice: 7 13 +Choice: 8 16 +Choice: 9 19 +Choice: 10 22 +Choice: 11 27 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1/15 +Choice: 0 bulb +Choice: 1 30 +Choice: 2 20 +Choice: 3 15 +Choice: 4 10 +Choice: 5 8 +Choice: 6 6 +Choice: 7 4 +Choice: 8 3 +Choice: 9 2 +Choice: 10 1.5 +Choice: 11 1 +Choice: 12 0.7 +Choice: 13 0.5 +Choice: 14 0.3 +Choice: 15 1/4 +Choice: 16 1/6 +Choice: 17 1/8 +Choice: 18 1/10 +Choice: 19 1/15 +Choice: 20 1/20 +Choice: 21 1/30 +Choice: 22 1/45 +Choice: 23 1/60 +Choice: 24 1/90 +Choice: 25 1/125 +Choice: 26 1/180 +Choice: 27 1/250 +Choice: 28 1/350 +Choice: 29 1/500 +Choice: 30 1/750 +Choice: 31 1/1000 +Choice: 32 1/1500 +Choice: 33 1/2000 +Choice: 34 1/3000 +Choice: 35 1/4000 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Partial +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/2 +Choice: 2 +/- 1 +Choice: 3 +/- 1 1/2 +Choice: 4 +/- 2 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS REBEL T2i +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5dmark2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5dmark2.txt new file mode 100644 index 00000000..3533e3d7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5dmark2.txt @@ -0,0 +1,179 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 5D Mark II + device version: 3-1.0.7 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 200 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1001 + 0x1002 + 0x1003 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9125 + 0x9126 + 0x9115 + 0x9114 + 0x9113 + 0x9116 + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x91c0 + 0x91c1 + 0x91c2 + 0x91c3 + 0x91c4 + 0x91c5 + 0x91c6 + 0x91c7 + 0x91c8 + 0x91c9 + 0x91ca + 0x91cb + 0x91cc + 0x91ce + 0x91cf + 0x91e1 + 0x91e2 + 0x91e3 + 0x91e4 + 0x91e5 + 0x91e6 + 0x91e7 + 0x91e8 + 0x91e9 + 0x91ea + 0x91eb + 0x91ec + 0x91ed + 0x91f2 + 0x91f3 + 0x91f4 + 0x91f7 + 0x9122 + 0x9123 + 0x9124 + 0x91f5 + 0x91f6 + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905f +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 5D Mark II + Version: 3-1.0.7 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (2.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Unknown(bf02)/bf02: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: CF + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 32270778368 (30775 MB) + Free Space (Bytes): 16126214144 (15379 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 5D Mark II' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5dmark3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5dmark3.txt new file mode 100644 index 00000000..652ac63d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5dmark3.txt @@ -0,0 +1,4362 @@ +gphoto2 --list-all-config +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1390410332 +Printable: Wed 22 Jan 2014 17:05:32 UTC +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Undefined +Choice: 0 Undefined +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +/main/settings/movierecord +Label: Movie Recording +Type: TEXT +Current: 0 +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d1a3,0, +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 4ff1a05e8014efd +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 5D Mark III +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.2.1 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484293 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF300mm f/4L IS USM +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 022031003494 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 52754 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 1562 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 Unknown value 04d3 +Choice: 13 Unknown value 04d2 +Choice: 14 Unknown value 04e3 +Choice: 15 Unknown value 04f3 +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 Unknown value 14d3 +Choice: 21 Unknown value 14d2 +Choice: 22 Unknown value 14e3 +Choice: 23 Unknown value 14f3 +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 Unknown value 24d3 +Choice: 29 Unknown value 24d2 +Choice: 30 Unknown value 24e3 +Choice: 31 Unknown value 24f3 +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 Unknown value 04d3 +Choice: 13 Unknown value 04d2 +Choice: 14 Unknown value 04e3 +Choice: 15 Unknown value 04f3 +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 Unknown value 14d3 +Choice: 21 Unknown value 14d2 +Choice: 22 Unknown value 14e3 +Choice: 23 Unknown value 14f3 +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 Unknown value 24d3 +Choice: 29 Unknown value 24d2 +Choice: 30 Unknown value 24e3 +Choice: 31 Unknown value 24f3 +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 Unknown value 04d3 +Choice: 13 Unknown value 04d2 +Choice: 14 Unknown value 04e3 +Choice: 15 Unknown value 04f3 +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 Unknown value 14d3 +Choice: 21 Unknown value 14d2 +Choice: 22 Unknown value 14e3 +Choice: 23 Unknown value 14f3 +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 Unknown value 24d3 +Choice: 29 Unknown value 24d2 +Choice: 30 Unknown value 24e3 +Choice: 31 Unknown value 24f3 +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 100 +Choice: 2 125 +Choice: 3 160 +Choice: 4 200 +Choice: 5 250 +Choice: 6 320 +Choice: 7 400 +Choice: 8 500 +Choice: 9 640 +Choice: 10 800 +Choice: 11 1000 +Choice: 12 1250 +Choice: 13 1600 +Choice: 14 2000 +Choice: 15 2500 +Choice: 16 3200 +Choice: 17 4000 +Choice: 18 5000 +Choice: 19 6400 +Choice: 20 Unknown value 007b +Choice: 21 Unknown value 007d +Choice: 22 12800 +Choice: 23 Unknown value 0083 +Choice: 24 Unknown value 0085 +Choice: 25 25600 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +Choice: 8 Color Temperature +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 Unknown value 00dd +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: TV +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous high speed +Choice: 2 Continuous low speed +Choice: 3 Single silent +Choice: 4 Continuous silent +Choice: 5 Timer 10 sec +Choice: 6 Timer 2 sec +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Standard +Choice: 0 Unknown value 0087 +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1/200 +Choice: 0 30 +Choice: 1 25 +Choice: 2 20 +Choice: 3 15 +Choice: 4 13 +Choice: 5 10 +Choice: 6 8 +Choice: 7 6 +Choice: 8 5 +Choice: 9 4 +Choice: 10 3.2 +Choice: 11 2.5 +Choice: 12 2 +Choice: 13 1.6 +Choice: 14 1.3 +Choice: 15 1 +Choice: 16 0.8 +Choice: 17 0.6 +Choice: 18 0.5 +Choice: 19 0.4 +Choice: 20 0.3 +Choice: 21 1/4 +Choice: 22 1/5 +Choice: 23 1/6 +Choice: 24 1/8 +Choice: 25 1/10 +Choice: 26 1/13 +Choice: 27 1/15 +Choice: 28 1/20 +Choice: 29 1/25 +Choice: 30 1/30 +Choice: 31 1/40 +Choice: 32 1/50 +Choice: 33 1/60 +Choice: 34 1/80 +Choice: 35 1/100 +Choice: 36 1/125 +Choice: 37 1/160 +Choice: 38 1/200 +Choice: 39 1/250 +Choice: 40 1/320 +Choice: 41 1/400 +Choice: 42 1/500 +Choice: 43 1/640 +Choice: 44 1/800 +Choice: 45 1/1000 +Choice: 46 1/1250 +Choice: 47 1/1600 +Choice: 48 1/2000 +Choice: 49 1/2500 +Choice: 50 1/3200 +Choice: 51 1/4000 +Choice: 52 1/5000 +Choice: 53 1/6400 +Choice: 54 1/8000 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +Choice: 7 +/- 2 1/3 +Choice: 8 +/- 2 2/3 +Choice: 9 +/- 3 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 5D Mark III +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 + +0.867130 PTP2/ptp2/library.c(2): Device info: +0.868433 PTP2/ptp2/library.c(2): Manufacturer: Canon Inc. +0.869328 PTP2/ptp2/library.c(2): Model: Canon EOS 5D Mark III +0.869462 PTP2/ptp2/library.c(2): device version: 3-1.2.1 +0.869573 PTP2/ptp2/library.c(2): serial number: '4ff1a05e8014efd' +0.869688 PTP2/ptp2/library.c(2): Vendor extension ID: 0x0000000b +0.870038 PTP2/ptp2/library.c(2): Vendor extension version: 100 +0.870692 PTP2/ptp2/library.c(2): Vendor extension description: (null) +0.870860 PTP2/ptp2/library.c(2): Functional Mode: 0x0000 +0.870974 PTP2/ptp2/library.c(2): PTP Standard Version: 100 +0.871790 PTP2/ptp2/library.c(2): Supported operations: +0.871997 PTP2/ptp2/library.c(2): 0x1001 +0.872144 PTP2/ptp2/library.c(2): 0x1002 +0.872257 PTP2/ptp2/library.c(2): 0x1003 +0.872575 PTP2/ptp2/library.c(2): 0x1014 +0.873264 PTP2/ptp2/library.c(2): 0x1015 +0.873393 PTP2/ptp2/library.c(2): 0x1016 +0.873502 PTP2/ptp2/library.c(2): 0x91d5 +0.873816 PTP2/ptp2/library.c(2): 0x9801 +0.874490 PTP2/ptp2/library.c(2): 0x9802 +0.875955 PTP2/ptp2/library.c(2): 0x9803 +0.876833 PTP2/ptp2/library.c(2): 0x9804 +0.876965 PTP2/ptp2/library.c(2): 0x9805 +0.877075 PTP2/ptp2/library.c(2): 0x1006 +0.877182 PTP2/ptp2/library.c(2): 0x1004 +0.877288 PTP2/ptp2/library.c(2): 0x9101 +0.877581 PTP2/ptp2/library.c(2): 0x1005 +0.878262 PTP2/ptp2/library.c(2): 0x9102 +0.878386 PTP2/ptp2/library.c(2): 0x1007 +0.879178 PTP2/ptp2/library.c(2): 0x1008 +0.879304 PTP2/ptp2/library.c(2): 0x9103 +0.879413 PTP2/ptp2/library.c(2): 0x1009 +0.879515 PTP2/ptp2/library.c(2): 0x9104 +0.879859 PTP2/ptp2/library.c(2): 0x100a +0.880382 PTP2/ptp2/library.c(2): 0x101b +0.881340 PTP2/ptp2/library.c(2): 0x9107 +0.881986 PTP2/ptp2/library.c(2): 0x100c +0.883734 PTP2/ptp2/library.c(2): 0x100d +0.883887 PTP2/ptp2/library.c(2): 0x100b +0.883998 PTP2/ptp2/library.c(2): 0x9105 +0.884110 PTP2/ptp2/library.c(2): 0x100f +0.884215 PTP2/ptp2/library.c(2): 0x9106 +0.884885 PTP2/ptp2/library.c(2): 0x9110 +0.885015 PTP2/ptp2/library.c(2): 0x9127 +0.885127 PTP2/ptp2/library.c(2): 0x910b +0.885453 PTP2/ptp2/library.c(2): 0x9108 +0.886257 PTP2/ptp2/library.c(2): 0x9109 +0.886390 PTP2/ptp2/library.c(2): 0x910c +0.886500 PTP2/ptp2/library.c(2): 0x910e +0.886839 PTP2/ptp2/library.c(2): 0x910f +0.887508 PTP2/ptp2/library.c(2): 0x9117 +0.887636 PTP2/ptp2/library.c(2): 0x9120 +0.887748 PTP2/ptp2/library.c(2): 0x91f0 +0.888107 PTP2/ptp2/library.c(2): 0x9118 +0.888781 PTP2/ptp2/library.c(2): 0x9121 +0.888907 PTP2/ptp2/library.c(2): 0x91f1 +0.889014 PTP2/ptp2/library.c(2): 0x911d +0.889124 PTP2/ptp2/library.c(2): 0x910a +0.889955 PTP2/ptp2/library.c(2): 0x911b +0.890087 PTP2/ptp2/library.c(2): 0x911c +0.890197 PTP2/ptp2/library.c(2): 0x911e +0.890308 PTP2/ptp2/library.c(2): 0x911a +0.890416 PTP2/ptp2/library.c(2): 0x9153 +0.890765 PTP2/ptp2/library.c(2): 0x9154 +0.891446 PTP2/ptp2/library.c(2): 0x9160 +0.891582 PTP2/ptp2/library.c(2): 0x9155 +0.891692 PTP2/ptp2/library.c(2): 0x9157 +0.891799 PTP2/ptp2/library.c(2): 0x9158 +0.892638 PTP2/ptp2/library.c(2): 0x9159 +0.892765 PTP2/ptp2/library.c(2): 0x915a +0.892875 PTP2/ptp2/library.c(2): 0x911f +0.892981 PTP2/ptp2/library.c(2): 0x91fe +0.893088 PTP2/ptp2/library.c(2): 0x91ff +0.893422 PTP2/ptp2/library.c(2): 0x9128 +0.894095 PTP2/ptp2/library.c(2): 0x9129 +0.894225 PTP2/ptp2/library.c(2): 0x912d +0.894334 PTP2/ptp2/library.c(2): 0x912e +0.894441 PTP2/ptp2/library.c(2): 0x912f +0.895273 PTP2/ptp2/library.c(2): 0x912c +0.895402 PTP2/ptp2/library.c(2): 0x9130 +0.895506 PTP2/ptp2/library.c(2): 0x9131 +0.895956 PTP2/ptp2/library.c(2): 0x9132 +0.896137 PTP2/ptp2/library.c(2): 0x9133 +0.896814 PTP2/ptp2/library.c(2): 0x9134 +0.896952 PTP2/ptp2/library.c(2): 0x912b +0.897061 PTP2/ptp2/library.c(2): 0x9135 +0.897168 PTP2/ptp2/library.c(2): 0x9136 +0.898011 PTP2/ptp2/library.c(2): 0x9137 +0.898139 PTP2/ptp2/library.c(2): 0x9138 +0.898249 PTP2/ptp2/library.c(2): 0x9139 +0.898357 PTP2/ptp2/library.c(2): 0x913a +0.898655 PTP2/ptp2/library.c(2): 0x913b +0.899340 PTP2/ptp2/library.c(2): 0x913c +0.899472 PTP2/ptp2/library.c(2): 0x913d +0.899580 PTP2/ptp2/library.c(2): 0x913f +0.900396 PTP2/ptp2/library.c(2): 0x91da +0.900522 PTP2/ptp2/library.c(2): 0x91db +0.900632 PTP2/ptp2/library.c(2): 0x91dc +0.900734 PTP2/ptp2/library.c(2): 0x91dd +0.901022 PTP2/ptp2/library.c(2): 0x91de +0.901711 PTP2/ptp2/library.c(2): 0x91d8 +0.901846 PTP2/ptp2/library.c(2): 0x91d9 +0.901955 PTP2/ptp2/library.c(2): 0x91d7 +0.902062 PTP2/ptp2/library.c(2): 0x913e +0.902861 PTP2/ptp2/library.c(2): 0x9113 +0.903013 PTP2/ptp2/library.c(2): 0x9114 +0.903124 PTP2/ptp2/library.c(2): 0x9115 +0.903230 PTP2/ptp2/library.c(2): 0x9116 +0.903336 PTP2/ptp2/library.c(2): 0x91c0 +0.903699 PTP2/ptp2/library.c(2): 0x91c1 +0.903833 PTP2/ptp2/library.c(2): 0x91c2 +0.903993 PTP2/ptp2/library.c(2): 0x91c3 +0.904718 PTP2/ptp2/library.c(2): 0x91c4 +0.904846 PTP2/ptp2/library.c(2): 0x91c5 +0.904956 PTP2/ptp2/library.c(2): 0x91c6 +0.905063 PTP2/ptp2/library.c(2): 0x91c7 +0.905167 PTP2/ptp2/library.c(2): 0x91c8 +0.906152 PTP2/ptp2/library.c(2): 0x91c9 +0.906287 PTP2/ptp2/library.c(2): 0x91ca +0.906394 PTP2/ptp2/library.c(2): 0x91cb +0.906501 PTP2/ptp2/library.c(2): 0x91cc +0.906608 PTP2/ptp2/library.c(2): 0x91ce +0.906974 PTP2/ptp2/library.c(2): 0x91cf +0.907100 PTP2/ptp2/library.c(2): 0x91d0 +0.907210 PTP2/ptp2/library.c(2): 0x91d1 +0.907893 PTP2/ptp2/library.c(2): 0x91d2 +0.908021 PTP2/ptp2/library.c(2): 0x91e1 +0.908129 PTP2/ptp2/library.c(2): 0x91e2 +0.908236 PTP2/ptp2/library.c(2): 0x91e3 +0.909062 PTP2/ptp2/library.c(2): 0x91e4 +0.909221 PTP2/ptp2/library.c(2): 0x91e5 +0.909330 PTP2/ptp2/library.c(2): 0x91e6 +0.909436 PTP2/ptp2/library.c(2): 0x91e7 +0.909541 PTP2/ptp2/library.c(2): 0x91e8 +0.910365 PTP2/ptp2/library.c(2): 0x91e9 +0.910519 PTP2/ptp2/library.c(2): 0x91ea +0.910629 PTP2/ptp2/library.c(2): 0x91eb +0.910736 PTP2/ptp2/library.c(2): 0x91ec +0.910841 PTP2/ptp2/library.c(2): 0x91ed +0.911689 PTP2/ptp2/library.c(2): 0x91ee +0.911826 PTP2/ptp2/library.c(2): 0x91ef +0.911977 PTP2/ptp2/library.c(2): 0x91f8 +0.912125 PTP2/ptp2/library.c(2): 0x91f9 +0.912421 PTP2/ptp2/library.c(2): 0x91f2 +0.913099 PTP2/ptp2/library.c(2): 0x91f3 +0.913229 PTP2/ptp2/library.c(2): 0x91f4 +0.913985 PTP2/ptp2/library.c(2): 0x91f7 +0.914117 PTP2/ptp2/library.c(2): 0x91df +0.914228 PTP2/ptp2/library.c(2): 0x91fb +0.914556 PTP2/ptp2/library.c(2): 0x91fc +0.915184 PTP2/ptp2/library.c(2): 0x91fd +0.915339 PTP2/ptp2/library.c(2): 0x9122 +0.915451 PTP2/ptp2/library.c(2): 0x9123 +0.915555 PTP2/ptp2/library.c(2): 0x9124 +0.916498 PTP2/ptp2/library.c(2): 0x91f5 +0.916628 PTP2/ptp2/library.c(2): 0x91f6 +0.916739 PTP2/ptp2/library.c(2): 0x9052 +0.916849 PTP2/ptp2/library.c(2): 0x9053 +0.917146 PTP2/ptp2/library.c(2): 0x9057 +0.917831 PTP2/ptp2/library.c(2): 0x9058 +0.917965 PTP2/ptp2/library.c(2): 0x9059 +0.918080 PTP2/ptp2/library.c(2): 0x905a +0.918188 PTP2/ptp2/library.c(2): 0x905f +0.919009 PTP2/ptp2/library.c(2): Events Supported: +0.919144 PTP2/ptp2/library.c(2): 0x4009 +0.919254 PTP2/ptp2/library.c(2): 0x4004 +0.919362 PTP2/ptp2/library.c(2): 0x4005 +0.919470 PTP2/ptp2/library.c(2): 0x4003 +0.919830 PTP2/ptp2/library.c(2): 0x4002 +0.920010 PTP2/ptp2/library.c(2): 0x4007 +0.920726 PTP2/ptp2/library.c(2): 0xc101 +0.920853 PTP2/ptp2/library.c(2): Device Properties Supported: +0.920970 PTP2/ptp2/library.c(2): 0xd402 +0.921078 PTP2/ptp2/library.c(2): 0xd407 +0.921886 PTP2/ptp2/library.c(2): 0xd406 +0.922054 PTP2/ptp2/library.c(2): 0xd303 +0.922166 PTP2/ptp2/library.c(2): 0x5001 + +0000 78 2b 00 00 02 00 16 91-0b 00 00 00 10 00 00 00 x+.............. +0010 89 c1 00 00 a3 d1 00 00-00 00 00 00 10 00 00 00 ................ +0020 89 c1 00 00 d9 d1 00 00-00 00 00 00 10 00 00 00 ................ +0030 89 c1 00 00 d5 d1 00 00-00 00 00 00 10 00 00 00 ................ +0040 89 c1 00 00 a3 d1 00 00-00 00 00 00 10 00 00 00 ................ +0050 89 c1 00 00 05 d1 00 00-01 00 00 00 10 00 00 00 ................ +0060 89 c1 00 00 08 d1 00 00-00 00 00 00 10 00 00 00 ................ +0070 89 c1 00 00 06 d1 00 00-00 00 00 00 10 00 00 00 ................ +0080 89 c1 00 00 07 d1 00 00-03 00 00 00 10 00 00 00 ................ +0090 89 c1 00 00 09 d1 00 00-00 00 00 00 10 00 00 00 ................ +00a0 89 c1 00 00 0a d1 00 00-50 14 00 00 10 00 00 00 ........P....... +00b0 89 c1 00 00 0b d1 00 00-00 00 00 00 10 00 00 00 ................ +00c0 89 c1 00 00 0c d1 00 00-00 00 00 00 10 00 00 00 ................ +00d0 89 c1 00 00 0d d1 00 00-00 00 00 00 10 00 00 00 ................ +00e0 89 c1 00 00 0e d1 00 00-00 00 00 00 10 00 00 00 ................ +00f0 89 c1 00 00 0f d1 00 00-01 00 00 00 10 00 00 00 ................ +0100 89 c1 00 00 1b d1 00 00-19 06 00 00 10 00 00 00 ................ +0110 89 c1 00 00 14 d1 00 00-00 00 00 00 10 00 00 00 ................ +0120 89 c1 00 00 16 d1 00 00-85 02 00 80 10 00 00 00 ................ +0130 89 c1 00 00 19 d1 00 00-00 01 00 00 10 00 00 00 ................ +0140 89 c1 00 00 10 d1 00 00-81 00 00 00 10 00 00 00 ................ +0150 89 c1 00 00 01 d1 00 00-30 00 00 00 10 00 00 00 ........0....... +0160 89 c1 00 00 02 d1 00 00-75 00 00 00 10 00 00 00 ........u....... +0170 89 c1 00 00 03 d1 00 00-00 00 00 00 10 00 00 00 ................ +0180 89 c1 00 00 04 d1 00 00-00 00 00 00 10 00 00 00 ................ +0190 89 c1 00 00 1d d1 00 00-00 00 00 00 10 00 00 00 ................ +01a0 89 c1 00 00 11 d1 00 00-02 00 00 00 10 00 00 00 ................ +01b0 89 c1 00 00 12 d1 00 00-02 00 00 00 10 00 00 00 ................ +01c0 89 c1 00 00 13 d1 00 00-53 fb df 52 10 00 00 00 ........S..R.... +01d0 89 c1 00 00 7c d1 00 00-c3 5d e0 52 18 00 00 00 ....|....].R.... +01e0 89 c1 00 00 7d d1 00 00-0c 00 00 00 1e 00 00 00 ....}........... +01f0 20 fe ff ff 10 00 00 00-89 c1 00 00 7e d1 00 00 ...........~... + +1.148370 gphoto2-port(2): Reading 10240=0x2800 bytes from port... +1.154881 gphoto2-port(3): Hexdump of 10240 = 0x2800 bytes follows: +0000 01 00 00 00 20 00 00 00-89 c1 00 00 20 d1 00 00 .... ....... ... +0010 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +0020 03 00 00 00 20 00 00 00-89 c1 00 00 21 d1 00 00 .... .......!... +0030 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +0040 03 00 00 00 20 00 00 00-89 c1 00 00 22 d1 00 00 .... ......."... +0050 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +0060 03 00 00 00 28 00 00 00-89 c1 00 00 56 d1 00 00 ....(.......V... +0070 1c 00 00 00 00 00 00 00-03 00 00 00 00 00 00 00 ................ +0080 00 00 00 00 00 00 00 00-00 00 00 00 28 00 00 00 ............(... +0090 89 c1 00 00 50 d1 00 00-1c 00 00 00 00 00 00 00 ....P........... +00a0 03 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00b0 00 00 00 00 28 00 00 00-89 c1 00 00 51 d1 00 00 ....(.......Q... +00c0 1c 00 00 00 00 00 00 00-02 00 00 00 00 00 00 00 ................ +00d0 00 00 00 00 00 00 00 00-00 00 00 00 28 00 00 00 ............(... +00e0 89 c1 00 00 52 d1 00 00-1c 00 00 00 00 00 00 00 ....R........... +00f0 04 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0100 00 00 00 00 28 00 00 00-89 c1 00 00 53 d1 00 00 ....(.......S... +0110 1c 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0120 00 00 00 00 00 00 00 00-00 00 00 00 28 00 00 00 ............(... +0130 89 c1 00 00 54 d1 00 00-1c 00 00 00 00 00 00 00 ....T........... +0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0150 00 00 00 00 28 00 00 00-89 c1 00 00 55 d1 00 00 ....(.......U... +0160 1c 00 00 00 00 00 00 00-03 00 00 00 00 00 00 00 ................ +0170 00 00 00 00 00 00 00 00-00 00 00 00 2c 00 00 00 ............,... +0180 89 c1 00 00 60 d1 00 00-20 00 00 00 81 00 00 00 ....`... ....... +0190 00 00 00 00 03 00 00 00-00 00 00 00 00 00 00 00 ................ +01a0 00 00 00 00 00 00 00 00-2c 00 00 00 89 c1 00 00 ........,....... +01b0 61 d1 00 00 20 00 00 00-81 00 00 00 00 00 00 00 a... ........... +01c0 03 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01d0 00 00 00 00 2c 00 00 00-89 c1 00 00 62 d1 00 00 ....,.......b... +01e0 20 00 00 00 81 00 00 00-00 00 00 00 03 00 00 00 ............... +01f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0200 10 00 00 00 89 c1 00 00-1c d1 00 00 01 00 00 00 ................ +0210 6c 00 00 00 89 c1 00 00-a0 d1 00 00 60 00 00 00 l...........`... +0220 01 00 00 00 01 00 00 00-54 00 00 00 06 00 00 00 ........T....... +0230 01 01 00 00 01 00 00 00-00 00 00 00 02 01 00 00 ................ +0240 01 00 00 00 00 00 00 00-04 01 00 00 01 00 00 00 ................ +0250 00 00 00 00 05 01 00 00-01 00 00 00 00 00 00 00 ................ +0260 06 01 00 00 02 00 00 00-03 00 00 00 00 00 00 00 ................ +0270 08 01 00 00 01 00 00 00-00 00 00 00 38 00 00 00 ............8... +0280 89 c1 00 00 a0 d1 00 00-2c 00 00 00 01 00 00 00 ........,....... +0290 02 00 00 00 20 00 00 00-02 00 00 00 0a 04 00 00 .... ........... +02a0 01 00 00 00 07 00 00 00-0b 04 00 00 01 00 00 00 ................ +02b0 00 00 00 00 dc 00 00 00-89 c1 00 00 a0 d1 00 00 ................ +02c0 d0 00 00 00 01 00 00 00-04 00 00 00 c4 00 00 00 ................ +02d0 05 00 00 00 0c 07 00 00-20 00 00 00 00 00 00 00 ........ ....... +02e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0300 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0310 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0320 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0330 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0340 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0350 00 00 00 00 07 00 00 00-03 00 00 00 06 07 00 00 ................ +0360 01 00 00 00 00 00 00 00-0f 07 00 00 02 00 00 00 ................ +0370 00 00 00 00 02 00 00 00-0e 08 00 00 01 00 00 00 ................ +0380 00 00 00 00 13 08 00 00-01 00 00 00 00 00 00 00 ................ +0390 14 00 00 00 89 c1 00 00-a1 d1 00 00 08 00 00 00 ................ +03a0 00 00 00 00 10 00 00 00-89 c1 00 00 a8 d1 00 00 ................ +03b0 01 00 00 00 34 00 00 00-89 c1 00 00 a7 d1 00 00 ....4........... +03c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +03d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +03e0 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +03f0 ab d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0400 b0 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0410 b1 d1 00 00 01 00 00 00-10 00 00 00 89 c1 00 00 ................ +0420 b2 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0430 b3 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0440 b4 d1 00 00 00 00 00 00-3c 00 00 00 89 c1 00 00 ........<....... +0450 b5 d1 00 00 30 00 00 00-00 00 00 00 00 ff ff ff ....0........... +0460 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................ +0470 ff ff ff ff ff ff ff ff-ff ff ff ff 00 04 00 04 ................ +0480 00 04 00 04 10 00 00 00-89 c1 00 00 b6 d1 00 00 ................ +0490 50 14 00 00 10 00 00 00-89 c1 00 00 a9 d1 00 00 P............... +04a0 02 00 00 00 3c 00 00 00-89 c1 00 00 46 d1 00 00 ....<.......F... +04b0 30 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 0............... +04c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +04d0 00 00 00 00 00 00 00 00-eb 01 00 04 00 04 7e 02 ..............~. +04e0 10 00 00 00 89 c1 00 00-ac d1 00 00 12 ce 00 00 ................ +04f0 10 00 00 00 89 c1 00 00-aa d1 00 00 00 00 00 00 ................ +0500 10 00 00 00 89 c1 00 00-1e d1 00 00 01 00 01 00 ................ +0510 10 00 00 00 89 c1 00 00-1f d1 00 00 00 00 00 50 ...............P +0520 10 00 00 00 89 c1 00 00-d9 d1 00 00 00 00 00 00 ................ +0530 10 00 00 00 89 c1 00 00-d5 d1 00 00 00 00 00 00 ................ +0540 10 00 00 00 89 c1 00 00-ba d1 00 00 01 00 00 00 ................ +0550 28 00 00 00 89 c1 00 00-cc d1 00 00 1c 00 00 00 (............... +0560 00 00 00 00 00 00 00 00-1e 00 00 00 0f 00 00 00 ................ +0570 00 00 00 00 03 00 00 00-10 00 00 00 89 c1 00 00 ................ +0580 bc d1 00 00 01 00 00 00-10 00 00 00 89 c1 00 00 ................ +0590 b8 d1 00 00 00 00 00 00-22 02 00 00 89 c1 00 00 ........"....... +05a0 d3 d1 00 00 16 02 00 00-12 02 02 00 3d 00 3d 00 ............=.=. +05b0 80 16 00 0f 80 16 00 0f-be 00 be 00 be 00 be 00 ................ +05c0 be 00 be 00 be 00 be 00-be 00 be 00 be 00 be 00 ................ +05d0 be 00 be 00 be 00 be 00-be 00 be 00 be 00 be 00 ................ +05e0 be 00 be 00 be 00 be 00-be 00 be 00 be 00 be 00 ................ +05f0 be 00 be 00 be 00 be 00-be 00 be 00 be 00 be 00 ................ +0600 be 00 be 00 be 00 be 00-be 00 be 00 be 00 be 00 ................ +0610 be 00 be 00 be 00 be 00-be 00 be 00 be 00 be 00 ................ +0620 be 00 be 00 be 00 be 00-be 00 be 00 be 00 be 00 ................ +0630 be 00 bc 00 bc 00 bc 00-bc 00 bc 00 bc 00 bc 00 ................ +0640 bc 00 bc 00 bc 00 bc 00-bc 00 bc 00 bc 00 bc 00 ................ +0650 bc 00 bc 00 bc 00 bc 00-bc 00 bc 00 bc 00 bc 00 ................ +0660 bc 00 bc 00 bc 00 bc 00-bc 00 bc 00 bc 00 bc 00 ................ +0670 bc 00 bc 00 bc 00 bc 00-bc 00 bc 00 bc 00 bc 00 ................ +0680 bc 00 bc 00 bc 00 bc 00-bc 00 bc 00 bc 00 bc 00 ................ +0690 bc 00 bc 00 bc 00 bc 00-bc 00 bc 00 bc 00 bc 00 ................ +06a0 bc 00 bc 00 bc 00 bc 00-bc 00 bc 00 20 01 00 00 ............ ... +06b0 e0 fe f0 05 d0 04 b0 03-7f 02 20 01 00 00 10 fa .......... ..... +06c0 30 fb 50 fc 81 fd e0 fe-f0 05 d0 04 b0 03 7f 02 0.P............. +06d0 20 01 00 00 10 fa 30 fb-50 fc 81 fd e0 fe f0 05 .....0.P....... +06e0 d0 04 b0 03 7f 02 20 01-00 00 10 fa 30 fb 50 fc ...... .....0.P. +06f0 81 fd e0 fe f0 05 d0 04-b0 03 7f 02 20 01 00 00 ............ ... +0700 10 fa 30 fb 50 fc 81 fd-e0 fe f0 05 d0 04 b0 03 ..0.P........... +0710 7f 02 20 01 00 00 10 fa-30 fb 50 fc 81 fd e0 fe .. .....0.P..... +0720 20 01 00 00 e0 fe 78 fd-78 fd 78 fd 4f fe 4f fe .....x.x.x.O.O. +0730 4f fe 4f fe 4f fe 4f fe-4f fe 4f fe 4f fe 4f fe O.O.O.O.O.O.O.O. +0740 4f fe 29 ff 29 ff 29 ff-29 ff 29 ff 29 ff 29 ff O.).).).).).).). +0750 29 ff 29 ff 29 ff 29 ff-00 00 00 00 00 00 00 00 ).).).)......... +0760 00 00 00 00 00 00 00 00-00 00 00 00 00 00 d7 00 ................ +0770 d7 00 d7 00 d7 00 d7 00-d7 00 d7 00 d7 00 d7 00 ................ +0780 d7 00 d7 00 b1 01 b1 01-b1 01 b1 01 b1 01 b1 01 ................ +0790 b1 01 b1 01 b1 01 b1 01-b1 01 88 02 88 02 88 02 ................ +07a0 00 00 00 00 00 00 00 00-00 00 00 40 00 00 00 00 ...........@.... +07b0 00 00 00 00 00 00 00 00-ff ff 4c 00 00 00 89 c1 ..........L..... +07c0 00 00 d8 d1 00 00 45 46-33 30 30 6d 6d 20 66 2f ......EF300mm f/ +07d0 34 4c 20 49 53 20 55 53-4d 00 00 00 00 00 00 00 4L IS USM....... +07e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0800 00 00 00 00 00 00 10 00-00 00 89 c1 00 00 b7 d1 ................ +0810 00 00 03 00 00 00 40 00-00 00 89 c1 00 00 cb d1 ......@......... +0820 00 00 34 00 00 00 00 00-00 00 03 00 00 00 00 00 ..4............. +0830 00 00 00 00 03 80 00 00-00 00 03 00 00 00 48 00 ..............H. +0840 00 00 49 00 03 80 00 00-00 00 03 00 00 00 4b 00 ..I...........K. +0850 00 00 4c 00 03 80 1a 00-00 00 89 c1 00 00 db d1 ..L............. +0860 00 00 00 00 00 00 03 00-00 00 2f 00 00 00 28 00 ........../...(. +0870 10 00 00 00 89 c1 00 00-dc d1 00 00 00 00 00 00 ................ +0880 10 00 00 00 89 c1 00 00-a3 d1 00 00 00 00 00 00 ................ +0890 f0 01 00 00 89 c1 00 00-a4 d1 00 00 e4 01 00 00 ................ +08a0 30 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 0............... +08b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +08c0 31 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 1............... +08d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +08e0 32 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 2............... +08f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0900 33 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 3............... +0910 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0920 34 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 4............... +0930 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0940 35 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 5............... +0950 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0960 36 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 6............... +0970 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0980 37 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 7............... +0990 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +09a0 38 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 8............... +09b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +09c0 39 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 9............... +09d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +09e0 31 30 00 00 00 00 00 00-00 00 00 00 00 00 00 00 10.............. +09f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0a00 31 31 00 00 00 00 00 00-00 00 00 00 00 00 00 00 11.............. +0a10 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0a20 31 32 00 00 00 00 00 00-00 00 00 00 00 00 00 00 12.............. +0a30 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0a40 31 33 00 00 00 00 00 00-00 00 00 00 00 00 00 00 13.............. +0a50 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0a60 31 34 00 00 00 00 00 00-00 00 00 00 00 00 00 00 14.............. +0a70 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0a80 10 00 00 00 89 c1 00 00-df d1 00 00 00 00 00 00 ................ +0a90 10 00 00 00 89 c1 00 00-bd d1 00 00 00 00 00 00 ................ +0aa0 10 00 00 00 89 c1 00 00-c1 d1 00 00 00 00 01 00 ................ +0ab0 10 00 00 00 89 c1 00 00-c0 d1 00 00 00 00 00 00 ................ +0ac0 10 00 00 00 89 c1 00 00-bf d1 00 00 00 00 00 00 ................ +0ad0 10 00 00 00 89 c1 00 00-c4 d1 00 00 00 00 00 00 ................ +0ae0 10 00 00 00 89 c1 00 00-c2 d1 00 00 00 00 00 00 ................ +0af0 10 00 00 00 89 c1 00 00-c5 d1 00 00 01 00 00 00 ................ +0b00 10 00 00 00 89 c1 00 00-94 d1 00 00 00 00 00 00 ................ +0b10 10 00 00 00 89 c1 00 00-95 d1 00 00 02 00 00 00 ................ +0b20 10 00 00 00 89 c1 00 00-96 d1 00 00 2f 00 00 00 ............/... +0b30 10 00 00 00 89 c1 00 00-97 d1 00 00 00 00 00 00 ................ +0b40 10 00 00 00 89 c1 00 00-98 d1 00 00 ff 00 00 00 ................ +0b50 10 00 00 00 89 c1 00 00-dd d1 00 00 b1 00 00 00 ................ +0b60 10 00 00 00 89 c1 00 00-c7 d1 00 00 00 00 00 00 ................ +0b70 10 00 00 00 89 c1 00 00-99 d1 00 00 07 00 00 00 ................ +0b80 10 00 00 00 89 c1 00 00-38 d1 00 00 01 00 00 00 ........8....... +0b90 18 00 00 00 89 c1 00 00-39 d1 00 00 00 00 00 00 ........9....... +0ba0 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0bb0 3a d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 :............... +0bc0 3b d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ;............... +0bd0 3c d1 00 00 3f 00 00 00-24 00 00 00 89 c1 00 00 <...?...$....... +0be0 3d d1 00 00 18 00 00 00-00 00 00 00 00 00 00 00 =............... +0bf0 01 00 00 00 01 00 00 00-00 00 00 00 10 00 00 00 ................ +0c00 89 c1 00 00 4d d1 00 00-00 3c 00 00 10 00 00 00 ....M....<...... +0c10 89 c1 00 00 9a d1 00 00-00 00 00 00 10 00 00 00 ................ +0c20 89 c1 00 00 9c d1 00 00-01 00 00 00 0c 00 00 00 ................ +0c30 a4 c1 00 00 01 00 01 00-14 00 00 00 8a c1 00 00 ................ +0c40 05 d1 00 00 01 00 00 00-00 00 00 00 20 00 00 00 ............ ... +0c50 8a c1 00 00 08 d1 00 00-03 00 00 00 03 00 00 00 ................ +0c60 00 00 00 00 02 00 00 00-01 00 00 00 30 00 00 00 ............0... +0c70 8a c1 00 00 06 d1 00 00-03 00 00 00 07 00 00 00 ................ +0c80 00 00 00 00 04 00 00 00-05 00 00 00 13 00 00 00 ................ +0c90 14 00 00 00 10 00 00 00-11 00 00 00 24 00 00 00 ............$... +0ca0 8a c1 00 00 07 d1 00 00-03 00 00 00 04 00 00 00 ................ +0cb0 03 00 00 00 04 00 00 00-01 00 00 00 05 00 00 00 ................ +0cc0 38 00 00 00 8a c1 00 00-09 d1 00 00 03 00 00 00 8............... +0cd0 09 00 00 00 00 00 00 00-01 00 00 00 08 00 00 00 ................ +0ce0 02 00 00 00 03 00 00 00-04 00 00 00 05 00 00 00 ................ +0cf0 06 00 00 00 09 00 00 00-44 01 00 00 8a c1 00 00 ........D....... +0d00 0a d1 00 00 03 00 00 00-4c 00 00 00 c4 09 00 00 ........L....... +0d10 28 0a 00 00 8c 0a 00 00-f0 0a 00 00 54 0b 00 00 (...........T... +0d20 b8 0b 00 00 1c 0c 00 00-80 0c 00 00 e4 0c 00 00 ................ +0d30 48 0d 00 00 ac 0d 00 00-10 0e 00 00 74 0e 00 00 H...........t... +0d40 d8 0e 00 00 3c 0f 00 00-a0 0f 00 00 04 10 00 00 ....<........... +0d50 68 10 00 00 cc 10 00 00-30 11 00 00 94 11 00 00 h.......0....... +0d60 f8 11 00 00 5c 12 00 00-c0 12 00 00 24 13 00 00 ....\.......$... +0d70 88 13 00 00 ec 13 00 00-50 14 00 00 b4 14 00 00 ........P....... +0d80 18 15 00 00 7c 15 00 00-e0 15 00 00 44 16 00 00 ....|.......D... +0d90 a8 16 00 00 0c 17 00 00-70 17 00 00 d4 17 00 00 ........p....... +0da0 38 18 00 00 9c 18 00 00-00 19 00 00 64 19 00 00 8...........d... +0db0 c8 19 00 00 2c 1a 00 00-90 1a 00 00 f4 1a 00 00 ....,........... +0dc0 58 1b 00 00 bc 1b 00 00-20 1c 00 00 84 1c 00 00 X....... ....... +0dd0 e8 1c 00 00 4c 1d 00 00-b0 1d 00 00 14 1e 00 00 ....L........... +0de0 78 1e 00 00 dc 1e 00 00-40 1f 00 00 a4 1f 00 00 x.......@....... +0df0 08 20 00 00 6c 20 00 00-d0 20 00 00 34 21 00 00 . ..l ... ..4!.. +0e00 98 21 00 00 fc 21 00 00-60 22 00 00 c4 22 00 00 .!...!..`"...".. +0e10 28 23 00 00 8c 23 00 00-f0 23 00 00 54 24 00 00 (#...#...#..T$.. +0e20 b8 24 00 00 1c 25 00 00-80 25 00 00 e4 25 00 00 .$...%...%...%.. +0e30 48 26 00 00 ac 26 00 00-10 27 00 00 60 00 00 00 H&...&...'..`... +0e40 8a c1 00 00 0b d1 00 00-03 00 00 00 13 00 00 00 ................ +0e50 f7 ff ff ff f8 ff ff ff-f9 ff ff ff fa ff ff ff ................ +0e60 fb ff ff ff fc ff ff ff-fd ff ff ff fe ff ff ff ................ +0e70 ff ff ff ff 00 00 00 00-01 00 00 00 02 00 00 00 ................ +0e80 03 00 00 00 04 00 00 00-05 00 00 00 06 00 00 00 ................ +0e90 07 00 00 00 08 00 00 00-09 00 00 00 60 00 00 00 ............`... +0ea0 8a c1 00 00 0c d1 00 00-03 00 00 00 13 00 00 00 ................ +0eb0 f7 ff ff ff f8 ff ff ff-f9 ff ff ff fa ff ff ff ................ +0ec0 fb ff ff ff fc ff ff ff-fd ff ff ff fe ff ff ff ................ +0ed0 ff ff ff ff 00 00 00 00-01 00 00 00 02 00 00 00 ................ +0ee0 03 00 00 00 04 00 00 00-05 00 00 00 06 00 00 00 ................ +0ef0 07 00 00 00 08 00 00 00-09 00 00 00 24 00 00 00 ............$... +0f00 8a c1 00 00 0d d1 00 00-03 00 00 00 04 00 00 00 ................ +0f10 00 00 00 00 01 00 00 00-02 00 00 00 03 00 00 00 ................ +0f20 24 00 00 00 8a c1 00 00-0e d1 00 00 03 00 00 00 $............... +0f30 04 00 00 00 00 00 00 00-01 00 00 00 02 00 00 00 ................ +0f40 03 00 00 00 1c 00 00 00-8a c1 00 00 0f d1 00 00 ................ +0f50 03 00 00 00 02 00 00 00-01 00 00 00 02 00 00 00 ................ +0f60 14 00 00 00 8a c1 00 00-1b d1 00 00 01 00 00 00 ................ +0f70 00 00 00 00 14 00 00 00-8a c1 00 00 14 d1 00 00 ................ +0f80 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0f90 16 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0fa0 8a c1 00 00 19 d1 00 00-01 00 00 00 00 00 00 00 ................ +0fb0 14 00 00 00 8a c1 00 00-1a d1 00 00 01 00 00 00 ................ +0fc0 00 00 00 00 3c 00 00 00-8a c1 00 00 10 d1 00 00 ....<........... +0fd0 03 00 00 00 0a 00 00 00-87 00 00 00 81 00 00 00 ................ +0fe0 82 00 00 00 83 00 00 00-84 00 00 00 85 00 00 00 ................ +0ff0 86 00 00 00 21 00 00 00-22 00 00 00 23 00 00 00 ....!..."...#... +1000 14 00 00 00 8a c1 00 00-15 d1 00 00 07 00 00 00 ................ +1010 00 00 00 00 14 00 00 00-8a c1 00 00 01 d1 00 00 ................ +1020 03 00 00 00 00 00 00 00-f0 00 00 00 8a c1 00 00 ................ +1030 02 d1 00 00 03 00 00 00-37 00 00 00 10 00 00 00 ........7....... +1040 13 00 00 00 15 00 00 00-18 00 00 00 1b 00 00 00 ................ +1050 1d 00 00 00 20 00 00 00-23 00 00 00 25 00 00 00 .... ...#...%... +1060 28 00 00 00 2b 00 00 00-2d 00 00 00 30 00 00 00 (...+...-...0... +1070 33 00 00 00 35 00 00 00-38 00 00 00 3b 00 00 00 3...5...8...;... +1080 3d 00 00 00 40 00 00 00-43 00 00 00 45 00 00 00 =...@...C...E... +1090 48 00 00 00 4b 00 00 00-4d 00 00 00 50 00 00 00 H...K...M...P... +10a0 53 00 00 00 55 00 00 00-58 00 00 00 5b 00 00 00 S...U...X...[... +10b0 5d 00 00 00 60 00 00 00-63 00 00 00 65 00 00 00 ]...`...c...e... +10c0 68 00 00 00 6b 00 00 00-6d 00 00 00 70 00 00 00 h...k...m...p... +10d0 73 00 00 00 75 00 00 00-78 00 00 00 7b 00 00 00 s...u...x...{... +10e0 7d 00 00 00 80 00 00 00-83 00 00 00 85 00 00 00 }............... +10f0 88 00 00 00 8b 00 00 00-8d 00 00 00 90 00 00 00 ................ +1100 93 00 00 00 95 00 00 00-98 00 00 00 9b 00 00 00 ................ +1110 9d 00 00 00 a0 00 00 00-7c 00 00 00 8a c1 00 00 ........|....... +1120 03 d1 00 00 03 00 00 00-1a 00 00 00 00 00 00 00 ................ +1130 48 00 00 00 4b 00 00 00-4d 00 00 00 50 00 00 00 H...K...M...P... +1140 53 00 00 00 55 00 00 00-58 00 00 00 5b 00 00 00 S...U...X...[... +1150 5d 00 00 00 60 00 00 00-63 00 00 00 65 00 00 00 ]...`...c...e... +1160 68 00 00 00 6b 00 00 00-6d 00 00 00 70 00 00 00 h...k...m...p... +1170 73 00 00 00 75 00 00 00-78 00 00 00 7b 00 00 00 s...u...x...{... +1180 7d 00 00 00 80 00 00 00-83 00 00 00 85 00 00 00 }............... +1190 88 00 00 00 90 00 00 00-8a c1 00 00 04 d1 00 00 ................ +11a0 03 00 00 00 1f 00 00 00-d8 00 00 00 db 00 00 00 ................ +11b0 dd 00 00 00 e0 00 00 00-e3 00 00 00 e5 00 00 00 ................ +11c0 e8 00 00 00 eb 00 00 00-ed 00 00 00 f0 00 00 00 ................ +11d0 f3 00 00 00 f5 00 00 00-f8 00 00 00 fb 00 00 00 ................ +11e0 fd 00 00 00 00 00 00 00-03 00 00 00 05 00 00 00 ................ +11f0 08 00 00 00 0b 00 00 00-0d 00 00 00 10 00 00 00 ................ +1200 13 00 00 00 15 00 00 00-18 00 00 00 1b 00 00 00 ................ +1210 1d 00 00 00 20 00 00 00-23 00 00 00 25 00 00 00 .... ...#...%... +1220 28 00 00 00 14 00 00 00-8a c1 00 00 1d d1 00 00 (............... +1230 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +1240 11 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +1250 8a c1 00 00 12 d1 00 00-01 00 00 00 00 00 00 00 ................ +1260 14 00 00 00 8a c1 00 00-13 d1 00 00 07 00 00 00 ................ +1270 00 00 00 00 14 00 00 00-8a c1 00 00 7c d1 00 00 ............|... +1280 07 00 00 00 00 00 00 00-a0 01 00 00 8a c1 00 00 ................ +1290 7d d1 00 00 03 00 00 00-21 00 00 00 0c 00 00 00 }.......!....... +12a0 01 00 00 00 fd 02 00 00-0c 00 00 00 02 00 00 00 ................ +12b0 d0 02 00 00 0c 00 00 00-03 00 00 00 94 02 00 00 ................ +12c0 0c 00 00 00 04 00 00 00-58 02 00 00 0c 00 00 00 ........X....... +12d0 05 00 00 00 3a 02 00 00-0c 00 00 00 06 00 00 00 ....:........... +12e0 1c 02 00 00 0c 00 00 00-07 00 00 00 e0 01 00 00 ................ +12f0 0c 00 00 00 08 00 00 00-a4 01 00 00 0c 00 00 00 ................ +1300 09 00 00 00 86 01 00 00-0c 00 00 00 0a 00 00 00 ................ +1310 68 01 00 00 0c 00 00 00-0b 00 00 00 59 01 00 00 h...........Y... +1320 0c 00 00 00 0c 00 00 00-4a 01 00 00 0c 00 00 00 ........J....... +1330 0d 00 00 00 2c 01 00 00-0c 00 00 00 0e 00 00 00 ....,........... +1340 0e 01 00 00 0c 00 00 00-0f 00 00 00 f0 00 00 00 ................ +1350 0c 00 00 00 10 00 00 00-d2 00 00 00 0c 00 00 00 ................ +1360 11 00 00 00 b4 00 00 00-0c 00 00 00 12 00 00 00 ................ +1370 78 00 00 00 0c 00 00 00-13 00 00 00 3c 00 00 00 x...........<... +1380 0c 00 00 00 14 00 00 00-00 00 00 00 0c 00 00 00 ................ +1390 15 00 00 00 c4 ff ff ff-0c 00 00 00 16 00 00 00 ................ +13a0 88 ff ff ff 0c 00 00 00-17 00 00 00 4c ff ff ff ............L... +13b0 0c 00 00 00 18 00 00 00-2e ff ff ff 0c 00 00 00 ................ +13c0 19 00 00 00 10 ff ff ff-0c 00 00 00 1a 00 00 00 ................ +13d0 10 ff ff ff 0c 00 00 00-1b 00 00 00 d4 fe ff ff ................ +13e0 0c 00 00 00 1c 00 00 00-98 fe ff ff 0c 00 00 00 ................ +13f0 1d 00 00 00 5c fe ff ff-0c 00 00 00 1e 00 00 00 ....\........... +1400 20 fe ff ff 0c 00 00 00-1f 00 00 00 e4 fd ff ff ............... +1410 0c 00 00 00 20 00 00 00-a8 fd ff ff 0c 00 00 00 .... ........... +1420 21 00 00 00 0c 03 00 00-1c 00 00 00 8a c1 00 00 !............... +1430 7e d1 00 00 03 00 00 00-02 00 00 00 00 00 00 00 ~............... +1440 01 00 00 00 50 04 00 00-8a c1 00 00 20 d1 00 00 ....P....... ... +1450 03 00 00 00 23 00 00 00-01 00 00 00 10 00 00 00 ....#........... +1460 01 00 00 00 00 00 00 00-03 00 00 00 01 00 00 00 ................ +1470 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1480 01 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1490 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +14a0 01 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +14b0 01 00 00 00 0e 00 00 00-03 00 00 00 01 00 00 00 ................ +14c0 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +14d0 01 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +14e0 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +14f0 10 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1500 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +1510 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1520 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1530 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1540 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1550 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1560 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1570 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1580 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +1590 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +15a0 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +15b0 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +15c0 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +15d0 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +15e0 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +15f0 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1600 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1610 10 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1620 06 00 00 00 01 00 00 00-04 00 00 00 10 00 00 00 ................ +1630 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1640 10 00 00 00 06 00 00 00-01 00 00 00 04 00 00 00 ................ +1650 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1660 02 00 00 00 10 00 00 00-06 00 00 00 01 00 00 00 ................ +1670 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1680 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1690 01 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +16a0 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +16b0 06 00 00 00 01 00 00 00-04 00 00 00 10 00 00 00 ................ +16c0 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +16d0 10 00 00 00 06 00 00 00-01 00 00 00 04 00 00 00 ................ +16e0 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +16f0 02 00 00 00 10 00 00 00-06 00 00 00 01 00 00 00 ................ +1700 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1710 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1720 01 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1730 10 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1740 06 00 00 00 02 00 00 00-04 00 00 00 10 00 00 00 ................ +1750 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1760 10 00 00 00 06 00 00 00-02 00 00 00 04 00 00 00 ................ +1770 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1780 02 00 00 00 10 00 00 00-06 00 00 00 02 00 00 00 ................ +1790 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +17a0 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +17b0 02 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +17c0 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +17d0 06 00 00 00 02 00 00 00-04 00 00 00 10 00 00 00 ................ +17e0 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +17f0 10 00 00 00 06 00 00 00-02 00 00 00 04 00 00 00 ................ +1800 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1810 02 00 00 00 10 00 00 00-06 00 00 00 02 00 00 00 ................ +1820 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1830 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1840 02 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1850 10 00 00 00 03 00 00 00-01 00 00 00 10 00 00 00 ................ +1860 06 00 00 00 00 00 00 00-04 00 00 00 01 00 00 00 ................ +1870 10 00 00 00 06 00 00 00-01 00 00 00 04 00 00 00 ................ +1880 01 00 00 00 10 00 00 00-06 00 00 00 02 00 00 00 ................ +1890 04 00 00 00 50 04 00 00-8a c1 00 00 21 d1 00 00 ....P.......!... +18a0 03 00 00 00 23 00 00 00-01 00 00 00 10 00 00 00 ....#........... +18b0 01 00 00 00 00 00 00 00-03 00 00 00 01 00 00 00 ................ +18c0 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +18d0 01 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +18e0 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +18f0 01 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +1900 01 00 00 00 0e 00 00 00-03 00 00 00 01 00 00 00 ................ +1910 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1920 01 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1930 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1940 10 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1950 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +1960 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1970 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1980 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1990 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +19a0 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +19b0 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +19c0 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +19d0 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +19e0 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +19f0 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +1a00 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1a10 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1a20 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1a30 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1a40 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1a50 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1a60 10 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1a70 06 00 00 00 01 00 00 00-04 00 00 00 10 00 00 00 ................ +1a80 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1a90 10 00 00 00 06 00 00 00-01 00 00 00 04 00 00 00 ................ +1aa0 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1ab0 02 00 00 00 10 00 00 00-06 00 00 00 01 00 00 00 ................ +1ac0 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1ad0 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1ae0 01 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1af0 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +1b00 06 00 00 00 01 00 00 00-04 00 00 00 10 00 00 00 ................ +1b10 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +1b20 10 00 00 00 06 00 00 00-01 00 00 00 04 00 00 00 ................ +1b30 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1b40 02 00 00 00 10 00 00 00-06 00 00 00 01 00 00 00 ................ +1b50 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1b60 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1b70 01 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1b80 10 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1b90 06 00 00 00 02 00 00 00-04 00 00 00 10 00 00 00 ................ +1ba0 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1bb0 10 00 00 00 06 00 00 00-02 00 00 00 04 00 00 00 ................ +1bc0 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1bd0 02 00 00 00 10 00 00 00-06 00 00 00 02 00 00 00 ................ +1be0 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1bf0 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1c00 02 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1c10 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +1c20 06 00 00 00 02 00 00 00-04 00 00 00 10 00 00 00 ................ +1c30 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +1c40 10 00 00 00 06 00 00 00-02 00 00 00 04 00 00 00 ................ +1c50 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1c60 02 00 00 00 10 00 00 00-06 00 00 00 02 00 00 00 ................ +1c70 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1c80 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1c90 02 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1ca0 10 00 00 00 03 00 00 00-01 00 00 00 10 00 00 00 ................ +1cb0 06 00 00 00 00 00 00 00-04 00 00 00 01 00 00 00 ................ +1cc0 10 00 00 00 06 00 00 00-01 00 00 00 04 00 00 00 ................ +1cd0 01 00 00 00 10 00 00 00-06 00 00 00 02 00 00 00 ................ +1ce0 04 00 00 00 50 04 00 00-8a c1 00 00 22 d1 00 00 ....P......."... +1cf0 03 00 00 00 23 00 00 00-01 00 00 00 10 00 00 00 ....#........... +1d00 01 00 00 00 00 00 00 00-03 00 00 00 01 00 00 00 ................ +1d10 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1d20 01 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1d30 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1d40 01 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +1d50 01 00 00 00 0e 00 00 00-03 00 00 00 01 00 00 00 ................ +1d60 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1d70 01 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1d80 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1d90 10 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1da0 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +1db0 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1dc0 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1dd0 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1de0 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1df0 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1e00 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1e10 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1e20 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +1e30 06 00 00 00 00 00 00 00-04 00 00 00 10 00 00 00 ................ +1e40 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +1e50 10 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +1e60 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1e70 02 00 00 00 10 00 00 00-06 00 00 00 00 00 00 00 ................ +1e80 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1e90 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1ea0 00 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1eb0 10 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1ec0 06 00 00 00 01 00 00 00-04 00 00 00 10 00 00 00 ................ +1ed0 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +1ee0 10 00 00 00 06 00 00 00-01 00 00 00 04 00 00 00 ................ +1ef0 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1f00 02 00 00 00 10 00 00 00-06 00 00 00 01 00 00 00 ................ +1f10 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1f20 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1f30 01 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1f40 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +1f50 06 00 00 00 01 00 00 00-04 00 00 00 10 00 00 00 ................ +1f60 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +1f70 10 00 00 00 06 00 00 00-01 00 00 00 04 00 00 00 ................ +1f80 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +1f90 02 00 00 00 10 00 00 00-06 00 00 00 01 00 00 00 ................ +1fa0 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +1fb0 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +1fc0 01 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +1fd0 10 00 00 00 03 00 00 00-02 00 00 00 10 00 00 00 ................ +1fe0 06 00 00 00 02 00 00 00-04 00 00 00 10 00 00 00 ................ +1ff0 01 00 00 00 00 00 00 00-03 00 00 00 02 00 00 00 ................ +2000 10 00 00 00 06 00 00 00-02 00 00 00 04 00 00 00 ................ +2010 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +2020 02 00 00 00 10 00 00 00-06 00 00 00 02 00 00 00 ................ +2030 04 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +2040 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +2050 02 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +2060 01 00 00 00 02 00 00 00-02 00 00 00 10 00 00 00 ................ +2070 06 00 00 00 02 00 00 00-04 00 00 00 10 00 00 00 ................ +2080 01 00 00 00 0e 00 00 00-03 00 00 00 02 00 00 00 ................ +2090 10 00 00 00 06 00 00 00-02 00 00 00 04 00 00 00 ................ +20a0 10 00 00 00 01 00 00 00-0e 00 00 00 02 00 00 00 ................ +20b0 02 00 00 00 10 00 00 00-06 00 00 00 02 00 00 00 ................ +20c0 04 00 00 00 10 00 00 00-01 00 00 00 0f 00 00 00 ................ +20d0 03 00 00 00 02 00 00 00-10 00 00 00 06 00 00 00 ................ +20e0 02 00 00 00 04 00 00 00-10 00 00 00 01 00 00 00 ................ +20f0 10 00 00 00 03 00 00 00-01 00 00 00 10 00 00 00 ................ +2100 06 00 00 00 00 00 00 00-04 00 00 00 01 00 00 00 ................ +2110 10 00 00 00 06 00 00 00-01 00 00 00 04 00 00 00 ................ +2120 01 00 00 00 10 00 00 00-06 00 00 00 02 00 00 00 ................ +2130 04 00 00 00 14 00 00 00-8a c1 00 00 56 d1 00 00 ............V... +2140 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +2150 50 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 P............... +2160 8a c1 00 00 51 d1 00 00-07 00 00 00 00 00 00 00 ....Q........... +2170 14 00 00 00 8a c1 00 00-52 d1 00 00 07 00 00 00 ........R....... +2180 00 00 00 00 14 00 00 00-8a c1 00 00 53 d1 00 00 ............S... +2190 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +21a0 54 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 T............... +21b0 8a c1 00 00 55 d1 00 00-07 00 00 00 00 00 00 00 ....U........... +21c0 14 00 00 00 8a c1 00 00-60 d1 00 00 07 00 00 00 ........`....... +21d0 00 00 00 00 14 00 00 00-8a c1 00 00 61 d1 00 00 ............a... +21e0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +21f0 62 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 b............... +2200 8a c1 00 00 70 d1 00 00-07 00 00 00 00 00 00 00 ....p........... +2210 14 00 00 00 8a c1 00 00-71 d1 00 00 07 00 00 00 ........q....... +2220 00 00 00 00 14 00 00 00-8a c1 00 00 72 d1 00 00 ............r... +2230 07 00 00 00 00 00 00 00-20 00 00 00 8a c1 00 00 ........ ....... +2240 1c d1 00 00 03 00 00 00-03 00 00 00 01 00 00 00 ................ +2250 05 00 00 00 04 00 00 00-14 00 00 00 8a c1 00 00 ................ +2260 a0 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +2270 8a c1 00 00 a1 d1 00 00-07 00 00 00 00 00 00 00 ................ +2280 14 00 00 00 8a c1 00 00-a2 d1 00 00 07 00 00 00 ................ +2290 00 00 00 00 14 00 00 00-8a c1 00 00 a8 d1 00 00 ................ +22a0 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +22b0 a7 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +22c0 8a c1 00 00 ab d1 00 00-01 00 00 00 00 00 00 00 ................ +22d0 34 00 00 00 8a c1 00 00-b0 d1 00 00 03 00 00 00 4............... +22e0 08 00 00 00 00 00 00 00-01 00 00 00 02 00 00 00 ................ +22f0 03 00 00 00 04 00 00 00-05 00 00 00 06 00 00 00 ................ +2300 07 00 00 00 1c 00 00 00-8a c1 00 00 b1 d1 00 00 ................ +2310 03 00 00 00 02 00 00 00-00 00 00 00 01 00 00 00 ................ +2320 14 00 00 00 8a c1 00 00-b2 d1 00 00 07 00 00 00 ................ +2330 00 00 00 00 14 00 00 00-8a c1 00 00 b3 d1 00 00 ................ +2340 07 00 00 00 00 00 00 00-3c 00 00 00 8a c1 00 00 ........<....... +2350 b4 d1 00 00 03 00 00 00-0a 00 00 00 00 00 00 00 ................ +2360 01 00 00 00 08 00 00 00-02 00 00 00 03 00 00 00 ................ +2370 04 00 00 00 05 00 00 00-06 00 00 00 09 00 00 00 ................ +2380 00 80 00 00 14 00 00 00-8a c1 00 00 b5 d1 00 00 ................ +2390 07 00 00 00 00 00 00 00-44 01 00 00 8a c1 00 00 ........D....... +23a0 b6 d1 00 00 03 00 00 00-4c 00 00 00 c4 09 00 00 ........L....... +23b0 28 0a 00 00 8c 0a 00 00-f0 0a 00 00 54 0b 00 00 (...........T... +23c0 b8 0b 00 00 1c 0c 00 00-80 0c 00 00 e4 0c 00 00 ................ +23d0 48 0d 00 00 ac 0d 00 00-10 0e 00 00 74 0e 00 00 H...........t... +23e0 d8 0e 00 00 3c 0f 00 00-a0 0f 00 00 04 10 00 00 ....<........... +23f0 68 10 00 00 cc 10 00 00-30 11 00 00 94 11 00 00 h.......0....... +2400 f8 11 00 00 5c 12 00 00-c0 12 00 00 24 13 00 00 ....\.......$... +2410 88 13 00 00 ec 13 00 00-50 14 00 00 b4 14 00 00 ........P....... +2420 18 15 00 00 7c 15 00 00-e0 15 00 00 44 16 00 00 ....|.......D... +2430 a8 16 00 00 0c 17 00 00-70 17 00 00 d4 17 00 00 ........p....... +2440 38 18 00 00 9c 18 00 00-00 19 00 00 64 19 00 00 8...........d... +2450 c8 19 00 00 2c 1a 00 00-90 1a 00 00 f4 1a 00 00 ....,........... +2460 58 1b 00 00 bc 1b 00 00-20 1c 00 00 84 1c 00 00 X....... ....... +2470 e8 1c 00 00 4c 1d 00 00-b0 1d 00 00 14 1e 00 00 ....L........... +2480 78 1e 00 00 dc 1e 00 00-40 1f 00 00 a4 1f 00 00 x.......@....... +2490 08 20 00 00 6c 20 00 00-d0 20 00 00 34 21 00 00 . ..l ... ..4!.. +24a0 98 21 00 00 fc 21 00 00-60 22 00 00 c4 22 00 00 .!...!..`"...".. +24b0 28 23 00 00 8c 23 00 00-f0 23 00 00 54 24 00 00 (#...#...#..T$.. +24c0 b8 24 00 00 1c 25 00 00-80 25 00 00 e4 25 00 00 .$...%...%...%.. +24d0 48 26 00 00 ac 26 00 00-10 27 00 00 28 00 00 00 H&...&...'..(... +24e0 8a c1 00 00 a9 d1 00 00-03 00 00 00 05 00 00 00 ................ +24f0 00 00 00 00 02 00 00 00-04 00 00 00 08 00 00 00 ................ +2500 ff 00 00 00 14 00 00 00-8a c1 00 00 46 d1 00 00 ............F... +2510 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +2520 ac d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +2530 8a c1 00 00 ad d1 00 00-01 00 00 00 00 00 00 00 ................ +2540 14 00 00 00 8a c1 00 00-ae d1 00 00 01 00 00 00 ................ +2550 00 00 00 00 14 00 00 00-8a c1 00 00 aa d1 00 00 ................ +2560 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +2570 1e d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +2580 8a c1 00 00 1f d1 00 00-01 00 00 00 00 00 00 00 ................ +2590 14 00 00 00 8a c1 00 00-af d1 00 00 01 00 00 00 ................ +25a0 00 00 00 00 14 00 00 00-8a c1 00 00 d0 d1 00 00 ................ +25b0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +25c0 d1 d1 00 00 07 00 00 00-00 00 00 00 3c 00 00 00 ............<... +25d0 8a c1 00 00 d9 d1 00 00-03 00 00 00 0a 00 00 00 ................ +25e0 00 00 00 00 03 00 00 00-05 00 00 00 08 00 00 00 ................ +25f0 0b 00 00 00 0d 00 00 00-10 00 00 00 13 00 00 00 ................ +2600 15 00 00 00 18 00 00 00-14 00 00 00 8a c1 00 00 ................ +2610 d5 d1 00 00 03 00 00 00-00 00 00 00 20 00 00 00 ............ ... +2620 8a c1 00 00 ba d1 00 00-03 00 00 00 03 00 00 00 ................ +2630 01 00 00 00 02 00 00 00-00 00 00 00 14 00 00 00 ................ +2640 8a c1 00 00 cc d1 00 00-03 00 00 00 00 00 00 00 ................ +2650 20 00 00 00 8a c1 00 00-bc d1 00 00 03 00 00 00 ............... +2660 03 00 00 00 01 00 00 00-00 00 00 00 03 00 00 00 ................ +2670 14 00 00 00 8a c1 00 00-b8 d1 00 00 03 00 00 00 ................ +2680 00 00 00 00 14 00 00 00-8a c1 00 00 d3 d1 00 00 ................ +2690 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +26a0 d8 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +26b0 8a c1 00 00 7f d1 00 00-01 00 00 00 00 00 00 00 ................ +26c0 14 00 00 00 8a c1 00 00-b7 d1 00 00 01 00 00 00 ................ +26d0 00 00 00 00 14 00 00 00-8a c1 00 00 cb d1 00 00 ................ +26e0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +26f0 db d1 00 00 07 00 00 00-00 00 00 00 1c 00 00 00 ................ +2700 8a c1 00 00 dc d1 00 00-03 00 00 00 02 00 00 00 ................ +2710 00 00 00 00 01 00 00 00-14 00 00 00 8a c1 00 00 ................ +2720 a3 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +2730 8a c1 00 00 a4 d1 00 00-07 00 00 00 00 00 00 00 ................ +2740 14 00 00 00 8a c1 00 00-df d1 00 00 03 00 00 00 ................ +2750 00 00 00 00 14 00 00 00-8a c1 00 00 bd d1 00 00 ................ +2760 01 00 00 00 00 00 00 00-24 00 00 00 8a c1 00 00 ........$....... +2770 c1 d1 00 00 03 00 00 00-04 00 00 00 00 00 00 00 ................ +2780 01 00 00 00 02 00 00 00-03 00 00 00 14 00 00 00 ................ +2790 8a c1 00 00 c0 d1 00 00-01 00 00 00 00 00 00 00 ................ +27a0 14 00 00 00 8a c1 00 00-bf d1 00 00 07 00 00 00 ................ +27b0 00 00 00 00 14 00 00 00-8a c1 00 00 c4 d1 00 00 ................ +27c0 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +27d0 c2 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +27e0 8a c1 00 00 c5 d1 00 00-03 00 00 00 00 00 00 00 ................ +27f0 24 00 00 00 8a c1 00 00-94 d1 00 00 03 00 00 00 $............... + +1.201317 gphoto2-port(2): Reading 376=0x178 bytes from port... +1.202043 gphoto2-port(3): Hexdump of 376 = 0x178 bytes follows: +0000 04 00 00 00 00 00 00 00-02 00 00 00 07 00 00 00 ................ +0010 01 00 00 00 14 00 00 00-8a c1 00 00 95 d1 00 00 ................ +0020 03 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0030 96 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +0040 8a c1 00 00 97 d1 00 00-03 00 00 00 00 00 00 00 ................ +0050 14 00 00 00 8a c1 00 00-98 d1 00 00 01 00 00 00 ................ +0060 00 00 00 00 14 00 00 00-8a c1 00 00 dd d1 00 00 ................ +0070 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0080 c7 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +0090 8a c1 00 00 99 d1 00 00-01 00 00 00 00 00 00 00 ................ +00a0 14 00 00 00 8a c1 00 00-38 d1 00 00 01 00 00 00 ........8....... +00b0 00 00 00 00 14 00 00 00-8a c1 00 00 39 d1 00 00 ............9... +00c0 01 00 00 00 00 00 00 00-1c 00 00 00 8a c1 00 00 ................ +00d0 3a d1 00 00 03 00 00 00-02 00 00 00 00 00 00 00 :............... +00e0 01 00 00 00 14 00 00 00-8a c1 00 00 3b d1 00 00 ............;... +00f0 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0100 3c d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 <............... +0110 8a c1 00 00 3d d1 00 00-07 00 00 00 00 00 00 00 ....=........... +0120 14 00 00 00 8a c1 00 00-4d d1 00 00 07 00 00 00 ........M....... +0130 00 00 00 00 14 00 00 00-8a c1 00 00 9d d1 00 00 ................ +0140 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0150 9a d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0160 8a c1 00 00 9c d1 00 00-01 00 00 00 00 00 00 00 ................ +0170 08 00 00 00 00 00 00 00- ........ + +1.202648 ptp2/ptp_usb_getresp(2): reading response +1.202710 ptp2/ptp_usb_getpacket(2): getting next ptp packet +1.202806 gphoto2-port(2): Reading 512=0x200 bytes from port... +1.203195 gphoto2-port(2): Could only read 12 out of 512 byte(s) +1.204122 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-0b 00 00 00 ....... .... + +1.204416 ptp(2): event 0: EOS prop d1a3 info record, datasize is 4 +1.204566 ptp(2): event 0: Unknown EOS property d1a3, datasize is 4, using uint32 +1.204688 ptp(2): 0: 0x 0 +1.207464 ptp(2): event 0: currentvalue of d1a3 is 0 +1.207833 ptp(2): event 1: EOS prop d1d9 info record, datasize is 4 +1.208044 ptp(2): event 1: currentvalue of d1d9 is 0 +1.208214 ptp(2): event 2: EOS prop d1d5 info record, datasize is 4 +1.208345 ptp(2): event 2: Unknown EOS property d1d5, datasize is 4 +1.208704 ptp(2): 0: 00 +1.208822 ptp(2): 1: 00 +1.208933 ptp(2): 2: 00 +1.209041 ptp(2): 3: 00 +1.209156 ptp(2): event 3: EOS prop d1a3 info record, datasize is 4 +1.209305 ptp(2): event 3: Unknown EOS property d1a3, datasize is 4, using uint32 +1.209421 ptp(2): 0: 0x 0 +1.209536 ptp(2): event 3: currentvalue of d1a3 is 0 +1.209653 ptp(2): event 4: EOS prop d105 info record, datasize is 4 +1.209776 ptp(2): event 4: currentvalue of d105 is 1 +1.209893 ptp(2): event 5: EOS prop d108 info record, datasize is 4 +1.210015 ptp(2): event 5: currentvalue of d108 is 0 +1.210137 ptp(2): event 6: EOS prop d106 info record, datasize is 4 +1.210259 ptp(2): event 6: currentvalue of d106 is 0 +1.210376 ptp(2): event 7: EOS prop d107 info record, datasize is 4 +1.210498 ptp(2): event 7: currentvalue of d107 is 3 +1.210616 ptp(2): event 8: EOS prop d109 info record, datasize is 4 +1.211452 ptp(2): event 8: currentvalue of d109 is 0 +1.211591 ptp(2): event 9: EOS prop d10a info record, datasize is 4 +1.211721 ptp(2): event 9: Unknown EOS property d10a, datasize is 4, using uint32 +1.211843 ptp(2): 0: 0x 1450 +1.211955 ptp(2): event 9: currentvalue of d10a is 1450 +1.212782 ptp(2): event 10: EOS prop d10b info record, datasize is 4 +1.212944 ptp(2): event 11: EOS prop d10c info record, datasize is 4 +1.213074 ptp(2): event 12: EOS prop d10d info record, datasize is 4 +1.213956 ptp(2): event 12: currentvalue of d10d is 0 +1.214099 ptp(2): event 13: EOS prop d10e info record, datasize is 4 +1.214226 ptp(2): event 13: currentvalue of d10e is 0 +1.214346 ptp(2): event 14: EOS prop d10f info record, datasize is 4 +1.215247 ptp(2): event 14: currentvalue of d10f is 1 +1.215400 ptp(2): event 15: EOS prop d11b info record, datasize is 4 +1.216375 ptp(2): event 15: currentvalue of d11b is 619 +1.216522 ptp(2): event 16: EOS prop d114 info record, datasize is 4 +1.216647 ptp(2): event 16: currentvalue of d114 is 0 +1.216767 ptp(2): event 17: EOS prop d116 info record, datasize is 4 +1.217169 ptp(2): event 17: currentvalue of d116 is 80000285 +1.217311 ptp(2): event 18: EOS prop d119 info record, datasize is 4 +1.217437 ptp(2): event 18: currentvalue of d119 is 100 +1.218177 ptp(2): event 19: EOS prop d110 info record, datasize is 4 +1.218334 ptp(2): event 19: currentvalue of d110 is 81 +1.218459 ptp(2): event 20: EOS prop d101 info record, datasize is 4 +1.218582 ptp(2): event 20: currentvalue of d101 is 30 +1.219478 ptp(2): event 21: EOS prop d102 info record, datasize is 4 +1.219642 ptp(2): event 21: currentvalue of d102 is 75 +1.219768 ptp(2): event 22: EOS prop d103 info record, datasize is 4 +1.219891 ptp(2): event 22: currentvalue of d103 is 0 +1.220014 ptp(2): event 23: EOS prop d104 info record, datasize is 4 +1.220982 ptp(2): event 23: currentvalue of d104 is 0 +1.221138 ptp(2): event 24: EOS prop d11d info record, datasize is 4 +1.221266 ptp(2): event 24: currentvalue of d11d is 0 +1.222172 ptp(2): event 25: EOS prop d111 info record, datasize is 4 +1.222332 ptp(2): event 25: currentvalue of d111 is 2 +1.222455 ptp(2): event 26: EOS prop d112 info record, datasize is 4 +1.223340 ptp(2): event 26: currentvalue of d112 is 2 +1.223512 ptp(2): event 27: EOS prop d113 info record, datasize is 4 +1.224386 ptp(2): event 27: currentvalue of d113 is 52dffb53 +1.224560 ptp(2): event 28: EOS prop d17c info record, datasize is 4 +1.224692 ptp(2): event 28: Unknown EOS property d17c, datasize is 4 +1.225012 ptp(2): 0: c3 +1.225158 ptp(2): 1: 5d +1.225886 ptp(2): 2: e0 +1.226011 ptp(2): 3: 52 +1.226126 ptp(2): event 29: EOS prop d17d info record, datasize is 12 +1.226478 ptp(2): event 29: Unknown EOS property d17d, datasize is 12 +1.227212 ptp(2): 0: 0c +1.227341 ptp(2): 1: 00 +1.227451 ptp(2): 2: 00 +1.227560 ptp(2): 3: 00 +1.228406 ptp(2): 4: 1e +1.229166 ptp(2): 5: 00 +1.229295 ptp(2): 6: 00 +1.229601 ptp(2): 7: 00 +1.229747 ptp(2): 8: 20 +1.230408 ptp(2): 9: fe +1.230539 ptp(2): 10: ff +1.230648 ptp(2): 11: ff +1.231496 ptp(2): event 30: EOS prop d17e info record, datasize is 4 +1.231655 ptp(2): event 30: Unknown EOS property d17e, datasize is 4 +1.231780 ptp(2): 0: 01 +1.232203 ptp(2): 1: 00 +1.232887 ptp(2): 2: 00 +1.233020 ptp(2): 3: 00 +1.233139 ptp(2): event 31: EOS prop d120 info record, datasize is 20 +1.233279 ptp(2): event 31: decoded imageformat, currentvalue of d120 is 300 +1.234185 ptp(2): event 32: EOS prop d121 info record, datasize is 20 +1.235003 ptp(2): event 32: decoded imageformat, currentvalue of d121 is 300 +1.235147 ptp(2): event 33: EOS prop d122 info record, datasize is 20 +1.235516 ptp(2): event 33: decoded imageformat, currentvalue of d122 is 300 +1.236317 ptp(2): event 34: EOS prop d156 info record, datasize is 28 +1.236474 ptp(2): event 34: Unknown EOS property d156, datasize is 28 +1.236597 ptp(2): 0: 1c +1.236711 ptp(2): 1: 00 +1.237576 ptp(2): 2: 00 +1.237705 ptp(2): 3: 00 +1.237819 ptp(2): 4: 00 +1.237928 ptp(2): 5: 00 +1.238038 ptp(2): 6: 00 +1.238381 ptp(2): 7: 00 +1.239049 ptp(2): 8: 03 +1.239179 ptp(2): 9: 00 +1.239291 ptp(2): 10: 00 +1.240153 ptp(2): 11: 00 +1.240287 ptp(2): 12: 00 +1.240398 ptp(2): 13: 00 +1.240700 ptp(2): 14: 00 +1.240857 ptp(2): 15: 00 +1.241515 ptp(2): 16: 00 +1.241647 ptp(2): 17: 00 +1.241760 ptp(2): 18: 00 +1.241873 ptp(2): 19: 00 +1.242706 ptp(2): 20: 00 +1.242834 ptp(2): 21: 00 +1.242944 ptp(2): 22: 00 +1.243053 ptp(2): 23: 00 +1.243392 ptp(2): 24: 00 +1.244045 ptp(2): 25: 00 +1.244175 ptp(2): 26: 00 +1.244286 ptp(2): 27: 00 +1.244597 ptp(2): event 35: EOS prop d150 info record, datasize is 28 +1.245299 ptp(2): event 35: Unknown EOS property d150, datasize is 28 +1.246180 ptp(2): 0: 1c +1.246312 ptp(2): 1: 00 +1.246623 ptp(2): 2: 00 +1.246773 ptp(2): 3: 00 +1.246886 ptp(2): 4: 00 +1.247545 ptp(2): 5: 00 +1.247675 ptp(2): 6: 00 +1.247788 ptp(2): 7: 00 +1.248672 ptp(2): 8: 03 +1.248806 ptp(2): 9: 00 +1.248918 ptp(2): 10: 00 +1.249029 ptp(2): 11: 00 +1.249358 ptp(2): 12: 00 +1.250023 ptp(2): 13: 00 +1.250150 ptp(2): 14: 00 +1.250263 ptp(2): 15: 00 +1.251104 ptp(2): 16: 00 +1.251244 ptp(2): 17: 00 +1.251355 ptp(2): 18: 00 +1.251465 ptp(2): 19: 00 +1.251573 ptp(2): 20: 00 +1.251897 ptp(2): 21: 00 +1.252564 ptp(2): 22: 00 +1.252690 ptp(2): 23: 00 +1.252802 ptp(2): 24: 00 +1.252913 ptp(2): 25: 00 +1.253244 ptp(2): 26: 00 +1.253918 ptp(2): 27: 00 +1.254054 ptp(2): event 36: EOS prop d151 info record, datasize is 28 +1.254898 ptp(2): event 36: Unknown EOS property d151, datasize is 28 +1.255037 ptp(2): 0: 1c +1.255149 ptp(2): 1: 00 +1.255460 ptp(2): 2: 00 +1.256267 ptp(2): 3: 00 +1.256396 ptp(2): 4: 00 +1.256509 ptp(2): 5: 00 +1.256849 ptp(2): 6: 00 +1.256984 ptp(2): 7: 00 +1.257095 ptp(2): 8: 02 +1.257204 ptp(2): 9: 00 +1.257870 ptp(2): 10: 00 +1.258006 ptp(2): 11: 00 +1.258121 ptp(2): 12: 00 +1.258233 ptp(2): 13: 00 +1.259067 ptp(2): 14: 00 +1.259234 ptp(2): 15: 00 +1.259351 ptp(2): 16: 00 +1.259462 ptp(2): 17: 00 +1.259572 ptp(2): 18: 00 +1.259864 ptp(2): 19: 00 +1.260550 ptp(2): 20: 00 +1.261329 ptp(2): 21: 00 +1.261457 ptp(2): 22: 00 +1.261569 ptp(2): 23: 00 +1.261897 ptp(2): 24: 00 +1.262020 ptp(2): 25: 00 +1.262131 ptp(2): 26: 00 +1.262238 ptp(2): 27: 00 +1.262921 ptp(2): event 37: EOS prop d152 info record, datasize is 28 +1.263081 ptp(2): event 37: Unknown EOS property d152, datasize is 28 +1.263203 ptp(2): 0: 1c +1.264119 ptp(2): 1: 00 +1.264258 ptp(2): 2: 00 +1.264370 ptp(2): 3: 00 +1.264482 ptp(2): 4: 00 +1.264844 ptp(2): 5: 00 +1.264980 ptp(2): 6: 00 +1.265096 ptp(2): 7: 00 +1.265857 ptp(2): 8: 04 +1.265992 ptp(2): 9: 00 +1.266102 ptp(2): 10: 00 +1.266212 ptp(2): 11: 00 +1.267074 ptp(2): 12: 00 +1.267207 ptp(2): 13: 00 +1.267322 ptp(2): 14: 00 +1.267437 ptp(2): 15: 00 +1.267739 ptp(2): 16: 00 +1.268427 ptp(2): 17: 00 +1.268555 ptp(2): 18: 00 +1.268668 ptp(2): 19: 00 +1.269482 ptp(2): 20: 00 +1.270289 ptp(2): 21: 00 +1.270417 ptp(2): 22: 00 +1.270755 ptp(2): 23: 00 +1.270879 ptp(2): 24: 00 +1.271528 ptp(2): 25: 00 +1.271658 ptp(2): 26: 00 +1.271770 ptp(2): 27: 00 +1.272658 ptp(2): event 38: EOS prop d153 info record, datasize is 28 +1.272820 ptp(2): event 38: Unknown EOS property d153, datasize is 28 +1.272944 ptp(2): 0: 1c +1.273252 ptp(2): 1: 00 +1.273949 ptp(2): 2: 00 +1.274080 ptp(2): 3: 00 +1.274192 ptp(2): 4: 00 +1.274300 ptp(2): 5: 00 +1.275572 ptp(2): 6: 00 +1.276055 ptp(2): 7: 00 +1.276918 ptp(2): 8: 00 +1.278259 ptp(2): 9: 00 +1.278418 ptp(2): 10: 00 +1.278532 ptp(2): 11: 00 +1.278845 ptp(2): 12: 00 +1.278979 ptp(2): 13: 00 +1.279089 ptp(2): 14: 00 +1.279736 ptp(2): 15: 00 +1.279871 ptp(2): 16: 00 +1.280027 ptp(2): 17: 00 +1.280927 ptp(2): 18: 00 +1.281064 ptp(2): 19: 00 +1.281174 ptp(2): 20: 00 +1.281476 ptp(2): 21: 00 +1.282151 ptp(2): 22: 00 +1.282283 ptp(2): 23: 00 +1.283117 ptp(2): 24: 00 +1.283252 ptp(2): 25: 00 +1.283363 ptp(2): 26: 00 +1.283663 ptp(2): 27: 00 +1.284341 ptp(2): event 39: EOS prop d154 info record, datasize is 28 +1.284502 ptp(2): event 39: Unknown EOS property d154, datasize is 28 +1.284853 ptp(2): 0: 1c +1.284985 ptp(2): 1: 00 +1.285747 ptp(2): 2: 00 +1.285889 ptp(2): 3: 00 +1.286005 ptp(2): 4: 00 +1.286893 ptp(2): 5: 00 +1.287030 ptp(2): 6: 00 +1.287142 ptp(2): 7: 00 +1.287253 ptp(2): 8: 00 +1.287362 ptp(2): 9: 00 +1.287720 ptp(2): 10: 00 +1.287855 ptp(2): 11: 00 +1.288583 ptp(2): 12: 00 +1.288711 ptp(2): 13: 00 +1.288824 ptp(2): 14: 00 +1.288931 ptp(2): 15: 00 +1.289040 ptp(2): 16: 00 +1.289914 ptp(2): 17: 00 +1.290692 ptp(2): 18: 00 +1.291531 ptp(2): 19: 00 +1.291666 ptp(2): 20: 00 +1.291779 ptp(2): 21: 00 +1.291889 ptp(2): 22: 00 +1.291998 ptp(2): 23: 00 +1.292864 ptp(2): 24: 00 +1.294207 ptp(2): 25: 00 +1.295029 ptp(2): 26: 00 +1.295158 ptp(2): 27: 00 +1.295471 ptp(2): event 40: EOS prop d155 info record, datasize is 28 +1.295724 ptp(2): event 40: Unknown EOS property d155, datasize is 28 +1.296501 ptp(2): 0: 1c +1.296635 ptp(2): 1: 00 +1.296748 ptp(2): 2: 00 +1.296857 ptp(2): 3: 00 +1.297695 ptp(2): 4: 00 +1.297824 ptp(2): 5: 00 +1.297933 ptp(2): 6: 00 +1.298237 ptp(2): 7: 00 +1.298390 ptp(2): 8: 03 +1.299046 ptp(2): 9: 00 +1.299173 ptp(2): 10: 00 +1.299958 ptp(2): 11: 00 +1.300121 ptp(2): 12: 00 +1.300235 ptp(2): 13: 00 +1.300345 ptp(2): 14: 00 +1.300452 ptp(2): 15: 00 +1.300556 ptp(2): 16: 00 +1.301431 ptp(2): 17: 00 +1.302200 ptp(2): 18: 00 +1.302332 ptp(2): 19: 00 +1.302624 ptp(2): 20: 00 +1.302781 ptp(2): 21: 00 +1.303429 ptp(2): 22: 00 +1.303559 ptp(2): 23: 00 +1.303671 ptp(2): 24: 00 +1.304033 ptp(2): 25: 00 +1.304736 ptp(2): 26: 00 +1.304873 ptp(2): 27: 00 +1.304993 ptp(2): event 41: EOS prop d160 info record, datasize is 32 +1.305903 ptp(2): event 41: Unknown EOS property d160, datasize is 32 +1.306041 ptp(2): 0: 20 +1.306151 ptp(2): 1: 00 +1.306259 ptp(2): 2: 00 +1.306619 ptp(2): 3: 00 +1.307307 ptp(2): 4: 81 +1.307441 ptp(2): 5: 00 +1.307549 ptp(2): 6: 00 +1.307660 ptp(2): 7: 00 +1.307974 ptp(2): 8: 00 +1.308650 ptp(2): 9: 00 +1.309421 ptp(2): 10: 00 +1.310239 ptp(2): 11: 00 +1.310366 ptp(2): 12: 03 +1.310475 ptp(2): 13: 00 +1.310807 ptp(2): 14: 00 +1.311464 ptp(2): 15: 00 +1.311590 ptp(2): 16: 00 +1.311700 ptp(2): 17: 00 +1.311804 ptp(2): 18: 00 +1.312221 ptp(2): 19: 00 +1.312890 ptp(2): 20: 00 +1.313023 ptp(2): 21: 00 +1.313132 ptp(2): 22: 00 +1.313242 ptp(2): 23: 00 +1.314069 ptp(2): 24: 00 +1.314200 ptp(2): 25: 00 +1.314310 ptp(2): 26: 00 +1.314419 ptp(2): 27: 00 +1.314528 ptp(2): 28: 00 +1.315386 ptp(2): 29: 00 +1.315519 ptp(2): 30: 00 +1.315633 ptp(2): 31: 00 +1.316579 ptp(2): event 42: EOS prop d161 info record, datasize is 32 +1.316742 ptp(2): event 42: Unknown EOS property d161, datasize is 32 +1.316863 ptp(2): 0: 20 +1.316977 ptp(2): 1: 00 +1.317324 ptp(2): 2: 00 +1.317449 ptp(2): 3: 00 +1.317558 ptp(2): 4: 81 +1.318229 ptp(2): 5: 00 +1.318372 ptp(2): 6: 00 +1.318488 ptp(2): 7: 00 +1.319253 ptp(2): 8: 00 +1.319384 ptp(2): 9: 00 +1.319716 ptp(2): 10: 00 +1.319846 ptp(2): 11: 00 +1.319995 ptp(2): 12: 03 +1.320157 ptp(2): 13: 00 +1.320818 ptp(2): 14: 00 +1.320948 ptp(2): 15: 00 +1.321058 ptp(2): 16: 00 +1.321892 ptp(2): 17: 00 +1.322048 ptp(2): 18: 00 +1.322161 ptp(2): 19: 00 +1.322271 ptp(2): 20: 00 +1.323154 ptp(2): 21: 00 +1.323934 ptp(2): 22: 00 +1.324067 ptp(2): 23: 00 +1.324411 ptp(2): 24: 00 +1.324536 ptp(2): 25: 00 +1.324646 ptp(2): 26: 00 +1.324755 ptp(2): 27: 00 +1.325410 ptp(2): 28: 00 +1.325542 ptp(2): 29: 00 +1.326441 ptp(2): 30: 00 +1.326612 ptp(2): 31: 00 +1.326735 ptp(2): event 43: EOS prop d162 info record, datasize is 32 +1.327078 ptp(2): event 43: Unknown EOS property d162, datasize is 32 +1.327800 ptp(2): 0: 20 +1.327933 ptp(2): 1: 00 +1.328825 ptp(2): 2: 00 +1.328954 ptp(2): 3: 00 +1.329058 ptp(2): 4: 81 +1.329362 ptp(2): 5: 00 +1.329511 ptp(2): 6: 00 +1.330122 ptp(2): 7: 00 +1.330275 ptp(2): 8: 00 +1.330388 ptp(2): 9: 00 +1.330502 ptp(2): 10: 00 +1.331328 ptp(2): 11: 00 +1.331489 ptp(2): 12: 03 +1.331603 ptp(2): 13: 00 +1.332424 ptp(2): 14: 00 +1.332555 ptp(2): 15: 00 +1.332669 ptp(2): 16: 00 +1.332779 ptp(2): 17: 00 +1.332889 ptp(2): 18: 00 +1.333721 ptp(2): 19: 00 +1.333853 ptp(2): 20: 00 +1.333965 ptp(2): 21: 00 +1.334076 ptp(2): 22: 00 +1.334181 ptp(2): 23: 00 +1.334529 ptp(2): 24: 00 +1.335181 ptp(2): 25: 00 +1.335311 ptp(2): 26: 00 +1.335425 ptp(2): 27: 00 +1.335537 ptp(2): 28: 00 +1.335910 ptp(2): 29: 00 +1.337232 ptp(2): 30: 00 +1.338094 ptp(2): 31: 00 +1.338232 ptp(2): event 44: EOS prop d11c info record, datasize is 4 +1.338374 ptp(2): event 44: currentvalue of d11c is 1 +1.338764 ptp(2): event 45: EOS prop d1a0 info record, datasize is 96 +1.338986 ptp(2): event 45: decoded custom function, currentvalue of d1a0 is 10,c189,d1a3,0, +1.339707 ptp(2): event 46: EOS prop d1a0 info record, datasize is 44 +1.339870 ptp(2): event 46: currentvalue of d1a0 is , +1.340015 ptp(2): event 46: decoded custom function, currentvalue of d1a0 is 10,c189,d1a3,0, +1.340354 ptp(2): event 47: EOS prop d1a0 info record, datasize is 208 +1.341102 ptp(2): event 47: currentvalue of d1a0 is ? +1.341260 ptp(2): event 47: decoded custom function, currentvalue of d1a0 is 10,c189,d1a3,0, +1.342081 ptp(2): event 48: EOS prop d1a1 info record, datasize is 8 +1.342283 ptp(2): event 48: Unknown EOS property d1a1, datasize is 8 +1.342655 ptp(2): 0: 08 +1.343326 ptp(2): 1: 00 +1.343454 ptp(2): 2: 00 +1.343560 ptp(2): 3: 00 +1.343666 ptp(2): 4: 00 +1.343773 ptp(2): 5: 00 +1.344676 ptp(2): 6: 00 +1.344803 ptp(2): 7: 00 +1.344921 ptp(2): event 49: EOS prop d1a8 info record, datasize is 4 +1.345886 ptp(2): event 49: Unknown EOS property d1a8, datasize is 4, using uint32 +1.346033 ptp(2): 0: 0x 1 +1.346146 ptp(2): event 49: currentvalue of d1a8 is 1 +1.346264 ptp(2): event 50: EOS prop d1a7 info record, datasize is 40 +1.347217 ptp(2): event 50: Unknown EOS property d1a7, datasize is 40 +1.347355 ptp(2): 0: 00 +1.347465 ptp(2): 1: 00 +1.348309 ptp(2): 2: 00 +1.348437 ptp(2): 3: 00 +1.348549 ptp(2): 4: 00 +1.348660 ptp(2): 5: 00 +1.348969 ptp(2): 6: 00 +1.349676 ptp(2): 7: 00 +1.349810 ptp(2): 8: 00 +1.349922 ptp(2): 9: 00 +1.350032 ptp(2): 10: 00 +1.350884 ptp(2): 11: 00 +1.351016 ptp(2): 12: 00 +1.351132 ptp(2): 13: 00 +1.351244 ptp(2): 14: 00 +1.352136 ptp(2): 15: 00 +1.352273 ptp(2): 16: 00 +1.352385 ptp(2): 17: 00 +1.352494 ptp(2): 18: 00 +1.353313 ptp(2): 19: 00 +1.353474 ptp(2): 20: 00 +1.353589 ptp(2): 21: 00 +1.354438 ptp(2): 22: 00 +1.354572 ptp(2): 23: 00 +1.354682 ptp(2): 24: 00 +1.354793 ptp(2): 25: 00 +1.355099 ptp(2): 26: 00 +1.355866 ptp(2): 27: 00 +1.356001 ptp(2): 28: 00 +1.356111 ptp(2): 29: 00 +1.356474 ptp(2): 30: 00 +1.357152 ptp(2): 31: 00 +1.357284 ptp(2): 32: 00 +1.357396 ptp(2): 33: 00 +1.357508 ptp(2): 34: 00 +1.358346 ptp(2): 35: 00 +1.358474 ptp(2): 36: 00 +1.358587 ptp(2): 37: 00 +1.358699 ptp(2): 38: 00 +1.358806 ptp(2): 39: 00 +1.359690 ptp(2): event 51: EOS prop d1ab info record, datasize is 4 +1.359855 ptp(2): event 51: Unknown EOS property d1ab, datasize is 4, using uint32 +1.360013 ptp(2): 0: 0x 0 +1.360898 ptp(2): event 51: currentvalue of d1ab is 0 +1.361039 ptp(2): event 52: EOS prop d1b0 info record, datasize is 4 +1.361177 ptp(2): event 52: currentvalue of d1b0 is 0 +1.361297 ptp(2): event 53: EOS prop d1b1 info record, datasize is 4 +1.361423 ptp(2): event 53: currentvalue of d1b1 is 1 +1.362334 ptp(2): event 54: EOS prop d1b2 info record, datasize is 4 +1.362490 ptp(2): event 54: Unknown EOS property d1b2, datasize is 4, using uint32 +1.362614 ptp(2): 0: 0x 0 +1.363460 ptp(2): event 54: currentvalue of d1b2 is 0 +1.363599 ptp(2): event 55: EOS prop d1b3 info record, datasize is 4 +1.363738 ptp(2): event 55: Unknown EOS property d1b3, datasize is 4, using uint32 +1.364146 ptp(2): 0: 0x 0 +1.364275 ptp(2): event 55: currentvalue of d1b3 is 0 +1.364397 ptp(2): event 56: EOS prop d1b4 info record, datasize is 4 +1.365123 ptp(2): event 56: Unknown EOS property d1b4, datasize is 4, using uint32 +1.365266 ptp(2): 0: 0x 0 +1.365379 ptp(2): event 56: currentvalue of d1b4 is 0 +1.365824 ptp(2): event 57: EOS prop d1b5 info record, datasize is 48 +1.365988 ptp(2): event 57: Unknown EOS property d1b5, datasize is 48, using uint32 +1.366711 ptp(2): 0: 0x 30 +1.366842 ptp(2): 1: 0x 0 +1.366953 ptp(2): 2: 0xffffff00 +1.367060 ptp(2): 3: 0xffffffff +1.367382 ptp(2): 4: 0xffffffff +1.368125 ptp(2): 5: 0xffffffff +1.368262 ptp(2): 6: 0xffffffff +1.368374 ptp(2): 7: 0xffffffff +1.369227 ptp(2): 8: 0xffffffff +1.370009 ptp(2): 9: 0xffffffff +1.370345 ptp(2): 10: 0x 4000400 +1.370495 ptp(2): 11: 0x 4000400 +1.371161 ptp(2): event 57: currentvalue of d1b5 is 30 +1.371308 ptp(2): event 58: EOS prop d1b6 info record, datasize is 4 +1.371454 ptp(2): event 58: Unknown EOS property d1b6, datasize is 4, using uint32 +1.372373 ptp(2): 0: 0x 1450 +1.372518 ptp(2): event 58: currentvalue of d1b6 is 1450 +1.372642 ptp(2): event 59: EOS prop d1a9 info record, datasize is 4 +1.373525 ptp(2): event 59: currentvalue of d1a9 is 2 +1.373677 ptp(2): event 60: EOS prop d146 info record, datasize is 48 +1.373816 ptp(2): event 60: Unknown EOS property d146, datasize is 48 +1.373936 ptp(2): 0: 30 +1.374048 ptp(2): 1: 00 +1.374430 ptp(2): 2: 00 +1.375121 ptp(2): 3: 00 +1.375260 ptp(2): 4: 00 +1.375374 ptp(2): 5: 00 +1.376296 ptp(2): 6: 00 +1.376424 ptp(2): 7: 00 +1.376537 ptp(2): 8: 00 +1.376880 ptp(2): 9: 00 +1.376995 ptp(2): 10: 00 +1.377103 ptp(2): 11: 00 +1.377759 ptp(2): 12: 00 +1.377891 ptp(2): 13: 00 +1.378004 ptp(2): 14: 00 +1.378112 ptp(2): 15: 00 +1.378217 ptp(2): 16: 00 +1.379052 ptp(2): 17: 00 +1.379182 ptp(2): 18: 00 +1.379292 ptp(2): 19: 00 +1.379400 ptp(2): 20: 00 +1.379507 ptp(2): 21: 00 +1.380336 ptp(2): 22: 00 +1.380465 ptp(2): 23: 00 +1.380575 ptp(2): 24: 00 +1.380682 ptp(2): 25: 00 +1.381017 ptp(2): 26: 00 +1.381144 ptp(2): 27: 00 +1.381256 ptp(2): 28: 00 +1.381367 ptp(2): 29: 00 +1.382056 ptp(2): 30: 00 +1.382188 ptp(2): 31: 00 +1.382302 ptp(2): 32: 00 +1.383112 ptp(2): 33: 00 +1.383275 ptp(2): 34: 00 +1.383389 ptp(2): 35: 00 +1.383501 ptp(2): 36: 00 +1.383815 ptp(2): 37: 00 +1.384565 ptp(2): 38: 00 +1.384696 ptp(2): 39: 00 +1.384805 ptp(2): 40: eb +1.385124 ptp(2): 41: 01 +1.386471 ptp(2): 42: 00 +1.387316 ptp(2): 43: 04 +1.387447 ptp(2): 44: 00 +1.387556 ptp(2): 45: 04 +1.387934 ptp(2): 46: 7e +1.388058 ptp(2): 47: 02 +1.388178 ptp(2): event 61: EOS prop d1ac info record, datasize is 4 +1.388875 ptp(2): event 61: currentvalue of d1ac is ce12 +1.389018 ptp(2): event 62: EOS prop d1aa info record, datasize is 4 +1.389153 ptp(2): event 62: Unknown EOS property d1aa, datasize is 4, using uint32 +1.389273 ptp(2): 0: 0x 0 +1.390134 ptp(2): event 62: currentvalue of d1aa is 0 +1.390298 ptp(2): event 63: EOS prop d11e info record, datasize is 4 +1.390448 ptp(2): event 63: currentvalue of d11e is 10001 +1.390569 ptp(2): event 64: EOS prop d11f info record, datasize is 4 +1.391461 ptp(2): event 64: currentvalue of d11f is 50000000 +1.392315 ptp(2): event 65: EOS prop d1d9 info record, datasize is 4 +1.392465 ptp(2): event 65: currentvalue of d1d9 is 0 +1.392587 ptp(2): event 66: EOS prop d1d5 info record, datasize is 4 +1.393490 ptp(2): event 66: Unknown EOS property d1d5, datasize is 4 +1.393627 ptp(2): 0: 00 +1.393738 ptp(2): 1: 00 +1.394051 ptp(2): 2: 00 +1.394726 ptp(2): 3: 00 +1.394860 ptp(2): event 67: EOS prop d1ba info record, datasize is 4 +1.395005 ptp(2): event 67: Unknown EOS property d1ba, datasize is 4, using uint32 +1.395127 ptp(2): 0: 0x 1 +1.396115 ptp(2): event 67: currentvalue of d1ba is 1 +1.396254 ptp(2): event 68: EOS prop d1cc info record, datasize is 28 +1.396396 ptp(2): event 68: Unknown EOS property d1cc, datasize is 28 +1.397305 ptp(2): 0: 1c +1.397439 ptp(2): 1: 00 +1.397552 ptp(2): 2: 00 +1.397661 ptp(2): 3: 00 +1.397770 ptp(2): 4: 00 +1.398598 ptp(2): 5: 00 +1.398759 ptp(2): 6: 00 +1.399535 ptp(2): 7: 00 +1.399665 ptp(2): 8: 00 +1.399774 ptp(2): 9: 00 +1.400131 ptp(2): 10: 00 +1.400809 ptp(2): 11: 00 +1.400938 ptp(2): 12: 1e +1.401049 ptp(2): 13: 00 +1.401894 ptp(2): 14: 00 +1.402030 ptp(2): 15: 00 +1.402144 ptp(2): 16: 0f +1.402255 ptp(2): 17: 00 +1.402363 ptp(2): 18: 00 +1.402734 ptp(2): 19: 00 +1.403372 ptp(2): 20: 00 +1.403529 ptp(2): 21: 00 +1.403642 ptp(2): 22: 00 +1.404495 ptp(2): 23: 00 +1.404632 ptp(2): 24: 03 +1.404745 ptp(2): 25: 00 +1.404857 ptp(2): 26: 00 +1.404966 ptp(2): 27: 00 +1.405277 ptp(2): event 69: EOS prop d1bc info record, datasize is 4 +1.406097 ptp(2): event 69: Unknown EOS property d1bc, datasize is 4, using uint32 +1.406242 ptp(2): 0: 0x 1 +1.406358 ptp(2): event 69: currentvalue of d1bc is 1 +1.407240 ptp(2): event 70: EOS prop d1b8 info record, datasize is 4 +1.407404 ptp(2): event 70: Unknown EOS property d1b8, datasize is 4, using uint32 +1.407742 ptp(2): 0: 0x 0 +1.407892 ptp(2): event 70: currentvalue of d1b8 is 0 +1.408654 ptp(2): event 71: EOS prop d1d3 info record, datasize is 534 +1.408818 ptp(2): event 71: Unknown EOS property d1d3, datasize is 534 +1.408941 ptp(2): 0: 16 +1.409054 ptp(2): 1: 02 +1.409942 ptp(2): 2: 00 +1.410104 ptp(2): 3: 00 +1.410216 ptp(2): 4: 12 +1.411004 ptp(2): 5: 02 +1.411135 ptp(2): 6: 02 +1.411248 ptp(2): 7: 00 +1.411616 ptp(2): 8: 3d +1.411738 ptp(2): 9: 00 +1.411848 ptp(2): 10: 3d +1.411955 ptp(2): 11: 00 +1.412692 ptp(2): 12: 80 +1.412821 ptp(2): 13: 16 +1.412929 ptp(2): 14: 00 +1.413039 ptp(2): 15: 0f +1.413412 ptp(2): 16: 80 +1.413534 ptp(2): 17: 16 +1.413646 ptp(2): 18: 00 +1.414312 ptp(2): 19: 0f +1.414440 ptp(2): 20: be +1.414554 ptp(2): 21: 00 +1.415384 ptp(2): 22: be +1.415519 ptp(2): 23: 00 +1.415630 ptp(2): 24: be +1.416655 ptp(2): 25: 00 +1.416784 ptp(2): 26: be +1.416895 ptp(2): 27: 00 +1.417202 ptp(2): 28: be +1.417873 ptp(2): 29: 00 +1.418649 ptp(2): 30: be +1.418791 ptp(2): 31: 00 +1.418905 ptp(2): 32: be +1.419770 ptp(2): 33: 00 +1.419901 ptp(2): 34: be +1.420670 ptp(2): 35: 00 +1.420798 ptp(2): 36: be +1.420910 ptp(2): 37: 00 +1.421249 ptp(2): 38: be +1.421908 ptp(2): 39: 00 +1.422041 ptp(2): 40: be +1.422152 ptp(2): 41: 00 +1.422260 ptp(2): 42: be +1.423081 ptp(2): 43: 00 +1.423240 ptp(2): 44: be +1.423352 ptp(2): 45: 00 +1.424206 ptp(2): 46: be +1.424340 ptp(2): 47: 00 +1.424454 ptp(2): 48: be +1.424562 ptp(2): 49: 00 +1.424670 ptp(2): 50: be +1.425536 ptp(2): 51: 00 +1.426441 ptp(2): 52: be +1.426577 ptp(2): 53: 00 +1.426684 ptp(2): 54: be +1.427001 ptp(2): 55: 00 +1.427136 ptp(2): 56: be +1.427247 ptp(2): 57: 00 +1.427354 ptp(2): 58: be +1.427461 ptp(2): 59: 00 +1.428118 ptp(2): 60: be +1.428253 ptp(2): 61: 00 +1.428363 ptp(2): 62: be +1.429125 ptp(2): 63: 00 +1.429254 ptp(2): 64: be +1.429567 ptp(2): 65: 00 +1.429711 ptp(2): 66: be +1.430347 ptp(2): 67: 00 +1.430473 ptp(2): 68: be +1.430583 ptp(2): 69: 00 +1.430907 ptp(2): 70: be +1.431581 ptp(2): 71: 00 +1.431711 ptp(2): 72: be +1.431819 ptp(2): 73: 00 +1.432691 ptp(2): 74: be +1.433480 ptp(2): 75: 00 +1.433614 ptp(2): 76: be +1.433922 ptp(2): 77: 00 +1.434588 ptp(2): 78: be +1.434714 ptp(2): 79: 00 +1.434822 ptp(2): 80: be +1.434932 ptp(2): 81: 00 +1.435852 ptp(2): 82: be +1.436001 ptp(2): 83: 00 +1.436112 ptp(2): 84: be +1.436224 ptp(2): 85: 00 +1.437126 ptp(2): 86: be +1.437262 ptp(2): 87: 00 +1.438066 ptp(2): 88: be +1.438197 ptp(2): 89: 00 +1.438306 ptp(2): 90: be +1.438413 ptp(2): 91: 00 +1.439226 ptp(2): 92: be +1.439384 ptp(2): 93: 00 +1.439499 ptp(2): 94: be +1.440337 ptp(2): 95: 00 +1.440467 ptp(2): 96: be +1.440578 ptp(2): 97: 00 +1.440684 ptp(2): 98: be +1.441012 ptp(2): 99: 00 +1.441144 ptp(2): 100: be +1.441254 ptp(2): 101: 00 +1.441361 ptp(2): 102: be +1.442024 ptp(2): 103: 00 +1.442155 ptp(2): 104: be +1.442267 ptp(2): 105: 00 +1.442376 ptp(2): 106: be +1.443197 ptp(2): 107: 00 +1.443328 ptp(2): 108: be +1.443436 ptp(2): 109: 00 +1.443542 ptp(2): 110: be +1.443651 ptp(2): 111: 00 +1.444022 ptp(2): 112: be +1.444147 ptp(2): 113: 00 +1.444257 ptp(2): 114: be +1.444949 ptp(2): 115: 00 +1.445084 ptp(2): 116: be +1.445195 ptp(2): 117: 00 +1.445832 ptp(2): 118: be +1.445973 ptp(2): 119: 00 +1.446086 ptp(2): 120: be +1.446190 ptp(2): 121: 00 +1.446294 ptp(2): 122: be +1.446400 ptp(2): 123: 00 +1.447500 ptp(2): 124: be +1.447658 ptp(2): 125: 00 +1.447770 ptp(2): 126: be +1.448635 ptp(2): 127: 00 +1.448790 ptp(2): 128: be +1.448905 ptp(2): 129: 00 +1.449013 ptp(2): 130: be +1.449851 ptp(2): 131: 00 +1.449979 ptp(2): 132: be +1.450090 ptp(2): 133: 00 +1.450197 ptp(2): 134: be +1.450517 ptp(2): 135: 00 +1.451191 ptp(2): 136: be +1.451321 ptp(2): 137: 00 +1.451431 ptp(2): 138: be +1.451760 ptp(2): 139: 00 +1.452417 ptp(2): 140: be +1.452545 ptp(2): 141: 00 +1.452656 ptp(2): 142: bc +1.453495 ptp(2): 143: 00 +1.453636 ptp(2): 144: bc +1.453748 ptp(2): 145: 00 +1.453857 ptp(2): 146: bc +1.454156 ptp(2): 147: 00 +1.454831 ptp(2): 148: bc +1.454961 ptp(2): 149: 00 +1.455069 ptp(2): 150: bc +1.455987 ptp(2): 151: 00 +1.456191 ptp(2): 152: bc +1.456521 ptp(2): 153: 00 +1.456665 ptp(2): 154: bc +1.456778 ptp(2): 155: 00 +1.456887 ptp(2): 156: bc +1.457557 ptp(2): 157: 00 +1.457685 ptp(2): 158: bc +1.457795 ptp(2): 159: 00 +1.458638 ptp(2): 160: bc +1.458775 ptp(2): 161: 00 +1.458887 ptp(2): 162: bc +1.458997 ptp(2): 163: 00 +1.459861 ptp(2): 164: bc +1.459989 ptp(2): 165: 00 +1.460099 ptp(2): 166: bc +1.460208 ptp(2): 167: 00 +1.460519 ptp(2): 168: bc +1.461190 ptp(2): 169: 00 +1.461960 ptp(2): 170: bc +1.462114 ptp(2): 171: 00 +1.462224 ptp(2): 172: bc +1.462551 ptp(2): 173: 00 +1.462670 ptp(2): 174: bc +1.463310 ptp(2): 175: 00 +1.463440 ptp(2): 176: bc +1.463549 ptp(2): 177: 00 +1.464432 ptp(2): 178: bc +1.464565 ptp(2): 179: 00 +1.464678 ptp(2): 180: bc +1.464788 ptp(2): 181: 00 +1.465099 ptp(2): 182: bc +1.465878 ptp(2): 183: 00 +1.466018 ptp(2): 184: bc +1.466129 ptp(2): 185: 00 +1.466474 ptp(2): 186: bc +1.467157 ptp(2): 187: 00 +1.467285 ptp(2): 188: bc +1.467396 ptp(2): 189: 00 +1.467700 ptp(2): 190: bc +1.468376 ptp(2): 191: 00 +1.469159 ptp(2): 192: bc +1.469980 ptp(2): 193: 00 +1.470107 ptp(2): 194: bc +1.470221 ptp(2): 195: 00 +1.470332 ptp(2): 196: bc +1.470707 ptp(2): 197: 00 +1.470831 ptp(2): 198: bc +1.471490 ptp(2): 199: 00 +1.471620 ptp(2): 200: bc +1.471732 ptp(2): 201: 00 +1.472062 ptp(2): 202: bc +1.472768 ptp(2): 203: 00 +1.472900 ptp(2): 204: bc +1.473625 ptp(2): 205: 00 +1.473784 ptp(2): 206: bc +1.473895 ptp(2): 207: 00 +1.474227 ptp(2): 208: bc +1.474351 ptp(2): 209: 00 +1.474462 ptp(2): 210: bc +1.474571 ptp(2): 211: 00 +1.475236 ptp(2): 212: bc +1.475365 ptp(2): 213: 00 +1.475476 ptp(2): 214: bc +1.475586 ptp(2): 215: 00 +1.476551 ptp(2): 216: bc +1.476677 ptp(2): 217: 00 +1.476785 ptp(2): 218: bc +1.477621 ptp(2): 219: 00 +1.477758 ptp(2): 220: bc +1.477870 ptp(2): 221: 00 +1.477977 ptp(2): 222: bc +1.478081 ptp(2): 223: 00 +1.478403 ptp(2): 224: bc +1.479067 ptp(2): 225: 00 +1.479194 ptp(2): 226: bc +1.479307 ptp(2): 227: 00 +1.479415 ptp(2): 228: bc +1.479738 ptp(2): 229: 00 +1.480450 ptp(2): 230: bc +1.480578 ptp(2): 231: 00 +1.480689 ptp(2): 232: bc +1.480796 ptp(2): 233: 00 +1.481172 ptp(2): 234: bc +1.481297 ptp(2): 235: 00 +1.481950 ptp(2): 236: bc +1.482083 ptp(2): 237: 00 +1.482191 ptp(2): 238: bc +1.482301 ptp(2): 239: 00 +1.482411 ptp(2): 240: bc +1.483288 ptp(2): 241: 00 +1.483419 ptp(2): 242: bc +1.484195 ptp(2): 243: 00 +1.485038 ptp(2): 244: bc +1.485169 ptp(2): 245: 00 +1.485280 ptp(2): 246: bc +1.485389 ptp(2): 247: 00 +1.485497 ptp(2): 248: bc +1.485982 ptp(2): 249: 00 +1.486107 ptp(2): 250: bc +1.486783 ptp(2): 251: 00 +1.486916 ptp(2): 252: bc +1.487028 ptp(2): 253: 00 +1.487138 ptp(2): 254: bc +1.487948 ptp(2): 255: 00 +1.488177 ptp(2): 256: bc +1.488295 ptp(2): 257: 00 +1.488406 ptp(2): 258: bc +1.488515 ptp(2): 259: 00 +1.489359 ptp(2): 260: bc +1.489488 ptp(2): 261: 00 +1.489600 ptp(2): 262: bc +1.489707 ptp(2): 263: 00 +1.490015 ptp(2): 264: 20 +1.490686 ptp(2): 265: 01 +1.490820 ptp(2): 266: 00 +1.490931 ptp(2): 267: 00 +1.491761 ptp(2): 268: e0 +1.491895 ptp(2): 269: fe +1.492005 ptp(2): 270: f0 +1.492117 ptp(2): 271: 05 +1.492225 ptp(2): 272: d0 +1.492517 ptp(2): 273: 04 +1.493197 ptp(2): 274: b0 +1.493325 ptp(2): 275: 03 +1.493435 ptp(2): 276: 7f +1.494270 ptp(2): 277: 02 +1.494401 ptp(2): 278: 20 +1.494510 ptp(2): 279: 01 +1.494622 ptp(2): 280: 00 +1.494730 ptp(2): 281: 00 +1.495093 ptp(2): 282: 10 +1.495826 ptp(2): 283: fa +1.496014 ptp(2): 284: 30 +1.496896 ptp(2): 285: fb +1.497025 ptp(2): 286: 50 +1.497135 ptp(2): 287: fc +1.497243 ptp(2): 288: 81 +1.497350 ptp(2): 289: fd +1.498178 ptp(2): 290: e0 +1.498333 ptp(2): 291: fe +1.498444 ptp(2): 292: f0 +1.498553 ptp(2): 293: 05 +1.498865 ptp(2): 294: d0 +1.499542 ptp(2): 295: 04 +1.500312 ptp(2): 296: b0 +1.501134 ptp(2): 297: 03 +1.501264 ptp(2): 298: 7f +1.501377 ptp(2): 299: 02 +1.501671 ptp(2): 300: 20 +1.502317 ptp(2): 301: 01 +1.502482 ptp(2): 302: 00 +1.502595 ptp(2): 303: 00 +1.503437 ptp(2): 304: 10 +1.503567 ptp(2): 305: fa +1.503676 ptp(2): 306: 30 +1.503785 ptp(2): 307: fb +1.504662 ptp(2): 308: 50 +1.504809 ptp(2): 309: fc +1.504922 ptp(2): 310: 81 +1.505031 ptp(2): 311: fd +1.505992 ptp(2): 312: e0 +1.506123 ptp(2): 313: fe +1.506236 ptp(2): 314: f0 +1.506544 ptp(2): 315: 05 +1.507223 ptp(2): 316: d0 +1.507350 ptp(2): 317: 04 +1.507459 ptp(2): 318: b0 +1.507566 ptp(2): 319: 03 +1.508415 ptp(2): 320: 7f +1.508550 ptp(2): 321: 02 +1.508661 ptp(2): 322: 20 +1.509477 ptp(2): 323: 01 +1.509607 ptp(2): 324: 00 +1.509720 ptp(2): 325: 00 +1.510028 ptp(2): 326: 10 +1.510668 ptp(2): 327: fa +1.510818 ptp(2): 328: 30 +1.510929 ptp(2): 329: fb +1.511037 ptp(2): 330: 50 +1.511144 ptp(2): 331: fc +1.511479 ptp(2): 332: 81 +1.512156 ptp(2): 333: fd +1.512291 ptp(2): 334: e0 +1.512402 ptp(2): 335: fe +1.513211 ptp(2): 336: f0 +1.513341 ptp(2): 337: 05 +1.513450 ptp(2): 338: d0 +1.513817 ptp(2): 339: 04 +1.513940 ptp(2): 340: b0 +1.514049 ptp(2): 341: 03 +1.514158 ptp(2): 342: 7f +1.514823 ptp(2): 343: 02 +1.514956 ptp(2): 344: 20 +1.515068 ptp(2): 345: 01 +1.516002 ptp(2): 346: 00 +1.516138 ptp(2): 347: 00 +1.516247 ptp(2): 348: 10 +1.516633 ptp(2): 349: fa +1.516757 ptp(2): 350: 30 +1.516868 ptp(2): 351: fb +1.516980 ptp(2): 352: 50 +1.517088 ptp(2): 353: fc +1.517192 ptp(2): 354: 81 +1.517870 ptp(2): 355: fd +1.517996 ptp(2): 356: e0 +1.518107 ptp(2): 357: fe +1.518448 ptp(2): 358: f0 +1.518574 ptp(2): 359: 05 +1.519197 ptp(2): 360: d0 +1.519357 ptp(2): 361: 04 +1.519472 ptp(2): 362: b0 +1.520345 ptp(2): 363: 03 +1.520477 ptp(2): 364: 7f +1.520587 ptp(2): 365: 02 +1.520691 ptp(2): 366: 20 +1.521006 ptp(2): 367: 01 +1.521654 ptp(2): 368: 00 +1.521805 ptp(2): 369: 00 +1.521917 ptp(2): 370: 10 +1.522025 ptp(2): 371: fa +1.522134 ptp(2): 372: 30 +1.522476 ptp(2): 373: fb +1.523138 ptp(2): 374: 50 +1.523273 ptp(2): 375: fc +1.523386 ptp(2): 376: 81 +1.523492 ptp(2): 377: fd +1.524338 ptp(2): 378: e0 +1.524465 ptp(2): 379: fe +1.524571 ptp(2): 380: 20 +1.524682 ptp(2): 381: 01 +1.525520 ptp(2): 382: 00 +1.525760 ptp(2): 383: 00 +1.526579 ptp(2): 384: e0 +1.526745 ptp(2): 385: fe +1.526859 ptp(2): 386: 78 +1.526968 ptp(2): 387: fd +1.527072 ptp(2): 388: 78 +1.527900 ptp(2): 389: fd +1.528123 ptp(2): 390: 78 +1.528246 ptp(2): 391: fd +1.529068 ptp(2): 392: 4f +1.529196 ptp(2): 393: fe +1.529303 ptp(2): 394: 4f +1.529410 ptp(2): 395: fe +1.529702 ptp(2): 396: 4f +1.530345 ptp(2): 397: fe +1.530500 ptp(2): 398: 4f +1.530610 ptp(2): 399: fe +1.531442 ptp(2): 400: 4f +1.531571 ptp(2): 401: fe +1.531682 ptp(2): 402: 4f +1.531792 ptp(2): 403: fe +1.531899 ptp(2): 404: 4f +1.532751 ptp(2): 405: fe +1.532889 ptp(2): 406: 4f +1.533664 ptp(2): 407: fe +1.533820 ptp(2): 408: 4f +1.533931 ptp(2): 409: fe +1.534040 ptp(2): 410: 4f +1.534347 ptp(2): 411: fe +1.535024 ptp(2): 412: 4f +1.535156 ptp(2): 413: fe +1.535268 ptp(2): 414: 29 +1.535376 ptp(2): 415: ff +1.536371 ptp(2): 416: 29 +1.536528 ptp(2): 417: ff +1.536640 ptp(2): 418: 29 +1.537448 ptp(2): 419: ff +1.537615 ptp(2): 420: 29 +1.537728 ptp(2): 421: ff +1.537836 ptp(2): 422: 29 +1.537941 ptp(2): 423: ff +1.538297 ptp(2): 424: 29 +1.538977 ptp(2): 425: ff +1.539104 ptp(2): 426: 29 +1.539215 ptp(2): 427: ff +1.539317 ptp(2): 428: 29 +1.539633 ptp(2): 429: ff +1.540304 ptp(2): 430: 29 +1.541640 ptp(2): 431: ff +1.542497 ptp(2): 432: 29 +1.542627 ptp(2): 433: ff +1.542736 ptp(2): 434: 29 +1.543042 ptp(2): 435: ff +1.543185 ptp(2): 436: 00 +1.543833 ptp(2): 437: 00 +1.543958 ptp(2): 438: 00 +1.544148 ptp(2): 439: 00 +1.544984 ptp(2): 440: 00 +1.545113 ptp(2): 441: 00 +1.545223 ptp(2): 442: 00 +1.545327 ptp(2): 443: 00 +1.546242 ptp(2): 444: 00 +1.546374 ptp(2): 445: 00 +1.546484 ptp(2): 446: 00 +1.546591 ptp(2): 447: 00 +1.546931 ptp(2): 448: 00 +1.547060 ptp(2): 449: 00 +1.547172 ptp(2): 450: 00 +1.547280 ptp(2): 451: 00 +1.547918 ptp(2): 452: 00 +1.548068 ptp(2): 453: 00 +1.548182 ptp(2): 454: 00 +1.548295 ptp(2): 455: 00 +1.548405 ptp(2): 456: 00 +1.548728 ptp(2): 457: 00 +1.549408 ptp(2): 458: d7 +1.550165 ptp(2): 459: 00 +1.551014 ptp(2): 460: d7 +1.551146 ptp(2): 461: 00 +1.551257 ptp(2): 462: d7 +1.551605 ptp(2): 463: 00 +1.551728 ptp(2): 464: d7 +1.551841 ptp(2): 465: 00 +1.552528 ptp(2): 466: d7 +1.552681 ptp(2): 467: 00 +1.552792 ptp(2): 468: d7 +1.552901 ptp(2): 469: 00 +1.553273 ptp(2): 470: d7 +1.553408 ptp(2): 471: 00 +1.553522 ptp(2): 472: d7 +1.554189 ptp(2): 473: 00 +1.554319 ptp(2): 474: d7 +1.554432 ptp(2): 475: 00 +1.555266 ptp(2): 476: d7 +1.555402 ptp(2): 477: 00 +1.555514 ptp(2): 478: d7 +1.555624 ptp(2): 479: 00 +1.556559 ptp(2): 480: b1 +1.557345 ptp(2): 481: 01 +1.558192 ptp(2): 482: b1 +1.558322 ptp(2): 483: 01 +1.558432 ptp(2): 484: b1 +1.558763 ptp(2): 485: 01 +1.558898 ptp(2): 486: b1 +1.559011 ptp(2): 487: 01 +1.559121 ptp(2): 488: b1 +1.559783 ptp(2): 489: 01 +1.559915 ptp(2): 490: b1 +1.560070 ptp(2): 491: 01 +1.560218 ptp(2): 492: b1 +1.561055 ptp(2): 493: 01 +1.561182 ptp(2): 494: b1 +1.561291 ptp(2): 495: 01 +1.561402 ptp(2): 496: b1 +1.561512 ptp(2): 497: 01 +1.562332 ptp(2): 498: b1 +1.562460 ptp(2): 499: 01 +1.562571 ptp(2): 500: b1 +1.562680 ptp(2): 501: 01 +1.562975 ptp(2): 502: 88 +1.563618 ptp(2): 503: 02 +1.563773 ptp(2): 504: 88 +1.563885 ptp(2): 505: 02 +1.564724 ptp(2): 506: 88 +1.564856 ptp(2): 507: 02 +1.564968 ptp(2): 508: 00 +1.565075 ptp(2): 509: 00 +1.565447 ptp(2): 510: 00 +1.565575 ptp(2): 511: 00 +1.565959 ptp(2): 512: 00 +1.566680 ptp(2): 513: 00 +1.566810 ptp(2): 514: 00 +1.566924 ptp(2): 515: 00 +1.567241 ptp(2): 516: 00 +1.567947 ptp(2): 517: 00 +1.568841 ptp(2): 518: 00 +1.568971 ptp(2): 519: 40 +1.569083 ptp(2): 520: 00 +1.569424 ptp(2): 521: 00 +1.570072 ptp(2): 522: 00 +1.570203 ptp(2): 523: 00 +1.570317 ptp(2): 524: 00 +1.571151 ptp(2): 525: 00 +1.571289 ptp(2): 526: 00 +1.571403 ptp(2): 527: 00 +1.571517 ptp(2): 528: 00 +1.571628 ptp(2): 529: 00 +1.572457 ptp(2): 530: 00 +1.573327 ptp(2): 531: 00 +1.573653 ptp(2): 532: ff +1.574318 ptp(2): 533: ff +1.574453 ptp(2): event 72: EOS prop d1d8 info record, datasize is 64 +1.574612 ptp(2): event 72: currentvalue of d1d8 is EF300mm f/4L IS USM +1.575484 ptp(2): event 73: EOS prop d1b7 info record, datasize is 4 +1.575729 ptp(2): event 73: Unknown EOS property d1b7, datasize is 4, using uint32 +1.575872 ptp(2): 0: 0x 3 +1.576023 ptp(2): event 73: currentvalue of d1b7 is 3 +1.576977 ptp(2): event 74: EOS prop d1cb info record, datasize is 52 +1.577793 ptp(2): event 74: Unknown EOS property d1cb, datasize is 52 +1.577957 ptp(2): 0: 34 +1.578073 ptp(2): 1: 00 +1.578428 ptp(2): 2: 00 +1.579085 ptp(2): 3: 00 +1.579211 ptp(2): 4: 00 +1.579322 ptp(2): 5: 00 +1.579652 ptp(2): 6: 00 +1.579784 ptp(2): 7: 00 +1.580396 ptp(2): 8: 03 +1.580547 ptp(2): 9: 00 +1.580659 ptp(2): 10: 00 +1.580766 ptp(2): 11: 00 +1.581586 ptp(2): 12: 00 +1.581755 ptp(2): 13: 00 +1.581869 ptp(2): 14: 00 +1.581979 ptp(2): 15: 00 +1.582085 ptp(2): 16: 00 +1.582399 ptp(2): 17: 00 +1.583079 ptp(2): 18: 03 +1.583850 ptp(2): 19: 80 +1.584021 ptp(2): 20: 00 +1.584401 ptp(2): 21: 00 +1.584535 ptp(2): 22: 00 +1.584649 ptp(2): 23: 00 +1.585313 ptp(2): 24: 03 +1.585444 ptp(2): 25: 00 +1.585557 ptp(2): 26: 00 +1.586481 ptp(2): 27: 00 +1.586610 ptp(2): 28: 48 +1.586723 ptp(2): 29: 00 +1.586832 ptp(2): 30: 00 +1.587139 ptp(2): 31: 00 +1.587290 ptp(2): 32: 49 +1.587948 ptp(2): 33: 00 +1.588080 ptp(2): 34: 03 +1.588190 ptp(2): 35: 80 +1.588977 ptp(2): 36: 00 +1.589105 ptp(2): 37: 00 +1.589417 ptp(2): 38: 00 +1.589560 ptp(2): 39: 00 +1.590208 ptp(2): 40: 03 +1.590336 ptp(2): 41: 00 +1.590448 ptp(2): 42: 00 +1.590557 ptp(2): 43: 00 +1.590894 ptp(2): 44: 4b +1.591557 ptp(2): 45: 00 +1.591686 ptp(2): 46: 00 +1.591800 ptp(2): 47: 00 +1.592678 ptp(2): 48: 4c +1.592809 ptp(2): 49: 00 +1.592923 ptp(2): 50: 03 +1.593032 ptp(2): 51: 80 +1.593148 ptp(2): event 75: EOS prop d1db info record, datasize is 14 +1.594024 ptp(2): event 75: Unknown EOS property d1db, datasize is 14 +1.594845 ptp(2): 0: 00 +1.595747 ptp(2): 1: 00 +1.595886 ptp(2): 2: 00 +1.595998 ptp(2): 3: 00 +1.596805 ptp(2): 4: 03 +1.596961 ptp(2): 5: 00 +1.597076 ptp(2): 6: 00 +1.597188 ptp(2): 7: 00 +1.597294 ptp(2): 8: 2f +1.597636 ptp(2): 9: 00 +1.598303 ptp(2): 10: 00 +1.598435 ptp(2): 11: 00 +1.598547 ptp(2): 12: 28 +1.599321 ptp(2): 13: 00 +1.599490 ptp(2): event 76: EOS prop d1dc info record, datasize is 4 +1.599639 ptp(2): event 76: currentvalue of d1dc is 0 +1.600021 ptp(2): event 77: EOS prop d1a3 info record, datasize is 4 +1.600208 ptp(2): event 77: Unknown EOS property d1a3, datasize is 4, using uint32 +1.600333 ptp(2): 0: 0x 0 +1.601033 ptp(2): event 77: currentvalue of d1a3 is 0 +1.601180 ptp(2): event 78: EOS prop d1a4 info record, datasize is 484 +1.601324 ptp(2): event 78: Unknown EOS property d1a4, datasize is 484 +1.601448 ptp(2): 0: e4 +1.602358 ptp(2): 1: 01 +1.602493 ptp(2): 2: 00 +1.602608 ptp(2): 3: 00 +1.602714 ptp(2): 4: 30 +1.602821 ptp(2): 5: 00 +1.603135 ptp(2): 6: 00 +1.603821 ptp(2): 7: 00 +1.605209 ptp(2): 8: 00 +1.605368 ptp(2): 9: 00 +1.605761 ptp(2): 10: 00 +1.606453 ptp(2): 11: 00 +1.606582 ptp(2): 12: 00 +1.606695 ptp(2): 13: 00 +1.607553 ptp(2): 14: 00 +1.607685 ptp(2): 15: 00 +1.607799 ptp(2): 16: 00 +1.607910 ptp(2): 17: 00 +1.608287 ptp(2): 18: 00 +1.608409 ptp(2): 19: 00 +1.609059 ptp(2): 20: 00 +1.609189 ptp(2): 21: 00 +1.609300 ptp(2): 22: 00 +1.610169 ptp(2): 23: 00 +1.610306 ptp(2): 24: 00 +1.610419 ptp(2): 25: 00 +1.610770 ptp(2): 26: 00 +1.610903 ptp(2): 27: 00 +1.611014 ptp(2): 28: 00 +1.611663 ptp(2): 29: 00 +1.611793 ptp(2): 30: 00 +1.611905 ptp(2): 31: 00 +1.612019 ptp(2): 32: 00 +1.612866 ptp(2): 33: 00 +1.613640 ptp(2): 34: 00 +1.613995 ptp(2): 35: 00 +1.614115 ptp(2): 36: 31 +1.614750 ptp(2): 37: 00 +1.614888 ptp(2): 38: 00 +1.615000 ptp(2): 39: 00 +1.615889 ptp(2): 40: 00 +1.616066 ptp(2): 41: 00 +1.616220 ptp(2): 42: 00 +1.617071 ptp(2): 43: 00 +1.617201 ptp(2): 44: 00 +1.617313 ptp(2): 45: 00 +1.617422 ptp(2): 46: 00 +1.617530 ptp(2): 47: 00 +1.618385 ptp(2): 48: 00 +1.618544 ptp(2): 49: 00 +1.618660 ptp(2): 50: 00 +1.619480 ptp(2): 51: 00 +1.619608 ptp(2): 52: 00 +1.619720 ptp(2): 53: 00 +1.619828 ptp(2): 54: 00 +1.620142 ptp(2): 55: 00 +1.620828 ptp(2): 56: 00 +1.620957 ptp(2): 57: 00 +1.621069 ptp(2): 58: 00 +1.621907 ptp(2): 59: 00 +1.622044 ptp(2): 60: 00 +1.622158 ptp(2): 61: 00 +1.622269 ptp(2): 62: 00 +1.622380 ptp(2): 63: 00 +1.622713 ptp(2): 64: 00 +1.623370 ptp(2): 65: 00 +1.623498 ptp(2): 66: 00 +1.623612 ptp(2): 67: 00 +1.623720 ptp(2): 68: 32 +1.623824 ptp(2): 69: 00 +1.624745 ptp(2): 70: 00 +1.625553 ptp(2): 71: 00 +1.625976 ptp(2): 72: 00 +1.626124 ptp(2): 73: 00 +1.626237 ptp(2): 74: 00 +1.626905 ptp(2): 75: 00 +1.627040 ptp(2): 76: 00 +1.627153 ptp(2): 77: 00 +1.627262 ptp(2): 78: 00 +1.628095 ptp(2): 79: 00 +1.628226 ptp(2): 80: 00 +1.628335 ptp(2): 81: 00 +1.628641 ptp(2): 82: 00 +1.628786 ptp(2): 83: 00 +1.629448 ptp(2): 84: 00 +1.629580 ptp(2): 85: 00 +1.629690 ptp(2): 86: 00 +1.630525 ptp(2): 87: 00 +1.630660 ptp(2): 88: 00 +1.630772 ptp(2): 89: 00 +1.630880 ptp(2): 90: 00 +1.630989 ptp(2): 91: 00 +1.631320 ptp(2): 92: 00 +1.631963 ptp(2): 93: 00 +1.632187 ptp(2): 94: 00 +1.632305 ptp(2): 95: 00 +1.633156 ptp(2): 96: 00 +1.633292 ptp(2): 97: 00 +1.633405 ptp(2): 98: 00 +1.633515 ptp(2): 99: 00 +1.633826 ptp(2): 100: 33 +1.634501 ptp(2): 101: 00 +1.634628 ptp(2): 102: 00 +1.634743 ptp(2): 103: 00 +1.635044 ptp(2): 104: 00 +1.635786 ptp(2): 105: 00 +1.635921 ptp(2): 106: 00 +1.636033 ptp(2): 107: 00 +1.636883 ptp(2): 108: 00 +1.637012 ptp(2): 109: 00 +1.637121 ptp(2): 110: 00 +1.637229 ptp(2): 111: 00 +1.637546 ptp(2): 112: 00 +1.638223 ptp(2): 113: 00 +1.638351 ptp(2): 114: 00 +1.638462 ptp(2): 115: 00 +1.638571 ptp(2): 116: 00 +1.638681 ptp(2): 117: 00 +1.639536 ptp(2): 118: 00 +1.639671 ptp(2): 119: 00 +1.639786 ptp(2): 120: 00 +1.639893 ptp(2): 121: 00 +1.640736 ptp(2): 122: 00 +1.640899 ptp(2): 123: 00 +1.641010 ptp(2): 124: 00 +1.641120 ptp(2): 125: 00 +1.641227 ptp(2): 126: 00 +1.641333 ptp(2): 127: 00 +1.642209 ptp(2): 128: 00 +1.642376 ptp(2): 129: 00 +1.642490 ptp(2): 130: 00 +1.643264 ptp(2): 131: 00 +1.643394 ptp(2): 132: 34 +1.643503 ptp(2): 133: 00 +1.643874 ptp(2): 134: 00 +1.643998 ptp(2): 135: 00 +1.644111 ptp(2): 136: 00 +1.644215 ptp(2): 137: 00 +1.644874 ptp(2): 138: 00 +1.645002 ptp(2): 139: 00 +1.645112 ptp(2): 140: 00 +1.645221 ptp(2): 141: 00 +1.645329 ptp(2): 142: 00 +1.646282 ptp(2): 143: 00 +1.646441 ptp(2): 144: 00 +1.646554 ptp(2): 145: 00 +1.646663 ptp(2): 146: 00 +1.647528 ptp(2): 147: 00 +1.648299 ptp(2): 148: 00 +1.649187 ptp(2): 149: 00 +1.649317 ptp(2): 150: 00 +1.649427 ptp(2): 151: 00 +1.649759 ptp(2): 152: 00 +1.650419 ptp(2): 153: 00 +1.650551 ptp(2): 154: 00 +1.650662 ptp(2): 155: 00 +1.650772 ptp(2): 156: 00 +1.651616 ptp(2): 157: 00 +1.651744 ptp(2): 158: 00 +1.651855 ptp(2): 159: 00 +1.652707 ptp(2): 160: 00 +1.652839 ptp(2): 161: 00 +1.652951 ptp(2): 162: 00 +1.653061 ptp(2): 163: 00 +1.653952 ptp(2): 164: 35 +1.654083 ptp(2): 165: 00 +1.654195 ptp(2): 166: 00 +1.655033 ptp(2): 167: 00 +1.655169 ptp(2): 168: 00 +1.655281 ptp(2): 169: 00 +1.655588 ptp(2): 170: 00 +1.656394 ptp(2): 171: 00 +1.656524 ptp(2): 172: 00 +1.656636 ptp(2): 173: 00 +1.657503 ptp(2): 174: 00 +1.657642 ptp(2): 175: 00 +1.658453 ptp(2): 176: 00 +1.658585 ptp(2): 177: 00 +1.658699 ptp(2): 178: 00 +1.658808 ptp(2): 179: 00 +1.658916 ptp(2): 180: 00 +1.659781 ptp(2): 181: 00 +1.659917 ptp(2): 182: 00 +1.660030 ptp(2): 183: 00 +1.660140 ptp(2): 184: 00 +1.660963 ptp(2): 185: 00 +1.661093 ptp(2): 186: 00 +1.661203 ptp(2): 187: 00 +1.661310 ptp(2): 188: 00 +1.661417 ptp(2): 189: 00 +1.662235 ptp(2): 190: 00 +1.662395 ptp(2): 191: 00 +1.663192 ptp(2): 192: 00 +1.663322 ptp(2): 193: 00 +1.664204 ptp(2): 194: 00 +1.664336 ptp(2): 195: 00 +1.664451 ptp(2): 196: 36 +1.664806 ptp(2): 197: 00 +1.665467 ptp(2): 198: 00 +1.665598 ptp(2): 199: 00 +1.665998 ptp(2): 200: 00 +1.666709 ptp(2): 201: 00 +1.666843 ptp(2): 202: 00 +1.667691 ptp(2): 203: 00 +1.667821 ptp(2): 204: 00 +1.667930 ptp(2): 205: 00 +1.668037 ptp(2): 206: 00 +1.668368 ptp(2): 207: 00 +1.668995 ptp(2): 208: 00 +1.669153 ptp(2): 209: 00 +1.669268 ptp(2): 210: 00 +1.670100 ptp(2): 211: 00 +1.670230 ptp(2): 212: 00 +1.670340 ptp(2): 213: 00 +1.670449 ptp(2): 214: 00 +1.670756 ptp(2): 215: 00 +1.671431 ptp(2): 216: 00 +1.671561 ptp(2): 217: 00 +1.671672 ptp(2): 218: 00 +1.671783 ptp(2): 219: 00 +1.672702 ptp(2): 220: 00 +1.672838 ptp(2): 221: 00 +1.672949 ptp(2): 222: 00 +1.673058 ptp(2): 223: 00 +1.673380 ptp(2): 224: 00 +1.674062 ptp(2): 225: 00 +1.674193 ptp(2): 226: 00 +1.674974 ptp(2): 227: 00 +1.675103 ptp(2): 228: 37 +1.675409 ptp(2): 229: 00 +1.675561 ptp(2): 230: 00 +1.676311 ptp(2): 231: 00 +1.676440 ptp(2): 232: 00 +1.676553 ptp(2): 233: 00 +1.676664 ptp(2): 234: 00 +1.676773 ptp(2): 235: 00 +1.677620 ptp(2): 236: 00 +1.677780 ptp(2): 237: 00 +1.677894 ptp(2): 238: 00 +1.678707 ptp(2): 239: 00 +1.678841 ptp(2): 240: 00 +1.678948 ptp(2): 241: 00 +1.679054 ptp(2): 242: 00 +1.679346 ptp(2): 243: 00 +1.680040 ptp(2): 244: 00 +1.680214 ptp(2): 245: 00 +1.681007 ptp(2): 246: 00 +1.681137 ptp(2): 247: 00 +1.681249 ptp(2): 248: 00 +1.681358 ptp(2): 249: 00 +1.682177 ptp(2): 250: 00 +1.682330 ptp(2): 251: 00 +1.682442 ptp(2): 252: 00 +1.682548 ptp(2): 253: 00 +1.682657 ptp(2): 254: 00 +1.683502 ptp(2): 255: 00 +1.684281 ptp(2): 256: 00 +1.685101 ptp(2): 257: 00 +1.685233 ptp(2): 258: 00 +1.685342 ptp(2): 259: 00 +1.685796 ptp(2): 260: 38 +1.685926 ptp(2): 261: 00 +1.686601 ptp(2): 262: 00 +1.686733 ptp(2): 263: 00 +1.686844 ptp(2): 264: 00 +1.686955 ptp(2): 265: 00 +1.687063 ptp(2): 266: 00 +1.687411 ptp(2): 267: 00 +1.688128 ptp(2): 268: 00 +1.688265 ptp(2): 269: 00 +1.689048 ptp(2): 270: 00 +1.689180 ptp(2): 271: 00 +1.689292 ptp(2): 272: 00 +1.689603 ptp(2): 273: 00 +1.690268 ptp(2): 274: 00 +1.690407 ptp(2): 275: 00 +1.690518 ptp(2): 276: 00 +1.691331 ptp(2): 277: 00 +1.691461 ptp(2): 278: 00 +1.691573 ptp(2): 279: 00 +1.691686 ptp(2): 280: 00 +1.691981 ptp(2): 281: 00 +1.692662 ptp(2): 282: 00 +1.692796 ptp(2): 283: 00 +1.692906 ptp(2): 284: 00 +1.693734 ptp(2): 285: 00 +1.693862 ptp(2): 286: 00 +1.693971 ptp(2): 287: 00 +1.694342 ptp(2): 288: 00 +1.694467 ptp(2): 289: 00 +1.694575 ptp(2): 290: 00 +1.694682 ptp(2): 291: 00 +1.695316 ptp(2): 292: 39 +1.695469 ptp(2): 293: 00 +1.695580 ptp(2): 294: 00 +1.696018 ptp(2): 295: 00 +1.696742 ptp(2): 296: 00 +1.696869 ptp(2): 297: 00 +1.696978 ptp(2): 298: 00 +1.697860 ptp(2): 299: 00 +1.697992 ptp(2): 300: 00 +1.698101 ptp(2): 301: 00 +1.698948 ptp(2): 302: 00 +1.699078 ptp(2): 303: 00 +1.699190 ptp(2): 304: 00 +1.700020 ptp(2): 305: 00 +1.700158 ptp(2): 306: 00 +1.700274 ptp(2): 307: 00 +1.700384 ptp(2): 308: 00 +1.701210 ptp(2): 309: 00 +1.702051 ptp(2): 310: 00 +1.702184 ptp(2): 311: 00 +1.703018 ptp(2): 312: 00 +1.703178 ptp(2): 313: 00 +1.703291 ptp(2): 314: 00 +1.704161 ptp(2): 315: 00 +1.704296 ptp(2): 316: 00 +1.704408 ptp(2): 317: 00 +1.704716 ptp(2): 318: 00 +1.704856 ptp(2): 319: 00 +1.704968 ptp(2): 320: 00 +1.705624 ptp(2): 321: 00 +1.705842 ptp(2): 322: 00 +1.705957 ptp(2): 323: 00 +1.706065 ptp(2): 324: 31 +1.706951 ptp(2): 325: 30 +1.708313 ptp(2): 326: 00 +1.708470 ptp(2): 327: 00 +1.708585 ptp(2): 328: 00 +1.708918 ptp(2): 329: 00 +1.709042 ptp(2): 330: 00 +1.709155 ptp(2): 331: 00 +1.709774 ptp(2): 332: 00 +1.709932 ptp(2): 333: 00 +1.710044 ptp(2): 334: 00 +1.710832 ptp(2): 335: 00 +1.711000 ptp(2): 336: 00 +1.711115 ptp(2): 337: 00 +1.711220 ptp(2): 338: 00 +1.711330 ptp(2): 339: 00 +1.711637 ptp(2): 340: 00 +1.712346 ptp(2): 341: 00 +1.712472 ptp(2): 342: 00 +1.712583 ptp(2): 343: 00 +1.713414 ptp(2): 344: 00 +1.713548 ptp(2): 345: 00 +1.713658 ptp(2): 346: 00 +1.713957 ptp(2): 347: 00 +1.714627 ptp(2): 348: 00 +1.714753 ptp(2): 349: 00 +1.714864 ptp(2): 350: 00 +1.715171 ptp(2): 351: 00 +1.715923 ptp(2): 352: 00 +1.716057 ptp(2): 353: 00 +1.716170 ptp(2): 354: 00 +1.716473 ptp(2): 355: 00 +1.717168 ptp(2): 356: 31 +1.717302 ptp(2): 357: 31 +1.718117 ptp(2): 358: 00 +1.718248 ptp(2): 359: 00 +1.718361 ptp(2): 360: 00 +1.718467 ptp(2): 361: 00 +1.718831 ptp(2): 362: 00 +1.718964 ptp(2): 363: 00 +1.719078 ptp(2): 364: 00 +1.719741 ptp(2): 365: 00 +1.719864 ptp(2): 366: 00 +1.719973 ptp(2): 367: 00 +1.720165 ptp(2): 368: 00 +1.721003 ptp(2): 369: 00 +1.721821 ptp(2): 370: 00 +1.722657 ptp(2): 371: 00 +1.722789 ptp(2): 372: 00 +1.722902 ptp(2): 373: 00 +1.723280 ptp(2): 374: 00 +1.723407 ptp(2): 375: 00 +1.723521 ptp(2): 376: 00 +1.723630 ptp(2): 377: 00 +1.724298 ptp(2): 378: 00 +1.724430 ptp(2): 379: 00 +1.724543 ptp(2): 380: 00 +1.724654 ptp(2): 381: 00 +1.725475 ptp(2): 382: 00 +1.725609 ptp(2): 383: 00 +1.725807 ptp(2): 384: 00 +1.725923 ptp(2): 385: 00 +1.726274 ptp(2): 386: 00 +1.726952 ptp(2): 387: 00 +1.727079 ptp(2): 388: 31 +1.727190 ptp(2): 389: 32 +1.728060 ptp(2): 390: 00 +1.728234 ptp(2): 391: 00 +1.728345 ptp(2): 392: 00 +1.728456 ptp(2): 393: 00 +1.728754 ptp(2): 394: 00 +1.729433 ptp(2): 395: 00 +1.729562 ptp(2): 396: 00 +1.730308 ptp(2): 397: 00 +1.730464 ptp(2): 398: 00 +1.730578 ptp(2): 399: 00 +1.730688 ptp(2): 400: 00 +1.731000 ptp(2): 401: 00 +1.731679 ptp(2): 402: 00 +1.731810 ptp(2): 403: 00 +1.731924 ptp(2): 404: 00 +1.732036 ptp(2): 405: 00 +1.732877 ptp(2): 406: 00 +1.733007 ptp(2): 407: 00 +1.733120 ptp(2): 408: 00 +1.733225 ptp(2): 409: 00 +1.733333 ptp(2): 410: 00 +1.734205 ptp(2): 411: 00 +1.734333 ptp(2): 412: 00 +1.734445 ptp(2): 413: 00 +1.735258 ptp(2): 414: 00 +1.735388 ptp(2): 415: 00 +1.735801 ptp(2): 416: 00 +1.736523 ptp(2): 417: 00 +1.736683 ptp(2): 418: 00 +1.736799 ptp(2): 419: 00 +1.737112 ptp(2): 420: 31 +1.737796 ptp(2): 421: 33 +1.737929 ptp(2): 422: 00 +1.738731 ptp(2): 423: 00 +1.738863 ptp(2): 424: 00 +1.738973 ptp(2): 425: 00 +1.739282 ptp(2): 426: 00 +1.739953 ptp(2): 427: 00 +1.740081 ptp(2): 428: 00 +1.740194 ptp(2): 429: 00 +1.741038 ptp(2): 430: 00 +1.741172 ptp(2): 431: 00 +1.741285 ptp(2): 432: 00 +1.741584 ptp(2): 433: 00 +1.742254 ptp(2): 434: 00 +1.742384 ptp(2): 435: 00 +1.742494 ptp(2): 436: 00 +1.742836 ptp(2): 437: 00 +1.742966 ptp(2): 438: 00 +1.743612 ptp(2): 439: 00 +1.743740 ptp(2): 440: 00 +1.743846 ptp(2): 441: 00 +1.743954 ptp(2): 442: 00 +1.744363 ptp(2): 443: 00 +1.745016 ptp(2): 444: 00 +1.745154 ptp(2): 445: 00 +1.745991 ptp(2): 446: 00 +1.746861 ptp(2): 447: 00 +1.746989 ptp(2): 448: 00 +1.747095 ptp(2): 449: 00 +1.747204 ptp(2): 450: 00 +1.747540 ptp(2): 451: 00 +1.747663 ptp(2): 452: 31 +1.747772 ptp(2): 453: 34 +1.748401 ptp(2): 454: 00 +1.748558 ptp(2): 455: 00 +1.748671 ptp(2): 456: 00 +1.749473 ptp(2): 457: 00 +1.749637 ptp(2): 458: 00 +1.749751 ptp(2): 459: 00 +1.749861 ptp(2): 460: 00 +1.750706 ptp(2): 461: 00 +1.750838 ptp(2): 462: 00 +1.751706 ptp(2): 463: 00 +1.751840 ptp(2): 464: 00 +1.751953 ptp(2): 465: 00 +1.752359 ptp(2): 466: 00 +1.752486 ptp(2): 467: 00 +1.753108 ptp(2): 468: 00 +1.753268 ptp(2): 469: 00 +1.753382 ptp(2): 470: 00 +1.754159 ptp(2): 471: 00 +1.754291 ptp(2): 472: 00 +1.754404 ptp(2): 473: 00 +1.754711 ptp(2): 474: 00 +1.755353 ptp(2): 475: 00 +1.755511 ptp(2): 476: 00 +1.755625 ptp(2): 477: 00 +1.756592 ptp(2): 478: 00 +1.756731 ptp(2): 479: 00 +1.756844 ptp(2): 480: 00 +1.756955 ptp(2): 481: 00 +1.757061 ptp(2): 482: 00 +1.757950 ptp(2): 483: 00 +1.759314 ptp(2): event 79: EOS prop d1df info record, datasize is 4 +1.760276 ptp(2): event 79: Unknown EOS property d1df, datasize is 4 +1.760419 ptp(2): 0: 00 +1.760530 ptp(2): 1: 00 +1.760639 ptp(2): 2: 00 +1.760940 ptp(2): 3: 00 +1.761633 ptp(2): event 80: EOS prop d1bd info record, datasize is 4 +1.761794 ptp(2): event 80: Unknown EOS property d1bd, datasize is 4 +1.762671 ptp(2): 0: 00 +1.762805 ptp(2): 1: 00 +1.762917 ptp(2): 2: 00 +1.763026 ptp(2): 3: 00 +1.763139 ptp(2): event 81: EOS prop d1c1 info record, datasize is 4 +1.763497 ptp(2): event 81: Unknown EOS property d1c1, datasize is 4 +1.764158 ptp(2): 0: 00 +1.764313 ptp(2): 1: 00 +1.764428 ptp(2): 2: 01 +1.765209 ptp(2): 3: 00 +1.765345 ptp(2): event 82: EOS prop d1c0 info record, datasize is 4 +1.765774 ptp(2): event 82: Unknown EOS property d1c0, datasize is 4 +1.766507 ptp(2): 0: 00 +1.766636 ptp(2): 1: 00 +1.766749 ptp(2): 2: 00 +1.766859 ptp(2): 3: 00 +1.767753 ptp(2): event 83: EOS prop d1bf info record, datasize is 4 +1.767917 ptp(2): event 83: Unknown EOS property d1bf, datasize is 4 +1.768091 ptp(2): 0: 00 +1.769019 ptp(2): 1: 00 +1.769150 ptp(2): 2: 00 +1.769261 ptp(2): 3: 00 +1.769377 ptp(2): event 84: EOS prop d1c4 info record, datasize is 4 +1.770263 ptp(2): event 84: Unknown EOS property d1c4, datasize is 4 +1.771678 ptp(2): 0: 00 +1.771836 ptp(2): 1: 00 +1.772130 ptp(2): 2: 00 +1.772289 ptp(2): 3: 00 +1.772974 ptp(2): event 85: EOS prop d1c2 info record, datasize is 4 +1.773144 ptp(2): event 85: Unknown EOS property d1c2, datasize is 4 +1.773265 ptp(2): 0: 00 +1.774136 ptp(2): 1: 00 +1.774265 ptp(2): 2: 00 +1.774378 ptp(2): 3: 00 +1.774496 ptp(2): event 86: EOS prop d1c5 info record, datasize is 4 +1.774908 ptp(2): event 86: Unknown EOS property d1c5, datasize is 4 +1.775056 ptp(2): 0: 01 +1.775170 ptp(2): 1: 00 +1.775929 ptp(2): 2: 00 +1.776105 ptp(2): 3: 00 +1.776268 ptp(2): event 87: EOS prop d194 info record, datasize is 4 +1.776625 ptp(2): event 87: Unknown EOS property d194, datasize is 4 +1.777342 ptp(2): 0: 00 +1.777470 ptp(2): 1: 00 +1.778264 ptp(2): 2: 00 +1.778396 ptp(2): 3: 00 +1.778512 ptp(2): event 88: EOS prop d195 info record, datasize is 4 +1.778656 ptp(2): event 88: Unknown EOS property d195, datasize is 4 +1.779554 ptp(2): 0: 02 +1.779685 ptp(2): 1: 00 +1.779795 ptp(2): 2: 00 +1.779904 ptp(2): 3: 00 +1.780735 ptp(2): event 89: EOS prop d196 info record, datasize is 4 +1.780897 ptp(2): event 89: Unknown EOS property d196, datasize is 4 +1.781017 ptp(2): 0: 2f +1.781128 ptp(2): 1: 00 +1.781473 ptp(2): 2: 00 +1.782152 ptp(2): 3: 00 +1.782299 ptp(2): event 90: EOS prop d197 info record, datasize is 4 +1.783090 ptp(2): event 90: Unknown EOS property d197, datasize is 4 +1.783263 ptp(2): 0: 00 +1.783377 ptp(2): 1: 00 +1.783722 ptp(2): 2: 00 +1.784479 ptp(2): 3: 00 +1.784619 ptp(2): event 91: EOS prop d198 info record, datasize is 4 +1.784766 ptp(2): event 91: Unknown EOS property d198, datasize is 4 +1.784886 ptp(2): 0: ff +1.785830 ptp(2): 1: 00 +1.785963 ptp(2): 2: 00 +1.786073 ptp(2): 3: 00 +1.786190 ptp(2): event 92: EOS prop d1dd info record, datasize is 4 +1.787085 ptp(2): event 92: currentvalue of d1dd is b1 +1.787256 ptp(2): event 93: EOS prop d1c7 info record, datasize is 4 +1.787393 ptp(2): event 93: Unknown EOS property d1c7, datasize is 4 +1.787775 ptp(2): 0: 00 +1.788443 ptp(2): 1: 00 +1.788598 ptp(2): 2: 00 +1.788714 ptp(2): 3: 00 +1.788830 ptp(2): event 94: EOS prop d199 info record, datasize is 4 +1.789211 ptp(2): event 94: Unknown EOS property d199, datasize is 4 +1.789897 ptp(2): 0: 07 +1.790035 ptp(2): 1: 00 +1.790149 ptp(2): 2: 00 +1.790964 ptp(2): 3: 00 +1.791100 ptp(2): event 95: EOS prop d138 info record, datasize is 4 +1.791247 ptp(2): event 95: Unknown EOS property d138, datasize is 4 +1.791638 ptp(2): 0: 01 +1.791771 ptp(2): 1: 00 +1.791883 ptp(2): 2: 00 +1.792031 ptp(2): 3: 00 +1.792753 ptp(2): event 96: EOS prop d139 info record, datasize is 12 +1.792916 ptp(2): event 96: Unknown EOS property d139, datasize is 12 +1.793041 ptp(2): 0: 00 +1.793363 ptp(2): 1: 00 +1.794053 ptp(2): 2: 00 +1.794185 ptp(2): 3: 00 +1.794982 ptp(2): 4: 00 +1.795114 ptp(2): 5: 00 +1.795222 ptp(2): 6: 00 +1.795330 ptp(2): 7: 00 +1.795639 ptp(2): 8: 00 +1.796398 ptp(2): 9: 00 +1.796525 ptp(2): 10: 00 +1.796634 ptp(2): 11: 00 +1.796964 ptp(2): event 97: EOS prop d13a info record, datasize is 4 +1.797671 ptp(2): event 97: Unknown EOS property d13a, datasize is 4 +1.797809 ptp(2): 0: 00 +1.798671 ptp(2): 1: 00 +1.798806 ptp(2): 2: 00 +1.798918 ptp(2): 3: 00 +1.799035 ptp(2): event 98: EOS prop d13b info record, datasize is 4 +1.799400 ptp(2): event 98: Unknown EOS property d13b, datasize is 4 +1.799543 ptp(2): 0: 00 +1.800249 ptp(2): 1: 00 +1.800378 ptp(2): 2: 00 +1.801196 ptp(2): 3: 00 +1.801332 ptp(2): event 99: EOS prop d13c info record, datasize is 4 +1.801479 ptp(2): event 99: Unknown EOS property d13c, datasize is 4 +1.802356 ptp(2): 0: 3f +1.802489 ptp(2): 1: 00 +1.802599 ptp(2): 2: 00 +1.802931 ptp(2): 3: 00 +1.803599 ptp(2): event 100: EOS prop d13d info record, datasize is 24 +1.803767 ptp(2): event 100: Unknown EOS property d13d, datasize is 24 +1.804626 ptp(2): 0: 18 +1.804755 ptp(2): 1: 00 +1.804867 ptp(2): 2: 00 +1.804973 ptp(2): 3: 00 +1.805288 ptp(2): 4: 00 +1.806099 ptp(2): 5: 00 +1.806230 ptp(2): 6: 00 +1.806342 ptp(2): 7: 00 +1.807231 ptp(2): 8: 00 +1.807364 ptp(2): 9: 00 +1.807473 ptp(2): 10: 00 +1.807581 ptp(2): 11: 00 +1.807922 ptp(2): 12: 01 +1.808094 ptp(2): 13: 00 +1.808249 ptp(2): 14: 00 +1.808913 ptp(2): 15: 00 +1.809050 ptp(2): 16: 01 +1.809161 ptp(2): 17: 00 +1.809273 ptp(2): 18: 00 +1.810101 ptp(2): 19: 00 +1.810229 ptp(2): 20: 00 +1.810340 ptp(2): 21: 00 +1.810449 ptp(2): 22: 00 +1.810559 ptp(2): 23: 00 +1.811385 ptp(2): event 101: EOS prop d14d info record, datasize is 4 +1.811577 ptp(2): event 101: Unknown EOS property d14d, datasize is 4 +1.812374 ptp(2): 0: 00 +1.812504 ptp(2): 1: 3c +1.812612 ptp(2): 2: 00 +1.812924 ptp(2): 3: 00 +1.813063 ptp(2): event 102: EOS prop d19a info record, datasize is 4 +1.813209 ptp(2): event 102: Unknown EOS property d19a, datasize is 4 +1.813891 ptp(2): 0: 00 +1.814021 ptp(2): 1: 00 +1.814133 ptp(2): 2: 00 +1.814244 ptp(2): 3: 00 +1.814356 ptp(2): event 103: EOS prop d19c info record, datasize is 4 +1.814745 ptp(2): event 103: Unknown EOS property d19c, datasize is 4 +1.815438 ptp(2): 0: 01 +1.815570 ptp(2): 1: 00 +1.815776 ptp(2): 2: 00 +1.816683 ptp(2): 3: 00 +1.816821 ptp(2): event 104: unknown EOS event c1a4 +1.816939 ptp(2): 8: 01 +1.817049 ptp(2): 9: 00 +1.817158 ptp(2): 10: 01 +1.818022 ptp(2): 11: 00 +1.818158 ptp(2): event 105: EOS prop d105 desc record, datasize 0, propxtype 1 +1.818280 ptp(2): event 105: propxtype is 1 for d105, unhandled. +1.818398 ptp(2): event 106: EOS prop d108 desc record, datasize 12, propxtype 3 +1.818789 ptp(2): event 106: propxtype is 3, prop is 0xd108, data type is 0x0004, propxcnt is 3. +1.819500 ptp(2): event 106: suppval[0] of d108 is 0x0. +1.819634 ptp(2): event 106: suppval[1] of d108 is 0x2. +1.819752 ptp(2): event 106: suppval[2] of d108 is 0x1. +1.819875 ptp(2): event 107: EOS prop d106 desc record, datasize 28, propxtype 3 +1.819996 ptp(2): event 107: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 7. +1.820893 ptp(2): event 107: suppval[0] of d106 is 0x0. +1.821029 ptp(2): event 107: suppval[1] of d106 is 0x4. +1.821144 ptp(2): event 107: suppval[2] of d106 is 0x5. +1.821258 ptp(2): event 107: suppval[3] of d106 is 0x13. +1.821370 ptp(2): event 107: suppval[4] of d106 is 0x14. +1.821717 ptp(2): event 107: suppval[5] of d106 is 0x10. +1.822406 ptp(2): event 107: suppval[6] of d106 is 0x11. +1.822556 ptp(2): event 108: EOS prop d107 desc record, datasize 16, propxtype 3 +1.822682 ptp(2): event 108: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 4. +1.823490 ptp(2): event 108: suppval[0] of d107 is 0x3. +1.823628 ptp(2): event 108: suppval[1] of d107 is 0x4. +1.823744 ptp(2): event 108: suppval[2] of d107 is 0x1. +1.823856 ptp(2): event 108: suppval[3] of d107 is 0x5. +1.824271 ptp(2): event 109: EOS prop d109 desc record, datasize 36, propxtype 3 +1.824411 ptp(2): event 109: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 9. +1.825121 ptp(2): event 109: suppval[0] of d109 is 0x0. +1.825257 ptp(2): event 109: suppval[1] of d109 is 0x1. +1.825372 ptp(2): event 109: suppval[2] of d109 is 0x8. +1.825487 ptp(2): event 109: suppval[3] of d109 is 0x2. +1.825596 ptp(2): event 109: suppval[4] of d109 is 0x3. +1.826529 ptp(2): event 109: suppval[5] of d109 is 0x4. +1.826697 ptp(2): event 109: suppval[6] of d109 is 0x5. +1.826818 ptp(2): event 109: suppval[7] of d109 is 0x6. +1.826930 ptp(2): event 109: suppval[8] of d109 is 0x9. +1.827050 ptp(2): event 110: EOS prop d10a desc record, datasize 304, propxtype 3 +1.827404 ptp(2): event 110: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +1.828146 ptp(2): event 110: suppval[0] of d10a is 0x9c4. +1.828287 ptp(2): event 110: suppval[1] of d10a is 0xa28. +1.828404 ptp(2): event 110: suppval[2] of d10a is 0xa8c. +1.829233 ptp(2): event 110: suppval[3] of d10a is 0xaf0. +1.829375 ptp(2): event 110: suppval[4] of d10a is 0xb54. +1.829491 ptp(2): event 110: suppval[5] of d10a is 0xbb8. +1.829601 ptp(2): event 110: suppval[6] of d10a is 0xc1c. +1.829716 ptp(2): event 110: suppval[7] of d10a is 0xc80. +1.830603 ptp(2): event 110: suppval[8] of d10a is 0xce4. +1.830740 ptp(2): event 110: suppval[9] of d10a is 0xd48. +1.830854 ptp(2): event 110: suppval[10] of d10a is 0xdac. +1.830973 ptp(2): event 110: suppval[11] of d10a is 0xe10. +1.831853 ptp(2): event 110: suppval[12] of d10a is 0xe74. +1.832042 ptp(2): event 110: suppval[13] of d10a is 0xed8. +1.832213 ptp(2): event 110: suppval[14] of d10a is 0xf3c. +1.832339 ptp(2): event 110: suppval[15] of d10a is 0xfa0. +1.833253 ptp(2): event 110: suppval[16] of d10a is 0x1004. +1.833394 ptp(2): event 110: suppval[17] of d10a is 0x1068. +1.833510 ptp(2): event 110: suppval[18] of d10a is 0x10cc. +1.833629 ptp(2): event 110: suppval[19] of d10a is 0x1130. +1.834510 ptp(2): event 110: suppval[20] of d10a is 0x1194. +1.834646 ptp(2): event 110: suppval[21] of d10a is 0x11f8. +1.834764 ptp(2): event 110: suppval[22] of d10a is 0x125c. +1.834881 ptp(2): event 110: suppval[23] of d10a is 0x12c0. +1.835813 ptp(2): event 110: suppval[24] of d10a is 0x1324. +1.835954 ptp(2): event 110: suppval[25] of d10a is 0x1388. +1.836072 ptp(2): event 110: suppval[26] of d10a is 0x13ec. +1.836191 ptp(2): event 110: suppval[27] of d10a is 0x1450. +1.836545 ptp(2): event 110: suppval[28] of d10a is 0x14b4. +1.836677 ptp(2): event 110: suppval[29] of d10a is 0x1518. +1.836796 ptp(2): event 110: suppval[30] of d10a is 0x157c. +1.837512 ptp(2): event 110: suppval[31] of d10a is 0x15e0. +1.837650 ptp(2): event 110: suppval[32] of d10a is 0x1644. +1.837766 ptp(2): event 110: suppval[33] of d10a is 0x16a8. +1.837879 ptp(2): event 110: suppval[34] of d10a is 0x170c. +1.838767 ptp(2): event 110: suppval[35] of d10a is 0x1770. +1.838908 ptp(2): event 110: suppval[36] of d10a is 0x17d4. +1.839027 ptp(2): event 110: suppval[37] of d10a is 0x1838. +1.839392 ptp(2): event 110: suppval[38] of d10a is 0x189c. +1.840067 ptp(2): event 110: suppval[39] of d10a is 0x1900. +1.840266 ptp(2): event 110: suppval[40] of d10a is 0x1964. +1.840388 ptp(2): event 110: suppval[41] of d10a is 0x19c8. +1.841233 ptp(2): event 110: suppval[42] of d10a is 0x1a2c. +1.842051 ptp(2): event 110: suppval[43] of d10a is 0x1a90. +1.842197 ptp(2): event 110: suppval[44] of d10a is 0x1af4. +1.842318 ptp(2): event 110: suppval[45] of d10a is 0x1b58. +1.843223 ptp(2): event 110: suppval[46] of d10a is 0x1bbc. +1.844018 ptp(2): event 110: suppval[47] of d10a is 0x1c20. +1.844153 ptp(2): event 110: suppval[48] of d10a is 0x1c84. +1.844501 ptp(2): event 110: suppval[49] of d10a is 0x1ce8. +1.844622 ptp(2): event 110: suppval[50] of d10a is 0x1d4c. +1.845290 ptp(2): event 110: suppval[51] of d10a is 0x1db0. +1.845434 ptp(2): event 110: suppval[52] of d10a is 0x1e14. +1.845551 ptp(2): event 110: suppval[53] of d10a is 0x1e78. +1.846500 ptp(2): event 110: suppval[54] of d10a is 0x1edc. +1.846640 ptp(2): event 110: suppval[55] of d10a is 0x1f40. +1.846756 ptp(2): event 110: suppval[56] of d10a is 0x1fa4. +1.847102 ptp(2): event 110: suppval[57] of d10a is 0x2008. +1.847232 ptp(2): event 110: suppval[58] of d10a is 0x206c. +1.847351 ptp(2): event 110: suppval[59] of d10a is 0x20d0. +1.847465 ptp(2): event 110: suppval[60] of d10a is 0x2134. +1.847579 ptp(2): event 110: suppval[61] of d10a is 0x2198. +1.848296 ptp(2): event 110: suppval[62] of d10a is 0x21fc. +1.848461 ptp(2): event 110: suppval[63] of d10a is 0x2260. +1.848578 ptp(2): event 110: suppval[64] of d10a is 0x22c4. +1.848694 ptp(2): event 110: suppval[65] of d10a is 0x2328. +1.848809 ptp(2): event 110: suppval[66] of d10a is 0x238c. +1.849645 ptp(2): event 110: suppval[67] of d10a is 0x23f0. +1.849817 ptp(2): event 110: suppval[68] of d10a is 0x2454. +1.849938 ptp(2): event 110: suppval[69] of d10a is 0x24b8. +1.850055 ptp(2): event 110: suppval[70] of d10a is 0x251c. +1.850393 ptp(2): event 110: suppval[71] of d10a is 0x2580. +1.851117 ptp(2): event 110: suppval[72] of d10a is 0x25e4. +1.851258 ptp(2): event 110: suppval[73] of d10a is 0x2648. +1.851377 ptp(2): event 110: suppval[74] of d10a is 0x26ac. +1.851491 ptp(2): event 110: suppval[75] of d10a is 0x2710. +1.852391 ptp(2): event 111: EOS prop d10b desc record, datasize 76, propxtype 3 +1.852535 ptp(2): event 111: propxtype is 3, prop is 0xd10b, data type is 0x0003, propxcnt is 19. +1.853378 ptp(2): event 111: suppval[0] of d10b is 0xfff7. +1.853515 ptp(2): event 111: suppval[1] of d10b is 0xfff8. +1.853635 ptp(2): event 111: suppval[2] of d10b is 0xfff9. +1.853752 ptp(2): event 111: suppval[3] of d10b is 0xfffa. +1.854059 ptp(2): event 111: suppval[4] of d10b is 0xfffb. +1.854769 ptp(2): event 111: suppval[5] of d10b is 0xfffc. +1.854908 ptp(2): event 111: suppval[6] of d10b is 0xfffd. +1.855027 ptp(2): event 111: suppval[7] of d10b is 0xfffe. +1.855143 ptp(2): event 111: suppval[8] of d10b is 0xffff. +1.855525 ptp(2): event 111: suppval[9] of d10b is 0x0. +1.856356 ptp(2): event 111: suppval[10] of d10b is 0x1. +1.856498 ptp(2): event 111: suppval[11] of d10b is 0x2. +1.856616 ptp(2): event 111: suppval[12] of d10b is 0x3. +1.856730 ptp(2): event 111: suppval[13] of d10b is 0x4. +1.856849 ptp(2): event 111: suppval[14] of d10b is 0x5. +1.857745 ptp(2): event 111: suppval[15] of d10b is 0x6. +1.857881 ptp(2): event 111: suppval[16] of d10b is 0x7. +1.858000 ptp(2): event 111: suppval[17] of d10b is 0x8. +1.858113 ptp(2): event 111: suppval[18] of d10b is 0x9. +1.858955 ptp(2): event 112: EOS prop d10c desc record, datasize 76, propxtype 3 +1.859127 ptp(2): event 112: propxtype is 3, prop is 0xd10c, data type is 0x0003, propxcnt is 19. +1.859256 ptp(2): event 112: suppval[0] of d10c is 0xfff7. +1.859375 ptp(2): event 112: suppval[1] of d10c is 0xfff8. +1.859492 ptp(2): event 112: suppval[2] of d10c is 0xfff9. +1.859812 ptp(2): event 112: suppval[3] of d10c is 0xfffa. +1.860527 ptp(2): event 112: suppval[4] of d10c is 0xfffb. +1.860674 ptp(2): event 112: suppval[5] of d10c is 0xfffc. +1.862205 ptp(2): event 112: suppval[6] of d10c is 0xfffd. +1.862372 ptp(2): event 112: suppval[7] of d10c is 0xfffe. +1.862485 ptp(2): event 112: suppval[8] of d10c is 0xffff. +1.862603 ptp(2): event 112: suppval[9] of d10c is 0x0. +1.862973 ptp(2): event 112: suppval[10] of d10c is 0x1. +1.863104 ptp(2): event 112: suppval[11] of d10c is 0x2. +1.863219 ptp(2): event 112: suppval[12] of d10c is 0x3. +1.863336 ptp(2): event 112: suppval[13] of d10c is 0x4. +1.864052 ptp(2): event 112: suppval[14] of d10c is 0x5. +1.864234 ptp(2): event 112: suppval[15] of d10c is 0x6. +1.864994 ptp(2): event 112: suppval[16] of d10c is 0x7. +1.865159 ptp(2): event 112: suppval[17] of d10c is 0x8. +1.865489 ptp(2): event 112: suppval[18] of d10c is 0x9. +1.865638 ptp(2): event 113: EOS prop d10d desc record, datasize 16, propxtype 3 +1.865857 ptp(2): event 113: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +1.866646 ptp(2): event 113: suppval[0] of d10d is 0x0. +1.866786 ptp(2): event 113: suppval[1] of d10d is 0x1. +1.866906 ptp(2): event 113: suppval[2] of d10d is 0x2. +1.867023 ptp(2): event 113: suppval[3] of d10d is 0x3. +1.867351 ptp(2): event 114: EOS prop d10e desc record, datasize 16, propxtype 3 +1.868079 ptp(2): event 114: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +1.868226 ptp(2): event 114: suppval[0] of d10e is 0x0. +1.868350 ptp(2): event 114: suppval[1] of d10e is 0x1. +1.869225 ptp(2): event 114: suppval[2] of d10e is 0x2. +1.869367 ptp(2): event 114: suppval[3] of d10e is 0x3. +1.869493 ptp(2): event 115: EOS prop d10f desc record, datasize 8, propxtype 3 +1.869619 ptp(2): event 115: propxtype is 3, prop is 0xd10f, data type is 0x0004, propxcnt is 2. +1.869940 ptp(2): event 115: suppval[0] of d10f is 0x1. +1.870662 ptp(2): event 115: suppval[1] of d10f is 0x2. +1.870805 ptp(2): event 116: EOS prop d11b desc record, datasize 0, propxtype 1 +1.870930 ptp(2): event 116: propxtype is 1 for d11b, unhandled. +1.871263 ptp(2): event 117: EOS prop d114 desc record, datasize 0, propxtype 1 +1.872029 ptp(2): event 117: propxtype is 1 for d114, unhandled. +1.872870 ptp(2): event 118: EOS prop d116 desc record, datasize 0, propxtype 1 +1.873013 ptp(2): event 118: propxtype is 1 for d116, unhandled. +1.873133 ptp(2): event 119: EOS prop d119 desc record, datasize 0, propxtype 1 +1.873503 ptp(2): event 119: propxtype is 1 for d119, unhandled. +1.873647 ptp(2): event 120: EOS prop d11a desc record, datasize 0, propxtype 1 +1.874395 ptp(2): event 120: propdesc d11a, default value not found. +1.874545 ptp(2): event 121: EOS prop d110 desc record, datasize 40, propxtype 3 +1.874674 ptp(2): event 121: propxtype is 3, prop is 0xd110, data type is 0x0002, propxcnt is 10. +1.875529 ptp(2): event 121: suppval[0] of d110 is 0x87. +1.875742 ptp(2): event 121: suppval[1] of d110 is 0x81. +1.875876 ptp(2): event 121: suppval[2] of d110 is 0x82. +1.875993 ptp(2): event 121: suppval[3] of d110 is 0x83. +1.876914 ptp(2): event 121: suppval[4] of d110 is 0x84. +1.877059 ptp(2): event 121: suppval[5] of d110 is 0x85. +1.877178 ptp(2): event 121: suppval[6] of d110 is 0x86. +1.878034 ptp(2): event 121: suppval[7] of d110 is 0x21. +1.878181 ptp(2): event 121: suppval[8] of d110 is 0x22. +1.878301 ptp(2): event 121: suppval[9] of d110 is 0x23. +1.878424 ptp(2): event 122: EOS prop d115 desc record, datasize 0, propxtype 7 +1.878781 ptp(2): event 122: propdesc d115, default value not found. +1.879513 ptp(2): event 123: EOS prop d101 desc record, datasize 0, propxtype 3 +1.879661 ptp(2): event 124: EOS prop d102 desc record, datasize 220, propxtype 3 +1.879788 ptp(2): event 124: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 55. +1.880722 ptp(2): event 124: suppval[0] of d102 is 0x10. +1.880861 ptp(2): event 124: suppval[1] of d102 is 0x13. +1.880977 ptp(2): event 124: suppval[2] of d102 is 0x15. +1.881094 ptp(2): event 124: suppval[3] of d102 is 0x18. +1.881210 ptp(2): event 124: suppval[4] of d102 is 0x1b. +1.881553 ptp(2): event 124: suppval[5] of d102 is 0x1d. +1.882253 ptp(2): event 124: suppval[6] of d102 is 0x20. +1.882391 ptp(2): event 124: suppval[7] of d102 is 0x23. +1.882508 ptp(2): event 124: suppval[8] of d102 is 0x25. +1.882815 ptp(2): event 124: suppval[9] of d102 is 0x28. +1.883925 ptp(2): event 124: suppval[10] of d102 is 0x2b. +1.884927 ptp(2): event 124: suppval[11] of d102 is 0x2d. +1.885466 ptp(2): event 124: suppval[12] of d102 is 0x30. +1.886799 ptp(2): event 124: suppval[13] of d102 is 0x33. +1.886957 ptp(2): event 124: suppval[14] of d102 is 0x35. +1.887325 ptp(2): event 124: suppval[15] of d102 is 0x38. +1.887456 ptp(2): event 124: suppval[16] of d102 is 0x3b. +1.887572 ptp(2): event 124: suppval[17] of d102 is 0x3d. +1.887688 ptp(2): event 124: suppval[18] of d102 is 0x40. +1.887805 ptp(2): event 124: suppval[19] of d102 is 0x43. +1.887921 ptp(2): event 124: suppval[20] of d102 is 0x45. +1.888698 ptp(2): event 124: suppval[21] of d102 is 0x48. +1.888838 ptp(2): event 124: suppval[22] of d102 is 0x4b. +1.888959 ptp(2): event 124: suppval[23] of d102 is 0x4d. +1.889075 ptp(2): event 124: suppval[24] of d102 is 0x50. +1.889389 ptp(2): event 124: suppval[25] of d102 is 0x53. +1.890121 ptp(2): event 124: suppval[26] of d102 is 0x55. +1.890913 ptp(2): event 124: suppval[27] of d102 is 0x58. +1.891277 ptp(2): event 124: suppval[28] of d102 is 0x5b. +1.891410 ptp(2): event 124: suppval[29] of d102 is 0x5d. +1.891530 ptp(2): event 124: suppval[30] of d102 is 0x60. +1.892207 ptp(2): event 124: suppval[31] of d102 is 0x63. +1.892347 ptp(2): event 124: suppval[32] of d102 is 0x65. +1.892465 ptp(2): event 124: suppval[33] of d102 is 0x68. +1.892579 ptp(2): event 124: suppval[34] of d102 is 0x6b. +1.893479 ptp(2): event 124: suppval[35] of d102 is 0x6d. +1.893624 ptp(2): event 124: suppval[36] of d102 is 0x70. +1.893737 ptp(2): event 124: suppval[37] of d102 is 0x73. +1.893851 ptp(2): event 124: suppval[38] of d102 is 0x75. +1.894737 ptp(2): event 124: suppval[39] of d102 is 0x78. +1.894879 ptp(2): event 124: suppval[40] of d102 is 0x7b. +1.894994 ptp(2): event 124: suppval[41] of d102 is 0x7d. +1.895920 ptp(2): event 124: suppval[42] of d102 is 0x80. +1.896101 ptp(2): event 124: suppval[43] of d102 is 0x83. +1.896260 ptp(2): event 124: suppval[44] of d102 is 0x85. +1.896378 ptp(2): event 124: suppval[45] of d102 is 0x88. +1.897245 ptp(2): event 124: suppval[46] of d102 is 0x8b. +1.897383 ptp(2): event 124: suppval[47] of d102 is 0x8d. +1.897498 ptp(2): event 124: suppval[48] of d102 is 0x90. +1.897610 ptp(2): event 124: suppval[49] of d102 is 0x93. +1.897723 ptp(2): event 124: suppval[50] of d102 is 0x95. +1.898072 ptp(2): event 124: suppval[51] of d102 is 0x98. +1.898205 ptp(2): event 124: suppval[52] of d102 is 0x9b. +1.898899 ptp(2): event 124: suppval[53] of d102 is 0x9d. +1.899033 ptp(2): event 124: suppval[54] of d102 is 0xa0. +1.899158 ptp(2): event 125: EOS prop d103 desc record, datasize 104, propxtype 3 +1.899285 ptp(2): event 125: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 26. +1.899678 ptp(2): event 125: suppval[0] of d103 is 0x0. +1.900387 ptp(2): event 125: suppval[1] of d103 is 0x48. +1.900521 ptp(2): event 125: suppval[2] of d103 is 0x4b. +1.900640 ptp(2): event 125: suppval[3] of d103 is 0x4d. +1.900758 ptp(2): event 125: suppval[4] of d103 is 0x50. +1.901633 ptp(2): event 125: suppval[5] of d103 is 0x53. +1.901767 ptp(2): event 125: suppval[6] of d103 is 0x55. +1.901884 ptp(2): event 125: suppval[7] of d103 is 0x58. +1.902730 ptp(2): event 125: suppval[8] of d103 is 0x5b. +1.903581 ptp(2): event 125: suppval[9] of d103 is 0x5d. +1.903749 ptp(2): event 125: suppval[10] of d103 is 0x60. +1.904640 ptp(2): event 125: suppval[11] of d103 is 0x63. +1.904776 ptp(2): event 125: suppval[12] of d103 is 0x65. +1.904896 ptp(2): event 125: suppval[13] of d103 is 0x68. +1.905010 ptp(2): event 125: suppval[14] of d103 is 0x6b. +1.905395 ptp(2): event 125: suppval[15] of d103 is 0x6d. +1.905534 ptp(2): event 125: suppval[16] of d103 is 0x70. +1.905726 ptp(2): event 125: suppval[17] of d103 is 0x73. +1.906453 ptp(2): event 125: suppval[18] of d103 is 0x75. +1.906594 ptp(2): event 125: suppval[19] of d103 is 0x78. +1.906710 ptp(2): event 125: suppval[20] of d103 is 0x7b. +1.906826 ptp(2): event 125: suppval[21] of d103 is 0x7d. +1.907697 ptp(2): event 125: suppval[22] of d103 is 0x80. +1.907838 ptp(2): event 125: suppval[23] of d103 is 0x83. +1.907957 ptp(2): event 125: suppval[24] of d103 is 0x85. +1.908072 ptp(2): event 125: suppval[25] of d103 is 0x88. +1.908192 ptp(2): event 126: EOS prop d104 desc record, datasize 124, propxtype 3 +1.909063 ptp(2): event 126: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 31. +1.909235 ptp(2): event 126: suppval[0] of d104 is 0xd8. +1.909356 ptp(2): event 126: suppval[1] of d104 is 0xdb. +1.910236 ptp(2): event 126: suppval[2] of d104 is 0xdd. +1.910378 ptp(2): event 126: suppval[3] of d104 is 0xe0. +1.910490 ptp(2): event 126: suppval[4] of d104 is 0xe3. +1.910605 ptp(2): event 126: suppval[5] of d104 is 0xe5. +1.910718 ptp(2): event 126: suppval[6] of d104 is 0xe8. +1.911090 ptp(2): event 126: suppval[7] of d104 is 0xeb. +1.911783 ptp(2): event 126: suppval[8] of d104 is 0xed. +1.911929 ptp(2): event 126: suppval[9] of d104 is 0xf0. +1.912088 ptp(2): event 126: suppval[10] of d104 is 0xf3. +1.912933 ptp(2): event 126: suppval[11] of d104 is 0xf5. +1.913068 ptp(2): event 126: suppval[12] of d104 is 0xf8. +1.913180 ptp(2): event 126: suppval[13] of d104 is 0xfb. +1.913295 ptp(2): event 126: suppval[14] of d104 is 0xfd. +1.913635 ptp(2): event 126: suppval[15] of d104 is 0x0. +1.913765 ptp(2): event 126: suppval[16] of d104 is 0x3. +1.913881 ptp(2): event 126: suppval[17] of d104 is 0x5. +1.914568 ptp(2): event 126: suppval[18] of d104 is 0x8. +1.914708 ptp(2): event 126: suppval[19] of d104 is 0xb. +1.914826 ptp(2): event 126: suppval[20] of d104 is 0xd. +1.914942 ptp(2): event 126: suppval[21] of d104 is 0x10. +1.915919 ptp(2): event 126: suppval[22] of d104 is 0x13. +1.916064 ptp(2): event 126: suppval[23] of d104 is 0x15. +1.916182 ptp(2): event 126: suppval[24] of d104 is 0x18. +1.916297 ptp(2): event 126: suppval[25] of d104 is 0x1b. +1.916645 ptp(2): event 126: suppval[26] of d104 is 0x1d. +1.916787 ptp(2): event 126: suppval[27] of d104 is 0x20. +1.917502 ptp(2): event 126: suppval[28] of d104 is 0x23. +1.917638 ptp(2): event 126: suppval[29] of d104 is 0x25. +1.917755 ptp(2): event 126: suppval[30] of d104 is 0x28. +1.917878 ptp(2): event 127: EOS prop d11d desc record, datasize 0, propxtype 1 +1.918763 ptp(2): event 127: propxtype is 1 for d11d, unhandled. +1.918907 ptp(2): event 128: EOS prop d111 desc record, datasize 0, propxtype 1 +1.919030 ptp(2): event 128: propxtype is 1 for d111, unhandled. +1.919150 ptp(2): event 129: EOS prop d112 desc record, datasize 0, propxtype 1 +1.919463 ptp(2): event 129: propxtype is 1 for d112, unhandled. +1.920222 ptp(2): event 130: EOS prop d113 desc record, datasize 0, propxtype 7 +1.920372 ptp(2): event 130: propxtype is 7 for d113, unhandled. +1.920497 ptp(2): event 131: EOS prop d17c desc record, datasize 0, propxtype 7 +1.920614 ptp(2): event 131: propxtype is 7 for d17c, unhandled. +1.921493 ptp(2): event 132: EOS prop d17d desc record, datasize 396, propxtype 3 +1.921646 ptp(2): event 132: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +1.921775 ptp(2): event 132: data type 0x0000 of d17d unhandled, raw values: +1.921894 ptp(2): 0: 0x c +1.922767 ptp(2): 1: 0x 1 +1.922933 ptp(2): 2: 0x 2fd +1.923053 ptp(2): 3: 0x c +1.923868 ptp(2): 4: 0x 2 +1.924006 ptp(2): 5: 0x 2d0 +1.924122 ptp(2): 6: 0x c +1.924233 ptp(2): 7: 0x 3 +1.924613 ptp(2): 8: 0x 294 +1.924747 ptp(2): 9: 0x c +1.924857 ptp(2): 10: 0x 4 +1.925534 ptp(2): 11: 0x 258 +1.925742 ptp(2): 12: 0x c +1.925874 ptp(2): 13: 0x 5 +1.926224 ptp(2): 14: 0x 23a +1.926908 ptp(2): 15: 0x c +1.927040 ptp(2): 16: 0x 6 +1.927154 ptp(2): 17: 0x 21c +1.927488 ptp(2): 18: 0x c +1.927624 ptp(2): 19: 0x 7 +1.928299 ptp(2): 20: 0x 1e0 +1.928432 ptp(2): 21: 0x c +1.928748 ptp(2): 22: 0x 8 +1.929411 ptp(2): 23: 0x 1a4 +1.929551 ptp(2): 24: 0x c +1.929666 ptp(2): 25: 0x 9 +1.930491 ptp(2): 26: 0x 186 +1.930628 ptp(2): 27: 0x c +1.930740 ptp(2): 28: 0x a +1.930850 ptp(2): 29: 0x 168 +1.931186 ptp(2): 30: 0x c +1.931853 ptp(2): 31: 0x b +1.931985 ptp(2): 32: 0x 159 +1.932795 ptp(2): 33: 0x c +1.932930 ptp(2): 34: 0x c +1.933043 ptp(2): 35: 0x 14a +1.933416 ptp(2): 36: 0x c +1.933547 ptp(2): 37: 0x d +1.933661 ptp(2): 38: 0x 12c +1.933775 ptp(2): 39: 0x c +1.934452 ptp(2): 40: 0x e +1.934588 ptp(2): 41: 0x 10e +1.934702 ptp(2): 42: 0x c +1.934814 ptp(2): 43: 0x f +1.935713 ptp(2): 44: 0x f0 +1.935886 ptp(2): 45: 0x c +1.936782 ptp(2): 46: 0x 10 +1.936936 ptp(2): 47: 0x d2 +1.937279 ptp(2): 48: 0x c +1.937415 ptp(2): 49: 0x 11 +1.937531 ptp(2): 50: 0x b4 +1.937645 ptp(2): 51: 0x c +1.937757 ptp(2): 52: 0x 12 +1.937868 ptp(2): 53: 0x 78 +1.938547 ptp(2): 54: 0x c +1.938689 ptp(2): 55: 0x 13 +1.938805 ptp(2): 56: 0x 3c +1.939596 ptp(2): 57: 0x c +1.939729 ptp(2): 58: 0x 14 +1.940031 ptp(2): 59: 0x 0 +1.940193 ptp(2): 60: 0x c +1.940847 ptp(2): 61: 0x 15 +1.940980 ptp(2): 62: 0xffffffc4 +1.941096 ptp(2): 63: 0x c +1.941953 ptp(2): 64: 0x 16 +1.942091 ptp(2): 65: 0xffffff88 +1.942205 ptp(2): 66: 0x c +1.942318 ptp(2): 67: 0x 17 +1.942431 ptp(2): 68: 0xffffff4c +1.943313 ptp(2): 69: 0x c +1.943451 ptp(2): 70: 0x 18 +1.943568 ptp(2): 71: 0xffffff2e +1.944484 ptp(2): 72: 0x c +1.944625 ptp(2): 73: 0x 19 +1.944737 ptp(2): 74: 0xffffff10 +1.944852 ptp(2): 75: 0x c +1.945173 ptp(2): 76: 0x 1a +1.945953 ptp(2): 77: 0xffffff10 +1.946762 ptp(2): 78: 0x c +1.946894 ptp(2): 79: 0x 1b +1.947206 ptp(2): 80: 0xfffffed4 +1.947360 ptp(2): 81: 0x c +1.948018 ptp(2): 82: 0x 1c +1.948148 ptp(2): 83: 0xfffffe98 +1.948265 ptp(2): 84: 0x c +1.948570 ptp(2): 85: 0x 1d +1.949256 ptp(2): 86: 0xfffffe5c +1.949392 ptp(2): 87: 0x c +1.949506 ptp(2): 88: 0x 1e +1.949614 ptp(2): 89: 0xfffffe20 +1.951058 ptp(2): 90: 0x c +1.951946 ptp(2): 91: 0x 1f +1.952121 ptp(2): 92: 0xfffffde4 +1.952280 ptp(2): 93: 0x c +1.952611 ptp(2): 94: 0x 20 +1.953279 ptp(2): 95: 0xfffffda8 +1.953411 ptp(2): 96: 0x c +1.953528 ptp(2): 97: 0x 21 +1.953638 ptp(2): 98: 0x 30c +1.953761 ptp(2): event 133: EOS prop d17e desc record, datasize 8, propxtype 3 +1.954665 ptp(2): event 133: propxtype is 3, prop is 0xd17e, data type is 0x0000, propxcnt is 2. +1.954842 ptp(2): event 133: data type 0x0000 of d17e unhandled, raw values: +1.954966 ptp(2): 0: 0x 0 +1.956065 ptp(2): 1: 0x 1 +1.956211 ptp(2): event 134: EOS prop d120 desc record, datasize 1084, propxtype 3 +1.956341 ptp(2): event 134: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 35. +1.956713 ptp(2): event 134: suppval[0] of d120 is 0x300. +1.957438 ptp(2): event 134: suppval[1] of d120 is 0x200. +1.957587 ptp(2): event 134: suppval[2] of d120 is 0x1300. +1.957710 ptp(2): event 134: suppval[3] of d120 is 0x1200. +1.958544 ptp(2): event 134: suppval[4] of d120 is 0xd300. +1.958688 ptp(2): event 134: suppval[5] of d120 is 0xd200. +1.958807 ptp(2): event 134: suppval[6] of d120 is 0xe300. +1.958927 ptp(2): event 134: suppval[7] of d120 is 0xf300. +1.959275 ptp(2): event 134: suppval[8] of d120 is 0x403. +1.959410 ptp(2): event 134: suppval[9] of d120 is 0x402. +1.959531 ptp(2): event 134: suppval[10] of d120 is 0x413. +1.960289 ptp(2): event 134: suppval[11] of d120 is 0x412. +1.960428 ptp(2): event 134: suppval[12] of d120 is 0x4d3. +1.960550 ptp(2): event 134: suppval[13] of d120 is 0x4d2. +1.961364 ptp(2): event 134: suppval[14] of d120 is 0x4e3. +1.961511 ptp(2): event 134: suppval[15] of d120 is 0x4f3. +1.961631 ptp(2): event 134: suppval[16] of d120 is 0x1403. +1.961945 ptp(2): event 134: suppval[17] of d120 is 0x1402. +1.962646 ptp(2): event 134: suppval[18] of d120 is 0x1413. +1.962785 ptp(2): event 134: suppval[19] of d120 is 0x1412. +1.962904 ptp(2): event 134: suppval[20] of d120 is 0x14d3. +1.963020 ptp(2): event 134: suppval[21] of d120 is 0x14d2. +1.963414 ptp(2): event 134: suppval[22] of d120 is 0x14e3. +1.964144 ptp(2): event 134: suppval[23] of d120 is 0x14f3. +1.964282 ptp(2): event 134: suppval[24] of d120 is 0x2403. +1.964403 ptp(2): event 134: suppval[25] of d120 is 0x2402. +1.965240 ptp(2): event 134: suppval[26] of d120 is 0x2413. +1.965386 ptp(2): event 134: suppval[27] of d120 is 0x2412. +1.965507 ptp(2): event 134: suppval[28] of d120 is 0x24d3. +1.965622 ptp(2): event 134: suppval[29] of d120 is 0x24d2. +1.966645 ptp(2): event 134: suppval[30] of d120 is 0x24e3. +1.966792 ptp(2): event 134: suppval[31] of d120 is 0x24f3. +1.966912 ptp(2): event 134: suppval[32] of d120 is 0x400. +1.967779 ptp(2): event 134: suppval[33] of d120 is 0x1400. +1.967917 ptp(2): event 134: suppval[34] of d120 is 0x2400. +1.968088 ptp(2): event 135: EOS prop d121 desc record, datasize 1084, propxtype 3 +1.968459 ptp(2): event 135: propxtype is 3, prop is 0xd121, data type is 0x0004, propxcnt is 35. +1.968627 ptp(2): event 135: suppval[0] of d121 is 0x300. +1.969334 ptp(2): event 135: suppval[1] of d121 is 0x200. +1.969476 ptp(2): event 135: suppval[2] of d121 is 0x1300. +1.969598 ptp(2): event 135: suppval[3] of d121 is 0x1200. +1.969715 ptp(2): event 135: suppval[4] of d121 is 0xd300. +1.970593 ptp(2): event 135: suppval[5] of d121 is 0xd200. +1.970738 ptp(2): event 135: suppval[6] of d121 is 0xe300. +1.970859 ptp(2): event 135: suppval[7] of d121 is 0xf300. +1.970976 ptp(2): event 135: suppval[8] of d121 is 0x403. +1.971094 ptp(2): event 135: suppval[9] of d121 is 0x402. +1.972017 ptp(2): event 135: suppval[10] of d121 is 0x413. +1.972162 ptp(2): event 135: suppval[11] of d121 is 0x412. +1.973014 ptp(2): event 135: suppval[12] of d121 is 0x4d3. +1.973159 ptp(2): event 135: suppval[13] of d121 is 0x4d2. +1.973281 ptp(2): event 135: suppval[14] of d121 is 0x4e3. +1.973634 ptp(2): event 135: suppval[15] of d121 is 0x4f3. +1.974311 ptp(2): event 135: suppval[16] of d121 is 0x1403. +1.974460 ptp(2): event 135: suppval[17] of d121 is 0x1402. +1.974582 ptp(2): event 135: suppval[18] of d121 is 0x1413. +1.975450 ptp(2): event 135: suppval[19] of d121 is 0x1412. +1.975598 ptp(2): event 135: suppval[20] of d121 is 0x14d3. +1.975807 ptp(2): event 135: suppval[21] of d121 is 0x14d2. +1.976202 ptp(2): event 135: suppval[22] of d121 is 0x14e3. +1.976344 ptp(2): event 135: suppval[23] of d121 is 0x14f3. +1.977050 ptp(2): event 135: suppval[24] of d121 is 0x2403. +1.977191 ptp(2): event 135: suppval[25] of d121 is 0x2402. +1.977311 ptp(2): event 135: suppval[26] of d121 is 0x2413. +1.978196 ptp(2): event 135: suppval[27] of d121 is 0x2412. +1.978339 ptp(2): event 135: suppval[28] of d121 is 0x24d3. +1.978461 ptp(2): event 135: suppval[29] of d121 is 0x24d2. +1.978581 ptp(2): event 135: suppval[30] of d121 is 0x24e3. +1.979448 ptp(2): event 135: suppval[31] of d121 is 0x24f3. +1.979588 ptp(2): event 135: suppval[32] of d121 is 0x400. +1.979707 ptp(2): event 135: suppval[33] of d121 is 0x1400. +1.979825 ptp(2): event 135: suppval[34] of d121 is 0x2400. +1.980713 ptp(2): event 136: EOS prop d122 desc record, datasize 1084, propxtype 3 +1.980866 ptp(2): event 136: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 35. +1.980994 ptp(2): event 136: suppval[0] of d122 is 0x300. +1.981115 ptp(2): event 136: suppval[1] of d122 is 0x200. +1.981234 ptp(2): event 136: suppval[2] of d122 is 0x1300. +1.981578 ptp(2): event 136: suppval[3] of d122 is 0x1200. +1.982296 ptp(2): event 136: suppval[4] of d122 is 0xd300. +1.982436 ptp(2): event 136: suppval[5] of d122 is 0xd200. +1.982556 ptp(2): event 136: suppval[6] of d122 is 0xe300. +1.982673 ptp(2): event 136: suppval[7] of d122 is 0xf300. +1.982792 ptp(2): event 136: suppval[8] of d122 is 0x403. +1.983665 ptp(2): event 136: suppval[9] of d122 is 0x402. +1.983807 ptp(2): event 136: suppval[10] of d122 is 0x413. +1.983929 ptp(2): event 136: suppval[11] of d122 is 0x412. +1.984093 ptp(2): event 136: suppval[12] of d122 is 0x4d3. +1.984487 ptp(2): event 136: suppval[13] of d122 is 0x4d2. +1.984624 ptp(2): event 136: suppval[14] of d122 is 0x4e3. +1.984745 ptp(2): event 136: suppval[15] of d122 is 0x4f3. +1.985450 ptp(2): event 136: suppval[16] of d122 is 0x1403. +1.985595 ptp(2): event 136: suppval[17] of d122 is 0x1402. +1.985804 ptp(2): event 136: suppval[18] of d122 is 0x1413. +1.986140 ptp(2): event 136: suppval[19] of d122 is 0x1412. +1.986861 ptp(2): event 136: suppval[20] of d122 is 0x14d3. +1.987667 ptp(2): event 136: suppval[21] of d122 is 0x14d2. +1.988059 ptp(2): event 136: suppval[22] of d122 is 0x14e3. +1.988203 ptp(2): event 136: suppval[23] of d122 is 0x14f3. +1.988325 ptp(2): event 136: suppval[24] of d122 is 0x2403. +1.988444 ptp(2): event 136: suppval[25] of d122 is 0x2402. +1.989136 ptp(2): event 136: suppval[26] of d122 is 0x2413. +1.989273 ptp(2): event 136: suppval[27] of d122 is 0x2412. +1.989394 ptp(2): event 136: suppval[28] of d122 is 0x24d3. +1.989513 ptp(2): event 136: suppval[29] of d122 is 0x24d2. +1.990403 ptp(2): event 136: suppval[30] of d122 is 0x24e3. +1.990546 ptp(2): event 136: suppval[31] of d122 is 0x24f3. +1.990666 ptp(2): event 136: suppval[32] of d122 is 0x400. +1.990783 ptp(2): event 136: suppval[33] of d122 is 0x1400. +1.991644 ptp(2): event 136: suppval[34] of d122 is 0x2400. +1.991787 ptp(2): event 137: EOS prop d156 desc record, datasize 0, propxtype 7 +1.991914 ptp(2): event 137: propxtype is 7 for d156, unhandled. +1.992072 ptp(2): event 138: EOS prop d150 desc record, datasize 0, propxtype 7 +1.992474 ptp(2): event 138: propxtype is 7 for d150, unhandled. +1.992613 ptp(2): event 139: EOS prop d151 desc record, datasize 0, propxtype 7 +1.993330 ptp(2): event 139: propxtype is 7 for d151, unhandled. +1.993477 ptp(2): event 140: EOS prop d152 desc record, datasize 0, propxtype 7 +1.993602 ptp(2): event 140: propxtype is 7 for d152, unhandled. +1.993723 ptp(2): event 141: EOS prop d153 desc record, datasize 0, propxtype 7 +1.994646 ptp(2): event 141: propxtype is 7 for d153, unhandled. +1.994791 ptp(2): event 142: EOS prop d154 desc record, datasize 0, propxtype 7 +1.994914 ptp(2): event 142: propxtype is 7 for d154, unhandled. +1.995032 ptp(2): event 143: EOS prop d155 desc record, datasize 0, propxtype 7 +1.995151 ptp(2): event 143: propxtype is 7 for d155, unhandled. +1.995464 ptp(2): event 144: EOS prop d160 desc record, datasize 0, propxtype 7 +1.996297 ptp(2): event 144: propxtype is 7 for d160, unhandled. +1.996437 ptp(2): event 145: EOS prop d161 desc record, datasize 0, propxtype 7 +1.996560 ptp(2): event 145: propxtype is 7 for d161, unhandled. +1.996681 ptp(2): event 146: EOS prop d162 desc record, datasize 0, propxtype 7 +1.997577 ptp(2): event 146: propxtype is 7 for d162, unhandled. +1.997723 ptp(2): event 147: EOS prop d170 desc record, datasize 0, propxtype 7 +1.997855 ptp(2): event 147: propdesc d170, default value not found. +1.997976 ptp(2): event 148: EOS prop d171 desc record, datasize 0, propxtype 7 +1.998102 ptp(2): event 148: propdesc d171, default value not found. +1.998496 ptp(2): event 149: EOS prop d172 desc record, datasize 0, propxtype 7 +1.999234 ptp(2): event 149: propdesc d172, default value not found. +1.999383 ptp(2): event 150: EOS prop d11c desc record, datasize 12, propxtype 3 +1.999512 ptp(2): event 150: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +2.000363 ptp(2): event 150: suppval[0] of d11c is 0x1. +2.000535 ptp(2): event 150: suppval[1] of d11c is 0x5. +2.000655 ptp(2): event 150: suppval[2] of d11c is 0x4. +2.000778 ptp(2): event 151: EOS prop d1a0 desc record, datasize 0, propxtype 7 +2.001103 ptp(2): event 151: propxtype is 7 for d1a0, unhandled. +2.001830 ptp(2): event 152: EOS prop d1a1 desc record, datasize 0, propxtype 7 +2.001979 ptp(2): event 152: propxtype is 7 for d1a1, unhandled. +2.002103 ptp(2): event 153: EOS prop d1a2 desc record, datasize 0, propxtype 7 +2.002232 ptp(2): event 153: propdesc d1a2, default value not found. +2.003154 ptp(2): event 154: EOS prop d1a8 desc record, datasize 0, propxtype 1 +2.003307 ptp(2): event 154: propxtype is 1 for d1a8, unhandled. +2.003433 ptp(2): event 155: EOS prop d1a7 desc record, datasize 0, propxtype 7 +2.003556 ptp(2): event 155: propxtype is 7 for d1a7, unhandled. +2.003675 ptp(2): event 156: EOS prop d1ab desc record, datasize 0, propxtype 1 +2.004630 ptp(2): event 156: propxtype is 1 for d1ab, unhandled. +2.005521 ptp(2): event 157: EOS prop d1b0 desc record, datasize 32, propxtype 3 +2.005956 ptp(2): event 157: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 8. +2.006684 ptp(2): event 157: suppval[0] of d1b0 is 0x0. +2.006831 ptp(2): event 157: suppval[1] of d1b0 is 0x1. +2.007632 ptp(2): event 157: suppval[2] of d1b0 is 0x2. +2.007771 ptp(2): event 157: suppval[3] of d1b0 is 0x3. +2.008106 ptp(2): event 157: suppval[4] of d1b0 is 0x4. +2.008795 ptp(2): event 157: suppval[5] of d1b0 is 0x5. +2.008962 ptp(2): event 157: suppval[6] of d1b0 is 0x6. +2.009084 ptp(2): event 157: suppval[7] of d1b0 is 0x7. +2.009954 ptp(2): event 158: EOS prop d1b1 desc record, datasize 8, propxtype 3 +2.010108 ptp(2): event 158: propxtype is 3, prop is 0xd1b1, data type is 0x0004, propxcnt is 2. +2.010235 ptp(2): event 158: suppval[0] of d1b1 is 0x0. +2.010352 ptp(2): event 158: suppval[1] of d1b1 is 0x1. +2.010686 ptp(2): event 159: EOS prop d1b2 desc record, datasize 0, propxtype 7 +2.010836 ptp(2): event 159: propxtype is 7 for d1b2, unhandled. +2.011544 ptp(2): event 160: EOS prop d1b3 desc record, datasize 0, propxtype 7 +2.011691 ptp(2): event 160: propxtype is 7 for d1b3, unhandled. +2.011817 ptp(2): event 161: EOS prop d1b4 desc record, datasize 40, propxtype 3 +2.011944 ptp(2): event 161: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 10. +2.012303 ptp(2): event 161: suppval[0] of d1b4 is 0x0. +2.012997 ptp(2): event 161: suppval[1] of d1b4 is 0x1. +2.013136 ptp(2): event 161: suppval[2] of d1b4 is 0x8. +2.013251 ptp(2): event 161: suppval[3] of d1b4 is 0x2. +2.014053 ptp(2): event 161: suppval[4] of d1b4 is 0x3. +2.014223 ptp(2): event 161: suppval[5] of d1b4 is 0x4. +2.014345 ptp(2): event 161: suppval[6] of d1b4 is 0x5. +2.014461 ptp(2): event 161: suppval[7] of d1b4 is 0x6. +2.014576 ptp(2): event 161: suppval[8] of d1b4 is 0x9. +2.015430 ptp(2): event 161: suppval[9] of d1b4 is 0x8000. +2.015606 ptp(2): event 162: EOS prop d1b5 desc record, datasize 0, propxtype 7 +2.015827 ptp(2): event 162: propxtype is 7 for d1b5, unhandled. +2.016776 ptp(2): event 163: EOS prop d1b6 desc record, datasize 304, propxtype 3 +2.016932 ptp(2): event 163: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +2.017061 ptp(2): event 163: suppval[0] of d1b6 is 0x9c4. +2.017180 ptp(2): event 163: suppval[1] of d1b6 is 0xa28. +2.017539 ptp(2): event 163: suppval[2] of d1b6 is 0xa8c. +2.018247 ptp(2): event 163: suppval[3] of d1b6 is 0xaf0. +2.018390 ptp(2): event 163: suppval[4] of d1b6 is 0xb54. +2.018510 ptp(2): event 163: suppval[5] of d1b6 is 0xbb8. +2.018626 ptp(2): event 163: suppval[6] of d1b6 is 0xc1c. +2.019497 ptp(2): event 163: suppval[7] of d1b6 is 0xc80. +2.019639 ptp(2): event 163: suppval[8] of d1b6 is 0xce4. +2.019758 ptp(2): event 163: suppval[9] of d1b6 is 0xd48. +2.019872 ptp(2): event 163: suppval[10] of d1b6 is 0xdac. +2.019988 ptp(2): event 163: suppval[11] of d1b6 is 0xe10. +2.020304 ptp(2): event 163: suppval[12] of d1b6 is 0xe74. +2.021029 ptp(2): event 163: suppval[13] of d1b6 is 0xed8. +2.021169 ptp(2): event 163: suppval[14] of d1b6 is 0xf3c. +2.021288 ptp(2): event 163: suppval[15] of d1b6 is 0xfa0. +2.021403 ptp(2): event 163: suppval[16] of d1b6 is 0x1004. +2.022295 ptp(2): event 163: suppval[17] of d1b6 is 0x1068. +2.023098 ptp(2): event 163: suppval[18] of d1b6 is 0x10cc. +2.023247 ptp(2): event 163: suppval[19] of d1b6 is 0x1130. +2.024160 ptp(2): event 163: suppval[20] of d1b6 is 0x1194. +2.024311 ptp(2): event 163: suppval[21] of d1b6 is 0x11f8. +2.024431 ptp(2): event 163: suppval[22] of d1b6 is 0x125c. +2.025323 ptp(2): event 163: suppval[23] of d1b6 is 0x12c0. +2.025466 ptp(2): event 163: suppval[24] of d1b6 is 0x1324. +2.025588 ptp(2): event 163: suppval[25] of d1b6 is 0x1388. +2.026533 ptp(2): event 163: suppval[26] of d1b6 is 0x13ec. +2.026675 ptp(2): event 163: suppval[27] of d1b6 is 0x1450. +2.026796 ptp(2): event 163: suppval[28] of d1b6 is 0x14b4. +2.027121 ptp(2): event 163: suppval[29] of d1b6 is 0x1518. +2.027276 ptp(2): event 163: suppval[30] of d1b6 is 0x157c. +2.027952 ptp(2): event 163: suppval[31] of d1b6 is 0x15e0. +2.028090 ptp(2): event 163: suppval[32] of d1b6 is 0x1644. +2.028211 ptp(2): event 163: suppval[33] of d1b6 is 0x16a8. +2.028329 ptp(2): event 163: suppval[34] of d1b6 is 0x170c. +2.029195 ptp(2): event 163: suppval[35] of d1b6 is 0x1770. +2.029904 ptp(2): event 163: suppval[36] of d1b6 is 0x17d4. +2.030042 ptp(2): event 163: suppval[37] of d1b6 is 0x1838. +2.030161 ptp(2): event 163: suppval[38] of d1b6 is 0x189c. +2.030476 ptp(2): event 163: suppval[39] of d1b6 is 0x1900. +2.031160 ptp(2): event 163: suppval[40] of d1b6 is 0x1964. +2.031963 ptp(2): event 163: suppval[41] of d1b6 is 0x19c8. +2.032886 ptp(2): event 163: suppval[42] of d1b6 is 0x1a2c. +2.033024 ptp(2): event 163: suppval[43] of d1b6 is 0x1a90. +2.033142 ptp(2): event 163: suppval[44] of d1b6 is 0x1af4. +2.033491 ptp(2): event 163: suppval[45] of d1b6 is 0x1b58. +2.034172 ptp(2): event 163: suppval[46] of d1b6 is 0x1bbc. +2.034309 ptp(2): event 163: suppval[47] of d1b6 is 0x1c20. +2.034429 ptp(2): event 163: suppval[48] of d1b6 is 0x1c84. +2.034779 ptp(2): event 163: suppval[49] of d1b6 is 0x1ce8. +2.035492 ptp(2): event 163: suppval[50] of d1b6 is 0x1d4c. +2.035638 ptp(2): event 163: suppval[51] of d1b6 is 0x1db0. +2.036613 ptp(2): event 163: suppval[52] of d1b6 is 0x1e14. +2.036761 ptp(2): event 163: suppval[53] of d1b6 is 0x1e78. +2.036875 ptp(2): event 163: suppval[54] of d1b6 is 0x1edc. +2.036994 ptp(2): event 163: suppval[55] of d1b6 is 0x1f40. +2.037110 ptp(2): event 163: suppval[56] of d1b6 is 0x1fa4. +2.038004 ptp(2): event 163: suppval[57] of d1b6 is 0x2008. +2.038146 ptp(2): event 163: suppval[58] of d1b6 is 0x206c. +2.038952 ptp(2): event 163: suppval[59] of d1b6 is 0x20d0. +2.039093 ptp(2): event 163: suppval[60] of d1b6 is 0x2134. +2.039214 ptp(2): event 163: suppval[61] of d1b6 is 0x2198. +2.039332 ptp(2): event 163: suppval[62] of d1b6 is 0x21fc. +2.040290 ptp(2): event 163: suppval[63] of d1b6 is 0x2260. +2.040431 ptp(2): event 163: suppval[64] of d1b6 is 0x22c4. +2.040552 ptp(2): event 163: suppval[65] of d1b6 is 0x2328. +2.041376 ptp(2): event 163: suppval[66] of d1b6 is 0x238c. +2.041552 ptp(2): event 163: suppval[67] of d1b6 is 0x23f0. +2.041675 ptp(2): event 163: suppval[68] of d1b6 is 0x2454. +2.041795 ptp(2): event 163: suppval[69] of d1b6 is 0x24b8. +2.042173 ptp(2): event 163: suppval[70] of d1b6 is 0x251c. +2.042892 ptp(2): event 163: suppval[71] of d1b6 is 0x2580. +2.043036 ptp(2): event 163: suppval[72] of d1b6 is 0x25e4. +2.043157 ptp(2): event 163: suppval[73] of d1b6 is 0x2648. +2.043964 ptp(2): event 163: suppval[74] of d1b6 is 0x26ac. +2.044129 ptp(2): event 163: suppval[75] of d1b6 is 0x2710. +2.044254 ptp(2): event 164: EOS prop d1a9 desc record, datasize 20, propxtype 3 +2.044391 ptp(2): event 164: propxtype is 3, prop is 0xd1a9, data type is 0x0004, propxcnt is 5. +2.044719 ptp(2): event 164: suppval[0] of d1a9 is 0x0. +2.045435 ptp(2): event 164: suppval[1] of d1a9 is 0x2. +2.045581 ptp(2): event 164: suppval[2] of d1a9 is 0x4. +2.045784 ptp(2): event 164: suppval[3] of d1a9 is 0x8. +2.046661 ptp(2): event 164: suppval[4] of d1a9 is 0xff. +2.046805 ptp(2): event 165: EOS prop d146 desc record, datasize 0, propxtype 7 +2.046936 ptp(2): event 165: propxtype is 7 for d146, unhandled. +2.047059 ptp(2): event 166: EOS prop d1ac desc record, datasize 0, propxtype 1 +2.047431 ptp(2): event 166: propxtype is 1 for d1ac, unhandled. +2.048204 ptp(2): event 167: EOS prop d1ad desc record, datasize 0, propxtype 1 +2.048362 ptp(2): event 167: propdesc d1ad, default value not found. +2.049202 ptp(2): event 168: EOS prop d1ae desc record, datasize 0, propxtype 1 +2.049358 ptp(2): event 168: propdesc d1ae, default value not found. +2.049486 ptp(2): event 169: EOS prop d1aa desc record, datasize 0, propxtype 1 +2.049847 ptp(2): event 169: propxtype is 1 for d1aa, unhandled. +2.050547 ptp(2): event 170: EOS prop d11e desc record, datasize 0, propxtype 1 +2.050706 ptp(2): event 170: propxtype is 1 for d11e, unhandled. +2.050831 ptp(2): event 171: EOS prop d11f desc record, datasize 0, propxtype 1 +2.051698 ptp(2): event 171: propxtype is 1 for d11f, unhandled. +2.051851 ptp(2): event 172: EOS prop d1af desc record, datasize 0, propxtype 1 +2.051982 ptp(2): event 172: propdesc d1af, default value not found. +2.052108 ptp(2): event 173: EOS prop d1d0 desc record, datasize 0, propxtype 7 +2.052232 ptp(2): event 173: propdesc d1d0, default value not found. +2.053441 ptp(2): event 174: EOS prop d1d1 desc record, datasize 0, propxtype 7 +2.053599 ptp(2): event 174: propdesc d1d1, default value not found. +2.053723 ptp(2): event 175: EOS prop d1d9 desc record, datasize 40, propxtype 3 +2.053846 ptp(2): event 175: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +2.053968 ptp(2): event 175: suppval[0] of d1d9 is 0x0. +2.054084 ptp(2): event 175: suppval[1] of d1d9 is 0x3. +2.055001 ptp(2): event 175: suppval[2] of d1d9 is 0x5. +2.055176 ptp(2): event 175: suppval[3] of d1d9 is 0x8. +2.055550 ptp(2): event 175: suppval[4] of d1d9 is 0xb. +2.056529 ptp(2): event 175: suppval[5] of d1d9 is 0xd. +2.056703 ptp(2): event 175: suppval[6] of d1d9 is 0x10. +2.056823 ptp(2): event 175: suppval[7] of d1d9 is 0x13. +2.056940 ptp(2): event 175: suppval[8] of d1d9 is 0x15. +2.057290 ptp(2): event 175: suppval[9] of d1d9 is 0x18. +2.058019 ptp(2): event 176: EOS prop d1d5 desc record, datasize 0, propxtype 3 +2.058167 ptp(2): event 177: EOS prop d1ba desc record, datasize 12, propxtype 3 +2.058302 ptp(2): event 177: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 3. +2.059213 ptp(2): event 177: suppval[0] of d1ba is 0x1. +2.059358 ptp(2): event 177: suppval[1] of d1ba is 0x2. +2.059476 ptp(2): event 177: suppval[2] of d1ba is 0x0. +2.059597 ptp(2): event 178: EOS prop d1cc desc record, datasize 0, propxtype 3 +2.059726 ptp(2): event 179: EOS prop d1bc desc record, datasize 12, propxtype 3 +2.060060 ptp(2): event 179: propxtype is 3, prop is 0xd1bc, data type is 0x0006, propxcnt is 3. +2.060793 ptp(2): event 179: suppval[0] of d1bc is 0x1. +2.060931 ptp(2): event 179: suppval[1] of d1bc is 0x0. +2.061051 ptp(2): event 179: suppval[2] of d1bc is 0x3. +2.061857 ptp(2): event 180: EOS prop d1b8 desc record, datasize 0, propxtype 3 +2.062010 ptp(2): event 181: EOS prop d1d3 desc record, datasize 0, propxtype 7 +2.062139 ptp(2): event 181: propxtype is 7 for d1d3, unhandled. +2.062496 ptp(2): event 182: EOS prop d1d8 desc record, datasize 0, propxtype 1 +2.063205 ptp(2): event 182: propxtype is 1 for d1d8, unhandled. +2.063355 ptp(2): event 183: EOS prop d17f desc record, datasize 0, propxtype 1 +2.063484 ptp(2): event 183: propdesc d17f, default value not found. +2.064360 ptp(2): event 184: EOS prop d1b7 desc record, datasize 0, propxtype 1 +2.064514 ptp(2): event 184: propxtype is 1 for d1b7, unhandled. +2.064638 ptp(2): event 185: EOS prop d1cb desc record, datasize 0, propxtype 7 +2.064995 ptp(2): event 185: propxtype is 7 for d1cb, unhandled. +2.065145 ptp(2): event 186: EOS prop d1db desc record, datasize 0, propxtype 7 +2.065271 ptp(2): event 186: propxtype is 7 for d1db, unhandled. +2.065393 ptp(2): event 187: EOS prop d1dc desc record, datasize 8, propxtype 3 +2.065881 ptp(2): event 187: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 2. +2.066023 ptp(2): event 187: suppval[0] of d1dc is 0x0. +2.066965 ptp(2): event 187: suppval[1] of d1dc is 0x1. +2.067113 ptp(2): event 188: EOS prop d1a3 desc record, datasize 0, propxtype 1 +2.067235 ptp(2): event 188: propxtype is 1 for d1a3, unhandled. +2.067638 ptp(2): event 189: EOS prop d1a4 desc record, datasize 0, propxtype 7 +2.068345 ptp(2): event 189: propxtype is 7 for d1a4, unhandled. +2.068494 ptp(2): event 190: EOS prop d1df desc record, datasize 0, propxtype 3 +2.068623 ptp(2): event 191: EOS prop d1bd desc record, datasize 0, propxtype 1 +2.069519 ptp(2): event 191: propxtype is 1 for d1bd, unhandled. +2.069669 ptp(2): event 192: EOS prop d1c1 desc record, datasize 16, propxtype 3 +2.069798 ptp(2): event 192: propxtype is 3, prop is 0xd1c1, data type is 0x0000, propxcnt is 4. +2.070128 ptp(2): event 192: data type 0x0000 of d1c1 unhandled, raw values: +2.070879 ptp(2): 0: 0x 0 +2.071019 ptp(2): 1: 0x 1 +2.071129 ptp(2): 2: 0x 2 +2.071996 ptp(2): 3: 0x 3 +2.072209 ptp(2): event 193: EOS prop d1c0 desc record, datasize 0, propxtype 1 +2.072348 ptp(2): event 193: propxtype is 1 for d1c0, unhandled. +2.073203 ptp(2): event 194: EOS prop d1bf desc record, datasize 0, propxtype 7 +2.073376 ptp(2): event 194: propxtype is 7 for d1bf, unhandled. +2.073504 ptp(2): event 195: EOS prop d1c4 desc record, datasize 0, propxtype 1 +2.074398 ptp(2): event 195: propxtype is 1 for d1c4, unhandled. +2.074544 ptp(2): event 196: EOS prop d1c2 desc record, datasize 0, propxtype 1 +2.074671 ptp(2): event 196: propxtype is 1 for d1c2, unhandled. +2.075533 ptp(2): event 197: EOS prop d1c5 desc record, datasize 0, propxtype 3 +2.075852 ptp(2): event 198: EOS prop d194 desc record, datasize 16, propxtype 3 +2.076798 ptp(2): event 198: propxtype is 3, prop is 0xd194, data type is 0x0000, propxcnt is 4. +2.076955 ptp(2): event 198: data type 0x0000 of d194 unhandled, raw values: +2.077076 ptp(2): 0: 0x 0 +2.077417 ptp(2): 1: 0x 2 +2.077553 ptp(2): 2: 0x 7 +2.078257 ptp(2): 3: 0x 1 +2.078401 ptp(2): event 199: EOS prop d195 desc record, datasize 0, propxtype 3 +2.078540 ptp(2): event 200: EOS prop d196 desc record, datasize 0, propxtype 7 +2.079419 ptp(2): event 200: propxtype is 7 for d196, unhandled. +2.079565 ptp(2): event 201: EOS prop d197 desc record, datasize 0, propxtype 3 +2.079696 ptp(2): event 202: EOS prop d198 desc record, datasize 0, propxtype 1 +2.080088 ptp(2): event 202: propxtype is 1 for d198, unhandled. +2.080271 ptp(2): event 203: EOS prop d1dd desc record, datasize 0, propxtype 1 +2.080405 ptp(2): event 203: propxtype is 1 for d1dd, unhandled. +2.081141 ptp(2): event 204: EOS prop d1c7 desc record, datasize 0, propxtype 7 +2.081293 ptp(2): event 204: propxtype is 7 for d1c7, unhandled. +2.081418 ptp(2): event 205: EOS prop d199 desc record, datasize 0, propxtype 1 +2.081543 ptp(2): event 205: propxtype is 1 for d199, unhandled. +2.082437 ptp(2): event 206: EOS prop d138 desc record, datasize 0, propxtype 1 +2.082600 ptp(2): event 206: propxtype is 1 for d138, unhandled. +2.082724 ptp(2): event 207: EOS prop d139 desc record, datasize 0, propxtype 1 +2.082849 ptp(2): event 207: propxtype is 1 for d139, unhandled. +2.082970 ptp(2): event 208: EOS prop d13a desc record, datasize 8, propxtype 3 +2.083906 ptp(2): event 208: propxtype is 3, prop is 0xd13a, data type is 0x0000, propxcnt is 2. +2.084059 ptp(2): event 208: data type 0x0000 of d13a unhandled, raw values: +2.084182 ptp(2): 0: 0x 0 +2.084295 ptp(2): 1: 0x 1 +2.085164 ptp(2): event 209: EOS prop d13b desc record, datasize 0, propxtype 1 +2.085351 ptp(2): event 209: propxtype is 1 for d13b, unhandled. +2.086298 ptp(2): event 210: EOS prop d13c desc record, datasize 0, propxtype 1 +2.086454 ptp(2): event 210: propxtype is 1 for d13c, unhandled. +2.086783 ptp(2): event 211: EOS prop d13d desc record, datasize 0, propxtype 7 +2.086952 ptp(2): event 211: propxtype is 7 for d13d, unhandled. +2.087082 ptp(2): event 212: EOS prop d14d desc record, datasize 0, propxtype 7 +2.087809 ptp(2): event 212: propxtype is 7 for d14d, unhandled. +2.087954 ptp(2): event 213: EOS prop d19d desc record, datasize 0, propxtype 1 +2.088129 ptp(2): event 213: propdesc d19d, default value not found. +2.088297 ptp(2): event 214: EOS prop d19a desc record, datasize 0, propxtype 1 +2.089215 ptp(2): event 214: propxtype is 1 for d19a, unhandled. +2.089365 ptp(2): event 215: EOS prop d19c desc record, datasize 0, propxtype 1 +2.090207 ptp(2): event 215: propxtype is 1 for d19c, unhandled. + + +2.136706 ptp2/eos_deviceinfoex(2): event: c181 +2.136827 ptp2/eos_deviceinfoex(2): event: c182 +2.137725 ptp2/eos_deviceinfoex(2): event: c183 +2.137861 ptp2/eos_deviceinfoex(2): event: c184 +2.137973 ptp2/eos_deviceinfoex(2): event: c185 +2.138476 ptp2/eos_deviceinfoex(2): event: c186 +2.138604 ptp2/eos_deviceinfoex(2): event: c187 +2.138713 ptp2/eos_deviceinfoex(2): event: c188 +2.138823 ptp2/eos_deviceinfoex(2): event: c189 +2.139510 ptp2/eos_deviceinfoex(2): event: c18a +2.139638 ptp2/eos_deviceinfoex(2): event: c18b +2.139748 ptp2/eos_deviceinfoex(2): event: c18d +2.139855 ptp2/eos_deviceinfoex(2): event: c18e +2.139963 ptp2/eos_deviceinfoex(2): event: c18f +2.140071 ptp2/eos_deviceinfoex(2): event: c190 +2.140995 ptp2/eos_deviceinfoex(2): event: c191 +2.141127 ptp2/eos_deviceinfoex(2): event: c1a0 +2.141236 ptp2/eos_deviceinfoex(2): event: c1a1 +2.142184 ptp2/eos_deviceinfoex(2): deviceprop: d105 +2.142348 ptp2/eos_deviceinfoex(2): deviceprop: d108 +2.142464 ptp2/eos_deviceinfoex(2): deviceprop: d106 +2.142573 ptp2/eos_deviceinfoex(2): deviceprop: d107 +2.142679 ptp2/eos_deviceinfoex(2): deviceprop: d109 +2.143019 ptp2/eos_deviceinfoex(2): deviceprop: d10a +2.143144 ptp2/eos_deviceinfoex(2): deviceprop: d10b +2.143841 ptp2/eos_deviceinfoex(2): deviceprop: d10c +2.143972 ptp2/eos_deviceinfoex(2): deviceprop: d10d +2.144126 ptp2/eos_deviceinfoex(2): deviceprop: d10e +2.144280 ptp2/eos_deviceinfoex(2): deviceprop: d10f +2.145136 ptp2/eos_deviceinfoex(2): deviceprop: d11b +2.145265 ptp2/eos_deviceinfoex(2): deviceprop: d114 +2.145374 ptp2/eos_deviceinfoex(2): deviceprop: d116 +2.145482 ptp2/eos_deviceinfoex(2): deviceprop: d119 +2.145587 ptp2/eos_deviceinfoex(2): deviceprop: d11a +2.146510 ptp2/eos_deviceinfoex(2): deviceprop: d110 +2.146678 ptp2/eos_deviceinfoex(2): deviceprop: d115 +2.146792 ptp2/eos_deviceinfoex(2): deviceprop: d101 +2.147618 ptp2/eos_deviceinfoex(2): deviceprop: d102 +2.147746 ptp2/eos_deviceinfoex(2): deviceprop: d103 +2.147857 ptp2/eos_deviceinfoex(2): deviceprop: d104 +2.147965 ptp2/eos_deviceinfoex(2): deviceprop: d11d +2.148072 ptp2/eos_deviceinfoex(2): deviceprop: d111 +2.148438 ptp2/eos_deviceinfoex(2): deviceprop: d112 +2.148566 ptp2/eos_deviceinfoex(2): deviceprop: d113 +2.148679 ptp2/eos_deviceinfoex(2): deviceprop: d17c +2.149389 ptp2/eos_deviceinfoex(2): deviceprop: d17d +2.149523 ptp2/eos_deviceinfoex(2): deviceprop: d17e +2.149632 ptp2/eos_deviceinfoex(2): deviceprop: d120 +2.149742 ptp2/eos_deviceinfoex(2): deviceprop: d121 +2.150593 ptp2/eos_deviceinfoex(2): deviceprop: d122 +2.150728 ptp2/eos_deviceinfoex(2): deviceprop: d156 +2.150841 ptp2/eos_deviceinfoex(2): deviceprop: d150 +2.150951 ptp2/eos_deviceinfoex(2): deviceprop: d151 +2.151254 ptp2/eos_deviceinfoex(2): deviceprop: d152 +2.151950 ptp2/eos_deviceinfoex(2): deviceprop: d153 +2.152124 ptp2/eos_deviceinfoex(2): deviceprop: d154 +2.152278 ptp2/eos_deviceinfoex(2): deviceprop: d155 +2.153113 ptp2/eos_deviceinfoex(2): deviceprop: d160 +2.153245 ptp2/eos_deviceinfoex(2): deviceprop: d161 +2.153356 ptp2/eos_deviceinfoex(2): deviceprop: d162 +2.153464 ptp2/eos_deviceinfoex(2): deviceprop: d170 +2.153774 ptp2/eos_deviceinfoex(2): deviceprop: d171 +2.154474 ptp2/eos_deviceinfoex(2): deviceprop: d172 +2.154609 ptp2/eos_deviceinfoex(2): deviceprop: d11c +2.155420 ptp2/eos_deviceinfoex(2): deviceprop: d1a0 +2.155551 ptp2/eos_deviceinfoex(2): deviceprop: d1a1 +2.155735 ptp2/eos_deviceinfoex(2): deviceprop: d1a2 +2.156601 ptp2/eos_deviceinfoex(2): deviceprop: d1a5 +2.156756 ptp2/eos_deviceinfoex(2): deviceprop: d1a8 +2.156869 ptp2/eos_deviceinfoex(2): deviceprop: d1a7 +2.156978 ptp2/eos_deviceinfoex(2): deviceprop: d1ab +2.157294 ptp2/eos_deviceinfoex(2): deviceprop: d1b0 +2.158011 ptp2/eos_deviceinfoex(2): deviceprop: d1b1 +2.158149 ptp2/eos_deviceinfoex(2): deviceprop: d1b2 +2.158948 ptp2/eos_deviceinfoex(2): deviceprop: d1b3 +2.159082 ptp2/eos_deviceinfoex(2): deviceprop: d1b4 +2.159194 ptp2/eos_deviceinfoex(2): deviceprop: d1b5 +2.159304 ptp2/eos_deviceinfoex(2): deviceprop: d1b6 +2.159633 ptp2/eos_deviceinfoex(2): deviceprop: d1a9 +2.159759 ptp2/eos_deviceinfoex(2): deviceprop: d146 +2.159874 ptp2/eos_deviceinfoex(2): deviceprop: d1ac +2.160614 ptp2/eos_deviceinfoex(2): deviceprop: d1ad +2.160745 ptp2/eos_deviceinfoex(2): deviceprop: d1ae +2.160856 ptp2/eos_deviceinfoex(2): deviceprop: d1aa +2.160963 ptp2/eos_deviceinfoex(2): deviceprop: d11e +2.161069 ptp2/eos_deviceinfoex(2): deviceprop: d11f +2.161884 ptp2/eos_deviceinfoex(2): deviceprop: d1af +2.162049 ptp2/eos_deviceinfoex(2): deviceprop: d1d0 +2.162161 ptp2/eos_deviceinfoex(2): deviceprop: d1d1 +2.162269 ptp2/eos_deviceinfoex(2): deviceprop: d1d9 +2.162374 ptp2/eos_deviceinfoex(2): deviceprop: d1d5 +2.162481 ptp2/eos_deviceinfoex(2): deviceprop: d1ba +2.163344 ptp2/eos_deviceinfoex(2): deviceprop: d1cc +2.163478 ptp2/eos_deviceinfoex(2): deviceprop: d1bc +2.163589 ptp2/eos_deviceinfoex(2): deviceprop: d1b8 +2.163698 ptp2/eos_deviceinfoex(2): deviceprop: d1d3 +2.163807 ptp2/eos_deviceinfoex(2): deviceprop: d1d8 +2.164646 ptp2/eos_deviceinfoex(2): deviceprop: d17f +2.164777 ptp2/eos_deviceinfoex(2): deviceprop: d1b7 +2.164887 ptp2/eos_deviceinfoex(2): deviceprop: d1cb +2.164996 ptp2/eos_deviceinfoex(2): deviceprop: d1db +2.165106 ptp2/eos_deviceinfoex(2): deviceprop: d1dc +2.166072 ptp2/eos_deviceinfoex(2): deviceprop: d1a3 +2.166213 ptp2/eos_deviceinfoex(2): deviceprop: d1a4 +2.166327 ptp2/eos_deviceinfoex(2): deviceprop: d1df +2.166438 ptp2/eos_deviceinfoex(2): deviceprop: d1bd +2.166546 ptp2/eos_deviceinfoex(2): deviceprop: d1c1 +2.166654 ptp2/eos_deviceinfoex(2): deviceprop: d1c0 +2.167564 ptp2/eos_deviceinfoex(2): deviceprop: d1bf +2.168389 ptp2/eos_deviceinfoex(2): deviceprop: d1c4 +2.168530 ptp2/eos_deviceinfoex(2): deviceprop: d1c2 +2.169382 ptp2/eos_deviceinfoex(2): deviceprop: d1c5 +2.169511 ptp2/eos_deviceinfoex(2): deviceprop: d194 +2.169624 ptp2/eos_deviceinfoex(2): deviceprop: d195 +2.169935 ptp2/eos_deviceinfoex(2): deviceprop: d196 +2.170653 ptp2/eos_deviceinfoex(2): deviceprop: d197 +2.171439 ptp2/eos_deviceinfoex(2): deviceprop: d198 +2.171572 ptp2/eos_deviceinfoex(2): deviceprop: d1dd +2.171942 ptp2/eos_deviceinfoex(2): deviceprop: d1c7 +2.172068 ptp2/eos_deviceinfoex(2): deviceprop: d199 +2.172176 ptp2/eos_deviceinfoex(2): deviceprop: d138 +2.172285 ptp2/eos_deviceinfoex(2): deviceprop: d139 +2.172390 ptp2/eos_deviceinfoex(2): deviceprop: d13a +2.173072 ptp2/eos_deviceinfoex(2): deviceprop: d13b +2.173207 ptp2/eos_deviceinfoex(2): deviceprop: d13c +2.173318 ptp2/eos_deviceinfoex(2): deviceprop: d13d +2.173429 ptp2/eos_deviceinfoex(2): deviceprop: d14d +2.174284 ptp2/eos_deviceinfoex(2): deviceprop: d19d +2.174416 ptp2/eos_deviceinfoex(2): deviceprop: d19a +2.174528 ptp2/eos_deviceinfoex(2): deviceprop: d19c +2.174636 ptp2/eos_deviceinfoex(2): unk: 0000 +2.175012 ptp2/eos_deviceinfoex(2): unk: 0001 +2.175138 ptp2/eos_deviceinfoex(2): unk: 0002 +2.175249 ptp2/eos_deviceinfoex(2): unk: 0004 +2.175356 ptp2/eos_deviceinfoex(2): unk: 0008 + +2.180226 gphoto2-port(3): Hexdump of 210 = 0xd2 bytes follows: +0000 d2 00 00 00 02 00 16 91-12 00 00 00 0d 00 00 00 ................ +0010 89 c1 00 00 15 d1 00 00-00 4c 00 00 00 89 c1 00 .........L...... +0020 00 d0 d1 00 00 00 69 63-68 61 65 6c 20 47 6f 6e ......ichael Gon +0030 7a 61 6c 65 73 00 00 00-00 00 00 00 00 00 00 00 zales........... +0040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0060 00 00 00 00 00 4c 00 00-00 89 c1 00 00 d1 d1 00 .....L.......... +0070 00 00 41 75 64 69 62 6c-65 20 32 30 31 33 00 4d ..Audible 2013.M +0080 20 43 61 72 67 61 64 6f-2e 0a 41 6c 6c 20 72 69 Cargado..All ri +0090 67 68 74 73 20 72 65 73-65 72 76 65 64 2e 00 00 ghts reserved... +00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00b0 00 19 00 00 00 89 c1 00-00 af d1 00 00 30 32 32 .............022 +00c0 30 33 31 30 30 33 34 39-34 00 08 00 00 00 00 00 031003494....... +00d0 00 00 - .. + +2.197341 ptp(2): event 0: EOS prop d115 info record, datasize is 1 +2.197765 ptp(2): event 0: currentvalue of d115 is +2.197945 ptp(2): event 1: EOS prop d1d0 info record, datasize is 64 +2.198669 ptp(2): event 1: currentvalue of d1d0 is +2.198814 ptp(2): event 2: EOS prop d1d1 info record, datasize is 64 +2.199689 ptp(2): event 2: currentvalue of d1d1 is +2.199836 ptp(2): event 3: EOS prop d1af info record, datasize is 13 +2.199975 ptp(2): event 3: currentvalue of d1af is 022031003494 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5dmark4.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5dmark4.txt new file mode 100644 index 00000000..95a3dc28 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5dmark4.txt @@ -0,0 +1,23 @@ + Camera summary: + +Manufacturer: Canon.Inc +Model: Canon EOS 5D Mark IV +Version: 3-1.0.1 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: +File Download, File Deletion, File Upload +No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button +Canon Wifi support + +Storage Devices Summary: + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 5D Mark IV' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 78% (78) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5drs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5drs.txt new file mode 100644 index 00000000..6516177c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos5drs.txt @@ -0,0 +1,3518 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 5DS R + device version: 3-1.0.1 R + serial number: 'xxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x91d5 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x1006 (Get number of objects) + 0x1004 (Get storage IDs) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x1005 (Get storage info) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x1009 (Get object) + 0x9104 (PTP_OC_CANON_EOS_GetObject) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x100f (Format storage) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x910b (PTP_OC_CANON_EOS_SendPartialObject) + 0x9108 (PTP_OC_CANON_EOS_GetDeviceInfoEx) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x910e (PTP_OC_CANON_EOS_SetObjectTime) + 0x910f (PTP_OC_CANON_EOS_RemoteRelease) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9120 (PTP_OC_CANON_EOS_TransferCompleteDT) + 0x91f0 (PTP_OC_CANON_EOS_TransferComplete2) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x9121 (PTP_OC_CANON_EOS_CancelTransferDT) + 0x91f1 (PTP_OC_CANON_EOS_CancelTransfer2) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x911e (PTP_OC_CANON_EOS_SetNullPacketMode) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9142 (PTP_OC_CANON_EOS_RequestInnerDevelopParamChange) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x9144 (PTP_OC_CANON_EOS_GpsLoggingDataMode) + 0x9145 (PTP_OC_CANON_EOS_GetGpsLogCurrentHandle) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x9157 (PTP_OC_CANON_EOS_ClickWB) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x915a (PTP_OC_CANON_EOS_SetLiveAfFrame) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x915c (PTP_OC_CANON_EOS_SetLvPcFlavoreditMode) + 0x915d (PTP_OC_CANON_EOS_SetLvPcFlavoreditParam) + 0x911f (PTP_OC_CANON_EOS_UpdateFirmware) + 0x91fe (PTP_OC_CANON_EOS_FAPIMessageTX) + 0x91ff (PTP_OC_CANON_EOS_FAPIMessageRX) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x912d (Unknown PTP_OC) + 0x912e (Unknown PTP_OC) + 0x912f (Unknown PTP_OC) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9130 (PTP_OC_CANON_EOS_ResetMirrorLockupState) + 0x9131 (PTP_OC_CANON_EOS_PopupBuiltinFlash) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9133 (PTP_OC_CANON_EOS_MovieSelectSWOn) + 0x9134 (PTP_OC_CANON_EOS_MovieSelectSWOff) + 0x912b (PTP_OC_CANON_EOS_ChangePhotoStudioMode) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9138 (PTP_OC_CANON_EOS_GetMusicInfo) + 0x9139 (PTP_OC_CANON_EOS_CreateHandle) + 0x913a (PTP_OC_CANON_EOS_SendPartialObjectEx) + 0x913b (PTP_OC_CANON_EOS_EndSendPartialObjectEx) + 0x913c (PTP_OC_CANON_EOS_SetCTGInfo) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x91da (Unknown PTP_OC) + 0x91db (Unknown PTP_OC) + 0x91dc (Unknown PTP_OC) + 0x91dd (Unknown PTP_OC) + 0x91de (Unknown PTP_OC) + 0x91d8 (Unknown PTP_OC) + 0x91d9 (Unknown PTP_OC) + 0x91d7 (Unknown PTP_OC) + 0x913e (PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel) + 0x9113 (PTP_OC_CANON_EOS_GetRemoteMode) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9180 (Unknown PTP_OC) + 0x9181 (Unknown PTP_OC) + 0x9182 (PTP_OC_CANON_EOS_NotifyEstimateNumberofImport) + 0x9183 (PTP_OC_CANON_EOS_NotifyNumberofImported) + 0x9184 (PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer) + 0x9185 (PTP_OC_CANON_EOS_NotifyFinish) + 0x91c0 (Unknown PTP_OC) + 0x91c1 (Unknown PTP_OC) + 0x91c2 (Unknown PTP_OC) + 0x91c3 (Unknown PTP_OC) + 0x91c4 (Unknown PTP_OC) + 0x91c5 (Unknown PTP_OC) + 0x91c6 (Unknown PTP_OC) + 0x91c7 (Unknown PTP_OC) + 0x91c8 (Unknown PTP_OC) + 0x91c9 (Unknown PTP_OC) + 0x91ca (Unknown PTP_OC) + 0x91cb (Unknown PTP_OC) + 0x91cc (Unknown PTP_OC) + 0x91ce (Unknown PTP_OC) + 0x91cf (Unknown PTP_OC) + 0x91d0 (Unknown PTP_OC) + 0x91d1 (Unknown PTP_OC) + 0x91d2 (Unknown PTP_OC) + 0x91e1 (Unknown PTP_OC) + 0x91e2 (Unknown PTP_OC) + 0x91e3 (Unknown PTP_OC) + 0x91e4 (Unknown PTP_OC) + 0x91e5 (Unknown PTP_OC) + 0x91e6 (Unknown PTP_OC) + 0x91e7 (Unknown PTP_OC) + 0x91e8 (PTP_OC_CANON_EOS_NotifyNetworkError) + 0x91e9 (PTP_OC_CANON_EOS_AdapterTransferProgress) + 0x91ea (Unknown PTP_OC) + 0x91eb (Unknown PTP_OC) + 0x91ec (Unknown PTP_OC) + 0x91ed (Unknown PTP_OC) + 0x91ee (Unknown PTP_OC) + 0x91ef (Unknown PTP_OC) + 0x91f8 (Unknown PTP_OC) + 0x91f9 (Unknown PTP_OC) + 0x91f2 (Unknown PTP_OC) + 0x91f3 (Unknown PTP_OC) + 0x91f4 (Unknown PTP_OC) + 0x91f7 (Unknown PTP_OC) + 0x91fb (Unknown PTP_OC) + 0x91fc (Unknown PTP_OC) + 0x91fd (Unknown PTP_OC) + 0x9122 (PTP_OC_CANON_EOS_SetWftProfile) + 0x9123 (PTP_OC_CANON_EOS_GetWftProfile) + 0x9124 (PTP_OC_CANON_EOS_SetProfileToWft) + 0x91f5 (Unknown PTP_OC) + 0x91f6 (Unknown PTP_OC) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9068 (PTP_OC_CANON_GetWebServiceSpec) + 0x9069 (PTP_OC_CANON_GetWebServiceData) + 0x906a (Unknown PTP_OC) + 0x906b (PTP_OC_CANON_SetWebServiceData) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x902f (Unknown PTP_OC) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) + 0x9052 (Unknown PTP_OC) + 0x9053 (Unknown PTP_OC) + 0x9057 (Unknown PTP_OC) + 0x9058 (Unknown PTP_OC) + 0x9059 (Unknown PTP_OC) + 0x905a (Unknown PTP_OC) + 0x905b (Unknown PTP_OC) + 0x905f (Unknown PTP_OC) +Events Supported: + 0x4009 (RequestObjectTransfer) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4003 (ObjectRemoved) + 0x4002 (ObjectAdded) + 0x4007 (ObjectInfoChanged) + 0xc101 (Unknown Event) + 0xc1af (Unknown Event) + 0xc19a (Unknown Event) + 0xc19b (Unknown Event) +Device Properties Supported: + 0xd049 (Model ID) + 0xd402 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd303 (Unknown DPC code) + 0x5001 (Battery Level) + + +0000 62 31 00 00 02 00 16 91-0c 00 00 00 10 00 00 00 b1.............. +0010 89 c1 00 00 05 d1 00 00-02 00 00 00 10 00 00 00 ................ +0020 89 c1 00 00 08 d1 00 00-00 00 00 00 10 00 00 00 ................ +0030 89 c1 00 00 06 d1 00 00-00 00 00 00 10 00 00 00 ................ +0040 89 c1 00 00 07 d1 00 00-03 00 00 00 10 00 00 00 ................ +0050 89 c1 00 00 09 d1 00 00-00 00 00 00 10 00 00 00 ................ +0060 89 c1 00 00 0a d1 00 00-50 14 00 00 10 00 00 00 ........P....... +0070 89 c1 00 00 0b d1 00 00-00 00 00 00 10 00 00 00 ................ +0080 89 c1 00 00 0c d1 00 00-00 00 00 00 10 00 00 00 ................ +0090 89 c1 00 00 0d d1 00 00-00 00 00 00 10 00 00 00 ................ +00a0 89 c1 00 00 0e d1 00 00-00 00 00 00 10 00 00 00 ................ +00b0 89 c1 00 00 0f d1 00 00-01 00 00 00 10 00 00 00 ................ +00c0 89 c1 00 00 1b d1 00 00-44 07 00 00 10 00 00 00 ........D....... +00d0 89 c1 00 00 14 d1 00 00-3c 00 00 00 10 00 00 00 ........<....... +00e0 89 c1 00 00 16 d1 00 00-01 04 00 80 10 00 00 00 ................ +00f0 89 c1 00 00 19 d1 00 00-00 01 00 00 10 00 00 00 ................ +0100 89 c1 00 00 10 d1 00 00-81 00 00 00 10 00 00 00 ................ +0110 89 c1 00 00 01 d1 00 00-20 00 00 00 10 00 00 00 ........ ....... +0120 89 c1 00 00 02 d1 00 00-6d 00 00 00 10 00 00 00 ........m....... +0130 89 c1 00 00 03 d1 00 00-48 00 00 00 10 00 00 00 ........H....... +0140 89 c1 00 00 04 d1 00 00-00 00 00 00 10 00 00 00 ................ +0150 89 c1 00 00 1d d1 00 00-00 00 00 00 10 00 00 00 ................ +0160 89 c1 00 00 11 d1 00 00-01 00 00 00 10 00 00 00 ................ +0170 89 c1 00 00 12 d1 00 00-00 00 00 00 10 00 00 00 ................ +0180 89 c1 00 00 13 d1 00 00-f7 83 5f 5b 10 00 00 00 .........._[.... +0190 89 c1 00 00 7c d1 00 00-67 e6 5f 5b 18 00 00 00 ....|...g._[.... +01a0 89 c1 00 00 7d d1 00 00-0c 00 00 00 1d 00 00 00 ....}........... +01b0 5c fe ff ff 10 00 00 00-89 c1 00 00 7e d1 00 00 \...........~... +01c0 00 00 00 00 20 00 00 00-89 c1 00 00 20 d1 00 00 .... ....... ... +01d0 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +01e0 03 00 00 00 20 00 00 00-89 c1 00 00 21 d1 00 00 .... .......!... +01f0 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +0200 03 00 00 00 20 00 00 00-89 c1 00 00 22 d1 00 00 .... ......."... +0210 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +0220 03 00 00 00 34 00 00 00-89 c1 00 00 5d d1 00 00 ....4.......]... +0230 28 00 00 00 01 00 00 00-00 00 00 00 03 00 00 00 (............... +0240 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0250 04 00 00 00 04 00 00 00-34 00 00 00 89 c1 00 00 ........4....... +0260 57 d1 00 00 28 00 00 00-01 00 00 00 00 00 00 00 W...(........... +0270 03 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0280 00 00 00 00 04 00 00 00-04 00 00 00 34 00 00 00 ............4... +0290 89 c1 00 00 58 d1 00 00-28 00 00 00 01 00 00 00 ....X...(....... +02a0 00 00 00 00 02 00 00 00-00 00 00 00 00 00 00 00 ................ +02b0 00 00 00 00 00 00 00 00-04 00 00 00 04 00 00 00 ................ +02c0 34 00 00 00 89 c1 00 00-59 d1 00 00 28 00 00 00 4.......Y...(... +02d0 01 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +02e0 00 00 00 00 00 00 00 00-00 00 00 00 04 00 00 00 ................ +02f0 04 00 00 00 34 00 00 00-89 c1 00 00 5a d1 00 00 ....4.......Z... +0300 28 00 00 00 01 00 00 00-00 00 00 00 00 00 00 00 (............... +0310 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0320 02 00 00 00 02 00 00 00-34 00 00 00 89 c1 00 00 ........4....... +0330 5b d1 00 00 28 00 00 00-01 00 00 00 00 00 00 00 [...(........... +0340 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0350 00 00 00 00 02 00 00 00-02 00 00 00 34 00 00 00 ............4... +0360 89 c1 00 00 5c d1 00 00-28 00 00 00 01 00 00 00 ....\...(....... +0370 00 00 00 00 03 00 00 00-00 00 00 00 00 00 00 00 ................ +0380 00 00 00 00 00 00 00 00-04 00 00 00 04 00 00 00 ................ +0390 34 00 00 00 89 c1 00 00-5e d1 00 00 28 00 00 00 4.......^...(... +03a0 01 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +03b0 00 00 00 00 00 00 00 00-00 00 00 00 01 00 00 00 ................ +03c0 01 00 00 00 38 00 00 00-89 c1 00 00 63 d1 00 00 ....8.......c... +03d0 2c 00 00 00 01 00 00 00-81 00 00 00 00 00 00 00 ,............... +03e0 03 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +03f0 00 00 00 00 04 00 00 00-04 00 00 00 38 00 00 00 ............8... + +0000 89 c1 00 00 64 d1 00 00-2c 00 00 00 01 00 00 00 ....d...,....... +0010 81 00 00 00 00 00 00 00-03 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 04 00 00 00 ................ +0030 04 00 00 00 38 00 00 00-89 c1 00 00 65 d1 00 00 ....8.......e... +0040 2c 00 00 00 01 00 00 00-81 00 00 00 00 00 00 00 ,............... +0050 03 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0060 00 00 00 00 04 00 00 00-04 00 00 00 10 00 00 00 ................ +0070 89 c1 00 00 1c d1 00 00-01 00 00 00 a0 00 00 00 ................ +0080 89 c1 00 00 a0 d1 00 00-94 00 00 00 01 00 00 00 ................ +0090 01 00 00 00 88 00 00 00-09 00 00 00 01 01 00 00 ................ +00a0 01 00 00 00 00 00 00 00-02 01 00 00 01 00 00 00 ................ +00b0 00 00 00 00 04 01 00 00-01 00 00 00 00 00 00 00 ................ +00c0 05 01 00 00 01 00 00 00-00 00 00 00 06 01 00 00 ................ +00d0 02 00 00 00 03 00 00 00-00 00 00 00 08 01 00 00 ................ +00e0 01 00 00 00 00 00 00 00-12 01 00 00 01 00 00 00 ................ +00f0 00 00 00 00 0c 01 00 00-03 00 00 00 00 00 00 00 ................ +0100 a0 00 00 00 10 00 00 00-0d 01 00 00 03 00 00 00 ................ +0110 00 00 00 00 70 00 00 00-08 00 00 00 2c 00 00 00 ....p.......,... +0120 89 c1 00 00 a0 d1 00 00-20 00 00 00 01 00 00 00 ........ ....... +0130 02 00 00 00 14 00 00 00-01 00 00 00 0a 04 00 00 ................ +0140 01 00 00 00 47 00 00 00-68 01 00 00 89 c1 00 00 ....G...h....... +0150 a0 d1 00 00 5c 01 00 00-01 00 00 00 04 00 00 00 ....\........... +0160 50 01 00 00 06 00 00 00-0c 07 00 00 40 00 00 00 P...........@... +0170 00 00 00 00 01 00 00 00-00 00 00 00 00 00 00 00 ................ +0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01e0 00 00 00 00 00 00 00 00-fe 00 00 00 ff 00 00 00 ................ +01f0 00 00 00 00 03 00 00 00-70 00 00 00 30 00 00 00 ........p...0... +0200 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0210 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0220 00 00 00 00 00 00 00 00-00 00 00 00 14 00 00 00 ................ +0230 50 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 P............... +0240 00 00 00 00 07 00 00 00-03 00 00 00 00 00 00 00 ................ +0250 ff 00 00 00 ff 00 00 00-ff 00 00 00 00 00 00 00 ................ +0260 ff 00 00 00 ff 00 00 00-ff 00 00 00 0f 00 00 00 ................ +0270 06 07 00 00 01 00 00 00-00 00 00 00 0f 07 00 00 ................ +0280 02 00 00 00 00 00 00 00-02 00 00 00 0e 08 00 00 ................ +0290 01 00 00 00 00 00 00 00-13 08 00 00 01 00 00 00 ................ +02a0 00 00 00 00 14 08 00 00-01 00 00 00 00 00 00 00 ................ +02b0 14 00 00 00 89 c1 00 00-a1 d1 00 00 08 00 00 00 ................ +02c0 00 00 00 00 10 00 00 00-89 c1 00 00 a8 d1 00 00 ................ +02d0 01 00 00 00 34 00 00 00-89 c1 00 00 a7 d1 00 00 ....4........... +02e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0300 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0310 ab d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0320 b0 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0330 b1 d1 00 00 01 00 00 00-10 00 00 00 89 c1 00 00 ................ +0340 b2 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0350 b3 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0360 b4 d1 00 00 00 00 00 00-3c 00 00 00 89 c1 00 00 ........<....... +0370 b5 d1 00 00 30 00 00 00-00 00 00 00 00 00 00 00 ....0........... +0380 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0390 00 00 00 00 00 00 00 00-00 00 00 00 00 04 00 04 ................ +03a0 00 04 00 04 10 00 00 00-89 c1 00 00 b6 d1 00 00 ................ +03b0 50 14 00 00 10 00 00 00-89 c1 00 00 a9 d1 00 00 P............... +03c0 02 00 00 00 3c 00 00 00-89 c1 00 00 46 d1 00 00 ....<.......F... +03d0 30 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 0............... +03e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +03f0 00 00 00 00 00 00 00 00-de 01 00 04 00 04 55 02 ..............U. +0400 10 00 00 00 89 c1 00 00-aa d1 00 00 00 00 00 00 ................ +0410 10 00 00 00 89 c1 00 00-1e d1 00 00 01 00 01 00 ................ +0420 10 00 00 00 89 c1 00 00-1f d1 00 00 00 00 00 50 ...............P +0430 10 00 00 00 89 c1 00 00-d9 d1 00 00 00 00 00 00 ................ +0440 10 00 00 00 89 c1 00 00-d5 d1 00 00 00 00 00 00 ................ +0450 10 00 00 00 89 c1 00 00-ba d1 00 00 01 00 00 00 ................ +0460 30 00 00 00 89 c1 00 00-cd d1 00 00 24 00 00 00 0...........$... +0470 00 00 00 00 00 00 00 00-b5 0b 00 00 0f 00 00 00 ................ +0480 00 00 00 00 03 00 00 00-00 00 00 00 00 00 00 00 ................ +0490 10 00 00 00 89 c1 00 00-bc d1 00 00 01 00 00 00 ................ +04a0 10 00 00 00 89 c1 00 00-b8 d1 00 00 00 00 00 00 ................ +04b0 22 02 00 00 89 c1 00 00-d3 d1 00 00 16 02 00 00 "............... +04c0 12 02 02 00 3d 00 3d 00-f0 21 a0 16 f0 21 a0 16 ....=.=..!...!.. +04d0 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +04e0 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +04f0 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +0500 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +0510 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +0520 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +0530 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +0540 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +0550 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +0560 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +0570 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +0580 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +0590 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +05a0 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +05b0 1b 01 1b 01 1b 01 1b 01-1b 01 1b 01 1b 01 1b 01 ................ +05c0 1b 01 1b 01 4d fe 3a fc-6f fa bc f8 09 f7 b3 01 ....M.:.o....... +05d0 00 00 4d fe bc f8 09 f7-f7 08 44 07 91 05 c6 03 ..M.......D..... +05e0 b3 01 00 00 44 07 91 05-c6 03 b3 01 00 00 4d fe ....D.........M. +05f0 3a fc 6f fa b3 01 00 00-4d fe 3a fc 6f fa bc f8 :.o.....M.:.o... +0600 09 f7 f7 08 3a fc 6f fa-bc f8 09 f7 f7 08 44 07 ....:.o.......D. +0610 91 05 c6 03 09 f7 f7 08-44 07 91 05 c6 03 b3 01 ........D....... +0620 00 00 4d fe 91 05 c6 03-b3 01 00 00 4d fe 3a fc ..M.........M.:. +0630 6f fa bc f8 b3 01 00 00-4d fe f7 08 44 07 8c 02 o.......M...D... +0640 8c 02 8c 02 8c 02 8c 02-d2 03 d2 03 d2 03 46 01 ..............F. +0650 46 01 8c 02 8c 02 8c 02-8c 02 8c 02 8c 02 46 01 F.............F. +0660 46 01 46 01 46 01 46 01-46 01 46 01 46 01 00 00 F.F.F.F.F.F.F... +0670 00 00 00 00 00 00 00 00-00 00 00 00 46 01 ba fe ............F... +0680 ba fe ba fe ba fe 00 00-00 00 00 00 00 00 74 fd ..............t. +0690 ba fe ba fe ba fe ba fe-ba fe ba fe ba fe 74 fd ..............t. +06a0 74 fd 74 fd 74 fd 74 fd-74 fd 74 fd 74 fd 2e fc t.t.t.t.t.t.t... +06b0 2e fc 2e fc 74 fd 74 fd-00 00 00 00 00 00 00 00 ....t.t......... +06c0 00 00 00 02 00 00 00 00-00 00 00 00 00 00 00 00 ................ +06d0 ff ff 4c 00 00 00 89 c1-00 00 d8 d1 00 00 45 46 ..L...........EF +06e0 31 36 2d 33 35 6d 6d 20-66 2f 32 2e 38 4c 20 49 16-35mm f/2.8L I +06f0 49 49 20 55 53 4d 00 00-00 00 00 00 00 00 00 00 II USM.......... +0700 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0710 00 00 00 00 00 00 00 00-00 00 00 00 00 00 10 00 ................ +0720 00 00 89 c1 00 00 b7 d1-00 00 00 00 00 00 40 00 ..............@. +0730 00 00 89 c1 00 00 cb d1-00 00 34 00 00 00 00 00 ..........4..... +0740 00 00 03 00 00 00 00 00-00 00 00 00 03 80 00 00 ................ +0750 00 00 03 00 00 00 48 00-00 00 49 00 03 80 00 00 ......H...I..... +0760 00 00 03 00 00 00 4b 00-00 00 4c 00 03 80 1a 00 ......K...L..... +0770 00 00 89 c1 00 00 db d1-00 00 00 00 00 00 03 00 ................ +0780 00 00 2f 00 00 00 28 00-10 00 00 00 89 c1 00 00 ../...(......... +0790 dc d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +07a0 a3 d1 00 00 00 00 00 00-f0 01 00 00 89 c1 00 00 ................ +07b0 a4 d1 00 00 e4 01 00 00-30 00 00 00 00 00 00 00 ........0....... +07c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07d0 00 00 00 00 00 00 00 00-31 00 00 00 00 00 00 00 ........1....... +07e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07f0 00 00 00 00 00 00 00 00-32 00 00 00 00 00 00 00 ........2....... +0800 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0810 00 00 00 00 00 00 00 00-33 00 00 00 00 00 00 00 ........3....... +0820 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0830 00 00 00 00 00 00 00 00-34 00 00 00 00 00 00 00 ........4....... +0840 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0850 00 00 00 00 00 00 00 00-35 00 00 00 00 00 00 00 ........5....... +0860 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0870 00 00 00 00 00 00 00 00-36 00 00 00 00 00 00 00 ........6....... +0880 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0890 00 00 00 00 00 00 00 00-37 00 00 00 00 00 00 00 ........7....... +08a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +08b0 00 00 00 00 00 00 00 00-38 00 00 00 00 00 00 00 ........8....... +08c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +08d0 00 00 00 00 00 00 00 00-39 00 00 00 00 00 00 00 ........9....... +08e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +08f0 00 00 00 00 00 00 00 00-31 30 00 00 00 00 00 00 ........10...... +0900 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0910 00 00 00 00 00 00 00 00-31 31 00 00 00 00 00 00 ........11...... +0920 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0930 00 00 00 00 00 00 00 00-31 32 00 00 00 00 00 00 ........12...... +0940 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0950 00 00 00 00 00 00 00 00-31 33 00 00 00 00 00 00 ........13...... +0960 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0970 00 00 00 00 00 00 00 00-31 34 00 00 00 00 00 00 ........14...... +0980 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0990 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +09a0 df d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +09b0 bd d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +09c0 c1 d1 00 00 00 00 01 05-10 00 00 00 89 c1 00 00 ................ +09d0 c0 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +09e0 bf d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +09f0 c4 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a00 c2 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a10 c5 d1 00 00 02 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a20 94 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a30 95 d1 00 00 02 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a40 96 d1 00 00 2f 00 00 00-10 00 00 00 89 c1 00 00 ..../........... +0a50 97 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a60 98 d1 00 00 ff 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a70 dd d1 00 00 ef 02 00 00-10 00 00 00 89 c1 00 00 ................ +0a80 c7 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a90 99 d1 00 00 0b 00 00 00-10 00 00 00 89 c1 00 00 ................ +0aa0 38 d1 00 00 02 00 00 00-18 00 00 00 89 c1 00 00 8............... +0ab0 39 d1 00 00 00 00 00 00-00 00 00 00 00 00 00 00 9............... +0ac0 10 00 00 00 89 c1 00 00-3a d1 00 00 00 00 00 00 ........:....... +0ad0 10 00 00 00 89 c1 00 00-3b d1 00 00 00 00 00 00 ........;....... +0ae0 10 00 00 00 89 c1 00 00-3c d1 00 00 3f 3f 48 10 ........<...??H. +0af0 24 00 00 00 89 c1 00 00-3d d1 00 00 18 00 00 00 $.......=....... +0b00 00 00 00 00 00 00 00 00-01 00 00 00 01 00 00 00 ................ +0b10 00 00 00 00 10 00 00 00-89 c1 00 00 4d d1 00 00 ............M... +0b20 3c 00 00 00 10 00 00 00-89 c1 00 00 9a d1 00 00 <............... +0b30 00 00 00 00 10 00 00 00-89 c1 00 00 9c d1 00 00 ................ +0b40 01 00 00 00 10 00 00 00-89 c1 00 00 78 d1 00 00 ............x... +0b50 00 00 00 00 10 00 00 00-89 c1 00 00 79 d1 00 00 ............y... +0b60 00 00 00 00 0d 00 00 00-89 c1 00 00 7a d1 00 00 ............z... +0b70 01 10 00 00 00 89 c1 00-00 7b d1 00 00 00 00 00 .........{...... +0b80 00 10 00 00 00 89 c1 00-00 c9 d1 00 00 00 00 00 ................ +0b90 00 10 00 00 00 89 c1 00-00 9f d1 00 00 01 00 00 ................ +0ba0 00 10 00 00 00 89 c1 00-00 75 d1 00 00 00 00 00 .........u...... +0bb0 00 10 00 00 00 89 c1 00-00 4c d1 00 00 00 00 00 .........L...... +0bc0 00 10 00 00 00 89 c1 00-00 4b d1 00 00 00 00 00 .........K...... +0bd0 00 20 00 00 00 89 c1 00-00 3e d1 00 00 14 00 00 . .......>...... +0be0 00 00 00 00 00 00 00 00-00 00 00 00 00 01 00 00 ................ +0bf0 00 10 00 00 00 89 c1 00-00 c6 d1 00 00 00 00 00 ................ +0c00 00 14 00 00 00 8a c1 00-00 05 d1 00 00 01 00 00 ................ +0c10 00 00 00 00 00 20 00 00-00 8a c1 00 00 08 d1 00 ..... .......... +0c20 00 03 00 00 00 03 00 00-00 00 00 00 00 02 00 00 ................ +0c30 00 01 00 00 00 30 00 00-00 8a c1 00 00 06 d1 00 .....0.......... +0c40 00 03 00 00 00 07 00 00-00 00 00 00 00 04 00 00 ................ +0c50 00 05 00 00 00 13 00 00-00 14 00 00 00 10 00 00 ................ +0c60 00 11 00 00 00 24 00 00-00 8a c1 00 00 07 d1 00 .....$.......... +0c70 00 03 00 00 00 04 00 00-00 03 00 00 00 04 00 00 ................ +0c80 00 01 00 00 00 05 00 00-00 3c 00 00 00 8a c1 00 .........<...... +0c90 00 09 d1 00 00 03 00 00-00 0a 00 00 00 00 00 00 ................ +0ca0 00 17 00 00 00 01 00 00-00 08 00 00 00 02 00 00 ................ +0cb0 00 03 00 00 00 04 00 00-00 05 00 00 00 06 00 00 ................ +0cc0 00 09 00 00 00 44 01 00-00 8a c1 00 00 0a d1 00 .....D.......... +0cd0 00 03 00 00 00 4c 00 00-00 c4 09 00 00 28 0a 00 .....L.......(.. +0ce0 00 8c 0a 00 00 f0 0a 00-00 54 0b 00 00 b8 0b 00 .........T...... +0cf0 00 1c 0c 00 00 80 0c 00-00 e4 0c 00 00 48 0d 00 .............H.. +0d00 00 ac 0d 00 00 10 0e 00-00 74 0e 00 00 d8 0e 00 .........t...... +0d10 00 3c 0f 00 00 a0 0f 00-00 04 10 00 00 68 10 00 .<...........h.. +0d20 00 cc 10 00 00 30 11 00-00 94 11 00 00 f8 11 00 .....0.......... +0d30 00 5c 12 00 00 c0 12 00-00 24 13 00 00 88 13 00 .\.......$...... +0d40 00 ec 13 00 00 50 14 00-00 b4 14 00 00 18 15 00 .....P.......... +0d50 00 7c 15 00 00 e0 15 00-00 44 16 00 00 a8 16 00 .|.......D...... +0d60 00 0c 17 00 00 70 17 00-00 d4 17 00 00 38 18 00 .....p.......8.. +0d70 00 9c 18 00 00 00 19 00-00 64 19 00 00 c8 19 00 .........d...... +0d80 00 2c 1a 00 00 90 1a 00-00 f4 1a 00 00 58 1b 00 .,...........X.. +0d90 00 bc 1b 00 00 20 1c 00-00 84 1c 00 00 e8 1c 00 ..... .......... +0da0 00 4c 1d 00 00 b0 1d 00-00 14 1e 00 00 78 1e 00 .L...........x.. +0db0 00 dc 1e 00 00 40 1f 00-00 a4 1f 00 00 08 20 00 .....@........ . +0dc0 00 6c 20 00 00 d0 20 00-00 34 21 00 00 98 21 00 .l ... ..4!...!. +0dd0 00 fc 21 00 00 60 22 00-00 c4 22 00 00 28 23 00 ..!..`"..."..(#. +0de0 00 8c 23 00 00 f0 23 00-00 54 24 00 00 b8 24 00 ..#...#..T$...$. +0df0 00 1c 25 00 00 80 25 00-00 e4 25 00 00 48 26 00 ..%...%...%..H&. +0e00 00 ac 26 00 00 10 27 00-00 60 00 00 00 8a c1 00 ..&...'..`...... +0e10 00 0b d1 00 00 03 00 00-00 13 00 00 00 f7 ff ff ................ +0e20 ff f8 ff ff ff f9 ff ff-ff fa ff ff ff fb ff ff ................ +0e30 ff fc ff ff ff fd ff ff-ff fe ff ff ff ff ff ff ................ +0e40 ff 00 00 00 00 01 00 00-00 02 00 00 00 03 00 00 ................ +0e50 00 04 00 00 00 05 00 00-00 06 00 00 00 07 00 00 ................ +0e60 00 08 00 00 00 09 00 00-00 60 00 00 00 8a c1 00 .........`...... +0e70 00 0c d1 00 00 03 00 00-00 13 00 00 00 f7 ff ff ................ +0e80 ff f8 ff ff ff f9 ff ff-ff fa ff ff ff fb ff ff ................ +0e90 ff fc ff ff ff fd ff ff-ff fe ff ff ff ff ff ff ................ +0ea0 ff 00 00 00 00 01 00 00-00 02 00 00 00 03 00 00 ................ +0eb0 00 04 00 00 00 05 00 00-00 06 00 00 00 07 00 00 ................ +0ec0 00 08 00 00 00 09 00 00-00 24 00 00 00 8a c1 00 .........$...... +0ed0 00 0d d1 00 00 03 00 00-00 04 00 00 00 00 00 00 ................ +0ee0 00 01 00 00 00 02 00 00-00 03 00 00 00 24 00 00 .............$.. +0ef0 00 8a c1 00 00 0e d1 00-00 03 00 00 00 04 00 00 ................ +0f00 00 00 00 00 00 01 00 00-00 02 00 00 00 03 00 00 ................ +0f10 00 1c 00 00 00 8a c1 00-00 0f d1 00 00 03 00 00 ................ +0f20 00 02 00 00 00 01 00 00-00 02 00 00 00 14 00 00 ................ +0f30 00 8a c1 00 00 1b d1 00-00 01 00 00 00 00 00 00 ................ +0f40 00 14 00 00 00 8a c1 00-00 14 d1 00 00 01 00 00 ................ +0f50 00 00 00 00 00 14 00 00-00 8a c1 00 00 16 d1 00 ................ +0f60 00 01 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +0f70 00 19 d1 00 00 01 00 00-00 00 00 00 00 14 00 00 ................ +0f80 00 8a c1 00 00 1a d1 00-00 01 00 00 00 00 00 00 ................ +0f90 00 40 00 00 00 8a c1 00-00 10 d1 00 00 03 00 00 .@.............. +0fa0 00 0b 00 00 00 87 00 00-00 81 00 00 00 82 00 00 ................ +0fb0 00 83 00 00 00 88 00 00-00 84 00 00 00 85 00 00 ................ +0fc0 00 86 00 00 00 21 00 00-00 22 00 00 00 23 00 00 .....!..."...#.. +0fd0 00 14 00 00 00 8a c1 00-00 15 d1 00 00 07 00 00 ................ +0fe0 00 00 00 00 00 60 00 00-00 8a c1 00 00 01 d1 00 .....`.......... +0ff0 00 03 00 00 00 13 00 00-00 20 00 00 00 23 00 00 ......... ...#.. +1000 00 25 00 00 00 28 00 00-00 2b 00 00 00 2d 00 00 .%...(...+...-.. +1010 00 30 00 00 00 33 00 00-00 35 00 00 00 38 00 00 .0...3...5...8.. +1020 00 3b 00 00 00 3d 00 00-00 40 00 00 00 43 00 00 .;...=...@...C.. +1030 00 45 00 00 00 48 00 00-00 4b 00 00 00 4d 00 00 .E...H...K...M.. +1040 00 50 00 00 00 14 00 00-00 8a c1 00 00 02 d1 00 .P.............. +1050 00 03 00 00 00 00 00 00-00 64 00 00 00 8a c1 00 .........d...... +1060 00 03 d1 00 00 03 00 00-00 14 00 00 00 00 00 00 ................ +1070 00 48 00 00 00 4b 00 00-00 4d 00 00 00 50 00 00 .H...K...M...P.. +1080 00 53 00 00 00 55 00 00-00 58 00 00 00 5b 00 00 .S...U...X...[.. +1090 00 5d 00 00 00 60 00 00-00 63 00 00 00 65 00 00 .]...`...c...e.. +10a0 00 68 00 00 00 6b 00 00-00 6d 00 00 00 70 00 00 .h...k...m...p.. +10b0 00 73 00 00 00 75 00 00-00 78 00 00 00 90 00 00 .s...u...x...... +10c0 00 8a c1 00 00 04 d1 00-00 03 00 00 00 1f 00 00 ................ +10d0 00 d8 00 00 00 db 00 00-00 dd 00 00 00 e0 00 00 ................ +10e0 00 e3 00 00 00 e5 00 00-00 e8 00 00 00 eb 00 00 ................ +10f0 00 ed 00 00 00 f0 00 00-00 f3 00 00 00 f5 00 00 ................ +1100 00 f8 00 00 00 fb 00 00-00 fd 00 00 00 00 00 00 ................ +1110 00 03 00 00 00 05 00 00-00 08 00 00 00 0b 00 00 ................ +1120 00 0d 00 00 00 10 00 00-00 13 00 00 00 15 00 00 ................ +1130 00 18 00 00 00 1b 00 00-00 1d 00 00 00 20 00 00 ............. .. +1140 00 23 00 00 00 25 00 00-00 28 00 00 00 14 00 00 .#...%...(...... +1150 00 8a c1 00 00 1d d1 00-00 01 00 00 00 00 00 00 ................ +1160 00 14 00 00 00 8a c1 00-00 11 d1 00 00 01 00 00 ................ +1170 00 00 00 00 00 14 00 00-00 8a c1 00 00 12 d1 00 ................ +1180 00 01 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +1190 00 13 d1 00 00 07 00 00-00 00 00 00 00 14 00 00 ................ +11a0 00 8a c1 00 00 7c d1 00-00 07 00 00 00 00 00 00 .....|.......... +11b0 00 a0 01 00 00 8a c1 00-00 7d d1 00 00 03 00 00 .........}...... +11c0 00 21 00 00 00 0c 00 00-00 21 00 00 00 0c 03 00 .!.......!...... +11d0 00 0c 00 00 00 01 00 00-00 fd 02 00 00 0c 00 00 ................ +11e0 00 02 00 00 00 d0 02 00-00 0c 00 00 00 03 00 00 ................ +11f0 00 94 02 00 00 0c 00 00-00 04 00 00 00 58 02 00 .............X.. +1200 00 0c 00 00 00 05 00 00-00 3a 02 00 00 0c 00 00 .........:...... +1210 00 06 00 00 00 1c 02 00-00 0c 00 00 00 07 00 00 ................ +1220 00 e0 01 00 00 0c 00 00-00 08 00 00 00 a4 01 00 ................ +1230 00 0c 00 00 00 09 00 00-00 86 01 00 00 0c 00 00 ................ +1240 00 0a 00 00 00 68 01 00-00 0c 00 00 00 0b 00 00 .....h.......... +1250 00 59 01 00 00 0c 00 00-00 0c 00 00 00 4a 01 00 .Y...........J.. +1260 00 0c 00 00 00 0d 00 00-00 2c 01 00 00 0c 00 00 .........,...... +1270 00 0e 00 00 00 0e 01 00-00 0c 00 00 00 11 00 00 ................ +1280 00 f0 00 00 00 0c 00 00-00 10 00 00 00 d2 00 00 ................ +1290 00 0c 00 00 00 22 00 00-00 b4 00 00 00 0c 00 00 .....".......... +12a0 00 12 00 00 00 78 00 00-00 0c 00 00 00 13 00 00 .....x.......... +12b0 00 3c 00 00 00 0c 00 00-00 14 00 00 00 00 00 00 .<.............. +12c0 00 0c 00 00 00 15 00 00-00 c4 ff ff ff 0c 00 00 ................ +12d0 00 16 00 00 00 88 ff ff-ff 0c 00 00 00 17 00 00 ................ +12e0 00 4c ff ff ff 0c 00 00-00 18 00 00 00 2e ff ff .L.............. +12f0 ff 0c 00 00 00 19 00 00-00 10 ff ff ff 0c 00 00 ................ +1300 00 1a 00 00 00 f2 fe ff-ff 0c 00 00 00 1b 00 00 ................ +1310 00 d4 fe ff ff 0c 00 00-00 1c 00 00 00 98 fe ff ................ +1320 ff 0c 00 00 00 1d 00 00-00 5c fe ff ff 0c 00 00 .........\...... +1330 00 1e 00 00 00 20 fe ff-ff 0c 00 00 00 1f 00 00 ..... .......... +1340 00 e4 fd ff ff 0c 00 00-00 20 00 00 00 a8 fd ff ......... ...... +1350 ff 1c 00 00 00 8a c1 00-00 7e d1 00 00 03 00 00 .........~...... +1360 00 02 00 00 00 00 00 00-00 01 00 00 00 50 05 00 .............P.. +1370 00 8a c1 00 00 20 d1 00-00 03 00 00 00 2b 00 00 ..... .......+.. +1380 00 01 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +1390 00 03 00 00 00 01 00 00-00 10 00 00 00 01 00 00 ................ +13a0 00 00 00 00 00 02 00 00-00 01 00 00 00 10 00 00 ................ +13b0 00 01 00 00 00 05 00 00-00 03 00 00 00 01 00 00 ................ +13c0 00 10 00 00 00 01 00 00-00 05 00 00 00 02 00 00 ................ +13d0 00 01 00 00 00 10 00 00-00 01 00 00 00 06 00 00 ................ +13e0 00 03 00 00 00 01 00 00-00 10 00 00 00 01 00 00 ................ +13f0 00 06 00 00 00 02 00 00-00 01 00 00 00 10 00 00 ................ +1400 00 01 00 00 00 0e 00 00-00 03 00 00 00 01 00 00 ................ +1410 00 10 00 00 00 01 00 00-00 0e 00 00 00 02 00 00 ................ +1420 00 01 00 00 00 10 00 00-00 01 00 00 00 0f 00 00 ................ +1430 00 03 00 00 00 01 00 00-00 10 00 00 00 01 00 00 ................ +1440 00 10 00 00 00 03 00 00-00 02 00 00 00 10 00 00 ................ +1450 00 06 00 00 00 00 00 00-00 04 00 00 00 10 00 00 ................ +1460 00 01 00 00 00 00 00 00-00 03 00 00 00 02 00 00 ................ +1470 00 10 00 00 00 06 00 00-00 00 00 00 00 04 00 00 ................ +1480 00 10 00 00 00 01 00 00-00 00 00 00 00 02 00 00 ................ +1490 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +14a0 00 04 00 00 00 10 00 00-00 01 00 00 00 05 00 00 ................ +14b0 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +14c0 00 00 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +14d0 00 05 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +14e0 00 06 00 00 00 00 00 00-00 04 00 00 00 10 00 00 ................ +14f0 00 01 00 00 00 06 00 00-00 03 00 00 00 02 00 00 ................ +1500 00 10 00 00 00 06 00 00-00 00 00 00 00 04 00 00 ................ +1510 00 10 00 00 00 01 00 00-00 06 00 00 00 02 00 00 ................ +1520 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +1530 00 04 00 00 00 10 00 00-00 01 00 00 00 0e 00 00 ................ +1540 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1550 00 00 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1560 00 0e 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1570 00 06 00 00 00 00 00 00-00 04 00 00 00 10 00 00 ................ +1580 00 01 00 00 00 0f 00 00-00 03 00 00 00 02 00 00 ................ +1590 00 10 00 00 00 06 00 00-00 00 00 00 00 04 00 00 ................ +15a0 00 10 00 00 00 01 00 00-00 10 00 00 00 03 00 00 ................ +15b0 00 02 00 00 00 10 00 00-00 06 00 00 00 01 00 00 ................ +15c0 00 04 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +15d0 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +15e0 00 01 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +15f0 00 00 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1600 00 06 00 00 00 01 00 00-00 04 00 00 00 10 00 00 ................ +1610 00 01 00 00 00 05 00 00-00 03 00 00 00 02 00 00 ................ +1620 00 10 00 00 00 06 00 00-00 01 00 00 00 04 00 00 ................ +1630 00 10 00 00 00 01 00 00-00 05 00 00 00 02 00 00 ................ +1640 00 02 00 00 00 10 00 00-00 06 00 00 00 01 00 00 ................ +1650 00 04 00 00 00 10 00 00-00 01 00 00 00 06 00 00 ................ +1660 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1670 00 01 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1680 00 06 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1690 00 06 00 00 00 01 00 00-00 04 00 00 00 10 00 00 ................ +16a0 00 01 00 00 00 0e 00 00-00 03 00 00 00 02 00 00 ................ +16b0 00 10 00 00 00 06 00 00-00 01 00 00 00 04 00 00 ................ +16c0 00 10 00 00 00 01 00 00-00 0e 00 00 00 02 00 00 ................ +16d0 00 02 00 00 00 10 00 00-00 06 00 00 00 01 00 00 ................ +16e0 00 04 00 00 00 10 00 00-00 01 00 00 00 0f 00 00 ................ +16f0 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1700 00 01 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1710 00 10 00 00 00 03 00 00-00 02 00 00 00 10 00 00 ................ +1720 00 06 00 00 00 02 00 00-00 04 00 00 00 10 00 00 ................ +1730 00 01 00 00 00 00 00 00-00 03 00 00 00 02 00 00 ................ +1740 00 10 00 00 00 06 00 00-00 02 00 00 00 04 00 00 ................ +1750 00 10 00 00 00 01 00 00-00 00 00 00 00 02 00 00 ................ +1760 00 02 00 00 00 10 00 00-00 06 00 00 00 02 00 00 ................ +1770 00 04 00 00 00 10 00 00-00 01 00 00 00 05 00 00 ................ +1780 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1790 00 02 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +17a0 00 05 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +17b0 00 06 00 00 00 02 00 00-00 04 00 00 00 10 00 00 ................ +17c0 00 01 00 00 00 06 00 00-00 03 00 00 00 02 00 00 ................ +17d0 00 10 00 00 00 06 00 00-00 02 00 00 00 04 00 00 ................ +17e0 00 10 00 00 00 01 00 00-00 06 00 00 00 02 00 00 ................ +17f0 00 02 00 00 00 10 00 00-00 06 00 00 00 02 00 00 ................ +1800 00 04 00 00 00 10 00 00-00 01 00 00 00 0e 00 00 ................ +1810 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1820 00 02 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1830 00 0e 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1840 00 06 00 00 00 02 00 00-00 04 00 00 00 10 00 00 ................ +1850 00 01 00 00 00 0f 00 00-00 03 00 00 00 02 00 00 ................ +1860 00 10 00 00 00 06 00 00-00 02 00 00 00 04 00 00 ................ +1870 00 10 00 00 00 01 00 00-00 10 00 00 00 03 00 00 ................ +1880 00 01 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +1890 00 04 00 00 00 01 00 00-00 10 00 00 00 06 00 00 ................ +18a0 00 01 00 00 00 04 00 00-00 01 00 00 00 10 00 00 ................ +18b0 00 06 00 00 00 02 00 00-00 04 00 00 00 50 05 00 .............P.. +18c0 00 8a c1 00 00 21 d1 00-00 03 00 00 00 2b 00 00 .....!.......+.. +18d0 00 01 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +18e0 00 03 00 00 00 01 00 00-00 10 00 00 00 01 00 00 ................ +18f0 00 00 00 00 00 02 00 00-00 01 00 00 00 10 00 00 ................ +1900 00 01 00 00 00 05 00 00-00 03 00 00 00 01 00 00 ................ +1910 00 10 00 00 00 01 00 00-00 05 00 00 00 02 00 00 ................ +1920 00 01 00 00 00 10 00 00-00 01 00 00 00 06 00 00 ................ +1930 00 03 00 00 00 01 00 00-00 10 00 00 00 01 00 00 ................ +1940 00 06 00 00 00 02 00 00-00 01 00 00 00 10 00 00 ................ +1950 00 01 00 00 00 0e 00 00-00 03 00 00 00 01 00 00 ................ +1960 00 10 00 00 00 01 00 00-00 0e 00 00 00 02 00 00 ................ +1970 00 01 00 00 00 10 00 00-00 01 00 00 00 0f 00 00 ................ +1980 00 03 00 00 00 01 00 00-00 10 00 00 00 01 00 00 ................ +1990 00 10 00 00 00 03 00 00-00 02 00 00 00 10 00 00 ................ +19a0 00 06 00 00 00 00 00 00-00 04 00 00 00 10 00 00 ................ +19b0 00 01 00 00 00 00 00 00-00 03 00 00 00 02 00 00 ................ +19c0 00 10 00 00 00 06 00 00-00 00 00 00 00 04 00 00 ................ +19d0 00 10 00 00 00 01 00 00-00 00 00 00 00 02 00 00 ................ +19e0 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +19f0 00 04 00 00 00 10 00 00-00 01 00 00 00 05 00 00 ................ +1a00 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1a10 00 00 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1a20 00 05 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1a30 00 06 00 00 00 00 00 00-00 04 00 00 00 10 00 00 ................ +1a40 00 01 00 00 00 06 00 00-00 03 00 00 00 02 00 00 ................ +1a50 00 10 00 00 00 06 00 00-00 00 00 00 00 04 00 00 ................ +1a60 00 10 00 00 00 01 00 00-00 06 00 00 00 02 00 00 ................ +1a70 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +1a80 00 04 00 00 00 10 00 00-00 01 00 00 00 0e 00 00 ................ +1a90 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1aa0 00 00 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1ab0 00 0e 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1ac0 00 06 00 00 00 00 00 00-00 04 00 00 00 10 00 00 ................ +1ad0 00 01 00 00 00 0f 00 00-00 03 00 00 00 02 00 00 ................ +1ae0 00 10 00 00 00 06 00 00-00 00 00 00 00 04 00 00 ................ +1af0 00 10 00 00 00 01 00 00-00 10 00 00 00 03 00 00 ................ +1b00 00 02 00 00 00 10 00 00-00 06 00 00 00 01 00 00 ................ +1b10 00 04 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +1b20 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1b30 00 01 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1b40 00 00 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1b50 00 06 00 00 00 01 00 00-00 04 00 00 00 10 00 00 ................ +1b60 00 01 00 00 00 05 00 00-00 03 00 00 00 02 00 00 ................ +1b70 00 10 00 00 00 06 00 00-00 01 00 00 00 04 00 00 ................ +1b80 00 10 00 00 00 01 00 00-00 05 00 00 00 02 00 00 ................ +1b90 00 02 00 00 00 10 00 00-00 06 00 00 00 01 00 00 ................ +1ba0 00 04 00 00 00 10 00 00-00 01 00 00 00 06 00 00 ................ +1bb0 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1bc0 00 01 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1bd0 00 06 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1be0 00 06 00 00 00 01 00 00-00 04 00 00 00 10 00 00 ................ +1bf0 00 01 00 00 00 0e 00 00-00 03 00 00 00 02 00 00 ................ +1c00 00 10 00 00 00 06 00 00-00 01 00 00 00 04 00 00 ................ +1c10 00 10 00 00 00 01 00 00-00 0e 00 00 00 02 00 00 ................ +1c20 00 02 00 00 00 10 00 00-00 06 00 00 00 01 00 00 ................ +1c30 00 04 00 00 00 10 00 00-00 01 00 00 00 0f 00 00 ................ +1c40 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1c50 00 01 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1c60 00 10 00 00 00 03 00 00-00 02 00 00 00 10 00 00 ................ +1c70 00 06 00 00 00 02 00 00-00 04 00 00 00 10 00 00 ................ +1c80 00 01 00 00 00 00 00 00-00 03 00 00 00 02 00 00 ................ +1c90 00 10 00 00 00 06 00 00-00 02 00 00 00 04 00 00 ................ +1ca0 00 10 00 00 00 01 00 00-00 00 00 00 00 02 00 00 ................ +1cb0 00 02 00 00 00 10 00 00-00 06 00 00 00 02 00 00 ................ +1cc0 00 04 00 00 00 10 00 00-00 01 00 00 00 05 00 00 ................ +1cd0 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1ce0 00 02 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1cf0 00 05 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1d00 00 06 00 00 00 02 00 00-00 04 00 00 00 10 00 00 ................ +1d10 00 01 00 00 00 06 00 00-00 03 00 00 00 02 00 00 ................ +1d20 00 10 00 00 00 06 00 00-00 02 00 00 00 04 00 00 ................ +1d30 00 10 00 00 00 01 00 00-00 06 00 00 00 02 00 00 ................ +1d40 00 02 00 00 00 10 00 00-00 06 00 00 00 02 00 00 ................ +1d50 00 04 00 00 00 10 00 00-00 01 00 00 00 0e 00 00 ................ +1d60 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1d70 00 02 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1d80 00 0e 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1d90 00 06 00 00 00 02 00 00-00 04 00 00 00 10 00 00 ................ +1da0 00 01 00 00 00 0f 00 00-00 03 00 00 00 02 00 00 ................ +1db0 00 10 00 00 00 06 00 00-00 02 00 00 00 04 00 00 ................ +1dc0 00 10 00 00 00 01 00 00-00 10 00 00 00 03 00 00 ................ +1dd0 00 01 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +1de0 00 04 00 00 00 01 00 00-00 10 00 00 00 06 00 00 ................ +1df0 00 01 00 00 00 04 00 00-00 01 00 00 00 10 00 00 ................ +1e00 00 06 00 00 00 02 00 00-00 04 00 00 00 50 05 00 .............P.. +1e10 00 8a c1 00 00 22 d1 00-00 03 00 00 00 2b 00 00 .....".......+.. +1e20 00 01 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +1e30 00 03 00 00 00 01 00 00-00 10 00 00 00 01 00 00 ................ +1e40 00 00 00 00 00 02 00 00-00 01 00 00 00 10 00 00 ................ +1e50 00 01 00 00 00 05 00 00-00 03 00 00 00 01 00 00 ................ +1e60 00 10 00 00 00 01 00 00-00 05 00 00 00 02 00 00 ................ +1e70 00 01 00 00 00 10 00 00-00 01 00 00 00 06 00 00 ................ +1e80 00 03 00 00 00 01 00 00-00 10 00 00 00 01 00 00 ................ +1e90 00 06 00 00 00 02 00 00-00 01 00 00 00 10 00 00 ................ +1ea0 00 01 00 00 00 0e 00 00-00 03 00 00 00 01 00 00 ................ +1eb0 00 10 00 00 00 01 00 00-00 0e 00 00 00 02 00 00 ................ +1ec0 00 01 00 00 00 10 00 00-00 01 00 00 00 0f 00 00 ................ +1ed0 00 03 00 00 00 01 00 00-00 10 00 00 00 01 00 00 ................ +1ee0 00 10 00 00 00 03 00 00-00 02 00 00 00 10 00 00 ................ +1ef0 00 06 00 00 00 00 00 00-00 04 00 00 00 10 00 00 ................ +1f00 00 01 00 00 00 00 00 00-00 03 00 00 00 02 00 00 ................ +1f10 00 10 00 00 00 06 00 00-00 00 00 00 00 04 00 00 ................ +1f20 00 10 00 00 00 01 00 00-00 00 00 00 00 02 00 00 ................ +1f30 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +1f40 00 04 00 00 00 10 00 00-00 01 00 00 00 05 00 00 ................ +1f50 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1f60 00 00 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +1f70 00 05 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +1f80 00 06 00 00 00 00 00 00-00 04 00 00 00 10 00 00 ................ +1f90 00 01 00 00 00 06 00 00-00 03 00 00 00 02 00 00 ................ +1fa0 00 10 00 00 00 06 00 00-00 00 00 00 00 04 00 00 ................ +1fb0 00 10 00 00 00 01 00 00-00 06 00 00 00 02 00 00 ................ +1fc0 00 02 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +1fd0 00 04 00 00 00 10 00 00-00 01 00 00 00 0e 00 00 ................ +1fe0 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +1ff0 00 00 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +2000 00 0e 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +2010 00 06 00 00 00 00 00 00-00 04 00 00 00 10 00 00 ................ +2020 00 01 00 00 00 0f 00 00-00 03 00 00 00 02 00 00 ................ +2030 00 10 00 00 00 06 00 00-00 00 00 00 00 04 00 00 ................ +2040 00 10 00 00 00 01 00 00-00 10 00 00 00 03 00 00 ................ +2050 00 02 00 00 00 10 00 00-00 06 00 00 00 01 00 00 ................ +2060 00 04 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +2070 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +2080 00 01 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +2090 00 00 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +20a0 00 06 00 00 00 01 00 00-00 04 00 00 00 10 00 00 ................ +20b0 00 01 00 00 00 05 00 00-00 03 00 00 00 02 00 00 ................ +20c0 00 10 00 00 00 06 00 00-00 01 00 00 00 04 00 00 ................ +20d0 00 10 00 00 00 01 00 00-00 05 00 00 00 02 00 00 ................ +20e0 00 02 00 00 00 10 00 00-00 06 00 00 00 01 00 00 ................ +20f0 00 04 00 00 00 10 00 00-00 01 00 00 00 06 00 00 ................ +2100 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +2110 00 01 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +2120 00 06 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +2130 00 06 00 00 00 01 00 00-00 04 00 00 00 10 00 00 ................ +2140 00 01 00 00 00 0e 00 00-00 03 00 00 00 02 00 00 ................ +2150 00 10 00 00 00 06 00 00-00 01 00 00 00 04 00 00 ................ +2160 00 10 00 00 00 01 00 00-00 0e 00 00 00 02 00 00 ................ +2170 00 02 00 00 00 10 00 00-00 06 00 00 00 01 00 00 ................ +2180 00 04 00 00 00 10 00 00-00 01 00 00 00 0f 00 00 ................ +2190 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +21a0 00 01 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +21b0 00 10 00 00 00 03 00 00-00 02 00 00 00 10 00 00 ................ +21c0 00 06 00 00 00 02 00 00-00 04 00 00 00 10 00 00 ................ +21d0 00 01 00 00 00 00 00 00-00 03 00 00 00 02 00 00 ................ +21e0 00 10 00 00 00 06 00 00-00 02 00 00 00 04 00 00 ................ +21f0 00 10 00 00 00 01 00 00-00 00 00 00 00 02 00 00 ................ +2200 00 02 00 00 00 10 00 00-00 06 00 00 00 02 00 00 ................ +2210 00 04 00 00 00 10 00 00-00 01 00 00 00 05 00 00 ................ +2220 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +2230 00 02 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +2240 00 05 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +2250 00 06 00 00 00 02 00 00-00 04 00 00 00 10 00 00 ................ +2260 00 01 00 00 00 06 00 00-00 03 00 00 00 02 00 00 ................ +2270 00 10 00 00 00 06 00 00-00 02 00 00 00 04 00 00 ................ +2280 00 10 00 00 00 01 00 00-00 06 00 00 00 02 00 00 ................ +2290 00 02 00 00 00 10 00 00-00 06 00 00 00 02 00 00 ................ +22a0 00 04 00 00 00 10 00 00-00 01 00 00 00 0e 00 00 ................ +22b0 00 03 00 00 00 02 00 00-00 10 00 00 00 06 00 00 ................ +22c0 00 02 00 00 00 04 00 00-00 10 00 00 00 01 00 00 ................ +22d0 00 0e 00 00 00 02 00 00-00 02 00 00 00 10 00 00 ................ +22e0 00 06 00 00 00 02 00 00-00 04 00 00 00 10 00 00 ................ +22f0 00 01 00 00 00 0f 00 00-00 03 00 00 00 02 00 00 ................ +2300 00 10 00 00 00 06 00 00-00 02 00 00 00 04 00 00 ................ +2310 00 10 00 00 00 01 00 00-00 10 00 00 00 03 00 00 ................ +2320 00 01 00 00 00 10 00 00-00 06 00 00 00 00 00 00 ................ +2330 00 04 00 00 00 01 00 00-00 10 00 00 00 06 00 00 ................ +2340 00 01 00 00 00 04 00 00-00 01 00 00 00 10 00 00 ................ +2350 00 06 00 00 00 02 00 00-00 04 00 00 00 14 00 00 ................ +2360 00 8a c1 00 00 5d d1 00-00 07 00 00 00 00 00 00 .....].......... +2370 00 14 00 00 00 8a c1 00-00 57 d1 00 00 07 00 00 .........W...... +2380 00 00 00 00 00 14 00 00-00 8a c1 00 00 58 d1 00 .............X.. +2390 00 07 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +23a0 00 59 d1 00 00 07 00 00-00 00 00 00 00 14 00 00 .Y.............. +23b0 00 8a c1 00 00 5a d1 00-00 07 00 00 00 00 00 00 .....Z.......... +23c0 00 14 00 00 00 8a c1 00-00 5b d1 00 00 07 00 00 .........[...... +23d0 00 00 00 00 00 14 00 00-00 8a c1 00 00 5c d1 00 .............\.. +23e0 00 07 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +23f0 00 5e d1 00 00 07 00 00-00 00 00 00 00 14 00 00 .^.............. +2400 00 8a c1 00 00 63 d1 00-00 07 00 00 00 00 00 00 .....c.......... +2410 00 14 00 00 00 8a c1 00-00 64 d1 00 00 07 00 00 .........d...... +2420 00 00 00 00 00 14 00 00-00 8a c1 00 00 65 d1 00 .............e.. +2430 00 07 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +2440 00 70 d1 00 00 07 00 00-00 00 00 00 00 14 00 00 .p.............. +2450 00 8a c1 00 00 71 d1 00-00 07 00 00 00 00 00 00 .....q.......... +2460 00 14 00 00 00 8a c1 00-00 72 d1 00 00 07 00 00 .........r...... +2470 00 00 00 00 00 28 00 00-00 8a c1 00 00 1c d1 00 .....(.......... +2480 00 03 00 00 00 05 00 00-00 01 00 00 00 05 00 00 ................ +2490 00 02 00 00 00 06 00 00-00 04 00 00 00 14 00 00 ................ +24a0 00 8a c1 00 00 a0 d1 00-00 07 00 00 00 00 00 00 ................ +24b0 00 14 00 00 00 8a c1 00-00 a1 d1 00 00 07 00 00 ................ +24c0 00 00 00 00 00 14 00 00-00 8a c1 00 00 a2 d1 00 ................ +24d0 00 07 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +24e0 00 a8 d1 00 00 01 00 00-00 00 00 00 00 14 00 00 ................ +24f0 00 8a c1 00 00 a7 d1 00-00 07 00 00 00 00 00 00 ................ +2500 00 14 00 00 00 8a c1 00-00 ab d1 00 00 01 00 00 ................ +2510 00 00 00 00 00 44 00 00-00 8a c1 00 00 b0 d1 00 .....D.......... +2520 00 03 00 00 00 0c 00 00-00 00 00 00 00 01 00 00 ................ +2530 00 02 00 00 00 03 00 00-00 04 00 00 00 05 00 00 ................ +2540 00 06 00 00 00 07 00 00-00 08 00 00 00 09 00 00 ................ +2550 00 0a 00 00 00 0b 00 00-00 1c 00 00 00 8a c1 00 ................ +2560 00 b1 d1 00 00 03 00 00-00 02 00 00 00 01 00 00 ................ +2570 00 00 00 00 00 14 00 00-00 8a c1 00 00 b2 d1 00 ................ +2580 00 07 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +2590 00 b3 d1 00 00 07 00 00-00 00 00 00 00 40 00 00 .............@.. +25a0 00 8a c1 00 00 b4 d1 00-00 03 00 00 00 0b 00 00 ................ +25b0 00 00 00 00 00 17 00 00-00 01 00 00 00 08 00 00 ................ +25c0 00 02 00 00 00 03 00 00-00 04 00 00 00 05 00 00 ................ +25d0 00 06 00 00 00 09 00 00-00 00 80 00 00 14 00 00 ................ +25e0 00 8a c1 00 00 b5 d1 00-00 07 00 00 00 00 00 00 ................ +25f0 00 44 01 00 00 8a c1 00-00 b6 d1 00 00 03 00 00 .D.............. +2600 00 4c 00 00 00 c4 09 00-00 28 0a 00 00 8c 0a 00 .L.......(...... +2610 00 f0 0a 00 00 54 0b 00-00 b8 0b 00 00 1c 0c 00 .....T.......... +2620 00 80 0c 00 00 e4 0c 00-00 48 0d 00 00 ac 0d 00 .........H...... +2630 00 10 0e 00 00 74 0e 00-00 d8 0e 00 00 3c 0f 00 .....t.......<.. +2640 00 a0 0f 00 00 04 10 00-00 68 10 00 00 cc 10 00 .........h...... +2650 00 30 11 00 00 94 11 00-00 f8 11 00 00 5c 12 00 .0...........\.. +2660 00 c0 12 00 00 24 13 00-00 88 13 00 00 ec 13 00 .....$.......... +2670 00 50 14 00 00 b4 14 00-00 18 15 00 00 7c 15 00 .P...........|.. +2680 00 e0 15 00 00 44 16 00-00 a8 16 00 00 0c 17 00 .....D.......... +2690 00 70 17 00 00 d4 17 00-00 38 18 00 00 9c 18 00 .p.......8...... +26a0 00 00 19 00 00 64 19 00-00 c8 19 00 00 2c 1a 00 .....d.......,.. +26b0 00 90 1a 00 00 f4 1a 00-00 58 1b 00 00 bc 1b 00 .........X...... +26c0 00 20 1c 00 00 84 1c 00-00 e8 1c 00 00 4c 1d 00 . ...........L.. +26d0 00 b0 1d 00 00 14 1e 00-00 78 1e 00 00 dc 1e 00 .........x...... +26e0 00 40 1f 00 00 a4 1f 00-00 08 20 00 00 6c 20 00 .@........ ..l . +26f0 00 d0 20 00 00 34 21 00-00 98 21 00 00 fc 21 00 .. ..4!...!...!. +2700 00 60 22 00 00 c4 22 00-00 28 23 00 00 8c 23 00 .`"..."..(#...#. +2710 00 f0 23 00 00 54 24 00-00 b8 24 00 00 1c 25 00 ..#..T$...$...%. +2720 00 80 25 00 00 e4 25 00-00 48 26 00 00 ac 26 00 ..%...%..H&...&. +2730 00 10 27 00 00 28 00 00-00 8a c1 00 00 a9 d1 00 ..'..(.......... +2740 00 03 00 00 00 05 00 00-00 00 00 00 00 02 00 00 ................ +2750 00 04 00 00 00 08 00 00-00 ff 00 00 00 14 00 00 ................ +2760 00 8a c1 00 00 46 d1 00-00 07 00 00 00 00 00 00 .....F.......... +2770 00 14 00 00 00 8a c1 00-00 ac d1 00 00 01 00 00 ................ +2780 00 00 00 00 00 14 00 00-00 8a c1 00 00 ad d1 00 ................ +2790 00 01 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +27a0 00 ae d1 00 00 01 00 00-00 00 00 00 00 14 00 00 ................ +27b0 00 8a c1 00 00 aa d1 00-00 01 00 00 00 00 00 00 ................ +27c0 00 14 00 00 00 8a c1 00-00 1e d1 00 00 01 00 00 ................ +27d0 00 00 00 00 00 14 00 00-00 8a c1 00 00 1f d1 00 ................ +27e0 00 01 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +27f0 00 af d1 00 00 01 00 00-00 00 00 00 00 14 00 00 ................ +2800 00 8a c1 00 00 d0 d1 00-00 07 00 00 00 00 00 00 ................ +2810 00 14 00 00 00 8a c1 00-00 d1 d1 00 00 07 00 00 ................ +2820 00 00 00 00 00 3c 00 00-00 8a c1 00 00 d9 d1 00 .....<.......... +2830 00 03 00 00 00 0a 00 00-00 00 00 00 00 03 00 00 ................ +2840 00 05 00 00 00 08 00 00-00 0b 00 00 00 0d 00 00 ................ +2850 00 10 00 00 00 13 00 00-00 15 00 00 00 18 00 00 ................ +2860 00 14 00 00 00 8a c1 00-00 d5 d1 00 00 03 00 00 ................ +2870 00 00 00 00 00 1c 00 00-00 8a c1 00 00 ba d1 00 ................ +2880 00 03 00 00 00 02 00 00-00 02 00 00 00 01 00 00 ................ +2890 00 14 00 00 00 8a c1 00-00 cd d1 00 00 03 00 00 ................ +28a0 00 00 00 00 00 20 00 00-00 8a c1 00 00 bc d1 00 ..... .......... +28b0 00 03 00 00 00 03 00 00-00 01 00 00 00 00 00 00 ................ +28c0 00 03 00 00 00 14 00 00-00 8a c1 00 00 b8 d1 00 ................ +28d0 00 03 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +28e0 00 d3 d1 00 00 07 00 00-00 00 00 00 00 14 00 00 ................ +28f0 00 8a c1 00 00 d8 d1 00-00 01 00 00 00 00 00 00 ................ +2900 00 14 00 00 00 8a c1 00-00 7f d1 00 00 01 00 00 ................ +2910 00 00 00 00 00 14 00 00-00 8a c1 00 00 b7 d1 00 ................ +2920 00 01 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +2930 00 cb d1 00 00 07 00 00-00 00 00 00 00 14 00 00 ................ +2940 00 8a c1 00 00 db d1 00-00 07 00 00 00 00 00 00 ................ +2950 00 1c 00 00 00 8a c1 00-00 dc d1 00 00 03 00 00 ................ +2960 00 02 00 00 00 00 00 00-00 01 00 00 00 14 00 00 ................ +2970 00 8a c1 00 00 a3 d1 00-00 01 00 00 00 00 00 00 ................ +2980 00 14 00 00 00 8a c1 00-00 a4 d1 00 00 07 00 00 ................ +2990 00 00 00 00 00 14 00 00-00 8a c1 00 00 df d1 00 ................ +29a0 00 03 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +29b0 00 bd d1 00 00 01 00 00-00 00 00 00 00 24 00 00 .............$.. +29c0 00 8a c1 00 00 c1 d1 00-00 03 00 00 00 04 00 00 ................ +29d0 00 03 00 00 00 01 00 00-00 00 00 00 00 02 00 00 ................ +29e0 00 14 00 00 00 8a c1 00-00 c0 d1 00 00 01 00 00 ................ +29f0 00 00 00 00 00 14 00 00-00 8a c1 00 00 bf d1 00 ................ +2a00 00 07 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +2a10 00 c4 d1 00 00 01 00 00-00 00 00 00 00 14 00 00 ................ +2a20 00 8a c1 00 00 c2 d1 00-00 01 00 00 00 00 00 00 ................ +2a30 00 14 00 00 00 8a c1 00-00 c5 d1 00 00 03 00 00 ................ +2a40 00 00 00 00 00 2c 00 00-00 8a c1 00 00 94 d1 00 .....,.......... +2a50 00 03 00 00 00 06 00 00-00 00 00 00 00 0c 00 00 ................ +2a60 00 0d 00 00 00 01 00 00-00 02 00 00 00 07 00 00 ................ +2a70 00 14 00 00 00 8a c1 00-00 95 d1 00 00 03 00 00 ................ +2a80 00 00 00 00 00 14 00 00-00 8a c1 00 00 96 d1 00 ................ +2a90 00 07 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +2aa0 00 97 d1 00 00 03 00 00-00 00 00 00 00 14 00 00 ................ +2ab0 00 8a c1 00 00 98 d1 00-00 01 00 00 00 00 00 00 ................ +2ac0 00 14 00 00 00 8a c1 00-00 dd d1 00 00 01 00 00 ................ +2ad0 00 00 00 00 00 14 00 00-00 8a c1 00 00 c7 d1 00 ................ +2ae0 00 07 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +2af0 00 99 d1 00 00 01 00 00-00 00 00 00 00 14 00 00 ................ +2b00 00 8a c1 00 00 38 d1 00-00 01 00 00 00 00 00 00 .....8.......... +2b10 00 14 00 00 00 8a c1 00-00 39 d1 00 00 01 00 00 .........9...... +2b20 00 00 00 00 00 30 00 00-00 8a c1 00 00 3a d1 00 .....0.......:.. +2b30 00 03 00 00 00 07 00 00-00 00 00 00 00 01 00 00 ................ +2b40 00 03 00 00 00 04 00 00-00 05 00 00 00 06 00 00 ................ +2b50 00 07 00 00 00 14 00 00-00 8a c1 00 00 3b d1 00 .............;.. +2b60 00 01 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +2b70 00 3c d1 00 00 01 00 00-00 00 00 00 00 14 00 00 .<.............. +2b80 00 8a c1 00 00 3d d1 00-00 07 00 00 00 00 00 00 .....=.......... +2b90 00 14 00 00 00 8a c1 00-00 4d d1 00 00 07 00 00 .........M...... +2ba0 00 00 00 00 00 14 00 00-00 8a c1 00 00 9d d1 00 ................ +2bb0 00 01 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +2bc0 00 9a d1 00 00 01 00 00-00 00 00 00 00 14 00 00 ................ +2bd0 00 8a c1 00 00 9c d1 00-00 01 00 00 00 00 00 00 ................ +2be0 00 28 00 00 00 8a c1 00-00 78 d1 00 00 03 00 00 .(.......x...... +2bf0 00 05 00 00 00 03 00 00-00 01 00 00 00 00 00 00 ................ + +0000 00 02 00 00 00 04 00 00-00 14 00 00 00 8a c1 00 ................ +0010 00 79 d1 00 00 03 00 00-00 00 00 00 00 1c 00 00 .y.............. +0020 00 8a c1 00 00 7a d1 00-00 03 00 00 00 02 00 00 .....z.......... +0030 00 01 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +0040 00 7b d1 00 00 03 00 00-00 00 00 00 00 1c 00 00 .{.............. +0050 00 8a c1 00 00 c9 d1 00-00 03 00 00 00 02 00 00 ................ +0060 00 01 00 00 00 00 00 00-00 14 00 00 00 8a c1 00 ................ +0070 00 9f d1 00 00 01 00 00-00 00 00 00 00 14 00 00 ................ +0080 00 8a c1 00 00 75 d1 00-00 03 00 00 00 00 00 00 .....u.......... +0090 00 14 00 00 00 8a c1 00-00 4c d1 00 00 01 00 00 .........L...... +00a0 00 00 00 00 00 18 00 00-00 8a c1 00 00 4b d1 00 .............K.. +00b0 00 03 00 00 00 01 00 00-00 06 00 00 00 14 00 00 ................ +00c0 00 8a c1 00 00 3e d1 00-00 01 00 00 00 00 00 00 .....>.......... +00d0 00 20 00 00 00 8a c1 00-00 c6 d1 00 00 03 00 00 . .............. +00e0 00 03 00 00 00 00 00 00-00 01 00 00 00 02 00 00 ................ +00f0 00 0c 00 00 00 a4 c1 00-00 01 00 01 00 0c 00 00 ................ +0100 00 a4 c1 00 00 01 00 02-00 51 00 00 00 a5 c1 00 .........Q...... +0110 00 49 00 00 00 ff 1f 00-00 01 00 00 00 00 00 00 .I.............. +0120 00 01 01 50 20 20 01 01-00 48 04 01 07 44 00 00 ...P ...H...D.. +0130 00 00 00 00 01 01 00 00-00 00 00 00 00 00 00 00 ................ +0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0150 00 00 00 00 00 00 00 00-00 00 08 00 00 00 00 00 ................ +0160 00 00 - .. + +event 0: EOS prop d105 info record, datasize is 4 +event 0: currentvalue of d105 is 2 +event 1: EOS prop d108 info record, datasize is 4 +event 1: currentvalue of d108 is 0 +event 2: EOS prop d106 info record, datasize is 4 +event 2: currentvalue of d106 is 0 +event 3: EOS prop d107 info record, datasize is 4 +event 3: currentvalue of d107 is 3 +event 4: EOS prop d109 info record, datasize is 4 +event 4: currentvalue of d109 is 0 +event 5: EOS prop d10a info record, datasize is 4 +event 5: Unknown EOS property d10a, datasize is 4, using uint32 + 0: 0x 1450 +event 5: currentvalue of d10a is 1450 +event 6: EOS prop d10b info record, datasize is 4 +event 7: EOS prop d10c info record, datasize is 4 +event 8: EOS prop d10d info record, datasize is 4 +event 8: currentvalue of d10d is 0 +event 9: EOS prop d10e info record, datasize is 4 +event 9: currentvalue of d10e is 0 +event 10: EOS prop d10f info record, datasize is 4 +event 10: currentvalue of d10f is 1 +event 11: EOS prop d11b info record, datasize is 4 +event 11: currentvalue of d11b is 744 +event 12: EOS prop d114 info record, datasize is 4 +event 12: currentvalue of d114 is 3c +event 13: EOS prop d116 info record, datasize is 4 +event 13: currentvalue of d116 is 80000401 +event 14: EOS prop d119 info record, datasize is 4 +event 14: currentvalue of d119 is 100 +event 15: EOS prop d110 info record, datasize is 4 +event 15: currentvalue of d110 is 81 +event 16: EOS prop d101 info record, datasize is 4 +event 16: currentvalue of d101 is 20 +event 17: EOS prop d102 info record, datasize is 4 +event 17: currentvalue of d102 is 6d +event 18: EOS prop d103 info record, datasize is 4 +event 18: currentvalue of d103 is 48 +event 19: EOS prop d104 info record, datasize is 4 +event 19: currentvalue of d104 is 0 +event 20: EOS prop d11d info record, datasize is 4 +event 20: currentvalue of d11d is 0 +event 21: EOS prop d111 info record, datasize is 4 +event 21: currentvalue of d111 is 1 +event 22: EOS prop d112 info record, datasize is 4 +event 22: currentvalue of d112 is 0 +event 23: EOS prop d113 info record, datasize is 4 +event 23: currentvalue of d113 is 5b5f83f7 +event 24: EOS prop d17c info record, datasize is 4 +event 24: currentvalue of d17c is 5b5fe667 +event 25: EOS prop d17d info record, datasize is 12 +event 25: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 1d + 5: 00 + 6: 00 + 7: 00 + 8: 5c + 9: fe + 10: ff + 11: ff +event 26: EOS prop d17e info record, datasize is 4 +event 26: currentvalue of d17e is 0 +event 27: EOS prop d120 info record, datasize is 20 +event 27: decoded imageformat, currentvalue of d120 is 300 +event 28: EOS prop d121 info record, datasize is 20 +event 28: decoded imageformat, currentvalue of d121 is 300 +event 29: EOS prop d122 info record, datasize is 20 +event 29: decoded imageformat, currentvalue of d122 is 300 +event 30: EOS prop d15d info record, datasize is 40 +event 30: Unknown EOS property d15d, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 04 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 31: EOS prop d157 info record, datasize is 40 +event 31: Unknown EOS property d157, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 04 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 32: EOS prop d158 info record, datasize is 40 +event 32: Unknown EOS property d158, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 02 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 04 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 33: EOS prop d159 info record, datasize is 40 +event 33: Unknown EOS property d159, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 04 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 34: EOS prop d15a info record, datasize is 40 +event 34: Unknown EOS property d15a, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 +event 35: EOS prop d15b info record, datasize is 40 +event 35: Unknown EOS property d15b, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 02 + 33: 00 + 34: 00 + 35: 00 + 36: 02 + 37: 00 + 38: 00 + 39: 00 +event 36: EOS prop d15c info record, datasize is 40 +event 36: Unknown EOS property d15c, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 04 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 +event 37: EOS prop d15e info record, datasize is 40 +event 37: Unknown EOS property d15e, datasize is 40 + 0: 28 + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 04 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 01 + 37: 00 + 38: 00 + 39: 00 +event 38: EOS prop d163 info record, datasize is 44 +event 38: Unknown EOS property d163, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 81 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 39: EOS prop d164 info record, datasize is 44 +event 39: Unknown EOS property d164, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 81 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 40: EOS prop d165 info record, datasize is 44 +event 40: Unknown EOS property d165, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 81 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 41: EOS prop d11c info record, datasize is 4 +event 41: currentvalue of d11c is 1 +event 42: EOS prop d1a0 info record, datasize is 148 +event 42: decoded custom function, currentvalue of d1a0 is 94,1,1,88,9,101,1,0,102,1,0,104,1,0,105,1,0,106,2,3,0,108,1,0,112,1,0,10c,3,0,a0,10,10d,3,0,70,8, +event 43: EOS prop d1a0 info record, datasize is 32 +event 43: currentvalue of d1a0 is +event 43: decoded custom function, currentvalue of d1a0 is 20,1,2,14,1,40a,1,47, +event 44: EOS prop d1a0 info record, datasize is 348 +event 44: currentvalue of d1a0 is \ +event 44: decoded custom function, currentvalue of d1a0 is 15c,1,4,150,6,70c,40,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,fe,ff,0,3,70,30,0,0,0,0,0,0,0,0,0,0,0,14,50,0,0,0,0,7,3,0,ff,ff,ff,0,ff,ff,ff,f,706,1,0,70f,2,0,2,80e,1,0,813,1,0,814,1,0, +event 45: EOS prop d1a1 info record, datasize is 8 +event 45: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 46: EOS prop d1a8 info record, datasize is 4 +event 46: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 46: currentvalue of d1a8 is 1 +event 47: EOS prop d1a7 info record, datasize is 40 +event 47: Unknown EOS property d1a7, datasize is 40 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 +event 48: EOS prop d1ab info record, datasize is 4 +event 48: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 48: currentvalue of d1ab is 0 +event 49: EOS prop d1b0 info record, datasize is 4 +event 49: currentvalue of d1b0 is 0 +event 50: EOS prop d1b1 info record, datasize is 4 +event 50: currentvalue of d1b1 is 1 +event 51: EOS prop d1b2 info record, datasize is 4 +event 51: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 51: currentvalue of d1b2 is 0 +event 52: EOS prop d1b3 info record, datasize is 4 +event 52: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 52: currentvalue of d1b3 is 0 +event 53: EOS prop d1b4 info record, datasize is 4 +event 53: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 0 +event 53: currentvalue of d1b4 is 0 +event 54: EOS prop d1b5 info record, datasize is 48 +event 54: Unknown EOS property d1b5, datasize is 48, using uint32 + 0: 0x 30 + 1: 0x 0 + 2: 0x 0 + 3: 0x 0 + 4: 0x 0 + 5: 0x 0 + 6: 0x 0 + 7: 0x 0 + 8: 0x 0 + 9: 0x 0 + 10: 0x 4000400 + 11: 0x 4000400 +event 54: currentvalue of d1b5 is 30 +event 55: EOS prop d1b6 info record, datasize is 4 +event 55: Unknown EOS property d1b6, datasize is 4, using uint32 + 0: 0x 1450 +event 55: currentvalue of d1b6 is 1450 +event 56: EOS prop d1a9 info record, datasize is 4 +event 56: currentvalue of d1a9 is 2 +event 57: EOS prop d146 info record, datasize is 48 +event 57: Unknown EOS property d146, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: de + 41: 01 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 55 + 47: 02 +event 58: EOS prop d1aa info record, datasize is 4 +event 58: Unknown EOS property d1aa, datasize is 4, using uint32 + 0: 0x 0 +event 58: currentvalue of d1aa is 0 +event 59: EOS prop d11e info record, datasize is 4 +event 59: currentvalue of d11e is 10001 +event 60: EOS prop d11f info record, datasize is 4 +event 60: currentvalue of d11f is 50000000 +event 61: EOS prop d1d9 info record, datasize is 4 +event 61: currentvalue of d1d9 is 0 +event 62: EOS prop d1d5 info record, datasize is 4 +event 62: Unknown EOS property d1d5, datasize is 4, using uint32 + 0: 0x 0 +event 62: currentvalue of d1d5 is 0 +event 63: EOS prop d1ba info record, datasize is 4 +event 63: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 1 +event 63: currentvalue of d1ba is 1 +event 64: EOS prop d1cd info record, datasize is 36 +event 64: Unknown EOS property d1cd, datasize is 36 + 0: 24 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: b5 + 13: 0b + 14: 00 + 15: 00 + 16: 0f + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 +event 65: EOS prop d1bc info record, datasize is 4 +event 65: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 65: currentvalue of d1bc is 1 +event 66: EOS prop d1b8 info record, datasize is 4 +event 66: currentvalue of d1b8 is 0 +event 67: EOS prop d1d3 info record, datasize is 534 +d1d3 version 2 +d1d3 size 534 +d1d3 focus points in struct 61, in use 61 +event 67: decoded focus info, currentvalue of d1d3 is eosversion=2,size=8688x5792,size2=8688x5792,points={{-435,652,283,283},{-966,652,283,283},{-1425,652,283,283},{-1860,652,283,283},{-2295,652,283,283},{435,978,283,283},{0,978,283,283},{-435,978,283,283},{-1860,326,283,283},{-2295,326,283,283},{2295,652,283,283},{1860,652,283,283},{1425,652,283,283},{966,652,283,283},{435,652,283,283},{0,652,283,283},{1860,326,283,283},{1425,326,283,283},{966,326,283,283},{435,326,283,283},{0,326,283,283},{-435,326,283,283},{-966,326,283,283},{-1425,326,283,283},{435,0,283,283},{0,0,283,283},{-435,0,283,283},{-966,0,283,283},{-1425,0,283,283},{-1860,0,283,283},{-2295,0,283,283},{2295,326,283,283},{-966,-326,283,283},{-1425,-326,283,283},{-1860,-326,283,283},{-2295,-326,283,283},{2295,0,283,283},{1860,0,283,283},{1425,0,283,283},{966,0,283,283},{-2295,-652,283,283},{2295,-326,283,283},{1860,-326,283,283},{1425,-326,283,283},{966,-326,283,283},{435,-326,283,283},{0,-326,283,283},{-435,-326,283,283},{1425,-652,283,283},{966,-652,283,283},{435,-652,283,283},{0,-652,283,283},{-435,-652,283,283},{-966,-652,283,283},{-1425,-652,283,283},{-1860,-652,283,283},{435,-978,283,283},{0,-978,283,283},{-435,-978,283,283},{2295,-652,283,283},{1860,-652,283,283}},select={},unknown={00000002000000000000000000000000ffff} +event 68: EOS prop d1d8 info record, datasize is 64 +event 68: currentvalue of d1d8 is EF16-35mm f/2.8L III USM +event 69: EOS prop d1b7 info record, datasize is 4 +event 69: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 0 +event 69: currentvalue of d1b7 is 0 +event 70: EOS prop d1cb info record, datasize is 52 +event 70: Unknown EOS property d1cb, datasize is 52 + 0: 34 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 03 + 19: 80 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 48 + 29: 00 + 30: 00 + 31: 00 + 32: 49 + 33: 00 + 34: 03 + 35: 80 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 03 + 41: 00 + 42: 00 + 43: 00 + 44: 4b + 45: 00 + 46: 00 + 47: 00 + 48: 4c + 49: 00 + 50: 03 + 51: 80 +event 71: EOS prop d1db info record, datasize is 14 +event 71: Unknown EOS property d1db, datasize is 14 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 03 + 5: 00 + 6: 00 + 7: 00 + 8: 2f + 9: 00 + 10: 00 + 11: 00 + 12: 28 + 13: 00 +event 72: EOS prop d1dc info record, datasize is 4 +event 72: currentvalue of d1dc is 0 +event 73: EOS prop d1a3 info record, datasize is 4 +event 73: Unknown EOS property d1a3, datasize is 4, using uint32 + 0: 0x 0 +event 73: currentvalue of d1a3 is 0 +event 74: EOS prop d1a4 info record, datasize is 484 +event 74: Unknown EOS property d1a4, datasize is 484 + 0: e4 + 1: 01 + 2: 00 + 3: 00 + 4: 30 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 31 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 32 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 00 + 97: 00 + 98: 00 + 99: 00 + 100: 33 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 34 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 35 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 36 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 00 + 209: 00 + 210: 00 + 211: 00 + 212: 00 + 213: 00 + 214: 00 + 215: 00 + 216: 00 + 217: 00 + 218: 00 + 219: 00 + 220: 00 + 221: 00 + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 37 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 38 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: 00 + 273: 00 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: 00 + 281: 00 + 282: 00 + 283: 00 + 284: 00 + 285: 00 + 286: 00 + 287: 00 + 288: 00 + 289: 00 + 290: 00 + 291: 00 + 292: 39 + 293: 00 + 294: 00 + 295: 00 + 296: 00 + 297: 00 + 298: 00 + 299: 00 + 300: 00 + 301: 00 + 302: 00 + 303: 00 + 304: 00 + 305: 00 + 306: 00 + 307: 00 + 308: 00 + 309: 00 + 310: 00 + 311: 00 + 312: 00 + 313: 00 + 314: 00 + 315: 00 + 316: 00 + 317: 00 + 318: 00 + 319: 00 + 320: 00 + 321: 00 + 322: 00 + 323: 00 + 324: 31 + 325: 30 + 326: 00 + 327: 00 + 328: 00 + 329: 00 + 330: 00 + 331: 00 + 332: 00 + 333: 00 + 334: 00 + 335: 00 + 336: 00 + 337: 00 + 338: 00 + 339: 00 + 340: 00 + 341: 00 + 342: 00 + 343: 00 + 344: 00 + 345: 00 + 346: 00 + 347: 00 + 348: 00 + 349: 00 + 350: 00 + 351: 00 + 352: 00 + 353: 00 + 354: 00 + 355: 00 + 356: 31 + 357: 31 + 358: 00 + 359: 00 + 360: 00 + 361: 00 + 362: 00 + 363: 00 + 364: 00 + 365: 00 + 366: 00 + 367: 00 + 368: 00 + 369: 00 + 370: 00 + 371: 00 + 372: 00 + 373: 00 + 374: 00 + 375: 00 + 376: 00 + 377: 00 + 378: 00 + 379: 00 + 380: 00 + 381: 00 + 382: 00 + 383: 00 + 384: 00 + 385: 00 + 386: 00 + 387: 00 + 388: 31 + 389: 32 + 390: 00 + 391: 00 + 392: 00 + 393: 00 + 394: 00 + 395: 00 + 396: 00 + 397: 00 + 398: 00 + 399: 00 + 400: 00 + 401: 00 + 402: 00 + 403: 00 + 404: 00 + 405: 00 + 406: 00 + 407: 00 + 408: 00 + 409: 00 + 410: 00 + 411: 00 + 412: 00 + 413: 00 + 414: 00 + 415: 00 + 416: 00 + 417: 00 + 418: 00 + 419: 00 + 420: 31 + 421: 33 + 422: 00 + 423: 00 + 424: 00 + 425: 00 + 426: 00 + 427: 00 + 428: 00 + 429: 00 + 430: 00 + 431: 00 + 432: 00 + 433: 00 + 434: 00 + 435: 00 + 436: 00 + 437: 00 + 438: 00 + 439: 00 + 440: 00 + 441: 00 + 442: 00 + 443: 00 + 444: 00 + 445: 00 + 446: 00 + 447: 00 + 448: 00 + 449: 00 + 450: 00 + 451: 00 + 452: 31 + 453: 34 + 454: 00 + 455: 00 + 456: 00 + 457: 00 + 458: 00 + 459: 00 + 460: 00 + 461: 00 + 462: 00 + 463: 00 + 464: 00 + 465: 00 + 466: 00 + 467: 00 + 468: 00 + 469: 00 + 470: 00 + 471: 00 + 472: 00 + 473: 00 + 474: 00 + 475: 00 + 476: 00 + 477: 00 + 478: 00 + 479: 00 + 480: 00 + 481: 00 + 482: 00 + 483: 00 +event 75: EOS prop d1df info record, datasize is 4 +event 75: Unknown EOS property d1df, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 76: EOS prop d1bd info record, datasize is 4 +event 76: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 77: EOS prop d1c1 info record, datasize is 4 +event 77: Unknown EOS property d1c1, datasize is 4, using uint32 + 0: 0x 5010000 +event 77: currentvalue of d1c1 is 5010000 +event 78: EOS prop d1c0 info record, datasize is 4 +event 78: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 79: EOS prop d1bf info record, datasize is 4 +event 79: Unknown EOS property d1bf, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 80: EOS prop d1c4 info record, datasize is 4 +event 80: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 81: EOS prop d1c2 info record, datasize is 4 +event 81: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 82: EOS prop d1c5 info record, datasize is 4 +event 82: Unknown EOS property d1c5, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 83: EOS prop d194 info record, datasize is 4 +event 83: currentvalue of d194 is 0 +event 84: EOS prop d195 info record, datasize is 4 +event 84: Unknown EOS property d195, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 85: EOS prop d196 info record, datasize is 4 +event 85: Unknown EOS property d196, datasize is 4 + 0: 2f + 1: 00 + 2: 00 + 3: 00 +event 86: EOS prop d197 info record, datasize is 4 +event 86: Unknown EOS property d197, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 87: EOS prop d198 info record, datasize is 4 +event 87: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 88: EOS prop d1dd info record, datasize is 4 +event 88: currentvalue of d1dd is 2ef +event 89: EOS prop d1c7 info record, datasize is 4 +event 89: Unknown EOS property d1c7, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 90: EOS prop d199 info record, datasize is 4 +event 90: currentvalue of d199 is b +event 91: EOS prop d138 info record, datasize is 4 +event 91: Unknown EOS property d138, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 92: EOS prop d139 info record, datasize is 12 +event 92: Unknown EOS property d139, datasize is 12 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 93: EOS prop d13a info record, datasize is 4 +event 93: currentvalue of d13a is 0 +event 94: EOS prop d13b info record, datasize is 4 +event 94: Unknown EOS property d13b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 95: EOS prop d13c info record, datasize is 4 +event 95: currentvalue of d13c is 10483f3f +event 96: EOS prop d13d info record, datasize is 24 +event 96: Unknown EOS property d13d, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 97: EOS prop d14d info record, datasize is 4 +event 97: Unknown EOS property d14d, datasize is 4 + 0: 3c + 1: 00 + 2: 00 + 3: 00 +event 98: EOS prop d19a info record, datasize is 4 +event 98: Unknown EOS property d19a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 99: EOS prop d19c info record, datasize is 4 +event 99: Unknown EOS property d19c, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 100: EOS prop d178 info record, datasize is 4 +event 100: currentvalue of d178 is 0 +event 101: EOS prop d179 info record, datasize is 4 +event 101: Unknown EOS property d179, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 102: EOS prop d17a info record, datasize is 1 +event 102: Unknown EOS property d17a, datasize is 1 + 0: 01 +event 103: EOS prop d17b info record, datasize is 4 +event 103: Unknown EOS property d17b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 104: EOS prop d1c9 info record, datasize is 4 +event 104: currentvalue of d1c9 is 0 +event 105: EOS prop d19f info record, datasize is 4 +event 105: Unknown EOS property d19f, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 106: EOS prop d175 info record, datasize is 4 +event 106: Unknown EOS property d175, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 107: EOS prop d14c info record, datasize is 4 +event 107: Unknown EOS property d14c, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 108: EOS prop d14b info record, datasize is 4 +event 108: Unknown EOS property d14b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 109: EOS prop d13e info record, datasize is 20 +event 109: Unknown EOS property d13e, datasize is 20 + 0: 14 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 01 + 17: 00 + 18: 00 + 19: 00 +event 110: EOS prop d1c6 info record, datasize is 4 +event 110: Unknown EOS property d1c6, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 111: EOS prop d105 desc record, datasize 0, propxtype 1 +event 111: propxtype is 1 for d105, unhandled, size 20 +event 112: EOS prop d108 desc record, datasize 12, propxtype 3 +event 112: propxtype is 3, prop is 0xd108, data type is 0x0004, propxcnt is 3. +event 112: suppval[0] of d108 is 0x0. +event 112: suppval[1] of d108 is 0x2. +event 112: suppval[2] of d108 is 0x1. +event 113: EOS prop d106 desc record, datasize 28, propxtype 3 +event 113: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 7. +event 113: suppval[0] of d106 is 0x0. +event 113: suppval[1] of d106 is 0x4. +event 113: suppval[2] of d106 is 0x5. +event 113: suppval[3] of d106 is 0x13. +event 113: suppval[4] of d106 is 0x14. +event 113: suppval[5] of d106 is 0x10. +event 113: suppval[6] of d106 is 0x11. +event 114: EOS prop d107 desc record, datasize 16, propxtype 3 +event 114: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 4. +event 114: suppval[0] of d107 is 0x3. +event 114: suppval[1] of d107 is 0x4. +event 114: suppval[2] of d107 is 0x1. +event 114: suppval[3] of d107 is 0x5. +event 115: EOS prop d109 desc record, datasize 40, propxtype 3 +event 115: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 10. +event 115: suppval[0] of d109 is 0x0. +event 115: suppval[1] of d109 is 0x17. +event 115: suppval[2] of d109 is 0x1. +event 115: suppval[3] of d109 is 0x8. +event 115: suppval[4] of d109 is 0x2. +event 115: suppval[5] of d109 is 0x3. +event 115: suppval[6] of d109 is 0x4. +event 115: suppval[7] of d109 is 0x5. +event 115: suppval[8] of d109 is 0x6. +event 115: suppval[9] of d109 is 0x9. +event 116: EOS prop d10a desc record, datasize 304, propxtype 3 +event 116: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +event 116: suppval[0] of d10a is 0x9c4. +event 116: suppval[1] of d10a is 0xa28. +event 116: suppval[2] of d10a is 0xa8c. +event 116: suppval[3] of d10a is 0xaf0. +event 116: suppval[4] of d10a is 0xb54. +event 116: suppval[5] of d10a is 0xbb8. +event 116: suppval[6] of d10a is 0xc1c. +event 116: suppval[7] of d10a is 0xc80. +event 116: suppval[8] of d10a is 0xce4. +event 116: suppval[9] of d10a is 0xd48. +event 116: suppval[10] of d10a is 0xdac. +event 116: suppval[11] of d10a is 0xe10. +event 116: suppval[12] of d10a is 0xe74. +event 116: suppval[13] of d10a is 0xed8. +event 116: suppval[14] of d10a is 0xf3c. +event 116: suppval[15] of d10a is 0xfa0. +event 116: suppval[16] of d10a is 0x1004. +event 116: suppval[17] of d10a is 0x1068. +event 116: suppval[18] of d10a is 0x10cc. +event 116: suppval[19] of d10a is 0x1130. +event 116: suppval[20] of d10a is 0x1194. +event 116: suppval[21] of d10a is 0x11f8. +event 116: suppval[22] of d10a is 0x125c. +event 116: suppval[23] of d10a is 0x12c0. +event 116: suppval[24] of d10a is 0x1324. +event 116: suppval[25] of d10a is 0x1388. +event 116: suppval[26] of d10a is 0x13ec. +event 116: suppval[27] of d10a is 0x1450. +event 116: suppval[28] of d10a is 0x14b4. +event 116: suppval[29] of d10a is 0x1518. +event 116: suppval[30] of d10a is 0x157c. +event 116: suppval[31] of d10a is 0x15e0. +event 116: suppval[32] of d10a is 0x1644. +event 116: suppval[33] of d10a is 0x16a8. +event 116: suppval[34] of d10a is 0x170c. +event 116: suppval[35] of d10a is 0x1770. +event 116: suppval[36] of d10a is 0x17d4. +event 116: suppval[37] of d10a is 0x1838. +event 116: suppval[38] of d10a is 0x189c. +event 116: suppval[39] of d10a is 0x1900. +event 116: suppval[40] of d10a is 0x1964. +event 116: suppval[41] of d10a is 0x19c8. +event 116: suppval[42] of d10a is 0x1a2c. +event 116: suppval[43] of d10a is 0x1a90. +event 116: suppval[44] of d10a is 0x1af4. +event 116: suppval[45] of d10a is 0x1b58. +event 116: suppval[46] of d10a is 0x1bbc. +event 116: suppval[47] of d10a is 0x1c20. +event 116: suppval[48] of d10a is 0x1c84. +event 116: suppval[49] of d10a is 0x1ce8. +event 116: suppval[50] of d10a is 0x1d4c. +event 116: suppval[51] of d10a is 0x1db0. +event 116: suppval[52] of d10a is 0x1e14. +event 116: suppval[53] of d10a is 0x1e78. +event 116: suppval[54] of d10a is 0x1edc. +event 116: suppval[55] of d10a is 0x1f40. +event 116: suppval[56] of d10a is 0x1fa4. +event 116: suppval[57] of d10a is 0x2008. +event 116: suppval[58] of d10a is 0x206c. +event 116: suppval[59] of d10a is 0x20d0. +event 116: suppval[60] of d10a is 0x2134. +event 116: suppval[61] of d10a is 0x2198. +event 116: suppval[62] of d10a is 0x21fc. +event 116: suppval[63] of d10a is 0x2260. +event 116: suppval[64] of d10a is 0x22c4. +event 116: suppval[65] of d10a is 0x2328. +event 116: suppval[66] of d10a is 0x238c. +event 116: suppval[67] of d10a is 0x23f0. +event 116: suppval[68] of d10a is 0x2454. +event 116: suppval[69] of d10a is 0x24b8. +event 116: suppval[70] of d10a is 0x251c. +event 116: suppval[71] of d10a is 0x2580. +event 116: suppval[72] of d10a is 0x25e4. +event 116: suppval[73] of d10a is 0x2648. +event 116: suppval[74] of d10a is 0x26ac. +event 116: suppval[75] of d10a is 0x2710. +event 117: EOS prop d10b desc record, datasize 76, propxtype 3 +event 117: propxtype is 3, prop is 0xd10b, data type is 0x0005, propxcnt is 19. +event 117: suppval[0] of d10b is 0xfffffff7. +event 117: suppval[1] of d10b is 0xfffffff8. +event 117: suppval[2] of d10b is 0xfffffff9. +event 117: suppval[3] of d10b is 0xfffffffa. +event 117: suppval[4] of d10b is 0xfffffffb. +event 117: suppval[5] of d10b is 0xfffffffc. +event 117: suppval[6] of d10b is 0xfffffffd. +event 117: suppval[7] of d10b is 0xfffffffe. +event 117: suppval[8] of d10b is 0xffffffff. +event 117: suppval[9] of d10b is 0x0. +event 117: suppval[10] of d10b is 0x1. +event 117: suppval[11] of d10b is 0x2. +event 117: suppval[12] of d10b is 0x3. +event 117: suppval[13] of d10b is 0x4. +event 117: suppval[14] of d10b is 0x5. +event 117: suppval[15] of d10b is 0x6. +event 117: suppval[16] of d10b is 0x7. +event 117: suppval[17] of d10b is 0x8. +event 117: suppval[18] of d10b is 0x9. +event 118: EOS prop d10c desc record, datasize 76, propxtype 3 +event 118: propxtype is 3, prop is 0xd10c, data type is 0x0005, propxcnt is 19. +event 118: suppval[0] of d10c is 0xfffffff7. +event 118: suppval[1] of d10c is 0xfffffff8. +event 118: suppval[2] of d10c is 0xfffffff9. +event 118: suppval[3] of d10c is 0xfffffffa. +event 118: suppval[4] of d10c is 0xfffffffb. +event 118: suppval[5] of d10c is 0xfffffffc. +event 118: suppval[6] of d10c is 0xfffffffd. +event 118: suppval[7] of d10c is 0xfffffffe. +event 118: suppval[8] of d10c is 0xffffffff. +event 118: suppval[9] of d10c is 0x0. +event 118: suppval[10] of d10c is 0x1. +event 118: suppval[11] of d10c is 0x2. +event 118: suppval[12] of d10c is 0x3. +event 118: suppval[13] of d10c is 0x4. +event 118: suppval[14] of d10c is 0x5. +event 118: suppval[15] of d10c is 0x6. +event 118: suppval[16] of d10c is 0x7. +event 118: suppval[17] of d10c is 0x8. +event 118: suppval[18] of d10c is 0x9. +event 119: EOS prop d10d desc record, datasize 16, propxtype 3 +event 119: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +event 119: suppval[0] of d10d is 0x0. +event 119: suppval[1] of d10d is 0x1. +event 119: suppval[2] of d10d is 0x2. +event 119: suppval[3] of d10d is 0x3. +event 120: EOS prop d10e desc record, datasize 16, propxtype 3 +event 120: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +event 120: suppval[0] of d10e is 0x0. +event 120: suppval[1] of d10e is 0x1. +event 120: suppval[2] of d10e is 0x2. +event 120: suppval[3] of d10e is 0x3. +event 121: EOS prop d10f desc record, datasize 8, propxtype 3 +event 121: propxtype is 3, prop is 0xd10f, data type is 0x0004, propxcnt is 2. +event 121: suppval[0] of d10f is 0x1. +event 121: suppval[1] of d10f is 0x2. +event 122: EOS prop d11b desc record, datasize 0, propxtype 1 +event 122: propxtype is 1 for d11b, unhandled, size 20 +event 123: EOS prop d114 desc record, datasize 0, propxtype 1 +event 123: propxtype is 1 for d114, unhandled, size 20 +event 124: EOS prop d116 desc record, datasize 0, propxtype 1 +event 124: propxtype is 1 for d116, unhandled, size 20 +event 125: EOS prop d119 desc record, datasize 0, propxtype 1 +event 125: propxtype is 1 for d119, unhandled, size 20 +event 126: EOS prop d11a desc record, datasize 0, propxtype 1 +event 126: propdesc d11a, default value not found. +event 127: EOS prop d110 desc record, datasize 44, propxtype 3 +event 127: propxtype is 3, prop is 0xd110, data type is 0x0002, propxcnt is 11. +event 127: suppval[0] of d110 is 0x87. +event 127: suppval[1] of d110 is 0x81. +event 127: suppval[2] of d110 is 0x82. +event 127: suppval[3] of d110 is 0x83. +event 127: suppval[4] of d110 is 0x88. +event 127: suppval[5] of d110 is 0x84. +event 127: suppval[6] of d110 is 0x85. +event 127: suppval[7] of d110 is 0x86. +event 127: suppval[8] of d110 is 0x21. +event 127: suppval[9] of d110 is 0x22. +event 127: suppval[10] of d110 is 0x23. +event 128: EOS prop d115 desc record, datasize 0, propxtype 7 +event 128: propdesc d115, default value not found. +event 129: EOS prop d101 desc record, datasize 76, propxtype 3 +event 129: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 19. +event 129: suppval[0] of d101 is 0x20. +event 129: suppval[1] of d101 is 0x23. +event 129: suppval[2] of d101 is 0x25. +event 129: suppval[3] of d101 is 0x28. +event 129: suppval[4] of d101 is 0x2b. +event 129: suppval[5] of d101 is 0x2d. +event 129: suppval[6] of d101 is 0x30. +event 129: suppval[7] of d101 is 0x33. +event 129: suppval[8] of d101 is 0x35. +event 129: suppval[9] of d101 is 0x38. +event 129: suppval[10] of d101 is 0x3b. +event 129: suppval[11] of d101 is 0x3d. +event 129: suppval[12] of d101 is 0x40. +event 129: suppval[13] of d101 is 0x43. +event 129: suppval[14] of d101 is 0x45. +event 129: suppval[15] of d101 is 0x48. +event 129: suppval[16] of d101 is 0x4b. +event 129: suppval[17] of d101 is 0x4d. +event 129: suppval[18] of d101 is 0x50. +event 130: EOS prop d102 desc record, datasize 0, propxtype 3 +event 131: EOS prop d103 desc record, datasize 80, propxtype 3 +event 131: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 20. +event 131: suppval[0] of d103 is 0x0. +event 131: suppval[1] of d103 is 0x48. +event 131: suppval[2] of d103 is 0x4b. +event 131: suppval[3] of d103 is 0x4d. +event 131: suppval[4] of d103 is 0x50. +event 131: suppval[5] of d103 is 0x53. +event 131: suppval[6] of d103 is 0x55. +event 131: suppval[7] of d103 is 0x58. +event 131: suppval[8] of d103 is 0x5b. +event 131: suppval[9] of d103 is 0x5d. +event 131: suppval[10] of d103 is 0x60. +event 131: suppval[11] of d103 is 0x63. +event 131: suppval[12] of d103 is 0x65. +event 131: suppval[13] of d103 is 0x68. +event 131: suppval[14] of d103 is 0x6b. +event 131: suppval[15] of d103 is 0x6d. +event 131: suppval[16] of d103 is 0x70. +event 131: suppval[17] of d103 is 0x73. +event 131: suppval[18] of d103 is 0x75. +event 131: suppval[19] of d103 is 0x78. +event 132: EOS prop d104 desc record, datasize 124, propxtype 3 +event 132: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 31. +event 132: suppval[0] of d104 is 0xd8. +event 132: suppval[1] of d104 is 0xdb. +event 132: suppval[2] of d104 is 0xdd. +event 132: suppval[3] of d104 is 0xe0. +event 132: suppval[4] of d104 is 0xe3. +event 132: suppval[5] of d104 is 0xe5. +event 132: suppval[6] of d104 is 0xe8. +event 132: suppval[7] of d104 is 0xeb. +event 132: suppval[8] of d104 is 0xed. +event 132: suppval[9] of d104 is 0xf0. +event 132: suppval[10] of d104 is 0xf3. +event 132: suppval[11] of d104 is 0xf5. +event 132: suppval[12] of d104 is 0xf8. +event 132: suppval[13] of d104 is 0xfb. +event 132: suppval[14] of d104 is 0xfd. +event 132: suppval[15] of d104 is 0x0. +event 132: suppval[16] of d104 is 0x3. +event 132: suppval[17] of d104 is 0x5. +event 132: suppval[18] of d104 is 0x8. +event 132: suppval[19] of d104 is 0xb. +event 132: suppval[20] of d104 is 0xd. +event 132: suppval[21] of d104 is 0x10. +event 132: suppval[22] of d104 is 0x13. +event 132: suppval[23] of d104 is 0x15. +event 132: suppval[24] of d104 is 0x18. +event 132: suppval[25] of d104 is 0x1b. +event 132: suppval[26] of d104 is 0x1d. +event 132: suppval[27] of d104 is 0x20. +event 132: suppval[28] of d104 is 0x23. +event 132: suppval[29] of d104 is 0x25. +event 132: suppval[30] of d104 is 0x28. +event 133: EOS prop d11d desc record, datasize 0, propxtype 1 +event 133: propxtype is 1 for d11d, unhandled, size 20 +event 134: EOS prop d111 desc record, datasize 0, propxtype 1 +event 134: propxtype is 1 for d111, unhandled, size 20 +event 135: EOS prop d112 desc record, datasize 0, propxtype 1 +event 135: propxtype is 1 for d112, unhandled, size 20 +event 136: EOS prop d113 desc record, datasize 0, propxtype 7 +event 136: propxtype is 7 for d113, unhandled, size 20 +event 137: EOS prop d17c desc record, datasize 0, propxtype 7 +event 137: propxtype is 7 for d17c, unhandled, size 20 +event 138: EOS prop d17d desc record, datasize 396, propxtype 3 +event 138: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +event 138: data type 0x0000 of d17d unhandled, size 12, raw values: + 0: 0x c + 1: 0x 21 + 2: 0x 30c + 3: 0x c + 4: 0x 1 + 5: 0x 2fd + 6: 0x c + 7: 0x 2 + 8: 0x 2d0 + 9: 0x c + 10: 0x 3 + 11: 0x 294 + 12: 0x c + 13: 0x 4 + 14: 0x 258 + 15: 0x c + 16: 0x 5 + 17: 0x 23a + 18: 0x c + 19: 0x 6 + 20: 0x 21c + 21: 0x c + 22: 0x 7 + 23: 0x 1e0 + 24: 0x c + 25: 0x 8 + 26: 0x 1a4 + 27: 0x c + 28: 0x 9 + 29: 0x 186 + 30: 0x c + 31: 0x a + 32: 0x 168 + 33: 0x c + 34: 0x b + 35: 0x 159 + 36: 0x c + 37: 0x c + 38: 0x 14a + 39: 0x c + 40: 0x d + 41: 0x 12c + 42: 0x c + 43: 0x e + 44: 0x 10e + 45: 0x c + 46: 0x 11 + 47: 0x f0 + 48: 0x c + 49: 0x 10 + 50: 0x d2 + 51: 0x c + 52: 0x 22 + 53: 0x b4 + 54: 0x c + 55: 0x 12 + 56: 0x 78 + 57: 0x c + 58: 0x 13 + 59: 0x 3c + 60: 0x c + 61: 0x 14 + 62: 0x 0 + 63: 0x c + 64: 0x 15 + 65: 0xffffffc4 + 66: 0x c + 67: 0x 16 + 68: 0xffffff88 + 69: 0x c + 70: 0x 17 + 71: 0xffffff4c + 72: 0x c + 73: 0x 18 + 74: 0xffffff2e + 75: 0x c + 76: 0x 19 + 77: 0xffffff10 + 78: 0x c + 79: 0x 1a + 80: 0xfffffef2 + 81: 0x c + 82: 0x 1b + 83: 0xfffffed4 + 84: 0x c + 85: 0x 1c + 86: 0xfffffe98 + 87: 0x c + 88: 0x 1d + 89: 0xfffffe5c + 90: 0x c + 91: 0x 1e + 92: 0xfffffe20 + 93: 0x c + 94: 0x 1f + 95: 0xfffffde4 + 96: 0x c + 97: 0x 20 + 98: 0xfffffda8 +event 139: EOS prop d17e desc record, datasize 8, propxtype 3 +event 139: propxtype is 3, prop is 0xd17e, data type is 0x0006, propxcnt is 2. +event 139: suppval[0] of d17e is 0x0. +event 139: suppval[1] of d17e is 0x1. +event 140: EOS prop d120 desc record, datasize 1340, propxtype 3 +event 140: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 43. +event 140: suppval[0] of d120 is 0x300. +event 140: suppval[1] of d120 is 0x200. +event 140: suppval[2] of d120 is 0x5300. +event 140: suppval[3] of d120 is 0x5200. +event 140: suppval[4] of d120 is 0x6300. +event 140: suppval[5] of d120 is 0x6200. +event 140: suppval[6] of d120 is 0xd300. +event 140: suppval[7] of d120 is 0xd200. +event 140: suppval[8] of d120 is 0xe300. +event 140: suppval[9] of d120 is 0xf300. +event 140: suppval[10] of d120 is 0x403. +event 140: suppval[11] of d120 is 0x402. +event 140: suppval[12] of d120 is 0x453. +event 140: suppval[13] of d120 is 0x452. +event 140: suppval[14] of d120 is 0x463. +event 140: suppval[15] of d120 is 0x462. +event 140: suppval[16] of d120 is 0x4d3. +event 140: suppval[17] of d120 is 0x4d2. +event 140: suppval[18] of d120 is 0x4e3. +event 140: suppval[19] of d120 is 0x4f3. +event 140: suppval[20] of d120 is 0x1403. +event 140: suppval[21] of d120 is 0x1402. +event 140: suppval[22] of d120 is 0x1453. +event 140: suppval[23] of d120 is 0x1452. +event 140: suppval[24] of d120 is 0x1463. +event 140: suppval[25] of d120 is 0x1462. +event 140: suppval[26] of d120 is 0x14d3. +event 140: suppval[27] of d120 is 0x14d2. +event 140: suppval[28] of d120 is 0x14e3. +event 140: suppval[29] of d120 is 0x14f3. +event 140: suppval[30] of d120 is 0x2403. +event 140: suppval[31] of d120 is 0x2402. +event 140: suppval[32] of d120 is 0x2453. +event 140: suppval[33] of d120 is 0x2452. +event 140: suppval[34] of d120 is 0x2463. +event 140: suppval[35] of d120 is 0x2462. +event 140: suppval[36] of d120 is 0x24d3. +event 140: suppval[37] of d120 is 0x24d2. +event 140: suppval[38] of d120 is 0x24e3. +event 140: suppval[39] of d120 is 0x24f3. +event 140: suppval[40] of d120 is 0x400. +event 140: suppval[41] of d120 is 0x1400. +event 140: suppval[42] of d120 is 0x2400. +event 141: EOS prop d121 desc record, datasize 1340, propxtype 3 +event 141: propxtype is 3, prop is 0xd121, data type is 0x0004, propxcnt is 43. +event 141: suppval[0] of d121 is 0x300. +event 141: suppval[1] of d121 is 0x200. +event 141: suppval[2] of d121 is 0x5300. +event 141: suppval[3] of d121 is 0x5200. +event 141: suppval[4] of d121 is 0x6300. +event 141: suppval[5] of d121 is 0x6200. +event 141: suppval[6] of d121 is 0xd300. +event 141: suppval[7] of d121 is 0xd200. +event 141: suppval[8] of d121 is 0xe300. +event 141: suppval[9] of d121 is 0xf300. +event 141: suppval[10] of d121 is 0x403. +event 141: suppval[11] of d121 is 0x402. +event 141: suppval[12] of d121 is 0x453. +event 141: suppval[13] of d121 is 0x452. +event 141: suppval[14] of d121 is 0x463. +event 141: suppval[15] of d121 is 0x462. +event 141: suppval[16] of d121 is 0x4d3. +event 141: suppval[17] of d121 is 0x4d2. +event 141: suppval[18] of d121 is 0x4e3. +event 141: suppval[19] of d121 is 0x4f3. +event 141: suppval[20] of d121 is 0x1403. +event 141: suppval[21] of d121 is 0x1402. +event 141: suppval[22] of d121 is 0x1453. +event 141: suppval[23] of d121 is 0x1452. +event 141: suppval[24] of d121 is 0x1463. +event 141: suppval[25] of d121 is 0x1462. +event 141: suppval[26] of d121 is 0x14d3. +event 141: suppval[27] of d121 is 0x14d2. +event 141: suppval[28] of d121 is 0x14e3. +event 141: suppval[29] of d121 is 0x14f3. +event 141: suppval[30] of d121 is 0x2403. +event 141: suppval[31] of d121 is 0x2402. +event 141: suppval[32] of d121 is 0x2453. +event 141: suppval[33] of d121 is 0x2452. +event 141: suppval[34] of d121 is 0x2463. +event 141: suppval[35] of d121 is 0x2462. +event 141: suppval[36] of d121 is 0x24d3. +event 141: suppval[37] of d121 is 0x24d2. +event 141: suppval[38] of d121 is 0x24e3. +event 141: suppval[39] of d121 is 0x24f3. +event 141: suppval[40] of d121 is 0x400. +event 141: suppval[41] of d121 is 0x1400. +event 141: suppval[42] of d121 is 0x2400. +event 142: EOS prop d122 desc record, datasize 1340, propxtype 3 +event 142: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 43. +event 142: suppval[0] of d122 is 0x300. +event 142: suppval[1] of d122 is 0x200. +event 142: suppval[2] of d122 is 0x5300. +event 142: suppval[3] of d122 is 0x5200. +event 142: suppval[4] of d122 is 0x6300. +event 142: suppval[5] of d122 is 0x6200. +event 142: suppval[6] of d122 is 0xd300. +event 142: suppval[7] of d122 is 0xd200. +event 142: suppval[8] of d122 is 0xe300. +event 142: suppval[9] of d122 is 0xf300. +event 142: suppval[10] of d122 is 0x403. +event 142: suppval[11] of d122 is 0x402. +event 142: suppval[12] of d122 is 0x453. +event 142: suppval[13] of d122 is 0x452. +event 142: suppval[14] of d122 is 0x463. +event 142: suppval[15] of d122 is 0x462. +event 142: suppval[16] of d122 is 0x4d3. +event 142: suppval[17] of d122 is 0x4d2. +event 142: suppval[18] of d122 is 0x4e3. +event 142: suppval[19] of d122 is 0x4f3. +event 142: suppval[20] of d122 is 0x1403. +event 142: suppval[21] of d122 is 0x1402. +event 142: suppval[22] of d122 is 0x1453. +event 142: suppval[23] of d122 is 0x1452. +event 142: suppval[24] of d122 is 0x1463. +event 142: suppval[25] of d122 is 0x1462. +event 142: suppval[26] of d122 is 0x14d3. +event 142: suppval[27] of d122 is 0x14d2. +event 142: suppval[28] of d122 is 0x14e3. +event 142: suppval[29] of d122 is 0x14f3. +event 142: suppval[30] of d122 is 0x2403. +event 142: suppval[31] of d122 is 0x2402. +event 142: suppval[32] of d122 is 0x2453. +event 142: suppval[33] of d122 is 0x2452. +event 142: suppval[34] of d122 is 0x2463. +event 142: suppval[35] of d122 is 0x2462. +event 142: suppval[36] of d122 is 0x24d3. +event 142: suppval[37] of d122 is 0x24d2. +event 142: suppval[38] of d122 is 0x24e3. +event 142: suppval[39] of d122 is 0x24f3. +event 142: suppval[40] of d122 is 0x400. +event 142: suppval[41] of d122 is 0x1400. +event 142: suppval[42] of d122 is 0x2400. +event 143: EOS prop d15d desc record, datasize 0, propxtype 7 +event 143: propxtype is 7 for d15d, unhandled, size 20 +event 144: EOS prop d157 desc record, datasize 0, propxtype 7 +event 144: propxtype is 7 for d157, unhandled, size 20 +event 145: EOS prop d158 desc record, datasize 0, propxtype 7 +event 145: propxtype is 7 for d158, unhandled, size 20 +event 146: EOS prop d159 desc record, datasize 0, propxtype 7 +event 146: propxtype is 7 for d159, unhandled, size 20 +event 147: EOS prop d15a desc record, datasize 0, propxtype 7 +event 147: propxtype is 7 for d15a, unhandled, size 20 +event 148: EOS prop d15b desc record, datasize 0, propxtype 7 +event 148: propxtype is 7 for d15b, unhandled, size 20 +event 149: EOS prop d15c desc record, datasize 0, propxtype 7 +event 149: propxtype is 7 for d15c, unhandled, size 20 +event 150: EOS prop d15e desc record, datasize 0, propxtype 7 +event 150: propxtype is 7 for d15e, unhandled, size 20 +event 151: EOS prop d163 desc record, datasize 0, propxtype 7 +event 151: propxtype is 7 for d163, unhandled, size 20 +event 152: EOS prop d164 desc record, datasize 0, propxtype 7 +event 152: propxtype is 7 for d164, unhandled, size 20 +event 153: EOS prop d165 desc record, datasize 0, propxtype 7 +event 153: propxtype is 7 for d165, unhandled, size 20 +event 154: EOS prop d170 desc record, datasize 0, propxtype 7 +event 154: propdesc d170, default value not found. +event 155: EOS prop d171 desc record, datasize 0, propxtype 7 +event 155: propdesc d171, default value not found. +event 156: EOS prop d172 desc record, datasize 0, propxtype 7 +event 156: propdesc d172, default value not found. +event 157: EOS prop d11c desc record, datasize 20, propxtype 3 +event 157: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 5. +event 157: suppval[0] of d11c is 0x1. +event 157: suppval[1] of d11c is 0x5. +event 157: suppval[2] of d11c is 0x2. +event 157: suppval[3] of d11c is 0x6. +event 157: suppval[4] of d11c is 0x4. +event 158: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 158: propxtype is 7 for d1a0, unhandled, size 20 +event 159: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 159: propxtype is 7 for d1a1, unhandled, size 20 +event 160: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 160: propdesc d1a2, default value not found. +event 161: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 161: propxtype is 1 for d1a8, unhandled, size 20 +event 162: EOS prop d1a7 desc record, datasize 0, propxtype 7 +event 162: propxtype is 7 for d1a7, unhandled, size 20 +event 163: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 163: propxtype is 1 for d1ab, unhandled, size 20 +event 164: EOS prop d1b0 desc record, datasize 48, propxtype 3 +event 164: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 12. +event 164: suppval[0] of d1b0 is 0x0. +event 164: suppval[1] of d1b0 is 0x1. +event 164: suppval[2] of d1b0 is 0x2. +event 164: suppval[3] of d1b0 is 0x3. +event 164: suppval[4] of d1b0 is 0x4. +event 164: suppval[5] of d1b0 is 0x5. +event 164: suppval[6] of d1b0 is 0x6. +event 164: suppval[7] of d1b0 is 0x7. +event 164: suppval[8] of d1b0 is 0x8. +event 164: suppval[9] of d1b0 is 0x9. +event 164: suppval[10] of d1b0 is 0xa. +event 164: suppval[11] of d1b0 is 0xb. +event 165: EOS prop d1b1 desc record, datasize 8, propxtype 3 +event 165: propxtype is 3, prop is 0xd1b1, data type is 0x0004, propxcnt is 2. +event 165: suppval[0] of d1b1 is 0x1. +event 165: suppval[1] of d1b1 is 0x0. +event 166: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 166: propxtype is 7 for d1b2, unhandled, size 20 +event 167: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 167: propxtype is 7 for d1b3, unhandled, size 20 +event 168: EOS prop d1b4 desc record, datasize 44, propxtype 3 +event 168: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 11. +event 168: suppval[0] of d1b4 is 0x0. +event 168: suppval[1] of d1b4 is 0x17. +event 168: suppval[2] of d1b4 is 0x1. +event 168: suppval[3] of d1b4 is 0x8. +event 168: suppval[4] of d1b4 is 0x2. +event 168: suppval[5] of d1b4 is 0x3. +event 168: suppval[6] of d1b4 is 0x4. +event 168: suppval[7] of d1b4 is 0x5. +event 168: suppval[8] of d1b4 is 0x6. +event 168: suppval[9] of d1b4 is 0x9. +event 168: suppval[10] of d1b4 is 0x8000. +event 169: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 169: propxtype is 7 for d1b5, unhandled, size 20 +event 170: EOS prop d1b6 desc record, datasize 304, propxtype 3 +event 170: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +event 170: suppval[0] of d1b6 is 0x9c4. +event 170: suppval[1] of d1b6 is 0xa28. +event 170: suppval[2] of d1b6 is 0xa8c. +event 170: suppval[3] of d1b6 is 0xaf0. +event 170: suppval[4] of d1b6 is 0xb54. +event 170: suppval[5] of d1b6 is 0xbb8. +event 170: suppval[6] of d1b6 is 0xc1c. +event 170: suppval[7] of d1b6 is 0xc80. +event 170: suppval[8] of d1b6 is 0xce4. +event 170: suppval[9] of d1b6 is 0xd48. +event 170: suppval[10] of d1b6 is 0xdac. +event 170: suppval[11] of d1b6 is 0xe10. +event 170: suppval[12] of d1b6 is 0xe74. +event 170: suppval[13] of d1b6 is 0xed8. +event 170: suppval[14] of d1b6 is 0xf3c. +event 170: suppval[15] of d1b6 is 0xfa0. +event 170: suppval[16] of d1b6 is 0x1004. +event 170: suppval[17] of d1b6 is 0x1068. +event 170: suppval[18] of d1b6 is 0x10cc. +event 170: suppval[19] of d1b6 is 0x1130. +event 170: suppval[20] of d1b6 is 0x1194. +event 170: suppval[21] of d1b6 is 0x11f8. +event 170: suppval[22] of d1b6 is 0x125c. +event 170: suppval[23] of d1b6 is 0x12c0. +event 170: suppval[24] of d1b6 is 0x1324. +event 170: suppval[25] of d1b6 is 0x1388. +event 170: suppval[26] of d1b6 is 0x13ec. +event 170: suppval[27] of d1b6 is 0x1450. +event 170: suppval[28] of d1b6 is 0x14b4. +event 170: suppval[29] of d1b6 is 0x1518. +event 170: suppval[30] of d1b6 is 0x157c. +event 170: suppval[31] of d1b6 is 0x15e0. +event 170: suppval[32] of d1b6 is 0x1644. +event 170: suppval[33] of d1b6 is 0x16a8. +event 170: suppval[34] of d1b6 is 0x170c. +event 170: suppval[35] of d1b6 is 0x1770. +event 170: suppval[36] of d1b6 is 0x17d4. +event 170: suppval[37] of d1b6 is 0x1838. +event 170: suppval[38] of d1b6 is 0x189c. +event 170: suppval[39] of d1b6 is 0x1900. +event 170: suppval[40] of d1b6 is 0x1964. +event 170: suppval[41] of d1b6 is 0x19c8. +event 170: suppval[42] of d1b6 is 0x1a2c. +event 170: suppval[43] of d1b6 is 0x1a90. +event 170: suppval[44] of d1b6 is 0x1af4. +event 170: suppval[45] of d1b6 is 0x1b58. +event 170: suppval[46] of d1b6 is 0x1bbc. +event 170: suppval[47] of d1b6 is 0x1c20. +event 170: suppval[48] of d1b6 is 0x1c84. +event 170: suppval[49] of d1b6 is 0x1ce8. +event 170: suppval[50] of d1b6 is 0x1d4c. +event 170: suppval[51] of d1b6 is 0x1db0. +event 170: suppval[52] of d1b6 is 0x1e14. +event 170: suppval[53] of d1b6 is 0x1e78. +event 170: suppval[54] of d1b6 is 0x1edc. +event 170: suppval[55] of d1b6 is 0x1f40. +event 170: suppval[56] of d1b6 is 0x1fa4. +event 170: suppval[57] of d1b6 is 0x2008. +event 170: suppval[58] of d1b6 is 0x206c. +event 170: suppval[59] of d1b6 is 0x20d0. +event 170: suppval[60] of d1b6 is 0x2134. +event 170: suppval[61] of d1b6 is 0x2198. +event 170: suppval[62] of d1b6 is 0x21fc. +event 170: suppval[63] of d1b6 is 0x2260. +event 170: suppval[64] of d1b6 is 0x22c4. +event 170: suppval[65] of d1b6 is 0x2328. +event 170: suppval[66] of d1b6 is 0x238c. +event 170: suppval[67] of d1b6 is 0x23f0. +event 170: suppval[68] of d1b6 is 0x2454. +event 170: suppval[69] of d1b6 is 0x24b8. +event 170: suppval[70] of d1b6 is 0x251c. +event 170: suppval[71] of d1b6 is 0x2580. +event 170: suppval[72] of d1b6 is 0x25e4. +event 170: suppval[73] of d1b6 is 0x2648. +event 170: suppval[74] of d1b6 is 0x26ac. +event 170: suppval[75] of d1b6 is 0x2710. +event 171: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 171: propxtype is 3, prop is 0xd1a9, data type is 0x0004, propxcnt is 5. +event 171: suppval[0] of d1a9 is 0x0. +event 171: suppval[1] of d1a9 is 0x2. +event 171: suppval[2] of d1a9 is 0x4. +event 171: suppval[3] of d1a9 is 0x8. +event 171: suppval[4] of d1a9 is 0xff. +event 172: EOS prop d146 desc record, datasize 0, propxtype 7 +event 172: propxtype is 7 for d146, unhandled, size 20 +event 173: EOS prop d1ac desc record, datasize 0, propxtype 1 +event 173: propdesc d1ac, default value not found. +event 174: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 174: propdesc d1ad, default value not found. +event 175: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 175: propdesc d1ae, default value not found. +event 176: EOS prop d1aa desc record, datasize 0, propxtype 1 +event 176: propxtype is 1 for d1aa, unhandled, size 20 +event 177: EOS prop d11e desc record, datasize 0, propxtype 1 +event 177: propxtype is 1 for d11e, unhandled, size 20 +event 178: EOS prop d11f desc record, datasize 0, propxtype 1 +event 178: propxtype is 1 for d11f, unhandled, size 20 +event 179: EOS prop d1af desc record, datasize 0, propxtype 1 +event 179: propdesc d1af, default value not found. +event 180: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 180: propdesc d1d0, default value not found. +event 181: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 181: propdesc d1d1, default value not found. +event 182: EOS prop d1d9 desc record, datasize 40, propxtype 3 +event 182: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +event 182: suppval[0] of d1d9 is 0x0. +event 182: suppval[1] of d1d9 is 0x3. +event 182: suppval[2] of d1d9 is 0x5. +event 182: suppval[3] of d1d9 is 0x8. +event 182: suppval[4] of d1d9 is 0xb. +event 182: suppval[5] of d1d9 is 0xd. +event 182: suppval[6] of d1d9 is 0x10. +event 182: suppval[7] of d1d9 is 0x13. +event 182: suppval[8] of d1d9 is 0x15. +event 182: suppval[9] of d1d9 is 0x18. +event 183: EOS prop d1d5 desc record, datasize 0, propxtype 3 +event 184: EOS prop d1ba desc record, datasize 8, propxtype 3 +event 184: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 2. +event 184: suppval[0] of d1ba is 0x2. +event 184: suppval[1] of d1ba is 0x1. +event 185: EOS prop d1cd desc record, datasize 0, propxtype 3 +event 186: EOS prop d1bc desc record, datasize 12, propxtype 3 +event 186: propxtype is 3, prop is 0xd1bc, data type is 0x0006, propxcnt is 3. +event 186: suppval[0] of d1bc is 0x1. +event 186: suppval[1] of d1bc is 0x0. +event 186: suppval[2] of d1bc is 0x3. +event 187: EOS prop d1b8 desc record, datasize 0, propxtype 3 +event 188: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 188: propxtype is 7 for d1d3, unhandled, size 20 +event 189: EOS prop d1d8 desc record, datasize 0, propxtype 1 +event 189: propxtype is 1 for d1d8, unhandled, size 20 +event 190: EOS prop d17f desc record, datasize 0, propxtype 1 +event 190: propdesc d17f, default value not found. +event 191: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 191: propxtype is 1 for d1b7, unhandled, size 20 +event 192: EOS prop d1cb desc record, datasize 0, propxtype 7 +event 192: propxtype is 7 for d1cb, unhandled, size 20 +event 193: EOS prop d1db desc record, datasize 0, propxtype 7 +event 193: propxtype is 7 for d1db, unhandled, size 20 +event 194: EOS prop d1dc desc record, datasize 8, propxtype 3 +event 194: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 2. +event 194: suppval[0] of d1dc is 0x0. +event 194: suppval[1] of d1dc is 0x1. +event 195: EOS prop d1a3 desc record, datasize 0, propxtype 1 +event 195: propxtype is 1 for d1a3, unhandled, size 20 +event 196: EOS prop d1a4 desc record, datasize 0, propxtype 7 +event 196: propxtype is 7 for d1a4, unhandled, size 20 +event 197: EOS prop d1df desc record, datasize 0, propxtype 3 +event 198: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 198: propxtype is 1 for d1bd, unhandled, size 20 +event 199: EOS prop d1c1 desc record, datasize 16, propxtype 3 +event 199: propxtype is 3, prop is 0xd1c1, data type is 0x0006, propxcnt is 4. +event 199: suppval[0] of d1c1 is 0x3. +event 199: suppval[1] of d1c1 is 0x1. +event 199: suppval[2] of d1c1 is 0x0. +event 199: suppval[3] of d1c1 is 0x2. +event 200: EOS prop d1c0 desc record, datasize 0, propxtype 1 +event 200: propxtype is 1 for d1c0, unhandled, size 20 +event 201: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 201: propxtype is 7 for d1bf, unhandled, size 20 +event 202: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 202: propxtype is 1 for d1c4, unhandled, size 20 +event 203: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 203: propxtype is 1 for d1c2, unhandled, size 20 +event 204: EOS prop d1c5 desc record, datasize 0, propxtype 3 +event 205: EOS prop d194 desc record, datasize 24, propxtype 3 +event 205: propxtype is 3, prop is 0xd194, data type is 0x0004, propxcnt is 6. +event 205: suppval[0] of d194 is 0x0. +event 205: suppval[1] of d194 is 0xc. +event 205: suppval[2] of d194 is 0xd. +event 205: suppval[3] of d194 is 0x1. +event 205: suppval[4] of d194 is 0x2. +event 205: suppval[5] of d194 is 0x7. +event 206: EOS prop d195 desc record, datasize 0, propxtype 3 +event 207: EOS prop d196 desc record, datasize 0, propxtype 7 +event 207: propxtype is 7 for d196, unhandled, size 20 +event 208: EOS prop d197 desc record, datasize 0, propxtype 3 +event 209: EOS prop d198 desc record, datasize 0, propxtype 1 +event 209: propxtype is 1 for d198, unhandled, size 20 +event 210: EOS prop d1dd desc record, datasize 0, propxtype 1 +event 210: propxtype is 1 for d1dd, unhandled, size 20 +event 211: EOS prop d1c7 desc record, datasize 0, propxtype 7 +event 211: propxtype is 7 for d1c7, unhandled, size 20 +event 212: EOS prop d199 desc record, datasize 0, propxtype 1 +event 212: propxtype is 1 for d199, unhandled, size 20 +event 213: EOS prop d138 desc record, datasize 0, propxtype 1 +event 213: propxtype is 1 for d138, unhandled, size 20 +event 214: EOS prop d139 desc record, datasize 0, propxtype 1 +event 214: propxtype is 1 for d139, unhandled, size 20 +event 215: EOS prop d13a desc record, datasize 28, propxtype 3 +event 215: propxtype is 3, prop is 0xd13a, data type is 0x0006, propxcnt is 7. +event 215: suppval[0] of d13a is 0x0. +event 215: suppval[1] of d13a is 0x1. +event 215: suppval[2] of d13a is 0x3. +event 215: suppval[3] of d13a is 0x4. +event 215: suppval[4] of d13a is 0x5. +event 215: suppval[5] of d13a is 0x6. +event 215: suppval[6] of d13a is 0x7. +event 216: EOS prop d13b desc record, datasize 0, propxtype 1 +event 216: propxtype is 1 for d13b, unhandled, size 20 +event 217: EOS prop d13c desc record, datasize 0, propxtype 1 +event 217: propxtype is 1 for d13c, unhandled, size 20 +event 218: EOS prop d13d desc record, datasize 0, propxtype 7 +event 218: propxtype is 7 for d13d, unhandled, size 20 +event 219: EOS prop d14d desc record, datasize 0, propxtype 7 +event 219: propxtype is 7 for d14d, unhandled, size 20 +event 220: EOS prop d19d desc record, datasize 0, propxtype 1 +event 220: propdesc d19d, default value not found. +event 221: EOS prop d19a desc record, datasize 0, propxtype 1 +event 221: propxtype is 1 for d19a, unhandled, size 20 +event 222: EOS prop d19c desc record, datasize 0, propxtype 1 +event 222: propxtype is 1 for d19c, unhandled, size 20 +event 223: EOS prop d178 desc record, datasize 20, propxtype 3 +event 223: propxtype is 3, prop is 0xd178, data type is 0x0004, propxcnt is 5. +event 223: suppval[0] of d178 is 0x3. +event 223: suppval[1] of d178 is 0x1. +event 223: suppval[2] of d178 is 0x0. +event 223: suppval[3] of d178 is 0x2. +event 223: suppval[4] of d178 is 0x4. +event 224: EOS prop d179 desc record, datasize 0, propxtype 3 +event 225: EOS prop d17a desc record, datasize 8, propxtype 3 +event 225: propxtype is 3, prop is 0xd17a, data type is 0x0000, propxcnt is 2. +event 225: data type 0x0000 of d17a unhandled, size 1, raw values: + 0: 0x 1 + 1: 0x 0 +event 226: EOS prop d17b desc record, datasize 0, propxtype 3 +event 227: EOS prop d1c9 desc record, datasize 8, propxtype 3 +event 227: propxtype is 3, prop is 0xd1c9, data type is 0x0006, propxcnt is 2. +event 227: suppval[0] of d1c9 is 0x1. +event 227: suppval[1] of d1c9 is 0x0. +event 228: EOS prop d19f desc record, datasize 0, propxtype 1 +event 228: propxtype is 1 for d19f, unhandled, size 20 +event 229: EOS prop d175 desc record, datasize 0, propxtype 3 +event 230: EOS prop d14c desc record, datasize 0, propxtype 1 +event 230: propxtype is 1 for d14c, unhandled, size 20 +event 231: EOS prop d14b desc record, datasize 4, propxtype 3 +event 231: propxtype is 3, prop is 0xd14b, data type is 0x0000, propxcnt is 1. +event 231: data type 0x0000 of d14b unhandled, size 6, raw values: + 0: 0x 6 +event 232: EOS prop d13e desc record, datasize 0, propxtype 1 +event 232: propxtype is 1 for d13e, unhandled, size 20 +event 233: EOS prop d1c6 desc record, datasize 12, propxtype 3 +event 233: propxtype is 3, prop is 0xd1c6, data type is 0x0000, propxcnt is 3. +event 233: data type 0x0000 of d1c6 unhandled, size 0, raw values: + 0: 0x 0 + 1: 0x 1 + 2: 0x 2 +event 234: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 01 + 11: 00 +event 235: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 02 + 11: 00 +olcinfoversion is 11 +event 236: EOS event OLCInfoChanged (size 81) + 0: 49 00 00 00 size + 4: ff 1f mask + + 6: 00 belongs to mask perhaps? + 7: 00 + + 8: 01 button? mask 0x1 + 9: 00 + + 10: 00 shutterspeed mask 0x2 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + + 16: 01 aperture? mask 0x4 + 17: 01 + 18: 50 + 19: 20 + 20: 20 + + 21: 01 iso? mask 0x8 + 22: 01 + 23: 00 + 24: 48 + + 25: 04 unknown. mask 0x10 + 26: 01 + 27: 07 + 28: 44 + + 29: 00 unknown, selftimer? mask 0x20 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + + 35: 01 exposure, mask 0x40 + 36: 01 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 00 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos600d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos600d.txt new file mode 100644 index 00000000..27eccd3c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos600d.txt @@ -0,0 +1,1077 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 600D + device version: 3-1.0.2 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 200 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1001 + 0x1002 + 0x1003 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9115 + 0x9114 + 0x9113 + 0x9116 + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x912d + 0x912e + 0x912f + 0x912c + 0x9130 + 0x9131 + 0x9132 + 0x9133 + 0x9134 + 0x912b + 0x9135 + 0x9136 + 0x9137 + 0x9138 + 0x9139 + 0x913a + 0x913b + 0x913c + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905f +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + +event 0: EOS prop d105 info record, datasize is 4 +event 0: currentvalue of d105 is a +event 1: EOS prop d108 info record, datasize is 4 +event 1: currentvalue of d108 is 3 +event 2: EOS prop d106 info record, datasize is 4 +event 2: currentvalue of d106 is 0 +event 3: EOS prop d107 info record, datasize is 4 +event 3: currentvalue of d107 is 3 +event 4: EOS prop d109 info record, datasize is 4 +event 4: currentvalue of d109 is 0 +event 5: EOS prop d10b info record, datasize is 4 +event 6: EOS prop d10c info record, datasize is 4 +event 7: EOS prop d10d info record, datasize is 4 +event 7: currentvalue of d10d is 0 +event 8: EOS prop d10e info record, datasize is 4 +event 8: currentvalue of d10e is 0 +event 9: EOS prop d10f info record, datasize is 4 +event 9: currentvalue of d10f is 1 +event 10: EOS prop d11b info record, datasize is 4 +event 10: currentvalue of d11b is 1e7a +event 11: EOS prop d114 info record, datasize is 4 +event 11: Unknown EOS property d114, datasize is 4, using uint16 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 11: currentvalue of d114 is 0 +event 12: EOS prop d116 info record, datasize is 4 +event 12: currentvalue of d116 is 80000286 +event 13: EOS prop d119 info record, datasize is 4 +event 13: currentvalue of d119 is 100 +event 14: EOS prop d110 info record, datasize is 4 +event 14: currentvalue of d110 is 87 +event 15: EOS prop d101 info record, datasize is 4 +event 15: currentvalue of d101 is 0 +event 16: EOS prop d102 info record, datasize is 4 +event 16: currentvalue of d102 is 0 +event 17: EOS prop d103 info record, datasize is 4 +event 17: currentvalue of d103 is 0 +event 18: EOS prop d104 info record, datasize is 4 +event 18: currentvalue of d104 is 0 +event 19: EOS prop d11d info record, datasize is 4 +event 19: currentvalue of d11d is 0 +event 20: EOS prop d111 info record, datasize is 4 +event 20: currentvalue of d111 is 2 +event 21: EOS prop d112 info record, datasize is 4 +event 21: currentvalue of d112 is 2 +event 22: EOS prop d113 info record, datasize is 4 +event 22: currentvalue of d113 is 546b4dae +event 23: EOS prop d120 info record, datasize is 20 +event 23: decoded imageformat, currentvalue of d120 is 300 +event 24: EOS prop d122 info record, datasize is 20 +event 24: decoded imageformat, currentvalue of d122 is 300 +event 25: EOS prop d156 info record, datasize is 28 +event 25: Unknown EOS property d156, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 26: EOS prop d150 info record, datasize is 28 +event 26: Unknown EOS property d150, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 27: EOS prop d151 info record, datasize is 28 +event 27: Unknown EOS property d151, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 02 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 28: EOS prop d152 info record, datasize is 28 +event 28: Unknown EOS property d152, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 04 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 29: EOS prop d153 info record, datasize is 28 +event 29: Unknown EOS property d153, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 30: EOS prop d154 info record, datasize is 28 +event 30: Unknown EOS property d154, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 31: EOS prop d155 info record, datasize is 28 +event 31: Unknown EOS property d155, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 32: EOS prop d160 info record, datasize is 32 +event 32: Unknown EOS property d160, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 33: EOS prop d161 info record, datasize is 32 +event 33: Unknown EOS property d161, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 34: EOS prop d162 info record, datasize is 32 +event 34: Unknown EOS property d162, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 35: EOS prop d11c info record, datasize is 4 +event 35: currentvalue of d11c is 2 +event 36: EOS prop d1a0 info record, datasize is 200 +event 36: decoded custom function, currentvalue of d1a0 is c8,4,1,2c,3,101,1,0,103,1,0,10f,1,0,2,2c,3,201,1,0,202,1,0,203,1,0,3,20,2,50e,1,0,60f,1,0,4,38,4,701,1,0,704,1,0,811,1,0,80f,1,0, +event 37: EOS prop d1a1 info record, datasize is 8 +event 37: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 38: EOS prop d1a8 info record, datasize is 4 +event 38: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 38: currentvalue of d1a8 is 1 +event 39: EOS prop d1ab info record, datasize is 4 +event 39: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 39: currentvalue of d1ab is 0 +event 40: EOS prop d1b0 info record, datasize is 4 +event 40: currentvalue of d1b0 is 0 +event 41: EOS prop d1b1 info record, datasize is 4 +event 41: currentvalue of d1b1 is 0 +event 42: EOS prop d1b2 info record, datasize is 4 +event 42: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 42: currentvalue of d1b2 is 0 +event 43: EOS prop d1b3 info record, datasize is 4 +event 43: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 43: currentvalue of d1b3 is 0 +event 44: EOS prop d1b4 info record, datasize is 4 +event 44: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 0 +event 44: currentvalue of d1b4 is 0 +event 45: EOS prop d1b5 info record, datasize is 48 +event 45: Unknown EOS property d1b5, datasize is 48, using uint32 + 0: 0x 30 + 1: 0x 0 + 2: 0x 0 + 3: 0x 0 + 4: 0x 0 + 5: 0x 0 + 6: 0x 0 + 7: 0x 0 + 8: 0x 0 + 9: 0x 0 + 10: 0x 4000400 + 11: 0x 4000400 +event 45: currentvalue of d1b5 is 30 +event 46: EOS prop d1a9 info record, datasize is 4 +event 46: currentvalue of d1a9 is 0 +event 47: EOS prop d146 info record, datasize is 48 +event 47: Unknown EOS property d146, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: de + 41: 01 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: a3 + 47: 02 +event 48: EOS prop d1ac info record, datasize is 4 +event 48: currentvalue of d1ac is 2b4 +event 49: EOS prop d11e info record, datasize is 4 +event 49: currentvalue of d11e is 20001 +event 50: EOS prop d11f info record, datasize is 4 +event 50: currentvalue of d11f is 91900000 +event 51: EOS prop d1d9 info record, datasize is 4 +event 51: currentvalue of d1d9 is 0 +event 52: EOS prop d1ba info record, datasize is 4 +event 52: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 0 +event 52: currentvalue of d1ba is 0 +event 53: EOS prop d1ca info record, datasize is 24 +event 53: Unknown EOS property d1ca, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 19 + 13: 00 + 14: 00 + 15: 00 + 16: 0c + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 54: EOS prop d1bc info record, datasize is 4 +event 54: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 54: currentvalue of d1bc is 1 +event 55: EOS prop d1b8 info record, datasize is 4 +event 55: Unknown EOS property d1b8, datasize is 4, using uint32 + 0: 0x 0 +event 55: currentvalue of d1b8 is 0 +event 56: EOS prop d1d3 info record, datasize is 100 +event 56: Unknown EOS property d1d3, datasize is 100 + 0: 64 + 1: 00 + 2: 00 + 3: 00 + 4: 60 + 5: 00 + 6: 00 + 7: 00 + 8: 09 + 9: 00 + 10: 09 + 11: 00 + 12: 40 + 13: 14 + 14: 80 + 15: 0d + 16: 40 + 17: 14 + 18: 80 + 19: 0d + 20: 8b + 21: 00 + 22: 8b + 23: 00 + 24: 8b + 25: 00 + 26: c4 + 27: 00 + 28: ee + 29: 00 + 30: c4 + 31: 00 + 32: 8b + 33: 00 + 34: 8b + 35: 00 + 36: 8b + 37: 00 + 38: ba + 39: 00 + 40: ba + 41: 00 + 42: ba + 43: 00 + 44: 7f + 45: 00 + 46: e7 + 47: 00 + 48: 7f + 49: 00 + 50: ba + 51: 00 + 52: ba + 53: 00 + 54: ba + 55: 00 + 56: 3b + 57: fa + 58: 8a + 59: fc + 60: 8a + 61: fc + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 76 + 69: 03 + 70: 76 + 71: 03 + 72: c5 + 73: 05 + 74: 00 + 75: 00 + 76: a2 + 77: 01 + 78: 5e + 79: fe + 80: 13 + 81: 03 + 82: 00 + 83: 00 + 84: ed + 85: fc + 86: a2 + 87: 01 + 88: 5e + 89: fe + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: ff + 95: 01 + 96: 00 + 97: 00 + 98: ff + 99: ff +event 57: EOS prop d1d8 info record, datasize is 64 +event 57: currentvalue of d1d8 is EF-S18-55mm f/3.5-5.6 III +event 58: EOS prop d1b7 info record, datasize is 4 +event 58: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 0 +event 58: currentvalue of d1b7 is 0 +event 59: EOS prop d1b9 info record, datasize is 38 +event 59: Unknown EOS property d1b9, datasize is 38 + 0: 26 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 3a + 13: 00 + 14: 00 + 15: 00 + 16: 39 + 17: 00 + 18: 03 + 19: 80 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 32 + 29: 00 + 30: 00 + 31: 00 + 32: 3a + 33: 00 + 34: 03 + 35: 80 + 36: 00 + 37: 00 +event 60: EOS prop d1db info record, datasize is 14 +event 60: Unknown EOS property d1db, datasize is 14 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 03 + 5: 00 + 6: 00 + 7: 00 + 8: 2f + 9: 00 + 10: 00 + 11: 00 + 12: 28 + 13: 00 +event 61: EOS prop d1dc info record, datasize is 4 +event 61: currentvalue of d1dc is 2 +event 62: EOS prop d1df info record, datasize is 4 +event 62: Unknown EOS property d1df, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 63: EOS prop d1bd info record, datasize is 4 +event 63: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 64: EOS prop d1c1 info record, datasize is 4 +event 64: Unknown EOS property d1c1, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 65: EOS prop d1c0 info record, datasize is 4 +event 65: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 66: EOS prop d1bf info record, datasize is 4 +event 66: Unknown EOS property d1bf, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 67: EOS prop d1c4 info record, datasize is 4 +event 67: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 68: EOS prop d1c2 info record, datasize is 4 +event 68: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 69: EOS prop d1c5 info record, datasize is 4 +event 69: Unknown EOS property d1c5, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 70: EOS prop d194 info record, datasize is 4 +event 70: Unknown EOS property d194, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 71: EOS prop d198 info record, datasize is 4 +event 71: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 72: EOS prop d1c6 info record, datasize is 4 +event 72: Unknown EOS property d1c6, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 73: EOS prop d1c8 info record, datasize is 4 +event 73: Unknown EOS property d1c8, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 74: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 02 + 11: 00 +event 75: EOS prop d105 desc record, datasize 0, propxtype 1 +event 75: propxtype is 1 for d105, unhandled. +event 76: EOS prop d108 desc record, datasize 0, propxtype 3 +event 77: EOS prop d106 desc record, datasize 12, propxtype 3 +event 77: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 3. +event 77: suppval[0] of d106 is 0x0. +event 77: suppval[1] of d106 is 0x10. +event 77: suppval[2] of d106 is 0x7. +event 78: EOS prop d107 desc record, datasize 0, propxtype 3 +event 79: EOS prop d109 desc record, datasize 0, propxtype 3 +event 80: EOS prop d10b desc record, datasize 0, propxtype 3 +event 81: EOS prop d10c desc record, datasize 0, propxtype 3 +event 82: EOS prop d10d desc record, datasize 0, propxtype 3 +event 83: EOS prop d10e desc record, datasize 0, propxtype 3 +event 84: EOS prop d10f desc record, datasize 0, propxtype 3 +event 85: EOS prop d11b desc record, datasize 0, propxtype 1 +event 85: propxtype is 1 for d11b, unhandled. +event 86: EOS prop d114 desc record, datasize 0, propxtype 1 +event 86: propxtype is 1 for d114, unhandled. +event 87: EOS prop d116 desc record, datasize 0, propxtype 1 +event 87: propxtype is 1 for d116, unhandled. +event 88: EOS prop d119 desc record, datasize 0, propxtype 1 +event 88: propxtype is 1 for d119, unhandled. +event 89: EOS prop d11a desc record, datasize 0, propxtype 1 +event 89: propdesc d11a, default value not found. +event 90: EOS prop d110 desc record, datasize 0, propxtype 3 +event 91: EOS prop d115 desc record, datasize 0, propxtype 7 +event 91: propdesc d115, default value not found. +event 92: EOS prop d101 desc record, datasize 0, propxtype 3 +event 93: EOS prop d102 desc record, datasize 0, propxtype 3 +event 94: EOS prop d103 desc record, datasize 0, propxtype 3 +event 95: EOS prop d104 desc record, datasize 0, propxtype 3 +event 96: EOS prop d11d desc record, datasize 0, propxtype 1 +event 96: propxtype is 1 for d11d, unhandled. +event 97: EOS prop d111 desc record, datasize 0, propxtype 1 +event 97: propxtype is 1 for d111, unhandled. +event 98: EOS prop d112 desc record, datasize 0, propxtype 1 +event 98: propxtype is 1 for d112, unhandled. +event 99: EOS prop d113 desc record, datasize 0, propxtype 7 +event 99: propxtype is 7 for d113, unhandled. +event 100: EOS prop d120 desc record, datasize 216, propxtype 3 +event 100: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 10. +event 100: suppval[0] of d120 is 0x300. +event 100: suppval[1] of d120 is 0x200. +event 100: suppval[2] of d120 is 0x1300. +event 100: suppval[3] of d120 is 0x1200. +event 100: suppval[4] of d120 is 0xd300. +event 100: suppval[5] of d120 is 0xd200. +event 100: suppval[6] of d120 is 0xe300. +event 100: suppval[7] of d120 is 0xf300. +event 100: suppval[8] of d120 is 0x403. +event 100: suppval[9] of d120 is 0x400. +event 101: EOS prop d122 desc record, datasize 216, propxtype 3 +event 101: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 10. +event 101: suppval[0] of d122 is 0x300. +event 101: suppval[1] of d122 is 0x200. +event 101: suppval[2] of d122 is 0x1300. +event 101: suppval[3] of d122 is 0x1200. +event 101: suppval[4] of d122 is 0xd300. +event 101: suppval[5] of d122 is 0xd200. +event 101: suppval[6] of d122 is 0xe300. +event 101: suppval[7] of d122 is 0xf300. +event 101: suppval[8] of d122 is 0x403. +event 101: suppval[9] of d122 is 0x400. +event 102: EOS prop d156 desc record, datasize 0, propxtype 7 +event 102: propxtype is 7 for d156, unhandled. +event 103: EOS prop d150 desc record, datasize 0, propxtype 7 +event 103: propxtype is 7 for d150, unhandled. +event 104: EOS prop d151 desc record, datasize 0, propxtype 7 +event 104: propxtype is 7 for d151, unhandled. +event 105: EOS prop d152 desc record, datasize 0, propxtype 7 +event 105: propxtype is 7 for d152, unhandled. +event 106: EOS prop d153 desc record, datasize 0, propxtype 7 +event 106: propxtype is 7 for d153, unhandled. +event 107: EOS prop d154 desc record, datasize 0, propxtype 7 +event 107: propxtype is 7 for d154, unhandled. +event 108: EOS prop d155 desc record, datasize 0, propxtype 7 +event 108: propxtype is 7 for d155, unhandled. +event 109: EOS prop d160 desc record, datasize 0, propxtype 7 +event 109: propxtype is 7 for d160, unhandled. +event 110: EOS prop d161 desc record, datasize 0, propxtype 7 +event 110: propxtype is 7 for d161, unhandled. +event 111: EOS prop d162 desc record, datasize 0, propxtype 7 +event 111: propxtype is 7 for d162, unhandled. +event 112: EOS prop d170 desc record, datasize 0, propxtype 7 +event 112: propdesc d170, default value not found. +event 113: EOS prop d171 desc record, datasize 0, propxtype 7 +event 113: propdesc d171, default value not found. +event 114: EOS prop d172 desc record, datasize 0, propxtype 7 +event 114: propdesc d172, default value not found. +event 115: EOS prop d11c desc record, datasize 12, propxtype 3 +event 115: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +event 115: suppval[0] of d11c is 0x2. +event 115: suppval[1] of d11c is 0x4. +event 115: suppval[2] of d11c is 0x6. +event 116: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 116: propxtype is 7 for d1a0, unhandled. +event 117: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 117: propxtype is 7 for d1a1, unhandled. +event 118: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 118: propdesc d1a2, default value not found. +event 119: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 119: propxtype is 1 for d1a8, unhandled. +event 120: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 120: propxtype is 1 for d1ab, unhandled. +event 121: EOS prop d1b0 desc record, datasize 28, propxtype 3 +event 121: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 7. +event 121: suppval[0] of d1b0 is 0x1. +event 121: suppval[1] of d1b0 is 0x2. +event 121: suppval[2] of d1b0 is 0x3. +event 121: suppval[3] of d1b0 is 0x4. +event 121: suppval[4] of d1b0 is 0x5. +event 121: suppval[5] of d1b0 is 0x6. +event 121: suppval[6] of d1b0 is 0x7. +event 122: EOS prop d1b1 desc record, datasize 8, propxtype 3 +event 122: propxtype is 3, prop is 0xd1b1, data type is 0x0004, propxcnt is 2. +event 122: suppval[0] of d1b1 is 0x0. +event 122: suppval[1] of d1b1 is 0x1. +event 123: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 123: propxtype is 7 for d1b2, unhandled. +event 124: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 124: propxtype is 7 for d1b3, unhandled. +event 125: EOS prop d1b4 desc record, datasize 0, propxtype 3 +event 126: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 126: propxtype is 7 for d1b5, unhandled. +event 127: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 127: propxtype is 3, prop is 0xd1a9, data type is 0x0004, propxcnt is 5. +event 127: suppval[0] of d1a9 is 0x0. +event 127: suppval[1] of d1a9 is 0x2. +event 127: suppval[2] of d1a9 is 0x4. +event 127: suppval[3] of d1a9 is 0x8. +event 127: suppval[4] of d1a9 is 0xff. +event 128: EOS prop d146 desc record, datasize 0, propxtype 7 +event 128: propxtype is 7 for d146, unhandled. +event 129: EOS prop d1ac desc record, datasize 0, propxtype 1 +event 129: propxtype is 1 for d1ac, unhandled. +event 130: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 130: propdesc d1ad, default value not found. +event 131: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 131: propdesc d1ae, default value not found. +event 132: EOS prop d11e desc record, datasize 0, propxtype 1 +event 132: propxtype is 1 for d11e, unhandled. +event 133: EOS prop d11f desc record, datasize 0, propxtype 1 +event 133: propxtype is 1 for d11f, unhandled. +event 134: EOS prop d1af desc record, datasize 0, propxtype 1 +event 134: propdesc d1af, default value not found. +event 135: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 135: propdesc d1d0, default value not found. +event 136: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 136: propdesc d1d1, default value not found. +event 137: EOS prop d1d9 desc record, datasize 0, propxtype 3 +event 138: EOS prop d1ba desc record, datasize 12, propxtype 3 +event 138: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 3. +event 138: suppval[0] of d1ba is 0x1. +event 138: suppval[1] of d1ba is 0x2. +event 138: suppval[2] of d1ba is 0x0. +event 139: EOS prop d1ca desc record, datasize 0, propxtype 3 +event 140: EOS prop d1bc desc record, datasize 0, propxtype 3 +event 141: EOS prop d1b8 desc record, datasize 0, propxtype 3 +event 142: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 142: propxtype is 7 for d1d3, unhandled. +event 143: EOS prop d1d8 desc record, datasize 0, propxtype 1 +event 143: propxtype is 1 for d1d8, unhandled. +event 144: EOS prop d17f desc record, datasize 0, propxtype 1 +event 144: propdesc d17f, default value not found. +event 145: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 145: propxtype is 1 for d1b7, unhandled. +event 146: EOS prop d1b9 desc record, datasize 0, propxtype 7 +event 146: propxtype is 7 for d1b9, unhandled. +event 147: EOS prop d1db desc record, datasize 0, propxtype 7 +event 147: propxtype is 7 for d1db, unhandled. +event 148: EOS prop d1dc desc record, datasize 0, propxtype 3 +event 149: EOS prop d1df desc record, datasize 0, propxtype 3 +event 150: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 150: propxtype is 1 for d1bd, unhandled. +event 151: EOS prop d1c1 desc record, datasize 0, propxtype 3 +event 152: EOS prop d1c0 desc record, datasize 0, propxtype 1 +event 152: propxtype is 1 for d1c0, unhandled. +event 153: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 153: propxtype is 7 for d1bf, unhandled. +event 154: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 154: propxtype is 1 for d1c4, unhandled. +event 155: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 155: propxtype is 1 for d1c2, unhandled. +event 156: EOS prop d1c5 desc record, datasize 0, propxtype 3 +event 157: EOS prop d194 desc record, datasize 0, propxtype 3 +event 158: EOS prop d198 desc record, datasize 0, propxtype 1 +event 158: propxtype is 1 for d198, unhandled. +event 159: EOS prop d1c6 desc record, datasize 0, propxtype 3 +event 160: EOS prop d1c8 desc record, datasize 0, propxtype 3 + + +event 0: EOS prop d115 info record, datasize is 1 +event 0: currentvalue of d115 is +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is +event 3: EOS prop d1af info record, datasize is 13 +event 3: currentvalue of d1af is 373077134444 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos60d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos60d.txt new file mode 100644 index 00000000..2725a0a4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos60d.txt @@ -0,0 +1,2056 @@ +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 On 1 +Choice: 2 On 2 +Choice: 3 Off +Choice: 4 Immediate +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1337728626 +Printable: Wed May 23 00:17:06 2012 +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Unknown value 0000 +Choice: 0 TFT +Choice: 1 PC +Choice: 2 TFT + PC +Choice: 3 Unknown value 0000 +/main/settings/movierecord +Label: Movie Recording +Type: TEXT +Current: 0 +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 50,1,4,44,5,701,1,0,704,1,0,706,1,0,80b,1,0,80f,1,0, +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484295 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 75% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF100-400mm f/4.5-5.6L IS USM +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 281200255 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 297 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 7962 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 mRAW + Large Fine JPEG +Choice: 13 mRAW + Large Normal JPEG +Choice: 14 mRAW + Medium Fine JPEG +Choice: 15 mRAW + Medium Normal JPEG +Choice: 16 sRAW + Large Fine JPEG +Choice: 17 sRAW + Large Normal JPEG +Choice: 18 sRAW + Medium Fine JPEG +Choice: 19 sRAW + Medium Normal JPEG +Choice: 20 RAW +Choice: 21 mRAW +Choice: 22 sRAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 mRAW + Large Fine JPEG +Choice: 13 mRAW + Large Normal JPEG +Choice: 14 mRAW + Medium Fine JPEG +Choice: 15 mRAW + Medium Normal JPEG +Choice: 16 sRAW + Large Fine JPEG +Choice: 17 sRAW + Large Normal JPEG +Choice: 18 sRAW + Medium Fine JPEG +Choice: 19 sRAW + Medium Normal JPEG +Choice: 20 RAW +Choice: 21 mRAW +Choice: 22 sRAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 12800 +Choice: 0 Auto +Choice: 1 100 +Choice: 2 125 +Choice: 3 160 +Choice: 4 200 +Choice: 5 250 +Choice: 6 320 +Choice: 7 400 +Choice: 8 500 +Choice: 9 640 +Choice: 10 800 +Choice: 11 1000 +Choice: 12 1250 +Choice: 13 1600 +Choice: 14 2000 +Choice: 15 2500 +Choice: 16 3200 +Choice: 17 4000 +Choice: 18 5000 +Choice: 19 6400 +Choice: 20 12800 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +Choice: 8 Color Temperature +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AI Servo +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: Bulb +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous high speed +Choice: 2 Continuous low speed +Choice: 3 Timer 2 sec +Choice: 4 Timer 10 sec +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Standard +Choice: 0 Standard +Choice: 1 Portrait +Choice: 2 Landscape +Choice: 3 Neutral +Choice: 4 Faithful +Choice: 5 Monochrome +Choice: 6 User defined 1 +Choice: 7 User defined 2 +Choice: 8 User defined 3 +/main/capturesettings/aperture +Label: Aperture +Type: RADIO +Current: 5.6 +Choice: 0 4.5 +Choice: 1 5 +Choice: 2 5.6 +Choice: 3 6.3 +Choice: 4 7.1 +Choice: 5 8 +Choice: 6 9 +Choice: 7 10 +Choice: 8 11 +Choice: 9 13 +Choice: 10 14 +Choice: 11 16 +Choice: 12 18 +Choice: 13 20 +Choice: 14 22 +Choice: 15 25 +Choice: 16 29 +Choice: 17 32 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 60D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 75 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 + + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 60D + device version: 3-1.1.0 + serial number: '596bbf9a935147d6842d8d8e28fe8fb5' +Vendor extension ID: 0x0000000b +Vendor extension version: 200 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1001 + 0x1002 + 0x1003 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9115 + 0x9114 + 0x9113 + 0x9116 + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x912d + 0x912e + 0x912f + 0x912c + 0x9130 + 0x9131 + 0x9132 + 0x9133 + 0x9134 + 0x912b + 0x9135 + 0x9136 + 0x9137 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905f +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + +event 0: EOS prop d105 info record, datasize is 4 +event 0: currentvalue of d105 is 2 +event 1: EOS prop d108 info record, datasize is 4 +event 1: currentvalue of d108 is 3 +event 2: EOS prop d106 info record, datasize is 4 +event 2: currentvalue of d106 is 4 +event 3: EOS prop d107 info record, datasize is 4 +event 3: currentvalue of d107 is 3 +event 4: EOS prop d109 info record, datasize is 4 +event 4: currentvalue of d109 is 0 +event 5: EOS prop d10a info record, datasize is 4 +event 5: Unknown EOS property d10a, datasize is 4, using uint32 + 0: 0x 1450 +event 5: currentvalue of d10a is 1450 +event 6: EOS prop d10b info record, datasize is 4 +event 7: EOS prop d10c info record, datasize is 4 +event 8: EOS prop d10d info record, datasize is 4 +event 8: currentvalue of d10d is 0 +event 9: EOS prop d10e info record, datasize is 4 +event 9: currentvalue of d10e is 0 +event 10: EOS prop d10f info record, datasize is 4 +event 10: currentvalue of d10f is 1 +event 11: EOS prop d11b info record, datasize is 4 +event 11: currentvalue of d11b is f62 +event 12: EOS prop d114 info record, datasize is 4 +event 12: Unknown EOS property d114, datasize is 4, using uint16 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 12: currentvalue of d114 is 0 +event 13: EOS prop d116 info record, datasize is 4 +event 13: currentvalue of d116 is 80000287 +event 14: EOS prop d119 info record, datasize is 4 +event 14: currentvalue of d119 is 100 +event 15: EOS prop d110 info record, datasize is 4 +event 15: currentvalue of d110 is 81 +event 16: EOS prop d101 info record, datasize is 4 +event 16: currentvalue of d101 is 28 +event 17: EOS prop d102 info record, datasize is 4 +event 17: currentvalue of d102 is 0 +event 18: EOS prop d103 info record, datasize is 4 +event 18: currentvalue of d103 is 68 +event 19: EOS prop d104 info record, datasize is 4 +event 19: currentvalue of d104 is 0 +event 20: EOS prop d11d info record, datasize is 4 +event 20: currentvalue of d11d is 0 +event 21: EOS prop d111 info record, datasize is 4 +event 21: currentvalue of d111 is 1 +event 22: EOS prop d112 info record, datasize is 4 +event 22: currentvalue of d112 is 0 +event 23: EOS prop d113 info record, datasize is 4 +event 23: currentvalue of d113 is 4f6614cb +event 24: EOS prop d120 info record, datasize is 20 +event 24: decoded imageformat, currentvalue of d120 is 300 +event 25: EOS prop d122 info record, datasize is 20 +event 25: decoded imageformat, currentvalue of d122 is 300 +event 26: EOS prop d150 info record, datasize is 28 +event 26: Unknown EOS property d150, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 27: EOS prop d151 info record, datasize is 28 +event 27: Unknown EOS property d151, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 02 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 28: EOS prop d152 info record, datasize is 28 +event 28: Unknown EOS property d152, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 04 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 29: EOS prop d153 info record, datasize is 28 +event 29: Unknown EOS property d153, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 30: EOS prop d154 info record, datasize is 28 +event 30: Unknown EOS property d154, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 31: EOS prop d155 info record, datasize is 28 +event 31: Unknown EOS property d155, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 32: EOS prop d160 info record, datasize is 32 +event 32: Unknown EOS property d160, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 81 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 33: EOS prop d161 info record, datasize is 32 +event 33: Unknown EOS property d161, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 81 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 34: EOS prop d162 info record, datasize is 32 +event 34: Unknown EOS property d162, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 81 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 35: EOS prop d11c info record, datasize is 4 +event 35: currentvalue of d11c is 2 +event 36: EOS prop d1a0 info record, datasize is 104 +event 36: Unknown EOS property d1a0, datasize is 104, using uint32 + 0: 0x 68 + 1: 0x 1 + 2: 0x 1 + 3: 0x 5c + 4: 0x 7 + 5: 0x 101 + 6: 0x 1 + 7: 0x 0 + 8: 0x 102 + 9: 0x 1 + 10: 0x 0 + 11: 0x 103 + 12: 0x 1 + 13: 0x 0 + 14: 0x 104 + 15: 0x 1 + 16: 0x 0 + 17: 0x 105 + 18: 0x 1 + 19: 0x 0 + 20: 0x 108 + 21: 0x 1 + 22: 0x 0 + 23: 0x 10f + 24: 0x 1 + 25: 0x 0 +event 36: currentvalue of d1a0 is 68 +event 37: EOS prop d1a0 info record, datasize is 56 +event 37: Unknown EOS property d1a0, datasize is 56, using uint32 + 0: 0x 38 + 1: 0x 1 + 2: 0x 2 + 3: 0x 2c + 4: 0x 3 + 5: 0x 201 + 6: 0x 1 + 7: 0x 0 + 8: 0x 202 + 9: 0x 1 + 10: 0x 0 + 11: 0x 203 + 12: 0x 1 + 13: 0x 0 +event 37: currentvalue of d1a0 is 38 +event 38: EOS prop d1a0 info record, datasize is 80 +event 38: Unknown EOS property d1a0, datasize is 80, using uint32 + 0: 0x 50 + 1: 0x 1 + 2: 0x 3 + 3: 0x 44 + 4: 0x 5 + 5: 0x 505 + 6: 0x 1 + 7: 0x 0 + 8: 0x 50f + 9: 0x 1 + 10: 0x 0 + 11: 0x 510 + 12: 0x 1 + 13: 0x 0 + 14: 0x 50e + 15: 0x 1 + 16: 0x 0 + 17: 0x 60f + 18: 0x 1 + 19: 0x 0 +event 38: currentvalue of d1a0 is 50 +event 39: EOS prop d1a0 info record, datasize is 80 +event 39: Unknown EOS property d1a0, datasize is 80, using uint32 + 0: 0x 50 + 1: 0x 1 + 2: 0x 4 + 3: 0x 44 + 4: 0x 5 + 5: 0x 701 + 6: 0x 1 + 7: 0x 0 + 8: 0x 704 + 9: 0x 1 + 10: 0x 0 + 11: 0x 706 + 12: 0x 1 + 13: 0x 0 + 14: 0x 80b + 15: 0x 1 + 16: 0x 0 + 17: 0x 80f + 18: 0x 1 + 19: 0x 0 +event 39: currentvalue of d1a0 is 50 +event 40: EOS prop d1a1 info record, datasize is 24 +event 40: Unknown EOS property d1a1, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 14 + 13: 00 + 14: 00 + 15: 00 + 16: 02 + 17: 00 + 18: 00 + 19: 00 + 20: 02 + 21: 00 + 22: 03 + 23: 00 +event 41: EOS prop d1a8 info record, datasize is 4 +event 41: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 41: currentvalue of d1a8 is 1 +event 42: EOS prop d1ab info record, datasize is 4 +event 42: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 42: currentvalue of d1ab is 0 +event 43: EOS prop d1b0 info record, datasize is 4 +event 43: currentvalue of d1b0 is 0 +event 44: EOS prop d1b1 info record, datasize is 4 +event 44: currentvalue of d1b1 is 1 +event 45: EOS prop d1b2 info record, datasize is 4 +event 45: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 45: currentvalue of d1b2 is 0 +event 46: EOS prop d1b3 info record, datasize is 4 +event 46: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 46: currentvalue of d1b3 is 0 +event 47: EOS prop d1b4 info record, datasize is 4 +event 47: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 0 +event 47: currentvalue of d1b4 is 0 +event 48: EOS prop d1b5 info record, datasize is 48 +event 48: Unknown EOS property d1b5, datasize is 48, using uint32 + 0: 0x 30 + 1: 0x 0 + 2: 0xfaeeff00 + 3: 0xff767abe + 4: 0xfbbfdbbb + 5: 0xdbfafee7 + 6: 0xffefa6ff + 7: 0xeefecbf3 + 8: 0xdae9faff + 9: 0xf6faaaae + 10: 0x 4000400 + 11: 0x 4000400 +event 48: currentvalue of d1b5 is 30 +event 49: EOS prop d1b6 info record, datasize is 4 +event 49: Unknown EOS property d1b6, datasize is 4, using uint32 + 0: 0x 1450 +event 49: currentvalue of d1b6 is 1450 +event 50: EOS prop d1a9 info record, datasize is 4 +event 50: currentvalue of d1a9 is 2 +event 51: EOS prop d145 info record, datasize is 56 +event 51: Unknown EOS property d145, datasize is 56 + 0: 38 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: e9 + 49: 01 + 50: 00 + 51: 04 + 52: 00 + 53: 04 + 54: 9f + 55: 02 +event 52: EOS prop d1ac info record, datasize is 4 +event 52: currentvalue of d1ac is 19d0 +event 53: EOS prop d11e info record, datasize is 4 +event 53: currentvalue of d11e is 20001 +event 54: EOS prop d11f info record, datasize is 4 +event 54: currentvalue of d11f is 91900000 +event 55: EOS prop d1d9 info record, datasize is 4 +event 55: currentvalue of d1d9 is 0 +event 56: EOS prop d1ba info record, datasize is 4 +event 56: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 0 +event 56: currentvalue of d1ba is 0 +event 57: EOS prop d1be info record, datasize is 20 +event 57: Unknown EOS property d1be, datasize is 20 + 0: 14 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 19 + 13: 00 + 14: 00 + 15: 00 + 16: 0c + 17: 00 + 18: 00 + 19: 00 +event 58: EOS prop d1bc info record, datasize is 4 +event 58: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 58: currentvalue of d1bc is 1 +event 59: EOS prop d1b8 info record, datasize is 4 +event 59: Unknown EOS property d1b8, datasize is 4, using uint32 + 0: 0x 0 +event 59: currentvalue of d1b8 is 0 +event 60: EOS prop d1d3 info record, datasize is 100 +event 60: Unknown EOS property d1d3, datasize is 100 + 0: 64 + 1: 00 + 2: 00 + 3: 00 + 4: 60 + 5: 00 + 6: 00 + 7: 00 + 8: 09 + 9: 00 + 10: 09 + 11: 00 + 12: 40 + 13: 14 + 14: 80 + 15: 0d + 16: 40 + 17: 14 + 18: 80 + 19: 0d + 20: 6c + 21: 00 + 22: 58 + 23: 00 + 24: 58 + 25: 00 + 26: 58 + 27: 00 + 28: 81 + 29: 00 + 30: 58 + 31: 00 + 32: 58 + 33: 00 + 34: 58 + 35: 00 + 36: 6c + 37: 00 + 38: 56 + 39: 00 + 40: 6b + 41: 00 + 42: 6b + 43: 00 + 44: 6b + 45: 00 + 46: 83 + 47: 00 + 48: 6b + 49: 00 + 50: 6b + 51: 00 + 52: 6b + 53: 00 + 54: 56 + 55: 00 + 56: 00 + 57: 00 + 58: a4 + 59: fc + 60: 5c + 61: 03 + 62: a8 + 63: fa + 64: 00 + 65: 00 + 66: 58 + 67: 05 + 68: a4 + 69: fc + 70: 5c + 71: 03 + 72: 00 + 73: 00 + 74: e7 + 75: 02 + 76: 89 + 77: 01 + 78: 89 + 79: 01 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 77 + 87: fe + 88: 77 + 89: fe + 90: 19 + 91: fd + 92: 00 + 93: 00 + 94: 10 + 95: 00 + 96: 00 + 97: 00 + 98: ff + 99: ff +event 61: EOS prop d1d8 info record, datasize is 64 +event 61: currentvalue of d1d8 is EF-S15-85mm f/3.5-5.6 IS USM +event 62: EOS prop d1b7 info record, datasize is 4 +event 62: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 1 +event 62: currentvalue of d1b7 is 1 +event 63: EOS prop d1b9 info record, datasize is 38 +event 63: Unknown EOS property d1b9, datasize is 38 + 0: 26 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 3a + 13: 00 + 14: 00 + 15: 00 + 16: 39 + 17: 00 + 18: 03 + 19: 80 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 32 + 29: 00 + 30: 00 + 31: 00 + 32: 3a + 33: 00 + 34: 03 + 35: 80 + 36: 00 + 37: 00 +event 64: EOS prop d1db info record, datasize is 14 +event 64: Unknown EOS property d1db, datasize is 14 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 03 + 5: 00 + 6: 00 + 7: 00 + 8: 2f + 9: 00 + 10: 00 + 11: 00 + 12: 28 + 13: 00 +event 65: EOS prop d1dc info record, datasize is 4 +event 65: currentvalue of d1dc is 0 +event 66: EOS prop d1df info record, datasize is 4 +event 66: Unknown EOS property d1df, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 67: EOS prop d1bd info record, datasize is 4 +event 67: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 68: EOS prop d1c1 info record, datasize is 4 +event 68: Unknown EOS property d1c1, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 69: EOS prop d1c0 info record, datasize is 4 +event 69: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 70: EOS prop d1bf info record, datasize is 4 +event 70: Unknown EOS property d1bf, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 71: EOS prop d1c4 info record, datasize is 4 +event 71: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 72: EOS prop d1c2 info record, datasize is 4 +event 72: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 73: EOS prop d1c5 info record, datasize is 4 +event 73: Unknown EOS property d1c5, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 74: EOS prop d194 info record, datasize is 4 +event 74: Unknown EOS property d194, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 75: EOS prop d198 info record, datasize is 4 +event 75: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 76: EOS prop d1c7 info record, datasize is 4 +event 76: Unknown EOS property d1c7, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 77: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 02 + 11: 00 +event 78: EOS prop d105 desc record, datasize 0, propxtype 1 +event 78: propxtype is 1 for d105, unhandled. +event 79: EOS prop d108 desc record, datasize 12, propxtype 3 +event 79: propxtype is 3, prop is 0xd108, data type is 0x0004, propxcnt is 3. +event 79: suppval[0] of d108 is 0x0. +event 79: suppval[1] of d108 is 0x2. +event 79: suppval[2] of d108 is 0x1. +event 80: EOS prop d106 desc record, datasize 20, propxtype 3 +event 80: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 5. +event 80: suppval[0] of d106 is 0x0. +event 80: suppval[1] of d106 is 0x4. +event 80: suppval[2] of d106 is 0x5. +event 80: suppval[3] of d106 is 0x11. +event 80: suppval[4] of d106 is 0x10. +event 81: EOS prop d107 desc record, datasize 16, propxtype 3 +event 81: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 4. +event 81: suppval[0] of d107 is 0x3. +event 81: suppval[1] of d107 is 0x4. +event 81: suppval[2] of d107 is 0x1. +event 81: suppval[3] of d107 is 0x5. +event 82: EOS prop d109 desc record, datasize 36, propxtype 3 +event 82: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 9. +event 82: suppval[0] of d109 is 0x0. +event 82: suppval[1] of d109 is 0x1. +event 82: suppval[2] of d109 is 0x8. +event 82: suppval[3] of d109 is 0x2. +event 82: suppval[4] of d109 is 0x3. +event 82: suppval[5] of d109 is 0x4. +event 82: suppval[6] of d109 is 0x5. +event 82: suppval[7] of d109 is 0x6. +event 82: suppval[8] of d109 is 0x9. +event 83: EOS prop d10a desc record, datasize 304, propxtype 3 +event 83: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +event 83: suppval[0] of d10a is 0x9c4. +event 83: suppval[1] of d10a is 0xa28. +event 83: suppval[2] of d10a is 0xa8c. +event 83: suppval[3] of d10a is 0xaf0. +event 83: suppval[4] of d10a is 0xb54. +event 83: suppval[5] of d10a is 0xbb8. +event 83: suppval[6] of d10a is 0xc1c. +event 83: suppval[7] of d10a is 0xc80. +event 83: suppval[8] of d10a is 0xce4. +event 83: suppval[9] of d10a is 0xd48. +event 83: suppval[10] of d10a is 0xdac. +event 83: suppval[11] of d10a is 0xe10. +event 83: suppval[12] of d10a is 0xe74. +event 83: suppval[13] of d10a is 0xed8. +event 83: suppval[14] of d10a is 0xf3c. +event 83: suppval[15] of d10a is 0xfa0. +event 83: suppval[16] of d10a is 0x1004. +event 83: suppval[17] of d10a is 0x1068. +event 83: suppval[18] of d10a is 0x10cc. +event 83: suppval[19] of d10a is 0x1130. +event 83: suppval[20] of d10a is 0x1194. +event 83: suppval[21] of d10a is 0x11f8. +event 83: suppval[22] of d10a is 0x125c. +event 83: suppval[23] of d10a is 0x12c0. +event 83: suppval[24] of d10a is 0x1324. +event 83: suppval[25] of d10a is 0x1388. +event 83: suppval[26] of d10a is 0x13ec. +event 83: suppval[27] of d10a is 0x1450. +event 83: suppval[28] of d10a is 0x14b4. +event 83: suppval[29] of d10a is 0x1518. +event 83: suppval[30] of d10a is 0x157c. +event 83: suppval[31] of d10a is 0x15e0. +event 83: suppval[32] of d10a is 0x1644. +event 83: suppval[33] of d10a is 0x16a8. +event 83: suppval[34] of d10a is 0x170c. +event 83: suppval[35] of d10a is 0x1770. +event 83: suppval[36] of d10a is 0x17d4. +event 83: suppval[37] of d10a is 0x1838. +event 83: suppval[38] of d10a is 0x189c. +event 83: suppval[39] of d10a is 0x1900. +event 83: suppval[40] of d10a is 0x1964. +event 83: suppval[41] of d10a is 0x19c8. +event 83: suppval[42] of d10a is 0x1a2c. +event 83: suppval[43] of d10a is 0x1a90. +event 83: suppval[44] of d10a is 0x1af4. +event 83: suppval[45] of d10a is 0x1b58. +event 83: suppval[46] of d10a is 0x1bbc. +event 83: suppval[47] of d10a is 0x1c20. +event 83: suppval[48] of d10a is 0x1c84. +event 83: suppval[49] of d10a is 0x1ce8. +event 83: suppval[50] of d10a is 0x1d4c. +event 83: suppval[51] of d10a is 0x1db0. +event 83: suppval[52] of d10a is 0x1e14. +event 83: suppval[53] of d10a is 0x1e78. +event 83: suppval[54] of d10a is 0x1edc. +event 83: suppval[55] of d10a is 0x1f40. +event 83: suppval[56] of d10a is 0x1fa4. +event 83: suppval[57] of d10a is 0x2008. +event 83: suppval[58] of d10a is 0x206c. +event 83: suppval[59] of d10a is 0x20d0. +event 83: suppval[60] of d10a is 0x2134. +event 83: suppval[61] of d10a is 0x2198. +event 83: suppval[62] of d10a is 0x21fc. +event 83: suppval[63] of d10a is 0x2260. +event 83: suppval[64] of d10a is 0x22c4. +event 83: suppval[65] of d10a is 0x2328. +event 83: suppval[66] of d10a is 0x238c. +event 83: suppval[67] of d10a is 0x23f0. +event 83: suppval[68] of d10a is 0x2454. +event 83: suppval[69] of d10a is 0x24b8. +event 83: suppval[70] of d10a is 0x251c. +event 83: suppval[71] of d10a is 0x2580. +event 83: suppval[72] of d10a is 0x25e4. +event 83: suppval[73] of d10a is 0x2648. +event 83: suppval[74] of d10a is 0x26ac. +event 83: suppval[75] of d10a is 0x2710. +event 84: EOS prop d10b desc record, datasize 76, propxtype 3 +event 84: propxtype is 3, prop is 0xd10b, data type is 0x0003, propxcnt is 19. +event 84: suppval[0] of d10b is 0xfff7. +event 84: suppval[1] of d10b is 0xfff8. +event 84: suppval[2] of d10b is 0xfff9. +event 84: suppval[3] of d10b is 0xfffa. +event 84: suppval[4] of d10b is 0xfffb. +event 84: suppval[5] of d10b is 0xfffc. +event 84: suppval[6] of d10b is 0xfffd. +event 84: suppval[7] of d10b is 0xfffe. +event 84: suppval[8] of d10b is 0xffff. +event 84: suppval[9] of d10b is 0x0. +event 84: suppval[10] of d10b is 0x1. +event 84: suppval[11] of d10b is 0x2. +event 84: suppval[12] of d10b is 0x3. +event 84: suppval[13] of d10b is 0x4. +event 84: suppval[14] of d10b is 0x5. +event 84: suppval[15] of d10b is 0x6. +event 84: suppval[16] of d10b is 0x7. +event 84: suppval[17] of d10b is 0x8. +event 84: suppval[18] of d10b is 0x9. +event 85: EOS prop d10c desc record, datasize 76, propxtype 3 +event 85: propxtype is 3, prop is 0xd10c, data type is 0x0003, propxcnt is 19. +event 85: suppval[0] of d10c is 0xfff7. +event 85: suppval[1] of d10c is 0xfff8. +event 85: suppval[2] of d10c is 0xfff9. +event 85: suppval[3] of d10c is 0xfffa. +event 85: suppval[4] of d10c is 0xfffb. +event 85: suppval[5] of d10c is 0xfffc. +event 85: suppval[6] of d10c is 0xfffd. +event 85: suppval[7] of d10c is 0xfffe. +event 85: suppval[8] of d10c is 0xffff. +event 85: suppval[9] of d10c is 0x0. +event 85: suppval[10] of d10c is 0x1. +event 85: suppval[11] of d10c is 0x2. +event 85: suppval[12] of d10c is 0x3. +event 85: suppval[13] of d10c is 0x4. +event 85: suppval[14] of d10c is 0x5. +event 85: suppval[15] of d10c is 0x6. +event 85: suppval[16] of d10c is 0x7. +event 85: suppval[17] of d10c is 0x8. +event 85: suppval[18] of d10c is 0x9. +event 86: EOS prop d10d desc record, datasize 16, propxtype 3 +event 86: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +event 86: suppval[0] of d10d is 0x0. +event 86: suppval[1] of d10d is 0x1. +event 86: suppval[2] of d10d is 0x2. +event 86: suppval[3] of d10d is 0x3. +event 87: EOS prop d10e desc record, datasize 16, propxtype 3 +event 87: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +event 87: suppval[0] of d10e is 0x0. +event 87: suppval[1] of d10e is 0x1. +event 87: suppval[2] of d10e is 0x2. +event 87: suppval[3] of d10e is 0x3. +event 88: EOS prop d10f desc record, datasize 8, propxtype 3 +event 88: propxtype is 3, prop is 0xd10f, data type is 0x0004, propxcnt is 2. +event 88: suppval[0] of d10f is 0x1. +event 88: suppval[1] of d10f is 0x2. +event 89: EOS prop d11b desc record, datasize 0, propxtype 1 +event 89: propxtype is 1 for d11b, unhandled. +event 90: EOS prop d114 desc record, datasize 0, propxtype 1 +event 90: propxtype is 1 for d114, unhandled. +event 91: EOS prop d116 desc record, datasize 0, propxtype 1 +event 91: propxtype is 1 for d116, unhandled. +event 92: EOS prop d119 desc record, datasize 0, propxtype 1 +event 92: propxtype is 1 for d119, unhandled. +event 93: EOS prop d11a desc record, datasize 0, propxtype 1 +event 93: propdesc d11a, default value not found. +event 94: EOS prop d110 desc record, datasize 36, propxtype 3 +event 94: propxtype is 3, prop is 0xd110, data type is 0x0002, propxcnt is 9. +event 94: suppval[0] of d110 is 0x81. +event 94: suppval[1] of d110 is 0x82. +event 94: suppval[2] of d110 is 0x83. +event 94: suppval[3] of d110 is 0x84. +event 94: suppval[4] of d110 is 0x85. +event 94: suppval[5] of d110 is 0x86. +event 94: suppval[6] of d110 is 0x21. +event 94: suppval[7] of d110 is 0x22. +event 94: suppval[8] of d110 is 0x23. +event 95: EOS prop d115 desc record, datasize 0, propxtype 7 +event 95: propdesc d115, default value not found. +event 96: EOS prop d101 desc record, datasize 68, propxtype 3 +event 96: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 17. +event 96: suppval[0] of d101 is 0x25. +event 96: suppval[1] of d101 is 0x28. +event 96: suppval[2] of d101 is 0x2b. +event 96: suppval[3] of d101 is 0x2d. +event 96: suppval[4] of d101 is 0x30. +event 96: suppval[5] of d101 is 0x33. +event 96: suppval[6] of d101 is 0x35. +event 96: suppval[7] of d101 is 0x38. +event 96: suppval[8] of d101 is 0x3b. +event 96: suppval[9] of d101 is 0x3d. +event 96: suppval[10] of d101 is 0x40. +event 96: suppval[11] of d101 is 0x43. +event 96: suppval[12] of d101 is 0x45. +event 96: suppval[13] of d101 is 0x48. +event 96: suppval[14] of d101 is 0x4b. +event 96: suppval[15] of d101 is 0x4d. +event 96: suppval[16] of d101 is 0x50. +event 97: EOS prop d102 desc record, datasize 0, propxtype 3 +event 98: EOS prop d103 desc record, datasize 80, propxtype 3 +event 98: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 20. +event 98: suppval[0] of d103 is 0x0. +event 98: suppval[1] of d103 is 0x48. +event 98: suppval[2] of d103 is 0x4b. +event 98: suppval[3] of d103 is 0x4d. +event 98: suppval[4] of d103 is 0x50. +event 98: suppval[5] of d103 is 0x53. +event 98: suppval[6] of d103 is 0x55. +event 98: suppval[7] of d103 is 0x58. +event 98: suppval[8] of d103 is 0x5b. +event 98: suppval[9] of d103 is 0x5d. +event 98: suppval[10] of d103 is 0x60. +event 98: suppval[11] of d103 is 0x63. +event 98: suppval[12] of d103 is 0x65. +event 98: suppval[13] of d103 is 0x68. +event 98: suppval[14] of d103 is 0x6b. +event 98: suppval[15] of d103 is 0x6d. +event 98: suppval[16] of d103 is 0x70. +event 98: suppval[17] of d103 is 0x73. +event 98: suppval[18] of d103 is 0x75. +event 98: suppval[19] of d103 is 0x78. +event 99: EOS prop d104 desc record, datasize 124, propxtype 3 +event 99: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 31. +event 99: suppval[0] of d104 is 0xd8. +event 99: suppval[1] of d104 is 0xdb. +event 99: suppval[2] of d104 is 0xdd. +event 99: suppval[3] of d104 is 0xe0. +event 99: suppval[4] of d104 is 0xe3. +event 99: suppval[5] of d104 is 0xe5. +event 99: suppval[6] of d104 is 0xe8. +event 99: suppval[7] of d104 is 0xeb. +event 99: suppval[8] of d104 is 0xed. +event 99: suppval[9] of d104 is 0xf0. +event 99: suppval[10] of d104 is 0xf3. +event 99: suppval[11] of d104 is 0xf5. +event 99: suppval[12] of d104 is 0xf8. +event 99: suppval[13] of d104 is 0xfb. +event 99: suppval[14] of d104 is 0xfd. +event 99: suppval[15] of d104 is 0x0. +event 99: suppval[16] of d104 is 0x3. +event 99: suppval[17] of d104 is 0x5. +event 99: suppval[18] of d104 is 0x8. +event 99: suppval[19] of d104 is 0xb. +event 99: suppval[20] of d104 is 0xd. +event 99: suppval[21] of d104 is 0x10. +event 99: suppval[22] of d104 is 0x13. +event 99: suppval[23] of d104 is 0x15. +event 99: suppval[24] of d104 is 0x18. +event 99: suppval[25] of d104 is 0x1b. +event 99: suppval[26] of d104 is 0x1d. +event 99: suppval[27] of d104 is 0x20. +event 99: suppval[28] of d104 is 0x23. +event 99: suppval[29] of d104 is 0x25. +event 99: suppval[30] of d104 is 0x28. +event 100: EOS prop d11d desc record, datasize 0, propxtype 1 +event 100: propxtype is 1 for d11d, unhandled. +event 101: EOS prop d111 desc record, datasize 0, propxtype 1 +event 101: propxtype is 1 for d111, unhandled. +event 102: EOS prop d112 desc record, datasize 0, propxtype 1 +event 102: propxtype is 1 for d112, unhandled. +event 103: EOS prop d113 desc record, datasize 0, propxtype 7 +event 103: propxtype is 7 for d113, unhandled. +event 104: EOS prop d120 desc record, datasize 1084, propxtype 3 +event 104: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 35. +event 104: suppval[0] of d120 is 0x300. +event 104: suppval[1] of d120 is 0x200. +event 104: suppval[2] of d120 is 0x1300. +event 104: suppval[3] of d120 is 0x1200. +event 104: suppval[4] of d120 is 0xe300. +event 104: suppval[5] of d120 is 0xe200. +event 104: suppval[6] of d120 is 0xf300. +event 104: suppval[7] of d120 is 0x300. +event 104: suppval[8] of d120 is 0x403. +event 104: suppval[9] of d120 is 0x402. +event 104: suppval[10] of d120 is 0x413. +event 104: suppval[11] of d120 is 0x412. +event 104: suppval[12] of d120 is 0x4e3. +event 104: suppval[13] of d120 is 0x4e2. +event 104: suppval[14] of d120 is 0x4f3. +event 104: suppval[15] of d120 is 0x403. +event 104: suppval[16] of d120 is 0x1403. +event 104: suppval[17] of d120 is 0x1402. +event 104: suppval[18] of d120 is 0x1413. +event 104: suppval[19] of d120 is 0x1412. +event 104: suppval[20] of d120 is 0x14e3. +event 104: suppval[21] of d120 is 0x14e2. +event 104: suppval[22] of d120 is 0x14f3. +event 104: suppval[23] of d120 is 0x1403. +event 104: suppval[24] of d120 is 0x2403. +event 104: suppval[25] of d120 is 0x2402. +event 104: suppval[26] of d120 is 0x2413. +event 104: suppval[27] of d120 is 0x2412. +event 104: suppval[28] of d120 is 0x24e3. +event 104: suppval[29] of d120 is 0x24e2. +event 104: suppval[30] of d120 is 0x24f3. +event 104: suppval[31] of d120 is 0x2403. +event 104: suppval[32] of d120 is 0x400. +event 104: suppval[33] of d120 is 0x1400. +event 104: suppval[34] of d120 is 0x2400. +event 105: EOS prop d122 desc record, datasize 1084, propxtype 3 +event 105: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 35. +event 105: suppval[0] of d122 is 0x300. +event 105: suppval[1] of d122 is 0x200. +event 105: suppval[2] of d122 is 0x1300. +event 105: suppval[3] of d122 is 0x1200. +event 105: suppval[4] of d122 is 0xe300. +event 105: suppval[5] of d122 is 0xe200. +event 105: suppval[6] of d122 is 0xf300. +event 105: suppval[7] of d122 is 0x300. +event 105: suppval[8] of d122 is 0x403. +event 105: suppval[9] of d122 is 0x402. +event 105: suppval[10] of d122 is 0x413. +event 105: suppval[11] of d122 is 0x412. +event 105: suppval[12] of d122 is 0x4e3. +event 105: suppval[13] of d122 is 0x4e2. +event 105: suppval[14] of d122 is 0x4f3. +event 105: suppval[15] of d122 is 0x403. +event 105: suppval[16] of d122 is 0x1403. +event 105: suppval[17] of d122 is 0x1402. +event 105: suppval[18] of d122 is 0x1413. +event 105: suppval[19] of d122 is 0x1412. +event 105: suppval[20] of d122 is 0x14e3. +event 105: suppval[21] of d122 is 0x14e2. +event 105: suppval[22] of d122 is 0x14f3. +event 105: suppval[23] of d122 is 0x1403. +event 105: suppval[24] of d122 is 0x2403. +event 105: suppval[25] of d122 is 0x2402. +event 105: suppval[26] of d122 is 0x2413. +event 105: suppval[27] of d122 is 0x2412. +event 105: suppval[28] of d122 is 0x24e3. +event 105: suppval[29] of d122 is 0x24e2. +event 105: suppval[30] of d122 is 0x24f3. +event 105: suppval[31] of d122 is 0x2403. +event 105: suppval[32] of d122 is 0x400. +event 105: suppval[33] of d122 is 0x1400. +event 105: suppval[34] of d122 is 0x2400. +event 106: EOS prop d150 desc record, datasize 0, propxtype 7 +event 106: propxtype is 7 for d150, unhandled. +event 107: EOS prop d151 desc record, datasize 0, propxtype 7 +event 107: propxtype is 7 for d151, unhandled. +event 108: EOS prop d152 desc record, datasize 0, propxtype 7 +event 108: propxtype is 7 for d152, unhandled. +event 109: EOS prop d153 desc record, datasize 0, propxtype 7 +event 109: propxtype is 7 for d153, unhandled. +event 110: EOS prop d154 desc record, datasize 0, propxtype 7 +event 110: propxtype is 7 for d154, unhandled. +event 111: EOS prop d155 desc record, datasize 0, propxtype 7 +event 111: propxtype is 7 for d155, unhandled. +event 112: EOS prop d160 desc record, datasize 0, propxtype 7 +event 112: propxtype is 7 for d160, unhandled. +event 113: EOS prop d161 desc record, datasize 0, propxtype 7 +event 113: propxtype is 7 for d161, unhandled. +event 114: EOS prop d162 desc record, datasize 0, propxtype 7 +event 114: propxtype is 7 for d162, unhandled. +event 115: EOS prop d170 desc record, datasize 0, propxtype 7 +event 115: propdesc d170, default value not found. +event 116: EOS prop d171 desc record, datasize 0, propxtype 7 +event 116: propdesc d171, default value not found. +event 117: EOS prop d172 desc record, datasize 0, propxtype 7 +event 117: propdesc d172, default value not found. +event 118: EOS prop d11c desc record, datasize 12, propxtype 3 +event 118: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +event 118: suppval[0] of d11c is 0x2. +event 118: suppval[1] of d11c is 0x4. +event 118: suppval[2] of d11c is 0x6. +event 119: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 119: propxtype is 7 for d1a0, unhandled. +event 120: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 120: propxtype is 7 for d1a1, unhandled. +event 121: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 121: propdesc d1a2, default value not found. +event 122: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 122: propxtype is 1 for d1a8, unhandled. +event 123: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 123: propxtype is 1 for d1ab, unhandled. +event 124: EOS prop d1b0 desc record, datasize 28, propxtype 3 +event 124: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 7. +event 124: suppval[0] of d1b0 is 0x1. +event 124: suppval[1] of d1b0 is 0x2. +event 124: suppval[2] of d1b0 is 0x3. +event 124: suppval[3] of d1b0 is 0x4. +event 124: suppval[4] of d1b0 is 0x5. +event 124: suppval[5] of d1b0 is 0x6. +event 124: suppval[6] of d1b0 is 0x7. +event 125: EOS prop d1b1 desc record, datasize 8, propxtype 3 +event 125: propxtype is 3, prop is 0xd1b1, data type is 0x0004, propxcnt is 2. +event 125: suppval[0] of d1b1 is 0x0. +event 125: suppval[1] of d1b1 is 0x1. +event 126: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 126: propxtype is 7 for d1b2, unhandled. +event 127: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 127: propxtype is 7 for d1b3, unhandled. +event 128: EOS prop d1b4 desc record, datasize 40, propxtype 3 +event 128: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 10. +event 128: suppval[0] of d1b4 is 0x0. +event 128: suppval[1] of d1b4 is 0x1. +event 128: suppval[2] of d1b4 is 0x8. +event 128: suppval[3] of d1b4 is 0x2. +event 128: suppval[4] of d1b4 is 0x3. +event 128: suppval[5] of d1b4 is 0x4. +event 128: suppval[6] of d1b4 is 0x5. +event 128: suppval[7] of d1b4 is 0x6. +event 128: suppval[8] of d1b4 is 0x9. +event 128: suppval[9] of d1b4 is 0x8000. +event 129: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 129: propxtype is 7 for d1b5, unhandled. +event 130: EOS prop d1b6 desc record, datasize 304, propxtype 3 +event 130: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +event 130: suppval[0] of d1b6 is 0x9c4. +event 130: suppval[1] of d1b6 is 0xa28. +event 130: suppval[2] of d1b6 is 0xa8c. +event 130: suppval[3] of d1b6 is 0xaf0. +event 130: suppval[4] of d1b6 is 0xb54. +event 130: suppval[5] of d1b6 is 0xbb8. +event 130: suppval[6] of d1b6 is 0xc1c. +event 130: suppval[7] of d1b6 is 0xc80. +event 130: suppval[8] of d1b6 is 0xce4. +event 130: suppval[9] of d1b6 is 0xd48. +event 130: suppval[10] of d1b6 is 0xdac. +event 130: suppval[11] of d1b6 is 0xe10. +event 130: suppval[12] of d1b6 is 0xe74. +event 130: suppval[13] of d1b6 is 0xed8. +event 130: suppval[14] of d1b6 is 0xf3c. +event 130: suppval[15] of d1b6 is 0xfa0. +event 130: suppval[16] of d1b6 is 0x1004. +event 130: suppval[17] of d1b6 is 0x1068. +event 130: suppval[18] of d1b6 is 0x10cc. +event 130: suppval[19] of d1b6 is 0x1130. +event 130: suppval[20] of d1b6 is 0x1194. +event 130: suppval[21] of d1b6 is 0x11f8. +event 130: suppval[22] of d1b6 is 0x125c. +event 130: suppval[23] of d1b6 is 0x12c0. +event 130: suppval[24] of d1b6 is 0x1324. +event 130: suppval[25] of d1b6 is 0x1388. +event 130: suppval[26] of d1b6 is 0x13ec. +event 130: suppval[27] of d1b6 is 0x1450. +event 130: suppval[28] of d1b6 is 0x14b4. +event 130: suppval[29] of d1b6 is 0x1518. +event 130: suppval[30] of d1b6 is 0x157c. +event 130: suppval[31] of d1b6 is 0x15e0. +event 130: suppval[32] of d1b6 is 0x1644. +event 130: suppval[33] of d1b6 is 0x16a8. +event 130: suppval[34] of d1b6 is 0x170c. +event 130: suppval[35] of d1b6 is 0x1770. +event 130: suppval[36] of d1b6 is 0x17d4. +event 130: suppval[37] of d1b6 is 0x1838. +event 130: suppval[38] of d1b6 is 0x189c. +event 130: suppval[39] of d1b6 is 0x1900. +event 130: suppval[40] of d1b6 is 0x1964. +event 130: suppval[41] of d1b6 is 0x19c8. +event 130: suppval[42] of d1b6 is 0x1a2c. +event 130: suppval[43] of d1b6 is 0x1a90. +event 130: suppval[44] of d1b6 is 0x1af4. +event 130: suppval[45] of d1b6 is 0x1b58. +event 130: suppval[46] of d1b6 is 0x1bbc. +event 130: suppval[47] of d1b6 is 0x1c20. +event 130: suppval[48] of d1b6 is 0x1c84. +event 130: suppval[49] of d1b6 is 0x1ce8. +event 130: suppval[50] of d1b6 is 0x1d4c. +event 130: suppval[51] of d1b6 is 0x1db0. +event 130: suppval[52] of d1b6 is 0x1e14. +event 130: suppval[53] of d1b6 is 0x1e78. +event 130: suppval[54] of d1b6 is 0x1edc. +event 130: suppval[55] of d1b6 is 0x1f40. +event 130: suppval[56] of d1b6 is 0x1fa4. +event 130: suppval[57] of d1b6 is 0x2008. +event 130: suppval[58] of d1b6 is 0x206c. +event 130: suppval[59] of d1b6 is 0x20d0. +event 130: suppval[60] of d1b6 is 0x2134. +event 130: suppval[61] of d1b6 is 0x2198. +event 130: suppval[62] of d1b6 is 0x21fc. +event 130: suppval[63] of d1b6 is 0x2260. +event 130: suppval[64] of d1b6 is 0x22c4. +event 130: suppval[65] of d1b6 is 0x2328. +event 130: suppval[66] of d1b6 is 0x238c. +event 130: suppval[67] of d1b6 is 0x23f0. +event 130: suppval[68] of d1b6 is 0x2454. +event 130: suppval[69] of d1b6 is 0x24b8. +event 130: suppval[70] of d1b6 is 0x251c. +event 130: suppval[71] of d1b6 is 0x2580. +event 130: suppval[72] of d1b6 is 0x25e4. +event 130: suppval[73] of d1b6 is 0x2648. +event 130: suppval[74] of d1b6 is 0x26ac. +event 130: suppval[75] of d1b6 is 0x2710. +event 131: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 131: propxtype is 3, prop is 0xd1a9, data type is 0x0004, propxcnt is 5. +event 131: suppval[0] of d1a9 is 0x0. +event 131: suppval[1] of d1a9 is 0x2. +event 131: suppval[2] of d1a9 is 0x4. +event 131: suppval[3] of d1a9 is 0x8. +event 131: suppval[4] of d1a9 is 0xff. +event 132: EOS prop d145 desc record, datasize 0, propxtype 7 +event 132: propxtype is 7 for d145, unhandled. +event 133: EOS prop d1ac desc record, datasize 0, propxtype 1 +event 133: propxtype is 1 for d1ac, unhandled. +event 134: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 134: propdesc d1ad, default value not found. +event 135: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 135: propdesc d1ae, default value not found. +event 136: EOS prop d11e desc record, datasize 0, propxtype 1 +event 136: propxtype is 1 for d11e, unhandled. +event 137: EOS prop d11f desc record, datasize 0, propxtype 1 +event 137: propxtype is 1 for d11f, unhandled. +event 138: EOS prop d1af desc record, datasize 0, propxtype 1 +event 138: propdesc d1af, default value not found. +event 139: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 139: propdesc d1d0, default value not found. +event 140: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 140: propdesc d1d1, default value not found. +event 141: EOS prop d1d9 desc record, datasize 40, propxtype 3 +event 141: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +event 141: suppval[0] of d1d9 is 0x0. +event 141: suppval[1] of d1d9 is 0x3. +event 141: suppval[2] of d1d9 is 0x5. +event 141: suppval[3] of d1d9 is 0x8. +event 141: suppval[4] of d1d9 is 0xb. +event 141: suppval[5] of d1d9 is 0xd. +event 141: suppval[6] of d1d9 is 0x10. +event 141: suppval[7] of d1d9 is 0x13. +event 141: suppval[8] of d1d9 is 0x15. +event 141: suppval[9] of d1d9 is 0x18. +event 142: EOS prop d1ba desc record, datasize 12, propxtype 3 +event 142: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 3. +event 142: suppval[0] of d1ba is 0x1. +event 142: suppval[1] of d1ba is 0x2. +event 142: suppval[2] of d1ba is 0x0. +event 143: EOS prop d1be desc record, datasize 0, propxtype 3 +event 144: EOS prop d1bc desc record, datasize 8, propxtype 3 +event 144: propxtype is 3, prop is 0xd1bc, data type is 0x0006, propxcnt is 2. +event 144: suppval[0] of d1bc is 0x0. +event 144: suppval[1] of d1bc is 0x1. +event 145: EOS prop d1b8 desc record, datasize 0, propxtype 3 +event 146: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 146: propxtype is 7 for d1d3, unhandled. +event 147: EOS prop d1d8 desc record, datasize 0, propxtype 1 +event 147: propxtype is 1 for d1d8, unhandled. +event 148: EOS prop d17f desc record, datasize 0, propxtype 1 +event 148: propdesc d17f, default value not found. +event 149: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 149: propxtype is 1 for d1b7, unhandled. +event 150: EOS prop d1b9 desc record, datasize 0, propxtype 7 +event 150: propxtype is 7 for d1b9, unhandled. +event 151: EOS prop d1db desc record, datasize 0, propxtype 7 +event 151: propxtype is 7 for d1db, unhandled. +event 152: EOS prop d1dc desc record, datasize 12, propxtype 3 +event 152: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 3. +event 152: suppval[0] of d1dc is 0x0. +event 152: suppval[1] of d1dc is 0x1. +event 152: suppval[2] of d1dc is 0x2. +event 153: EOS prop d1df desc record, datasize 0, propxtype 3 +event 154: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 154: propxtype is 1 for d1bd, unhandled. +event 155: EOS prop d1c1 desc record, datasize 16, propxtype 3 +event 155: propxtype is 3, prop is 0xd1c1, data type is 0x0000, propxcnt is 4. +event 155: data type 0x0000 of d1c1 unhandled, raw values: + 0: 0x 0 + 1: 0x 1 + 2: 0x 2 + 3: 0x 3 +event 156: EOS prop d1c0 desc record, datasize 0, propxtype 1 +event 156: propxtype is 1 for d1c0, unhandled. +event 157: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 157: propxtype is 7 for d1bf, unhandled. +event 158: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 158: propxtype is 1 for d1c4, unhandled. +event 159: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 159: propxtype is 1 for d1c2, unhandled. +event 160: EOS prop d1c5 desc record, datasize 0, propxtype 3 +event 161: EOS prop d194 desc record, datasize 16, propxtype 3 +event 161: propxtype is 3, prop is 0xd194, data type is 0x0000, propxcnt is 4. +event 161: data type 0x0000 of d194 unhandled, raw values: + 0: 0x 0 + 1: 0x 2 + 2: 0x 7 + 3: 0x 1 +event 162: EOS prop d198 desc record, datasize 0, propxtype 1 +event 162: propxtype is 1 for d198, unhandled. +event 163: EOS prop d1c7 desc record, datasize 0, propxtype 7 +event 163: propxtype is 7 for d1c7, unhandled. + +event: c181 +event: c182 +event: c183 +event: c184 +event: c185 +event: c186 +event: c187 +event: c188 +event: c189 +event: c18a +event: c18b +event: c18d +event: c18e +event: c18f +event: c190 +event: c191 +event: c1a0 +event: c1a1 +deviceprop: d105 +deviceprop: d108 +deviceprop: d106 +deviceprop: d107 +deviceprop: d109 +deviceprop: d10a +deviceprop: d10b +deviceprop: d10c +deviceprop: d10d +deviceprop: d10e +deviceprop: d10f +deviceprop: d11b +deviceprop: d114 +deviceprop: d116 +deviceprop: d119 +deviceprop: d11a +deviceprop: d110 +deviceprop: d115 +deviceprop: d101 +deviceprop: d102 +deviceprop: d103 +deviceprop: d104 +deviceprop: d11d +deviceprop: d111 +deviceprop: d112 +deviceprop: d113 +deviceprop: d120 +deviceprop: d122 +deviceprop: d150 +deviceprop: d151 +deviceprop: d152 +deviceprop: d153 +deviceprop: d154 +deviceprop: d155 +deviceprop: d160 +deviceprop: d161 +deviceprop: d162 +deviceprop: d170 +deviceprop: d171 +deviceprop: d172 +deviceprop: d11c +deviceprop: d1a0 +deviceprop: d1a1 +deviceprop: d1a2 +deviceprop: d1a5 +deviceprop: d1a8 +deviceprop: d1ab +deviceprop: d1b0 +deviceprop: d1b1 +deviceprop: d1b2 +deviceprop: d1b3 +deviceprop: d1b4 +deviceprop: d1b5 +deviceprop: d1b6 +deviceprop: d1a9 +deviceprop: d145 +deviceprop: d1ac +deviceprop: d1ad +deviceprop: d1ae +deviceprop: d11e +deviceprop: d11f +deviceprop: d1af +deviceprop: d1d0 +deviceprop: d1d1 +deviceprop: d1d9 +deviceprop: d1ba +deviceprop: d1be +deviceprop: d1bc +deviceprop: d1b8 +deviceprop: d1d3 +deviceprop: d1d8 +deviceprop: d17f +deviceprop: d1b7 +deviceprop: d1b9 +deviceprop: d1db +deviceprop: d1dc +deviceprop: d1df +deviceprop: d1bd +deviceprop: d1c1 +deviceprop: d1c0 +deviceprop: d1bf +deviceprop: d1c4 +deviceprop: d1c2 +deviceprop: d1c5 +deviceprop: d194 +deviceprop: d198 +deviceprop: d1c7 +unk: 0000 +unk: 0001 +unk: 0002 +unk: 0004 + + +event 0: EOS prop d115 info record, datasize is 1 +event 0: currentvalue of d115 is +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is Matthias Jansen +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is Matthias Jansen +event 3: EOS prop d1af info record, datasize is 11 +event 3: currentvalue of d1af is 1280627086 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos650d-focusinfoex.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos650d-focusinfoex.txt new file mode 100644 index 00000000..769506e8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos650d-focusinfoex.txt @@ -0,0 +1,149 @@ +9 AF Sensoren +0: 1a 01 00 00 +4: 16 01 + +6: 04 00 version 4? +8: 1f 00 31 +10: 09 00 9 + +size: +12: 40 14 5184 +14: 80 0d 3456 +16: 40 14 5184 +18: 80 0d 3456 + +20: 81 00 +22: 81 00 +24: 81 00 +26: b5 00 +28: de 00 +30: b5 00 +32: 81 00 +34: 81 00 +36: 81 00 +38: 00 00 +40: 00 00 +42: 00 00 +44: 00 00 +46: 00 00 +48: 00 00 +50: 00 00 +52: 00 00 +54: 00 00 +56: 00 00 +58: 00 00 +60: 00 00 +62: 00 00 +64: 00 00 +66: 00 00 +68: 00 00 +70: 00 00 +72: 00 00 +74: 00 00 +76: 00 00 +78: 00 00 +80: 00 00 + +82: ac 00 +84: ac 00 +86: ac 00 +88: 75 00 +90: e0 00 +92: 75 00 +94: ac 00 +96: ac 00 +98: ac 00 +100: 00 00 +102: 00 00 +104: 00 00 +106: 00 00 +108: 00 00 +110: 00 00 +112: 00 00 +114: 00 00 +116: 00 00 +118: 00 00 +120: 00 00 +122: 00 00 +124: 00 00 +126: 00 00 +128: 00 00 +130: 00 00 +132: 00 00 +134: 00 00 +136: 00 00 +138: 00 00 +140: 00 00 +142: 00 00 + +144: a8 fa +146: cd fc +148: cd fc +150: 00 00 +152: 00 00 +154: 00 00 +156: 33 03 +158: 33 03 +160: 58 05 +162: 00 00 +164: 00 00 +166: 00 00 +168: 00 00 +170: 00 00 +172: 00 00 +174: 00 00 +176: 00 00 +178: 00 00 +180: 00 00 +182: 00 00 +184: 00 00 +186: 00 00 +188: 00 00 +190: 00 00 +192: 00 00 +194: 00 00 +196: 00 00 +198: 00 00 +200: 00 00 +202: 00 00 +204: 00 00 + +206: 00 00 +208: 83 01 +210: 7d fe +212: fb 02 +214: 00 00 +216: 05 fd +218: 83 01 +220: 7d fe +222: 00 00 +224: 00 00 +226: 00 00 +228: 00 00 +230: 00 00 +232: 00 00 +234: 00 00 +236: 00 00 +238: 00 00 +240: 00 00 +242: 00 00 +244: 00 00 +246: 00 00 +248: 00 00 +250: 00 00 +252: 00 00 +254: 00 00 +256: 00 00 +258: 00 00 +260: 00 00 +262: 00 00 +264: 00 00 +266: 00 00 + +268: 00 00 +270: 00 00 +272: ff 01 +274: 00 00 +276: 00 00 +278: 00 00 +280: ff ff diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos650d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos650d.txt new file mode 100644 index 00000000..cfd429a0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos650d.txt @@ -0,0 +1,3096 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 650D + device version: 3-1.0.1 + serial number: 'dd08de1249a8482dad756e72401af142' +Vendor extension ID: 0x0000000b +Vendor extension version: 200 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1014 + 0x1015 + 0x1016 + 0x91d5 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x912d + 0x912e + 0x912f + 0x912c + 0x9130 + 0x9131 + 0x9132 + 0x9133 + 0x9134 + 0x912b + 0x9135 + 0x9136 + 0x9137 + 0x9138 + 0x9139 + 0x913a + 0x913b + 0x913c + 0x913d + 0x913f + 0x91da + 0x91db + 0x91dc + 0x91dd + 0x91de + 0x91d8 + 0x91d9 + 0x91d7 + 0x913e + 0x9113 + 0x9114 + 0x9115 + 0x9116 + 0x915b + 0x91c0 + 0x91c1 + 0x91c2 + 0x91c3 + 0x91c4 + 0x91c5 + 0x91c6 + 0x91c7 + 0x91c8 + 0x91c9 + 0x91ca + 0x91cb + 0x91cc + 0x91ce + 0x91cf + 0x91d0 + 0x91d1 + 0x91d2 + 0x91e1 + 0x91e2 + 0x91e3 + 0x91e4 + 0x91e5 + 0x91e6 + 0x91e7 + 0x91e8 + 0x91e9 + 0x91ea + 0x91eb + 0x91ec + 0x91ed + 0x91ee + 0x91ef + 0x91f8 + 0x91f9 + 0x91f2 + 0x91f3 + 0x91f4 + 0x91f7 + 0x91df + 0x91fb + 0x91fc + 0x91fd + 0x9122 + 0x9123 + 0x9124 + 0x91f5 + 0x91f6 + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905f +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 650D + Version: 3-1.0.1 + Serial Number: dd08de1249a8482dad756e72401af142 +Vendor Extension ID: 0xb (2.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture + +Storage Devices Summary: + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 650D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + + +event 0: EOS prop d105 info record, datasize is 4 +event 0: currentvalue of d105 is 0 +event 1: EOS prop d108 info record, datasize is 4 +event 1: currentvalue of d108 is 0 +event 2: EOS prop d106 info record, datasize is 4 +event 2: currentvalue of d106 is 0 +event 3: EOS prop d107 info record, datasize is 4 +event 3: currentvalue of d107 is 3 +event 4: EOS prop d109 info record, datasize is 4 +event 4: currentvalue of d109 is 0 +event 5: EOS prop d10a info record, datasize is 4 +event 5: Unknown EOS property d10a, datasize is 4, using uint32 + 0: 0x 1450 +event 5: currentvalue of d10a is 1450 +event 6: EOS prop d10b info record, datasize is 4 +event 7: EOS prop d10c info record, datasize is 4 +event 8: EOS prop d10d info record, datasize is 4 +event 8: currentvalue of d10d is 0 +event 9: EOS prop d10e info record, datasize is 4 +event 9: currentvalue of d10e is 0 +event 10: EOS prop d10f info record, datasize is 4 +event 10: currentvalue of d10f is 1 +event 11: EOS prop d11b info record, datasize is 4 +event 11: currentvalue of d11b is 0 +event 12: EOS prop d114 info record, datasize is 4 +event 12: Unknown EOS property d114, datasize is 4, using uint16 + 0: 1e + 1: 00 + 2: 00 + 3: 00 +event 12: currentvalue of d114 is 1e +event 13: EOS prop d116 info record, datasize is 4 +event 13: currentvalue of d116 is 80000301 +event 14: EOS prop d119 info record, datasize is 4 +event 14: currentvalue of d119 is 100 +event 15: EOS prop d110 info record, datasize is 4 +event 15: currentvalue of d110 is 87 +event 16: EOS prop d101 info record, datasize is 4 +event 16: currentvalue of d101 is 30 +event 17: EOS prop d102 info record, datasize is 4 +event 17: currentvalue of d102 is 70 +event 18: EOS prop d103 info record, datasize is 4 +event 18: currentvalue of d103 is 0 +event 19: EOS prop d104 info record, datasize is 4 +event 19: currentvalue of d104 is 0 +event 20: EOS prop d11d info record, datasize is 4 +event 20: currentvalue of d11d is 0 +event 21: EOS prop d111 info record, datasize is 4 +event 21: currentvalue of d111 is 2 +event 22: EOS prop d112 info record, datasize is 4 +event 22: currentvalue of d112 is 0 +event 23: EOS prop d113 info record, datasize is 4 +event 23: currentvalue of d113 is 5023ec92 +event 24: EOS prop d120 info record, datasize is 20 +event 24: decoded imageformat, currentvalue of d120 is 300 +event 25: EOS prop d122 info record, datasize is 20 +event 25: decoded imageformat, currentvalue of d122 is 300 +event 26: EOS prop d156 info record, datasize is 28 +event 26: Unknown EOS property d156, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 27: EOS prop d150 info record, datasize is 28 +event 27: Unknown EOS property d150, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 28: EOS prop d151 info record, datasize is 28 +event 28: Unknown EOS property d151, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 02 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 29: EOS prop d152 info record, datasize is 28 +event 29: Unknown EOS property d152, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 04 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 30: EOS prop d153 info record, datasize is 28 +event 30: Unknown EOS property d153, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 31: EOS prop d154 info record, datasize is 28 +event 31: Unknown EOS property d154, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 32: EOS prop d155 info record, datasize is 28 +event 32: Unknown EOS property d155, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 33: EOS prop d160 info record, datasize is 32 +event 33: Unknown EOS property d160, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 34: EOS prop d161 info record, datasize is 32 +event 34: Unknown EOS property d161, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 35: EOS prop d162 info record, datasize is 32 +event 35: Unknown EOS property d162, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 36: EOS prop d11c info record, datasize is 4 +event 36: currentvalue of d11c is 2 +event 37: EOS prop d1a0 info record, datasize is 152 +event 37: decoded custom function, currentvalue of d1a0 is 10,c189,d105,0, +event 38: EOS prop d1a1 info record, datasize is 8 +event 38: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 39: EOS prop d1a8 info record, datasize is 4 +event 39: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 39: currentvalue of d1a8 is 1 +event 40: EOS prop d1a7 info record, datasize is 40 +event 40: Unknown EOS property d1a7, datasize is 40 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 +event 41: EOS prop d1ab info record, datasize is 4 +event 41: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 41: currentvalue of d1ab is 0 +event 42: EOS prop d1b0 info record, datasize is 4 +event 42: currentvalue of d1b0 is 0 +event 43: EOS prop d1b1 info record, datasize is 4 +event 43: currentvalue of d1b1 is 1 +event 44: EOS prop d1b2 info record, datasize is 4 +event 44: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 44: currentvalue of d1b2 is 0 +event 45: EOS prop d1b3 info record, datasize is 4 +event 45: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 45: currentvalue of d1b3 is 0 +event 46: EOS prop d1b4 info record, datasize is 4 +event 46: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 0 +event 46: currentvalue of d1b4 is 0 +event 47: EOS prop d1b5 info record, datasize is 48 +event 47: Unknown EOS property d1b5, datasize is 48, using uint32 + 0: 0x 30 + 1: 0x 0 + 2: 0x5595a400 + 3: 0x6f180eaa + 4: 0x 5e16418 + 5: 0x778210b4 + 6: 0xd74da94a + 7: 0xc63988ba + 8: 0x406226a8 + 9: 0x442a4d61 + 10: 0x 4000400 + 11: 0x 4000400 +event 47: currentvalue of d1b5 is 30 +event 48: EOS prop d1b6 info record, datasize is 4 +event 48: Unknown EOS property d1b6, datasize is 4, using uint32 + 0: 0x 1450 +event 48: currentvalue of d1b6 is 1450 +event 49: EOS prop d1a9 info record, datasize is 4 +event 49: currentvalue of d1a9 is 2 +event 50: EOS prop d146 info record, datasize is 48 +event 50: Unknown EOS property d146, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: e3 + 41: 01 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 94 + 47: 02 +event 51: EOS prop d1ac info record, datasize is 4 +event 51: currentvalue of d1ac is 0 +event 52: EOS prop d1aa info record, datasize is 4 +event 52: Unknown EOS property d1aa, datasize is 4, using uint32 + 0: 0x 0 +event 52: currentvalue of d1aa is 0 +event 53: EOS prop d11e info record, datasize is 4 +event 53: currentvalue of d11e is 20000 +event 54: EOS prop d1d9 info record, datasize is 4 +event 54: currentvalue of d1d9 is 0 +event 55: EOS prop d1ba info record, datasize is 4 +event 55: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 2 +event 55: currentvalue of d1ba is 2 +event 56: EOS prop d1cc info record, datasize is 28 +event 56: Unknown EOS property d1cc, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 19 + 13: 00 + 14: 00 + 15: 00 + 16: 0c + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 02 + 25: 00 + 26: 00 + 27: 00 +event 57: EOS prop d1bc info record, datasize is 4 +event 57: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 57: currentvalue of d1bc is 1 +event 58: EOS prop d1b8 info record, datasize is 4 +event 58: Unknown EOS property d1b8, datasize is 4, using uint32 + 0: 0x 0 +event 58: currentvalue of d1b8 is 0 +event 59: EOS prop d1d3 info record, datasize is 282 +event 59: Unknown EOS property d1d3, datasize is 282 + 0: 1a + 1: 01 + 2: 00 + 3: 00 + 4: 16 + 5: 01 + 6: 04 + 7: 00 + 8: 1f + 9: 00 + 10: 09 + 11: 00 + 12: 40 + 13: 14 + 14: 80 + 15: 0d + 16: 40 + 17: 14 + 18: 80 + 19: 0d + 20: 81 + 21: 00 + 22: 81 + 23: 00 + 24: 81 + 25: 00 + 26: b5 + 27: 00 + 28: de + 29: 00 + 30: b5 + 31: 00 + 32: 81 + 33: 00 + 34: 81 + 35: 00 + 36: 81 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 00 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: ac + 83: 00 + 84: ac + 85: 00 + 86: ac + 87: 00 + 88: 75 + 89: 00 + 90: e0 + 91: 00 + 92: 75 + 93: 00 + 94: ac + 95: 00 + 96: ac + 97: 00 + 98: ac + 99: 00 + 100: 00 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 00 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: a8 + 145: fa + 146: cd + 147: fc + 148: cd + 149: fc + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 33 + 157: 03 + 158: 33 + 159: 03 + 160: 58 + 161: 05 + 162: 00 + 163: 00 + 164: 00 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 00 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 83 + 209: 01 + 210: 7d + 211: fe + 212: fb + 213: 02 + 214: 00 + 215: 00 + 216: 05 + 217: fd + 218: 83 + 219: 01 + 220: 7d + 221: fe + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 00 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 00 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: ff + 273: 01 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: ff + 281: ff +event 60: EOS prop d1d8 info record, datasize is 64 +event 60: currentvalue of d1d8 is EF-S18-55mm f/3.5-5.6 IS II +event 61: EOS prop d1b7 info record, datasize is 4 +event 61: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 0 +event 61: currentvalue of d1b7 is 0 +event 62: EOS prop d1cb info record, datasize is 52 +event 62: Unknown EOS property d1cb, datasize is 52 + 0: 34 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 03 + 19: 80 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 48 + 29: 00 + 30: 00 + 31: 00 + 32: 49 + 33: 00 + 34: 03 + 35: 80 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 03 + 41: 00 + 42: 00 + 43: 00 + 44: 4b + 45: 00 + 46: 00 + 47: 00 + 48: 4c + 49: 00 + 50: 03 + 51: 80 +event 63: EOS prop d1db info record, datasize is 14 +event 63: Unknown EOS property d1db, datasize is 14 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 03 + 5: 00 + 6: 00 + 7: 00 + 8: 2f + 9: 00 + 10: 00 + 11: 00 + 12: 28 + 13: 00 +event 64: EOS prop d1dc info record, datasize is 4 +event 64: currentvalue of d1dc is 0 +event 65: EOS prop d1a4 info record, datasize is 484 +event 65: Unknown EOS property d1a4, datasize is 484 + 0: e4 + 1: 01 + 2: 00 + 3: 00 + 4: 30 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 31 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 32 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 00 + 97: 00 + 98: 00 + 99: 00 + 100: 33 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 34 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 35 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 36 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 00 + 209: 00 + 210: 00 + 211: 00 + 212: 00 + 213: 00 + 214: 00 + 215: 00 + 216: 00 + 217: 00 + 218: 00 + 219: 00 + 220: 00 + 221: 00 + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 37 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 38 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: 00 + 273: 00 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: 00 + 281: 00 + 282: 00 + 283: 00 + 284: 00 + 285: 00 + 286: 00 + 287: 00 + 288: 00 + 289: 00 + 290: 00 + 291: 00 + 292: 39 + 293: 00 + 294: 00 + 295: 00 + 296: 00 + 297: 00 + 298: 00 + 299: 00 + 300: 00 + 301: 00 + 302: 00 + 303: 00 + 304: 00 + 305: 00 + 306: 00 + 307: 00 + 308: 00 + 309: 00 + 310: 00 + 311: 00 + 312: 00 + 313: 00 + 314: 00 + 315: 00 + 316: 00 + 317: 00 + 318: 00 + 319: 00 + 320: 00 + 321: 00 + 322: 00 + 323: 00 + 324: 31 + 325: 30 + 326: 00 + 327: 00 + 328: 00 + 329: 00 + 330: 00 + 331: 00 + 332: 00 + 333: 00 + 334: 00 + 335: 00 + 336: 00 + 337: 00 + 338: 00 + 339: 00 + 340: 00 + 341: 00 + 342: 00 + 343: 00 + 344: 00 + 345: 00 + 346: 00 + 347: 00 + 348: 00 + 349: 00 + 350: 00 + 351: 00 + 352: 00 + 353: 00 + 354: 00 + 355: 00 + 356: 31 + 357: 31 + 358: 00 + 359: 00 + 360: 00 + 361: 00 + 362: 00 + 363: 00 + 364: 00 + 365: 00 + 366: 00 + 367: 00 + 368: 00 + 369: 00 + 370: 00 + 371: 00 + 372: 00 + 373: 00 + 374: 00 + 375: 00 + 376: 00 + 377: 00 + 378: 00 + 379: 00 + 380: 00 + 381: 00 + 382: 00 + 383: 00 + 384: 00 + 385: 00 + 386: 00 + 387: 00 + 388: 31 + 389: 32 + 390: 00 + 391: 00 + 392: 00 + 393: 00 + 394: 00 + 395: 00 + 396: 00 + 397: 00 + 398: 00 + 399: 00 + 400: 00 + 401: 00 + 402: 00 + 403: 00 + 404: 00 + 405: 00 + 406: 00 + 407: 00 + 408: 00 + 409: 00 + 410: 00 + 411: 00 + 412: 00 + 413: 00 + 414: 00 + 415: 00 + 416: 00 + 417: 00 + 418: 00 + 419: 00 + 420: 31 + 421: 33 + 422: 00 + 423: 00 + 424: 00 + 425: 00 + 426: 00 + 427: 00 + 428: 00 + 429: 00 + 430: 00 + 431: 00 + 432: 00 + 433: 00 + 434: 00 + 435: 00 + 436: 00 + 437: 00 + 438: 00 + 439: 00 + 440: 00 + 441: 00 + 442: 00 + 443: 00 + 444: 00 + 445: 00 + 446: 00 + 447: 00 + 448: 00 + 449: 00 + 450: 00 + 451: 00 + 452: 31 + 453: 34 + 454: 00 + 455: 00 + 456: 00 + 457: 00 + 458: 00 + 459: 00 + 460: 00 + 461: 00 + 462: 00 + 463: 00 + 464: 00 + 465: 00 + 466: 00 + 467: 00 + 468: 00 + 469: 00 + 470: 00 + 471: 00 + 472: 00 + 473: 00 + 474: 00 + 475: 00 + 476: 00 + 477: 00 + 478: 00 + 479: 00 + 480: 00 + 481: 00 + 482: 00 + 483: 00 +event 66: EOS prop d1df info record, datasize is 4 +event 66: Unknown EOS property d1df, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 67: EOS prop d1bd info record, datasize is 4 +event 67: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 68: EOS prop d1c1 info record, datasize is 4 +event 68: Unknown EOS property d1c1, datasize is 4 + 0: 00 + 1: 00 + 2: 01 + 3: 89 +event 69: EOS prop d1c0 info record, datasize is 4 +event 69: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 70: EOS prop d1bf info record, datasize is 4 +event 70: Unknown EOS property d1bf, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 71: EOS prop d1c4 info record, datasize is 4 +event 71: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 72: EOS prop d1c2 info record, datasize is 4 +event 72: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 73: EOS prop d1c5 info record, datasize is 4 +event 73: Unknown EOS property d1c5, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 74: EOS prop d194 info record, datasize is 4 +event 74: Unknown EOS property d194, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 75: EOS prop d195 info record, datasize is 4 +event 75: Unknown EOS property d195, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 76: EOS prop d196 info record, datasize is 4 +event 76: Unknown EOS property d196, datasize is 4 + 0: 2f + 1: 00 + 2: 00 + 3: 00 +event 77: EOS prop d197 info record, datasize is 4 +event 77: Unknown EOS property d197, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 78: EOS prop d198 info record, datasize is 4 +event 78: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 79: EOS prop d1dd info record, datasize is 4 +event 79: currentvalue of d1dd is 34 +event 80: EOS prop d1c7 info record, datasize is 4 +event 80: Unknown EOS property d1c7, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 81: EOS prop d199 info record, datasize is 4 +event 81: Unknown EOS property d199, datasize is 4 + 0: 07 + 1: 00 + 2: 00 + 3: 00 +event 82: EOS prop d138 info record, datasize is 4 +event 82: Unknown EOS property d138, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 83: EOS prop d139 info record, datasize is 12 +event 83: Unknown EOS property d139, datasize is 12 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 84: EOS prop d13a info record, datasize is 4 +event 84: Unknown EOS property d13a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 85: EOS prop d13c info record, datasize is 4 +event 85: Unknown EOS property d13c, datasize is 4 + 0: 3f + 1: 00 + 2: 00 + 3: 00 +event 86: EOS prop d13d info record, datasize is 24 +event 86: Unknown EOS property d13d, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 01 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 87: EOS prop d14d info record, datasize is 4 +event 87: Unknown EOS property d14d, datasize is 4 + 0: 00 + 1: 3c + 2: 00 + 3: 00 +event 88: EOS prop d19a info record, datasize is 4 +event 88: Unknown EOS property d19a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 89: EOS prop d19c info record, datasize is 4 +event 89: Unknown EOS property d19c, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 90: EOS prop d17c info record, datasize is 4 +event 90: Unknown EOS property d17c, datasize is 4 + 0: 72 + 1: d0 + 2: 23 + 3: 50 +event 91: EOS prop d17d info record, datasize is 12 +event 91: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 13 + 5: 00 + 6: 00 + 7: 00 + 8: 3c + 9: 00 + 10: 00 + 11: 00 +event 92: EOS prop d17e info record, datasize is 4 +event 92: Unknown EOS property d17e, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 93: EOS prop d1c6 info record, datasize is 4 +event 93: Unknown EOS property d1c6, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 94: EOS prop d1c8 info record, datasize is 4 +event 94: Unknown EOS property d1c8, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 95: EOS prop d178 info record, datasize is 4 +event 95: Unknown EOS property d178, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 96: EOS prop d179 info record, datasize is 4 +event 96: Unknown EOS property d179, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 97: EOS prop d17a info record, datasize is 4 +event 97: Unknown EOS property d17a, datasize is 4 + 0: 01 + 1: 20 + 2: 93 + 3: 43 +event 98: EOS prop d17b info record, datasize is 4 +event 98: Unknown EOS property d17b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 99: EOS prop d1c9 info record, datasize is 4 +event 99: Unknown EOS property d1c9, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 100: EOS prop d105 desc record, datasize 0, propxtype 1 +event 100: propxtype is 1 for d105, unhandled. +event 101: EOS prop d108 desc record, datasize 12, propxtype 3 +event 101: propxtype is 3, prop is 0xd108, data type is 0x0004, propxcnt is 3. +event 101: suppval[0] of d108 is 0x0. +event 101: suppval[1] of d108 is 0x2. +event 101: suppval[2] of d108 is 0x1. +event 102: EOS prop d106 desc record, datasize 20, propxtype 3 +event 102: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 5. +event 102: suppval[0] of d106 is 0x0. +event 102: suppval[1] of d106 is 0x1. +event 102: suppval[2] of d106 is 0x10. +event 102: suppval[3] of d106 is 0x11. +event 102: suppval[4] of d106 is 0x7. +event 103: EOS prop d107 desc record, datasize 16, propxtype 3 +event 103: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 4. +event 103: suppval[0] of d107 is 0x3. +event 103: suppval[1] of d107 is 0x4. +event 103: suppval[2] of d107 is 0x1. +event 103: suppval[3] of d107 is 0x5. +event 104: EOS prop d109 desc record, datasize 32, propxtype 3 +event 104: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 8. +event 104: suppval[0] of d109 is 0x0. +event 104: suppval[1] of d109 is 0x1. +event 104: suppval[2] of d109 is 0x8. +event 104: suppval[3] of d109 is 0x2. +event 104: suppval[4] of d109 is 0x3. +event 104: suppval[5] of d109 is 0x4. +event 104: suppval[6] of d109 is 0x5. +event 104: suppval[7] of d109 is 0x6. +event 105: EOS prop d10a desc record, datasize 304, propxtype 3 +event 105: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +event 105: suppval[0] of d10a is 0x9c4. +event 105: suppval[1] of d10a is 0xa28. +event 105: suppval[2] of d10a is 0xa8c. +event 105: suppval[3] of d10a is 0xaf0. +event 105: suppval[4] of d10a is 0xb54. +event 105: suppval[5] of d10a is 0xbb8. +event 105: suppval[6] of d10a is 0xc1c. +event 105: suppval[7] of d10a is 0xc80. +event 105: suppval[8] of d10a is 0xce4. +event 105: suppval[9] of d10a is 0xd48. +event 105: suppval[10] of d10a is 0xdac. +event 105: suppval[11] of d10a is 0xe10. +event 105: suppval[12] of d10a is 0xe74. +event 105: suppval[13] of d10a is 0xed8. +event 105: suppval[14] of d10a is 0xf3c. +event 105: suppval[15] of d10a is 0xfa0. +event 105: suppval[16] of d10a is 0x1004. +event 105: suppval[17] of d10a is 0x1068. +event 105: suppval[18] of d10a is 0x10cc. +event 105: suppval[19] of d10a is 0x1130. +event 105: suppval[20] of d10a is 0x1194. +event 105: suppval[21] of d10a is 0x11f8. +event 105: suppval[22] of d10a is 0x125c. +event 105: suppval[23] of d10a is 0x12c0. +event 105: suppval[24] of d10a is 0x1324. +event 105: suppval[25] of d10a is 0x1388. +event 105: suppval[26] of d10a is 0x13ec. +event 105: suppval[27] of d10a is 0x1450. +event 105: suppval[28] of d10a is 0x14b4. +event 105: suppval[29] of d10a is 0x1518. +event 105: suppval[30] of d10a is 0x157c. +event 105: suppval[31] of d10a is 0x15e0. +event 105: suppval[32] of d10a is 0x1644. +event 105: suppval[33] of d10a is 0x16a8. +event 105: suppval[34] of d10a is 0x170c. +event 105: suppval[35] of d10a is 0x1770. +event 105: suppval[36] of d10a is 0x17d4. +event 105: suppval[37] of d10a is 0x1838. +event 105: suppval[38] of d10a is 0x189c. +event 105: suppval[39] of d10a is 0x1900. +event 105: suppval[40] of d10a is 0x1964. +event 105: suppval[41] of d10a is 0x19c8. +event 105: suppval[42] of d10a is 0x1a2c. +event 105: suppval[43] of d10a is 0x1a90. +event 105: suppval[44] of d10a is 0x1af4. +event 105: suppval[45] of d10a is 0x1b58. +event 105: suppval[46] of d10a is 0x1bbc. +event 105: suppval[47] of d10a is 0x1c20. +event 105: suppval[48] of d10a is 0x1c84. +event 105: suppval[49] of d10a is 0x1ce8. +event 105: suppval[50] of d10a is 0x1d4c. +event 105: suppval[51] of d10a is 0x1db0. +event 105: suppval[52] of d10a is 0x1e14. +event 105: suppval[53] of d10a is 0x1e78. +event 105: suppval[54] of d10a is 0x1edc. +event 105: suppval[55] of d10a is 0x1f40. +event 105: suppval[56] of d10a is 0x1fa4. +event 105: suppval[57] of d10a is 0x2008. +event 105: suppval[58] of d10a is 0x206c. +event 105: suppval[59] of d10a is 0x20d0. +event 105: suppval[60] of d10a is 0x2134. +event 105: suppval[61] of d10a is 0x2198. +event 105: suppval[62] of d10a is 0x21fc. +event 105: suppval[63] of d10a is 0x2260. +event 105: suppval[64] of d10a is 0x22c4. +event 105: suppval[65] of d10a is 0x2328. +event 105: suppval[66] of d10a is 0x238c. +event 105: suppval[67] of d10a is 0x23f0. +event 105: suppval[68] of d10a is 0x2454. +event 105: suppval[69] of d10a is 0x24b8. +event 105: suppval[70] of d10a is 0x251c. +event 105: suppval[71] of d10a is 0x2580. +event 105: suppval[72] of d10a is 0x25e4. +event 105: suppval[73] of d10a is 0x2648. +event 105: suppval[74] of d10a is 0x26ac. +event 105: suppval[75] of d10a is 0x2710. +event 106: EOS prop d10b desc record, datasize 76, propxtype 3 +event 106: propxtype is 3, prop is 0xd10b, data type is 0x0003, propxcnt is 19. +event 106: suppval[0] of d10b is 0xfff7. +event 106: suppval[1] of d10b is 0xfff8. +event 106: suppval[2] of d10b is 0xfff9. +event 106: suppval[3] of d10b is 0xfffa. +event 106: suppval[4] of d10b is 0xfffb. +event 106: suppval[5] of d10b is 0xfffc. +event 106: suppval[6] of d10b is 0xfffd. +event 106: suppval[7] of d10b is 0xfffe. +event 106: suppval[8] of d10b is 0xffff. +event 106: suppval[9] of d10b is 0x0. +event 106: suppval[10] of d10b is 0x1. +event 106: suppval[11] of d10b is 0x2. +event 106: suppval[12] of d10b is 0x3. +event 106: suppval[13] of d10b is 0x4. +event 106: suppval[14] of d10b is 0x5. +event 106: suppval[15] of d10b is 0x6. +event 106: suppval[16] of d10b is 0x7. +event 106: suppval[17] of d10b is 0x8. +event 106: suppval[18] of d10b is 0x9. +event 107: EOS prop d10c desc record, datasize 76, propxtype 3 +event 107: propxtype is 3, prop is 0xd10c, data type is 0x0003, propxcnt is 19. +event 107: suppval[0] of d10c is 0xfff7. +event 107: suppval[1] of d10c is 0xfff8. +event 107: suppval[2] of d10c is 0xfff9. +event 107: suppval[3] of d10c is 0xfffa. +event 107: suppval[4] of d10c is 0xfffb. +event 107: suppval[5] of d10c is 0xfffc. +event 107: suppval[6] of d10c is 0xfffd. +event 107: suppval[7] of d10c is 0xfffe. +event 107: suppval[8] of d10c is 0xffff. +event 107: suppval[9] of d10c is 0x0. +event 107: suppval[10] of d10c is 0x1. +event 107: suppval[11] of d10c is 0x2. +event 107: suppval[12] of d10c is 0x3. +event 107: suppval[13] of d10c is 0x4. +event 107: suppval[14] of d10c is 0x5. +event 107: suppval[15] of d10c is 0x6. +event 107: suppval[16] of d10c is 0x7. +event 107: suppval[17] of d10c is 0x8. +event 107: suppval[18] of d10c is 0x9. +event 108: EOS prop d10d desc record, datasize 16, propxtype 3 +event 108: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +event 108: suppval[0] of d10d is 0x0. +event 108: suppval[1] of d10d is 0x1. +event 108: suppval[2] of d10d is 0x2. +event 108: suppval[3] of d10d is 0x3. +event 109: EOS prop d10e desc record, datasize 16, propxtype 3 +event 109: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +event 109: suppval[0] of d10e is 0x0. +event 109: suppval[1] of d10e is 0x1. +event 109: suppval[2] of d10e is 0x2. +event 109: suppval[3] of d10e is 0x3. +event 110: EOS prop d10f desc record, datasize 8, propxtype 3 +event 110: propxtype is 3, prop is 0xd10f, data type is 0x0004, propxcnt is 2. +event 110: suppval[0] of d10f is 0x1. +event 110: suppval[1] of d10f is 0x2. +event 111: EOS prop d11b desc record, datasize 0, propxtype 1 +event 111: propxtype is 1 for d11b, unhandled. +event 112: EOS prop d114 desc record, datasize 0, propxtype 1 +event 112: propxtype is 1 for d114, unhandled. +event 113: EOS prop d116 desc record, datasize 0, propxtype 1 +event 113: propxtype is 1 for d116, unhandled. +event 114: EOS prop d119 desc record, datasize 0, propxtype 1 +event 114: propxtype is 1 for d119, unhandled. +event 115: EOS prop d11a desc record, datasize 0, propxtype 1 +event 115: propdesc d11a, default value not found. +event 116: EOS prop d110 desc record, datasize 40, propxtype 3 +event 116: propxtype is 3, prop is 0xd110, data type is 0x0002, propxcnt is 10. +event 116: suppval[0] of d110 is 0x87. +event 116: suppval[1] of d110 is 0x81. +event 116: suppval[2] of d110 is 0x82. +event 116: suppval[3] of d110 is 0x83. +event 116: suppval[4] of d110 is 0x84. +event 116: suppval[5] of d110 is 0x85. +event 116: suppval[6] of d110 is 0x86. +event 116: suppval[7] of d110 is 0x21. +event 116: suppval[8] of d110 is 0x22. +event 116: suppval[9] of d110 is 0x23. +event 117: EOS prop d115 desc record, datasize 0, propxtype 7 +event 117: propdesc d115, default value not found. +event 118: EOS prop d101 desc record, datasize 0, propxtype 3 +event 119: EOS prop d102 desc record, datasize 0, propxtype 3 +event 120: EOS prop d103 desc record, datasize 36, propxtype 3 +event 120: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 9. +event 120: suppval[0] of d103 is 0x0. +event 120: suppval[1] of d103 is 0x48. +event 120: suppval[2] of d103 is 0x50. +event 120: suppval[3] of d103 is 0x58. +event 120: suppval[4] of d103 is 0x60. +event 120: suppval[5] of d103 is 0x68. +event 120: suppval[6] of d103 is 0x70. +event 120: suppval[7] of d103 is 0x78. +event 120: suppval[8] of d103 is 0x80. +event 121: EOS prop d104 desc record, datasize 124, propxtype 3 +event 121: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 31. +event 121: suppval[0] of d104 is 0xd8. +event 121: suppval[1] of d104 is 0xdb. +event 121: suppval[2] of d104 is 0xdd. +event 121: suppval[3] of d104 is 0xe0. +event 121: suppval[4] of d104 is 0xe3. +event 121: suppval[5] of d104 is 0xe5. +event 121: suppval[6] of d104 is 0xe8. +event 121: suppval[7] of d104 is 0xeb. +event 121: suppval[8] of d104 is 0xed. +event 121: suppval[9] of d104 is 0xf0. +event 121: suppval[10] of d104 is 0xf3. +event 121: suppval[11] of d104 is 0xf5. +event 121: suppval[12] of d104 is 0xf8. +event 121: suppval[13] of d104 is 0xfb. +event 121: suppval[14] of d104 is 0xfd. +event 121: suppval[15] of d104 is 0x0. +event 121: suppval[16] of d104 is 0x3. +event 121: suppval[17] of d104 is 0x5. +event 121: suppval[18] of d104 is 0x8. +event 121: suppval[19] of d104 is 0xb. +event 121: suppval[20] of d104 is 0xd. +event 121: suppval[21] of d104 is 0x10. +event 121: suppval[22] of d104 is 0x13. +event 121: suppval[23] of d104 is 0x15. +event 121: suppval[24] of d104 is 0x18. +event 121: suppval[25] of d104 is 0x1b. +event 121: suppval[26] of d104 is 0x1d. +event 121: suppval[27] of d104 is 0x20. +event 121: suppval[28] of d104 is 0x23. +event 121: suppval[29] of d104 is 0x25. +event 121: suppval[30] of d104 is 0x28. +event 122: EOS prop d11d desc record, datasize 0, propxtype 1 +event 122: propxtype is 1 for d11d, unhandled. +event 123: EOS prop d111 desc record, datasize 0, propxtype 1 +event 123: propxtype is 1 for d111, unhandled. +event 124: EOS prop d112 desc record, datasize 0, propxtype 1 +event 124: propxtype is 1 for d112, unhandled. +event 125: EOS prop d113 desc record, datasize 0, propxtype 7 +event 125: propxtype is 7 for d113, unhandled. +event 126: EOS prop d120 desc record, datasize 216, propxtype 3 +event 126: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 10. +event 126: suppval[0] of d120 is 0x300. +event 126: suppval[1] of d120 is 0x200. +event 126: suppval[2] of d120 is 0x1300. +event 126: suppval[3] of d120 is 0x1200. +event 126: suppval[4] of d120 is 0xd300. +event 126: suppval[5] of d120 is 0xd200. +event 126: suppval[6] of d120 is 0xe300. +event 126: suppval[7] of d120 is 0xf300. +event 126: suppval[8] of d120 is 0x403. +event 126: suppval[9] of d120 is 0x400. +event 127: EOS prop d122 desc record, datasize 216, propxtype 3 +event 127: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 10. +event 127: suppval[0] of d122 is 0x300. +event 127: suppval[1] of d122 is 0x200. +event 127: suppval[2] of d122 is 0x1300. +event 127: suppval[3] of d122 is 0x1200. +event 127: suppval[4] of d122 is 0xd300. +event 127: suppval[5] of d122 is 0xd200. +event 127: suppval[6] of d122 is 0xe300. +event 127: suppval[7] of d122 is 0xf300. +event 127: suppval[8] of d122 is 0x403. +event 127: suppval[9] of d122 is 0x400. +event 128: EOS prop d156 desc record, datasize 0, propxtype 7 +event 128: propxtype is 7 for d156, unhandled. +event 129: EOS prop d150 desc record, datasize 0, propxtype 7 +event 129: propxtype is 7 for d150, unhandled. +event 130: EOS prop d151 desc record, datasize 0, propxtype 7 +event 130: propxtype is 7 for d151, unhandled. +event 131: EOS prop d152 desc record, datasize 0, propxtype 7 +event 131: propxtype is 7 for d152, unhandled. +event 132: EOS prop d153 desc record, datasize 0, propxtype 7 +event 132: propxtype is 7 for d153, unhandled. +event 133: EOS prop d154 desc record, datasize 0, propxtype 7 +event 133: propxtype is 7 for d154, unhandled. +event 134: EOS prop d155 desc record, datasize 0, propxtype 7 +event 134: propxtype is 7 for d155, unhandled. +event 135: EOS prop d160 desc record, datasize 0, propxtype 7 +event 135: propxtype is 7 for d160, unhandled. +event 136: EOS prop d161 desc record, datasize 0, propxtype 7 +event 136: propxtype is 7 for d161, unhandled. +event 137: EOS prop d162 desc record, datasize 0, propxtype 7 +event 137: propxtype is 7 for d162, unhandled. +event 138: EOS prop d170 desc record, datasize 0, propxtype 7 +event 138: propdesc d170, default value not found. +event 139: EOS prop d171 desc record, datasize 0, propxtype 7 +event 139: propdesc d171, default value not found. +event 140: EOS prop d172 desc record, datasize 0, propxtype 7 +event 140: propdesc d172, default value not found. +event 141: EOS prop d11c desc record, datasize 12, propxtype 3 +event 141: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +event 141: suppval[0] of d11c is 0x2. +event 141: suppval[1] of d11c is 0x4. +event 141: suppval[2] of d11c is 0x6. +event 142: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 142: propxtype is 7 for d1a0, unhandled. +event 143: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 143: propxtype is 7 for d1a1, unhandled. +event 144: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 144: propdesc d1a2, default value not found. +event 145: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 145: propxtype is 1 for d1a8, unhandled. +event 146: EOS prop d1a7 desc record, datasize 0, propxtype 7 +event 146: propxtype is 7 for d1a7, unhandled. +event 147: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 147: propxtype is 1 for d1ab, unhandled. +event 148: EOS prop d1b0 desc record, datasize 32, propxtype 3 +event 148: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 8. +event 148: suppval[0] of d1b0 is 0x0. +event 148: suppval[1] of d1b0 is 0x1. +event 148: suppval[2] of d1b0 is 0x2. +event 148: suppval[3] of d1b0 is 0x3. +event 148: suppval[4] of d1b0 is 0x4. +event 148: suppval[5] of d1b0 is 0x5. +event 148: suppval[6] of d1b0 is 0x6. +event 148: suppval[7] of d1b0 is 0x7. +event 149: EOS prop d1b1 desc record, datasize 8, propxtype 3 +event 149: propxtype is 3, prop is 0xd1b1, data type is 0x0004, propxcnt is 2. +event 149: suppval[0] of d1b1 is 0x1. +event 149: suppval[1] of d1b1 is 0x0. +event 150: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 150: propxtype is 7 for d1b2, unhandled. +event 151: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 151: propxtype is 7 for d1b3, unhandled. +event 152: EOS prop d1b4 desc record, datasize 36, propxtype 3 +event 152: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 9. +event 152: suppval[0] of d1b4 is 0x0. +event 152: suppval[1] of d1b4 is 0x1. +event 152: suppval[2] of d1b4 is 0x8. +event 152: suppval[3] of d1b4 is 0x2. +event 152: suppval[4] of d1b4 is 0x3. +event 152: suppval[5] of d1b4 is 0x4. +event 152: suppval[6] of d1b4 is 0x5. +event 152: suppval[7] of d1b4 is 0x6. +event 152: suppval[8] of d1b4 is 0x8000. +event 153: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 153: propxtype is 7 for d1b5, unhandled. +event 154: EOS prop d1b6 desc record, datasize 304, propxtype 3 +event 154: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +event 154: suppval[0] of d1b6 is 0x9c4. +event 154: suppval[1] of d1b6 is 0xa28. +event 154: suppval[2] of d1b6 is 0xa8c. +event 154: suppval[3] of d1b6 is 0xaf0. +event 154: suppval[4] of d1b6 is 0xb54. +event 154: suppval[5] of d1b6 is 0xbb8. +event 154: suppval[6] of d1b6 is 0xc1c. +event 154: suppval[7] of d1b6 is 0xc80. +event 154: suppval[8] of d1b6 is 0xce4. +event 154: suppval[9] of d1b6 is 0xd48. +event 154: suppval[10] of d1b6 is 0xdac. +event 154: suppval[11] of d1b6 is 0xe10. +event 154: suppval[12] of d1b6 is 0xe74. +event 154: suppval[13] of d1b6 is 0xed8. +event 154: suppval[14] of d1b6 is 0xf3c. +event 154: suppval[15] of d1b6 is 0xfa0. +event 154: suppval[16] of d1b6 is 0x1004. +event 154: suppval[17] of d1b6 is 0x1068. +event 154: suppval[18] of d1b6 is 0x10cc. +event 154: suppval[19] of d1b6 is 0x1130. +event 154: suppval[20] of d1b6 is 0x1194. +event 154: suppval[21] of d1b6 is 0x11f8. +event 154: suppval[22] of d1b6 is 0x125c. +event 154: suppval[23] of d1b6 is 0x12c0. +event 154: suppval[24] of d1b6 is 0x1324. +event 154: suppval[25] of d1b6 is 0x1388. +event 154: suppval[26] of d1b6 is 0x13ec. +event 154: suppval[27] of d1b6 is 0x1450. +event 154: suppval[28] of d1b6 is 0x14b4. +event 154: suppval[29] of d1b6 is 0x1518. +event 154: suppval[30] of d1b6 is 0x157c. +event 154: suppval[31] of d1b6 is 0x15e0. +event 154: suppval[32] of d1b6 is 0x1644. +event 154: suppval[33] of d1b6 is 0x16a8. +event 154: suppval[34] of d1b6 is 0x170c. +event 154: suppval[35] of d1b6 is 0x1770. +event 154: suppval[36] of d1b6 is 0x17d4. +event 154: suppval[37] of d1b6 is 0x1838. +event 154: suppval[38] of d1b6 is 0x189c. +event 154: suppval[39] of d1b6 is 0x1900. +event 154: suppval[40] of d1b6 is 0x1964. +event 154: suppval[41] of d1b6 is 0x19c8. +event 154: suppval[42] of d1b6 is 0x1a2c. +event 154: suppval[43] of d1b6 is 0x1a90. +event 154: suppval[44] of d1b6 is 0x1af4. +event 154: suppval[45] of d1b6 is 0x1b58. +event 154: suppval[46] of d1b6 is 0x1bbc. +event 154: suppval[47] of d1b6 is 0x1c20. +event 154: suppval[48] of d1b6 is 0x1c84. +event 154: suppval[49] of d1b6 is 0x1ce8. +event 154: suppval[50] of d1b6 is 0x1d4c. +event 154: suppval[51] of d1b6 is 0x1db0. +event 154: suppval[52] of d1b6 is 0x1e14. +event 154: suppval[53] of d1b6 is 0x1e78. +event 154: suppval[54] of d1b6 is 0x1edc. +event 154: suppval[55] of d1b6 is 0x1f40. +event 154: suppval[56] of d1b6 is 0x1fa4. +event 154: suppval[57] of d1b6 is 0x2008. +event 154: suppval[58] of d1b6 is 0x206c. +event 154: suppval[59] of d1b6 is 0x20d0. +event 154: suppval[60] of d1b6 is 0x2134. +event 154: suppval[61] of d1b6 is 0x2198. +event 154: suppval[62] of d1b6 is 0x21fc. +event 154: suppval[63] of d1b6 is 0x2260. +event 154: suppval[64] of d1b6 is 0x22c4. +event 154: suppval[65] of d1b6 is 0x2328. +event 154: suppval[66] of d1b6 is 0x238c. +event 154: suppval[67] of d1b6 is 0x23f0. +event 154: suppval[68] of d1b6 is 0x2454. +event 154: suppval[69] of d1b6 is 0x24b8. +event 154: suppval[70] of d1b6 is 0x251c. +event 154: suppval[71] of d1b6 is 0x2580. +event 154: suppval[72] of d1b6 is 0x25e4. +event 154: suppval[73] of d1b6 is 0x2648. +event 154: suppval[74] of d1b6 is 0x26ac. +event 154: suppval[75] of d1b6 is 0x2710. +event 155: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 155: propxtype is 3, prop is 0xd1a9, data type is 0x0004, propxcnt is 5. +event 155: suppval[0] of d1a9 is 0x0. +event 155: suppval[1] of d1a9 is 0x2. +event 155: suppval[2] of d1a9 is 0x4. +event 155: suppval[3] of d1a9 is 0x8. +event 155: suppval[4] of d1a9 is 0xff. +event 156: EOS prop d146 desc record, datasize 0, propxtype 7 +event 156: propxtype is 7 for d146, unhandled. +event 157: EOS prop d1ac desc record, datasize 0, propxtype 1 +event 157: propxtype is 1 for d1ac, unhandled. +event 158: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 158: propdesc d1ad, default value not found. +event 159: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 159: propdesc d1ae, default value not found. +event 160: EOS prop d1aa desc record, datasize 0, propxtype 1 +event 160: propxtype is 1 for d1aa, unhandled. +event 161: EOS prop d11e desc record, datasize 0, propxtype 1 +event 161: propxtype is 1 for d11e, unhandled. +event 162: EOS prop d11f desc record, datasize 0, propxtype 1 +event 162: propdesc d11f, default value not found. +event 163: EOS prop d1af desc record, datasize 0, propxtype 1 +event 163: propdesc d1af, default value not found. +event 164: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 164: propdesc d1d0, default value not found. +event 165: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 165: propdesc d1d1, default value not found. +event 166: EOS prop d1d9 desc record, datasize 28, propxtype 3 +event 166: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 7. +event 166: suppval[0] of d1d9 is 0x0. +event 166: suppval[1] of d1d9 is 0x3. +event 166: suppval[2] of d1d9 is 0x5. +event 166: suppval[3] of d1d9 is 0x8. +event 166: suppval[4] of d1d9 is 0xb. +event 166: suppval[5] of d1d9 is 0xd. +event 166: suppval[6] of d1d9 is 0x10. +event 167: EOS prop d1ba desc record, datasize 16, propxtype 3 +event 167: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 4. +event 167: suppval[0] of d1ba is 0x2. +event 167: suppval[1] of d1ba is 0x3. +event 167: suppval[2] of d1ba is 0x1. +event 167: suppval[3] of d1ba is 0x0. +event 168: EOS prop d1cc desc record, datasize 0, propxtype 3 +event 169: EOS prop d1bc desc record, datasize 8, propxtype 3 +event 169: propxtype is 3, prop is 0xd1bc, data type is 0x0006, propxcnt is 2. +event 169: suppval[0] of d1bc is 0x0. +event 169: suppval[1] of d1bc is 0x1. +event 170: EOS prop d1b8 desc record, datasize 0, propxtype 3 +event 171: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 171: propxtype is 7 for d1d3, unhandled. +event 172: EOS prop d1d8 desc record, datasize 0, propxtype 1 +event 172: propxtype is 1 for d1d8, unhandled. +event 173: EOS prop d17f desc record, datasize 0, propxtype 1 +event 173: propdesc d17f, default value not found. +event 174: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 174: propxtype is 1 for d1b7, unhandled. +event 175: EOS prop d1cb desc record, datasize 0, propxtype 7 +event 175: propxtype is 7 for d1cb, unhandled. +event 176: EOS prop d1db desc record, datasize 0, propxtype 7 +event 176: propxtype is 7 for d1db, unhandled. +event 177: EOS prop d1dc desc record, datasize 8, propxtype 3 +event 177: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 2. +event 177: suppval[0] of d1dc is 0x0. +event 177: suppval[1] of d1dc is 0x1. +event 178: EOS prop d1df desc record, datasize 52, propxtype 3 +event 178: propxtype is 3, prop is 0xd1df, data type is 0x0000, propxcnt is 13. +event 178: data type 0x0000 of d1df unhandled, raw values: + 0: 0x f0 + 1: 0x f3 + 2: 0x f5 + 3: 0x f8 + 4: 0x fb + 5: 0x fd + 6: 0x 0 + 7: 0x 3 + 8: 0x 5 + 9: 0x 8 + 10: 0x b + 11: 0x d + 12: 0x 10 +event 179: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 179: propxtype is 1 for d1bd, unhandled. +event 180: EOS prop d1c1 desc record, datasize 16, propxtype 3 +event 180: propxtype is 3, prop is 0xd1c1, data type is 0x0000, propxcnt is 4. +event 180: data type 0x0000 of d1c1 unhandled, raw values: + 0: 0x 3 + 1: 0x 1 + 2: 0x 0 + 3: 0x 2 +event 181: EOS prop d1c0 desc record, datasize 0, propxtype 1 +event 181: propxtype is 1 for d1c0, unhandled. +event 182: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 182: propxtype is 7 for d1bf, unhandled. +event 183: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 183: propxtype is 1 for d1c4, unhandled. +event 184: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 184: propxtype is 1 for d1c2, unhandled. +event 185: EOS prop d1c5 desc record, datasize 0, propxtype 3 +event 186: EOS prop d194 desc record, datasize 16, propxtype 3 +event 186: propxtype is 3, prop is 0xd194, data type is 0x0000, propxcnt is 4. +event 186: data type 0x0000 of d194 unhandled, raw values: + 0: 0x 0 + 1: 0x 2 + 2: 0x 7 + 3: 0x 1 +event 187: EOS prop d195 desc record, datasize 0, propxtype 3 +event 188: EOS prop d196 desc record, datasize 0, propxtype 7 +event 188: propxtype is 7 for d196, unhandled. +event 189: EOS prop d197 desc record, datasize 0, propxtype 3 +event 190: EOS prop d198 desc record, datasize 0, propxtype 1 +event 190: propxtype is 1 for d198, unhandled. +event 191: EOS prop d1dd desc record, datasize 0, propxtype 1 +event 191: propxtype is 1 for d1dd, unhandled. +event 192: EOS prop d1c7 desc record, datasize 0, propxtype 7 +event 192: propxtype is 7 for d1c7, unhandled. +event 193: EOS prop d199 desc record, datasize 0, propxtype 1 +event 193: propxtype is 1 for d199, unhandled. +event 194: EOS prop d138 desc record, datasize 0, propxtype 1 +event 194: propxtype is 1 for d138, unhandled. +event 195: EOS prop d139 desc record, datasize 0, propxtype 1 +event 195: propxtype is 1 for d139, unhandled. +event 196: EOS prop d13a desc record, datasize 0, propxtype 1 +event 196: propxtype is 1 for d13a, unhandled. +event 197: EOS prop d13c desc record, datasize 0, propxtype 1 +event 197: propxtype is 1 for d13c, unhandled. +event 198: EOS prop d13d desc record, datasize 0, propxtype 7 +event 198: propxtype is 7 for d13d, unhandled. +event 199: EOS prop d14d desc record, datasize 0, propxtype 7 +event 199: propxtype is 7 for d14d, unhandled. +event 200: EOS prop d19d desc record, datasize 0, propxtype 1 +event 200: propdesc d19d, default value not found. +event 201: EOS prop d19a desc record, datasize 0, propxtype 1 +event 201: propxtype is 1 for d19a, unhandled. +event 202: EOS prop d19c desc record, datasize 0, propxtype 1 +event 202: propxtype is 1 for d19c, unhandled. +event 203: EOS prop d17c desc record, datasize 0, propxtype 7 +event 203: propxtype is 7 for d17c, unhandled. +event 204: EOS prop d17d desc record, datasize 396, propxtype 3 +event 204: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +event 204: data type 0x0000 of d17d unhandled, raw values: + 0: 0x c + 1: 0x 1 + 2: 0x 2fd + 3: 0x c + 4: 0x 2 + 5: 0x 2d0 + 6: 0x c + 7: 0x 3 + 8: 0x 294 + 9: 0x c + 10: 0x 4 + 11: 0x 258 + 12: 0x c + 13: 0x 5 + 14: 0x 23a + 15: 0x c + 16: 0x 6 + 17: 0x 21c + 18: 0x c + 19: 0x 7 + 20: 0x 1e0 + 21: 0x c + 22: 0x 8 + 23: 0x 1a4 + 24: 0x c + 25: 0x 9 + 26: 0x 186 + 27: 0x c + 28: 0x a + 29: 0x 168 + 30: 0x c + 31: 0x b + 32: 0x 159 + 33: 0x c + 34: 0x c + 35: 0x 14a + 36: 0x c + 37: 0x d + 38: 0x 12c + 39: 0x c + 40: 0x e + 41: 0x 10e + 42: 0x c + 43: 0x f + 44: 0x f0 + 45: 0x c + 46: 0x 10 + 47: 0x d2 + 48: 0x c + 49: 0x 11 + 50: 0x b4 + 51: 0x c + 52: 0x 12 + 53: 0x 78 + 54: 0x c + 55: 0x 13 + 56: 0x 3c + 57: 0x c + 58: 0x 14 + 59: 0x 0 + 60: 0x c + 61: 0x 15 + 62: 0xffffffc4 + 63: 0x c + 64: 0x 16 + 65: 0xffffff88 + 66: 0x c + 67: 0x 17 + 68: 0xffffff4c + 69: 0x c + 70: 0x 18 + 71: 0xffffff2e + 72: 0x c + 73: 0x 19 + 74: 0xffffff10 + 75: 0x c + 76: 0x 1a + 77: 0xffffff10 + 78: 0x c + 79: 0x 1b + 80: 0xfffffed4 + 81: 0x c + 82: 0x 1c + 83: 0xfffffe98 + 84: 0x c + 85: 0x 1d + 86: 0xfffffe5c + 87: 0x c + 88: 0x 1e + 89: 0xfffffe20 + 90: 0x c + 91: 0x 1f + 92: 0xfffffde4 + 93: 0x c + 94: 0x 20 + 95: 0xfffffda8 + 96: 0x c + 97: 0x 21 + 98: 0x 30c +event 205: EOS prop d17e desc record, datasize 8, propxtype 3 +event 205: propxtype is 3, prop is 0xd17e, data type is 0x0000, propxcnt is 2. +event 205: data type 0x0000 of d17e unhandled, raw values: + 0: 0x 0 + 1: 0x 1 +event 206: EOS prop d1c6 desc record, datasize 12, propxtype 3 +event 206: propxtype is 3, prop is 0xd1c6, data type is 0x0000, propxcnt is 3. +event 206: data type 0x0000 of d1c6 unhandled, raw values: + 0: 0x 0 + 1: 0x 1 + 2: 0x 2 +event 207: EOS prop d1c8 desc record, datasize 8, propxtype 3 +event 207: propxtype is 3, prop is 0xd1c8, data type is 0x0000, propxcnt is 2. +event 207: data type 0x0000 of d1c8 unhandled, raw values: + 0: 0x 0 + 1: 0x 1 +event 208: EOS prop d178 desc record, datasize 20, propxtype 3 +event 208: propxtype is 3, prop is 0xd178, data type is 0x0000, propxcnt is 5. +event 208: data type 0x0000 of d178 unhandled, raw values: + 0: 0x 3 + 1: 0x 1 + 2: 0x 0 + 3: 0x 2 + 4: 0x 4 +event 209: EOS prop d179 desc record, datasize 0, propxtype 3 +event 210: EOS prop d17a desc record, datasize 8, propxtype 3 +event 210: propxtype is 3, prop is 0xd17a, data type is 0x0000, propxcnt is 2. +event 210: data type 0x0000 of d17a unhandled, raw values: + 0: 0x 1 + 1: 0x 0 +event 211: EOS prop d17b desc record, datasize 0, propxtype 3 +event 212: EOS prop d1c9 desc record, datasize 8, propxtype 3 +event 212: propxtype is 3, prop is 0xd1c9, data type is 0x0000, propxcnt is 2. +event 212: data type 0x0000 of d1c9 unhandled, raw values: + 0: 0x 1 + 1: 0x 0 + + + +event 0: EOS prop d1d9 info record, datasize is 4 +event 0: currentvalue of d1d9 is 0 +event 1: EOS prop d1d5 info record, datasize is 4 +event 1: Unknown EOS property d1d5, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 2: EOS prop d1d9 info record, datasize is 4 +event 2: currentvalue of d1d9 is 0 +event 3: EOS prop d1d5 info record, datasize is 4 +event 3: Unknown EOS property d1d5, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + event: c181 + event: c182 + event: c183 + event: c184 + event: c185 + event: c186 + event: c187 + event: c188 + event: c189 + event: c18a + event: c18b + event: c18d + event: c18e + event: c18f + event: c190 + event: c191 + event: c1a0 + event: c1a1 + deviceprop: d105 + deviceprop: d108 + deviceprop: d106 + deviceprop: d107 + deviceprop: d109 + deviceprop: d10a + deviceprop: d10b + deviceprop: d10c + deviceprop: d10d + deviceprop: d10e + deviceprop: d10f + deviceprop: d11b + deviceprop: d114 + deviceprop: d116 + deviceprop: d119 + deviceprop: d11a + deviceprop: d110 + deviceprop: d115 + deviceprop: d101 + deviceprop: d102 + deviceprop: d103 + deviceprop: d104 + deviceprop: d11d + deviceprop: d111 + deviceprop: d112 + deviceprop: d113 + deviceprop: d120 + deviceprop: d122 + deviceprop: d156 + deviceprop: d150 + deviceprop: d151 + deviceprop: d152 + deviceprop: d153 + deviceprop: d154 + deviceprop: d155 + deviceprop: d160 + deviceprop: d161 + deviceprop: d162 + deviceprop: d170 + deviceprop: d171 + deviceprop: d172 + deviceprop: d11c + deviceprop: d1a0 + deviceprop: d1a1 + deviceprop: d1a2 + deviceprop: d1a5 + deviceprop: d1a8 + deviceprop: d1a7 + deviceprop: d1ab + deviceprop: d1b0 + deviceprop: d1b1 + deviceprop: d1b2 + deviceprop: d1b3 + deviceprop: d1b4 + deviceprop: d1b5 + deviceprop: d1b6 + deviceprop: d1a9 + deviceprop: d146 + deviceprop: d1ac + deviceprop: d1ad + deviceprop: d1ae + deviceprop: d1aa + deviceprop: d11e + deviceprop: d11f + deviceprop: d1af + deviceprop: d1d0 + deviceprop: d1d1 + deviceprop: d1d9 + deviceprop: d1ba + deviceprop: d1cc + deviceprop: d1bc + deviceprop: d1b8 + deviceprop: d1d3 + deviceprop: d1d8 + deviceprop: d17f + deviceprop: d1b7 + deviceprop: d1cb + deviceprop: d1db + deviceprop: d1dc + deviceprop: d1a4 + deviceprop: d1df + deviceprop: d1bd + deviceprop: d1c1 + deviceprop: d1c0 + deviceprop: d1bf + deviceprop: d1c4 + deviceprop: d1c2 + deviceprop: d1c5 + deviceprop: d194 + deviceprop: d195 + deviceprop: d196 + deviceprop: d197 + deviceprop: d198 + deviceprop: d1dd + deviceprop: d1c7 + deviceprop: d199 + deviceprop: d138 + deviceprop: d139 + deviceprop: d13a + deviceprop: d13c + deviceprop: d13d + deviceprop: d14d + deviceprop: d19d + deviceprop: d19a + deviceprop: d19c + deviceprop: d17c + deviceprop: d17d + deviceprop: d17e + deviceprop: d1c6 + deviceprop: d1c8 + deviceprop: d178 + deviceprop: d179 + deviceprop: d17a + deviceprop: d17b + deviceprop: d1c9 + unk: 0000 + unk: 0001 + unk: 0002 + unk: 0004 + unk: 0008 +event 0: EOS prop d115 info record, datasize is 1 +event 0: currentvalue of d115 is +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is +event 3: EOS prop d1af info record, datasize is 3 +event 3: currentvalue of d1af is 10 + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1344531602 +Printable: Thu 09 Aug 2012 07:00:02 PM CEST +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Undefined +Choice: 0 Undefined +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +/main/settings/movierecord +Label: Movie Recording +Type: TEXT +Current: 0 +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d105,0, +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484417 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-S18-55mm f/3.5-5.6 IS II +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 10 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 0 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 0 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +Choice: 4 800 +Choice: 5 1600 +Choice: 6 3200 +Choice: 7 6400 +Choice: 8 12800 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 -4 +Choice: 3 -3.6 +Choice: 4 -3.3 +Choice: 5 -3 +Choice: 6 -2.6 +Choice: 7 -2.3 +Choice: 8 -2 +Choice: 9 -1.6 +Choice: 10 -1.3 +Choice: 11 -1.0 +Choice: 12 -0.6 +Choice: 13 -0.3 +Choice: 14 0 +Choice: 15 0.3 +Choice: 16 0.6 +Choice: 17 1.0 +Choice: 18 1.3 +Choice: 19 1.6 +Choice: 20 2 +Choice: 21 2.3 +Choice: 22 2.6 +Choice: 23 3 +Choice: 24 3.3 +Choice: 25 3.6 +Choice: 26 4 +Choice: 27 4.3 +Choice: 28 4.6 +Choice: 29 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: P +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous +Choice: 2 Timer 10 sec +Choice: 3 Timer 2 sec +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Unknown value 0087 +Choice: 0 Unknown value 0087 +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +Choice: 10 Unknown value 0087 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 650D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos6d-focusinfoex.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos6d-focusinfoex.txt new file mode 100644 index 00000000..2f83d670 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos6d-focusinfoex.txt @@ -0,0 +1,67 @@ +11 messfelder, davon 1 kreuzsensor + +event 4: Unknown EOS property d1d3, datasize is 116 +0: 74 00 00 00 +4: 70 00 + +6: 02 00 version 2? +8: 0b 00 11 +10: 0b 00 11 + +12: 60 15 +14: 40 0e +16: 60 15 +18: 40 0e + +20: 52 00 +22: 52 00 +24: 52 00 +26: 52 00 +28: 62 00 +30: 78 00 +32: 62 00 +34: 52 00 +36: 52 00 +38: 52 00 +40: 52 00 + +42: 62 00 +44: 62 00 +46: 62 00 +48: 62 00 +50: 4c 00 +52: 7f 00 +54: 4c 00 +56: 62 00 +58: 62 00 +60: 62 00 +62: 62 00 + +64: 89 fb +66: dd fd +68: dd fd +70: dd fd +72: 00 00 +74: 00 00 +76: 00 00 +78: 23 02 +80: 23 02 +82: 23 02 +84: 77 04 + +86: 00 00 +88: 5e 01 +90: 00 00 +92: a2 fe +94: e8 01 +96: 00 00 +98: 18 fe +100: 5e 01 +102: 00 00 +104: a2 fe +106: 00 00 + +108: 00 00 +110: 20 00 +112: 00 00 +114: ff ff diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos6d-mark2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos6d-mark2.txt new file mode 100644 index 00000000..4fce956c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos6d-mark2.txt @@ -0,0 +1,568 @@ +Bus 001 Device 006: ID 04a9:32ca Canon, Inc. +root@debian:~# gphoto2 --auto-detect +Model Port +---------------------------------------------------------- +USB PTP Class Camera usb:001,006 + +cat summary.txt +Camera summary: +Manufacturer: Canon.Inc +Model: Canon EOS 6D Mark II + Version: 3-1.0.2 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, +JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), +Unknown(b105) + +Device Capabilities: +File Download, File Deletion, File Upload +No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter +Button +Canon Wifi support + +Storage Devices Summary: +store_00020001: +StorageDescription: SD +VolumeLabel: None +Storage Type: Removable RAM (memory card) +Filesystemtype: Digital Camera Layout (DCIM) +Access Capability: Read-Write +Maximum Capability: 2014445568 (1921 MB) +Free Space (Bytes): 1831010304 (1746 MB) +Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 6D Mark II' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] +value: 18% (18) + +cat config.txt +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 946685000 +Printable: Sat Jan 1 00:03:20 2000 +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Setting 4 +Choice: 5 Setting 5 +Choice: 6 Setting 6 +Choice: 7 Setting 7 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/settings/movierecordtarget +Label: Recording Destination +Type: RADIO +Current: Disabled +Choice: 0 Disabled +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d116,80000406, +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 60 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon.Inc +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 6D Mark II +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.0.2 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484678 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 25% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF50mm f/1.8 STM +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: nnnnnnnnnnnn +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 178 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 RAW + Large Fine JPEG +Choice: 8 RAW + Large Normal JPEG +Choice: 9 RAW + Medium Fine JPEG +Choice: 10 RAW + Medium Normal JPEG +Choice: 11 RAW + Small Fine JPEG (S1 Fine) +Choice: 12 RAW + Small Normal JPEG (S1 Normal) +Choice: 13 RAW + Smaller JPEG (S2) +Choice: 14 mRAW + Large Fine JPEG +Choice: 15 mRAW + Large Normal JPEG +Choice: 16 mRAW + Medium Fine JPEG +Choice: 17 mRAW + Medium Normal JPEG +Choice: 18 mRAW + Small Fine JPEG (S1 Fine) +Choice: 19 mRAW + Small Normal JPEG (S1 Normal) +Choice: 20 mRAW + Smaller JPEG (S2) +Choice: 21 sRAW + Large Fine JPEG +Choice: 22 sRAW + Large Normal JPEG +Choice: 23 sRAW + Medium Fine JPEG +Choice: 24 sRAW + Medium Normal JPEG +Choice: 25 sRAW + Small Fine JPEG (S1 Fine) +Choice: 26 sRAW + Small Normal JPEG (S1 Normal) +Choice: 27 sRAW + Smaller JPEG (S2) +Choice: 28 RAW +Choice: 29 mRAW +Choice: 30 sRAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 RAW + Large Fine JPEG +Choice: 8 RAW + Large Normal JPEG +Choice: 9 RAW + Medium Fine JPEG +Choice: 10 RAW + Medium Normal JPEG +Choice: 11 RAW + Small Fine JPEG (S1 Fine) +Choice: 12 RAW + Small Normal JPEG (S1 Normal) +Choice: 13 RAW + Smaller JPEG (S2) +Choice: 14 mRAW + Large Fine JPEG +Choice: 15 mRAW + Large Normal JPEG +Choice: 16 mRAW + Medium Fine JPEG +Choice: 17 mRAW + Medium Normal JPEG +Choice: 18 mRAW + Small Fine JPEG (S1 Fine) +Choice: 19 mRAW + Small Normal JPEG (S1 Normal) +Choice: 20 mRAW + Smaller JPEG (S2) +Choice: 21 sRAW + Large Fine JPEG +Choice: 22 sRAW + Large Normal JPEG +Choice: 23 sRAW + Medium Fine JPEG +Choice: 24 sRAW + Medium Normal JPEG +Choice: 25 sRAW + Small Fine JPEG (S1 Fine) +Choice: 26 sRAW + Small Normal JPEG (S1 Normal) +Choice: 27 sRAW + Smaller JPEG (S2) +Choice: 28 RAW +Choice: 29 mRAW +Choice: 30 sRAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 RAW + Large Fine JPEG +Choice: 8 RAW + Large Normal JPEG +Choice: 9 RAW + Medium Fine JPEG +Choice: 10 RAW + Medium Normal JPEG +Choice: 11 RAW + Small Fine JPEG (S1 Fine) +Choice: 12 RAW + Small Normal JPEG (S1 Normal) +Choice: 13 RAW + Smaller JPEG (S2) +Choice: 14 mRAW + Large Fine JPEG +Choice: 15 mRAW + Large Normal JPEG +Choice: 16 mRAW + Medium Fine JPEG +Choice: 17 mRAW + Medium Normal JPEG +Choice: 18 mRAW + Small Fine JPEG (S1 Fine) +Choice: 19 mRAW + Small Normal JPEG (S1 Normal) +Choice: 20 mRAW + Smaller JPEG (S2) +Choice: 21 sRAW + Large Fine JPEG +Choice: 22 sRAW + Large Normal JPEG +Choice: 23 sRAW + Medium Fine JPEG +Choice: 24 sRAW + Medium Normal JPEG +Choice: 25 sRAW + Small Fine JPEG (S1 Fine) +Choice: 26 sRAW + Small Normal JPEG (S1 Normal) +Choice: 27 sRAW + Smaller JPEG (S2) +Choice: 28 RAW +Choice: 29 mRAW +Choice: 30 sRAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 100 +Choice: 2 125 +Choice: 3 160 +Choice: 4 200 +Choice: 5 250 +Choice: 6 320 +Choice: 7 400 +Choice: 8 500 +Choice: 9 640 +Choice: 10 800 +Choice: 11 1000 +Choice: 12 1250 +Choice: 13 1600 +Choice: 14 2000 +Choice: 15 2500 +Choice: 16 3200 +Choice: 17 4000 +Choice: 18 5000 +Choice: 19 6400 +Choice: 20 8000 +Choice: 21 10000 +Choice: 22 12800 +Choice: 23 16000 +Choice: 24 20000 +Choice: 25 25600 +Choice: 26 Unknown value 008b +Choice: 27 Unknown value 008d +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Unknown value 0017 +Choice: 2 Daylight +Choice: 3 Shadow +Choice: 4 Cloudy +Choice: 5 Tungsten +Choice: 6 Fluorescent +Choice: 7 Flash +Choice: 8 Manual +Choice: 9 Color Temperature +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 5200 +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 -4.3 +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: P +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous high speed +Choice: 2 Continuous low speed +Choice: 3 Single silent +Choice: 4 Continuous silent +Choice: 5 Timer 10 sec +Choice: 6 Timer 2 sec +Choice: 7 Unknown value 0007 +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Unknown value 0088 +Choice: 5 Neutral +Choice: 6 Faithful +Choice: 7 Monochrome +Choice: 8 User defined 1 +Choice: 9 User defined 2 +Choice: 10 User defined 3 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +Choice: 7 +/- 2 1/3 +Choice: 8 +/- 2 2/3 +Choice: 9 +/- 3 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 6D Mark II +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 18 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 + + +Capture is possible but the command never ends. + +Thomas +-- +Thomas Schaaf +Geschäftsführer, Entwickler +komola GmbH + +Steintorwall 4 +38100 Braunschweig +Support: +49 531 224 34 590 +Mobil: +49 176 27379788 +Geschäftsführer: Sebastian Hoitz, Thomas Schaaf diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos6d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos6d.txt new file mode 100644 index 00000000..dbdbd043 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos6d.txt @@ -0,0 +1,4017 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 6D + Version: 3-1.1.2 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture + Canon Wifi support + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 31902400512 (30424 MB) + Free Space (Bytes): 30790516736 (29364 MB) + Free Space (Images): -1 + +Device Property Summary: +Model ID(0xd049):(read only) (type=0x6) 2147484418 +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 6D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1367073534 +Printable: Sat 27 Apr 2013 04:38:54 PM CEST +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Undefined +Choice: 0 Undefined +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/settings/movierecord +Label: Movie Recording +Type: TEXT +Current: 0 +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d194,0, +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 60 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 9d8427f6105b4cf999906ac7d9aee077 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 6D +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.1.2 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484418 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF70-300mm f/4-5.6 IS USM +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 033024014483 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 147 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 4672 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 Unknown value 04d3 +Choice: 13 Unknown value 04d2 +Choice: 14 Unknown value 04e3 +Choice: 15 Unknown value 04f3 +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 Unknown value 14d3 +Choice: 21 Unknown value 14d2 +Choice: 22 Unknown value 14e3 +Choice: 23 Unknown value 14f3 +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 Unknown value 24d3 +Choice: 29 Unknown value 24d2 +Choice: 30 Unknown value 24e3 +Choice: 31 Unknown value 24f3 +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 Unknown value 04d3 +Choice: 13 Unknown value 04d2 +Choice: 14 Unknown value 04e3 +Choice: 15 Unknown value 04f3 +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 Unknown value 14d3 +Choice: 21 Unknown value 14d2 +Choice: 22 Unknown value 14e3 +Choice: 23 Unknown value 14f3 +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 Unknown value 24d3 +Choice: 29 Unknown value 24d2 +Choice: 30 Unknown value 24e3 +Choice: 31 Unknown value 24f3 +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 Unknown value 04d3 +Choice: 13 Unknown value 04d2 +Choice: 14 Unknown value 04e3 +Choice: 15 Unknown value 04f3 +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 Unknown value 14d3 +Choice: 21 Unknown value 14d2 +Choice: 22 Unknown value 14e3 +Choice: 23 Unknown value 14f3 +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 Unknown value 24d3 +Choice: 29 Unknown value 24d2 +Choice: 30 Unknown value 24e3 +Choice: 31 Unknown value 24f3 +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 1600 +Choice: 0 Auto +Choice: 1 100 +Choice: 2 125 +Choice: 3 160 +Choice: 4 200 +Choice: 5 250 +Choice: 6 320 +Choice: 7 400 +Choice: 8 500 +Choice: 9 640 +Choice: 10 800 +Choice: 11 1000 +Choice: 12 1250 +Choice: 13 1600 +Choice: 14 2000 +Choice: 15 2500 +Choice: 16 3200 +Choice: 17 4000 +Choice: 18 5000 +Choice: 19 6400 +Choice: 20 Unknown value 007b +Choice: 21 Unknown value 007d +Choice: 22 12800 +Choice: 23 Unknown value 0083 +Choice: 24 Unknown value 0085 +Choice: 25 25600 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +Choice: 8 Color Temperature +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 Unknown value 00dd +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: P +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Continuous +Choice: 0 Single +Choice: 1 Continuous +Choice: 2 Single silent +Choice: 3 Continuous silent +Choice: 4 Timer 2 sec +Choice: 5 Timer 10 sec +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Neutral +Choice: 0 Unknown value 0087 +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +Choice: 7 +/- 2 1/3 +Choice: 8 +/- 2 2/3 +Choice: 9 +/- 3 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: -2147482878 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 6D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d1c3 changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d1c3 changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d105 changed +UNKNOWN PTP Property d108 changed +UNKNOWN PTP Property d106 changed +UNKNOWN PTP Property d107 changed +UNKNOWN PTP Property d109 changed +UNKNOWN PTP Property d10a changed +UNKNOWN PTP Property d10b changed +UNKNOWN PTP Property d10c changed +UNKNOWN PTP Property d10d changed +UNKNOWN PTP Property d10e changed +UNKNOWN PTP Property d10f changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d114 changed +UNKNOWN PTP Property d116 changed +UNKNOWN PTP Property d119 changed +UNKNOWN PTP Property d110 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d103 changed +UNKNOWN PTP Property d104 changed +UNKNOWN PTP Property d11d changed +UNKNOWN PTP Property d111 changed +UNKNOWN PTP Property d112 changed +UNKNOWN PTP Property d113 changed +UNKNOWN PTP Property d17c changed +UNKNOWN PTP Property d17d changed +UNKNOWN PTP Property d17e changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d121 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d156 changed +UNKNOWN PTP Property d150 changed +UNKNOWN PTP Property d151 changed +UNKNOWN PTP Property d152 changed +UNKNOWN PTP Property d153 changed +UNKNOWN PTP Property d154 changed +UNKNOWN PTP Property d155 changed +UNKNOWN PTP Property d160 changed +UNKNOWN PTP Property d161 changed +UNKNOWN PTP Property d162 changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a1 changed +UNKNOWN PTP Property d1a8 changed +UNKNOWN PTP Property d1a7 changed +UNKNOWN PTP Property d1ab changed +UNKNOWN PTP Property d1b0 changed +UNKNOWN PTP Property d1b1 changed +UNKNOWN PTP Property d1b2 changed +UNKNOWN PTP Property d1b3 changed +UNKNOWN PTP Property d1b4 changed +UNKNOWN PTP Property d1b5 changed +UNKNOWN PTP Property d1b6 changed +UNKNOWN PTP Property d1a9 changed +UNKNOWN PTP Property d146 changed +UNKNOWN PTP Property d1ac changed +UNKNOWN PTP Property d1aa changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d11f changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1d5 changed +UNKNOWN PTP Property d1ba changed +UNKNOWN PTP Property d1cc changed +UNKNOWN PTP Property d1bc changed +UNKNOWN PTP Property d1b8 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1d8 changed +UNKNOWN PTP Property d1b7 changed +UNKNOWN PTP Property d1cb changed +UNKNOWN PTP Property d1db changed +UNKNOWN PTP Property d1dc changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d1a4 changed +UNKNOWN PTP Property d1df changed +UNKNOWN PTP Property d1bd changed +UNKNOWN PTP Property d1c1 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1c4 changed +UNKNOWN PTP Property d1c2 changed +UNKNOWN PTP Property d1c5 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d195 changed +UNKNOWN PTP Property d196 changed +UNKNOWN PTP Property d197 changed +UNKNOWN PTP Property d198 changed +UNKNOWN PTP Property d1dd changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d199 changed +UNKNOWN PTP Property d138 changed +UNKNOWN PTP Property d139 changed +UNKNOWN PTP Property d13a changed +UNKNOWN PTP Property d13b changed +UNKNOWN PTP Property d13c changed +UNKNOWN PTP Property d13d changed +UNKNOWN PTP Property d14d changed +UNKNOWN PTP Property d19a changed +UNKNOWN PTP Property d19c changed +UNKNOWN PTP Property d177 changed +UNKNOWN PTP Property d178 changed +UNKNOWN PTP Property d17b changed +UNKNOWN PTP Property d19f changed +UNKNOWN PTP Property d175 changed +UNKNOWN PTP Property d14c changed +UNKNOWN PTP Property d14b changed +UNKNOWN PTP Property d115 changed +UNKNOWN PTP Property d1d0 changed +UNKNOWN PTP Property d1d1 changed +UNKNOWN PTP Property d1af changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d1c3 changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d105 changed +UNKNOWN PTP Property d108 changed +UNKNOWN PTP Property d106 changed +UNKNOWN PTP Property d107 changed +UNKNOWN PTP Property d109 changed +UNKNOWN PTP Property d10a changed +UNKNOWN PTP Property d10b changed +UNKNOWN PTP Property d10c changed +UNKNOWN PTP Property d10d changed +UNKNOWN PTP Property d10e changed +UNKNOWN PTP Property d10f changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d114 changed +UNKNOWN PTP Property d116 changed +UNKNOWN PTP Property d119 changed +UNKNOWN PTP Property d110 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d103 changed +UNKNOWN PTP Property d104 changed +UNKNOWN PTP Property d11d changed +UNKNOWN PTP Property d111 changed +UNKNOWN PTP Property d112 changed +UNKNOWN PTP Property d113 changed +UNKNOWN PTP Property d17c changed +UNKNOWN PTP Property d17d changed +UNKNOWN PTP Property d17e changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d121 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d156 changed +UNKNOWN PTP Property d150 changed +UNKNOWN PTP Property d151 changed +UNKNOWN PTP Property d152 changed +UNKNOWN PTP Property d153 changed +UNKNOWN PTP Property d154 changed +UNKNOWN PTP Property d155 changed +UNKNOWN PTP Property d160 changed +UNKNOWN PTP Property d161 changed +UNKNOWN PTP Property d162 changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a1 changed +UNKNOWN PTP Property d1a8 changed +UNKNOWN PTP Property d1a7 changed +UNKNOWN PTP Property d1ab changed +UNKNOWN PTP Property d1b0 changed +UNKNOWN PTP Property d1b1 changed +UNKNOWN PTP Property d1b2 changed +UNKNOWN PTP Property d1b3 changed +UNKNOWN PTP Property d1b4 changed +UNKNOWN PTP Property d1b5 changed +UNKNOWN PTP Property d1b6 changed +UNKNOWN PTP Property d1a9 changed +UNKNOWN PTP Property d146 changed +UNKNOWN PTP Property d1ac changed +UNKNOWN PTP Property d1aa changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d11f changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1d5 changed +UNKNOWN PTP Property d1ba changed +UNKNOWN PTP Property d1cc changed +UNKNOWN PTP Property d1bc changed +UNKNOWN PTP Property d1b8 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1d8 changed +UNKNOWN PTP Property d1b7 changed +UNKNOWN PTP Property d1cb changed +UNKNOWN PTP Property d1db changed +UNKNOWN PTP Property d1dc changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d1a4 changed +UNKNOWN PTP Property d1df changed +UNKNOWN PTP Property d1bd changed +UNKNOWN PTP Property d1c1 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1c4 changed +UNKNOWN PTP Property d1c2 changed +UNKNOWN PTP Property d1c5 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d195 changed +UNKNOWN PTP Property d196 changed +UNKNOWN PTP Property d197 changed +UNKNOWN PTP Property d198 changed +UNKNOWN PTP Property d1dd changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d199 changed +UNKNOWN PTP Property d138 changed +UNKNOWN PTP Property d139 changed +UNKNOWN PTP Property d13a changed +UNKNOWN PTP Property d13b changed +UNKNOWN PTP Property d13c changed +UNKNOWN PTP Property d13d changed +UNKNOWN PTP Property d14d changed +UNKNOWN PTP Property d19a changed +UNKNOWN PTP Property d19c changed +UNKNOWN PTP Property d177 changed +UNKNOWN PTP Property d178 changed +UNKNOWN PTP Property d17b changed +UNKNOWN PTP Property d19f changed +UNKNOWN PTP Property d175 changed +UNKNOWN PTP Property d14c changed +UNKNOWN PTP Property d14b changed +UNKNOWN PTP Property d115 changed +UNKNOWN PTP Property d1d0 changed +UNKNOWN PTP Property d1d1 changed +UNKNOWN PTP Property d1af changed +New file is in location /store_00020001/DCIM/102NIKON/IMG_0165.JPG on the camera + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 6D + device version: 3-1.1.2 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1014 + 0x1015 + 0x1016 + 0x91d5 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9141 + 0x9142 + 0x9143 + 0x9144 + 0x9145 + 0x9140 + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x912d + 0x912e + 0x912f + 0x912c + 0x9130 + 0x9131 + 0x9132 + 0x9133 + 0x9134 + 0x912b + 0x9135 + 0x9136 + 0x9137 + 0x9138 + 0x9139 + 0x913a + 0x913b + 0x913c + 0x913d + 0x913f + 0x91da + 0x91db + 0x91dc + 0x91dd + 0x91de + 0x91d8 + 0x91d9 + 0x91d7 + 0x913e + 0x9113 + 0x9114 + 0x9115 + 0x9116 + 0x91c0 + 0x91c1 + 0x91c2 + 0x91c3 + 0x91c4 + 0x91c5 + 0x91c6 + 0x91c7 + 0x91c8 + 0x91c9 + 0x91ca + 0x91cb + 0x91cc + 0x91ce + 0x91cf + 0x91d0 + 0x91d1 + 0x91d2 + 0x91e1 + 0x91e2 + 0x91e3 + 0x91e4 + 0x91e5 + 0x91e6 + 0x91e7 + 0x91e8 + 0x91e9 + 0x91ea + 0x91eb + 0x91ec + 0x91ed + 0x91ee + 0x91ef + 0x91f8 + 0x91f9 + 0x91f2 + 0x91f3 + 0x91f4 + 0x91f7 + 0x91df + 0x91fb + 0x91fc + 0x91fd + 0x9122 + 0x9123 + 0x9124 + 0x91f5 + 0x91f6 + 0x9033 + 0x9068 + 0x9069 + 0x906a + 0x906b + 0x906c + 0x906d + 0x906e + 0x906f + 0x902f + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905f +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd049 + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + + +ptp(2): event 0: EOS prop d194 info record, datasize is 4 +ptp(2): event 0: Unknown EOS property d194, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 1: EOS prop d1c3 info record, datasize is 4 +ptp(2): event 1: Unknown EOS property d1c3, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 2: EOS prop d1c7 info record, datasize is 4 +ptp(2): event 2: Unknown EOS property d1c7, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 3: EOS prop d1bf info record, datasize is 4 +ptp(2): event 3: Unknown EOS property d1bf, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 4: EOS prop d1d3 info record, datasize is 116 +ptp(2): event 4: Unknown EOS property d1d3, datasize is 116 +ptp(2): 0: 74 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 70 +ptp(2): 5: 00 +ptp(2): 6: 02 +ptp(2): 7: 00 +ptp(2): 8: 0b +ptp(2): 9: 00 +ptp(2): 10: 0b +ptp(2): 11: 00 +ptp(2): 12: 60 +ptp(2): 13: 15 +ptp(2): 14: 40 +ptp(2): 15: 0e +ptp(2): 16: 60 +ptp(2): 17: 15 +ptp(2): 18: 40 +ptp(2): 19: 0e +ptp(2): 20: 52 +ptp(2): 21: 00 +ptp(2): 22: 52 +ptp(2): 23: 00 +ptp(2): 24: 52 +ptp(2): 25: 00 +ptp(2): 26: 52 +ptp(2): 27: 00 +ptp(2): 28: 62 +ptp(2): 29: 00 +ptp(2): 30: 78 +ptp(2): 31: 00 +ptp(2): 32: 62 +ptp(2): 33: 00 +ptp(2): 34: 52 +ptp(2): 35: 00 +ptp(2): 36: 52 +ptp(2): 37: 00 +ptp(2): 38: 52 +ptp(2): 39: 00 +ptp(2): 40: 52 +ptp(2): 41: 00 +ptp(2): 42: 62 +ptp(2): 43: 00 +ptp(2): 44: 62 +ptp(2): 45: 00 +ptp(2): 46: 62 +ptp(2): 47: 00 +ptp(2): 48: 62 +ptp(2): 49: 00 +ptp(2): 50: 4c +ptp(2): 51: 00 +ptp(2): 52: 7f +ptp(2): 53: 00 +ptp(2): 54: 4c +ptp(2): 55: 00 +ptp(2): 56: 62 +ptp(2): 57: 00 +ptp(2): 58: 62 +ptp(2): 59: 00 +ptp(2): 60: 62 +ptp(2): 61: 00 +ptp(2): 62: 62 +ptp(2): 63: 00 +ptp(2): 64: 89 +ptp(2): 65: fb +ptp(2): 66: dd +ptp(2): 67: fd +ptp(2): 68: dd +ptp(2): 69: fd +ptp(2): 70: dd +ptp(2): 71: fd +ptp(2): 72: 00 +ptp(2): 73: 00 +ptp(2): 74: 00 +ptp(2): 75: 00 +ptp(2): 76: 00 +ptp(2): 77: 00 +ptp(2): 78: 23 +ptp(2): 79: 02 +ptp(2): 80: 23 +ptp(2): 81: 02 +ptp(2): 82: 23 +ptp(2): 83: 02 +ptp(2): 84: 77 +ptp(2): 85: 04 +ptp(2): 86: 00 +ptp(2): 87: 00 +ptp(2): 88: 5e +ptp(2): 89: 01 +ptp(2): 90: 00 +ptp(2): 91: 00 +ptp(2): 92: a2 +ptp(2): 93: fe +ptp(2): 94: e8 +ptp(2): 95: 01 +ptp(2): 96: 00 +ptp(2): 97: 00 +ptp(2): 98: 18 +ptp(2): 99: fe +ptp(2): 100: 5e +ptp(2): 101: 01 +ptp(2): 102: 00 +ptp(2): 103: 00 +ptp(2): 104: a2 +ptp(2): 105: fe +ptp(2): 106: 00 +ptp(2): 107: 00 +ptp(2): 108: 00 +ptp(2): 109: 00 +ptp(2): 110: 20 +ptp(2): 111: 00 +ptp(2): 112: 00 +ptp(2): 113: 00 +ptp(2): 114: ff +ptp(2): 115: ff +ptp(2): event 5: EOS prop d1c0 info record, datasize is 4 +ptp(2): event 5: Unknown EOS property d1c0, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 6: EOS prop d1d3 info record, datasize is 116 +ptp(2): event 6: Unknown EOS property d1d3, datasize is 116 +ptp(2): 0: 74 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 70 +ptp(2): 5: 00 +ptp(2): 6: 02 +ptp(2): 7: 00 +ptp(2): 8: 0b +ptp(2): 9: 00 +ptp(2): 10: 0b +ptp(2): 11: 00 +ptp(2): 12: 60 +ptp(2): 13: 15 +ptp(2): 14: 40 +ptp(2): 15: 0e +ptp(2): 16: 60 +ptp(2): 17: 15 +ptp(2): 18: 40 +ptp(2): 19: 0e +ptp(2): 20: 52 +ptp(2): 21: 00 +ptp(2): 22: 52 +ptp(2): 23: 00 +ptp(2): 24: 52 +ptp(2): 25: 00 +ptp(2): 26: 52 +ptp(2): 27: 00 +ptp(2): 28: 62 +ptp(2): 29: 00 +ptp(2): 30: 78 +ptp(2): 31: 00 +ptp(2): 32: 62 +ptp(2): 33: 00 +ptp(2): 34: 52 +ptp(2): 35: 00 +ptp(2): 36: 52 +ptp(2): 37: 00 +ptp(2): 38: 52 +ptp(2): 39: 00 +ptp(2): 40: 52 +ptp(2): 41: 00 +ptp(2): 42: 62 +ptp(2): 43: 00 +ptp(2): 44: 62 +ptp(2): 45: 00 +ptp(2): 46: 62 +ptp(2): 47: 00 +ptp(2): 48: 62 +ptp(2): 49: 00 +ptp(2): 50: 4c +ptp(2): 51: 00 +ptp(2): 52: 7f +ptp(2): 53: 00 +ptp(2): 54: 4c +ptp(2): 55: 00 +ptp(2): 56: 62 +ptp(2): 57: 00 +ptp(2): 58: 62 +ptp(2): 59: 00 +ptp(2): 60: 62 +ptp(2): 61: 00 +ptp(2): 62: 62 +ptp(2): 63: 00 +ptp(2): 64: 89 +ptp(2): 65: fb +ptp(2): 66: dd +ptp(2): 67: fd +ptp(2): 68: dd +ptp(2): 69: fd +ptp(2): 70: dd +ptp(2): 71: fd +ptp(2): 72: 00 +ptp(2): 73: 00 +ptp(2): 74: 00 +ptp(2): 75: 00 +ptp(2): 76: 00 +ptp(2): 77: 00 +ptp(2): 78: 23 +ptp(2): 79: 02 +ptp(2): 80: 23 +ptp(2): 81: 02 +ptp(2): 82: 23 +ptp(2): 83: 02 +ptp(2): 84: 77 +ptp(2): 85: 04 +ptp(2): 86: 00 +ptp(2): 87: 00 +ptp(2): 88: 5e +ptp(2): 89: 01 +ptp(2): 90: 00 +ptp(2): 91: 00 +ptp(2): 92: a2 +ptp(2): 93: fe +ptp(2): 94: e8 +ptp(2): 95: 01 +ptp(2): 96: 00 +ptp(2): 97: 00 +ptp(2): 98: 18 +ptp(2): 99: fe +ptp(2): 100: 5e +ptp(2): 101: 01 +ptp(2): 102: 00 +ptp(2): 103: 00 +ptp(2): 104: a2 +ptp(2): 105: fe +ptp(2): 106: 00 +ptp(2): 107: 00 +ptp(2): 108: 00 +ptp(2): 109: 00 +ptp(2): 110: 20 +ptp(2): 111: 00 +ptp(2): 112: 00 +ptp(2): 113: 00 +ptp(2): 114: ff +ptp(2): 115: ff +ptp(2): event 7: EOS prop d1a3 info record, datasize is 4 +ptp(2): event 7: Unknown EOS property d1a3, datasize is 4, using uint32 +ptp(2): 0: 0x 0 +ptp(2): event 7: currentvalue of d1a3 is 0 +ptp(2): event 8: EOS prop d194 info record, datasize is 4 +ptp(2): event 8: Unknown EOS property d194, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 9: EOS prop d1c3 info record, datasize is 4 +ptp(2): event 9: Unknown EOS property d1c3, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 10: EOS prop d1c7 info record, datasize is 4 +ptp(2): event 10: Unknown EOS property d1c7, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 11: EOS prop d1bf info record, datasize is 4 +ptp(2): event 11: Unknown EOS property d1bf, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 12: EOS prop d1d3 info record, datasize is 116 +ptp(2): event 12: Unknown EOS property d1d3, datasize is 116 +ptp(2): 0: 74 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 70 +ptp(2): 5: 00 +ptp(2): 6: 02 +ptp(2): 7: 00 +ptp(2): 8: 0b +ptp(2): 9: 00 +ptp(2): 10: 0b +ptp(2): 11: 00 +ptp(2): 12: 60 +ptp(2): 13: 15 +ptp(2): 14: 40 +ptp(2): 15: 0e +ptp(2): 16: 60 +ptp(2): 17: 15 +ptp(2): 18: 40 +ptp(2): 19: 0e +ptp(2): 20: 52 +ptp(2): 21: 00 +ptp(2): 22: 52 +ptp(2): 23: 00 +ptp(2): 24: 52 +ptp(2): 25: 00 +ptp(2): 26: 52 +ptp(2): 27: 00 +ptp(2): 28: 62 +ptp(2): 29: 00 +ptp(2): 30: 78 +ptp(2): 31: 00 +ptp(2): 32: 62 +ptp(2): 33: 00 +ptp(2): 34: 52 +ptp(2): 35: 00 +ptp(2): 36: 52 +ptp(2): 37: 00 +ptp(2): 38: 52 +ptp(2): 39: 00 +ptp(2): 40: 52 +ptp(2): 41: 00 +ptp(2): 42: 62 +ptp(2): 43: 00 +ptp(2): 44: 62 +ptp(2): 45: 00 +ptp(2): 46: 62 +ptp(2): 47: 00 +ptp(2): 48: 62 +ptp(2): 49: 00 +ptp(2): 50: 4c +ptp(2): 51: 00 +ptp(2): 52: 7f +ptp(2): 53: 00 +ptp(2): 54: 4c +ptp(2): 55: 00 +ptp(2): 56: 62 +ptp(2): 57: 00 +ptp(2): 58: 62 +ptp(2): 59: 00 +ptp(2): 60: 62 +ptp(2): 61: 00 +ptp(2): 62: 62 +ptp(2): 63: 00 +ptp(2): 64: 89 +ptp(2): 65: fb +ptp(2): 66: dd +ptp(2): 67: fd +ptp(2): 68: dd +ptp(2): 69: fd +ptp(2): 70: dd +ptp(2): 71: fd +ptp(2): 72: 00 +ptp(2): 73: 00 +ptp(2): 74: 00 +ptp(2): 75: 00 +ptp(2): 76: 00 +ptp(2): 77: 00 +ptp(2): 78: 23 +ptp(2): 79: 02 +ptp(2): 80: 23 +ptp(2): 81: 02 +ptp(2): 82: 23 +ptp(2): 83: 02 +ptp(2): 84: 77 +ptp(2): 85: 04 +ptp(2): 86: 00 +ptp(2): 87: 00 +ptp(2): 88: 5e +ptp(2): 89: 01 +ptp(2): 90: 00 +ptp(2): 91: 00 +ptp(2): 92: a2 +ptp(2): 93: fe +ptp(2): 94: e8 +ptp(2): 95: 01 +ptp(2): 96: 00 +ptp(2): 97: 00 +ptp(2): 98: 18 +ptp(2): 99: fe +ptp(2): 100: 5e +ptp(2): 101: 01 +ptp(2): 102: 00 +ptp(2): 103: 00 +ptp(2): 104: a2 +ptp(2): 105: fe +ptp(2): 106: 00 +ptp(2): 107: 00 +ptp(2): 108: 00 +ptp(2): 109: 00 +ptp(2): 110: 20 +ptp(2): 111: 00 +ptp(2): 112: 00 +ptp(2): 113: 00 +ptp(2): 114: ff +ptp(2): 115: ff +ptp(2): event 13: EOS prop d1c0 info record, datasize is 4 +ptp(2): event 13: Unknown EOS property d1c0, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 14: EOS prop d1d3 info record, datasize is 116 +ptp(2): event 14: Unknown EOS property d1d3, datasize is 116 +ptp(2): 0: 74 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 70 +ptp(2): 5: 00 +ptp(2): 6: 02 +ptp(2): 7: 00 +ptp(2): 8: 0b +ptp(2): 9: 00 +ptp(2): 10: 0b +ptp(2): 11: 00 +ptp(2): 12: 60 +ptp(2): 13: 15 +ptp(2): 14: 40 +ptp(2): 15: 0e +ptp(2): 16: 60 +ptp(2): 17: 15 +ptp(2): 18: 40 +ptp(2): 19: 0e +ptp(2): 20: 52 +ptp(2): 21: 00 +ptp(2): 22: 52 +ptp(2): 23: 00 +ptp(2): 24: 52 +ptp(2): 25: 00 +ptp(2): 26: 52 +ptp(2): 27: 00 +ptp(2): 28: 62 +ptp(2): 29: 00 +ptp(2): 30: 78 +ptp(2): 31: 00 +ptp(2): 32: 62 +ptp(2): 33: 00 +ptp(2): 34: 52 +ptp(2): 35: 00 +ptp(2): 36: 52 +ptp(2): 37: 00 +ptp(2): 38: 52 +ptp(2): 39: 00 +ptp(2): 40: 52 +ptp(2): 41: 00 +ptp(2): 42: 62 +ptp(2): 43: 00 +ptp(2): 44: 62 +ptp(2): 45: 00 +ptp(2): 46: 62 +ptp(2): 47: 00 +ptp(2): 48: 62 +ptp(2): 49: 00 +ptp(2): 50: 4c +ptp(2): 51: 00 +ptp(2): 52: 7f +ptp(2): 53: 00 +ptp(2): 54: 4c +ptp(2): 55: 00 +ptp(2): 56: 62 +ptp(2): 57: 00 +ptp(2): 58: 62 +ptp(2): 59: 00 +ptp(2): 60: 62 +ptp(2): 61: 00 +ptp(2): 62: 62 +ptp(2): 63: 00 +ptp(2): 64: 89 +ptp(2): 65: fb +ptp(2): 66: dd +ptp(2): 67: fd +ptp(2): 68: dd +ptp(2): 69: fd +ptp(2): 70: dd +ptp(2): 71: fd +ptp(2): 72: 00 +ptp(2): 73: 00 +ptp(2): 74: 00 +ptp(2): 75: 00 +ptp(2): 76: 00 +ptp(2): 77: 00 +ptp(2): 78: 23 +ptp(2): 79: 02 +ptp(2): 80: 23 +ptp(2): 81: 02 +ptp(2): 82: 23 +ptp(2): 83: 02 +ptp(2): 84: 77 +ptp(2): 85: 04 +ptp(2): 86: 00 +ptp(2): 87: 00 +ptp(2): 88: 5e +ptp(2): 89: 01 +ptp(2): 90: 00 +ptp(2): 91: 00 +ptp(2): 92: a2 +ptp(2): 93: fe +ptp(2): 94: e8 +ptp(2): 95: 01 +ptp(2): 96: 00 +ptp(2): 97: 00 +ptp(2): 98: 18 +ptp(2): 99: fe +ptp(2): 100: 5e +ptp(2): 101: 01 +ptp(2): 102: 00 +ptp(2): 103: 00 +ptp(2): 104: a2 +ptp(2): 105: fe +ptp(2): 106: 00 +ptp(2): 107: 00 +ptp(2): 108: 00 +ptp(2): 109: 00 +ptp(2): 110: 20 +ptp(2): 111: 00 +ptp(2): 112: 00 +ptp(2): 113: 00 +ptp(2): 114: ff +ptp(2): 115: ff +ptp(2): event 15: EOS prop d1a3 info record, datasize is 4 +ptp(2): event 15: Unknown EOS property d1a3, datasize is 4, using uint32 +ptp(2): 0: 0x 0 +ptp(2): event 15: currentvalue of d1a3 is 0 +ptp(2): event 16: EOS prop d105 info record, datasize is 4 +ptp(2): event 16: currentvalue of d105 is 0 +ptp(2): event 17: EOS prop d108 info record, datasize is 4 +ptp(2): event 17: currentvalue of d108 is 0 +ptp(2): event 18: EOS prop d106 info record, datasize is 4 +ptp(2): event 18: currentvalue of d106 is 0 +ptp(2): event 19: EOS prop d107 info record, datasize is 4 +ptp(2): event 19: currentvalue of d107 is 3 +ptp(2): event 20: EOS prop d109 info record, datasize is 4 +ptp(2): event 20: currentvalue of d109 is 0 +ptp(2): event 21: EOS prop d10a info record, datasize is 4 +ptp(2): event 21: Unknown EOS property d10a, datasize is 4, using uint32 +ptp(2): 0: 0x 1450 +ptp(2): event 21: currentvalue of d10a is 1450 +ptp(2): event 22: EOS prop d10b info record, datasize is 4 +ptp(2): event 23: EOS prop d10c info record, datasize is 4 +ptp(2): event 24: EOS prop d10d info record, datasize is 4 +ptp(2): event 24: currentvalue of d10d is 0 +ptp(2): event 25: EOS prop d10e info record, datasize is 4 +ptp(2): event 25: currentvalue of d10e is 0 +ptp(2): event 26: EOS prop d10f info record, datasize is 4 +ptp(2): event 26: currentvalue of d10f is 1 +ptp(2): event 27: EOS prop d11b info record, datasize is 4 +ptp(2): event 27: currentvalue of d11b is 6f4 +ptp(2): event 28: EOS prop d114 info record, datasize is 4 +ptp(2): event 28: Unknown EOS property d114, datasize is 4, using uint16 +ptp(2): 0: 3c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 28: currentvalue of d114 is 3c +ptp(2): event 29: EOS prop d116 info record, datasize is 4 +ptp(2): event 29: currentvalue of d116 is 80000302 +ptp(2): event 30: EOS prop d119 info record, datasize is 4 +ptp(2): event 30: currentvalue of d119 is 100 +ptp(2): event 31: EOS prop d110 info record, datasize is 4 +ptp(2): event 31: currentvalue of d110 is 87 +ptp(2): event 32: EOS prop d101 info record, datasize is 4 +ptp(2): event 32: currentvalue of d101 is 28 +ptp(2): event 33: EOS prop d102 info record, datasize is 4 +ptp(2): event 33: currentvalue of d102 is 75 +ptp(2): event 34: EOS prop d103 info record, datasize is 4 +ptp(2): event 34: currentvalue of d103 is 88 +ptp(2): event 35: EOS prop d104 info record, datasize is 4 +ptp(2): event 35: currentvalue of d104 is 0 +ptp(2): event 36: EOS prop d11d info record, datasize is 4 +ptp(2): event 36: currentvalue of d11d is 0 +ptp(2): event 37: EOS prop d111 info record, datasize is 4 +ptp(2): event 37: currentvalue of d111 is 4 +ptp(2): event 38: EOS prop d112 info record, datasize is 4 +ptp(2): event 38: currentvalue of d112 is 0 +ptp(2): event 39: EOS prop d113 info record, datasize is 4 +ptp(2): event 39: currentvalue of d113 is 5104f120 +ptp(2): event 40: EOS prop d17c info record, datasize is 4 +ptp(2): event 40: Unknown EOS property d17c, datasize is 4 +ptp(2): 0: 10 +ptp(2): 1: e3 +ptp(2): 2: 04 +ptp(2): 3: 51 +ptp(2): event 41: EOS prop d17d info record, datasize is 12 +ptp(2): event 41: Unknown EOS property d17d, datasize is 12 +ptp(2): 0: 0c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 13 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 3c +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): event 42: EOS prop d17e info record, datasize is 4 +ptp(2): event 42: Unknown EOS property d17e, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 43: EOS prop d120 info record, datasize is 20 +ptp(2): event 43: decoded imageformat, currentvalue of d120 is 400 +ptp(2): event 44: EOS prop d121 info record, datasize is 20 +ptp(2): event 44: decoded imageformat, currentvalue of d121 is 400 +ptp(2): event 45: EOS prop d122 info record, datasize is 20 +ptp(2): event 45: decoded imageformat, currentvalue of d122 is 400 +ptp(2): event 46: EOS prop d156 info record, datasize is 28 +ptp(2): event 46: Unknown EOS property d156, datasize is 28 +ptp(2): 0: 1c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 03 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): event 47: EOS prop d150 info record, datasize is 28 +ptp(2): event 47: Unknown EOS property d150, datasize is 28 +ptp(2): 0: 1c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 03 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): event 48: EOS prop d151 info record, datasize is 28 +ptp(2): event 48: Unknown EOS property d151, datasize is 28 +ptp(2): 0: 1c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 02 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): event 49: EOS prop d152 info record, datasize is 28 +ptp(2): event 49: Unknown EOS property d152, datasize is 28 +ptp(2): 0: 1c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 04 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): event 50: EOS prop d153 info record, datasize is 28 +ptp(2): event 50: Unknown EOS property d153, datasize is 28 +ptp(2): 0: 1c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): event 51: EOS prop d154 info record, datasize is 28 +ptp(2): event 51: Unknown EOS property d154, datasize is 28 +ptp(2): 0: 1c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): event 52: EOS prop d155 info record, datasize is 28 +ptp(2): event 52: Unknown EOS property d155, datasize is 28 +ptp(2): 0: 1c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 03 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): event 53: EOS prop d160 info record, datasize is 32 +ptp(2): event 53: Unknown EOS property d160, datasize is 32 +ptp(2): 0: 20 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 87 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 03 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): 28: 00 +ptp(2): 29: 00 +ptp(2): 30: 00 +ptp(2): 31: 00 +ptp(2): event 54: EOS prop d161 info record, datasize is 32 +ptp(2): event 54: Unknown EOS property d161, datasize is 32 +ptp(2): 0: 20 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 87 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 03 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): 28: 00 +ptp(2): 29: 00 +ptp(2): 30: 00 +ptp(2): 31: 00 +ptp(2): event 55: EOS prop d162 info record, datasize is 32 +ptp(2): event 55: Unknown EOS property d162, datasize is 32 +ptp(2): 0: 20 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 87 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 03 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): 28: 00 +ptp(2): 29: 00 +ptp(2): 30: 00 +ptp(2): 31: 00 +ptp(2): event 56: EOS prop d11c info record, datasize is 4 +ptp(2): event 56: currentvalue of d11c is 2 +ptp(2): event 57: EOS prop d1a0 info record, datasize is 96 +ptp(2): event 57: decoded custom function, currentvalue of d1a0 is 60,1,1,54,6,101,1,0,102,1,0,104,1,0,105,1,0,106,2,3,0,108,1,0, +ptp(2): event 58: EOS prop d1a0 info record, datasize is 188 +ptp(2): event 58: currentvalue of d1a0 is ¼ +ptp(2): event 58: decoded custom function, currentvalue of d1a0 is bc,1,3,b0,9,502,1,0,518,1,0,519,1,0,51a,1,0,50e,1,0,505,1,0,516,1,0,510,1,0,507,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +ptp(2): event 59: EOS prop d1a0 info record, datasize is 156 +ptp(2): event 59: currentvalue of d1a0 is œ +ptp(2): event 59: decoded custom function, currentvalue of d1a0 is 9c,1,4,90,5,706,1,0,80b,1,0,70f,2,0,2,40a,1,3,70c,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +ptp(2): event 60: EOS prop d1a1 info record, datasize is 8 +ptp(2): event 60: Unknown EOS property d1a1, datasize is 8 +ptp(2): 0: 08 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): event 61: EOS prop d1a8 info record, datasize is 4 +ptp(2): event 61: Unknown EOS property d1a8, datasize is 4, using uint32 +ptp(2): 0: 0x 1 +ptp(2): event 61: currentvalue of d1a8 is 1 +ptp(2): event 62: EOS prop d1a7 info record, datasize is 40 +ptp(2): event 62: Unknown EOS property d1a7, datasize is 40 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): 28: 00 +ptp(2): 29: 00 +ptp(2): 30: 00 +ptp(2): 31: 00 +ptp(2): 32: 00 +ptp(2): 33: 00 +ptp(2): 34: 00 +ptp(2): 35: 00 +ptp(2): 36: 00 +ptp(2): 37: 00 +ptp(2): 38: 00 +ptp(2): 39: 00 +ptp(2): event 63: EOS prop d1ab info record, datasize is 4 +ptp(2): event 63: Unknown EOS property d1ab, datasize is 4, using uint32 +ptp(2): 0: 0x 0 +ptp(2): event 63: currentvalue of d1ab is 0 +ptp(2): event 64: EOS prop d1b0 info record, datasize is 4 +ptp(2): event 64: currentvalue of d1b0 is 2 +ptp(2): event 65: EOS prop d1b1 info record, datasize is 4 +ptp(2): event 65: currentvalue of d1b1 is 1 +ptp(2): event 66: EOS prop d1b2 info record, datasize is 4 +ptp(2): event 66: Unknown EOS property d1b2, datasize is 4, using uint32 +ptp(2): 0: 0x 0 +ptp(2): event 66: currentvalue of d1b2 is 0 +ptp(2): event 67: EOS prop d1b3 info record, datasize is 4 +ptp(2): event 67: Unknown EOS property d1b3, datasize is 4, using uint32 +ptp(2): 0: 0x 0 +ptp(2): event 67: currentvalue of d1b3 is 0 +ptp(2): event 68: EOS prop d1b4 info record, datasize is 4 +ptp(2): event 68: Unknown EOS property d1b4, datasize is 4, using uint32 +ptp(2): 0: 0x 0 +ptp(2): event 68: currentvalue of d1b4 is 0 +ptp(2): event 69: EOS prop d1b5 info record, datasize is 48 +ptp(2): event 69: Unknown EOS property d1b5, datasize is 48, using uint32 +ptp(2): 0: 0x 30 +ptp(2): 1: 0x 0 +ptp(2): 2: 0x 0 +ptp(2): 3: 0x 0 +ptp(2): 4: 0x 5993c0 +ptp(2): 5: 0x 0 +ptp(2): 6: 0x 0 +ptp(2): 7: 0x 0 +ptp(2): 8: 0x 0 +ptp(2): 9: 0x 0 +ptp(2): 10: 0x 4000400 +ptp(2): 11: 0x 4000400 +ptp(2): event 69: currentvalue of d1b5 is 30 +ptp(2): event 70: EOS prop d1b6 info record, datasize is 4 +ptp(2): event 70: Unknown EOS property d1b6, datasize is 4, using uint32 +ptp(2): 0: 0x 1450 +ptp(2): event 70: currentvalue of d1b6 is 1450 +ptp(2): event 71: EOS prop d1a9 info record, datasize is 4 +ptp(2): event 71: currentvalue of d1a9 is 2 +ptp(2): event 72: EOS prop d146 info record, datasize is 48 +ptp(2): event 72: Unknown EOS property d146, datasize is 48 +ptp(2): 0: 30 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): 28: 00 +ptp(2): 29: 00 +ptp(2): 30: 00 +ptp(2): 31: 00 +ptp(2): 32: 00 +ptp(2): 33: 00 +ptp(2): 34: 00 +ptp(2): 35: 00 +ptp(2): 36: 00 +ptp(2): 37: 00 +ptp(2): 38: 00 +ptp(2): 39: 00 +ptp(2): 40: f0 +ptp(2): 41: 01 +ptp(2): 42: 00 +ptp(2): 43: 04 +ptp(2): 44: 00 +ptp(2): 45: 04 +ptp(2): 46: 68 +ptp(2): 47: 02 +ptp(2): event 73: EOS prop d1ac info record, datasize is 4 +ptp(2): event 73: currentvalue of d1ac is 46a +ptp(2): event 74: EOS prop d1aa info record, datasize is 4 +ptp(2): event 74: Unknown EOS property d1aa, datasize is 4, using uint32 +ptp(2): 0: 0x 0 +ptp(2): event 74: currentvalue of d1aa is 0 +ptp(2): event 75: EOS prop d11e info record, datasize is 4 +ptp(2): event 75: currentvalue of d11e is 20001 +ptp(2): event 76: EOS prop d11f info record, datasize is 4 +ptp(2): event 76: currentvalue of d11f is 91900000 +ptp(2): event 77: EOS prop d1d9 info record, datasize is 4 +ptp(2): event 77: currentvalue of d1d9 is 0 +ptp(2): event 78: EOS prop d1d5 info record, datasize is 4 +ptp(2): event 78: Unknown EOS property d1d5, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 79: EOS prop d1ba info record, datasize is 4 +ptp(2): event 79: Unknown EOS property d1ba, datasize is 4, using uint32 +ptp(2): 0: 0x 1 +ptp(2): event 79: currentvalue of d1ba is 1 +ptp(2): event 80: EOS prop d1cc info record, datasize is 28 +ptp(2): event 80: Unknown EOS property d1cc, datasize is 28 +ptp(2): 0: 1c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 19 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 0c +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 03 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): event 81: EOS prop d1bc info record, datasize is 4 +ptp(2): event 81: Unknown EOS property d1bc, datasize is 4, using uint32 +ptp(2): 0: 0x 1 +ptp(2): event 81: currentvalue of d1bc is 1 +ptp(2): event 82: EOS prop d1b8 info record, datasize is 4 +ptp(2): event 82: Unknown EOS property d1b8, datasize is 4, using uint32 +ptp(2): 0: 0x 3 +ptp(2): event 82: currentvalue of d1b8 is 3 +ptp(2): event 83: EOS prop d1d3 info record, datasize is 116 +ptp(2): event 83: Unknown EOS property d1d3, datasize is 116 +ptp(2): 0: 74 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 70 +ptp(2): 5: 00 +ptp(2): 6: 02 +ptp(2): 7: 00 +ptp(2): 8: 0b +ptp(2): 9: 00 +ptp(2): 10: 0b +ptp(2): 11: 00 +ptp(2): 12: 60 +ptp(2): 13: 15 +ptp(2): 14: 40 +ptp(2): 15: 0e +ptp(2): 16: 60 +ptp(2): 17: 15 +ptp(2): 18: 40 +ptp(2): 19: 0e +ptp(2): 20: 52 +ptp(2): 21: 00 +ptp(2): 22: 52 +ptp(2): 23: 00 +ptp(2): 24: 52 +ptp(2): 25: 00 +ptp(2): 26: 52 +ptp(2): 27: 00 +ptp(2): 28: 62 +ptp(2): 29: 00 +ptp(2): 30: 78 +ptp(2): 31: 00 +ptp(2): 32: 62 +ptp(2): 33: 00 +ptp(2): 34: 52 +ptp(2): 35: 00 +ptp(2): 36: 52 +ptp(2): 37: 00 +ptp(2): 38: 52 +ptp(2): 39: 00 +ptp(2): 40: 52 +ptp(2): 41: 00 +ptp(2): 42: 62 +ptp(2): 43: 00 +ptp(2): 44: 62 +ptp(2): 45: 00 +ptp(2): 46: 62 +ptp(2): 47: 00 +ptp(2): 48: 62 +ptp(2): 49: 00 +ptp(2): 50: 4c +ptp(2): 51: 00 +ptp(2): 52: 7f +ptp(2): 53: 00 +ptp(2): 54: 4c +ptp(2): 55: 00 +ptp(2): 56: 62 +ptp(2): 57: 00 +ptp(2): 58: 62 +ptp(2): 59: 00 +ptp(2): 60: 62 +ptp(2): 61: 00 +ptp(2): 62: 62 +ptp(2): 63: 00 +ptp(2): 64: 89 +ptp(2): 65: fb +ptp(2): 66: dd +ptp(2): 67: fd +ptp(2): 68: dd +ptp(2): 69: fd +ptp(2): 70: dd +ptp(2): 71: fd +ptp(2): 72: 00 +ptp(2): 73: 00 +ptp(2): 74: 00 +ptp(2): 75: 00 +ptp(2): 76: 00 +ptp(2): 77: 00 +ptp(2): 78: 23 +ptp(2): 79: 02 +ptp(2): 80: 23 +ptp(2): 81: 02 +ptp(2): 82: 23 +ptp(2): 83: 02 +ptp(2): 84: 77 +ptp(2): 85: 04 +ptp(2): 86: 00 +ptp(2): 87: 00 +ptp(2): 88: 5e +ptp(2): 89: 01 +ptp(2): 90: 00 +ptp(2): 91: 00 +ptp(2): 92: a2 +ptp(2): 93: fe +ptp(2): 94: e8 +ptp(2): 95: 01 +ptp(2): 96: 00 +ptp(2): 97: 00 +ptp(2): 98: 18 +ptp(2): 99: fe +ptp(2): 100: 5e +ptp(2): 101: 01 +ptp(2): 102: 00 +ptp(2): 103: 00 +ptp(2): 104: a2 +ptp(2): 105: fe +ptp(2): 106: 00 +ptp(2): 107: 00 +ptp(2): 108: 00 +ptp(2): 109: 00 +ptp(2): 110: 20 +ptp(2): 111: 00 +ptp(2): 112: 00 +ptp(2): 113: 00 +ptp(2): 114: ff +ptp(2): 115: ff +ptp(2): event 84: EOS prop d1d8 info record, datasize is 64 +ptp(2): event 84: currentvalue of d1d8 is EF24-105mm f/4L IS USM +ptp(2): event 85: EOS prop d1b7 info record, datasize is 4 +ptp(2): event 85: Unknown EOS property d1b7, datasize is 4, using uint32 +ptp(2): 0: 0x 1 +ptp(2): event 85: currentvalue of d1b7 is 1 +ptp(2): event 86: EOS prop d1cb info record, datasize is 52 +ptp(2): event 86: Unknown EOS property d1cb, datasize is 52 +ptp(2): 0: 34 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 03 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 03 +ptp(2): 19: 80 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 03 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): 28: 48 +ptp(2): 29: 00 +ptp(2): 30: 00 +ptp(2): 31: 00 +ptp(2): 32: 49 +ptp(2): 33: 00 +ptp(2): 34: 03 +ptp(2): 35: 80 +ptp(2): 36: 00 +ptp(2): 37: 00 +ptp(2): 38: 00 +ptp(2): 39: 00 +ptp(2): 40: 03 +ptp(2): 41: 00 +ptp(2): 42: 00 +ptp(2): 43: 00 +ptp(2): 44: 4b +ptp(2): 45: 00 +ptp(2): 46: 00 +ptp(2): 47: 00 +ptp(2): 48: 4c +ptp(2): 49: 00 +ptp(2): 50: 03 +ptp(2): 51: 80 +ptp(2): event 87: EOS prop d1db info record, datasize is 14 +ptp(2): event 87: Unknown EOS property d1db, datasize is 14 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 03 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 2f +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 28 +ptp(2): 13: 00 +ptp(2): event 88: EOS prop d1dc info record, datasize is 4 +ptp(2): event 88: currentvalue of d1dc is 0 +ptp(2): event 89: EOS prop d1a3 info record, datasize is 4 +ptp(2): event 89: Unknown EOS property d1a3, datasize is 4, using uint32 +ptp(2): 0: 0x 0 +ptp(2): event 89: currentvalue of d1a3 is 0 +ptp(2): event 90: EOS prop d1a4 info record, datasize is 484 +ptp(2): event 90: Unknown EOS property d1a4, datasize is 484 +ptp(2): 0: e4 +ptp(2): 1: 01 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 30 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): 24: 00 +ptp(2): 25: 00 +ptp(2): 26: 00 +ptp(2): 27: 00 +ptp(2): 28: 00 +ptp(2): 29: 00 +ptp(2): 30: 00 +ptp(2): 31: 00 +ptp(2): 32: 00 +ptp(2): 33: 00 +ptp(2): 34: 00 +ptp(2): 35: 00 +ptp(2): 36: 31 +ptp(2): 37: 00 +ptp(2): 38: 00 +ptp(2): 39: 00 +ptp(2): 40: 00 +ptp(2): 41: 00 +ptp(2): 42: 00 +ptp(2): 43: 00 +ptp(2): 44: 00 +ptp(2): 45: 00 +ptp(2): 46: 00 +ptp(2): 47: 00 +ptp(2): 48: 00 +ptp(2): 49: 00 +ptp(2): 50: 00 +ptp(2): 51: 00 +ptp(2): 52: 00 +ptp(2): 53: 00 +ptp(2): 54: 00 +ptp(2): 55: 00 +ptp(2): 56: 00 +ptp(2): 57: 00 +ptp(2): 58: 00 +ptp(2): 59: 00 +ptp(2): 60: 00 +ptp(2): 61: 00 +ptp(2): 62: 00 +ptp(2): 63: 00 +ptp(2): 64: 00 +ptp(2): 65: 00 +ptp(2): 66: 00 +ptp(2): 67: 00 +ptp(2): 68: 32 +ptp(2): 69: 00 +ptp(2): 70: 00 +ptp(2): 71: 00 +ptp(2): 72: 00 +ptp(2): 73: 00 +ptp(2): 74: 00 +ptp(2): 75: 00 +ptp(2): 76: 00 +ptp(2): 77: 00 +ptp(2): 78: 00 +ptp(2): 79: 00 +ptp(2): 80: 00 +ptp(2): 81: 00 +ptp(2): 82: 00 +ptp(2): 83: 00 +ptp(2): 84: 00 +ptp(2): 85: 00 +ptp(2): 86: 00 +ptp(2): 87: 00 +ptp(2): 88: 00 +ptp(2): 89: 00 +ptp(2): 90: 00 +ptp(2): 91: 00 +ptp(2): 92: 00 +ptp(2): 93: 00 +ptp(2): 94: 00 +ptp(2): 95: 00 +ptp(2): 96: 00 +ptp(2): 97: 00 +ptp(2): 98: 00 +ptp(2): 99: 00 +ptp(2): 100: 33 +ptp(2): 101: 00 +ptp(2): 102: 00 +ptp(2): 103: 00 +ptp(2): 104: 00 +ptp(2): 105: 00 +ptp(2): 106: 00 +ptp(2): 107: 00 +ptp(2): 108: 00 +ptp(2): 109: 00 +ptp(2): 110: 00 +ptp(2): 111: 00 +ptp(2): 112: 00 +ptp(2): 113: 00 +ptp(2): 114: 00 +ptp(2): 115: 00 +ptp(2): 116: 00 +ptp(2): 117: 00 +ptp(2): 118: 00 +ptp(2): 119: 00 +ptp(2): 120: 00 +ptp(2): 121: 00 +ptp(2): 122: 00 +ptp(2): 123: 00 +ptp(2): 124: 00 +ptp(2): 125: 00 +ptp(2): 126: 00 +ptp(2): 127: 00 +ptp(2): 128: 00 +ptp(2): 129: 00 +ptp(2): 130: 00 +ptp(2): 131: 00 +ptp(2): 132: 34 +ptp(2): 133: 00 +ptp(2): 134: 00 +ptp(2): 135: 00 +ptp(2): 136: 00 +ptp(2): 137: 00 +ptp(2): 138: 00 +ptp(2): 139: 00 +ptp(2): 140: 00 +ptp(2): 141: 00 +ptp(2): 142: 00 +ptp(2): 143: 00 +ptp(2): 144: 00 +ptp(2): 145: 00 +ptp(2): 146: 00 +ptp(2): 147: 00 +ptp(2): 148: 00 +ptp(2): 149: 00 +ptp(2): 150: 00 +ptp(2): 151: 00 +ptp(2): 152: 00 +ptp(2): 153: 00 +ptp(2): 154: 00 +ptp(2): 155: 00 +ptp(2): 156: 00 +ptp(2): 157: 00 +ptp(2): 158: 00 +ptp(2): 159: 00 +ptp(2): 160: 00 +ptp(2): 161: 00 +ptp(2): 162: 00 +ptp(2): 163: 00 +ptp(2): 164: 35 +ptp(2): 165: 00 +ptp(2): 166: 00 +ptp(2): 167: 00 +ptp(2): 168: 00 +ptp(2): 169: 00 +ptp(2): 170: 00 +ptp(2): 171: 00 +ptp(2): 172: 00 +ptp(2): 173: 00 +ptp(2): 174: 00 +ptp(2): 175: 00 +ptp(2): 176: 00 +ptp(2): 177: 00 +ptp(2): 178: 00 +ptp(2): 179: 00 +ptp(2): 180: 00 +ptp(2): 181: 00 +ptp(2): 182: 00 +ptp(2): 183: 00 +ptp(2): 184: 00 +ptp(2): 185: 00 +ptp(2): 186: 00 +ptp(2): 187: 00 +ptp(2): 188: 00 +ptp(2): 189: 00 +ptp(2): 190: 00 +ptp(2): 191: 00 +ptp(2): 192: 00 +ptp(2): 193: 00 +ptp(2): 194: 00 +ptp(2): 195: 00 +ptp(2): 196: 36 +ptp(2): 197: 00 +ptp(2): 198: 00 +ptp(2): 199: 00 +ptp(2): 200: 00 +ptp(2): 201: 00 +ptp(2): 202: 00 +ptp(2): 203: 00 +ptp(2): 204: 00 +ptp(2): 205: 00 +ptp(2): 206: 00 +ptp(2): 207: 00 +ptp(2): 208: 00 +ptp(2): 209: 00 +ptp(2): 210: 00 +ptp(2): 211: 00 +ptp(2): 212: 00 +ptp(2): 213: 00 +ptp(2): 214: 00 +ptp(2): 215: 00 +ptp(2): 216: 00 +ptp(2): 217: 00 +ptp(2): 218: 00 +ptp(2): 219: 00 +ptp(2): 220: 00 +ptp(2): 221: 00 +ptp(2): 222: 00 +ptp(2): 223: 00 +ptp(2): 224: 00 +ptp(2): 225: 00 +ptp(2): 226: 00 +ptp(2): 227: 00 +ptp(2): 228: 37 +ptp(2): 229: 00 +ptp(2): 230: 00 +ptp(2): 231: 00 +ptp(2): 232: 00 +ptp(2): 233: 00 +ptp(2): 234: 00 +ptp(2): 235: 00 +ptp(2): 236: 00 +ptp(2): 237: 00 +ptp(2): 238: 00 +ptp(2): 239: 00 +ptp(2): 240: 00 +ptp(2): 241: 00 +ptp(2): 242: 00 +ptp(2): 243: 00 +ptp(2): 244: 00 +ptp(2): 245: 00 +ptp(2): 246: 00 +ptp(2): 247: 00 +ptp(2): 248: 00 +ptp(2): 249: 00 +ptp(2): 250: 00 +ptp(2): 251: 00 +ptp(2): 252: 00 +ptp(2): 253: 00 +ptp(2): 254: 00 +ptp(2): 255: 00 +ptp(2): 256: 00 +ptp(2): 257: 00 +ptp(2): 258: 00 +ptp(2): 259: 00 +ptp(2): 260: 38 +ptp(2): 261: 00 +ptp(2): 262: 00 +ptp(2): 263: 00 +ptp(2): 264: 00 +ptp(2): 265: 00 +ptp(2): 266: 00 +ptp(2): 267: 00 +ptp(2): 268: 00 +ptp(2): 269: 00 +ptp(2): 270: 00 +ptp(2): 271: 00 +ptp(2): 272: 00 +ptp(2): 273: 00 +ptp(2): 274: 00 +ptp(2): 275: 00 +ptp(2): 276: 00 +ptp(2): 277: 00 +ptp(2): 278: 00 +ptp(2): 279: 00 +ptp(2): 280: 00 +ptp(2): 281: 00 +ptp(2): 282: 00 +ptp(2): 283: 00 +ptp(2): 284: 00 +ptp(2): 285: 00 +ptp(2): 286: 00 +ptp(2): 287: 00 +ptp(2): 288: 00 +ptp(2): 289: 00 +ptp(2): 290: 00 +ptp(2): 291: 00 +ptp(2): 292: 39 +ptp(2): 293: 00 +ptp(2): 294: 00 +ptp(2): 295: 00 +ptp(2): 296: 00 +ptp(2): 297: 00 +ptp(2): 298: 00 +ptp(2): 299: 00 +ptp(2): 300: 00 +ptp(2): 301: 00 +ptp(2): 302: 00 +ptp(2): 303: 00 +ptp(2): 304: 00 +ptp(2): 305: 00 +ptp(2): 306: 00 +ptp(2): 307: 00 +ptp(2): 308: 00 +ptp(2): 309: 00 +ptp(2): 310: 00 +ptp(2): 311: 00 +ptp(2): 312: 00 +ptp(2): 313: 00 +ptp(2): 314: 00 +ptp(2): 315: 00 +ptp(2): 316: 00 +ptp(2): 317: 00 +ptp(2): 318: 00 +ptp(2): 319: 00 +ptp(2): 320: 00 +ptp(2): 321: 00 +ptp(2): 322: 00 +ptp(2): 323: 00 +ptp(2): 324: 31 +ptp(2): 325: 30 +ptp(2): 326: 00 +ptp(2): 327: 00 +ptp(2): 328: 00 +ptp(2): 329: 00 +ptp(2): 330: 00 +ptp(2): 331: 00 +ptp(2): 332: 00 +ptp(2): 333: 00 +ptp(2): 334: 00 +ptp(2): 335: 00 +ptp(2): 336: 00 +ptp(2): 337: 00 +ptp(2): 338: 00 +ptp(2): 339: 00 +ptp(2): 340: 00 +ptp(2): 341: 00 +ptp(2): 342: 00 +ptp(2): 343: 00 +ptp(2): 344: 00 +ptp(2): 345: 00 +ptp(2): 346: 00 +ptp(2): 347: 00 +ptp(2): 348: 00 +ptp(2): 349: 00 +ptp(2): 350: 00 +ptp(2): 351: 00 +ptp(2): 352: 00 +ptp(2): 353: 00 +ptp(2): 354: 00 +ptp(2): 355: 00 +ptp(2): 356: 31 +ptp(2): 357: 31 +ptp(2): 358: 00 +ptp(2): 359: 00 +ptp(2): 360: 00 +ptp(2): 361: 00 +ptp(2): 362: 00 +ptp(2): 363: 00 +ptp(2): 364: 00 +ptp(2): 365: 00 +ptp(2): 366: 00 +ptp(2): 367: 00 +ptp(2): 368: 00 +ptp(2): 369: 00 +ptp(2): 370: 00 +ptp(2): 371: 00 +ptp(2): 372: 00 +ptp(2): 373: 00 +ptp(2): 374: 00 +ptp(2): 375: 00 +ptp(2): 376: 00 +ptp(2): 377: 00 +ptp(2): 378: 00 +ptp(2): 379: 00 +ptp(2): 380: 00 +ptp(2): 381: 00 +ptp(2): 382: 00 +ptp(2): 383: 00 +ptp(2): 384: 00 +ptp(2): 385: 00 +ptp(2): 386: 00 +ptp(2): 387: 00 +ptp(2): 388: 31 +ptp(2): 389: 32 +ptp(2): 390: 00 +ptp(2): 391: 00 +ptp(2): 392: 00 +ptp(2): 393: 00 +ptp(2): 394: 00 +ptp(2): 395: 00 +ptp(2): 396: 00 +ptp(2): 397: 00 +ptp(2): 398: 00 +ptp(2): 399: 00 +ptp(2): 400: 00 +ptp(2): 401: 00 +ptp(2): 402: 00 +ptp(2): 403: 00 +ptp(2): 404: 00 +ptp(2): 405: 00 +ptp(2): 406: 00 +ptp(2): 407: 00 +ptp(2): 408: 00 +ptp(2): 409: 00 +ptp(2): 410: 00 +ptp(2): 411: 00 +ptp(2): 412: 00 +ptp(2): 413: 00 +ptp(2): 414: 00 +ptp(2): 415: 00 +ptp(2): 416: 00 +ptp(2): 417: 00 +ptp(2): 418: 00 +ptp(2): 419: 00 +ptp(2): 420: 31 +ptp(2): 421: 33 +ptp(2): 422: 00 +ptp(2): 423: 00 +ptp(2): 424: 00 +ptp(2): 425: 00 +ptp(2): 426: 00 +ptp(2): 427: 00 +ptp(2): 428: 00 +ptp(2): 429: 00 +ptp(2): 430: 00 +ptp(2): 431: 00 +ptp(2): 432: 00 +ptp(2): 433: 00 +ptp(2): 434: 00 +ptp(2): 435: 00 +ptp(2): 436: 00 +ptp(2): 437: 00 +ptp(2): 438: 00 +ptp(2): 439: 00 +ptp(2): 440: 00 +ptp(2): 441: 00 +ptp(2): 442: 00 +ptp(2): 443: 00 +ptp(2): 444: 00 +ptp(2): 445: 00 +ptp(2): 446: 00 +ptp(2): 447: 00 +ptp(2): 448: 00 +ptp(2): 449: 00 +ptp(2): 450: 00 +ptp(2): 451: 00 +ptp(2): 452: 31 +ptp(2): 453: 34 +ptp(2): 454: 00 +ptp(2): 455: 00 +ptp(2): 456: 00 +ptp(2): 457: 00 +ptp(2): 458: 00 +ptp(2): 459: 00 +ptp(2): 460: 00 +ptp(2): 461: 00 +ptp(2): 462: 00 +ptp(2): 463: 00 +ptp(2): 464: 00 +ptp(2): 465: 00 +ptp(2): 466: 00 +ptp(2): 467: 00 +ptp(2): 468: 00 +ptp(2): 469: 00 +ptp(2): 470: 00 +ptp(2): 471: 00 +ptp(2): 472: 00 +ptp(2): 473: 00 +ptp(2): 474: 00 +ptp(2): 475: 00 +ptp(2): 476: 00 +ptp(2): 477: 00 +ptp(2): 478: 00 +ptp(2): 479: 00 +ptp(2): 480: 00 +ptp(2): 481: 00 +ptp(2): 482: 00 +ptp(2): 483: 00 +ptp(2): event 91: EOS prop d1df info record, datasize is 4 +ptp(2): event 91: Unknown EOS property d1df, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 92: EOS prop d1bd info record, datasize is 4 +ptp(2): event 92: Unknown EOS property d1bd, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 93: EOS prop d1c1 info record, datasize is 4 +ptp(2): event 93: Unknown EOS property d1c1, datasize is 4 +ptp(2): 0: 03 +ptp(2): 1: 03 +ptp(2): 2: 01 +ptp(2): 3: 00 +ptp(2): event 94: EOS prop d1c0 info record, datasize is 4 +ptp(2): event 94: Unknown EOS property d1c0, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 95: EOS prop d1bf info record, datasize is 4 +ptp(2): event 95: Unknown EOS property d1bf, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 96: EOS prop d1c4 info record, datasize is 4 +ptp(2): event 96: Unknown EOS property d1c4, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 97: EOS prop d1c2 info record, datasize is 4 +ptp(2): event 97: Unknown EOS property d1c2, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 98: EOS prop d1c5 info record, datasize is 4 +ptp(2): event 98: Unknown EOS property d1c5, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 99: EOS prop d194 info record, datasize is 4 +ptp(2): event 99: Unknown EOS property d194, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 100: EOS prop d195 info record, datasize is 4 +ptp(2): event 100: Unknown EOS property d195, datasize is 4 +ptp(2): 0: 02 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 101: EOS prop d196 info record, datasize is 4 +ptp(2): event 101: Unknown EOS property d196, datasize is 4 +ptp(2): 0: 2f +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 102: EOS prop d197 info record, datasize is 4 +ptp(2): event 102: Unknown EOS property d197, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 103: EOS prop d198 info record, datasize is 4 +ptp(2): event 103: Unknown EOS property d198, datasize is 4 +ptp(2): 0: ff +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 104: EOS prop d1dd info record, datasize is 4 +ptp(2): event 104: currentvalue of d1dd is ed +ptp(2): event 105: EOS prop d1c7 info record, datasize is 4 +ptp(2): event 105: Unknown EOS property d1c7, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 106: EOS prop d199 info record, datasize is 4 +ptp(2): event 106: Unknown EOS property d199, datasize is 4 +ptp(2): 0: 07 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 107: EOS prop d138 info record, datasize is 4 +ptp(2): event 107: Unknown EOS property d138, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 108: EOS prop d139 info record, datasize is 12 +ptp(2): event 108: Unknown EOS property d139, datasize is 12 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): event 109: EOS prop d13a info record, datasize is 4 +ptp(2): event 109: Unknown EOS property d13a, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 110: EOS prop d13b info record, datasize is 4 +ptp(2): event 110: Unknown EOS property d13b, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 111: EOS prop d13c info record, datasize is 4 +ptp(2): event 111: Unknown EOS property d13c, datasize is 4 +ptp(2): 0: 03 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 112: EOS prop d13d info record, datasize is 24 +ptp(2): event 112: Unknown EOS property d13d, datasize is 24 +ptp(2): 0: 18 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): event 113: EOS prop d14d info record, datasize is 4 +ptp(2): event 113: Unknown EOS property d14d, datasize is 4 +ptp(2): 0: 3c +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 114: EOS prop d19a info record, datasize is 4 +ptp(2): event 114: Unknown EOS property d19a, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 115: EOS prop d19c info record, datasize is 4 +ptp(2): event 115: Unknown EOS property d19c, datasize is 4 +ptp(2): 0: 01 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 116: EOS prop d177 info record, datasize is 24 +ptp(2): event 116: Unknown EOS property d177, datasize is 24 +ptp(2): 0: 18 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): 4: 00 +ptp(2): 5: 00 +ptp(2): 6: 00 +ptp(2): 7: 00 +ptp(2): 8: 00 +ptp(2): 9: 00 +ptp(2): 10: 00 +ptp(2): 11: 00 +ptp(2): 12: 00 +ptp(2): 13: 00 +ptp(2): 14: 00 +ptp(2): 15: 00 +ptp(2): 16: 00 +ptp(2): 17: 00 +ptp(2): 18: 00 +ptp(2): 19: 00 +ptp(2): 20: 00 +ptp(2): 21: 00 +ptp(2): 22: 00 +ptp(2): 23: 00 +ptp(2): event 117: EOS prop d178 info record, datasize is 4 +ptp(2): event 117: Unknown EOS property d178, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 118: EOS prop d17b info record, datasize is 4 +ptp(2): event 118: Unknown EOS property d17b, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 119: EOS prop d19f info record, datasize is 4 +ptp(2): event 119: Unknown EOS property d19f, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 120: EOS prop d175 info record, datasize is 4 +ptp(2): event 120: Unknown EOS property d175, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 121: EOS prop d14c info record, datasize is 4 +ptp(2): event 121: Unknown EOS property d14c, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 122: EOS prop d14b info record, datasize is 4 +ptp(2): event 122: Unknown EOS property d14b, datasize is 4 +ptp(2): 0: 00 +ptp(2): 1: 00 +ptp(2): 2: 00 +ptp(2): 3: 00 +ptp(2): event 123: unknown EOS event c1a4 +ptp(2): 8: 01 +ptp(2): 9: 00 +ptp(2): 10: 02 +ptp(2): 11: 00 +ptp(2): event 124: EOS prop d105 desc record, datasize 0, propxtype 1 +ptp(2): event 124: propxtype is 1 for d105, unhandled. +ptp(2): event 125: EOS prop d108 desc record, datasize 0, propxtype 3 +ptp(2): event 126: EOS prop d106 desc record, datasize 24, propxtype 3 +ptp(2): event 126: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 6. +ptp(2): event 126: suppval[0] of d106 is 0x0. +ptp(2): event 126: suppval[1] of d106 is 0x1. +ptp(2): event 126: suppval[2] of d106 is 0x13. +ptp(2): event 126: suppval[3] of d106 is 0x14. +ptp(2): event 126: suppval[4] of d106 is 0x11. +ptp(2): event 126: suppval[5] of d106 is 0x10. +ptp(2): event 127: EOS prop d107 desc record, datasize 16, propxtype 3 +ptp(2): event 127: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 4. +ptp(2): event 127: suppval[0] of d107 is 0x3. +ptp(2): event 127: suppval[1] of d107 is 0x4. +ptp(2): event 127: suppval[2] of d107 is 0x1. +ptp(2): event 127: suppval[3] of d107 is 0x5. +ptp(2): event 128: EOS prop d109 desc record, datasize 36, propxtype 3 +ptp(2): event 128: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 9. +ptp(2): event 128: suppval[0] of d109 is 0x0. +ptp(2): event 128: suppval[1] of d109 is 0x1. +ptp(2): event 128: suppval[2] of d109 is 0x8. +ptp(2): event 128: suppval[3] of d109 is 0x2. +ptp(2): event 128: suppval[4] of d109 is 0x3. +ptp(2): event 128: suppval[5] of d109 is 0x4. +ptp(2): event 128: suppval[6] of d109 is 0x5. +ptp(2): event 128: suppval[7] of d109 is 0x6. +ptp(2): event 128: suppval[8] of d109 is 0x9. +ptp(2): event 129: EOS prop d10a desc record, datasize 304, propxtype 3 +ptp(2): event 129: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +ptp(2): event 129: suppval[0] of d10a is 0x9c4. +ptp(2): event 129: suppval[1] of d10a is 0xa28. +ptp(2): event 129: suppval[2] of d10a is 0xa8c. +ptp(2): event 129: suppval[3] of d10a is 0xaf0. +ptp(2): event 129: suppval[4] of d10a is 0xb54. +ptp(2): event 129: suppval[5] of d10a is 0xbb8. +ptp(2): event 129: suppval[6] of d10a is 0xc1c. +ptp(2): event 129: suppval[7] of d10a is 0xc80. +ptp(2): event 129: suppval[8] of d10a is 0xce4. +ptp(2): event 129: suppval[9] of d10a is 0xd48. +ptp(2): event 129: suppval[10] of d10a is 0xdac. +ptp(2): event 129: suppval[11] of d10a is 0xe10. +ptp(2): event 129: suppval[12] of d10a is 0xe74. +ptp(2): event 129: suppval[13] of d10a is 0xed8. +ptp(2): event 129: suppval[14] of d10a is 0xf3c. +ptp(2): event 129: suppval[15] of d10a is 0xfa0. +ptp(2): event 129: suppval[16] of d10a is 0x1004. +ptp(2): event 129: suppval[17] of d10a is 0x1068. +ptp(2): event 129: suppval[18] of d10a is 0x10cc. +ptp(2): event 129: suppval[19] of d10a is 0x1130. +ptp(2): event 129: suppval[20] of d10a is 0x1194. +ptp(2): event 129: suppval[21] of d10a is 0x11f8. +ptp(2): event 129: suppval[22] of d10a is 0x125c. +ptp(2): event 129: suppval[23] of d10a is 0x12c0. +ptp(2): event 129: suppval[24] of d10a is 0x1324. +ptp(2): event 129: suppval[25] of d10a is 0x1388. +ptp(2): event 129: suppval[26] of d10a is 0x13ec. +ptp(2): event 129: suppval[27] of d10a is 0x1450. +ptp(2): event 129: suppval[28] of d10a is 0x14b4. +ptp(2): event 129: suppval[29] of d10a is 0x1518. +ptp(2): event 129: suppval[30] of d10a is 0x157c. +ptp(2): event 129: suppval[31] of d10a is 0x15e0. +ptp(2): event 129: suppval[32] of d10a is 0x1644. +ptp(2): event 129: suppval[33] of d10a is 0x16a8. +ptp(2): event 129: suppval[34] of d10a is 0x170c. +ptp(2): event 129: suppval[35] of d10a is 0x1770. +ptp(2): event 129: suppval[36] of d10a is 0x17d4. +ptp(2): event 129: suppval[37] of d10a is 0x1838. +ptp(2): event 129: suppval[38] of d10a is 0x189c. +ptp(2): event 129: suppval[39] of d10a is 0x1900. +ptp(2): event 129: suppval[40] of d10a is 0x1964. +ptp(2): event 129: suppval[41] of d10a is 0x19c8. +ptp(2): event 129: suppval[42] of d10a is 0x1a2c. +ptp(2): event 129: suppval[43] of d10a is 0x1a90. +ptp(2): event 129: suppval[44] of d10a is 0x1af4. +ptp(2): event 129: suppval[45] of d10a is 0x1b58. +ptp(2): event 129: suppval[46] of d10a is 0x1bbc. +ptp(2): event 129: suppval[47] of d10a is 0x1c20. +ptp(2): event 129: suppval[48] of d10a is 0x1c84. +ptp(2): event 129: suppval[49] of d10a is 0x1ce8. +ptp(2): event 129: suppval[50] of d10a is 0x1d4c. +ptp(2): event 129: suppval[51] of d10a is 0x1db0. +ptp(2): event 129: suppval[52] of d10a is 0x1e14. +ptp(2): event 129: suppval[53] of d10a is 0x1e78. +ptp(2): event 129: suppval[54] of d10a is 0x1edc. +ptp(2): event 129: suppval[55] of d10a is 0x1f40. +ptp(2): event 129: suppval[56] of d10a is 0x1fa4. +ptp(2): event 129: suppval[57] of d10a is 0x2008. +ptp(2): event 129: suppval[58] of d10a is 0x206c. +ptp(2): event 129: suppval[59] of d10a is 0x20d0. +ptp(2): event 129: suppval[60] of d10a is 0x2134. +ptp(2): event 129: suppval[61] of d10a is 0x2198. +ptp(2): event 129: suppval[62] of d10a is 0x21fc. +ptp(2): event 129: suppval[63] of d10a is 0x2260. +ptp(2): event 129: suppval[64] of d10a is 0x22c4. +ptp(2): event 129: suppval[65] of d10a is 0x2328. +ptp(2): event 129: suppval[66] of d10a is 0x238c. +ptp(2): event 129: suppval[67] of d10a is 0x23f0. +ptp(2): event 129: suppval[68] of d10a is 0x2454. +ptp(2): event 129: suppval[69] of d10a is 0x24b8. +ptp(2): event 129: suppval[70] of d10a is 0x251c. +ptp(2): event 129: suppval[71] of d10a is 0x2580. +ptp(2): event 129: suppval[72] of d10a is 0x25e4. +ptp(2): event 129: suppval[73] of d10a is 0x2648. +ptp(2): event 129: suppval[74] of d10a is 0x26ac. +ptp(2): event 129: suppval[75] of d10a is 0x2710. +ptp(2): event 130: EOS prop d10b desc record, datasize 76, propxtype 3 +ptp(2): event 130: propxtype is 3, prop is 0xd10b, data type is 0x0003, propxcnt is 19. +ptp(2): event 130: suppval[0] of d10b is 0xfff7. +ptp(2): event 130: suppval[1] of d10b is 0xfff8. +ptp(2): event 130: suppval[2] of d10b is 0xfff9. +ptp(2): event 130: suppval[3] of d10b is 0xfffa. +ptp(2): event 130: suppval[4] of d10b is 0xfffb. +ptp(2): event 130: suppval[5] of d10b is 0xfffc. +ptp(2): event 130: suppval[6] of d10b is 0xfffd. +ptp(2): event 130: suppval[7] of d10b is 0xfffe. +ptp(2): event 130: suppval[8] of d10b is 0xffff. +ptp(2): event 130: suppval[9] of d10b is 0x0. +ptp(2): event 130: suppval[10] of d10b is 0x1. +ptp(2): event 130: suppval[11] of d10b is 0x2. +ptp(2): event 130: suppval[12] of d10b is 0x3. +ptp(2): event 130: suppval[13] of d10b is 0x4. +ptp(2): event 130: suppval[14] of d10b is 0x5. +ptp(2): event 130: suppval[15] of d10b is 0x6. +ptp(2): event 130: suppval[16] of d10b is 0x7. +ptp(2): event 130: suppval[17] of d10b is 0x8. +ptp(2): event 130: suppval[18] of d10b is 0x9. +ptp(2): event 131: EOS prop d10c desc record, datasize 76, propxtype 3 +ptp(2): event 131: propxtype is 3, prop is 0xd10c, data type is 0x0003, propxcnt is 19. +ptp(2): event 131: suppval[0] of d10c is 0xfff7. +ptp(2): event 131: suppval[1] of d10c is 0xfff8. +ptp(2): event 131: suppval[2] of d10c is 0xfff9. +ptp(2): event 131: suppval[3] of d10c is 0xfffa. +ptp(2): event 131: suppval[4] of d10c is 0xfffb. +ptp(2): event 131: suppval[5] of d10c is 0xfffc. +ptp(2): event 131: suppval[6] of d10c is 0xfffd. +ptp(2): event 131: suppval[7] of d10c is 0xfffe. +ptp(2): event 131: suppval[8] of d10c is 0xffff. +ptp(2): event 131: suppval[9] of d10c is 0x0. +ptp(2): event 131: suppval[10] of d10c is 0x1. +ptp(2): event 131: suppval[11] of d10c is 0x2. +ptp(2): event 131: suppval[12] of d10c is 0x3. +ptp(2): event 131: suppval[13] of d10c is 0x4. +ptp(2): event 131: suppval[14] of d10c is 0x5. +ptp(2): event 131: suppval[15] of d10c is 0x6. +ptp(2): event 131: suppval[16] of d10c is 0x7. +ptp(2): event 131: suppval[17] of d10c is 0x8. +ptp(2): event 131: suppval[18] of d10c is 0x9. +ptp(2): event 132: EOS prop d10d desc record, datasize 16, propxtype 3 +ptp(2): event 132: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +ptp(2): event 132: suppval[0] of d10d is 0x0. +ptp(2): event 132: suppval[1] of d10d is 0x1. +ptp(2): event 132: suppval[2] of d10d is 0x2. +ptp(2): event 132: suppval[3] of d10d is 0x3. +ptp(2): event 133: EOS prop d10e desc record, datasize 16, propxtype 3 +ptp(2): event 133: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +ptp(2): event 133: suppval[0] of d10e is 0x0. +ptp(2): event 133: suppval[1] of d10e is 0x1. +ptp(2): event 133: suppval[2] of d10e is 0x2. +ptp(2): event 133: suppval[3] of d10e is 0x3. +ptp(2): event 134: EOS prop d10f desc record, datasize 8, propxtype 3 +ptp(2): event 134: propxtype is 3, prop is 0xd10f, data type is 0x0004, propxcnt is 2. +ptp(2): event 134: suppval[0] of d10f is 0x1. +ptp(2): event 134: suppval[1] of d10f is 0x2. +ptp(2): event 135: EOS prop d11b desc record, datasize 0, propxtype 1 +ptp(2): event 135: propxtype is 1 for d11b, unhandled. +ptp(2): event 136: EOS prop d114 desc record, datasize 0, propxtype 1 +ptp(2): event 136: propxtype is 1 for d114, unhandled. +ptp(2): event 137: EOS prop d116 desc record, datasize 0, propxtype 1 +ptp(2): event 137: propxtype is 1 for d116, unhandled. +ptp(2): event 138: EOS prop d119 desc record, datasize 0, propxtype 1 +ptp(2): event 138: propxtype is 1 for d119, unhandled. +ptp(2): event 139: EOS prop d11a desc record, datasize 0, propxtype 1 +ptp(2): event 139: propdesc d11a, default value not found. +ptp(2): event 140: EOS prop d110 desc record, datasize 40, propxtype 3 +ptp(2): event 140: propxtype is 3, prop is 0xd110, data type is 0x0002, propxcnt is 10. +ptp(2): event 140: suppval[0] of d110 is 0x87. +ptp(2): event 140: suppval[1] of d110 is 0x81. +ptp(2): event 140: suppval[2] of d110 is 0x82. +ptp(2): event 140: suppval[3] of d110 is 0x83. +ptp(2): event 140: suppval[4] of d110 is 0x84. +ptp(2): event 140: suppval[5] of d110 is 0x85. +ptp(2): event 140: suppval[6] of d110 is 0x86. +ptp(2): event 140: suppval[7] of d110 is 0x21. +ptp(2): event 140: suppval[8] of d110 is 0x22. +ptp(2): event 140: suppval[9] of d110 is 0x23. +ptp(2): event 141: EOS prop d115 desc record, datasize 0, propxtype 7 +ptp(2): event 141: propdesc d115, default value not found. +ptp(2): event 142: EOS prop d101 desc record, datasize 0, propxtype 3 +ptp(2): event 143: EOS prop d102 desc record, datasize 0, propxtype 3 +ptp(2): event 144: EOS prop d103 desc record, datasize 108, propxtype 3 +ptp(2): event 144: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 27. +ptp(2): event 144: suppval[0] of d103 is 0x0. +ptp(2): event 144: suppval[1] of d103 is 0x40. +ptp(2): event 144: suppval[2] of d103 is 0x48. +ptp(2): event 144: suppval[3] of d103 is 0x4b. +ptp(2): event 144: suppval[4] of d103 is 0x4d. +ptp(2): event 144: suppval[5] of d103 is 0x50. +ptp(2): event 144: suppval[6] of d103 is 0x53. +ptp(2): event 144: suppval[7] of d103 is 0x55. +ptp(2): event 144: suppval[8] of d103 is 0x58. +ptp(2): event 144: suppval[9] of d103 is 0x5b. +ptp(2): event 144: suppval[10] of d103 is 0x5d. +ptp(2): event 144: suppval[11] of d103 is 0x60. +ptp(2): event 144: suppval[12] of d103 is 0x63. +ptp(2): event 144: suppval[13] of d103 is 0x65. +ptp(2): event 144: suppval[14] of d103 is 0x68. +ptp(2): event 144: suppval[15] of d103 is 0x6b. +ptp(2): event 144: suppval[16] of d103 is 0x6d. +ptp(2): event 144: suppval[17] of d103 is 0x70. +ptp(2): event 144: suppval[18] of d103 is 0x73. +ptp(2): event 144: suppval[19] of d103 is 0x75. +ptp(2): event 144: suppval[20] of d103 is 0x78. +ptp(2): event 144: suppval[21] of d103 is 0x7b. +ptp(2): event 144: suppval[22] of d103 is 0x7d. +ptp(2): event 144: suppval[23] of d103 is 0x80. +ptp(2): event 144: suppval[24] of d103 is 0x83. +ptp(2): event 144: suppval[25] of d103 is 0x85. +ptp(2): event 144: suppval[26] of d103 is 0x88. +ptp(2): event 145: EOS prop d104 desc record, datasize 124, propxtype 3 +ptp(2): event 145: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 31. +ptp(2): event 145: suppval[0] of d104 is 0xd8. +ptp(2): event 145: suppval[1] of d104 is 0xdb. +ptp(2): event 145: suppval[2] of d104 is 0xdd. +ptp(2): event 145: suppval[3] of d104 is 0xe0. +ptp(2): event 145: suppval[4] of d104 is 0xe3. +ptp(2): event 145: suppval[5] of d104 is 0xe5. +ptp(2): event 145: suppval[6] of d104 is 0xe8. +ptp(2): event 145: suppval[7] of d104 is 0xeb. +ptp(2): event 145: suppval[8] of d104 is 0xed. +ptp(2): event 145: suppval[9] of d104 is 0xf0. +ptp(2): event 145: suppval[10] of d104 is 0xf3. +ptp(2): event 145: suppval[11] of d104 is 0xf5. +ptp(2): event 145: suppval[12] of d104 is 0xf8. +ptp(2): event 145: suppval[13] of d104 is 0xfb. +ptp(2): event 145: suppval[14] of d104 is 0xfd. +ptp(2): event 145: suppval[15] of d104 is 0x0. +ptp(2): event 145: suppval[16] of d104 is 0x3. +ptp(2): event 145: suppval[17] of d104 is 0x5. +ptp(2): event 145: suppval[18] of d104 is 0x8. +ptp(2): event 145: suppval[19] of d104 is 0xb. +ptp(2): event 145: suppval[20] of d104 is 0xd. +ptp(2): event 145: suppval[21] of d104 is 0x10. +ptp(2): event 145: suppval[22] of d104 is 0x13. +ptp(2): event 145: suppval[23] of d104 is 0x15. +ptp(2): event 145: suppval[24] of d104 is 0x18. +ptp(2): event 145: suppval[25] of d104 is 0x1b. +ptp(2): event 145: suppval[26] of d104 is 0x1d. +ptp(2): event 145: suppval[27] of d104 is 0x20. +ptp(2): event 145: suppval[28] of d104 is 0x23. +ptp(2): event 145: suppval[29] of d104 is 0x25. +ptp(2): event 145: suppval[30] of d104 is 0x28. +ptp(2): event 146: EOS prop d11d desc record, datasize 0, propxtype 1 +ptp(2): event 146: propxtype is 1 for d11d, unhandled. +ptp(2): event 147: EOS prop d111 desc record, datasize 0, propxtype 1 +ptp(2): event 147: propxtype is 1 for d111, unhandled. +ptp(2): event 148: EOS prop d112 desc record, datasize 0, propxtype 1 +ptp(2): event 148: propxtype is 1 for d112, unhandled. +ptp(2): event 149: EOS prop d113 desc record, datasize 0, propxtype 7 +ptp(2): event 149: propxtype is 7 for d113, unhandled. +ptp(2): event 150: EOS prop d17c desc record, datasize 0, propxtype 7 +ptp(2): event 150: propxtype is 7 for d17c, unhandled. +ptp(2): event 151: EOS prop d17d desc record, datasize 396, propxtype 3 +ptp(2): event 151: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +ptp(2): event 151: data type 0x0000 of d17d unhandled, raw values: +ptp(2): 0: 0x c +ptp(2): 1: 0x 21 +ptp(2): 2: 0x 30c +ptp(2): 3: 0x c +ptp(2): 4: 0x 1 +ptp(2): 5: 0x 2fd +ptp(2): 6: 0x c +ptp(2): 7: 0x 2 +ptp(2): 8: 0x 2d0 +ptp(2): 9: 0x c +ptp(2): 10: 0x 3 +ptp(2): 11: 0x 294 +ptp(2): 12: 0x c +ptp(2): 13: 0x 4 +ptp(2): 14: 0x 258 +ptp(2): 15: 0x c +ptp(2): 16: 0x 5 +ptp(2): 17: 0x 23a +ptp(2): 18: 0x c +ptp(2): 19: 0x 6 +ptp(2): 20: 0x 21c +ptp(2): 21: 0x c +ptp(2): 22: 0x 7 +ptp(2): 23: 0x 1e0 +ptp(2): 24: 0x c +ptp(2): 25: 0x 8 +ptp(2): 26: 0x 1a4 +ptp(2): 27: 0x c +ptp(2): 28: 0x 9 +ptp(2): 29: 0x 186 +ptp(2): 30: 0x c +ptp(2): 31: 0x a +ptp(2): 32: 0x 168 +ptp(2): 33: 0x c +ptp(2): 34: 0x b +ptp(2): 35: 0x 159 +ptp(2): 36: 0x c +ptp(2): 37: 0x c +ptp(2): 38: 0x 14a +ptp(2): 39: 0x c +ptp(2): 40: 0x d +ptp(2): 41: 0x 12c +ptp(2): 42: 0x c +ptp(2): 43: 0x e +ptp(2): 44: 0x 10e +ptp(2): 45: 0x c +ptp(2): 46: 0x f +ptp(2): 47: 0x f0 +ptp(2): 48: 0x c +ptp(2): 49: 0x 10 +ptp(2): 50: 0x d2 +ptp(2): 51: 0x c +ptp(2): 52: 0x 11 +ptp(2): 53: 0x b4 +ptp(2): 54: 0x c +ptp(2): 55: 0x 12 +ptp(2): 56: 0x 78 +ptp(2): 57: 0x c +ptp(2): 58: 0x 13 +ptp(2): 59: 0x 3c +ptp(2): 60: 0x c +ptp(2): 61: 0x 14 +ptp(2): 62: 0x 0 +ptp(2): 63: 0x c +ptp(2): 64: 0x 15 +ptp(2): 65: 0xffffffc4 +ptp(2): 66: 0x c +ptp(2): 67: 0x 16 +ptp(2): 68: 0xffffff88 +ptp(2): 69: 0x c +ptp(2): 70: 0x 17 +ptp(2): 71: 0xffffff4c +ptp(2): 72: 0x c +ptp(2): 73: 0x 18 +ptp(2): 74: 0xffffff2e +ptp(2): 75: 0x c +ptp(2): 76: 0x 19 +ptp(2): 77: 0xffffff10 +ptp(2): 78: 0x c +ptp(2): 79: 0x 1a +ptp(2): 80: 0xffffff10 +ptp(2): 81: 0x c +ptp(2): 82: 0x 1b +ptp(2): 83: 0xfffffed4 +ptp(2): 84: 0x c +ptp(2): 85: 0x 1c +ptp(2): 86: 0xfffffe98 +ptp(2): 87: 0x c +ptp(2): 88: 0x 1d +ptp(2): 89: 0xfffffe5c +ptp(2): 90: 0x c +ptp(2): 91: 0x 1e +ptp(2): 92: 0xfffffe20 +ptp(2): 93: 0x c +ptp(2): 94: 0x 1f +ptp(2): 95: 0xfffffde4 +ptp(2): 96: 0x c +ptp(2): 97: 0x 20 +ptp(2): 98: 0xfffffda8 +ptp(2): event 152: EOS prop d17e desc record, datasize 8, propxtype 3 +ptp(2): event 152: propxtype is 3, prop is 0xd17e, data type is 0x0000, propxcnt is 2. +ptp(2): event 152: data type 0x0000 of d17e unhandled, raw values: +ptp(2): 0: 0x 0 +ptp(2): 1: 0x 1 +ptp(2): event 153: EOS prop d120 desc record, datasize 1084, propxtype 3 +ptp(2): event 153: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 35. +ptp(2): event 153: suppval[0] of d120 is 0x300. +ptp(2): event 153: suppval[1] of d120 is 0x200. +ptp(2): event 153: suppval[2] of d120 is 0x1300. +ptp(2): event 153: suppval[3] of d120 is 0x1200. +ptp(2): event 153: suppval[4] of d120 is 0xd300. +ptp(2): event 153: suppval[5] of d120 is 0xd200. +ptp(2): event 153: suppval[6] of d120 is 0xe300. +ptp(2): event 153: suppval[7] of d120 is 0xf300. +ptp(2): event 153: suppval[8] of d120 is 0x403. +ptp(2): event 153: suppval[9] of d120 is 0x402. +ptp(2): event 153: suppval[10] of d120 is 0x413. +ptp(2): event 153: suppval[11] of d120 is 0x412. +ptp(2): event 153: suppval[12] of d120 is 0x4d3. +ptp(2): event 153: suppval[13] of d120 is 0x4d2. +ptp(2): event 153: suppval[14] of d120 is 0x4e3. +ptp(2): event 153: suppval[15] of d120 is 0x4f3. +ptp(2): event 153: suppval[16] of d120 is 0x1403. +ptp(2): event 153: suppval[17] of d120 is 0x1402. +ptp(2): event 153: suppval[18] of d120 is 0x1413. +ptp(2): event 153: suppval[19] of d120 is 0x1412. +ptp(2): event 153: suppval[20] of d120 is 0x14d3. +ptp(2): event 153: suppval[21] of d120 is 0x14d2. +ptp(2): event 153: suppval[22] of d120 is 0x14e3. +ptp(2): event 153: suppval[23] of d120 is 0x14f3. +ptp(2): event 153: suppval[24] of d120 is 0x2403. +ptp(2): event 153: suppval[25] of d120 is 0x2402. +ptp(2): event 153: suppval[26] of d120 is 0x2413. +ptp(2): event 153: suppval[27] of d120 is 0x2412. +ptp(2): event 153: suppval[28] of d120 is 0x24d3. +ptp(2): event 153: suppval[29] of d120 is 0x24d2. +ptp(2): event 153: suppval[30] of d120 is 0x24e3. +ptp(2): event 153: suppval[31] of d120 is 0x24f3. +ptp(2): event 153: suppval[32] of d120 is 0x400. +ptp(2): event 153: suppval[33] of d120 is 0x1400. +ptp(2): event 153: suppval[34] of d120 is 0x2400. +ptp(2): event 154: EOS prop d121 desc record, datasize 1084, propxtype 3 +ptp(2): event 154: propxtype is 3, prop is 0xd121, data type is 0x0004, propxcnt is 35. +ptp(2): event 154: suppval[0] of d121 is 0x300. +ptp(2): event 154: suppval[1] of d121 is 0x200. +ptp(2): event 154: suppval[2] of d121 is 0x1300. +ptp(2): event 154: suppval[3] of d121 is 0x1200. +ptp(2): event 154: suppval[4] of d121 is 0xd300. +ptp(2): event 154: suppval[5] of d121 is 0xd200. +ptp(2): event 154: suppval[6] of d121 is 0xe300. +ptp(2): event 154: suppval[7] of d121 is 0xf300. +ptp(2): event 154: suppval[8] of d121 is 0x403. +ptp(2): event 154: suppval[9] of d121 is 0x402. +ptp(2): event 154: suppval[10] of d121 is 0x413. +ptp(2): event 154: suppval[11] of d121 is 0x412. +ptp(2): event 154: suppval[12] of d121 is 0x4d3. +ptp(2): event 154: suppval[13] of d121 is 0x4d2. +ptp(2): event 154: suppval[14] of d121 is 0x4e3. +ptp(2): event 154: suppval[15] of d121 is 0x4f3. +ptp(2): event 154: suppval[16] of d121 is 0x1403. +ptp(2): event 154: suppval[17] of d121 is 0x1402. +ptp(2): event 154: suppval[18] of d121 is 0x1413. +ptp(2): event 154: suppval[19] of d121 is 0x1412. +ptp(2): event 154: suppval[20] of d121 is 0x14d3. +ptp(2): event 154: suppval[21] of d121 is 0x14d2. +ptp(2): event 154: suppval[22] of d121 is 0x14e3. +ptp(2): event 154: suppval[23] of d121 is 0x14f3. +ptp(2): event 154: suppval[24] of d121 is 0x2403. +ptp(2): event 154: suppval[25] of d121 is 0x2402. +ptp(2): event 154: suppval[26] of d121 is 0x2413. +ptp(2): event 154: suppval[27] of d121 is 0x2412. +ptp(2): event 154: suppval[28] of d121 is 0x24d3. +ptp(2): event 154: suppval[29] of d121 is 0x24d2. +ptp(2): event 154: suppval[30] of d121 is 0x24e3. +ptp(2): event 154: suppval[31] of d121 is 0x24f3. +ptp(2): event 154: suppval[32] of d121 is 0x400. +ptp(2): event 154: suppval[33] of d121 is 0x1400. +ptp(2): event 154: suppval[34] of d121 is 0x2400. +ptp(2): event 155: EOS prop d122 desc record, datasize 1084, propxtype 3 +ptp(2): event 155: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 35. +ptp(2): event 155: suppval[0] of d122 is 0x300. +ptp(2): event 155: suppval[1] of d122 is 0x200. +ptp(2): event 155: suppval[2] of d122 is 0x1300. +ptp(2): event 155: suppval[3] of d122 is 0x1200. +ptp(2): event 155: suppval[4] of d122 is 0xd300. +ptp(2): event 155: suppval[5] of d122 is 0xd200. +ptp(2): event 155: suppval[6] of d122 is 0xe300. +ptp(2): event 155: suppval[7] of d122 is 0xf300. +ptp(2): event 155: suppval[8] of d122 is 0x403. +ptp(2): event 155: suppval[9] of d122 is 0x402. +ptp(2): event 155: suppval[10] of d122 is 0x413. +ptp(2): event 155: suppval[11] of d122 is 0x412. +ptp(2): event 155: suppval[12] of d122 is 0x4d3. +ptp(2): event 155: suppval[13] of d122 is 0x4d2. +ptp(2): event 155: suppval[14] of d122 is 0x4e3. +ptp(2): event 155: suppval[15] of d122 is 0x4f3. +ptp(2): event 155: suppval[16] of d122 is 0x1403. +ptp(2): event 155: suppval[17] of d122 is 0x1402. +ptp(2): event 155: suppval[18] of d122 is 0x1413. +ptp(2): event 155: suppval[19] of d122 is 0x1412. +ptp(2): event 155: suppval[20] of d122 is 0x14d3. +ptp(2): event 155: suppval[21] of d122 is 0x14d2. +ptp(2): event 155: suppval[22] of d122 is 0x14e3. +ptp(2): event 155: suppval[23] of d122 is 0x14f3. +ptp(2): event 155: suppval[24] of d122 is 0x2403. +ptp(2): event 155: suppval[25] of d122 is 0x2402. +ptp(2): event 155: suppval[26] of d122 is 0x2413. +ptp(2): event 155: suppval[27] of d122 is 0x2412. +ptp(2): event 155: suppval[28] of d122 is 0x24d3. +ptp(2): event 155: suppval[29] of d122 is 0x24d2. +ptp(2): event 155: suppval[30] of d122 is 0x24e3. +ptp(2): event 155: suppval[31] of d122 is 0x24f3. +ptp(2): event 155: suppval[32] of d122 is 0x400. +ptp(2): event 155: suppval[33] of d122 is 0x1400. +ptp(2): event 155: suppval[34] of d122 is 0x2400. +ptp(2): event 156: EOS prop d156 desc record, datasize 0, propxtype 7 +ptp(2): event 156: propxtype is 7 for d156, unhandled. +ptp(2): event 157: EOS prop d150 desc record, datasize 0, propxtype 7 +ptp(2): event 157: propxtype is 7 for d150, unhandled. +ptp(2): event 158: EOS prop d151 desc record, datasize 0, propxtype 7 +ptp(2): event 158: propxtype is 7 for d151, unhandled. +ptp(2): event 159: EOS prop d152 desc record, datasize 0, propxtype 7 +ptp(2): event 159: propxtype is 7 for d152, unhandled. +ptp(2): event 160: EOS prop d153 desc record, datasize 0, propxtype 7 +ptp(2): event 160: propxtype is 7 for d153, unhandled. +ptp(2): event 161: EOS prop d154 desc record, datasize 0, propxtype 7 +ptp(2): event 161: propxtype is 7 for d154, unhandled. +ptp(2): event 162: EOS prop d155 desc record, datasize 0, propxtype 7 +ptp(2): event 162: propxtype is 7 for d155, unhandled. +ptp(2): event 163: EOS prop d160 desc record, datasize 0, propxtype 7 +ptp(2): event 163: propxtype is 7 for d160, unhandled. +ptp(2): event 164: EOS prop d161 desc record, datasize 0, propxtype 7 +ptp(2): event 164: propxtype is 7 for d161, unhandled. +ptp(2): event 165: EOS prop d162 desc record, datasize 0, propxtype 7 +ptp(2): event 165: propxtype is 7 for d162, unhandled. +ptp(2): event 166: EOS prop d170 desc record, datasize 0, propxtype 7 +ptp(2): event 166: propdesc d170, default value not found. +ptp(2): event 167: EOS prop d171 desc record, datasize 0, propxtype 7 +ptp(2): event 167: propdesc d171, default value not found. +ptp(2): event 168: EOS prop d172 desc record, datasize 0, propxtype 7 +ptp(2): event 168: propdesc d172, default value not found. +ptp(2): event 169: EOS prop d11c desc record, datasize 12, propxtype 3 +ptp(2): event 169: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +ptp(2): event 169: suppval[0] of d11c is 0x2. +ptp(2): event 169: suppval[1] of d11c is 0x6. +ptp(2): event 169: suppval[2] of d11c is 0x4. +ptp(2): event 170: EOS prop d1a0 desc record, datasize 0, propxtype 7 +ptp(2): event 170: propxtype is 7 for d1a0, unhandled. +ptp(2): event 171: EOS prop d1a1 desc record, datasize 0, propxtype 7 +ptp(2): event 171: propxtype is 7 for d1a1, unhandled. +ptp(2): event 172: EOS prop d1a2 desc record, datasize 0, propxtype 7 +ptp(2): event 172: propdesc d1a2, default value not found. +ptp(2): event 173: EOS prop d1a8 desc record, datasize 0, propxtype 1 +ptp(2): event 173: propxtype is 1 for d1a8, unhandled. +ptp(2): event 174: EOS prop d1a7 desc record, datasize 0, propxtype 7 +ptp(2): event 174: propxtype is 7 for d1a7, unhandled. +ptp(2): event 175: EOS prop d1ab desc record, datasize 0, propxtype 1 +ptp(2): event 175: propxtype is 1 for d1ab, unhandled. +ptp(2): event 176: EOS prop d1b0 desc record, datasize 48, propxtype 3 +ptp(2): event 176: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 12. +ptp(2): event 176: suppval[0] of d1b0 is 0x0. +ptp(2): event 176: suppval[1] of d1b0 is 0x1. +ptp(2): event 176: suppval[2] of d1b0 is 0x2. +ptp(2): event 176: suppval[3] of d1b0 is 0x3. +ptp(2): event 176: suppval[4] of d1b0 is 0x4. +ptp(2): event 176: suppval[5] of d1b0 is 0x5. +ptp(2): event 176: suppval[6] of d1b0 is 0x6. +ptp(2): event 176: suppval[7] of d1b0 is 0x7. +ptp(2): event 176: suppval[8] of d1b0 is 0x8. +ptp(2): event 176: suppval[9] of d1b0 is 0x9. +ptp(2): event 176: suppval[10] of d1b0 is 0xa. +ptp(2): event 176: suppval[11] of d1b0 is 0xb. +ptp(2): event 177: EOS prop d1b1 desc record, datasize 8, propxtype 3 +ptp(2): event 177: propxtype is 3, prop is 0xd1b1, data type is 0x0004, propxcnt is 2. +ptp(2): event 177: suppval[0] of d1b1 is 0x1. +ptp(2): event 177: suppval[1] of d1b1 is 0x0. +ptp(2): event 178: EOS prop d1b2 desc record, datasize 0, propxtype 7 +ptp(2): event 178: propxtype is 7 for d1b2, unhandled. +ptp(2): event 179: EOS prop d1b3 desc record, datasize 0, propxtype 7 +ptp(2): event 179: propxtype is 7 for d1b3, unhandled. +ptp(2): event 180: EOS prop d1b4 desc record, datasize 40, propxtype 3 +ptp(2): event 180: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 10. +ptp(2): event 180: suppval[0] of d1b4 is 0x0. +ptp(2): event 180: suppval[1] of d1b4 is 0x1. +ptp(2): event 180: suppval[2] of d1b4 is 0x8. +ptp(2): event 180: suppval[3] of d1b4 is 0x2. +ptp(2): event 180: suppval[4] of d1b4 is 0x3. +ptp(2): event 180: suppval[5] of d1b4 is 0x4. +ptp(2): event 180: suppval[6] of d1b4 is 0x5. +ptp(2): event 180: suppval[7] of d1b4 is 0x6. +ptp(2): event 180: suppval[8] of d1b4 is 0x9. +ptp(2): event 180: suppval[9] of d1b4 is 0x8000. +ptp(2): event 181: EOS prop d1b5 desc record, datasize 0, propxtype 7 +ptp(2): event 181: propxtype is 7 for d1b5, unhandled. +ptp(2): event 182: EOS prop d1b6 desc record, datasize 304, propxtype 3 +ptp(2): event 182: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +ptp(2): event 182: suppval[0] of d1b6 is 0x9c4. +ptp(2): event 182: suppval[1] of d1b6 is 0xa28. +ptp(2): event 182: suppval[2] of d1b6 is 0xa8c. +ptp(2): event 182: suppval[3] of d1b6 is 0xaf0. +ptp(2): event 182: suppval[4] of d1b6 is 0xb54. +ptp(2): event 182: suppval[5] of d1b6 is 0xbb8. +ptp(2): event 182: suppval[6] of d1b6 is 0xc1c. +ptp(2): event 182: suppval[7] of d1b6 is 0xc80. +ptp(2): event 182: suppval[8] of d1b6 is 0xce4. +ptp(2): event 182: suppval[9] of d1b6 is 0xd48. +ptp(2): event 182: suppval[10] of d1b6 is 0xdac. +ptp(2): event 182: suppval[11] of d1b6 is 0xe10. +ptp(2): event 182: suppval[12] of d1b6 is 0xe74. +ptp(2): event 182: suppval[13] of d1b6 is 0xed8. +ptp(2): event 182: suppval[14] of d1b6 is 0xf3c. +ptp(2): event 182: suppval[15] of d1b6 is 0xfa0. +ptp(2): event 182: suppval[16] of d1b6 is 0x1004. +ptp(2): event 182: suppval[17] of d1b6 is 0x1068. +ptp(2): event 182: suppval[18] of d1b6 is 0x10cc. +ptp(2): event 182: suppval[19] of d1b6 is 0x1130. +ptp(2): event 182: suppval[20] of d1b6 is 0x1194. +ptp(2): event 182: suppval[21] of d1b6 is 0x11f8. +ptp(2): event 182: suppval[22] of d1b6 is 0x125c. +ptp(2): event 182: suppval[23] of d1b6 is 0x12c0. +ptp(2): event 182: suppval[24] of d1b6 is 0x1324. +ptp(2): event 182: suppval[25] of d1b6 is 0x1388. +ptp(2): event 182: suppval[26] of d1b6 is 0x13ec. +ptp(2): event 182: suppval[27] of d1b6 is 0x1450. +ptp(2): event 182: suppval[28] of d1b6 is 0x14b4. +ptp(2): event 182: suppval[29] of d1b6 is 0x1518. +ptp(2): event 182: suppval[30] of d1b6 is 0x157c. +ptp(2): event 182: suppval[31] of d1b6 is 0x15e0. +ptp(2): event 182: suppval[32] of d1b6 is 0x1644. +ptp(2): event 182: suppval[33] of d1b6 is 0x16a8. +ptp(2): event 182: suppval[34] of d1b6 is 0x170c. +ptp(2): event 182: suppval[35] of d1b6 is 0x1770. +ptp(2): event 182: suppval[36] of d1b6 is 0x17d4. +ptp(2): event 182: suppval[37] of d1b6 is 0x1838. +ptp(2): event 182: suppval[38] of d1b6 is 0x189c. +ptp(2): event 182: suppval[39] of d1b6 is 0x1900. +ptp(2): event 182: suppval[40] of d1b6 is 0x1964. +ptp(2): event 182: suppval[41] of d1b6 is 0x19c8. +ptp(2): event 182: suppval[42] of d1b6 is 0x1a2c. +ptp(2): event 182: suppval[43] of d1b6 is 0x1a90. +ptp(2): event 182: suppval[44] of d1b6 is 0x1af4. +ptp(2): event 182: suppval[45] of d1b6 is 0x1b58. +ptp(2): event 182: suppval[46] of d1b6 is 0x1bbc. +ptp(2): event 182: suppval[47] of d1b6 is 0x1c20. +ptp(2): event 182: suppval[48] of d1b6 is 0x1c84. +ptp(2): event 182: suppval[49] of d1b6 is 0x1ce8. +ptp(2): event 182: suppval[50] of d1b6 is 0x1d4c. +ptp(2): event 182: suppval[51] of d1b6 is 0x1db0. +ptp(2): event 182: suppval[52] of d1b6 is 0x1e14. +ptp(2): event 182: suppval[53] of d1b6 is 0x1e78. +ptp(2): event 182: suppval[54] of d1b6 is 0x1edc. +ptp(2): event 182: suppval[55] of d1b6 is 0x1f40. +ptp(2): event 182: suppval[56] of d1b6 is 0x1fa4. +ptp(2): event 182: suppval[57] of d1b6 is 0x2008. +ptp(2): event 182: suppval[58] of d1b6 is 0x206c. +ptp(2): event 182: suppval[59] of d1b6 is 0x20d0. +ptp(2): event 182: suppval[60] of d1b6 is 0x2134. +ptp(2): event 182: suppval[61] of d1b6 is 0x2198. +ptp(2): event 182: suppval[62] of d1b6 is 0x21fc. +ptp(2): event 182: suppval[63] of d1b6 is 0x2260. +ptp(2): event 182: suppval[64] of d1b6 is 0x22c4. +ptp(2): event 182: suppval[65] of d1b6 is 0x2328. +ptp(2): event 182: suppval[66] of d1b6 is 0x238c. +ptp(2): event 182: suppval[67] of d1b6 is 0x23f0. +ptp(2): event 182: suppval[68] of d1b6 is 0x2454. +ptp(2): event 182: suppval[69] of d1b6 is 0x24b8. +ptp(2): event 182: suppval[70] of d1b6 is 0x251c. +ptp(2): event 182: suppval[71] of d1b6 is 0x2580. +ptp(2): event 182: suppval[72] of d1b6 is 0x25e4. +ptp(2): event 182: suppval[73] of d1b6 is 0x2648. +ptp(2): event 182: suppval[74] of d1b6 is 0x26ac. +ptp(2): event 182: suppval[75] of d1b6 is 0x2710. +ptp(2): event 183: EOS prop d1a9 desc record, datasize 20, propxtype 3 +ptp(2): event 183: propxtype is 3, prop is 0xd1a9, data type is 0x0004, propxcnt is 5. +ptp(2): event 183: suppval[0] of d1a9 is 0x0. +ptp(2): event 183: suppval[1] of d1a9 is 0x2. +ptp(2): event 183: suppval[2] of d1a9 is 0x4. +ptp(2): event 183: suppval[3] of d1a9 is 0x8. +ptp(2): event 183: suppval[4] of d1a9 is 0xff. +ptp(2): event 184: EOS prop d146 desc record, datasize 0, propxtype 7 +ptp(2): event 184: propxtype is 7 for d146, unhandled. +ptp(2): event 185: EOS prop d1ac desc record, datasize 0, propxtype 1 +ptp(2): event 185: propxtype is 1 for d1ac, unhandled. +ptp(2): event 186: EOS prop d1ad desc record, datasize 0, propxtype 1 +ptp(2): event 186: propdesc d1ad, default value not found. +ptp(2): event 187: EOS prop d1ae desc record, datasize 0, propxtype 1 +ptp(2): event 187: propdesc d1ae, default value not found. +ptp(2): event 188: EOS prop d1aa desc record, datasize 0, propxtype 1 +ptp(2): event 188: propxtype is 1 for d1aa, unhandled. +ptp(2): event 189: EOS prop d11e desc record, datasize 0, propxtype 1 +ptp(2): event 189: propxtype is 1 for d11e, unhandled. +ptp(2): event 190: EOS prop d11f desc record, datasize 0, propxtype 1 +ptp(2): event 190: propxtype is 1 for d11f, unhandled. +ptp(2): event 191: EOS prop d1af desc record, datasize 0, propxtype 1 +ptp(2): event 191: propdesc d1af, default value not found. +ptp(2): event 192: EOS prop d1d0 desc record, datasize 0, propxtype 7 +ptp(2): event 192: propdesc d1d0, default value not found. +ptp(2): event 193: EOS prop d1d1 desc record, datasize 0, propxtype 7 +ptp(2): event 193: propdesc d1d1, default value not found. +ptp(2): event 194: EOS prop d1d9 desc record, datasize 40, propxtype 3 +ptp(2): event 194: propxtype is 3, prop is 0xd1d9, data type is 0x0004, propxcnt is 10. +ptp(2): event 194: suppval[0] of d1d9 is 0x0. +ptp(2): event 194: suppval[1] of d1d9 is 0x3. +ptp(2): event 194: suppval[2] of d1d9 is 0x5. +ptp(2): event 194: suppval[3] of d1d9 is 0x8. +ptp(2): event 194: suppval[4] of d1d9 is 0xb. +ptp(2): event 194: suppval[5] of d1d9 is 0xd. +ptp(2): event 194: suppval[6] of d1d9 is 0x10. +ptp(2): event 194: suppval[7] of d1d9 is 0x13. +ptp(2): event 194: suppval[8] of d1d9 is 0x15. +ptp(2): event 194: suppval[9] of d1d9 is 0x18. +ptp(2): event 195: EOS prop d1d5 desc record, datasize 0, propxtype 3 +ptp(2): event 196: EOS prop d1ba desc record, datasize 12, propxtype 3 +ptp(2): event 196: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 3. +ptp(2): event 196: suppval[0] of d1ba is 0x1. +ptp(2): event 196: suppval[1] of d1ba is 0x2. +ptp(2): event 196: suppval[2] of d1ba is 0x0. +ptp(2): event 197: EOS prop d1cc desc record, datasize 0, propxtype 3 +ptp(2): event 198: EOS prop d1bc desc record, datasize 12, propxtype 3 +ptp(2): event 198: propxtype is 3, prop is 0xd1bc, data type is 0x0006, propxcnt is 3. +ptp(2): event 198: suppval[0] of d1bc is 0x1. +ptp(2): event 198: suppval[1] of d1bc is 0x3. +ptp(2): event 198: suppval[2] of d1bc is 0x0. +ptp(2): event 199: EOS prop d1b8 desc record, datasize 0, propxtype 3 +ptp(2): event 200: EOS prop d1d3 desc record, datasize 0, propxtype 7 +ptp(2): event 200: propxtype is 7 for d1d3, unhandled. +ptp(2): event 201: EOS prop d1d8 desc record, datasize 0, propxtype 1 +ptp(2): event 201: propxtype is 1 for d1d8, unhandled. +ptp(2): event 202: EOS prop d17f desc record, datasize 0, propxtype 1 +ptp(2): event 202: propdesc d17f, default value not found. +ptp(2): event 203: EOS prop d1b7 desc record, datasize 0, propxtype 1 +ptp(2): event 203: propxtype is 1 for d1b7, unhandled. +ptp(2): event 204: EOS prop d1cb desc record, datasize 0, propxtype 7 +ptp(2): event 204: propxtype is 7 for d1cb, unhandled. +ptp(2): event 205: EOS prop d1db desc record, datasize 0, propxtype 7 +ptp(2): event 205: propxtype is 7 for d1db, unhandled. +ptp(2): event 206: EOS prop d1dc desc record, datasize 8, propxtype 3 +ptp(2): event 206: propxtype is 3, prop is 0xd1dc, data type is 0x0006, propxcnt is 2. +ptp(2): event 206: suppval[0] of d1dc is 0x0. +ptp(2): event 206: suppval[1] of d1dc is 0x1. +ptp(2): event 207: EOS prop d1a3 desc record, datasize 0, propxtype 1 +ptp(2): event 207: propxtype is 1 for d1a3, unhandled. +ptp(2): event 208: EOS prop d1a4 desc record, datasize 0, propxtype 7 +ptp(2): event 208: propxtype is 7 for d1a4, unhandled. +ptp(2): event 209: EOS prop d1df desc record, datasize 0, propxtype 3 +ptp(2): event 210: EOS prop d1bd desc record, datasize 0, propxtype 1 +ptp(2): event 210: propxtype is 1 for d1bd, unhandled. +ptp(2): event 211: EOS prop d1c1 desc record, datasize 16, propxtype 3 +ptp(2): event 211: propxtype is 3, prop is 0xd1c1, data type is 0x0000, propxcnt is 4. +ptp(2): event 211: data type 0x0000 of d1c1 unhandled, raw values: +ptp(2): 0: 0x 3 +ptp(2): 1: 0x 1 +ptp(2): 2: 0x 0 +ptp(2): 3: 0x 2 +ptp(2): event 212: EOS prop d1c0 desc record, datasize 0, propxtype 1 +ptp(2): event 212: propxtype is 1 for d1c0, unhandled. +ptp(2): event 213: EOS prop d1bf desc record, datasize 0, propxtype 7 +ptp(2): event 213: propxtype is 7 for d1bf, unhandled. +ptp(2): event 214: EOS prop d1c4 desc record, datasize 0, propxtype 1 +ptp(2): event 214: propxtype is 1 for d1c4, unhandled. +ptp(2): event 215: EOS prop d1c2 desc record, datasize 0, propxtype 1 +ptp(2): event 215: propxtype is 1 for d1c2, unhandled. +ptp(2): event 216: EOS prop d1c5 desc record, datasize 0, propxtype 3 +ptp(2): event 217: EOS prop d194 desc record, datasize 16, propxtype 3 +ptp(2): event 217: propxtype is 3, prop is 0xd194, data type is 0x0000, propxcnt is 4. +ptp(2): event 217: data type 0x0000 of d194 unhandled, raw values: +ptp(2): 0: 0x 0 +ptp(2): 1: 0x 2 +ptp(2): 2: 0x 7 +ptp(2): 3: 0x 1 +ptp(2): event 218: EOS prop d195 desc record, datasize 0, propxtype 3 +ptp(2): event 219: EOS prop d196 desc record, datasize 0, propxtype 7 +ptp(2): event 219: propxtype is 7 for d196, unhandled. +ptp(2): event 220: EOS prop d197 desc record, datasize 0, propxtype 3 +ptp(2): event 221: EOS prop d198 desc record, datasize 0, propxtype 1 +ptp(2): event 221: propxtype is 1 for d198, unhandled. +ptp(2): event 222: EOS prop d1dd desc record, datasize 0, propxtype 1 +ptp(2): event 222: propxtype is 1 for d1dd, unhandled. +ptp(2): event 223: EOS prop d1c7 desc record, datasize 0, propxtype 7 +ptp(2): event 223: propxtype is 7 for d1c7, unhandled. +ptp(2): event 224: EOS prop d199 desc record, datasize 0, propxtype 1 +ptp(2): event 224: propxtype is 1 for d199, unhandled. +ptp(2): event 225: EOS prop d138 desc record, datasize 0, propxtype 1 +ptp(2): event 225: propxtype is 1 for d138, unhandled. +ptp(2): event 226: EOS prop d139 desc record, datasize 0, propxtype 1 +ptp(2): event 226: propxtype is 1 for d139, unhandled. +ptp(2): event 227: EOS prop d13a desc record, datasize 8, propxtype 3 +ptp(2): event 227: propxtype is 3, prop is 0xd13a, data type is 0x0000, propxcnt is 2. +ptp(2): event 227: data type 0x0000 of d13a unhandled, raw values: +ptp(2): 0: 0x 0 +ptp(2): 1: 0x 1 +ptp(2): event 228: EOS prop d13b desc record, datasize 0, propxtype 1 +ptp(2): event 228: propxtype is 1 for d13b, unhandled. +ptp(2): event 229: EOS prop d13c desc record, datasize 0, propxtype 1 +ptp(2): event 229: propxtype is 1 for d13c, unhandled. +ptp(2): event 230: EOS prop d13d desc record, datasize 0, propxtype 1 +ptp(2): event 230: propxtype is 1 for d13d, unhandled. +ptp(2): event 231: EOS prop d14d desc record, datasize 0, propxtype 7 +ptp(2): event 231: propxtype is 7 for d14d, unhandled. +ptp(2): event 232: EOS prop d19d desc record, datasize 0, propxtype 1 +ptp(2): event 232: propdesc d19d, default value not found. +ptp(2): event 233: EOS prop d19a desc record, datasize 0, propxtype 1 +ptp(2): event 233: propxtype is 1 for d19a, unhandled. +ptp(2): event 234: EOS prop d19c desc record, datasize 0, propxtype 1 +ptp(2): event 234: propxtype is 1 for d19c, unhandled. +ptp(2): event 235: EOS prop d177 desc record, datasize 0, propxtype 7 +ptp(2): event 235: propxtype is 7 for d177, unhandled. +ptp(2): event 236: EOS prop d178 desc record, datasize 20, propxtype 3 +ptp(2): event 236: propxtype is 3, prop is 0xd178, data type is 0x0000, propxcnt is 5. +ptp(2): event 236: data type 0x0000 of d178 unhandled, raw values: +ptp(2): 0: 0x 3 +ptp(2): 1: 0x 1 +ptp(2): 2: 0x 0 +ptp(2): 3: 0x 2 +ptp(2): 4: 0x 4 +ptp(2): event 237: EOS prop d17b desc record, datasize 0, propxtype 3 +ptp(2): event 238: EOS prop d19f desc record, datasize 0, propxtype 1 +ptp(2): event 238: propxtype is 1 for d19f, unhandled. +ptp(2): event 239: EOS prop d175 desc record, datasize 0, propxtype 3 +ptp(2): event 240: EOS prop d14c desc record, datasize 0, propxtype 1 +ptp(2): event 240: propxtype is 1 for d14c, unhandled. +ptp(2): event 241: EOS prop d14b desc record, datasize 4, propxtype 3 +ptp(2): event 241: propxtype is 3, prop is 0xd14b, data type is 0x0000, propxcnt is 1. +ptp(2): event 241: data type 0x0000 of d14b unhandled, raw values: +ptp(2): 0: 0x 6 + + +ptp2/eos_deviceinfoex(2): event: c181 +ptp2/eos_deviceinfoex(2): event: c182 +ptp2/eos_deviceinfoex(2): event: c183 +ptp2/eos_deviceinfoex(2): event: c184 +ptp2/eos_deviceinfoex(2): event: c185 +ptp2/eos_deviceinfoex(2): event: c186 +ptp2/eos_deviceinfoex(2): event: c187 +ptp2/eos_deviceinfoex(2): event: c188 +ptp2/eos_deviceinfoex(2): event: c189 +ptp2/eos_deviceinfoex(2): event: c18a +ptp2/eos_deviceinfoex(2): event: c18b +ptp2/eos_deviceinfoex(2): event: c18d +ptp2/eos_deviceinfoex(2): event: c18e +ptp2/eos_deviceinfoex(2): event: c18f +ptp2/eos_deviceinfoex(2): event: c190 +ptp2/eos_deviceinfoex(2): event: c191 +ptp2/eos_deviceinfoex(2): event: c1a0 +ptp2/eos_deviceinfoex(2): event: c1a1 +ptp2/eos_deviceinfoex(2): deviceprop: d105 +ptp2/eos_deviceinfoex(2): deviceprop: d108 +ptp2/eos_deviceinfoex(2): deviceprop: d106 +ptp2/eos_deviceinfoex(2): deviceprop: d107 +ptp2/eos_deviceinfoex(2): deviceprop: d109 +ptp2/eos_deviceinfoex(2): deviceprop: d10a +ptp2/eos_deviceinfoex(2): deviceprop: d10b +ptp2/eos_deviceinfoex(2): deviceprop: d10c +ptp2/eos_deviceinfoex(2): deviceprop: d10d +ptp2/eos_deviceinfoex(2): deviceprop: d10e +ptp2/eos_deviceinfoex(2): deviceprop: d10f +ptp2/eos_deviceinfoex(2): deviceprop: d11b +ptp2/eos_deviceinfoex(2): deviceprop: d114 +ptp2/eos_deviceinfoex(2): deviceprop: d116 +ptp2/eos_deviceinfoex(2): deviceprop: d119 +ptp2/eos_deviceinfoex(2): deviceprop: d11a +ptp2/eos_deviceinfoex(2): deviceprop: d110 +ptp2/eos_deviceinfoex(2): deviceprop: d115 +ptp2/eos_deviceinfoex(2): deviceprop: d101 +ptp2/eos_deviceinfoex(2): deviceprop: d102 +ptp2/eos_deviceinfoex(2): deviceprop: d103 +ptp2/eos_deviceinfoex(2): deviceprop: d104 +ptp2/eos_deviceinfoex(2): deviceprop: d11d +ptp2/eos_deviceinfoex(2): deviceprop: d111 +ptp2/eos_deviceinfoex(2): deviceprop: d112 +ptp2/eos_deviceinfoex(2): deviceprop: d113 +ptp2/eos_deviceinfoex(2): deviceprop: d17c +ptp2/eos_deviceinfoex(2): deviceprop: d17d +ptp2/eos_deviceinfoex(2): deviceprop: d17e +ptp2/eos_deviceinfoex(2): deviceprop: d120 +ptp2/eos_deviceinfoex(2): deviceprop: d121 +ptp2/eos_deviceinfoex(2): deviceprop: d122 +ptp2/eos_deviceinfoex(2): deviceprop: d156 +ptp2/eos_deviceinfoex(2): deviceprop: d150 +ptp2/eos_deviceinfoex(2): deviceprop: d151 +ptp2/eos_deviceinfoex(2): deviceprop: d152 +ptp2/eos_deviceinfoex(2): deviceprop: d153 +ptp2/eos_deviceinfoex(2): deviceprop: d154 +ptp2/eos_deviceinfoex(2): deviceprop: d155 +ptp2/eos_deviceinfoex(2): deviceprop: d160 +ptp2/eos_deviceinfoex(2): deviceprop: d161 +ptp2/eos_deviceinfoex(2): deviceprop: d162 +ptp2/eos_deviceinfoex(2): deviceprop: d170 +ptp2/eos_deviceinfoex(2): deviceprop: d171 +ptp2/eos_deviceinfoex(2): deviceprop: d172 +ptp2/eos_deviceinfoex(2): deviceprop: d11c +ptp2/eos_deviceinfoex(2): deviceprop: d1a0 +ptp2/eos_deviceinfoex(2): deviceprop: d1a1 +ptp2/eos_deviceinfoex(2): deviceprop: d1a2 +ptp2/eos_deviceinfoex(2): deviceprop: d1a5 +ptp2/eos_deviceinfoex(2): deviceprop: d1a8 +ptp2/eos_deviceinfoex(2): deviceprop: d1a7 +ptp2/eos_deviceinfoex(2): deviceprop: d1ab +ptp2/eos_deviceinfoex(2): deviceprop: d1b0 +ptp2/eos_deviceinfoex(2): deviceprop: d1b1 +ptp2/eos_deviceinfoex(2): deviceprop: d1b2 +ptp2/eos_deviceinfoex(2): deviceprop: d1b3 +ptp2/eos_deviceinfoex(2): deviceprop: d1b4 +ptp2/eos_deviceinfoex(2): deviceprop: d1b5 +ptp2/eos_deviceinfoex(2): deviceprop: d1b6 +ptp2/eos_deviceinfoex(2): deviceprop: d1a9 +ptp2/eos_deviceinfoex(2): deviceprop: d146 +ptp2/eos_deviceinfoex(2): deviceprop: d1ac +ptp2/eos_deviceinfoex(2): deviceprop: d1ad +ptp2/eos_deviceinfoex(2): deviceprop: d1ae +ptp2/eos_deviceinfoex(2): deviceprop: d1aa +ptp2/eos_deviceinfoex(2): deviceprop: d11e +ptp2/eos_deviceinfoex(2): deviceprop: d11f +ptp2/eos_deviceinfoex(2): deviceprop: d1af +ptp2/eos_deviceinfoex(2): deviceprop: d1d0 +ptp2/eos_deviceinfoex(2): deviceprop: d1d1 +ptp2/eos_deviceinfoex(2): deviceprop: d1d9 +ptp2/eos_deviceinfoex(2): deviceprop: d1d5 +ptp2/eos_deviceinfoex(2): deviceprop: d1ba +ptp2/eos_deviceinfoex(2): deviceprop: d1cc +ptp2/eos_deviceinfoex(2): deviceprop: d1bc +ptp2/eos_deviceinfoex(2): deviceprop: d1b8 +ptp2/eos_deviceinfoex(2): deviceprop: d1d3 +ptp2/eos_deviceinfoex(2): deviceprop: d1d8 +ptp2/eos_deviceinfoex(2): deviceprop: d17f +ptp2/eos_deviceinfoex(2): deviceprop: d1b7 +ptp2/eos_deviceinfoex(2): deviceprop: d1cb +ptp2/eos_deviceinfoex(2): deviceprop: d1db +ptp2/eos_deviceinfoex(2): deviceprop: d1dc +ptp2/eos_deviceinfoex(2): deviceprop: d1a3 +ptp2/eos_deviceinfoex(2): deviceprop: d1a4 +ptp2/eos_deviceinfoex(2): deviceprop: d1df +ptp2/eos_deviceinfoex(2): deviceprop: d1bd +ptp2/eos_deviceinfoex(2): deviceprop: d1c1 +ptp2/eos_deviceinfoex(2): deviceprop: d1c0 +ptp2/eos_deviceinfoex(2): deviceprop: d1bf +ptp2/eos_deviceinfoex(2): deviceprop: d1c4 +ptp2/eos_deviceinfoex(2): deviceprop: d1c2 +ptp2/eos_deviceinfoex(2): deviceprop: d1c5 +ptp2/eos_deviceinfoex(2): deviceprop: d194 +ptp2/eos_deviceinfoex(2): deviceprop: d195 +ptp2/eos_deviceinfoex(2): deviceprop: d196 +ptp2/eos_deviceinfoex(2): deviceprop: d197 +ptp2/eos_deviceinfoex(2): deviceprop: d198 +ptp2/eos_deviceinfoex(2): deviceprop: d1dd +ptp2/eos_deviceinfoex(2): deviceprop: d1c7 +ptp2/eos_deviceinfoex(2): deviceprop: d199 +ptp2/eos_deviceinfoex(2): deviceprop: d138 +ptp2/eos_deviceinfoex(2): deviceprop: d139 +ptp2/eos_deviceinfoex(2): deviceprop: d13a +ptp2/eos_deviceinfoex(2): deviceprop: d13b +ptp2/eos_deviceinfoex(2): deviceprop: d13c +ptp2/eos_deviceinfoex(2): deviceprop: d13d +ptp2/eos_deviceinfoex(2): deviceprop: d14d +ptp2/eos_deviceinfoex(2): deviceprop: d19d +ptp2/eos_deviceinfoex(2): deviceprop: d19a +ptp2/eos_deviceinfoex(2): deviceprop: d19c +ptp2/eos_deviceinfoex(2): deviceprop: d177 +ptp2/eos_deviceinfoex(2): deviceprop: d178 +ptp2/eos_deviceinfoex(2): deviceprop: d17b +ptp2/eos_deviceinfoex(2): deviceprop: d19f +ptp2/eos_deviceinfoex(2): deviceprop: d175 +ptp2/eos_deviceinfoex(2): deviceprop: d14c +ptp2/eos_deviceinfoex(2): deviceprop: d14b +ptp2/eos_deviceinfoex(2): unk: 0000 +ptp2/eos_deviceinfoex(2): unk: 0001 +ptp2/eos_deviceinfoex(2): unk: 0002 +ptp2/eos_deviceinfoex(2): unk: 0004 +ptp2/eos_deviceinfoex(2): unk: 0008 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos70d-focusinfoex.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos70d-focusinfoex.txt new file mode 100644 index 00000000..d9647c67 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos70d-focusinfoex.txt @@ -0,0 +1,147 @@ +0: 1a 01 00 00 +4: 16 01 + +6: 04 00 version 4? +8: 1f 00 31 total +10: 13 00 19 active + +12: 60 15 +14: 40 0e +16: 60 15 +18: 40 0e + +20: e5 00 +22: e5 00 +24: e5 00 +26: e5 00 +28: e5 00 +30: e5 00 +32: e5 00 +34: e5 00 +36: e5 00 +38: e5 00 +40: e5 00 +42: e5 00 +44: e5 00 +46: e5 00 +48: e5 00 +50: e5 00 +52: e5 00 +54: e5 00 +56: e5 00 +58: 00 00 +60: 00 00 +62: 00 00 +64: 00 00 +66: 00 00 +68: 00 00 +70: 00 00 +72: 00 00 +74: 00 00 +76: 00 00 +78: 00 00 +80: 00 00 + +82: 15 01 +84: 15 01 +86: 15 01 +88: 15 01 +90: 15 01 +92: 15 01 +94: 15 01 +96: 15 01 +98: 15 01 +100: 15 01 +102: 15 01 +104: 15 01 +106: 15 01 +108: 15 01 +110: 15 01 +112: 15 01 +114: 15 01 +116: 15 01 +118: 15 01 +120: 00 00 +122: 00 00 +124: 00 00 +126: 00 00 +128: 00 00 +130: 00 00 +132: 00 00 +134: 00 00 +136: 00 00 +138: 00 00 +140: 00 00 +142: 00 00 + +144: 8d fa +146: 7f fc +148: 7f fc +150: 7f fc +152: 71 fe +154: 71 fe +156: 71 fe +158: 00 00 +160: 00 00 +162: 00 00 +164: 00 00 +166: 00 00 +168: 8f 01 +170: 8f 01 +172: 8f 01 +174: 81 03 +176: 81 03 +178: 81 03 +180: 73 05 +182: 00 00 +184: 00 00 +186: 00 00 +188: 00 00 +190: 00 00 +192: 00 00 +194: 00 00 +196: 00 00 +198: 00 00 +200: 00 00 +202: 00 00 +204: 00 00 + +206: 00 00 +208: 91 01 +210: 00 00 +212: 6f fe +214: 91 01 +216: 00 00 +218: 6f fe +220: f3 02 +222: 91 01 +224: 00 00 +226: 6f fe +228: 0d fd +230: 91 01 +232: 00 00 +234: 6f fe +236: 91 01 +238: 00 00 +240: 6f fe +242: 00 00 +244: 00 00 +246: 00 00 +248: 00 00 +250: 00 00 +252: 00 00 +254: 00 00 +256: 00 00 +258: 00 00 +260: 00 00 +262: 00 00 +264: 00 00 +266: 00 00 + +268: 00 00 +270: 00 00 +272: ff ff +274: 07 00 +276: 00 00 +278: 00 00 +280: ff ff diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos70d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos70d.txt new file mode 100644 index 00000000..91a1d7dd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos70d.txt @@ -0,0 +1,3329 @@ +gphoto2 2.5.2.1 + +Copyright (c) 2000-2013 Lutz Mueller and others + +gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may +redistribute copies of gphoto2 under the terms of the GNU General Public +License. For more information about these matters, see the files named COPYING. + +This version of gphoto2 is using the following software versions and options: +gphoto2 2.5.2.1 gcc, popt(m), exif, cdk, aa, jpeg, readline +libgphoto2 2.5.2.2 all camlibs, gcc, ltdl, EXIF +libgphoto2_port 0.10.0 gcc, ltdl, USB, serial without locking +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 70D + Version: 3-1.1.1 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button + Canon Wifi support + +Storage Devices Summary: + +Device Property Summary: +Model ID(0xd049):(read only) (type=0x6) 2147484453 +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 70D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 75% (75) + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1381592405 +Printable: Sat 12 Oct 2013 05:40:05 PM CEST +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Undefined +Choice: 0 Undefined +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/settings/movierecord +Label: Movie Recording +Type: RADIO +Current: Unknown 0 +Choice: 0 Unknown 0 +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d105,f, +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 60 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 70D +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.1.1 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484453 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 75% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-S18-55mm f/3.5-5.6 IS STM +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 023021005149 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 30 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 0 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 Unknown value 04d3 +Choice: 13 Unknown value 04d2 +Choice: 14 Unknown value 04e3 +Choice: 15 Unknown value 04f3 +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 Unknown value 14d3 +Choice: 21 Unknown value 14d2 +Choice: 22 Unknown value 14e3 +Choice: 23 Unknown value 14f3 +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 Unknown value 24d3 +Choice: 29 Unknown value 24d2 +Choice: 30 Unknown value 24e3 +Choice: 31 Unknown value 24f3 +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 Unknown value 04d3 +Choice: 13 Unknown value 04d2 +Choice: 14 Unknown value 04e3 +Choice: 15 Unknown value 04f3 +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 Unknown value 14d3 +Choice: 21 Unknown value 14d2 +Choice: 22 Unknown value 14e3 +Choice: 23 Unknown value 14f3 +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 Unknown value 24d3 +Choice: 29 Unknown value 24d2 +Choice: 30 Unknown value 24e3 +Choice: 31 Unknown value 24f3 +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 Tiny JPEG +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 Unknown value 04d3 +Choice: 13 Unknown value 04d2 +Choice: 14 Unknown value 04e3 +Choice: 15 Unknown value 04f3 +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 Unknown value 14d3 +Choice: 21 Unknown value 14d2 +Choice: 22 Unknown value 14e3 +Choice: 23 Unknown value 14f3 +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 Unknown value 24d3 +Choice: 29 Unknown value 24d2 +Choice: 30 Unknown value 24e3 +Choice: 31 Unknown value 24f3 +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 5200 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: Flash Off +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous high speed +Choice: 2 Continuous low speed +Choice: 3 Single silent +Choice: 4 Continuous silent +Choice: 5 Timer 10 sec +Choice: 6 Timer 2 sec +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: -2147482843 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 70D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 75 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. +UNKNOWN PTP Property d105 changed +UNKNOWN PTP Property d108 changed +UNKNOWN PTP Property d106 changed +UNKNOWN PTP Property d107 changed +UNKNOWN PTP Property d109 changed +UNKNOWN PTP Property d10a changed +UNKNOWN PTP Property d10b changed +UNKNOWN PTP Property d10c changed +UNKNOWN PTP Property d10d changed +UNKNOWN PTP Property d10e changed +UNKNOWN PTP Property d10f changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d114 changed +UNKNOWN PTP Property d116 changed +UNKNOWN PTP Property d119 changed +UNKNOWN PTP Property d110 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d103 changed +UNKNOWN PTP Property d104 changed +UNKNOWN PTP Property d11d changed +UNKNOWN PTP Property d111 changed +UNKNOWN PTP Property d112 changed +UNKNOWN PTP Property d113 changed +UNKNOWN PTP Property d17c changed +UNKNOWN PTP Property d17d changed +UNKNOWN PTP Property d17e changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d121 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d156 changed +UNKNOWN PTP Property d150 changed +UNKNOWN PTP Property d151 changed +UNKNOWN PTP Property d152 changed +UNKNOWN PTP Property d153 changed +UNKNOWN PTP Property d154 changed +UNKNOWN PTP Property d155 changed +UNKNOWN PTP Property d160 changed +UNKNOWN PTP Property d161 changed +UNKNOWN PTP Property d162 changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a1 changed +UNKNOWN PTP Property d1a8 changed +UNKNOWN PTP Property d1a7 changed +UNKNOWN PTP Property d1ab changed +UNKNOWN PTP Property d1b0 changed +UNKNOWN PTP Property d1b1 changed +UNKNOWN PTP Property d1b2 changed +UNKNOWN PTP Property d1b3 changed +UNKNOWN PTP Property d1b4 changed +UNKNOWN PTP Property d1b5 changed +UNKNOWN PTP Property d1b6 changed +UNKNOWN PTP Property d1a9 changed +UNKNOWN PTP Property d146 changed +UNKNOWN PTP Property d1ac changed +UNKNOWN PTP Property d1aa changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1d5 changed +UNKNOWN PTP Property d1ba changed +UNKNOWN PTP Property d1cc changed +UNKNOWN PTP Property d1bc changed +UNKNOWN PTP Property d1b8 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1d8 changed +UNKNOWN PTP Property d1b7 changed +UNKNOWN PTP Property d1cb changed +UNKNOWN PTP Property d1db changed +UNKNOWN PTP Property d1dc changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d1a4 changed +UNKNOWN PTP Property d1df changed +UNKNOWN PTP Property d1bd changed +UNKNOWN PTP Property d1c1 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1c4 changed +UNKNOWN PTP Property d1c2 changed +UNKNOWN PTP Property d1c5 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d195 changed +UNKNOWN PTP Property d196 changed +UNKNOWN PTP Property d197 changed +UNKNOWN PTP Property d198 changed +UNKNOWN PTP Property d1dd changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d199 changed +UNKNOWN PTP Property d138 changed +UNKNOWN PTP Property d139 changed +UNKNOWN PTP Property d13a changed +UNKNOWN PTP Property d13b changed +UNKNOWN PTP Property d13c changed +UNKNOWN PTP Property d13d changed +UNKNOWN PTP Property d14d changed +UNKNOWN PTP Property d19a changed +UNKNOWN PTP Property d19c changed +UNKNOWN PTP Property d177 changed +UNKNOWN PTP Property d19f changed +UNKNOWN PTP Property d178 changed +UNKNOWN PTP Property d179 changed +UNKNOWN PTP Property d17a changed +UNKNOWN PTP Property d17b changed +UNKNOWN PTP Property d1c9 changed +UNKNOWN PTP Property d1c8 changed +UNKNOWN PTP Property d175 changed +UNKNOWN PTP Property d137 changed +UNKNOWN PTP Property d1c6 changed +UNKNOWN PTP Property d115 changed +UNKNOWN PTP Property d1d0 changed +UNKNOWN PTP Property d1d1 changed +UNKNOWN PTP Property d1af changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d1c3 changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d105 changed +UNKNOWN PTP Property d108 changed +UNKNOWN PTP Property d106 changed +UNKNOWN PTP Property d107 changed +UNKNOWN PTP Property d109 changed +UNKNOWN PTP Property d10a changed +UNKNOWN PTP Property d10b changed +UNKNOWN PTP Property d10c changed +UNKNOWN PTP Property d10d changed +UNKNOWN PTP Property d10e changed +UNKNOWN PTP Property d10f changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d114 changed +UNKNOWN PTP Property d116 changed +UNKNOWN PTP Property d119 changed +UNKNOWN PTP Property d110 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d103 changed +UNKNOWN PTP Property d104 changed +UNKNOWN PTP Property d11d changed +UNKNOWN PTP Property d111 changed +UNKNOWN PTP Property d112 changed +UNKNOWN PTP Property d113 changed +UNKNOWN PTP Property d17c changed +UNKNOWN PTP Property d17d changed +UNKNOWN PTP Property d17e changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d121 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d156 changed +UNKNOWN PTP Property d150 changed +UNKNOWN PTP Property d151 changed +UNKNOWN PTP Property d152 changed +UNKNOWN PTP Property d153 changed +UNKNOWN PTP Property d154 changed +UNKNOWN PTP Property d155 changed +UNKNOWN PTP Property d160 changed +UNKNOWN PTP Property d161 changed +UNKNOWN PTP Property d162 changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a1 changed +UNKNOWN PTP Property d1a8 changed +UNKNOWN PTP Property d1a7 changed +UNKNOWN PTP Property d1ab changed +UNKNOWN PTP Property d1b0 changed +UNKNOWN PTP Property d1b1 changed +UNKNOWN PTP Property d1b2 changed +UNKNOWN PTP Property d1b3 changed +UNKNOWN PTP Property d1b4 changed +UNKNOWN PTP Property d1b5 changed +UNKNOWN PTP Property d1b6 changed +UNKNOWN PTP Property d1a9 changed +UNKNOWN PTP Property d146 changed +UNKNOWN PTP Property d1ac changed +UNKNOWN PTP Property d1aa changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1d5 changed +UNKNOWN PTP Property d1ba changed +UNKNOWN PTP Property d1cc changed +UNKNOWN PTP Property d1bc changed +UNKNOWN PTP Property d1b8 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1d8 changed +UNKNOWN PTP Property d1b7 changed +UNKNOWN PTP Property d1cb changed +UNKNOWN PTP Property d1db changed +UNKNOWN PTP Property d1dc changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d1a4 changed +UNKNOWN PTP Property d1df changed +UNKNOWN PTP Property d1bd changed +UNKNOWN PTP Property d1c1 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1c4 changed +UNKNOWN PTP Property d1c2 changed +UNKNOWN PTP Property d1c5 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d195 changed +UNKNOWN PTP Property d196 changed +UNKNOWN PTP Property d197 changed +UNKNOWN PTP Property d198 changed +UNKNOWN PTP Property d1dd changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d199 changed +UNKNOWN PTP Property d138 changed +UNKNOWN PTP Property d139 changed +UNKNOWN PTP Property d13a changed +UNKNOWN PTP Property d13b changed +UNKNOWN PTP Property d13c changed +UNKNOWN PTP Property d13d changed +UNKNOWN PTP Property d14d changed +UNKNOWN PTP Property d19a changed +UNKNOWN PTP Property d19c changed +UNKNOWN PTP Property d177 changed +UNKNOWN PTP Property d19f changed +UNKNOWN PTP Property d178 changed +UNKNOWN PTP Property d179 changed +UNKNOWN PTP Property d17a changed +UNKNOWN PTP Property d17b changed +UNKNOWN PTP Property d1c9 changed +UNKNOWN PTP Property d1c8 changed +UNKNOWN PTP Property d175 changed +UNKNOWN PTP Property d137 changed +UNKNOWN PTP Property d1c6 changed +UNKNOWN PTP Property d115 changed +UNKNOWN PTP Property d1d0 changed +UNKNOWN PTP Property d1d1 changed +UNKNOWN PTP Property d1af changed +ERROR: Could not capture image. +ERROR: Could not capture. + +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 70D + device version: 3-1.1.1 + serial number: 'bea509d21c6f43c7a6e46f8c4e425a0f' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1014 + 0x1015 + 0x1016 + 0x91d5 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9141 + 0x9142 + 0x9143 + 0x9144 + 0x9145 + 0x9140 + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x912d + 0x912e + 0x912f + 0x912c + 0x9130 + 0x9131 + 0x9132 + 0x9133 + 0x9134 + 0x912b + 0x9135 + 0x9136 + 0x9137 + 0x9138 + 0x9139 + 0x913a + 0x913b + 0x913c + 0x913d + 0x913f + 0x91da + 0x91db + 0x91dc + 0x91dd + 0x91de + 0x91d8 + 0x91d9 + 0x91d7 + 0x913e + 0x9113 + 0x9114 + 0x9115 + 0x9116 + 0x915b + 0x91c0 + 0x91c1 + 0x91c2 + 0x91c3 + 0x91c4 + 0x91c5 + 0x91c6 + 0x91c7 + 0x91c8 + 0x91c9 + 0x91ca + 0x91cb + 0x91cc + 0x91ce + 0x91cf + 0x91d0 + 0x91d1 + 0x91d2 + 0x91e1 + 0x91e2 + 0x91e3 + 0x91e4 + 0x91e5 + 0x91e6 + 0x91e7 + 0x91e8 + 0x91e9 + 0x91ea + 0x91eb + 0x91ec + 0x91ed + 0x91ee + 0x91ef + 0x91f8 + 0x91f9 + 0x91f2 + 0x91f3 + 0x91f4 + 0x91f7 + 0x91df + 0x91fb + 0x91fc + 0x91fd + 0x9122 + 0x9123 + 0x9124 + 0x91f5 + 0x91f6 + 0x9033 + 0x9068 + 0x9069 + 0x906a + 0x906b + 0x906c + 0x906d + 0x906e + 0x906f + 0x902f + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905f +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd049 + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + +event 0: EOS prop d105 info record, datasize is 4 +event 0: currentvalue of d105 is f +event 1: EOS prop d108 info record, datasize is 4 +event 1: currentvalue of d108 is 2 +event 2: EOS prop d106 info record, datasize is 4 +event 2: currentvalue of d106 is 0 +event 3: EOS prop d107 info record, datasize is 4 +event 3: currentvalue of d107 is 3 +event 4: EOS prop d109 info record, datasize is 4 +event 4: currentvalue of d109 is 0 +event 5: EOS prop d10a info record, datasize is 4 +event 5: Unknown EOS property d10a, datasize is 4, using uint32 + 0: 0x 1450 +event 5: currentvalue of d10a is 1450 +event 6: EOS prop d10b info record, datasize is 4 +event 6: currentvalue of d10b is 0 +event 7: EOS prop d10c info record, datasize is 4 +event 7: currentvalue of d10c is 0 +event 8: EOS prop d10d info record, datasize is 4 +event 8: currentvalue of d10d is 0 +event 9: EOS prop d10e info record, datasize is 4 +event 9: currentvalue of d10e is 0 +event 10: EOS prop d10f info record, datasize is 4 +event 10: currentvalue of d10f is 1 +event 11: EOS prop d11b info record, datasize is 4 +event 11: currentvalue of d11b is 0 +event 12: EOS prop d114 info record, datasize is 4 +event 12: currentvalue of d114 is 3c +event 13: EOS prop d116 info record, datasize is 4 +event 13: currentvalue of d116 is 80000325 +event 14: EOS prop d119 info record, datasize is 4 +event 14: currentvalue of d119 is 100 +event 15: EOS prop d110 info record, datasize is 4 +event 15: currentvalue of d110 is 87 +event 16: EOS prop d101 info record, datasize is 4 +event 16: currentvalue of d101 is 30 +event 17: EOS prop d102 info record, datasize is 4 +event 17: currentvalue of d102 is 70 +event 18: EOS prop d103 info record, datasize is 4 +event 18: currentvalue of d103 is 0 +event 19: EOS prop d104 info record, datasize is 4 +event 19: currentvalue of d104 is 0 +event 20: EOS prop d11d info record, datasize is 4 +event 20: currentvalue of d11d is 0 +event 21: EOS prop d111 info record, datasize is 4 +event 21: currentvalue of d111 is 4 +event 22: EOS prop d112 info record, datasize is 4 +event 22: currentvalue of d112 is 0 +event 23: EOS prop d113 info record, datasize is 4 +event 23: currentvalue of d113 is 52596d99 +event 24: EOS prop d17c info record, datasize is 4 +event 24: Unknown EOS property d17c, datasize is 4 + 0: 79 + 1: 51 + 2: 59 + 3: 52 +event 25: EOS prop d17d info record, datasize is 12 +event 25: Unknown EOS property d17d, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 13 + 5: 00 + 6: 00 + 7: 00 + 8: 3c + 9: 00 + 10: 00 + 11: 00 +event 26: EOS prop d17e info record, datasize is 4 +event 26: Unknown EOS property d17e, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 27: EOS prop d120 info record, datasize is 20 +event 27: decoded imageformat, currentvalue of d120 is 300 +event 28: EOS prop d121 info record, datasize is 20 +event 28: decoded imageformat, currentvalue of d121 is 300 +event 29: EOS prop d122 info record, datasize is 20 +event 29: decoded imageformat, currentvalue of d122 is 300 +event 30: EOS prop d156 info record, datasize is 28 +event 30: Unknown EOS property d156, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 31: EOS prop d150 info record, datasize is 28 +event 31: Unknown EOS property d150, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 32: EOS prop d151 info record, datasize is 28 +event 32: Unknown EOS property d151, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 02 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 33: EOS prop d152 info record, datasize is 28 +event 33: Unknown EOS property d152, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 04 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 34: EOS prop d153 info record, datasize is 28 +event 34: Unknown EOS property d153, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 35: EOS prop d154 info record, datasize is 28 +event 35: Unknown EOS property d154, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 36: EOS prop d155 info record, datasize is 28 +event 36: Unknown EOS property d155, datasize is 28 + 0: 1c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 +event 37: EOS prop d160 info record, datasize is 32 +event 37: Unknown EOS property d160, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 38: EOS prop d161 info record, datasize is 32 +event 38: Unknown EOS property d161, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 39: EOS prop d162 info record, datasize is 32 +event 39: Unknown EOS property d162, datasize is 32 + 0: 20 + 1: 00 + 2: 00 + 3: 00 + 4: 87 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 03 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 +event 40: EOS prop d11c info record, datasize is 4 +event 40: currentvalue of d11c is 2 +event 41: EOS prop d1a0 info record, datasize is 96 +event 41: decoded custom function, currentvalue of d1a0 is 10,c189,d105,f, +event 42: EOS prop d1a0 info record, datasize is 240 +event 42: currentvalue of d1a0 is ð +event 42: decoded custom function, currentvalue of d1a0 is 10,c189,d105,f, +event 43: EOS prop d1a0 info record, datasize is 144 +event 43: currentvalue of d1a0 is  +event 43: decoded custom function, currentvalue of d1a0 is 10,c189,d105,f, +event 44: EOS prop d1a1 info record, datasize is 8 +event 44: Unknown EOS property d1a1, datasize is 8 + 0: 08 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 +event 45: EOS prop d1a8 info record, datasize is 4 +event 45: Unknown EOS property d1a8, datasize is 4, using uint32 + 0: 0x 1 +event 45: currentvalue of d1a8 is 1 +event 46: EOS prop d1a7 info record, datasize is 40 +event 46: Unknown EOS property d1a7, datasize is 40 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 +event 47: EOS prop d1ab info record, datasize is 4 +event 47: Unknown EOS property d1ab, datasize is 4, using uint32 + 0: 0x 0 +event 47: currentvalue of d1ab is 0 +event 48: EOS prop d1b0 info record, datasize is 4 +event 48: currentvalue of d1b0 is 0 +event 49: EOS prop d1b1 info record, datasize is 4 +event 49: currentvalue of d1b1 is 1 +event 50: EOS prop d1b2 info record, datasize is 4 +event 50: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 50: currentvalue of d1b2 is 0 +event 51: EOS prop d1b3 info record, datasize is 4 +event 51: Unknown EOS property d1b3, datasize is 4, using uint32 + 0: 0x 0 +event 51: currentvalue of d1b3 is 0 +event 52: EOS prop d1b4 info record, datasize is 4 +event 52: Unknown EOS property d1b4, datasize is 4, using uint32 + 0: 0x 0 +event 52: currentvalue of d1b4 is 0 +event 53: EOS prop d1b5 info record, datasize is 48 +event 53: Unknown EOS property d1b5, datasize is 48, using uint32 + 0: 0x 30 + 1: 0x 0 + 2: 0x5d4d9400 + 3: 0x 0 + 4: 0x 0 + 5: 0x 0 + 6: 0x70167515 + 7: 0x 0 + 8: 0x 0 + 9: 0x 0 + 10: 0x 4000400 + 11: 0x 4000400 +event 53: currentvalue of d1b5 is 30 +event 54: EOS prop d1b6 info record, datasize is 4 +event 54: Unknown EOS property d1b6, datasize is 4, using uint32 + 0: 0x 1450 +event 54: currentvalue of d1b6 is 1450 +event 55: EOS prop d1a9 info record, datasize is 4 +event 55: currentvalue of d1a9 is 2 +event 56: EOS prop d146 info record, datasize is 48 +event 56: Unknown EOS property d146, datasize is 48 + 0: 30 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: f4 + 41: 01 + 42: 00 + 43: 04 + 44: 00 + 45: 04 + 46: 74 + 47: 02 +event 57: EOS prop d1ac info record, datasize is 4 +event 57: currentvalue of d1ac is 1e +event 58: EOS prop d1aa info record, datasize is 4 +event 58: Unknown EOS property d1aa, datasize is 4, using uint32 + 0: 0x 0 +event 58: currentvalue of d1aa is 0 +event 59: EOS prop d11e info record, datasize is 4 +event 59: currentvalue of d11e is 20000 +event 60: EOS prop d1d9 info record, datasize is 4 +event 60: currentvalue of d1d9 is 0 +event 61: EOS prop d1d5 info record, datasize is 4 +event 61: Unknown EOS property d1d5, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 62: EOS prop d1ba info record, datasize is 4 +event 62: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 2 +event 62: currentvalue of d1ba is 2 +event 63: EOS prop d1cc info record, datasize is 36 +event 63: Unknown EOS property d1cc, datasize is 36 + 0: 24 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 19 + 13: 00 + 14: 00 + 15: 00 + 16: 0c + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 +event 64: EOS prop d1bc info record, datasize is 4 +event 64: Unknown EOS property d1bc, datasize is 4, using uint32 + 0: 0x 1 +event 64: currentvalue of d1bc is 1 +event 65: EOS prop d1b8 info record, datasize is 4 +event 65: Unknown EOS property d1b8, datasize is 4, using uint32 + 0: 0x 0 +event 65: currentvalue of d1b8 is 0 +event 66: EOS prop d1d3 info record, datasize is 282 +event 66: Unknown EOS property d1d3, datasize is 282 + 0: 1a + 1: 01 + 2: 00 + 3: 00 + 4: 16 + 5: 01 + 6: 04 + 7: 00 + 8: 1f + 9: 00 + 10: 13 + 11: 00 + 12: 60 + 13: 15 + 14: 40 + 15: 0e + 16: 60 + 17: 15 + 18: 40 + 19: 0e + 20: e5 + 21: 00 + 22: e5 + 23: 00 + 24: e5 + 25: 00 + 26: e5 + 27: 00 + 28: e5 + 29: 00 + 30: e5 + 31: 00 + 32: e5 + 33: 00 + 34: e5 + 35: 00 + 36: e5 + 37: 00 + 38: e5 + 39: 00 + 40: e5 + 41: 00 + 42: e5 + 43: 00 + 44: e5 + 45: 00 + 46: e5 + 47: 00 + 48: e5 + 49: 00 + 50: e5 + 51: 00 + 52: e5 + 53: 00 + 54: e5 + 55: 00 + 56: e5 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 00 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 15 + 83: 01 + 84: 15 + 85: 01 + 86: 15 + 87: 01 + 88: 15 + 89: 01 + 90: 15 + 91: 01 + 92: 15 + 93: 01 + 94: 15 + 95: 01 + 96: 15 + 97: 01 + 98: 15 + 99: 01 + 100: 15 + 101: 01 + 102: 15 + 103: 01 + 104: 15 + 105: 01 + 106: 15 + 107: 01 + 108: 15 + 109: 01 + 110: 15 + 111: 01 + 112: 15 + 113: 01 + 114: 15 + 115: 01 + 116: 15 + 117: 01 + 118: 15 + 119: 01 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 00 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 8d + 145: fa + 146: 7f + 147: fc + 148: 7f + 149: fc + 150: 7f + 151: fc + 152: 71 + 153: fe + 154: 71 + 155: fe + 156: 71 + 157: fe + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 00 + 165: 00 + 166: 00 + 167: 00 + 168: 8f + 169: 01 + 170: 8f + 171: 01 + 172: 8f + 173: 01 + 174: 81 + 175: 03 + 176: 81 + 177: 03 + 178: 81 + 179: 03 + 180: 73 + 181: 05 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 00 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 91 + 209: 01 + 210: 00 + 211: 00 + 212: 6f + 213: fe + 214: 91 + 215: 01 + 216: 00 + 217: 00 + 218: 6f + 219: fe + 220: f3 + 221: 02 + 222: 91 + 223: 01 + 224: 00 + 225: 00 + 226: 6f + 227: fe + 228: 0d + 229: fd + 230: 91 + 231: 01 + 232: 00 + 233: 00 + 234: 6f + 235: fe + 236: 91 + 237: 01 + 238: 00 + 239: 00 + 240: 6f + 241: fe + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 00 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: ff + 273: ff + 274: 07 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: ff + 281: ff +event 67: EOS prop d1d8 info record, datasize is 64 +event 67: currentvalue of d1d8 is EF-S18-55mm f/3.5-5.6 IS STM +event 68: EOS prop d1b7 info record, datasize is 4 +event 68: Unknown EOS property d1b7, datasize is 4, using uint32 + 0: 0x 0 +event 68: currentvalue of d1b7 is 0 +event 69: EOS prop d1cb info record, datasize is 52 +event 69: Unknown EOS property d1cb, datasize is 52 + 0: 34 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 03 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 03 + 19: 80 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 03 + 25: 00 + 26: 00 + 27: 00 + 28: 48 + 29: 00 + 30: 00 + 31: 00 + 32: 49 + 33: 00 + 34: 03 + 35: 80 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 03 + 41: 00 + 42: 00 + 43: 00 + 44: 4b + 45: 00 + 46: 00 + 47: 00 + 48: 4c + 49: 00 + 50: 03 + 51: 80 +event 70: EOS prop d1db info record, datasize is 14 +event 70: Unknown EOS property d1db, datasize is 14 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 03 + 5: 00 + 6: 00 + 7: 00 + 8: 2f + 9: 00 + 10: 00 + 11: 00 + 12: 28 + 13: 00 +event 71: EOS prop d1dc info record, datasize is 4 +event 71: currentvalue of d1dc is 1 +event 72: EOS prop d1a3 info record, datasize is 4 +event 72: Unknown EOS property d1a3, datasize is 4, using uint32 + 0: 0x 0 +event 72: currentvalue of d1a3 is 0 +event 73: EOS prop d1a4 info record, datasize is 484 +event 73: Unknown EOS property d1a4, datasize is 484 + 0: e4 + 1: 01 + 2: 00 + 3: 00 + 4: 30 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 31 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 00 + 45: 00 + 46: 00 + 47: 00 + 48: 00 + 49: 00 + 50: 00 + 51: 00 + 52: 00 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 + 60: 00 + 61: 00 + 62: 00 + 63: 00 + 64: 00 + 65: 00 + 66: 00 + 67: 00 + 68: 32 + 69: 00 + 70: 00 + 71: 00 + 72: 00 + 73: 00 + 74: 00 + 75: 00 + 76: 00 + 77: 00 + 78: 00 + 79: 00 + 80: 00 + 81: 00 + 82: 00 + 83: 00 + 84: 00 + 85: 00 + 86: 00 + 87: 00 + 88: 00 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 00 + 97: 00 + 98: 00 + 99: 00 + 100: 33 + 101: 00 + 102: 00 + 103: 00 + 104: 00 + 105: 00 + 106: 00 + 107: 00 + 108: 00 + 109: 00 + 110: 00 + 111: 00 + 112: 00 + 113: 00 + 114: 00 + 115: 00 + 116: 00 + 117: 00 + 118: 00 + 119: 00 + 120: 00 + 121: 00 + 122: 00 + 123: 00 + 124: 00 + 125: 00 + 126: 00 + 127: 00 + 128: 00 + 129: 00 + 130: 00 + 131: 00 + 132: 34 + 133: 00 + 134: 00 + 135: 00 + 136: 00 + 137: 00 + 138: 00 + 139: 00 + 140: 00 + 141: 00 + 142: 00 + 143: 00 + 144: 00 + 145: 00 + 146: 00 + 147: 00 + 148: 00 + 149: 00 + 150: 00 + 151: 00 + 152: 00 + 153: 00 + 154: 00 + 155: 00 + 156: 00 + 157: 00 + 158: 00 + 159: 00 + 160: 00 + 161: 00 + 162: 00 + 163: 00 + 164: 35 + 165: 00 + 166: 00 + 167: 00 + 168: 00 + 169: 00 + 170: 00 + 171: 00 + 172: 00 + 173: 00 + 174: 00 + 175: 00 + 176: 00 + 177: 00 + 178: 00 + 179: 00 + 180: 00 + 181: 00 + 182: 00 + 183: 00 + 184: 00 + 185: 00 + 186: 00 + 187: 00 + 188: 00 + 189: 00 + 190: 00 + 191: 00 + 192: 00 + 193: 00 + 194: 00 + 195: 00 + 196: 36 + 197: 00 + 198: 00 + 199: 00 + 200: 00 + 201: 00 + 202: 00 + 203: 00 + 204: 00 + 205: 00 + 206: 00 + 207: 00 + 208: 00 + 209: 00 + 210: 00 + 211: 00 + 212: 00 + 213: 00 + 214: 00 + 215: 00 + 216: 00 + 217: 00 + 218: 00 + 219: 00 + 220: 00 + 221: 00 + 222: 00 + 223: 00 + 224: 00 + 225: 00 + 226: 00 + 227: 00 + 228: 37 + 229: 00 + 230: 00 + 231: 00 + 232: 00 + 233: 00 + 234: 00 + 235: 00 + 236: 00 + 237: 00 + 238: 00 + 239: 00 + 240: 00 + 241: 00 + 242: 00 + 243: 00 + 244: 00 + 245: 00 + 246: 00 + 247: 00 + 248: 00 + 249: 00 + 250: 00 + 251: 00 + 252: 00 + 253: 00 + 254: 00 + 255: 00 + 256: 00 + 257: 00 + 258: 00 + 259: 00 + 260: 38 + 261: 00 + 262: 00 + 263: 00 + 264: 00 + 265: 00 + 266: 00 + 267: 00 + 268: 00 + 269: 00 + 270: 00 + 271: 00 + 272: 00 + 273: 00 + 274: 00 + 275: 00 + 276: 00 + 277: 00 + 278: 00 + 279: 00 + 280: 00 + 281: 00 + 282: 00 + 283: 00 + 284: 00 + 285: 00 + 286: 00 + 287: 00 + 288: 00 + 289: 00 + 290: 00 + 291: 00 + 292: 39 + 293: 00 + 294: 00 + 295: 00 + 296: 00 + 297: 00 + 298: 00 + 299: 00 + 300: 00 + 301: 00 + 302: 00 + 303: 00 + 304: 00 + 305: 00 + 306: 00 + 307: 00 + 308: 00 + 309: 00 + 310: 00 + 311: 00 + 312: 00 + 313: 00 + 314: 00 + 315: 00 + 316: 00 + 317: 00 + 318: 00 + 319: 00 + 320: 00 + 321: 00 + 322: 00 + 323: 00 + 324: 31 + 325: 30 + 326: 00 + 327: 00 + 328: 00 + 329: 00 + 330: 00 + 331: 00 + 332: 00 + 333: 00 + 334: 00 + 335: 00 + 336: 00 + 337: 00 + 338: 00 + 339: 00 + 340: 00 + 341: 00 + 342: 00 + 343: 00 + 344: 00 + 345: 00 + 346: 00 + 347: 00 + 348: 00 + 349: 00 + 350: 00 + 351: 00 + 352: 00 + 353: 00 + 354: 00 + 355: 00 + 356: 31 + 357: 31 + 358: 00 + 359: 00 + 360: 00 + 361: 00 + 362: 00 + 363: 00 + 364: 00 + 365: 00 + 366: 00 + 367: 00 + 368: 00 + 369: 00 + 370: 00 + 371: 00 + 372: 00 + 373: 00 + 374: 00 + 375: 00 + 376: 00 + 377: 00 + 378: 00 + 379: 00 + 380: 00 + 381: 00 + 382: 00 + 383: 00 + 384: 00 + 385: 00 + 386: 00 + 387: 00 + 388: 31 + 389: 32 + 390: 00 + 391: 00 + 392: 00 + 393: 00 + 394: 00 + 395: 00 + 396: 00 + 397: 00 + 398: 00 + 399: 00 + 400: 00 + 401: 00 + 402: 00 + 403: 00 + 404: 00 + 405: 00 + 406: 00 + 407: 00 + 408: 00 + 409: 00 + 410: 00 + 411: 00 + 412: 00 + 413: 00 + 414: 00 + 415: 00 + 416: 00 + 417: 00 + 418: 00 + 419: 00 + 420: 31 + 421: 33 + 422: 00 + 423: 00 + 424: 00 + 425: 00 + 426: 00 + 427: 00 + 428: 00 + 429: 00 + 430: 00 + 431: 00 + 432: 00 + 433: 00 + 434: 00 + 435: 00 + 436: 00 + 437: 00 + 438: 00 + 439: 00 + 440: 00 + 441: 00 + 442: 00 + 443: 00 + 444: 00 + 445: 00 + 446: 00 + 447: 00 + 448: 00 + 449: 00 + 450: 00 + 451: 00 + 452: 31 + 453: 34 + 454: 00 + 455: 00 + 456: 00 + 457: 00 + 458: 00 + 459: 00 + 460: 00 + 461: 00 + 462: 00 + 463: 00 + 464: 00 + 465: 00 + 466: 00 + 467: 00 + 468: 00 + 469: 00 + 470: 00 + 471: 00 + 472: 00 + 473: 00 + 474: 00 + 475: 00 + 476: 00 + 477: 00 + 478: 00 + 479: 00 + 480: 00 + 481: 00 + 482: 00 + 483: 00 +event 74: EOS prop d1df info record, datasize is 4 +event 74: Unknown EOS property d1df, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 75: EOS prop d1bd info record, datasize is 4 +event 75: Unknown EOS property d1bd, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 76: EOS prop d1c1 info record, datasize is 4 +event 76: Unknown EOS property d1c1, datasize is 4, using uint32 + 0: 0x4d010000 +event 76: currentvalue of d1c1 is 4d010000 +event 77: EOS prop d1c0 info record, datasize is 4 +event 77: Unknown EOS property d1c0, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 78: EOS prop d1bf info record, datasize is 4 +event 78: Unknown EOS property d1bf, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 79: EOS prop d1c4 info record, datasize is 4 +event 79: Unknown EOS property d1c4, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 80: EOS prop d1c2 info record, datasize is 4 +event 80: Unknown EOS property d1c2, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 81: EOS prop d1c5 info record, datasize is 4 +event 81: Unknown EOS property d1c5, datasize is 4 + 0: 0f + 1: 00 + 2: 00 + 3: 00 +event 82: EOS prop d194 info record, datasize is 4 +event 82: Unknown EOS property d194, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 83: EOS prop d195 info record, datasize is 4 +event 83: Unknown EOS property d195, datasize is 4 + 0: 02 + 1: 00 + 2: 00 + 3: 00 +event 84: EOS prop d196 info record, datasize is 4 +event 84: Unknown EOS property d196, datasize is 4 + 0: 2f + 1: 00 + 2: 00 + 3: 00 +event 85: EOS prop d197 info record, datasize is 4 +event 85: Unknown EOS property d197, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 86: EOS prop d198 info record, datasize is 4 +event 86: Unknown EOS property d198, datasize is 4 + 0: ff + 1: 00 + 2: 00 + 3: 00 +event 87: EOS prop d1dd info record, datasize is 4 +event 87: currentvalue of d1dd is 1032 +event 88: EOS prop d1c7 info record, datasize is 4 +event 88: Unknown EOS property d1c7, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 89: EOS prop d199 info record, datasize is 4 +event 89: Unknown EOS property d199, datasize is 4 + 0: 08 + 1: 00 + 2: 00 + 3: 00 +event 90: EOS prop d138 info record, datasize is 4 +event 90: Unknown EOS property d138, datasize is 4 + 0: 0f + 1: 00 + 2: 00 + 3: 00 +event 91: EOS prop d139 info record, datasize is 12 +event 91: Unknown EOS property d139, datasize is 12 + 0: 00 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 92: EOS prop d13a info record, datasize is 4 +event 92: Unknown EOS property d13a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 93: EOS prop d13b info record, datasize is 4 +event 93: Unknown EOS property d13b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 94: EOS prop d13c info record, datasize is 4 +event 94: Unknown EOS property d13c, datasize is 4 + 0: 07 + 1: 00 + 2: 00 + 3: 00 +event 95: EOS prop d13d info record, datasize is 24 +event 95: Unknown EOS property d13d, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 01 + 21: 00 + 22: 00 + 23: 00 +event 96: EOS prop d14d info record, datasize is 4 +event 96: Unknown EOS property d14d, datasize is 4 + 0: 3c + 1: 00 + 2: 00 + 3: 00 +event 97: EOS prop d19a info record, datasize is 4 +event 97: Unknown EOS property d19a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 98: EOS prop d19c info record, datasize is 4 +event 98: Unknown EOS property d19c, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 99: EOS prop d177 info record, datasize is 24 +event 99: Unknown EOS property d177, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 100: EOS prop d19f info record, datasize is 4 +event 100: Unknown EOS property d19f, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 101: EOS prop d178 info record, datasize is 4 +event 101: Unknown EOS property d178, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 102: EOS prop d179 info record, datasize is 4 +event 102: Unknown EOS property d179, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 103: EOS prop d17a info record, datasize is 4 +event 103: Unknown EOS property d17a, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 104: EOS prop d17b info record, datasize is 4 +event 104: Unknown EOS property d17b, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 105: EOS prop d1c9 info record, datasize is 4 +event 105: Unknown EOS property d1c9, datasize is 4 + 0: 01 + 1: 00 + 2: 00 + 3: 00 +event 106: EOS prop d1c8 info record, datasize is 4 +event 106: Unknown EOS property d1c8, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 107: EOS prop d175 info record, datasize is 4 +event 107: Unknown EOS property d175, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 108: EOS prop d137 info record, datasize is 4 +event 108: Unknown EOS property d137, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 109: EOS prop d1c6 info record, datasize is 4 +event 109: Unknown EOS property d1c6, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 110: EOS prop d105 desc record, datasize 0, propxtype 1 +event 110: propxtype is 1 for d105, unhandled. +event 111: EOS prop d108 desc record, datasize 0, propxtype 3 +event 112: EOS prop d106 desc record, datasize 28, propxtype 3 +event 112: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 7. +event 112: suppval[0] of d106 is 0x0. +event 112: suppval[1] of d106 is 0x4. +event 112: suppval[2] of d106 is 0x5. +event 112: suppval[3] of d106 is 0x13. +event 112: suppval[4] of d106 is 0x14. +event 112: suppval[5] of d106 is 0x10. +event 112: suppval[6] of d106 is 0x11. +event 113: EOS prop d107 desc record, datasize 0, propxtype 3 +event 114: EOS prop d109 desc record, datasize 0, propxtype 3 +event 115: EOS prop d10a desc record, datasize 304, propxtype 3 +event 115: propxtype is 3, prop is 0xd10a, data type is 0x0006, propxcnt is 76. +event 115: suppval[0] of d10a is 0x9c4. +event 115: suppval[1] of d10a is 0xa28. +event 115: suppval[2] of d10a is 0xa8c. +event 115: suppval[3] of d10a is 0xaf0. +event 115: suppval[4] of d10a is 0xb54. +event 115: suppval[5] of d10a is 0xbb8. +event 115: suppval[6] of d10a is 0xc1c. +event 115: suppval[7] of d10a is 0xc80. +event 115: suppval[8] of d10a is 0xce4. +event 115: suppval[9] of d10a is 0xd48. +event 115: suppval[10] of d10a is 0xdac. +event 115: suppval[11] of d10a is 0xe10. +event 115: suppval[12] of d10a is 0xe74. +event 115: suppval[13] of d10a is 0xed8. +event 115: suppval[14] of d10a is 0xf3c. +event 115: suppval[15] of d10a is 0xfa0. +event 115: suppval[16] of d10a is 0x1004. +event 115: suppval[17] of d10a is 0x1068. +event 115: suppval[18] of d10a is 0x10cc. +event 115: suppval[19] of d10a is 0x1130. +event 115: suppval[20] of d10a is 0x1194. +event 115: suppval[21] of d10a is 0x11f8. +event 115: suppval[22] of d10a is 0x125c. +event 115: suppval[23] of d10a is 0x12c0. +event 115: suppval[24] of d10a is 0x1324. +event 115: suppval[25] of d10a is 0x1388. +event 115: suppval[26] of d10a is 0x13ec. +event 115: suppval[27] of d10a is 0x1450. +event 115: suppval[28] of d10a is 0x14b4. +event 115: suppval[29] of d10a is 0x1518. +event 115: suppval[30] of d10a is 0x157c. +event 115: suppval[31] of d10a is 0x15e0. +event 115: suppval[32] of d10a is 0x1644. +event 115: suppval[33] of d10a is 0x16a8. +event 115: suppval[34] of d10a is 0x170c. +event 115: suppval[35] of d10a is 0x1770. +event 115: suppval[36] of d10a is 0x17d4. +event 115: suppval[37] of d10a is 0x1838. +event 115: suppval[38] of d10a is 0x189c. +event 115: suppval[39] of d10a is 0x1900. +event 115: suppval[40] of d10a is 0x1964. +event 115: suppval[41] of d10a is 0x19c8. +event 115: suppval[42] of d10a is 0x1a2c. +event 115: suppval[43] of d10a is 0x1a90. +event 115: suppval[44] of d10a is 0x1af4. +event 115: suppval[45] of d10a is 0x1b58. +event 115: suppval[46] of d10a is 0x1bbc. +event 115: suppval[47] of d10a is 0x1c20. +event 115: suppval[48] of d10a is 0x1c84. +event 115: suppval[49] of d10a is 0x1ce8. +event 115: suppval[50] of d10a is 0x1d4c. +event 115: suppval[51] of d10a is 0x1db0. +event 115: suppval[52] of d10a is 0x1e14. +event 115: suppval[53] of d10a is 0x1e78. +event 115: suppval[54] of d10a is 0x1edc. +event 115: suppval[55] of d10a is 0x1f40. +event 115: suppval[56] of d10a is 0x1fa4. +event 115: suppval[57] of d10a is 0x2008. +event 115: suppval[58] of d10a is 0x206c. +event 115: suppval[59] of d10a is 0x20d0. +event 115: suppval[60] of d10a is 0x2134. +event 115: suppval[61] of d10a is 0x2198. +event 115: suppval[62] of d10a is 0x21fc. +event 115: suppval[63] of d10a is 0x2260. +event 115: suppval[64] of d10a is 0x22c4. +event 115: suppval[65] of d10a is 0x2328. +event 115: suppval[66] of d10a is 0x238c. +event 115: suppval[67] of d10a is 0x23f0. +event 115: suppval[68] of d10a is 0x2454. +event 115: suppval[69] of d10a is 0x24b8. +event 115: suppval[70] of d10a is 0x251c. +event 115: suppval[71] of d10a is 0x2580. +event 115: suppval[72] of d10a is 0x25e4. +event 115: suppval[73] of d10a is 0x2648. +event 115: suppval[74] of d10a is 0x26ac. +event 115: suppval[75] of d10a is 0x2710. +event 116: EOS prop d10b desc record, datasize 0, propxtype 3 +event 117: EOS prop d10c desc record, datasize 0, propxtype 3 +event 118: EOS prop d10d desc record, datasize 0, propxtype 3 +event 119: EOS prop d10e desc record, datasize 0, propxtype 3 +event 120: EOS prop d10f desc record, datasize 0, propxtype 3 +event 121: EOS prop d11b desc record, datasize 0, propxtype 1 +event 121: propxtype is 1 for d11b, unhandled. +event 122: EOS prop d114 desc record, datasize 0, propxtype 1 +event 122: propxtype is 1 for d114, unhandled. +event 123: EOS prop d116 desc record, datasize 0, propxtype 1 +event 123: propxtype is 1 for d116, unhandled. +event 124: EOS prop d119 desc record, datasize 0, propxtype 1 +event 124: propxtype is 1 for d119, unhandled. +event 125: EOS prop d11a desc record, datasize 0, propxtype 1 +event 125: propdesc d11a, default value not found. +event 126: EOS prop d110 desc record, datasize 0, propxtype 3 +event 127: EOS prop d115 desc record, datasize 0, propxtype 7 +event 127: propdesc d115, default value not found. +event 128: EOS prop d101 desc record, datasize 0, propxtype 3 +event 129: EOS prop d102 desc record, datasize 0, propxtype 3 +event 130: EOS prop d103 desc record, datasize 0, propxtype 3 +event 131: EOS prop d104 desc record, datasize 0, propxtype 3 +event 132: EOS prop d11d desc record, datasize 0, propxtype 1 +event 132: propxtype is 1 for d11d, unhandled. +event 133: EOS prop d111 desc record, datasize 0, propxtype 1 +event 133: propxtype is 1 for d111, unhandled. +event 134: EOS prop d112 desc record, datasize 0, propxtype 1 +event 134: propxtype is 1 for d112, unhandled. +event 135: EOS prop d113 desc record, datasize 0, propxtype 7 +event 135: propxtype is 7 for d113, unhandled. +event 136: EOS prop d17c desc record, datasize 0, propxtype 7 +event 136: propxtype is 7 for d17c, unhandled. +event 137: EOS prop d17d desc record, datasize 396, propxtype 3 +event 137: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +event 137: data type 0x0000 of d17d unhandled, raw values: + 0: 0x c + 1: 0x 21 + 2: 0x 30c + 3: 0x c + 4: 0x 1 + 5: 0x 2fd + 6: 0x c + 7: 0x 2 + 8: 0x 2d0 + 9: 0x c + 10: 0x 3 + 11: 0x 294 + 12: 0x c + 13: 0x 4 + 14: 0x 258 + 15: 0x c + 16: 0x 5 + 17: 0x 23a + 18: 0x c + 19: 0x 6 + 20: 0x 21c + 21: 0x c + 22: 0x 7 + 23: 0x 1e0 + 24: 0x c + 25: 0x 8 + 26: 0x 1a4 + 27: 0x c + 28: 0x 9 + 29: 0x 186 + 30: 0x c + 31: 0x a + 32: 0x 168 + 33: 0x c + 34: 0x b + 35: 0x 159 + 36: 0x c + 37: 0x c + 38: 0x 14a + 39: 0x c + 40: 0x d + 41: 0x 12c + 42: 0x c + 43: 0x e + 44: 0x 10e + 45: 0x c + 46: 0x f + 47: 0x f0 + 48: 0x c + 49: 0x 10 + 50: 0x d2 + 51: 0x c + 52: 0x 11 + 53: 0x b4 + 54: 0x c + 55: 0x 12 + 56: 0x 78 + 57: 0x c + 58: 0x 13 + 59: 0x 3c + 60: 0x c + 61: 0x 14 + 62: 0x 0 + 63: 0x c + 64: 0x 15 + 65: 0xffffffc4 + 66: 0x c + 67: 0x 16 + 68: 0xffffff88 + 69: 0x c + 70: 0x 17 + 71: 0xffffff4c + 72: 0x c + 73: 0x 18 + 74: 0xffffff2e + 75: 0x c + 76: 0x 19 + 77: 0xffffff10 + 78: 0x c + 79: 0x 1a + 80: 0xffffff10 + 81: 0x c + 82: 0x 1b + 83: 0xfffffed4 + 84: 0x c + 85: 0x 1c + 86: 0xfffffe98 + 87: 0x c + 88: 0x 1d + 89: 0xfffffe5c + 90: 0x c + 91: 0x 1e + 92: 0xfffffe20 + 93: 0x c + 94: 0x 1f + 95: 0xfffffde4 + 96: 0x c + 97: 0x 20 + 98: 0xfffffda8 +event 138: EOS prop d17e desc record, datasize 8, propxtype 3 +event 138: propxtype is 3, prop is 0xd17e, data type is 0x0000, propxcnt is 2. +event 138: data type 0x0000 of d17e unhandled, raw values: + 0: 0x 0 + 1: 0x 1 +event 139: EOS prop d120 desc record, datasize 1084, propxtype 3 +event 139: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 35. +event 139: suppval[0] of d120 is 0x300. +event 139: suppval[1] of d120 is 0x200. +event 139: suppval[2] of d120 is 0x1300. +event 139: suppval[3] of d120 is 0x1200. +event 139: suppval[4] of d120 is 0xd300. +event 139: suppval[5] of d120 is 0xd200. +event 139: suppval[6] of d120 is 0xe300. +event 139: suppval[7] of d120 is 0xf300. +event 139: suppval[8] of d120 is 0x403. +event 139: suppval[9] of d120 is 0x402. +event 139: suppval[10] of d120 is 0x413. +event 139: suppval[11] of d120 is 0x412. +event 139: suppval[12] of d120 is 0x4d3. +event 139: suppval[13] of d120 is 0x4d2. +event 139: suppval[14] of d120 is 0x4e3. +event 139: suppval[15] of d120 is 0x4f3. +event 139: suppval[16] of d120 is 0x1403. +event 139: suppval[17] of d120 is 0x1402. +event 139: suppval[18] of d120 is 0x1413. +event 139: suppval[19] of d120 is 0x1412. +event 139: suppval[20] of d120 is 0x14d3. +event 139: suppval[21] of d120 is 0x14d2. +event 139: suppval[22] of d120 is 0x14e3. +event 139: suppval[23] of d120 is 0x14f3. +event 139: suppval[24] of d120 is 0x2403. +event 139: suppval[25] of d120 is 0x2402. +event 139: suppval[26] of d120 is 0x2413. +event 139: suppval[27] of d120 is 0x2412. +event 139: suppval[28] of d120 is 0x24d3. +event 139: suppval[29] of d120 is 0x24d2. +event 139: suppval[30] of d120 is 0x24e3. +event 139: suppval[31] of d120 is 0x24f3. +event 139: suppval[32] of d120 is 0x400. +event 139: suppval[33] of d120 is 0x1400. +event 139: suppval[34] of d120 is 0x2400. +event 140: EOS prop d121 desc record, datasize 1084, propxtype 3 +event 140: propxtype is 3, prop is 0xd121, data type is 0x0004, propxcnt is 35. +event 140: suppval[0] of d121 is 0x300. +event 140: suppval[1] of d121 is 0x200. +event 140: suppval[2] of d121 is 0x1300. +event 140: suppval[3] of d121 is 0x1200. +event 140: suppval[4] of d121 is 0xd300. +event 140: suppval[5] of d121 is 0xd200. +event 140: suppval[6] of d121 is 0xe300. +event 140: suppval[7] of d121 is 0xf300. +event 140: suppval[8] of d121 is 0x403. +event 140: suppval[9] of d121 is 0x402. +event 140: suppval[10] of d121 is 0x413. +event 140: suppval[11] of d121 is 0x412. +event 140: suppval[12] of d121 is 0x4d3. +event 140: suppval[13] of d121 is 0x4d2. +event 140: suppval[14] of d121 is 0x4e3. +event 140: suppval[15] of d121 is 0x4f3. +event 140: suppval[16] of d121 is 0x1403. +event 140: suppval[17] of d121 is 0x1402. +event 140: suppval[18] of d121 is 0x1413. +event 140: suppval[19] of d121 is 0x1412. +event 140: suppval[20] of d121 is 0x14d3. +event 140: suppval[21] of d121 is 0x14d2. +event 140: suppval[22] of d121 is 0x14e3. +event 140: suppval[23] of d121 is 0x14f3. +event 140: suppval[24] of d121 is 0x2403. +event 140: suppval[25] of d121 is 0x2402. +event 140: suppval[26] of d121 is 0x2413. +event 140: suppval[27] of d121 is 0x2412. +event 140: suppval[28] of d121 is 0x24d3. +event 140: suppval[29] of d121 is 0x24d2. +event 140: suppval[30] of d121 is 0x24e3. +event 140: suppval[31] of d121 is 0x24f3. +event 140: suppval[32] of d121 is 0x400. +event 140: suppval[33] of d121 is 0x1400. +event 140: suppval[34] of d121 is 0x2400. +event 141: EOS prop d122 desc record, datasize 1084, propxtype 3 +event 141: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 35. +event 141: suppval[0] of d122 is 0x300. +event 141: suppval[1] of d122 is 0x200. +event 141: suppval[2] of d122 is 0x1300. +event 141: suppval[3] of d122 is 0x1200. +event 141: suppval[4] of d122 is 0xd300. +event 141: suppval[5] of d122 is 0xd200. +event 141: suppval[6] of d122 is 0xe300. +event 141: suppval[7] of d122 is 0xf300. +event 141: suppval[8] of d122 is 0x403. +event 141: suppval[9] of d122 is 0x402. +event 141: suppval[10] of d122 is 0x413. +event 141: suppval[11] of d122 is 0x412. +event 141: suppval[12] of d122 is 0x4d3. +event 141: suppval[13] of d122 is 0x4d2. +event 141: suppval[14] of d122 is 0x4e3. +event 141: suppval[15] of d122 is 0x4f3. +event 141: suppval[16] of d122 is 0x1403. +event 141: suppval[17] of d122 is 0x1402. +event 141: suppval[18] of d122 is 0x1413. +event 141: suppval[19] of d122 is 0x1412. +event 141: suppval[20] of d122 is 0x14d3. +event 141: suppval[21] of d122 is 0x14d2. +event 141: suppval[22] of d122 is 0x14e3. +event 141: suppval[23] of d122 is 0x14f3. +event 141: suppval[24] of d122 is 0x2403. +event 141: suppval[25] of d122 is 0x2402. +event 141: suppval[26] of d122 is 0x2413. +event 141: suppval[27] of d122 is 0x2412. +event 141: suppval[28] of d122 is 0x24d3. +event 141: suppval[29] of d122 is 0x24d2. +event 141: suppval[30] of d122 is 0x24e3. +event 141: suppval[31] of d122 is 0x24f3. +event 141: suppval[32] of d122 is 0x400. +event 141: suppval[33] of d122 is 0x1400. +event 141: suppval[34] of d122 is 0x2400. +event 142: EOS prop d156 desc record, datasize 0, propxtype 7 +event 142: propxtype is 7 for d156, unhandled. +event 143: EOS prop d150 desc record, datasize 0, propxtype 7 +event 143: propxtype is 7 for d150, unhandled. +event 144: EOS prop d151 desc record, datasize 0, propxtype 7 +event 144: propxtype is 7 for d151, unhandled. +event 145: EOS prop d152 desc record, datasize 0, propxtype 7 +event 145: propxtype is 7 for d152, unhandled. +event 146: EOS prop d153 desc record, datasize 0, propxtype 7 +event 146: propxtype is 7 for d153, unhandled. +event 147: EOS prop d154 desc record, datasize 0, propxtype 7 +event 147: propxtype is 7 for d154, unhandled. +event 148: EOS prop d155 desc record, datasize 0, propxtype 7 +event 148: propxtype is 7 for d155, unhandled. +event 149: EOS prop d160 desc record, datasize 0, propxtype 7 +event 149: propxtype is 7 for d160, unhandled. +event 150: EOS prop d161 desc record, datasize 0, propxtype 7 +event 150: propxtype is 7 for d161, unhandled. +event 151: EOS prop d162 desc record, datasize 0, propxtype 7 +event 151: propxtype is 7 for d162, unhandled. +event 152: EOS prop d170 desc record, datasize 0, propxtype 7 +event 152: propdesc d170, default value not found. +event 153: EOS prop d171 desc record, datasize 0, propxtype 7 +event 153: propdesc d171, default value not found. +event 154: EOS prop d172 desc record, datasize 0, propxtype 7 +event 154: propdesc d172, default value not found. +event 155: EOS prop d11c desc record, datasize 12, propxtype 3 +event 155: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +event 155: suppval[0] of d11c is 0x2. +event 155: suppval[1] of d11c is 0x6. +event 155: suppval[2] of d11c is 0x4. +event 156: EOS prop d1a0 desc record, datasize 0, propxtype 7 +event 156: propxtype is 7 for d1a0, unhandled. +event 157: EOS prop d1a1 desc record, datasize 0, propxtype 7 +event 157: propxtype is 7 for d1a1, unhandled. +event 158: EOS prop d1a2 desc record, datasize 0, propxtype 7 +event 158: propdesc d1a2, default value not found. +event 159: EOS prop d1a8 desc record, datasize 0, propxtype 1 +event 159: propxtype is 1 for d1a8, unhandled. +event 160: EOS prop d1a7 desc record, datasize 0, propxtype 7 +event 160: propxtype is 7 for d1a7, unhandled. +event 161: EOS prop d1ab desc record, datasize 0, propxtype 1 +event 161: propxtype is 1 for d1ab, unhandled. +event 162: EOS prop d1b0 desc record, datasize 48, propxtype 3 +event 162: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 12. +event 162: suppval[0] of d1b0 is 0x0. +event 162: suppval[1] of d1b0 is 0x1. +event 162: suppval[2] of d1b0 is 0x2. +event 162: suppval[3] of d1b0 is 0x3. +event 162: suppval[4] of d1b0 is 0x4. +event 162: suppval[5] of d1b0 is 0x5. +event 162: suppval[6] of d1b0 is 0x6. +event 162: suppval[7] of d1b0 is 0x7. +event 162: suppval[8] of d1b0 is 0x8. +event 162: suppval[9] of d1b0 is 0x9. +event 162: suppval[10] of d1b0 is 0xa. +event 162: suppval[11] of d1b0 is 0xb. +event 163: EOS prop d1b1 desc record, datasize 8, propxtype 3 +event 163: propxtype is 3, prop is 0xd1b1, data type is 0x0004, propxcnt is 2. +event 163: suppval[0] of d1b1 is 0x1. +event 163: suppval[1] of d1b1 is 0x0. +event 164: EOS prop d1b2 desc record, datasize 0, propxtype 7 +event 164: propxtype is 7 for d1b2, unhandled. +event 165: EOS prop d1b3 desc record, datasize 0, propxtype 7 +event 165: propxtype is 7 for d1b3, unhandled. +event 166: EOS prop d1b4 desc record, datasize 0, propxtype 3 +event 167: EOS prop d1b5 desc record, datasize 0, propxtype 7 +event 167: propxtype is 7 for d1b5, unhandled. +event 168: EOS prop d1b6 desc record, datasize 304, propxtype 3 +event 168: propxtype is 3, prop is 0xd1b6, data type is 0x0006, propxcnt is 76. +event 168: suppval[0] of d1b6 is 0x9c4. +event 168: suppval[1] of d1b6 is 0xa28. +event 168: suppval[2] of d1b6 is 0xa8c. +event 168: suppval[3] of d1b6 is 0xaf0. +event 168: suppval[4] of d1b6 is 0xb54. +event 168: suppval[5] of d1b6 is 0xbb8. +event 168: suppval[6] of d1b6 is 0xc1c. +event 168: suppval[7] of d1b6 is 0xc80. +event 168: suppval[8] of d1b6 is 0xce4. +event 168: suppval[9] of d1b6 is 0xd48. +event 168: suppval[10] of d1b6 is 0xdac. +event 168: suppval[11] of d1b6 is 0xe10. +event 168: suppval[12] of d1b6 is 0xe74. +event 168: suppval[13] of d1b6 is 0xed8. +event 168: suppval[14] of d1b6 is 0xf3c. +event 168: suppval[15] of d1b6 is 0xfa0. +event 168: suppval[16] of d1b6 is 0x1004. +event 168: suppval[17] of d1b6 is 0x1068. +event 168: suppval[18] of d1b6 is 0x10cc. +event 168: suppval[19] of d1b6 is 0x1130. +event 168: suppval[20] of d1b6 is 0x1194. +event 168: suppval[21] of d1b6 is 0x11f8. +event 168: suppval[22] of d1b6 is 0x125c. +event 168: suppval[23] of d1b6 is 0x12c0. +event 168: suppval[24] of d1b6 is 0x1324. +event 168: suppval[25] of d1b6 is 0x1388. +event 168: suppval[26] of d1b6 is 0x13ec. +event 168: suppval[27] of d1b6 is 0x1450. +event 168: suppval[28] of d1b6 is 0x14b4. +event 168: suppval[29] of d1b6 is 0x1518. +event 168: suppval[30] of d1b6 is 0x157c. +event 168: suppval[31] of d1b6 is 0x15e0. +event 168: suppval[32] of d1b6 is 0x1644. +event 168: suppval[33] of d1b6 is 0x16a8. +event 168: suppval[34] of d1b6 is 0x170c. +event 168: suppval[35] of d1b6 is 0x1770. +event 168: suppval[36] of d1b6 is 0x17d4. +event 168: suppval[37] of d1b6 is 0x1838. +event 168: suppval[38] of d1b6 is 0x189c. +event 168: suppval[39] of d1b6 is 0x1900. +event 168: suppval[40] of d1b6 is 0x1964. +event 168: suppval[41] of d1b6 is 0x19c8. +event 168: suppval[42] of d1b6 is 0x1a2c. +event 168: suppval[43] of d1b6 is 0x1a90. +event 168: suppval[44] of d1b6 is 0x1af4. +event 168: suppval[45] of d1b6 is 0x1b58. +event 168: suppval[46] of d1b6 is 0x1bbc. +event 168: suppval[47] of d1b6 is 0x1c20. +event 168: suppval[48] of d1b6 is 0x1c84. +event 168: suppval[49] of d1b6 is 0x1ce8. +event 168: suppval[50] of d1b6 is 0x1d4c. +event 168: suppval[51] of d1b6 is 0x1db0. +event 168: suppval[52] of d1b6 is 0x1e14. +event 168: suppval[53] of d1b6 is 0x1e78. +event 168: suppval[54] of d1b6 is 0x1edc. +event 168: suppval[55] of d1b6 is 0x1f40. +event 168: suppval[56] of d1b6 is 0x1fa4. +event 168: suppval[57] of d1b6 is 0x2008. +event 168: suppval[58] of d1b6 is 0x206c. +event 168: suppval[59] of d1b6 is 0x20d0. +event 168: suppval[60] of d1b6 is 0x2134. +event 168: suppval[61] of d1b6 is 0x2198. +event 168: suppval[62] of d1b6 is 0x21fc. +event 168: suppval[63] of d1b6 is 0x2260. +event 168: suppval[64] of d1b6 is 0x22c4. +event 168: suppval[65] of d1b6 is 0x2328. +event 168: suppval[66] of d1b6 is 0x238c. +event 168: suppval[67] of d1b6 is 0x23f0. +event 168: suppval[68] of d1b6 is 0x2454. +event 168: suppval[69] of d1b6 is 0x24b8. +event 168: suppval[70] of d1b6 is 0x251c. +event 168: suppval[71] of d1b6 is 0x2580. +event 168: suppval[72] of d1b6 is 0x25e4. +event 168: suppval[73] of d1b6 is 0x2648. +event 168: suppval[74] of d1b6 is 0x26ac. +event 168: suppval[75] of d1b6 is 0x2710. +event 169: EOS prop d1a9 desc record, datasize 20, propxtype 3 +event 169: propxtype is 3, prop is 0xd1a9, data type is 0x0004, propxcnt is 5. +event 169: suppval[0] of d1a9 is 0x0. +event 169: suppval[1] of d1a9 is 0x2. +event 169: suppval[2] of d1a9 is 0x4. +event 169: suppval[3] of d1a9 is 0x8. +event 169: suppval[4] of d1a9 is 0xff. +event 170: EOS prop d146 desc record, datasize 0, propxtype 7 +event 170: propxtype is 7 for d146, unhandled. +event 171: EOS prop d1ac desc record, datasize 0, propxtype 1 +event 171: propxtype is 1 for d1ac, unhandled. +event 172: EOS prop d1ad desc record, datasize 0, propxtype 1 +event 172: propdesc d1ad, default value not found. +event 173: EOS prop d1ae desc record, datasize 0, propxtype 1 +event 173: propdesc d1ae, default value not found. +event 174: EOS prop d1aa desc record, datasize 0, propxtype 1 +event 174: propxtype is 1 for d1aa, unhandled. +event 175: EOS prop d11e desc record, datasize 0, propxtype 1 +event 175: propxtype is 1 for d11e, unhandled. +event 176: EOS prop d11f desc record, datasize 0, propxtype 1 +event 176: propdesc d11f, default value not found. +event 177: EOS prop d1af desc record, datasize 0, propxtype 1 +event 177: propdesc d1af, default value not found. +event 178: EOS prop d1d0 desc record, datasize 0, propxtype 7 +event 178: propdesc d1d0, default value not found. +event 179: EOS prop d1d1 desc record, datasize 0, propxtype 7 +event 179: propdesc d1d1, default value not found. +event 180: EOS prop d1d9 desc record, datasize 0, propxtype 3 +event 181: EOS prop d1d5 desc record, datasize 0, propxtype 3 +event 182: EOS prop d1ba desc record, datasize 16, propxtype 3 +event 182: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 4. +event 182: suppval[0] of d1ba is 0x2. +event 182: suppval[1] of d1ba is 0x3. +event 182: suppval[2] of d1ba is 0x1. +event 182: suppval[3] of d1ba is 0x0. +event 183: EOS prop d1cc desc record, datasize 0, propxtype 3 +event 184: EOS prop d1bc desc record, datasize 0, propxtype 3 +event 185: EOS prop d1b8 desc record, datasize 0, propxtype 3 +event 186: EOS prop d1d3 desc record, datasize 0, propxtype 7 +event 186: propxtype is 7 for d1d3, unhandled. +event 187: EOS prop d1d8 desc record, datasize 0, propxtype 1 +event 187: propxtype is 1 for d1d8, unhandled. +event 188: EOS prop d17f desc record, datasize 0, propxtype 1 +event 188: propdesc d17f, default value not found. +event 189: EOS prop d1b7 desc record, datasize 0, propxtype 1 +event 189: propxtype is 1 for d1b7, unhandled. +event 190: EOS prop d1cb desc record, datasize 0, propxtype 7 +event 190: propxtype is 7 for d1cb, unhandled. +event 191: EOS prop d1db desc record, datasize 0, propxtype 7 +event 191: propxtype is 7 for d1db, unhandled. +event 192: EOS prop d1dc desc record, datasize 0, propxtype 3 +event 193: EOS prop d1a3 desc record, datasize 0, propxtype 1 +event 193: propxtype is 1 for d1a3, unhandled. +event 194: EOS prop d1a4 desc record, datasize 0, propxtype 7 +event 194: propxtype is 7 for d1a4, unhandled. +event 195: EOS prop d1df desc record, datasize 0, propxtype 3 +event 196: EOS prop d1bd desc record, datasize 0, propxtype 1 +event 196: propxtype is 1 for d1bd, unhandled. +event 197: EOS prop d1c1 desc record, datasize 0, propxtype 3 +event 198: EOS prop d1c0 desc record, datasize 0, propxtype 1 +event 198: propxtype is 1 for d1c0, unhandled. +event 199: EOS prop d1bf desc record, datasize 0, propxtype 7 +event 199: propxtype is 7 for d1bf, unhandled. +event 200: EOS prop d1c4 desc record, datasize 0, propxtype 1 +event 200: propxtype is 1 for d1c4, unhandled. +event 201: EOS prop d1c2 desc record, datasize 0, propxtype 1 +event 201: propxtype is 1 for d1c2, unhandled. +event 202: EOS prop d1c5 desc record, datasize 0, propxtype 3 +event 203: EOS prop d194 desc record, datasize 0, propxtype 3 +event 204: EOS prop d195 desc record, datasize 0, propxtype 3 +event 205: EOS prop d196 desc record, datasize 0, propxtype 7 +event 205: propxtype is 7 for d196, unhandled. +event 206: EOS prop d197 desc record, datasize 0, propxtype 3 +event 207: EOS prop d198 desc record, datasize 0, propxtype 1 +event 207: propxtype is 1 for d198, unhandled. +event 208: EOS prop d1dd desc record, datasize 0, propxtype 1 +event 208: propxtype is 1 for d1dd, unhandled. +event 209: EOS prop d1c7 desc record, datasize 0, propxtype 7 +event 209: propxtype is 7 for d1c7, unhandled. +event 210: EOS prop d199 desc record, datasize 0, propxtype 1 +event 210: propxtype is 1 for d199, unhandled. +event 211: EOS prop d138 desc record, datasize 0, propxtype 1 +event 211: propxtype is 1 for d138, unhandled. +event 212: EOS prop d139 desc record, datasize 0, propxtype 1 +event 212: propxtype is 1 for d139, unhandled. +event 213: EOS prop d13a desc record, datasize 0, propxtype 3 +event 214: EOS prop d13b desc record, datasize 0, propxtype 1 +event 214: propxtype is 1 for d13b, unhandled. +event 215: EOS prop d13c desc record, datasize 0, propxtype 1 +event 215: propxtype is 1 for d13c, unhandled. +event 216: EOS prop d13d desc record, datasize 0, propxtype 1 +event 216: propxtype is 1 for d13d, unhandled. +event 217: EOS prop d14d desc record, datasize 0, propxtype 7 +event 217: propxtype is 7 for d14d, unhandled. +event 218: EOS prop d19d desc record, datasize 0, propxtype 1 +event 218: propdesc d19d, default value not found. +event 219: EOS prop d19a desc record, datasize 0, propxtype 1 +event 219: propxtype is 1 for d19a, unhandled. +event 220: EOS prop d19c desc record, datasize 0, propxtype 1 +event 220: propxtype is 1 for d19c, unhandled. +event 221: EOS prop d177 desc record, datasize 0, propxtype 7 +event 221: propxtype is 7 for d177, unhandled. +event 222: EOS prop d19f desc record, datasize 0, propxtype 1 +event 222: propxtype is 1 for d19f, unhandled. +event 223: EOS prop d178 desc record, datasize 0, propxtype 3 +event 224: EOS prop d179 desc record, datasize 0, propxtype 3 +event 225: EOS prop d17a desc record, datasize 8, propxtype 3 +event 225: propxtype is 3, prop is 0xd17a, data type is 0x0000, propxcnt is 2. +event 225: data type 0x0000 of d17a unhandled, raw values: + 0: 0x 1 + 1: 0x 0 +event 226: EOS prop d17b desc record, datasize 0, propxtype 3 +event 227: EOS prop d1c9 desc record, datasize 8, propxtype 3 +event 227: propxtype is 3, prop is 0xd1c9, data type is 0x0000, propxcnt is 2. +event 227: data type 0x0000 of d1c9 unhandled, raw values: + 0: 0x 1 + 1: 0x 0 +event 228: EOS prop d1c8 desc record, datasize 0, propxtype 3 +event 229: EOS prop d175 desc record, datasize 0, propxtype 3 +event 230: EOS prop d137 desc record, datasize 0, propxtype 1 +event 230: propxtype is 1 for d137, unhandled. +event 231: EOS prop d1c6 desc record, datasize 0, propxtype 3 + +event: c181 +event: c182 +event: c183 +event: c184 +event: c185 +event: c186 +event: c187 +event: c188 +event: c189 +event: c18a +event: c18b +event: c18d +event: c18e +event: c18f +event: c190 +event: c191 +event: c1a0 +event: c1a1 +deviceprop: d105 +deviceprop: d108 +deviceprop: d106 +deviceprop: d107 +deviceprop: d109 +deviceprop: d10a +deviceprop: d10b +deviceprop: d10c +deviceprop: d10d +deviceprop: d10e +deviceprop: d10f +deviceprop: d11b +deviceprop: d114 +deviceprop: d116 +deviceprop: d119 +deviceprop: d11a +deviceprop: d110 +deviceprop: d115 +deviceprop: d101 +deviceprop: d102 +deviceprop: d103 +deviceprop: d104 +deviceprop: d11d +deviceprop: d111 +deviceprop: d112 +deviceprop: d113 +deviceprop: d17c +deviceprop: d17d +deviceprop: d17e +deviceprop: d120 +deviceprop: d121 +deviceprop: d122 +deviceprop: d156 +deviceprop: d150 +deviceprop: d151 +deviceprop: d152 +deviceprop: d153 +deviceprop: d154 +deviceprop: d155 +deviceprop: d160 +deviceprop: d161 +deviceprop: d162 +deviceprop: d170 +deviceprop: d171 +deviceprop: d172 +deviceprop: d11c +deviceprop: d1a0 +deviceprop: d1a1 +deviceprop: d1a2 +deviceprop: d1a5 +deviceprop: d1a8 +deviceprop: d1a7 +deviceprop: d1ab +deviceprop: d1b0 +deviceprop: d1b1 +deviceprop: d1b2 +deviceprop: d1b3 +deviceprop: d1b4 +deviceprop: d1b5 +deviceprop: d1b6 +deviceprop: d1a9 +deviceprop: d146 +deviceprop: d1ac +deviceprop: d1ad +deviceprop: d1ae +deviceprop: d1aa +deviceprop: d11e +deviceprop: d11f +deviceprop: d1af +deviceprop: d1d0 +deviceprop: d1d1 +deviceprop: d1d9 +deviceprop: d1d5 +deviceprop: d1ba +deviceprop: d1cc +deviceprop: d1bc +deviceprop: d1b8 +deviceprop: d1d3 +deviceprop: d1d8 +deviceprop: d17f +deviceprop: d1b7 +deviceprop: d1cb +deviceprop: d1db +deviceprop: d1dc +deviceprop: d1a3 +deviceprop: d1a4 +deviceprop: d1df +deviceprop: d1bd +deviceprop: d1c1 +deviceprop: d1c0 +deviceprop: d1bf +deviceprop: d1c4 +deviceprop: d1c2 +deviceprop: d1c5 +deviceprop: d194 +deviceprop: d195 +deviceprop: d196 +deviceprop: d197 +deviceprop: d198 +deviceprop: d1dd +deviceprop: d1c7 +deviceprop: d199 +deviceprop: d138 +deviceprop: d139 +deviceprop: d13a +deviceprop: d13b +deviceprop: d13c +deviceprop: d13d +deviceprop: d14d +deviceprop: d19d +deviceprop: d19a +deviceprop: d19c +deviceprop: d177 +deviceprop: d19f +deviceprop: d178 +deviceprop: d179 +deviceprop: d17a +deviceprop: d17b +deviceprop: d1c9 +deviceprop: d1c8 +deviceprop: d175 +deviceprop: d137 +deviceprop: d1c6 +unk: 0000 +unk: 0001 +unk: 0002 +unk: 0004 +unk: 0008 + +event 0: EOS prop d115 info record, datasize is 1 +event 0: currentvalue of d115 is +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is +event 3: EOS prop d1af info record, datasize is 13 +event 3: currentvalue of d1af is 023021005149 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos750d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos750d.txt new file mode 100644 index 00000000..4a02ca59 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos750d.txt @@ -0,0 +1,528 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 750D + Version: 3-1.0.0 + Serial Number: 1234567890ABCDEFGHIJKLMNOPQRSTUV +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105), Unknown(b982) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button + Canon Wifi support + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 64255688704 (61279 MB) + Free Space (Bytes): 59611021312 (56849 MB) + Free Space (Images): -1 + +Device Property Summary: +Model ID(0xd049):(read only) (type=0x6) 2147484563 +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 750D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1450551746 +Printable: Sat Dec 19 20:02:26 2015 +Help: Use 'now' as the current time when setting. + +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Setting 4 +Choice: 5 Setting 5 +Choice: 6 Setting 6 +Choice: 7 Setting 7 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/settings/movierecordtarget +Label: Recording Destination +Type: RADIO +Current: Disabled +Choice: 0 Disabled +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 10,c189,d105,1, +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 1234567890ABCDEFGHIJKLMNOPQRSTUV +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 750D +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.0.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484563 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: 17-70mm +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 053032001767 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 6599 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +Choice: 4 800 +Choice: 5 1600 +Choice: 6 3200 +Choice: 7 6400 +Choice: 8 12800 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 5200 +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 -4.3 +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: TV +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous +Choice: 2 Single silent +Choice: 3 Continuous silent +Choice: 4 Timer 10 sec +Choice: 5 Timer 2 sec +Choice: 6 Unknown value 0007 +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1/60 +Choice: 0 30 +Choice: 1 25 +Choice: 2 20 +Choice: 3 15 +Choice: 4 13 +Choice: 5 10 +Choice: 6 8 +Choice: 7 6 +Choice: 8 5 +Choice: 9 4 +Choice: 10 3.2 +Choice: 11 2.5 +Choice: 12 2 +Choice: 13 1.6 +Choice: 14 1.3 +Choice: 15 1 +Choice: 16 0.8 +Choice: 17 0.6 +Choice: 18 0.5 +Choice: 19 0.4 +Choice: 20 0.3 +Choice: 21 1/4 +Choice: 22 1/5 +Choice: 23 1/6 +Choice: 24 1/8 +Choice: 25 1/10 +Choice: 26 1/13 +Choice: 27 1/15 +Choice: 28 1/20 +Choice: 29 1/25 +Choice: 30 1/30 +Choice: 31 1/40 +Choice: 32 1/50 +Choice: 33 1/60 +Choice: 34 1/80 +Choice: 35 1/100 +Choice: 36 1/125 +Choice: 37 1/160 +Choice: 38 1/200 +Choice: 39 1/250 +Choice: 40 1/320 +Choice: 41 1/400 +Choice: 42 1/500 +Choice: 43 1/640 +Choice: 44 1/800 +Choice: 45 1/1000 +Choice: 46 1/1250 +Choice: 47 1/1600 +Choice: 48 1/2000 +Choice: 49 1/2500 +Choice: 50 1/3200 +Choice: 51 1/4000 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: -2147482733 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 750D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos760d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos760d.txt new file mode 100644 index 00000000..390ec347 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos760d.txt @@ -0,0 +1,531 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 760D + Version: 3-1.0.0 + Serial Number: 1234567890ABCDEFGHIJKLMNOPQRSTUV +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105), Unknown(b982) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button + Canon Wifi support + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 31902400512 (30424 MB) + Free Space (Bytes): 26905870336 (25659 MB) + Free Space (Images): -1 + +Device Property Summary: +Model ID(0xd049):(read only) (type=0x6) 2147484487 +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 760D' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/cancelautofocus +Label: Cancel Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1437908681 +Printable: Sun Jul 26 12:04:41 2015 +Help: Use 'now' as the current time when setting. + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1437905081 +Printable: Sun Jul 26 11:04:41 2015 +Help: Use 'now' as the current time when setting. + +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Setting 4 +Choice: 5 Setting 5 +Choice: 6 Setting 6 +Choice: 7 Setting 7 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/settings/movierecordtarget +Label: Recording Destination +Type: RADIO +Current: None +Choice: 0 None +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: e0,4,1,20,2,101,1,0,103,1,0,2,14,1,203,1,0,3,50,6,50e,1,0,51b,1,0,51c,1,0,50c,1,0,51d,1,0,60f,1,0,4,44,5,701,1,0,704,1,0,811,1,1,70f,1,2,814,1,0, +/main/settings/focusinfo +Label: Focus Info +Type: TEXT +Current: eosversion=2,size=6000x4000,size2=6000x4000,points={{-455,-455,345,284},{455,455,345,284},{-455,455,345,284},{455,0,345,284},{-455,0,345,284},{0,-455,345,284},{0,455,345,284},{0,0,345,284},{-1017,-455,345,284},{1017,455,345,284},{-1017,455,345,284},{1017,0,345,284},{-1017,0,345,284},{0,-856,345,284},{0,856,345,284},{455,-455,345,284},{1580,0,345,284},{-1580,0,345,284},{1017,-455,345,284}},select={},unknown={0080000000000000000000000000000000ffff} +/main/settings/focusarea +Label: Focus Area +Type: TEXT +Current: 1977418499 +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 120 +/main/settings/depthoffield +Label: Depth of Field +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 1234567890ABCDEFGHIJKLMNOPQRSTUV +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 760D +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.0.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484487 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-S18-135mm f/3.5-5.6 IS STM +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 01234567890A +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 8561 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 100 +Choice: 0 Auto +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +Choice: 4 800 +Choice: 5 1600 +Choice: 6 3200 +Choice: 7 6400 +Choice: 8 12800 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 5200 +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 -4.3 +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/continuousaf +Label: Continuous AF +Type: RADIO +Current: On +Choice: 0 Off +Choice: 1 On +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: AV +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous +Choice: 2 Single silent +Choice: 3 Continuous silent +Choice: 4 Timer 10 sec +Choice: 5 Timer 2 sec +Choice: 6 Unknown value 0007 +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +/main/capturesettings/aperture +Label: Aperture +Type: RADIO +Current: 4.5 +Choice: 0 3.5 +Choice: 1 4 +Choice: 2 4.5 +Choice: 3 5 +Choice: 4 5.6 +Choice: 5 6.3 +Choice: 6 7.1 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 13 +Choice: 12 14 +Choice: 13 16 +Choice: 14 18 +Choice: 15 20 +Choice: 16 22 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: auto +Choice: 0 auto +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: -2147482809 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 760D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos77d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos77d.txt new file mode 100644 index 00000000..9486c1a1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos77d.txt @@ -0,0 +1,723 @@ +Device info: +Manufacturer: Canon.Inc + Model: Canon EOS 77D + device version: 3-1.0.2 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x1005 (Get storage info) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9170 (Unknown PTP_OC) + 0x1009 (Get object) + 0x9104 (PTP_OC_CANON_EOS_GetObject) + 0x9171 (Unknown PTP_OC) + 0x100a (Get thumbnail) + 0x100f (Format storage) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x1014 (Get device property description) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9172 (Unknown PTP_OC) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9174 (Unknown PTP_OC) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x9173 (Unknown PTP_OC) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9068 (PTP_OC_CANON_GetWebServiceSpec) + 0x9069 (PTP_OC_CANON_GetWebServiceData) + 0x906a (Unknown PTP_OC) + 0x906b (PTP_OC_CANON_SetWebServiceData) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x911e (PTP_OC_CANON_EOS_SetNullPacketMode) + 0x911f (PTP_OC_CANON_EOS_UpdateFirmware) + 0x9122 (PTP_OC_CANON_EOS_SetWftProfile) + 0x9123 (PTP_OC_CANON_EOS_GetWftProfile) + 0x9124 (PTP_OC_CANON_EOS_SetProfileToWft) + 0x9131 (PTP_OC_CANON_EOS_PopupBuiltinFlash) + 0x9133 (PTP_OC_CANON_EOS_MovieSelectSWOn) + 0x9134 (PTP_OC_CANON_EOS_MovieSelectSWOff) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x913c (PTP_OC_CANON_EOS_SetCTGInfo) + 0x913e (PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x9157 (PTP_OC_CANON_EOS_ClickWB) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x915a (PTP_OC_CANON_EOS_SetLiveAfFrame) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x91fe (PTP_OC_CANON_EOS_FAPIMessageTX) + 0x91ff (PTP_OC_CANON_EOS_FAPIMessageRX) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9108 (PTP_OC_CANON_EOS_GetDeviceInfoEx) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x912b (PTP_OC_CANON_EOS_ChangePhotoStudioMode) + 0x9130 (PTP_OC_CANON_EOS_ResetMirrorLockupState) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x915c (PTP_OC_CANON_EOS_SetLvPcFlavoreditMode) + 0x915d (PTP_OC_CANON_EOS_SetLvPcFlavoreditParam) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x902f (Unknown PTP_OC) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x910e (PTP_OC_CANON_EOS_SetObjectTime) + 0x91f0 (PTP_OC_CANON_EOS_TransferComplete2) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x91f1 (PTP_OC_CANON_EOS_CancelTransfer2) + 0x91e1 (Unknown PTP_OC) + 0x91e2 (Unknown PTP_OC) + 0x91e3 (Unknown PTP_OC) + 0x91e4 (Unknown PTP_OC) + 0x91e6 (Unknown PTP_OC) + 0x91e7 (Unknown PTP_OC) + 0x91e8 (PTP_OC_CANON_EOS_NotifyNetworkError) + 0x91e9 (PTP_OC_CANON_EOS_AdapterTransferProgress) + 0x91ea (Unknown PTP_OC) + 0x91eb (Unknown PTP_OC) + 0x91ec (Unknown PTP_OC) + 0x91ed (Unknown PTP_OC) + 0x91ee (Unknown PTP_OC) + 0x91ef (Unknown PTP_OC) + 0x91f8 (Unknown PTP_OC) + 0x91f9 (Unknown PTP_OC) + 0x9144 (PTP_OC_CANON_EOS_GpsLoggingDataMode) + 0x9145 (PTP_OC_CANON_EOS_GetGpsLogCurrentHandle) + 0x91d3 (Unknown PTP_OC) + 0x91d4 (Unknown PTP_OC) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9146 (Unknown PTP_OC) + 0x9147 (Unknown PTP_OC) + 0x9148 (Unknown PTP_OC) + 0x9149 (Unknown PTP_OC) + 0x91df (Unknown PTP_OC) + 0x91fb (Unknown PTP_OC) + 0x91fc (Unknown PTP_OC) + 0x914a (Unknown PTP_OC) + 0x910f (PTP_OC_CANON_EOS_RemoteRelease) + 0x914b (Unknown PTP_OC) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x100b (Delete object) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x912d (Unknown PTP_OC) + 0x912e (Unknown PTP_OC) + 0x912f (Unknown PTP_OC) + 0x914c (Unknown PTP_OC) + 0x9139 (PTP_OC_CANON_EOS_CreateHandle) + 0x913a (PTP_OC_CANON_EOS_SendPartialObjectEx) + 0x913b (PTP_OC_CANON_EOS_EndSendPartialObjectEx) + 0x914e (Unknown PTP_OC) + 0x91d7 (Unknown PTP_OC) + 0x91d8 (Unknown PTP_OC) + 0x91d9 (Unknown PTP_OC) + 0x91da (Unknown PTP_OC) + 0x91db (Unknown PTP_OC) + 0x91dc (Unknown PTP_OC) + 0x91dd (Unknown PTP_OC) + 0x91de (Unknown PTP_OC) + 0x91d5 (Unknown PTP_OC) + 0x9180 (Unknown PTP_OC) + 0x9181 (Unknown PTP_OC) + 0x9182 (Unknown PTP_OC) + 0x9183 (Unknown PTP_OC) + 0x9184 (Unknown PTP_OC) + 0x9185 (Unknown PTP_OC) + 0x9138 (PTP_OC_CANON_EOS_GetMusicInfo) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x91f5 (Unknown PTP_OC) + 0x91f6 (Unknown PTP_OC) + 0x917f (Unknown PTP_OC) + 0x914d (Unknown PTP_OC) + 0x914f (Unknown PTP_OC) + 0x9150 (Unknown PTP_OC) + 0x91f2 (Unknown PTP_OC) + 0x91f3 (Unknown PTP_OC) + 0x91f4 (Unknown PTP_OC) + 0x91fd (Unknown PTP_OC) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) + 0x9052 (Unknown PTP_OC) + 0x9053 (Unknown PTP_OC) + 0x9057 (Unknown PTP_OC) + 0x9058 (Unknown PTP_OC) + 0x9059 (Unknown PTP_OC) + 0x905a (Unknown PTP_OC) + 0x905b (Unknown PTP_OC) + 0x905f (Unknown PTP_OC) +Events Supported: + 0xc181 + 0x4003 + 0xc183 + 0xc184 + 0xc185 + 0xc186 + 0xc187 + 0xc188 + 0xc189 + 0xc18a + 0xc18b + 0xc18d + 0xc18e + 0xc18f + 0xc190 + 0xc191 + 0xc1a0 + 0xc1a1 + 0x4009 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + +/main/actions/syncdatetimeutc +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/cancelautofocus +Label: Cancel Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetimeutc +Label: Camera Date and Time +Type: DATE +Current: 1494330901 +Printable: Út 9. květen 2017, 13:55:01 CEST +Help: Use 'now' as the current time when setting. + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1494330901 +Printable: Út 9. květen 2017, 13:55:01 CEST +Help: Use 'now' as the current time when setting. + +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Setting 4 +Choice: 5 Setting 5 +Choice: 6 Setting 6 +Choice: 7 Setting 7 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/settings/movierecordtarget +Label: Recording Destination +Type: RADIO +Current: None +Choice: 0 None +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 8c,1,4,80,4,40a,1,c3,811,1,0,814,1,0,70c,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +/main/settings/focusarea +Label: Focus Area +Type: TEXT +Current: 1968523079 +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 0 +/main/settings/depthoffield +Label: Depth of Field +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon.Inc +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 77D +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.0.2 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484680 +/main/status/Battery Level +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 50% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF50mm f/1.8 STM +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 033031001535 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 7563 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 RAW + Large Fine JPEG +Choice: 8 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 RAW + Large Fine JPEG +Choice: 8 RAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: RAW + Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 RAW + Large Fine JPEG +Choice: 8 RAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Unknown value 0001 +Choice: 0 Auto +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +Choice: 4 800 +Choice: 5 1600 +Choice: 6 3200 +Choice: 7 6400 +Choice: 8 12800 +Choice: 9 25600 +Choice: 10 Unknown value 0001 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Unknown value 0017 +Choice: 2 Daylight +Choice: 3 Shadow +Choice: 4 Cloudy +Choice: 5 Tungsten +Choice: 6 Fluorescent +Choice: 7 Flash +Choice: 8 Manual +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 5200 +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/continuousaf +Label: Continuous AF +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 On +/main/capturesettings/aspectratio +Label: Aspect Ratio +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Unknown value 0000 +Choice: 1 Unknown value 0002 +Choice: 2 Unknown value 0007 +Choice: 3 Unknown value 0001 +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: Manual +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous high speed +Choice: 2 Continuous low speed +Choice: 3 Timer 10 sec +Choice: 4 Timer 2 sec +Choice: 5 Unknown value 0007 +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Neutral +Choice: 0 Auto +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Unknown value 0088 +Choice: 5 Neutral +Choice: 6 Faithful +Choice: 7 Monochrome +Choice: 8 User defined 1 +Choice: 9 User defined 2 +Choice: 10 User defined 3 +/main/capturesettings/aperture +Label: Aperture +Type: RADIO +Current: 1.8 +Choice: 0 1.8 +Choice: 1 2 +Choice: 2 2.2 +Choice: 3 2.5 +Choice: 4 2.8 +Choice: 5 3.2 +Choice: 6 3.5 +Choice: 7 4 +Choice: 8 4.5 +Choice: 9 5 +Choice: 10 5.6 +Choice: 11 6.3 +Choice: 12 7.1 +Choice: 13 8 +Choice: 14 9 +Choice: 15 10 +Choice: 16 11 +Choice: 17 13 +Choice: 18 14 +Choice: 19 16 +Choice: 20 18 +Choice: 21 20 +Choice: 22 22 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1/160 +Choice: 0 bulb +Choice: 1 30 +Choice: 2 25 +Choice: 3 20 +Choice: 4 15 +Choice: 5 13 +Choice: 6 10 +Choice: 7 8 +Choice: 8 6 +Choice: 9 5 +Choice: 10 4 +Choice: 11 3.2 +Choice: 12 2.5 +Choice: 13 2 +Choice: 14 1.6 +Choice: 15 1.3 +Choice: 16 1 +Choice: 17 0.8 +Choice: 18 0.6 +Choice: 19 0.5 +Choice: 20 0.4 +Choice: 21 0.3 +Choice: 22 1/4 +Choice: 23 1/5 +Choice: 24 1/6 +Choice: 25 1/8 +Choice: 26 1/10 +Choice: 27 1/13 +Choice: 28 1/15 +Choice: 29 1/20 +Choice: 30 1/25 +Choice: 31 1/30 +Choice: 32 1/40 +Choice: 33 1/50 +Choice: 34 1/60 +Choice: 35 1/80 +Choice: 36 1/100 +Choice: 37 1/125 +Choice: 38 1/160 +Choice: 39 1/200 +Choice: 40 1/250 +Choice: 41 1/320 +Choice: 42 1/400 +Choice: 43 1/500 +Choice: 44 1/640 +Choice: 45 1/800 +Choice: 46 1/1000 +Choice: 47 1/1250 +Choice: 48 1/1600 +Choice: 49 1/2000 +Choice: 50 1/2500 +Choice: 51 1/3200 +Choice: 52 1/4000 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 77D +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos7d-mark2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos7d-mark2.txt new file mode 100644 index 00000000..f13fdac0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos7d-mark2.txt @@ -0,0 +1,1115 @@ + Device info: + Manufacturer: Canon Inc. + Model: Canon EOS 7D Mark II + device version: 3-1.0.2 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' + Vendor extension ID: 0x0000000b + Vendor extension version: 100 + Vendor extension description: (null) + Functional Mode: 0x0000 + PTP Standard Version: 100 + Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1014 + 0x1015 + 0x1016 + 0x91d5 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9141 + 0x9142 + 0x9143 + 0x9144 + 0x9145 + 0x9140 + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x915b + 0x915c + 0x915d + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x912d + 0x912e + 0x912f + 0x912c + 0x9130 + 0x9131 + 0x9132 + 0x9133 + 0x9134 + 0x912b + 0x9135 + 0x9136 + 0x9137 + 0x9138 + 0x9139 + 0x913a + 0x913b + 0x913c + 0x913d + 0x913f + 0x91da + 0x91db + 0x91dc + 0x91dd + 0x91de + 0x91d8 + 0x91d9 + 0x91d7 + 0x913e + 0x9113 + 0x9114 + 0x9115 + 0x9116 + 0x91c0 + 0x91c1 + 0x91c2 + 0x91c3 + 0x91c4 + 0x91c5 + 0x91c6 + 0x91c7 + 0x91c8 + 0x91c9 + 0x91ca + 0x91cb + 0x91cc + 0x91ce + 0x91cf + 0x91d0 + 0x91d1 + 0x91d2 + 0x91e1 + 0x91e2 + 0x91e3 + 0x91e4 + 0x91e5 + 0x91e6 + 0x91e7 + 0x91e8 + 0x91e9 + 0x91ea + 0x91eb + 0x91ec + 0x91ed + 0x91ee + 0x91ef + 0x91f8 + 0x91f9 + 0x91f2 + 0x91f3 + 0x91f4 + 0x91f7 + 0x91fb + 0x91fc + 0x91fd + 0x9122 + 0x9123 + 0x9124 + 0x91f5 + 0x91f6 + 0x9033 + 0x9068 + 0x9069 + 0x906a + 0x906b + 0x906c + 0x906d + 0x906e + 0x906f + 0x902f + 0x9050 + 0x9051 + 0x905c + 0x905d + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905b + 0x905f + Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 + 0xc1af + 0xc19a + 0xc19b + Device Properties Supported: + 0xd049 + 0xd402 + 0xd407 + 0xd406 + 0xd303 + 0x5001 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon EOS 7D Mark II + Version: 3-1.0.2 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105), Unknown(b982) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button + Canon Wifi support + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 31902400512 (30424 MB) + Free Space (Bytes): 28801433600 (27467 MB) + Free Space (Images): -1 + +Device Property Summary: +Model ID(0xd049):(read only) (type=0x6) 2147484297 +Property 0xd402:(read only) (type=0xffff) 'Canon EOS 7D Mark II' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 77% (77) + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/cancelautofocus +Label: Cancel Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1426449817 +Printable: Sun 15 Mar 2015 09:03:37 PM CET +Help: Use 'now' as the current time when setting. + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1426449817 +Printable: Sun 15 Mar 2015 09:03:37 PM CET +Help: Use 'now' as the current time when setting. + +/main/settings/reviewtime +Label: Quick Review Time +Type: RADIO +Current: 2 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Setting 4 +Choice: 5 Setting 5 +Choice: 6 Setting 6 +Choice: 7 Setting 7 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/settings/movierecordtarget +Label: Recording Destination +Type: RADIO +Current: None +Choice: 0 None +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: 148,1,4,13c,5,70c,3e,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,fe,ff,0,3,70,30,0,0,0,0,0,0,0,0,0,0,0,14,50,0,0,0,7,3,0,ff,ff,ff,0,ff,ff,ff,706,1,0,70f,2,0,2,80e,1,0,813,1,0, +/main/settings/focusinfo +Label: Focus Info +Type: TEXT +Current: eosversion=4,size=5472x3648,size2=5472x3648,points={{279,776,243,243},{0,776,243,243},{-279,776,243,243},{-559,776,243,243},{-1093,631,243,243},{-1397,631,243,243},{-1700,631,243,243},{-2004,631,243,243},{-1397,315,243,243},{-1700,315,243,243},{-2004,315,243,243},{2004,631,243,243},{1700,631,243,243},{1397,631,243,243},{1093,631,243,243},{559,776,243,243},{1397,315,243,243},{1093,315,243,243},{559,388,243,243},{279,388,243,243},{0,388,243,243},{-279,388,243,243},{-559,388,243,243},{-1093,315,243,243},{-279,0,243,243},{-559,0,243,243},{-1093,0,243,243},{-1397,0,243,243},{-1700,0,243,243},{-2004,0,243,243},{2004,315,243,243},{1700,315,243,243},{-2004,-315,243,243},{2004,0,243,243},{1700,0,243,243},{1397,0,243,243},{1093,0,243,243},{559,0,243,243},{279,0,243,243},{0,0,243,243},{559,-388,243,243},{279,-388,243,243},{0,-388,243,243},{-279,-388,243,243},{-559,-388,243,243},{-1093,-315,243,243},{-1397,-315,243,243},{-1700,-315,243,243},{-1093,-631,243,243},{-1397,-631,243,243},{-1700,-631,243,243},{-2004,-631,243,243},{2004,-315,243,243},{1700,-315,243,243},{1397,-315,243,243},{1093,-315,243,243},{1700,-631,243,243},{1397,-631,243,243},{1093,-631,243,243},{559,-776,243,243},{279,-776,243,243},{0,-776,243,243},{-279,-776,243,243},{-559,-776,243,243},{2004,-631,243,243}},select={},unknown={00ffffffffffffffff010000000000000000000000ffff} +/main/settings/focusarea +Label: Focus Area +Type: TEXT +Current: 127 +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 60 +/main/settings/depthoffield +Label: Depth of Field +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS 7D Mark II +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.0.2 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484297 +/main/status/ptpversion +Label: PTP Version +Type: TEXT +Current: 256 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: 18-300mm +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 043021008974 +/main/status/shuttercounter +Label: Shutter Counter +Type: TEXT +Current: 213 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 10183 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: RAW +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 RAW + Small Fine JPEG (S1 Fine) +Choice: 13 RAW + Small Normal JPEG (S1 Normal) +Choice: 14 RAW + Smaller JPEG (S2) +Choice: 15 RAW + Tiny JPEG (S3) +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 mRAW + Small Fine JPEG (S1 Fine) +Choice: 21 mRAW + Small Normal JPEG (S1 Normal) +Choice: 22 mRAW + Smaller JPEG (S2) +Choice: 23 mRAW + Tiny JPEG (S3) +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 sRAW + Small Fine JPEG (S1 Fine) +Choice: 29 sRAW + Small Normal JPEG (S1 Normal) +Choice: 30 sRAW + Smaller JPEG (S2) +Choice: 31 sRAW + Tiny JPEG (S3) +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: RAW +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 RAW + Small Fine JPEG (S1 Fine) +Choice: 13 RAW + Small Normal JPEG (S1 Normal) +Choice: 14 RAW + Smaller JPEG (S2) +Choice: 15 RAW + Tiny JPEG (S3) +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 mRAW + Small Fine JPEG (S1 Fine) +Choice: 21 mRAW + Small Normal JPEG (S1 Normal) +Choice: 22 mRAW + Smaller JPEG (S2) +Choice: 23 mRAW + Tiny JPEG (S3) +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 sRAW + Small Fine JPEG (S1 Fine) +Choice: 29 sRAW + Small Normal JPEG (S1 Normal) +Choice: 30 sRAW + Smaller JPEG (S2) +Choice: 31 sRAW + Tiny JPEG (S3) +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: RAW +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG (S1 Fine) +Choice: 5 Small Normal JPEG (S1 Normal) +Choice: 6 Smaller JPEG (S2) +Choice: 7 Tiny JPEG (S3) +Choice: 8 RAW + Large Fine JPEG +Choice: 9 RAW + Large Normal JPEG +Choice: 10 RAW + Medium Fine JPEG +Choice: 11 RAW + Medium Normal JPEG +Choice: 12 RAW + Small Fine JPEG (S1 Fine) +Choice: 13 RAW + Small Normal JPEG (S1 Normal) +Choice: 14 RAW + Smaller JPEG (S2) +Choice: 15 RAW + Tiny JPEG (S3) +Choice: 16 mRAW + Large Fine JPEG +Choice: 17 mRAW + Large Normal JPEG +Choice: 18 mRAW + Medium Fine JPEG +Choice: 19 mRAW + Medium Normal JPEG +Choice: 20 mRAW + Small Fine JPEG (S1 Fine) +Choice: 21 mRAW + Small Normal JPEG (S1 Normal) +Choice: 22 mRAW + Smaller JPEG (S2) +Choice: 23 mRAW + Tiny JPEG (S3) +Choice: 24 sRAW + Large Fine JPEG +Choice: 25 sRAW + Large Normal JPEG +Choice: 26 sRAW + Medium Fine JPEG +Choice: 27 sRAW + Medium Normal JPEG +Choice: 28 sRAW + Small Fine JPEG (S1 Fine) +Choice: 29 sRAW + Small Normal JPEG (S1 Normal) +Choice: 30 sRAW + Smaller JPEG (S2) +Choice: 31 sRAW + Tiny JPEG (S3) +Choice: 32 RAW +Choice: 33 mRAW +Choice: 34 sRAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 100 +Choice: 2 125 +Choice: 3 160 +Choice: 4 200 +Choice: 5 250 +Choice: 6 320 +Choice: 7 400 +Choice: 8 500 +Choice: 9 640 +Choice: 10 800 +Choice: 11 1000 +Choice: 12 1250 +Choice: 13 1600 +Choice: 14 2000 +Choice: 15 2500 +Choice: 16 3200 +Choice: 17 4000 +Choice: 18 5000 +Choice: 19 6400 +Choice: 20 8000 +Choice: 21 10000 +Choice: 22 12800 +Choice: 23 16000 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +Choice: 8 Color Temperature +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 5200 +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: AdobeRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.6 +Choice: 2 -4.3 +Choice: 3 -4 +Choice: 4 -3.6 +Choice: 5 -3.3 +Choice: 6 -3 +Choice: 7 -2.6 +Choice: 8 -2.3 +Choice: 9 -2 +Choice: 10 -1.6 +Choice: 11 -1.3 +Choice: 12 -1.0 +Choice: 13 -0.6 +Choice: 14 -0.3 +Choice: 15 0 +Choice: 16 0.3 +Choice: 17 0.6 +Choice: 18 1.0 +Choice: 19 1.3 +Choice: 20 1.6 +Choice: 21 2 +Choice: 22 2.3 +Choice: 23 2.6 +Choice: 24 3 +Choice: 25 3.3 +Choice: 26 3.6 +Choice: 27 4 +Choice: 28 4.3 +Choice: 29 4.6 +Choice: 30 5 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: One Shot +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: P +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous high speed +Choice: 2 Continuous low speed +Choice: 3 Single silent +Choice: 4 Continuous silent +Choice: 5 Timer 10 sec +Choice: 6 Timer 2 sec +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Standard +Choice: 0 Auto +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Neutral +Choice: 5 Faithful +Choice: 6 Monochrome +Choice: 7 User defined 1 +Choice: 8 User defined 2 +Choice: 9 User defined 3 +/main/capturesettings/aperture +Label: Aperture +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Unknown value 0000 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: auto +Choice: 0 auto +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +Choice: 7 +/- 2 1/3 +Choice: 8 +/- 2 2/3 +Choice: 9 +/- 3 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: -2147482999 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 7D Mark II +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 77 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. +UNKNOWN PTP Property d105 changed +UNKNOWN PTP Property d108 changed +UNKNOWN PTP Property d106 changed +UNKNOWN PTP Property d107 changed +UNKNOWN PTP Property d109 changed +UNKNOWN PTP Property d10a changed +UNKNOWN PTP Property d10b changed +UNKNOWN PTP Property d10c changed +UNKNOWN PTP Property d10d changed +UNKNOWN PTP Property d10e changed +UNKNOWN PTP Property d10f changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d114 changed +UNKNOWN PTP Property d116 changed +UNKNOWN PTP Property d119 changed +UNKNOWN PTP Property d110 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d103 changed +UNKNOWN PTP Property d104 changed +UNKNOWN PTP Property d11d changed +UNKNOWN PTP Property d111 changed +UNKNOWN PTP Property d112 changed +UNKNOWN PTP Property d113 changed +UNKNOWN PTP Property d17c changed +UNKNOWN PTP Property d17d changed +UNKNOWN PTP Property d17e changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d121 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d156 changed +UNKNOWN PTP Property d150 changed +UNKNOWN PTP Property d151 changed +UNKNOWN PTP Property d152 changed +UNKNOWN PTP Property d153 changed +UNKNOWN PTP Property d154 changed +UNKNOWN PTP Property d155 changed +UNKNOWN PTP Property d160 changed +UNKNOWN PTP Property d161 changed +UNKNOWN PTP Property d162 changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a1 changed +UNKNOWN PTP Property d1a8 changed +UNKNOWN PTP Property d1a7 changed +UNKNOWN PTP Property d1ab changed +UNKNOWN PTP Property d1b0 changed +UNKNOWN PTP Property d1b1 changed +UNKNOWN PTP Property d1b2 changed +UNKNOWN PTP Property d1b3 changed +UNKNOWN PTP Property d1b4 changed +UNKNOWN PTP Property d1b5 changed +UNKNOWN PTP Property d1b6 changed +UNKNOWN PTP Property d1a9 changed +UNKNOWN PTP Property d146 changed +UNKNOWN PTP Property d1ac changed +UNKNOWN PTP Property d1aa changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d11f changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1d5 changed +UNKNOWN PTP Property d1ba changed +UNKNOWN PTP Property d1cd changed +UNKNOWN PTP Property d1bc changed +UNKNOWN PTP Property d1b8 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1d8 changed +UNKNOWN PTP Property d1b7 changed +UNKNOWN PTP Property d1cb changed +UNKNOWN PTP Property d1db changed +UNKNOWN PTP Property d1dc changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d1a4 changed +UNKNOWN PTP Property d1df changed +UNKNOWN PTP Property d1bd changed +UNKNOWN PTP Property d1c1 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1c4 changed +UNKNOWN PTP Property d1c2 changed +UNKNOWN PTP Property d1c5 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d195 changed +UNKNOWN PTP Property d196 changed +UNKNOWN PTP Property d197 changed +UNKNOWN PTP Property d198 changed +UNKNOWN PTP Property d1dd changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d199 changed +UNKNOWN PTP Property d138 changed +UNKNOWN PTP Property d139 changed +UNKNOWN PTP Property d13a changed +UNKNOWN PTP Property d13b changed +UNKNOWN PTP Property d13c changed +UNKNOWN PTP Property d13d changed +UNKNOWN PTP Property d14d changed +UNKNOWN PTP Property d19a changed +UNKNOWN PTP Property d19c changed +UNKNOWN PTP Property d177 changed +UNKNOWN PTP Property d178 changed +UNKNOWN PTP Property d179 changed +UNKNOWN PTP Property d17a changed +UNKNOWN PTP Property d17b changed +UNKNOWN PTP Property d1c9 changed +UNKNOWN PTP Property d19f changed +UNKNOWN PTP Property d175 changed +UNKNOWN PTP Property d14c changed +UNKNOWN PTP Property d14b changed +UNKNOWN PTP Property d13e changed +UNKNOWN PTP Property d1c6 changed +UNKNOWN Button 1 +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d103 changed +UNKNOWN OLCInfo event 0x0010 content 04010353 +UNKNOWN OLCInfo event 0x0020 content 000000000000 +UNKNOWN OLCInfo exposure indicator 1,1,0.0 (00000000) +UNKNOWN OLCInfo event 0x0080 content 00000000 +UNKNOWN OLCInfo event 0x0100 content 000000000000 +UNKNOWN OLCInfo event 0x0200 content 00000000000000 +UNKNOWN OLCInfo event 0x0400 content 00000000000000 +UNKNOWN OLCInfo event 0x0800 content 0000000000000008 +UNKNOWN OLCInfo event 0x1000 content 00 +UNKNOWN OLCInfo event mask=1fff +UNKNOWN PTP Property d115 changed +UNKNOWN PTP Property d1d0 changed +UNKNOWN PTP Property d1d1 changed +UNKNOWN PTP Property d1af changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d1c3 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d105 changed +UNKNOWN PTP Property d108 changed +UNKNOWN PTP Property d106 changed +UNKNOWN PTP Property d107 changed +UNKNOWN PTP Property d109 changed +UNKNOWN PTP Property d10a changed +UNKNOWN PTP Property d10b changed +UNKNOWN PTP Property d10c changed +UNKNOWN PTP Property d10d changed +UNKNOWN PTP Property d10e changed +UNKNOWN PTP Property d10f changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d114 changed +UNKNOWN PTP Property d116 changed +UNKNOWN PTP Property d119 changed +UNKNOWN PTP Property d110 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d103 changed +UNKNOWN PTP Property d104 changed +UNKNOWN PTP Property d11d changed +UNKNOWN PTP Property d111 changed +UNKNOWN PTP Property d112 changed +UNKNOWN PTP Property d113 changed +UNKNOWN PTP Property d17c changed +UNKNOWN PTP Property d17d changed +UNKNOWN PTP Property d17e changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d121 changed +UNKNOWN PTP Property d122 changed +UNKNOWN PTP Property d156 changed +UNKNOWN PTP Property d150 changed +UNKNOWN PTP Property d151 changed +UNKNOWN PTP Property d152 changed +UNKNOWN PTP Property d153 changed +UNKNOWN PTP Property d154 changed +UNKNOWN PTP Property d155 changed +UNKNOWN PTP Property d160 changed +UNKNOWN PTP Property d161 changed +UNKNOWN PTP Property d162 changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a0 changed +UNKNOWN PTP Property d1a1 changed +UNKNOWN PTP Property d1a8 changed +UNKNOWN PTP Property d1a7 changed +UNKNOWN PTP Property d1ab changed +UNKNOWN PTP Property d1b0 changed +UNKNOWN PTP Property d1b1 changed +UNKNOWN PTP Property d1b2 changed +UNKNOWN PTP Property d1b3 changed +UNKNOWN PTP Property d1b4 changed +UNKNOWN PTP Property d1b5 changed +UNKNOWN PTP Property d1b6 changed +UNKNOWN PTP Property d1a9 changed +UNKNOWN PTP Property d146 changed +UNKNOWN PTP Property d1ac changed +UNKNOWN PTP Property d1aa changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d11f changed +UNKNOWN PTP Property d1d9 changed +UNKNOWN PTP Property d1d5 changed +UNKNOWN PTP Property d1ba changed +UNKNOWN PTP Property d1cd changed +UNKNOWN PTP Property d1bc changed +UNKNOWN PTP Property d1b8 changed +UNKNOWN PTP Property d1d3 changed +UNKNOWN PTP Property d1d8 changed +UNKNOWN PTP Property d1b7 changed +UNKNOWN PTP Property d1cb changed +UNKNOWN PTP Property d1db changed +UNKNOWN PTP Property d1dc changed +UNKNOWN PTP Property d1a3 changed +UNKNOWN PTP Property d1a4 changed +UNKNOWN PTP Property d1df changed +UNKNOWN PTP Property d1bd changed +UNKNOWN PTP Property d1c1 changed +UNKNOWN PTP Property d1c0 changed +UNKNOWN PTP Property d1bf changed +UNKNOWN PTP Property d1c4 changed +UNKNOWN PTP Property d1c2 changed +UNKNOWN PTP Property d1c5 changed +UNKNOWN PTP Property d194 changed +UNKNOWN PTP Property d195 changed +UNKNOWN PTP Property d196 changed +UNKNOWN PTP Property d197 changed +UNKNOWN PTP Property d198 changed +UNKNOWN PTP Property d1dd changed +UNKNOWN PTP Property d1c7 changed +UNKNOWN PTP Property d199 changed +UNKNOWN PTP Property d138 changed +UNKNOWN PTP Property d139 changed +UNKNOWN PTP Property d13a changed +UNKNOWN PTP Property d13b changed +UNKNOWN PTP Property d13c changed +UNKNOWN PTP Property d13d changed +UNKNOWN PTP Property d14d changed +UNKNOWN PTP Property d19a changed +UNKNOWN PTP Property d19c changed +UNKNOWN PTP Property d177 changed +UNKNOWN PTP Property d178 changed +UNKNOWN PTP Property d179 changed +UNKNOWN PTP Property d17a changed +UNKNOWN PTP Property d17b changed +UNKNOWN PTP Property d1c9 changed +UNKNOWN PTP Property d19f changed +UNKNOWN PTP Property d175 changed +UNKNOWN PTP Property d14c changed +UNKNOWN PTP Property d14b changed +UNKNOWN PTP Property d13e changed +UNKNOWN PTP Property d1c6 changed +UNKNOWN Button 1 +UNKNOWN PTP Property d102 changed +UNKNOWN PTP Property d101 changed +UNKNOWN PTP Property d103 changed +UNKNOWN OLCInfo event 0x0010 content 04010353 +UNKNOWN OLCInfo event 0x0020 content 000000000000 +UNKNOWN OLCInfo exposure indicator 1,1,0.0 (00000000) +UNKNOWN OLCInfo event 0x0080 content 00000000 +UNKNOWN OLCInfo event 0x0100 content 000000000000 +UNKNOWN OLCInfo event 0x0200 content 00000000000000 +UNKNOWN OLCInfo event 0x0400 content 00000000000000 +UNKNOWN OLCInfo event 0x0800 content 0000000000000008 +UNKNOWN OLCInfo event 0x1000 content 00 +UNKNOWN OLCInfo event mask=1fff +UNKNOWN PTP Property d115 changed +UNKNOWN PTP Property d1d0 changed +UNKNOWN PTP Property d1d1 changed +UNKNOWN PTP Property d1af changed +UNKNOWN PTP Property d11b changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d120 changed +UNKNOWN PTP Property d11e changed +UNKNOWN PTP Property d11c changed +UNKNOWN PTP Property d11f changed +UNKNOWN PTP Property d11b changed +UNKNOWN OLCInfo event 0x0010 content 0401ffff +UNKNOWN OLCInfo event mask=10 +UNKNOWN OLCInfo event 0x0010 content 04010353 +UNKNOWN OLCInfo event mask=10 +New file is in location /store_00020001/DCIM/100EOS7D/_X4A0189.CR2 on the camera +Bus 001 Device 002: ID 0c45:63e4 Microdia +Bus 001 Device 004: ID 04a9:326f Canon, Inc. +Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub +Bus 005 Device 002: ID 413c:02b0 Dell Computer Corp. +Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub +Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub +Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub +Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos7d.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos7d.txt new file mode 100644 index 00000000..bc5fc20a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-eos7d.txt @@ -0,0 +1,4654 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon EOS 7D + device version: 3-1.1.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 200 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1001 + 0x1002 + 0x1003 + 0x1006 + 0x1004 + 0x9101 + 0x1005 + 0x9102 + 0x1007 + 0x1008 + 0x9103 + 0x1009 + 0x9104 + 0x100a + 0x101b + 0x9107 + 0x100c + 0x100d + 0x100b + 0x9105 + 0x100f + 0x9106 + 0x9110 + 0x9127 + 0x910b + 0x9108 + 0x9109 + 0x910c + 0x910e + 0x910f + 0x9125 + 0x9126 + 0x9115 + 0x9114 + 0x9113 + 0x9116 + 0x9117 + 0x9120 + 0x91f0 + 0x9118 + 0x9121 + 0x91f1 + 0x911d + 0x910a + 0x911b + 0x911c + 0x911e + 0x911a + 0x9153 + 0x9154 + 0x9160 + 0x9155 + 0x9157 + 0x9158 + 0x9159 + 0x915a + 0x911f + 0x91fe + 0x91ff + 0x9128 + 0x9129 + 0x912d + 0x912e + 0x912f + 0x912c + 0x9130 + 0x9131 + 0x9132 + 0x9133 + 0x9134 + 0x912b + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x91c0 + 0x91c1 + 0x91c2 + 0x91c3 + 0x91c4 + 0x91c5 + 0x91c6 + 0x91c7 + 0x91c8 + 0x91c9 + 0x91ca + 0x91cb + 0x91cc + 0x91ce + 0x91cf + 0x91d0 + 0x91d1 + 0x91d2 + 0x91e1 + 0x91e2 + 0x91e3 + 0x91e4 + 0x91e5 + 0x91e6 + 0x91e7 + 0x91e8 + 0x91e9 + 0x91ea + 0x91eb + 0x91ec + 0x91ed + 0x91ee + 0x91ef + 0x91f8 + 0x91f9 + 0x91f2 + 0x91f3 + 0x91f4 + 0x91f7 + 0x9122 + 0x9123 + 0x9124 + 0x91f5 + 0x91f6 + 0x9052 + 0x9053 + 0x9057 + 0x9058 + 0x9059 + 0x905a + 0x905f +Events Supported: + 0x4009 + 0x4004 + 0x4005 + 0x4003 + 0x4002 + 0x4007 + 0xc101 +Device Properties Supported: + 0xd402 + 0xd407 + 0xd406 + 0xd303 + +EOS deviceinfo: + event: c181 + event: c182 + event: c183 + event: c184 + event: c185 + event: c186 + event: c187 + event: c188 + event: c189 + event: c18a + event: c18b + event: c18d + event: c18e + event: c18f + event: c190 + event: c191 + event: c1a0 + event: c1a1 + deviceprop: d105 + deviceprop: d108 + deviceprop: d106 + deviceprop: d107 + deviceprop: d109 + deviceprop: d10a + deviceprop: d10b + deviceprop: d10c + deviceprop: d10d + deviceprop: d10e + deviceprop: d10f + deviceprop: d11b + deviceprop: d114 + deviceprop: d116 + deviceprop: d119 + deviceprop: d11a + deviceprop: d110 + deviceprop: d115 + deviceprop: d101 + deviceprop: d102 + deviceprop: d103 + deviceprop: d104 + deviceprop: d11d + deviceprop: d111 + deviceprop: d112 + deviceprop: d113 + deviceprop: d120 + deviceprop: d121 + deviceprop: d123 + deviceprop: d150 + deviceprop: d151 + deviceprop: d152 + deviceprop: d153 + deviceprop: d154 + deviceprop: d155 + deviceprop: d160 + deviceprop: d161 + deviceprop: d162 + deviceprop: d170 + deviceprop: d171 + deviceprop: d172 + deviceprop: d11c + deviceprop: d1a0 + deviceprop: d1a1 + deviceprop: d1a2 + deviceprop: d1a5 + deviceprop: d1a8 + deviceprop: d1dd + deviceprop: d1a7 + deviceprop: d1a3 + deviceprop: d1a4 + deviceprop: d1ab + deviceprop: d1b0 + deviceprop: d1b1 + deviceprop: d1b2 + deviceprop: d1b3 + deviceprop: d1b4 + deviceprop: d1b5 + deviceprop: d1b6 + deviceprop: d1a9 + deviceprop: d145 + deviceprop: d1ac + deviceprop: d1ad + deviceprop: d1ae + deviceprop: d1aa + deviceprop: d11e + deviceprop: d11f + deviceprop: d11f + deviceprop: d1af + deviceprop: d1d0 + deviceprop: d1d1 + deviceprop: d1d9 + deviceprop: d1ba + deviceprop: d1be + deviceprop: d1d6 + deviceprop: d1bc + deviceprop: d1d4 + deviceprop: d1b8 + deviceprop: d1d3 + deviceprop: d1d8 + deviceprop: d17f + deviceprop: d1b7 + deviceprop: d1b9 + deviceprop: d1db + deviceprop: d1dc + deviceprop: d1df + deviceprop: d1bd + deviceprop: d1c1 + deviceprop: d1c0 + deviceprop: d1bf + deviceprop: d1c2 + deviceprop: d1c3 + unk: 0000 + unk: 0001 + unk: 0002 + unk: 0004 + + +/main/actions/bulb + +Label: Bulb Mode +Type: TOGGLE +Current: 2 + +/main/actions/syncdatetime + +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 + +/main/actions/autofocusdrive + +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 + +/main/actions/manualfocusdrive + +Label: Drive Canon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 + +/main/settings/datetime + +Label: Camera Date and Time +Type: DATE +Current: 1230849473 +Printable: Thu 01 Jan 2009 11:37:53 PM CET + +/main/settings/reviewtime + +Label: Quick Review Time +Type: RADIO +Current: 8 seconds +Choice: 0 None +Choice: 1 2 seconds +Choice: 2 4 seconds +Choice: 3 8 seconds +Choice: 4 Hold + +/main/settings/ownername + +Label: Owner Name +Type: TEXT +Current: + +/main/settings/artist + +Label: Artist +Type: TEXT +Current: + +/main/settings/copyright + +Label: Copyright +Type: TEXT +Current: + +/main/settings/capturetarget + +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card + +/main/settings/capture + +Label: Capture +Type: TOGGLE +Current: 2 + +/main/status/model + +Label: Camera Model +Type: TEXT +Current: 2147484240 + +/main/status/ptpversion + +Label: PTP Version +Type: TEXT +Current: 256 + +/main/status/batterylevel + +Label: Battery Level +Type: TEXT +Current: 100% + +/main/status/lensname + +Label: Lens Name +Type: TEXT +Current: EF-S17-55mm f/2.8 IS USM + +/main/status/serialnumber + +Label: Serial Number +Type: TEXT +Current: 38031xxxx + +/main/status/shuttercounter + +Label: Shutter Counter +Type: TEXT +Current: 49 + +/main/status/availableshots + +Label: Available Shots +Type: TEXT +Current: 154537 + +/main/imgsettings/imageformat + +Label: Image Format +Type: RADIO +Current: RAW +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 RAW + Large Fine JPEG +Choice: 7 RAW + Large Normal JPEG +Choice: 8 RAW + Medium Fine JPEG +Choice: 9 RAW + Medium Normal JPEG +Choice: 10 RAW + Small Fine JPEG +Choice: 11 RAW + Small Normal JPEG +Choice: 12 sRAW1 + Large Fine JPEG +Choice: 13 sRAW1 + Large Normal JPEG +Choice: 14 sRAW1 + Medium Fine JPEG +Choice: 15 sRAW1 + Medium Normal JPEG +Choice: 16 sRAW1 + Small Fine JPEG +Choice: 17 sRAW1 + Small Normal JPEG +Choice: 18 sRAW2 + Large Fine JPEG +Choice: 19 sRAW2 + Large Normal JPEG +Choice: 20 sRAW2 + Medium Fine JPEG +Choice: 21 sRAW2 + Medium Normal JPEG +Choice: 22 sRAW2 + Small Fine JPEG +Choice: 23 sRAW2 + Small Normal JPEG +Choice: 24 RAW +Choice: 25 sRAW1 +Choice: 26 sRAW2 + +/main/imgsettings/imageformatcf + +Label: Image Format CF +Type: RADIO +Current: RAW +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 RAW + Large Fine JPEG +Choice: 7 RAW + Large Normal JPEG +Choice: 8 RAW + Medium Fine JPEG +Choice: 9 RAW + Medium Normal JPEG +Choice: 10 RAW + Small Fine JPEG +Choice: 11 RAW + Small Normal JPEG +Choice: 12 sRAW1 + Large Fine JPEG +Choice: 13 sRAW1 + Large Normal JPEG +Choice: 14 sRAW1 + Medium Fine JPEG +Choice: 15 sRAW1 + Medium Normal JPEG +Choice: 16 sRAW1 + Small Fine JPEG +Choice: 17 sRAW1 + Small Normal JPEG +Choice: 18 sRAW2 + Large Fine JPEG +Choice: 19 sRAW2 + Large Normal JPEG +Choice: 20 sRAW2 + Medium Fine JPEG +Choice: 21 sRAW2 + Medium Normal JPEG +Choice: 22 sRAW2 + Small Fine JPEG +Choice: 23 sRAW2 + Small Normal JPEG +Choice: 24 RAW +Choice: 25 sRAW1 +Choice: 26 sRAW2 + +/main/imgsettings/imageformatexthd + +Label: Image Format Ext HD +Type: RADIO +Current: RAW +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 RAW + Large Fine JPEG +Choice: 7 RAW + Large Normal JPEG +Choice: 8 RAW + Medium Fine JPEG +Choice: 9 RAW + Medium Normal JPEG +Choice: 10 RAW + Small Fine JPEG +Choice: 11 RAW + Small Normal JPEG +Choice: 12 sRAW1 + Large Fine JPEG +Choice: 13 sRAW1 + Large Normal JPEG +Choice: 14 sRAW1 + Medium Fine JPEG +Choice: 15 sRAW1 + Medium Normal JPEG +Choice: 16 sRAW1 + Small Fine JPEG +Choice: 17 sRAW1 + Small Normal JPEG +Choice: 18 sRAW2 + Large Fine JPEG +Choice: 19 sRAW2 + Large Normal JPEG +Choice: 20 sRAW2 + Medium Fine JPEG +Choice: 21 sRAW2 + Medium Normal JPEG +Choice: 22 sRAW2 + Small Fine JPEG +Choice: 23 sRAW2 + Small Normal JPEG +Choice: 24 RAW +Choice: 25 sRAW1 +Choice: 26 sRAW2 + +/main/imgsettings/iso + +Label: ISO Speed +Type: RADIO +Current: 1600 +Choice: 0 Auto +Choice: 1 100 +Choice: 2 125 +Choice: 3 160 +Choice: 4 200 +Choice: 5 250 +Choice: 6 320 +Choice: 7 400 +Choice: 8 500 +Choice: 9 640 +Choice: 10 800 +Choice: 11 1000 +Choice: 12 1250 +Choice: 13 1600 +Choice: 14 2000 +Choice: 15 2500 +Choice: 16 3200 +Choice: 17 4000 +Choice: 18 5000 +Choice: 19 6400 +Choice: 20 12800 + +/main/imgsettings/whitebalance + +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Daylight +Choice: 2 Shadow +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent +Choice: 6 Flash +Choice: 7 Manual +Choice: 8 Color Temperature + +/main/imgsettings/whitebalanceadjusta + +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 + +/main/imgsettings/whitebalanceadjustb + +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 + +/main/imgsettings/whitebalancexa + +Label: WhiteBalance X A +Type: TEXT +Current: 0 + +/main/imgsettings/whitebalancexb + +Label: WhiteBalance X B +Type: TEXT +Current: 0 + +/main/capturesettings/drivemode + +Label: Drive Mode +Type: RADIO +Current: Unknown value 0005 +Choice: 0 Single +Choice: 1 Unknown value 0004 +Choice: 2 Unknown value 0005 +Choice: 3 Timer 2 sec +Choice: 4 Timer 10 sec + +/main/capturesettings/picturestyle + +Label: Picture Style +Type: RADIO +Current: Standard +Choice: 0 Standard +Choice: 1 Portrait +Choice: 2 Landscape +Choice: 3 Neutral +Choice: 4 Faithful +Choice: 5 Monochrome +Choice: 6 User defined 1 +Choice: 7 User defined 2 +Choice: 8 User defined 3 + +/main/capturesettings/aperture + +Label: Aperture +Type: RADIO +Current: 5.6 +Choice: 0 2.8 +Choice: 1 3.2 +Choice: 2 3.5 +Choice: 3 4 +Choice: 4 4.5 +Choice: 5 5 +Choice: 6 5.6 +Choice: 7 6.3 +Choice: 8 7.1 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 13 +Choice: 14 14 +Choice: 15 16 +Choice: 16 18 +Choice: 17 20 +Choice: 18 22 + +/main/capturesettings/shutterspeed + +Label: Shutter Speed +Type: RADIO +Current: 1/125 +Choice: 0 30 +Choice: 1 25 +Choice: 2 20 +Choice: 3 15 +Choice: 4 13 +Choice: 5 10 +Choice: 6 8 +Choice: 7 6 +Choice: 8 5 +Choice: 9 4 +Choice: 10 3.2 +Choice: 11 2.5 +Choice: 12 2 +Choice: 13 1.6 +Choice: 14 1.3 +Choice: 15 1 +Choice: 16 0.8 +Choice: 17 0.6 +Choice: 18 0.5 +Choice: 19 0.4 +Choice: 20 0.3 +Choice: 21 1/4 +Choice: 22 1/5 +Choice: 23 1/6 +Choice: 24 1/8 +Choice: 25 1/10 +Choice: 26 1/13 +Choice: 27 1/15 +Choice: 28 1/20 +Choice: 29 1/25 +Choice: 30 1/30 +Choice: 31 1/40 +Choice: 32 1/50 +Choice: 33 1/60 +Choice: 34 1/80 +Choice: 35 1/100 +Choice: 36 1/125 +Choice: 37 1/160 +Choice: 38 1/200 +Choice: 39 1/250 +Choice: 40 1/320 +Choice: 41 1/400 +Choice: 42 1/500 +Choice: 43 1/640 +Choice: 44 1/800 +Choice: 45 1/1000 +Choice: 46 1/1250 +Choice: 47 1/1600 +Choice: 48 1/2000 +Choice: 49 1/2500 +Choice: 50 1/3200 +Choice: 51 1/4000 +Choice: 52 1/5000 +Choice: 53 1/6400 +Choice: 54 1/8000 + +/main/capturesettings/meteringmode + +Label: Metering Mode +Type: RADIO +Current: evaluative +Choice: 0 evaluative +Choice: 1 partial +Choice: 2 spot +Choice: 3 center-weighted average + +/main/capturesettings/bracketmode + +Label: Bracket Mode +Type: TEXT +Current: 0 + +/main/capturesettings/aeb + +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +Choice: 7 Unknown value 0013 +Choice: 8 Unknown value 0015 +Choice: 9 +/- 3 + +/main/other/d402 + +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS 7D + +/main/other/d407 + +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 + +/main/other/d406 + +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator + +/main/other/d303 + +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +......... From Adrians EOS 7D ............... +/main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 +/main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 +/main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RANGE + Current: 0 + Bottom: -32767 + Top: 32767 + Step: 1 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1262869643 + Printable: Thu Jan 7 14:07:23 2010 +/main/settings/ownername + Label: Owner Name + Type: TEXT + Current: +/main/settings/artist + Label: Artist + Type: TEXT + Current: +/main/settings/copyright + Label: Copyright + Type: TEXT + Current: +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 +/main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 +/main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% +/main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF70-200mm f/4L IS USM +/main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 +/main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 35 +/main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 3606 +/main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 +/main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 +/main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 100 + Choice: 2 125 + Choice: 3 160 + Choice: 4 200 + Choice: 5 250 + Choice: 6 320 + Choice: 7 400 + Choice: 8 500 + Choice: 9 640 + Choice: 10 800 + Choice: 11 1000 + Choice: 12 1250 + Choice: 13 1600 + Choice: 14 2000 + Choice: 15 2500 + Choice: 16 3200 + Choice: 17 4000 + Choice: 18 5000 + Choice: 19 6400 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual + Choice: 8 Color Temperature +/main/imgsettings/whitebalanceadjusta + Label: WhiteBalance Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 +/main/imgsettings/whitebalanceadjustb + Label: WhiteBalance Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 +/main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 +/main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 Unknown value 00d8 + Choice: 1 Unknown value 00db + Choice: 2 Unknown value 00dd + Choice: 3 Unknown value 00e0 + Choice: 4 Unknown value 00e3 + Choice: 5 Unknown value 00e5 + Choice: 6 Unknown value 00e8 + Choice: 7 Unknown value 00eb + Choice: 8 Unknown value 00ed + Choice: 9 -2 + Choice: 10 -1.6 + Choice: 11 -1.3 + Choice: 12 -1.0 + Choice: 13 -0.6 + Choice: 14 -0.3 + Choice: 15 0 + Choice: 16 0.3 + Choice: 17 0.6 + Choice: 18 1.0 + Choice: 19 1.3 + Choice: 20 1.6 + Choice: 21 2 + Choice: 22 Unknown value 0013 + Choice: 23 Unknown value 0015 + Choice: 24 Unknown value 0018 + Choice: 25 Unknown value 001b + Choice: 26 Unknown value 001d + Choice: 27 Unknown value 0020 + Choice: 28 Unknown value 0023 + Choice: 29 Unknown value 0025 + Choice: 30 Unknown value 0028 +/main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Unknown value 0004 + Choice: 2 Unknown value 0005 + Choice: 3 Timer 2 sec + Choice: 4 Timer 10 sec +/main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 +/main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 partial + Choice: 2 spot + Choice: 3 center-weighted average +/main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 +/main/capturesettings/aeb + Label: Auto Exposure Bracketing + Type: RADIO + Current: off + Choice: 0 off + Choice: 1 +/- 1/3 + Choice: 2 +/- 2/3 + Choice: 3 +/- 1 + Choice: 4 +/- 1 1/3 + Choice: 5 +/- 1 2/3 + Choice: 6 +/- 2 + Choice: 7 Unknown value 0013 + Choice: 8 Unknown value 0015 + Choice: 9 +/- 3 +/main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator +/main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 + +eos-7d-auto.log + /main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 + /main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + /main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + /main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + /main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1267440710 + Printable: Mon Mar 1 11:51:50 2010 + /main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold + /main/settings/ownername + Label: Owner Name + Type: TEXT + Current: + /main/settings/artist + Label: Artist + Type: TEXT + Current: Adrian Schroeter + /main/settings/copyright + Label: Copyright + Type: TEXT + Current: + /main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card + /main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 + /main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 + /main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 + /main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% + /main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S17-55mm f/2.8 IS USM + /main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 + /main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 1266 + /main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 3526 + /main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 + /main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 + /main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Timer 10 sec + /main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 + /main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D + /main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + /main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator + /main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 + +eos-7d-Av.log + /main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 + /main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + /main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + /main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + /main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1267440877 + Printable: Mon Mar 1 11:54:37 2010 + /main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold + /main/settings/ownername + Label: Owner Name + Type: TEXT + Current: + /main/settings/artist + Label: Artist + Type: TEXT + Current: Adrian Schroeter + /main/settings/copyright + Label: Copyright + Type: TEXT + Current: + /main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card + /main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 + /main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 + /main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 + /main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% + /main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S17-55mm f/2.8 IS USM + /main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 + /main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 1266 + /main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 3526 + /main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 100 + Choice: 2 125 + Choice: 3 160 + Choice: 4 200 + Choice: 5 250 + Choice: 6 320 + Choice: 7 400 + Choice: 8 500 + Choice: 9 640 + Choice: 10 800 + Choice: 11 1000 + Choice: 12 1250 + Choice: 13 1600 + Choice: 14 2000 + Choice: 15 2500 + Choice: 16 3200 + Choice: 17 4000 + Choice: 18 5000 + Choice: 19 6400 + Choice: 20 12800 + /main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual + Choice: 8 Color Temperature + /main/imgsettings/whitebalanceadjusta + Label: WhiteBalance Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalanceadjustb + Label: WhiteBalance Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 + /main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 + /main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: -0.6 + Choice: 0 Unknown value 00d8 + Choice: 1 Unknown value 00db + Choice: 2 Unknown value 00dd + Choice: 3 Unknown value 00e0 + Choice: 4 Unknown value 00e3 + Choice: 5 Unknown value 00e5 + Choice: 6 Unknown value 00e8 + Choice: 7 Unknown value 00eb + Choice: 8 Unknown value 00ed + Choice: 9 -2 + Choice: 10 -1.6 + Choice: 11 -1.3 + Choice: 12 -1.0 + Choice: 13 -0.6 + Choice: 14 -0.3 + Choice: 15 0 + Choice: 16 0.3 + Choice: 17 0.6 + Choice: 18 1.0 + Choice: 19 1.3 + Choice: 20 1.6 + Choice: 21 2 + Choice: 22 Unknown value 0013 + Choice: 23 Unknown value 0015 + Choice: 24 Unknown value 0018 + Choice: 25 Unknown value 001b + Choice: 26 Unknown value 001d + Choice: 27 Unknown value 0020 + Choice: 28 Unknown value 0023 + Choice: 29 Unknown value 0025 + Choice: 30 Unknown value 0028 + /main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Continuous high speed + Choice: 2 Continuous low speed + Choice: 3 Timer 2 sec + Choice: 4 Timer 10 sec + /main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 + /main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 2.8 + Choice: 0 2.8 + Choice: 1 3.2 + Choice: 2 3.5 + Choice: 3 4 + Choice: 4 4.5 + Choice: 5 5 + Choice: 6 5.6 + Choice: 7 6.3 + Choice: 8 7.1 + Choice: 9 8 + Choice: 10 9 + Choice: 11 10 + Choice: 12 11 + Choice: 13 13 + Choice: 14 14 + Choice: 15 16 + Choice: 16 18 + Choice: 17 20 + Choice: 18 22 + /main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 partial + Choice: 2 spot + Choice: 3 center-weighted average + /main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 + /main/capturesettings/aeb + Label: Auto Exposure Bracketing + Type: RADIO + Current: off + Choice: 0 off + Choice: 1 +/- 1/3 + Choice: 2 +/- 2/3 + Choice: 3 +/- 1 + Choice: 4 +/- 1 1/3 + Choice: 5 +/- 1 2/3 + Choice: 6 +/- 2 + Choice: 7 +/- 2 1/3 + Choice: 8 +/- 2 2/3 + Choice: 9 +/- 3 + /main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D + /main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + /main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator + /main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 + +eos-7d-B.log + /main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 + /main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + /main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + /main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + /main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1267440904 + Printable: Mon Mar 1 11:55:04 2010 + /main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold + /main/settings/ownername + Label: Owner Name + Type: TEXT + Current: + /main/settings/artist + Label: Artist + Type: TEXT + Current: Adrian Schroeter + /main/settings/copyright + Label: Copyright + Type: TEXT + Current: + /main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card + /main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 + /main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 + /main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 + /main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% + /main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S17-55mm f/2.8 IS USM + /main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 + /main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 1266 + /main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 3526 + /main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 100 + Choice: 2 125 + Choice: 3 160 + Choice: 4 200 + Choice: 5 250 + Choice: 6 320 + Choice: 7 400 + Choice: 8 500 + Choice: 9 640 + Choice: 10 800 + Choice: 11 1000 + Choice: 12 1250 + Choice: 13 1600 + Choice: 14 2000 + Choice: 15 2500 + Choice: 16 3200 + Choice: 17 4000 + Choice: 18 5000 + Choice: 19 6400 + Choice: 20 12800 + /main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual + Choice: 8 Color Temperature + /main/imgsettings/whitebalanceadjusta + Label: WhiteBalance Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalanceadjustb + Label: WhiteBalance Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 + /main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 + /main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Continuous high speed + Choice: 2 Continuous low speed + Choice: 3 Timer 2 sec + Choice: 4 Timer 10 sec + /main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 + /main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 5.6 + Choice: 0 2.8 + Choice: 1 3.2 + Choice: 2 3.5 + Choice: 3 4 + Choice: 4 4.5 + Choice: 5 5 + Choice: 6 5.6 + Choice: 7 6.3 + Choice: 8 7.1 + Choice: 9 8 + Choice: 10 9 + Choice: 11 10 + Choice: 12 11 + Choice: 13 13 + Choice: 14 14 + Choice: 15 16 + Choice: 16 18 + Choice: 17 20 + Choice: 18 22 + /main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 partial + Choice: 2 spot + Choice: 3 center-weighted average + /main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 + /main/capturesettings/aeb + Label: Auto Exposure Bracketing + Type: RADIO + Current: off + Choice: 0 off + Choice: 1 +/- 1/3 + Choice: 2 +/- 2/3 + Choice: 3 +/- 1 + Choice: 4 +/- 1 1/3 + Choice: 5 +/- 1 2/3 + Choice: 6 +/- 2 + Choice: 7 +/- 2 1/3 + Choice: 8 +/- 2 2/3 + Choice: 9 +/- 3 + /main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D + /main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + /main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator + /main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 + +eos-7d-C1.log + /main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 + /main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + /main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + /main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + /main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1267440940 + Printable: Mon Mar 1 11:55:40 2010 + /main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold + /main/settings/ownername + Label: Owner Name + Type: TEXT + Current: + /main/settings/artist + Label: Artist + Type: TEXT + Current: Adrian Schroeter + /main/settings/copyright + Label: Copyright + Type: TEXT + Current: + /main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card + /main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 + /main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 + /main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 + /main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% + /main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S17-55mm f/2.8 IS USM + /main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 + /main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 1266 + /main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 989 + /main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: RAW + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: RAW + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: RAW + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 100 + Choice: 2 125 + Choice: 3 160 + Choice: 4 200 + Choice: 5 250 + Choice: 6 320 + Choice: 7 400 + Choice: 8 500 + Choice: 9 640 + Choice: 10 800 + Choice: 11 1000 + Choice: 12 1250 + Choice: 13 1600 + Choice: 14 2000 + Choice: 15 2500 + Choice: 16 3200 + Choice: 17 4000 + Choice: 18 5000 + Choice: 19 6400 + /main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual + Choice: 8 Color Temperature + /main/imgsettings/whitebalanceadjusta + Label: WhiteBalance Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalanceadjustb + Label: WhiteBalance Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 + /main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 + /main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: -1.3 + Choice: 0 Unknown value 00d8 + Choice: 1 Unknown value 00db + Choice: 2 Unknown value 00dd + Choice: 3 Unknown value 00e0 + Choice: 4 Unknown value 00e3 + Choice: 5 Unknown value 00e5 + Choice: 6 Unknown value 00e8 + Choice: 7 Unknown value 00eb + Choice: 8 Unknown value 00ed + Choice: 9 -2 + Choice: 10 -1.6 + Choice: 11 -1.3 + Choice: 12 -1.0 + Choice: 13 -0.6 + Choice: 14 -0.3 + Choice: 15 0 + Choice: 16 0.3 + Choice: 17 0.6 + Choice: 18 1.0 + Choice: 19 1.3 + Choice: 20 1.6 + Choice: 21 2 + Choice: 22 Unknown value 0013 + Choice: 23 Unknown value 0015 + Choice: 24 Unknown value 0018 + Choice: 25 Unknown value 001b + Choice: 26 Unknown value 001d + Choice: 27 Unknown value 0020 + Choice: 28 Unknown value 0023 + Choice: 29 Unknown value 0025 + Choice: 30 Unknown value 0028 + /main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Continuous high speed + Choice: 0 Single + Choice: 1 Continuous high speed + Choice: 2 Continuous low speed + Choice: 3 Timer 2 sec + Choice: 4 Timer 10 sec + /main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 + /main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 partial + Choice: 2 spot + Choice: 3 center-weighted average + /main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 1 + /main/capturesettings/aeb + Label: Auto Exposure Bracketing + Type: RADIO + Current: +/- 1 1/3 + Choice: 0 off + Choice: 1 +/- 1/3 + Choice: 2 +/- 2/3 + Choice: 3 +/- 1 + Choice: 4 +/- 1 1/3 + Choice: 5 +/- 1 2/3 + Choice: 6 +/- 2 + Choice: 7 +/- 2 1/3 + Choice: 8 +/- 2 2/3 + Choice: 9 +/- 3 + /main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D + /main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + /main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator + /main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 + +eos-7d-C2.log + /main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 + /main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + /main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + /main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + /main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1267440969 + Printable: Mon Mar 1 11:56:09 2010 + /main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold + /main/settings/ownername + Label: Owner Name + Type: TEXT + Current: + /main/settings/artist + Label: Artist + Type: TEXT + Current: Adrian Schroeter + /main/settings/copyright + Label: Copyright + Type: TEXT + Current: + /main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card + /main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 + /main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 + /main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 + /main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% + /main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S17-55mm f/2.8 IS USM + /main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 + /main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 1266 + /main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 3526 + /main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 100 + Choice: 2 125 + Choice: 3 160 + Choice: 4 200 + Choice: 5 250 + Choice: 6 320 + Choice: 7 400 + Choice: 8 500 + Choice: 9 640 + Choice: 10 800 + Choice: 11 1000 + Choice: 12 1250 + Choice: 13 1600 + Choice: 14 2000 + Choice: 15 2500 + Choice: 16 3200 + Choice: 17 4000 + Choice: 18 5000 + Choice: 19 6400 + /main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual + Choice: 8 Color Temperature + /main/imgsettings/whitebalanceadjusta + Label: WhiteBalance Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalanceadjustb + Label: WhiteBalance Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 + /main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 + /main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 Unknown value 00d8 + Choice: 1 Unknown value 00db + Choice: 2 Unknown value 00dd + Choice: 3 Unknown value 00e0 + Choice: 4 Unknown value 00e3 + Choice: 5 Unknown value 00e5 + Choice: 6 Unknown value 00e8 + Choice: 7 Unknown value 00eb + Choice: 8 Unknown value 00ed + Choice: 9 -2 + Choice: 10 -1.6 + Choice: 11 -1.3 + Choice: 12 -1.0 + Choice: 13 -0.6 + Choice: 14 -0.3 + Choice: 15 0 + Choice: 16 0.3 + Choice: 17 0.6 + Choice: 18 1.0 + Choice: 19 1.3 + Choice: 20 1.6 + Choice: 21 2 + Choice: 22 Unknown value 0013 + Choice: 23 Unknown value 0015 + Choice: 24 Unknown value 0018 + Choice: 25 Unknown value 001b + Choice: 26 Unknown value 001d + Choice: 27 Unknown value 0020 + Choice: 28 Unknown value 0023 + Choice: 29 Unknown value 0025 + Choice: 30 Unknown value 0028 + /main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Continuous high speed + Choice: 2 Continuous low speed + Choice: 3 Timer 2 sec + Choice: 4 Timer 10 sec + /main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 + /main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 partial + Choice: 2 spot + Choice: 3 center-weighted average + /main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 + /main/capturesettings/aeb + Label: Auto Exposure Bracketing + Type: RADIO + Current: off + Choice: 0 off + Choice: 1 +/- 1/3 + Choice: 2 +/- 2/3 + Choice: 3 +/- 1 + Choice: 4 +/- 1 1/3 + Choice: 5 +/- 1 2/3 + Choice: 6 +/- 2 + Choice: 7 +/- 2 1/3 + Choice: 8 +/- 2 2/3 + Choice: 9 +/- 3 + /main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D + /main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + /main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator + /main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 +/eos-7d-C3.log + /main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 + /main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + /main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + /main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + /main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1267440981 + Printable: Mon Mar 1 11:56:21 2010 + /main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold + /main/settings/ownername + Label: Owner Name + Type: TEXT + Current: + /main/settings/artist + Label: Artist + Type: TEXT + Current: Adrian Schroeter + /main/settings/copyright + Label: Copyright + Type: TEXT + Current: + /main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card + /main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 + /main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 + /main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 + /main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% + /main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S17-55mm f/2.8 IS USM + /main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 + /main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 1266 + /main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 3526 + /main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 100 + Choice: 2 125 + Choice: 3 160 + Choice: 4 200 + Choice: 5 250 + Choice: 6 320 + Choice: 7 400 + Choice: 8 500 + Choice: 9 640 + Choice: 10 800 + Choice: 11 1000 + Choice: 12 1250 + Choice: 13 1600 + Choice: 14 2000 + Choice: 15 2500 + Choice: 16 3200 + Choice: 17 4000 + Choice: 18 5000 + Choice: 19 6400 + /main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual + Choice: 8 Color Temperature + /main/imgsettings/whitebalanceadjusta + Label: WhiteBalance Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalanceadjustb + Label: WhiteBalance Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 + /main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 + /main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 Unknown value 00d8 + Choice: 1 Unknown value 00db + Choice: 2 Unknown value 00dd + Choice: 3 Unknown value 00e0 + Choice: 4 Unknown value 00e3 + Choice: 5 Unknown value 00e5 + Choice: 6 Unknown value 00e8 + Choice: 7 Unknown value 00eb + Choice: 8 Unknown value 00ed + Choice: 9 -2 + Choice: 10 -1.6 + Choice: 11 -1.3 + Choice: 12 -1.0 + Choice: 13 -0.6 + Choice: 14 -0.3 + Choice: 15 0 + Choice: 16 0.3 + Choice: 17 0.6 + Choice: 18 1.0 + Choice: 19 1.3 + Choice: 20 1.6 + Choice: 21 2 + Choice: 22 Unknown value 0013 + Choice: 23 Unknown value 0015 + Choice: 24 Unknown value 0018 + Choice: 25 Unknown value 001b + Choice: 26 Unknown value 001d + Choice: 27 Unknown value 0020 + Choice: 28 Unknown value 0023 + Choice: 29 Unknown value 0025 + Choice: 30 Unknown value 0028 + /main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Continuous high speed + Choice: 2 Continuous low speed + Choice: 3 Timer 2 sec + Choice: 4 Timer 10 sec + /main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 + /main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 partial + Choice: 2 spot + Choice: 3 center-weighted average + /main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 + /main/capturesettings/aeb + Label: Auto Exposure Bracketing + Type: RADIO + Current: off + Choice: 0 off + Choice: 1 +/- 1/3 + Choice: 2 +/- 2/3 + Choice: 3 +/- 1 + Choice: 4 +/- 1 1/3 + Choice: 5 +/- 1 2/3 + Choice: 6 +/- 2 + Choice: 7 +/- 2 1/3 + Choice: 8 +/- 2 2/3 + Choice: 9 +/- 3 + /main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D + /main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + /main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator + /main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 +eos-7d-CA.log + /main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 + /main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + /main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + /main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + /main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1267440746 + Printable: Mon Mar 1 11:52:26 2010 + /main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold + /main/settings/ownername + Label: Owner Name + Type: TEXT + Current: + /main/settings/artist + Label: Artist + Type: TEXT + Current: Adrian Schroeter + /main/settings/copyright + Label: Copyright + Type: TEXT + Current: + /main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card + /main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 + /main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 + /main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 + /main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% + /main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S17-55mm f/2.8 IS USM + /main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 + /main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 1266 + /main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 3526 + /main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 + /main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 + /main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Continuous low speed + Choice: 2 Timer 10 sec + /main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Monochrome + /main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 + /main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D + /main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + /main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator + /main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 +eos-7d-M.log + /main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 + /main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + /main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + /main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + /main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1267440891 + Printable: Mon Mar 1 11:54:51 2010 + /main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold + /main/settings/ownername + Label: Owner Name + Type: TEXT + Current: + /main/settings/artist + Label: Artist + Type: TEXT + Current: Adrian Schroeter + /main/settings/copyright + Label: Copyright + Type: TEXT + Current: + /main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card + /main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 + /main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 + /main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 + /main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% + /main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S17-55mm f/2.8 IS USM + /main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 + /main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 1266 + /main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 3526 + /main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 100 + Choice: 2 125 + Choice: 3 160 + Choice: 4 200 + Choice: 5 250 + Choice: 6 320 + Choice: 7 400 + Choice: 8 500 + Choice: 9 640 + Choice: 10 800 + Choice: 11 1000 + Choice: 12 1250 + Choice: 13 1600 + Choice: 14 2000 + Choice: 15 2500 + Choice: 16 3200 + Choice: 17 4000 + Choice: 18 5000 + Choice: 19 6400 + Choice: 20 12800 + /main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual + Choice: 8 Color Temperature + /main/imgsettings/whitebalanceadjusta + Label: WhiteBalance Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalanceadjustb + Label: WhiteBalance Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 + /main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 + /main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Continuous high speed + Choice: 2 Continuous low speed + Choice: 3 Timer 2 sec + Choice: 4 Timer 10 sec + /main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 + /main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 8 + Choice: 0 2.8 + Choice: 1 3.2 + Choice: 2 3.5 + Choice: 3 4 + Choice: 4 4.5 + Choice: 5 5 + Choice: 6 5.6 + Choice: 7 6.3 + Choice: 8 7.1 + Choice: 9 8 + Choice: 10 9 + Choice: 11 10 + Choice: 12 11 + Choice: 13 13 + Choice: 14 14 + Choice: 15 16 + Choice: 16 18 + Choice: 17 20 + Choice: 18 22 + /main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 1/640 + Choice: 0 30 + Choice: 1 25 + Choice: 2 20 + Choice: 3 15 + Choice: 4 13 + Choice: 5 10 + Choice: 6 8 + Choice: 7 6 + Choice: 8 5 + Choice: 9 4 + Choice: 10 3.2 + Choice: 11 2.5 + Choice: 12 2 + Choice: 13 1.6 + Choice: 14 1.3 + Choice: 15 1 + Choice: 16 0.8 + Choice: 17 0.6 + Choice: 18 0.5 + Choice: 19 0.4 + Choice: 20 0.3 + Choice: 21 1/4 + Choice: 22 1/5 + Choice: 23 1/6 + Choice: 24 1/8 + Choice: 25 1/10 + Choice: 26 1/13 + Choice: 27 1/15 + Choice: 28 1/20 + Choice: 29 1/25 + Choice: 30 1/30 + Choice: 31 1/40 + Choice: 32 1/50 + Choice: 33 1/60 + Choice: 34 1/80 + Choice: 35 1/100 + Choice: 36 1/125 + Choice: 37 1/160 + Choice: 38 1/200 + Choice: 39 1/250 + Choice: 40 1/320 + Choice: 41 1/400 + Choice: 42 1/500 + Choice: 43 1/640 + Choice: 44 1/800 + Choice: 45 1/1000 + Choice: 46 1/1250 + Choice: 47 1/1600 + Choice: 48 1/2000 + Choice: 49 1/2500 + Choice: 50 1/3200 + Choice: 51 1/4000 + Choice: 52 1/5000 + Choice: 53 1/6400 + Choice: 54 1/8000 + /main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 partial + Choice: 2 spot + Choice: 3 center-weighted average + /main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 + /main/capturesettings/aeb + Label: Auto Exposure Bracketing + Type: RADIO + Current: off + Choice: 0 off + Choice: 1 +/- 1/3 + Choice: 2 +/- 2/3 + Choice: 3 +/- 1 + Choice: 4 +/- 1 1/3 + Choice: 5 +/- 1 2/3 + Choice: 6 +/- 2 + Choice: 7 +/- 2 1/3 + Choice: 8 +/- 2 2/3 + Choice: 9 +/- 3 + /main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D + /main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + /main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator + /main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 +eos-7d-P.log + /main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 + /main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + /main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + /main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + /main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1267440789 + Printable: Mon Mar 1 11:53:09 2010 + /main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold + /main/settings/ownername + Label: Owner Name + Type: TEXT + Current: + /main/settings/artist + Label: Artist + Type: TEXT + Current: Adrian Schroeter + /main/settings/copyright + Label: Copyright + Type: TEXT + Current: + /main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card + /main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 + /main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 + /main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 + /main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% + /main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S17-55mm f/2.8 IS USM + /main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 + /main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 1266 + /main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 3526 + /main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 100 + Choice: 2 125 + Choice: 3 160 + Choice: 4 200 + Choice: 5 250 + Choice: 6 320 + Choice: 7 400 + Choice: 8 500 + Choice: 9 640 + Choice: 10 800 + Choice: 11 1000 + Choice: 12 1250 + Choice: 13 1600 + Choice: 14 2000 + Choice: 15 2500 + Choice: 16 3200 + Choice: 17 4000 + Choice: 18 5000 + Choice: 19 6400 + Choice: 20 12800 + /main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual + Choice: 8 Color Temperature + /main/imgsettings/whitebalanceadjusta + Label: WhiteBalance Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalanceadjustb + Label: WhiteBalance Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 + /main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 + /main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: -0.6 + Choice: 0 Unknown value 00d8 + Choice: 1 Unknown value 00db + Choice: 2 Unknown value 00dd + Choice: 3 Unknown value 00e0 + Choice: 4 Unknown value 00e3 + Choice: 5 Unknown value 00e5 + Choice: 6 Unknown value 00e8 + Choice: 7 Unknown value 00eb + Choice: 8 Unknown value 00ed + Choice: 9 -2 + Choice: 10 -1.6 + Choice: 11 -1.3 + Choice: 12 -1.0 + Choice: 13 -0.6 + Choice: 14 -0.3 + Choice: 15 0 + Choice: 16 0.3 + Choice: 17 0.6 + Choice: 18 1.0 + Choice: 19 1.3 + Choice: 20 1.6 + Choice: 21 2 + Choice: 22 Unknown value 0013 + Choice: 23 Unknown value 0015 + Choice: 24 Unknown value 0018 + Choice: 25 Unknown value 001b + Choice: 26 Unknown value 001d + Choice: 27 Unknown value 0020 + Choice: 28 Unknown value 0023 + Choice: 29 Unknown value 0025 + Choice: 30 Unknown value 0028 + /main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Continuous high speed + Choice: 2 Continuous low speed + Choice: 3 Timer 2 sec + Choice: 4 Timer 10 sec + /main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 + /main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 partial + Choice: 2 spot + Choice: 3 center-weighted average + /main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 + /main/capturesettings/aeb + Label: Auto Exposure Bracketing + Type: RADIO + Current: off + Choice: 0 off + Choice: 1 +/- 1/3 + Choice: 2 +/- 2/3 + Choice: 3 +/- 1 + Choice: 4 +/- 1 1/3 + Choice: 5 +/- 1 2/3 + Choice: 6 +/- 2 + Choice: 7 +/- 2 1/3 + Choice: 8 +/- 2 2/3 + Choice: 9 +/- 3 + /main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D + /main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + /main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator + /main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 +eos-7d-Tv.log + /main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 + /main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + /main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + /main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + /main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1267440837 + Printable: Mon Mar 1 11:53:57 2010 + /main/settings/reviewtime + Label: Quick Review Time + Type: RADIO + Current: 2 seconds + Choice: 0 None + Choice: 1 2 seconds + Choice: 2 4 seconds + Choice: 3 8 seconds + Choice: 4 Hold + /main/settings/ownername + Label: Owner Name + Type: TEXT + Current: + /main/settings/artist + Label: Artist + Type: TEXT + Current: Adrian Schroeter + /main/settings/copyright + Label: Copyright + Type: TEXT + Current: + /main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card + /main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 + /main/status/model + Label: Camera Model + Type: TEXT + Current: 2147484240 + /main/status/ptpversion + Label: PTP Version + Type: TEXT + Current: 256 + /main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% + /main/status/lensname + Label: Lens Name + Type: TEXT + Current: EF-S17-55mm f/2.8 IS USM + /main/status/serialnumber + Label: Serial Number + Type: TEXT + Current: 480403542 + /main/status/shuttercounter + Label: Shutter Counter + Type: TEXT + Current: 1266 + /main/status/availableshots + Label: Available Shots + Type: TEXT + Current: 3526 + /main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatcf + Label: Image Format CF + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/imageformatexthd + Label: Image Format Ext HD + Type: RADIO + Current: Large Fine JPEG + Choice: 0 Large Fine JPEG + Choice: 1 Large Normal JPEG + Choice: 2 Medium Fine JPEG + Choice: 3 Medium Normal JPEG + Choice: 4 Small Fine JPEG + Choice: 5 Small Normal JPEG + Choice: 6 RAW + Large Fine JPEG + Choice: 7 RAW + Large Normal JPEG + Choice: 8 RAW + Medium Fine JPEG + Choice: 9 RAW + Medium Normal JPEG + Choice: 10 RAW + Small Fine JPEG + Choice: 11 RAW + Small Normal JPEG + Choice: 12 sRAW1 + Large Fine JPEG + Choice: 13 sRAW1 + Large Normal JPEG + Choice: 14 sRAW1 + Medium Fine JPEG + Choice: 15 sRAW1 + Medium Normal JPEG + Choice: 16 sRAW1 + Small Fine JPEG + Choice: 17 sRAW1 + Small Normal JPEG + Choice: 18 sRAW2 + Large Fine JPEG + Choice: 19 sRAW2 + Large Normal JPEG + Choice: 20 sRAW2 + Medium Fine JPEG + Choice: 21 sRAW2 + Medium Normal JPEG + Choice: 22 sRAW2 + Small Fine JPEG + Choice: 23 sRAW2 + Small Normal JPEG + Choice: 24 RAW + Choice: 25 sRAW1 + Choice: 26 sRAW2 + /main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 100 + Choice: 2 125 + Choice: 3 160 + Choice: 4 200 + Choice: 5 250 + Choice: 6 320 + Choice: 7 400 + Choice: 8 500 + Choice: 9 640 + Choice: 10 800 + Choice: 11 1000 + Choice: 12 1250 + Choice: 13 1600 + Choice: 14 2000 + Choice: 15 2500 + Choice: 16 3200 + Choice: 17 4000 + Choice: 18 5000 + Choice: 19 6400 + Choice: 20 12800 + /main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Shadow + Choice: 3 Cloudy + Choice: 4 Tungsten + Choice: 5 Fluorescent + Choice: 6 Flash + Choice: 7 Manual + Choice: 8 Color Temperature + /main/imgsettings/whitebalanceadjusta + Label: WhiteBalance Adjust A + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalanceadjustb + Label: WhiteBalance Adjust B + Type: RADIO + Current: 0 + Choice: 0 -9 + Choice: 1 -8 + Choice: 2 -7 + Choice: 3 -6 + Choice: 4 -5 + Choice: 5 -4 + Choice: 6 -3 + Choice: 7 -2 + Choice: 8 -1 + Choice: 9 0 + Choice: 10 1 + Choice: 11 2 + Choice: 12 3 + Choice: 13 4 + Choice: 14 5 + Choice: 15 6 + Choice: 16 7 + Choice: 17 8 + Choice: 18 9 + /main/imgsettings/whitebalancexa + Label: WhiteBalance X A + Type: TEXT + Current: 0 + /main/imgsettings/whitebalancexb + Label: WhiteBalance X B + Type: TEXT + Current: 0 + /main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: -0.6 + Choice: 0 Unknown value 00d8 + Choice: 1 Unknown value 00db + Choice: 2 Unknown value 00dd + Choice: 3 Unknown value 00e0 + Choice: 4 Unknown value 00e3 + Choice: 5 Unknown value 00e5 + Choice: 6 Unknown value 00e8 + Choice: 7 Unknown value 00eb + Choice: 8 Unknown value 00ed + Choice: 9 -2 + Choice: 10 -1.6 + Choice: 11 -1.3 + Choice: 12 -1.0 + Choice: 13 -0.6 + Choice: 14 -0.3 + Choice: 15 0 + Choice: 16 0.3 + Choice: 17 0.6 + Choice: 18 1.0 + Choice: 19 1.3 + Choice: 20 1.6 + Choice: 21 2 + Choice: 22 Unknown value 0013 + Choice: 23 Unknown value 0015 + Choice: 24 Unknown value 0018 + Choice: 25 Unknown value 001b + Choice: 26 Unknown value 001d + Choice: 27 Unknown value 0020 + Choice: 28 Unknown value 0023 + Choice: 29 Unknown value 0025 + Choice: 30 Unknown value 0028 + /main/capturesettings/drivemode + Label: Drive Mode + Type: RADIO + Current: Single + Choice: 0 Single + Choice: 1 Continuous high speed + Choice: 2 Continuous low speed + Choice: 3 Timer 2 sec + Choice: 4 Timer 10 sec + /main/capturesettings/picturestyle + Label: Picture Style + Type: RADIO + Current: Standard + Choice: 0 Standard + Choice: 1 Portrait + Choice: 2 Landscape + Choice: 3 Neutral + Choice: 4 Faithful + Choice: 5 Monochrome + Choice: 6 User defined 1 + Choice: 7 User defined 2 + Choice: 8 User defined 3 + /main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 1/30 + Choice: 0 30 + Choice: 1 25 + Choice: 2 20 + Choice: 3 15 + Choice: 4 13 + Choice: 5 10 + Choice: 6 8 + Choice: 7 6 + Choice: 8 5 + Choice: 9 4 + Choice: 10 3.2 + Choice: 11 2.5 + Choice: 12 2 + Choice: 13 1.6 + Choice: 14 1.3 + Choice: 15 1 + Choice: 16 0.8 + Choice: 17 0.6 + Choice: 18 0.5 + Choice: 19 0.4 + Choice: 20 0.3 + Choice: 21 1/4 + Choice: 22 1/5 + Choice: 23 1/6 + Choice: 24 1/8 + Choice: 25 1/10 + Choice: 26 1/13 + Choice: 27 1/15 + Choice: 28 1/20 + Choice: 29 1/25 + Choice: 30 1/30 + Choice: 31 1/40 + Choice: 32 1/50 + Choice: 33 1/60 + Choice: 34 1/80 + Choice: 35 1/100 + Choice: 36 1/125 + Choice: 37 1/160 + Choice: 38 1/200 + Choice: 39 1/250 + Choice: 40 1/320 + Choice: 41 1/400 + Choice: 42 1/500 + Choice: 43 1/640 + Choice: 44 1/800 + Choice: 45 1/1000 + Choice: 46 1/1250 + Choice: 47 1/1600 + Choice: 48 1/2000 + Choice: 49 1/2500 + Choice: 50 1/3200 + Choice: 51 1/4000 + Choice: 52 1/5000 + Choice: 53 1/6400 + Choice: 54 1/8000 + /main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 partial + Choice: 2 spot + Choice: 3 center-weighted average + /main/capturesettings/bracketmode + Label: Bracket Mode + Type: TEXT + Current: 0 + /main/capturesettings/aeb + Label: Auto Exposure Bracketing + Type: RADIO + Current: off + Choice: 0 off + Choice: 1 +/- 1/3 + Choice: 2 +/- 2/3 + Choice: 3 +/- 1 + Choice: 4 +/- 1 1/3 + Choice: 5 +/- 1 2/3 + Choice: 6 +/- 2 + Choice: 7 +/- 2 1/3 + Choice: 8 +/- 2 2/3 + Choice: 9 +/- 3 + /main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon EOS 7D + /main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + /main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Unknown Initiator + /main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-g5.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-g5.txt new file mode 100644 index 00000000..b1f506e1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-g5.txt @@ -0,0 +1,131 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot G5 + device version: 01.0001 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9006 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9013 + 0x9014 + 0x9015 + 0x9018 + 0x9019 + 0x901a + 0x901b + 0x901c + 0x901d + 0x901e + 0x901f + 0x9020 + 0x9021 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d +Device Properties Supported: + 0xd001 + 0xd002 + 0xd003 + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd045 + 0xd046 + 0xd047 + 0xd048 + 0xd049 + +/main/settings/owner +/main/settings/model +/main/settings/firmwareversion +/main/settings/time +/main/settings/beep +/main/settings/capturetarget +/main/settings/capture +/main/imgsettings/imgquality +/main/imgsettings/imgsize +/main/imgsettings/iso +/main/imgsettings/whitebalance +/main/imgsettings/photoeffect +/main/capturesettings/zoom +/main/capturesettings/assistlight +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 +2 + Choice: 1 +1 2/3 + Choice: 2 +1 1/3 + Choice: 3 +1 + Choice: 4 +2/3 + Choice: 5 +1/3 + Choice: 6 0 + Choice: 7 -1/3 + Choice: 8 -2/3 + Choice: 9 -1 + Choice: 10 -1 1/3 + Choice: 11 -1 2/3 + Choice: 12 -2 +/main/capturesettings/canonflashmode +/main/capturesettings/aperture +/main/capturesettings/focusingpoint +/main/capturesettings/shutterspeed +/main/capturesettings/meteringmode +/main/capturesettings/afdistance diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-g9.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-g9.txt new file mode 100644 index 00000000..c706a5e2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-g9.txt @@ -0,0 +1,909 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot G9 + device version: 1-4.2.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x100e + 0x9008 + 0x901a + 0x9009 + 0x900b + 0x901d + 0x900d + 0x900c + 0x9014 + 0x9015 + 0x9018 + 0x9012 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x903f + 0x9040 + 0x9041 + 0x904d + 0x9044 + 0x9045 + 0x904e + 0x904f + 0x9054 + 0x9055 + 0x9056 + 0x9020 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00e + 0xc00f + 0xc011 + 0xc013 + 0xc019 + 0xc01a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd048 + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd402 + 0xd406 + 0xd407 + 0xd029 + 0xd00a + 0xd042 + 0xd020 + 0xd006 + 0xd007 + 0xd008 + 0xd00e + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd01c + 0xd01f + 0xd041 + 0xd044 + 0xd00c + 0xd01d + 0xd01e + 0xd02a + 0xd036 + 0xd037 + 0xd038 + 0xd039 + 0xd03b + 0xd03c + 0xd03d + 0xd043 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot G9 + Version: 1-4.2.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_00010000: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 262144 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: AC (1) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1249895041 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Average Filesizes(0xd048):(read only) (type=0x4006) a[19] 5332992,3518464,2563072,0,254976,3158016,2109440,1428480,0,153600,1509376,1003520,711680,0,86016,0,1026048,571392,284672 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 3000,4000,1,0,0,0, + a[6] 3000,4000,6,0,0,0, + a[6] 3000,4000,11,0,0,0, + a[6] 2448,3264,2,0,0,0, + a[6] 2448,3264,7,0,0,0, + a[6] 2448,3264,12,0,0,0, + a[6] 1944,2592,3,0,0,0, + a[6] 1944,2592,8,0,0,0, + a[6] 1944,2592,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 35848192 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot G9' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot G9' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Capture Transfer Mode(0xd029):(readwrite) (type=0x4) Enumeration [1,2,3] value: 3 +Flash Mode(0xd00a):(readwrite) (type=0x2) Enumeration [1,5,6,2,0,4] value: Off (0) +Flash Quantity Count(0xd042):(read only) (type=0x4) Enumeration [] value: 65535 +Flash Compensation(0xd020):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Image Quality(0xd006):(readwrite) (type=0x2) Enumeration [5,3,2] value: SuperFine (5) +Full View File Format(0xd007):(read only) (type=0x2) Enumeration [] value: JPEG (1) +Image Size(0xd008):(readwrite) (type=0x2) Enumeration [0,1,3,7,2] value: Large (0) +Drive Mode(0xd00e):(read only) (type=0x2) Enumeration [] value: Single-Frame Shooting (0) +Metering Mode(0xd010):(readwrite) (type=0x2) Enumeration [3,0,1] value: Evaluative Metering (3) +AF Distance(0xd011):(readwrite) (type=0x2) Enumeration [1,3] value: Auto (1) +Focusing Point(0xd012):(readwrite) (type=0x4) Enumeration [12289,12291] value: Multiple Focusing Points, Auto (12289) +White Balance(0xd013):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,7,5,15,16] value: Daylight (1) +ISO Speed(0xd01c):(readwrite) (type=0x4) Enumeration [0,69,72,80,88,96,104] value: 69 +Exposure Compensation(0xd01f):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Assist Light(0xd041):(readwrite) (type=0x4) Enumeration [1,0] value: Off (0) +Rotation Scene(0xd044):(readwrite) (type=0x4) Enumeration [0,1] value: On (0) +Shooting Mode(0xd00c):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: P (1) +Aperture(0xd01d):(read only) (type=0x4) Enumeration [] value: 37 +Shutter Speed(0xd01e):(read only) (type=0x4) Enumeration [] value: 112 +Zoom(0xd02a):(readwrite) (type=0x4) Range [0 - 19, step 1] value: 0 +Camera Output(0xd036):(readwrite) (type=0x2) Enumeration [1,2,3] value: Off (3) +Disp Av(0xd037):(read only) (type=0x4) 0 +Av Open Apex(0xd038):(read only) (type=0x4) 32 +Digital Zoom Magnification(0xd039):(read only) (type=0x4) 4000 +Disp Av Max(0xd03b):(read only) (type=0x4) 0 +Av Max Apex(0xd03c):(read only) (type=0x4) 56 +EZoom Start Position(0xd03d):(read only) (type=0x4) 14 +Rotation Angle(0xd043):(read only) (type=0x4) 0' (0) + +/main/actions/focuslock + Label: Focus Lock + Type: TOGGLE + Current: 2 +/main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 +/main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1249895043 + Printable: Mon Aug 10 11:04:03 2009 +/main/settings/output + Label: Camera Output + Type: RADIO + Current: Off + Choice: 0 LCD + Choice: 1 Video OUT + Choice: 2 Off +/main/settings/ownername + Label: Owner Name + Type: TEXT + Current: +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/status/model + Label: Camera Model + Type: TEXT + Current: Canon PowerShot G9 +/main/status/firmwareversion + Label: Firmware Version + Type: TEXT + Current: 1.0.0.0 +/main/status/orientation + Label: Camera Orientation + Type: TEXT + Current: 0' +/main/imgsettings/imagequality + Label: Image Quality + Type: RADIO + Current: superfine + Choice: 0 superfine + Choice: 1 fine + Choice: 2 normal +/main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: (null) +/main/imgsettings/imagesize + Label: Image Size + Type: RADIO + Current: large + Choice: 0 large + Choice: 1 medium 1 + Choice: 2 medium 2 + Choice: 3 medium 3 + Choice: 4 small +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 80 + Choice: 0 Auto + Choice: 1 80 + Choice: 2 100 + Choice: 3 200 + Choice: 4 400 + Choice: 5 800 + Choice: 6 1600 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Daylight + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Cloudy + Choice: 3 Tungsten + Choice: 4 Fluorescent + Choice: 5 Fluorescent H + Choice: 6 Unknown value 0005 + Choice: 7 Unknown value 000f + Choice: 8 Unknown value 0010 +/main/capturesettings/zoom + Label: Zoom + Type: RANGE + Current: 0 + Bottom: 0 + Top: 19 + Step: 1 +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autorotation + Label: Rotation Flag + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 +2 + Choice: 1 +1 2/3 + Choice: 2 +1 1/3 + Choice: 3 +1 + Choice: 4 +2/3 + Choice: 5 +1/3 + Choice: 6 0 + Choice: 7 -1/3 + Choice: 8 -2/3 + Choice: 9 -1 + Choice: 10 -1 1/3 + Choice: 11 -1 2/3 + Choice: 12 -2 +/main/capturesettings/flashcompensation + Label: Flash Compensation + Type: RADIO + Current: 0 + Choice: 0 +2 + Choice: 1 +1 2/3 + Choice: 2 +1 1/3 + Choice: 3 +1 + Choice: 4 +2/3 + Choice: 5 +1/3 + Choice: 6 0 + Choice: 7 -1/3 + Choice: 8 -2/3 + Choice: 9 -1 + Choice: 10 -1 1/3 + Choice: 11 -1 2/3 + Choice: 12 -2 +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: off + Choice: 0 auto + Choice: 1 auto + red eye suppression + Choice: 2 on + red eye suppression + Choice: 3 on + Choice: 4 off + Choice: 5 fill in +/main/capturesettings/shootingmode + Label: Canon Shooting Mode + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 TV + Choice: 2 AV + Choice: 3 Manual +/main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 3.5 + Choice: 0 auto + Choice: 1 1 + Choice: 2 1.1 + Choice: 3 1.2 + Choice: 4 1.2 + Choice: 5 1.4 + Choice: 6 1.6 + Choice: 7 1.8 + Choice: 8 1.8 + Choice: 9 2 + Choice: 10 2.2 + Choice: 11 2.5 + Choice: 12 2.5 + Choice: 13 2.8 + Choice: 14 3.2 + Choice: 15 3.5 + Choice: 16 3.5 + Choice: 17 4 + Choice: 18 4.5 + Choice: 19 4.5 + Choice: 20 5 + Choice: 21 5.6 + Choice: 22 6.3 + Choice: 23 6.7 + Choice: 24 7.1 + Choice: 25 8 + Choice: 26 9 + Choice: 27 9.5 + Choice: 28 10 + Choice: 29 11 + Choice: 30 13 + Choice: 31 13 + Choice: 32 14 + Choice: 33 16 + Choice: 34 18 + Choice: 35 19 + Choice: 36 20 + Choice: 37 22 + Choice: 38 25 + Choice: 39 27 + Choice: 40 29 + Choice: 41 32 + Choice: 42 36 + Choice: 43 38 + Choice: 44 40 + Choice: 45 45 + Choice: 46 51 + Choice: 47 54 + Choice: 48 57 + Choice: 49 64 + Choice: 50 72 + Choice: 51 76 + Choice: 52 81 + Choice: 53 91 +/main/capturesettings/focusingpoint + Label: Focusing Point + Type: RADIO + Current: Multiple Focusing Points, Auto + Choice: 0 Multiple Focusing Points, Auto + Choice: 1 Multiple Focusing Points (Center) +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 1/125 + Choice: 0 auto + Choice: 1 bulb + Choice: 2 30 + Choice: 3 25 + Choice: 4 20 + Choice: 5 20 + Choice: 6 15 + Choice: 7 13 + Choice: 8 10 + Choice: 9 10 + Choice: 10 8 + Choice: 11 6 + Choice: 12 6 + Choice: 13 5 + Choice: 14 4 + Choice: 15 3.2 + Choice: 16 3 + Choice: 17 2.5 + Choice: 18 2 + Choice: 19 1.6 + Choice: 20 1.5 + Choice: 21 1.3 + Choice: 22 1 + Choice: 23 0.8 + Choice: 24 0.7 + Choice: 25 0.6 + Choice: 26 0.5 + Choice: 27 0.4 + Choice: 28 0.3 + Choice: 29 0.3 + Choice: 30 1/4 + Choice: 31 1/5 + Choice: 32 1/6 + Choice: 33 1/6 + Choice: 34 1/8 + Choice: 35 1/10 + Choice: 36 1/10 + Choice: 37 1/13 + Choice: 38 1/15 + Choice: 39 1/20 + Choice: 40 1/20 + Choice: 41 1/25 + Choice: 42 1/30 + Choice: 43 1/40 + Choice: 44 1/45 + Choice: 45 1/50 + Choice: 46 1/60 + Choice: 47 1/80 + Choice: 48 1/90 + Choice: 49 1/100 + Choice: 50 1/125 + Choice: 51 1/160 + Choice: 52 1/180 + Choice: 53 1/200 + Choice: 54 1/250 + Choice: 55 1/320 + Choice: 56 1/350 + Choice: 57 1/400 + Choice: 58 1/500 + Choice: 59 1/640 + Choice: 60 1/750 + Choice: 61 1/800 + Choice: 62 1/1000 + Choice: 63 1/1250 + Choice: 64 1/1500 + Choice: 65 1/1600 + Choice: 66 1/2000 + Choice: 67 1/2500 + Choice: 68 1/3000 + Choice: 69 1/3200 + Choice: 70 1/4000 + Choice: 71 1/5000 + Choice: 72 1/6000 + Choice: 73 1/6400 + Choice: 74 1/8000 +/main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 center-weighted + Choice: 2 spot +/main/capturesettings/afdistance + Label: AF Distance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Zone Focus (Close-up) +/main/other/d045 + Label: Event Emulate Mode + Type: MENU + Current: 4 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 +/main/other/d04a + Label: PTP Property 0xd04a + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d02e + Label: Size of Output Data from Camera + Type: TEXT + Current: 524288 +/main/other/d02f + Label: Size of Input Data to Camera + Type: TEXT + Current: 262144 +/main/other/d002 + Label: Battery Type + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d003 + Label: Battery Mode + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d034 + Label: UNIX Time + Type: TEXT + Current: 1249895058 +/main/other/d047 + Label: Type of Slideshow + Type: TEXT + Current: 2 +/main/other/d046 + Label: DPOF Version + Type: TEXT + Current: 257 +/main/other/d02d + Label: Supported Thumb Size + Type: TEXT + Current: (null) +/main/other/d048 + Label: Average Filesizes + Type: TEXT + Current: (null) +/main/other/d02c + Label: Size Quality Mode + Type: MENU + Current: (null) +/main/other/d030 + Label: Remote API Version + Type: TEXT + Current: 256 +/main/other/d049 + Label: Model ID + Type: TEXT + Current: 35848192 +/main/other/d032 + Label: Camera Model + Type: TEXT + Current: Canon PowerShot G9 +/main/other/d033 + Label: Camera Owner + Type: TEXT + Current: (null) +/main/other/d031 + Label: Firmware Version + Type: TEXT + Current: 16777216 +/main/other/d050 + Label: PTP Property 0xd050 + Type: TEXT + Current: 1 +/main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon PowerShot G9 +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Windows +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d029 + Label: Capture Transfer Mode + Type: MENU + Current: 3 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 +/main/other/d00a + Label: Flash Mode + Type: MENU + Current: 0 + Choice: 0 1 + Choice: 1 5 + Choice: 2 6 + Choice: 3 2 + Choice: 4 0 + Choice: 5 4 +/main/other/d042 + Label: Flash Quantity Count + Type: MENU + Current: 65535 +/main/other/d020 + Label: Flash Compensation + Type: MENU + Current: 24 + Choice: 0 8 + Choice: 1 11 + Choice: 2 13 + Choice: 3 16 + Choice: 4 19 + Choice: 5 21 + Choice: 6 24 + Choice: 7 27 + Choice: 8 29 + Choice: 9 32 + Choice: 10 35 + Choice: 11 37 + Choice: 12 40 +/main/other/d006 + Label: Image Quality + Type: MENU + Current: 5 + Choice: 0 5 + Choice: 1 3 + Choice: 2 2 +/main/other/d007 + Label: Full View File Format + Type: MENU + Current: 1 +/main/other/d008 + Label: Image Size + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 3 + Choice: 3 7 + Choice: 4 2 +/main/other/d00e + Label: Drive Mode + Type: MENU + Current: 0 +/main/other/d010 + Label: Metering Mode + Type: MENU + Current: 3 + Choice: 0 3 + Choice: 1 0 + Choice: 2 1 +/main/other/d011 + Label: AF Distance + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 3 +/main/other/d012 + Label: Focusing Point + Type: MENU + Current: 12289 + Choice: 0 12289 + Choice: 1 12291 +/main/other/d013 + Label: White Balance + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 7 + Choice: 6 5 + Choice: 7 15 + Choice: 8 16 +/main/other/d01c + Label: ISO Speed + Type: MENU + Current: 69 + Choice: 0 0 + Choice: 1 69 + Choice: 2 72 + Choice: 3 80 + Choice: 4 88 + Choice: 5 96 + Choice: 6 104 +/main/other/d01f + Label: Exposure Compensation + Type: MENU + Current: 24 + Choice: 0 8 + Choice: 1 11 + Choice: 2 13 + Choice: 3 16 + Choice: 4 19 + Choice: 5 21 + Choice: 6 24 + Choice: 7 27 + Choice: 8 29 + Choice: 9 32 + Choice: 10 35 + Choice: 11 37 + Choice: 12 40 +/main/other/d041 + Label: Assist Light + Type: MENU + Current: 0 + Choice: 0 1 + Choice: 1 0 +/main/other/d044 + Label: Rotation Scene + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d00c + Label: Shooting Mode + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 +/main/other/d01d + Label: Aperture + Type: MENU + Current: 37 +/main/other/d01e + Label: Shutter Speed + Type: MENU + Current: 112 +/main/other/d02a + Label: Zoom + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 +/main/other/d036 + Label: Camera Output + Type: MENU + Current: 3 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 +/main/other/d037 + Label: Disp Av + Type: TEXT + Current: 0 +/main/other/d038 + Label: Av Open Apex + Type: TEXT + Current: 32 +/main/other/d039 + Label: Digital Zoom Magnification + Type: TEXT + Current: 4000 +/main/other/d03b + Label: Disp Av Max + Type: TEXT + Current: 0 +/main/other/d03c + Label: Av Max Apex + Type: TEXT + Current: 56 +/main/other/d03d + Label: EZoom Start Position + Type: TEXT + Current: 14 +/main/other/d043 + Label: Rotation Angle + Type: TEXT + Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus-100is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus-100is.txt new file mode 100644 index 00000000..f9fae257 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus-100is.txt @@ -0,0 +1,75 @@ +gphoto2 --summary +Camera summary: + +Model: Canon DIGITAL IXUS 100 IS +device version: 1-6.0.1.0 +serial number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor extension ID: 0x00000006 +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, Unknown(b101), Unknown(b103), Unknown(b104), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified Unknown(b101)/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3956801536 (3773 MB) + Free Space (Bytes): 3845881856 (3667 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) (type=0x6) 524288 +Property 0xd02f:(read only) (type=0x6) 524288 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Property 0xd003:(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +Property 0xd034:(readwrite) (type=0x6) 1239922898 +Property 0xd047:(read only) (type=0x4) 2 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd02d:(read only) (type=0x4006) a[4] 119,0,159,0 +Property 0xd02c:(read only) (type=0x4006) Enumeration [ + a[6] 3000,4000,1,0,0,0, + a[6] 3000,4000,6,0,0,0, + a[6] 3000,4000,11,0,0,0, + a[6] 2448,3264,2,0,0,0, + a[6] 2448,3264,7,0,0,0, + a[6] 2448,3264,12,0,0,0, + a[6] 1944,2592,3,0,0,0, + a[6] 1944,2592,8,0,0,0, + a[6] 1944,2592,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd049:(read only) (type=0x6) 39976960 +Property 0xd032:(read only) (type=0xffff) 'Canon DIGITAL IXUS 100 IS' +Property 0xd033:(readwrite) (type=0x4002) a[0] +Property 0xd031:(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Friendly Device Name(0xd402):(read only) (type=0xffff) Canon DIGITAL IXUS 100 IS ('Canon DIGITAL IXUS 100 IS') +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus-30.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus-30.txt new file mode 100644 index 00000000..54fbdf33 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus-30.txt @@ -0,0 +1,94 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon DIGITAL IXUS 30 + device version: 1-1.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1001 (get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x9013 (PTP_OC_CANON_CheckEvent) + 0x901f (PTP_OC_CANON_ChangeUSBProtocol) + 0x900e (PTP_OC_CANON_GetCustomizeSpec) + 0x900f (PTP_OC_CANON_GetCustomizeItemInfo) + 0x9010 (PTP_OC_CANON_GetCustomizeData) + 0x9011 (PTP_OC_CANON_SetCustomizeData) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1012 (Set object protection) + 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) + 0x9021 (PTP_OC_CANON_GetObjectInfoEx) + 0x901b (PTP_OC_CANON_GetPartialObjectEx) + 0x901e (PTP_OC_CANON_GetObjectAttributes) + 0x9019 (PTP_OC_CANON_SendPartialObject) + 0x9006 (PTP_OC_CANON_GetObjectHandleByName) + 0x901c (PTP_OC_CANON_SetObjectTime) + 0x9002 (PTP_OC_CANON_SetObjectArchive) + 0x9027 (PTP_OC_CANON_GetAncillaryObjectHandles) + 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) + 0x9025 (PTP_OC_CANON_SendObjectByPath ) + 0x9022 (PTP_OC_CANON_InitiateDirectTransfer) + 0x9026 (PTP_OC_CANON_InitiateDirectTansferEx) + 0x9023 (PTP_OC_CANON_TerminateDirectTransfer ) +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00f + 0xc010 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd02e + 0xd02f + 0xd04b diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus-310is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus-310is.txt new file mode 100644 index 00000000..fb8dc349 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus-310is.txt @@ -0,0 +1,293 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon IXUS 310 HS + device version: 1-10.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon IXUS 310 HS + Version: 1-10.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3956801536 (3773 MB) + Free Space (Bytes): 3408068608 (3250 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1346506779 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 50331648 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon IXUS 310 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777472 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon IXUS 310 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon IXUS 310 HS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.1.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1346506779 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 2 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 50331648 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon IXUS 310 HS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777472 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon IXUS 310 HS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus125hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus125hs.txt new file mode 100644 index 00000000..33ff7240 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus125hs.txt @@ -0,0 +1,208 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon IXUS 125 HS + Version: 1-12.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 7939096576 (7571 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1412183060 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 51970048 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon IXUS 125 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon IXUS 125 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon IXUS 125 HS +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-12.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon IXUS 125 HS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1412183073 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 51970048 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon IXUS 125 HS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon IXUS 125 HS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus165.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus165.txt new file mode 100644 index 00000000..4a10c46c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-ixus165.txt @@ -0,0 +1,315 @@ +Kamera összefoglaló: +Manufacturer: Canon Inc. +Model: Canon IXUS 165 + Version: 1-14.0.1.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7939850240 (7572 MB) + Free Space (Bytes): 7794524160 (7433 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1435610634 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 59113472 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon IXUS 165' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[3] 14337,45317,47490 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd057:(read only) (type=0xffff) '923060009176' +Property 0xd402:(read only) (type=0xffff) 'Canon IXUS 165' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon IXUS 165 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon IXUS 165 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1435610659 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 59113472 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon IXUS 165 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d057 +Label: PTP Property 0xd057 +Type: TEXT +Current: 923060009176 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon IXUS 165 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Canon Inc. + Model: Canon IXUS 165 + device version: 1-14.0.1.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd057 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a1400.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a1400.txt new file mode 100644 index 00000000..bd275089 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a1400.txt @@ -0,0 +1,218 @@ +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/chdk_reboot +Label: CHDK Reboot +Type: TOGGLE +Current: 2 +/main/actions/chdk_script +Label: CHDK Script +Type: RADIO +Current: cls();exit_alt(); +Choice: 0 cls();exit_alt(); +Choice: 1 shoot();cls();exit_alt(); +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A1400 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A1400 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1394345560 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 54853632 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A1400 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot A1400 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A1400 + Version: 1-14.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3896541184 (3716 MB) + Free Space (Bytes): 3521445888 (3358 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1394345551 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 54853632 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A1400' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[3] 14337,45317,47490 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A1400' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2200.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2200.txt new file mode 100644 index 00000000..c93a1c06 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2200.txt @@ -0,0 +1,154 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot A2200 + device version: 1-10.0.1.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A2200 + Version: 1-10.0.1.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3978952704 (3794 MB) + Free Space (Bytes): 3756326912 (3582 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1395500950 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 50659328 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A2200' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A2200' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2300is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2300is.txt new file mode 100644 index 00000000..54cf9b3f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2300is.txt @@ -0,0 +1,208 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A2300 + Version: 1-12.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 15923200 (15 MB) + Free Space (Bytes): 5950464 (5 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1363725061 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 52953088 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A2300' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A2300' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2300 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-12.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2300 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1363725157 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 52953088 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2300 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot A2300 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2400is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2400is.txt new file mode 100644 index 00000000..10f0eed2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2400is.txt @@ -0,0 +1,280 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot A2400 IS + device version: 1-12.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A2400 IS + Version: 1-12.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1346509609 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 52887552 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A2400 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A2400 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2400 IS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1346509609 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 52887552 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2400 IS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot A2400 IS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2500.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2500.txt new file mode 100644 index 00000000..fd05c009 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2500.txt @@ -0,0 +1,300 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A2500 + Version: 1-14.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 2% (2) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Warning Level 0 (4) +UNIX Time(0xd034):(readwrite) (type=0x6) 315532841 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 55640064 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A2500 ' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[3] 14337,45317,47490 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A2500 ' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2500 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2500 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 315532850 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 55640064 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2500 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot A2500 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot A2500 + device version: 1-14.0.1.0 + serial number: '1DC286ED81984EC7AD8684D381E895EC' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2600.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2600.txt new file mode 100644 index 00000000..ed6b6a68 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a2600.txt @@ -0,0 +1,321 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A2600 + Version: 1-14.0.1.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1996693504 (1904 MB) + Free Space (Bytes): 1994022912 (1901 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1395847438 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 54722560 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A2600 ' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[3] 14337,45317,47490 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A2600 ' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/chdk_reboot +Label: CHDK Reboot +Type: TOGGLE +Current: 2 +/main/actions/chdk_script +Label: CHDK Script +Type: RADIO +Current: cls();exit_alt(); +Choice: 0 cls();exit_alt(); +Choice: 1 shoot();cls();exit_alt(); +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2600 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2600 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1395847524 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 54722560 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A2600 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot A2600 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + + +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot A2600 + device version: 1-14.0.1.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d + 0x9999 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a3200is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a3200is.txt new file mode 100644 index 00000000..8634a6bb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a3200is.txt @@ -0,0 +1,48 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A3200 IS + Version: 1-10.0.1.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3956801536 (3773 MB) + Free Space (Bytes): 3952934912 (3769 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1395686179 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 43581440 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A3200 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A3200 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a3400is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a3400is.txt new file mode 100644 index 00000000..33623a1a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a3400is.txt @@ -0,0 +1,48 @@ + Camerasamenvatting: +Manufacturer: Canon Inc. +Model: Canon PowerShot A3400 IS + Version: 1-12.0.1.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1015414784 (968 MB) + Free Space (Bytes): 933396480 (890 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1397936499 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 52822016 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A3400 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A3400 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a3500is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a3500is.txt new file mode 100644 index 00000000..878dba3d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a3500is.txt @@ -0,0 +1,319 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A3500 IS + Version: 1-14.0.1.0 + Serial Number: AD9C5DD6E5314CCBB9FA941E00C42CA6 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + Canon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 14876672 (14 MB) + Free Space (Bytes): 8372224 (7 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1392840497 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 54657024 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A3500 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[3] 14337,45317,47490 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A3500 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: AD9C5DD6E5314CCBB9FA941E00C42CA6 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A3500 IS +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A3500 IS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1392840506 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 54657024 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A3500 IS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot A3500 IS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot A3500 IS + device version: 1-14.0.1.0 + serial number: 'AD9C5DD6E5314CCBB9FA941E00C42CA6' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 PTP_OC_GetDevicePropDesc + 0x1015 PTP_OC_GetDevicePropValue + 0x1016 PTP_OC_SetDevicePropValue + 0x1017 PTP_OC_ResetDevicePropValue + 0x1001 PTP_OC_GetDeviceInfo + 0x1002 PTP_OC_OpenSession + 0x1003 PTP_OC_CloseSession + 0x9013 PTP_OC_CANON_CheckEvent + 0x901f PTP_OC_CANON_ChangeUSBProtocol + 0x1004 PTP_OC_GetStorageIDs + 0x1005 PTP_OC_GetStorageInfo + 0x1006 PTP_OC_GetNumObjects + 0x1007 PTP_OC_GetObjectHandles + 0x1008 PTP_OC_GetObjectInfo + 0x1009 PTP_OC_GetObject + 0x100a PTP_OC_GetThumb + 0x101b PTP_OC_GetPartialObject + 0x100c PTP_OC_SendObjectInfo + 0x100d PTP_OC_SendObject + 0x100b PTP_OC_DeleteObject + 0x100f PTP_OC_FormatStore + 0x1012 PTP_OC_SetObjectProtection + 0x9001 PTP_OC_CANON_GetPartialObjectInfo + 0x9021 PTP_OC_CANON_GetObjectInfoEx + 0x901b PTP_OC_CANON_GetPartialObjectEx + 0x901e PTP_OC_CANON_GetObjectAttributes + 0x9019 PTP_OC_CANON_SendPartialObject + 0x9006 PTP_OC_CANON_GetObjectHandleByName + 0x901c PTP_OC_CANON_SetObjectTime + 0x9002 PTP_OC_CANON_SetObjectArchive + 0x904c + 0x9024 PTP_OC_CANON_SendObjectInfoByPath + 0x9025 PTP_OC_CANON_SendObjectByPath + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9068 + 0x9069 + 0x906a + 0x906b + 0x906c + 0x906d + 0x906e + 0x906f + 0x9033 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a400.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a400.txt new file mode 100644 index 00000000..0d38c2ed --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a400.txt @@ -0,0 +1,308 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot A400 + device version: 1-1.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9006 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9013 + 0x9014 + 0x9015 + 0x9018 + 0x9019 + 0x901a + 0x901b + 0x901c + 0x901d + 0x901e + 0x901f + 0x9020 + 0x9021 + 0x9022 + 0x9023 + 0x9024 + 0x9025 + 0x9026 + 0x9027 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00f +Device Properties Supported: + 0xd001 + 0xd002 + 0xd003 + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd045 + 0xd046 + 0xd047 + 0xd048 + 0xd049 + 0xd04b + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A400 + Version: 1-1.0.0.0 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, JPEG, MS AVI, MS Wave, CRW, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: D + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 14860288 (14 MB) + Free Space (Bytes): 14761984 (14 MB) + Free Space (Images): 81 +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Beep Mode(0xd001):(readwrite) (type=0x2) Enumeration [0,1] value: Off (1) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Lithium Ion (2) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +Camera Mode(0xd005):(read only) (type=0x2) 32 +Image Quality(0xd006):(readwrite) (type=0x2) Enumeration [2,3,5] value: Fine (3) +Full View File Format(0xd007):(readwrite) (type=0x2) Enumeration [1] value: JPEG (1) +Image Size(0xd008):(readwrite) (type=0x2) Enumeration [0,1,3,2] value: Small (2) +Self Time(0xd009):(read only) (type=0x4) 10 seconds (100) +Flash Mode(0xd00a):(readwrite) (type=0x2) Enumeration [0,1,2,5,6] value: Off (0) +Beep(0xd00b):(readwrite) (type=0x2) Enumeration [0,1] value: Off (0) +Shooting Mode(0xd00c):(readwrite) (type=0x2) Enumeration [1] value: P (1) +Drive Mode(0xd00e):(read only) (type=0x2) Single-Frame Shooting (0) +Zoom(0xd00f):(read only) (type=0x2) Off (0) +Metering Mode(0xd010):(readwrite) (type=0x2) Enumeration [0,1,3] value: Evaluative Metering (3) +AF Distance(0xd011):(readwrite) (type=0x2) Enumeration [1,3,7] value: Auto (1) +Focusing Point(0xd012):(readwrite) (type=0x4) Enumeration [12291,12289] value: Multiple Focusing Points, Auto (12289) +White Balance(0xd013):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,7,6] value: Auto (0) +AF Mode(0xd015):(read only) (type=0x2) Single Shot (0) +Contrast(0xd017):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +Color Gain(0xd018):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +Sharpness(0xd019):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +ISO Speed(0xd01c):(readwrite) (type=0x4) Enumeration [64,72,80,88,0] value: 50 (64) +Aperture(0xd01d):(readwrite) (type=0x4) Enumeration [] value: 32767 +Shutter Speed(0xd01e):(readwrite) (type=0x4) Enumeration [] value: 112 +Exposure Compensation(0xd01f):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Av Open(0xd023):(read only) (type=0x4) 32767 +Av Max(0xd024):(read only) (type=0x4) 48 +Focal Length(0xd025):(read only) (type=0x4) 189 +Focal Length Tele(0xd026):(read only) (type=0x4) 422 +Focal Length Wide(0xd027):(read only) (type=0x4) 189 +Focal Length Denominator(0xd028):(read only) (type=0x4) 32 +Capture Transfer Mode(0xd029):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] value: 13 +Zoom(0xd02a):(readwrite) (type=0x4) Range [0 - 9, step 1] value: 0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 1536,2048,1,0,0,0, + a[6] 1536,2048,6,0,0,0, + a[6] 1536,2048,11,0,0,0, + a[6] 1200,1600,2,0,0,0, + a[6] 1200,1600,7,0,0,0, + a[6] 1200,1600,12,0,0,0, + a[6] 768,1024,3,0,0,0, + a[6] 768,1024,8,0,0,0, + a[6] 768,1024,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 480,640,10,0,0,0 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) Enumeration [ + a[4] 119,0,159,0 + ] value: a[4] 119,0,159,0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 20480 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 5120 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A400' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +UNIX Time(0xd034):(readwrite) (type=0x6) 1238788651 +Camera Output(0xd036):(readwrite) (type=0x2) Enumeration [1,2,3] value: Off (3) +Disp Av(0xd037):(read only) (type=0x4) 1 +Av Open Apex(0xd038):(read only) (type=0x3) 38 +Digital Zoom Magnification(0xd039):(read only) (type=0x4) 2048 +Ml Spot Position(0xd03a):(read only) (type=0x4) MlSpotPosCenter (0) +Disp Av Max(0xd03b):(read only) (type=0x4) 0 +Av Max Apex(0xd03c):(read only) (type=0x4) 48 +EZoom Start Position(0xd03d):(read only) (type=0x4) 5 +Focal Length Tele(0xd03e):(read only) (type=0x4) 422 +EZoom Size of Tele(0xd03f):(read only) (type=0x4) 640 +Photo Effect(0xd040):(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5] value: Off (0) +Assist Light(0xd041):(readwrite) (type=0x4) Enumeration [1,0] value: On (1) +Flash Quantity Count(0xd042):(readwrite) (type=0x4) Enumeration [] value: 65535 +Rotation Angle(0xd043):(read only) (type=0x4) 0' (0) +Rotation Scene(0xd044):(readwrite) (type=0x4) Enumeration [0,1] value: On (0) +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +Average Filesizes(0xd048):(read only) (type=0x4006) a[19] 1640448,1026048,583680,0,254976,914432,571392,327680,0,153600,455680,284672,174080,0,86016,2097152,0,0,0 +Model ID(0xd049):(read only) (type=0x6) 21299200 +Property 0xd04b:(read only) (type=0x2) 0 + +gphoto2 --list-config +/main/actions/focuslock +/main/actions/syncdatetime +/main/settings/datetime +/main/settings/output +/main/settings/ownername +/main/settings/capturetarget +/main/settings/capture +/main/status/model +/main/status/firmwareversion +/main/status/orientation +/main/imgsettings/imagequality +/main/imgsettings/imageformat +/main/imgsettings/imagesize +/main/imgsettings/iso +/main/imgsettings/whitebalance +/main/imgsettings/photoeffect +/main/capturesettings/zoom +/main/capturesettings/assistlight +/main/capturesettings/autorotation +/main/capturesettings/exposurecompensation +/main/capturesettings/flashmode +/main/capturesettings/shootingmode +/main/capturesettings/aperture +/main/capturesettings/focusingpoint +/main/capturesettings/shutterspeed +/main/capturesettings/meteringmode +/main/capturesettings/afdistance +/main/other/d001 +/main/other/d002 +/main/other/d003 +/main/other/d005 +/main/other/d006 +/main/other/d007 +/main/other/d008 +/main/other/d009 +/main/other/d00a +/main/other/d00b +/main/other/d00c +/main/other/d00e +/main/other/d00f +/main/other/d010 +/main/other/d011 +/main/other/d012 +/main/other/d013 +/main/other/d015 +/main/other/d017 +/main/other/d018 +/main/other/d019 +/main/other/d01c +/main/other/d01d +/main/other/d01e +/main/other/d01f +/main/other/d023 +/main/other/d024 +/main/other/d025 +/main/other/d026 +/main/other/d027 +/main/other/d028 +/main/other/d029 +/main/other/d02a +/main/other/d02c +/main/other/d02d +/main/other/d02e +/main/other/d02f +/main/other/d030 +/main/other/d031 +/main/other/d032 +/main/other/d033 +/main/other/d034 +/main/other/d036 +/main/other/d037 +/main/other/d038 +/main/other/d039 +/main/other/d03a +/main/other/d03b +/main/other/d03c +/main/other/d03d +/main/other/d03e +/main/other/d03f +/main/other/d040 +/main/other/d041 +/main/other/d042 +/main/other/d043 +/main/other/d044 +/main/other/d045 +/main/other/d046 +/main/other/d047 +/main/other/d048 +/main/other/d049 +/main/other/d04b diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a4000is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a4000is.txt new file mode 100644 index 00000000..95ff658c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a4000is.txt @@ -0,0 +1,280 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot A4000 IS + device version: 1-12.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A4000 IS + Version: 1-12.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1327275957 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 52494336 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A4000 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777472 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A4000 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A4000 IS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.1.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1327275957 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 52494336 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A4000 IS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777472 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot A4000 IS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a430.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a430.txt new file mode 100644 index 00000000..1812709c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a430.txt @@ -0,0 +1,90 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot A430 + device version: 1-2.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a480.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a480.txt new file mode 100644 index 00000000..cdf3c0b5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a480.txt @@ -0,0 +1,214 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A480 + Version: 1-6.0.0.0 + Serial Number: XXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b104), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1272310826 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2736,3648,1,0,0,0, + a[6] 2736,3648,6,0,0,0, + a[6] 2736,3648,11,0,0,0, + a[6] 2112,2816,2,0,0,0, + a[6] 2112,2816,7,0,0,0, + a[6] 2112,2816,12,0,0,0, + a[6] 1704,2272,3,0,0,0, + a[6] 1704,2272,8,0,0,0, + a[6] 1704,2272,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 39387136 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A480' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A480' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 + +/main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 +/main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 +/main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1272310828 + Printable: Mon Apr 26 21:40:28 2010 +/main/settings/ownername + Label: Owner Name + Type: TEXT + Current: +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/status/model + Label: Camera Model + Type: TEXT + Current: Canon PowerShot A480 +/main/status/firmwareversion + Label: Firmware Version + Type: TEXT + Current: 1.0.0.0 +/main/other/d045 + Label: Event Emulate Mode + Type: MENU + Current: 2 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 +/main/other/d04a + Label: PTP Property 0xd04a + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d02e + Label: Size of Output Data from Camera + Type: TEXT + Current: 524288 +/main/other/d02f + Label: Size of Input Data to Camera + Type: TEXT + Current: 524288 +/main/other/d002 + Label: Battery Type + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d003 + Label: Battery Mode + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d034 + Label: UNIX Time + Type: TEXT + Current: 1272310831 +/main/other/d047 + Label: Type of Slideshow + Type: TEXT + Current: 0 +/main/other/d046 + Label: DPOF Version + Type: TEXT + Current: 257 +/main/other/d02d + Label: Supported Thumb Size + Type: TEXT + Current: (null) +/main/other/d02c + Label: Size Quality Mode + Type: MENU + Current: (null) +/main/other/d030 + Label: Remote API Version + Type: TEXT + Current: 256 +/main/other/d049 + Label: Model ID + Type: TEXT + Current: 39387136 +/main/other/d032 + Label: Camera Model + Type: TEXT + Current: Canon PowerShot A480 +/main/other/d033 + Label: Camera Owner + Type: TEXT + Current: (null) +/main/other/d031 + Label: Firmware Version + Type: TEXT + Current: 16777216 +/main/other/d050 + Label: PTP Property 0xd050 + Type: TEXT + Current: 1 +/main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon PowerShot A480 +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Windows +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a495.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a495.txt new file mode 100644 index 00000000..52258fde --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a495.txt @@ -0,0 +1,207 @@ +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/chdk_reboot +Label: CHDK Reboot +Type: TOGGLE +Current: 2 +/main/actions/chdk_script +Label: CHDK Script +Type: RADIO +Current: cls();exit_alt(); +Choice: 0 cls();exit_alt(); +Choice: 1 shoot();cls();exit_alt(); +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 3F1A5D03F98C45BABA2CEFE99F49EDAD +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A495 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-8.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A495 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1394386281 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 41943040 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot A495 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot A495 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A495 + Version: 1-8.0.1.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3949592576 (3766 MB) + Free Space (Bytes): 3684696064 (3514 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1394386265 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 41943040 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A495' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A495' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a510.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a510.txt new file mode 100644 index 00000000..12bfaa23 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a510.txt @@ -0,0 +1,150 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot A510 + device version: 1-1.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9006 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9013 + 0x9014 + 0x9015 + 0x9018 + 0x9019 + 0x901a + 0x901b + 0x901c + 0x901d + 0x901e + 0x901f + 0x9020 + 0x9021 + 0x9022 + 0x9023 + 0x9024 + 0x9025 + 0x9026 + 0x9027 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00f +Device Properties Supported: + 0xd001 + 0xd002 + 0xd003 + 0xd005 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b + 0xd00c + 0xd00e + 0xd00f + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd015 + 0xd017 + 0xd018 + 0xd019 + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02a + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd036 + 0xd037 + 0xd038 + 0xd039 + 0xd03a + 0xd03b + 0xd03c + 0xd03d + 0xd03e + 0xd03f + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd046 + 0xd047 + 0xd048 + 0xd049 + 0xd04b diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a520.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a520.txt new file mode 100644 index 00000000..e1aaa2c4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a520.txt @@ -0,0 +1,102 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot A520 + device version: 1-1.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9006 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9013 + 0x9014 + 0x9015 + 0x9018 + 0x9019 + 0x901a + 0x901b + 0x901c + 0x901d + 0x901e + 0x901f + 0x9020 + 0x9021 + 0x9022 + 0x9023 + 0x9024 + 0x9025 + 0x9026 + 0x9027 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00f +Device Properties Supported: + 0xd001 + 0xd002 + 0xd003 + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd045 + 0xd046 + 0xd047 + 0xd048 + 0xd049 + 0xd04b diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a530.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a530.txt new file mode 100644 index 00000000..ff18f075 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a530.txt @@ -0,0 +1,90 @@ +Device info: +Manufacturer: (null) + model: (null) + device version: (null) + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a550.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a550.txt new file mode 100644 index 00000000..745826db --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a550.txt @@ -0,0 +1,95 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot A550 + device version: 1-3.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd402 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a590is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a590is.txt new file mode 100644 index 00000000..d6e404d0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a590is.txt @@ -0,0 +1,185 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot A590 IS + device version: 1-5.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x00000006 +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x903f + 0x9040 + 0x9041 + 0x904d + 0x9044 + 0x9045 + 0x904e + 0x904f + 0x9054 + 0x9055 + 0x9056 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc00f + 0xc011 + 0xc013 + 0xc019 + 0xc01a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd402 + 0xd406 + 0xd407 + +Kamerazusammenfassung: +Modell: Canon PowerShot A590 IS + Geräteversion: 1-5.0.1.0 + Seriennummer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Händler Kennung: 0x00000006 +Händler Beschreibung: (null) + +Aufnahmeformate: JPEG +Anzeigeformate: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, Unknown(b101), Unknown(b103), Unknown(bf01) +Unterstützte MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b101)/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: Keine + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 2030960640 (1936 MB) + Freier Platz (Bytes): 1697546240 (1618 MB) + Freier Speicher (Bilder): -1 + +Properties des Geräts: +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) (type=0x6) 524288 +Property 0xd02f:(read only) (type=0x6) 262144 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Property 0xd003:(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +Property 0xd034:(readwrite) (type=0x6) 1205930913 +Property 0xd047:(read only) (type=0x4) 0 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd02d:(read only) (type=0x4006) a[4] 119,0,159,0 +Property 0xd02c:(read only) (type=0x4006) Enumeration [ + a[6] 2448,3264,1,0,0,0, + a[6] 2448,3264,6,0,0,0, + a[6] 2448,3264,11,0,0,0, + a[6] 1944,2592,2,0,0,0, + a[6] 1944,2592,7,0,0,0, + a[6] 1944,2592,12,0,0,0, + a[6] 1536,2048,3,0,0,0, + a[6] 1536,2048,8,0,0,0, + a[6] 1536,2048,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd049:(read only) (type=0x6) 37224448 +Property 0xd032:(read only) (type=0xffff) 'Canon PowerShot A590 IS' +Property 0xd033:(readwrite) (type=0x4002) a[0] +Property 0xd031:(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Anzeigbarer Gerätename(0xd402):(read only) (type=0xffff) Canon PowerShot A590 IS ('Canon PowerShot A590 IS') +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a620.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a620.txt new file mode 100644 index 00000000..74ac3722 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a620.txt @@ -0,0 +1,419 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot A620 + device version: 1-2.2.1.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x100e + 0x9008 + 0x901a + 0x9009 + 0x900b + 0x901d + 0x900d + 0x900c + 0x9014 + 0x9015 + 0x9018 + 0x9012 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00e + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd048 + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot A620 + Version: 1-2.2.1.0 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Script, DPOF, MS AVI, MS Wave, JPEG, CRW + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: A + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1917517824 (1828 MB) + Free Space (Bytes): 1351876608 (1289 MB) + Free Space (Images): -1 +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 262144 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +UNIX Time(0xd034):(readwrite) (type=0x6) 1224512910 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Average Filesizes(0xd048):(read only) (type=0x4006) a[19] 3118080,2563072,1640448,0,254976,1942528,1428480,914432,0,153600,923648,711680,455680,0,86016,0,1026048,571392,284672 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2304,3072,1,0,0,0, + a[6] 2304,3072,6,0,0,0, + a[6] 2304,3072,11,0,0,0, + a[6] 1944,2592,2,0,0,0, + a[6] 1944,2592,7,0,0,0, + a[6] 1944,2592,12,0,0,0, + a[6] 1536,2048,3,0,0,0, + a[6] 1536,2048,8,0,0,0, + a[6] 1536,2048,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 24641536 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A620' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[1] 0 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 + +/main/settings/owner + Label: Camera Owner + Type: TEXT + Current: +/main/settings/model + Label: Camera Model + Type: TEXT + Current: Canon PowerShot A620 +/main/settings/firmwareversion + Label: Firmware Version + Type: TEXT + Current: 1.0.0.0 +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1224513025 + Printable: Mon Oct 20 16:30:25 2008 +/main/settings/synctime + Label: Set camera time to PC time + Type: TOGGLE + Current: 0 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/imgsettings/canonimgquality + Label: Canon Image Quality + Type: RADIO + Current: superfine + Choice: 0 superfine + Choice: 1 fine + Choice: 2 normal +/main/imgsettings/canonimgsize + Label: Canon Image Size + Type: RADIO + Current: large + Choice: 0 large + Choice: 1 medium 1 + Choice: 2 medium 2 + Choice: 3 medium 3 + Choice: 4 small + /main/imgsettings/iso +Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 50 + Choice: 2 100 + Choice: 3 200 + Choice: 4 400 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Cloudy + Choice: 3 Tungsten + Choice: 4 Fluorescent + Choice: 5 Fluorescent H + Choice: 6 Custom +/main/imgsettings/photoeffect + Label: Photo Effect + Type: RADIO + Current: Off + Choice: 0 Off + Choice: 1 Vivid + Choice: 2 Neutral + Choice: 3 Low sharpening + Choice: 4 Sepia + Choice: 5 Black & white +/main/capturesettings/zoom + Label: Zoom + Type: RANGE + Current: 0 + Bottom: 0 + Top: 14 + Step: 1 +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 +2 + Choice: 1 +1 2/3 + Choice: 2 +1 1/3 + Choice: 3 +1 + Choice: 4 +2/3 + Choice: 5 +1/3 + Choice: 6 0 + Choice: 7 -1/3 + Choice: 8 -2/3 + Choice: 9 -1 + Choice: 10 -1 1/3 + Choice: 11 -1 2/3 + Choice: 12 -2 +/main/capturesettings/canonflashmode + Label: Flash Mode + Type: RADIO + Current: auto red eye + Choice: 0 off + Choice: 1 auto + Choice: 2 on + Choice: 3 auto red eye + Choice: 4 on red eye + Choice: 5 fill in +/main/capturesettings/shootingmode + Label: Canon Shooting Mode + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 TV + Choice: 2 AV + Choice: 3 Manual +/main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 4.5 + Choice: 0 auto + Choice: 1 1.4 + Choice: 2 1.6 + Choice: 3 1.8 + Choice: 4 2.0 + Choice: 5 2.2 + Choice: 6 2.5 + Choice: 7 2.8 + Choice: 8 3.2 + Choice: 9 3.5 + Choice: 10 4.0 + Choice: 11 4.5 + Choice: 12 5 + Choice: 13 5.6 + Choice: 14 6.3 + Choice: 15 7.1 + Choice: 16 8.0 + Choice: 17 9.0 + Choice: 18 10 + Choice: 19 11 + Choice: 20 13 + Choice: 21 14 + Choice: 22 16 + Choice: 23 18 + Choice: 24 20 + Choice: 25 22 + Choice: 26 25 + Choice: 27 29 + Choice: 28 32 +/main/capturesettings/focusingpoint + Label: Focusing Point + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Center +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 1/250 + Choice: 0 auto + Choice: 1 bulb + Choice: 2 30" + Choice: 3 25" + Choice: 4 20" + Choice: 5 15" + Choice: 6 13" + Choice: 7 10" + Choice: 8 8" + Choice: 9 6" + Choice: 10 5" + Choice: 11 4" + Choice: 12 3"2 + Choice: 13 2"5 + Choice: 14 2" + Choice: 15 1"6 + Choice: 16 1"3 + Choice: 17 1" + Choice: 18 0"8 + Choice: 19 0"6 + Choice: 20 0"5 + Choice: 21 0"4 + Choice: 22 0"3 + Choice: 23 1/4 + Choice: 24 1/5 + Choice: 25 1/6 + Choice: 26 1/8 + Choice: 27 1/10 + Choice: 28 1/13 + Choice: 29 1/15 + Choice: 30 1/20 + Choice: 31 1/25 + Choice: 32 1/30 + Choice: 33 1/40 + Choice: 34 1/50 + Choice: 35 1/60 + Choice: 36 1/80 + Choice: 37 1/100 + Choice: 38 1/125 + Choice: 39 1/160 + Choice: 40 1/200 + Choice: 41 1/250 + Choice: 42 1/320 + Choice: 43 1/400 + Choice: 44 1/500 + Choice: 45 1/640 + Choice: 46 1/800 + Choice: 47 1/1000 + Choice: 48 1/1250 + Choice: 49 1/1600 + Choice: 50 1/2000 + Choice: 51 1/2500 + Choice: 52 1/3200 + Choice: 53 1/4000 +/main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: center weighted average + Choice: 0 evaluative + Choice: 1 center weighted average + Choice: 2 spot +/main/capturesettings/afdistance + Label: AF Distance + Type: RADIO + Current: Off + Choice: 0 Off + Choice: 1 Macro +/main/capturesettings/focuslock + Label: Focus Lock + Type: TOGGLE + Current: 2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a630.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a630.txt new file mode 100644 index 00000000..631b2f0d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a630.txt @@ -0,0 +1,150 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot A630 + device version: 1-3.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd402 + 0xd407 + +(sorry for german) +Kamerazusammenfassung: +Modell: Canon PowerShot A630 + Geräteversion: 1-3.0.1.0 + Seriennummer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Händler Kennung: 0x0000000b +Händler Beschreibung: (null) + +Aufnahmeformate: JPEG +Anzeigeformate: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(bf01) + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: + +Properties des Geräts: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 262144 +Battery Kind(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +UNIX Zeit(0xd034):(readwrite) (type=0x6) 1184007261 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Bildgröße und -qualität(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2448,3264,1,0,0,0, + a[6] 2448,3264,6,0,0,0, + a[6] 2448,3264,11,0,0,0, + a[6] 1944,2592,2,0,0,0, + a[6] 1944,2592,7,0,0,0, + a[6] 1944,2592,12,0,0,0, + a[6] 1536,2048,3,0,0,0, + a[6] 1536,2048,8,0,0,0, + a[6] 1536,2048,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 33816576 +Kameramodell(0xd032):(read only) (type=0xffff) 'Canon PowerShot A630' +Kamerabesitzer(0xd033):(readwrite) (type=0x4002) a[1] 0 +Firmware Revision(0xd031):(read only) (type=0x6) 16777216 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot A630' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a640.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a640.txt new file mode 100644 index 00000000..6ad815d2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a640.txt @@ -0,0 +1,422 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot A640 + device version: 1-3.2.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x00000006 + ^^^^ VendorID of Microsoft! Not Canon! +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x100e + 0x9008 + 0x901a + 0x9009 + 0x900b + 0x901d + 0x900d + 0x900c + 0x9014 + 0x9015 + 0x9018 + 0x9012 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00e + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd048 + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd402 + 0xd407 + +Kamerazusammenfassung: +Modell: Canon PowerShot A640 + Geräteversion: 1-3.2.1.0 + Seriennummer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Händler Kennung: 0x00000006 +Händler Beschreibung: (null) + +Aufnahmeformate: JPEG +Anzeigeformate: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Unknown(b101), Unknown(bf01) +Unterstützte MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/unknown(dcd3) dc08/DateCreated dc09/DateModified + Unknown(b101)/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Generische Bild Aufnahme, keine Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: Keine + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 1029832704 (982 MB) + Freier Platz (Bytes): 1001816064 (955 MB) + Freier Speicher (Bilder): -1 + +Properties des Geräts: +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) (type=0x6) 524288 +Property 0xd02f:(read only) (type=0x6) 262144 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Property 0xd003:(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +Property 0xd034:(readwrite) (type=0x6) 1162306378 +Property 0xd047:(read only) (type=0x4) 0 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd02d:(read only) (type=0x4006) a[4] 119,0,159,0 +Property 0xd048:(read only) (type=0x4006) a[19] 4198400,2785280,2050048,0,254976,2519040,1658880,1142784,0,153600,1198080,798720,569344,0,86016,0,1026048,571392,284672 +Property 0xd02c:(read only) (type=0x4006) Enumeration [ + a[6] 2736,3648,1,0,0,0, + a[6] 2736,3648,6,0,0,0, + a[6] 2736,3648,11,0,0,0, + a[6] 2112,2816,2,0,0,0, + a[6] 2112,2816,7,0,0,0, + a[6] 2112,2816,12,0,0,0, + a[6] 1704,2272,3,0,0,0, + a[6] 1704,2272,8,0,0,0, + a[6] 1704,2272,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd049:(read only) (type=0x6) 33751040 +Property 0xd032:(read only) (type=0xffff) 'Canon PowerShot A640' +Property 0xd033:(readwrite) (type=0x4002) a[12] 84,104,111,109,97,115,32,82,246,108,122,0 +Property 0xd031:(read only) (type=0x6) 16777216 +Anzeigbarer Gerätename(0xd402):(read only) (type=0xffff) Canon PowerShot A640 ('Canon PowerShot A640') +Property 0xd407:(read only) (type=0x6) 1 + + + +/main/settings/owner + Label: Camera Owner + Type: TEXT + Current: +/main/settings/model + Label: Camera Model + Type: TEXT + Current: Canon PowerShot A640 +/main/settings/firmwareversion + Label: Firmware Version + Type: TEXT + Current: 1.0.0.0 +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1224068223 + Printable: Wed Oct 15 12:57:03 2008 +/main/settings/synctime + Label: Set camera time to PC time + Type: TOGGLE + Current: 0 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/imgsettings/canonimgquality + Label: Canon Image Quality + Type: RADIO + Current: superfine + Choice: 0 superfine + Choice: 1 fine + Choice: 2 normal +/main/imgsettings/canonimgsize + Label: Canon Image Size + Type: RADIO + Current: large + Choice: 0 large + Choice: 1 medium 1 + Choice: 2 medium 2 + Choice: 3 medium 3 + Choice: 4 small +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 80 + Choice: 2 100 + Choice: 3 200 + Choice: 4 400 + Choice: 5 800 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Cloudy + Choice: 3 Tungsten + Choice: 4 Fluorescent + Choice: 5 Fluorescent H + Choice: 6 Custom +/main/capturesettings/zoom + Label: Zoom + Type: RANGE + Current: 0 + Bottom: 0 + Top: 14 + Step: 1 +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: -1/3 + Choice: 0 +2 + Choice: 1 +1 2/3 + Choice: 2 +1 1/3 + Choice: 3 +1 + Choice: 4 +2/3 + Choice: 5 +1/3 + Choice: 6 0 + Choice: 7 -1/3 + Choice: 8 -2/3 + Choice: 9 -1 + Choice: 10 -1 1/3 + Choice: 11 -1 2/3 + Choice: 12 -2 +/main/capturesettings/canonflashmode + Label: Flash Mode + Type: RADIO + Current: on + Choice: 0 off + Choice: 1 auto + Choice: 2 on + Choice: 3 auto red eye + Choice: 4 on red eye + Choice: 5 fill in +/main/capturesettings/shootingmode + Label: Canon Shooting Mode + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 TV + Choice: 2 AV + Choice: 3 Manual +/main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 4.5 + Choice: 0 auto + Choice: 1 1.4 + Choice: 2 1.6 + Choice: 3 1.8 + Choice: 4 2.0 + Choice: 5 2.2 + Choice: 6 2.5 + Choice: 7 2.8 + Choice: 8 3.2 + Choice: 9 3.5 + Choice: 10 4.0 + Choice: 11 4.5 + Choice: 12 5 + Choice: 13 5.6 + Choice: 14 6.3 + Choice: 15 7.1 + Choice: 16 8.0 + Choice: 17 9.0 + Choice: 18 10 + Choice: 19 11 + Choice: 20 13 + Choice: 21 14 + Choice: 22 16 + Choice: 23 18 + Choice: 24 20 + Choice: 25 22 + Choice: 26 25 + Choice: 27 29 + Choice: 28 32 +/main/capturesettings/focusingpoint + Label: Focusing Point + Type: RADIO + Current: Center + Choice: 0 Auto + Choice: 1 Center +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 1/250 + Choice: 0 auto + Choice: 1 bulb + Choice: 2 30" + Choice: 3 25" + Choice: 4 20" + Choice: 5 15" + Choice: 6 13" + Choice: 7 10" + Choice: 8 8" + Choice: 9 6" + Choice: 10 5" + Choice: 11 4" + Choice: 12 3"2 + Choice: 13 2"5 + Choice: 14 2" + Choice: 15 1"6 + Choice: 16 1"3 + Choice: 17 1" + Choice: 18 0"8 + Choice: 19 0"6 + Choice: 20 0"5 + Choice: 21 0"4 + Choice: 22 0"3 + Choice: 23 1/4 + Choice: 24 1/5 + Choice: 25 1/6 + Choice: 26 1/8 + Choice: 27 1/10 + Choice: 28 1/13 + Choice: 29 1/15 + Choice: 30 1/20 + Choice: 31 1/25 + Choice: 32 1/30 + Choice: 33 1/40 + Choice: 34 1/50 + Choice: 35 1/60 + Choice: 36 1/80 + Choice: 37 1/100 + Choice: 38 1/125 + Choice: 39 1/160 + Choice: 40 1/200 + Choice: 41 1/250 + Choice: 42 1/320 + Choice: 43 1/400 + Choice: 44 1/500 + Choice: 45 1/640 + Choice: 46 1/800 + Choice: 47 1/1000 + Choice: 48 1/1250 + Choice: 49 1/1600 + Choice: 50 1/2000 + Choice: 51 1/2500 + Choice: 52 1/3200 + Choice: 53 1/4000 +/main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: integral(?) + Choice: 0 integral(?) + Choice: 1 center weighted(?) + Choice: 2 spot +/main/capturesettings/afdistance + Label: AF Distance + Type: RADIO + Current: Off + Choice: 0 Off + Choice: 1 Macro +/main/capturesettings/focuslock + Label: Focus Lock + Type: TOGGLE + Current: 2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a70-capture.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a70-capture.txt new file mode 100644 index 00000000..3b4adc9b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a70-capture.txt @@ -0,0 +1,102 @@ +Camera summary: +Model: Canon PowerShot A70 + device version: 01.0001 + serial number: (null) +Vendor extension ID: 0x0000000b +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Association/Directory, JPEG, MS AVI, MS Wave, Unknown(b101), Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Beep Mode(0xd001):(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 2 +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +Camera Mode(0xd005):(read only) (type=0x2) 32 +Image Quality(0xd006):(readwrite) (type=0x2) Enumeration [2,3,5] value: 3 +Full View File Format(0xd007):(readwrite) (type=0x2) Enumeration [1] value: 1 +Image Size(0xd008):(readwrite) (type=0x2) Enumeration [0,1,3,2] value: 3 +Self Time(0xd009):(read only) (type=0x4) 100 +Flash Mode(0xd00a):(readwrite) (type=0x2) Enumeration [0,1,2,5,6] value: 0 +Beep(0xd00b):(read only) (type=0x2) 0 +Shooting Mode(0xd00c):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 1 +Drive Mode(0xd00e):(read only) (type=0x2) 0 +Zoom(0xd00f):(read only) (type=0x2) 0 +Metering Mode(0xd010):(readwrite) (type=0x2) Enumeration [0,1,3] value: 3 +AF Distance(0xd011):(readwrite) (type=0x2) Enumeration [] value: 0 +Focusing Point(0xd012):(readwrite) (type=0x4) Enumeration [12291,12289] value: 12289 +White Balance(0xd013):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,7,6] value: 0 +AF Mode(0xd015):(read only) (type=0x2) 0 +Contrast(0xd017):(readwrite) (type=0x1) Enumeration [0] value: 0 +Color Gain(0xd018):(readwrite) (type=0x1) Enumeration [0] value: 0 +Sharpness(0xd019):(readwrite) (type=0x1) Enumeration [0] value: 0 +ISO Speed(0xd01c):(readwrite) (type=0x4) Enumeration [64,72,80,88,0] value: 64 +Aperture(0xd01d):(readwrite) (type=0x4) Enumeration [] value: 40 +Shutter Speed(0xd01e):(readwrite) (type=0x4) Enumeration [] value: 32 +Exposure Compensation(0xd01f):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Av Open(0xd023):(read only) (type=0x4) 32 +Av Max(0xd024):(read only) (type=0x4) 56 +Focal Length(0xd025):(read only) (type=0x4) 173 +Focal Length Tele(0xd026):(read only) (type=0x4) 519 +Focal Length Wide(0xd027):(read only) (type=0x4) 173 +Focal Length Denominator(0xd028):(read only) (type=0x4) 32 +Capture Transfer Mode(0xd029):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] value: 3 +Zoom(0xd02a):(readwrite) (type=0x4) Range [0 - 11, step 1] value: 0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 1536,2048,1,0,0,0, + a[6] 1536,2048,6,0,0,0, + a[6] 1536,2048,11,0,0,0, + a[6] 1200,1600,2,0,0,0, + a[6] 1200,1600,7,0,0,0, + a[6] 1200,1600,12,0,0,0, + a[6] 768,1024,3,0,0,0, + a[6] 768,1024,8,0,0,0, + a[6] 768,1024,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 768,1024,8,0,0,0 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) Enumeration [ + a[4] 119,0,159,0 + ] value: a[4] 119,0,159,0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 20480 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 5120 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Firmware Version(0xd031):(read only) (type=0x6) 33554432 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A70' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[] +UNIX Time(0xd034):(readwrite) (type=0x6) 1227619592 +Camera Output(0xd036):(readwrite) (type=0x2) Enumeration [1,2,3] value: 3 +Disp Av(0xd037):(read only) (type=0x4) 0 +Av Open Apex(0xd038):(read only) (type=0x3) 32 +Digital Zoom Magnification(0xd039):(read only) (type=0x4) 2048 +Ml Spot Position(0xd03a):(read only) (type=0x4) 0 +Disp Av Max(0xd03b):(read only) (type=0x4) 0 +Av Max Apex(0xd03c):(read only) (type=0x4) 56 +EZoom Start Position(0xd03d):(read only) (type=0x4) 7 +Focal Length Tele(0xd03e):(read only) (type=0x4) 519 +EZoom Size of Tele(0xd03f):(read only) (type=0x4) 640 +Photo Effect(0xd040):(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Assist Light(0xd041):(readwrite) (type=0x4) Enumeration [0,1] value: 1 +Flash Quantity Count(0xd042):(readwrite) (type=0x4) Enumeration [] value: 65535 +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +Average Filesizes(0xd048):(read only) (type=0x4006) a[16] 1640448,1026048,583680,0,254976,914432,571392,327680,0,153600,455680,284672,174080,0,86016,2097152 +Model ID(0xd049):(read only) (type=0x6) 19202048 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a700.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a700.txt new file mode 100644 index 00000000..a3542782 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a700.txt @@ -0,0 +1,90 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot A700 + device version: 1-2.0.1.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a720.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a720.txt new file mode 100644 index 00000000..74fd1394 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a720.txt @@ -0,0 +1,73 @@ +Camera summary: +Model: Canon PowerShot A720 IS + device version: 1-4.0.1.0 + serial number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor extension ID: 0x00000006 +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Unknown(3800), Unknown(b101), Unknown(b103), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/unknown(dcd3) dc08/DateCreated dc09/DateModified + Unknown(3800)/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/unknown(dcd3) dc08/DateCreated dc09/DateModified + Unknown(b101)/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/unknown(dcd3) dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/unknown(dcd3) dc08/DateCreated dc09/DateModified + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 2007105536 (1914 MB) + Free Space (Bytes): 133300224 (127 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) (type=0x6) 524288 +Property 0xd02f:(read only) (type=0x6) 262144 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Property 0xd003:(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +Property 0xd034:(readwrite) (type=0x6) 1200070016 +Property 0xd047:(read only) (type=0x4) 0 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd02d:(read only) (type=0x4006) a[4] 119,0,159,0 +Property 0xd02c:(read only) (type=0x4006) Enumeration [ + a[6] 2448,3264,1,0,0,0, + a[6] 2448,3264,6,0,0,0, + a[6] 2448,3264,11,0,0,0, + a[6] 1944,2592,2,0,0,0, + a[6] 1944,2592,7,0,0,0, + a[6] 1944,2592,12,0,0,0, + a[6] 1536,2048,3,0,0,0, + a[6] 1536,2048,8,0,0,0, + a[6] 1536,2048,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd049:(read only) (type=0x6) 36044800 +Property 0xd032:(read only) (type=0xffff) 'Canon PowerShot A720 IS' +Property 0xd033:(readwrite) (type=0x4002) a[0] +Property 0xd031:(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) Canon PowerShot A720 IS ('Canon PowerShot A720 IS') +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a800.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a800.txt new file mode 100644 index 00000000..cb5da5f8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a800.txt @@ -0,0 +1,100 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot A800 + device version: 1-10.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a95.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a95.txt new file mode 100644 index 00000000..33e4b5b5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-a95.txt @@ -0,0 +1,263 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot A95 + device version: 1-1.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9006 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9013 + 0x9014 + 0x9015 + 0x9018 + 0x9019 + 0x901a + 0x901b + 0x901c + 0x901d + 0x901e + 0x901f + 0x9020 + 0x9021 + 0x9022 + 0x9023 + 0x9024 + 0x9025 + 0x9026 + 0x9027 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00f +Device Properties Supported: + 0xd001 + 0xd002 + 0xd003 + 0xd005 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b + 0xd00c + 0xd00e + 0xd00f + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd015 + 0xd017 + 0xd018 + 0xd019 + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02a + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd036 + 0xd037 + 0xd038 + 0xd039 + 0xd03a + 0xd03b + 0xd03c + 0xd03d + 0xd03e + 0xd03f + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd046 + 0xd047 + 0xd048 + 0xd049 + 0xd04b + +Camera summary: +Model: Canon PowerShot A95 + device version: 1-1.0.0.0 + serial number: (null) +Vendor extension ID: 0x0000000b +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Association/Directory, JPEG, MS AVI, MS Wave, CRW, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: D + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 514760704 (490 MB) + Free Space (Bytes): 509345792 (485 MB) + Free Space (Images): 352 +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Beep Mode(0xd001):(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Battery Kind(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 2 +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +Camera Mode(0xd005):(read only) (type=0x2) 32 +Image Quality(0xd006):(readwrite) (type=0x2) Enumeration [2,3,5] value: 3 +Full View File Format(0xd007):(readwrite) (type=0x2) Enumeration [1] value: 1 +Image Size(0xd008):(readwrite) (type=0x2) Enumeration [0,1,3,2] value: 0 +Self Time(0xd009):(read only) (type=0x4) 100 +Flash Mode(0xd00a):(readwrite) (type=0x2) Enumeration [0,1,2,5,6] value: 0 +Beep(0xd00b):(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Shooting Mode(0xd00c):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 1 +Drive Mode(0xd00e):(read only) (type=0x2) 0 +Zoom(0xd00f):(read only) (type=0x2) 0 +Metering Mode(0xd010):(readwrite) (type=0x2) Enumeration [0,1,3] value: 3 +AF Distance(0xd011):(readwrite) (type=0x2) Enumeration [1,3] value: 1 +Focusing Point(0xd012):(readwrite) (type=0x4) Enumeration [12291,12289] value: 12289 +White Balance(0xd013):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,7,6] value: 0 +AF Mode(0xd015):(read only) (type=0x2) 0 +Contrast(0xd017):(readwrite) (type=0x1) Enumeration [0] value: 0 +Color Gain(0xd018):(readwrite) (type=0x1) Enumeration [0] value: 0 +Sharpness(0xd019):(readwrite) (type=0x1) Enumeration [0] value: 0 +ISO Speed(0xd01c):(readwrite) (type=0x4) Enumeration [64,72,80,88,0] value: 64 +Aperture(0xd01d):(readwrite) (type=0x4) Enumeration [] value: 40 +ShutterSpeed(0xd01e):(readwrite) (type=0x4) Enumeration [] value: 112 +Exposure Compensation(0xd01f):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Av Open(0xd023):(read only) (type=0x4) 32 +Av Max(0xd024):(read only) (type=0x4) 56 +Focal Length(0xd025):(read only) (type=0x4) 250 +Focal Length Tele(0xd026):(read only) (type=0x4) 749 +Focal Length Wide(0xd027):(read only) (type=0x4) 250 +Focal Length Denominator(0xd028):(read only) (type=0x4) 32 +Capture Transfer Mode(0xd029):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] value: 3 +Zoom(0xd02a):(readwrite) (type=0x4) Range [0 - 12, step 1] value: 0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 1944,2592,1,0,0,0, + a[6] 1944,2592,6,0,0,0, + a[6] 1944,2592,11,0,0,0, + a[6] 1536,2048,2,0,0,0, + a[6] 1536,2048,7,0,0,0, + a[6] 1536,2048,12,0,0,0, + a[6] 1200,1600,3,0,0,0, + a[6] 1200,1600,8,0,0,0, + a[6] 1200,1600,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 1944,2592,6,0,0,0 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) Enumeration [ + a[4] 119,0,159,0 + ] value: a[4] 119,0,159,0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 20480 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 5120 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot A95' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +UNIX Time(0xd034):(readwrite) (type=0x6) 1203880608 +Camera Output(0xd036):(readwrite) (type=0x2) Enumeration [1,2,3] value: 3 +Disp Av(0xd037):(read only) (type=0x4) 0 +Av Open Apex(0xd038):(read only) (type=0x3) 32 +Digital Zoom Magnification(0xd039):(read only) (type=0x4) 2592 +Ml Spot Position(0xd03a):(read only) (type=0x4) 0 +Disp Av Max(0xd03b):(read only) (type=0x4) 0 +Av Max Apex(0xd03c):(read only) (type=0x4) 56 +EZoom Start Position(0xd03d):(read only) (type=0x4) 7 +Focal Length of Tele(0xd03e):(read only) (type=0x4) 749 +EZoom Size of Tele(0xd03f):(read only) (type=0x4) 640 +Photo Effect(0xd040):(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Assist Light(0xd041):(readwrite) (type=0x4) Enumeration [1,0] value: 1 +Flash Quanity Count(0xd042):(readwrite) (type=0x4) Enumeration [] value: 65535 +Rotation Angle(0xd043):(read only) (type=0x4) 0 +Rotation Scene(0xd044):(readwrite) (type=0x4) Enumeration [0,1] value: 0 +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +Average Filesizes(0xd048):(read only) (type=0x4006) a[19] 2563072,1640448,1026048,0,254976,1428480,914432,571392,0,153600,711680,455680,284672,0,86016,4405248,0,0,0 +Model ID(0xd049):(read only) (type=0x6) 22216704 +Property 0xd04b:(read only) (type=0x2) 0 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-d10.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-d10.txt new file mode 100644 index 00000000..bf2037fe --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-d10.txt @@ -0,0 +1,74 @@ +Sommario della fotocamera: +Produttore: Canon Inc. +Modello: Canon PowerShot D10 + Versione: 1-6.0.1.0 + Numero di serie: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Formati di cattura: JPEG +Formati di visualizzazione: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b104), Unknown(bf01) +Proprietà supportate degli oggetti MTP: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Potenzialità del dispositivo: + Scaricamento file, Eliminazione file, Caricamento del file + Nessuna cattura immagine, Nessuna cattura aperta, Cattura non legata ad un vendor specifico + +Sommario dispositivi di memoria. +store_00010001: + Descrizione memoria: Nessuno + Etichetta volume: Nessuno + Tipo di memoria: RAM rimovibile (scheda di memoria) + Tipo di file system: Layout della fotocamera digitale (DCIM) + Capacità di accesso: Lettura-Scrittura + Capacità massima: 998375424 (952 MB) + Spazio libero (byte): 582074368 (555 MB) + Spazio libero (immagini): -1 + +Sommario proprietà dispositivo: +Modalità di emulazione evento(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Dimensione dati di output della fotocamera(0xd02e):(read only) (type=0x6) 524288 +Dimensione dati di input della fotocamera(0xd02f):(read only) (type=0x6) 524288 +Tipo batteria(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Modalità batteria(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +Orario UNIX(0xd034):(readwrite) (type=0x6) 1272130100 +Tipo di presentazione(0xd047):(read only) (type=0x4) 2 +Versione DPOF:(0xd046):(read only) (type=0x4) 257 +Dimensioni miniature gestite(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Modalità qualità dimensione(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 3000,4000,1,0,0,0, + a[6] 3000,4000,6,0,0,0, + a[6] 3000,4000,11,0,0,0, + a[6] 2448,3264,2,0,0,0, + a[6] 2448,3264,7,0,0,0, + a[6] 2448,3264,12,0,0,0, + a[6] 1944,2592,3,0,0,0, + a[6] 1944,2592,8,0,0,0, + a[6] 1944,2592,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Versione API remota(0xd030):(read only) (type=0x6) 256 +ID modello:(0xd049):(read only) (type=0x6) 39190528 +Modello fotocamera(0xd032):(read only) (type=0xffff) 'Canon PowerShot D10' +Proprietario fotocamera(0xd033):(readwrite) (type=0x4002) a[0] +Revisione del firmware(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot D10' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-d20.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-d20.txt new file mode 100644 index 00000000..0a7b1d92 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-d20.txt @@ -0,0 +1,48 @@ + Resumen de la cámara: +Manufacturer: Canon Inc. +Model: Canon PowerShot D20 + Version: 1-12.0.1.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7813988352 (7452 MB) + Free Space (Bytes): 7121141760 (6791 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1397917211 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 52428800 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot D20' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot D20' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-elph-350hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-elph-350hs.txt new file mode 100644 index 00000000..f9c0a2fb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-elph-350hs.txt @@ -0,0 +1,120 @@ + Device info: + Manufacturer: Canon Inc. + Model: Canon PowerShot ELPH 350 HS + device version: 1-14.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' + Vendor extension ID: 0x0000000b + Vendor extension version: 100 + Vendor extension description: (null) + Functional Mode: 0x0000 + PTP Standard Version: 100 + Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9116 + 0x9101 + 0x9102 + 0x9103 + 0x9107 + 0x910a + 0x9115 + 0x9114 + 0x9153 + 0x9128 + 0x9129 + 0x9110 + 0x9050 + 0x9051 + 0x905c + 0x905d + Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc101 + Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd057 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + 0xd055 + 0xd056 + 0xd106 + 0xd1b0 + 0xd111 + 0xd112 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g11.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g11.txt new file mode 100644 index 00000000..1f985bad --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g11.txt @@ -0,0 +1,169 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot G11 + device version: 1-7.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x905e + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd402 + 0xd406 + 0xd407 + +Résumé de l'appareil : +Manufacturer: Canon Inc. +Model: Canon PowerShot G11 + Version: 1-7.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b104), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Capacités du périphérique : + File Download, File Deletion, File Upload + No Image Capture, Aucune capture ouverte Aucune capture spécifique fournisseur + +Liste des périphériques de stockage : + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +Temps UNIX(0xd034):(readwrite) (type=0x6) 1259529707 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2736,3648,1,0,0,0, + a[6] 2736,3648,6,0,0,0, + a[6] 2736,3648,11,0,0,0, + a[6] 2112,2816,2,0,0,0, + a[6] 2112,2816,7,0,0,0, + a[6] 2112,2816,12,0,0,0, + a[6] 1704,2272,3,0,0,0, + a[6] 1704,2272,8,0,0,0, + a[6] 1704,2272,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 40894464 +Modèle de l'appareil(0xd032):(read only) (type=0xffff) 'Canon PowerShot G11' +Propriètaire de l'appareil(0xd033):(readwrite) (type=0x4002) a[0] +Version du microprogramme(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot G11' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g15.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g15.txt new file mode 100644 index 00000000..501a98a0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g15.txt @@ -0,0 +1,321 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot G15 + device version: 1-13.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9063 + 0x9064 + 0x9065 + 0x9066 + 0x9067 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd053 + 0xd054 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot G15 + Version: 1-13.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 2% (2) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Warning Level 0 (4) +UNIX Time(0xd034):(readwrite) (type=0x6) 1372354377 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 53673984 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot G15' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053:(readwrite) (type=0x4002) a[0] +Property 0xd054:(readwrite) (type=0x4002) a[0] +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot G15' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot G15 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-13.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot G15 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1372354377 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 53673984 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot G15 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d053 +Label: PTP Property 0xd053 +Type: TEXT +Current: (null) +/main/other/d054 +Label: PTP Property 0xd054 +Type: TEXT +Current: (null) +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot G15 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g16.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g16.txt new file mode 100644 index 00000000..26168a66 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g16.txt @@ -0,0 +1,229 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot G16 + Version: 1-14.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 15699312640 (14972 MB) + Free Space (Bytes): 15699247104 (14971 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1483808828 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 55836672 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot G16' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777472 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x0) Undefined +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053:(readwrite) (type=0x4002) a[0] +Property 0xd054:(readwrite) (type=0x0) Undefined +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot G16' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1483805247 +Printable: Sa 07 Jan 2017 17:07:27 CET +Help: Use 'now' as the current time when setting. + +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot G16 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot G16 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.1.0 +/main/status/Battery Level +Label: Battery Level +Type: TEXT +Current: 3% +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1483808847 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 55836672 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot G16 +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777472 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d053 +Label: PTP Property 0xd053 +Type: TEXT +Current: (null) +/main/other/d054 +Label: PTP Property 0xd054 +Type: TEXT +Current: (null) +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot G16 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g5x.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g5x.txt new file mode 100644 index 00000000..34e009b3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g5x.txt @@ -0,0 +1,1427 @@ + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot G5 X + Version: 1-14.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture 2 + +Storage Devices Summary: +store_00010001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 31902433280 (30424 MB) + Free Space (Bytes): 27966046208 (26670 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1543675381 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 60096512 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot G5 X' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777472 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x0) Undefined +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053:(readwrite) (type=0x0) Undefined +Property 0xd054:(readwrite) (type=0x0) Undefined +Property 0xd057:(read only) (type=0xffff) '453053001155' +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot G5 X' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + + +0.377320 print_debug_deviceinfo (2): Device info: +0.377357 print_debug_deviceinfo (2): Manufacturer: Canon Inc. +0.377388 print_debug_deviceinfo (2): Model: Canon PowerShot G5 X +0.377418 print_debug_deviceinfo (2): device version: 1-14.0.1.0 +0.377452 print_debug_deviceinfo (2): serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +0.377484 print_debug_deviceinfo (2): Vendor extension ID: 0x0000000b +0.377519 print_debug_deviceinfo (2): Vendor extension version: 100 +0.377549 print_debug_deviceinfo (2): Vendor extension description: (null) +0.377584 print_debug_deviceinfo (2): Functional Mode: 0x0000 +0.377615 print_debug_deviceinfo (2): PTP Standard Version: 100 +0.377644 print_debug_deviceinfo (2): Supported operations: +0.377683 print_debug_deviceinfo (2): 0x1014 (Get device property description) +0.377721 print_debug_deviceinfo (2): 0x1015 (Get device property value) +0.377758 print_debug_deviceinfo (2): 0x1016 (Set device property value) +0.377791 print_debug_deviceinfo (2): 0x1017 (Reset device property value) +0.377828 print_debug_deviceinfo (2): 0x1001 (Get device info) +0.377865 print_debug_deviceinfo (2): 0x1002 (Open session) +0.377898 print_debug_deviceinfo (2): 0x1003 (Close session) +0.377936 print_debug_deviceinfo (2): 0x9013 (PTP_OC_CANON_CheckEvent) +0.377973 print_debug_deviceinfo (2): 0x901f (PTP_OC_CANON_ChangeUSBProtocol) +0.378006 print_debug_deviceinfo (2): 0x1004 (Get storage IDs) +0.378043 print_debug_deviceinfo (2): 0x1005 (Get storage info) +0.378080 print_debug_deviceinfo (2): 0x1006 (Get number of objects) +0.378113 print_debug_deviceinfo (2): 0x1007 (Get object handles) +0.378150 print_debug_deviceinfo (2): 0x1008 (Get object info) +0.378187 print_debug_deviceinfo (2): 0x1009 (Get object) +0.378219 print_debug_deviceinfo (2): 0x100a (Get thumbnail) +0.378257 print_debug_deviceinfo (2): 0x101b (Get partial object) +0.378294 print_debug_deviceinfo (2): 0x100c (Send object info) +0.378326 print_debug_deviceinfo (2): 0x100d (Send object) +0.378363 print_debug_deviceinfo (2): 0x100b (Delete object) +0.378400 print_debug_deviceinfo (2): 0x100f (Format storage) +0.378433 print_debug_deviceinfo (2): 0x1012 (Set object protection) +0.378471 print_debug_deviceinfo (2): 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) +0.378508 print_debug_deviceinfo (2): 0x9021 (PTP_OC_CANON_GetObjectInfoEx) +0.378573 print_debug_deviceinfo (2): 0x901b (PTP_OC_CANON_GetPartialObjectEx) +0.378607 print_debug_deviceinfo (2): 0x901e (PTP_OC_CANON_GetObjectAttributes) +0.378644 print_debug_deviceinfo (2): 0x9019 (PTP_OC_CANON_SendPartialObject) +0.378681 print_debug_deviceinfo (2): 0x9006 (PTP_OC_CANON_GetObjectHandleByName) +0.378719 print_debug_deviceinfo (2): 0x901c (PTP_OC_CANON_SetObjectTime) +0.378753 print_debug_deviceinfo (2): 0x9002 (PTP_OC_CANON_SetObjectArchive) +0.378791 print_debug_deviceinfo (2): 0x904c (Unknown PTP_OC) +0.378828 print_debug_deviceinfo (2): 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) +0.378861 print_debug_deviceinfo (2): 0x9025 (PTP_OC_CANON_SendObjectByPath ) +0.378900 print_debug_deviceinfo (2): 0x9038 (Unknown PTP_OC) +0.378938 print_debug_deviceinfo (2): 0x9039 (Unknown PTP_OC) +0.378976 print_debug_deviceinfo (2): 0x903a (Unknown PTP_OC) +0.379013 print_debug_deviceinfo (2): 0x903b (Unknown PTP_OC) +0.379047 print_debug_deviceinfo (2): 0x904b (Unknown PTP_OC) +0.379084 print_debug_deviceinfo (2): 0x9060 (Unknown PTP_OC) +0.379122 print_debug_deviceinfo (2): 0x9062 (Unknown PTP_OC) +0.379155 print_debug_deviceinfo (2): 0x9801 (Unknown PTP_OC) +0.379192 print_debug_deviceinfo (2): 0x9802 (Unknown PTP_OC) +0.379229 print_debug_deviceinfo (2): 0x9803 (Unknown PTP_OC) +0.379263 print_debug_deviceinfo (2): 0x9804 (Unknown PTP_OC) +0.379300 print_debug_deviceinfo (2): 0x9805 (Unknown PTP_OC) +0.379338 print_debug_deviceinfo (2): 0x9116 (PTP_OC_CANON_EOS_GetEvent) +0.379374 print_debug_deviceinfo (2): 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) +0.379409 print_debug_deviceinfo (2): 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) +0.379446 print_debug_deviceinfo (2): 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) +0.379483 print_debug_deviceinfo (2): 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) +0.379516 print_debug_deviceinfo (2): 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) +0.379554 print_debug_deviceinfo (2): 0x910a (PTP_OC_CANON_EOS_GetThumbEx) +0.379591 print_debug_deviceinfo (2): 0x9117 (PTP_OC_CANON_EOS_TransferComplete) +0.379624 print_debug_deviceinfo (2): 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) +0.379662 print_debug_deviceinfo (2): 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) +0.379700 print_debug_deviceinfo (2): 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) +0.381098 print_debug_deviceinfo (2): 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) +0.381146 print_debug_deviceinfo (2): 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) +0.381180 print_debug_deviceinfo (2): 0x9115 (PTP_OC_CANON_EOS_SetEventMode) +0.381218 print_debug_deviceinfo (2): 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) +0.381255 print_debug_deviceinfo (2): 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) +0.381293 print_debug_deviceinfo (2): 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) +0.381326 print_debug_deviceinfo (2): 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) +0.381363 print_debug_deviceinfo (2): 0x9154 (PTP_OC_CANON_EOS_DoAf) +0.381401 print_debug_deviceinfo (2): 0x9160 (PTP_OC_CANON_EOS_AfCancel) +0.381434 print_debug_deviceinfo (2): 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) +0.381471 print_debug_deviceinfo (2): 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) +0.381509 print_debug_deviceinfo (2): 0x9050 (Unknown PTP_OC) +0.381546 print_debug_deviceinfo (2): 0x9051 (Unknown PTP_OC) +0.381579 print_debug_deviceinfo (2): 0x905c (Unknown PTP_OC) +0.381616 print_debug_deviceinfo (2): 0x905d (Unknown PTP_OC) +0.381646 print_debug_deviceinfo (2): Events Supported: +0.381680 print_debug_deviceinfo (2): 0x4001 +0.381710 print_debug_deviceinfo (2): 0x4002 +0.381740 print_debug_deviceinfo (2): 0x4003 +0.381773 print_debug_deviceinfo (2): 0x4004 +0.381803 print_debug_deviceinfo (2): 0x4005 +0.381833 print_debug_deviceinfo (2): 0x4006 +0.381866 print_debug_deviceinfo (2): 0x4007 +0.381929 print_debug_deviceinfo (2): 0x4008 +0.381963 print_debug_deviceinfo (2): 0x4009 +0.381993 print_debug_deviceinfo (2): 0x400a +0.382023 print_debug_deviceinfo (2): 0x400b +0.382057 print_debug_deviceinfo (2): 0x400c +0.382087 print_debug_deviceinfo (2): 0x400e +0.382117 print_debug_deviceinfo (2): 0xc001 +0.382150 print_debug_deviceinfo (2): 0xc005 +0.382179 print_debug_deviceinfo (2): 0xc00a +0.382209 print_debug_deviceinfo (2): 0xc101 +0.382238 print_debug_deviceinfo (2): Device Properties Supported: +0.382272 print_debug_deviceinfo (2): 0xd045 +0.382302 print_debug_deviceinfo (2): 0xd04a +0.382331 print_debug_deviceinfo (2): 0xd02e +0.382365 print_debug_deviceinfo (2): 0xd02f +0.382394 print_debug_deviceinfo (2): 0x5001 +0.382424 print_debug_deviceinfo (2): 0xd002 +0.382457 print_debug_deviceinfo (2): 0xd003 +0.382486 print_debug_deviceinfo (2): 0xd034 +0.382516 print_debug_deviceinfo (2): 0xd047 +0.382545 print_debug_deviceinfo (2): 0xd046 +0.382579 print_debug_deviceinfo (2): 0xd030 +0.382608 print_debug_deviceinfo (2): 0xd049 +0.382638 print_debug_deviceinfo (2): 0xd032 +0.382672 print_debug_deviceinfo (2): 0xd033 +0.382701 print_debug_deviceinfo (2): 0xd031 +0.382731 print_debug_deviceinfo (2): 0xd050 +0.382764 print_debug_deviceinfo (2): 0xd051 +0.382794 print_debug_deviceinfo (2): 0xd052 +0.382823 print_debug_deviceinfo (2): 0xd053 +0.382853 print_debug_deviceinfo (2): 0xd054 +0.382887 print_debug_deviceinfo (2): 0xd057 +0.382916 print_debug_deviceinfo (2): 0xd402 +0.382945 print_debug_deviceinfo (2): 0xd406 +0.382979 print_debug_deviceinfo (2): 0xd407 +0.383008 print_debug_deviceinfo (2): 0xd303 + +0000 a7 04 00 00 02 00 16 91-09 00 00 00 15 00 00 00 ................ +0010 a5 c1 00 00 0d 00 00 00-04 00 00 00 00 01 00 00 ................ +0020 15 16 00 00 00 a5 c1 00-00 0e 00 00 00 02 00 00 ................ +0030 00 00 01 00 00 00 90 14-00 00 00 a5 c1 00 00 0c ................ +0040 00 00 00 08 00 00 00 00-01 00 00 10 00 00 00 89 ................ +0050 c1 00 00 16 d1 00 00 00-00 95 03 10 00 00 00 89 ................ +0060 c1 00 00 11 d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0070 c1 00 00 12 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0080 c1 00 00 b1 d1 00 00 01-00 00 00 10 00 00 00 89 ................ +0090 c1 00 00 b0 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +00a0 c1 00 00 08 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +00b0 c1 00 00 09 d1 00 00 01-00 00 00 10 00 00 00 89 ................ +00c0 c1 00 00 07 d1 00 00 01-00 00 00 10 00 00 00 89 ................ +00d0 c1 00 00 06 d1 00 00 00-00 00 00 20 00 00 00 89 ........... .... +00e0 c1 00 00 20 d1 00 00 01-00 00 00 10 00 00 00 01 ... ............ +00f0 00 00 00 00 00 00 00 05-00 00 00 10 00 00 00 89 ................ +0100 c1 00 00 ba d1 00 00 01-00 00 00 10 00 00 00 89 ................ +0110 c1 00 00 01 d1 00 00 15-00 00 00 10 00 00 00 89 ................ +0120 c1 00 00 02 d1 00 00 90-00 00 00 10 00 00 00 89 ................ +0130 c1 00 00 03 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0140 c1 00 00 04 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0150 c1 00 00 94 d1 00 00 07-00 00 00 10 00 00 00 89 ................ +0160 c1 00 00 c9 d1 00 00 01-00 00 00 10 00 00 00 89 ................ +0170 c1 00 00 b2 d1 00 00 00-00 00 00 18 00 00 00 89 ................ +0180 c1 00 00 59 d0 00 00 0c-00 00 00 00 00 00 00 00 ...Y............ +0190 00 00 00 1c 00 00 00 8a-c1 00 00 b0 d1 00 00 03 ................ +01a0 00 00 00 02 00 00 00 00-00 00 00 08 00 00 00 14 ................ +01b0 00 00 00 8a c1 00 00 08-d1 00 00 00 00 00 00 00 ................ +01c0 00 00 00 14 00 00 00 8a-c1 00 00 05 d1 00 00 00 ................ +01d0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 07 ................ +01e0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +01f0 c1 00 00 11 d1 00 00 00-00 00 00 00 00 00 00 14 ................ +0200 00 00 00 8a c1 00 00 12-d1 00 00 00 00 00 00 00 ................ +0210 00 00 00 14 00 00 00 8a-c1 00 00 16 d1 00 00 00 ................ +0220 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 1b ................ +0230 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0240 c1 00 00 20 d1 00 00 00-00 00 00 00 00 00 00 14 ... ............ +0250 00 00 00 8a c1 00 00 38-d1 00 00 00 00 00 00 00 .......8........ +0260 00 00 00 14 00 00 00 8a-c1 00 00 94 d1 00 00 00 ................ +0270 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 b1 ................ +0280 d1 00 00 00 00 00 00 00-00 00 00 58 00 00 00 8a ...........X.... +0290 c1 00 00 01 d1 00 00 03-00 00 00 11 00 00 00 15 ................ +02a0 00 00 00 18 00 00 00 1b-00 00 00 1d 00 00 00 20 ............... +02b0 00 00 00 23 00 00 00 25-00 00 00 28 00 00 00 2b ...#...%...(...+ +02c0 00 00 00 2d 00 00 00 30-00 00 00 33 00 00 00 35 ...-...0...3...5 +02d0 00 00 00 38 00 00 00 3b-00 00 00 3d 00 00 00 40 ...8...;...=...@ +02e0 00 00 00 dc 00 00 00 8a-c1 00 00 02 d1 00 00 03 ................ +02f0 00 00 00 32 00 00 00 0c-00 00 00 10 00 00 00 13 ...2............ +0300 00 00 00 15 00 00 00 18-00 00 00 1b 00 00 00 1d ................ +0310 00 00 00 20 00 00 00 23-00 00 00 25 00 00 00 28 ... ...#...%...( +0320 00 00 00 2b 00 00 00 2d-00 00 00 30 00 00 00 33 ...+...-...0...3 +0330 00 00 00 35 00 00 00 38-00 00 00 3b 00 00 00 3d ...5...8...;...= +0340 00 00 00 40 00 00 00 43-00 00 00 45 00 00 00 48 ...@...C...E...H +0350 00 00 00 4b 00 00 00 4d-00 00 00 50 00 00 00 53 ...K...M...P...S +0360 00 00 00 55 00 00 00 58-00 00 00 5b 00 00 00 5d ...U...X...[...] +0370 00 00 00 60 00 00 00 63-00 00 00 65 00 00 00 68 ...`...c...e...h +0380 00 00 00 6b 00 00 00 6d-00 00 00 70 00 00 00 73 ...k...m...p...s +0390 00 00 00 75 00 00 00 78-00 00 00 7b 00 00 00 7d ...u...x...{...} +03a0 00 00 00 80 00 00 00 83-00 00 00 85 00 00 00 88 ................ +03b0 00 00 00 8b 00 00 00 8d-00 00 00 90 00 00 00 6c ...............l +03c0 00 00 00 8a c1 00 00 03-d1 00 00 03 00 00 00 16 ................ +03d0 00 00 00 00 00 00 00 4b-00 00 00 4d 00 00 00 50 .......K...M...P +03e0 00 00 00 53 00 00 00 55-00 00 00 58 00 00 00 5b ...S...U...X...[ +03f0 00 00 00 5d 00 00 00 60-00 00 00 63 00 00 00 65 ...]...`...c...e + +0000 00 00 00 68 00 00 00 6b-00 00 00 6d 00 00 00 70 ...h...k...m...p +0010 00 00 00 73 00 00 00 75-00 00 00 78 00 00 00 7b ...s...u...x...{ +0020 00 00 00 7d 00 00 00 80-00 00 00 60 00 00 00 8a ...}.......`.... +0030 c1 00 00 04 d1 00 00 03-00 00 00 13 00 00 00 e8 ................ +0040 00 00 00 eb 00 00 00 ed-00 00 00 f0 00 00 00 f3 ................ +0050 00 00 00 f5 00 00 00 f8-00 00 00 fb 00 00 00 fd ................ +0060 00 00 00 00 00 00 00 03-00 00 00 05 00 00 00 08 ................ +0070 00 00 00 0b 00 00 00 0d-00 00 00 10 00 00 00 13 ................ +0080 00 00 00 15 00 00 00 18-00 00 00 14 00 00 00 8a ................ +0090 c1 00 00 c9 d1 00 00 00-00 00 00 00 00 00 00 08 ................ +00a0 00 00 00 00 00 00 00 - ....... + +0.416065 ptp (2): event 0: EOS event OLCInfoChanged (size 21) +0.416104 ptp (2): 0: 0d +0.416135 ptp (2): 1: 00 +0.416165 ptp (2): 2: 00 +0.416200 ptp (2): 3: 00 +0.416230 ptp (2): 4: 04 +0.416264 ptp (2): 5: 00 +0.416294 ptp (2): 6: 00 +0.416324 ptp (2): 7: 00 +0.416357 ptp (2): 8: 00 +0.416388 ptp (2): 9: 01 +0.416418 ptp (2): 10: 00 +0.416452 ptp (2): 11: 00 +0.416482 ptp (2): 12: 15 +0.416519 ptp (2): event 2: EOS event OLCInfoChanged (size 22) +0.416551 ptp (2): 0: 0e +0.416585 ptp (2): 1: 00 +0.416615 ptp (2): 2: 00 +0.416645 ptp (2): 3: 00 +0.416680 ptp (2): 4: 02 +0.416709 ptp (2): 5: 00 +0.416740 ptp (2): 6: 00 +0.416774 ptp (2): 7: 00 +0.416804 ptp (2): 8: 00 +0.416834 ptp (2): 9: 01 +0.416869 ptp (2): 10: 00 +0.416899 ptp (2): 11: 00 +0.416929 ptp (2): 12: 00 +0.416962 ptp (2): 13: 90 +0.417001 ptp (2): event 4: EOS event OLCInfoChanged (size 20) +0.417032 ptp (2): 0: 0c +0.417062 ptp (2): 1: 00 +0.417096 ptp (2): 2: 00 +0.417127 ptp (2): 3: 00 +0.417157 ptp (2): 4: 08 +0.417191 ptp (2): 5: 00 +0.417220 ptp (2): 6: 00 +0.417251 ptp (2): 7: 00 +0.417284 ptp (2): 8: 00 +0.417314 ptp (2): 9: 01 +0.417344 ptp (2): 10: 00 +0.417379 ptp (2): 11: 00 +0.417448 ptp (2): event 6: EOS prop d116 info record, datasize is 4 +0.417488 ptp (2): event 6: currentvalue of d116 is 3950000 +0.417524 ptp (2): event 7: EOS prop d111 info record, datasize is 4 +0.417565 ptp (2): event 7: currentvalue of d111 is 2 +0.417598 ptp (2): event 8: EOS prop d112 info record, datasize is 4 +0.417636 ptp (2): event 8: currentvalue of d112 is 0 +0.417672 ptp (2): event 9: EOS prop d1b1 info record, datasize is 4 +0.417706 ptp (2): event 9: currentvalue of d1b1 is 1 +0.417742 ptp (2): event 10: EOS prop d1b0 info record, datasize is 4 +0.417780 ptp (2): event 10: currentvalue of d1b0 is 0 +0.417813 ptp (2): event 11: EOS prop d108 info record, datasize is 4 +0.417850 ptp (2): event 11: currentvalue of d108 is 0 +0.417887 ptp (2): event 12: EOS prop d109 info record, datasize is 4 +0.417920 ptp (2): event 12: currentvalue of d109 is 1 +0.417956 ptp (2): event 13: EOS prop d107 info record, datasize is 4 +0.417994 ptp (2): event 13: currentvalue of d107 is 1 +0.418027 ptp (2): event 14: EOS prop d106 info record, datasize is 4 +0.418065 ptp (2): event 14: currentvalue of d106 is 0 +0.418101 ptp (2): event 15: EOS prop d120 info record, datasize is 20 +0.418134 ptp (2): event 15: decoded imageformat, currentvalue of d120 is 500 +0.418171 ptp (2): event 16: EOS prop d1ba info record, datasize is 4 +0.418208 ptp (2): event 16: Unknown EOS property d1ba, datasize is 4, using uint32 +0.418241 ptp (2): 0: 0x 1 +0.418276 ptp (2): event 16: currentvalue of d1ba is 1 +0.418308 ptp (2): event 17: EOS prop d101 info record, datasize is 4 +0.418345 ptp (2): event 17: currentvalue of d101 is 15 +0.418381 ptp (2): event 18: EOS prop d102 info record, datasize is 4 +0.418414 ptp (2): event 18: currentvalue of d102 is 90 +0.418451 ptp (2): event 19: EOS prop d103 info record, datasize is 4 +0.418488 ptp (2): event 19: currentvalue of d103 is 0 +0.418520 ptp (2): event 20: EOS prop d104 info record, datasize is 4 +0.418560 ptp (2): event 20: currentvalue of d104 is 0 +0.418597 ptp (2): event 21: EOS prop d194 info record, datasize is 4 +0.418635 ptp (2): event 21: currentvalue of d194 is 7 +0.418668 ptp (2): event 22: EOS prop d1c9 info record, datasize is 4 +0.418707 ptp (2): event 22: currentvalue of d1c9 is 1 +0.418744 ptp (2): event 23: EOS prop d1b2 info record, datasize is 4 +0.418782 ptp (2): event 23: Unknown EOS property d1b2, datasize is 4, using uint32 +0.418816 ptp (2): 0: 0x 0 +0.418852 ptp (2): event 23: currentvalue of d1b2 is 0 +0.418888 ptp (2): event 24: EOS prop d059 info record, datasize is 12 +0.418921 ptp (2): event 24: Unknown EOS property d059, datasize is 12 +0.418958 ptp (2): 0: 0c +0.418989 ptp (2): 1: 00 +0.419022 ptp (2): 2: 00 +0.419052 ptp (2): 3: 00 +0.419082 ptp (2): 4: 00 +0.419117 ptp (2): 5: 00 +0.419147 ptp (2): 6: 00 +0.419177 ptp (2): 7: 00 +0.419211 ptp (2): 8: 00 +0.419264 ptp (2): 9: 00 +0.419296 ptp (2): 10: 00 +0.419330 ptp (2): 11: 00 +0.419363 ptp (2): event 25: EOS prop d1b0 desc record, datasize 8, propxtype 3 +0.419401 ptp (2): event 25: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +0.419438 ptp (2): event 25: suppval[0] of d1b0 is 0x0. +0.419471 ptp (2): event 25: suppval[1] of d1b0 is 0x8. +0.419507 ptp (2): event 26: EOS prop d108 desc record, datasize 0, propxtype 0 +0.419544 ptp (2): event 26: propxtype is 0 for d108, unhandled, size 20 +0.419576 ptp (2): event 27: EOS prop d105 desc record, datasize 0, propxtype 0 +0.419611 ptp (2): event 27: propdesc d105, default value not found. +0.419644 ptp (2): event 28: EOS prop d107 desc record, datasize 0, propxtype 0 +0.419680 ptp (2): event 28: propxtype is 0 for d107, unhandled, size 20 +0.419783 ptp (2): event 29: EOS prop d111 desc record, datasize 0, propxtype 0 +0.419826 ptp (2): event 29: propxtype is 0 for d111, unhandled, size 20 +0.419863 ptp (2): event 30: EOS prop d112 desc record, datasize 0, propxtype 0 +0.419895 ptp (2): event 30: propxtype is 0 for d112, unhandled, size 20 +0.419931 ptp (2): event 31: EOS prop d116 desc record, datasize 0, propxtype 0 +0.419964 ptp (2): event 31: propxtype is 0 for d116, unhandled, size 20 +0.420001 ptp (2): event 32: EOS prop d11b desc record, datasize 0, propxtype 0 +0.420032 ptp (2): event 32: propdesc d11b, default value not found. +0.420069 ptp (2): event 33: EOS prop d120 desc record, datasize 0, propxtype 0 +0.420105 ptp (2): event 33: propxtype is 0 for d120, unhandled, size 20 +0.420138 ptp (2): event 34: EOS prop d138 desc record, datasize 0, propxtype 0 +0.420172 ptp (2): event 34: propdesc d138, default value not found. +0.420205 ptp (2): event 35: EOS prop d194 desc record, datasize 0, propxtype 0 +0.420241 ptp (2): event 35: propxtype is 0 for d194, unhandled, size 20 +0.420278 ptp (2): event 36: EOS prop d1b1 desc record, datasize 0, propxtype 0 +0.420311 ptp (2): event 36: propxtype is 0 for d1b1, unhandled, size 20 +0.420347 ptp (2): event 37: EOS prop d101 desc record, datasize 68, propxtype 3 +0.420385 ptp (2): event 37: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 17. +0.420418 ptp (2): event 37: suppval[0] of d101 is 0x15. +0.420455 ptp (2): event 37: suppval[1] of d101 is 0x18. +0.420487 ptp (2): event 37: suppval[2] of d101 is 0x1b. +0.420522 ptp (2): event 37: suppval[3] of d101 is 0x1d. +0.420554 ptp (2): event 37: suppval[4] of d101 is 0x20. +0.420590 ptp (2): event 37: suppval[5] of d101 is 0x23. +0.420626 ptp (2): event 37: suppval[6] of d101 is 0x25. +0.420658 ptp (2): event 37: suppval[7] of d101 is 0x28. +0.420693 ptp (2): event 37: suppval[8] of d101 is 0x2b. +0.420725 ptp (2): event 37: suppval[9] of d101 is 0x2d. +0.420787 ptp (2): event 37: suppval[10] of d101 is 0x30. +0.420820 ptp (2): event 37: suppval[11] of d101 is 0x33. +0.420856 ptp (2): event 37: suppval[12] of d101 is 0x35. +0.420889 ptp (2): event 37: suppval[13] of d101 is 0x38. +0.421204 ptp (2): event 37: suppval[14] of d101 is 0x3b. +0.421244 ptp (2): event 37: suppval[15] of d101 is 0x3d. +0.421274 ptp (2): event 37: suppval[16] of d101 is 0x40. +0.421315 ptp (2): event 38: EOS prop d102 desc record, datasize 200, propxtype 3 +0.421353 ptp (2): event 38: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 50. +0.421387 ptp (2): event 38: suppval[0] of d102 is 0xc. +0.421423 ptp (2): event 38: suppval[1] of d102 is 0x10. +0.421459 ptp (2): event 38: suppval[2] of d102 is 0x13. +0.421490 ptp (2): event 38: suppval[3] of d102 is 0x15. +0.421526 ptp (2): event 38: suppval[4] of d102 is 0x18. +0.421558 ptp (2): event 38: suppval[5] of d102 is 0x1b. +0.421594 ptp (2): event 38: suppval[6] of d102 is 0x1d. +0.421626 ptp (2): event 38: suppval[7] of d102 is 0x20. +0.421661 ptp (2): event 38: suppval[8] of d102 is 0x23. +0.421693 ptp (2): event 38: suppval[9] of d102 is 0x25. +0.421729 ptp (2): event 38: suppval[10] of d102 is 0x28. +0.421761 ptp (2): event 38: suppval[11] of d102 is 0x2b. +0.421797 ptp (2): event 38: suppval[12] of d102 is 0x2d. +0.421829 ptp (2): event 38: suppval[13] of d102 is 0x30. +0.421865 ptp (2): event 38: suppval[14] of d102 is 0x33. +0.421896 ptp (2): event 38: suppval[15] of d102 is 0x35. +0.421932 ptp (2): event 38: suppval[16] of d102 is 0x38. +0.421963 ptp (2): event 38: suppval[17] of d102 is 0x3b. +0.421999 ptp (2): event 38: suppval[18] of d102 is 0x3d. +0.422031 ptp (2): event 38: suppval[19] of d102 is 0x40. +0.422066 ptp (2): event 38: suppval[20] of d102 is 0x43. +0.422098 ptp (2): event 38: suppval[21] of d102 is 0x45. +0.422134 ptp (2): event 38: suppval[22] of d102 is 0x48. +0.422165 ptp (2): event 38: suppval[23] of d102 is 0x4b. +0.422201 ptp (2): event 38: suppval[24] of d102 is 0x4d. +0.422232 ptp (2): event 38: suppval[25] of d102 is 0x50. +0.422268 ptp (2): event 38: suppval[26] of d102 is 0x53. +0.422299 ptp (2): event 38: suppval[27] of d102 is 0x55. +0.422335 ptp (2): event 38: suppval[28] of d102 is 0x58. +0.422366 ptp (2): event 38: suppval[29] of d102 is 0x5b. +0.422402 ptp (2): event 38: suppval[30] of d102 is 0x5d. +0.422433 ptp (2): event 38: suppval[31] of d102 is 0x60. +0.422469 ptp (2): event 38: suppval[32] of d102 is 0x63. +0.422500 ptp (2): event 38: suppval[33] of d102 is 0x65. +0.422535 ptp (2): event 38: suppval[34] of d102 is 0x68. +0.422567 ptp (2): event 38: suppval[35] of d102 is 0x6b. +0.422603 ptp (2): event 38: suppval[36] of d102 is 0x6d. +0.422635 ptp (2): event 38: suppval[37] of d102 is 0x70. +0.422670 ptp (2): event 38: suppval[38] of d102 is 0x73. +0.422701 ptp (2): event 38: suppval[39] of d102 is 0x75. +0.422736 ptp (2): event 38: suppval[40] of d102 is 0x78. +0.422768 ptp (2): event 38: suppval[41] of d102 is 0x7b. +0.422803 ptp (2): event 38: suppval[42] of d102 is 0x7d. +0.422835 ptp (2): event 38: suppval[43] of d102 is 0x80. +0.422870 ptp (2): event 38: suppval[44] of d102 is 0x83. +0.422924 ptp (2): event 38: suppval[45] of d102 is 0x85. +0.422961 ptp (2): event 38: suppval[46] of d102 is 0x88. +0.422992 ptp (2): event 38: suppval[47] of d102 is 0x8b. +0.423027 ptp (2): event 38: suppval[48] of d102 is 0x8d. +0.423059 ptp (2): event 38: suppval[49] of d102 is 0x90. +0.423095 ptp (2): event 39: EOS prop d103 desc record, datasize 88, propxtype 3 +0.423129 ptp (2): event 39: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 22. +0.423166 ptp (2): event 39: suppval[0] of d103 is 0x0. +0.423202 ptp (2): event 39: suppval[1] of d103 is 0x4b. +0.423233 ptp (2): event 39: suppval[2] of d103 is 0x4d. +0.423269 ptp (2): event 39: suppval[3] of d103 is 0x50. +0.423300 ptp (2): event 39: suppval[4] of d103 is 0x53. +0.423336 ptp (2): event 39: suppval[5] of d103 is 0x55. +0.423368 ptp (2): event 39: suppval[6] of d103 is 0x58. +0.423403 ptp (2): event 39: suppval[7] of d103 is 0x5b. +0.423435 ptp (2): event 39: suppval[8] of d103 is 0x5d. +0.423470 ptp (2): event 39: suppval[9] of d103 is 0x60. +0.423502 ptp (2): event 39: suppval[10] of d103 is 0x63. +0.423538 ptp (2): event 39: suppval[11] of d103 is 0x65. +0.423569 ptp (2): event 39: suppval[12] of d103 is 0x68. +0.423605 ptp (2): event 39: suppval[13] of d103 is 0x6b. +0.423637 ptp (2): event 39: suppval[14] of d103 is 0x6d. +0.423672 ptp (2): event 39: suppval[15] of d103 is 0x70. +0.423739 ptp (2): event 39: suppval[16] of d103 is 0x73. +0.423782 ptp (2): event 39: suppval[17] of d103 is 0x75. +0.423819 ptp (2): event 39: suppval[18] of d103 is 0x78. +0.423851 ptp (2): event 39: suppval[19] of d103 is 0x7b. +0.423888 ptp (2): event 39: suppval[20] of d103 is 0x7d. +0.423924 ptp (2): event 39: suppval[21] of d103 is 0x80. +0.423957 ptp (2): event 40: EOS prop d104 desc record, datasize 76, propxtype 3 +0.423995 ptp (2): event 40: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +0.424032 ptp (2): event 40: suppval[0] of d104 is 0xe8. +0.424064 ptp (2): event 40: suppval[1] of d104 is 0xeb. +0.424100 ptp (2): event 40: suppval[2] of d104 is 0xed. +0.424131 ptp (2): event 40: suppval[3] of d104 is 0xf0. +0.424167 ptp (2): event 40: suppval[4] of d104 is 0xf3. +0.424198 ptp (2): event 40: suppval[5] of d104 is 0xf5. +0.424234 ptp (2): event 40: suppval[6] of d104 is 0xf8. +0.424265 ptp (2): event 40: suppval[7] of d104 is 0xfb. +0.424300 ptp (2): event 40: suppval[8] of d104 is 0xfd. +0.424332 ptp (2): event 40: suppval[9] of d104 is 0x0. +0.424368 ptp (2): event 40: suppval[10] of d104 is 0x3. +0.424400 ptp (2): event 40: suppval[11] of d104 is 0x5. +0.424435 ptp (2): event 40: suppval[12] of d104 is 0x8. +0.424467 ptp (2): event 40: suppval[13] of d104 is 0xb. +0.424503 ptp (2): event 40: suppval[14] of d104 is 0xd. +0.424534 ptp (2): event 40: suppval[15] of d104 is 0x10. +0.424569 ptp (2): event 40: suppval[16] of d104 is 0x13. +0.424601 ptp (2): event 40: suppval[17] of d104 is 0x15. +0.424636 ptp (2): event 40: suppval[18] of d104 is 0x18. +0.424691 ptp (2): event 41: EOS prop d1c9 desc record, datasize 0, propxtype 0 +0.424729 ptp (2): event 41: propxtype is 0 for d1c9, unhandled, size 20 + + +0.427670 ptp_usb_getdata (2): Reading PTP_OC 0x1001 (Get device info) data... +0000 bf 01 00 00 02 00 01 10-0c 00 00 00 64 00 06 00 ............d... +0010 00 00 64 00 00 00 00 47-00 00 00 14 10 15 10 16 ..d....G........ +0020 10 17 10 01 10 02 10 03-10 13 90 1f 90 04 10 05 ................ +0030 10 06 10 07 10 08 10 09-10 0a 10 1b 10 0c 10 0d ................ +0040 10 0b 10 0f 10 12 10 01-90 21 90 1b 90 1e 90 19 .........!...... +0050 90 06 90 1c 90 02 90 4c-90 24 90 25 90 38 90 39 .......L.$.%.8.9 +0060 90 3a 90 3b 90 4b 90 60-90 62 90 01 98 02 98 03 .:.;.K.`.b...... +0070 98 04 98 05 98 16 91 01-91 02 91 03 91 07 91 09 ................ +0080 91 0a 91 17 91 18 91 2c-91 32 91 41 91 43 91 15 .......,.2.A.C.. +0090 91 14 91 53 91 28 91 29-91 54 91 60 91 5b 91 10 ...S.(.).T.`.[.. +00a0 91 50 90 51 90 5c 90 5d-90 11 00 00 00 01 40 02 .P.Q.\.]......@. +00b0 40 03 40 04 40 05 40 06-40 07 40 08 40 09 40 0a @.@.@.@.@.@.@.@. +00c0 40 0b 40 0c 40 0e 40 01-c0 05 c0 0a c0 01 c1 19 @.@.@.@......... +00d0 00 00 00 45 d0 4a d0 2e-d0 2f d0 01 50 02 d0 03 ...E.J.../..P... +00e0 d0 34 d0 47 d0 46 d0 30-d0 49 d0 32 d0 33 d0 31 .4.G.F.0.I.2.3.1 +00f0 d0 50 d0 51 d0 52 d0 53-d0 54 d0 57 d0 02 d4 06 .P.Q.R.S.T.W.... +0100 d4 07 d4 03 d3 01 00 00-00 01 38 0a 00 00 00 01 ..........8..... +0110 30 02 30 06 30 08 30 01-38 00 38 03 b1 82 b9 05 0.0.0.0.8.8..... +0120 b1 01 bf 0b 43 00 61 00-6e 00 6f 00 6e 00 20 00 ....C.a.n.o.n. . +0130 49 00 6e 00 63 00 2e 00-00 00 15 43 00 61 00 6e I.n.c......C.a.n +0140 00 6f 00 6e 00 20 00 50-00 6f 00 77 00 65 00 72 .o.n. .P.o.w.e.r +0150 00 53 00 68 00 6f 00 74-00 20 00 47 00 35 00 20 .S.h.o.t. .G.5. +0160 00 58 00 00 00 0b 31 00-2d 00 31 00 34 00 2e 00 .X....1.-.1.4... +0170 30 00 2e 00 31 00 2e 00-30 00 00 00 21 39 00 42 0...1...0...!9.B +0180 00 42 00 33 00 46 00 33-00 43 00 41 00 42 00 31 .B.3.F.3.C.A.B.1 +0190 00 34 00 44 00 39 00 39-00 38 00 34 00 31 00 46 .4.D.9.9.8.4.1.F +01a0 00 39 00 43 00 39 00 45-00 42 00 36 00 46 00 38 .9.C.9.E.B.6.F.8 +01b0 00 32 00 30 00 39 00 44-00 38 00 37 00 00 00 .2.0.9.D.8.7... + +gphoto2 --list-all-config +/main/actions/autofocusdrive +Label: Fahre Canon DSLR Autofokus +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/actions/cancelautofocus +Label: Breche Canon DSLR Autofokus ab +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/eosremoterelease +Label: Canon EOS Auslöser +Readonly: 0 +Type: RADIO +Current: Keine +Choice: 0 Keine +Choice: 1 Halb durchdrücken +Choice: 2 Voll durchdrücken +Choice: 3 Halb durchdrücken +Choice: 4 Voll auslösen +Choice: 5 Sofort +Choice: 6 Drücke 1 +Choice: 7 Drücke 2 +Choice: 8 Drücke 3 +Choice: 9 Loslassen 1 +Choice: 10 Loslassen 2 +Choice: 11 Loslassen 3 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/settings/datetime +Label: Kamera Datum und Zeit +Readonly: 0 +Type: DATE +Current: 1546701427 +Printable: Sa 05 Jan 2019 16:17:07 CET +Help: Use 'now' as the current time when setting. + +END +/main/settings/output +Label: Kamera Output +Readonly: 0 +Type: RADIO +Current: Unbekannter Wert 0008 +Choice: 0 Aus +Choice: 1 Unbekannter Wert 0008 +END +/main/settings/evfmode +Label: EVF Modus +Readonly: 0 +Type: RADIO +Current: 1 +Choice: 0 1 +END +/main/settings/depthoffield +Label: Depth of Field +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/settings/capturetarget +Label: Aufnahmeziel +Readonly: 0 +Type: RADIO +Current: interner Speicher +Choice: 0 interner Speicher +Choice: 1 Speicherkarte +END +/main/settings/capture +Label: Aufnahme +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/status/serialnumber +Label: Seriennummer +Readonly: 0 +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +END +/main/status/manufacturer +Label: Kamera Hersteller +Readonly: 0 +Type: TEXT +Current: Canon Inc. +END +/main/status/cameramodel +Label: Kameramodell +Readonly: 0 +Type: TEXT +Current: Canon PowerShot G5 X +END +/main/status/deviceversion +Label: Version des Gerätes +Readonly: 0 +Type: TEXT +Current: 1-14.0.1.0 +END +/main/status/vendorextension +Label: Hersteller Erweiterung +Readonly: 0 +Type: TEXT +Current: Keine +END +/main/status/model +Label: Kameramodell +Readonly: 1 +Type: TEXT +Current: Canon PowerShot G5 X +END +/main/status/model +Label: Kameramodell +Readonly: 0 +Type: TEXT +Current: 60096512 +END +/main/status/firmwareversion +Label: Firmware-Version +Readonly: 1 +Type: TEXT +Current: 1.0.1.0 +END +/main/status/Batterie Ladezustand +Label: Batterie Ladezustand +Readonly: 1 +Type: TEXT +Current: 3% +END +/main/status/batterylevel +Label: Batterie Ladezustand +Readonly: 0 +Type: TEXT +Current: 100% +END +/main/imgsettings/imageformat +Label: Bild Format +Readonly: 0 +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +END +/main/imgsettings/iso +Label: ISO-Empfindlichkeit +Readonly: 0 +Type: RADIO +Current: Auto +Choice: 0 Auto +END +/main/capturesettings/focusmode +Label: Fokusmodus +Readonly: 0 +Type: RADIO +Current: Unbekannter Wert 01ce +Choice: 0 Unbekannter Wert 01ce +END +/main/capturesettings/continuousaf +Label: Kontinuierlicher Autofokus +Readonly: 0 +Type: RADIO +Current: An +Choice: 0 Aus +Choice: 1 An +END +/main/capturesettings/aspectratio +Label: Seitenverhältnis +Readonly: 0 +Type: RADIO +Current: 16:9 +Choice: 0 16:9 +END +/main/capturesettings/drivemode +Label: Auslöse Modus +Readonly: 0 +Type: RADIO +Current: Einzelbild +Choice: 0 Einzelbild +END +/main/capturesettings/aperture +Label: Blende +Readonly: 0 +Type: RADIO +Current: 2 +Choice: 0 2 +END +/main/capturesettings/shutterspeed +Label: Belichtungszeit +Readonly: 0 +Type: RADIO +Current: 1/40 +Choice: 0 1/40 +END +/main/other/d045 +Label: Event Emulations Modus +Readonly: 0 +Type: MENU +Current: 9 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +END +/main/other/d04a +Label: PTP Property 0xd04a +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d02e +Label: Datengröße beim Transfer von der Kamera +Readonly: 1 +Type: TEXT +Current: 524288 +END +/main/other/d02f +Label: Datengröße beim Transfer zur Kamera +Readonly: 1 +Type: TEXT +Current: 524288 +END +/main/other/5001 +Label: Batterie Ladezustand +Readonly: 1 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d002 +Label: Batterietyp +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d003 +Label: Batteriemodus +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d034 +Label: UNIX Zeit +Readonly: 0 +Type: TEXT +Current: 1546705027 +END +/main/other/d047 +Label: Art der Slideshow +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d046 +Label: DPOF Version +Readonly: 1 +Type: TEXT +Current: 257 +END +/main/other/d030 +Label: Kamera API Version +Readonly: 1 +Type: TEXT +Current: 256 +END +/main/other/d049 +Label: Modell ID +Readonly: 1 +Type: TEXT +Current: 60096512 +END +/main/other/d032 +Label: Kameramodell +Readonly: 1 +Type: TEXT +Current: Canon PowerShot G5 X +END +/main/other/d033 +Label: Kamerabesitzer +Readonly: 0 +Type: TEXT +Current: (null) +END +/main/other/d031 +Label: Firmware-Version +Readonly: 1 +Type: TEXT +Current: 16777472 +END +/main/other/d050 +Label: PTP Property 0xd050 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d051 +Label: PTP Property 0xd051 +Readonly: 1 +Type: TEXT +Current: (null) +END +/main/other/d052 +Label: PTP Property 0xd052 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d053 +Label: PTP Property 0xd053 +Readonly: 0 +Type: TEXT +Current: (null) +END +/main/other/d054 +Label: PTP Property 0xd054 +Readonly: 0 +Type: TEXT +Current: (null) +END +/main/other/d057 +Label: PTP Property 0xd057 +Readonly: 1 +Type: TEXT +Current: 123051000177 +END +/main/other/d402 +Label: PTP Property 0xd402 +Readonly: 1 +Type: TEXT +Current: Canon PowerShot G5 X +END +/main/other/d406 +Label: PTP Property 0xd406 +Readonly: 0 +Type: TEXT +Current: Windows +END +/main/other/d407 +Label: PTP Property 0xd407 +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d303 +Label: PTP Property 0xd303 +Readonly: 1 +Type: TEXT +Current: 1 +END + +matthias@butler:~$ gphoto2 --capture-image + +*** Fehler *** +Canon EOS M Full-Press failed (0x2019: PTP-Device belegt) +FEHLER: Konnte Bild nicht aufnehmen. +FEHLER: Konnte nicht aufnehmen. +*** Fehler (-110: »I/O Operation in Arbeit«) *** + +Für Debug-Meldungen verwenden Sie bitte die Option »--debug«. +Diese Meldungen können Ihnen helfen, eine Lösung für Ihr Problem zu +finden. Wenn Sie jedoch Fehler- oder Debug-Meldungen an die +Mailingliste <gphoto-devel@lists.sourceforge.net> schicken wollen, +so starten sie gphoto2 bitte wie folgt: + + env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image + +Bitte stellen Sie sicher das die uebergebenen Argument ausreichend gequoted sind. + +0.082622 print_debug_deviceinfo (2): Device info: +0.082630 print_debug_deviceinfo (2): Manufacturer: Canon Inc. +0.082636 print_debug_deviceinfo (2): Model: Canon PowerShot G5 X +0.082642 print_debug_deviceinfo (2): device version: 1-14.0.1.0 +0.082648 print_debug_deviceinfo (2): serial number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +0.082654 print_debug_deviceinfo (2): Vendor extension ID: 0x0000000b +0.082660 print_debug_deviceinfo (2): Vendor extension version: 100 +0.082665 print_debug_deviceinfo (2): Vendor extension description: (null) +0.082671 print_debug_deviceinfo (2): Functional Mode: 0x0000 +0.082677 print_debug_deviceinfo (2): PTP Standard Version: 100 +0.082682 print_debug_deviceinfo (2): Supported operations: +0.082692 print_debug_deviceinfo (2): 0x1014 (Get device property description) +0.082701 print_debug_deviceinfo (2): 0x1015 (Get device property value) +0.082709 print_debug_deviceinfo (2): 0x1016 (Set device property value) +0.082717 print_debug_deviceinfo (2): 0x1017 (Reset device property value) +0.082726 print_debug_deviceinfo (2): 0x1001 (Get device info) +0.082734 print_debug_deviceinfo (2): 0x1002 (Open session) +0.082742 print_debug_deviceinfo (2): 0x1003 (Close session) +0.082750 print_debug_deviceinfo (2): 0x9013 (PTP_OC_CANON_CheckEvent) +0.082759 print_debug_deviceinfo (2): 0x901f (PTP_OC_CANON_ChangeUSBProtocol) +0.082767 print_debug_deviceinfo (2): 0x1004 (Get storage IDs) +0.082775 print_debug_deviceinfo (2): 0x1005 (Get storage info) +0.082790 print_debug_deviceinfo (2): 0x1006 (Get number of objects) +0.082799 print_debug_deviceinfo (2): 0x1007 (Get object handles) +0.082807 print_debug_deviceinfo (2): 0x1008 (Get object info) +0.082815 print_debug_deviceinfo (2): 0x1009 (Get object) +0.082823 print_debug_deviceinfo (2): 0x100a (Get thumbnail) +0.082832 print_debug_deviceinfo (2): 0x101b (Get partial object) +0.082841 print_debug_deviceinfo (2): 0x100c (Send object info) +0.082850 print_debug_deviceinfo (2): 0x100d (Send object) +0.082857 print_debug_deviceinfo (2): 0x100b (Delete object) +0.082866 print_debug_deviceinfo (2): 0x100f (Format storage) +0.082874 print_debug_deviceinfo (2): 0x1012 (Set object protection) +0.082882 print_debug_deviceinfo (2): 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) +0.082890 print_debug_deviceinfo (2): 0x9021 (PTP_OC_CANON_GetObjectInfoEx) +0.082898 print_debug_deviceinfo (2): 0x901b (PTP_OC_CANON_GetPartialObjectEx) +0.082907 print_debug_deviceinfo (2): 0x901e (PTP_OC_CANON_GetObjectAttributes) +0.082915 print_debug_deviceinfo (2): 0x9019 (PTP_OC_CANON_SendPartialObject) +0.082924 print_debug_deviceinfo (2): 0x9006 (PTP_OC_CANON_GetObjectHandleByName) +0.082933 print_debug_deviceinfo (2): 0x901c (PTP_OC_CANON_SetObjectTime) +0.082941 print_debug_deviceinfo (2): 0x9002 (PTP_OC_CANON_SetObjectArchive) +0.082949 print_debug_deviceinfo (2): 0x904c (Unknown PTP_OC) +0.082958 print_debug_deviceinfo (2): 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) +0.082966 print_debug_deviceinfo (2): 0x9025 (PTP_OC_CANON_SendObjectByPath ) +0.082975 print_debug_deviceinfo (2): 0x9038 (Unknown PTP_OC) +0.082983 print_debug_deviceinfo (2): 0x9039 (Unknown PTP_OC) +0.082992 print_debug_deviceinfo (2): 0x903a (Unknown PTP_OC) +0.083002 print_debug_deviceinfo (2): 0x903b (Unknown PTP_OC) +0.083013 print_debug_deviceinfo (2): 0x904b (Unknown PTP_OC) +0.083022 print_debug_deviceinfo (2): 0x9060 (Unknown PTP_OC) +0.083032 print_debug_deviceinfo (2): 0x9062 (Unknown PTP_OC) +0.083041 print_debug_deviceinfo (2): 0x9801 (Unknown PTP_OC) +0.083050 print_debug_deviceinfo (2): 0x9802 (Unknown PTP_OC) +0.083058 print_debug_deviceinfo (2): 0x9803 (Unknown PTP_OC) +0.083067 print_debug_deviceinfo (2): 0x9804 (Unknown PTP_OC) +0.083075 print_debug_deviceinfo (2): 0x9805 (Unknown PTP_OC) +0.083084 print_debug_deviceinfo (2): 0x9116 (PTP_OC_CANON_EOS_GetEvent) +0.083093 print_debug_deviceinfo (2): 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) +0.083102 print_debug_deviceinfo (2): 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) +0.083110 print_debug_deviceinfo (2): 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) +0.083118 print_debug_deviceinfo (2): 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) +0.083126 print_debug_deviceinfo (2): 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) +0.083134 print_debug_deviceinfo (2): 0x910a (PTP_OC_CANON_EOS_GetThumbEx) +0.083143 print_debug_deviceinfo (2): 0x9117 (PTP_OC_CANON_EOS_TransferComplete) +0.083151 print_debug_deviceinfo (2): 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) +0.083159 print_debug_deviceinfo (2): 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) +0.083167 print_debug_deviceinfo (2): 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) +0.083175 print_debug_deviceinfo (2): 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) +0.083184 print_debug_deviceinfo (2): 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) +0.083192 print_debug_deviceinfo (2): 0x9115 (PTP_OC_CANON_EOS_SetEventMode) +0.083200 print_debug_deviceinfo (2): 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) +0.083208 print_debug_deviceinfo (2): 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) +0.083216 print_debug_deviceinfo (2): 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) +0.083224 print_debug_deviceinfo (2): 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) +0.083232 print_debug_deviceinfo (2): 0x9154 (PTP_OC_CANON_EOS_DoAf) +0.083240 print_debug_deviceinfo (2): 0x9160 (PTP_OC_CANON_EOS_AfCancel) +0.083248 print_debug_deviceinfo (2): 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) +0.083256 print_debug_deviceinfo (2): 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) +0.083264 print_debug_deviceinfo (2): 0x9050 (Unknown PTP_OC) +0.083272 print_debug_deviceinfo (2): 0x9051 (Unknown PTP_OC) +0.083280 print_debug_deviceinfo (2): 0x905c (Unknown PTP_OC) +0.083289 print_debug_deviceinfo (2): 0x905d (Unknown PTP_OC) +0.083294 print_debug_deviceinfo (2): Events Supported: +0.083302 print_debug_deviceinfo (2): 0x4001 (CancelTransaction) +0.083311 print_debug_deviceinfo (2): 0x4002 (ObjectAdded) +0.083319 print_debug_deviceinfo (2): 0x4003 (ObjectRemoved) +0.083326 print_debug_deviceinfo (2): 0x4004 (StoreAdded) +0.083334 print_debug_deviceinfo (2): 0x4005 (StoreRemoved) +0.083342 print_debug_deviceinfo (2): 0x4006 (DevicePropChanged) +0.083350 print_debug_deviceinfo (2): 0x4007 (ObjectInfoChanged) +0.083358 print_debug_deviceinfo (2): 0x4008 (DeviceInfoChanged) +0.083365 print_debug_deviceinfo (2): 0x4009 (RequestObjectTransfer) +0.083373 print_debug_deviceinfo (2): 0x400a (StoreFull) +0.083381 print_debug_deviceinfo (2): 0x400b (DeviceReset) +0.083388 print_debug_deviceinfo (2): 0x400c (StorageInfoChanged) +0.083396 print_debug_deviceinfo (2): 0x400e (UnreportedStatus) +0.083404 print_debug_deviceinfo (2): 0xc001 (Unknown Event) +0.083411 print_debug_deviceinfo (2): 0xc005 (Unknown Event) +0.083419 print_debug_deviceinfo (2): 0xc00a (Unknown Event) +0.083427 print_debug_deviceinfo (2): 0xc101 (Unknown Event) +0.083432 print_debug_deviceinfo (2): Device Properties Supported: +0.083441 print_debug_deviceinfo (2): 0xd045 (Event Emulate Mode) +0.083449 print_debug_deviceinfo (2): 0xd04a (Unknown DPC code) +0.083458 print_debug_deviceinfo (2): 0xd02e (Size of Output Data from Camera) +0.083465 print_debug_deviceinfo (2): 0xd02f (Size of Input Data to Camera) +0.083472 print_debug_deviceinfo (2): 0x5001 (Battery Level) +0.083480 print_debug_deviceinfo (2): 0xd002 (Battery Type) +0.083487 print_debug_deviceinfo (2): 0xd003 (Battery Mode) +0.083493 print_debug_deviceinfo (2): 0xd034 (UNIX Time) +0.083500 print_debug_deviceinfo (2): 0xd047 (Type of Slideshow) +0.083507 print_debug_deviceinfo (2): 0xd046 (DPOF Version) +0.083514 print_debug_deviceinfo (2): 0xd030 (Remote API Version) +0.083520 print_debug_deviceinfo (2): 0xd049 (Model ID) +0.083527 print_debug_deviceinfo (2): 0xd032 (Camera Model) +0.083535 print_debug_deviceinfo (2): 0xd033 (Camera Owner) +0.083542 print_debug_deviceinfo (2): 0xd031 (Firmware Version) +0.083549 print_debug_deviceinfo (2): 0xd050 (Unknown DPC code) +0.083556 print_debug_deviceinfo (2): 0xd051 (Unknown DPC code) +0.083564 print_debug_deviceinfo (2): 0xd052 (Unknown DPC code) +0.083571 print_debug_deviceinfo (2): 0xd053 (Unknown DPC code) +0.083577 print_debug_deviceinfo (2): 0xd054 (Unknown DPC code) +0.083584 print_debug_deviceinfo (2): 0xd057 (Unknown DPC code) +0.083592 print_debug_deviceinfo (2): 0xd402 (Unknown DPC code) +0.083599 print_debug_deviceinfo (2): 0xd406 (Unknown DPC code) +0.083607 print_debug_deviceinfo (2): 0xd407 (Unknown DPC code) +0.083614 print_debug_deviceinfo (2): 0xd303 (Unknown DPC code) + +0.091085 ptp_usb_getdata (2): Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) data... +0.091089 gp_port_read (3): Reading 1024 = 0x400 bytes from port... +0.091495 gp_port_read (3): Read 775 = 0x307 out of 1024 bytes from port: (hexdump of 775 bytes) +0000 07 03 00 00 02 00 16 91-0a 00 00 00 10 00 00 00 ................ +0010 89 c1 00 00 b0 d1 00 00-00 00 00 00 15 00 00 00 ................ +0020 a5 c1 00 00 0d 00 00 00-04 00 00 00 00 00 00 00 ................ +0030 00 16 00 00 00 a5 c1 00-00 0e 00 00 00 02 00 00 ................ +0040 00 00 00 00 00 00 00 14-00 00 00 a5 c1 00 00 0c ................ +0050 00 00 00 08 00 00 00 00-01 00 00 10 00 00 00 89 ................ +0060 c1 00 00 16 d1 00 00 00-00 95 03 10 00 00 00 89 ................ +0070 c1 00 00 11 d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0080 c1 00 00 12 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0090 c1 00 00 b1 d1 00 00 01-00 00 00 10 00 00 00 89 ................ +00a0 c1 00 00 b0 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +00b0 c1 00 00 08 d1 00 00 ce-01 75 03 10 00 00 00 89 .........u...... +00c0 c1 00 00 09 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +00d0 c1 00 00 07 d1 00 00 03-00 00 00 10 00 00 00 89 ................ +00e0 c1 00 00 06 d1 00 00 00-00 00 00 20 00 00 00 89 ........... .... +00f0 c1 00 00 20 d1 00 00 01-00 00 00 10 00 00 00 01 ... ............ +0100 00 00 00 00 00 00 00 03-00 00 00 10 00 00 00 89 ................ +0110 c1 00 00 ba d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0120 c1 00 00 01 d1 00 00 18-00 00 00 10 00 00 00 89 ................ +0130 c1 00 00 02 d1 00 00 63-00 00 00 10 00 00 00 89 .......c........ +0140 c1 00 00 03 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0150 c1 00 00 04 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0160 c1 00 00 94 d1 00 00 07-00 00 00 10 00 00 00 89 ................ +0170 c1 00 00 c9 d1 00 00 01-00 00 00 10 00 00 00 89 ................ +0180 c1 00 00 b2 d1 00 00 00-00 00 00 18 00 00 00 89 ................ +0190 c1 00 00 59 d0 00 00 0c-00 00 00 00 00 00 00 00 ...Y............ +01a0 00 00 00 1c 00 00 00 8a-c1 00 00 b0 d1 00 00 03 ................ +01b0 00 00 00 02 00 00 00 00-00 00 00 08 00 00 00 14 ................ +01c0 00 00 00 8a c1 00 00 08-d1 00 00 00 00 00 00 00 ................ +01d0 00 00 00 14 00 00 00 8a-c1 00 00 05 d1 00 00 00 ................ +01e0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 07 ................ +01f0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0200 c1 00 00 11 d1 00 00 00-00 00 00 00 00 00 00 14 ................ +0210 00 00 00 8a c1 00 00 12-d1 00 00 00 00 00 00 00 ................ +0220 00 00 00 14 00 00 00 8a-c1 00 00 16 d1 00 00 00 ................ +0230 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 1b ................ +0240 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0250 c1 00 00 20 d1 00 00 00-00 00 00 00 00 00 00 14 ... ............ +0260 00 00 00 8a c1 00 00 38-d1 00 00 00 00 00 00 00 .......8........ +0270 00 00 00 14 00 00 00 8a-c1 00 00 94 d1 00 00 00 ................ +0280 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 b1 ................ +0290 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +02a0 c1 00 00 01 d1 00 00 03-00 00 00 00 00 00 00 14 ................ +02b0 00 00 00 8a c1 00 00 02-d1 00 00 03 00 00 00 00 ................ +02c0 00 00 00 14 00 00 00 8a-c1 00 00 03 d1 00 00 03 ................ +02d0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 04 ................ +02e0 d1 00 00 03 00 00 00 00-00 00 00 14 00 00 00 8a ................ +02f0 c1 00 00 c9 d1 00 00 00-00 00 00 00 00 00 00 08 ................ +0300 00 00 00 00 00 00 00 - ....... + +0.092005 ptp (2): event 0: EOS prop d1b0 info record, datasize is 4 +0.092013 ptp (2): event 0: currentvalue of d1b0 is 0 +0.092020 ptp (2): olcinfoversion is 0 +0.092027 ptp (2): event 1: EOS event OLCInfoChanged (size 21) +0.092034 ptp (2): 0: 0d +0.092042 ptp (2): 1: 00 +0.092048 ptp (2): 2: 00 +0.092055 ptp (2): 3: 00 +0.092061 ptp (2): 4: 04 +0.092067 ptp (2): 5: 00 +0.092073 ptp (2): 6: 00 +0.092079 ptp (2): 7: 00 +0.092086 ptp (2): 8: 00 +0.092093 ptp (2): 9: 00 +0.092100 ptp (2): 10: 00 +0.092107 ptp (2): 11: 00 +0.092114 ptp (2): 12: 00 +0.092128 ptp (2): olcinfoversion is 0 +0.092135 ptp (2): event 3: EOS event OLCInfoChanged (size 22) +0.092142 ptp (2): 0: 0e +0.092149 ptp (2): 1: 00 +0.092156 ptp (2): 2: 00 +0.092163 ptp (2): 3: 00 +0.092170 ptp (2): 4: 02 +0.092176 ptp (2): 5: 00 +0.092183 ptp (2): 6: 00 +0.092189 ptp (2): 7: 00 +0.092196 ptp (2): 8: 00 +0.092202 ptp (2): 9: 00 +0.092209 ptp (2): 10: 00 +0.092216 ptp (2): 11: 00 +0.092222 ptp (2): 12: 00 +0.092229 ptp (2): 13: 00 +0.092236 ptp (2): olcinfoversion is 0 +0.092243 ptp (2): event 5: EOS event OLCInfoChanged (size 20) +0.092250 ptp (2): 0: 0c +0.092256 ptp (2): 1: 00 +0.092263 ptp (2): 2: 00 +0.092270 ptp (2): 3: 00 +0.092277 ptp (2): 4: 08 +0.092283 ptp (2): 5: 00 +0.092290 ptp (2): 6: 00 +0.092296 ptp (2): 7: 00 +0.092302 ptp (2): 8: 00 +0.092310 ptp (2): 9: 01 +0.092317 ptp (2): 10: 00 +0.092324 ptp (2): 11: 00 +0.092333 ptp (2): event 7: EOS prop d116 info record, datasize is 4 +0.092340 ptp (2): event 7: currentvalue of d116 is 3950000 +0.092347 ptp (2): event 8: EOS prop d111 info record, datasize is 4 +0.092354 ptp (2): event 8: currentvalue of d111 is 2 +0.092361 ptp (2): event 9: EOS prop d112 info record, datasize is 4 +0.092370 ptp (2): event 9: currentvalue of d112 is 0 +0.092377 ptp (2): event 10: EOS prop d1b1 info record, datasize is 4 +0.092384 ptp (2): event 10: currentvalue of d1b1 is 1 +0.092391 ptp (2): event 11: EOS prop d1b0 info record, datasize is 4 +0.092401 ptp (2): event 11: currentvalue of d1b0 is 0 +0.092407 ptp (2): event 12: EOS prop d108 info record, datasize is 4 +0.092414 ptp (2): event 12: currentvalue of d108 is 1ce +0.092421 ptp (2): event 13: EOS prop d109 info record, datasize is 4 +0.092427 ptp (2): event 13: currentvalue of d109 is 0 +0.092434 ptp (2): event 14: EOS prop d107 info record, datasize is 4 +0.092440 ptp (2): event 14: currentvalue of d107 is 3 +0.092445 ptp (2): event 15: EOS prop d106 info record, datasize is 4 +0.092453 ptp (2): event 15: currentvalue of d106 is 0 +0.092460 ptp (2): event 16: EOS prop d120 info record, datasize is 20 +0.092468 ptp (2): event 16: decoded imageformat, currentvalue of d120 is 300 +0.092475 ptp (2): event 17: EOS prop d1ba info record, datasize is 4 +0.092484 ptp (2): event 17: Unknown EOS property d1ba, datasize is 4, using uint32 +0.092492 ptp (2): 0: 0x 2 +0.092496 ptp (2): event 17: currentvalue of d1ba is 2 +0.092504 ptp (2): event 18: EOS prop d101 info record, datasize is 4 +0.092511 ptp (2): event 18: currentvalue of d101 is 18 +0.092518 ptp (2): event 19: EOS prop d102 info record, datasize is 4 +0.092525 ptp (2): event 19: currentvalue of d102 is 63 +0.092532 ptp (2): event 20: EOS prop d103 info record, datasize is 4 +0.092538 ptp (2): event 20: currentvalue of d103 is 0 +0.092545 ptp (2): event 21: EOS prop d104 info record, datasize is 4 +0.092552 ptp (2): event 21: currentvalue of d104 is 0 +0.092559 ptp (2): event 22: EOS prop d194 info record, datasize is 4 +0.092565 ptp (2): event 22: currentvalue of d194 is 7 +0.092572 ptp (2): event 23: EOS prop d1c9 info record, datasize is 4 +0.092580 ptp (2): event 23: currentvalue of d1c9 is 1 +0.092587 ptp (2): event 24: EOS prop d1b2 info record, datasize is 4 +0.092595 ptp (2): event 24: Unknown EOS property d1b2, datasize is 4, using uint32 +0.092602 ptp (2): 0: 0x 0 +0.092609 ptp (2): event 24: currentvalue of d1b2 is 0 +0.092615 ptp (2): event 25: EOS prop d059 info record, datasize is 12 +0.092623 ptp (2): event 25: Unknown EOS property d059, datasize is 12 +0.092630 ptp (2): 0: 0c +0.092637 ptp (2): 1: 00 +0.092644 ptp (2): 2: 00 +0.092651 ptp (2): 3: 00 +0.092657 ptp (2): 4: 00 +0.092663 ptp (2): 5: 00 +0.092668 ptp (2): 6: 00 +0.092675 ptp (2): 7: 00 +0.092679 ptp (2): 8: 00 +0.092685 ptp (2): 9: 00 +0.092691 ptp (2): 10: 00 +0.092697 ptp (2): 11: 00 +0.092704 ptp (2): event 26: EOS prop d1b0 desc record, datasize 8, propxtype 3 +0.092713 ptp (2): event 26: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +0.092722 ptp (2): event 26: suppval[0] of d1b0 is 0x0. +0.092729 ptp (2): event 26: suppval[1] of d1b0 is 0x8. +0.092737 ptp (2): event 27: EOS prop d108 desc record, datasize 0, propxtype 0 +0.092743 ptp (2): event 27: propxtype is 0 for d108, unhandled, size 20 +0.092750 ptp (2): event 28: EOS prop d105 desc record, datasize 0, propxtype 0 +0.092757 ptp (2): event 28: propdesc d105, default value not found. +0.092763 ptp (2): event 29: EOS prop d107 desc record, datasize 0, propxtype 0 +0.092769 ptp (2): event 29: propxtype is 0 for d107, unhandled, size 20 +0.092775 ptp (2): event 30: EOS prop d111 desc record, datasize 0, propxtype 0 +0.092789 ptp (2): event 30: propxtype is 0 for d111, unhandled, size 20 +0.092795 ptp (2): event 31: EOS prop d112 desc record, datasize 0, propxtype 0 +0.092802 ptp (2): event 31: propxtype is 0 for d112, unhandled, size 20 +0.092809 ptp (2): event 32: EOS prop d116 desc record, datasize 0, propxtype 0 +0.092815 ptp (2): event 32: propxtype is 0 for d116, unhandled, size 20 +0.092822 ptp (2): event 33: EOS prop d11b desc record, datasize 0, propxtype 0 +0.092830 ptp (2): event 33: propdesc d11b, default value not found. +0.092838 ptp (2): event 34: EOS prop d120 desc record, datasize 0, propxtype 0 +0.092845 ptp (2): event 34: propxtype is 0 for d120, unhandled, size 20 +0.092853 ptp (2): event 35: EOS prop d138 desc record, datasize 0, propxtype 0 +0.092860 ptp (2): event 35: propdesc d138, default value not found. +0.092866 ptp (2): event 36: EOS prop d194 desc record, datasize 0, propxtype 0 +0.092873 ptp (2): event 36: propxtype is 0 for d194, unhandled, size 20 +0.092879 ptp (2): event 37: EOS prop d1b1 desc record, datasize 0, propxtype 0 +0.092886 ptp (2): event 37: propxtype is 0 for d1b1, unhandled, size 20 +0.092893 ptp (2): event 38: EOS prop d101 desc record, datasize 0, propxtype 3 +0.092898 ptp (2): event 39: EOS prop d102 desc record, datasize 0, propxtype 3 +0.092902 ptp (2): event 40: EOS prop d103 desc record, datasize 0, propxtype 3 +0.092906 ptp (2): event 41: EOS prop d104 desc record, datasize 0, propxtype 3 +0.092911 ptp (2): event 42: EOS prop d1c9 desc record, datasize 0, propxtype 0 +0.092915 ptp (2): event 42: propxtype is 0 for d1c9, unhandled, size 20 + +0000 07 03 00 00 02 00 16 91-13 00 00 00 15 00 00 00 ................ +0010 a5 c1 00 00 0d 00 00 00-04 00 00 00 00 00 00 00 ................ +0020 00 16 00 00 00 a5 c1 00-00 0e 00 00 00 02 00 00 ................ +0030 00 00 00 00 00 00 00 14-00 00 00 a5 c1 00 00 0c ................ +0040 00 00 00 08 00 00 00 00-01 00 00 10 00 00 00 89 ................ +0050 c1 00 00 16 d1 00 00 00-00 95 03 10 00 00 00 89 ................ +0060 c1 00 00 11 d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0070 c1 00 00 12 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0080 c1 00 00 b1 d1 00 00 01-00 00 00 10 00 00 00 89 ................ +0090 c1 00 00 b0 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +00a0 c1 00 00 08 d1 00 00 ce-01 75 03 10 00 00 00 89 .........u...... +00b0 c1 00 00 09 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +00c0 c1 00 00 07 d1 00 00 03-00 00 00 10 00 00 00 89 ................ +00d0 c1 00 00 06 d1 00 00 00-00 00 00 20 00 00 00 89 ........... .... +00e0 c1 00 00 20 d1 00 00 01-00 00 00 10 00 00 00 01 ... ............ +00f0 00 00 00 00 00 00 00 03-00 00 00 10 00 00 00 89 ................ +0100 c1 00 00 ba d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0110 c1 00 00 01 d1 00 00 18-00 00 00 10 00 00 00 89 ................ +0120 c1 00 00 02 d1 00 00 63-00 00 00 10 00 00 00 89 .......c........ +0130 c1 00 00 03 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0140 c1 00 00 04 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0150 c1 00 00 94 d1 00 00 07-00 00 00 10 00 00 00 89 ................ +0160 c1 00 00 c9 d1 00 00 01-00 00 00 10 00 00 00 89 ................ +0170 c1 00 00 b2 d1 00 00 00-00 00 00 18 00 00 00 89 ................ +0180 c1 00 00 59 d0 00 00 0c-00 00 00 00 00 00 00 00 ...Y............ +0190 00 00 00 1c 00 00 00 8a-c1 00 00 b0 d1 00 00 03 ................ +01a0 00 00 00 02 00 00 00 00-00 00 00 08 00 00 00 14 ................ +01b0 00 00 00 8a c1 00 00 08-d1 00 00 00 00 00 00 00 ................ +01c0 00 00 00 14 00 00 00 8a-c1 00 00 05 d1 00 00 00 ................ +01d0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 07 ................ +01e0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +01f0 c1 00 00 11 d1 00 00 00-00 00 00 00 00 00 00 14 ................ +0200 00 00 00 8a c1 00 00 12-d1 00 00 00 00 00 00 00 ................ +0210 00 00 00 14 00 00 00 8a-c1 00 00 16 d1 00 00 00 ................ +0220 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 1b ................ +0230 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0240 c1 00 00 20 d1 00 00 00-00 00 00 00 00 00 00 14 ... ............ +0250 00 00 00 8a c1 00 00 38-d1 00 00 00 00 00 00 00 .......8........ +0260 00 00 00 14 00 00 00 8a-c1 00 00 94 d1 00 00 00 ................ +0270 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 b1 ................ +0280 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0290 c1 00 00 01 d1 00 00 03-00 00 00 00 00 00 00 14 ................ +02a0 00 00 00 8a c1 00 00 02-d1 00 00 03 00 00 00 00 ................ +02b0 00 00 00 14 00 00 00 8a-c1 00 00 03 d1 00 00 03 ................ +02c0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 04 ................ +02d0 d1 00 00 03 00 00 00 00-00 00 00 14 00 00 00 8a ................ +02e0 c1 00 00 c9 d1 00 00 00-00 00 00 00 00 00 00 10 ................ +02f0 00 00 00 89 c1 00 00 b0-d1 00 00 08 00 00 00 08 ................ +0300 00 00 00 00 00 00 00 - ....... + +1.102280 ptp (2): olcinfoversion is 0 +1.102302 ptp (2): event 0: EOS event OLCInfoChanged (size 21) +1.102323 ptp (2): 0: 0d +1.102344 ptp (2): 1: 00 +1.102370 ptp (2): 2: 00 +1.102393 ptp (2): 3: 00 +1.102412 ptp (2): 4: 04 +1.102433 ptp (2): 5: 00 +1.102447 ptp (2): 6: 00 +1.102467 ptp (2): 7: 00 +1.102488 ptp (2): 8: 00 +1.102507 ptp (2): 9: 00 +1.102525 ptp (2): 10: 00 +1.102544 ptp (2): 11: 00 +1.102562 ptp (2): 12: 00 +1.102583 ptp (2): olcinfoversion is 0 +1.102603 ptp (2): event 2: EOS event OLCInfoChanged (size 22) +1.102623 ptp (2): 0: 0e +1.102642 ptp (2): 1: 00 +1.102661 ptp (2): 2: 00 +1.102679 ptp (2): 3: 00 +1.102696 ptp (2): 4: 02 +1.102715 ptp (2): 5: 00 +1.102735 ptp (2): 6: 00 +1.102755 ptp (2): 7: 00 +1.102772 ptp (2): 8: 00 +1.102806 ptp (2): 9: 00 +1.102823 ptp (2): 10: 00 +1.102841 ptp (2): 11: 00 +1.102858 ptp (2): 12: 00 +1.102874 ptp (2): 13: 00 +1.102886 ptp (2): olcinfoversion is 0 +1.102898 ptp (2): event 4: EOS event OLCInfoChanged (size 20) +1.102912 ptp (2): 0: 0c +1.102930 ptp (2): 1: 00 +1.102950 ptp (2): 2: 00 +1.102970 ptp (2): 3: 00 +1.102988 ptp (2): 4: 08 +1.103006 ptp (2): 5: 00 +1.103026 ptp (2): 6: 00 +1.103043 ptp (2): 7: 00 +1.103062 ptp (2): 8: 00 +1.103080 ptp (2): 9: 01 +1.103097 ptp (2): 10: 00 +1.103115 ptp (2): 11: 00 +1.103140 ptp (2): event 6: EOS prop d116 info record, datasize is 4 +1.103160 ptp (2): event 6: currentvalue of d116 is 3950000 +1.103180 ptp (2): event 7: EOS prop d111 info record, datasize is 4 +1.103202 ptp (2): event 7: currentvalue of d111 is 2 +1.103223 ptp (2): event 8: EOS prop d112 info record, datasize is 4 +1.103245 ptp (2): event 8: currentvalue of d112 is 0 +1.103265 ptp (2): event 9: EOS prop d1b1 info record, datasize is 4 +1.103285 ptp (2): event 9: currentvalue of d1b1 is 1 +1.103304 ptp (2): event 10: EOS prop d1b0 info record, datasize is 4 +1.103325 ptp (2): event 10: currentvalue of d1b0 is 0 +1.103344 ptp (2): event 11: EOS prop d108 info record, datasize is 4 +1.103366 ptp (2): event 11: currentvalue of d108 is 1ce +1.103385 ptp (2): event 12: EOS prop d109 info record, datasize is 4 +1.103406 ptp (2): event 12: currentvalue of d109 is 0 +1.103424 ptp (2): event 13: EOS prop d107 info record, datasize is 4 +1.103445 ptp (2): event 13: currentvalue of d107 is 3 +1.103464 ptp (2): event 14: EOS prop d106 info record, datasize is 4 +1.103484 ptp (2): event 14: currentvalue of d106 is 0 +1.103504 ptp (2): event 15: EOS prop d120 info record, datasize is 20 +1.103525 ptp (2): event 15: currentvalue of d120 is 1 +1.103545 ptp (2): event 15: decoded imageformat, currentvalue of d120 is 300 +1.103566 ptp (2): event 16: EOS prop d1ba info record, datasize is 4 +1.103587 ptp (2): event 16: Unknown EOS property d1ba, datasize is 4, using uint32 +1.103611 ptp (2): 0: 0x 2 +1.103629 ptp (2): event 16: currentvalue of d1ba is 2 +1.103648 ptp (2): event 17: EOS prop d101 info record, datasize is 4 +1.103668 ptp (2): event 17: currentvalue of d101 is 18 +1.103687 ptp (2): event 18: EOS prop d102 info record, datasize is 4 +1.103709 ptp (2): event 18: currentvalue of d102 is 63 +1.103732 ptp (2): event 19: EOS prop d103 info record, datasize is 4 +1.103756 ptp (2): event 19: currentvalue of d103 is 0 +1.103778 ptp (2): event 20: EOS prop d104 info record, datasize is 4 +1.103816 ptp (2): event 20: currentvalue of d104 is 0 +1.103840 ptp (2): event 21: EOS prop d194 info record, datasize is 4 +1.103859 ptp (2): event 21: currentvalue of d194 is 7 +1.103878 ptp (2): event 22: EOS prop d1c9 info record, datasize is 4 +1.103897 ptp (2): event 22: currentvalue of d1c9 is 1 +1.103917 ptp (2): event 23: EOS prop d1b2 info record, datasize is 4 +1.103938 ptp (2): event 23: Unknown EOS property d1b2, datasize is 4, using uint32 +1.103958 ptp (2): 0: 0x 0 +1.103977 ptp (2): event 23: currentvalue of d1b2 is 0 +1.103998 ptp (2): event 24: EOS prop d059 info record, datasize is 12 +1.104022 ptp (2): event 24: Unknown EOS property d059, datasize is 12 +1.104039 ptp (2): 0: 0c +1.104058 ptp (2): 1: 00 +1.104076 ptp (2): 2: 00 +1.104095 ptp (2): 3: 00 +1.104117 ptp (2): 4: 00 +1.104134 ptp (2): 5: 00 +1.104151 ptp (2): 6: 00 +1.104168 ptp (2): 7: 00 +1.104185 ptp (2): 8: 00 +1.104202 ptp (2): 9: 00 +1.104220 ptp (2): 10: 00 +1.104237 ptp (2): 11: 00 +1.104258 ptp (2): event 25: EOS prop d1b0 desc record, datasize 8, propxtype 3 +1.104281 ptp (2): event 25: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +1.104305 ptp (2): event 25: suppval[0] of d1b0 is 0x0. +1.104329 ptp (2): event 25: suppval[1] of d1b0 is 0x8. +1.104350 ptp (2): event 26: EOS prop d108 desc record, datasize 0, propxtype 0 +1.104371 ptp (2): event 26: propxtype is 0 for d108, unhandled, size 20 +1.104385 ptp (2): event 27: EOS prop d105 desc record, datasize 0, propxtype 0 +1.104397 ptp (2): event 27: propdesc d105, default value not found. +1.104419 ptp (2): event 28: EOS prop d107 desc record, datasize 0, propxtype 0 +1.104439 ptp (2): event 28: propxtype is 0 for d107, unhandled, size 20 +1.104460 ptp (2): event 29: EOS prop d111 desc record, datasize 0, propxtype 0 +1.104483 ptp (2): event 29: propxtype is 0 for d111, unhandled, size 20 +1.104505 ptp (2): event 30: EOS prop d112 desc record, datasize 0, propxtype 0 +1.104525 ptp (2): event 30: propxtype is 0 for d112, unhandled, size 20 +1.104545 ptp (2): event 31: EOS prop d116 desc record, datasize 0, propxtype 0 +1.104566 ptp (2): event 31: propxtype is 0 for d116, unhandled, size 20 +1.104586 ptp (2): event 32: EOS prop d11b desc record, datasize 0, propxtype 0 +1.104604 ptp (2): event 32: propdesc d11b, default value not found. +1.104625 ptp (2): event 33: EOS prop d120 desc record, datasize 0, propxtype 0 +1.104644 ptp (2): event 33: propxtype is 0 for d120, unhandled, size 20 +1.104666 ptp (2): event 34: EOS prop d138 desc record, datasize 0, propxtype 0 +1.104685 ptp (2): event 34: propdesc d138, default value not found. +1.104709 ptp (2): event 35: EOS prop d194 desc record, datasize 0, propxtype 0 +1.104730 ptp (2): event 35: propxtype is 0 for d194, unhandled, size 20 +1.104750 ptp (2): event 36: EOS prop d1b1 desc record, datasize 0, propxtype 0 +1.104772 ptp (2): event 36: propxtype is 0 for d1b1, unhandled, size 20 +1.104806 ptp (2): event 37: EOS prop d101 desc record, datasize 0, propxtype 3 +1.104825 ptp (2): event 38: EOS prop d102 desc record, datasize 0, propxtype 3 +1.104846 ptp (2): event 39: EOS prop d103 desc record, datasize 0, propxtype 3 +1.104867 ptp (2): event 40: EOS prop d104 desc record, datasize 0, propxtype 3 +1.104888 ptp (2): event 41: EOS prop d1c9 desc record, datasize 0, propxtype 0 +1.104909 ptp (2): event 41: propxtype is 0 for d1c9, unhandled, size 20 +1.104928 ptp (2): event 42: EOS prop d1b0 info record, datasize is 4 +1.104951 ptp (2): event 42: currentvalue of d1b0 is 8 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g7x.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g7x.txt new file mode 100644 index 00000000..73ce457d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g7x.txt @@ -0,0 +1,359 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot G7 X + Version: 1-14.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture 2 + +Storage Devices Summary: +store_00010001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 64005144576 (61040 MB) + Free Space (Bytes): 52043284480 (49632 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 3 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 262144 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 262144 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 2% (2) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Warning Level 0 (4) +UNIX Time(0xd034):(readwrite) (type=0x6) 1549385802 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 58195968 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot G7 X' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051: error 201b on query. +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053: error 201b on query. +Property 0xd054: error 201b on query. +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot G7 X' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 0 +Property 0xd055:(readwrite) (type=0x2) 0 +Property 0xd056:(readwrite) (type=0x2) 0 +Property 0xd106:(readwrite) (type=0x2) 0 +Property 0xd1b0:(readwrite) (type=0x2) 0 +Property 0xd111: error 201b on query. +Property 0xd112: error 201b on query. + +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Readonly: 0 +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/settings/datetime +Label: Camera Date and Time +Readonly: 0 +Type: DATE +Current: 1549406458 +Printable: Tue 05 Feb 2019 23:40:58 CET +Help: Use 'now' as the current time when setting. + +END +/main/settings/ownername +Label: Owner Name +Readonly: 0 +Type: TEXT +Current: +END +/main/settings/capturetarget +Label: Capture Target +Readonly: 0 +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +END +/main/settings/capture +Label: Capture +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: Canon Inc. +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: Canon PowerShot G7 X +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: 1-14.0.1.0 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: None +END +/main/status/model +Label: Camera Model +Readonly: 1 +Type: TEXT +Current: Canon PowerShot G7 X +END +/main/status/model +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: 58195968 +END +/main/status/firmwareversion +Label: Firmware Version +Readonly: 1 +Type: TEXT +Current: 1.0.0.0 +END +/main/status/Battery Level +Label: Battery Level +Readonly: 1 +Type: TEXT +Current: 3% +END +/main/status/availableshots +Label: Available Shots +Readonly: 0 +Type: TEXT +Current: 8921 +END +/main/capturesettings/zoom +Label: Zoom +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/other/d045 +Label: Event Emulate Mode +Readonly: 0 +Type: MENU +Current: 9 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +END +/main/other/d04a +Label: PTP Property 0xd04a +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d02e +Label: Size of Output Data from Camera +Readonly: 1 +Type: TEXT +Current: 262144 +END +/main/other/d02f +Label: Size of Input Data to Camera +Readonly: 1 +Type: TEXT +Current: 262144 +END +/main/other/5001 +Label: Battery Level +Readonly: 1 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d002 +Label: Battery Type +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d003 +Label: Battery Mode +Readonly: 1 +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d034 +Label: UNIX Time +Readonly: 0 +Type: TEXT +Current: 1549410058 +END +/main/other/d047 +Label: Type of Slideshow +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d046 +Label: DPOF Version +Readonly: 1 +Type: TEXT +Current: 257 +END +/main/other/d030 +Label: Remote API Version +Readonly: 1 +Type: TEXT +Current: 256 +END +/main/other/d049 +Label: Model ID +Readonly: 1 +Type: TEXT +Current: 58195968 +END +/main/other/d032 +Label: Camera Model +Readonly: 1 +Type: TEXT +Current: Canon PowerShot G7 X +END +/main/other/d033 +Label: Camera Owner +Readonly: 0 +Type: TEXT +Current: (null) +END +/main/other/d031 +Label: Firmware Version +Readonly: 1 +Type: TEXT +Current: 16777216 +END +/main/other/d050 +Label: PTP Property 0xd050 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d052 +Label: PTP Property 0xd052 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d402 +Label: PTP Property 0xd402 +Readonly: 1 +Type: TEXT +Current: Canon PowerShot G7 X +END +/main/other/d406 +Label: PTP Property 0xd406 +Readonly: 0 +Type: TEXT +Current: Windows +END +/main/other/d407 +Label: PTP Property 0xd407 +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d303 +Label: PTP Property 0xd303 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d055 +Label: PTP Property 0xd055 +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/other/d056 +Label: PTP Property 0xd056 +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/other/d106 +Label: PTP Property 0xd106 +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/other/d1b0 +Label: PTP Property 0xd1b0 +Readonly: 0 +Type: TEXT +Current: 0 +END + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g9x.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g9x.txt new file mode 100644 index 00000000..17cf9ca7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g9x.txt @@ -0,0 +1,126 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot G9 X + device version: 1-14.0.1.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9116 + 0x9101 + 0x9102 + 0x9103 + 0x9107 + 0x9109 + 0x910a + 0x9117 + 0x9118 + 0x912c + 0x9132 + 0x9141 + 0x9143 + 0x9115 + 0x9114 + 0x9153 + 0x9128 + 0x9129 + 0x9154 + 0x9160 + 0x915b + 0x9110 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc101 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd053 + 0xd054 + 0xd057 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g9xmark2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g9xmark2.txt new file mode 100644 index 00000000..0592d02e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-g9xmark2.txt @@ -0,0 +1,851 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot G9 X Mark II + device version: 1-15.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x9013 (PTP_OC_CANON_CheckEvent) + 0x901f (PTP_OC_CANON_ChangeUSBProtocol) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1012 (Set object protection) + 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) + 0x9021 (PTP_OC_CANON_GetObjectInfoEx) + 0x901b (PTP_OC_CANON_GetPartialObjectEx) + 0x901e (PTP_OC_CANON_GetObjectAttributes) + 0x9019 (PTP_OC_CANON_SendPartialObject) + 0x9006 (PTP_OC_CANON_GetObjectHandleByName) + 0x901c (PTP_OC_CANON_SetObjectTime) + 0x9002 (PTP_OC_CANON_SetObjectArchive) + 0x904c (Unknown PTP_OC) + 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) + 0x9025 (PTP_OC_CANON_SendObjectByPath ) + 0x9038 (Unknown PTP_OC) + 0x9039 (Unknown PTP_OC) + 0x903a (Unknown PTP_OC) + 0x903b (Unknown PTP_OC) + 0x904b (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) + 0x9062 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9182 (PTP_OC_CANON_EOS_NotifyEstimateNumberofImport) + 0x9183 (PTP_OC_CANON_EOS_NotifyNumberofImported) + 0x9184 (PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer) + 0x9185 (PTP_OC_CANON_EOS_NotifyFinish) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x9075 (Unknown PTP_OC) + 0x9076 (Unknown PTP_OC) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x902f (Unknown PTP_OC) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) +Events Supported: + 0x4001 (CancelTransaction) + 0x4002 (ObjectAdded) + 0x4003 (ObjectRemoved) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4006 (DevicePropChanged) + 0x4007 (ObjectInfoChanged) + 0x4008 (DeviceInfoChanged) + 0x4009 (RequestObjectTransfer) + 0x400a (StoreFull) + 0x400b (DeviceReset) + 0x400c (StorageInfoChanged) + 0x400e (UnreportedStatus) + 0xc001 (Unknown Event) + 0xc005 (Unknown Event) + 0xc00a (Unknown Event) + 0xc101 (Unknown Event) +Device Properties Supported: + 0xd045 (Event Emulate Mode) + 0xd04a (Unknown DPC code) + 0xd02e (Size of Output Data from Camera) + 0xd02f (Size of Input Data to Camera) + 0x5001 (Battery Level) + 0xd002 (Battery Type) + 0xd003 (Battery Mode) + 0xd034 (UNIX Time) + 0xd047 (Type of Slideshow) + 0xd046 (DPOF Version) + 0xd030 (Remote API Version) + 0xd049 (Model ID) + 0xd032 (Camera Model) + 0xd033 (Camera Owner) + 0xd031 (Firmware Version) + 0xd050 (Unknown DPC code) + 0xd051 (Unknown DPC code) + 0xd052 (Unknown DPC code) + 0xd053 (Unknown DPC code) + 0xd054 (Unknown DPC code) + 0xd057 (Unknown DPC code) + 0xd402 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd303 (Unknown DPC code) + +0000 63 06 00 00 02 00 16 91-0b 00 00 00 15 00 00 00 c............... +0010 a5 c1 00 00 0d 00 00 00-04 00 00 00 00 01 00 00 ................ +0020 00 16 00 00 00 a5 c1 00-00 0e 00 00 00 02 00 00 ................ +0030 00 00 00 00 00 00 00 14-00 00 00 a5 c1 00 00 0c ................ +0040 00 00 00 08 00 00 00 00-01 00 00 10 00 00 00 89 ................ +0050 c1 00 00 11 d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0060 c1 00 00 12 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0070 c1 00 00 16 d1 00 00 00-00 10 04 10 00 00 00 89 ................ +0080 c1 00 00 1e d1 00 00 01-00 01 00 10 00 00 00 89 ................ +0090 c1 00 00 36 d1 00 00 00-00 00 00 20 00 00 00 89 ...6....... .... +00a0 c1 00 00 20 d1 00 00 01-00 00 00 10 00 00 00 01 ... ............ +00b0 00 00 00 00 00 00 00 05-00 00 00 1c 00 00 00 89 ................ +00c0 c1 00 00 25 d1 00 00 47-39 58 6d 32 00 00 00 00 ...%...G9Xm2.... +00d0 00 00 00 00 00 00 00 10-00 00 00 89 c1 00 00 38 ...............8 +00e0 d1 00 00 16 00 00 00 10-00 00 00 89 c1 00 00 75 ...............u +00f0 d1 00 00 07 00 00 00 10-00 00 00 89 c1 00 00 7c ...............| +0100 d1 00 00 7e fa 70 58 10-00 00 00 89 c1 00 00 94 ...~.pX......... +0110 d1 00 00 07 00 00 00 10-00 00 00 89 c1 00 00 99 ................ +0120 d1 00 00 08 00 00 00 10-00 00 00 89 c1 00 00 b0 ................ +0130 d1 00 00 00 00 00 00 10-00 00 00 89 c1 00 00 b1 ................ +0140 d1 00 00 01 00 00 00 10-00 00 00 89 c1 00 00 b2 ................ +0150 d1 00 00 00 00 00 00 10-00 00 00 89 c1 00 00 58 ...............X +0160 d0 00 00 00 00 00 00 74-00 00 00 89 c1 00 00 68 .......t.......h +0170 d1 00 00 05 00 00 00 14-00 00 00 01 00 00 00 00 ................ +0180 00 00 00 60 15 00 00 40-0e 00 00 14 00 00 00 01 ...`...@........ +0190 00 00 00 01 00 00 00 40-0e 00 00 80 09 00 00 14 .......@........ +01a0 00 00 00 01 00 00 00 0e-00 00 00 b0 0a 00 00 20 ............... +01b0 07 00 00 14 00 00 00 01-00 00 00 0f 00 00 00 60 ...............` +01c0 09 00 00 40 06 00 00 14-00 00 00 06 00 00 00 00 ...@............ +01d0 00 00 00 60 15 00 00 40-0e 00 00 48 00 00 00 89 ...`...@...H.... +01e0 c1 00 00 3f d1 00 00 01-00 00 00 6a 70 2e 63 6f ...?.......jp.co +01f0 2e 63 61 6e 6f 6e 2e 69-63 2e 63 61 6d 65 72 61 .canon.ic.camera +0200 63 6f 6e 6e 65 63 74 00-00 00 00 00 00 00 00 00 connect......... +0210 00 00 00 63 61 6e 6f 6e-2d 61 30 31 00 00 00 00 ...canon-a01.... +0220 00 00 00 18 00 00 00 89-c1 00 00 59 d0 00 00 0c ...........Y.... +0230 00 00 00 00 00 00 00 00-00 00 00 10 00 00 00 89 ................ +0240 c1 00 00 01 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0250 c1 00 00 02 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0260 c1 00 00 03 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0270 c1 00 00 04 d1 00 00 e8-00 00 00 10 00 00 00 89 ................ +0280 c1 00 00 05 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0290 c1 00 00 06 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +02a0 c1 00 00 07 d1 00 00 03-00 00 00 10 00 00 00 89 ................ +02b0 c1 00 00 08 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +02c0 c1 00 00 09 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +02d0 c1 00 00 c9 d1 00 00 01-00 00 00 38 00 00 00 89 ...........8.... +02e0 c1 00 00 63 d1 00 00 2c-00 00 00 01 00 00 00 87 ...c...,........ +02f0 00 00 00 00 00 00 00 03-00 00 00 00 00 00 00 00 ................ +0300 00 00 00 00 00 00 00 00-00 00 00 04 00 00 00 04 ................ +0310 00 00 00 38 00 00 00 89-c1 00 00 64 d1 00 00 2c ...8.......d..., +0320 00 00 00 01 00 00 00 87-00 00 00 00 00 00 00 03 ................ +0330 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0340 00 00 00 04 00 00 00 04-00 00 00 38 00 00 00 89 ...........8.... +0350 c1 00 00 65 d1 00 00 2c-00 00 00 01 00 00 00 87 ...e...,........ +0360 00 00 00 00 00 00 00 03-00 00 00 00 00 00 00 00 ................ +0370 00 00 00 00 00 00 00 00-00 00 00 04 00 00 00 04 ................ +0380 00 00 00 14 00 00 00 8a-c1 00 00 11 d1 00 00 00 ................ +0390 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 12 ................ +03a0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +03b0 c1 00 00 16 d1 00 00 00-00 00 00 00 00 00 00 14 ................ +03c0 00 00 00 8a c1 00 00 1e-d1 00 00 00 00 00 00 00 ................ +03d0 00 00 00 14 00 00 00 8a-c1 00 00 20 d1 00 00 00 ........... .... +03e0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 25 ...............% +03f0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ + +Reading 512 = 0x200 bytes from port... +Read 512 = 0x200 bytes from port: (hexdump of 512 bytes) +0000 c1 00 00 38 d1 00 00 00-00 00 00 00 00 00 00 14 ...8............ +0010 00 00 00 8a c1 00 00 77-d1 00 00 00 00 00 00 00 .......w........ +0020 00 00 00 14 00 00 00 8a-c1 00 00 7c d1 00 00 00 ...........|.... +0030 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 94 ................ +0040 d1 00 00 00 00 00 00 00-00 00 00 1c 00 00 00 8a ................ +0050 c1 00 00 b0 d1 00 00 03-00 00 00 02 00 00 00 00 ................ +0060 00 00 00 08 00 00 00 14-00 00 00 8a c1 00 00 b1 ................ +0070 d1 00 00 00 00 00 00 00-00 00 00 54 00 00 00 8a ...........T.... +0080 c1 00 00 01 d1 00 00 03-00 00 00 10 00 00 00 18 ................ +0090 00 00 00 1b 00 00 00 1d-00 00 00 20 00 00 00 23 ........... ...# +00a0 00 00 00 25 00 00 00 28-00 00 00 2b 00 00 00 2d ...%...(...+...- +00b0 00 00 00 30 00 00 00 33-00 00 00 35 00 00 00 38 ...0...3...5...8 +00c0 00 00 00 3b 00 00 00 3d-00 00 00 40 00 00 00 14 ...;...=...@.... +00d0 00 00 00 8a c1 00 00 02-d1 00 00 03 00 00 00 00 ................ +00e0 00 00 00 6c 00 00 00 8a-c1 00 00 03 d1 00 00 03 ...l............ +00f0 00 00 00 16 00 00 00 00-00 00 00 4b 00 00 00 4d ...........K...M +0100 00 00 00 50 00 00 00 53-00 00 00 55 00 00 00 58 ...P...S...U...X +0110 00 00 00 5b 00 00 00 5d-00 00 00 60 00 00 00 63 ...[...]...`...c +0120 00 00 00 65 00 00 00 68-00 00 00 6b 00 00 00 6d ...e...h...k...m +0130 00 00 00 70 00 00 00 73-00 00 00 75 00 00 00 78 ...p...s...u...x +0140 00 00 00 7b 00 00 00 7d-00 00 00 80 00 00 00 60 ...{...}.......` +0150 00 00 00 8a c1 00 00 04-d1 00 00 03 00 00 00 13 ................ +0160 00 00 00 e8 00 00 00 eb-00 00 00 ed 00 00 00 f0 ................ +0170 00 00 00 f3 00 00 00 f5-00 00 00 f8 00 00 00 fb ................ +0180 00 00 00 fd 00 00 00 00-00 00 00 03 00 00 00 05 ................ +0190 00 00 00 08 00 00 00 0b-00 00 00 0d 00 00 00 10 ................ +01a0 00 00 00 13 00 00 00 15-00 00 00 18 00 00 00 14 ................ +01b0 00 00 00 8a c1 00 00 05-d1 00 00 00 00 00 00 00 ................ +01c0 00 00 00 14 00 00 00 8a-c1 00 00 07 d1 00 00 00 ................ +01d0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 08 ................ +01e0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +01f0 c1 00 00 1b d1 00 00 00-00 00 00 00 00 00 00 14 ................ + +Reading 99 = 0x63 bytes from port... +Read 99 = 0x63 bytes from port: (hexdump of 99 bytes) +0000 00 00 00 8a c1 00 00 c9-d1 00 00 00 00 00 00 00 ................ +0010 00 00 00 14 00 00 00 8a-c1 00 00 63 d1 00 00 00 ...........c.... +0020 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 64 ...............d +0030 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0040 c1 00 00 65 d1 00 00 00-00 00 00 00 00 00 00 0c ...e............ +0050 00 00 00 a4 c1 00 00 01-00 01 00 08 00 00 00 00 ................ +0060 00 00 00 - ... + +olcinfoversion is 0 +event 0: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 + 12: 00 +olcinfoversion is 0 +event 2: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +olcinfoversion is 0 +event 4: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 +event 6: EOS prop d111 info record, datasize is 4 +event 6: currentvalue of d111 is 2 +event 7: EOS prop d112 info record, datasize is 4 +event 7: currentvalue of d112 is 0 +event 8: EOS prop d116 info record, datasize is 4 +event 8: currentvalue of d116 is 4100000 +event 9: EOS prop d11e info record, datasize is 4 +event 9: currentvalue of d11e is 10001 +event 10: EOS prop d136 info record, datasize is 4 +event 10: Unknown EOS property d136, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 11: EOS prop d120 info record, datasize is 20 +event 11: decoded imageformat, currentvalue of d120 is 500 +event 12: EOS prop d125 info record, datasize is 16 +event 12: Unknown EOS property d125, datasize is 16 + 0: 47 + 1: 39 + 2: 58 + 3: 6d + 4: 32 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 +event 13: EOS prop d138 info record, datasize is 4 +event 13: Unknown EOS property d138, datasize is 4 + 0: 16 + 1: 00 + 2: 00 + 3: 00 +event 14: EOS prop d175 info record, datasize is 4 +event 14: Unknown EOS property d175, datasize is 4 + 0: 07 + 1: 00 + 2: 00 + 3: 00 +event 15: EOS prop d17c info record, datasize is 4 +event 15: currentvalue of d17c is 5870fa7e +event 16: EOS prop d194 info record, datasize is 4 +event 16: currentvalue of d194 is 7 +event 17: EOS prop d199 info record, datasize is 4 +event 17: currentvalue of d199 is 8 +event 18: EOS prop d1b0 info record, datasize is 4 +event 18: currentvalue of d1b0 is 0 +event 19: EOS prop d1b1 info record, datasize is 4 +event 19: currentvalue of d1b1 is 1 +event 20: EOS prop d1b2 info record, datasize is 4 +event 20: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 20: currentvalue of d1b2 is 0 +event 21: EOS prop d058 info record, datasize is 4 +event 21: Unknown EOS property d058, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 22: EOS prop d168 info record, datasize is 104 +event 22: Unknown EOS property d168, datasize is 104 + 0: 05 + 1: 00 + 2: 00 + 3: 00 + 4: 14 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 60 + 17: 15 + 18: 00 + 19: 00 + 20: 40 + 21: 0e + 22: 00 + 23: 00 + 24: 14 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 01 + 33: 00 + 34: 00 + 35: 00 + 36: 40 + 37: 0e + 38: 00 + 39: 00 + 40: 80 + 41: 09 + 42: 00 + 43: 00 + 44: 14 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 0e + 53: 00 + 54: 00 + 55: 00 + 56: b0 + 57: 0a + 58: 00 + 59: 00 + 60: 20 + 61: 07 + 62: 00 + 63: 00 + 64: 14 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 0f + 73: 00 + 74: 00 + 75: 00 + 76: 60 + 77: 09 + 78: 00 + 79: 00 + 80: 40 + 81: 06 + 82: 00 + 83: 00 + 84: 14 + 85: 00 + 86: 00 + 87: 00 + 88: 06 + 89: 00 + 90: 00 + 91: 00 + 92: 00 + 93: 00 + 94: 00 + 95: 00 + 96: 60 + 97: 15 + 98: 00 + 99: 00 + 100: 40 + 101: 0e + 102: 00 + 103: 00 +event 23: EOS prop d13f info record, datasize is 60 +event 23: Unknown EOS property d13f, datasize is 60 + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 6a + 5: 70 + 6: 2e + 7: 63 + 8: 6f + 9: 2e + 10: 63 + 11: 61 + 12: 6e + 13: 6f + 14: 6e + 15: 2e + 16: 69 + 17: 63 + 18: 2e + 19: 63 + 20: 61 + 21: 6d + 22: 65 + 23: 72 + 24: 61 + 25: 63 + 26: 6f + 27: 6e + 28: 6e + 29: 65 + 30: 63 + 31: 74 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 63 + 45: 61 + 46: 6e + 47: 6f + 48: 6e + 49: 2d + 50: 61 + 51: 30 + 52: 31 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 +event 24: EOS prop d059 info record, datasize is 12 +event 24: Unknown EOS property d059, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 25: EOS prop d101 info record, datasize is 4 +event 25: currentvalue of d101 is 0 +event 26: EOS prop d102 info record, datasize is 4 +event 26: currentvalue of d102 is 0 +event 27: EOS prop d103 info record, datasize is 4 +event 27: currentvalue of d103 is 0 +event 28: EOS prop d104 info record, datasize is 4 +event 28: currentvalue of d104 is e8 +event 29: EOS prop d105 info record, datasize is 4 +event 29: currentvalue of d105 is 0 +event 30: EOS prop d106 info record, datasize is 4 +event 30: currentvalue of d106 is 0 +event 31: EOS prop d107 info record, datasize is 4 +event 31: currentvalue of d107 is 3 +event 32: EOS prop d108 info record, datasize is 4 +event 32: currentvalue of d108 is 0 +event 33: EOS prop d109 info record, datasize is 4 +event 33: currentvalue of d109 is 0 +event 34: EOS prop d1c9 info record, datasize is 4 +event 34: currentvalue of d1c9 is 1 +event 35: EOS prop d163 info record, datasize is 44 +event 35: Unknown EOS property d163, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 36: EOS prop d164 info record, datasize is 44 +event 36: Unknown EOS property d164, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 37: EOS prop d165 info record, datasize is 44 +event 37: Unknown EOS property d165, datasize is 44 + 0: 2c + 1: 00 + 2: 00 + 3: 00 + 4: 01 + 5: 00 + 6: 00 + 7: 00 + 8: 87 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 03 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 + 24: 00 + 25: 00 + 26: 00 + 27: 00 + 28: 00 + 29: 00 + 30: 00 + 31: 00 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 04 + 37: 00 + 38: 00 + 39: 00 + 40: 04 + 41: 00 + 42: 00 + 43: 00 +event 38: EOS prop d111 desc record, datasize 0, propxtype 0 +event 38: propxtype is 0 for d111, unhandled, size 20 +event 39: EOS prop d112 desc record, datasize 0, propxtype 0 +event 39: propxtype is 0 for d112, unhandled, size 20 +event 40: EOS prop d116 desc record, datasize 0, propxtype 0 +event 40: propxtype is 0 for d116, unhandled, size 20 +event 41: EOS prop d11e desc record, datasize 0, propxtype 0 +event 41: propxtype is 0 for d11e, unhandled, size 20 +event 42: EOS prop d120 desc record, datasize 0, propxtype 0 +event 42: propxtype is 0 for d120, unhandled, size 20 +event 43: EOS prop d125 desc record, datasize 0, propxtype 0 +event 43: propxtype is 0 for d125, unhandled, size 20 +event 44: EOS prop d138 desc record, datasize 0, propxtype 0 +event 44: propxtype is 0 for d138, unhandled, size 20 +event 45: EOS prop d177 desc record, datasize 0, propxtype 0 +event 45: propdesc d177, default value not found. +event 46: EOS prop d17c desc record, datasize 0, propxtype 0 +event 46: propxtype is 0 for d17c, unhandled, size 20 +event 47: EOS prop d194 desc record, datasize 0, propxtype 0 +event 47: propxtype is 0 for d194, unhandled, size 20 +event 48: EOS prop d1b0 desc record, datasize 8, propxtype 3 +event 48: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +event 48: suppval[0] of d1b0 is 0x0. +event 48: suppval[1] of d1b0 is 0x8. +event 49: EOS prop d1b1 desc record, datasize 0, propxtype 0 +event 49: propxtype is 0 for d1b1, unhandled, size 20 +event 50: EOS prop d101 desc record, datasize 64, propxtype 3 +event 50: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 16. +event 50: suppval[0] of d101 is 0x18. +event 50: suppval[1] of d101 is 0x1b. +event 50: suppval[2] of d101 is 0x1d. +event 50: suppval[3] of d101 is 0x20. +event 50: suppval[4] of d101 is 0x23. +event 50: suppval[5] of d101 is 0x25. +event 50: suppval[6] of d101 is 0x28. +event 50: suppval[7] of d101 is 0x2b. +event 50: suppval[8] of d101 is 0x2d. +event 50: suppval[9] of d101 is 0x30. +event 50: suppval[10] of d101 is 0x33. +event 50: suppval[11] of d101 is 0x35. +event 50: suppval[12] of d101 is 0x38. +event 50: suppval[13] of d101 is 0x3b. +event 50: suppval[14] of d101 is 0x3d. +event 50: suppval[15] of d101 is 0x40. +event 51: EOS prop d102 desc record, datasize 0, propxtype 3 +event 52: EOS prop d103 desc record, datasize 88, propxtype 3 +event 52: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 22. +event 52: suppval[0] of d103 is 0x0. +event 52: suppval[1] of d103 is 0x4b. +event 52: suppval[2] of d103 is 0x4d. +event 52: suppval[3] of d103 is 0x50. +event 52: suppval[4] of d103 is 0x53. +event 52: suppval[5] of d103 is 0x55. +event 52: suppval[6] of d103 is 0x58. +event 52: suppval[7] of d103 is 0x5b. +event 52: suppval[8] of d103 is 0x5d. +event 52: suppval[9] of d103 is 0x60. +event 52: suppval[10] of d103 is 0x63. +event 52: suppval[11] of d103 is 0x65. +event 52: suppval[12] of d103 is 0x68. +event 52: suppval[13] of d103 is 0x6b. +event 52: suppval[14] of d103 is 0x6d. +event 52: suppval[15] of d103 is 0x70. +event 52: suppval[16] of d103 is 0x73. +event 52: suppval[17] of d103 is 0x75. +event 52: suppval[18] of d103 is 0x78. +event 52: suppval[19] of d103 is 0x7b. +event 52: suppval[20] of d103 is 0x7d. +event 52: suppval[21] of d103 is 0x80. +event 53: EOS prop d104 desc record, datasize 76, propxtype 3 +event 53: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +event 53: suppval[0] of d104 is 0xe8. +event 53: suppval[1] of d104 is 0xeb. +event 53: suppval[2] of d104 is 0xed. +event 53: suppval[3] of d104 is 0xf0. +event 53: suppval[4] of d104 is 0xf3. +event 53: suppval[5] of d104 is 0xf5. +event 53: suppval[6] of d104 is 0xf8. +event 53: suppval[7] of d104 is 0xfb. +event 53: suppval[8] of d104 is 0xfd. +event 53: suppval[9] of d104 is 0x0. +event 53: suppval[10] of d104 is 0x3. +event 53: suppval[11] of d104 is 0x5. +event 53: suppval[12] of d104 is 0x8. +event 53: suppval[13] of d104 is 0xb. +event 53: suppval[14] of d104 is 0xd. +event 53: suppval[15] of d104 is 0x10. +event 53: suppval[16] of d104 is 0x13. +event 53: suppval[17] of d104 is 0x15. +event 53: suppval[18] of d104 is 0x18. +event 54: EOS prop d105 desc record, datasize 0, propxtype 0 +event 54: propxtype is 0 for d105, unhandled, size 20 +event 55: EOS prop d107 desc record, datasize 0, propxtype 0 +event 55: propxtype is 0 for d107, unhandled, size 20 +event 56: EOS prop d108 desc record, datasize 0, propxtype 0 +event 56: propxtype is 0 for d108, unhandled, size 20 +event 57: EOS prop d11b desc record, datasize 0, propxtype 0 +event 57: propdesc d11b, default value not found. +event 58: EOS prop d1c9 desc record, datasize 0, propxtype 0 +event 58: propxtype is 0 for d1c9, unhandled, size 20 +event 59: EOS prop d163 desc record, datasize 0, propxtype 0 +event 59: propxtype is 0 for d163, unhandled, size 20 +event 60: EOS prop d164 desc record, datasize 0, propxtype 0 +event 60: propxtype is 0 for d164, unhandled, size 20 +event 61: EOS prop d165 desc record, datasize 0, propxtype 0 +event 61: propxtype is 0 for d165, unhandled, size 20 +event 62: unhandled EOS event CTGInfoCheckComplete (size 12) + 8: 01 + 9: 00 + 10: 01 + 11: 00 + +Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) data... +Reading 1024 = 0x400 bytes from port... +Read 260 = 0x104 out of 1024 bytes from port: (hexdump of 260 bytes) +0000 04 01 00 00 02 00 16 91-11 00 00 00 2c 00 00 00 ............,... +0010 89 c1 00 00 15 d1 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-4c 00 00 00 89 c1 00 00 ........L....... +0040 d0 d1 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0080 00 00 00 00 4c 00 00 00-89 c1 00 00 d1 d1 00 00 ....L........... +0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00d0 2c 00 00 00 89 c1 00 00-af d1 00 00 34 39 34 30 ,...........4940 +00e0 35 31 30 30 31 32 36 33-00 00 00 00 00 00 00 00 51001263........ +00f0 00 00 00 00 00 00 00 00-00 00 00 00 08 00 00 00 ................ +0100 00 00 00 00 - .... + +event 0: EOS prop d115 info record, datasize is 32 +event 0: currentvalue of d115 is +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is +event 3: EOS prop d1af info record, datasize is 32 +event 3: currentvalue of d1af is 494051001263 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s110.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s110.txt new file mode 100644 index 00000000..150923ab --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s110.txt @@ -0,0 +1,163 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot S110 + device version: 1-13.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9063 + 0x9064 + 0x9065 + 0x9066 + 0x9067 + 0x9068 + 0x9069 + 0x906a + 0x906b + 0x906c + 0x906d + 0x906e + 0x906f + 0x9033 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd053 + 0xd054 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot S110 + Version: 1-13.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + Canon Wifi support + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1353082976 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 53870592 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot S110' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777472 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053:(readwrite) (type=0x4002) a[0] +Property 0xd054:(readwrite) (type=0x4002) a[0] +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot S110' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s400.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s400.txt new file mode 100644 index 00000000..a5ea9d55 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s400.txt @@ -0,0 +1,240 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot S400 + device version: 01.0001 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9006 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9013 + 0x9014 + 0x9015 + 0x9018 + 0x9019 + 0x901a + 0x901b + 0x901c + 0x901d + 0x901e + 0x901f + 0x9020 + 0x9021 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc006 + 0xc007 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d +Device Properties Supported: + 0xd001 + 0xd002 + 0xd003 + 0xd005 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b + 0xd00c + 0xd00e + 0xd00f + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd015 + 0xd017 + 0xd018 + 0xd019 + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02a + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd037 + 0xd038 + 0xd039 + 0xd03a + 0xd03b + 0xd03c + 0xd03d + 0xd03e + 0xd03f + 0xd040 + 0xd041 + 0xd043 + 0xd044 + 0xd045 + 0xd046 + 0xd047 + 0xd048 + 0xd049 +Camera summary: + +Manufacturer: Canon Inc. +Model: Canon PowerShot S400 + Version: 01.0001 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, JPEG, MS AVI, MS Wave, CRW, Script + +Device Capabilities: +File Download, File Deletion, File Upload +Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_80000001: +StorageDescription: None +VolumeLabel: V +Storage Type: Builtin RAM +Filesystemtype: Unknown: 0x8001 + +Access Capability: Read-Write +Maximum Capability: 0 (0 MB) +Free Space (Bytes): 0 (0 MB) +Free Space (Images): -1 + +Device Property Summary: +Beep Mode(0xd001):(readwrite) (type=0x2) Enumeration [0,1] value: Off (1) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Lithium Ion (2) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +Camera Mode(0xd005):(read only) (type=0x2) 32 +Image Quality(0xd006):(readwrite) (type=0x2) Enumeration [2,3,5] value: Fine (3) +Full View File Format(0xd007):(readwrite) (type=0x2) Enumeration [1] value: JPEG (1) +Image Size(0xd008):(readwrite) (type=0x2) Enumeration [0,1,3,2] value: Large (0) +Self Time(0xd009):(read only) (type=0x4) 10 seconds (100) +Flash Mode(0xd00a):(readwrite) (type=0x2) Enumeration [0,1,2,4,5] value: Auto + Red Eye Suppression (5) +Beep(0xd00b):(read only) (type=0x2) Off (0) +Shooting Mode(0xd00c):(readwrite) (type=0x2) Enumeration [1] value: P (1) +Drive Mode(0xd00e):(read only) (type=0x2) Single-Frame Shooting (0) +Zoom(0xd00f):(read only) (type=0x2) Off (0) +Metering Mode(0xd010):(readwrite) (type=0x2) Enumeration [0,1,3] value: Evaluative Metering (3) +AF Distance(0xd011):(readwrite) (type=0x2) Enumeration [1,3,7] value: Auto (1) +Focusing Point(0xd012):(readwrite) (type=0x4) Enumeration [12291,12289] value: Multiple Focusing Points, Auto (12289) +White Balance(0xd013):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,7,6] value: Auto (0) +AF Mode(0xd015):(read only) (type=0x2) Single Shot (0) +Contrast(0xd017):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +Color Gain(0xd018):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +Sharpness(0xd019):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +ISO Speed(0xd01c):(readwrite) (type=0x4) Enumeration [64,72,80,88,0] value: 50 (64) +Aperture(0xd01d):(readwrite) (type=0x4) Enumeration [] value: 32 +Shutter Speed(0xd01e):(readwrite) (type=0x4) Enumeration [] value: 112 +Exposure Compensation(0xd01f):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Av Open(0xd023):(read only) (type=0x4) 32 +Av Max(0xd024):(read only) (type=0x4) 53 +Focal Length(0xd025):(read only) (type=0x4) 237 +Focal Length Tele(0xd026):(read only) (type=0x4) 711 +Focal Length Wide(0xd027):(read only) (type=0x4) 237 +Focal Length Denominator(0xd028):(read only) (type=0x4) 32 +Capture Transfer Mode(0xd029):(readwrite) (type=0x4) Enumeration [1,2,3] value: 3 +Zoom(0xd02a):(readwrite) (type=0x4) Range [0 - 11, step 1] value: 0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ +a[6] 1704,2272,1,0,0,0, +a[6] 1704,2272,6,0,0,0, +a[6] 1704,2272,11,0,0,0, +a[6] 1200,1600,2,0,0,0, +a[6] 1200,1600,7,0,0,0, +a[6] 1200,1600,12,0,0,0, +a[6] 768,1024,3,0,0,0, +a[6] 768,1024,8,0,0,0, +a[6] 768,1024,13,0,0,0, +a[6] 480,640,5,0,0,0, +a[6] 480,640,10,0,0,0, +a[6] 480,640,15,0,0,0 +] value: a[6] 1704,2272,6,0,0,0 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) Enumeration [ +a[4] 119,0,159,0 +] value: a[4] 119,0,159,0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 20480 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 5120 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Firmware Version(0xd031):(read only) (type=0x6) 33554432 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot S400' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +UNIX Time(0xd034):(readwrite) (type=0x6) 1308397101 +Disp Av(0xd037):(read only) (type=0x4) 0 +Av Open Apex(0xd038):(read only) (type=0x3) 32 +Digital Zoom Magnification(0xd039):(read only) (type=0x4) 2272 +Ml Spot Position(0xd03a):(read only) (type=0x4) MlSpotPosCenter (0) +Disp Av Max(0xd03b):(read only) (type=0x4) 0 +Av Max Apex(0xd03c):(read only) (type=0x4) 53 +EZoom Start Position(0xd03d):(read only) (type=0x4) 7 +Focal Length Tele(0xd03e):(read only) (type=0x4) 711 +EZoom Size of Tele(0xd03f):(read only) (type=0x4) 640 +Photo Effect(0xd040):(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5] value: Off (0) +Assist Light(0xd041):(readwrite) (type=0x4) Enumeration [0,1] value: On (1) +Rotation Angle(0xd043):(read only) (type=0x4) 0' (0) +Rotation Scene(0xd044):(readwrite) (type=0x4) Enumeration [0,1] value: Off (1) +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +Average Filesizes(0xd048):(read only) (type=0x4006) a[16] 2050048,1026048,583680,0,254976,1142784,571392,327680,0,153600,569344,284672,174080,0,86016,3469312 +Model ID(0xd049):(read only) (type=0x6) 19333120 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s410.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s410.txt new file mode 100644 index 00000000..9b54f604 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s410.txt @@ -0,0 +1,146 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot S410 + device version: 1-1.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9006 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9013 + 0x9014 + 0x9015 + 0x9018 + 0x9019 + 0x901a + 0x901b + 0x901c + 0x901d + 0x901e + 0x901f + 0x9020 + 0x9021 + 0x9022 + 0x9023 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc006 + 0xc007 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00f +Device Properties Supported: + 0xd001 + 0xd002 + 0xd003 + 0xd005 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b + 0xd00c + 0xd00e + 0xd00f + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd015 + 0xd017 + 0xd018 + 0xd019 + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02a + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd037 + 0xd038 + 0xd039 + 0xd03a + 0xd03b + 0xd03c + 0xd03d + 0xd03e + 0xd03f + 0xd040 + 0xd041 + 0xd043 + 0xd044 + 0xd045 + 0xd046 + 0xd047 + 0xd048 + 0xd049 + 0xd04b diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s45.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s45.txt new file mode 100644 index 00000000..c1d9d1bc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s45.txt @@ -0,0 +1,53 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot S45 + device version: 01.0001 + serial number: '(null)' +Vendor extension ID: 0x00000000 +Vendor extension version: 0 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b +Events Supported: + 0x4001 + 0x4002 + 0x4003 +Device Properties Supported: + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot S45 + Version: 01.0001 + +Capture Formats: +Display Formats: Association/Directory, JPEG, MS AVI, MS Wave, Unknown(b101) + +Device Capabilities: + File Download, File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 510402560 (486 MB) + Free Space (Bytes): 463667200 (442 MB) + Free Space (Images): -1 + +Device Property Summary: + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s500.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s500.txt new file mode 100644 index 00000000..a85a5865 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s500.txt @@ -0,0 +1,537 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot S500 + device version: 1-1.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9006 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9013 + 0x9014 + 0x9015 + 0x9018 + 0x9019 + 0x901a + 0x901b + 0x901c + 0x901d + 0x901e + 0x901f + 0x9020 + 0x9021 + 0x9022 + 0x9023 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc006 + 0xc007 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00f +Device Properties Supported: + 0xd001 + 0xd002 + 0xd003 + 0xd005 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b + 0xd00c + 0xd00e + 0xd00f + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd015 + 0xd017 + 0xd018 + 0xd019 + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02a + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd037 + 0xd038 + 0xd039 + 0xd03a + 0xd03b + 0xd03c + 0xd03d + 0xd03e + 0xd03f + 0xd040 + 0xd041 + 0xd043 + 0xd044 + 0xd045 + 0xd046 + 0xd047 + 0xd048 + 0xd049 + 0xd04b + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot S500 + Version: 1-1.0.0.0 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, JPEG, MS AVI, MS Wave, CRW, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Beep Mode(0xd001):(readwrite) (type=0x2) Enumeration [0,1] value: On (0) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: AC (1) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +Camera Mode(0xd005):(read only) (type=0x2) 32 +Image Quality(0xd006):(readwrite) (type=0x2) Enumeration [2,3,5] value: Fine (3) +Full View File Format(0xd007):(readwrite) (type=0x2) Enumeration [1] value: JPEG (1) +Image Size(0xd008):(readwrite) (type=0x2) Enumeration [0,1,3,2] value: Large (0) +Self Time(0xd009):(read only) (type=0x4) 10 seconds (100) +Flash Mode(0xd00a):(readwrite) (type=0x2) Enumeration [0,1,2,5,4] value: Auto + Red Eye Suppression (5) +Beep(0xd00b):(readwrite) (type=0x2) Enumeration [0,1] value: On (1) +Shooting Mode(0xd00c):(readwrite) (type=0x2) Enumeration [1] value: P (1) +Drive Mode(0xd00e):(read only) (type=0x2) Single-Frame Shooting (0) +Zoom(0xd00f):(read only) (type=0x2) Off (0) +Metering Mode(0xd010):(readwrite) (type=0x2) Enumeration [0,1,3] value: Evaluative Metering (3) +AF Distance(0xd011):(readwrite) (type=0x2) Enumeration [1,3,7] value: Auto (1) +Focusing Point(0xd012):(readwrite) (type=0x4) Enumeration [12291,12289] value: Multiple Focusing Points, Auto (12289) +White Balance(0xd013):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,7,6] value: Auto (0) +AF Mode(0xd015):(read only) (type=0x2) Single Shot (0) +Contrast(0xd017):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +Color Gain(0xd018):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +Sharpness(0xd019):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +ISO Speed(0xd01c):(readwrite) (type=0x4) Enumeration [64,72,80,88,0] value: 50 (64) +Aperture(0xd01d):(readwrite) (type=0x4) Enumeration [] value: 32 +Shutter Speed(0xd01e):(readwrite) (type=0x4) Enumeration [] value: 112 +Exposure Compensation(0xd01f):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Av Open(0xd023):(read only) (type=0x4) 32 +Av Max(0xd024):(read only) (type=0x4) 53 +Focal Length(0xd025):(read only) (type=0x4) 237 +Focal Length Tele(0xd026):(read only) (type=0x4) 711 +Focal Length Wide(0xd027):(read only) (type=0x4) 237 +Focal Length Denominator(0xd028):(read only) (type=0x4) 32 +Capture Transfer Mode(0xd029):(readwrite) (type=0x4) Enumeration [1,2,3] value: 3 +Zoom(0xd02a):(readwrite) (type=0x4) Range [0 - 12, step 1] value: 0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 1944,2592,1,0,0,0, + a[6] 1944,2592,6,0,0,0, + a[6] 1944,2592,11,0,0,0, + a[6] 1200,1600,2,0,0,0, + a[6] 1200,1600,7,0,0,0, + a[6] 1200,1600,12,0,0,0, + a[6] 768,1024,3,0,0,0, + a[6] 768,1024,8,0,0,0, + a[6] 768,1024,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 1944,2592,6,0,0,0 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) Enumeration [ + a[4] 119,0,159,0 + ] value: a[4] 119,0,159,0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 20480 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 5120 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot S500' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +UNIX Time(0xd034):(readwrite) (type=0x6) 1234210735 +Disp Av(0xd037):(read only) (type=0x4) 0 +Av Open Apex(0xd038):(read only) (type=0x3) 32 +Digital Zoom Magnification(0xd039):(read only) (type=0x4) 2592 +Ml Spot Position(0xd03a):(read only) (type=0x4) MlSpotPosCenter (0) +Disp Av Max(0xd03b):(read only) (type=0x4) 0 +Av Max Apex(0xd03c):(read only) (type=0x4) 53 +EZoom Start Position(0xd03d):(read only) (type=0x4) 7 +Focal Length Tele(0xd03e):(read only) (type=0x4) 711 +EZoom Size of Tele(0xd03f):(read only) (type=0x4) 640 +Photo Effect(0xd040):(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5] value: Off (0) +Assist Light(0xd041):(readwrite) (type=0x4) Enumeration [1,0] value: On (1) +Rotation Angle(0xd043):(read only) (type=0x4) 0' (0) +Rotation Scene(0xd044):(readwrite) (type=0x4) Enumeration [0,1] value: On (0) +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +Average Filesizes(0xd048):(read only) (type=0x4006) a[19] 2563072,1640448,1026048,0,254976,1428480,914432,571392,0,153600,711680,455680,284672,0,86016,4405248,0,0,0 +Model ID(0xd049):(read only) (type=0x6) 21037056 +Property 0xd04b:(read only) (type=0x2) 0 + +/main/settings/owner + Label: Camera Owner + Type: TEXT + Current: +/main/settings/model + Label: Camera Model + Type: TEXT + Current: Canon PowerShot S500 +/main/settings/firmwareversion + Label: Firmware Version + Type: TEXT + Current: 1.0.0.0 +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1234210750 + Printable: Mon Feb 9 21:19:10 2009 +/main/settings/synctime + Label: Set camera time to PC time + Type: TOGGLE + Current: 0 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/imgsettings/canonimgquality + Label: Canon Image Quality + Type: RADIO + Current: fine + Choice: 0 normal + Choice: 1 fine + Choice: 2 superfine +/main/imgsettings/canonimgformat + Label: Canon Image Format + Type: RADIO + Current: JPEG + Choice: 0 JPEG +/main/imgsettings/canonimgsize + Label: Canon Image Size + Type: RADIO + Current: large + Choice: 0 large + Choice: 1 medium 1 + Choice: 2 medium 2 + Choice: 3 small +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 50 + Choice: 0 50 + Choice: 1 100 + Choice: 2 200 + Choice: 3 400 + Choice: 4 Auto +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Cloudy + Choice: 3 Tungsten + Choice: 4 Fluorescent + Choice: 5 Fluorescent H + Choice: 6 Custom +/main/imgsettings/photoeffect + Label: Photo Effect + Type: RADIO + Current: Off + Choice: 0 Off + Choice: 1 Vivid + Choice: 2 Neutral + Choice: 3 Low sharpening + Choice: 4 Sepia + Choice: 5 Black & white +/main/capturesettings/zoom + Label: Zoom + Type: RANGE + Current: 0 + Bottom: 0 + Top: 12 + Step: 1 +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autorotation + Label: Rotation Flag + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 +2 + Choice: 1 +1 2/3 + Choice: 2 +1 1/3 + Choice: 3 +1 + Choice: 4 +2/3 + Choice: 5 +1/3 + Choice: 6 0 + Choice: 7 -1/3 + Choice: 8 -2/3 + Choice: 9 -1 + Choice: 10 -1 1/3 + Choice: 11 -1 2/3 + Choice: 12 -2 +/main/capturesettings/canonflashmode + Label: Flash Mode + Type: RADIO + Current: auto + red eye suppression + Choice: 0 off + Choice: 1 auto + Choice: 2 on + Choice: 3 auto + red eye suppression + Choice: 4 fill in +/main/capturesettings/shootingmode + Label: Canon Shooting Mode + Type: RADIO + Current: Auto + Choice: 0 Auto +/main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 2.8 + Choice: 0 auto + Choice: 1 1.0 + Choice: 2 1.1 + Choice: 3 1.2 + Choice: 4 1.2 (1/3) + Choice: 5 1.4 + Choice: 6 1.6 + Choice: 7 1.8 + Choice: 8 1.8 (1/3) + Choice: 9 2.0 + Choice: 10 2.2 + Choice: 11 2.5 + Choice: 12 2.5 (1/3) + Choice: 13 2.8 + Choice: 14 3.2 + Choice: 15 3.5 + Choice: 16 3.5 (1/3) + Choice: 17 4.0 + Choice: 18 4.5 (1/3) + Choice: 19 4.5 + Choice: 20 5.6 (1/3) + Choice: 21 5.6 + Choice: 22 6.3 + Choice: 23 7.1 + Choice: 24 8.0 + Choice: 25 9.0 + Choice: 26 9.5 + Choice: 27 10 + Choice: 28 11 + Choice: 29 13 (1/3) + Choice: 30 13 + Choice: 31 14 + Choice: 32 16 + Choice: 33 18 + Choice: 34 19 + Choice: 35 20 + Choice: 36 22 + Choice: 37 25 + Choice: 38 27 + Choice: 39 29 + Choice: 40 32 + Choice: 41 36 + Choice: 42 38 + Choice: 43 40 + Choice: 44 45 + Choice: 45 51 + Choice: 46 54 + Choice: 47 57 + Choice: 48 64 + Choice: 49 72 + Choice: 50 76 + Choice: 51 81 + Choice: 52 91 +/main/capturesettings/focusingpoint + Label: Focusing Point + Type: RADIO + Current: Multiple Focusing Points, Auto + Choice: 0 Multiple Focusing Points (Center) + Choice: 1 Multiple Focusing Points, Auto +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 1/125 + Choice: 0 auto + Choice: 1 bulb + Choice: 2 30" + Choice: 3 25" + Choice: 4 20" (1/3) + Choice: 5 20" + Choice: 6 15" + Choice: 7 13" + Choice: 8 10" + Choice: 9 10" (1/3) + Choice: 10 8" + Choice: 11 6" (1/3) + Choice: 12 6" + Choice: 13 5" + Choice: 14 4" + Choice: 15 3"2 + Choice: 16 3" + Choice: 17 2"5 + Choice: 18 2" + Choice: 19 1"6 + Choice: 20 1"5 + Choice: 21 1"3 + Choice: 22 1" + Choice: 23 0"8 + Choice: 24 0"7 + Choice: 25 0"6 + Choice: 26 0"5 + Choice: 27 0"4 + Choice: 28 0"3 + Choice: 29 0"3 (1/3) + Choice: 30 1/4 + Choice: 31 1/5 + Choice: 32 1/6 + Choice: 33 1/6 (1/3) + Choice: 34 1/8 + Choice: 35 1/10 (1/3) + Choice: 36 1/10 + Choice: 37 1/13 + Choice: 38 1/15 + Choice: 39 1/20 (1/3) + Choice: 40 1/20 + Choice: 41 1/25 + Choice: 42 1/30 + Choice: 43 1/40 + Choice: 44 1/45 + Choice: 45 1/50 + Choice: 46 1/60 + Choice: 47 1/80 + Choice: 48 1/90 + Choice: 49 1/100 + Choice: 50 1/125 + Choice: 51 1/160 + Choice: 52 1/180 + Choice: 53 1/200 + Choice: 54 1/250 + Choice: 55 1/320 + Choice: 56 1/350 + Choice: 57 1/400 + Choice: 58 1/500 + Choice: 59 1/640 + Choice: 60 1/750 + Choice: 61 1/800 + Choice: 62 1/1000 + Choice: 63 1/1250 + Choice: 64 1/1500 + Choice: 65 1/1600 + Choice: 66 1/2000 + Choice: 67 1/2500 + Choice: 68 1/3000 + Choice: 69 1/3200 + Choice: 70 1/4000 +/main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 center-weighted + Choice: 1 spot + Choice: 2 evaluative +/main/capturesettings/afdistance + Label: AF Distance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Zone Focus (Close-up) + Choice: 2 Zone Focus (Far) +/main/capturesettings/focuslock + Label: Focus Lock + Type: TOGGLE + Current: 2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s60.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s60.txt new file mode 100644 index 00000000..1d3f45ae --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s60.txt @@ -0,0 +1,324 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot S60 + device version: 1-1.0.0.0 +Vendor extension ID: 0x0b +Vendor extension version: 1.0 +Functional Mode: 0 +PTP Standard Version: 1.0 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9006 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9013 + 0x9014 + 0x9015 + 0x9018 + 0x9019 + 0x901a + 0x901b + 0x901c + 0x901d + 0x901e + 0x901f + 0x9020 + 0x9021 + 0x9022 + 0x9023 + 0x9024 + 0x9025 + 0x9026 + 0x9027 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00f +Device Properties Supported: + 0xd001 + 0xd002 + 0xd003 + 0xd005 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b + 0xd00c + 0xd00e + 0xd00f + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd015 + 0xd017 + 0xd018 + 0xd019 + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd020 + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02a + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd036 + 0xd037 + 0xd038 + 0xd039 + 0xd03a + 0xd03b + 0xd03c + 0xd03d + 0xd03e + 0xd03f + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd046 + 0xd047 + 0xd048 + 0xd049 + 0xd04b + + +Capture --summary: + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot S60 + Version: 1-1.0.0.0 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG CRW +Display Formats: Association/Directory, JPEG, MS AVI, MS Wave, CRW, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Beep Mode(0xd001):(readwrite) (type=0x2) Enumeration [0,1] value: On (0) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Lithium Ion (2) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +Camera Mode(0xd005):(read only) (type=0x2) 32 +Image Quality(0xd006):(readwrite) (type=0x2) Enumeration [2,3,5] value: Fine (3) +Full View File Format(0xd007):(readwrite) (type=0x2) Enumeration [1,2] value: JPEG (1) +Image Size(0xd008):(readwrite) (type=0x2) Enumeration [0,1,3,2] value: Large (0) +Self Time(0xd009):(read only) (type=0x4) 10 seconds (100) +Flash Mode(0xd00a):(readwrite) (type=0x2) Enumeration [0,1,2,5,6] value: Off (0) +Beep(0xd00b):(readwrite) (type=0x2) Enumeration [0,1] value: On (1) +Shooting Mode(0xd00c):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: P (1) +Drive Mode(0xd00e):(read only) (type=0x2) Single-Frame Shooting (0) +Zoom(0xd00f):(read only) (type=0x2) Off (0) +Metering Mode(0xd010):(readwrite) (type=0x2) Enumeration [0,1,3] value: Evaluative Metering (3) +AF Distance(0xd011):(readwrite) (type=0x2) Enumeration [1,3] value: Auto (1) +Focusing Point(0xd012):(readwrite) (type=0x4) Enumeration [12291,12289] value: Multiple Focusing Points (Center) (12291) +White Balance(0xd013):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,7,5,6] value: Auto (0) +AF Mode(0xd015):(read only) (type=0x2) Single Shot (0) +Contrast(0xd017):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +Color Gain(0xd018):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +Sharpness(0xd019):(readwrite) (type=0x1) Enumeration [0] value: Standard (0) +ISO Speed(0xd01c):(readwrite) (type=0x4) Enumeration [64,72,80,88,0] value: 50 (64) +Aperture(0xd01d):(readwrite) (type=0x4) Enumeration [] value: 40 +Shutter Speed(0xd01e):(readwrite) (type=0x4) Enumeration [] value: 112 +Exposure Compensation(0xd01f):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Flash Compensation(0xd020):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Av Open(0xd023):(read only) (type=0x4) 32 +Av Max(0xd024):(read only) (type=0x4) 56 +Focal Length(0xd025):(read only) (type=0x4) 186 +Focal Length Tele(0xd026):(read only) (type=0x4) 662 +Focal Length Wide(0xd027):(read only) (type=0x4) 186 +Focal Length Denominator(0xd028):(read only) (type=0x4) 32 +Capture Transfer Mode(0xd029):(readwrite) (type=0x4) Enumeration [1,2,3] value: 13 +Zoom(0xd02a):(readwrite) (type=0x4) Range [0 - 14, step 1] value: 0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 1944,2592,1,0,0,0, + a[6] 1944,2592,6,0,0,0, + a[6] 1944,2592,11,0,0,0, + a[6] 1536,2048,2,0,0,0, + a[6] 1536,2048,7,0,0,0, + a[6] 1536,2048,12,0,0,0, + a[6] 1200,1600,3,0,0,0, + a[6] 1200,1600,8,0,0,0, + a[6] 1200,1600,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0, + a[6] 1944,2592,16,0,0,0 + ] value: a[6] 1944,2592,6,0,0,0 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) Enumeration [ + a[4] 119,0,159,0 + ] value: a[4] 119,0,159,0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 20480 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 5120 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot S60' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +UNIX Time(0xd034):(readwrite) (type=0x6) 315532843 +Camera Output(0xd036):(readwrite) (type=0x2) Enumeration [1,2,3] value: Off (3) +Disp Av(0xd037):(read only) (type=0x4) 0 +Av Open Apex(0xd038):(read only) (type=0x3) 32 +Digital Zoom Magnification(0xd039):(read only) (type=0x4) 2592 +Ml Spot Position(0xd03a):(read only) (type=0x4) MlSpotPosCenter (0) +Disp Av Max(0xd03b):(read only) (type=0x4) 0 +Av Max Apex(0xd03c):(read only) (type=0x4) 56 +EZoom Start Position(0xd03d):(read only) (type=0x4) 9 +Focal Length Tele(0xd03e):(read only) (type=0x4) 662 +EZoom Size of Tele(0xd03f):(read only) (type=0x4) 640 +Photo Effect(0xd040):(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5] value: Off (0) +Assist Light(0xd041):(readwrite) (type=0x4) Enumeration [1,0] value: On (1) +Flash Quantity Count(0xd042):(readwrite) (type=0x4) Enumeration [] value: 65535 +Rotation Angle(0xd043):(read only) (type=0x4) 0' (0) +Rotation Scene(0xd044):(readwrite) (type=0x4) Enumeration [0,1] value: On (0) +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +Average Filesizes(0xd048):(read only) (type=0x4006) a[19] 2563072,1640448,1026048,0,254976,1428480,914432,571392,0,153600,711680,455680,284672,0,86016,4405248,0,0,0 +Model ID(0xd049):(read only) (type=0x6) 20512768 +Property 0xd04b:(read only) (type=0x2) 0 + +========================================================================================= + +Non-Capture --summary: + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot S60 + Version: 1-1.0.0.0 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG CRW +Display Formats: Association/Directory, JPEG, MS AVI, MS Wave, CRW, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Beep Mode(0xd001):(readwrite) (type=0x2) Enumeration [0,1] value: On (0) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Lithium Ion (2) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 1944,2592,1,0,0,0, + a[6] 1944,2592,6,0,0,0, + a[6] 1944,2592,11,0,0,0, + a[6] 1536,2048,2,0,0,0, + a[6] 1536,2048,7,0,0,0, + a[6] 1536,2048,12,0,0,0, + a[6] 1200,1600,3,0,0,0, + a[6] 1200,1600,8,0,0,0, + a[6] 1200,1600,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0, + a[6] 1944,2592,16,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) Enumeration [ + a[4] 119,0,159,0 + ] value: a[4] 119,0,159,0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 20480 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 5120 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot S60' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +UNIX Time(0xd034):(readwrite) (type=0x6) 315532813 +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 1 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +Average Filesizes(0xd048):(read only) (type=0x4006) a[19] 2563072,1640448,1026048,0,254976,1428480,914432,571392,0,153600,711680,455680,284672,0,86016,4405248,0,0,0 +Model ID(0xd049):(read only) (type=0x6) 20512768 +Property 0xd04b:(read only) (type=0x2) 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s80.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s80.txt new file mode 100644 index 00000000..92d7082b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s80.txt @@ -0,0 +1,69 @@ +Camera summary: +Model: Canon PowerShot S80 + device version: 1-2.2.1.0 + serial number: (null) +Vendor extension ID: 0x0000000b +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Script, DPOF, MS AVI, MS Wave, JPEG, Unknown(b101) + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: A + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 31080448 (29 MB) + Free Space (Bytes): 29392896 (28 MB) + Free Space (Images): -1 +store_80000001: + StorageDescription: None + VolumeLabel: V + Storage Type: Builtin RAM + Filesystemtype: Unknown: 0x8001 + + Access Capability: Read-Write + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) (type=0x6) 524288 +Property 0xd02f:(read only) (type=0x6) 262144 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Viewfinder Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +UNIX Time(0xd034):(readwrite) (type=0x6) 1140509806 +Property 0xd047:(read only) (type=0x4) 2 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd02d:(read only) (type=0x4006) a[4] 119,0,159,0 +Property 0xd048:(read only) (type=0x4006) a[19] 3518464,2563072,1640448,0,254976,2109440,1428480,914432,0,153600,1003520,711680,455680,0,86016,0,1026048,571392,284672 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2448,3264,1,0,0,0, + a[6] 2448,3264,6,0,0,0, + a[6] 2448,3264,11,0,0,0, + a[6] 1944,2592,2,0,0,0, + a[6] 1944,2592,7,0,0,0, + a[6] 1944,2592,12,0,0,0, + a[6] 1536,2048,3,0,0,0, + a[6] 1536,2048,8,0,0,0, + a[6] 1536,2048,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd049:(read only) (type=0x6) 24510464 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot S80' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[1] 0 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s90.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s90.txt new file mode 100644 index 00000000..df32b5c0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-s90.txt @@ -0,0 +1,196 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot S90 + Version: 1-7.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b104), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1975287808 (1883 MB) + Free Space (Bytes): 1899888640 (1811 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Warning Level 0 (4) +UNIX Time(0xd034):(readwrite) (type=0x6) 1270736143 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2736,3648,1,0,0,0, + a[6] 2736,3648,6,0,0,0, + a[6] 2736,3648,11,0,0,0, + a[6] 2112,2816,2,0,0,0, + a[6] 2112,2816,7,0,0,0, + a[6] 2112,2816,12,0,0,0, + a[6] 1704,2272,3,0,0,0, + a[6] 1704,2272,8,0,0,0, + a[6] 1704,2272,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 41025536 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot S90' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777472 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot S90' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 + + Label: Bulb Mode + Type: TOGGLE + Current: 2 + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 + Label: Camera Date and Time + Type: DATE + Current: 1270736222 + Printable: Thu Apr 8 07:17:02 2010 + Label: Owner Name + Type: TEXT + Current: + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card + Label: Capture + Type: TOGGLE + Current: 2 + Label: Camera Model + Type: TEXT + Current: Canon PowerShot S90 + Label: Firmware Version + Type: TEXT + Current: 1.0.1.0 + Label: Event Emulate Mode + Type: MENU + Current: 2 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Label: PTP Property 0xd04a + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Label: Size of Output Data from Camera + Type: TEXT + Current: 524288 + Label: Size of Input Data to Camera + Type: TEXT + Current: 524288 + Label: Battery Type + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Label: Battery Mode + Type: MENU + Current: 4 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Label: UNIX Time + Type: TEXT + Current: 1270736223 + Label: Type of Slideshow + Type: TEXT + Current: 2 + Label: DPOF Version + Type: TEXT + Current: 257 + Label: Supported Thumb Size + Type: TEXT + Current: (null) + Label: Size Quality Mode + Type: MENU + Current: (null) + Label: Remote API Version + Type: TEXT + Current: 256 + Label: Model ID + Type: TEXT + Current: 41025536 + Label: Camera Model + Type: TEXT + Current: Canon PowerShot S90 + Label: Camera Owner + Type: TEXT + Current: (null) + Label: Firmware Version + Type: TEXT + Current: 16777472 + Label: PTP Property 0xd050 + Type: TEXT + Current: 1 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon PowerShot S90 + Label: PTP Property 0xd406 + Type: TEXT + Current: Windows + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sd500.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sd500.txt new file mode 100644 index 00000000..3428e2e3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sd500.txt @@ -0,0 +1,92 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot SD500 + device version: 1-1.0.1.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x9027 + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9022 + 0x9026 + 0x9023 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00e + 0xc00f + 0xc010 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd04b diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx100is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx100is.txt new file mode 100644 index 00000000..211a6781 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx100is.txt @@ -0,0 +1,889 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot SX100 IS + device version: 1-4.2.1.0 + serial number: 'dddddddddddddddddddddddddddddddd' +Vendor extension ID: 0x00000006 +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x100e + 0x9008 + 0x901a + 0x9009 + 0x900b + 0x901d + 0x900d + 0x900c + 0x9014 + 0x9015 + 0x9018 + 0x9012 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x903f + 0x9040 + 0x9041 + 0x904d + 0x9044 + 0x9045 + 0x904e + 0x904f + 0x9054 + 0x9055 + 0x9056 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00e + 0xc00f + 0xc011 + 0xc013 + 0xc019 + 0xc01a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd048 + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd402 + 0xd406 + 0xd407 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX100 IS + Version: 1-4.2.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 262144 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1239658922 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Average Filesizes(0xd048):(read only) (type=0x4006) a[19] 3518464,2563072,1640448,0,254976,2109440,1428480,914432,0,153600,1003520,711680,455680,0,86016,0,1026048,571392,284672 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2448,3264,1,0,0,0, + a[6] 2448,3264,6,0,0,0, + a[6] 2448,3264,11,0,0,0, + a[6] 1944,2592,2,0,0,0, + a[6] 1944,2592,7,0,0,0, + a[6] 1944,2592,12,0,0,0, + a[6] 1536,2048,3,0,0,0, + a[6] 1536,2048,8,0,0,0, + a[6] 1536,2048,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 36241408 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX100 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[16] 77,97,114,99,117,115,32,77,101,105,115,115,110,101,114,0 +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX100 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Capture Transfer Mode(0xd029):(readwrite) (type=0x4) Enumeration [1,2,3] value: 3 +Flash Mode(0xd00a):(read only) (type=0x2) Enumeration [] value: Off (0) +Flash Quantity Count(0xd042):(read only) (type=0x4) Enumeration [] value: 65535 +Flash Compensation(0xd020):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Image Quality(0xd006):(readwrite) (type=0x2) Enumeration [5,3,2] value: Fine (3) +Full View File Format(0xd007):(read only) (type=0x2) Enumeration [] value: JPEG (1) +Image Size(0xd008):(readwrite) (type=0x2) Enumeration [0,1,3,7,2] value: Large (0) +Drive Mode(0xd00e):(read only) (type=0x2) Enumeration [] value: Single-Frame Shooting (0) +Metering Mode(0xd010):(readwrite) (type=0x2) Enumeration [3,0,1] value: Evaluative Metering (3) +AF Distance(0xd011):(readwrite) (type=0x2) Enumeration [1,3] value: Auto (1) +Focusing Point(0xd012):(read only) (type=0x4) Enumeration [] value: Multiple Focusing Points (Center) (12291) +White Balance(0xd013):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,7,6] value: Auto (0) +ISO Speed(0xd01c):(readwrite) (type=0x4) Enumeration [0,69,72,80,88,96,104] value: Auto (0) +Exposure Compensation(0xd01f):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Assist Light(0xd041):(readwrite) (type=0x4) Enumeration [1,0] value: On (1) +Rotation Scene(0xd044):(readwrite) (type=0x4) Enumeration [0,1] value: On (0) +Shooting Mode(0xd00c):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: P (1) +Aperture(0xd01d):(read only) (type=0x4) Enumeration [] value: 40 +Shutter Speed(0xd01e):(read only) (type=0x4) Enumeration [] value: 112 +Zoom(0xd02a):(readwrite) (type=0x4) Range [0 - 28, step 1] value: 0 +Camera Output(0xd036):(readwrite) (type=0x2) Enumeration [1,2,3] value: Off (3) +Disp Av(0xd037):(read only) (type=0x4) 0 +Av Open Apex(0xd038):(read only) (type=0x4) 32 +Digital Zoom Magnification(0xd039):(read only) (type=0x4) 3264 +Disp Av Max(0xd03b):(read only) (type=0x4) 0 +Av Max Apex(0xd03c):(read only) (type=0x4) 56 +EZoom Start Position(0xd03d):(read only) (type=0x4) 23 +Rotation Angle(0xd043):(read only) (type=0x4) 0' (0) + + +/main/actions/focuslock + Label: Focus Lock + Type: TOGGLE + Current: 2 +/main/actions/bulb + Label: Bulb Mode + Type: TOGGLE + Current: 2 +/main/actions/uilock + Label: UI Lock + Type: TOGGLE + Current: 2 +/main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 +/main/actions/autofocusdrive + Label: Drive Canon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/actions/manualfocusdrive + Label: Drive Canon DSLR Manual focus + Type: RADIO + Current: None + Choice: 0 Near 1 + Choice: 1 Near 2 + Choice: 2 Near 3 + Choice: 3 None + Choice: 4 Far 1 + Choice: 5 Far 2 + Choice: 6 Far 3 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1270896222 + Printable: Sat Apr 10 12:43:42 2010 +/main/settings/output + Label: Camera Output + Type: RADIO + Current: Off + Choice: 0 LCD + Choice: 1 Video OUT + Choice: 2 Off +/main/settings/ownername + Label: Owner Name + Type: TEXT + Current: Marcus Meissner +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/status/model + Label: Camera Model + Type: TEXT + Current: Canon PowerShot SX100 IS +/main/status/firmwareversion + Label: Firmware Version + Type: TEXT + Current: 1.0.0.0 +/main/status/orientation + Label: Camera Orientation + Type: TEXT + Current: 0' +/main/imgsettings/imagequality + Label: Image Quality + Type: RADIO + Current: fine + Choice: 0 superfine + Choice: 1 fine + Choice: 2 normal +/main/imgsettings/imageformat + Label: Image Format + Type: RADIO + Current: (null) +/main/imgsettings/imagesize + Label: Image Size + Type: RADIO + Current: large + Choice: 0 large + Choice: 1 medium 1 + Choice: 2 medium 2 + Choice: 3 medium 3 + Choice: 4 small +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 80 + Choice: 2 100 + Choice: 3 200 + Choice: 4 400 + Choice: 5 800 + Choice: 6 1600 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Daylight + Choice: 2 Cloudy + Choice: 3 Tungsten + Choice: 4 Fluorescent + Choice: 5 Fluorescent H + Choice: 6 Custom +/main/capturesettings/zoom + Label: Zoom + Type: RANGE + Current: 0 + Bottom: 0 + Top: 28 + Step: 1 +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autorotation + Label: Rotation Flag + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 +2 + Choice: 1 +1 2/3 + Choice: 2 +1 1/3 + Choice: 3 +1 + Choice: 4 +2/3 + Choice: 5 +1/3 + Choice: 6 0 + Choice: 7 -1/3 + Choice: 8 -2/3 + Choice: 9 -1 + Choice: 10 -1 1/3 + Choice: 11 -1 2/3 + Choice: 12 -2 +/main/capturesettings/flashcompensation + Label: Flash Compensation + Type: RADIO + Current: 0 + Choice: 0 +2 + Choice: 1 +1 2/3 + Choice: 2 +1 1/3 + Choice: 3 +1 + Choice: 4 +2/3 + Choice: 5 +1/3 + Choice: 6 0 + Choice: 7 -1/3 + Choice: 8 -2/3 + Choice: 9 -1 + Choice: 10 -1 1/3 + Choice: 11 -1 2/3 + Choice: 12 -2 +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: (null) +/main/capturesettings/shootingmode + Label: Canon Shooting Mode + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 TV + Choice: 2 AV + Choice: 3 Manual +/main/capturesettings/aperture + Label: Aperture + Type: RADIO + Current: 4 + Choice: 0 auto + Choice: 1 1 + Choice: 2 1.1 + Choice: 3 1.2 + Choice: 4 1.2 + Choice: 5 1.4 + Choice: 6 1.6 + Choice: 7 1.8 + Choice: 8 1.8 + Choice: 9 2 + Choice: 10 2.2 + Choice: 11 2.5 + Choice: 12 2.5 + Choice: 13 2.8 + Choice: 14 3.2 + Choice: 15 3.5 + Choice: 16 3.5 + Choice: 17 4 + Choice: 18 4.5 + Choice: 19 4.5 + Choice: 20 5 + Choice: 21 5.6 + Choice: 22 6.3 + Choice: 23 6.7 + Choice: 24 7.1 + Choice: 25 8 + Choice: 26 9 + Choice: 27 9.5 + Choice: 28 10 + Choice: 29 11 + Choice: 30 13 + Choice: 31 13 + Choice: 32 14 + Choice: 33 16 + Choice: 34 18 + Choice: 35 19 + Choice: 36 20 + Choice: 37 22 + Choice: 38 25 + Choice: 39 27 + Choice: 40 29 + Choice: 41 32 + Choice: 42 36 + Choice: 43 38 + Choice: 44 40 + Choice: 45 45 + Choice: 46 51 + Choice: 47 54 + Choice: 48 57 + Choice: 49 64 + Choice: 50 72 + Choice: 51 76 + Choice: 52 81 + Choice: 53 91 +/main/capturesettings/focusingpoint + Label: Focusing Point + Type: RADIO + Current: Multiple Focusing Points (Center) + Choice: 0 Focusing Point on Center Only, Manual + Choice: 1 Focusing Point on Center Only, Auto + Choice: 2 Multiple Focusing Points (No Specification), Manual + Choice: 3 Multiple Focusing Points, Auto + Choice: 4 Multiple Focusing Points (Right) + Choice: 5 Multiple Focusing Points (Center) + Choice: 6 Multiple Focusing Points (Left) +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 1/125 + Choice: 0 auto + Choice: 1 bulb + Choice: 2 bulb + Choice: 3 30 + Choice: 4 25 + Choice: 5 20 + Choice: 6 20 + Choice: 7 15 + Choice: 8 13 + Choice: 9 10 + Choice: 10 10 + Choice: 11 8 + Choice: 12 6 + Choice: 13 6 + Choice: 14 5 + Choice: 15 4 + Choice: 16 3.2 + Choice: 17 3 + Choice: 18 2.5 + Choice: 19 2 + Choice: 20 1.6 + Choice: 21 1.5 + Choice: 22 1.3 + Choice: 23 1 + Choice: 24 0.8 + Choice: 25 0.7 + Choice: 26 0.6 + Choice: 27 0.5 + Choice: 28 0.4 + Choice: 29 0.3 + Choice: 30 0.3 + Choice: 31 1/4 + Choice: 32 1/5 + Choice: 33 1/6 + Choice: 34 1/6 + Choice: 35 1/8 + Choice: 36 1/10 + Choice: 37 1/10 + Choice: 38 1/13 + Choice: 39 1/15 + Choice: 40 1/20 + Choice: 41 1/20 + Choice: 42 1/25 + Choice: 43 1/30 + Choice: 44 1/40 + Choice: 45 1/45 + Choice: 46 1/50 + Choice: 47 1/60 + Choice: 48 1/80 + Choice: 49 1/90 + Choice: 50 1/100 + Choice: 51 1/125 + Choice: 52 1/160 + Choice: 53 1/180 + Choice: 54 1/200 + Choice: 55 1/250 + Choice: 56 1/320 + Choice: 57 1/350 + Choice: 58 1/400 + Choice: 59 1/500 + Choice: 60 1/640 + Choice: 61 1/750 + Choice: 62 1/800 + Choice: 63 1/1000 + Choice: 64 1/1250 + Choice: 65 1/1500 + Choice: 66 1/1600 + Choice: 67 1/2000 + Choice: 68 1/2500 + Choice: 69 1/3000 + Choice: 70 1/3200 + Choice: 71 1/4000 + Choice: 72 1/5000 + Choice: 73 1/6000 + Choice: 74 1/6400 + Choice: 75 1/8000 +/main/capturesettings/meteringmode + Label: Metering Mode + Type: RADIO + Current: evaluative + Choice: 0 evaluative + Choice: 1 center-weighted + Choice: 2 spot +/main/capturesettings/afdistance + Label: AF Distance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Zone Focus (Close-up) +/main/other/d045 + Label: Event Emulate Mode + Type: MENU + Current: 4 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 +/main/other/d04a + Label: PTP Property 0xd04a + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d02e + Label: Size of Output Data from Camera + Type: TEXT + Current: 524288 +/main/other/d02f + Label: Size of Input Data to Camera + Type: TEXT + Current: 262144 +/main/other/d002 + Label: Battery Type + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d003 + Label: Battery Mode + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d034 + Label: UNIX Time + Type: TEXT + Current: 1270896239 +/main/other/d047 + Label: Type of Slideshow + Type: TEXT + Current: 0 +/main/other/d046 + Label: DPOF Version + Type: TEXT + Current: 257 +/main/other/d02d + Label: Supported Thumb Size + Type: TEXT + Current: (null) +/main/other/d048 + Label: Average Filesizes + Type: TEXT + Current: (null) +/main/other/d02c + Label: Size Quality Mode + Type: MENU + Current: (null) +/main/other/d030 + Label: Remote API Version + Type: TEXT + Current: 256 +/main/other/d049 + Label: Model ID + Type: TEXT + Current: 36241408 +/main/other/d032 + Label: Camera Model + Type: TEXT + Current: Canon PowerShot SX100 IS +/main/other/d033 + Label: Camera Owner + Type: TEXT + Current: (null) +/main/other/d031 + Label: Firmware Version + Type: TEXT + Current: 16777216 +/main/other/d050 + Label: PTP Property 0xd050 + Type: TEXT + Current: 0 +/main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon PowerShot SX100 IS +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Windows +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d029 + Label: Capture Transfer Mode + Type: MENU + Current: 3 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 8 + Choice: 4 9 + Choice: 5 10 + Choice: 6 11 + Choice: 7 12 + Choice: 8 13 + Choice: 9 14 + Choice: 10 15 +/main/other/d00a + Label: Flash Mode + Type: MENU + Current: 0 +/main/other/d042 + Label: Flash Quantity Count + Type: MENU + Current: 65535 +/main/other/d020 + Label: Flash Compensation + Type: MENU + Current: 24 + Choice: 0 8 + Choice: 1 11 + Choice: 2 13 + Choice: 3 16 + Choice: 4 19 + Choice: 5 21 + Choice: 6 24 + Choice: 7 27 + Choice: 8 29 + Choice: 9 32 + Choice: 10 35 + Choice: 11 37 + Choice: 12 40 +/main/other/d006 + Label: Image Quality + Type: MENU + Current: 3 + Choice: 0 5 + Choice: 1 3 + Choice: 2 2 +/main/other/d007 + Label: Full View File Format + Type: MENU + Current: 1 +/main/other/d008 + Label: Image Size + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 3 + Choice: 3 7 + Choice: 4 2 +/main/other/d00e + Label: Drive Mode + Type: MENU + Current: 0 +/main/other/d010 + Label: Metering Mode + Type: MENU + Current: 3 + Choice: 0 3 + Choice: 1 0 + Choice: 2 1 +/main/other/d011 + Label: AF Distance + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 3 +/main/other/d012 + Label: Focusing Point + Type: MENU + Current: 12291 +/main/other/d013 + Label: White Balance + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 7 + Choice: 6 6 +/main/other/d01c + Label: ISO Speed + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 69 + Choice: 2 72 + Choice: 3 80 + Choice: 4 88 + Choice: 5 96 + Choice: 6 104 +/main/other/d01f + Label: Exposure Compensation + Type: MENU + Current: 24 + Choice: 0 8 + Choice: 1 11 + Choice: 2 13 + Choice: 3 16 + Choice: 4 19 + Choice: 5 21 + Choice: 6 24 + Choice: 7 27 + Choice: 8 29 + Choice: 9 32 + Choice: 10 35 + Choice: 11 37 + Choice: 12 40 +/main/other/d041 + Label: Assist Light + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 0 +/main/other/d044 + Label: Rotation Scene + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d00c + Label: Shooting Mode + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 +/main/other/d01d + Label: Aperture + Type: MENU + Current: 40 +/main/other/d01e + Label: Shutter Speed + Type: MENU + Current: 112 +/main/other/d02a + Label: Zoom + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 +/main/other/d036 + Label: Camera Output + Type: MENU + Current: 3 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 +/main/other/d037 + Label: Disp Av + Type: TEXT + Current: 0 +/main/other/d038 + Label: Av Open Apex + Type: TEXT + Current: 32 +/main/other/d039 + Label: Digital Zoom Magnification + Type: TEXT + Current: 3264 +/main/other/d03b + Label: Disp Av Max + Type: TEXT + Current: 0 +/main/other/d03c + Label: Av Max Apex + Type: TEXT + Current: 56 +/main/other/d03d + Label: EZoom Start Position + Type: TEXT + Current: 23 +/main/other/d043 + Label: Rotation Angle + Type: TEXT + Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx10is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx10is.txt new file mode 100644 index 00000000..f22e0ee7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx10is.txt @@ -0,0 +1,186 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot SX10 IS + device version: 1-5.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x903f + 0x9040 + 0x9041 + 0x904d + 0x9044 + 0x9045 + 0x904e + 0x904f + 0x9054 + 0x9055 + 0x9056 + 0x9050 + 0x9051 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a + 0xc00f + 0xc011 + 0xc013 + 0xc019 + 0xc01a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd402 + 0xd406 + 0xd407 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX10 IS + Version: 1-5.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b104), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1234259206 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2736,3648,1,0,0,0, + a[6] 2736,3648,6,0,0,0, + a[6] 2736,3648,11,0,0,0, + a[6] 2112,2816,2,0,0,0, + a[6] 2112,2816,7,0,0,0, + a[6] 2112,2816,12,0,0,0, + a[6] 1704,2272,3,0,0,0, + a[6] 1704,2272,8,0,0,0, + a[6] 1704,2272,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 38207488 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX10 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX10 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx110is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx110is.txt new file mode 100644 index 00000000..e374a6a5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx110is.txt @@ -0,0 +1,75 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX110 IS + Version: 1-5.2.1.0 + Serial Number: 654CC68E371842BA862B05DD8E51A16F +Vendor Extension ID: 0x6 (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, Unknown(b101), Unknown(b103), Unknown(b104), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b101)/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 31080448 (29 MB) + Free Space (Bytes): 28819456 (27 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) (type=0x6) 524288 +Property 0xd02f:(read only) (type=0x6) 524288 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Property 0xd003:(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +Property 0xd034:(readwrite) (type=0x6) 1202259357 +Property 0xd047:(read only) (type=0x4) 0 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd02d:(read only) (type=0x4006) a[4] 119,0,159,0 +Property 0xd048:(read only) (type=0x4006) a[19] 3981312,2785280,2050048,0,254976,2357248,1658880,1142784,0,153600,1126400,798720,569344,0,86016,0,1026048,571392,284672 +Property 0xd02c:(read only) (type=0x4006) Enumeration [ + a[6] 2592,3456,1,0,0,0, + a[6] 2592,3456,6,0,0,0, + a[6] 2592,3456,11,0,0,0, + a[6] 2112,2816,2,0,0,0, + a[6] 2112,2816,7,0,0,0, + a[6] 2112,2816,12,0,0,0, + a[6] 1704,2272,3,0,0,0, + a[6] 1704,2272,8,0,0,0, + a[6] 1704,2272,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd049:(read only) (type=0x6) 38928384 +Property 0xd032:(read only) (type=0xffff) 'Canon PowerShot SX110 IS' +Property 0xd033:(readwrite) (type=0x4002) a[0] +Property 0xd031:(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Friendly Device Name(0xd402):(read only) (type=0xffff) Canon PowerShot SX110 IS ('Canon PowerShot SX110 IS') +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx160is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx160is.txt new file mode 100644 index 00000000..cc3eaf27 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx160is.txt @@ -0,0 +1,217 @@ +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/chdk_script +Label: CHDK Script +Type: RADIO +Current: cls();exit_alt(); +Choice: 0 cls();exit_alt(); +Choice: 1 shoot();cls();exit_alt(); +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: www.camera360.com.br +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX160 IS +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-13.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX160 IS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/status/chdk_api_version +Label: CHDK API Version +Type: TEXT +Current: 2.5 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1397111698 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 53805056 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX160 IS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot SX160 IS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX160 IS + Version: 1-13.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7931641856 (7564 MB) + Free Space (Bytes): 7914016768 (7547 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1397111689 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 53805056 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX160 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[21] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX160 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx170is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx170is.txt new file mode 100644 index 00000000..dafbfd01 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx170is.txt @@ -0,0 +1,183 @@ +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: unexpected datatype 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX170 IS +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: unexpected datatype 0 +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: unexpected datatype 0 +/main/other/d045 +Label: Event Emulate Mode +Type: TEXT +Current: (null) +/main/other/d04a +Label: PTP Property 0xd04a +Type: TEXT +Current: (null) +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: (null) +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: (null) +/main/other/5001 +Label: Battery Level +Type: TEXT +Current: (null) +/main/other/d002 +Label: Battery Type +Type: TEXT +Current: (null) +/main/other/d003 +Label: Battery Mode +Type: TEXT +Current: (null) +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: (null) +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: (null) +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: (null) +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: (null) +/main/other/d049 +Label: Model ID +Type: TEXT +Current: (null) +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: (null) +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: (null) +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: (null) +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: (null) +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: (null) +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: (null) +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: (null) +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: (null) +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX170 IS + Version: 1-14.0.1.0 + Serial Number: xxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 15997108224 (15256 MB) + Free Space (Bytes): 15989899264 (15249 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(read only) (type=0x0) Undefined +Property 0xd04a:(read only) (type=0x0) Undefined +Size of Output Data from Camera(0xd02e):(read only) (type=0x0) Undefined +Size of Input Data to Camera(0xd02f):(read only) (type=0x0) Undefined +Battery Level(0x5001):(read only) (type=0x0) 0% (Undefined) +Battery Type(0xd002):(read only) (type=0x0) Unknown (Undefined) +Battery Mode(0xd003):(read only) (type=0x0) Undefined (Undefined) +UNIX Time(0xd034):(read only) (type=0x0) Undefined +Type of Slideshow(0xd047):(read only) (type=0x0) Undefined +DPOF Version(0xd046):(read only) (type=0x0) Undefined +Remote API Version(0xd030):(read only) (type=0x0) Undefined +Model ID(0xd049):(read only) (type=0x0) Undefined +Camera Model(0xd032):(read only) (type=0x0) Undefined +Camera Owner(0xd033):(read only) (type=0x0) Undefined +Firmware Version(0xd031):(read only) (type=0x0) Undefined +Property 0xd050:(read only) (type=0x0) Undefined +Property 0xd051:(read only) (type=0x0) Undefined +Property 0xd052:(read only) (type=0x0) Undefined +Property 0xd402:(read only) (type=0x0) Undefined +Property 0xd406:(read only) (type=0x0) Undefined +Property 0xd407:(read only) (type=0x0) Undefined +Property 0xd303:(read only) (type=0x0) Undefined + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx200is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx200is.txt new file mode 100644 index 00000000..2d29e90b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx200is.txt @@ -0,0 +1,75 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX200 IS + Version: 1-6.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b104), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 2017067008 (1923 MB) + Free Space (Bytes): 1919778816 (1830 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1247038357 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 3000,4000,1,0,0,0, + a[6] 3000,4000,6,0,0,0, + a[6] 3000,4000,11,0,0,0, + a[6] 2448,3264,2,0,0,0, + a[6] 2448,3264,7,0,0,0, + a[6] 2448,3264,12,0,0,0, + a[6] 1944,2592,3,0,0,0, + a[6] 1944,2592,8,0,0,0, + a[6] 1944,2592,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 39845888 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX200 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX200 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx210is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx210is.txt new file mode 100644 index 00000000..2ac31469 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx210is.txt @@ -0,0 +1,284 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot SX210 IS + device version: 1-8.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x905e + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd402 + 0xd406 + 0xd407 + 0xd303 +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX210 IS + Version: 1-8.0.1.0 + Serial Number: BC592DF78134446EACB95F6161281D93 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b104), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1292603461 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 42401792 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX210 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX210 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime + Label: Synchronize camera date and time with PC + Type: TOGGLE + Current: 0 +/main/settings/ownername + Label: Owner Name + Type: TEXT + Current: +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/settings/capture + Label: Capture + Type: TOGGLE + Current: 2 +/main/status/model + Label: Camera Model + Type: TEXT + Current: Canon PowerShot SX210 IS +/main/status/firmwareversion + Label: Firmware Version + Type: TEXT + Current: 1.0.0.0 +/main/other/d045 + Label: Event Emulate Mode + Type: MENU + Current: 2 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 +/main/other/d04a + Label: PTP Property 0xd04a + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d02e + Label: Size of Output Data from Camera + Type: TEXT + Current: 524288 +/main/other/d02f + Label: Size of Input Data to Camera + Type: TEXT + Current: 524288 +/main/other/5001 + Label: Battery Level + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d002 + Label: Battery Type + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d003 + Label: Battery Mode + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d034 + Label: UNIX Time + Type: TEXT + Current: 1292603507 +/main/other/d047 + Label: Type of Slideshow + Type: TEXT + Current: 2 +/main/other/d046 + Label: DPOF Version + Type: TEXT + Current: 257 +/main/other/d030 + Label: Remote API Version + Type: TEXT + Current: 256 +/main/other/d049 + Label: Model ID + Type: TEXT + Current: 42401792 +/main/other/d032 + Label: Camera Model + Type: TEXT + Current: Canon PowerShot SX210 IS +/main/other/d033 + Label: Camera Owner + Type: TEXT + Current: (null) +/main/other/d031 + Label: Firmware Version + Type: TEXT + Current: 16777216 +/main/other/d050 + Label: PTP Property 0xd050 + Type: TEXT + Current: 1 +/main/other/d402 + Label: PTP Property 0xd402 + Type: TEXT + Current: Canon PowerShot SX210 IS +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Windows +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx220hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx220hs.txt new file mode 100644 index 00000000..dc23c64b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx220hs.txt @@ -0,0 +1,104 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot SX220 HS + device version: 1-10.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx230hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx230hs.txt new file mode 100644 index 00000000..8cd48d01 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx230hs.txt @@ -0,0 +1,63 @@ +jepesone@gizmo:~$ gphoto2 --summary +Camera summary: +Model: Canon PowerShot SX230 HS + device version: 1-10.0.1.0 + serial number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor extension ID: 0x00000006 +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, Unknown(b101), Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b101)/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified + Unknown(b105)/b105: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc08/DateCreated dc09/DateModified dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(bf01)/bf01: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 8010072064 (7639 MB) + Free Space (Bytes): 7127367680 (6797 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd045:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) (type=0x6) 524288 +Property 0xd02f:(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3 +Property 0xd002:(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 0 +Property 0xd003:(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +Property 0xd034:(readwrite) (type=0x6) 1330370121 +Property 0xd047:(read only) (type=0x4) 2 +Property 0xd046:(read only) (type=0x4) 257 +Property 0xd030:(read only) (type=0x6) 256 +Property 0xd049:(read only) (type=0x6) 50528256 +Property 0xd032:(read only) (type=0xffff) 'Canon PowerShot SX230 HS' +Property 0xd033:(readwrite) (type=0x4002) a[0] +Property 0xd031:(read only) (type=0x6) 16777472 +Property 0xd050:(read only) (type=0x2) 1 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 1 +Device Friendly Name(0xd402):(read only) (type=0xffff) Canon PowerShot +SX230 HS ('Canon PowerShot SX230 HS') +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx240hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx240hs.txt new file mode 100644 index 00000000..63c3f83c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx240hs.txt @@ -0,0 +1,289 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot SX240 HS + device version: 1-12.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9063 + 0x9064 + 0x9065 + 0x9066 + 0x9067 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX240 HS + Version: 1-12.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1327116159 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 52625408 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX240 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX240 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX240 HS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1327116159 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 52625408 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX240 HS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot SX240 HS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx260hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx260hs.txt new file mode 100644 index 00000000..5849c491 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx260hs.txt @@ -0,0 +1,318 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX260 HS + Version: 1-12.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3896508416 (3716 MB) + Free Space (Bytes): 3894607872 (3714 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1399980315 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 52559872 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX260 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777472 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX260 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX260 HS +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-12.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX260 HS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.1.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1399980322 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 52559872 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX260 HS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777472 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 1 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot SX260 HS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot SX260 HS + device version: 1-12.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b + 0x9001 + 0x9002 + 0x9006 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9013 + 0x9019 + 0x901b + 0x901c + 0x901e + 0x901f + 0x9021 + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x904c + 0x9050 + 0x9051 + 0x905c + 0x905d + 0x9060 + 0x9062 + 0x9063 + 0x9064 + 0x9065 + 0x9066 + 0x9067 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0x5001 + 0xd002 + 0xd003 + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd045 + 0xd046 + 0xd047 + 0xd049 + 0xd04a + 0xd050 + 0xd051 + 0xd052 + 0xd303 + 0xd402 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx280hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx280hs.txt new file mode 100644 index 00000000..60c262c2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx280hs.txt @@ -0,0 +1,212 @@ +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 315550864 +Printable: Tue Jan 1 00:01:04 1980 +Help: Use 'now' as the current time when setting. + +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: REMOVED_XXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX280 HS +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX280 HS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.2.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 315532864 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 54525952 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX280 HS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777728 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 1 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot SX280 HS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX280 HS + Version: 1-14.0.1.0 + Serial Number: REMOVED_XXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + Canon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 2093043712 (1996 MB) + Free Space (Bytes): 2086289408 (1989 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 2% (2) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Warning Level 0 (4) +UNIX Time(0xd034):(readwrite) (type=0x6) 315532849 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 54525952 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX280 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777728 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,47490 +Property 0xd052:(read only) (type=0x2) 1 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX280 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx500is.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx500is.txt new file mode 100644 index 00000000..e62512b1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx500is.txt @@ -0,0 +1,153 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot SX500 IS + device version: 1-13.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x9024 + 0x9025 + 0x9038 + 0x9039 + 0x903a + 0x903b + 0x904b + 0x9060 + 0x9062 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9050 + 0x9051 + 0x905c + 0x905d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400e + 0xc001 + 0xc005 + 0xc00a +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0x5001 + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd050 + 0xd051 + 0xd052 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX500 IS + Version: 1-13.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 8001683456 (7631 MB) + Free Space (Bytes): 7869628416 (7505 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1353086419 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 53936128 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX500 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX500 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx50hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx50hs.txt new file mode 100644 index 00000000..31875b33 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx50hs.txt @@ -0,0 +1,50 @@ + Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX50 HS + Version: 1-13.0.1.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 63831015424 (60874 MB) + Free Space (Bytes): 26975797248 (25726 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1395784363 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 53739520 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX50 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,45317 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053:(readwrite) (type=0x4002) a[0] +Property 0xd054:(readwrite) (type=0x4002) a[0] +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX50 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx510hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx510hs.txt new file mode 100644 index 00000000..5a7ac4b0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx510hs.txt @@ -0,0 +1,218 @@ +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/chdk_reboot +Label: CHDK Reboot +Type: TOGGLE +Current: 2 +/main/actions/chdk_script +Label: CHDK Script +Type: RADIO +Current: cls();exit_alt(); +Choice: 0 cls();exit_alt(); +Choice: 1 shoot();cls();exit_alt(); +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: EEAF67A2D86C4B3DB969414114CC71F5 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX510 HS +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX510 HS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.1.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1394379399 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 56098816 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX510 HS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777472 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot SX510 HS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX510 HS + Version: 1-14.0.1.0 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 4019224576 (3833 MB) + Free Space (Bytes): 3826057216 (3648 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1394379388 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 56098816 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX510 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777472 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[3] 14337,45317,47490 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX510 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx600hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx600hs.txt new file mode 100644 index 00000000..7c7368c6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx600hs.txt @@ -0,0 +1,471 @@ +Kamerazusammenfassung: +Hersteller: Canon Inc. +Modell: Canon PowerShot SX600 HS + Version: 1-14.0.1.0 + Seriennummer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Aufnahmeformate: JPEG +Anzeigeformate: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Canon EOS Capture 2 + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: SD + Label des Speichergerätes: Keine + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 32316096512 (30819 MB) + Freier Platz (Bytes): 30082203648 (28688 MB) + Freier Speicher (Bilder): -1 + +Properties des Geräts: +Event Emulations Modus(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Datengröße beim Transfer von der Kamera(0xd02e):(read only) (type=0x6) 524288 +Datengröße beim Transfer zur Kamera(0xd02f):(read only) (type=0x6) 524288 +Batterie Ladezustand(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Batterietyp(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Batteriemodus(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Zeit(0xd034):(readwrite) (type=0x6) 1545822075 +Art der Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Kamera API Version(0xd030):(read only) (type=0x6) 256 +Modell ID(0xd049):(read only) (type=0x6) 57081856 +Kameramodell(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX600 HS' +Kamerabesitzer(0xd033):(readwrite) (type=0x4002) a[0] +Firmware-Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x0) Undefined +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd1b0:(readwrite) (type=0x2) 0 +Property 0xd055:(readwrite) (type=0x2) 0 +Property 0xd056:(readwrite) (type=0x2) 0 +Property 0xd106:(readwrite) (type=0x2) 0 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX600 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/eosremoterelease +Label: Canon EOS Auslöser +Readonly: 0 +Type: RADIO +Current: Keine +Choice: 0 Keine +Choice: 1 Halb durchdrücken +Choice: 2 Voll durchdrücken +Choice: 3 Halb durchdrücken +Choice: 4 Voll auslösen +Choice: 5 Sofort +Choice: 6 Drücke 1 +Choice: 7 Drücke 2 +Choice: 8 Drücke 3 +Choice: 9 Loslassen 1 +Choice: 10 Loslassen 2 +Choice: 11 Loslassen 3 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/settings/datetime +Label: Kamera Datum und Zeit +Readonly: 0 +Type: DATE +Current: 1545818487 +Printable: Mi 26 Dez 2018 11:01:27 CET +Help: Use 'now' as the current time when setting. + +END +/main/settings/ownername +Label: Eigentümername +Readonly: 0 +Type: TEXT +Current: +END +/main/settings/capturetarget +Label: Aufnahmeziel +Readonly: 0 +Type: RADIO +Current: Speicherkarte +Choice: 0 interner Speicher +Choice: 1 Speicherkarte +END +/main/settings/capture +Label: Aufnahme +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/status/serialnumber +Label: Seriennummer +Readonly: 0 +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +END +/main/status/manufacturer +Label: Kamera Hersteller +Readonly: 0 +Type: TEXT +Current: Canon Inc. +END +/main/status/cameramodel +Label: Kameramodell +Readonly: 0 +Type: TEXT +Current: Canon PowerShot SX600 HS +END +/main/status/deviceversion +Label: Version des Gerätes +Readonly: 0 +Type: TEXT +Current: 1-14.0.1.0 +END +/main/status/vendorextension +Label: Hersteller Erweiterung +Readonly: 0 +Type: TEXT +Current: Keine +END +/main/status/model +Label: Kameramodell +Readonly: 1 +Type: TEXT +Current: Canon PowerShot SX600 HS +END +/main/status/model +Label: Kameramodell +Readonly: 0 +Type: TEXT +Current: 57081856 +END +/main/status/firmwareversion +Label: Firmware-Version +Readonly: 1 +Type: TEXT +Current: 1.0.0.0 +END +/main/status/Batterie Ladezustand +Label: Batterie Ladezustand +Readonly: 1 +Type: TEXT +Current: 3% +END +/main/capturesettings/zoom +Label: Zoom +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/other/d045 +Label: Event Emulations Modus +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +END +/main/other/d04a +Label: PTP Property 0xd04a +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d02e +Label: Datengröße beim Transfer von der Kamera +Readonly: 1 +Type: TEXT +Current: 524288 +END +/main/other/d02f +Label: Datengröße beim Transfer zur Kamera +Readonly: 1 +Type: TEXT +Current: 524288 +END +/main/other/5001 +Label: Batterie Ladezustand +Readonly: 1 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d002 +Label: Batterietyp +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d003 +Label: Batteriemodus +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d034 +Label: UNIX Zeit +Readonly: 0 +Type: TEXT +Current: 1545822087 +END +/main/other/d047 +Label: Art der Slideshow +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d046 +Label: DPOF Version +Readonly: 1 +Type: TEXT +Current: 257 +END +/main/other/d030 +Label: Kamera API Version +Readonly: 1 +Type: TEXT +Current: 256 +END +/main/other/d049 +Label: Modell ID +Readonly: 1 +Type: TEXT +Current: 57081856 +END +/main/other/d032 +Label: Kameramodell +Readonly: 1 +Type: TEXT +Current: Canon PowerShot SX600 HS +END +/main/other/d033 +Label: Kamerabesitzer +Readonly: 0 +Type: TEXT +Current: (null) +END +/main/other/d031 +Label: Firmware-Version +Readonly: 1 +Type: TEXT +Current: 16777216 +END +/main/other/d050 +Label: PTP Property 0xd050 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d051 +Label: PTP Property 0xd051 +Readonly: 1 +Type: TEXT +Current: (null) +END +/main/other/d052 +Label: PTP Property 0xd052 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d1b0 +Label: PTP Property 0xd1b0 +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/other/d055 +Label: PTP Property 0xd055 +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/other/d056 +Label: PTP Property 0xd056 +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/other/d106 +Label: PTP Property 0xd106 +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/other/d402 +Label: PTP Property 0xd402 +Readonly: 1 +Type: TEXT +Current: Canon PowerShot SX600 HS +END +/main/other/d406 +Label: PTP Property 0xd406 +Readonly: 0 +Type: TEXT +Current: Windows +END +/main/other/d407 +Label: PTP Property 0xd407 +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d303 +Label: PTP Property 0xd303 +Readonly: 1 +Type: TEXT +Current: 1 +END + +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot SX600 HS + device version: 1-14.0.1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x9013 (PTP_OC_CANON_CheckEvent) + 0x901f (PTP_OC_CANON_ChangeUSBProtocol) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1012 (Set object protection) + 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) + 0x9021 (PTP_OC_CANON_GetObjectInfoEx) + 0x901b (PTP_OC_CANON_GetPartialObjectEx) + 0x901e (PTP_OC_CANON_GetObjectAttributes) + 0x9019 (PTP_OC_CANON_SendPartialObject) + 0x9006 (PTP_OC_CANON_GetObjectHandleByName) + 0x901c (PTP_OC_CANON_SetObjectTime) + 0x9002 (PTP_OC_CANON_SetObjectArchive) + 0x904c (Unknown PTP_OC) + 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) + 0x9025 (PTP_OC_CANON_SendObjectByPath ) + 0x9038 (Unknown PTP_OC) + 0x9039 (Unknown PTP_OC) + 0x903a (Unknown PTP_OC) + 0x903b (Unknown PTP_OC) + 0x904b (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) + 0x9062 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) +Events Supported: + 0x4001 (CancelTransaction) + 0x4002 (ObjectAdded) + 0x4003 (ObjectRemoved) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4006 (DevicePropChanged) + 0x4007 (ObjectInfoChanged) + 0x4008 (DeviceInfoChanged) + 0x4009 (RequestObjectTransfer) + 0x400a (StoreFull) + 0x400b (DeviceReset) + 0x400c (StorageInfoChanged) + 0x400e (UnreportedStatus) + 0xc001 (Unknown Event) + 0xc005 (Unknown Event) + 0xc00a (Unknown Event) + 0xc101 (Unknown Event) +Device Properties Supported: + 0xd045 (Event Emulate Mode) + 0xd04a (Unknown DPC code) + 0xd02e (Size of Output Data from Camera) + 0xd02f (Size of Input Data to Camera) + 0x5001 (Battery Level) + 0xd002 (Battery Type) + 0xd003 (Battery Mode) + 0xd034 (UNIX Time) + 0xd047 (Type of Slideshow) + 0xd046 (DPOF Version) + 0xd030 (Remote API Version) + 0xd049 (Model ID) + 0xd032 (Camera Model) + 0xd033 (Camera Owner) + 0xd031 (Firmware Version) + 0xd050 (Unknown DPC code) + 0xd051 (Unknown DPC code) + 0xd052 (Unknown DPC code) + 0xd1b0 (Unknown DPC code) + 0xd055 (Unknown DPC code) + 0xd056 (Unknown DPC code) + 0xd106 (Unknown DPC code) + 0xd402 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd303 (Unknown DPC code) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx60hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx60hs.txt new file mode 100644 index 00000000..e33f4872 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx60hs.txt @@ -0,0 +1,261 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX60 HS + Version: 1-14.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 31902433280 (30424 MB) + Free Space (Bytes): 30899929088 (29468 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1442071900 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 57999360 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX60 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,47490 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd053:(readwrite) (type=0x4002) a[0] +Property 0xd054:(readwrite) (type=0x4002) a[0] +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX60 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd055:(readwrite) (type=0x2) 0 +Property 0xd056:(readwrite) (type=0x2) 0 +Property 0xd106:(readwrite) (type=0x2) 0 +Property 0xd1b0:(readwrite) (type=0x2) 0 +Property 0xd111:(read only) (type=0x6) 0 +Property 0xd112:(read only) (type=0x6) 0 + +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/eosviewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX60 HS +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-14.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX60 HS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1442071909 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 57999360 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX60 HS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d053 +Label: PTP Property 0xd053 +Type: TEXT +Current: (null) +/main/other/d054 +Label: PTP Property 0xd054 +Type: TEXT +Current: (null) +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot SX60 HS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d055 +Label: PTP Property 0xd055 +Type: TEXT +Current: 0 +/main/other/d056 +Label: PTP Property 0xd056 +Type: TEXT +Current: 0 +/main/other/d106 +Label: PTP Property 0xd106 +Type: TEXT +Current: 0 +/main/other/d1b0 +Label: PTP Property 0xd1b0 +Type: TEXT +Current: 0 +/main/other/d111 +Label: PTP Property 0xd111 +Type: TEXT +Current: 0 +/main/other/d112 +Label: PTP Property 0xd112 +Type: TEXT +Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx620hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx620hs.txt new file mode 100644 index 00000000..f5adbdf3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx620hs.txt @@ -0,0 +1,241 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX620 HS + Version: 1-15.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Shutter Button + +Storage Devices Summary: +store_00010001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 31902433280 (30424 MB) + Free Space (Bytes): 31850561536 (30375 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1559515191 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 67502080 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX620 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777216 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x4004) a[2] 14337,47490 +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd057:(read only) (type=0xffff) '813063004553' +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX620 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + + +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1559529627 +Printable: Sun Jun 2 22:40:27 2019 +Help: Use 'now' as the current time when setting. + +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon Inc. +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX620 HS +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1-15.0.1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX620 HS +/main/status/firmwareversion +Label: Firmware Version +Type: TEXT +Current: 1.0.0.0 +/main/other/d045 +Label: Event Emulate Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d04a +Label: PTP Property 0xd04a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d02e +Label: Size of Output Data from Camera +Type: TEXT +Current: 524288 +/main/other/d02f +Label: Size of Input Data to Camera +Type: TEXT +Current: 524288 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d002 +Label: Battery Type +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d003 +Label: Battery Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d034 +Label: UNIX Time +Type: TEXT +Current: 1559515227 +/main/other/d047 +Label: Type of Slideshow +Type: TEXT +Current: 0 +/main/other/d046 +Label: DPOF Version +Type: TEXT +Current: 257 +/main/other/d030 +Label: Remote API Version +Type: TEXT +Current: 256 +/main/other/d049 +Label: Model ID +Type: TEXT +Current: 67502080 +/main/other/d032 +Label: Camera Model +Type: TEXT +Current: Canon PowerShot SX620 HS +/main/other/d033 +Label: Camera Owner +Type: TEXT +Current: (null) +/main/other/d031 +Label: Firmware Version +Type: TEXT +Current: 16777216 +/main/other/d050 +Label: PTP Property 0xd050 +Type: TEXT +Current: 0 +/main/other/d051 +Label: PTP Property 0xd051 +Type: TEXT +Current: (null) +/main/other/d052 +Label: PTP Property 0xd052 +Type: TEXT +Current: 0 +/main/other/d057 +Label: PTP Property 0xd057 +Type: TEXT +Current: 813063004553 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon PowerShot SX620 HS +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx720hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx720hs.txt new file mode 100644 index 00000000..f3287ad6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx720hs.txt @@ -0,0 +1,769 @@ +Camera summary: +Manufacturer: Canon Inc. +Model: Canon PowerShot SX720 HS + Version: 1-15.0.1.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture 2 + +Storage Devices Summary: +store_00010001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 15923183616 (15185 MB) + Free Space (Bytes): 15659270144 (14933 MB) + Free Space (Images): -1 + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3) +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0) +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1) +UNIX Time(0xd034):(readwrite) (type=0x6) 1540820816 +Type of Slideshow(0xd047):(read only) (type=0x4) 0 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 67436544 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX720 HS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777472 +Property 0xd050:(read only) (type=0x2) 0 +Property 0xd051:(read only) (type=0x0) Undefined +Property 0xd052:(read only) (type=0x2) 0 +Property 0xd057:(read only) (type=0xffff) '464064001605' +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX720 HS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot SX720 HS + device version: 1-15.0.1.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x9013 (PTP_OC_CANON_CheckEvent) + 0x901f (PTP_OC_CANON_ChangeUSBProtocol) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1012 (Set object protection) + 0x9001 (PTP_OC_CANON_GetPartialObjectInfo) + 0x9021 (PTP_OC_CANON_GetObjectInfoEx) + 0x901b (PTP_OC_CANON_GetPartialObjectEx) + 0x901e (PTP_OC_CANON_GetObjectAttributes) + 0x9019 (PTP_OC_CANON_SendPartialObject) + 0x9006 (PTP_OC_CANON_GetObjectHandleByName) + 0x901c (PTP_OC_CANON_SetObjectTime) + 0x9002 (PTP_OC_CANON_SetObjectArchive) + 0x904c (Unknown PTP_OC) + 0x9024 (PTP_OC_CANON_SendObjectInfoByPath ) + 0x9025 (PTP_OC_CANON_SendObjectByPath ) + 0x9038 (Unknown PTP_OC) + 0x9039 (Unknown PTP_OC) + 0x903a (Unknown PTP_OC) + 0x903b (Unknown PTP_OC) + 0x904b (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) + 0x9062 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9804 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x9182 (PTP_OC_CANON_EOS_NotifyEstimateNumberofImport) + 0x9183 (PTP_OC_CANON_EOS_NotifyNumberofImported) + 0x9184 (PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer) + 0x9185 (PTP_OC_CANON_EOS_NotifyFinish) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x9075 (Unknown PTP_OC) + 0x9076 (Unknown PTP_OC) + 0x9077 (Unknown PTP_OC) + 0x9078 (Unknown PTP_OC) + 0x9079 (Unknown PTP_OC) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x902f (Unknown PTP_OC) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) +Events Supported: + 0x4001 (CancelTransaction) + 0x4002 (ObjectAdded) + 0x4003 (ObjectRemoved) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4006 (DevicePropChanged) + 0x4007 (ObjectInfoChanged) + 0x4008 (DeviceInfoChanged) + 0x4009 (RequestObjectTransfer) + 0x400a (StoreFull) + 0x400b (DeviceReset) + 0x400c (StorageInfoChanged) + 0x400e (UnreportedStatus) + 0xc001 (Unknown Event) + 0xc005 (Unknown Event) + 0xc00a (Unknown Event) + 0xc101 (Unknown Event) +Device Properties Supported: + 0xd045 (Event Emulate Mode) + 0xd04a (Unknown DPC code) + 0xd02e (Size of Output Data from Camera) + 0xd02f (Size of Input Data to Camera) + 0x5001 (Battery Level) + 0xd002 (Battery Type) + 0xd003 (Battery Mode) + 0xd034 (UNIX Time) + 0xd047 (Type of Slideshow) + 0xd046 (DPOF Version) + 0xd030 (Remote API Version) + 0xd049 (Model ID) + 0xd032 (Camera Model) + 0xd033 (Camera Owner) + 0xd031 (Firmware Version) + 0xd050 (Unknown DPC code) + 0xd051 (Unknown DPC code) + 0xd052 (Unknown DPC code) + 0xd057 (Unknown DPC code) + 0xd402 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd303 (Unknown DPC code) + + +Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) data... +Reading 1024 = 0x400 bytes from port... +Read 1024 = 0x400 bytes from port: (hexdump of 1024 bytes) +0000 03 05 00 00 02 00 16 91-0a 00 00 00 15 00 00 00 ................ +0010 a5 c1 00 00 0d 00 00 00-04 00 00 00 00 01 00 00 ................ +0020 30 16 00 00 00 a5 c1 00-00 0e 00 00 00 02 00 00 0............... +0030 00 00 00 00 00 00 00 14-00 00 00 a5 c1 00 00 0c ................ +0040 00 00 00 08 00 00 00 00-01 00 00 10 00 00 00 89 ................ +0050 c1 00 00 11 d1 00 00 02-00 00 00 10 00 00 00 89 ................ +0060 c1 00 00 12 d1 00 00 00-00 00 00 10 00 00 00 89 ................ +0070 c1 00 00 16 d1 00 00 00-00 05 04 10 00 00 00 89 ................ +0080 c1 00 00 1e d1 00 00 01-00 01 00 10 00 00 00 89 ................ +0090 c1 00 00 36 d1 00 00 00-00 00 00 20 00 00 00 89 ...6....... .... +00a0 c1 00 00 20 d1 00 00 01-00 00 00 10 00 00 00 01 ... ............ +00b0 00 00 00 00 00 00 00 03-00 00 00 10 00 00 00 89 ................ +00c0 c1 00 00 38 d1 00 00 2b-02 00 00 10 00 00 00 89 ...8...+........ +00d0 c1 00 00 75 d1 00 00 07-00 00 00 24 00 00 00 89 ...u.......$.... +00e0 c1 00 00 77 d1 00 00 18-00 00 00 00 00 00 00 00 ...w............ +00f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 10 ................ +0100 00 00 00 89 c1 00 00 7c-d1 00 00 02 a0 d6 5b 10 .......|......[. +0110 00 00 00 89 c1 00 00 94-d1 00 00 02 00 00 00 10 ................ +0120 00 00 00 89 c1 00 00 99-d1 00 00 08 00 00 00 10 ................ +0130 00 00 00 89 c1 00 00 b0-d1 00 00 00 00 00 00 10 ................ +0140 00 00 00 89 c1 00 00 b1-d1 00 00 01 00 00 00 10 ................ +0150 00 00 00 89 c1 00 00 b2-d1 00 00 00 00 00 00 10 ................ +0160 00 00 00 89 c1 00 00 58-d0 00 00 00 00 00 00 60 .......X.......` +0170 00 00 00 89 c1 00 00 68-d1 00 00 04 00 00 00 14 .......h........ +0180 00 00 00 01 00 00 00 00-00 00 00 40 14 00 00 30 ...........@...0 +0190 0f 00 00 14 00 00 00 01-00 00 00 05 00 00 00 40 ...............@ +01a0 0e 00 00 b0 0a 00 00 14-00 00 00 01 00 00 00 06 ................ +01b0 00 00 00 00 08 00 00 00-06 00 00 14 00 00 00 01 ................ +01c0 00 00 00 02 00 00 00 80-02 00 00 e0 01 00 00 48 ...............H +01d0 00 00 00 89 c1 00 00 3f-d1 00 00 01 00 00 00 6a .......?.......j +01e0 70 2e 63 6f 2e 63 61 6e-6f 6e 2e 69 63 2e 63 61 p.co.canon.ic.ca +01f0 6d 65 72 61 63 6f 6e 6e-65 63 74 00 00 00 00 00 meraconnect..... +0200 00 00 00 00 00 00 00 63-61 6e 6f 6e 2d 61 30 31 .......canon-a01 +0210 00 00 00 00 00 00 00 18-00 00 00 89 c1 00 00 59 ...............Y +0220 d0 00 00 0c 00 00 00 00-00 00 00 00 00 00 00 10 ................ +0230 00 00 00 89 c1 00 00 01-d1 00 00 30 00 00 00 10 ...........0.... +0240 00 00 00 89 c1 00 00 02-d1 00 00 7d 00 00 00 10 ...........}.... +0250 00 00 00 89 c1 00 00 03-d1 00 00 00 00 00 00 10 ................ +0260 00 00 00 89 c1 00 00 04-d1 00 00 00 00 00 00 10 ................ +0270 00 00 00 89 c1 00 00 05-d1 00 00 02 00 00 00 10 ................ +0280 00 00 00 89 c1 00 00 06-d1 00 00 00 00 00 00 10 ................ +0290 00 00 00 89 c1 00 00 07-d1 00 00 03 00 00 00 10 ................ +02a0 00 00 00 89 c1 00 00 08-d1 00 00 01 00 00 00 10 ................ +02b0 00 00 00 89 c1 00 00 09-d1 00 00 00 00 00 00 10 ................ +02c0 00 00 00 89 c1 00 00 ba-d1 00 00 02 00 00 00 10 ................ +02d0 00 00 00 89 c1 00 00 c9-d1 00 00 01 00 00 00 14 ................ +02e0 00 00 00 8a c1 00 00 11-d1 00 00 00 00 00 00 00 ................ +02f0 00 00 00 14 00 00 00 8a-c1 00 00 12 d1 00 00 00 ................ +0300 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 16 ................ +0310 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0320 c1 00 00 1e d1 00 00 00-00 00 00 00 00 00 00 14 ................ +0330 00 00 00 8a c1 00 00 20-d1 00 00 00 00 00 00 00 ....... ........ +0340 00 00 00 14 00 00 00 8a-c1 00 00 38 d1 00 00 00 ...........8.... +0350 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 77 ...............w +0360 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +0370 c1 00 00 7c d1 00 00 00-00 00 00 00 00 00 00 14 ...|............ +0380 00 00 00 8a c1 00 00 94-d1 00 00 00 00 00 00 00 ................ +0390 00 00 00 1c 00 00 00 8a-c1 00 00 b0 d1 00 00 03 ................ +03a0 00 00 00 02 00 00 00 00-00 00 00 08 00 00 00 14 ................ +03b0 00 00 00 8a c1 00 00 b1-d1 00 00 00 00 00 00 00 ................ +03c0 00 00 00 38 00 00 00 8a-c1 00 00 01 d1 00 00 03 ...8............ +03d0 00 00 00 09 00 00 00 a2-00 00 00 25 00 00 00 28 ...........%...( +03e0 00 00 00 2b 00 00 00 2d-00 00 00 30 00 00 00 33 ...+...-...0...3 +03f0 00 00 00 35 00 00 00 38-00 00 00 14 00 00 00 8a ...5...8........ + +Reading 259 = 0x103 bytes from port... +Read 259 = 0x103 bytes from port: (hexdump of 259 bytes) +0000 c1 00 00 02 d1 00 00 03-00 00 00 00 00 00 00 34 ...............4 +0010 00 00 00 8a c1 00 00 03-d1 00 00 03 00 00 00 08 ................ +0020 00 00 00 00 00 00 00 45-00 00 00 48 00 00 00 50 .......E...H...P +0030 00 00 00 58 00 00 00 60-00 00 00 68 00 00 00 70 ...X...`...h...p +0040 00 00 00 48 00 00 00 8a-c1 00 00 04 d1 00 00 03 ...H............ +0050 00 00 00 0d 00 00 00 f0-00 00 00 f3 00 00 00 f5 ................ +0060 00 00 00 f8 00 00 00 fb-00 00 00 fd 00 00 00 00 ................ +0070 00 00 00 03 00 00 00 05-00 00 00 08 00 00 00 0b ................ +0080 00 00 00 0d 00 00 00 10-00 00 00 14 00 00 00 8a ................ +0090 c1 00 00 05 d1 00 00 00-00 00 00 00 00 00 00 14 ................ +00a0 00 00 00 8a c1 00 00 07-d1 00 00 00 00 00 00 00 ................ +00b0 00 00 00 14 00 00 00 8a-c1 00 00 08 d1 00 00 00 ................ +00c0 00 00 00 00 00 00 00 14-00 00 00 8a c1 00 00 1b ................ +00d0 d1 00 00 00 00 00 00 00-00 00 00 14 00 00 00 8a ................ +00e0 c1 00 00 c9 d1 00 00 00-00 00 00 00 00 00 00 0c ................ +00f0 00 00 00 a4 c1 00 00 01-00 01 00 08 00 00 00 00 ................ +0100 00 00 00 - ... + +Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) response... +Reading 1024 = 0x400 bytes from port... +Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes) +0000 0c 00 00 00 03 00 01 20-0a 00 00 00 ....... .... + +olcinfoversion is 0 +event 0: EOS event OLCInfoChanged (size 21) + 0: 0d + 1: 00 + 2: 00 + 3: 00 + 4: 04 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 + 12: 30 +olcinfoversion is 0 +event 2: EOS event OLCInfoChanged (size 22) + 0: 0e + 1: 00 + 2: 00 + 3: 00 + 4: 02 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 +olcinfoversion is 0 +event 4: EOS event OLCInfoChanged (size 20) + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 08 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 01 + 10: 00 + 11: 00 +event 6: EOS prop d111 info record, datasize is 4 +event 6: currentvalue of d111 is 2 +event 7: EOS prop d112 info record, datasize is 4 +event 7: currentvalue of d112 is 0 +event 8: EOS prop d116 info record, datasize is 4 +event 8: currentvalue of d116 is 4050000 +event 9: EOS prop d11e info record, datasize is 4 +event 9: currentvalue of d11e is 10001 +event 10: EOS prop d136 info record, datasize is 4 +event 10: Unknown EOS property d136, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 11: EOS prop d120 info record, datasize is 20 +event 11: decoded imageformat, currentvalue of d120 is 300 +event 12: EOS prop d138 info record, datasize is 4 +event 12: Unknown EOS property d138, datasize is 4 + 0: 2b + 1: 02 + 2: 00 + 3: 00 +event 13: EOS prop d175 info record, datasize is 4 +event 13: Unknown EOS property d175, datasize is 4 + 0: 07 + 1: 00 + 2: 00 + 3: 00 +event 14: EOS prop d177 info record, datasize is 24 +event 14: Unknown EOS property d177, datasize is 24 + 0: 18 + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 00 + 17: 00 + 18: 00 + 19: 00 + 20: 00 + 21: 00 + 22: 00 + 23: 00 +event 15: EOS prop d17c info record, datasize is 4 +event 15: currentvalue of d17c is 5bd6a002 +event 16: EOS prop d194 info record, datasize is 4 +event 16: currentvalue of d194 is 2 +event 17: EOS prop d199 info record, datasize is 4 +event 17: currentvalue of d199 is 8 +event 18: EOS prop d1b0 info record, datasize is 4 +event 18: currentvalue of d1b0 is 0 +event 19: EOS prop d1b1 info record, datasize is 4 +event 19: currentvalue of d1b1 is 1 +event 20: EOS prop d1b2 info record, datasize is 4 +event 20: Unknown EOS property d1b2, datasize is 4, using uint32 + 0: 0x 0 +event 20: currentvalue of d1b2 is 0 +event 21: EOS prop d058 info record, datasize is 4 +event 21: Unknown EOS property d058, datasize is 4 + 0: 00 + 1: 00 + 2: 00 + 3: 00 +event 22: EOS prop d168 info record, datasize is 84 +event 22: Unknown EOS property d168, datasize is 84 + 0: 04 + 1: 00 + 2: 00 + 3: 00 + 4: 14 + 5: 00 + 6: 00 + 7: 00 + 8: 01 + 9: 00 + 10: 00 + 11: 00 + 12: 00 + 13: 00 + 14: 00 + 15: 00 + 16: 40 + 17: 14 + 18: 00 + 19: 00 + 20: 30 + 21: 0f + 22: 00 + 23: 00 + 24: 14 + 25: 00 + 26: 00 + 27: 00 + 28: 01 + 29: 00 + 30: 00 + 31: 00 + 32: 05 + 33: 00 + 34: 00 + 35: 00 + 36: 40 + 37: 0e + 38: 00 + 39: 00 + 40: b0 + 41: 0a + 42: 00 + 43: 00 + 44: 14 + 45: 00 + 46: 00 + 47: 00 + 48: 01 + 49: 00 + 50: 00 + 51: 00 + 52: 06 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 08 + 58: 00 + 59: 00 + 60: 00 + 61: 06 + 62: 00 + 63: 00 + 64: 14 + 65: 00 + 66: 00 + 67: 00 + 68: 01 + 69: 00 + 70: 00 + 71: 00 + 72: 02 + 73: 00 + 74: 00 + 75: 00 + 76: 80 + 77: 02 + 78: 00 + 79: 00 + 80: e0 + 81: 01 + 82: 00 + 83: 00 +event 23: EOS prop d13f info record, datasize is 60 +event 23: Unknown EOS property d13f, datasize is 60 + 0: 01 + 1: 00 + 2: 00 + 3: 00 + 4: 6a + 5: 70 + 6: 2e + 7: 63 + 8: 6f + 9: 2e + 10: 63 + 11: 61 + 12: 6e + 13: 6f + 14: 6e + 15: 2e + 16: 69 + 17: 63 + 18: 2e + 19: 63 + 20: 61 + 21: 6d + 22: 65 + 23: 72 + 24: 61 + 25: 63 + 26: 6f + 27: 6e + 28: 6e + 29: 65 + 30: 63 + 31: 74 + 32: 00 + 33: 00 + 34: 00 + 35: 00 + 36: 00 + 37: 00 + 38: 00 + 39: 00 + 40: 00 + 41: 00 + 42: 00 + 43: 00 + 44: 63 + 45: 61 + 46: 6e + 47: 6f + 48: 6e + 49: 2d + 50: 61 + 51: 30 + 52: 31 + 53: 00 + 54: 00 + 55: 00 + 56: 00 + 57: 00 + 58: 00 + 59: 00 +event 24: EOS prop d059 info record, datasize is 12 +event 24: Unknown EOS property d059, datasize is 12 + 0: 0c + 1: 00 + 2: 00 + 3: 00 + 4: 00 + 5: 00 + 6: 00 + 7: 00 + 8: 00 + 9: 00 + 10: 00 + 11: 00 +event 25: EOS prop d101 info record, datasize is 4 +event 25: currentvalue of d101 is 30 +event 26: EOS prop d102 info record, datasize is 4 +event 26: currentvalue of d102 is 7d +event 27: EOS prop d103 info record, datasize is 4 +event 27: currentvalue of d103 is 0 +event 28: EOS prop d104 info record, datasize is 4 +event 28: currentvalue of d104 is 0 +event 29: EOS prop d105 info record, datasize is 4 +event 29: currentvalue of d105 is 2 +event 30: EOS prop d106 info record, datasize is 4 +event 30: currentvalue of d106 is 0 +event 31: EOS prop d107 info record, datasize is 4 +event 31: currentvalue of d107 is 3 +event 32: EOS prop d108 info record, datasize is 4 +event 32: currentvalue of d108 is 1 +event 33: EOS prop d109 info record, datasize is 4 +event 33: currentvalue of d109 is 0 +event 34: EOS prop d1ba info record, datasize is 4 +event 34: Unknown EOS property d1ba, datasize is 4, using uint32 + 0: 0x 2 +event 34: currentvalue of d1ba is 2 +event 35: EOS prop d1c9 info record, datasize is 4 +event 35: currentvalue of d1c9 is 1 +event 36: EOS prop d111 desc record, datasize 0, propxtype 0 +event 36: propxtype is 0 for d111, unhandled, size 20 +event 37: EOS prop d112 desc record, datasize 0, propxtype 0 +event 37: propxtype is 0 for d112, unhandled, size 20 +event 38: EOS prop d116 desc record, datasize 0, propxtype 0 +event 38: propxtype is 0 for d116, unhandled, size 20 +event 39: EOS prop d11e desc record, datasize 0, propxtype 0 +event 39: propxtype is 0 for d11e, unhandled, size 20 +event 40: EOS prop d120 desc record, datasize 0, propxtype 0 +event 40: propxtype is 0 for d120, unhandled, size 20 +event 41: EOS prop d138 desc record, datasize 0, propxtype 0 +event 41: propxtype is 0 for d138, unhandled, size 20 +event 42: EOS prop d177 desc record, datasize 0, propxtype 0 +event 42: propxtype is 0 for d177, unhandled, size 20 +event 43: EOS prop d17c desc record, datasize 0, propxtype 0 +event 43: propxtype is 0 for d17c, unhandled, size 20 +event 44: EOS prop d194 desc record, datasize 0, propxtype 0 +event 44: propxtype is 0 for d194, unhandled, size 20 +event 45: EOS prop d1b0 desc record, datasize 8, propxtype 3 +event 45: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 2. +event 45: suppval[0] of d1b0 is 0x0. +event 45: suppval[1] of d1b0 is 0x8. +event 46: EOS prop d1b1 desc record, datasize 0, propxtype 0 +event 46: propxtype is 0 for d1b1, unhandled, size 20 +event 47: EOS prop d101 desc record, datasize 36, propxtype 3 +event 47: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 9. +event 47: suppval[0] of d101 is 0xa2. +event 47: suppval[1] of d101 is 0x25. +event 47: suppval[2] of d101 is 0x28. +event 47: suppval[3] of d101 is 0x2b. +event 47: suppval[4] of d101 is 0x2d. +event 47: suppval[5] of d101 is 0x30. +event 47: suppval[6] of d101 is 0x33. +event 47: suppval[7] of d101 is 0x35. +event 47: suppval[8] of d101 is 0x38. +event 48: EOS prop d102 desc record, datasize 0, propxtype 3 +event 49: EOS prop d103 desc record, datasize 32, propxtype 3 +event 49: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 8. +event 49: suppval[0] of d103 is 0x0. +event 49: suppval[1] of d103 is 0x45. +event 49: suppval[2] of d103 is 0x48. +event 49: suppval[3] of d103 is 0x50. +event 49: suppval[4] of d103 is 0x58. +event 49: suppval[5] of d103 is 0x60. +event 49: suppval[6] of d103 is 0x68. +event 49: suppval[7] of d103 is 0x70. +event 50: EOS prop d104 desc record, datasize 52, propxtype 3 +event 50: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 13. +event 50: suppval[0] of d104 is 0xf0. +event 50: suppval[1] of d104 is 0xf3. +event 50: suppval[2] of d104 is 0xf5. +event 50: suppval[3] of d104 is 0xf8. +event 50: suppval[4] of d104 is 0xfb. +event 50: suppval[5] of d104 is 0xfd. +event 50: suppval[6] of d104 is 0x0. +event 50: suppval[7] of d104 is 0x3. +event 50: suppval[8] of d104 is 0x5. +event 50: suppval[9] of d104 is 0x8. +event 50: suppval[10] of d104 is 0xb. +event 50: suppval[11] of d104 is 0xd. +event 50: suppval[12] of d104 is 0x10. +event 51: EOS prop d105 desc record, datasize 0, propxtype 0 +event 51: propxtype is 0 for d105, unhandled, size 20 +event 52: EOS prop d107 desc record, datasize 0, propxtype 0 +event 52: propxtype is 0 for d107, unhandled, size 20 +event 53: EOS prop d108 desc record, datasize 0, propxtype 0 +event 53: propxtype is 0 for d108, unhandled, size 20 +event 54: EOS prop d11b desc record, datasize 0, propxtype 0 +event 54: propdesc d11b, default value not found. +event 55: EOS prop d1c9 desc record, datasize 0, propxtype 0 +event 55: propxtype is 0 for d1c9, unhandled, size 20 +event 56: unknown EOS event c1a4 + 8: 01 + 9: 00 + 10: 01 + 11: 00 +Sending PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) request... +Writing 12 = 0xc bytes to port... +Wrote 12 = 0xc bytes to port: (hexdump of 12 bytes) +0000 0c 00 00 00 01 00 16 91-0b 00 00 00 ............ + +Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) data... +Reading 1024 = 0x400 bytes from port... +Read 20 = 0x14 out of 1024 bytes from port: (hexdump of 20 bytes) +0000 14 00 00 00 02 00 16 91-0b 00 00 00 08 00 00 00 ................ +0010 00 00 00 00 - .... + +Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) response... +Reading 1024 = 0x400 bytes from port... +Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes) +0000 0c 00 00 00 03 00 01 20-0b 00 00 00 ....... .... + +Sending PTP_OC 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) (0xd115) request... +Writing 16 = 0x10 bytes to port... +Wrote 16 = 0x10 bytes to port: (hexdump of 16 bytes) +0000 10 00 00 00 01 00 27 91-0c 00 00 00 15 d1 00 00 ......'......... + +Reading PTP_OC 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) response... +Reading 1024 = 0x400 bytes from port... +Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes) +0000 0c 00 00 00 03 00 01 20-0c 00 00 00 ....... .... + +Sending PTP_OC 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) (0xd1d0) request... +Writing 16 = 0x10 bytes to port... +Wrote 16 = 0x10 bytes to port: (hexdump of 16 bytes) +0000 10 00 00 00 01 00 27 91-0d 00 00 00 d0 d1 00 00 ......'......... + +Reading PTP_OC 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) response... +Reading 1024 = 0x400 bytes from port... +Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes) +0000 0c 00 00 00 03 00 01 20-0d 00 00 00 ....... .... + +Sending PTP_OC 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) (0xd1d1) request... +Writing 16 = 0x10 bytes to port... +Wrote 16 = 0x10 bytes to port: (hexdump of 16 bytes) +0000 10 00 00 00 01 00 27 91-0e 00 00 00 d1 d1 00 00 ......'......... + +Reading PTP_OC 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) response... +Reading 1024 = 0x400 bytes from port... +Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes) +0000 0c 00 00 00 03 00 01 20-0e 00 00 00 ....... .... + +Sending PTP_OC 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) (0xd1af) request... +Writing 16 = 0x10 bytes to port... +Wrote 16 = 0x10 bytes to port: (hexdump of 16 bytes) +0000 10 00 00 00 01 00 27 91-0f 00 00 00 af d1 00 00 ......'......... + +Reading PTP_OC 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) response... +Reading 1024 = 0x400 bytes from port... +Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes) +0000 0c 00 00 00 03 00 01 20-0f 00 00 00 ....... .... + +Sending PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) request... +Writing 12 = 0xc bytes to port... +Wrote 12 = 0xc bytes to port: (hexdump of 12 bytes) +0000 0c 00 00 00 01 00 16 91-10 00 00 00 ............ + +Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) data... +Reading 1024 = 0x400 bytes from port... +Read 260 = 0x104 out of 1024 bytes from port: (hexdump of 260 bytes) +0000 04 01 00 00 02 00 16 91-10 00 00 00 2c 00 00 00 ............,... +0010 89 c1 00 00 15 d1 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-4c 00 00 00 89 c1 00 00 ........L....... +0040 d0 d1 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0080 00 00 00 00 4c 00 00 00-89 c1 00 00 d1 d1 00 00 ....L........... +0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00d0 2c 00 00 00 89 c1 00 00-af d1 00 00 34 36 34 30 ,...........4640 +00e0 36 34 30 30 31 36 30 35-00 00 00 00 00 00 00 00 64001605........ +00f0 00 00 00 00 00 00 00 00-00 00 00 00 08 00 00 00 ................ +0100 00 00 00 00 - .... + +Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) response... +Reading 1024 = 0x400 bytes from port... +Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes) +0000 0c 00 00 00 03 00 01 20-10 00 00 00 ....... .... + +event 0: EOS prop d115 info record, datasize is 32 +event 0: currentvalue of d115 is +event 1: EOS prop d1d0 info record, datasize is 64 +event 1: currentvalue of d1d0 is +event 2: EOS prop d1d1 info record, datasize is 64 +event 2: currentvalue of d1d1 is +event 3: EOS prop d1af info record, datasize is 32 +event 3: currentvalue of d1af is 464064001605 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx740hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx740hs.txt new file mode 100644 index 00000000..83ee5d49 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-powershot-sx740hs.txt @@ -0,0 +1,3385 @@ + +Camera summary: +Manufacturer: Canon.Inc +Model: Canon PowerShot SX740 HS + Version: 3-1.0.0 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Capture 2 + Canon Wifi support + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 15923150848 (15185 MB) + Free Space (Bytes): 4963205120 (4733 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX740 HS' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + +Device info: +Manufacturer: Canon.Inc + Model: Canon PowerShot SX740 HS + device version: 3-1.0.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x9101 (PTP_OC_CANON_EOS_GetStorageIDs) + 0x1005 (Get storage info) + 0x9102 (PTP_OC_CANON_EOS_GetStorageInfo) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x9103 (PTP_OC_CANON_EOS_GetObjectInfo) + 0x9170 (PTP_OC_CANON_EOS_GetObjectInfo64) + 0x1009 (Get object) + 0x9104 (PTP_OC_CANON_EOS_GetObject) + 0x9171 (PTP_OC_CANON_EOS_GetObject64) + 0x100a (Get thumbnail) + 0x100f (Format storage) + 0x9106 (PTP_OC_CANON_EOS_FormatStore) + 0x1014 (Get device property description) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x100c (Send object info) + 0x100d (Send object) + 0x9107 (PTP_OC_CANON_EOS_GetPartialObject) + 0x9172 (PTP_OC_CANON_EOS_GetPartialObject64) + 0x912c (PTP_OC_CANON_EOS_GetPartialObjectEx) + 0x9174 (PTP_OC_CANON_EOS_GetPartialObjectEX64) + 0x9114 (PTP_OC_CANON_EOS_SetRemoteMode) + 0x9115 (PTP_OC_CANON_EOS_SetEventMode) + 0x9116 (PTP_OC_CANON_EOS_GetEvent) + 0x9117 (PTP_OC_CANON_EOS_TransferComplete) + 0x9109 (PTP_OC_CANON_EOS_GetObjectInfoEx) + 0x9173 (PTP_OC_CANON_EOS_GetObjectInfoEx64) + 0x910a (PTP_OC_CANON_EOS_GetThumbEx) + 0x9132 (PTP_OC_CANON_EOS_EndGetPartialObjectEx) + 0x9033 (PTP_OC_CANON_GetMACAddress) + 0x9068 (PTP_OC_CANON_GetWebServiceSpec) + 0x9069 (PTP_OC_CANON_GetWebServiceData) + 0x906a (Unknown PTP_OC) + 0x906b (PTP_OC_CANON_SetWebServiceData) + 0x911a (PTP_OC_CANON_EOS_PCHDDCapacity) + 0x911d (PTP_OC_CANON_EOS_KeepDeviceOn) + 0x911e (PTP_OC_CANON_EOS_SetNullPacketMode) + 0x911f (PTP_OC_CANON_EOS_UpdateFirmware) + 0x9122 (PTP_OC_CANON_EOS_SetWftProfile) + 0x9123 (PTP_OC_CANON_EOS_GetWftProfile) + 0x9124 (PTP_OC_CANON_EOS_SetProfileToWft) + 0x9131 (PTP_OC_CANON_EOS_PopupBuiltinFlash) + 0x9133 (PTP_OC_CANON_EOS_MovieSelectSWOn) + 0x9134 (PTP_OC_CANON_EOS_MovieSelectSWOff) + 0x9135 (PTP_OC_CANON_EOS_GetCTGInfo) + 0x913c (PTP_OC_CANON_EOS_SetCTGInfo) + 0x913e (PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel) + 0x913f (PTP_OC_CANON_EOS_GetCameraSupport) + 0x9140 (PTP_OC_CANON_EOS_SetRating) + 0x9154 (PTP_OC_CANON_EOS_DoAf) + 0x9155 (PTP_OC_CANON_EOS_DriveLens) + 0x9157 (PTP_OC_CANON_EOS_ClickWB) + 0x9158 (PTP_OC_CANON_EOS_Zoom) + 0x9159 (PTP_OC_CANON_EOS_ZoomPosition) + 0x915a (PTP_OC_CANON_EOS_SetLiveAfFrame) + 0x915b (PTP_OC_CANON_EOS_TouchAfPosition) + 0x9160 (PTP_OC_CANON_EOS_AfCancel) + 0x91fe (PTP_OC_CANON_EOS_FAPIMessageTX) + 0x91ff (PTP_OC_CANON_EOS_FAPIMessageRX) + 0x906c (PTP_OC_CANON_GetRootCertificateSpec) + 0x906d (PTP_OC_CANON_GetRootCertificateData) + 0x906e (Unknown PTP_OC) + 0x906f (PTP_OC_CANON_SetRootCertificateData) + 0x9086 (Unknown PTP_OC) + 0x9108 (PTP_OC_CANON_EOS_GetDeviceInfoEx) + 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) + 0x912b (PTP_OC_CANON_EOS_ChangePhotoStudioMode) + 0x9130 (PTP_OC_CANON_EOS_ResetMirrorLockupState) + 0x913d (PTP_OC_CANON_EOS_SetRequestOLCInfoGroup) + 0x915c (PTP_OC_CANON_EOS_SetLvPcFlavoreditMode) + 0x915d (PTP_OC_CANON_EOS_SetLvPcFlavoreditParam) + 0x911b (PTP_OC_CANON_EOS_SetUILock) + 0x911c (PTP_OC_CANON_EOS_ResetUILock) + 0x9153 (PTP_OC_CANON_EOS_GetViewFinderData) + 0x9128 (PTP_OC_CANON_EOS_RemoteReleaseOn) + 0x9129 (PTP_OC_CANON_EOS_RemoteReleaseOff) + 0x902f (Unknown PTP_OC) + 0x910c (PTP_OC_CANON_EOS_SetObjectAttributes) + 0x910e (PTP_OC_CANON_EOS_SetObjectTime) + 0x91f0 (PTP_OC_CANON_EOS_TransferComplete2) + 0x9127 (PTP_OC_CANON_EOS_RequestDevicePropValue) + 0x91f1 (PTP_OC_CANON_EOS_CancelTransfer2) + 0x91e1 (Unknown PTP_OC) + 0x91e2 (Unknown PTP_OC) + 0x91e3 (Unknown PTP_OC) + 0x91e4 (Unknown PTP_OC) + 0x91e6 (Unknown PTP_OC) + 0x91e7 (Unknown PTP_OC) + 0x91e8 (PTP_OC_CANON_EOS_NotifyNetworkError) + 0x91e9 (PTP_OC_CANON_EOS_AdapterTransferProgress) + 0x91ea (Unknown PTP_OC) + 0x91eb (Unknown PTP_OC) + 0x91ec (Unknown PTP_OC) + 0x91ed (Unknown PTP_OC) + 0x91ee (Unknown PTP_OC) + 0x91ef (Unknown PTP_OC) + 0x91f8 (Unknown PTP_OC) + 0x91f9 (Unknown PTP_OC) + 0x9144 (PTP_OC_CANON_EOS_GpsLoggingDataMode) + 0x9145 (PTP_OC_CANON_EOS_GetGpsLogCurrentHandle) + 0x91d3 (Unknown PTP_OC) + 0x91d4 (Unknown PTP_OC) + 0x9136 (PTP_OC_CANON_EOS_GetLensAdjust) + 0x9137 (PTP_OC_CANON_EOS_SetLensAdjust) + 0x9146 (PTP_OC_CANON_EOS_SetImageRecoveryData) + 0x916b (Unknown PTP_OC) + 0x9147 (PTP_OC_CANON_EOS_GetImageRecoveryList) + 0x916c (Unknown PTP_OC) + 0x9148 (PTP_OC_CANON_EOS_FormatImageRecoveryData) + 0x9149 (PTP_OC_CANON_EOS_GetPresetLensAdjustParam) + 0x91df (Unknown PTP_OC) + 0x91fb (Unknown PTP_OC) + 0x91fc (Unknown PTP_OC) + 0x914a (PTP_OC_CANON_EOS_GetRawDispImage) + 0x910f (PTP_OC_CANON_EOS_RemoteRelease) + 0x914b (PTP_OC_CANON_EOS_SaveImageRecoveryData) + 0x9141 (PTP_OC_CANON_EOS_RequestInnerDevelopStart) + 0x9143 (PTP_OC_CANON_EOS_RequestInnerDevelopEnd) + 0x100b (Delete object) + 0x9105 (PTP_OC_CANON_EOS_DeleteObject) + 0x912d (Unknown PTP_OC) + 0x912e (Unknown PTP_OC) + 0x912f (Unknown PTP_OC) + 0x914c (PTP_OC_CANON_EOS_RequestBLE) + 0x9139 (PTP_OC_CANON_EOS_CreateHandle) + 0x913a (PTP_OC_CANON_EOS_SendPartialObjectEx) + 0x913b (PTP_OC_CANON_EOS_EndSendPartialObjectEx) + 0x914e (Unknown PTP_OC) + 0x91d7 (Unknown PTP_OC) + 0x91d8 (Unknown PTP_OC) + 0x91d9 (Unknown PTP_OC) + 0x91da (Unknown PTP_OC) + 0x91db (Unknown PTP_OC) + 0x91dc (Unknown PTP_OC) + 0x91dd (Unknown PTP_OC) + 0x91de (Unknown PTP_OC) + 0x91d5 (Unknown PTP_OC) + 0x9180 (Unknown PTP_OC) + 0x9181 (Unknown PTP_OC) + 0x9182 (PTP_OC_CANON_EOS_NotifyEstimateNumberofImport) + 0x9183 (PTP_OC_CANON_EOS_NotifyNumberofImported) + 0x9184 (PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer) + 0x9185 (PTP_OC_CANON_EOS_NotifyFinish) + 0x9138 (PTP_OC_CANON_EOS_GetMusicInfo) + 0x9118 (PTP_OC_CANON_EOS_CancelTransfer) + 0x91f5 (Unknown PTP_OC) + 0x91f6 (Unknown PTP_OC) + 0x917f (Unknown PTP_OC) + 0x914d (PTP_OC_CANON_EOS_DrivePowerZoom) + 0x914f (PTP_OC_CANON_EOS_GetIptcData) + 0x9150 (PTP_OC_CANON_EOS_SetIptcData) + 0x91f2 (Unknown PTP_OC) + 0x91f3 (Unknown PTP_OC) + 0x91f4 (Unknown PTP_OC) + 0x91fd (Unknown PTP_OC) + 0x916f (Unknown PTP_OC) + 0x916e (Unknown PTP_OC) + 0x916d (Unknown PTP_OC) + 0x9177 (Unknown PTP_OC) + 0x91b9 (Unknown PTP_OC) + 0x9050 (Unknown PTP_OC) + 0x9051 (Unknown PTP_OC) + 0x905c (Unknown PTP_OC) + 0x905d (Unknown PTP_OC) + 0x9060 (Unknown PTP_OC) +Events Supported: + 0xc181 (Unknown Event) + 0x4003 (ObjectRemoved) + 0xc183 (Unknown Event) + 0xc184 (Unknown Event) + 0xc185 (Unknown Event) + 0xc186 (Unknown Event) + 0xc187 (Unknown Event) + 0xc188 (Unknown Event) + 0xc189 (Unknown Event) + 0xc18a (Unknown Event) + 0xc18b (Unknown Event) + 0xc18d (Unknown Event) + 0xc18e (Unknown Event) + 0xc18f (Unknown Event) + 0xc190 (Unknown Event) + 0xc191 (Unknown Event) + 0xc1a0 (Unknown Event) + 0xc1a1 (Unknown Event) + 0x4009 (RequestObjectTransfer) +Device Properties Supported: + 0xd402 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd303 (Unknown DPC code) + 0x5001 (Battery Level) + +0000 24 1d 00 00 02 00 16 91-0b 00 00 00 10 00 00 00 $............... +0010 89 c1 00 00 16 d1 00 00-01 08 00 00 10 00 00 00 ................ +0020 89 c1 00 00 05 d1 00 00-03 00 00 00 10 00 00 00 ................ +0030 89 c1 00 00 38 d1 00 00-03 00 00 00 10 00 00 00 ....8........... +0040 89 c1 00 00 02 d1 00 00-6d 00 00 00 10 00 00 00 ........m....... +0050 89 c1 00 00 01 d1 00 00-28 00 00 00 10 00 00 00 ........(....... +0060 89 c1 00 00 03 d1 00 00-00 00 00 00 10 00 00 00 ................ +0070 89 c1 00 00 06 d1 00 00-00 00 00 00 10 00 00 00 ................ +0080 89 c1 00 00 08 d1 00 00-00 00 00 00 10 00 00 00 ................ +0090 89 c1 00 00 07 d1 00 00-03 00 00 00 10 00 00 00 ................ +00a0 89 c1 00 00 09 d1 00 00-00 00 00 00 10 00 00 00 ................ +00b0 89 c1 00 00 1b d1 00 00-a1 02 00 00 10 00 00 00 ................ +00c0 89 c1 00 00 04 d1 00 00-00 00 00 00 10 00 00 00 ................ +00d0 89 c1 00 00 0c d1 00 00-00 00 00 00 10 00 00 00 ................ +00e0 89 c1 00 00 0b d1 00 00-00 00 00 00 10 00 00 00 ................ +00f0 89 c1 00 00 0e d1 00 00-00 00 00 00 10 00 00 00 ................ +0100 89 c1 00 00 0d d1 00 00-00 00 00 00 10 00 00 00 ................ +0110 89 c1 00 00 d9 d1 00 00-00 00 00 00 10 00 00 00 ................ +0120 89 c1 00 00 d5 d1 00 00-00 00 00 00 10 00 00 00 ................ +0130 89 c1 00 00 c1 d1 00 00-03 00 00 00 10 00 00 00 ................ +0140 89 c1 00 00 0f d1 00 00-00 00 00 00 10 00 00 00 ................ +0150 89 c1 00 00 14 d1 00 00-1e 00 00 00 10 00 00 00 ................ +0160 89 c1 00 00 b7 d1 00 00-00 00 00 00 10 00 00 00 ................ +0170 89 c1 00 00 10 d1 00 00-00 00 00 00 34 00 00 00 ............4... +0180 89 c1 00 00 00 00 00 00-28 00 00 00 01 00 00 00 ........(....... +0190 ff ff ff ff 05 00 00 00-00 00 00 00 00 00 00 00 ................ +01a0 00 00 00 00 00 00 00 00-04 00 00 00 04 00 00 00 ................ +01b0 34 00 00 00 89 c1 00 00-00 00 00 00 28 00 00 00 4...........(... +01c0 01 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +01d0 00 00 00 00 00 00 00 00-00 00 00 00 04 00 00 00 ................ +01e0 04 00 00 00 34 00 00 00-89 c1 00 00 00 00 00 00 ....4........... +01f0 28 00 00 00 01 00 00 00-00 00 00 00 04 00 00 00 (............... +0200 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0210 04 00 00 00 04 00 00 00-34 00 00 00 89 c1 00 00 ........4....... +0220 00 00 00 00 28 00 00 00-01 00 00 00 00 00 00 00 ....(........... +0230 04 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0240 00 00 00 00 04 00 00 00-04 00 00 00 34 00 00 00 ............4... +0250 89 c1 00 00 00 00 00 00-28 00 00 00 01 00 00 00 ........(....... +0260 00 00 00 00 04 00 00 00-00 00 00 00 00 00 00 00 ................ +0270 00 00 00 00 00 00 00 00-04 00 00 00 04 00 00 00 ................ +0280 34 00 00 00 89 c1 00 00-00 00 00 00 28 00 00 00 4...........(... +0290 01 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +02a0 00 00 00 00 ef be ad de-ef be ad de 02 00 00 00 ................ +02b0 04 00 00 00 34 00 00 00-89 c1 00 00 00 00 00 00 ....4........... +02c0 28 00 00 00 01 00 00 00-00 00 00 00 04 00 00 00 (............... +02d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02e0 04 00 00 00 04 00 00 00-34 00 00 00 89 c1 00 00 ........4....... +02f0 5e d1 00 00 28 00 00 00-01 00 00 00 00 00 00 00 ^...(........... +0300 04 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0310 00 00 00 00 01 00 00 00-01 00 00 00 38 00 00 00 ............8... +0320 89 c1 00 00 63 d1 00 00-2c 00 00 00 01 00 00 00 ....c...,....... +0330 a6 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +0340 00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00 ................ +0350 04 00 00 00 38 00 00 00-89 c1 00 00 64 d1 00 00 ....8.......d... +0360 2c 00 00 00 01 00 00 00-a6 00 00 00 00 00 00 00 ,............... +0370 04 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0380 00 00 00 00 02 00 00 00-04 00 00 00 38 00 00 00 ............8... +0390 89 c1 00 00 65 d1 00 00-2c 00 00 00 01 00 00 00 ....e...,....... +03a0 a6 00 00 00 00 00 00 00-04 00 00 00 00 00 00 00 ................ +03b0 00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00 ................ +03c0 04 00 00 00 10 00 00 00-89 c1 00 00 b1 d1 00 00 ................ +03d0 01 00 00 00 10 00 00 00-89 c1 00 00 bc d1 00 00 ................ +03e0 00 00 00 00 10 00 00 00-89 c1 00 00 b2 d1 00 00 ................ +03f0 00 00 00 00 10 00 00 00-89 c1 00 00 b3 d1 00 00 ................ + +0.116258 gp_port_read (3): Reading 6144 = 0x1800 bytes from port... +0.117075 gp_port_read (3): Read 6144 = 0x1800 bytes from port: (hexdump of 6144 bytes) +0000 00 00 00 00 10 00 00 00-89 c1 00 00 b4 d1 00 00 ................ +0010 00 00 00 00 10 00 00 00-89 c1 00 00 b6 d1 00 00 ................ +0020 00 00 00 00 10 00 00 00-89 c1 00 00 ab d1 00 00 ................ +0030 00 00 00 00 10 00 00 00-89 c1 00 00 b0 d1 00 00 ................ +0040 01 00 00 00 10 00 00 00-89 c1 00 00 0a d1 00 00 ................ +0050 00 00 00 00 10 00 00 00-89 c1 00 00 a8 d1 00 00 ................ +0060 01 00 00 00 10 00 00 00-89 c1 00 00 98 d1 00 00 ................ +0070 ff 00 00 00 10 00 00 00-89 c1 00 00 dd d1 00 00 ................ +0080 ff ff 00 00 14 00 00 00-89 c1 00 00 a1 d1 00 00 ................ +0090 08 00 00 00 00 00 00 00-0d 00 00 00 89 c1 00 00 ................ +00a0 15 d1 00 00 00 f0 01 00-00 89 c1 00 00 a4 d1 00 ................ +00b0 00 e4 01 00 00 30 00 00-00 00 00 00 00 00 00 00 .....0.......... +00c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00d0 00 00 00 00 00 31 00 00-00 00 00 00 00 00 00 00 .....1.......... +00e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00f0 00 00 00 00 00 32 00 00-00 00 00 00 00 00 00 00 .....2.......... +0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0110 00 00 00 00 00 33 00 00-00 00 00 00 00 00 00 00 .....3.......... +0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0130 00 00 00 00 00 34 00 00-00 00 00 00 00 00 00 00 .....4.......... +0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0150 00 00 00 00 00 35 00 00-00 00 00 00 00 00 00 00 .....5.......... +0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0170 00 00 00 00 00 36 00 00-00 00 00 00 00 00 00 00 .....6.......... +0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0190 00 00 00 00 00 37 00 00-00 00 00 00 00 00 00 00 .....7.......... +01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01b0 00 00 00 00 00 38 00 00-00 00 00 00 00 00 00 00 .....8.......... +01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01d0 00 00 00 00 00 39 00 00-00 00 00 00 00 00 00 00 .....9.......... +01e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01f0 00 00 00 00 00 31 30 00-00 00 00 00 00 00 00 00 .....10......... +0200 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0210 00 00 00 00 00 31 31 00-00 00 00 00 00 00 00 00 .....11......... +0220 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0230 00 00 00 00 00 31 32 00-00 00 00 00 00 00 00 00 .....12......... +0240 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0250 00 00 00 00 00 31 33 00-00 00 00 00 00 00 00 00 .....13......... +0260 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0270 00 00 00 00 00 31 34 00-00 00 00 00 00 00 00 00 .....14......... +0280 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0290 00 00 00 00 00 10 00 00-00 89 c1 00 00 b8 d1 00 ................ +02a0 00 06 00 00 00 10 00 00-00 89 c1 00 00 ba d1 00 ................ +02b0 00 02 00 00 00 10 00 00-00 89 c1 00 00 c9 d1 00 ................ +02c0 00 01 00 00 00 10 00 00-00 89 c1 00 00 7a d1 00 .............z.. +02d0 00 01 55 55 55 38 00 00-00 89 c1 00 00 cd d1 00 ..UUU8.......... +02e0 00 2c 00 00 00 00 00 00-00 01 00 00 00 88 13 00 .,.............. +02f0 00 18 00 00 00 00 00 00-00 03 00 00 00 01 00 00 ................ +0300 00 00 00 00 00 00 00 00-00 00 00 00 00 10 00 00 ................ +0310 00 89 c1 00 00 c5 d1 00-00 00 00 00 00 10 00 00 ................ +0320 00 89 c1 00 00 d4 d1 00-00 00 00 00 00 10 00 00 ................ +0330 00 89 c1 00 00 c2 d1 00-00 00 00 00 00 10 00 00 ................ +0340 00 89 c1 00 00 bd d1 00-00 00 00 00 00 10 00 00 ................ +0350 00 89 c1 00 00 94 d1 00-00 00 00 00 00 10 00 00 ................ +0360 00 89 c1 00 00 95 d1 00-00 00 00 00 00 10 00 00 ................ +0370 00 89 c1 00 00 96 d1 00-00 2f 00 00 00 10 00 00 ........./...... +0380 00 89 c1 00 00 97 d1 00-00 00 00 00 00 10 00 00 ................ +0390 00 89 c1 00 00 3c d1 00-00 57 57 55 55 24 00 00 .....<...WWUU$.. +03a0 00 89 c1 00 00 3d d1 00-00 18 00 00 00 00 00 00 .....=.......... +03b0 00 00 00 00 00 01 00 00-00 01 00 00 00 00 00 00 ................ +03c0 00 10 00 00 00 89 c1 00-00 79 d1 00 00 00 00 00 .........y...... +03d0 00 10 00 00 00 89 c1 00-00 7b d1 00 00 02 00 00 .........{...... +03e0 00 24 00 00 00 89 c1 00-00 77 d1 00 00 00 00 00 .$.......w...... +03f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0400 00 00 00 00 00 10 00 00-00 89 c1 00 00 76 d1 00 .............v.. +0410 00 00 00 00 00 10 00 00-00 89 c1 00 00 75 d1 00 .............u.. +0420 00 00 00 00 00 10 00 00-00 89 c1 00 00 37 d1 00 .............7.. +0430 00 00 00 00 00 10 00 00-00 89 c1 00 00 78 d1 00 .............x.. +0440 00 00 00 00 00 30 00 00-00 89 c1 00 00 21 d1 00 .....0.......!.. +0450 00 01 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +0460 00 03 00 00 00 00 00 00-00 03 00 00 00 01 00 00 ................ +0470 00 00 00 00 00 30 00 00-00 89 c1 00 00 20 d1 00 .....0....... .. +0480 00 01 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +0490 00 03 00 00 00 00 00 00-00 03 00 00 00 01 00 00 ................ +04a0 00 00 00 00 00 30 00 00-00 89 c1 00 00 22 d1 00 .....0.......".. +04b0 00 01 00 00 00 10 00 00-00 01 00 00 00 00 00 00 ................ +04c0 00 03 00 00 00 00 00 00-00 03 00 00 00 01 00 00 ................ +04d0 00 00 00 00 00 10 00 00-00 89 c1 00 00 33 d1 00 .............3.. +04e0 00 00 00 00 00 10 00 00-00 89 c1 00 00 31 d1 00 .............1.. +04f0 00 00 00 00 00 10 00 00-00 89 c1 00 00 32 d1 00 .............2.. +0500 00 00 00 00 00 10 00 00-00 89 c1 00 00 30 d1 00 .............0.. +0510 00 00 00 00 00 10 00 00-00 89 c1 00 00 1c d1 00 ................ +0520 00 02 00 00 00 10 00 00-00 89 c1 00 00 13 d1 00 ................ +0530 00 43 53 4e 5a 34 00 00-00 89 c1 00 00 a7 d1 00 .CSNZ4.......... +0540 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0550 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0560 00 00 00 00 00 00 00 00-00 10 00 00 00 89 c1 00 ................ +0570 00 12 d1 00 00 00 00 00-00 10 00 00 00 89 c1 00 ................ +0580 00 11 d1 00 00 09 00 00-00 4b 00 00 00 89 c1 00 .........K...... +0590 00 d8 d1 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +05a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +05b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +05c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +05d0 00 00 00 00 1c 00 00 00-89 c1 00 00 da d1 00 00 ................ +05e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +05f0 10 00 00 00 89 c1 00 00-7e d1 00 00 00 00 00 00 ........~....... +0600 10 00 00 00 89 c1 00 00-7c d1 00 00 43 53 4e 5a ........|...CSNZ +0610 10 00 00 00 89 c1 00 00-1f d1 00 00 00 00 f4 93 ................ +0620 10 00 00 00 89 c1 00 00-1f d1 00 00 00 00 f4 93 ................ +0630 10 00 00 00 89 c1 00 00-1e d1 00 00 01 00 02 00 ................ +0640 10 00 00 00 89 c1 00 00-aa d1 00 00 00 00 00 00 ................ +0650 18 00 00 00 89 c1 00 00-39 d1 00 00 00 00 00 00 ........9....... +0660 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0670 c3 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0680 3a d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 :............... +0690 bf d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +06a0 1d d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +06b0 c7 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +06c0 c4 d1 00 00 00 00 00 00-40 00 00 00 89 c1 00 00 ........@....... +06d0 cb d1 00 00 34 00 00 00-00 00 00 00 00 00 00 00 ....4........... +06e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +06f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0700 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0710 df d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0720 56 d0 00 00 03 00 00 00-10 00 00 00 89 c1 00 00 V............... +0730 56 d0 00 00 03 00 00 00-10 00 00 00 89 c1 00 00 V............... +0740 c0 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0750 36 d1 00 00 00 00 00 00-24 00 00 00 89 c1 00 00 6.......$....... +0760 34 d1 00 00 18 00 00 00-00 00 00 00 00 00 00 00 4............... +0770 00 00 00 00 0a 00 00 00-0a 00 00 00 10 00 00 00 ................ +0780 89 c1 00 00 35 d1 00 00-00 00 00 00 3c 00 00 00 ....5.......<... +0790 89 c1 00 00 40 d1 00 00-30 00 00 00 00 00 00 00 ....@...0....... +07a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07c0 b8 02 00 04 00 04 45 02-3c 00 00 00 89 c1 00 00 ......E.<....... +07d0 41 d1 00 00 30 00 00 00-00 00 00 00 00 00 00 00 A...0........... +07e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +07f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0800 00 00 00 00 3c 00 00 00-89 c1 00 00 42 d1 00 00 ....<.......B... +0810 30 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 0............... +0820 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0830 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0840 3c 00 00 00 89 c1 00 00-43 d1 00 00 30 00 00 00 <.......C...0... +0850 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0860 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0870 00 00 00 00 00 00 00 00-00 00 00 00 3c 00 00 00 ............<... +0880 89 c1 00 00 44 d1 00 00-30 00 00 00 00 00 00 00 ....D...0....... +0890 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +08a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +08b0 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +08c0 4a d1 00 00 01 00 00 00-10 00 00 00 89 c1 00 00 J............... +08d0 49 d1 00 00 00 00 00 00-20 00 00 00 89 c1 00 00 I....... ....... +08e0 3e d1 00 00 14 00 00 00-00 00 00 00 00 00 00 00 >............... +08f0 00 00 00 00 01 00 00 00-10 00 00 00 89 c1 00 00 ................ +0900 9a d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0910 3b d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ;............... +0920 a3 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0930 9f d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0940 24 d1 00 00 00 00 00 00-1c 00 00 00 89 c1 00 00 $............... +0950 67 d1 00 00 10 00 00 00-01 00 00 00 e8 03 00 00 g............... +0960 e8 03 00 00 10 00 00 00-89 c1 00 00 c6 d1 00 00 ................ +0970 00 00 00 00 18 00 00 00-89 c1 00 00 2d d1 00 00 ............-... +0980 0c 00 00 00 00 00 00 00-00 00 00 00 10 00 00 00 ................ +0990 89 c1 00 00 2c d1 00 00-00 00 00 00 14 00 00 00 ....,........... +09a0 89 c1 00 00 27 d1 00 00-00 00 00 00 00 00 00 00 ....'........... +09b0 30 00 00 00 89 c1 00 00-00 00 00 00 00 00 00 00 0............... +09c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +09d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +09e0 18 00 00 00 89 c1 00 00-00 00 00 00 00 00 00 00 ................ +09f0 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a00 99 d1 00 00 10 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a10 00 00 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 ................ +0a20 28 d1 00 00 00 00 00 00-10 00 00 00 89 c1 00 00 (............... +0a30 55 d0 00 00 00 00 00 00-18 00 00 00 89 c1 00 00 U............... +0a40 7d d1 00 00 0c 00 00 00-14 00 00 00 00 00 00 00 }............... +0a50 1c 00 00 00 89 c1 00 00-25 d1 00 00 53 58 37 34 ........%...SX74 +0a60 30 00 00 00 00 00 00 00-00 00 00 00 30 00 00 00 0...........0... +0a70 8a c1 00 00 03 d1 00 00-03 00 00 00 07 00 00 00 ................ +0a80 00 00 00 00 48 00 00 00-50 00 00 00 58 00 00 00 ....H...P...X... +0a90 60 00 00 00 68 00 00 00-70 00 00 00 14 00 00 00 `...h...p....... +0aa0 8a c1 00 00 05 d1 00 00-01 00 00 00 00 00 00 00 ................ +0ab0 14 00 00 00 8a c1 00 00-1b d1 00 00 01 00 00 00 ................ +0ac0 00 00 00 00 14 00 00 00-8a c1 00 00 1b d1 00 00 ................ +0ad0 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0ae0 14 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0af0 8a c1 00 00 14 d1 00 00-01 00 00 00 00 00 00 00 ................ +0b00 14 00 00 00 8a c1 00 00-16 d1 00 00 01 00 00 00 ................ +0b10 00 00 00 00 14 00 00 00-8a c1 00 00 11 d1 00 00 ................ +0b20 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0b30 12 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0b40 8a c1 00 00 a8 d1 00 00-01 00 00 00 00 00 00 00 ................ +0b50 14 00 00 00 8a c1 00 00-ab d1 00 00 01 00 00 00 ................ +0b60 00 00 00 00 14 00 00 00-8a c1 00 00 47 d1 00 00 ............G... +0b70 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0b80 ad d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0b90 8a c1 00 00 ae d1 00 00-01 00 00 00 00 00 00 00 ................ +0ba0 14 00 00 00 8a c1 00 00-aa d1 00 00 01 00 00 00 ................ +0bb0 00 00 00 00 14 00 00 00-8a c1 00 00 1e d1 00 00 ................ +0bc0 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0bd0 1f d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0be0 8a c1 00 00 af d1 00 00-01 00 00 00 00 00 00 00 ................ +0bf0 14 00 00 00 8a c1 00 00-00 00 00 00 01 00 00 00 ................ +0c00 00 00 00 00 14 00 00 00-8a c1 00 00 7f d1 00 00 ................ +0c10 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0c20 b7 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0c30 8a c1 00 00 c4 d1 00 00-01 00 00 00 00 00 00 00 ................ +0c40 14 00 00 00 8a c1 00 00-c2 d1 00 00 01 00 00 00 ................ +0c50 00 00 00 00 14 00 00 00-8a c1 00 00 38 d1 00 00 ............8... +0c60 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0c70 39 d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 9............... +0c80 8a c1 00 00 3b d1 00 00-01 00 00 00 00 00 00 00 ....;........... +0c90 14 00 00 00 8a c1 00 00-3c d1 00 00 01 00 00 00 ........<....... +0ca0 00 00 00 00 14 00 00 00-8a c1 00 00 9d d1 00 00 ................ +0cb0 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0cc0 9a d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0cd0 8a c1 00 00 9c d1 00 00-01 00 00 00 00 00 00 00 ................ +0ce0 14 00 00 00 8a c1 00 00-4c d1 00 00 01 00 00 00 ........L....... +0cf0 00 00 00 00 14 00 00 00-8a c1 00 00 bd d1 00 00 ................ +0d00 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0d10 9f d1 00 00 01 00 00 00-00 00 00 00 14 00 00 00 ................ +0d20 8a c1 00 00 24 d1 00 00-01 00 00 00 00 00 00 00 ....$........... +0d30 14 00 00 00 8a c1 00 00-15 d1 00 00 07 00 00 00 ................ +0d40 00 00 00 00 14 00 00 00-8a c1 00 00 70 d1 00 00 ............p... +0d50 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0d60 70 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 p............... +0d70 8a c1 00 00 71 d1 00 00-07 00 00 00 00 00 00 00 ....q........... +0d80 14 00 00 00 8a c1 00 00-71 d1 00 00 07 00 00 00 ........q....... +0d90 00 00 00 00 14 00 00 00-8a c1 00 00 72 d1 00 00 ............r... +0da0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0db0 72 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 r............... +0dc0 8a c1 00 00 a1 d1 00 00-07 00 00 00 00 00 00 00 ................ +0dd0 14 00 00 00 8a c1 00 00-a7 d1 00 00 07 00 00 00 ................ +0de0 00 00 00 00 14 00 00 00-8a c1 00 00 a2 d1 00 00 ................ +0df0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0e00 b2 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +0e10 8a c1 00 00 b3 d1 00 00-07 00 00 00 00 00 00 00 ................ +0e20 14 00 00 00 8a c1 00 00-b5 d1 00 00 07 00 00 00 ................ +0e30 00 00 00 00 14 00 00 00-8a c1 00 00 46 d1 00 00 ............F... +0e40 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0e50 d0 d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ................ +0e60 8a c1 00 00 d1 d1 00 00-07 00 00 00 00 00 00 00 ................ +0e70 14 00 00 00 8a c1 00 00-d3 d1 00 00 07 00 00 00 ................ +0e80 00 00 00 00 14 00 00 00-8a c1 00 00 cb d1 00 00 ................ +0e90 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0ea0 4d d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 M............... +0eb0 8a c1 00 00 96 d1 00 00-07 00 00 00 00 00 00 00 ................ +0ec0 14 00 00 00 8a c1 00 00-db d1 00 00 07 00 00 00 ................ +0ed0 00 00 00 00 14 00 00 00-8a c1 00 00 a4 d1 00 00 ................ +0ee0 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0ef0 bf d1 00 00 07 00 00 00-00 00 00 00 18 00 00 00 ................ +0f00 8a c1 00 00 55 d0 00 00-03 00 00 00 01 00 00 00 ....U........... +0f10 7f 00 00 00 2c 00 00 00-8a c1 00 00 06 d1 00 00 ....,........... +0f20 03 00 00 00 06 00 00 00-00 00 00 00 04 00 00 00 ................ +0f30 05 00 00 00 10 00 00 00-11 00 00 00 07 00 00 00 ................ +0f40 20 00 00 00 8a c1 00 00-07 d1 00 00 03 00 00 00 ............... +0f50 03 00 00 00 03 00 00 00-01 00 00 00 05 00 00 00 ................ +0f60 30 00 00 00 8a c1 00 00-09 d1 00 00 03 00 00 00 0............... +0f70 07 00 00 00 00 00 00 00-01 00 00 00 08 00 00 00 ................ +0f80 02 00 00 00 03 00 00 00-04 00 00 00 06 00 00 00 ................ +0f90 60 00 00 00 8a c1 00 00-0b d1 00 00 03 00 00 00 `............... +0fa0 13 00 00 00 f7 ff ff ff-f8 ff ff ff f9 ff ff ff ................ +0fb0 fa ff ff ff fb ff ff ff-fc ff ff ff fd ff ff ff ................ +0fc0 fe ff ff ff ff ff ff ff-00 00 00 00 01 00 00 00 ................ +0fd0 02 00 00 00 03 00 00 00-04 00 00 00 05 00 00 00 ................ +0fe0 06 00 00 00 07 00 00 00-08 00 00 00 09 00 00 00 ................ +0ff0 60 00 00 00 8a c1 00 00-0c d1 00 00 03 00 00 00 `............... +1000 13 00 00 00 f7 ff ff ff-f8 ff ff ff f9 ff ff ff ................ +1010 fa ff ff ff fb ff ff ff-fc ff ff ff fd ff ff ff ................ +1020 fe ff ff ff ff ff ff ff-00 00 00 00 01 00 00 00 ................ +1030 02 00 00 00 03 00 00 00-04 00 00 00 05 00 00 00 ................ +1040 06 00 00 00 07 00 00 00-08 00 00 00 09 00 00 00 ................ +1050 24 00 00 00 8a c1 00 00-0d d1 00 00 03 00 00 00 $............... +1060 04 00 00 00 00 00 00 00-01 00 00 00 02 00 00 00 ................ +1070 03 00 00 00 24 00 00 00-8a c1 00 00 0e d1 00 00 ....$........... +1080 03 00 00 00 04 00 00 00-00 00 00 00 01 00 00 00 ................ +1090 02 00 00 00 03 00 00 00-38 00 00 00 8a c1 00 00 ........8....... +10a0 01 d1 00 00 03 00 00 00-09 00 00 00 80 00 00 00 ................ +10b0 25 00 00 00 28 00 00 00-2b 00 00 00 2d 00 00 00 %...(...+...-... +10c0 30 00 00 00 33 00 00 00-35 00 00 00 38 00 00 00 0...3...5...8... +10d0 cc 00 00 00 8a c1 00 00-02 d1 00 00 03 00 00 00 ................ +10e0 2e 00 00 00 18 00 00 00-1b 00 00 00 1d 00 00 00 ................ +10f0 20 00 00 00 23 00 00 00-25 00 00 00 28 00 00 00 ...#...%...(... +1100 2b 00 00 00 2d 00 00 00-30 00 00 00 33 00 00 00 +...-...0...3... +1110 35 00 00 00 38 00 00 00-3b 00 00 00 3d 00 00 00 5...8...;...=... +1120 40 00 00 00 43 00 00 00-45 00 00 00 48 00 00 00 @...C...E...H... +1130 4b 00 00 00 4d 00 00 00-50 00 00 00 53 00 00 00 K...M...P...S... +1140 55 00 00 00 58 00 00 00-5b 00 00 00 5d 00 00 00 U...X...[...]... +1150 60 00 00 00 63 00 00 00-65 00 00 00 68 00 00 00 `...c...e...h... +1160 6b 00 00 00 6d 00 00 00-70 00 00 00 73 00 00 00 k...m...p...s... +1170 75 00 00 00 78 00 00 00-7b 00 00 00 7d 00 00 00 u...x...{...}... +1180 80 00 00 00 83 00 00 00-85 00 00 00 88 00 00 00 ................ +1190 8b 00 00 00 8d 00 00 00-90 00 00 00 60 00 00 00 ............`... +11a0 8a c1 00 00 04 d1 00 00-03 00 00 00 13 00 00 00 ................ +11b0 e8 00 00 00 eb 00 00 00-ed 00 00 00 f0 00 00 00 ................ +11c0 f3 00 00 00 f5 00 00 00-f8 00 00 00 fb 00 00 00 ................ +11d0 fd 00 00 00 00 00 00 00-03 00 00 00 05 00 00 00 ................ +11e0 08 00 00 00 0b 00 00 00-0d 00 00 00 10 00 00 00 ................ +11f0 13 00 00 00 15 00 00 00-18 00 00 00 a0 01 00 00 ................ +1200 8a c1 00 00 7d d1 00 00-03 00 00 00 21 00 00 00 ....}.......!... +1210 0c 00 00 00 21 00 00 00-0c 03 00 00 0c 00 00 00 ....!........... +1220 01 00 00 00 fd 02 00 00-0c 00 00 00 02 00 00 00 ................ +1230 d0 02 00 00 0c 00 00 00-03 00 00 00 94 02 00 00 ................ +1240 0c 00 00 00 04 00 00 00-58 02 00 00 0c 00 00 00 ........X....... +1250 05 00 00 00 3a 02 00 00-0c 00 00 00 06 00 00 00 ....:........... +1260 1c 02 00 00 0c 00 00 00-07 00 00 00 e0 01 00 00 ................ +1270 0c 00 00 00 08 00 00 00-a4 01 00 00 0c 00 00 00 ................ +1280 09 00 00 00 86 01 00 00-0c 00 00 00 0a 00 00 00 ................ +1290 68 01 00 00 0c 00 00 00-0b 00 00 00 59 01 00 00 h...........Y... +12a0 0c 00 00 00 0c 00 00 00-4a 01 00 00 0c 00 00 00 ........J....... +12b0 0d 00 00 00 2c 01 00 00-0c 00 00 00 0e 00 00 00 ....,........... +12c0 0e 01 00 00 0c 00 00 00-0f 00 00 00 f0 00 00 00 ................ +12d0 0c 00 00 00 10 00 00 00-d2 00 00 00 0c 00 00 00 ................ +12e0 11 00 00 00 b4 00 00 00-0c 00 00 00 12 00 00 00 ................ +12f0 78 00 00 00 0c 00 00 00-13 00 00 00 3c 00 00 00 x...........<... +1300 0c 00 00 00 14 00 00 00-00 00 00 00 0c 00 00 00 ................ +1310 15 00 00 00 c4 ff ff ff-0c 00 00 00 16 00 00 00 ................ +1320 88 ff ff ff 0c 00 00 00-17 00 00 00 4c ff ff ff ............L... +1330 0c 00 00 00 18 00 00 00-2e ff ff ff 0c 00 00 00 ................ +1340 1a 00 00 00 10 ff ff ff-0c 00 00 00 1b 00 00 00 ................ +1350 d4 fe ff ff 0c 00 00 00-1c 00 00 00 98 fe ff ff ................ +1360 0c 00 00 00 1d 00 00 00-5c fe ff ff 0c 00 00 00 ........\....... +1370 1e 00 00 00 20 fe ff ff-0c 00 00 00 1f 00 00 00 .... ........... +1380 e4 fd ff ff 0c 00 00 00-20 00 00 00 a8 fd ff ff ........ ....... +1390 0c 00 00 00 ff ff ff ff-00 00 00 00 1c 00 00 00 ................ +13a0 8a c1 00 00 7e d1 00 00-03 00 00 00 02 00 00 00 ....~........... +13b0 00 00 00 00 01 00 00 00-14 00 00 00 8a c1 00 00 ................ +13c0 7c d1 00 00 07 00 00 00-00 00 00 00 78 00 00 00 |...........x... +13d0 8a c1 00 00 21 d1 00 00-03 00 00 00 05 00 00 00 ....!........... +13e0 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +13f0 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +1400 00 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +1410 01 00 00 00 01 00 00 00-03 00 00 00 01 00 00 00 ................ +1420 10 00 00 00 01 00 00 00-01 00 00 00 02 00 00 00 ................ +1430 01 00 00 00 10 00 00 00-01 00 00 00 02 00 00 00 ................ +1440 03 00 00 00 78 00 00 00-8a c1 00 00 22 d1 00 00 ....x......."... +1450 03 00 00 00 05 00 00 00-01 00 00 00 10 00 00 00 ................ +1460 01 00 00 00 00 00 00 00-03 00 00 00 01 00 00 00 ................ +1470 10 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................ +1480 01 00 00 00 10 00 00 00-01 00 00 00 01 00 00 00 ................ +1490 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +14a0 01 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +14b0 01 00 00 00 02 00 00 00-03 00 00 00 78 00 00 00 ............x... +14c0 8a c1 00 00 20 d1 00 00-03 00 00 00 05 00 00 00 .... ........... +14d0 01 00 00 00 10 00 00 00-01 00 00 00 00 00 00 00 ................ +14e0 03 00 00 00 01 00 00 00-10 00 00 00 01 00 00 00 ................ +14f0 00 00 00 00 02 00 00 00-01 00 00 00 10 00 00 00 ................ +1500 01 00 00 00 01 00 00 00-03 00 00 00 01 00 00 00 ................ +1510 10 00 00 00 01 00 00 00-01 00 00 00 02 00 00 00 ................ +1520 01 00 00 00 10 00 00 00-01 00 00 00 02 00 00 00 ................ +1530 03 00 00 00 20 00 00 00-8a c1 00 00 1c d1 00 00 .... ........... +1540 03 00 00 00 03 00 00 00-02 00 00 00 06 00 00 00 ................ +1550 04 00 00 00 44 00 00 00-8a c1 00 00 b0 d1 00 00 ....D........... +1560 03 00 00 00 0c 00 00 00-00 00 00 00 01 00 00 00 ................ +1570 02 00 00 00 03 00 00 00-04 00 00 00 05 00 00 00 ................ +1580 06 00 00 00 07 00 00 00-08 00 00 00 09 00 00 00 ................ +1590 0a 00 00 00 0b 00 00 00-14 00 00 00 8a c1 00 00 ................ +15a0 b1 d1 00 00 03 00 00 00-00 00 00 00 28 00 00 00 ............(... +15b0 8a c1 00 00 a9 d1 00 00-03 00 00 00 05 00 00 00 ................ +15c0 00 00 00 00 02 00 00 00-04 00 00 00 08 00 00 00 ................ +15d0 ff 00 00 00 30 00 00 00-8a c1 00 00 b4 d1 00 00 ....0........... +15e0 03 00 00 00 07 00 00 00-00 00 00 00 01 00 00 00 ................ +15f0 08 00 00 00 02 00 00 00-03 00 00 00 04 00 00 00 ................ +1600 06 00 00 00 1c 00 00 00-8a c1 00 00 ba d1 00 00 ................ +1610 03 00 00 00 02 00 00 00-02 00 00 00 01 00 00 00 ................ +1620 a4 00 00 00 8a c1 00 00-cd d1 00 00 03 00 00 00 ................ +1630 04 00 00 00 24 00 00 00-00 00 00 00 05 00 00 00 ....$........... +1640 c4 09 00 00 0c 00 00 00-00 00 00 00 03 00 00 00 ................ +1650 01 00 00 00 00 00 00 00-24 00 00 00 00 00 00 00 ........$....... +1660 00 00 00 00 88 13 00 00-18 00 00 00 00 00 00 00 ................ +1670 03 00 00 00 01 00 00 00-00 00 00 00 24 00 00 00 ............$... +1680 00 00 00 00 00 00 00 00-c4 09 00 00 0c 00 00 00 ................ +1690 00 00 00 00 03 00 00 00-01 00 00 00 00 00 00 00 ................ +16a0 24 00 00 00 00 00 00 00-01 00 00 00 88 13 00 00 $............... +16b0 18 00 00 00 00 00 00 00-03 00 00 00 01 00 00 00 ................ +16c0 00 00 00 00 1c 00 00 00-8a c1 00 00 b8 d1 00 00 ................ +16d0 03 00 00 00 02 00 00 00-04 00 00 00 00 00 00 00 ................ +16e0 1c 00 00 00 8a c1 00 00-56 d0 00 00 03 00 00 00 ........V....... +16f0 02 00 00 00 01 00 00 00-03 00 00 00 28 00 00 00 ............(... +1700 8a c1 00 00 df d1 00 00-03 00 00 00 05 00 00 00 ................ +1710 f5 00 00 00 fb 00 00 00-00 00 00 00 05 00 00 00 ................ +1720 0b 00 00 00 24 00 00 00-8a c1 00 00 c1 d1 00 00 ....$........... +1730 03 00 00 00 04 00 00 00-03 00 00 00 01 00 00 00 ................ +1740 00 00 00 00 02 00 00 00-14 00 00 00 8a c1 00 00 ................ +1750 c5 d1 00 00 03 00 00 00-00 00 00 00 24 00 00 00 ............$... +1760 8a c1 00 00 94 d1 00 00-03 00 00 00 04 00 00 00 ................ +1770 00 00 00 00 02 00 00 00-07 00 00 00 01 00 00 00 ................ +1780 14 00 00 00 8a c1 00 00-95 d1 00 00 03 00 00 00 ................ +1790 00 00 00 00 14 00 00 00-8a c1 00 00 97 d1 00 00 ................ +17a0 03 00 00 00 00 00 00 00-1c 00 00 00 8a c1 00 00 ................ +17b0 7a d1 00 00 03 00 00 00-02 00 00 00 01 00 00 00 z............... +17c0 00 00 00 00 14 00 00 00-8a c1 00 00 7b d1 00 00 ............{... +17d0 03 00 00 00 00 00 00 00-1c 00 00 00 8a c1 00 00 ................ +17e0 c9 d1 00 00 03 00 00 00-02 00 00 00 01 00 00 00 ................ +17f0 00 00 00 00 18 00 00 00-8a c1 00 00 75 d1 00 00 ............u... + +0.117215 gp_port_read (3): Reading 292 = 0x124 bytes from port... +0.117430 gp_port_read (3): Read 292 = 0x124 bytes from port: (hexdump of 292 bytes) +0000 03 00 00 00 01 00 00 00-00 00 00 00 18 00 00 00 ................ +0010 8a c1 00 00 4b d1 00 00-03 00 00 00 01 00 00 00 ....K........... +0020 06 00 00 00 14 00 00 00-8a c1 00 00 3e d1 00 00 ............>... +0030 01 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0040 5e d1 00 00 07 00 00 00-00 00 00 00 14 00 00 00 ^............... +0050 8a c1 00 00 63 d1 00 00-07 00 00 00 00 00 00 00 ....c........... +0060 14 00 00 00 8a c1 00 00-64 d1 00 00 07 00 00 00 ........d....... +0070 00 00 00 00 14 00 00 00-8a c1 00 00 65 d1 00 00 ............e... +0080 07 00 00 00 00 00 00 00-14 00 00 00 8a c1 00 00 ................ +0090 49 d1 00 00 03 00 00 00-00 00 00 00 0c 00 00 00 I............... +00a0 a4 c1 00 00 01 00 02 00-0c 00 00 00 9d c1 00 00 ................ +00b0 00 00 00 00 0c 00 00 00-f6 c1 00 00 01 00 00 00 ................ +00c0 5c 00 00 00 a5 c1 00 00-58 00 00 00 ff 1f 00 00 \.......X....... +00d0 15 00 01 01 90 18 00 6d-00 01 01 38 80 28 00 01 .......m...8.(.. +00e0 01 00 00 50 28 04 00 00-00 00 00 00 00 00 00 01 ...P(........... +00f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0110 00 00 00 00 00 00 00 00-00 00 00 00 08 00 00 00 ................ +0120 00 00 00 00 - .... + +0.117489 ptp_usb_getresp (2): Reading PTP_OC 0x9116 (PTP_OC_CANON_EOS_GetEvent) response... +0.117500 gp_port_read (3): Reading 1024 = 0x400 bytes from port... +0.117656 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes) +0000 0c 00 00 00 03 00 01 20-0b 00 00 00 ....... .... + +0.117678 ptp (2): event 0: EOS prop d116 info record, datasize is 4 +0.117689 ptp (2): event 0: currentvalue of d116 is 801 +0.117698 ptp (2): event 1: EOS prop d105 info record, datasize is 4 +0.117709 ptp (2): event 1: currentvalue of d105 is 3 +0.117718 ptp (2): event 2: EOS prop d138 info record, datasize is 4 +0.117728 ptp (2): event 2: Unknown EOS property d138, datasize is 4 +0.117737 ptp (2): 0: 03 +0.117745 ptp (2): 1: 00 +0.117753 ptp (2): 2: 00 +0.117766 ptp (2): 3: 00 +0.117775 ptp (2): event 3: EOS prop d102 info record, datasize is 4 +0.117784 ptp (2): event 3: currentvalue of d102 is 6d +0.117792 ptp (2): event 4: EOS prop d101 info record, datasize is 4 +0.117801 ptp (2): event 4: currentvalue of d101 is 28 +0.117809 ptp (2): event 5: EOS prop d103 info record, datasize is 4 +0.117818 ptp (2): event 5: currentvalue of d103 is 0 +0.117826 ptp (2): event 6: EOS prop d106 info record, datasize is 4 +0.117835 ptp (2): event 6: currentvalue of d106 is 0 +0.117843 ptp (2): event 7: EOS prop d108 info record, datasize is 4 +0.117852 ptp (2): event 7: currentvalue of d108 is 0 +0.117860 ptp (2): event 8: EOS prop d107 info record, datasize is 4 +0.117869 ptp (2): event 8: currentvalue of d107 is 3 +0.117877 ptp (2): event 9: EOS prop d109 info record, datasize is 4 +0.117886 ptp (2): event 9: currentvalue of d109 is 0 +0.117894 ptp (2): event 10: EOS prop d11b info record, datasize is 4 +0.117903 ptp (2): event 10: currentvalue of d11b is 2a1 +0.117911 ptp (2): event 11: EOS prop d104 info record, datasize is 4 +0.117920 ptp (2): event 11: currentvalue of d104 is 0 +0.117928 ptp (2): event 12: EOS prop d10c info record, datasize is 4 +0.117937 ptp (2): event 13: EOS prop d10b info record, datasize is 4 +0.117945 ptp (2): event 14: EOS prop d10e info record, datasize is 4 +0.117954 ptp (2): event 14: currentvalue of d10e is 0 +0.117963 ptp (2): event 15: EOS prop d10d info record, datasize is 4 +0.117973 ptp (2): event 15: currentvalue of d10d is 0 +0.117981 ptp (2): event 16: EOS prop d1d9 info record, datasize is 4 +0.118000 ptp (2): event 16: currentvalue of d1d9 is 0 +0.118009 ptp (2): event 17: EOS prop d1d5 info record, datasize is 4 +0.118019 ptp (2): event 17: Unknown EOS property d1d5, datasize is 4, using uint32 +0.118028 ptp (2): 0: 0x 0 +0.118036 ptp (2): event 17: currentvalue of d1d5 is 0 +0.118044 ptp (2): event 18: EOS prop d1c1 info record, datasize is 4 +0.118053 ptp (2): event 18: Unknown EOS property d1c1, datasize is 4, using uint32 +0.118062 ptp (2): 0: 0x 3 +0.118070 ptp (2): event 18: currentvalue of d1c1 is 3 +0.118078 ptp (2): event 19: EOS prop d10f info record, datasize is 4 +0.118087 ptp (2): event 19: currentvalue of d10f is 0 +0.118095 ptp (2): event 20: EOS prop d114 info record, datasize is 4 +0.118104 ptp (2): event 20: currentvalue of d114 is 1e +0.118113 ptp (2): event 21: EOS prop d1b7 info record, datasize is 4 +0.118122 ptp (2): event 21: Unknown EOS property d1b7, datasize is 4, using uint32 +0.118130 ptp (2): 0: 0x 0 +0.118138 ptp (2): event 21: currentvalue of d1b7 is 0 +0.118146 ptp (2): event 22: EOS prop d110 info record, datasize is 4 +0.118155 ptp (2): event 22: currentvalue of d110 is 0 +0.118163 ptp (2): event 23: EOS prop 0000 info record, datasize is 40 +0.118173 ptp (2): event 23: Unknown EOS property 0000, datasize is 40 +0.118181 ptp (2): 0: 28 +0.118189 ptp (2): 1: 00 +0.118197 ptp (2): 2: 00 +0.118205 ptp (2): 3: 00 +0.118213 ptp (2): 4: 01 +0.118220 ptp (2): 5: 00 +0.118228 ptp (2): 6: 00 +0.118236 ptp (2): 7: 00 +0.118243 ptp (2): 8: ff +0.118251 ptp (2): 9: ff +0.118259 ptp (2): 10: ff +0.118267 ptp (2): 11: ff +0.118275 ptp (2): 12: 05 +0.118282 ptp (2): 13: 00 +0.118290 ptp (2): 14: 00 +0.118298 ptp (2): 15: 00 +0.118305 ptp (2): 16: 00 +0.118313 ptp (2): 17: 00 +0.118321 ptp (2): 18: 00 +0.118328 ptp (2): 19: 00 +0.118336 ptp (2): 20: 00 +0.118344 ptp (2): 21: 00 +0.118351 ptp (2): 22: 00 +0.118359 ptp (2): 23: 00 +0.118367 ptp (2): 24: 00 +0.118374 ptp (2): 25: 00 +0.118382 ptp (2): 26: 00 +0.118390 ptp (2): 27: 00 +0.118397 ptp (2): 28: 00 +0.118405 ptp (2): 29: 00 +0.118412 ptp (2): 30: 00 +0.118420 ptp (2): 31: 00 +0.118428 ptp (2): 32: 04 +0.118435 ptp (2): 33: 00 +0.118443 ptp (2): 34: 00 +0.118451 ptp (2): 35: 00 +0.118458 ptp (2): 36: 04 +0.118466 ptp (2): 37: 00 +0.118474 ptp (2): 38: 00 +0.118481 ptp (2): 39: 00 +0.118490 ptp (2): event 24: EOS prop 0000 info record, datasize is 40 +0.118505 ptp (2): event 24: Unknown EOS property 0000, datasize is 40 +0.118519 ptp (2): 0: 28 +0.118527 ptp (2): 1: 00 +0.118535 ptp (2): 2: 00 +0.118542 ptp (2): 3: 00 +0.118550 ptp (2): 4: 01 +0.118558 ptp (2): 5: 00 +0.118566 ptp (2): 6: 00 +0.118573 ptp (2): 7: 00 +0.118581 ptp (2): 8: 00 +0.118589 ptp (2): 9: 00 +0.118596 ptp (2): 10: 00 +0.118604 ptp (2): 11: 00 +0.118612 ptp (2): 12: 04 +0.118619 ptp (2): 13: 00 +0.118627 ptp (2): 14: 00 +0.118635 ptp (2): 15: 00 +0.118642 ptp (2): 16: 00 +0.118650 ptp (2): 17: 00 +0.118658 ptp (2): 18: 00 +0.118665 ptp (2): 19: 00 +0.118673 ptp (2): 20: 00 +0.118680 ptp (2): 21: 00 +0.118688 ptp (2): 22: 00 +0.118696 ptp (2): 23: 00 +0.118703 ptp (2): 24: 00 +0.118711 ptp (2): 25: 00 +0.118719 ptp (2): 26: 00 +0.118726 ptp (2): 27: 00 +0.118734 ptp (2): 28: 00 +0.118741 ptp (2): 29: 00 +0.118749 ptp (2): 30: 00 +0.118757 ptp (2): 31: 00 +0.118764 ptp (2): 32: 04 +0.118772 ptp (2): 33: 00 +0.118780 ptp (2): 34: 00 +0.118787 ptp (2): 35: 00 +0.118795 ptp (2): 36: 04 +0.118803 ptp (2): 37: 00 +0.118810 ptp (2): 38: 00 +0.118818 ptp (2): 39: 00 +0.118826 ptp (2): event 25: EOS prop 0000 info record, datasize is 40 +0.118835 ptp (2): event 25: Unknown EOS property 0000, datasize is 40 +0.118843 ptp (2): 0: 28 +0.118850 ptp (2): 1: 00 +0.118858 ptp (2): 2: 00 +0.118866 ptp (2): 3: 00 +0.118874 ptp (2): 4: 01 +0.118881 ptp (2): 5: 00 +0.118889 ptp (2): 6: 00 +0.118896 ptp (2): 7: 00 +0.118904 ptp (2): 8: 00 +0.118912 ptp (2): 9: 00 +0.118919 ptp (2): 10: 00 +0.118927 ptp (2): 11: 00 +0.118935 ptp (2): 12: 04 +0.118943 ptp (2): 13: 00 +0.118950 ptp (2): 14: 00 +0.118958 ptp (2): 15: 00 +0.118966 ptp (2): 16: 00 +0.118973 ptp (2): 17: 00 +0.118981 ptp (2): 18: 00 +0.118988 ptp (2): 19: 00 +0.118996 ptp (2): 20: 00 +0.119004 ptp (2): 21: 00 +0.119011 ptp (2): 22: 00 +0.119019 ptp (2): 23: 00 +0.119026 ptp (2): 24: 00 +0.119034 ptp (2): 25: 00 +0.119042 ptp (2): 26: 00 +0.119049 ptp (2): 27: 00 +0.119057 ptp (2): 28: 00 +0.119064 ptp (2): 29: 00 +0.119072 ptp (2): 30: 00 +0.119080 ptp (2): 31: 00 +0.119087 ptp (2): 32: 04 +0.119095 ptp (2): 33: 00 +0.119108 ptp (2): 34: 00 +0.119115 ptp (2): 35: 00 +0.119123 ptp (2): 36: 04 +0.119131 ptp (2): 37: 00 +0.119138 ptp (2): 38: 00 +0.119146 ptp (2): 39: 00 +0.119154 ptp (2): event 26: EOS prop 0000 info record, datasize is 40 +0.119162 ptp (2): event 26: Unknown EOS property 0000, datasize is 40 +0.119170 ptp (2): 0: 28 +0.119178 ptp (2): 1: 00 +0.119186 ptp (2): 2: 00 +0.119193 ptp (2): 3: 00 +0.119201 ptp (2): 4: 01 +0.119209 ptp (2): 5: 00 +0.119216 ptp (2): 6: 00 +0.119224 ptp (2): 7: 00 +0.119232 ptp (2): 8: 00 +0.119239 ptp (2): 9: 00 +0.119247 ptp (2): 10: 00 +0.119255 ptp (2): 11: 00 +0.119263 ptp (2): 12: 04 +0.119270 ptp (2): 13: 00 +0.119278 ptp (2): 14: 00 +0.119285 ptp (2): 15: 00 +0.119293 ptp (2): 16: 00 +0.119301 ptp (2): 17: 00 +0.119308 ptp (2): 18: 00 +0.119316 ptp (2): 19: 00 +0.119324 ptp (2): 20: 00 +0.119331 ptp (2): 21: 00 +0.119339 ptp (2): 22: 00 +0.119347 ptp (2): 23: 00 +0.119354 ptp (2): 24: 00 +0.119362 ptp (2): 25: 00 +0.119370 ptp (2): 26: 00 +0.119377 ptp (2): 27: 00 +0.119385 ptp (2): 28: 00 +0.119392 ptp (2): 29: 00 +0.119400 ptp (2): 30: 00 +0.119408 ptp (2): 31: 00 +0.119415 ptp (2): 32: 04 +0.119423 ptp (2): 33: 00 +0.119431 ptp (2): 34: 00 +0.119438 ptp (2): 35: 00 +0.119446 ptp (2): 36: 04 +0.119454 ptp (2): 37: 00 +0.119461 ptp (2): 38: 00 +0.119469 ptp (2): 39: 00 +0.119477 ptp (2): event 27: EOS prop 0000 info record, datasize is 40 +0.119485 ptp (2): event 27: Unknown EOS property 0000, datasize is 40 +0.119493 ptp (2): 0: 28 +0.119501 ptp (2): 1: 00 +0.119508 ptp (2): 2: 00 +0.119516 ptp (2): 3: 00 +0.119524 ptp (2): 4: 01 +0.119532 ptp (2): 5: 00 +0.119539 ptp (2): 6: 00 +0.119547 ptp (2): 7: 00 +0.119555 ptp (2): 8: 00 +0.119562 ptp (2): 9: 00 +0.119570 ptp (2): 10: 00 +0.119578 ptp (2): 11: 00 +0.119585 ptp (2): 12: 04 +0.119593 ptp (2): 13: 00 +0.119601 ptp (2): 14: 00 +0.119608 ptp (2): 15: 00 +0.119616 ptp (2): 16: 00 +0.119624 ptp (2): 17: 00 +0.119631 ptp (2): 18: 00 +0.119639 ptp (2): 19: 00 +0.119647 ptp (2): 20: 00 +0.119654 ptp (2): 21: 00 +0.119662 ptp (2): 22: 00 +0.119670 ptp (2): 23: 00 +0.119682 ptp (2): 24: 00 +0.119690 ptp (2): 25: 00 +0.119698 ptp (2): 26: 00 +0.119705 ptp (2): 27: 00 +0.119713 ptp (2): 28: 00 +0.119721 ptp (2): 29: 00 +0.119728 ptp (2): 30: 00 +0.119736 ptp (2): 31: 00 +0.119744 ptp (2): 32: 04 +0.119751 ptp (2): 33: 00 +0.119759 ptp (2): 34: 00 +0.119767 ptp (2): 35: 00 +0.119774 ptp (2): 36: 04 +0.119782 ptp (2): 37: 00 +0.119790 ptp (2): 38: 00 +0.119797 ptp (2): 39: 00 +0.119805 ptp (2): event 28: EOS prop 0000 info record, datasize is 40 +0.119814 ptp (2): event 28: Unknown EOS property 0000, datasize is 40 +0.119822 ptp (2): 0: 28 +0.119830 ptp (2): 1: 00 +0.119838 ptp (2): 2: 00 +0.119845 ptp (2): 3: 00 +0.119853 ptp (2): 4: 01 +0.119861 ptp (2): 5: 00 +0.119869 ptp (2): 6: 00 +0.119876 ptp (2): 7: 00 +0.119884 ptp (2): 8: 00 +0.119892 ptp (2): 9: 00 +0.119899 ptp (2): 10: 00 +0.119907 ptp (2): 11: 00 +0.119915 ptp (2): 12: 04 +0.119923 ptp (2): 13: 00 +0.119930 ptp (2): 14: 00 +0.119938 ptp (2): 15: 00 +0.119946 ptp (2): 16: 00 +0.119953 ptp (2): 17: 00 +0.119961 ptp (2): 18: 00 +0.119969 ptp (2): 19: 00 +0.119976 ptp (2): 20: 00 +0.119984 ptp (2): 21: 00 +0.119992 ptp (2): 22: 00 +0.119999 ptp (2): 23: 00 +0.120007 ptp (2): 24: ef +0.120015 ptp (2): 25: be +0.120022 ptp (2): 26: ad +0.120030 ptp (2): 27: de +0.120037 ptp (2): 28: ef +0.120045 ptp (2): 29: be +0.120053 ptp (2): 30: ad +0.120060 ptp (2): 31: de +0.120068 ptp (2): 32: 02 +0.120076 ptp (2): 33: 00 +0.120083 ptp (2): 34: 00 +0.120091 ptp (2): 35: 00 +0.120099 ptp (2): 36: 04 +0.120107 ptp (2): 37: 00 +0.120114 ptp (2): 38: 00 +0.120122 ptp (2): 39: 00 +0.120130 ptp (2): event 29: EOS prop 0000 info record, datasize is 40 +0.120139 ptp (2): event 29: Unknown EOS property 0000, datasize is 40 +0.120146 ptp (2): 0: 28 +0.120154 ptp (2): 1: 00 +0.120162 ptp (2): 2: 00 +0.120170 ptp (2): 3: 00 +0.120178 ptp (2): 4: 01 +0.120185 ptp (2): 5: 00 +0.120193 ptp (2): 6: 00 +0.120201 ptp (2): 7: 00 +0.120208 ptp (2): 8: 00 +0.120236 ptp (2): 9: 00 +0.120247 ptp (2): 10: 00 +0.120255 ptp (2): 11: 00 +0.120263 ptp (2): 12: 04 +0.120270 ptp (2): 13: 00 +0.120278 ptp (2): 14: 00 +0.120291 ptp (2): 15: 00 +0.120299 ptp (2): 16: 00 +0.120307 ptp (2): 17: 00 +0.120314 ptp (2): 18: 00 +0.120322 ptp (2): 19: 00 +0.120330 ptp (2): 20: 00 +0.120337 ptp (2): 21: 00 +0.120345 ptp (2): 22: 00 +0.120352 ptp (2): 23: 00 +0.120360 ptp (2): 24: 00 +0.120368 ptp (2): 25: 00 +0.120375 ptp (2): 26: 00 +0.120383 ptp (2): 27: 00 +0.120391 ptp (2): 28: 00 +0.120398 ptp (2): 29: 00 +0.120406 ptp (2): 30: 00 +0.120414 ptp (2): 31: 00 +0.120421 ptp (2): 32: 04 +0.120429 ptp (2): 33: 00 +0.120436 ptp (2): 34: 00 +0.120444 ptp (2): 35: 00 +0.120452 ptp (2): 36: 04 +0.120459 ptp (2): 37: 00 +0.120467 ptp (2): 38: 00 +0.120475 ptp (2): 39: 00 +0.120483 ptp (2): event 30: EOS prop d15e info record, datasize is 40 +0.120493 ptp (2): event 30: Unknown EOS property d15e, datasize is 40 +0.120501 ptp (2): 0: 28 +0.120509 ptp (2): 1: 00 +0.120516 ptp (2): 2: 00 +0.120524 ptp (2): 3: 00 +0.120532 ptp (2): 4: 01 +0.120539 ptp (2): 5: 00 +0.120547 ptp (2): 6: 00 +0.120555 ptp (2): 7: 00 +0.120563 ptp (2): 8: 00 +0.120570 ptp (2): 9: 00 +0.120578 ptp (2): 10: 00 +0.120586 ptp (2): 11: 00 +0.120593 ptp (2): 12: 04 +0.120601 ptp (2): 13: 00 +0.120609 ptp (2): 14: 00 +0.120616 ptp (2): 15: 00 +0.120624 ptp (2): 16: 00 +0.120632 ptp (2): 17: 00 +0.120639 ptp (2): 18: 00 +0.120647 ptp (2): 19: 00 +0.120654 ptp (2): 20: 00 +0.120662 ptp (2): 21: 00 +0.120670 ptp (2): 22: 00 +0.120677 ptp (2): 23: 00 +0.120685 ptp (2): 24: 00 +0.120693 ptp (2): 25: 00 +0.120700 ptp (2): 26: 00 +0.120708 ptp (2): 27: 00 +0.120715 ptp (2): 28: 00 +0.120723 ptp (2): 29: 00 +0.120731 ptp (2): 30: 00 +0.120738 ptp (2): 31: 00 +0.120746 ptp (2): 32: 01 +0.120754 ptp (2): 33: 00 +0.120761 ptp (2): 34: 00 +0.120769 ptp (2): 35: 00 +0.120777 ptp (2): 36: 01 +0.120784 ptp (2): 37: 00 +0.120792 ptp (2): 38: 00 +0.120800 ptp (2): 39: 00 +0.120808 ptp (2): event 31: EOS prop d163 info record, datasize is 44 +0.120817 ptp (2): event 31: Unknown EOS property d163, datasize is 44 +0.120825 ptp (2): 0: 2c +0.120833 ptp (2): 1: 00 +0.120840 ptp (2): 2: 00 +0.120848 ptp (2): 3: 00 +0.120856 ptp (2): 4: 01 +0.120869 ptp (2): 5: 00 +0.120876 ptp (2): 6: 00 +0.120884 ptp (2): 7: 00 +0.120892 ptp (2): 8: a6 +0.120899 ptp (2): 9: 00 +0.120907 ptp (2): 10: 00 +0.120915 ptp (2): 11: 00 +0.120922 ptp (2): 12: 00 +0.120930 ptp (2): 13: 00 +0.120938 ptp (2): 14: 00 +0.120945 ptp (2): 15: 00 +0.120953 ptp (2): 16: 04 +0.120961 ptp (2): 17: 00 +0.120968 ptp (2): 18: 00 +0.120976 ptp (2): 19: 00 +0.120984 ptp (2): 20: 00 +0.120991 ptp (2): 21: 00 +0.120999 ptp (2): 22: 00 +0.121006 ptp (2): 23: 00 +0.121014 ptp (2): 24: 00 +0.121022 ptp (2): 25: 00 +0.121029 ptp (2): 26: 00 +0.121037 ptp (2): 27: 00 +0.121045 ptp (2): 28: 00 +0.121052 ptp (2): 29: 00 +0.121060 ptp (2): 30: 00 +0.121067 ptp (2): 31: 00 +0.121075 ptp (2): 32: 00 +0.121083 ptp (2): 33: 00 +0.121090 ptp (2): 34: 00 +0.121098 ptp (2): 35: 00 +0.121106 ptp (2): 36: 02 +0.121113 ptp (2): 37: 00 +0.121121 ptp (2): 38: 00 +0.121129 ptp (2): 39: 00 +0.121136 ptp (2): 40: 04 +0.121144 ptp (2): 41: 00 +0.121151 ptp (2): 42: 00 +0.121159 ptp (2): 43: 00 +0.121167 ptp (2): event 32: EOS prop d164 info record, datasize is 44 +0.121183 ptp (2): event 32: Unknown EOS property d164, datasize is 44 +0.121192 ptp (2): 0: 2c +0.121199 ptp (2): 1: 00 +0.121207 ptp (2): 2: 00 +0.121215 ptp (2): 3: 00 +0.121223 ptp (2): 4: 01 +0.121230 ptp (2): 5: 00 +0.121238 ptp (2): 6: 00 +0.121245 ptp (2): 7: 00 +0.121253 ptp (2): 8: a6 +0.121261 ptp (2): 9: 00 +0.121268 ptp (2): 10: 00 +0.121276 ptp (2): 11: 00 +0.121284 ptp (2): 12: 00 +0.121292 ptp (2): 13: 00 +0.121299 ptp (2): 14: 00 +0.121307 ptp (2): 15: 00 +0.121315 ptp (2): 16: 04 +0.121323 ptp (2): 17: 00 +0.121330 ptp (2): 18: 00 +0.121338 ptp (2): 19: 00 +0.121345 ptp (2): 20: 00 +0.121353 ptp (2): 21: 00 +0.121361 ptp (2): 22: 00 +0.121368 ptp (2): 23: 00 +0.121376 ptp (2): 24: 00 +0.121384 ptp (2): 25: 00 +0.121391 ptp (2): 26: 00 +0.121399 ptp (2): 27: 00 +0.121407 ptp (2): 28: 00 +0.121414 ptp (2): 29: 00 +0.121422 ptp (2): 30: 00 +0.121430 ptp (2): 31: 00 +0.121437 ptp (2): 32: 00 +0.121445 ptp (2): 33: 00 +0.121452 ptp (2): 34: 00 +0.121465 ptp (2): 35: 00 +0.121473 ptp (2): 36: 02 +0.121481 ptp (2): 37: 00 +0.121488 ptp (2): 38: 00 +0.121496 ptp (2): 39: 00 +0.121504 ptp (2): 40: 04 +0.121511 ptp (2): 41: 00 +0.121519 ptp (2): 42: 00 +0.121527 ptp (2): 43: 00 +0.121535 ptp (2): event 33: EOS prop d165 info record, datasize is 44 +0.121544 ptp (2): event 33: Unknown EOS property d165, datasize is 44 +0.121552 ptp (2): 0: 2c +0.121560 ptp (2): 1: 00 +0.121567 ptp (2): 2: 00 +0.121575 ptp (2): 3: 00 +0.121583 ptp (2): 4: 01 +0.121591 ptp (2): 5: 00 +0.121598 ptp (2): 6: 00 +0.121606 ptp (2): 7: 00 +0.121614 ptp (2): 8: a6 +0.121621 ptp (2): 9: 00 +0.121629 ptp (2): 10: 00 +0.121637 ptp (2): 11: 00 +0.121644 ptp (2): 12: 00 +0.121652 ptp (2): 13: 00 +0.121660 ptp (2): 14: 00 +0.121667 ptp (2): 15: 00 +0.121675 ptp (2): 16: 04 +0.121683 ptp (2): 17: 00 +0.121690 ptp (2): 18: 00 +0.121698 ptp (2): 19: 00 +0.121706 ptp (2): 20: 00 +0.121713 ptp (2): 21: 00 +0.121721 ptp (2): 22: 00 +0.121729 ptp (2): 23: 00 +0.121736 ptp (2): 24: 00 +0.121744 ptp (2): 25: 00 +0.121751 ptp (2): 26: 00 +0.121759 ptp (2): 27: 00 +0.121767 ptp (2): 28: 00 +0.121774 ptp (2): 29: 00 +0.121782 ptp (2): 30: 00 +0.121790 ptp (2): 31: 00 +0.121797 ptp (2): 32: 00 +0.121805 ptp (2): 33: 00 +0.121812 ptp (2): 34: 00 +0.121820 ptp (2): 35: 00 +0.121828 ptp (2): 36: 02 +0.121835 ptp (2): 37: 00 +0.121843 ptp (2): 38: 00 +0.121851 ptp (2): 39: 00 +0.121858 ptp (2): 40: 04 +0.121866 ptp (2): 41: 00 +0.121874 ptp (2): 42: 00 +0.121881 ptp (2): 43: 00 +0.121889 ptp (2): event 34: EOS prop d1b1 info record, datasize is 4 +0.121899 ptp (2): event 34: currentvalue of d1b1 is 1 +0.121907 ptp (2): event 35: EOS prop d1bc info record, datasize is 4 +0.121916 ptp (2): event 35: Unknown EOS property d1bc, datasize is 4, using uint32 +0.121924 ptp (2): 0: 0x 0 +0.121932 ptp (2): event 35: currentvalue of d1bc is 0 +0.121941 ptp (2): event 36: EOS prop d1b2 info record, datasize is 4 +0.121949 ptp (2): event 36: Unknown EOS property d1b2, datasize is 4, using uint32 +0.121957 ptp (2): 0: 0x 0 +0.121966 ptp (2): event 36: currentvalue of d1b2 is 0 +0.121974 ptp (2): event 37: EOS prop d1b3 info record, datasize is 4 +0.121982 ptp (2): event 37: Unknown EOS property d1b3, datasize is 4, using uint32 +0.121990 ptp (2): 0: 0x 0 +0.122004 ptp (2): event 37: currentvalue of d1b3 is 0 +0.122013 ptp (2): event 38: EOS prop d1b4 info record, datasize is 4 +0.122021 ptp (2): event 38: Unknown EOS property d1b4, datasize is 4, using uint32 +0.122029 ptp (2): 0: 0x 0 +0.122038 ptp (2): event 38: currentvalue of d1b4 is 0 +0.122046 ptp (2): event 39: EOS prop d1b6 info record, datasize is 4 +0.122054 ptp (2): event 39: Unknown EOS property d1b6, datasize is 4, using uint32 +0.122062 ptp (2): 0: 0x 0 +0.122070 ptp (2): event 39: currentvalue of d1b6 is 0 +0.122078 ptp (2): event 40: EOS prop d1ab info record, datasize is 4 +0.122087 ptp (2): event 40: Unknown EOS property d1ab, datasize is 4, using uint32 +0.122095 ptp (2): 0: 0x 0 +0.122103 ptp (2): event 40: currentvalue of d1ab is 0 +0.122111 ptp (2): event 41: EOS prop d1b0 info record, datasize is 4 +0.122120 ptp (2): event 41: currentvalue of d1b0 is 1 +0.122128 ptp (2): event 42: EOS prop d10a info record, datasize is 4 +0.122137 ptp (2): event 42: Unknown EOS property d10a, datasize is 4, using uint32 +0.122145 ptp (2): 0: 0x 0 +0.122153 ptp (2): event 42: currentvalue of d10a is 0 +0.122161 ptp (2): event 43: EOS prop d1a8 info record, datasize is 4 +0.122170 ptp (2): event 43: Unknown EOS property d1a8, datasize is 4, using uint32 +0.122178 ptp (2): 0: 0x 1 +0.122187 ptp (2): event 43: currentvalue of d1a8 is 1 +0.122195 ptp (2): event 44: EOS prop d198 info record, datasize is 4 +0.122204 ptp (2): event 44: Unknown EOS property d198, datasize is 4 +0.122211 ptp (2): 0: ff +0.122219 ptp (2): 1: 00 +0.122227 ptp (2): 2: 00 +0.122235 ptp (2): 3: 00 +0.122243 ptp (2): event 45: EOS prop d1dd info record, datasize is 4 +0.122252 ptp (2): event 45: currentvalue of d1dd is ffff +0.122260 ptp (2): event 46: EOS prop d1a1 info record, datasize is 8 +0.122270 ptp (2): event 46: Unknown EOS property d1a1, datasize is 8 +0.122278 ptp (2): 0: 08 +0.122285 ptp (2): 1: 00 +0.122293 ptp (2): 2: 00 +0.122301 ptp (2): 3: 00 +0.122309 ptp (2): 4: 00 +0.122316 ptp (2): 5: 00 +0.122324 ptp (2): 6: 00 +0.122332 ptp (2): 7: 00 +0.122340 ptp (2): event 47: EOS prop d115 info record, datasize is 1 +0.122351 ptp (2): event 47: currentvalue of d115 is +0.122359 ptp (2): event 48: EOS prop d1a4 info record, datasize is 484 +0.122369 ptp (2): event 48: Unknown EOS property d1a4, datasize is 484 +0.122377 ptp (2): 0: e4 +0.122385 ptp (2): 1: 01 +0.122392 ptp (2): 2: 00 +0.122400 ptp (2): 3: 00 +0.122408 ptp (2): 4: 30 +0.122415 ptp (2): 5: 00 +0.122423 ptp (2): 6: 00 +0.122431 ptp (2): 7: 00 +0.122438 ptp (2): 8: 00 +0.122446 ptp (2): 9: 00 +0.122454 ptp (2): 10: 00 +0.122461 ptp (2): 11: 00 +0.122469 ptp (2): 12: 00 +0.122480 ptp (2): 13: 00 +0.122488 ptp (2): 14: 00 +0.122495 ptp (2): 15: 00 +0.122503 ptp (2): 16: 00 +0.122511 ptp (2): 17: 00 +0.122518 ptp (2): 18: 00 +0.122526 ptp (2): 19: 00 +0.122533 ptp (2): 20: 00 +0.122541 ptp (2): 21: 00 +0.122549 ptp (2): 22: 00 +0.122556 ptp (2): 23: 00 +0.122564 ptp (2): 24: 00 +0.122572 ptp (2): 25: 00 +0.122579 ptp (2): 26: 00 +0.122587 ptp (2): 27: 00 +0.122594 ptp (2): 28: 00 +0.122602 ptp (2): 29: 00 +0.122610 ptp (2): 30: 00 +0.122617 ptp (2): 31: 00 +0.122625 ptp (2): 32: 00 +0.122633 ptp (2): 33: 00 +0.122640 ptp (2): 34: 00 +0.122648 ptp (2): 35: 00 +0.122656 ptp (2): 36: 31 +0.122663 ptp (2): 37: 00 +0.122671 ptp (2): 38: 00 +0.122679 ptp (2): 39: 00 +0.122686 ptp (2): 40: 00 +0.122694 ptp (2): 41: 00 +0.122702 ptp (2): 42: 00 +0.122709 ptp (2): 43: 00 +0.122717 ptp (2): 44: 00 +0.122725 ptp (2): 45: 00 +0.122732 ptp (2): 46: 00 +0.122740 ptp (2): 47: 00 +0.122748 ptp (2): 48: 00 +0.122756 ptp (2): 49: 00 +0.122763 ptp (2): 50: 00 +0.122771 ptp (2): 51: 00 +0.122779 ptp (2): 52: 00 +0.122786 ptp (2): 53: 00 +0.122794 ptp (2): 54: 00 +0.122802 ptp (2): 55: 00 +0.122809 ptp (2): 56: 00 +0.122817 ptp (2): 57: 00 +0.122825 ptp (2): 58: 00 +0.122832 ptp (2): 59: 00 +0.122840 ptp (2): 60: 00 +0.122848 ptp (2): 61: 00 +0.122855 ptp (2): 62: 00 +0.122863 ptp (2): 63: 00 +0.122871 ptp (2): 64: 00 +0.122878 ptp (2): 65: 00 +0.122886 ptp (2): 66: 00 +0.122894 ptp (2): 67: 00 +0.122902 ptp (2): 68: 32 +0.122909 ptp (2): 69: 00 +0.122917 ptp (2): 70: 00 +0.122925 ptp (2): 71: 00 +0.122932 ptp (2): 72: 00 +0.122940 ptp (2): 73: 00 +0.122948 ptp (2): 74: 00 +0.122955 ptp (2): 75: 00 +0.122963 ptp (2): 76: 00 +0.122971 ptp (2): 77: 00 +0.122978 ptp (2): 78: 00 +0.122986 ptp (2): 79: 00 +0.122994 ptp (2): 80: 00 +0.123001 ptp (2): 81: 00 +0.123009 ptp (2): 82: 00 +0.123017 ptp (2): 83: 00 +0.123025 ptp (2): 84: 00 +0.123032 ptp (2): 85: 00 +0.123040 ptp (2): 86: 00 +0.123048 ptp (2): 87: 00 +0.123055 ptp (2): 88: 00 +0.123063 ptp (2): 89: 00 +0.123076 ptp (2): 90: 00 +0.123083 ptp (2): 91: 00 +0.123091 ptp (2): 92: 00 +0.123099 ptp (2): 93: 00 +0.123106 ptp (2): 94: 00 +0.123114 ptp (2): 95: 00 +0.123122 ptp (2): 96: 00 +0.123129 ptp (2): 97: 00 +0.123137 ptp (2): 98: 00 +0.123145 ptp (2): 99: 00 +0.123153 ptp (2): 100: 33 +0.123161 ptp (2): 101: 00 +0.123168 ptp (2): 102: 00 +0.123176 ptp (2): 103: 00 +0.123184 ptp (2): 104: 00 +0.123192 ptp (2): 105: 00 +0.123199 ptp (2): 106: 00 +0.123207 ptp (2): 107: 00 +0.123215 ptp (2): 108: 00 +0.123223 ptp (2): 109: 00 +0.123230 ptp (2): 110: 00 +0.123238 ptp (2): 111: 00 +0.123246 ptp (2): 112: 00 +0.123254 ptp (2): 113: 00 +0.123261 ptp (2): 114: 00 +0.123269 ptp (2): 115: 00 +0.123277 ptp (2): 116: 00 +0.123285 ptp (2): 117: 00 +0.123292 ptp (2): 118: 00 +0.123300 ptp (2): 119: 00 +0.123308 ptp (2): 120: 00 +0.123315 ptp (2): 121: 00 +0.123323 ptp (2): 122: 00 +0.123331 ptp (2): 123: 00 +0.123339 ptp (2): 124: 00 +0.123346 ptp (2): 125: 00 +0.123354 ptp (2): 126: 00 +0.123362 ptp (2): 127: 00 +0.123369 ptp (2): 128: 00 +0.123377 ptp (2): 129: 00 +0.123385 ptp (2): 130: 00 +0.123393 ptp (2): 131: 00 +0.123400 ptp (2): 132: 34 +0.123408 ptp (2): 133: 00 +0.123416 ptp (2): 134: 00 +0.123424 ptp (2): 135: 00 +0.123431 ptp (2): 136: 00 +0.123439 ptp (2): 137: 00 +0.123447 ptp (2): 138: 00 +0.123455 ptp (2): 139: 00 +0.123462 ptp (2): 140: 00 +0.123470 ptp (2): 141: 00 +0.123478 ptp (2): 142: 00 +0.123486 ptp (2): 143: 00 +0.123493 ptp (2): 144: 00 +0.123501 ptp (2): 145: 00 +0.123509 ptp (2): 146: 00 +0.123516 ptp (2): 147: 00 +0.123524 ptp (2): 148: 00 +0.123532 ptp (2): 149: 00 +0.123539 ptp (2): 150: 00 +0.123547 ptp (2): 151: 00 +0.123555 ptp (2): 152: 00 +0.123563 ptp (2): 153: 00 +0.123570 ptp (2): 154: 00 +0.123578 ptp (2): 155: 00 +0.123586 ptp (2): 156: 00 +0.123594 ptp (2): 157: 00 +0.123601 ptp (2): 158: 00 +0.123609 ptp (2): 159: 00 +0.123617 ptp (2): 160: 00 +0.123625 ptp (2): 161: 00 +0.123632 ptp (2): 162: 00 +0.123640 ptp (2): 163: 00 +0.123648 ptp (2): 164: 35 +0.123656 ptp (2): 165: 00 +0.123668 ptp (2): 166: 00 +0.123676 ptp (2): 167: 00 +0.123684 ptp (2): 168: 00 +0.123691 ptp (2): 169: 00 +0.123699 ptp (2): 170: 00 +0.123707 ptp (2): 171: 00 +0.123715 ptp (2): 172: 00 +0.123722 ptp (2): 173: 00 +0.123730 ptp (2): 174: 00 +0.123738 ptp (2): 175: 00 +0.123745 ptp (2): 176: 00 +0.123753 ptp (2): 177: 00 +0.123761 ptp (2): 178: 00 +0.123769 ptp (2): 179: 00 +0.123776 ptp (2): 180: 00 +0.123784 ptp (2): 181: 00 +0.123792 ptp (2): 182: 00 +0.123800 ptp (2): 183: 00 +0.123807 ptp (2): 184: 00 +0.123815 ptp (2): 185: 00 +0.123823 ptp (2): 186: 00 +0.123830 ptp (2): 187: 00 +0.123838 ptp (2): 188: 00 +0.123846 ptp (2): 189: 00 +0.123854 ptp (2): 190: 00 +0.123861 ptp (2): 191: 00 +0.123869 ptp (2): 192: 00 +0.123877 ptp (2): 193: 00 +0.123885 ptp (2): 194: 00 +0.123892 ptp (2): 195: 00 +0.123900 ptp (2): 196: 36 +0.123908 ptp (2): 197: 00 +0.123915 ptp (2): 198: 00 +0.123923 ptp (2): 199: 00 +0.123931 ptp (2): 200: 00 +0.123939 ptp (2): 201: 00 +0.123946 ptp (2): 202: 00 +0.123954 ptp (2): 203: 00 +0.123962 ptp (2): 204: 00 +0.123970 ptp (2): 205: 00 +0.123977 ptp (2): 206: 00 +0.123985 ptp (2): 207: 00 +0.123993 ptp (2): 208: 00 +0.124000 ptp (2): 209: 00 +0.124008 ptp (2): 210: 00 +0.124016 ptp (2): 211: 00 +0.124024 ptp (2): 212: 00 +0.124031 ptp (2): 213: 00 +0.124039 ptp (2): 214: 00 +0.124047 ptp (2): 215: 00 +0.124055 ptp (2): 216: 00 +0.124062 ptp (2): 217: 00 +0.124070 ptp (2): 218: 00 +0.124078 ptp (2): 219: 00 +0.124085 ptp (2): 220: 00 +0.124093 ptp (2): 221: 00 +0.124101 ptp (2): 222: 00 +0.124109 ptp (2): 223: 00 +0.124116 ptp (2): 224: 00 +0.124124 ptp (2): 225: 00 +0.124132 ptp (2): 226: 00 +0.124140 ptp (2): 227: 00 +0.124147 ptp (2): 228: 37 +0.124155 ptp (2): 229: 00 +0.124163 ptp (2): 230: 00 +0.124170 ptp (2): 231: 00 +0.124178 ptp (2): 232: 00 +0.124186 ptp (2): 233: 00 +0.124194 ptp (2): 234: 00 +0.124201 ptp (2): 235: 00 +0.124209 ptp (2): 236: 00 +0.124241 ptp (2): 237: 00 +0.124245 ptp (2): 238: 00 +0.124247 ptp (2): 239: 00 +0.124250 ptp (2): 240: 00 +0.124253 ptp (2): 241: 00 +0.124258 ptp (2): 242: 00 +0.124261 ptp (2): 243: 00 +0.124263 ptp (2): 244: 00 +0.124266 ptp (2): 245: 00 +0.124269 ptp (2): 246: 00 +0.124272 ptp (2): 247: 00 +0.124274 ptp (2): 248: 00 +0.124277 ptp (2): 249: 00 +0.124280 ptp (2): 250: 00 +0.124283 ptp (2): 251: 00 +0.124286 ptp (2): 252: 00 +0.124288 ptp (2): 253: 00 +0.124291 ptp (2): 254: 00 +0.124294 ptp (2): 255: 00 +0.124297 ptp (2): 256: 00 +0.124300 ptp (2): 257: 00 +0.124302 ptp (2): 258: 00 +0.124305 ptp (2): 259: 00 +0.124308 ptp (2): 260: 38 +0.124311 ptp (2): 261: 00 +0.124313 ptp (2): 262: 00 +0.124316 ptp (2): 263: 00 +0.124319 ptp (2): 264: 00 +0.124322 ptp (2): 265: 00 +0.124325 ptp (2): 266: 00 +0.124327 ptp (2): 267: 00 +0.124330 ptp (2): 268: 00 +0.124333 ptp (2): 269: 00 +0.124336 ptp (2): 270: 00 +0.124343 ptp (2): 271: 00 +0.124345 ptp (2): 272: 00 +0.124348 ptp (2): 273: 00 +0.124351 ptp (2): 274: 00 +0.124354 ptp (2): 275: 00 +0.124357 ptp (2): 276: 00 +0.124359 ptp (2): 277: 00 +0.124362 ptp (2): 278: 00 +0.124365 ptp (2): 279: 00 +0.124368 ptp (2): 280: 00 +0.124371 ptp (2): 281: 00 +0.124373 ptp (2): 282: 00 +0.124376 ptp (2): 283: 00 +0.124379 ptp (2): 284: 00 +0.124382 ptp (2): 285: 00 +0.124384 ptp (2): 286: 00 +0.124387 ptp (2): 287: 00 +0.124390 ptp (2): 288: 00 +0.124393 ptp (2): 289: 00 +0.124396 ptp (2): 290: 00 +0.124398 ptp (2): 291: 00 +0.124401 ptp (2): 292: 39 +0.124404 ptp (2): 293: 00 +0.124407 ptp (2): 294: 00 +0.124409 ptp (2): 295: 00 +0.124412 ptp (2): 296: 00 +0.124415 ptp (2): 297: 00 +0.124418 ptp (2): 298: 00 +0.124421 ptp (2): 299: 00 +0.124423 ptp (2): 300: 00 +0.124426 ptp (2): 301: 00 +0.124429 ptp (2): 302: 00 +0.124432 ptp (2): 303: 00 +0.124435 ptp (2): 304: 00 +0.124437 ptp (2): 305: 00 +0.124440 ptp (2): 306: 00 +0.124443 ptp (2): 307: 00 +0.124446 ptp (2): 308: 00 +0.124449 ptp (2): 309: 00 +0.124451 ptp (2): 310: 00 +0.124454 ptp (2): 311: 00 +0.124457 ptp (2): 312: 00 +0.124460 ptp (2): 313: 00 +0.124462 ptp (2): 314: 00 +0.124468 ptp (2): 315: 00 +0.124471 ptp (2): 316: 00 +0.124473 ptp (2): 317: 00 +0.124479 ptp (2): 318: 00 +0.124482 ptp (2): 319: 00 +0.124485 ptp (2): 320: 00 +0.124488 ptp (2): 321: 00 +0.124491 ptp (2): 322: 00 +0.124493 ptp (2): 323: 00 +0.124496 ptp (2): 324: 31 +0.124499 ptp (2): 325: 30 +0.124502 ptp (2): 326: 00 +0.124505 ptp (2): 327: 00 +0.124507 ptp (2): 328: 00 +0.124510 ptp (2): 329: 00 +0.124513 ptp (2): 330: 00 +0.124516 ptp (2): 331: 00 +0.124519 ptp (2): 332: 00 +0.124521 ptp (2): 333: 00 +0.124524 ptp (2): 334: 00 +0.124527 ptp (2): 335: 00 +0.124530 ptp (2): 336: 00 +0.124533 ptp (2): 337: 00 +0.124535 ptp (2): 338: 00 +0.124538 ptp (2): 339: 00 +0.124541 ptp (2): 340: 00 +0.124544 ptp (2): 341: 00 +0.124546 ptp (2): 342: 00 +0.124549 ptp (2): 343: 00 +0.124552 ptp (2): 344: 00 +0.124555 ptp (2): 345: 00 +0.124558 ptp (2): 346: 00 +0.124560 ptp (2): 347: 00 +0.124563 ptp (2): 348: 00 +0.124566 ptp (2): 349: 00 +0.124569 ptp (2): 350: 00 +0.124571 ptp (2): 351: 00 +0.124574 ptp (2): 352: 00 +0.124577 ptp (2): 353: 00 +0.124580 ptp (2): 354: 00 +0.124583 ptp (2): 355: 00 +0.124585 ptp (2): 356: 31 +0.124588 ptp (2): 357: 31 +0.124591 ptp (2): 358: 00 +0.124594 ptp (2): 359: 00 +0.124597 ptp (2): 360: 00 +0.124599 ptp (2): 361: 00 +0.124602 ptp (2): 362: 00 +0.124605 ptp (2): 363: 00 +0.124608 ptp (2): 364: 00 +0.124610 ptp (2): 365: 00 +0.124613 ptp (2): 366: 00 +0.124616 ptp (2): 367: 00 +0.124619 ptp (2): 368: 00 +0.124622 ptp (2): 369: 00 +0.124624 ptp (2): 370: 00 +0.124627 ptp (2): 371: 00 +0.124630 ptp (2): 372: 00 +0.124633 ptp (2): 373: 00 +0.124635 ptp (2): 374: 00 +0.124638 ptp (2): 375: 00 +0.124641 ptp (2): 376: 00 +0.124644 ptp (2): 377: 00 +0.124647 ptp (2): 378: 00 +0.124649 ptp (2): 379: 00 +0.124652 ptp (2): 380: 00 +0.124655 ptp (2): 381: 00 +0.124658 ptp (2): 382: 00 +0.124660 ptp (2): 383: 00 +0.124663 ptp (2): 384: 00 +0.124666 ptp (2): 385: 00 +0.124669 ptp (2): 386: 00 +0.124671 ptp (2): 387: 00 +0.124674 ptp (2): 388: 31 +0.124677 ptp (2): 389: 32 +0.124680 ptp (2): 390: 00 +0.124683 ptp (2): 391: 00 +0.124685 ptp (2): 392: 00 +0.124690 ptp (2): 393: 00 +0.124693 ptp (2): 394: 00 +0.124696 ptp (2): 395: 00 +0.124698 ptp (2): 396: 00 +0.124701 ptp (2): 397: 00 +0.124704 ptp (2): 398: 00 +0.124707 ptp (2): 399: 00 +0.124710 ptp (2): 400: 00 +0.124712 ptp (2): 401: 00 +0.124715 ptp (2): 402: 00 +0.124718 ptp (2): 403: 00 +0.124721 ptp (2): 404: 00 +0.124723 ptp (2): 405: 00 +0.124726 ptp (2): 406: 00 +0.124729 ptp (2): 407: 00 +0.124732 ptp (2): 408: 00 +0.124734 ptp (2): 409: 00 +0.124737 ptp (2): 410: 00 +0.124740 ptp (2): 411: 00 +0.124743 ptp (2): 412: 00 +0.124746 ptp (2): 413: 00 +0.124748 ptp (2): 414: 00 +0.124751 ptp (2): 415: 00 +0.124754 ptp (2): 416: 00 +0.124757 ptp (2): 417: 00 +0.124759 ptp (2): 418: 00 +0.124762 ptp (2): 419: 00 +0.124765 ptp (2): 420: 31 +0.124768 ptp (2): 421: 33 +0.124771 ptp (2): 422: 00 +0.124773 ptp (2): 423: 00 +0.124776 ptp (2): 424: 00 +0.124779 ptp (2): 425: 00 +0.124782 ptp (2): 426: 00 +0.124784 ptp (2): 427: 00 +0.124787 ptp (2): 428: 00 +0.124790 ptp (2): 429: 00 +0.124793 ptp (2): 430: 00 +0.124796 ptp (2): 431: 00 +0.124798 ptp (2): 432: 00 +0.124801 ptp (2): 433: 00 +0.124804 ptp (2): 434: 00 +0.124807 ptp (2): 435: 00 +0.124809 ptp (2): 436: 00 +0.124812 ptp (2): 437: 00 +0.124815 ptp (2): 438: 00 +0.124818 ptp (2): 439: 00 +0.124820 ptp (2): 440: 00 +0.124823 ptp (2): 441: 00 +0.124826 ptp (2): 442: 00 +0.124829 ptp (2): 443: 00 +0.124832 ptp (2): 444: 00 +0.124834 ptp (2): 445: 00 +0.124837 ptp (2): 446: 00 +0.124840 ptp (2): 447: 00 +0.124843 ptp (2): 448: 00 +0.124845 ptp (2): 449: 00 +0.124848 ptp (2): 450: 00 +0.124851 ptp (2): 451: 00 +0.124854 ptp (2): 452: 31 +0.124857 ptp (2): 453: 34 +0.124859 ptp (2): 454: 00 +0.124862 ptp (2): 455: 00 +0.124865 ptp (2): 456: 00 +0.124868 ptp (2): 457: 00 +0.124870 ptp (2): 458: 00 +0.124873 ptp (2): 459: 00 +0.124876 ptp (2): 460: 00 +0.124879 ptp (2): 461: 00 +0.124882 ptp (2): 462: 00 +0.124884 ptp (2): 463: 00 +0.124887 ptp (2): 464: 00 +0.124890 ptp (2): 465: 00 +0.124893 ptp (2): 466: 00 +0.124896 ptp (2): 467: 00 +0.124899 ptp (2): 468: 00 +0.124903 ptp (2): 469: 00 +0.124906 ptp (2): 470: 00 +0.124909 ptp (2): 471: 00 +0.124912 ptp (2): 472: 00 +0.124915 ptp (2): 473: 00 +0.124917 ptp (2): 474: 00 +0.124920 ptp (2): 475: 00 +0.124923 ptp (2): 476: 00 +0.124926 ptp (2): 477: 00 +0.124928 ptp (2): 478: 00 +0.124931 ptp (2): 479: 00 +0.124934 ptp (2): 480: 00 +0.124937 ptp (2): 481: 00 +0.124940 ptp (2): 482: 00 +0.124942 ptp (2): 483: 00 +0.124945 ptp (2): event 49: EOS prop d1b8 info record, datasize is 4 +0.124949 ptp (2): event 49: currentvalue of d1b8 is 6 +0.124952 ptp (2): event 50: EOS prop d1ba info record, datasize is 4 +0.124955 ptp (2): event 50: Unknown EOS property d1ba, datasize is 4, using uint32 +0.124958 ptp (2): 0: 0x 2 +0.124961 ptp (2): event 50: currentvalue of d1ba is 2 +0.124964 ptp (2): event 51: EOS prop d1c9 info record, datasize is 4 +0.124967 ptp (2): event 51: currentvalue of d1c9 is 1 +0.124970 ptp (2): event 52: EOS prop d17a info record, datasize is 4 +0.124973 ptp (2): event 52: Unknown EOS property d17a, datasize is 4 +0.124976 ptp (2): 0: 01 +0.124979 ptp (2): 1: 55 +0.124982 ptp (2): 2: 55 +0.124985 ptp (2): 3: 55 +0.124988 ptp (2): event 53: EOS prop d1cd info record, datasize is 44 +0.124991 ptp (2): event 53: Unknown EOS property d1cd, datasize is 44 +0.124994 ptp (2): 0: 2c +0.124997 ptp (2): 1: 00 +0.125000 ptp (2): 2: 00 +0.125003 ptp (2): 3: 00 +0.125005 ptp (2): 4: 00 +0.125008 ptp (2): 5: 00 +0.125011 ptp (2): 6: 00 +0.125014 ptp (2): 7: 00 +0.125016 ptp (2): 8: 01 +0.125019 ptp (2): 9: 00 +0.125022 ptp (2): 10: 00 +0.125025 ptp (2): 11: 00 +0.125028 ptp (2): 12: 88 +0.125030 ptp (2): 13: 13 +0.125033 ptp (2): 14: 00 +0.125036 ptp (2): 15: 00 +0.125039 ptp (2): 16: 18 +0.125042 ptp (2): 17: 00 +0.125044 ptp (2): 18: 00 +0.125047 ptp (2): 19: 00 +0.125050 ptp (2): 20: 00 +0.125053 ptp (2): 21: 00 +0.125055 ptp (2): 22: 00 +0.125058 ptp (2): 23: 00 +0.125061 ptp (2): 24: 03 +0.125064 ptp (2): 25: 00 +0.125066 ptp (2): 26: 00 +0.125069 ptp (2): 27: 00 +0.125072 ptp (2): 28: 01 +0.125075 ptp (2): 29: 00 +0.125078 ptp (2): 30: 00 +0.125080 ptp (2): 31: 00 +0.125083 ptp (2): 32: 00 +0.125086 ptp (2): 33: 00 +0.125089 ptp (2): 34: 00 +0.125091 ptp (2): 35: 00 +0.125094 ptp (2): 36: 00 +0.125097 ptp (2): 37: 00 +0.125100 ptp (2): 38: 00 +0.125104 ptp (2): 39: 00 +0.125107 ptp (2): 40: 00 +0.125110 ptp (2): 41: 00 +0.125113 ptp (2): 42: 00 +0.125115 ptp (2): 43: 00 +0.125118 ptp (2): event 54: EOS prop d1c5 info record, datasize is 4 +0.125124 ptp (2): event 54: Unknown EOS property d1c5, datasize is 4 +0.125127 ptp (2): 0: 00 +0.125130 ptp (2): 1: 00 +0.125133 ptp (2): 2: 00 +0.125136 ptp (2): 3: 00 +0.125139 ptp (2): event 55: EOS prop d1d4 info record, datasize is 4 +0.125143 ptp (2): event 55: Unknown EOS property d1d4, datasize is 4, using uint32 +0.125146 ptp (2): 0: 0x 0 +0.125149 ptp (2): event 55: currentvalue of d1d4 is 0 +0.125152 ptp (2): event 56: EOS prop d1c2 info record, datasize is 4 +0.125155 ptp (2): event 56: Unknown EOS property d1c2, datasize is 4 +0.125158 ptp (2): 0: 00 +0.125161 ptp (2): 1: 00 +0.125164 ptp (2): 2: 00 +0.125167 ptp (2): 3: 00 +0.125169 ptp (2): event 57: EOS prop d1bd info record, datasize is 4 +0.125173 ptp (2): event 57: Unknown EOS property d1bd, datasize is 4 +0.125176 ptp (2): 0: 00 +0.125179 ptp (2): 1: 00 +0.125181 ptp (2): 2: 00 +0.125184 ptp (2): 3: 00 +0.125187 ptp (2): event 58: EOS prop d194 info record, datasize is 4 +0.125191 ptp (2): event 58: currentvalue of d194 is 0 +0.125194 ptp (2): event 59: EOS prop d195 info record, datasize is 4 +0.125197 ptp (2): event 59: Unknown EOS property d195, datasize is 4 +0.125200 ptp (2): 0: 00 +0.125203 ptp (2): 1: 00 +0.125206 ptp (2): 2: 00 +0.125209 ptp (2): 3: 00 +0.125212 ptp (2): event 60: EOS prop d196 info record, datasize is 4 +0.125215 ptp (2): event 60: Unknown EOS property d196, datasize is 4 +0.125218 ptp (2): 0: 2f +0.125221 ptp (2): 1: 00 +0.125223 ptp (2): 2: 00 +0.125226 ptp (2): 3: 00 +0.125229 ptp (2): event 61: EOS prop d197 info record, datasize is 4 +0.125232 ptp (2): event 61: Unknown EOS property d197, datasize is 4 +0.125235 ptp (2): 0: 00 +0.125238 ptp (2): 1: 00 +0.125241 ptp (2): 2: 00 +0.125243 ptp (2): 3: 00 +0.125246 ptp (2): event 62: EOS prop d13c info record, datasize is 4 +0.125250 ptp (2): event 62: currentvalue of d13c is 55555757 +0.125253 ptp (2): event 63: EOS prop d13d info record, datasize is 24 +0.125256 ptp (2): event 63: Unknown EOS property d13d, datasize is 24 +0.125259 ptp (2): 0: 18 +0.125262 ptp (2): 1: 00 +0.125265 ptp (2): 2: 00 +0.125267 ptp (2): 3: 00 +0.125270 ptp (2): 4: 00 +0.125273 ptp (2): 5: 00 +0.125276 ptp (2): 6: 00 +0.125278 ptp (2): 7: 00 +0.125281 ptp (2): 8: 00 +0.125284 ptp (2): 9: 00 +0.125287 ptp (2): 10: 00 +0.125292 ptp (2): 11: 00 +0.125295 ptp (2): 12: 01 +0.125297 ptp (2): 13: 00 +0.125300 ptp (2): 14: 00 +0.125303 ptp (2): 15: 00 +0.125306 ptp (2): 16: 01 +0.125309 ptp (2): 17: 00 +0.125311 ptp (2): 18: 00 +0.125314 ptp (2): 19: 00 +0.125317 ptp (2): 20: 00 +0.125320 ptp (2): 21: 00 +0.125322 ptp (2): 22: 00 +0.125325 ptp (2): 23: 00 +0.125328 ptp (2): event 64: EOS prop d179 info record, datasize is 4 +0.125331 ptp (2): event 64: Unknown EOS property d179, datasize is 4 +0.125334 ptp (2): 0: 00 +0.125337 ptp (2): 1: 00 +0.125340 ptp (2): 2: 00 +0.125343 ptp (2): 3: 00 +0.125345 ptp (2): event 65: EOS prop d17b info record, datasize is 4 +0.125349 ptp (2): event 65: Unknown EOS property d17b, datasize is 4 +0.125351 ptp (2): 0: 02 +0.125354 ptp (2): 1: 00 +0.125357 ptp (2): 2: 00 +0.125360 ptp (2): 3: 00 +0.125363 ptp (2): event 66: EOS prop d177 info record, datasize is 24 +0.125366 ptp (2): event 66: Unknown EOS property d177, datasize is 24 +0.125369 ptp (2): 0: 00 +0.125372 ptp (2): 1: 00 +0.125374 ptp (2): 2: 00 +0.125377 ptp (2): 3: 00 +0.125380 ptp (2): 4: 00 +0.125383 ptp (2): 5: 00 +0.125385 ptp (2): 6: 00 +0.125388 ptp (2): 7: 00 +0.125391 ptp (2): 8: 00 +0.125394 ptp (2): 9: 00 +0.125397 ptp (2): 10: 00 +0.125399 ptp (2): 11: 00 +0.125402 ptp (2): 12: 00 +0.125405 ptp (2): 13: 00 +0.125408 ptp (2): 14: 00 +0.125411 ptp (2): 15: 00 +0.125413 ptp (2): 16: 00 +0.125416 ptp (2): 17: 00 +0.125419 ptp (2): 18: 00 +0.125422 ptp (2): 19: 00 +0.125424 ptp (2): 20: 00 +0.125427 ptp (2): 21: 00 +0.125430 ptp (2): 22: 00 +0.125433 ptp (2): 23: 00 +0.125435 ptp (2): event 67: EOS prop d176 info record, datasize is 4 +0.125439 ptp (2): event 67: Unknown EOS property d176, datasize is 4 +0.125442 ptp (2): 0: 00 +0.125444 ptp (2): 1: 00 +0.125447 ptp (2): 2: 00 +0.125450 ptp (2): 3: 00 +0.125453 ptp (2): event 68: EOS prop d175 info record, datasize is 4 +0.125456 ptp (2): event 68: Unknown EOS property d175, datasize is 4 +0.125459 ptp (2): 0: 00 +0.125462 ptp (2): 1: 00 +0.125464 ptp (2): 2: 00 +0.125467 ptp (2): 3: 00 +0.125470 ptp (2): event 69: EOS prop d137 info record, datasize is 4 +0.125473 ptp (2): event 69: Unknown EOS property d137, datasize is 4 +0.125476 ptp (2): 0: 00 +0.125479 ptp (2): 1: 00 +0.125482 ptp (2): 2: 00 +0.125484 ptp (2): 3: 00 +0.125489 ptp (2): event 70: EOS prop d178 info record, datasize is 4 +0.125493 ptp (2): event 70: currentvalue of d178 is 0 +0.125496 ptp (2): event 71: EOS prop d121 info record, datasize is 36 +0.125499 ptp (2): event 71: decoded imageformat, currentvalue of d121 is 300 +0.125502 ptp (2): event 72: EOS prop d120 info record, datasize is 36 +0.125506 ptp (2): event 72: decoded imageformat, currentvalue of d120 is 300 +0.125509 ptp (2): event 73: EOS prop d122 info record, datasize is 36 +0.125512 ptp (2): event 73: decoded imageformat, currentvalue of d122 is 300 +0.125515 ptp (2): event 74: EOS prop d133 info record, datasize is 4 +0.125518 ptp (2): event 74: Unknown EOS property d133, datasize is 4 +0.125521 ptp (2): 0: 00 +0.125524 ptp (2): 1: 00 +0.125527 ptp (2): 2: 00 +0.125529 ptp (2): 3: 00 +0.125532 ptp (2): event 75: EOS prop d131 info record, datasize is 4 +0.125536 ptp (2): event 75: Unknown EOS property d131, datasize is 4 +0.125538 ptp (2): 0: 00 +0.125541 ptp (2): 1: 00 +0.125544 ptp (2): 2: 00 +0.125547 ptp (2): 3: 00 +0.125550 ptp (2): event 76: EOS prop d132 info record, datasize is 4 +0.125553 ptp (2): event 76: Unknown EOS property d132, datasize is 4 +0.125556 ptp (2): 0: 00 +0.125559 ptp (2): 1: 00 +0.125561 ptp (2): 2: 00 +0.125564 ptp (2): 3: 00 +0.125567 ptp (2): event 77: EOS prop d130 info record, datasize is 4 +0.125570 ptp (2): event 77: Unknown EOS property d130, datasize is 4 +0.125573 ptp (2): 0: 00 +0.125576 ptp (2): 1: 00 +0.125579 ptp (2): 2: 00 +0.125581 ptp (2): 3: 00 +0.125584 ptp (2): event 78: EOS prop d11c info record, datasize is 4 +0.125589 ptp (2): event 78: currentvalue of d11c is 2 +0.125592 ptp (2): event 79: EOS prop d113 info record, datasize is 4 +0.125595 ptp (2): event 79: currentvalue of d113 is 5a4e5343 +0.125598 ptp (2): event 80: EOS prop d1a7 info record, datasize is 40 +0.125601 ptp (2): event 80: Unknown EOS property d1a7, datasize is 40 +0.125604 ptp (2): 0: 00 +0.125607 ptp (2): 1: 00 +0.125610 ptp (2): 2: 00 +0.125613 ptp (2): 3: 00 +0.125615 ptp (2): 4: 00 +0.125618 ptp (2): 5: 00 +0.125621 ptp (2): 6: 00 +0.125624 ptp (2): 7: 00 +0.125626 ptp (2): 8: 00 +0.125629 ptp (2): 9: 00 +0.125632 ptp (2): 10: 00 +0.125635 ptp (2): 11: 00 +0.125638 ptp (2): 12: 00 +0.125641 ptp (2): 13: 00 +0.125643 ptp (2): 14: 00 +0.125646 ptp (2): 15: 00 +0.125649 ptp (2): 16: 00 +0.125652 ptp (2): 17: 00 +0.125654 ptp (2): 18: 00 +0.125657 ptp (2): 19: 00 +0.125660 ptp (2): 20: 00 +0.125663 ptp (2): 21: 00 +0.125665 ptp (2): 22: 00 +0.125671 ptp (2): 23: 00 +0.125674 ptp (2): 24: 00 +0.125676 ptp (2): 25: 00 +0.125679 ptp (2): 26: 00 +0.125682 ptp (2): 27: 00 +0.125685 ptp (2): 28: 00 +0.125687 ptp (2): 29: 00 +0.125690 ptp (2): 30: 00 +0.125693 ptp (2): 31: 00 +0.125696 ptp (2): 32: 00 +0.125699 ptp (2): 33: 00 +0.125701 ptp (2): 34: 00 +0.125704 ptp (2): 35: 00 +0.125707 ptp (2): 36: 00 +0.125710 ptp (2): 37: 00 +0.125712 ptp (2): 38: 00 +0.125715 ptp (2): 39: 00 +0.125718 ptp (2): event 81: EOS prop d112 info record, datasize is 4 +0.125721 ptp (2): event 81: currentvalue of d112 is 0 +0.125724 ptp (2): event 82: EOS prop d111 info record, datasize is 4 +0.125727 ptp (2): event 82: currentvalue of d111 is 9 +0.125730 ptp (2): event 83: EOS prop d1d8 info record, datasize is 63 +0.125734 ptp (2): event 83: currentvalue of d1d8 is +0.125737 ptp (2): event 84: EOS prop d1da info record, datasize is 16 +0.125740 ptp (2): event 84: Unknown EOS property d1da, datasize is 16 +0.125743 ptp (2): 0: 00 +0.125746 ptp (2): 1: 00 +0.125748 ptp (2): 2: 00 +0.125751 ptp (2): 3: 00 +0.125754 ptp (2): 4: 00 +0.125757 ptp (2): 5: 00 +0.125760 ptp (2): 6: 00 +0.125762 ptp (2): 7: 00 +0.125765 ptp (2): 8: 00 +0.125768 ptp (2): 9: 00 +0.125771 ptp (2): 10: 00 +0.125773 ptp (2): 11: 00 +0.125776 ptp (2): 12: 00 +0.125779 ptp (2): 13: 00 +0.125782 ptp (2): 14: 00 +0.125785 ptp (2): 15: 00 +0.125788 ptp (2): event 85: EOS prop d17e info record, datasize is 4 +0.125791 ptp (2): event 85: currentvalue of d17e is 0 +0.125794 ptp (2): event 86: EOS prop d17c info record, datasize is 4 +0.125797 ptp (2): event 86: currentvalue of d17c is 5a4e5343 +0.125800 ptp (2): event 87: EOS prop d11f info record, datasize is 4 +0.125803 ptp (2): event 87: currentvalue of d11f is 93f40000 +0.125806 ptp (2): event 88: EOS prop d11f info record, datasize is 4 +0.125809 ptp (2): event 88: currentvalue of d11f is 93f40000 +0.125812 ptp (2): event 89: EOS prop d11e info record, datasize is 4 +0.125815 ptp (2): event 89: currentvalue of d11e is 20001 +0.125818 ptp (2): event 90: EOS prop d1aa info record, datasize is 4 +0.125822 ptp (2): event 90: Unknown EOS property d1aa, datasize is 4, using uint32 +0.125825 ptp (2): 0: 0x 0 +0.125828 ptp (2): event 90: currentvalue of d1aa is 0 +0.125831 ptp (2): event 91: EOS prop d139 info record, datasize is 12 +0.125834 ptp (2): event 91: Unknown EOS property d139, datasize is 12 +0.125837 ptp (2): 0: 00 +0.125839 ptp (2): 1: 00 +0.125842 ptp (2): 2: 00 +0.125845 ptp (2): 3: 00 +0.125848 ptp (2): 4: 00 +0.125853 ptp (2): 5: 00 +0.125855 ptp (2): 6: 00 +0.125858 ptp (2): 7: 00 +0.125861 ptp (2): 8: 00 +0.125864 ptp (2): 9: 00 +0.125866 ptp (2): 10: 00 +0.125869 ptp (2): 11: 00 +0.125872 ptp (2): event 92: EOS prop d1c3 info record, datasize is 4 +0.125875 ptp (2): event 92: Unknown EOS property d1c3, datasize is 4 +0.125878 ptp (2): 0: 00 +0.125881 ptp (2): 1: 00 +0.125884 ptp (2): 2: 00 +0.125887 ptp (2): 3: 00 +0.125889 ptp (2): event 93: EOS prop d13a info record, datasize is 4 +0.125893 ptp (2): event 93: currentvalue of d13a is 0 +0.125896 ptp (2): event 94: EOS prop d1bf info record, datasize is 4 +0.125899 ptp (2): event 94: Unknown EOS property d1bf, datasize is 4 +0.125902 ptp (2): 0: 00 +0.125904 ptp (2): 1: 00 +0.125907 ptp (2): 2: 00 +0.125910 ptp (2): 3: 00 +0.125913 ptp (2): event 95: EOS prop d11d info record, datasize is 4 +0.125916 ptp (2): event 95: currentvalue of d11d is 0 +0.125919 ptp (2): event 96: EOS prop d1c7 info record, datasize is 4 +0.125922 ptp (2): event 96: Unknown EOS property d1c7, datasize is 4 +0.125925 ptp (2): 0: 00 +0.125928 ptp (2): 1: 00 +0.125930 ptp (2): 2: 00 +0.125933 ptp (2): 3: 00 +0.125936 ptp (2): event 97: EOS prop d1c4 info record, datasize is 4 +0.125939 ptp (2): event 97: Unknown EOS property d1c4, datasize is 4 +0.125942 ptp (2): 0: 00 +0.125945 ptp (2): 1: 00 +0.125948 ptp (2): 2: 00 +0.125950 ptp (2): 3: 00 +0.125953 ptp (2): event 98: EOS prop d1cb info record, datasize is 52 +0.125957 ptp (2): event 98: Unknown EOS property d1cb, datasize is 52 +0.125960 ptp (2): 0: 34 +0.125962 ptp (2): 1: 00 +0.125965 ptp (2): 2: 00 +0.125968 ptp (2): 3: 00 +0.125971 ptp (2): 4: 00 +0.125973 ptp (2): 5: 00 +0.125976 ptp (2): 6: 00 +0.125979 ptp (2): 7: 00 +0.125982 ptp (2): 8: 00 +0.125985 ptp (2): 9: 00 +0.125987 ptp (2): 10: 00 +0.125990 ptp (2): 11: 00 +0.125993 ptp (2): 12: 00 +0.125996 ptp (2): 13: 00 +0.125999 ptp (2): 14: 00 +0.126001 ptp (2): 15: 00 +0.126004 ptp (2): 16: 00 +0.126007 ptp (2): 17: 00 +0.126010 ptp (2): 18: 00 +0.126012 ptp (2): 19: 00 +0.126015 ptp (2): 20: 00 +0.126018 ptp (2): 21: 00 +0.126021 ptp (2): 22: 00 +0.126023 ptp (2): 23: 00 +0.126026 ptp (2): 24: 00 +0.126029 ptp (2): 25: 00 +0.126032 ptp (2): 26: 00 +0.126034 ptp (2): 27: 00 +0.126037 ptp (2): 28: 00 +0.126040 ptp (2): 29: 00 +0.126043 ptp (2): 30: 00 +0.126048 ptp (2): 31: 00 +0.126051 ptp (2): 32: 00 +0.126053 ptp (2): 33: 00 +0.126056 ptp (2): 34: 00 +0.126059 ptp (2): 35: 00 +0.126062 ptp (2): 36: 00 +0.126065 ptp (2): 37: 00 +0.126067 ptp (2): 38: 00 +0.126070 ptp (2): 39: 00 +0.126073 ptp (2): 40: 00 +0.126076 ptp (2): 41: 00 +0.126078 ptp (2): 42: 00 +0.126081 ptp (2): 43: 00 +0.126084 ptp (2): 44: 00 +0.126087 ptp (2): 45: 00 +0.126089 ptp (2): 46: 00 +0.126092 ptp (2): 47: 00 +0.126095 ptp (2): 48: 00 +0.126098 ptp (2): 49: 00 +0.126100 ptp (2): 50: 00 +0.126103 ptp (2): 51: 00 +0.126106 ptp (2): event 99: EOS prop d1df info record, datasize is 4 +0.126109 ptp (2): event 99: Unknown EOS property d1df, datasize is 4 +0.126112 ptp (2): 0: 00 +0.126115 ptp (2): 1: 00 +0.126118 ptp (2): 2: 00 +0.126121 ptp (2): 3: 00 +0.126124 ptp (2): event 100: EOS prop d056 info record, datasize is 4 +0.126127 ptp (2): event 100: Unknown EOS property d056, datasize is 4 +0.126130 ptp (2): 0: 03 +0.126133 ptp (2): 1: 00 +0.126135 ptp (2): 2: 00 +0.126138 ptp (2): 3: 00 +0.126141 ptp (2): event 101: EOS prop d056 info record, datasize is 4 +0.126144 ptp (2): event 101: Unknown EOS property d056, datasize is 4 +0.126147 ptp (2): 0: 03 +0.126150 ptp (2): 1: 00 +0.126153 ptp (2): 2: 00 +0.126156 ptp (2): 3: 00 +0.126159 ptp (2): event 102: EOS prop d1c0 info record, datasize is 4 +0.126162 ptp (2): event 102: Unknown EOS property d1c0, datasize is 4 +0.126165 ptp (2): 0: 00 +0.126167 ptp (2): 1: 00 +0.126170 ptp (2): 2: 00 +0.126173 ptp (2): 3: 00 +0.126176 ptp (2): event 103: EOS prop d136 info record, datasize is 4 +0.126180 ptp (2): event 103: Unknown EOS property d136, datasize is 4 +0.126182 ptp (2): 0: 00 +0.126185 ptp (2): 1: 00 +0.126188 ptp (2): 2: 00 +0.126191 ptp (2): 3: 00 +0.126194 ptp (2): event 104: EOS prop d134 info record, datasize is 24 +0.126197 ptp (2): event 104: Unknown EOS property d134, datasize is 24 +0.126200 ptp (2): 0: 18 +0.126203 ptp (2): 1: 00 +0.126205 ptp (2): 2: 00 +0.126208 ptp (2): 3: 00 +0.126211 ptp (2): 4: 00 +0.126214 ptp (2): 5: 00 +0.126216 ptp (2): 6: 00 +0.126219 ptp (2): 7: 00 +0.126222 ptp (2): 8: 00 +0.126225 ptp (2): 9: 00 +0.126228 ptp (2): 10: 00 +0.126230 ptp (2): 11: 00 +0.126233 ptp (2): 12: 00 +0.126236 ptp (2): 13: 00 +0.126239 ptp (2): 14: 00 +0.126244 ptp (2): 15: 00 +0.126247 ptp (2): 16: 0a +0.126249 ptp (2): 17: 00 +0.126252 ptp (2): 18: 00 +0.126255 ptp (2): 19: 00 +0.126258 ptp (2): 20: 0a +0.126260 ptp (2): 21: 00 +0.126263 ptp (2): 22: 00 +0.126266 ptp (2): 23: 00 +0.126269 ptp (2): event 105: EOS prop d135 info record, datasize is 4 +0.126272 ptp (2): event 105: Unknown EOS property d135, datasize is 4 +0.126275 ptp (2): 0: 00 +0.126278 ptp (2): 1: 00 +0.126281 ptp (2): 2: 00 +0.126284 ptp (2): 3: 00 +0.126287 ptp (2): event 106: EOS prop d140 info record, datasize is 48 +0.126290 ptp (2): event 106: Unknown EOS property d140, datasize is 48 +0.126293 ptp (2): 0: 30 +0.126296 ptp (2): 1: 00 +0.126298 ptp (2): 2: 00 +0.126301 ptp (2): 3: 00 +0.126304 ptp (2): 4: 00 +0.126307 ptp (2): 5: 00 +0.126309 ptp (2): 6: 00 +0.126312 ptp (2): 7: 00 +0.126315 ptp (2): 8: 00 +0.126318 ptp (2): 9: 00 +0.126320 ptp (2): 10: 00 +0.126323 ptp (2): 11: 00 +0.126326 ptp (2): 12: 00 +0.126329 ptp (2): 13: 00 +0.126332 ptp (2): 14: 00 +0.126334 ptp (2): 15: 00 +0.126337 ptp (2): 16: 00 +0.126340 ptp (2): 17: 00 +0.126343 ptp (2): 18: 00 +0.126345 ptp (2): 19: 00 +0.126348 ptp (2): 20: 00 +0.126351 ptp (2): 21: 00 +0.126354 ptp (2): 22: 00 +0.126356 ptp (2): 23: 00 +0.126359 ptp (2): 24: 00 +0.126362 ptp (2): 25: 00 +0.126365 ptp (2): 26: 00 +0.126368 ptp (2): 27: 00 +0.126370 ptp (2): 28: 00 +0.126373 ptp (2): 29: 00 +0.126376 ptp (2): 30: 00 +0.126379 ptp (2): 31: 00 +0.126381 ptp (2): 32: 00 +0.126384 ptp (2): 33: 00 +0.126387 ptp (2): 34: 00 +0.126390 ptp (2): 35: 00 +0.126393 ptp (2): 36: 00 +0.126395 ptp (2): 37: 00 +0.126398 ptp (2): 38: 00 +0.126401 ptp (2): 39: 00 +0.126404 ptp (2): 40: b8 +0.126406 ptp (2): 41: 02 +0.126409 ptp (2): 42: 00 +0.126412 ptp (2): 43: 04 +0.126415 ptp (2): 44: 00 +0.126417 ptp (2): 45: 04 +0.126420 ptp (2): 46: 45 +0.126423 ptp (2): 47: 02 +0.126426 ptp (2): event 107: EOS prop d141 info record, datasize is 48 +0.126429 ptp (2): event 107: Unknown EOS property d141, datasize is 48 +0.126432 ptp (2): 0: 30 +0.126435 ptp (2): 1: 00 +0.126438 ptp (2): 2: 00 +0.126440 ptp (2): 3: 00 +0.126443 ptp (2): 4: 00 +0.126446 ptp (2): 5: 00 +0.126451 ptp (2): 6: 00 +0.126454 ptp (2): 7: 00 +0.126456 ptp (2): 8: 00 +0.126459 ptp (2): 9: 00 +0.126462 ptp (2): 10: 00 +0.126465 ptp (2): 11: 00 +0.126468 ptp (2): 12: 00 +0.126470 ptp (2): 13: 00 +0.126473 ptp (2): 14: 00 +0.126476 ptp (2): 15: 00 +0.126479 ptp (2): 16: 00 +0.126482 ptp (2): 17: 00 +0.126484 ptp (2): 18: 00 +0.126487 ptp (2): 19: 00 +0.126490 ptp (2): 20: 00 +0.126493 ptp (2): 21: 00 +0.126495 ptp (2): 22: 00 +0.126498 ptp (2): 23: 00 +0.126501 ptp (2): 24: 00 +0.126504 ptp (2): 25: 00 +0.126506 ptp (2): 26: 00 +0.126509 ptp (2): 27: 00 +0.126512 ptp (2): 28: 00 +0.126515 ptp (2): 29: 00 +0.126517 ptp (2): 30: 00 +0.126520 ptp (2): 31: 00 +0.126523 ptp (2): 32: 00 +0.126526 ptp (2): 33: 00 +0.126528 ptp (2): 34: 00 +0.126531 ptp (2): 35: 00 +0.126534 ptp (2): 36: 00 +0.126537 ptp (2): 37: 00 +0.126539 ptp (2): 38: 00 +0.126542 ptp (2): 39: 00 +0.126545 ptp (2): 40: 00 +0.126548 ptp (2): 41: 00 +0.126550 ptp (2): 42: 00 +0.126553 ptp (2): 43: 00 +0.126556 ptp (2): 44: 00 +0.126559 ptp (2): 45: 00 +0.126562 ptp (2): 46: 00 +0.126564 ptp (2): 47: 00 +0.126567 ptp (2): event 108: EOS prop d142 info record, datasize is 48 +0.126571 ptp (2): event 108: Unknown EOS property d142, datasize is 48 +0.126573 ptp (2): 0: 30 +0.126576 ptp (2): 1: 00 +0.126579 ptp (2): 2: 00 +0.126582 ptp (2): 3: 00 +0.126585 ptp (2): 4: 00 +0.126587 ptp (2): 5: 00 +0.126590 ptp (2): 6: 00 +0.126593 ptp (2): 7: 00 +0.126596 ptp (2): 8: 00 +0.126598 ptp (2): 9: 00 +0.126601 ptp (2): 10: 00 +0.126604 ptp (2): 11: 00 +0.126607 ptp (2): 12: 00 +0.126610 ptp (2): 13: 00 +0.126612 ptp (2): 14: 00 +0.126615 ptp (2): 15: 00 +0.126618 ptp (2): 16: 00 +0.126621 ptp (2): 17: 00 +0.126623 ptp (2): 18: 00 +0.126626 ptp (2): 19: 00 +0.126629 ptp (2): 20: 00 +0.126632 ptp (2): 21: 00 +0.126634 ptp (2): 22: 00 +0.126637 ptp (2): 23: 00 +0.126640 ptp (2): 24: 00 +0.126643 ptp (2): 25: 00 +0.126646 ptp (2): 26: 00 +0.126648 ptp (2): 27: 00 +0.126651 ptp (2): 28: 00 +0.126654 ptp (2): 29: 00 +0.126657 ptp (2): 30: 00 +0.126659 ptp (2): 31: 00 +0.126664 ptp (2): 32: 00 +0.126667 ptp (2): 33: 00 +0.126670 ptp (2): 34: 00 +0.126672 ptp (2): 35: 00 +0.126675 ptp (2): 36: 00 +0.126678 ptp (2): 37: 00 +0.126681 ptp (2): 38: 00 +0.126683 ptp (2): 39: 00 +0.126686 ptp (2): 40: 00 +0.126689 ptp (2): 41: 00 +0.126692 ptp (2): 42: 00 +0.126694 ptp (2): 43: 00 +0.126697 ptp (2): 44: 00 +0.126700 ptp (2): 45: 00 +0.126703 ptp (2): 46: 00 +0.126705 ptp (2): 47: 00 +0.126708 ptp (2): event 109: EOS prop d143 info record, datasize is 48 +0.126712 ptp (2): event 109: Unknown EOS property d143, datasize is 48 +0.126714 ptp (2): 0: 30 +0.126717 ptp (2): 1: 00 +0.126720 ptp (2): 2: 00 +0.126723 ptp (2): 3: 00 +0.126726 ptp (2): 4: 00 +0.126728 ptp (2): 5: 00 +0.126731 ptp (2): 6: 00 +0.126734 ptp (2): 7: 00 +0.126737 ptp (2): 8: 00 +0.126739 ptp (2): 9: 00 +0.126742 ptp (2): 10: 00 +0.126745 ptp (2): 11: 00 +0.126748 ptp (2): 12: 00 +0.126751 ptp (2): 13: 00 +0.126753 ptp (2): 14: 00 +0.126756 ptp (2): 15: 00 +0.126759 ptp (2): 16: 00 +0.126762 ptp (2): 17: 00 +0.126764 ptp (2): 18: 00 +0.126767 ptp (2): 19: 00 +0.126770 ptp (2): 20: 00 +0.126773 ptp (2): 21: 00 +0.126775 ptp (2): 22: 00 +0.126778 ptp (2): 23: 00 +0.126781 ptp (2): 24: 00 +0.126784 ptp (2): 25: 00 +0.126786 ptp (2): 26: 00 +0.126789 ptp (2): 27: 00 +0.126792 ptp (2): 28: 00 +0.126795 ptp (2): 29: 00 +0.126797 ptp (2): 30: 00 +0.126800 ptp (2): 31: 00 +0.126803 ptp (2): 32: 00 +0.126806 ptp (2): 33: 00 +0.126809 ptp (2): 34: 00 +0.126811 ptp (2): 35: 00 +0.126814 ptp (2): 36: 00 +0.126817 ptp (2): 37: 00 +0.126820 ptp (2): 38: 00 +0.126822 ptp (2): 39: 00 +0.126825 ptp (2): 40: 00 +0.126828 ptp (2): 41: 00 +0.126831 ptp (2): 42: 00 +0.126833 ptp (2): 43: 00 +0.126836 ptp (2): 44: 00 +0.126839 ptp (2): 45: 00 +0.126842 ptp (2): 46: 00 +0.126844 ptp (2): 47: 00 +0.126847 ptp (2): event 110: EOS prop d144 info record, datasize is 48 +0.126851 ptp (2): event 110: Unknown EOS property d144, datasize is 48 +0.126853 ptp (2): 0: 30 +0.126856 ptp (2): 1: 00 +0.126859 ptp (2): 2: 00 +0.126862 ptp (2): 3: 00 +0.126865 ptp (2): 4: 00 +0.126867 ptp (2): 5: 00 +0.126870 ptp (2): 6: 00 +0.126875 ptp (2): 7: 00 +0.126878 ptp (2): 8: 00 +0.126881 ptp (2): 9: 00 +0.126884 ptp (2): 10: 00 +0.126886 ptp (2): 11: 00 +0.126889 ptp (2): 12: 00 +0.126892 ptp (2): 13: 00 +0.126895 ptp (2): 14: 00 +0.126898 ptp (2): 15: 00 +0.126900 ptp (2): 16: 00 +0.126903 ptp (2): 17: 00 +0.126906 ptp (2): 18: 00 +0.126909 ptp (2): 19: 00 +0.126911 ptp (2): 20: 00 +0.126914 ptp (2): 21: 00 +0.126917 ptp (2): 22: 00 +0.126920 ptp (2): 23: 00 +0.126922 ptp (2): 24: 00 +0.126925 ptp (2): 25: 00 +0.126928 ptp (2): 26: 00 +0.126931 ptp (2): 27: 00 +0.126933 ptp (2): 28: 00 +0.126936 ptp (2): 29: 00 +0.126939 ptp (2): 30: 00 +0.126942 ptp (2): 31: 00 +0.126945 ptp (2): 32: 00 +0.126947 ptp (2): 33: 00 +0.126950 ptp (2): 34: 00 +0.126953 ptp (2): 35: 00 +0.126956 ptp (2): 36: 00 +0.126958 ptp (2): 37: 00 +0.126961 ptp (2): 38: 00 +0.126964 ptp (2): 39: 00 +0.126967 ptp (2): 40: 00 +0.126970 ptp (2): 41: 00 +0.126972 ptp (2): 42: 00 +0.126975 ptp (2): 43: 00 +0.126978 ptp (2): 44: 00 +0.126981 ptp (2): 45: 00 +0.126983 ptp (2): 46: 00 +0.126986 ptp (2): 47: 00 +0.126989 ptp (2): event 111: EOS prop d14a info record, datasize is 4 +0.126992 ptp (2): event 111: Unknown EOS property d14a, datasize is 4 +0.126995 ptp (2): 0: 01 +0.126998 ptp (2): 1: 00 +0.127001 ptp (2): 2: 00 +0.127004 ptp (2): 3: 00 +0.127007 ptp (2): event 112: EOS prop d149 info record, datasize is 4 +0.127010 ptp (2): event 112: Unknown EOS property d149, datasize is 4 +0.127013 ptp (2): 0: 00 +0.127016 ptp (2): 1: 00 +0.127018 ptp (2): 2: 00 +0.127021 ptp (2): 3: 00 +0.127024 ptp (2): event 113: EOS prop d13e info record, datasize is 20 +0.127027 ptp (2): event 113: Unknown EOS property d13e, datasize is 20 +0.127030 ptp (2): 0: 14 +0.127033 ptp (2): 1: 00 +0.127036 ptp (2): 2: 00 +0.127039 ptp (2): 3: 00 +0.127041 ptp (2): 4: 00 +0.127044 ptp (2): 5: 00 +0.127047 ptp (2): 6: 00 +0.127050 ptp (2): 7: 00 +0.127052 ptp (2): 8: 00 +0.127055 ptp (2): 9: 00 +0.127058 ptp (2): 10: 00 +0.127061 ptp (2): 11: 00 +0.127064 ptp (2): 12: 00 +0.127066 ptp (2): 13: 00 +0.127069 ptp (2): 14: 00 +0.127072 ptp (2): 15: 00 +0.127075 ptp (2): 16: 01 +0.127077 ptp (2): 17: 00 +0.127084 ptp (2): 18: 00 +0.127087 ptp (2): 19: 00 +0.127090 ptp (2): event 114: EOS prop d19a info record, datasize is 4 +0.127093 ptp (2): event 114: Unknown EOS property d19a, datasize is 4 +0.127096 ptp (2): 0: 00 +0.127099 ptp (2): 1: 00 +0.127101 ptp (2): 2: 00 +0.127104 ptp (2): 3: 00 +0.127107 ptp (2): event 115: EOS prop d13b info record, datasize is 4 +0.127110 ptp (2): event 115: Unknown EOS property d13b, datasize is 4 +0.127113 ptp (2): 0: 00 +0.127116 ptp (2): 1: 00 +0.127119 ptp (2): 2: 00 +0.127122 ptp (2): 3: 00 +0.127124 ptp (2): event 116: EOS prop d1a3 info record, datasize is 4 +0.127128 ptp (2): event 116: Unknown EOS property d1a3, datasize is 4, using uint32 +0.127131 ptp (2): 0: 0x 0 +0.127134 ptp (2): event 116: currentvalue of d1a3 is 0 +0.127137 ptp (2): event 117: EOS prop d19f info record, datasize is 4 +0.127140 ptp (2): event 117: Unknown EOS property d19f, datasize is 4 +0.127143 ptp (2): 0: 00 +0.127145 ptp (2): 1: 00 +0.127148 ptp (2): 2: 00 +0.127151 ptp (2): 3: 00 +0.127154 ptp (2): event 118: EOS prop d124 info record, datasize is 4 +0.127157 ptp (2): event 118: Unknown EOS property d124, datasize is 4 +0.127160 ptp (2): 0: 00 +0.127163 ptp (2): 1: 00 +0.127166 ptp (2): 2: 00 +0.127168 ptp (2): 3: 00 +0.127171 ptp (2): event 119: EOS prop d167 info record, datasize is 16 +0.127175 ptp (2): event 119: Unknown EOS property d167, datasize is 16 +0.127177 ptp (2): 0: 10 +0.127180 ptp (2): 1: 00 +0.127183 ptp (2): 2: 00 +0.127186 ptp (2): 3: 00 +0.127189 ptp (2): 4: 01 +0.127191 ptp (2): 5: 00 +0.127194 ptp (2): 6: 00 +0.127197 ptp (2): 7: 00 +0.127200 ptp (2): 8: e8 +0.127202 ptp (2): 9: 03 +0.127205 ptp (2): 10: 00 +0.127208 ptp (2): 11: 00 +0.127211 ptp (2): 12: e8 +0.127214 ptp (2): 13: 03 +0.127216 ptp (2): 14: 00 +0.127219 ptp (2): 15: 00 +0.127222 ptp (2): event 120: EOS prop d1c6 info record, datasize is 4 +0.127225 ptp (2): event 120: Unknown EOS property d1c6, datasize is 4 +0.127228 ptp (2): 0: 00 +0.127231 ptp (2): 1: 00 +0.127234 ptp (2): 2: 00 +0.127236 ptp (2): 3: 00 +0.127239 ptp (2): event 121: EOS prop d12d info record, datasize is 12 +0.127243 ptp (2): event 121: Unknown EOS property d12d, datasize is 12 +0.127246 ptp (2): 0: 0c +0.127248 ptp (2): 1: 00 +0.127251 ptp (2): 2: 00 +0.127254 ptp (2): 3: 00 +0.127257 ptp (2): 4: 00 +0.127259 ptp (2): 5: 00 +0.127262 ptp (2): 6: 00 +0.127265 ptp (2): 7: 00 +0.127270 ptp (2): 8: 00 +0.127273 ptp (2): 9: 00 +0.127275 ptp (2): 10: 00 +0.127278 ptp (2): 11: 00 +0.127281 ptp (2): event 122: EOS prop d12c info record, datasize is 4 +0.127284 ptp (2): event 122: Unknown EOS property d12c, datasize is 4 +0.127287 ptp (2): 0: 00 +0.127290 ptp (2): 1: 00 +0.127293 ptp (2): 2: 00 +0.127295 ptp (2): 3: 00 +0.127298 ptp (2): event 123: EOS prop d127 info record, datasize is 8 +0.127302 ptp (2): event 123: Unknown EOS property d127, datasize is 8 +0.127304 ptp (2): 0: 00 +0.127307 ptp (2): 1: 00 +0.127310 ptp (2): 2: 00 +0.127313 ptp (2): 3: 00 +0.127316 ptp (2): 4: 00 +0.127318 ptp (2): 5: 00 +0.127321 ptp (2): 6: 00 +0.127324 ptp (2): 7: 00 +0.127327 ptp (2): event 124: EOS prop 0000 info record, datasize is 36 +0.127330 ptp (2): event 124: Unknown EOS property 0000, datasize is 36 +0.127333 ptp (2): 0: 00 +0.127336 ptp (2): 1: 00 +0.127339 ptp (2): 2: 00 +0.127342 ptp (2): 3: 00 +0.127344 ptp (2): 4: 00 +0.127347 ptp (2): 5: 00 +0.127350 ptp (2): 6: 00 +0.127353 ptp (2): 7: 00 +0.127355 ptp (2): 8: 00 +0.127358 ptp (2): 9: 00 +0.127361 ptp (2): 10: 00 +0.127364 ptp (2): 11: 00 +0.127367 ptp (2): 12: 00 +0.127369 ptp (2): 13: 00 +0.127372 ptp (2): 14: 00 +0.127375 ptp (2): 15: 00 +0.127378 ptp (2): 16: 00 +0.127381 ptp (2): 17: 00 +0.127383 ptp (2): 18: 00 +0.127386 ptp (2): 19: 00 +0.127389 ptp (2): 20: 00 +0.127392 ptp (2): 21: 00 +0.127394 ptp (2): 22: 00 +0.127397 ptp (2): 23: 00 +0.127400 ptp (2): 24: 00 +0.127403 ptp (2): 25: 00 +0.127405 ptp (2): 26: 00 +0.127408 ptp (2): 27: 00 +0.127411 ptp (2): 28: 00 +0.127414 ptp (2): 29: 00 +0.127417 ptp (2): 30: 00 +0.127419 ptp (2): 31: 00 +0.127422 ptp (2): 32: 00 +0.127425 ptp (2): 33: 00 +0.127428 ptp (2): 34: 00 +0.127430 ptp (2): 35: 00 +0.127433 ptp (2): event 125: EOS prop 0000 info record, datasize is 12 +0.127437 ptp (2): event 125: Unknown EOS property 0000, datasize is 12 +0.127440 ptp (2): 0: 00 +0.127442 ptp (2): 1: 00 +0.127445 ptp (2): 2: 00 +0.127448 ptp (2): 3: 00 +0.127451 ptp (2): 4: 00 +0.127453 ptp (2): 5: 00 +0.127456 ptp (2): 6: 00 +0.127459 ptp (2): 7: 00 +0.127462 ptp (2): 8: 00 +0.127465 ptp (2): 9: 00 +0.127467 ptp (2): 10: 00 +0.127470 ptp (2): 11: 00 +0.127475 ptp (2): event 126: EOS prop d199 info record, datasize is 4 +0.127478 ptp (2): event 126: currentvalue of d199 is 10 +0.127482 ptp (2): event 127: EOS prop 0000 info record, datasize is 4 +0.127485 ptp (2): event 127: Unknown EOS property 0000, datasize is 4 +0.127488 ptp (2): 0: 00 +0.127490 ptp (2): 1: 00 +0.127493 ptp (2): 2: 00 +0.127496 ptp (2): 3: 00 +0.127499 ptp (2): event 128: EOS prop d128 info record, datasize is 4 +0.127502 ptp (2): event 128: Unknown EOS property d128, datasize is 4 +0.127505 ptp (2): 0: 00 +0.127508 ptp (2): 1: 00 +0.127511 ptp (2): 2: 00 +0.127513 ptp (2): 3: 00 +0.127516 ptp (2): event 129: EOS prop d055 info record, datasize is 4 +0.127519 ptp (2): event 129: currentvalue of d055 is 0 +0.127522 ptp (2): event 130: EOS prop d17d info record, datasize is 12 +0.127526 ptp (2): event 130: Unknown EOS property d17d, datasize is 12 +0.127529 ptp (2): 0: 0c +0.127531 ptp (2): 1: 00 +0.127534 ptp (2): 2: 00 +0.127537 ptp (2): 3: 00 +0.127540 ptp (2): 4: 14 +0.127543 ptp (2): 5: 00 +0.127545 ptp (2): 6: 00 +0.127548 ptp (2): 7: 00 +0.127551 ptp (2): 8: 00 +0.127554 ptp (2): 9: 00 +0.127556 ptp (2): 10: 00 +0.127559 ptp (2): 11: 00 +0.127562 ptp (2): event 131: EOS prop d125 info record, datasize is 16 +0.127565 ptp (2): event 131: Unknown EOS property d125, datasize is 16 +0.127568 ptp (2): 0: 53 +0.127571 ptp (2): 1: 58 +0.127574 ptp (2): 2: 37 +0.127577 ptp (2): 3: 34 +0.127579 ptp (2): 4: 30 +0.127582 ptp (2): 5: 00 +0.127585 ptp (2): 6: 00 +0.127588 ptp (2): 7: 00 +0.127591 ptp (2): 8: 00 +0.127593 ptp (2): 9: 00 +0.127596 ptp (2): 10: 00 +0.127599 ptp (2): 11: 00 +0.127602 ptp (2): 12: 00 +0.127605 ptp (2): 13: 00 +0.127607 ptp (2): 14: 00 +0.127610 ptp (2): 15: 00 +0.127614 ptp (2): event 132: EOS prop d103 desc record, datasize 28, propxtype 3 +0.127618 ptp (2): event 132: propxtype is 3, prop is 0xd103, data type is 0x0004, propxcnt is 7. +0.127621 ptp (2): event 132: suppval[0] of d103 is 0x0. +0.127624 ptp (2): event 132: suppval[1] of d103 is 0x48. +0.127627 ptp (2): event 132: suppval[2] of d103 is 0x50. +0.127630 ptp (2): event 132: suppval[3] of d103 is 0x58. +0.127633 ptp (2): event 132: suppval[4] of d103 is 0x60. +0.127636 ptp (2): event 132: suppval[5] of d103 is 0x68. +0.127639 ptp (2): event 132: suppval[6] of d103 is 0x70. +0.127643 ptp (2): event 133: EOS prop d105 desc record, datasize 0, propxtype 1 +0.127646 ptp (2): event 133: propxtype is 1 for d105, unhandled, size 20 +0.127649 ptp (2): event 134: EOS prop d11b desc record, datasize 0, propxtype 1 +0.127654 ptp (2): event 134: propxtype is 1 for d11b, unhandled, size 20 +0.127657 ptp (2): event 135: EOS prop d11b desc record, datasize 0, propxtype 1 +0.127660 ptp (2): event 135: propxtype is 1 for d11b, unhandled, size 20 +0.127664 ptp (2): event 136: EOS prop d114 desc record, datasize 0, propxtype 1 +0.127667 ptp (2): event 136: propxtype is 1 for d114, unhandled, size 20 +0.127670 ptp (2): event 137: EOS prop d114 desc record, datasize 0, propxtype 1 +0.127673 ptp (2): event 137: propxtype is 1 for d114, unhandled, size 20 +0.127676 ptp (2): event 138: EOS prop d116 desc record, datasize 0, propxtype 1 +0.127679 ptp (2): event 138: propxtype is 1 for d116, unhandled, size 20 +0.127682 ptp (2): event 139: EOS prop d111 desc record, datasize 0, propxtype 1 +0.127685 ptp (2): event 139: propxtype is 1 for d111, unhandled, size 20 +0.127688 ptp (2): event 140: EOS prop d112 desc record, datasize 0, propxtype 1 +0.127691 ptp (2): event 140: propxtype is 1 for d112, unhandled, size 20 +0.127694 ptp (2): event 141: EOS prop d1a8 desc record, datasize 0, propxtype 1 +0.127698 ptp (2): event 141: propxtype is 1 for d1a8, unhandled, size 20 +0.127701 ptp (2): event 142: EOS prop d1ab desc record, datasize 0, propxtype 1 +0.127704 ptp (2): event 142: propxtype is 1 for d1ab, unhandled, size 20 +0.127707 ptp (2): event 143: EOS prop d147 desc record, datasize 0, propxtype 1 +0.127710 ptp (2): event 143: propdesc d147, default value not found. +0.127713 ptp (2): event 144: EOS prop d1ad desc record, datasize 0, propxtype 1 +0.127716 ptp (2): event 144: propdesc d1ad, default value not found. +0.127719 ptp (2): event 145: EOS prop d1ae desc record, datasize 0, propxtype 1 +0.127722 ptp (2): event 145: propdesc d1ae, default value not found. +0.127725 ptp (2): event 146: EOS prop d1aa desc record, datasize 0, propxtype 1 +0.127728 ptp (2): event 146: propxtype is 1 for d1aa, unhandled, size 20 +0.127731 ptp (2): event 147: EOS prop d11e desc record, datasize 0, propxtype 1 +0.127735 ptp (2): event 147: propxtype is 1 for d11e, unhandled, size 20 +0.127738 ptp (2): event 148: EOS prop d11f desc record, datasize 0, propxtype 1 +0.127741 ptp (2): event 148: propxtype is 1 for d11f, unhandled, size 20 +0.127744 ptp (2): event 149: EOS prop d1af desc record, datasize 0, propxtype 1 +0.127747 ptp (2): event 149: propdesc d1af, default value not found. +0.127750 ptp (2): event 150: EOS prop 0000 desc record, datasize 0, propxtype 1 +0.127753 ptp (2): event 150: propxtype is 1 for 0000, unhandled, size 20 +0.127756 ptp (2): event 151: EOS prop d17f desc record, datasize 0, propxtype 1 +0.127759 ptp (2): event 151: propdesc d17f, default value not found. +0.127762 ptp (2): event 152: EOS prop d1b7 desc record, datasize 0, propxtype 1 +0.127765 ptp (2): event 152: propxtype is 1 for d1b7, unhandled, size 20 +0.127768 ptp (2): event 153: EOS prop d1c4 desc record, datasize 0, propxtype 1 +0.127772 ptp (2): event 153: propxtype is 1 for d1c4, unhandled, size 20 +0.127775 ptp (2): event 154: EOS prop d1c2 desc record, datasize 0, propxtype 1 +0.127778 ptp (2): event 154: propxtype is 1 for d1c2, unhandled, size 20 +0.127783 ptp (2): event 155: EOS prop d138 desc record, datasize 0, propxtype 1 +0.127786 ptp (2): event 155: propxtype is 1 for d138, unhandled, size 20 +0.127789 ptp (2): event 156: EOS prop d139 desc record, datasize 0, propxtype 1 +0.127792 ptp (2): event 156: propxtype is 1 for d139, unhandled, size 20 +0.127795 ptp (2): event 157: EOS prop d13b desc record, datasize 0, propxtype 1 +0.127798 ptp (2): event 157: propxtype is 1 for d13b, unhandled, size 20 +0.127801 ptp (2): event 158: EOS prop d13c desc record, datasize 0, propxtype 1 +0.127804 ptp (2): event 158: propxtype is 1 for d13c, unhandled, size 20 +0.127807 ptp (2): event 159: EOS prop d19d desc record, datasize 0, propxtype 1 +0.127810 ptp (2): event 159: propdesc d19d, default value not found. +0.127813 ptp (2): event 160: EOS prop d19a desc record, datasize 0, propxtype 1 +0.127817 ptp (2): event 160: propxtype is 1 for d19a, unhandled, size 20 +0.127820 ptp (2): event 161: EOS prop d19c desc record, datasize 0, propxtype 1 +0.127823 ptp (2): event 161: propdesc d19c, default value not found. +0.127826 ptp (2): event 162: EOS prop d14c desc record, datasize 0, propxtype 1 +0.127829 ptp (2): event 162: propdesc d14c, default value not found. +0.127832 ptp (2): event 163: EOS prop d1bd desc record, datasize 0, propxtype 1 +0.127835 ptp (2): event 163: propxtype is 1 for d1bd, unhandled, size 20 +0.127838 ptp (2): event 164: EOS prop d19f desc record, datasize 0, propxtype 1 +0.127841 ptp (2): event 164: propxtype is 1 for d19f, unhandled, size 20 +0.127844 ptp (2): event 165: EOS prop d124 desc record, datasize 0, propxtype 1 +0.127847 ptp (2): event 165: propxtype is 1 for d124, unhandled, size 20 +0.127850 ptp (2): event 166: EOS prop d115 desc record, datasize 0, propxtype 7 +0.127854 ptp (2): event 166: propxtype is 7 for d115, unhandled, size 20 +0.127857 ptp (2): event 167: EOS prop d170 desc record, datasize 0, propxtype 7 +0.127860 ptp (2): event 167: propdesc d170, default value not found. +0.127863 ptp (2): event 168: EOS prop d170 desc record, datasize 0, propxtype 7 +0.127866 ptp (2): event 168: propdesc d170, default value not found. +0.127869 ptp (2): event 169: EOS prop d171 desc record, datasize 0, propxtype 7 +0.127872 ptp (2): event 169: propdesc d171, default value not found. +0.127875 ptp (2): event 170: EOS prop d171 desc record, datasize 0, propxtype 7 +0.127878 ptp (2): event 170: propdesc d171, default value not found. +0.127881 ptp (2): event 171: EOS prop d172 desc record, datasize 0, propxtype 7 +0.127884 ptp (2): event 171: propdesc d172, default value not found. +0.127887 ptp (2): event 172: EOS prop d172 desc record, datasize 0, propxtype 7 +0.127890 ptp (2): event 172: propdesc d172, default value not found. +0.127893 ptp (2): event 173: EOS prop d1a1 desc record, datasize 0, propxtype 7 +0.127896 ptp (2): event 173: propxtype is 7 for d1a1, unhandled, size 20 +0.127899 ptp (2): event 174: EOS prop d1a7 desc record, datasize 0, propxtype 7 +0.127903 ptp (2): event 174: propxtype is 7 for d1a7, unhandled, size 20 +0.127906 ptp (2): event 175: EOS prop d1a2 desc record, datasize 0, propxtype 7 +0.127911 ptp (2): event 175: propdesc d1a2, default value not found. +0.127914 ptp (2): event 176: EOS prop d1b2 desc record, datasize 0, propxtype 7 +0.127917 ptp (2): event 176: propxtype is 7 for d1b2, unhandled, size 20 +0.127920 ptp (2): event 177: EOS prop d1b3 desc record, datasize 0, propxtype 7 +0.127923 ptp (2): event 177: propxtype is 7 for d1b3, unhandled, size 20 +0.127926 ptp (2): event 178: EOS prop d1b5 desc record, datasize 0, propxtype 7 +0.127929 ptp (2): event 178: propdesc d1b5, default value not found. +0.127932 ptp (2): event 179: EOS prop d146 desc record, datasize 0, propxtype 7 +0.127935 ptp (2): event 179: propdesc d146, default value not found. +0.127938 ptp (2): event 180: EOS prop d1d0 desc record, datasize 0, propxtype 7 +0.127941 ptp (2): event 180: propdesc d1d0, default value not found. +0.127944 ptp (2): event 181: EOS prop d1d1 desc record, datasize 0, propxtype 7 +0.127947 ptp (2): event 181: propdesc d1d1, default value not found. +0.127950 ptp (2): event 182: EOS prop d1d3 desc record, datasize 0, propxtype 7 +0.127953 ptp (2): event 182: propdesc d1d3, default value not found. +0.127956 ptp (2): event 183: EOS prop d1cb desc record, datasize 0, propxtype 7 +0.127959 ptp (2): event 183: propxtype is 7 for d1cb, unhandled, size 20 +0.127962 ptp (2): event 184: EOS prop d14d desc record, datasize 0, propxtype 7 +0.127965 ptp (2): event 184: propdesc d14d, default value not found. +0.127968 ptp (2): event 185: EOS prop d196 desc record, datasize 0, propxtype 7 +0.127972 ptp (2): event 185: propxtype is 7 for d196, unhandled, size 20 +0.127975 ptp (2): event 186: EOS prop d1db desc record, datasize 0, propxtype 7 +0.127978 ptp (2): event 186: propdesc d1db, default value not found. +0.127981 ptp (2): event 187: EOS prop d1a4 desc record, datasize 0, propxtype 7 +0.127984 ptp (2): event 187: propxtype is 7 for d1a4, unhandled, size 20 +0.127987 ptp (2): event 188: EOS prop d1bf desc record, datasize 0, propxtype 7 +0.127990 ptp (2): event 188: propxtype is 7 for d1bf, unhandled, size 20 +0.127993 ptp (2): event 189: EOS prop d055 desc record, datasize 4, propxtype 3 +0.127997 ptp (2): event 189: propxtype is 3, prop is 0xd055, data type is 0x0006, propxcnt is 1. +0.128000 ptp (2): event 189: suppval[0] of d055 is 0x7f. +0.128003 ptp (2): event 190: EOS prop d106 desc record, datasize 24, propxtype 3 +0.128007 ptp (2): event 190: propxtype is 3, prop is 0xd106, data type is 0x0004, propxcnt is 6. +0.128010 ptp (2): event 190: suppval[0] of d106 is 0x0. +0.128013 ptp (2): event 190: suppval[1] of d106 is 0x4. +0.128016 ptp (2): event 190: suppval[2] of d106 is 0x5. +0.128019 ptp (2): event 190: suppval[3] of d106 is 0x10. +0.128022 ptp (2): event 190: suppval[4] of d106 is 0x11. +0.128025 ptp (2): event 190: suppval[5] of d106 is 0x7. +0.128028 ptp (2): event 191: EOS prop d107 desc record, datasize 12, propxtype 3 +0.128032 ptp (2): event 191: propxtype is 3, prop is 0xd107, data type is 0x0002, propxcnt is 3. +0.128035 ptp (2): event 191: suppval[0] of d107 is 0x3. +0.128038 ptp (2): event 191: suppval[1] of d107 is 0x1. +0.128041 ptp (2): event 191: suppval[2] of d107 is 0x5. +0.128046 ptp (2): event 192: EOS prop d109 desc record, datasize 28, propxtype 3 +0.128050 ptp (2): event 192: propxtype is 3, prop is 0xd109, data type is 0x0002, propxcnt is 7. +0.128053 ptp (2): event 192: suppval[0] of d109 is 0x0. +0.128056 ptp (2): event 192: suppval[1] of d109 is 0x1. +0.128059 ptp (2): event 192: suppval[2] of d109 is 0x8. +0.128062 ptp (2): event 192: suppval[3] of d109 is 0x2. +0.128064 ptp (2): event 192: suppval[4] of d109 is 0x3. +0.128067 ptp (2): event 192: suppval[5] of d109 is 0x4. +0.128070 ptp (2): event 192: suppval[6] of d109 is 0x6. +0.128073 ptp (2): event 193: EOS prop d10b desc record, datasize 76, propxtype 3 +0.128077 ptp (2): event 193: propxtype is 3, prop is 0xd10b, data type is 0x0005, propxcnt is 19. +0.128080 ptp (2): event 193: suppval[0] of d10b is 0xfffffff7. +0.128083 ptp (2): event 193: suppval[1] of d10b is 0xfffffff8. +0.128086 ptp (2): event 193: suppval[2] of d10b is 0xfffffff9. +0.128089 ptp (2): event 193: suppval[3] of d10b is 0xfffffffa. +0.128092 ptp (2): event 193: suppval[4] of d10b is 0xfffffffb. +0.128095 ptp (2): event 193: suppval[5] of d10b is 0xfffffffc. +0.128098 ptp (2): event 193: suppval[6] of d10b is 0xfffffffd. +0.128102 ptp (2): event 193: suppval[7] of d10b is 0xfffffffe. +0.128105 ptp (2): event 193: suppval[8] of d10b is 0xffffffff. +0.128108 ptp (2): event 193: suppval[9] of d10b is 0x0. +0.128111 ptp (2): event 193: suppval[10] of d10b is 0x1. +0.128114 ptp (2): event 193: suppval[11] of d10b is 0x2. +0.128117 ptp (2): event 193: suppval[12] of d10b is 0x3. +0.128120 ptp (2): event 193: suppval[13] of d10b is 0x4. +0.128123 ptp (2): event 193: suppval[14] of d10b is 0x5. +0.128125 ptp (2): event 193: suppval[15] of d10b is 0x6. +0.128128 ptp (2): event 193: suppval[16] of d10b is 0x7. +0.128131 ptp (2): event 193: suppval[17] of d10b is 0x8. +0.128134 ptp (2): event 193: suppval[18] of d10b is 0x9. +0.128137 ptp (2): event 194: EOS prop d10c desc record, datasize 76, propxtype 3 +0.128141 ptp (2): event 194: propxtype is 3, prop is 0xd10c, data type is 0x0005, propxcnt is 19. +0.128144 ptp (2): event 194: suppval[0] of d10c is 0xfffffff7. +0.128147 ptp (2): event 194: suppval[1] of d10c is 0xfffffff8. +0.128150 ptp (2): event 194: suppval[2] of d10c is 0xfffffff9. +0.128153 ptp (2): event 194: suppval[3] of d10c is 0xfffffffa. +0.128156 ptp (2): event 194: suppval[4] of d10c is 0xfffffffb. +0.128159 ptp (2): event 194: suppval[5] of d10c is 0xfffffffc. +0.128162 ptp (2): event 194: suppval[6] of d10c is 0xfffffffd. +0.128165 ptp (2): event 194: suppval[7] of d10c is 0xfffffffe. +0.128168 ptp (2): event 194: suppval[8] of d10c is 0xffffffff. +0.128171 ptp (2): event 194: suppval[9] of d10c is 0x0. +0.128174 ptp (2): event 194: suppval[10] of d10c is 0x1. +0.128177 ptp (2): event 194: suppval[11] of d10c is 0x2. +0.128180 ptp (2): event 194: suppval[12] of d10c is 0x3. +0.128183 ptp (2): event 194: suppval[13] of d10c is 0x4. +0.128186 ptp (2): event 194: suppval[14] of d10c is 0x5. +0.128191 ptp (2): event 194: suppval[15] of d10c is 0x6. +0.128194 ptp (2): event 194: suppval[16] of d10c is 0x7. +0.128197 ptp (2): event 194: suppval[17] of d10c is 0x8. +0.128200 ptp (2): event 194: suppval[18] of d10c is 0x9. +0.128203 ptp (2): event 195: EOS prop d10d desc record, datasize 16, propxtype 3 +0.128206 ptp (2): event 195: propxtype is 3, prop is 0xd10d, data type is 0x0006, propxcnt is 4. +0.128210 ptp (2): event 195: suppval[0] of d10d is 0x0. +0.128213 ptp (2): event 195: suppval[1] of d10d is 0x1. +0.128220 ptp (2): event 195: suppval[2] of d10d is 0x2. +0.128224 ptp (2): event 195: suppval[3] of d10d is 0x3. +0.128227 ptp (2): event 196: EOS prop d10e desc record, datasize 16, propxtype 3 +0.128230 ptp (2): event 196: propxtype is 3, prop is 0xd10e, data type is 0x0006, propxcnt is 4. +0.128233 ptp (2): event 196: suppval[0] of d10e is 0x0. +0.128236 ptp (2): event 196: suppval[1] of d10e is 0x1. +0.128239 ptp (2): event 196: suppval[2] of d10e is 0x2. +0.128242 ptp (2): event 196: suppval[3] of d10e is 0x3. +0.128245 ptp (2): event 197: EOS prop d101 desc record, datasize 36, propxtype 3 +0.128249 ptp (2): event 197: propxtype is 3, prop is 0xd101, data type is 0x0004, propxcnt is 9. +0.128252 ptp (2): event 197: suppval[0] of d101 is 0x80. +0.128255 ptp (2): event 197: suppval[1] of d101 is 0x25. +0.128258 ptp (2): event 197: suppval[2] of d101 is 0x28. +0.128261 ptp (2): event 197: suppval[3] of d101 is 0x2b. +0.128264 ptp (2): event 197: suppval[4] of d101 is 0x2d. +0.128267 ptp (2): event 197: suppval[5] of d101 is 0x30. +0.128270 ptp (2): event 197: suppval[6] of d101 is 0x33. +0.128273 ptp (2): event 197: suppval[7] of d101 is 0x35. +0.128276 ptp (2): event 197: suppval[8] of d101 is 0x38. +0.128279 ptp (2): event 198: EOS prop d102 desc record, datasize 184, propxtype 3 +0.128282 ptp (2): event 198: propxtype is 3, prop is 0xd102, data type is 0x0004, propxcnt is 46. +0.128286 ptp (2): event 198: suppval[0] of d102 is 0x18. +0.128289 ptp (2): event 198: suppval[1] of d102 is 0x1b. +0.128292 ptp (2): event 198: suppval[2] of d102 is 0x1d. +0.128295 ptp (2): event 198: suppval[3] of d102 is 0x20. +0.128298 ptp (2): event 198: suppval[4] of d102 is 0x23. +0.128301 ptp (2): event 198: suppval[5] of d102 is 0x25. +0.128304 ptp (2): event 198: suppval[6] of d102 is 0x28. +0.128307 ptp (2): event 198: suppval[7] of d102 is 0x2b. +0.128310 ptp (2): event 198: suppval[8] of d102 is 0x2d. +0.128313 ptp (2): event 198: suppval[9] of d102 is 0x30. +0.128316 ptp (2): event 198: suppval[10] of d102 is 0x33. +0.128319 ptp (2): event 198: suppval[11] of d102 is 0x35. +0.128322 ptp (2): event 198: suppval[12] of d102 is 0x38. +0.128325 ptp (2): event 198: suppval[13] of d102 is 0x3b. +0.128328 ptp (2): event 198: suppval[14] of d102 is 0x3d. +0.128331 ptp (2): event 198: suppval[15] of d102 is 0x40. +0.128334 ptp (2): event 198: suppval[16] of d102 is 0x43. +0.128337 ptp (2): event 198: suppval[17] of d102 is 0x45. +0.128342 ptp (2): event 198: suppval[18] of d102 is 0x48. +0.128345 ptp (2): event 198: suppval[19] of d102 is 0x4b. +0.128348 ptp (2): event 198: suppval[20] of d102 is 0x4d. +0.128351 ptp (2): event 198: suppval[21] of d102 is 0x50. +0.128354 ptp (2): event 198: suppval[22] of d102 is 0x53. +0.128357 ptp (2): event 198: suppval[23] of d102 is 0x55. +0.128360 ptp (2): event 198: suppval[24] of d102 is 0x58. +0.128363 ptp (2): event 198: suppval[25] of d102 is 0x5b. +0.128366 ptp (2): event 198: suppval[26] of d102 is 0x5d. +0.128369 ptp (2): event 198: suppval[27] of d102 is 0x60. +0.128372 ptp (2): event 198: suppval[28] of d102 is 0x63. +0.128375 ptp (2): event 198: suppval[29] of d102 is 0x65. +0.128378 ptp (2): event 198: suppval[30] of d102 is 0x68. +0.128381 ptp (2): event 198: suppval[31] of d102 is 0x6b. +0.128384 ptp (2): event 198: suppval[32] of d102 is 0x6d. +0.128387 ptp (2): event 198: suppval[33] of d102 is 0x70. +0.128390 ptp (2): event 198: suppval[34] of d102 is 0x73. +0.128393 ptp (2): event 198: suppval[35] of d102 is 0x75. +0.128396 ptp (2): event 198: suppval[36] of d102 is 0x78. +0.128400 ptp (2): event 198: suppval[37] of d102 is 0x7b. +0.128403 ptp (2): event 198: suppval[38] of d102 is 0x7d. +0.128406 ptp (2): event 198: suppval[39] of d102 is 0x80. +0.128409 ptp (2): event 198: suppval[40] of d102 is 0x83. +0.128412 ptp (2): event 198: suppval[41] of d102 is 0x85. +0.128415 ptp (2): event 198: suppval[42] of d102 is 0x88. +0.128417 ptp (2): event 198: suppval[43] of d102 is 0x8b. +0.128420 ptp (2): event 198: suppval[44] of d102 is 0x8d. +0.128423 ptp (2): event 198: suppval[45] of d102 is 0x90. +0.128427 ptp (2): event 199: EOS prop d104 desc record, datasize 76, propxtype 3 +0.128430 ptp (2): event 199: propxtype is 3, prop is 0xd104, data type is 0x0002, propxcnt is 19. +0.128433 ptp (2): event 199: suppval[0] of d104 is 0xe8. +0.128436 ptp (2): event 199: suppval[1] of d104 is 0xeb. +0.128439 ptp (2): event 199: suppval[2] of d104 is 0xed. +0.128442 ptp (2): event 199: suppval[3] of d104 is 0xf0. +0.128445 ptp (2): event 199: suppval[4] of d104 is 0xf3. +0.128448 ptp (2): event 199: suppval[5] of d104 is 0xf5. +0.128451 ptp (2): event 199: suppval[6] of d104 is 0xf8. +0.128454 ptp (2): event 199: suppval[7] of d104 is 0xfb. +0.128457 ptp (2): event 199: suppval[8] of d104 is 0xfd. +0.128460 ptp (2): event 199: suppval[9] of d104 is 0x0. +0.128463 ptp (2): event 199: suppval[10] of d104 is 0x3. +0.128466 ptp (2): event 199: suppval[11] of d104 is 0x5. +0.128469 ptp (2): event 199: suppval[12] of d104 is 0x8. +0.128472 ptp (2): event 199: suppval[13] of d104 is 0xb. +0.128475 ptp (2): event 199: suppval[14] of d104 is 0xd. +0.128478 ptp (2): event 199: suppval[15] of d104 is 0x10. +0.128481 ptp (2): event 199: suppval[16] of d104 is 0x13. +0.128484 ptp (2): event 199: suppval[17] of d104 is 0x15. +0.128487 ptp (2): event 199: suppval[18] of d104 is 0x18. +0.128493 ptp (2): event 200: EOS prop d17d desc record, datasize 396, propxtype 3 +0.128496 ptp (2): event 200: propxtype is 3, prop is 0xd17d, data type is 0x0000, propxcnt is 33. +0.128500 ptp (2): event 200: data type 0x0000 of d17d unhandled, size 12, raw values: +0.128503 ptp (2): 0: 0x c +0.128507 ptp (2): 1: 0x 21 +0.128510 ptp (2): 2: 0x 30c +0.128512 ptp (2): 3: 0x c +0.128515 ptp (2): 4: 0x 1 +0.128518 ptp (2): 5: 0x 2fd +0.128521 ptp (2): 6: 0x c +0.128524 ptp (2): 7: 0x 2 +0.128527 ptp (2): 8: 0x 2d0 +0.128530 ptp (2): 9: 0x c +0.128533 ptp (2): 10: 0x 3 +0.128535 ptp (2): 11: 0x 294 +0.128538 ptp (2): 12: 0x c +0.128541 ptp (2): 13: 0x 4 +0.128544 ptp (2): 14: 0x 258 +0.128547 ptp (2): 15: 0x c +0.128550 ptp (2): 16: 0x 5 +0.128553 ptp (2): 17: 0x 23a +0.128555 ptp (2): 18: 0x c +0.128558 ptp (2): 19: 0x 6 +0.128561 ptp (2): 20: 0x 21c +0.128564 ptp (2): 21: 0x c +0.128567 ptp (2): 22: 0x 7 +0.128569 ptp (2): 23: 0x 1e0 +0.128572 ptp (2): 24: 0x c +0.128575 ptp (2): 25: 0x 8 +0.128578 ptp (2): 26: 0x 1a4 +0.128581 ptp (2): 27: 0x c +0.128584 ptp (2): 28: 0x 9 +0.128586 ptp (2): 29: 0x 186 +0.128589 ptp (2): 30: 0x c +0.128592 ptp (2): 31: 0x a +0.128595 ptp (2): 32: 0x 168 +0.128598 ptp (2): 33: 0x c +0.128601 ptp (2): 34: 0x b +0.128604 ptp (2): 35: 0x 159 +0.128606 ptp (2): 36: 0x c +0.128609 ptp (2): 37: 0x c +0.128612 ptp (2): 38: 0x 14a +0.128615 ptp (2): 39: 0x c +0.128618 ptp (2): 40: 0x d +0.128621 ptp (2): 41: 0x 12c +0.128623 ptp (2): 42: 0x c +0.128626 ptp (2): 43: 0x e +0.128629 ptp (2): 44: 0x 10e +0.128632 ptp (2): 45: 0x c +0.128635 ptp (2): 46: 0x f +0.128638 ptp (2): 47: 0x f0 +0.128640 ptp (2): 48: 0x c +0.128643 ptp (2): 49: 0x 10 +0.128646 ptp (2): 50: 0x d2 +0.128649 ptp (2): 51: 0x c +0.128652 ptp (2): 52: 0x 11 +0.128655 ptp (2): 53: 0x b4 +0.128658 ptp (2): 54: 0x c +0.128660 ptp (2): 55: 0x 12 +0.128663 ptp (2): 56: 0x 78 +0.128666 ptp (2): 57: 0x c +0.128669 ptp (2): 58: 0x 13 +0.128672 ptp (2): 59: 0x 3c +0.128675 ptp (2): 60: 0x c +0.128681 ptp (2): 61: 0x 14 +0.128684 ptp (2): 62: 0x 0 +0.128687 ptp (2): 63: 0x c +0.128690 ptp (2): 64: 0x 15 +0.128693 ptp (2): 65: 0xffffffc4 +0.128695 ptp (2): 66: 0x c +0.128698 ptp (2): 67: 0x 16 +0.128701 ptp (2): 68: 0xffffff88 +0.128704 ptp (2): 69: 0x c +0.128707 ptp (2): 70: 0x 17 +0.128710 ptp (2): 71: 0xffffff4c +0.128712 ptp (2): 72: 0x c +0.128715 ptp (2): 73: 0x 18 +0.128718 ptp (2): 74: 0xffffff2e +0.128721 ptp (2): 75: 0x c +0.128724 ptp (2): 76: 0x 1a +0.128726 ptp (2): 77: 0xffffff10 +0.128729 ptp (2): 78: 0x c +0.128732 ptp (2): 79: 0x 1b +0.128735 ptp (2): 80: 0xfffffed4 +0.128738 ptp (2): 81: 0x c +0.128741 ptp (2): 82: 0x 1c +0.128744 ptp (2): 83: 0xfffffe98 +0.128746 ptp (2): 84: 0x c +0.128749 ptp (2): 85: 0x 1d +0.128752 ptp (2): 86: 0xfffffe5c +0.128755 ptp (2): 87: 0x c +0.128758 ptp (2): 88: 0x 1e +0.128761 ptp (2): 89: 0xfffffe20 +0.128763 ptp (2): 90: 0x c +0.128766 ptp (2): 91: 0x 1f +0.128769 ptp (2): 92: 0xfffffde4 +0.128772 ptp (2): 93: 0x c +0.128775 ptp (2): 94: 0x 20 +0.128778 ptp (2): 95: 0xfffffda8 +0.128781 ptp (2): 96: 0x c +0.128783 ptp (2): 97: 0xffffffff +0.128786 ptp (2): 98: 0x 0 +0.128789 ptp (2): event 201: EOS prop d17e desc record, datasize 8, propxtype 3 +0.128793 ptp (2): event 201: propxtype is 3, prop is 0xd17e, data type is 0x0006, propxcnt is 2. +0.128796 ptp (2): event 201: suppval[0] of d17e is 0x0. +0.128799 ptp (2): event 201: suppval[1] of d17e is 0x1. +0.128802 ptp (2): event 202: EOS prop d17c desc record, datasize 0, propxtype 7 +0.128805 ptp (2): event 202: propxtype is 7 for d17c, unhandled, size 20 +0.128809 ptp (2): event 203: EOS prop d121 desc record, datasize 100, propxtype 3 +0.128812 ptp (2): event 203: propxtype is 3, prop is 0xd121, data type is 0x0004, propxcnt is 5. +0.128815 ptp (2): event 203: suppval[0] of d121 is 0x300. +0.128818 ptp (2): event 203: suppval[1] of d121 is 0x200. +0.128822 ptp (2): event 203: suppval[2] of d121 is 0x1300. +0.128825 ptp (2): event 203: suppval[3] of d121 is 0x1200. +0.128828 ptp (2): event 203: suppval[4] of d121 is 0x2300. +0.128831 ptp (2): event 204: EOS prop d122 desc record, datasize 100, propxtype 3 +0.128834 ptp (2): event 204: propxtype is 3, prop is 0xd122, data type is 0x0004, propxcnt is 5. +0.128837 ptp (2): event 204: suppval[0] of d122 is 0x300. +0.128840 ptp (2): event 204: suppval[1] of d122 is 0x200. +0.128843 ptp (2): event 204: suppval[2] of d122 is 0x1300. +0.128846 ptp (2): event 204: suppval[3] of d122 is 0x1200. +0.128852 ptp (2): event 204: suppval[4] of d122 is 0x2300. +0.128855 ptp (2): event 205: EOS prop d120 desc record, datasize 100, propxtype 3 +0.128858 ptp (2): event 205: propxtype is 3, prop is 0xd120, data type is 0x0004, propxcnt is 5. +0.128861 ptp (2): event 205: suppval[0] of d120 is 0x300. +0.128864 ptp (2): event 205: suppval[1] of d120 is 0x200. +0.128867 ptp (2): event 205: suppval[2] of d120 is 0x1300. +0.128870 ptp (2): event 205: suppval[3] of d120 is 0x1200. +0.128873 ptp (2): event 205: suppval[4] of d120 is 0x2300. +0.128876 ptp (2): event 206: EOS prop d11c desc record, datasize 12, propxtype 3 +0.128880 ptp (2): event 206: propxtype is 3, prop is 0xd11c, data type is 0x0006, propxcnt is 3. +0.128883 ptp (2): event 206: suppval[0] of d11c is 0x2. +0.128886 ptp (2): event 206: suppval[1] of d11c is 0x6. +0.128889 ptp (2): event 206: suppval[2] of d11c is 0x4. +0.128892 ptp (2): event 207: EOS prop d1b0 desc record, datasize 48, propxtype 3 +0.128895 ptp (2): event 207: propxtype is 3, prop is 0xd1b0, data type is 0x0004, propxcnt is 12. +0.128899 ptp (2): event 207: suppval[0] of d1b0 is 0x0. +0.128902 ptp (2): event 207: suppval[1] of d1b0 is 0x1. +0.128905 ptp (2): event 207: suppval[2] of d1b0 is 0x2. +0.128908 ptp (2): event 207: suppval[3] of d1b0 is 0x3. +0.128911 ptp (2): event 207: suppval[4] of d1b0 is 0x4. +0.128914 ptp (2): event 207: suppval[5] of d1b0 is 0x5. +0.128917 ptp (2): event 207: suppval[6] of d1b0 is 0x6. +0.128920 ptp (2): event 207: suppval[7] of d1b0 is 0x7. +0.128922 ptp (2): event 207: suppval[8] of d1b0 is 0x8. +0.128925 ptp (2): event 207: suppval[9] of d1b0 is 0x9. +0.128928 ptp (2): event 207: suppval[10] of d1b0 is 0xa. +0.128931 ptp (2): event 207: suppval[11] of d1b0 is 0xb. +0.128935 ptp (2): event 208: EOS prop d1b1 desc record, datasize 0, propxtype 3 +0.128938 ptp (2): event 209: EOS prop d1a9 desc record, datasize 20, propxtype 3 +0.128941 ptp (2): event 209: propdesc d1a9, default value not found. +0.128944 ptp (2): event 210: EOS prop d1b4 desc record, datasize 28, propxtype 3 +0.128948 ptp (2): event 210: propxtype is 3, prop is 0xd1b4, data type is 0x0006, propxcnt is 7. +0.128951 ptp (2): event 210: suppval[0] of d1b4 is 0x0. +0.128954 ptp (2): event 210: suppval[1] of d1b4 is 0x1. +0.128957 ptp (2): event 210: suppval[2] of d1b4 is 0x8. +0.128960 ptp (2): event 210: suppval[3] of d1b4 is 0x2. +0.128963 ptp (2): event 210: suppval[4] of d1b4 is 0x3. +0.128966 ptp (2): event 210: suppval[5] of d1b4 is 0x4. +0.128969 ptp (2): event 210: suppval[6] of d1b4 is 0x6. +0.128972 ptp (2): event 211: EOS prop d1ba desc record, datasize 8, propxtype 3 +0.128975 ptp (2): event 211: propxtype is 3, prop is 0xd1ba, data type is 0x0006, propxcnt is 2. +0.128978 ptp (2): event 211: suppval[0] of d1ba is 0x2. +0.128981 ptp (2): event 211: suppval[1] of d1ba is 0x1. +0.128984 ptp (2): event 212: EOS prop d1cd desc record, datasize 144, propxtype 3 +0.128988 ptp (2): event 212: propxtype is 3, prop is 0xd1cd, data type is 0x0000, propxcnt is 4. +0.128994 ptp (2): event 212: data type 0x0000 of d1cd unhandled, size 36, raw values: +0.128997 ptp (2): 0: 0x 24 +0.129000 ptp (2): 1: 0x 0 +0.129002 ptp (2): 2: 0x 5 +0.129005 ptp (2): 3: 0x 9c4 +0.129008 ptp (2): 4: 0x c +0.129011 ptp (2): 5: 0x 0 +0.129014 ptp (2): 6: 0x 3 +0.129017 ptp (2): 7: 0x 1 +0.129020 ptp (2): 8: 0x 0 +0.129023 ptp (2): 9: 0x 24 +0.129025 ptp (2): 10: 0x 0 +0.129028 ptp (2): 11: 0x 0 +0.129031 ptp (2): 12: 0x 1388 +0.129034 ptp (2): 13: 0x 18 +0.129037 ptp (2): 14: 0x 0 +0.129040 ptp (2): 15: 0x 3 +0.129043 ptp (2): 16: 0x 1 +0.129046 ptp (2): 17: 0x 0 +0.129049 ptp (2): 18: 0x 24 +0.129052 ptp (2): 19: 0x 0 +0.129054 ptp (2): 20: 0x 0 +0.129057 ptp (2): 21: 0x 9c4 +0.129060 ptp (2): 22: 0x c +0.129063 ptp (2): 23: 0x 0 +0.129066 ptp (2): 24: 0x 3 +0.129069 ptp (2): 25: 0x 1 +0.129071 ptp (2): 26: 0x 0 +0.129074 ptp (2): 27: 0x 24 +0.129077 ptp (2): 28: 0x 0 +0.129080 ptp (2): 29: 0x 1 +0.129083 ptp (2): 30: 0x 1388 +0.129086 ptp (2): 31: 0x 18 +0.129089 ptp (2): 32: 0x 0 +0.129091 ptp (2): 33: 0x 3 +0.129094 ptp (2): 34: 0x 1 +0.129097 ptp (2): 35: 0x 0 +0.129100 ptp (2): event 213: EOS prop d1b8 desc record, datasize 8, propxtype 3 +0.129104 ptp (2): event 213: propxtype is 3, prop is 0xd1b8, data type is 0x0004, propxcnt is 2. +0.129107 ptp (2): event 213: suppval[0] of d1b8 is 0x4. +0.129110 ptp (2): event 213: suppval[1] of d1b8 is 0x0. +0.129113 ptp (2): event 214: EOS prop d056 desc record, datasize 8, propxtype 3 +0.129116 ptp (2): event 214: propxtype is 3, prop is 0xd056, data type is 0x0000, propxcnt is 2. +0.129120 ptp (2): event 214: data type 0x0000 of d056 unhandled, size 1, raw values: +0.129123 ptp (2): 0: 0x 1 +0.129126 ptp (2): 1: 0x 3 +0.129129 ptp (2): event 215: EOS prop d1df desc record, datasize 20, propxtype 3 +0.129132 ptp (2): event 215: propxtype is 3, prop is 0xd1df, data type is 0x0000, propxcnt is 5. +0.129136 ptp (2): event 215: data type 0x0000 of d1df unhandled, size 245, raw values: +0.129138 ptp (2): 0: 0x f5 +0.129141 ptp (2): 1: 0x fb +0.129144 ptp (2): 2: 0x 0 +0.129147 ptp (2): 3: 0x 5 +0.129150 ptp (2): 4: 0x b +0.129153 ptp (2): event 216: EOS prop d1c1 desc record, datasize 16, propxtype 3 +0.129156 ptp (2): event 216: propxtype is 3, prop is 0xd1c1, data type is 0x0006, propxcnt is 4. +0.129162 ptp (2): event 216: suppval[0] of d1c1 is 0x3. +0.129165 ptp (2): event 216: suppval[1] of d1c1 is 0x1. +0.129168 ptp (2): event 216: suppval[2] of d1c1 is 0x0. +0.129171 ptp (2): event 216: suppval[3] of d1c1 is 0x2. +0.129174 ptp (2): event 217: EOS prop d1c5 desc record, datasize 0, propxtype 3 +0.129177 ptp (2): event 218: EOS prop d194 desc record, datasize 16, propxtype 3 +0.129181 ptp (2): event 218: propxtype is 3, prop is 0xd194, data type is 0x0004, propxcnt is 4. +0.129184 ptp (2): event 218: suppval[0] of d194 is 0x0. +0.129187 ptp (2): event 218: suppval[1] of d194 is 0x2. +0.129190 ptp (2): event 218: suppval[2] of d194 is 0x7. +0.129193 ptp (2): event 218: suppval[3] of d194 is 0x1. +0.129196 ptp (2): event 219: EOS prop d195 desc record, datasize 0, propxtype 3 +0.129199 ptp (2): event 220: EOS prop d197 desc record, datasize 0, propxtype 3 +0.129202 ptp (2): event 221: EOS prop d17a desc record, datasize 8, propxtype 3 +0.129205 ptp (2): event 221: propxtype is 3, prop is 0xd17a, data type is 0x0000, propxcnt is 2. +0.129209 ptp (2): event 221: data type 0x0000 of d17a unhandled, size 1, raw values: +0.129212 ptp (2): 0: 0x 1 +0.129215 ptp (2): 1: 0x 0 +0.129218 ptp (2): event 222: EOS prop d17b desc record, datasize 0, propxtype 3 +0.129221 ptp (2): event 223: EOS prop d1c9 desc record, datasize 8, propxtype 3 +0.129224 ptp (2): event 223: propxtype is 3, prop is 0xd1c9, data type is 0x0006, propxcnt is 2. +0.129227 ptp (2): event 223: suppval[0] of d1c9 is 0x1. +0.129230 ptp (2): event 223: suppval[1] of d1c9 is 0x0. +0.129233 ptp (2): event 224: EOS prop d175 desc record, datasize 4, propxtype 3 +0.129237 ptp (2): event 224: propxtype is 3, prop is 0xd175, data type is 0x0000, propxcnt is 1. +0.129240 ptp (2): event 224: data type 0x0000 of d175 unhandled, size 0, raw values: +0.129243 ptp (2): 0: 0x 0 +0.129246 ptp (2): event 225: EOS prop d14b desc record, datasize 4, propxtype 3 +0.129249 ptp (2): event 225: propdesc d14b, default value not found. +0.129252 ptp (2): event 226: EOS prop d13e desc record, datasize 0, propxtype 1 +0.129256 ptp (2): event 226: propxtype is 1 for d13e, unhandled, size 20 +0.129259 ptp (2): event 227: EOS prop d15e desc record, datasize 0, propxtype 7 +0.129262 ptp (2): event 227: propxtype is 7 for d15e, unhandled, size 20 +0.129265 ptp (2): event 228: EOS prop d163 desc record, datasize 0, propxtype 7 +0.129268 ptp (2): event 228: propxtype is 7 for d163, unhandled, size 20 +0.129271 ptp (2): event 229: EOS prop d164 desc record, datasize 0, propxtype 7 +0.129274 ptp (2): event 229: propxtype is 7 for d164, unhandled, size 20 +0.129278 ptp (2): event 230: EOS prop d165 desc record, datasize 0, propxtype 7 +0.129281 ptp (2): event 230: propxtype is 7 for d165, unhandled, size 20 +0.129284 ptp (2): event 231: EOS prop d149 desc record, datasize 0, propxtype 3 +0.129287 ptp (2): event 232: unknown EOS event c1a4 +0.129290 ptp (2): 8: 01 +0.129293 ptp (2): 9: 00 +0.129296 ptp (2): 10: 02 +0.129299 ptp (2): 11: 00 +0.129306 ptp (2): event 233: unknown EOS event c19d +0.129309 ptp (2): 8: 00 +0.129312 ptp (2): 9: 00 +0.129314 ptp (2): 10: 00 +0.129317 ptp (2): 11: 00 +0.129320 ptp (2): event 234: unknown EOS event c1f6 +0.129323 ptp (2): 8: 01 +0.129326 ptp (2): 9: 00 +0.129328 ptp (2): 10: 00 +0.129331 ptp (2): 11: 00 +0.129334 ptp (2): olcinfoversion is 16 +0.129337 ptp (2): event 235: EOS event OLCInfoChanged (size 92) +0.129340 ptp (2): 0: 58 +0.129343 ptp (2): 1: 00 +0.129346 ptp (2): 2: 00 +0.129349 ptp (2): 3: 00 +0.129351 ptp (2): 4: ff +0.129354 ptp (2): 5: 1f +0.129357 ptp (2): 6: 00 +0.129360 ptp (2): 7: 00 +0.129363 ptp (2): 8: 15 +0.129366 ptp (2): 9: 00 +0.129368 ptp (2): 10: 01 +0.129371 ptp (2): 11: 01 +0.129374 ptp (2): 12: 90 +0.129377 ptp (2): 13: 18 +0.129380 ptp (2): 14: 00 +0.129382 ptp (2): 15: 6d +0.129385 ptp (2): 16: 00 +0.129388 ptp (2): 17: 01 +0.129391 ptp (2): 18: 01 +0.129394 ptp (2): 19: 38 +0.129396 ptp (2): 20: 80 +0.129399 ptp (2): 21: 28 +0.129402 ptp (2): 22: 00 +0.129405 ptp (2): 23: 01 +0.129408 ptp (2): 24: 01 +0.129410 ptp (2): 25: 00 +0.129413 ptp (2): 26: 00 +0.129416 ptp (2): 27: 50 +0.129419 ptp (2): 28: 28 +0.129421 ptp (2): 29: 04 +0.129424 ptp (2): 30: 00 +0.129427 ptp (2): 31: 00 +0.129430 ptp (2): 32: 00 +0.129432 ptp (2): 33: 00 +0.129435 ptp (2): 34: 00 +0.129438 ptp (2): 35: 00 +0.129441 ptp (2): 36: 00 +0.129443 ptp (2): 37: 00 +0.129446 ptp (2): 38: 00 +0.129449 ptp (2): 39: 01 +0.129452 ptp (2): 40: 00 +0.129454 ptp (2): 41: 00 +0.129457 ptp (2): 42: 00 +0.129460 ptp (2): 43: 00 +0.129463 ptp (2): 44: 00 +0.129465 ptp (2): 45: 00 +0.129468 ptp (2): 46: 00 +0.129471 ptp (2): 47: 00 +0.129474 ptp (2): 48: 00 +0.129476 ptp (2): 49: 00 +0.129479 ptp (2): 50: 00 +0.129482 ptp (2): 51: 00 +0.129485 ptp (2): 52: 00 +0.129487 ptp (2): 53: 00 +0.129490 ptp (2): 54: 00 +0.129493 ptp (2): 55: 00 +0.129496 ptp (2): 56: 00 +0.129498 ptp (2): 57: 00 +0.129501 ptp (2): 58: 00 +0.129504 ptp (2): 59: 00 +0.129507 ptp (2): 60: 00 +0.129509 ptp (2): 61: 00 +0.129512 ptp (2): 62: 00 +0.129515 ptp (2): 63: 00 +0.129520 ptp (2): 64: 00 +0.129522 ptp (2): 65: 00 +0.129525 ptp (2): 66: 00 +0.129528 ptp (2): 67: 00 +0.129531 ptp (2): 68: 00 +0.129533 ptp (2): 69: 00 +0.129536 ptp (2): 70: 00 +0.129539 ptp (2): 71: 00 +0.129542 ptp (2): 72: 00 +0.129544 ptp (2): 73: 00 +0.129547 ptp (2): 74: 00 +0.129550 ptp (2): 75: 00 +0.129553 ptp (2): 76: 00 +0.129555 ptp (2): 77: 00 +0.129558 ptp (2): 78: 00 +0.129561 ptp (2): 79: 00 +0.129564 ptp (2): 80: 00 +0.129566 ptp (2): 81: 00 +0.129569 ptp (2): 82: 00 +0.129572 ptp (2): 83: 00 + +0000 d2 00 00 00 02 00 16 91-12 00 00 00 0d 00 00 00 ................ +0010 89 c1 00 00 15 d1 00 00-00 4c 00 00 00 89 c1 00 .........L...... +0020 00 d0 d1 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0060 00 00 00 00 00 4c 00 00-00 89 c1 00 00 d1 d1 00 .....L.......... +0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0080 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00b0 00 19 00 00 00 89 c1 00-00 af d1 00 00 36 39 34 .............694 +00c0 30 35 31 30 30 30 36 37-30 00 08 00 00 00 00 00 051000670....... +00d0 00 00 - .. + +0.133157 ptp (2): event 0: EOS prop d115 info record, datasize is 1 +0.133162 ptp (2): event 0: currentvalue of d115 is +0.133165 ptp (2): event 1: EOS prop d1d0 info record, datasize is 64 +0.133169 ptp (2): event 1: currentvalue of d1d0 is +0.133173 ptp (2): event 2: EOS prop d1d1 info record, datasize is 64 +0.133176 ptp (2): event 2: currentvalue of d1d1 is +0.133179 ptp (2): event 3: EOS prop d1af info record, datasize is 13 +0.133183 ptp (2): event 3: currentvalue of d1af is 694051000670 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-rebel-T7i.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-rebel-T7i.txt new file mode 100644 index 00000000..3ca75a92 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-rebel-T7i.txt @@ -0,0 +1,539 @@ +/main/actions/syncdatetimeutc +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/syncdatetime +Label: Synchronize camera date and time with PC +Type: TOGGLE +Current: 0 +/main/actions/uilock +Label: UI Lock +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Canon DSLR Manual focus +Type: RADIO +Current: None +Choice: 0 Near 1 +Choice: 1 Near 2 +Choice: 2 Near 3 +Choice: 3 None +Choice: 4 Far 1 +Choice: 5 Far 2 +Choice: 6 Far 3 +/main/actions/cancelautofocus +Label: Cancel Canon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/eoszoom +Label: Canon EOS Zoom +Type: TEXT +Current: 0 +/main/actions/eoszoomposition +Label: Canon EOS Zoom Position +Type: TEXT +Current: 0,0 +/main/actions/viewfinder +Label: Canon EOS Viewfinder +Type: TOGGLE +Current: 2 +/main/actions/eosremoterelease +Label: Canon EOS Remote Release +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 Press Half +Choice: 2 Press Full +Choice: 3 Release Half +Choice: 4 Release Full +Choice: 5 Immediate +Choice: 6 Press 1 +Choice: 7 Press 2 +Choice: 8 Press 3 +Choice: 9 Release 1 +Choice: 10 Release 2 +Choice: 11 Release 3 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetimeutc +Label: Camera Date and Time +Type: DATE +Current: 1501996584 +Printable: Sat 05 Aug 2017 10:16:24 PM PDT +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1501992984 +Printable: Sat 05 Aug 2017 09:16:24 PM PDT +/main/settings/output +Label: Camera Output +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 TFT +Choice: 2 PC +Choice: 3 TFT + PC +Choice: 4 Setting 4 +Choice: 5 Setting 5 +Choice: 6 Setting 6 +Choice: 7 Setting 7 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/settings/movierecordtarget +Label: Recording Destination +Type: RADIO +Current: None +Choice: 0 None +/main/settings/evfmode +Label: EVF Mode +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 0 +/main/settings/ownername +Label: Owner Name +Type: TEXT +Current: +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/customfuncex +Label: Custom Functions Ex +Type: TEXT +Current: c8,1,1,bc,f,101,1,0,103,1,0,113,1,0,203,1,0,50e,1,0,51b,1,0,51c,1,0,50c,1,0,51d,1,0,60f,1,0,40a,1,c3,702,1,0,704,1,0,811,1,0,814,1,0, +/main/settings/focusarea +Label: Focus Area +Type: TEXT +Current: 1431652167 +/main/settings/autopoweroff +Label: Auto Power Off +Type: TEXT +Current: 10 +/main/settings/depthoffield +Label: Depth of Field +Type: TEXT +Current: 0 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/capture +Label: Capture +Type: TOGGLE +Current: 0 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Canon.Inc +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Canon EOS Rebel T7i +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3-1.0.1 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/model +Label: Camera Model +Type: TEXT +Current: 2147484677 +/main/status/Battery Level +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/lensname +Label: Lens Name +Type: TEXT +Current: EF-S18-135mm f/3.5-5.6 IS +/main/status/eosserialnumber +Label: Serial Number +Type: TEXT +Current: 032021012159 +/main/status/availableshots +Label: Available Shots +Type: TEXT +Current: 6658 +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 RAW + Large Fine JPEG +Choice: 8 RAW +/main/imgsettings/imageformatsd +Label: Image Format SD +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 RAW + Large Fine JPEG +Choice: 8 RAW +/main/imgsettings/imageformatcf +Label: Image Format CF +Type: RADIO +Current: Large Fine JPEG +Choice: 0 Large Fine JPEG +Choice: 1 Large Normal JPEG +Choice: 2 Medium Fine JPEG +Choice: 3 Medium Normal JPEG +Choice: 4 Small Fine JPEG +Choice: 5 Small Normal JPEG +Choice: 6 Smaller JPEG +Choice: 7 RAW + Large Fine JPEG +Choice: 8 RAW +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Unknown value 0001 +Choice: 0 Auto +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +Choice: 4 800 +Choice: 5 1600 +Choice: 6 3200 +Choice: 7 6400 +Choice: 8 12800 +Choice: 9 25600 +Choice: 10 Unknown value 0001 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Unknown value 0017 +Choice: 2 Daylight +Choice: 3 Shadow +Choice: 4 Cloudy +Choice: 5 Tungsten +Choice: 6 Fluorescent +Choice: 7 Flash +Choice: 8 Manual +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 5200 +/main/imgsettings/whitebalanceadjusta +Label: WhiteBalance Adjust A +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalanceadjustb +Label: WhiteBalance Adjust B +Type: RADIO +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/imgsettings/whitebalancexa +Label: WhiteBalance X A +Type: TEXT +Current: 0 +/main/imgsettings/whitebalancexb +Label: WhiteBalance X B +Type: TEXT +Current: 0 +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Manual +Choice: 0 One Shot +Choice: 1 AI Focus +Choice: 2 AI Servo +Choice: 3 Manual +/main/capturesettings/continuousaf +Label: Continuous AF +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 On +/main/capturesettings/aspectratio +Label: Aspect Ratio +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Unknown value 0000 +Choice: 1 Unknown value 0002 +Choice: 2 Unknown value 0007 +Choice: 3 Unknown value 0001 +/main/capturesettings/autoexposuremode +Label: Canon Auto Exposure Mode +Type: RADIO +Current: Manual +Choice: 0 P +Choice: 1 TV +Choice: 2 AV +Choice: 3 Manual +Choice: 4 Bulb +Choice: 5 A_DEP +Choice: 6 DEP +Choice: 7 Custom +Choice: 8 Lock +Choice: 9 Green +Choice: 10 Night Portrait +Choice: 11 Sports +Choice: 12 Portrait +Choice: 13 Landscape +Choice: 14 Closeup +Choice: 15 Flash Off +/main/capturesettings/drivemode +Label: Drive Mode +Type: RADIO +Current: Single +Choice: 0 Single +Choice: 1 Continuous high speed +Choice: 2 Continuous low speed +Choice: 3 Timer 10 sec +Choice: 4 Timer 2 sec +Choice: 5 Unknown value 0007 +/main/capturesettings/picturestyle +Label: Picture Style +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Standard +Choice: 2 Portrait +Choice: 3 Landscape +Choice: 4 Unknown value 0088 +Choice: 5 Neutral +Choice: 6 Faithful +Choice: 7 Monochrome +Choice: 8 User defined 1 +Choice: 9 User defined 2 +Choice: 10 User defined 3 +/main/capturesettings/aperture +Label: Aperture +Type: RADIO +Current: 3.5 +Choice: 0 3.5 +Choice: 1 4 +Choice: 2 4.5 +Choice: 3 5 +Choice: 4 5.6 +Choice: 5 6.3 +Choice: 6 7.1 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 13 +Choice: 12 14 +Choice: 13 16 +Choice: 14 18 +Choice: 15 20 +Choice: 16 22 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1/100 +Choice: 0 bulb +Choice: 1 30 +Choice: 2 25 +Choice: 3 20 +Choice: 4 15 +Choice: 5 13 +Choice: 6 10 +Choice: 7 8 +Choice: 8 6 +Choice: 9 5 +Choice: 10 4 +Choice: 11 3.2 +Choice: 12 2.5 +Choice: 13 2 +Choice: 14 1.6 +Choice: 15 1.3 +Choice: 16 1 +Choice: 17 0.8 +Choice: 18 0.6 +Choice: 19 0.5 +Choice: 20 0.4 +Choice: 21 0.3 +Choice: 22 1/4 +Choice: 23 1/5 +Choice: 24 1/6 +Choice: 25 1/8 +Choice: 26 1/10 +Choice: 27 1/13 +Choice: 28 1/15 +Choice: 29 1/20 +Choice: 30 1/25 +Choice: 31 1/30 +Choice: 32 1/40 +Choice: 33 1/50 +Choice: 34 1/60 +Choice: 35 1/80 +Choice: 36 1/100 +Choice: 37 1/125 +Choice: 38 1/160 +Choice: 39 1/200 +Choice: 40 1/250 +Choice: 41 1/320 +Choice: 42 1/400 +Choice: 43 1/500 +Choice: 44 1/640 +Choice: 45 1/800 +Choice: 46 1/1000 +Choice: 47 1/1250 +Choice: 48 1/1600 +Choice: 49 1/2000 +Choice: 50 1/2500 +Choice: 51 1/3200 +Choice: 52 1/4000 +/main/capturesettings/meteringmode +Label: Metering Mode +Type: RADIO +Current: Evaluative +Choice: 0 Evaluative +Choice: 1 Partial +Choice: 2 Spot +Choice: 3 Center-weighted average +/main/capturesettings/bracketmode +Label: Bracket Mode +Type: TEXT +Current: 0 +/main/capturesettings/aeb +Label: Auto Exposure Bracketing +Type: RADIO +Current: off +Choice: 0 off +Choice: 1 +/- 1/3 +Choice: 2 +/- 2/3 +Choice: 3 +/- 1 +Choice: 4 +/- 1 1/3 +Choice: 5 +/- 1 2/3 +Choice: 6 +/- 2 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: Canon EOS Rebel T7i +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Unknown Initiator +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 0 +Choice: 2 75 +Choice: 3 0 +Choice: 4 50 +Camera summary: +Manufacturer: Canon.Inc +Model: Canon EOS Rebel T7i + Version: 3-1.0.1 + Serial Number: 2d5d4db01af2448c9c93b651c0c7549 +Vendor Extension ID: 0xb (1.0) + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Capture 2 + Canon Wifi support + +Storage Devices Summary: +store_00020001: + StorageDescription: SD + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 62528684032 (59632 MB) + Free Space (Bytes): 59257913344 (56512 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd402:(read only) (type=0xffff) 'Canon EOS Rebel T7i' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator' +Property 0xd303:(read only) (type=0x2) 1 +Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s1.txt new file mode 100644 index 00000000..2e03dbe2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s1.txt @@ -0,0 +1,131 @@ +Manufacturer: Canon + model: Canon PowerShot S1 IS + device version: 1-1.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x100e + 0x9008 + 0x901a + 0x9009 + 0x900b + 0x901d + 0x900d + 0x900c + 0x9014 + 0x9015 + 0x9018 + 0x9012 + 0x900e + 0x900f + 0x9010 + 0x9011 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00b + 0xc00c + 0xc00d + 0xc010 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd048 + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + +Modell: Canon PowerShot S1 IS + Geräteversion: 1-1.0.0.0 + Seriennummer: (null) +Händler Kennung: 0x0000000b +Händler Beschreibung: (null) +Property 0xd045:(readwrite) Enumeration [1,2,3,4,5,6,7] value: 2 +Property 0xd04a:(readwrite) Enumeration [0,1,2,3] value: 0 +Property 0xd02e:(read only) 262144 +Property 0xd02f:(read only) 262144 +Property 0xd002:(read only) Enumeration [0,1,2,3,4,5] value: 0 +Viewfinder Mode(0xd003):(read only) Enumeration [0,1,2,3] value: 1 +UNIX Time(0xd034):(readwrite) 1094657861 +Property 0xd047:(read only) 2 +Property 0xd046:(read only) 257 +Property 0xd02d:(read only) a[4] 119,0,159,0 +Property 0xd048:(read only) a[16] 1640448,1026048,583680,0,254976,914432,571392,327680,0,153600,455680,284672,174080,0,86016,10077696 +Size Quality Mode(0xd02c):(read only) Enumeration [ + a[6] 1536,2048,1,0,0,0, + a[6] 1536,2048,6,0,0,0, + a[6] 1536,2048,11,0,0,0, + a[6] 1200,1600,2,0,0,0, + a[6] 1200,1600,7,0,0,0, + a[6] 1200,1600,12,0,0,0, + a[6] 768,1024,3,0,0,0, + a[6] 768,1024,8,0,0,0, + a[6] 768,1024,13,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Property 0xd030:(read only) 256 +Property 0xd049:(read only) 20316160 +Camera Model(0xd032):(read only) 'Canon PowerShot S1 IS' +Camera Owner(0xd033):(readwrite) a[0] +Flash Memory(0xd031):(read only) 16777472 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s2.txt new file mode 100644 index 00000000..07665c4f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s2.txt @@ -0,0 +1,105 @@ + Device info: + Manufacturer: Canon Inc. + model: Canon PowerShot S2 IS + device version: 1-1.1.1.0 + serial number: '(null)' + Vendor extension ID: 0x0000000b + Vendor extension description: (null) + Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x9027 + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9022 + 0x9026 + 0x9023 + 0x100e + 0x9008 + 0x901a + 0x9009 + 0x900b + 0x901d + 0x900d + 0x900c + 0x9014 + 0x9015 + 0x9018 + 0x9012 + Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00e + 0xc00f + 0xc010 + Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd048 + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd04b diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s3.txt new file mode 100644 index 00000000..6fd6601d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s3.txt @@ -0,0 +1,112 @@ +Device info: +Manufacturer: Canon Inc. + Model: Canon PowerShot S3 IS + device version: 1-2.2.1.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x100e + 0x9008 + 0x901a + 0x9009 + 0x900b + 0x901d + 0x900c + 0x9014 + 0x9015 + 0x9018 + 0x9012 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00e + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd048 + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s5.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s5.txt new file mode 100644 index 00000000..4dd97413 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-s5.txt @@ -0,0 +1,228 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot S5 IS + device version: 1-3.2.1.0 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x0000000b +Supported operations: + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1001 + 0x1002 + 0x1003 + 0x9013 + 0x901f + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x100c + 0x100d + 0x100b + 0x100f + 0x1012 + 0x9001 + 0x9021 + 0x901b + 0x901e + 0x9019 + 0x9006 + 0x901c + 0x9002 + 0x904c + 0x902c + 0x902d + 0x902e + 0x9024 + 0x9025 + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9028 + 0x9023 + 0x9029 + 0x902a + 0x902b + 0x9034 + 0x100e + 0x9008 + 0x901a + 0x9009 + 0x900b + 0x901d + 0x900c + 0x9014 + 0x9015 + 0x9018 + 0x9012 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9020 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400b + 0x400c + 0x400d + 0x400e + 0xc001 + 0xc005 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00e + 0xc00f + 0xc011 + 0xc013 +Device Properties Supported: + 0xd045 + 0xd04a + 0xd02e + 0xd02f + 0xd002 + 0xd003 + 0xd034 + 0xd047 + 0xd046 + 0xd02d + 0xd048 + 0xd02c + 0xd030 + 0xd049 + 0xd032 + 0xd033 + 0xd031 + 0xd402 + 0xd406 + 0xd407 + 0xd029 + 0xd006 + 0xd007 + 0xd008 + 0xd00e + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd01c + 0xd01f + 0xd020 + 0xd041 + 0xd042 + 0xd044 + 0xd00a + 0xd00c + 0xd01d + 0xd01e + 0xd02a + 0xd036 + 0xd037 + 0xd038 + 0xd039 + 0xd03b + 0xd03c + 0xd03d + 0xd043 + +Camera summary: +Model: Canon PowerShot S5 IS + device version: 1-3.2.1.0 + serial number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor extension ID: 0x0000000b + +Capture Formats: JPEG +Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(bf01) + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Canon Capture + +Storage Devices Summary: + +Device Property Summary: +Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288 +Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 262144 +Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: 1 +Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: 1 +UNIX Time(0xd034):(readwrite) (type=0x6) 1216634296 +Type of Slideshow(0xd047):(read only) (type=0x4) 2 +DPOF Version(0xd046):(read only) (type=0x4) 257 +Supported Thumb Size(0xd02d):(read only) (type=0x4006) a[4] 119,0,159,0 +Average Filesizes(0xd048):(read only) (type=0x4006) a[19] +3518464,2563072,1640448,0,254976,2109440,1428480,914432,0,153600,1003520,711680,455680,0,86016,0,1026048,571392,284672 +Size Quality Mode(0xd02c):(read only) (type=0x4006) Enumeration [ + a[6] 2448,3264,1,0,0,0, + a[6] 2448,3264,6,0,0,0, + a[6] 2448,3264,11,0,0,0, + a[6] 1944,2592,2,0,0,0, + a[6] 1944,2592,7,0,0,0, + a[6] 1944,2592,12,0,0,0, + a[6] 1536,2048,3,0,0,0, + a[6] 1536,2048,8,0,0,0, + a[6] 1536,2048,13,0,0,0, + a[6] 1200,1600,17,0,0,0, + a[6] 1200,1600,18,0,0,0, + a[6] 1200,1600,19,0,0,0, + a[6] 480,640,5,0,0,0, + a[6] 480,640,10,0,0,0, + a[6] 480,640,15,0,0,0 + ] value: a[6] 0,0,0,0,0,0 +Remote API Version(0xd030):(read only) (type=0x6) 256 +Model ID(0xd049):(read only) (type=0x6) 34144256 +Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot S5 IS' +Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] +Firmware Version(0xd031):(read only) (type=0x6) 16777472 +Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot S5 IS' +Property 0xd406:(readwrite) (type=0xffff) 'Windows' +Property 0xd407:(read only) (type=0x6) 1 +Capture Transfer Mode(0xd029):(readwrite) (type=0x4) Enumeration [1,2,3] value: 15 +Image Quality(0xd006):(readwrite) (type=0x2) Enumeration [5,3,2] value: 2 +Full View File Format(0xd007):(read only) (type=0x2) Enumeration [] value: 1 +Image Size(0xd008):(readwrite) (type=0x2) Enumeration [0,1,3,7,2] value: 2 +Drive Mode(0xd00e):(read only) (type=0x2) Enumeration [] value: 0 +Metering Mode(0xd010):(readwrite) (type=0x2) Enumeration [3,0,1] value: 3 +AF Distance(0xd011):(readwrite) (type=0x2) Enumeration [1,3] value: 1 +Focusing Point(0xd012):(read only) (type=0x4) Enumeration [] value: 12291 +White Balance(0xd013):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,7,5,6] value: 0 +ISO Speed(0xd01c):(readwrite) (type=0x4) Enumeration [0,69,72,80,88,96,104] value: 0 +Exposure Compensation(0xd01f):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Flash Compensation(0xd020):(readwrite) (type=0x2) Enumeration [8,11,13,16,19,21,24,27,29,32,35,37,40] value: 24 +Assist Light(0xd041):(readwrite) (type=0x4) Enumeration [1,0] value: 1 +Flash Quanity Count(0xd042):(read only) (type=0x4) Enumeration [] value: 2 +Rotation Scene(0xd044):(readwrite) (type=0x4) Enumeration [0,1] value: 0 +Flash Mode(0xd00a):(read only) (type=0x2) Enumeration [] value: 0 +Shooting Mode(0xd00c):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 1 +Aperture(0xd01d):(read only) (type=0x4) Enumeration [] value: 40 +Shutter Speed(0xd01e):(read only) (type=0x4) Enumeration [] value: 112 +Zoom(0xd02a):(readwrite) (type=0x4) Range [0 - 134, step 1] value: 0 +Camera Output(0xd036):(readwrite) (type=0x2) Enumeration [1,2,3] value: 3 +Disp Av(0xd037):(read only) (type=0x4) 1 +Av Open Apex(0xd038):(read only) (type=0x4) 27 +Digital Zoom Magnification(0xd039):(read only) (type=0x4) 3264 +Disp Av Max(0xd03b):(read only) (type=0x4) 0 +Av Max Apex(0xd03c):(read only) (type=0x4) 56 +EZoom Start Position(0xd03d):(read only) (type=0x4) 129 +Rotation Angle(0xd043):(read only) (type=0x4) 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-sd110.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-sd110.txt new file mode 100644 index 00000000..f8ad4b20 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/canon-sd110.txt @@ -0,0 +1,100 @@ +Device info: +Manufacturer: Canon Inc. + model: Canon PowerShot SD110 + device version: 1-1.0.0.0 + serial number: '(null)' +Vendor extension ID: 0x0000000b +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1012 + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9006 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9013 + 0x9014 + 0x9015 + 0x9018 + 0x9019 + 0x901a + 0x901b + 0x901c + 0x901d + 0x901e + 0x901f + 0x9020 + 0x9021 + 0x9022 + 0x9023 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc005 + 0xc006 + 0xc007 + 0xc008 + 0xc009 + 0xc00a + 0xc00b + 0xc00c + 0xc00d + 0xc00f +Device Properties Supported: + 0xd001 + 0xd002 + 0xd003 + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd045 + 0xd046 + 0xd047 + 0xd048 + 0xd049 + 0xd04b diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/casio-ex-f1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/casio-ex-f1.txt new file mode 100644 index 00000000..35d8b65f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/casio-ex-f1.txt @@ -0,0 +1,89 @@ +Device info: +Manufacturer: CASIO COMPUTER CO.,LTD. + model: EX-F1 + device version: 1.00 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x101b + 0x9000 + 0x9001 + 0x9002 + 0x9003 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4002 + 0x4003 + 0x4007 + 0x4009 + 0x400c +Device Properties Supported: + 0xd405 + 0xd407 + +Camera summary: +Model: EX-F1 + device version: 1.00 + serial number: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +Vendor extension ID: 0x00000006 +Vendor extension description: (null) + +Capture Formats: JPEG MS Wave Apple Quicktime MS AVI Undefined Type +Display Formats: JPEG, MS Wave, MS AVI, Apple Quicktime, Association/Directory, Undefined Type +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read-Only + Maximum Capability: 18446744073709551615 (4294967295 MB) + Free Space (Bytes): 133120 (0 MB) + Free Space (Images): -1 +store_00020001: + StorageDescription: None + VolumeLabel: None + Storage Type: Builtin RAM + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 4075290624 (3886 MB) + Free Space (Bytes): 3099557888 (2955 MB) + Free Space (Images): -1 + +Device Property Summary: +Device Icon(0xd405):(read only) (type=0x0) Undefined +Property 0xd407:(read only) (type=0x6) 1 + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/creative-zen-microphoto.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/creative-zen-microphoto.txt new file mode 100644 index 00000000..f01d05e8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/creative-zen-microphoto.txt @@ -0,0 +1,188 @@ +Device info: +Manufacturer: Creative Technology Ltd + model: Creative Zen MicroPhoto + device version: 1.20.01_0.00.65 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com: 1.0;microsoft.com/WMPPD: 10.0;microsoft.com/WMDRMPD: 10.1; +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1007 + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1006 + 0x1008 + 0x1009 + 0x100b + 0x1010 + 0x1016 + 0x1017 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9806 + 0x9808 + 0x9807 + 0x9810 + 0x9811 + 0x9201 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 +Events Supported: +Device Properties Supported: + 0x5001 + 0xd401 + 0xd402 + 0xd101 + 0xd102 + +Camera summary: +Model: Creative Zen MicroPhoto + device version: 1.20.01_0.00.65 + serial number: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com: 1.0;microsoft.com/WMPPD: 10.0;microsoft.com/WMDRMPD: 10.1; + +Capture Formats: +Display Formats: MP3, WMA, MS Wave, Abstract Audio Video Playlist, JPEG, vCard3, vCalendar2, Undefined Type, Association/Directory, Firmware +Supported MTP Object Properties: + MP3/3009: de99/AudioWAVECodec de9a/AudioBitRate dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName dc44/Name de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + WMA/b901: de99/AudioWAVECodec de9a/AudioBitRate dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName dc44/Name de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + MS Wave/3008: dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName dc44/Name de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + Abstract Audio Video Playlist/ba05: dc44/Name dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + JPEG/3801: dc88/Height dc04/ObjectSize dc86/RepresentativeSampleData dc81/RepresentativeSampleFormat dc83/RepresentativeSampleHeight dc82/RepresentativeSampleSize dc84/RepresentativeSampleWidth dc87/Width dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + vCard3/bb83: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + vCalendar2/be03: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + Undefined Type/3000: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + Association/Directory/3001: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + Firmware/b802: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: 010525514103909B99130D0F4103909B + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 7978778624 (7609 MB) + Free Space (Bytes): 7880622080 (7515 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 255, step 1] value: 170 +Property 0xd401:(readwrite) (type=0xffff) (null) ('(null)') +Property 0xd402:(readwrite) (type=0xffff) (null) ('(null)') +Property 0xd101:(read only) (type=0x4004) #20040523 08:22:46Z#DRM_CLK_NOT_SET +Property 0xd102:(read only) (type=0x4004) ÿ + + + + + AQUlUUEDkJuZEw0PQQOQmwAAAAA= + 01 05 25 51 41 03 90 9b 99 13 0d 0f 41 03 90 9b 00 00 00 00 + + + bc5tBkpC1vKhKspg9x3NtvOQc3eUs1Hr3yuU8iNMVWO+edg6jUGdWQ== + 6d ce 6d 06 4a 42 d6 f2 a1 2a ca 60 f7 1d cd b6 f3 90 73 77 94 b3 51 eb df 2b 94 f2 23 4c 55 63 be 79 d8 3a 8d 41 9d 59 + + + wHKExHqjKZ87Yl4YF7xpiJu0ZlI= + c0 72 84 c4 7a a3 29 9f 3b 62 5e 18 17 bc 69 88 9b b4 66 52 + + + + ly3ICs9QWv3Lwoe6r0tGK17Aj3G8zXx+eJLZ1M2YI3Y7fhTzVrJSOg== + 97 2d c8 0a cf 50 5a fd cb c2 87 ba af 4b 46 2b 5e c0 8f 71 bc cd 7c 7e 78 92 d9 d4 cd 98 23 76 3b 7e 14 f3 56 b2 52 3a + + + 4DmVMqMxdT4QMevC/Gpg52Gd58I= + e0 39 95 32 a3 31 75 3e 10 31 eb c2 fc 6a 60 e7 61 9d e7 c2 + + + + 2.4.102.43 + + bc5tBkpC1vKhKspg9x3NtvOQc3eUs1Hr3yuU8iNMVWO+edg6jUGdWQIEZisUUkulIYvUbBHVCmDF9Z9kW+RWUfLN+Ih6A3hVNs+5k9c516BdJGt0 + 6d ce 6d 06 4a 42 d6 f2 a1 2a ca 60 f7 1d cd b6 f3 90 73 77 94 b3 51 eb df 2b 94 f2 23 4c 55 63 be 79 d8 3a 8d 41 9d 59 02 04 66 2b 14 52 4b a5 21 8b d4 6c 11 d5 0a 60 c5 f5 9f 64 5b e4 56 51 f2 cd f8 88 7a 03 78 55 36 cf b9 93 d7 39 d7 a0 5d 24 6b 74 + + + + + Creative Zen MicroPhoto + CL Direct Pte Ltd. + DAP-MD0004 + 2000 + 1 + 0 + 1 + 0 + + 2 + + http://go.microsoft.com/fwlink/?LinkId=25817 + !CNhvvz1WaNV1AFUmetxkvm9iD4UrE9cnGUi!qcqdxMiXmD1*ikYGA== + + 1 + 0 + 1 + 0 + 1 + + + 2 + 10240 + 5120 + + + UjurbLh8ap+B8EsXb9FuVhRbWCbKRGDdm7xWTAgK02eLpTDRUPjUWA== + 52 3b ab 6c b8 7c 6a 9f 81 f0 4b 17 6f d1 6e 56 14 5b 58 26 ca 44 60 dd 9b bc 56 4c 08 0a d3 67 8b a5 30 d1 50 f8 d4 58 + + + + quB0u/cTiyb2QncI62t/E98g5xt/YQMQDnLFwXEqwg+twcZXVM9GJw== + + + + + 2000 + 399 + + Gf5Ommhs90oQ3m98RF9NNLuJ3nxgcFg4j0FGrLXshCI05uubNR46Iw== + + + + 3KK+1dNO2r967UrH998VO7cgb1fx/QXunT3EXOXIgyYH/2/IHt7bLQ== + + + + + 1 + + a1t3hxrg!qbOgktnbYaEEi4teCse!gz6RvTPuC!zizKJlpU7xoduSw== + + + + K/+ULUEJBJr1Lw6cieqoCrSr3RjzfJgtu8/at2FrBpVmLTGl/yKOJQ== + + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/creative-zen.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/creative-zen.txt new file mode 100644 index 00000000..439c2b21 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/creative-zen.txt @@ -0,0 +1,137 @@ +Device info: +Manufacturer: Creative Technology Ltd + Model: Creative ZEN + device version: 1.21.01_0.03.01 + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0;microsoft.com/WMPPD: 10.0;microsoft.com/WMDRMPD: 10.1;audible.com: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1007 + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1006 + 0x1008 + 0x1009 + 0x100b + 0x1010 + 0x1012 + 0x1016 + 0x1017 + 0x1019 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9806 + 0x9808 + 0x9807 + 0x9810 + 0x9811 + 0x9201 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b +Events Supported: +Device Properties Supported: + 0x5001 + 0xd401 + 0xd402 + 0xd101 + 0xd102 + 0xd201 + +Camera summary: +Manufacturer: Creative Technology Ltd +Model: Creative ZEN + Version: 1.21.01_0.03.01 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: microsoft.com: 1.0;microsoft.com/WMPPD: 10.0;microsoft.com/WMDRMPD: 10.1;audible.com: 1.0; + +Capture Formats: +Display Formats: MP3, WMA, MS Wave, Audible.com Codec, MP4, Abstract Audio Album, Abstract Audio Video Playlist, Abstract Multimedia Album, JPEG, MS AVI, ASF, WMV, vCard3, vCalendar2, Firmware, Undefined Type, Association/Directory +Supported MTP Object Properties: + MP3/3009: de99/AudioWAVECodec de9a/AudioBitRate dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc8a/Rating d901/BuyFlag dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + WMA/b901: de99/AudioWAVECodec de9a/AudioBitRate dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc8a/Rating d901/BuyFlag dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + MS Wave/3008: dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc8a/Rating d901/BuyFlag dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + Audible.com Codec/b904: da01/unknown(da01) da02/unknown(da02) da03/unknown(da03) dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc8a/Rating d901/BuyFlag dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + MP4/b982: de99/AudioWAVECodec de9a/AudioBitRate dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc8a/Rating d901/BuyFlag dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + Abstract Audio Album/ba03: dc86/RepresentativeSampleData dc81/RepresentativeSampleFormat dc83/RepresentativeSampleHeight dc82/RepresentativeSampleSize dc84/RepresentativeSampleWidth dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + Abstract Audio Video Playlist/ba05: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + Abstract Multimedia Album/ba01: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + JPEG/3801: dc88/Height dc86/RepresentativeSampleData dc81/RepresentativeSampleFormat dc83/RepresentativeSampleHeight dc82/RepresentativeSampleSize dc84/RepresentativeSampleWidth dc87/Width dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + MS AVI/300a: de99/AudioWAVECodec de9a/AudioBitRate de9d/FramesPerThousandSeconds dc88/Height de91/TotalBitRate de9b/VideoFourCCCodec de9c/VideoBitRate dc87/Width dc86/RepresentativeSampleData dc81/RepresentativeSampleFormat dc83/RepresentativeSampleHeight dc82/RepresentativeSampleSize dc84/RepresentativeSampleWidth dc89/Duration de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + ASF/300c: de99/AudioWAVECodec de9a/AudioBitRate de9d/FramesPerThousandSeconds dc88/Height de91/TotalBitRate de9b/VideoFourCCCodec de9c/VideoBitRate dc87/Width dc86/RepresentativeSampleData dc81/RepresentativeSampleFormat dc83/RepresentativeSampleHeight dc82/RepresentativeSampleSize dc84/RepresentativeSampleWidth dc89/Duration de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + WMV/b981: de99/AudioWAVECodec de9a/AudioBitRate de9d/FramesPerThousandSeconds dc88/Height de91/TotalBitRate de9b/VideoFourCCCodec de9c/VideoBitRate dc87/Width dc86/RepresentativeSampleData dc81/RepresentativeSampleFormat dc83/RepresentativeSampleHeight dc82/RepresentativeSampleSize dc84/RepresentativeSampleWidth dc89/Duration de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + vCard3/bb83: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + vCalendar2/be03: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + Firmware/b802: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc41/PersistantUniqueObjectIdentifier dc44/Name dc0b/ParentObject dc07/ObjectFileName dc4f/NonConsumable dc03/ProtectionStatus + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: 3BF900009C5C07320002D8F517D14732 + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 32137412608 (30648 MB) + Free Space (Bytes): 31980093440 (30498 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 255, step 1] value: 89 +Synchronization Partner(0xd401):(readwrite) (type=0xffff) (null) ('(null)') +Friendly Device Name(0xd402):(readwrite) (type=0xffff) My Zen ('My Zen') +Secure Time(0xd101):(read only) (type=0x4004) #20071214 21:35:59Z#DRM_CLK_NOT_SETAAD5OzIHXJz12AIAMkfRFwAAAAA=zFbxuStpLI7BSAV/4llWXb3ygx8nscNz1sxKwMjaFYsyMtQ36Hx1PA==TLbmwJbkpYarpXzVD3uHUBZo5pY=F2BIM7e05U6JpMo6sHd4IBbAHjpTxNBUkZgnaYOzlgXKTyfKEf6JIQ==umDPMOW0buWj5zGz1JHil+a3IwM=2.4.108.193zFbxuStpLI7BSAV/4llWXb3ygx8nscNz1sxKwMjaFYsyMtQ36Hx1PAIEbME2WXq/WDhfVJiVLAHdf0ryMG0lgVx+82SCxKv/Dsr+Q/arW4V8NBRxCreative ZEN + CL Direct Pte Ltd. + DVP-FL0001 + 2000 + 1 + 0 + 1 + 0 + + 2 + + http://go.microsoft.com/fwlink/?LinkId=25817 + !CNhvvz1WaNV1AFUmetxkvm9iD4UrE9cnGUi!qcqdxMiXmD1*ikYGA== + + 1 + 0 + 1 + 0 + 1 + + + 2 + 10240 + 5120 + 01jSNo4LLYCkLWpnsvVOxk1wvxbm2krcn20LgpXL9Zf91opCNsMyAQ==DrK/bNN2aO5ImZHdepevdhlT6UePVcdaxTWOMvw/8RYKeQFjSPwWUw==20002085U3xlv/ZHjD1bOwjB+VKpZuAf3UI+x+5XtTYc7TvHKdQeGpyFrOmOEw==iBzmFZxhy/VC9d2REO5iicO+dguqv8zhB7QPZe0JOj7BNKAwmrQoew==1a1t3hxrg!qbOgktnbYaEEi4teCse!gz6RvTPuC!zizKJlpU7xoduSw==Ko25GwcWTT0R8xP4rS9+h4Z/EHX03y7Gb/281mD8U0nQGG3Rk9O+TA== diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/creative_zen_micro.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/creative_zen_micro.txt new file mode 100644 index 00000000..80cdc50d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/creative_zen_micro.txt @@ -0,0 +1,68 @@ +Kamera sammanfattning: +Model: Creative Zen Micro + device version: 2.21.02_0.00.65 + serial number: 01052551C6038F82BC171936C6038F82 +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com: 1.0;microsoft.com/WMPPD: 10.0;microsoft.com/WMDRMPD: 10.1;audible.com: 1.0; + +Capture Formats: +Display Formats: MP3, WMA, MS Wave, Audible.com Codec, Abstract Audio Video Playlist, vCard3, vCalendar2, Undefined Type, Association/Directory, Firmware +Supported MTP Object Properties: + MP3/3009: de99/AudioWAVECodec de9a/AudioBitRate dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName dc44/Name de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + WMA/b901: de99/AudioWAVECodec de9a/AudioBitRate dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName dc44/Name de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + MS Wave/3008: dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName dc44/Name de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + Audible.com Codec/b904: da01/unknown(da01) da02/unknown(da02) da03/unknown(da03) dc46/Artist dc89/Duration dc8b/Track dc8c/Genre dc99/OriginalReleaseDate dc9a/AlbumName dc44/Name de93/SampleRate de94/NumberOfChannels de95/AudioBitDepth dc91/UseCount dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + Abstract Audio Video Playlist/ba05: dc44/Name dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + vCard3/bb83: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + vCalendar2/be03: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + Undefined Type/3000: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + Association/Directory/3001: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + Firmware/b802: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: 01052551C6038F82BC171936C6038F82 + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 4979793920 (4749 MB) + Free Space (Bytes): 4645552128 (4430 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 255, step 1] value: 255 +Synchronization Partner(0xd401):(readwrite) (type=0xffff) (null) ('(null)') +Device Friendly Name(0xd402):(readwrite) (type=0xffff) (null) ('(null)') +Secure Time(0xd101):(read only) (type=0x4004) #20041006 05:13:57Z#DRM_CLK_NOT_SETAQUlUcYDj4K8Fxk2xgOPggAAAAA=k912GjDbPJaNV6m2b+Ao7I6gERKu9q/HknX/Xk6Eof7RGsti0t8vKg==UUBc4Bwahh3pLnmKCYNybLhvvDo=C1S5c4HGU1qbAVsuYaL93PSPXS/c27En5jtyJb7CdQmS0lFgA08pBg==YghjWMJr8V1Uo4n+quT/C7TNMWk=2.4.101.71k912GjDbPJaNV6m2b+Ao7I6gERKu9q/HknX/Xk6Eof7RGsti0t8vKgIEZUfAbNZ0RU3logPBMUDW1Nwms7RvhZXdHSetXBT5t7zEnMSty5/eDVJVCreative Zen Micro + CL Direct Pte Ltd. + DAP-MD0004 + 2000 + 1 + 0 + 2 + 10 + + 2 + + http://go.microsoft.com/fwlink/?LinkId=25817 + !CNhvvz1WaNV1AFUmetxkvm9iD4UrE9cnGUi!qcqdxMiXmD1*ikYGA== + + 1 + 0 + 1 + 0 + 1 + + + 2 + 10240 + 5120 + /jJLKJbGuP2rKvXxgUXD5RiwSl6kZBtlE6dpZQJOkyHXVjJYP0ZaWQ==JFCrHlYa9i+gf35AzJUBwaiKWkHLPIGsC1UIDcfpr+lca+u/a3gxPQ==2000171wSdKzyFHUEP/ZH6n+XWM9QNUkmxAjSozkDnwvfq8JAFs+rMjryeXCw==lbcFC77eUPJxJeL/OPc/4GQakgUeeaNtA4iZAyYaymOgIDrLFKNCMA==1a1t3hxrg!qbOgktnbYaEEi4teCse!gz6RvTPuC!zizKJlpU7xoduSw==3wxl5dz2o0IeP1OYxjxB+wdmXl0QcRk9/ZxpHHOX4uE58knkNZoqQA== (a[2774] 65279,60,68,69,86,67,69,82,84,32,118,101,114,115,105,111,110,61,34,49,46,48,34,62,60,67,69,82,84,73,70,73,67,65,84,69,32,116,121,112,101,61,34,68,69,86,73,67,69,34,62,60,68,65,84,65,62,60,85,78,73,81,85,69,73,68,32,112,114,105,118,97,116,101,61,34,49,34,62,65,81,85,108,85,99,89,68,106,52,75,56,70,120,107,50,120,103,79,80,103,103,65,65,65,65,65,61,60,47,85,78,73,81,85,69,73,68,62,60,80,85,66,76,73,67,75,69,89,32,112,114,105,118,97,116,101,61,34,49,34,62,107,57,49,50,71,106,68,98,80,74,97,78,86,54,109,50,98,43,65,111,55,73,54,103,69,82,75,117,57,113,47,72,107,110,88,47,88,107,54,69,111,102,55,82,71,115,116,105,48,116,56,118,75,103,61,61,60,47,80,85,66,76,73,67,75,69,89,62,60,75,69,89,68,65,84,65,62,85,85,66,99,52,66,119,97,104,104,51,112,76,110,109,75,67,89,78,121,98,76,104,118,118,68,111,61,60,47,75,69,89,68,65,84,65,62,60,47,68,65,84,65,62,60,77,83,68,82,77,95,83,73,71,78,65,84,85,82,69,95,86,65,76,85,69,62,67,49,83,53,99,52,72,71,85,49,113,98,65,86,115,117,89,97,76,57,51,80,83,80,88,83,47,99,50,55,69,110,53,106,116,121,74,98,55,67,100,81,109,83,48,108,70,103,65,48,56,112,66,103,61,61,60,47,77,83,68,82,77,95,83,73,71,78,65,84,85,82,69,95,86,65,76,85,69,62,60,83,89,77,83,73,71,78,65,84,85,82,69,62,89,103,104,106,87,77,74,114,56,86,49,85,111,52,110,43,113,117,84,47,67,55,84,78,77,87,107,61,60,47,83,89,77,83,73,71,78,65,84,85,82,69,62,60,47,67,69,82,84,73,70,73,67,65,84,69,62,60,70,65,76,76,66,65,67,75,62,60,83,69,67,85,82,73,84,89,86,69,82,83,73,79,78,62,50,46,52,46,49,48,49,46,55,49,60,47,83,69,67,85,82,73,84,89,86,69,82,83,73,79,78,62,60,67,69,82,84,73,70,73,67,65,84,69,32,112,114,105,118,97,116,101,61,34,49,34,62,107,57,49,50,71,106,68,98,80,74,97,78,86,54,109,50,98,43,65,111,55,73,54,103,69,82,75,117,57,113,47,72,107,110,88,47,88,107,54,69,111,102,55,82,71,115,116,105,48,116,56,118,75,103,73,69,90,85,102,65,98,78,90,48,82,85,51,108,111,103,80,66,77,85,68,87,49,78,119,109,115,55,82,118,104,90,88,100,72,83,101,116,88,66,84,53,116,55,122,69,110,77,83,116,121,53,47,101,68,86,74,86,60,47,67,69,82,84,73,70,73,67,65,84,69,62,60,47,70,65,76,76,66,65,67,75,62,60,67,69,82,84,73,70,73,67,65,84,69,32,116,121,112,101,61,34,71,82,79,85,80,34,62,60,68,65,84,65,62,60,78,65,77,69,62,67,114,101,97,116,105,118,101,32,90,101,110,32,77,105,99,114,111,60,47,78,65,77,69,62,13,10,32,32,60,77,65,78,85,70,65,67,84,85,82,69,82,62,67,76,32,68,105,114,101,99,116,32,80,116,101,32,76,116,100,46,60,47,77,65,78,85,70,65,67,84,85,82,69,82,62,13,10,32,32,60,77,79,68,69,76,62,68,65,80,45,77,68,48,48,48,52,60,47,77,79,68,69,76,62,13,10,32,32,60,83,69,67,85,82,73,84,89,76,69,86,69,76,62,50,48,48,48,60,47,83,69,67,85,82,73,84,89,76,69,86,69,76,62,13,10,32,32,60,72,65,82,68,87,65,82,69,95,86,69,82,95,77,65,74,79,82,62,49,60,47,72,65,82,68,87,65,82,69,95,86,69,82,95,77,65,74,79,82,62,13,10,32,32,60,72,65,82,68,87,65,82,69,95,86,69,82,95,77,73,78,79,82,62,48,60,47,72,65,82,68,87,65,82,69,95,86,69,82,95,77,73,78,79,82,62,13,10,32,32,60,70,73,82,77,87,65,82,69,95,86,69,82,95,77,65,74,79,82,62,50,60,47,70,73,82,77,87,65,82,69,95,86,69,82,95,77,65,74,79,82,62,13,10,32,32,60,70,73,82,77,87,65,82,69,95,86,69,82,95,77,73,78,79,82,62,49,48,60,47,70,73,82,77,87,65,82,69,95,86,69,82,95,77,73,78,79,82,62,13,10,32,32,60,70,69,65,84,85,82,69,83,62,13,10,32,32,32,32,60,67,76,79,67,75,62,50,60,47,67,76,79,67,75,62,13,10,32,32,32,32,60,83,69,67,85,82,69,67,76,79,67,75,62,13,10,32,32,32,32,32,32,60,85,82,76,62,104,116,116,112,58,47,47,103,111,46,109,105,99,114,111,115,111,102,116,46,99,111,109,47,102,119,108,105,110,107,47,63,76,105,110,107,73,100,61,50,53,56,49,55,60,47,85,82,76,62,13,10,32,32,32,32,32,32,60,80,85,66,76,73,67,75,69,89,62,33,67,78,104,118,118,122,49,87,97,78,86,49,65,70,85,109,101,116,120,107,118,109,57,105,68,52,85,114,69,57,99,110,71,85,105,33,113,99,113,100,120,77,105,88,109,68,49,42,105,107,89,71,65,61,61,60,47,80,85,66,76,73,67,75,69,89,62,13,10,32,32,32,32,60,47,83,69,67,85,82,69,67,76,79,67,75,62,13,10,32,32,32,32,60,77,69,84,69,82,73,78,71,62,49,60,47,77,69,84,69,82,73,78,71,62,13,10,32,32,32,32,60,76,73,67,69,78,83,69,95,65,67,81,62,48,60,47,76,73,67,69,78,83,69,95,65,67,81,62,13,10,32,32,32,32,60,76,73,67,69,78,83,69,95,83,89,78,67,62,49,60,47,76,73,67,69,78,83,69,95,83,89,78,67,62,13,10,32,32,32,32,60,69,78,67,82,89,80,84,73,79,78,62,48,60,47,69,78,67,82,89,80,84,73,79,78,62,13,10,32,32,32,32,60,83,89,77,77,69,84,82,73,67,95,79,80,84,62,49,60,47,83,89,77,77,69,84,82,73,67,95,79,80,84,62,13,10,32,32,60,47,70,69,65,84,85,82,69,83,62,13,10,32,32,60,76,73,77,73,84,83,62,13,10,32,32,32,32,60,77,65,88,67,72,65,73,78,68,69,80,84,72,62,50,60,47,77,65,88,67,72,65,73,78,68,69,80,84,72,62,13,10,32,32,32,32,60,77,65,88,76,73,67,69,78,83,69,83,73,90,69,62,49,48,50,52,48,60,47,77,65,88,76,73,67,69,78,83,69,83,73,90,69,62,13,10,32,32,32,32,60,77,65,88,72,69,65,68,69,82,83,73,90,69,62,53,49,50,48,60,47,77,65,88,72,69,65,68,69,82,83,73,90,69,62,13,10,32,32,60,47,76,73,77,73,84,83,62,60,80,85,66,76,73,67,75,69,89,62,47,106,74,76,75,74,98,71,117,80,50,114,75,118,88,120,103,85,88,68,53,82,105,119,83,108,54,107,90,66,116,108,69,54,100,112,90,81,74,79,107,121,72,88,86,106,74,89,80,48,90,97,87,81,61,61,60,47,80,85,66,76,73,67,75,69,89,62,60,47,68,65,84,65,62,60,77,83,68,82,77,95,83,73,71,78,65,84,85,82,69,95,86,65,76,85,69,62,74,70,67,114,72,108,89,97,57,105,43,103,102,51,53,65,122,74,85,66,119,97,105,75,87,107,72,76,80,73,71,115,67,49,85,73,68,99,102,112,114,43,108,99,97,43,117,47,97,51,103,120,80,81,61,61,60,47,77,83,68,82,77,95,83,73,71,78,65,84,85,82,69,95,86,65,76,85,69,62,60,47,67,69,82,84,73,70,73,67,65,84,69,62,60,67,69,82,84,73,70,73,67,65,84,69,32,116,121,112,101,61,34,65,85,84,72,79,82,73,90,65,84,73,79,78,34,62,60,68,65,84,65,62,60,83,69,67,85,82,73,84,89,76,69,86,69,76,62,50,48,48,48,60,47,83,69,67,85,82,73,84,89,76,69,86,69,76,62,60,65,85,84,72,95,73,68,62,49,55,49,60,47,65,85,84,72,95,73,68,62,60,80,85,66,76,73,67,75,69,89,62,119,83,100,75,122,121,70,72,85,69,80,47,90,72,54,110,43,88,87,77,57,81,78,85,107,109,120,65,106,83,111,122,107,68,110,119,118,102,113,56,74,65,70,115,43,114,77,106,114,121,101,88,67,119,61,61,60,47,80,85,66,76,73,67,75,69,89,62,60,47,68,65,84,65,62,60,77,83,68,82,77,95,83,73,71,78,65,84,85,82,69,95,86,65,76,85,69,62,108,98,99,70,67,55,55,101,85,80,74,120,74,101,76,47,79,80,99,47,52,71,81,97,107,103,85,101,101,97,78,116,65,52,105,90,65,121,89,97,121,109,79,103,73,68,114,76,70,75,78,67,77,65,61,61,60,47,77,83,68,82,77,95,83,73,71,78,65,84,85,82,69,95,86,65,76,85,69,62,60,47,67,69,82,84,73,70,73,67,65,84,69,62,60,67,69,82,84,73,70,73,67,65,84,69,32,116,121,112,101,61,34,65,85,84,72,79,82,73,90,65,84,73,79,78,95,82,79,79,84,34,62,60,68,65,84,65,62,60,65,85,84,72,95,73,68,62,49,60,47,65,85,84,72,95,73,68,62,60,80,85,66,76,73,67,75,69,89,62,97,49,116,51,104,120,114,103,33,113,98,79,103,107,116,110,98,89,97,69,69,105,52,116,101,67,115,101,33,103,122,54,82,118,84,80,117,67,33,122,105,122,75,74,108,112,85,55,120,111,100,117,83,119,61,61,60,47,80,85,66,76,73,67,75,69,89,62,60,47,68,65,84,65,62,60,77,83,68,82,77,95,83,73,71,78,65,84,85,82,69,95,86,65,76,85,69,62,51,119,120,108,53,100,122,50,111,48,73,101,80,49,79,89,120,106,120,66,43,119,100,109,88,108,48,81,99,82,107,57,47,90,120,112,72,72,79,88,52,117,69,53,56,107,110,107,78,90,111,113,81,65,61,61,60,47,77,83,68,82,77,95,83,73,71,78,65,84,85,82,69,95,86,65,76,85,69,62,60,47,67,69,82,84,73,70,73,67,65,84,69,62,60,47,68,69,86,67,69,82,84,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) +Property 0xd201:(read only) (type=0x0) Undefined + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-2700exr.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-2700exr.txt new file mode 100644 index 00000000..ae414b2b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-2700exr.txt @@ -0,0 +1,34 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: FinePix Z700EXR + Version: 1.00 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 3963617280 (3780 MB) + Free Space (Bytes): 3552477184 (3387 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 1% (1) +Property 0xd303:(read only) (type=0x2) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-exr80.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-exr80.txt new file mode 100644 index 00000000..2fb8cfbc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-exr80.txt @@ -0,0 +1,34 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: FinePix F80EXR + Version: 1.05 + Serial Number: 01234567890ABCDEF123456789ABCD +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 1015808000 (968 MB) + Free Space (Bytes): 547225600 (521 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 1% (1) +Property 0xd303:(read only) (type=0x2) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-f70exr.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-f70exr.txt new file mode 100644 index 00000000..76f1a774 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-f70exr.txt @@ -0,0 +1,29 @@ +Camera summary: + Manufacturer: FUJIFILM + Model: FinePix F70EXR + Version: 1.01 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + Vendor Extension ID: 0xe (1.0) + Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + store_10000001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 7969177600 (7600 MB) + Free Space (Bytes): 7459897344 (7114 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-a610.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-a610.txt new file mode 100644 index 00000000..641a4c43 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-a610.txt @@ -0,0 +1,87 @@ +lsusb 04cb:01d0 Fuji Photo Film Co., Ltd +gphoto2 Model USB PTP Class Camera Port usb:003,002 + +Summary +Camera summary: +Manufacturer: FUJIFILM +Model: FinePix A610 + Version: 1.00 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: External Memory + VolumeLabel: .. + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 523837440 (499 MB) + Free Space (Bytes): 523509760 (499 MB) + Free Space (Images): -1 + +Device Property Summary: +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 + + +Config +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: FUJIFILM +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: FinePix A610 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: fujifilm.co.jp: 1.0; +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 + + + +Error +Sorry your camera does not support generic capture +ERROR Could not capture image + +(-6 Unsupported operation) +For debugging messages, please use the --debug option. +Debugging messages may help finding a solution to your problem. +If you intend to send any error or debug messages to the gphoto +developer mailing list , please run +gphoto2 as follows: + + env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image + +Please make sure there is sufficient quoting around the arguments. + + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-hs10.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-hs10.txt new file mode 100644 index 00000000..c6948d36 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-hs10.txt @@ -0,0 +1,32 @@ +Résumé sur l'appareil : +Manufacturer: FUJIFILM +Model: FinePix HS10 HS11 + Version: Digital Camera FinePix HS10 HS11 Ver1.00 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0x6 (1.0) + +Capture Formats: +Display Formats: JPEG, JFIF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 8023703552 (7652 MB) + Free Space (Bytes): 7553679360 (7203 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 2% (2) +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-s4850.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-s4850.txt new file mode 100644 index 00000000..d99243e4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-s4850.txt @@ -0,0 +1,81 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: FinePix S4850 + Version: 1.00 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXWBNNNNN +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF, Unknown(b002), MS Wave +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Unknown(b002)/b002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 16004415488 (15263 MB) + Free Space (Bytes): 15817146368 (15084 MB) + Free Space (Images): 3852 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 3% (3) +Property 0xd303:(read only) (type=0x2) 1 +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXWBNNNNN +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: FUJIFILM +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: FinePix S4850 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: fujifilm.co.jp: 1.0; +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-s6500fd.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-s6500fd.txt new file mode 100644 index 00000000..d4aff850 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-s6500fd.txt @@ -0,0 +1,34 @@ +Device info: +Manufacturer: FUJIFILM + Model: FinePix S6500fd + device version: 1.0 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000e +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x101b + 0x900c + 0x900d +Events Supported: + 0x4002 + 0x4003 + 0x4009 +Device Properties Supported: + (none) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-t200.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-t200.txt new file mode 100644 index 00000000..9b416b37 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-t200.txt @@ -0,0 +1,34 @@ + Camera summary: +Manufacturer: FUJIFILM +Model: FinePix T200 + Version: Digital Camera FinePix T200 Ver1.00 + Serial Number: 592D36353531110728F1451UJ98841 +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 2030960640 (1936 MB) + Free Space (Bytes): 1286602752 (1227 MB) + Free Space (Images): 477 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 3% (3) +Property 0xd303:(read only) (type=0x2) 1 +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-t350.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-t350.txt new file mode 100644 index 00000000..04cc2ebe --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-t350.txt @@ -0,0 +1,34 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: FinePix T350 + Version: Digital Camera FinePix T350 Ver1.00 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 8060403712 (7687 MB) + Free Space (Bytes): 8056569856 (7683 MB) + Free Space (Images): 2270 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 3% (3) +Property 0xd303:(read only) (type=0x2) 1 +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-x-h1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-x-h1.txt new file mode 100644 index 00000000..f86facc4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-finepix-x-h1.txt @@ -0,0 +1,433 @@ +Device info: +Manufacturer: FUJIFILM + Model: X-H1 + device version: 1.10 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnFnn' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1018 (Terminate open capture) + 0x101b (Get partial object) + 0x101c (Initiate open capture) + 0x900c (Unknown PTP_OC) + 0x900d (Unknown PTP_OC) + 0x901d (Unknown PTP_OC) + 0x9801 (Get object properties supported) + 0x9802 (Get object property description) + 0x9803 (Get object property value) + 0x9805 (Get object property list) +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x400d + 0xc006 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5005 + 0x500a + 0x500b + 0x500c + 0x500e + 0x500f + 0x5011 + 0x5012 + 0x5015 + 0x5018 + 0x5019 + 0x501c + 0xd001 + 0xd002 + 0xd003 + 0xd004 + 0xd005 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b + 0xd00c + 0xd00d + 0xd00e + 0xd00f + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd107 + 0xd108 + 0xd109 + 0xd10a + 0xd10b + 0xd10c + 0xd10d + 0xd10e + 0xd10f + 0xd110 + 0xd111 + 0xd112 + 0xd113 + 0xd114 + 0xd115 + 0xd116 + 0xd117 + 0xd118 + 0xd119 + 0xd11a + 0xd11b + 0xd11c + 0xd11d + 0xd11e + 0xd11f + 0xd120 + 0xd121 + 0xd122 + 0xd123 + 0xd124 + 0xd125 + 0xd126 + 0xd127 + 0xd128 + 0xd129 + 0xd12a + 0xd12b + 0xd12c + 0xd12d + 0xd12e + 0xd12f + 0xd130 + 0xd131 + 0xd132 + 0xd133 + 0xd134 + 0xd135 + 0xd136 + 0xd137 + 0xd138 + 0xd139 + 0xd13a + 0xd13b + 0xd13c + 0xd13d + 0xd13e + 0xd13f + 0xd140 + 0xd141 + 0xd142 + 0xd143 + 0xd144 + 0xd145 + 0xd146 + 0xd147 + 0xd148 + 0xd149 + 0xd14a + 0xd14b + 0xd14c + 0xd14d + 0xd14e + 0xd14f + 0xd150 + 0xd151 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd157 + 0xd158 + 0xd159 + 0xd15a + 0xd15b + 0xd15c + 0xd15d + 0xd15e + 0xd15f + 0xd160 + 0xd161 + 0xd200 + 0xd201 + 0xd202 + 0xd203 + 0xd204 + 0xd205 + 0xd206 + 0xd207 + 0xd208 + 0xd209 + 0xd20a + 0xd20b + 0xd20c + 0xd20d + 0xd20e + 0xd20f + 0xd210 + 0xd211 + 0xd212 + 0xd213 + 0xd214 + 0xd215 + 0xd216 + 0xd217 + 0xd218 + 0xd219 + 0xd21a + 0xd21b + 0xd406 + 0xd407 + +Camera summary: +Manufacturer: FUJIFILM +Model: X-H1 + Version: 1.10 + Serial Number: nnnnnnnnnnnnnnnnnnnnnnnnnnnFnn +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: Defined Type JPEG Unknown(b103) +Display Formats: Defined Type, JPEG, Unknown(b103) +Supported MTP Object Properties: + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, No File Upload + Generic Image Capture, Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: Still + VolumeLabel: nnnnnnnnnnnnnnnnnnnnnnnnnnnnFnn + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (17592186044415 MB) + Free Space (Bytes): 18446744073709551615 (17592186044415 MB) + Free Space (Images): -1 +store_10000002: + StorageDescription: Live + VolumeLabel: nnnnnnnnnnnnnnnnnnnnnnnnnnnnFnn + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (17592186044415 MB) + Free Space (Bytes): 18446744073709551615 (17592186044415 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001): error 200a on query. +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3008x2000', + '3008x1688', + '2000x2000', + '4240x2832', + '4240x2384', + '2832x2832', + '6000x4000', + '6000x3376', + '4000x4000' + ] value: '6000x4000' +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,6,8,32769,32770,32771,32774,32775,32776,32777,32778] value: Daylight (4) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,32769,32770] value: 32769 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Multi-spot (3) +Flash Mode(0x500c): error 200a on query. +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,3,4,6] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x5) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600,51200,-1,-2,-3] value: ISO 200 (200) +Date & Time(0x5011):(readwrite) (type=0xffff) '20180708T113000' +Pre-Capture Delay(0x5012):(readwrite) (type=0x4) Enumeration [10000,2000,0] value: 0.0s (0) +Sharpness(0x5015):(readwrite) (type=0x3) Range [-40 - 40, step 10] value: 0 +Burst Number(0x5018): error 200a on query. +Burst Interval(0x5019): error 200a on query. +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [32769,32770,32771] value: 32770 +Property 0xd001:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16] value: 1 +Property 0xd002: error 200a on query. +Property 0xd003: error 200a on query. +Property 0xd004: error 200a on query. +Property 0xd005: error 200a on query. +Property 0xd007:(readwrite) (type=0x4) Enumeration [65535,100,200,400] value: 100 +Property 0xd008:(readwrite) (type=0x3) Range [-40 - 40, step 10] value: 0 +Property 0xd009: error 200a on query. +Property 0xd00a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00b:(readwrite) (type=0x3) Range [-9 - 9, step 1] value: 0 +Property 0xd00c:(readwrite) (type=0x3) Range [-9 - 9, step 1] value: 0 +Property 0xd00d: error 200a on query. +Property 0xd00e: error 200a on query. +Property 0xd00f: error 200a on query. +Property 0xd010: error 200a on query. +Property 0xd011: error 200a on query. +Property 0xd012: error 200a on query. +Property 0xd013: error 200a on query. +Property 0xd014: error 200a on query. +Property 0xd015: error 200a on query. +Property 0xd016: error 200a on query. +Property 0xd017:(readwrite) (type=0x4) Enumeration [2500,2550,2650,2700,2800,2850,2950,3000,3100,3200,3300,3400,3600,3700,3800,4000,4200,4300,4500,4800,5000,5300,5600,5900,6300,6700,7100,7700,8300,9100,10000] value: 10000 +Property 0xd018:(readwrite) (type=0x4) Enumeration [1,2,3,4,5] value: 1 +Property 0xd019: error 200a on query. +Property 0xd01a: error 200a on query. +Property 0xd01b:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd01c:(readwrite) (type=0x4) Enumeration [0,4096,8192,12288,16384,20480,24576,28672,32768] value: 8192 +Property 0xd100:(readwrite) (type=0xffff) '' +Secure Time(0xd101): error 200a on query. +Device Certificate(0xd102): error 200a on query. +Revocation Info(0xd103): error 200a on query. +Property 0xd104: error 200a on query. +Property 0xd105: error 200a on query. +Property 0xd106:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd107: error 200a on query. +Property 0xd108: error 200a on query. +Property 0xd109: error 200a on query. +Property 0xd10a:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd10b:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10c: error 200a on query. +Property 0xd10d: error 200a on query. +Property 0xd10e: error 200a on query. +Property 0xd10f: error 200a on query. +Property 0xd110: error 200a on query. +Property 0xd111: error 200a on query. +Property 0xd112:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd113: error 200a on query. +Property 0xd114: error 200a on query. +Property 0xd115: error 200a on query. +Property 0xd116: error 200a on query. +Property 0xd117: error 200a on query. +Property 0xd118: error 200a on query. +Property 0xd119: error 200a on query. +Property 0xd11a: error 200a on query. +Property 0xd11b: error 200a on query. +Property 0xd11c: error 200a on query. +Property 0xd11d: error 200a on query. +Property 0xd11e: error 200a on query. +Property 0xd11f: error 200a on query. +Property 0xd120: error 200a on query. +Property 0xd121: error 200a on query. +Property 0xd122: error 200a on query. +Property 0xd123: error 200a on query. +Property 0xd124: error 200a on query. +Property 0xd125: error 200a on query. +Property 0xd126: error 200a on query. +Property 0xd127: error 200a on query. +Property 0xd128: error 200a on query. +Property 0xd129: error 200a on query. +Property 0xd12a: error 200a on query. +Property 0xd12b: error 200a on query. +Property 0xd12c: error 200a on query. +Property 0xd12d: error 200a on query. +Property 0xd12e: error 200a on query. +Property 0xd12f: error 200a on query. +Property 0xd130: error 200a on query. +PlaysForSure ID(0xd131): error 200a on query. +Property 0xd132: error 200a on query. +Property 0xd133: error 200a on query. +Property 0xd134: error 200a on query. +Property 0xd135: error 200a on query. +Property 0xd136:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd137: error 200a on query. +Property 0xd138: error 200a on query. +Property 0xd139: error 200a on query. +Property 0xd13a: error 200a on query. +Property 0xd13b: error 200a on query. +Property 0xd13c: error 200a on query. +Property 0xd13d: error 200a on query. +Property 0xd13e: error 200a on query. +Property 0xd13f: error 200a on query. +Property 0xd140: error 200a on query. +Property 0xd141: error 200a on query. +Property 0xd142: error 200a on query. +Property 0xd143: error 200a on query. +Property 0xd144: error 200a on query. +Property 0xd145:(readwrite) (type=0xffff) '0000' +Property 0xd146: error 200a on query. +Property 0xd147: error 200a on query. +Property 0xd148: error 200a on query. +Property 0xd149: error 200a on query. +Property 0xd14a: error 200a on query. +Property 0xd14b: error 200a on query. +Property 0xd14c: error 200a on query. +Property 0xd14d: error 200a on query. +Property 0xd14e: error 200a on query. +Property 0xd14f: error 200a on query. +Property 0xd150: error 200a on query. +Property 0xd151: error 200a on query. +Property 0xd152: error 200a on query. +Property 0xd153:(read only) (type=0x4) 272 +Property 0xd154:(read only) (type=0x6) 125632512 +Property 0xd155:(read only) (type=0x6) 0 +Property 0xd157: error 200a on query. +Property 0xd158: error 200a on query. +Property 0xd159: error 200a on query. +Property 0xd15a: error 200a on query. +Property 0xd15b: error 200a on query. +Property 0xd15c: error 200a on query. +Property 0xd15d: error 200a on query. +Property 0xd15e: error 200a on query. +Property 0xd15f: error 200a on query. +Property 0xd160: error 200a on query. +Property 0xd161: error 200a on query. +Property 0xd200: error 200a on query. +Property 0xd201: not read out. +Property 0xd202: error 200a on query. +Property 0xd203: error 200a on query. +Property 0xd204: error 200a on query. +Property 0xd205: error 200a on query. +Property 0xd206: error 200a on query. +Property 0xd207:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd208:(readwrite) (type=0x4) Enumeration [260,512,4,772,1280,12,40960,6,36864,2,37120,1,37632,5] value: 772 +Property 0xd209:(read only) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd20a: error 200a on query. +Property 0xd20b:(readwrite) (type=0xffff) '' +Property 0xd20c:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 4 +Property 0xd20d:(read only) (type=0xffff) '0,16,123746560,9,0,16,123906048,9' +Property 0xd20e:(read only) (type=0x4) Range [0 - 1, step 1] value: 18 +Property 0xd20f: error 200a on query. +Property 0xd210: error 200a on query. +Property 0xd211:(read only) (type=0x4) Range [0 - 65535, step 1] value: 257 +Property 0xd212:(read only) (type=0x0) Undefined +Property 0xd213: error 200a on query. +Property 0xd214: error 200a on query. +Property 0xd215:(readwrite) (type=0xffff) '' +Property 0xd216:(readwrite) (type=0xffff) '' +Property 0xd217: error 200a on query. +Property 0xd218: error 200a on query. +Property 0xd219: error 200a on query. +Property 0xd21a: error 200a on query. +Property 0xd21b: error 200a on query. +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-gfx-100.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-gfx-100.txt new file mode 100644 index 00000000..c5004063 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-gfx-100.txt @@ -0,0 +1,896 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: GFX 100 + Version: 1.00 + Serial Number: nnnnnnnnnnnnnnnnnnAnnnnnnnnnnF +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: Defined Type JPEG Unknown(b103) +Display Formats: Defined Type, JPEG, Unknown(b103), TIFF +Supported MTP Object Properties: + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + TIFF/380d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, No File Upload + Generic Image Capture, Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: Still + VolumeLabel: 1593535303732190603A470201102AF + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (4294967295 MB) + Free Space (Bytes): 18446744073709551615 (4294967295 MB) + Free Space (Images): -1 +store_10000002: + StorageDescription: Live + VolumeLabel: 2593535303732190603A470201102AF + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (4294967295 MB) + Free Space (Bytes): 18446744073709551615 (4294967295 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001): error 200a on query. +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4000x2664', + '4000x2248', + '2992x2992', + '8256x5504', + '8256x4640', + '6192x6192', + '11648x7768', + '11648x6552', + '8736x8736', + '4000x3000', + '4000x1480', + '3744x3000', + '3504x3000', + '11648x8736', + '11648x4304', + '10928x8736', + '10192x8736', + '8256x6192', + '8256x3048', + '7744x6192', + '7232x6192', + '9552x6368' + ] value: '11648x8736' +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,6,8,32769,32770,32771,32774,32775,32776,32777,32778] value: Automatic (2) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,32769,32770] value: 32769 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Center-spot (4) +Flash Mode(0x500c): error 200a on query. +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,3,4,6] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x5) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,-1,-2,-3] value: ISO -3 (-3) +Date & Time(0x5011):(readwrite) (type=0xffff) '20191014T174000' +Pre-Capture Delay(0x5012):(readwrite) (type=0x4) Enumeration [10000,2000,0] value: 0.0s (0) +Sharpness(0x5015):(readwrite) (type=0x3) Range [-40 - 40, step 10] value: 30 +Burst Number(0x5018): error 200a on query. +Burst Interval(0x5019): error 200a on query. +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [32769,32770,32771] value: 32770 +Property 0xd001:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16] value: 3 +Property 0xd002: error 200a on query. +Property 0xd003: error 200a on query. +Property 0xd004: error 200a on query. +Property 0xd005: error 200a on query. +Property 0xd007:(readwrite) (type=0x4) Enumeration [65535,100,200,400] value: 65535 +Property 0xd008:(readwrite) (type=0x3) Range [-40 - 40, step 10] value: 0 +Property 0xd009: error 200a on query. +Property 0xd00a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00b:(readwrite) (type=0x3) Range [-9 - 9, step 1] value: -3 +Property 0xd00c:(readwrite) (type=0x3) Range [-9 - 9, step 1] value: 4 +Property 0xd00d: error 200a on query. +Property 0xd00e: error 200a on query. +Property 0xd00f: error 200a on query. +Property 0xd010: error 200a on query. +Property 0xd011: error 200a on query. +Property 0xd012: error 200a on query. +Property 0xd013: error 200a on query. +Property 0xd014: error 200a on query. +Property 0xd015: error 200a on query. +Property 0xd016: error 200a on query. +Property 0xd017:(readwrite) (type=0x4) Enumeration [2500,2550,2650,2700,2800,2850,2950,3000,3100,3200,3300,3400,3600,3700,3800,4000,4200,4300,4500,4800,5000,5300,5600,5900,6300,6700,7100,7700,8300,9100,10000] value: 2500 +Property 0xd018:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 6 +Property 0xd019: error 200a on query. +Property 0xd01a: error 200a on query. +Property 0xd01b:(readwrite) (type=0x4) Enumeration [1,2,4,5,6,7,8,9,10,11,12] value: 1 +Property 0xd01c:(readwrite) (type=0x4) Enumeration [0,4096,8192,12288,16384,20480,24576,28672,32768] value: 8192 +Property 0xd100:(readwrite) (type=0xffff) '' +Secure Time(0xd101): error 200a on query. +Device Certificate(0xd102): error 200a on query. +Revocation Info(0xd103): error 200a on query. +Property 0xd104:(readwrite) (type=0x3) Range [-90 - 90, step 10] value: 0 +Property 0xd105: error 200a on query. +Property 0xd106:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd107: error 200a on query. +Property 0xd108: error 200a on query. +Property 0xd109: error 200a on query. +Property 0xd10a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10b:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10c: error 200a on query. +Property 0xd10d: error 200a on query. +Property 0xd10e: error 200a on query. +Property 0xd10f: error 200a on query. +Property 0xd110: error 200a on query. +Property 0xd111: error 200a on query. +Property 0xd112: error 200a on query. +Property 0xd113: error 200a on query. +Property 0xd114: error 200a on query. +Property 0xd115: error 200a on query. +Property 0xd116: error 200a on query. +Property 0xd117: error 200a on query. +Property 0xd118: error 200a on query. +Property 0xd119: error 200a on query. +Property 0xd11a: error 200a on query. +Property 0xd11b: error 200a on query. +Property 0xd11c: error 200a on query. +Property 0xd11d: error 200a on query. +Property 0xd11e: error 200a on query. +Property 0xd11f: error 200a on query. +Property 0xd120: error 200a on query. +Property 0xd121: error 200a on query. +Property 0xd122: error 200a on query. +Property 0xd123: error 200a on query. +Property 0xd124: error 200a on query. +Property 0xd125: error 200a on query. +Property 0xd126: error 200a on query. +Property 0xd127: error 200a on query. +Property 0xd128: error 200a on query. +Property 0xd129: error 200a on query. +Property 0xd12a: error 200a on query. +Property 0xd12b: error 200a on query. +Property 0xd12c: error 200a on query. +Property 0xd12d: error 200a on query. +Property 0xd12e: error 200a on query. +Property 0xd12f: error 200a on query. +Property 0xd130: error 200a on query. +PlaysForSure ID(0xd131): error 200a on query. +Property 0xd132: error 200a on query. +Property 0xd133: error 200a on query. +Property 0xd134: error 200a on query. +Property 0xd135: error 200a on query. +Property 0xd136:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd137: error 200a on query. +Property 0xd138: error 200a on query. +Property 0xd139: error 200a on query. +Property 0xd13a: error 200a on query. +Property 0xd13b: error 200a on query. +Property 0xd13c: error 200a on query. +Property 0xd13d: error 200a on query. +Property 0xd13e: error 200a on query. +Property 0xd13f: error 200a on query. +Property 0xd140: error 200a on query. +Property 0xd141: error 200a on query. +Property 0xd142: error 200a on query. +Property 0xd143: error 200a on query. +Property 0xd144: error 200a on query. +Property 0xd145:(readwrite) (type=0xffff) '0000' +Property 0xd146: error 200a on query. +Property 0xd147: error 200a on query. +Property 0xd148: error 200a on query. +Property 0xd149: error 200a on query. +Property 0xd14a: error 200a on query. +Property 0xd14b: error 200a on query. +Property 0xd14c: error 200a on query. +Property 0xd14d: error 200a on query. +Property 0xd14e: error 200a on query. +Property 0xd14f: error 200a on query. +Property 0xd150: error 200a on query. +Property 0xd151: error 200a on query. +Property 0xd152: error 200a on query. +Property 0xd153:(read only) (type=0x4) 256 +Property 0xd154:(read only) (type=0x6) 67436544 +Property 0xd155:(read only) (type=0x6) 0 +Property 0xd157: error 200a on query. +Property 0xd158: error 200a on query. +Property 0xd159: error 200a on query. +Property 0xd15a: error 200a on query. +Property 0xd15b: error 200a on query. +Property 0xd15c: error 200a on query. +Property 0xd15d: error 200a on query. +Property 0xd15e: error 200a on query. +Property 0xd15f: error 200a on query. +Property 0xd160: error 200a on query. +Property 0xd161: error 200a on query. +Property 0xd200: error 200a on query. +Property 0xd201: not read out. +Property 0xd202: error 200a on query. +Property 0xd203: error 200a on query. +Property 0xd204: error 200a on query. +Property 0xd205: error 200a on query. +Property 0xd206: error 200a on query. +Property 0xd207:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd208:(readwrite) (type=0x4) Enumeration [260,512,4,772,1280,12,32768,40960,6,36864,2,37120,1,37632,5,14,37376] value: 772 +Property 0xd209:(read only) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd20a:(read only) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd20b:(readwrite) (type=0xffff) '' +Property 0xd20c:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 4 +Property 0xd20d:(read only) (type=0xffff) '0,16,42796800,9,0,16,52638720,9' +Property 0xd20e:(read only) (type=0x4) Range [0 - 1, step 1] value: 16 +Property 0xd20f: error 200a on query. +Property 0xd210: error 200a on query. +Property 0xd211:(read only) (type=0x4) Range [0 - 65535, step 1] value: 257 +Property 0xd212:(read only) (type=0x0) Undefined +Property 0xd213: error 200a on query. +Property 0xd214: error 200a on query. +Property 0xd215:(readwrite) (type=0xffff) 'COPYRIGHT' +Property 0xd216:(readwrite) (type=0xffff) '' +Property 0xd217: error 200a on query. +Property 0xd218: error 200a on query. +Property 0xd219: error 200a on query. +Property 0xd21a: error 200a on query. +Property 0xd21b: error 200a on query. +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 + +/main/actions/movie +Label: Movie Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/settings/datetime +Label: Camera Date and Time +Readonly: 0 +Type: DATE +Current: 1571046180 +Printable: Mon 14 Oct 2019 05:43:00 PM CST +Help: Use 'now' as the current time when setting. + +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: nnnnnnnnnnnnnnnnnnAnnnnnnnnnAF +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: FUJIFILM +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: GFX 100 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: 1.00 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: fujifilm.co.jp: 1.0; +END +/main/imgsettings/imagesize +Label: Image Size +Readonly: 0 +Type: RADIO +Current: 11648x8736 +Choice: 0 4000x2664 +Choice: 1 4000x2248 +Choice: 2 2992x2992 +Choice: 3 8256x5504 +Choice: 4 8256x4640 +Choice: 5 6192x6192 +Choice: 6 11648x7768 +Choice: 7 11648x6552 +Choice: 8 8736x8736 +Choice: 9 4000x3000 +Choice: 10 4000x1480 +Choice: 11 3744x3000 +Choice: 12 3504x3000 +Choice: 13 11648x8736 +Choice: 14 11648x4304 +Choice: 15 10928x8736 +Choice: 16 10192x8736 +Choice: 17 8256x6192 +Choice: 18 8256x3048 +Choice: 19 7744x6192 +Choice: 20 7232x6192 +Choice: 21 9552x6368 +END +/main/imgsettings/whitebalance +Label: WhiteBalance +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Tungsten +Choice: 3 Unknown value 0008 +Choice: 4 Unknown value 8001 +Choice: 5 Unknown value 8002 +Choice: 6 Unknown value 8003 +Choice: 7 Unknown value 8006 +Choice: 8 Unknown value 8007 +Choice: 9 Unknown value 8008 +Choice: 10 Unknown value 8009 +Choice: 11 Unknown value 800a +END +/main/capturesettings/focusmode +Label: Focus Mode +Readonly: 0 +Type: RADIO +Current: Unknown value 8001 +Choice: 0 Manual +Choice: 1 Unknown value 8001 +Choice: 2 Unknown value 8002 +END +/main/capturesettings/expprogram +Label: Exposure Program +Readonly: 0 +Type: RADIO +Current: A +Choice: 0 M +Choice: 1 A +Choice: 2 S +Choice: 3 Action +END +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Readonly: 0 +Type: RADIO +Current: Unknown value 8002 +Choice: 0 Unknown value 8001 +Choice: 1 Unknown value 8002 +Choice: 2 Unknown value 8003 +END +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Readonly: 0 +Type: RADIO +Current: Center Spot +Choice: 0 Average +Choice: 1 Center Weighted +Choice: 2 Multi Spot +Choice: 3 Center Spot +END +/main/capturesettings/capturedelay +Label: Capture Delay +Readonly: 0 +Type: RADIO +Current: 0.000s +Choice: 0 10.000s +Choice: 1 2.000s +Choice: 2 0.000s +END +/main/other/5003 +Label: Image Size +Readonly: 0 +Type: MENU +Current: 11648x8736 +Choice: 0 4000x2664 +Choice: 1 4000x2248 +Choice: 2 2992x2992 +Choice: 3 8256x5504 +Choice: 4 8256x4640 +Choice: 5 6192x6192 +Choice: 6 11648x7768 +Choice: 7 11648x6552 +Choice: 8 8736x8736 +Choice: 9 4000x3000 +Choice: 10 4000x1480 +Choice: 11 3744x3000 +Choice: 12 3504x3000 +Choice: 13 11648x8736 +Choice: 14 11648x4304 +Choice: 15 10928x8736 +Choice: 16 10192x8736 +Choice: 17 8256x6192 +Choice: 18 8256x3048 +Choice: 19 7744x6192 +Choice: 20 7232x6192 +Choice: 21 9552x6368 +END +/main/other/5005 +Label: White Balance +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 6 +Choice: 3 8 +Choice: 4 32769 +Choice: 5 32770 +Choice: 6 32771 +Choice: 7 32774 +Choice: 8 32775 +Choice: 9 32776 +Choice: 10 32777 +Choice: 11 32778 +END +/main/other/500a +Label: Focus Mode +Readonly: 0 +Type: MENU +Current: 32769 +Choice: 0 1 +Choice: 1 32769 +Choice: 2 32770 +END +/main/other/500b +Label: Exposure Metering Mode +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/500e +Label: Exposure Program Mode +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 3 +Choice: 2 4 +Choice: 3 6 +END +/main/other/500f +Label: Exposure Index (film speed ISO) +Readonly: 0 +Type: MENU +Current: -3 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 -1 +Choice: 23 -2 +Choice: 24 -3 +END +/main/other/5011 +Label: Date & Time +Readonly: 0 +Type: TEXT +Current: 20191014T174300 +END +/main/other/5012 +Label: Pre-Capture Delay +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 10000 +Choice: 1 2000 +Choice: 2 0 +END +/main/other/5015 +Label: Sharpness +Readonly: 0 +Type: RANGE +Current: 30 +Bottom: -40 +Top: 40 +Step: 10 +END +/main/other/501c +Label: Focus Metering Mode +Readonly: 0 +Type: MENU +Current: 32770 +Choice: 0 32769 +Choice: 1 32770 +Choice: 2 32771 +END +/main/other/d001 +Label: PTP Property 0xd001 +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +END +/main/other/d007 +Label: PTP Property 0xd007 +Readonly: 0 +Type: MENU +Current: 65535 +Choice: 0 65535 +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +END +/main/other/d008 +Label: PTP Property 0xd008 +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: -40 +Top: 40 +Step: 10 +END +/main/other/d00a +Label: PTP Property 0xd00a +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d00b +Label: PTP Property 0xd00b +Readonly: 0 +Type: MENU +Current: -3 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +END +/main/other/d00c +Label: PTP Property 0xd00c +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +END +/main/other/d017 +Label: PTP Property 0xd017 +Readonly: 0 +Type: MENU +Current: 2500 +Choice: 0 2500 +Choice: 1 2550 +Choice: 2 2650 +Choice: 3 2700 +Choice: 4 2800 +Choice: 5 2850 +Choice: 6 2950 +Choice: 7 3000 +Choice: 8 3100 +Choice: 9 3200 +Choice: 10 3300 +Choice: 11 3400 +Choice: 12 3600 +Choice: 13 3700 +Choice: 14 3800 +Choice: 15 4000 +Choice: 16 4200 +Choice: 17 4300 +Choice: 18 4500 +Choice: 19 4800 +Choice: 20 5000 +Choice: 21 5300 +Choice: 22 5600 +Choice: 23 5900 +Choice: 24 6300 +Choice: 25 6700 +Choice: 26 7100 +Choice: 27 7700 +Choice: 28 8300 +Choice: 29 9100 +Choice: 30 10000 +END +/main/other/d018 +Label: PTP Property 0xd018 +Readonly: 0 +Type: MENU +Current: 6 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +END +/main/other/d01b +Label: PTP Property 0xd01b +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +Choice: 6 8 +Choice: 7 9 +Choice: 8 10 +Choice: 9 11 +Choice: 10 12 +END +/main/other/d01c +Label: PTP Property 0xd01c +Readonly: 0 +Type: MENU +Current: 8192 +Choice: 0 0 +Choice: 1 4096 +Choice: 2 8192 +Choice: 3 12288 +Choice: 4 16384 +Choice: 5 20480 +Choice: 6 24576 +Choice: 7 28672 +Choice: 8 32768 +END +/main/other/d100 +Label: PTP Property 0xd100 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d104 +Label: PTP Property 0xd104 +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: -90 +Top: 90 +Step: 10 +END +/main/other/d106 +Label: PTP Property 0xd106 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d10a +Label: PTP Property 0xd10a +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d10b +Label: PTP Property 0xd10b +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d136 +Label: PTP Property 0xd136 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d145 +Label: PTP Property 0xd145 +Readonly: 0 +Type: TEXT +Current: 0000 +END +/main/other/d153 +Label: PTP Property 0xd153 +Readonly: 1 +Type: TEXT +Current: 256 +END +/main/other/d154 +Label: PTP Property 0xd154 +Readonly: 1 +Type: TEXT +Current: 67436544 +END +/main/other/d155 +Label: PTP Property 0xd155 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d201 +Label: PTP Property 0xd201 +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 4 +END +/main/other/d207 +Label: PTP Property 0xd207 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d208 +Label: PTP Property 0xd208 +Readonly: 0 +Type: MENU +Current: 772 +Choice: 0 260 +Choice: 1 512 +Choice: 2 4 +Choice: 3 772 +Choice: 4 1280 +Choice: 5 12 +Choice: 6 32768 +Choice: 7 40960 +Choice: 8 6 +Choice: 9 36864 +Choice: 10 2 +Choice: 11 37120 +Choice: 12 1 +Choice: 13 37632 +Choice: 14 5 +Choice: 15 14 +Choice: 16 37376 +END +/main/other/d209 +Label: PTP Property 0xd209 +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/d20a +Label: PTP Property 0xd20a +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d20b +Label: PTP Property 0xd20b +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d20c +Label: PTP Property 0xd20c +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/d20d +Label: PTP Property 0xd20d +Readonly: 1 +Type: TEXT +Current: 0,16,42796800,9,0,16,52638720,9 +END +/main/other/d20e +Label: PTP Property 0xd20e +Readonly: 1 +Type: MENU +Current: 16 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d211 +Label: PTP Property 0xd211 +Readonly: 1 +Type: RANGE +Current: 257 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/d212 +Label: PTP Property 0xd212 +Readonly: 1 +Type: TEXT +Current: (null) +END +/main/other/d215 +Label: PTP Property 0xd215 +Readonly: 0 +Type: TEXT +Current: COPYRIGHT +END +/main/other/d216 +Label: PTP Property 0xd216 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d406 +Label: Session Initiator Info +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d407 +Label: Perceived Device Type +Readonly: 1 +Type: TEXT +Current: 1 +END diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-gfx-50r.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-gfx-50r.txt new file mode 100644 index 00000000..ae94cf9e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-gfx-50r.txt @@ -0,0 +1,226 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: GFX 50R + Version: 1.00 + Serial Number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor Extension ID: 0xe (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: Defined Type JPEG Unknown(b103) +Display Formats: Defined Type, JPEG, Unknown(b103), TIFF + +Device Capabilities: + File Download, File Deletion, No File Upload + Generic Image Capture, Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: Still + VolumeLabel: 159353438363118121299A01011146B + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (17592186044415 MB) + Free Space (Bytes): 18446744073709551615 (17592186044415 MB) + Free Space (Images): -1 +store_10000002: + StorageDescription: Live + VolumeLabel: 259353438363118121299A01011146B + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (17592186044415 MB) + Free Space (Bytes): 18446744073709551615 (17592186044415 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001): error 200a on query. +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '8256x6192', + '8256x5504', + '8256x4640', + '6192x6192', + '8256x3048', + '7744x6192', + '7232x6192', + '4000x3000', + '4000x2664', + '4000x2248', + '2992x2992', + '4000x1480', + '3744x3000', + '3504x3000', + '6768x4512' + ] value: '8256x6192' +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,6,8,32769,32770,32771,32774,32775,32776,32777,32778] value: 32775 +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,32769,32770] value: 32769 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Multi-spot (3) +Flash Mode(0x500c): error 200a on query. +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,3,4,6] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x5) Enumeration [50,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600,51200,102400,-1,-2,-3] value: ISO 400 (400) +Date & Time(0x5011):(readwrite) (type=0xffff) '20190130T112800' +Pre-Capture Delay(0x5012):(readwrite) (type=0x4) Enumeration [10000,2000,0] value: 0.0s (0) +Sharpness(0x5015):(readwrite) (type=0x3) Range [-40 - 40, step 10] value: 0 +Burst Number(0x5018): error 200a on query. +Burst Interval(0x5019): error 200a on query. +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [32769,32770,32771] value: 32769 +Property 0xd001:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] value: 1 +Property 0xd002: error 200a on query. +Property 0xd003: error 200a on query. +Property 0xd004: error 200a on query. +Property 0xd005: error 200a on query. +Property 0xd007:(readwrite) (type=0x4) Enumeration [65535,100,200,400] value: 100 +Property 0xd008:(readwrite) (type=0x3) Range [-40 - 40, step 10] value: 0 +Property 0xd009: error 200a on query. +Property 0xd00a:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd00b:(readwrite) (type=0x3) Range [-9 - 9, step 1] value: 0 +Property 0xd00c:(readwrite) (type=0x3) Range [-9 - 9, step 1] value: 0 +Property 0xd00d: error 200a on query. +Property 0xd00e: error 200a on query. +Property 0xd00f: error 200a on query. +Property 0xd010: error 200a on query. +Property 0xd011: error 200a on query. +Property 0xd012: error 200a on query. +Property 0xd013: error 200a on query. +Property 0xd014: error 200a on query. +Property 0xd015: error 200a on query. +Property 0xd016: error 200a on query. +Color Temperature(0xd017):(readwrite) (type=0x4) Enumeration [2500,2550,2650,2700,2800,2850,2950,3000,3100,3200,3300,3400,3600,3700,3800,4000,4200,4300,4500,4800,5000,5300,5600,5900,6300,6700,7100,7700,8300,9100,10000] value: 5000 +Quality(0xd018):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 4 +Property 0xd019: error 200a on query. +Property 0xd01a: error 200a on query. +Property 0xd01b:(readwrite) (type=0x4) Enumeration [1,2,4,5,6,7,8,9,10] value: 1 +Property 0xd01c:(readwrite) (type=0x4) Enumeration [0,4096,8192,12288,16384,20480,24576,28672,32768] value: 8192 +Property 0xd100:(readwrite) (type=0xffff) '' +Property 0xd101: error 200a on query. +Property 0xd102: error 200a on query. +Property 0xd103: error 200a on query. +Property 0xd104: error 200a on query. +Property 0xd105: error 200a on query. +Property 0xd106:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd107: error 200a on query. +Property 0xd108: error 200a on query. +Property 0xd109: error 200a on query. +Property 0xd10a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10b:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10c: error 200a on query. +Property 0xd10d: error 200a on query. +Property 0xd10e: error 200a on query. +Property 0xd10f: error 200a on query. +Property 0xd110: error 200a on query. +Property 0xd111: error 200a on query. +Property 0xd112: error 200a on query. +Property 0xd113: error 200a on query. +Property 0xd114: error 200a on query. +Property 0xd115: error 200a on query. +Property 0xd116: error 200a on query. +Property 0xd117: error 200a on query. +Property 0xd118: error 200a on query. +Property 0xd119: error 200a on query. +Property 0xd11a: error 200a on query. +Property 0xd11b: error 200a on query. +Property 0xd11c: error 200a on query. +Property 0xd11d: error 200a on query. +Property 0xd11e: error 200a on query. +Property 0xd11f: error 200a on query. +Property 0xd120: error 200a on query. +Property 0xd121: error 200a on query. +Property 0xd122: error 200a on query. +Property 0xd123: error 200a on query. +Property 0xd124: error 200a on query. +Property 0xd125: error 200a on query. +Property 0xd126: error 200a on query. +Property 0xd127: error 200a on query. +Property 0xd128: error 200a on query. +Property 0xd129: error 200a on query. +Property 0xd12a: error 200a on query. +Property 0xd12b: error 200a on query. +Property 0xd12c: error 200a on query. +Property 0xd12d: error 200a on query. +Property 0xd12e: error 200a on query. +Property 0xd12f: error 200a on query. +Property 0xd130: error 200a on query. +Property 0xd131: error 200a on query. +Property 0xd132: error 200a on query. +Property 0xd133: error 200a on query. +Property 0xd134: error 200a on query. +Property 0xd135: error 200a on query. +Property 0xd136:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd137: error 200a on query. +Property 0xd138: error 200a on query. +Property 0xd139: error 200a on query. +Property 0xd13a: error 200a on query. +Property 0xd13b: error 200a on query. +Property 0xd13c: error 200a on query. +Property 0xd13d: error 200a on query. +Property 0xd13e: error 200a on query. +Property 0xd13f: error 200a on query. +Property 0xd140: error 200a on query. +Property 0xd141: error 200a on query. +Property 0xd142: error 200a on query. +Property 0xd143: error 200a on query. +Property 0xd144: error 200a on query. +Property 0xd145:(readwrite) (type=0xffff) '0000' +Property 0xd146: error 200a on query. +Property 0xd147: error 200a on query. +Property 0xd148: error 200a on query. +Property 0xd149: error 200a on query. +Property 0xd14a: error 200a on query. +Property 0xd14b: error 200a on query. +Property 0xd14c: error 200a on query. +Property 0xd14d: error 200a on query. +Property 0xd14e: error 200a on query. +Property 0xd14f: error 200a on query. +Property 0xd150: error 200a on query. +Property 0xd151: error 200a on query. +Property 0xd152: error 200a on query. +Property 0xd153:(read only) (type=0x4) 256 +Property 0xd154:(read only) (type=0x6) 7274496 +Property 0xd155:(read only) (type=0x6) 0 +Property 0xd157: error 200a on query. +Property 0xd158: error 200a on query. +Property 0xd159: error 200a on query. +Property 0xd15a: error 200a on query. +Property 0xd15b: error 200a on query. +Property 0xd15c: error 200a on query. +Property 0xd15d: error 200a on query. +Property 0xd15e: error 200a on query. +Property 0xd15f: error 200a on query. +Property 0xd160: error 200a on query. +Property 0xd161: error 200a on query. +Property 0xd200: error 200a on query. +Property 0xd201:(readwrite) (type=0x4) Enumeration [4] value: 4 +Property 0xd202: error 200a on query. +Property 0xd203: error 200a on query. +Property 0xd204: error 200a on query. +Property 0xd205: error 200a on query. +Property 0xd206: error 200a on query. +Property 0xd207:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd208:(readwrite) (type=0x4) Enumeration [260,512,4,772,1280,12,40960,6,36864,2,37120,1,37632,5,14] value: 772 +Property 0xd209:(read only) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd20a: error 200a on query. +Property 0xd20b:(readwrite) (type=0xffff) '' +Property 0xd20c:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 4 +Property 0xd20d:(read only) (type=0xffff) '0,0,0,0,0,0,0,0' +Property 0xd20e:(read only) (type=0x4) Range [0 - 1, step 1] value: 6 +Property 0xd20f: error 200a on query. +Property 0xd210: error 200a on query. +Property 0xd211:(read only) (type=0x4) Range [0 - 65535, step 1] value: 257 +Property 0xd212: error 201b on query. +Property 0xd213: error 200a on query. +Property 0xd214: error 200a on query. +Property 0xd215:(readwrite) (type=0xffff) '' +Property 0xd216:(readwrite) (type=0xffff) '' +Property 0xd217: error 200a on query. +Property 0xd218: error 200a on query. +Property 0xd219: error 200a on query. +Property 0xd21a: error 200a on query. +Property 0xd21b: error 200a on query. +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd407:(read only) (type=0x6) 1 +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [244,307,387,488,615,775,976,1230,1550,1953,2460,3100,3906,4921,6200,7812,9843,12401,15625,19686,24803,31250,39372,49606,62500,78745,99212,125000,157490,198425,250000,314980,396850,500000,629960,793700,1000000,1259921,1587401,2000000,2519842,3174802,4000000,5039684,6349604,8000000,10079368,12699208,16000000,20158736,25398416,32000000,40317473,50796833,64000000,64000030,64000060,64000090,64000120,64000150,64000180,4294967295] value: 0.62 sec (62500) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [120,140,160,180,200,220,250,280,320,360,400,450,500,560,640,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/2.8 (280) +Property 0xd38c:(readwrite) (type=0x4) Range [1 - 1, step 1] value: 1 +Property 0xd171:(readwrite) (type=0x3) Enumeration [0,0,0,0,0,0] value: 0 +Property 0xd21c:(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11] value: 3 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-hs20exr.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-hs20exr.txt new file mode 100644 index 00000000..5fc43bd5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-hs20exr.txt @@ -0,0 +1,49 @@ +Device info: +Manufacturer: FUJIFILM + Model: FinePix HS20EXR + device version: 1.02 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x900c + 0x900d + 0x901d + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 +Device Properties Supported: + 0x5001 + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-s5pro.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-s5pro.txt new file mode 100644 index 00000000..8b0ef4f2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-s5pro.txt @@ -0,0 +1,2324 @@ +Device info: +Manufacturer: FUJIFILM + Model: FinePix S5Pro + device version: 1.18 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x1018 + 0x101b + 0x101c + 0x900c + 0x900d + 0x901d + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x400d + 0xc006 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5005 + 0x500a + 0x500b + 0x500c + 0x500e + 0x500f + 0x5011 + 0x5012 + 0x5015 + 0x5018 + 0x5019 + 0x501c + 0xd001 + 0xd002 + 0xd003 + 0xd004 + 0xd005 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b + 0xd00c + 0xd00d + 0xd00e + 0xd00f + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd107 + 0xd108 + 0xd109 + 0xd10a + 0xd10b + 0xd10c + 0xd10d + 0xd10e + 0xd10f + 0xd110 + 0xd111 + 0xd112 + 0xd113 + 0xd114 + 0xd115 + 0xd116 + 0xd117 + 0xd118 + 0xd119 + 0xd11a + 0xd11b + 0xd11c + 0xd11d + 0xd11e + 0xd11f + 0xd120 + 0xd121 + 0xd122 + 0xd123 + 0xd124 + 0xd125 + 0xd126 + 0xd127 + 0xd128 + 0xd129 + 0xd12a + 0xd12b + 0xd12c + 0xd12d + 0xd12e + 0xd12f + 0xd130 + 0xd131 + 0xd132 + 0xd133 + 0xd134 + 0xd135 + 0xd136 + 0xd137 + 0xd138 + 0xd139 + 0xd13a + 0xd13b + 0xd13c + 0xd13d + 0xd13e + 0xd13f + 0xd140 + 0xd141 + 0xd142 + 0xd143 + 0xd144 + 0xd145 + 0xd146 + 0xd147 + 0xd148 + 0xd149 + 0xd14a + 0xd14b + 0xd14c + 0xd14d + 0xd14e + 0xd14f + 0xd150 + 0xd151 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd157 + 0xd158 + 0xd159 + 0xd15a + 0xd15b + 0xd15c + 0xd15d + 0xd15e + 0xd15f + 0xd160 + 0xd161 + 0xd200 + 0xd201 + 0xd202 + 0xd203 + 0xd204 + 0xd205 + 0xd206 + 0xd207 + 0xd208 + 0xd209 + 0xd20a + 0xd20b + 0xd20c + 0xd20d + 0xd20e + 0xd20f + 0xd210 + 0xd211 + 0xd212 + 0xd213 + 0xd214 + 0xd215 + 0xd216 + 0xd217 + 0xd218 + 0xd219 + 0xd21a + 0xd21b + 0xd406 + 0xd407 + + +Camera summary: +Manufacturer: FUJIFILM +Model: FinePix S5Pro + Version: 1.18 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xe (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: Defined Type JPEG Unknown(b103) +Display Formats: Defined Type, JPEG, Unknown(b103) + +Device Capabilities: + File Download, File Deletion, No File Upload + Generic Image Capture, Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: Still + VolumeLabel: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (4294967295 MB) + Free Space (Bytes): 18446744073709551615 (4294967295 MB) + Free Space (Images): -1 +store_10000002: + StorageDescription: Live + VolumeLabel: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (4294967295 MB) + Free Space (Bytes): 18446744073709551615 (4294967295 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x4) Range [0 - 100, step 1] value: 39% (39) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '2304x1536', + '3024x2016', + '4256x2848' + ] value: '4256x2848' +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,6,32769,32770,32771,32772,32773,4,7,32774,32775,32776,32777,32778,32779,32780] value: Automatic (2) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32769,32770] value: 32769 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [3,4,32769] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [32769,32770,32771,32772,32773,32774] value: 32769 +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,3,4,5] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200] value: ISO 320 (320) +Date & Time(0x5011):(readwrite) (type=0xffff) '20091028T234500' +Pre-Capture Delay(0x5012):(readwrite) (type=0x4) Enumeration [20000,10000,5000,2000] value: 2000 +Sharpness(0x5015):(readwrite) (type=0x3) Range [-2 - 2, step 1] value: 0 +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 20, step 1] value: 1 +Burst Interval(0x5019):(readwrite) (type=0x4) Enumeration [500,1000] value: 500 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [32769,32770,32771,32772] value: 32769 +Property 0xd001:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6] value: 1 +Property 0xd002:(readwrite) (type=0x4) Enumeration [1,2,3,4,5] value: 1 +Property 0xd003:(readwrite) (type=0x3) Range [-2 - 2, step 1] value: 0 +Property 0xd004:(readwrite) (type=0x3) Range [-2 - 2, step 1] value: 0 +Property 0xd005:(readwrite) (type=0x3) Range [-2 - 2, step 1] value: 0 +Property 0xd007:(readwrite) (type=0x4) Enumeration [65535,100,130,170,230,300,400] value: 65535 +Property 0xd008:(readwrite) (type=0x3) Range [-3 - 2, step 1] value: 0 +Property 0xd009:(readwrite) (type=0x3) Range [-2 - 2, step 1] value: 0 +Property 0xd00a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00b:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd00c:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd00d:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd00e:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd00f:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd010:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd011:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd012:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd013:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd014:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd015:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd016:(readwrite) (type=0x3) Range [-3 - 3, step 1] value: 0 +Property 0xd017:(readwrite) (type=0x4) Enumeration [2500,2550,2650,2700,2800,2850,2950,3000,3100,3200,3300,3400,3600,3700,3800,4000,4200,4300,4500,4800,5000,5300,5600,5900,6300,6700,7100,7700,8300,9100,10000] value: 5600 +Property 0xd018:(readwrite) (type=0x4) Enumeration [1,2,3,4,5] value: 4 +Property 0xd019:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd01a:(readwrite) (type=0x4) Range [1 - 27, step 0] value: 0 +Property 0xd01b:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd01c:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd100:(readwrite) (type=0xffff) '' +Property 0xd101:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 4 +Property 0xd102:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd103:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 4 +Property 0xd104:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd105:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd106:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd107:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd108:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd109:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10a:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd10b:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10c:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10d:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd10e:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 2 +Property 0xd10f:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd110:(readwrite) (type=0x4) Enumeration [1,2,3] value: 3 +Property 0xd111:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd112:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd113:(readwrite) (type=0x4) Enumeration [1,2,3] value: 3 +Property 0xd114:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd115:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd116:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 2 +Property 0xd117:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14] value: 7 +Property 0xd118:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd119:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd11a:(readwrite) (type=0x4) Enumeration [1,2,3] value: 3 +Property 0xd11b:(readwrite) (type=0x4) Enumeration [1,2,3,4,5] value: 4 +Property 0xd11c:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13] value: 7 +Property 0xd11d:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13] value: 7 +Property 0xd11e:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13] value: 7 +Property 0xd11f:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8] value: 1 +Property 0xd120:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12] value: 1 +Property 0xd121:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd122:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6] value: 1 +Property 0xd123:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6] value: 4 +Property 0xd124:(readwrite) (type=0x4) Enumeration [2,3,4,5,6,7,8,9,10,15,20,25,30,35] value: 10 +Property 0xd125:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,20,30,40,50] value: 10 +Property 0xd126:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd127:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] value: 10 +Property 0xd128:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd129:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] value: 10 +Property 0xd12a:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd12b:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] value: 10 +Property 0xd12c:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd12d:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd12e:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd12f:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd130:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd131:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd132:(readwrite) (type=0x4) Enumeration [1,2,3,4,5] value: 4 +Property 0xd133:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd134:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd135:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10] value: 1 +Property 0xd136:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd137:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd138:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd139:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd13a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd13b:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd13c:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd13d:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd13e:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd13f:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd140:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd141:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd142:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd143:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd144:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd145:(readwrite) (type=0xffff) '0000' +Property 0xd146:(readwrite) (type=0xffff) '0' +Property 0xd147:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd148:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd149:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd14a:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd14b:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd14c:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41] value: 30 +Property 0xd14d:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23] value: 16 +Property 0xd14e:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd14f:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6] value: 1 +Property 0xd150:(read only) (type=0x6) 12 +Property 0xd151:(read only) (type=0x4) Range [0 - 4, step 1] value: 2 +Property 0xd152:(read only) (type=0x4) 259 +Property 0xd153:(read only) (type=0x4) 274 +Property 0xd154:(read only) (type=0x6) 1660 +Property 0xd155:(read only) (type=0x6) 0 +Property 0xd157:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd158:(readwrite) (type=0x3) Range [-23 - 23, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x4) Enumeration [3840,7680,11520] value: 0 +Property 0xd15a:(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5,6,7,8] value: 5 +Property 0xd15b:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd15c:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd15d:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd15e:(readwrite) (type=0x4) Enumeration [1] value: 1 +Property 0xd15f:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd160:(readwrite) (type=0x4) Range [36 - 3000, step 1] value: 72 +Property 0xd161:(readwrite) (type=0x4) Enumeration [1,2,3] value: 2 +Property 0xd200:(readwrite) (type=0x3) Range [-18 - 6, step 1] value: 0 +Property 0xd201:(readwrite) (type=0x4) Enumeration [1,2,3,4,5] value: 1 +Property 0xd202:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd203:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8] value: 4 +Property 0xd204:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 4 +Property 0xd205:(readwrite) (type=0x3) Range [-30 - 30, step 1] value: 0 +Property 0xd206:(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11] value: 3 +Property 0xd207:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd208:(readwrite) (type=0x4) Enumeration [1,2,3,4,5] value: 0 +Property 0xd209:(read only) (type=0x4) Enumeration [1,2,3] value: 3 +Property 0xd20a:(read only) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd20b:(readwrite) (type=0xffff) '' +Property 0xd20c:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd20d:(read only) (type=0x4) Range [0 - 65535, step 0] value: 165 +Property 0xd20e:(read only) (type=0x4) Range [0 - 20, step 1] value: 6 +Property 0xd20f:(read only) (type=0x6) 0 +Property 0xd210:(read only) (type=0x4) 274 +Property 0xd211:(read only) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 1 +Property 0xd212:(read only) (type=0x0) Undefined +Property 0xd213:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd214:(Unknown) (type=0xc000) a[0] +Property 0xd215:(readwrite) (type=0xffff) '' +Property 0xd216:(readwrite) (type=0xffff) '' +Property 0xd217:(readwrite) (type=0x4) Enumeration [1] value: 1 +Property 0xd218:(readwrite) (type=0x4) Range [22 - 54, step 1] value: 22 +Property 0xd219:(readwrite) (type=0x3) Range [-31 - 78, step 3] value: -39 +Property 0xd21a:(readwrite) (type=0x3) Range [-30 - 30, step 1] value: 0 +Property 0xd21b:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd407:(read only) (type=0x6) 1 + + + + + + + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1256336400 +Printable: Sat 24 Oct 2009 12:20:00 AM CEST +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 4256x2848 +Choice: 0 2304x1536 +Choice: 1 3024x2016 +Choice: 2 4256x2848 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 400 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Tungsten +Choice: 2 Unknown value 8001 +Choice: 3 Unknown value 8002 +Choice: 4 Unknown value 8003 +Choice: 5 Unknown value 8004 +Choice: 6 Unknown value 8005 +Choice: 7 Daylight +Choice: 8 Flash +Choice: 9 Unknown value 8006 +Choice: 10 Unknown value 8007 +Choice: 11 Unknown value 8008 +Choice: 12 Unknown value 8009 +Choice: 13 Unknown value 800a +Choice: 14 Unknown value 800b +Choice: 15 Unknown value 800c +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Unknown value 8001 +Choice: 0 Manual +Choice: 1 Unknown value 8001 +Choice: 2 Unknown value 8002 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: S +Choice: 0 M +Choice: 1 A +Choice: 2 S +Choice: 3 Creative +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Unknown value 8001 +Choice: 0 Unknown value 8001 +Choice: 1 Unknown value 8002 +Choice: 2 Unknown value 8003 +Choice: 3 Unknown value 8004 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Multi Spot +Choice: 1 Center Spot +Choice: 2 Unknown value 8001 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Unknown value 8001 +Choice: 0 Unknown value 8001 +Choice: 1 Unknown value 8002 +Choice: 2 Unknown value 8003 +Choice: 3 Unknown value 8004 +Choice: 4 Unknown value 8005 +Choice: 5 Unknown value 8006 +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 20 +Step: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 4256x2848 +Choice: 0 2304x1536 +Choice: 1 3024x2016 +Choice: 2 4256x2848 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 6 +Choice: 2 32769 +Choice: 3 32770 +Choice: 4 32771 +Choice: 5 32772 +Choice: 6 32773 +Choice: 7 4 +Choice: 8 7 +Choice: 9 32774 +Choice: 10 32775 +Choice: 11 32776 +Choice: 12 32777 +Choice: 13 32778 +Choice: 14 32779 +Choice: 15 32780 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32769 +Choice: 0 1 +Choice: 1 32769 +Choice: 2 32770 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 3 +Choice: 1 4 +Choice: 2 32769 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32769 +Choice: 0 32769 +Choice: 1 32770 +Choice: 2 32771 +Choice: 3 32772 +Choice: 4 32773 +Choice: 5 32774 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 400 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20091023T232000 +/main/other/5012 +Label: Pre-Capture Delay +Type: MENU +Current: 5000 +Choice: 0 20000 +Choice: 1 10000 +Choice: 2 5000 +Choice: 3 2000 +/main/other/5015 +Label: Sharpness +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/5019 +Label: Burst Interval +Type: MENU +Current: 500 +Choice: 0 500 +Choice: 1 1000 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32769 +Choice: 0 32769 +Choice: 1 32770 +Choice: 2 32771 +Choice: 3 32772 +/main/other/d001 +Label: PTP Property 0xd001 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d002 +Label: PTP Property 0xd002 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d003 +Label: PTP Property 0xd003 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d004 +Label: PTP Property 0xd004 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d005 +Label: PTP Property 0xd005 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d007 +Label: PTP Property 0xd007 +Type: MENU +Current: 65535 +Choice: 0 65535 +Choice: 1 100 +Choice: 2 130 +Choice: 3 170 +Choice: 4 230 +Choice: 5 300 +Choice: 6 400 +/main/other/d008 +Label: PTP Property 0xd008 +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +/main/other/d009 +Label: PTP Property 0xd009 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d00a +Label: PTP Property 0xd00a +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d00b +Label: PTP Property 0xd00b +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d00c +Label: PTP Property 0xd00c +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d00d +Label: PTP Property 0xd00d +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d00e +Label: PTP Property 0xd00e +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d00f +Label: PTP Property 0xd00f +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d010 +Label: PTP Property 0xd010 +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d011 +Label: PTP Property 0xd011 +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d012 +Label: PTP Property 0xd012 +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d013 +Label: PTP Property 0xd013 +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d014 +Label: PTP Property 0xd014 +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d015 +Label: PTP Property 0xd015 +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d016 +Label: PTP Property 0xd016 +Type: MENU +Current: 0 +Choice: 0 -3 +Choice: 1 -2 +Choice: 2 -1 +Choice: 3 0 +Choice: 4 1 +Choice: 5 2 +Choice: 6 3 +/main/other/d017 +Label: PTP Property 0xd017 +Type: MENU +Current: 5600 +Choice: 0 2500 +Choice: 1 2550 +Choice: 2 2650 +Choice: 3 2700 +Choice: 4 2800 +Choice: 5 2850 +Choice: 6 2950 +Choice: 7 3000 +Choice: 8 3100 +Choice: 9 3200 +Choice: 10 3300 +Choice: 11 3400 +Choice: 12 3600 +Choice: 13 3700 +Choice: 14 3800 +Choice: 15 4000 +Choice: 16 4200 +Choice: 17 4300 +Choice: 18 4500 +Choice: 19 4800 +Choice: 20 5000 +Choice: 21 5300 +Choice: 22 5600 +Choice: 23 5900 +Choice: 24 6300 +Choice: 25 6700 +Choice: 26 7100 +Choice: 27 7700 +Choice: 28 8300 +Choice: 29 9100 +Choice: 30 10000 +/main/other/d018 +Label: PTP Property 0xd018 +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d019 +Label: PTP Property 0xd019 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d01a +Label: PTP Property 0xd01a +Type: RANGE +Current: 0 +Bottom: 1 +Top: 27 +Step: 0 +/main/other/d01b +Label: PTP Property 0xd01b +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d01c +Label: PTP Property 0xd01c +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d100 +Label: PTP Property 0xd100 +Type: TEXT +Current: +/main/other/d101 +Label: Secure Time +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d102 +Label: Device Certificate +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d103 +Label: Revocation Info +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d104 +Label: PTP Property 0xd104 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d105 +Label: PTP Property 0xd105 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d106 +Label: PTP Property 0xd106 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d107 +Label: PTP Property 0xd107 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d108 +Label: PTP Property 0xd108 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d109 +Label: PTP Property 0xd109 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d10a +Label: PTP Property 0xd10a +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d10b +Label: PTP Property 0xd10b +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d10c +Label: PTP Property 0xd10c +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d10d +Label: PTP Property 0xd10d +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d10e +Label: PTP Property 0xd10e +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d10f +Label: PTP Property 0xd10f +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d110 +Label: PTP Property 0xd110 +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d111 +Label: PTP Property 0xd111 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d112 +Label: PTP Property 0xd112 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d113 +Label: PTP Property 0xd113 +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d114 +Label: PTP Property 0xd114 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d115 +Label: PTP Property 0xd115 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d116 +Label: PTP Property 0xd116 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d117 +Label: PTP Property 0xd117 +Type: MENU +Current: 7 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +/main/other/d118 +Label: PTP Property 0xd118 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d119 +Label: PTP Property 0xd119 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d11a +Label: PTP Property 0xd11a +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d11b +Label: PTP Property 0xd11b +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d11c +Label: PTP Property 0xd11c +Type: MENU +Current: 7 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +/main/other/d11d +Label: PTP Property 0xd11d +Type: MENU +Current: 7 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +/main/other/d11e +Label: PTP Property 0xd11e +Type: MENU +Current: 7 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +/main/other/d11f +Label: PTP Property 0xd11f +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +/main/other/d120 +Label: PTP Property 0xd120 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +/main/other/d121 +Label: PTP Property 0xd121 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d122 +Label: PTP Property 0xd122 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d123 +Label: PTP Property 0xd123 +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d124 +Label: PTP Property 0xd124 +Type: MENU +Current: 10 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +Choice: 6 8 +Choice: 7 9 +Choice: 8 10 +Choice: 9 15 +Choice: 10 20 +Choice: 11 25 +Choice: 12 30 +Choice: 13 35 +/main/other/d125 +Label: PTP Property 0xd125 +Type: MENU +Current: 10 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 20 +Choice: 11 30 +Choice: 12 40 +Choice: 13 50 +/main/other/d126 +Label: PTP Property 0xd126 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d127 +Label: PTP Property 0xd127 +Type: MENU +Current: 10 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +/main/other/d128 +Label: PTP Property 0xd128 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d129 +Label: PTP Property 0xd129 +Type: MENU +Current: 10 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +/main/other/d12a +Label: PTP Property 0xd12a +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d12b +Label: PTP Property 0xd12b +Type: MENU +Current: 10 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +/main/other/d12c +Label: PTP Property 0xd12c +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d12d +Label: PTP Property 0xd12d +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d12e +Label: PTP Property 0xd12e +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d12f +Label: PTP Property 0xd12f +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d130 +Label: PTP Property 0xd130 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d131 +Label: PlaysForSure ID +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d132 +Label: PTP Property 0xd132 +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d133 +Label: PTP Property 0xd133 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d134 +Label: PTP Property 0xd134 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d135 +Label: PTP Property 0xd135 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +/main/other/d136 +Label: PTP Property 0xd136 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d137 +Label: PTP Property 0xd137 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d138 +Label: PTP Property 0xd138 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d139 +Label: PTP Property 0xd139 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d13a +Label: PTP Property 0xd13a +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d13b +Label: PTP Property 0xd13b +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d13c +Label: PTP Property 0xd13c +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d13d +Label: PTP Property 0xd13d +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d13e +Label: PTP Property 0xd13e +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d13f +Label: PTP Property 0xd13f +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d140 +Label: PTP Property 0xd140 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d141 +Label: PTP Property 0xd141 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d142 +Label: PTP Property 0xd142 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d143 +Label: PTP Property 0xd143 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d144 +Label: PTP Property 0xd144 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d145 +Label: PTP Property 0xd145 +Type: TEXT +Current: 0000 +/main/other/d146 +Label: PTP Property 0xd146 +Type: TEXT +Current: 0 +/main/other/d147 +Label: PTP Property 0xd147 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d148 +Label: PTP Property 0xd148 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d149 +Label: PTP Property 0xd149 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d14a +Label: PTP Property 0xd14a +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d14b +Label: PTP Property 0xd14b +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d14c +Label: PTP Property 0xd14c +Type: MENU +Current: 30 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +/main/other/d14d +Label: PTP Property 0xd14d +Type: MENU +Current: 16 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +/main/other/d14e +Label: PTP Property 0xd14e +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d14f +Label: PTP Property 0xd14f +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d150 +Label: PTP Property 0xd150 +Type: TEXT +Current: 95 +/main/other/d151 +Label: PTP Property 0xd151 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d152 +Label: PTP Property 0xd152 +Type: TEXT +Current: 259 +/main/other/d153 +Label: PTP Property 0xd153 +Type: TEXT +Current: 274 +/main/other/d154 +Label: PTP Property 0xd154 +Type: TEXT +Current: 1649 +/main/other/d155 +Label: PTP Property 0xd155 +Type: TEXT +Current: 0 +/main/other/d157 +Label: PTP Property 0xd157 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d158 +Label: PTP Property 0xd158 +Type: MENU +Current: 0 +Choice: 0 -23 +Choice: 1 -22 +Choice: 2 -21 +Choice: 3 -20 +Choice: 4 -19 +Choice: 5 -18 +Choice: 6 -17 +Choice: 7 -16 +Choice: 8 -15 +Choice: 9 -14 +Choice: 10 -13 +Choice: 11 -12 +Choice: 12 -11 +Choice: 13 -10 +Choice: 14 -9 +Choice: 15 -8 +Choice: 16 -7 +Choice: 17 -6 +Choice: 18 -5 +Choice: 19 -4 +Choice: 20 -3 +Choice: 21 -2 +Choice: 22 -1 +Choice: 23 0 +Choice: 24 1 +Choice: 25 2 +Choice: 26 3 +Choice: 27 4 +Choice: 28 5 +Choice: 29 6 +Choice: 30 7 +Choice: 31 8 +Choice: 32 9 +Choice: 33 10 +Choice: 34 11 +Choice: 35 12 +Choice: 36 13 +Choice: 37 14 +Choice: 38 15 +Choice: 39 16 +Choice: 40 17 +Choice: 41 18 +Choice: 42 19 +Choice: 43 20 +Choice: 44 21 +Choice: 45 22 +Choice: 46 23 +/main/other/d159 +Label: PTP Property 0xd159 +Type: MENU +Current: 0 +Choice: 0 3840 +Choice: 1 7680 +Choice: 2 11520 +/main/other/d15a +Label: PTP Property 0xd15a +Type: MENU +Current: 5 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d15b +Label: PTP Property 0xd15b +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d15c +Label: PTP Property 0xd15c +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d15d +Label: PTP Property 0xd15d +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d15e +Label: PTP Property 0xd15e +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d15f +Label: PTP Property 0xd15f +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d160 +Label: PTP Property 0xd160 +Type: RANGE +Current: 72 +Bottom: 36 +Top: 3000 +Step: 1 +/main/other/d161 +Label: PTP Property 0xd161 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d200 +Label: PTP Property 0xd200 +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +/main/other/d201 +Label: PTP Property 0xd201 +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d202 +Label: PTP Property 0xd202 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d203 +Label: PTP Property 0xd203 +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +/main/other/d204 +Label: PTP Property 0xd204 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d205 +Label: PTP Property 0xd205 +Type: MENU +Current: 0 +Choice: 0 -30 +Choice: 1 -29 +Choice: 2 -28 +Choice: 3 -27 +Choice: 4 -26 +Choice: 5 -25 +Choice: 6 -24 +Choice: 7 -23 +Choice: 8 -22 +Choice: 9 -21 +Choice: 10 -20 +Choice: 11 -19 +Choice: 12 -18 +Choice: 13 -17 +Choice: 14 -16 +Choice: 15 -15 +Choice: 16 -14 +Choice: 17 -13 +Choice: 18 -12 +Choice: 19 -11 +Choice: 20 -10 +Choice: 21 -9 +Choice: 22 -8 +Choice: 23 -7 +Choice: 24 -6 +Choice: 25 -5 +Choice: 26 -4 +Choice: 27 -3 +Choice: 28 -2 +Choice: 29 -1 +Choice: 30 0 +Choice: 31 1 +Choice: 32 2 +Choice: 33 3 +Choice: 34 4 +Choice: 35 5 +Choice: 36 6 +Choice: 37 7 +Choice: 38 8 +Choice: 39 9 +Choice: 40 10 +Choice: 41 11 +Choice: 42 12 +Choice: 43 13 +Choice: 44 14 +Choice: 45 15 +Choice: 46 16 +Choice: 47 17 +Choice: 48 18 +Choice: 49 19 +Choice: 50 20 +Choice: 51 21 +Choice: 52 22 +Choice: 53 23 +Choice: 54 24 +Choice: 55 25 +Choice: 56 26 +Choice: 57 27 +Choice: 58 28 +Choice: 59 29 +Choice: 60 30 +/main/other/d206 +Label: PTP Property 0xd206 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d207 +Label: PTP Property 0xd207 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d208 +Label: PTP Property 0xd208 +Type: MENU +Current: 0 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d209 +Label: PTP Property 0xd209 +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d20a +Label: PTP Property 0xd20a +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d20b +Label: PTP Property 0xd20b +Type: TEXT +Current: +/main/other/d20c +Label: PTP Property 0xd20c +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d20d +Label: PTP Property 0xd20d +Type: RANGE +Current: 175 +Bottom: 0 +Top: 65535 +Step: 0 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 6 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +/main/other/d20f +Label: PTP Property 0xd20f +Type: TEXT +Current: 0 +/main/other/d210 +Label: PTP Property 0xd210 +Type: TEXT +Current: 274 +/main/other/d211 +Label: PTP Property 0xd211 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d212 +Label: PTP Property 0xd212 +Type: TEXT +Current: (null) +/main/other/d213 +Label: PTP Property 0xd213 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d214 +Label: PTP Property 0xd214 +Type: TEXT +Current: (null) +/main/other/d215 +Label: PTP Property 0xd215 +Type: TEXT +Current: +/main/other/d216 +Label: PTP Property 0xd216 +Type: TEXT +Current: +/main/other/d217 +Label: PTP Property 0xd217 +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: MENU +Current: 251 +Choice: 0 22 +Choice: 1 23 +Choice: 2 24 +Choice: 3 25 +Choice: 4 26 +Choice: 5 27 +Choice: 6 28 +Choice: 7 29 +Choice: 8 30 +Choice: 9 31 +Choice: 10 32 +Choice: 11 33 +Choice: 12 34 +Choice: 13 35 +Choice: 14 36 +Choice: 15 37 +Choice: 16 38 +Choice: 17 39 +Choice: 18 40 +Choice: 19 41 +Choice: 20 42 +Choice: 21 43 +Choice: 22 44 +Choice: 23 45 +Choice: 24 46 +Choice: 25 47 +Choice: 26 48 +Choice: 27 49 +Choice: 28 50 +Choice: 29 51 +Choice: 30 52 +Choice: 31 53 +Choice: 32 54 +/main/other/d219 +Label: PTP Property 0xd219 +Type: RANGE +Current: 28 +Bottom: -31 +Top: 78 +Step: 3 +/main/other/d21a +Label: PTP Property 0xd21a +Type: MENU +Current: 0 +Choice: 0 -30 +Choice: 1 -29 +Choice: 2 -28 +Choice: 3 -27 +Choice: 4 -26 +Choice: 5 -25 +Choice: 6 -24 +Choice: 7 -23 +Choice: 8 -22 +Choice: 9 -21 +Choice: 10 -20 +Choice: 11 -19 +Choice: 12 -18 +Choice: 13 -17 +Choice: 14 -16 +Choice: 15 -15 +Choice: 16 -14 +Choice: 17 -13 +Choice: 18 -12 +Choice: 19 -11 +Choice: 20 -10 +Choice: 21 -9 +Choice: 22 -8 +Choice: 23 -7 +Choice: 24 -6 +Choice: 25 -5 +Choice: 26 -4 +Choice: 27 -3 +Choice: 28 -2 +Choice: 29 -1 +Choice: 30 0 +Choice: 31 1 +Choice: 32 2 +Choice: 33 3 +Choice: 34 4 +Choice: 35 5 +Choice: 36 6 +Choice: 37 7 +Choice: 38 8 +Choice: 39 9 +Choice: 40 10 +Choice: 41 11 +Choice: 42 12 +Choice: 43 13 +Choice: 44 14 +Choice: 45 15 +Choice: 46 16 +Choice: 47 17 +Choice: 48 18 +Choice: 49 19 +Choice: 50 20 +Choice: 51 21 +Choice: 52 22 +Choice: 53 23 +Choice: 54 24 +Choice: 55 25 +Choice: 56 26 +Choice: 57 27 +Choice: 58 28 +Choice: 59 29 +Choice: 60 30 +/main/other/d21b +Label: PTP Property 0xd21b +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-sl1000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-sl1000.txt new file mode 100644 index 00000000..8c376972 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-sl1000.txt @@ -0,0 +1,58 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: FinePix SL1000/SL1010 + Version: 1.02 + Serial Number: ???????????????????????????????? +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 7914684416 (7548 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 1% (1) +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 + +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 50% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-a2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-a2.txt new file mode 100644 index 00000000..6e7401a3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-a2.txt @@ -0,0 +1,49 @@ +Device info: +Manufacturer: FUJIFILM + Model: X-A2 + device version: 1.10 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x900c (Unknown PTP_OC) + 0x900d (Unknown PTP_OC) + 0x901d (Unknown PTP_OC) + 0x9801 (Get object properties supported) + 0x9802 (Get object property description) + 0x9803 (Get object property value) + 0x9805 (Get object property list) +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 +Device Properties Supported: + 0x5001 + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-e2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-e2.txt new file mode 100644 index 00000000..8a3a482b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-e2.txt @@ -0,0 +1,76 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: X-E2 + Version: 3.10 + Serial Number: nnnnnnnnnnnnnnnnnnnnxxxxxxxxxx +Vendor Extension ID: 0xe (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 16130244608 (15383 MB) + Free Space (Bytes): 13563461632 (12935 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 3% (3) +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd407:(read only) (type=0x6) 1 + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: nnnnnnnnnnnnnnnnnnnnxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: FUJIFILM +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: X-E2 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3.10 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: fujifilm.co.jp: 1.0; +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-t1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-t1.txt new file mode 100644 index 00000000..e45dd1a3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-t1.txt @@ -0,0 +1,49 @@ + Device info: + Manufacturer: FUJIFILM + Model: X-T1 + device version: 4.10 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnxx' + Vendor extension ID: 0x00000006 + Vendor extension version: 100 + Vendor extension description: fujifilm.co.jp: 1.0; + Functional Mode: 0x0000 + PTP Standard Version: 100 + Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x900c + 0x900d + 0x901d + 0x9801 + 0x9802 + 0x9803 + 0x9805 + Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + Device Properties Supported: + 0x5001 + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-t10.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-t10.txt new file mode 100644 index 00000000..da694021 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x-t10.txt @@ -0,0 +1,84 @@ +Sammanfattning för kamera: +Manufacturer: FUJIFILM +Model: X-T10 + Version: 1.00 + Serial Number: nnnnnnnnnnnnnnnnnnnxxxxxxxxxxx +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 7948206080 (7580 MB) + Free Space (Bytes): 7939784704 (7571 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 10, step 1] value: 3% (3) +Property 0xd303:(read only) (type=0x2) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 + +Device info: +Manufacturer: FUJIFILM + Model: X-T10 + device version: 1.00 + serial number: '5935313030341507164BD93011A00C' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x900c (Unknown PTP_OC) + 0x900d (Unknown PTP_OC) + 0x901d (Unknown PTP_OC) + 0x9801 (Get object properties supported) + 0x9802 (Get object property description) + 0x9803 (Get object property value) + 0x9805 (Get object property list) +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 +Device Properties Supported: + 0x5001 + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x10.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x10.txt new file mode 100644 index 00000000..f78af884 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x10.txt @@ -0,0 +1,81 @@ +Device info: +Manufacturer: FUJIFILM + Model: X10 + device version: 1.03 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000e +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x900c + 0x900d + 0x901d + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 +Device Properties Supported: + 0x5001 + 0xd303 + 0xd406 + 0xd407 + +Camera summary: +Manufacturer: FUJIFILM +Model: X10 + Version: 1.03 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0xe (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: Internal Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 27361280 (26 MB) + Free Space (Bytes): 27248640 (25 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 2% (2) +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x20.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x20.txt new file mode 100644 index 00000000..9e75212d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-x20.txt @@ -0,0 +1,146 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: X20 + Version: 1.01 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: Internal Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 25362432 (24 MB) + Free Space (Bytes): 16816128 (16 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 3% (3) +Property 0xd303:(read only) (type=0x2) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 59323133343313030615F030111742 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: FUJIFILM +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: X20 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.01 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: fujifilm.co.jp: 1.0; +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. + +*** Error *** +Sorry, your camera does not support generic capture +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** + +For debugging messages, please use the --debug option. +Debugging messages may help finding a solution to your problem. +If you intend to send any error or debug messages to the gphoto +developer mailing list , please run +gphoto2 as follows: + + env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --version --summary --list-all-config --set-config capturetarget=1 --set-config capture=on --wait-event=5s --capture-image + +Please make sure there is sufficient quoting around the arguments. + +Device info: +Manufacturer: FUJIFILM + Model: X20 + device version: 1.01 + serial number: '59323133343313030615F030111742' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x900c + 0x900d + 0x901d + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 +Device Properties Supported: + 0x5001 + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xe3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xe3.txt new file mode 100644 index 00000000..27248103 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xe3.txt @@ -0,0 +1,112 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: X-E3 + Version: 1.22 + Serial Number: NNNNNNNNNNNNNNNNNNNCNNNNNNNNNB +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: External Memory + VolumeLabel: NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 10, step 1] value: 10% (10) +Property 0xd303:(read only) (type=0x2) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 + +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: NNNNNNNNNNNNNNNNNNNCNNNNNNNNNB +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: FUJIFILM +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: X-E3 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: 1.22 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: fujifilm.co.jp: 1.0; +END +/main/status/batterylevel +Label: Battery Level +Readonly: 1 +Type: TEXT +Current: 100% +END +/main/other/5001 +Label: Battery Level +Readonly: 1 +Type: MENU +Current: 10 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +END +/main/other/d303 +Label: PTP Property 0xd303 +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d406 +Label: Session Initiator Info +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d407 +Label: Perceived Device Type +Readonly: 1 +Type: TEXT +Current: 1 +END diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xf1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xf1.txt new file mode 100644 index 00000000..bfce81b5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xf1.txt @@ -0,0 +1,84 @@ +Device info: +Manufacturer: FUJIFILM + Model: XF1 + device version: 1.00 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x900c + 0x900d + 0x901d + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 +Device Properties Supported: + 0x5001 + 0xd303 + 0xd406 + 0xd407 + +Camera summary: +Manufacturer: FUJIFILM +Model: XF1 + Version: 1.00 + Serial Number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: +Display Formats: JPEG, JFIF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: Internal Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 26411008 (25 MB) + Free Space (Bytes): 26300416 (25 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 3% (3) +Property 0xd303:(read only) (type=0x2) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xpro2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xpro2.txt new file mode 100644 index 00000000..821426bd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xpro2.txt @@ -0,0 +1,918 @@ +Camera summary: +Manufacturer: FUJIFILM +Model: X-Pro2 + Version: 4.00 + Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: Defined Type JPEG Unknown(b103) +Display Formats: Defined Type, JPEG, Unknown(b103) +Supported MTP Object Properties: + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, No File Upload + Generic Image Capture, Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: Still + VolumeLabel: 15935303934341602295A1030310BD8 + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (17592186044415 MB) + Free Space (Bytes): 18446744073709551615 (17592186044415 MB) + Free Space (Images): -1 +store_10000002: + StorageDescription: Live + VolumeLabel: 25935303934341602295A1030310BD8 + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (17592186044415 MB) + Free Space (Bytes): 18446744073709551615 (17592186044415 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001): error 200a on query. +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3008x2000', + '3008x1688', + '2000x2000', + '4240x2832', + '4240x2384', + '2832x2832', + '6000x4000', + '6000x3376', + '4000x4000' + ] value: '6000x4000' +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,6,8,32769,32770,32771,32774,32775,32776,32777,32778] value: Automatic (2) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,32769,32770] value: 32769 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Center Weighted Average (2) +Flash Mode(0x500c): error 200a on query. +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,3,4,6] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x5) Enumeration [200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,-1,-2,-3] value: ISO -2 (-2) +Date & Time(0x5011):(readwrite) (type=0xffff) '20180101T202800' +Pre-Capture Delay(0x5012):(readwrite) (type=0x4) Enumeration [10000,2000,0] value: 0.0s (0) +Sharpness(0x5015):(readwrite) (type=0x3) Range [-40 - 40, step 10] value: -20 +Burst Number(0x5018): error 200a on query. +Burst Interval(0x5019): error 200a on query. +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [32769,32770,32771] value: 32769 +Property 0xd001:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] value: 1 +Property 0xd002: error 200a on query. +Property 0xd003: error 200a on query. +Property 0xd004: error 200a on query. +Property 0xd005: error 200a on query. +Property 0xd007:(readwrite) (type=0x4) Enumeration [65535,100,200,400] value: 65535 +Property 0xd008:(readwrite) (type=0x3) Range [-40 - 40, step 10] value: 0 +Property 0xd009: error 200a on query. +Property 0xd00a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00b:(readwrite) (type=0x3) Range [-9 - 9, step 1] value: 0 +Property 0xd00c:(readwrite) (type=0x3) Range [-9 - 9, step 1] value: 0 +Property 0xd00d: error 200a on query. +Property 0xd00e: error 200a on query. +Property 0xd00f: error 200a on query. +Property 0xd010: error 200a on query. +Property 0xd011: error 200a on query. +Property 0xd012: error 200a on query. +Property 0xd013: error 200a on query. +Property 0xd014: error 200a on query. +Property 0xd015: error 200a on query. +Property 0xd016: error 200a on query. +Property 0xd017:(readwrite) (type=0x4) Enumeration [2500,2550,2650,2700,2800,2850,2950,3000,3100,3200,3300,3400,3600,3700,3800,4000,4200,4300,4500,4800,5000,5300,5600,5900,6300,6700,7100,7700,8300,9100,10000] value: 10000 +Property 0xd018:(readwrite) (type=0x4) Enumeration [1,2,3,4,5] value: 4 +Property 0xd019: error 200a on query. +Property 0xd01a: error 200a on query. +Property 0xd01b:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd01c:(readwrite) (type=0x4) Enumeration [0,4096,8192,12288,16384,20480,24576,28672,32768] value: 32768 +Property 0xd100:(readwrite) (type=0xffff) '' +Secure Time(0xd101): error 200a on query. +Device Certificate(0xd102): error 200a on query. +Revocation Info(0xd103): error 200a on query. +Property 0xd104: error 200a on query. +Property 0xd105: error 200a on query. +Property 0xd106:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd107: error 200a on query. +Property 0xd108: error 200a on query. +Property 0xd109: error 200a on query. +Property 0xd10a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10b:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10c: error 200a on query. +Property 0xd10d: error 200a on query. +Property 0xd10e: error 200a on query. +Property 0xd10f: error 200a on query. +Property 0xd110: error 200a on query. +Property 0xd111: error 200a on query. +Property 0xd112:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd113: error 200a on query. +Property 0xd114: error 200a on query. +Property 0xd115: error 200a on query. +Property 0xd116: error 200a on query. +Property 0xd117: error 200a on query. +Property 0xd118: error 200a on query. +Property 0xd119: error 200a on query. +Property 0xd11a: error 200a on query. +Property 0xd11b: error 200a on query. +Property 0xd11c: error 200a on query. +Property 0xd11d: error 200a on query. +Property 0xd11e: error 200a on query. +Property 0xd11f: error 200a on query. +Property 0xd120: error 200a on query. +Property 0xd121: error 200a on query. +Property 0xd122: error 200a on query. +Property 0xd123: error 200a on query. +Property 0xd124: error 200a on query. +Property 0xd125: error 200a on query. +Property 0xd126: error 200a on query. +Property 0xd127: error 200a on query. +Property 0xd128: error 200a on query. +Property 0xd129: error 200a on query. +Property 0xd12a: error 200a on query. +Property 0xd12b: error 200a on query. +Property 0xd12c: error 200a on query. +Property 0xd12d: error 200a on query. +Property 0xd12e: error 200a on query. +Property 0xd12f: error 200a on query. +Property 0xd130: error 200a on query. +PlaysForSure ID(0xd131): error 200a on query. +Property 0xd132: error 200a on query. +Property 0xd133: error 200a on query. +Property 0xd134: error 200a on query. +Property 0xd135: error 200a on query. +Property 0xd136: error 200a on query. +Property 0xd137: error 200a on query. +Property 0xd138: error 200a on query. +Property 0xd139: error 200a on query. +Property 0xd13a: error 200a on query. +Property 0xd13b: error 200a on query. +Property 0xd13c: error 200a on query. +Property 0xd13d: error 200a on query. +Property 0xd13e: error 200a on query. +Property 0xd13f: error 200a on query. +Property 0xd140: error 200a on query. +Property 0xd141: error 200a on query. +Property 0xd142: error 200a on query. +Property 0xd143: error 200a on query. +Property 0xd144: error 200a on query. +Property 0xd145: error 200a on query. +Property 0xd146: error 200a on query. +Property 0xd147: error 200a on query. +Property 0xd148: error 200a on query. +Property 0xd149: error 200a on query. +Property 0xd14a: error 200a on query. +Property 0xd14b: error 200a on query. +Property 0xd14c: error 200a on query. +Property 0xd14d: error 200a on query. +Property 0xd14e: error 200a on query. +Property 0xd14f: error 200a on query. +Property 0xd150: error 200a on query. +Property 0xd151: error 200a on query. +Property 0xd152: error 200a on query. +Property 0xd153:(read only) (type=0x4) 1024 +Property 0xd154:(read only) (type=0x6) 4325376 +Property 0xd155:(read only) (type=0x6) 0 +Property 0xd157: error 200a on query. +Property 0xd158: error 200a on query. +Property 0xd159: error 200a on query. +Property 0xd15a: error 200a on query. +Property 0xd15b: error 200a on query. +Property 0xd15c: error 200a on query. +Property 0xd15d: error 200a on query. +Property 0xd15e: error 200a on query. +Property 0xd15f: error 200a on query. +Property 0xd160: error 200a on query. +Property 0xd161: error 200a on query. +Property 0xd200: error 200a on query. +Property 0xd201: not read out. +Property 0xd202: error 200a on query. +Property 0xd203: error 200a on query. +Property 0xd204: error 200a on query. +Property 0xd205: error 200a on query. +Property 0xd206: error 200a on query. +Property 0xd207:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd208:(readwrite) (type=0x4) Enumeration [260,512,4,772,1280,12,40960,6,36864,2,37120,1] value: 772 +Property 0xd209:(read only) (type=0x4) Enumeration [1,2,3,4] value: 3 +Property 0xd20a: error 200a on query. +Property 0xd20b:(readwrite) (type=0xffff) '' +Property 0xd20c:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd20d:(read only) (type=0xffff) '734,15,57182016,9,1442,16,112425984,9' +Property 0xd20e:(read only) (type=0x4) Range [0 - 1, step 1] value: 20 +Property 0xd20f: error 200a on query. +Property 0xd210: error 200a on query. +Property 0xd211:(read only) (type=0x4) Range [0 - 65535, step 1] value: 257 +Property 0xd212:(read only) (type=0x0) Undefined +Property 0xd213: error 200a on query. +Property 0xd214: error 200a on query. +Property 0xd215:(readwrite) (type=0xffff) '' +Property 0xd216:(readwrite) (type=0xffff) '' +Property 0xd217: error 200a on query. +Property 0xd218: error 200a on query. +Property 0xd219: error 200a on query. +Property 0xd21a: error 200a on query. +Property 0xd21b: error 200a on query. +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 + +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1514838480 +Printable: Mon Jan 1 20:28:00 2018 +Help: Use 'now' as the current time when setting. + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: FUJIFILM +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: X-Pro2 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 4.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: fujifilm.co.jp: 1.0; +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6000x4000 +Choice: 0 3008x2000 +Choice: 1 3008x1688 +Choice: 2 2000x2000 +Choice: 3 4240x2832 +Choice: 4 4240x2384 +Choice: 5 2832x2832 +Choice: 6 6000x4000 +Choice: 7 6000x3376 +Choice: 8 4000x4000 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Tungsten +Choice: 3 Unknown value 0008 +Choice: 4 Unknown value 8001 +Choice: 5 Unknown value 8002 +Choice: 6 Unknown value 8003 +Choice: 7 Unknown value 8006 +Choice: 8 Unknown value 8007 +Choice: 9 Unknown value 8008 +Choice: 10 Unknown value 8009 +Choice: 11 Unknown value 800a +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Unknown value 8001 +Choice: 0 Manual +Choice: 1 Unknown value 8001 +Choice: 2 Unknown value 8002 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: A +Choice: 0 M +Choice: 1 A +Choice: 2 S +Choice: 3 Action +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Unknown value 8001 +Choice: 0 Unknown value 8001 +Choice: 1 Unknown value 8002 +Choice: 2 Unknown value 8003 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Center Weighted +Choice: 0 Average +Choice: 1 Center Weighted +Choice: 2 Multi Spot +Choice: 3 Center Spot +/main/capturesettings/capturedelay +Label: Capture Delay +Type: RADIO +Current: 0.000s +Choice: 0 10.000s +Choice: 1 2.000s +Choice: 2 0.000s +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6000x4000 +Choice: 0 3008x2000 +Choice: 1 3008x1688 +Choice: 2 2000x2000 +Choice: 3 4240x2832 +Choice: 4 4240x2384 +Choice: 5 2832x2832 +Choice: 6 6000x4000 +Choice: 7 6000x3376 +Choice: 8 4000x4000 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 6 +Choice: 3 8 +Choice: 4 32769 +Choice: 5 32770 +Choice: 6 32771 +Choice: 7 32774 +Choice: 8 32775 +Choice: 9 32776 +Choice: 10 32777 +Choice: 11 32778 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32769 +Choice: 0 1 +Choice: 1 32769 +Choice: 2 32770 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 3 +Choice: 2 4 +Choice: 3 6 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: -2 +Choice: 0 200 +Choice: 1 250 +Choice: 2 320 +Choice: 3 400 +Choice: 4 500 +Choice: 5 640 +Choice: 6 800 +Choice: 7 1000 +Choice: 8 1250 +Choice: 9 1600 +Choice: 10 2000 +Choice: 11 2500 +Choice: 12 3200 +Choice: 13 4000 +Choice: 14 5000 +Choice: 15 6400 +Choice: 16 8000 +Choice: 17 10000 +Choice: 18 12800 +Choice: 19 -1 +Choice: 20 -2 +Choice: 21 -3 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20180101T202800 +/main/other/5012 +Label: Pre-Capture Delay +Type: MENU +Current: 0 +Choice: 0 10000 +Choice: 1 2000 +Choice: 2 0 +/main/other/5015 +Label: Sharpness +Type: RANGE +Current: -20 +Bottom: -40 +Top: 40 +Step: 10 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32769 +Choice: 0 32769 +Choice: 1 32770 +Choice: 2 32771 +/main/other/d001 +Label: PTP Property 0xd001 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +/main/other/d007 +Label: PTP Property 0xd007 +Type: MENU +Current: 65535 +Choice: 0 65535 +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +/main/other/d008 +Label: PTP Property 0xd008 +Type: RANGE +Current: 0 +Bottom: -40 +Top: 40 +Step: 10 +/main/other/d00a +Label: PTP Property 0xd00a +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d00b +Label: PTP Property 0xd00b +Type: MENU +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/other/d00c +Label: PTP Property 0xd00c +Type: MENU +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/other/d017 +Label: PTP Property 0xd017 +Type: MENU +Current: 10000 +Choice: 0 2500 +Choice: 1 2550 +Choice: 2 2650 +Choice: 3 2700 +Choice: 4 2800 +Choice: 5 2850 +Choice: 6 2950 +Choice: 7 3000 +Choice: 8 3100 +Choice: 9 3200 +Choice: 10 3300 +Choice: 11 3400 +Choice: 12 3600 +Choice: 13 3700 +Choice: 14 3800 +Choice: 15 4000 +Choice: 16 4200 +Choice: 17 4300 +Choice: 18 4500 +Choice: 19 4800 +Choice: 20 5000 +Choice: 21 5300 +Choice: 22 5600 +Choice: 23 5900 +Choice: 24 6300 +Choice: 25 6700 +Choice: 26 7100 +Choice: 27 7700 +Choice: 28 8300 +Choice: 29 9100 +Choice: 30 10000 +/main/other/d018 +Label: PTP Property 0xd018 +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d01b +Label: PTP Property 0xd01b +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d01c +Label: PTP Property 0xd01c +Type: MENU +Current: 32768 +Choice: 0 0 +Choice: 1 4096 +Choice: 2 8192 +Choice: 3 12288 +Choice: 4 16384 +Choice: 5 20480 +Choice: 6 24576 +Choice: 7 28672 +Choice: 8 32768 +/main/other/d100 +Label: PTP Property 0xd100 +Type: TEXT +Current: +/main/other/d106 +Label: PTP Property 0xd106 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d10a +Label: PTP Property 0xd10a +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d10b +Label: PTP Property 0xd10b +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d112 +Label: PTP Property 0xd112 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d153 +Label: PTP Property 0xd153 +Type: TEXT +Current: 1024 +/main/other/d154 +Label: PTP Property 0xd154 +Type: TEXT +Current: 4325376 +/main/other/d155 +Label: PTP Property 0xd155 +Type: TEXT +Current: 0 +/main/other/d201 +Label: PTP Property 0xd201 +Type: MENU +Current: 4 +Choice: 0 4 +/main/other/d207 +Label: PTP Property 0xd207 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d208 +Label: PTP Property 0xd208 +Type: MENU +Current: 772 +Choice: 0 260 +Choice: 1 512 +Choice: 2 4 +Choice: 3 772 +Choice: 4 1280 +Choice: 5 12 +Choice: 6 40960 +Choice: 7 6 +Choice: 8 36864 +Choice: 9 2 +Choice: 10 37120 +Choice: 11 1 +/main/other/d209 +Label: PTP Property 0xd209 +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d20b +Label: PTP Property 0xd20b +Type: TEXT +Current: +/main/other/d20c +Label: PTP Property 0xd20c +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d20d +Label: PTP Property 0xd20d +Type: TEXT +Current: 734,15,57182016,9,1442,16,112425984,9 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +/main/other/d211 +Label: PTP Property 0xd211 +Type: RANGE +Current: 257 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: TEXT +Current: (null) +/main/other/d215 +Label: PTP Property 0xd215 +Type: TEXT +Current: +/main/other/d216 +Label: PTP Property 0xd216 +Type: TEXT +Current: +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 + +Device info: +Manufacturer: FUJIFILM + Model: X-Pro2 + device version: 4.00 + serial number: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Vendor extension ID: 0x0000000e +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1018 (Terminate open capture) + 0x101b (Get partial object) + 0x101c (Initiate open capture) + 0x900c (Unknown VendorExtensionID) + 0x900d (Unknown VendorExtensionID) + 0x901d (Unknown VendorExtensionID) + 0x9801 (Unknown VendorExtensionID) + 0x9802 (Unknown VendorExtensionID) + 0x9803 (Unknown VendorExtensionID) + 0x9805 (Unknown VendorExtensionID) +Events Supported: + 0x4002 (ObjectAdded) + 0x4003 (ObjectRemoved) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x400d (CaptureComplete) + 0xc006 (Unknown Event) +Device Properties Supported: + 0x5001 (Battery Level) + 0x5003 (Image Size) + 0x5005 (White Balance) + 0x500a (Focus Mode) + 0x500b (Exposure Metering Mode) + 0x500c (Flash Mode) + 0x500e (Exposure Program Mode) + 0x500f (Exposure Index (film speed ISO)) + 0x5011 (Date & Time) + 0x5012 (Pre-Capture Delay) + 0x5015 (Sharpness) + 0x5018 (Burst Number) + 0x5019 (Burst Interval) + 0x501c (Focus Metering Mode) + 0xd001 (Unknown DPC code) + 0xd002 (Unknown DPC code) + 0xd003 (Unknown DPC code) + 0xd004 (Unknown DPC code) + 0xd005 (Unknown DPC code) + 0xd007 (Unknown DPC code) + 0xd008 (Unknown DPC code) + 0xd009 (Unknown DPC code) + 0xd00a (Unknown DPC code) + 0xd00b (Unknown DPC code) + 0xd00c (Unknown DPC code) + 0xd00d (Unknown DPC code) + 0xd00e (Unknown DPC code) + 0xd00f (Unknown DPC code) + 0xd010 (Unknown DPC code) + 0xd011 (Unknown DPC code) + 0xd012 (Unknown DPC code) + 0xd013 (Unknown DPC code) + 0xd014 (Unknown DPC code) + 0xd015 (Unknown DPC code) + 0xd016 (Unknown DPC code) + 0xd017 (Color Temperature) + 0xd018 (Quality) + 0xd019 (Unknown DPC code) + 0xd01a (Unknown DPC code) + 0xd01b (Unknown DPC code) + 0xd01c (Unknown DPC code) + 0xd100 (Unknown DPC code) + 0xd101 (Unknown DPC code) + 0xd102 (Unknown DPC code) + 0xd103 (Unknown DPC code) + 0xd104 (Unknown DPC code) + 0xd105 (Unknown DPC code) + 0xd106 (Unknown DPC code) + 0xd107 (Unknown DPC code) + 0xd108 (Unknown DPC code) + 0xd109 (Unknown DPC code) + 0xd10a (Unknown DPC code) + 0xd10b (Unknown DPC code) + 0xd10c (Unknown DPC code) + 0xd10d (Unknown DPC code) + 0xd10e (Unknown DPC code) + 0xd10f (Unknown DPC code) + 0xd110 (Unknown DPC code) + 0xd111 (Unknown DPC code) + 0xd112 (Unknown DPC code) + 0xd113 (Unknown DPC code) + 0xd114 (Unknown DPC code) + 0xd115 (Unknown DPC code) + 0xd116 (Unknown DPC code) + 0xd117 (Unknown DPC code) + 0xd118 (Unknown DPC code) + 0xd119 (Unknown DPC code) + 0xd11a (Unknown DPC code) + 0xd11b (Unknown DPC code) + 0xd11c (Unknown DPC code) + 0xd11d (Unknown DPC code) + 0xd11e (Unknown DPC code) + 0xd11f (Unknown DPC code) + 0xd120 (Unknown DPC code) + 0xd121 (Unknown DPC code) + 0xd122 (Unknown DPC code) + 0xd123 (Unknown DPC code) + 0xd124 (Unknown DPC code) + 0xd125 (Unknown DPC code) + 0xd126 (Unknown DPC code) + 0xd127 (Unknown DPC code) + 0xd128 (Unknown DPC code) + 0xd129 (Unknown DPC code) + 0xd12a (Unknown DPC code) + 0xd12b (Unknown DPC code) + 0xd12c (Unknown DPC code) + 0xd12d (Unknown DPC code) + 0xd12e (Unknown DPC code) + 0xd12f (Unknown DPC code) + 0xd130 (Unknown DPC code) + 0xd131 (Unknown DPC code) + 0xd132 (Unknown DPC code) + 0xd133 (Unknown DPC code) + 0xd134 (Unknown DPC code) + 0xd135 (Unknown DPC code) + 0xd136 (Unknown DPC code) + 0xd137 (Unknown DPC code) + 0xd138 (Unknown DPC code) + 0xd139 (Unknown DPC code) + 0xd13a (Unknown DPC code) + 0xd13b (Unknown DPC code) + 0xd13c (Unknown DPC code) + 0xd13d (Unknown DPC code) + 0xd13e (Unknown DPC code) + 0xd13f (Unknown DPC code) + 0xd140 (Unknown DPC code) + 0xd141 (Unknown DPC code) + 0xd142 (Unknown DPC code) + 0xd143 (Unknown DPC code) + 0xd144 (Unknown DPC code) + 0xd145 (Unknown DPC code) + 0xd146 (Unknown DPC code) + 0xd147 (Unknown DPC code) + 0xd148 (Unknown DPC code) + 0xd149 (Unknown DPC code) + 0xd14a (Unknown DPC code) + 0xd14b (Unknown DPC code) + 0xd14c (Unknown DPC code) + 0xd14d (Unknown DPC code) + 0xd14e (Unknown DPC code) + 0xd14f (Unknown DPC code) + 0xd150 (Unknown DPC code) + 0xd151 (Unknown DPC code) + 0xd152 (Unknown DPC code) + 0xd153 (Unknown DPC code) + 0xd154 (Unknown DPC code) + 0xd155 (Unknown DPC code) + 0xd157 (Unknown DPC code) + 0xd158 (Unknown DPC code) + 0xd159 (Unknown DPC code) + 0xd15a (Unknown DPC code) + 0xd15b (Unknown DPC code) + 0xd15c (Unknown DPC code) + 0xd15d (Unknown DPC code) + 0xd15e (Unknown DPC code) + 0xd15f (Unknown DPC code) + 0xd160 (Unknown DPC code) + 0xd161 (Unknown DPC code) + 0xd200 (Unknown DPC code) + 0xd201 (Unknown DPC code) + 0xd202 (Unknown DPC code) + 0xd203 (Unknown DPC code) + 0xd204 (Unknown DPC code) + 0xd205 (Unknown DPC code) + 0xd206 (Unknown DPC code) + 0xd207 (Unknown DPC code) + 0xd208 (Unknown DPC code) + 0xd209 (Unknown DPC code) + 0xd20a (Unknown DPC code) + 0xd20b (Unknown DPC code) + 0xd20c (Unknown DPC code) + 0xd20d (Unknown DPC code) + 0xd20e (Unknown DPC code) + 0xd20f (Unknown DPC code) + 0xd210 (Unknown DPC code) + 0xd211 (Unknown DPC code) + 0xd212 (Unknown DPC code) + 0xd213 (Unknown DPC code) + 0xd214 (Unknown DPC code) + 0xd215 (Unknown DPC code) + 0xd216 (Unknown DPC code) + 0xd217 (Unknown DPC code) + 0xd218 (Unknown DPC code) + 0xd219 (Unknown DPC code) + 0xd21a (Unknown DPC code) + 0xd21b (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0x500d (Exposure Time) + 0x5007 (F-Number) + 0xd38c (Unknown DPC code) + 0xd171 (Unknown DPC code) + 0xd21c (Unknown DPC code) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xt2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xt2.txt new file mode 100644 index 00000000..2f52b899 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xt2.txt @@ -0,0 +1,999 @@ +Device info: +Manufacturer: FUJIFILM + Model: X-T2 + device version: 1.00 + serial number: 'nnnnnnnnnnnnnnnnnnnBnnnnnnnnnn' +Vendor extension ID: 0x0000000e +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x900c (Unknown VendorExtensionID) + 0x900d (Unknown VendorExtensionID) + 0x901d (Unknown VendorExtensionID) + 0x9801 (Unknown VendorExtensionID) + 0x9802 (Unknown VendorExtensionID) + 0x9803 (Unknown VendorExtensionID) + 0x9805 (Unknown VendorExtensionID) +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 +Device Properties Supported: + 0x5001 + 0xd303 + 0xd406 + 0xd407 + +0x4002 ObjectAdded +0x4003 ObjectRemoved +0x4004 StoreAdded +0x4005 StoreRemoved +0x4006 DevicePropChanged +0x4007 ObjectInfoChanged +0x4008 DeviceInfoChanged +0x4009 RequestObjectTransfer + +VERSION 1.1 firmware + +Device info: +Manufacturer: FUJIFILM + Model: X-T2 + device version: 1.10 + serial number: 'nnnnnnnnnnnnnnnnnnnBnnnnnnnnnn' +Vendor extension ID: 0x0000000e +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1018 (Terminate open capture) + 0x101b (Get partial object) + 0x101c (Initiate open capture) + 0x900c (Unknown VendorExtensionID) + 0x900d (Unknown VendorExtensionID) + 0x901d (Unknown VendorExtensionID) + 0x9801 (Unknown VendorExtensionID) + 0x9802 (Unknown VendorExtensionID) + 0x9803 (Unknown VendorExtensionID) + 0x9805 (Unknown VendorExtensionID) +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x400d + 0xc006 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5005 + 0x500a + 0x500b + 0x500c + 0x500e + 0x500f + 0x5011 + 0x5012 + 0x5015 + 0x5018 + 0x5019 + 0x501c + 0xd001 + 0xd002 + 0xd003 + 0xd004 + 0xd005 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b + 0xd00c + 0xd00d + 0xd00e + 0xd00f + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd107 + 0xd108 + 0xd109 + 0xd10a + 0xd10b + 0xd10c + 0xd10d + 0xd10e + 0xd10f + 0xd110 + 0xd111 + 0xd112 + 0xd113 + 0xd114 + 0xd115 + 0xd116 + 0xd117 + 0xd118 + 0xd119 + 0xd11a + 0xd11b + 0xd11c + 0xd11d + 0xd11e + 0xd11f + 0xd120 + 0xd121 + 0xd122 + 0xd123 + 0xd124 + 0xd125 + 0xd126 + 0xd127 + 0xd128 + 0xd129 + 0xd12a + 0xd12b + 0xd12c + 0xd12d + 0xd12e + 0xd12f + 0xd130 + 0xd131 + 0xd132 + 0xd133 + 0xd134 + 0xd135 + 0xd136 + 0xd137 + 0xd138 + 0xd139 + 0xd13a + 0xd13b + 0xd13c + 0xd13d + 0xd13e + 0xd13f + 0xd140 + 0xd141 + 0xd142 + 0xd143 + 0xd144 + 0xd145 + 0xd146 + 0xd147 + 0xd148 + 0xd149 + 0xd14a + 0xd14b + 0xd14c + 0xd14d + 0xd14e + 0xd14f + 0xd150 + 0xd151 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd157 + 0xd158 + 0xd159 + 0xd15a + 0xd15b + 0xd15c + 0xd15d + 0xd15e + 0xd15f + 0xd160 + 0xd161 + 0xd200 + 0xd201 + 0xd202 + 0xd203 + 0xd204 + 0xd205 + 0xd206 + 0xd207 + 0xd208 + 0xd209 + 0xd20a + 0xd20b + 0xd20c + 0xd20d + 0xd20e + 0xd20f + 0xd210 + 0xd211 + 0xd212 + 0xd213 + 0xd214 + 0xd215 + 0xd216 + 0xd217 + 0xd218 + 0xd219 + 0xd21a + 0xd21b + 0xd406 + 0xd407 +Camera summary: +Manufacturer: FUJIFILM +Model: X-T2 + Version: 1.10 + Serial Number: nnnnnnnnnnnnnnnnnnnBnnnnnnnnnn +Vendor Extension ID: 0xe (1.0) +Vendor Extension Description: fujifilm.co.jp: 1.0; + +Capture Formats: Defined Type JPEG Unknown(b103) +Display Formats: Defined Type, JPEG, Unknown(b103) + +Device Capabilities: + File Download, File Deletion, No File Upload + Generic Image Capture, Open Capture, No vendor specific capture + +Storage Devices Summary: +store_10000001: + StorageDescription: Still + VolumeLabel: nnnnnnnnnnnnnnnnnnnnBnnnnnnnnnn + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (17592186044415 MB) + Free Space (Bytes): 18446744073709551615 (17592186044415 MB) + Free Space (Images): -1 +store_10000002: + StorageDescription: Live + VolumeLabel: nnnnnnnnnnnnnnnnnnnnBnnnnnnnnnn + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 18446744073709551615 (17592186044415 MB) + Free Space (Bytes): 18446744073709551615 (17592186044415 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001): error 200a on query. +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3008x2000', + '3008x1688', + '2000x2000', + '4240x2832', + '4240x2384', + '2832x2832', + '6000x4000', + '6000x3376', + '4000x4000' + ] value: '6000x4000' +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,6,8,32769,32770,32771,32774,32775,32776,32777,32778] value: Automatic (2) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,32769,32770] value: 32769 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Multi-spot (3) +Flash Mode(0x500c): error 200a on query. +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,3,4,6] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x6) Enumeration [100,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600,51200,4294967295,4294967294,4294967293] value: ISO 4294967295 (4294967295) +Date & Time(0x5011):(readwrite) (type=0xffff) '20160124T003400' +Pre-Capture Delay(0x5012):(readwrite) (type=0x4) Enumeration [10000,2000,0] value: 0.0s (0) +Sharpness(0x5015):(readwrite) (type=0x3) Range [-40 - 40, step 10] value: 0 +Burst Number(0x5018): error 200a on query. +Burst Interval(0x5019): error 200a on query. +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [32769,32770,32771] value: 32769 +Property 0xd001:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] value: 1 +Property 0xd002: error 200a on query. +Property 0xd003: error 200a on query. +Property 0xd004: error 200a on query. +Property 0xd005: error 200a on query. +Property 0xd007:(readwrite) (type=0x4) Enumeration [65535,100,200,400] value: 100 +Property 0xd008:(readwrite) (type=0x3) Range [-40 - 40, step 10] value: 0 +Property 0xd009: error 200a on query. +Property 0xd00a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00b:(readwrite) (type=0x3) Range [-9 - 9, step 1] value: 0 +Property 0xd00c:(readwrite) (type=0x3) Range [-9 - 9, step 1] value: 0 +Property 0xd00d: error 200a on query. +Property 0xd00e: error 200a on query. +Property 0xd00f: error 200a on query. +Property 0xd010: error 200a on query. +Property 0xd011: error 200a on query. +Property 0xd012: error 200a on query. +Property 0xd013: error 200a on query. +Property 0xd014: error 200a on query. +Property 0xd015: error 200a on query. +Property 0xd016: error 200a on query. +Color Temperature(0xd017):(readwrite) (type=0x4) Enumeration [2500,2550,2650,2700,2800,2850,2950,3000,3100,3200,3300,3400,3600,3700,3800,4000,4200,4300,4500,4800,5000,5300,5600,5900,6300,6700,7100,7700,8300,9100,10000] value: 10000 +Quality(0xd018):(readwrite) (type=0x4) Enumeration [1,2,3,4,5] value: 2 +Property 0xd019: error 200a on query. +Property 0xd01a: error 200a on query. +Property 0xd01b:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd01c:(readwrite) (type=0x4) Enumeration [0,4096,8192,12288,16384,20480,24576,28672,32768] value: 8192 +Property 0xd100:(readwrite) (type=0xffff) '' +Property 0xd101: error 200a on query. +Property 0xd102: error 200a on query. +Property 0xd103: error 200a on query. +Property 0xd104: error 200a on query. +Property 0xd105: error 200a on query. +Property 0xd106:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd107: error 200a on query. +Property 0xd108: error 200a on query. +Property 0xd109: error 200a on query. +Property 0xd10a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10b:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd10c: error 200a on query. +Property 0xd10d: error 200a on query. +Property 0xd10e: error 200a on query. +Property 0xd10f: error 200a on query. +Property 0xd110: error 200a on query. +Property 0xd111: error 200a on query. +Property 0xd112:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd113: error 200a on query. +Property 0xd114: error 200a on query. +Property 0xd115: error 200a on query. +Property 0xd116: error 200a on query. +Property 0xd117: error 200a on query. +Property 0xd118: error 200a on query. +Property 0xd119: error 200a on query. +Property 0xd11a: error 200a on query. +Property 0xd11b: error 200a on query. +Property 0xd11c: error 200a on query. +Property 0xd11d: error 200a on query. +Property 0xd11e: error 200a on query. +Property 0xd11f: error 200a on query. +Property 0xd120: error 200a on query. +Property 0xd121: error 200a on query. +Property 0xd122: error 200a on query. +Property 0xd123: error 200a on query. +Property 0xd124: error 200a on query. +Property 0xd125: error 200a on query. +Property 0xd126: error 200a on query. +Property 0xd127: error 200a on query. +Property 0xd128: error 200a on query. +Property 0xd129: error 200a on query. +Property 0xd12a: error 200a on query. +Property 0xd12b: error 200a on query. +Property 0xd12c: error 200a on query. +Property 0xd12d: error 200a on query. +Property 0xd12e: error 200a on query. +Property 0xd12f: error 200a on query. +Property 0xd130: error 200a on query. +Property 0xd131: error 200a on query. +Property 0xd132: error 200a on query. +Property 0xd133: error 200a on query. +Property 0xd134: error 200a on query. +Property 0xd135: error 200a on query. +Property 0xd136:(readwrite) (type=0x4) Enumeration [1,2,3] value: 1 +Property 0xd137: error 200a on query. +Property 0xd138: error 200a on query. +Property 0xd139: error 200a on query. +Property 0xd13a: error 200a on query. +Property 0xd13b: error 200a on query. +Property 0xd13c: error 200a on query. +Property 0xd13d: error 200a on query. +Property 0xd13e: error 200a on query. +Property 0xd13f: error 200a on query. +Property 0xd140: error 200a on query. +Property 0xd141: error 200a on query. +Property 0xd142: error 200a on query. +Property 0xd143: error 200a on query. +Property 0xd144: error 200a on query. +Property 0xd145:(readwrite) (type=0xffff) '0000' +Property 0xd146: error 200a on query. +Property 0xd147: error 200a on query. +Property 0xd148: error 200a on query. +Property 0xd149: error 200a on query. +Property 0xd14a: error 200a on query. +Property 0xd14b: error 200a on query. +Property 0xd14c: error 200a on query. +Property 0xd14d: error 200a on query. +Property 0xd14e: error 200a on query. +Property 0xd14f: error 200a on query. +Property 0xd150: error 200a on query. +Property 0xd151: error 200a on query. +Property 0xd152: error 200a on query. +Property 0xd153:(read only) (type=0x4) 272 +Property 0xd154:(read only) (type=0x6) 589824 +Property 0xd155:(read only) (type=0x6) 0 +Property 0xd157: error 200a on query. +Property 0xd158: error 200a on query. +Property 0xd159: error 200a on query. +Property 0xd15a: error 200a on query. +Property 0xd15b: error 200a on query. +Property 0xd15c: error 200a on query. +Property 0xd15d: error 200a on query. +Property 0xd15e: error 200a on query. +Property 0xd15f: error 200a on query. +Property 0xd160: error 200a on query. +Property 0xd161: error 200a on query. +Property 0xd200: error 200a on query. +Property 0xd201:(readwrite) (type=0x4) Enumeration [4] value: 4 +Property 0xd202: error 200a on query. +Property 0xd203: error 200a on query. +Property 0xd204: error 200a on query. +Property 0xd205: error 200a on query. +Property 0xd206: error 200a on query. +Property 0xd207:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd208:(readwrite) (type=0x4) Enumeration [260,512,4,772,1280,12,40960,6,36864,2,37120,1,37632,5] value: 772 +Property 0xd209:(read only) (type=0x4) Enumeration [1,2,3,4] value: 1 +Property 0xd20a: error 200a on query. +Property 0xd20b:(readwrite) (type=0xffff) '' +Property 0xd20c:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 4 +Property 0xd20d:(read only) (type=0xffff) '0,15,36672,9,0,0,0,0' +Property 0xd20e:(read only) (type=0x4) Range [0 - 1, step 1] value: 19 +Property 0xd20f: error 200a on query. +Property 0xd210: error 200a on query. +Property 0xd211:(read only) (type=0x4) Range [0 - 65535, step 1] value: 257 +Property 0xd212:(read only) (type=0x0) Undefined +Property 0xd213: error 200a on query. +Property 0xd214: error 200a on query. +Property 0xd215:(readwrite) (type=0xffff) '' +Property 0xd216:(readwrite) (type=0xffff) '' +Property 0xd217: error 200a on query. +Property 0xd218: error 200a on query. +Property 0xd219: error 200a on query. +Property 0xd21a: error 200a on query. +Property 0xd21b: error 200a on query. +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd407:(read only) (type=0x6) 1 + +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1453624440 +Printable: Sun 24 Jan 2016 12:34:00 AM PST +Help: Use 'now' as the current time when setting. + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: nnnnnnnnnnnnnnnnnnnBnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: FUJIFILM +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: X-T2 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.10 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: fujifilm.co.jp: 1.0; +/main/imgsettings/imageformat +Label: Image Format +Type: RADIO +Current: JPEG Fine +Choice: 0 RAW +Choice: 1 JPEG Fine +Choice: 2 JPEG Normal +Choice: 3 RAW + JPEG Fine +Choice: 4 RAW + JPEG Normal +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6000x4000 +Choice: 0 3008x2000 +Choice: 1 3008x1688 +Choice: 2 2000x2000 +Choice: 3 4240x2832 +Choice: 4 4240x2384 +Choice: 5 2832x2832 +Choice: 6 6000x4000 +Choice: 7 6000x3376 +Choice: 8 4000x4000 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Tungsten +Choice: 3 Unknown value 0008 +Choice: 4 Fluorescent Lamp 1 +Choice: 5 Fluorescent Lamp 2 +Choice: 6 Fluorescent Lamp 3 +Choice: 7 Shade +Choice: 8 Choose Color Temperature +Choice: 9 Preset Custom 1 +Choice: 10 Preset Custom 2 +Choice: 11 Preset Custom 3 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Single-Servo AF +Choice: 0 Manual +Choice: 1 Single-Servo AF +Choice: 2 Continuous-Servo AF +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: A +Choice: 0 M +Choice: 1 A +Choice: 2 S +Choice: 3 Action +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Self-timer +Choice: 0 Self-timer +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Single-area AF +Choice: 0 Single-area AF +Choice: 1 Dynamic-area AF +Choice: 2 Group-dynamic AF +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Average +Choice: 1 Center Weighted +Choice: 2 Multi Spot +Choice: 3 Center Spot +/main/capturesettings/capturedelay +Label: Capture Delay +Type: RADIO +Current: 0.000s +Choice: 0 10.000s +Choice: 1 2.000s +Choice: 2 0.000s +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6000x4000 +Choice: 0 3008x2000 +Choice: 1 3008x1688 +Choice: 2 2000x2000 +Choice: 3 4240x2832 +Choice: 4 4240x2384 +Choice: 5 2832x2832 +Choice: 6 6000x4000 +Choice: 7 6000x3376 +Choice: 8 4000x4000 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 6 +Choice: 3 8 +Choice: 4 32769 +Choice: 5 32770 +Choice: 6 32771 +Choice: 7 32774 +Choice: 8 32775 +Choice: 9 32776 +Choice: 10 32777 +Choice: 11 32778 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32769 +Choice: 0 1 +Choice: 1 32769 +Choice: 2 32770 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 3 +Choice: 2 4 +Choice: 3 6 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: -1 +Choice: 0 100 +Choice: 1 200 +Choice: 2 250 +Choice: 3 320 +Choice: 4 400 +Choice: 5 500 +Choice: 6 640 +Choice: 7 800 +Choice: 8 1000 +Choice: 9 1250 +Choice: 10 1600 +Choice: 11 2000 +Choice: 12 2500 +Choice: 13 3200 +Choice: 14 4000 +Choice: 15 5000 +Choice: 16 6400 +Choice: 17 8000 +Choice: 18 10000 +Choice: 19 12800 +Choice: 20 25600 +Choice: 21 51200 +Choice: 22 -1 +Choice: 23 -2 +Choice: 24 -3 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20160124T003400 +/main/other/5012 +Label: Pre-Capture Delay +Type: MENU +Current: 0 +Choice: 0 10000 +Choice: 1 2000 +Choice: 2 0 +/main/other/5015 +Label: Sharpness +Type: RANGE +Current: 0 +Bottom: -40 +Top: 40 +Step: 10 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32769 +Choice: 0 32769 +Choice: 1 32770 +Choice: 2 32771 +/main/other/d001 +Label: PTP Property 0xd001 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +/main/other/d007 +Label: PTP Property 0xd007 +Type: MENU +Current: 100 +Choice: 0 65535 +Choice: 1 100 +Choice: 2 200 +Choice: 3 400 +/main/other/d008 +Label: PTP Property 0xd008 +Type: RANGE +Current: 0 +Bottom: -40 +Top: 40 +Step: 10 +/main/other/d00a +Label: PTP Property 0xd00a +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d00b +Label: PTP Property 0xd00b +Type: MENU +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/other/d00c +Label: PTP Property 0xd00c +Type: MENU +Current: 0 +Choice: 0 -9 +Choice: 1 -8 +Choice: 2 -7 +Choice: 3 -6 +Choice: 4 -5 +Choice: 5 -4 +Choice: 6 -3 +Choice: 7 -2 +Choice: 8 -1 +Choice: 9 0 +Choice: 10 1 +Choice: 11 2 +Choice: 12 3 +Choice: 13 4 +Choice: 14 5 +Choice: 15 6 +Choice: 16 7 +Choice: 17 8 +Choice: 18 9 +/main/other/d017 +Label: Color Temperature +Type: MENU +Current: 10000 +Choice: 0 2500 +Choice: 1 2550 +Choice: 2 2650 +Choice: 3 2700 +Choice: 4 2800 +Choice: 5 2850 +Choice: 6 2950 +Choice: 7 3000 +Choice: 8 3100 +Choice: 9 3200 +Choice: 10 3300 +Choice: 11 3400 +Choice: 12 3600 +Choice: 13 3700 +Choice: 14 3800 +Choice: 15 4000 +Choice: 16 4200 +Choice: 17 4300 +Choice: 18 4500 +Choice: 19 4800 +Choice: 20 5000 +Choice: 21 5300 +Choice: 22 5600 +Choice: 23 5900 +Choice: 24 6300 +Choice: 25 6700 +Choice: 26 7100 +Choice: 27 7700 +Choice: 28 8300 +Choice: 29 9100 +Choice: 30 10000 +/main/other/d018 +Label: Quality +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d01b +Label: PTP Property 0xd01b +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d01c +Label: PTP Property 0xd01c +Type: MENU +Current: 8192 +Choice: 0 0 +Choice: 1 4096 +Choice: 2 8192 +Choice: 3 12288 +Choice: 4 16384 +Choice: 5 20480 +Choice: 6 24576 +Choice: 7 28672 +Choice: 8 32768 +/main/other/d100 +Label: PTP Property 0xd100 +Type: TEXT +Current: +/main/other/d106 +Label: PTP Property 0xd106 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d10a +Label: PTP Property 0xd10a +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d10b +Label: PTP Property 0xd10b +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d112 +Label: PTP Property 0xd112 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d136 +Label: PTP Property 0xd136 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d145 +Label: PTP Property 0xd145 +Type: TEXT +Current: 0000 +/main/other/d153 +Label: PTP Property 0xd153 +Type: TEXT +Current: 272 +/main/other/d154 +Label: PTP Property 0xd154 +Type: TEXT +Current: 589824 +/main/other/d155 +Label: PTP Property 0xd155 +Type: TEXT +Current: 0 +/main/other/d201 +Label: PTP Property 0xd201 +Type: MENU +Current: 4 +Choice: 0 4 +/main/other/d207 +Label: PTP Property 0xd207 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d208 +Label: PTP Property 0xd208 +Type: MENU +Current: 772 +Choice: 0 260 +Choice: 1 512 +Choice: 2 4 +Choice: 3 772 +Choice: 4 1280 +Choice: 5 12 +Choice: 6 40960 +Choice: 7 6 +Choice: 8 36864 +Choice: 9 2 +Choice: 10 37120 +Choice: 11 1 +Choice: 12 37632 +Choice: 13 5 +/main/other/d209 +Label: PTP Property 0xd209 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d20b +Label: PTP Property 0xd20b +Type: TEXT +Current: +/main/other/d20c +Label: PTP Property 0xd20c +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d20d +Label: PTP Property 0xd20d +Type: TEXT +Current: 0,15,36672,9,0,0,0,0 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +/main/other/d211 +Label: PTP Property 0xd211 +Type: RANGE +Current: 257 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: TEXT +Current: (null) +/main/other/d215 +Label: PTP Property 0xd215 +Type: TEXT +Current: +/main/other/d216 +Label: PTP Property 0xd216 +Type: TEXT +Current: +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xt20.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xt20.txt new file mode 100644 index 00000000..de4cf9df --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xt20.txt @@ -0,0 +1,49 @@ +Device info: +Manufacturer: FUJIFILM + Model: X-T20 + device version: 1.01 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnxxxx' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x900c + 0x900d + 0x901d + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 +Device Properties Supported: + 0x5001 + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xt30.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xt30.txt new file mode 100644 index 00000000..53d744d8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/fuji-xt30.txt @@ -0,0 +1,425 @@ + +Kamerazusammenfassung: +Hersteller: FUJIFILM +Modell: X-T30 + Version: 1.00 + Seriennummer: nnnnnnnnnnnnnnnnnnnEFnnnnnnnnD +Vendor Extension ID: 0x6 (1.0) +Beschreibung der Vendor Extension: fujifilm.co.jp: 1.0; + +Aufnahmeformate: Defined Type JPEG Unknown(b103) +Anzeigeformate: Defined Type, JPEG, Unknown(b103) +Unterstützte MTP Object Properties: + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, kein Hochladen von Dateien + Generische Bild Aufnahme, Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: +store_10000001: + Beschreibung des Speichergeräts: Still + Label des Speichergerätes: 15935353533341903079EF33021133D + Speichertyp: Eingebauter Speicher + Typ des Dateisystems: Generisch hierarchischer Modus + Zugriffsmöglichkeiten: Nur Lesen und Löschen + Maximale Kapazität: 18446744073709551615 (17592186044415 MB) + Freier Platz (Bytes): 18446744073709551615 (17592186044415 MB) + Freier Speicher (Bilder): -1 +store_10000002: + Beschreibung des Speichergeräts: Live + Label des Speichergerätes: 25935353533341903079EF33021133D + Speichertyp: Eingebauter Speicher + Typ des Dateisystems: Generisch hierarchischer Modus + Zugriffsmöglichkeiten: Nur Lesen und Löschen + Maximale Kapazität: 18446744073709551615 (17592186044415 MB) + Freier Platz (Bytes): 18446744073709551615 (17592186044415 MB) + Freier Speicher (Bilder): -1 + +Properties des Geräts: +Batterie Ladezustand(0x5001):PTP Fehler 200a beim Abfragen +Bildgröße(0x5003):PTP Fehler 200a beim Abfragen +Weißabgleich(0x5005):PTP Fehler 200a beim Abfragen +Fokusmodus(0x500a):PTP Fehler 200a beim Abfragen +Belichtungsmessmodus(0x500b):PTP Fehler 200a beim Abfragen +Blitzmodus(0x500c):PTP Fehler 200a beim Abfragen +Belichtungsprogrammmodus(0x500e):PTP Fehler 200a beim Abfragen +Belichtungsindex (ISO-Filmempfindlichkeit)(0x500f):PTP Fehler 200a beim Abfragen +Datum und Zeit(0x5011):PTP Fehler 200a beim Abfragen +Aufnahmeverzögerung(0x5012):PTP Fehler 200a beim Abfragen +Schärfe(0x5015):PTP Fehler 200a beim Abfragen +Bildzahl im Burstmodus(0x5018):PTP Fehler 200a beim Abfragen +Burst Abstand(0x5019):PTP Fehler 200a beim Abfragen +Entfernungs Messungs Modus(0x501c):PTP Fehler 200a beim Abfragen +Property 0xd001:PTP Fehler 200a beim Abfragen +Property 0xd002:PTP Fehler 200a beim Abfragen +Property 0xd003:PTP Fehler 200a beim Abfragen +Property 0xd004:PTP Fehler 200a beim Abfragen +Property 0xd005:PTP Fehler 200a beim Abfragen +Property 0xd007:PTP Fehler 200a beim Abfragen +Property 0xd008:PTP Fehler 200a beim Abfragen +Property 0xd009:PTP Fehler 200a beim Abfragen +Property 0xd00a:PTP Fehler 200a beim Abfragen +Property 0xd00b:PTP Fehler 200a beim Abfragen +Property 0xd00c:PTP Fehler 200a beim Abfragen +Property 0xd00d:PTP Fehler 200a beim Abfragen +Property 0xd00e:PTP Fehler 200a beim Abfragen +Property 0xd00f:PTP Fehler 200a beim Abfragen +Property 0xd010:PTP Fehler 200a beim Abfragen +Property 0xd011:PTP Fehler 200a beim Abfragen +Property 0xd012:PTP Fehler 200a beim Abfragen +Property 0xd013:PTP Fehler 200a beim Abfragen +Property 0xd014:PTP Fehler 200a beim Abfragen +Property 0xd015:PTP Fehler 200a beim Abfragen +Property 0xd016:PTP Fehler 200a beim Abfragen +Property 0xd017:PTP Fehler 200a beim Abfragen +Property 0xd018:PTP Fehler 200a beim Abfragen +Property 0xd019:PTP Fehler 200a beim Abfragen +Property 0xd01a:PTP Fehler 200a beim Abfragen +Property 0xd01b:PTP Fehler 200a beim Abfragen +Property 0xd01c:PTP Fehler 200a beim Abfragen +Property 0xd100:PTP Fehler 200a beim Abfragen +Sichere Zeit(0xd101):PTP Fehler 200a beim Abfragen +Geräte Zertifikat(0xd102):PTP Fehler 200a beim Abfragen +Revokationsinformation(0xd103):PTP Fehler 200a beim Abfragen +Property 0xd104:PTP Fehler 200a beim Abfragen +Property 0xd105:PTP Fehler 200a beim Abfragen +Property 0xd106:PTP Fehler 200a beim Abfragen +Property 0xd107:PTP Fehler 200a beim Abfragen +Property 0xd108:PTP Fehler 200a beim Abfragen +Property 0xd109:PTP Fehler 200a beim Abfragen +Property 0xd10a:PTP Fehler 200a beim Abfragen +Property 0xd10b:PTP Fehler 200a beim Abfragen +Property 0xd10c:PTP Fehler 200a beim Abfragen +Property 0xd10d:PTP Fehler 200a beim Abfragen +Property 0xd10e:PTP Fehler 200a beim Abfragen +Property 0xd10f:PTP Fehler 200a beim Abfragen +Property 0xd110:PTP Fehler 200a beim Abfragen +Property 0xd111:PTP Fehler 200a beim Abfragen +Property 0xd112:PTP Fehler 200a beim Abfragen +Property 0xd113:PTP Fehler 200a beim Abfragen +Property 0xd114:PTP Fehler 200a beim Abfragen +Property 0xd115:PTP Fehler 200a beim Abfragen +Property 0xd116:PTP Fehler 200a beim Abfragen +Property 0xd117:PTP Fehler 200a beim Abfragen +Property 0xd118:PTP Fehler 200a beim Abfragen +Property 0xd119:PTP Fehler 200a beim Abfragen +Property 0xd11a:PTP Fehler 200a beim Abfragen +Property 0xd11b:PTP Fehler 200a beim Abfragen +Property 0xd11c:PTP Fehler 200a beim Abfragen +Property 0xd11d:PTP Fehler 200a beim Abfragen +Property 0xd11e:PTP Fehler 200a beim Abfragen +Property 0xd11f:PTP Fehler 200a beim Abfragen +Property 0xd120:PTP Fehler 200a beim Abfragen +Property 0xd121:PTP Fehler 200a beim Abfragen +Property 0xd122:PTP Fehler 200a beim Abfragen +Property 0xd123:PTP Fehler 200a beim Abfragen +Property 0xd124:PTP Fehler 200a beim Abfragen +Property 0xd125:PTP Fehler 200a beim Abfragen +Property 0xd126:PTP Fehler 200a beim Abfragen +Property 0xd127:PTP Fehler 200a beim Abfragen +Property 0xd128:PTP Fehler 200a beim Abfragen +Property 0xd129:PTP Fehler 200a beim Abfragen +Property 0xd12a:PTP Fehler 200a beim Abfragen +Property 0xd12b:PTP Fehler 200a beim Abfragen +Property 0xd12c:PTP Fehler 200a beim Abfragen +Property 0xd12d:PTP Fehler 200a beim Abfragen +Property 0xd12e:PTP Fehler 200a beim Abfragen +Property 0xd12f:PTP Fehler 200a beim Abfragen +Property 0xd130:PTP Fehler 200a beim Abfragen +PlaysForSure ID(0xd131):PTP Fehler 200a beim Abfragen +Property 0xd132:PTP Fehler 200a beim Abfragen +Property 0xd133:PTP Fehler 200a beim Abfragen +Property 0xd134:PTP Fehler 200a beim Abfragen +Property 0xd135:PTP Fehler 200a beim Abfragen +Property 0xd136:PTP Fehler 200a beim Abfragen +Property 0xd137:PTP Fehler 200a beim Abfragen +Property 0xd138:PTP Fehler 200a beim Abfragen +Property 0xd139:PTP Fehler 200a beim Abfragen +Property 0xd13a:PTP Fehler 200a beim Abfragen +Property 0xd13b:PTP Fehler 200a beim Abfragen +Property 0xd13c:PTP Fehler 200a beim Abfragen +Property 0xd13d:PTP Fehler 200a beim Abfragen +Property 0xd13e:PTP Fehler 200a beim Abfragen +Property 0xd13f:PTP Fehler 200a beim Abfragen +Property 0xd140:PTP Fehler 200a beim Abfragen +Property 0xd141:PTP Fehler 200a beim Abfragen +Property 0xd142:PTP Fehler 200a beim Abfragen +Property 0xd143:PTP Fehler 200a beim Abfragen +Property 0xd144:PTP Fehler 200a beim Abfragen +Property 0xd145:PTP Fehler 200a beim Abfragen +Property 0xd146:PTP Fehler 200a beim Abfragen +Property 0xd147:PTP Fehler 200a beim Abfragen +Property 0xd148:PTP Fehler 200a beim Abfragen +Property 0xd149:PTP Fehler 200a beim Abfragen +Property 0xd14a:PTP Fehler 200a beim Abfragen +Property 0xd14b:PTP Fehler 200a beim Abfragen +Property 0xd14c:PTP Fehler 200a beim Abfragen +Property 0xd14d:PTP Fehler 200a beim Abfragen +Property 0xd14e:PTP Fehler 200a beim Abfragen +Property 0xd14f:PTP Fehler 200a beim Abfragen +Property 0xd150:PTP Fehler 200a beim Abfragen +Property 0xd151:PTP Fehler 200a beim Abfragen +Property 0xd152:PTP Fehler 200a beim Abfragen +Property 0xd153:PTP Fehler 200a beim Abfragen +Property 0xd154:PTP Fehler 200a beim Abfragen +Property 0xd155:PTP Fehler 200a beim Abfragen +Property 0xd157:PTP Fehler 200a beim Abfragen +Property 0xd158:PTP Fehler 200a beim Abfragen +Property 0xd159:PTP Fehler 200a beim Abfragen +Property 0xd15a:PTP Fehler 200a beim Abfragen +Property 0xd15b:PTP Fehler 200a beim Abfragen +Property 0xd15c:PTP Fehler 200a beim Abfragen +Property 0xd15d:PTP Fehler 200a beim Abfragen +Property 0xd15e:PTP Fehler 200a beim Abfragen +Property 0xd15f:PTP Fehler 200a beim Abfragen +Property 0xd160:PTP Fehler 200a beim Abfragen +Property 0xd161:PTP Fehler 200a beim Abfragen +Property 0xd200:PTP Fehler 200a beim Abfragen +Property 0xd201: nicht ausgelesen. +Property 0xd202:PTP Fehler 200a beim Abfragen +Property 0xd203:PTP Fehler 200a beim Abfragen +Property 0xd204:PTP Fehler 200a beim Abfragen +Property 0xd205:PTP Fehler 200a beim Abfragen +Property 0xd206:PTP Fehler 200a beim Abfragen +Property 0xd207:PTP Fehler 200a beim Abfragen +Property 0xd208:(readwrite) (type=0x4) Enumeration [260,512,4,772,1280,12,40960,6,36864,2,37120,1,37376,64,37632,5] value: 772 +Property 0xd209:PTP Fehler 200a beim Abfragen +Property 0xd20a:PTP Fehler 200a beim Abfragen +Property 0xd20b:(readwrite) (type=0xffff) '' +Property 0xd20c:PTP Fehler 200a beim Abfragen +Property 0xd20d:PTP Fehler 200a beim Abfragen +Property 0xd20e:PTP Fehler 200a beim Abfragen +Property 0xd20f:PTP Fehler 200a beim Abfragen +Property 0xd210:PTP Fehler 200a beim Abfragen +Property 0xd211:PTP Fehler 200a beim Abfragen +Property 0xd212:PTP Fehler 201b beim Abfragen +Property 0xd213:PTP Fehler 200a beim Abfragen +Property 0xd214:PTP Fehler 200a beim Abfragen +Property 0xd215:PTP Fehler 200a beim Abfragen +Property 0xd216:PTP Fehler 200a beim Abfragen +Property 0xd217:PTP Fehler 200a beim Abfragen +Property 0xd218:PTP Fehler 200a beim Abfragen +Property 0xd219:PTP Fehler 200a beim Abfragen +Property 0xd21a:PTP Fehler 200a beim Abfragen +Property 0xd21b:PTP Fehler 200a beim Abfragen +Session Initiator Information(0xd406):(readwrite) (type=0xffff) '' +Angenommener Gerätetyp(0xd407):(read only) (type=0x6) 1 + + +Device info: +Manufacturer: FUJIFILM + Model: X-T30 + device version: 1.00 + serial number: 'nnnnnnnnnnnnnnnnnnnEFnnnnnnnnD' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: fujifilm.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1018 (Terminate open capture) + 0x101b (Get partial object) + 0x101c (Initiate open capture) + 0x900c (Unknown PTP_OC) + 0x900d (Unknown PTP_OC) + 0x901d (Unknown PTP_OC) + 0x9801 (Get object properties supported) + 0x9802 (Get object property description) + 0x9803 (Get object property value) + 0x9805 (Get object property list) +Events Supported: + 0x4002 (ObjectAdded) + 0x4003 (ObjectRemoved) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x400d (CaptureComplete) + 0xc006 (Unknown Event) +Device Properties Supported: + 0x5001 (Battery Level) + 0x5003 (Image Size) + 0x5005 (White Balance) + 0x500a (Focus Mode) + 0x500b (Exposure Metering Mode) + 0x500c (Flash Mode) + 0x500e (Exposure Program Mode) + 0x500f (Exposure Index (film speed ISO)) + 0x5011 (Date & Time) + 0x5012 (Pre-Capture Delay) + 0x5015 (Sharpness) + 0x5018 (Burst Number) + 0x5019 (Burst Interval) + 0x501c (Focus Metering Mode) + 0xd001 (Unknown DPC code) + 0xd002 (Unknown DPC code) + 0xd003 (Unknown DPC code) + 0xd004 (Unknown DPC code) + 0xd005 (Unknown DPC code) + 0xd007 (Unknown DPC code) + 0xd008 (Unknown DPC code) + 0xd009 (Unknown DPC code) + 0xd00a (Unknown DPC code) + 0xd00b (Unknown DPC code) + 0xd00c (Unknown DPC code) + 0xd00d (Unknown DPC code) + 0xd00e (Unknown DPC code) + 0xd00f (Unknown DPC code) + 0xd010 (Unknown DPC code) + 0xd011 (Unknown DPC code) + 0xd012 (Unknown DPC code) + 0xd013 (Unknown DPC code) + 0xd014 (Unknown DPC code) + 0xd015 (Unknown DPC code) + 0xd016 (Unknown DPC code) + 0xd017 (Unknown DPC code) + 0xd018 (Unknown DPC code) + 0xd019 (Unknown DPC code) + 0xd01a (Unknown DPC code) + 0xd01b (Unknown DPC code) + 0xd01c (Unknown DPC code) + 0xd100 (Unknown DPC code) + 0xd101 (Secure Time) + 0xd102 (Device Certificate) + 0xd103 (Revocation Info) + 0xd104 (Unknown DPC code) + 0xd105 (Unknown DPC code) + 0xd106 (Unknown DPC code) + 0xd107 (Unknown DPC code) + 0xd108 (Unknown DPC code) + 0xd109 (Unknown DPC code) + 0xd10a (Unknown DPC code) + 0xd10b (Unknown DPC code) + 0xd10c (Unknown DPC code) + 0xd10d (Unknown DPC code) + 0xd10e (Unknown DPC code) + 0xd10f (Unknown DPC code) + 0xd110 (Unknown DPC code) + 0xd111 (Unknown DPC code) + 0xd112 (Unknown DPC code) + 0xd113 (Unknown DPC code) + 0xd114 (Unknown DPC code) + 0xd115 (Unknown DPC code) + 0xd116 (Unknown DPC code) + 0xd117 (Unknown DPC code) + 0xd118 (Unknown DPC code) + 0xd119 (Unknown DPC code) + 0xd11a (Unknown DPC code) + 0xd11b (Unknown DPC code) + 0xd11c (Unknown DPC code) + 0xd11d (Unknown DPC code) + 0xd11e (Unknown DPC code) + 0xd11f (Unknown DPC code) + 0xd120 (Unknown DPC code) + 0xd121 (Unknown DPC code) + 0xd122 (Unknown DPC code) + 0xd123 (Unknown DPC code) + 0xd124 (Unknown DPC code) + 0xd125 (Unknown DPC code) + 0xd126 (Unknown DPC code) + 0xd127 (Unknown DPC code) + 0xd128 (Unknown DPC code) + 0xd129 (Unknown DPC code) + 0xd12a (Unknown DPC code) + 0xd12b (Unknown DPC code) + 0xd12c (Unknown DPC code) + 0xd12d (Unknown DPC code) + 0xd12e (Unknown DPC code) + 0xd12f (Unknown DPC code) + 0xd130 (Unknown DPC code) + 0xd131 (PlaysForSure ID) + 0xd132 (Unknown DPC code) + 0xd133 (Unknown DPC code) + 0xd134 (Unknown DPC code) + 0xd135 (Unknown DPC code) + 0xd136 (Unknown DPC code) + 0xd137 (Unknown DPC code) + 0xd138 (Unknown DPC code) + 0xd139 (Unknown DPC code) + 0xd13a (Unknown DPC code) + 0xd13b (Unknown DPC code) + 0xd13c (Unknown DPC code) + 0xd13d (Unknown DPC code) + 0xd13e (Unknown DPC code) + 0xd13f (Unknown DPC code) + 0xd140 (Unknown DPC code) + 0xd141 (Unknown DPC code) + 0xd142 (Unknown DPC code) + 0xd143 (Unknown DPC code) + 0xd144 (Unknown DPC code) + 0xd145 (Unknown DPC code) + 0xd146 (Unknown DPC code) + 0xd147 (Unknown DPC code) + 0xd148 (Unknown DPC code) + 0xd149 (Unknown DPC code) + 0xd14a (Unknown DPC code) + 0xd14b (Unknown DPC code) + 0xd14c (Unknown DPC code) + 0xd14d (Unknown DPC code) + 0xd14e (Unknown DPC code) + 0xd14f (Unknown DPC code) + 0xd150 (Unknown DPC code) + 0xd151 (Unknown DPC code) + 0xd152 (Unknown DPC code) + 0xd153 (Unknown DPC code) + 0xd154 (Unknown DPC code) + 0xd155 (Unknown DPC code) + 0xd157 (Unknown DPC code) + 0xd158 (Unknown DPC code) + 0xd159 (Unknown DPC code) + 0xd15a (Unknown DPC code) + 0xd15b (Unknown DPC code) + 0xd15c (Unknown DPC code) + 0xd15d (Unknown DPC code) + 0xd15e (Unknown DPC code) + 0xd15f (Unknown DPC code) + 0xd160 (Unknown DPC code) + 0xd161 (Unknown DPC code) + 0xd200 (Unknown DPC code) + 0xd201 (Unknown DPC code) + 0xd202 (Unknown DPC code) + 0xd203 (Unknown DPC code) + 0xd204 (Unknown DPC code) + 0xd205 (Unknown DPC code) + 0xd206 (Unknown DPC code) + 0xd207 (Unknown DPC code) + 0xd208 (Unknown DPC code) + 0xd209 (Unknown DPC code) + 0xd20a (Unknown DPC code) + 0xd20b (Unknown DPC code) + 0xd20c (Unknown DPC code) + 0xd20d (Unknown DPC code) + 0xd20e (Unknown DPC code) + 0xd20f (Unknown DPC code) + 0xd210 (Unknown DPC code) + 0xd211 (Unknown DPC code) + 0xd212 (Unknown DPC code) + 0xd213 (Unknown DPC code) + 0xd214 (Unknown DPC code) + 0xd215 (Unknown DPC code) + 0xd216 (Unknown DPC code) + 0xd217 (Unknown DPC code) + 0xd218 (Unknown DPC code) + 0xd219 (Unknown DPC code) + 0xd21a (Unknown DPC code) + 0xd21b (Unknown DPC code) + 0xd406 (Session Initiator Info) + 0xd407 (Perceived Device Type) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/gopro-hero3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/gopro-hero3.txt new file mode 100644 index 00000000..97898f16 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/gopro-hero3.txt @@ -0,0 +1,246 @@ +Súhrn o fotoaparáte: +Manufacturer: GoPro +Model: HERO3+ Black Edition + Version: HD3.11.03.00 + Serial Number: H3B+Bnnnnnnnnnn +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: microsoft.com/DEVICESERVICES: + +Capture Formats: +Display Formats: Association/Directory, Script, DPOF, JPEG, Apple Quicktime, HTML, Text +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + HTML/3005: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Text/3004: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: External Memory + VolumeLabel: MTP Device + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 31902400512 (30424 MB) + Free Space (Bytes): 1757872128 (1676 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130121T083745' +Session Initiator Info(0xd406):(readwrite) (type=0xffff) 'Unknown' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1358753894 +Printable: Po 21. január 2013, 08:38:14 CET +Help: Use 'now' as the current time when setting. + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: H3B+Bnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: GoPro +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: HERO3+ Black Edition +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: HD3.11.03.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com/DEVICESERVICES: +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130121T083814 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: Unknown +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: GoPro + Model: HERO3+ Black Edition + device version: HD3.11.03.00 + serial number: 'H3B+Bnnnnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: microsoft.com/DEVICESERVICES: +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x101b + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c +Device Properties Supported: + 0x5001 + 0x5011 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/gopro-hero7white.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/gopro-hero7white.txt new file mode 100644 index 00000000..4103dbbc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/gopro-hero7white.txt @@ -0,0 +1,155 @@ +Camera summary: +Manufacturer: GoPro +Model: HERO7 WHITE + Version: H18.02.02.10.00 + Serial Number: Cnnnnnnnnnnnnn +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: microsoft.com: 1.0; android.com: 1.0; + +Capture Formats: Association/Directory PNG +Display Formats: Undefined Type, Association/Directory, Text, HTML, Unknown(4000), Defined Type, JPEG, Unknown(4001), TIFF EP, BMP, GIF, JFIF, PNG, TIFF, TIFF_IT, JP2, JPX, OGG, MP3, MS Wave, WMA, AAC, FLAC, Abstract Audio Album, Abstract Audio Video Playlist +Supported MTP Object Properties: + Undefined Type/3000: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + Association/Directory/3001: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + Text/3004: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + HTML/3005: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + Unknown(4000)/4000: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + Defined Type/3800: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + JPEG/3801: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + Unknown(4001)/4001: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + TIFF EP/3802: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + BMP/3804: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + GIF/3807: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + JFIF/3808: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + PNG/380b: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + TIFF/380d: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + TIFF_IT/380e: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + JP2/380f: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + JPX/3810: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + OGG/b902: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + MP3/3009: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + MS Wave/3008: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + WMA/b901: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + AAC/b903: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + FLAC/b906: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + Abstract Audio Album/ba03: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + Abstract Audio Video Playlist/ba05: dc01/StorageID dc0b/ParentObject dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc87/Width dc88/Height dce0/DisplayName dc41/PersistantUniqueObjectIdentifier dc05/AssociationType dc06/AssociationDesc dc03/ProtectionStatus dc08/DateCreated dc09/DateModified dc0d/Hidden dc4f/NonConsumable + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00000004: + StorageDescription: GoPro MTP Client Disk Volume + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 63831015424 (60874 MB) + Free Space (Bytes): 58212745216 (55516 MB) + Free Space (Images): 1073741824 + +Device Property Summary: +Friendly Device Name(0xd402):(read only) (type=0xffff) (null) ('(null)') +Synchronization Partner(0xd401):(read only) (type=0xffff) (null) ('(null)') + +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: Cnnnnnnnnnnnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: GoPro +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: HERO7 WHITE +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: H18.02.02.10.00 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: microsoft.com: 1.0; android.com: 1.0; +END +/main/other/d402 +Label: Friendly Device Name +Readonly: 1 +Type: TEXT +Current: (null) +END +/main/other/d401 +Label: Synchronization Partner +Readonly: 1 +Type: TEXT +Current: (null) +END + +Device info: +Manufacturer: GoPro + Model: HERO7 WHITE + device version: H18.02.02.10.00 + serial number: 'Cnnnnnnnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; android.com: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1017 (Reset device property value) + 0x1019 (Move object) + 0x101b (Get partial object) + 0x9801 (Get object properties supported) + 0x9802 (Get object property description) + 0x9803 (Get object property value) + 0x9805 (Get object property list) + 0x9810 (Get object references) + 0x95c1 (Get Partial Object (64bit Offset)) + 0x95c2 (Send Partial Object) + 0x95c3 (Truncate Object) + 0x95c4 (Begin Edit Object) + 0x95c5 (End Edit Object) +Events Supported: + 0x4002 (ObjectAdded) + 0x4003 (ObjectRemoved) + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4007 (ObjectInfoChanged) + 0xc801 (ObjectPropChanged) +Device Properties Supported: + 0xd402 (Friendly Device Name) + 0xd401 (Synchronization Partner) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/hp-photosmart120.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/hp-photosmart120.txt new file mode 100644 index 00000000..547abebf --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/hp-photosmart120.txt @@ -0,0 +1,31 @@ +Manufacturer: Hewlett-Packard + model: hp photosmart 120 series + device version: 01.00 + serial number: '00 ' +Vendor extension ID: 0x00000000 +Vendor extension description: Hewlett-Packard +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x1014 + 0x1015 + 0x1016 + 0x1017 +Events Supported: +Device Properties Supported: + 0x5001 + 0x5003 + 0x5011 + +Property Battery Level(0x5001):Range [0 - , step value: 10 +Property Bildgröße(0x5003):Enumeration ['1600x1200 ',] value: '1600x1200 ' +Property Date Time(0x5011):(readwrite) '20020101T123400.0 ' diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/hp-photosmart735.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/hp-photosmart735.txt new file mode 100644 index 00000000..6e3c0951 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/hp-photosmart735.txt @@ -0,0 +1,30 @@ +Manufacturer: Hewlett-Packard + model: hp photosmart 735 + device version: V1.12 + serial number: '(null)' +Vendor extension ID: 0x00000000 +Vendor extension description: Hewlett-Packard +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b +Events Supported: +Device Properties Supported: + 0x5001 + 0x5003 + 0x5011 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/iRiver-t10.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/iRiver-t10.txt new file mode 100644 index 00000000..32717bcf --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/iRiver-t10.txt @@ -0,0 +1,520 @@ +Note: This is an MTP devices providing Audio Files. + +Device info: +Manufacturer: iriver + model: iriver T10 + device version: MTP 1.03P + serial number: 'T10-aaaaaaaaaaaaaaaaaaaaa' +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com/WMDRMPD: 10.1 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9810 + 0x9811 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b +Events Supported: +Device Properties Supported: + 0x5001 + 0xd401 + 0xd402 + 0xd101 + 0xd102 + + +Sample mp3 file on device: + +ObjectInfo for 't.mp3': + Object ID: 0x00000001 + StorageID: 0x00010001 + ObjectFormat: 0x3009 <- OFC_MP3 + ProtectionStatus: 0xe921 + ObjectCompressedSize: 5703680 + ThumbFormat: 0x0000 + ThumbCompressedSize: 0 + ThumbPixWidth: 0 + ThumbPixHeight: 0 + ImagePixWidth: 0 + ImagePixHeight: 0 + ImageBitDepth: 24 + ParentObject: 0x00000000 + AssociationType: 0x0000 + AssociationDesc: 0x00000000 + SequenceNumber: 0x00000000 + +Sample ogg file on device: + +ObjectInfo for '01-Xxx Xxxxxx - xx xxxx xxxx.ogg': + Object ID: 0x000a004a + StorageID: 0x00010001 + ObjectFormat: 0x3000 <- Undefined :( + ProtectionStatus: 0xe921 + ObjectCompressedSize: 5593452 + ThumbFormat: 0x0000 + ThumbCompressedSize: 0 + ThumbPixWidth: 0 + ThumbPixHeight: 0 + ImagePixWidth: 0 + ImagePixHeight: 0 + ImageBitDepth: 24 + ParentObject: 0x000a0000 + AssociationType: 0x0000 + AssociationDesc: 0x00000000 + SequenceNumber: 0x00000000 + +Here we read all device properties the device has including funny +DRM data: + + +1.036986 gphoto2-port(2): Writing 16=0x10 byte(s) to port... +1.037002 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: +0000 10 00 00 00 01 00 14 10-83 00 00 00 01 d4 00 00 ................ + +1.037062 gphoto2-port(2): Reading 512=0x200 bytes from port... +1.041863 gphoto2-port(2): Could only read 58 out of 512 byte(s) +1.041879 gphoto2-port(3): Hexdump of 58 = 0x3a bytes follows: +0000 3a 00 00 00 02 00 14 10-83 00 00 00 01 d4 ff ff :............... +0010 00 01 00 00 12 57 00 4d-00 50 00 20 00 31 00 30 .....W.M.P. .1.0 +0020 00 3b 00 20 00 4e 00 61-00 70 00 73 00 74 00 65 .;. .N.a.p.s.t.e +0030 00 72 00 3b 00 20 00 00-00 00 .r.;. .... + +1.041897 gphoto2-port(2): Reading 512=0x200 bytes from port... +1.042059 gphoto2-port(2): Could only read 12 out of 512 byte(s) +1.042075 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-83 00 00 00 ....... .... + +1.042098 gphoto2-port(2): Writing 16=0x10 byte(s) to port... +1.042113 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: +0000 10 00 00 00 01 00 14 10-84 00 00 00 02 d4 00 00 ................ + +1.042312 gphoto2-port(2): Reading 512=0x200 bytes from port... +1.043934 gphoto2-port(2): Could only read 65 out of 512 byte(s) +1.043951 gphoto2-port(3): Hexdump of 65 = 0x41 bytes follows: +0000 40 00 00 00 02 00 14 10-84 00 00 00 02 d4 ff ff @............... +0010 00 0b 69 00 72 00 69 00-76 00 65 00 72 00 20 00 ..i.r.i.v.e.r. . +0020 54 00 31 00 30 00 00 00-0b 69 00 72 00 69 00 76 T.1.0....i.r.i.v +0030 00 65 00 72 00 20 00 54-00 31 00 30 00 00 00 00 .e.r. .T.1.0.... +0040 00 - . + +1.043969 gphoto2-port(2): Reading 512=0x200 bytes from port... +1.044809 gphoto2-port(2): Could only read 12 out of 512 byte(s) +1.044824 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-84 00 00 00 ....... .... + +1.044847 gphoto2-port(2): Writing 16=0x10 byte(s) to port... +1.044862 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: +0000 10 00 00 00 01 00 14 10-85 00 00 00 01 d1 00 00 ................ + +1.044936 gphoto2-port(2): Reading 512=0x200 bytes from port... +1.173878 gphoto2-port(2): Could only read 214 out of 512 byte(s) +1.173922 gphoto2-port(3): Hexdump of 214 = 0xd6 bytes follows: +0000 d6 00 00 00 02 00 14 10-85 00 00 00 5e 00 00 00 ............^... +0010 3c 00 44 00 52 00 4d 00-43 00 4c 00 4f 00 43 00 <.D.R.M.C.L.O.C. +0020 4b 00 20 00 74 00 79 00-70 00 65 00 3d 00 22 00 K. .t.y.p.e.=.". +0030 73 00 74 00 61 00 74 00-75 00 73 00 22 00 3e 00 s.t.a.t.u.s.".>. +0040 3c 00 56 00 41 00 4c 00-55 00 45 00 3e 00 23 00 <.V.A.L.U.E.>.#. +0050 32 00 30 00 30 00 35 00-30 00 31 00 31 00 30 00 2.0.0.5.0.1.1.0. +0060 20 00 30 00 38 00 3a 00-35 00 30 00 3a 00 34 00 .0.8.:.5.0.:.4. +0070 34 00 5a 00 23 00 3c 00-2f 00 56 00 41 00 4c 00 4.Z.#.<./.V.A.L. +0080 55 00 45 00 3e 00 3c 00-46 00 4c 00 41 00 47 00 U.E.>.<.F.L.A.G. +0090 3e 00 44 00 52 00 4d 00-5f 00 43 00 4c 00 4b 00 >.D.R.M._.C.L.K. +00a0 5f 00 53 00 45 00 54 00-3c 00 2f 00 46 00 4c 00 _.S.E.T.<./.F.L. +00b0 41 00 47 00 3e 00 3c 00-2f 00 44 00 52 00 4d 00 A.G.>.<./.D.R.M. +00c0 43 00 4c 00 4f 00 43 00-4b 00 3e 00 00 72 00 69 C.L.O.C.K.>..r.i +00d0 00 76 00 65 00 00 - .v.e.. + +1.173949 gphoto2-port(2): Reading 512=0x200 bytes from port... +1.174065 gphoto2-port(2): Could only read 12 out of 512 byte(s) +1.174082 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-85 00 00 00 ....... .... + +1.174109 gphoto2-port(2): Writing 16=0x10 byte(s) to port... +1.174125 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: +0000 10 00 00 00 01 00 14 10-86 00 00 00 02 d1 00 00 ................ + +1.174193 gphoto2-port(2): Reading 512=0x200 bytes from port... +1.281901 gphoto2-port(3): Hexdump of 512 = 0x200 bytes follows: +0000 0a 15 00 00 02 00 14 10-86 00 00 00 78 0a 00 00 ............x... +0010 ff fe 3c 00 44 00 45 00-56 00 43 00 45 00 52 00 ..<.D.E.V.C.E.R. +0020 54 00 20 00 76 00 65 00-72 00 73 00 69 00 6f 00 T. .v.e.r.s.i.o. +0030 6e 00 3d 00 22 00 31 00-2e 00 30 00 22 00 3e 00 n.=.".1...0.".>. +0040 3c 00 43 00 45 00 52 00-54 00 49 00 46 00 49 00 <.C.E.R.T.I.F.I. +0050 43 00 41 00 54 00 45 00-20 00 74 00 79 00 70 00 C.A.T.E. .t.y.p. +0060 65 00 3d 00 22 00 44 00-45 00 56 00 49 00 43 00 e.=.".D.E.V.I.C. +0070 45 00 22 00 3e 00 3c 00-44 00 41 00 54 00 41 00 E.".>.<.D.A.T.A. +0080 3e 00 3c 00 55 00 4e 00-49 00 51 00 55 00 45 00 >.<.U.N.I.Q.U.E. +0090 49 00 44 00 20 00 70 00-72 00 69 00 76 00 61 00 I.D. .p.r.i.v.a. +00a0 74 00 65 00 3d 00 22 00-31 00 22 00 3e 00 43 00 t.e.=.".1.".>.C. +00b0 67 00 6f 00 4b 00 43 00-67 00 6f 00 4b 00 43 00 g.o.K.C.g.o.K.C. +00c0 67 00 6f 00 4b 00 43 00-67 00 6f 00 4b 00 43 00 g.o.K.C.g.o.K.C. +00d0 67 00 6f 00 4b 00 43 00-67 00 6f 00 4b 00 43 00 g.o.K.C.g.o.K.C. +00e0 67 00 6f 00 3d 00 3c 00-2f 00 55 00 4e 00 49 00 g.o.=.<./.U.N.I. +00f0 51 00 55 00 45 00 49 00-44 00 3e 00 3c 00 50 00 Q.U.E.I.D.>.<.P. +0100 55 00 42 00 4c 00 49 00-43 00 4b 00 45 00 59 00 U.B.L.I.C.K.E.Y. +0110 20 00 70 00 72 00 69 00-76 00 61 00 74 00 65 00 .p.r.i.v.a.t.e. +0120 3d 00 22 00 31 00 22 00-3e 00 72 00 42 00 37 00 =.".1.".>.r.B.7. +0130 48 00 74 00 4b 00 73 00-55 00 74 00 42 00 6a 00 H.t.K.s.U.t.B.j. +0140 75 00 56 00 47 00 70 00-44 00 63 00 51 00 49 00 u.V.G.p.D.c.Q.I. +0150 77 00 35 00 62 00 5a 00-2f 00 62 00 45 00 75 00 w.5.b.Z./.b.E.u. +0160 57 00 42 00 2b 00 55 00-69 00 6a 00 78 00 43 00 W.B.+.U.i.j.x.C. +0170 78 00 6b 00 55 00 44 00-41 00 6a 00 4b 00 4f 00 x.k.U.D.A.j.K.O. +0180 2f 00 43 00 65 00 72 00-36 00 58 00 2b 00 34 00 /.C.e.r.6.X.+.4. +0190 77 00 53 00 77 00 3d 00-3d 00 3c 00 2f 00 50 00 w.S.w.=.=.<./.P. +01a0 55 00 42 00 4c 00 49 00-43 00 4b 00 45 00 59 00 U.B.L.I.C.K.E.Y. +01b0 3e 00 3c 00 4b 00 45 00-59 00 44 00 41 00 54 00 >.<.K.E.Y.D.A.T. +01c0 41 00 3e 00 62 00 6f 00-79 00 5a 00 4c 00 54 00 A.>.b.o.y.Z.L.T. +01d0 31 00 6d 00 4c 00 30 00-61 00 64 00 46 00 35 00 1.m.L.0.a.d.F.5. +01e0 64 00 72 00 36 00 6a 00-46 00 36 00 2b 00 75 00 d.r.6.j.F.6.+.u. +01f0 55 00 31 00 33 00 74 00-6b 00 3d 00 3c 00 2f 00 U.1.3.t.k.=.<./. + +1.281971 gphoto2-port(2): Reading 4096=0x1000 bytes from port... +1.282360 gphoto2-port(3): Hexdump of 4096 = 0x1000 bytes follows: +0000 4b 00 45 00 59 00 44 00-41 00 54 00 41 00 3e 00 K.E.Y.D.A.T.A.>. +0010 3c 00 2f 00 44 00 41 00-54 00 41 00 3e 00 3c 00 <./.D.A.T.A.>.<. +0020 4d 00 53 00 44 00 52 00-4d 00 5f 00 53 00 49 00 M.S.D.R.M._.S.I. +0030 47 00 4e 00 41 00 54 00-55 00 52 00 45 00 5f 00 G.N.A.T.U.R.E._. +0040 56 00 41 00 4c 00 55 00-45 00 3e 00 48 00 57 00 V.A.L.U.E.>.H.W. +0050 61 00 46 00 30 00 66 00-46 00 45 00 4f 00 44 00 a.F.0.f.F.E.O.D. +0060 57 00 69 00 70 00 78 00-63 00 76 00 46 00 6f 00 W.i.p.x.c.v.F.o. +0070 2f 00 38 00 73 00 4e 00-61 00 7a 00 75 00 69 00 /.8.s.N.a.z.u.i. +0080 4e 00 51 00 31 00 30 00-57 00 41 00 37 00 42 00 N.Q.1.0.W.A.7.B. +0090 4c 00 54 00 6e 00 71 00-78 00 4a 00 77 00 50 00 L.T.n.q.x.J.w.P. +00a0 48 00 2b 00 2b 00 74 00-6a 00 78 00 31 00 64 00 H.+.+.t.j.x.1.d. +00b0 50 00 66 00 4c 00 51 00-3d 00 3d 00 3c 00 2f 00 P.f.L.Q.=.=.<./. +00c0 4d 00 53 00 44 00 52 00-4d 00 5f 00 53 00 49 00 M.S.D.R.M._.S.I. +00d0 47 00 4e 00 41 00 54 00-55 00 52 00 45 00 5f 00 G.N.A.T.U.R.E._. +00e0 56 00 41 00 4c 00 55 00-45 00 3e 00 3c 00 53 00 V.A.L.U.E.>.<.S. +00f0 59 00 4d 00 53 00 49 00-47 00 4e 00 41 00 54 00 Y.M.S.I.G.N.A.T. +0100 55 00 52 00 45 00 3e 00-67 00 32 00 74 00 6d 00 U.R.E.>.g.2.t.m. +0110 66 00 47 00 59 00 61 00-65 00 51 00 76 00 58 00 f.G.Y.a.e.Q.v.X. +0120 36 00 38 00 6c 00 67 00-35 00 43 00 31 00 54 00 6.8.l.g.5.C.1.T. +0130 36 00 53 00 77 00 47 00-72 00 59 00 6f 00 3d 00 6.S.w.G.r.Y.o.=. +0140 3c 00 2f 00 53 00 59 00-4d 00 53 00 49 00 47 00 <./.S.Y.M.S.I.G. +0150 4e 00 41 00 54 00 55 00-52 00 45 00 3e 00 3c 00 N.A.T.U.R.E.>.<. +0160 2f 00 43 00 45 00 52 00-54 00 49 00 46 00 49 00 /.C.E.R.T.I.F.I. +0170 43 00 41 00 54 00 45 00-3e 00 3c 00 46 00 41 00 C.A.T.E.>.<.F.A. +0180 4c 00 4c 00 42 00 41 00-43 00 4b 00 3e 00 3c 00 L.L.B.A.C.K.>.<. +0190 53 00 45 00 43 00 55 00-52 00 49 00 54 00 59 00 S.E.C.U.R.I.T.Y. +01a0 56 00 45 00 52 00 53 00-49 00 4f 00 4e 00 3e 00 V.E.R.S.I.O.N.>. +01b0 32 00 2e 00 34 00 2e 00-31 00 30 00 32 00 2e 00 2...4...1.0.2... +01c0 33 00 3c 00 2f 00 53 00-45 00 43 00 55 00 52 00 3.<./.S.E.C.U.R. +01d0 49 00 54 00 59 00 56 00-45 00 52 00 53 00 49 00 I.T.Y.V.E.R.S.I. +01e0 4f 00 4e 00 3e 00 3c 00-43 00 45 00 52 00 54 00 O.N.>.<.C.E.R.T. +01f0 49 00 46 00 49 00 43 00-41 00 54 00 45 00 20 00 I.F.I.C.A.T.E. . +0200 70 00 72 00 69 00 76 00-61 00 74 00 65 00 3d 00 p.r.i.v.a.t.e.=. +0210 22 00 31 00 22 00 3e 00-72 00 42 00 37 00 48 00 ".1.".>.r.B.7.H. +0220 74 00 4b 00 73 00 55 00-74 00 42 00 6a 00 75 00 t.K.s.U.t.B.j.u. +0230 56 00 47 00 70 00 44 00-63 00 51 00 49 00 77 00 V.G.p.D.c.Q.I.w. +0240 35 00 62 00 5a 00 2f 00-62 00 45 00 75 00 57 00 5.b.Z./.b.E.u.W. +0250 42 00 2b 00 55 00 69 00-6a 00 78 00 43 00 78 00 B.+.U.i.j.x.C.x. +0260 6b 00 55 00 44 00 41 00-6a 00 4b 00 4f 00 2f 00 k.U.D.A.j.K.O./. +0270 43 00 65 00 72 00 36 00-58 00 2b 00 34 00 77 00 C.e.r.6.X.+.4.w. +0280 53 00 77 00 49 00 45 00-5a 00 67 00 4e 00 2b 00 S.w.I.E.Z.g.N.+. +0290 34 00 75 00 52 00 43 00-41 00 58 00 53 00 44 00 4.u.R.C.A.X.S.D. +02a0 69 00 66 00 4c 00 39 00-46 00 44 00 6a 00 6f 00 i.f.L.9.F.D.j.o. +02b0 65 00 75 00 73 00 63 00-5a 00 57 00 2b 00 77 00 e.u.s.c.Z.W.+.w. +02c0 49 00 44 00 36 00 46 00-51 00 4a 00 75 00 55 00 I.D.6.F.Q.J.u.U. +02d0 63 00 43 00 39 00 59 00-70 00 4c 00 6c 00 4b 00 c.C.9.Y.p.L.l.K. +02e0 75 00 39 00 6b 00 49 00-7a 00 32 00 55 00 49 00 u.9.k.I.z.2.U.I. +02f0 62 00 6f 00 34 00 6f 00-3c 00 2f 00 43 00 45 00 b.o.4.o.<./.C.E. +0300 52 00 54 00 49 00 46 00-49 00 43 00 41 00 54 00 R.T.I.F.I.C.A.T. +0310 45 00 3e 00 3c 00 2f 00-46 00 41 00 4c 00 4c 00 E.>.<./.F.A.L.L. +0320 42 00 41 00 43 00 4b 00-3e 00 3c 00 43 00 45 00 B.A.C.K.>.<.C.E. +0330 52 00 54 00 49 00 46 00-49 00 43 00 41 00 54 00 R.T.I.F.I.C.A.T. +0340 45 00 20 00 74 00 79 00-70 00 65 00 3d 00 22 00 E. .t.y.p.e.=.". +0350 47 00 52 00 4f 00 55 00-50 00 22 00 3e 00 3c 00 G.R.O.U.P.".>.<. +0360 44 00 41 00 54 00 41 00-3e 00 3c 00 4e 00 41 00 D.A.T.A.>.<.N.A. +0370 4d 00 45 00 3e 00 69 00-52 00 69 00 76 00 65 00 M.E.>.i.R.i.v.e. +0380 72 00 20 00 48 00 31 00-30 00 20 00 53 00 65 00 r. .H.1.0. .S.e. +0390 72 00 69 00 65 00 73 00-3c 00 2f 00 4e 00 41 00 r.i.e.s.<./.N.A. +03a0 4d 00 45 00 3e 00 3c 00-4d 00 41 00 4e 00 55 00 M.E.>.<.M.A.N.U. +03b0 46 00 41 00 43 00 54 00-55 00 52 00 45 00 52 00 F.A.C.T.U.R.E.R. +03c0 3e 00 69 00 52 00 69 00-76 00 65 00 72 00 3c 00 >.i.R.i.v.e.r.<. +03d0 2f 00 4d 00 41 00 4e 00-55 00 46 00 41 00 43 00 /.M.A.N.U.F.A.C. +03e0 54 00 55 00 52 00 45 00-52 00 3e 00 3c 00 4d 00 T.U.R.E.R.>.<.M. +03f0 41 00 4b 00 45 00 3e 00-69 00 52 00 69 00 76 00 A.K.E.>.i.R.i.v. +0400 65 00 72 00 3c 00 2f 00-4d 00 41 00 4b 00 45 00 e.r.<./.M.A.K.E. +0410 3e 00 3c 00 44 00 49 00-53 00 54 00 52 00 49 00 >.<.D.I.S.T.R.I. +0420 42 00 55 00 54 00 4f 00-52 00 3e 00 52 00 65 00 B.U.T.O.R.>.R.e. +0430 69 00 67 00 6e 00 43 00-6f 00 6d 00 3c 00 2f 00 i.g.n.C.o.m.<./. +0440 44 00 49 00 53 00 54 00-52 00 49 00 42 00 55 00 D.I.S.T.R.I.B.U. +0450 54 00 4f 00 52 00 3e 00-3c 00 4d 00 4f 00 44 00 T.O.R.>.<.M.O.D. +0460 45 00 4c 00 3e 00 48 00-31 00 30 00 3c 00 2f 00 E.L.>.H.1.0.<./. +0470 4d 00 4f 00 44 00 45 00-4c 00 3e 00 3c 00 53 00 M.O.D.E.L.>.<.S. +0480 45 00 43 00 55 00 52 00-49 00 54 00 59 00 4c 00 E.C.U.R.I.T.Y.L. +0490 45 00 56 00 45 00 4c 00-3e 00 32 00 30 00 30 00 E.V.E.L.>.2.0.0. +04a0 30 00 3c 00 2f 00 53 00-45 00 43 00 55 00 52 00 0.<./.S.E.C.U.R. +04b0 49 00 54 00 59 00 4c 00-45 00 56 00 45 00 4c 00 I.T.Y.L.E.V.E.L. +04c0 3e 00 3c 00 48 00 41 00-52 00 44 00 57 00 41 00 >.<.H.A.R.D.W.A. +04d0 52 00 45 00 5f 00 56 00-45 00 52 00 5f 00 4d 00 R.E._.V.E.R._.M. +04e0 41 00 4a 00 4f 00 52 00-3e 00 31 00 3c 00 2f 00 A.J.O.R.>.1.<./. +04f0 48 00 41 00 52 00 44 00-57 00 41 00 52 00 45 00 H.A.R.D.W.A.R.E. +0500 5f 00 56 00 45 00 52 00-5f 00 4d 00 41 00 4a 00 _.V.E.R._.M.A.J. +0510 4f 00 52 00 3e 00 3c 00-48 00 41 00 52 00 44 00 O.R.>.<.H.A.R.D. +0520 57 00 41 00 52 00 45 00-5f 00 56 00 45 00 52 00 W.A.R.E._.V.E.R. +0530 5f 00 4d 00 49 00 4e 00-4f 00 52 00 3e 00 30 00 _.M.I.N.O.R.>.0. +0540 3c 00 2f 00 48 00 41 00-52 00 44 00 57 00 41 00 <./.H.A.R.D.W.A. +0550 52 00 45 00 5f 00 56 00-45 00 52 00 5f 00 4d 00 R.E._.V.E.R._.M. +0560 49 00 4e 00 4f 00 52 00-3e 00 3c 00 46 00 49 00 I.N.O.R.>.<.F.I. +0570 52 00 4d 00 57 00 41 00-52 00 45 00 5f 00 56 00 R.M.W.A.R.E._.V. +0580 45 00 52 00 5f 00 4d 00-41 00 4a 00 4f 00 52 00 E.R._.M.A.J.O.R. +0590 3e 00 31 00 3c 00 2f 00-46 00 49 00 52 00 4d 00 >.1.<./.F.I.R.M. +05a0 57 00 41 00 52 00 45 00-5f 00 56 00 45 00 52 00 W.A.R.E._.V.E.R. +05b0 5f 00 4d 00 41 00 4a 00-4f 00 52 00 3e 00 3c 00 _.M.A.J.O.R.>.<. +05c0 46 00 49 00 52 00 4d 00-57 00 41 00 52 00 45 00 F.I.R.M.W.A.R.E. +05d0 5f 00 56 00 45 00 52 00-5f 00 4d 00 49 00 4e 00 _.V.E.R._.M.I.N. +05e0 4f 00 52 00 3e 00 30 00-3c 00 2f 00 46 00 49 00 O.R.>.0.<./.F.I. +05f0 52 00 4d 00 57 00 41 00-52 00 45 00 5f 00 56 00 R.M.W.A.R.E._.V. +0600 45 00 52 00 5f 00 4d 00-49 00 4e 00 4f 00 52 00 E.R._.M.I.N.O.R. +0610 3e 00 3c 00 46 00 45 00-41 00 54 00 55 00 52 00 >.<.F.E.A.T.U.R. +0620 45 00 53 00 3e 00 3c 00-43 00 4c 00 4f 00 43 00 E.S.>.<.C.L.O.C. +0630 4b 00 3e 00 32 00 3c 00-2f 00 43 00 4c 00 4f 00 K.>.2.<./.C.L.O. +0640 43 00 4b 00 3e 00 3c 00-53 00 45 00 43 00 55 00 C.K.>.<.S.E.C.U. +0650 52 00 45 00 43 00 4c 00-4f 00 43 00 4b 00 3e 00 R.E.C.L.O.C.K.>. +0660 3c 00 55 00 52 00 4c 00-3e 00 68 00 74 00 74 00 <.U.R.L.>.h.t.t. +0670 70 00 3a 00 2f 00 2f 00-67 00 6f 00 2e 00 6d 00 p.:././.g.o...m. +0680 69 00 63 00 72 00 6f 00-73 00 6f 00 66 00 74 00 i.c.r.o.s.o.f.t. +0690 2e 00 63 00 6f 00 6d 00-2f 00 66 00 77 00 6c 00 ..c.o.m./.f.w.l. +06a0 69 00 6e 00 6b 00 2f 00-3f 00 4c 00 69 00 6e 00 i.n.k./.?.L.i.n. +06b0 6b 00 49 00 64 00 3d 00-32 00 35 00 38 00 31 00 k.I.d.=.2.5.8.1. +06c0 37 00 3c 00 2f 00 55 00-52 00 4c 00 3e 00 3c 00 7.<./.U.R.L.>.<. +06d0 50 00 55 00 42 00 4c 00-49 00 43 00 4b 00 45 00 P.U.B.L.I.C.K.E. +06e0 59 00 3e 00 21 00 43 00-4e 00 68 00 76 00 76 00 Y.>.!.C.N.h.v.v. +06f0 7a 00 31 00 57 00 61 00-4e 00 56 00 31 00 41 00 z.1.W.a.N.V.1.A. +0700 46 00 55 00 6d 00 65 00-74 00 78 00 6b 00 76 00 F.U.m.e.t.x.k.v. +0710 6d 00 39 00 69 00 44 00-34 00 55 00 72 00 45 00 m.9.i.D.4.U.r.E. +0720 39 00 63 00 6e 00 47 00-55 00 69 00 21 00 71 00 9.c.n.G.U.i.!.q. +0730 63 00 71 00 64 00 78 00-4d 00 69 00 58 00 6d 00 c.q.d.x.M.i.X.m. +0740 44 00 31 00 2a 00 69 00-6b 00 59 00 47 00 41 00 D.1.*.i.k.Y.G.A. +0750 3d 00 3d 00 3c 00 2f 00-50 00 55 00 42 00 4c 00 =.=.<./.P.U.B.L. +0760 49 00 43 00 4b 00 45 00-59 00 3e 00 3c 00 2f 00 I.C.K.E.Y.>.<./. +0770 53 00 45 00 43 00 55 00-52 00 45 00 43 00 4c 00 S.E.C.U.R.E.C.L. +0780 4f 00 43 00 4b 00 3e 00-3c 00 4d 00 45 00 54 00 O.C.K.>.<.M.E.T. +0790 45 00 52 00 49 00 4e 00-47 00 3e 00 31 00 3c 00 E.R.I.N.G.>.1.<. +07a0 2f 00 4d 00 45 00 54 00-45 00 52 00 49 00 4e 00 /.M.E.T.E.R.I.N. +07b0 47 00 3e 00 3c 00 4c 00-49 00 43 00 45 00 4e 00 G.>.<.L.I.C.E.N. +07c0 53 00 45 00 5f 00 41 00-43 00 51 00 3e 00 31 00 S.E._.A.C.Q.>.1. +07d0 3c 00 2f 00 4c 00 49 00-43 00 45 00 4e 00 53 00 <./.L.I.C.E.N.S. +07e0 45 00 5f 00 41 00 43 00-51 00 3e 00 3c 00 4c 00 E._.A.C.Q.>.<.L. +07f0 49 00 43 00 45 00 4e 00-53 00 45 00 5f 00 53 00 I.C.E.N.S.E._.S. +0800 59 00 4e 00 43 00 3e 00-31 00 3c 00 2f 00 4c 00 Y.N.C.>.1.<./.L. +0810 49 00 43 00 45 00 4e 00-53 00 45 00 5f 00 53 00 I.C.E.N.S.E._.S. +0820 59 00 4e 00 43 00 3e 00-3c 00 45 00 4e 00 43 00 Y.N.C.>.<.E.N.C. +0830 52 00 59 00 50 00 54 00-49 00 4f 00 4e 00 3e 00 R.Y.P.T.I.O.N.>. +0840 31 00 3c 00 2f 00 45 00-4e 00 43 00 52 00 59 00 1.<./.E.N.C.R.Y. +0850 50 00 54 00 49 00 4f 00-4e 00 3e 00 3c 00 53 00 P.T.I.O.N.>.<.S. +0860 59 00 4d 00 4d 00 45 00-54 00 52 00 49 00 43 00 Y.M.M.E.T.R.I.C. +0870 5f 00 4f 00 50 00 54 00-3e 00 31 00 3c 00 2f 00 _.O.P.T.>.1.<./. +0880 53 00 59 00 4d 00 4d 00-45 00 54 00 52 00 49 00 S.Y.M.M.E.T.R.I. +0890 43 00 5f 00 4f 00 50 00-54 00 3e 00 3c 00 2f 00 C._.O.P.T.>.<./. +08a0 46 00 45 00 41 00 54 00-55 00 52 00 45 00 53 00 F.E.A.T.U.R.E.S. +08b0 3e 00 3c 00 4c 00 49 00-4d 00 49 00 54 00 53 00 >.<.L.I.M.I.T.S. +08c0 3e 00 3c 00 4d 00 41 00-58 00 43 00 48 00 41 00 >.<.M.A.X.C.H.A. +08d0 49 00 4e 00 44 00 45 00-50 00 54 00 48 00 3e 00 I.N.D.E.P.T.H.>. +08e0 32 00 3c 00 2f 00 4d 00-41 00 58 00 43 00 48 00 2.<./.M.A.X.C.H. +08f0 41 00 49 00 4e 00 44 00-45 00 50 00 54 00 48 00 A.I.N.D.E.P.T.H. +0900 3e 00 3c 00 4d 00 41 00-58 00 4c 00 49 00 43 00 >.<.M.A.X.L.I.C. +0910 45 00 4e 00 53 00 45 00-53 00 49 00 5a 00 45 00 E.N.S.E.S.I.Z.E. +0920 3e 00 31 00 30 00 32 00-34 00 30 00 3c 00 2f 00 >.1.0.2.4.0.<./. +0930 4d 00 41 00 58 00 4c 00-49 00 43 00 45 00 4e 00 M.A.X.L.I.C.E.N. +0940 53 00 45 00 53 00 49 00-5a 00 45 00 3e 00 3c 00 S.E.S.I.Z.E.>.<. +0950 4d 00 41 00 58 00 48 00-45 00 41 00 44 00 45 00 M.A.X.H.E.A.D.E. +0960 52 00 53 00 49 00 5a 00-45 00 3e 00 35 00 31 00 R.S.I.Z.E.>.5.1. +0970 32 00 30 00 3c 00 2f 00-4d 00 41 00 58 00 48 00 2.0.<./.M.A.X.H. +0980 45 00 41 00 44 00 45 00-52 00 53 00 49 00 5a 00 E.A.D.E.R.S.I.Z. +0990 45 00 3e 00 3c 00 2f 00-4c 00 49 00 4d 00 49 00 E.>.<./.L.I.M.I. +09a0 54 00 53 00 3e 00 3c 00-50 00 55 00 42 00 4c 00 T.S.>.<.P.U.B.L. +09b0 49 00 43 00 4b 00 45 00-59 00 3e 00 38 00 6a 00 I.C.K.E.Y.>.8.j. +09c0 65 00 71 00 34 00 50 00-79 00 4a 00 5a 00 55 00 e.q.4.P.y.J.Z.U. +09d0 4c 00 38 00 4e 00 70 00-55 00 32 00 2b 00 2f 00 L.8.N.p.U.2.+./. +09e0 74 00 67 00 76 00 55 00-5a 00 43 00 39 00 69 00 t.g.v.U.Z.C.9.i. +09f0 6a 00 6e 00 33 00 52 00-64 00 6c 00 4b 00 33 00 j.n.3.R.d.l.K.3. +0a00 77 00 64 00 30 00 34 00-49 00 77 00 73 00 36 00 w.d.0.4.I.w.s.6. +0a10 6f 00 58 00 48 00 6f 00-41 00 2b 00 44 00 36 00 o.X.H.o.A.+.D.6. +0a20 76 00 46 00 66 00 51 00-3d 00 3d 00 3c 00 2f 00 v.F.f.Q.=.=.<./. +0a30 50 00 55 00 42 00 4c 00-49 00 43 00 4b 00 45 00 P.U.B.L.I.C.K.E. +0a40 59 00 3e 00 3c 00 2f 00-44 00 41 00 54 00 41 00 Y.>.<./.D.A.T.A. +0a50 3e 00 3c 00 4d 00 53 00-44 00 52 00 4d 00 5f 00 >.<.M.S.D.R.M._. +0a60 53 00 49 00 47 00 4e 00-41 00 54 00 55 00 52 00 S.I.G.N.A.T.U.R. +0a70 45 00 5f 00 56 00 41 00-4c 00 55 00 45 00 3e 00 E._.V.A.L.U.E.>. +0a80 48 00 5a 00 38 00 35 00-74 00 47 00 66 00 35 00 H.Z.8.5.t.G.f.5. +0a90 56 00 6e 00 44 00 77 00-4b 00 4c 00 47 00 71 00 V.n.D.w.K.L.G.q. +0aa0 32 00 53 00 30 00 4f 00-6c 00 4b 00 2f 00 6f 00 2.S.0.O.l.K./.o. +0ab0 4a 00 43 00 4b 00 62 00-43 00 78 00 33 00 41 00 J.C.K.b.C.x.3.A. +0ac0 32 00 79 00 75 00 64 00-7a 00 4d 00 4f 00 76 00 2.y.u.d.z.M.O.v. +0ad0 38 00 45 00 52 00 77 00-69 00 36 00 64 00 72 00 8.E.R.w.i.6.d.r. +0ae0 48 00 57 00 35 00 78 00-4f 00 41 00 3d 00 3d 00 H.W.5.x.O.A.=.=. +0af0 3c 00 2f 00 4d 00 53 00-44 00 52 00 4d 00 5f 00 <./.M.S.D.R.M._. +0b00 53 00 49 00 47 00 4e 00-41 00 54 00 55 00 52 00 S.I.G.N.A.T.U.R. +0b10 45 00 5f 00 56 00 41 00-4c 00 55 00 45 00 3e 00 E._.V.A.L.U.E.>. +0b20 3c 00 2f 00 43 00 45 00-52 00 54 00 49 00 46 00 <./.C.E.R.T.I.F. +0b30 49 00 43 00 41 00 54 00-45 00 3e 00 3c 00 43 00 I.C.A.T.E.>.<.C. +0b40 45 00 52 00 54 00 49 00-46 00 49 00 43 00 41 00 E.R.T.I.F.I.C.A. +0b50 54 00 45 00 20 00 74 00-79 00 70 00 65 00 3d 00 T.E. .t.y.p.e.=. +0b60 22 00 41 00 55 00 54 00-48 00 4f 00 52 00 49 00 ".A.U.T.H.O.R.I. +0b70 5a 00 41 00 54 00 49 00-4f 00 4e 00 22 00 3e 00 Z.A.T.I.O.N.".>. +0b80 3c 00 44 00 41 00 54 00-41 00 3e 00 3c 00 53 00 <.D.A.T.A.>.<.S. +0b90 45 00 43 00 55 00 52 00-49 00 54 00 59 00 4c 00 E.C.U.R.I.T.Y.L. +0ba0 45 00 56 00 45 00 4c 00-3e 00 32 00 30 00 30 00 E.V.E.L.>.2.0.0. +0bb0 30 00 3c 00 2f 00 53 00-45 00 43 00 55 00 52 00 0.<./.S.E.C.U.R. +0bc0 49 00 54 00 59 00 4c 00-45 00 56 00 45 00 4c 00 I.T.Y.L.E.V.E.L. +0bd0 3e 00 3c 00 41 00 55 00-54 00 48 00 5f 00 49 00 >.<.A.U.T.H._.I. +0be0 44 00 3e 00 33 00 35 00-39 00 3c 00 2f 00 41 00 D.>.3.5.9.<./.A. +0bf0 55 00 54 00 48 00 5f 00-49 00 44 00 3e 00 3c 00 U.T.H._.I.D.>.<. +0c00 50 00 55 00 42 00 4c 00-49 00 43 00 4b 00 45 00 P.U.B.L.I.C.K.E. +0c10 59 00 3e 00 44 00 70 00-4d 00 68 00 67 00 61 00 Y.>.D.p.M.h.g.a. +0c20 5a 00 6b 00 58 00 55 00-46 00 4e 00 46 00 49 00 Z.k.X.U.F.N.F.I. +0c30 73 00 34 00 4b 00 4a 00-65 00 37 00 53 00 39 00 s.4.K.J.e.7.S.9. +0c40 4d 00 5a 00 59 00 77 00-75 00 45 00 31 00 62 00 M.Z.Y.w.u.E.1.b. +0c50 42 00 69 00 63 00 36 00-41 00 56 00 36 00 77 00 B.i.c.6.A.V.6.w. +0c60 41 00 63 00 37 00 49 00-72 00 30 00 53 00 74 00 A.c.7.I.r.0.S.t. +0c70 66 00 78 00 38 00 55 00-2b 00 53 00 4b 00 77 00 f.x.8.U.+.S.K.w. +0c80 3d 00 3d 00 3c 00 2f 00-50 00 55 00 42 00 4c 00 =.=.<./.P.U.B.L. +0c90 49 00 43 00 4b 00 45 00-59 00 3e 00 3c 00 2f 00 I.C.K.E.Y.>.<./. +0ca0 44 00 41 00 54 00 41 00-3e 00 3c 00 4d 00 53 00 D.A.T.A.>.<.M.S. +0cb0 44 00 52 00 4d 00 5f 00-53 00 49 00 47 00 4e 00 D.R.M._.S.I.G.N. +0cc0 41 00 54 00 55 00 52 00-45 00 5f 00 56 00 41 00 A.T.U.R.E._.V.A. +0cd0 4c 00 55 00 45 00 3e 00-47 00 57 00 73 00 63 00 L.U.E.>.G.W.s.c. +0ce0 77 00 48 00 6e 00 44 00-6f 00 53 00 61 00 7a 00 w.H.n.D.o.S.a.z. +0cf0 67 00 42 00 2b 00 59 00-4f 00 50 00 32 00 44 00 g.B.+.Y.O.P.2.D. +0d00 37 00 78 00 72 00 71 00-44 00 69 00 66 00 57 00 7.x.r.q.D.i.f.W. +0d10 45 00 46 00 7a 00 74 00-75 00 6a 00 71 00 41 00 E.F.z.t.u.j.q.A. +0d20 57 00 77 00 72 00 6b 00-4d 00 37 00 6f 00 6e 00 W.w.r.k.M.7.o.n. +0d30 79 00 6e 00 49 00 63 00-66 00 4f 00 42 00 42 00 y.n.I.c.f.O.B.B. +0d40 4d 00 51 00 3d 00 3d 00-3c 00 2f 00 4d 00 53 00 M.Q.=.=.<./.M.S. +0d50 44 00 52 00 4d 00 5f 00-53 00 49 00 47 00 4e 00 D.R.M._.S.I.G.N. +0d60 41 00 54 00 55 00 52 00-45 00 5f 00 56 00 41 00 A.T.U.R.E._.V.A. +0d70 4c 00 55 00 45 00 3e 00-3c 00 2f 00 43 00 45 00 L.U.E.>.<./.C.E. +0d80 52 00 54 00 49 00 46 00-49 00 43 00 41 00 54 00 R.T.I.F.I.C.A.T. +0d90 45 00 3e 00 3c 00 43 00-45 00 52 00 54 00 49 00 E.>.<.C.E.R.T.I. +0da0 46 00 49 00 43 00 41 00-54 00 45 00 20 00 74 00 F.I.C.A.T.E. .t. +0db0 79 00 70 00 65 00 3d 00-22 00 41 00 55 00 54 00 y.p.e.=.".A.U.T. +0dc0 48 00 4f 00 52 00 49 00-5a 00 41 00 54 00 49 00 H.O.R.I.Z.A.T.I. +0dd0 4f 00 4e 00 5f 00 52 00-4f 00 4f 00 54 00 22 00 O.N._.R.O.O.T.". +0de0 3e 00 3c 00 44 00 41 00-54 00 41 00 3e 00 3c 00 >.<.D.A.T.A.>.<. +0df0 41 00 55 00 54 00 48 00-5f 00 49 00 44 00 3e 00 A.U.T.H._.I.D.>. +0e00 31 00 3c 00 2f 00 41 00-55 00 54 00 48 00 5f 00 1.<./.A.U.T.H._. +0e10 49 00 44 00 3e 00 3c 00-50 00 55 00 42 00 4c 00 I.D.>.<.P.U.B.L. +0e20 49 00 43 00 4b 00 45 00-59 00 3e 00 61 00 31 00 I.C.K.E.Y.>.a.1. +0e30 74 00 33 00 68 00 78 00-72 00 67 00 21 00 71 00 t.3.h.x.r.g.!.q. +0e40 62 00 4f 00 67 00 6b 00-74 00 6e 00 62 00 59 00 b.O.g.k.t.n.b.Y. +0e50 61 00 45 00 45 00 69 00-34 00 74 00 65 00 43 00 a.E.E.i.4.t.e.C. +0e60 73 00 65 00 21 00 67 00-7a 00 36 00 52 00 76 00 s.e.!.g.z.6.R.v. +0e70 54 00 50 00 75 00 43 00-21 00 7a 00 69 00 7a 00 T.P.u.C.!.z.i.z. +0e80 4b 00 4a 00 6c 00 70 00-55 00 37 00 78 00 6f 00 K.J.l.p.U.7.x.o. +0e90 64 00 75 00 53 00 77 00-3d 00 3d 00 3c 00 2f 00 d.u.S.w.=.=.<./. +0ea0 50 00 55 00 42 00 4c 00-49 00 43 00 4b 00 45 00 P.U.B.L.I.C.K.E. +0eb0 59 00 3e 00 3c 00 2f 00-44 00 41 00 54 00 41 00 Y.>.<./.D.A.T.A. +0ec0 3e 00 3c 00 4d 00 53 00-44 00 52 00 4d 00 5f 00 >.<.M.S.D.R.M._. +0ed0 53 00 49 00 47 00 4e 00-41 00 54 00 55 00 52 00 S.I.G.N.A.T.U.R. +0ee0 45 00 5f 00 56 00 41 00-4c 00 55 00 45 00 3e 00 E._.V.A.L.U.E.>. +0ef0 51 00 6e 00 64 00 48 00-64 00 4a 00 34 00 5a 00 Q.n.d.H.d.J.4.Z. +0f00 6f 00 53 00 67 00 76 00-6f 00 6b 00 56 00 43 00 o.S.g.v.o.k.V.C. +0f10 4f 00 57 00 73 00 71 00-56 00 6e 00 76 00 75 00 O.W.s.q.V.n.v.u. +0f20 63 00 6b 00 47 00 4c 00-35 00 63 00 6e 00 36 00 c.k.G.L.5.c.n.6. +0f30 56 00 72 00 75 00 61 00-30 00 6a 00 34 00 74 00 V.r.u.a.0.j.4.t. +0f40 63 00 47 00 42 00 72 00-6a 00 44 00 39 00 50 00 c.G.B.r.j.D.9.P. +0f50 67 00 4e 00 64 00 30 00-41 00 41 00 3d 00 3d 00 g.N.d.0.A.A.=.=. +0f60 3c 00 2f 00 4d 00 53 00-44 00 52 00 4d 00 5f 00 <./.M.S.D.R.M._. +0f70 53 00 49 00 47 00 4e 00-41 00 54 00 55 00 52 00 S.I.G.N.A.T.U.R. +0f80 45 00 5f 00 56 00 41 00-4c 00 55 00 45 00 3e 00 E._.V.A.L.U.E.>. +0f90 3c 00 2f 00 43 00 45 00-52 00 54 00 49 00 46 00 <./.C.E.R.T.I.F. +0fa0 49 00 43 00 41 00 54 00-45 00 3e 00 3c 00 2f 00 I.C.A.T.E.>.<./. +0fb0 44 00 45 00 56 00 43 00-45 00 52 00 54 00 3e 00 D.E.V.C.E.R.T.>. +0fc0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0fd0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0fe0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0ff0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ + +1.282484 gphoto2-port(2): Reading 778=0x30a bytes from port... +1.282702 gphoto2-port(3): Hexdump of 778 = 0x30a bytes follows: +0000 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0080 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +00f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +01f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0200 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0210 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0220 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0230 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0240 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0250 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0260 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0270 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0280 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0290 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02e0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +02f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0300 91 67 f6 5f 2e e2 d6 f0-db 00 .g._...... + +Camera summary: +Model: iriver T10 + device version: MTP 1.03P + serial number: T10-poknlmcfaaaaaampcdada +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com/WMDRMPD: 10.1 +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 4, step 1] value: 4 +Property 0xd401:(read only) (type=0xffff) 'WMP 10; Napster; ' +Property 0xd402:(read only) (type=0xffff) 'iriver T10' +Property 0xd101:(Unknown) (type=0x0) Undefined +Property 0xd102:(Unknown) (type=0x0) Undefined + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/iRiver-u10.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/iRiver-u10.txt new file mode 100644 index 00000000..001ba532 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/iRiver-u10.txt @@ -0,0 +1,87 @@ +Device info: +Manufacturer: iriver + model: iriver U10 + device version: MTP-1.27-N-ENG + serial number: 'xxxxxxxxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com/WMDRMPD: 10.1 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9805 + 0x9810 + 0x9811 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b +Events Supported: +Device Properties Supported: + 0x5001 + 0xd401 + 0xd402 + 0xd101 + 0xd102 + +Kamerazusammenfassung: +Modell: iriver U10 + Geräteversion: MTP-1.27-N-ENG + Seriennummer: xxxxxxxxxxxxxxxxxxxxxxxxx +Händler Kennung: 0x00000006 +Händler Beschreibung: microsoft.com/WMDRMPD: 10.1 + +Aufnahmeformate: MP3 +Anzeigeformate: Association/Directory, MP3, WMA, OGG, Abstract Audio Video Playlist +Unterstützte MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable + MP3/3009: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc46/Artist dc95/MetaGenre de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate + WMA/b901: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc46/Artist dc95/MetaGenre de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate + OGG/b902: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable + Abstract Audio Video Playlist/ba05: dc01/StorageID dc02/ObjectFormat dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: FAT16 System + Label des Speichergerätes: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz + Speichertyp: Eingebauter Speicher + Typ des Dateisystems: Generisch hierarchischer Modus + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 1009516544 (962 MB) + Freier Platz (Bytes): 199227028 (189 MB) + Freier Speicher (Bilder): -1 + +Properties des Geräts: +Batterie Ladezustand(0x5001):(read only) (type=0x2) Range [1 - 4, step 1] value: 4 +Property 0xd401:(read only) (type=0xffff) WMP 10; Napster; ('WMP 10; Napster; ') +Property 0xd402:(read only) (type=0xffff) iriver U10 ('iriver U10') +Property 0xd101:(read only) (type=0x4) 0 +Property 0xd102:(read only) (type=0x4) 0 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-c913.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-c913.txt new file mode 100644 index 00000000..7edfd33e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-c913.txt @@ -0,0 +1,35 @@ +Camera summary: +Model: C913 Digital Camera + device version: 1.0000 + serial number: C913 nnnnnnnnn +Vendor extension ID: 0x00000001 +Vendor extension description: Eastman Kodak PTP Extensions SPD Specification Ver1.00 + +Capture Formats: +Display Formats: JPEG, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00020001: + StorageDescription: None + VolumeLabel: None + Storage Type: Builtin RAM + Filesystemtype: Generic Flat + Access Capability: Read-Write + Maximum Capability: 11599872 (11 MB) + Free Space (Bytes): 9994240 (9 MB) + Free Space (Images): 5 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,10,100] value: +100 +Date Time(0x5011):(readwrite) (type=0xffff) '20081214T092353' +UI Language(0xd006):(read only) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] value: 3 +Property 0xd007:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd008:(read only) (type=0x4) Range [3 - 60, step 1] value: 5 +Property 0xd009:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00b:(read only) (type=0x6) Enumeration [421] value: 421 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-cx6230.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-cx6230.txt new file mode 100644 index 00000000..32ac6e92 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-cx6230.txt @@ -0,0 +1,62 @@ +Manufacturer: Eastman Kodak Company + model: CX6230 Digital Camera + device version: 1.00000 + serial number: 'CX62300372902' +Vendor extension ID: 0x00000001 +Vendor extension description: Eastman Kodak PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100f + 0x1012 + 0x1013 + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b + 0x9005 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x400e +Device Properties Supported: + 0x5001 + 0x5011 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + +Modell: CX6230 Digital Camera + Geräteversion: 1.00000 + Seriennummer: CX62300372902 +Händler Kennung: 0x00000001 +Händler Beschreibung: Eastman Kodak PTP Extensions +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,10,100] value: 100 +Date Time(0x5011):(readwrite) (type=0xffff) '20040915T185131' +UI Language(0xd006):(read only) (type=0x4) Enumeration [1,3,4,5,6,7,8,10] value: 4 +Property 0xd007:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd008:(read only) (type=0x4) Range [5 - 60, step 1] value: 5 +Property 0xd009:(read only) (type=0x4) Enumeration [1,2] value: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-cx7330.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-cx7330.txt new file mode 100644 index 00000000..d9d19889 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-cx7330.txt @@ -0,0 +1,50 @@ +Device info: +Manufacturer: Eastman Kodak Company + model: CX7330 Zoom Digital Camera + device version: 01.0000 +Vendor extension ID: 0x00000001 +Vendor extension description: Eastman Kodak PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100f + 0x1012 + 0x1013 + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b + 0x9005 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x400e +Device Properties Supported: + 0x5001 + 0x5011 + 0xd006 + 0xd007 + 0xd008 + 0xd009 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-ls753.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-ls753.txt new file mode 100644 index 00000000..d41e32b4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-ls753.txt @@ -0,0 +1,57 @@ +Device info: +Manufacturer: Eastman Kodak Company + model: LS753 Zoom Digital Camera + device version: 01.0000 + serial number: 'KCTDDXXXXXXXX' +Vendor extension ID: 0x00000001 +Vendor extension description: Eastman Kodak PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100f + 0x1012 + 0x1013 + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b + 0x9005 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x400e + 0xc001 +Device Properties Supported: + 0x5001 + 0x5011 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + 0xd00a diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-m577.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-m577.txt new file mode 100644 index 00000000..c2f0e4dc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-m577.txt @@ -0,0 +1,41 @@ + Camera summary: +Manufacturer: Eastman Kodak Company +Model: M577 Digital Camera + Version: 01.010007 + Serial Number: KCTNVnnnnnnnn +Vendor Extension ID: 0x1 (4.0) +Vendor Extension Description: Eastman Kodak PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b982) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 6027411456 (5748 MB) + Free Space (Images): 1431 +store_00020001: + StorageDescription: None + VolumeLabel: None + Storage Type: Builtin RAM + Filesystemtype: Generic Flat + Access Capability: Read-Write + Maximum Capability: 22134784 (21 MB) + Free Space (Bytes): 21987328 (20 MB) + Free Space (Images): 1431 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,10,100] value: 100% (100) +Date & Time(0x5011):(readwrite) (type=0xffff) '20140422T053420' +UI Language(0xd006):(read only) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23] value: 1 +Property 0xd00a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00b:(read only) (type=0x6) Enumeration [53] value: 53 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-m753.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-m753.txt new file mode 100644 index 00000000..6f99ec4d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-m753.txt @@ -0,0 +1,113 @@ +Device info: +Manufacturer: Eastman Kodak Company + Model: M753 Zoom Digital Camera + device version: 1.4000 + serial number: 'M753 nnnnnnnnn' +Vendor extension ID: 0x00000001 +Vendor extension version: 400 +Vendor extension description: Eastman Kodak PTP Extensions SPD Specification Ver1.00 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1012 + 0x1013 + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b + 0x9005 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9101 + 0x9102 + 0x9103 + 0x9104 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400e + 0xc001 +Device Properties Supported: + 0x5001 + 0x5011 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b + +Camera summary: +Manufacturer: Eastman Kodak Company +Model: M753 Zoom Digital Camera + Version: 1.4000 + Serial Number: M753 nnnnnnnnn +Vendor Extension ID: 0x1 (4.0) +Vendor Extension Description: Eastman Kodak PTP Extensions SPD Specification Ver1.00 + +Capture Formats: +Display Formats: JPEG, Apple Quicktime, Unknown(b802) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1015283712 (968 MB) + Free Space (Bytes): 1015218176 (968 MB) + Free Space (Images): 896 +store_00020001: + StorageDescription: None + VolumeLabel: None + Storage Type: Builtin RAM + Filesystemtype: Generic Flat + Access Capability: Read-Write + Maximum Capability: 12255232 (11 MB) + Free Space (Bytes): 11894784 (11 MB) + Free Space (Images): 10 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,10,100] value: 100 +Date & Time(0x5011):(readwrite) (type=0xffff) '20081014T133107' +UI Language(0xd006):(read only) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,19,20] value: 4 +Property 0xd007:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd008:(read only) (type=0x4) Range [3 - 60, step 1] value: 5 +Property 0xd009:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00b:(read only) (type=0x6) Enumeration [2,4,8,3,5,9] value: 5 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-m883.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-m883.txt new file mode 100644 index 00000000..ff1cba2a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-m883.txt @@ -0,0 +1,69 @@ +Device info: +Manufacturer: Eastman Kodak Company + model: M883 Zoom Digital Camera + device version: 1.0000 + serial number: 'aaaaaaaaaaaa' +Vendor extension ID: 0x00000001 +Vendor extension description: Eastman Kodak PTP Extensions SPD Specification Ver1.00 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1012 + 0x1013 + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b + 0x9005 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9012 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9201 + 0x9202 + 0x9203 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400e + 0xc001 +Device Properties Supported: + 0x5001 + 0x5011 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + 0xd00a + 0xd00b diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-z7590.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-z7590.txt new file mode 100644 index 00000000..ce3c82f2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-z7590.txt @@ -0,0 +1,64 @@ +Device info: +Manufacturer: Eastman Kodak Company + model: Z7590 Zoom Digital Camera + device version: 01.0000 + serial number: 'KCTEKxxxxxxxx' +Vendor extension ID: 0x00000001 +Vendor extension description: Eastman Kodak PTP Extensions SPD Specification Ver1.00 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1012 + 0x1013 + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b + 0x9005 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x900a + 0x900b + 0x900c + 0x900d + 0x900e + 0x900f + 0x9010 + 0x9011 + 0x9101 + 0x9102 + 0x9103 + 0x9104 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400e + 0xc001 +Device Properties Supported: + 0x5001 + 0x5011 + 0xd006 + 0xd007 + 0xd008 + 0xd009 + 0xd00a diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-z8162.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-z8162.txt new file mode 100644 index 00000000..622b9d59 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/kodak-z8162.txt @@ -0,0 +1,170 @@ +Camera summary: +Manufacturer: Eastman Kodak Company +Model: Z8612 IS Digital Camera + Version: 01.0000 + Serial Number: KCXJA84200095 +Vendor Extension ID: 0x1 (4.0) +Vendor Extension Description: Eastman Kodak PTP Extensions SPD Specification Ver1.00 + +Capture Formats: +Display Formats: Apple Quicktime, JPEG + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1008861184 (962 MB) + Free Space (Bytes): 356007936 (339 MB) + Free Space (Images): 138 +store_00020001: + StorageDescription: None + VolumeLabel: None + Storage Type: Builtin RAM + Filesystemtype: Generic Flat + Access Capability: Read-Write + Maximum Capability: 21856256 (20 MB) + Free Space (Bytes): 21774336 (20 MB) + Free Space (Images): 8 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,10,100] value: 100% (100) +Date & Time(0x5011):(readwrite) (type=0xffff) '20070101T120153' +UI Language(0xd006):(read only) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] value: 1 +Property 0xd007:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd008:(read only) (type=0x4) Range [3 - 60, step 1] value: 5 +Property 0xd009:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00a:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd00b:(read only) (type=0x6) Enumeration [421] value: 421 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1167645728 +Printable: ma 1. tammikuuta 2007 12.02.08 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 10 +Choice: 2 100 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20070101T120208 +/main/other/d006 +Label: UI Language +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d007 +Label: PTP Property 0xd007 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d008 +Label: PTP Property 0xd008 +Type: MENU +Current: 5 +Choice: 0 3 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 8 +Choice: 6 9 +Choice: 7 10 +Choice: 8 11 +Choice: 9 12 +Choice: 10 13 +Choice: 11 14 +Choice: 12 15 +Choice: 13 16 +Choice: 14 17 +Choice: 15 18 +Choice: 16 19 +Choice: 17 20 +Choice: 18 21 +Choice: 19 22 +Choice: 20 23 +Choice: 21 24 +Choice: 22 25 +Choice: 23 26 +Choice: 24 27 +Choice: 25 28 +Choice: 26 29 +Choice: 27 30 +Choice: 28 31 +Choice: 29 32 +Choice: 30 33 +Choice: 31 34 +Choice: 32 35 +Choice: 33 36 +Choice: 34 37 +Choice: 35 38 +Choice: 36 39 +Choice: 37 40 +Choice: 38 41 +Choice: 39 42 +Choice: 40 43 +Choice: 41 44 +Choice: 42 45 +Choice: 43 46 +Choice: 44 47 +Choice: 45 48 +Choice: 46 49 +Choice: 47 50 +Choice: 48 51 +Choice: 49 52 +Choice: 50 53 +Choice: 51 54 +Choice: 52 55 +Choice: 53 56 +Choice: 54 57 +Choice: 55 58 +Choice: 56 59 +Choice: 57 60 +/main/other/d009 +Label: PTP Property 0xd009 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d00a +Label: PTP Property 0xd00a +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d00b +Label: PTP Property 0xd00b +Type: MENU +Current: 421 +Choice: 0 421 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/leica-m9.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/leica-m9.txt new file mode 100644 index 00000000..0ad0b81f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/leica-m9.txt @@ -0,0 +1,165 @@ +Camera summary: +Manufacturer: Leica Camera AG +Model: M9 Digital Camera + Version: 1.196 + Serial Number: [removed for privacy reasons] + +Capture Formats: JPEG TIFF EP Unknown(b001) +Display Formats: JPEG, TIFF EP, Unknown(b001) + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00020001: + StorageDescription: RamDisk + VolumeLabel: + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read Only with Object deletion + Maximum Capability: 37748736 (36 MB) + Free Space (Bytes): 37748736 (36 MB) + Free Space (Images): 1 +store_00010001: + StorageDescription: SD-Card + VolumeLabel: + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 15911788544 (15174 MB) + Free Space (Bytes): 15490260992 (14772 MB) + Free Space (Images): 0 + +Device Property Summary: +Property 0xd00a:(readwrite) (type=0x5) Range [-196608 - 786432, step 32768] value: -2147483648 +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '5216x3472', + '3840x2592', + '2592x1728', + '1728x1152', + '1280x864' +] value: '5216x3472' +Property 0xd00b:(readwrite) (type=0x4) Enumeration [0,1,2,3] value: 0 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,6,5,32771,4,7,32769,32770,1,51152,51252,51352,51452,51552,51652,51752,51852,51952,52052,52152,52252,52352,52452,52552,52652,52752,52852,52952,53052,53152,53252,53352,53452,53552,53652,53752,53852,53952,54052,54152,54352,54552,54752,54952,55152,55352,55552,55752,55952,56152,56352,56552,56752,56952,57152,57452,57752,58052,58352,58652,58952,59252,59552,59852,60152,60452,60752,61052,61352,61652,61952,62252] value: Automatic (2) +Property 0xd002:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Pre-Capture Delay(0x5012):(readwrite) (type=0x6) Enumeration [0,12000,2000] value: 12.0s (12000) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-3000,-2667,-2333,-2000,-1667,-1333,-1000,-667,-333,0,333,667,1000,1333,1667,2000,2333,2667,3000] value: 0.0 stops (0) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [80,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,65535] value: ISO 160 (160) +Battery Level(0x5001):(read only) (type=0x1) Range [0 - 100, step 1] value: 0% (0) +Property 0xd001:(readwrite) (type=0xffff) Enumeration [ +'DNG', +'JPG fine', +'JPG basic', +'DNG+JPG fine', +'DNG+JPG basic' +] value: 'DNG' +Property 0xd004:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd006:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd100:(read only) (type=0x4) Range [0 - 1816, step 1] value: 0 +Property 0xd104:(read only) (type=0x4) Range [0 - 3, step 1] value: 0 +Property 0xd106:(read only) (type=0x4) Range [0 - 3, step 1] value: 0 +Property 0xd11a:(read only) (type=0x4) Range [0 - 0, step 1] value: 0 +Property 0xd11b:(read only) (type=0x4) Range [0 - 0, step 1] value: 0 +Property 0xd11c:(read only) (type=0x4) Range [33024 - 49956, step 1] value: 0 +Property 0xd11d:(read only) (type=0x4) Range [18 - 23, step 1] value: 0 +Property 0xd130:(read only) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd131:(read only) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd134:(read only) (type=0x4) Range [0 - 255, step 1] value: 0 +Property 0xd138:(read only) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd139:(read only) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd152:(read only) (type=0x4) Range [0 - 0, step 1] value: 0 +Property 0xd155:(read only) (type=0x4) Range [1 - 241, step 1] value: 0 +Property 0xd158:(read only) (type=0x4) Range [3 - 3, step 1] value: 0 +Property 0xd159:(read only) (type=0x4) Range [0 - 0, step 1] value: 0 +Property 0xd15e:(read only) (type=0x4) Range [1 - 241, step 1] value: 0 +Property 0xd15f:(read only) (type=0x4) Range [14370 - 14370, step 1] value: 0 +Property 0xd160:(read only) (type=0x4) Range [1 - 241, step 1] value: 0 +Property 0xd161:(read only) (type=0x4) Range [19 - 19, step 1] value: 0 +Property 0xd162:(read only) (type=0x4) Range [1 - 241, step 1] value: 0 +Property 0xd164:(read only) (type=0x4) Range [35 - 35, step 1] value: 0 + +Device info: + Manufacturer: Leica Camera AG + Model: M9 Digital Camera + device version: 1.196 + serial number: '0nnnnnnn' + Vendor extension ID: 0x00000000 + Vendor extension version: 0 + Vendor extension description: (null) + Functional Mode: 0x0000 + PTP Standard Version: 100 +Supported operations: + 0x1003 + 0x100e + 0x101c + 0x1018 + 0x1001 + 0x1002 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x9015 + 0x9016 + 0x9103 + 0x9104 + 0x9105 + 0x9101 + 0x9102 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b +Events Supported: + 0x4002 + 0x400d + 0x4006 +Device Properties Supported: + 0xd00a + 0x5003 + 0xd00b + 0x5005 + 0xd002 + 0x5012 + 0x5010 + 0x500f + 0x5001 + 0xd001 + 0xd004 + 0xd006 + 0xd100 + 0xd104 + 0xd106 + 0xd11a + 0xd11b + 0xd11c + 0xd11d + 0xd130 + 0xd131 + 0xd134 + 0xd138 + 0xd139 + 0xd152 + 0xd155 + 0xd158 + 0xd159 + 0xd15e + 0xd15f + 0xd160 + 0xd161 + 0xd162 + 0xd164 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/microsoft-windows-phone.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/microsoft-windows-phone.txt new file mode 100644 index 00000000..40221863 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/microsoft-windows-phone.txt @@ -0,0 +1,501 @@ +Camera summary: +Manufacturer: FujitsuToshibaMobileCommun +Model: IS12T + Version: 07.10.08862.03-00.00.00000.00-00.00.00000.00 + Serial Number: xxxxxxxx - xxxxxxxx - xxxxxxxx - xxxxxxxx +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: microsoft.com: 1.0; microsoft.com/WMDRMPD: 10.1; microsoft.com/WMPPD: 11.1; microsoft.com/AAVT: 1.0; microsoft.com/WMDRMND: 1.0; microsoft.com/MTPZ: 1.0; + +Capture Formats: +Display Formats: Undefined Contact, Unknown(b218), Abstract Mediacast, Unknown(b401), Undefined Type, Media Card, Abstract Audio Video Playlist, Abstract Audio Album, Association/Directory, JPEG, WMV, MP4, Unknown(b216), AAC, M4A, ASF, WMA, MP3 +Supported MTP Object Properties: + Undefined Contact/bb80: da99/unknown(da99) dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc07/ObjectFileName dc02/ObjectFormat dc0b/ParentObject dc01/StorageID dc41/PersistantUniqueObjectIdentifier + Unknown(b218)/b218: da99/unknown(da99) dc44/Name dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc07/ObjectFileName dc02/ObjectFormat dc0b/ParentObject dc01/StorageID dc41/PersistantUniqueObjectIdentifier dac6/unknown(dac6) + Abstract Mediacast/ba0b: da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc07/ObjectFileName dc02/ObjectFormat dc0b/ParentObject dc81/RepresentativeSampleFormat dc01/StorageID dc41/PersistantUniqueObjectIdentifier dc86/RepresentativeSampleData dc46/Artist dd60/URLSource dc83/RepresentativeSampleHeight + Unknown(b401)/b401: da99/unknown(da99) dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc07/ObjectFileName dc02/ObjectFormat dc0b/ParentObject dc01/StorageID dc41/PersistantUniqueObjectIdentifier + Undefined Type/3000: da99/unknown(da99) dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc07/ObjectFileName dc02/ObjectFormat dc0b/ParentObject dc01/StorageID dc41/PersistantUniqueObjectIdentifier + Media Card/b211: da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc07/ObjectFileName dc02/ObjectFormat dc0b/ParentObject dc81/RepresentativeSampleFormat dc01/StorageID dc41/PersistantUniqueObjectIdentifier da95/unknown(da95) dc83/RepresentativeSampleHeight daa3/unknown(daa3) da96/unknown(da96) dab1/unknown(dab1) dc86/RepresentativeSampleData + Abstract Audio Video Playlist/ba05: da99/unknown(da99) dac4/unknown(dac4) dc44/Name dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc07/ObjectFileName dc02/ObjectFormat dc0b/ParentObject dc01/StorageID dc41/PersistantUniqueObjectIdentifier da9f/unknown(da9f) daa3/unknown(daa3) dab3/unknown(dab3) dac5/unknown(dac5) dd60/URLSource + Abstract Audio Album/ba03: dab9/unknown(dab9) da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc47/DateAuthored dc07/ObjectFileName dc02/ObjectFormat dc0b/ParentObject dc81/RepresentativeSampleFormat dc01/StorageID dc41/PersistantUniqueObjectIdentifier dac6/unknown(dac6) dc86/RepresentativeSampleData dc46/Artist dc83/RepresentativeSampleHeight + Association/Directory/3001: da99/unknown(da99) dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc07/ObjectFileName dc02/ObjectFormat dc0b/ParentObject dc01/StorageID dc41/PersistantUniqueObjectIdentifier + JPEG/3801: da99/unknown(da99) dc84/RepresentativeSampleWidth dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc87/Width dc47/DateAuthored dc07/ObjectFileName dac2/unknown(dac2) dc02/ObjectFormat dc0b/ParentObject dc81/RepresentativeSampleFormat dac1/unknown(dac1) dc01/StorageID dc41/PersistantUniqueObjectIdentifier dc88/Height dac0/unknown(dac0) dc83/RepresentativeSampleHeight dac3/unknown(dac3) dc8a/Rating dc86/RepresentativeSampleData + WMV/b981: de99/AudioWAVECodec da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) de97/ScanDepth da97/unknown(da97) dc4f/NonConsumable dc87/Width dc47/DateAuthored dc07/ObjectFileName da82/unknown(da82) dd62/TimeBookmark dc02/ObjectFormat dc0b/ParentObject dc81/RepresentativeSampleFormat dea1/EncodingProfile dc01/StorageID dc41/PersistantUniqueObjectIdentifier dac6/unknown(dac6) dc86/RepresentativeSampleData dc46/Artist de9b/VideoFourCCCodec da9b/unknown(da9b) dc88/Height dc48/Description de9d/FramesPerThousandSeconds dc9d/DRMStatus dc89/Duration dab6/unknown(dab6) dab5/unknown(dab5) dc95/MetaGenre de9e/KeyFrameDistance da9e/unknown(da9e) de9a/AudioBitRate da9a/unknown(da9a) de94/NumberOfChannels dc94/ParentalRating de91/TotalBitRate dc91/UseCount dc4c/Source dea0/EncodingQuality dd60/URLSource dc8a/Rating da98/unknown(da98) de92/BitRateType de9f/BufferSize dc83/RepresentativeSampleHeight de93/SampleRate de9c/VideoBitRate + MP4/b982: de99/AudioWAVECodec da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) de97/ScanDepth da97/unknown(da97) dc4f/NonConsumable dc87/Width dc47/DateAuthored dc07/ObjectFileName da82/unknown(da82) dd62/TimeBookmark dc02/ObjectFormat dc0b/ParentObject dc81/RepresentativeSampleFormat dea1/EncodingProfile dc01/StorageID dc41/PersistantUniqueObjectIdentifier dac6/unknown(dac6) dc86/RepresentativeSampleData dc46/Artist de9b/VideoFourCCCodec da9b/unknown(da9b) dc88/Height dc48/Description de9d/FramesPerThousandSeconds dc9d/DRMStatus dc89/Duration dab6/unknown(dab6) dab5/unknown(dab5) dc95/MetaGenre de9e/KeyFrameDistance da9e/unknown(da9e) de9a/AudioBitRate da9a/unknown(da9a) de94/NumberOfChannels dc94/ParentalRating de91/TotalBitRate dc91/UseCount dc4c/Source dea0/EncodingQuality dd60/URLSource dc8a/Rating da98/unknown(da98) de92/BitRateType de9f/BufferSize dc83/RepresentativeSampleHeight de93/SampleRate de9c/VideoBitRate + Unknown(b216)/b216: de99/AudioWAVECodec da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) de97/ScanDepth da97/unknown(da97) dc4f/NonConsumable dc87/Width dc47/DateAuthored dc07/ObjectFileName da82/unknown(da82) dd62/TimeBookmark dc02/ObjectFormat dc0b/ParentObject dc81/RepresentativeSampleFormat dea1/EncodingProfile dc01/StorageID dc41/PersistantUniqueObjectIdentifier dac6/unknown(dac6) dc86/RepresentativeSampleData dc46/Artist de9b/VideoFourCCCodec da9b/unknown(da9b) dc88/Height dc48/Description de9d/FramesPerThousandSeconds dc9d/DRMStatus dc89/Duration dab6/unknown(dab6) dab5/unknown(dab5) dc95/MetaGenre de9e/KeyFrameDistance da9e/unknown(da9e) de9a/AudioBitRate da9a/unknown(da9a) de94/NumberOfChannels dc94/ParentalRating de91/TotalBitRate dc91/UseCount dc4c/Source dea0/EncodingQuality dd60/URLSource dc8a/Rating da98/unknown(da98) de92/BitRateType de9f/BufferSize dc83/RepresentativeSampleHeight de93/SampleRate de9c/VideoBitRate + AAC/b903: de99/AudioWAVECodec dab9/unknown(dab9) da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc47/DateAuthored dc07/ObjectFileName da02/unknown(da02) da82/unknown(da82) dd62/TimeBookmark dc02/ObjectFormat dc8b/Track dc0b/ParentObject da01/unknown(da01) dc81/RepresentativeSampleFormat d901/BuyFlag dc01/StorageID dc41/PersistantUniqueObjectIdentifier da9b/unknown(da9b) dabb/unknown(dabb) dc9b/AlbumArtist de9a/AudioBitRate da9a/unknown(da9a) dc9a/AlbumName dac6/unknown(dac6) dc86/RepresentativeSampleData dc46/Artist dab2/unknown(dab2) dc48/Description dab8/unknown(dab8) dc9d/DRMStatus dc89/Duration dabc/unknown(dabc) dc8c/Genre dc95/MetaGenre dc91/UseCount da9e/unknown(da9e) da00/unknown(da00) dd60/URLSource dc8a/Rating da03/unknown(da03) dc83/RepresentativeSampleHeight da05/unknown(da05) de93/SampleRate de94/NumberOfChannels + M4A/b215: de99/AudioWAVECodec dab9/unknown(dab9) da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc47/DateAuthored dc07/ObjectFileName da02/unknown(da02) da82/unknown(da82) dd62/TimeBookmark dc02/ObjectFormat dc8b/Track dc0b/ParentObject da01/unknown(da01) dc81/RepresentativeSampleFormat d901/BuyFlag dc01/StorageID dc41/PersistantUniqueObjectIdentifier da9b/unknown(da9b) dabb/unknown(dabb) dc9b/AlbumArtist de9a/AudioBitRate da9a/unknown(da9a) dc9a/AlbumName dac6/unknown(dac6) dc86/RepresentativeSampleData dc46/Artist dab2/unknown(dab2) dc48/Description dab8/unknown(dab8) dc9d/DRMStatus dc89/Duration dabc/unknown(dabc) dc8c/Genre dc95/MetaGenre dc91/UseCount da9e/unknown(da9e) da00/unknown(da00) dd60/URLSource dc8a/Rating da03/unknown(da03) dc83/RepresentativeSampleHeight da05/unknown(da05) de93/SampleRate de94/NumberOfChannels + ASF/300c: de99/AudioWAVECodec da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) de97/ScanDepth da97/unknown(da97) dc4f/NonConsumable dc87/Width dc47/DateAuthored dc07/ObjectFileName da82/unknown(da82) dd62/TimeBookmark dc02/ObjectFormat dc0b/ParentObject dc81/RepresentativeSampleFormat dea1/EncodingProfile dc01/StorageID dc41/PersistantUniqueObjectIdentifier dac6/unknown(dac6) dc86/RepresentativeSampleData dc46/Artist de9b/VideoFourCCCodec da9b/unknown(da9b) dc88/Height dc48/Description de9d/FramesPerThousandSeconds dc9d/DRMStatus dc89/Duration dab6/unknown(dab6) dab5/unknown(dab5) dc95/MetaGenre de9e/KeyFrameDistance da9e/unknown(da9e) de9a/AudioBitRate da9a/unknown(da9a) de94/NumberOfChannels dc94/ParentalRating de91/TotalBitRate dc91/UseCount dc4c/Source dea0/EncodingQuality dd60/URLSource dc8a/Rating da98/unknown(da98) de92/BitRateType de9f/BufferSize dc83/RepresentativeSampleHeight de93/SampleRate de9c/VideoBitRate + WMA/b901: de99/AudioWAVECodec dab9/unknown(dab9) da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc47/DateAuthored dc07/ObjectFileName da02/unknown(da02) da82/unknown(da82) dd62/TimeBookmark dc02/ObjectFormat dc8b/Track dc0b/ParentObject da01/unknown(da01) dc81/RepresentativeSampleFormat d901/BuyFlag dc01/StorageID dc41/PersistantUniqueObjectIdentifier da9b/unknown(da9b) dabb/unknown(dabb) dc9b/AlbumArtist de9a/AudioBitRate da9a/unknown(da9a) dc9a/AlbumName dac6/unknown(dac6) dc86/RepresentativeSampleData dc46/Artist dab2/unknown(dab2) dc48/Description dab8/unknown(dab8) dc9d/DRMStatus dc89/Duration dabc/unknown(dabc) dc8c/Genre dc95/MetaGenre dc91/UseCount da9e/unknown(da9e) da00/unknown(da00) dd60/URLSource dc8a/Rating da03/unknown(da03) dc83/RepresentativeSampleHeight da05/unknown(da05) de93/SampleRate de94/NumberOfChannels + MP3/3009: de99/AudioWAVECodec dab9/unknown(dab9) da99/unknown(da99) dc84/RepresentativeSampleWidth dc44/Name dc04/ObjectSize dab0/unknown(dab0) da97/unknown(da97) dc4f/NonConsumable dc47/DateAuthored dc07/ObjectFileName da02/unknown(da02) da82/unknown(da82) dd62/TimeBookmark dc02/ObjectFormat dc8b/Track dc0b/ParentObject da01/unknown(da01) dc81/RepresentativeSampleFormat d901/BuyFlag dc01/StorageID dc41/PersistantUniqueObjectIdentifier da9b/unknown(da9b) dabb/unknown(dabb) dc9b/AlbumArtist de9a/AudioBitRate da9a/unknown(da9a) dc9a/AlbumName dac6/unknown(dac6) dc86/RepresentativeSampleData dc46/Artist dab2/unknown(dab2) dc48/Description dab8/unknown(dab8) dc9d/DRMStatus dc89/Duration dabc/unknown(dabc) dc8c/Genre dc95/MetaGenre dc91/UseCount da9e/unknown(da9e) da00/unknown(da00) dd60/URLSource dc8a/Rating da03/unknown(da03) dc83/RepresentativeSampleHeight da05/unknown(da05) de93/SampleRate de94/NumberOfChannels + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage + VolumeLabel: xxxxxxxx - xxxxxxxx - xxxxxxxx - xxxxxxxx + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 29868408832 (28484 MB) + Free Space (Bytes): 26766000128 (25526 MB) + Free Space (Images): -1 + +Device Property Summary: +Property 0xd301:(read only) (type=0x8) Unknown 8 +Property 0xd501:(read only) (type=0x6) 0 +Property 0xd221:(read only) (type=0xffff) '{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}' +Secure Time(0xd101): error 2002 on query. +Synchronization Partner(0xd401):(readwrite) (type=0xffff) {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} ('{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}') +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 255, step 1] value: 0% (0) +Property 0xd302:(read only) (type=0x6) 1 +Device Certificate(0xd102):(read only) (type=0x4004) (a[2474] ... removed content ... ) +Friendly Device Name(0xd402):(readwrite) (type=0xffff) IS12T ('IS12T') +Functional Mode(0x5002):(read only) (type=0x4) Enumeration [0] value: 0 +Property 0xd219:(read only) (type=0x6) 1 +Property 0xd238:(readwrite) (type=0xffff) '(null)' +Property 0xd218:(read only) (type=0x6) 917504 +Property 0xd30f:(read only) (type=0xffff) 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +Property 0xd22f:(read only) (type=0x6) 4 +Property 0xd305:(read only) (type=0x8) Unknown 8 +Device Icon(0xd405): error 2002 on query. +Property 0xd225:(readwrite) (type=0xffff) '(null)' +Property 0xd21c:(readwrite) (type=0xffff) '(null)' +Property 0xd226:(readwrite) (type=0x6) 0 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '(null)' +Property 0xd237:(read only) (type=0xffff) '0024A5326C16' +Property 0xd217:(read only) (type=0x6) 4772 +Revocation Info(0xd103): error 2002 on query. +Property 0xd21a:(read only) (type=0x6) 4 +Property 0xd232:(read only) (type=0x4002) a[0] +Property 0xd235:(read only) (type=0x4002) a[12] 0,0,0,0,0,0,0,0,0,0,0,0 +Property 0xd233:(read only) (type=0xffff) '00.00.00000.00' +Property 0xd234:(read only) (type=0x4002) a[15] 1,133,0,0,0,2,0,0,0,0,3,2,0,0,0 +Property 0xd21b:(read only) (type=0xffff) '(null)' +Property 0xd21f:(read only) (type=0xffff) 'uuid:00000000-0000-0000-ffff-5c9ad8ef59ca' +Property 0xd300:(read only) (type=0x8) Unknown 8 +Property 0xd100:(readwrite) (type=0x4002) a[0] +Property 0xd220:(readwrite) (type=0xffff) '(null)' +Property 0xd230:(readwrite) (type=0x8) Unknown 8 +Property 0xd307:(read only) (type=0xffff) 'IS12TFF5FB10E3C' +Property 0xd227:(readwrite) (type=0x6) 0 +Property 0xd308:(read only) (type=0x8) Unknown 8 +Property 0xd228:(readwrite) (type=0x6) 0 +Property 0xd30a:(read only) (type=0x4002) a[20] 153,72,243,237,82,115,64,216,22,52,42,135,233,8,49,200,70,144,30,199 +Property 0xd22a:(readwrite) (type=0x6) 540 +Property 0xd30b:(read only) (type=0xffff) 'KDI-JP' +Property 0xd22b:(read only) (type=0xffff) '{d1004d5b-e2b8-be01-5db1-3bdd1513771f}' +Property 0xd30c:(read only) (type=0xffff) '9948f3ed527340d816342a87e90831c846901ec7' +Property 0xd22c:(readwrite) (type=0x6) 0 +Property 0xd309:(read only) (type=0x6) 1 +Property 0xd229:(readwrite) (type=0x6) 122 +Property 0xd30d:(read only) (type=0xffff) '00A100001630982C' +Property 0xd22d:(read only) (type=0x6) 0 +Property 0xd30e:(read only) (type=0x8) Unknown 8 +Property 0xd22e:(readwrite) (type=0xffff) '(null)' +Property 0xd231:(read only) (type=0x4004) +Property 0xd304:(read only) (type=0x6) 0 +Property 0xd236:(read only) (type=0xffff) 'mail@host.co.jp' + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: xxxxxxxx - xxxxxxxx - xxxxxxxx - xxxxxxxx +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: FujitsuToshibaMobileCommun +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: IS12T +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 07.10.08862.03-00.00.00000.00-00.00.00000.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0; microsoft.com/WMDRMPD: 10.1; microsoft.com/WMPPD: 11.1; microsoft.com/AAVT: 1.0; microsoft.com/WMDRMND: 1.0; microsoft.com/MTPZ: 1.0; +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 0% +/main/other/d301 +Label: PTP Property 0xd301 +Type: TEXT +Current: (null) +/main/other/d501 +Label: PTP Property 0xd501 +Type: TEXT +Current: 0 +/main/other/d221 +Label: PTP Property 0xd221 +Type: TEXT +Current: {8c455dbf-c16e-1ae8-463c-63296f9858d7} +/main/other/d401 +Label: Synchronization Partner +Type: TEXT +Current: {3DFFE8F5-C6A9-4BDD-9060-29E9CEC6B547} +/main/other/5001 +Label: Battery Level +Type: RANGE +Current: 0 +Bottom: 0 +Top: 255 +Step: 1 +/main/other/d302 +Label: PTP Property 0xd302 +Type: TEXT +Current: 1 +/main/other/d102 +Label: Device Certificate +Type: TEXT +Current: (null) +/main/other/d402 +Label: Friendly Device Name +Type: TEXT +Current: IS12T +/main/other/5002 +Label: Functional Mode +Type: MENU +Current: 0 +Choice: 0 0 +/main/other/d219 +Label: PTP Property 0xd219 +Type: TEXT +Current: 1 +/main/other/d238 +Label: PTP Property 0xd238 +Type: TEXT +Current: (null) +/main/other/d218 +Label: PTP Property 0xd218 +Type: TEXT +Current: 917504 +/main/other/d30f +Label: PTP Property 0xd30f +Type: TEXT +Current: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +/main/other/d22f +Label: PTP Property 0xd22f +Type: TEXT +Current: 4 +/main/other/d305 +Label: PTP Property 0xd305 +Type: TEXT +Current: (null) +/main/other/d225 +Label: PTP Property 0xd225 +Type: TEXT +Current: (null) +/main/other/d21c +Label: PTP Property 0xd21c +Type: TEXT +Current: (null) +/main/other/d226 +Label: PTP Property 0xd226 +Type: TEXT +Current: 0 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: (null) +/main/other/d237 +Label: PTP Property 0xd237 +Type: TEXT +Current: 0024A5326C16 +/main/other/d217 +Label: PTP Property 0xd217 +Type: TEXT +Current: 4772 +/main/other/d21a +Label: PTP Property 0xd21a +Type: TEXT +Current: 4 +/main/other/d232 +Label: PTP Property 0xd232 +Type: TEXT +Current: (null) +/main/other/d235 +Label: PTP Property 0xd235 +Type: TEXT +Current: (null) +/main/other/d233 +Label: PTP Property 0xd233 +Type: TEXT +Current: 00.00.00000.00 +/main/other/d234 +Label: PTP Property 0xd234 +Type: TEXT +Current: (null) +/main/other/d21b +Label: PTP Property 0xd21b +Type: TEXT +Current: (null) +/main/other/d21f +Label: PTP Property 0xd21f +Type: TEXT +Current: uuid:00000000-0000-0000-ffff-5c9ad8ef59ca +/main/other/d300 +Label: PTP Property 0xd300 +Type: TEXT +Current: (null) +/main/other/d100 +Label: PTP Property 0xd100 +Type: TEXT +Current: (null) +/main/other/d220 +Label: PTP Property 0xd220 +Type: TEXT +Current: (null) +/main/other/d230 +Label: PTP Property 0xd230 +Type: TEXT +Current: (null) +/main/other/d307 +Label: PTP Property 0xd307 +Type: TEXT +Current: IS12TFF5FB10E3C +/main/other/d227 +Label: PTP Property 0xd227 +Type: TEXT +Current: 0 +/main/other/d308 +Label: PTP Property 0xd308 +Type: TEXT +Current: (null) +/main/other/d228 +Label: PTP Property 0xd228 +Type: TEXT +Current: 0 +/main/other/d30a +Label: PTP Property 0xd30a +Type: TEXT +Current: (null) +/main/other/d22a +Label: PTP Property 0xd22a +Type: TEXT +Current: 540 +/main/other/d30b +Label: PTP Property 0xd30b +Type: TEXT +Current: KDI-JP +/main/other/d22b +Label: PTP Property 0xd22b +Type: TEXT +Current: {d1004d5b-e2b8-be01-5db1-3bdd1513771f} +/main/other/d30c +Label: PTP Property 0xd30c +Type: TEXT +Current: 9948f3ed527340d816342a87e90831c846901ec7 +/main/other/d22c +Label: PTP Property 0xd22c +Type: TEXT +Current: 0 +/main/other/d309 +Label: PTP Property 0xd309 +Type: TEXT +Current: 1 +/main/other/d229 +Label: PTP Property 0xd229 +Type: TEXT +Current: 122 +/main/other/d30d +Label: PTP Property 0xd30d +Type: TEXT +Current: 00A100001630982C +/main/other/d22d +Label: PTP Property 0xd22d +Type: TEXT +Current: 0 +/main/other/d30e +Label: PTP Property 0xd30e +Type: TEXT +Current: (null) +/main/other/d22e +Label: PTP Property 0xd22e +Type: TEXT +Current: (null) +/main/other/d231 +Label: PTP Property 0xd231 +Type: TEXT +Current: (null) +/main/other/d304 +Label: PTP Property 0xd304 +Type: TEXT +Current: 0 +/main/other/d236 +Label: PTP Property 0xd236 +Type: TEXT +Current: mail@host.co.jp + +Device info: +Manufacturer: FujitsuToshibaMobileCommun + Model: IS12T + device version: 07.10.08862.03-00.00.00000.00-00.00.00000.00 + serial number: 'xxxxxxxx - xxxxxxxx - xxxxxxxx - xxxxxxxx' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; microsoft.com/WMDRMPD: 10.1; microsoft.com/WMPPD: 11.1; microsoft.com/AAVT: 1.0; microsoft.com/WMDRMND: 1.0; microsoft.com/MTPZ: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100b + 0x100c + 0x100d + 0x100f + 0x1010 + 0x1013 + 0x1014 + 0x1015 + 0x1016 + 0x1019 + 0x101b + 0x9810 + 0x9811 + 0x9802 + 0x9807 + 0x9801 + 0x9803 + 0x9804 + 0x9805 + 0x9806 + 0x9808 + 0x9229 + 0x922a + 0x922e + 0x922f + 0x9230 + 0x9231 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b + 0x9218 + 0x9219 + 0x9204 + 0x9217 + 0x9232 + 0x9233 + 0x9212 + 0x9213 + 0x9214 + 0x9215 + 0x9216 + 0x9220 + 0x9221 + 0x9222 + 0x9223 + 0x6108 + 0x6101 + 0x6102 + 0x6103 + 0x6104 + 0x6105 + 0x6106 + 0x6109 + 0x610a + 0x610b + 0x610d + 0x6107 + 0x9300 + 0x9301 + 0x9306 + 0x9302 + 0x9303 + 0x9304 + 0x9305 + 0x930b + 0x930c + 0x930d + 0x930e + 0x9312 + 0x9313 + 0x9314 + 0x9360 + 0x9361 + 0x9362 + 0x9363 + 0x9364 + 0x9365 + 0x9366 + 0x9234 +Events Supported: + 0x400c + 0x4003 + 0xc701 + 0xc702 +Device Properties Supported: + 0xd301 + 0xd501 + 0xd221 + 0xd101 + 0xd401 + 0x5001 + 0xd302 + 0xd102 + 0xd402 + 0x5002 + 0xd219 + 0xd238 + 0xd218 + 0xd30f + 0xd22f + 0xd305 + 0xd405 + 0xd225 + 0xd21c + 0xd226 + 0xd406 + 0xd237 + 0xd217 + 0xd103 + 0xd21a + 0xd232 + 0xd235 + 0xd233 + 0xd234 + 0xd21b + 0xd21f + 0xd300 + 0xd100 + 0xd220 + 0xd230 + 0xd307 + 0xd227 + 0xd308 + 0xd228 + 0xd30a + 0xd22a + 0xd30b + 0xd22b + 0xd30c + 0xd22c + 0xd309 + 0xd229 + 0xd30d + 0xd22d + 0xd30e + 0xd22e + 0xd231 + 0xd304 + 0xd236 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/minolta-a2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/minolta-a2.txt new file mode 100644 index 00000000..be2ad699 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/minolta-a2.txt @@ -0,0 +1,37 @@ +Device info: +Manufacturer: KONICA MINOLTA CAMERA + model: DiMAGE A2 + device version: 1.00 + serial number: '(null)' +Vendor extension ID: 0x00000000 +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4007 + 0x4009 +Device Properties Supported: +Kamerazusammenfassung: +Modell: DiMAGE A2 + Geräteversion: 1.00 + Seriennummer: (null) +Händler Kennung: 0x00000000 +Händler Beschreibung: (null) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/motorola-k1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/motorola-k1.txt new file mode 100644 index 00000000..c7485764 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/motorola-k1.txt @@ -0,0 +1,71 @@ +Device info: +Manufacturer: Motorola Inc. + model: (null) + device version: (null) + serial number: '(null)' +Vendor extension ID: 0x00000000 +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b +Events Supported: + 0x4009 +Device Properties Supported: + 0x5001 + 0x500c + 0x5011 + 0x5003 + 0x501d + 0x5018 + 0xd401 + 0xd402 + 0xd101 + 0xd102 +Camera summary: +Model: (null) + device version: (null) + serial number: (null) +Vendor extension ID: 0x00000000 +Vendor extension description: (null) + +Capture Formats: JPEG +Display Formats: Undefined Type, JPEG, GIF, BMP, JFIF, PNG, MS Wave, MP3, MS AVI, MPEG, ASF, Unknown(b881), Unknown(b900), Unknown(b901), Unknown(b980), Unknown(b981), Unknown(ba00), Unknown(ba01), Unknown(ba02), Unknown(ba03), Unknown(ba04), Unknown(ba05), Unknown(ba06), Unknown(ba07), Unknown(ba10), Unknown(ba11), Unknown(ba12), Unknown(ba13), Unknown(ba14), Unknown(ba80), Unknown(ba81), Unknown(bb00), Unknown(bb01), Unknown(bb80), Unknown(bb81), Unknown(bb82), Unknown(bb83), Unknown(be00), Unknown(be01), Unknown(be02), Unknown(be80) + +Device Capabilities: + File Download, No File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Undefined + Filesystemtype: Unknown: 0x0200 + + Access Capability: Read-Write + Maximum Capability: 18014398509481984 (0 MB) + Free Space (Bytes): 18014398509481984 (0 MB) + Free Space (Images): -65536 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x0) Undefined +Flash Mode(0x500c):(read only) (type=0x0) Undefined +Date Time(0x5011):(read only) (type=0x0) Undefined +Image Size(0x5003):(read only) (type=0x0) Undefined +Upload URL(0x501d):(read only) (type=0x0) Undefined +Burst Number(0x5018):(read only) (type=0x0) Undefined +Property 0xd401:(read only) (type=0x0) Undefined +Property 0xd402:(read only) (type=0x0) Undefined +Property 0xd101:(read only) (type=0x0) Undefined +Property 0xd102:(read only) (type=0x0) Undefined diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-aw110.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-aw110.txt new file mode 100644 index 00000000..0d402577 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-aw110.txt @@ -0,0 +1,337 @@ + +*LIST-CONFIG +* +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1438789133 +Printable: Wed Aug 5 17:38:53 2015 +Help: Use 'now' as the current time when setting. + +/main/settings/guid +Label: WLAN GUID +Type: TEXT +Current: 0011223344556677 +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000nnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: AW110 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: COOLPIX AW110V1.1 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0; +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Automatic Flash +Choice: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/3.9 +Choice: 0 f/3.9 +Choice: 1 f/4.8 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Normal +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 35 +Bottom: 35 +Top: 105 +Step: 1 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-S +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: Auto +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Night Landscape +Choice: 6 Automatic (No Flash) +Choice: 7 Unknown value 8050 +Choice: 8 Unknown value 8051 +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Unknown value 0002 +Choice: 0 Face-priority AF +Choice: 1 Unknown value 0002 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 50 +Choice: 2 75 +Choice: 3 100 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 390 +Choice: 0 390 +Choice: 1 480 +/main/other/5008 +Label: Focal Length +Type: MENU +Current: 3500 +Choice: 0 3500 +Choice: 1 4600 +Choice: 2 5300 +Choice: 3 6100 +Choice: 4 7300 +Choice: 5 8600 +Choice: 6 10500 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32790 +Choice: 6 32792 +Choice: 7 32848 +Choice: 8 32849 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20150805T173853 +/main/other/d002 +Label: PTP Property 0xd002 +Type: MENU +Current: 6 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +/main/other/d05d +Label: Live View AF Area +Type: RANGE +Current: 2 +Bottom: 0 +Top: 1 +Step: 2 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65596 +Choice: 0 65596 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d24f +Label: PTP Property 0xd24f +Type: TEXT +Current: 0011223344556677 +/main/other/d250 +Label: PTP Property 0xd250 +Type: TEXT +Current: --- +/main/other/d251 +Label: PTP Property 0xd251 +Type: TEXT +Current: --- +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + + Device info: + Manufacturer: Nikon Corporation + Model: AW110 + device version: COOLPIX AW110V1.1 + serial number: '0000nnnnnnnn' + Vendor extension ID: 0x0000000a + Vendor extension version: 100 + Vendor extension description: 1.0; + Functional Mode: 0x0000 + PTP Standard Version: 100 + Supported operations: + 0x1001 (get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1014 (Get device property +description) + 0x1015 (Get device property +value) + 0x1016 (Set device property +value) + 0x101b (Get partial object) + 0x9002 (Unknown (9002)) + 0x9003 (Unknown (9003)) + 0x90c1 (PTP_OC_NIKON_AfDrive) + 0x90c2 (PTP_OC_NIKON_SetControlMode) + 0x90c4 (PTP_OC_NIKON_GetLargeThumb) + 0x90c7 (PTP_OC_NIKON_CheckEvent) + 0x90c8 (PTP_OC_NIKON_DeviceReady) + 0x9016 (Unknown (9016)) + 0x9201 (PTP_OC_NIKON_StartLiveView) + 0x9202 (PTP_OC_NIKON_EndLiveView) + 0x9203 (PTP_OC_NIKON_GetLiveViewImg) + 0x9207 (PTP_OC_NIKON_InitiateCaptureRecInMedia) + 0x9501 (Unknown (9501)) + 0x9504 (PTP_OC_NIKON_GetDevicePropEx) + 0x9505 (Unknown (9505)) + 0x9801 (Unknown (9801)) + 0x9802 (Unknown (9802)) + 0x9803 (Unknown (9803)) + 0x9805 (Unknown (9805)) + Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + Device Properties Supported: + 0x5001 + 0x5004 + 0x5007 + 0x5008 + 0x500a + 0x500c + 0x500e + 0x5011 + 0xd002 + 0xd05d + 0xd0e1 + 0xd100 + 0xd1a2 + 0xd1a4 + 0xd1ac + 0xd24f + 0xd250 + 0xd251 + 0xd407 + 0xd303 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-3700.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-3700.txt new file mode 100644 index 00000000..f48c6ffb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-3700.txt @@ -0,0 +1,160 @@ +Device info: +Manufacturer: Nikon Corporation + Model: E3700 + device version: E3700v1.2 + serial number: 'nnnnnnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5008 + 0x500a + 0x500c + 0x5011 + 0xd001 + 0xd002 + +Camera summary: +Manufacturer: Nikon Corporation +Model: E3700 + Version: E3700v1.2 + Serial Number: nnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Nikon PTP Extensions + +Capture Formats: JPEG +Display Formats: JPEG, TIFF, Association/Directory, DPOF, MS Wave, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 252837888 (241 MB) + Free Space (Bytes): 252755968 (241 MB) + Free Space (Images): 308 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 65% (65) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1600x1200', + '2048x1536' + ] value: '2048x1536' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [12,25] value: 12 +Focal Length(0x5008):(readwrite) (type=0x6) Enumeration [3500,3650,3780,4040,4440,4840,5300,5700,6160,6560,6960,7360,7750,8220,8620,9010,9410,9870,10270,10500] value: 35 mm (3500) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: Automatic (2) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Automatic flash (1) +Date & Time(0x5011):(readwrite) (type=0xffff) '20090515T095927' +Property 0xd001: error 200a on query. +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5] value: 4 + +/main/settings/autofocusdrive + Label: Drive Nikon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/settings/manualfocusdrive + Label: Drive Nikon DSLR Manual focus + Type: RANGE + Current: 0 + Bottom: -32767 + Top: 32767 + Step: 1 +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1242378018 + Printable: Fri May 15 11:00:18 2009 +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imgquality + Label: Image Quality + Type: RADIO + Current: Unknown value 000c + Choice: 0 Unknown value 000c + Choice: 1 Unknown value 0019 +/main/imgsettings/imgsize + Label: Image Size + Type: RADIO + Current: 2048x1536 + Choice: 0 640x480 + Choice: 1 1024x768 + Choice: 2 1600x1200 + Choice: 3 2048x1536 +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 35 + Bottom: 35 + Top: 105 + Step: 1 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Automatic Macro +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Automatic Flash + Choice: 0 Automatic Flash + Choice: 1 Flash off + Choice: 2 Fill flash + Choice: 3 Red-eye automatic diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-a.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-a.txt new file mode 100644 index 00000000..75f1d998 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-a.txt @@ -0,0 +1,820 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: COOLPIX A + Version: V1.00 + Serial Number: 41000510000000000000000000000000 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: +Display Formats: JPEG, Undefined Type, Association/Directory, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 20% (20) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4928x3264', + '3696x2448', + '2464x1632' + ] value: '4928x3264' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: JPEG Norm (1) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/4 (400) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 1800, step 1] value: 18 mm (1800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.001 sec (100) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32792,32848,32849] value: Auto (32784) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130426T193943' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32788,32789,32792] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1367001583 +Printable: Fri 26 Apr 2013 08:39:43 PM CEST +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 41000510000000000000000000000000 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: COOLPIX A +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 20% +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 4928x3264 +Choice: 0 4928x3264 +Choice: 1 3696x2448 +Choice: 2 2464x1632 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 25600 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Preset +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Flash off +Choice: 1 Red-eye automatic +Choice: 2 Auto +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/4 +Choice: 0 f/2.8 +Choice: 1 f/3.2 +Choice: 2 f/3.5 +Choice: 3 f/4 +Choice: 4 f/4.5 +Choice: 5 f/5 +Choice: 6 f/5.6 +Choice: 7 f/6.3 +Choice: 8 f/7.1 +Choice: 9 f/8 +Choice: 10 f/9 +Choice: 11 f/10 +Choice: 12 f/11 +Choice: 13 f/13 +Choice: 14 f/14 +Choice: 15 f/16 +Choice: 16 f/18 +Choice: 17 f/20 +Choice: 18 f/22 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Normal +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Basic +Choice: 5 NEF+Normal +Choice: 6 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 18 +Bottom: 18 +Top: 18 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Manual +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 Unknown value 8013 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: Auto +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Automatic (No Flash) +Choice: 6 Unknown value 8050 +Choice: 7 Unknown value 8051 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Timer +Choice: 3 Quick Response Remote +Choice: 4 Delayed Remote +Choice: 5 Unknown value 8018 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0100s +Choice: 0 0.0005s +Choice: 1 0.0006s +Choice: 2 0.0008s +Choice: 3 0.0010s +Choice: 4 0.0012s +Choice: 5 0.0015s +Choice: 6 0.0020s +Choice: 7 0.0025s +Choice: 8 0.0031s +Choice: 9 0.0040s +Choice: 10 0.0050s +Choice: 11 0.0062s +Choice: 12 0.0080s +Choice: 13 0.0100s +Choice: 14 0.0125s +Choice: 15 0.0166s +Choice: 16 0.0200s +Choice: 17 0.0250s +Choice: 18 0.0333s +Choice: 19 0.0400s +Choice: 20 0.0500s +Choice: 21 0.0666s +Choice: 22 0.0769s +Choice: 23 0.1000s +Choice: 24 0.1250s +Choice: 25 0.1666s +Choice: 26 0.2000s +Choice: 27 0.2500s +Choice: 28 0.3333s +Choice: 29 0.4000s +Choice: 30 0.5000s +Choice: 31 0.6250s +Choice: 32 0.7692s +Choice: 33 1.0000s +Choice: 34 1.3000s +Choice: 35 1.6000s +Choice: 36 2.0000s +Choice: 37 2.5000s +Choice: 38 3.0000s +Choice: 39 4.0000s +Choice: 40 5.0000s +Choice: 41 6.0000s +Choice: 42 8.0000s +Choice: 43 10.0000s +Choice: 44 13.0000s +Choice: 45 15.0000s +Choice: 46 20.0000s +Choice: 47 25.0000s +Choice: 48 30.0000s +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 4928x3264 +Choice: 0 4928x3264 +Choice: 1 3696x2448 +Choice: 2 2464x1632 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 400 +Choice: 0 280 +Choice: 1 320 +Choice: 2 350 +Choice: 3 400 +Choice: 4 450 +Choice: 5 500 +Choice: 6 560 +Choice: 7 630 +Choice: 8 710 +Choice: 9 800 +Choice: 10 900 +Choice: 11 1000 +Choice: 12 1100 +Choice: 13 1300 +Choice: 14 1400 +Choice: 15 1600 +Choice: 16 1800 +Choice: 17 2000 +Choice: 18 2200 +/main/other/5008 +Label: Focal Length +Type: MENU +Current: 1800 +Choice: 0 1800 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32784 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 100 +Choice: 0 5 +Choice: 1 6 +Choice: 2 8 +Choice: 3 10 +Choice: 4 12 +Choice: 5 15 +Choice: 6 20 +Choice: 7 25 +Choice: 8 31 +Choice: 9 40 +Choice: 10 50 +Choice: 11 62 +Choice: 12 80 +Choice: 13 100 +Choice: 14 125 +Choice: 15 166 +Choice: 16 200 +Choice: 17 250 +Choice: 18 333 +Choice: 19 400 +Choice: 20 500 +Choice: 21 666 +Choice: 22 769 +Choice: 23 1000 +Choice: 24 1250 +Choice: 25 1666 +Choice: 26 2000 +Choice: 27 2500 +Choice: 28 3333 +Choice: 29 4000 +Choice: 30 5000 +Choice: 31 6250 +Choice: 32 7692 +Choice: 33 10000 +Choice: 34 13000 +Choice: 35 16000 +Choice: 36 20000 +Choice: 37 25000 +Choice: 38 30000 +Choice: 39 40000 +Choice: 40 50000 +Choice: 41 60000 +Choice: 42 80000 +Choice: 43 100000 +Choice: 44 130000 +Choice: 45 150000 +Choice: 46 200000 +Choice: 47 250000 +Choice: 48 300000 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32792 +Choice: 6 32848 +Choice: 7 32849 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130426T193943 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32785 +Choice: 3 32788 +Choice: 4 32789 +Choice: 5 32792 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 + +*** Error *** +Sorry, your camera does not support generic capture +6.199440 gphoto2-camera(2): Operation failed! +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** + +Device info: +Manufacturer: Nikon Corporation + Model: COOLPIX A + device version: V1.00 + serial number: '41000510000000000000000000000000' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d /* capture complete */ + 0x4008 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0xd303 + 0xd406 + 0xd407 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-aw100.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-aw100.txt new file mode 100644 index 00000000..c2b558ef --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-aw100.txt @@ -0,0 +1,53 @@ +Device info: +Manufacturer: Nikon Corporation + Model: AW100 + device version: COOLPIX AW100V1.0 + serial number: '0000nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x5011 + 0xd005 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l110.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l110.txt new file mode 100644 index 00000000..ab687620 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l110.txt @@ -0,0 +1,39 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: L110 + Version: COOLPIX L110V1.3 + Serial Number: nnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, JPEG, Association/Directory, DPOF, Apple Quicktime, Defined Type +Supported MTP Object Properties: + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 516161536 (492 MB) + Free Space (Bytes): 473022464 (451 MB) + Free Space (Images): 154 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 80% (80) +Date & Time(0x5011):(readwrite) (type=0xffff) '20100101T000000' +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l12.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l12.txt new file mode 100644 index 00000000..6b637de0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l12.txt @@ -0,0 +1,45 @@ +Device info: +Manufacturer: Nikon Corporation + model: L12 + device version: COOLPIX L12V1.0 + serial number: '0000nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 +Device Properties Supported: + 0x5011 + 0xd005 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l16.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l16.txt new file mode 100644 index 00000000..a2b3ae0e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l16.txt @@ -0,0 +1,93 @@ +Model: L16 + device version: L16 V1.1 + serial number: nnnnnnnnnnnn +Vendor extension ID: 0x0000000a +Vendor extension description: microsoft.com: 1.0; + +Capture Formats: JPEG +Display Formats: Association/Directory, Defined Type, JPEG, DPOF, MS AVI, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: L16 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 127041536 (121 MB) + Free Space (Bytes): 83968000 (80 MB) + Free Space (Images): 17 + +Device Property Summary: +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,7] value: 7 +Date Time(0x5011):(readwrite) (type=0xffff) '20080801T150441' +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: 2 +Focal Length(0x5008):(read only) (type=0x6) Enumeration [3500,4600,5300,6100,7300,8600,10500] value: 35 mm (3500) +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 65% (65) + +Device info: +Manufacturer: Nikon Corporation + model: L16 + device version: L16 V1.1 + serial number: 'nnnnnnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension description: microsoft.com: 1.0; +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x100b + 0x100f + 0x9005 + 0x9006 + 0x100e + 0x1014 + 0x1015 + 0x1016 + 0x9002 + 0x9003 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 +Device Properties Supported: + 0xd407 + 0xd406 + 0xd002 + 0x5011 + 0x500c + 0x500a + 0x5008 + 0x5001 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l19.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l19.txt new file mode 100644 index 00000000..2ac1e1fd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l19.txt @@ -0,0 +1,61 @@ +Device info: +Manufacturer: Nikon Corporation + Model: L19 + device version: COOLPIX L19 V1.0 + serial number: 'XXXXXXXXXXXX' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x100b + 0x100f + 0x9005 + 0x9006 + 0x100e + 0x1014 + 0x1015 + 0x1016 + 0x9002 + 0x9003 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 +Device Properties Supported: + 0xd407 + 0xd406 + 0xd002 + 0x5011 + 0x500c + 0x500a + 0x5008 + 0x5001 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l20.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l20.txt new file mode 100644 index 00000000..8a97f80a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l20.txt @@ -0,0 +1,43 @@ +Camera summary: + +Manufacturer: Nikon Corporation +Model: L20 + Version: COOLPIX L20 V1.0 + Serial Number: ............ +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; + +Capture Formats: JPEG +Display Formats: Association/Directory, Defined Type, JPEG, DPOF, MS AVI, Apple Quicktime +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc87/Width dc88/Height dcd3/ImageBitDepth + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc87/Width dc88/Height dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: L20 + VolumeLabel: None + Storage Type: Builtin RAM + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 21692416 (20 MB) + Free Space (Bytes): 18841600 (17 MB) + Free Space (Images): 15 + +Device Property Summary: +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,7] value: 4 +Date & Time(0x5011):(readwrite) (type=0xffff) '20090101T000000' +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Flash off (2) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: Automatic (2) +Focal Length(0x5008):(read only) (type=0x6) Enumeration [3500,4600,5300,6100,7300,8600,10500] value: 46 mm (4600) +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l810.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l810.txt new file mode 100644 index 00000000..19df6f46 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l810.txt @@ -0,0 +1,144 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: L810 + Version: COOLPIX L810V1.0 + Serial Number: 0000nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, JPEG, Association/Directory, DPOF, Apple Quicktime, Defined Type + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 68976640 (65 MB) + Free Space (Bytes): 55410688 (52 MB) + Free Space (Images): 13 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 80% (80) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130427T145458' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1367070898 +Printable: Sat 27 Apr 2013 03:54:58 PM CEST +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 000043102962 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: L810 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: COOLPIX L810V1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0; +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 80 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130427T145458 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. +New file is in location /store_00010001/DCIM/100NIKON/DSCN0078.JPG on the camera + +Device info: +Manufacturer: Nikon Corporation + Model: L810 + device version: COOLPIX L810V1.0 + serial number: '0000nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x5011 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l820.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l820.txt new file mode 100644 index 00000000..8b980c3e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l820.txt @@ -0,0 +1,144 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: L820 + Version: COOLPIX L820V1.0 + Serial Number: 0000nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, JPEG, Association/Directory, DPOF, Apple Quicktime, Defined Type + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 68976640 (65 MB) + Free Space (Bytes): 55410688 (52 MB) + Free Space (Images): 13 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 80% (80) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130427T145458' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1367070898 +Printable: Sat 27 Apr 2013 03:54:58 PM CEST +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 000043102962 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: L820 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: COOLPIX L820V1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0; +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 80 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130427T145458 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. +New file is in location /store_00010001/DCIM/100NIKON/DSCN0078.JPG on the camera + +Device info: +Manufacturer: Nikon Corporation + Model: L820 + device version: COOLPIX L820V1.0 + serial number: '0000nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x5011 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l840.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l840.txt new file mode 100644 index 00000000..6d135803 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-l840.txt @@ -0,0 +1,165 @@ +Camera summary: +Manufacturer: NIKON +Model: L840 + Version: COOLPIX L840 V1.0 + Serial Number: + +Capture Formats: JPEG +Display Formats: Undefined Type, Association/Directory, DPOF, MS Wave, MS AVI, Apple Quicktime, JPEG, Unknown(b802) + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: L840 + VolumeLabel: + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 15926820864 (15189 MB) + Free Space (Bytes): 15922921472 (15185 MB) + Free Space (Images): 4751 + +Device Property Summary: +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Automatic flash (1) +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd220:(read only) (type=0x6) Range [0 - 1, step 0] value: 0 +Date & Time(0x5011):(readwrite) (type=0xffff) '20151126T101718' + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1448533053 +Printable: Thu Nov 26 10:17:33 2015 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: NIKON +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: L840 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: COOLPIX L840 V1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com/deviceservices: +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Automatic Flash +Choice: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d220 +Label: PTP Property 0xd220 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 1 +Step: 0 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20151126T101733 + +Device info: +Manufacturer: NIKON + Model: L840 + device version: COOLPIX L840 V1.0 + serial number: ' ' +Vendor extension ID: 0x00000000 +Vendor extension version: 0 +Vendor extension description: microsoft.com/deviceservices: +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x9601 (Unknown VendorExtensionID) + 0x9602 (Unknown VendorExtensionID) + 0x9812 (Unknown VendorExtensionID) + 0x9614 (Unknown VendorExtensionID) + 0x9801 (Unknown VendorExtensionID) + 0x9802 (Unknown VendorExtensionID) + 0x9803 (Unknown VendorExtensionID) + 0x9805 (Unknown VendorExtensionID) +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400d + 0xc601 +Device Properties Supported: + 0xd407 + 0xd406 + 0x5001 + 0x500c + 0xd303 + 0xd220 + 0x5011 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p100.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p100.txt new file mode 100644 index 00000000..a738e348 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p100.txt @@ -0,0 +1,112 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: P100 + Version: COOLPIX P100V1.1 + Serial Number: [cut - serial number] +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, Defined Type +Supported MTP Object Properties: + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 16030629888 (15288 MB) + Free Space (Bytes): 14261616640 (13600 MB) + Free Space (Images): 2807 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1280x960', + '1600x1200', + '2048x1536', + '2592x1944', + '3264x2448', + '2736x2736', + '3584x2016', + '3648x2432', + '3648x2736' + ] value: '3648x2736' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25] value: 25 +Date & Time(0x5011):(readwrite) (type=0xffff) '20101219T100331' +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd280:(read only) (type=0x2) 3 +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +Device info: +Manufacturer: Nikon Corporation + Model: P100 + device version: COOLPIX P100V1.0 + serial number: 'nnnnnnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5011 + 0xd005 + 0xd280 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p2.txt new file mode 100644 index 00000000..6d9f4bae --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p2.txt @@ -0,0 +1,191 @@ +Device info: +Manufacturer: Nikon Corporation + Model: P2 + device version: COOLPIX P2v1.0 + serial number: 'nnnnnnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 1.00 +Vendor extension description: Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 1.00 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9004 + 0x90c0 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x9010 + 0x9011 + 0x90e0 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc101 + 0xc102 + 0xc103 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5008 + 0x500a + 0x500c + 0x5011 + 0xd001 + 0xd002 + 0xd003 + 0xd005 + 0xd102 + 0xd161 + +Camera summary: +Manufacturer: Nikon Corporation +Model: P2 + Version: COOLPIX P2v1.0 + Serial Number: nnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Nikon PTP Extensions + +Capture Formats: JPEG +Display Formats: JPEG, TIFF, Association/Directory, DPOF, MS Wave, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 125861888 (120 MB) + Free Space (Bytes): 111902720 (106 MB) + Free Space (Images): 85 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [25,50,65,80,100] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1280x960', + '1600x1200', + '2048x1536', + '2592x1944', + '3264x2448', + '3264x2176' + ] value: '2592x1944' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25] value: 12 +Focal Length(0x5008):(readwrite) (type=0x6) Enumeration [3500,3700,4000,4300,4600,5000,5400,5900,6400,7100,7800,8600,9400,10400,11500,12700,14100,15700,17500,19200,20900,22500,24000,25300,26700,27900,29100,30200,31400,32600,33800,35000] value: 36 mm (3600) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: 2 +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 1 +Date & Time(0x5011):(readwrite) (type=0xffff) '20081018T170942' +Property 0xd001:(read only) (type=0x6) Enumeration [0,1,2] value: 1 +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4] value: 4 +Property 0xd003:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd102:(read only) (type=0x2) 0 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) + + +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1224346266 + Printable: Sat Oct 18 18:11:06 2008 +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget +Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imgquality + # this is wrong ... checkthis - Marcus + Label: Image Quality + Type: RADIO + Current: Unknown value 000c + Choice: 0 NEF+Fine + Choice: 1 Unknown value 000c + Choice: 2 Unknown value 0019 +/main/imgsettings/imgsize + Label: Image Size + Type: RADIO + Current: 2592x1944 + Choice: 0 640x480 + Choice: 1 1024x768 + Choice: 2 1280x960 + Choice: 3 1600x1200 + Choice: 4 2048x1536 + Choice: 5 2592x1944 + Choice: 6 3264x2448 + Choice: 7 3264x2176 +/main/capturesettings/autofocusmode + Label: Auto Focus Mode + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 36 + Bottom: 35 + Top: 350 + Step: 1 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Automatic Macro +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Automatic Flash + Choice: 0 Automatic Flash + Choice: 1 Flash off + Choice: 2 Fill flash + Choice: 3 Red-eye automatic diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p330.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p330.txt new file mode 100644 index 00000000..47c60c50 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p330.txt @@ -0,0 +1,162 @@ +(PTPIP Mode) +Краткие сведения о фотоаппарате: +Manufacturer: Nikon Corporation +Model: P330 + Version: V1.00 + Serial Number: nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; Nikon PTP Extensions + +Capture Formats: +Display Formats: JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, Unknown(b111), Undefined Type +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Unknown(b111)/b111: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 63831015424 (60874 MB) + Free Space (Bytes): 63827083264 (60870 MB) + Free Space (Images): 9937 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Compression Setting(0x5004):(read only) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: JPEG Fine (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [180,200,220,250,280,320,350,400,450,500,560,630,710,800] value: f/2,2 (220) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [2] value: Automatic (2) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [2] value: P (2) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130805T164243' +Live View AF Area(0xd05d):(read only) (type=0x2) Range [0 - 3, step 1] value: 2 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,8519780,10485860,131073,16384100,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,2621441,3276801] value: 65551 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Warning Status(0xd102):(read only) (type=0x2) 0 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1ac:(read only) (type=0x2) Enumeration [1,2] value: 1 +Property 0xd280:(read only) (type=0x2) 1 +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd407:(read only) (type=0x6) 1 + +/main/actions/autofocusdrive +/main/actions/viewfinder +/main/settings/datetime +/main/settings/fastfs +/main/settings/capturetarget +/main/status/acpower +/main/status/batterylevel +/main/capturesettings/imagequality +/main/capturesettings/expprogram +/main/capturesettings/f-number +/main/capturesettings/focusmode +/main/capturesettings/shutterspeed2 +/main/capturesettings/liveviewafmode +/main/other/5001 +/main/other/5004 +/main/other/5007 +/main/other/500a +/main/other/500e +/main/other/5011 +/main/other/d05d +/main/other/d100 +/main/other/d101 +/main/other/d102 +/main/other/d1a2 +/main/other/d1a4 +/main/other/d1ac +/main/other/d280 +/main/other/d303 +/main/other/d406 +/main/other/d407 + +Device info: +Manufacturer: Nikon Corporation + Model: P330 + device version: V1.00 + serial number: 'nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x100b + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9016 + 0x90a1 + 0x90a2 + 0x90a3 + 0x90c1 + 0x90c2 + 0x90c4 + 0x90c7 + 0x90c8 + 0x9201 + 0x9202 + 0x9203 + 0x9207 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x5004 + 0x5007 + 0x500a + 0x500e + 0x5011 + 0xd05d + 0xd100 + 0xd101 + 0xd102 + 0xd1a2 + 0xd1a4 + 0xd1ac + 0xd280 + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p50.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p50.txt new file mode 100644 index 00000000..914390ca --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p50.txt @@ -0,0 +1,104 @@ +Device info: +Manufacturer: Nikon Corporation + Model: P50 + device version: COOLPIX P50V1.0 + serial number: 'nnnnnnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5003 + 0x5004 + 0x5011 + 0xd005 + 0xd407 + +Camera summary: +Manufacturer: Nikon Corporation +Model: P50 + Version: COOLPIX P50V1.0 + Serial Number: nnnnnnnnnnnn +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: microsoft.com: 1.0; Nikon PTP Extensions + +Capture Formats: JPEG +Display Formats: JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, MS AVI, Defined Type +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1015283712 (968 MB) + Free Space (Bytes): 733708288 (699 MB) + Free Space (Images): 181 + +Device Property Summary: +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1280x960', + '1600x1200', + '2048x1536', + '2592x1944', + '3200x1800', + '3264x2448', + '3264x2176' + ] value: '3264x2448' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25] value: 25 +Date & Time(0x5011):(readwrite) (type=0xffff) '20090212T151523' +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p520.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p520.txt new file mode 100644 index 00000000..691d6781 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p520.txt @@ -0,0 +1,275 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: P520 + Version: V1.00 + Serial Number: nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; Nikon PTP Extensions + +Capture Formats: +Display Formats: JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, Unknown(b111), Undefined Type + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3956801536 (3773 MB) + Free Space (Bytes): 3956572160 (3773 MB) + Free Space (Images): 749 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130427T144644' +Property 0xd280:(read only) (type=0x2) 3 +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd407:(read only) (type=0x6) 1 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1367070404 +Printable: Sat 27 Apr 2013 03:46:44 PM CEST +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 40001792 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: P520 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0; Nikon PTP Extensions +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130427T144644 +/main/other/d280 +Label: PTP Property 0xd28 +*** Error *** +The capture widget is not configurable. +0 +Type: TEXT +Current: 3 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. + +*** Error *** +Sorry, your camera does not support generic capture +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** + +For debugging messages, please use the --debug option. +Debugging messages may help finding a solution to your problem. +If you intend to send any error or debug messages to the gphoto +developer mailing list , please run +gphoto2 as follows: + + env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --version --summary --list-all-config --set-config capturetarget=1 --set-config capture=on --wait-event=5s --capture-image + +Please make sure there is sufficient quoting around the arguments. + +Device info: +Manufacturer: Nikon Corporation + Model: P520 + device version: V1.00 + serial number: 'nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x100b + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x90a1 + 0x90a2 + 0x90a3 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x5011 + 0xd280 + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p60.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p60.txt new file mode 100644 index 00000000..7b5f20ad --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p60.txt @@ -0,0 +1,106 @@ +Device info: +Manufacturer: Nikon Corporation + Model: P60 + device version: COOLPIX P60 Ver.1.0 + serial number: 'nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x100b + 0x100f + 0x9801 + 0x9803 + 0x9802 + 0x9804 + 0x9805 + 0x1014 + 0x1015 + 0x1016 + 0x100e +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x5003 + 0x500c + 0x5011 + 0xd406 + 0xd407 + +Camera summary: +Manufacturer: Nikon Corporation +Model: P60 + Version: COOLPIX P60 Ver.1.0 + Serial Number: nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; Nikon PTP Extensions + +Capture Formats: JPEG +Display Formats: Association/Directory, DPOF, Defined Type, JPEG, MS Wave, MS AVI +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc87/Width dc88/Height dcd3/ImageBitDepth + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc89/Duration de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc87/Width dc88/Height dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Builtin RAM + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 12533760 (11 MB) + Free Space (Bytes): 10256384 (9 MB) + Free Space (Images): 5 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [5,25,50,65,80,100] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3264x2448', + '3264x2176', + '3264x1836', + '2592x1944', + '2048x1536', + '1600x1200', + '1280x960', + '1024x768', + '640x480' + ] value: '3264x2448' +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Automatic flash (1) +Date & Time(0x5011):(readwrite) (type=0xffff) '20080104T225334' +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p7000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p7000.txt new file mode 100644 index 00000000..02dd5792 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-p7000.txt @@ -0,0 +1,56 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: P7000 + Version: COOLPIX P7000V1.1 + Serial Number: nnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, Defined Type +Supported MTP Object Properties: + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 83116032 (79 MB) + Free Space (Bytes): 83066880 (79 MB) + Free Space (Images): 32 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1280x960', + '1600x1200', + '2048x1536', + '2592x1944', + '3264x2448', + '2736x2736', + '3584x2016', + '3648x2432', + '3648x2736' + ] value: '3648x2736' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25] value: 12 +Date & Time(0x5011):(readwrite) (type=0xffff) '20110504T135346' +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s2600.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s2600.txt new file mode 100644 index 00000000..4423ec2a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s2600.txt @@ -0,0 +1,193 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: S2600 + Version: COOLPIX S2600 V1.0 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; + +Capture Formats: JPEG +Display Formats: Association/Directory, Defined Type, JPEG, DPOF, MS AVI, Apple Quicktime, MS Wave +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc08/DateCreated + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc09/DateModified dc08/DateCreated + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc87/Width dc88/Height dcd3/ImageBitDepth dc09/DateModified dc08/DateCreated + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc87/Width dc88/Height dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels dc09/DateModified dc08/DateCreated + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc09/DateModified dc08/DateCreated + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: S2600 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 7936442368 (7568 MB) + Free Space (Images): 1743 + +Device Property Summary: +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,7] value: 6 +Date & Time(0x5011):(readwrite) (type=0xffff) '20130217T212051' +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Automatic flash (1) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: Automatic (2) +Focal Length(0x5008):(read only) (type=0x6) Enumeration [3500,4600,5300,6100,7300,8600,10500] value: 35 mm (3500) +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) +Property 0xd303:(read only) (type=0x2) 1 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1361132463 +Printable: Sun Feb 17 21:21:03 2013 +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Automatic Flash +Choice: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 35 +Bottom: 35 +Top: 105 +Step: 1 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Automatic Macro +/main/wifiprofiles/new/name +Label: Profile name +Type: TEXT +Current: +/main/wifiprofiles/new/essid +Label: WIFI ESSID +Type: TEXT +Current: +/main/wifiprofiles/new/ipaddr +Label: IP address (empty for DHCP) +Type: TEXT +Current: +/main/wifiprofiles/new/netmask +Label: Network mask +Type: TEXT +Current: +/main/wifiprofiles/new/gw +Label: Default gateway +Type: TEXT +Current: +/main/wifiprofiles/new/accessmode +Label: Access mode +Type: RADIO +Current: Managed +Choice: 0 Managed +Choice: 1 Ad-hoc +/main/wifiprofiles/new/channel +Label: WIFI channel +Type: RANGE +Current: 1 +Bottom: 1 +Top: 11 +Step: 1 +/main/wifiprofiles/new/encryption +Label: Encryption +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 WEP 64-bit +Choice: 2 WEP 128-bit +/main/wifiprofiles/new/key +Label: Encryption key (hex) +Type: TEXT +Current: +/main/wifiprofiles/new/write +Label: Write +Type: TOGGLE +Current: 0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: +/main/other/d002 +Label: PTP Property 0xd002 +Type: MENU +Current: 6 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130217T212103 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 3 +/main/other/5008 +Label: Focal Length +Type: MENU +Current: 3500 +Choice: 0 3500 +Choice: 1 4600 +Choice: 2 5300 +Choice: 3 6100 +Choice: 4 7300 +Choice: 5 8600 +Choice: 6 10500 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s2700.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s2700.txt new file mode 100644 index 00000000..ec4b1257 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s2700.txt @@ -0,0 +1,42 @@ +Thumbnails: yes +Capture image: yes +Delete items: yes +Upload items: yes +Create directories: yes +Delete Directories: yes + + Manufacturer: Nikon Corporation + Model: S2700 + Version: COOLPIX S2700 V1.0 + Vendor Extension ID: 0xa (1.0) + Vendor Extension Description: microsoft.com: 1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, Association/Directory, Defined Type, JPEG, DPOF, MS AVI, Apple Quicktime, MS Wave + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + Nikon Wifi support + +Storage Devices Summary: + store_00010001: + StorageDescription: S2700 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 7932936192 (7565 MB) + Free Space (Images): 1531 + +Device Property Summary: +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,7] value: 6 +Date & Time(0x5011):(readwrite) (type=0xffff) '20131217T203137' +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Automatic flash (1) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: Automatic (2) +Focal Length(0x5008):(read only) (type=0x6) Enumeration [3500,4600,5300,6100,7300,8600,10500] value: 35 mm (3500) +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) +Property 0xd303:(read only) (type=0x2) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s2900.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s2900.txt new file mode 100644 index 00000000..6bdded30 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s2900.txt @@ -0,0 +1,202 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: S2900 + Version: COOLPIX S2900 V1.0 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com/deviceservices: 1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, Association/Directory, Defined Type, JPEG, DPOF, MS AVI, Apple Quicktime, MS Wave + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: S2900 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7884242944 (7519 MB) + Free Space (Bytes): 6407028736 (6110 MB) + Free Space (Images): 1155 + +Device Property Summary: +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,7] value: 6 +Date & Time(0x5011):(readwrite) (type=0xffff) '20151002T130827' +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2] value: Automatic flash (1) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: Automatic (2) +Focal Length(0x5008):(read only) (type=0x6) Enumeration [3500,4600,5300,6100,7300,8600,10500] value: 35 mm (3500) +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 80% (80) +Property 0xd303:(read only) (type=0x2) 1 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1443762521 +Printable: Fri Oct 2 13:08:41 2015 +Help: Use 'now' as the current time when setting. + +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: None +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: S2900 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: COOLPIX S2900 V1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com/deviceservices: 1.0; +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Automatic Flash +Choice: 0 Automatic Flash +Choice: 1 Flash off +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 35 +Bottom: 35 +Top: 105 +Step: 1 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Automatic Macro +/main/wifiprofiles/new/name +Label: Profile name +Type: TEXT +Current: +/main/wifiprofiles/new/essid +Label: WIFI ESSID +Type: TEXT +Current: +/main/wifiprofiles/new/ipaddr +Label: IP address (empty for DHCP) +Type: TEXT +Current: +/main/wifiprofiles/new/netmask +Label: Network mask +Type: TEXT +Current: +/main/wifiprofiles/new/gw +Label: Default gateway +Type: TEXT +Current: +/main/wifiprofiles/new/accessmode +Label: Access mode +Type: RADIO +Current: Managed +Choice: 0 Managed +Choice: 1 Ad-hoc +/main/wifiprofiles/new/channel +Label: WIFI channel +Type: RANGE +Current: 1 +Bottom: 1 +Top: 11 +Step: 1 +/main/wifiprofiles/new/encryption +Label: Encryption +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 WEP 64-bit +Choice: 2 WEP 128-bit +/main/wifiprofiles/new/key +Label: Encryption key (hex) +Type: TEXT +Current: +/main/wifiprofiles/new/write +Label: Write +Type: TOGGLE +Current: 0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: +/main/other/d002 +Label: PTP Property 0xd002 +Type: MENU +Current: 6 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20151002T130841 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 3 +/main/other/5008 +Label: Focal Length +Type: MENU +Current: 3500 +Choice: 0 3500 +Choice: 1 4600 +Choice: 2 5300 +Choice: 3 6100 +Choice: 4 7300 +Choice: 5 8600 +Choice: 6 10500 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 80 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s3300.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s3300.txt new file mode 100644 index 00000000..98e34260 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s3300.txt @@ -0,0 +1,310 @@ +Nikon Coolpix S3300 (16.0 mp) + +one thing I found was that property d002 changes the resolution of the +image returned... +the resolutions returned are: +1= 4608x2592 (widescreen) +2= 640x480 +3= 1600x1200 +4= 2272x1704 +5= 3264x2448 +6= 4608x3456 (compressed bits per pixel: 2) +7= 4608x3456 (compressed bits per pixel: 4)(file is twice as large as +previous one) + + +Camera summary: +Manufacturer: Nikon Corporation +Model: S3300 + Version: COOLPIX S3300 V1.0 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; + +Capture Formats: JPEG +Display Formats: Association/Directory, Defined Type, JPEG, DPOF, MS AVI, +Apple Quicktime, MS Wave +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat +dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName +dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc08/DateCreated + Defined Type/3800: dc01/StorageID dc02/ObjectFormat +dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName +dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc09/DateModified +dc08/DateCreated + JPEG/3801: dc01/StorageID dc02/ObjectFormat +dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName +dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc87/Width dc88/Height +dcd3/ImageBitDepth dc09/DateModified dc08/DateCreated + DPOF/3006: dc01/StorageID dc02/ObjectFormat +dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName +dc0b/ParentObject dc44/Name dc03/ProtectionStatus + MS AVI/300a: dc01/StorageID dc02/ObjectFormat +dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName +dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc87/Width dc88/Height +dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate +de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels dc09/DateModified +dc08/DateCreated + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat +dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName +dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc09/DateModified +dc08/DateCreated + MS Wave/3008: dc01/StorageID dc02/ObjectFormat +dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName +dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc89/Duration +de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: S3300 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7956004864 (7587 MB) + Free Space (Bytes): 7533625344 (7184 MB) + Free Space (Images): 727 + +Device Property Summary: +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,7] value: 7 +Date & Time(0x5011):(readwrite) (type=0xffff) '20130301T203204' +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: +Flash off (2) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: +Automatic (2) +Focal Length(0x5008):(read only) (type=0x6) Enumeration +[3500,4600,5300,6100,7300,8600,10500] value: 35 mm (3500) +Battery Level(0x5001):(read only) (type=0x2) Enumeration +[2,5,25,50,65,80,100] value: 80% (80) +Property 0xd303:(read only) (type=0x2) 1 + +john@crossies-dev:~$ gphoto2 --list-config +/main/settings/datetime + +/main/settings/fastfs +/main/settings/capturetarget +/main/capturesettings/flashmode +/main/capturesettings/focallength +/main/capturesettings/focusmode +/main/wifiprofiles/new/name +/main/wifiprofiles/new/essid +/main/wifiprofiles/new/ipaddr +/main/wifiprofiles/new/netmask +/main/wifiprofiles/new/gw +/main/wifiprofiles/new/accessmode +/main/wifiprofiles/new/channel +/main/wifiprofiles/new/encryption +/main/wifiprofiles/new/key +/main/wifiprofiles/new/write +/main/other/d407 +/main/other/d406 +/main/other/d002 +/main/other/5011 +/main/other/500c +/main/other/500a +/main/other/5008 +/main/other/5001 +/main/other/d303 + +john@crossies-dev:~$ gphoto2 --get-config datetime +Label: Camera Date and +Time +Type: DATE +Current: 1362195218 +Printable: Fri 01 Mar 2013 08:33:38 PM MST + +john@crossies-dev:~$ gphoto2 --get-config fastfs +Label: Fast +Filesystem +Type: TOGGLE +Current: 1 + +john@crossies-dev:~$ gphoto2 --get-config capturetarget +Label: Capture +Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card + +john@crossies-dev:~$ gphoto2 --get-config flashmode +Label: Flash +Mode +Type: RADIO +Current: Flash off +Choice: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic + +john@crossies-dev:~$ gphoto2 --get-config focallength +Label: Focal +Length +Type: RANGE +Current: 35 +Bottom: 35 +Top: 105 +Step: 1 + +john@crossies-dev:~$ gphoto2 --get-config focusmode +Label: Focus +Mode +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Automatic Macro + +john@crossies-dev:~$ gphoto2 --get-config name +Label: Profile +name +Type: TEXT +Current: + +john@crossies-dev:~$ gphoto2 --get-config essid +Label: WIFI +ESSID +Type: TEXT +Current: + +john@crossies-dev:~$ gphoto2 --get-config ipaddr +Label: IP address (empty for +DHCP) +Type: TEXT +Current: + +john@crossies-dev:~$ gphoto2 --get-config netmask +Label: Network +mask +Type: TEXT +Current: + +john@crossies-dev:~$ gphoto2 --get-config gw +Label: Default +gateway +Type: TEXT +Current: + +john@crossies-dev:~$ gphoto2 --get-config accessmode +Label: Access +mode +Type: RADIO +Current: Managed +Choice: 0 Managed +Choice: 1 Ad-hoc + +john@crossies-dev:~$ gphoto2 --get-config channel +Label: WIFI +channel +Type: RANGE +Current: 1 +Bottom: 1 +Top: 11 +Step: 1 + +john@crossies-dev:~$ gphoto2 --get-config encryption +Label: +Encryption +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 WEP 64-bit +Choice: 2 WEP 128-bit + +john@crossies-dev:~$ gphoto2 --get-config key +Label: Encryption key +(hex) +Type: TEXT +Current: + +john@crossies-dev:~$ gphoto2 --get-config write +Label: +Write +Type: TOGGLE +Current: 0 + +john@crossies-dev:~$ gphoto2 --get-config d407 +Label: PTP Property +0xd407 +Type: TEXT +Current: 1 + +john@crossies-dev:~$ gphoto2 --get-config d406 +Label: PTP Property +0xd406 +Type: TEXT +Current: + +john@crossies-dev:~$ gphoto2 --get-config d002 +Label: PTP Property +0xd002 +Type: MENU +Current: 7 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 + +john@crossies-dev:~$ gphoto2 --get-config 5011 +Label: Date & +Time +Type: TEXT +Current: 20130301T203624 + +john@crossies-dev:~$ gphoto2 --get-config 500c +Label: Flash +Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 + +john@crossies-dev:~$ gphoto2 --get-config 500a +Label: Focus +Mode +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 3 + +john@crossies-dev:~$ gphoto2 --get-config 5008 +Label: Focal +Length +Type: MENU +Current: 3500 +Choice: 0 3500 +Choice: 1 4600 +Choice: 2 5300 +Choice: 3 6100 +Choice: 4 7300 +Choice: 5 8600 +Choice: 6 10500 + +john@crossies-dev:~$ gphoto2 --get-config 5001 +Label: Battery +Level +Type: MENU +Current: 80 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 + +john@crossies-dev:~$ gphoto2 --get-config d303 +Label: PTP Property +0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s3700.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s3700.txt new file mode 100644 index 00000000..7007a3fd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s3700.txt @@ -0,0 +1,270 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: S3700 + Version: COOLPIX S3700 V1.0 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com/deviceservices: 1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, Association/Directory, Defined Type, JPEG, DPOF, MS AVI, Apple Quicktime, MS Wave + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: S3700 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 15923150848 (15185 MB) + Free Space (Bytes): 15914598400 (15177 MB) + Free Space (Images): 1444 + +Device Property Summary: +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,7] value: 7 +Date & Time(0x5011):(readwrite) (type=0xffff) '20150928T161553' +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2] value: Flash off (2) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: Automatic (2) +Focal Length(0x5008):(read only) (type=0x6) Enumeration [3500,4600,5300,6100,7300,8600,10500] value: 35 mm (3500) +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) +Property 0xd303:(read only) (type=0x2) 1 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1443428161 +Printable: Mon Sep 28 16:16:01 2015 +Help: Use 'now' as the current time when setting. + +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: None +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: S3700 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: COOLPIX S3700 V1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com/deviceservices: 1.0; +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Flash off +Choice: 0 Automatic Flash +Choice: 1 Flash off +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 35 +Bottom: 35 +Top: 105 +Step: 1 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Automatic Macro +/main/wifiprofiles/new/name +Label: Profile name +Type: TEXT +Current: +/main/wifiprofiles/new/essid +Label: WIFI ESSID +Type: TEXT +Current: +/main/wifiprofiles/new/ipaddr +Label: IP address (empty for DHCP) +Type: TEXT +Current: +/main/wifiprofiles/new/netmask +Label: Network mask +Type: TEXT +Current: +/main/wifiprofiles/new/gw +Label: Default gateway +Type: TEXT +Current: +/main/wifiprofiles/new/accessmode +Label: Access mode +Type: RADIO +Current: Managed +Choice: 0 Managed +Choice: 1 Ad-hoc +/main/wifiprofiles/new/channel +Label: WIFI channel +Type: RANGE +Current: 1 +Bottom: 1 +Top: 11 +Step: 1 +/main/wifiprofiles/new/encryption +Label: Encryption +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 WEP 64-bit +Choice: 2 WEP 128-bit +/main/wifiprofiles/new/key +Label: Encryption key (hex) +Type: TEXT +Current: +/main/wifiprofiles/new/write +Label: Write +Type: TOGGLE +Current: 0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: +/main/other/d002 +Label: PTP Property 0xd002 +Type: MENU +Current: 7 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20150928T161601 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 3 +/main/other/5008 +Label: Focal Length +Type: MENU +Current: 3500 +Choice: 0 3500 +Choice: 1 4600 +Choice: 2 5300 +Choice: 3 6100 +Choice: 4 7300 +Choice: 5 8600 +Choice: 6 10500 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Hi + +In follow up to my last message regarding Nikon s6800 settings I have now +also been able to connect a Nikon Coolpix s3700 successfully and the +relevant information is below/attached. + +For some reason initially I was getting an error with gphoto2 and I think it +may be the device initially connected as memory storage(?) + +Initially lsusb gave USB PTP Class Camera usb:001,007 + +Afterwards(?) lsbusb gave USB PTP Class Camera usb:001,011 + +I discovered the PTP property 0xd002 is image mode with values and output as +follows; + +7 - Scene mode - AUTO, Quality - FINE, Compression 1/4, Size - 5152x3864 - +20MP (approx. 7.8MB) + +6 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 5152x3864 - +16MP (approx. 4.2MB) + +5 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 3648x2736 +- 10MP (approx. 2MB) + +4 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 2272x1704 - +4MP (approx. 0.9MB) + +3 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 1600x1200 - +2M (approx. 450kB) + +2 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 640x480 +-VGA (approx. 130kB) + +1 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 5120x2880 - +15MP (approx. 3.2MB) (16:9) + +0 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 5120x2880 - +15MP (approx. 3.2MB) + +Do you know what these properties could be for? + +Property 0xd407:(read only) (type=0x6) 1 + +Property 0xd406:(readwrite) (type=0xffff) '' + +------------------------------ + +Nikon Coolpix s3700 + +> lsusb + +Bus 001 Device 010: ID 04b0:035c Nikon Corp. + +> sudo gphoto2 --auto-detect + +Model Port + +---------------------------------------------------------- + +USB PTP Class Camera usb:001,011 + +See attached for summary and config details. + +Thanks for your support. + +David4x + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s6800.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s6800.txt new file mode 100644 index 00000000..bb24bfb3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s6800.txt @@ -0,0 +1,276 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: S6800 + Version: COOLPIX S6800 V1.1 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com/deviceservices: 1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, Association/Directory, Defined Type, JPEG, DPOF, MS AVI, Apple Quicktime, MS Wave + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: S6800 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 5271584768 (5027 MB) + Free Space (Images): 596 + +Device Property Summary: +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,7] value: 7 +Date & Time(0x5011):(readwrite) (type=0xffff) '20150928T152048' +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Flash off (2) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: Automatic (2) +Focal Length(0x5008):(read only) (type=0x6) Enumeration [3500,4600,5300,6100,7300,8600,10500] value: 35 mm (3500) +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) +Property 0xd303:(read only) (type=0x2) 1 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1443424884 +Printable: Mon Sep 28 15:21:24 2015 +Help: Use 'now' as the current time when setting. + +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: None +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: S6800 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: COOLPIX S6800 V1.1 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com/deviceservices: 1.0; +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Flash off +Choice: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 35 +Bottom: 35 +Top: 105 +Step: 1 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Automatic Macro +/main/wifiprofiles/new/name +Label: Profile name +Type: TEXT +Current: +/main/wifiprofiles/new/essid +Label: WIFI ESSID +Type: TEXT +Current: +/main/wifiprofiles/new/ipaddr +Label: IP address (empty for DHCP) +Type: TEXT +Current: +/main/wifiprofiles/new/netmask +Label: Network mask +Type: TEXT +Current: +/main/wifiprofiles/new/gw +Label: Default gateway +Type: TEXT +Current: +/main/wifiprofiles/new/accessmode +Label: Access mode +Type: RADIO +Current: Managed +Choice: 0 Managed +Choice: 1 Ad-hoc +/main/wifiprofiles/new/channel +Label: WIFI channel +Type: RANGE +Current: 1 +Bottom: 1 +Top: 11 +Step: 1 +/main/wifiprofiles/new/encryption +Label: Encryption +Type: RADIO +Current: None +Choice: 0 None +Choice: 1 WEP 64-bit +Choice: 2 WEP 128-bit +/main/wifiprofiles/new/key +Label: Encryption key (hex) +Type: TEXT +Current: +/main/wifiprofiles/new/write +Label: Write +Type: TOGGLE +Current: 0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: +/main/other/d002 +Label: PTP Property 0xd002 +Type: MENU +Current: 7 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20150928T152124 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 3 +/main/other/5008 +Label: Focal Length +Type: MENU +Current: 3500 +Choice: 0 3500 +Choice: 1 4600 +Choice: 2 5300 +Choice: 3 6100 +Choice: 4 7300 +Choice: 5 8600 +Choice: 6 10500 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Hi + +I have been able to connect a Nikon Coolpix s6800 successfully and the +relevant information is below/attached. + +I discovered the PTP propert 0xd002 is image mode with values and output as +follows; + +7 - Scene mode - AUTO, Quality - FINE, Compression 1/4, Size - 4608x3456 - +16MP (approx. 7MB) + +6 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 4608x3456 - +16MP (approx. 3.6MB) + +5 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 3264x2448 - +8MP (approx. 2MB) + +4 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 2272x1704 - +4MP (approx. 1MB) + +3 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 1600x1200 - +2M (approx. 530kB) + +2 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 640x480 +-VGA (approx. 140kB) + +1 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 4608x2592 - +12MP (approx. 2.9MB) + +0 - Scene mode - AUTO, Quality - NORMAL, Compression 1/8, Size - 4608x2592 - +12MP (approx. 2.9MB) + +Do you know what these properties could be for? + +Property 0xd407:(read only) (type=0x6) 1 + +Property 0xd406:(readwrite) (type=0xffff) '' + +------------------------------ + +Nikon Coolpix s6800 + +> lsusb + +Bus 001 Device 008: ID 04b0:0350 Nikon Corp. + +> sudo gphoto2 --auto-detect + +Model Port + +---------------------------------------------------------- + +USB PTP Class Camera usb:001,008 + +See attached for summary and config details. + +However, I have not been as successful with a Nikon Coolpix s3700 so I will +post this as a ticket. + +Finally I have not been able to find out if an Olympus DMD E-M10 can be +controlled completely by gphoto (ie image resolution and quality). Do you +know how I can find this out as it is rather expensive to purchase one and +fail. + +Thanks for your support. + +Thanks, + +David4x diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s8000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s8000.txt new file mode 100644 index 00000000..1e700ace --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix-s8000.txt @@ -0,0 +1,55 @@ +Device info: +Manufacturer: Nikon Corporation + Model: S8000 + device version: V1.00 + serial number: 'nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x100b + 0x100f + 0x9801 + 0x9803 + 0x9802 + 0x9805 + 0x1014 + 0x1015 + 0x1016 + 0x90a1 + 0x90a2 + 0x90a3 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c +Device Properties Supported: + 0x5001 + 0x5011 + 0xd280 + 0xd303 + 0xd407 + 0xd406 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix225.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix225.txt new file mode 100644 index 00000000..4088b848 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix225.txt @@ -0,0 +1,129 @@ +Device info: +Manufacturer: Nikon Corporation + Model: S225 + device version: COOLPIX S225V1.0 + serial number: 'XXXXXXXXXXX' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5011 + 0xd005 + 0xd407 + +Camera summary: +Manufacturer: Nikon Corporation +Model: S225 + Version: COOLPIX S225V1.0 + Serial Number: XXXXXXXXXXX +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; Nikon PTP Extensions + +Capture Formats: JPEG +Display Formats: JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, MS AVI, Defined Type +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3955228672 (3772 MB) + Free Space (Bytes): 3610804224 (3443 MB) + Free Space (Images): 1412 + +Device Property Summary: +Date & Time(0x5011):(readwrite) (type=0xffff) '20091223T183642' + +/main/actions/autofocusdrive + Label: Drive Nikon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/actions/manualfocusdrive + Label: Drive Nikon DSLR Manual focus + Type: RANGE + Current: 0 + Bottom: -32767 + Top: 32767 + Step: 1 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1261589802 + Printable: Wed Dec 23 18:36:42 2009 +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/other/5011 + Label: Date & Time + Type: TEXT + Current: 20091223T183643 +/main/other/d005 + Label: PTP Property 0xd005 + Type: MENU + Current: 2 + Choice: 0 1 + Choice: 1 2 +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix2500.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix2500.txt new file mode 100644 index 00000000..118b7a4a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix2500.txt @@ -0,0 +1,26 @@ +Manufacturer: Nikon Corporation + model: E2500 + device version: E2500v1.1 + serial number: 'XXXXXXXXXXXX' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x101b + 0x9001 +Events Supported: + 0x4001 + 0x4004 + 0x4005 + 0xc001 +Device Properties Supported: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix4600a.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix4600a.txt new file mode 100644 index 00000000..5213e494 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix4600a.txt @@ -0,0 +1,57 @@ +Device info: +Manufacturer: Nikon Corporation + Model: E4600 + device version: E4600v1.1 + serial number: 'nnnnnnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5008 + 0x500a + 0x500c + 0x5011 + 0xd001 + 0xd002 + 0xd005 + 0xd161 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5000.txt new file mode 100644 index 00000000..f4c859b2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5000.txt @@ -0,0 +1,75 @@ +Device info: +Manufacturer: Nikon Corporation + model: E5000 + device version: E5000v1.7 + serial number: '00000XXXXXXX' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100e + 0x1016 + 0x101b +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x5009 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5013 +Camera summary: +Model: E5000 + device version: E5000v1.8 + serial number: nnnnnnnnnnnn +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions + +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1280x960', + '1600x1200', + '2560x1920', + '2560x1704' + ] value: '2560x1920' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25,100,127] value: 25 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,6,5,32769,3,7] value: Auto (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [280,310,350,400,440,500,560,630,710,800] value: f/0 (0) +Focal Length(0x5008):(readwrite) (type=0x6) Enumeration [2800,3000,3300,3500,3800,4100,4500,4900,5400,5900,6400,6900,7400,7900,8500] value: 28 mm (2800) +Focus Distance(0x5009):(readwrite) (type=0x4) Enumeration [65535,10000,7000,5000,4000,3000,2500,2000,1700,1500,1300,1200,1100,1000,900,800,700,600,500,450,400,350,320,300,280,260,250,240,230,220,210,200,190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20] value: 20 +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,0,3,1] value: 0 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [1,4,2,3] value: 1 +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4,32769] value: 1 +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [80000,40000,20000,10000,5000,2500,1250,662,333,167,80,40,20,10,5,2] value: 0.2 sec (20000) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [65535,100,200,400,800] value: ISO 65535 (65535) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1] value: Single Shot (1) +Property 0xd001:(read only) (type=0x0) Undefined diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5400.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5400.txt new file mode 100644 index 00000000..5fbfd0aa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5400.txt @@ -0,0 +1,191 @@ +> gphoto2 --summary +Camera +summary: +Manufacturer: Nikon Corporation +Model: E5400 + Version: E5400v1.4 + Serial Number: nnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Nikon PTP Extensions + +Capture Formats: JPEG +Display Formats: JPEG, TIFF, Association/Directory, DPOF, MS Wave, Apple +Quicktime + +Device Capabilities: + File Download, File Deletion, No File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 256475136 (244 MB) + Free Space (Bytes): 247463936 (236 MB) + Free Space (Images): 98 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration +[2,5,25,50,65,80,100] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1280x960', + '1600x1200', + '2592x1944', + '2592x1728' + ] value: '2592x1944' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25] +value: JPEG Fine (25) +Focal Length(0x5008):(readwrite) (type=0x6) Enumeration +[2800,3100,3500,3900,4200,4600,5000,5300,5700,6100,6500,7000,7500,8000,8600,9000,9500,10200,10800,11600] value: 28 mm (2800) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: +Automatic (2) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: +Automatic flash (1) +Date & Time(0x5011):(readwrite) (type=0xffff) '20101104T202019' +Property 0xd001: error 200a on query. + +> gphoto2 --list-config |while read x; do echo $x ; gphoto2 --get-config $x ; done +/main/settings/datetime +/main/settings/fastfs +/main/settings/capturetarget +/main/imgsettings/imagequality +/main/imgsettings/imagesize +/main/capturesettings/flashmode +/main/capturesettings/focallength +/main/capturesettings/focusmode +/main/other/5001 +/main/other/5003 +/main/other/5004 +/main/other/5008 +/main/other/500a +/main/other/500c +/main/other/5011 + +# gphoto2 --get-config /main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1288859162 +Printable: Thu 04 Nov 2010 09:26:02 PM NZDT +# gphoto2 --get-config /main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +# gphoto2 --get-config /main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +# gphoto2 --get-config /main/imgsettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +# gphoto2 --get-config /main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 2592x1944 +Choice: 0 640x480 +Choice: 1 1024x768 +Choice: 2 1280x960 +Choice: 3 1600x1200 +Choice: 4 2592x1944 +Choice: 5 2592x1728 +# gphoto2 --get-config /main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Automatic Flash +Choice: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic +# gphoto2 --get-config /main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 28 +Bottom: 28 +Top: 116 +Step: 1 +# gphoto2 --get-config /main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Automatic Macro +# gphoto2 --get-config /main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 +# gphoto2 --get-config /main/other/5003 +Label: Image Size +Type: MENU +Current: 2592x1944 +Choice: 0 640x480 +Choice: 1 1024x768 +Choice: 2 1280x960 +Choice: 3 1600x1200 +Choice: 4 2592x1944 +Choice: 5 2592x1728 +# gphoto2 --get-config /main/other/5004 +Label: Compression Setting +Type: MENU +Current: 25 +Choice: 0 6 +Choice: 1 12 +Choice: 2 25 +# gphoto2 --get-config /main/other/5008 +Label: Focal Length +Type: MENU +Current: 2800 +Choice: 0 2800 +Choice: 1 3100 +Choice: 2 3500 +Choice: 3 3900 +Choice: 4 4200 +Choice: 5 4600 +Choice: 6 5000 +Choice: 7 5300 +Choice: 8 5700 +Choice: 9 6100 +Choice: 10 6500 +Choice: 11 7000 +Choice: 12 7500 +Choice: 13 8000 +Choice: 14 8600 +Choice: 15 9000 +Choice: 16 9500 +Choice: 17 10200 +Choice: 18 10800 +Choice: 19 11600 +# gphoto2 --get-config /main/other/500a +Label: Focus Mode +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 3 +# gphoto2 --get-config /main/other/500c +Label: Flash Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +# gphoto2 --get-config /main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20101104T203206 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5700.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5700.txt new file mode 100644 index 00000000..d5b29d83 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5700.txt @@ -0,0 +1,77 @@ +Manufacturer: Nikon Corporation + model: E5700 + device version: E5700v1.1 + serial number: '00000XXXXXXX' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100e + 0x1016 + 0x101b + 0x9002 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x5009 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5013 + 0xd001 + + +Camera summary: +Model: E5700 + device version: E5700v1.1 + serial number: 00000xxxxxxx +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1280x960', + '1600x1200', + '2560x1920', + '2560x1704' + ] value: '2560x1920' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25,100,127] value: 25 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,6,5,32769,3,7] value: Auto (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [280,320,350,400,450,500,560,630,710,800] value: f/2.9 (290) +Focal Length(0x5008):(readwrite) (type=0x6) Enumeration [3500,3500,3600,3700,3900,4200,4600,5000,5400,5800,6200,6600,7000,7400,7800,8300,8800,9300,10000,10700,11600,12500,13600,14800,16100,17600,19100,20600,22300,24200,26600,28000] value: 35 mm (3500) +Focus Distance(0x5009):(readwrite) (type=0x4) Enumeration [65535,19910,9910,6570,4910,3910,3240,2760,2410,2130,1910,1730,1570,1450,1340,1240,1160,1080,1020,960,910,820,750,690,640,600,560,520,490,460,430,410,390,370,350,330,320,300,290,280,270,260,250,240,230,220,210,190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30] value: 1020 +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,0,3,1] value: 2 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [1,4,2,3] value: 1 +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4,32769] value: 2 +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [80000,40000,20000,10000,5000,2500,1250,662,333,167,80,40,20,10,5,2] value: 5e-05 sec (5) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: P (2) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [65535,100,200,400,800] value: ISO 100 (100) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1] value: Single Shot (1) +Property 0xd001:(read only) (type=0x0) Undefined diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5900.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5900.txt new file mode 100644 index 00000000..e6c8805f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix5900.txt @@ -0,0 +1,65 @@ +Device info: +Manufacturer: Nikon Corporation + model: E5900 + device version: E5900v1.1 + serial number: '0000XXXXXXXX' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9002 + 0x9003 + 0x9004 + 0x90c0 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5008 + 0x500a + 0x500c + 0x5011 + 0xd001 + 0xd002 + 0xd003 + 0xd102 + 0xd005 + 0xd161 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix7600.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix7600.txt new file mode 100644 index 00000000..10966780 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix7600.txt @@ -0,0 +1,117 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: E7600 + Version: E7600v1.0 + Serial Number: nnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Nikon PTP Extensions + +Capture Formats: JPEG +Display Formats: JPEG, TIFF, Association/Directory, DPOF, MS Wave, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1005696 (0 MB) + Free Space (Bytes): 1017413632 (970 MB) + Free Space (Images): 287 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration +[2,5,25,50,65,80,100] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '2048x1536', + '2592x1944', + '3072x2304' + ] value: '3072x2304' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [12,25] value: 25 +Focal Length(0x5008):(readwrite) (type=0x6) Enumeration [3400,3500,3600,3800,4200,4600,5000,5400,5800,6300,6600,7000,7400,7800,8200,8600,9000,9400,9900,10200] value: 38 mm (3800) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: Automatic (2) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Flash off (2) +Date & Time(0x5011):(readwrite) (type=0xffff) '20100422T172159' +Property 0xd001: error 200a on query. +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6] value: 6 +Property 0xd003:(read only) (type=0x4) Enumeration [1,2] value: 1 +Warning Status(0xd102):(read only) (type=0x2) 0 +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 1 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 1, step 1] value: AF-S (0) +---------------------------------------------------------------------------------------- +/main/settings/autofocusdrive + Label: Drive Nikon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/settings/manualfocusdrive + Label: Drive Nikon DSLR Manual focus + Type: RANGE + Current: 0 + Bottom: -32767 + Top: 32767 + Step: 1 +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1271953456 + Printable: Thu Apr 22 18:24:16 2010 +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imgquality + Label: Image Quality + Type: RADIO + Current: Unknown value 0019 + Choice: 0 Unknown value 000c + Choice: 1 Unknown value 0019 +/main/imgsettings/imgsize + Label: Image Size + Type: RADIO + Current: 3072x2304 + Choice: 0 640x480 + Choice: 1 1024x768 + Choice: 2 2048x1536 + Choice: 3 2592x1944 + Choice: 4 3072x2304 +/main/capturesettings/autofocusmode + Label: Auto Focus Mode + Type: RADIO + Current: AF-S + Choice: 0 AF-S + Choice: 1 AF-C +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 38 + Bottom: 34 + Top: 102 + Step: 1 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Automatic Macro +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Flash off + Choice: 0 Automatic Flash + Choice: 1 Flash off + Choice: 2 Fill flash + Choice: 3 Red-eye automatic +----------------------------------------------------------------------------------------- diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix8800.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix8800.txt new file mode 100644 index 00000000..ed9e64fa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-coolpix8800.txt @@ -0,0 +1,227 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: E8800 + Version: E8800v1.7 + Serial Number: 000000000000 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Nikon PTP Extensions + +Capture Formats: JPEG +Display Formats: JPEG, TIFF, Association/Directory, DPOF, MS Wave, Apple +Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 2000576 (1 MB) + Free Space (Bytes): 2048425984 (1953 MB) + Free Space (Images): 1008 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [25,50,65,80,100] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1280x960', + '1600x1200', + '2048x1536', + '2592x1944', + '3264x2448', + '3264x2176' + ] value: '3264x2448' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25] value: 12 +Focal Length(0x5008):(readwrite) (type=0x6) Enumeration [3500,3700,4000,4300,4600,5000,5400,5900,6400,7100,7800,8600, 9400,10400,11500,12700,14100,15700,17500,19200,20900,22500, 24000,25300,26700,27900,29100,30200,31400,32600,33800,35000] value: 35 mm (3500) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: Automatic (2) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Automatic flash (1) +Date & Time(0x5011):(readwrite) (type=0xffff) '20100126T063838' +Property 0xd001: error 200a on query. +Property 0xd003:(read only) (type=0x4) Enumeration [1,2] value: 1 +Warning Status(0xd102):(read only) (type=0x2) 0 +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 2 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 1, step 1] value: AF-S (0) + + +/main/actions/autofocusdrive + Label: Drive Nikon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/actions/manualfocusdrive + Label: Drive Nikon DSLR Manual focus + Type: RANGE + Current: 0 + Bottom: -32767 + Top: 32767 + Step: 1 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1264814294 + Printable: Fri Jan 29 19:18:14 2010 +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imagequality + Label: Image Quality + Type: RADIO + Current: Unknown value 000c + Choice: 0 NEF+Fine + Choice: 1 Unknown value 000c + Choice: 2 Unknown value 0019 +/main/imgsettings/imagesize + Label: Image Size + Type: RADIO + Current: 3264x2448 + Choice: 0 640x480 + Choice: 1 1024x768 + Choice: 2 1280x960 + Choice: 3 1600x1200 + Choice: 4 2048x1536 + Choice: 5 2592x1944 + Choice: 6 3264x2448 + Choice: 7 3264x2176 +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Automatic Flash + Choice: 0 Automatic Flash + Choice: 1 Flash off + Choice: 2 Fill flash + Choice: 3 Red-eye automatic +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 86 + Bottom: 35 + Top: 350 + Step: 1 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Automatic Macro +/main/capturesettings/focusmode2 + Label: Focus Mode 2 + Type: RADIO + Current: AF-S + Choice: 0 AF-S + Choice: 1 AF-C +/main/other/5001 + Label: Battery Level + Type: MENU + Current: 100 + Choice: 0 25 + Choice: 1 50 + Choice: 2 65 + Choice: 3 80 + Choice: 4 100 +/main/other/5003 + Label: Image Size + Type: MENU + Current: 3264x2448 + Choice: 0 640x480 + Choice: 1 1024x768 + Choice: 2 1280x960 + Choice: 3 1600x1200 + Choice: 4 2048x1536 + Choice: 5 2592x1944 + Choice: 6 3264x2448 + Choice: 7 3264x2176 +/main/other/5004 + Label: Compression Setting + Type: MENU + Current: 12 + Choice: 0 6 + Choice: 1 12 + Choice: 2 25 +/main/other/5008 + Label: Focal Length + Type: MENU + Current: 8600 + Choice: 0 3500 + Choice: 1 3700 + Choice: 2 4000 + Choice: 3 4300 + Choice: 4 4600 + Choice: 5 5000 + Choice: 6 5400 + Choice: 7 5900 + Choice: 8 6400 + Choice: 9 7100 + Choice: 10 7800 + Choice: 11 8600 + Choice: 12 9400 + Choice: 13 10400 + Choice: 14 11500 + Choice: 15 12700 + Choice: 16 14100 + Choice: 17 15700 + Choice: 18 17500 + Choice: 19 19200 + Choice: 20 20900 + Choice: 21 22500 + Choice: 22 24000 + Choice: 23 25300 + Choice: 24 26700 + Choice: 25 27900 + Choice: 26 29100 + Choice: 27 30200 + Choice: 28 31400 + Choice: 29 32600 + Choice: 30 33800 + Choice: 31 35000 +/main/other/500a + Label: Focus Mode + Type: MENU + Current: 2 + Choice: 0 2 + Choice: 1 3 +/main/other/500c + Label: Flash Mode + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 +/main/other/5011 + Label: Date & Time + Type: TEXT + Current: 20100129T191959 +/main/other/d003 + Label: PTP Property 0xd003 + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 +/main/other/d102 + Label: Warning Status + Type: TEXT + Current: 0 +/main/other/d005 + Label: PTP Property 0xd005 + Type: MENU + Current: 2 + Choice: 0 1 + Choice: 1 2 +/main/other/d161 + Label: Autofocus Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d100.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d100.txt new file mode 100644 index 00000000..57389dd1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d100.txt @@ -0,0 +1,46 @@ +Device info: +Manufacturer: Nikon Corporation + model: D100 + device version: V2.00 + serial number: '(null)' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90e0 + 0x90e1 + 0x90e2 + 0x90e3 + 0x90e4 + 0x90e5 + 0x90e6 + 0x90e7 + 0x90e8 + 0x90e9 + 0x90ea + 0x90eb + 0x90ec + 0x90ed + 0x90ee + 0x90ef + 0x90f0 +Events Supported: + 0x4001 + 0x4004 + 0x4005 +Device Properties Supported: + 0x5011 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d200.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d200.txt new file mode 100644 index 00000000..46e27231 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d200.txt @@ -0,0 +1,941 @@ +Device info: +Manufacturer: Nikon Corporation + model: D200 + device version: V1.00 + serial number: '0000000' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c5 + 0x90c6 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + +Kamerazusammenfassung: +Hersteller: Nikon Corporation +Modell: D200 + Version: V2.00 + Seriennummer: 0000000 +Vendor Extension ID: 0xa (1.0) +Beschreibung der Vendor Extension: Nikon PTP Extensions + +Aufnahmeformate: JPEG Undefined Type +Anzeigeformate: Undefined Type, Association/Directory, TIFF, JPEG, JFIF, DPOF, Script + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Generische Bild Aufnahme, keine Offene Aufnahme, Nikon Aufnahme + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: NIKON D200 + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Nur Lesen und Löschen + Maximale Kapazität: 2047541248 (1952 MB) + Freier Platz (Bytes): 1983053824 (1891 MB) + Freier Speicher (Bilder): 116 + +Properties des Geräts: +Batterie Ladezustand(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 30% (30) +Bildgröße(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3872x2592', + '2896x1944', + '1936x1296' + ] value: '3872x2592' +Kompressions Parameter(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6] value: 3 +Weißabgleich(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Nummer(0x5007):(readwrite) (type=0x4) Enumeration [280] value: f/2.8 (280) +Fokus Tiefe(0x5008):(read only) (type=0x6) Range [0 - 0, step 1] value: 0 mm (0) +Fokusmodus(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: Manual Focus (1) +Belichtungsmessmodus(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Blitzmodus(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Default (32784) +Belichtungszeit(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.033 sec (3333) +Belichtungs Programm Modus(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: A (3) +Belichtungs Index (nach ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200] value: ISO 200 (200) +Belichtungskompensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: -0.3 stops (-333) +Datum und Zeit(0x5011):(readwrite) (type=0xffff) '20090120T134930' +Bildaufnahme Modus(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786] value: Single Shot (1) +Bildzahl im Burstmodus(0x5018):(readwrite) (type=0x4) Range [1 - 25, step 1] value: 1 +Entfernungs Messungs Modus(0x501c):(read only) (type=0x4) Enumeration [2,32784,32785,32786] value: Single Area (32784) +Shooting Bank(0xd010):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Shooting Bank Name A(0xd011):(readwrite) (type=0xffff) ' ' +Shooting Bank Name B(0xd012):(readwrite) (type=0xffff) 'Ok ' +Shooting Bank Name C(0xd013):(readwrite) (type=0xffff) ' ' +Shooting Bank Name D(0xd014):(readwrite) (type=0xffff) ' ' +Property 0xd015:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Automatische Weißabgleich Abweichung(0xd017):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Tungsten Weißabgleich Abweichung(0xd018):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Floureszierend Weißabgleich Abweichung(0xd019):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Tageslicht Weißabgleich Abweichung(0xd01a):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Blitz Weißabgleich Abweichung(0xd01b):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Wolkig Weißabgleich Abweichung(0xd01c):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Schattig Weißabgleich Abweichung(0xd01d):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Weißabgleich Farbtemperatur(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd020:(readwrite) (type=0xffff) ' ' +Property 0xd021:(readwrite) (type=0xffff) ' ' +Property 0xd022:(readwrite) (type=0xffff) ' ' +Property 0xd023:(readwrite) (type=0xffff) ' ' +Property 0xd024:(readwrite) (type=0xffff) ' ' +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 53215334 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 30212454 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 30212454 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 30212454 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 30212454 +Schärfen(0xd02a):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Auto (0) +Ton Anpassung(0xd02b):(readwrite) (type=0x2) Range [0 - 4, step 1] value: Auto (0) +Farbmodell(0xd02c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: sRGB (0) +Farbton Anpassung(0xd02d):(readwrite) (type=0x1) Range [-9 - 9, step 3] value: 0 +Fokus Tiefe der Linse (Nicht CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 14 +Maximale Blende der Linse (Nicht CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 6 +Property 0xd031:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd032:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Menu Bank Name A(0xd041):(readwrite) (type=0xffff) ' ' +Menu Bank Name B(0xd042):(readwrite) (type=0xffff) ' ' +Menu Bank Name C(0xd043):(readwrite) (type=0xffff) ' ' +Menu Bank Name D(0xd044):(readwrite) (type=0xffff) ' ' +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A3GroupDynamicAF(0xd04a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +PTP_DPC_NIKON_A4AFActivation(0xd04b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Fokus Bereich Wraparound(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Vertikaler Autofokus An(0xd050):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd051:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Property 0xd052:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +ISO-Schritt(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Belichtungszeitschritt(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Belichtungskompensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Belichtungskompensation(0xd058):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Mittelpunkt/Gewichtet Bereich(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Property 0xd05a:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd05b:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd05c:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Belichtungs Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Fokus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE/AF Lock (0) +Zeit für automatische Sensor Abschaltung(0xd062):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 6 seconds (1) +Selbstauslöserzeit(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 10 seconds (2) +Zeit für automatische Abschaltung des LCD(0xd064):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 10 seconds (0) +Abstand bei Mehrfachbelichtung(0xd068):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +PTP_DPC_NIKON_D3ExpDelayMode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Langzeitbelichtungsrauschkompensation(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bildnummer Zählung(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +PTP_DPC_NIKON_D7Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd070:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Blitzsynchronisations Geschwindigkeit(0xd074):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Blitz Belichtungszeit(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 0 +Modellierblitz(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Abstufungsbereich(0xd078):(readwrite) (type=0x2) Range [0 - 3, step 1] value: Flash only (2) +Manueller Abstufungsmodus(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Abstufungsrichtung(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Automatischer Abstufungsselektion(0xd07b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Mittlerer Button Aufnahme Modus(0xd080):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Mittlerer Button Playback Modus(0xd081):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Multiselektor(0xd082):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Photo Info. Playback(0xd083):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Weise Func. Button zu(0xd084):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 0 +Passe Kommando Dials an(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Umgedrehtes Kommando Rad(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Blendeneinstellung(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Menüs und Abspielen(0xd088):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Knöpfe und Räder(0xd089):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auslösen ohne CF Karte(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Property 0xd08b:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Bild Kommentar(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bildrotationsflag(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 9, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Objektiv Kennung(0xd0e0):(read only) (type=0x2) Unknown (0) +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Lens Type(0xd0e2):(read only) (type=0x2) 0 +Minimale Brennweite(0xd0e3):(read only) (type=0x6) 0 mm (0) +Maximale Brennweite(0xd0e4):(read only) (type=0x6) 0 mm (0) +Maximale Blende bei Minimaler Brennweite(0xd0e5):(read only) (type=0x4) f/0 (0) +Maximale Blende bei maximaler Brennweite(0xd0e6):(read only) (type=0x4) f/0 (0) +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 65539 +Netzanschluss(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximale Bildanzahl(0xd103):(read only) (type=0x2) Range [1 - 25, step 1] value: 21 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Aktiver AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 10, step 1] value: 6 +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Belichtungsmesser(0xd10a):(read only) (type=0x1) Range [-128 - 127, step 1] value: 0.0 stops (0) +Property 0xd10b:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd10c:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd10d:(read only) (type=0xffff) ' ' +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 2, step 1] value: 0' (0) +Property 0xd10f:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Blitz Belichtungskompensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Bild Optimierung(0xd140):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Normal (0) +Sättigung(0xd142):(readwrite) (type=0x2) Range [0 - 3, step 1] value: Moderate (1) +AF Signalton Modus(0xd160):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Autofokus Hilfslicht(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Auto ISO P/A/DVP Einstellung(0xd164):(readwrite) (type=0x2) Range [0 - 13, step 1] value: 2 (8) +AF Bereich Aufhellung(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Blitzmodus(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +Gitterlinien im Sucher(0xd16c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Blitzmodus mit manuelle Energie(0xd16d):(readwrite) (type=0x2) Range [0 - 7, step 1] value: Full (0) +Property 0xd181:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd182:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd183:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Blitz offen(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Blitz geladen(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1d0:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Property 0xd1d1:(readwrite) (type=0x2) Range [0 - 13, step 1] value: 8 +Property 0xd1d2:(readwrite) (type=0x2) Range [0 - 13, step 1] value: 9 +Property 0xd1d3:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1d4:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd1d5:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1d6:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Property 0xd1d7:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1d8:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1d9:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Property 0xd1da:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1db:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1dc:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 + +/main/settings/autofocusdrive + Label: Drive Nikon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1232455777 + Printable: Tue Jan 20 13:49:37 2009 +/main/settings/imgcomment + Label: Image Comment + Type: TEXT + Current: +/main/settings/imgcommentenable + Label: Enable Image Comment + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/lcdofftime + Label: LCD Off Time + Type: RADIO + Current: 10 seconds + Choice: 0 10 seconds + Choice: 1 20 seconds + Choice: 2 1 minute + Choice: 3 5 minutes + Choice: 4 10 minutes +/main/settings/meterofftime + Label: Meter Off Time + Type: RADIO + Current: 6 seconds + Choice: 0 4 seconds + Choice: 1 6 seconds + Choice: 2 8 seconds + Choice: 3 16 seconds + Choice: 4 30 minutes +/main/settings/reversedial + Label: Reverse Command Dial + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/battery + Label: Battery Level + Type: TEXT + Current: 30% +/main/settings/orientation + Label: Camera Orientation + Type: RADIO + Current: 0' + Choice: 0 0' + Choice: 1 270' + Choice: 2 90' +/main/settings/acpower + Label: AC Power + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/externalflash + Label: External Flash + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/flashopen + Label: Flash Open + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/flashcharged + Label: Flash Charged + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imgquality + Label: Image Quality + Type: RADIO + Current: NEF (Raw) + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF (Raw) + Choice: 4 NEF+Basic + Choice: 5 NEF+Normal + Choice: 6 NEF+Fine +/main/imgsettings/imgsize + Label: Image Size + Type: RADIO + Current: 3872x2592 + Choice: 0 3872x2592 + Choice: 1 2896x1944 + Choice: 2 1936x1296 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 200 + Choice: 0 100 + Choice: 1 125 + Choice: 2 160 + Choice: 3 200 + Choice: 4 250 + Choice: 5 320 + Choice: 6 400 + Choice: 7 500 + Choice: 8 640 + Choice: 9 800 + Choice: 10 1000 + Choice: 11 1250 + Choice: 12 1600 + Choice: 13 2000 + Choice: 14 2500 + Choice: 15 3200 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Daylight + Choice: 2 Fluorescent + Choice: 3 Tungsten + Choice: 4 Flash + Choice: 5 Cloudy + Choice: 6 Shade + Choice: 7 Color Temperature + Choice: 8 Preset +/main/imgsettings/colormodel + Label: Color Model + Type: RADIO + Current: sRGB (portrait) + Choice: 0 sRGB (portrait) + Choice: 1 AdobeRGB + Choice: 2 sRGB (nature) +/main/imgsettings/autoiso + Label: Auto ISO + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/imgsettings/autoisopadv + Label: Auto ISO PADV Time + Type: RADIO + Current: 2 + Choice: 0 1/125 + Choice: 1 1/60 + Choice: 2 1/30 + Choice: 3 1/15 + Choice: 4 1/8 + Choice: 5 1/4 + Choice: 6 1/2 + Choice: 7 1 + Choice: 8 2 + Choice: 9 4 + Choice: 10 8 + Choice: 11 15 + Choice: 12 30 + Choice: 13 Unknown value 000d +/main/capturesettings/longexpnr + Label: Long Exp Noise Reduction + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusmode2 + Label: Auto Focus Mode 2 + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nikonflashmode + Label: Flash Mode + Type: RADIO + Current: iTTL + Choice: 0 iTTL + Choice: 1 Manual + Choice: 2 Commander + Choice: 3 Unknown value 0003 +/main/capturesettings/af-area-illumination + Label: AF Area Illumination + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Off + Choice: 2 On +/main/capturesettings/afbeep + Label: AF Beep Mode + Type: TOGGLE + Current: 0 +/main/capturesettings/f-number + Label: F-Number + Type: RADIO + Current: f/2.8 + Choice: 0 f/2.8 +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 0 + Bottom: 0 + Top: 0 + Step: 0.01 +/main/capturesettings/minfocallength + Label: Focal Length Minimum + Type: TEXT + Current: 0 mm +/main/capturesettings/maxfocallength + Label: Focal Length Maximum + Type: TEXT + Current: 0 mm +/main/capturesettings/apertureatminfocallength + Label: Maximum Aperture at Focal Length Minimum + Type: TEXT + Current: 0 mm +/main/capturesettings/apertureatmaxfocallength + Label: Maximum Aperture at Focal Length Maximum + Type: TEXT + Current: 0 mm +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: Manual + Choice: 0 Manual + Choice: 1 AF-S + Choice: 2 AF-C +/main/capturesettings/exposurebiascompensation + Label: Exposure Bias Compensation + Type: RADIO + Current: -333 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/capturesettings/exptime + Label: Exposure Time + Type: RADIO + Current: 3.333 + Choice: 0 0.001 + Choice: 1 0.002 + Choice: 2 0.003 + Choice: 3 0.004 + Choice: 4 0.005 + Choice: 5 0.006 + Choice: 6 0.008 + Choice: 7 0.010 + Choice: 8 0.012 + Choice: 9 0.015 + Choice: 10 0.020 + Choice: 11 0.025 + Choice: 12 0.031 + Choice: 13 0.040 + Choice: 14 0.050 + Choice: 15 0.062 + Choice: 16 0.080 + Choice: 17 0.100 + Choice: 18 0.125 + Choice: 19 0.166 + Choice: 20 0.200 + Choice: 21 0.250 + Choice: 22 0.333 + Choice: 23 0.400 + Choice: 24 0.500 + Choice: 25 0.666 + Choice: 26 0.769 + Choice: 27 1 + Choice: 28 1.250 + Choice: 29 1.666 + Choice: 30 2 + Choice: 31 2.500 + Choice: 32 3.333 + Choice: 33 4 + Choice: 34 5 + Choice: 35 6.250 + Choice: 36 7.692 + Choice: 37 10 + Choice: 38 13 + Choice: 39 16 + Choice: 40 20 + Choice: 41 25 + Choice: 42 30 + Choice: 43 40 + Choice: 44 50 + Choice: 45 60 + Choice: 46 80 + Choice: 47 100 + Choice: 48 130 + Choice: 49 150 + Choice: 50 200 + Choice: 51 250 + Choice: 52 300 +/main/capturesettings/expprogram + Label: Exposure Program + Type: RADIO + Current: A + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S +/main/capturesettings/capturemode + Label: Still Capture Mode + Type: RADIO + Current: Single Shot + Choice: 0 Single Shot + Choice: 1 Burst + Choice: 2 Continuous Low Speed + Choice: 3 Timer + Choice: 4 Mirror Up +/main/capturesettings/focusmetermode + Label: Focus Metering Mode + Type: RADIO + Current: Single Area + Choice: 0 Multi-spot + Choice: 1 Single Area + Choice: 2 Closest Subject + Choice: 3 Group Dynamic +/main/capturesettings/exposuremetermode + Label: Exposure Metering Mode + Type: RADIO + Current: Multi Spot + Choice: 0 Center Weighted + Choice: 1 Multi Spot + Choice: 2 Center Spot +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Default + Choice: 0 Red-eye automatic + Choice: 1 Default + Choice: 2 Slow Sync + Choice: 3 Rear Curtain Sync + Slow Sync + Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/focusareawrap + Label: Focus Area Wrap + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurelock + Label: Exposure Lock + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelaflmode + Label: AE-L/AF-L Mode + Type: RADIO + Current: AE/AF Lock + Choice: 0 AE/AF Lock + Choice: 1 AE Lock only + Choice: 2 AF Lock Only + Choice: 3 AF Lock Hold + Choice: 4 AF On +/main/capturesettings/filenrsequencing + Label: File Number Sequencing + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/viewfindergrid + Label: Viewfinder Grid + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/imagerotationflag + Label: Image Rotation Flag + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nocfcardrelease + Label: Release without CF card + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/flashmodemanualpower + Label: Flash Mode Manual Power + Type: RADIO + Current: Full + Choice: 0 Full + Choice: 1 1/2 + Choice: 2 1/4 + Choice: 3 1/8 + Choice: 4 1/16 + Choice: 5 Unknown value 0005 + Choice: 6 Unknown value 0006 + Choice: 7 Unknown value 0007 +/main/capturesettings/autofocusarea + Label: Auto Focus Area + Type: RADIO + Current: Unknown value 0006 + Choice: 0 Centre + Choice: 1 Top + Choice: 2 Bottom + Choice: 3 Left + Choice: 4 Right + Choice: 5 Unknown value 0005 + Choice: 6 Unknown value 0006 + Choice: 7 Unknown value 0007 + Choice: 8 Unknown value 0008 + Choice: 9 Unknown value 0009 + Choice: 10 Unknown value 000a +/main/capturesettings/flashexposurecompensation + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -3 + Top: 1 + Step: 0.333333 +/main/capturesettings/bracketing + Label: Bracketing + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/evstep + Label: EV Step + Type: RADIO + Current: 1/3 + Choice: 0 1/3 + Choice: 1 1/2 + Choice: 2 Unknown value 0002 +/main/capturesettings/bracketset + Label: Bracket Set + Type: RADIO + Current: Flash only + Choice: 0 AE & Flash + Choice: 1 AE only + Choice: 2 Flash only + Choice: 3 WB bracketing +/main/capturesettings/bracketorder + Label: Bracket Order + Type: RADIO + Current: MTR > Under + Choice: 0 MTR > Under + Choice: 1 Under > MTR +/main/capturesettings/burstnumber + Label: Burst Number + Type: RANGE + Current: 1 + Bottom: 1 + Top: 25 + Step: 1 +/main/capturesettings/autowhitebias + Label: Auto White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/tungstenwhitebias + Label: Tungsten White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/flourescentwhitebias + Label: Fluorescent White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/daylightwhitebias + Label: Daylight White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/flashwhitebias + Label: Flash White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/cloudywhitebias + Label: Cloudy White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/shadewhitebias + Label: Shady White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/whitebiaspresetno + Label: White Balance Bias Preset Nr + Type: RADIO + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/capturesettings/whitebiaspreset0 + Label: White Balance Bias Preset 0 + Type: TEXT + Current: 53215334 +/main/capturesettings/whitebiaspreset1 + Label: White Balance Bias Preset 1 + Type: TEXT + Current: 30212454 +/main/capturesettings/whitebiaspreset2 + Label: White Balance Bias Preset 2 + Type: TEXT + Current: 30212454 +/main/capturesettings/whitebiaspreset3 + Label: White Balance Bias Preset 3 + Type: TEXT + Current: 30212454 +/main/capturesettings/whitebiaspreset4 + Label: White Balance Bias Preset 4 + Type: TEXT + Current: 30212454 +/main/capturesettings/selftimerdelay + Label: Selftimer Delay + Type: RADIO + Current: 10 seconds + Choice: 0 2 seconds + Choice: 1 5 seconds + Choice: 2 10 seconds + Choice: 3 20 seconds +/main/capturesettings/centerweightsize + Label: Center Weight Area + Type: RADIO + Current: 8 mm + Choice: 0 6 mm + Choice: 1 8 mm + Choice: 2 10 mm + Choice: 3 12 mm + Choice: 4 Average +/main/capturesettings/flashshutterspeed + Label: Flash Shutter Speed + Type: RADIO + Current: 1/60 + Choice: 0 1/60 + Choice: 1 1/30 + Choice: 2 1/15 + Choice: 3 1/8 + Choice: 4 1/4 + Choice: 5 1/2 + Choice: 6 1 + Choice: 7 2 + Choice: 8 4 + Choice: 9 8 + Choice: 10 15 + Choice: 11 30 +/main/capturesettings/optimizeimage + Label: Optimize Image + Type: RADIO + Current: Normal + Choice: 0 Normal + Choice: 1 Vivid + Choice: 2 Sharper + Choice: 3 Softer + Choice: 4 Direct Print + Choice: 5 Portrait + Choice: 6 Landscape +/main/capturesettings/sharpening + Label: Sharpening + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Low + Choice: 3 Medium Low + Choice: 4 Medium high + Choice: 5 High + Choice: 6 None +/main/capturesettings/tonecompensation + Label: Tone Compensation + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Low contrast + Choice: 3 Medium Low + Choice: 4 Medium High +/main/capturesettings/saturation + Label: Saturation + Type: RADIO + Current: Moderate + Choice: 0 Normal + Choice: 1 Moderate + Choice: 2 Enhanced + Choice: 3 Unknown value 0003 +/main/capturesettings/hueadjustment + Label: Hue Adjustment + Type: RANGE + Current: 0 + Bottom: -9 + Top: 9 + Step: 3 +/main/capturesettings/lightmeter + Label: Light Meter + Type: TEXT + Current: 0.0 +/main/capturesettings/aflocked + Label: AF Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelocked + Label: AE Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/fvlocked + Label: FV Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d2hs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d2hs.txt new file mode 100644 index 00000000..723180d3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d2hs.txt @@ -0,0 +1,2419 @@ +Manufacturer: Nikon Corporation +Model: D2Hs + Version: V2.00 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Nikon PTP Extensions + +Capture Formats: JPEG TIFF Undefined Type +Display Formats: Undefined Type, Association/Directory, TIFF, JPEG, JFIF, MS Wave, DPOF, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D2HS + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 4094656512 (3904 MB) + Free Space (Bytes): 3677945856 (3507 MB) + Free Space (Images): 6234 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 68% (68) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ '2464x1632', '1840x1224' ] value: '1840x1224' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: JPEG Basic (0) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Flash (7) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [180,200,220,250,280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/1.8 (180) +Focal Length(0x5008):(read only) (type=0x6) Range [3500 - 3500, step 1] value: 35 mm (3500) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: AF-C (32785) +Exposure Metering Mode(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Default (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.04 sec (4000) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [200,250,320,400,500,640,800,1000,1250,1600,3200,6400] value: ISO 200 (200) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: -0.3 stops (-333) +Date & Time(0x5011):(readwrite) (type=0xffff) '20110611T130723' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786] value: Continuous Low Speed (32784) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 50, step 1] value: 1 +Focus Metering Mode(0x501c):(read only) (type=0x4) Enumeration [2,32784,32785,32786] value: Single Area (32784) +Shooting Bank(0xd010):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Shooting Bank Name A(0xd011):(readwrite) (type=0xffff) ' ' +Shooting Bank Name B(0xd012):(readwrite) (type=0xffff) ' ' +Shooting Bank Name C(0xd013):(readwrite) (type=0xffff) ' ' +Shooting Bank Name D(0xd014):(readwrite) (type=0xffff) 'JPEG ' +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Auto White Balance Bias(0xd017):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +White Balance Preset Name 0(0xd020):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 38076772 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 38076772 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 38076772 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 38076772 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 38076772 +Sharpening(0xd02a):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Auto (0) +Tone Compensation(0xd02b):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Auto (0) +Color Model(0xd02c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: sRGB (0) +Hue Adjustment(0xd02d):(readwrite) (type=0x1) Range [-9 - 9, step 3] value: 0 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +JPEG Compression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Menu Bank Name A(0xd041):(readwrite) (type=0xffff) 'STANDARD ' +Menu Bank Name B(0xd042):(readwrite) (type=0xffff) 'NIGHT ' +Menu Bank Name C(0xd043):(readwrite) (type=0xffff) ' ' +Menu Bank Name D(0xd044):(readwrite) (type=0xffff) 'JPEG!! ' +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A3GroupDynamicAF(0xd04a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +PTP_DPC_NIKON_A4AFActivation(0xd04b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_FocusAreaIllumManualFocus(0xd04c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_FocusAreaIllumContinuous(0xd04d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_FocusAreaIllumWhenSelected(0xd04e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Vertical AF On(0xd050):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Exposure Compensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Compensation(0xd058):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 14 mm (4) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 5, step 1] value: AE/AF Lock (0) +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 6 seconds (1) +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 10 seconds (2) +LCD Off Time(0xd064):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 20 seconds (1) +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 2 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 60, step 1] value: 60 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +PTP_DPC_NIKON_ControlPanelFinderRearControl(0xd06d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_ControlPanelFinderViewfinder(0xd06e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +LCD Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Flash Mode(0xd076):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Modeling Flash(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 3, step 1] value: AE & Flash (0) +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Under > MTR (1) +Auto Bracket Selection(0xd07b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Center Button Shooting Mode(0xd080):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Reset focus point to center (0) +Center Button Playback Mode(0xd081):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Multiselector(0xd082):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Photo Info. Playback(0xd083):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Assign Func. Button(0xd084):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 5 +Customise Command Dials(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Reverse Command Dial(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Menus and Playback(0xd088):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Buttons and Dials(0xd089):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Center Button Zoom Ratio(0xd08b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Image Comment String(0xd090):(readwrite) (type=0xffff) 'DIDIER GASSER-MORLAY ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 9, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) AF-S Nikkor 35mm 1:1.8G DX (159) +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 Lens Type(0xd0e2):(read only) (type=0x2) 3 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 35 mm (3500) Max. Focal Length(0xd0e4):(read only) (type=0x6) 35 mm (3500) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/1.8 (180) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/1.8 (180) +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 655385 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [1 - 50, step 1] value: 50 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AF LCD Top Mode 2(0xd107):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 10, step 1] value: Centre (0) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Exposure Meter(0xd10a):(read only) (type=0x1) Range [-128 - 127, step 1] value: 0.0 stops (0) +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 1, step 1] value: USB 2.0 (1) +CCD Serial Number(0xd10d):(read only) (type=0xffff) ' ABCDEFGH0123456' +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 2, step 1] value: 0' (0) +Group PTN Type(0xd10f):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +FNumber Lock(0xd110):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Aperture Lock(0xd111):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +External Flash Mode(0xd123):(read only) (type=0x2) Range [0 - 5, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 1/15 (3) +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 800 (1) + +/main/actions/autofocusdrive + Label: Drive Nikon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1307794330 + Printable: Sat 11 Jun 2011 02:12:10 PM CEST +/main/settings/imagecomment + Label: Image Comment + Type: TEXT + Current: +/main/settings/imagecommentenable + Label: Enable Image Comment + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/settings/lcdofftime + Label: LCD Off Time + Type: RADIO + Current: 20 seconds + Choice: 0 10 seconds + Choice: 1 20 seconds + Choice: 2 1 minute + Choice: 3 5 minutes + Choice: 4 10 minutes +/main/settings/recordingmedia + Label: Recording Media + Type: RADIO + Current: Card + Choice: 0 Card + Choice: 1 SDRAM +/main/settings/reversedial + Label: Reverse Command Dial + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/status/acpower + Label: AC Power + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/externalflash + Label: External Flash + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 67% +/main/status/orientation + Label: Camera Orientation + Type: RADIO + Current: 0' + Choice: 0 0' + Choice: 1 270' + Choice: 2 90' +/main/status/minfocallength + Label: Focal Length Minimum + Type: TEXT + Current: 35 mm +/main/status/maxfocallength + Label: Focal Length Maximum + Type: TEXT + Current: 35 mm +/main/status/apertureatminfocallength + Label: Maximum Aperture at Focal Length Minimum + Type: TEXT + Current: 2 +/main/status/apertureatmaxfocallength + Label: Maximum Aperture at Focal Length Maximum + Type: TEXT + Current: 2 +/main/status/lightmeter + Label: Light Meter + Type: TEXT + Current: 0.0 +/main/status/aflocked + Label: AF Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/aelocked + Label: AE Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/fvlocked + Label: FV Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/imgsettings/imagesize + Label: Image Size + Type: RADIO + Current: 1840x1224 + Choice: 0 2464x1632 + Choice: 1 1840x1224 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 200 + Choice: 0 200 + Choice: 1 250 + Choice: 2 320 + Choice: 3 400 + Choice: 4 500 + Choice: 5 640 + Choice: 6 800 + Choice: 7 1000 + Choice: 8 1250 + Choice: 9 1600 + Choice: 10 3200 + Choice: 11 6400 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Flash + Choice: 0 Automatic + Choice: 1 Daylight + Choice: 2 Fluorescent + Choice: 3 Tungsten + Choice: 4 Flash + Choice: 5 Cloudy + Choice: 6 Shade + Choice: 7 Color Temperature + Choice: 8 Preset +/main/imgsettings/colormodel + Label: Color Model + Type: RADIO + Current: sRGB (portrait) + Choice: 0 sRGB (portrait) + Choice: 1 AdobeRGB + Choice: 2 sRGB (nature) +/main/imgsettings/autoiso + Label: Auto ISO + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/longexpnr + Label: Long Exp Noise Reduction + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusmode2 + Label: Auto Focus Mode 2 + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: -333 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/capturesettings/exposurecompensation2 + Label: Exposure Compensation + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Default + Choice: 0 Red-eye automatic + Choice: 1 Default + Choice: 2 Slow Sync + Choice: 3 Rear Curtain Sync + Slow Sync + Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/f-number + Label: F-Number + Type: RADIO + Current: f/1.8 + Choice: 0 f/1.8 + Choice: 1 f/2 + Choice: 2 f/2.2 + Choice: 3 f/2.5 + Choice: 4 f/2.8 + Choice: 5 f/3.2 + Choice: 6 f/3.5 + Choice: 7 f/4 + Choice: 8 f/4.5 + Choice: 9 f/5 + Choice: 10 f/5.6 + Choice: 11 f/6.3 + Choice: 12 f/7.1 + Choice: 13 f/8 + Choice: 14 f/9 + Choice: 15 f/10 + Choice: 16 f/11 + Choice: 17 f/13 + Choice: 18 f/14 + Choice: 19 f/16 + Choice: 20 f/18 + Choice: 21 f/20 + Choice: 22 f/22 +/main/capturesettings/flexibleprogram + Label: Flexible Program + Type: RANGE + Current: 0 + Bottom: -30 + Top: 30 + Step: 2 +/main/capturesettings/imagequality + Label: Image Quality + Type: RADIO + Current: JPEG Basic + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF (Raw) + Choice: 4 NEF+Basic + Choice: 5 NEF+Normal + Choice: 6 NEF+Fine +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 35 + Bottom: 35 + Top: 35 + Step: 0.01 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: AF-C + Choice: 0 Manual + Choice: 1 AF-S + Choice: 2 AF-C +/main/capturesettings/expprogram + Label: Exposure Program + Type: RADIO + Current: A + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S +/main/capturesettings/capturemode + Label: Still Capture Mode + Type: RADIO + Current: Continuous Low Speed + Choice: 0 Single Shot + Choice: 1 Burst + Choice: 2 Continuous Low Speed + Choice: 3 Timer + Choice: 4 Mirror Up +/main/capturesettings/focusmetermode + Label: Focus Metering Mode + Type: RADIO + Current: Single Area + Choice: 0 Multi-spot + Choice: 1 Single Area + Choice: 2 Closest Subject + Choice: 3 Group Dynamic +/main/capturesettings/exposuremetermode + Label: Exposure Metering Mode + Type: RADIO + Current: Multi Spot + Choice: 0 Center Weighted + Choice: 1 Multi Spot + Choice: 2 Center Spot +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 0.1250s + Choice: 0 0.0001s + Choice: 1 0.0002s + Choice: 2 0.0003s + Choice: 3 0.0004s + Choice: 4 0.0005s + Choice: 5 0.0006s + Choice: 6 0.0008s + Choice: 7 0.0010s + Choice: 8 0.0012s + Choice: 9 0.0015s + Choice: 10 0.0020s + Choice: 11 0.0025s + Choice: 12 0.0031s + Choice: 13 0.0040s + Choice: 14 0.0050s + Choice: 15 0.0062s + Choice: 16 0.0080s + Choice: 17 0.0100s + Choice: 18 0.0125s + Choice: 19 0.0166s + Choice: 20 0.0200s + Choice: 21 0.0250s + Choice: 22 0.0333s + Choice: 23 0.0400s + Choice: 24 0.0500s + Choice: 25 0.0666s + Choice: 26 0.0769s + Choice: 27 0.1000s + Choice: 28 0.1250s + Choice: 29 0.1666s + Choice: 30 0.2000s + Choice: 31 0.2500s + Choice: 32 0.3333s + Choice: 33 0.4000s + Choice: 34 0.5000s + Choice: 35 0.6250s + Choice: 36 0.7692s + Choice: 37 1.0000s + Choice: 38 1.3000s + Choice: 39 1.6000s + Choice: 40 2.0000s + Choice: 41 2.5000s + Choice: 42 3.0000s + Choice: 43 4.0000s + Choice: 44 5.0000s + Choice: 45 6.0000s + Choice: 46 8.0000s + Choice: 47 10.0000s + Choice: 48 13.0000s + Choice: 49 15.0000s + Choice: 50 20.0000s + Choice: 51 25.0000s + Choice: 52 30.0000s +/main/capturesettings/shutterspeed2 + Label: Shutter Speed 2 + Type: RADIO + Current: 1/8 + Choice: 0 1/8000 + Choice: 1 1/6400 + Choice: 2 1/5000 + Choice: 3 1/4000 + Choice: 4 1/3200 + Choice: 5 1/2500 + Choice: 6 1/2000 + Choice: 7 1/1600 + Choice: 8 1/1250 + Choice: 9 1/1000 + Choice: 10 1/800 + Choice: 11 1/640 + Choice: 12 1/500 + Choice: 13 1/400 + Choice: 14 1/320 + Choice: 15 1/250 + Choice: 16 1/200 + Choice: 17 1/160 + Choice: 18 1/125 + Choice: 19 1/100 + Choice: 20 1/80 + Choice: 21 1/60 + Choice: 22 1/50 + Choice: 23 1/40 + Choice: 24 1/30 + Choice: 25 1/25 + Choice: 26 1/20 + Choice: 27 1/15 + Choice: 28 1/13 + Choice: 29 1/10 + Choice: 30 1/8 + Choice: 31 1/6 + Choice: 32 1/5 + Choice: 33 1/4 + Choice: 34 1/3 + Choice: 35 10/25 + Choice: 36 1/2 + Choice: 37 10/16 + Choice: 38 10/13 + Choice: 39 1 + Choice: 40 13/10 + Choice: 41 16/10 + Choice: 42 2 + Choice: 43 25/10 + Choice: 44 3 + Choice: 45 4 + Choice: 46 5 + Choice: 47 6 + Choice: 48 8 + Choice: 49 10 + Choice: 50 13 + Choice: 51 15 + Choice: 52 20 + Choice: 53 25 + Choice: 54 30 +/main/capturesettings/focusareawrap + Label: Focus Area Wrap + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposuredelaymode + Label: Exposure Delay Mode + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurelock + Label: Exposure Lock + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelaflmode + Label: AE-L/AF-L Mode + Type: RADIO + Current: AE/AF Lock + Choice: 0 AE/AF Lock + Choice: 1 AE Lock only + Choice: 2 AF Lock Only + Choice: 3 AF Lock Hold + Choice: 4 AF On + Choice: 5 Flash Level Lock +/main/capturesettings/filenrsequencing + Label: File Number Sequencing + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/modelflash + Label: Modelling Flash + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/imagerotationflag + Label: Image Rotation Flag + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nocfcardrelease + Label: Release without CF card + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusarea + Label: Auto Focus Area + Type: RADIO + Current: Centre + Choice: 0 Centre + Choice: 1 Top + Choice: 2 Bottom + Choice: 3 Left + Choice: 4 Right +/main/capturesettings/bracketing + Label: Bracketing + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/bracketmode + Label: Bracketing + Type: RADIO + Current: Flash/speed + Choice: 0 Flash/speed + Choice: 1 Flash/speed/aperture + Choice: 2 Flash/aperture + Choice: 3 Flash only +/main/capturesettings/evstep + Label: EV Step + Type: RADIO + Current: 1/3 + Choice: 0 1/3 + Choice: 1 1/2 +/main/capturesettings/bracketset + Label: Bracket Set + Type: RADIO + Current: AE & Flash + Choice: 0 AE & Flash + Choice: 1 AE only + Choice: 2 Flash only + Choice: 3 WB bracketing +/main/capturesettings/bracketorder + Label: Bracket Order + Type: RADIO + Current: Under > MTR + Choice: 0 MTR > Under + Choice: 1 Under > MTR +/main/capturesettings/burstnumber + Label: Burst Number + Type: RANGE + Current: 1 + Bottom: 1 + Top: 50 + Step: 1 +/main/capturesettings/whitebiaspresetno + Label: White Balance Bias Preset Nr + Type: RADIO + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/capturesettings/whitebiaspreset0 + Label: White Balance Bias Preset 0 + Type: TEXT + Current: 38076772 +/main/capturesettings/whitebiaspreset1 + Label: White Balance Bias Preset 1 + Type: TEXT + Current: 38076772 +/main/capturesettings/whitebiaspreset2 + Label: White Balance Bias Preset 2 + Type: TEXT + Current: 38076772 +/main/capturesettings/whitebiaspreset3 + Label: White Balance Bias Preset 3 + Type: TEXT + Current: 38076772 +/main/capturesettings/whitebiaspreset4 + Label: White Balance Bias Preset 4 + Type: TEXT + Current: 38076772 +/main/capturesettings/selftimerdelay + Label: Selftimer Delay + Type: RADIO + Current: 10 seconds + Choice: 0 2 seconds + Choice: 1 5 seconds + Choice: 2 10 seconds + Choice: 3 20 seconds +/main/capturesettings/centerweightsize + Label: Center Weight Area + Type: RADIO + Current: Average + Choice: 0 6 mm + Choice: 1 8 mm + Choice: 2 10 mm + Choice: 3 12 mm + Choice: 4 Average +/main/capturesettings/flashshutterspeed + Label: Flash Shutter Speed + Type: RADIO + Current: 1/60 + Choice: 0 1/60 + Choice: 1 1/30 + Choice: 2 1/15 + Choice: 3 1/8 + Choice: 4 1/4 + Choice: 5 1/2 + Choice: 6 1 + Choice: 7 2 + Choice: 8 4 + Choice: 9 8 + Choice: 10 15 + Choice: 11 30 +/main/capturesettings/sharpening + Label: Sharpening + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Low + Choice: 3 Medium Low + Choice: 4 Medium high + Choice: 5 High + Choice: 6 None +/main/capturesettings/tonecompensation + Label: Tone Compensation + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Low contrast + Choice: 3 Medium Low + Choice: 4 Medium High + Choice: 5 High control + Choice: 6 Custom +/main/capturesettings/hueadjustment + Label: Hue Adjustment + Type: RANGE + Current: 0 + Bottom: -9 + Top: 9 + Step: 3 +/main/other/5001 + Label: Battery Level + Type: MENU + Current: 67 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 + Choice: 50 50 + Choice: 51 51 + Choice: 52 52 + Choice: 53 53 + Choice: 54 54 + Choice: 55 55 + Choice: 56 56 + Choice: 57 57 + Choice: 58 58 + Choice: 59 59 + Choice: 60 60 + Choice: 61 61 + Choice: 62 62 + Choice: 63 63 + Choice: 64 64 + Choice: 65 65 + Choice: 66 66 + Choice: 67 67 + Choice: 68 68 + Choice: 69 69 + Choice: 70 70 + Choice: 71 71 + Choice: 72 72 + Choice: 73 73 + Choice: 74 74 + Choice: 75 75 + Choice: 76 76 + Choice: 77 77 + Choice: 78 78 + Choice: 79 79 + Choice: 80 80 + Choice: 81 81 + Choice: 82 82 + Choice: 83 83 + Choice: 84 84 + Choice: 85 85 + Choice: 86 86 + Choice: 87 87 + Choice: 88 88 + Choice: 89 89 + Choice: 90 90 + Choice: 91 91 + Choice: 92 92 + Choice: 93 93 + Choice: 94 94 + Choice: 95 95 + Choice: 96 96 + Choice: 97 97 + Choice: 98 98 + Choice: 99 99 + Choice: 100 100 +/main/other/5003 + Label: Image Size + Type: MENU + Current: 1840x1224 + Choice: 0 2464x1632 + Choice: 1 1840x1224 +/main/other/5004 + Label: Compression Setting + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/5005 + Label: White Balance + Type: MENU + Current: 7 + Choice: 0 2 + Choice: 1 4 + Choice: 2 5 + Choice: 3 6 + Choice: 4 7 + Choice: 5 32784 + Choice: 6 32785 + Choice: 7 32786 + Choice: 8 32787 +/main/other/5007 + Label: F-Number + Type: MENU + Current: 180 + Choice: 0 180 + Choice: 1 200 + Choice: 2 220 + Choice: 3 250 + Choice: 4 280 + Choice: 5 320 + Choice: 6 350 + Choice: 7 400 + Choice: 8 450 + Choice: 9 500 + Choice: 10 560 + Choice: 11 630 + Choice: 12 710 + Choice: 13 800 + Choice: 14 900 + Choice: 15 1000 + Choice: 16 1100 + Choice: 17 1300 + Choice: 18 1400 + Choice: 19 1600 + Choice: 20 1800 + Choice: 21 2000 + Choice: 22 2200 +/main/other/5008 + Label: Focal Length + Type: MENU + Current: 3500 + Choice: 0 3500 +/main/other/500a + Label: Focus Mode + Type: MENU + Current: 32785 + Choice: 0 1 + Choice: 1 32784 + Choice: 2 32785 +/main/other/500b + Label: Exposure Metering Mode + Type: MENU + Current: 3 + Choice: 0 2 + Choice: 1 3 + Choice: 2 4 +/main/other/500c + Label: Flash Mode + Type: MENU + Current: 32784 + Choice: 0 4 + Choice: 1 32784 + Choice: 2 32785 + Choice: 3 32786 + Choice: 4 32787 +/main/other/500d + Label: Exposure Time + Type: MENU + Current: 1250 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 8 + Choice: 7 10 + Choice: 8 12 + Choice: 9 15 + Choice: 10 20 + Choice: 11 25 + Choice: 12 31 + Choice: 13 40 + Choice: 14 50 + Choice: 15 62 + Choice: 16 80 + Choice: 17 100 + Choice: 18 125 + Choice: 19 166 + Choice: 20 200 + Choice: 21 250 + Choice: 22 333 + Choice: 23 400 + Choice: 24 500 + Choice: 25 666 + Choice: 26 769 + Choice: 27 1000 + Choice: 28 1250 + Choice: 29 1666 + Choice: 30 2000 + Choice: 31 2500 + Choice: 32 3333 + Choice: 33 4000 + Choice: 34 5000 + Choice: 35 6250 + Choice: 36 7692 + Choice: 37 10000 + Choice: 38 13000 + Choice: 39 16000 + Choice: 40 20000 + Choice: 41 25000 + Choice: 42 30000 + Choice: 43 40000 + Choice: 44 50000 + Choice: 45 60000 + Choice: 46 80000 + Choice: 47 100000 + Choice: 48 130000 + Choice: 49 150000 + Choice: 50 200000 + Choice: 51 250000 + Choice: 52 300000 +/main/other/500e + Label: Exposure Program Mode + Type: MENU + Current: 3 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 +/main/other/500f + Label: Exposure Index (film speed ISO) + Type: MENU + Current: 200 + Choice: 0 200 + Choice: 1 250 + Choice: 2 320 + Choice: 3 400 + Choice: 4 500 + Choice: 5 640 + Choice: 6 800 + Choice: 7 1000 + Choice: 8 1250 + Choice: 9 1600 + Choice: 10 3200 + Choice: 11 6400 +/main/other/5010 + Label: Exposure Bias Compensation + Type: MENU + Current: -333 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/other/5011 + Label: Date & Time + Type: TEXT + Current: 20110611T131229 +/main/other/5013 + Label: Still Capture Mode + Type: MENU + Current: 32784 + Choice: 0 1 + Choice: 1 2 + Choice: 2 32784 + Choice: 3 32785 + Choice: 4 32786 +/main/other/5018 + Label: Burst Number + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 + Choice: 11 12 + Choice: 12 13 + Choice: 13 14 + Choice: 14 15 + Choice: 15 16 + Choice: 16 17 + Choice: 17 18 + Choice: 18 19 + Choice: 19 20 + Choice: 20 21 + Choice: 21 22 + Choice: 22 23 + Choice: 23 24 + Choice: 24 25 + Choice: 25 26 + Choice: 26 27 + Choice: 27 28 + Choice: 28 29 + Choice: 29 30 + Choice: 30 31 + Choice: 31 32 + Choice: 32 33 + Choice: 33 34 + Choice: 34 35 + Choice: 35 36 + Choice: 36 37 + Choice: 37 38 + Choice: 38 39 + Choice: 39 40 + Choice: 40 41 + Choice: 41 42 + Choice: 42 43 + Choice: 43 44 + Choice: 44 45 + Choice: 45 46 + Choice: 46 47 + Choice: 47 48 + Choice: 48 49 + Choice: 49 50 +/main/other/501c + Label: Focus Metering Mode + Type: MENU + Current: 32784 + Choice: 0 2 + Choice: 1 32784 + Choice: 2 32785 + Choice: 3 32786 +/main/other/d010 + Label: Shooting Bank + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d011 + Label: Shooting Bank Name A + Type: TEXT + Current: +/main/other/d012 + Label: Shooting Bank Name B + Type: TEXT + Current: +/main/other/d013 + Label: Shooting Bank Name C + Type: TEXT + Current: +/main/other/d014 + Label: Shooting Bank Name D + Type: TEXT + Current: JPEG +/main/other/d015 + Label: Reset Bank 0 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d016 + Label: Raw Compression + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d017 + Label: Auto White Balance Bias + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +/main/other/d018 + Label: Tungsten White Balance Bias + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +/main/other/d019 + Label: Fluorescent White Balance Bias + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +/main/other/d01a + Label: Daylight White Balance Bias + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +/main/other/d01b + Label: Flash White Balance Bias + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +/main/other/d01c + Label: Cloudy White Balance Bias + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +/main/other/d01d + Label: Shady White Balance Bias + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +/main/other/d01e + Label: White Balance Colour Temperature + Type: MENU + Current: 20 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 +/main/other/d01f + Label: White Balance Preset Number + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d020 + Label: White Balance Preset Name 0 + Type: TEXT + Current: +/main/other/d021 + Label: White Balance Preset Name 1 + Type: TEXT + Current: +/main/other/d022 + Label: White Balance Preset Name 2 + Type: TEXT + Current: +/main/other/d023 + Label: White Balance Preset Name 3 + Type: TEXT + Current: +/main/other/d024 + Label: White Balance Preset Name 4 + Type: TEXT + Current: +/main/other/d025 + Label: White Balance Preset Value 0 + Type: TEXT + Current: 38076772 +/main/other/d026 + Label: White Balance Preset Value 1 + Type: TEXT + Current: 38076772 +/main/other/d027 + Label: White Balance Preset Value 2 + Type: TEXT + Current: 38076772 +/main/other/d028 + Label: White Balance Preset Value 3 + Type: TEXT + Current: 38076772 +/main/other/d029 + Label: White Balance Preset Value 4 + Type: TEXT + Current: 38076772 +/main/other/d02a + Label: Sharpening + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +/main/other/d02b + Label: Tone Compensation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +/main/other/d02c + Label: Color Model + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d02d + Label: Hue Adjustment + Type: RANGE + Current: 0 + Bottom: -9 + Top: 9 + Step: 3 +/main/other/d02e + Label: Lens Focal Length (Non CPU) + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 +/main/other/d02f + Label: Lens Maximum Aperture (Non CPU) + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 +/main/other/d031 + Label: JPEG Compression Policy + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d040 + Label: PTP_DPC_NIKON_CSMMenuBankSelect + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d041 + Label: Menu Bank Name A + Type: TEXT + Current: STANDARD +/main/other/d042 + Label: Menu Bank Name B + Type: TEXT + Current: NIGHT +/main/other/d043 + Label: Menu Bank Name C + Type: TEXT + Current: +/main/other/d044 + Label: Menu Bank Name D + Type: TEXT + Current: JPEG!! +/main/other/d045 + Label: Reset Menu Bank + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d048 + Label: PTP_DPC_NIKON_A1AFCModePriority + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d049 + Label: PTP_DPC_NIKON_A2AFSModePriority + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d04a + Label: PTP_DPC_NIKON_A3GroupDynamicAF + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d04b + Label: PTP_DPC_NIKON_A4AFActivation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d04c + Label: PTP_DPC_NIKON_FocusAreaIllumManualFocus + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d04d + Label: PTP_DPC_NIKON_FocusAreaIllumContinuous + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d04e + Label: PTP_DPC_NIKON_FocusAreaIllumWhenSelected + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d04f + Label: Focus Area Wrap + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d050 + Label: Vertical AF On + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d051 + Label: AF Lock On + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d054 + Label: Auto ISO + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d055 + Label: Exposure ISO Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d056 + Label: Exposure Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d057 + Label: Exposure Compensation (EV) + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d058 + Label: Exposure Compensation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d059 + Label: Centre Weight Area + Type: MENU + Current: 4 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d05a + Label: Exposure Base Matrix + Type: MENU + Current: 0 + Choice: 0 -6 + Choice: 1 -5 + Choice: 2 -4 + Choice: 3 -3 + Choice: 4 -2 + Choice: 5 -1 + Choice: 6 0 + Choice: 7 1 + Choice: 8 2 + Choice: 9 3 + Choice: 10 4 + Choice: 11 5 + Choice: 12 6 +/main/other/d05b + Label: Exposure Base Center + Type: MENU + Current: 0 + Choice: 0 -6 + Choice: 1 -5 + Choice: 2 -4 + Choice: 3 -3 + Choice: 4 -2 + Choice: 5 -1 + Choice: 6 0 + Choice: 7 1 + Choice: 8 2 + Choice: 9 3 + Choice: 10 4 + Choice: 11 5 + Choice: 12 6 +/main/other/d05c + Label: Exposure Base Spot + Type: MENU + Current: 0 + Choice: 0 -6 + Choice: 1 -5 + Choice: 2 -4 + Choice: 3 -3 + Choice: 4 -2 + Choice: 5 -1 + Choice: 6 0 + Choice: 7 1 + Choice: 8 2 + Choice: 9 3 + Choice: 10 4 + Choice: 11 5 + Choice: 12 6 +/main/other/d05e + Label: Exposure Lock + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d05f + Label: Focus Lock + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d062 + Label: Auto Meter Off Time + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d063 + Label: Self Timer Delay + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d064 + Label: LCD Off Time + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d068 + Label: Shooting Speed + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +/main/other/d069 + Label: Maximum Shots + Type: MENU + Current: 60 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 + Choice: 11 12 + Choice: 12 13 + Choice: 13 14 + Choice: 14 15 + Choice: 15 16 + Choice: 16 17 + Choice: 17 18 + Choice: 18 19 + Choice: 19 20 + Choice: 20 21 + Choice: 21 22 + Choice: 22 23 + Choice: 23 24 + Choice: 24 25 + Choice: 25 26 + Choice: 26 27 + Choice: 27 28 + Choice: 28 29 + Choice: 29 30 + Choice: 30 31 + Choice: 31 32 + Choice: 32 33 + Choice: 33 34 + Choice: 34 35 + Choice: 35 36 + Choice: 36 37 + Choice: 37 38 + Choice: 38 39 + Choice: 39 40 + Choice: 40 41 + Choice: 41 42 + Choice: 42 43 + Choice: 43 44 + Choice: 44 45 + Choice: 45 46 + Choice: 46 47 + Choice: 47 48 + Choice: 48 49 + Choice: 49 50 + Choice: 50 51 + Choice: 51 52 + Choice: 52 53 + Choice: 53 54 + Choice: 54 55 + Choice: 55 56 + Choice: 56 57 + Choice: 57 58 + Choice: 58 59 + Choice: 59 60 +/main/other/d06a + Label: Exposure delay mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d06b + Label: Long Exposure Noise Reduction + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d06c + Label: File Number Sequencing + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d06d + Label: PTP_DPC_NIKON_ControlPanelFinderRearControl + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d06e + Label: PTP_DPC_NIKON_ControlPanelFinderViewfinder + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d06f + Label: LCD Illumination + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d070 + Label: High ISO noise reduction + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d074 + Label: Flash Sync. Speed + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d075 + Label: Flash Shutter Speed + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 +/main/other/d076 + Label: Flash Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d077 + Label: Modeling Flash + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d078 + Label: Bracket Set + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d079 + Label: Manual Mode Bracketing + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d07a + Label: Bracket Order + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d07b + Label: Auto Bracket Selection + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d080 + Label: Center Button Shooting Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d081 + Label: Center Button Playback Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d082 + Label: Multiselector + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d083 + Label: Photo Info. Playback + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d084 + Label: Assign Func. Button + Type: MENU + Current: 5 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 +/main/other/d085 + Label: Customise Command Dials + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d086 + Label: Reverse Command Dial + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d087 + Label: Aperture Setting + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d088 + Label: Menus and Playback + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d089 + Label: Buttons and Dials + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d08a + Label: No CF Card Release + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d08b + Label: Center Button Zoom Ratio + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d090 + Label: Image Comment String + Type: TEXT + Current: DIDIER GASSER-MORLAY +/main/other/d091 + Label: Image Comment Enable + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d092 + Label: Image Rotation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0c0 + Label: Bracketing Enable + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0c1 + Label: Exposure Bracketing Step + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d0c2 + Label: Exposure Bracketing Program + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d0c3 + Label: Auto Exposure Bracket Count + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 +/main/other/d0c4 + Label: White Balance Bracket Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d0c5 + Label: White Balance Bracket Program + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d0e0 + Label: Lens ID + Type: TEXT + Current: 159 +/main/other/d0e1 + Label: Lens Sort + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d0e2 + Label: Lens Type + Type: TEXT + Current: 3 +/main/other/d0e3 + Label: Min. Focal Length + Type: TEXT + Current: 3500 +/main/other/d0e4 + Label: Max. Focal Length + Type: TEXT + Current: 3500 +/main/other/d0e5 + Label: Max. Aperture at Min. Focal Length + Type: TEXT + Current: 180 +/main/other/d0e6 + Label: Max. Aperture at Max. Focal Length + Type: TEXT + Current: 180 +/main/other/d100 + Label: Nikon Exposure Time + Type: MENU + Current: 65544 + Choice: 0 73536 + Choice: 1 71936 + Choice: 2 70536 + Choice: 3 69536 + Choice: 4 68736 + Choice: 5 68036 + Choice: 6 67536 + Choice: 7 67136 + Choice: 8 66786 + Choice: 9 66536 + Choice: 10 66336 + Choice: 11 66176 + Choice: 12 66036 + Choice: 13 65936 + Choice: 14 65856 + Choice: 15 65786 + Choice: 16 65736 + Choice: 17 65696 + Choice: 18 65661 + Choice: 19 65636 + Choice: 20 65616 + Choice: 21 65596 + Choice: 22 65586 + Choice: 23 65576 + Choice: 24 65566 + Choice: 25 65561 + Choice: 26 65556 + Choice: 27 65551 + Choice: 28 65549 + Choice: 29 65546 + Choice: 30 65544 + Choice: 31 65542 + Choice: 32 65541 + Choice: 33 65540 + Choice: 34 65539 + Choice: 35 655385 + Choice: 36 65538 + Choice: 37 655376 + Choice: 38 655373 + Choice: 39 65537 + Choice: 40 851978 + Choice: 41 1048586 + Choice: 42 131073 + Choice: 43 1638410 + Choice: 44 196609 + Choice: 45 262145 + Choice: 46 327681 + Choice: 47 393217 + Choice: 48 524289 + Choice: 49 655361 + Choice: 50 851969 + Choice: 51 983041 + Choice: 52 1310721 + Choice: 53 1638401 + Choice: 54 1966081 +/main/other/d101 + Label: AC Power + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d102 + Label: Warning Status + Type: TEXT + Current: 0 +/main/other/d103 + Label: Maximum Shots + Type: MENU + Current: 50 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 + Choice: 11 12 + Choice: 12 13 + Choice: 13 14 + Choice: 14 15 + Choice: 15 16 + Choice: 16 17 + Choice: 17 18 + Choice: 18 19 + Choice: 19 20 + Choice: 20 21 + Choice: 21 22 + Choice: 22 23 + Choice: 23 24 + Choice: 24 25 + Choice: 25 26 + Choice: 26 27 + Choice: 27 28 + Choice: 28 29 + Choice: 29 30 + Choice: 30 31 + Choice: 31 32 + Choice: 32 33 + Choice: 33 34 + Choice: 34 35 + Choice: 35 36 + Choice: 36 37 + Choice: 37 38 + Choice: 38 39 + Choice: 39 40 + Choice: 40 41 + Choice: 41 42 + Choice: 42 43 + Choice: 43 44 + Choice: 44 45 + Choice: 45 46 + Choice: 46 47 + Choice: 47 48 + Choice: 48 49 + Choice: 49 50 +/main/other/d104 + Label: AF Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d105 + Label: AE Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d106 + Label: FV Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d107 + Label: AF LCD Top Mode 2 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d108 + Label: Active AF Sensor + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 +/main/other/d109 + Label: Flexible Program + Type: RANGE + Current: 0 + Bottom: -30 + Top: 30 + Step: 2 +/main/other/d10a + Label: Exposure Meter + Type: RANGE + Current: 0 + Bottom: -128 + Top: 127 + Step: 1 +/main/other/d10b + Label: Recording Media + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d10c + Label: USB Speed + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d10d + Label: CCD Serial Number + Type: TEXT + Current: ABCDEFG01234567 +/main/other/d10e + Label: Camera Orientation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d10f + Label: Group PTN Type + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d110 + Label: FNumber Lock + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d111 + Label: Exposure Aperture Lock + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d120 + Label: External Flash Attached + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d121 + Label: External Flash Status + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d122 + Label: External Flash Sort + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d123 + Label: External Flash Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d124 + Label: External Flash Compensation + Type: MENU + Current: 0 + Choice: 0 -18 + Choice: 1 -17 + Choice: 2 -16 + Choice: 3 -15 + Choice: 4 -14 + Choice: 5 -13 + Choice: 6 -12 + Choice: 7 -11 + Choice: 8 -10 + Choice: 9 -9 + Choice: 10 -8 + Choice: 11 -7 + Choice: 12 -6 + Choice: 13 -5 + Choice: 14 -4 + Choice: 15 -3 + Choice: 16 -2 + Choice: 17 -1 + Choice: 18 0 + Choice: 19 1 + Choice: 20 2 + Choice: 21 3 + Choice: 22 4 + Choice: 23 5 + Choice: 24 6 + Choice: 25 7 + Choice: 26 8 + Choice: 27 9 + Choice: 28 10 + Choice: 29 11 + Choice: 30 12 + Choice: 31 13 + Choice: 32 14 + Choice: 33 15 + Choice: 34 16 + Choice: 35 17 + Choice: 36 18 +/main/other/d125 + Label: External Flash Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d164 + Label: Auto ISO P/A/DVP Setting + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 +/main/other/d183 + Label: ISO Auto High Limit + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d2x.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d2x.txt new file mode 100644 index 00000000..1053624c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d2x.txt @@ -0,0 +1,570 @@ +Device info: +Manufacturer: Nikon Corporation + model: D2X + device version: V1.01 + serial number: 'NNNNNNN' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c5 + 0x90c6 + 0x90c7 + 0x90c8 + 0x90c9 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd020 + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02a + 0xd02b + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd048 + 0xd049 + 0xd04a + 0xd04b + 0xd04c + 0xd04d + 0xd04e + 0xd04f + 0xd050 + 0xd051 + 0xd054 + 0xd055 + 0xd056 + 0xd057 + 0xd058 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd064 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd06d + 0xd06e + 0xd06f + 0xd070 + 0xd074 + 0xd075 + 0xd076 + 0xd077 + 0xd078 + 0xd079 + 0xd07a + 0xd07b + 0xd080 + 0xd081 + 0xd082 + 0xd083 + 0xd084 + 0xd085 + 0xd086 + 0xd087 + 0xd088 + 0xd089 + 0xd08a + 0xd08b + 0xd090 + 0xd091 + 0xd092 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd107 + 0xd108 + 0xd109 + 0xd10a + 0xd10b + 0xd10c + 0xd10d + 0xd10e + 0xd10f + 0xd110 + 0xd111 + 0xd120 + 0xd121 + 0xd122 + 0xd123 + 0xd124 + 0xd125 + +### Marcus: v2.00 has more properties! +Device info: +Manufacturer: Nikon Corporation + model: D2X + device version: V2.00 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c5 + 0x90c6 + 0x90c7 + 0x90c8 + 0x90c9 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd020 + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02a + 0xd02b + 0xd02c + 0xd02d + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd048 + 0xd049 + 0xd04a + 0xd04b + 0xd04c + 0xd04d + 0xd04e + 0xd04f + 0xd050 + 0xd051 + 0xd054 + 0xd055 + 0xd056 + 0xd057 + 0xd058 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd064 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd06d + 0xd06e + 0xd06f + 0xd070 + 0xd074 + 0xd075 + 0xd076 + 0xd077 + 0xd078 + 0xd079 + 0xd07a + 0xd07b + 0xd080 + 0xd081 + 0xd082 + 0xd083 + 0xd084 + 0xd085 + 0xd086 + 0xd087 + 0xd088 + 0xd089 + 0xd08a + 0xd08b + 0xd08c + 0xd090 + 0xd091 + 0xd092 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd107 + 0xd108 + 0xd109 + 0xd10a + 0xd10b + 0xd10c + 0xd10d + 0xd10e + 0xd10f + 0xd110 + 0xd111 + 0xd120 + 0xd121 + 0xd122 + 0xd123 + 0xd124 + 0xd125 + 0xd164 + 0xd183 + +Camera summary: +Model: D2X + device version: V1.01 + serial number: NNNNNNN +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 57% (57) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4288x2848', + '3216x2136', + '2144x1424' + ] value: '4288x2848' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: RAW (4) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Auto (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [0] value: f/0 (0) +Focal Length(0x5008):(read only) (type=0x6) Range [0 - 0, step 1] value: 0 mm (0) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: Center Weighted (2) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Default (32784) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967295] value: 0.1 sec (10000) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1600,3200] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date Time(0x5011):(readwrite) (type=0xffff) '20060530T010550' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 35, step 1] value: 1 +Focus Metering Mode(0x501c):(read only) (type=0x4) Enumeration [2,32784,32785,32786] value: Single Area (32784) +Property 0xd010:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd011:(readwrite) (type=0xffff) ' ' +Property 0xd012:(readwrite) (type=0xffff) ' ' +Property 0xd013:(readwrite) (type=0xffff) ' ' +Property 0xd014:(readwrite) (type=0xffff) ' ' +Property 0xd015:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd016:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Flourescent White Balance Bias(0xd019):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +Property 0xd01f:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd020:(readwrite) (type=0xffff) ' ' +Property 0xd021:(readwrite) (type=0xffff) ' ' +Property 0xd022:(readwrite) (type=0xffff) ' ' +Property 0xd023:(readwrite) (type=0xffff) ' ' +Property 0xd024:(readwrite) (type=0xffff) ' ' +Property 0xd025:(read only) (type=0x6) 25690547 +Property 0xd026:(read only) (type=0x6) 25690547 +Property 0xd027:(read only) (type=0x6) 25690547 +Property 0xd028:(read only) (type=0x6) 25690547 +Property 0xd029:(read only) (type=0x6) 25690547 +Sharpening(0xd02a):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Tone Compensation(0xd02b):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Colour Mode(0xd02c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: sRGB (0) +Hue Adjustment(0xd02d):(readwrite) (type=0x1) Range [-9 - 9, step 3] value: 0 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Max. Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +Property 0xd030:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd031:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd032:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +PTP_DPC_NIKON_MenuBankNameA(0xd041):(readwrite) (type=0xffff) ' ' +PTP_DPC_NIKON_MenuBankNameB(0xd042):(readwrite) (type=0xffff) ' ' +PTP_DPC_NIKON_MenuBankNameC(0xd043):(readwrite) (type=0xffff) ' ' +PTP_DPC_NIKON_MenuBankNameD(0xd044):(readwrite) (type=0xffff) ' ' +Property 0xd045:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A3GroupDynamicAF(0xd04a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +PTP_DPC_NIKON_A4AFActivation(0xd04b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A5FocusAreaIllumManualFocus(0xd04c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_FocusAreaIllumContinuous(0xd04d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_FocusAreaIllumWhenSelected(0xd04e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Vertical AF On(0xd050):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd051:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Compensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Compensation(0xd058):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Property 0xd05a:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd05b:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd05c:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1 +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +LCD Off Time(0xd064):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1 +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 4 +Max. Shots(0xd069):(readwrite) (type=0x2) Range [1 - 35, step 1] value: 35 +PTP_DPC_NIKON_D3ExpDelayMode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +PTP_DPC_NIKON_D6ControlPanelFinderRearControl(0xd06d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_ControlPanelFinderViewfinder(0xd06e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_D7Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd070:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 0 +Flash Mode(0xd076):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Modeling Flash(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Auto Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto Bracket Selection(0xd07b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Center Button Shooting Mode(0xd080):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Center Button Playback Mode(0xd081):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Multiselector(0xd082):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Photo Info. Playback(0xd083):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Assign Func. Button(0xd084):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 0 +Customise Command Dials(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Reverse Command Dials(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Menus and Playback(0xd088):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Buttons and Dials(0xd089):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Property 0xd08b:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Property 0xd091:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Exposure Bracketing(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Distance(0xd0c1):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Bracketing Number(0xd0c2):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Property 0xd0c3:(read only) (type=0x2) Range [1 - 9, step 1] value: 1 +Property 0xd0c4:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd0c5:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) Unknown (0) +Property 0xd0e1:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0e2:(read only) (type=0x2) 0 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 0 mm (0) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 0 mm (0) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/0 (0) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/0 (0) +Property 0xd100:(readwrite) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967295] value: 65537 +Property 0xd101:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd102:(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [1 - 35, step 1] value: 10 +Property 0xd104:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd105:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd106:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +AF LCD Top Mode 2(0xd107):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 10, step 1] value: Right (4) +Property 0xd109:(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Exposure Meter(0xd10a):(read only) (type=0x1) Range [-128 - 127, step 1] value: 0.8 stops (10) +Property 0xd10b:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd10c:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd10d:(read only) (type=0xffff) '01087937 ' +Property 0xd10e:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd10f:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd110:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Exposure Aperture Lock(0xd111):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd120:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd121:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd122:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd123:(read only) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd124:(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 +Property 0xd125:(read only) (type=0x2) Range [0 - 7, step 1] value: 0 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d2xs.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d2xs.txt new file mode 100644 index 00000000..c7984d75 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d2xs.txt @@ -0,0 +1,185 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D2Xs + Version: V1.00 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Nikon PTP Extensions + +Capture Formats: JPEG TIFF Undefined Type +Display Formats: Undefined Type, Association/Directory, TIFF, JPEG, JFIF, MS Wave, DPOF, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 2063302656 (1967 MB) + Free Space (Bytes): 542081024 (516 MB) + Free Space (Images): 48 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4288x2848', + '3216x2136', + '2144x1424' + ] value: '4288x2848' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Cloudy (32784) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/7.1 (710) +Focal Length(0x5008):(read only) (type=0x6) Range [1200 - 2400, step 1] value: 15 mm (1500) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: AF-C (32785) +Exposure Metering Mode(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,1,2,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1002,1250,1666,2005,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,149984,200256,254096,300000] value: 0.0005 sec (50) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: P (2) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,3200] value: ISO 200 (200) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130206T133557' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 35, step 1] value: 1 +Focus Metering Mode(0x501c):(read only) (type=0x4) Enumeration [2,32784,32785,32786] value: Multi-spot (2) +Shooting Bank(0xd010):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Shooting Bank Name A(0xd011):(readwrite) (type=0xffff) ' ' +Shooting Bank Name B(0xd012):(readwrite) (type=0xffff) ' ' +Shooting Bank Name C(0xd013):(readwrite) (type=0xffff) ' ' +Shooting Bank Name D(0xd014):(readwrite) (type=0xffff) ' ' +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 3 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1 +White Balance Preset Name 0(0xd020):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 16778169 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 25690547 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 25690547 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 25690547 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 25690547 +Sharpening(0xd02a):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Normal (1) +Tone Compensation(0xd02b):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Low contrast (2) +Color Model(0xd02c):(readwrite) (type=0x2) Range [0 - 3, step 1] value: AdobeRGB (1) +Hue Adjustment(0xd02d):(readwrite) (type=0x1) Range [-9 - 9, step 3] value: 0 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 22 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 9 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +JPEG Compression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Menu Bank Name A(0xd041):(readwrite) (type=0xffff) ' ' +Menu Bank Name B(0xd042):(readwrite) (type=0xffff) ' ' +Menu Bank Name C(0xd043):(readwrite) (type=0xffff) ' ' +Menu Bank Name D(0xd044):(readwrite) (type=0xffff) ' ' +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A3GroupDynamicAF(0xd04a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +PTP_DPC_NIKON_A4AFActivation(0xd04b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_FocusAreaIllumManualFocus(0xd04c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_FocusAreaIllumContinuous(0xd04d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_FocusAreaIllumWhenSelected(0xd04e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Vertical AF On(0xd050):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Exposure Compensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Compensation(0xd058):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 5, step 1] value: AE/AF Lock (0) +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 30 minutes (4) +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 10 seconds (2) +LCD Off Time(0xd064):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 5 minutes (3) +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 4 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 60, step 1] value: 60 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +PTP_DPC_NIKON_ControlPanelFinderRearControl(0xd06d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_ControlPanelFinderViewfinder(0xd06e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +LCD Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Flash Mode(0xd076):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Modeling Flash(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 3, step 1] value: AE only (1) +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Under > MTR (1) +Auto Bracket Selection(0xd07b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Center Button Shooting Mode(0xd080):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Reset focus point to center (0) +Center Button Playback Mode(0xd081):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Multiselector(0xd082):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Photo Info. Playback(0xd083):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Assign Func. Button(0xd084):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Customise Command Dials(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Reverse Command Dial(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Menus and Playback(0xd088):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Buttons and Dials(0xd089):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Center Button Zoom Ratio(0xd08b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Function Button 2(0xd08c):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 9, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 122 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 3 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 12 mm (1200) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 24 mm (2400) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/4 (400) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/4 (400) +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 65736 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [1 - 35, step 1] value: 20 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AF LCD Top Mode 2(0xd107):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 10, step 1] value: Centre (0) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Exposure Meter(0xd10a):(read only) (type=0x1) Range [-128 - 127, step 1] value: 0.0 stops (0) +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 1, step 1] value: USB 2.0 (1) +CCD Serial Number(0xd10d):(read only) (type=0xffff) '01101403 %" ' +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 2, step 1] value: 0' (0) +Group PTN Type(0xd10f):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +FNumber Lock(0xd110):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Aperture Lock(0xd111):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +External Flash Mode(0xd123):(read only) (type=0x2) Range [0 - 5, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 1/15 (3) +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 800 (1) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3.txt new file mode 100644 index 00000000..788a88ef --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3.txt @@ -0,0 +1,153 @@ +Device info: +Manufacturer: Nikon Corporation + model: D3 + device version: V1.00 + serial number: 'nnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com: 1.0 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9200 + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 + 0xc104 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd406 + 0xd407 + +Camera summary: +Model: D3 + device version: V1.00 + serial number: nnnnnnn +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type TIFF +Display Formats: JPEG, Undefined Type, Association/Directory, MS Wave, TIFF, DPOF, Script +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + TIFF/380d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Script/3002: PTP error a802 on query + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D3 [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 4094656512 (3904 MB) + Free Space (Bytes): 4094525440 (3904 MB) + Free Space (Images): 201 +store_00020001: + StorageDescription: None + VolumeLabel: NIKON D3 [Slot 2] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 8193507328 (7813 MB) + Free Space (Bytes): 8193376256 (7813 MB) + Free Space (Images): 403 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 40 +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4256x2832', + '3184x2120', + '2128x1416' + ] value: '4256x2832' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: 4 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: 2 +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500,2900,3200,3600] value: 900 +Focal Length(0x5008):(read only) (type=0x6) Range [10500 - 10500, step 1] value: 10500 +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: 32784 +Exposure Metering Mode(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: 2 +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: 32784 +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,20000] value: 20000 +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 3 +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8320,10240,12800,25600] value: 400 +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0 +Date Time(0x5011):(readwrite) (type=0xffff) '20080324T162135' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32787] value: 1 +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(read only) (type=0x4) Enumeration [2,32784,32785] value: 32784 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d300.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d300.txt new file mode 100644 index 00000000..f7bb8da1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d300.txt @@ -0,0 +1,814 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D300 + device version: V1.03 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9200 + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 + 0xc104 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd406 + 0xd407 + +Kamerazusammenfassung: +Manufacturer: Nikon Corporation +Model: D300 + Version: V1.10 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Aufnahmeformate: JPEG Undefined Type TIFF +Anzeigeformate: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script +Unterstützte MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + TIFF/380d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Script/3002:PTP Fehler a802 beim Abfragen + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Generische Bild Aufnahme, keine Offene Aufnahme, Nikon Aufnahme + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: NIKON D300 + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Nur Lesen und Löschen + Maximale Kapazität: 4094656512 (3904 MB) + Freier Platz (Bytes): 3947233280 (3764 MB) + Freier Speicher (Bilder): 189 + +Properties des Geräts: +Batterie Ladezustand(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 20% (20) +Bildgröße(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4288x2848', + '3216x2136', + '2144x1424' + ] value: '4288x2848' +Kompressions Parameter(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: RAW (4) +Weißabgleich(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Nummer(0x5007):(readwrite) (type=0x4) Enumeration [280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/3,5 (350) +Fokus Tiefe(0x5008):(read only) (type=0x6) Range [2400 - 7000, step 1] value: 50 mm (5000) +Fokusmodus(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: AF-S (32784) +Belichtungsmessmodus(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: Matrix (3) +Blitzmodus(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Default (32784) +Belichtungszeit(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,20000] value: 0,2 sec (20000) +Belichtungs Programm Modus(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: A (3) +Belichtungs Index (nach ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400] value: ISO 200 (200) +Belichtungskompensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0,0 stops (0) +Datum und Zeit(0x5011):(readwrite) (type=0xffff) '20081202T110150' +Bildaufnahme Modus(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32787] value: Single Shot (1) +Bildzahl im Burstmodus(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Entfernungs Messungs Modus(0x501c):(read only) (type=0x4) Enumeration [2,32784,32785] value: Single Area (32784) +Künstler(0x501e):(read only) (type=0xffff) 'Joe Example User' +Copyright Information(0x501f):(read only) (type=0xffff) '(null)' +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd010:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Property 0xd011:(readwrite) (type=0xffff) ' ' +Property 0xd012:(readwrite) (type=0xffff) 'NEF 12 Bit ' +Property 0xd013:(readwrite) (type=0xffff) ' ' +Property 0xd014:(readwrite) (type=0xffff) 'High ISO ' +Property 0xd015:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd016:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Automatische Weißabgleich Abweichung(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten Weißabgleich Abweichung(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Floureszierend Weißabgleich Abweichung(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tageslicht Weißabgleich Abweichung(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Blitz Weißabgleich Abweichung(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Wolkig Weißabgleich Abweichung(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Schattig Weißabgleich Abweichung(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Weißabgleich Farbtemperatur(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +Property 0xd01f:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd020:(readwrite) (type=0xffff) ' ' +Property 0xd021:(readwrite) (type=0xffff) ' ' +Property 0xd022:(readwrite) (type=0xffff) ' ' +Property 0xd023:(readwrite) (type=0xffff) ' ' +Property 0xd024:(readwrite) (type=0xffff) ' ' +Property 0xd025:(read only) (type=0x6) 12911311 +Property 0xd026:(read only) (type=0x6) 26214735 +Property 0xd027:(read only) (type=0x6) 26214735 +Property 0xd028:(read only) (type=0x6) 26214735 +Property 0xd029:(read only) (type=0x6) 26214735 +Fokus Tiefe der Linse (Nicht CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 14 +Maximale Blende der Linse (Nicht CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 9 +Property 0xd031:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd032:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +PTP_DPC_NIKON_MenuBankNameA(0xd041):(readwrite) (type=0xffff) ' ' +PTP_DPC_NIKON_MenuBankNameB(0xd042):(readwrite) (type=0xffff) ' ' +PTP_DPC_NIKON_MenuBankNameC(0xd043):(readwrite) (type=0xffff) ' ' +PTP_DPC_NIKON_MenuBankNameD(0xd044):(readwrite) (type=0xffff) ' ' +Property 0xd045:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A4AFActivation(0xd04b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Fokus Bereich Wraparound(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Vertikaler Autofokus An(0xd050):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Property 0xd051:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Property 0xd053:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +ISO-Schritt(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Belichtungszeitschritt(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Belichtungskompensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Belichtungskompensation(0xd058):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Mittelpunkt/Gewichtet Bereich(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Property 0xd05a:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd05b:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd05c:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Belichtungs Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Fokus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 13, step 1] value: AF Lock Hold (3) +Zeit für automatische Sensor Abschaltung(0xd062):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 1 +Selbstauslöserzeit(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Zeit für automatische Abschaltung des LCD(0xd064):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Abstand bei Mehrfachbelichtung(0xd068):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 4 +Maximale Bildanzahl(0xd069):(readwrite) (type=0x2) Range [1 - 100, step 1] value: 100 +PTP_DPC_NIKON_D3ExpDelayMode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Langzeitbelichtungsrauschkompensation(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bildnummer Zählung(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +PTP_DPC_NIKON_D7Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd070:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd072:(readwrite) (type=0xffff) 'Joe Example User' +Property 0xd073:(readwrite) (type=0xffff) '(null)' +Blitzsynchronisations Geschwindigkeit(0xd074):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 2 +Blitz Belichtungszeit(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 0 +Modellierblitz(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Abstufungsbereich(0xd078):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Manueller Abstufungsmodus(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Abstufungsrichtung(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Mittlerer Button Aufnahme Modus(0xd080):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Mittlerer Button Playback Modus(0xd081):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Multiselektor(0xd082):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Photo Info. Playback(0xd083):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Weise Func. Button zu(0xd084):(readwrite) (type=0x2) Range [0 - 12, step 1] value: 0 +Passe Kommando Dials an(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Umgedrehtes Kommando Rad(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Blendeneinstellung(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Menüs und Abspielen(0xd088):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Knöpfe und Räder(0xd089):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auslösen ohne CF Karte(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Property 0xd08b:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd08c:(readwrite) (type=0x2) Enumeration [0,2,5,6,7] value: 5 +Property 0xd08d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Bild Kommentar(0xd090):(readwrite) (type=0xffff) 'Joe Example User' +Property 0xd091:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Bildrotationsflag(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd093:(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Property 0xd094:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd095:(readwrite) (type=0x1) Range [-20 - 20, step 1] value: 0 +Property 0xd096:(readwrite) (type=0x1) Range [-20 - 21, step 1] value: 21 +Property 0xd097:(readwrite) (type=0x1) Range [0 - 19, step 1] value: 0 +Property 0xd098:(readwrite) (type=0x1) Range [0 - 100, step 1] value: 0 +Property 0xd099:(read only) (type=0x1) Range [0 - 20, step 1] value: 0 +Property 0xd09a:(read only) (type=0x1) Range [0 - 20, step 1] value: 20 +Property 0xd09b:(read only) (type=0x1) Range [0 - 1, step 1] value: 0 +Belichtungs Abstufung(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Belichtungsabstufungsschritt(0xd0c1):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Belichtungsabstufungs Anzahl(0xd0c2):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 3 +Property 0xd0c3:(read only) (type=0x2) Range [1 - 9, step 1] value: 1 +NIKON Automatische Weißabgleich Abweichung(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd0c5:(read only) (type=0x2) Range [0 - 7, step 1] value: 3 +Objektiv Kennung(0xd0e0):(read only) (type=0x2) AF-S Nikkor 24-70mm 1:2.8G ED DX (147) +Property 0xd0e1:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0e2:(read only) (type=0x2) 3 +Minimale Brennweite(0xd0e3):(read only) (type=0x6) 24 mm (2400) +Maximale Brennweite(0xd0e4):(read only) (type=0x6) 70 mm (7000) +Maximale Blende bei Minimaler Brennweite(0xd0e5):(read only) (type=0x4) f/2,8 (280) +Maximale Blende bei maximaler Brennweite(0xd0e6):(read only) (type=0x4) f/2,8 (280) +Property 0xd100:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,131073] value: 131073 +Netzanschluss(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd102:(read only) (type=0x2) 0 +Maximale Bildanzahl(0xd103):(read only) (type=0x2) Range [0 - 42, step 1] value: 16 +NIKON AF-L Feststellung(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd105:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd106:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Aktiver AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 51, step 1] value: Top (1) +Property 0xd109:(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Property 0xd10b:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd10c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd10d:(read only) (type=0xffff) ' .I ' +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 90' (2) +Property 0xd110:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Belichtung Blende Lock(0xd111):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd120:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd121:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd122:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd123:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd124:(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 +Property 0xd125:(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Blitz Belichtungskompensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0,0 stops (0) +Property 0xd149:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd14e:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Property 0xd14f:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Property 0xd150:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd151:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd152:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd153:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd154:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd155:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +AF Signalton Modus(0xd160):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Autofokus Hilfslicht(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Auto ISO P/A/DVP Einstellung(0xd164):(readwrite) (type=0x2) Range [0 - 26, step 1] value: 18 +AF Bereich Aufhellung(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Blitzmodus(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +Gitterlinien im Sucher(0xd16c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Blitzmodus mit manuelle Energie(0xd16d):(readwrite) (type=0x2) Range [0 - 21, step 1] value: Full (0) +Property 0xd181:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd182:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd183:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 3 +Property 0xd184:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Property 0xd187:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd189:(readwrite) (type=0x2) Range [0 - 12, step 1] value: 1 +Property 0xd18a:(readwrite) (type=0x2) Enumeration [0,2,5,6,7] value: 0 +Property 0xd18b:(readwrite) (type=0x2) Enumeration [0,5,6,7] value: 0 +Property 0xd18d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd18e:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1a0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1a1:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd1a2:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1a3:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1a4:(read only) (type=0x6) 1 +Wenig Licht(0xd1b0):(read only) (type=0x2) Range [0 - 8, step 1] value: Yes (1) +Property 0xd1b1:(read only) (type=0x1) Range [-60 - 60, step 1] value: 0 +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd1b3:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Blitz offen(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Blitz geladen(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1d0:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Property 0xd1d1:(readwrite) (type=0x2) Range [0 - 9, step 1] value: 8 +Property 0xd1d2:(readwrite) (type=0x2) Range [0 - 13, step 1] value: 9 +Property 0xd1d3:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd1d4:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Property 0xd1d5:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1d6:(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Property 0xd1d7:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1d8:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1d9:(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Property 0xd1da:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1db:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1dc:(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Property 0xd200:(readwrite) (type=0x4) Enumeration [1,2,3,4,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Property 0xd201:(read only) (type=0x4) Enumeration [] value: 0 + +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1228213910 + Printable: Tue Dec 2 11:31:50 2008 +/main/settings/imgcomment + Label: Image Comment + Type: TEXT + Current: (C) 2008 by Joe Example User +/main/settings/lcdofftime + Label: LCD Off Time + Type: RADIO + Current: 10 seconds + Choice: 0 10 seconds + Choice: 1 20 seconds + Choice: 2 1 minute + Choice: 3 5 minutes + Choice: 4 10 minutes +/main/settings/meterofftime + Label: Meter Off Time + Type: RADIO + Current: 6 seconds + Choice: 0 4 seconds + Choice: 1 6 seconds + Choice: 2 8 seconds + Choice: 3 16 seconds + Choice: 4 30 minutes + Choice: 5 30 seconds + Choice: 6 Unknown value 0006 + Choice: 7 Unknown value 0007 + Choice: 8 Unknown value 0008 + Choice: 9 Unknown value 0009 +/main/settings/battery + Label: Battery Level + Type: TEXT + Current: 20% +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imgquality + Label: Image Quality + Type: RADIO + Current: NEF+Basic + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF (Raw) + Choice: 4 NEF+Basic + Choice: 5 NEF+Normal + Choice: 6 NEF+Fine + Choice: 7 TIFF (RGB) +/main/imgsettings/imgsize + Label: Image Size + Type: RADIO + Current: 4288x2848 + Choice: 0 4288x2848 + Choice: 1 3216x2136 + Choice: 2 2144x1424 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 200 + Choice: 0 100 + Choice: 1 125 + Choice: 2 160 + Choice: 3 200 + Choice: 4 250 + Choice: 5 320 + Choice: 6 400 + Choice: 7 500 + Choice: 8 640 + Choice: 9 800 + Choice: 10 1000 + Choice: 11 1250 + Choice: 12 1600 + Choice: 13 2000 + Choice: 14 2500 + Choice: 15 3200 + Choice: 16 4000 + Choice: 17 5000 + Choice: 18 6400 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Daylight + Choice: 2 Fluorescent + Choice: 3 Tungsten + Choice: 4 Flash + Choice: 5 Cloudy + Choice: 6 Shade + Choice: 7 Color Temperature + Choice: 8 Preset +/main/imgsettings/autoiso + Label: Auto ISO + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/longexpnr + Label: Long Exp Noise Reduction + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusmode2 + Label: Auto Focus Mode 2 + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nikonflashmode + Label: Flash Mode + Type: RADIO + Current: iTTL + Choice: 0 iTTL + Choice: 1 Manual + Choice: 2 Commander + Choice: 3 Unknown value 0003 +/main/capturesettings/af-area-illumination + Label: AF Area Illumination + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Off + Choice: 2 On +/main/capturesettings/afbeep + Label: AF Beep Mode + Type: TOGGLE + Current: 0 +/main/capturesettings/f-number + Label: F-Number + Type: RADIO + Current: f/3.5 + Choice: 0 f/2.8 + Choice: 1 f/3.2 + Choice: 2 f/3.5 + Choice: 3 f/4 + Choice: 4 f/4.5 + Choice: 5 f/5 + Choice: 6 f/5.6 + Choice: 7 f/6.3 + Choice: 8 f/7.1 + Choice: 9 f/8 + Choice: 10 f/9 + Choice: 11 f/10 + Choice: 12 f/11 + Choice: 13 f/13 + Choice: 14 f/14 + Choice: 15 f/16 + Choice: 16 f/18 + Choice: 17 f/20 + Choice: 18 f/22 +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 50 + Bottom: 24 + Top: 70 + Step: 0.01 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: AF-S + Choice: 0 Manual + Choice: 1 AF-S + Choice: 2 AF-C +/main/capturesettings/exposurebiascompensation + Label: Exposure Bias Compensation + Type: RADIO + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/capturesettings/exptime + Label: Exposure Time + Type: RADIO + Current: 16 + Choice: 0 0.001 + Choice: 1 0.002 + Choice: 2 0.003 + Choice: 3 0.004 + Choice: 4 0.005 + Choice: 5 0.006 + Choice: 6 0.008 + Choice: 7 0.010 + Choice: 8 0.012 + Choice: 9 0.015 + Choice: 10 0.020 + Choice: 11 0.025 + Choice: 12 0.031 + Choice: 13 0.040 + Choice: 14 0.050 + Choice: 15 0.062 + Choice: 16 0.080 + Choice: 17 0.100 + Choice: 18 0.125 + Choice: 19 0.166 + Choice: 20 16 +/main/capturesettings/expprogram + Label: Exposure Program + Type: RADIO + Current: A + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S +/main/capturesettings/capturemode + Label: Still Capture Mode + Type: RADIO + Current: Single Shot + Choice: 0 Single Shot + Choice: 1 Burst + Choice: 2 Continuous Low Speed + Choice: 3 Timer + Choice: 4 Mirror Up + Choice: 5 Remote +/main/capturesettings/focusmetermode + Label: Focus Metering Mode + Type: RADIO + Current: Single Area + Choice: 0 Dynamic Area + Choice: 1 Single Area + Choice: 2 Closest Subject +/main/capturesettings/exposuremetermode + Label: Exposure Metering Mode + Type: RADIO + Current: Multi Spot + Choice: 0 Center Weighted + Choice: 1 Multi Spot + Choice: 2 Center Spot +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Default + Choice: 0 Red-eye automatic + Choice: 1 Default + Choice: 2 Slow Sync + Choice: 3 Rear Curtain Sync + Slow Sync + Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/focusareawrap + Label: Focus Area Wrap + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurelock + Label: Exposure Lock + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelaflmode + Label: AE-L/AF-L Mode + Type: RADIO + Current: AF Lock Hold + Choice: 0 AE/AF Lock + Choice: 1 AE Lock only + Choice: 2 AF Lock Only + Choice: 3 AF Lock Hold + Choice: 4 AF On + Choice: 5 Flash Level Lock + Choice: 6 Unknown value 0006 + Choice: 7 Unknown value 0007 + Choice: 8 Unknown value 0008 + Choice: 9 Unknown value 0009 + Choice: 10 Unknown value 000a + Choice: 11 Unknown value 000b + Choice: 12 Unknown value 000c + Choice: 13 Unknown value 000d +/main/capturesettings/filenrsequencing + Label: File Number Sequencing + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/viewfindergrid + Label: Viewfinder Grid + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/imagerotationflag + Label: Image Rotation Flag + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nocfcardrelease + Label: Release without CF card + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/flashmodemanualpower + Label: Flash Mode Manual Power + Type: RADIO + Current: Full + Choice: 0 Full + Choice: 1 1/2 + Choice: 2 1/4 + Choice: 3 1/8 + Choice: 4 1/16 + Choice: 5 Unknown value 0005 + Choice: 6 Unknown value 0006 + Choice: 7 Unknown value 0007 + Choice: 8 Unknown value 0008 + Choice: 9 Unknown value 0009 + Choice: 10 Unknown value 000a + Choice: 11 Unknown value 000b + Choice: 12 Unknown value 000c + Choice: 13 Unknown value 000d + Choice: 14 Unknown value 000e + Choice: 15 Unknown value 000f + Choice: 16 Unknown value 0010 + Choice: 17 Unknown value 0011 + Choice: 18 Unknown value 0012 + Choice: 19 Unknown value 0013 + Choice: 20 Unknown value 0014 + Choice: 21 Unknown value 0015 +/main/capturesettings/autofocusarea + Label: Auto Focus Area + Type: RADIO + Current: Top + Choice: 0 Centre + Choice: 1 Top + Choice: 2 Bottom + Choice: 3 Left + Choice: 4 Right + Choice: 5 Unknown value 0005 + Choice: 6 Unknown value 0006 + Choice: 7 Unknown value 0007 + Choice: 8 Unknown value 0008 + Choice: 9 Unknown value 0009 + Choice: 10 Unknown value 000a + Choice: 11 Unknown value 000b + Choice: 12 Unknown value 000c + Choice: 13 Unknown value 000d + Choice: 14 Unknown value 000e + Choice: 15 Unknown value 000f + Choice: 16 Unknown value 0010 + Choice: 17 Unknown value 0011 + Choice: 18 Unknown value 0012 + Choice: 19 Unknown value 0013 + Choice: 20 Unknown value 0014 + Choice: 21 Unknown value 0015 + Choice: 22 Unknown value 0016 + Choice: 23 Unknown value 0017 + Choice: 24 Unknown value 0018 + Choice: 25 Unknown value 0019 + Choice: 26 Unknown value 001a + Choice: 27 Unknown value 001b + Choice: 28 Unknown value 001c + Choice: 29 Unknown value 001d + Choice: 30 Unknown value 001e + Choice: 31 Unknown value 001f + Choice: 32 Unknown value 0020 + Choice: 33 Unknown value 0021 + Choice: 34 Unknown value 0022 + Choice: 35 Unknown value 0023 + Choice: 36 Unknown value 0024 + Choice: 37 Unknown value 0025 + Choice: 38 Unknown value 0026 + Choice: 39 Unknown value 0027 + Choice: 40 Unknown value 0028 + Choice: 41 Unknown value 0029 + Choice: 42 Unknown value 002a + Choice: 43 Unknown value 002b + Choice: 44 Unknown value 002c + Choice: 45 Unknown value 002d + Choice: 46 Unknown value 002e + Choice: 47 Unknown value 002f + Choice: 48 Unknown value 0030 + Choice: 49 Unknown value 0031 + Choice: 50 Unknown value 0032 + Choice: 51 Unknown value 0033 +/main/capturesettings/flashexposurecompensation + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -3 + Top: 1 + Step: 0.333333 +/main/capturesettings/bracketset + Label: Bracket Set + Type: RADIO + Current: AE & Flash + Choice: 0 AE & Flash + Choice: 1 AE only + Choice: 2 Flash only + Choice: 3 WB bracketing +/main/capturesettings/bracketorder + Label: Bracket Order + Type: RADIO + Current: MTR > Under + Choice: 0 MTR > Under + Choice: 1 Under > MTR +/main/capturesettings/burstnumber + Label: Burst Number + Type: RANGE + Current: 1 + Bottom: 1 + Top: 100 + Step: 1 +/main/capturesettings/selftimerdelay + Label: Selftimer Delay + Type: RADIO + Current: 10 seconds + Choice: 0 2 seconds + Choice: 1 5 seconds + Choice: 2 10 seconds + Choice: 3 20 seconds +/main/capturesettings/centerweightsize + Label: Center Weight Area + Type: RADIO + Current: 8 mm + Choice: 0 6 mm + Choice: 1 8 mm + Choice: 2 10 mm + Choice: 3 20 mm + Choice: 4 Unknown value 0004 +/main/capturesettings/flashshutterspeed + Label: Flash Shutter Speed + Type: RADIO + Current: 1/60 + Choice: 0 1/60 + Choice: 1 1/30 + Choice: 2 1/15 + Choice: 3 1/8 + Choice: 4 1/4 + Choice: 5 1/2 + Choice: 6 1 + Choice: 7 2 + Choice: 8 4 + Choice: 9 8 + Choice: 10 15 + Choice: 11 30 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3000.txt new file mode 100644 index 00000000..7c486959 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3000.txt @@ -0,0 +1,136 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D3000 + device version: V1.00 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd406 + 0xd407 + +/main/settings/datetime +/main/settings/fastfs +/main/status/batterylevel +/main/imgsettings/imagequality +/main/imgsettings/imagesize +/main/imgsettings/iso +/main/imgsettings/whitebalance +/main/capturesettings/exposurecompensation +/main/capturesettings/f-number +/main/capturesettings/focallength +/main/capturesettings/focusmode +/main/capturesettings/expprogram +/main/capturesettings/capturemode +/main/capturesettings/focusmetermode +/main/capturesettings/exposuremetermode +/main/capturesettings/flashmode +/main/capturesettings/shutterspeed +/main/capturesettings/burstnumber + +Camera summary: +Manufacturer: Nikon Corporation +Model: D3000 + Version: V1.00 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, MS AVI, DPOF, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D80 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 8160542720 (7782 MB) + Free Space (Bytes): 297041920 (283 MB) + Free Space (Images): 282 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3872x2592', + '2896x1944', + '1936x1296' + ] value: '1936x1296' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5] value: JPEG Norm (1) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/2.8 (280) +Focal Length(0x5008):(read only) (type=0x6) Range [1050 - 1050, step 1] value: 10 mm (1050) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Default (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.005 sec (500) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32790,32791] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,200,400,800,1600,3200] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20090114T175049' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32788,32789] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 51, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786] value: Single Area (32784) +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d300s.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d300s.txt new file mode 100644 index 00000000..590e7bf4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d300s.txt @@ -0,0 +1,4359 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D300S + device version: V1.00 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9200 + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 + 0xc104 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0x501e + 0x501f + 0xd406 + 0xd407 + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd020 + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02e + 0xd02f + 0xd031 + 0xd032 + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd048 + 0xd049 + 0xd04b + 0xd04f + 0xd050 + 0xd051 + 0xd053 + 0xd054 + 0xd055 + 0xd056 + 0xd057 + 0xd058 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd065 + 0xd067 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd06f + 0xd070 + 0xd071 + 0xd072 + 0xd073 + 0xd074 + 0xd075 + 0xd077 + 0xd078 + 0xd079 + 0xd07a + 0xd080 + 0xd081 + 0xd082 + 0xd083 + 0xd084 + 0xd085 + 0xd086 + 0xd087 + 0xd088 + 0xd089 + 0xd08a + 0xd08b + 0xd08c + 0xd08d + 0xd090 + 0xd091 + 0xd092 + 0xd093 + 0xd094 + 0xd095 + 0xd096 + 0xd097 + 0xd098 + 0xd099 + 0xd09a + 0xd09b + 0xd0a0 + 0xd0a2 + 0xd0a3 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0c7 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f2 + 0xd0f3 + 0xd0f4 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10c + 0xd10d + 0xd10e + 0xd114 + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd148 + 0xd149 + 0xd14e + 0xd14f + 0xd150 + 0xd151 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd156 + 0xd160 + 0xd163 + 0xd164 + 0xd166 + 0xd167 + 0xd16c + 0xd16d + 0xd181 + 0xd182 + 0xd183 + 0xd184 + 0xd187 + 0xd189 + 0xd18a + 0xd18b + 0xd18d + 0xd18e + 0xd1a0 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1c0 + 0xd1c1 + 0xd1d0 + 0xd1d1 + 0xd1d2 + 0xd1d3 + 0xd1d4 + 0xd1d5 + 0xd1d6 + 0xd1d7 + 0xd1d8 + 0xd1d9 + 0xd1da + 0xd1db + 0xd1dc + 0xd200 + 0xd201 +Camera summary: +Manufacturer: Nikon Corporation +Model: D300S + Version: V1.00 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type TIFF +Display Formats: JPEG, Undefined Type, Association/Directory, MS AVI, TIFF, DPOF, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D300 [CF card slot] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 2028961792 (1934 MB) + Free Space (Bytes): 1949925376 (1859 MB) + Free Space (Images): 1025 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 40% (40) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4288x2848', + '3216x2136', + '2144x1424' + ] value: '2144x1424' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Color Temperature (32786) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/4.5 (450) +Focal Length(0x5008):(read only) (type=0x6) Range [2800 - 2800, step 1] value: 28 mm (2800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: AF-S (32784) +Exposure Metering Mode(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32786] value: Default (32784) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967295] value: 0.0004 sec (40) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400] value: ISO 1250 (1250) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20090612T111656' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(read only) (type=0x4) Enumeration [2,32784,32785] value: Single Area (32784) +Artist(0x501e):(read only) (type=0xffff) '(null)' +Copyright Info(0x501f):(read only) (type=0xffff) '(null)' +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Shooting Bank(0xd010):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Shooting Bank Name A(0xd011):(readwrite) (type=0xffff) ' ' +Shooting Bank Name B(0xd012):(readwrite) (type=0xffff) ' ' +Shooting Bank Name C(0xd013):(readwrite) (type=0xffff) ' ' +Shooting Bank Name D(0xd014):(readwrite) (type=0xffff) ' ' +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 15 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +White Balance Preset Name 0(0xd020):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 26214735 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 26214735 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 26214735 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 26214735 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 26214735 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +JPEG Compression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Menu Bank Name A(0xd041):(readwrite) (type=0xffff) ' ' +Menu Bank Name B(0xd042):(readwrite) (type=0xffff) ' ' +Menu Bank Name C(0xd043):(readwrite) (type=0xffff) ' ' +Menu Bank Name D(0xd044):(readwrite) (type=0xffff) ' ' +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_A4AFActivation(0xd04b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Vertical AF On(0xd050):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Exposure Compensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Compensation(0xd058):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 16, step 1] value: AF Lock Hold (3) +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 6 seconds (1) +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 10 seconds (2) +Img Conf Time(0xd065):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Angle Level(0xd067):(read only) (type=0x5) 23581238 +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 4 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 100, step 1] value: 100 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +LCD Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +On screen tips(0xd071):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Artist Name(0xd072):(readwrite) (type=0xffff) '(null)' +Copyright Information(0xd073):(readwrite) (type=0xffff) '(null)' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 2 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Modeling Flash(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Center Button Shooting Mode(0xd080):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Highlight active focus point (1) +Center Button Playback Mode(0xd081):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Multiselector(0xd082):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Photo Info. Playback(0xd083):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Assign Func. Button(0xd084):(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +Customise Command Dials(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Reverse Command Dial(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Menus and Playback(0xd088):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Buttons and Dials(0xd089):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Center Button Zoom Ratio(0xd08b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Function Button 2(0xd08c):(readwrite) (type=0x2) Enumeration [0,2,5,6,7] value: 5 +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Property 0xd094:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd095:(readwrite) (type=0x1) Range [-20 - 20, step 1] value: 0 +Property 0xd096:(readwrite) (type=0x1) Range [-20 - 21, step 1] value: 21 +Property 0xd097:(readwrite) (type=0x1) Range [0 - 19, step 1] value: 0 +Property 0xd098:(readwrite) (type=0x1) Range [0 - 100, step 1] value: 0 +Property 0xd099:(read only) (type=0x1) Range [0 - 20, step 1] value: 0 +Property 0xd09a:(read only) (type=0x1) Range [0 - 20, step 1] value: 20 +Property 0xd09b:(readwrite) (type=0x1) Range [0 - 1, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Property 0xd0a2:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd0a3:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 3 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 9, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 7, step 1] value: 3 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 62 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 1 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 28 mm (2800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 28 mm (2800) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/2.8 (280) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/2.8 (280) +Auto Off Photo(0xd0f2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Auto Off Menu(0xd0f3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Auto Off Info(0xd0f4):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Nikon Exposure Time(0xd100):(readwrite) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967294,4294967295] value: 65786 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 42, step 1] value: 11 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 51, step 1] value: Right (4) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 1, step 1] value: USB 2.0 (1) +CCD Serial Number(0xd10d):(read only) (type=0xffff) ' ' +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +Illum Setting(0xd114):(readwrite) (type=0x2) Range [0 - 1, step 1] value: LCD Backlight (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Slot 2 Save Mode(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 4 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 0(0xd151):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 1(0xd152):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 2(0xd153):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 3(0xd154):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 4(0xd155):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd156:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +AF Beep Mode(0xd160):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (0) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 26, step 1] value: 21 +AF Area Illumination(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (2) +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +Viewfinder Grid Display(0xd16c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Flash Mode Manual Power(0xd16d):(readwrite) (type=0x2) Range [0 - 21, step 1] value: Full (0) +Warning Display(0xd181):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +Battery Cell Kind(0xd182):(readwrite) (type=0x2) Range [0 - 3, step 1] value: LR6 (AA alkaline) (0) +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 3200 (3) +Dynamic AF Area(0xd184):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Info Disp Setting(0xd187):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Preview Button(0xd189):(readwrite) (type=0x2) Range [0 - 15, step 1] value: 1 +Preview Button 2(0xd18a):(readwrite) (type=0x2) Enumeration [0,2,5,6,7] value: 0 +AEAF Lock Button 2(0xd18b):(readwrite) (type=0x2) Enumeration [0,5,6,7] value: 0 +Indicator Display(0xd18d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +Cell Kind Priority(0xd18e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Live View Mode(0xd1a0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 1 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 8, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: -2.7 stops (-32) +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash MRepeat Value(0xd1d0):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Flash MRepeat Count(0xd1d1):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 8 +Flash MRepeat Interval(0xd1d2):(readwrite) (type=0x2) Range [0 - 13, step 1] value: 9 +Flash Command Channel(0xd1d3):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Flash Command Self Mode(0xd1d4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Flash Command Self Compensation(0xd1d5):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Flash Command Self Value(0xd1d6):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Flash Command A Mode(0xd1d7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Flash Command A Compensation(0xd1d8):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Flash Command A Value(0xd1d9):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Flash Command B Mode(0xd1da):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Flash Command B Compensation(0xd1db):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Flash Command B Value(0xd1dc):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/autofocusdrive + Label: Drive Nikon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/actions/manualfocusdrive + Label: Drive Nikon DSLR Manual focus + Type: RANGE + Current: 0 + Bottom: -32767 + Top: 32767 + Step: 1 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1244830042 + Printable: Fri Jun 12 14:07:22 2009 +/main/settings/imagecomment + Label: Image Comment + Type: TEXT + Current: +/main/settings/imagecommentenable + Label: Enable Image Comment + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/recordingmedia + Label: Recording Media + Type: RADIO + Current: Card + Choice: 0 Card + Choice: 1 SDRAM +/main/settings/meterofftime + Label: Meter Off Time + Type: RADIO + Current: 6 seconds + Choice: 0 4 seconds + Choice: 1 6 seconds + Choice: 2 8 seconds + Choice: 3 16 seconds + Choice: 4 30 seconds + Choice: 5 1 minute + Choice: 6 5 minutes + Choice: 7 10 minutes + Choice: 8 30 minutes + Choice: 9 Unknown value 0009 +/main/settings/reversedial + Label: Reverse Command Dial + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/status/acpower + Label: AC Power + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/externalflash + Label: External Flash + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 60% +/main/status/orientation + Label: Camera Orientation + Type: RADIO + Current: 0' + Choice: 0 0' + Choice: 1 270' + Choice: 2 90' + Choice: 3 180' +/main/status/flashopen + Label: Flash Open + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/flashcharged + Label: Flash Charged + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/minfocallength + Label: Focal Length Minimum + Type: TEXT + Current: 28 mm +/main/status/maxfocallength + Label: Focal Length Maximum + Type: TEXT + Current: 28 mm +/main/status/apertureatminfocallength + Label: Maximum Aperture at Focal Length Minimum + Type: TEXT + Current: 3 mm +/main/status/apertureatmaxfocallength + Label: Maximum Aperture at Focal Length Maximum + Type: TEXT + Current: 3 mm +/main/status/lowlight + Label: Low Light + Type: RANGE + Current: 0 + Bottom: 0 + Top: 8 + Step: 1 +/main/status/lightmeter + Label: Light Meter + Type: RANGE + Current: -56 + Bottom: -60 + Top: 60 + Step: 1 +/main/status/aflocked + Label: AF Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/aelocked + Label: AE Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/fvlocked + Label: FV Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/imgsettings/imagequality + Label: Image Quality + Type: RADIO + Current: JPEG Fine + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF (Raw) + Choice: 4 NEF+Basic + Choice: 5 NEF+Normal + Choice: 6 NEF+Fine + Choice: 7 TIFF (RGB) +/main/imgsettings/imagesize + Label: Image Size + Type: RADIO + Current: 2144x1424 + Choice: 0 4288x2848 + Choice: 1 3216x2136 + Choice: 2 2144x1424 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 1250 + Choice: 0 100 + Choice: 1 125 + Choice: 2 160 + Choice: 3 200 + Choice: 4 250 + Choice: 5 320 + Choice: 6 400 + Choice: 7 500 + Choice: 8 640 + Choice: 9 800 + Choice: 10 1000 + Choice: 11 1250 + Choice: 12 1600 + Choice: 13 2000 + Choice: 14 2500 + Choice: 15 3200 + Choice: 16 4000 + Choice: 17 5000 + Choice: 18 6400 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Color Temperature + Choice: 0 Automatic + Choice: 1 Daylight + Choice: 2 Fluorescent + Choice: 3 Tungsten + Choice: 4 Flash + Choice: 5 Cloudy + Choice: 6 Shade + Choice: 7 Color Temperature + Choice: 8 Preset +/main/imgsettings/colorspace + Label: Color Space + Type: RADIO + Current: AdobeRGB + Choice: 0 sRGB + Choice: 1 AdobeRGB +/main/imgsettings/autoiso + Label: Auto ISO + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/imgsettings/autoisopadv + Label: Auto ISO PADV Time + Type: RADIO + Current: Unknown value 0015 + Choice: 0 1/125 + Choice: 1 1/60 + Choice: 2 1/30 + Choice: 3 1/15 + Choice: 4 1/8 + Choice: 5 1/4 + Choice: 6 1/2 + Choice: 7 1 + Choice: 8 2 + Choice: 9 4 + Choice: 10 8 + Choice: 11 15 + Choice: 12 30 + Choice: 13 Unknown value 000d + Choice: 14 Unknown value 000e + Choice: 15 Unknown value 000f + Choice: 16 Unknown value 0010 + Choice: 17 Unknown value 0011 + Choice: 18 Unknown value 0012 + Choice: 19 Unknown value 0013 + Choice: 20 Unknown value 0014 + Choice: 21 Unknown value 0015 + Choice: 22 Unknown value 0016 + Choice: 23 Unknown value 0017 + Choice: 24 Unknown value 0018 + Choice: 25 Unknown value 0019 + Choice: 26 Unknown value 001a +/main/capturesettings/longexpnr + Label: Long Exp Noise Reduction + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusmode2 + Label: Auto Focus Mode 2 + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/capturesettings/exposurecompensation2 + Label: Exposure Compensation + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Default + Choice: 0 Red-eye automatic + Choice: 1 Default + Choice: 2 Rear Curtain Sync + Slow Sync +/main/capturesettings/nikonflashmode + Label: Nikon Flash Mode + Type: RADIO + Current: iTTL + Choice: 0 iTTL + Choice: 1 Manual + Choice: 2 Commander + Choice: 3 Repeating +/main/capturesettings/flashcommandchannel + Label: Flash Command Channel + Type: RADIO + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 +/main/capturesettings/flashcommandselfmode + Label: Flash Command Self Mode + Type: RADIO + Current: TTL + Choice: 0 TTL + Choice: 1 Manual + Choice: 2 Off +/main/capturesettings/flashcommandselfcompensation + Label: Flash Command Self Compensation + Type: RADIO + Current: 0.0 + Choice: 0 -3.0 + Choice: 1 -2.7 + Choice: 2 -2.3 + Choice: 3 -2.0 + Choice: 4 -1.7 + Choice: 5 -1.3 + Choice: 6 -1.0 + Choice: 7 -0.7 + Choice: 8 -0.3 + Choice: 9 0.0 + Choice: 10 0.3 + Choice: 11 0.7 + Choice: 12 1.0 + Choice: 13 1.3 + Choice: 14 1.7 + Choice: 15 2.0 + Choice: 16 2.3 + Choice: 17 2.7 + Choice: 18 3.0 +/main/capturesettings/flashcommandselfvalue + Label: Flash Command Self Value + Type: RADIO + Current: Full + Choice: 0 Full + Choice: 1 1/1.3 + Choice: 2 1/1.7 + Choice: 3 1/2 + Choice: 4 1/2.5 + Choice: 5 1/3.2 + Choice: 6 1/4 + Choice: 7 1/5 + Choice: 8 1/6.4 + Choice: 9 1/8 + Choice: 10 1/10 + Choice: 11 1/13 + Choice: 12 1/16 + Choice: 13 1/20 + Choice: 14 1/25 + Choice: 15 1/32 + Choice: 16 1/40 + Choice: 17 1/50 + Choice: 18 1/64 + Choice: 19 1/80 + Choice: 20 1/100 + Choice: 21 1/128 +/main/capturesettings/flashcommandamode + Label: Flash Command A Mode + Type: RADIO + Current: TTL + Choice: 0 TTL + Choice: 1 Auto Aperture + Choice: 2 Manual + Choice: 3 Off +/main/capturesettings/flashcommandacompensation + Label: Flash Command A Compensation + Type: RADIO + Current: 0.0 + Choice: 0 -3.0 + Choice: 1 -2.7 + Choice: 2 -2.3 + Choice: 3 -2.0 + Choice: 4 -1.7 + Choice: 5 -1.3 + Choice: 6 -1.0 + Choice: 7 -0.7 + Choice: 8 -0.3 + Choice: 9 0.0 + Choice: 10 0.3 + Choice: 11 0.7 + Choice: 12 1.0 + Choice: 13 1.3 + Choice: 14 1.7 + Choice: 15 2.0 + Choice: 16 2.3 + Choice: 17 2.7 + Choice: 18 3.0 +/main/capturesettings/flashcommandavalue + Label: Flash Command A Value + Type: RADIO + Current: Full + Choice: 0 Full + Choice: 1 1/1.3 + Choice: 2 1/1.7 + Choice: 3 1/2 + Choice: 4 1/2.5 + Choice: 5 1/3.2 + Choice: 6 1/4 + Choice: 7 1/5 + Choice: 8 1/6.4 + Choice: 9 1/8 + Choice: 10 1/10 + Choice: 11 1/13 + Choice: 12 1/16 + Choice: 13 1/20 + Choice: 14 1/25 + Choice: 15 1/32 + Choice: 16 1/40 + Choice: 17 1/50 + Choice: 18 1/64 + Choice: 19 1/80 + Choice: 20 1/100 + Choice: 21 1/128 +/main/capturesettings/flashcommandbmode + Label: Flash Command B Mode + Type: RADIO + Current: TTL + Choice: 0 TTL + Choice: 1 Auto Aperture + Choice: 2 Manual + Choice: 3 Off +/main/capturesettings/flashcommandbcompensation + Label: Flash Command B Compensation + Type: RADIO + Current: 0.0 + Choice: 0 -3.0 + Choice: 1 -2.7 + Choice: 2 -2.3 + Choice: 3 -2.0 + Choice: 4 -1.7 + Choice: 5 -1.3 + Choice: 6 -1.0 + Choice: 7 -0.7 + Choice: 8 -0.3 + Choice: 9 0.0 + Choice: 10 0.3 + Choice: 11 0.7 + Choice: 12 1.0 + Choice: 13 1.3 + Choice: 14 1.7 + Choice: 15 2.0 + Choice: 16 2.3 + Choice: 17 2.7 + Choice: 18 3.0 +/main/capturesettings/flashcommandbvalue + Label: Flash Command B Value + Type: RADIO + Current: Full + Choice: 0 Full + Choice: 1 1/1.3 + Choice: 2 1/1.7 + Choice: 3 1/2 + Choice: 4 1/2.5 + Choice: 5 1/3.2 + Choice: 6 1/4 + Choice: 7 1/5 + Choice: 8 1/6.4 + Choice: 9 1/8 + Choice: 10 1/10 + Choice: 11 1/13 + Choice: 12 1/16 + Choice: 13 1/20 + Choice: 14 1/25 + Choice: 15 1/32 + Choice: 16 1/40 + Choice: 17 1/50 + Choice: 18 1/64 + Choice: 19 1/80 + Choice: 20 1/100 + Choice: 21 1/128 +/main/capturesettings/af-area-illumination + Label: AF Area Illumination + Type: RADIO + Current: On + Choice: 0 Auto + Choice: 1 Off + Choice: 2 On +/main/capturesettings/afbeep + Label: AF Beep Mode + Type: TOGGLE + Current: 1 +/main/capturesettings/f-number + Label: F-Number + Type: RADIO + Current: f/4.5 + Choice: 0 f/2.8 + Choice: 1 f/3.2 + Choice: 2 f/3.5 + Choice: 3 f/4 + Choice: 4 f/4.5 + Choice: 5 f/5 + Choice: 6 f/5.6 + Choice: 7 f/6.3 + Choice: 8 f/7.1 + Choice: 9 f/8 + Choice: 10 f/9 + Choice: 11 f/10 + Choice: 12 f/11 + Choice: 13 f/13 + Choice: 14 f/14 + Choice: 15 f/16 + Choice: 16 f/18 + Choice: 17 f/20 + Choice: 18 f/22 +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 28 + Bottom: 28 + Top: 28 + Step: 0.01 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: AF-S + Choice: 0 Manual + Choice: 1 AF-S + Choice: 2 AF-C +/main/capturesettings/expprogram + Label: Exposure Program + Type: RADIO + Current: M + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S +/main/capturesettings/capturemode + Label: Still Capture Mode + Type: RADIO + Current: Single Shot + Choice: 0 Single Shot + Choice: 1 Burst + Choice: 2 Continuous Low Speed + Choice: 3 Timer + Choice: 4 Mirror Up + Choice: 5 Quiet Release +/main/capturesettings/focusmetermode + Label: Focus Metering Mode + Type: RADIO + Current: Single Area + Choice: 0 Multi-spot + Choice: 1 Single Area + Choice: 2 Closest Subject +/main/capturesettings/exposuremetermode + Label: Exposure Metering Mode + Type: RADIO + Current: Multi Spot + Choice: 0 Center Weighted + Choice: 1 Multi Spot + Choice: 2 Center Spot +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 0.0040s + Choice: 0 0.0001s + Choice: 1 0.0002s + Choice: 2 0.0003s + Choice: 3 0.0004s + Choice: 4 0.0005s + Choice: 5 0.0006s + Choice: 6 0.0008s + Choice: 7 0.0010s + Choice: 8 0.0012s + Choice: 9 0.0015s + Choice: 10 0.0020s + Choice: 11 0.0025s + Choice: 12 0.0031s + Choice: 13 0.0040s + Choice: 14 0.0050s + Choice: 15 0.0062s + Choice: 16 0.0080s + Choice: 17 0.0100s + Choice: 18 0.0125s + Choice: 19 0.0166s + Choice: 20 0.0200s + Choice: 21 0.0250s + Choice: 22 0.0333s + Choice: 23 0.0400s + Choice: 24 0.0500s + Choice: 25 0.0666s + Choice: 26 0.0769s + Choice: 27 0.1000s + Choice: 28 0.1250s + Choice: 29 0.1666s + Choice: 30 0.2000s + Choice: 31 0.2500s + Choice: 32 0.3333s + Choice: 33 0.4000s + Choice: 34 0.5000s + Choice: 35 0.6250s + Choice: 36 0.7692s + Choice: 37 1.0000s + Choice: 38 1.3000s + Choice: 39 1.6000s + Choice: 40 2.0000s + Choice: 41 2.5000s + Choice: 42 3.0000s + Choice: 43 4.0000s + Choice: 44 5.0000s + Choice: 45 6.0000s + Choice: 46 8.0000s + Choice: 47 10.0000s + Choice: 48 13.0000s + Choice: 49 15.0000s + Choice: 50 20.0000s + Choice: 51 25.0000s + Choice: 52 30.0000s + Choice: 53 429496.7295s +/main/capturesettings/shutterspeed2 + Label: Shutter Speed 2 + Type: RADIO + Current: 1/250 + Choice: 0 1/8000 + Choice: 1 1/6400 + Choice: 2 1/5000 + Choice: 3 1/4000 + Choice: 4 1/3200 + Choice: 5 1/2500 + Choice: 6 1/2000 + Choice: 7 1/1600 + Choice: 8 1/1250 + Choice: 9 1/1000 + Choice: 10 1/800 + Choice: 11 1/640 + Choice: 12 1/500 + Choice: 13 1/400 + Choice: 14 1/320 + Choice: 15 1/250 + Choice: 16 1/200 + Choice: 17 1/160 + Choice: 18 1/125 + Choice: 19 1/100 + Choice: 20 1/80 + Choice: 21 1/60 + Choice: 22 1/50 + Choice: 23 1/40 + Choice: 24 1/30 + Choice: 25 1/25 + Choice: 26 1/20 + Choice: 27 1/15 + Choice: 28 1/13 + Choice: 29 1/10 + Choice: 30 1/8 + Choice: 31 1/6 + Choice: 32 1/5 + Choice: 33 1/4 + Choice: 34 1/3 + Choice: 35 10/25 + Choice: 36 1/2 + Choice: 37 10/16 + Choice: 38 10/13 + Choice: 39 1 + Choice: 40 13/10 + Choice: 41 16/10 + Choice: 42 2 + Choice: 43 25/10 + Choice: 44 3 + Choice: 45 4 + Choice: 46 5 + Choice: 47 6 + Choice: 48 8 + Choice: 49 10 + Choice: 50 13 + Choice: 51 15 + Choice: 52 20 + Choice: 53 25 + Choice: 54 30 + Choice: 55 65535/65534 + Choice: 56 65535/65535 +/main/capturesettings/focusareawrap + Label: Focus Area Wrap + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurelock + Label: Exposure Lock + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelaflmode + Label: AE-L/AF-L Mode + Type: RADIO + Current: AF Lock Hold + Choice: 0 AE/AF Lock + Choice: 1 AE Lock only + Choice: 2 AF Lock Only + Choice: 3 AF Lock Hold + Choice: 4 AF On + Choice: 5 Flash Level Lock + Choice: 6 Unknown value 0006 + Choice: 7 Unknown value 0007 + Choice: 8 Unknown value 0008 + Choice: 9 Unknown value 0009 + Choice: 10 Unknown value 000a + Choice: 11 Unknown value 000b + Choice: 12 Unknown value 000c + Choice: 13 Unknown value 000d + Choice: 14 Unknown value 000e + Choice: 15 Unknown value 000f + Choice: 16 Unknown value 0010 +/main/capturesettings/filenrsequencing + Label: File Number Sequencing + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/viewfindergrid + Label: Viewfinder Grid + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/imagerotationflag + Label: Image Rotation Flag + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nocfcardrelease + Label: Release without CF card + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/flashmodemanualpower + Label: Flash Mode Manual Power + Type: RADIO + Current: Full + Choice: 0 Full + Choice: 1 1/2 + Choice: 2 1/4 + Choice: 3 1/8 + Choice: 4 1/16 + Choice: 5 Unknown value 0005 + Choice: 6 Unknown value 0006 + Choice: 7 Unknown value 0007 + Choice: 8 Unknown value 0008 + Choice: 9 Unknown value 0009 + Choice: 10 Unknown value 000a + Choice: 11 Unknown value 000b + Choice: 12 Unknown value 000c + Choice: 13 Unknown value 000d + Choice: 14 Unknown value 000e + Choice: 15 Unknown value 000f + Choice: 16 Unknown value 0010 + Choice: 17 Unknown value 0011 + Choice: 18 Unknown value 0012 + Choice: 19 Unknown value 0013 + Choice: 20 Unknown value 0014 + Choice: 21 Unknown value 0015 +/main/capturesettings/autofocusarea + Label: Auto Focus Area + Type: RADIO + Current: Right + Choice: 0 Centre + Choice: 1 Top + Choice: 2 Bottom + Choice: 3 Left + Choice: 4 Right + Choice: 5 Unknown value 0005 + Choice: 6 Unknown value 0006 + Choice: 7 Unknown value 0007 + Choice: 8 Unknown value 0008 + Choice: 9 Unknown value 0009 + Choice: 10 Unknown value 000a + Choice: 11 Unknown value 000b + Choice: 12 Unknown value 000c + Choice: 13 Unknown value 000d + Choice: 14 Unknown value 000e + Choice: 15 Unknown value 000f + Choice: 16 Unknown value 0010 + Choice: 17 Unknown value 0011 + Choice: 18 Unknown value 0012 + Choice: 19 Unknown value 0013 + Choice: 20 Unknown value 0014 + Choice: 21 Unknown value 0015 + Choice: 22 Unknown value 0016 + Choice: 23 Unknown value 0017 + Choice: 24 Unknown value 0018 + Choice: 25 Unknown value 0019 + Choice: 26 Unknown value 001a + Choice: 27 Unknown value 001b + Choice: 28 Unknown value 001c + Choice: 29 Unknown value 001d + Choice: 30 Unknown value 001e + Choice: 31 Unknown value 001f + Choice: 32 Unknown value 0020 + Choice: 33 Unknown value 0021 + Choice: 34 Unknown value 0022 + Choice: 35 Unknown value 0023 + Choice: 36 Unknown value 0024 + Choice: 37 Unknown value 0025 + Choice: 38 Unknown value 0026 + Choice: 39 Unknown value 0027 + Choice: 40 Unknown value 0028 + Choice: 41 Unknown value 0029 + Choice: 42 Unknown value 002a + Choice: 43 Unknown value 002b + Choice: 44 Unknown value 002c + Choice: 45 Unknown value 002d + Choice: 46 Unknown value 002e + Choice: 47 Unknown value 002f + Choice: 48 Unknown value 0030 + Choice: 49 Unknown value 0031 + Choice: 50 Unknown value 0032 + Choice: 51 Unknown value 0033 +/main/capturesettings/flashexposurecompensation + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -3 + Top: 1 + Step: 0.333333 +/main/capturesettings/bracketing + Label: Bracketing + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/evstep + Label: EV Step + Type: RADIO + Current: 1/3 + Choice: 0 1/3 + Choice: 1 1/2 + Choice: 2 Unknown value 0002 +/main/capturesettings/bracketset + Label: Bracket Set + Type: RADIO + Current: AE & Flash + Choice: 0 AE & Flash + Choice: 1 AE only + Choice: 2 Flash only + Choice: 3 WB bracketing + Choice: 4 ADL bracketing +/main/capturesettings/bracketorder + Label: Bracket Order + Type: RADIO + Current: MTR > Under + Choice: 0 MTR > Under + Choice: 1 Under > MTR +/main/capturesettings/burstnumber + Label: Burst Number + Type: RANGE + Current: 1 + Bottom: 1 + Top: 100 + Step: 1 +/main/capturesettings/burstinterval + Label: Burst Interval + Type: RADIO + Current: 0.001s + Choice: 0 0.001s + Choice: 1 0.002s + Choice: 2 0.003s + Choice: 3 0.004s + Choice: 4 0.005s + Choice: 5 0.006s + Choice: 6 0.007s + Choice: 7 0.008s + Choice: 8 0.009s + Choice: 9 0.010s + Choice: 10 0.011s + Choice: 11 0.012s + Choice: 12 0.013s + Choice: 13 0.014s + Choice: 14 0.015s + Choice: 15 0.016s + Choice: 16 0.017s + Choice: 17 0.018s + Choice: 18 0.019s + Choice: 19 0.020s + Choice: 20 0.021s + Choice: 21 0.022s + Choice: 22 0.023s + Choice: 23 0.024s + Choice: 24 0.025s + Choice: 25 0.026s + Choice: 26 0.027s + Choice: 27 0.028s + Choice: 28 0.029s + Choice: 29 0.030s + Choice: 30 0.031s + Choice: 31 0.032s + Choice: 32 0.033s + Choice: 33 0.034s + Choice: 34 0.035s + Choice: 35 0.036s + Choice: 36 0.037s + Choice: 37 0.038s + Choice: 38 0.039s + Choice: 39 0.040s + Choice: 40 0.041s + Choice: 41 0.042s + Choice: 42 0.043s + Choice: 43 0.044s + Choice: 44 0.045s + Choice: 45 0.046s + Choice: 46 0.047s + Choice: 47 0.048s + Choice: 48 0.049s + Choice: 49 0.050s + Choice: 50 0.051s + Choice: 51 0.052s + Choice: 52 0.053s + Choice: 53 0.054s + Choice: 54 0.055s + Choice: 55 0.056s + Choice: 56 0.057s + Choice: 57 0.058s + Choice: 58 0.059s + Choice: 59 0.060s + Choice: 60 0.061s + Choice: 61 0.062s + Choice: 62 0.063s + Choice: 63 0.064s + Choice: 64 0.065s + Choice: 65 0.066s + Choice: 66 0.067s + Choice: 67 0.068s + Choice: 68 0.069s + Choice: 69 0.070s + Choice: 70 0.071s + Choice: 71 0.072s + Choice: 72 0.073s + Choice: 73 0.074s + Choice: 74 0.075s + Choice: 75 0.076s + Choice: 76 0.077s + Choice: 77 0.078s + Choice: 78 0.079s + Choice: 79 0.080s + Choice: 80 0.081s + Choice: 81 0.082s + Choice: 82 0.083s + Choice: 83 0.084s + Choice: 84 0.085s + Choice: 85 0.086s + Choice: 86 0.087s + Choice: 87 0.088s + Choice: 88 0.089s + Choice: 89 0.090s + Choice: 90 0.091s + Choice: 91 0.092s + Choice: 92 0.093s + Choice: 93 0.094s + Choice: 94 0.095s + Choice: 95 0.096s + Choice: 96 0.097s + Choice: 97 0.098s + Choice: 98 0.099s + Choice: 99 0.100s +/main/capturesettings/autowhitebias + Label: Auto White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/tungstenwhitebias + Label: Tungsten White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/flourescentwhitebias + Label: Fluorescent White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/daylightwhitebias + Label: Daylight White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/flashwhitebias + Label: Flash White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/cloudywhitebias + Label: Cloudy White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/shadewhitebias + Label: Shady White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/whitebiaspresetno + Label: White Balance Bias Preset Nr + Type: RADIO + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/capturesettings/whitebiaspreset0 + Label: White Balance Bias Preset 0 + Type: TEXT + Current: 26214735 +/main/capturesettings/whitebiaspreset1 + Label: White Balance Bias Preset 1 + Type: TEXT + Current: 26214735 +/main/capturesettings/whitebiaspreset2 + Label: White Balance Bias Preset 2 + Type: TEXT + Current: 26214735 +/main/capturesettings/whitebiaspreset3 + Label: White Balance Bias Preset 3 + Type: TEXT + Current: 26214735 +/main/capturesettings/whitebiaspreset4 + Label: White Balance Bias Preset 4 + Type: TEXT + Current: 26214735 +/main/capturesettings/selftimerdelay + Label: Selftimer Delay + Type: RADIO + Current: 10 seconds + Choice: 0 2 seconds + Choice: 1 5 seconds + Choice: 2 10 seconds + Choice: 3 20 seconds +/main/capturesettings/centerweightsize + Label: Center Weight Area + Type: RADIO + Current: 8 mm + Choice: 0 6 mm + Choice: 1 8 mm + Choice: 2 10 mm + Choice: 3 12 mm + Choice: 4 Average +/main/capturesettings/flashshutterspeed + Label: Flash Shutter Speed + Type: RADIO + Current: 1/60 + Choice: 0 1/60 + Choice: 1 1/30 + Choice: 2 1/15 + Choice: 3 1/8 + Choice: 4 1/4 + Choice: 5 1/2 + Choice: 6 1 + Choice: 7 2 + Choice: 8 4 + Choice: 9 8 + Choice: 10 15 + Choice: 11 30 +/main/other/5001 + Label: Battery Level + Type: MENU + Current: 60 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 + Choice: 50 50 + Choice: 51 51 + Choice: 52 52 + Choice: 53 53 + Choice: 54 54 + Choice: 55 55 + Choice: 56 56 + Choice: 57 57 + Choice: 58 58 + Choice: 59 59 + Choice: 60 60 + Choice: 61 61 + Choice: 62 62 + Choice: 63 63 + Choice: 64 64 + Choice: 65 65 + Choice: 66 66 + Choice: 67 67 + Choice: 68 68 + Choice: 69 69 + Choice: 70 70 + Choice: 71 71 + Choice: 72 72 + Choice: 73 73 + Choice: 74 74 + Choice: 75 75 + Choice: 76 76 + Choice: 77 77 + Choice: 78 78 + Choice: 79 79 + Choice: 80 80 + Choice: 81 81 + Choice: 82 82 + Choice: 83 83 + Choice: 84 84 + Choice: 85 85 + Choice: 86 86 + Choice: 87 87 + Choice: 88 88 + Choice: 89 89 + Choice: 90 90 + Choice: 91 91 + Choice: 92 92 + Choice: 93 93 + Choice: 94 94 + Choice: 95 95 + Choice: 96 96 + Choice: 97 97 + Choice: 98 98 + Choice: 99 99 + Choice: 100 100 +/main/other/5003 + Label: Image Size + Type: MENU + Current: 2144x1424 + Choice: 0 4288x2848 + Choice: 1 3216x2136 + Choice: 2 2144x1424 +/main/other/5004 + Label: Compression Setting + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/5005 + Label: White Balance + Type: MENU + Current: 32786 + Choice: 0 2 + Choice: 1 4 + Choice: 2 5 + Choice: 3 6 + Choice: 4 7 + Choice: 5 32784 + Choice: 6 32785 + Choice: 7 32786 + Choice: 8 32787 +/main/other/5007 + Label: F-Number + Type: MENU + Current: 450 + Choice: 0 280 + Choice: 1 320 + Choice: 2 350 + Choice: 3 400 + Choice: 4 450 + Choice: 5 500 + Choice: 6 560 + Choice: 7 630 + Choice: 8 710 + Choice: 9 800 + Choice: 10 900 + Choice: 11 1000 + Choice: 12 1100 + Choice: 13 1300 + Choice: 14 1400 + Choice: 15 1600 + Choice: 16 1800 + Choice: 17 2000 + Choice: 18 2200 +/main/other/5008 + Label: Focal Length + Type: MENU + Current: 2800 + Choice: 0 2800 +/main/other/500a + Label: Focus Mode + Type: MENU + Current: 32784 + Choice: 0 1 + Choice: 1 32784 + Choice: 2 32785 +/main/other/500b + Label: Exposure Metering Mode + Type: MENU + Current: 3 + Choice: 0 2 + Choice: 1 3 + Choice: 2 4 +/main/other/500c + Label: Flash Mode + Type: MENU + Current: 32784 + Choice: 0 4 + Choice: 1 32784 + Choice: 2 32786 +/main/other/500d + Label: Exposure Time + Type: MENU + Current: 40 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 8 + Choice: 7 10 + Choice: 8 12 + Choice: 9 15 + Choice: 10 20 + Choice: 11 25 + Choice: 12 31 + Choice: 13 40 + Choice: 14 50 + Choice: 15 62 + Choice: 16 80 + Choice: 17 100 + Choice: 18 125 + Choice: 19 166 + Choice: 20 200 + Choice: 21 250 + Choice: 22 333 + Choice: 23 400 + Choice: 24 500 + Choice: 25 666 + Choice: 26 769 + Choice: 27 1000 + Choice: 28 1250 + Choice: 29 1666 + Choice: 30 2000 + Choice: 31 2500 + Choice: 32 3333 + Choice: 33 4000 + Choice: 34 5000 + Choice: 35 6250 + Choice: 36 7692 + Choice: 37 10000 + Choice: 38 13000 + Choice: 39 16000 + Choice: 40 20000 + Choice: 41 25000 + Choice: 42 30000 + Choice: 43 40000 + Choice: 44 50000 + Choice: 45 60000 + Choice: 46 80000 + Choice: 47 100000 + Choice: 48 130000 + Choice: 49 150000 + Choice: 50 200000 + Choice: 51 250000 + Choice: 52 300000 + Choice: 53 -1 +/main/other/500e + Label: Exposure Program Mode + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 +/main/other/500f + Label: Exposure Index (film speed ISO) + Type: MENU + Current: 1250 + Choice: 0 100 + Choice: 1 125 + Choice: 2 160 + Choice: 3 200 + Choice: 4 250 + Choice: 5 320 + Choice: 6 400 + Choice: 7 500 + Choice: 8 640 + Choice: 9 800 + Choice: 10 1000 + Choice: 11 1250 + Choice: 12 1600 + Choice: 13 2000 + Choice: 14 2500 + Choice: 15 3200 + Choice: 16 4000 + Choice: 17 5000 + Choice: 18 6400 +/main/other/5010 + Label: Exposure Bias Compensation + Type: MENU + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/other/5011 + Label: Date & Time + Type: TEXT + Current: 20090612T130753 +/main/other/5013 + Label: Still Capture Mode + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 32784 + Choice: 3 32785 + Choice: 4 32786 + Choice: 5 32790 +/main/other/5018 + Label: Burst Number + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 + Choice: 11 12 + Choice: 12 13 + Choice: 13 14 + Choice: 14 15 + Choice: 15 16 + Choice: 16 17 + Choice: 17 18 + Choice: 18 19 + Choice: 19 20 + Choice: 20 21 + Choice: 21 22 + Choice: 22 23 + Choice: 23 24 + Choice: 24 25 + Choice: 25 26 + Choice: 26 27 + Choice: 27 28 + Choice: 28 29 + Choice: 29 30 + Choice: 30 31 + Choice: 31 32 + Choice: 32 33 + Choice: 33 34 + Choice: 34 35 + Choice: 35 36 + Choice: 36 37 + Choice: 37 38 + Choice: 38 39 + Choice: 39 40 + Choice: 40 41 + Choice: 41 42 + Choice: 42 43 + Choice: 43 44 + Choice: 44 45 + Choice: 45 46 + Choice: 46 47 + Choice: 47 48 + Choice: 48 49 + Choice: 49 50 + Choice: 50 51 + Choice: 51 52 + Choice: 52 53 + Choice: 53 54 + Choice: 54 55 + Choice: 55 56 + Choice: 56 57 + Choice: 57 58 + Choice: 58 59 + Choice: 59 60 + Choice: 60 61 + Choice: 61 62 + Choice: 62 63 + Choice: 63 64 + Choice: 64 65 + Choice: 65 66 + Choice: 66 67 + Choice: 67 68 + Choice: 68 69 + Choice: 69 70 + Choice: 70 71 + Choice: 71 72 + Choice: 72 73 + Choice: 73 74 + Choice: 74 75 + Choice: 75 76 + Choice: 76 77 + Choice: 77 78 + Choice: 78 79 + Choice: 79 80 + Choice: 80 81 + Choice: 81 82 + Choice: 82 83 + Choice: 83 84 + Choice: 84 85 + Choice: 85 86 + Choice: 86 87 + Choice: 87 88 + Choice: 88 89 + Choice: 89 90 + Choice: 90 91 + Choice: 91 92 + Choice: 92 93 + Choice: 93 94 + Choice: 94 95 + Choice: 95 96 + Choice: 96 97 + Choice: 97 98 + Choice: 98 99 + Choice: 99 100 +/main/other/501c + Label: Focus Metering Mode + Type: MENU + Current: 32784 + Choice: 0 2 + Choice: 1 32784 + Choice: 2 32785 +/main/other/501e + Label: Artist + Type: TEXT + Current: (null) +/main/other/501f + Label: Copyright Info + Type: TEXT + Current: (null) +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d010 + Label: Shooting Bank + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d011 + Label: Shooting Bank Name A + Type: TEXT + Current: +/main/other/d012 + Label: Shooting Bank Name B + Type: TEXT + Current: +/main/other/d013 + Label: Shooting Bank Name C + Type: TEXT + Current: +/main/other/d014 + Label: Shooting Bank Name D + Type: TEXT + Current: +/main/other/d015 + Label: Reset Bank 0 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d016 + Label: Raw Compression + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d017 + Label: Auto White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d018 + Label: Tungsten White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d019 + Label: Fluorescent White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01a + Label: Daylight White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01b + Label: Flash White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01c + Label: Cloudy White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01d + Label: Shady White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01e + Label: White Balance Colour Temperature + Type: MENU + Current: 15 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 +/main/other/d01f + Label: White Balance Preset Number + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d020 + Label: White Balance Preset Name 0 + Type: TEXT + Current: +/main/other/d021 + Label: White Balance Preset Name 1 + Type: TEXT + Current: +/main/other/d022 + Label: White Balance Preset Name 2 + Type: TEXT + Current: +/main/other/d023 + Label: White Balance Preset Name 3 + Type: TEXT + Current: +/main/other/d024 + Label: White Balance Preset Name 4 + Type: TEXT + Current: +/main/other/d025 + Label: White Balance Preset Value 0 + Type: TEXT + Current: 26214735 +/main/other/d026 + Label: White Balance Preset Value 1 + Type: TEXT + Current: 26214735 +/main/other/d027 + Label: White Balance Preset Value 2 + Type: TEXT + Current: 26214735 +/main/other/d028 + Label: White Balance Preset Value 3 + Type: TEXT + Current: 26214735 +/main/other/d029 + Label: White Balance Preset Value 4 + Type: TEXT + Current: 26214735 +/main/other/d02e + Label: Lens Focal Length (Non CPU) + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 +/main/other/d02f + Label: Lens Maximum Aperture (Non CPU) + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 +/main/other/d031 + Label: JPEG Compression Policy + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d032 + Label: Color Space + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d040 + Label: PTP_DPC_NIKON_CSMMenuBankSelect + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d041 + Label: Menu Bank Name A + Type: TEXT + Current: +/main/other/d042 + Label: Menu Bank Name B + Type: TEXT + Current: +/main/other/d043 + Label: Menu Bank Name C + Type: TEXT + Current: +/main/other/d044 + Label: Menu Bank Name D + Type: TEXT + Current: +/main/other/d045 + Label: Reset Menu Bank + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d048 + Label: PTP_DPC_NIKON_A1AFCModePriority + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d049 + Label: PTP_DPC_NIKON_A2AFSModePriority + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d04b + Label: PTP_DPC_NIKON_A4AFActivation + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d04f + Label: Focus Area Wrap + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d050 + Label: Vertical AF On + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +/main/other/d051 + Label: AF Lock On + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d053 + Label: Enable Copyright + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d054 + Label: Auto ISO + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d055 + Label: Exposure ISO Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d056 + Label: Exposure Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d057 + Label: Exposure Compensation (EV) + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d058 + Label: Exposure Compensation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d059 + Label: Centre Weight Area + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d05a + Label: Exposure Base Matrix + Type: MENU + Current: 0 + Choice: 0 -6 + Choice: 1 -5 + Choice: 2 -4 + Choice: 3 -3 + Choice: 4 -2 + Choice: 5 -1 + Choice: 6 0 + Choice: 7 1 + Choice: 8 2 + Choice: 9 3 + Choice: 10 4 + Choice: 11 5 + Choice: 12 6 +/main/other/d05b + Label: Exposure Base Center + Type: MENU + Current: 0 + Choice: 0 -6 + Choice: 1 -5 + Choice: 2 -4 + Choice: 3 -3 + Choice: 4 -2 + Choice: 5 -1 + Choice: 6 0 + Choice: 7 1 + Choice: 8 2 + Choice: 9 3 + Choice: 10 4 + Choice: 11 5 + Choice: 12 6 +/main/other/d05c + Label: Exposure Base Spot + Type: MENU + Current: 0 + Choice: 0 -6 + Choice: 1 -5 + Choice: 2 -4 + Choice: 3 -3 + Choice: 4 -2 + Choice: 5 -1 + Choice: 6 0 + Choice: 7 1 + Choice: 8 2 + Choice: 9 3 + Choice: 10 4 + Choice: 11 5 + Choice: 12 6 +/main/other/d05e + Label: Exposure Lock + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d05f + Label: Focus Lock + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 +/main/other/d062 + Label: Auto Meter Off Time + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 +/main/other/d063 + Label: Self Timer Delay + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d065 + Label: Img Conf Time + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d067 + Label: Angle Level + Type: TEXT + Current: 23589118 +/main/other/d068 + Label: Shooting Speed + Type: MENU + Current: 4 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +/main/other/d069 + Label: Maximum Shots + Type: MENU + Current: 100 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 + Choice: 11 12 + Choice: 12 13 + Choice: 13 14 + Choice: 14 15 + Choice: 15 16 + Choice: 16 17 + Choice: 17 18 + Choice: 18 19 + Choice: 19 20 + Choice: 20 21 + Choice: 21 22 + Choice: 22 23 + Choice: 23 24 + Choice: 24 25 + Choice: 25 26 + Choice: 26 27 + Choice: 27 28 + Choice: 28 29 + Choice: 29 30 + Choice: 30 31 + Choice: 31 32 + Choice: 32 33 + Choice: 33 34 + Choice: 34 35 + Choice: 35 36 + Choice: 36 37 + Choice: 37 38 + Choice: 38 39 + Choice: 39 40 + Choice: 40 41 + Choice: 41 42 + Choice: 42 43 + Choice: 43 44 + Choice: 44 45 + Choice: 45 46 + Choice: 46 47 + Choice: 47 48 + Choice: 48 49 + Choice: 49 50 + Choice: 50 51 + Choice: 51 52 + Choice: 52 53 + Choice: 53 54 + Choice: 54 55 + Choice: 55 56 + Choice: 56 57 + Choice: 57 58 + Choice: 58 59 + Choice: 59 60 + Choice: 60 61 + Choice: 61 62 + Choice: 62 63 + Choice: 63 64 + Choice: 64 65 + Choice: 65 66 + Choice: 66 67 + Choice: 67 68 + Choice: 68 69 + Choice: 69 70 + Choice: 70 71 + Choice: 71 72 + Choice: 72 73 + Choice: 73 74 + Choice: 74 75 + Choice: 75 76 + Choice: 76 77 + Choice: 77 78 + Choice: 78 79 + Choice: 79 80 + Choice: 80 81 + Choice: 81 82 + Choice: 82 83 + Choice: 83 84 + Choice: 84 85 + Choice: 85 86 + Choice: 86 87 + Choice: 87 88 + Choice: 88 89 + Choice: 89 90 + Choice: 90 91 + Choice: 91 92 + Choice: 92 93 + Choice: 93 94 + Choice: 94 95 + Choice: 95 96 + Choice: 96 97 + Choice: 97 98 + Choice: 98 99 + Choice: 99 100 +/main/other/d06a + Label: Exposure delay mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d06b + Label: Long Exposure Noise Reduction + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d06c + Label: File Number Sequencing + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d06f + Label: LCD Illumination + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d070 + Label: High ISO noise reduction + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d071 + Label: On screen tips + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d072 + Label: Artist Name + Type: TEXT + Current: (null) +/main/other/d073 + Label: Copyright Information + Type: TEXT + Current: (null) +/main/other/d074 + Label: Flash Sync. Speed + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 +/main/other/d075 + Label: Flash Shutter Speed + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 +/main/other/d077 + Label: Modeling Flash + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d078 + Label: Bracket Set + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d079 + Label: Manual Mode Bracketing + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d07a + Label: Bracket Order + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d080 + Label: Center Button Shooting Mode + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d081 + Label: Center Button Playback Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d082 + Label: Multiselector + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d083 + Label: Photo Info. Playback + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d084 + Label: Assign Func. Button + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 +/main/other/d085 + Label: Customise Command Dials + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d086 + Label: Reverse Command Dial + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d087 + Label: Aperture Setting + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d088 + Label: Menus and Playback + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d089 + Label: Buttons and Dials + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d08a + Label: No CF Card Release + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d08b + Label: Center Button Zoom Ratio + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d08c + Label: Function Button 2 + Type: MENU + Current: 5 + Choice: 0 0 + Choice: 1 2 + Choice: 2 5 + Choice: 3 6 + Choice: 4 7 +/main/other/d08d + Label: AF Area Point + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d090 + Label: Image Comment String + Type: TEXT + Current: +/main/other/d091 + Label: Image Comment Enable + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d092 + Label: Image Rotation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d093 + Label: Manual Set Lens Number + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 +/main/other/d094 + Label: PTP Property 0xd094 + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d095 + Label: PTP Property 0xd095 + Type: MENU + Current: 0 + Choice: 0 -20 + Choice: 1 -19 + Choice: 2 -18 + Choice: 3 -17 + Choice: 4 -16 + Choice: 5 -15 + Choice: 6 -14 + Choice: 7 -13 + Choice: 8 -12 + Choice: 9 -11 + Choice: 10 -10 + Choice: 11 -9 + Choice: 12 -8 + Choice: 13 -7 + Choice: 14 -6 + Choice: 15 -5 + Choice: 16 -4 + Choice: 17 -3 + Choice: 18 -2 + Choice: 19 -1 + Choice: 20 0 + Choice: 21 1 + Choice: 22 2 + Choice: 23 3 + Choice: 24 4 + Choice: 25 5 + Choice: 26 6 + Choice: 27 7 + Choice: 28 8 + Choice: 29 9 + Choice: 30 10 + Choice: 31 11 + Choice: 32 12 + Choice: 33 13 + Choice: 34 14 + Choice: 35 15 + Choice: 36 16 + Choice: 37 17 + Choice: 38 18 + Choice: 39 19 + Choice: 40 20 +/main/other/d096 + Label: PTP Property 0xd096 + Type: MENU + Current: 21 + Choice: 0 -20 + Choice: 1 -19 + Choice: 2 -18 + Choice: 3 -17 + Choice: 4 -16 + Choice: 5 -15 + Choice: 6 -14 + Choice: 7 -13 + Choice: 8 -12 + Choice: 9 -11 + Choice: 10 -10 + Choice: 11 -9 + Choice: 12 -8 + Choice: 13 -7 + Choice: 14 -6 + Choice: 15 -5 + Choice: 16 -4 + Choice: 17 -3 + Choice: 18 -2 + Choice: 19 -1 + Choice: 20 0 + Choice: 21 1 + Choice: 22 2 + Choice: 23 3 + Choice: 24 4 + Choice: 25 5 + Choice: 26 6 + Choice: 27 7 + Choice: 28 8 + Choice: 29 9 + Choice: 30 10 + Choice: 31 11 + Choice: 32 12 + Choice: 33 13 + Choice: 34 14 + Choice: 35 15 + Choice: 36 16 + Choice: 37 17 + Choice: 38 18 + Choice: 39 19 + Choice: 40 20 + Choice: 41 21 +/main/other/d097 + Label: PTP Property 0xd097 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 +/main/other/d098 + Label: PTP Property 0xd098 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 + Choice: 50 50 + Choice: 51 51 + Choice: 52 52 + Choice: 53 53 + Choice: 54 54 + Choice: 55 55 + Choice: 56 56 + Choice: 57 57 + Choice: 58 58 + Choice: 59 59 + Choice: 60 60 + Choice: 61 61 + Choice: 62 62 + Choice: 63 63 + Choice: 64 64 + Choice: 65 65 + Choice: 66 66 + Choice: 67 67 + Choice: 68 68 + Choice: 69 69 + Choice: 70 70 + Choice: 71 71 + Choice: 72 72 + Choice: 73 73 + Choice: 74 74 + Choice: 75 75 + Choice: 76 76 + Choice: 77 77 + Choice: 78 78 + Choice: 79 79 + Choice: 80 80 + Choice: 81 81 + Choice: 82 82 + Choice: 83 83 + Choice: 84 84 + Choice: 85 85 + Choice: 86 86 + Choice: 87 87 + Choice: 88 88 + Choice: 89 89 + Choice: 90 90 + Choice: 91 91 + Choice: 92 92 + Choice: 93 93 + Choice: 94 94 + Choice: 95 95 + Choice: 96 96 + Choice: 97 97 + Choice: 98 98 + Choice: 99 99 + Choice: 100 100 +/main/other/d099 + Label: PTP Property 0xd099 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 +/main/other/d09a + Label: PTP Property 0xd09a + Type: MENU + Current: 20 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 +/main/other/d09b + Label: PTP Property 0xd09b + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0a0 + Label: Movie Screen Size + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d0a2 + Label: PTP Property 0xd0a2 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d0a3 + Label: PTP Property 0xd0a3 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0c0 + Label: Bracketing Enable + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0c1 + Label: Exposure Bracketing Step + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d0c2 + Label: Exposure Bracketing Program + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d0c3 + Label: Auto Exposure Bracket Count + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 +/main/other/d0c4 + Label: White Balance Bracket Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d0c5 + Label: White Balance Bracket Program + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d0c6 + Label: PTP Property 0xd0c6 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d0c7 + Label: PTP Property 0xd0c7 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d0e0 + Label: Lens ID + Type: TEXT + Current: 62 +/main/other/d0e1 + Label: Lens Sort + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d0e2 + Label: Lens Type + Type: TEXT + Current: 1 +/main/other/d0e3 + Label: Min. Focal Length + Type: TEXT + Current: 2800 +/main/other/d0e4 + Label: Max. Focal Length + Type: TEXT + Current: 2800 +/main/other/d0e5 + Label: Max. Aperture at Min. Focal Length + Type: TEXT + Current: 280 +/main/other/d0e6 + Label: Max. Aperture at Max. Focal Length + Type: TEXT + Current: 280 +/main/other/d0f2 + Label: Auto Off Photo + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d0f3 + Label: Auto Off Menu + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d0f4 + Label: Auto Off Info + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d100 + Label: Nikon Exposure Time + Type: MENU + Current: 65786 + Choice: 0 73536 + Choice: 1 71936 + Choice: 2 70536 + Choice: 3 69536 + Choice: 4 68736 + Choice: 5 68036 + Choice: 6 67536 + Choice: 7 67136 + Choice: 8 66786 + Choice: 9 66536 + Choice: 10 66336 + Choice: 11 66176 + Choice: 12 66036 + Choice: 13 65936 + Choice: 14 65856 + Choice: 15 65786 + Choice: 16 65736 + Choice: 17 65696 + Choice: 18 65661 + Choice: 19 65636 + Choice: 20 65616 + Choice: 21 65596 + Choice: 22 65586 + Choice: 23 65576 + Choice: 24 65566 + Choice: 25 65561 + Choice: 26 65556 + Choice: 27 65551 + Choice: 28 65549 + Choice: 29 65546 + Choice: 30 65544 + Choice: 31 65542 + Choice: 32 65541 + Choice: 33 65540 + Choice: 34 65539 + Choice: 35 655385 + Choice: 36 65538 + Choice: 37 655376 + Choice: 38 655373 + Choice: 39 65537 + Choice: 40 851978 + Choice: 41 1048586 + Choice: 42 131073 + Choice: 43 1638410 + Choice: 44 196609 + Choice: 45 262145 + Choice: 46 327681 + Choice: 47 393217 + Choice: 48 524289 + Choice: 49 655361 + Choice: 50 851969 + Choice: 51 983041 + Choice: 52 1310721 + Choice: 53 1638401 + Choice: 54 1966081 + Choice: 55 -2 + Choice: 56 -1 +/main/other/d101 + Label: AC Power + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d102 + Label: Warning Status + Type: TEXT + Current: 0 +/main/other/d103 + Label: Maximum Shots + Type: MENU + Current: 11 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 +/main/other/d104 + Label: AF Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d105 + Label: AE Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d106 + Label: FV Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d108 + Label: Active AF Sensor + Type: MENU + Current: 4 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 + Choice: 50 50 + Choice: 51 51 +/main/other/d109 + Label: Flexible Program + Type: RANGE + Current: 0 + Bottom: -30 + Top: 30 + Step: 2 +/main/other/d10b + Label: Recording Media + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d10c + Label: USB Speed + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d10d + Label: CCD Serial Number + Type: TEXT + Current: +/main/other/d10e + Label: Camera Orientation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d114 + Label: Illum Setting + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d120 + Label: External Flash Attached + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d121 + Label: External Flash Status + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d122 + Label: External Flash Sort + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d124 + Label: External Flash Compensation + Type: MENU + Current: 0 + Choice: 0 -18 + Choice: 1 -17 + Choice: 2 -16 + Choice: 3 -15 + Choice: 4 -14 + Choice: 5 -13 + Choice: 6 -12 + Choice: 7 -11 + Choice: 8 -10 + Choice: 9 -9 + Choice: 10 -8 + Choice: 11 -7 + Choice: 12 -6 + Choice: 13 -5 + Choice: 14 -4 + Choice: 15 -3 + Choice: 16 -2 + Choice: 17 -1 + Choice: 18 0 + Choice: 19 1 + Choice: 20 2 + Choice: 21 3 + Choice: 22 4 + Choice: 23 5 + Choice: 24 6 + Choice: 25 7 + Choice: 26 8 + Choice: 27 9 + Choice: 28 10 + Choice: 29 11 + Choice: 30 12 + Choice: 31 13 + Choice: 32 14 + Choice: 33 15 + Choice: 34 16 + Choice: 35 17 + Choice: 36 18 +/main/other/d125 + Label: External Flash Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d126 + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -18 + Top: 6 + Step: 2 +/main/other/d148 + Label: Slot 2 Save Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d149 + Label: Raw Bit Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d14e + Label: ISO Auto Time + Type: MENU + Current: 4 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d14f + Label: Flourescent Type + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +/main/other/d150 + Label: Tune Colour Temperature + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d151 + Label: Tune Preset 0 + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d152 + Label: Tune Preset 1 + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d153 + Label: Tune Preset 2 + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d154 + Label: Tune Preset 3 + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d155 + Label: Tune Preset 4 + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d156 + Label: PTP Property 0xd156 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d160 + Label: AF Beep Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d163 + Label: AF Assist Lamp + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d164 + Label: Auto ISO P/A/DVP Setting + Type: MENU + Current: 21 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 +/main/other/d166 + Label: AF Area Illumination + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d167 + Label: Flash Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d16c + Label: Viewfinder Grid Display + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d16d + Label: Flash Mode Manual Power + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 +/main/other/d181 + Label: Warning Display + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d182 + Label: Battery Cell Kind + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d183 + Label: ISO Auto High Limit + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d184 + Label: Dynamic AF Area + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d187 + Label: Info Disp Setting + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d189 + Label: Preview Button + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 +/main/other/d18a + Label: Preview Button 2 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 2 + Choice: 2 5 + Choice: 3 6 + Choice: 4 7 +/main/other/d18b + Label: AEAF Lock Button 2 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 5 + Choice: 2 6 + Choice: 3 7 +/main/other/d18d + Label: Indicator Display + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d18e + Label: Cell Kind Priority + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1a0 + Label: Live View Mode + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d1a2 + Label: Live View Status + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1a3 + Label: Live View Image Zoom Ratio + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +/main/other/d1a4 + Label: Live View Prohibit Condition + Type: TEXT + Current: 1 +/main/other/d1b0 + Label: Exposure Display Status + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 +/main/other/d1b1 + Label: Exposure Indicate Status + Type: MENU + Current: -60 + Choice: 0 -60 + Choice: 1 -59 + Choice: 2 -58 + Choice: 3 -57 + Choice: 4 -56 + Choice: 5 -55 + Choice: 6 -54 + Choice: 7 -53 + Choice: 8 -52 + Choice: 9 -51 + Choice: 10 -50 + Choice: 11 -49 + Choice: 12 -48 + Choice: 13 -47 + Choice: 14 -46 + Choice: 15 -45 + Choice: 16 -44 + Choice: 17 -43 + Choice: 18 -42 + Choice: 19 -41 + Choice: 20 -40 + Choice: 21 -39 + Choice: 22 -38 + Choice: 23 -37 + Choice: 24 -36 + Choice: 25 -35 + Choice: 26 -34 + Choice: 27 -33 + Choice: 28 -32 + Choice: 29 -31 + Choice: 30 -30 + Choice: 31 -29 + Choice: 32 -28 + Choice: 33 -27 + Choice: 34 -26 + Choice: 35 -25 + Choice: 36 -24 + Choice: 37 -23 + Choice: 38 -22 + Choice: 39 -21 + Choice: 40 -20 + Choice: 41 -19 + Choice: 42 -18 + Choice: 43 -17 + Choice: 44 -16 + Choice: 45 -15 + Choice: 46 -14 + Choice: 47 -13 + Choice: 48 -12 + Choice: 49 -11 + Choice: 50 -10 + Choice: 51 -9 + Choice: 52 -8 + Choice: 53 -7 + Choice: 54 -6 + Choice: 55 -5 + Choice: 56 -4 + Choice: 57 -3 + Choice: 58 -2 + Choice: 59 -1 + Choice: 60 0 + Choice: 61 1 + Choice: 62 2 + Choice: 63 3 + Choice: 64 4 + Choice: 65 5 + Choice: 66 6 + Choice: 67 7 + Choice: 68 8 + Choice: 69 9 + Choice: 70 10 + Choice: 71 11 + Choice: 72 12 + Choice: 73 13 + Choice: 74 14 + Choice: 75 15 + Choice: 76 16 + Choice: 77 17 + Choice: 78 18 + Choice: 79 19 + Choice: 80 20 + Choice: 81 21 + Choice: 82 22 + Choice: 83 23 + Choice: 84 24 + Choice: 85 25 + Choice: 86 26 + Choice: 87 27 + Choice: 88 28 + Choice: 89 29 + Choice: 90 30 + Choice: 91 31 + Choice: 92 32 + Choice: 93 33 + Choice: 94 34 + Choice: 95 35 + Choice: 96 36 + Choice: 97 37 + Choice: 98 38 + Choice: 99 39 + Choice: 100 40 + Choice: 101 41 + Choice: 102 42 + Choice: 103 43 + Choice: 104 44 + Choice: 105 45 + Choice: 106 46 + Choice: 107 47 + Choice: 108 48 + Choice: 109 49 + Choice: 110 50 + Choice: 111 51 + Choice: 112 52 + Choice: 113 53 + Choice: 114 54 + Choice: 115 55 + Choice: 116 56 + Choice: 117 57 + Choice: 118 58 + Choice: 119 59 + Choice: 120 60 +/main/other/d1b2 + Label: PTP Property 0xd1b2 + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d1b3 + Label: Exposure Indicate Lightup + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1c0 + Label: Flash Open + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1c1 + Label: Flash Charged + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1d0 + Label: Flash MRepeat Value + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d1d1 + Label: Flash MRepeat Count + Type: MENU + Current: 8 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 +/main/other/d1d2 + Label: Flash MRepeat Interval + Type: MENU + Current: 9 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 +/main/other/d1d3 + Label: Flash Command Channel + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d1d4 + Label: Flash Command Self Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d1d5 + Label: Flash Command Self Compensation + Type: MENU + Current: 9 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 +/main/other/d1d6 + Label: Flash Command Self Value + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 +/main/other/d1d7 + Label: Flash Command A Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d1d8 + Label: Flash Command A Compensation + Type: MENU + Current: 9 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 +/main/other/d1d9 + Label: Flash Command A Value + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 +/main/other/d1da + Label: Flash Command B Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d1db + Label: Flash Command B Compensation + Type: MENU + Current: 9 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 +/main/other/d1dc + Label: Flash Command B Value + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 +/main/other/d200 + Label: Active Pic Ctrl Item + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 101 + Choice: 5 102 + Choice: 6 103 + Choice: 7 104 + Choice: 8 201 + Choice: 9 202 + Choice: 10 203 + Choice: 11 204 + Choice: 12 205 + Choice: 13 206 + Choice: 14 207 + Choice: 15 208 + Choice: 16 209 +/main/other/d201 + Label: Change Pic Ctrl Item + Type: MENU + Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3100.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3100.txt new file mode 100644 index 00000000..4f93d3e8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3100.txt @@ -0,0 +1,804 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D3100 + device version: V1.00 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd303 + 0xd406 + 0xd407 + + +Camera summary: +Manufacturer: Nikon Corporation +Model: D3100 + Version: V1.00 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: +:\MISC + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 507052032 (483 MB) + Free Space (Bytes): 475578368 (453 MB) + Free Space (Images): 55 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4608x3072', + '3456x2304', + '2304x1536' + ] value: '4608x3072' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Daylight (4) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/5 (500) +Focal Length(0x5008):(read only) (type=0x6) Range [2800 - 2800, step 1] value: 28 mm (2800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32786] value: Rear Curtain Sync + Slow Sync (32786) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967295] value: 0.001 sec (100) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32790,32791] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,200,400,800,1600,3200,6400,12800] value: ISO 400 (400) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20110228T184621' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32785,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 99, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786] value: Single Area (32784) +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 + +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1298936857 + Printable: Mon 28 Feb 2011 06:47:37 PM EST +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% +/main/imgsettings/imagesize + Label: Image Size + Type: RADIO + Current: 4608x3072 + Choice: 0 4608x3072 + Choice: 1 3456x2304 + Choice: 2 2304x1536 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 400 + Choice: 0 100 + Choice: 1 200 + Choice: 2 400 + Choice: 3 800 + Choice: 4 1600 + Choice: 5 3200 + Choice: 6 6400 + Choice: 7 12800 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Daylight + Choice: 0 Automatic + Choice: 1 Daylight + Choice: 2 Fluorescent + Choice: 3 Tungsten + Choice: 4 Flash + Choice: 5 Cloudy + Choice: 6 Shade + Choice: 7 Preset +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Rear Curtain Sync + Slow Sync + Choice: 0 Red-eye automatic + Choice: 1 Default + Choice: 2 Rear Curtain Sync + Slow Sync +/main/capturesettings/f-number + Label: F-Number + Type: RADIO + Current: f/5 + Choice: 0 f/2.8 + Choice: 1 f/3.2 + Choice: 2 f/3.5 + Choice: 3 f/4 + Choice: 4 f/4.5 + Choice: 5 f/5 + Choice: 6 f/5.6 + Choice: 7 f/6.3 + Choice: 8 f/7.1 + Choice: 9 f/8 + Choice: 10 f/9 + Choice: 11 f/10 + Choice: 12 f/11 + Choice: 13 f/13 + Choice: 14 f/14 + Choice: 15 f/16 + Choice: 16 f/18 + Choice: 17 f/20 + Choice: 18 f/22 +/main/capturesettings/imagequality + Label: Image Quality + Type: RADIO + Current: JPEG Fine + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF (Raw) + Choice: 4 NEF+Basic +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 28 + Bottom: 28 + Top: 28 + Step: 0.01 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: Manual + Choice: 0 Manual + Choice: 1 AF-S + Choice: 2 AF-C + Choice: 3 AF-A +/main/capturesettings/expprogram + Label: Exposure Program + Type: RADIO + Current: M + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S + Choice: 4 Auto + Choice: 5 Portrait + Choice: 6 Landscape + Choice: 7 Macro + Choice: 8 Sports + Choice: 9 Night Portrait + Choice: 10 Night Landscape + Choice: 11 Children +/main/capturesettings/capturemode + Label: Still Capture Mode + Type: RADIO + Current: Single Shot + Choice: 0 Single Shot + Choice: 1 Burst + Choice: 2 Timer + Choice: 3 Quiet Release +/main/capturesettings/focusmetermode + Label: Focus Metering Mode + Type: RADIO + Current: Single Area + Choice: 0 Multi-spot + Choice: 1 Single Area + Choice: 2 Closest Subject + Choice: 3 Group Dynamic +/main/capturesettings/exposuremetermode + Label: Exposure Metering Mode + Type: RADIO + Current: Multi Spot + Choice: 0 Center Weighted + Choice: 1 Multi Spot + Choice: 2 Center Spot +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 0.0100s + Choice: 0 0.0002s + Choice: 1 0.0003s + Choice: 2 0.0004s + Choice: 3 0.0005s + Choice: 4 0.0006s + Choice: 5 0.0008s + Choice: 6 0.0010s + Choice: 7 0.0012s + Choice: 8 0.0015s + Choice: 9 0.0020s + Choice: 10 0.0025s + Choice: 11 0.0031s + Choice: 12 0.0040s + Choice: 13 0.0050s + Choice: 14 0.0062s + Choice: 15 0.0080s + Choice: 16 0.0100s + Choice: 17 0.0125s + Choice: 18 0.0166s + Choice: 19 0.0200s + Choice: 20 0.0250s + Choice: 21 0.0333s + Choice: 22 0.0400s + Choice: 23 0.0500s + Choice: 24 0.0666s + Choice: 25 0.0769s + Choice: 26 0.1000s + Choice: 27 0.1250s + Choice: 28 0.1666s + Choice: 29 0.2000s + Choice: 30 0.2500s + Choice: 31 0.3333s + Choice: 32 0.4000s + Choice: 33 0.5000s + Choice: 34 0.6250s + Choice: 35 0.7692s + Choice: 36 1.0000s + Choice: 37 1.3000s + Choice: 38 1.6000s + Choice: 39 2.0000s + Choice: 40 2.5000s + Choice: 41 3.0000s + Choice: 42 4.0000s + Choice: 43 5.0000s + Choice: 44 6.0000s + Choice: 45 8.0000s + Choice: 46 10.0000s + Choice: 47 13.0000s + Choice: 48 15.0000s + Choice: 49 20.0000s + Choice: 50 25.0000s + Choice: 51 30.0000s + Choice: 52 429496.7295s +/main/capturesettings/burstnumber + Label: Burst Number + Type: RANGE + Current: 1 + Bottom: 1 + Top: 99 + Step: 1 +/main/other/5001 + Label: Battery Level + Type: MENU + Current: 100 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 + Choice: 50 50 + Choice: 51 51 + Choice: 52 52 + Choice: 53 53 + Choice: 54 54 + Choice: 55 55 + Choice: 56 56 + Choice: 57 57 + Choice: 58 58 + Choice: 59 59 + Choice: 60 60 + Choice: 61 61 + Choice: 62 62 + Choice: 63 63 + Choice: 64 64 + Choice: 65 65 + Choice: 66 66 + Choice: 67 67 + Choice: 68 68 + Choice: 69 69 + Choice: 70 70 + Choice: 71 71 + Choice: 72 72 + Choice: 73 73 + Choice: 74 74 + Choice: 75 75 + Choice: 76 76 + Choice: 77 77 + Choice: 78 78 + Choice: 79 79 + Choice: 80 80 + Choice: 81 81 + Choice: 82 82 + Choice: 83 83 + Choice: 84 84 + Choice: 85 85 + Choice: 86 86 + Choice: 87 87 + Choice: 88 88 + Choice: 89 89 + Choice: 90 90 + Choice: 91 91 + Choice: 92 92 + Choice: 93 93 + Choice: 94 94 + Choice: 95 95 + Choice: 96 96 + Choice: 97 97 + Choice: 98 98 + Choice: 99 99 + Choice: 100 100 +/main/other/5003 + Label: Image Size + Type: MENU + Current: 4608x3072 + Choice: 0 4608x3072 + Choice: 1 3456x2304 + Choice: 2 2304x1536 +/main/other/5004 + Label: Compression Setting + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 4 + Choice: 4 5 +/main/other/5005 + Label: White Balance + Type: MENU + Current: 4 + Choice: 0 2 + Choice: 1 4 + Choice: 2 5 + Choice: 3 6 + Choice: 4 7 + Choice: 5 32784 + Choice: 6 32785 + Choice: 7 32787 +/main/other/5007 + Label: F-Number + Type: MENU + Current: 500 + Choice: 0 280 + Choice: 1 320 + Choice: 2 350 + Choice: 3 400 + Choice: 4 450 + Choice: 5 500 + Choice: 6 560 + Choice: 7 630 + Choice: 8 710 + Choice: 9 800 + Choice: 10 900 + Choice: 11 1000 + Choice: 12 1100 + Choice: 13 1300 + Choice: 14 1400 + Choice: 15 1600 + Choice: 16 1800 + Choice: 17 2000 + Choice: 18 2200 +/main/other/5008 + Label: Focal Length + Type: MENU + Current: 2800 + Choice: 0 2800 +/main/other/500a + Label: Focus Mode + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 32784 + Choice: 2 32785 + Choice: 3 32786 + Choice: 4 32787 +/main/other/500b + Label: Exposure Metering Mode + Type: MENU + Current: 3 + Choice: 0 2 + Choice: 1 3 + Choice: 2 4 +/main/other/500c + Label: Flash Mode + Type: MENU + Current: 32786 + Choice: 0 4 + Choice: 1 32784 + Choice: 2 32786 +/main/other/500d + Label: Exposure Time + Type: MENU + Current: 100 + Choice: 0 2 + Choice: 1 3 + Choice: 2 4 + Choice: 3 5 + Choice: 4 6 + Choice: 5 8 + Choice: 6 10 + Choice: 7 12 + Choice: 8 15 + Choice: 9 20 + Choice: 10 25 + Choice: 11 31 + Choice: 12 40 + Choice: 13 50 + Choice: 14 62 + Choice: 15 80 + Choice: 16 100 + Choice: 17 125 + Choice: 18 166 + Choice: 19 200 + Choice: 20 250 + Choice: 21 333 + Choice: 22 400 + Choice: 23 500 + Choice: 24 666 + Choice: 25 769 + Choice: 26 1000 + Choice: 27 1250 + Choice: 28 1666 + Choice: 29 2000 + Choice: 30 2500 + Choice: 31 3333 + Choice: 32 4000 + Choice: 33 5000 + Choice: 34 6250 + Choice: 35 7692 + Choice: 36 10000 + Choice: 37 13000 + Choice: 38 16000 + Choice: 39 20000 + Choice: 40 25000 + Choice: 41 30000 + Choice: 42 40000 + Choice: 43 50000 + Choice: 44 60000 + Choice: 45 80000 + Choice: 46 100000 + Choice: 47 130000 + Choice: 48 150000 + Choice: 49 200000 + Choice: 50 250000 + Choice: 51 300000 + Choice: 52 -1 +/main/other/500e + Label: Exposure Program Mode + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 32784 + Choice: 5 32785 + Choice: 6 32786 + Choice: 7 32787 + Choice: 8 32788 + Choice: 9 32789 + Choice: 10 32790 + Choice: 11 32791 +/main/other/500f + Label: Exposure Index (film speed ISO) + Type: MENU + Current: 400 + Choice: 0 100 + Choice: 1 200 + Choice: 2 400 + Choice: 3 800 + Choice: 4 1600 + Choice: 5 3200 + Choice: 6 6400 + Choice: 7 12800 +/main/other/5010 + Label: Exposure Bias Compensation + Type: MENU + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/other/5011 + Label: Date & Time + Type: TEXT + Current: 20110228T184742 +/main/other/5013 + Label: Still Capture Mode + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 32785 + Choice: 3 32790 +/main/other/5018 + Label: Burst Number + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 + Choice: 11 12 + Choice: 12 13 + Choice: 13 14 + Choice: 14 15 + Choice: 15 16 + Choice: 16 17 + Choice: 17 18 + Choice: 18 19 + Choice: 19 20 + Choice: 20 21 + Choice: 21 22 + Choice: 22 23 + Choice: 23 24 + Choice: 24 25 + Choice: 25 26 + Choice: 26 27 + Choice: 27 28 + Choice: 28 29 + Choice: 29 30 + Choice: 30 31 + Choice: 31 32 + Choice: 32 33 + Choice: 33 34 + Choice: 34 35 + Choice: 35 36 + Choice: 36 37 + Choice: 37 38 + Choice: 38 39 + Choice: 39 40 + Choice: 40 41 + Choice: 41 42 + Choice: 42 43 + Choice: 43 44 + Choice: 44 45 + Choice: 45 46 + Choice: 46 47 + Choice: 47 48 + Choice: 48 49 + Choice: 49 50 + Choice: 50 51 + Choice: 51 52 + Choice: 52 53 + Choice: 53 54 + Choice: 54 55 + Choice: 55 56 + Choice: 56 57 + Choice: 57 58 + Choice: 58 59 + Choice: 59 60 + Choice: 60 61 + Choice: 61 62 + Choice: 62 63 + Choice: 63 64 + Choice: 64 65 + Choice: 65 66 + Choice: 66 67 + Choice: 67 68 + Choice: 68 69 + Choice: 69 70 + Choice: 70 71 + Choice: 71 72 + Choice: 72 73 + Choice: 73 74 + Choice: 74 75 + Choice: 75 76 + Choice: 76 77 + Choice: 77 78 + Choice: 78 79 + Choice: 79 80 + Choice: 80 81 + Choice: 81 82 + Choice: 82 83 + Choice: 83 84 + Choice: 84 85 + Choice: 85 86 + Choice: 86 87 + Choice: 87 88 + Choice: 88 89 + Choice: 89 90 + Choice: 90 91 + Choice: 91 92 + Choice: 92 93 + Choice: 93 94 + Choice: 94 95 + Choice: 95 96 + Choice: 96 97 + Choice: 97 98 + Choice: 98 99 +/main/other/501c + Label: Focus Metering Mode + Type: MENU + Current: 32784 + Choice: 0 2 + Choice: 1 32784 + Choice: 2 32785 + Choice: 3 32786 +/main/other/d303 + Label: PTP Property 0xd303 + Type: TEXT + Current: 1 +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3200.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3200.txt new file mode 100644 index 00000000..8c13a007 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3200.txt @@ -0,0 +1,845 @@ +pi@raspberrypi ~/webpy $ lsusb +Bus 001 Device 013: ID 04b0:042c Nikon Corp. + +######################################################## + +pi@raspberrypi ~/webpy $ env LANG=C gphoto2 --debug --debug-logfile= +D3100-logifle.txt --capture-preview + +*** Error *** +Sorry, your Nikon camera does not support LiveView mode +*** Error (-6: 'Unsupported operation') *** + +########################################################### + +pi@raspberrypi ~/webpy $ gphoto2 --summary +Camera summary: +Manufacturer: Nikon Corporation +Model: D3200 + Version: V1.00 + Serial Number: nnnnnnn0000000000000000000000000 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, DPOF, Script, +Apple Quicktime + +Device Capabilities: +File Download, File Deletion, File Upload +Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: +StorageDescription: None +VolumeLabel: EOS_DIGITAL [Slot 1] +Storage Type: Removable RAM (memory card) +Filesystemtype: Digital Camera Layout (DCIM) +Access Capability: Read Only with Object deletion +Maximum Capability: 16138633216 (15391 MB) +Free Space (Bytes): 12849348608 (12254 MB) +Free Space (Images): 823 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 35% +(35) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ +'6016x4000', +'4512x3000', +'3008x2000' +] value: '6016x4000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,7] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500,2900,3200] value: f/5 (500) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 34 mm (3400) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-A (32786) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.017 sec (1666) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32790,32791] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,200,400,800,1600,3200,6400,12800] value: ISO 400 (400) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130531T143650' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32788,32789,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786] value: Closest Subject (32785) +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/ 6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 + +################################################################## +gphoto2 --list-all-config +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1369982454 +Printable: Fri May 31 14:40:54 2013 +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: nnnnnnn0000000000000000000000000 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D3200 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 35% +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6016x4000 +Choice: 0 6016x4000 +Choice: 1 4512x3000 +Choice: 2 3008x2000 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 400 +Choice: 0 100 +Choice: 1 200 +Choice: 2 400 +Choice: 3 800 +Choice: 4 1600 +Choice: 5 3200 +Choice: 6 6400 +Choice: 7 12800 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Preset +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Red-eye automatic +Choice: 1 Auto +Choice: 2 Auto Slow Sync +Choice: 3 Rear Curtain Sync + Slow Sync +Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/5 +Choice: 0 f/5 +Choice: 1 f/5.6 +Choice: 2 f/6.3 +Choice: 3 f/7.1 +Choice: 4 f/8 +Choice: 5 f/9 +Choice: 6 f/10 +Choice: 7 f/11 +Choice: 8 f/13 +Choice: 9 f/14 +Choice: 10 f/16 +Choice: 11 f/18 +Choice: 12 f/20 +Choice: 13 f/22 +Choice: 14 f/25 +Choice: 15 f/29 +Choice: 16 f/32 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 34 +Bottom: 18 +Top: 55 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-A +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: A +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Portrait +Choice: 6 Landscape +Choice: 7 Macro +Choice: 8 Sports +Choice: 9 Night Portrait +Choice: 10 Night Landscape +Choice: 11 Children +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Timer +Choice: 3 Quick Response Remote +Choice: 4 Delayed Remote +Choice: 5 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Closest Subject +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.1000s +Choice: 0 0.0002s +Choice: 1 0.0003s +Choice: 2 0.0004s +Choice: 3 0.0005s +Choice: 4 0.0006s +Choice: 5 0.0008s +Choice: 6 0.0010s +Choice: 7 0.0012s +Choice: 8 0.0015s +Choice: 9 0.0020s +Choice: 10 0.0025s +Choice: 11 0.0031s +Choice: 12 0.0040s +Choice: 13 0.0050s +Choice: 14 0.0062s +Choice: 15 0.0080s +Choice: 16 0.0100s +Choice: 17 0.0125s +Choice: 18 0.0166s +Choice: 19 0.0200s +Choice: 20 0.0250s +Choice: 21 0.0333s +Choice: 22 0.0400s +Choice: 23 0.0500s +Choice: 24 0.0666s +Choice: 25 0.0769s +Choice: 26 0.1000s +Choice: 27 0.1250s +Choice: 28 0.1666s +Choice: 29 0.2000s +Choice: 30 0.2500s +Choice: 31 0.3333s +Choice: 32 0.4000s +Choice: 33 0.5000s +Choice: 34 0.6250s +Choice: 35 0.7692s +Choice: 36 1.0000s +Choice: 37 1.3000s +Choice: 38 1.6000s +Choice: 39 2.0000s +Choice: 40 2.5000s +Choice: 41 3.0000s +Choice: 42 4.0000s +Choice: 43 5.0000s +Choice: 44 6.0000s +Choice: 45 8.0000s +Choice: 46 10.0000s +Choice: 47 13.0000s +Choice: 48 15.0000s +Choice: 49 20.0000s +Choice: 50 25.0000s +Choice: 51 30.0000s +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 35 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6016x4000 +Choice: 0 6016x4000 +Choice: 1 4512x3000 +Choice: 2 3008x2000 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 500 +Choice: 0 500 +Choice: 1 560 +Choice: 2 630 +Choice: 3 710 +Choice: 4 800 +Choice: 5 900 +Choice: 6 1000 +Choice: 7 1100 +Choice: 8 1300 +Choice: 9 1400 +Choice: 10 1600 +Choice: 11 1800 +Choice: 12 2000 +Choice: 13 2200 +Choice: 14 2500 +Choice: 15 2900 +Choice: 16 3200 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 3400 +Bottom: 1800 +Top: 5500 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32786 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 4 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 1000 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 8 +Choice: 6 10 +Choice: 7 12 +Choice: 8 15 +Choice: 9 20 +Choice: 10 25 +Choice: 11 31 +Choice: 12 40 +Choice: 13 50 +Choice: 14 62 +Choice: 15 80 +Choice: 16 100 +Choice: 17 125 +Choice: 18 166 +Choice: 19 200 +Choice: 20 250 +Choice: 21 333 +Choice: 22 400 +Choice: 23 500 +Choice: 24 666 +Choice: 25 769 +Choice: 26 1000 +Choice: 27 1250 +Choice: 28 1666 +Choice: 29 2000 +Choice: 30 2500 +Choice: 31 3333 +Choice: 32 4000 +Choice: 33 5000 +Choice: 34 6250 +Choice: 35 7692 +Choice: 36 10000 +Choice: 37 13000 +Choice: 38 16000 +Choice: 39 20000 +Choice: 40 25000 +Choice: 41 30000 +Choice: 42 40000 +Choice: 43 50000 +Choice: 44 60000 +Choice: 45 80000 +Choice: 46 100000 +Choice: 47 130000 +Choice: 48 150000 +Choice: 49 200000 +Choice: 50 250000 +Choice: 51 300000 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32786 +Choice: 7 32787 +Choice: 8 32788 +Choice: 9 32789 +Choice: 10 32790 +Choice: 11 32791 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 400 +Choice: 0 100 +Choice: 1 200 +Choice: 2 400 +Choice: 3 800 +Choice: 4 1600 +Choice: 5 3200 +Choice: 6 6400 +Choice: 7 12800 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130531T144054 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32785 +Choice: 3 32788 +Choice: 4 32789 +Choice: 5 32790 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32785 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Nikon Corporation + Model: D3200 + device version: V1.00 + serial number: 'nnnnnnn0000000000000000000000000' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3300.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3300.txt new file mode 100644 index 00000000..bd95b8f0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3300.txt @@ -0,0 +1,1295 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D3300 + Version: V1.00 + Serial Number: 0000000000000000000000000nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: Undefined Type, Association/Directory, Script, DPOF, Apple Quicktime, JPEG + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D3300 [Slot 1] + + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 3956801536 (3773 MB) + Free Space (Bytes): 3667951616 (3498 MB) + Free Space (Images): 79 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6000x4000', + '4496x3000', + '2992x2000' + ] value: '6000x4000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,7] value: 7 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [420,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500,2900] value: f/20 (2000) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 28 mm (2800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32786] value: Auto (32784) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967293,4294967295] value: 0.004 sec (400) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32790,32791,32793] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,200,400,800,1600,3200,6400,12800,25600] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20141102T133134' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32788,32789,32790] value: Power Wind (2) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786] value: Single Area (32784) +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Effect Mode(0xd037):(readwrite) (type=0x2) Range [0 - 12, step 1] value: 1 +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 16384 +Property 0xd0b5:(read only) (type=0x6) 100 +Lens ID(0xd0e0):(read only) (type=0x4) 418 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 127 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 55 mm (5500) +Nikon Exposure Time(0xd100):(readwrite) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967293,4294967295] value: 65561 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Warning Status(0xd102):(read only) (type=0x2) 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: MF (fixed) (3) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Property 0xd1b5:(read only) (type=0x4) Enumeration [0,32784,32785,32786,32787,32800] value: 0 +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 79 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +Device info: +Manufacturer: Nikon Corporation + Model: D3300 + device version: V1.00 + serial number: '0000000000000000000000000nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd303 + 0xd406 + 0xd407 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1414931458 +Printable: Sun 02 Nov 2014 13:30:58 CET +Help: Use 'now' as the current time when setting. + +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/cleansensor +Label: Clean Sensor +Type: RADIO +Current: Startup and Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +Choice: 3 Startup and Shutdown +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000000000000nnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D3300 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0 +/main/status/acpower +Label: AC Power +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 18 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 55 mm +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 100 +Choice: 0 100 +Choice: 1 200 +Choice: 2 400 +Choice: 3 800 +Choice: 4 1600 +Choice: 5 3200 +Choice: 6 6400 +Choice: 7 12800 +Choice: 8 25600 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/capturesettings/dlighting +Label: Active D-Lighting +Type: RADIO +Current: High +Choice: 0 Extra high +Choice: 1 High +/main/capturesettings/moviequality +Label: Movie Quality +Type: RADIO +Current: 320x216 +Choice: 0 320x216 +Choice: 1 640x424 +Choice: 2 1280x720 +Choice: 3 Unknown value 0003 +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/assistlight +Label: Assist Light +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -5 +Top: 5 +Step: 0.1 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Red-eye automatic +Choice: 1 Auto +Choice: 2 Rear Curtain Sync + Slow Sync +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/20 +Choice: 0 f/4.2 +Choice: 1 f/4.5 +Choice: 2 f/5 +Choice: 3 f/5.6 +Choice: 4 f/6.3 +Choice: 5 f/7.1 +Choice: 6 f/8 +Choice: 7 f/9 +Choice: 8 f/10 +Choice: 9 f/11 +Choice: 10 f/13 +Choice: 11 f/14 +Choice: 12 f/16 +Choice: 13 f/18 +Choice: 14 f/20 +Choice: 15 f/22 +Choice: 16 f/25 +Choice: 17 f/29 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: NEF+Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 28 +Bottom: 18 +Top: 55 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Manual +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: MF (fixed) +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/effectmode +Label: Effect Mode +Type: RADIO +Current: Color sketch +Choice: 0 Night Vision +Choice: 1 Color sketch +Choice: 2 Miniature effect +Choice: 3 Selective color +Choice: 4 Silhouette +Choice: 5 High key +Choice: 6 Low key +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: M +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Portrait +Choice: 6 Landscape +Choice: 7 Macro +Choice: 8 Sports +Choice: 9 Night Portrait +Choice: 10 Night Landscape +Choice: 11 Children +Choice: 12 Unknown value 8019 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Burst +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Timer +Choice: 3 Quick Response Remote +Choice: 4 Delayed Remote +Choice: 5 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Single Area +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0400s +Choice: 0 0.0002s +Choice: 1 0.0003s +Choice: 2 0.0004s +Choice: 3 0.0005s +Choice: 4 0.0006s +Choice: 5 0.0008s +Choice: 6 0.0010s +Choice: 7 0.0012s +Choice: 8 0.0015s +Choice: 9 0.0020s +Choice: 10 0.0025s +Choice: 11 0.0031s +Choice: 12 0.0040s +Choice: 13 0.0050s +Choice: 14 0.0062s +Choice: 15 0.0080s +Choice: 16 0.0100s +Choice: 17 0.0125s +Choice: 18 0.0166s +Choice: 19 0.0200s +Choice: 20 0.0250s +Choice: 21 0.0333s +Choice: 22 0.0400s +Choice: 23 0.0500s +Choice: 24 0.0666s +Choice: 25 0.0769s +Choice: 26 0.1000s +Choice: 27 0.1250s +Choice: 28 0.1666s +Choice: 29 0.2000s +Choice: 30 0.2500s +Choice: 31 0.3333s +Choice: 32 0.4000s +Choice: 33 0.5000s +Choice: 34 0.6250s +Choice: 35 0.7692s +Choice: 36 1.0000s +Choice: 37 1.3000s +Choice: 38 1.6000s +Choice: 39 2.0000s +Choice: 40 2.5000s +Choice: 41 3.0000s +Choice: 42 4.0000s +Choice: 43 5.0000s +Choice: 44 6.0000s +Choice: 45 8.0000s +Choice: 46 10.0000s +Choice: 47 13.0000s +Choice: 48 15.0000s +Choice: 49 20.0000s +Choice: 50 25.0000s +Choice: 51 30.0000s +Choice: 52 429496.7293s +Choice: 53 429496.7295s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/25 +Choice: 0 1/4000 +Choice: 1 1/3200 +Choice: 2 1/2500 +Choice: 3 1/2000 +Choice: 4 1/1600 +Choice: 5 1/1250 +Choice: 6 1/1000 +Choice: 7 1/800 +Choice: 8 1/640 +Choice: 9 1/500 +Choice: 10 1/400 +Choice: 11 1/320 +Choice: 12 1/250 +Choice: 13 1/200 +Choice: 14 1/160 +Choice: 15 1/125 +Choice: 16 1/100 +Choice: 17 1/80 +Choice: 18 1/60 +Choice: 19 1/50 +Choice: 20 1/40 +Choice: 21 1/30 +Choice: 22 1/25 +Choice: 23 1/20 +Choice: 24 1/15 +Choice: 25 1/13 +Choice: 26 1/10 +Choice: 27 1/8 +Choice: 28 1/6 +Choice: 29 1/5 +Choice: 30 1/4 +Choice: 31 1/3 +Choice: 32 10/25 +Choice: 33 1/2 +Choice: 34 10/16 +Choice: 35 10/13 +Choice: 36 1 +Choice: 37 13/10 +Choice: 38 16/10 +Choice: 39 2 +Choice: 40 25/10 +Choice: 41 3 +Choice: 42 4 +Choice: 43 5 +Choice: 44 6 +Choice: 45 8 +Choice: 46 10 +Choice: 47 13 +Choice: 48 15 +Choice: 49 20 +Choice: 50 25 +Choice: 51 30 +Choice: 52 65535/65533 +Choice: 53 65535/65535 +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Wide-area AF +Choice: 0 Face-priority AF +Choice: 1 Wide-area AF +Choice: 2 Normal-area AF +Choice: 3 Subject-tracking AF +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 0 +Choice: 0 0 +/main/capturesettings/applicationmode +Label: Application Mode +Type: RADIO +Current: Application Mode 0 +Choice: 0 Application Mode 0 +Choice: 1 Application Mode 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 2000 +Choice: 0 420 +Choice: 1 450 +Choice: 2 500 +Choice: 3 560 +Choice: 4 630 +Choice: 5 710 +Choice: 6 800 +Choice: 7 900 +Choice: 8 1000 +Choice: 9 1100 +Choice: 10 1300 +Choice: 11 1400 +Choice: 12 1600 +Choice: 13 1800 +Choice: 14 2000 +Choice: 15 2200 +Choice: 16 2500 +Choice: 17 2900 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 2800 +Bottom: 1800 +Top: 5500 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 4 +Choice: 1 32784 +Choice: 2 32786 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 400 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 8 +Choice: 6 10 +Choice: 7 12 +Choice: 8 15 +Choice: 9 20 +Choice: 10 25 +Choice: 11 31 +Choice: 12 40 +Choice: 13 50 +Choice: 14 62 +Choice: 15 80 +Choice: 16 100 +Choice: 17 125 +Choice: 18 166 +Choice: 19 200 +Choice: 20 250 +Choice: 21 333 +Choice: 22 400 +Choice: 23 500 +Choice: 24 666 +Choice: 25 769 +Choice: 26 1000 +Choice: 27 1250 +Choice: 28 1666 +Choice: 29 2000 +Choice: 30 2500 +Choice: 31 3333 +Choice: 32 4000 +Choice: 33 5000 +Choice: 34 6250 +Choice: 35 7692 +Choice: 36 10000 +Choice: 37 13000 +Choice: 38 16000 +Choice: 39 20000 +Choice: 40 25000 +Choice: 41 30000 +Choice: 42 40000 +Choice: 43 50000 +Choice: 44 60000 +Choice: 45 80000 +Choice: 46 100000 +Choice: 47 130000 +Choice: 48 150000 +Choice: 49 200000 +Choice: 50 250000 +Choice: 51 300000 +Choice: 52 -3 +Choice: 53 -1 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32786 +Choice: 7 32787 +Choice: 8 32788 +Choice: 9 32789 +Choice: 10 32790 +Choice: 11 32791 +Choice: 12 32793 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 200 +Choice: 2 400 +Choice: 3 800 +Choice: 4 1600 +Choice: 5 3200 +Choice: 6 6400 +Choice: 7 12800 +Choice: 8 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20141102T133058 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32785 +Choice: 3 32788 +Choice: 4 32789 +Choice: 5 32790 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d037 +Label: Effect Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Clean Image Sensor +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d09c +Label: PTP Property 0xd09c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 16384 +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Type: TEXT +Current: 100 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 418 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 127 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 1800 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 5500 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65561 +Choice: 0 69536 +Choice: 1 68736 +Choice: 2 68036 +Choice: 3 67536 +Choice: 4 67136 +Choice: 5 66786 +Choice: 6 66536 +Choice: 7 66336 +Choice: 8 66176 +Choice: 9 66036 +Choice: 10 65936 +Choice: 11 65856 +Choice: 12 65786 +Choice: 13 65736 +Choice: 14 65696 +Choice: 15 65661 +Choice: 16 65636 +Choice: 17 65616 +Choice: 18 65596 +Choice: 19 65586 +Choice: 20 65576 +Choice: 21 65566 +Choice: 22 65561 +Choice: 23 65556 +Choice: 24 65551 +Choice: 25 65549 +Choice: 26 65546 +Choice: 27 65544 +Choice: 28 65542 +Choice: 29 65541 +Choice: 30 65540 +Choice: 31 65539 +Choice: 32 655385 +Choice: 33 65538 +Choice: 34 655376 +Choice: 35 655373 +Choice: 36 65537 +Choice: 37 851978 +Choice: 38 1048586 +Choice: 39 131073 +Choice: 40 1638410 +Choice: 41 196609 +Choice: 42 262145 +Choice: 43 327681 +Choice: 44 393217 +Choice: 45 524289 +Choice: 46 655361 +Choice: 47 851969 +Choice: 48 983041 +Choice: 49 1310721 +Choice: 50 1638401 +Choice: 51 1966081 +Choice: 52 -3 +Choice: 53 -1 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d14e +Label: Active D-Lighting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d163 +Label: AF Assist Lamp +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d16a +Label: ISO Auto +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d1b5 +Label: PTP Property 0xd1b5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32800 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 79 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3400.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3400.txt new file mode 100644 index 00000000..749e28e4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3400.txt @@ -0,0 +1,1339 @@ +**lsusb** +Bus 001 Device 011: ID 04b0:043d Nikon Corp. + +**gphoto2 --autodetect ** +Model Port +---------------------------------------------------------- +USB PTP Class Camera usb:001,011 + + +**LANG=C gphoto2 --summary + +Camera summary: +Manufacturer: Nikon Corporation +Model: D3400 + Version: V1.10 + Serial Number: 0000000000000000000000000nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Microsoft.com/DeviceServices: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3 + +Storage Devices Summary: + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6000x4000', + '4496x3000', + '2992x2000' + ] value: '6000x4000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,7] value: JPEG Norm (1) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [100,110,120,140,160,180,200,220,250,280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/3.5 (350) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 18 mm (1800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-A (32786) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967295,4294967293] value: 0.0067 sec (666) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32790,32791,32793] value: Auto (32784) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,200,400,800,1600,3200,6400,12800,25600] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20161228T154120' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32788,32789,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786] value: Closest Subject (32785) +Artist(0x501e):(read only) (type=0xffff) '' +Copyright Info(0x501f):(read only) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Effect Mode(0xd037):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 11 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 0 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 0 +Property 0xd0b5:(read only) (type=0x6) 12800 +Lens ID(0xd0e0):(read only) (type=0x4) 928 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x8) 0 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 55 mm (5500) +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967295,4294967293] value: 65551 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-A (2) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 2147500032 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Property 0xd1b5:(read only) (type=0x4) Enumeration [0,32784,32785,32786,32787,32800] value: 0 +Property 0xd1dd:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + + +** LANG=C gphoto2 --list-all-config ** +/main/actions/bulb +Label: Bulb Mode +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/changeafarea +Label: Set Nikon Autofocus area +Type: TEXT +Current: 0x0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1482968574 +Printable: Wed Dec 28 15:42:54 2016 +Help: Use 'now' as the current time when setting. + +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/autofocus +Label: Autofocus +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000000000000nnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D3400 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.10 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Microsoft.com/DeviceServices: 1.0 +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 35% +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 18 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 55 mm +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 100 +Choice: 0 100 +Choice: 1 200 +Choice: 2 400 +Choice: 3 800 +Choice: 4 1600 +Choice: 5 3200 +Choice: 6 6400 +Choice: 7 12800 +Choice: 8 25600 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/assistlight +Label: Assist Light +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.666 +Choice: 2 -4.333 +Choice: 3 -4 +Choice: 4 -3.666 +Choice: 5 -3.333 +Choice: 6 -3 +Choice: 7 -2.666 +Choice: 8 -2.333 +Choice: 9 -2 +Choice: 10 -1.666 +Choice: 11 -1.333 +Choice: 12 -1 +Choice: 13 -0.666 +Choice: 14 -0.333 +Choice: 15 0 +Choice: 16 0.333 +Choice: 17 0.666 +Choice: 18 1 +Choice: 19 1.333 +Choice: 20 1.666 +Choice: 21 2 +Choice: 22 2.333 +Choice: 23 2.666 +Choice: 24 3 +Choice: 25 3.333 +Choice: 26 3.666 +Choice: 27 4 +Choice: 28 4.333 +Choice: 29 4.666 +Choice: 30 5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Flash off +Choice: 1 Red-eye automatic +Choice: 2 Auto +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/3.5 +Choice: 0 f/1 +Choice: 1 f/1.1 +Choice: 2 f/1.2 +Choice: 3 f/1.4 +Choice: 4 f/1.6 +Choice: 5 f/1.8 +Choice: 6 f/2 +Choice: 7 f/2.2 +Choice: 8 f/2.5 +Choice: 9 f/2.8 +Choice: 10 f/3.2 +Choice: 11 f/3.5 +Choice: 12 f/4 +Choice: 13 f/4.5 +Choice: 14 f/5 +Choice: 15 f/5.6 +Choice: 16 f/6.3 +Choice: 17 f/7.1 +Choice: 18 f/8 +Choice: 19 f/9 +Choice: 20 f/10 +Choice: 21 f/11 +Choice: 22 f/13 +Choice: 23 f/14 +Choice: 24 f/16 +Choice: 25 f/18 +Choice: 26 f/20 +Choice: 27 f/22 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Normal +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 18 +Bottom: 18 +Top: 55 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-A +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: AF-A +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/effectmode +Label: Effect Mode +Type: RADIO +Current: Unknown value 000b +Choice: 0 Night Vision +Choice: 1 Color sketch +Choice: 2 Miniature effect +Choice: 3 Selective color +Choice: 4 Silhouette +Choice: 5 High key +Choice: 6 Low key +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: Auto +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Portrait +Choice: 6 Landscape +Choice: 7 Macro +Choice: 8 Sports +Choice: 9 Night Portrait +Choice: 10 Night Landscape +Choice: 11 Children +Choice: 12 Unknown value 8019 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Timer +Choice: 3 Quick Response Remote +Choice: 4 Delayed Remote +Choice: 5 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Closest Subject +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0666s +Choice: 0 0.0002s +Choice: 1 0.0003s +Choice: 2 0.0004s +Choice: 3 0.0005s +Choice: 4 0.0006s +Choice: 5 0.0008s +Choice: 6 0.0010s +Choice: 7 0.0012s +Choice: 8 0.0015s +Choice: 9 0.0020s +Choice: 10 0.0025s +Choice: 11 0.0031s +Choice: 12 0.0040s +Choice: 13 0.0050s +Choice: 14 0.0062s +Choice: 15 0.0080s +Choice: 16 0.0100s +Choice: 17 0.0125s +Choice: 18 0.0166s +Choice: 19 0.0200s +Choice: 20 0.0250s +Choice: 21 0.0333s +Choice: 22 0.0400s +Choice: 23 0.0500s +Choice: 24 0.0666s +Choice: 25 0.0769s +Choice: 26 0.1000s +Choice: 27 0.1250s +Choice: 28 0.1666s +Choice: 29 0.2000s +Choice: 30 0.2500s +Choice: 31 0.3333s +Choice: 32 0.4000s +Choice: 33 0.5000s +Choice: 34 0.6250s +Choice: 35 0.7692s +Choice: 36 1.0000s +Choice: 37 1.3000s +Choice: 38 1.6000s +Choice: 39 2.0000s +Choice: 40 2.5000s +Choice: 41 3.0000s +Choice: 42 4.0000s +Choice: 43 5.0000s +Choice: 44 6.0000s +Choice: 45 8.0000s +Choice: 46 10.0000s +Choice: 47 13.0000s +Choice: 48 15.0000s +Choice: 49 20.0000s +Choice: 50 25.0000s +Choice: 51 30.0000s +Choice: 52 Bulb +Choice: 53 Time +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/15 +Choice: 0 1/4000 +Choice: 1 1/3200 +Choice: 2 1/2500 +Choice: 3 1/2000 +Choice: 4 1/1600 +Choice: 5 1/1250 +Choice: 6 1/1000 +Choice: 7 1/800 +Choice: 8 1/640 +Choice: 9 1/500 +Choice: 10 1/400 +Choice: 11 1/320 +Choice: 12 1/250 +Choice: 13 1/200 +Choice: 14 1/160 +Choice: 15 1/125 +Choice: 16 1/100 +Choice: 17 1/80 +Choice: 18 1/60 +Choice: 19 1/50 +Choice: 20 1/40 +Choice: 21 1/30 +Choice: 22 1/25 +Choice: 23 1/20 +Choice: 24 1/15 +Choice: 25 1/13 +Choice: 26 1/10 +Choice: 27 1/8 +Choice: 28 1/6 +Choice: 29 1/5 +Choice: 30 1/4 +Choice: 31 1/3 +Choice: 32 10/25 +Choice: 33 1/2 +Choice: 34 10/16 +Choice: 35 10/13 +Choice: 36 1 +Choice: 37 13/10 +Choice: 38 16/10 +Choice: 39 2 +Choice: 40 25/10 +Choice: 41 3 +Choice: 42 4 +Choice: 43 5 +Choice: 44 6 +Choice: 45 8 +Choice: 46 10 +Choice: 47 13 +Choice: 48 15 +Choice: 49 20 +Choice: 50 25 +Choice: 51 30 +Choice: 52 Bulb +Choice: 53 Time +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Face-priority AF +Choice: 0 Face-priority AF +Choice: 1 Wide-area AF +Choice: 2 Normal-area AF +Choice: 3 Subject-tracking AF +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Single-servo AF +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Unknown value 0003 +Choice: 3 Manual Focus +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 0 +Choice: 0 0 +/main/capturesettings/applicationmode +Label: Application Mode +Type: RADIO +Current: Application Mode 0 +Choice: 0 Application Mode 0 +Choice: 1 Application Mode 1 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 35 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 350 +Choice: 0 100 +Choice: 1 110 +Choice: 2 120 +Choice: 3 140 +Choice: 4 160 +Choice: 5 180 +Choice: 6 200 +Choice: 7 220 +Choice: 8 250 +Choice: 9 280 +Choice: 10 320 +Choice: 11 350 +Choice: 12 400 +Choice: 13 450 +Choice: 14 500 +Choice: 15 560 +Choice: 16 630 +Choice: 17 710 +Choice: 18 800 +Choice: 19 900 +Choice: 20 1000 +Choice: 21 1100 +Choice: 22 1300 +Choice: 23 1400 +Choice: 24 1600 +Choice: 25 1800 +Choice: 26 2000 +Choice: 27 2200 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 1800 +Bottom: 1800 +Top: 5500 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32786 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32784 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 666 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 8 +Choice: 6 10 +Choice: 7 12 +Choice: 8 15 +Choice: 9 20 +Choice: 10 25 +Choice: 11 31 +Choice: 12 40 +Choice: 13 50 +Choice: 14 62 +Choice: 15 80 +Choice: 16 100 +Choice: 17 125 +Choice: 18 166 +Choice: 19 200 +Choice: 20 250 +Choice: 21 333 +Choice: 22 400 +Choice: 23 500 +Choice: 24 666 +Choice: 25 769 +Choice: 26 1000 +Choice: 27 1250 +Choice: 28 1666 +Choice: 29 2000 +Choice: 30 2500 +Choice: 31 3333 +Choice: 32 4000 +Choice: 33 5000 +Choice: 34 6250 +Choice: 35 7692 +Choice: 36 10000 +Choice: 37 13000 +Choice: 38 16000 +Choice: 39 20000 +Choice: 40 25000 +Choice: 41 30000 +Choice: 42 40000 +Choice: 43 50000 +Choice: 44 60000 +Choice: 45 80000 +Choice: 46 100000 +Choice: 47 130000 +Choice: 48 150000 +Choice: 49 200000 +Choice: 50 250000 +Choice: 51 300000 +Choice: 52 -1 +Choice: 53 -3 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32786 +Choice: 7 32787 +Choice: 8 32788 +Choice: 9 32789 +Choice: 10 32790 +Choice: 11 32791 +Choice: 12 32793 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 200 +Choice: 2 400 +Choice: 3 800 +Choice: 4 1600 +Choice: 5 3200 +Choice: 6 6400 +Choice: 7 12800 +Choice: 8 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20161228T154254 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32785 +Choice: 3 32788 +Choice: 4 32789 +Choice: 5 32790 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32785 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +/main/other/501e +Label: Artist +Type: TEXT +Current: +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d037 +Label: Effect Mode +Type: MENU +Current: 11 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d09c +Label: PTP Property 0xd09c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 0 +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Type: TEXT +Current: 12800 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 928 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 383 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 1800 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 5500 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65551 +Choice: 0 69536 +Choice: 1 68736 +Choice: 2 68036 +Choice: 3 67536 +Choice: 4 67136 +Choice: 5 66786 +Choice: 6 66536 +Choice: 7 66336 +Choice: 8 66176 +Choice: 9 66036 +Choice: 10 65936 +Choice: 11 65856 +Choice: 12 65786 +Choice: 13 65736 +Choice: 14 65696 +Choice: 15 65661 +Choice: 16 65636 +Choice: 17 65616 +Choice: 18 65596 +Choice: 19 65586 +Choice: 20 65576 +Choice: 21 65566 +Choice: 22 65561 +Choice: 23 65556 +Choice: 24 65551 +Choice: 25 65549 +Choice: 26 65546 +Choice: 27 65544 +Choice: 28 65542 +Choice: 29 65541 +Choice: 30 65540 +Choice: 31 65539 +Choice: 32 655385 +Choice: 33 65538 +Choice: 34 655376 +Choice: 35 655373 +Choice: 36 65537 +Choice: 37 851978 +Choice: 38 1048586 +Choice: 39 131073 +Choice: 40 1638410 +Choice: 41 196609 +Choice: 42 262145 +Choice: 43 327681 +Choice: 44 393217 +Choice: 45 524289 +Choice: 46 655361 +Choice: 47 851969 +Choice: 48 983041 +Choice: 49 1310721 +Choice: 50 1638401 +Choice: 51 1966081 +Choice: 52 -1 +Choice: 53 -3 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d14e +Label: Active D-Lighting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d163 +Label: AF Assist Lamp +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d16a +Label: ISO Auto +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: -2147467264 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d1b5 +Label: PTP Property 0xd1b5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32800 +/main/other/d1dd +Label: PTP Property 0xd1dd +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 + +**gphoto2 --capture-image** + +*** Error *** +PTP Store Not Available +ERROR: Could not capture image. +ERROR: Could not capture. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3500.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3500.txt new file mode 100644 index 00000000..b20dafa8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3500.txt @@ -0,0 +1,1539 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D3500 + Version: V1.00 + Serial Number: 0000000000000000000000000nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Microsoft.com/DeviceServices: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3 + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 31902400512 (30424 MB) + Free Space (Bytes): 31827001344 (30352 MB) + Free Space (Images): 3651 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6000x4000', + '4496x3000', + '2992x2000' + ] value: '6000x4000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,7] value: JPEG Norm (1) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [100,110,120,140,160,180,200,220,250,280,320,350,380,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500] value: f/3.8 (380) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 22 mm (2200) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-A (32786) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967295,4294967293] value: 0.0004 sec (40) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32787,32788,32789,32790,32793] value: Auto (32784) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,200,400,800,1600,3200,6400,12800,25600] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20181221T133512' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786] value: Closest Subject (32785) +Artist(0x501e):(read only) (type=0xffff) '' +Copyright Info(0x501f):(read only) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Effect Mode(0xd037):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 11 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 0 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 0 +Property 0xd0b5:(read only) (type=0x6) 800 +Lens ID(0xd0e0):(read only) (type=0x4) 928 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x8) 0 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 55 mm (5500) +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967295,4294967293] value: 65786 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-A (2) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 2147483648 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Property 0xd1b5:(read only) (type=0x4) Enumeration [0,32784,32785,32786,32787,32800] value: 0 +Property 0xd1dd:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x6) Range [0 - 4294967295, step 1] value: 3651 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/bulb +Label: Bulb Mode +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +END +/main/actions/changeafarea +Label: Set Nikon Autofocus area +Readonly: 0 +Type: TEXT +Current: 0x0 +END +/main/actions/controlmode +Label: Set Nikon Control Mode +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/actions/viewfinder +Label: Nikon Viewfinder +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/actions/movie +Label: Movie Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/settings/datetime +Label: Camera Date and Time +Readonly: 0 +Type: DATE +Current: 1545420920 +Printable: Fri 21 Dec 2018 01:35:20 PM CST +Help: Use 'now' as the current time when setting. + +END +/main/settings/recordingmedia +Label: Recording Media +Readonly: 0 +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +END +/main/settings/fastfs +Label: Fast Filesystem +Readonly: 0 +Type: TOGGLE +Current: 1 +END +/main/settings/capturetarget +Label: Capture Target +Readonly: 0 +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +END +/main/settings/autofocus +Label: Autofocus +Readonly: 0 +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: 0000000000000000000000000nnnnnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: Nikon Corporation +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: D3500 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: V1.00 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: Microsoft.com/DeviceServices: 1.0 +END +/main/status/acpower +Label: AC Power +Readonly: 1 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/status/batterylevel +Label: Battery Level +Readonly: 1 +Type: TEXT +Current: 100% +END +/main/status/minfocallength +Label: Focal Length Minimum +Readonly: 1 +Type: TEXT +Current: 18 mm +END +/main/status/maxfocallength +Label: Focal Length Maximum +Readonly: 1 +Type: TEXT +Current: 55 mm +END +/main/imgsettings/imagesize +Label: Image Size +Readonly: 0 +Type: RADIO +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +END +/main/imgsettings/iso +Label: ISO Speed +Readonly: 0 +Type: RADIO +Current: 100 +Choice: 0 100 +Choice: 1 200 +Choice: 2 400 +Choice: 3 800 +Choice: 4 1600 +Choice: 5 3200 +Choice: 6 6400 +Choice: 7 12800 +Choice: 8 25600 +END +/main/imgsettings/isoauto +Label: ISO Auto +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/imgsettings/whitebalance +Label: WhiteBalance +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Preset +END +/main/imgsettings/colorspace +Label: Color Space +Readonly: 0 +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +END +/main/imgsettings/autoiso +Label: Auto ISO +Readonly: 0 +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Readonly: 0 +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/assistlight +Label: Assist Light +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Readonly: 0 +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.666 +Choice: 2 -4.333 +Choice: 3 -4 +Choice: 4 -3.666 +Choice: 5 -3.333 +Choice: 6 -3 +Choice: 7 -2.666 +Choice: 8 -2.333 +Choice: 9 -2 +Choice: 10 -1.666 +Choice: 11 -1.333 +Choice: 12 -1 +Choice: 13 -0.666 +Choice: 14 -0.333 +Choice: 15 0 +Choice: 16 0.333 +Choice: 17 0.666 +Choice: 18 1 +Choice: 19 1.333 +Choice: 20 1.666 +Choice: 21 2 +Choice: 22 2.333 +Choice: 23 2.666 +Choice: 24 3 +Choice: 25 3.333 +Choice: 26 3.666 +Choice: 27 4 +Choice: 28 4.333 +Choice: 29 4.666 +Choice: 30 5 +END +/main/capturesettings/flashmode +Label: Flash Mode +Readonly: 0 +Type: RADIO +Current: Auto +Choice: 0 Flash off +Choice: 1 Red-eye automatic +Choice: 2 Auto +END +/main/capturesettings/f-number +Label: F-Number +Readonly: 1 +Type: RADIO +Current: f/3.8 +Choice: 0 f/1 +Choice: 1 f/1.1 +Choice: 2 f/1.2 +Choice: 3 f/1.4 +Choice: 4 f/1.6 +Choice: 5 f/1.8 +Choice: 6 f/2 +Choice: 7 f/2.2 +Choice: 8 f/2.5 +Choice: 9 f/2.8 +Choice: 10 f/3.2 +Choice: 11 f/3.5 +Choice: 12 f/3.8 +Choice: 13 f/4 +Choice: 14 f/4.5 +Choice: 15 f/5 +Choice: 16 f/5.6 +Choice: 17 f/6.3 +Choice: 18 f/7.1 +Choice: 19 f/8 +Choice: 20 f/9 +Choice: 21 f/10 +Choice: 22 f/11 +Choice: 23 f/13 +Choice: 24 f/14 +Choice: 25 f/16 +Choice: 26 f/18 +Choice: 27 f/20 +Choice: 28 f/22 +Choice: 29 f/25 +END +/main/capturesettings/imagequality +Label: Image Quality +Readonly: 0 +Type: RADIO +Current: JPEG Normal +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Fine +END +/main/capturesettings/focallength +Label: Focal Length +Readonly: 1 +Type: RANGE +Current: 22 +Bottom: 18 +Top: 55 +Step: 0.01 +END +/main/capturesettings/focusmode +Label: Focus Mode +Readonly: 1 +Type: RADIO +Current: AF-A +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +END +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Readonly: 0 +Type: RADIO +Current: AF-A +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +END +/main/capturesettings/effectmode +Label: Effect Mode +Readonly: 0 +Type: RADIO +Current: Unknown value 000b +Choice: 0 Night Vision +Choice: 1 Color sketch +Choice: 2 Miniature effect +Choice: 3 Selective color +Choice: 4 Silhouette +Choice: 5 High key +Choice: 6 Low key +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +END +/main/capturesettings/expprogram +Label: Exposure Program +Readonly: 1 +Type: RADIO +Current: Auto +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Portrait +Choice: 6 Macro +Choice: 7 Sports +Choice: 8 Night Portrait +Choice: 9 Night Landscape +Choice: 10 Unknown value 8019 +END +/main/capturesettings/capturemode +Label: Still Capture Mode +Readonly: 0 +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Timer +Choice: 3 Quiet Release +END +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Readonly: 0 +Type: RADIO +Current: Closest Subject +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +END +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Readonly: 0 +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +END +/main/capturesettings/shutterspeed +Label: Shutter Speed +Readonly: 1 +Type: RADIO +Current: 0.0040s +Choice: 0 0.0002s +Choice: 1 0.0003s +Choice: 2 0.0004s +Choice: 3 0.0005s +Choice: 4 0.0006s +Choice: 5 0.0008s +Choice: 6 0.0010s +Choice: 7 0.0012s +Choice: 8 0.0015s +Choice: 9 0.0020s +Choice: 10 0.0025s +Choice: 11 0.0031s +Choice: 12 0.0040s +Choice: 13 0.0050s +Choice: 14 0.0062s +Choice: 15 0.0080s +Choice: 16 0.0100s +Choice: 17 0.0125s +Choice: 18 0.0166s +Choice: 19 0.0200s +Choice: 20 0.0250s +Choice: 21 0.0333s +Choice: 22 0.0400s +Choice: 23 0.0500s +Choice: 24 0.0666s +Choice: 25 0.0769s +Choice: 26 0.1000s +Choice: 27 0.1250s +Choice: 28 0.1666s +Choice: 29 0.2000s +Choice: 30 0.2500s +Choice: 31 0.3333s +Choice: 32 0.4000s +Choice: 33 0.5000s +Choice: 34 0.6250s +Choice: 35 0.7692s +Choice: 36 1.0000s +Choice: 37 1.3000s +Choice: 38 1.6000s +Choice: 39 2.0000s +Choice: 40 2.5000s +Choice: 41 3.0000s +Choice: 42 4.0000s +Choice: 43 5.0000s +Choice: 44 6.0000s +Choice: 45 8.0000s +Choice: 46 10.0000s +Choice: 47 13.0000s +Choice: 48 15.0000s +Choice: 49 20.0000s +Choice: 50 25.0000s +Choice: 51 30.0000s +Choice: 52 Bulb +Choice: 53 Time +END +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Readonly: 1 +Type: RADIO +Current: 1/250 +Choice: 0 1/4000 +Choice: 1 1/3200 +Choice: 2 1/2500 +Choice: 3 1/2000 +Choice: 4 1/1600 +Choice: 5 1/1250 +Choice: 6 1/1000 +Choice: 7 1/800 +Choice: 8 1/640 +Choice: 9 1/500 +Choice: 10 1/400 +Choice: 11 1/320 +Choice: 12 1/250 +Choice: 13 1/200 +Choice: 14 1/160 +Choice: 15 1/125 +Choice: 16 1/100 +Choice: 17 1/80 +Choice: 18 1/60 +Choice: 19 1/50 +Choice: 20 1/40 +Choice: 21 1/30 +Choice: 22 1/25 +Choice: 23 1/20 +Choice: 24 1/15 +Choice: 25 1/13 +Choice: 26 1/10 +Choice: 27 1/8 +Choice: 28 1/6 +Choice: 29 1/5 +Choice: 30 1/4 +Choice: 31 1/3 +Choice: 32 10/25 +Choice: 33 1/2 +Choice: 34 10/16 +Choice: 35 10/13 +Choice: 36 1 +Choice: 37 13/10 +Choice: 38 16/10 +Choice: 39 2 +Choice: 40 25/10 +Choice: 41 3 +Choice: 42 4 +Choice: 43 5 +Choice: 44 6 +Choice: 45 8 +Choice: 46 10 +Choice: 47 13 +Choice: 48 15 +Choice: 49 20 +Choice: 50 25 +Choice: 51 30 +Choice: 52 Bulb +Choice: 53 Time +END +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Readonly: 0 +Type: RADIO +Current: Face-priority AF +Choice: 0 Face-priority AF +Choice: 1 Wide-area AF +Choice: 2 Normal-area AF +Choice: 3 Subject-tracking AF +END +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Readonly: 0 +Type: RADIO +Current: Single-servo AF +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Unknown value 0003 +Choice: 3 Manual Focus +END +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Readonly: 0 +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/burstnumber +Label: Burst Number +Readonly: 0 +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +END +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Readonly: 0 +Type: RADIO +Current: 0 +Choice: 0 0 +END +/main/capturesettings/applicationmode +Label: Application Mode +Readonly: 0 +Type: RADIO +Current: Application Mode 0 +Choice: 0 Application Mode 0 +Choice: 1 Application Mode 1 +END +/main/other/5001 +Label: Battery Level +Readonly: 1 +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +END +/main/other/5003 +Label: Image Size +Readonly: 0 +Type: MENU +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +END +/main/other/5004 +Label: Compression Setting +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 7 +END +/main/other/5005 +Label: White Balance +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32787 +END +/main/other/5007 +Label: F-Number +Readonly: 1 +Type: MENU +Current: 380 +Choice: 0 100 +Choice: 1 110 +Choice: 2 120 +Choice: 3 140 +Choice: 4 160 +Choice: 5 180 +Choice: 6 200 +Choice: 7 220 +Choice: 8 250 +Choice: 9 280 +Choice: 10 320 +Choice: 11 350 +Choice: 12 380 +Choice: 13 400 +Choice: 14 450 +Choice: 15 500 +Choice: 16 560 +Choice: 17 630 +Choice: 18 710 +Choice: 19 800 +Choice: 20 900 +Choice: 21 1000 +Choice: 22 1100 +Choice: 23 1300 +Choice: 24 1400 +Choice: 25 1600 +Choice: 26 1800 +Choice: 27 2000 +Choice: 28 2200 +Choice: 29 2500 +END +/main/other/5008 +Label: Focal Length +Readonly: 1 +Type: RANGE +Current: 2200 +Bottom: 1800 +Top: 5500 +Step: 1 +END +/main/other/500a +Label: Focus Mode +Readonly: 1 +Type: MENU +Current: 32786 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +END +/main/other/500b +Label: Exposure Metering Mode +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +END +/main/other/500c +Label: Flash Mode +Readonly: 0 +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32784 +END +/main/other/500d +Label: Exposure Time +Readonly: 1 +Type: MENU +Current: 40 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 8 +Choice: 6 10 +Choice: 7 12 +Choice: 8 15 +Choice: 9 20 +Choice: 10 25 +Choice: 11 31 +Choice: 12 40 +Choice: 13 50 +Choice: 14 62 +Choice: 15 80 +Choice: 16 100 +Choice: 17 125 +Choice: 18 166 +Choice: 19 200 +Choice: 20 250 +Choice: 21 333 +Choice: 22 400 +Choice: 23 500 +Choice: 24 666 +Choice: 25 769 +Choice: 26 1000 +Choice: 27 1250 +Choice: 28 1666 +Choice: 29 2000 +Choice: 30 2500 +Choice: 31 3333 +Choice: 32 4000 +Choice: 33 5000 +Choice: 34 6250 +Choice: 35 7692 +Choice: 36 10000 +Choice: 37 13000 +Choice: 38 16000 +Choice: 39 20000 +Choice: 40 25000 +Choice: 41 30000 +Choice: 42 40000 +Choice: 43 50000 +Choice: 44 60000 +Choice: 45 80000 +Choice: 46 100000 +Choice: 47 130000 +Choice: 48 150000 +Choice: 49 200000 +Choice: 50 250000 +Choice: 51 300000 +Choice: 52 -1 +Choice: 53 -3 +END +/main/other/500e +Label: Exposure Program Mode +Readonly: 1 +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32787 +Choice: 7 32788 +Choice: 8 32789 +Choice: 9 32790 +Choice: 10 32793 +END +/main/other/500f +Label: Exposure Index (film speed ISO) +Readonly: 0 +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 200 +Choice: 2 400 +Choice: 3 800 +Choice: 4 1600 +Choice: 5 3200 +Choice: 6 6400 +Choice: 7 12800 +Choice: 8 25600 +END +/main/other/5010 +Label: Exposure Bias Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +END +/main/other/5011 +Label: Date & Time +Readonly: 0 +Type: TEXT +Current: 20181221T133520 +END +/main/other/5013 +Label: Still Capture Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32785 +Choice: 3 32790 +END +/main/other/5018 +Label: Burst Number +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +END +/main/other/501c +Label: Focus Metering Mode +Readonly: 0 +Type: MENU +Current: 32785 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +END +/main/other/501e +Label: Artist +Readonly: 1 +Type: TEXT +Current: +END +/main/other/501f +Label: Copyright Info +Readonly: 1 +Type: TEXT +Current: +END +/main/other/d303 +Label: PTP Property 0xd303 +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d406 +Label: PTP Property 0xd406 +Readonly: 0 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +END +/main/other/d407 +Label: PTP Property 0xd407 +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d015 +Label: Reset Bank 0 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d01f +Label: White Balance Preset Number +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d032 +Label: Color Space +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d037 +Label: Effect Mode +Readonly: 0 +Type: MENU +Current: 11 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +END +/main/other/d054 +Label: Auto ISO +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d05d +Label: Live View AF Area +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d061 +Label: Live View AF Focus +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/d06b +Label: Long Exposure Noise Reduction +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d08a +Label: No CF Card Release +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d09c +Label: PTP Property 0xd09c +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0a0 +Label: Movie Screen Size +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +END +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Readonly: 1 +Type: TEXT +Current: 800 +END +/main/other/d0e0 +Label: Lens ID +Readonly: 1 +Type: TEXT +Current: 928 +END +/main/other/d0e1 +Label: Lens Sort +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0e2 +Label: Lens Type +Readonly: 1 +Type: TEXT +Current: 383 +END +/main/other/d0e3 +Label: Min. Focal Length +Readonly: 1 +Type: TEXT +Current: 1800 +END +/main/other/d0e4 +Label: Max. Focal Length +Readonly: 1 +Type: TEXT +Current: 5500 +END +/main/other/d100 +Label: Nikon Exposure Time +Readonly: 1 +Type: MENU +Current: 65786 +Choice: 0 69536 +Choice: 1 68736 +Choice: 2 68036 +Choice: 3 67536 +Choice: 4 67136 +Choice: 5 66786 +Choice: 6 66536 +Choice: 7 66336 +Choice: 8 66176 +Choice: 9 66036 +Choice: 10 65936 +Choice: 11 65856 +Choice: 12 65786 +Choice: 13 65736 +Choice: 14 65696 +Choice: 15 65661 +Choice: 16 65636 +Choice: 17 65616 +Choice: 18 65596 +Choice: 19 65586 +Choice: 20 65576 +Choice: 21 65566 +Choice: 22 65561 +Choice: 23 65556 +Choice: 24 65551 +Choice: 25 65549 +Choice: 26 65546 +Choice: 27 65544 +Choice: 28 65542 +Choice: 29 65541 +Choice: 30 65540 +Choice: 31 65539 +Choice: 32 655385 +Choice: 33 65538 +Choice: 34 655376 +Choice: 35 655373 +Choice: 36 65537 +Choice: 37 851978 +Choice: 38 1048586 +Choice: 39 131073 +Choice: 40 1638410 +Choice: 41 196609 +Choice: 42 262145 +Choice: 43 327681 +Choice: 44 393217 +Choice: 45 524289 +Choice: 46 655361 +Choice: 47 851969 +Choice: 48 983041 +Choice: 49 1310721 +Choice: 50 1638401 +Choice: 51 1966081 +Choice: 52 -1 +Choice: 53 -3 +END +/main/other/d101 +Label: AC Power +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d102 +Label: Warning Status +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d10b +Label: Recording Media +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d14e +Label: Active D-Lighting +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d161 +Label: Autofocus Mode +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +END +/main/other/d163 +Label: AF Assist Lamp +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d16a +Label: ISO Auto +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1a2 +Label: Live View Status +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d1a4 +Label: Live View Prohibit Condition +Readonly: 1 +Type: TEXT +Current: -2147483648 +END +/main/other/d1ac +Label: PTP Property 0xd1ac +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d1b5 +Label: PTP Property 0xd1b5 +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32800 +END +/main/other/d1dd +Label: PTP Property 0xd1dd +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Readonly: 1 +Type: RANGE +Current: 3651 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d200 +Label: Active Pic Ctrl Item +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +END +/main/other/d201 +Label: Change Pic Ctrl Item +Readonly: 1 +Type: MENU +Current: 0 +END diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3s.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3s.txt new file mode 100644 index 00000000..04a1a8a7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d3s.txt @@ -0,0 +1,3928 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D3S + device version: V1.00 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9200 + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9209 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 + 0xc104 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0x501e + 0x501f + 0xd303 + 0xd406 + 0xd407 + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd020 + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd048 + 0xd049 + 0xd04b + 0xd04c + 0xd04d + 0xd04f + 0xd050 + 0xd051 + 0xd053 + 0xd054 + 0xd055 + 0xd056 + 0xd057 + 0xd058 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd065 + 0xd067 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd06d + 0xd06e + 0xd06f + 0xd070 + 0xd071 + 0xd072 + 0xd073 + 0xd074 + 0xd075 + 0xd077 + 0xd078 + 0xd079 + 0xd07a + 0xd07f + 0xd080 + 0xd081 + 0xd082 + 0xd083 + 0xd084 + 0xd085 + 0xd086 + 0xd087 + 0xd088 + 0xd089 + 0xd08a + 0xd08b + 0xd08c + 0xd08d + 0xd08e + 0xd090 + 0xd091 + 0xd092 + 0xd093 + 0xd094 + 0xd095 + 0xd096 + 0xd097 + 0xd098 + 0xd099 + 0xd09a + 0xd09b + 0xd0a0 + 0xd0a2 + 0xd0a3 + 0xd0a5 + 0xd0b0 + 0xd0b1 + 0xd0b4 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f2 + 0xd0f3 + 0xd0f4 + 0xd0f7 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10c + 0xd10d + 0xd10e + 0xd110 + 0xd111 + 0xd115 + 0xd120 + 0xd121 + 0xd122 + 0xd123 + 0xd124 + 0xd125 + 0xd148 + 0xd149 + 0xd14e + 0xd14f + 0xd150 + 0xd151 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd160 + 0xd164 + 0xd183 + 0xd184 + 0xd186 + 0xd187 + 0xd189 + 0xd18a + 0xd18b + 0xd18d + 0xd18f + 0xd191 + 0xd192 + 0xd193 + 0xd1a0 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1f0 + 0xd1f1 + 0xd1f2 + 0xd200 + 0xd201 + +Camera summary: +Manufacturer: Nikon Corporation +Model: D3S + Version: V1.00 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type TIFF +Display Formats: JPEG, Undefined Type, Association/Directory, MS Wave, MS AVI, TIFF, DPOF, Script +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc87/Width dc88/Height dcd3/ImageBitDepth + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + TIFF/380d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc87/Width dc88/Height dcd3/ImageBitDepth + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Script/3002: PTP error a802 on query + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D3S [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 16009887744 (15268 MB) + Free Space (Bytes): 15932981248 (15194 MB) + Free Space (Images): 4265 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 76% (76) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4256x2832', + '3184x2120', + '2128x1416' + ] value: '4256x2832' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: JPEG Norm (1) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/2.8 (280) +Focal Length(0x5008):(read only) (type=0x6) Range [2000 - 2000, step 1] value: 20 mm (2000) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32786] value: Default (32784) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 1e-05 sec (1) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: S (4) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,14400,20000,25600,51200] value: ISO 200 (200) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20101013T101145' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 103, step 1] value: 1 +Focus Metering Mode(0x501c):(read only) (type=0x4) Enumeration [2,32784,32785] value: Single Area (32784) +Artist(0x501e):(read only) (type=0xffff) '(null)' +Copyright Info(0x501f):(read only) (type=0xffff) '(null)' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Shooting Bank(0xd010):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Shooting Bank Name A(0xd011):(readwrite) (type=0xffff) ' ' +Shooting Bank Name B(0xd012):(readwrite) (type=0xffff) ' ' +Shooting Bank Name C(0xd013):(readwrite) (type=0xffff) ' ' +Shooting Bank Name D(0xd014):(readwrite) (type=0xffff) ' ' +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +White Balance Preset Name 0(0xd020):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 30802268 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 30802268 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 30802268 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 30802268 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 30802268 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +JPEG Compression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto DX Crop(0xd033):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Property 0xd034:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Menu Bank Name A(0xd041):(readwrite) (type=0xffff) ' ' +Menu Bank Name B(0xd042):(readwrite) (type=0xffff) ' ' +Menu Bank Name C(0xd043):(readwrite) (type=0xffff) ' ' +Menu Bank Name D(0xd044):(readwrite) (type=0xffff) ' ' +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A4AFActivation(0xd04b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_FocusAreaIllumManualFocus(0xd04c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_FocusAreaIllumContinuous(0xd04d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Vertical AF On(0xd050):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 1 +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Exposure Compensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Compensation(0xd058):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 16, step 1] value: AF Lock Hold (3) +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 6 seconds (1) +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 10 seconds (2) +Img Conf Time(0xd065):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Angle Level(0xd067):(read only) (type=0x5) 23565537 +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 4 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 130, step 1] value: 130 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +PTP_DPC_NIKON_ControlPanelFinderRearControl(0xd06d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_ControlPanelFinderViewfinder(0xd06e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +LCD Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +On screen tips(0xd071):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Artist Name(0xd072):(readwrite) (type=0xffff) '(null)' +Copyright Information(0xd073):(readwrite) (type=0xffff) '(null)' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 1 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Modeling Flash(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Property 0xd07f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Center Button Shooting Mode(0xd080):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Highlight active focus point (1) +Center Button Playback Mode(0xd081):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Multiselector(0xd082):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Photo Info. Playback(0xd083):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Assign Func. Button(0xd084):(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +Customise Command Dials(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Reverse Command Dial(0xd086):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Menus and Playback(0xd088):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Buttons and Dials(0xd089):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Center Button Zoom Ratio(0xd08b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Function Button 2(0xd08c):(readwrite) (type=0x2) Enumeration [0,1,2,4,7,9,10] value: 1 +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Normal AF On(0xd08e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Property 0xd094:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd095:(readwrite) (type=0x1) Range [-20 - 20, step 1] value: 0 +Property 0xd096:(readwrite) (type=0x1) Range [-20 - 21, step 1] value: 21 +Property 0xd097:(readwrite) (type=0x1) Range [0 - 19, step 1] value: 0 +Property 0xd098:(readwrite) (type=0x1) Range [0 - 100, step 1] value: 0 +Property 0xd099:(read only) (type=0x1) Range [0 - 20, step 1] value: 0 +Property 0xd09a:(read only) (type=0x1) Range [0 - 20, step 1] value: 20 +Property 0xd09b:(readwrite) (type=0x1) Range [0 - 1, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Property 0xd0a2:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd0a3:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0a5:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0b0:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Property 0xd0b1:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd0b4:(readwrite) (type=0x6) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,14400,20000,25600,51200,102400] value: 200 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 3 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 9, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 7, step 1] value: 3 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 55 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 1 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 20 mm (2000) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 20 mm (2000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/2.8 (280) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/2.8 (280) +Auto Off Photo(0xd0f2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Auto Off Menu(0xd0f3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Auto Off Info(0xd0f4):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Nikon Exposure Time(0xd100):(readwrite) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967294] value: 73536 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 103, step 1] value: 84 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 51, step 1] value: 39 +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 1, step 1] value: USB 2.0 (1) +CCD Serial Number(0xd10d):(read only) (type=0xffff) ' 66A31 01 ' +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +FNumber Lock(0xd110):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Aperture Lock(0xd111):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Focus Point Bright(0xd115):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +External Flash Mode(0xd123):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Slot 2 Save Mode(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 4 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 0(0xd151):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 1(0xd152):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 2(0xd153):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 3(0xd154):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 4(0xd155):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +AF Beep Mode(0xd160):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 26, step 1] value: 1/125 (0) +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 26, step 1] value: 20 +Dynamic AF Area(0xd184):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Continuous Speed High(0xd186):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Info Disp Setting(0xd187):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Preview Button(0xd189):(readwrite) (type=0x2) Range [0 - 15, step 1] value: 1 +Preview Button 2(0xd18a):(readwrite) (type=0x2) Enumeration [0,1,2,7,9,10] value: 0 +AEAF Lock Button 2(0xd18b):(readwrite) (type=0x2) Enumeration [0,1,7,9,10] value: 0 +Indicator Display(0xd18d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd18f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd191:(readwrite) (type=0x6) 15 +Property 0xd192:(readwrite) (type=0x6) 15 +Property 0xd193:(readwrite) (type=0x6) 15 +Live View Mode(0xd1a0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 8, step 1] value: 3 +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: -3.3 stops (-40) +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 4265 +Property 0xd1f2:(read only) (type=0x2) Range [0 - 3, step 1] value: 1 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1286961198 +Printable: Wed 13 Oct 2010 11:13:18 AM CEST +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +/main/settings/meterofftime +Label: Meter Off Time +Type: RADIO +Current: 6 seconds +Choice: 0 4 seconds +Choice: 1 6 seconds +Choice: 2 8 seconds +Choice: 3 16 seconds +Choice: 4 30 seconds +Choice: 5 1 minute +Choice: 6 5 minutes +Choice: 7 10 minutes +Choice: 8 30 minutes +/main/settings/reversedial +Label: Reverse Command Dial +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 75% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 20 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 20 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 3 mm +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 3 mm +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 3 +Bottom: 0 +Top: 8 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: -40 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/fvlocked +Label: FV Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Normal +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Basic +Choice: 5 NEF+Normal +Choice: 6 NEF+Fine +Choice: 7 TIFF (RGB) +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 4256x2832 +Choice: 0 4256x2832 +Choice: 1 3184x2120 +Choice: 2 2128x1416 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 200 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 14400 +Choice: 23 20000 +Choice: 24 25600 +Choice: 25 51200 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/autoisopadv +Label: Auto ISO PADV Time +Type: RADIO +Current: 1/125 +Choice: 0 1/125 +Choice: 1 1/60 +Choice: 2 1/30 +Choice: 3 1/15 +Choice: 4 1/8 +Choice: 5 1/4 +Choice: 6 1/2 +Choice: 7 1 +Choice: 8 2 +Choice: 9 4 +Choice: 10 8 +Choice: 11 15 +Choice: 12 30 +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusmode2 +Label: Auto Focus Mode 2 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/capturesettings/exposurecompensation2 +Label: Exposure Compensation +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Default +Choice: 0 Red-eye automatic +Choice: 1 Default +Choice: 2 Rear Curtain Sync + Slow Sync +/main/capturesettings/afbeep +Label: AF Beep Mode +Type: TOGGLE +Current: 0 +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/2.8 +Choice: 0 f/2.8 +Choice: 1 f/3.2 +Choice: 2 f/3.5 +Choice: 3 f/4 +Choice: 4 f/4.5 +Choice: 5 f/5 +Choice: 6 f/5.6 +Choice: 7 f/6.3 +Choice: 8 f/7.1 +Choice: 9 f/8 +Choice: 10 f/9 +Choice: 11 f/10 +Choice: 12 f/11 +Choice: 13 f/13 +Choice: 14 f/14 +Choice: 15 f/16 +Choice: 16 f/18 +Choice: 17 f/20 +Choice: 18 f/22 +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 20 +Bottom: 20 +Top: 20 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Manual +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: S +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Mirror Up +Choice: 5 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Single Area +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0001s +Choice: 0 0.0001s +Choice: 1 0.0002s +Choice: 2 0.0003s +Choice: 3 0.0004s +Choice: 4 0.0005s +Choice: 5 0.0006s +Choice: 6 0.0008s +Choice: 7 0.0010s +Choice: 8 0.0012s +Choice: 9 0.0015s +Choice: 10 0.0020s +Choice: 11 0.0025s +Choice: 12 0.0031s +Choice: 13 0.0040s +Choice: 14 0.0050s +Choice: 15 0.0062s +Choice: 16 0.0080s +Choice: 17 0.0100s +Choice: 18 0.0125s +Choice: 19 0.0166s +Choice: 20 0.0200s +Choice: 21 0.0250s +Choice: 22 0.0333s +Choice: 23 0.0400s +Choice: 24 0.0500s +Choice: 25 0.0666s +Choice: 26 0.0769s +Choice: 27 0.1000s +Choice: 28 0.1250s +Choice: 29 0.1666s +Choice: 30 0.2000s +Choice: 31 0.2500s +Choice: 32 0.3333s +Choice: 33 0.4000s +Choice: 34 0.5000s +Choice: 35 0.6250s +Choice: 36 0.7692s +Choice: 37 1.0000s +Choice: 38 1.3000s +Choice: 39 1.6000s +Choice: 40 2.0000s +Choice: 41 2.5000s +Choice: 42 3.0000s +Choice: 43 4.0000s +Choice: 44 5.0000s +Choice: 45 6.0000s +Choice: 46 8.0000s +Choice: 47 10.0000s +Choice: 48 13.0000s +Choice: 49 15.0000s +Choice: 50 20.0000s +Choice: 51 25.0000s +Choice: 52 30.0000s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/8000 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +Choice: 22 1/50 +Choice: 23 1/40 +Choice: 24 1/30 +Choice: 25 1/25 +Choice: 26 1/20 +Choice: 27 1/15 +Choice: 28 1/13 +Choice: 29 1/10 +Choice: 30 1/8 +Choice: 31 1/6 +Choice: 32 1/5 +Choice: 33 1/4 +Choice: 34 1/3 +Choice: 35 10/25 +Choice: 36 1/2 +Choice: 37 10/16 +Choice: 38 10/13 +Choice: 39 1 +Choice: 40 13/10 +Choice: 41 16/10 +Choice: 42 2 +Choice: 43 25/10 +Choice: 44 3 +Choice: 45 4 +Choice: 46 5 +Choice: 47 6 +Choice: 48 8 +Choice: 49 10 +Choice: 50 13 +Choice: 51 15 +Choice: 52 20 +Choice: 53 25 +Choice: 54 30 +Choice: 55 65535/65534 +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurelock +Label: Exposure Lock +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/aelaflmode +Label: AE-L/AF-L Mode +Type: RADIO +Current: AF Lock Hold +Choice: 0 AE/AF Lock +Choice: 1 AE Lock only +Choice: 2 AF Lock Only +Choice: 3 AF Lock Hold +Choice: 4 AF On +Choice: 5 Flash Level Lock +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Unknown value 0027 +Choice: 0 Centre +Choice: 1 Top +Choice: 2 Bottom +Choice: 3 Left +Choice: 4 Right +Choice: 5 Unknown value 0027 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE & Flash +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/bracketorder +Label: Bracket Order +Type: RADIO +Current: MTR > Under +Choice: 0 MTR > Under +Choice: 1 Under > MTR +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 103 +Step: 1 +/main/capturesettings/burstinterval +Label: Burst Interval +Type: RADIO +Current: 0.001s +Choice: 0 0.001s +Choice: 1 0.002s +Choice: 2 0.003s +Choice: 3 0.004s +Choice: 4 0.005s +Choice: 5 0.006s +Choice: 6 0.007s +Choice: 7 0.008s +Choice: 8 0.009s +Choice: 9 0.010s +Choice: 10 0.011s +Choice: 11 0.012s +Choice: 12 0.013s +Choice: 13 0.014s +Choice: 14 0.015s +Choice: 15 0.016s +Choice: 16 0.017s +Choice: 17 0.018s +Choice: 18 0.019s +Choice: 19 0.020s +Choice: 20 0.021s +Choice: 21 0.022s +Choice: 22 0.023s +Choice: 23 0.024s +Choice: 24 0.025s +Choice: 25 0.026s +Choice: 26 0.027s +Choice: 27 0.028s +Choice: 28 0.029s +Choice: 29 0.030s +Choice: 30 0.031s +Choice: 31 0.032s +Choice: 32 0.033s +Choice: 33 0.034s +Choice: 34 0.035s +Choice: 35 0.036s +Choice: 36 0.037s +Choice: 37 0.038s +Choice: 38 0.039s +Choice: 39 0.040s +Choice: 40 0.041s +Choice: 41 0.042s +Choice: 42 0.043s +Choice: 43 0.044s +Choice: 44 0.045s +Choice: 45 0.046s +Choice: 46 0.047s +Choice: 47 0.048s +Choice: 48 0.049s +Choice: 49 0.050s +Choice: 50 0.051s +Choice: 51 0.052s +Choice: 52 0.053s +Choice: 53 0.054s +Choice: 54 0.055s +Choice: 55 0.056s +Choice: 56 0.057s +Choice: 57 0.058s +Choice: 58 0.059s +Choice: 59 0.060s +Choice: 60 0.061s +Choice: 61 0.062s +Choice: 62 0.063s +Choice: 63 0.064s +Choice: 64 0.065s +Choice: 65 0.066s +Choice: 66 0.067s +Choice: 67 0.068s +Choice: 68 0.069s +Choice: 69 0.070s +Choice: 70 0.071s +Choice: 71 0.072s +Choice: 72 0.073s +Choice: 73 0.074s +Choice: 74 0.075s +Choice: 75 0.076s +Choice: 76 0.077s +Choice: 77 0.078s +Choice: 78 0.079s +Choice: 79 0.080s +Choice: 80 0.081s +Choice: 81 0.082s +Choice: 82 0.083s +Choice: 83 0.084s +Choice: 84 0.085s +Choice: 85 0.086s +Choice: 86 0.087s +Choice: 87 0.088s +Choice: 88 0.089s +Choice: 89 0.090s +Choice: 90 0.091s +Choice: 91 0.092s +Choice: 92 0.093s +Choice: 93 0.094s +Choice: 94 0.095s +Choice: 95 0.096s +Choice: 96 0.097s +Choice: 97 0.098s +Choice: 98 0.099s +Choice: 99 0.100s +Choice: 100 0.101s +Choice: 101 0.102s +Choice: 102 0.103s +/main/capturesettings/autowhitebias +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/tungstenwhitebias +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flourescentwhitebias +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/daylightwhitebias +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flashwhitebias +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/cloudywhitebias +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/shadewhitebias +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/capturesettings/whitebiaspreset0 +Label: White Balance Bias Preset 0 +Type: TEXT +Current: 30802268 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 30802268 +/main/capturesettings/whitebiaspreset2 +Label: White Balance Bias Preset 2 +Type: TEXT +Current: 30802268 +/main/capturesettings/whitebiaspreset3 +Label: White Balance Bias Preset 3 +Type: TEXT +Current: 30802268 +/main/capturesettings/whitebiaspreset4 +Label: White Balance Bias Preset 4 +Type: TEXT +Current: 30802268 +/main/capturesettings/selftimerdelay +Label: Selftimer Delay +Type: RADIO +Current: 10 seconds +Choice: 0 2 seconds +Choice: 1 5 seconds +Choice: 2 10 seconds +Choice: 3 20 seconds +/main/capturesettings/centerweightsize +Label: Center Weight Area +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +Choice: 2 10 mm +Choice: 3 12 mm +Choice: 4 Average +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +Choice: 1 1/30 +Choice: 2 1/15 +Choice: 3 1/8 +Choice: 4 1/4 +Choice: 5 1/2 +Choice: 6 1 +Choice: 7 2 +Choice: 8 4 +Choice: 9 8 +Choice: 10 15 +Choice: 11 30 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 75 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 4256x2832 +Choice: 0 4256x2832 +Choice: 1 3184x2120 +Choice: 2 2128x1416 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 280 +Choice: 0 280 +Choice: 1 320 +Choice: 2 350 +Choice: 3 400 +Choice: 4 450 +Choice: 5 500 +Choice: 6 560 +Choice: 7 630 +Choice: 8 710 +Choice: 9 800 +Choice: 10 900 +Choice: 11 1000 +Choice: 12 1100 +Choice: 13 1300 +Choice: 14 1400 +Choice: 15 1600 +Choice: 16 1800 +Choice: 17 2000 +Choice: 18 2200 +/main/other/5008 +Label: Focal Length +Type: MENU +Current: 2000 +Choice: 0 2000 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 4 +Choice: 1 32784 +Choice: 2 32786 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 8 +Choice: 7 10 +Choice: 8 12 +Choice: 9 15 +Choice: 10 20 +Choice: 11 25 +Choice: 12 31 +Choice: 13 40 +Choice: 14 50 +Choice: 15 62 +Choice: 16 80 +Choice: 17 100 +Choice: 18 125 +Choice: 19 166 +Choice: 20 200 +Choice: 21 250 +Choice: 22 333 +Choice: 23 400 +Choice: 24 500 +Choice: 25 666 +Choice: 26 769 +Choice: 27 1000 +Choice: 28 1250 +Choice: 29 1666 +Choice: 30 2000 +Choice: 31 2500 +Choice: 32 3333 +Choice: 33 4000 +Choice: 34 5000 +Choice: 35 6250 +Choice: 36 7692 +Choice: 37 10000 +Choice: 38 13000 +Choice: 39 16000 +Choice: 40 20000 +Choice: 41 25000 +Choice: 42 30000 +Choice: 43 40000 +Choice: 44 50000 +Choice: 45 60000 +Choice: 46 80000 +Choice: 47 100000 +Choice: 48 130000 +Choice: 49 150000 +Choice: 50 200000 +Choice: 51 250000 +Choice: 52 300000 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 200 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 14400 +Choice: 23 20000 +Choice: 24 25600 +Choice: 25 51200 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20101013T101336 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32790 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +Choice: 100 101 +Choice: 101 102 +Choice: 102 103 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +/main/other/501e +Label: Artist +Type: TEXT +Current: (null) +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: (null) +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d010 +Label: Shooting Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d011 +Label: Shooting Bank Name A +Type: TEXT +Current: +/main/other/d012 +Label: Shooting Bank Name B +Type: TEXT +Current: +/main/other/d013 +Label: Shooting Bank Name C +Type: TEXT +Current: +/main/other/d014 +Label: Shooting Bank Name D +Type: TEXT +Current: +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d016 +Label: Raw Compression +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01e +Label: White Balance Colour Temperature +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d020 +Label: White Balance Preset Name 0 +Type: TEXT +Current: +/main/other/d021 +Label: White Balance Preset Name 1 +Type: TEXT +Current: +/main/other/d022 +Label: White Balance Preset Name 2 +Type: TEXT +Current: +/main/other/d023 +Label: White Balance Preset Name 3 +Type: TEXT +Current: +/main/other/d024 +Label: White Balance Preset Name 4 +Type: TEXT +Current: +/main/other/d025 +Label: White Balance Preset Value 0 +Type: TEXT +Current: 30802268 +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 30802268 +/main/other/d027 +Label: White Balance Preset Value 2 +Type: TEXT +Current: 30802268 +/main/other/d028 +Label: White Balance Preset Value 3 +Type: TEXT +Current: 30802268 +/main/other/d029 +Label: White Balance Preset Value 4 +Type: TEXT +Current: 30802268 +/main/other/d02e +Label: Lens Focal Length (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d02f +Label: Lens Maximum Aperture (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +/main/other/d030 +Label: Shooting Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d031 +Label: JPEG Compression Policy +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d033 +Label: Auto DX Crop +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d034 +Label: PTP Property 0xd034 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d040 +Label: PTP_DPC_NIKON_CSMMenuBankSelect +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d041 +Label: Menu Bank Name A +Type: TEXT +Current: +/main/other/d042 +Label: Menu Bank Name B +Type: TEXT +Current: +/main/other/d043 +Label: Menu Bank Name C +Type: TEXT +Current: +/main/other/d044 +Label: Menu Bank Name D +Type: TEXT +Current: +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d04b +Label: PTP_DPC_NIKON_A4AFActivation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d04c +Label: PTP_DPC_NIKON_FocusAreaIllumManualFocus +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d04d +Label: PTP_DPC_NIKON_FocusAreaIllumContinuous +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d04f +Label: Focus Area Wrap +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d050 +Label: Vertical AF On +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d051 +Label: AF Lock On +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d055 +Label: Exposure ISO Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d057 +Label: Exposure Compensation (EV) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d058 +Label: Exposure Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d059 +Label: Centre Weight Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d05a +Label: Exposure Base Matrix +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05b +Label: Exposure Base Center +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05c +Label: Exposure Base Spot +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05e +Label: Exposure Lock +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d05f +Label: Focus Lock +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +/main/other/d062 +Label: Auto Meter Off Time +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +/main/other/d063 +Label: Self Timer Delay +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d065 +Label: Img Conf Time +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d067 +Label: Angle Level +Type: TEXT +Current: 23565203 +/main/other/d068 +Label: Shooting Speed +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d069 +Label: Maximum Shots +Type: RANGE +Current: 130 +Bottom: 1 +Top: 130 +Step: 1 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d06d +Label: PTP_DPC_NIKON_ControlPanelFinderRearControl +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06e +Label: PTP_DPC_NIKON_ControlPanelFinderViewfinder +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06f +Label: LCD Illumination +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d071 +Label: On screen tips +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: (null) +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: (null) +/main/other/d074 +Label: Flash Sync. Speed +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d075 +Label: Flash Shutter Speed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d077 +Label: Modeling Flash +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d079 +Label: Manual Mode Bracketing +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d07a +Label: Bracket Order +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d07f +Label: PTP Property 0xd07f +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d080 +Label: Center Button Shooting Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d081 +Label: Center Button Playback Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d082 +Label: Multiselector +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d083 +Label: Photo Info. Playback +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d084 +Label: Assign Func. Button +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +/main/other/d085 +Label: Customise Command Dials +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d086 +Label: Reverse Command Dial +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d087 +Label: Aperture Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d088 +Label: Menus and Playback +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d089 +Label: Buttons and Dials +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08b +Label: Center Button Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d08c +Label: Function Button 2 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 7 +Choice: 5 9 +Choice: 6 10 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08e +Label: Normal AF On +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d093 +Label: Manual Set Lens Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d094 +Label: PTP Property 0xd094 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d095 +Label: PTP Property 0xd095 +Type: MENU +Current: 0 +Choice: 0 -20 +Choice: 1 -19 +Choice: 2 -18 +Choice: 3 -17 +Choice: 4 -16 +Choice: 5 -15 +Choice: 6 -14 +Choice: 7 -13 +Choice: 8 -12 +Choice: 9 -11 +Choice: 10 -10 +Choice: 11 -9 +Choice: 12 -8 +Choice: 13 -7 +Choice: 14 -6 +Choice: 15 -5 +Choice: 16 -4 +Choice: 17 -3 +Choice: 18 -2 +Choice: 19 -1 +Choice: 20 0 +Choice: 21 1 +Choice: 22 2 +Choice: 23 3 +Choice: 24 4 +Choice: 25 5 +Choice: 26 6 +Choice: 27 7 +Choice: 28 8 +Choice: 29 9 +Choice: 30 10 +Choice: 31 11 +Choice: 32 12 +Choice: 33 13 +Choice: 34 14 +Choice: 35 15 +Choice: 36 16 +Choice: 37 17 +Choice: 38 18 +Choice: 39 19 +Choice: 40 20 +/main/other/d096 +Label: PTP Property 0xd096 +Type: MENU +Current: 21 +Choice: 0 -20 +Choice: 1 -19 +Choice: 2 -18 +Choice: 3 -17 +Choice: 4 -16 +Choice: 5 -15 +Choice: 6 -14 +Choice: 7 -13 +Choice: 8 -12 +Choice: 9 -11 +Choice: 10 -10 +Choice: 11 -9 +Choice: 12 -8 +Choice: 13 -7 +Choice: 14 -6 +Choice: 15 -5 +Choice: 16 -4 +Choice: 17 -3 +Choice: 18 -2 +Choice: 19 -1 +Choice: 20 0 +Choice: 21 1 +Choice: 22 2 +Choice: 23 3 +Choice: 24 4 +Choice: 25 5 +Choice: 26 6 +Choice: 27 7 +Choice: 28 8 +Choice: 29 9 +Choice: 30 10 +Choice: 31 11 +Choice: 32 12 +Choice: 33 13 +Choice: 34 14 +Choice: 35 15 +Choice: 36 16 +Choice: 37 17 +Choice: 38 18 +Choice: 39 19 +Choice: 40 20 +Choice: 41 21 +/main/other/d097 +Label: PTP Property 0xd097 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +/main/other/d098 +Label: PTP Property 0xd098 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/d099 +Label: PTP Property 0xd099 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +/main/other/d09a +Label: PTP Property 0xd09a +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +/main/other/d09b +Label: PTP Property 0xd09b +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0a2 +Label: PTP Property 0xd0a2 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0a3 +Label: PTP Property 0xd0a3 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a5 +Label: PTP Property 0xd0a5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0b0 +Label: PTP Property 0xd0b0 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0b1 +Label: PTP Property 0xd0b1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0b4 +Label: PTP Property 0xd0b4 +Type: MENU +Current: 200 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 14400 +Choice: 23 20000 +Choice: 24 25600 +Choice: 25 51200 +Choice: 26 102400 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 55 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 1 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 2000 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 2000 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 280 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 280 +/main/other/d0f2 +Label: Auto Off Photo +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0f3 +Label: Auto Off Menu +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0f4 +Label: Auto Off Info +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0f7 +Label: Vignette Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 73536 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +Choice: 25 65561 +Choice: 26 65556 +Choice: 27 65551 +Choice: 28 65549 +Choice: 29 65546 +Choice: 30 65544 +Choice: 31 65542 +Choice: 32 65541 +Choice: 33 65540 +Choice: 34 65539 +Choice: 35 655385 +Choice: 36 65538 +Choice: 37 655376 +Choice: 38 655373 +Choice: 39 65537 +Choice: 40 851978 +Choice: 41 1048586 +Choice: 42 131073 +Choice: 43 1638410 +Choice: 44 196609 +Choice: 45 262145 +Choice: 46 327681 +Choice: 47 393217 +Choice: 48 524289 +Choice: 49 655361 +Choice: 50 851969 +Choice: 51 983041 +Choice: 52 1310721 +Choice: 53 1638401 +Choice: 54 1966081 +Choice: 55 -2 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d103 +Label: Maximum Shots +Type: MENU +Current: 84 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +Choice: 101 101 +Choice: 102 102 +Choice: 103 103 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d106 +Label: FV Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: MENU +Current: 39 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10c +Label: USB Speed +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d10d +Label: CCD Serial Number +Type: TEXT +Current: 66A31 01 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d110 +Label: FNumber Lock +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d111 +Label: Exposure Aperture Lock +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d115 +Label: Focus Point Bright +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d123 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d148 +Label: Slot 2 Save Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: ISO Auto Time +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d150 +Label: Tune Colour Temperature +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d151 +Label: Tune Preset 0 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d152 +Label: Tune Preset 1 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d153 +Label: Tune Preset 2 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d154 +Label: Tune Preset 3 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d155 +Label: Tune Preset 4 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d160 +Label: AF Beep Mode +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +/main/other/d184 +Label: Dynamic AF Area +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d186 +Label: Continuous Speed High +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d187 +Label: Info Disp Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d189 +Label: Preview Button +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +/main/other/d18a +Label: Preview Button 2 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 7 +Choice: 4 9 +Choice: 5 10 +/main/other/d18b +Label: AEAF Lock Button 2 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 7 +Choice: 3 9 +Choice: 4 10 +/main/other/d18d +Label: Indicator Display +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d18f +Label: PTP Property 0xd18f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d191 +Label: PTP Property 0xd191 +Type: TEXT +Current: 15 +/main/other/d192 +Label: PTP Property 0xd192 +Type: TEXT +Current: 15 +/main/other/d193 +Label: PTP Property 0xd193 +Type: TEXT +Current: 15 +/main/other/d1a0 +Label: Live View Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: -38 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: PTP Property 0xd1b2 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 4265 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d1f2 +Label: PTP Property 0xd1f2 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 101 +Choice: 5 102 +Choice: 6 103 +Choice: 7 104 +Choice: 8 201 +Choice: 9 202 +Choice: 10 203 +Choice: 11 204 +Choice: 12 205 +Choice: 13 206 +Choice: 14 207 +Choice: 15 208 +Choice: 16 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d4.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d4.txt new file mode 100644 index 00000000..4af0a215 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d4.txt @@ -0,0 +1,3297 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D4 + Version: V1.02 + Serial Number: nnnnnnn0000000000000000000000000 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type TIFF +Display Formats: JPEG, Undefined Type, Association/Directory, MS Wave, TIFF, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00020001: + StorageDescription: None + VolumeLabel: NIKON D4 [Slot 2] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 15995994112 (15254 MB) + Free Space (Bytes): 10698719232 (10203 MB) + Free Space (Images): 291 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 80% (80) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4928x3280', + '3696x2456', + '2464x1640' + ] value: '4928x3280' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: RAW (4) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/2.8 (280) +Focal Length(0x5008):(read only) (type=0x6) Range [2400 - 7000, step 1] value: 56 mm (5600) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32787] value: AF-S (32784) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Center-spot (4) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.25 sec (25000) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: P (2) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,14400,20000,25600,51200] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130218T143307' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 200, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788] value: Closest Subject (32785) +Artist(0x501e):(read only) (type=0xffff) 'Christian Deckelmann' +Copyright Info(0x501f):(read only) (type=0xffff) 'Christian Deckelmann' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Shooting Bank(0xd010):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Shooting Bank Name A(0xd011):(readwrite) (type=0xffff) ' ' +Shooting Bank Name B(0xd012):(readwrite) (type=0xffff) ' ' +Shooting Bank Name C(0xd013):(readwrite) (type=0xffff) ' ' +Shooting Bank Name D(0xd014):(readwrite) (type=0xffff) ' ' +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Lossless (0) +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [1 - 4, step 1] value: 1 +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 33882480 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 33882480 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 33882480 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 33882480 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +JPEG Compression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Auto DX Crop(0xd033):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Menu Bank Name A(0xd041):(readwrite) (type=0xffff) ' ' +Menu Bank Name B(0xd042):(readwrite) (type=0xffff) ' ' +Menu Bank Name C(0xd043):(readwrite) (type=0xffff) ' ' +Menu Bank Name D(0xd044):(readwrite) (type=0xffff) ' ' +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Exposure Compensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF Area(0xd05d):(readwrite) (type=0x1) Range [0 - 3, step 1] value: 2 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 2 +Angle Level(0xd067):(read only) (type=0x5) 359.7' (23575222) +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 5 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 200, step 1] value: 200 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Artist Name(0xd072):(readwrite) (type=0xffff) 'Christian Deckelmann' +Copyright Information(0xd073):(readwrite) (type=0xffff) 'Christian Deckelmann' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 1 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Property 0xd07d:(read only) (type=0x5) 23353976 +Property 0xd07e:(read only) (type=0x5) -1 +Property 0xd07f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 0 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Movie Card Slot(0xd0a3):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 24576 +Property 0xd0a7:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0a9:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0b4:(readwrite) (type=0x6) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,14400,20000,25600,51200,102400,204800] value: 100 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 7, step 1] value: 3 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 5, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) AF-S Nikkor 24-70mm 1:2.8G ED DX (147) +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 35 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 24 mm (2400) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 70 mm (7000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/2.8 (280) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/2.8 (280) +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 1638410 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 200, step 1] value: 49 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [1 - 51, step 1] value: 11 +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +TV Lock Setting(0xd112):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AV Lock Setting(0xd113):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd118:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +HDR Mode(0xd130):(readwrite) (type=0x1) Range [0 - 2, step 1] value: 0 +HDR High Dynamic(0xd131):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +HDR Smoothing(0xd132):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Slot 2 Save Mode(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 7 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 12, step 1] value: 6 +Tune Preset 1(0xd152):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 2(0xd153):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 3(0xd154):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 4(0xd155):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd156:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15b:(read only) (type=0x4) Range [100 - 999, step 1] value: 100 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-S (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 27, step 1] value: 27 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 31, step 1] value: 24 +Continuous Speed High(0xd186):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1,2] value: 0 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a5:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a7:(read only) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: 2 +Property 0xd1a8:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566] value: 65566 +Property 0xd1a9:(read only) (type=0x4) Enumeration [280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: 280 +Property 0xd1aa:(read only) (type=0x6) Enumeration [200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,14400,20000,25600,51200,102400,204800] value: 200 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000] value: 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Property 0xd1ad:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 200, step 1] value: 50 +Property 0xd1b7:(read only) (type=0x2) Range [0 - 99, step 1] value: 0 +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 291 +Property 0xd1f2:(read only) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 2 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1361194843 +Printable: Mon Feb 18 14:40:43 2013 +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: SDRAM +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/artist +Label: Artist +Type: TEXT +Current: Christian Deckelmann +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: Christian Deckelmann +/main/settings/cleansensor +Label: Clean Sensor +Type: RADIO +Current: Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +Choice: 3 Startup and Shutdown +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: nnnnnnn0000000000000000000000000 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D4 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.02 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0 +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 80% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/orientation2 +Label: Camera Orientation +Type: TEXT +Current: 360' +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 24 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 70 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 3 +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 3 +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 0 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/fvlocked +Label: FV Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 4928x3280 +Choice: 0 4928x3280 +Choice: 1 3696x2456 +Choice: 2 2464x1640 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 100 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 14400 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 51200 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: AdobeRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/minimumshutterspeed +Label: Minimum Shutter Speed +Type: RADIO +Current: Unknown value 001b +Choice: 0 1/2000 +Choice: 1 1/1600 +Choice: 2 1/1250 +Choice: 3 1/1000 +Choice: 4 1/800 +Choice: 5 1/640 +Choice: 6 1/500 +Choice: 7 1/400 +Choice: 8 1/320 +Choice: 9 1/250 +Choice: 10 1/200 +Choice: 11 1/160 +Choice: 12 1/125 +Choice: 13 1/100 +Choice: 14 1/80 +Choice: 15 1/60 +Choice: 16 1/50 +Choice: 17 1/40 +Choice: 18 1/30 +Choice: 19 1/15 +Choice: 20 1/8 +Choice: 21 1/4 +Choice: 22 1/2 +Choice: 23 1 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +/main/capturesettings/isoautohilimit +Label: ISO Auto Hi Limit +Type: RADIO +Current: Unknown value 0018 +Choice: 0 400 +Choice: 1 800 +Choice: 2 1600 +Choice: 3 3200 +Choice: 4 Hi 1 +Choice: 5 Hi 2 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +Choice: 22 Unknown value 0016 +Choice: 23 Unknown value 0017 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 Unknown value 001c +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +/main/capturesettings/dlighting +Label: Active D-Lighting +Type: RADIO +Current: Unknown value 0007 +Choice: 0 Extra high +Choice: 1 High +Choice: 2 Normal +Choice: 3 Low +Choice: 4 Off +Choice: 5 Auto +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +/main/capturesettings/highisonr +Label: High ISO Noise Reduction +Type: RADIO +Current: Low +Choice: 0 Off +Choice: 1 Low +Choice: 2 Normal +Choice: 3 High +/main/capturesettings/shootingspeed +Label: Continuous Shooting Speed Slow +Type: RADIO +Current: Unknown value 0005 +Choice: 0 4 fps +Choice: 1 3 fps +Choice: 2 2 fps +Choice: 3 1 fps +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +/main/capturesettings/maximumcontinousrelease +Label: Maximum continuous release +Type: RANGE +Current: 200 +Bottom: 1 +Top: 200 +Step: 1 +/main/capturesettings/moviequality +Label: Movie Quality +Type: RADIO +Current: 320x216 +Choice: 0 320x216 +Choice: 1 640x424 +Choice: 2 1280x720 +Choice: 3 Unknown value 0003 +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/capturesettings/rawcompression +Label: Raw Compression +Type: RADIO +Current: Lossless +Choice: 0 Lossless +Choice: 1 Lossy +Choice: 2 Unknown value 0002 +/main/capturesettings/shootingspeedhigh +Label: Continuous Shooting Speed High +Type: RADIO +Current: 11 fps +Choice: 0 11 fps +Choice: 1 10 fps +/main/capturesettings/flashsyncspeed +Label: Flash Sync. Speed +Type: RADIO +Current: 1/250s +Choice: 0 1/250s (Auto FP) +Choice: 1 1/250s +Choice: 2 1/200s +Choice: 3 1/160s +Choice: 4 1/125s +Choice: 5 1/100s +Choice: 6 1/80s +Choice: 7 1/60s +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Type: RADIO +Current: 1/60s +Choice: 0 1/60s +Choice: 1 1/30s +Choice: 2 1/15s +Choice: 3 1/8s +Choice: 4 1/4s +Choice: 5 1/2s +Choice: 6 1s +Choice: 7 2s +Choice: 8 4s +Choice: 9 8s +Choice: 10 15s +Choice: 11 30s +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Red-eye automatic +Choice: 1 Auto +Choice: 2 Auto Slow Sync +Choice: 3 Rear Curtain Sync + Slow Sync +Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/2.8 +Choice: 0 f/2.8 +Choice: 1 f/3.2 +Choice: 2 f/3.5 +Choice: 3 f/4 +Choice: 4 f/4.5 +Choice: 5 f/5 +Choice: 6 f/5.6 +Choice: 7 f/6.3 +Choice: 8 f/7.1 +Choice: 9 f/8 +Choice: 10 f/9 +Choice: 11 f/10 +Choice: 12 f/11 +Choice: 13 f/13 +Choice: 14 f/14 +Choice: 15 f/16 +Choice: 16 f/18 +Choice: 17 f/20 +Choice: 18 f/22 +/main/capturesettings/flexibleprogram +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: NEF (Raw) +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 Unknown value 0003 +Choice: 4 NEF (Raw) +Choice: 5 NEF+Basic +Choice: 6 NEF+Normal +Choice: 7 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 56 +Bottom: 24 +Top: 70 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-S +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: AF-S +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: P +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +/main/capturesettings/hdrhighdynamic +Label: HDR High Dynamic +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 1 EV +Choice: 2 2 EV +Choice: 3 3 EV +/main/capturesettings/hdrsmoothing +Label: HDR Smoothing +Type: RADIO +Current: Normal +Choice: 0 High +Choice: 1 Normal +Choice: 2 Unknown value 0002 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Mirror Up +Choice: 5 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Closest Subject +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +Choice: 4 Unknown value 8013 +Choice: 5 Unknown value 8014 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Center Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0666s +Choice: 0 0.0001s +Choice: 1 0.0002s +Choice: 2 0.0003s +Choice: 3 0.0004s +Choice: 4 0.0005s +Choice: 5 0.0006s +Choice: 6 0.0008s +Choice: 7 0.0010s +Choice: 8 0.0012s +Choice: 9 0.0015s +Choice: 10 0.0020s +Choice: 11 0.0025s +Choice: 12 0.0031s +Choice: 13 0.0040s +Choice: 14 0.0050s +Choice: 15 0.0062s +Choice: 16 0.0080s +Choice: 17 0.0100s +Choice: 18 0.0125s +Choice: 19 0.0166s +Choice: 20 0.0200s +Choice: 21 0.0250s +Choice: 22 0.0333s +Choice: 23 0.0400s +Choice: 24 0.0500s +Choice: 25 0.0666s +Choice: 26 0.0769s +Choice: 27 0.1000s +Choice: 28 0.1250s +Choice: 29 0.1666s +Choice: 30 0.2000s +Choice: 31 0.2500s +Choice: 32 0.3333s +Choice: 33 0.4000s +Choice: 34 0.5000s +Choice: 35 0.6250s +Choice: 36 0.7692s +Choice: 37 1.0000s +Choice: 38 1.3000s +Choice: 39 1.6000s +Choice: 40 2.0000s +Choice: 41 2.5000s +Choice: 42 3.0000s +Choice: 43 4.0000s +Choice: 44 5.0000s +Choice: 45 6.0000s +Choice: 46 8.0000s +Choice: 47 10.0000s +Choice: 48 13.0000s +Choice: 49 15.0000s +Choice: 50 20.0000s +Choice: 51 25.0000s +Choice: 52 30.0000s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/15 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +Choice: 22 1/50 +Choice: 23 1/40 +Choice: 24 1/30 +Choice: 25 1/25 +Choice: 26 1/20 +Choice: 27 1/15 +Choice: 28 1/13 +Choice: 29 1/10 +Choice: 30 1/8 +Choice: 31 1/6 +Choice: 32 1/5 +Choice: 33 1/4 +Choice: 34 1/3 +Choice: 35 10/25 +Choice: 36 1/2 +Choice: 37 10/16 +Choice: 38 10/13 +Choice: 39 1 +Choice: 40 13/10 +Choice: 41 16/10 +Choice: 42 2 +Choice: 43 25/10 +Choice: 44 3 +Choice: 45 4 +Choice: 46 5 +Choice: 47 6 +Choice: 48 8 +Choice: 49 10 +Choice: 50 13 +Choice: 51 15 +Choice: 52 20 +Choice: 53 25 +Choice: 54 30 +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Full-time-servo AF +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Unknown value 0003 +Choice: 3 Manual Focus +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Unknown value 000b +Choice: 0 Top +Choice: 1 Bottom +Choice: 2 Left +Choice: 3 Right +Choice: 4 Unknown value 0005 +Choice: 5 Unknown value 0006 +Choice: 6 Unknown value 0007 +Choice: 7 Unknown value 0008 +Choice: 8 Unknown value 0009 +Choice: 9 Unknown value 000a +Choice: 10 Unknown value 000b +Choice: 11 Unknown value 000c +Choice: 12 Unknown value 000d +Choice: 13 Unknown value 000e +Choice: 14 Unknown value 000f +Choice: 15 Unknown value 0010 +Choice: 16 Unknown value 0011 +Choice: 17 Unknown value 0012 +Choice: 18 Unknown value 0013 +Choice: 19 Unknown value 0014 +Choice: 20 Unknown value 0015 +Choice: 21 Unknown value 0016 +Choice: 22 Unknown value 0017 +Choice: 23 Unknown value 0018 +Choice: 24 Unknown value 0019 +Choice: 25 Unknown value 001a +Choice: 26 Unknown value 001b +Choice: 27 Unknown value 001c +Choice: 28 Unknown value 001d +Choice: 29 Unknown value 001e +Choice: 30 Unknown value 001f +Choice: 31 Unknown value 0020 +Choice: 32 Unknown value 0021 +Choice: 33 Unknown value 0022 +Choice: 34 Unknown value 0023 +Choice: 35 Unknown value 0024 +Choice: 36 Unknown value 0025 +Choice: 37 Unknown value 0026 +Choice: 38 Unknown value 0027 +Choice: 39 Unknown value 0028 +Choice: 40 Unknown value 0029 +Choice: 41 Unknown value 002a +Choice: 42 Unknown value 002b +Choice: 43 Unknown value 002c +Choice: 44 Unknown value 002d +Choice: 45 Unknown value 002e +Choice: 46 Unknown value 002f +Choice: 47 Unknown value 0030 +Choice: 48 Unknown value 0031 +Choice: 49 Unknown value 0032 +Choice: 50 Unknown value 0033 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/bracketmode +Label: Bracketing +Type: RADIO +Current: Flash/speed +Choice: 0 Flash/speed +Choice: 1 Flash/speed/aperture +Choice: 2 Flash/aperture +Choice: 3 Flash only +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +Choice: 2 Unknown value 0002 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE & Flash +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/bracketorder +Label: Bracket Order +Type: RADIO +Current: MTR > Under +Choice: 0 MTR > Under +Choice: 1 Under > MTR +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 200 +Step: 1 +/main/capturesettings/maximumshots +Label: Maximum Shots +Type: TEXT +Current: 49 +/main/capturesettings/autowhitebias +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/tungstenwhitebias +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flourescentwhitebias +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/daylightwhitebias +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flashwhitebias +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/cloudywhitebias +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/shadewhitebias +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 33882480 +/main/capturesettings/whitebiaspreset2 +Label: White Balance Bias Preset 2 +Type: TEXT +Current: 33882480 +/main/capturesettings/whitebiaspreset3 +Label: White Balance Bias Preset 3 +Type: TEXT +Current: 33882480 +/main/capturesettings/whitebiaspreset4 +Label: White Balance Bias Preset 4 +Type: TEXT +Current: 33882480 +/main/capturesettings/centerweightsize +Label: Center Weight Area +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +Choice: 2 10 mm +Choice: 3 12 mm +Choice: 4 Average +/main/capturesettings/microphone +Label: Microphone +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +Choice: 5 Unknown value 0005 +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 80 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 4928x3280 +Choice: 0 4928x3280 +Choice: 1 3696x2456 +Choice: 2 2464x1640 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 280 +Choice: 0 280 +Choice: 1 320 +Choice: 2 350 +Choice: 3 400 +Choice: 4 450 +Choice: 5 500 +Choice: 6 560 +Choice: 7 630 +Choice: 8 710 +Choice: 9 800 +Choice: 10 900 +Choice: 11 1000 +Choice: 12 1100 +Choice: 13 1300 +Choice: 14 1400 +Choice: 15 1600 +Choice: 16 1800 +Choice: 17 2000 +Choice: 18 2200 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 5600 +Bottom: 2400 +Top: 7000 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 4 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 4 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 666 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 8 +Choice: 7 10 +Choice: 8 12 +Choice: 9 15 +Choice: 10 20 +Choice: 11 25 +Choice: 12 31 +Choice: 13 40 +Choice: 14 50 +Choice: 15 62 +Choice: 16 80 +Choice: 17 100 +Choice: 18 125 +Choice: 19 166 +Choice: 20 200 +Choice: 21 250 +Choice: 22 333 +Choice: 23 400 +Choice: 24 500 +Choice: 25 666 +Choice: 26 769 +Choice: 27 1000 +Choice: 28 1250 +Choice: 29 1666 +Choice: 30 2000 +Choice: 31 2500 +Choice: 32 3333 +Choice: 33 4000 +Choice: 34 5000 +Choice: 35 6250 +Choice: 36 7692 +Choice: 37 10000 +Choice: 38 13000 +Choice: 39 16000 +Choice: 40 20000 +Choice: 41 25000 +Choice: 42 30000 +Choice: 43 40000 +Choice: 44 50000 +Choice: 45 60000 +Choice: 46 80000 +Choice: 47 100000 +Choice: 48 130000 +Choice: 49 150000 +Choice: 50 200000 +Choice: 51 250000 +Choice: 52 300000 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 100 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 14400 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 51200 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130218T144043 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32790 +/main/other/5018 +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 200 +Step: 1 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32785 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +/main/other/501e +Label: Artist +Type: TEXT +Current: Christian Deckelmann +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: Christian Deckelmann +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d010 +Label: Shooting Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d011 +Label: Shooting Bank Name A +Type: TEXT +Current: +/main/other/d012 +Label: Shooting Bank Name B +Type: TEXT +Current: +/main/other/d013 +Label: Shooting Bank Name C +Type: TEXT +Current: +/main/other/d014 +Label: Shooting Bank Name D +Type: TEXT +Current: +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d016 +Label: Raw Compression +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01e +Label: White Balance Colour Temperature +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d021 +Label: White Balance Preset Name 1 +Type: TEXT +Current: +/main/other/d022 +Label: White Balance Preset Name 2 +Type: TEXT +Current: +/main/other/d023 +Label: White Balance Preset Name 3 +Type: TEXT +Current: +/main/other/d024 +Label: White Balance Preset Name 4 +Type: TEXT +Current: +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 33882480 +/main/other/d027 +Label: White Balance Preset Value 2 +Type: TEXT +Current: 33882480 +/main/other/d028 +Label: White Balance Preset Value 3 +Type: TEXT +Current: 33882480 +/main/other/d029 +Label: White Balance Preset Value 4 +Type: TEXT +Current: 33882480 +/main/other/d02e +Label: Lens Focal Length (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d02f +Label: Lens Maximum Aperture (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +/main/other/d030 +Label: Shooting Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d031 +Label: JPEG Compression Policy +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d033 +Label: Auto DX Crop +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d040 +Label: PTP_DPC_NIKON_CSMMenuBankSelect +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d041 +Label: Menu Bank Name A +Type: TEXT +Current: +/main/other/d042 +Label: Menu Bank Name B +Type: TEXT +Current: +/main/other/d043 +Label: Menu Bank Name C +Type: TEXT +Current: +/main/other/d044 +Label: Menu Bank Name D +Type: TEXT +Current: +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d04f +Label: Focus Area Wrap +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d051 +Label: AF Lock On +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d055 +Label: Exposure ISO Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d057 +Label: Exposure Compensation (EV) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d059 +Label: Centre Weight Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d05a +Label: Exposure Base Matrix +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05b +Label: Exposure Base Center +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05c +Label: Exposure Base Spot +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d067 +Label: Angle Level +Type: TEXT +Current: 23569180 +/main/other/d068 +Label: Shooting Speed +Type: MENU +Current: 5 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +/main/other/d069 +Label: Maximum Shots +Type: RANGE +Current: 200 +Bottom: 1 +Top: 200 +Step: 1 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: Christian Deckelmann +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: Christian Deckelmann +/main/other/d074 +Label: Flash Sync. Speed +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d075 +Label: Flash Shutter Speed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d079 +Label: Manual Mode Bracketing +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d07a +Label: Bracket Order +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d07d +Label: PTP Property 0xd07d +Type: TEXT +Current: 23369340 +/main/other/d07e +Label: PTP Property 0xd07e +Type: TEXT +Current: -1 +/main/other/d07f +Label: PTP Property 0xd07f +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d087 +Label: Aperture Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Clean Image Sensor +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d093 +Label: Manual Set Lens Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d0a2 +Label: Movie Microphone +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0a3 +Label: Movie Card Slot +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 24576 +/main/other/d0a7 +Label: PTP Property 0xd0a7 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0a9 +Label: PTP Property 0xd0a9 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0b4 +Label: PTP Property 0xd0b4 +Type: MENU +Current: 100 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 14400 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 51200 +Choice: 29 102400 +Choice: 30 204800 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0c7 +Label: PTP Property 0xd0c7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 147 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 35 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 2400 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 7000 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 280 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 280 +/main/other/d0f7 +Label: Vignette Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0f8 +Label: Auto Distortion Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65551 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +Choice: 25 65561 +Choice: 26 65556 +Choice: 27 65551 +Choice: 28 65549 +Choice: 29 65546 +Choice: 30 65544 +Choice: 31 65542 +Choice: 32 65541 +Choice: 33 65540 +Choice: 34 65539 +Choice: 35 655385 +Choice: 36 65538 +Choice: 37 655376 +Choice: 38 655373 +Choice: 39 65537 +Choice: 40 851978 +Choice: 41 1048586 +Choice: 42 131073 +Choice: 43 1638410 +Choice: 44 196609 +Choice: 45 262145 +Choice: 46 327681 +Choice: 47 393217 +Choice: 48 524289 +Choice: 49 655361 +Choice: 50 851969 +Choice: 51 983041 +Choice: 52 1310721 +Choice: 53 1638401 +Choice: 54 1966081 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d103 +Label: Maximum Shots +Type: RANGE +Current: 49 +Bottom: 0 +Top: 200 +Step: 1 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d106 +Label: FV Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: MENU +Current: 11 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d112 +Label: TV Lock Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d113 +Label: AV Lock Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d118 +Label: PTP Property 0xd118 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d130 +Label: HDR Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d131 +Label: HDR High Dynamic +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d132 +Label: HDR Smoothing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d141 +Label: PTP Property 0xd141 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d148 +Label: Slot 2 Save Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: ISO Auto Time +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d150 +Label: Tune Colour Temperature +Type: MENU +Current: 6 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +/main/other/d152 +Label: Tune Preset 1 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d153 +Label: Tune Preset 2 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d154 +Label: Tune Preset 3 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d155 +Label: Tune Preset 4 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d156 +Label: PTP Property 0xd156 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d158 +Label: PTP Property 0xd158 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d159 +Label: PTP Property 0xd159 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15a +Label: PTP Property 0xd15a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15b +Label: PTP Property 0xd15b +Type: RANGE +Current: 100 +Bottom: 100 +Top: 999 +Step: 1 +/main/other/d15c +Label: PTP Property 0xd15c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15d +Label: PTP Property 0xd15d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 27 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +/main/other/d186 +Label: Continuous Speed High +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d197 +Label: PTP Property 0xd197 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1a5 +Label: PTP Property 0xd1a5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a6 +Label: PTP Property 0xd1a6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a7 +Label: PTP Property 0xd1a7 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +/main/other/d1a8 +Label: PTP Property 0xd1a8 +Type: MENU +Current: 65566 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +/main/other/d1a9 +Label: PTP Property 0xd1a9 +Type: MENU +Current: 280 +Choice: 0 280 +Choice: 1 320 +Choice: 2 350 +Choice: 3 400 +Choice: 4 450 +Choice: 5 500 +Choice: 6 560 +Choice: 7 630 +Choice: 8 710 +Choice: 9 800 +Choice: 10 900 +Choice: 11 1000 +Choice: 12 1100 +Choice: 13 1300 +Choice: 14 1400 +Choice: 15 1600 +Choice: 16 1800 +Choice: 17 2000 +Choice: 18 2200 +/main/other/d1aa +Label: PTP Property 0xd1aa +Type: MENU +Current: 200 +Choice: 0 200 +Choice: 1 250 +Choice: 2 320 +Choice: 3 400 +Choice: 4 500 +Choice: 5 640 +Choice: 6 800 +Choice: 7 1000 +Choice: 8 1250 +Choice: 9 1600 +Choice: 10 2000 +Choice: 11 2500 +Choice: 12 3200 +Choice: 13 4000 +Choice: 14 5000 +Choice: 15 6400 +Choice: 16 8000 +Choice: 17 10000 +Choice: 18 12800 +Choice: 19 14400 +Choice: 20 20000 +Choice: 21 25600 +Choice: 22 51200 +Choice: 23 102400 +Choice: 24 204800 +/main/other/d1ab +Label: PTP Property 0xd1ab +Type: MENU +Current: 0 +Choice: 0 -3000 +Choice: 1 -2666 +Choice: 2 -2333 +Choice: 3 -2000 +Choice: 4 -1666 +Choice: 5 -1333 +Choice: 6 -1000 +Choice: 7 -666 +Choice: 8 -333 +Choice: 9 0 +Choice: 10 333 +Choice: 11 666 +Choice: 12 1000 +Choice: 13 1333 +Choice: 14 1666 +Choice: 15 2000 +Choice: 16 2333 +Choice: 17 2666 +Choice: 18 3000 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d1ad +Label: PTP Property 0xd1ad +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: Info Display Error Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: RANGE +Current: 49 +Bottom: 0 +Top: 200 +Step: 1 +/main/other/d1b7 +Label: PTP Property 0xd1b7 +Type: MENU +Current: 50 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 291 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d1f2 +Label: PTP Property 0xd1f2 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 101 +Choice: 7 102 +Choice: 8 103 +Choice: 9 104 +Choice: 10 201 +Choice: 11 202 +Choice: 12 203 +Choice: 13 204 +Choice: 14 205 +Choice: 15 206 +Choice: 16 207 +Choice: 17 208 +Choice: 18 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d40.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d40.txt new file mode 100644 index 00000000..fdf918ab --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d40.txt @@ -0,0 +1,184 @@ +Device info: +Manufacturer: Nikon Corporation + model: D40 + device version: V1.10 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension description: microsoft.com: 1.0 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c5 + 0x90c6 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd406 + 0xd407 + +Camera summary: +Model: D40 + device version: V1.10 + serial number: nnnnnnn +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, DPOF, Script +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/unknown(dcd3) dc08/DateCreated dc09/DateModified dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: PTP error 02fe on query + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D40 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 1023541248 (976 MB) + Free Space (Bytes): 385630208 (367 MB) + Free Space (Images): 202 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100 +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3008x2000', + '2256x1496', + '1504x1000' + ] value: '3008x2000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4] value: 1 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: 2 +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [380,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: 380 +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 2000 +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786] value: 32786 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: 3 +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2] value: 2 +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,16000] value: 16000 +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32792,32785,32786,32791,32788,32787,32789] value: 32788 +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [200,400,800,1600,3200] value: 200 +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] +value: 0 +Date Time(0x5011):(readwrite) (type=0xffff) '20070521T211123' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32787,32788] value: 1 +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 60, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785] value: 2 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 + +Unlisted, but seen in USB snoop traces: + +0xd10b uint8 1 (only a single set seen) + (Marcus: unlock special commands perhaps?) + +0xd017 uint8 0 +0xd018 uint8 2 +0xd019 uint8 0 +0xd01a uint8 0 +0xd01b uint8 0 +0xd01c uint8 0 +0xd01d uint8 0 +0xd02a uint8 5 +0xd02b uint8 6 +0xd02c uint8 2 +0xd02d uint8 0 +0xd054 uint8 0 (Auto ISO! - known) +0xd062 uint8 1 +0xd064 uint8 1 +0xd066 uint8 1 +0xd06b uint8 0 +0xd091 uint8 1 +0xd092 uint8 0 +0xd0e0 uint8 0x7a (read) +0xd0e1 uint8 0x01 (read) +0xd0e2 uint8 0x0f (read) +0xd0e3 uint32 0x00000708 +0xd0e4 uint32 0x00004e20 / 20000 +0xd0e5 uint16 0x15e / 350 +0xd0e6 uint16 0x276 / 630 +0xd100 ... image sizes and quality array ... +0xd101 uint8 0 (read) +0xd102 uint8 0 (read) +0xd103 uint8 3 +0xd105 uint8 0 +0xd108 uint8 0 +0xd109 uint16 0x21e (read) +0xd10e uint8 0 +0xd120 uint8 0 +0xd124 uint8 0 +0xd126 uint8 0 +0xd140 uint8 2 +0xd142 uint8 3 +0xd161 uint8 4 +0xd16a uint8 1 +0xd1b0 uint8 0 (read) +0xd1b1 uint8 0xc4 (read) +0xd1b2 uint8 0 +0xd1c0 uint8 0 +0xd1e1 uint8 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d40x.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d40x.txt new file mode 100644 index 00000000..d0d036dd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d40x.txt @@ -0,0 +1,915 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D40X + device version: V1.00 + serial number: '6107802' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c5 + 0x90c6 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd406 + 0xd407 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01f + 0xd025 + 0xd026 + 0xd02a + 0xd02b + 0xd02c + 0xd02d + 0xd045 + 0xd054 + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd064 + 0xd065 + 0xd066 + 0xd06b + 0xd06c + 0xd084 + 0xd08a + 0xd090 + 0xd091 + 0xd092 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd108 + 0xd109 + 0xd10b + 0xd10d + 0xd10e + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd140 + 0xd142 + 0xd160 + 0xd161 + 0xd163 + 0xd164 + 0xd165 + 0xd167 + 0xd16a + 0xd16b + 0xd16d + 0xd183 + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1c0 + 0xd1c1 + 0xd1e0 + 0xd1e1 + +Camera summary: +Manufacturer: Nikon Corporation +Model: D40X + Version: V1.00 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, DPOF, Script +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002: PTP error a802 on query + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: +107802 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 998440960 (952 MB) + Free Space (Bytes): 886390784 (845 MB) + Free Space (Images): 62 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3872x2592', + '2896x1944', + '1936x1296' + ] value: '3872x2592' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4] value: RAW (4) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [140,160,180,200,220,250,280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600] value: f/9 (900) +Focal Length(0x5008):(read only) (type=0x6) Range [3000 - 3000, step 1] value: 30 mm (3000) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786] value: 32786 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Matrix (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Default (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.004 sec (400) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32792,32785,32786,32791,32788,32787,32789] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,200,400,800,1600,3200] value: ISO 400 (400) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20090115T104031' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32787,32788] value: Power Wind (2) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 51, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785] value: Single Area (32784) +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Auto White Balance Bias(0xd017):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 30081375 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 30081375 +Sharpening(0xd02a):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Auto (0) +Tone Compensation(0xd02b):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Auto (0) +Color Model(0xd02c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: sRGB (2) +Hue Adjustment(0xd02d):(readwrite) (type=0x1) Range [-9 - 9, step 3] value: 0 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE/AF Lock (0) +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 4 seconds (0) +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 seconds (0) +LCD Off Time(0xd064):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1 minute (2) +Property 0xd065:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 2 +Property 0xd066:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +Assign Func. Button(0xd084):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Lens ID(0xd0e0):(read only) (type=0x2) 248 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 11 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 30 mm (3000) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 30 mm (3000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/1.4 (140) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/1.4 (140) +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 65561 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [1 - 51, step 1] value: 5 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Centre (0) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Property 0xd10b:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd10d:(read only) (type=0xffff) ' ' +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 2, step 1] value: 0' (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Optimize Image(0xd140):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Normal (0) +Saturation(0xd142):(readwrite) (type=0x2) Range [0 - 3, step 1] value: Normal (0) +AF Beep Mode(0xd160):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 2 +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 1/30 (2) +Image Review(0xd165):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 1, step 1] value: iTTL (0) +Property 0xd16a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Remote Timeout(0xd16b):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 min (0) +Flash Mode Manual Power(0xd16d):(readwrite) (type=0x2) Range [0 - 5, step 1] value: Full (0) +Property 0xd183:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Low Light(0xd1b0):(read only) (type=0x2) Range [0 - 8, step 1] value: No (0) +Property 0xd1b1:(read only) (type=0x1) Range [-60 - 60, step 1] value: 0 +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1e0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1e1:(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 + +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1232013328 + Printable: Thu Jan 15 10:55:28 2009 +/main/settings/imgcomment + Label: Image Comment + Type: TEXT + Current: +/main/settings/imgcommentenable + Label: Enable Image Comment + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/lcdofftime + Label: LCD Off Time + Type: RADIO + Current: 1 minute + Choice: 0 10 seconds + Choice: 1 20 seconds + Choice: 2 1 minute + Choice: 3 5 minutes + Choice: 4 10 minutes +/main/settings/meterofftime + Label: Meter Off Time + Type: RADIO + Current: 4 seconds + Choice: 0 4 seconds + Choice: 1 6 seconds + Choice: 2 8 seconds + Choice: 3 16 seconds + Choice: 4 30 minutes +/main/settings/battery + Label: Battery Level + Type: TEXT + Current: 100% +/main/settings/orientation + Label: Camera Orientation + Type: RADIO + Current: 0' + Choice: 0 0' + Choice: 1 270' + Choice: 2 90' +/main/settings/acpower + Label: AC Power + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/externalflash + Label: External Flash + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/flashopen + Label: Flash Open + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/flashcharged + Label: Flash Charged + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imgquality + Label: Image Quality + Type: RADIO + Current: NEF+Basic + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF (Raw) + Choice: 4 NEF+Basic +/main/imgsettings/imgsize + Label: Image Size + Type: RADIO + Current: 3872x2592 + Choice: 0 3872x2592 + Choice: 1 2896x1944 + Choice: 2 1936x1296 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 400 + Choice: 0 100 + Choice: 1 200 + Choice: 2 400 + Choice: 3 800 + Choice: 4 1600 + Choice: 5 3200 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Daylight + Choice: 2 Fluorescent + Choice: 3 Tungsten + Choice: 4 Flash + Choice: 5 Cloudy + Choice: 6 Shade + Choice: 7 Preset +/main/imgsettings/colormodel + Label: Color Model + Type: RADIO + Current: sRGB (nature) + Choice: 0 sRGB (portrait) + Choice: 1 AdobeRGB + Choice: 2 sRGB (nature) +/main/imgsettings/autoiso + Label: Auto ISO + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/imgsettings/autoisopadv + Label: Auto ISO PADV Time + Type: RADIO + Current: 1/30 + Choice: 0 1/125 + Choice: 1 1/60 + Choice: 2 1/30 + Choice: 3 1/15 + Choice: 4 1/8 + Choice: 5 1/4 + Choice: 6 1/2 + Choice: 7 1 +/main/capturesettings/longexpnr + Label: Long Exp Noise Reduction + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusmode + Label: Auto Focus Mode + Type: RADIO + Current: AF-A + Choice: 0 AF-S + Choice: 1 AF-C + Choice: 2 AF-A + Choice: 3 AF Mode 3? report. + Choice: 4 Manual +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nikonflashmode + Label: Flash Mode + Type: RADIO + Current: iTTL + Choice: 0 iTTL + Choice: 1 Manual +/main/capturesettings/afbeep + Label: AF Beep Mode + Type: TOGGLE + Current: 0 +/main/capturesettings/f-number + Label: F-Number + Type: RADIO + Current: f/9 + Choice: 0 f/1.4 + Choice: 1 f/1.6 + Choice: 2 f/1.8 + Choice: 3 f/2 + Choice: 4 f/2.2 + Choice: 5 f/2.5 + Choice: 6 f/2.8 + Choice: 7 f/3.2 + Choice: 8 f/3.5 + Choice: 9 f/4 + Choice: 10 f/4.5 + Choice: 11 f/5 + Choice: 12 f/5.6 + Choice: 13 f/6.3 + Choice: 14 f/7.1 + Choice: 15 f/8 + Choice: 16 f/9 + Choice: 17 f/10 + Choice: 18 f/11 + Choice: 19 f/13 + Choice: 20 f/14 + Choice: 21 f/16 +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 30 + Bottom: 30 + Top: 30 + Step: 0.01 +/main/capturesettings/minfocallength + Label: Focal Length Minimum + Type: TEXT + Current: 30 mm +/main/capturesettings/maxfocallength + Label: Focal Length Maximum + Type: TEXT + Current: 30 mm +/main/capturesettings/apertureatminfocallength + Label: Maximum Aperture at Focal Length Minimum + Type: TEXT + Current: 1 mm +/main/capturesettings/apertureatmaxfocallength + Label: Maximum Aperture at Focal Length Maximum + Type: TEXT + Current: 1 mm +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: AF-A + Choice: 0 Manual + Choice: 1 AF-S + Choice: 2 AF-C + Choice: 3 AF-A +/main/capturesettings/exposurebiascompensation + Label: Exposure Bias Compensation + Type: RADIO + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/capturesettings/exptime + Label: Exposure Time + Type: RADIO + Current: 0.333 + Choice: 0 0.002 + Choice: 1 0.003 + Choice: 2 0.004 + Choice: 3 0.005 + Choice: 4 0.006 + Choice: 5 0.008 + Choice: 6 0.010 + Choice: 7 0.012 + Choice: 8 0.015 + Choice: 9 0.020 + Choice: 10 0.025 + Choice: 11 0.031 + Choice: 12 0.040 + Choice: 13 0.050 + Choice: 14 0.062 + Choice: 15 0.080 + Choice: 16 0.100 + Choice: 17 0.125 + Choice: 18 0.166 + Choice: 19 0.200 + Choice: 20 0.250 + Choice: 21 0.333 + Choice: 22 0.400 + Choice: 23 0.500 + Choice: 24 0.666 + Choice: 25 0.769 + Choice: 26 1 + Choice: 27 1.250 + Choice: 28 1.666 + Choice: 29 2 + Choice: 30 2.500 + Choice: 31 3.333 + Choice: 32 4 + Choice: 33 5 + Choice: 34 6.250 + Choice: 35 7.692 + Choice: 36 10 + Choice: 37 13 + Choice: 38 16 + Choice: 39 20 + Choice: 40 25 + Choice: 41 30 + Choice: 42 40 + Choice: 43 50 + Choice: 44 60 + Choice: 45 80 + Choice: 46 100 + Choice: 47 130 + Choice: 48 150 + Choice: 49 200 + Choice: 50 250 + Choice: 51 300 +/main/capturesettings/expprogram + Label: Exposure Program + Type: RADIO + Current: A + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S + Choice: 4 Auto + Choice: 5 Automatic (No Flash) + Choice: 6 Portrait + Choice: 7 Landscape + Choice: 8 Children + Choice: 9 Sports + Choice: 10 Macro + Choice: 11 Night Portrait +/main/capturesettings/capturemode + Label: Still Capture Mode + Type: RADIO + Current: Burst + Choice: 0 Single Shot + Choice: 1 Burst + Choice: 2 Timer + Choice: 3 Remote + Choice: 4 Timer + Remote +/main/capturesettings/focusmetermode + Label: Focus Metering Mode + Type: RADIO + Current: Single Area + Choice: 0 Dynamic Area + Choice: 1 Single Area + Choice: 2 Closest Subject +/main/capturesettings/exposuremetermode + Label: Exposure Metering Mode + Type: RADIO + Current: Multi Spot + Choice: 0 Center Weighted + Choice: 1 Multi Spot + Choice: 2 Center Spot +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Default + Choice: 0 Red-eye automatic + Choice: 1 Default + Choice: 2 Slow Sync + Choice: 3 Rear Curtain Sync + Slow Sync + Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/exposurelock + Label: Exposure Lock + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelaflmode + Label: AE-L/AF-L Mode + Type: RADIO + Current: AE/AF Lock + Choice: 0 AE/AF Lock + Choice: 1 AE Lock only + Choice: 2 AF Lock Only + Choice: 3 AF Lock Hold + Choice: 4 AF On +/main/capturesettings/filenrsequencing + Label: File Number Sequencing + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/imagereview + Label: Image Review + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/imagerotationflag + Label: Image Rotation Flag + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nocfcardrelease + Label: Release without CF card + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/flashmodemanualpower + Label: Flash Mode Manual Power + Type: RADIO + Current: Full + Choice: 0 Full + Choice: 1 1/2 + Choice: 2 1/4 + Choice: 3 1/8 + Choice: 4 1/16 + Choice: 5 Unknown value 0005 +/main/capturesettings/autofocusarea + Label: Auto Focus Area + Type: RADIO + Current: Centre + Choice: 0 Centre + Choice: 1 Top + Choice: 2 Bottom +/main/capturesettings/flashexposurecompensation + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -3 + Top: 1 + Step: 0.333333 +/main/capturesettings/burstnumber + Label: Burst Number + Type: RANGE + Current: 1 + Bottom: 1 + Top: 51 + Step: 1 +/main/capturesettings/autowhitebias + Label: Auto White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/tungstenwhitebias + Label: Tungsten White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/flourescentwhitebias + Label: Fluorescent White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/daylightwhitebias + Label: Daylight White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/flashwhitebias + Label: Flash White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/cloudywhitebias + Label: Cloudy White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/shadewhitebias + Label: Shady White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/whitebiaspresetno + Label: White Balance Bias Preset Nr + Type: RADIO + Current: 0 + Choice: 0 0 +/main/capturesettings/whitebiaspreset0 + Label: White Balance Bias Preset 0 + Type: TEXT + Current: 30081375 +/main/capturesettings/whitebiaspreset1 + Label: White Balance Bias Preset 1 + Type: TEXT + Current: 30081375 +/main/capturesettings/selftimerdelay + Label: Selftimer Delay + Type: RADIO + Current: 2 seconds + Choice: 0 2 seconds + Choice: 1 5 seconds + Choice: 2 10 seconds + Choice: 3 20 seconds +/main/capturesettings/remotetimeout + Label: Remote Timeout + Type: RADIO + Current: 1 minute + Choice: 0 1 minute + Choice: 1 5 minutes + Choice: 2 10 minutes + Choice: 3 15 minutes +/main/capturesettings/optimizeimage + Label: Optimize Image + Type: RADIO + Current: Normal + Choice: 0 Normal + Choice: 1 Vivid + Choice: 2 Sharper + Choice: 3 Softer + Choice: 4 Direct Print + Choice: 5 Portrait + Choice: 6 Landscape +/main/capturesettings/sharpening + Label: Sharpening + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Low + Choice: 3 Medium Low + Choice: 4 Medium high + Choice: 5 High + Choice: 6 None +/main/capturesettings/tonecompensation + Label: Tone Compensation + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Low contrast + Choice: 3 Medium Low + Choice: 4 Medium High + Choice: 5 High control + Choice: 6 Custom +/main/capturesettings/saturation + Label: Saturation + Type: RADIO + Current: Normal + Choice: 0 Normal + Choice: 1 Moderate + Choice: 2 Enhanced + Choice: 3 Unknown value 0003 +/main/capturesettings/hueadjustment + Label: Hue Adjustment + Type: RANGE + Current: 0 + Bottom: -9 + Top: 9 + Step: 3 +/main/capturesettings/lowlight + Label: Low Light + Type: RANGE + Current: 0 + Bottom: 0 + Top: 8 + Step: 1 +/main/capturesettings/aflocked + Label: AF Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelocked + Label: AE Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/wifiprofiles/new/name + Label: Profile name + Type: TEXT + Current: +/main/wifiprofiles/new/essid + Label: WIFI ESSID + Type: TEXT + Current: +/main/wifiprofiles/new/ipaddr + Label: IP address (empty for DHCP) + Type: TEXT + Current: +/main/wifiprofiles/new/netmask + Label: Network mask + Type: TEXT + Current: +/main/wifiprofiles/new/gw + Label: Default gateway + Type: TEXT + Current: +/main/wifiprofiles/new/accessmode + Label: Access mode + Type: RADIO + Current: Managed + Choice: 0 Managed + Choice: 1 Ad-hoc +/main/wifiprofiles/new/channel + Label: WIFI channel + Type: RANGE + Current: 1 + Bottom: 1 + Top: 11 + Step: 1 +/main/wifiprofiles/new/encryption + Label: Encryption + Type: RADIO + Current: None + Choice: 0 None + Choice: 1 WEP 64-bit + Choice: 2 WEP 128-bit +/main/wifiprofiles/new/key + Label: Encryption key (hex) + Type: TEXT + Current: +/main/wifiprofiles/new/write + Label: Write + Type: TOGGLE + Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d4s.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d4s.txt new file mode 100644 index 00000000..04cedb9a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d4s.txt @@ -0,0 +1,292 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D4S + device version: V1.10 + serial number: '0000000000000000000000000nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: Microsoft.com/DeviceServices: +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9209 + 0x920a + 0x920b + 0x920c + 0x920f + 0x9400 + 0x9401 + 0x9402 + 0x9403 + 0x9404 + 0x9405 + 0x9406 + 0x940c + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 + 0xc105 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0x501e + 0x501f + 0xd303 + 0xd406 + 0xd407 + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd038 + 0xd039 + 0xd03a + 0xd03b + 0xd03c + 0xd03d + 0xd03e + 0xd03f + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd048 + 0xd049 + 0xd04f + 0xd051 + 0xd053 + 0xd054 + 0xd055 + 0xd056 + 0xd057 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05d + 0xd061 + 0xd067 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd070 + 0xd072 + 0xd073 + 0xd074 + 0xd075 + 0xd078 + 0xd079 + 0xd07a + 0xd07d + 0xd07e + 0xd07f + 0xd087 + 0xd08a + 0xd08d + 0xd08f + 0xd090 + 0xd091 + 0xd092 + 0xd093 + 0xd09c + 0xd0a0 + 0xd0a2 + 0xd0a3 + 0xd0a4 + 0xd0a7 + 0xd0a8 + 0xd0aa + 0xd0ac + 0xd0ad + 0xd0ae + 0xd0b4 + 0xd0b5 + 0xd0b6 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0c7 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f7 + 0xd0f8 + 0xd100 + 0xd101 + 0xd102 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10e + 0xd112 + 0xd113 + 0xd118 + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd130 + 0xd131 + 0xd132 + 0xd141 + 0xd148 + 0xd149 + 0xd14e + 0xd14f + 0xd150 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd156 + 0xd158 + 0xd159 + 0xd15a + 0xd15b + 0xd15c + 0xd15d + 0xd161 + 0xd164 + 0xd176 + 0xd177 + 0xd183 + 0xd186 + 0xd197 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1a5 + 0xd1a6 + 0xd1a7 + 0xd1a8 + 0xd1a9 + 0xd1aa + 0xd1ab + 0xd1ac + 0xd1ad + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1b4 + 0xd1b7 + 0xd1f0 + 0xd1f1 + 0xd1f2 + 0xd1f4 + 0xd200 + 0xd201 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d50.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d50.txt new file mode 100644 index 00000000..1bbe75b9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d50.txt @@ -0,0 +1,801 @@ +Device info: +Manufacturer: Nikon Corporation + model: D50 + device version: V1.00 + serial number: '(null)' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c5 + 0x90c6 + 0x90c7 + 0x90c8 + 0x90c9 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd01f + 0xd025 + 0xd026 + 0xd02a + 0xd02b + 0xd02c + 0xd02d + 0xd045 + 0xd054 + 0xd056 + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd064 + 0xd06b + 0xd06c + 0xd07c + 0xd08a + 0xd090 + 0xd091 + 0xd092 + 0xd0c3 + 0xd0c4 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10a + 0xd10b + 0xd10d + 0xd10e + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd140 + 0xd142 + 0xd160 + 0xd161 + 0xd163 + 0xd164 + 0xd165 + 0xd166 + 0xd167 + 0xd16a + 0xd16b + 0xd16d + 0xd180 + 0xd190 + 0xd1b0 + 0xd1c0 + 0xd1c1 + +Camera summary: +Model: D50 + device version: V1.00 + serial number: (null) +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 25% (25) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3008x2000', + '2256x1496', + '1504x1000' + ] value: '3008x2000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5] value: JPEG Norm (1) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Auto (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [380,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/3.8 (380) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 20 mm (2000) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786] value: 32786 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Matrix (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784] value: Default (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967295] value: 0.02 sec (2000) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32791] value: Auto (32784) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [200,400,800,1600] value: ISO 800 (800) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date Time(0x5011):(readwrite) (type=0xffff) '20060608T205652' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32787,32788] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 49, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785] value: Closest Subject (32785) +Property 0xd01f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd025:(read only) (type=0x6) 33685926 +Property 0xd026:(read only) (type=0x6) 33685926 +Sharpening(0xd02a):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Tone Compensation(0xd02b):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Color Mode(0xd02c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: sRGB (0) +Hue Adjustment(0xd02d):(readwrite) (type=0x1) Range [-9 - 9, step 3] value: 0 +Property 0xd045:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +LCD Off Time(0xd064):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Property 0xd07c:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Property 0xd091:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd0c3:(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +Property 0xd0c4:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 140 +Property 0xd0e1:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0e2:(read only) (type=0x2) 3 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 55 mm (5500) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560) +Property 0xd100:(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967295] value: 65541 +Property 0xd101:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd102:(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 49, step 1] value: 12 +Property 0xd104:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd105:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd106:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 4, step 1] value: Centre (0) +Property 0xd109:(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Exposure Meter(0xd10a):(read only) (type=0x1) Range [-128 - 127, step 1] value: 0.0 stops (0) +Property 0xd10b:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd10d:(read only) (type=0xffff) ' ;0034501' +Property 0xd10e:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd120:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd121:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd122:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd124:(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 +Property 0xd125:(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd140:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Property 0xd142:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +AF Beep Mode(0xd160):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 2 +Image Review(0xd165):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +AF Area Illumination(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 1, step 1] value: iTTL (0) +Property 0xd16a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Remote Timeout(0xd16b):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 min (0) +Flash Mode Manual Power(0xd16d):(readwrite) (type=0x2) Range [0 - 4, step 1] value: Full (0) +Property 0xd180:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd190:(readwrite) (type=0x2) Range [0 - 12, step 2] value: 2 +Low Light(0xd1b0):(read only) (type=0x2) Range [0 - 4, step 1] value: No (0) +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) + +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1232107152 + Printable: Fri Jan 16 12:59:12 2009 +/main/settings/imgcomment + Label: Image Comment + Type: TEXT + Current: +/main/settings/imgcommentenable + Label: Enable Image Comment + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/lcdofftime + Label: LCD Off Time + Type: RADIO + Current: 20 seconds + Choice: 0 10 seconds + Choice: 1 20 seconds + Choice: 2 1 minute + Choice: 3 5 minutes + Choice: 4 10 minutes +/main/settings/meterofftime + Label: Meter Off Time + Type: RADIO + Current: 6 seconds + Choice: 0 4 seconds + Choice: 1 6 seconds + Choice: 2 8 seconds + Choice: 3 16 seconds +/main/settings/csmmenu + Label: CSM Menu + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/settings/battery + Label: Battery Level + Type: TEXT + Current: 75% +/main/settings/orientation + Label: Camera Orientation + Type: RADIO + Current: 0' + Choice: 0 0' + Choice: 1 270' + Choice: 2 90' +/main/settings/acpower + Label: AC Power + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/externalflash + Label: External Flash + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/flashopen + Label: Flash Open + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/flashcharged + Label: Flash Charged + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imgquality + Label: Image Quality + Type: RADIO + Current: JPEG Fine + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF+Basic + Choice: 4 NEF+Normal +/main/imgsettings/imgsize + Label: Image Size + Type: RADIO + Current: 3008x2000 + Choice: 0 3008x2000 + Choice: 1 2256x1496 + Choice: 2 1504x1000 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 400 + Choice: 0 200 + Choice: 1 400 + Choice: 2 800 + Choice: 3 1600 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Daylight + Choice: 2 Fluorescent + Choice: 3 Tungsten + Choice: 4 Flash + Choice: 5 Cloudy + Choice: 6 Shade + Choice: 7 Preset +/main/imgsettings/colormodel + Label: Color Model + Type: RADIO + Current: sRGB (portrait) + Choice: 0 sRGB (portrait) + Choice: 1 AdobeRGB + Choice: 2 sRGB (nature) +/main/imgsettings/autoiso + Label: Auto ISO + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/imgsettings/autoisopadv + Label: Auto ISO PADV Time + Type: RADIO + Current: 1/30 + Choice: 0 1/125 + Choice: 1 1/60 + Choice: 2 1/30 + Choice: 3 1/15 + Choice: 4 1/8 + Choice: 5 1/4 + Choice: 6 1/2 + Choice: 7 1 +/main/capturesettings/longexpnr + Label: Long Exp Noise Reduction + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusmode + Label: Auto Focus Mode + Type: RADIO + Current: AF-A + Choice: 0 AF-S + Choice: 1 AF-C + Choice: 2 AF-A +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nikonflashmode + Label: Flash Mode + Type: RADIO + Current: iTTL + Choice: 0 iTTL + Choice: 1 Manual +/main/capturesettings/af-area-illumination + Label: AF Area Illumination + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Off + Choice: 2 On +/main/capturesettings/afbeep + Label: AF Beep Mode + Type: TOGGLE + Current: 1 +/main/capturesettings/f-number + Label: F-Number + Type: RADIO + Current: f/5.6 + Choice: 0 f/5.6 + Choice: 1 f/6.3 + Choice: 2 f/7.1 + Choice: 3 f/8 + Choice: 4 f/9 + Choice: 5 f/10 + Choice: 6 f/11 + Choice: 7 f/13 + Choice: 8 f/14 + Choice: 9 f/16 + Choice: 10 f/18 + Choice: 11 f/20 + Choice: 12 f/22 + Choice: 13 f/25 + Choice: 14 f/29 + Choice: 15 f/32 + Choice: 16 f/36 +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 55 + Bottom: 18 + Top: 55 + Step: 0.01 +/main/capturesettings/minfocallength + Label: Focal Length Minimum + Type: TEXT + Current: 18 mm +/main/capturesettings/maxfocallength + Label: Focal Length Maximum + Type: TEXT + Current: 55 mm +/main/capturesettings/apertureatminfocallength + Label: Maximum Aperture at Focal Length Minimum + Type: TEXT + Current: 4 mm +/main/capturesettings/apertureatmaxfocallength + Label: Maximum Aperture at Focal Length Maximum + Type: TEXT + Current: 6 mm +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: AF-A + Choice: 0 Manual + Choice: 1 AF-S + Choice: 2 AF-C + Choice: 3 AF-A +/main/capturesettings/exposurebiascompensation + Label: Exposure Bias Compensation + Type: RADIO + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/capturesettings/exptime + Label: Exposure Time + Type: RADIO + Current: 0.125 + Choice: 0 0.002 + Choice: 1 0.003 + Choice: 2 0.004 + Choice: 3 0.005 + Choice: 4 0.006 + Choice: 5 0.008 + Choice: 6 0.010 + Choice: 7 0.012 + Choice: 8 0.015 + Choice: 9 0.020 + Choice: 10 0.025 + Choice: 11 0.031 + Choice: 12 0.040 + Choice: 13 0.050 + Choice: 14 0.062 + Choice: 15 0.080 + Choice: 16 0.100 + Choice: 17 0.125 + Choice: 18 0.166 + Choice: 19 0.200 + Choice: 20 0.250 + Choice: 21 0.333 +/main/capturesettings/expprogram + Label: Exposure Program + Type: RADIO + Current: Auto + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S + Choice: 4 Auto + Choice: 5 Portrait + Choice: 6 Landscape + Choice: 7 Macro + Choice: 8 Sports + Choice: 9 Night Portrait + Choice: 10 Children +/main/capturesettings/capturemode + Label: Still Capture Mode + Type: RADIO + Current: Burst + Choice: 0 Single Shot + Choice: 1 Burst + Choice: 2 Timer + Choice: 3 Remote + Choice: 4 Timer + Remote +/main/capturesettings/focusmetermode + Label: Focus Metering Mode + Type: RADIO + Current: Closest Subject + Choice: 0 Dynamic Area + Choice: 1 Single Area + Choice: 2 Closest Subject +/main/capturesettings/exposuremetermode + Label: Exposure Metering Mode + Type: RADIO + Current: Multi Spot + Choice: 0 Center Weighted + Choice: 1 Multi Spot + Choice: 2 Center Spot +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Default + Choice: 0 Flash off + Choice: 1 Red-eye automatic + Choice: 2 Default +/main/capturesettings/exposurelock + Label: Exposure Lock + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelaflmode + Label: AE-L/AF-L Mode + Type: RADIO + Current: AE/AF Lock + Choice: 0 AE/AF Lock + Choice: 1 AE Lock only + Choice: 2 AF Lock Only + Choice: 3 AF Lock Hold + Choice: 4 AF On + Choice: 5 Flash Level Lock +/main/capturesettings/filenrsequencing + Label: File Number Sequencing + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/imagereview + Label: Image Review + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/imagerotationflag + Label: Image Rotation Flag + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nocfcardrelease + Label: Release without CF card + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/flashmodemanualpower + Label: Flash Mode Manual Power + Type: RADIO + Current: Full + Choice: 0 Full + Choice: 1 1/2 + Choice: 2 1/4 + Choice: 3 1/8 + Choice: 4 1/16 +/main/capturesettings/autofocusarea + Label: Auto Focus Area + Type: RADIO + Current: Centre + Choice: 0 Centre + Choice: 1 Top + Choice: 2 Bottom + Choice: 3 Left + Choice: 4 Right +/main/capturesettings/flashexposurecompensation + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -3 + Top: 1 + Step: 0.333333 +/main/capturesettings/evstep + Label: EV Step + Type: RADIO + Current: 1/3 + Choice: 0 1/3 + Choice: 1 1/2 + Choice: 2 Unknown value 0002 +/main/capturesettings/burstnumber + Label: Burst Number + Type: RANGE + Current: 1 + Bottom: 1 + Top: 49 + Step: 1 +/main/capturesettings/whitebiaspresetno + Label: White Balance Bias Preset Nr + Type: RADIO + Current: 0 + Choice: 0 0 +/main/capturesettings/whitebiaspreset0 + Label: White Balance Bias Preset 0 + Type: TEXT + Current: 33685926 +/main/capturesettings/whitebiaspreset1 + Label: White Balance Bias Preset 1 + Type: TEXT + Current: 33685926 +/main/capturesettings/selftimerdelay + Label: Selftimer Delay + Type: RADIO + Current: 10 seconds + Choice: 0 2 seconds + Choice: 1 5 seconds + Choice: 2 10 seconds + Choice: 3 20 seconds +/main/capturesettings/remotetimeout + Label: Remote Timeout + Type: RADIO + Current: 1 minute + Choice: 0 1 minute + Choice: 1 5 minutes + Choice: 2 10 minutes + Choice: 3 15 minutes +/main/capturesettings/optimizeimage + Label: Optimize Image + Type: RADIO + Current: Normal + Choice: 0 Normal + Choice: 1 Vivid + Choice: 2 Sharper + Choice: 3 Softer + Choice: 4 Direct Print + Choice: 5 Portrait + Choice: 6 Landscape + Choice: 7 Custom +/main/capturesettings/sharpening + Label: Sharpening + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Low + Choice: 3 Medium Low + Choice: 4 Medium high + Choice: 5 High + Choice: 6 None +/main/capturesettings/tonecompensation + Label: Tone Compensation + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Low contrast + Choice: 3 Medium Low + Choice: 4 Medium High + Choice: 5 High control + Choice: 6 Custom +/main/capturesettings/saturation + Label: Saturation + Type: RADIO + Current: Normal + Choice: 0 Normal + Choice: 1 Moderate + Choice: 2 Enhanced +/main/capturesettings/hueadjustment + Label: Hue Adjustment + Type: RANGE + Current: 0 + Bottom: -9 + Top: 9 + Step: 3 +/main/capturesettings/lowlight + Label: Low Light + Type: RANGE + Current: 0 + Bottom: 0 + Top: 4 + Step: 1 +/main/capturesettings/lightmeter + Label: Light Meter + Type: TEXT + Current: 0.0 +/main/capturesettings/aflocked + Label: AF Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelocked + Label: AE Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/fvlocked + Label: FV Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/wifiprofiles/new/name + Label: Profile name + Type: TEXT + Current: +/main/wifiprofiles/new/essid + Label: WIFI ESSID + Type: TEXT + Current: +/main/wifiprofiles/new/ipaddr + Label: IP address (empty for DHCP) + Type: TEXT + Current: +/main/wifiprofiles/new/netmask + Label: Network mask + Type: TEXT + Current: +/main/wifiprofiles/new/gw + Label: Default gateway + Type: TEXT + Current: +/main/wifiprofiles/new/accessmode + Label: Access mode + Type: RADIO + Current: Managed + Choice: 0 Managed + Choice: 1 Ad-hoc +/main/wifiprofiles/new/channel + Label: WIFI channel + Type: RANGE + Current: 1 + Bottom: 1 + Top: 11 + Step: 1 +/main/wifiprofiles/new/encryption + Label: Encryption + Type: RADIO + Current: None + Choice: 0 None + Choice: 1 WEP 64-bit + Choice: 2 WEP 128-bit +/main/wifiprofiles/new/key + Label: Encryption key (hex) + Type: TEXT + Current: +/main/wifiprofiles/new/write + Label: Write + Type: TOGGLE + Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d500.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d500.txt new file mode 100644 index 00000000..bdfaa6d1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d500.txt @@ -0,0 +1,3865 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D500 + Version: V1.12 + Serial Number: 0000000000000000000000000nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Microsoft.com/DeviceServices: 1.0 + +Capture Formats: JPEG TIFF Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3 + +Storage Devices Summary: +store_00020001: + StorageDescription: None + VolumeLabel: NIKON D500 [Slot 2] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 63831015424 (60874 MB) + Free Space (Bytes): 63733760000 (60781 MB) + Free Space (Images): 949 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 80% (80) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '5568x3712', + '4176x2784', + '2784x1856' + ] value: '5568x3712' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13] value: 13 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [100,110,120,140,160,180,200,220,250,280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/3.5 (350) +Focal Length(0x5008):(read only) (type=0x6) Range [1600 - 8500, step 1] value: 16 mm (1600) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32787] value: AF-S (32784) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4,32784] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784,32785,32786,32787] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,769] value: 0.0077 sec (769) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: P (2) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200] value: ISO 200 (200) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20170612T173018' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790,32792] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 200, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788,32789] value: Closest Subject (32785) +Artist(0x501e):(read only) (type=0xffff) 'Robert E Stegmann' +Copyright Info(0x501f):(read only) (type=0xffff) '2017' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Shooting Bank(0xd010):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Shooting Bank Name A(0xd011):(readwrite) (type=0xffff) ' ' +Shooting Bank Name B(0xd012):(readwrite) (type=0xffff) ' ' +Shooting Bank Name C(0xd013):(readwrite) (type=0xffff) ' ' +Shooting Bank Name D(0xd014):(readwrite) (type=0xffff) ' ' +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Lossless (0) +Auto White Balance Bias(0xd017):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 304876602 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 304876602 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 304876602 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 304876602 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 22 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 5 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Flicker Reduction(0xd034):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd038:(readwrite) (type=0xffff) ' ' +Property 0xd039:(readwrite) (type=0xffff) ' ' +Property 0xd03a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03e:(read only) (type=0x6) 304876602 +Property 0xd03f:(read only) (type=0x6) 304876602 +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Menu Bank Name A(0xd041):(readwrite) (type=0xffff) ' ' +Menu Bank Name B(0xd042):(readwrite) (type=0xffff) ' ' +Menu Bank Name C(0xd043):(readwrite) (type=0xffff) ' ' +Menu Bank Name D(0xd044):(readwrite) (type=0xffff) ' ' +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd046:(readwrite) (type=0x2) Range [1 - 5, step 1] value: 3 +Property 0xd047:(readwrite) (type=0x2) Range [1 - 3, step 1] value: 2 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Exposure Compensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd060:(readwrite) (type=0x2) Range [0 - 10, step 1] value: 0 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 0 +Angle Level(0xd067):(read only) (type=0x5) 6.7' (436513) +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 4 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 200, step 1] value: 200 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Artist Name(0xd072):(readwrite) (type=0xffff) 'Robert E Stegmann' +Copyright Information(0xd073):(readwrite) (type=0xffff) '2017' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 1 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Under > MTR (1) +Property 0xd07d:(read only) (type=0x5) 23563456 +Property 0xd07e:(read only) (type=0x5) -1 +Property 0xd07f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) '' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd09d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd09e:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd09f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 3 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Movie Card Slot(0xd0a3):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 0 +Movie Quality(0xd0a7):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0aa:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ab:(read only) (type=0x4) 32894 +Property 0xd0ac:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ad:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ae:(readwrite) (type=0x2) Range [0 - 40, step 1] value: 32 +Property 0xd0b4:(readwrite) (type=0x6) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,81200,102400,204800,409600,820000,1640000] value: 200 +Property 0xd0b5:(read only) (type=0x6) 51200 +Property 0xd0b6:(readwrite) (type=0xffff) Enumeration [ + '5568x3712', + '4176x2784', + '2784x1856' + ] value: '5568x3712' +Property 0xd0b7:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(read only) (type=0x2) Range [0 - 5, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 1, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 7, step 1] value: 4 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x4) 153 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x8) 63 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 16 mm (1600) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 85 mm (8500) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560) +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65549] value: 65549 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 153, step 1] value: Centre (0) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 2, step 1] value: 2 +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +TV Lock Setting(0xd112):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AV Lock Setting(0xd113):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd118:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Property 0xd12d:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +HDR High Dynamic(0xd131):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +HDR Smoothing(0xd132):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Slot 2 Save Mode(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Tune Preset 1(0xd152):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 2(0xd153):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 3(0xd154):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 4(0xd155):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd156:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15b:(read only) (type=0x4) Range [100 - 999, step 1] value: 100 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-S (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 32, step 1] value: 32 +Property 0xd176:(readwrite) (type=0x4) 0 +Property 0xd177:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 32 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd199:(readwrite) (type=0x2) Range [0 - 41, step 1] value: 41 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a5:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a7:(read only) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787,32788] value: 32788 +Property 0xd1a8:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596] value: 73536 +Property 0xd1a9:(read only) (type=0x4) Enumeration [0] value: 0 +Property 0xd1aa:(readwrite) (type=0x6) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,81200,102400,204800,409600,820000,1640000] value: 100 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000] value: 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2,3] value: 2 +Property 0xd1af:(read only) (type=0x4) Enumeration [2,3,32784] value: 3 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 200, step 1] value: 12 +Property 0xd1e2:(read only) (type=0x2) Enumeration [] value: 0 +Property 0xd1e3:(read only) (type=0x2) Enumeration [] value: 0 +Property 0xd1e4:(read only) (type=0x6) 0 +Property 0xd1e5:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1e6:(read only) (type=0x6) Range [0 - 9999, step 1] value: 0 +Property 0xd1e7:(read only) (type=0x2) 0 +Property 0xd1e8:(read only) (type=0x2) Enumeration [255] value: 255 +Property 0xd1e9:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1ea:(read only) (type=0x2) 1 +Property 0xd1ec:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1ed:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x6) Range [0 - 4294967295, step 1] value: 949 +Property 0xd1f2:(read only) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Property 0xd1f6:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f7:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,201,202,203,204,205,206,207,208,209] value: 3 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 +Property 0xd20d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20e:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd211:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd212:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd213:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd214:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd216:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd218:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd219:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd21a:(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +Property 0xd21b:(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Property 0xd21c:(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +Property 0xd21d:(readwrite) (type=0xffff) ' ' +Property 0xd21e:(readwrite) (type=0xffff) ' ' +Property 0xd21f:(readwrite) (type=0xffff) ' ' +Property 0xd220:(readwrite) (type=0xffff) ' ' +Property 0xd221:(readwrite) (type=0xffff) ' ' +Property 0xd222:(readwrite) (type=0xffff) ' ' +Property 0xd223:(read only) (type=0x6) 304876602 +Property 0xd224:(read only) (type=0x6) 304876602 +Property 0xd225:(read only) (type=0x6) 304876602 +Property 0xd226:(read only) (type=0x6) 304876602 +Property 0xd227:(read only) (type=0x6) 304876602 +Property 0xd228:(read only) (type=0x6) 304876602 +Property 0xd229:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22c:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22d:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22e:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd230:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd231:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd232:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd233:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd234:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd235:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd236:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd237:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,100,201,202,203,204,205,206,207,208,209] value: 100 +Property 0xd238:(read only) (type=0x4) Enumeration [] value: 0 +Property 0xd239:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd23a:(readwrite) (type=0x4) Enumeration [2,4,5,6,32784,32785,32786,32787,32789] value: 32789 +Property 0xd23b:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd314:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 + +/main/actions/bulb +Label: Bulb Mode +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/changeafarea +Label: Set Nikon Autofocus area +Type: TEXT +Current: 0x0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1497306628 +Printable: Mon Jun 12 17:30:28 2017 +Help: Use 'now' as the current time when setting. + +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/artist +Label: Artist +Type: TEXT +Current: Robert E Stegmann +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: 2017 +/main/settings/cleansensor +Label: Clean Sensor +Type: RADIO +Current: Startup and Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +Choice: 3 Startup and Shutdown +/main/settings/flickerreduction +Label: Flicker Reduction +Type: RADIO +Current: Auto +Choice: 0 50 Hz +Choice: 1 60 Hz +Choice: 2 Auto +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/autofocus +Label: Autofocus +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000000000000nnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D500 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.12 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Microsoft.com/DeviceServices: 1.0 +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 80% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/orientation2 +Label: Camera Orientation +Type: TEXT +Current: 7' +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 16 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 85 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 4 +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 6 +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 3 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/fvlocked +Label: FV Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 5568x3712 +Choice: 0 5568x3712 +Choice: 1 4176x2784 +Choice: 2 2784x1856 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 200 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 32000 +Choice: 29 40000 +Choice: 30 51200 +/main/imgsettings/movieiso +Label: Movie ISO Speed +Type: RADIO +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +Choice: 25 32000 +Choice: 26 40000 +Choice: 27 51200 +Choice: 28 64000 +Choice: 29 81200 +Choice: 30 102400 +Choice: 31 204800 +Choice: 32 409600 +Choice: 33 820000 +Choice: 34 1640000 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.666 +Choice: 2 -4.333 +Choice: 3 -4 +Choice: 4 -3.666 +Choice: 5 -3.333 +Choice: 6 -3 +Choice: 7 -2.666 +Choice: 8 -2.333 +Choice: 9 -2 +Choice: 10 -1.666 +Choice: 11 -1.333 +Choice: 12 -1 +Choice: 13 -0.666 +Choice: 14 -0.333 +Choice: 15 0 +Choice: 16 0.333 +Choice: 17 0.666 +Choice: 18 1 +Choice: 19 1.333 +Choice: 20 1.666 +Choice: 21 2 +Choice: 22 2.333 +Choice: 23 2.666 +Choice: 24 3 +Choice: 25 3.333 +Choice: 26 3.666 +Choice: 27 4 +Choice: 28 4.333 +Choice: 29 4.666 +Choice: 30 5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Flash off +Choice: 1 Red-eye automatic +Choice: 2 Auto +Choice: 3 Auto Slow Sync +Choice: 4 Rear Curtain Sync + Slow Sync +Choice: 5 Red-eye Reduction + Slow Sync +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/3.5 +Choice: 0 f/1 +Choice: 1 f/1.1 +Choice: 2 f/1.2 +Choice: 3 f/1.4 +Choice: 4 f/1.6 +Choice: 5 f/1.8 +Choice: 6 f/2 +Choice: 7 f/2.2 +Choice: 8 f/2.5 +Choice: 9 f/2.8 +Choice: 10 f/3.2 +Choice: 11 f/3.5 +Choice: 12 f/4 +Choice: 13 f/4.5 +Choice: 14 f/5 +Choice: 15 f/5.6 +Choice: 16 f/6.3 +Choice: 17 f/7.1 +Choice: 18 f/8 +Choice: 19 f/9 +Choice: 20 f/10 +Choice: 21 f/11 +Choice: 22 f/13 +Choice: 23 f/14 +Choice: 24 f/16 +Choice: 25 f/18 +Choice: 26 f/20 +Choice: 27 f/22 +/main/capturesettings/movief-number +Label: Movie F-Number +Type: RADIO +Current: f/0 +Choice: 0 f/0 +/main/capturesettings/flexibleprogram +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: Unknown value 000d +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 Unknown value 0003 +Choice: 4 NEF (Raw) +Choice: 5 NEF+Basic +Choice: 6 NEF+Normal +Choice: 7 NEF+Fine +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000d +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 16 +Bottom: 16 +Top: 85 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-S +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: AF-S +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: P +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +/main/capturesettings/hdrmode +Label: HDR Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/hdrhighdynamic +Label: HDR High Dynamic +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 1 EV +Choice: 2 2 EV +Choice: 3 3 EV +/main/capturesettings/hdrsmoothing +Label: HDR Smoothing +Type: RADIO +Current: Normal +Choice: 0 High +Choice: 1 Normal +Choice: 2 Low +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Mirror Up +Choice: 5 Quiet Release +Choice: 6 Unknown value 8018 +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Closest Subject +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +Choice: 4 Unknown value 8013 +Choice: 5 Unknown value 8014 +Choice: 6 Unknown value 8015 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +Choice: 3 Unknown value 8010 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0769s +Choice: 0 0.0001s +Choice: 1 0.0002s +Choice: 2 0.0003s +Choice: 3 0.0004s +Choice: 4 0.0005s +Choice: 5 0.0006s +Choice: 6 0.0008s +Choice: 7 0.0010s +Choice: 8 0.0012s +Choice: 9 0.0015s +Choice: 10 0.0020s +Choice: 11 0.0025s +Choice: 12 0.0031s +Choice: 13 0.0040s +Choice: 14 0.0050s +Choice: 15 0.0062s +Choice: 16 0.0080s +Choice: 17 0.0100s +Choice: 18 0.0125s +Choice: 19 0.0166s +Choice: 20 0.0200s +Choice: 21 0.0250s +Choice: 22 0.0333s +Choice: 23 0.0400s +Choice: 24 0.0769s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/13 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +Choice: 22 1/50 +Choice: 23 1/40 +Choice: 24 1/30 +Choice: 25 1/25 +Choice: 26 1/13 +/main/capturesettings/movieshutterspeed +Label: Movie Shutter Speed 2 +Type: RADIO +Current: 1/8000 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Normal-area AF +Choice: 0 Face-priority AF +Choice: 1 Wide-area AF +Choice: 2 Normal-area AF +Choice: 3 Subject-tracking AF +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Single-servo AF +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Unknown value 0003 +Choice: 3 Manual Focus +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Centre +Choice: 0 Centre +Choice: 1 Top +Choice: 2 Bottom +Choice: 3 Left +Choice: 4 Right +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +Choice: 22 Unknown value 0016 +Choice: 23 Unknown value 0017 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 Unknown value 001c +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +Choice: 32 Unknown value 0020 +Choice: 33 Unknown value 0021 +Choice: 34 Unknown value 0022 +Choice: 35 Unknown value 0023 +Choice: 36 Unknown value 0024 +Choice: 37 Unknown value 0025 +Choice: 38 Unknown value 0026 +Choice: 39 Unknown value 0027 +Choice: 40 Unknown value 0028 +Choice: 41 Unknown value 0029 +Choice: 42 Unknown value 002a +Choice: 43 Unknown value 002b +Choice: 44 Unknown value 002c +Choice: 45 Unknown value 002d +Choice: 46 Unknown value 002e +Choice: 47 Unknown value 002f +Choice: 48 Unknown value 0030 +Choice: 49 Unknown value 0031 +Choice: 50 Unknown value 0032 +Choice: 51 Unknown value 0033 +Choice: 52 Unknown value 0034 +Choice: 53 Unknown value 0035 +Choice: 54 Unknown value 0036 +Choice: 55 Unknown value 0037 +Choice: 56 Unknown value 0038 +Choice: 57 Unknown value 0039 +Choice: 58 Unknown value 003a +Choice: 59 Unknown value 003b +Choice: 60 Unknown value 003c +Choice: 61 Unknown value 003d +Choice: 62 Unknown value 003e +Choice: 63 Unknown value 003f +Choice: 64 Unknown value 0040 +Choice: 65 Unknown value 0041 +Choice: 66 Unknown value 0042 +Choice: 67 Unknown value 0043 +Choice: 68 Unknown value 0044 +Choice: 69 Unknown value 0045 +Choice: 70 Unknown value 0046 +Choice: 71 Unknown value 0047 +Choice: 72 Unknown value 0048 +Choice: 73 Unknown value 0049 +Choice: 74 Unknown value 004a +Choice: 75 Unknown value 004b +Choice: 76 Unknown value 004c +Choice: 77 Unknown value 004d +Choice: 78 Unknown value 004e +Choice: 79 Unknown value 004f +Choice: 80 Unknown value 0050 +Choice: 81 Unknown value 0051 +Choice: 82 Unknown value 0052 +Choice: 83 Unknown value 0053 +Choice: 84 Unknown value 0054 +Choice: 85 Unknown value 0055 +Choice: 86 Unknown value 0056 +Choice: 87 Unknown value 0057 +Choice: 88 Unknown value 0058 +Choice: 89 Unknown value 0059 +Choice: 90 Unknown value 005a +Choice: 91 Unknown value 005b +Choice: 92 Unknown value 005c +Choice: 93 Unknown value 005d +Choice: 94 Unknown value 005e +Choice: 95 Unknown value 005f +Choice: 96 Unknown value 0060 +Choice: 97 Unknown value 0061 +Choice: 98 Unknown value 0062 +Choice: 99 Unknown value 0063 +Choice: 100 Unknown value 0064 +Choice: 101 Unknown value 0065 +Choice: 102 Unknown value 0066 +Choice: 103 Unknown value 0067 +Choice: 104 Unknown value 0068 +Choice: 105 Unknown value 0069 +Choice: 106 Unknown value 006a +Choice: 107 Unknown value 006b +Choice: 108 Unknown value 006c +Choice: 109 Unknown value 006d +Choice: 110 Unknown value 006e +Choice: 111 Unknown value 006f +Choice: 112 Unknown value 0070 +Choice: 113 Unknown value 0071 +Choice: 114 Unknown value 0072 +Choice: 115 Unknown value 0073 +Choice: 116 Unknown value 0074 +Choice: 117 Unknown value 0075 +Choice: 118 Unknown value 0076 +Choice: 119 Unknown value 0077 +Choice: 120 Unknown value 0078 +Choice: 121 Unknown value 0079 +Choice: 122 Unknown value 007a +Choice: 123 Unknown value 007b +Choice: 124 Unknown value 007c +Choice: 125 Unknown value 007d +Choice: 126 Unknown value 007e +Choice: 127 Unknown value 007f +Choice: 128 Unknown value 0080 +Choice: 129 Unknown value 0081 +Choice: 130 Unknown value 0082 +Choice: 131 Unknown value 0083 +Choice: 132 Unknown value 0084 +Choice: 133 Unknown value 0085 +Choice: 134 Unknown value 0086 +Choice: 135 Unknown value 0087 +Choice: 136 Unknown value 0088 +Choice: 137 Unknown value 0089 +Choice: 138 Unknown value 008a +Choice: 139 Unknown value 008b +Choice: 140 Unknown value 008c +Choice: 141 Unknown value 008d +Choice: 142 Unknown value 008e +Choice: 143 Unknown value 008f +Choice: 144 Unknown value 0090 +Choice: 145 Unknown value 0091 +Choice: 146 Unknown value 0092 +Choice: 147 Unknown value 0093 +Choice: 148 Unknown value 0094 +Choice: 149 Unknown value 0095 +Choice: 150 Unknown value 0096 +Choice: 151 Unknown value 0097 +Choice: 152 Unknown value 0098 +Choice: 153 Unknown value 0099 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/bracketmode +Label: Bracketing +Type: RADIO +Current: Flash/speed +Choice: 0 Flash/speed +Choice: 1 Flash/speed/aperture +Choice: 2 Flash/aperture +Choice: 3 Flash only +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +Choice: 2 Unknown value 0002 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE & Flash +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/bracketorder +Label: Bracket Order +Type: RADIO +Current: Under > MTR +Choice: 0 MTR > Under +Choice: 1 Under > MTR +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 200 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 304876602 +/main/capturesettings/whitebiaspreset2 +Label: White Balance Bias Preset 2 +Type: TEXT +Current: 304876602 +/main/capturesettings/whitebiaspreset3 +Label: White Balance Bias Preset 3 +Type: TEXT +Current: 304876602 +/main/capturesettings/whitebiaspreset4 +Label: White Balance Bias Preset 4 +Type: TEXT +Current: 304876602 +/main/capturesettings/centerweightsize +Label: Center Weight Area +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +Choice: 2 10 mm +Choice: 3 12 mm +Choice: 4 Average +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +Choice: 1 1/30 +Choice: 2 1/15 +Choice: 3 1/8 +Choice: 4 1/4 +Choice: 5 1/2 +Choice: 6 1 +Choice: 7 2 +Choice: 8 4 +Choice: 9 8 +Choice: 10 15 +Choice: 11 30 +/main/capturesettings/applicationmode +Label: Application Mode +Type: RADIO +Current: Application Mode 0 +Choice: 0 Application Mode 0 +Choice: 1 Application Mode 1 +/main/capturesettings/microphone +Label: Microphone +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +Choice: 5 Unknown value 0005 +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 80 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 5568x3712 +Choice: 0 5568x3712 +Choice: 1 4176x2784 +Choice: 2 2784x1856 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 13 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 350 +Choice: 0 100 +Choice: 1 110 +Choice: 2 120 +Choice: 3 140 +Choice: 4 160 +Choice: 5 180 +Choice: 6 200 +Choice: 7 220 +Choice: 8 250 +Choice: 9 280 +Choice: 10 320 +Choice: 11 350 +Choice: 12 400 +Choice: 13 450 +Choice: 14 500 +Choice: 15 560 +Choice: 16 630 +Choice: 17 710 +Choice: 18 800 +Choice: 19 900 +Choice: 20 1000 +Choice: 21 1100 +Choice: 22 1300 +Choice: 23 1400 +Choice: 24 1600 +Choice: 25 1800 +Choice: 26 2000 +Choice: 27 2200 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 1600 +Bottom: 1600 +Top: 8500 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 32784 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32787 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 769 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 8 +Choice: 7 10 +Choice: 8 12 +Choice: 9 15 +Choice: 10 20 +Choice: 11 25 +Choice: 12 31 +Choice: 13 40 +Choice: 14 50 +Choice: 15 62 +Choice: 16 80 +Choice: 17 100 +Choice: 18 125 +Choice: 19 166 +Choice: 20 200 +Choice: 21 250 +Choice: 22 333 +Choice: 23 400 +Choice: 24 769 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 200 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 32000 +Choice: 29 40000 +Choice: 30 51200 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20170612T173028 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32790 +Choice: 6 32792 +/main/other/5018 +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 200 +Step: 1 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32785 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +Choice: 6 32789 +/main/other/501e +Label: Artist +Type: TEXT +Current: Robert E Stegmann +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: 2017 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d010 +Label: Shooting Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d011 +Label: Shooting Bank Name A +Type: TEXT +Current: +/main/other/d012 +Label: Shooting Bank Name B +Type: TEXT +Current: +/main/other/d013 +Label: Shooting Bank Name C +Type: TEXT +Current: +/main/other/d014 +Label: Shooting Bank Name D +Type: TEXT +Current: +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d016 +Label: Raw Compression +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01e +Label: White Balance Colour Temperature +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d021 +Label: White Balance Preset Name 1 +Type: TEXT +Current: +/main/other/d022 +Label: White Balance Preset Name 2 +Type: TEXT +Current: +/main/other/d023 +Label: White Balance Preset Name 3 +Type: TEXT +Current: +/main/other/d024 +Label: White Balance Preset Name 4 +Type: TEXT +Current: +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 304876602 +/main/other/d027 +Label: White Balance Preset Value 2 +Type: TEXT +Current: 304876602 +/main/other/d028 +Label: White Balance Preset Value 3 +Type: TEXT +Current: 304876602 +/main/other/d029 +Label: White Balance Preset Value 4 +Type: TEXT +Current: 304876602 +/main/other/d02e +Label: Lens Focal Length (Non CPU) +Type: MENU +Current: 22 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d02f +Label: Lens Maximum Aperture (Non CPU) +Type: MENU +Current: 5 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +/main/other/d030 +Label: Shooting Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d034 +Label: Flicker Reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d038 +Label: PTP Property 0xd038 +Type: TEXT +Current: +/main/other/d039 +Label: PTP Property 0xd039 +Type: TEXT +Current: +/main/other/d03a +Label: PTP Property 0xd03a +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d03b +Label: PTP Property 0xd03b +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d03c +Label: PTP Property 0xd03c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03d +Label: PTP Property 0xd03d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03e +Label: PTP Property 0xd03e +Type: TEXT +Current: 304876602 +/main/other/d03f +Label: PTP Property 0xd03f +Type: TEXT +Current: 304876602 +/main/other/d040 +Label: PTP_DPC_NIKON_CSMMenuBankSelect +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d041 +Label: Menu Bank Name A +Type: TEXT +Current: +/main/other/d042 +Label: Menu Bank Name B +Type: TEXT +Current: +/main/other/d043 +Label: Menu Bank Name C +Type: TEXT +Current: +/main/other/d044 +Label: Menu Bank Name D +Type: TEXT +Current: +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d046 +Label: PTP Property 0xd046 +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d047 +Label: PTP Property 0xd047 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d04f +Label: Focus Area Wrap +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d055 +Label: Exposure ISO Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d057 +Label: Exposure Compensation (EV) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d059 +Label: Centre Weight Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d05a +Label: Exposure Base Matrix +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05b +Label: Exposure Base Center +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05c +Label: Exposure Base Spot +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d060 +Label: PTP Property 0xd060 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d067 +Label: Angle Level +Type: TEXT +Current: 430985 +/main/other/d068 +Label: Shooting Speed +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d069 +Label: Maximum Shots +Type: RANGE +Current: 200 +Bottom: 1 +Top: 200 +Step: 1 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: Robert E Stegmann +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: 2017 +/main/other/d074 +Label: Flash Sync. Speed +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d075 +Label: Flash Shutter Speed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d079 +Label: Manual Mode Bracketing +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d07a +Label: Bracket Order +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d07d +Label: PTP Property 0xd07d +Type: TEXT +Current: 23563464 +/main/other/d07e +Label: PTP Property 0xd07e +Type: TEXT +Current: -1 +/main/other/d07f +Label: PTP Property 0xd07f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d087 +Label: Aperture Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Clean Image Sensor +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d093 +Label: Manual Set Lens Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d09c +Label: PTP Property 0xd09c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d09d +Label: PTP Property 0xd09d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d09e +Label: PTP Property 0xd09e +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d09f +Label: PTP Property 0xd09f +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +/main/other/d0a2 +Label: Movie Microphone +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0a3 +Label: Movie Card Slot +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 0 +/main/other/d0a7 +Label: Movie Quality +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0aa +Label: PTP Property 0xd0aa +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ab +Label: PTP Property 0xd0ab +Type: TEXT +Current: 32894 +/main/other/d0ac +Label: PTP Property 0xd0ac +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ad +Label: PTP Property 0xd0ad +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ae +Label: PTP Property 0xd0ae +Type: MENU +Current: 32 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d0b4 +Label: PTP Property 0xd0b4 +Type: MENU +Current: 200 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 32000 +Choice: 29 40000 +Choice: 30 51200 +Choice: 31 64000 +Choice: 32 81200 +Choice: 33 102400 +Choice: 34 204800 +Choice: 35 409600 +Choice: 36 820000 +Choice: 37 1640000 +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Type: TEXT +Current: 51200 +/main/other/d0b6 +Label: PTP Property 0xd0b6 +Type: MENU +Current: 5568x3712 +Choice: 0 5568x3712 +Choice: 1 4176x2784 +Choice: 2 2784x1856 +/main/other/d0b7 +Label: PTP Property 0xd0b7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0c7 +Label: PTP Property 0xd0c7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 153 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 63 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 1600 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 8500 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 350 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 560 +/main/other/d0f7 +Label: Vignette Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0f8 +Label: Auto Distortion Control +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65549 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +Choice: 25 65561 +Choice: 26 65549 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d106 +Label: FV Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: RANGE +Current: 0 +Bottom: 0 +Top: 153 +Step: 1 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10c +Label: USB Speed +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d112 +Label: TV Lock Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d113 +Label: AV Lock Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d118 +Label: PTP Property 0xd118 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d12d +Label: PTP Property 0xd12d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d130 +Label: HDR Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d131 +Label: HDR High Dynamic +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d132 +Label: HDR Smoothing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d141 +Label: PTP Property 0xd141 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d148 +Label: Slot 2 Save Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: Active D-Lighting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d150 +Label: Tune Colour Temperature +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +/main/other/d152 +Label: Tune Preset 1 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d153 +Label: Tune Preset 2 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d154 +Label: Tune Preset 3 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d155 +Label: Tune Preset 4 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d156 +Label: PTP Property 0xd156 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d158 +Label: PTP Property 0xd158 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d159 +Label: PTP Property 0xd159 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15a +Label: PTP Property 0xd15a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15b +Label: PTP Property 0xd15b +Type: RANGE +Current: 100 +Bottom: 100 +Top: 999 +Step: 1 +/main/other/d15c +Label: PTP Property 0xd15c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15d +Label: PTP Property 0xd15d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 32 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +/main/other/d176 +Label: PTP Property 0xd176 +Type: TEXT +Current: 0 +/main/other/d177 +Label: PTP Property 0xd177 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 32 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d197 +Label: PTP Property 0xd197 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d199 +Label: PTP Property 0xd199 +Type: MENU +Current: 41 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1a5 +Label: PTP Property 0xd1a5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a6 +Label: PTP Property 0xd1a6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a7 +Label: PTP Property 0xd1a7 +Type: MENU +Current: 32788 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +Choice: 9 32788 +/main/other/d1a8 +Label: PTP Property 0xd1a8 +Type: MENU +Current: 73536 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +/main/other/d1a9 +Label: PTP Property 0xd1a9 +Type: MENU +Current: 0 +Choice: 0 0 +/main/other/d1aa +Label: PTP Property 0xd1aa +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +Choice: 25 32000 +Choice: 26 40000 +Choice: 27 51200 +Choice: 28 64000 +Choice: 29 81200 +Choice: 30 102400 +Choice: 31 204800 +Choice: 32 409600 +Choice: 33 820000 +Choice: 34 1640000 +/main/other/d1ab +Label: PTP Property 0xd1ab +Type: MENU +Current: 0 +Choice: 0 -3000 +Choice: 1 -2666 +Choice: 2 -2333 +Choice: 3 -2000 +Choice: 4 -1666 +Choice: 5 -1333 +Choice: 6 -1000 +Choice: 7 -666 +Choice: 8 -333 +Choice: 9 0 +Choice: 10 333 +Choice: 11 666 +Choice: 12 1000 +Choice: 13 1333 +Choice: 14 1666 +Choice: 15 2000 +Choice: 16 2333 +Choice: 17 2666 +Choice: 18 3000 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d1af +Label: PTP Property 0xd1af +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 32784 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: Info Display Error Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: RANGE +Current: 12 +Bottom: 0 +Top: 200 +Step: 1 +/main/other/d1e2 +Label: PTP Property 0xd1e2 +Type: MENU +Current: 0 +/main/other/d1e3 +Label: PTP Property 0xd1e3 +Type: MENU +Current: 0 +/main/other/d1e4 +Label: PTP Property 0xd1e4 +Type: TEXT +Current: 0 +/main/other/d1e5 +Label: PTP Property 0xd1e5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1e6 +Label: PTP Property 0xd1e6 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 9999 +Step: 1 +/main/other/d1e7 +Label: PTP Property 0xd1e7 +Type: TEXT +Current: 0 +/main/other/d1e8 +Label: PTP Property 0xd1e8 +Type: MENU +Current: 255 +Choice: 0 255 +/main/other/d1e9 +Label: PTP Property 0xd1e9 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1ea +Label: PTP Property 0xd1ea +Type: TEXT +Current: 1 +/main/other/d1ec +Label: PTP Property 0xd1ec +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1ed +Label: PTP Property 0xd1ed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 949 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d1f2 +Label: PTP Property 0xd1f2 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d1f6 +Label: PTP Property 0xd1f6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f7 +Label: PTP Property 0xd1f7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 201 +Choice: 8 202 +Choice: 9 203 +Choice: 10 204 +Choice: 11 205 +Choice: 12 206 +Choice: 13 207 +Choice: 14 208 +Choice: 15 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 +/main/other/d20d +Label: PTP Property 0xd20d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d20f +Label: PTP Property 0xd20f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d211 +Label: PTP Property 0xd211 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d212 +Label: PTP Property 0xd212 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d213 +Label: PTP Property 0xd213 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d214 +Label: PTP Property 0xd214 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d215 +Label: PTP Property 0xd215 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d216 +Label: PTP Property 0xd216 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d219 +Label: PTP Property 0xd219 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d21a +Label: PTP Property 0xd21a +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d21b +Label: PTP Property 0xd21b +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +/main/other/d21c +Label: PTP Property 0xd21c +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d21d +Label: PTP Property 0xd21d +Type: TEXT +Current: +/main/other/d21e +Label: PTP Property 0xd21e +Type: TEXT +Current: +/main/other/d21f +Label: PTP Property 0xd21f +Type: TEXT +Current: +/main/other/d220 +Label: PTP Property 0xd220 +Type: TEXT +Current: +/main/other/d221 +Label: PTP Property 0xd221 +Type: TEXT +Current: +/main/other/d222 +Label: PTP Property 0xd222 +Type: TEXT +Current: +/main/other/d223 +Label: PTP Property 0xd223 +Type: TEXT +Current: 304876602 +/main/other/d224 +Label: PTP Property 0xd224 +Type: TEXT +Current: 304876602 +/main/other/d225 +Label: PTP Property 0xd225 +Type: TEXT +Current: 304876602 +/main/other/d226 +Label: PTP Property 0xd226 +Type: TEXT +Current: 304876602 +/main/other/d227 +Label: PTP Property 0xd227 +Type: TEXT +Current: 304876602 +/main/other/d228 +Label: PTP Property 0xd228 +Type: TEXT +Current: 304876602 +/main/other/d229 +Label: PTP Property 0xd229 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22a +Label: PTP Property 0xd22a +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22b +Label: PTP Property 0xd22b +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22c +Label: PTP Property 0xd22c +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22d +Label: PTP Property 0xd22d +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22e +Label: PTP Property 0xd22e +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22f +Label: PTP Property 0xd22f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d230 +Label: PTP Property 0xd230 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d231 +Label: PTP Property 0xd231 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d232 +Label: PTP Property 0xd232 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d233 +Label: PTP Property 0xd233 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d234 +Label: PTP Property 0xd234 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d235 +Label: PTP Property 0xd235 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d236 +Label: PTP Property 0xd236 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d237 +Label: PTP Property 0xd237 +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 100 +Choice: 8 201 +Choice: 9 202 +Choice: 10 203 +Choice: 11 204 +Choice: 12 205 +Choice: 13 206 +Choice: 14 207 +Choice: 15 208 +Choice: 16 209 +/main/other/d238 +Label: PTP Property 0xd238 +Type: MENU +Current: 0 +/main/other/d239 +Label: PTP Property 0xd239 +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d23a +Label: PTP Property 0xd23a +Type: MENU +Current: 32789 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32786 +Choice: 7 32787 +Choice: 8 32789 +/main/other/d23b +Label: PTP Property 0xd23b +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d314 +Label: PTP Property 0xd314 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5000.txt new file mode 100644 index 00000000..e7f757ab --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5000.txt @@ -0,0 +1,2284 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D5000 + device version: V1.00 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9200 + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 + 0xc104 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd406 + 0xd407 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01f + 0xd025 + 0xd026 + 0xd032 + 0xd045 + 0xd054 + 0xd056 + 0xd05d + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd064 + 0xd065 + 0xd066 + 0xd06a + 0xd06b + 0xd06c + 0xd070 + 0xd078 + 0xd084 + 0xd085 + 0xd08a + 0xd090 + 0xd091 + 0xd092 + 0xd0a0 + 0xd0a1 + 0xd0b2 + 0xd0c0 + 0xd0c1 + 0xd0c3 + 0xd0c4 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f0 + 0xd0f5 + 0xd0f8 + 0xd0f9 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd108 + 0xd109 + 0xd10b + 0xd10c + 0xd10d + 0xd10e + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd14e + 0xd14f + 0xd160 + 0xd161 + 0xd163 + 0xd164 + 0xd167 + 0xd16a + 0xd16b + 0xd16c + 0xd16d + 0xd170 + 0xd171 + 0xd172 + 0xd173 + 0xd174 + 0xd183 + 0xd18d + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1c0 + 0xd1c1 + 0xd200 + 0xd201 + + +Camera summary: +Manufacturer: Nikon Corporation +Model: D5000 + Version: V1.00 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, MS AVI, DPOF, Script +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Script/3002: PTP error a802 on query + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: +150322 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 31902400512 (30424 MB) + Free Space (Bytes): 31886344192 (30409 MB) + Free Space (Images): 4305 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4288x2848', + '3216x2136', + '2144x1424' + ] value: '4288x2848' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [380,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500] value: f/3.8 (380) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 10500, step 1] value: 21 mm (2100) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786] value: AF-A (32786) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784] value: Default (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,5000] value: 0.05 sec (5000) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32790,32791,32792] value: Auto (32784) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400] value: ISO 200 (200) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20091113T133419' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32788,32789,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 99, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786] value: Closest Subject (32785) +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 30212431 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 30212431 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Live View AF(0xd05d):(readwrite) (type=0x1) Range [0 - 3, step 1] value: 0 +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE/AF Lock (0) +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 6 seconds (1) +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 10 seconds (2) +LCD Off Time(0xd064):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 20 seconds (1) +Img Conf Time(0xd065):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd066:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE only (1) +Assign Func. Button(0xd084):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Customise Command Dials(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Movie Voice(0xd0a1):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Property 0xd0b2:(readwrite) (type=0x2) 15 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 158 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 63 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 105 mm (10500) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560) +Finder ISO Display(0xd0f0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Show ISO/Easy ISO (1) +Self Timer Shot Number(0xd0f5):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Property 0xd0f8:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0f9:(readwrite) (type=0x2) Range [0 - 12, step 1] value: 0 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [69536,65538] value: 65538 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 99, step 1] value: 12 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [1 - 11, step 1] value: Top (1) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 1, step 1] value: USB 2.0 (1) +CCD Serial Number(0xd10d):(read only) (type=0xffff) '1953768 ' +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 5 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +AF Beep Mode(0xd160):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (0) +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-A (2) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 23, step 1] value: 18 +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 1, step 1] value: iTTL (0) +Property 0xd16a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Remote Timeout(0xd16b):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 min (0) +Viewfinder Grid Display(0xd16c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Flash Mode Manual Power(0xd16d):(readwrite) (type=0x2) Range [0 - 5, step 1] value: Full (0) +Property 0xd170:(readwrite) (type=0x1) Range [0 - 3, step 1] value: 0 +Property 0xd171:(readwrite) (type=0x1) Range [0 - 2, step 1] value: 0 +Property 0xd172:(readwrite) (type=0xffff) '000000000000000000000000' +Property 0xd173:(readwrite) (type=0x1) Range [0 - 2, step 1] value: 0 +Property 0xd174:(readwrite) (type=0x1) Range [0 - 1, step 1] value: 0 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 3200 (3) +Indicator Display(0xd18d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 1 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 8, step 1] value: Yes (1) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/autofocusdrive + Label: Drive Nikon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/actions/manualfocusdrive + Label: Drive Nikon DSLR Manual focus + Type: RANGE + Current: 0 + Bottom: -32767 + Top: 32767 + Step: 1 +/main/settings/datetime + Label: Camera Date and Time + Type: DATE + Current: 1258115799 + Printable: Fri Nov 13 13:36:39 2009 +/main/settings/imagecomment + Label: Image Comment + Type: TEXT + Current: +/main/settings/imagecommentenable + Label: Enable Image Comment + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/lcdofftime + Label: LCD Off Time + Type: RADIO + Current: 20 seconds + Choice: 0 10 seconds + Choice: 1 20 seconds + Choice: 2 1 minute + Choice: 3 5 minutes + Choice: 4 10 minutes +/main/settings/recordingmedia + Label: Recording Media + Type: RADIO + Current: Card + Choice: 0 Card + Choice: 1 SDRAM +/main/settings/meterofftime + Label: Meter Off Time + Type: RADIO + Current: 6 seconds + Choice: 0 4 seconds + Choice: 1 6 seconds + Choice: 2 8 seconds + Choice: 3 16 seconds + Choice: 4 30 seconds +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/status/acpower + Label: AC Power + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/externalflash + Label: External Flash + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/batterylevel + Label: Battery Level + Type: TEXT + Current: 100% +/main/status/orientation + Label: Camera Orientation + Type: RADIO + Current: 0' + Choice: 0 0' + Choice: 1 270' + Choice: 2 90' + Choice: 3 180' +/main/status/flashopen + Label: Flash Open + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/flashcharged + Label: Flash Charged + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/status/minfocallength + Label: Focal Length Minimum + Type: TEXT + Current: 18 mm +/main/status/maxfocallength + Label: Focal Length Maximum + Type: TEXT + Current: 105 mm +/main/status/apertureatminfocallength + Label: Maximum Aperture at Focal Length Minimum + Type: TEXT + Current: 4 mm +/main/status/apertureatmaxfocallength + Label: Maximum Aperture at Focal Length Maximum + Type: TEXT + Current: 6 mm +/main/status/lowlight + Label: Low Light + Type: RANGE + Current: 0 + Bottom: 0 + Top: 8 + Step: 1 +/main/status/lightmeter + Label: Light Meter + Type: RANGE + Current: 0 + Bottom: -60 + Top: 60 + Step: 1 +/main/status/aflocked + Label: AF Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/aelocked + Label: AE Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/imgsettings/imagequality + Label: Image Quality + Type: RADIO + Current: JPEG Fine + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF+Basic + Choice: 4 NEF+Normal + Choice: 5 NEF+Fine + Choice: 6 TIFF (RGB) +/main/imgsettings/imagesize + Label: Image Size + Type: RADIO + Current: 4288x2848 + Choice: 0 4288x2848 + Choice: 1 3216x2136 + Choice: 2 2144x1424 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 200 + Choice: 0 100 + Choice: 1 125 + Choice: 2 160 + Choice: 3 200 + Choice: 4 250 + Choice: 5 320 + Choice: 6 400 + Choice: 7 500 + Choice: 8 640 + Choice: 9 800 + Choice: 10 1000 + Choice: 11 1250 + Choice: 12 1600 + Choice: 13 2000 + Choice: 14 2500 + Choice: 15 3200 + Choice: 16 4000 + Choice: 17 5000 + Choice: 18 6400 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Daylight + Choice: 2 Fluorescent + Choice: 3 Tungsten + Choice: 4 Flash + Choice: 5 Cloudy + Choice: 6 Shade + Choice: 7 Preset +/main/imgsettings/autoiso + Label: Auto ISO + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/imgsettings/autoisopadv + Label: Auto ISO PADV Time + Type: RADIO + Current: Unknown value 0012 + Choice: 0 1/125 + Choice: 1 1/60 + Choice: 2 1/30 + Choice: 3 1/15 + Choice: 4 1/8 + Choice: 5 1/4 + Choice: 6 1/2 + Choice: 7 1 + Choice: 8 2 + Choice: 9 4 + Choice: 10 8 + Choice: 11 15 + Choice: 12 30 + Choice: 13 Unknown value 000d + Choice: 14 Unknown value 000e + Choice: 15 Unknown value 000f + Choice: 16 Unknown value 0010 + Choice: 17 Unknown value 0011 + Choice: 18 Unknown value 0012 + Choice: 19 Unknown value 0013 + Choice: 20 Unknown value 0014 + Choice: 21 Unknown value 0015 + Choice: 22 Unknown value 0016 + Choice: 23 Unknown value 0017 +/main/capturesettings/longexpnr + Label: Long Exp Noise Reduction + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusmode + Label: Auto Focus Mode + Type: RADIO + Current: AF-A + Choice: 0 AF-S + Choice: 1 AF-C + Choice: 2 AF-A + Choice: 3 MF (fixed) + Choice: 4 MF (selection) +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: iTTL + Choice: 0 iTTL + Choice: 1 Manual +/main/capturesettings/afbeep + Label: AF Beep Mode + Type: TOGGLE + Current: 1 +/main/capturesettings/f-number + Label: F-Number + Type: RADIO + Current: f/3.8 + Choice: 0 f/3.8 + Choice: 1 f/4 + Choice: 2 f/4.5 + Choice: 3 f/5 + Choice: 4 f/5.6 + Choice: 5 f/6.3 + Choice: 6 f/7.1 + Choice: 7 f/8 + Choice: 8 f/9 + Choice: 9 f/10 + Choice: 10 f/11 + Choice: 11 f/13 + Choice: 12 f/14 + Choice: 13 f/16 + Choice: 14 f/18 + Choice: 15 f/20 + Choice: 16 f/22 + Choice: 17 f/25 +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 21 + Bottom: 18 + Top: 105 + Step: 0.01 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: AF-A + Choice: 0 Manual + Choice: 1 AF-S + Choice: 2 AF-C + Choice: 3 AF-A +/main/capturesettings/expprogram + Label: Exposure Program + Type: RADIO + Current: Auto + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S + Choice: 4 Auto + Choice: 5 Portrait + Choice: 6 Landscape + Choice: 7 Macro + Choice: 8 Sports + Choice: 9 Night Portrait + Choice: 10 Night Landscape + Choice: 11 Children + Choice: 12 Automatic (No Flash) +/main/capturesettings/capturemode + Label: Still Capture Mode + Type: RADIO + Current: Single Shot + Choice: 0 Single Shot + Choice: 1 Burst + Choice: 2 Timer + Choice: 3 Timer + Remote + Choice: 4 Timer + Remote 2 + Choice: 5 Unknown value 8016 +/main/capturesettings/focusmetermode + Label: Focus Metering Mode + Type: RADIO + Current: Closest Subject + Choice: 0 Multi-spot + Choice: 1 Single Area + Choice: 2 Closest Subject + Choice: 3 Group Dynamic +/main/capturesettings/exposuremetermode + Label: Exposure Metering Mode + Type: RADIO + Current: Multi Spot + Choice: 0 Center Weighted + Choice: 1 Multi Spot + Choice: 2 Center Spot +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: iTTL + Choice: 0 iTTL + Choice: 1 Manual +/main/capturesettings/shutterspeed + Label: Shutter Speed + Type: RADIO + Current: 0.0769s + Choice: 0 0.0002s + Choice: 1 0.0769s +/main/capturesettings/shutterspeed2 + Label: Shutter Speed + Type: RADIO + Current: 1/13 + Choice: 0 1/4000 + Choice: 1 1/13 +/main/capturesettings/exposurelock + Label: Exposure Lock + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelaflmode + Label: AE-L/AF-L Mode + Type: RADIO + Current: AE/AF Lock + Choice: 0 AE/AF Lock + Choice: 1 AE Lock only + Choice: 2 AF Lock Only + Choice: 3 AF Lock Hold + Choice: 4 AF On +/main/capturesettings/filenrsequencing + Label: File Number Sequencing + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/viewfindergrid + Label: Viewfinder Grid + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/imagerotationflag + Label: Image Rotation Flag + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nocfcardrelease + Label: Release without CF card + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/flashmodemanualpower + Label: Flash Mode Manual Power + Type: RADIO + Current: Full + Choice: 0 Full + Choice: 1 1/2 + Choice: 2 1/4 + Choice: 3 1/8 + Choice: 4 1/16 + Choice: 5 Unknown value 0005 +/main/capturesettings/autofocusarea + Label: Auto Focus Area + Type: RADIO + Current: Top + Choice: 0 Top + Choice: 1 Bottom + Choice: 2 Left + Choice: 3 Right + Choice: 4 Unknown value 0005 + Choice: 5 Unknown value 0006 + Choice: 6 Unknown value 0007 + Choice: 7 Unknown value 0008 + Choice: 8 Unknown value 0009 + Choice: 9 Unknown value 000a + Choice: 10 Unknown value 000b +/main/capturesettings/flashexposurecompensation + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -3 + Top: 1 + Step: 0.333333 +/main/capturesettings/bracketing + Label: Bracketing + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/evstep + Label: EV Step + Type: RADIO + Current: 1/3 + Choice: 0 1/3 + Choice: 1 1/2 + Choice: 2 Unknown value 0002 +/main/capturesettings/bracketset + Label: Bracket Set + Type: RADIO + Current: AE only + Choice: 0 AE & Flash + Choice: 1 AE only + Choice: 2 Flash only + Choice: 3 WB bracketing + Choice: 4 ADL bracketing +/main/capturesettings/burstnumber + Label: Burst Number + Type: RANGE + Current: 1 + Bottom: 1 + Top: 99 + Step: 1 +/main/capturesettings/autowhitebias + Label: Auto White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/tungstenwhitebias + Label: Tungsten White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/flourescentwhitebias + Label: Fluorescent White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/daylightwhitebias + Label: Daylight White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/flashwhitebias + Label: Flash White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/cloudywhitebias + Label: Cloudy White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/shadewhitebias + Label: Shady White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/whitebiaspresetno + Label: White Balance Bias Preset Nr + Type: RADIO + Current: (null) + Choice: 0 0 +/main/capturesettings/whitebiaspreset0 + Label: White Balance Bias Preset 0 + Type: TEXT + Current: 30212431 +/main/capturesettings/whitebiaspreset1 + Label: White Balance Bias Preset 1 + Type: TEXT + Current: 30212431 +/main/capturesettings/selftimerdelay + Label: Selftimer Delay + Type: RADIO + Current: 10 seconds + Choice: 0 2 seconds + Choice: 1 5 seconds + Choice: 2 10 seconds + Choice: 3 20 seconds +/main/capturesettings/remotetimeout + Label: Remote Timeout + Type: RADIO + Current: 1 minute + Choice: 0 1 minute + Choice: 1 5 minutes + Choice: 2 10 minutes + Choice: 3 15 minutes +/main/other/5001 + Label: Battery Level + Type: MENU + Current: 100 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 + Choice: 50 50 + Choice: 51 51 + Choice: 52 52 + Choice: 53 53 + Choice: 54 54 + Choice: 55 55 + Choice: 56 56 + Choice: 57 57 + Choice: 58 58 + Choice: 59 59 + Choice: 60 60 + Choice: 61 61 + Choice: 62 62 + Choice: 63 63 + Choice: 64 64 + Choice: 65 65 + Choice: 66 66 + Choice: 67 67 + Choice: 68 68 + Choice: 69 69 + Choice: 70 70 + Choice: 71 71 + Choice: 72 72 + Choice: 73 73 + Choice: 74 74 + Choice: 75 75 + Choice: 76 76 + Choice: 77 77 + Choice: 78 78 + Choice: 79 79 + Choice: 80 80 + Choice: 81 81 + Choice: 82 82 + Choice: 83 83 + Choice: 84 84 + Choice: 85 85 + Choice: 86 86 + Choice: 87 87 + Choice: 88 88 + Choice: 89 89 + Choice: 90 90 + Choice: 91 91 + Choice: 92 92 + Choice: 93 93 + Choice: 94 94 + Choice: 95 95 + Choice: 96 96 + Choice: 97 97 + Choice: 98 98 + Choice: 99 99 + Choice: 100 100 +/main/other/5003 + Label: Image Size + Type: MENU + Current: 4288x2848 + Choice: 0 4288x2848 + Choice: 1 3216x2136 + Choice: 2 2144x1424 +/main/other/5004 + Label: Compression Setting + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 +/main/other/5005 + Label: White Balance + Type: MENU + Current: 2 + Choice: 0 2 + Choice: 1 4 + Choice: 2 5 + Choice: 3 6 + Choice: 4 7 + Choice: 5 32784 + Choice: 6 32785 + Choice: 7 32787 +/main/other/5007 + Label: F-Number + Type: MENU + Current: 380 + Choice: 0 380 + Choice: 1 400 + Choice: 2 450 + Choice: 3 500 + Choice: 4 560 + Choice: 5 630 + Choice: 6 710 + Choice: 7 800 + Choice: 8 900 + Choice: 9 1000 + Choice: 10 1100 + Choice: 11 1300 + Choice: 12 1400 + Choice: 13 1600 + Choice: 14 1800 + Choice: 15 2000 + Choice: 16 2200 + Choice: 17 2500 +/main/other/5008 + Label: Focal Length + Type: RANGE + Current: 2100 + Bottom: 1800 + Top: 10500 + Step: 1 +/main/other/500a + Label: Focus Mode + Type: MENU + Current: 32786 + Choice: 0 1 + Choice: 1 32784 + Choice: 2 32785 + Choice: 3 32786 +/main/other/500b + Label: Exposure Metering Mode + Type: MENU + Current: 3 + Choice: 0 2 + Choice: 1 3 + Choice: 2 4 +/main/other/500c + Label: Flash Mode + Type: MENU + Current: 32784 + Choice: 0 2 + Choice: 1 4 + Choice: 2 32784 +/main/other/500d + Label: Exposure Time + Type: MENU + Current: 769 + Choice: 0 2 + Choice: 1 769 +/main/other/500e + Label: Exposure Program Mode + Type: MENU + Current: 32784 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 32784 + Choice: 5 32785 + Choice: 6 32786 + Choice: 7 32787 + Choice: 8 32788 + Choice: 9 32789 + Choice: 10 32790 + Choice: 11 32791 + Choice: 12 32792 +/main/other/500f + Label: Exposure Index (film speed ISO) + Type: MENU + Current: 200 + Choice: 0 100 + Choice: 1 125 + Choice: 2 160 + Choice: 3 200 + Choice: 4 250 + Choice: 5 320 + Choice: 6 400 + Choice: 7 500 + Choice: 8 640 + Choice: 9 800 + Choice: 10 1000 + Choice: 11 1250 + Choice: 12 1600 + Choice: 13 2000 + Choice: 14 2500 + Choice: 15 3200 + Choice: 16 4000 + Choice: 17 5000 + Choice: 18 6400 +/main/other/5010 + Label: Exposure Bias Compensation + Type: MENU + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/other/5011 + Label: Date & Time + Type: TEXT + Current: 20091113T133653 +/main/other/5013 + Label: Still Capture Mode + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 32785 + Choice: 3 32788 + Choice: 4 32789 + Choice: 5 32790 +/main/other/5018 + Label: Burst Number + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 + Choice: 11 12 + Choice: 12 13 + Choice: 13 14 + Choice: 14 15 + Choice: 15 16 + Choice: 16 17 + Choice: 17 18 + Choice: 18 19 + Choice: 19 20 + Choice: 20 21 + Choice: 21 22 + Choice: 22 23 + Choice: 23 24 + Choice: 24 25 + Choice: 25 26 + Choice: 26 27 + Choice: 27 28 + Choice: 28 29 + Choice: 29 30 + Choice: 30 31 + Choice: 31 32 + Choice: 32 33 + Choice: 33 34 + Choice: 34 35 + Choice: 35 36 + Choice: 36 37 + Choice: 37 38 + Choice: 38 39 + Choice: 39 40 + Choice: 40 41 + Choice: 41 42 + Choice: 42 43 + Choice: 43 44 + Choice: 44 45 + Choice: 45 46 + Choice: 46 47 + Choice: 47 48 + Choice: 48 49 + Choice: 49 50 + Choice: 50 51 + Choice: 51 52 + Choice: 52 53 + Choice: 53 54 + Choice: 54 55 + Choice: 55 56 + Choice: 56 57 + Choice: 57 58 + Choice: 58 59 + Choice: 59 60 + Choice: 60 61 + Choice: 61 62 + Choice: 62 63 + Choice: 63 64 + Choice: 64 65 + Choice: 65 66 + Choice: 66 67 + Choice: 67 68 + Choice: 68 69 + Choice: 69 70 + Choice: 70 71 + Choice: 71 72 + Choice: 72 73 + Choice: 73 74 + Choice: 74 75 + Choice: 75 76 + Choice: 76 77 + Choice: 77 78 + Choice: 78 79 + Choice: 79 80 + Choice: 80 81 + Choice: 81 82 + Choice: 82 83 + Choice: 83 84 + Choice: 84 85 + Choice: 85 86 + Choice: 86 87 + Choice: 87 88 + Choice: 88 89 + Choice: 89 90 + Choice: 90 91 + Choice: 91 92 + Choice: 92 93 + Choice: 93 94 + Choice: 94 95 + Choice: 95 96 + Choice: 96 97 + Choice: 97 98 + Choice: 98 99 +/main/other/501c + Label: Focus Metering Mode + Type: MENU + Current: 32785 + Choice: 0 2 + Choice: 1 32784 + Choice: 2 32785 + Choice: 3 32786 +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d017 + Label: Auto White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d018 + Label: Tungsten White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d019 + Label: Fluorescent White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01a + Label: Daylight White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01b + Label: Flash White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01c + Label: Cloudy White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01d + Label: Shady White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01f + Label: White Balance Preset Number + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d025 + Label: White Balance Preset Value 0 + Type: TEXT + Current: 30212431 +/main/other/d026 + Label: White Balance Preset Value 1 + Type: TEXT + Current: 30212431 +/main/other/d032 + Label: Color Space + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d045 + Label: Reset Menu Bank + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d054 + Label: Auto ISO + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d056 + Label: Exposure Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d05d + Label: Live View AF + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d05e + Label: Exposure Lock + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d05f + Label: Focus Lock + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d062 + Label: Auto Meter Off Time + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d063 + Label: Self Timer Delay + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d064 + Label: LCD Off Time + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d065 + Label: Img Conf Time + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d066 + Label: PTP Property 0xd066 + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d06a + Label: Exposure delay mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d06b + Label: Long Exposure Noise Reduction + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d06c + Label: File Number Sequencing + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d070 + Label: High ISO noise reduction + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d078 + Label: Bracket Set + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d084 + Label: Assign Func. Button + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d085 + Label: Customise Command Dials + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d08a + Label: No CF Card Release + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d090 + Label: Image Comment String + Type: TEXT + Current: +/main/other/d091 + Label: Image Comment Enable + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d092 + Label: Image Rotation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0a0 + Label: Movie Screen Size + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d0a1 + Label: Movie Voice + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0b2 + Label: PTP Property 0xd0b2 + Type: TEXT + Current: 15 +/main/other/d0c0 + Label: Bracketing Enable + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0c1 + Label: Exposure Bracketing Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d0c3 + Label: Auto Exposure Bracket Count + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 +/main/other/d0c4 + Label: White Balance Bracket Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d0e0 + Label: Lens ID + Type: TEXT + Current: 158 +/main/other/d0e1 + Label: Lens Sort + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d0e2 + Label: Lens Type + Type: TEXT + Current: 63 +/main/other/d0e3 + Label: Min. Focal Length + Type: TEXT + Current: 1800 +/main/other/d0e4 + Label: Max. Focal Length + Type: TEXT + Current: 10500 +/main/other/d0e5 + Label: Max. Aperture at Min. Focal Length + Type: TEXT + Current: 350 +/main/other/d0e6 + Label: Max. Aperture at Max. Focal Length + Type: TEXT + Current: 560 +/main/other/d0f0 + Label: Finder ISO Display + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d0f5 + Label: Self Timer Shot Number + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 +/main/other/d0f8 + Label: PTP Property 0xd0f8 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0f9 + Label: PTP Property 0xd0f9 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 +/main/other/d100 + Label: Nikon Exposure Time + Type: MENU + Current: 65549 + Choice: 0 69536 + Choice: 1 65549 +/main/other/d101 + Label: AC Power + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d102 + Label: Warning Status + Type: TEXT + Current: 0 +/main/other/d103 + Label: Maximum Shots + Type: MENU + Current: 12 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 + Choice: 50 50 + Choice: 51 51 + Choice: 52 52 + Choice: 53 53 + Choice: 54 54 + Choice: 55 55 + Choice: 56 56 + Choice: 57 57 + Choice: 58 58 + Choice: 59 59 + Choice: 60 60 + Choice: 61 61 + Choice: 62 62 + Choice: 63 63 + Choice: 64 64 + Choice: 65 65 + Choice: 66 66 + Choice: 67 67 + Choice: 68 68 + Choice: 69 69 + Choice: 70 70 + Choice: 71 71 + Choice: 72 72 + Choice: 73 73 + Choice: 74 74 + Choice: 75 75 + Choice: 76 76 + Choice: 77 77 + Choice: 78 78 + Choice: 79 79 + Choice: 80 80 + Choice: 81 81 + Choice: 82 82 + Choice: 83 83 + Choice: 84 84 + Choice: 85 85 + Choice: 86 86 + Choice: 87 87 + Choice: 88 88 + Choice: 89 89 + Choice: 90 90 + Choice: 91 91 + Choice: 92 92 + Choice: 93 93 + Choice: 94 94 + Choice: 95 95 + Choice: 96 96 + Choice: 97 97 + Choice: 98 98 + Choice: 99 99 +/main/other/d104 + Label: AF Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d105 + Label: AE Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d108 + Label: Active AF Sensor + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 +/main/other/d109 + Label: Flexible Program + Type: RANGE + Current: 0 + Bottom: -30 + Top: 30 + Step: 2 +/main/other/d10b + Label: Recording Media + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d10c + Label: USB Speed + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d10d + Label: CCD Serial Number + Type: TEXT + Current: 1953768 +/main/other/d10e + Label: Camera Orientation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d120 + Label: External Flash Attached + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d121 + Label: External Flash Status + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d122 + Label: External Flash Sort + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d124 + Label: External Flash Compensation + Type: MENU + Current: 0 + Choice: 0 -18 + Choice: 1 -17 + Choice: 2 -16 + Choice: 3 -15 + Choice: 4 -14 + Choice: 5 -13 + Choice: 6 -12 + Choice: 7 -11 + Choice: 8 -10 + Choice: 9 -9 + Choice: 10 -8 + Choice: 11 -7 + Choice: 12 -6 + Choice: 13 -5 + Choice: 14 -4 + Choice: 15 -3 + Choice: 16 -2 + Choice: 17 -1 + Choice: 18 0 + Choice: 19 1 + Choice: 20 2 + Choice: 21 3 + Choice: 22 4 + Choice: 23 5 + Choice: 24 6 + Choice: 25 7 + Choice: 26 8 + Choice: 27 9 + Choice: 28 10 + Choice: 29 11 + Choice: 30 12 + Choice: 31 13 + Choice: 32 14 + Choice: 33 15 + Choice: 34 16 + Choice: 35 17 + Choice: 36 18 +/main/other/d125 + Label: External Flash Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d126 + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -18 + Top: 6 + Step: 2 +/main/other/d14e + Label: ISO Auto Time + Type: MENU + Current: 5 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d14f + Label: Flourescent Type + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +/main/other/d160 + Label: AF Beep Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d161 + Label: Autofocus Mode + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d163 + Label: AF Assist Lamp + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d164 + Label: Auto ISO P/A/DVP Setting + Type: MENU + Current: 18 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 +/main/other/d167 + Label: Flash Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d16a + Label: PTP Property 0xd16a + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d16b + Label: Remote Timeout + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d16c + Label: Viewfinder Grid Display + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d16d + Label: Flash Mode Manual Power + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d170 + Label: PTP Property 0xd170 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d171 + Label: PTP Property 0xd171 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d172 + Label: PTP Property 0xd172 + Type: TEXT + Current: 000000000000000000000000 +/main/other/d173 + Label: PTP Property 0xd173 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d174 + Label: PTP Property 0xd174 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d183 + Label: ISO Auto High Limit + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d18d + Label: Indicator Display + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1a2 + Label: Live View Status + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1a3 + Label: Live View Image Zoom Ratio + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d1a4 + Label: Live View Prohibit Condition + Type: TEXT + Current: 1 +/main/other/d1b0 + Label: Exposure Display Status + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 +/main/other/d1b1 + Label: Exposure Indicate Status + Type: MENU + Current: 0 + Choice: 0 -60 + Choice: 1 -59 + Choice: 2 -58 + Choice: 3 -57 + Choice: 4 -56 + Choice: 5 -55 + Choice: 6 -54 + Choice: 7 -53 + Choice: 8 -52 + Choice: 9 -51 + Choice: 10 -50 + Choice: 11 -49 + Choice: 12 -48 + Choice: 13 -47 + Choice: 14 -46 + Choice: 15 -45 + Choice: 16 -44 + Choice: 17 -43 + Choice: 18 -42 + Choice: 19 -41 + Choice: 20 -40 + Choice: 21 -39 + Choice: 22 -38 + Choice: 23 -37 + Choice: 24 -36 + Choice: 25 -35 + Choice: 26 -34 + Choice: 27 -33 + Choice: 28 -32 + Choice: 29 -31 + Choice: 30 -30 + Choice: 31 -29 + Choice: 32 -28 + Choice: 33 -27 + Choice: 34 -26 + Choice: 35 -25 + Choice: 36 -24 + Choice: 37 -23 + Choice: 38 -22 + Choice: 39 -21 + Choice: 40 -20 + Choice: 41 -19 + Choice: 42 -18 + Choice: 43 -17 + Choice: 44 -16 + Choice: 45 -15 + Choice: 46 -14 + Choice: 47 -13 + Choice: 48 -12 + Choice: 49 -11 + Choice: 50 -10 + Choice: 51 -9 + Choice: 52 -8 + Choice: 53 -7 + Choice: 54 -6 + Choice: 55 -5 + Choice: 56 -4 + Choice: 57 -3 + Choice: 58 -2 + Choice: 59 -1 + Choice: 60 0 + Choice: 61 1 + Choice: 62 2 + Choice: 63 3 + Choice: 64 4 + Choice: 65 5 + Choice: 66 6 + Choice: 67 7 + Choice: 68 8 + Choice: 69 9 + Choice: 70 10 + Choice: 71 11 + Choice: 72 12 + Choice: 73 13 + Choice: 74 14 + Choice: 75 15 + Choice: 76 16 + Choice: 77 17 + Choice: 78 18 + Choice: 79 19 + Choice: 80 20 + Choice: 81 21 + Choice: 82 22 + Choice: 83 23 + Choice: 84 24 + Choice: 85 25 + Choice: 86 26 + Choice: 87 27 + Choice: 88 28 + Choice: 89 29 + Choice: 90 30 + Choice: 91 31 + Choice: 92 32 + Choice: 93 33 + Choice: 94 34 + Choice: 95 35 + Choice: 96 36 + Choice: 97 37 + Choice: 98 38 + Choice: 99 39 + Choice: 100 40 + Choice: 101 41 + Choice: 102 42 + Choice: 103 43 + Choice: 104 44 + Choice: 105 45 + Choice: 106 46 + Choice: 107 47 + Choice: 108 48 + Choice: 109 49 + Choice: 110 50 + Choice: 111 51 + Choice: 112 52 + Choice: 113 53 + Choice: 114 54 + Choice: 115 55 + Choice: 116 56 + Choice: 117 57 + Choice: 118 58 + Choice: 119 59 + Choice: 120 60 +/main/other/d1b2 + Label: PTP Property 0xd1b2 + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1b3 + Label: Exposure Indicate Lightup + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d1c0 + Label: Flash Open + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1c1 + Label: Flash Charged + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d200 + Label: Active Pic Ctrl Item + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 101 + Choice: 7 102 + Choice: 8 103 + Choice: 9 104 + Choice: 10 201 + Choice: 11 202 + Choice: 12 203 + Choice: 13 204 + Choice: 14 205 + Choice: 15 206 + Choice: 16 207 + Choice: 17 208 + Choice: 18 209 +/main/other/d201 + Label: Change Pic Ctrl Item + Type: MENU + Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5100.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5100.txt new file mode 100644 index 00000000..463d09fc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5100.txt @@ -0,0 +1,465 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D5100 + Version: V1.00 + Serial Number: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: CANON_DC + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 16298016768 (15543 MB) + Free Space (Bytes): 8819998720 (8411 MB) + Free Space (Images): 903 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4928x3264', + '3696x2448', + '2464x1632' + ] value: '4928x3264' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [140,160,180,200,220,250,280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/1.4 (140) +Focal Length(0x5008):(read only) (type=0x6) Range [8500 - 8500, step 1] value: 85 mm (8500) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,769] value: 0.0077 sec (769) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32790,32791,32792,32793] value: Auto (32784) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20110829T001323' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32788,32789,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786] value: Single Area (32784) +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 30212431 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 30212431 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd036:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd037:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 1 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Live View AF(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd061:(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 3 +Property 0xd066:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE only (1) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Property 0xd08f:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 5 +Property 0xd0a2:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 8 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [2 - 2, step 1] value: 2 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [2 - 2, step 1] value: 2 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 0, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 74 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 33 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 85 mm (8500) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 85 mm (8500) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/1.4 (140) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/1.4 (140) +Property 0xd0f8:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0f9:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 18 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [69536,65549] value: 65549 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 99, step 1] value: 16 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 11, step 1] value: Top (1) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd130:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd131:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd132:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 5 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: MF (fixed) (3) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 23, step 1] value: 18 +Property 0xd16a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Remote Timeout(0xd16b):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 5 mins (1) +Flash Mode Manual Power(0xd16d):(readwrite) (type=0x2) Range [0 - 5, step 1] value: Full (0) +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 7, step 1] value: Hi 1 (4) +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 99, step 1] value: 17 +Property 0xd1b5:(read only) (type=0x4) Enumeration [0,32784,32785,32786,32787,32800] value: 0 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 903 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +Camera summary: +Manufacturer: Nikon Corporation +Model: D5100 + Version: V1.01 + Serial Number: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, DPOF, Script, Apple Quicktime +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Script/3002: PTP error a802 on query + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate de97/ScanDepth de99/AudioWAVECodec de9b/VideoFourCCCodec de9c/VideoBitRate + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 20% (20) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4928x3264', + '3696x2448', + '2464x1632' + ] value: '2464x1632' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [0] value: f/0 (0) +Focal Length(0x5008):(read only) (type=0x6) Range [0 - 0, step 1] value: 0 mm (0) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Center Weighted Average (2) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32786] value: Auto (32784) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967295] value: 0.033 sec (3333) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32790,32791,32792,32793] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: ISO 400 (400) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20120213T172021' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32788,32789,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786] value: Single Area (32784) +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 30212431 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 30212431 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd036:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd037:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 1 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 3 +Property 0xd066:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE only (1) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Property 0xd08f:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 2 +Property 0xd0a2:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 4 +Property 0xd0a4:(read only) (type=0x6) 8 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [2 - 2, step 1] value: 2 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [2 - 2, step 1] value: 2 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 0, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) Unknown (0) +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Lens Type(0xd0e2):(read only) (type=0x2) 0 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 0 mm (0) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 0 mm (0) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/0 (0) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/0 (0) +Property 0xd0f8:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0f9:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 18 +Nikon Exposure Time(0xd100):(readwrite) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967295] value: 65539 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 99, step 1] value: 39 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 11, step 1] value: Top (1) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: SDRam (1) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 90' (2) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd130:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd131:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd132:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 5 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: MF (fixed) (3) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 23, step 1] value: 18 +Property 0xd16a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Remote Timeout(0xd16b):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 min (0) +Flash Mode Manual Power(0xd16d):(readwrite) (type=0x2) Range [0 - 5, step 1] value: Full (0) +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 7, step 1] value: Hi 2 (5) +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: -2.3 stops (-28) +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 99, step 1] value: 39 +Property 0xd1b5:(read only) (type=0x4) Enumeration [0,32784,32785,32786,32787,32800] value: 0 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 6425 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 2 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +Device info: +Manufacturer: Nikon Corporation + Model: D5100 + device version: V1.01 + serial number: 'nnnnnnn0000000000000000000000000' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9209 + 0x920a + 0x920b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 + 0xc104 + 0xc105 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd015 + 0xd017 + 0xd303 + 0xd406 + 0xd407 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01f + 0xd025 + 0xd026 + 0xd032 + 0xd036 + 0xd037 + 0xd054 + 0xd056 + 0xd05d + 0xd061 + 0xd066 + 0xd06b + 0xd070 + 0xd078 + 0xd08a + 0xd08f + 0xd090 + 0xd091 + 0xd092 + 0xd0a0 + 0xd0a2 + 0xd0a4 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f8 + 0xd0f9 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10e + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd130 + 0xd131 + 0xd132 + 0xd14e + 0xd14f + 0xd161 + 0xd164 + 0xd16a + 0xd16b + 0xd16d + 0xd183 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1b4 + 0xd1b5 + 0xd1c0 + 0xd1c1 + 0xd1f0 + 0xd1f1 + 0xd200 + 0xd201 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5200.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5200.txt new file mode 100644 index 00000000..e22457b1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5200.txt @@ -0,0 +1,2640 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D5200 + Version: V1.00 + Serial Number: nnnnnnn0000000000000000000000000 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: Undefined Type, Association/Directory, Script, DPOF, Apple Quicktime, JPEG + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D5200 [Slot 1] + + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 3956801536 (3773 MB) + Free Space (Bytes): 2890072064 (2756 MB) + Free Space (Images): 55 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 20% (20) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6000x4000', + '4496x3000', + '2992x2000' + ] value: '6000x4000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: 7 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500,2900] value: f/4.5 (450) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 35 mm (3500) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.0017 sec (166) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32790,32791,32792,32793] value: P (2) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: ISO 200 (200) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130427T150015' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32784,32785,32788,32789,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788] value: Single Area (32784) +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 40042905 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 40042905 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Video Mode(0xd036):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Effect Mode(0xd037):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Live View AF Area(0xd05d):(readwrite) (type=0x1) Range [0 - 3, step 1] value: 1 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 3 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE only (1) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0a4:(read only) (type=0x6) 16384 +Manual Movie Setting(0xd0a6):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Property 0xd0a7:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [2 - 2, step 1] value: 2 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [2 - 2, step 1] value: 2 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 0, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 148 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 59 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 55 mm (5500) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560) +Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Scene Mode(0xd0f9):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 18 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 65596 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [1 - 39, step 1] value: Top (1) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 5 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: MF (fixed) (3) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 24, step 1] value: 24 +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 7, step 1] value: Hi 2 (5) +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 96, step 1] value: 6 +Property 0xd1b5:(read only) (type=0x4) Enumeration [0,32784,32785,32786,32787,32800] value: 0 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 55 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1367071215 +Printable: Sat 27 Apr 2013 04:00:15 PM CEST +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/cleansensor +Label: Clean Sensor +Type: RADIO +Current: Startup and Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +Choice: 3 Startup and Shutdown +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 43102450000000000000000000000000 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D5200 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0 +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 20% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/flashopen +Label: Flash Open +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/flashcharged +Label: Flash Charged +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 18 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 55 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 4 +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 6 +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 0 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 200 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 25600 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/minimumshutterspeed +Label: Minimum Shutter Speed +Type: RADIO +Current: Unknown value 0018 +Choice: 0 1/2000 +Choice: 1 1/1600 +Choice: 2 1/1250 +Choice: 3 1/1000 +Choice: 4 1/800 +Choice: 5 1/640 +Choice: 6 1/500 +Choice: 7 1/400 +Choice: 8 1/320 +Choice: 9 1/250 +Choice: 10 1/200 +Choice: 11 1/160 +Choice: 12 1/125 +Choice: 13 1/100 +Choice: 14 1/80 +Choice: 15 1/60 +Choice: 16 1/50 +Choice: 17 1/40 +Choice: 18 1/30 +Choice: 19 1/15 +Choice: 20 1/8 +Choice: 21 1/4 +Choice: 22 1/2 +Choice: 23 1 +Choice: 24 Unknown value 0018 +/main/capturesettings/isoautohilimit +Label: ISO Auto Hi Limit +Type: RADIO +Current: Hi 2 +Choice: 0 400 +Choice: 1 800 +Choice: 2 1600 +Choice: 3 3200 +Choice: 4 Hi 1 +Choice: 5 Hi 2 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +/main/capturesettings/dlighting +Label: Active D-Lighting +Type: RADIO +Current: Auto +Choice: 0 Extra high +Choice: 1 High +Choice: 2 Normal +Choice: 3 Low +Choice: 4 Off +Choice: 5 Auto +/main/capturesettings/highisonr +Label: High ISO Noise Reduction +Type: RADIO +Current: Normal +Choice: 0 Off +Choice: 1 Low +Choice: 2 Normal +Choice: 3 High +/main/capturesettings/moviequality +Label: Movie Quality +Type: RADIO +Current: 320x216 +Choice: 0 320x216 +Choice: 1 640x424 +Choice: 2 1280x720 +Choice: 3 Unknown value 0003 +Choice: 4 Unknown value 0004 +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/assistlight +Label: Assist Light +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Red-eye automatic +Choice: 1 Auto +Choice: 2 Auto Slow Sync +Choice: 3 Rear Curtain Sync + Slow Sync +Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/4.5 +Choice: 0 f/4.5 +Choice: 1 f/5 +Choice: 2 f/5.6 +Choice: 3 f/6.3 +Choice: 4 f/7.1 +Choice: 5 f/8 +Choice: 6 f/9 +Choice: 7 f/10 +Choice: 8 f/11 +Choice: 9 f/13 +Choice: 10 f/14 +Choice: 11 f/16 +Choice: 12 f/18 +Choice: 13 f/20 +Choice: 14 f/22 +Choice: 15 f/25 +Choice: 16 f/29 +/main/capturesettings/flexibleprogram +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: NEF+Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Basic +Choice: 5 NEF+Normal +Choice: 6 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 35 +Bottom: 18 +Top: 55 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Manual +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: MF (fixed) +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/effectmode +Label: Effect Mode +Type: RADIO +Current: Night Vision +Choice: 0 Night Vision +Choice: 1 Color sketch +Choice: 2 Miniature effect +Choice: 3 Selective color +Choice: 4 Silhouette +Choice: 5 High key +Choice: 6 Low key +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: P +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Portrait +Choice: 6 Landscape +Choice: 7 Macro +Choice: 8 Sports +Choice: 9 Night Landscape +Choice: 10 Children +Choice: 11 Automatic (No Flash) +Choice: 12 Unknown value 8019 +/main/capturesettings/scenemode +Label: Scene Mode +Type: RADIO +Current: Night Portrait +Choice: 0 Night landscape +Choice: 1 Party/Indoor +Choice: 2 Beach/Snow +Choice: 3 Sunset +Choice: 4 Dusk/Dawn +Choice: 5 Pet Portrait +Choice: 6 Candlelight +Choice: 7 Blossom +Choice: 8 Autumn colors +Choice: 9 Food +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Night Portrait +/main/capturesettings/hdrmode +Label: HDR Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Quick Response Remote +Choice: 5 Delayed Remote +Choice: 6 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Single Area +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +Choice: 4 Unknown value 8013 +Choice: 5 Unknown value 8014 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0166s +Choice: 0 0.0002s +Choice: 1 0.0003s +Choice: 2 0.0004s +Choice: 3 0.0005s +Choice: 4 0.0006s +Choice: 5 0.0008s +Choice: 6 0.0010s +Choice: 7 0.0012s +Choice: 8 0.0015s +Choice: 9 0.0020s +Choice: 10 0.0025s +Choice: 11 0.0031s +Choice: 12 0.0040s +Choice: 13 0.0050s +Choice: 14 0.0062s +Choice: 15 0.0080s +Choice: 16 0.0100s +Choice: 17 0.0125s +Choice: 18 0.0166s +Choice: 19 0.0200s +Choice: 20 0.0250s +Choice: 21 0.0333s +Choice: 22 0.0400s +Choice: 23 0.0500s +Choice: 24 0.0666s +Choice: 25 0.0769s +Choice: 26 0.1000s +Choice: 27 0.1250s +Choice: 28 0.1666s +Choice: 29 0.2000s +Choice: 30 0.2500s +Choice: 31 0.3333s +Choice: 32 0.4000s +Choice: 33 0.5000s +Choice: 34 0.6250s +Choice: 35 0.7692s +Choice: 36 1.0000s +Choice: 37 1.3000s +Choice: 38 1.6000s +Choice: 39 2.0000s +Choice: 40 2.5000s +Choice: 41 3.0000s +Choice: 42 4.0000s +Choice: 43 5.0000s +Choice: 44 6.0000s +Choice: 45 8.0000s +Choice: 46 10.0000s +Choice: 47 13.0000s +Choice: 48 15.0000s +Choice: 49 20.0000s +Choice: 50 25.0000s +Choice: 51 30.0000s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/60 +Choice: 0 1/4000 +Choice: 1 1/3200 +Choice: 2 1/2500 +Choice: 3 1/2000 +Choice: 4 1/1600 +Choice: 5 1/1250 +Choice: 6 1/1000 +Choice: 7 1/800 +Choice: 8 1/640 +Choice: 9 1/500 +Choice: 10 1/400 +Choice: 11 1/320 +Choice: 12 1/250 +Choice: 13 1/200 +Choice: 14 1/160 +Choice: 15 1/125 +Choice: 16 1/100 +Choice: 17 1/80 +Choice: 18 1/60 +Choice: 19 1/50 +Choice: 20 1/40 +Choice: 21 1/30 +Choice: 22 1/25 +Choice: 23 1/20 +Choice: 24 1/15 +Choice: 25 1/13 +Choice: 26 1/10 +Choice: 27 1/8 +Choice: 28 1/6 +Choice: 29 1/5 +Choice: 30 1/4 +Choice: 31 1/3 +Choice: 32 10/25 +Choice: 33 1/2 +Choice: 34 10/16 +Choice: 35 10/13 +Choice: 36 1 +Choice: 37 13/10 +Choice: 38 16/10 +Choice: 39 2 +Choice: 40 25/10 +Choice: 41 3 +Choice: 42 4 +Choice: 43 5 +Choice: 44 6 +Choice: 45 8 +Choice: 46 10 +Choice: 47 13 +Choice: 48 15 +Choice: 49 20 +Choice: 50 25 +Choice: 51 30 +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Unknown value 0003 +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Unknown value 0003 +Choice: 3 Manual Focus +Choice: 4 Unknown value 0003 +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Top +Choice: 0 Top +Choice: 1 Bottom +Choice: 2 Left +Choice: 3 Right +Choice: 4 Unknown value 0005 +Choice: 5 Unknown value 0006 +Choice: 6 Unknown value 0007 +Choice: 7 Unknown value 0008 +Choice: 8 Unknown value 0009 +Choice: 9 Unknown value 000a +Choice: 10 Unknown value 000b +Choice: 11 Unknown value 000c +Choice: 12 Unknown value 000d +Choice: 13 Unknown value 000e +Choice: 14 Unknown value 000f +Choice: 15 Unknown value 0010 +Choice: 16 Unknown value 0011 +Choice: 17 Unknown value 0012 +Choice: 18 Unknown value 0013 +Choice: 19 Unknown value 0014 +Choice: 20 Unknown value 0015 +Choice: 21 Unknown value 0016 +Choice: 22 Unknown value 0017 +Choice: 23 Unknown value 0018 +Choice: 24 Unknown value 0019 +Choice: 25 Unknown value 001a +Choice: 26 Unknown value 001b +Choice: 27 Unknown value 001c +Choice: 28 Unknown value 001d +Choice: 29 Unknown value 001e +Choice: 30 Unknown value 001f +Choice: 31 Unknown value 0020 +Choice: 32 Unknown value 0021 +Choice: 33 Unknown value 0022 +Choice: 34 Unknown value 0023 +Choice: 35 Unknown value 0024 +Choice: 36 Unknown value 0025 +Choice: 37 Unknown value 0026 +Choice: 38 Unknown value 0027 +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0.333333 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE only +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/autowhitebias +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/tungstenwhitebias +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flourescentwhitebias +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/daylightwhitebias +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flashwhitebias +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/cloudywhitebias +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/shadewhitebias +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 0 +Choice: 0 0 +/main/capturesettings/whitebiaspreset0 +Label: White Balance Bias Preset 0 +Type: TEXT +Current: 40042905 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 40042905 +/main/capturesettings/manualmoviesetting +Label: Manual Movie Setting +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/microphone +Label: Microphone +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +Choice: 5 Unknown value 0005 +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/videomode +Label: Video Mode +Type: RADIO +Current: PAL +Choice: 0 NTSC +Choice: 1 PAL +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 450 +Choice: 0 450 +Choice: 1 500 +Choice: 2 560 +Choice: 3 630 +Choice: 4 710 +Choice: 5 800 +Choice: 6 900 +Choice: 7 1000 +Choice: 8 1100 +Choice: 9 1300 +Choice: 10 1400 +Choice: 11 1600 +Choice: 12 1800 +Choice: 13 2000 +Choice: 14 2200 +Choice: 15 2500 +Choice: 16 2900 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 3500 +Bottom: 1800 +Top: 5500 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 4 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 166 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 8 +Choice: 6 10 +Choice: 7 12 +Choice: 8 15 +Choice: 9 20 +Choice: 10 25 +Choice: 11 31 +Choice: 12 40 +Choice: 13 50 +Choice: 14 62 +Choice: 15 80 +Choice: 16 100 +Choice: 17 125 +Choice: 18 166 +Choice: 19 200 +Choice: 20 250 +Choice: 21 333 +Choice: 22 400 +Choice: 23 500 +Choice: 24 666 +Choice: 25 769 +Choice: 26 1000 +Choice: 27 1250 +Choice: 28 1666 +Choice: 29 2000 +Choice: 30 2500 +Choice: 31 3333 +Choice: 32 4000 +Choice: 33 5000 +Choice: 34 6250 +Choice: 35 7692 +Choice: 36 10000 +Choice: 37 13000 +Choice: 38 16000 +Choice: 39 20000 +Choice: 40 25000 +Choice: 41 30000 +Choice: 42 40000 +Choice: 43 50000 +Choice: 44 60000 +Choice: 45 80000 +Choice: 46 100000 +Choice: 47 130000 +Choice: 48 150000 +Choice: 49 200000 +Choice: 50 250000 +Choice: 51 300000 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32786 +Choice: 7 32787 +Choice: 8 32788 +Choice: 9 32790 +Choice: 10 32791 +Choice: 11 32792 +Choice: 12 32793 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 200 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130427T150015 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32788 +Choice: 5 32789 +Choice: 6 32790 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d025 +Label: White Balance Preset Value 0 +Type: TEXT +Current: 40042905 +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 40042905 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d036 +Label: Video Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d037 +Label: Effect Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Clean Image Sensor +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 16384 +/main/other/d0a6 +Label: Manual Movie Setting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a7 +Label: PTP Property 0xd0a7 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a2 +Label: Movie Microphone +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 2 +Choice: 0 2 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 2 +Choice: 0 2 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 148 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 59 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 1800 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 5500 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 350 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 560 +/main/other/d0f8 +Label: Auto Distortion Control +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0f9 +Label: Scene Mode +Type: MENU +Current: 18 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65596 +Choice: 0 69536 +Choice: 1 68736 +Choice: 2 68036 +Choice: 3 67536 +Choice: 4 67136 +Choice: 5 66786 +Choice: 6 66536 +Choice: 7 66336 +Choice: 8 66176 +Choice: 9 66036 +Choice: 10 65936 +Choice: 11 65856 +Choice: 12 65786 +Choice: 13 65736 +Choice: 14 65696 +Choice: 15 65661 +Choice: 16 65636 +Choice: 17 65616 +Choice: 18 65596 +Choice: 19 65586 +Choice: 20 65576 +Choice: 21 65566 +Choice: 22 65561 +Choice: 23 65556 +Choice: 24 65551 +Choice: 25 65549 +Choice: 26 65546 +Choice: 27 65544 +Choice: 28 65542 +Choice: 29 65541 +Choice: 30 65540 +Choice: 31 65539 +Choice: 32 655385 +Choice: 33 65538 +Choice: 34 655376 +Choice: 35 655373 +Choice: 36 65537 +Choice: 37 851978 +Choice: 38 1048586 +Choice: 39 131073 +Choice: 40 1638410 +Choice: 41 196609 +Choice: 42 262145 +Choice: 43 327681 +Choice: 44 393217 +Choice: 45 524289 +Choice: 46 655361 +Choice: 47 851969 +Choice: 48 983041 +Choice: 49 1310721 +Choice: 50 1638401 +Choice: 51 1966081 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d126 +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -18 +Top: 6 +Step: 2 +/main/other/d130 +Label: HDR Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14e +Label: ISO Auto Time +Type: MENU +Current: 5 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d163 +Label: AF Assist Lamp +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +/main/other/d16a +Label: ISO Auto +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 5 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: Info Display Error Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: MENU +Current: 6 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +/main/other/d1b5 +Label: PTP Property 0xd1b5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32800 +/main/other/d1c0 +Label: Flash Open +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1c1 +Label: Flash Charged +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 55 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 + +*** Error *** +The capture widget is not configurable. +Choice: 6 201 +Choice: 7 202 +Choice: 8 203 +Choice: 9 204 +Choice: 10 205 +Choice: 11 206 +Choice: 12 207 +Choice: 13 208 +Choice: 14 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. +New file is in location /store_00010001/DCIM/100D5200/DSC_0029.NEF on the camera + +Device info: +Manufacturer: Nikon Corporation + Model: D5200 + device version: V1.00 + serial number: 'nnnnnnn0000000000000000000000000' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9209 + 0x920a + 0x920b + 0x920c + 0x9400 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 + 0xc105 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd303 + 0xd406 + 0xd407 + 0xd015 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01f + 0xd025 + 0xd026 + 0xd032 + 0xd036 + 0xd037 + 0xd045 + 0xd048 + 0xd054 + 0xd056 + 0xd05d + 0xd061 + 0xd06a + 0xd06b + 0xd06c + 0xd070 + 0xd078 + 0xd08a + 0xd08d + 0xd08f + 0xd090 + 0xd091 + 0xd092 + 0xd0a0 + 0xd0a8 + 0xd0a4 + 0xd0a6 + 0xd0a7 + 0xd0a2 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f8 + 0xd0f9 + 0xd100 + 0xd101 + 0xd102 + 0xd104 + 0xd105 + 0xd108 + 0xd109 + 0xd10b + 0xd10e + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd130 + 0xd14e + 0xd14f + 0xd161 + 0xd163 + 0xd164 + 0xd16a + 0xd183 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1ac + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1b4 + 0xd1b5 + 0xd1c0 + 0xd1c1 + 0xd1f0 + 0xd1f1 + 0xd1f4 + 0xd200 + 0xd201 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5500.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5500.txt new file mode 100644 index 00000000..e88c81ca --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5500.txt @@ -0,0 +1,2472 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D5500 + Version: V1.00 + Serial Number: 0000000000000000000000000nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Microsoft.com/DeviceServices: + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3 + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 15995502592 (15254 MB) + Free Space (Bytes): 13558644736 (12930 MB) + Free Space (Images): 249 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6000x4000', + '4496x3000', + '2992x2000' + ] value: '6000x4000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: 7 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Daylight (4) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/22 (2200) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 14000, step 1] value: 18 mm (1800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32786] value: Auto (32784) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967295,4294967293] value: 4.3e+04 sec (4294967295) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32790,32792,32793] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600] value: ISO 500 (500) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20150920T213907' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32784,32785,32788,32789,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788] value: Single Area (32784) +Artist(0x501e):(read only) (type=0xffff) 'Jeffrey Wilson' +Copyright Info(0x501f):(read only) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 34406758 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 34406758 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Video Mode(0xd036):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Effect Mode(0xd037):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 11 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 3 +Auto Off Timers(0xd066):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Artist Name(0xd072):(readwrite) (type=0xffff) 'Jeffrey Wilson' +Copyright Information(0xd073):(readwrite) (type=0xffff) '' +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE only (1) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) '' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 0 +Manual Movie Setting(0xd0a6):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +Movie Quality(0xd0a7):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0aa:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ab:(read only) (type=0x4) 32894 +Property 0xd0b5:(read only) (type=0x6) 500 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(read only) (type=0x2) Range [0 - 7, step 1] value: 7 +Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [4 - 4, step 1] value: 4 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 1, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [4 - 4, step 1] value: 4 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 0, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x4) 416 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 63 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 140 mm (14000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560) +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Scene Mode(0xd0f9):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 13 +Nikon Exposure Time(0xd100):(readwrite) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967295,4294967293] value: 4294967295 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 39, step 1] value: Top (1) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd12d:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: MF (fixed) (3) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 29, step 1] value: 29 +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 1, step 1] value: iTTL (0) +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 7 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 100, step 1] value: 3 +Property 0xd1b5:(read only) (type=0x4) Enumeration [0,32784,32785,32786,32787,32800] value: 0 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 249 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/bulb +Label: Bulb Mode +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/changeafarea +Label: Set Nikon Autofocus area +Type: TEXT +Current: 0x0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1442799638 +Printable: Sun Sep 20 21:40:38 2015 +Help: Use 'now' as the current time when setting. + +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/artist +Label: Artist +Type: TEXT +Current: Jeffrey Wilson +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/cleansensor +Label: Clean Sensor +Type: RADIO +Current: Startup and Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +Choice: 3 Startup and Shutdown +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000000000000nnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D5500 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Microsoft.com/DeviceServices: +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/flashopen +Label: Flash Open +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/flashcharged +Label: Flash Charged +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 18 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 140 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 4 +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 6 +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 0 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 500 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Daylight +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/assistlight +Label: Assist Light +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.666 +Choice: 2 -4.333 +Choice: 3 -4 +Choice: 4 -3.666 +Choice: 5 -3.333 +Choice: 6 -3 +Choice: 7 -2.666 +Choice: 8 -2.333 +Choice: 9 -2 +Choice: 10 -1.666 +Choice: 11 -1.333 +Choice: 12 -1 +Choice: 13 -0.666 +Choice: 14 -0.333 +Choice: 15 0 +Choice: 16 0.333 +Choice: 17 0.666 +Choice: 18 1 +Choice: 19 1.333 +Choice: 20 1.666 +Choice: 21 2 +Choice: 22 2.333 +Choice: 23 2.666 +Choice: 24 3 +Choice: 25 3.333 +Choice: 26 3.666 +Choice: 27 4 +Choice: 28 4.333 +Choice: 29 4.666 +Choice: 30 5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Red-eye automatic +Choice: 1 Auto +Choice: 2 Rear Curtain Sync + Slow Sync +/main/capturesettings/nikonflashmode +Label: Nikon Flash Mode +Type: RADIO +Current: iTTL +Choice: 0 iTTL +Choice: 1 Manual +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/22 +Choice: 0 f/3.5 +Choice: 1 f/4 +Choice: 2 f/4.5 +Choice: 3 f/5 +Choice: 4 f/5.6 +Choice: 5 f/6.3 +Choice: 6 f/7.1 +Choice: 7 f/8 +Choice: 8 f/9 +Choice: 9 f/10 +Choice: 10 f/11 +Choice: 11 f/13 +Choice: 12 f/14 +Choice: 13 f/16 +Choice: 14 f/18 +Choice: 15 f/20 +Choice: 16 f/22 +/main/capturesettings/flexibleprogram +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: NEF+Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Basic +Choice: 5 NEF+Normal +Choice: 6 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 18 +Bottom: 18 +Top: 140 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Manual +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: MF (fixed) +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/effectmode +Label: Effect Mode +Type: RADIO +Current: Unknown value 000b +Choice: 0 Night Vision +Choice: 1 Color sketch +Choice: 2 Miniature effect +Choice: 3 Selective color +Choice: 4 Silhouette +Choice: 5 High key +Choice: 6 Low key +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: M +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Night Landscape +Choice: 6 Automatic (No Flash) +Choice: 7 Unknown value 8019 +/main/capturesettings/scenemode +Label: Scene Mode +Type: RADIO +Current: Portrait +Choice: 0 Night landscape +Choice: 1 Party/Indoor +Choice: 2 Beach/Snow +Choice: 3 Sunset +Choice: 4 Dusk/Dawn +Choice: 5 Pet Portrait +Choice: 6 Candlelight +Choice: 7 Blossom +Choice: 8 Autumn colors +Choice: 9 Food +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Portrait +Choice: 14 Landscape +Choice: 15 Child +Choice: 16 Sports +Choice: 17 Close up +Choice: 18 Night Portrait +/main/capturesettings/hdrmode +Label: HDR Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Quick Response Remote +Choice: 5 Delayed Remote +Choice: 6 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Single Area +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +Choice: 4 Unknown value 8013 +Choice: 5 Unknown value 8014 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 429496.7295s +Choice: 0 0.0002s +Choice: 1 0.0003s +Choice: 2 0.0004s +Choice: 3 0.0005s +Choice: 4 0.0006s +Choice: 5 0.0008s +Choice: 6 0.0010s +Choice: 7 0.0012s +Choice: 8 0.0015s +Choice: 9 0.0020s +Choice: 10 0.0025s +Choice: 11 0.0031s +Choice: 12 0.0040s +Choice: 13 0.0050s +Choice: 14 0.0062s +Choice: 15 0.0080s +Choice: 16 0.0100s +Choice: 17 0.0125s +Choice: 18 0.0166s +Choice: 19 0.0200s +Choice: 20 0.0250s +Choice: 21 0.0333s +Choice: 22 0.0400s +Choice: 23 0.0500s +Choice: 24 0.0666s +Choice: 25 0.0769s +Choice: 26 0.1000s +Choice: 27 0.1250s +Choice: 28 0.1666s +Choice: 29 0.2000s +Choice: 30 0.2500s +Choice: 31 0.3333s +Choice: 32 0.4000s +Choice: 33 0.5000s +Choice: 34 0.6250s +Choice: 35 0.7692s +Choice: 36 1.0000s +Choice: 37 1.3000s +Choice: 38 1.6000s +Choice: 39 2.0000s +Choice: 40 2.5000s +Choice: 41 3.0000s +Choice: 42 4.0000s +Choice: 43 5.0000s +Choice: 44 6.0000s +Choice: 45 8.0000s +Choice: 46 10.0000s +Choice: 47 13.0000s +Choice: 48 15.0000s +Choice: 49 20.0000s +Choice: 50 25.0000s +Choice: 51 30.0000s +Choice: 52 429496.7295s +Choice: 53 429496.7293s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 65535/65535 +Choice: 0 1/4000 +Choice: 1 1/3200 +Choice: 2 1/2500 +Choice: 3 1/2000 +Choice: 4 1/1600 +Choice: 5 1/1250 +Choice: 6 1/1000 +Choice: 7 1/800 +Choice: 8 1/640 +Choice: 9 1/500 +Choice: 10 1/400 +Choice: 11 1/320 +Choice: 12 1/250 +Choice: 13 1/200 +Choice: 14 1/160 +Choice: 15 1/125 +Choice: 16 1/100 +Choice: 17 1/80 +Choice: 18 1/60 +Choice: 19 1/50 +Choice: 20 1/40 +Choice: 21 1/30 +Choice: 22 1/25 +Choice: 23 1/20 +Choice: 24 1/15 +Choice: 25 1/13 +Choice: 26 1/10 +Choice: 27 1/8 +Choice: 28 1/6 +Choice: 29 1/5 +Choice: 30 1/4 +Choice: 31 1/3 +Choice: 32 10/25 +Choice: 33 1/2 +Choice: 34 10/16 +Choice: 35 10/13 +Choice: 36 1 +Choice: 37 13/10 +Choice: 38 16/10 +Choice: 39 2 +Choice: 40 25/10 +Choice: 41 3 +Choice: 42 4 +Choice: 43 5 +Choice: 44 6 +Choice: 45 8 +Choice: 46 10 +Choice: 47 13 +Choice: 48 15 +Choice: 49 20 +Choice: 50 25 +Choice: 51 30 +Choice: 52 65535/65535 +Choice: 53 65535/65533 +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Normal-area AF +Choice: 0 Face-priority AF +Choice: 1 Wide-area AF +Choice: 2 Normal-area AF +Choice: 3 Subject-tracking AF +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Unknown value 0003 +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Unknown value 0003 +Choice: 3 Manual Focus +Choice: 4 Unknown value 0003 +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Top +Choice: 0 Centre +Choice: 1 Top +Choice: 2 Bottom +Choice: 3 Left +Choice: 4 Right +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +Choice: 22 Unknown value 0016 +Choice: 23 Unknown value 0017 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 Unknown value 001c +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +Choice: 32 Unknown value 0020 +Choice: 33 Unknown value 0021 +Choice: 34 Unknown value 0022 +Choice: 35 Unknown value 0023 +Choice: 36 Unknown value 0024 +Choice: 37 Unknown value 0025 +Choice: 38 Unknown value 0026 +Choice: 39 Unknown value 0027 +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0.333333 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE only +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 0 +Choice: 0 0 +/main/capturesettings/whitebiaspreset0 +Label: White Balance Bias Preset 0 +Type: TEXT +Current: 34406758 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 34406758 +/main/capturesettings/applicationmode +Label: Application Mode +Type: RADIO +Current: Application Mode 0 +Choice: 0 Application Mode 0 +Choice: 1 Application Mode 1 +/main/capturesettings/manualmoviesetting +Label: Manual Movie Setting +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/microphone +Label: Microphone +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +Choice: 5 Unknown value 0005 +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/videomode +Label: Video Mode +Type: RADIO +Current: NTSC +Choice: 0 NTSC +Choice: 1 PAL +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 4 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 2200 +Choice: 0 350 +Choice: 1 400 +Choice: 2 450 +Choice: 3 500 +Choice: 4 560 +Choice: 5 630 +Choice: 6 710 +Choice: 7 800 +Choice: 8 900 +Choice: 9 1000 +Choice: 10 1100 +Choice: 11 1300 +Choice: 12 1400 +Choice: 13 1600 +Choice: 14 1800 +Choice: 15 2000 +Choice: 16 2200 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 1800 +Bottom: 1800 +Top: 14000 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 4 +Choice: 1 32784 +Choice: 2 32786 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: -1 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 8 +Choice: 6 10 +Choice: 7 12 +Choice: 8 15 +Choice: 9 20 +Choice: 10 25 +Choice: 11 31 +Choice: 12 40 +Choice: 13 50 +Choice: 14 62 +Choice: 15 80 +Choice: 16 100 +Choice: 17 125 +Choice: 18 166 +Choice: 19 200 +Choice: 20 250 +Choice: 21 333 +Choice: 22 400 +Choice: 23 500 +Choice: 24 666 +Choice: 25 769 +Choice: 26 1000 +Choice: 27 1250 +Choice: 28 1666 +Choice: 29 2000 +Choice: 30 2500 +Choice: 31 3333 +Choice: 32 4000 +Choice: 33 5000 +Choice: 34 6250 +Choice: 35 7692 +Choice: 36 10000 +Choice: 37 13000 +Choice: 38 16000 +Choice: 39 20000 +Choice: 40 25000 +Choice: 41 30000 +Choice: 42 40000 +Choice: 43 50000 +Choice: 44 60000 +Choice: 45 80000 +Choice: 46 100000 +Choice: 47 130000 +Choice: 48 150000 +Choice: 49 200000 +Choice: 50 250000 +Choice: 51 300000 +Choice: 52 -1 +Choice: 53 -3 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32790 +Choice: 6 32792 +Choice: 7 32793 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 500 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20150920T214038 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32788 +Choice: 5 32789 +Choice: 6 32790 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +/main/other/501e +Label: Artist +Type: TEXT +Current: Jeffrey Wilson +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d025 +Label: White Balance Preset Value 0 +Type: TEXT +Current: 34406758 +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 34406758 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d036 +Label: Video Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d037 +Label: Effect Mode +Type: MENU +Current: 11 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d066 +Label: Auto Off Timers +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: Jeffrey Wilson +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Clean Image Sensor +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d09c +Label: PTP Property 0xd09c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0a2 +Label: Movie Microphone +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 0 +/main/other/d0a6 +Label: Manual Movie Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a7 +Label: Movie Quality +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0aa +Label: PTP Property 0xd0aa +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ab +Label: PTP Property 0xd0ab +Type: TEXT +Current: 32894 +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Type: TEXT +Current: 500 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 4 +Choice: 0 4 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 4 +Choice: 0 4 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 416 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 63 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 1800 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 14000 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 350 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 560 +/main/other/d0f7 +Label: Vignette Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0f8 +Label: Auto Distortion Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0f9 +Label: Scene Mode +Type: MENU +Current: 13 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: -1 +Choice: 0 69536 +Choice: 1 68736 +Choice: 2 68036 +Choice: 3 67536 +Choice: 4 67136 +Choice: 5 66786 +Choice: 6 66536 +Choice: 7 66336 +Choice: 8 66176 +Choice: 9 66036 +Choice: 10 65936 +Choice: 11 65856 +Choice: 12 65786 +Choice: 13 65736 +Choice: 14 65696 +Choice: 15 65661 +Choice: 16 65636 +Choice: 17 65616 +Choice: 18 65596 +Choice: 19 65586 +Choice: 20 65576 +Choice: 21 65566 +Choice: 22 65561 +Choice: 23 65556 +Choice: 24 65551 +Choice: 25 65549 +Choice: 26 65546 +Choice: 27 65544 +Choice: 28 65542 +Choice: 29 65541 +Choice: 30 65540 +Choice: 31 65539 +Choice: 32 655385 +Choice: 33 65538 +Choice: 34 655376 +Choice: 35 655373 +Choice: 36 65537 +Choice: 37 851978 +Choice: 38 1048586 +Choice: 39 131073 +Choice: 40 1638410 +Choice: 41 196609 +Choice: 42 262145 +Choice: 43 327681 +Choice: 44 393217 +Choice: 45 524289 +Choice: 46 655361 +Choice: 47 851969 +Choice: 48 983041 +Choice: 49 1310721 +Choice: 50 1638401 +Choice: 51 1966081 +Choice: 52 -1 +Choice: 53 -3 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d126 +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -18 +Top: 6 +Step: 2 +/main/other/d12d +Label: PTP Property 0xd12d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d130 +Label: HDR Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: Active D-Lighting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d163 +Label: AF Assist Lamp +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 29 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +/main/other/d167 +Label: Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d16a +Label: ISO Auto +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: Info Display Error Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/d1b5 +Label: PTP Property 0xd1b5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32800 +/main/other/d1c0 +Label: Flash Open +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1c1 +Label: Flash Charged +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 249 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 201 +Choice: 8 202 +Choice: 9 203 +Choice: 10 204 +Choice: 11 205 +Choice: 12 206 +Choice: 13 207 +Choice: 14 208 +Choice: 15 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5600.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5600.txt new file mode 100644 index 00000000..5283e520 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d5600.txt @@ -0,0 +1,2342 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D5600 + Version: V1.01 + Serial Number: 0000000000000000000000000nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Microsoft.com/DeviceServices: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3 + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D5600 [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 15923150848 (15185 MB) + Free Space (Bytes): 10530095104 (10042 MB) + Free Space (Images): 193 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6000x4000', + '4496x3000', + '2992x2000' + ] value: '6000x4000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: 7 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/5.6 (560) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 18 mm (1800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-S (32784) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333] value: 0.0033 sec (333) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32790,32792,32793] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20170510T214505' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32784,32785,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788] value: Single Area (32784) +Artist(0x501e):(read only) (type=0xffff) '' +Copyright Info(0x501f):(read only) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 34406758 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 34406758 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Effect Mode(0xd037):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 11 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 0 +Auto Off Timers(0xd066):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Artist Name(0xd072):(readwrite) (type=0xffff) '' +Copyright Information(0xd073):(readwrite) (type=0xffff) '' +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE only (1) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) '' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 0 +Manual Movie Setting(0xd0a6):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +Movie Quality(0xd0a7):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0aa:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ab:(read only) (type=0x4) 32894 +Property 0xd0b5:(read only) (type=0x6) 100 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [4 - 4, step 1] value: 4 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 1, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [4 - 4, step 1] value: 4 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 0, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x4) 928 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x8) 383 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 55 mm (5500) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560) +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Scene Mode(0xd0f9):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 13 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566] value: 65566 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 39, step 1] value: Right (4) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd12d:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-S (0) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 29, step 1] value: 29 +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 1, step 1] value: iTTL (0) +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 7 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 16777216 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: Yes (1) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: -2.3 stops (-28) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 100, step 1] value: 3 +Property 0xd1b5:(read only) (type=0x4) Enumeration [0,32784,32785,32786,32787,32800] value: 0 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 193 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/bulb +Label: Bulb Mode +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/changeafarea +Label: Set Nikon Autofocus area +Type: TEXT +Current: 0x0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1494449121 +Printable: Wed May 10 21:45:21 2017 +Help: Use 'now' as the current time when setting. + +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/cleansensor +Label: Clean Sensor +Type: RADIO +Current: Startup and Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +Choice: 3 Startup and Shutdown +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/autofocus +Label: Autofocus +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000000000000nnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D5600 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.01 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Microsoft.com/DeviceServices: 1.0 +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/flashopen +Label: Flash Open +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/flashcharged +Label: Flash Charged +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 18 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 55 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 4 +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 6 +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 1 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: -28 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/assistlight +Label: Assist Light +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.666 +Choice: 2 -4.333 +Choice: 3 -4 +Choice: 4 -3.666 +Choice: 5 -3.333 +Choice: 6 -3 +Choice: 7 -2.666 +Choice: 8 -2.333 +Choice: 9 -2 +Choice: 10 -1.666 +Choice: 11 -1.333 +Choice: 12 -1 +Choice: 13 -0.666 +Choice: 14 -0.333 +Choice: 15 0 +Choice: 16 0.333 +Choice: 17 0.666 +Choice: 18 1 +Choice: 19 1.333 +Choice: 20 1.666 +Choice: 21 2 +Choice: 22 2.333 +Choice: 23 2.666 +Choice: 24 3 +Choice: 25 3.333 +Choice: 26 3.666 +Choice: 27 4 +Choice: 28 4.333 +Choice: 29 4.666 +Choice: 30 5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Red-eye automatic +Choice: 1 Auto +Choice: 2 Auto Slow Sync +Choice: 3 Rear Curtain Sync + Slow Sync +Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/nikonflashmode +Label: Nikon Flash Mode +Type: RADIO +Current: iTTL +Choice: 0 iTTL +Choice: 1 Manual +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/5.6 +Choice: 0 f/3.5 +Choice: 1 f/4 +Choice: 2 f/4.5 +Choice: 3 f/5 +Choice: 4 f/5.6 +Choice: 5 f/6.3 +Choice: 6 f/7.1 +Choice: 7 f/8 +Choice: 8 f/9 +Choice: 9 f/10 +Choice: 10 f/11 +Choice: 11 f/13 +Choice: 12 f/14 +Choice: 13 f/16 +Choice: 14 f/18 +Choice: 15 f/20 +Choice: 16 f/22 +/main/capturesettings/flexibleprogram +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: NEF+Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Basic +Choice: 5 NEF+Normal +Choice: 6 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 18 +Bottom: 18 +Top: 55 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-S +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: AF-S +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/effectmode +Label: Effect Mode +Type: RADIO +Current: Unknown value 000b +Choice: 0 Night Vision +Choice: 1 Color sketch +Choice: 2 Miniature effect +Choice: 3 Selective color +Choice: 4 Silhouette +Choice: 5 High key +Choice: 6 Low key +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: A +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Night Landscape +Choice: 6 Automatic (No Flash) +Choice: 7 Unknown value 8019 +/main/capturesettings/scenemode +Label: Scene Mode +Type: RADIO +Current: Portrait +Choice: 0 Night landscape +Choice: 1 Party/Indoor +Choice: 2 Beach/Snow +Choice: 3 Sunset +Choice: 4 Dusk/Dawn +Choice: 5 Pet Portrait +Choice: 6 Candlelight +Choice: 7 Blossom +Choice: 8 Autumn colors +Choice: 9 Food +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Portrait +Choice: 14 Landscape +Choice: 15 Child +Choice: 16 Sports +Choice: 17 Close up +Choice: 18 Night Portrait +/main/capturesettings/hdrmode +Label: HDR Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Single Area +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +Choice: 4 Unknown value 8013 +Choice: 5 Unknown value 8014 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0333s +Choice: 0 0.0002s +Choice: 1 0.0003s +Choice: 2 0.0004s +Choice: 3 0.0005s +Choice: 4 0.0006s +Choice: 5 0.0008s +Choice: 6 0.0010s +Choice: 7 0.0012s +Choice: 8 0.0015s +Choice: 9 0.0020s +Choice: 10 0.0025s +Choice: 11 0.0031s +Choice: 12 0.0040s +Choice: 13 0.0050s +Choice: 14 0.0062s +Choice: 15 0.0080s +Choice: 16 0.0100s +Choice: 17 0.0125s +Choice: 18 0.0166s +Choice: 19 0.0200s +Choice: 20 0.0250s +Choice: 21 0.0333s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/30 +Choice: 0 1/4000 +Choice: 1 1/3200 +Choice: 2 1/2500 +Choice: 3 1/2000 +Choice: 4 1/1600 +Choice: 5 1/1250 +Choice: 6 1/1000 +Choice: 7 1/800 +Choice: 8 1/640 +Choice: 9 1/500 +Choice: 10 1/400 +Choice: 11 1/320 +Choice: 12 1/250 +Choice: 13 1/200 +Choice: 14 1/160 +Choice: 15 1/125 +Choice: 16 1/100 +Choice: 17 1/80 +Choice: 18 1/60 +Choice: 19 1/50 +Choice: 20 1/40 +Choice: 21 1/30 +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Wide-area AF +Choice: 0 Face-priority AF +Choice: 1 Wide-area AF +Choice: 2 Normal-area AF +Choice: 3 Subject-tracking AF +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Single-servo AF +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Unknown value 0003 +Choice: 3 Manual Focus +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Right +Choice: 0 Centre +Choice: 1 Top +Choice: 2 Bottom +Choice: 3 Left +Choice: 4 Right +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +Choice: 22 Unknown value 0016 +Choice: 23 Unknown value 0017 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 Unknown value 001c +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +Choice: 32 Unknown value 0020 +Choice: 33 Unknown value 0021 +Choice: 34 Unknown value 0022 +Choice: 35 Unknown value 0023 +Choice: 36 Unknown value 0024 +Choice: 37 Unknown value 0025 +Choice: 38 Unknown value 0026 +Choice: 39 Unknown value 0027 +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0.333333 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE only +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 0 +Choice: 0 0 +/main/capturesettings/whitebiaspreset0 +Label: White Balance Bias Preset 0 +Type: TEXT +Current: 34406758 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 34406758 +/main/capturesettings/applicationmode +Label: Application Mode +Type: RADIO +Current: Application Mode 0 +Choice: 0 Application Mode 0 +Choice: 1 Application Mode 1 +/main/capturesettings/manualmoviesetting +Label: Manual Movie Setting +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/microphone +Label: Microphone +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +Choice: 5 Unknown value 0005 +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 560 +Choice: 0 350 +Choice: 1 400 +Choice: 2 450 +Choice: 3 500 +Choice: 4 560 +Choice: 5 630 +Choice: 6 710 +Choice: 7 800 +Choice: 8 900 +Choice: 9 1000 +Choice: 10 1100 +Choice: 11 1300 +Choice: 12 1400 +Choice: 13 1600 +Choice: 14 1800 +Choice: 15 2000 +Choice: 16 2200 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 1800 +Bottom: 1800 +Top: 5500 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 4 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 333 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 8 +Choice: 6 10 +Choice: 7 12 +Choice: 8 15 +Choice: 9 20 +Choice: 10 25 +Choice: 11 31 +Choice: 12 40 +Choice: 13 50 +Choice: 14 62 +Choice: 15 80 +Choice: 16 100 +Choice: 17 125 +Choice: 18 166 +Choice: 19 200 +Choice: 20 250 +Choice: 21 333 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32790 +Choice: 6 32792 +Choice: 7 32793 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20170510T214521 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32790 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +/main/other/501e +Label: Artist +Type: TEXT +Current: +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d025 +Label: White Balance Preset Value 0 +Type: TEXT +Current: 34406758 +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 34406758 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d037 +Label: Effect Mode +Type: MENU +Current: 11 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d066 +Label: Auto Off Timers +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Clean Image Sensor +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d09c +Label: PTP Property 0xd09c +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d0a2 +Label: Movie Microphone +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 0 +/main/other/d0a6 +Label: Manual Movie Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a7 +Label: Movie Quality +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0aa +Label: PTP Property 0xd0aa +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ab +Label: PTP Property 0xd0ab +Type: TEXT +Current: 32894 +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Type: TEXT +Current: 100 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 4 +Choice: 0 4 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 4 +Choice: 0 4 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 928 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 383 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 1800 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 5500 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 350 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 560 +/main/other/d0f7 +Label: Vignette Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0f8 +Label: Auto Distortion Control +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0f9 +Label: Scene Mode +Type: MENU +Current: 13 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65566 +Choice: 0 69536 +Choice: 1 68736 +Choice: 2 68036 +Choice: 3 67536 +Choice: 4 67136 +Choice: 5 66786 +Choice: 6 66536 +Choice: 7 66336 +Choice: 8 66176 +Choice: 9 66036 +Choice: 10 65936 +Choice: 11 65856 +Choice: 12 65786 +Choice: 13 65736 +Choice: 14 65696 +Choice: 15 65661 +Choice: 16 65636 +Choice: 17 65616 +Choice: 18 65596 +Choice: 19 65586 +Choice: 20 65576 +Choice: 21 65566 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d126 +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -18 +Top: 6 +Step: 2 +/main/other/d12d +Label: PTP Property 0xd12d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d130 +Label: HDR Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: Active D-Lighting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d163 +Label: AF Assist Lamp +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 29 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +/main/other/d167 +Label: Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d16a +Label: ISO Auto +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 16777216 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: -28 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: Info Display Error Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/d1b5 +Label: PTP Property 0xd1b5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32800 +/main/other/d1c0 +Label: Flash Open +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1c1 +Label: Flash Charged +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 193 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 201 +Choice: 8 202 +Choice: 9 203 +Choice: 10 204 +Choice: 11 205 +Choice: 12 206 +Choice: 13 207 +Choice: 14 208 +Choice: 15 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d600.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d600.txt new file mode 100644 index 00000000..517800da --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d600.txt @@ -0,0 +1,3409 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D600 + device version: V1.00 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9209 + 0x920a + 0x920b + 0x920c + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0x501e + 0x501f + 0xd303 + 0xd406 + 0xd407 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd035 + 0xd045 + 0xd048 + 0xd049 + 0xd04f + 0xd051 + 0xd053 + 0xd054 + 0xd055 + 0xd056 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05d + 0xd061 + 0xd067 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd070 + 0xd072 + 0xd073 + 0xd074 + 0xd075 + 0xd078 + 0xd07a + 0xd07d + 0xd07e + 0xd087 + 0xd08a + 0xd08d + 0xd08f + 0xd090 + 0xd091 + 0xd092 + 0xd093 + 0xd0a0 + 0xd0a2 + 0xd0a3 + 0xd0a4 + 0xd0a7 + 0xd0a8 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0c7 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f7 + 0xd0f8 + 0xd0f9 + 0xd0fc + 0xd0fd + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10e + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd130 + 0xd131 + 0xd132 + 0xd141 + 0xd148 + 0xd149 + 0xd14e + 0xd14f + 0xd150 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd158 + 0xd159 + 0xd15a + 0xd15c + 0xd15d + 0xd161 + 0xd163 + 0xd164 + 0xd166 + 0xd167 + 0xd16a + 0xd183 + 0xd197 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1a6 + 0xd1a8 + 0xd1a9 + 0xd1aa + 0xd1ab + 0xd1ac + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1b4 + 0xd1c0 + 0xd1c1 + 0xd1f0 + 0xd1f1 + 0xd1f2 + 0xd1f4 + 0xd200 + 0xd201 + +Camera summary: +Manufacturer: Nikon Corporation +Model: D600 + Version: V1.00 + Serial Number: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 3955228672 (3772 MB) + Free Space (Bytes): 3482550272 (3321 MB) + Free Space (Images): 301 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 20% (20) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6016x4016', + '4512x3008', + '3008x2008' + ] value: '6016x4016' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: JPEG Norm (1) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500] value: f/4 (400) +Focal Length(0x5008):(read only) (type=0x6) Range [2800 - 30000, step 1] value: 36 mm (3600) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-A (32786) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250] value: 0.0025 sec (250) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32790,32792,32848,32849] value: P (2) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: ISO 80 (80) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20121116T175335' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790,32791] value: 32786 +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788] value: Closest Subject (32785) +Artist(0x501e):(read only) (type=0xffff) '(null)' +Copyright Info(0x501f):(read only) (type=0xffff) '(null)' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [1 - 4, step 1] value: 1 +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 32047460 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 32047460 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 32047460 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 32047460 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +JPEG Compression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto DX Crop(0xd033):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Property 0xd035:(readwrite) (type=0x2) Enumeration [0,1,2] value: 0 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF Area(0xd05d):(readwrite) (type=0x1) Range [0 - 3, step 1] value: 1 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 0 +Angle Level(0xd067):(read only) (type=0x5) 2295557 +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 2 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 100, step 1] value: 100 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Artist Name(0xd072):(readwrite) (type=0xffff) '(null)' +Copyright Information(0xd073):(readwrite) (type=0xffff) '(null)' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 2 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Property 0xd07d:(read only) (type=0x5) -1 +Property 0xd07e:(read only) (type=0x5) -1 +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd08f:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Property 0xd0a2:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd0a3:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 24576 +Property 0xd0a7:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 0, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 165 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 39 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 28 mm (2800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 300 mm (30000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560) +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0f9:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 13 +Property 0xd0fc:(read only) (type=0x2) Range [0 - 24, step 1] value: 19 +Property 0xd0fd:(read only) (type=0x2) Range [0 - 24, step 1] value: 19 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576] value: 65576 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 100, step 1] value: 8 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [1 - 39, step 1] value: Top (1) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +HDR Mode(0xd130):(readwrite) (type=0x1) Range [0 - 2, step 1] value: 0 +HDR High Dynamic(0xd131):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +HDR Smoothing(0xd132):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Slot 2 Save Mode(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 4 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 1(0xd152):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 2(0xd153):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 3(0xd154):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 4(0xd155):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-A (2) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 24, step 1] value: 24 +AF Area Illumination(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +Property 0xd16a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 25, step 1] value: 20 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a8:(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566] value: 65566 +Property 0xd1a9:(read only) (type=0x4) Enumeration [400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500] value: 400 +Property 0xd1aa:(read only) (type=0x6) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: 100 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000] value: 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 100, step 1] value: 9 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 301 +Property 0xd1f2:(read only) (type=0x2) Range [0 - 3, step 1] value: 1 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [1,2,3,4,5,6] value: 0 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1353084815 +Printable: Fri 16 Nov 2012 05:53:35 PM CET +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 20% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/flashopen +Label: Flash Open +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/flashcharged +Label: Flash Charged +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 28 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 300 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 4 +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 6 +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 0 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/fvlocked +Label: FV Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6016x4016 +Choice: 0 6016x4016 +Choice: 1 4512x3008 +Choice: 2 3008x2008 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 80 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 25600 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/assistlight +Label: Assist Light +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Red-eye automatic +Choice: 1 Auto +Choice: 2 Auto Slow Sync +Choice: 3 Rear Curtain Sync + Slow Sync +Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/nikonflashmode +Label: Nikon Flash Mode +Type: RADIO +Current: iTTL +Choice: 0 iTTL +Choice: 1 Manual +Choice: 2 Commander +Choice: 3 Repeating +/main/capturesettings/af-area-illumination +Label: AF Area Illumination +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Off +Choice: 2 On +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/4 +Choice: 0 f/4 +Choice: 1 f/4.5 +Choice: 2 f/5 +Choice: 3 f/5.6 +Choice: 4 f/6.3 +Choice: 5 f/7.1 +Choice: 6 f/8 +Choice: 7 f/9 +Choice: 8 f/10 +Choice: 9 f/11 +Choice: 10 f/13 +Choice: 11 f/14 +Choice: 12 f/16 +Choice: 13 f/18 +Choice: 14 f/20 +Choice: 15 f/22 +Choice: 16 f/25 +/main/capturesettings/flexibleprogram +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Normal +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Basic +Choice: 5 NEF+Normal +Choice: 6 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 36 +Bottom: 28 +Top: 300 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-A +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: AF-A +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: P +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Night Landscape +Choice: 6 Automatic (No Flash) +/main/capturesettings/scenemode +Label: Scene Mode +Type: RADIO +Current: Unknown value 000d +Choice: 0 Night landscape +Choice: 1 Party/Indoor +Choice: 2 Beach/Snow +Choice: 3 Sunset +Choice: 4 Dusk/Dawn +Choice: 5 Pet Portrait +Choice: 6 Candlelight +Choice: 7 Blossom +Choice: 8 Autumn colors +Choice: 9 Food +Choice: 10 Night Portrait +Choice: 11 Unknown value 000d +/main/capturesettings/hdrhighdynamic +Label: HDR High Dynamic +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 1 EV +Choice: 2 2 EV +Choice: 3 3 EV +/main/capturesettings/hdrsmoothing +Label: HDR Smoothing +Type: RADIO +Current: Normal +Choice: 0 High +Choice: 1 Normal +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Mirror Up +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Mirror Up +Choice: 5 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Closest Subject +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0250s +Choice: 0 0.0002s +Choice: 1 0.0003s +Choice: 2 0.0004s +Choice: 3 0.0005s +Choice: 4 0.0006s +Choice: 5 0.0008s +Choice: 6 0.0010s +Choice: 7 0.0012s +Choice: 8 0.0015s +Choice: 9 0.0020s +Choice: 10 0.0025s +Choice: 11 0.0031s +Choice: 12 0.0040s +Choice: 13 0.0050s +Choice: 14 0.0062s +Choice: 15 0.0080s +Choice: 16 0.0100s +Choice: 17 0.0125s +Choice: 18 0.0166s +Choice: 19 0.0200s +Choice: 20 0.0250s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/40 +Choice: 0 1/4000 +Choice: 1 1/3200 +Choice: 2 1/2500 +Choice: 3 1/2000 +Choice: 4 1/1600 +Choice: 5 1/1250 +Choice: 6 1/1000 +Choice: 7 1/800 +Choice: 8 1/640 +Choice: 9 1/500 +Choice: 10 1/400 +Choice: 11 1/320 +Choice: 12 1/250 +Choice: 13 1/200 +Choice: 14 1/160 +Choice: 15 1/125 +Choice: 16 1/100 +Choice: 17 1/80 +Choice: 18 1/60 +Choice: 19 1/50 +Choice: 20 1/40 +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Single-servo AF +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Manual Focus +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Top +Choice: 0 Top +Choice: 1 Bottom +Choice: 2 Left +Choice: 3 Right +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0.333333 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE & Flash +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/bracketorder +Label: Bracket Order +Type: RADIO +Current: MTR > Under +Choice: 0 MTR > Under +Choice: 1 Under > MTR +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/maximumshots +Label: Maximum Shots +Type: TEXT +Current: 8 +/main/capturesettings/autowhitebias +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/tungstenwhitebias +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flourescentwhitebias +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/daylightwhitebias +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flashwhitebias +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/cloudywhitebias +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/shadewhitebias +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 32047460 +/main/capturesettings/whitebiaspreset2 +Label: White Balance Bias Preset 2 +Type: TEXT +Current: 32047460 +/main/capturesettings/whitebiaspreset3 +Label: White Balance Bias Preset 3 +Type: TEXT +Current: 32047460 +/main/capturesettings/whitebiaspreset4 +Label: White Balance Bias Preset 4 +Type: TEXT +Current: 32047460 +/main/capturesettings/centerweightsize +Label: Center Weight Area +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +Choice: 2 10 mm +Choice: 3 12 mm +Choice: 4 Average +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +Choice: 1 1/30 +Choice: 2 1/15 +Choice: 3 1/8 +Choice: 4 1/4 +Choice: 5 1/2 +Choice: 6 1 +Choice: 7 2 +Choice: 8 4 +Choice: 9 8 +Choice: 10 15 +Choice: 11 30 +/main/capturesettings/microphone +Label: Microphone +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6016x4016 +Choice: 0 6016x4016 +Choice: 1 4512x3008 +Choice: 2 3008x2008 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 400 +Choice: 0 400 +Choice: 1 450 +Choice: 2 500 +Choice: 3 560 +Choice: 4 630 +Choice: 5 710 +Choice: 6 800 +Choice: 7 900 +Choice: 8 1000 +Choice: 9 1100 +Choice: 10 1300 +Choice: 11 1400 +Choice: 12 1600 +Choice: 13 1800 +Choice: 14 2000 +Choice: 15 2200 +Choice: 16 2500 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 3600 +Bottom: 2800 +Top: 30000 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32786 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 4 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 250 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 8 +Choice: 6 10 +Choice: 7 12 +Choice: 8 15 +Choice: 9 20 +Choice: 10 25 +Choice: 11 31 +Choice: 12 40 +Choice: 13 50 +Choice: 14 62 +Choice: 15 80 +Choice: 16 100 +Choice: 17 125 +Choice: 18 166 +Choice: 19 200 +Choice: 20 250 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32790 +Choice: 6 32792 +Choice: 7 32848 +Choice: 8 32849 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 80 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20121116T175335 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 32786 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32790 +Choice: 6 32791 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32785 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +/main/other/501e +Label: Artist +Type: TEXT +Current: (null) +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: (null) +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d016 +Label: Raw Compression +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01e +Label: White Balance Colour Temperature +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d021 +Label: White Balance Preset Name 1 +Type: TEXT +Current: +/main/other/d022 +Label: White Balance Preset Name 2 +Type: TEXT +Current: +/main/other/d023 +Label: White Balance Preset Name 3 +Type: TEXT +Current: +/main/other/d024 +Label: White Balance Preset Name 4 +Type: TEXT +Current: +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 32047460 +/main/other/d027 +Label: White Balance Preset Value 2 +Type: TEXT +Current: 32047460 +/main/other/d028 +Label: White Balance Preset Value 3 +Type: TEXT +Current: 32047460 +/main/other/d029 +Label: White Balance Preset Value 4 +Type: TEXT +Current: 32047460 +/main/other/d02e +Label: Lens Focal Length (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d02f +Label: Lens Maximum Aperture (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +/main/other/d030 +Label: Shooting Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d031 +Label: JPEG Compression Policy +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d033 +Label: Auto DX Crop +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d035 +Label: PTP Property 0xd035 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d04f +Label: Focus Area Wrap +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d051 +Label: AF Lock On +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d055 +Label: Exposure ISO Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d059 +Label: Centre Weight Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d05a +Label: Exposure Base Matrix +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05b +Label: Exposure Base Center +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05c +Label: Exposure Base Spot +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d067 +Label: Angle Level +Type: TEXT +Current: 2313175 +/main/other/d068 +Label: Shooting Speed +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d069 +Label: Maximum Shots +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: (null) +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: (null) +/main/other/d074 +Label: Flash Sync. Speed +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d075 +Label: Flash Shutter Speed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d07a +Label: Bracket Order +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d07d +Label: PTP Property 0xd07d +Type: TEXT +Current: -1 +/main/other/d07e +Label: PTP Property 0xd07e +Type: TEXT +Current: -1 +/main/other/d087 +Label: Aperture Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: PTP Property 0xd08f +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d093 +Label: Manual Set Lens Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d0a2 +Label: PTP Property 0xd0a2 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0a3 +Label: PTP Property 0xd0a3 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 24576 +/main/other/d0a7 +Label: PTP Property 0xd0a7 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c7 +Label: PTP Property 0xd0c7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 165 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 39 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 2800 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 30000 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 350 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 560 +/main/other/d0f7 +Label: Vignette Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0f8 +Label: Auto Distortion Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0f9 +Label: PTP Property 0xd0f9 +Type: MENU +Current: 13 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d0fc +Label: PTP Property 0xd0fc +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +/main/other/d0fd +Label: PTP Property 0xd0fd +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65576 +Choice: 0 69536 +Choice: 1 68736 +Choice: 2 68036 +Choice: 3 67536 +Choice: 4 67136 +Choice: 5 66786 +Choice: 6 66536 +Choice: 7 66336 +Choice: 8 66176 +Choice: 9 66036 +Choice: 10 65936 +Choice: 11 65856 +Choice: 12 65786 +Choice: 13 65736 +Choice: 14 65696 +Choice: 15 65661 +Choice: 16 65636 +Choice: 17 65616 +Choice: 18 65596 +Choice: 19 65586 +Choice: 20 65576 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d103 +Label: Maximum Shots +Type: MENU +Current: 8 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d106 +Label: FV Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d126 +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -18 +Top: 6 +Step: 2 +/main/other/d130 +Label: HDR Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d131 +Label: HDR High Dynamic +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d132 +Label: HDR Smoothing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d141 +Label: PTP Property 0xd141 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d148 +Label: Slot 2 Save Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: ISO Auto Time +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d150 +Label: Tune Colour Temperature +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d152 +Label: Tune Preset 1 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d153 +Label: Tune Preset 2 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d154 +Label: Tune Preset 3 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d155 +Label: Tune Preset 4 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d158 +Label: PTP Property 0xd158 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d159 +Label: PTP Property 0xd159 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15a +Label: PTP Property 0xd15a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15c +Label: PTP Property 0xd15c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15d +Label: PTP Property 0xd15d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d163 +Label: AF Assist Lamp +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +/main/other/d166 +Label: AF Area Illumination +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d167 +Label: Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d16a +Label: PTP Property 0xd16a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +/main/other/d197 +Label: PTP Property 0xd197 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1a6 +Label: PTP Property 0xd1a6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a8 +Label: PTP Property 0xd1a8 +Type: MENU +Current: 65566 +Choice: 0 69536 +Choice: 1 68736 +Choice: 2 68036 +Choice: 3 67536 +Choice: 4 67136 +Choice: 5 66786 +Choice: 6 66536 +Choice: 7 66336 +Choice: 8 66176 +Choice: 9 66036 +Choice: 10 65936 +Choice: 11 65856 +Choice: 12 65786 +Choice: 13 65736 +Choice: 14 65696 +Choice: 15 65661 +Choice: 16 65636 +Choice: 17 65616 +Choice: 18 65596 +Choice: 19 65586 +Choice: 20 65576 +Choice: 21 65566 +/main/other/d1a9 +Label: PTP Property 0xd1a9 +Type: MENU +Current: 400 +Choice: 0 400 +Choice: 1 450 +Choice: 2 500 +Choice: 3 560 +Choice: 4 630 +Choice: 5 710 +Choice: 6 800 +Choice: 7 900 +Choice: 8 1000 +Choice: 9 1100 +Choice: 10 1300 +Choice: 11 1400 +Choice: 12 1600 +Choice: 13 1800 +Choice: 14 2000 +Choice: 15 2200 +Choice: 16 2500 +/main/other/d1aa +Label: PTP Property 0xd1aa +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 25600 +/main/other/d1ab +Label: PTP Property 0xd1ab +Type: MENU +Current: 0 +Choice: 0 -3000 +Choice: 1 -2666 +Choice: 2 -2333 +Choice: 3 -2000 +Choice: 4 -1666 +Choice: 5 -1333 +Choice: 6 -1000 +Choice: 7 -666 +Choice: 8 -333 +Choice: 9 0 +Choice: 10 333 +Choice: 11 666 +Choice: 12 1000 +Choice: 13 1333 +Choice: 14 1666 +Choice: 15 2000 +Choice: 16 2333 +Choice: 17 2666 +Choice: 18 3000 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: PTP Property 0xd1b2 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: MENU +Current: 9 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/d1c0 +Label: Flash Open +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1c1 +Label: Flash Charged +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 301 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d1f2 +Label: PTP Property 0xd1f2 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 101 +Choice: 7 102 +Choice: 8 103 +Choice: 9 104 +Choice: 10 201 +Choice: 11 202 +Choice: 12 203 +Choice: 13 204 +Choice: 14 205 +Choice: 15 206 +Choice: 16 207 +Choice: 17 208 +Choice: 18 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d70.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d70.txt new file mode 100644 index 00000000..631affd5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d70.txt @@ -0,0 +1,2398 @@ +Device info: +Manufacturer: Nikon Corporation + model: D70 + device version: V1.02 + serial number: '(null)' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c5 + 0x90c6 + 0x90c7 + 0x90c8 + 0x90c9 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01f + 0xd025 + 0xd026 + 0xd02a + 0xd02b + 0xd02c + 0xd02d + 0xd045 + 0xd04f + 0xd054 + 0xd056 + 0xd058 + 0xd059 + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd064 + 0xd06b + 0xd06c + 0xd075 + 0xd078 + 0xd07a + 0xd086 + 0xd08a + 0xd090 + 0xd091 + 0xd092 + 0xd0c0 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10a + 0xd10d + 0xd10e + 0xd10b + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd140 + 0xd142 + 0xd160 + 0xd161 + 0xd163 + 0xd164 + 0xd165 + 0xd166 + 0xd167 + 0xd168 + 0xd169 + 0xd16b + 0xd16c + 0xd16d + 0xd16e + 0xd180 + 0xd190 + 0xd1b0 + 0xd1c0 + 0xd1c1 + +v2 firmware: + +Device info: +Manufacturer: Nikon Corporation + model: D70 + device version: V2.00 + serial number: '(null)' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c5 + 0x90c6 + 0x90c7 + 0x90c8 + 0x90c9 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01f + 0xd025 + 0xd026 + 0xd02a + 0xd02b + 0xd02c + 0xd02d + 0xd045 + 0xd04f + 0xd054 + 0xd056 + 0xd058 + 0xd059 + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd064 + 0xd06b + 0xd06c + 0xd075 + 0xd078 + 0xd07a + 0xd086 + 0xd08a + 0xd090 + 0xd091 + 0xd092 + 0xd0c0 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10a + 0xd10d + 0xd10e + 0xd10b + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd140 + 0xd142 + 0xd160 + 0xd161 + 0xd163 + 0xd164 + 0xd165 + 0xd166 + 0xd167 + 0xd168 + 0xd169 + 0xd16b + 0xd16c + 0xd16d + 0xd16e + 0xd180 + 0xd190 + 0xd1b0 + 0xd1c0 + 0xd1c1 + +Camera summary: +Model: D70 + device version: V2.00 + serial number: (null) +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions + Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +[x] Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3008x2000', + '2240x1488', + '1504x1000' + ] value: '3008x2000' +[x] Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5] value: JPEG Fine (2) +[x] White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Auto (2) + + +[x] F-Number(0x5007):(readwrite) (type=0x4) Enumeration [350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/3.5 (350) + + Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 7000, step 1] value: 18 mm (1800) + Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: AF-S (32784) + +[x] Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Matrix (3) + +[x] Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Default (32784) + +[-] Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.017 sec (1666) + (zuviele choices) + +[x] Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32790] value: P (2) + +[x] Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [200,250,320,400,500,640,800,1000,1250,1600] value: ISO 200 (200) + + +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) + + + +Date Time(0x5011):(readwrite) (type=0xffff) '20050708T100610' + +[x] Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32787,32788] value: Single Shot (1) + +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 49, step 1] value: 1 + +[x] Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785] value: Single Area (32784) + + +Auto White Balance Bias(0xd017):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Flourescent White Balance Bias(0xd019):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x1) Range [-3 - 4, step 1] value: 0 +Property 0xd01f:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd025:(read only) (type=0x6) 33685926 +Property 0xd026:(read only) (type=0x6) 33685926 +Sharpening(0xd02a):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Tone Compensation(0xd02b):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Colour Mode(0xd02c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: sRGB (0) +Hue Adjustment(0xd02d):(readwrite) (type=0x1) Range [-9 - 9, step 3] value: 0 +Property 0xd045:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Compensation(0xd058):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 8 mm (1) +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1 +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +LCD Off Time(0xd064):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 0 +Auto Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Auto Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Reverse Command Dials(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Property 0xd091:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Exposure Bracketing(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Number(0xd0c2):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd0c3:(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +Property 0xd0c4:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd0c5:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) AF-S Nikkor 18-70mm 1:3.5-4.5G ED DX (127) +Property 0xd0e1:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0e2:(read only) (type=0x2) 3 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 70 mm (7000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/4.5 (450) +Property 0xd100:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 65544 +Property 0xd101:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd102:(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 49, step 1] value: 9 +Property 0xd104:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd105:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd106:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 4, step 1] value: Centre (0) +Property 0xd109:(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Exposure Meter(0xd10a):(read only) (type=0x1) Range [-128 - 127, step 1] value: 0.0 stops (0) +Property 0xd10d:(read only) (type=0xffff) 'NO= 3003d00a ' +Property 0xd10e:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd10b:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd120:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd121:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd122:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd124:(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 +Property 0xd125:(read only) (type=0x2) Range [0 - 7, step 1] value: 1 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd140:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Property 0xd142:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +AF Beep Mode(0xd160):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +??? AF Related(0xd161):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +AF Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 12, step 1] value: 2 +Image Review(0xd165):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Illumination(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 2, step 1] value: iTTL (0) +Property 0xd168:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Flash Sign(0xd169):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Remote Timeout(0xd16b):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 min (0) +Viewfinder Grid Display(0xd16c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Flash Power(0xd16d):(readwrite) (type=0x2) Range [0 - 4, step 1] value: Full (0) +Property 0xd16e:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Property 0xd180:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd190:(readwrite) (type=0x2) Range [0 - 12, step 2] value: 6 + + + Low Light(0xd1b0):(read only) (type=0x2) Range [0 - 4, step 1] value: No (0) + Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) + Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) + + + +autofocusdrive + Label: Fonction autofocus du Nikon DSLR + Type: TOGGLE + Current: 0 +manualfocusdrive + Label: Function manuel focus de Nikon DSLR + Type: RANGE + Current: 0 + Bottom: -32767 + Top: 32767 + Step: 1 +datetime + Label: Camera Date and Time + Type: DATE + Current: 1249549384 + Printable: jeu 06 aoû 2009 11:03:04 CEST +imagecomment + Label: Commentaire de l'image + Type: TEXT + Current: +imagecommentenable + Label: Permettre les commentaires d'image + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +lcdofftime + Label: Temps de l'extinction de l'écran LCD + Type: RADIO + Current: 10 secondes + Choice: 0 10 secondes + Choice: 1 20 seconds + Choice: 2 1 minute + Choice: 3 5 minutes + Choice: 4 10 minutes +recordingmedia + Label: Média d'enregistrement + Type: RADIO + Current: Carte + Choice: 0 Carte + Choice: 1 SDRAM +meterofftime + Label: Temp de mesure expiré + Type: RADIO + Current: 4 secondes + Choice: 0 4 secondes + Choice: 1 6 secondes + Choice: 2 8 secondes + Choice: 3 16 secondes + Choice: 4 30 secondes +csmmenu + Label: Menu CSM + Type: RADIO + Current: Activé + Choice: 0 Activé + Choice: 1 Désactivé +reversedial + Label: Inverser les bonttons de commande + Type: RADIO + Current: Activé + Choice: 0 Activé + Choice: 1 Désactivé +fastfs + Label: Système de fichiers rapide + Type: TOGGLE + Current: 1 +capturetarget + Label: Fichier cible Type: RADIO + Current: Mémoire interne + Choice: 0 Mémoire interne + Choice: 1 Carte mémoire +acpower + Label: Prise d'alimentation + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +externalflash + Label: Flash externe + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +batterylevel + Label: Niveau de batterie + Type: TEXT + Current: 100% +orientation + Label: orientation de la l'appareil + Type: RADIO + Current: 0' + Choice: 0 0' + Choice: 1 270' + Choice: 2 90' +flashopen + Label: Flash activé + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +flashcharged + Label: Flash Chargé + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +minfocallength + Label: Distance focale minimum + Type: TEXT + Current: 18 mm +maxfocallength + Label: Distance focale maximum + Type: TEXT + Current: 70 mm +apertureatminfocallength + Label: L'ouverture maximum est la distance focale minimum + Type: TEXT + Current: 4 mm +apertureatmaxfocallength + Label: L'ouverture minimum est la distance focale maximum + Type: TEXT + Current: 4 mm +lowlight + Label: Lumière faible + Type: RANGE + Current: 0 + Bottom: 0 + Top: 4 + Step: 1 +lightmeter + Label: Posemètre + Type: TEXT + Current: 0,0 +aflocked + Label: AF vérrouillé + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +aelocked + Label: AE vérrouillé + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +fvlocked + Label: FV vérrouillé + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +imagequality + Label: Qualité de l'image + Type: RADIO + Current: JPEG Basic + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF+Basic + Choice: 4 NEF+Normal +imagesize + Label: Taille de l'image + Type: RADIO + Current: 1504x1000 + Choice: 0 3008x2000 + Choice: 1 2240x1488 + Choice: 2 1504x1000 +iso + Label: Vitesse ISO + Type: RADIO + Current: 1600 + Choice: 0 200 + Choice: 1 250 + Choice: 2 320 + Choice: 3 400 + Choice: 4 500 + Choice: 5 640 + Choice: 6 800 + Choice: 7 1000 + Choice: 8 1250 + Choice: 9 1600 +whitebalance + Label: Balance des blancs + Type: RADIO + Current: Lumière naturelle + Choice: 0 Automatique + Choice: 1 Lumière naturelle + Choice: 2 Fluorescent + Choice: 3 Tungstène + Choice: 4 Flash + Choice: 5 Nuageux + Choice: 6 Ombre + Choice: 7 Pré-configuré +colormodel + Label: Mode couleur + Type: RADIO + Current: AdobeRGB + Choice: 0 sRGB (portrait) + Choice: 1 AdobeRGB + Choice: 2 sRGB (nature) +autoiso + Label: Automatique ISO + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +autoisopadv + Label: Heure d'extinction automatique + Type: RADIO + Current: 1/60 + Choice: 0 1/125 + Choice: 1 1/60 + Choice: 2 1/30 + Choice: 3 1/15 + Choice: 4 1/8 + Choice: 5 1/4 + Choice: 6 1/2 + Choice: 7 1 + Choice: 8 2 + Choice: 9 4 + Choice: 10 8 + Choice: 11 15 + Choice: 12 30 +longexpnr + Label: Réduction du bruit pour l'exposition longue + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +autofocusmode + Label: Mode focus automatique + Type: RADIO + Current: AF-C + Choice: 0 AF-S + Choice: 1 AF-C +assistlight + Label: illuminateur d'assistance + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +exposurecompensation + Label: Correction d'exposition + Type: RADIO + Current: 1666 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +exposurecompensation + Label: Correction d'exposition + Type: RADIO + Current: 1666 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +flashmode + Label: Mode flash + Type: RADIO + Current: iTTL + Choice: 0 iTTL + Choice: 1 Manuel + Choice: 2 Commander +flashcommandermode + Label: Mode Commander flash + Type: RADIO + Current: TTL + Choice: 0 TTL + Choice: 1 Ouverture du diaphragme automatique + Choice: 2 Manuel +flashcommanderpower + Label: Energie Flash Commander + Type: RADIO + Current: Pleine + Choice: 0 Pleine + Choice: 1 1/2 + Choice: 2 1/4 + Choice: 3 1/8 + Choice: 4 1/16 + Choice: 5 1/32 + Choice: 6 1/64 + Choice: 7 1/128 +af-area-illumination + Label: Illumation de la zone d'autofocus + Type: RADIO + Current: Automatique + Choice: 0 Automatique + Choice: 1 Désactivé + Choice: 2 Activé +afbeep + Label: Mode sonore pour autofocus + Type: TOGGLE + Current: 0 +f-number + Label: Valeur d'ouverture du diaphragme + Type: RADIO + Current: f/3,5 + Choice: 0 f/3,5 + Choice: 1 f/4 + Choice: 2 f/4,5 + Choice: 3 f/5 + Choice: 4 f/5,6 + Choice: 5 f/6,3 + Choice: 6 f/7,1 + Choice: 7 f/8 + Choice: 8 f/9 + Choice: 9 f/10 + Choice: 10 f/11 + Choice: 11 f/13 + Choice: 12 f/14 + Choice: 13 f/16 + Choice: 14 f/18 + Choice: 15 f/20 + Choice: 16 f/22 +focallength + Label: Distance focale + Type: RANGE + Current: 18 + Bottom: 18 + Top: 70 + Step: 0,01 +focusmode + Label: Mode focus + Type: RADIO + Current: AF-C + Choice: 0 Manuel + Choice: 1 AF-S + Choice: 2 AF-C +expprogram + Label: Programme d'exposition + Type: RADIO + Current: A + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S + Choice: 4 Automatique + Choice: 5 Portrait + Choice: 6 Paysage + Choice: 7 Macro + Choice: 8 Sports + Choice: 9 Portrait de nuit + Choice: 10 Paysage de nuit +capturemode + Label: Toujours en mode capture + Type: RADIO + Current: Rafale + Choice: 0 Un seul coup + Choice: 1 Rafale + Choice: 2 Retardateur + Choice: 3 Distante + Choice: 4 retardateur avec télécommande +focusmetermode + Label: Mode de mesure du focus + Type: RADIO + Current: Sujet le plus proche + Choice: 0 Multi-spot + Choice: 1 Simple Zone + Choice: 2 Sujet le plus proche +exposuremetermode + Label: Mode Mesure de l'exposition + Type: RADIO + Current: Multi Spot + Choice: 0 Pondérée centré + Choice: 1 Multi Spot + Choice: 2 Point centré +flashmode + Label: Mode flash + Type: RADIO + Current: iTTL + Choice: 0 iTTL + Choice: 1 Manuel + Choice: 2 Commander +shutterspeed + Label: Vitesse de l'obturateur + Type: RADIO + Current: 0,0166s + Choice: 0 0,0001s + Choice: 1 0,0002s + Choice: 2 0,0003s + Choice: 3 0,0004s + Choice: 4 0,0005s + Choice: 5 0,0006s + Choice: 6 0,0008s + Choice: 7 0,0010s + Choice: 8 0,0012s + Choice: 9 0,0015s + Choice: 10 0,0020s + Choice: 11 0,0025s + Choice: 12 0,0031s + Choice: 13 0,0040s + Choice: 14 0,0050s + Choice: 15 0,0062s + Choice: 16 0,0080s + Choice: 17 0,0100s + Choice: 18 0,0125s + Choice: 19 0,0166s + Choice: 20 0,0200s + Choice: 21 0,0250s + Choice: 22 0,0333s + Choice: 23 0,0400s + Choice: 24 0,0500s + Choice: 25 0,0666s + Choice: 26 0,0769s + Choice: 27 0,1000s + Choice: 28 0,1250s + Choice: 29 0,1666s + Choice: 30 0,2000s + Choice: 31 0,2500s + Choice: 32 0,3333s + Choice: 33 0,4000s + Choice: 34 0,5000s + Choice: 35 0,6250s + Choice: 36 0,7692s + Choice: 37 1,0000s + Choice: 38 1,3000s + Choice: 39 1,6000s + Choice: 40 2,0000s + Choice: 41 2,5000s + Choice: 42 3,0000s + Choice: 43 4,0000s + Choice: 44 5,0000s + Choice: 45 6,0000s + Choice: 46 8,0000s + Choice: 47 10,0000s + Choice: 48 13,0000s + Choice: 49 15,0000s + Choice: 50 20,0000s + Choice: 51 25,0000s + Choice: 52 30,0000s +shutterspeed2 + Label: Vitesse de l'obturateur + Type: RADIO + Current: 1/80 + Choice: 0 1/8000 + Choice: 1 1/6400 + Choice: 2 1/5000 + Choice: 3 1/4000 + Choice: 4 1/3200 + Choice: 5 1/2500 + Choice: 6 1/2000 + Choice: 7 1/1600 + Choice: 8 1/1250 + Choice: 9 1/1000 + Choice: 10 1/800 + Choice: 11 1/640 + Choice: 12 1/500 + Choice: 13 1/400 + Choice: 14 1/320 + Choice: 15 1/250 + Choice: 16 1/200 + Choice: 17 1/160 + Choice: 18 1/125 + Choice: 19 1/100 + Choice: 20 1/80 + Choice: 21 1/60 + Choice: 22 1/50 + Choice: 23 1/40 + Choice: 24 1/30 + Choice: 25 1/25 + Choice: 26 1/20 + Choice: 27 1/15 + Choice: 28 1/13 + Choice: 29 1/10 + Choice: 30 1/8 + Choice: 31 1/6 + Choice: 32 1/5 + Choice: 33 1/4 + Choice: 34 1/3 + Choice: 35 10/25 + Choice: 36 1/2 + Choice: 37 10/16 + Choice: 38 10/13 + Choice: 39 1 + Choice: 40 13/10 + Choice: 41 16/10 + Choice: 42 2 + Choice: 43 25/10 + Choice: 44 3 + Choice: 45 4 + Choice: 46 5 + Choice: 47 6 + Choice: 48 8 + Choice: 49 10 + Choice: 50 13 + Choice: 51 15 + Choice: 52 20 + Choice: 53 25 + Choice: 54 30 +focusareawrap + Label: Zone de focus couvert + Type: RADIO + Current: Activé + Choice: 0 Activé + Choice: 1 Désactivé +exposurelock + Label: Exposition vérouillé + Type: RADIO + Current: Activé + Choice: 0 Activé + Choice: 1 Désactivé +aelaflmode + Label: Mode AE-L/AF-L + Type: RADIO + Current: AE/AF vérrouillé + Choice: 0 AE/AF vérrouillé + Choice: 1 Exposition automatique seulement vérouillé + Choice: 2 Autofocus seulement vérouillé + Choice: 3 Autofocus vérouillé et en attente + Choice: 4 Autofocus activé + Choice: 5 Niveau du flash vérouillé +filenrsequencing + Label: Numéro de fichier séquencé + Type: RADIO + Current: Activé + Choice: 0 Activé + Choice: 1 Désactivé +flashsign + Label: Authentifier le flash + Type: RADIO + Current: Activé + Choice: 0 Activé + Choice: 1 Désactivé +viewfindergrid + Label: Grille Viewfinder + Type: RADIO + Current: Activé + Choice: 0 Activé + Choice: 1 Désactivé +imagereview + Label: Vision de l'image + Type: RADIO + Current: Activé + Choice: 0 Activé + Choice: 1 Désactivé +imagerotationflag + Label: Drapeau de rotation de l'image + Type: RADIO + Current: Activé + Choice: 0 Activé + Choice: 1 Désactivé +nocfcardrelease + Label: Débloquer sans la carte CompactFlash + Type: RADIO + Current: Activé + Choice: 0 Activé + Choice: 1 Désactivé +flashmodemanualpower + Label: Mode manuel pour la puissance du flash + Type: RADIO + Current: Pleine + Choice: 0 Pleine + Choice: 1 1/2 + Choice: 2 1/4 + Choice: 3 1/8 + Choice: 4 1/16 +autofocusarea + Label: Auto Focus de la zone + Type: RADIO + Current: Centre + Choice: 0 Centre + Choice: 1 Haut + Choice: 2 Bas + Choice: 3 Gauche + Choice: 4 Droite +flashexposurecompensation + Label: Correction d'exposition par le flash + Type: RANGE + Current: 0 + Bottom: -3 + Top: 1 + Step: 0,333333 +bracketing + Label: Bracketing + Type: RADIO + Current: Désactivé + Choice: 0 Activé + Choice: 1 Désactivé +evstep + Label: Palier EV + Type: RADIO + Current: 1/3 + Choice: 0 1/3 + Choice: 1 1/2 + Choice: 2 Valeur inconnue 0002 +bracketset + Label: bracket réglée + Type: RADIO + Current: Exposition automatique uniquement + Choice: 0 Exposition automatique & Flash + Choice: 1 Exposition automatique uniquement + Choice: 2 Flash uniquement + Choice: 3 Balance des blancs du bracketing +bracketorder + Label: Ordre de bracket + Type: RADIO + Current: Au-dessous > MTR + Choice: 0 MTR > au-dessous + Choice: 1 Au-dessous > MTR +burstnumber + Label: Nombre d'image par rafale + Type: RANGE + Current: 1 + Bottom: 1 + Top: 49 + Step: 1 +autowhitebias + Label: Balance des blancs automatique + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +tungstenwhitebias + Label: Balance des blancs tungstène + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +flourescentwhitebias + Label: Balance des blancs fluorescent + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +daylightwhitebias + Label: Balance des blancs ensoleillé + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +flashwhitebias + Label: Balance des blancs flash + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +cloudywhitebias + Label: Balance des blancs nuageux + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +shadewhitebias + Label: Balance des blancs ombre + Type: RANGE + Current: 0 + Bottom: -3 + Top: 4 + Step: 1 +whitebiaspresetno + Label: Nombre de Balance des blancs pré-configuré + Type: RADIO + Current: 0 + Choice: 0 0 + Choice: 1 1 +whitebiaspreset0 + Label: Balance des blancs pré-configuré 0 + Type: TEXT + Current: 23069381 +whitebiaspreset1 + Label: Balance des blancs pré-configuré 1 + Type: TEXT + Current: 33685926 +selftimerdelay + Label: Délai du retardateur + Type: RADIO + Current: 2 secondes + Choice: 0 2 secondes + Choice: 1 5 secondes + Choice: 2 10 secondes + Choice: 3 20 seconds +centerweightsize + Label: Zone pondérée centrale + Type: RADIO + Current: 6 mm + Choice: 0 6 mm + Choice: 1 8 mm + Choice: 2 10 mm + Choice: 3 12 mm +flashshutterspeed + Label: Vitesse de l'obturateur + Type: RADIO + Current: 1/60 + Choice: 0 1/60 + Choice: 1 1/30 + Choice: 2 1/15 + Choice: 3 1/8 + Choice: 4 1/4 + Choice: 5 1/2 + Choice: 6 1 + Choice: 7 2 + Choice: 8 4 + Choice: 9 8 + Choice: 10 15 + Choice: 11 30 +remotetimeout + Label: Temporisation + Type: RADIO + Current: 15 minutes + Choice: 0 1 minute + Choice: 1 5 minutes + Choice: 2 10 minutes + Choice: 3 15 minutes +optimizeimage + Label: Optimiser l'image + Type: RADIO + Current: Normal + Choice: 0 Normal + Choice: 1 Vivid + Choice: 2 Plus nette + Choice: 3 Plus Doux + Choice: 4 Directement pour l'impression + Choice: 5 Portrait + Choice: 6 Paysage + Choice: 7 Personnalisé +sharpening + Label: Netteté + Type: RADIO + Current: Moyenne élevé + Choice: 0 Automatique + Choice: 1 Normal + Choice: 2 Faible + Choice: 3 Moyenne bas + Choice: 4 Moyenne élevé + Choice: 5 Haute + Choice: 6 Aucune +tonecompensation + Label: Compensation des tons + Type: RADIO + Current: Automatique + Choice: 0 Automatique + Choice: 1 Normal + Choice: 2 Faible contraste + Choice: 3 Moyenne bas + Choice: 4 Moyenne élevé + Choice: 5 Contrôler + Choice: 6 Personnalisé +saturation + Label: Saturation + Type: RADIO + Current: Modéré + Choice: 0 Normal + Choice: 1 Modéré + Choice: 2 Renforcé +hueadjustment + Label: Ajustement de le nuance + Type: RANGE + Current: 0 + Bottom: -9 + Top: 9 + Step: 3 +5001 + Label: Niveau de batterie + Type: MENU + Current: 100 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 + Choice: 50 50 + Choice: 51 51 + Choice: 52 52 + Choice: 53 53 + Choice: 54 54 + Choice: 55 55 + Choice: 56 56 + Choice: 57 57 + Choice: 58 58 + Choice: 59 59 + Choice: 60 60 + Choice: 61 61 + Choice: 62 62 + Choice: 63 63 + Choice: 64 64 + Choice: 65 65 + Choice: 66 66 + Choice: 67 67 + Choice: 68 68 + Choice: 69 69 + Choice: 70 70 + Choice: 71 71 + Choice: 72 72 + Choice: 73 73 + Choice: 74 74 + Choice: 75 75 + Choice: 76 76 + Choice: 77 77 + Choice: 78 78 + Choice: 79 79 + Choice: 80 80 + Choice: 81 81 + Choice: 82 82 + Choice: 83 83 + Choice: 84 84 + Choice: 85 85 + Choice: 86 86 + Choice: 87 87 + Choice: 88 88 + Choice: 89 89 + Choice: 90 90 + Choice: 91 91 + Choice: 92 92 + Choice: 93 93 + Choice: 94 94 + Choice: 95 95 + Choice: 96 96 + Choice: 97 97 + Choice: 98 98 + Choice: 99 99 + Choice: 100 100 +5003 + Label: Taille de l'image + Type: MENU + Current: 1504x1000 + Choice: 0 3008x2000 + Choice: 1 2240x1488 + Choice: 2 1504x1000 +5004 + Label: paramètre de compression + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 4 + Choice: 4 5 +5005 + Label: Balance des blancs + Type: MENU + Current: 4 + Choice: 0 2 + Choice: 1 4 + Choice: 2 5 + Choice: 3 6 + Choice: 4 7 + Choice: 5 32784 + Choice: 6 32785 + Choice: 7 32787 +5007 + Label: Valeur d'ouverture du diaphragme + Type: MENU + Current: 350 + Choice: 0 350 + Choice: 1 400 + Choice: 2 450 + Choice: 3 500 + Choice: 4 560 + Choice: 5 630 + Choice: 6 710 + Choice: 7 800 + Choice: 8 900 + Choice: 9 1000 + Choice: 10 1100 + Choice: 11 1300 + Choice: 12 1400 + Choice: 13 1600 + Choice: 14 1800 + Choice: 15 2000 + Choice: 16 2200 +5008 + Label: Distance focale + Type: RANGE + Current: 1800 + Bottom: 1800 + Top: 7000 + Step: 1 +500a + Label: Mode focus + Type: MENU + Current: 32785 + Choice: 0 1 + Choice: 1 32784 + Choice: 2 32785 +500b + Label: Mode Mesure de l'exposition + Type: MENU + Current: 3 + Choice: 0 2 + Choice: 1 3 + Choice: 2 4 +500c + Label: Mode flash + Type: MENU + Current: 32784 + Choice: 0 4 + Choice: 1 32784 + Choice: 2 32785 + Choice: 3 32786 + Choice: 4 32787 +500d + Label: Temp de pose + Type: MENU + Current: 125 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 8 + Choice: 7 10 + Choice: 8 12 + Choice: 9 15 + Choice: 10 20 + Choice: 11 25 + Choice: 12 31 + Choice: 13 40 + Choice: 14 50 + Choice: 15 62 + Choice: 16 80 + Choice: 17 100 + Choice: 18 125 + Choice: 19 166 + Choice: 20 200 + Choice: 21 250 + Choice: 22 333 + Choice: 23 400 + Choice: 24 500 + Choice: 25 666 + Choice: 26 769 + Choice: 27 1000 + Choice: 28 1250 + Choice: 29 1666 + Choice: 30 2000 + Choice: 31 2500 + Choice: 32 3333 + Choice: 33 4000 + Choice: 34 5000 + Choice: 35 6250 + Choice: 36 7692 + Choice: 37 10000 + Choice: 38 13000 + Choice: 39 16000 + Choice: 40 20000 + Choice: 41 25000 + Choice: 42 30000 + Choice: 43 40000 + Choice: 44 50000 + Choice: 45 60000 + Choice: 46 80000 + Choice: 47 100000 + Choice: 48 130000 + Choice: 49 150000 + Choice: 50 200000 + Choice: 51 250000 + Choice: 52 300000 +500e + Label: Mode d'exposition programmé + Type: MENU + Current: 3 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 32784 + Choice: 5 32785 + Choice: 6 32786 + Choice: 7 32787 + Choice: 8 32788 + Choice: 9 32789 + Choice: 10 32790 +500f + Label: Index d'exposition (film de vitesse ISO) + Type: MENU + Current: 1600 + Choice: 0 200 + Choice: 1 250 + Choice: 2 320 + Choice: 3 400 + Choice: 4 500 + Choice: 5 640 + Choice: 6 800 + Choice: 7 1000 + Choice: 8 1250 + Choice: 9 1600 +5010 + Label: Compensation de l'exposition + Type: MENU + Current: 1666 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +5011 + Label: Date & heure + Type: TEXT + Current: 20090806T100539 +5013 + Label: Toujours en mode capture + Type: MENU + Current: 2 + Choice: 0 1 + Choice: 1 2 + Choice: 2 32785 + Choice: 3 32787 + Choice: 4 32788 +5018 + Label: Nombre d'image par rafale + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 + Choice: 11 12 + Choice: 12 13 + Choice: 13 14 + Choice: 14 15 + Choice: 15 16 + Choice: 16 17 + Choice: 17 18 + Choice: 18 19 + Choice: 19 20 + Choice: 20 21 + Choice: 21 22 + Choice: 22 23 + Choice: 23 24 + Choice: 24 25 + Choice: 25 26 + Choice: 26 27 + Choice: 27 28 + Choice: 28 29 + Choice: 29 30 + Choice: 30 31 + Choice: 31 32 + Choice: 32 33 + Choice: 33 34 + Choice: 34 35 + Choice: 35 36 + Choice: 36 37 + Choice: 37 38 + Choice: 38 39 + Choice: 39 40 + Choice: 40 41 + Choice: 41 42 + Choice: 42 43 + Choice: 43 44 + Choice: 44 45 + Choice: 45 46 + Choice: 46 47 + Choice: 47 48 + Choice: 48 49 +501c + Label: Mode de mesure du focus + Type: MENU + Current: 32785 + Choice: 0 2 + Choice: 1 32784 + Choice: 2 32785 +d017 + Label: Balance des blancs automatique + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +d018 + Label: Balance des blancs tungstène + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +d019 + Label: Balance des blancs fluorescent + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +d01a + Label: Balance des blancs ensoleillé + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +d01b + Label: Balance des blancs flash + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +d01c + Label: Balance des blancs nuageux + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 +d01d + Label: Balance des blancs ombre + Type: MENU + Current: 0 + Choice: 0 -3 + Choice: 1 -2 + Choice: 2 -1 + Choice: 3 0 + Choice: 4 1 + Choice: 5 2 + Choice: 6 3 + Choice: 7 4 +d01f + Label: Nombre de balance des blancs Pré-configuré + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d025 + Label: Valeur de balance des blancs pré-configuré 0 + Type: TEXT + Current: 23069381 +d026 + Label: Valeur de balance des blancs pré-configuré 1 + Type: TEXT + Current: 33685926 +d02a + Label: Netteté + Type: MENU + Current: 4 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +d02b + Label: Compensation des tons + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +d02c + Label: Mode couleur + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d02d + Label: Ajustement de le nuance + Type: RANGE + Current: 0 + Bottom: -9 + Top: 9 + Step: 3 +d045 + Label: Réinitilise le menu + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d04f + Label: Zone de focus couvert + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d054 + Label: Automatique ISO + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d056 + Label: Palier d'exposition + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d058 + Label: Correction d'exposition + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d059 + Label: Zone pondérée centrale + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +d05e + Label: Exposition vérouillé + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d05f + Label: Focus vérrouillé + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +d062 + Label: Extinction de la mesure automatique + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +d063 + Label: Délai du retardateur + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +d064 + Label: Temps de l'extinction de l'écran LCD + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +d06b + Label: Réduction du bruit pour le longue exposition + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d06c + Label: Numéro de fichier séquencé + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d075 + Label: Vitesse de l'obturateur + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 +d078 + Label: bracket réglée + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +d07a + Label: Ordre de bracket + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d086 + Label: Inverser les bonttons de commande + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d08a + Label: Pas de carte CompactFlash libérée + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d090 + Label: Commentaire des images + Type: TEXT + Current: +d091 + Label: Commentaire des images autorisé + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d092 + Label: Rotation de l'image + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d0c0 + Label: Bracketing activé + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d0c2 + Label: Programme d'exposition du bracketing + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d0c3 + Label: Mesure de l'exposition automatique compté par le bracket + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 +d0c4 + Label: Palier des Balance des blancs du bracket + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d0c5 + Label: Programme de Balance des blancs du bracket + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d0e0 + Label: Identifient de la lentille + Type: TEXT + Current: 127 +d0e1 + Label: Genre d'objectif + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d0e2 + Label: Type d'objectif + Type: TEXT + Current: 3 +d0e3 + Label: Distance focale minimum + Type: TEXT + Current: 1800 +d0e4 + Label: Distance focale maximum + Type: TEXT + Current: 7000 +d0e5 + Label: l'Ouverture maximale se situe à la distance focale minimum + Type: TEXT + Current: 350 +d0e6 + Label: l'Ouverture minimal se situe à la distance focale maximum + Type: TEXT + Current: 450 +d100 + Label: Temp de pose du Nikon + Type: MENU + Current: 65616 + Choice: 0 73536 + Choice: 1 71936 + Choice: 2 70536 + Choice: 3 69536 + Choice: 4 68736 + Choice: 5 68036 + Choice: 6 67536 + Choice: 7 67136 + Choice: 8 66786 + Choice: 9 66536 + Choice: 10 66336 + Choice: 11 66176 + Choice: 12 66036 + Choice: 13 65936 + Choice: 14 65856 + Choice: 15 65786 + Choice: 16 65736 + Choice: 17 65696 + Choice: 18 65661 + Choice: 19 65636 + Choice: 20 65616 + Choice: 21 65596 + Choice: 22 65586 + Choice: 23 65576 + Choice: 24 65566 + Choice: 25 65561 + Choice: 26 65556 + Choice: 27 65551 + Choice: 28 65549 + Choice: 29 65546 + Choice: 30 65544 + Choice: 31 65542 + Choice: 32 65541 + Choice: 33 65540 + Choice: 34 65539 + Choice: 35 655385 + Choice: 36 65538 + Choice: 37 655376 + Choice: 38 655373 + Choice: 39 65537 + Choice: 40 851978 + Choice: 41 1048586 + Choice: 42 131073 + Choice: 43 1638410 + Choice: 44 196609 + Choice: 45 262145 + Choice: 46 327681 + Choice: 47 393217 + Choice: 48 524289 + Choice: 49 655361 + Choice: 50 851969 + Choice: 51 983041 + Choice: 52 1310721 + Choice: 53 1638401 + Choice: 54 1966081 +d101 + Label: Prise d'alimentation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d102 + Label: État d'alerte + Type: TEXT + Current: 0 +d103 + Label: Prise de vue maximum + Type: MENU + Current: 49 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 +d104 + Label: AF vérrouillé + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d105 + Label: AE vérrouillé + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d106 + Label: FV vérrouillé + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d108 + Label: Capteur d'autofocus activé + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +d109 + Label: Programme flexible + Type: RANGE + Current: 0 + Bottom: -30 + Top: 30 + Step: 2 +d10a + Label: Mesure de l'exposition + Type: RANGE + Current: 0 + Bottom: -128 + Top: 127 + Step: 1 +d10d + Label: Numéro de série du CCD + Type: TEXT + Current: NO= 300173b7 +d10e + Label: orientation de la l'appareil + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d10b + Label: Média d'enregistrement + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d120 + Label: Flash externe connecté + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d121 + Label: État du flash externe + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d122 + Label: Spécification du flash externe + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d124 + Label: Compensation de l'exposition par le flash externe + Type: MENU + Current: 0 + Choice: 0 -18 + Choice: 1 -17 + Choice: 2 -16 + Choice: 3 -15 + Choice: 4 -14 + Choice: 5 -13 + Choice: 6 -12 + Choice: 7 -11 + Choice: 8 -10 + Choice: 9 -9 + Choice: 10 -8 + Choice: 11 -7 + Choice: 12 -6 + Choice: 13 -5 + Choice: 14 -4 + Choice: 15 -3 + Choice: 16 -2 + Choice: 17 -1 + Choice: 18 0 + Choice: 19 1 + Choice: 20 2 + Choice: 21 3 + Choice: 22 4 + Choice: 23 5 + Choice: 24 6 + Choice: 25 7 + Choice: 26 8 + Choice: 27 9 + Choice: 28 10 + Choice: 29 11 + Choice: 30 12 + Choice: 31 13 + Choice: 32 14 + Choice: 33 15 + Choice: 34 16 + Choice: 35 17 + Choice: 36 18 +d125 + Label: Mode flash externe + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +d126 + Label: Correction d'exposition par le flash + Type: RANGE + Current: 0 + Bottom: -18 + Top: 6 + Step: 2 +d140 + Label: Optimiser l'image + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +d142 + Label: Saturation + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d160 + Label: Mode sonore pour autofocus + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d161 + Label: Mode autofocus + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d163 + Label: Illuminateur d'assistance AF + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d164 + Label: Paramètre Auto ISO P/A/DVP + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 +d165 + Label: Vision de l'image + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d166 + Label: Illumation de la zone d'autofocus + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d167 + Label: Mode flash + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d168 + Label: Mode Commander flash + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d169 + Label: Authentifier le flash + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d16b + Label: Temporisation + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +d16c + Label: Afficher la grille Viewfinder + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +d16d + Label: Mode manuel pour la puissance du flash + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +d16e + Label: Mode flash à energie commander + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +d180 + Label: Menu CSM + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +d190 + Label: Images et paliers du bracketing + Type: RANGE + Current: 2 + Bottom: 0 + Top: 12 + Step: 2 +d1b0 + Label: Affichage de l'état d'exposition + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +d1c0 + Label: Flash activé + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +d1c1 + Label: Flash Chargé + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d700.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d700.txt new file mode 100644 index 00000000..0bf54348 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d700.txt @@ -0,0 +1,1033 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D700 + device version: V1.00 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9200 + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 + 0xc104 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0x501e + 0x501f + 0xd406 + 0xd407 + /* added by hack: */ + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd020 + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd025 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd048 + 0xd049 + 0xd04b + 0xd04f + 0xd050 + 0xd051 + 0xd053 + 0xd054 + 0xd055 + 0xd056 + 0xd057 + 0xd058 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd065 + 0xd067 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd06f + 0xd070 + 0xd071 + 0xd072 + 0xd073 + 0xd074 + 0xd075 + 0xd077 + 0xd078 + 0xd079 + 0xd07a + 0xd080 + 0xd081 + 0xd082 + 0xd083 + 0xd084 + 0xd085 + 0xd086 + 0xd087 + 0xd088 + 0xd089 + 0xd08a + 0xd08b + 0xd08c + 0xd08d + 0xd090 + 0xd091 + 0xd092 + 0xd093 + 0xd094 + 0xd095 + 0xd096 + 0xd097 + 0xd098 + 0xd099 + 0xd09a + 0xd09b + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f2 + 0xd0f3 + 0xd0f4 + 0xd0f7 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10c + 0xd10d + 0xd10e + 0xd110 + 0xd111 + 0xd112 + 0xd113 + 0xd114 + 0xd120 + 0xd121 + 0xd122 + 0xd123 + 0xd124 + 0xd125 + 0xd126 + 0xd149 + 0xd14e + 0xd14f + 0xd150 + 0xd151 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd160 + 0xd163 + 0xd164 + 0xd166 + 0xd167 + 0xd16c + 0xd16d + 0xd182 + 0xd183 + 0xd184 + 0xd187 + 0xd189 + 0xd18a + 0xd18b + 0xd18d + 0xd18e + 0xd1a0 + 0xd1a1 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1c0 + 0xd1c1 + 0xd1d0 + 0xd1d1 + 0xd1d2 + 0xd1d3 + 0xd1d4 + 0xd1d5 + 0xd1d6 + 0xd1d7 + 0xd1d8 + 0xd1d9 + 0xd1da + 0xd1db + 0xd1dc + 0xd200 + 0xd201 + +Camera summary: +Manufacturer: Nikon Corporation +Model: D700 + Version: V1.00 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type TIFF +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + TIFF/380d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Script/3002: PTP error a802 on query + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D700 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 2147483647 (2047 MB) + Free Space (Bytes): 2147483647 (2047 MB) + Free Space (Images): 1446 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4256x2832', + '3184x2120', + '2128x1416' + ] value: '4256x2832' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: JPEG Basic (0) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/2.8 (280) +Focal Length(0x5008):(read only) (type=0x6) Range [2400 - 7000, step 1] value: 26 mm (2600) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: AF-C (32785) +Exposure Metering Mode(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: Spot (4) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Default (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31] value: 0.00031 sec (31) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8320,10240,12800,25600] value: ISO 200 (200) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20081126T114349' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32787] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(read only) (type=0x4) Enumeration [2,32784,32785] value: Single Area (32784) +Artist(0x501e):(read only) (type=0xffff) 'Joe Example User' +Copyright Info(0x501f):(read only) (type=0xffff) 'Joe Example User' +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd010:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 + +Property 0xd011:(readwrite) (type=0xffff) 'Fixed ISO ' shooting menu bank A +Property 0xd012:(readwrite) (type=0xffff) 'Auto ISO ' shooting menu bank B +Property 0xd013:(readwrite) (type=0xffff) ' ' shooting menu bank C +Property 0xd014:(readwrite) (type=0xffff) ' ' shooting menu bank D + +Property 0xd015:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd016:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 + +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 21 +Property 0xd01f:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 + +Property 0xd020:(readwrite) (type=0xffff) ' ' +Property 0xd021:(readwrite) (type=0xffff) ' ' +Property 0xd022:(readwrite) (type=0xffff) ' ' +Property 0xd023:(readwrite) (type=0xffff) ' ' +Property 0xd024:(readwrite) (type=0xffff) ' ' + +Property 0xd025:(read only) (type=0x6) 47448263 +Property 0xd026:(read only) (type=0x6) 30474587 +Property 0xd027:(read only) (type=0x6) 30474587 +Property 0xd028:(read only) (type=0x6) 30474587 +Property 0xd029:(read only) (type=0x6) 30474587 + +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Max. Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 + +Property 0xd030:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd031:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd032:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd033:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 + +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 + +PTP_DPC_NIKON_MenuBankNameA(0xd041):(readwrite) (type=0xffff) 'Standard ' custom setting bank A +PTP_DPC_NIKON_MenuBankNameB(0xd042):(readwrite) (type=0xffff) ' ' custom setting bank B +PTP_DPC_NIKON_MenuBankNameC(0xd043):(readwrite) (type=0xffff) ' ' custom setting bank C +PTP_DPC_NIKON_MenuBankNameD(0xd044):(readwrite) (type=0xffff) ' ' custom setting bank D + +Property 0xd045:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_A4AFActivation(0xd04b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Vertical AF On(0xd050):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Property 0xd051:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Property 0xd053:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Compensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Compensation(0xd058):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Property 0xd05a:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd05b:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd05c:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 17, step 1] value: 15 +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 4 +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd065:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Property 0xd067:(read only) (type=0x5) -1 +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 4 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 100, step 1] value: 100 +PTP_DPC_NIKON_D3ExpDelayMode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +PTP_DPC_NIKON_D7Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd070:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd071:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd072:(readwrite) (type=0xffff) 'Joe Example User' +Property 0xd073:(readwrite) (type=0xffff) 'Joe Example User' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 2 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 0 +Modeling Flash(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Center Button Shooting Mode(0xd080):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Center Button Playback Mode(0xd081):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Multiselector(0xd082):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Photo Info. Playback(0xd083):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Assign Func. Button(0xd084):(readwrite) (type=0x2) Range [0 - 16, step 1] value: 16 +Customise Command Dials(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Reverse Command Dial(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Menus and Playback(0xd088):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Buttons and Dials(0xd089):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Property 0xd08b:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd08c:(readwrite) (type=0x2) Enumeration [0,1,2,5,6,7,8] value: 0 +Property 0xd08d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Image Comment String(0xd090):(readwrite) (type=0xffff) '(c) Joe Example User ' +Property 0xd091:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd093:(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Property 0xd094:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd095:(readwrite) (type=0x1) Range [-20 - 20, step 1] value: 0 +Property 0xd096:(readwrite) (type=0x1) Range [-20 - 21, step 1] value: 21 +Property 0xd097:(readwrite) (type=0x1) Range [0 - 19, step 1] value: 0 +Property 0xd098:(readwrite) (type=0x1) Range [0 - 100, step 1] value: 0 +Property 0xd099:(read only) (type=0x1) Range [0 - 20, step 1] value: 0 +Property 0xd09a:(read only) (type=0x1) Range [0 - 20, step 1] value: 20 +Property 0xd09b:(read only) (type=0x1) Range [0 - 1, step 1] value: 0 +Exposure Bracketing(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Distance(0xd0c1):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Bracketing Number(0xd0c2):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 3 +Property 0xd0c3:(read only) (type=0x2) Range [1 - 9, step 1] value: 1 +NIKON White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd0c5:(read only) (type=0x2) Range [0 - 7, step 1] value: 3 +Lens ID(0xd0e0):(read only) (type=0x2) 147 +Property 0xd0e1:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0e2:(read only) (type=0x2) 3 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 24 mm (2400) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 70 mm (7000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/2.8 (280) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/2.8 (280) +Property 0xd0f2:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Property 0xd0f3:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Property 0xd0f4:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Property 0xd0f7:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Property 0xd100:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856] value: 65856 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd102:(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 46, step 1] value: 23 +NIKON AF-L Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd105:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd106:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 51, step 1] value: Top (1) +Property 0xd109:(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Property 0xd10b:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd10c:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd10d:(read only) (type=0xffff) ' 61D12 1 ' +Property 0xd10e:(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd110:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Exposure Aperture Lock(0xd111):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd112:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd113:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd114:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd120:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd121:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd122:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd123:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd124:(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 +Property 0xd125:(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd149:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd14e:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 3 +Property 0xd14f:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Property 0xd150:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd151:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd152:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd153:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd154:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd155:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +AF Beep Mode(0xd160):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 26, step 1] value: 11 +AF Area Illumination(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +Viewfinder Grid Display(0xd16c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Flash Mode Manual Power(0xd16d):(readwrite) (type=0x2) Range [0 - 21, step 1] value: Full (0) +Property 0xd182:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd183:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Property 0xd184:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Property 0xd187:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd189:(readwrite) (type=0x2) Range [0 - 16, step 1] value: 1 +Property 0xd18a:(readwrite) (type=0x2) Enumeration [0,1,2,5,6,7,8] value: 0 +Property 0xd18b:(readwrite) (type=0x2) Enumeration [0,1,5,6,7,8] value: 0 +Property 0xd18d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd18e:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1a0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1a1:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd1a2:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1a3:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Property 0xd1a4:(read only) (type=0x6) 1 +Low Light(0xd1b0):(read only) (type=0x2) Range [0 - 8, step 1] value: No (0) +Property 0xd1b1:(read only) (type=0x1) Range [-60 - 60, step 1] value: 0 +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1b3:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1d0:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Property 0xd1d1:(readwrite) (type=0x2) Range [0 - 9, step 1] value: 8 +Property 0xd1d2:(readwrite) (type=0x2) Range [0 - 13, step 1] value: 9 +Property 0xd1d3:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1d4:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd1d5:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1d6:(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Property 0xd1d7:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1d8:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1d9:(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Property 0xd1da:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1db:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1dc:(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Property 0xd200:(readwrite) (type=0x4) Enumeration [1,2,3,4,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Property 0xd201:(read only) (type=0x4) Enumeration [] value: 0 + +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1227696627 + Printable: Wed Nov 26 11:50:27 2008 +/main/settings/imgcomment + Label: Image Comment + Type: TEXT + Current: (c) Joe Example User +/main/settings/meterofftime + Label: Meter Off Time + Type: RADIO + Current: 30 minutes + Choice: 0 4 seconds + Choice: 1 6 seconds + Choice: 2 8 seconds + Choice: 3 16 seconds + Choice: 4 30 minutes + Choice: 5 30 seconds + Choice: 6 Unknown value 0009 + Choice: 7 Unknown value 0009 + Choice: 8 Unknown value 0009 + Choice: 9 Unknown value 0009 +/main/settings/battery + Label: Battery Level + Type: TEXT + Current: 100% +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imgquality + Label: Image Quality + Type: RADIO + Current: JPEG Basic + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF (Raw) + Choice: 4 NEF+Basic + Choice: 5 NEF+Normal + Choice: 6 NEF+Fine + Choice: 7 TIFF (RGB) +/main/imgsettings/imgsize +Label: Image Size +Type: RADIO +Current: 4256x2832 +Choice: 0 4256x2832 +Choice: 1 3184x2120 +Choice: 2 2128x1416 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 200 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8320 +Choice: 20 10240 +Choice: 21 12800 +Choice: 22 25600 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusmode2 +Label: Auto Focus Mode 2 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/assistlight +Label: Assist Light +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nikonflashmode +Label: Flash Mode +Type: RADIO +Current: iTTL +Choice: 0 iTTL +Choice: 1 Manual +Choice: 2 Commander +Choice: 3 Unknown value 0003 +/main/capturesettings/af-area-illumination +Label: AF Area Illumination +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Off +Choice: 2 On +/main/capturesettings/afbeep +Label: AF Beep Mode +Type: TOGGLE +Current: 0 +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/2.8 +Choice: 0 f/2.8 +Choice: 1 f/3.2 +Choice: 2 f/3.5 +Choice: 3 f/4 +Choice: 4 f/4.5 +Choice: 5 f/5 +Choice: 6 f/5.6 +Choice: 7 f/6.3 +Choice: 8 f/7.1 +Choice: 9 f/8 +Choice: 10 f/9 +Choice: 11 f/10 +Choice: 12 f/11 +Choice: 13 f/13 +Choice: 14 f/14 +Choice: 15 f/16 +Choice: 16 f/18 +Choice: 17 f/20 +Choice: 18 f/22 +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 26 +Bottom: 24 +Top: 70 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-C +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +/main/capturesettings/exposurebiascompensation +Label: Exposure Bias Compensation +Type: RADIO +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/capturesettings/exptime +Label: Exposure Time +Type: RADIO +Current: 0.031 +Choice: 0 0.001 +Choice: 1 0.002 +Choice: 2 0.003 +Choice: 3 0.004 +Choice: 4 0.005 +Choice: 5 0.006 +Choice: 6 0.008 +Choice: 7 0.010 +Choice: 8 0.012 +Choice: 9 0.015 +Choice: 10 0.020 +Choice: 11 0.025 +Choice: 12 0.031 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: A +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Mirror Up +Choice: 5 Remote +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Single Area +Choice: 0 Dynamic Area +Choice: 1 Single Area +Choice: 2 Closest Subject +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Center Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Default +Choice: 0 Red-eye automatic +Choice: 1 Default +Choice: 2 Slow Sync +Choice: 3 Rear Curtain Sync + Slow Sync +Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurelock +Label: Exposure Lock +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/aelaflmode +Label: AE-L/AF-L Mode +Type: RADIO +Current: (null) +Choice: 0 AE/AF Lock +Choice: 1 AE Lock only +Choice: 2 AF Lock Only +Choice: 3 AF Lock Hold +Choice: 4 AF On +Choice: 5 Flash Level Lock +Choice: 6 Unknown value 0011 +Choice: 7 Unknown value 0011 +Choice: 8 Unknown value 0011 +Choice: 9 Unknown value 0011 +Choice: 10 Unknown value 0011 +Choice: 11 Unknown value 0011 +Choice: 12 Unknown value 0011 +Choice: 13 Unknown value 0011 +Choice: 14 Unknown value 0011 +Choice: 15 Unknown value 0011 +Choice: 16 Unknown value 0011 +Choice: 17 Unknown value 0011 +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/viewfindergrid +Label: Viewfinder Grid +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/flashmodemanualpower +Label: Flash Mode Manual Power +Type: RADIO +Current: Full +Choice: 0 Full +Choice: 1 1/2 +Choice: 2 1/4 +Choice: 3 1/8 +Choice: 4 1/16 +Choice: 5 Unknown value 0015 +Choice: 6 Unknown value 0015 +Choice: 7 Unknown value 0015 +Choice: 8 Unknown value 0015 +Choice: 9 Unknown value 0015 +Choice: 10 Unknown value 0015 +Choice: 11 Unknown value 0015 +Choice: 12 Unknown value 0015 +Choice: 13 Unknown value 0015 +Choice: 14 Unknown value 0015 +Choice: 15 Unknown value 0015 +Choice: 16 Unknown value 0015 +Choice: 17 Unknown value 0015 +Choice: 18 Unknown value 0015 +Choice: 19 Unknown value 0015 +Choice: 20 Unknown value 0015 +Choice: 21 Unknown value 0015 +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Top +Choice: 0 Centre +Choice: 1 Top +Choice: 2 Bottom +Choice: 3 Left +Choice: 4 Right +Choice: 5 Unknown value 0033 +Choice: 6 Unknown value 0033 +Choice: 7 Unknown value 0033 +Choice: 8 Unknown value 0033 +Choice: 9 Unknown value 0033 +Choice: 10 Unknown value 0033 +Choice: 11 Unknown value 0033 +Choice: 12 Unknown value 0033 +Choice: 13 Unknown value 0033 +Choice: 14 Unknown value 0033 +Choice: 15 Unknown value 0033 +Choice: 16 Unknown value 0033 +Choice: 17 Unknown value 0033 +Choice: 18 Unknown value 0033 +Choice: 19 Unknown value 0033 +Choice: 20 Unknown value 0033 +Choice: 21 Unknown value 0033 +Choice: 22 Unknown value 0033 +Choice: 23 Unknown value 0033 +Choice: 24 Unknown value 0033 +Choice: 25 Unknown value 0033 +Choice: 26 Unknown value 0033 +Choice: 27 Unknown value 0033 +Choice: 28 Unknown value 0033 +Choice: 29 Unknown value 0033 +Choice: 30 Unknown value 0033 +Choice: 31 Unknown value 0033 +Choice: 32 Unknown value 0033 +Choice: 33 Unknown value 0033 +Choice: 34 Unknown value 0033 +Choice: 35 Unknown value 0033 +Choice: 36 Unknown value 0033 +Choice: 37 Unknown value 0033 +Choice: 38 Unknown value 0033 +Choice: 39 Unknown value 0033 +Choice: 40 Unknown value 0033 +Choice: 41 Unknown value 0033 +Choice: 42 Unknown value 0033 +Choice: 43 Unknown value 0033 +Choice: 44 Unknown value 0033 +Choice: 45 Unknown value 0033 +Choice: 46 Unknown value 0033 +Choice: 47 Unknown value 0033 +Choice: 48 Unknown value 0033 +Choice: 49 Unknown value 0033 +Choice: 50 Unknown value 0033 +Choice: 51 Unknown value 0033 +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0.333333 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE & Flash +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +/main/capturesettings/bracketorder +Label: Bracket Order +Type: RADIO +Current: MTR > Under +Choice: 0 MTR > Under +Choice: 1 Under > MTR +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/selftimerdelay +Label: Selftimer Delay +Type: RADIO +Current: 2 seconds +Choice: 0 2 seconds +Choice: 1 5 seconds +Choice: 2 10 seconds +Choice: 3 20 seconds +/main/capturesettings/centerweightsize +Label: Center Weight Area +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +Choice: 2 10 mm +Choice: 3 20 mm +Choice: 4 Unknown value 0004 +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +Choice: 1 1/30 +Choice: 2 1/15 +Choice: 3 1/8 +Choice: 4 1/4 +Choice: 5 1/2 +Choice: 6 1 +Choice: 7 2 +Choice: 8 4 +Choice: 9 8 +Choice: 10 15 +Choice: 11 30 + +13:36 < HuHa> -Angle Level(0xd067):(read only) (type=0x5) 23591825 +13:36 < HuHa> +Angle Level(0xd067):(read only) (type=0x5) 21273878 +13:36 < HuHa> das erste ist gerade (liegt auf dem Tisch) +13:37 < HuHa> -Angle Level(0xd067):(read only) (type=0x5) 23591825 +13:37 < HuHa> +Angle Level(0xd067):(read only) (type=0x5) 17693401 +13:37 < HuHa> von 0° auf rechts 90° +13:39 < HuHa> links 90°: +Angle Level(0xd067):(read only) (type=0x5) 6095704 +13:39 < HuHa> jetzt musst du nur noch die Einheit entschlüsseln ;-) +13:42 < HuHa> _Marcus_: wenn die Kamera nach oben schaut, ist es -1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7000.txt new file mode 100644 index 00000000..0de8df27 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7000.txt @@ -0,0 +1,4330 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D7000 + Version: V1.00 + Serial Number: xxxxxxx +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, DPOF, Script, Apple Quicktime +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Script/3002: PTP error a802 on query + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate de97/ScanDepth de99/AudioWAVECodec de9b/VideoFourCCCodec de9c/VideoBitRate + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 7510065152 (7162 MB) + Free Space (Images): 1527 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 60% (60) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4928x3264', + '3696x2448', + '2464x1632' + ] value: '4928x3264' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: JPEG Norm (1) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/3.5 (350) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 10500, step 1] value: 18 mm (1800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-A (32786) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784] value: Default (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.0033 sec (333) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32790,32792,32848,32849] value: Auto (32784) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: ISO 25600 (25600) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20101228T015604' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790,32791] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788] value: Closest Subject (32785) +Artist(0x501e):(read only) (type=0xffff) '(null)' +Copyright Info(0x501f):(read only) (type=0xffff) '(null)' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +White Balance Preset Name 0(0xd020):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 0(0xd025):(read only) (type=0x6) 34013540 +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 34013540 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 34013540 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 34013540 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 34013540 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 14 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 2 +JPEG Compression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd034:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd035:(readwrite) (type=0x2) Enumeration [0,1,2] value: 0 +Property 0xd036:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Vertical AF On(0xd050):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 1 +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Exposure Compensation(0xd058):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF(0xd05d):(readwrite) (type=0x1) Range [0 - 3, step 1] value: 0 +Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Focus Lock(0xd05f):(readwrite) (type=0x2) Range [2 - 8, step 1] value: AF Lock Hold (3) +Property 0xd061:(readwrite) (type=0x2) Enumeration [0,2,3] value: 0 +Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 6 seconds (1) +Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 10 seconds (2) +Img Conf Time(0xd065):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Angle Level(0xd067):(read only) (type=0x5) 23528921 +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 2 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 100, step 1] value: 100 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +LCD Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +On screen tips(0xd071):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Artist Name(0xd072):(readwrite) (type=0xffff) '(null)' +Copyright Information(0xd073):(readwrite) (type=0xffff) '(null)' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 2 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Modeling Flash(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Center Button Shooting Mode(0xd080):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Highlight active focus point (1) +Assign Func. Button(0xd084):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 2 +Customise Command Dials(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Reverse Command Dial(0xd086):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Menus and Playback(0xd088):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Buttons and Dials(0xd089):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd08f:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 7 +Property 0xd0a2:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd0a3:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 8 +Property 0xd0a6:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0b3:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 158 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 55 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 105 mm (10500) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560) +Finder ISO Display(0xd0f0):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Show frame count (2) +Auto Off Photo(0xd0f2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Auto Off Menu(0xd0f3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Auto Off Info(0xd0f4):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Self Timer Shot Number(0xd0f5):(readwrite) (type=0x2) Range [1 - 9, step 1] value: 1 +Property 0xd0f8:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0f9:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 0 +Property 0xd0fc:(read only) (type=0x2) Range [0 - 24, step 1] value: 13 +Property 0xd0fd:(read only) (type=0x2) Range [0 - 24, step 1] value: 13 +Property 0xd0fe:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 65566 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 99, step 1] value: 7 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [1 - 39, step 1] value: Top (1) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 1, step 1] value: USB 2.0 (1) +CCD Serial Number(0xd10d):(read only) (type=0xffff) ' ' +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +Illum Setting(0xd114):(readwrite) (type=0x2) Range [0 - 1, step 1] value: LCD Backlight (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd141:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Slot 2 Save Mode(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 5 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 0(0xd151):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 1(0xd152):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 2(0xd153):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 3(0xd154):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 4(0xd155):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +AF Beep Mode(0xd160):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-A (2) +Property 0xd162:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 26, step 1] value: 21 +AF Area Illumination(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +Flash Sign(0xd169):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd16a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Remote Timeout(0xd16b):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 min (0) +Viewfinder Grid Display(0xd16c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Flash Mode Manual Power(0xd16d):(readwrite) (type=0x2) Range [0 - 21, step 1] value: Full (0) +Warning Display(0xd181):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +Battery Cell Kind(0xd182):(readwrite) (type=0x2) Range [0 - 2, step 1] value: LR6 (AA alkaline) (0) +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 5 +Info Disp Setting(0xd187):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Preview Button(0xd189):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 1 +Indicator Display(0xd18d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +Cell Kind Priority(0xd18e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 8, step 1] value: Yes (1) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 99, step 1] value: 8 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Flash MRepeat Value(0xd1d0):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Flash MRepeat Count(0xd1d1):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 8 +Flash MRepeat Interval(0xd1d2):(readwrite) (type=0x2) Range [0 - 13, step 1] value: 9 +Flash Command Channel(0xd1d3):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Flash Command Self Mode(0xd1d4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Flash Command Self Compensation(0xd1d5):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Flash Command Self Value(0xd1d6):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Flash Command A Mode(0xd1d7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Flash Command A Compensation(0xd1d8):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Flash Command A Value(0xd1d9):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Flash Command B Mode(0xd1da):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Flash Command B Compensation(0xd1db):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Flash Command B Value(0xd1dc):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 1527 +Property 0xd1f2:(read only) (type=0x2) Range [0 - 3, step 1] value: 1 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1293497771 +Printable: Tue 28 Dec 2010 01:56:11 AM CET +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/meterofftime +Label: Meter Off Time +Type: RADIO +Current: 6 seconds +Choice: 0 4 seconds +Choice: 1 6 seconds +Choice: 2 8 seconds +Choice: 3 16 seconds +Choice: 4 30 seconds +Choice: 5 1 minute +Choice: 6 5 minutes +Choice: 7 10 minutes +Choice: 8 30 minutes +Choice: 9 Unknown value 0009 +/main/settings/reversedial +Label: Reverse Command Dial +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 60% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/flashopen +Label: Flash Open +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/flashcharged +Label: Flash Charged +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 18 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 105 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 4 mm +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 6 mm +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 1 +Bottom: 0 +Top: 8 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/fvlocked +Label: FV Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Normal +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF+Basic +Choice: 4 NEF+Normal +Choice: 5 NEF+Fine +Choice: 6 TIFF (RGB) +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 4928x3264 +Choice: 0 4928x3264 +Choice: 1 3696x2448 +Choice: 2 2464x1632 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 25600 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 25600 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/imgsettings/autoisopadv +Label: Auto ISO PADV Time +Type: RADIO +Current: Unknown value 0015 +Choice: 0 1/125 +Choice: 1 1/60 +Choice: 2 1/30 +Choice: 3 1/15 +Choice: 4 1/8 +Choice: 5 1/4 +Choice: 6 1/2 +Choice: 7 1 +Choice: 8 2 +Choice: 9 4 +Choice: 10 8 +Choice: 11 15 +Choice: 12 30 +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +Choice: 22 Unknown value 0016 +Choice: 23 Unknown value 0017 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/assistlight +Label: Assist Light +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/capturesettings/exposurecompensation2 +Label: Exposure Compensation +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Default +Choice: 0 Flash off +Choice: 1 Red-eye automatic +Choice: 2 Default +/main/capturesettings/nikonflashmode +Label: Nikon Flash Mode +Type: RADIO +Current: iTTL +Choice: 0 iTTL +Choice: 1 Manual +Choice: 2 Commander +Choice: 3 Repeating +/main/capturesettings/flashcommandchannel +Label: Flash Command Channel +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/capturesettings/flashcommandselfmode +Label: Flash Command Self Mode +Type: RADIO +Current: TTL +Choice: 0 TTL +Choice: 1 Manual +Choice: 2 Off +/main/capturesettings/flashcommandselfcompensation +Label: Flash Command Self Compensation +Type: RADIO +Current: 0.0 +Choice: 0 -3.0 +Choice: 1 -2.7 +Choice: 2 -2.3 +Choice: 3 -2.0 +Choice: 4 -1.7 +Choice: 5 -1.3 +Choice: 6 -1.0 +Choice: 7 -0.7 +Choice: 8 -0.3 +Choice: 9 0.0 +Choice: 10 0.3 +Choice: 11 0.7 +Choice: 12 1.0 +Choice: 13 1.3 +Choice: 14 1.7 +Choice: 15 2.0 +Choice: 16 2.3 +Choice: 17 2.7 +Choice: 18 3.0 +/main/capturesettings/flashcommandselfvalue +Label: Flash Command Self Value +Type: RADIO +Current: Full +Choice: 0 Full +Choice: 1 1/1.3 +Choice: 2 1/1.7 +Choice: 3 1/2 +Choice: 4 1/2.5 +Choice: 5 1/3.2 +Choice: 6 1/4 +Choice: 7 1/5 +Choice: 8 1/6.4 +Choice: 9 1/8 +Choice: 10 1/10 +Choice: 11 1/13 +Choice: 12 1/16 +Choice: 13 1/20 +Choice: 14 1/25 +Choice: 15 1/32 +Choice: 16 1/40 +Choice: 17 1/50 +Choice: 18 1/64 +Choice: 19 1/80 +Choice: 20 1/100 +Choice: 21 1/128 +/main/capturesettings/flashcommandamode +Label: Flash Command A Mode +Type: RADIO +Current: TTL +Choice: 0 TTL +Choice: 1 Auto Aperture +Choice: 2 Manual +Choice: 3 Off +/main/capturesettings/flashcommandacompensation +Label: Flash Command A Compensation +Type: RADIO +Current: 0.0 +Choice: 0 -3.0 +Choice: 1 -2.7 +Choice: 2 -2.3 +Choice: 3 -2.0 +Choice: 4 -1.7 +Choice: 5 -1.3 +Choice: 6 -1.0 +Choice: 7 -0.7 +Choice: 8 -0.3 +Choice: 9 0.0 +Choice: 10 0.3 +Choice: 11 0.7 +Choice: 12 1.0 +Choice: 13 1.3 +Choice: 14 1.7 +Choice: 15 2.0 +Choice: 16 2.3 +Choice: 17 2.7 +Choice: 18 3.0 +/main/capturesettings/flashcommandavalue +Label: Flash Command A Value +Type: RADIO +Current: Full +Choice: 0 Full +Choice: 1 1/1.3 +Choice: 2 1/1.7 +Choice: 3 1/2 +Choice: 4 1/2.5 +Choice: 5 1/3.2 +Choice: 6 1/4 +Choice: 7 1/5 +Choice: 8 1/6.4 +Choice: 9 1/8 +Choice: 10 1/10 +Choice: 11 1/13 +Choice: 12 1/16 +Choice: 13 1/20 +Choice: 14 1/25 +Choice: 15 1/32 +Choice: 16 1/40 +Choice: 17 1/50 +Choice: 18 1/64 +Choice: 19 1/80 +Choice: 20 1/100 +Choice: 21 1/128 +/main/capturesettings/flashcommandbmode +Label: Flash Command B Mode +Type: RADIO +Current: TTL +Choice: 0 TTL +Choice: 1 Auto Aperture +Choice: 2 Manual +Choice: 3 Off +/main/capturesettings/flashcommandbcompensation +Label: Flash Command B Compensation +Type: RADIO +Current: 0.0 +Choice: 0 -3.0 +Choice: 1 -2.7 +Choice: 2 -2.3 +Choice: 3 -2.0 +Choice: 4 -1.7 +Choice: 5 -1.3 +Choice: 6 -1.0 +Choice: 7 -0.7 +Choice: 8 -0.3 +Choice: 9 0.0 +Choice: 10 0.3 +Choice: 11 0.7 +Choice: 12 1.0 +Choice: 13 1.3 +Choice: 14 1.7 +Choice: 15 2.0 +Choice: 16 2.3 +Choice: 17 2.7 +Choice: 18 3.0 +/main/capturesettings/flashcommandbvalue +Label: Flash Command B Value +Type: RADIO +Current: Full +Choice: 0 Full +Choice: 1 1/1.3 +Choice: 2 1/1.7 +Choice: 3 1/2 +Choice: 4 1/2.5 +Choice: 5 1/3.2 +Choice: 6 1/4 +Choice: 7 1/5 +Choice: 8 1/6.4 +Choice: 9 1/8 +Choice: 10 1/10 +Choice: 11 1/13 +Choice: 12 1/16 +Choice: 13 1/20 +Choice: 14 1/25 +Choice: 15 1/32 +Choice: 16 1/40 +Choice: 17 1/50 +Choice: 18 1/64 +Choice: 19 1/80 +Choice: 20 1/100 +Choice: 21 1/128 +/main/capturesettings/af-area-illumination +Label: AF Area Illumination +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Off +Choice: 2 On +/main/capturesettings/afbeep +Label: AF Beep Mode +Type: TOGGLE +Current: 1 +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/3.5 +Choice: 0 f/3.5 +Choice: 1 f/4 +Choice: 2 f/4.5 +Choice: 3 f/5 +Choice: 4 f/5.6 +Choice: 5 f/6.3 +Choice: 6 f/7.1 +Choice: 7 f/8 +Choice: 8 f/9 +Choice: 9 f/10 +Choice: 10 f/11 +Choice: 11 f/13 +Choice: 12 f/14 +Choice: 13 f/16 +Choice: 14 f/18 +Choice: 15 f/20 +Choice: 16 f/22 +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 18 +Bottom: 18 +Top: 105 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-A +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: AF-A +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: Auto +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Night Landscape +Choice: 6 Automatic (No Flash) +Choice: 7 Unknown value 8050 +Choice: 8 Unknown value 8051 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Mirror Up +Choice: 5 Quiet Release +Choice: 6 Unknown value 8017 +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Closest Subject +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +Choice: 4 Unknown value 8013 +Choice: 5 Unknown value 8014 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0400s +Choice: 0 0.0001s +Choice: 1 0.0002s +Choice: 2 0.0003s +Choice: 3 0.0004s +Choice: 4 0.0005s +Choice: 5 0.0006s +Choice: 6 0.0008s +Choice: 7 0.0010s +Choice: 8 0.0012s +Choice: 9 0.0015s +Choice: 10 0.0020s +Choice: 11 0.0025s +Choice: 12 0.0031s +Choice: 13 0.0040s +Choice: 14 0.0050s +Choice: 15 0.0062s +Choice: 16 0.0080s +Choice: 17 0.0100s +Choice: 18 0.0125s +Choice: 19 0.0166s +Choice: 20 0.0200s +Choice: 21 0.0250s +Choice: 22 0.0333s +Choice: 23 0.0400s +Choice: 24 0.0500s +Choice: 25 0.0666s +Choice: 26 0.0769s +Choice: 27 0.1000s +Choice: 28 0.1250s +Choice: 29 0.1666s +Choice: 30 0.2000s +Choice: 31 0.2500s +Choice: 32 0.3333s +Choice: 33 0.4000s +Choice: 34 0.5000s +Choice: 35 0.6250s +Choice: 36 0.7692s +Choice: 37 1.0000s +Choice: 38 1.3000s +Choice: 39 1.6000s +Choice: 40 2.0000s +Choice: 41 2.5000s +Choice: 42 3.0000s +Choice: 43 4.0000s +Choice: 44 5.0000s +Choice: 45 6.0000s +Choice: 46 8.0000s +Choice: 47 10.0000s +Choice: 48 13.0000s +Choice: 49 15.0000s +Choice: 50 20.0000s +Choice: 51 25.0000s +Choice: 52 30.0000s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/25 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +Choice: 22 1/50 +Choice: 23 1/40 +Choice: 24 1/30 +Choice: 25 1/25 +Choice: 26 1/20 +Choice: 27 1/15 +Choice: 28 1/13 +Choice: 29 1/10 +Choice: 30 1/8 +Choice: 31 1/6 +Choice: 32 1/5 +Choice: 33 1/4 +Choice: 34 1/3 +Choice: 35 10/25 +Choice: 36 1/2 +Choice: 37 10/16 +Choice: 38 10/13 +Choice: 39 1 +Choice: 40 13/10 +Choice: 41 16/10 +Choice: 42 2 +Choice: 43 25/10 +Choice: 44 3 +Choice: 45 4 +Choice: 46 5 +Choice: 47 6 +Choice: 48 8 +Choice: 49 10 +Choice: 50 13 +Choice: 51 15 +Choice: 52 20 +Choice: 53 25 +Choice: 54 30 +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurelock +Label: Exposure Lock +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/aelaflmode +Label: AE-L/AF-L Mode +Type: RADIO +Current: AF Lock Hold +Choice: 0 AF Lock Only +Choice: 1 AF Lock Hold +Choice: 2 AF On +Choice: 3 Flash Level Lock +Choice: 4 Unknown value 0006 +Choice: 5 Unknown value 0007 +Choice: 6 Unknown value 0008 +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/flashsign +Label: Flash Sign +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/viewfindergrid +Label: Viewfinder Grid +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/flashmodemanualpower +Label: Flash Mode Manual Power +Type: RADIO +Current: Full +Choice: 0 Full +Choice: 1 1/2 +Choice: 2 1/4 +Choice: 3 1/8 +Choice: 4 1/16 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Top +Choice: 0 Top +Choice: 1 Bottom +Choice: 2 Left +Choice: 3 Right +Choice: 4 Unknown value 0005 +Choice: 5 Unknown value 0006 +Choice: 6 Unknown value 0007 +Choice: 7 Unknown value 0008 +Choice: 8 Unknown value 0009 +Choice: 9 Unknown value 000a +Choice: 10 Unknown value 000b +Choice: 11 Unknown value 000c +Choice: 12 Unknown value 000d +Choice: 13 Unknown value 000e +Choice: 14 Unknown value 000f +Choice: 15 Unknown value 0010 +Choice: 16 Unknown value 0011 +Choice: 17 Unknown value 0012 +Choice: 18 Unknown value 0013 +Choice: 19 Unknown value 0014 +Choice: 20 Unknown value 0015 +Choice: 21 Unknown value 0016 +Choice: 22 Unknown value 0017 +Choice: 23 Unknown value 0018 +Choice: 24 Unknown value 0019 +Choice: 25 Unknown value 001a +Choice: 26 Unknown value 001b +Choice: 27 Unknown value 001c +Choice: 28 Unknown value 001d +Choice: 29 Unknown value 001e +Choice: 30 Unknown value 001f +Choice: 31 Unknown value 0020 +Choice: 32 Unknown value 0021 +Choice: 33 Unknown value 0022 +Choice: 34 Unknown value 0023 +Choice: 35 Unknown value 0024 +Choice: 36 Unknown value 0025 +Choice: 37 Unknown value 0026 +Choice: 38 Unknown value 0027 +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0.333333 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE & Flash +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/bracketorder +Label: Bracket Order +Type: RADIO +Current: MTR > Under +Choice: 0 MTR > Under +Choice: 1 Under > MTR +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/burstinterval +Label: Burst Interval +Type: RADIO +Current: 0.001s +Choice: 0 0.001s +Choice: 1 0.002s +Choice: 2 0.003s +Choice: 3 0.004s +Choice: 4 0.005s +Choice: 5 0.006s +Choice: 6 0.007s +Choice: 7 0.008s +Choice: 8 0.009s +Choice: 9 0.010s +Choice: 10 0.011s +Choice: 11 0.012s +Choice: 12 0.013s +Choice: 13 0.014s +Choice: 14 0.015s +Choice: 15 0.016s +Choice: 16 0.017s +Choice: 17 0.018s +Choice: 18 0.019s +Choice: 19 0.020s +Choice: 20 0.021s +Choice: 21 0.022s +Choice: 22 0.023s +Choice: 23 0.024s +Choice: 24 0.025s +Choice: 25 0.026s +Choice: 26 0.027s +Choice: 27 0.028s +Choice: 28 0.029s +Choice: 29 0.030s +Choice: 30 0.031s +Choice: 31 0.032s +Choice: 32 0.033s +Choice: 33 0.034s +Choice: 34 0.035s +Choice: 35 0.036s +Choice: 36 0.037s +Choice: 37 0.038s +Choice: 38 0.039s +Choice: 39 0.040s +Choice: 40 0.041s +Choice: 41 0.042s +Choice: 42 0.043s +Choice: 43 0.044s +Choice: 44 0.045s +Choice: 45 0.046s +Choice: 46 0.047s +Choice: 47 0.048s +Choice: 48 0.049s +Choice: 49 0.050s +Choice: 50 0.051s +Choice: 51 0.052s +Choice: 52 0.053s +Choice: 53 0.054s +Choice: 54 0.055s +Choice: 55 0.056s +Choice: 56 0.057s +Choice: 57 0.058s +Choice: 58 0.059s +Choice: 59 0.060s +Choice: 60 0.061s +Choice: 61 0.062s +Choice: 62 0.063s +Choice: 63 0.064s +Choice: 64 0.065s +Choice: 65 0.066s +Choice: 66 0.067s +Choice: 67 0.068s +Choice: 68 0.069s +Choice: 69 0.070s +Choice: 70 0.071s +Choice: 71 0.072s +Choice: 72 0.073s +Choice: 73 0.074s +Choice: 74 0.075s +Choice: 75 0.076s +Choice: 76 0.077s +Choice: 77 0.078s +Choice: 78 0.079s +Choice: 79 0.080s +Choice: 80 0.081s +Choice: 81 0.082s +Choice: 82 0.083s +Choice: 83 0.084s +Choice: 84 0.085s +Choice: 85 0.086s +Choice: 86 0.087s +Choice: 87 0.088s +Choice: 88 0.089s +Choice: 89 0.090s +Choice: 90 0.091s +Choice: 91 0.092s +Choice: 92 0.093s +Choice: 93 0.094s +Choice: 94 0.095s +Choice: 95 0.096s +Choice: 96 0.097s +Choice: 97 0.098s +Choice: 98 0.099s +Choice: 99 0.100s +/main/capturesettings/autowhitebias +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/tungstenwhitebias +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flourescentwhitebias +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/daylightwhitebias +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flashwhitebias +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/cloudywhitebias +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/shadewhitebias +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/capturesettings/whitebiaspreset0 +Label: White Balance Bias Preset 0 +Type: TEXT +Current: 34013540 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 34013540 +/main/capturesettings/whitebiaspreset2 +Label: White Balance Bias Preset 2 +Type: TEXT +Current: 34013540 +/main/capturesettings/whitebiaspreset3 +Label: White Balance Bias Preset 3 +Type: TEXT +Current: 34013540 +/main/capturesettings/whitebiaspreset4 +Label: White Balance Bias Preset 4 +Type: TEXT +Current: 34013540 +/main/capturesettings/selftimerdelay +Label: Selftimer Delay +Type: RADIO +Current: 10 seconds +Choice: 0 2 seconds +Choice: 1 5 seconds +Choice: 2 10 seconds +Choice: 3 20 seconds +/main/capturesettings/centerweightsize +Label: Center Weight Area +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +Choice: 2 10 mm +Choice: 3 12 mm +Choice: 4 Average +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +Choice: 1 1/30 +Choice: 2 1/15 +Choice: 3 1/8 +Choice: 4 1/4 +Choice: 5 1/2 +Choice: 6 1 +Choice: 7 2 +Choice: 8 4 +Choice: 9 8 +Choice: 10 15 +Choice: 11 30 +/main/capturesettings/remotetimeout +Label: Remote Timeout +Type: RADIO +Current: 1 minute +Choice: 0 1 minute +Choice: 1 5 minutes +Choice: 2 10 minutes +Choice: 3 15 minutes +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 60 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 4928x3264 +Choice: 0 4928x3264 +Choice: 1 3696x2448 +Choice: 2 2464x1632 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 350 +Choice: 0 350 +Choice: 1 400 +Choice: 2 450 +Choice: 3 500 +Choice: 4 560 +Choice: 5 630 +Choice: 6 710 +Choice: 7 800 +Choice: 8 900 +Choice: 9 1000 +Choice: 10 1100 +Choice: 11 1300 +Choice: 12 1400 +Choice: 13 1600 +Choice: 14 1800 +Choice: 15 2000 +Choice: 16 2200 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 1800 +Bottom: 1800 +Top: 10500 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32786 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32784 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 400 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 8 +Choice: 7 10 +Choice: 8 12 +Choice: 9 15 +Choice: 10 20 +Choice: 11 25 +Choice: 12 31 +Choice: 13 40 +Choice: 14 50 +Choice: 15 62 +Choice: 16 80 +Choice: 17 100 +Choice: 18 125 +Choice: 19 166 +Choice: 20 200 +Choice: 21 250 +Choice: 22 333 +Choice: 23 400 +Choice: 24 500 +Choice: 25 666 +Choice: 26 769 +Choice: 27 1000 +Choice: 28 1250 +Choice: 29 1666 +Choice: 30 2000 +Choice: 31 2500 +Choice: 32 3333 +Choice: 33 4000 +Choice: 34 5000 +Choice: 35 6250 +Choice: 36 7692 +Choice: 37 10000 +Choice: 38 13000 +Choice: 39 16000 +Choice: 40 20000 +Choice: 41 25000 +Choice: 42 30000 +Choice: 43 40000 +Choice: 44 50000 +Choice: 45 60000 +Choice: 46 80000 +Choice: 47 100000 +Choice: 48 130000 +Choice: 49 150000 +Choice: 50 200000 +Choice: 51 250000 +Choice: 52 300000 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32790 +Choice: 6 32792 +Choice: 7 32848 +Choice: 8 32849 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 25600 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20101228T015934 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32790 +Choice: 6 32791 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32785 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +/main/other/501e +Label: Artist +Type: TEXT +Current: (null) +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: (null) +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d016 +Label: Raw Compression +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01e +Label: White Balance Colour Temperature +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d020 +Label: White Balance Preset Name 0 +Type: TEXT +Current: +/main/other/d021 +Label: White Balance Preset Name 1 +Type: TEXT +Current: +/main/other/d022 +Label: White Balance Preset Name 2 +Type: TEXT +Current: +/main/other/d023 +Label: White Balance Preset Name 3 +Type: TEXT +Current: +/main/other/d024 +Label: White Balance Preset Name 4 +Type: TEXT +Current: +/main/other/d025 +Label: White Balance Preset Value 0 +Type: TEXT +Current: 34013540 +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 34013540 +/main/other/d027 +Label: White Balance Preset Value 2 +Type: TEXT +Current: 34013540 +/main/other/d028 +Label: White Balance Preset Value 3 +Type: TEXT +Current: 34013540 +/main/other/d029 +Label: White Balance Preset Value 4 +Type: TEXT +Current: 34013540 +/main/other/d02e +Label: Lens Focal Length (Non CPU) +Type: MENU +Current: 14 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d02f +Label: Lens Maximum Aperture (Non CPU) +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +/main/other/d031 +Label: JPEG Compression Policy +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d034 +Label: PTP Property 0xd034 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d035 +Label: PTP Property 0xd035 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d036 +Label: PTP Property 0xd036 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d04f +Label: Focus Area Wrap +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d050 +Label: Vertical AF On +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d051 +Label: AF Lock On +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d055 +Label: Exposure ISO Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d058 +Label: Exposure Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d059 +Label: Centre Weight Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d05a +Label: Exposure Base Matrix +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05b +Label: Exposure Base Center +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05c +Label: Exposure Base Spot +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05d +Label: Live View AF +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d05e +Label: Exposure Lock +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d05f +Label: Focus Lock +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +Choice: 6 8 +/main/other/d061 +Label: PTP Property 0xd061 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +/main/other/d062 +Label: Auto Meter Off Time +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +/main/other/d063 +Label: Self Timer Delay +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d065 +Label: Img Conf Time +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d067 +Label: Angle Level +Type: TEXT +Current: 23517183 +/main/other/d068 +Label: Shooting Speed +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d069 +Label: Maximum Shots +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d06f +Label: LCD Illumination +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d071 +Label: On screen tips +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: (null) +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: (null) +/main/other/d074 +Label: Flash Sync. Speed +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d075 +Label: Flash Shutter Speed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d077 +Label: Modeling Flash +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d07a +Label: Bracket Order +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d080 +Label: Center Button Shooting Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d084 +Label: Assign Func. Button +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +/main/other/d085 +Label: Customise Command Dials +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d086 +Label: Reverse Command Dial +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d087 +Label: Aperture Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d088 +Label: Menus and Playback +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d089 +Label: Buttons and Dials +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: PTP Property 0xd08f +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d093 +Label: Manual Set Lens Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0a2 +Label: PTP Property 0xd0a2 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0a3 +Label: PTP Property 0xd0a3 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 8 +/main/other/d0a6 +Label: PTP Property 0xd0a6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0b3 +Label: PTP Property 0xd0b3 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 158 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 55 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 1800 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 10500 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 350 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 560 +/main/other/d0f0 +Label: Finder ISO Display +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0f2 +Label: Auto Off Photo +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0f3 +Label: Auto Off Menu +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0f4 +Label: Auto Off Info +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0f5 +Label: Self Timer Shot Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +/main/other/d0f8 +Label: PTP Property 0xd0f8 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0f9 +Label: PTP Property 0xd0f9 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d0fc +Label: PTP Property 0xd0fc +Type: MENU +Current: 13 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +/main/other/d0fd +Label: PTP Property 0xd0fd +Type: MENU +Current: 13 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +/main/other/d0fe +Label: PTP Property 0xd0fe +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65566 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +Choice: 25 65561 +Choice: 26 65556 +Choice: 27 65551 +Choice: 28 65549 +Choice: 29 65546 +Choice: 30 65544 +Choice: 31 65542 +Choice: 32 65541 +Choice: 33 65540 +Choice: 34 65539 +Choice: 35 655385 +Choice: 36 65538 +Choice: 37 655376 +Choice: 38 655373 +Choice: 39 65537 +Choice: 40 851978 +Choice: 41 1048586 +Choice: 42 131073 +Choice: 43 1638410 +Choice: 44 196609 +Choice: 45 262145 +Choice: 46 327681 +Choice: 47 393217 +Choice: 48 524289 +Choice: 49 655361 +Choice: 50 851969 +Choice: 51 983041 +Choice: 52 1310721 +Choice: 53 1638401 +Choice: 54 1966081 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d103 +Label: Maximum Shots +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d106 +Label: FV Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10c +Label: USB Speed +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d10d +Label: CCD Serial Number +Type: TEXT +Current: +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d114 +Label: Illum Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d126 +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -18 +Top: 6 +Step: 2 +/main/other/d141 +Label: PTP Property 0xd141 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d148 +Label: Slot 2 Save Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: ISO Auto Time +Type: MENU +Current: 5 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d150 +Label: Tune Colour Temperature +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d151 +Label: Tune Preset 0 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d152 +Label: Tune Preset 1 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d153 +Label: Tune Preset 2 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d154 +Label: Tune Preset 3 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d155 +Label: Tune Preset 4 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d160 +Label: AF Beep Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d162 +Label: PTP Property 0xd162 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d163 +Label: AF Assist Lamp +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 21 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +/main/other/d166 +Label: AF Area Illumination +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d167 +Label: Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d169 +Label: Flash Sign +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d16a +Label: PTP Property 0xd16a +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d16b +Label: Remote Timeout +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d16c +Label: Viewfinder Grid Display +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d16d +Label: Flash Mode Manual Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +/main/other/d181 +Label: Warning Display +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d182 +Label: Battery Cell Kind +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 5 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d187 +Label: Info Disp Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d189 +Label: Preview Button +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +/main/other/d18d +Label: Indicator Display +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d18e +Label: Cell Kind Priority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: PTP Property 0xd1b2 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: MENU +Current: 8 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +/main/other/d1c0 +Label: Flash Open +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1c1 +Label: Flash Charged +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1d0 +Label: Flash MRepeat Value +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d1d1 +Label: Flash MRepeat Count +Type: MENU +Current: 8 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +/main/other/d1d2 +Label: Flash MRepeat Interval +Type: MENU +Current: 9 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +/main/other/d1d3 +Label: Flash Command Channel +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1d4 +Label: Flash Command Self Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d1d5 +Label: Flash Command Self Compensation +Type: MENU +Current: 9 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d1d6 +Label: Flash Command Self Value +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +/main/other/d1d7 +Label: Flash Command A Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1d8 +Label: Flash Command A Compensation +Type: MENU +Current: 9 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d1d9 +Label: Flash Command A Value +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +/main/other/d1da +Label: Flash Command B Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1db +Label: Flash Command B Compensation +Type: MENU +Current: 9 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d1dc +Label: Flash Command B Value +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 1527 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d1f2 +Label: PTP Property 0xd1f2 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 101 +Choice: 7 102 +Choice: 8 103 +Choice: 9 104 +Choice: 10 201 +Choice: 11 202 +Choice: 12 203 +Choice: 13 204 +Choice: 14 205 +Choice: 15 206 +Choice: 16 207 +Choice: 17 208 +Choice: 18 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 + +Device info: +Manufacturer: Nikon Corporation + Model: D7000 + device version: V1.03 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +0x1001: #define PTP_OC_GetDeviceInfo 0x1001 +0x1002: #define PTP_OC_OpenSession 0x1002 +0x1003: #define PTP_OC_CloseSession 0x1003 +0x1004: #define PTP_OC_GetStorageIDs 0x1004 +0x1005: #define PTP_OC_GetStorageInfo 0x1005 +0x1006: #define PTP_OC_GetNumObjects 0x1006 +0x1007: #define PTP_OC_GetObjectHandles 0x1007 +0x1008: #define PTP_OC_GetObjectInfo 0x1008 +0x1009: #define PTP_OC_GetObject 0x1009 +0x100a: #define PTP_OC_GetThumb 0x100A +0x100b: #define PTP_OC_DeleteObject 0x100B +0x100c: #define PTP_OC_SendObjectInfo 0x100C +0x100d: #define PTP_OC_SendObject 0x100D +0x100e: #define PTP_OC_InitiateCapture 0x100E +0x100f: #define PTP_OC_FormatStore 0x100F +0x1014: #define PTP_OC_GetDevicePropDesc 0x1014 +0x1015: #define PTP_OC_GetDevicePropValue 0x1015 +0x1016: #define PTP_OC_SetDevicePropValue 0x1016 +0x101b: #define PTP_OC_GetPartialObject 0x101B +0x90c0: #define PTP_OC_NIKON_Capture 0x90C0 /* 1 param, no data */ +0x90c1: #define PTP_OC_NIKON_AfDrive 0x90C1 /* no params, no data */ +0x90c2: #define PTP_OC_NIKON_SetControlMode 0x90C2 /* 1 param, no data */ +0x90c3: #define PTP_OC_NIKON_DelImageSDRAM 0x90C3 /* no params, no data */ +0x90c4: #define PTP_OC_NIKON_GetLargeThumb 0x90C4 +0x90c7: #define PTP_OC_NIKON_CheckEvent 0x90C7 /* no params, data in */ +0x90c8: #define PTP_OC_NIKON_DeviceReady 0x90C8 /* no params, no data */ +0x90c9: #define PTP_OC_NIKON_SetPreWBData 0x90C9 /* 3 params, data out */ +0x90ca: #define PTP_OC_NIKON_GetVendorPropCodes 0x90CA /* 0 params, data in */ +0x90cb: #define PTP_OC_NIKON_AfCaptureSDRAM 0x90CB /* no params, no data */ +0x90cc: #define PTP_OC_NIKON_GetPictCtrlData 0x90CC +0x90cd: #define PTP_OC_NIKON_SetPictCtrlData 0x90CD +0x90ce: #define PTP_OC_NIKON_DelCstPicCtrl 0x90CE +0x90cf: #define PTP_OC_NIKON_GetPicCtrlCapability 0x90CF +0x9201: #define PTP_OC_NIKON_StartLiveView 0x9201 +0x9202: #define PTP_OC_NIKON_EndLiveView 0x9202 +0x9203: #define PTP_OC_NIKON_GetLiveViewImg 0x9203 +0x9204: #define PTP_OC_NIKON_MfDrive 0x9204 +0x9205: #define PTP_OC_NIKON_ChangeAfArea 0x9205 +0x9206: #define PTP_OC_NIKON_AfDriveCancel 0x9206 +0x9207: ? +0x9209: ? +0x920a: ? +0x920b: ? +0x9801: #define PTP_OC_MTP_GetObjectPropsSupported 0x9801 +0x9802: #define PTP_OC_MTP_GetObjectPropDesc 0x9802 +0x9803: #define PTP_OC_MTP_GetObjectPropValue 0x9803 +0x9805: #define PTP_OC_MTP_GetObjPropList 0x9805 + + +0x4001: #define PTP_EC_CancelTransaction 0x4001 +0x4002: #define PTP_EC_ObjectAdded 0x4002 +0x4003: #define PTP_EC_ObjectRemoved 0x4003 +0x4004: #define PTP_EC_StoreAdded 0x4004 +0x4005: #define PTP_EC_StoreRemoved 0x4005 +0x4006: #define PTP_EC_DevicePropChanged 0x4006 +0x4007: #define PTP_EC_ObjectInfoChanged 0x4007 +0x4009: #define PTP_EC_RequestObjectTransfer 0x4009 +0x400a: #define PTP_EC_StoreFull 0x400A +0x400c: #define PTP_EC_StorageInfoChanged 0x400C +0x400d: #define PTP_EC_CaptureComplete 0x400D +0x4008: #define PTP_EC_DeviceInfoChanged 0x4008 +0xc101: #define PTP_EC_Nikon_ObjectAddedInSDRAM 0xC101 +0xc102: #define PTP_EC_Nikon_CaptureCompleteRecInSdram 0xC102 +0xc104: #define PTP_EC_Nikon_PreviewImageAdded 0xC104 + +0x5001: #define PTP_DPC_BatteryLevel 0x5001 +0x5003: #define PTP_DPC_ImageSize 0x5003 +0x5004: #define PTP_DPC_CompressionSetting 0x5004 +0x5005: #define PTP_DPC_WhiteBalance 0x5005 +0x5007: #define PTP_DPC_FNumber 0x5007 +0x5008: #define PTP_DPC_FocalLength 0x5008 +0x500a: #define PTP_DPC_FocusMode 0x500A +0x500b: #define PTP_DPC_ExposureMeteringMode 0x500B +0x500c: #define PTP_DPC_FlashMode 0x500C +0x500d: #define PTP_DPC_ExposureTime 0x500D +0x500e: #define PTP_DPC_ExposureProgramMode 0x500E +0x500f: #define PTP_DPC_ExposureIndex 0x500F +0x5010: #define PTP_DPC_ExposureBiasCompensation 0x5010 +0x5011: #define PTP_DPC_DateTime 0x5011 +0x5013: #define PTP_DPC_StillCaptureMode 0x5013 +0x5018: #define PTP_DPC_BurstNumber 0x5018 +0x501c: #define PTP_DPC_FocusMeteringMode 0x501C +0x501e: #define PTP_DPC_Artist 0x501E +0x501f: #define PTP_DPC_CopyrightInfo 0x501F +0xd303: ? +0xd406: #define PTP_DPC_MTP_SessionInitiatorInfo 0xD406 +0xd407: #define PTP_DPC_MTP_PerceivedDeviceType 0xD407 +0xd015: #define PTP_DPC_NIKON_ResetBank0 0xD015 +0xd016: #define PTP_DPC_NIKON_RawCompression 0xD016 +0xd017: #define PTP_DPC_NIKON_WhiteBalanceAutoBias 0xD017 +0xd018: #define PTP_DPC_NIKON_WhiteBalanceTungstenBias 0xD018 +0xd019: #define PTP_DPC_NIKON_WhiteBalanceFluorescentBias 0xD019 +0xd01a: #define PTP_DPC_NIKON_WhiteBalanceDaylightBias 0xD01A +0xd01b: #define PTP_DPC_NIKON_WhiteBalanceFlashBias 0xD01B +0xd01c: #define PTP_DPC_NIKON_WhiteBalanceCloudyBias 0xD01C +0xd01d: #define PTP_DPC_NIKON_WhiteBalanceShadeBias 0xD01D +0xd01e: #define PTP_DPC_NIKON_WhiteBalanceColorTemperature 0xD01E +0xd01f: #define PTP_DPC_NIKON_WhiteBalancePresetNo 0xD01F +0xd020: #define PTP_DPC_NIKON_WhiteBalancePresetName0 0xD020 +0xd021: #define PTP_DPC_NIKON_WhiteBalancePresetName1 0xD021 +0xd022: #define PTP_DPC_NIKON_WhiteBalancePresetName2 0xD022 +0xd023: #define PTP_DPC_NIKON_WhiteBalancePresetName3 0xD023 +0xd024: #define PTP_DPC_NIKON_WhiteBalancePresetName4 0xD024 +0xd025: #define PTP_DPC_NIKON_WhiteBalancePresetVal0 0xD025 +0xd026: #define PTP_DPC_NIKON_WhiteBalancePresetVal1 0xD026 +0xd027: #define PTP_DPC_NIKON_WhiteBalancePresetVal2 0xD027 +0xd028: #define PTP_DPC_NIKON_WhiteBalancePresetVal3 0xD028 +0xd029: #define PTP_DPC_NIKON_WhiteBalancePresetVal4 0xD029 +0xd02e: #define PTP_DPC_NIKON_NonCPULensDataFocalLength 0xD02E /* Set FMM Manual */ +0xd02f: #define PTP_DPC_NIKON_NonCPULensDataMaximumAperture 0xD02F /* Set F0 Manual */ +0xd031: #define PTP_DPC_NIKON_JPEG_Compression_Policy 0xD031 +0xd032: #define PTP_DPC_NIKON_ColorSpace 0xD032 +0xd034: #define PTP_DPC_NIKON_FlickerReduction 0xD034 +0xd035: #define PTP_DPC_NIKON_RemoteMode 0xD035 +0xd036: #define PTP_DPC_NIKON_VideoMode 0xD036 +0xd045: #define PTP_DPC_NIKON_ResetBank 0xD045 +0xd048: #define PTP_DPC_NIKON_A1AFCModePriority 0xD048 +0xd049: #define PTP_DPC_NIKON_A2AFSModePriority 0xD049 +0xd04f: #define PTP_DPC_NIKON_FocusAreaWrap 0xD04F /* area sel */ +0xd050: #define PTP_DPC_NIKON_VerticalAFON 0xD050 +0xd051: #define PTP_DPC_NIKON_AFLockOn 0xD051 +0xd053: #define PTP_DPC_NIKON_EnableCopyright 0xD053 +0xd054: #define PTP_DPC_NIKON_ISOAuto 0xD054 +0xd055: #define PTP_DPC_NIKON_EVISOStep 0xD055 +0xd056: #define PTP_DPC_NIKON_EVStep 0xD056 /* EV Step SS FN */ +0xd058: #define PTP_DPC_NIKON_ExposureCompensation 0xD058 +0xd059: #define PTP_DPC_NIKON_CenterWeightArea 0xD059 +0xd05a: #define PTP_DPC_NIKON_ExposureBaseMatrix 0xD05A +0xd05b: #define PTP_DPC_NIKON_ExposureBaseCenter 0xD05B +0xd05c: #define PTP_DPC_NIKON_ExposureBaseSpot 0xD05C +0xd05d: #define PTP_DPC_NIKON_LiveViewAFArea 0xD05D +0xd05e: #define PTP_DPC_NIKON_AELockMode 0xD05E +0xd05f: #define PTP_DPC_NIKON_AELAFLMode 0xD05F +0xd061: #define PTP_DPC_NIKON_LiveViewAFFocus 0xD061 +0xd062: #define PTP_DPC_NIKON_MeterOff 0xD062 +0xd063: #define PTP_DPC_NIKON_SelfTimer 0xD063 +0xd065: #define PTP_DPC_NIKON_ImgConfTime 0xD065 +0xd067: #define PTP_DPC_NIKON_AngleLevel 0xD067 +0xd068: #define PTP_DPC_NIKON_D1ShootingSpeed 0xD068 /* continous speed low */ +0xd069: #define PTP_DPC_NIKON_D2MaximumShots 0xD069 +0xd06a: #define PTP_DPC_NIKON_ExposureDelayMode 0xD06A +0xd06b: #define PTP_DPC_NIKON_LongExposureNoiseReduction 0xD06B +0xd06c: #define PTP_DPC_NIKON_FileNumberSequence 0xD06C +0xd06f: #define PTP_DPC_NIKON_D7Illumination 0xD06F +0xd070: #define PTP_DPC_NIKON_NrHighISO 0xD070 +0xd071: #define PTP_DPC_NIKON_SHSET_CH_GUID_DISP 0xD071 +0xd072: #define PTP_DPC_NIKON_ArtistName 0xD072 +0xd073: #define PTP_DPC_NIKON_CopyrightInfo 0xD073 +0xd074: #define PTP_DPC_NIKON_FlashSyncSpeed 0xD074 +0xd075: #define PTP_DPC_NIKON_FlashShutterSpeed 0xD075 /* SB Low Limit */ +0xd077: #define PTP_DPC_NIKON_E4ModelingFlash 0xD077 +0xd078: #define PTP_DPC_NIKON_BracketSet 0xD078 /* Bracket Type? */ +0xd07a: #define PTP_DPC_NIKON_BracketOrder 0xD07A +0xd080: #define PTP_DPC_NIKON_F1CenterButtonShootingMode 0xD080 +0xd084: #define PTP_DPC_NIKON_F4AssignFuncButton 0xD084 /* CMD Dial Rotate */ +0xd085: #define PTP_DPC_NIKON_F5CustomizeCommDials 0xD085 /* CMD Dial Change */ +0xd086: #define PTP_DPC_NIKON_ReverseCommandDial 0xD086 /* CMD Dial FN Set */ +0xd087: #define PTP_DPC_NIKON_ApertureSetting 0xD087 /* CMD Dial Active */ +0xd088: #define PTP_DPC_NIKON_MenusAndPlayback 0xD088 /* CMD Dial Active */ +0xd089: #define PTP_DPC_NIKON_F6ButtonsAndDials 0xD089 /* Universal Mode? */ +0xd08a: #define PTP_DPC_NIKON_NoCFCard 0xD08A /* Enable Shutter? */ +0xd08d: #define PTP_DPC_NIKON_AFAreaPoint 0xD08D +0xd08f: #define PTP_DPC_NIKON_CleanImageSensor 0xD08F +0xd090: #define PTP_DPC_NIKON_ImageCommentString 0xD090 +0xd091: #define PTP_DPC_NIKON_ImageCommentEnable 0xD091 +0xd092: #define PTP_DPC_NIKON_ImageRotation 0xD092 +0xd093: #define PTP_DPC_NIKON_ManualSetLensNo 0xD093 +0xd0a0: #define PTP_DPC_NIKON_MovScreenSize 0xD0A0 +0xd0a2: #define PTP_DPC_NIKON_MovMicrophone 0xD0A2 +0xd0a3: #define PTP_DPC_NIKON_MovFileSlot 0xD0A3 +0xd0a4: ? +0xd0a6: #define PTP_DPC_NIKON_ManualMovieSetting 0xD0A6 +0xd0b3: #define PTP_DPC_NIKON_MonitorOffDelay 0xD0B3 +0xd0c0: #define PTP_DPC_NIKON_Bracketing 0xD0C0 +0xd0c1: #define PTP_DPC_NIKON_AutoExposureBracketStep 0xD0C1 +0xd0c2: #define PTP_DPC_NIKON_AutoExposureBracketProgram 0xD0C2 +0xd0c3: #define PTP_DPC_NIKON_AutoExposureBracketCount 0xD0C3 +0xd0c4: #define PTP_DPC_NIKON_WhiteBalanceBracketStep 0xD0C4 +0xd0c5: #define PTP_DPC_NIKON_WhiteBalanceBracketProgram 0xD0C5 +0xd0c6: ? +0xd0e0: #define PTP_DPC_NIKON_LensID 0xD0E0 +0xd0e1: #define PTP_DPC_NIKON_LensSort 0xD0E1 +0xd0e2: #define PTP_DPC_NIKON_LensType 0xD0E2 +0xd0e3: #define PTP_DPC_NIKON_FocalLengthMin 0xD0E3 +0xd0e4: #define PTP_DPC_NIKON_FocalLengthMax 0xD0E4 +0xd0e5: #define PTP_DPC_NIKON_MaxApAtMinFocalLength 0xD0E5 +0xd0e6: #define PTP_DPC_NIKON_MaxApAtMaxFocalLength 0xD0E6 +0xd0f0: #define PTP_DPC_NIKON_FinderISODisp 0xD0F0 +0xd0f2: #define PTP_DPC_NIKON_AutoOffPhoto 0xD0F2 +0xd0f3: #define PTP_DPC_NIKON_AutoOffMenu 0xD0F3 +0xd0f4: #define PTP_DPC_NIKON_AutoOffInfo 0xD0F4 +0xd0f5: #define PTP_DPC_NIKON_SelfTimerShootNum 0xD0F5 +0xd0f8: #define PTP_DPC_NIKON_AutoDistortionControl 0xD0F8 +0xd0f9: #define PTP_DPC_NIKON_SceneMode 0xD0F9 +0xd0fc: ? +0xd0fd: ? +0xd0fe: ? +0xd100: #define PTP_DPC_NIKON_ExposureTime 0xD100 /* Shutter Speed */ +0xd101: #define PTP_DPC_NIKON_ACPower 0xD101 +0xd102: #define PTP_DPC_NIKON_WarningStatus 0xD102 +0xd103: #define PTP_DPC_NIKON_MaximumShots 0xD103 /* remain shots (in RAM buffer?) */ +0xd104: #define PTP_DPC_NIKON_AFLockStatus 0xD104 +0xd105: #define PTP_DPC_NIKON_AELockStatus 0xD105 +0xd106: #define PTP_DPC_NIKON_FVLockStatus 0xD106 +0xd108: #define PTP_DPC_NIKON_AutofocusArea 0xD108 +0xd109: #define PTP_DPC_NIKON_FlexibleProgram 0xD109 +0xd10b: #define PTP_DPC_NIKON_RecordingMedia 0xD10B /* Card or SDRAM */ +0xd10c: #define PTP_DPC_NIKON_USBSpeed 0xD10C +0xd10d: #define PTP_DPC_NIKON_CCDNumber 0xD10D +0xd10e: #define PTP_DPC_NIKON_CameraOrientation 0xD10E +0xd114: #define PTP_DPC_NIKON_IllumSetting 0xD114 +0xd120: #define PTP_DPC_NIKON_ExternalFlashAttached 0xD120 +0xd121: #define PTP_DPC_NIKON_ExternalFlashStatus 0xD121 +0xd122: #define PTP_DPC_NIKON_ExternalFlashSort 0xD122 +0xd124: #define PTP_DPC_NIKON_ExternalFlashCompensation 0xD124 +0xd125: #define PTP_DPC_NIKON_NewExternalFlashMode 0xD125 +0xd126: #define PTP_DPC_NIKON_FlashExposureCompensation 0xD126 +0xd141: ? +0xd148: #define PTP_DPC_NIKON_Slot2SaveMode 0xD148 +0xd149: #define PTP_DPC_NIKON_RawBitMode 0xD149 +0xd14e: #define PTP_DPC_NIKON_ISOAutoTime 0xD14E +0xd14f: #define PTP_DPC_NIKON_FlourescentType 0xD14F +0xd150: #define PTP_DPC_NIKON_TuneColourTemperature 0xD150 +0xd151: #define PTP_DPC_NIKON_TunePreset0 0xD151 +0xd152: #define PTP_DPC_NIKON_TunePreset1 0xD152 +0xd153: #define PTP_DPC_NIKON_TunePreset2 0xD153 +0xd154: #define PTP_DPC_NIKON_TunePreset3 0xD154 +0xd155: #define PTP_DPC_NIKON_TunePreset4 0xD155 +0xd160: #define PTP_DPC_NIKON_BeepOff 0xD160 +0xd161: #define PTP_DPC_NIKON_AutofocusMode 0xD161 +0xd162: ? +0xd163: #define PTP_DPC_NIKON_AFAssist 0xD163 +0xd164: #define PTP_DPC_NIKON_PADVPMode 0xD164 /* iso auto time */ +0xd166: #define PTP_DPC_NIKON_AFAreaIllumination 0xD166 +0xd167: #define PTP_DPC_NIKON_FlashMode 0xD167 +0xd169: #define PTP_DPC_NIKON_FlashSign 0xD169 +0xd16a: #define PTP_DPC_NIKON_ISO_Auto 0xD16A +0xd16b: #define PTP_DPC_NIKON_RemoteTimeout 0xD16B +0xd16c: #define PTP_DPC_NIKON_GridDisplay 0xD16C +0xd16d: #define PTP_DPC_NIKON_FlashModeManualPower 0xD16D +0xd181: #define PTP_DPC_NIKON_WarningDisplay 0xD181 +0xd182: #define PTP_DPC_NIKON_BatteryCellKind 0xD182 +0xd183: #define PTP_DPC_NIKON_ISOAutoHiLimit 0xD183 +0xd187: #define PTP_DPC_NIKON_InfoDispSetting 0xD187 +0xd189: #define PTP_DPC_NIKON_PreviewButton 0xD189 +0xd18d: #define PTP_DPC_NIKON_IndicatorDisp 0xD18D +0xd18e: #define PTP_DPC_NIKON_CellKindPriority 0xD18E +0xd1a2: #define PTP_DPC_NIKON_LiveViewStatus 0xD1A2 +0xd1a3: #define PTP_DPC_NIKON_LiveViewImageZoomRatio 0xD1A3 +0xd1a4: #define PTP_DPC_NIKON_LiveViewProhibitCondition 0xD1A4 +0xd1b0: #define PTP_DPC_NIKON_ExposureDisplayStatus 0xD1B0 +0xd1b1: #define PTP_DPC_NIKON_ExposureIndicateStatus 0xD1B1 +0xd1b2: #define PTP_DPC_NIKON_InfoDispErrStatus 0xD1B2 +0xd1b3: #define PTP_DPC_NIKON_ExposureIndicateLightup 0xD1B3 +0xd1b4: ? +0xd1c0: #define PTP_DPC_NIKON_FlashOpen 0xD1C0 +0xd1c1: #define PTP_DPC_NIKON_FlashCharged 0xD1C1 +0xd1d0: #define PTP_DPC_NIKON_FlashMRepeatValue 0xD1D0 +0xd1d1: #define PTP_DPC_NIKON_FlashMRepeatCount 0xD1D1 +0xd1d2: #define PTP_DPC_NIKON_FlashMRepeatInterval 0xD1D2 +0xd1d3: #define PTP_DPC_NIKON_FlashCommandChannel 0xD1D3 +0xd1d4: #define PTP_DPC_NIKON_FlashCommandSelfMode 0xD1D4 +0xd1d5: #define PTP_DPC_NIKON_FlashCommandSelfCompensation 0xD1D5 +0xd1d6: #define PTP_DPC_NIKON_FlashCommandSelfValue 0xD1D6 +0xd1d7: #define PTP_DPC_NIKON_FlashCommandAMode 0xD1D7 +0xd1d8: #define PTP_DPC_NIKON_FlashCommandACompensation 0xD1D8 +0xd1d9: #define PTP_DPC_NIKON_FlashCommandAValue 0xD1D9 +0xd1da: #define PTP_DPC_NIKON_FlashCommandBMode 0xD1DA +0xd1db: #define PTP_DPC_NIKON_FlashCommandBCompensation 0xD1DB +0xd1dc: #define PTP_DPC_NIKON_FlashCommandBValue 0xD1DC +0xd1f0: ? +0xd1f1: ? +0xd1f2: ? +0xd200: #define PTP_DPC_NIKON_ActivePicCtrlItem 0xD200 +0xd201: #define PTP_DPC_NIKON_ChangePicCtrlItem 0xD201 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d70s.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d70s.txt new file mode 100644 index 00000000..b5a48d50 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d70s.txt @@ -0,0 +1,288 @@ +Device info: +Manufacturer: Nikon Corporation + model: D70s + device version: V1.00 + serial number: '(null)' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c5 + 0x90c6 + 0x90c7 + 0x90c8 + 0x90c9 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01f + 0xd025 + 0xd026 + 0xd02a + 0xd02b + 0xd02c + 0xd02d + 0xd045 + 0xd04f + 0xd054 + 0xd056 + 0xd058 + 0xd059 + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd064 + 0xd06b + 0xd06c + 0xd075 + 0xd078 + 0xd07a + 0xd086 + 0xd08a + 0xd090 + 0xd091 + 0xd092 + 0xd0c0 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10a + 0xd10d + 0xd10e + 0xd10b + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd140 + 0xd142 + 0xd160 + 0xd161 + 0xd163 + 0xd164 + 0xd165 + 0xd166 + 0xd167 + 0xd168 + 0xd169 + 0xd16b + 0xd16c + 0xd16d + 0xd16e + 0xd180 + 0xd190 + 0xd1b0 + 0xd1c0 + 0xd1c1 +Camera summary: +Model: D70s + device version: V1.00 + serial number: (null) +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions + +Capture Formats: JPEG Undefined Type +Display Formats: Undefined Type, Association/Directory, TIFF, JPEG, DPOF, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: LEXAR MEDIA + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 1025179648 (977 MB) + Free Space (Bytes): 996884480 (950 MB) + Free Space (Images): 283 + +Device Property Summary: + Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) + Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3008x2000', + '2240x1488', + '1504x1000' + ] value: '3008x2000' + Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5] value: JPEG Fine (2) + White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Auto (2) +F -Number(0x5007):(readwrite) (type=0x4) Enumeration [350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/3.5 (350) + Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 7000, step 1] value: 18 mm (1800) + Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785] value: AF-S (32784) + Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Matrix (3) + Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Default (32784) + Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.062 sec (6250) + Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32790] value: P (2) + Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [200,250,320,400,500,640,800,1000,1250,1600] value: ISO 200 (200) + +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) + Date Time(0x5011):(readwrite) (type=0xffff) '20060329T154229' + Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32787,32788] value: Single Shot (1) + Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 49, step 1] value: 1 + Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785] value: Single Area (32784) + Auto White Balance Bias(0xd017):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 + Tungsten White Balance Bias(0xd018):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 + Flourescent White Balance Bias(0xd019):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 + Daylight White Balance Bias(0xd01a):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 + Flash White Balance Bias(0xd01b):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 + Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 + Shady White Balance Bias(0xd01d):(readwrite) (type=0x1) Range [-3 - 4, step 1] value: 0 + +Property 0xd01f:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 + Property 0xd025:(read only) (type=0x6) 33685926 + Property 0xd026:(read only) (type=0x6) 33685926 + Sharpening(0xd02a):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 + Tone Compensation(0xd02b):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 + Color Mode(0xd02c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: sRGB (0) + Hue Adjustment(0xd02d):(readwrite) (type=0x1) Range [-9 - 9, step 3] value: 0 +Property 0xd045:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 + Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 + Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Compensation(0xd058):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) + Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 8 mm (1) + Exposure Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) + Focus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 + Auto Meter Off Time(0xd062):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1 + Self Timer Delay(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 + LCD Off Time(0xd064):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1 + Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) + File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) + Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 0 + Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 + Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Reverse Command Dial(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) + No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Property 0xd091:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 + Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Exposure Bracketing(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Number(0xd0c2):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd0c3:(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +Property 0xd0c4:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd0c5:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 + Lens ID(0xd0e0):(read only) (type=0x2) AF-S Nikkor 18-70mm 1:3.5-4.5G ED DX (127) + Property 0xd0e1:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 + Property 0xd0e2:(read only) (type=0x2) 3 + Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) + Max. Focal Length(0xd0e4):(read only) (type=0x6) 70 mm (7000) + Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) + Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/4.5 (450) + Property 0xd100:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 655376 + Property 0xd101:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 + Property 0xd102:(read only) (type=0x2) 0 + Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 49, step 1] value: 9 + Property 0xd104:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 + Property 0xd105:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 + Property 0xd106:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 + Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 4, step 1] value: Centre (0) +Property 0xd109:(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 + Exposure Meter(0xd10a):(read only) (type=0x1) Range [-128 - 127, step 1] value: 0.0 stops (0) + Property 0xd10d:(read only) (type=0xffff) 'NO= 20053ca8 ' + Property 0xd10e:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd10b:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 + Property 0xd120:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 + Property 0xd121:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 + Property 0xd122:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 + Property 0xd124:(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 + Property 0xd125:(read only) (type=0x2) Range [0 - 7, step 1] value: 1 + Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) + Optimize Image:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Property 0xd142:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 + AF Beep Mode(0xd160):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) + Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) + AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 12, step 1] value: 2 + Image Review(0xd165):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) + AF Area Illumination(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) + Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 2, step 1] value: iTTL (0) +Property 0xd168:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 + Flash Sign(0xd169):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) + Remote Timeout(0xd16b):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 min (0) + Viewfinder Grid Display(0xd16c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) + Flash Mode Manual Power(0xd16d):(readwrite) (type=0x2) Range [0 - 4, step 1] value: Full (0) +Property 0xd16e:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 + Property 0xd180:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd190:(readwrite) (type=0x2) Range [0 - 12, step 2] value: 2 + Low Light(0xd1b0):(read only) (type=0x2) Range [0 - 4, step 1] value: No (0) + Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) + Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7100.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7100.txt new file mode 100644 index 00000000..20d0a435 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7100.txt @@ -0,0 +1,3665 @@ + +Manufacturer: Nikon Corporation +Model: D7100 + Version: V1.00 + Serial Number: nnnnnnn0000000000000000000000000 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: Undefined Type, Association/Directory, Script, DPOF, Apple Quicktime, JPEG + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D7100 [Slot 1] + + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 3956801536 (3773 MB) + Free Space (Bytes): 3338305536 (3183 MB) + Free Space (Images): 424 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 80% (80) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6000x4000', + '4496x3000', + '2992x2000' + ] value: '6000x4000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: JPEG Norm (1) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [480,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500,2900,3200] value: f/8 (800) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 38 mm (3800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.0005 sec (50) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32790,32792,32793,32848,32849] value: P (2) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: ISO 1600 (1600) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130427T145852' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788] value: Single Area (32784) +Artist(0x501e):(read only) (type=0xffff) ' ' +Copyright Info(0x501f):(read only) (type=0xffff) ' ' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Lossless (0) +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +Property 0xd038:(readwrite) (type=0xffff) ' ' +Property 0xd039:(readwrite) (type=0xffff) ' ' +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 40042905 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 40042905 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 40042905 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 40042905 +Property 0xd03e:(read only) (type=0x6) 40042905 +Property 0xd03f:(read only) (type=0x6) 40042905 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +JPEG Compression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Flicker Reduction(0xd034):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Remote Mode(0xd035):(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 3 +Effect Mode(0xd037):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 1 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 3 +Angle Level(0xd067):(read only) (type=0x5) 1.0' (65339) +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 100, step 1] value: 100 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Artist Name(0xd072):(readwrite) (type=0xffff) ' ' +Copyright Information(0xd073):(readwrite) (type=0xffff) ' ' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 2 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) ' ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 2 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Movie Card Slot(0xd0a3):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 16384 +Property 0xd0a7:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 4 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 5, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 5, step 1] value: 2 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 148 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 43 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 55 mm (5500) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560) +Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Scene Mode(0xd0f9):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 13 +Property 0xd0fc:(read only) (type=0x2) Range [0 - 28, step 1] value: 19 +Property 0xd0fd:(read only) (type=0x2) Range [0 - 28, step 1] value: 19 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 65736 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [1 - 51, step 1] value: Top (1) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +HDR Smoothing(0xd132):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 3 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Slot 2 Save Mode(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 4 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 1(0xd152):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 2(0xd153):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 3(0xd154):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 4(0xd155):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd03a:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd03b:(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: MF (fixed) (3) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 27, step 1] value: 27 +AF Area Illumination(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 25, step 1] value: 20 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd1a8:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566] value: 65566 +Property 0xd1a9:(read only) (type=0x4) Enumeration [480,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500,2900,3200] value: 100 +Property 0xd1aa:(read only) (type=0x6) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: 100 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000] value: 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 100, step 1] value: 19 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 424 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1367071132 +Printable: Sat 27 Apr 2013 03:58:52 PM CEST +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/cleansensor +Label: Clean Sensor +Type: RADIO +Current: Startup and Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +Choice: 3 Startup and Shutdown +/main/settings/flickerreduction +Label: Flicker Reduction +Type: RADIO +Current: Unknown value 0002 +Choice: 0 50 Hz +Choice: 1 60 Hz +Choice: 2 Unknown value 0002 +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 43022980000000000000000000000000 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D7100 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0 +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 80% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/orientation2 +Label: Camera Orientation +Type: TEXT +Current: 1' +/main/status/flashopen +Label: Flash Open +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/flashcharged +Label: Flash Charged +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 18 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 55 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 4 +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 6 +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 0 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/fvlocked +Label: FV Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 1600 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 25600 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/assistlight +Label: Assist Light +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Red-eye automatic +Choice: 1 Auto +Choice: 2 Auto Slow Sync +Choice: 3 Rear Curtain Sync + Slow Sync +Choice: 4 Red-eye Reduction + Slow Sync +/main/capturesettings/nikonflashmode +Label: Nikon Flash Mode +Type: RADIO +Current: iTTL +Choice: 0 iTTL +Choice: 1 Manual +Choice: 2 Commander +Choice: 3 Repeating +/main/capturesettings/af-area-illumination +Label: AF Area Illumination +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Off +Choice: 2 On +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/8 +Choice: 0 f/4.8 +Choice: 1 f/5 +Choice: 2 f/5.6 +Choice: 3 f/6.3 +Choice: 4 f/7.1 +Choice: 5 f/8 +Choice: 6 f/9 +Choice: 7 f/10 +Choice: 8 f/11 +Choice: 9 f/13 +Choice: 10 f/14 +Choice: 11 f/16 +Choice: 12 f/18 +Choice: 13 f/20 +Choice: 14 f/22 +Choice: 15 f/25 +Choice: 16 f/29 +Choice: 17 f/32 +/main/capturesettings/flexibleprogram +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Normal +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Basic +Choice: 5 NEF+Normal +Choice: 6 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 38 +Bottom: 18 +Top: 55 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Manual +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: MF (fixed) +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/effectmode +Label: Effect Mode +Type: RADIO +Current: Color sketch +Choice: 0 Night Vision +Choice: 1 Color sketch +Choice: 2 Miniature effect +Choice: 3 Selective color +Choice: 4 Silhouette +Choice: 5 High key +Choice: 6 Low key +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: P +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Night Landscape +Choice: 6 Automatic (No Flash) +Choice: 7 Unknown value 8019 +Choice: 8 Unknown value 8050 +Choice: 9 Unknown value 8051 +/main/capturesettings/scenemode +Label: Scene Mode +Type: RADIO +Current: Unknown value 000d +Choice: 0 Night landscape +Choice: 1 Party/Indoor +Choice: 2 Beach/Snow +Choice: 3 Sunset +Choice: 4 Dusk/Dawn +Choice: 5 Pet Portrait +Choice: 6 Candlelight +Choice: 7 Blossom +Choice: 8 Autumn colors +Choice: 9 Food +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Night Portrait +/main/capturesettings/hdrmode +Label: HDR Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/hdrsmoothing +Label: HDR Smoothing +Type: RADIO +Current: Unknown value 0003 +Choice: 0 High +Choice: 1 Normal +Choice: 2 Unknown value 0002 +Choice: 3 Unknown value 0003 +Choice: 4 Unknown value 0004 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Mirror Up +Choice: 5 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Single Area +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +Choice: 4 Unknown value 8013 +Choice: 5 Unknown value 8014 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0040s +Choice: 0 0.0001s +Choice: 1 0.0002s +Choice: 2 0.0003s +Choice: 3 0.0004s +Choice: 4 0.0005s +Choice: 5 0.0006s +Choice: 6 0.0008s +Choice: 7 0.0010s +Choice: 8 0.0012s +Choice: 9 0.0015s +Choice: 10 0.0020s +Choice: 11 0.0025s +Choice: 12 0.0031s +Choice: 13 0.0040s +Choice: 14 0.0050s +Choice: 15 0.0062s +Choice: 16 0.0080s +Choice: 17 0.0100s +Choice: 18 0.0125s +Choice: 19 0.0166s +Choice: 20 0.0200s +Choice: 21 0.0250s +Choice: 22 0.0333s +Choice: 23 0.0400s +Choice: 24 0.0500s +Choice: 25 0.0666s +Choice: 26 0.0769s +Choice: 27 0.1000s +Choice: 28 0.1250s +Choice: 29 0.1666s +Choice: 30 0.2000s +Choice: 31 0.2500s +Choice: 32 0.3333s +Choice: 33 0.4000s +Choice: 34 0.5000s +Choice: 35 0.6250s +Choice: 36 0.7692s +Choice: 37 1.0000s +Choice: 38 1.3000s +Choice: 39 1.6000s +Choice: 40 2.0000s +Choice: 41 2.5000s +Choice: 42 3.0000s +Choice: 43 4.0000s +Choice: 44 5.0000s +Choice: 45 6.0000s +Choice: 46 8.0000s +Choice: 47 10.0000s +Choice: 48 13.0000s +Choice: 49 15.0000s +Choice: 50 20.0000s +Choice: 51 25.0000s +Choice: 52 30.0000s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/250 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +Choice: 22 1/50 +Choice: 23 1/40 +Choice: 24 1/30 +Choice: 25 1/25 +Choice: 26 1/20 +Choice: 27 1/15 +Choice: 28 1/13 +Choice: 29 1/10 +Choice: 30 1/8 +Choice: 31 1/6 +Choice: 32 1/5 +Choice: 33 1/4 +Choice: 34 1/3 +Choice: 35 10/25 +Choice: 36 1/2 +Choice: 37 10/16 +Choice: 38 10/13 +Choice: 39 1 +Choice: 40 13/10 +Choice: 41 16/10 +Choice: 42 2 +Choice: 43 25/10 +Choice: 44 3 +Choice: 45 4 +Choice: 46 5 +Choice: 47 6 +Choice: 48 8 +Choice: 49 10 +Choice: 50 13 +Choice: 51 15 +Choice: 52 20 +Choice: 53 25 +Choice: 54 30 +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Wide-area AF +Choice: 0 Face-priority AF +Choice: 1 Wide-area AF +Choice: 2 Normal-area AF +Choice: 3 Subject-tracking AF +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Unknown value 0003 +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Unknown value 0003 +Choice: 3 Manual Focus +Choice: 4 Unknown value 0003 +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Top +Choice: 0 Top +Choice: 1 Bottom +Choice: 2 Left +Choice: 3 Right +Choice: 4 Unknown value 0005 +Choice: 5 Unknown value 0006 +Choice: 6 Unknown value 0007 +Choice: 7 Unknown value 0008 +Choice: 8 Unknown value 0009 +Choice: 9 Unknown value 000a +Choice: 10 Unknown value 000b +Choice: 11 Unknown value 000c +Choice: 12 Unknown value 000d +Choice: 13 Unknown value 000e +Choice: 14 Unknown value 000f +Choice: 15 Unknown value 0010 +Choice: 16 Unknown value 0011 +Choice: 17 Unknown value 0012 +Choice: 18 Unknown value 0013 +Choice: 19 Unknown value 0014 +Choice: 20 Unknown value 0015 +Choice: 21 Unknown value 0016 +Choice: 22 Unknown value 0017 +Choice: 23 Unknown value 0018 +Choice: 24 Unknown value 0019 +Choice: 25 Unknown value 001a +Choice: 26 Unknown value 001b +Choice: 27 Unknown value 001c +Choice: 28 Unknown value 001d +Choice: 29 Unknown value 001e +Choice: 30 Unknown value 001f +Choice: 31 Unknown value 0020 +Choice: 32 Unknown value 0021 +Choice: 33 Unknown value 0022 +Choice: 34 Unknown value 0023 +Choice: 35 Unknown value 0024 +Choice: 36 Unknown value 0025 +Choice: 37 Unknown value 0026 +Choice: 38 Unknown value 0027 +Choice: 39 Unknown value 0028 +Choice: 40 Unknown value 0029 +Choice: 41 Unknown value 002a +Choice: 42 Unknown value 002b +Choice: 43 Unknown value 002c +Choice: 44 Unknown value 002d +Choice: 45 Unknown value 002e +Choice: 46 Unknown value 002f +Choice: 47 Unknown value 0030 +Choice: 48 Unknown value 0031 +Choice: 49 Unknown value 0032 +Choice: 50 Unknown value 0033 +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0.333333 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE & Flash +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/bracketorder +Label: Bracket Order +Type: RADIO +Current: MTR > Under +Choice: 0 MTR > Under +Choice: 1 Under > MTR +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/autowhitebias +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/tungstenwhitebias +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flourescentwhitebias +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/daylightwhitebias +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/flashwhitebias +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/cloudywhitebias +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/shadewhitebias +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 40042905 +/main/capturesettings/whitebiaspreset2 +Label: White Balance Bias Preset 2 +Type: TEXT +Current: 40042905 +/main/capturesettings/whitebiaspreset3 +Label: White Balance Bias Preset 3 +Type: TEXT +Current: 40042905 +/main/capturesettings/whitebiaspreset4 +Label: White Balance Bias Preset 4 +Type: TEXT +Current: 40042905 +/main/capturesettings/centerweightsize +Label: Center Weight Area +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +Choice: 2 10 mm +Choice: 3 12 mm +Choice: 4 Average +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +Choice: 1 1/30 +Choice: 2 1/15 +Choice: 3 1/8 +Choice: 4 1/4 +Choice: 5 1/2 +Choice: 6 1 +Choice: 7 2 +Choice: 8 4 +Choice: 9 8 +Choice: 10 15 +Choice: 11 30 +/main/capturesettings/remotemode +Label: Remote Mode +Type: RADIO +Current: Unknown value 0003 +Choice: 0 Delayed Remote +Choice: 1 Quick Response +Choice: 2 Remote Mirror Up +Choice: 3 Unknown value 0003 +Choice: 4 Unknown value 0003 +/main/capturesettings/microphone +Label: Microphone +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +Choice: 5 Unknown value 0005 +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 80 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +Choice: 2 2992x2000 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 800 +Choice: 0 480 +Choice: 1 500 +Choice: 2 560 +Choice: 3 630 +Choice: 4 710 +Choice: 5 800 +Choice: 6 900 +Choice: 7 1000 +Choice: 8 1100 +Choice: 9 1300 +Choice: 10 1400 +Choice: 11 1600 +Choice: 12 1800 +Choice: 13 2000 +Choice: 14 2200 +Choice: 15 2500 +Choice: 16 2900 +Choice: 17 3200 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 3800 +Bottom: 1800 +Top: 5500 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 4 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 40 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 8 +Choice: 7 10 +Choice: 8 12 +Choice: 9 15 +Choice: 10 20 +Choice: 11 25 +Choice: 12 31 +Choice: 13 40 +Choice: 14 50 +Choice: 15 62 +Choice: 16 80 +Choice: 17 100 +Choice: 18 125 +Choice: 19 166 +Choice: 20 200 +Choice: 21 250 +Choice: 22 333 +Choice: 23 400 +Choice: 24 500 +Choice: 25 666 +Choice: 26 769 +Choice: 27 1000 +Choice: 28 1250 +Choice: 29 1666 +Choice: 30 2000 +Choice: 31 2500 +Choice: 32 3333 +Choice: 33 4000 +Choice: 34 5000 +Choice: 35 6250 +Choice: 36 7692 +Choice: 37 10000 +Choice: 38 13000 +Choice: 39 16000 +Choice: 40 20000 +Choice: 41 25000 +Choice: 42 30000 +Choice: 43 40000 +Choice: 44 50000 +Choice: 45 60000 +Choice: 46 80000 +Choice: 47 100000 +Choice: 48 130000 +Choice: 49 150000 +Choice: 50 200000 +Choice: 51 250000 +Choice: 52 300000 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32790 +Choice: 6 32792 +Choice: 7 32793 +Choice: 8 32848 +Choice: 9 32849 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 1600 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130427T145853 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32790 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +/main/other/501e +Label: Artist +Type: TEXT +Current: +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d016 +Label: Raw Compression +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d01e +Label: White Balance Colour Temperature +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d021 +Label: White Balance Preset Name 1 +Type: TEXT +Current: +/main/other/d022 +Label: White Balance Preset Name 2 +Type: TEXT +Current: +/main/other/d023 +Label: White Balance Preset Name 3 +Type: TEXT +Current: +/main/other/d024 +Label: White Balance Preset Name 4 +Type: TEXT +Current: +/main/other/d038 +Label: PTP Property 0xd038 +Type: TEXT +Current: +/main/other/d039 +Label: PTP Property 0xd039 +Type: TEXT +Current: +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 40042905 +/main/other/d027 +Label: White Balance Preset Value 2 +Type: TEXT +Current: 40042905 +/main/other/d028 +Label: White Balance Preset Value 3 +Type: TEXT +Current: 40042905 +/main/other/d029 +Label: White Balance Preset Value 4 +Type: TEXT +Current: 40042905 +/main/other/d03e +Label: PTP Property 0xd03e +Type: TEXT +Current: 40042905 +/main/other/d03f +Label: PTP Property 0xd03f +Type: TEXT +Current: 40042905 +/main/other/d02e +Label: Lens Focal Length (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d02f +Label: Lens Maximum Aperture (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +/main/other/d030 +Label: Shooting Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d031 +Label: JPEG Compression Policy +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d034 +Label: Flicker Reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d035 +Label: Remote Mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d037 +Label: Effect Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d04f +Label: Focus Area Wrap +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d051 +Label: AF Lock On +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d055 +Label: Exposure ISO Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d059 +Label: Centre Weight Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d05a +Label: Exposure Base Matrix +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05b +Label: Exposure Base Center +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05c +Label: Exposure Base Spot +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d067 +Label: Angle Level +Type: TEXT +Current: 66778 +/main/other/d068 +Label: Shooting Speed +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d069 +Label: Maximum Shots +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: +/main/other/d074 +Label: Flash Sync. Speed +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d075 +Label: Flash Shutter Speed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d07a +Label: Bracket Order +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d087 +Label: Aperture Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Clean Image Sensor +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d093 +Label: Manual Set Lens Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0a3 +Label: Movie Card Slot +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 16384 +/main/other/d0a7 +Label: PTP Property 0xd0a7 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a2 +Label: Movie Microphone +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 148 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 43 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 1800 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 5500 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 350 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 560 +/main/other/d0f8 +Label: Auto Distortion Control +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0f9 +Label: Scene Mode +Type: MENU +Current: 13 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d0fc +Label: PTP Property 0xd0fc +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +/main/other/d0fd +Label: PTP Property 0xd0fd +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65786 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +Choice: 25 65561 +Choice: 26 65556 +Choice: 27 65551 +Choice: 28 65549 +Choice: 29 65546 +Choice: 30 65544 +Choice: 31 65542 +Choice: 32 65541 +Choice: 33 65540 +Choice: 34 65539 +Choice: 35 655385 +Choice: 36 65538 +Choice: 37 655376 +Choice: 38 655373 +Choice: 39 65537 +Choice: 40 851978 +Choice: 41 1048586 +Choice: 42 131073 +Choice: 43 1638410 +Choice: 44 196609 +Choice: 45 262145 +Choice: 46 327681 +Choice: 47 393217 +Choice: 48 524289 +Choice: 49 655361 +Choice: 50 851969 +Choice: 51 983041 +Choice: 52 1310721 +Choice: 53 1638401 +Choice: 54 1966081 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d106 +Label: FV Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d126 +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -18 +Top: 6 +Step: 2 +/main/other/d130 +Label: HDR Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d132 +Label: HDR Smoothing +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d141 +Label: PTP Property 0xd141 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d148 +Label: Slot 2 Save Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: ISO Auto Time +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d150 +Label: Tune Colour Temperature +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d152 +Label: Tune Preset 1 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d153 +Label: Tune Preset 2 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d154 +Label: Tune Preset 3 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d155 +Label: Tune Preset 4 +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d03a +Label: PTP Property 0xd03a +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d03b +Label: PTP Property 0xd03b +Type: RANGE +Current: 84 +Bottom: 0 +Top: 168 +Step: 1 +/main/other/d158 +Label: PTP Property 0xd158 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d159 +Label: PTP Property 0xd159 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15a +Label: PTP Property 0xd15a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15c +Label: PTP Property 0xd15c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03c +Label: PTP Property 0xd03c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03d +Label: PTP Property 0xd03d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15d +Label: PTP Property 0xd15d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d163 +Label: AF Assist Lamp +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 27 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +/main/other/d166 +Label: AF Area Illumination +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d167 +Label: Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d16a +Label: ISO Auto +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +/main/other/d197 +Label: PTP Property 0xd197 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1a6 +Label: PTP Property 0xd1a6 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a8 +Label: PTP Property 0xd1a8 +Type: MENU +Current: 65566 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +/main/other/d1a9 +Label: PTP Property 0xd1a9 +Type: MENU +Current: 100 +Choice: 0 480 +Choice: 1 500 +Choice: 2 560 +Choice: 3 630 +Choice: 4 710 +Choice: 5 800 +Choice: 6 900 +Choice: 7 1000 +Choice: 8 1100 +Choice: 9 1300 +Choice: 10 1400 +Choice: 11 1600 +Choice: 12 1800 +Choice: 13 2000 +Choice: 14 2200 +Choice: 15 2500 +Choice: 16 2900 +Choice: 17 3200 +/main/other/d1aa +Label: PTP Property 0xd1aa +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 25600 +/main/other/d1ab +Label: PTP Property 0xd1ab +Type: MENU +Current: 0 +Choice: 0 -3000 +Choice: 1 -2666 +Choice: 2 -2333 +Choice: 3 -2000 +Choice: 4 -1666 +Choice: 5 -1333 +Choice: 6 -1000 +Choice: 7 -666 +Choice: 8 -333 +Choice: 9 0 +Choice: 10 333 +Choice: 11 666 +Choice: 12 1000 +Choice: 13 1333 +Choice: 14 1666 +Choice: 15 2000 +Choice: 16 2333 +Choice: 17 2666 +Choice: 18 3000 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 + +*** Error *** +The capture widget is not configurable. +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: Info Display Error Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/d1c0 +Label: Flash Open +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1c1 +Label: Flash Charged +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 424 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 101 +Choice: 7 102 +Choice: 8 103 +Choice: 9 104 +Choice: 10 201 +Choice: 11 202 +Choice: 12 203 +Choice: 13 204 +Choice: 14 205 +Choice: 15 206 +Choice: 16 207 +Choice: 17 208 +Choice: 18 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. +UNKNOWN PTP Property 500d changed +UNKNOWN PTP Property d100 changed +UNKNOWN PTP Property 500d changed +UNKNOWN PTP Property d100 changed +UNKNOWN PTP Property 5007 changed +UNKNOWN PTP Property 500d changed +UNKNOWN PTP Property d100 changed +UNKNOWN PTP Property 5007 changed +UNKNOWN PTP Property 500d changed +UNKNOWN PTP Property d100 changed +UNKNOWN PTP Property 5007 changed +New file is in location /store_00010001/DCIM/100D7100/DSC_0062.JPG on the camera + + +Device info: +Manufacturer: Nikon Corporation + Model: D7100 + device version: V1.00 + serial number: 'nnnnnnn0000000000000000000000000' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9209 + 0x920a + 0x920b + 0x920c + 0x9400 + 0x9402 + 0x9403 + 0x9404 + 0x9405 + 0x9406 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 + 0xc105 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0x501e + 0x501f + 0xd303 + 0xd406 + 0xd407 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd038 + 0xd039 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd03e + 0xd03f + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd034 + 0xd035 + 0xd037 + 0xd049 + 0xd045 + 0xd048 + 0xd04f + 0xd051 + 0xd053 + 0xd054 + 0xd055 + 0xd059 + 0xd056 + 0xd05a + 0xd05b + 0xd05c + 0xd05d + 0xd061 + 0xd067 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd070 + 0xd072 + 0xd073 + 0xd074 + 0xd075 + 0xd078 + 0xd07a + 0xd087 + 0xd08a + 0xd08d + 0xd08f + 0xd090 + 0xd091 + 0xd092 + 0xd093 + 0xd0a0 + 0xd0a8 + 0xd0a3 + 0xd0a4 + 0xd0a7 + 0xd0a2 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f8 + 0xd0f9 + 0xd0fc + 0xd0fd + 0xd100 + 0xd101 + 0xd102 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10e + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd130 + 0xd132 + 0xd141 + 0xd148 + 0xd149 + 0xd14e + 0xd14f + 0xd150 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd03a + 0xd03b + 0xd158 + 0xd159 + 0xd15a + 0xd15c + 0xd03c + 0xd03d + 0xd15d + 0xd161 + 0xd163 + 0xd164 + 0xd166 + 0xd167 + 0xd16a + 0xd183 + 0xd197 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1a6 + 0xd1a8 + 0xd1a9 + 0xd1aa + 0xd1ab + 0xd1ac + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1b4 + 0xd1c0 + 0xd1c1 + 0xd1f0 + 0xd1f1 + 0xd1f4 + 0xd200 + 0xd201 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7200.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7200.txt new file mode 100644 index 00000000..c9c0b319 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7200.txt @@ -0,0 +1,3758 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D7200 + Version: V1.00 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Microsoft.com/DeviceServices: + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script, Apple Quicktime + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3 + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 15997075456 (15256 MB) + Free Space (Bytes): 10076979200 (9610 MB) + Free Space (Images): 186 +store_00020001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 8064598016 (7691 MB) + Free Space (Bytes): 8064499712 (7690 MB) + Free Space (Images): 149 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6000x4000', + '4496x3000', + '(null)' + ] value: '6000x4000' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: RAW (4) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [180,200,240,280,330,400,480,560,670,800,950,1100,1300,1600] value: f/1.8 (180) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 3500, step 1] value: 24 mm (2400) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-S (32784) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784,32785,32786,32787] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,5,6,10,13,20,28,40,55,80,111,166,222,333,500,666,1000,1250,1666,2500,3333,5000,6666,10000,15000,20000,30000,40000,60000,80000,100000,150000,200000,300000] value: 0.033 sec (3333) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32790,32792,32793,32848,32849] value: A (3) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,140,200,280,400,560,800,1100,1600,2200,3200,4500,6400,9000,12800,18000,25600] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4500,-4000,-3500,-3000,-2500,-2000,-1500,-1000,-500,0,500,1000,1500,2000,2500,3000,3500,4000,4500,5000] value: -1.0 stops (-1000) +Date & Time(0x5011):(readwrite) (type=0xffff) '20160904T182217' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788] value: Group Dynamic (32786) +Artist(0x501e):(read only) (type=0xffff) 'Nikolay Kaculin' +Copyright Info(0x501f):(read only) (type=0xffff) '(C)All rights reserved' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Lossless (0) +Auto White Balance Bias(0xd017):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 39977371 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 39977371 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 39977371 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 39977371 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +JPEG Compression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Flicker Reduction(0xd034):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Effect Mode(0xd037):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 1 +Property 0xd038:(readwrite) (type=0xffff) ' ' +Property 0xd039:(readwrite) (type=0xffff) ' ' +Property 0xd03a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03e:(read only) (type=0x6) 39977371 +Property 0xd03f:(read only) (type=0x6) 39977371 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/2 (1) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: -2 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: -1 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 0 +Angle Level(0xd067):(read only) (type=0x5) 0.9' (59988) +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 100, step 1] value: 100 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Artist Name(0xd072):(readwrite) (type=0xffff) 'Nikolay Kaculin' +Copyright Information(0xd073):(readwrite) (type=0xffff) '(C)All rights reserved' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE only (1) +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) '' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 2 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Movie Card Slot(0xd0a3):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a4:(read only) (type=0x6) 0 +Movie Quality(0xd0a7):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0aa:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0ab:(read only) (type=0x4) 32894 +Property 0xd0ac:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0ad:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ae:(readwrite) (type=0x2) Range [0 - 28, step 1] value: 28 +Property 0xd0b4:(readwrite) (type=0x6) Enumeration [100,140,200,280,400,560,800,1100,1600,2200,3200,4500,6400,9000,12800,18000,25600,51200,102400] value: 100 +Property 0xd0b5:(read only) (type=0x6) 100 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(read only) (type=0x2) Range [0 - 5, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 1, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x4) AF-S Nikkor 18-200mm 1:3.5-5.6 GED DX VR (139) +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 27 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 35 mm (3500) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/1.8 (180) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/1.8 (180) +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Scene Mode(0xd0f9):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 13 +Property 0xd0fc:(read only) (type=0x2) Range [0 - 28, step 1] value: 21 +Property 0xd0fd:(read only) (type=0x2) Range [0 - 28, step 1] value: 21 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [73536,71536,69536,68536,67536,67036,66536,66286,66036,65886,65786,65716,65661,65626,65596,65581,65566,65556,65551,65546,65544,65542,65540,65539,65538,655375,65537,983050,131073,196609,262145,393217,524289,655361,983041,1310721,1966081] value: 65539 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 51, step 1] value: 26 +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 3] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 3] value: -1.0 stops (-6) +Property 0xd12d:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +HDR Smoothing(0xd132):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 3 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Slot 2 Save Mode(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 4 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Tune Preset 1(0xd152):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 2(0xd153):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 3(0xd154):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 4(0xd155):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15b:(read only) (type=0x4) Range [100 - 999, step 1] value: 101 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-S (0) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 32, step 1] value: 32 +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 28, step 1] value: 28 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a8:(read only) (type=0x6) Enumeration [73536,71536,69536,68536,67536,67036,66536,66286,66036,65886,65786,65716,65661,65626,65596,65581,65566] value: 73536 +Property 0xd1a9:(read only) (type=0x4) Enumeration [0] value: 0 +Property 0xd1aa:(readwrite) (type=0x6) Enumeration [100,140,200,280,400,560,800,1100,1600,2200,3200,4500,6400,9000,12800,18000,25600] value: 100 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2500,-2000,-1500,-1000,-500,0,500,1000,1500,2000,2500,3000] value: 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Property 0xd1af:(read only) (type=0x4) Enumeration [2,3] value: 3 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: -0.5 stops (-6) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 100, step 1] value: 11 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 335 +Property 0xd1f2:(read only) (type=0x2) Range [0 - 3, step 1] value: 1 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,201,202,203,204,205,206,207,208,209] value: 2 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 +Property 0xd20e:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd211:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd212:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd213:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd214:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 2 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd216:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd218:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd219:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd21a:(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +Property 0xd21b:(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Property 0xd21c:(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +Property 0xd21d:(readwrite) (type=0xffff) ' ' +Property 0xd21e:(readwrite) (type=0xffff) ' ' +Property 0xd21f:(readwrite) (type=0xffff) ' ' +Property 0xd220:(readwrite) (type=0xffff) ' ' +Property 0xd221:(readwrite) (type=0xffff) ' ' +Property 0xd222:(readwrite) (type=0xffff) ' ' +Property 0xd223:(read only) (type=0x6) 39977371 +Property 0xd224:(read only) (type=0x6) 39977371 +Property 0xd225:(read only) (type=0x6) 39977371 +Property 0xd226:(read only) (type=0x6) 39977371 +Property 0xd227:(read only) (type=0x6) 39977371 +Property 0xd228:(read only) (type=0x6) 39977371 +Property 0xd229:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22c:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22d:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22e:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd230:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd231:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd232:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd233:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd234:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd235:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd236:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd237:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,100,201,202,203,204,205,206,207,208,209] value: 100 +Property 0xd238:(read only) (type=0x4) Enumeration [] value: 0 +Property 0xd23a:(readwrite) (type=0x4) Enumeration [2,4,5,6,32784,32785,32786,32787,32789] value: 2 + +/main/actions/bulb +Label: Bulb Mode +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/changeafarea +Label: Set Nikon Autofocus area +Type: TEXT +Current: 0x0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1473002646 +Printable: Sun Sep 4 18:24:06 2016 +Help: Use 'now' as the current time when setting. + +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/artist +Label: Artist +Type: TEXT +Current: Nikolay Kaculin +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: (C)All rights reserved +/main/settings/cleansensor +Label: Clean Sensor +Type: RADIO +Current: Startup and Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +Choice: 3 Startup and Shutdown +/main/settings/flickerreduction +Label: Flicker Reduction +Type: RADIO +Current: Auto +Choice: 0 50 Hz +Choice: 1 60 Hz +Choice: 2 Auto +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: None +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D7200 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Microsoft.com/DeviceServices: +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/orientation2 +Label: Camera Orientation +Type: TEXT +Current: 1' +/main/status/flashopen +Label: Flash Open +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/flashcharged +Label: Flash Charged +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 18 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 35 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 2 +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 2 +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 1 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/fvlocked +Label: FV Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 100 +Choice: 0 100 +Choice: 1 140 +Choice: 2 200 +Choice: 3 280 +Choice: 4 400 +Choice: 5 560 +Choice: 6 800 +Choice: 7 1100 +Choice: 8 1600 +Choice: 9 2200 +Choice: 10 3200 +Choice: 11 4500 +Choice: 12 6400 +Choice: 13 9000 +Choice: 14 12800 +Choice: 15 18000 +Choice: 16 25600 +/main/imgsettings/movieiso +Label: Movie ISO Speed +Type: RADIO +Current: 100 +Choice: 0 100 +Choice: 1 140 +Choice: 2 200 +Choice: 3 280 +Choice: 4 400 +Choice: 5 560 +Choice: 6 800 +Choice: 7 1100 +Choice: 8 1600 +Choice: 9 2200 +Choice: 10 3200 +Choice: 11 4500 +Choice: 12 6400 +Choice: 13 9000 +Choice: 14 12800 +Choice: 15 18000 +Choice: 16 25600 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: AdobeRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/assistlight +Label: Assist Light +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: -1 +Choice: 0 -5 +Choice: 1 -4.5 +Choice: 2 -4 +Choice: 3 -3.5 +Choice: 4 -3 +Choice: 5 -2.5 +Choice: 6 -2 +Choice: 7 -1.5 +Choice: 8 -1 +Choice: 9 -0.5 +Choice: 10 0 +Choice: 11 0.5 +Choice: 12 1 +Choice: 13 1.5 +Choice: 14 2 +Choice: 15 2.5 +Choice: 16 3 +Choice: 17 3.5 +Choice: 18 4 +Choice: 19 4.5 +Choice: 20 5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Flash off +Choice: 1 Red-eye automatic +Choice: 2 Auto +Choice: 3 Auto Slow Sync +Choice: 4 Rear Curtain Sync + Slow Sync +Choice: 5 Red-eye Reduction + Slow Sync +/main/capturesettings/nikonflashmode +Label: Nikon Flash Mode +Type: RADIO +Current: Repeating +Choice: 0 iTTL +Choice: 1 Manual +Choice: 2 Commander +Choice: 3 Repeating +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/1.8 +Choice: 0 f/1.8 +Choice: 1 f/2 +Choice: 2 f/2.4 +Choice: 3 f/2.8 +Choice: 4 f/3.3 +Choice: 5 f/4 +Choice: 6 f/4.8 +Choice: 7 f/5.6 +Choice: 8 f/6.7 +Choice: 9 f/8 +Choice: 10 f/9.5 +Choice: 11 f/11 +Choice: 12 f/13 +Choice: 13 f/16 +/main/capturesettings/movief-number +Label: Movie F-Number +Type: RADIO +Current: f/0 +Choice: 0 f/0 +/main/capturesettings/flexibleprogram +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 3 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: NEF (Raw) +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Basic +Choice: 5 NEF+Normal +Choice: 6 NEF+Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 24 +Bottom: 18 +Top: 35 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-S +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: AF-S +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/effectmode +Label: Effect Mode +Type: RADIO +Current: Color sketch +Choice: 0 Night Vision +Choice: 1 Color sketch +Choice: 2 Miniature effect +Choice: 3 Selective color +Choice: 4 Silhouette +Choice: 5 High key +Choice: 6 Low key +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: A +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Night Landscape +Choice: 6 Automatic (No Flash) +Choice: 7 Unknown value 8019 +Choice: 8 Unknown value 8050 +Choice: 9 Unknown value 8051 +/main/capturesettings/scenemode +Label: Scene Mode +Type: RADIO +Current: Portrait +Choice: 0 Night landscape +Choice: 1 Party/Indoor +Choice: 2 Beach/Snow +Choice: 3 Sunset +Choice: 4 Dusk/Dawn +Choice: 5 Pet Portrait +Choice: 6 Candlelight +Choice: 7 Blossom +Choice: 8 Autumn colors +Choice: 9 Food +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Portrait +Choice: 14 Landscape +Choice: 15 Child +Choice: 16 Sports +Choice: 17 Close up +Choice: 18 Night Portrait +/main/capturesettings/hdrmode +Label: HDR Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/hdrsmoothing +Label: HDR Smoothing +Type: RADIO +Current: Auto +Choice: 0 High +Choice: 1 Normal +Choice: 2 Low +Choice: 3 Auto +Choice: 4 Extra high +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Mirror Up +Choice: 5 Quiet Release +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Group Dynamic +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +Choice: 4 Unknown value 8013 +Choice: 5 Unknown value 8014 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.6666s +Choice: 0 0.0001s +Choice: 1 0.0002s +Choice: 2 0.0003s +Choice: 3 0.0005s +Choice: 4 0.0006s +Choice: 5 0.0010s +Choice: 6 0.0013s +Choice: 7 0.0020s +Choice: 8 0.0028s +Choice: 9 0.0040s +Choice: 10 0.0055s +Choice: 11 0.0080s +Choice: 12 0.0111s +Choice: 13 0.0166s +Choice: 14 0.0222s +Choice: 15 0.0333s +Choice: 16 0.0500s +Choice: 17 0.0666s +Choice: 18 0.1000s +Choice: 19 0.1250s +Choice: 20 0.1666s +Choice: 21 0.2500s +Choice: 22 0.3333s +Choice: 23 0.5000s +Choice: 24 0.6666s +Choice: 25 1.0000s +Choice: 26 1.5000s +Choice: 27 2.0000s +Choice: 28 3.0000s +Choice: 29 4.0000s +Choice: 30 6.0000s +Choice: 31 8.0000s +Choice: 32 10.0000s +Choice: 33 15.0000s +Choice: 34 20.0000s +Choice: 35 30.0000s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 10/15 +Choice: 0 1/8000 +Choice: 1 1/6000 +Choice: 2 1/4000 +Choice: 3 1/3000 +Choice: 4 1/2000 +Choice: 5 1/1500 +Choice: 6 1/1000 +Choice: 7 1/750 +Choice: 8 1/500 +Choice: 9 1/350 +Choice: 10 1/250 +Choice: 11 1/180 +Choice: 12 1/125 +Choice: 13 1/90 +Choice: 14 1/60 +Choice: 15 1/45 +Choice: 16 1/30 +Choice: 17 1/20 +Choice: 18 1/15 +Choice: 19 1/10 +Choice: 20 1/8 +Choice: 21 1/6 +Choice: 22 1/4 +Choice: 23 1/3 +Choice: 24 1/2 +Choice: 25 10/15 +Choice: 26 1 +Choice: 27 15/10 +Choice: 28 2 +Choice: 29 3 +Choice: 30 4 +Choice: 31 6 +Choice: 32 8 +Choice: 33 10 +Choice: 34 15 +Choice: 35 20 +Choice: 36 30 +/main/capturesettings/movieshutterspeed +Label: Movie Shutter Speed 2 +Type: RADIO +Current: 1/8000 +Choice: 0 1/8000 +Choice: 1 1/6000 +Choice: 2 1/4000 +Choice: 3 1/3000 +Choice: 4 1/2000 +Choice: 5 1/1500 +Choice: 6 1/1000 +Choice: 7 1/750 +Choice: 8 1/500 +Choice: 9 1/350 +Choice: 10 1/250 +Choice: 11 1/180 +Choice: 12 1/125 +Choice: 13 1/90 +Choice: 14 1/60 +Choice: 15 1/45 +Choice: 16 1/30 +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Wide-area AF +Choice: 0 Face-priority AF +Choice: 1 Wide-area AF +Choice: 2 Normal-area AF +Choice: 3 Subject-tracking AF +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Single-servo AF +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Unknown value 0003 +Choice: 3 Manual Focus +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Unknown value 001a +Choice: 0 Centre +Choice: 1 Top +Choice: 2 Bottom +Choice: 3 Left +Choice: 4 Right +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +Choice: 22 Unknown value 0016 +Choice: 23 Unknown value 0017 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 Unknown value 001c +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +Choice: 32 Unknown value 0020 +Choice: 33 Unknown value 0021 +Choice: 34 Unknown value 0022 +Choice: 35 Unknown value 0023 +Choice: 36 Unknown value 0024 +Choice: 37 Unknown value 0025 +Choice: 38 Unknown value 0026 +Choice: 39 Unknown value 0027 +Choice: 40 Unknown value 0028 +Choice: 41 Unknown value 0029 +Choice: 42 Unknown value 002a +Choice: 43 Unknown value 002b +Choice: 44 Unknown value 002c +Choice: 45 Unknown value 002d +Choice: 46 Unknown value 002e +Choice: 47 Unknown value 002f +Choice: 48 Unknown value 0030 +Choice: 49 Unknown value 0031 +Choice: 50 Unknown value 0032 +Choice: 51 Unknown value 0033 +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Type: RANGE +Current: -1 +Bottom: -3 +Top: 1 +Step: 0.5 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/2 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE only +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/bracketorder +Label: Bracket Order +Type: RADIO +Current: MTR > Under +Choice: 0 MTR > Under +Choice: 1 Under > MTR +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 39977371 +/main/capturesettings/whitebiaspreset2 +Label: White Balance Bias Preset 2 +Type: TEXT +Current: 39977371 +/main/capturesettings/whitebiaspreset3 +Label: White Balance Bias Preset 3 +Type: TEXT +Current: 39977371 +/main/capturesettings/whitebiaspreset4 +Label: White Balance Bias Preset 4 +Type: TEXT +Current: 39977371 +/main/capturesettings/centerweightsize +Label: Center Weight Area +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +Choice: 2 10 mm +Choice: 3 12 mm +Choice: 4 Average +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +Choice: 1 1/30 +Choice: 2 1/15 +Choice: 3 1/8 +Choice: 4 1/4 +Choice: 5 1/2 +Choice: 6 1 +Choice: 7 2 +Choice: 8 4 +Choice: 9 8 +Choice: 10 15 +Choice: 11 30 +/main/capturesettings/applicationmode +Label: Application Mode +Type: RADIO +Current: Application Mode 0 +Choice: 0 Application Mode 0 +Choice: 1 Application Mode 1 +/main/capturesettings/microphone +Label: Microphone +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +Choice: 5 Unknown value 0005 +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6000x4000 +Choice: 0 6000x4000 +Choice: 1 4496x3000 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 180 +Choice: 0 180 +Choice: 1 200 +Choice: 2 240 +Choice: 3 280 +Choice: 4 330 +Choice: 5 400 +Choice: 6 480 +Choice: 7 560 +Choice: 8 670 +Choice: 9 800 +Choice: 10 950 +Choice: 11 1100 +Choice: 12 1300 +Choice: 13 1600 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 2400 +Bottom: 1800 +Top: 3500 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32787 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 6666 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 10 +Choice: 6 13 +Choice: 7 20 +Choice: 8 28 +Choice: 9 40 +Choice: 10 55 +Choice: 11 80 +Choice: 12 111 +Choice: 13 166 +Choice: 14 222 +Choice: 15 333 +Choice: 16 500 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1250 +Choice: 20 1666 +Choice: 21 2500 +Choice: 22 3333 +Choice: 23 5000 +Choice: 24 6666 +Choice: 25 10000 +Choice: 26 15000 +Choice: 27 20000 +Choice: 28 30000 +Choice: 29 40000 +Choice: 30 60000 +Choice: 31 80000 +Choice: 32 100000 +Choice: 33 150000 +Choice: 34 200000 +Choice: 35 300000 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32790 +Choice: 6 32792 +Choice: 7 32793 +Choice: 8 32848 +Choice: 9 32849 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 140 +Choice: 2 200 +Choice: 3 280 +Choice: 4 400 +Choice: 5 560 +Choice: 6 800 +Choice: 7 1100 +Choice: 8 1600 +Choice: 9 2200 +Choice: 10 3200 +Choice: 11 4500 +Choice: 12 6400 +Choice: 13 9000 +Choice: 14 12800 +Choice: 15 18000 +Choice: 16 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: -1000 +Choice: 0 -5000 +Choice: 1 -4500 +Choice: 2 -4000 +Choice: 3 -3500 +Choice: 4 -3000 +Choice: 5 -2500 +Choice: 6 -2000 +Choice: 7 -1500 +Choice: 8 -1000 +Choice: 9 -500 +Choice: 10 0 +Choice: 11 500 +Choice: 12 1000 +Choice: 13 1500 +Choice: 14 2000 +Choice: 15 2500 +Choice: 16 3000 +Choice: 17 3500 +Choice: 18 4000 +Choice: 19 4500 +Choice: 20 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20160904T182406 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32790 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32786 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +/main/other/501e +Label: Artist +Type: TEXT +Current: Nikolay Kaculin +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: (C)All rights reserved +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d016 +Label: Raw Compression +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01e +Label: White Balance Colour Temperature +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d021 +Label: White Balance Preset Name 1 +Type: TEXT +Current: +/main/other/d022 +Label: White Balance Preset Name 2 +Type: TEXT +Current: +/main/other/d023 +Label: White Balance Preset Name 3 +Type: TEXT +Current: +/main/other/d024 +Label: White Balance Preset Name 4 +Type: TEXT +Current: +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 39977371 +/main/other/d027 +Label: White Balance Preset Value 2 +Type: TEXT +Current: 39977371 +/main/other/d028 +Label: White Balance Preset Value 3 +Type: TEXT +Current: 39977371 +/main/other/d029 +Label: White Balance Preset Value 4 +Type: TEXT +Current: 39977371 +/main/other/d02e +Label: Lens Focal Length (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d02f +Label: Lens Maximum Aperture (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +/main/other/d030 +Label: Shooting Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d031 +Label: JPEG Compression Policy +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d034 +Label: Flicker Reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d037 +Label: Effect Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d038 +Label: PTP Property 0xd038 +Type: TEXT +Current: +/main/other/d039 +Label: PTP Property 0xd039 +Type: TEXT +Current: +/main/other/d03a +Label: PTP Property 0xd03a +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d03b +Label: PTP Property 0xd03b +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d03c +Label: PTP Property 0xd03c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03d +Label: PTP Property 0xd03d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03e +Label: PTP Property 0xd03e +Type: TEXT +Current: 39977371 +/main/other/d03f +Label: PTP Property 0xd03f +Type: TEXT +Current: 39977371 +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d04f +Label: Focus Area Wrap +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d051 +Label: AF Lock On +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d055 +Label: Exposure ISO Step +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d059 +Label: Centre Weight Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d05a +Label: Exposure Base Matrix +Type: MENU +Current: -2 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05b +Label: Exposure Base Center +Type: MENU +Current: -1 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05c +Label: Exposure Base Spot +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d067 +Label: Angle Level +Type: TEXT +Current: 67839 +/main/other/d068 +Label: Shooting Speed +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d069 +Label: Maximum Shots +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: Nikolay Kaculin +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: (C)All rights reserved +/main/other/d074 +Label: Flash Sync. Speed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d075 +Label: Flash Shutter Speed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d07a +Label: Bracket Order +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d087 +Label: Aperture Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Clean Image Sensor +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d093 +Label: Manual Set Lens Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d09c +Label: PTP Property 0xd09c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d0a2 +Label: Movie Microphone +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0a3 +Label: Movie Card Slot +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 0 +/main/other/d0a7 +Label: Movie Quality +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0aa +Label: PTP Property 0xd0aa +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ab +Label: PTP Property 0xd0ab +Type: TEXT +Current: 32894 +/main/other/d0ac +Label: PTP Property 0xd0ac +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ad +Label: PTP Property 0xd0ad +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ae +Label: PTP Property 0xd0ae +Type: MENU +Current: 28 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +/main/other/d0b4 +Label: PTP Property 0xd0b4 +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 140 +Choice: 2 200 +Choice: 3 280 +Choice: 4 400 +Choice: 5 560 +Choice: 6 800 +Choice: 7 1100 +Choice: 8 1600 +Choice: 9 2200 +Choice: 10 3200 +Choice: 11 4500 +Choice: 12 6400 +Choice: 13 9000 +Choice: 14 12800 +Choice: 15 18000 +Choice: 16 25600 +Choice: 17 51200 +Choice: 18 102400 +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Type: TEXT +Current: 100 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0c7 +Label: PTP Property 0xd0c7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 139 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 27 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 1800 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 3500 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 180 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 180 +/main/other/d0f7 +Label: Vignette Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0f8 +Label: Auto Distortion Control +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0f9 +Label: Scene Mode +Type: MENU +Current: 13 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d0fc +Label: PTP Property 0xd0fc +Type: MENU +Current: 21 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +/main/other/d0fd +Label: PTP Property 0xd0fd +Type: MENU +Current: 21 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 655375 +Choice: 0 73536 +Choice: 1 71536 +Choice: 2 69536 +Choice: 3 68536 +Choice: 4 67536 +Choice: 5 67036 +Choice: 6 66536 +Choice: 7 66286 +Choice: 8 66036 +Choice: 9 65886 +Choice: 10 65786 +Choice: 11 65716 +Choice: 12 65661 +Choice: 13 65626 +Choice: 14 65596 +Choice: 15 65581 +Choice: 16 65566 +Choice: 17 65556 +Choice: 18 65551 +Choice: 19 65546 +Choice: 20 65544 +Choice: 21 65542 +Choice: 22 65540 +Choice: 23 65539 +Choice: 24 65538 +Choice: 25 655375 +Choice: 26 65537 +Choice: 27 983050 +Choice: 28 131073 +Choice: 29 196609 +Choice: 30 262145 +Choice: 31 393217 +Choice: 32 524289 +Choice: 33 655361 +Choice: 34 983041 +Choice: 35 1310721 +Choice: 36 1966081 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d106 +Label: FV Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: MENU +Current: 26 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 3 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d126 +Label: Flash Exposure Compensation +Type: RANGE +Current: -6 +Bottom: -18 +Top: 6 +Step: 3 +/main/other/d12d +Label: PTP Property 0xd12d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d130 +Label: HDR Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d132 +Label: HDR Smoothing +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d141 +Label: PTP Property 0xd141 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d148 +Label: Slot 2 Save Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: Active D-Lighting +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d150 +Label: Tune Colour Temperature +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +/main/other/d152 +Label: Tune Preset 1 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d153 +Label: Tune Preset 2 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d154 +Label: Tune Preset 3 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d155 +Label: Tune Preset 4 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d158 +Label: PTP Property 0xd158 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d159 +Label: PTP Property 0xd159 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15a +Label: PTP Property 0xd15a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15b +Label: PTP Property 0xd15b +Type: RANGE +Current: 101 +Bottom: 100 +Top: 999 +Step: 1 +/main/other/d15c +Label: PTP Property 0xd15c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15d +Label: PTP Property 0xd15d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d163 +Label: AF Assist Lamp +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 32 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +/main/other/d167 +Label: Flash Mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d16a +Label: ISO Auto +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 28 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +/main/other/d197 +Label: PTP Property 0xd197 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1a6 +Label: PTP Property 0xd1a6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a8 +Label: PTP Property 0xd1a8 +Type: MENU +Current: 73536 +Choice: 0 73536 +Choice: 1 71536 +Choice: 2 69536 +Choice: 3 68536 +Choice: 4 67536 +Choice: 5 67036 +Choice: 6 66536 +Choice: 7 66286 +Choice: 8 66036 +Choice: 9 65886 +Choice: 10 65786 +Choice: 11 65716 +Choice: 12 65661 +Choice: 13 65626 +Choice: 14 65596 +Choice: 15 65581 +Choice: 16 65566 +/main/other/d1a9 +Label: PTP Property 0xd1a9 +Type: MENU +Current: 0 +Choice: 0 0 +/main/other/d1aa +Label: PTP Property 0xd1aa +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 140 +Choice: 2 200 +Choice: 3 280 +Choice: 4 400 +Choice: 5 560 +Choice: 6 800 +Choice: 7 1100 +Choice: 8 1600 +Choice: 9 2200 +Choice: 10 3200 +Choice: 11 4500 +Choice: 12 6400 +Choice: 13 9000 +Choice: 14 12800 +Choice: 15 18000 +Choice: 16 25600 +/main/other/d1ab +Label: PTP Property 0xd1ab +Type: MENU +Current: 0 +Choice: 0 -3000 +Choice: 1 -2500 +Choice: 2 -2000 +Choice: 3 -1500 +Choice: 4 -1000 +Choice: 5 -500 +Choice: 6 0 +Choice: 7 500 +Choice: 8 1000 +Choice: 9 1500 +Choice: 10 2000 +Choice: 11 2500 +Choice: 12 3000 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d1af +Label: PTP Property 0xd1af +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: Info Display Error Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: MENU +Current: 11 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/d1c0 +Label: Flash Open +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1c1 +Label: Flash Charged +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 335 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d1f2 +Label: PTP Property 0xd1f2 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 201 +Choice: 8 202 +Choice: 9 203 +Choice: 10 204 +Choice: 11 205 +Choice: 12 206 +Choice: 13 207 +Choice: 14 208 +Choice: 15 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d20f +Label: PTP Property 0xd20f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d211 +Label: PTP Property 0xd211 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d213 +Label: PTP Property 0xd213 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d214 +Label: PTP Property 0xd214 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d215 +Label: PTP Property 0xd215 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d216 +Label: PTP Property 0xd216 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d219 +Label: PTP Property 0xd219 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d21a +Label: PTP Property 0xd21a +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d21b +Label: PTP Property 0xd21b +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +/main/other/d21c +Label: PTP Property 0xd21c +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d21d +Label: PTP Property 0xd21d +Type: TEXT +Current: +/main/other/d21e +Label: PTP Property 0xd21e +Type: TEXT +Current: +/main/other/d21f +Label: PTP Property 0xd21f +Type: TEXT +Current: +/main/other/d220 +Label: PTP Property 0xd220 +Type: TEXT +Current: +/main/other/d221 +Label: PTP Property 0xd221 +Type: TEXT +Current: +/main/other/d222 +Label: PTP Property 0xd222 +Type: TEXT +Current: +/main/other/d223 +Label: PTP Property 0xd223 +Type: TEXT +Current: 39977371 +/main/other/d224 +Label: PTP Property 0xd224 +Type: TEXT +Current: 39977371 +/main/other/d225 +Label: PTP Property 0xd225 +Type: TEXT +Current: 39977371 +/main/other/d226 +Label: PTP Property 0xd226 +Type: TEXT +Current: 39977371 +/main/other/d227 +Label: PTP Property 0xd227 +Type: TEXT +Current: 39977371 +/main/other/d228 +Label: PTP Property 0xd228 +Type: TEXT +Current: 39977371 +/main/other/d229 +Label: PTP Property 0xd229 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22a +Label: PTP Property 0xd22a +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22b +Label: PTP Property 0xd22b +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22c +Label: PTP Property 0xd22c +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22d +Label: PTP Property 0xd22d +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22e +Label: PTP Property 0xd22e +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22f +Label: PTP Property 0xd22f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d230 +Label: PTP Property 0xd230 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d231 +Label: PTP Property 0xd231 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d232 +Label: PTP Property 0xd232 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d233 +Label: PTP Property 0xd233 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d234 +Label: PTP Property 0xd234 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d235 +Label: PTP Property 0xd235 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d236 +Label: PTP Property 0xd236 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d237 +Label: PTP Property 0xd237 +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 100 +Choice: 8 201 +Choice: 9 202 +Choice: 10 203 +Choice: 11 204 +Choice: 12 205 +Choice: 13 206 +Choice: 14 207 +Choice: 15 208 +Choice: 16 209 +/main/other/d238 +Label: PTP Property 0xd238 +Type: MENU +Current: 0 +/main/other/d23a +Label: PTP Property 0xd23a +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32786 +Choice: 7 32787 +Choice: 8 32789 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d750.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d750.txt new file mode 100644 index 00000000..16aae8fe --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d750.txt @@ -0,0 +1,4110 @@ +Kamerazusammenfassung: +Hersteller: Nikon Corporation +Modell: D750 + Version: V1.00f + Seriennummer: 0000000000000000000000000nnnnnnn +Vendor Extension ID: 0xa (1.0) +Beschreibung der Vendor Extension: Microsoft.com/DeviceServices: + +Aufnahmeformate: JPEG Undefined Type +Anzeigeformate: JPEG, Undefined Type, Association/Directory, MS Wave, TIFF, DPOF, Script, Apple Quicktime + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Generische Bild Aufnahme, keine Offene Aufnahme, Nikon Aufnahme 1, Nikon Aufname 2, Nikon Aufnahme 3 + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: NIKON D750 [Slot 1] + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Nur Lesen und Löschen + Maximale Kapazität: 31625052160 (30160 MB) + Freier Platz (Bytes): 30111334400 (28716 MB) + Freier Speicher (Bilder): 553 +store_00020001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: NIKON D750 [Slot 2] + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Nur Lesen und Löschen + Maximale Kapazität: 15923150848 (15185 MB) + Freier Platz (Bytes): 15395815424 (14682 MB) + Freier Speicher (Bilder): 553 + +Properties des Geräts: +Batterie Ladezustand(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 60% (60) +Bildgröße(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6016x4016', + '4512x3008', + '3008x2008' + ] value: '6016x4016' +Kompressions Parameter(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: 7 +Weißabgleich(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Nummer(0x5007):(read only) (type=0x4) Enumeration [350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/3,5 (350) +Fokus Tiefe(0x5008):(read only) (type=0x6) Range [2400 - 8500, step 1] value: 24 mm (2400) +Fokusmodus(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-A (32786) +Belichtungsmessmodus(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4,32784] value: Multi-spot (3) +Blitzmodus(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784,32785,32786,32787] value: Auto (32784) +Belichtungszeit(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400] value: 0,004 sec (400) +Belichtungs Programm Modus(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32790,32792,32793,32848,32849] value: P (2) +Belichtungs Index (nach ISO)(0x500f):(readwrite) (type=0x4) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,51200] value: ISO 200 (200) +Belichtungskompensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0,0 stops (0) +Datum und Zeit(0x5011):(readwrite) (type=0xffff) '20141203T211048' +Bildaufnahme Modus(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790,32792] value: Single Shot (1) +Bildzahl im Burstmodus(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Entfernungs Messungs Modus(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788,32789] value: Closest Subject (32785) +Künstler(0x501e):(read only) (type=0xffff) 'Juergen Blumenschein' +Copyright Information(0x501f):(read only) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Setze Menübank 0 zurück(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +RAW Kompression(0xd016):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Lossless (0) +Automatische Weißabgleich Abweichung(0xd017):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tungsten Weißabgleich Abweichung(0xd018):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Floureszierend Weißabgleich Abweichung(0xd019):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tageslicht Weißabgleich Abweichung(0xd01a):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Blitz Weißabgleich Abweichung(0xd01b):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Wolkig Weißabgleich Abweichung(0xd01c):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Schattig Weißabgleich Abweichung(0xd01d):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Weißabgleich Farbtemperatur(0xd01e):(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +Weißabgleich Preset Nummer(0xd01f):(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +Weißabgleich Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +Weißabgleich Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +Weißabgleich Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +Weißabgleich Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +Weißabgleich Preset Wert 1(0xd026):(read only) (type=0x6) 32702807 +Weißabgleich Preset Wert 2(0xd027):(read only) (type=0x6) 32702807 +Weißabgleich Preset Wert 3(0xd028):(read only) (type=0x6) 32702807 +Weißabgleich Preset Wert 4(0xd029):(read only) (type=0x6) 32702807 +Fokus Tiefe der Linse (Nicht CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Maximale Blende der Linse (Nicht CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +Aufnahme Modus(0xd030):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +JPEG Kompression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Farbraum(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Automatisches DX Crop(0xd033):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Flimmer Vermeidung(0xd034):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Effektmodus(0xd037):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 255 +Property 0xd038:(readwrite) (type=0xffff) ' ' +Property 0xd039:(readwrite) (type=0xffff) ' ' +Property 0xd03a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03e:(read only) (type=0x6) 32702807 +Property 0xd03f:(read only) (type=0x6) 32702807 +Setze Menübank zurück(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Fokus Bereich Wraparound(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +AF Lock An(0xd051):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Copyright aktivieren(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Belichtungs ISO Schritt(0xd055):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Belichtungszeitschritt(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Mittelpunkt/Gewichtet Bereich(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Belichtungs Basis Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Belichtungs Basis Zentrum(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Belichtungs Basis Punkt(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Liveview AF Bereich(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Live View AF Fokus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 0 +Neigung(0xd067):(read only) (type=0x5) 69,0' (4521080) +Abstand bei Mehrfachbelichtung(0xd068):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Maximale Bildanzahl(0xd069):(readwrite) (type=0x2) Range [1 - 100, step 1] value: 100 +Belichtungs Verzögerungs Modus(0xd06a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Langzeitbelichtungsrauschkompensation(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bildnummer Zählung(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +Rauschunterdrückung bei hohen ISO(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Künstlername(0xd072):(readwrite) (type=0xffff) 'Juergen Blumenschein' +Copyright Information(0xd073):(readwrite) (type=0xffff) '' +Blitzsynchronisations Geschwindigkeit(0xd074):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 2 +Blitz Belichtungszeit(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Abstufungsbereich(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Abstufungsrichtung(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Property 0xd07d:(read only) (type=0x5) -1 +Property 0xd07e:(read only) (type=0x5) -1 +Blendeneinstellung(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auslösen ohne CF Karte(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Bereich Punkt(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Säubere Bildsensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Bild Kommentar(0xd090):(readwrite) (type=0xffff) ' ' +Bild Kommentar anschalten(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bildrotationsflag(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manuell gesetzte Objektivnummer(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Film Bildschirmgrösse(0xd0a0):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Film Mikrofon(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Film Kartenslot(0xd0a3):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 0 +Filmqualität(0xd0a7):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0aa:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ab:(read only) (type=0x4) 32894 +Property 0xd0ac:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ad:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ae:(readwrite) (type=0x2) Range [0 - 29, step 1] value: 24 +Property 0xd0b5:(read only) (type=0x6) 5000 +Aktivierung der Abstufung(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Belichtungs Abstufung Schritt(0xd0c1):(read only) (type=0x2) Range [0 - 5, step 1] value: 3 +Belichtungs Abstufung Programm(0xd0c2):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Automatische Belichtungs Abstufung Anzahl(0xd0c3):(read only) (type=0x2) Range [1 - 1, step 1] value: 1 +Automatische Weißabgleich Abweichung Schritt(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Automatische Weißabgleich Abweichung Programm(0xd0c5):(read only) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Objektiv Kennung(0xd0e0):(read only) (type=0x4) 180 +Objektivart(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Objektivtyp(0xd0e2):(read only) (type=0x2) 39 +Minimale Brennweite(0xd0e3):(read only) (type=0x6) 24 mm (2400) +Maximale Brennweite(0xd0e4):(read only) (type=0x6) 85 mm (8500) +Maximale Blende bei Minimaler Brennweite(0xd0e5):(read only) (type=0x4) f/3,5 (350) +Maximale Blende bei maximaler Brennweite(0xd0e6):(read only) (type=0x4) f/4,5 (450) +Vignette Einstellungen(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Automatische Verzerrungs Kontrolle(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Szenen Modus(0xd0f9):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 255 +Property 0xd0fc:(read only) (type=0x2) Range [0 - 28, step 1] value: 19 +Property 0xd0fd:(read only) (type=0x2) Range [0 - 28, step 1] value: 19 +Nikon Belichtungszeit(0xd100):(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561] value: 65561 +Netzanschluss(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warn Status(0xd102):(read only) (type=0x2) 0 +AF Lock an(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Lock an(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Lock an(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Aktiver AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 51, step 1] value: Centre (0) +Flexibles Programm(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Aufnahmemedium(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Kameraausrichtung(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 270' (1) +Externer Blitz angesteckt(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Status Externer Blitz(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Art des externen Blitz(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Externer Blitz Belichtungskompensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +Externer Blitzmodus(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Blitz Belichtungskompensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0,0 stops (0) +Property 0xd12d:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +HDR Modus(0xd130):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +HDR Weichzeichnen(0xd132):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 3 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Slot 2 Speichermodus(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +RAW Bit Modus(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Aktives D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 4 +Fluoreszenz Typ(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Farbtemperatur einstellen(0xd150):(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Voreinstellung 1(0xd152):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Voreinstellung 2(0xd153):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Voreinstellung 3(0xd154):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Voreinstellung 4(0xd155):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15b:(read only) (type=0x4) Range [100 - 999, step 1] value: 100 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Autofokus Modus(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-A (2) +Autofokus Hilfslicht(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Einstellung(0xd164):(readwrite) (type=0x2) Range [0 - 29, step 1] value: 29 +Blitzmodus(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 29, step 1] value: 24 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Zoom Faktor(0xd1a3):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Live View Verhinderungszustand(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a5:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a8:(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596] value: 69536 +Property 0xd1a9:(read only) (type=0x4) Enumeration [350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: 350 +Property 0xd1aa:(readwrite) (type=0x6) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,51200] value: 100 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000] value: 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Property 0xd1af:(read only) (type=0x4) Enumeration [2,3,32784] value: 3 +Belichtungs Anzeige Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Belichtungs Indikator Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0,0 stops (0) +Info Anzeige Fehler Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Belichtungs Indikator Aufleuchten(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 100, step 1] value: 10 +Blitz offen(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Blitz geladen(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 553 +Property 0xd1f2:(read only) (type=0x2) Range [0 - 3, step 1] value: 3 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Aktiviertes Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,201,202,203,204,205,206,207,208,209] value: 1 +Ändere Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 +Property 0xd20e:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd210:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd211:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd212:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd213:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd214:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd216:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd217:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd218:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd219:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd21a:(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +Property 0xd21b:(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Property 0xd21c:(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +Property 0xd21d:(readwrite) (type=0xffff) ' ' +Property 0xd21e:(readwrite) (type=0xffff) ' ' +Property 0xd21f:(readwrite) (type=0xffff) ' ' +Property 0xd220:(readwrite) (type=0xffff) ' ' +Property 0xd221:(readwrite) (type=0xffff) ' ' +Property 0xd222:(readwrite) (type=0xffff) ' ' +Property 0xd223:(read only) (type=0x6) 32702807 +Property 0xd224:(read only) (type=0x6) 32702807 +Property 0xd225:(read only) (type=0x6) 32702807 +Property 0xd226:(read only) (type=0x6) 32702807 +Property 0xd227:(read only) (type=0x6) 32702807 +Property 0xd228:(read only) (type=0x6) 32702807 +Property 0xd229:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22c:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22d:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22e:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd230:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd231:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd232:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd233:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd234:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd235:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd236:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd237:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,100,201,202,203,204,205,206,207,208,209] value: 100 +Property 0xd238:(read only) (type=0x4) Enumeration [] value: 0 +Property 0xd239:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd23a:(readwrite) (type=0x4) Enumeration [2,4,5,6,32784,32785,32786,32787,32789] value: 32789 + +/main/actions/bulb +Label: Langzeit Belichtungsmodus +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Fahre NIKON DSLR Autofokus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Fahre NIKON DSLR manuellen Fokus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/changeafarea +Label: Setze den NIKON Autofokusbereich +Type: TEXT +Current: 0x0 +/main/actions/controlmode +Label: Setze Nikon Kontrollmodus +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/actions/movie +Label: Film Aufnahme +Type: TOGGLE +Current: 2 +/main/settings/datetime +Label: Kamera Datum und Zeit +Type: DATE +Current: 1417637635 +Printable: Mi 03 Dez 2014 21:13:55 CET +Help: Use 'now' as the current time when setting. + +/main/settings/imagecomment +Label: Bild Kommentar +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Schalte Bild Kommentar ein +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/settings/recordingmedia +Label: Aufnahmemedium +Type: RADIO +Current: Speicherkarte +Choice: 0 Speicherkarte +Choice: 1 Kamera SDRAM +Choice: 2 Unbekannter Wert 0002 +/main/settings/artist +Label: Künstler +Type: TEXT +Current: Juergen Blumenschein +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/cleansensor +Label: Reinige Sensor +Type: RADIO +Current: Ein- und Abschalten +Choice: 0 Aus +Choice: 1 Einschalten +Choice: 2 Abschalten +Choice: 3 Ein- und Abschalten +/main/settings/flickerreduction +Label: Flimmer Vermeidung +Type: RADIO +Current: Auto +Choice: 0 50 Hz +Choice: 1 60 Hz +Choice: 2 Auto +/main/settings/fastfs +Label: Schnelles Dateisystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Aufnahmeziel +Type: RADIO +Current: interner Speicher +Choice: 0 interner Speicher +Choice: 1 Speicherkarte +/main/status/serialnumber +Label: Seriennummer +Type: TEXT +Current: 0000000000000000000000000nnnnnnn +/main/status/manufacturer +Label: Kamera Hersteller +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Kameramodell +Type: TEXT +Current: D750 +/main/status/deviceversion +Label: Version des Gerätes +Type: TEXT +Current: V1.00f +/main/status/vendorextension +Label: Hersteller Erweiterung +Type: TEXT +Current: Microsoft.com/DeviceServices: +/main/status/acpower +Label: Netzanschluss +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/status/externalflash +Label: Externer Blitz +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/status/batterylevel +Label: Batterie Ladezustand +Type: TEXT +Current: 60% +/main/status/orientation +Label: Kameraausrichtung +Type: RADIO +Current: 270' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/orientation2 +Label: Kameraausrichtung +Type: TEXT +Current: 68' +/main/status/flashopen +Label: Blitz offen +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/status/flashcharged +Label: Blitz geladen +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/status/minfocallength +Label: minimale Fokus Tiefe +Type: TEXT +Current: 24 mm +/main/status/maxfocallength +Label: maximale Fokus Tiefe +Type: TEXT +Current: 85 mm +/main/status/apertureatminfocallength +Label: Maximale Blende bei Minimaler Brennweite +Type: TEXT +Current: 4 +/main/status/apertureatmaxfocallength +Label: Maximale Blende bei Maximaler Brennweite +Type: TEXT +Current: 4 +/main/status/lowlight +Label: Wenig Licht +Type: RANGE +Current: 0 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Belichtungsmesser +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Lock an +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/status/aelocked +Label: AE Lock an +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/status/fvlocked +Label: FV Lock an +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/imgsettings/imagesize +Label: Bildgröße +Type: RADIO +Current: 6016x4016 +Choice: 0 6016x4016 +Choice: 1 4512x3008 +Choice: 2 3008x2008 +/main/imgsettings/iso +Label: ISO-Geschwindigkeit +Type: RADIO +Current: 200 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 51200 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: An +Choice: 0 An +Choice: 1 Aus +/main/imgsettings/whitebalance +Label: Weißabgleich +Type: RADIO +Current: Automatisch +Choice: 0 Automatisch +Choice: 1 Tageslicht +Choice: 2 Kunstlicht - Fluoreszenzlampe +Choice: 3 Kunstlicht - Glühlampe +Choice: 4 Blitz +Choice: 5 Wolkig +Choice: 6 Schatten +Choice: 7 Farbtemperatur +Choice: 8 Voreinstellung +/main/imgsettings/colorspace +Label: Farbraum +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: An +Choice: 0 An +Choice: 1 Aus +/main/capturesettings/longexpnr +Label: Rauschunterdrückung bei Langzeit Aufnahme +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/capturesettings/assistlight +Label: Autofokus Hilfslicht +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/capturesettings/exposurecompensation +Label: Belichtungskompensation +Type: RADIO +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/capturesettings/flashmode +Label: Blitzmodus +Type: RADIO +Current: Auto +Choice: 0 Blitz aus +Choice: 1 automatische Rote-Augen-Vermeidung +Choice: 2 Auto +Choice: 3 Automatischer Langsamer Sync +Choice: 4 Hinterer Vorhang Sync+Langsamer Sync +Choice: 5 Rote-Augen-Vermeidung + Langsamer Sync +/main/capturesettings/nikonflashmode +Label: Nikon Blitzmodus +Type: RADIO +Current: iTTL +Choice: 0 iTTL +Choice: 1 Manuell +Choice: 2 Commander +Choice: 3 Wiederholend +/main/capturesettings/f-number +Label: F-Nummer +Type: RADIO +Current: f/3,5 +Choice: 0 f/3,5 +Choice: 1 f/4 +Choice: 2 f/4,5 +Choice: 3 f/5 +Choice: 4 f/5,6 +Choice: 5 f/6,3 +Choice: 6 f/7,1 +Choice: 7 f/8 +Choice: 8 f/9 +Choice: 9 f/10 +Choice: 10 f/11 +Choice: 11 f/13 +Choice: 12 f/14 +Choice: 13 f/16 +Choice: 14 f/18 +Choice: 15 f/20 +Choice: 16 f/22 +/main/capturesettings/flexibleprogram +Label: Flexibles Programm +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/capturesettings/imagequality +Label: Bildqualität +Type: RADIO +Current: NEF+Fein +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fein +Choice: 3 NEF (Raw) +Choice: 4 NEF+Basic +Choice: 5 NEF+Normal +Choice: 6 NEF+Fein +/main/capturesettings/focallength +Label: Fokus Tiefe +Type: RANGE +Current: 24 +Bottom: 24 +Top: 85 +Step: 0,01 +/main/capturesettings/focusmode +Label: Fokusmodus +Type: RADIO +Current: AF-A +Choice: 0 Manuell +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unbekannter Wert 8013 +/main/capturesettings/focusmode2 +Label: Fokusmodus 2 +Type: RADIO +Current: AF-A +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fest) +Choice: 4 MF (selektiert) +/main/capturesettings/effectmode +Label: Effektmodus +Type: RADIO +Current: Unbekannter Wert 00ff +Choice: 0 Nachtsicht +Choice: 1 Farbmalmodus +Choice: 2 Miniatur Effekt +Choice: 3 Selektive Farbe +Choice: 4 Silhouette +Choice: 5 High Key +Choice: 6 Low Key +Choice: 7 Unbekannter Wert 00ff +/main/capturesettings/expprogram +Label: Belichtungs Programm +Type: RADIO +Current: P +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Nachtlandschaft +Choice: 6 Automatischer (Kein Blitz) +Choice: 7 Unbekannter Wert 8019 +Choice: 8 Unbekannter Wert 8050 +Choice: 9 Unbekannter Wert 8051 +/main/capturesettings/scenemode +Label: Szenen Modus +Type: RADIO +Current: Unbekannter Wert 00ff +Choice: 0 Nachtlandschaft +Choice: 1 Party/Innenraum +Choice: 2 Strand/Schnee +Choice: 3 Sonnenuntergang +Choice: 4 Dämmerung +Choice: 5 Tierportrait +Choice: 6 Kerzenlicht +Choice: 7 Blume +Choice: 8 Herbstfarben +Choice: 9 Essen +Choice: 10 Unbekannter Wert 000a +Choice: 11 Unbekannter Wert 000b +Choice: 12 Unbekannter Wert 000c +Choice: 13 Portrait +Choice: 14 Landschaft +Choice: 15 Kinder +Choice: 16 Sport +Choice: 17 Nahaufnahme +Choice: 18 Nachtportrait +Choice: 19 Unbekannter Wert 00ff +/main/capturesettings/hdrmode +Label: HDR Modus +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/capturesettings/hdrsmoothing +Label: HDR Weichzeichnen +Type: RADIO +Current: Auto +Choice: 0 Hoch +Choice: 1 Normal +Choice: 2 Niedrig +Choice: 3 Auto +Choice: 4 Extra hoch +/main/capturesettings/capturemode +Label: Bildaufnahme Modus +Type: RADIO +Current: Einzelbild +Choice: 0 Einzelbild +Choice: 1 Mehrbild +Choice: 2 Kontinuierlicher Langsame Geschwindigkeit +Choice: 3 Selbstauslöser +Choice: 4 Spiegel hochklappen +Choice: 5 Leises Auslösen +Choice: 6 Unbekannter Wert 8018 +/main/capturesettings/focusmetermode +Label: Entfernungs Messungs Modus +Type: RADIO +Current: Nächstes Subjekt +Choice: 0 Mehrpunkt +Choice: 1 Einzelbereich +Choice: 2 Nächstes Subjekt +Choice: 3 Gruppendynamik +Choice: 4 Unbekannter Wert 8013 +Choice: 5 Unbekannter Wert 8014 +Choice: 6 Unbekannter Wert 8015 +/main/capturesettings/exposuremetermode +Label: Belichtungsmessmodus +Type: RADIO +Current: Mehrpunkt +Choice: 0 Mittelpunkt/Gewichtet +Choice: 1 Mehrpunkt +Choice: 2 Zentral Punkt +Choice: 3 Unbekannter Wert 8010 +/main/capturesettings/shutterspeed +Label: Belichtungszeit +Type: RADIO +Current: 0,0400s +Choice: 0 0,0002s +Choice: 1 0,0003s +Choice: 2 0,0004s +Choice: 3 0,0005s +Choice: 4 0,0006s +Choice: 5 0,0008s +Choice: 6 0,0010s +Choice: 7 0,0012s +Choice: 8 0,0015s +Choice: 9 0,0020s +Choice: 10 0,0025s +Choice: 11 0,0031s +Choice: 12 0,0040s +Choice: 13 0,0050s +Choice: 14 0,0062s +Choice: 15 0,0080s +Choice: 16 0,0100s +Choice: 17 0,0125s +Choice: 18 0,0166s +Choice: 19 0,0200s +Choice: 20 0,0250s +Choice: 21 0,0333s +Choice: 22 0,0400s +/main/capturesettings/shutterspeed2 +Label: Belichtungszeit 2 +Type: RADIO +Current: 1/25 +Choice: 0 1/4000 +Choice: 1 1/3200 +Choice: 2 1/2500 +Choice: 3 1/2000 +Choice: 4 1/1600 +Choice: 5 1/1250 +Choice: 6 1/1000 +Choice: 7 1/800 +Choice: 8 1/640 +Choice: 9 1/500 +Choice: 10 1/400 +Choice: 11 1/320 +Choice: 12 1/250 +Choice: 13 1/200 +Choice: 14 1/160 +Choice: 15 1/125 +Choice: 16 1/100 +Choice: 17 1/80 +Choice: 18 1/60 +Choice: 19 1/50 +Choice: 20 1/40 +Choice: 21 1/30 +Choice: 22 1/25 +/main/capturesettings/focusareawrap +Label: Fokus Bereich Wraparound +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/capturesettings/exposuredelaymode +Label: Belichtungs Verzögerungs Modus +Type: RADIO +Current: An +Choice: 0 An +Choice: 1 Aus +/main/capturesettings/liveviewafmode +Label: Live View AF Modus +Type: RADIO +Current: Weitwinkel AF +Choice: 0 AF mit Gesichts-Priorität +Choice: 1 Weitwinkel AF +Choice: 2 Normaler Bereich AF +Choice: 3 Subjektfolgender AF +/main/capturesettings/liveviewaffocus +Label: Live View AF Fokus +Type: RADIO +Current: Einzel AF +Choice: 0 Einzel AF +Choice: 1 Kontinuierlicher AF +Choice: 2 Unbekannter Wert 0003 +Choice: 3 Manueller Fokus +/main/capturesettings/filenrsequencing +Label: Bildnummer Zählung +Type: RADIO +Current: An +Choice: 0 An +Choice: 1 Aus +/main/capturesettings/imagerotationflag +Label: Rotationsmarkierung +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/capturesettings/nocfcardrelease +Label: Auslösen ohne CF Karte +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/capturesettings/autofocusarea +Label: Autofokusbereich +Type: RADIO +Current: Zentrum +Choice: 0 Zentrum +Choice: 1 Oben +Choice: 2 Unten +Choice: 3 Links +Choice: 4 Rechts +Choice: 5 Unbekannter Wert 0005 +Choice: 6 Unbekannter Wert 0006 +Choice: 7 Unbekannter Wert 0007 +Choice: 8 Unbekannter Wert 0008 +Choice: 9 Unbekannter Wert 0009 +Choice: 10 Unbekannter Wert 000a +Choice: 11 Unbekannter Wert 000b +Choice: 12 Unbekannter Wert 000c +Choice: 13 Unbekannter Wert 000d +Choice: 14 Unbekannter Wert 000e +Choice: 15 Unbekannter Wert 000f +Choice: 16 Unbekannter Wert 0010 +Choice: 17 Unbekannter Wert 0011 +Choice: 18 Unbekannter Wert 0012 +Choice: 19 Unbekannter Wert 0013 +Choice: 20 Unbekannter Wert 0014 +Choice: 21 Unbekannter Wert 0015 +Choice: 22 Unbekannter Wert 0016 +Choice: 23 Unbekannter Wert 0017 +Choice: 24 Unbekannter Wert 0018 +Choice: 25 Unbekannter Wert 0019 +Choice: 26 Unbekannter Wert 001a +Choice: 27 Unbekannter Wert 001b +Choice: 28 Unbekannter Wert 001c +Choice: 29 Unbekannter Wert 001d +Choice: 30 Unbekannter Wert 001e +Choice: 31 Unbekannter Wert 001f +Choice: 32 Unbekannter Wert 0020 +Choice: 33 Unbekannter Wert 0021 +Choice: 34 Unbekannter Wert 0022 +Choice: 35 Unbekannter Wert 0023 +Choice: 36 Unbekannter Wert 0024 +Choice: 37 Unbekannter Wert 0025 +Choice: 38 Unbekannter Wert 0026 +Choice: 39 Unbekannter Wert 0027 +Choice: 40 Unbekannter Wert 0028 +Choice: 41 Unbekannter Wert 0029 +Choice: 42 Unbekannter Wert 002a +Choice: 43 Unbekannter Wert 002b +Choice: 44 Unbekannter Wert 002c +Choice: 45 Unbekannter Wert 002d +Choice: 46 Unbekannter Wert 002e +Choice: 47 Unbekannter Wert 002f +Choice: 48 Unbekannter Wert 0030 +Choice: 49 Unbekannter Wert 0031 +Choice: 50 Unbekannter Wert 0032 +Choice: 51 Unbekannter Wert 0033 +/main/capturesettings/flashexposurecompensation +Label: Blitz Belichtungskompensation +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0,333333 +/main/capturesettings/bracketing +Label: Abstufung +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +/main/capturesettings/evstep +Label: EV-Schritt +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Abstufungsbereich +Type: RADIO +Current: AE & Blitz +Choice: 0 AE & Blitz +Choice: 1 nur AE +Choice: 2 nur Blitz +Choice: 3 Weißabgleichabstufung +Choice: 4 ADL Abstufung +/main/capturesettings/bracketorder +Label: Abstufungsrichtung +Type: RADIO +Current: MTR > Unter +Choice: 0 MTR > Unter +Choice: 1 Unter > MTR +/main/capturesettings/burstnumber +Label: Bildzahl im Burstmodus +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: Weißabgleich Abweichung Preset Nr +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/capturesettings/whitebiaspreset1 +Label: Weißabgleich Abweichung Preset 1 +Type: TEXT +Current: 32702807 +/main/capturesettings/whitebiaspreset2 +Label: Weißabgleich Abweichung Preset 2 +Type: TEXT +Current: 32702807 +/main/capturesettings/whitebiaspreset3 +Label: Weißabgleich Abweichung Preset 3 +Type: TEXT +Current: 32702807 +/main/capturesettings/whitebiaspreset4 +Label: Weißabgleich Abweichung Preset 4 +Type: TEXT +Current: 32702807 +/main/capturesettings/centerweightsize +Label: Mittelpunkt/Gewichtet Bereich +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +Choice: 2 10 mm +Choice: 3 12 mm +Choice: 4 Durchschnitt +/main/capturesettings/flashshutterspeed +Label: Blitz Belichtungszeit +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +Choice: 1 1/30 +Choice: 2 1/15 +Choice: 3 1/8 +Choice: 4 1/4 +Choice: 5 1/2 +Choice: 6 1 +Choice: 7 2 +Choice: 8 4 +Choice: 9 8 +Choice: 10 15 +Choice: 11 30 +/main/capturesettings/applicationmode +Label: Applikationsmodus +Type: RADIO +Current: Applikationsmodus 0 +Choice: 0 Applikationsmodus 0 +Choice: 1 Applikationsmodus 1 +/main/capturesettings/microphone +Label: Mikrofon +Type: RADIO +Current: Auto Empfindlichkeit +Choice: 0 Auto Empfindlichkeit +Choice: 1 Hohe Empfindlichkeit +Choice: 2 Mittlere Empfindlichkeit +Choice: 3 Niedrige Empfindlichkeit +Choice: 4 Mikrofon aus +Choice: 5 Unbekannter Wert 0005 +/main/capturesettings/autodistortioncontrol +Label: Automatische Verzerrungs Kontrolle +Type: RADIO +Current: An +Choice: 0 An +Choice: 1 Aus +/main/other/5001 +Label: Batterie Ladezustand +Type: MENU +Current: 60 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/5003 +Label: Bildgröße +Type: MENU +Current: 6016x4016 +Choice: 0 6016x4016 +Choice: 1 4512x3008 +Choice: 2 3008x2008 +/main/other/5004 +Label: Kompressions Parameter +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/5005 +Label: Weißabgleich +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +/main/other/5007 +Label: F-Nummer +Type: MENU +Current: 350 +Choice: 0 350 +Choice: 1 400 +Choice: 2 450 +Choice: 3 500 +Choice: 4 560 +Choice: 5 630 +Choice: 6 710 +Choice: 7 800 +Choice: 8 900 +Choice: 9 1000 +Choice: 10 1100 +Choice: 11 1300 +Choice: 12 1400 +Choice: 13 1600 +Choice: 14 1800 +Choice: 15 2000 +Choice: 16 2200 +/main/other/5008 +Label: Fokus Tiefe +Type: RANGE +Current: 2400 +Bottom: 2400 +Top: 8500 +Step: 1 +/main/other/500a +Label: Fokusmodus +Type: MENU +Current: 32786 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Belichtungsmessmodus +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 32784 +/main/other/500c +Label: Blitzmodus +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32787 +/main/other/500d +Label: Belichtungszeit +Type: MENU +Current: 400 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 8 +Choice: 6 10 +Choice: 7 12 +Choice: 8 15 +Choice: 9 20 +Choice: 10 25 +Choice: 11 31 +Choice: 12 40 +Choice: 13 50 +Choice: 14 62 +Choice: 15 80 +Choice: 16 100 +Choice: 17 125 +Choice: 18 166 +Choice: 19 200 +Choice: 20 250 +Choice: 21 333 +Choice: 22 400 +/main/other/500e +Label: Belichtungs Programm Modus +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32790 +Choice: 6 32792 +Choice: 7 32793 +Choice: 8 32848 +Choice: 9 32849 +/main/other/500f +Label: Belichtungs Index (nach ISO) +Type: MENU +Current: 200 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 51200 +/main/other/5010 +Label: Belichtungskompensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Datum und Zeit +Type: TEXT +Current: 20141203T211355 +/main/other/5013 +Label: Bildaufnahme Modus +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32790 +Choice: 6 32792 +/main/other/5018 +Label: Bildzahl im Burstmodus +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Entfernungs Messungs Modus +Type: MENU +Current: 32785 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +Choice: 6 32789 +/main/other/501e +Label: Künstler +Type: TEXT +Current: Juergen Blumenschein +/main/other/501f +Label: Copyright Information +Type: TEXT +Current: +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Setze Menübank 0 zurück +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d016 +Label: RAW Kompression +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d017 +Label: Automatische Weißabgleich Abweichung +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d018 +Label: Tungsten Weißabgleich Abweichung +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d019 +Label: Floureszierend Weißabgleich Abweichung +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01a +Label: Tageslicht Weißabgleich Abweichung +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01b +Label: Blitz Weißabgleich Abweichung +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01c +Label: Wolkig Weißabgleich Abweichung +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01d +Label: Schattig Weißabgleich Abweichung +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01e +Label: Weißabgleich Farbtemperatur +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d01f +Label: Weißabgleich Preset Nummer +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d021 +Label: Weißabgleich Preset Name 1 +Type: TEXT +Current: +/main/other/d022 +Label: Weißabgleich Preset Name 2 +Type: TEXT +Current: +/main/other/d023 +Label: Weißabgleich Preset Name 3 +Type: TEXT +Current: +/main/other/d024 +Label: Weißabgleich Preset Name 4 +Type: TEXT +Current: +/main/other/d026 +Label: Weißabgleich Preset Wert 1 +Type: TEXT +Current: 32702807 +/main/other/d027 +Label: Weißabgleich Preset Wert 2 +Type: TEXT +Current: 32702807 +/main/other/d028 +Label: Weißabgleich Preset Wert 3 +Type: TEXT +Current: 32702807 +/main/other/d029 +Label: Weißabgleich Preset Wert 4 +Type: TEXT +Current: 32702807 +/main/other/d02e +Label: Fokus Tiefe der Linse (Nicht CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d02f +Label: Maximale Blende der Linse (Nicht CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +/main/other/d030 +Label: Aufnahme Modus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d031 +Label: JPEG Kompression Policy +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Farbraum +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d033 +Label: Automatisches DX Crop +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d034 +Label: Flimmer Vermeidung +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d037 +Label: Effektmodus +Type: MENU +Current: 255 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d038 +Label: PTP Property 0xd038 +Type: TEXT +Current: +/main/other/d039 +Label: PTP Property 0xd039 +Type: TEXT +Current: +/main/other/d03a +Label: PTP Property 0xd03a +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d03b +Label: PTP Property 0xd03b +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d03c +Label: PTP Property 0xd03c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03d +Label: PTP Property 0xd03d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03e +Label: PTP Property 0xd03e +Type: TEXT +Current: 32702807 +/main/other/d03f +Label: PTP Property 0xd03f +Type: TEXT +Current: 32702807 +/main/other/d045 +Label: Setze Menübank zurück +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d04f +Label: Fokus Bereich Wraparound +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d051 +Label: AF Lock An +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d053 +Label: Copyright aktivieren +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d055 +Label: Belichtungs ISO Schritt +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d056 +Label: Belichtungszeitschritt +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d059 +Label: Mittelpunkt/Gewichtet Bereich +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d05a +Label: Belichtungs Basis Matrix +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05b +Label: Belichtungs Basis Zentrum +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05c +Label: Belichtungs Basis Punkt +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05d +Label: Liveview AF Bereich +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d061 +Label: Live View AF Fokus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d067 +Label: Neigung +Type: TEXT +Current: 4445177 +/main/other/d068 +Label: Abstand bei Mehrfachbelichtung +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d069 +Label: Maximale Bildanzahl +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/d06a +Label: Belichtungs Verzögerungs Modus +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d06b +Label: Langzeitbelichtungsrauschkompensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: Bildnummer Zählung +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: Rauschunterdrückung bei hohen ISO +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d072 +Label: Künstlername +Type: TEXT +Current: Juergen Blumenschein +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: +/main/other/d074 +Label: Blitzsynchronisations Geschwindigkeit +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d075 +Label: Blitz Belichtungszeit +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d078 +Label: Abstufungsbereich +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d07a +Label: Abstufungsrichtung +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d07d +Label: PTP Property 0xd07d +Type: TEXT +Current: -1 +/main/other/d07e +Label: PTP Property 0xd07e +Type: TEXT +Current: -1 +/main/other/d087 +Label: Blendeneinstellung +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08a +Label: Auslösen ohne CF Karte +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Bereich Punkt +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Säubere Bildsensor +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Bild Kommentar +Type: TEXT +Current: +/main/other/d091 +Label: Bild Kommentar anschalten +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Bildrotationsflag +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d093 +Label: Manuell gesetzte Objektivnummer +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d09c +Label: PTP Property 0xd09c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Film Bildschirmgrösse +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d0a2 +Label: Film Mikrofon +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0a3 +Label: Film Kartenslot +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 0 +/main/other/d0a7 +Label: Filmqualität +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0aa +Label: PTP Property 0xd0aa +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ab +Label: PTP Property 0xd0ab +Type: TEXT +Current: 32894 +/main/other/d0ac +Label: PTP Property 0xd0ac +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ad +Label: PTP Property 0xd0ad +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ae +Label: PTP Property 0xd0ae +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Type: TEXT +Current: 6400 +/main/other/d0c0 +Label: Aktivierung der Abstufung +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Belichtungs Abstufung Schritt +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c2 +Label: Belichtungs Abstufung Programm +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c3 +Label: Automatische Belichtungs Abstufung Anzahl +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d0c4 +Label: Automatische Weißabgleich Abweichung Schritt +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: Automatische Weißabgleich Abweichung Programm +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0c7 +Label: PTP Property 0xd0c7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0e0 +Label: Objektiv Kennung +Type: TEXT +Current: 180 +/main/other/d0e1 +Label: Objektivart +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Objektivtyp +Type: TEXT +Current: 39 +/main/other/d0e3 +Label: Minimale Brennweite +Type: TEXT +Current: 2400 +/main/other/d0e4 +Label: Maximale Brennweite +Type: TEXT +Current: 8500 +/main/other/d0e5 +Label: Maximale Blende bei Minimaler Brennweite +Type: TEXT +Current: 350 +/main/other/d0e6 +Label: Maximale Blende bei maximaler Brennweite +Type: TEXT +Current: 450 +/main/other/d0f7 +Label: Vignette Einstellungen +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0f8 +Label: Automatische Verzerrungs Kontrolle +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0f9 +Label: Szenen Modus +Type: MENU +Current: 255 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d0fc +Label: PTP Property 0xd0fc +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +/main/other/d0fd +Label: PTP Property 0xd0fd +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +/main/other/d100 +Label: Nikon Belichtungszeit +Type: MENU +Current: 65561 +Choice: 0 69536 +Choice: 1 68736 +Choice: 2 68036 +Choice: 3 67536 +Choice: 4 67136 +Choice: 5 66786 +Choice: 6 66536 +Choice: 7 66336 +Choice: 8 66176 +Choice: 9 66036 +Choice: 10 65936 +Choice: 11 65856 +Choice: 12 65786 +Choice: 13 65736 +Choice: 14 65696 +Choice: 15 65661 +Choice: 16 65636 +Choice: 17 65616 +Choice: 18 65596 +Choice: 19 65586 +Choice: 20 65576 +Choice: 21 65566 +Choice: 22 65561 +/main/other/d101 +Label: Netzanschluss +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warn Status +Type: TEXT +Current: 0 +/main/other/d104 +Label: AF Lock an +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Lock an +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d106 +Label: FV Lock an +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Aktiver AF Sensor +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +/main/other/d109 +Label: Flexibles Programm +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Aufnahmemedium +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Kameraausrichtung +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d120 +Label: Externer Blitz angesteckt +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: Status Externer Blitz +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: Art des externen Blitz +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: Externer Blitz Belichtungskompensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: Externer Blitzmodus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d126 +Label: Blitz Belichtungskompensation +Type: RANGE +Current: 0 +Bottom: -18 +Top: 6 +Step: 2 +/main/other/d12d +Label: PTP Property 0xd12d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d130 +Label: HDR Modus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d132 +Label: HDR Weichzeichnen +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d141 +Label: PTP Property 0xd141 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d148 +Label: Slot 2 Speichermodus +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d149 +Label: RAW Bit Modus +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: Aktives D-Lighting +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Fluoreszenz Typ +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d150 +Label: Farbtemperatur einstellen +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +/main/other/d152 +Label: Voreinstellung 1 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d153 +Label: Voreinstellung 2 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d154 +Label: Voreinstellung 3 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d155 +Label: Voreinstellung 4 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d158 +Label: PTP Property 0xd158 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d159 +Label: PTP Property 0xd159 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15a +Label: PTP Property 0xd15a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15b +Label: PTP Property 0xd15b +Type: RANGE +Current: 100 +Bottom: 100 +Top: 999 +Step: 1 +/main/other/d15c +Label: PTP Property 0xd15c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15d +Label: PTP Property 0xd15d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d161 +Label: Autofokus Modus +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d163 +Label: Autofokus Hilfslicht +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d164 +Label: Auto ISO P/A/DVP Einstellung +Type: MENU +Current: 29 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +/main/other/d167 +Label: Blitzmodus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d16a +Label: ISO Auto +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +/main/other/d197 +Label: PTP Property 0xd197 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Zoom Faktor +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d1a4 +Label: Live View Verhinderungszustand +Type: TEXT +Current: 0 +/main/other/d1a5 +Label: PTP Property 0xd1a5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a6 +Label: PTP Property 0xd1a6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a8 +Label: PTP Property 0xd1a8 +Type: MENU +Current: 69536 +Choice: 0 69536 +Choice: 1 68736 +Choice: 2 68036 +Choice: 3 67536 +Choice: 4 67136 +Choice: 5 66786 +Choice: 6 66536 +Choice: 7 66336 +Choice: 8 66176 +Choice: 9 66036 +Choice: 10 65936 +Choice: 11 65856 +Choice: 12 65786 +Choice: 13 65736 +Choice: 14 65696 +Choice: 15 65661 +Choice: 16 65636 +Choice: 17 65616 +Choice: 18 65596 +/main/other/d1a9 +Label: PTP Property 0xd1a9 +Type: MENU +Current: 350 +Choice: 0 350 +Choice: 1 400 +Choice: 2 450 +Choice: 3 500 +Choice: 4 560 +Choice: 5 630 +Choice: 6 710 +Choice: 7 800 +Choice: 8 900 +Choice: 9 1000 +Choice: 10 1100 +Choice: 11 1300 +Choice: 12 1400 +Choice: 13 1600 +Choice: 14 1800 +Choice: 15 2000 +Choice: 16 2200 +/main/other/d1aa +Label: PTP Property 0xd1aa +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +Choice: 25 51200 +/main/other/d1ab +Label: PTP Property 0xd1ab +Type: MENU +Current: 0 +Choice: 0 -3000 +Choice: 1 -2666 +Choice: 2 -2333 +Choice: 3 -2000 +Choice: 4 -1666 +Choice: 5 -1333 +Choice: 6 -1000 +Choice: 7 -666 +Choice: 8 -333 +Choice: 9 0 +Choice: 10 333 +Choice: 11 666 +Choice: 12 1000 +Choice: 13 1333 +Choice: 14 1666 +Choice: 15 2000 +Choice: 16 2333 +Choice: 17 2666 +Choice: 18 3000 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d1af +Label: PTP Property 0xd1af +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 32784 +/main/other/d1b0 +Label: Belichtungs Anzeige Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Belichtungs Indikator Status +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: Info Anzeige Fehler Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Belichtungs Indikator Aufleuchten +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: MENU +Current: 10 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/d1c0 +Label: Blitz offen +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1c1 +Label: Blitz geladen +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 553 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d1f2 +Label: PTP Property 0xd1f2 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d200 +Label: Aktiviertes Pic Ctrl Item +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 201 +Choice: 8 202 +Choice: 9 203 +Choice: 10 204 +Choice: 11 205 +Choice: 12 206 +Choice: 13 207 +Choice: 14 208 +Choice: 15 209 +/main/other/d201 +Label: Ändere Pic Ctrl Item +Type: MENU +Current: 0 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d20f +Label: PTP Property 0xd20f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d210 +Label: PTP Property 0xd210 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d211 +Label: PTP Property 0xd211 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d213 +Label: PTP Property 0xd213 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d214 +Label: PTP Property 0xd214 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d215 +Label: PTP Property 0xd215 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d216 +Label: PTP Property 0xd216 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d217 +Label: PTP Property 0xd217 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d219 +Label: PTP Property 0xd219 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d21a +Label: PTP Property 0xd21a +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d21b +Label: PTP Property 0xd21b +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +/main/other/d21c +Label: PTP Property 0xd21c +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d21d +Label: PTP Property 0xd21d +Type: TEXT +Current: +/main/other/d21e +Label: PTP Property 0xd21e +Type: TEXT +Current: +/main/other/d21f +Label: PTP Property 0xd21f +Type: TEXT +Current: +/main/other/d220 +Label: PTP Property 0xd220 +Type: TEXT +Current: +/main/other/d221 +Label: PTP Property 0xd221 +Type: TEXT +Current: +/main/other/d222 +Label: PTP Property 0xd222 +Type: TEXT +Current: +/main/other/d223 +Label: PTP Property 0xd223 +Type: TEXT +Current: 32702807 +/main/other/d224 +Label: PTP Property 0xd224 +Type: TEXT +Current: 32702807 +/main/other/d225 +Label: PTP Property 0xd225 +Type: TEXT +Current: 32702807 +/main/other/d226 +Label: PTP Property 0xd226 +Type: TEXT +Current: 32702807 +/main/other/d227 +Label: PTP Property 0xd227 +Type: TEXT +Current: 32702807 +/main/other/d228 +Label: PTP Property 0xd228 +Type: TEXT +Current: 32702807 +/main/other/d229 +Label: PTP Property 0xd229 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22a +Label: PTP Property 0xd22a +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22b +Label: PTP Property 0xd22b +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22c +Label: PTP Property 0xd22c +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22d +Label: PTP Property 0xd22d +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22e +Label: PTP Property 0xd22e +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22f +Label: PTP Property 0xd22f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d230 +Label: PTP Property 0xd230 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d231 +Label: PTP Property 0xd231 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d232 +Label: PTP Property 0xd232 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d233 +Label: PTP Property 0xd233 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d234 +Label: PTP Property 0xd234 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d235 +Label: PTP Property 0xd235 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d236 +Label: PTP Property 0xd236 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d237 +Label: PTP Property 0xd237 +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 100 +Choice: 8 201 +Choice: 9 202 +Choice: 10 203 +Choice: 11 204 +Choice: 12 205 +Choice: 13 206 +Choice: 14 207 +Choice: 15 208 +Choice: 16 209 +/main/other/d238 +Label: PTP Property 0xd238 +Type: MENU +Current: 0 +/main/other/d239 +Label: PTP Property 0xd239 +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d23a +Label: PTP Property 0xd23a +Type: MENU +Current: 32789 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32786 +Choice: 7 32787 +Choice: 8 32789 + + +Device info: +Manufacturer: Nikon Corporation + Model: D750 + device version: V1.00f + serial number: '0000000000000000000000000nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: Microsoft.com/DeviceServices: +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9209 + 0x920a + 0x920b + 0x920c + 0x9400 + 0x9402 + 0x9403 + 0x9404 + 0x9405 + 0x9406 + 0x9407 + 0x9408 + 0x9409 + 0x940a + 0x940b + 0x940c + 0x940d + 0x940e + 0x940f + 0x9410 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 + 0xc105 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0x501e + 0x501f + 0xd303 + 0xd406 + 0xd407 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd037 + 0xd038 + 0xd039 + 0xd03a + 0xd03b + 0xd03c + 0xd03d + 0xd03e + 0xd03f + 0xd045 + 0xd048 + 0xd049 + 0xd04f + 0xd051 + 0xd053 + 0xd054 + 0xd055 + 0xd056 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05d + 0xd061 + 0xd067 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd070 + 0xd072 + 0xd073 + 0xd074 + 0xd075 + 0xd078 + 0xd07a + 0xd07d + 0xd07e + 0xd087 + 0xd08a + 0xd08d + 0xd08f + 0xd090 + 0xd091 + 0xd092 + 0xd093 + 0xd09c + 0xd0a0 + 0xd0a2 + 0xd0a3 + 0xd0a4 + 0xd0a7 + 0xd0a8 + 0xd0aa + 0xd0ab + 0xd0ac + 0xd0ad + 0xd0ae + 0xd0b5 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0c7 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f7 + 0xd0f8 + 0xd0f9 + 0xd0fc + 0xd0fd + 0xd100 + 0xd101 + 0xd102 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10e + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd12d + 0xd130 + 0xd132 + 0xd141 + 0xd148 + 0xd149 + 0xd14e + 0xd14f + 0xd150 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd158 + 0xd159 + 0xd15a + 0xd15b + 0xd15c + 0xd15d + 0xd161 + 0xd163 + 0xd164 + 0xd167 + 0xd16a + 0xd183 + 0xd197 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1a5 + 0xd1a6 + 0xd1a8 + 0xd1a9 + 0xd1aa + 0xd1ab + 0xd1ac + 0xd1af + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1b4 + 0xd1c0 + 0xd1c1 + 0xd1f0 + 0xd1f1 + 0xd1f2 + 0xd1f4 + 0xd200 + 0xd201 + 0xd20e + 0xd20f + 0xd210 + 0xd211 + 0xd212 + 0xd213 + 0xd214 + 0xd215 + 0xd216 + 0xd217 + 0xd218 + 0xd219 + 0xd21a + 0xd21b + 0xd21c + 0xd21d + 0xd21e + 0xd21f + 0xd220 + 0xd221 + 0xd222 + 0xd223 + 0xd224 + 0xd225 + 0xd226 + 0xd227 + 0xd228 + 0xd229 + 0xd22a + 0xd22b + 0xd22c + 0xd22d + 0xd22e + 0xd22f + 0xd230 + 0xd231 + 0xd232 + 0xd233 + 0xd234 + 0xd235 + 0xd236 + 0xd237 + 0xd238 + 0xd239 + 0xd23a diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7500.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7500.txt new file mode 100644 index 00000000..6f3ac921 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d7500.txt @@ -0,0 +1,4026 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D7500 + Version: V1.00 + Serial Number: 0000000000000000000000000nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Microsoft.com/DeviceServices: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script, Apple Quicktime, Unknown(b982) + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3 + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D7500 [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 127831900160 (121910 MB) + Free Space (Bytes): 127816564736 (121895 MB) + Free Space (Images): 16813 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 80% (80) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '5568x3712', + '4176x2784', + '2784x1856' + ] value: '5568x3712' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,7,8,9,10,11,12,13] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/3.5 (350) +Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 14000, step 1] value: 18 mm (1800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-A (32786) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4,32784] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784,32786] value: Auto (32784) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.1 sec (10000) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32790,32792,32793,32848,32849] value: S (4) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20170901T224452' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790,32792] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788,32789] value: Closest Subject (32785) +Artist(0x501e):(read only) (type=0xffff) '' +Copyright Info(0x501f):(read only) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Lossless (0) +Auto White Balance Bias(0xd017):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 304876602 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 304876602 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 304876602 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 304876602 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Flicker Reduction(0xd034):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Effect Mode(0xd037):(readwrite) (type=0x2) Range [0 - 10, step 1] value: 10 +Property 0xd038:(readwrite) (type=0xffff) ' ' +Property 0xd039:(readwrite) (type=0xffff) ' ' +Property 0xd03a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03e:(read only) (type=0x6) 304876602 +Property 0xd03f:(read only) (type=0x6) 304876602 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 0 +Angle Level(0xd067):(read only) (type=0x5) 0.4' (28572) +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [2 - 8, step 1] value: 6 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 100, step 1] value: 100 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Artist Name(0xd072):(readwrite) (type=0xffff) '' +Copyright Information(0xd073):(readwrite) (type=0xffff) '' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 2 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Property 0xd07d:(read only) (type=0x5) 213962 +Property 0xd07e:(read only) (type=0x5) -1 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) '' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd09f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 3 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 0 +Movie Quality(0xd0a7):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0aa:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ab:(read only) (type=0x4) 32894 +Property 0xd0ac:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ad:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ae:(readwrite) (type=0x2) Range [0 - 40, step 1] value: 32 +Property 0xd0af:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd0b4:(readwrite) (type=0x6) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,81200,102400,204800,409600,820000,1640000] value: 100 +Property 0xd0b5:(read only) (type=0x6) 1100 +Property 0xd0b7:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(read only) (type=0x2) Range [0 - 5, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 1, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x4) 416 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x8) 63 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 140 mm (14000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560) +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Scene Mode(0xd0f9):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 13 +Property 0xd0fc:(read only) (type=0x2) Range [0 - 32, step 1] value: 19 +Property 0xd0fd:(read only) (type=0x2) Range [0 - 32, step 1] value: 19 +Nikon Exposure Time(0xd100):(readwrite) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967294] value: 65537 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 51, step 1] value: Centre (0) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +Property 0xd118:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd12d:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +HDR Smoothing(0xd132):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 3 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Tune Preset 1(0xd152):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 2(0xd153):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 3(0xd154):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 4(0xd155):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15b:(read only) (type=0x4) Range [100 - 999, step 1] value: 100 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-A (2) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 32, step 1] value: 32 +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 2, step 1] value: iTTL (0) +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 32 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd199:(readwrite) (type=0x2) Range [0 - 41, step 1] value: 41 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a5:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a8:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596] value: 73536 +Property 0xd1a9:(read only) (type=0x4) Enumeration [0] value: 0 +Property 0xd1aa:(readwrite) (type=0x6) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,81200,102400,204800,409600,820000,1640000] value: 100 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000] value: 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2,3] value: 2 +Property 0xd1af:(read only) (type=0x4) Enumeration [2,3,32784] value: 3 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: 2 +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 100, step 1] value: 100 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x6) Range [0 - 4294967295, step 1] value: 16813 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Property 0xd1f6:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f7:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,201,202,203,204,205,206,207,208,209] value: 8 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 +Property 0xd20d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20e:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd211:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd212:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd213:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd214:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd216:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd218:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd219:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd21a:(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +Property 0xd21b:(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Property 0xd21c:(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +Property 0xd21d:(readwrite) (type=0xffff) ' ' +Property 0xd21e:(readwrite) (type=0xffff) ' ' +Property 0xd21f:(readwrite) (type=0xffff) ' ' +Property 0xd220:(readwrite) (type=0xffff) ' ' +Property 0xd221:(readwrite) (type=0xffff) ' ' +Property 0xd222:(readwrite) (type=0xffff) ' ' +Property 0xd223:(read only) (type=0x6) 304876602 +Property 0xd224:(read only) (type=0x6) 304876602 +Property 0xd225:(read only) (type=0x6) 304876602 +Property 0xd226:(read only) (type=0x6) 304876602 +Property 0xd227:(read only) (type=0x6) 304876602 +Property 0xd228:(read only) (type=0x6) 304876602 +Property 0xd229:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22c:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22d:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22e:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd230:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd231:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd232:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd233:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd234:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd235:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd236:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd237:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,100,201,202,203,204,205,206,207,208,209] value: 100 +Property 0xd238:(read only) (type=0x4) Enumeration [] value: 0 +Property 0xd239:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd23a:(readwrite) (type=0x4) Enumeration [2,4,5,6,32784,32785,32786,32787,32789] value: 32789 +Property 0xd23b:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd314:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 + +/main/actions/bulb +Label: Bulb Mode +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/changeafarea +Label: Set Nikon Autofocus area +Type: TEXT +Current: 0x0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1504273500 +Printable: Fri Sep 1 22:45:00 2017 +Help: Use 'now' as the current time when setting. + +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/cleansensor +Label: Clean Sensor +Type: RADIO +Current: Startup and Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +Choice: 3 Startup and Shutdown +/main/settings/flickerreduction +Label: Flicker Reduction +Type: RADIO +Current: Auto +Choice: 0 50 Hz +Choice: 1 60 Hz +Choice: 2 Auto +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/autofocus +Label: Autofocus +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000000000000nnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: D7500 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Microsoft.com/DeviceServices: 1.0 +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 80% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/orientation2 +Label: Camera Orientation +Type: TEXT +Current: 0' +/main/status/flashopen +Label: Flash Open +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/flashcharged +Label: Flash Charged +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 18 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 140 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 4 +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 6 +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 2 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/fvlocked +Label: FV Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 5568x3712 +Choice: 0 5568x3712 +Choice: 1 4176x2784 +Choice: 2 2784x1856 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 100 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 32000 +Choice: 29 40000 +Choice: 30 51200 +/main/imgsettings/movieiso +Label: Movie ISO Speed +Type: RADIO +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +Choice: 25 32000 +Choice: 26 40000 +Choice: 27 51200 +Choice: 28 64000 +Choice: 29 81200 +Choice: 30 102400 +Choice: 31 204800 +Choice: 32 409600 +Choice: 33 820000 +Choice: 34 1640000 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.666 +Choice: 2 -4.333 +Choice: 3 -4 +Choice: 4 -3.666 +Choice: 5 -3.333 +Choice: 6 -3 +Choice: 7 -2.666 +Choice: 8 -2.333 +Choice: 9 -2 +Choice: 10 -1.666 +Choice: 11 -1.333 +Choice: 12 -1 +Choice: 13 -0.666 +Choice: 14 -0.333 +Choice: 15 0 +Choice: 16 0.333 +Choice: 17 0.666 +Choice: 18 1 +Choice: 19 1.333 +Choice: 20 1.666 +Choice: 21 2 +Choice: 22 2.333 +Choice: 23 2.666 +Choice: 24 3 +Choice: 25 3.333 +Choice: 26 3.666 +Choice: 27 4 +Choice: 28 4.333 +Choice: 29 4.666 +Choice: 30 5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Auto +Choice: 0 Flash off +Choice: 1 Red-eye automatic +Choice: 2 Auto +Choice: 3 Rear Curtain Sync + Slow Sync +/main/capturesettings/nikonflashmode +Label: Nikon Flash Mode +Type: RADIO +Current: iTTL +Choice: 0 iTTL +Choice: 1 Manual +Choice: 2 Commander +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/3.5 +Choice: 0 f/3.5 +Choice: 1 f/4 +Choice: 2 f/4.5 +Choice: 3 f/5 +Choice: 4 f/5.6 +Choice: 5 f/6.3 +Choice: 6 f/7.1 +Choice: 7 f/8 +Choice: 8 f/9 +Choice: 9 f/10 +Choice: 10 f/11 +Choice: 11 f/13 +Choice: 12 f/14 +Choice: 13 f/16 +Choice: 14 f/18 +Choice: 15 f/20 +Choice: 16 f/22 +/main/capturesettings/movief-number +Label: Movie F-Number +Type: RADIO +Current: f/0 +Choice: 0 f/0 +/main/capturesettings/flexibleprogram +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 Unknown value 0003 +Choice: 4 NEF (Raw) +Choice: 5 NEF+Basic +Choice: 6 NEF+Fine +Choice: 7 Unknown value 0008 +Choice: 8 Unknown value 0009 +Choice: 9 Unknown value 000a +Choice: 10 Unknown value 000b +Choice: 11 Unknown value 000c +Choice: 12 Unknown value 000d +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 18 +Bottom: 18 +Top: 140 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-A +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/focusmode2 +Label: Focus Mode 2 +Type: RADIO +Current: AF-A +Choice: 0 AF-S +Choice: 1 AF-C +Choice: 2 AF-A +Choice: 3 MF (fixed) +Choice: 4 MF (selection) +/main/capturesettings/effectmode +Label: Effect Mode +Type: RADIO +Current: Unknown value 000a +Choice: 0 Night Vision +Choice: 1 Color sketch +Choice: 2 Miniature effect +Choice: 3 Selective color +Choice: 4 Silhouette +Choice: 5 High key +Choice: 6 Low key +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: S +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Night Landscape +Choice: 6 Automatic (No Flash) +Choice: 7 Unknown value 8019 +Choice: 8 Unknown value 8050 +Choice: 9 Unknown value 8051 +/main/capturesettings/scenemode +Label: Scene Mode +Type: RADIO +Current: Portrait +Choice: 0 Night landscape +Choice: 1 Party/Indoor +Choice: 2 Beach/Snow +Choice: 3 Sunset +Choice: 4 Dusk/Dawn +Choice: 5 Pet Portrait +Choice: 6 Candlelight +Choice: 7 Blossom +Choice: 8 Autumn colors +Choice: 9 Food +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Portrait +Choice: 14 Landscape +Choice: 15 Child +Choice: 16 Sports +Choice: 17 Close up +Choice: 18 Night Portrait +/main/capturesettings/hdrmode +Label: HDR Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/hdrsmoothing +Label: HDR Smoothing +Type: RADIO +Current: Auto +Choice: 0 High +Choice: 1 Normal +Choice: 2 Low +Choice: 3 Auto +Choice: 4 Extra high +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Mirror Up +Choice: 5 Quiet Release +Choice: 6 Unknown value 8018 +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Closest Subject +Choice: 0 Multi-spot +Choice: 1 Single Area +Choice: 2 Closest Subject +Choice: 3 Group Dynamic +Choice: 4 Unknown value 8013 +Choice: 5 Unknown value 8014 +Choice: 6 Unknown value 8015 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +Choice: 3 Unknown value 8010 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1.0000s +Choice: 0 0.0001s +Choice: 1 0.0002s +Choice: 2 0.0003s +Choice: 3 0.0004s +Choice: 4 0.0005s +Choice: 5 0.0006s +Choice: 6 0.0008s +Choice: 7 0.0010s +Choice: 8 0.0012s +Choice: 9 0.0015s +Choice: 10 0.0020s +Choice: 11 0.0025s +Choice: 12 0.0031s +Choice: 13 0.0040s +Choice: 14 0.0050s +Choice: 15 0.0062s +Choice: 16 0.0080s +Choice: 17 0.0100s +Choice: 18 0.0125s +Choice: 19 0.0166s +Choice: 20 0.0200s +Choice: 21 0.0250s +Choice: 22 0.0333s +Choice: 23 0.0400s +Choice: 24 0.0500s +Choice: 25 0.0666s +Choice: 26 0.0769s +Choice: 27 0.1000s +Choice: 28 0.1250s +Choice: 29 0.1666s +Choice: 30 0.2000s +Choice: 31 0.2500s +Choice: 32 0.3333s +Choice: 33 0.4000s +Choice: 34 0.5000s +Choice: 35 0.6250s +Choice: 36 0.7692s +Choice: 37 1.0000s +Choice: 38 1.3000s +Choice: 39 1.6000s +Choice: 40 2.0000s +Choice: 41 2.5000s +Choice: 42 3.0000s +Choice: 43 4.0000s +Choice: 44 5.0000s +Choice: 45 6.0000s +Choice: 46 8.0000s +Choice: 47 10.0000s +Choice: 48 13.0000s +Choice: 49 15.0000s +Choice: 50 20.0000s +Choice: 51 25.0000s +Choice: 52 30.0000s +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +Choice: 22 1/50 +Choice: 23 1/40 +Choice: 24 1/30 +Choice: 25 1/25 +Choice: 26 1/20 +Choice: 27 1/15 +Choice: 28 1/13 +Choice: 29 1/10 +Choice: 30 1/8 +Choice: 31 1/6 +Choice: 32 1/5 +Choice: 33 1/4 +Choice: 34 1/3 +Choice: 35 10/25 +Choice: 36 1/2 +Choice: 37 10/16 +Choice: 38 10/13 +Choice: 39 1 +Choice: 40 13/10 +Choice: 41 16/10 +Choice: 42 2 +Choice: 43 25/10 +Choice: 44 3 +Choice: 45 4 +Choice: 46 5 +Choice: 47 6 +Choice: 48 8 +Choice: 49 10 +Choice: 50 13 +Choice: 51 15 +Choice: 52 20 +Choice: 53 25 +Choice: 54 30 +Choice: 55 x 200 +/main/capturesettings/movieshutterspeed +Label: Movie Shutter Speed 2 +Type: RADIO +Current: 1/8000 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Wide-area AF +Choice: 0 Face-priority AF +Choice: 1 Wide-area AF +Choice: 2 Normal-area AF +Choice: 3 Subject-tracking AF +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Single-servo AF +Choice: 0 Single-servo AF +Choice: 1 Full-time-servo AF +Choice: 2 Unknown value 0003 +Choice: 3 Manual Focus +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/imagerotationflag +Label: Image Rotation Flag +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/autofocusarea +Label: Auto Focus Area +Type: RADIO +Current: Centre +Choice: 0 Centre +Choice: 1 Top +Choice: 2 Bottom +Choice: 3 Left +Choice: 4 Right +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +Choice: 22 Unknown value 0016 +Choice: 23 Unknown value 0017 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 Unknown value 001c +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +Choice: 32 Unknown value 0020 +Choice: 33 Unknown value 0021 +Choice: 34 Unknown value 0022 +Choice: 35 Unknown value 0023 +Choice: 36 Unknown value 0024 +Choice: 37 Unknown value 0025 +Choice: 38 Unknown value 0026 +Choice: 39 Unknown value 0027 +Choice: 40 Unknown value 0028 +Choice: 41 Unknown value 0029 +Choice: 42 Unknown value 002a +Choice: 43 Unknown value 002b +Choice: 44 Unknown value 002c +Choice: 45 Unknown value 002d +Choice: 46 Unknown value 002e +Choice: 47 Unknown value 002f +Choice: 48 Unknown value 0030 +Choice: 49 Unknown value 0031 +Choice: 50 Unknown value 0032 +Choice: 51 Unknown value 0033 +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0.333333 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE & Flash +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/bracketorder +Label: Bracket Order +Type: RADIO +Current: MTR > Under +Choice: 0 MTR > Under +Choice: 1 Under > MTR +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 100 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 304876602 +/main/capturesettings/whitebiaspreset2 +Label: White Balance Bias Preset 2 +Type: TEXT +Current: 304876602 +/main/capturesettings/whitebiaspreset3 +Label: White Balance Bias Preset 3 +Type: TEXT +Current: 304876602 +/main/capturesettings/whitebiaspreset4 +Label: White Balance Bias Preset 4 +Type: TEXT +Current: 304876602 +/main/capturesettings/centerweightsize +Label: Center Weight Area +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +Choice: 2 10 mm +Choice: 3 12 mm +Choice: 4 Average +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +Choice: 1 1/30 +Choice: 2 1/15 +Choice: 3 1/8 +Choice: 4 1/4 +Choice: 5 1/2 +Choice: 6 1 +Choice: 7 2 +Choice: 8 4 +Choice: 9 8 +Choice: 10 15 +Choice: 11 30 +/main/capturesettings/applicationmode +Label: Application Mode +Type: RADIO +Current: Application Mode 0 +Choice: 0 Application Mode 0 +Choice: 1 Application Mode 1 +/main/capturesettings/microphone +Label: Microphone +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +Choice: 5 Unknown value 0005 +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 80 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 5568x3712 +Choice: 0 5568x3712 +Choice: 1 4176x2784 +Choice: 2 2784x1856 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 350 +Choice: 0 350 +Choice: 1 400 +Choice: 2 450 +Choice: 3 500 +Choice: 4 560 +Choice: 5 630 +Choice: 6 710 +Choice: 7 800 +Choice: 8 900 +Choice: 9 1000 +Choice: 10 1100 +Choice: 11 1300 +Choice: 12 1400 +Choice: 13 1600 +Choice: 14 1800 +Choice: 15 2000 +Choice: 16 2200 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 1800 +Bottom: 1800 +Top: 14000 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32786 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 32784 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32784 +Choice: 3 32786 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 10000 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 8 +Choice: 7 10 +Choice: 8 12 +Choice: 9 15 +Choice: 10 20 +Choice: 11 25 +Choice: 12 31 +Choice: 13 40 +Choice: 14 50 +Choice: 15 62 +Choice: 16 80 +Choice: 17 100 +Choice: 18 125 +Choice: 19 166 +Choice: 20 200 +Choice: 21 250 +Choice: 22 333 +Choice: 23 400 +Choice: 24 500 +Choice: 25 666 +Choice: 26 769 +Choice: 27 1000 +Choice: 28 1250 +Choice: 29 1666 +Choice: 30 2000 +Choice: 31 2500 +Choice: 32 3333 +Choice: 33 4000 +Choice: 34 5000 +Choice: 35 6250 +Choice: 36 7692 +Choice: 37 10000 +Choice: 38 13000 +Choice: 39 16000 +Choice: 40 20000 +Choice: 41 25000 +Choice: 42 30000 +Choice: 43 40000 +Choice: 44 50000 +Choice: 45 60000 +Choice: 46 80000 +Choice: 47 100000 +Choice: 48 130000 +Choice: 49 150000 +Choice: 50 200000 +Choice: 51 250000 +Choice: 52 300000 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32790 +Choice: 6 32792 +Choice: 7 32793 +Choice: 8 32848 +Choice: 9 32849 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 100 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 32000 +Choice: 29 40000 +Choice: 30 51200 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20170901T224500 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32786 +Choice: 5 32790 +Choice: 6 32792 +/main/other/5018 +Label: Burst Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32785 +Choice: 0 2 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +Choice: 5 32788 +Choice: 6 32789 +/main/other/501e +Label: Artist +Type: TEXT +Current: +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d016 +Label: Raw Compression +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01e +Label: White Balance Colour Temperature +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d021 +Label: White Balance Preset Name 1 +Type: TEXT +Current: +/main/other/d022 +Label: White Balance Preset Name 2 +Type: TEXT +Current: +/main/other/d023 +Label: White Balance Preset Name 3 +Type: TEXT +Current: +/main/other/d024 +Label: White Balance Preset Name 4 +Type: TEXT +Current: +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 304876602 +/main/other/d027 +Label: White Balance Preset Value 2 +Type: TEXT +Current: 304876602 +/main/other/d028 +Label: White Balance Preset Value 3 +Type: TEXT +Current: 304876602 +/main/other/d029 +Label: White Balance Preset Value 4 +Type: TEXT +Current: 304876602 +/main/other/d030 +Label: Shooting Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d034 +Label: Flicker Reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d037 +Label: Effect Mode +Type: MENU +Current: 10 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +/main/other/d038 +Label: PTP Property 0xd038 +Type: TEXT +Current: +/main/other/d039 +Label: PTP Property 0xd039 +Type: TEXT +Current: +/main/other/d03a +Label: PTP Property 0xd03a +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d03b +Label: PTP Property 0xd03b +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d03c +Label: PTP Property 0xd03c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03d +Label: PTP Property 0xd03d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03e +Label: PTP Property 0xd03e +Type: TEXT +Current: 304876602 +/main/other/d03f +Label: PTP Property 0xd03f +Type: TEXT +Current: 304876602 +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d04f +Label: Focus Area Wrap +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d051 +Label: AF Lock On +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d055 +Label: Exposure ISO Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d059 +Label: Centre Weight Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d05a +Label: Exposure Base Matrix +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05b +Label: Exposure Base Center +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05c +Label: Exposure Base Spot +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d067 +Label: Angle Level +Type: TEXT +Current: 32296 +/main/other/d068 +Label: Shooting Speed +Type: MENU +Current: 6 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +Choice: 6 8 +/main/other/d069 +Label: Maximum Shots +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: +/main/other/d074 +Label: Flash Sync. Speed +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d075 +Label: Flash Shutter Speed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d07a +Label: Bracket Order +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d07d +Label: PTP Property 0xd07d +Type: TEXT +Current: 223257 +/main/other/d07e +Label: PTP Property 0xd07e +Type: TEXT +Current: -1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Clean Image Sensor +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d092 +Label: Image Rotation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d09c +Label: PTP Property 0xd09c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d09f +Label: PTP Property 0xd09f +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +/main/other/d0a2 +Label: Movie Microphone +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 0 +/main/other/d0a7 +Label: Movie Quality +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0aa +Label: PTP Property 0xd0aa +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ab +Label: PTP Property 0xd0ab +Type: TEXT +Current: 32894 +/main/other/d0ac +Label: PTP Property 0xd0ac +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ad +Label: PTP Property 0xd0ad +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ae +Label: PTP Property 0xd0ae +Type: MENU +Current: 32 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d0af +Label: PTP Property 0xd0af +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0b4 +Label: PTP Property 0xd0b4 +Type: MENU +Current: 100 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 32000 +Choice: 29 40000 +Choice: 30 51200 +Choice: 31 64000 +Choice: 32 81200 +Choice: 33 102400 +Choice: 34 204800 +Choice: 35 409600 +Choice: 36 820000 +Choice: 37 1640000 +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Type: TEXT +Current: 1100 +/main/other/d0b7 +Label: PTP Property 0xd0b7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0c7 +Label: PTP Property 0xd0c7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 416 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 63 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 1800 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 14000 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 350 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 560 +/main/other/d0f7 +Label: Vignette Control +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0f8 +Label: Auto Distortion Control +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0f9 +Label: Scene Mode +Type: MENU +Current: 13 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +/main/other/d0fc +Label: PTP Property 0xd0fc +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +/main/other/d0fd +Label: PTP Property 0xd0fd +Type: MENU +Current: 19 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65537 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +Choice: 25 65561 +Choice: 26 65556 +Choice: 27 65551 +Choice: 28 65549 +Choice: 29 65546 +Choice: 30 65544 +Choice: 31 65542 +Choice: 32 65541 +Choice: 33 65540 +Choice: 34 65539 +Choice: 35 655385 +Choice: 36 65538 +Choice: 37 655376 +Choice: 38 655373 +Choice: 39 65537 +Choice: 40 851978 +Choice: 41 1048586 +Choice: 42 131073 +Choice: 43 1638410 +Choice: 44 196609 +Choice: 45 262145 +Choice: 46 327681 +Choice: 47 393217 +Choice: 48 524289 +Choice: 49 655361 +Choice: 50 851969 +Choice: 51 983041 +Choice: 52 1310721 +Choice: 53 1638401 +Choice: 54 1966081 +Choice: 55 -2 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d106 +Label: FV Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d108 +Label: Active AF Sensor +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d118 +Label: PTP Property 0xd118 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d126 +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -18 +Top: 6 +Step: 2 +/main/other/d12d +Label: PTP Property 0xd12d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d130 +Label: HDR Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d132 +Label: HDR Smoothing +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d141 +Label: PTP Property 0xd141 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: Active D-Lighting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d150 +Label: Tune Colour Temperature +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +/main/other/d152 +Label: Tune Preset 1 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d153 +Label: Tune Preset 2 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d154 +Label: Tune Preset 3 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d155 +Label: Tune Preset 4 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d158 +Label: PTP Property 0xd158 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d159 +Label: PTP Property 0xd159 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15a +Label: PTP Property 0xd15a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15b +Label: PTP Property 0xd15b +Type: RANGE +Current: 100 +Bottom: 100 +Top: 999 +Step: 1 +/main/other/d15c +Label: PTP Property 0xd15c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15d +Label: PTP Property 0xd15d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d161 +Label: Autofocus Mode +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 32 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +/main/other/d167 +Label: Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d16a +Label: ISO Auto +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 32 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d197 +Label: PTP Property 0xd197 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d199 +Label: PTP Property 0xd199 +Type: MENU +Current: 41 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a3 +Label: Live View Image Zoom Ratio +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1a5 +Label: PTP Property 0xd1a5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a6 +Label: PTP Property 0xd1a6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a8 +Label: PTP Property 0xd1a8 +Type: MENU +Current: 73536 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +/main/other/d1a9 +Label: PTP Property 0xd1a9 +Type: MENU +Current: 0 +Choice: 0 0 +/main/other/d1aa +Label: PTP Property 0xd1aa +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +Choice: 25 32000 +Choice: 26 40000 +Choice: 27 51200 +Choice: 28 64000 +Choice: 29 81200 +Choice: 30 102400 +Choice: 31 204800 +Choice: 32 409600 +Choice: 33 820000 +Choice: 34 1640000 +/main/other/d1ab +Label: PTP Property 0xd1ab +Type: MENU +Current: 0 +Choice: 0 -3000 +Choice: 1 -2666 +Choice: 2 -2333 +Choice: 3 -2000 +Choice: 4 -1666 +Choice: 5 -1333 +Choice: 6 -1000 +Choice: 7 -666 +Choice: 8 -333 +Choice: 9 0 +Choice: 10 333 +Choice: 11 666 +Choice: 12 1000 +Choice: 13 1333 +Choice: 14 1666 +Choice: 15 2000 +Choice: 16 2333 +Choice: 17 2666 +Choice: 18 3000 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d1af +Label: PTP Property 0xd1af +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 32784 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: Info Display Error Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/d1c0 +Label: Flash Open +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1c1 +Label: Flash Charged +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 16813 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d1f6 +Label: PTP Property 0xd1f6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f7 +Label: PTP Property 0xd1f7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 8 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 201 +Choice: 9 202 +Choice: 10 203 +Choice: 11 204 +Choice: 12 205 +Choice: 13 206 +Choice: 14 207 +Choice: 15 208 +Choice: 16 209 +/main/other/d201 +Label: Change Pic Ctrl Item +Type: MENU +Current: 0 +/main/other/d20d +Label: PTP Property 0xd20d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d20f +Label: PTP Property 0xd20f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d211 +Label: PTP Property 0xd211 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d213 +Label: PTP Property 0xd213 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d214 +Label: PTP Property 0xd214 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d215 +Label: PTP Property 0xd215 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d216 +Label: PTP Property 0xd216 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d219 +Label: PTP Property 0xd219 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d21a +Label: PTP Property 0xd21a +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d21b +Label: PTP Property 0xd21b +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +/main/other/d21c +Label: PTP Property 0xd21c +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d21d +Label: PTP Property 0xd21d +Type: TEXT +Current: +/main/other/d21e +Label: PTP Property 0xd21e +Type: TEXT +Current: +/main/other/d21f +Label: PTP Property 0xd21f +Type: TEXT +Current: +/main/other/d220 +Label: PTP Property 0xd220 +Type: TEXT +Current: +/main/other/d221 +Label: PTP Property 0xd221 +Type: TEXT +Current: +/main/other/d222 +Label: PTP Property 0xd222 +Type: TEXT +Current: +/main/other/d223 +Label: PTP Property 0xd223 +Type: TEXT +Current: 304876602 +/main/other/d224 +Label: PTP Property 0xd224 +Type: TEXT +Current: 304876602 +/main/other/d225 +Label: PTP Property 0xd225 +Type: TEXT +Current: 304876602 +/main/other/d226 +Label: PTP Property 0xd226 +Type: TEXT +Current: 304876602 +/main/other/d227 +Label: PTP Property 0xd227 +Type: TEXT +Current: 304876602 +/main/other/d228 +Label: PTP Property 0xd228 +Type: TEXT +Current: 304876602 +/main/other/d229 +Label: PTP Property 0xd229 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22a +Label: PTP Property 0xd22a +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22b +Label: PTP Property 0xd22b +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22c +Label: PTP Property 0xd22c +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22d +Label: PTP Property 0xd22d +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22e +Label: PTP Property 0xd22e +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22f +Label: PTP Property 0xd22f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d230 +Label: PTP Property 0xd230 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d231 +Label: PTP Property 0xd231 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d232 +Label: PTP Property 0xd232 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d233 +Label: PTP Property 0xd233 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d234 +Label: PTP Property 0xd234 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d235 +Label: PTP Property 0xd235 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d236 +Label: PTP Property 0xd236 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d237 +Label: PTP Property 0xd237 +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 100 +Choice: 9 201 +Choice: 10 202 +Choice: 11 203 +Choice: 12 204 +Choice: 13 205 +Choice: 14 206 +Choice: 15 207 +Choice: 16 208 +Choice: 17 209 +/main/other/d238 +Label: PTP Property 0xd238 +Type: MENU +Current: 0 +/main/other/d239 +Label: PTP Property 0xd239 +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d23a +Label: PTP Property 0xd23a +Type: MENU +Current: 32789 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32786 +Choice: 7 32787 +Choice: 8 32789 +/main/other/d23b +Label: PTP Property 0xd23b +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d314 +Label: PTP Property 0xd314 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d80.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d80.txt new file mode 100644 index 00000000..82ba5fb2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d80.txt @@ -0,0 +1,732 @@ +Kamerazusammenfassung: +Manufacturer: Nikon Corporation +Model: D80 + Version: V1.10 + Serial Number: nnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Aufnahmeformate: JPEG Undefined Type +Anzeigeformate: Undefined Type, Association/Directory, JPEG, DPOF, Script +Unterstützte MTP Object Properties: + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc08/DateCreated dc09/DateModified dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified + Script/3002:PTP Fehler a802 beim Abfragen + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Generische Bild Aufnahme, keine Offene Aufnahme, Nikon Aufnahme + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Nur Lesen und Löschen + Maximale Kapazität: 2057437184 (1962 MB) + Freier Platz (Bytes): 2022703104 (1929 MB) + Freier Speicher (Bilder): 263 + +Properties des Geräts: +Batterie Ladezustand(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 80% (80) +Bildgröße(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3872x2592', + '2896x1944', + '1936x1296' + ] value: '3872x2592' +Kompressions Parameter(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6] value: JPEG Fine (2) +Weißabgleich(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Nummer(0x5007):(readwrite) (type=0x4) Enumeration [420,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500,2900] value: f/4,5 (450) +Fokus Tiefe(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 26 mm (2600) +Fokusmodus(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786] value: 32786 +Belichtungsmessmodus(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Matrix (3) +Blitzmodus(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784] value: Default (32784) +Belichtungszeit(0x500d):(read only) (type=0x6) Enumeration [2,80] value: 0,0008 sec (80) +Belichtungs Programm Modus(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32790] value: Auto (32784) +Belichtungs Index (nach ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200] value: ISO 1600 (1600) +Belichtungskompensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0,0 stops (0) +Datum und Zeit(0x5011):(readwrite) (type=0xffff) '20081122T141039' +Bildaufnahme Modus(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32785,32787,32788] value: Single Shot (1) +Bildzahl im Burstmodus(0x5018):(readwrite) (type=0x4) Range [1 - 51, step 1] value: 1 +Entfernungs Messungs Modus(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785] value: Closest Subject (32785) +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 + +Automatische Weißabgleich Abweichung(0xd017):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Tungsten Weißabgleich Abweichung(0xd018):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Floureszierend Weißabgleich Abweichung(0xd019):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Tageslicht Weißabgleich Abweichung(0xd01a):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Blitz Weißabgleich Abweichung(0xd01b):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Wolkig Weißabgleich Abweichung(0xd01c):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Schattig Weißabgleich Abweichung(0xd01d):(readwrite) (type=0x1) Range [-3 - 3, step 1] value: 0 +Weißabgleich Farbtemperatur(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +Property 0xd01f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd025:(read only) (type=0x6) 30081375 +Property 0xd026:(read only) (type=0x6) 30081375 +Schärfen(0xd02a):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Auto (0) +Ton Anpassung(0xd02b):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Auto (0) +Farbmodell(0xd02c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: sRGB (2) +Farbton Anpassung(0xd02d):(readwrite) (type=0x1) Range [-9 - 9, step 3] value: 0 +Property 0xd045:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Fokus Bereich Wraparound(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd052:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Belichtungszeitschritt(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Belichtungskompensation(0xd058):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Mittelpunkt/Gewichtet Bereich(0xd059):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 8 mm (1) +Belichtungs Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Fokus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 10, step 1] value: AE/AF Lock (0) +Zeit für automatische Sensor Abschaltung(0xd062):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Selbstauslöserzeit(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Zeit für automatische Abschaltung des LCD(0xd064):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +PTP_DPC_NIKON_D3ExpDelayMode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Langzeitbelichtungsrauschkompensation(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Bildnummer Zählung(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +PTP_DPC_NIKON_D7Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd070:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Blitz Belichtungszeit(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 0 +Modellierblitz(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Abstufungsbereich(0xd078):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Abstufungsrichtung(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Weise Func. Button zu(0xd084):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Umgedrehtes Kommando Rad(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auslösen ohne CF Karte(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Bild Kommentar(0xd090):(readwrite) (type=0xffff) ' ' +Property 0xd091:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Bildrotationsflag(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Belichtungs Abstufung(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Belichtungsabstufungsschritt(0xd0c1):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 3 +Belichtungsabstufungs Anzahl(0xd0c2):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd0c3:(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +NIKON Automatische Weißabgleich Abweichung(0xd0c4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd0c5:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Objektiv Kennung(0xd0e0):(read only) (type=0x2) AF-S Nikkor 18-55mm 1:3.5-F5.6G DX VR (154) +Property 0xd0e1:(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0e2:(read only) (type=0x2) 7 +Minimale Brennweite(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Maximale Brennweite(0xd0e4):(read only) (type=0x6) 55 mm (5500) +Maximale Blende bei Minimaler Brennweite(0xd0e5):(read only) (type=0x4) f/3,5 (350) +Maximale Blende bei maximaler Brennweite(0xd0e6):(read only) (type=0x4) f/5,6 (560) +Property 0xd100:(read only) (type=0x6) Enumeration [69536,65661] value: 65661 +Netzanschluss(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd102:(read only) (type=0x2) 0 +Maximale Bildanzahl(0xd103):(read only) (type=0x2) Range [1 - 51, step 1] value: 9 +NIKON AF-L Feststellung(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd105:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd106:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Aktiver AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 10, step 1] value: Centre (0) +Property 0xd109:(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Property 0xd10b:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd10d:(read only) (type=0xffff) ' m 1 ' +Property 0xd10e:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd120:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd121:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd122:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd124:(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 +Property 0xd125:(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Blitz Belichtungskompensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0,0 stops (0) +Bild Optimierung(0xd140):(readwrite) (type=0x2) Range [0 - 6, step 1] value: Normal (0) +Sättigung(0xd142):(readwrite) (type=0x2) Range [0 - 3, step 1] value: Moderate (1) +Property 0xd143:(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd144:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Property 0xd145:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Property 0xd146:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +AF Signalton Modus(0xd160):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +Autofokus Modus(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 2 +Autofokus Hilfslicht(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Einstellung(0xd164):(readwrite) (type=0x2) Range [0 - 10, step 1] value: 5 +BIldvorschau(0xd165):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Bereich Aufhellung(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Blitzmodus(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +Blitzzeichen(0xd169):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd16a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Fernsteuerungsabschaltzeit(0xd16b):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 min (0) +Gitterlinien im Sucher(0xd16c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Blitzmodus mit manuelle Energie(0xd16d):(readwrite) (type=0x2) Range [0 - 7, step 1] value: Full (0) +Property 0xd16f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd181:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd182:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd183:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Wenig Licht(0xd1b0):(read only) (type=0x2) Range [0 - 8, step 1] value: Yes (1) +Property 0xd1b1:(read only) (type=0x1) Range [-60 - 60, step 1] value: 0 +Blitz offen(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Blitz geladen(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1d0:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Property 0xd1d1:(readwrite) (type=0x2) Range [0 - 13, step 1] value: 8 +Property 0xd1d2:(readwrite) (type=0x2) Range [0 - 13, step 1] value: 9 +Property 0xd1d3:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd1d4:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd1d5:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1d6:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Property 0xd1d7:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1d8:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1d9:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Property 0xd1da:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd1db:(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Property 0xd1dc:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 + +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1227358792 + Printable: Sat Nov 22 13:59:52 2008 +/main/settings/lcdofftime + Label: LCD Off Time + Type: RADIO + Current: 1 minute + Choice: 0 10 seconds + Choice: 1 20 seconds + Choice: 2 1 minute + Choice: 3 5 minutes + Choice: 4 10 minutes + Choice: 5 Unknown value 0005 +/main/settings/meterofftime + Label: Meter Off Time + Type: RADIO + Current: 6 seconds + Choice: 0 4 seconds + Choice: 1 6 seconds + Choice: 2 8 seconds + Choice: 3 16 seconds + Choice: 4 30 minutes + Choice: 5 Unknown value 0005 +/main/settings/battery + Label: Battery Level + Type: TEXT + Current: 80% +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Internal RAM + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imgquality + Label: Image Quality + Type: RADIO + Current: JPEG Fine + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF (Raw) + Choice: 4 NEF+Basic + Choice: 5 NEF+Normal + Choice: 6 NEF+Fine +/main/imgsettings/imgsize + Label: Image Size + Type: RADIO + Current: 3872x2592 + Choice: 0 3872x2592 + Choice: 1 2896x1944 + Choice: 2 1936x1296 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 1600 + Choice: 0 100 + Choice: 1 125 + Choice: 2 160 + Choice: 3 200 + Choice: 4 250 + Choice: 5 320 + Choice: 6 400 + Choice: 7 500 + Choice: 8 640 + Choice: 9 800 + Choice: 10 1000 + Choice: 11 1250 + Choice: 12 1600 + Choice: 13 2000 + Choice: 14 2500 + Choice: 15 3200 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Daylight + Choice: 2 Fluorescent + Choice: 3 Tungsten + Choice: 4 Flash + Choice: 5 Cloudy + Choice: 6 Shade + Choice: 7 Color Temperature + Choice: 8 Preset +/main/imgsettings/colormodel + Label: Color Model + Type: RADIO + Current: sRGB (nature) + Choice: 0 sRGB (portrait) + Choice: 1 AdobeRGB + Choice: 2 sRGB (nature) +/main/imgsettings/autoiso + Label: Auto ISO + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/longexpnr + Label: Long Exp Noise Reduction + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusmode + Label: Auto Focus Mode + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/f-number + Label: F-Number + Type: RADIO + Current: f/4.5 + Choice: 0 f/4.2 + Choice: 1 f/4.5 + Choice: 2 f/5 + Choice: 3 f/5.6 + Choice: 4 f/6.3 + Choice: 5 f/7.1 + Choice: 6 f/8 + Choice: 7 f/9 + Choice: 8 f/10 + Choice: 9 f/11 + Choice: 10 f/13 + Choice: 11 f/14 + Choice: 12 f/16 + Choice: 13 f/18 + Choice: 14 f/20 + Choice: 15 f/22 + Choice: 16 f/25 + Choice: 17 f/29 +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 26 + Bottom: 18 + Top: 55 + Step: 0.01 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: AF-A + Choice: 0 Manual + Choice: 1 AF-S + Choice: 2 AF-C + Choice: 3 AF-A +/main/capturesettings/exposurebiascompensation + Label: Exposure Bias Compensation + Type: RADIO + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/capturesettings/exptime + Label: Exposure Time + Type: RADIO + Current: 0.080 + Choice: 0 0.002 + Choice: 1 0.080 +/main/capturesettings/expprogram + Label: Exposure Program + Type: RADIO + Current: Auto + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S + Choice: 4 Auto + Choice: 5 Portrait + Choice: 6 Landscape + Choice: 7 Macro + Choice: 8 Sports + Choice: 9 Night Portrait + Choice: 10 Night Landscape +/main/capturesettings/capturemode + Label: Still Capture Mode + Type: RADIO + Current: Single Shot + Choice: 0 Single Shot + Choice: 1 Burst + Choice: 2 Timer + Choice: 3 Remote + Choice: 4 Timer + Remote +/main/capturesettings/focusmetermode + Label: Focus Metering Mode + Type: RADIO + Current: Closest Subject + Choice: 0 Dynamic Area + Choice: 1 Single Area + Choice: 2 Closest Subject +/main/capturesettings/exposuremetermode + Label: Exposure Metering Mode + Type: RADIO + Current: Multi Spot + Choice: 0 Center Weighted + Choice: 1 Multi Spot + Choice: 2 Center Spot +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Default + Choice: 0 Flash off + Choice: 1 Red-eye automatic + Choice: 2 Default +/main/capturesettings/imagerotationflag + Label: Image Rotation Flag + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusarea + Label: Auto Focus Area + Type: RADIO + Current: Centre + Choice: 0 Centre + Choice: 1 Top + Choice: 2 Bottom + Choice: 3 Left + Choice: 4 Right + Choice: 5 Unknown value 000a + Choice: 6 Unknown value 000a + Choice: 7 Unknown value 000a + Choice: 8 Unknown value 000a + Choice: 9 Unknown value 000a + Choice: 10 Unknown value 000a +/main/capturesettings/flashexposurecompensation + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -3 + Top: 1 + Step: 0.333333 +/main/capturesettings/burstnumber + Label: Burst Number + Type: RANGE + Current: 1 + Bottom: 1 + Top: 51 + Step: 1 +/main/capturesettings/autowhitebias + Label: Auto White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/tungstenwhitebias + Label: Tungsten White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/flourescentwhitebias + Label: Fluorescent White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/daylightwhitebias + Label: Daylight White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/flashwhitebias + Label: Flash White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/cloudywhitebias + Label: Cloudy White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/shadewhitebias + Label: Shady White Balance Bias + Type: RANGE + Current: 0 + Bottom: -3 + Top: 3 + Step: 1 +/main/capturesettings/optimizeimage + Label: Optimize Image + Type: RADIO + Current: Normal + Choice: 0 Normal + Choice: 1 Vivid + Choice: 2 Sharper + Choice: 3 Softer + Choice: 4 Direct Print + Choice: 5 Portrait + Choice: 6 Landscape +/main/capturesettings/sharpening + Label: Sharpening + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Low + Choice: 3 Medium Low + Choice: 4 Medium high + Choice: 5 High + Choice: 6 None +/main/capturesettings/tonecompensation + Label: Tone Compensation + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Low contrast + Choice: 3 Medium Low + Choice: 4 Medium High + Choice: 5 High control + Choice: 6 Custom +/main/capturesettings/saturation + Label: Saturation + Type: RADIO + Current: Moderate + Choice: 0 Normal + Choice: 1 Moderate + Choice: 2 Enhanced + Choice: 3 Unknown value 0003 +/main/capturesettings/hueadjustment + Label: Hue Adjustment + Type: RANGE + Current: 0 + Bottom: -9 + Top: 9 + Step: 3 + +Device info: +Manufacturer: Nikon Corporation + Model: D80 + device version: V1.11 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c5 + 0x90c6 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd406 + 0xd407 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd025 + 0xd026 + 0xd02a + 0xd02b + 0xd02c + 0xd02d + 0xd045 + 0xd04f + 0xd052 + 0xd054 + 0xd056 + 0xd058 + 0xd059 + 0xd05e + 0xd05f + 0xd062 + 0xd063 + 0xd064 + 0xd06a + 0xd06b + 0xd06c + 0xd06f + 0xd070 + 0xd075 + 0xd077 + 0xd078 + 0xd07a + 0xd084 + 0xd086 + 0xd08a + 0xd090 + 0xd091 + 0xd092 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10d + 0xd10e + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd140 + 0xd142 + 0xd143 + 0xd144 + 0xd145 + 0xd146 + 0xd160 + 0xd161 + 0xd163 + 0xd164 + 0xd165 + 0xd166 + 0xd167 + 0xd169 + 0xd16a + 0xd16b + 0xd16c + 0xd16d + 0xd16f + 0xd181 + 0xd182 + 0xd183 + 0xd1b0 + 0xd1b1 + 0xd1c0 + 0xd1c1 + 0xd1d0 + 0xd1d1 + 0xd1d2 + 0xd1d3 + 0xd1d4 + 0xd1d5 + 0xd1d6 + 0xd1d7 + 0xd1d8 + 0xd1d9 + 0xd1da + 0xd1db + 0xd1dc diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d800.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d800.txt new file mode 100644 index 00000000..5c4f776b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d800.txt @@ -0,0 +1,266 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D800 + device version: V1.02 + serial number: 'nnnnnnnnnnnn00000000000000000000' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9209 + 0x920a + 0x920b + 0x920c + 0x9400 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 + 0xc104 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0x501e + 0x501f + 0xd303 + 0xd406 + 0xd407 + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd048 + 0xd049 + 0xd04f + 0xd051 + 0xd053 + 0xd054 + 0xd055 + 0xd056 + 0xd057 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05d + 0xd061 + 0xd067 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd070 + 0xd072 + 0xd073 + 0xd074 + 0xd075 + 0xd078 + 0xd079 + 0xd07a + 0xd07d + 0xd07e + 0xd07f + 0xd087 + 0xd08a + 0xd08d + 0xd08f + 0xd090 + 0xd091 + 0xd092 + 0xd093 + 0xd0a0 + 0xd0a2 + 0xd0a3 + 0xd0a4 + 0xd0a7 + 0xd0a8 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0c7 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f7 + 0xd0f8 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10c + 0xd10e + 0xd112 + 0xd113 + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd130 + 0xd131 + 0xd132 + 0xd141 + 0xd148 + 0xd149 + 0xd14e + 0xd14f + 0xd150 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd156 + 0xd158 + 0xd159 + 0xd15a + 0xd15c + 0xd15d + 0xd161 + 0xd163 + 0xd164 + 0xd167 + 0xd183 + 0xd197 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1a5 + 0xd1a6 + 0xd1a7 + 0xd1a8 + 0xd1a9 + 0xd1aa + 0xd1ab + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1b4 + 0xd1c0 + 0xd1c1 + 0xd1f0 + 0xd1f1 + 0xd1f2 + 0xd1f4 + 0xd200 + 0xd201 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d800e.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d800e.txt new file mode 100644 index 00000000..0106ddfa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d800e.txt @@ -0,0 +1,507 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D800E + Version: V1.01 + Serial Number: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type TIFF +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script, Apple Quicktime +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc87/Width dc88/Height dcd3/ImageBitDepth + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + TIFF/380d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc87/Width dc88/Height dcd3/ImageBitDepth + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON D800E [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 32002408448 (30519 MB) + Free Space (Bytes): 32002310144 (30519 MB) + Free Space (Images): 950 +store_00020001: + StorageDescription: None + VolumeLabel: NIKON D800E [Slot 2] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 64004030464 (61039 MB) + Free Space (Bytes): 64003375104 (61038 MB) + Free Space (Images): 1900 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '7360x4912', + '5520x3680', + '3680x2456' + ] value: '7360x4912' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/4 (400) +Focal Length(0x5008):(read only) (type=0x6) Range [2400 - 12000, step 1] value: 24 mm (2400) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(read only) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [4,32784,32785,32786,32787] value: Default (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400] value: 0.004 sec (400) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: P (2) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20120904T214555' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790] value: Timer (32785) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788] value: Single Area (32784) +Artist(0x501e):(read only) (type=0xffff) 'Roderick Stewart' +Copyright Info(0x501f):(read only) (type=0xffff) 'The Dormant Group' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Shooting Bank(0xd010):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Shooting Bank Name A(0xd011):(readwrite) (type=0xffff) ' ' +Shooting Bank Name B(0xd012):(readwrite) (type=0xffff) ' ' +Shooting Bank Name C(0xd013):(readwrite) (type=0xffff) ' ' +Shooting Bank Name D(0xd014):(readwrite) (type=0xffff) ' ' +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [1 - 4, step 1] value: 1 +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 32506200 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 32506200 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 32506200 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 32506200 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 11 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 6 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +JPEG Compression Policy(0xd031):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto DX Crop(0xd033):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Menu Bank Name A(0xd041):(readwrite) (type=0xffff) ' ' +Menu Bank Name B(0xd042):(readwrite) (type=0xffff) ' ' +Menu Bank Name C(0xd043):(readwrite) (type=0xffff) ' ' +Menu Bank Name D(0xd044):(readwrite) (type=0xffff) ' ' +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +AF Lock On(0xd051):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Exposure Compensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF(0xd05d):(readwrite) (type=0x1) Range [0 - 3, step 1] value: 2 +Property 0xd061:(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 3 +Angle Level(0xd067):(read only) (type=0x5) 23577288 +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 3 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 100, step 1] value: 100 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Artist Name(0xd072):(readwrite) (type=0xffff) 'Roderick Stewart' +Copyright Information(0xd073):(readwrite) (type=0xffff) 'The Dormant Group' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 2 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Property 0xd07d:(read only) (type=0x5) 22796427 +Property 0xd07e:(read only) (type=0x5) -1 +Property 0xd07f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Property 0xd08f:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) 'rod@dormant.org, www.dormant.org ' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 0 +Property 0xd0a2:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd0a3:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a4:(read only) (type=0x6) 16384 +Property 0xd0a7:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 7, step 1] value: 3 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x2) 170 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x2) 39 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 24 mm (2400) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 120 mm (12000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/4 (400) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/4 (400) +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Property 0xd0f8:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561] value: 65561 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Maximum Shots(0xd103):(read only) (type=0x2) Range [0 - 99, step 1] value: 21 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [1 - 51, step 1] value: Top (1) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 2, step 1] value: USB 2.0 (1) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +TV Lock Setting(0xd112):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AV Lock Setting(0xd113):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd130:(readwrite) (type=0x1) Range [0 - 2, step 1] value: 0 +Property 0xd131:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd132:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Slot 2 Save Mode(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 4 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 12, step 1] value: 6 +Tune Preset 1(0xd152):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 2(0xd153):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 3(0xd154):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 4(0xd155):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Property 0xd156:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: MF (fixed) (3) +AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 27, step 1] value: 27 +Flash Mode(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 25, step 1] value: 20 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a5:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd1a7:(read only) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: 2 +Property 0xd1a8:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561] value: 65566 +Property 0xd1a9:(read only) (type=0x4) Enumeration [400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: 400 +Property 0xd1aa:(read only) (type=0x6) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: 100 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000] value: 666 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 99, step 1] value: 22 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 950 +Property 0xd1f2:(read only) (type=0x2) Range [0 - 3, step 1] value: 3 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 +Device info: +Manufacturer: Nikon Corporation + Model: D800E + device version: V1.10 + serial number: '30002850000000000000000000000000' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9209 + 0x920a + 0x920b + 0x920c + 0x920f + 0x9400 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 + 0xc104 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0x501e + 0x501f + 0xd303 + 0xd406 + 0xd407 + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd048 + 0xd049 + 0xd04f + 0xd051 + 0xd053 + 0xd054 + 0xd055 + 0xd056 + 0xd057 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05d + 0xd061 + 0xd067 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd070 + 0xd072 + 0xd073 + 0xd074 + 0xd075 + 0xd078 + 0xd079 + 0xd07a + 0xd07d + 0xd07e + 0xd07f + 0xd087 + 0xd08a + 0xd08d + 0xd08f + 0xd090 + 0xd091 + 0xd092 + 0xd093 + 0xd0a0 + 0xd0a2 + 0xd0a3 + 0xd0a4 + 0xd0a7 + 0xd0a8 + 0xd0b4 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0c7 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f7 + 0xd0f8 + 0xd100 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10c + 0xd10e + 0xd112 + 0xd113 + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd130 + 0xd131 + 0xd132 + 0xd141 + 0xd148 + 0xd149 + 0xd14e + 0xd14f + 0xd150 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd156 + 0xd158 + 0xd159 + 0xd15a + 0xd15b + 0xd15c + 0xd15d + 0xd161 + 0xd163 + 0xd164 + 0xd167 + 0xd183 + 0xd197 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1a5 + 0xd1a6 + 0xd1a7 + 0xd1a8 + 0xd1a9 + 0xd1aa + 0xd1ab + 0xd1ac + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1b4 + 0xd1c0 + 0xd1c1 + 0xd1f0 + 0xd1f1 + 0xd1f2 + 0xd1f4 + 0xd200 + 0xd201 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d810.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d810.txt new file mode 100644 index 00000000..a03a29bd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d810.txt @@ -0,0 +1,297 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D810 + device version: V0.23 + serial number: '0000000000000000000000000n0000nn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: Microsoft.com/DeviceServices: +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9209 + 0x920a + 0x920b + 0x920c + 0x9400 + 0x9402 + 0x9403 + 0x9404 + 0x9405 + 0x9406 + 0x940b + 0x940c + 0x940e + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 + 0xc105 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0x501e + 0x501f + 0xd303 + 0xd406 + 0xd407 + 0xd010 + 0xd011 + 0xd012 + 0xd013 + 0xd014 + 0xd015 + 0xd016 + 0xd017 + 0xd018 + 0xd019 + 0xd01a + 0xd01b + 0xd01c + 0xd01d + 0xd01e + 0xd01f + 0xd021 + 0xd022 + 0xd023 + 0xd024 + 0xd026 + 0xd027 + 0xd028 + 0xd029 + 0xd02e + 0xd02f + 0xd030 + 0xd031 + 0xd032 + 0xd033 + 0xd034 + 0xd038 + 0xd039 + 0xd03a + 0xd03b + 0xd03c + 0xd03d + 0xd03e + 0xd03f + 0xd040 + 0xd041 + 0xd042 + 0xd043 + 0xd044 + 0xd045 + 0xd048 + 0xd049 + 0xd04f + 0xd051 + 0xd053 + 0xd054 + 0xd055 + 0xd056 + 0xd057 + 0xd059 + 0xd05a + 0xd05b + 0xd05c + 0xd05d + 0xd061 + 0xd067 + 0xd068 + 0xd069 + 0xd06a + 0xd06b + 0xd06c + 0xd070 + 0xd072 + 0xd073 + 0xd074 + 0xd075 + 0xd078 + 0xd079 + 0xd07a + 0xd07d + 0xd07e + 0xd07f + 0xd087 + 0xd08a + 0xd08d + 0xd08f + 0xd090 + 0xd091 + 0xd092 + 0xd093 + 0xd09c + 0xd0a0 + 0xd0a2 + 0xd0a3 + 0xd0a4 + 0xd0a7 + 0xd0a8 + 0xd0aa + 0xd0ac + 0xd0ad + 0xd0ae + 0xd0b5 + 0xd0b6 + 0xd0c0 + 0xd0c1 + 0xd0c2 + 0xd0c3 + 0xd0c4 + 0xd0c5 + 0xd0c6 + 0xd0c7 + 0xd0e0 + 0xd0e1 + 0xd0e2 + 0xd0e3 + 0xd0e4 + 0xd0e5 + 0xd0e6 + 0xd0f7 + 0xd0f8 + 0xd100 + 0xd101 + 0xd102 + 0xd104 + 0xd105 + 0xd106 + 0xd108 + 0xd109 + 0xd10b + 0xd10c + 0xd10e + 0xd112 + 0xd113 + 0xd120 + 0xd121 + 0xd122 + 0xd124 + 0xd125 + 0xd126 + 0xd12d + 0xd130 + 0xd131 + 0xd132 + 0xd141 + 0xd148 + 0xd149 + 0xd14e + 0xd14f + 0xd150 + 0xd152 + 0xd153 + 0xd154 + 0xd155 + 0xd156 + 0xd158 + 0xd159 + 0xd15a + 0xd15b + 0xd15c + 0xd15d + 0xd161 + 0xd163 + 0xd164 + 0xd167 + 0xd176 + 0xd177 + 0xd183 + 0xd197 + 0xd1a2 + 0xd1a3 + 0xd1a4 + 0xd1a5 + 0xd1a6 + 0xd1a7 + 0xd1a8 + 0xd1a9 + 0xd1aa + 0xd1ab + 0xd1ac + 0xd1af + 0xd1b0 + 0xd1b1 + 0xd1b2 + 0xd1b3 + 0xd1b4 + 0xd1c0 + 0xd1c1 + 0xd1f0 + 0xd1f1 + 0xd1f2 + 0xd1f4 + 0xd200 + 0xd201 + 0xd20d + 0xd239 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d850.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d850.txt new file mode 100644 index 00000000..62806a23 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d850.txt @@ -0,0 +1,321 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: D850 + Version: V1.02 + Serial Number: 00000000000000000000000008207604 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Microsoft.com/DeviceServices: 1.0 + +Capture Formats: JPEG TIFF Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, DPOF, Script, Apple Quicktime, Unknown(b982) + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3 + +Storage Devices Summary: +store_00020001: + StorageDescription: None + VolumeLabel: [Slot 2] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 63831015424 (60874 MB) + Free Space (Bytes): 58540032000 (55828 MB) + Free Space (Images): 1550 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 60% (60) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '8256x5504', + '6192x4128', + '4128x2752' + ] value: '4128x2752' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13] value: 6 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787,32790] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [180,200,220,250,280,320,350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600] value: f/16 (1600) +Focal Length(0x5008):(read only) (type=0x6) Range [5000 - 5000, step 1] value: 50 mm (5000) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4,32784] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784,32786] value: Auto (32784) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967295,4294967293] value: 0,077 sec (7692) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [32,40,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200] value: ISO 400 (400) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0,0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20180711T032449' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1,2,32784,32785,32786,32790,32792] value: Timer (32785) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 200, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788,32789,32790] value: Single Area (32784) +Artist(0x501e):(read only) (type=0xffff) 'Marius Steffen' +Copyright Info(0x501f):(read only) (type=0xffff) 'Marius Steffen' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Shooting Bank(0xd010):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Shooting Bank Name A(0xd011):(readwrite) (type=0xffff) ' ' +Shooting Bank Name B(0xd012):(readwrite) (type=0xffff) ' ' +Shooting Bank Name C(0xd013):(readwrite) (type=0xffff) ' ' +Shooting Bank Name D(0xd014):(readwrite) (type=0xffff) ' ' +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Lossless (0) +Auto White Balance Bias(0xd017):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 254413569 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 254413569 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 254413569 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 254413569 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto DX Crop(0xd033):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Flicker Reduction(0xd034):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd038:(readwrite) (type=0xffff) ' ' +Property 0xd039:(readwrite) (type=0xffff) ' ' +Property 0xd03a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03e:(read only) (type=0x6) 254413569 +Property 0xd03f:(read only) (type=0x6) 254413569 +PTP_DPC_NIKON_CSMMenuBankSelect(0xd040):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Menu Bank Name A(0xd041):(readwrite) (type=0xffff) ' ' +Menu Bank Name B(0xd042):(readwrite) (type=0xffff) ' ' +Menu Bank Name C(0xd043):(readwrite) (type=0xffff) ' ' +Menu Bank Name D(0xd044):(readwrite) (type=0xffff) ' ' +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd046:(readwrite) (type=0x2) Range [1 - 5, step 1] value: 3 +Property 0xd047:(readwrite) (type=0x2) Range [1 - 3, step 1] value: 2 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure ISO Step(0xd055):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Exposure Compensation (EV)(0xd057):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 6 mm (0) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 2 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 3 +Angle Level(0xd067):(read only) (type=0x5) 359,4' (23553130) +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [1 - 8, step 1] value: 4 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 200, step 1] value: 200 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 5, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Artist Name(0xd072):(readwrite) (type=0xffff) 'Marius Steffen' +Copyright Information(0xd073):(readwrite) (type=0xffff) 'Marius Steffen' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 1 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Property 0xd07d:(read only) (type=0x5) 23592808 +Property 0xd07e:(read only) (type=0x5) -1 +Property 0xd07f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Aperture Setting(0xd087):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3 +Image Comment String(0xd090):(readwrite) (type=0xffff) '' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd09d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd09e:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd09f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 12, step 1] value: 3 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Movie Card Slot(0xd0a3):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a4:(read only) (type=0x6) 0 +Movie Quality(0xd0a7):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0aa:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ab:(read only) (type=0x4) 32894 +Property 0xd0ac:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ad:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ae:(readwrite) (type=0x2) Range [6 - 39, step 1] value: 34 +Property 0xd0af:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd0b4:(readwrite) (type=0x6) Enumeration [32,40,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,102400] value: 400 +Property 0xd0b5:(read only) (type=0x6) 400 +Property 0xd0b6:(readwrite) (type=0xffff) Enumeration [ + '8256x5504', + '6192x4128', + '4128x2752' + ] value: '8256x5504' +Property 0xd0b7:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0b9:(read only) (type=0x2) Enumeration [0,1,2,3,4,5] value: 0 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(read only) (type=0x2) Range [0 - 5, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 1, step 1] value: 1 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 7, step 1] value: 4 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x4) 176 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x8) 51 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 50 mm (5000) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 50 mm (5000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/1,8 (180) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/1,8 (180) +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Nikon Exposure Time(0xd100):(readwrite) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967295,4294967293,4294967294] value: 655373 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 153, step 1] value: Top (1) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 2, step 1] value: 2 +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +TV Lock Setting(0xd112):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +AV Lock Setting(0xd113):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd118:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0,0 stops (0) +Property 0xd12d:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +HDR High Dynamic(0xd131):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +HDR Smoothing(0xd132):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Slot 2 Save Mode(0xd148):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Tune Preset 1(0xd152):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 2(0xd153):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 3(0xd154):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 4(0xd155):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd156:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15b:(read only) (type=0x4) Range [100 - 999, step 1] value: 105 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15e:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: MF (fixed) (3) +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 52, step 1] value: 52 +Property 0xd176:(readwrite) (type=0x4) 0 +Property 0xd177:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 39, step 1] value: 34 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd199:(readwrite) (type=0x2) Range [0 - 40, step 1] value: 40 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 2, step 1] value: No (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a5:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a7:(read only) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787,32788,32790] value: 32788 +Property 0xd1a8:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596] value: 65616 +Property 0xd1a9:(read only) (type=0x4) Enumeration [0] value: 0 +Property 0xd1aa:(readwrite) (type=0x6) Enumeration [64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,102400] value: 20000 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000] value: 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2,3] value: 2 +Property 0xd1ad:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd1ae:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1af:(read only) (type=0x4) Enumeration [2,3,32784] value: 3 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: -0,7 stops (-8) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1b4:(read only) (type=0x2) Range [0 - 200, step 1] value: 19 +Property 0xd1b9:(read only) (type=0x2) Enumeration [0,1,2,3] value: 3 +Property 0xd1ba:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1de:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1df:(readwrite) (type=0x4) Enumeration [180,191,202,213,224,235,248,255] value: 248 +Property 0xd1e2:(read only) (type=0x2) Enumeration [] value: 0 +Property 0xd1e3:(read only) (type=0x2) Enumeration [] value: 0 +Property 0xd1e4:(read only) (type=0x6) 0 +Property 0xd1e5:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1e6:(read only) (type=0x6) Range [0 - 9999, step 1] value: 0 +Property 0xd1e7:(read only) (type=0x2) 0 +Property 0xd1e8:(read only) (type=0x2) Enumeration [255] value: 255 +Property 0xd1e9:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1ea:(read only) (type=0x2) 1 +Property 0xd1ec:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1ed:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x6) Range [0 - 4294967295, step 1] value: 1550 +Property 0xd1f2:(read only) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Property 0xd1f6:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f7:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 +Property 0xd20d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20e:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd210:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd211:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd212:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd213:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd214:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd216:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd218:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd219:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd21a:(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +Property 0xd21b:(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Property 0xd21c:(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +Property 0xd21d:(readwrite) (type=0xffff) ' ' +Property 0xd21e:(readwrite) (type=0xffff) ' ' +Property 0xd21f:(readwrite) (type=0xffff) ' ' +Property 0xd220:(readwrite) (type=0xffff) ' ' +Property 0xd221:(readwrite) (type=0xffff) ' ' +Property 0xd222:(readwrite) (type=0xffff) ' ' +Property 0xd223:(read only) (type=0x6) 254413569 +Property 0xd224:(read only) (type=0x6) 254413569 +Property 0xd225:(read only) (type=0x6) 254413569 +Property 0xd226:(read only) (type=0x6) 254413569 +Property 0xd227:(read only) (type=0x6) 254413569 +Property 0xd228:(read only) (type=0x6) 254413569 +Property 0xd229:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22c:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22d:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22e:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd230:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd231:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd232:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd233:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd234:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd235:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd236:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd237:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,100,201,202,203,204,205,206,207,208,209] value: 1 +Property 0xd238:(read only) (type=0x4) Enumeration [] value: 0 +Property 0xd239:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd23a:(readwrite) (type=0x4) Enumeration [2,4,5,6,32784,32785,32786,32787,32789,32790] value: 32789 +Property 0xd23b:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd23c:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd23d:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd314:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d90.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d90.txt new file mode 100644 index 00000000..559d5266 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-d90.txt @@ -0,0 +1,2850 @@ +Device info: +Manufacturer: Nikon Corporation + Model: D90 + device version: V1.00 + serial number: 'nnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x90c9 + 0x90ca + 0x90cb + 0x90cc + 0x90cd + 0x90ce + 0x90cf + 0x9200 + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0x4008 + 0xc101 + 0xc102 + 0xc104 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500d + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5018 + 0x501c + 0xd406 + 0xd407 +Kamerazusammenfassung: +Hersteller: Nikon Corporation +Modell: D90 + Version: V1.00 + Seriennummer: 6142709 +Vendor Extension ID: 0xa (1.0) +Beschreibung der Vendor Extension: microsoft.com: 1.0 + +Aufnahmeformate: JPEG Undefined Type +Anzeigeformate: JPEG, Undefined Type, Association/Directory, MS AVI, DPOF, Script + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Generische Bild Aufnahme, keine Offene Aufnahme, Nikon Aufnahme + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: +:\MISC + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Nur Lesen und Löschen + Maximale Kapazität: 8160542720 (7782 MB) + Freier Platz (Bytes): 7973502976 (7604 MB) + Freier Speicher (Bilder): 2134 + +Properties des Geräts: +Batterie Ladezustand(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 40% (40) +Bildgröße(0x5003):(readwrite) (type=0xffff) Enumeration [ + '4288x2848', + '3216x2136', + '2144x1424' + ] value: '4288x2848' +Kompressions Parameter(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: JPEG Norm (1) +Weißabgleich(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787] value: Automatisch (2) +F-Nummer(0x5007):(read only) (type=0x4) Enumeration [350,400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/3,5 (350) +Fokus Tiefe(0x5008):(read only) (type=0x6) Range [1800 - 20000, step 1] value: 18 mm (1800) +Fokusmodus(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786] value: AF-A (32786) +Belichtungsmessmodus(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3) +Blitzmodus(0x500c):(readwrite) (type=0x4) Enumeration [2] value: Flash off (2) +Belichtungszeit(0x500d):(read only) (type=0x6) Enumeration [2,30000] value: 0,3 sec (30000) +Belichtungs Programm Modus(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32789,32790] value: Night Landscape (32790) +Belichtungs Index (nach ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400] value: ISO 800 (800) +Belichtungskompensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0,0 stops (0) +Datum und Zeit(0x5011):(readwrite) (type=0xffff) '20090724T221608' +Bildaufnahme Modus(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32784,32785,32788,32789] value: Continuous Low Speed (32784) +Bildzahl im Burstmodus(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1 +Entfernungs Messungs Modus(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786] value: Closest Subject (32785) +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Automatische Weißabgleich Abweichung(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tungsten Weißabgleich Abweichung(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Floureszierend Weißabgleich Abweichung(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tageslicht Weißabgleich Abweichung(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Blitz Weißabgleich Abweichung(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Wolkig Weißabgleich Abweichung(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Schattig Weißabgleich Abweichung(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Weißabgleich Farbtemperatur(0xd01e):(readwrite) (type=0x4) Range [0 - 30, step 1] value: 20 +Weißabgleich Preset Nummer(0xd01f):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +White Balance Preset Name 0(0xd020):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +Weißabgleich Preset Wert 0(0xd025):(read only) (type=0x6) 30212431 +Weißabgleich Preset Wert 1(0xd026):(read only) (type=0x6) 30212431 +Weißabgleich Preset Wert 2(0xd027):(read only) (type=0x6) 30212431 +Weißabgleich Preset Wert 3(0xd028):(read only) (type=0x6) 30212431 +Weißabgleich Preset Wert 4(0xd029):(read only) (type=0x6) 30212431 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Setze Menübank zurück(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Fokus Bereich Wraparound(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +Vertikaler Autofokus An(0xd050):(readwrite) (type=0x2) Range [0 - 10, step 1] value: 1 +Focus Area Zone(0xd052):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: An (1) +Belichtungszeitschritt(0xd056):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1/3 (0) +Belichtungskompensation(0xd058):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +Mittelpunkt/Gewichtet Bereich(0xd059):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF(0xd05d):(readwrite) (type=0x1) Range [0 - 2, step 1] value: 1 +Belichtungs Lock(0xd05e):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +Fokus Lock(0xd05f):(readwrite) (type=0x2) Range [0 - 5, step 1] value: AE/AF Lock (0) +Zeit für automatische Sensor Abschaltung(0xd062):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 8 seconds (2) +Selbstauslöserzeit(0xd063):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 10 seconds (2) +Img Conf Time(0xd065):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Abstand bei Mehrfachbelichtung(0xd068):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +Langzeitbelichtungsrauschkompensation(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +Bildnummer Zählung(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Aus (0) +LCD Illumination(0xd06f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +On screen tips(0xd071):(readwrite) (type=0x2) Range [0 - 1, step 1] value: An (1) +Blitz Belichtungszeit(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Modellierblitz(0xd077):(readwrite) (type=0x2) Range [0 - 1, step 1] value: An (1) +Abstufungsbereich(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Abstufungsrichtung(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +Mittlerer Button Aufnahme Modus(0xd080):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Highlight active focus point (1) +Weise Func. Button zu(0xd084):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 3 +Passe Kommando Dials an(0xd085):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +Umgedrehtes Kommando Rad(0xd086):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +Menüs und Abspielen(0xd088):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Auslösen ohne CF Karte(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (1) +Bild Kommentar(0xd090):(readwrite) (type=0xffff) ' ' +Bild Kommentar anschalten(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +Bildrotationsflag(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: An (0) +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Movie Voice(0xd0a1):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +Aktivierung der Abstufung(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (0) +Belichtungs Abstufung Schritt(0xd0c1):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Belichtungs Abstufung Programm(0xd0c2):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Automatische Belichtungs Abstufung Anzahl(0xd0c3):(read only) (type=0x2) Range [1 - 3, step 1] value: 1 +Automatische Weißabgleich Abweichung Schritt(0xd0c4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Automatische Weißabgleich Abweichung Programm(0xd0c5):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Objektiv Kennung(0xd0e0):(read only) (type=0x2) AF-S Nikkor 18-200mm 1:3.5-5.6 GED DX VR (139) +Objektivart(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Objektivtyp(0xd0e2):(read only) (type=0x2) 15 +Minimale Brennweite(0xd0e3):(read only) (type=0x6) 18 mm (1800) +Maximale Brennweite(0xd0e4):(read only) (type=0x6) 200 mm (20000) +Maximale Blende bei Minimaler Brennweite(0xd0e5):(read only) (type=0x4) f/3,5 (350) +Maximale Blende bei maximaler Brennweite(0xd0e6):(read only) (type=0x4) f/5,6 (560) +Finder ISO Display(0xd0f0):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Show frame count (2) +Auto Off Photo(0xd0f2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Auto Off Menu(0xd0f3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Auto Off Info(0xd0f4):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Self Timer Shot Number(0xd0f5):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 0 +Nikon Belichtungszeit(0xd100):(read only) (type=0x6) Enumeration [69536,196609] value: 196609 +Netzanschluss(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +Warn Status(0xd102):(read only) (type=0x2) 0 +Maximale Bildanzahl(0xd103):(read only) (type=0x2) Range [0 - 99, step 1] value: 20 +AF Lock an(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +AE Lock an(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +FV Lock an(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +Aktiver AF Sensor(0xd108):(readwrite) (type=0x2) Range [1 - 11, step 1] value: Top (1) +Flexibles Programm(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 1, step 1] value: USB 2.0 (1) +CCD Serial Number(0xd10d):(read only) (type=0xffff) '1399081 ' +Kameraausrichtung(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +Illum Setting(0xd114):(readwrite) (type=0x2) Range [0 - 1, step 1] value: LCD Backlight and Info Display (1) +Externer Blitz angesteckt(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +Status Externer Blitz(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +Art des externen Blitz(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +Externer Blitz Belichtungskompensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +Externer Blitzmodus(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Blitz Belichtungskompensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0,0 stops (0) +ISO Auto Time(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 5 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 0(0xd151):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 1(0xd152):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 2(0xd153):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 3(0xd154):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +Tune Preset 4(0xd155):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84 +AF Signalton Modus(0xd160):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (1) +Autofokus Modus(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-A (2) +Autofokus Hilfslicht(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Aus (1) +Auto ISO P/A/DVP Einstellung(0xd164):(readwrite) (type=0x2) Range [0 - 23, step 1] value: 18 +AF Bereich Aufhellung(0xd166):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Blitzmodus(0xd167):(readwrite) (type=0x2) Range [0 - 3, step 1] value: iTTL (0) +Blitzzeichen(0xd169):(readwrite) (type=0x2) Range [0 - 1, step 1] value: An (0) +Property 0xd16a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Fernsteuerungsabschaltzeit(0xd16b):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 1 min (0) +Gitterlinien im Sucher(0xd16c):(readwrite) (type=0x2) Range [0 - 1, step 1] value: An (1) +Blitzmodus mit manuelle Energie(0xd16d):(readwrite) (type=0x2) Range [0 - 21, step 1] value: Voll (0) +Auto FP(0xd16f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Warning Display(0xd181):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +Battery Cell Kind(0xd182):(readwrite) (type=0x2) Range [0 - 3, step 1] value: LR6 (AA alkaline) (0) +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 1600 (2) +Info Disp Setting(0xd187):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Auto (0) +Indicator Display(0xd18d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 1 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 8, step 1] value: Ja (1) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0,0 stops (0) +Property 0xd1b2:(read only) (type=0x2) Range [0 - 1, step 1] value: Ja (1) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +Blitz offen(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +Blitz geladen(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: Nein (0) +Flash MRepeat Value(0xd1d0):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Flash MRepeat Count(0xd1d1):(readwrite) (type=0x2) Range [0 - 9, step 1] value: 8 +Flash MRepeat Interval(0xd1d2):(readwrite) (type=0x2) Range [0 - 13, step 1] value: 9 +Flash Command Channel(0xd1d3):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Flash Command Self Mode(0xd1d4):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Flash Command Self Compensation(0xd1d5):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Flash Command Self Value(0xd1d6):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Flash Command A Mode(0xd1d7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Flash Command A Compensation(0xd1d8):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Flash Command A Value(0xd1d9):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Flash Command B Mode(0xd1da):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Flash Command B Compensation(0xd1db):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 9 +Flash Command B Value(0xd1dc):(readwrite) (type=0x2) Range [0 - 21, step 1] value: 0 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,101,102,103,104,201,202,203,204,205,206,207,208,209] value: 1 +Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0 + +/main/actions/autofocusdrive + Label: Drive Nikon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/actions/manualfocusdrive + Label: Drive Nikon DSLR Manual focus + Type: RANGE + Current: 0 + Bottom: -32767 + Top: 32767 + Step: 1 +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1248472434 + Printable: Fri Jul 24 23:53:54 2009 +/main/settings/imgcomment + Label: Image Comment + Type: TEXT + Current: +/main/settings/imgcommentenable + Label: Enable Image Comment + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/recordingmedia + Label: Recording Media + Type: RADIO + Current: Card + Choice: 0 Card + Choice: 1 SDRAM +/main/settings/meterofftime + Label: Meter Off Time + Type: RADIO + Current: 8 seconds + Choice: 0 4 seconds + Choice: 1 6 seconds + Choice: 2 8 seconds + Choice: 3 16 seconds + Choice: 4 30 seconds + Choice: 5 1 minute + Choice: 6 5 minutes + Choice: 7 10 minutes + Choice: 8 30 minutes +/main/settings/reversedial + Label: Reverse Command Dial + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/status/acpower + Label: AC Power + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/externalflash + Label: External Flash + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/battery + Label: Battery Level + Type: TEXT + Current: 40% +/main/status/orientation + Label: Camera Orientation + Type: RADIO + Current: 0' + Choice: 0 0' + Choice: 1 270' + Choice: 2 90' + Choice: 3 180' +/main/status/flashopen + Label: Flash Open + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/flashcharged + Label: Flash Charged + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/minfocallength + Label: Focal Length Minimum + Type: TEXT + Current: 18 mm +/main/status/maxfocallength + Label: Focal Length Maximum + Type: TEXT + Current: 200 mm +/main/status/apertureatminfocallength + Label: Maximum Aperture at Focal Length Minimum + Type: TEXT + Current: 4 mm +/main/status/apertureatmaxfocallength + Label: Maximum Aperture at Focal Length Maximum + Type: TEXT + Current: 6 mm +/main/status/lowlight + Label: Low Light + Type: RANGE + Current: 1 + Bottom: 0 + Top: 8 + Step: 1 +/main/status/lightmeter + Label: Light Meter + Type: RANGE + Current: 0 + Bottom: -60 + Top: 60 + Step: 1 +/main/status/aflocked + Label: AF Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/aelocked + Label: AE Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/status/fvlocked + Label: FV Locked + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/imgsettings/imgquality + Label: Image Quality + Type: RADIO + Current: JPEG Normal + Choice: 0 JPEG Basic + Choice: 1 JPEG Normal + Choice: 2 JPEG Fine + Choice: 3 NEF+Basic + Choice: 4 NEF+Normal + Choice: 5 NEF+Fine + Choice: 6 TIFF (RGB) +/main/imgsettings/imgsize + Label: Image Size + Type: RADIO + Current: 4288x2848 + Choice: 0 4288x2848 + Choice: 1 3216x2136 + Choice: 2 2144x1424 +/main/imgsettings/iso + Label: ISO Speed + Type: RADIO + Current: 800 + Choice: 0 100 + Choice: 1 125 + Choice: 2 160 + Choice: 3 200 + Choice: 4 250 + Choice: 5 320 + Choice: 6 400 + Choice: 7 500 + Choice: 8 640 + Choice: 9 800 + Choice: 10 1000 + Choice: 11 1250 + Choice: 12 1600 + Choice: 13 2000 + Choice: 14 2500 + Choice: 15 3200 + Choice: 16 4000 + Choice: 17 5000 + Choice: 18 6400 +/main/imgsettings/whitebalance + Label: WhiteBalance + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Daylight + Choice: 2 Fluorescent + Choice: 3 Tungsten + Choice: 4 Flash + Choice: 5 Cloudy + Choice: 6 Shade + Choice: 7 Color Temperature + Choice: 8 Preset +/main/imgsettings/autoiso + Label: Auto ISO + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/imgsettings/autoisopadv + Label: Auto ISO PADV Time + Type: RADIO + Current: Unknown value 0012 + Choice: 0 1/125 + Choice: 1 1/60 + Choice: 2 1/30 + Choice: 3 1/15 + Choice: 4 1/8 + Choice: 5 1/4 + Choice: 6 1/2 + Choice: 7 1 + Choice: 8 2 + Choice: 9 4 + Choice: 10 8 + Choice: 11 15 + Choice: 12 30 + Choice: 13 Unknown value 000d + Choice: 14 Unknown value 000e + Choice: 15 Unknown value 000f + Choice: 16 Unknown value 0010 + Choice: 17 Unknown value 0011 + Choice: 18 Unknown value 0012 + Choice: 19 Unknown value 0013 + Choice: 20 Unknown value 0014 + Choice: 21 Unknown value 0015 + Choice: 22 Unknown value 0016 + Choice: 23 Unknown value 0017 +/main/capturesettings/longexpnr + Label: Long Exp Noise Reduction + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/autofocusmode + Label: Auto Focus Mode + Type: RADIO + Current: AF-A + Choice: 0 AF-S + Choice: 1 AF-C + Choice: 2 AF-A + Choice: 3 MF (fixed) + Choice: 4 MF (selection) +/main/capturesettings/assistlight + Label: Assist Light + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurecompensation + Label: Exposure Compensation + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nikonflashmode + Label: Flash Mode + Type: RADIO + Current: iTTL + Choice: 0 iTTL + Choice: 1 Manual + Choice: 2 Commander + Choice: 3 Repeating +/main/capturesettings/af-area-illumination + Label: AF Area Illumination + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Off + Choice: 2 On +/main/capturesettings/afbeep + Label: AF Beep Mode + Type: TOGGLE + Current: 0 +/main/capturesettings/f-number + Label: F-Number + Type: RADIO + Current: f/3.5 + Choice: 0 f/3.5 + Choice: 1 f/4 + Choice: 2 f/4.5 + Choice: 3 f/5 + Choice: 4 f/5.6 + Choice: 5 f/6.3 + Choice: 6 f/7.1 + Choice: 7 f/8 + Choice: 8 f/9 + Choice: 9 f/10 + Choice: 10 f/11 + Choice: 11 f/13 + Choice: 12 f/14 + Choice: 13 f/16 + Choice: 14 f/18 + Choice: 15 f/20 + Choice: 16 f/22 +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 18 + Bottom: 18 + Top: 200 + Step: 0.01 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: AF-A + Choice: 0 Manual + Choice: 1 AF-S + Choice: 2 AF-C + Choice: 3 AF-A +/main/capturesettings/exposurebiascompensation + Label: Exposure Bias Compensation + Type: RADIO + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/capturesettings/exptime + Label: Exposure Time + Type: RADIO + Current: 30s + Choice: 0 0.002s + Choice: 1 30s +/main/capturesettings/expprogram + Label: Exposure Program + Type: RADIO + Current: Night Landscape + Choice: 0 M + Choice: 1 P + Choice: 2 A + Choice: 3 S + Choice: 4 Auto + Choice: 5 Portrait + Choice: 6 Landscape + Choice: 7 Macro + Choice: 8 Sports + Choice: 9 Night Portrait + Choice: 10 Night Landscape +/main/capturesettings/capturemode + Label: Still Capture Mode + Type: RADIO + Current: Continuous Low Speed + Choice: 0 Single Shot + Choice: 1 Burst + Choice: 2 Continuous Low Speed + Choice: 3 Timer + Choice: 4 Timer + Remote + Choice: 5 Timer + Remote 2 +/main/capturesettings/focusmetermode + Label: Focus Metering Mode + Type: RADIO + Current: Closest Subject + Choice: 0 Multi-spot + Choice: 1 Single Area + Choice: 2 Closest Subject + Choice: 3 Group Dynamic +/main/capturesettings/exposuremetermode + Label: Exposure Metering Mode + Type: RADIO + Current: Multi Spot + Choice: 0 Center Weighted + Choice: 1 Multi Spot + Choice: 2 Center Spot +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Flash off + Choice: 0 Flash off +/main/capturesettings/nikon-shutterspeed + Label: Nikon Shutter Speed + Type: RADIO + Current: 4 + Choice: 0 1/4000 + Choice: 1 4 +/main/capturesettings/focusareawrap + Label: Focus Area Wrap + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/exposurelock + Label: Exposure Lock + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/aelaflmode + Label: AE-L/AF-L Mode + Type: RADIO + Current: AE/AF Lock + Choice: 0 AE/AF Lock + Choice: 1 AE Lock only + Choice: 2 AF Lock Only + Choice: 3 AF Lock Hold + Choice: 4 AF On + Choice: 5 Flash Level Lock +/main/capturesettings/filenrsequencing + Label: File Number Sequencing + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/flashsign + Label: Flash Sign + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/viewfindergrid + Label: Viewfinder Grid + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/imagerotationflag + Label: Image Rotation Flag + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/nocfcardrelease + Label: Release without CF card + Type: RADIO + Current: On + Choice: 0 On + Choice: 1 Off +/main/capturesettings/flashmodemanualpower + Label: Flash Mode Manual Power + Type: RADIO + Current: Full + Choice: 0 Full + Choice: 1 1/2 + Choice: 2 1/4 + Choice: 3 1/8 + Choice: 4 1/16 + Choice: 5 Unknown value 0005 + Choice: 6 Unknown value 0006 + Choice: 7 Unknown value 0007 + Choice: 8 Unknown value 0008 + Choice: 9 Unknown value 0009 + Choice: 10 Unknown value 000a + Choice: 11 Unknown value 000b + Choice: 12 Unknown value 000c + Choice: 13 Unknown value 000d + Choice: 14 Unknown value 000e + Choice: 15 Unknown value 000f + Choice: 16 Unknown value 0010 + Choice: 17 Unknown value 0011 + Choice: 18 Unknown value 0012 + Choice: 19 Unknown value 0013 + Choice: 20 Unknown value 0014 + Choice: 21 Unknown value 0015 +/main/capturesettings/autofocusarea + Label: Auto Focus Area + Type: RADIO + Current: Top + Choice: 0 Top + Choice: 1 Bottom + Choice: 2 Left + Choice: 3 Right + Choice: 4 Unknown value 0005 + Choice: 5 Unknown value 0006 + Choice: 6 Unknown value 0007 + Choice: 7 Unknown value 0008 + Choice: 8 Unknown value 0009 + Choice: 9 Unknown value 000a + Choice: 10 Unknown value 000b +/main/capturesettings/flashexposurecompensation + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -3 + Top: 1 + Step: 0.333333 +/main/capturesettings/bracketing + Label: Bracketing + Type: RADIO + Current: Off + Choice: 0 On + Choice: 1 Off +/main/capturesettings/evstep + Label: EV Step + Type: RADIO + Current: 1/3 + Choice: 0 1/3 + Choice: 1 1/2 + Choice: 2 Unknown value 0002 +/main/capturesettings/bracketset + Label: Bracket Set + Type: RADIO + Current: AE & Flash + Choice: 0 AE & Flash + Choice: 1 AE only + Choice: 2 Flash only + Choice: 3 WB bracketing + Choice: 4 ADL bracketing +/main/capturesettings/bracketorder + Label: Bracket Order + Type: RADIO + Current: MTR > Under + Choice: 0 MTR > Under + Choice: 1 Under > MTR +/main/capturesettings/burstnumber + Label: Burst Number + Type: RANGE + Current: 1 + Bottom: 1 + Top: 100 + Step: 1 +/main/capturesettings/autowhitebias + Label: Auto White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/tungstenwhitebias + Label: Tungsten White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/flourescentwhitebias + Label: Fluorescent White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/daylightwhitebias + Label: Daylight White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/flashwhitebias + Label: Flash White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/cloudywhitebias + Label: Cloudy White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/shadewhitebias + Label: Shady White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/capturesettings/whitebiaspresetno + Label: White Balance Bias Preset Nr + Type: RADIO + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/capturesettings/whitebiaspreset0 + Label: White Balance Bias Preset 0 + Type: TEXT + Current: 30212431 +/main/capturesettings/whitebiaspreset1 + Label: White Balance Bias Preset 1 + Type: TEXT + Current: 30212431 +/main/capturesettings/whitebiaspreset2 + Label: White Balance Bias Preset 2 + Type: TEXT + Current: 30212431 +/main/capturesettings/whitebiaspreset3 + Label: White Balance Bias Preset 3 + Type: TEXT + Current: 30212431 +/main/capturesettings/whitebiaspreset4 + Label: White Balance Bias Preset 4 + Type: TEXT + Current: 30212431 +/main/capturesettings/selftimerdelay + Label: Selftimer Delay + Type: RADIO + Current: 10 seconds + Choice: 0 2 seconds + Choice: 1 5 seconds + Choice: 2 10 seconds + Choice: 3 20 seconds +/main/capturesettings/centerweightsize + Label: Center Weight Area + Type: RADIO + Current: 8 mm + Choice: 0 6 mm + Choice: 1 8 mm + Choice: 2 10 mm +/main/capturesettings/flashshutterspeed + Label: Flash Shutter Speed + Type: RADIO + Current: 1/60 + Choice: 0 1/60 + Choice: 1 1/30 + Choice: 2 1/15 + Choice: 3 1/8 + Choice: 4 1/4 + Choice: 5 1/2 + Choice: 6 1 + Choice: 7 2 + Choice: 8 4 + Choice: 9 8 + Choice: 10 15 + Choice: 11 30 +/main/capturesettings/remotetimeout + Label: Remote Timeout + Type: RADIO + Current: 1 minute + Choice: 0 1 minute + Choice: 1 5 minutes + Choice: 2 10 minutes + Choice: 3 15 minutes +/main/other/5001 + Label: Battery Level + Type: MENU + Current: 40 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 + Choice: 50 50 + Choice: 51 51 + Choice: 52 52 + Choice: 53 53 + Choice: 54 54 + Choice: 55 55 + Choice: 56 56 + Choice: 57 57 + Choice: 58 58 + Choice: 59 59 + Choice: 60 60 + Choice: 61 61 + Choice: 62 62 + Choice: 63 63 + Choice: 64 64 + Choice: 65 65 + Choice: 66 66 + Choice: 67 67 + Choice: 68 68 + Choice: 69 69 + Choice: 70 70 + Choice: 71 71 + Choice: 72 72 + Choice: 73 73 + Choice: 74 74 + Choice: 75 75 + Choice: 76 76 + Choice: 77 77 + Choice: 78 78 + Choice: 79 79 + Choice: 80 80 + Choice: 81 81 + Choice: 82 82 + Choice: 83 83 + Choice: 84 84 + Choice: 85 85 + Choice: 86 86 + Choice: 87 87 + Choice: 88 88 + Choice: 89 89 + Choice: 90 90 + Choice: 91 91 + Choice: 92 92 + Choice: 93 93 + Choice: 94 94 + Choice: 95 95 + Choice: 96 96 + Choice: 97 97 + Choice: 98 98 + Choice: 99 99 + Choice: 100 100 +/main/other/5003 + Label: Image Size + Type: MENU + Current: 4288x2848 + Choice: 0 4288x2848 + Choice: 1 3216x2136 + Choice: 2 2144x1424 +/main/other/5004 + Label: Compression Setting + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 +/main/other/5005 + Label: White Balance + Type: MENU + Current: 2 + Choice: 0 2 + Choice: 1 4 + Choice: 2 5 + Choice: 3 6 + Choice: 4 7 + Choice: 5 32784 + Choice: 6 32785 + Choice: 7 32786 + Choice: 8 32787 +/main/other/5007 + Label: F-Number + Type: MENU + Current: 350 + Choice: 0 350 + Choice: 1 400 + Choice: 2 450 + Choice: 3 500 + Choice: 4 560 + Choice: 5 630 + Choice: 6 710 + Choice: 7 800 + Choice: 8 900 + Choice: 9 1000 + Choice: 10 1100 + Choice: 11 1300 + Choice: 12 1400 + Choice: 13 1600 + Choice: 14 1800 + Choice: 15 2000 + Choice: 16 2200 +/main/other/5008 + Label: Focal Length + Type: RANGE + Current: 1800 + Bottom: 1800 + Top: 20000 + Step: 1 +/main/other/500a + Label: Focus Mode + Type: MENU + Current: 32786 + Choice: 0 1 + Choice: 1 32784 + Choice: 2 32785 + Choice: 3 32786 +/main/other/500b + Label: Exposure Metering Mode + Type: MENU + Current: 3 + Choice: 0 2 + Choice: 1 3 + Choice: 2 4 +/main/other/500c + Label: Flash Mode + Type: MENU + Current: 2 + Choice: 0 2 +/main/other/500d + Label: Exposure Time + Type: MENU + Current: 30000 + Choice: 0 2 + Choice: 1 30000 +/main/other/500e + Label: Exposure Program Mode + Type: MENU + Current: 32790 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 32784 + Choice: 5 32785 + Choice: 6 32786 + Choice: 7 32787 + Choice: 8 32788 + Choice: 9 32789 + Choice: 10 32790 +/main/other/500f + Label: Exposure Index (film speed ISO) + Type: MENU + Current: 800 + Choice: 0 100 + Choice: 1 125 + Choice: 2 160 + Choice: 3 200 + Choice: 4 250 + Choice: 5 320 + Choice: 6 400 + Choice: 7 500 + Choice: 8 640 + Choice: 9 800 + Choice: 10 1000 + Choice: 11 1250 + Choice: 12 1600 + Choice: 13 2000 + Choice: 14 2500 + Choice: 15 3200 + Choice: 16 4000 + Choice: 17 5000 + Choice: 18 6400 +/main/other/5010 + Label: Exposure Bias Compensation + Type: MENU + Current: 0 + Choice: 0 -5000 + Choice: 1 -4666 + Choice: 2 -4333 + Choice: 3 -4000 + Choice: 4 -3666 + Choice: 5 -3333 + Choice: 6 -3000 + Choice: 7 -2666 + Choice: 8 -2333 + Choice: 9 -2000 + Choice: 10 -1666 + Choice: 11 -1333 + Choice: 12 -1000 + Choice: 13 -666 + Choice: 14 -333 + Choice: 15 0 + Choice: 16 333 + Choice: 17 666 + Choice: 18 1000 + Choice: 19 1333 + Choice: 20 1666 + Choice: 21 2000 + Choice: 22 2333 + Choice: 23 2666 + Choice: 24 3000 + Choice: 25 3333 + Choice: 26 3666 + Choice: 27 4000 + Choice: 28 4333 + Choice: 29 4666 + Choice: 30 5000 +/main/other/5011 + Label: Date & Time + Type: TEXT + Current: 20090724T225424 +/main/other/5013 + Label: Still Capture Mode + Type: MENU + Current: 32784 + Choice: 0 1 + Choice: 1 2 + Choice: 2 32784 + Choice: 3 32785 + Choice: 4 32788 + Choice: 5 32789 +/main/other/5018 + Label: Burst Number + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 + Choice: 11 12 + Choice: 12 13 + Choice: 13 14 + Choice: 14 15 + Choice: 15 16 + Choice: 16 17 + Choice: 17 18 + Choice: 18 19 + Choice: 19 20 + Choice: 20 21 + Choice: 21 22 + Choice: 22 23 + Choice: 23 24 + Choice: 24 25 + Choice: 25 26 + Choice: 26 27 + Choice: 27 28 + Choice: 28 29 + Choice: 29 30 + Choice: 30 31 + Choice: 31 32 + Choice: 32 33 + Choice: 33 34 + Choice: 34 35 + Choice: 35 36 + Choice: 36 37 + Choice: 37 38 + Choice: 38 39 + Choice: 39 40 + Choice: 40 41 + Choice: 41 42 + Choice: 42 43 + Choice: 43 44 + Choice: 44 45 + Choice: 45 46 + Choice: 46 47 + Choice: 47 48 + Choice: 48 49 + Choice: 49 50 + Choice: 50 51 + Choice: 51 52 + Choice: 52 53 + Choice: 53 54 + Choice: 54 55 + Choice: 55 56 + Choice: 56 57 + Choice: 57 58 + Choice: 58 59 + Choice: 59 60 + Choice: 60 61 + Choice: 61 62 + Choice: 62 63 + Choice: 63 64 + Choice: 64 65 + Choice: 65 66 + Choice: 66 67 + Choice: 67 68 + Choice: 68 69 + Choice: 69 70 + Choice: 70 71 + Choice: 71 72 + Choice: 72 73 + Choice: 73 74 + Choice: 74 75 + Choice: 75 76 + Choice: 76 77 + Choice: 77 78 + Choice: 78 79 + Choice: 79 80 + Choice: 80 81 + Choice: 81 82 + Choice: 82 83 + Choice: 83 84 + Choice: 84 85 + Choice: 85 86 + Choice: 86 87 + Choice: 87 88 + Choice: 88 89 + Choice: 89 90 + Choice: 90 91 + Choice: 91 92 + Choice: 92 93 + Choice: 93 94 + Choice: 94 95 + Choice: 95 96 + Choice: 96 97 + Choice: 97 98 + Choice: 98 99 + Choice: 99 100 +/main/other/501c + Label: Focus Metering Mode + Type: MENU + Current: 32785 + Choice: 0 2 + Choice: 1 32784 + Choice: 2 32785 + Choice: 3 32786 +/main/other/d406 + Label: PTP Property 0xd406 + Type: TEXT + Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 + Label: PTP Property 0xd407 + Type: TEXT + Current: 1 +/main/other/d017 + Label: Auto White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d018 + Label: Tungsten White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d019 + Label: Fluorescent White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01a + Label: Daylight White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01b + Label: Flash White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01c + Label: Cloudy White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01d + Label: Shady White Balance Bias + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d01e + Label: White Balance Colour Temperature + Type: MENU + Current: 20 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 +/main/other/d01f + Label: White Balance Preset Number + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d020 + Label: White Balance Preset Name 0 + Type: TEXT + Current: +/main/other/d021 + Label: White Balance Preset Name 1 + Type: TEXT + Current: +/main/other/d022 + Label: White Balance Preset Name 2 + Type: TEXT + Current: +/main/other/d023 + Label: White Balance Preset Name 3 + Type: TEXT + Current: +/main/other/d024 + Label: White Balance Preset Name 4 + Type: TEXT + Current: +/main/other/d025 + Label: White Balance Preset Value 0 + Type: TEXT + Current: 30212431 +/main/other/d026 + Label: White Balance Preset Value 1 + Type: TEXT + Current: 30212431 +/main/other/d027 + Label: White Balance Preset Value 2 + Type: TEXT + Current: 30212431 +/main/other/d028 + Label: White Balance Preset Value 3 + Type: TEXT + Current: 30212431 +/main/other/d029 + Label: White Balance Preset Value 4 + Type: TEXT + Current: 30212431 +/main/other/d032 + Label: Color Space + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d045 + Label: Reset Menu Bank + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d04f + Label: Focus Area Wrap + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d050 + Label: Vertical AF On + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 +/main/other/d052 + Label: Focus Area Zone + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d054 + Label: Auto ISO + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d056 + Label: Exposure Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d058 + Label: Exposure Compensation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d059 + Label: Centre Weight Area + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d05a + Label: Exposure Base Matrix + Type: MENU + Current: 0 + Choice: 0 -6 + Choice: 1 -5 + Choice: 2 -4 + Choice: 3 -3 + Choice: 4 -2 + Choice: 5 -1 + Choice: 6 0 + Choice: 7 1 + Choice: 8 2 + Choice: 9 3 + Choice: 10 4 + Choice: 11 5 + Choice: 12 6 +/main/other/d05b + Label: Exposure Base Center + Type: MENU + Current: 0 + Choice: 0 -6 + Choice: 1 -5 + Choice: 2 -4 + Choice: 3 -3 + Choice: 4 -2 + Choice: 5 -1 + Choice: 6 0 + Choice: 7 1 + Choice: 8 2 + Choice: 9 3 + Choice: 10 4 + Choice: 11 5 + Choice: 12 6 +/main/other/d05c + Label: Exposure Base Spot + Type: MENU + Current: 0 + Choice: 0 -6 + Choice: 1 -5 + Choice: 2 -4 + Choice: 3 -3 + Choice: 4 -2 + Choice: 5 -1 + Choice: 6 0 + Choice: 7 1 + Choice: 8 2 + Choice: 9 3 + Choice: 10 4 + Choice: 11 5 + Choice: 12 6 +/main/other/d05d + Label: Live View AF + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d05e + Label: Exposure Lock + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d05f + Label: Focus Lock + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d062 + Label: Auto Meter Off Time + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 +/main/other/d063 + Label: Self Timer Delay + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d065 + Label: Img Conf Time + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d068 + Label: Shooting Speed + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d06a + Label: Exposure delay mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d06b + Label: Long Exposure Noise Reduction + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d06c + Label: File Number Sequencing + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d06f + Label: LCD Illumination + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d070 + Label: High ISO noise reduction + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d071 + Label: On screen tips + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d075 + Label: Flash Shutter Speed + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 +/main/other/d077 + Label: Modeling Flash + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d078 + Label: Bracket Set + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d07a + Label: Bracket Order + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d080 + Label: Center Button Shooting Mode + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d084 + Label: Assign Func. Button + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 +/main/other/d085 + Label: Customise Command Dials + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d086 + Label: Reverse Command Dial + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d088 + Label: Menus and Playback + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d08a + Label: No CF Card Release + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d090 + Label: Image Comment String + Type: TEXT + Current: +/main/other/d091 + Label: Image Comment Enable + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d092 + Label: Image Rotation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0a0 + Label: Movie Screen Size + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d0a1 + Label: Movie Voice + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0c0 + Label: Bracketing Enable + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d0c1 + Label: Exposure Bracketing Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d0c2 + Label: Exposure Bracketing Program + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d0c3 + Label: Auto Exposure Bracket Count + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 +/main/other/d0c4 + Label: White Balance Bracket Step + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d0c5 + Label: White Balance Bracket Program + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d0e0 + Label: Lens ID + Type: TEXT + Current: 139 +/main/other/d0e1 + Label: Lens Sort + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d0e2 + Label: Lens Type + Type: TEXT + Current: 15 +/main/other/d0e3 + Label: Min. Focal Length + Type: TEXT + Current: 1800 +/main/other/d0e4 + Label: Max. Focal Length + Type: TEXT + Current: 20000 +/main/other/d0e5 + Label: Max. Aperture at Min. Focal Length + Type: TEXT + Current: 350 +/main/other/d0e6 + Label: Max. Aperture at Max. Focal Length + Type: TEXT + Current: 560 +/main/other/d0f0 + Label: Finder ISO Display + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d0f2 + Label: Auto Off Photo + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d0f3 + Label: Auto Off Menu + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d0f4 + Label: Auto Off Info + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d0f5 + Label: Self Timer Shot Number + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 +/main/other/d100 + Label: Nikon Exposure Time + Type: MENU + Current: 262145 + Choice: 0 69536 + Choice: 1 262145 +/main/other/d101 + Label: AC Power + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d102 + Label: Warning Status + Type: TEXT + Current: 0 +/main/other/d103 + Label: Maximum Shots + Type: MENU + Current: 20 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 + Choice: 24 24 + Choice: 25 25 + Choice: 26 26 + Choice: 27 27 + Choice: 28 28 + Choice: 29 29 + Choice: 30 30 + Choice: 31 31 + Choice: 32 32 + Choice: 33 33 + Choice: 34 34 + Choice: 35 35 + Choice: 36 36 + Choice: 37 37 + Choice: 38 38 + Choice: 39 39 + Choice: 40 40 + Choice: 41 41 + Choice: 42 42 + Choice: 43 43 + Choice: 44 44 + Choice: 45 45 + Choice: 46 46 + Choice: 47 47 + Choice: 48 48 + Choice: 49 49 + Choice: 50 50 + Choice: 51 51 + Choice: 52 52 + Choice: 53 53 + Choice: 54 54 + Choice: 55 55 + Choice: 56 56 + Choice: 57 57 + Choice: 58 58 + Choice: 59 59 + Choice: 60 60 + Choice: 61 61 + Choice: 62 62 + Choice: 63 63 + Choice: 64 64 + Choice: 65 65 + Choice: 66 66 + Choice: 67 67 + Choice: 68 68 + Choice: 69 69 + Choice: 70 70 + Choice: 71 71 + Choice: 72 72 + Choice: 73 73 + Choice: 74 74 + Choice: 75 75 + Choice: 76 76 + Choice: 77 77 + Choice: 78 78 + Choice: 79 79 + Choice: 80 80 + Choice: 81 81 + Choice: 82 82 + Choice: 83 83 + Choice: 84 84 + Choice: 85 85 + Choice: 86 86 + Choice: 87 87 + Choice: 88 88 + Choice: 89 89 + Choice: 90 90 + Choice: 91 91 + Choice: 92 92 + Choice: 93 93 + Choice: 94 94 + Choice: 95 95 + Choice: 96 96 + Choice: 97 97 + Choice: 98 98 + Choice: 99 99 +/main/other/d104 + Label: AF Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d105 + Label: AE Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d106 + Label: FV Locked + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d108 + Label: Active AF Sensor + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 7 + Choice: 7 8 + Choice: 8 9 + Choice: 9 10 + Choice: 10 11 +/main/other/d109 + Label: Flexible Program + Type: RANGE + Current: 0 + Bottom: -30 + Top: 30 + Step: 2 +/main/other/d10b + Label: Recording Media + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d10c + Label: USB Speed + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d10d + Label: CCD Serial Number + Type: TEXT + Current: 1399081 +/main/other/d10e + Label: Camera Orientation + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d114 + Label: Illum Setting + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d120 + Label: External Flash Attached + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d121 + Label: External Flash Status + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d122 + Label: External Flash Sort + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d124 + Label: External Flash Compensation + Type: MENU + Current: 0 + Choice: 0 -18 + Choice: 1 -17 + Choice: 2 -16 + Choice: 3 -15 + Choice: 4 -14 + Choice: 5 -13 + Choice: 6 -12 + Choice: 7 -11 + Choice: 8 -10 + Choice: 9 -9 + Choice: 10 -8 + Choice: 11 -7 + Choice: 12 -6 + Choice: 13 -5 + Choice: 14 -4 + Choice: 15 -3 + Choice: 16 -2 + Choice: 17 -1 + Choice: 18 0 + Choice: 19 1 + Choice: 20 2 + Choice: 21 3 + Choice: 22 4 + Choice: 23 5 + Choice: 24 6 + Choice: 25 7 + Choice: 26 8 + Choice: 27 9 + Choice: 28 10 + Choice: 29 11 + Choice: 30 12 + Choice: 31 13 + Choice: 32 14 + Choice: 33 15 + Choice: 34 16 + Choice: 35 17 + Choice: 36 18 +/main/other/d125 + Label: External Flash Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 +/main/other/d126 + Label: Flash Exposure Compensation + Type: RANGE + Current: 0 + Bottom: -18 + Top: 6 + Step: 2 +/main/other/d14e + Label: ISO Auto Time + Type: MENU + Current: 5 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d14f + Label: Flourescent Type + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 +/main/other/d150 + Label: Tune Colour Temperature + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d151 + Label: Tune Preset 0 + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d152 + Label: Tune Preset 1 + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d153 + Label: Tune Preset 2 + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d154 + Label: Tune Preset 3 + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d155 + Label: Tune Preset 4 + Type: RANGE + Current: 84 + Bottom: 0 + Top: 168 + Step: 1 +/main/other/d160 + Label: AF Beep Mode + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d161 + Label: Autofocus Mode + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d163 + Label: AF Assist Lamp + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d164 + Label: Auto ISO P/A/DVP Setting + Type: MENU + Current: 18 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 + Choice: 22 22 + Choice: 23 23 +/main/other/d166 + Label: AF Area Illumination + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d167 + Label: Flash Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d169 + Label: Flash Sign + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d16a + Label: PTP Property 0xd16a + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d16b + Label: Remote Timeout + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d16c + Label: Viewfinder Grid Display + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d16d + Label: Flash Mode Manual Power + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 +/main/other/d16f + Label: Auto FP + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d181 + Label: Warning Display + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d182 + Label: Battery Cell Kind + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d183 + Label: ISO Auto High Limit + Type: MENU + Current: 2 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 +/main/other/d187 + Label: Info Disp Setting + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d18d + Label: Indicator Display + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1a2 + Label: Live View Status + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1a3 + Label: Live View Image Zoom Ratio + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d1a4 + Label: Live View Prohibit Condition + Type: TEXT + Current: 1 +/main/other/d1b0 + Label: Exposure Display Status + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 +/main/other/d1b1 + Label: Exposure Indicate Status + Type: MENU + Current: 0 + Choice: 0 -60 + Choice: 1 -59 + Choice: 2 -58 + Choice: 3 -57 + Choice: 4 -56 + Choice: 5 -55 + Choice: 6 -54 + Choice: 7 -53 + Choice: 8 -52 + Choice: 9 -51 + Choice: 10 -50 + Choice: 11 -49 + Choice: 12 -48 + Choice: 13 -47 + Choice: 14 -46 + Choice: 15 -45 + Choice: 16 -44 + Choice: 17 -43 + Choice: 18 -42 + Choice: 19 -41 + Choice: 20 -40 + Choice: 21 -39 + Choice: 22 -38 + Choice: 23 -37 + Choice: 24 -36 + Choice: 25 -35 + Choice: 26 -34 + Choice: 27 -33 + Choice: 28 -32 + Choice: 29 -31 + Choice: 30 -30 + Choice: 31 -29 + Choice: 32 -28 + Choice: 33 -27 + Choice: 34 -26 + Choice: 35 -25 + Choice: 36 -24 + Choice: 37 -23 + Choice: 38 -22 + Choice: 39 -21 + Choice: 40 -20 + Choice: 41 -19 + Choice: 42 -18 + Choice: 43 -17 + Choice: 44 -16 + Choice: 45 -15 + Choice: 46 -14 + Choice: 47 -13 + Choice: 48 -12 + Choice: 49 -11 + Choice: 50 -10 + Choice: 51 -9 + Choice: 52 -8 + Choice: 53 -7 + Choice: 54 -6 + Choice: 55 -5 + Choice: 56 -4 + Choice: 57 -3 + Choice: 58 -2 + Choice: 59 -1 + Choice: 60 0 + Choice: 61 1 + Choice: 62 2 + Choice: 63 3 + Choice: 64 4 + Choice: 65 5 + Choice: 66 6 + Choice: 67 7 + Choice: 68 8 + Choice: 69 9 + Choice: 70 10 + Choice: 71 11 + Choice: 72 12 + Choice: 73 13 + Choice: 74 14 + Choice: 75 15 + Choice: 76 16 + Choice: 77 17 + Choice: 78 18 + Choice: 79 19 + Choice: 80 20 + Choice: 81 21 + Choice: 82 22 + Choice: 83 23 + Choice: 84 24 + Choice: 85 25 + Choice: 86 26 + Choice: 87 27 + Choice: 88 28 + Choice: 89 29 + Choice: 90 30 + Choice: 91 31 + Choice: 92 32 + Choice: 93 33 + Choice: 94 34 + Choice: 95 35 + Choice: 96 36 + Choice: 97 37 + Choice: 98 38 + Choice: 99 39 + Choice: 100 40 + Choice: 101 41 + Choice: 102 42 + Choice: 103 43 + Choice: 104 44 + Choice: 105 45 + Choice: 106 46 + Choice: 107 47 + Choice: 108 48 + Choice: 109 49 + Choice: 110 50 + Choice: 111 51 + Choice: 112 52 + Choice: 113 53 + Choice: 114 54 + Choice: 115 55 + Choice: 116 56 + Choice: 117 57 + Choice: 118 58 + Choice: 119 59 + Choice: 120 60 +/main/other/d1b2 + Label: PTP Property 0xd1b2 + Type: MENU + Current: 1 + Choice: 0 0 + Choice: 1 1 +/main/other/d1b3 + Label: Exposure Indicate Lightup + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1c0 + Label: Flash Open + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1c1 + Label: Flash Charged + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 +/main/other/d1d0 + Label: Flash MRepeat Value + Type: MENU + Current: 3 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 +/main/other/d1d1 + Label: Flash MRepeat Count + Type: MENU + Current: 8 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 +/main/other/d1d2 + Label: Flash MRepeat Interval + Type: MENU + Current: 9 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 +/main/other/d1d3 + Label: Flash Command Channel + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d1d4 + Label: Flash Command Self Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 +/main/other/d1d5 + Label: Flash Command Self Compensation + Type: MENU + Current: 9 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 +/main/other/d1d6 + Label: Flash Command Self Value + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 +/main/other/d1d7 + Label: Flash Command A Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d1d8 + Label: Flash Command A Compensation + Type: MENU + Current: 9 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 +/main/other/d1d9 + Label: Flash Command A Value + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 +/main/other/d1da + Label: Flash Command B Mode + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 +/main/other/d1db + Label: Flash Command B Compensation + Type: MENU + Current: 9 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 +/main/other/d1dc + Label: Flash Command B Value + Type: MENU + Current: 0 + Choice: 0 0 + Choice: 1 1 + Choice: 2 2 + Choice: 3 3 + Choice: 4 4 + Choice: 5 5 + Choice: 6 6 + Choice: 7 7 + Choice: 8 8 + Choice: 9 9 + Choice: 10 10 + Choice: 11 11 + Choice: 12 12 + Choice: 13 13 + Choice: 14 14 + Choice: 15 15 + Choice: 16 16 + Choice: 17 17 + Choice: 18 18 + Choice: 19 19 + Choice: 20 20 + Choice: 21 21 +/main/other/d200 + Label: Active Pic Ctrl Item + Type: MENU + Current: 1 + Choice: 0 1 + Choice: 1 2 + Choice: 2 3 + Choice: 3 4 + Choice: 4 5 + Choice: 5 6 + Choice: 6 101 + Choice: 7 102 + Choice: 8 103 + Choice: 9 104 + Choice: 10 201 + Choice: 11 202 + Choice: 12 203 + Choice: 13 204 + Choice: 14 205 + Choice: 15 206 + Choice: 16 207 + Choice: 17 208 + Choice: 18 209 +/main/other/d201 + Label: Change Pic Ctrl Item + Type: MENU + Current: 0 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j1.txt new file mode 100644 index 00000000..fced0209 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j1.txt @@ -0,0 +1,237 @@ +Device info: +Manufacturer: Nikon Corporation + Model: J1 + device version: V1.12 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c3 + 0x90c7 + 0x90c8 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5011 + 0xd303 + 0xd406 + 0xd407 + + +Camera summary: +Manufacturer: Nikon Corporation +Model: J1 + Version: V1.12 + Serial Number: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, Apple Quicktime, DPOF, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON 1 J1 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 15923150848 (15185 MB) + Free Space (Bytes): 15922987008 (15185 MB) + Free Space (Images): 4417 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Date & Time(0x5011):(readwrite) (type=0xffff) '20120812T075736' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1344779909 +Printable: Sun 12 Aug 2012 08:58:29 AM CDT +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20120812T075829 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j2.txt new file mode 100644 index 00000000..8a8200fc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j2.txt @@ -0,0 +1,177 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: J2 + Version: V1.00 + Serial Number: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, Apple Quicktime, DPOF, Script + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 64818774016 (61816 MB) + Free Space (Bytes): 63917522944 (60956 MB) + Free Space (Images): 8866 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 20% (20) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130410T114458' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1365590725 +Printable: Wed 10 Apr 2013 12:45:25 PM CEST +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 20% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130410T114525 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j3.txt new file mode 100644 index 00000000..d69c70f1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j3.txt @@ -0,0 +1,119 @@ +root@debian:/home/jonivar/jon# env LANG=C gphoto2 --summary +Camera summary: +Manufacturer: Nikon Corporation +Model: J3 + Version: Ver.1.0001 + Serial Number: nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: Undefined Type, Association/Directory, Script, DPOF, Apple +Quicktime, JPEG, TIFF + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: [Slot 1] + + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 16004415488 (15263 MB) + Free Space (Bytes): 15996092416 (15255 MB) + Free Space (Images): 3276 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 20% (20) +Compression Setting(0x5004):(read only) (type=0x2) Enumeration [0,1,2,4,7] value: JPEG Norm (1) +F-Number(0x5007):(read only) (type=0x4) Enumeration [100,110,120,130,140,150,160,170,180,190,200,220,240,250,270,280,300,320,350,380,400,420,450,480,500,530,560,600,630,670,710,760,800,850,900,950,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2100,2200,2400,2500,2760,2900,3000,3200,0] value: f/5.6 (560) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [32784,32785,32786,32787,32788] value: Auto (32784) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130830T221553' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 + +root@debian:/home/jonivar/jon# env LANG=C gphoto2 --debug +--debug-logfile=my-logfile.txt --capture-image + +*** Error *** +PTP Operation Not Supported +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** + +0.627938 PTP2/ptp2/library.c(2): Device info: +0.627962 PTP2/ptp2/library.c(2): Manufacturer: Nikon Corporation +0.627979 PTP2/ptp2/library.c(2): Model: J3 +0.627996 PTP2/ptp2/library.c(2): device version: Ver.1.0001 +0.628013 PTP2/ptp2/library.c(2): serial number: 'nnnnnnnn' +0.628030 PTP2/ptp2/library.c(2): Vendor extension ID: 0x0000000a +0.628047 PTP2/ptp2/library.c(2): Vendor extension version: 100 +0.628082 PTP2/ptp2/library.c(2): Vendor extension description: microsoft.com: 1.0 +0.628101 PTP2/ptp2/library.c(2): Functional Mode: 0x0000 +0.628118 PTP2/ptp2/library.c(2): PTP Standard Version: 100 +0.628135 PTP2/ptp2/library.c(2): Supported operations: +0.628152 PTP2/ptp2/library.c(2): 0x1001 +0.628169 PTP2/ptp2/library.c(2): 0x1002 +0.628186 PTP2/ptp2/library.c(2): 0x1003 +0.628203 PTP2/ptp2/library.c(2): 0x1004 +0.628220 PTP2/ptp2/library.c(2): 0x1005 +0.628237 PTP2/ptp2/library.c(2): 0x1006 +0.628254 PTP2/ptp2/library.c(2): 0x1007 +0.628308 PTP2/ptp2/library.c(2): 0x1008 +0.628327 PTP2/ptp2/library.c(2): 0x1009 +0.628344 PTP2/ptp2/library.c(2): 0x100a +0.628361 PTP2/ptp2/library.c(2): 0x100b +0.628378 PTP2/ptp2/library.c(2): 0x100c +0.628394 PTP2/ptp2/library.c(2): 0x100d +0.628411 PTP2/ptp2/library.c(2): 0x100e +0.628428 PTP2/ptp2/library.c(2): 0x100f +0.628444 PTP2/ptp2/library.c(2): 0x1014 +0.628461 PTP2/ptp2/library.c(2): 0x1015 +0.628478 PTP2/ptp2/library.c(2): 0x1016 +0.628494 PTP2/ptp2/library.c(2): 0x101b +0.628511 PTP2/ptp2/library.c(2): 0x90c0 +0.628528 PTP2/ptp2/library.c(2): 0x90c1 +0.628545 PTP2/ptp2/library.c(2): 0x90c2 +0.628562 PTP2/ptp2/library.c(2): 0x90c3 +0.628578 PTP2/ptp2/library.c(2): 0x90c4 +0.628595 PTP2/ptp2/library.c(2): 0x90c7 +0.628611 PTP2/ptp2/library.c(2): 0x90c8 +0.628628 PTP2/ptp2/library.c(2): 0x9201 +0.628645 PTP2/ptp2/library.c(2): 0x9202 +0.628661 PTP2/ptp2/library.c(2): 0x9203 +0.628678 PTP2/ptp2/library.c(2): 0x9207 +0.628695 PTP2/ptp2/library.c(2): 0x9801 +0.628711 PTP2/ptp2/library.c(2): 0x9802 +0.628728 PTP2/ptp2/library.c(2): 0x9803 +0.628745 PTP2/ptp2/library.c(2): 0x9805 +0.628763 PTP2/ptp2/library.c(2): Events Supported: +0.628822 PTP2/ptp2/library.c(2): 0x4001 +0.628839 PTP2/ptp2/library.c(2): 0x4002 +0.628856 PTP2/ptp2/library.c(2): 0x4004 +0.628873 PTP2/ptp2/library.c(2): 0x4005 +0.628890 PTP2/ptp2/library.c(2): 0x4006 +0.628906 PTP2/ptp2/library.c(2): 0x4008 +0.628923 PTP2/ptp2/library.c(2): 0x4009 +0.628940 PTP2/ptp2/library.c(2): 0x400a +0.628957 PTP2/ptp2/library.c(2): 0x400c +0.628974 PTP2/ptp2/library.c(2): 0x400d +0.629074 PTP2/ptp2/library.c(2): Device Properties Supported: +0.629093 PTP2/ptp2/library.c(2): 0x5001 +0.629110 PTP2/ptp2/library.c(2): 0x5004 +0.629127 PTP2/ptp2/library.c(2): 0x5007 +0.629144 PTP2/ptp2/library.c(2): 0x500e +0.629161 PTP2/ptp2/library.c(2): 0x5011 +0.629177 PTP2/ptp2/library.c(2): 0xd303 +0.629194 PTP2/ptp2/library.c(2): 0xd406 +0.629211 PTP2/ptp2/library.c(2): 0xd407 + + +0000 10 00 00 00 01 00 c0 90-05 00 00 00 ff ff ff ff ................ +0000 0c 00 00 00 03 00 05 20-05 00 00 00 ....... .... + +0.660727 ptp2/usb_getresp(2): request code 0x90c0 getting resp error 0x2005 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j4.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j4.txt new file mode 100644 index 00000000..327c7e5e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-j4.txt @@ -0,0 +1,66 @@ +$ gphoto2 --summary +Camera summary: +Manufacturer: Nikon Corporation +Model: J4 + Version: Ver.1.0011 + Serial Number: 000000000000000000000000nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: Undefined Type, Association/Directory, Script, DPOF, Apple Quicktime, JPEG, TIFF + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 3 + +Storage Devices Summary: + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Compression Setting(0x5004):(read only) (type=0x2) Enumeration [0,1,2,4,7] value: JPEG Norm (1) +F-Number(0x5007):(read only) (type=0x4) Enumeration [100,110,120,130,140,150,160,170,180,190,200,220,240,250,270,280,300,320,350,380,400,420,450,480,500,530,560,600,630,670,710,760,800,850,900,950,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2100,2200,2400,2500,2760,2900,3000,3200,0] value: f/5.6 (560) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [32784,32785,32786,32787,32788] value: Auto (32784) +Date & Time(0x5011):(readwrite) (type=0xffff) '20140103T225857' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Bracketing Enable(0xd0c0):(read only) (type=0x2) Range [0 - 0, step 1] value: Off (0) +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd038:(readwrite) (type=0x2) Enumeration [0,1,2,3,7,8,9,10,11,12,13,14] value: 12 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [4294967295,1966081,1638401,1310721,983041,851969,655361,524289,393217,327681,262145,196609,1638410,131073,1048586,983050,851978,65537,655373,655375,655376,65538,655385,65539,65540,65541,65542,65544,65546,65549,65551,65556,65561,65566,65576,65581,65586,65596,65616,65626,65636,65661,65696,65716,65736,65786,65856,65886,65936,66036,66176,66286,66336,66536,66786,67036,67136,67536,68036,68536,68736,69536,70536,71536,71936,73536,74536,75536,78036,78536,80536,81536] value: 65786 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x2) 0 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 8912896 +Property 0xf001:(readwrite) (type=0x2) Enumeration [0,1,2,3,4] value: 0 +ISO(0xf002):(readwrite) (type=0x2) Range [0 - 52, step 1] value: 1 +Property 0xf003:(readwrite) (type=0x2) Range [0 - 60, step 1] value: 0 +Property 0xf004:(readwrite) (type=0x2) Range [224 - 84, step 1] value: 0 +Property 0xf005:(read only) (type=0x2) Range [30 - 72, step 1] value: 0 +Property 0xf006:(readwrite) (type=0x2) Range [0 - 60, step 1] value: 0 +Property 0xf007:(readwrite) (type=0x2) Range [224 - 84, step 1] value: 0 +Property 0xf008:(read only) (type=0x2) Range [30 - 60, step 1] value: 0 +Image Compression(0xf009):(readwrite) (type=0x2) Enumeration [0,1,2,3,6] value: 1 +Image Size(0xf00a):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +White Balance(0xf00c):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,9] value: 0 +Long Exposure Noise Reduction(0xf00d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +High ISO Noise Reduction(0xf00e):(readwrite) (type=0x2) Enumeration [0,3] value: 0 +Active D-Lighting(0xf00f):(readwrite) (type=0x2) Enumeration [0,5] value: 5 +Property 0xf010:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf011:(read only) (type=0x4) Enumeration [4,1,2,0] value: 3 +Property 0xf012:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xf013:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xf015:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xf016:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf018:(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31] value: 3 +Property 0xf019:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xf01a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf01b:(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5] value: 0 +Movie Quality(0xf01c):(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 1 +Property 0xf00b:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xf014:(readwrite) (type=0x2) Range [1 - 254, step 1] value: 51 +Property 0xd0ab:(read only) (type=0x4) 24670 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-keymission360.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-keymission360.txt new file mode 100644 index 00000000..01a56a18 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-keymission360.txt @@ -0,0 +1,737 @@ +$ gphoto2 --list-all-configur + +/main/actions/autofocusdrive +Drive Nikon DSLR Autofocus +TOGGLE +0 +/main/actions/changeafarea +Set Nikon Autofocus area +TEXT +0x0 +/main/actions/controlmode +Set Nikon Control Mode +TEXT +0 +/main/actions/viewfinder +Nikon Viewfinder +TOGGLE +0 +/main/actions/movie +Movie Capture +TOGGLE +2 +/main/actions/opcode +PTP Opcode +TEXT +0x1001,0xparam1,0xparam2 +/main/settings/datetime +Camera Date and Time +DATE +1485189475 +lun. 23 janv. 2017 17:37:55 CET +Use 'now' as the current time when setting. + +/main/settings/fastfs +Fast Filesystem +TOGGLE +1 +/main/settings/capturetarget +Capture Target +RADIO +Internal RAM +0 Internal RAM +1 Memory card +/main/status/serialnumber +Serial Number +TEXT +None +/main/status/manufacturer +Camera Manufacturer +TEXT +Nikon Corporation +/main/status/cameramodel +Camera Model +TEXT +KeyMission 360 +/main/status/deviceversion +Device Version +TEXT +KeyMission 360 Ver.1.2 +/main/status/vendorextension +Vendor Extension +TEXT +microsoft.com: 1.0; microsoft.com/DeviceServices:1.0; +/main/status/batterylevel +Battery Level +TEXT +1000% +/main/imgsettings/iso +ISO Speed +RADIO +500 +0 100 +1 125 +2 160 +3 200 +4 250 +5 320 +6 400 +7 500 +8 640 +9 800 +10 1000 +11 1250 +12 1600 +13 2000 +14 2500 +15 3200 +16 4000 +17 5000 +18 6400 +19 8000 +20 10000 +21 12800 +22 16000 +23 20000 +24 25600 +/main/imgsettings/whitebalance +WhiteBalance +RADIO +Automatic +0 Automatic +1 Daylight +2 Fluorescent +3 Tungsten +4 Unknown value 1001 +/main/capturesettings/exposurecompensation +Exposure Compensation +RADIO +0 +0 0 +1 0,333 +2 0,666 +3 1 +4 1,333 +5 1,666 +6 2 +7 -0,333 +8 -0,666 +9 -1 +10 -1,333 +11 -1,666 +12 -2 +/main/capturesettings/expprogram +Exposure Program +RADIO +Unknown value 8201 +0 M +1 P +2 A +3 S +4 Auto +5 Automatic (No Flash) +6 Unknown value 8200 +7 Unknown value 8201 +8 Unknown value 8202 +/main/capturesettings/shutterspeed2 +Shutter Speed 2 +RADIO +1/100 +0 30 +1 25 +2 20 +3 15 +4 13 +5 13 +6 13 +7 13 +8 13 +9 4 +10 3 +11 2 +12 2 +13 1 +14 1 +15 1 +16 1 +17 1 +18 1/2 +19 1/2 +20 1/3 +21 1/4 +22 1/5 +23 1/6 +24 1/8 +25 1/10 +26 1/13 +27 1/15 +28 1/20 +29 1/25 +30 1/30 +31 1/40 +32 1/50 +33 1/60 +34 1/80 +35 1/100 +36 1/125 +37 1/160 +38 1/200 +39 1/250 +40 1/320 +41 1/400 +42 1/500 +43 1/641 +44 1/800 +45 1/1000 +46 1/1250 +47 1/1600 +48 1/2000 +49 1/2500 +50 1/3200 +51 1/4000 +52 1/5000 +53 1/6400 +54 1/8000 +55 1/10000 +56 1/13000 +57 1/16000 +58 1/20000 +59 1/26000 +60 1/32000 +/main/capturesettings/liveviewafmode +Live View AF Mode +RADIO +Face-priority AF +0 Face-priority AF +1 Wide-area AF +/main/other/5001 +Battery Level +RANGE +100 +1 +10 +20 +/main/other/5005 +White Balance +MENU +2 +0 2 +1 4 +2 5 +3 6 +4 4097 +/main/other/500e +Exposure Program Mode +MENU +33281 +0 1 +1 2 +2 3 +3 4 +4 32784 +5 32792 +6 33280 +7 33281 +8 33282 +/main/other/500f +Exposure Index (film speed ISO) +MENU +500 +0 100 +1 125 +2 160 +3 200 +4 250 +5 320 +6 400 +7 500 +8 640 +9 800 +10 1000 +11 1250 +12 1600 +13 2000 +14 2500 +15 3200 +16 4000 +17 5000 +18 6400 +19 8000 +20 10000 +21 12800 +22 16000 +23 20000 +24 25600 +/main/other/5010 +Exposure Bias Compensation +MENU +0 +0 0 +1 333 +2 666 +3 1000 +4 1333 +5 1666 +6 2000 +7 -333 +8 -666 +9 -1000 +10 -1333 +11 -1666 +12 -2000 +/main/other/5011 +Date & Time +TEXT +20170123T173755 +/main/other/501f +Copyright Info +TEXT + +/main/other/d05d +Live View AF Area +MENU +0 +0 0 +1 1 +/main/other/d0aa +PTP Property 0xd0aa +MENU +0 +0 0 +1 1 +/main/other/d320 +PTP Property 0xd320 +MENU +0 +0 0 +1 1 +2 2 +3 3 +/main/other/d321 +PTP Property 0xd321 +MENU +0 +0 0 +1 1 +/main/other/d304 +PTP Property 0xd304 +MENU +0 +0 0 +1 1 +2 2 +3 3 +/main/other/d322 +PTP Property 0xd322 +MENU +60 +0 20 +1 40 +2 60 +3 100 +4 150 +/main/other/d323 +PTP Property 0xd323 +MENU +50 +0 50 +1 100 +2 300 +3 600 +/main/other/d324 +PTP Property 0xd324 +MENU +50 +0 20 +1 50 +2 100 +3 300 +4 -1 +/main/other/d0a0 +Movie Screen Size +MENU +80 +0 10 +1 20 +2 40 +3 80 +4 90 +/main/other/d325 +PTP Property 0xd325 +MENU +1 +0 0 +1 1 +/main/other/d326 +PTP Property 0xd326 +MENU +20 +0 10 +1 20 +/main/other/d327 +PTP Property 0xd327 +MENU +0 +0 0 +1 1 +/main/other/d328 +PTP Property 0xd328 +MENU +0 +0 0 +1 1 +2 2 +/main/other/d329 +PTP Property 0xd329 +MENU +1 +0 0 +1 1 +/main/other/d331 +PTP Property 0xd331 +MENU +300 +0 20 +1 50 +2 300 +3 600 +4 3000 +/main/other/d332 +PTP Property 0xd332 +MENU +20 +0 0 +1 10 +2 20 +3 30 +/main/other/d333 +PTP Property 0xd333 +MENU +1 +0 0 +1 1 +/main/other/d334 +PTP Property 0xd334 +MENU +0 +0 0 +1 1 +/main/other/d335 +PTP Property 0xd335 +MENU +1 +0 0 +1 1 +/main/other/d338 +PTP Property 0xd338 +TEXT +KM360_40001545 +/main/other/d339 +PTP Property 0xd339 +MENU +1 +0 0 +1 1 +/main/other/d340 +PTP Property 0xd340 +TEXT +NikonKeyMission +/main/other/d341 +PTP Property 0xd341 +MENU +6 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +/main/other/d342 +PTP Property 0xd342 +TEXT +192.168.0.10 +/main/other/d343 +PTP Property 0xd343 +TEXT +255.255.255.0 +/main/other/d344 +PTP Property 0xd344 +MENU +0 +0 0 +1 1 +/main/other/d344 +PTP Property 0xd344 +MENU +0 +0 0 +1 1 +/main/other/d345 +PTP Property 0xd345 +MENU +1 +0 0 +1 1 +2 2 +/main/other/d347 +PTP Property 0xd347 +MENU +1 +0 0 +1 1 +/main/other/d349 +PTP Property 0xd349 +MENU +0 +0 0 +1 1 +/main/other/df52 +PTP Property 0xdf52 +MENU +0 +0 0 +1 1 +/main/other/df64 +PTP Property 0xdf64 +TEXT + +/main/other/df53 +PTP Property 0xdf53 +MENU +0 +0 0 +1 1 +/main/other/df54 +PTP Property 0xdf54 +TEXT + +/main/other/df63 +PTP Property 0xdf63 +MENU +0 +0 1 +1 2 +2 3 +/main/other/d100 +Nikon Exposure Time +MENU +65636 +0 1966081 +1 1638401 +2 1310721 +3 983041 +4 851969 +5 851969 +6 851969 +7 851969 +8 851969 +9 262145 +10 196609 +11 131073 +12 131073 +13 65537 +14 65537 +15 65537 +16 65537 +17 65537 +18 65538 +19 65538 +20 65539 +21 65540 +22 65541 +23 65542 +24 65544 +25 65546 +26 65549 +27 65551 +28 65556 +29 65561 +30 65566 +31 65576 +32 65586 +33 65596 +34 65616 +35 65636 +36 65661 +37 65696 +38 65736 +39 65786 +40 65856 +41 65936 +42 66036 +43 66177 +44 66336 +45 66536 +46 66786 +47 67136 +48 67536 +49 68036 +50 68736 +51 69536 +52 70536 +53 71936 +54 73536 +55 75536 +56 78536 +57 81536 +58 85536 +59 91536 +60 97536 +/main/other/d1a2 +Live View Status +MENU +0 +0 0 +1 1 +/main/other/d1a4 +Live View Prohibit Condition +TEXT +8388608 +/main/other/d1f1 +PTP Property 0xd1f1 +RANGE +258 +0 +65535 +1 +/main/other/d407 +PTP Property 0xd407 +TEXT +1 +/main/other/d303 +PTP Property 0xd303 +TEXT +1 + + +Device info: +Manufacturer: Nikon Corporation + Model: KeyMission 360 + device version: KeyMission 360 Ver.1.2 + serial number: '(null)' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; microsoft.com/DeviceServices:1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x90c1 (PTP_OC_NIKON_AfDrive) + 0x90c2 (PTP_OC_NIKON_SetControlMode) + 0x90c4 (PTP_OC_NIKON_GetLargeThumb) + 0x941c (Unknown PTP_OC) + 0x90c8 (PTP_OC_NIKON_DeviceReady) + 0x9201 (PTP_OC_NIKON_StartLiveView) + 0x9202 (PTP_OC_NIKON_EndLiveView) + 0x9203 (PTP_OC_NIKON_GetLiveViewImg) + 0x9205 (PTP_OC_NIKON_ChangeAfArea) + 0x9207 (PTP_OC_NIKON_InitiateCaptureRecInMedia) + 0x941e (Unknown PTP_OC) + 0x9520 (Unknown PTP_OC) + 0x9521 (Unknown PTP_OC) + 0x9522 (Unknown PTP_OC) + 0x9601 (Unknown PTP_OC) + 0x9602 (Unknown PTP_OC) + 0x9603 (Unknown PTP_OC) + 0x9604 (Unknown PTP_OC) + 0x9605 (Unknown PTP_OC) + 0x9606 (Unknown PTP_OC) + 0x9607 (Unknown PTP_OC) + 0x9608 (Unknown PTP_OC) + 0x920b (PTP_OC_NIKON_EndMovieRec) + 0x920a (PTP_OC_NIKON_StartMovieRecInCard) + 0x9609 (Unknown PTP_OC) + 0x9610 (Unknown PTP_OC) + 0x9611 (Unknown PTP_OC) + 0x9f01 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc105 + 0xc700 +Device Properties Supported: + 0x5001 + 0x5005 + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x501f + 0xd05d + 0xd0aa + 0xd320 + 0xd321 + 0xd304 + 0xd322 + 0xd323 + 0xd324 + 0xd0a0 + 0xd325 + 0xd326 + 0xd327 + 0xd328 + 0xd329 + 0xd331 + 0xd332 + 0xd333 + 0xd334 + 0xd335 + 0xd338 + 0xd339 + 0xd340 + 0xd341 + 0xd342 + 0xd343 + 0xd344 + 0xd344 + 0xd345 + 0xd347 + 0xd349 + 0xdf52 + 0xdf64 + 0xdf53 + 0xdf54 + 0xdf63 + 0xd100 + 0xd1a2 + 0xd1a4 + 0xd1f1 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-l27.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-l27.txt new file mode 100644 index 00000000..069b760a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-l27.txt @@ -0,0 +1,107 @@ +Camera summary: +Manufacturer: NIKON +Model: L27 + Version: COOLPIX L27 V1.0 + Serial Number: VNAnnnEAnnnnnnnn +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: nikon.co.jp: 1.0; + +Capture Formats: JPEG +Display Formats: JPEG, MS AVI, Association/Directory, Defined Type, DPOF +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 3956801536 (3773 MB) + Free Space (Bytes): 3890315264 (3710 MB) + Free Space (Images): 1885 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [5,25,50,65,80,100] value: 100% (100) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Flash off (2) +Date & Time(0x5011):(readwrite) (type=0xffff) '20131105T151559' +Property 0xd303:(read only) (type=0x2) 1 +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1383664564 +Printable: Tue Nov 5 15:16:04 2013 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: VNAnnnEAnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: NIKON +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: L27 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: COOLPIX L27 V1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: nikon.co.jp: 1.0; +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Flash off +Choice: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 5 +Choice: 1 25 +Choice: 2 50 +Choice: 3 65 +Choice: 4 80 +Choice: 5 100 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20131105T151604 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p2.txt new file mode 100644 index 00000000..e72357a8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p2.txt @@ -0,0 +1,194 @@ +Device info: +Manufacturer: Nikon Corporation + model: P2 + device version: COOLPIX P2v1.0 + serial number: '000040117375' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x1014 + 0x1015 + 0x1016 + 0x101b + + 0x9001 + 0x9002 + 0x9003 + 0x9004 + 0x90c0 capture + 0x90c3 + 0x90c4 + 0x90c7 check event + 0x90c8 check readyness + 0x9006 get profile all data + 0x9007 send profile data + 0x9008 delete profile + 0x9009 set profile data + 0x9010 advanced transfer + 0x9011 get file info block + 0x90e0 get device ptp ip info +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc101 + 0xc102 + 0xc103 +Device Properties Supported: + 0x5001 battery level (read only) + 0x5003 image size (config done) +0x5004 compression setting (partially done) + 0x5008 focal length (config done) + 0x500a focus mode (config done) + 0x500c flash mode (config done) +0x5011 date time (does not work?) + + 0xd001 (r/o) + 0xd002 (unclear what it is) + 0xd003 (r/o) + 0xd005 (r/o) + 0xd102 (r/o) + 0xd161 (unclear. config done as bool) + +Kamerazusammenfassung: +Hersteller: Nikon Corporation +Modell: P2 + Version: COOLPIX P2v1.0 + Seriennummer: nnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Beschreibung der Vendor Extension: Nikon PTP Extensions + +Aufnahmeformate: JPEG +Anzeigeformate: JPEG, TIFF, Association/Directory, DPOF, MS Wave, Apple Quicktime + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, Hochladen von Dateien + Generische Bild Aufnahme, keine Offene Aufnahme, Nikon Aufnahme + Nikon WiFi Unterstützung + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: Keine + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 13533184 (12 MB) + Freier Platz (Bytes): 13434880 (12 MB) + Freier Speicher (Bilder): 10 + +Properties des Geräts: +Batterie Ladezustand(0x5001):(read only) (type=0x2) Enumeration [25,50,65,80,100] value: 100% (100) +Bildgröße(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1280x960', + '1600x1200', + '2048x1536', + '2592x1944', + '3264x2448', + '3264x2176' + ] value: '2592x1944' +Kompressions Parameter(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25] value: 12 +Fokus Tiefe(0x5008):(readwrite) (type=0x6) Enumeration [3500,3700,4000,4300,4600,5000,5400,5900,6400,7100,7800,8600,9400,10400,11500,12700,14100,15700,17500,19200,20900,22500,24000,25300,26700,27900,29100,30200,31400,32600,33800,35000] value: 36 mm (3600) +Fokusmodus(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: Automatisch (2) +Blitzmodus(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Automatic flash (1) +Datum und Zeit(0x5011):(readwrite) (type=0xffff) '20050901T000000' +Property 0xd001:(read only) (type=0x6) Enumeration [0,1,2] value: 1 +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4] value: 4 +Property 0xd003:(read only) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 1 +Warning Status(0xd102):(read only) (type=0x2) 0 +Autofokus Modus(0xd161):(readwrite) (type=0x2) Range [0 - 1, step 1] value: AF-S (0) + +/main/settings/autofocusdrive + Label: Drive Nikon DSLR Autofocus + Type: TOGGLE + Current: 0 +/main/settings/time + Label: Camera Time + Type: DATE + Current: 1125529200 + Printable: Thu Sep 1 01:00:00 2005 +/main/settings/fastfs + Label: Fast Filesystem + Type: TOGGLE + Current: 1 +/main/settings/capturetarget + Label: Capture Target + Type: RADIO + Current: Memory card + Choice: 0 Internal RAM + Choice: 1 Memory card +/main/imgsettings/imgquality + Label: Image Quality + Type: RADIO + Current: Unknown value 000c + Choice: 0 NEF+Fine + Choice: 1 Unknown value 000c + Choice: 2 Unknown value 0019 +/main/imgsettings/imgsize + Label: Image Size + Type: RADIO + Current: 2592x1944 + Choice: 0 640x480 + Choice: 1 1024x768 + Choice: 2 1280x960 + Choice: 3 1600x1200 + Choice: 4 2048x1536 + Choice: 5 2592x1944 + Choice: 6 3264x2448 + Choice: 7 3264x2176 +/main/capturesettings/autofocusmode + Label: Auto Focus Mode + Type: RADIO + Current: AF-S + Choice: 0 AF-S + Choice: 1 AF-C +/main/capturesettings/focallength + Label: Focal Length + Type: RANGE + Current: 36 + Bottom: 35 + Top: 350 + Step: 1 +/main/capturesettings/focusmode + Label: Focus Mode + Type: RADIO + Current: Automatic + Choice: 0 Automatic + Choice: 1 Automatic Macro +/main/capturesettings/flashmode + Label: Flash Mode + Type: RADIO + Current: Automatic Flash + Choice: 0 Automatic Flash + Choice: 1 Flash off + Choice: 2 Fill flash + Choice: 3 Red-eye automatic + Top: 11 + Step: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p3-ptpip.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p3-ptpip.txt new file mode 100644 index 00000000..981e5d73 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p3-ptpip.txt @@ -0,0 +1,73 @@ +Device info: +Manufacturer: Nikon Corporation + model: P3 + device version: V1.00 + serial number: 'nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b + 0x9010 + 0x9011 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc103 +Device Properties Supported: + 0x5001 + 0x5011 + +Camera summary: +Model: P3 + device version: V1.00 + serial number: nnnnnnnn +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions + +Capture Formats: Undefined Type JPEG +Display Formats: Undefined Type, Association/Directory, DPOF, MS Wave, JPEG, JFIF + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: P3 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1015283712 (968 MB) + Free Space (Bytes): 832208896 (793 MB) + Free Space (Images): 206 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 68% (68) +Date Time(0x5011):(readwrite) (type=0xffff) '20060708T103553' + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p3-usb.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p3-usb.txt new file mode 100644 index 00000000..937e5a48 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p3-usb.txt @@ -0,0 +1,159 @@ +Device info: +Manufacturer: Nikon Corporation + model: P3 + device version: V1.00 + serial number: 'nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b + 0x9001 + 0x9004 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x90c0 + 0x90c7 + 0x90c8 + 0x90e0 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc101 + 0xc102 + 0xc103 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5016 + 0x501c + 0xd000 + 0xd002 + 0xd003 + 0xd004 + 0xd005 + 0xd025 + 0xd02a + 0xd02b + 0xd02d + 0xd054 + 0xd06b + 0xd101 + 0xd108 + 0xd10c + 0xd121 + 0xd128 + 0xd130 + 0xd161 + +Camera summary: +Model: P3 + device version: V1.00 + serial number: nnnnnnnn +Vendor extension ID: 0x0000000a +Vendor extension description: Nikon PTP Extensions + +Capture Formats: Undefined Type JPEG +Display Formats: Undefined Type, Association/Directory, DPOF, MS Wave, JPEG, JFIF + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: P3 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1015283712 (968 MB) + Free Space (Bytes): 832225280 (793 MB) + Free Space (Images): 206 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 80% (80) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3264x2448', + '2592x1944', + '2048x1536', + '1024x768', + '640x480' + ] value: '3264x2448' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787,32789,32792,32793,32800,32801,32802,32803,32805] value: Auto (2) +F-Number(0x5007):(read only) (type=0x4) Range [270 - 530, step 26] value: f/0 (0) +Focal Length(0x5008):(read only) (type=0x6) Enumeration [3600,4100,4800,6200,7500,8900,10300,11700,12600] value: 0 mm (0) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3,32770,32771] value: 2 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4,32772] value: Matrix (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4,32785] value: 2 +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [2,3,4] value: P (2) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [65535,50,100,200,400] value: ISO 65535 (65535) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Range [-2000 - 2000, step 100] value: 0.0 stops (0) +Date Time(0x5011):(readwrite) (type=0xffff) '20060708T103443' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1] value: Single Shot (1) +Digital Zoom(0x5016):(read only) (type=0x2) Range [10 - 40, step 2] value: 10 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [1,2,32784] value: Dynamic Area (2) +Property 0xd000:(read only) (type=0xffff) '(null)' +Property 0xd002:(read only) (type=0x2) Enumeration [1] value: 1 +Property 0xd003:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd004:(readwrite) (type=0xffff) Enumeration [ + '640x480', + '320x240', + '160x120' + ] value: '640x480' +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd025:(read only) (type=0x6) Range [0 - 4294967295, step 1] value: 64291552 +Sharpening(0xd02a):(readwrite) (type=0x2) Enumeration [0,1,3,5,6] value: Auto (0) +Tone Compensation(0xd02b):(readwrite) (type=0x2) Enumeration [0,1,3,5] value: Auto (0) +Hue Adjustment(0xd02d):(readwrite) (type=0x1) Enumeration [-2,-1,0,1,2] value: 0 +Auto ISO(0xd054):(readwrite) (type=0x2) Enumeration [0,1] value: On (1) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Enumeration [0,1] value: Off (0) +Property 0xd101:(read only) (type=0x0) Undefined +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 98, step 1] value: 49 +Property 0xd10c:(read only) (type=0x2) Enumeration [0] value: 0 +Property 0xd121:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd128:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd130:(readwrite) (type=0x2) Enumeration [0,1,2,128,129] value: 0 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Enumeration [0,1] value: On (1) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p4.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p4.txt new file mode 100644 index 00000000..276161b5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p4.txt @@ -0,0 +1,162 @@ +Device info: +Manufacturer: Nikon Corporation + Model: P4 + device version: V1.00 + serial number: 'nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x101b + 0x9001 + 0x9004 + 0x9006 + 0x9007 + 0x9008 + 0x9009 + 0x90c0 + 0x90c7 + 0x90c8 + 0x90e0 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 + 0xc101 + 0xc102 + 0xc103 +Device Properties Supported: + 0x5001 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x500a + 0x500b + 0x500c + 0x500e + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x5016 + 0x501c + 0xd000 + 0xd002 + 0xd003 + 0xd004 + 0xd005 + 0xd025 + 0xd02a + 0xd02b + 0xd02d + 0xd054 + 0xd06b + 0xd101 + 0xd108 + 0xd10c + 0xd121 + 0xd128 + 0xd130 + 0xd161 + +Camera summary: +Manufacturer: Nikon Corporation +Model: P4 + Version: V1.00 + Serial Number: 30502903 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: Nikon PTP Extensions + +Capture Formats: Undefined Type JPEG +Display Formats: Undefined Type, Association/Directory, DPOF, MS Wave, JPEG, JFIF + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: P4 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1029832704 (982 MB) + Free Space (Bytes): 884310016 (843 MB) + Free Space (Images): 431 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 35% (35) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '3264x2448', + '2592x1944', + '2048x1536', + '1024x768', + '640x480' + ] value: '3264x2448' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2] value: JPEG Norm (1) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787,32789,32792,32793,32800,32801,32802,32803,32805] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Range [270 - 530, step 26] value: f/2.7 (270) +Focal Length(0x5008):(read only) (type=0x6) Enumeration [3600,4100,4800,6200,7500,8900,10300,11700,12600] value: 36 mm (3600) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3,32770,32771] value: Automatic (2) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4,32772] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4,32785] value: Automatic flash (1) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [2,3,4] value: P (2) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [65535,50,100,200,400] value: ISO 65535 (65535) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Range [-2000 - 2000, step 100] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20100722T014902' +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [1] value: Single Shot (1) +Digital Zoom(0x5016):(read only) (type=0x2) Range [10 - 40, step 2] value: 1.0 (10) +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [1,2,32784] value: Multi-spot (2) +Property 0xd000:(read only) (type=0xffff) '(null)' +Property 0xd002:(read only) (type=0x2) Enumeration [1] value: 1 +Property 0xd003:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd004:(readwrite) (type=0xffff) Enumeration [ + '640x480', + '320x240', + '160x120' + ] value: '640x480' +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 2 +White Balance Preset Value 0(0xd025):(read only) (type=0x6) Range [0 - 4294967295, step 1] value: 64291552 +Sharpening(0xd02a):(readwrite) (type=0x2) Enumeration [0,1,3,5,6] value: Auto (0) +Tone Compensation(0xd02b):(readwrite) (type=0x2) Enumeration [0,1,3,5] value: Auto (0) +Hue Adjustment(0xd02d):(readwrite) (type=0x1) Enumeration [-2,-1,0,1,2] value: 0 +Auto ISO(0xd054):(readwrite) (type=0x2) Enumeration [0,1] value: On (1) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Enumeration [0,1] value: Off (0) +AC Power(0xd101):(Unknown) (type=0x90a) No (Unknown 90a) +Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [0 - 98, step 1] value: 49 +USB Speed(0xd10c):(read only) (type=0x2) Enumeration [0] value: USB 1.1 (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Property 0xd128:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd130:(readwrite) (type=0x2) Enumeration [0,1,2,128,129] value: 0 +Autofocus Mode(0xd161):(readwrite) (type=0x2) Enumeration [0,1] value: AF-C (1) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p5000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p5000.txt new file mode 100644 index 00000000..5db8f0e3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p5000.txt @@ -0,0 +1,108 @@ +Device info: +Manufacturer: Nikon Corporation + Model: P5000 + device version: COOLPIX P5000V1.0 + serial number: 'nnnnnnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 +Device Properties Supported: + 0x5003 + 0x5004 + 0x5011 + 0xd005 + 0xd407 + 0xd406 +Camera summary: +Manufacturer: Nikon Corporation +Model: P5000 + Version: COOLPIX P5000V1.0 + Serial Number: nnnnnnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; Nikon PTP Extensions + +Capture Formats: JPEG +Display Formats: JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, MS AVI, Defined Type +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 998440960 (952 MB) + Free Space (Bytes): 455770112 (434 MB) + Free Space (Images): 90 + +Device Property Summary: +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '640x480', + '1024x768', + '1280x960', + '1600x1200', + '2048x1536', + '2592x1944', + '3584x2016', + '3648x2736', + '3648x2432' + ] value: '3648x2736' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25] value: 25 +Date & Time(0x5011):(readwrite) (type=0xffff) '20090127T142504' +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p7800.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p7800.txt new file mode 100644 index 00000000..cc402baa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p7800.txt @@ -0,0 +1,254 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: P7800 + Version: V1.00 + Serial Number: nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; Nikon PTP Extensions + +Capture Formats: +Display Formats: JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, Undefined Type + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3956801536 (3773 MB) + Free Space (Bytes): 3483205632 (3321 MB) + Free Space (Images): 101 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 72% (72) +Date & Time(0x5011):(readwrite) (type=0xffff) '20140924T102859' +Property 0xd280:(read only) (type=0x2) 0 +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd407:(read only) (type=0x6) 1 + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1411554953 +Printable: Wed Sep 24 11:35:53 2014 +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 40006297 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: P7800 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0; Nikon PTP Extensions +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 64% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 64 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20140924T103553 +/main/other/d280 +Label: PTP Property 0xd280 +Type: TEXT +Current: 0 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Nikon Corporation + Model: P7800 + device version: V1.00 + serial number: 'nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x100b + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x90a1 + 0x90a2 + 0x90a3 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c +Device Properties Supported: + 0x5001 + 0x5011 + 0xd280 + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p900.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p900.txt new file mode 100644 index 00000000..4d9333ca --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-p900.txt @@ -0,0 +1,87 @@ + Device info: + Manufacturer: Nikon Corporation + Model: P900 + device version: COOLPIX P900 V1.3 + serial number: 'SERIAL_DELETED_FOR_DISCRETION' + Vendor extension ID: 0x0000000a + Vendor extension version: 100 + Vendor extension description: microsoft.com: 1.0; microsoft.com/DeviceServices:1.0; + Functional Mode: 0x0000 + PTP Standard Version: 100 + Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x9002 (Unknown PTP_OC) + 0x9003 (Unknown PTP_OC) + 0x90c1 (PTP_OC_NIKON_AfDrive) + 0x90c2 (PTP_OC_NIKON_SetControlMode) + 0x90c4 (PTP_OC_NIKON_GetLargeThumb) + 0x90c7 (PTP_OC_NIKON_CheckEvent) + 0x90c8 (PTP_OC_NIKON_DeviceReady) + 0x9016 (Unknown PTP_OC) + 0x9201 (PTP_OC_NIKON_StartLiveView) + 0x9202 (PTP_OC_NIKON_EndLiveView) + 0x9203 (PTP_OC_NIKON_GetLiveViewImg) + 0x9207 (PTP_OC_NIKON_InitiateCaptureRecInMedia) + 0x9407 (Unknown PTP_OC) + 0x9408 (Unknown PTP_OC) + 0x9409 (Unknown PTP_OC) + 0x940a (Unknown PTP_OC) + 0x9501 (Unknown PTP_OC) + 0x9504 (PTP_OC_NIKON_GetDevicePropEx) + 0x9505 (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + Device Properties Supported: + 0x5001 + 0x5004 + 0x5007 + 0x5008 + 0x500a + 0x500c + 0x500e + 0x5011 + 0xd002 + 0xd280 + 0xd05d + 0xd0e1 + 0xd100 + 0xd1a2 + 0xd1a4 + 0xd1ac + 0xd24f + 0xd250 + 0xd251 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s01.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s01.txt new file mode 100644 index 00000000..042d8120 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s01.txt @@ -0,0 +1,144 @@ +Device info: +Manufacturer: NIKON + Model: S01 + device version: COOLPIX S01 V1.0 + serial number: 'AAAAAAAAAAAAAAAA' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: nikon.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x500c + 0x5011 + 0xd303 + 0xd407 + 0xd406 + +Camera summary: +Manufacturer: NIKON +Model: S01 + Version: COOLPIX S01 V1.0 + Serial Number: AAAAAAAAAAAAAAAA +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: nikon.co.jp: 1.0; + +Capture Formats: JPEG +Display Formats: Unknown(b111), JPEG, Apple Quicktime, Association/Directory, Defined Type, DPOF, Unknown(b111) +Supported MTP Object Properties: + Unknown(b111)/b111: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Unknown(b111)/b111: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 7927955456 (7560 MB) + Free Space (Images): 3095 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [5,25,50,65,80,100] value: 100% (100) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Automatic flash (1) +Date & Time(0x5011):(readwrite) (type=0xffff) '20121116T175708' +Property 0xd303:(read only) (type=0x2) 1 +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1353085028 +Printable: Fri 16 Nov 2012 05:57:08 PM CET +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Automatic Flash +Choice: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 5 +Choice: 1 25 +Choice: 2 50 +Choice: 3 65 +Choice: 4 80 +Choice: 5 100 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20121116T175708 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s02.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s02.txt new file mode 100644 index 00000000..de508471 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s02.txt @@ -0,0 +1,172 @@ +Camera summary: +Manufacturer: NIKON +Model: S02 + Version: COOLPIX S02 V1.0 + Serial Number: VNA452EA4200nnnn +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: nikon.co.jp: 1.0; + +Capture Formats: JPEG +Display Formats: Unknown(b111), JPEG, Apple Quicktime, Association/Directory, Defined Type, DPOF, Unknown(b111) +Supported MTP Object Properties: + Unknown(b111)/b111: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Unknown(b111)/b111: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: External Memory + VolumeLabel: 000000000000000000000000000000000000000000000000 + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 7933001728 (7565 MB) + Free Space (Images): 2395 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [5,25,50,65,80,100] value: 50% (50) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Automatic flash (1) +Date & Time(0x5011):(readwrite) (type=0xffff) '20131012T160945' +Property 0xd303:(read only) (type=0x2) 1 +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1381590585 +Printable: Sat 12 Oct 2013 05:09:45 PM CEST +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: VNA452EA4200nnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: NIKON +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: S02 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: COOLPIX S02 V1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: nikon.co.jp: 1.0; +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Automatic Flash +Choi +*** Error *** +The capturetarget widget is not configurable. + +*** Error *** +The capture widget is not configurable. +ce: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 50 +Choice: 0 5 +Choice: 1 25 +Choice: 2 50 +Choice: 3 65 +Choice: 4 80 +Choice: 5 100 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20131012T160945 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. +New file is in location /store_00010001/DCIM/100NIKON/DSCN0011.JPG on the camera + +Device info: +Manufacturer: NIKON + Model: S02 + device version: COOLPIX S02 V1.0 + serial number: 'VNA452EA42001158' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: nikon.co.jp: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x500c + 0x5011 + 0xd303 + 0xd407 + 0xd406 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s1.txt new file mode 100644 index 00000000..5283f59d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s1.txt @@ -0,0 +1,1150 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: S1 + Version: Ver.1.2004 + Serial Number: 000000000000000000000000nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: Undefined Type, Association/Directory, Script, DPOF, Apple Quicktime, JPEG, TIFF + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 3 + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON 1 S1 [Slot 1] + + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 8261730304 (7879 MB) + Free Space (Bytes): 8210710528 (7830 MB) + Free Space (Images): 1144 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Compression Setting(0x5004):(read only) (type=0x2) Enumeration [0,1,2,4] value: JPEG Fine (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [100,110,120,130,140,150,160,170,180,190,200,220,240,250,270,280,300,320,350,380,400,420,450,480,500,530,560,600,630,670,710,760,800,850,900,950,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2100,2200,2400,2500,2760,2900,3000,3200,0] value: f/3.5 (350) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [32784,32785,32786,32787,32788] value: Sports (32788) +Date & Time(0x5011):(readwrite) (type=0xffff) '20140908T194819' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Bracketing Enable(0xd0c0):(read only) (type=0x2) Range [0 - 0, step 1] value: Off (0) +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd038:(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,8,9,10] value: 0 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [4294967295,1966081,1638401,1310721,983041,851969,655361,524289,393217,327681,262145,196609,1638410,131073,1048586,983050,851978,65537,655373,655375,655376,65538,655385,65539,65540,65541,65542,65544,65546,65549,65551,65556,65561,65566,65576,65581,65586,65596,65616,65626,65636,65661,65696,65716,65736,65786,65856,65886,65936,66036,66176,66286,66336,66536,66786,67036,67136,67536,68036,68536,68736,69536,70536,71536,71936,73536,74536,75536,78036,78536,80536,81536] value: 655361 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Warning Status(0xd102):(read only) (type=0x2) 0 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xf001:(readwrite) (type=0x2) Enumeration [0,1,2,3,4] value: 0 +ISO(0xf002):(readwrite) (type=0x2) Range [0 - 64, step 1] value: 10 +Property 0xf003:(readwrite) (type=0x2) Range [0 - 60, step 1] value: 0 +Property 0xf004:(readwrite) (type=0x2) Range [224 - 84, step 1] value: 0 +Property 0xf005:(read only) (type=0x2) Range [30 - 60, step 1] value: 0 +Property 0xf006:(readwrite) (type=0x2) Range [0 - 60, step 1] value: 0 +Property 0xf007:(readwrite) (type=0x2) Range [224 - 84, step 1] value: 0 +Property 0xf008:(read only) (type=0x2) Range [30 - 60, step 1] value: 0 +Image Compression(0xf009):(readwrite) (type=0x2) Enumeration [0,1,2,3,6] value: 1 +Image Size(0xf00a):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +White Balance(0xf00c):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,9] value: 0 +Long Exposure Noise Reduction(0xf00d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +High ISO Noise Reduction(0xf00e):(readwrite) (type=0x2) Enumeration [0,3] value: 18 +Property 0xf00f:(readwrite) (type=0x2) Enumeration [0,5] value: 5 +Property 0xf010:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf011:(read only) (type=0x4) Enumeration [4,1,2,0] value: 3 +Property 0xf012:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xf013:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf015:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xf016:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf018:(readwrite) (type=0x4) 512 +Property 0xf019:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf01a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf01b:(readwrite) (type=0x2) Enumeration [0,3,6,9,12,15] value: 0 +Movie Quality(0xf01c):(readwrite) (type=0x2) Enumeration [0,1,3,4] value: 0 +Property 0xf00b:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xf014:(readwrite) (type=0x2) Range [1 - 254, step 1] value: 0 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1410198619 +Printable: Mon Sep 8 19:50:19 2014 +Help: Use 'now' as the current time when setting. + +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 000000000000000000000000nnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: S1 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: Ver.1.2004 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0 +/main/status/acpower +Label: AC Power +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/status/flashopen +Label: Flash Open +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: Large +Choice: 0 Small +Choice: 1 Medium +Choice: 2 Large +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Unknown value 000a +Choice: 0 Unknown value 0000 +Choice: 1 A6400 (160-6400) +Choice: 2 A3200 (160-3200) +Choice: 3 A800 (160-800) +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 160 +Choice: 15 Unknown value 000f +Choice: 16 200 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +Choice: 22 400 +Choice: 23 Unknown value 0017 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 800 +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +Choice: 32 Unknown value 0020 +Choice: 33 Unknown value 0021 +Choice: 34 1600 +Choice: 35 Unknown value 0023 +Choice: 36 Unknown value 0024 +Choice: 37 Unknown value 0025 +Choice: 38 Unknown value 0026 +Choice: 39 Unknown value 0027 +Choice: 40 3200 +Choice: 41 Unknown value 0029 +Choice: 42 Unknown value 002a +Choice: 43 Unknown value 002b +Choice: 44 Unknown value 002c +Choice: 45 Unknown value 002d +Choice: 46 6400 +Choice: 47 Unknown value 002f +Choice: 48 Unknown value 0030 +Choice: 49 Unknown value 0031 +Choice: 50 Unknown value 0032 +Choice: 51 Unknown value 0033 +Choice: 52 Unknown value 0034 +Choice: 53 Unknown value 0035 +Choice: 54 Unknown value 0036 +Choice: 55 Unknown value 0037 +Choice: 56 Unknown value 0038 +Choice: 57 Unknown value 0039 +Choice: 58 Unknown value 003a +Choice: 59 Unknown value 003b +Choice: 60 Unknown value 003c +Choice: 61 Unknown value 003d +Choice: 62 Unknown value 003e +Choice: 63 Unknown value 003f +Choice: 64 Unknown value 0040 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Tungsten +Choice: 2 Flourescent +Choice: 3 Daylight +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Unknown value 0009 +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/3.5 +Choice: 0 f/1 +Choice: 1 f/1.1 +Choice: 2 f/1.2 +Choice: 3 f/1.3 +Choice: 4 f/1.4 +Choice: 5 f/1.5 +Choice: 6 f/1.6 +Choice: 7 f/1.7 +Choice: 8 f/1.8 +Choice: 9 f/1.9 +Choice: 10 f/2 +Choice: 11 f/2.2 +Choice: 12 f/2.4 +Choice: 13 f/2.5 +Choice: 14 f/2.7 +Choice: 15 f/2.8 +Choice: 16 f/3 +Choice: 17 f/3.2 +Choice: 18 f/3.5 +Choice: 19 f/3.8 +Choice: 20 f/4 +Choice: 21 f/4.2 +Choice: 22 f/4.5 +Choice: 23 f/4.8 +Choice: 24 f/5 +Choice: 25 f/5.3 +Choice: 26 f/5.6 +Choice: 27 f/6 +Choice: 28 f/6.3 +Choice: 29 f/6.7 +Choice: 30 f/7.1 +Choice: 31 f/7.6 +Choice: 32 f/8 +Choice: 33 f/8.5 +Choice: 34 f/9 +Choice: 35 f/9.5 +Choice: 36 f/10 +Choice: 37 f/11 +Choice: 38 f/12 +Choice: 39 f/13 +Choice: 40 f/14 +Choice: 41 f/15 +Choice: 42 f/16 +Choice: 43 f/17 +Choice: 44 f/18 +Choice: 45 f/19 +Choice: 46 f/20 +Choice: 47 f/21 +Choice: 48 f/22 +Choice: 49 f/24 +Choice: 50 f/25 +Choice: 51 f/27.6 +Choice: 52 f/29 +Choice: 53 f/30 +Choice: 54 f/32 +Choice: 55 f/0 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: Sports +Choice: 0 Auto +Choice: 1 Portrait +Choice: 2 Landscape +Choice: 3 Macro +Choice: 4 Sports +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 10 +Choice: 0 65535/65535 +Choice: 1 30 +Choice: 2 25 +Choice: 3 20 +Choice: 4 15 +Choice: 5 13 +Choice: 6 10 +Choice: 7 8 +Choice: 8 6 +Choice: 9 5 +Choice: 10 4 +Choice: 11 3 +Choice: 12 25/10 +Choice: 13 2 +Choice: 14 16/10 +Choice: 15 15/10 +Choice: 16 13/10 +Choice: 17 1 +Choice: 18 10/13 +Choice: 19 10/15 +Choice: 20 10/16 +Choice: 21 1/2 +Choice: 22 10/25 +Choice: 23 1/3 +Choice: 24 1/4 +Choice: 25 1/5 +Choice: 26 1/6 +Choice: 27 1/8 +Choice: 28 1/10 +Choice: 29 1/13 +Choice: 30 1/15 +Choice: 31 1/20 +Choice: 32 1/25 +Choice: 33 1/30 +Choice: 34 1/40 +Choice: 35 1/45 +Choice: 36 1/50 +Choice: 37 1/60 +Choice: 38 1/80 +Choice: 39 1/90 +Choice: 40 1/100 +Choice: 41 1/125 +Choice: 42 1/160 +Choice: 43 1/180 +Choice: 44 1/200 +Choice: 45 1/250 +Choice: 46 1/320 +Choice: 47 1/350 +Choice: 48 1/400 +Choice: 49 1/500 +Choice: 50 1/640 +Choice: 51 1/750 +Choice: 52 1/800 +Choice: 53 1/1000 +Choice: 54 1/1250 +Choice: 55 1/1500 +Choice: 56 1/1600 +Choice: 57 1/2000 +Choice: 58 1/2500 +Choice: 59 1/3000 +Choice: 60 1/3200 +Choice: 61 1/4000 +Choice: 62 1/5000 +Choice: 63 1/6000 +Choice: 64 1/6400 +Choice: 65 1/8000 +Choice: 66 1/9000 +Choice: 67 1/10000 +Choice: 68 1/12500 +Choice: 69 1/13000 +Choice: 70 1/15000 +Choice: 71 1/16000 +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Face-priority AF +Choice: 0 Face-priority AF +Choice: 1 Wide-area AF +Choice: 2 Normal-area AF +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 350 +Choice: 0 100 +Choice: 1 110 +Choice: 2 120 +Choice: 3 130 +Choice: 4 140 +Choice: 5 150 +Choice: 6 160 +Choice: 7 170 +Choice: 8 180 +Choice: 9 190 +Choice: 10 200 +Choice: 11 220 +Choice: 12 240 +Choice: 13 250 +Choice: 14 270 +Choice: 15 280 +Choice: 16 300 +Choice: 17 320 +Choice: 18 350 +Choice: 19 380 +Choice: 20 400 +Choice: 21 420 +Choice: 22 450 +Choice: 23 480 +Choice: 24 500 +Choice: 25 530 +Choice: 26 560 +Choice: 27 600 +Choice: 28 630 +Choice: 29 670 +Choice: 30 710 +Choice: 31 760 +Choice: 32 800 +Choice: 33 850 +Choice: 34 900 +Choice: 35 950 +Choice: 36 1000 +Choice: 37 1100 +Choice: 38 1200 +Choice: 39 1300 +Choice: 40 1400 +Choice: 41 1500 +Choice: 42 1600 +Choice: 43 1700 +Choice: 44 1800 +Choice: 45 1900 +Choice: 46 2000 +Choice: 47 2100 +Choice: 48 2200 +Choice: 49 2400 +Choice: 50 2500 +Choice: 51 2760 +Choice: 52 2900 +Choice: 53 3000 +Choice: 54 3200 +Choice: 55 0 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 32788 +Choice: 0 32784 +Choice: 1 32785 +Choice: 2 32786 +Choice: 3 32787 +Choice: 4 32788 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20140908T195019 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d05d +Label: Live View AF Area +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d038 +Label: PTP Property 0xd038 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 655361 +Choice: 0 -1 +Choice: 1 1966081 +Choice: 2 1638401 +Choice: 3 1310721 +Choice: 4 983041 +Choice: 5 851969 +Choice: 6 655361 +Choice: 7 524289 +Choice: 8 393217 +Choice: 9 327681 +Choice: 10 262145 +Choice: 11 196609 +Choice: 12 1638410 +Choice: 13 131073 +Choice: 14 1048586 +Choice: 15 983050 +Choice: 16 851978 +Choice: 17 65537 +Choice: 18 655373 +Choice: 19 655375 +Choice: 20 655376 +Choice: 21 65538 +Choice: 22 655385 +Choice: 23 65539 +Choice: 24 65540 +Choice: 25 65541 +Choice: 26 65542 +Choice: 27 65544 +Choice: 28 65546 +Choice: 29 65549 +Choice: 30 65551 +Choice: 31 65556 +Choice: 32 65561 +Choice: 33 65566 +Choice: 34 65576 +Choice: 35 65581 +Choice: 36 65586 +Choice: 37 65596 +Choice: 38 65616 +Choice: 39 65626 +Choice: 40 65636 +Choice: 41 65661 +Choice: 42 65696 +Choice: 43 65716 +Choice: 44 65736 +Choice: 45 65786 +Choice: 46 65856 +Choice: 47 65886 +Choice: 48 65936 +Choice: 49 66036 +Choice: 50 66176 +Choice: 51 66286 +Choice: 52 66336 +Choice: 53 66536 +Choice: 54 66786 +Choice: 55 67036 +Choice: 56 67136 +Choice: 57 67536 +Choice: 58 68036 +Choice: 59 68536 +Choice: 60 68736 +Choice: 61 69536 +Choice: 62 70536 +Choice: 63 71536 +Choice: 64 71936 +Choice: 65 73536 +Choice: 66 74536 +Choice: 67 75536 +Choice: 68 78036 +Choice: 69 78536 +Choice: 70 80536 +Choice: 71 81536 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d1c0 +Label: Flash Open +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/f001 +Label: PTP Property 0xf001 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/f002 +Label: ISO +Type: MENU +Current: 10 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +/main/other/f003 +Label: PTP Property 0xf003 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +/main/other/f004 +Label: PTP Property 0xf004 +Type: MENU +Current: 0 +/main/other/f005 +Label: PTP Property 0xf005 +Type: MENU +Current: 0 +Choice: 0 30 +Choice: 1 31 +Choice: 2 32 +Choice: 3 33 +Choice: 4 34 +Choice: 5 35 +Choice: 6 36 +Choice: 7 37 +Choice: 8 38 +Choice: 9 39 +Choice: 10 40 +Choice: 11 41 +Choice: 12 42 +Choice: 13 43 +Choice: 14 44 +Choice: 15 45 +Choice: 16 46 +Choice: 17 47 +Choice: 18 48 +Choice: 19 49 +Choice: 20 50 +Choice: 21 51 +Choice: 22 52 +Choice: 23 53 +Choice: 24 54 +Choice: 25 55 +Choice: 26 56 +Choice: 27 57 +Choice: 28 58 +Choice: 29 59 +Choice: 30 60 +/main/other/f006 +Label: PTP Property 0xf006 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +/main/other/f007 +Label: PTP Property 0xf007 +Type: MENU +Current: 0 +/main/other/f008 +Label: PTP Property 0xf008 +Type: MENU +Current: 0 +Choice: 0 30 +Choice: 1 31 +Choice: 2 32 +Choice: 3 33 +Choice: 4 34 +Choice: 5 35 +Choice: 6 36 +Choice: 7 37 +Choice: 8 38 +Choice: 9 39 +Choice: 10 40 +Choice: 11 41 +Choice: 12 42 +Choice: 13 43 +Choice: 14 44 +Choice: 15 45 +Choice: 16 46 +Choice: 17 47 +Choice: 18 48 +Choice: 19 49 +Choice: 20 50 +Choice: 21 51 +Choice: 22 52 +Choice: 23 53 +Choice: 24 54 +Choice: 25 55 +Choice: 26 56 +Choice: 27 57 +Choice: 28 58 +Choice: 29 59 +Choice: 30 60 +/main/other/f009 +Label: Image Compression +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 6 +/main/other/f00a +Label: Image Size +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/f00c +Label: White Balance +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 9 +/main/other/f00d +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/f00e +Label: High ISO Noise Reduction +Type: MENU +Current: 18 +Choice: 0 0 +Choice: 1 3 +/main/other/f00f +Label: PTP Property 0xf00f +Type: MENU +Current: 5 +Choice: 0 0 +Choice: 1 5 +/main/other/f010 +Label: PTP Property 0xf010 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/f011 +Label: PTP Property 0xf011 +Type: MENU +Current: 3 +Choice: 0 4 +Choice: 1 1 +Choice: 2 2 +Choice: 3 0 +/main/other/f012 +Label: PTP Property 0xf012 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/f013 +Label: PTP Property 0xf013 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/f015 +Label: PTP Property 0xf015 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/f016 +Label: PTP Property 0xf016 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/f018 +Label: PTP Property 0xf018 +Type: TEXT +Current: 512 +/main/other/f019 +Label: PTP Property 0xf019 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/f01a +Label: PTP Property 0xf01a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/f01b +Label: PTP Property 0xf01b +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 3 +Choice: 2 6 +Choice: 3 9 +Choice: 4 12 +Choice: 5 15 +/main/other/f01c +Label: Movie Quality +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 3 +Choice: 3 4 +/main/other/f00b +Label: PTP Property 0xf00b +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/f014 +Label: PTP Property 0xf014 +Type: RANGE +Current: 0 +Bottom: 1 +Top: 254 +Step: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s2.txt new file mode 100644 index 00000000..5246e817 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s2.txt @@ -0,0 +1,441 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: S2 + Version: Ver.1.0100 + Serial Number: 000000000000000000000000nnnnnnnn +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x90c0 (PTP_OC_NIKON_Capture) + 0x90c1 (PTP_OC_NIKON_AfDrive) + 0x90c2 (PTP_OC_NIKON_SetControlMode) + 0x90c3 (PTP_OC_NIKON_DelImageSDRAM) + 0x90c4 (PTP_OC_NIKON_GetLargeThumb) + 0x90c7 (PTP_OC_NIKON_CheckEvent) + 0x90c8 (PTP_OC_NIKON_DeviceReady) + 0x9201 (PTP_OC_NIKON_StartLiveView) + 0x9202 (PTP_OC_NIKON_EndLiveView) + 0x9203 (PTP_OC_NIKON_GetLiveViewImg) + 0x9207 (PTP_OC_NIKON_InitiateCaptureRecInMedia) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x90ca (PTP_OC_NIKON_GetVendorPropCodes) + +Capture Formats: JPEG Undefined Type +Display Formats: Undefined Type, Association/Directory, Script, DPOF, Apple Quicktime, JPEG, TIFF + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 3 + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON 1 S2 [Slot 1] + + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 15923150848 (15185 MB) + Free Space (Bytes): 15911616512 (15174 MB) + Free Space (Images): 1752 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Compression Setting(0x5004):(read only) (type=0x2) Enumeration [0,1,2,4,7] value: JPEG Fine (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [100,110,120,130,140,150,160,170,180,190,200,220,240,250,270,280,300,320,350,380,400,420,450,480,500,530,560,600,630,670,710,760,800,850,900,950,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2100,2200,2400,2500,2760,2900,3000,3200,0] value: f/5.6 (560) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [32784,32785,32786,32787,32788] value: Auto (32784) +Date & Time(0x5011):(readwrite) (type=0xffff) '20150924T102832' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Live View AF Area(0xd05d):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Bracketing Enable(0xd0c0):(read only) (type=0x2) Range [0 - 0, step 1] value: Off (0) +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd038:(readwrite) (type=0x2) Enumeration [0,1,2,3,8,9,10,11,12,13,14] value: 12 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [4294967295,1966081,1638401,1310721,983041,851969,655361,524289,393217,327681,262145,196609,1638410,131073,1048586,983050,851978,65537,655373,655375,655376,65538,655385,65539,65540,65541,65542,65544,65546,65549,65551,65556,65561,65566,65576,65581,65586,65596,65616,65626,65636,65661,65696,65716,65736,65786,65856,65886,65936,66036,66176,66286,66336,66536,66786,67036,67136,67536,68036,68536,68736,69536,70536,71536,71936,73536,74536,75536,78036,78536,80536,81536] value: 65786 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Warning Status(0xd102):(read only) (type=0x2) 0 +Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1) +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 8388608 +Property 0xf001:(readwrite) (type=0x2) Enumeration [0,1,2,3,4] value: 0 +ISO(0xf002):(readwrite) (type=0x2) Range [0 - 52, step 1] value: 1 +Property 0xf003:(readwrite) (type=0x2) Range [0 - 60, step 1] value: 0 +Property 0xf004:(readwrite) (type=0x2) Range [224 - 84, step 1] value: 0 +Property 0xf005:(read only) (type=0x2) Range [30 - 72, step 1] value: 0 +Property 0xf006:(readwrite) (type=0x2) Range [0 - 60, step 1] value: 0 +Property 0xf007:(readwrite) (type=0x2) Range [224 - 84, step 1] value: 0 +Property 0xf008:(read only) (type=0x2) Range [30 - 60, step 1] value: 0 +Image Compression(0xf009):(readwrite) (type=0x2) Enumeration [0,1,2,3,6] value: 1 +Image Size(0xf00a):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +White Balance(0xf00c):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,9] value: 0 +Long Exposure Noise Reduction(0xf00d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +High ISO Noise Reduction(0xf00e):(readwrite) (type=0x2) Enumeration [0,3] value: 0 +Active D-Lighting(0xf00f):(readwrite) (type=0x2) Enumeration [0,5] value: 5 +Property 0xf010:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf011:(read only) (type=0x4) Enumeration [4,1,2,0] value: 3 +Property 0xf012:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xf013:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xf015:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xf016:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf018:(readwrite) (type=0x4) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31] value: 3 +Property 0xf019:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf01a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xf01b:(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5] value: 0 +Movie Quality(0xf01c):(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 1 +Property 0xf00b:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xf014:(readwrite) (type=0x2) Range [1 - 254, step 1] value: 68 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 1 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1443086757 +Printable: Thu 24 Sep 2015 11:25:57 AM CEST +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 000000000000000000000000nnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: S2 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: Ver.1.0100 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0 +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/5.6 +Choice: 0 f/1 +Choice: 1 f/1.1 +Choice: 2 f/1.2 +Choice: 3 f/1.3 +Choice: 4 f/1.4 +Choice: 5 f/1.5 +Choice: 6 f/1.6 +Choice: 7 f/1.7 +Choice: 8 f/1.8 +Choice: 9 f/1.9 +Choice: 10 f/2 +Choice: 11 f/2.2 +Choice: 12 f/2.4 +Choice: 13 f/2.5 +Choice: 14 f/2.7 +Choice: 15 f/2.8 +Choice: 16 f/3 +Choice: 17 f/3.2 +Choice: 18 f/3.5 +Choice: 19 f/3.8 +Choice: 20 f/4 +Choice: 21 f/4.2 +Choice: 22 f/4.5 +Choice: 23 f/4.8 +Choice: 24 f/5 +Choice: 25 f/5.3 +Choice: 26 f/5.6 +Choice: 27 f/6 +Choice: 28 f/6.3 +Choice: 29 f/6.7 +Choice: 30 f/7.1 +Choice: 31 f/7.6 +Choice: 32 f/8 +Choice: 33 f/8.5 +Choice: 34 f/9 +Choice: 35 f/9.5 +Choice: 36 f/10 +Choice: 37 f/11 +Choice: 38 f/12 +Choice: 39 f/13 +Choice: 40 f/14 +Choice: 41 f/15 +Choice: 42 f/16 +Choice: 43 f/17 +Choice: 44 f/18 +Choice: 45 f/19 +Choice: 46 f/20 +Choice: 47 f/21 +Choice: 48 f/22 +Choice: 49 f/24 +Choice: 50 f/25 +Choice: 51 f/27.6 +Choice: 52 f/29 +Choice: 53 f/30 +Choice: 54 f/32 +Choice: 55 f/0 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 NEF (Raw) +Choice: 4 NEF+Fine +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 Portrait +Choice: 2 Landscape +Choice: 3 Macro +Choice: 4 Sports +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +Choice: 4 7 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 560 +Choice: 0 100 +Choice: 1 110 +Choice: 2 120 +Choice: 3 130 +Choice: 4 140 +Choice: 5 150 +Choice: 6 160 +Choice: 7 170 +Choice: 8 180 +Choice: 9 190 +Choice: 10 200 +Choice: 11 220 +Choice: 12 240 +Choice: 13 250 +Choice: 14 270 +Choice: 15 280 +Choice: 16 300 +Choice: 17 320 +Choice: 18 350 +Choice: 19 380 +Choice: 20 400 +Choice: 21 420 +Choice: 22 450 +Choice: 23 480 +Choice: 24 500 +Choice: 25 530 +Choice: 26 560 +Choice: 27 600 +Choice: 28 630 +Choice: 29 670 +Choice: 30 710 +Choice: 31 760 +Choice: 32 800 +Choice: 33 850 +Choice: 34 900 +Choice: 35 950 +Choice: 36 1000 +Choice: 37 1100 +Choice: 38 1200 +Choice: 39 1300 +Choice: 40 1400 +Choice: 41 1500 +Choice: 42 1600 +Choice: 43 1700 +Choice: 44 1800 +Choice: 45 1900 +Choice: 46 2000 +Choice: 47 2100 +Choice: 48 2200 +Choice: 49 2400 +Choice: 50 2500 +Choice: 51 2760 +Choice: 52 2900 +Choice: 53 3000 +Choice: 54 3200 +Choice: 55 0 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 32784 +Choice: 0 32784 +Choice: 1 32785 +Choice: 2 32786 +Choice: 3 32787 +Choice: 4 32788 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20150924T102557 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s200.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s200.txt new file mode 100644 index 00000000..e5a84762 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s200.txt @@ -0,0 +1,81 @@ +Device info: +Manufacturer: Nikon Corporation + model: S200 + device version: COOLPIX S200V1.0 + serial number: '0000XXXXXXXX' +Vendor extension ID: 0x0000000a +Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9001 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc001 +Device Properties Supported: + 0x5011 + 0xd005 + 0xd407 + 0xd406 +Camera summary: +Model: S200 + device version: COOLPIX S200V1.0 + serial number: 0000XXXXXXXX +Vendor extension ID: 0x0000000a +Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions + +Capture Formats: JPEG +Display Formats: JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, MS AVI, Defined Type + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 2012872704 (1919 MB) + Free Space (Bytes): 1880424448 (1793 MB) + Free Space (Images): 1434 + +Device Property Summary: +Date & Time(0x5011):(readwrite) (type=0xffff) '(null)' +Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '(null)' diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s3600.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s3600.txt new file mode 100644 index 00000000..967f506c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s3600.txt @@ -0,0 +1,72 @@ +Just wanted to share my results from USB connection of s3600. + +The camera has no capturing software listed on the support software +downloads page, so it's good to know it is working. + +I was able to take a photo without issues, haven't tested anything more. + +Logs below: +--- +mef@mefi-hp6735b:~$ gphoto2 --version +gphoto2 2.5.3 + +Copyright (c) 2000-2014 Lutz Mueller and others + +gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may +redistribute copies of gphoto2 under the terms of the GNU General Public +License. For more information about these matters, see the files named +COPYING. + +This version of gphoto2 is using the following software versions and +options: +gphoto2 2.5.3 gcc, popt(m), exif, cdk, aa, jpeg, readline +libgphoto2 2.5.3.1 all camlibs, gcc, ltdl, EXIF +libgphoto2_port 0.10.0 gcc, ltdl, no USB, serial without locking + +mef@mefi-hp6735b:~$ gphoto2 --summary +Camera summary: +Manufacturer: Nikon Corporation +Model: S3600 + Version: COOLPIX S3600 V1.0 +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com/deviceservices: 1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, Association/Directory, Defined Type, JPEG, +DPOF, MS AVI, Apple Quicktime, MS Wave + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, No vendor specific capture + Nikon Wifi support + +Storage Devices Summary: +store_00010001: + StorageDescription: S3600 + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3956801536 (3773 MB) + Free Space (Bytes): 3956604928 (3773 MB) + Free Space (Images): 713 + +Device Property Summary: +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' +Property 0xd002:(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,7] value: 6 +Date & Time(0x5011):(readwrite) (type=0xffff) '20160312T195233' +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: +Automatic flash (1) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,3] value: +Automatic (2) +Focal Length(0x5008):(read only) (type=0x6) Enumeration +[3500,4600,5300,6100,7300,8600,10500] value: 35 mm (3500) +Battery Level(0x5001):(read only) (type=0x2) Enumeration +[2,5,25,50,65,80,100] value: 100% (100) +Property 0xd303:(read only) (type=0x2) 1 + +mef@mefi-hp6735b:~$ gphoto2 --capture-image +New file is in location /store_00010001/DSCN0026.JPG on the camera +mef@mefi-hp6735b:~$ +--- diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s6000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s6000.txt new file mode 100644 index 00000000..0cb21fac --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s6000.txt @@ -0,0 +1,90 @@ +Camera summary: + Manufacturer: Nikon Corporation + Model: S6000 + Version: V1.00 + Serial Number: nnnnnnnn + Vendor Extension ID: 0xa (1.0) + Vendor Extension Description: microsoft.com: 1.0; Nikon PTP Extensions + +Capture Formats: +Display Formats: JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, Undefined Type + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 4007657472 (3822 MB) + Free Space (Bytes): 4004347904 (3818 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Date & Time(0x5011):(readwrite) (type=0xffff) '20120313T232748' +Property 0xd280:(read only) (type=0x2) 7 +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' + +Device info: +Manufacturer: Nikon Corporation + Model: S6000 + device version: V1.00 + serial number: 'nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: +1.0; Nikon PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x100b + 0x100f + 0x9801 + 0x9803 + 0x9802 + 0x9805 + 0x1014 + 0x1015 + 0x1016 + 0x90a1 + 0x90a2 + 0x90a3 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c +Device Properties Supported: + 0x5001 + 0x5011 + 0xd280 + 0xd303 + 0xd407 + 0xd406 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s620.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s620.txt new file mode 100644 index 00000000..d83ef721 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s620.txt @@ -0,0 +1,229 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: S620 + Version: V1.00 + Serial Number: nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; Nikon PTP Extensions + +Capture Formats: +Display Formats: JPEG, Association/Directory, DPOF, MS Wave, MS AVI, Undefined Type +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc87/Width dc88/Height dcd3/ImageBitDepth + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 3955228672 (3772 MB) + Free Space (Bytes): 2717515776 (2591 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130321T022945' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd406:(readwrite) (type=0xffff) '' + +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1363829389 +Printable: Thu Mar 21 02:29:49 2013 +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20130321T022949 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: + + Device info: + Manufacturer: Nikon Corporation + Model: S620 + device version: V1.00 + serial number: 'nnnnnnnn' + Vendor extension ID: 0x0000000a + Vendor extension version: 100 + Vendor extension description: microsoft.com: 1.0; Nikon PTP Extensions + Functional Mode: 0x0000 + PTP Standard Version: 100 + Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x100b + 0x100f + 0x90a1 + 0x90a2 + 0x90a3 + 0x9801 + 0x9803 + 0x9802 + 0x9805 + 0x1014 + 0x1015 + 0x1016 + Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + Device Properties Supported: + 0x5001 + 0x5011 + 0xd407 + 0xd406 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s9700.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s9700.txt new file mode 100644 index 00000000..82c8d8c8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-s9700.txt @@ -0,0 +1,387 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: S9700 + Version: COOLPIX S9700V1.0 + Serial Number: 0000nnnnnnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0; microsoft.com/DeviceServices:1.0; + +Capture Formats: JPEG +Display Formats: Undefined Type, Association/Directory, Script, DPOF, MS Wave, Apple Quicktime, Defined Type, JPEG, JFIF + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 3 + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 31902400512 (30424 MB) + Free Space (Bytes): 31875661824 (30399 MB) + Free Space (Images): 3970 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) +Compression Setting(0x5004):(read only) (type=0x2) Enumeration [0,1,2] value: JPEG Fine (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [340,630] value: f/3.4 (340) +Focal Length(0x5008):(readwrite) (type=0x6) Enumeration [3500,4600,5300,6100,7300,8600,10500] value: 35 mm (3500) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-S (32784) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [1,2,3,4] value: Fill flash (3) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32790,32792,32848,32849] value: P (2) +Date & Time(0x5011):(readwrite) (type=0xffff) '20150107T220429' +Property 0xd002:(readwrite) (type=0x6) Enumeration [2,3,4,5,6,7,8] value: 7 +Property 0xd280:(read only) (type=0x2) 3 +Live View AF Area(0xd05d):(read only) (type=0x2) Range [0 - 1, step 2] value: 2 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [65596] value: 65596 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1ac:(read only) (type=0x2) Enumeration [1,2] value: 1 +Property 0xd24f:(readwrite) (type=0xffff) '0011223344556677' +Property 0xd250:(read only) (type=0xffff) '---' +Property 0xd251:(read only) (type=0xffff) '---' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1420664669 +Printable: Wed 07 Jan 2015 10:04:29 PM CET +Help: Use 'now' as the current time when setting. + +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 000041015653 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: S9700 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: COOLPIX S9700V1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: microsoft.com: 1.0; microsoft.com/DeviceServices:1.0; +/main/capturesettings/flashmode +Label: Flas +*** Error *** +The capture widget is not configurable. +h Mode +Type: RADIO +Current: Fill flash +Choice: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/3.4 +Choice: 0 f/3.4 +Choice: 1 f/6.3 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: JPEG Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 35 +Bottom: 35 +Top: 105 +Step: 1 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-S +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8013 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: P +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Night Landscape +Choice: 6 Automatic (No Flash) +Choice: 7 Unknown value 8050 +Choice: 8 Unknown value 8051 +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/60 +Choice: 0 1/60 +/main/capturesettings/liveviewafmode +Label: Live View AF Mode +Type: RADIO +Current: Unknown value 0002 +Choice: 0 Face-priority AF +Choice: 1 Unknown value 0002 +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 340 +Choice: 0 340 +Choice: 1 630 +/main/other/5008 +Label: Focal Length +Type: MENU +Current: 3500 +Choice: 0 3500 +Choice: 1 4600 +Choice: 2 5300 +Choice: 3 6100 +Choice: 4 7300 +Choice: 5 8600 +Choice: 6 10500 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32786 +Choice: 4 32787 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32790 +Choice: 6 32792 +Choice: 7 32848 +Choice: 8 32849 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20150107T220429 +/main/other/d002 +Label: PTP Property 0xd002 +Type: MENU +Current: 7 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +Choice: 6 8 +/main/other/d280 +Label: PTP Property 0xd280 +Type: TEXT +Current: 3 +/main/other/d05d +Label: Live View AF Area +Type: RANGE +Current: 2 +Bottom: 0 +Top: 1 +Step: 2 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65596 +Choice: 0 65596 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d24f +Label: PTP Property 0xd24f +Type: TEXT +Current: 0011223344556677 +/main/other/d250 +Label: PTP Property 0xd250 +Type: TEXT +Current: --- +/main/other/d251 +Label: PTP Property 0xd251 +Type: TEXT +Current: --- +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. + +Device info: +Manufacturer: Nikon Corporation + Model: S9700 + device version: COOLPIX S9700V1.0 + serial number: '0000nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; microsoft.com/DeviceServices:1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9002 + 0x9003 + 0x90c1 + 0x90c2 + 0x90c4 + 0x90c7 + 0x90c8 + 0x9016 + 0x9201 + 0x9202 + 0x9203 + 0x9207 + 0x9501 + 0x9504 + 0x9505 + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x90ca +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x5004 + 0x5007 + 0x5008 + 0x500a + 0x500c + 0x500e + 0x5011 + 0xd002 + 0xd280 + 0xd05d + 0xd0e1 + 0xd100 + 0xd1a2 + 0xd1a4 + 0xd1ac + 0xd24f + 0xd250 + 0xd251 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-v1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-v1.txt new file mode 100644 index 00000000..6a51a435 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-v1.txt @@ -0,0 +1,58 @@ +Device info: +Manufacturer: Nikon Corporation + Model: V1 + device version: V1.11 + serial number: '000000000000000000000000nnnnnnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c3 + 0x90c7 + 0x90c8 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 +Device Properties Supported: + 0x5001 + 0x5011 + 0xd303 + 0xd406 + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-v2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-v2.txt new file mode 100644 index 00000000..a4319872 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-v2.txt @@ -0,0 +1,170 @@ + +Camera summary: +Manufacturer: Nikon Corporation +Model: V2 + Version: Ver.1.1003 + Serial Number: 000000000000000000000000nn00nnnn +Vendor Extension ID: 0xa (1.0) +Vendor Extension Description: microsoft.com: 1.0 + +Capture Formats: JPEG Undefined Type +Display Formats: Undefined Type, Association/Directory, Script, DPOF, Apple Quicktime, JPEG, TIFF + +Device Capabilities: +File Download, File Deletion, File Upload +Generic Image Capture, No Open Capture, Nikon Capture + +Storage Devices Summary: +store_00010001: +StorageDescription: None +VolumeLabel: [Slot 1] + +Storage Type: Removable RAM (memory card) +Filesystemtype: Digital Camera Layout (DCIM) +Access Capability: Read Only with Object deletion +Maximum Capability: 15923150848 (15185 MB) +Free Space (Bytes): 15734112256 (15005 MB) +Free Space (Images): 1633 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Compression Setting(0x5004):(read only) (type=0x2) Enumeration [0,1,2,4,7] value: JPEG Fine (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [100,110,120,130,140,150,160,170,180,190,200,220,240,250,270,280,300,320,350,380,400,420,450,480,500,530,560,600,630,670,710,760,800,850,900,950,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2100,2200,2400,2500,2760,2900,3000,3200,0] value: f/6.3 (630) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787] value: A (3) +Date & Time(0x5011):(readwrite) (type=0xffff) '20130926T132552' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 + +Device info: +Device info: +Manufacturer: Nikon Corporation + Model: V2 + device version: Ver.1.1003 + serial number: '000000000000000000000000nn00nnnn' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100e + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x90c0 + 0x90c1 + 0x90c2 + 0x90c3 + 0x90c4 + 0x90c7 + 0x90c8 + 0x9201 + 0x9202 + 0x9203 + 0x9207 + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d +Device Properties Supported: + 0x5001 + 0x5004 + 0x5007 + 0x500e + 0x5011 + 0xd303 + 0xd406 + 0xd407 + +0.273417 PTP2/ptp2/library.c(2): Manufacturer: Nikon Corporation +0.273483 PTP2/ptp2/library.c(2): Model: V2 +0.273547 PTP2/ptp2/library.c(2): device version: Ver.1.1003 +0.273609 PTP2/ptp2/library.c(2): serial number: '00000000000000000000000061003342' +0.273676 PTP2/ptp2/library.c(2): Vendor extension ID: 0x0000000a +0.273738 PTP2/ptp2/library.c(2): Vendor extension version: 100 +0.273801 PTP2/ptp2/library.c(2): Vendor extension description: microsoft.com: 1.0 +0.273864 PTP2/ptp2/library.c(2): Functional Mode: 0x0000 +0.273930 PTP2/ptp2/library.c(2): PTP Standard Version: 100 +0.273988 PTP2/ptp2/library.c(2): Supported operations: +0.274052 PTP2/ptp2/library.c(2): 0x1001 +0.274112 PTP2/ptp2/library.c(2): 0x1002 +0.274172 PTP2/ptp2/library.c(2): 0x1003 +0.274233 PTP2/ptp2/library.c(2): 0x1004 +0.274294 PTP2/ptp2/library.c(2): 0x1005 +0.274354 PTP2/ptp2/library.c(2): 0x1006 +0.274415 PTP2/ptp2/library.c(2): 0x1007 +0.274474 PTP2/ptp2/library.c(2): 0x1008 +0.274534 PTP2/ptp2/library.c(2): 0x1009 +0.274596 PTP2/ptp2/library.c(2): 0x100a +0.274656 PTP2/ptp2/library.c(2): 0x100b +0.274718 PTP2/ptp2/library.c(2): 0x100c +0.274777 PTP2/ptp2/library.c(2): 0x100d +0.274839 PTP2/ptp2/library.c(2): 0x100e +0.274898 PTP2/ptp2/library.c(2): 0x100f +0.274960 PTP2/ptp2/library.c(2): 0x1014 +0.275019 PTP2/ptp2/library.c(2): 0x1015 +0.275081 PTP2/ptp2/library.c(2): 0x1016 +0.275141 PTP2/ptp2/library.c(2): 0x101b +0.275277 PTP2/ptp2/library.c(2): 0x90c0 +0.275364 PTP2/ptp2/library.c(2): 0x90c1 +0.275430 PTP2/ptp2/library.c(2): 0x90c2 +0.275490 PTP2/ptp2/library.c(2): 0x90c3 +0.275553 PTP2/ptp2/library.c(2): 0x90c4 +0.275613 PTP2/ptp2/library.c(2): 0x90c7 +0.275674 PTP2/ptp2/library.c(2): 0x90c8 +0.275734 PTP2/ptp2/library.c(2): 0x9201 +0.275794 PTP2/ptp2/library.c(2): 0x9202 +0.275853 PTP2/ptp2/library.c(2): 0x9203 +0.275915 PTP2/ptp2/library.c(2): 0x9207 +0.275974 PTP2/ptp2/library.c(2): 0x9801 +0.276033 PTP2/ptp2/library.c(2): 0x9802 +0.276096 PTP2/ptp2/library.c(2): 0x9803 +0.276155 PTP2/ptp2/library.c(2): 0x9805 +0.276215 PTP2/ptp2/library.c(2): Events Supported: +0.276276 PTP2/ptp2/library.c(2): 0x4001 +0.276338 PTP2/ptp2/library.c(2): 0x4002 +0.276397 PTP2/ptp2/library.c(2): 0x4004 +0.276459 PTP2/ptp2/library.c(2): 0x4005 +0.276517 PTP2/ptp2/library.c(2): 0x4006 +0.276579 PTP2/ptp2/library.c(2): 0x4008 +0.276638 PTP2/ptp2/library.c(2): 0x4009 +0.276699 PTP2/ptp2/library.c(2): 0x400a +0.276758 PTP2/ptp2/library.c(2): 0x400c +0.276820 PTP2/ptp2/library.c(2): 0x400d +0.276876 PTP2/ptp2/library.c(2): Device Properties Supported: +0.276941 PTP2/ptp2/library.c(2): 0x5001 +0.277002 PTP2/ptp2/library.c(2): 0x5004 +0.277065 PTP2/ptp2/library.c(2): 0x5007 +0.277197 PTP2/ptp2/library.c(2): 0x500e +0.277263 PTP2/ptp2/library.c(2): 0x5011 +0.277325 PTP2/ptp2/library.c(2): 0xd303 +0.277386 PTP2/ptp2/library.c(2): 0xd406 +0.277447 PTP2/ptp2/library.c(2): 0xd407 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-v3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-v3.txt new file mode 100644 index 00000000..e87ad282 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-v3.txt @@ -0,0 +1,118 @@ +Device info: +Manufacturer: Nikon Corporation + Model: V3 + device version: Ver.1.1101 + serial number: '(null)' +Vendor extension ID: 0x0000000a +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0 +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100c (Send object info) + 0x100d (Send object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x90c1 (PTP_OC_NIKON_AfDrive) + 0x90c2 (PTP_OC_NIKON_SetControlMode) + 0x90c3 (PTP_OC_NIKON_DelImageSDRAM) + 0x90c4 (PTP_OC_NIKON_GetLargeThumb) + 0x90c7 (PTP_OC_NIKON_CheckEvent) + 0x90c8 (PTP_OC_NIKON_DeviceReady) + 0x90c9 (PTP_OC_NIKON_SetPreWBData) + 0x9201 (PTP_OC_NIKON_StartLiveView) + 0x9202 (PTP_OC_NIKON_EndLiveView) + 0x9203 (PTP_OC_NIKON_GetLiveViewImg) + 0x9204 (PTP_OC_NIKON_MfDrive) + 0x9205 (PTP_OC_NIKON_ChangeAfArea) + 0x9206 (PTP_OC_NIKON_AfDriveCancel) + 0x9207 (PTP_OC_NIKON_InitiateCaptureRecInMedia) + 0x920a (PTP_OC_NIKON_StartMovieRecInCard) + 0x920b (PTP_OC_NIKON_EndMovieRec) + 0x920c (PTP_OC_NIKON_TerminateCapture) + 0x9400 (PTP_OC_NIKON_GetPartialObjectHiSpeed) + 0x941e (Unknown PTP_OC) + 0x941f (Unknown PTP_OC) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x90ca (PTP_OC_NIKON_GetVendorPropCodes) +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4008 + 0x4009 + 0x400a + 0x400c + 0x400d + 0xc101 + 0xc102 + 0xc105 + 0xc112 +Device Properties Supported: + 0x5001 + 0x5004 + 0x5007 + 0x500e + 0x5011 + 0xd303 + 0xd406 + 0xd407 + 0xd038 + 0xd05d + 0xd0c0 + 0xd0e1 + 0xd100 + 0xd101 + 0xd102 + 0xd1c0 + 0xd1a2 + 0xd1a4 + 0xf001 + 0xf002 + 0xf003 + 0xf004 + 0xf005 + 0xf006 + 0xf007 + 0xf008 + 0xf009 + 0xf00a + 0xf00c + 0xf00d + 0xf00e + 0xf00f + 0xf010 + 0xf011 + 0xf012 + 0xf013 + 0xf015 + 0xf016 + 0xf018 + 0xf019 + 0xf01a + 0xf01b + 0xf01c + 0xf00b + 0xf014 + 0xd0ab diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-z6.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-z6.txt new file mode 100644 index 00000000..adf12edb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-z6.txt @@ -0,0 +1,4856 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: Z 6 + Version: V1.00 + Serial Number: 0000000000000000000000000600nnnn +Vendor Extension ID: 0xa (1.10) +Vendor Extension Description: Microsoft.com/DeviceServices: 1.0 + +Capture Formats: JPEG TIFF Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, Script, Apple Quicktime, Unknown(b982) + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3 + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 60196651008 (57408 MB) + Free Space (Bytes): 59922939904 (57146 MB) + Free Space (Images): 6723 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 80% (80) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '6048x4024', + '4528x3016', + '3024x2016' + ] value: '6048x4024' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787,32790] value: Automatic (2) +F-Number(0x5007):(read only) (type=0x4) Enumeration [400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/4 (400) +Focal Length(0x5008):(read only) (type=0x6) Range [2400 - 7000, step 1] value: 24 mm (2400) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32787] value: AF-S (32784) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4,32784] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784] value: Auto (32784) +Exposure Time(0x500d):(read only) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.077 sec (7692) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32848,32849,32850] value: Auto (32784) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20180202T122221' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32784,32785,32793] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 65535, step 1] value: 1 +Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [32784,32785,32791,32792,32793] value: Single Area (32784) +Artist(0x501e):(read only) (type=0xffff) '' +Copyright Info(0x501f):(read only) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Lossless (0) +Auto White Balance Bias(0xd017):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 231738032 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 231738032 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 231738032 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 231738032 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Flicker Reduction(0xd034):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd038:(readwrite) (type=0xffff) ' ' +Property 0xd039:(readwrite) (type=0xffff) ' ' +Property 0xd03a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03e:(read only) (type=0x6) 231738032 +Property 0xd03f:(read only) (type=0x6) 231738032 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd046:(readwrite) (type=0x2) Range [1 - 5, step 1] value: 3 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,1,4] value: 0 +Angle Level(0xd067):(read only) (type=0x5) 9.7' (634799) +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [4 - 8, step 1] value: 6 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 200, step 1] value: 200 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 5, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Artist Name(0xd072):(readwrite) (type=0xffff) '' +Copyright Information(0xd073):(readwrite) (type=0xffff) '' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 1 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +NIKON Auto Bracketing Set(0xd07c):(read only) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd07d:(read only) (type=0x5) 23199745 +Property 0xd07e:(read only) (type=0x5) -1 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Image Comment String(0xd090):(readwrite) (type=0xffff) '' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 19, step 1] value: 0 +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd09d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 12, step 1] value: 5 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 24576 +Movie Quality(0xd0a7):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0aa:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ac:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ad:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0ae:(readwrite) (type=0x2) Range [0 - 37, step 1] value: 32 +Property 0xd0af:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd0b4:(readwrite) (type=0x6) Enumeration [50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,81200,102400,204800] value: 100 +Property 0xd0b5:(read only) (type=0x6) 12800 +Property 0xd0b6:(readwrite) (type=0xffff) Enumeration [ + '6048x4024', + '4528x3016', + '3024x2016' + ] value: '6048x4024' +Property 0xd0b7:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ba:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd0bb:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd0bc:(read only) (type=0x2) Enumeration [1] value: 1 +Property 0xd0bd:(read only) (type=0x6) 2147483648 +Property 0xd0bf:(read only) (type=0x2) Enumeration [0,1] value: 0 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(read only) (type=0x2) Range [0 - 5, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [0 - 8, step 1] value: 8 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 1, step 1] value: 2 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 8, step 1] value: 8 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 4, step 1] value: 4 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd0cc:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x4) 1 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x8) 0 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 24 mm (2400) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 70 mm (7000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/4 (400) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/4 (400) +Property 0xd0e7:(read only) (type=0x8) 128 +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Auto Distortion Control(0xd0f8):(read only) (type=0x2) Range [1 - 1, step 1] value: 1 +Property 0xd0fc:(read only) (type=0x2) Range [19 - 23, step 1] value: 19 +Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967294] value: 655373 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x6) 0 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 2, step 1] value: USB 2.0 (1) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +TV Lock Setting(0xd112):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AV Lock Setting(0xd113):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd118:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(read only) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd12d:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd12e:(read only) (type=0x2) Enumeration [0,1,2] value: 0 +HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +HDR High Dynamic(0xd131):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +HDR Smoothing(0xd132):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Property 0xd133:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd138:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Tune Preset 1(0xd152):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 2(0xd153):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 3(0xd154):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 4(0xd155):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15b:(read only) (type=0x4) Range [100 - 999, step 1] value: 100 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15e:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 52, step 1] value: 52 +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd17a:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd17b:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd17c:(readwrite) (type=0x1) Range [-5 - 5, step 1] value: 0 +Property 0xd17d:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd17e:(readwrite) (type=0x2) Range [1 - 7, step 1] value: 4 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 37, step 1] value: 32 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd199:(readwrite) (type=0x2) Range [0 - 38, step 1] value: 38 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a8:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596] value: 65596 +Property 0xd1a9:(read only) (type=0x4) Enumeration [0] value: 0 +Property 0xd1aa:(readwrite) (type=0x6) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,81200,102400,204800] value: 100 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000] value: 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2,3] value: 2 +Property 0xd1ad:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1af:(read only) (type=0x4) Enumeration [2,3,32784] value: 3 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: 3 +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1b4:(read only) (type=0x4) Range [0 - 360, step 1] value: 20 +Property 0xd1b7:(read only) (type=0x2) Range [0 - 50, step 1] value: 20 +Property 0xd1b8:(read only) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd1b9:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd1bb:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1bc:(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5] value: 0 +Property 0xd1bd:(readwrite) (type=0x4) Enumeration [0,512,1024,2048] value: 0 +Property 0xd1de:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1df:(readwrite) (type=0x4) Enumeration [180,191,202,213,224,235,248,255] value: 248 +Property 0xd1e2:(read only) (type=0x2) Enumeration [] value: 0 +Property 0xd1e3:(read only) (type=0x2) Enumeration [] value: 0 +Property 0xd1e4:(read only) (type=0x6) 0 +Property 0xd1e5:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1e6:(read only) (type=0x6) Range [0 - 9999, step 1] value: 0 +Property 0xd1e7:(read only) (type=0x2) 0 +Property 0xd1e8:(read only) (type=0x2) Enumeration [255] value: 255 +Property 0xd1e9:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1ea:(read only) (type=0x2) 1 +Property 0xd1ec:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1ed:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x6) Range [0 - 4294967295, step 1] value: 6723 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Property 0xd1f8:(readwrite) (type=0x4) Enumeration [32784,32785,32792,32793] value: 32785 +Property 0xd1f9:(readwrite) (type=0x2) Enumeration [0,1,2,100] value: 100 +Property 0xd1fa:(readwrite) (type=0x2) Enumeration [0,1,2,4] value: 2 +Property 0xd1fb:(read only) (type=0x2) Enumeration [0,1,2] value: 0 +Property 0xd1fc:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1fd:(read only) (type=0x0) Undefined +Property 0xd1fe:(read only) (type=0x2) Enumeration [0,1] value: 1 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,201,202,203,204,205,206,207,208,209] value: 8 +Property 0xd20d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20e:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd211:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd212:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd213:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd214:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd216:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd218:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd219:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd21a:(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +Property 0xd21b:(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Property 0xd21c:(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +Property 0xd21d:(readwrite) (type=0xffff) ' ' +Property 0xd21e:(readwrite) (type=0xffff) ' ' +Property 0xd21f:(readwrite) (type=0xffff) ' ' +Property 0xd220:(readwrite) (type=0xffff) ' ' +Property 0xd221:(readwrite) (type=0xffff) ' ' +Property 0xd222:(readwrite) (type=0xffff) ' ' +Property 0xd223:(read only) (type=0x6) 231738032 +Property 0xd224:(read only) (type=0x6) 231738032 +Property 0xd225:(read only) (type=0x6) 231738032 +Property 0xd226:(read only) (type=0x6) 231738032 +Property 0xd227:(read only) (type=0x6) 231738032 +Property 0xd228:(read only) (type=0x6) 231738032 +Property 0xd229:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22c:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22d:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22e:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd230:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd231:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd232:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd233:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd234:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd235:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd236:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd237:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,201,202,203,204,205,206,207,208,209] value: 8 +Property 0xd239:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd23a:(readwrite) (type=0x4) Enumeration [2,4,5,6,32784,32785,32786,32787,32789,32790] value: 2 +Property 0xd23b:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 2 +Property 0xd23c:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd23d:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd23e:(readwrite) (type=0x2) Enumeration [0,1,2,3,100] value: 2 +Property 0xd23f:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd314:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 + +/main/actions/bulb +Label: Bulb Mode +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +END +/main/actions/changeafarea +Label: Set Nikon Autofocus area +Readonly: 0 +Type: TEXT +Current: 0x0 +END +/main/actions/controlmode +Label: Set Nikon Control Mode +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/actions/viewfinder +Label: Nikon Viewfinder +Readonly: 0 +Type: TOGGLE +Current: 0 +END +/main/actions/movie +Label: Movie Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/settings/datetime +Label: Camera Date and Time +Readonly: 0 +Type: DATE +Current: 1517570544 +Printable: Fri Feb 2 12:22:24 2018 +Help: Use 'now' as the current time when setting. + +END +/main/settings/imagecomment +Label: Image Comment +Readonly: 0 +Type: TEXT +Current: +END +/main/settings/imagecommentenable +Label: Enable Image Comment +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/settings/recordingmedia +Label: Recording Media +Readonly: 0 +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +END +/main/settings/artist +Label: Artist +Readonly: 0 +Type: TEXT +Current: +END +/main/settings/copyright +Label: Copyright +Readonly: 0 +Type: TEXT +Current: +END +/main/settings/cleansensor +Label: Clean Sensor +Readonly: 0 +Type: RADIO +Current: Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +END +/main/settings/flickerreduction +Label: Flicker Reduction +Readonly: 0 +Type: RADIO +Current: Auto +Choice: 0 50 Hz +Choice: 1 60 Hz +Choice: 2 Auto +END +/main/settings/fastfs +Label: Fast Filesystem +Readonly: 0 +Type: TOGGLE +Current: 1 +END +/main/settings/capturetarget +Label: Capture Target +Readonly: 0 +Type: RADIO +Current: Memory card +Choice: 0 Internal RAM +Choice: 1 Memory card +END +/main/settings/autofocus +Label: Autofocus +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: 0000000000000000000000000600nnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: Nikon Corporation +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: Z 6 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: V1.00 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: Microsoft.com/DeviceServices: 1.0 +END +/main/status/acpower +Label: AC Power +Readonly: 1 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/status/externalflash +Label: External Flash +Readonly: 1 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/status/batterylevel +Label: Battery Level +Readonly: 1 +Type: TEXT +Current: 80% +END +/main/status/orientation +Label: Camera Orientation +Readonly: 1 +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +END +/main/status/orientation2 +Label: Camera Orientation +Readonly: 1 +Type: TEXT +Current: 10' +END +/main/status/minfocallength +Label: Focal Length Minimum +Readonly: 1 +Type: TEXT +Current: 24 mm +END +/main/status/maxfocallength +Label: Focal Length Maximum +Readonly: 1 +Type: TEXT +Current: 70 mm +END +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Readonly: 1 +Type: TEXT +Current: 4 +END +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Readonly: 1 +Type: TEXT +Current: 4 +END +/main/status/lowlight +Label: Low Light +Readonly: 1 +Type: RANGE +Current: 3 +Bottom: 0 +Top: 3 +Step: 1 +END +/main/status/lightmeter +Label: Light Meter +Readonly: 1 +Type: RANGE +Current: 0 +Bottom: -60 +Top: 60 +Step: 1 +END +/main/status/aflocked +Label: AF Locked +Readonly: 1 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/status/aelocked +Label: AE Locked +Readonly: 1 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/status/fvlocked +Label: FV Locked +Readonly: 1 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/imgsettings/imagesize +Label: Image Size +Readonly: 0 +Type: RADIO +Current: 6048x4024 +Choice: 0 6048x4024 +Choice: 1 4528x3016 +Choice: 2 3024x2016 +END +/main/imgsettings/iso +Label: ISO Speed +Readonly: 0 +Type: RADIO +Current: 100 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 32000 +Choice: 29 40000 +Choice: 30 51200 +END +/main/imgsettings/movieiso +Label: Movie ISO Speed +Readonly: 0 +Type: RADIO +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +Choice: 25 32000 +Choice: 26 40000 +Choice: 27 51200 +Choice: 28 64000 +Choice: 29 81200 +Choice: 30 102400 +Choice: 31 204800 +END +/main/imgsettings/isoauto +Label: ISO Auto +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/imgsettings/whitebalance +Label: WhiteBalance +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +Choice: 9 Natural light auto +END +/main/imgsettings/colorspace +Label: Color Space +Readonly: 0 +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +END +/main/imgsettings/autoiso +Label: Auto ISO +Readonly: 0 +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/minimumshutterspeed +Label: Minimum Shutter Speed +Readonly: 0 +Type: RADIO +Current: Unknown value 0034 +Choice: 0 1/2000 +Choice: 1 1/1600 +Choice: 2 1/1250 +Choice: 3 1/1000 +Choice: 4 1/800 +Choice: 5 1/640 +Choice: 6 1/500 +Choice: 7 1/400 +Choice: 8 1/320 +Choice: 9 1/250 +Choice: 10 1/200 +Choice: 11 1/160 +Choice: 12 1/125 +Choice: 13 1/100 +Choice: 14 1/80 +Choice: 15 1/60 +Choice: 16 1/50 +Choice: 17 1/40 +Choice: 18 1/30 +Choice: 19 1/15 +Choice: 20 1/8 +Choice: 21 1/4 +Choice: 22 1/2 +Choice: 23 1 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 Unknown value 001c +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +Choice: 32 Unknown value 0020 +Choice: 33 Unknown value 0021 +Choice: 34 Unknown value 0022 +Choice: 35 Unknown value 0023 +Choice: 36 Unknown value 0024 +Choice: 37 Unknown value 0025 +Choice: 38 Unknown value 0026 +Choice: 39 Unknown value 0027 +Choice: 40 Unknown value 0028 +Choice: 41 Unknown value 0029 +Choice: 42 Unknown value 002a +Choice: 43 Unknown value 002b +Choice: 44 Unknown value 002c +Choice: 45 Unknown value 002d +Choice: 46 Unknown value 002e +Choice: 47 Unknown value 002f +Choice: 48 Unknown value 0030 +Choice: 49 Unknown value 0031 +Choice: 50 Unknown value 0032 +Choice: 51 Unknown value 0033 +Choice: 52 Unknown value 0034 +END +/main/capturesettings/isoautohilimit +Label: ISO Auto Hi Limit +Readonly: 0 +Type: RADIO +Current: Unknown value 0020 +Choice: 0 400 +Choice: 1 800 +Choice: 2 1600 +Choice: 3 3200 +Choice: 4 Hi 1 +Choice: 5 Hi 2 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +Choice: 22 Unknown value 0016 +Choice: 23 Unknown value 0017 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 Unknown value 001c +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +Choice: 32 Unknown value 0020 +Choice: 33 Unknown value 0021 +Choice: 34 Unknown value 0022 +Choice: 35 Unknown value 0023 +Choice: 36 Unknown value 0024 +Choice: 37 Unknown value 0025 +END +/main/capturesettings/dlighting +Label: Active D-Lighting +Readonly: 0 +Type: RADIO +Current: Extra high +Choice: 0 Extra high +Choice: 1 High +Choice: 2 Normal +Choice: 3 Low +Choice: 4 Off +Choice: 5 Auto +END +/main/capturesettings/highisonr +Label: High ISO Noise Reduction +Readonly: 0 +Type: RADIO +Current: Normal +Choice: 0 Off +Choice: 1 Low +Choice: 2 Normal +Choice: 3 High +END +/main/capturesettings/moviehighisonr +Label: Movie High ISO Noise Reduction +Readonly: 0 +Type: RADIO +Current: Normal +Choice: 0 Off +Choice: 1 Low +Choice: 2 Normal +Choice: 3 High +END +/main/capturesettings/shootingspeed +Label: Continuous Shooting Speed Slow +Readonly: 0 +Type: RADIO +Current: Unknown value 0006 +Choice: 0 Unknown value 0004 +Choice: 1 Unknown value 0005 +Choice: 2 Unknown value 0006 +Choice: 3 Unknown value 0007 +Choice: 4 Unknown value 0008 +END +/main/capturesettings/maximumcontinousrelease +Label: Maximum continuous release +Readonly: 0 +Type: RANGE +Current: 200 +Bottom: 1 +Top: 200 +Step: 1 +END +/main/capturesettings/moviequality +Label: Movie Quality +Readonly: 0 +Type: RADIO +Current: Unknown value 0005 +Choice: 0 320x216 +Choice: 1 640x424 +Choice: 2 1280x720 +Choice: 3 Unknown value 0003 +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +END +/main/capturesettings/rawcompression +Label: Raw Compression +Readonly: 0 +Type: RADIO +Current: Lossless +Choice: 0 Lossless +Choice: 1 Lossy +Choice: 2 Unknown value 0002 +END +/main/capturesettings/flashsyncspeed +Label: Flash Sync. Speed +Readonly: 0 +Type: RADIO +Current: 1/250s +Choice: 0 1/250s (Auto FP) +Choice: 1 1/250s +Choice: 2 1/200s +Choice: 3 1/160s +Choice: 4 1/125s +Choice: 5 1/100s +Choice: 6 1/80s +END +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Readonly: 0 +Type: RADIO +Current: 1/60s +Choice: 0 1/60s +Choice: 1 1/30s +Choice: 2 1/15s +Choice: 3 1/8s +Choice: 4 1/4s +Choice: 5 1/2s +Choice: 6 1s +Choice: 7 2s +Choice: 8 4s +Choice: 9 8s +Choice: 10 15s +Choice: 11 30s +END +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Readonly: 0 +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.666 +Choice: 2 -4.333 +Choice: 3 -4 +Choice: 4 -3.666 +Choice: 5 -3.333 +Choice: 6 -3 +Choice: 7 -2.666 +Choice: 8 -2.333 +Choice: 9 -2 +Choice: 10 -1.666 +Choice: 11 -1.333 +Choice: 12 -1 +Choice: 13 -0.666 +Choice: 14 -0.333 +Choice: 15 0 +Choice: 16 0.333 +Choice: 17 0.666 +Choice: 18 1 +Choice: 19 1.333 +Choice: 20 1.666 +Choice: 21 2 +Choice: 22 2.333 +Choice: 23 2.666 +Choice: 24 3 +Choice: 25 3.333 +Choice: 26 3.666 +Choice: 27 4 +Choice: 28 4.333 +Choice: 29 4.666 +Choice: 30 5 +END +/main/capturesettings/flashmode +Label: Flash Mode +Readonly: 0 +Type: RADIO +Current: Auto +Choice: 0 Flash off +Choice: 1 Red-eye automatic +Choice: 2 Auto +END +/main/capturesettings/f-number +Label: F-Number +Readonly: 1 +Type: RADIO +Current: f/4 +Choice: 0 f/4 +Choice: 1 f/4.5 +Choice: 2 f/5 +Choice: 3 f/5.6 +Choice: 4 f/6.3 +Choice: 5 f/7.1 +Choice: 6 f/8 +Choice: 7 f/9 +Choice: 8 f/10 +Choice: 9 f/11 +Choice: 10 f/13 +Choice: 11 f/14 +Choice: 12 f/16 +Choice: 13 f/18 +Choice: 14 f/20 +Choice: 15 f/22 +END +/main/capturesettings/movief-number +Label: Movie F-Number +Readonly: 1 +Type: RADIO +Current: f/0 +Choice: 0 f/0 +END +/main/capturesettings/flexibleprogram +Label: Flexible Program +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +END +/main/capturesettings/imagequality +Label: Image Quality +Readonly: 0 +Type: RADIO +Current: JPEG Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 Unknown value 0003 +Choice: 4 NEF (Raw) +Choice: 5 NEF+Basic +Choice: 6 NEF+Normal +Choice: 7 NEF+Fine +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +END +/main/capturesettings/focallength +Label: Focal Length +Readonly: 1 +Type: RANGE +Current: 24 +Bottom: 24 +Top: 70 +Step: 0.01 +END +/main/capturesettings/focusmode +Label: Focus Mode +Readonly: 1 +Type: RADIO +Current: AF-S +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 Unknown value 8013 +END +/main/capturesettings/expprogram +Label: Exposure Program +Readonly: 1 +Type: RADIO +Current: Auto +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Unknown value 8050 +Choice: 6 Unknown value 8051 +Choice: 7 Unknown value 8052 +END +/main/capturesettings/hdrmode +Label: HDR Mode +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/hdrhighdynamic +Label: HDR High Dynamic +Readonly: 0 +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 1 EV +Choice: 2 2 EV +Choice: 3 3 EV +END +/main/capturesettings/hdrsmoothing +Label: HDR Smoothing +Readonly: 0 +Type: RADIO +Current: Normal +Choice: 0 High +Choice: 1 Normal +Choice: 2 Low +END +/main/capturesettings/capturemode +Label: Still Capture Mode +Readonly: 0 +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Unknown value 8019 +END +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Readonly: 0 +Type: RADIO +Current: Single Area +Choice: 0 Single Area +Choice: 1 Closest Subject +Choice: 2 Unknown value 8017 +Choice: 3 Unknown value 8018 +Choice: 4 Unknown value 8019 +END +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Readonly: 0 +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +Choice: 3 Unknown value 8010 +END +/main/capturesettings/shutterspeed +Label: Shutter Speed +Readonly: 1 +Type: RADIO +Current: 0.7692s +Choice: 0 0.0001s +Choice: 1 0.0002s +Choice: 2 0.0003s +Choice: 3 0.0004s +Choice: 4 0.0005s +Choice: 5 0.0006s +Choice: 6 0.0008s +Choice: 7 0.0010s +Choice: 8 0.0012s +Choice: 9 0.0015s +Choice: 10 0.0020s +Choice: 11 0.0025s +Choice: 12 0.0031s +Choice: 13 0.0040s +Choice: 14 0.0050s +Choice: 15 0.0062s +Choice: 16 0.0080s +Choice: 17 0.0100s +Choice: 18 0.0125s +Choice: 19 0.0166s +Choice: 20 0.0200s +Choice: 21 0.0250s +Choice: 22 0.0333s +Choice: 23 0.0400s +Choice: 24 0.0500s +Choice: 25 0.0666s +Choice: 26 0.0769s +Choice: 27 0.1000s +Choice: 28 0.1250s +Choice: 29 0.1666s +Choice: 30 0.2000s +Choice: 31 0.2500s +Choice: 32 0.3333s +Choice: 33 0.4000s +Choice: 34 0.5000s +Choice: 35 0.6250s +Choice: 36 0.7692s +Choice: 37 1.0000s +Choice: 38 1.3000s +Choice: 39 1.6000s +Choice: 40 2.0000s +Choice: 41 2.5000s +Choice: 42 3.0000s +Choice: 43 4.0000s +Choice: 44 5.0000s +Choice: 45 6.0000s +Choice: 46 8.0000s +Choice: 47 10.0000s +Choice: 48 13.0000s +Choice: 49 15.0000s +Choice: 50 20.0000s +Choice: 51 25.0000s +Choice: 52 30.0000s +END +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Readonly: 1 +Type: RADIO +Current: 10/13 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +Choice: 22 1/50 +Choice: 23 1/40 +Choice: 24 1/30 +Choice: 25 1/25 +Choice: 26 1/20 +Choice: 27 1/15 +Choice: 28 1/13 +Choice: 29 1/10 +Choice: 30 1/8 +Choice: 31 1/6 +Choice: 32 1/5 +Choice: 33 1/4 +Choice: 34 1/3 +Choice: 35 10/25 +Choice: 36 1/2 +Choice: 37 10/16 +Choice: 38 10/13 +Choice: 39 1 +Choice: 40 13/10 +Choice: 41 16/10 +Choice: 42 2 +Choice: 43 25/10 +Choice: 44 3 +Choice: 45 4 +Choice: 46 5 +Choice: 47 6 +Choice: 48 8 +Choice: 49 10 +Choice: 50 13 +Choice: 51 15 +Choice: 52 20 +Choice: 53 25 +Choice: 54 30 +Choice: 55 x 200 +END +/main/capturesettings/movieshutterspeed +Label: Movie Shutter Speed 2 +Readonly: 1 +Type: RADIO +Current: 1/60 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +END +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Readonly: 0 +Type: RADIO +Current: Single-servo AF +Choice: 0 Single-servo AF +Choice: 1 Unknown value 0001 +Choice: 2 Manual Focus +END +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Readonly: 0 +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Readonly: 1 +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0.333333 +END +/main/capturesettings/bracketing +Label: Bracketing +Readonly: 0 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/capturesettings/bracketmode +Label: Bracketing +Readonly: 0 +Type: RADIO +Current: Flash/speed +Choice: 0 Flash/speed +Choice: 1 Flash/speed/aperture +Choice: 2 Flash/aperture +Choice: 3 Flash only +END +/main/capturesettings/evstep +Label: EV Step +Readonly: 0 +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +END +/main/capturesettings/bracketset +Label: Bracket Set +Readonly: 0 +Type: RADIO +Current: AE & Flash +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +END +/main/capturesettings/bracketorder +Label: Bracket Order +Readonly: 0 +Type: RADIO +Current: MTR > Under +Choice: 0 MTR > Under +Choice: 1 Under > MTR +END +/main/capturesettings/burstnumber +Label: Burst Number +Readonly: 0 +Type: RANGE +Current: 1 +Bottom: 1 +Top: 65535 +Step: 1 +END +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Readonly: 0 +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +END +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/capturesettings/whitebiaspreset2 +Label: White Balance Bias Preset 2 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/capturesettings/whitebiaspreset3 +Label: White Balance Bias Preset 3 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/capturesettings/whitebiaspreset4 +Label: White Balance Bias Preset 4 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/capturesettings/centerweightsize +Label: Center Weight Area +Readonly: 0 +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +END +/main/capturesettings/applicationmode +Label: Application Mode +Readonly: 0 +Type: RADIO +Current: Application Mode 0 +Choice: 0 Application Mode 0 +Choice: 1 Application Mode 1 +END +/main/capturesettings/microphone +Label: Microphone +Readonly: 0 +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +Choice: 5 Unknown value 0005 +END +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Readonly: 1 +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +END +/main/other/5001 +Label: Battery Level +Readonly: 1 +Type: MENU +Current: 80 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +END +/main/other/5003 +Label: Image Size +Readonly: 0 +Type: MENU +Current: 6048x4024 +Choice: 0 6048x4024 +Choice: 1 4528x3016 +Choice: 2 3024x2016 +END +/main/other/5004 +Label: Compression Setting +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +END +/main/other/5005 +Label: White Balance +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +Choice: 9 32790 +END +/main/other/5007 +Label: F-Number +Readonly: 1 +Type: MENU +Current: 400 +Choice: 0 400 +Choice: 1 450 +Choice: 2 500 +Choice: 3 560 +Choice: 4 630 +Choice: 5 710 +Choice: 6 800 +Choice: 7 900 +Choice: 8 1000 +Choice: 9 1100 +Choice: 10 1300 +Choice: 11 1400 +Choice: 12 1600 +Choice: 13 1800 +Choice: 14 2000 +Choice: 15 2200 +END +/main/other/5008 +Label: Focal Length +Readonly: 1 +Type: RANGE +Current: 2400 +Bottom: 2400 +Top: 7000 +Step: 1 +END +/main/other/500a +Label: Focus Mode +Readonly: 1 +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32787 +END +/main/other/500b +Label: Exposure Metering Mode +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 32784 +END +/main/other/500c +Label: Flash Mode +Readonly: 0 +Type: MENU +Current: 32784 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32784 +END +/main/other/500d +Label: Exposure Time +Readonly: 1 +Type: MENU +Current: 7692 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 8 +Choice: 7 10 +Choice: 8 12 +Choice: 9 15 +Choice: 10 20 +Choice: 11 25 +Choice: 12 31 +Choice: 13 40 +Choice: 14 50 +Choice: 15 62 +Choice: 16 80 +Choice: 17 100 +Choice: 18 125 +Choice: 19 166 +Choice: 20 200 +Choice: 21 250 +Choice: 22 333 +Choice: 23 400 +Choice: 24 500 +Choice: 25 666 +Choice: 26 769 +Choice: 27 1000 +Choice: 28 1250 +Choice: 29 1666 +Choice: 30 2000 +Choice: 31 2500 +Choice: 32 3333 +Choice: 33 4000 +Choice: 34 5000 +Choice: 35 6250 +Choice: 36 7692 +Choice: 37 10000 +Choice: 38 13000 +Choice: 39 16000 +Choice: 40 20000 +Choice: 41 25000 +Choice: 42 30000 +Choice: 43 40000 +Choice: 44 50000 +Choice: 45 60000 +Choice: 46 80000 +Choice: 47 100000 +Choice: 48 130000 +Choice: 49 150000 +Choice: 50 200000 +Choice: 51 250000 +Choice: 52 300000 +END +/main/other/500e +Label: Exposure Program Mode +Readonly: 1 +Type: MENU +Current: 32784 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32848 +Choice: 6 32849 +Choice: 7 32850 +END +/main/other/500f +Label: Exposure Index (film speed ISO) +Readonly: 0 +Type: MENU +Current: 100 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 32000 +Choice: 29 40000 +Choice: 30 51200 +END +/main/other/5010 +Label: Exposure Bias Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +END +/main/other/5011 +Label: Date & Time +Readonly: 0 +Type: TEXT +Current: 20180202T122224 +END +/main/other/5013 +Label: Still Capture Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32793 +END +/main/other/5018 +Label: Burst Number +Readonly: 0 +Type: RANGE +Current: 1 +Bottom: 1 +Top: 65535 +Step: 1 +END +/main/other/501c +Label: Focus Metering Mode +Readonly: 0 +Type: MENU +Current: 32784 +Choice: 0 32784 +Choice: 1 32785 +Choice: 2 32791 +Choice: 3 32792 +Choice: 4 32793 +END +/main/other/501e +Label: Artist +Readonly: 1 +Type: TEXT +Current: +END +/main/other/501f +Label: Copyright Info +Readonly: 1 +Type: TEXT +Current: +END +/main/other/d303 +Label: PTP Property 0xd303 +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d406 +Label: PTP Property 0xd406 +Readonly: 0 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +END +/main/other/d407 +Label: PTP Property 0xd407 +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d015 +Label: Reset Bank 0 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d016 +Label: Raw Compression +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d017 +Label: Auto White Balance Bias +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d018 +Label: Tungsten White Balance Bias +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d019 +Label: Fluorescent White Balance Bias +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d01a +Label: Daylight White Balance Bias +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d01b +Label: Flash White Balance Bias +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d01c +Label: Cloudy White Balance Bias +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d01d +Label: Shady White Balance Bias +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d01e +Label: White Balance Colour Temperature +Readonly: 0 +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +END +/main/other/d01f +Label: White Balance Preset Number +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +END +/main/other/d021 +Label: White Balance Preset Name 1 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d022 +Label: White Balance Preset Name 2 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d023 +Label: White Balance Preset Name 3 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d024 +Label: White Balance Preset Name 4 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d026 +Label: White Balance Preset Value 1 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d027 +Label: White Balance Preset Value 2 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d028 +Label: White Balance Preset Value 3 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d029 +Label: White Balance Preset Value 4 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d02e +Label: Lens Focal Length (Non CPU) +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +END +/main/other/d02f +Label: Lens Maximum Aperture (Non CPU) +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +END +/main/other/d030 +Label: Shooting Mode +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d032 +Label: Color Space +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d034 +Label: Flicker Reduction +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d038 +Label: PTP Property 0xd038 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d039 +Label: PTP Property 0xd039 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d03a +Label: PTP Property 0xd03a +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d03b +Label: PTP Property 0xd03b +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d03c +Label: PTP Property 0xd03c +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d03d +Label: PTP Property 0xd03d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d03e +Label: PTP Property 0xd03e +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d03f +Label: PTP Property 0xd03f +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d045 +Label: Reset Menu Bank +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d046 +Label: PTP Property 0xd046 +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +END +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d04f +Label: Focus Area Wrap +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d053 +Label: Enable Copyright +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d054 +Label: Auto ISO +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d056 +Label: Exposure Step +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d059 +Label: Centre Weight Area +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d05a +Label: Exposure Base Matrix +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +END +/main/other/d05b +Label: Exposure Base Center +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +END +/main/other/d05c +Label: Exposure Base Spot +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +END +/main/other/d061 +Label: Live View AF Focus +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 4 +END +/main/other/d067 +Label: Angle Level +Readonly: 1 +Type: TEXT +Current: 631525 +END +/main/other/d068 +Label: Shooting Speed +Readonly: 0 +Type: MENU +Current: 6 +Choice: 0 4 +Choice: 1 5 +Choice: 2 6 +Choice: 3 7 +Choice: 4 8 +END +/main/other/d069 +Label: Maximum Shots +Readonly: 0 +Type: RANGE +Current: 200 +Bottom: 1 +Top: 200 +Step: 1 +END +/main/other/d06a +Label: Exposure delay mode +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d06b +Label: Long Exposure Noise Reduction +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d06c +Label: File Number Sequencing +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d070 +Label: High ISO noise reduction +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d072 +Label: Artist Name +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d073 +Label: Copyright Information +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d074 +Label: Flash Sync. Speed +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +END +/main/other/d075 +Label: Flash Shutter Speed +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +END +/main/other/d078 +Label: Bracket Set +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +END +/main/other/d079 +Label: Manual Mode Bracketing +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d07a +Label: Bracket Order +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d07c +Label: NIKON Auto Bracketing Set +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d07d +Label: PTP Property 0xd07d +Readonly: 1 +Type: TEXT +Current: 23189914 +END +/main/other/d07e +Label: PTP Property 0xd07e +Readonly: 1 +Type: TEXT +Current: -1 +END +/main/other/d08a +Label: No CF Card Release +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d08d +Label: AF Area Point +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d08f +Label: Clean Image Sensor +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d090 +Label: Image Comment String +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d091 +Label: Image Comment Enable +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d093 +Label: Manual Set Lens Number +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +END +/main/other/d09c +Label: PTP Property 0xd09c +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d09d +Label: PTP Property 0xd09d +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0a0 +Label: Movie Screen Size +Readonly: 0 +Type: MENU +Current: 5 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +END +/main/other/d0a2 +Label: Movie Microphone +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Readonly: 1 +Type: TEXT +Current: 24576 +END +/main/other/d0a7 +Label: Movie Quality +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Readonly: 0 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +END +/main/other/d0aa +Label: PTP Property 0xd0aa +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0ac +Label: PTP Property 0xd0ac +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0ad +Label: PTP Property 0xd0ad +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0ae +Label: PTP Property 0xd0ae +Readonly: 0 +Type: MENU +Current: 32 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +END +/main/other/d0af +Label: PTP Property 0xd0af +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0b4 +Label: PTP Property 0xd0b4 +Readonly: 0 +Type: MENU +Current: 100 +Choice: 0 50 +Choice: 1 64 +Choice: 2 80 +Choice: 3 100 +Choice: 4 125 +Choice: 5 160 +Choice: 6 200 +Choice: 7 250 +Choice: 8 320 +Choice: 9 400 +Choice: 10 500 +Choice: 11 640 +Choice: 12 800 +Choice: 13 1000 +Choice: 14 1250 +Choice: 15 1600 +Choice: 16 2000 +Choice: 17 2500 +Choice: 18 3200 +Choice: 19 4000 +Choice: 20 5000 +Choice: 21 6400 +Choice: 22 8000 +Choice: 23 10000 +Choice: 24 12800 +Choice: 25 16000 +Choice: 26 20000 +Choice: 27 25600 +Choice: 28 32000 +Choice: 29 40000 +Choice: 30 51200 +Choice: 31 64000 +Choice: 32 81200 +Choice: 33 102400 +Choice: 34 204800 +END +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Readonly: 1 +Type: TEXT +Current: 12800 +END +/main/other/d0b6 +Label: PTP Property 0xd0b6 +Readonly: 0 +Type: MENU +Current: 6048x4024 +Choice: 0 6048x4024 +Choice: 1 4528x3016 +Choice: 2 3024x2016 +END +/main/other/d0b7 +Label: PTP Property 0xd0b7 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0ba +Label: PTP Property 0xd0ba +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0bb +Label: PTP Property 0xd0bb +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0bc +Label: PTP Property 0xd0bc +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 1 +END +/main/other/d0bd +Label: PTP Property 0xd0bd +Readonly: 1 +Type: TEXT +Current: -2147483648 +END +/main/other/d0bf +Label: PTP Property 0xd0bf +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0c0 +Label: Bracketing Enable +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0c1 +Label: Exposure Bracketing Step +Readonly: 1 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d0c2 +Label: Exposure Bracketing Program +Readonly: 1 +Type: MENU +Current: 8 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +END +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Readonly: 1 +Type: MENU +Current: 2 +Choice: 0 1 +END +/main/other/d0c4 +Label: White Balance Bracket Step +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d0c5 +Label: White Balance Bracket Program +Readonly: 1 +Type: MENU +Current: 8 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +END +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Readonly: 1 +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +END +/main/other/d0c7 +Label: PTP Property 0xd0c7 +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +END +/main/other/d0cc +Label: PTP Property 0xd0cc +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0e0 +Label: Lens ID +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d0e1 +Label: Lens Sort +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d0e2 +Label: Lens Type +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d0e3 +Label: Min. Focal Length +Readonly: 1 +Type: TEXT +Current: 2400 +END +/main/other/d0e4 +Label: Max. Focal Length +Readonly: 1 +Type: TEXT +Current: 7000 +END +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Readonly: 1 +Type: TEXT +Current: 400 +END +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Readonly: 1 +Type: TEXT +Current: 400 +END +/main/other/d0e7 +Label: PTP Property 0xd0e7 +Readonly: 1 +Type: TEXT +Current: 128 +END +/main/other/d0f7 +Label: Vignette Control +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d0f8 +Label: Auto Distortion Control +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 1 +END +/main/other/d0fc +Label: PTP Property 0xd0fc +Readonly: 1 +Type: MENU +Current: 19 +Choice: 0 19 +Choice: 1 20 +Choice: 2 21 +Choice: 3 22 +Choice: 4 23 +END +/main/other/d100 +Label: Nikon Exposure Time +Readonly: 1 +Type: MENU +Current: 655373 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +Choice: 25 65561 +Choice: 26 65556 +Choice: 27 65551 +Choice: 28 65549 +Choice: 29 65546 +Choice: 30 65544 +Choice: 31 65542 +Choice: 32 65541 +Choice: 33 65540 +Choice: 34 65539 +Choice: 35 655385 +Choice: 36 65538 +Choice: 37 655376 +Choice: 38 655373 +Choice: 39 65537 +Choice: 40 851978 +Choice: 41 1048586 +Choice: 42 131073 +Choice: 43 1638410 +Choice: 44 196609 +Choice: 45 262145 +Choice: 46 327681 +Choice: 47 393217 +Choice: 48 524289 +Choice: 49 655361 +Choice: 50 851969 +Choice: 51 983041 +Choice: 52 1310721 +Choice: 53 1638401 +Choice: 54 1966081 +Choice: 55 -2 +END +/main/other/d101 +Label: AC Power +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d102 +Label: Warning Status +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d104 +Label: AF Locked +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d105 +Label: AE Locked +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d106 +Label: FV Locked +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d109 +Label: Flexible Program +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +END +/main/other/d10b +Label: Recording Media +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d10c +Label: USB Speed +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d10e +Label: Camera Orientation +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d112 +Label: TV Lock Setting +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d113 +Label: AV Lock Setting +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d118 +Label: PTP Property 0xd118 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d120 +Label: External Flash Attached +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d121 +Label: External Flash Status +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d122 +Label: External Flash Sort +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d124 +Label: External Flash Compensation +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +END +/main/other/d125 +Label: External Flash Mode +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +END +/main/other/d126 +Label: Flash Exposure Compensation +Readonly: 1 +Type: RANGE +Current: 0 +Bottom: -18 +Top: 6 +Step: 2 +END +/main/other/d12d +Label: PTP Property 0xd12d +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d12e +Label: PTP Property 0xd12e +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d130 +Label: HDR Mode +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d131 +Label: HDR High Dynamic +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d132 +Label: HDR Smoothing +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d133 +Label: PTP Property 0xd133 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d138 +Label: PTP Property 0xd138 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d141 +Label: PTP Property 0xd141 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d149 +Label: Raw Bit Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d14e +Label: Active D-Lighting +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d14f +Label: Flourescent Type +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +END +/main/other/d150 +Label: Tune Colour Temperature +Readonly: 0 +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +END +/main/other/d152 +Label: Tune Preset 1 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d153 +Label: Tune Preset 2 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d154 +Label: Tune Preset 3 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d155 +Label: Tune Preset 4 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d158 +Label: PTP Property 0xd158 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d159 +Label: PTP Property 0xd159 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d15a +Label: PTP Property 0xd15a +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d15b +Label: PTP Property 0xd15b +Readonly: 1 +Type: RANGE +Current: 100 +Bottom: 100 +Top: 999 +Step: 1 +END +/main/other/d15c +Label: PTP Property 0xd15c +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d15d +Label: PTP Property 0xd15d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d15e +Label: PTP Property 0xd15e +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Readonly: 0 +Type: MENU +Current: 52 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +END +/main/other/d16a +Label: ISO Auto +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d17a +Label: PTP Property 0xd17a +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d17b +Label: PTP Property 0xd17b +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d17c +Label: PTP Property 0xd17c +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -5 +Choice: 1 -4 +Choice: 2 -3 +Choice: 3 -2 +Choice: 4 -1 +Choice: 5 0 +Choice: 6 1 +Choice: 7 2 +Choice: 8 3 +Choice: 9 4 +Choice: 10 5 +END +/main/other/d17d +Label: PTP Property 0xd17d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d17e +Label: PTP Property 0xd17e +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +END +/main/other/d183 +Label: ISO Auto High Limit +Readonly: 0 +Type: MENU +Current: 32 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +END +/main/other/d197 +Label: PTP Property 0xd197 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d199 +Label: PTP Property 0xd199 +Readonly: 0 +Type: MENU +Current: 38 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +END +/main/other/d1a2 +Label: Live View Status +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1a4 +Label: Live View Prohibit Condition +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d1a6 +Label: PTP Property 0xd1a6 +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1a8 +Label: PTP Property 0xd1a8 +Readonly: 1 +Type: MENU +Current: 65596 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +END +/main/other/d1a9 +Label: PTP Property 0xd1a9 +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +END +/main/other/d1aa +Label: PTP Property 0xd1aa +Readonly: 0 +Type: MENU +Current: 100 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 16000 +Choice: 23 20000 +Choice: 24 25600 +Choice: 25 32000 +Choice: 26 40000 +Choice: 27 51200 +Choice: 28 64000 +Choice: 29 81200 +Choice: 30 102400 +Choice: 31 204800 +END +/main/other/d1ab +Label: PTP Property 0xd1ab +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 -3000 +Choice: 1 -2666 +Choice: 2 -2333 +Choice: 3 -2000 +Choice: 4 -1666 +Choice: 5 -1333 +Choice: 6 -1000 +Choice: 7 -666 +Choice: 8 -333 +Choice: 9 0 +Choice: 10 333 +Choice: 11 666 +Choice: 12 1000 +Choice: 13 1333 +Choice: 14 1666 +Choice: 15 2000 +Choice: 16 2333 +Choice: 17 2666 +Choice: 18 3000 +END +/main/other/d1ac +Label: PTP Property 0xd1ac +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d1ad +Label: PTP Property 0xd1ad +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1af +Label: PTP Property 0xd1af +Readonly: 1 +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 32784 +END +/main/other/d1b0 +Label: Exposure Display Status +Readonly: 1 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d1b1 +Label: Exposure Indicate Status +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +END +/main/other/d1b2 +Label: Info Display Error Status +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1b3 +Label: Exposure Indicate Lightup +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Readonly: 1 +Type: RANGE +Current: 20 +Bottom: 0 +Top: 360 +Step: 1 +END +/main/other/d1b7 +Label: PTP Property 0xd1b7 +Readonly: 1 +Type: MENU +Current: 20 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +END +/main/other/d1b8 +Label: PTP Property 0xd1b8 +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1b9 +Label: PTP Property 0xd1b9 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d1bb +Label: PTP Property 0xd1bb +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1bc +Label: PTP Property 0xd1bc +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d1bd +Label: PTP Property 0xd1bd +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 512 +Choice: 2 1024 +Choice: 3 2048 +END +/main/other/d1de +Label: PTP Property 0xd1de +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1df +Label: PTP Property 0xd1df +Readonly: 0 +Type: MENU +Current: 248 +Choice: 0 180 +Choice: 1 191 +Choice: 2 202 +Choice: 3 213 +Choice: 4 224 +Choice: 5 235 +Choice: 6 248 +Choice: 7 255 +END +/main/other/d1e2 +Label: PTP Property 0xd1e2 +Readonly: 1 +Type: MENU +Current: 0 +END +/main/other/d1e3 +Label: PTP Property 0xd1e3 +Readonly: 1 +Type: MENU +Current: 0 +END +/main/other/d1e4 +Label: PTP Property 0xd1e4 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d1e5 +Label: PTP Property 0xd1e5 +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1e6 +Label: PTP Property 0xd1e6 +Readonly: 1 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 9999 +Step: 1 +END +/main/other/d1e7 +Label: PTP Property 0xd1e7 +Readonly: 1 +Type: TEXT +Current: 0 +END +/main/other/d1e8 +Label: PTP Property 0xd1e8 +Readonly: 1 +Type: MENU +Current: 255 +Choice: 0 255 +END +/main/other/d1e9 +Label: PTP Property 0xd1e9 +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1ea +Label: PTP Property 0xd1ea +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d1ec +Label: PTP Property 0xd1ec +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1ed +Label: PTP Property 0xd1ed +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Readonly: 1 +Type: RANGE +Current: 6723 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +END +/main/other/d1f8 +Label: PTP Property 0xd1f8 +Readonly: 0 +Type: MENU +Current: 32785 +Choice: 0 32784 +Choice: 1 32785 +Choice: 2 32792 +Choice: 3 32793 +END +/main/other/d1f9 +Label: PTP Property 0xd1f9 +Readonly: 0 +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 100 +END +/main/other/d1fa +Label: PTP Property 0xd1fa +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +END +/main/other/d1fb +Label: PTP Property 0xd1fb +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d1fc +Label: PTP Property 0xd1fc +Readonly: 1 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d1fd +Label: PTP Property 0xd1fd +Readonly: 1 +Type: TEXT +Current: (null) +END +/main/other/d1fe +Label: PTP Property 0xd1fe +Readonly: 1 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d200 +Label: Active Pic Ctrl Item +Readonly: 0 +Type: MENU +Current: 8 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 101 +Choice: 9 102 +Choice: 10 103 +Choice: 11 104 +Choice: 12 105 +Choice: 13 106 +Choice: 14 107 +Choice: 15 108 +Choice: 16 109 +Choice: 17 110 +Choice: 18 111 +Choice: 19 112 +Choice: 20 113 +Choice: 21 114 +Choice: 22 115 +Choice: 23 116 +Choice: 24 117 +Choice: 25 118 +Choice: 26 119 +Choice: 27 120 +Choice: 28 201 +Choice: 29 202 +Choice: 30 203 +Choice: 31 204 +Choice: 32 205 +Choice: 33 206 +Choice: 34 207 +Choice: 35 208 +Choice: 36 209 +END +/main/other/d20d +Label: PTP Property 0xd20d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d20e +Label: PTP Property 0xd20e +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d20f +Label: PTP Property 0xd20f +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d211 +Label: PTP Property 0xd211 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d212 +Label: PTP Property 0xd212 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d213 +Label: PTP Property 0xd213 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d214 +Label: PTP Property 0xd214 +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +END +/main/other/d215 +Label: PTP Property 0xd215 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d216 +Label: PTP Property 0xd216 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d218 +Label: PTP Property 0xd218 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d219 +Label: PTP Property 0xd219 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d21a +Label: PTP Property 0xd21a +Readonly: 0 +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +END +/main/other/d21b +Label: PTP Property 0xd21b +Readonly: 0 +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +END +/main/other/d21c +Label: PTP Property 0xd21c +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +END +/main/other/d21d +Label: PTP Property 0xd21d +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d21e +Label: PTP Property 0xd21e +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d21f +Label: PTP Property 0xd21f +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d220 +Label: PTP Property 0xd220 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d221 +Label: PTP Property 0xd221 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d222 +Label: PTP Property 0xd222 +Readonly: 0 +Type: TEXT +Current: +END +/main/other/d223 +Label: PTP Property 0xd223 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d224 +Label: PTP Property 0xd224 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d225 +Label: PTP Property 0xd225 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d226 +Label: PTP Property 0xd226 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d227 +Label: PTP Property 0xd227 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d228 +Label: PTP Property 0xd228 +Readonly: 1 +Type: TEXT +Current: 231738032 +END +/main/other/d229 +Label: PTP Property 0xd229 +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d22a +Label: PTP Property 0xd22a +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d22b +Label: PTP Property 0xd22b +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d22c +Label: PTP Property 0xd22c +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d22d +Label: PTP Property 0xd22d +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d22e +Label: PTP Property 0xd22e +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d22f +Label: PTP Property 0xd22f +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d230 +Label: PTP Property 0xd230 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d231 +Label: PTP Property 0xd231 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d232 +Label: PTP Property 0xd232 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d233 +Label: PTP Property 0xd233 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d234 +Label: PTP Property 0xd234 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d235 +Label: PTP Property 0xd235 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d236 +Label: PTP Property 0xd236 +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +END +/main/other/d237 +Label: PTP Property 0xd237 +Readonly: 0 +Type: MENU +Current: 8 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 100 +Choice: 9 101 +Choice: 10 102 +Choice: 11 103 +Choice: 12 104 +Choice: 13 105 +Choice: 14 106 +Choice: 15 107 +Choice: 16 108 +Choice: 17 109 +Choice: 18 110 +Choice: 19 111 +Choice: 20 112 +Choice: 21 113 +Choice: 22 114 +Choice: 23 115 +Choice: 24 116 +Choice: 25 117 +Choice: 26 118 +Choice: 27 119 +Choice: 28 120 +Choice: 29 201 +Choice: 30 202 +Choice: 31 203 +Choice: 32 204 +Choice: 33 205 +Choice: 34 206 +Choice: 35 207 +Choice: 36 208 +Choice: 37 209 +END +/main/other/d239 +Label: PTP Property 0xd239 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +END +/main/other/d23a +Label: PTP Property 0xd23a +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32786 +Choice: 7 32787 +Choice: 8 32789 +Choice: 9 32790 +END +/main/other/d23b +Label: PTP Property 0xd23b +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +END +/main/other/d23c +Label: PTP Property 0xd23c +Readonly: 0 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +END +/main/other/d23d +Label: PTP Property 0xd23d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d23e +Label: PTP Property 0xd23e +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 100 +END +/main/other/d23f +Label: PTP Property 0xd23f +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d314 +Label: PTP Property 0xd314 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-z7.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-z7.txt new file mode 100644 index 00000000..c9d0a944 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nikon-z7.txt @@ -0,0 +1,4099 @@ +Camera summary: +Manufacturer: Nikon Corporation +Model: Z 7 + Version: V1.01 + Serial Number: 0000000000000000000000000nnnnnnn +Vendor Extension ID: 0xa (1.10) +Vendor Extension Description: Microsoft.com/DeviceServices: 1.0 + +Capture Formats: JPEG TIFF Undefined Type +Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, Script, Apple Quicktime, Unknown(b982) + +Device Capabilities: + File Download, File Deletion, File Upload + Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3 + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: NIKON Z 7 [Slot 1] + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read Only with Object deletion + Maximum Capability: 60129542144 (57344 MB) + Free Space (Bytes): 60057059328 (57274 MB) + Free Space (Images): 654 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 80% (80) +Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ + '8256x5504', + '6192x4128', + '4128x2752' + ] value: '6192x4128' +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13] value: 7 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32786,32787,32790] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] value: f/5.6 (560) +Focal Length(0x5008):(read only) (type=0x6) Range [2400 - 7000, step 1] value: 42 mm (4200) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32787] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4,32784] value: Multi-spot (3) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2] value: Flash off (2) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000,4294967295,4294967293] value: 0.00025 sec (25) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32848,32849,32850] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [32,40,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600] value: ISO 100 (100) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0) +Date & Time(0x5011):(readwrite) (type=0xffff) '20181111T122552' +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32784,32785,32793] value: Single Shot (1) +Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 65535, step 1] value: 1 +Focus Metering Mode(0x501c):(read only) (type=0x4) Enumeration [32784] value: Single Area (32784) +Artist(0x501e):(read only) (type=0xffff) '' +Copyright Info(0x501f):(read only) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 +Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0' +Property 0xd407:(read only) (type=0x6) 1 +Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Raw Compression(0xd016):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Lossless (0) +Auto White Balance Bias(0xd017):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tungsten White Balance Bias(0xd018):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Daylight White Balance Bias(0xd01a):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Flash White Balance Bias(0xd01b):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Shady White Balance Bias(0xd01d):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +White Balance Colour Temperature(0xd01e):(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +White Balance Preset Name 1(0xd021):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 2(0xd022):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 3(0xd023):(readwrite) (type=0xffff) ' ' +White Balance Preset Name 4(0xd024):(readwrite) (type=0xffff) ' ' +White Balance Preset Value 1(0xd026):(read only) (type=0x6) 230165216 +White Balance Preset Value 2(0xd027):(read only) (type=0x6) 230165216 +White Balance Preset Value 3(0xd028):(read only) (type=0x6) 230165216 +White Balance Preset Value 4(0xd029):(read only) (type=0x6) 230165216 +Lens Focal Length (Non CPU)(0xd02e):(readwrite) (type=0x2) Range [0 - 40, step 1] value: 0 +Lens Maximum Aperture (Non CPU)(0xd02f):(readwrite) (type=0x2) Range [0 - 22, step 1] value: 0 +Shooting Mode(0xd030):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0 +Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Flicker Reduction(0xd034):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Property 0xd038:(readwrite) (type=0xffff) ' ' +Property 0xd039:(readwrite) (type=0xffff) ' ' +Property 0xd03a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd03c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd03e:(read only) (type=0x6) 230165216 +Property 0xd03f:(read only) (type=0x6) 230165216 +Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd046:(readwrite) (type=0x2) Range [1 - 5, step 1] value: 3 +PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +PTP_DPC_NIKON_A2AFSModePriority(0xd049):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Focus Area Wrap(0xd04f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (1) +Enable Copyright(0xd053):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0) +Centre Weight Area(0xd059):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 8 mm (1) +Exposure Base Matrix(0xd05a):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Center(0xd05b):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Exposure Base Spot(0xd05c):(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,1,4] value: 4 +Angle Level(0xd067):(read only) (type=0x5) 358.8' (23514322) +Shooting Speed(0xd068):(readwrite) (type=0x2) Range [4 - 8, step 1] value: 6 +Maximum Shots(0xd069):(readwrite) (type=0x2) Range [1 - 200, step 1] value: 200 +Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 5, step 1] value: Off (0) +Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: On (1) +High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Artist Name(0xd072):(readwrite) (type=0xffff) '' +Copyright Information(0xd073):(readwrite) (type=0xffff) '' +Flash Sync. Speed(0xd074):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 1 +Flash Shutter Speed(0xd075):(readwrite) (type=0x2) Range [0 - 11, step 1] value: 1/60s (0) +Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE & Flash (0) +Manual Mode Bracketing(0xd079):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Bracket Order(0xd07a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: MTR > Under (0) +NIKON Auto Bracketing Set(0xd07c):(read only) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd07d:(read only) (type=0x5) 23379969 +Property 0xd07e:(read only) (type=0x5) -1 +No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0) +Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 2 +Image Comment String(0xd090):(readwrite) (type=0xffff) '' +Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Manual Set Lens Number(0xd093):(readwrite) (type=0x2) Range [0 - 19, step 1] value: 0 +Property 0xd09c:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd09d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 12, step 1] value: 0 +Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd0a4:(read only) (type=0x6) 24576 +Movie Quality(0xd0a7):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15 +Property 0xd0aa:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ac:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ad:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd0ae:(readwrite) (type=0x2) Range [0 - 33, step 1] value: 28 +Property 0xd0af:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd0b4:(readwrite) (type=0x6) Enumeration [32,40,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600] value: 100 +Property 0xd0b5:(read only) (type=0x6) 100 +Property 0xd0b6:(readwrite) (type=0xffff) Enumeration [ + '8256x5504', + '6192x4128', + '4128x2752' + ] value: '8256x5504' +Property 0xd0b7:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd0ba:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd0bb:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd0bc:(read only) (type=0x2) Enumeration [1] value: 1 +Property 0xd0bd:(read only) (type=0x6) 0 +Property 0xd0bf:(read only) (type=0x2) Enumeration [0,1] value: 0 +Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0) +Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 3 +Exposure Bracketing Program(0xd0c2):(readwrite) (type=0x2) Range [0 - 8, step 1] value: 8 +Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 1, step 1] value: 2 +White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [0 - 8, step 1] value: 8 +Property 0xd0c6:(read only) (type=0x2) Range [0 - 4, step 1] value: 4 +Property 0xd0c7:(read only) (type=0x2) Range [0 - 4, step 1] value: 0 +Property 0xd0cc:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Lens ID(0xd0e0):(read only) (type=0x4) 1 +Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1 +Lens Type(0xd0e2):(read only) (type=0x8) 0 +Min. Focal Length(0xd0e3):(read only) (type=0x6) 24 mm (2400) +Max. Focal Length(0xd0e4):(read only) (type=0x6) 70 mm (7000) +Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/4 (400) +Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/4 (400) +Property 0xd0e7:(read only) (type=0x8) 128 +Vignette Control(0xd0f7):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +Auto Distortion Control(0xd0f8):(read only) (type=0x2) Range [1 - 1, step 1] value: 1 +Property 0xd0fc:(read only) (type=0x2) Range [19 - 23, step 1] value: 19 +Nikon Exposure Time(0xd100):(readwrite) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081,4294967295,4294967293,4294967294] value: 65936 +AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Warning Status(0xd102):(read only) (type=0x6) 0 +AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +FV Locked(0xd106):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0 +Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0) +USB Speed(0xd10c):(read only) (type=0x2) Range [0 - 2, step 1] value: USB 2.0 (1) +Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0) +TV Lock Setting(0xd112):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +AV Lock Setting(0xd113):(readwrite) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd118:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0 +External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0) +External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0 +Flash Exposure Compensation(0xd126):(read only) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0) +Property 0xd12d:(read only) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd12e:(read only) (type=0x2) Enumeration [0,1,2] value: 0 +HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +HDR High Dynamic(0xd131):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 0 +HDR Smoothing(0xd132):(readwrite) (type=0x2) Range [0 - 2, step 1] value: 1 +Property 0xd133:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd138:(readwrite) (type=0x2) Enumeration [0,1,2] value: 0 +Property 0xd141:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Raw Bit Mode(0xd149):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 1 +Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Tune Colour Temperature(0xd150):(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Tune Preset 1(0xd152):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 2(0xd153):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 3(0xd154):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Tune Preset 4(0xd155):(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd158:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd159:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15a:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15b:(read only) (type=0x4) Range [100 - 999, step 1] value: 100 +Property 0xd15c:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd15e:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 52, step 1] value: 52 +ISO Auto(0xd16a):(readwrite) (type=0x2) Range [1 - 1, step 1] value: 1 +Property 0xd17a:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd17b:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd17c:(readwrite) (type=0x1) Range [-5 - 5, step 1] value: 0 +Property 0xd17d:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd17e:(readwrite) (type=0x2) Range [1 - 7, step 1] value: 4 +ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 37, step 1] value: 32 +Property 0xd197:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd199:(readwrite) (type=0x2) Range [0 - 38, step 1] value: 38 +Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 0 +Property 0xd1a6:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1a8:(read only) (type=0x6) Enumeration [73536,71936,70536,69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566] value: 65566 +Property 0xd1a9:(read only) (type=0x4) Enumeration [0] value: 0 +Property 0xd1aa:(readwrite) (type=0x6) Enumeration [64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,102400] value: 6400 +Property 0xd1ab:(read only) (type=0x3) Enumeration [-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000] value: 0 +Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2,3] value: 2 +Property 0xd1ad:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd1af:(readwrite) (type=0x4) Enumeration [2,3,32784] value: 3 +Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0) +Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: -1.0 stops (-12) +Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0) +Property 0xd1b4:(read only) (type=0x4) Range [0 - 360, step 1] value: 12 +Property 0xd1b7:(read only) (type=0x2) Range [0 - 50, step 1] value: 12 +Property 0xd1b8:(read only) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd1b9:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0 +Property 0xd1bb:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1bc:(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5] value: 0 +Property 0xd1bd:(readwrite) (type=0x4) Enumeration [0,512,1024,2048] value: 0 +Property 0xd1de:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1df:(readwrite) (type=0x4) Enumeration [180,191,202,213,224,235,248,255] value: 255 +Property 0xd1e2:(read only) (type=0x2) Enumeration [] value: 0 +Property 0xd1e3:(read only) (type=0x2) Enumeration [] value: 0 +Property 0xd1e4:(read only) (type=0x6) 0 +Property 0xd1e5:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1e6:(read only) (type=0x6) Range [0 - 9999, step 1] value: 0 +Property 0xd1e7:(read only) (type=0x2) 0 +Property 0xd1e8:(read only) (type=0x2) Enumeration [255] value: 255 +Property 0xd1e9:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1ea:(read only) (type=0x2) 1 +Property 0xd1ec:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1ed:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd1f1:(read only) (type=0x6) Range [0 - 4294967295, step 1] value: 654 +Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0 +Property 0xd1f8:(readwrite) (type=0x4) Enumeration [32784,32785,32792,32793] value: 32784 +Property 0xd1f9:(readwrite) (type=0x2) Enumeration [0,1,2,100] value: 100 +Property 0xd1fa:(readwrite) (type=0x2) Enumeration [0,1,2,4] value: 2 +Property 0xd1fb:(readwrite) (type=0x2) Enumeration [0,1,2] value: 0 +Property 0xd1fc:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd1fd:(read only) (type=0x0) Undefined +Property 0xd1fe:(read only) (type=0x2) Enumeration [0,1] value: 1 +Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,201,202,203,204,205,206,207,208,209] value: 8 +Property 0xd20d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1 +Property 0xd20e:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd20f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd211:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd212:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd213:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd214:(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd216:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd218:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd219:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd21a:(readwrite) (type=0x4) Range [2500 - 10000, step 10] value: 5000 +Property 0xd21b:(readwrite) (type=0x2) Range [0 - 48, step 1] value: 24 +Property 0xd21c:(readwrite) (type=0x2) Range [1 - 6, step 1] value: 1 +Property 0xd21d:(readwrite) (type=0xffff) ' ' +Property 0xd21e:(readwrite) (type=0xffff) ' ' +Property 0xd21f:(readwrite) (type=0xffff) ' ' +Property 0xd220:(readwrite) (type=0xffff) ' ' +Property 0xd221:(readwrite) (type=0xffff) ' ' +Property 0xd222:(readwrite) (type=0xffff) ' ' +Property 0xd223:(read only) (type=0x6) 230165216 +Property 0xd224:(read only) (type=0x6) 230165216 +Property 0xd225:(read only) (type=0x6) 230165216 +Property 0xd226:(read only) (type=0x6) 230165216 +Property 0xd227:(read only) (type=0x6) 230165216 +Property 0xd228:(read only) (type=0x6) 230165216 +Property 0xd229:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22a:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22b:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22c:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22d:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22e:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd22f:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd230:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd231:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd232:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd233:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd234:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd235:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +Property 0xd236:(readwrite) (type=0x2) Range [0 - 3, step 1] value: 2 +Property 0xd237:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7,8,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,201,202,203,204,205,206,207,208,209] value: 100 +Property 0xd239:(readwrite) (type=0x1) Range [-6 - 6, step 1] value: 0 +Property 0xd23a:(readwrite) (type=0x4) Enumeration [2,4,5,6,32784,32785,32786,32787,32789,32790] value: 32789 +Property 0xd23b:(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0 +Property 0xd23c:(readwrite) (type=0x4) Range [0 - 1224, step 1] value: 612 +Property 0xd23d:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd23e:(readwrite) (type=0x2) Enumeration [0,1,2,3,100] value: 0 +Property 0xd23f:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd314:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 + +/main/actions/bulb +Label: Bulb Mode +Type: TOGGLE +Current: 2 +/main/actions/autofocusdrive +Label: Drive Nikon DSLR Autofocus +Type: TOGGLE +Current: 0 +/main/actions/manualfocusdrive +Label: Drive Nikon DSLR Manual focus +Type: RANGE +Current: 0 +Bottom: -32767 +Top: 32767 +Step: 1 +/main/actions/changeafarea +Label: Set Nikon Autofocus area +Type: TEXT +Current: 0x0 +/main/actions/controlmode +Label: Set Nikon Control Mode +Type: TEXT +Current: 0 +/main/actions/viewfinder +Label: Nikon Viewfinder +Type: TOGGLE +Current: 0 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Camera Date and Time +Type: DATE +Current: 1541967966 +Printable: Sun 11 Nov 2018 12:26:06 PM PST +Help: Use 'now' as the current time when setting. + +/main/settings/imagecomment +Label: Image Comment +Type: TEXT +Current: +/main/settings/imagecommentenable +Label: Enable Image Comment +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/settings/recordingmedia +Label: Recording Media +Type: RADIO +Current: Card +Choice: 0 Card +Choice: 1 SDRAM +Choice: 2 Unknown value 0002 +/main/settings/artist +Label: Artist +Type: TEXT +Current: +/main/settings/copyright +Label: Copyright +Type: TEXT +Current: +/main/settings/cleansensor +Label: Clean Sensor +Type: RADIO +Current: Shutdown +Choice: 0 Off +Choice: 1 Startup +Choice: 2 Shutdown +/main/settings/flickerreduction +Label: Flicker Reduction +Type: RADIO +Current: Auto +Choice: 0 50 Hz +Choice: 1 60 Hz +Choice: 2 Auto +/main/settings/fastfs +Label: Fast Filesystem +Type: TOGGLE +Current: 1 +/main/settings/capturetarget +Label: Capture Target +Type: RADIO +Current: Internal RAM +Choice: 0 Internal RAM +Choice: 1 Memory card +/main/settings/autofocus +Label: Autofocus +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000000000000nnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Nikon Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Z 7 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: V1.01 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Microsoft.com/DeviceServices: 1.0 +/main/status/acpower +Label: AC Power +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/externalflash +Label: External Flash +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 80% +/main/status/orientation +Label: Camera Orientation +Type: RADIO +Current: 0' +Choice: 0 0' +Choice: 1 270' +Choice: 2 90' +Choice: 3 180' +/main/status/orientation2 +Label: Camera Orientation +Type: TEXT +Current: 359' +/main/status/minfocallength +Label: Focal Length Minimum +Type: TEXT +Current: 24 mm +/main/status/maxfocallength +Label: Focal Length Maximum +Type: TEXT +Current: 70 mm +/main/status/apertureatminfocallength +Label: Maximum Aperture at Focal Length Minimum +Type: TEXT +Current: 4 +/main/status/apertureatmaxfocallength +Label: Maximum Aperture at Focal Length Maximum +Type: TEXT +Current: 4 +/main/status/lowlight +Label: Low Light +Type: RANGE +Current: 0 +Bottom: 0 +Top: 3 +Step: 1 +/main/status/lightmeter +Label: Light Meter +Type: RANGE +Current: -12 +Bottom: -60 +Top: 60 +Step: 1 +/main/status/aflocked +Label: AF Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/aelocked +Label: AE Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/status/fvlocked +Label: FV Locked +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: 6192x4128 +Choice: 0 8256x5504 +Choice: 1 6192x4128 +Choice: 2 4128x2752 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 100 +Choice: 0 32 +Choice: 1 40 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +/main/imgsettings/movieiso +Label: Movie ISO Speed +Type: RADIO +Current: 6400 +Choice: 0 64 +Choice: 1 80 +Choice: 2 100 +Choice: 3 125 +Choice: 4 160 +Choice: 5 200 +Choice: 6 250 +Choice: 7 320 +Choice: 8 400 +Choice: 9 500 +Choice: 10 640 +Choice: 11 800 +Choice: 12 1000 +Choice: 13 1250 +Choice: 14 1600 +Choice: 15 2000 +Choice: 16 2500 +Choice: 17 3200 +Choice: 18 4000 +Choice: 19 5000 +Choice: 20 6400 +Choice: 21 8000 +Choice: 22 10000 +Choice: 23 12800 +Choice: 24 16000 +Choice: 25 20000 +Choice: 26 25600 +Choice: 27 32000 +Choice: 28 40000 +Choice: 29 51200 +Choice: 30 102400 +/main/imgsettings/isoauto +Label: ISO Auto +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Fluorescent +Choice: 3 Tungsten +Choice: 4 Flash +Choice: 5 Cloudy +Choice: 6 Shade +Choice: 7 Color Temperature +Choice: 8 Preset +Choice: 9 Natural light auto +/main/imgsettings/colorspace +Label: Color Space +Type: RADIO +Current: sRGB +Choice: 0 sRGB +Choice: 1 AdobeRGB +/main/imgsettings/autoiso +Label: Auto ISO +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/minimumshutterspeed +Label: Minimum Shutter Speed +Type: RADIO +Current: Unknown value 0034 +Choice: 0 1/2000 +Choice: 1 1/1600 +Choice: 2 1/1250 +Choice: 3 1/1000 +Choice: 4 1/800 +Choice: 5 1/640 +Choice: 6 1/500 +Choice: 7 1/400 +Choice: 8 1/320 +Choice: 9 1/250 +Choice: 10 1/200 +Choice: 11 1/160 +Choice: 12 1/125 +Choice: 13 1/100 +Choice: 14 1/80 +Choice: 15 1/60 +Choice: 16 1/50 +Choice: 17 1/40 +Choice: 18 1/30 +Choice: 19 1/15 +Choice: 20 1/8 +Choice: 21 1/4 +Choice: 22 1/2 +Choice: 23 1 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 Unknown value 001c +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +Choice: 32 Unknown value 0020 +Choice: 33 Unknown value 0021 +Choice: 34 Unknown value 0022 +Choice: 35 Unknown value 0023 +Choice: 36 Unknown value 0024 +Choice: 37 Unknown value 0025 +Choice: 38 Unknown value 0026 +Choice: 39 Unknown value 0027 +Choice: 40 Unknown value 0028 +Choice: 41 Unknown value 0029 +Choice: 42 Unknown value 002a +Choice: 43 Unknown value 002b +Choice: 44 Unknown value 002c +Choice: 45 Unknown value 002d +Choice: 46 Unknown value 002e +Choice: 47 Unknown value 002f +Choice: 48 Unknown value 0030 +Choice: 49 Unknown value 0031 +Choice: 50 Unknown value 0032 +Choice: 51 Unknown value 0033 +Choice: 52 Unknown value 0034 +/main/capturesettings/isoautohilimit +Label: ISO Auto Hi Limit +Type: RADIO +Current: Unknown value 0020 +Choice: 0 400 +Choice: 1 800 +Choice: 2 1600 +Choice: 3 3200 +Choice: 4 Hi 1 +Choice: 5 Hi 2 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +Choice: 14 Unknown value 000e +Choice: 15 Unknown value 000f +Choice: 16 Unknown value 0010 +Choice: 17 Unknown value 0011 +Choice: 18 Unknown value 0012 +Choice: 19 Unknown value 0013 +Choice: 20 Unknown value 0014 +Choice: 21 Unknown value 0015 +Choice: 22 Unknown value 0016 +Choice: 23 Unknown value 0017 +Choice: 24 Unknown value 0018 +Choice: 25 Unknown value 0019 +Choice: 26 Unknown value 001a +Choice: 27 Unknown value 001b +Choice: 28 Unknown value 001c +Choice: 29 Unknown value 001d +Choice: 30 Unknown value 001e +Choice: 31 Unknown value 001f +Choice: 32 Unknown value 0020 +Choice: 33 Unknown value 0021 +Choice: 34 Unknown value 0022 +Choice: 35 Unknown value 0023 +Choice: 36 Unknown value 0024 +Choice: 37 Unknown value 0025 +/main/capturesettings/dlighting +Label: Active D-Lighting +Type: RADIO +Current: High +Choice: 0 Extra high +Choice: 1 High +Choice: 2 Normal +Choice: 3 Low +Choice: 4 Off +Choice: 5 Auto +/main/capturesettings/highisonr +Label: High ISO Noise Reduction +Type: RADIO +Current: Off +Choice: 0 Off +Choice: 1 Low +Choice: 2 Normal +Choice: 3 High +/main/capturesettings/moviehighisonr +Label: Movie High ISO Noise Reduction +Type: RADIO +Current: Normal +Choice: 0 Off +Choice: 1 Low +Choice: 2 Normal +Choice: 3 High +/main/capturesettings/shootingspeed +Label: Continuous Shooting Speed Slow +Type: RADIO +Current: Unknown value 0006 +Choice: 0 Unknown value 0004 +Choice: 1 Unknown value 0005 +Choice: 2 Unknown value 0006 +Choice: 3 Unknown value 0007 +Choice: 4 Unknown value 0008 +/main/capturesettings/maximumcontinousrelease +Label: Maximum continuous release +Type: RANGE +Current: 200 +Bottom: 1 +Top: 200 +Step: 1 +/main/capturesettings/moviequality +Label: Movie Quality +Type: RADIO +Current: 320x216 +Choice: 0 320x216 +Choice: 1 640x424 +Choice: 2 1280x720 +Choice: 3 Unknown value 0003 +Choice: 4 Unknown value 0004 +Choice: 5 Unknown value 0005 +Choice: 6 Unknown value 0006 +Choice: 7 Unknown value 0007 +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +/main/capturesettings/rawcompression +Label: Raw Compression +Type: RADIO +Current: Lossless +Choice: 0 Lossless +Choice: 1 Lossy +Choice: 2 Unknown value 0002 +/main/capturesettings/flashsyncspeed +Label: Flash Sync. Speed +Type: RADIO +Current: 1/250s +Choice: 0 1/250s (Auto FP) +Choice: 1 1/250s +Choice: 2 1/200s +Choice: 3 1/160s +Choice: 4 1/125s +Choice: 5 1/100s +Choice: 6 1/80s +/main/capturesettings/flashshutterspeed +Label: Flash Shutter Speed +Type: RADIO +Current: 1/60s +Choice: 0 1/60s +Choice: 1 1/30s +Choice: 2 1/15s +Choice: 3 1/8s +Choice: 4 1/4s +Choice: 5 1/2s +Choice: 6 1s +Choice: 7 2s +Choice: 8 4s +Choice: 9 8s +Choice: 10 15s +Choice: 11 30s +/main/capturesettings/longexpnr +Label: Long Exp Noise Reduction +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 -5 +Choice: 1 -4.666 +Choice: 2 -4.333 +Choice: 3 -4 +Choice: 4 -3.666 +Choice: 5 -3.333 +Choice: 6 -3 +Choice: 7 -2.666 +Choice: 8 -2.333 +Choice: 9 -2 +Choice: 10 -1.666 +Choice: 11 -1.333 +Choice: 12 -1 +Choice: 13 -0.666 +Choice: 14 -0.333 +Choice: 15 0 +Choice: 16 0.333 +Choice: 17 0.666 +Choice: 18 1 +Choice: 19 1.333 +Choice: 20 1.666 +Choice: 21 2 +Choice: 22 2.333 +Choice: 23 2.666 +Choice: 24 3 +Choice: 25 3.333 +Choice: 26 3.666 +Choice: 27 4 +Choice: 28 4.333 +Choice: 29 4.666 +Choice: 30 5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Flash off +Choice: 0 Flash off +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: f/5.6 +Choice: 0 f/4 +Choice: 1 f/4.5 +Choice: 2 f/5 +Choice: 3 f/5.6 +Choice: 4 f/6.3 +Choice: 5 f/7.1 +Choice: 6 f/8 +Choice: 7 f/9 +Choice: 8 f/10 +Choice: 9 f/11 +Choice: 10 f/13 +Choice: 11 f/14 +Choice: 12 f/16 +Choice: 13 f/18 +Choice: 14 f/20 +Choice: 15 f/22 +/main/capturesettings/movief-number +Label: Movie F-Number +Type: RADIO +Current: f/0 +Choice: 0 f/0 +/main/capturesettings/flexibleprogram +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: NEF+Fine +Choice: 0 JPEG Basic +Choice: 1 JPEG Normal +Choice: 2 JPEG Fine +Choice: 3 Unknown value 0003 +Choice: 4 NEF (Raw) +Choice: 5 NEF+Basic +Choice: 6 NEF+Normal +Choice: 7 NEF+Fine +Choice: 8 Unknown value 0008 +Choice: 9 Unknown value 0009 +Choice: 10 Unknown value 000a +Choice: 11 Unknown value 000b +Choice: 12 Unknown value 000c +Choice: 13 Unknown value 000d +/main/capturesettings/focallength +Label: Focal Length +Type: RANGE +Current: 42 +Bottom: 24 +Top: 70 +Step: 0.01 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Manual +Choice: 0 Manual +Choice: 1 AF-S +Choice: 2 AF-C +Choice: 3 Unknown value 8013 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: M +Choice: 0 M +Choice: 1 P +Choice: 2 A +Choice: 3 S +Choice: 4 Auto +Choice: 5 Unknown value 8050 +Choice: 6 Unknown value 8051 +Choice: 7 Unknown value 8052 +/main/capturesettings/hdrmode +Label: HDR Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/hdrhighdynamic +Label: HDR High Dynamic +Type: RADIO +Current: Auto +Choice: 0 Auto +Choice: 1 1 EV +Choice: 2 2 EV +Choice: 3 3 EV +/main/capturesettings/hdrsmoothing +Label: HDR Smoothing +Type: RADIO +Current: Normal +Choice: 0 High +Choice: 1 Normal +Choice: 2 Low +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Timer +Choice: 4 Unknown value 8019 +/main/capturesettings/focusmetermode +Label: Focus Metering Mode +Type: RADIO +Current: Single Area +Choice: 0 Single Area +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Multi Spot +Choice: 0 Center Weighted +Choice: 1 Multi Spot +Choice: 2 Center Spot +Choice: 3 Unknown value 8010 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 0.0025s +Choice: 0 0.0001s +Choice: 1 0.0002s +Choice: 2 0.0003s +Choice: 3 0.0004s +Choice: 4 0.0005s +Choice: 5 0.0006s +Choice: 6 0.0008s +Choice: 7 0.0010s +Choice: 8 0.0012s +Choice: 9 0.0015s +Choice: 10 0.0020s +Choice: 11 0.0025s +Choice: 12 0.0031s +Choice: 13 0.0040s +Choice: 14 0.0050s +Choice: 15 0.0062s +Choice: 16 0.0080s +Choice: 17 0.0100s +Choice: 18 0.0125s +Choice: 19 0.0166s +Choice: 20 0.0200s +Choice: 21 0.0250s +Choice: 22 0.0333s +Choice: 23 0.0400s +Choice: 24 0.0500s +Choice: 25 0.0666s +Choice: 26 0.0769s +Choice: 27 0.1000s +Choice: 28 0.1250s +Choice: 29 0.1666s +Choice: 30 0.2000s +Choice: 31 0.2500s +Choice: 32 0.3333s +Choice: 33 0.4000s +Choice: 34 0.5000s +Choice: 35 0.6250s +Choice: 36 0.7692s +Choice: 37 1.0000s +Choice: 38 1.3000s +Choice: 39 1.6000s +Choice: 40 2.0000s +Choice: 41 2.5000s +Choice: 42 3.0000s +Choice: 43 4.0000s +Choice: 44 5.0000s +Choice: 45 6.0000s +Choice: 46 8.0000s +Choice: 47 10.0000s +Choice: 48 13.0000s +Choice: 49 15.0000s +Choice: 50 20.0000s +Choice: 51 25.0000s +Choice: 52 30.0000s +Choice: 53 Bulb +Choice: 54 Time +/main/capturesettings/shutterspeed2 +Label: Shutter Speed 2 +Type: RADIO +Current: 1/400 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +Choice: 22 1/50 +Choice: 23 1/40 +Choice: 24 1/30 +Choice: 25 1/25 +Choice: 26 1/20 +Choice: 27 1/15 +Choice: 28 1/13 +Choice: 29 1/10 +Choice: 30 1/8 +Choice: 31 1/6 +Choice: 32 1/5 +Choice: 33 1/4 +Choice: 34 1/3 +Choice: 35 10/25 +Choice: 36 1/2 +Choice: 37 10/16 +Choice: 38 10/13 +Choice: 39 1 +Choice: 40 13/10 +Choice: 41 16/10 +Choice: 42 2 +Choice: 43 25/10 +Choice: 44 3 +Choice: 45 4 +Choice: 46 5 +Choice: 47 6 +Choice: 48 8 +Choice: 49 10 +Choice: 50 13 +Choice: 51 15 +Choice: 52 20 +Choice: 53 25 +Choice: 54 30 +Choice: 55 Bulb +Choice: 56 Time +Choice: 57 x 200 +/main/capturesettings/movieshutterspeed +Label: Movie Shutter Speed 2 +Type: RADIO +Current: 1/30 +Choice: 0 1/8000 +Choice: 1 1/6400 +Choice: 2 1/5000 +Choice: 3 1/4000 +Choice: 4 1/3200 +Choice: 5 1/2500 +Choice: 6 1/2000 +Choice: 7 1/1600 +Choice: 8 1/1250 +Choice: 9 1/1000 +Choice: 10 1/800 +Choice: 11 1/640 +Choice: 12 1/500 +Choice: 13 1/400 +Choice: 14 1/320 +Choice: 15 1/250 +Choice: 16 1/200 +Choice: 17 1/160 +Choice: 18 1/125 +Choice: 19 1/100 +Choice: 20 1/80 +Choice: 21 1/60 +Choice: 22 1/50 +Choice: 23 1/40 +Choice: 24 1/30 +/main/capturesettings/focusareawrap +Label: Focus Area Wrap +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/exposuredelaymode +Label: Exposure Delay Mode +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/liveviewaffocus +Label: Live View AF Focus +Type: RADIO +Current: Manual Focus +Choice: 0 Single-servo AF +Choice: 1 Unknown value 0001 +Choice: 2 Manual Focus +/main/capturesettings/filenrsequencing +Label: File Number Sequencing +Type: RADIO +Current: On +Choice: 0 On +Choice: 1 Off +/main/capturesettings/nocfcardrelease +Label: Release without CF card +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/flashexposurecompensation +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -3 +Top: 1 +Step: 0.333333 +/main/capturesettings/bracketing +Label: Bracketing +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/capturesettings/bracketmode +Label: Bracketing +Type: RADIO +Current: Flash/speed +Choice: 0 Flash/speed +Choice: 1 Flash/speed/aperture +Choice: 2 Flash/aperture +Choice: 3 Flash only +/main/capturesettings/evstep +Label: EV Step +Type: RADIO +Current: 1/3 +Choice: 0 1/3 +Choice: 1 1/2 +/main/capturesettings/bracketset +Label: Bracket Set +Type: RADIO +Current: AE & Flash +Choice: 0 AE & Flash +Choice: 1 AE only +Choice: 2 Flash only +Choice: 3 WB bracketing +Choice: 4 ADL bracketing +/main/capturesettings/bracketorder +Label: Bracket Order +Type: RADIO +Current: MTR > Under +Choice: 0 MTR > Under +Choice: 1 Under > MTR +/main/capturesettings/burstnumber +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 65535 +Step: 1 +/main/capturesettings/whitebiaspresetno +Label: White Balance Bias Preset Nr +Type: RADIO +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/capturesettings/whitebiaspreset1 +Label: White Balance Bias Preset 1 +Type: TEXT +Current: 230165216 +/main/capturesettings/whitebiaspreset2 +Label: White Balance Bias Preset 2 +Type: TEXT +Current: 230165216 +/main/capturesettings/whitebiaspreset3 +Label: White Balance Bias Preset 3 +Type: TEXT +Current: 230165216 +/main/capturesettings/whitebiaspreset4 +Label: White Balance Bias Preset 4 +Type: TEXT +Current: 230165216 +/main/capturesettings/centerweightsize +Label: Center Weight Area +Type: RADIO +Current: 8 mm +Choice: 0 6 mm +Choice: 1 8 mm +/main/capturesettings/applicationmode +Label: Application Mode +Type: RADIO +Current: Application Mode 0 +Choice: 0 Application Mode 0 +Choice: 1 Application Mode 1 +/main/capturesettings/microphone +Label: Microphone +Type: RADIO +Current: Auto sensitivity +Choice: 0 Auto sensitivity +Choice: 1 High sensitivity +Choice: 2 Medium sensitivity +Choice: 3 Low sensitivity +Choice: 4 Microphone off +Choice: 5 Unknown value 0005 +/main/capturesettings/autodistortioncontrol +Label: Auto Distortion Control +Type: RADIO +Current: Off +Choice: 0 On +Choice: 1 Off +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 80 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +Choice: 20 21 +Choice: 21 22 +Choice: 22 23 +Choice: 23 24 +Choice: 24 25 +Choice: 25 26 +Choice: 26 27 +Choice: 27 28 +Choice: 28 29 +Choice: 29 30 +Choice: 30 31 +Choice: 31 32 +Choice: 32 33 +Choice: 33 34 +Choice: 34 35 +Choice: 35 36 +Choice: 36 37 +Choice: 37 38 +Choice: 38 39 +Choice: 39 40 +Choice: 40 41 +Choice: 41 42 +Choice: 42 43 +Choice: 43 44 +Choice: 44 45 +Choice: 45 46 +Choice: 46 47 +Choice: 47 48 +Choice: 48 49 +Choice: 49 50 +Choice: 50 51 +Choice: 51 52 +Choice: 52 53 +Choice: 53 54 +Choice: 54 55 +Choice: 55 56 +Choice: 56 57 +Choice: 57 58 +Choice: 58 59 +Choice: 59 60 +Choice: 60 61 +Choice: 61 62 +Choice: 62 63 +Choice: 63 64 +Choice: 64 65 +Choice: 65 66 +Choice: 66 67 +Choice: 67 68 +Choice: 68 69 +Choice: 69 70 +Choice: 70 71 +Choice: 71 72 +Choice: 72 73 +Choice: 73 74 +Choice: 74 75 +Choice: 75 76 +Choice: 76 77 +Choice: 77 78 +Choice: 78 79 +Choice: 79 80 +Choice: 80 81 +Choice: 81 82 +Choice: 82 83 +Choice: 83 84 +Choice: 84 85 +Choice: 85 86 +Choice: 86 87 +Choice: 87 88 +Choice: 88 89 +Choice: 89 90 +Choice: 90 91 +Choice: 91 92 +Choice: 92 93 +Choice: 93 94 +Choice: 94 95 +Choice: 95 96 +Choice: 96 97 +Choice: 97 98 +Choice: 98 99 +Choice: 99 100 +/main/other/5003 +Label: Image Size +Type: MENU +Current: 6192x4128 +Choice: 0 8256x5504 +Choice: 1 6192x4128 +Choice: 2 4128x2752 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 7 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 7 +Choice: 5 32784 +Choice: 6 32785 +Choice: 7 32786 +Choice: 8 32787 +Choice: 9 32790 +/main/other/5007 +Label: F-Number +Type: MENU +Current: 560 +Choice: 0 400 +Choice: 1 450 +Choice: 2 500 +Choice: 3 560 +Choice: 4 630 +Choice: 5 710 +Choice: 6 800 +Choice: 7 900 +Choice: 8 1000 +Choice: 9 1100 +Choice: 10 1300 +Choice: 11 1400 +Choice: 12 1600 +Choice: 13 1800 +Choice: 14 2000 +Choice: 15 2200 +/main/other/5008 +Label: Focal Length +Type: RANGE +Current: 4200 +Bottom: 2400 +Top: 7000 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 32785 +Choice: 3 32787 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 32784 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 2 +Choice: 0 2 +/main/other/500d +Label: Exposure Time +Type: MENU +Current: 25 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 8 +Choice: 7 10 +Choice: 8 12 +Choice: 9 15 +Choice: 10 20 +Choice: 11 25 +Choice: 12 31 +Choice: 13 40 +Choice: 14 50 +Choice: 15 62 +Choice: 16 80 +Choice: 17 100 +Choice: 18 125 +Choice: 19 166 +Choice: 20 200 +Choice: 21 250 +Choice: 22 333 +Choice: 23 400 +Choice: 24 500 +Choice: 25 666 +Choice: 26 769 +Choice: 27 1000 +Choice: 28 1250 +Choice: 29 1666 +Choice: 30 2000 +Choice: 31 2500 +Choice: 32 3333 +Choice: 33 4000 +Choice: 34 5000 +Choice: 35 6250 +Choice: 36 7692 +Choice: 37 10000 +Choice: 38 13000 +Choice: 39 16000 +Choice: 40 20000 +Choice: 41 25000 +Choice: 42 30000 +Choice: 43 40000 +Choice: 44 50000 +Choice: 45 60000 +Choice: 46 80000 +Choice: 47 100000 +Choice: 48 130000 +Choice: 49 150000 +Choice: 50 200000 +Choice: 51 250000 +Choice: 52 300000 +Choice: 53 -1 +Choice: 54 -3 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 32784 +Choice: 5 32848 +Choice: 6 32849 +Choice: 7 32850 +/main/other/500f +Label: Exposure Index (film speed ISO) +Type: MENU +Current: 100 +Choice: 0 32 +Choice: 1 40 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 -5000 +Choice: 1 -4666 +Choice: 2 -4333 +Choice: 3 -4000 +Choice: 4 -3666 +Choice: 5 -3333 +Choice: 6 -3000 +Choice: 7 -2666 +Choice: 8 -2333 +Choice: 9 -2000 +Choice: 10 -1666 +Choice: 11 -1333 +Choice: 12 -1000 +Choice: 13 -666 +Choice: 14 -333 +Choice: 15 0 +Choice: 16 333 +Choice: 17 666 +Choice: 18 1000 +Choice: 19 1333 +Choice: 20 1666 +Choice: 21 2000 +Choice: 22 2333 +Choice: 23 2666 +Choice: 24 3000 +Choice: 25 3333 +Choice: 26 3666 +Choice: 27 4000 +Choice: 28 4333 +Choice: 29 4666 +Choice: 30 5000 +/main/other/5011 +Label: Date & Time +Type: TEXT +Current: 20181111T122606 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32784 +Choice: 3 32785 +Choice: 4 32793 +/main/other/5018 +Label: Burst Number +Type: RANGE +Current: 1 +Bottom: 1 +Top: 65535 +Step: 1 +/main/other/501c +Label: Focus Metering Mode +Type: MENU +Current: 32784 +Choice: 0 32784 +/main/other/501e +Label: Artist +Type: TEXT +Current: +/main/other/501f +Label: Copyright Info +Type: TEXT +Current: +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d015 +Label: Reset Bank 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d016 +Label: Raw Compression +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d017 +Label: Auto White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d018 +Label: Tungsten White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d019 +Label: Fluorescent White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01a +Label: Daylight White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01b +Label: Flash White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01c +Label: Cloudy White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01d +Label: Shady White Balance Bias +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d01e +Label: White Balance Colour Temperature +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d01f +Label: White Balance Preset Number +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d021 +Label: White Balance Preset Name 1 +Type: TEXT +Current: +/main/other/d022 +Label: White Balance Preset Name 2 +Type: TEXT +Current: +/main/other/d023 +Label: White Balance Preset Name 3 +Type: TEXT +Current: +/main/other/d024 +Label: White Balance Preset Name 4 +Type: TEXT +Current: +/main/other/d026 +Label: White Balance Preset Value 1 +Type: TEXT +Current: 230165216 +/main/other/d027 +Label: White Balance Preset Value 2 +Type: TEXT +Current: 230165216 +/main/other/d028 +Label: White Balance Preset Value 3 +Type: TEXT +Current: 230165216 +/main/other/d029 +Label: White Balance Preset Value 4 +Type: TEXT +Current: 230165216 +/main/other/d02e +Label: Lens Focal Length (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +/main/other/d02f +Label: Lens Maximum Aperture (Non CPU) +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +/main/other/d030 +Label: Shooting Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d032 +Label: Color Space +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d034 +Label: Flicker Reduction +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d038 +Label: PTP Property 0xd038 +Type: TEXT +Current: +/main/other/d039 +Label: PTP Property 0xd039 +Type: TEXT +Current: +/main/other/d03a +Label: PTP Property 0xd03a +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d03b +Label: PTP Property 0xd03b +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d03c +Label: PTP Property 0xd03c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03d +Label: PTP Property 0xd03d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d03e +Label: PTP Property 0xd03e +Type: TEXT +Current: 230165216 +/main/other/d03f +Label: PTP Property 0xd03f +Type: TEXT +Current: 230165216 +/main/other/d045 +Label: Reset Menu Bank +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d046 +Label: PTP Property 0xd046 +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +/main/other/d048 +Label: PTP_DPC_NIKON_A1AFCModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d049 +Label: PTP_DPC_NIKON_A2AFSModePriority +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d04f +Label: Focus Area Wrap +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d053 +Label: Enable Copyright +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d054 +Label: Auto ISO +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d056 +Label: Exposure Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d059 +Label: Centre Weight Area +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d05a +Label: Exposure Base Matrix +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05b +Label: Exposure Base Center +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d05c +Label: Exposure Base Spot +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d061 +Label: Live View AF Focus +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 4 +/main/other/d067 +Label: Angle Level +Type: TEXT +Current: 23514322 +/main/other/d068 +Label: Shooting Speed +Type: MENU +Current: 6 +Choice: 0 4 +Choice: 1 5 +Choice: 2 6 +Choice: 3 7 +Choice: 4 8 +/main/other/d069 +Label: Maximum Shots +Type: RANGE +Current: 200 +Bottom: 1 +Top: 200 +Step: 1 +/main/other/d06a +Label: Exposure delay mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d06b +Label: Long Exposure Noise Reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d06c +Label: File Number Sequencing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d070 +Label: High ISO noise reduction +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d072 +Label: Artist Name +Type: TEXT +Current: +/main/other/d073 +Label: Copyright Information +Type: TEXT +Current: +/main/other/d074 +Label: Flash Sync. Speed +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d075 +Label: Flash Shutter Speed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +/main/other/d078 +Label: Bracket Set +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d079 +Label: Manual Mode Bracketing +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d07a +Label: Bracket Order +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d07c +Label: NIKON Auto Bracketing Set +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d07d +Label: PTP Property 0xd07d +Type: TEXT +Current: 23379969 +/main/other/d07e +Label: PTP Property 0xd07e +Type: TEXT +Current: -1 +/main/other/d08a +Label: No CF Card Release +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08d +Label: AF Area Point +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d08f +Label: Clean Image Sensor +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d090 +Label: Image Comment String +Type: TEXT +Current: +/main/other/d091 +Label: Image Comment Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d093 +Label: Manual Set Lens Number +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +/main/other/d09c +Label: PTP Property 0xd09c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d09d +Label: PTP Property 0xd09d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a0 +Label: Movie Screen Size +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +/main/other/d0a2 +Label: Movie Microphone +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0a4 +Label: PTP Property 0xd0a4 +Type: TEXT +Current: 24576 +/main/other/d0a7 +Label: Movie Quality +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0a8 +Label: PTP Property 0xd0a8 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +Choice: 19 20 +/main/other/d0aa +Label: PTP Property 0xd0aa +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ac +Label: PTP Property 0xd0ac +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ad +Label: PTP Property 0xd0ad +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ae +Label: PTP Property 0xd0ae +Type: MENU +Current: 28 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +/main/other/d0af +Label: PTP Property 0xd0af +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0b4 +Label: PTP Property 0xd0b4 +Type: MENU +Current: 100 +Choice: 0 32 +Choice: 1 40 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +/main/other/d0b5 +Label: PTP Property 0xd0b5 +Type: TEXT +Current: 100 +/main/other/d0b6 +Label: PTP Property 0xd0b6 +Type: MENU +Current: 8256x5504 +Choice: 0 8256x5504 +Choice: 1 6192x4128 +Choice: 2 4128x2752 +/main/other/d0b7 +Label: PTP Property 0xd0b7 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0ba +Label: PTP Property 0xd0ba +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0bb +Label: PTP Property 0xd0bb +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0bc +Label: PTP Property 0xd0bc +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d0bd +Label: PTP Property 0xd0bd +Type: TEXT +Current: 0 +/main/other/d0bf +Label: PTP Property 0xd0bf +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c0 +Label: Bracketing Enable +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0c1 +Label: Exposure Bracketing Step +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d0c2 +Label: Exposure Bracketing Program +Type: MENU +Current: 8 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d0c3 +Label: Auto Exposure Bracket Count +Type: MENU +Current: 2 +Choice: 0 1 +/main/other/d0c4 +Label: White Balance Bracket Step +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d0c5 +Label: White Balance Bracket Program +Type: MENU +Current: 8 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +/main/other/d0c6 +Label: PTP Property 0xd0c6 +Type: MENU +Current: 4 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0c7 +Label: PTP Property 0xd0c7 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +/main/other/d0cc +Label: PTP Property 0xd0cc +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e0 +Label: Lens ID +Type: TEXT +Current: 1 +/main/other/d0e1 +Label: Lens Sort +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d0e2 +Label: Lens Type +Type: TEXT +Current: 0 +/main/other/d0e3 +Label: Min. Focal Length +Type: TEXT +Current: 2400 +/main/other/d0e4 +Label: Max. Focal Length +Type: TEXT +Current: 7000 +/main/other/d0e5 +Label: Max. Aperture at Min. Focal Length +Type: TEXT +Current: 400 +/main/other/d0e6 +Label: Max. Aperture at Max. Focal Length +Type: TEXT +Current: 400 +/main/other/d0e7 +Label: PTP Property 0xd0e7 +Type: TEXT +Current: 128 +/main/other/d0f7 +Label: Vignette Control +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d0f8 +Label: Auto Distortion Control +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d0fc +Label: PTP Property 0xd0fc +Type: MENU +Current: 19 +Choice: 0 19 +Choice: 1 20 +Choice: 2 21 +Choice: 3 22 +Choice: 4 23 +/main/other/d100 +Label: Nikon Exposure Time +Type: MENU +Current: 65936 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +Choice: 25 65561 +Choice: 26 65556 +Choice: 27 65551 +Choice: 28 65549 +Choice: 29 65546 +Choice: 30 65544 +Choice: 31 65542 +Choice: 32 65541 +Choice: 33 65540 +Choice: 34 65539 +Choice: 35 655385 +Choice: 36 65538 +Choice: 37 655376 +Choice: 38 655373 +Choice: 39 65537 +Choice: 40 851978 +Choice: 41 1048586 +Choice: 42 131073 +Choice: 43 1638410 +Choice: 44 196609 +Choice: 45 262145 +Choice: 46 327681 +Choice: 47 393217 +Choice: 48 524289 +Choice: 49 655361 +Choice: 50 851969 +Choice: 51 983041 +Choice: 52 1310721 +Choice: 53 1638401 +Choice: 54 1966081 +Choice: 55 -1 +Choice: 56 -3 +Choice: 57 -2 +/main/other/d101 +Label: AC Power +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d102 +Label: Warning Status +Type: TEXT +Current: 0 +/main/other/d104 +Label: AF Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d105 +Label: AE Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d106 +Label: FV Locked +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d109 +Label: Flexible Program +Type: RANGE +Current: 0 +Bottom: -30 +Top: 30 +Step: 2 +/main/other/d10b +Label: Recording Media +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10c +Label: USB Speed +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d10e +Label: Camera Orientation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d112 +Label: TV Lock Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d113 +Label: AV Lock Setting +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d118 +Label: PTP Property 0xd118 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d120 +Label: External Flash Attached +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d121 +Label: External Flash Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d122 +Label: External Flash Sort +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d124 +Label: External Flash Compensation +Type: MENU +Current: 0 +Choice: 0 -18 +Choice: 1 -17 +Choice: 2 -16 +Choice: 3 -15 +Choice: 4 -14 +Choice: 5 -13 +Choice: 6 -12 +Choice: 7 -11 +Choice: 8 -10 +Choice: 9 -9 +Choice: 10 -8 +Choice: 11 -7 +Choice: 12 -6 +Choice: 13 -5 +Choice: 14 -4 +Choice: 15 -3 +Choice: 16 -2 +Choice: 17 -1 +Choice: 18 0 +Choice: 19 1 +Choice: 20 2 +Choice: 21 3 +Choice: 22 4 +Choice: 23 5 +Choice: 24 6 +Choice: 25 7 +Choice: 26 8 +Choice: 27 9 +Choice: 28 10 +Choice: 29 11 +Choice: 30 12 +Choice: 31 13 +Choice: 32 14 +Choice: 33 15 +Choice: 34 16 +Choice: 35 17 +Choice: 36 18 +/main/other/d125 +Label: External Flash Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +/main/other/d126 +Label: Flash Exposure Compensation +Type: RANGE +Current: 0 +Bottom: -18 +Top: 6 +Step: 2 +/main/other/d12d +Label: PTP Property 0xd12d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d12e +Label: PTP Property 0xd12e +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d130 +Label: HDR Mode +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d131 +Label: HDR High Dynamic +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d132 +Label: HDR Smoothing +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d133 +Label: PTP Property 0xd133 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d138 +Label: PTP Property 0xd138 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d141 +Label: PTP Property 0xd141 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d149 +Label: Raw Bit Mode +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d14e +Label: Active D-Lighting +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d14f +Label: Flourescent Type +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d150 +Label: Tune Colour Temperature +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +/main/other/d152 +Label: Tune Preset 1 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d153 +Label: Tune Preset 2 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d154 +Label: Tune Preset 3 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d155 +Label: Tune Preset 4 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d158 +Label: PTP Property 0xd158 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d159 +Label: PTP Property 0xd159 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15a +Label: PTP Property 0xd15a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15b +Label: PTP Property 0xd15b +Type: RANGE +Current: 100 +Bottom: 100 +Top: 999 +Step: 1 +/main/other/d15c +Label: PTP Property 0xd15c +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15d +Label: PTP Property 0xd15d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d15e +Label: PTP Property 0xd15e +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d164 +Label: Auto ISO P/A/DVP Setting +Type: MENU +Current: 52 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +/main/other/d16a +Label: ISO Auto +Type: MENU +Current: 1 +Choice: 0 1 +/main/other/d17a +Label: PTP Property 0xd17a +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d17b +Label: PTP Property 0xd17b +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d17c +Label: PTP Property 0xd17c +Type: MENU +Current: 0 +Choice: 0 -5 +Choice: 1 -4 +Choice: 2 -3 +Choice: 3 -2 +Choice: 4 -1 +Choice: 5 0 +Choice: 6 1 +Choice: 7 2 +Choice: 8 3 +Choice: 9 4 +Choice: 10 5 +/main/other/d17d +Label: PTP Property 0xd17d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d17e +Label: PTP Property 0xd17e +Type: MENU +Current: 4 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +/main/other/d183 +Label: ISO Auto High Limit +Type: MENU +Current: 32 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +/main/other/d197 +Label: PTP Property 0xd197 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d199 +Label: PTP Property 0xd199 +Type: MENU +Current: 38 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +/main/other/d1a2 +Label: Live View Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a4 +Label: Live View Prohibit Condition +Type: TEXT +Current: 0 +/main/other/d1a6 +Label: PTP Property 0xd1a6 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1a8 +Label: PTP Property 0xd1a8 +Type: MENU +Current: 65566 +Choice: 0 73536 +Choice: 1 71936 +Choice: 2 70536 +Choice: 3 69536 +Choice: 4 68736 +Choice: 5 68036 +Choice: 6 67536 +Choice: 7 67136 +Choice: 8 66786 +Choice: 9 66536 +Choice: 10 66336 +Choice: 11 66176 +Choice: 12 66036 +Choice: 13 65936 +Choice: 14 65856 +Choice: 15 65786 +Choice: 16 65736 +Choice: 17 65696 +Choice: 18 65661 +Choice: 19 65636 +Choice: 20 65616 +Choice: 21 65596 +Choice: 22 65586 +Choice: 23 65576 +Choice: 24 65566 +/main/other/d1a9 +Label: PTP Property 0xd1a9 +Type: MENU +Current: 0 +Choice: 0 0 +/main/other/d1aa +Label: PTP Property 0xd1aa +Type: MENU +Current: 6400 +Choice: 0 64 +Choice: 1 80 +Choice: 2 100 +Choice: 3 125 +Choice: 4 160 +Choice: 5 200 +Choice: 6 250 +Choice: 7 320 +Choice: 8 400 +Choice: 9 500 +Choice: 10 640 +Choice: 11 800 +Choice: 12 1000 +Choice: 13 1250 +Choice: 14 1600 +Choice: 15 2000 +Choice: 16 2500 +Choice: 17 3200 +Choice: 18 4000 +Choice: 19 5000 +Choice: 20 6400 +Choice: 21 8000 +Choice: 22 10000 +Choice: 23 12800 +Choice: 24 16000 +Choice: 25 20000 +Choice: 26 25600 +Choice: 27 32000 +Choice: 28 40000 +Choice: 29 51200 +Choice: 30 102400 +/main/other/d1ab +Label: PTP Property 0xd1ab +Type: MENU +Current: 0 +Choice: 0 -3000 +Choice: 1 -2666 +Choice: 2 -2333 +Choice: 3 -2000 +Choice: 4 -1666 +Choice: 5 -1333 +Choice: 6 -1000 +Choice: 7 -666 +Choice: 8 -333 +Choice: 9 0 +Choice: 10 333 +Choice: 11 666 +Choice: 12 1000 +Choice: 13 1333 +Choice: 14 1666 +Choice: 15 2000 +Choice: 16 2333 +Choice: 17 2666 +Choice: 18 3000 +/main/other/d1ac +Label: PTP Property 0xd1ac +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d1ad +Label: PTP Property 0xd1ad +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1af +Label: PTP Property 0xd1af +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 32784 +/main/other/d1b0 +Label: Exposure Display Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1b1 +Label: Exposure Indicate Status +Type: MENU +Current: -12 +Choice: 0 -60 +Choice: 1 -59 +Choice: 2 -58 +Choice: 3 -57 +Choice: 4 -56 +Choice: 5 -55 +Choice: 6 -54 +Choice: 7 -53 +Choice: 8 -52 +Choice: 9 -51 +Choice: 10 -50 +Choice: 11 -49 +Choice: 12 -48 +Choice: 13 -47 +Choice: 14 -46 +Choice: 15 -45 +Choice: 16 -44 +Choice: 17 -43 +Choice: 18 -42 +Choice: 19 -41 +Choice: 20 -40 +Choice: 21 -39 +Choice: 22 -38 +Choice: 23 -37 +Choice: 24 -36 +Choice: 25 -35 +Choice: 26 -34 +Choice: 27 -33 +Choice: 28 -32 +Choice: 29 -31 +Choice: 30 -30 +Choice: 31 -29 +Choice: 32 -28 +Choice: 33 -27 +Choice: 34 -26 +Choice: 35 -25 +Choice: 36 -24 +Choice: 37 -23 +Choice: 38 -22 +Choice: 39 -21 +Choice: 40 -20 +Choice: 41 -19 +Choice: 42 -18 +Choice: 43 -17 +Choice: 44 -16 +Choice: 45 -15 +Choice: 46 -14 +Choice: 47 -13 +Choice: 48 -12 +Choice: 49 -11 +Choice: 50 -10 +Choice: 51 -9 +Choice: 52 -8 +Choice: 53 -7 +Choice: 54 -6 +Choice: 55 -5 +Choice: 56 -4 +Choice: 57 -3 +Choice: 58 -2 +Choice: 59 -1 +Choice: 60 0 +Choice: 61 1 +Choice: 62 2 +Choice: 63 3 +Choice: 64 4 +Choice: 65 5 +Choice: 66 6 +Choice: 67 7 +Choice: 68 8 +Choice: 69 9 +Choice: 70 10 +Choice: 71 11 +Choice: 72 12 +Choice: 73 13 +Choice: 74 14 +Choice: 75 15 +Choice: 76 16 +Choice: 77 17 +Choice: 78 18 +Choice: 79 19 +Choice: 80 20 +Choice: 81 21 +Choice: 82 22 +Choice: 83 23 +Choice: 84 24 +Choice: 85 25 +Choice: 86 26 +Choice: 87 27 +Choice: 88 28 +Choice: 89 29 +Choice: 90 30 +Choice: 91 31 +Choice: 92 32 +Choice: 93 33 +Choice: 94 34 +Choice: 95 35 +Choice: 96 36 +Choice: 97 37 +Choice: 98 38 +Choice: 99 39 +Choice: 100 40 +Choice: 101 41 +Choice: 102 42 +Choice: 103 43 +Choice: 104 44 +Choice: 105 45 +Choice: 106 46 +Choice: 107 47 +Choice: 108 48 +Choice: 109 49 +Choice: 110 50 +Choice: 111 51 +Choice: 112 52 +Choice: 113 53 +Choice: 114 54 +Choice: 115 55 +Choice: 116 56 +Choice: 117 57 +Choice: 118 58 +Choice: 119 59 +Choice: 120 60 +/main/other/d1b2 +Label: Info Display Error Status +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b3 +Label: Exposure Indicate Lightup +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b4 +Label: PTP Property 0xd1b4 +Type: RANGE +Current: 12 +Bottom: 0 +Top: 360 +Step: 1 +/main/other/d1b7 +Label: PTP Property 0xd1b7 +Type: MENU +Current: 12 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +/main/other/d1b8 +Label: PTP Property 0xd1b8 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d1b9 +Label: PTP Property 0xd1b9 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d1bb +Label: PTP Property 0xd1bb +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1bc +Label: PTP Property 0xd1bc +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d1bd +Label: PTP Property 0xd1bd +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 512 +Choice: 2 1024 +Choice: 3 2048 +/main/other/d1de +Label: PTP Property 0xd1de +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1df +Label: PTP Property 0xd1df +Type: MENU +Current: 255 +Choice: 0 180 +Choice: 1 191 +Choice: 2 202 +Choice: 3 213 +Choice: 4 224 +Choice: 5 235 +Choice: 6 248 +Choice: 7 255 +/main/other/d1e2 +Label: PTP Property 0xd1e2 +Type: MENU +Current: 0 +/main/other/d1e3 +Label: PTP Property 0xd1e3 +Type: MENU +Current: 0 +/main/other/d1e4 +Label: PTP Property 0xd1e4 +Type: TEXT +Current: 0 +/main/other/d1e5 +Label: PTP Property 0xd1e5 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1e6 +Label: PTP Property 0xd1e6 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 9999 +Step: 1 +/main/other/d1e7 +Label: PTP Property 0xd1e7 +Type: TEXT +Current: 0 +/main/other/d1e8 +Label: PTP Property 0xd1e8 +Type: MENU +Current: 255 +Choice: 0 255 +/main/other/d1e9 +Label: PTP Property 0xd1e9 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1ea +Label: PTP Property 0xd1ea +Type: TEXT +Current: 1 +/main/other/d1ec +Label: PTP Property 0xd1ec +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1ed +Label: PTP Property 0xd1ed +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f0 +Label: PTP Property 0xd1f0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1f1 +Label: PTP Property 0xd1f1 +Type: RANGE +Current: 654 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d1f4 +Label: PTP Property 0xd1f4 +Type: MENU +Current: 0 +Choice: 0 -2 +Choice: 1 -1 +Choice: 2 0 +Choice: 3 1 +Choice: 4 2 +/main/other/d1f8 +Label: PTP Property 0xd1f8 +Type: MENU +Current: 32784 +Choice: 0 32784 +Choice: 1 32785 +Choice: 2 32792 +Choice: 3 32793 +/main/other/d1f9 +Label: PTP Property 0xd1f9 +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 100 +/main/other/d1fa +Label: PTP Property 0xd1fa +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 4 +/main/other/d1fb +Label: PTP Property 0xd1fb +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d1fc +Label: PTP Property 0xd1fc +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d1fd +Label: PTP Property 0xd1fd +Type: TEXT +Current: (null) +/main/other/d1fe +Label: PTP Property 0xd1fe +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d200 +Label: Active Pic Ctrl Item +Type: MENU +Current: 8 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 101 +Choice: 9 102 +Choice: 10 103 +Choice: 11 104 +Choice: 12 105 +Choice: 13 106 +Choice: 14 107 +Choice: 15 108 +Choice: 16 109 +Choice: 17 110 +Choice: 18 111 +Choice: 19 112 +Choice: 20 113 +Choice: 21 114 +Choice: 22 115 +Choice: 23 116 +Choice: 24 117 +Choice: 25 118 +Choice: 26 119 +Choice: 27 120 +Choice: 28 201 +Choice: 29 202 +Choice: 30 203 +Choice: 31 204 +Choice: 32 205 +Choice: 33 206 +Choice: 34 207 +Choice: 35 208 +Choice: 36 209 +/main/other/d20d +Label: PTP Property 0xd20d +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d20f +Label: PTP Property 0xd20f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d211 +Label: PTP Property 0xd211 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d212 +Label: PTP Property 0xd212 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d213 +Label: PTP Property 0xd213 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d214 +Label: PTP Property 0xd214 +Type: MENU +Current: 3 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +/main/other/d215 +Label: PTP Property 0xd215 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d216 +Label: PTP Property 0xd216 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d219 +Label: PTP Property 0xd219 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d21a +Label: PTP Property 0xd21a +Type: RANGE +Current: 5000 +Bottom: 2500 +Top: 10000 +Step: 10 +/main/other/d21b +Label: PTP Property 0xd21b +Type: MENU +Current: 24 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +/main/other/d21c +Label: PTP Property 0xd21c +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +/main/other/d21d +Label: PTP Property 0xd21d +Type: TEXT +Current: +/main/other/d21e +Label: PTP Property 0xd21e +Type: TEXT +Current: +/main/other/d21f +Label: PTP Property 0xd21f +Type: TEXT +Current: +/main/other/d220 +Label: PTP Property 0xd220 +Type: TEXT +Current: +/main/other/d221 +Label: PTP Property 0xd221 +Type: TEXT +Current: +/main/other/d222 +Label: PTP Property 0xd222 +Type: TEXT +Current: +/main/other/d223 +Label: PTP Property 0xd223 +Type: TEXT +Current: 230165216 +/main/other/d224 +Label: PTP Property 0xd224 +Type: TEXT +Current: 230165216 +/main/other/d225 +Label: PTP Property 0xd225 +Type: TEXT +Current: 230165216 +/main/other/d226 +Label: PTP Property 0xd226 +Type: TEXT +Current: 230165216 +/main/other/d227 +Label: PTP Property 0xd227 +Type: TEXT +Current: 230165216 +/main/other/d228 +Label: PTP Property 0xd228 +Type: TEXT +Current: 230165216 +/main/other/d229 +Label: PTP Property 0xd229 +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22a +Label: PTP Property 0xd22a +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22b +Label: PTP Property 0xd22b +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22c +Label: PTP Property 0xd22c +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22d +Label: PTP Property 0xd22d +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22e +Label: PTP Property 0xd22e +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d22f +Label: PTP Property 0xd22f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d230 +Label: PTP Property 0xd230 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d231 +Label: PTP Property 0xd231 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d232 +Label: PTP Property 0xd232 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d233 +Label: PTP Property 0xd233 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d234 +Label: PTP Property 0xd234 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d235 +Label: PTP Property 0xd235 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d236 +Label: PTP Property 0xd236 +Type: MENU +Current: 2 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +/main/other/d237 +Label: PTP Property 0xd237 +Type: MENU +Current: 100 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 100 +Choice: 9 101 +Choice: 10 102 +Choice: 11 103 +Choice: 12 104 +Choice: 13 105 +Choice: 14 106 +Choice: 15 107 +Choice: 16 108 +Choice: 17 109 +Choice: 18 110 +Choice: 19 111 +Choice: 20 112 +Choice: 21 113 +Choice: 22 114 +Choice: 23 115 +Choice: 24 116 +Choice: 25 117 +Choice: 26 118 +Choice: 27 119 +Choice: 28 120 +Choice: 29 201 +Choice: 30 202 +Choice: 31 203 +Choice: 32 204 +Choice: 33 205 +Choice: 34 206 +Choice: 35 207 +Choice: 36 208 +Choice: 37 209 +/main/other/d239 +Label: PTP Property 0xd239 +Type: MENU +Current: 0 +Choice: 0 -6 +Choice: 1 -5 +Choice: 2 -4 +Choice: 3 -3 +Choice: 4 -2 +Choice: 5 -1 +Choice: 6 0 +Choice: 7 1 +Choice: 8 2 +Choice: 9 3 +Choice: 10 4 +Choice: 11 5 +Choice: 12 6 +/main/other/d23a +Label: PTP Property 0xd23a +Type: MENU +Current: 32789 +Choice: 0 2 +Choice: 1 4 +Choice: 2 5 +Choice: 3 6 +Choice: 4 32784 +Choice: 5 32785 +Choice: 6 32786 +Choice: 7 32787 +Choice: 8 32789 +Choice: 9 32790 +/main/other/d23b +Label: PTP Property 0xd23b +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +/main/other/d23c +Label: PTP Property 0xd23c +Type: RANGE +Current: 612 +Bottom: 0 +Top: 1224 +Step: 1 +/main/other/d23d +Label: PTP Property 0xd23d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d23e +Label: PTP Property 0xd23e +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 100 +/main/other/d23f +Label: PTP Property 0xd23f +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d314 +Label: PTP Property 0xd314 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nokia-3110c.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nokia-3110c.txt new file mode 100644 index 00000000..f00c4c5f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nokia-3110c.txt @@ -0,0 +1,52 @@ +Device info: +Manufacturer: Nokia + model: Nokia 3110c + serial number: '00000000000000000000000PBnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com:1.0;microsoft.com/WMPPD: 11.0;microsoft.com/WMDRMPD: 10.1 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x101b + 0x1014 + 0x1015 + 0x1016 + 0x9801 + 0x9802 + 0x9803 + 0x9804 + 0x9810 + 0x9811 + 0x9201 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b +Events Supported: + 0x4009 + 0x4003 + 0x4002 + 0x400c +Device Properties Supported: + 0xd401 + 0xd402 + 0xd101 + 0xd102 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nokia-5200.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nokia-5200.txt new file mode 100644 index 00000000..7f731dd9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nokia-5200.txt @@ -0,0 +1,53 @@ +Sommario della fotocamera: +Manufacturer: Nokia +Model: Nokia 5200 + Version: (null) + Serial Number: 00000000000000000000000DAKnnnnnn +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: microsoft.com:1.0;microsoft.com/WMPPD: 11.0;microsoft.com/WMDRMPD: 10.1 +Functional Mode: 0x8000 + +Capture Formats: +Display Formats: JPEG, Script, Undefined Type, Association/Directory, Text, HTML, MS Wave, MP3, BMP, GIF, JFIF, PNG, Unknown(b004), WMA, AAC, Abstract Audio Video Playlist, M3U Playlist, vCard2, vCard3, vCalendar1 +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + Text/3004: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + HTML/3005: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + MP3/3009: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + BMP/3804: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + GIF/3807: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + PNG/380b: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + Unknown(b004)/b004: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + WMA/b901: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + AAC/b903: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + Abstract Audio Video Playlist/ba05: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + M3U Playlist/ba11: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + vCard2/bb82: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + vCard3/bb83: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + vCalendar1/be02: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Scheda + VolumeLabel: None + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 1014743040 (967 MB) + Free Space (Bytes): 704708608 (672 MB) + Free Space (Images): -1 + +Device Property Summary: +Synchronization Partner(0xd401):(readwrite) (type=0xffff) MICROSOFT MEDIAPLAYER ('MICROSOFT MEDIAPLAYER') +Friendly Device Name(0xd402):(readwrite) (type=0xffff) NOKIA ('NOKIA') +Secure Time(0xd101):(read only) (type=0x4004) ... +Device Certificate(0xd102):(read only) (type=0x4004) ... diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nokia-808-pureview.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nokia-808-pureview.txt new file mode 100644 index 00000000..05b187be --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/nokia-808-pureview.txt @@ -0,0 +1,294 @@ +Résumé de l'appareil : +Fabricant : Nokia +Modèle: 808 PureView +Version : 113.010.1508 + Numéro de série : nnnnnnnnnnnnnnn +Identifiant du vendeur: 0x6 (1.0) +Description du vendeur: microsoft.com/WMPPD: 11.0; vodafone.com/omadrmv2: 1.0; microsoft.com/DeviceServices: 1.0; microsoft.com: 1.0; microsoft.com/WMPPD: 10.0; microsoft.com/WMDRMPD:10.1; + +Format de capture: Undefined Type Association/Directory MP4 3GP AAC MP3 WMA MS Wave WMV ASF Abstract Audio Video Playlist M3U Playlist Script Text HTML JPEG BMP GIF PNG Abstract Audio Album Microsoft Word Document Microsoft Excel Spreadsheet (.xls) Microsoft Powerpoint (.ppt) +Formats d'affichageUndefined Type, Association/Directory, MP4, 3GP, AAC, MP3, WMA, MS Wave, WMV, ASF, Abstract Audio Video Playlist, M3U Playlist, Script, Text, HTML, JPEG, BMP, GIF, PNG, Abstract Audio Album, Microsoft Word Document, Microsoft Excel Spreadsheet (.xls), Microsoft Powerpoint (.ppt) +Propriété du support MTP de l'objet: + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc0d/Hidden + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc0d/Hidden dc05/AssociationType dc06/AssociationDesc + MP4/b982: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified dc46/Artist dc8b/Track dc8c/Genre dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc9b/AlbumArtist dc89/Duration dc99/OriginalReleaseDate dc48/Description dc96/Composer dc9d/DRMStatus db01/unknown(db01) dc87/Width dc88/Height de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + 3GP/b984: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified dc46/Artist dc8b/Track dc8c/Genre dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc9b/AlbumArtist dc89/Duration dc99/OriginalReleaseDate dc48/Description dc96/Composer dc9d/DRMStatus db01/unknown(db01) + AAC/b903: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified dc46/Artist dc8b/Track dc8c/Genre dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc9b/AlbumArtist dc89/Duration dc99/OriginalReleaseDate dc48/Description dc96/Composer dc9d/DRMStatus db01/unknown(db01) + MP3/3009: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified dc46/Artist dc8b/Track dc8c/Genre dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc9b/AlbumArtist dc89/Duration dc99/OriginalReleaseDate dc48/Description dc96/Composer dc9d/DRMStatus db01/unknown(db01) + WMA/b901: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified dc46/Artist dc8b/Track dc8c/Genre dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc9b/AlbumArtist dc89/Duration dc99/OriginalReleaseDate dc48/Description dc96/Composer dc9d/DRMStatus db01/unknown(db01) + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified dc46/Artist dc8b/Track dc8c/Genre dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc9b/AlbumArtist dc89/Duration dc99/OriginalReleaseDate dc48/Description dc96/Composer dc9d/DRMStatus db01/unknown(db01) + WMV/b981: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dc89/Duration dc8c/Genre de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile dc94/ParentalRating dc9d/DRMStatus db01/unknown(db01) + ASF/300c: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dc89/Duration dc8c/Genre de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile dc94/ParentalRating dc9d/DRMStatus db01/unknown(db01) + Abstract Audio Video Playlist/ba05: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified + M3U Playlist/ba11: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified + Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc0d/Hidden + Text/3004: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc0d/Hidden + HTML/3005: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc0d/Hidden + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc04/ObjectSize dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc4f/NonConsumable dc0d/Hidden + BMP/3804: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc04/ObjectSize dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc4f/NonConsumable dc0d/Hidden + GIF/3807: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc04/ObjectSize dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc4f/NonConsumable dc0d/Hidden + PNG/380b: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc04/ObjectSize dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc4f/NonConsumable dc0d/Hidden + Abstract Audio Album/ba03: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc4e/DateAdded dc08/DateCreated dc09/DateModified dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc9b/AlbumArtist + Microsoft Word Document/ba83: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc0d/Hidden + Microsoft Excel Spreadsheet (.xls)/ba85: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc0d/Hidden + Microsoft Powerpoint (.ppt)/ba86: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc4f/NonConsumable dc0d/Hidden + +Capacités de l'appareil photo: + Fichier téléchargé, Fichier supprimé,Fichier envoyé + Pas d'image capturé,Pas de capture possible,Impossible obtenir les spécifications de capture du vendeur + +Résumé du dispositifs de stockage: +store_00020001: + Description du stockage: Mass memory + Nom de volume: 00020001-XXXXXXXX + Type de stockage: RAM intégrée + Système de fichiers: Stockage hiérarchique + Capacité d'accès: Lecture-Écriture + Capacité maximale: 14810087424 (14124 MO) + Espace mémoire libre (en Octets): 6318620672 (6025 MO) + Espace mémoire libre (en nombre d'images) : -1 +store_00010001: + Description du stockage: Phone memory + Nom de volume: 00010001-XXXXXXXX + Type de stockage: ROM intégrée + Système de fichiers: Stockage hiérarchique + Capacité d'accès: Lecture seule + Capacité maximale: 642805760 (613 MO) + Espace mémoire libre (en Octets): 0 (0 MO) + Espace mémoire libre (en nombre d'images) : -1 +store_00030001: + Description du stockage: SD Card 808 + Nom de volume: 00030001-XXXXXXXX-SD Card 808 + Type de stockage: RAM amovible (alias: carte mémoire) + Système de fichiers: Stockage hiérarchique + Capacité d'accès: Lecture-Écriture + Capacité maximale: 31902367744 (30424 MO) + Espace mémoire libre (en Octets): 3050602496 (2909 MO) + Espace mémoire libre (en nombre d'images) : -1 + +Résumé des propriétés de l'appareil: +Niveau de batterie(0x5001):(read only) (type=0x2) Range [0 - 100, step 10] value: 100% (100) +Date & heure(0x5011):(readwrite) (type=0xffff) '20130720T164042Z' +Certification du périphérique(0xd102):(read only) (type=0x4004) vFsAgP/7fEC0hgTuZ6i68FK3kGk=VsQaT4C8N/zZBZtcRmJfu7/BXxYlYSXLJf2NUod6P53YduTP9teIBA==06Q8qcX7XS/xyY0kdFenvxcZsDA=8yZwvXLy1V1S2JvQXL/eFm6AQAulsRnx7p+1AMtOamQ1z8YwBuS4UA==/tBujkYeL+wptU2qkRE6WfxoFaw=2.4.121.143VsQaT4C8N/zZBZtcRmJfu7/BXxYlYSXLJf2NUod6P53YduTP9teIBAIEeY+viAkMbNlC9nZrSYIIknvWJ+1mMbkplSJdI2LikNjkon9J5zDtbhMZNokia 808 + Nokia + Nokia + Nokia + RM-807 + 2000 + 1 + 0 + 1 + 0 + + 1 + 1 + 1 + 1 + 1 + 1 + + + 2 + 10240 + 5120 + ft3+NF5g3OTRZs3PzAmx03DhE2qdzBQPr5UxRjwH3ttzZsWQXCaXTA==yZZmHgzmhpwcjt6bZufkKrNbpiQb122k28eCMgsxRDQvKizLm8DjLg==20005359868vU9FOMK7y6PxIuVseOiqEsx/bQ7/aPV6uBXhFI12l+LGKWWLYEQ==QYYOy+Nw8l4vu2/TGJp7YRUVq0o44izpNzHHpHmKGDqklWInClG/Kg==1a1t3hxrg!qbOgktnbYaEEi4teCse!gz6RvTPuC!zizKJlpU7xoduSw==IHORBxl26IqWigUC8XawnTvr6HABENy6kvnBjczQIMnDXQM0ckVFSA==, please run +gphoto2 as follows: + + env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt +--capture-image + +Please make sure there is sufficient quoting around the arguments. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/olympus-x450 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/olympus-x450 new file mode 100644 index 00000000..f4ee74eb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/olympus-x450 @@ -0,0 +1,26 @@ +Generic PictBridge only.... + +Device info: +Manufacturer: OLYMPUS CORPORATION + model: X450,D535Z,C370Z + device version: 1.00 + serial number: '(null)' +Vendor extension ID: 0x00000000 +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b +Events Supported: + 0x4009 +Device Properties Supported: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/olympus-x925.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/olympus-x925.txt new file mode 100644 index 00000000..f0af28b3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/olympus-x925.txt @@ -0,0 +1,77 @@ +Device info: +Manufacturer: OLYMPUS + Model: FE4000,X920,X925 + device version: 1.00 + serial number: 'UXXXXXXXX' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x100f + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4004 + 0x4005 + 0x4009 +Device Properties Supported: + 0x5001 + 0x5011 + 0xd405 + 0xd407 + +Kamerazusammenfassung: +Hersteller: OLYMPUS +Modell: FE4000,X920,X925 + Version: 1.00 + Seriennummer: UXXXXXXXX +Vendor Extension ID: 0x6 (1.0) + +Aufnahmeformate: JPEG MS AVI DPOF Association/Directory MS Wave +Anzeigeformate: JPEG, MS AVI, DPOF, Association/Directory, MS Wave +Unterstützte MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, kein Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: Keine + Speichertyp: Eingebauter Speicher + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 20135936 (19 MB) + Freier Platz (Bytes): 13516800 (12 MB) + Freier Speicher (Bilder): -1 + +Properties des Geräts: +Batterie Ladezustand(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 100% (100) +Datum und Zeit(0x5011):(readwrite) (type=0xffff) '20100306T220357' +Geräte Icon(0xd405):(read only) (type=0x4002) +Perceived Device Type(0xd407):(read only) (type=0x6) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/panasonic-dmc-fz20.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/panasonic-dmc-fz20.txt new file mode 100644 index 00000000..76732eb4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/panasonic-dmc-fz20.txt @@ -0,0 +1,46 @@ +Manufacturer: MATSUSHITA + device version: 1.0 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b +Events Supported: + 0x4004 + 0x4005 + 0x4008 + 0x4009 +Device Properties Supported: + +Camera summary: +Manufacturer: MATSUSHITA + Version: 1.0 + +Capture Formats: +Display Formats: Association/Directory, Script, DPOF, Apple Quicktime, JPEG, TIFF + +Device Capabilities: + File Download, No File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1030225920 (982 MB) + Free Space (Bytes): 125698048 (119 MB) + Free Space (Images): 0 + +Device Property Summary: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/panasonic-dmc-gh4.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/panasonic-dmc-gh4.txt new file mode 100644 index 00000000..a9402883 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/panasonic-dmc-gh4.txt @@ -0,0 +1,100 @@ +Camera summary: +Manufacturer: Panasonic +Model: DMC-GH4 + Version: 2.2 + Serial Number: 0000000000000000001Xnnnnnnnnnn +Vendor Extension ID: 0x6 (1.0) + +Capture Formats: +Display Formats: Association/Directory, DPOF, Apple Quicktime, Defined Type, JPEG +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc05/AssociationType dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, File Deletion, No File Upload + Generic Image Capture, Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 128025886720 (122095 MB) + Free Space (Bytes): 127919587328 (121993 MB) + Free Space (Images): 0 + +Device Property Summary: +Session Initiator Info(0xd406):(readwrite) (type=0xffff) 'Windows/6.2.9200 MTPClassDriver/6.2.9200.16384' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +F-Number(0x5007):(readwrite) (type=0x4) Enumeration [3500,3500,3500,3500,3500,3500,3500,3500,3500,3500,3500,3500,3200,2900,2500,2200,2000,1800,1600,1400,1300,1100,1000,900,800,710,630,560,500,450,400,350,320,280,250,220,200,180,160,140,120,110,100,3500,3500,3500,3500,3500] value: f/8 (800) +Focus Mode(0x500a):(read only) (type=0x4) Enumeration [2,53253,53252,1] value: Automatic (2) +Exposure Time(0x500d):(readwrite) (type=0x6) Enumeration [4294967295,600000,500000,400000,300000,250000,200000,150000,130000,100000,80000,60000,50000,40000,32000,25000,20000,16000,13000,10000,7692,6250,5000,4000,3125,2500,2000,1666,1250,1000,769,666,500,400,333,250,200,166,125,100,80,62,50,40,31,25,20,15,12,10,7,6,5,4,3,2,2,1,1,40,40,40] value: 1e-05 sec (1) +Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [2,3,4,1,53256,53256,53257,53257,53257,53257,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504,53504] value: M (1) +Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [65535,53249,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600] value: ISO 100 (100) +Still Capture Mode(0x5013):(read only) (type=0x4) Enumeration [0,1,2,53252,53253,3] value: Single Shot (1) +Property 0xd001:(readwrite) (type=0x6) Enumeration [4294967295,2147543648,2147533648,2147523648,2147513648,2147508648,2147503648,2147498648,2147496648,2147493648,2147491648,2147489648,2147488648,2147487648,2147486848,2147486148,2147485648,2147485248,2147484948,2147484648,1300,1600,2000,2500,3200,4000,5000,6000,8000,10000,13000,15000,20000,25000,30000,40000,50000,60000,80000,100000,125000,160000,200000,250000,320000,400000,500000,640000,800000,1000000,1300000,1600000,2000000,2500000,3200000,4000000,5000000,6400000,8000000,10000000,13000000,16000000] value: 8000000 +Property 0xd002:(read only) (type=0x4) Enumeration [1,2] value: 1 +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 10] value: 20% (20) + +Device info: +Manufacturer: Panasonic + Model: DMC-GH4 + device version: 2.2 + serial number: '0000000000000000001Xnnnnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100e (Initiate capture) + 0x101c (Initiate open capture) + 0x1018 (Terminate open capture) + 0x100f (Format storage) + 0x1010 (Reset device) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x9801 (Get object properties supported) + 0x9802 (Get object property description) + 0x9803 (Get object property value) + 0x9805 (Get object property list) +Events Supported: + 0x4004 + 0x4005 + 0x4002 + 0x400d + 0x4006 + 0x4008 + 0x4009 + 0x400c +Device Properties Supported: + 0xd406 + 0xd407 + 0x5007 + 0x500a + 0x500d + 0x500e + 0x500f + 0x5013 + 0xd001 + 0xd002 + 0x5001 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/panasonic-gh5.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/panasonic-gh5.txt new file mode 100644 index 00000000..dab6b6cd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/panasonic-gh5.txt @@ -0,0 +1,953 @@ +Camera summary: +Manufacturer: Panasonic +Model: DC-GH5 + Version: 2.3 + Serial Number: 000000000000000000XGRnnnnnnnnnn +Vendor Extension ID: 0x1c (1.0) + +Capture Formats: +Display Formats: Association/Directory, DPOF, Apple Quicktime, Defined Type, JPEG + +Device Capabilities: + File Download, File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 75% (75) + +Device info: +Manufacturer: Panasonic + Model: DC-GH5 + device version: 2.3 + serial number: '000000000000000000XGRnnnnnnnnnn' +Vendor extension ID: 0x0000001c +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100f (Format storage) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x9102 (Get secure time response) + 0x9103 (Set license response) + 0x9104 (Get sync list) + 0x9402 (Unknown PTP_OC) + 0x9403 (Unknown PTP_OC) + 0x9108 (Clean data store) + 0x9404 (Unknown PTP_OC) + 0x9412 (Unknown PTP_OC) + 0x9706 (Unknown PTP_OC) +Events Supported: + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4006 (DevicePropChanged) + 0x4008 (DeviceInfoChanged) + 0x400c (StorageInfoChanged) + 0xc108 (Unknown Event) + 0xc109 (Unknown Event) + 0xc101 (Unknown Event) + 0xc102 (Unknown Event) + 0xc103 (Unknown Event) + 0xc104 (Unknown Event) + 0xc106 (Unknown Event) + 0xc107 (Unknown Event) + 0xc201 (Unknown Event) + 0xc202 (Unknown Event) + 0xc212 (Unknown Event) +Device Properties Supported: + 0x5001 (Battery Level) + +0x02000010-9108.log +0000 40 01 00 00 02 00 07 91-04 00 00 00 + + 10 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 0a 00 00 00 52 03 00 00 + 11 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 48 00 00 00 + 12 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 3c 00 00 00 + 13 00 00 02 14 00 00 00-14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00-3c 00 00 00 + 14 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 3c 00 00 00 + 15 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 3c 00 00 00 + 16 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 30 00 00 00 + 17 00 00 02 14 00 00 00-14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00-3c 00 00 00 + 18 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 2e 00 00 00 + 19 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 2c 00 00 00 + 1a 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 3c 00 00 00 + +0000 48 03 00 00 02 00 08 91-05 00 00 00 + 10 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 0a 00 00 00 20 03 00 00 + 11 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 44 00 00 00 + 01 00 00 00-3c 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 01 00 0f 00-00 00 00 00 01 00 02 00 03 00 04 00 05 00 06 00-07 00 08 00 0b 00 0c 00 0d 00 0e 00 0f 00 11 00 + 12 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 3c 00 00 00 + 01 00 00 00-34 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 00 00 0b 00-00 00 05 80 04 80 03 80 02 80 01 80 00 00 01 00-02 00 03 00 04 00 05 00 + 13 00 00 02 14 00 00 00-14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00-3c 00 00 00 + 01 00 00 00 34 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 04 00 00 00-02 00 00 00 00 00 0b 00 00 00 05 80 04 80 03 80-02 80 01 80 00 00 01 00 02 00 03 00 04 00 05 00 + 14 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 3c 00 00 00 + 01 00 00 00-34 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 00 00 0b 00-00 00 05 80 04 80 03 80 02 80 01 80 00 00 01 00-02 00 03 00 04 00 05 00 + 15 00 00 02 14 00 00 00-14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00-3c 00 00 00 + 01 00 00 00 34 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 04 00 00 00-02 00 00 00 00 00 0b 00 00 00 05 80 04 80 03 80-02 80 01 80 00 00 01 00 02 00 03 00 04 00 05 00 + 16 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 26 00 00 00 + 01 00 00 00-1e 00 00 00 00 00 00 00 0210 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 00 00 00 00-00 00 + 17 00 00 02 14 00 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 00 00 3c 00 00 00 + 01 00-00 00 34 00 00 00 00 00 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 00 00 02 00 00 00 00 00-0b 00 00 00 05 80 04 80 03 80 02 80 01 80 00 00-01 00 02 00 03 00 04 00 05 00 + 18 00 00 02 14 00-00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00-00 00 26 00 00 00 + 01 00 00 00 1e 00 00 00 00 00-00 00 01 00 01 00 00 00 00 00 01 00 00 00 04 00-00 00 02 00 00 00 00 00 00 00 00 00 + 19 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 26 00 00 00 + 01 00 00 00 1e 00 00 00-00 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00-04 00 00 00 02 00 00 00 01 00 00 00 00 00 + 1a 00-00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00-00 00 01 00 00 00 26 00 00 00 + 01 00 00 00 1e 00-00 00 00 00 00 00 01 00 01 00 00 00 00 00 01 00-00 00 04 00 00 00 02 00 00 00 00 00 00 00 00 00 + +0000 70 00 00 00 02 00 02 94-06 00 00 00 + + 11 00 00 02 02 00 00 00 01 00 + 12 00 00 02 02 00 00 00 00 00 + 13 00 00 02 02 00 00 00 00 00 + 14 00 00 02 02 00 00 00 00 00 + 15 00 00 02 02 00 00 00 00 00 + 16 00 00 02 02 00 00 00 00 00 + 17 00 00 02 02 00 00 00 00 00 + 18 00 00 02 02 00 00 00 00 00 + 19 00 00 02 02 00 00 00 01 00 + 1a 00 00 02 02 00 00 00 00 00 + +0x02000020-9108.log +0000 60 00 00 00 02 00 07 91-04 00 00 00 + + 20 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 02 00 00 00 10 01 00 00 + 21 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 94 00 00 00 + 22 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 44 00 00 00 + +0000 f4 00 00 00 02 00 08 91-05 00 00 00 + + 20 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 02 00 00 00 cc 00 00 00 + 21 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 50 00 00 00 + 01 00 00 00-48 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 06 00 00 00 02 00 00 00 00 64 00 00-0a 00 00 00 ff ff ff ff fe ff ff ff c8 00 00 00-90 01 00 00 20 03 00 00 40 06 00 00 80 0c 00 00-00 19 00 00 00 32 00 00 00 64 00 00 + + 22 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 44 00 00 00 + 01 00 00 00 3c 00 00 00-00 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00-06 00 00 00 02 00 00 00 00 00 00 00 07 00 00 00-90 01 00 00 20 03 00 00 40 06 00 00 80 0c 00 00-00 19 00 00 00 32 00 00 00 64 00 00 + +0000 24 00 00 00 02 00 02 94-06 00 00 00 + + 21 00 00 02 04 00 00 00 00 64 00 00 + 22 00 00 02 04 00 00 00 00 00 00 00 - .... + +0x02000030-9108.log +0000 60 00 00 00 02 00 07 91-04 00 00 00 + + 30 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 02 00 00 00 ac 01 00 00 + 31 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 24 01 00 00 + 32 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-02 00 00 00 50 00 00 00 + +0000 d8 00 00 00 02 00 08 91-05 00 00 00 + 30 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 02 00 00 00 b0 00 00 00 + + 31 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 28 00 00 00 + 01 00 00 00-20 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 06 00 00 00 02 00 00 00 00 12 7a 00 00 00 00 00 + + 32 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 02 00 00 00 50 00 00 00 + 01 00 00 00 20 00 00 00 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 06 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 + 02 00 00 00 20 00 00 00-00 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00-06 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 + +0000 28 00 00 00 02 00 02 94-06 00 00 00 + + 31 00 00 02 04 00 00 00 00 12 7a 00 + 32 00 00 02 08 00 00 00 40 1f 00 00 00 24 f4 00 + +0x02000040-9108.log +0000 60 00 00 00 02 00 07 91-04 00 00 00 + + 40 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 02 00 00 00 92 01 00 00 + 41 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 0e 01 00 00 + 42 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-02 00 00 00 4c 00 00 00 + +0000 d2 00 00 00 02 00 08 91-05 00 00 00 + + 40 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 02 00 00 00 aa 00 00 00 + 41 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 26 00 00 00 + 01 00 00 00-1e 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 00 00 00 00-00 00 + 42 00 00 02 14 00 00 00 14 00 00 00 01 00-01 00 00 00 00 00 02 00 00 00 4c 00 00 00 + 01 00-00 00 1e 00 00 00 00 00 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 00 00 02 00 00 00 00 00-00 00 00 00 + 02 00 00 00 1e 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 04 00 00 00-02 00 00 00 00 00 00 00 00 00 - .. + +0000 22 00 00 00 02 00 02 94-06 00 00 00 + + 41 00 00 02 02 00 00 00 26 00 + 42 00 00 02 04 00 00 00 26 00 dc 00 + +0x02000050-9108.log +0000 b4 00 00 00 02 00 07 91-04 00 00 00 + + 50 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 05 00 00 00 00 02 00 00 + 51 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 44 00 00 00 + 52 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 be 00 00 00 + 53 00 00 02 14 00 00 00-14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00-26 00 00 00 + 54 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 26 00 00 00 + 55 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 26 00 00 00 + +0000 90 01 00 00 02 00 08 91-05 00 00 00 + 50 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 05 00 00 00 68 01 00 00 + + 51 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 44 00 00 00 + 01 00 00 00-3c 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 02 00 0f 00-00 00 02 00 04 00 08 80 06 00 07 00 0b 80 0c 80-0d 80 0e 80 0f 80 10 80 11 80 12 80 13 80 14 80 + + 52 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 26 00 00 00 + 01 00 00 00-1e 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 7c 15 00 00-00 00 + + 53 00 00 02 14 00 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 00 00 26 00 00 00 + 01 00-00 00 1e 00 00 00 00 00 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 00 00 02 00 00 00 00 00-00 00 00 00 + 54 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 26 00 00 00 + 01 00 00 00 1e 00 00 00 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 04 00 00 00 02 00 00 00-00 00 00 00 00 00 + 55 00 00 02 14 00 00 00 14 00-00 00 01 00 01 00 00 00 00 00 01 00 00 00 26 00-00 00 + 01 00 00 00 1e 00 00 00 00 00 00 00 01 00-01 00 00 00 00 00 01 00 00 00 04 00 00 00 02 00-00 00 00 00 00 00 00 00 + +0000 3e 00 00 00 02 00 02 94-06 00 00 00 + + 51 00 00 02 02 00 00 00 02 00 + 52 00 00 02 02 00 00 00 7c 15 + 53 00 00 02 02 00 00 00 00 00 + 54 00 00 02 02 00 00 00 00 00 + 55 00 00 02 02 00 00 00 00 00 + +0x02000060-9108.log +0000 60 00 00 00 02 00 07 91-04 00 00 00 + + 60 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 02 00 00 00 ec 00 00 00 + 61 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 64 00 00 00 + 62 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-02 00 00 00 50 00 00 00 + +0000 14 01 00 00 02 00 08 91-05 00 00 00 + + 60 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 02 00 00 00 ec 00 00 00 + 61 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 64 00 00 00 + + 01 00 00 00-5c 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 00 00 1f 00-00 00 0f 80 0e 80 0d 80 0c 80 0b 80 0a 80 09 80-08 80 07 80 06 80 05 80 04 80 03 80 02 80 01 80-00 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00-08 00 09 00 0a 00 0b 00 0c 00 0d 00 0e 00 0f 00 + + 62 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 02 00 00 00 50 00 00 00 + 01 00 00 00 20 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 04 00 00 00 01 00 00 00 00 00 0f 80 0f 00 01 00 + 02 00 00 00 20 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 04 00 00 00 01 00 00 00 00 00 0f 80 0f 00 01 00 + +0000 22 00 00 00 02 00 02 94-06 00 00 00 + + 61 00 00 02 02 00 00 00 00 00 + 62 00 00 02 04 00 00 00 0f 80 0f 00 + +0x02000070-9108.log +0000 98 00 00 00 02 00 07 91-04 00 00 00 + + 70 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 04 00 00 00 2e 01 00 00 + 71 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 2e 00 00 00 + 72 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 32 00 00 00 + 73 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 2c 00 00 00 + 74 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 32 00 00 00 + +0000 40 01 00 00 02 00 08 91-05 00 00 00 + + 70 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 04 00 00 00 18 01 00 00 + 71 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 26 00 00 00 + 01 00 00 00-1e 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 04 00 00 00-00 00 + 72 00 00 02 14 00 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 00 00 32 00 00 00 + 01 00-00 00 2a 00 00 00 00 00 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 00 00 02 00 00 00 01 00-06 00 00 00 00 00 01 00 02 00 03 00 05 00 06 00 + 73 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 2a 00 00 00 + 01 00 00 00-22 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 00 00 02 00-00 00 00 00 03 00 + 74 00 00 02 14 00 00 00 14 00-00 00 01 00 01 00 00 00 00 00 01 00 00 00 26 00-00 00 + 01 00 00 00 1e 00 00 00 00 00 00 00 01 00-01 00 00 00 00 00 01 00 00 00 04 00 00 00 02 00-00 00 02 00 00 00 00 00 + +0000 34 00 00 00 02 00 02 94-06 00 00 00 + + 71 00 00 02 02 00 00 00 04 00 + 72 00 00 02 02 00 00 00 01 00 + 73 00 00 02 02 00 00 00-00 00 + 74 00 00 02 02 00 00 00 02 00 + +0x02000080-9108.log +0000 ec 00 00 00 02 00 07 91-04 00 00 00 + + 80 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 07 00 00 00 58 02 00 00 + 81 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 32 00 00 00 + 82 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 3e 00 00 00 + 83 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 54 00 00 00 + 84 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 2a 00 00 00 + 85 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 2c 00 00 00 + 86 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 4e 00 00 00 + 87 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00 2c 00 00 00 + +0000 5c 02 00 00 02 00 08 91-05 00 00 00 + + 80 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 07 00 00 00 34 02 00 00 + 81 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 26 00 00 00 + 01 00 00 00-1e 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 00 00 00 00-00 00 + + 82 00 00 02 14 00 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 00 00 26 00 00 00 + 01 00-00 00 1e 00 00 00 00 00 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 00 00 02 00 00 00 00 00-00 00 00 00 + 83 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 54 00 00 00 + 01 00 00 00 4c 00 00 00 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 04 00 00 00 02 00 00 00-16 00 17 00 00 00 00 00 01 00 02 00 03 00 04 00-05 00 06 00 07 00 08 00 09 00 0a 00 0c 00 0d 00-0e 00 0f 00 10 00 11 00 12 00 13 00 14 00 15 00-16 00 0b 00 + + 84 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 2a 00 00 00 + 01 00 00 00 22 00 00 00 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 04 00 00 00 02 00 00 00-01 00 02 00 00 00 00 00 01 00 + + 85 00 00 02 14 00-00 00 14 00 00 00 01 00 01 00 00 00 00 00 01 00-00 00 2c 00 00 00 + 01 00 00 00 24 00 00 00 00 00-00 00 01 00 01 00 00 00 00 00 01 00 00 00 04 00-00 00 02 00 00 00 02 00 03 00 00 00 01 00 02 00-03 00 + + 86 00 00 02 14 00 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 00 00 4e 00 00 00 + 01 00-00 00 46 00 00 00 00 00 01d0 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 00 00 02 00 00 00 01 00-14 00 00 00 01 00 02 00 04 00 07 00 08 00 09 00-0a 00 0b 00 0c 00 0d 00 0e 00 0f 00 10 00 11 00-12 00 13 00 14 00 15 00 16 00 17 00 + + 87 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 2c 00 00 00 + 01 00 00 00 24 00 00 00-00 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00-04 00 00 00 02 00 00 00 01 00 03 00 00 00 01 00-02 00 03 00 + +0000 52 00 00 00 02 00 02 94-06 00 00 00 + + 81 00 00 02 02 00 00 00 00 00 + 82 00-00 02 02 00 00 00 00 00 + 83 00 00 02 02 00 00 00-16 00 + 84 00 00 02 02 00 00 00 01 00 + 85 00 00 02-02 00 00 00 02 00 + 86 00 00 02 02 00 00 00 01 00 + 87 00 00 02 02 00 00 00 01 00 + +0x020000A2-9108.log +0000 44 00 00 00 02 00 07 91-04 00 00 00 + + a2 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 50 00 00 00 + a2 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 34 00 00 00 + +0000 74 00 00 00 02 00 08 91-05 00 00 00 + + a2 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 4c 00 00 00 + a2 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 30 00 00 00 + 01 00 00 00-28 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 00 00 05 00-00 00 00 00 01 00 03 00 04 00 05 00 + +0000 16 00 00 00 02 00 02 94-06 00 00 00 + + a2 00 00 02 02 00 00 00 00 00 + +0x020000B0-9108.log +0000 60 00 00 00 02 00 07 91-04 00 00 00 + + b0 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 02 00 00 00 90 00 00 00 + b1 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 2c 00 00 00 + b2 00 00 02-14 00 00 00 14 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 2c 00 00 00 + +0000 b8 00 00 00 02 00 08 91-05 00 00 00 + + b0 00 00 02 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 02 00 00 00 90 00 00 00 + + b1 00 00 02 14 00 00 00 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 2c 00 00 00 + 01 00 00 00-24 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 02 00 00 00 01 00 03 00-00 00 00 00 01 00 02 00 + + b2 00 00 02 14 00 00 00-14 00 00 00 01 00 01 00 00 00 00 00 01 00 00 00-2c 00 00 00 + 01 00 00 00 24 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 01 00 00 00 04 00 00 00-02 00 00 00 00 00 03 00 00 00 00 00 01 00 02 00 + +0000 20 00 00 00 02 00 02 94-06 00 00 00 + + b1 00 00 02 02 00 00 00 01 00 + b2 00-00 02 02 00 00 00 00 00 + +0x020000C0-9108.log +0000 98 00 00 00 02 00 07 91-04 00 00 00 c0 00 00 02 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 04 00 00 00 ae 01 00 00-c1 00 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2a 00 00 00 c2 00 00 02-14 00 00 00 14 00 00 00 *............... +0050 01 00 01 00 00 00 00 00-01 00 00 00 2a 00 00 00 ............*... +0060 c3 00 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0070 00 00 00 00 02 00 00 00-50 00 00 00 c4 00 00 02 ........P....... +0080 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0090 04 00 00 00 9a 00 00 00- ........ + +0000 d6 01 00 00 02 00 08 91-05 00 00 00 c0 00 00 02 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 04 00 00 00 ae 01 00 00-c1 00 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2a 00 00 00 01 00 00 00-22 00 00 00 00 00 00 00 *......."....... +0050 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0060 02 00 00 00 00 00 02 00-00 00 00 00 01 00 c2 00 ................ +0070 00 02 14 00 00 00 14 00-00 00 01 00 01 00 00 00 ................ +0080 00 00 01 00 00 00 2a 00-00 00 01 00 00 00 22 00 ......*.......". +0090 00 00 00 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +00a0 00 00 04 00 00 00 02 00-00 00 00 00 02 00 00 00 ................ +00b0 00 00 01 00 c3 00 00 02-14 00 00 00 14 00 00 00 ................ +00c0 01 00 01 00 00 00 00 00-02 00 00 00 50 00 00 00 ............P... +00d0 01 00 00 00 20 00 00 00-00 00 00 00 01 00 01 00 .... ........... +00e0 00 00 00 00 01 00 00 00-04 00 00 00 01 00 00 00 ................ +00f0 00 00 00 00 17 00 01 00-02 00 00 00 20 00 00 00 ............ ... +0100 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0110 04 00 00 00 01 00 00 00-00 00 00 00 3b 00 01 00 ............;... +0120 c4 00 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0130 00 00 00 00 04 00 00 00-9a 00 00 00 01 00 00 00 ................ +0140 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +0150 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +0160 3b 00 01 00 02 00 00 00-20 00 00 00 00 00 00 00 ;....... ....... +0170 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0180 01 00 00 00 00 00 00 00-3b 00 01 00 03 00 00 00 ........;....... +0190 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +01a0 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +01b0 09 00 01 00 04 00 00 00-1a 00 00 00 00 00 00 00 ................ +01c0 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +01d0 00 00 00 00 00 00 - ...... + +0000 3c 00 00 00 02 00 02 94-06 00 00 00 c1 00 00 02 <............... +0010 02 00 00 00 00 00 c2 00-00 02 02 00 00 00 00 00 ................ +0020 c3 00 00 02 04 00 00 00-00 00 00 00 c4 00 00 02 ................ +0030 08 00 00 00 00 00 06 00-00 00 01 00 ............ +0x020000E0-9108.log +0000 b4 00 00 00 02 00 07 91-04 00 00 00 e0 00 00 02 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 05 00 00 00 ae 01 00 00-e1 00 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2a 00 00 00 e2 00 00 02-14 00 00 00 14 00 00 00 *............... +0050 01 00 01 00 00 00 00 00-02 00 00 00 50 00 00 00 ............P... +0060 e3 00 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0070 00 00 00 00 01 00 00 00-2e 00 00 00 e4 00 00 02 ................ +0080 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0090 02 00 00 00 50 00 00 00-e5 00 00 02 14 00 00 00 ....P........... +00a0 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +00b0 2a 00 00 00 - *... + +0000 d6 01 00 00 02 00 08 91-05 00 00 00 e0 00 00 02 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 05 00 00 00 ae 01 00 00-e1 00 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2a 00 00 00 01 00 00 00-22 00 00 00 00 00 00 00 *......."....... +0050 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0060 02 00 00 00 01 00 02 00-00 00 00 00 01 00 e2 00 ................ +0070 00 02 14 00 00 00 14 00-00 00 01 00 01 00 00 00 ................ +0080 00 00 02 00 00 00 50 00-00 00 01 00 00 00 20 00 ......P....... . +0090 00 00 00 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +00a0 00 00 04 00 00 00 01 00-00 00 00 00 00 00 e8 03 ................ +00b0 01 00 02 00 00 00 20 00-00 00 00 00 00 00 01 00 ...... ......... +00c0 01 00 00 00 00 00 01 00-00 00 04 00 00 00 01 00 ................ +00d0 00 00 00 00 00 00 e8 03-01 00 e3 00 00 02 14 00 ................ +00e0 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +00f0 00 00 2e 00 00 00 01 00-00 00 26 00 00 00 00 00 ..........&..... +0100 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 ................ +0110 00 00 02 00 00 00 00 00-04 00 00 00 00 00 01 00 ................ +0120 02 00 03 00 e4 00 00 02-14 00 00 00 14 00 00 00 ................ +0130 01 00 01 00 00 00 00 00-02 00 00 00 50 00 00 00 ............P... +0140 01 00 00 00 20 00 00 00-00 00 00 00 01 00 01 00 .... ........... +0150 00 00 00 00 01 00 00 00-04 00 00 00 01 00 00 00 ................ +0160 00 00 00 00 e8 03 01 00-02 00 00 00 20 00 00 00 ............ ... +0170 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0180 04 00 00 00 01 00 00 00-00 00 00 00 e8 03 01 00 ................ +0190 e5 00 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +01a0 00 00 00 00 01 00 00 00-2a 00 00 00 01 00 00 00 ........*....... +01b0 22 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 "............... +01c0 01 00 00 00 04 00 00 00-02 00 00 00 00 00 02 00 ................ +01d0 00 00 00 00 01 00 - ...... + +0000 42 00 00 00 02 00 02 94-06 00 00 00 e1 00 00 02 B............... +0010 02 00 00 00 01 00 e2 00-00 02 04 00 00 00 1c 00 ................ +0020 04 00 e3 00 00 02 02 00-00 00 00 00 e4 00 00 02 ................ +0030 04 00 00 00 f4 01 f4 01-e5 00 00 02 02 00 00 00 ................ +0040 00 00 - .. +0x02000110-9108.log +0000 5c 01 00 00 02 00 07 91-04 00 00 00 10 01 00 02 \............... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 0b 00 00 00 58 03 00 00-11 01 00 02 14 00 00 00 ....X........... +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 30 00 00 00 12 01 00 02-14 00 00 00 14 00 00 00 0............... +0050 01 00 01 00 00 00 00 00-01 00 00 00 2a 00 00 00 ............*... +0060 13 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0070 00 00 00 00 01 00 00 00-2a 00 00 00 14 01 00 02 ........*....... +0080 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0090 01 00 00 00 2a 00 00 00-15 01 00 02 14 00 00 00 ....*........... +00a0 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +00b0 4c 00 00 00 16 01 00 02-14 00 00 00 14 00 00 00 L............... +00c0 01 00 01 00 00 00 00 00-01 00 00 00 2a 00 00 00 ............*... +00d0 17 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +00e0 00 00 00 00 01 00 00 00-52 00 00 00 18 01 00 02 ........R....... +00f0 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0100 01 00 00 00 2a 00 00 00-19 01 00 02 14 00 00 00 ....*........... +0110 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0120 2e 00 00 00 1a 01 00 02-14 00 00 00 14 00 00 00 ................ +0130 01 00 01 00 00 00 00 00-01 00 00 00 2a 00 00 00 ............*... +0140 1b 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0150 00 00 00 00 01 00 00 00-2c 00 00 00 ........,... + +0000 02 03 00 00 02 00 08 91-05 00 00 00 10 01 00 02 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 0b 00 00 00 da 02 00 00-11 01 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 26 00 00 00 01 00 00 00-1e 00 00 00 00 00 00 00 &............... +0050 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0060 02 00 00 00 05 00 00 00-00 00 12 01 00 02 14 00 ................ +0070 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +0080 00 00 2a 00 00 00 01 00-00 00 22 00 00 00 00 00 ..*......."..... +0090 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 ................ +00a0 00 00 02 00 00 00 01 00-02 00 00 00 01 00 02 00 ................ +00b0 13 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +00c0 00 00 00 00 01 00 00 00-26 00 00 00 01 00 00 00 ........&....... +00d0 1e 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ................ +00e0 01 00 00 00 04 00 00 00-02 00 00 00 01 00 00 00 ................ +00f0 00 00 14 01 00 02 14 00-00 00 14 00 00 00 01 00 ................ +0100 01 00 00 00 00 00 01 00-00 00 26 00 00 00 01 00 ..........&..... +0110 00 00 1e 00 00 00 00 00-00 00 01 00 01 00 00 00 ................ +0120 00 00 01 00 00 00 04 00-00 00 02 00 00 00 01 00 ................ +0130 00 00 00 00 15 01 00 02-14 00 00 00 14 00 00 00 ................ +0140 01 00 01 00 00 00 00 00-01 00 00 00 26 00 00 00 ............&... +0150 01 00 00 00 1e 00 00 00-00 00 00 00 01 00 01 00 ................ +0160 00 00 00 00 01 00 00 00-04 00 00 00 02 00 00 00 ................ +0170 00 00 00 00 00 00 16 01-00 02 14 00 00 00 14 00 ................ +0180 00 00 01 00 01 00 00 00-00 00 01 00 00 00 26 00 ..............&. +0190 00 00 01 00 00 00 1e 00-00 00 00 00 00 00 01 00 ................ +01a0 01 00 00 00 00 00 01 00-00 00 04 00 00 00 02 00 ................ +01b0 00 00 01 00 00 00 00 00-17 01 00 02 14 00 00 00 ................ +01c0 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +01d0 26 00 00 00 01 00 00 00-1e 00 00 00 00 00 00 00 &............... +01e0 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +01f0 02 00 00 00 00 00 00 00-00 00 18 01 00 02 14 00 ................ +0200 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +0210 00 00 26 00 00 00 01 00-00 00 1e 00 00 00 00 00 ..&............. +0220 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 ................ +0230 00 00 02 00 00 00 01 00-00 00 00 00 19 01 00 02 ................ +0240 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0250 01 00 00 00 26 00 00 00-01 00 00 00 1e 00 00 00 ....&........... +0260 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0270 04 00 00 00 02 00 00 00-01 00 00 00 00 00 1a 01 ................ +0280 00 02 14 00 00 00 14 00-00 00 01 00 01 00 00 00 ................ +0290 00 00 01 00 00 00 26 00-00 00 01 00 00 00 1e 00 ......&......... +02a0 00 00 00 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +02b0 00 00 04 00 00 00 02 00-00 00 01 00 00 00 00 00 ................ +02c0 1b 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +02d0 00 00 00 00 01 00 00 00-26 00 00 00 01 00 00 00 ........&....... +02e0 1e 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ................ +02f0 01 00 00 00 04 00 00 00-02 00 00 00 03 00 00 00 ................ +0300 00 00 - .. + +0000 7a 00 00 00 02 00 02 94-06 00 00 00 11 01 00 02 z............... +0010 02 00 00 00 05 00 12 01-00 02 02 00 00 00 01 00 ................ +0020 13 01 00 02 02 00 00 00-01 00 14 01 00 02 02 00 ................ +0030 00 00 01 00 15 01 00 02-02 00 00 00 00 00 16 01 ................ +0040 00 02 02 00 00 00 01 00-17 01 00 02 02 00 00 00 ................ +0050 00 00 18 01 00 02 02 00-00 00 01 00 19 01 00 02 ................ +0060 02 00 00 00 01 00 1a 01-00 02 02 00 00 00 01 00 ................ +0070 1b 01 00 02 02 00 00 00-03 00 .......... + + +0x02000120-9108.log +0000 d0 00 00 00 02 00 07 91-04 00 00 00 20 01 00 02 ............ ... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 06 00 00 00 aa 01 00 00-21 01 00 02 14 00 00 00 ........!....... +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2a 00 00 00 22 01 00 02-14 00 00 00 14 00 00 00 *..."........... +0050 01 00 01 00 00 00 00 00-01 00 00 00 30 00 00 00 ............0... +0060 23 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 #............... +0070 00 00 00 00 01 00 00 00-2a 00 00 00 24 01 00 02 ........*...$... +0080 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0090 01 00 00 00 2a 00 00 00-25 01 00 02 14 00 00 00 ....*...%....... +00a0 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +00b0 2a 00 00 00 26 01 00 02-14 00 00 00 14 00 00 00 *...&........... +00c0 01 00 01 00 00 00 00 00-01 00 00 00 2a 00 00 00 ............*... + +0000 d0 01 00 00 02 00 08 91-04 00 00 00 20 01 00 02 ............ ... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 06 00 00 00 a8 01 00 00-21 01 00 02 14 00 00 00 ........!....... +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2a 00 00 00 01 00 00 00-22 00 00 00 00 00 00 00 *......."....... +0050 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0060 02 00 00 00 00 00 02 00-00 00 00 00 01 00 22 01 ..............". +0070 00 02 14 00 00 00 14 00-00 00 01 00 01 00 00 00 ................ +0080 00 00 01 00 00 00 2e 00-00 00 01 00 00 00 26 00 ..............&. +0090 00 00 00 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +00a0 00 00 04 00 00 00 02 00-00 00 03 00 04 00 00 00 ................ +00b0 00 00 02 00 03 00 04 00-23 01 00 02 14 00 00 00 ........#....... +00c0 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +00d0 2a 00 00 00 01 00 00 00-22 00 00 00 00 00 00 00 *......."....... +00e0 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +00f0 02 00 00 00 01 00 02 00-00 00 00 00 01 00 24 01 ..............$. +0100 00 02 14 00 00 00 14 00-00 00 01 00 01 00 00 00 ................ +0110 00 00 01 00 00 00 2a 00-00 00 01 00 00 00 22 00 ......*.......". +0120 00 00 00 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +0130 00 00 04 00 00 00 02 00-00 00 01 00 02 00 00 00 ................ +0140 00 00 01 00 25 01 00 02-14 00 00 00 14 00 00 00 ....%........... +0150 01 00 01 00 00 00 00 00-01 00 00 00 2a 00 00 00 ............*... +0160 01 00 00 00 22 00 00 00-00 00 00 00 01 00 01 00 ...."........... +0170 00 00 00 00 01 00 00 00-04 00 00 00 02 00 00 00 ................ +0180 00 00 02 00 00 00 00 00-01 00 26 01 00 02 14 00 ..........&..... +0190 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +01a0 00 00 2a 00 00 00 01 00-00 00 22 00 00 00 00 00 ..*......."..... +01b0 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 ................ +01c0 00 00 02 00 00 00 01 00-02 00 00 00 00 00 01 00 ................ + +0000 48 00 00 00 02 00 02 94-04 00 00 00 21 01 00 02 H...........!... +0010 02 00 00 00 00 00 22 01-00 02 02 00 00 00 03 00 ......"......... +0020 23 01 00 02 02 00 00 00-01 00 24 01 00 02 02 00 #.........$..... +0030 00 00 01 00 25 01 00 02-02 00 00 00 00 00 26 01 ....%.........&. +0040 00 02 02 00 00 00 01 00- ........ + +0x02000140-9108.log +0000 44 00 00 00 02 00 07 91-04 00 00 00 40 01 00 02 D...........@... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 01 00 00 00 4e 00 00 00-41 01 00 02 14 00 00 00 ....N...A....... +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 32 00 00 00 - 2... + +0000 70 00 00 00 02 00 08 91-05 00 00 00 40 01 00 02 p...........@... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 01 00 00 00 48 00 00 00-41 01 00 02 14 00 00 00 ....H...A....... +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2c 00 00 00 01 00 00 00-24 00 00 00 00 00 00 00 ,.......$....... +0050 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0060 02 00 00 00 01 00 03 00-00 00 01 00 03 00 04 00 ................ + +0000 16 00 00 00 02 00 02 94-06 00 00 00 41 01 00 02 ............A... +0010 02 00 00 00 01 00 - ...... +0x02000170-9108.log +0000 7c 00 00 00 02 00 07 91-04 00 00 00 70 01 00 02 |...........p... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 03 00 00 00 de 00 00 00-71 01 00 02 14 00 00 00 ........q....... +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 34 00 00 00 72 01 00 02-14 00 00 00 14 00 00 00 4...r........... +0050 01 00 01 00 00 00 00 00-01 00 00 00 2a 00 00 00 ............*... +0060 73 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 s............... +0070 00 00 00 00 01 00 00 00-2c 00 00 00 ........,... + +0000 f8 00 00 00 02 00 08 91-05 00 00 00 70 01 00 02 ............p... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 03 00 00 00 d0 00 00 00-71 01 00 02 14 00 00 00 ........q....... +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 26 00 00 00 01 00 00 00-1e 00 00 00 00 00 00 00 &............... +0050 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0060 02 00 00 00 00 00 00 00-00 00 72 01 00 02 14 00 ..........r..... +0070 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +0080 00 00 2a 00 00 00 01 00-00 00 22 00 00 00 00 00 ..*......."..... +0090 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 ................ +00a0 00 00 02 00 00 00 00 00-02 00 00 00 00 00 01 00 ................ +00b0 73 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 s............... +00c0 00 00 00 00 01 00 00 00-2c 00 00 00 01 00 00 00 ........,....... +00d0 24 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 $............... +00e0 01 00 00 00 04 00 00 00-02 00 00 00 00 00 03 00 ................ +00f0 00 00 00 00 01 00 02 00- ........ + +0000 2a 00 00 00 02 00 02 94-06 00 00 00 71 01 00 02 *...........q... +0010 02 00 00 00 00 00 72 01-00 02 02 00 00 00 00 00 ......r......... +0020 73 01 00 02 02 00 00 00-00 00 s......... +0x020001A0-9108.log +0000 44 00 00 00 02 00 07 91-04 00 00 00 a0 01 00 02 D............... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 01 00 00 00 48 00 00 00-a1 01 00 02 14 00 00 00 ....H........... +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2c 00 00 00 - ,... + +0000 70 00 00 00 02 00 08 91-05 00 00 00 a0 01 00 02 p............... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 01 00 00 00 48 00 00 00-a1 01 00 02 14 00 00 00 ....H........... +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2c 00 00 00 01 00 00 00-24 00 00 00 00 00 00 00 ,.......$....... +0050 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0060 02 00 00 00 01 00 03 00-00 00 01 00 02 00 03 00 ................ + +0000 16 00 00 00 02 00 02 94-06 00 00 00 a1 01 00 02 ................ +0010 02 00 00 00 01 00 - ...... +0x020001B0-9108.log +0000 cc 01 00 00 02 00 07 91-04 00 00 00 b0 01 00 02 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 0f 00 00 00 9c 05 00 00-b1 01 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2a 00 00 00 b2 01 00 02-14 00 00 00 14 00 00 00 *............... +0050 01 00 01 00 00 00 00 00-01 00 00 00 2e 00 00 00 ................ +0060 b3 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0070 00 00 00 00 01 00 00 00-2e 00 00 00 b4 01 00 02 ................ +0080 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0090 01 00 00 00 2e 00 00 00-b5 01 00 02 14 00 00 00 ................ +00a0 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +00b0 4c 00 00 00 b6 01 00 02-14 00 00 00 14 00 00 00 L............... +00c0 01 00 01 00 00 00 00 00-01 00 00 00 4c 00 00 00 ............L... +00d0 b7 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +00e0 00 00 00 00 01 00 00 00-4c 00 00 00 b8 01 00 02 ........L....... +00f0 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0100 01 00 00 00 4c 00 00 00-b9 01 00 02 14 00 00 00 ....L........... +0110 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0120 52 00 00 00 ba 01 00 02-14 00 00 00 14 00 00 00 R............... +0130 01 00 01 00 00 00 00 00-01 00 00 00 52 00 00 00 ............R... +0140 bb 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0150 00 00 00 00 01 00 00 00-52 00 00 00 bc 01 00 02 ........R....... +0160 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0170 01 00 00 00 52 00 00 00-bd 01 00 02 14 00 00 00 ....R........... +0180 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0190 2e 00 00 00 be 01 00 02-14 00 00 00 14 00 00 00 ................ +01a0 01 00 01 00 00 00 00 00-01 00 00 00 4c 00 00 00 ............L... +01b0 bf 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +01c0 00 00 00 00 01 00 00 00-52 00 00 00 ........R... + +0000 06 04 00 00 02 00 08 91-05 00 00 00 b0 01 00 02 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 0f 00 00 00 de 03 00 00-b1 01 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 26 00 00 00 01 00 00 00-1e 00 00 00 00 00 00 00 &............... +0050 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0060 02 00 00 00 01 00 00 00-00 00 b2 01 00 02 14 00 ................ +0070 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +0080 00 00 26 00 00 00 01 00-00 00 1e 00 00 00 00 00 ..&............. +0090 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 ................ +00a0 00 00 02 00 00 00 01 00-00 00 00 00 b3 01 00 02 ................ +00b0 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +00c0 01 00 00 00 26 00 00 00-01 00 00 00 1e 00 00 00 ....&........... +00d0 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +00e0 04 00 00 00 02 00 00 00-01 00 00 00 00 00 b4 01 ................ +00f0 00 02 14 00 00 00 14 00-00 00 01 00 01 00 00 00 ................ +0100 00 00 01 00 00 00 26 00-00 00 01 00 00 00 1e 00 ......&......... +0110 00 00 00 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +0120 00 00 04 00 00 00 02 00-00 00 01 00 00 00 00 00 ................ +0130 b5 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0140 00 00 00 00 01 00 00 00-26 00 00 00 01 00 00 00 ........&....... +0150 1e 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ................ +0160 01 00 00 00 04 00 00 00-02 00 00 00 00 00 00 00 ................ +0170 00 00 b6 01 00 02 14 00-00 00 14 00 00 00 01 00 ................ +0180 01 00 00 00 00 00 01 00-00 00 26 00 00 00 01 00 ..........&..... +0190 00 00 1e 00 00 00 00 00-00 00 01 00 01 00 00 00 ................ +01a0 00 00 01 00 00 00 04 00-00 00 02 00 00 00 00 00 ................ +01b0 00 00 00 00 b7 01 00 02-14 00 00 00 14 00 00 00 ................ +01c0 01 00 01 00 00 00 00 00-01 00 00 00 26 00 00 00 ............&... +01d0 01 00 00 00 1e 00 00 00-00 00 00 00 01 00 01 00 ................ +01e0 00 00 00 00 01 00 00 00-04 00 00 00 02 00 00 00 ................ +01f0 00 00 00 00 00 00 b8 01-00 02 14 00 00 00 14 00 ................ +0200 00 00 01 00 01 00 00 00-00 00 01 00 00 00 26 00 ..............&. +0210 00 00 01 00 00 00 1e 00-00 00 00 00 00 00 01 00 ................ +0220 01 00 00 00 00 00 01 00-00 00 04 00 00 00 02 00 ................ +0230 00 00 00 00 00 00 00 00-b9 01 00 02 14 00 00 00 ................ +0240 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0250 26 00 00 00 01 00 00 00-1e 00 00 00 00 00 00 00 &............... +0260 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0270 02 00 00 00 00 00 00 00-00 00 ba 01 00 02 14 00 ................ +0280 00 00 14 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +0290 00 00 26 00 00 00 01 00-00 00 1e 00 00 00 00 00 ..&............. +02a0 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 ................ +02b0 00 00 02 00 00 00 00 00-00 00 00 00 bb 01 00 02 ................ +02c0 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +02d0 01 00 00 00 26 00 00 00-01 00 00 00 1e 00 00 00 ....&........... +02e0 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +02f0 04 00 00 00 02 00 00 00-00 00 00 00 00 00 bc 01 ................ +0300 00 02 14 00 00 00 14 00-00 00 01 00 01 00 00 00 ................ +0310 00 00 01 00 00 00 26 00-00 00 01 00 00 00 1e 00 ......&......... +0320 00 00 00 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +0330 00 00 04 00 00 00 02 00-00 00 00 00 00 00 00 00 ................ +0340 bd 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0350 00 00 00 00 01 00 00 00-26 00 00 00 01 00 00 00 ........&....... +0360 1e 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ................ +0370 01 00 00 00 04 00 00 00-02 00 00 00 01 00 00 00 ................ +0380 00 00 be 01 00 02 14 00-00 00 14 00 00 00 01 00 ................ +0390 01 00 00 00 00 00 01 00-00 00 26 00 00 00 01 00 ..........&..... +03a0 00 00 1e 00 00 00 00 00-00 00 01 00 01 00 00 00 ................ +03b0 00 00 01 00 00 00 04 00-00 00 02 00 00 00 00 00 ................ +03c0 00 00 00 00 bf 01 00 02-14 00 00 00 14 00 00 00 ................ +03d0 01 00 01 00 00 00 00 00-01 00 00 00 26 00 00 00 ............&... +03e0 01 00 00 00 1e 00 00 00-00 00 00 00 01 00 01 00 ................ +03f0 00 00 00 00 01 00 00 00-04 00 00 00 02 00 00 00 ................ + +0000 a2 00 00 00 02 00 02 94-06 00 00 00 b1 01 00 02 ................ +0010 02 00 00 00 01 00 b2 01-00 02 02 00 00 00 01 00 ................ +0020 b3 01 00 02 02 00 00 00-01 00 b4 01 00 02 02 00 ................ +0030 00 00 01 00 b5 01 00 02-02 00 00 00 00 00 b6 01 ................ +0040 00 02 02 00 00 00 00 00-b7 01 00 02 02 00 00 00 ................ +0050 00 00 b8 01 00 02 02 00-00 00 00 00 b9 01 00 02 ................ +0060 02 00 00 00 00 00 ba 01-00 02 02 00 00 00 00 00 ................ +0070 bb 01 00 02 02 00 00 00-00 00 bc 01 00 02 02 00 ................ +0080 00 00 00 00 bd 01 00 02-02 00 00 00 01 00 be 01 ................ +0090 00 02 02 00 00 00 00 00-bf 01 00 02 02 00 00 00 ................ +00a0 00 00 - .. + +0x020001C0-9108.log +0000 60 00 00 00 02 00 07 91-04 00 00 00 c0 01 00 02 `............... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 02 00 00 00 8e 00 00 00-c1 01 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2c 00 00 00 c2 01 00 02-14 00 00 00 14 00 00 00 ,............... +0050 01 00 01 00 00 00 00 00-01 00 00 00 2a 00 00 00 ............*... + +0000 b6 00 00 00 02 00 08 91-04 00 00 00 c0 01 00 02 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 02 00 00 00 8e 00 00 00-c1 01 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2c 00 00 00 01 00 00 00-24 00 00 00 00 00 00 00 ,.......$....... +0050 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0060 02 00 00 00 02 00 03 00-00 00 00 00 01 00 02 00 ................ +0070 c2 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0080 00 00 00 00 01 00 00 00-2a 00 00 00 01 00 00 00 ........*....... +0090 22 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 "............... +00a0 01 00 00 00 04 00 00 00-02 00 00 00 03 00 02 00 ................ +00b0 00 00 02 00 03 00 - ...... + +0000 20 00 00 00 02 00 02 94-04 00 00 00 c1 01 00 02 ............... +0010 02 00 00 00 02 00 c2 01-00 02 02 00 00 00 03 00 ................ + +0x020001D0-9108.log +0000 b4 00 00 00 02 00 07 91-04 00 00 00 d0 01 00 02 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 05 00 00 00 bc 04 00 00-d1 01 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 05 00 00 00 ................ +0040 c6 00 00 00 d2 01 00 02-14 00 00 00 14 00 00 00 ................ +0050 01 00 01 00 00 00 00 00-10 00 00 00 7e 02 00 00 ............~... +0060 d3 01 00 02 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0070 00 00 00 00 02 00 00 00-4e 00 00 00 d4 01 00 02 ........N....... +0080 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0090 02 00 00 00 4e 00 00 00-d5 01 00 02 14 00 00 00 ....N........... +00a0 14 00 00 00 01 00 01 00-00 00 00 00 02 00 00 00 ................ +00b0 50 00 00 00 - P... + +0000 e4 04 00 00 02 00 08 91-04 00 00 00 d0 01 00 02 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 05 00 00 00 bc 04 00 00-d1 01 00 02 14 00 00 00 ................ +0030 14 00 00 00 01 00 01 00-00 00 00 00 05 00 00 00 ................ +0040 c6 00 00 00 01 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +0050 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0060 01 00 00 00 00 00 00 00-e8 03 01 00 02 00 00 00 ................ +0070 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +0080 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +0090 e8 03 01 00 03 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +00a0 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +00b0 01 00 00 00 00 00 00 00-e8 03 01 00 04 00 00 00 ................ +00c0 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +00d0 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +00e0 e8 03 01 00 05 00 00 00-1e 00 00 00 00 00 00 00 ................ +00f0 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0100 02 00 00 00 00 00 00 00-00 00 d2 01 00 02 14 00 ................ +0110 00 00 14 00 00 00 01 00-01 00 00 00 00 00 10 00 ................ +0120 00 00 7e 02 00 00 01 00-00 00 20 00 00 00 00 00 ..~....... ..... +0130 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 ................ +0140 00 00 01 00 00 00 00 00-00 00 e8 03 01 00 02 00 ................ +0150 00 00 20 00 00 00 00 00-00 00 01 00 01 00 00 00 .. ............. +0160 00 00 01 00 00 00 04 00-00 00 01 00 00 00 00 00 ................ +0170 00 00 e8 03 01 00 03 00-00 00 20 00 00 00 00 00 .......... ..... +0180 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 ................ +0190 00 00 01 00 00 00 00 00-00 00 e8 03 01 00 04 00 ................ +01a0 00 00 20 00 00 00 00 00-00 00 01 00 01 00 00 00 .. ............. +01b0 00 00 01 00 00 00 04 00-00 00 01 00 00 00 00 00 ................ +01c0 00 00 e8 03 01 00 05 00-00 00 1e 00 00 00 00 00 ................ +01d0 00 00 01 00 01 00 00 00-00 00 01 00 00 00 04 00 ................ +01e0 00 00 02 00 00 00 00 00-00 00 00 00 06 00 00 00 ................ +01f0 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +0200 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +0210 e7 03 01 00 07 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +0220 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0230 01 00 00 00 00 00 00 00-e7 03 01 00 08 00 00 00 ................ +0240 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +0250 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +0260 e7 03 01 00 09 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +0270 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0280 01 00 00 00 00 00 00 00-e7 03 01 00 0a 00 00 00 ................ +0290 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +02a0 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +02b0 e7 03 01 00 0b 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +02c0 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +02d0 01 00 00 00 00 00 00 00-e7 03 01 00 0c 00 00 00 ................ +02e0 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +02f0 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +0300 e7 03 01 00 0d 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +0310 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0320 01 00 00 00 00 00 00 00-e7 03 01 00 0e 00 00 00 ................ +0330 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +0340 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +0350 e7 03 01 00 0f 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +0360 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0370 01 00 00 00 00 00 00 00-e7 03 01 00 10 00 00 00 ................ +0380 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +0390 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +03a0 e7 03 01 00 d3 01 00 02-14 00 00 00 14 00 00 00 ................ +03b0 01 00 01 00 00 00 00 00-02 00 00 00 4e 00 00 00 ............N... +03c0 01 00 00 00 20 00 00 00-00 00 00 00 01 00 01 00 .... ........... +03d0 00 00 00 00 01 00 00 00-04 00 00 00 01 00 00 00 ................ +03e0 00 00 00 00 ff 00 01 00-02 00 00 00 1e 00 00 00 ................ +03f0 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +02e0 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +02f0 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +0300 e7 03 01 00 0d 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +0310 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0320 01 00 00 00 00 00 00 00-e7 03 01 00 0e 00 00 00 ................ +0330 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +0340 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +0350 e7 03 01 00 0f 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +0360 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0370 01 00 00 00 00 00 00 00-e7 03 01 00 10 00 00 00 ................ +0380 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +0390 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +03a0 e7 03 01 00 d3 01 00 02-14 00 00 00 14 00 00 00 ................ +03b0 01 00 01 00 00 00 00 00-02 00 00 00 4e 00 00 00 ............N... +03c0 01 00 00 00 20 00 00 00-00 00 00 00 01 00 01 00 .... ........... +03d0 00 00 00 00 01 00 00 00-04 00 00 00 01 00 00 00 ................ +03e0 00 00 00 00 ff 00 01 00-02 00 00 00 1e 00 00 00 ................ +03f0 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +02e0 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +02f0 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +0300 e7 03 01 00 0d 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +0310 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0320 01 00 00 00 00 00 00 00-e7 03 01 00 0e 00 00 00 ................ +0330 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +0340 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +0350 e7 03 01 00 0f 00 00 00-20 00 00 00 00 00 00 00 ........ ....... +0360 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +0370 01 00 00 00 00 00 00 00-e7 03 01 00 10 00 00 00 ................ +0380 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +0390 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +03a0 e7 03 01 00 d3 01 00 02-14 00 00 00 14 00 00 00 ................ +03b0 01 00 01 00 00 00 00 00-02 00 00 00 4e 00 00 00 ............N... +03c0 01 00 00 00 20 00 00 00-00 00 00 00 01 00 01 00 .... ........... +03d0 00 00 00 00 01 00 00 00-04 00 00 00 01 00 00 00 ................ +03e0 00 00 00 00 ff 00 01 00-02 00 00 00 1e 00 00 00 ................ +03f0 00 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0400 04 00 00 00 02 00 00 00-00 00 00 00 00 00 d4 01 ................ +0410 00 02 14 00 00 00 14 00-00 00 01 00 01 00 00 00 ................ +0420 00 00 02 00 00 00 4e 00-00 00 01 00 00 00 20 00 ......N....... . +0430 00 00 00 00 00 00 01 00-01 00 00 00 00 00 01 00 ................ +0440 00 00 04 00 00 00 01 00-00 00 00 00 00 00 ff 00 ................ +0450 01 00 02 00 00 00 1e 00-00 00 00 00 00 00 01 00 ................ +0460 01 00 00 00 00 00 01 00-00 00 04 00 00 00 02 00 ................ +0470 00 00 00 00 00 00 00 00-d5 01 00 02 14 00 00 00 ................ +0480 14 00 00 00 01 00 01 00-00 00 00 00 02 00 00 00 ................ +0490 50 00 00 00 01 00 00 00-20 00 00 00 00 00 00 00 P....... ....... +04a0 01 00 01 00 00 00 00 00-01 00 00 00 04 00 00 00 ................ +04b0 01 00 00 00 00 00 00 00-e7 03 01 00 02 00 00 00 ................ +04c0 20 00 00 00 00 00 00 00-01 00 01 00 00 00 00 00 ............... +04d0 01 00 00 00 04 00 00 00-01 00 00 00 00 00 00 00 ................ +04e0 e7 03 01 00 - .... + +0000 49 01 00 00 02 00 02 94-04 00 00 00 d1 01 00 02 I............... +0010 0a 00 00 00 f4 01 f4 01-9c 00 d0 00 00 00 d2 01 ................ +0020 00 02 20 00 00 00 f4 01-f4 01 4b 01 4d 01 ff ff .. .......K.M... +0030 2c 01 f4 01 f4 01 25 01-27 01 bf 02 bc 02 f4 01 ,.....%.'....... +0040 f4 01 4b 01 4d 01 d3 01-00 02 04 00 00 00 ff ff ..K.M........... +0050 02 00 d4 01 00 02 e3 00-00 00 70 00 00 00 00 00 ..........p..... +0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0080 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 01 01 ................ +00a0 01 00 00 00 00 00 00 00-00 00 00 00 01 01 01 01 ................ +00b0 01 00 00 00 00 00 00 00-00 00 01 01 01 01 01 01 ................ +00c0 01 00 00 00 00 00 00 00-00 01 01 01 01 01 01 01 ................ +00d0 00 00 00 00 00 00 00 00-01 01 01 01 01 01 01 00 ................ +00e0 00 00 00 00 00 00 00 00-01 01 01 01 01 00 00 00 ................ +00f0 00 00 00 00 00 00 00 00-01 01 01 00 00 00 00 00 ................ +0100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ +0130 00 00 00 00 00 00 00 00-00 00 00 00 00 d5 01 00 ................ +0140 02 04 00 00 00 f4 01 f4-01 ......... + +expinshot: +0x12000020 9414 (no results fromn 9107 and 9108) + +this should contain current values of exposure based attributes. + +0000 56 00 00 00 02 00 14 94-04 00 00 00 + + 21 00 00 12 02 00 00 00 26 00 + 22 00-00 12 04 00 00 00 48 e8 01 00 + 23 00 00 12 04 00-00 00 fd ff ff ff + 24 00 00 12 02 00 00 00 00 00 + 25 00 00 12 02 00 00 00 00 00 + 26 00 00 12 02 00-00 00 00 00 + 27 00 00 12 02 00 00 00 00 00 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/parrot-sequoia.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/parrot-sequoia.txt new file mode 100644 index 00000000..7f33c245 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/parrot-sequoia.txt @@ -0,0 +1,90 @@ +Device info: +Manufacturer: Parrot S.A. + Model: Sequoia + device version: 1.2.0 + serial number: 'PIXXXXXXXXXX00nnnn' +Vendor extension ID: 0x0000001b +Vendor extension version: 100 +Vendor extension description: parrot.com: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100e (Initiate capture) + 0x100f (Format storage) + 0x1013 (Power down device) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1017 (Reset device property value) + 0x1018 (Terminate open capture) + 0x101b (Get partial object) + 0x101c (Initiate open capture) + 0x9201 (Unknown VendorExtensionID) + 0x9202 (Unknown VendorExtensionID) + 0x9203 (Unknown VendorExtensionID) + 0x9204 (Unknown VendorExtensionID) + 0x9205 (Unknown VendorExtensionID) + 0x9206 (Unknown VendorExtensionID) + 0x9207 (Unknown VendorExtensionID) + 0x9208 (Unknown VendorExtensionID) + 0x9209 (Unknown VendorExtensionID) + 0x920a (Unknown VendorExtensionID) + 0x9210 (Unknown VendorExtensionID) + 0x9211 (Unknown VendorExtensionID) + 0x9212 (Unknown VendorExtensionID) + 0x9213 (Unknown VendorExtensionID) + 0x9214 (Unknown VendorExtensionID) + 0x9215 (Unknown VendorExtensionID) + 0x9216 (Unknown VendorExtensionID) +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4007 + 0x400a + 0x400d + 0xc201 + 0xc202 +Device Properties Supported: + 0x5002 + 0x5003 + 0x5004 + 0x5005 + 0x5007 + 0x5008 + 0x5009 + 0x500a + 0x500c + 0x5011 + 0x5013 + 0x501a + 0x501c + 0x501b + 0xd212 + 0xd201 + 0xd202 + 0xd203 + 0xd204 + 0xd205 + 0xd206 + 0xd207 + 0xd208 + 0xd20a + 0xd215 + 0xd214 + 0xd216 + 0xd217 + 0xd218 + 0xd219 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/pentax-optio-w90.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/pentax-optio-w90.txt new file mode 100644 index 00000000..52cf89a8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/pentax-optio-w90.txt @@ -0,0 +1,90 @@ +Device info: +Manufacturer: PENTAX + Model: Optio W90 + device version: Ver 1.00 + serial number: 'nnnnnnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4006 + 0x4007 + 0x4008 + 0x400a + 0x400c +Device Properties Supported: + 0x5001 + 0x5011 + 0xd407 + 0xd406 + 0xd303 +Camera summary: +Manufacturer: PENTAX +Model: Optio W90 + Version: Ver 1.00 + Serial Number: nnnnnnnnnnnn +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: microsoft.com: 1.0; + +Capture Formats: +Display Formats: Undefined Type, JPEG, Association/Directory, DPOF, MS Wave, MS AVI +Supported MTP Object Properties: + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name + MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 7938670592 (7570 MB) + Free Space (Images): 3364 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) +Date & Time(0x5011):(readwrite) (type=0xffff) '20100428T110011' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Property 0xd303:(read only) (type=0x2) 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/philips-hdd6320.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/philips-hdd6320.txt new file mode 100644 index 00000000..95162c6a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/philips-hdd6320.txt @@ -0,0 +1,51 @@ +Device info: +Manufacturer: Philips + model: Philips PTP device + device version: PP5022AF-05.40-PP07-05.40-MG02-00.01-DT, 1.3 + serial number: ' XXXXXXXXM' +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com/WMDRMPD: 10.1;microsoft.com/WMPPD: 10.0; portalplayer.com: 1.0; +Supported operations: + 0x1014 + 0x1015 + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1007 + 0x1008 + 0x1009 + 0x101b + 0x100c + 0x100d + 0x100b + 0x1012 + 0x100f + 0x1016 + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9806 + 0x9810 + 0x9811 + 0x9201 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b +Events Supported: +Device Properties Supported: + 0x5001 + 0xd101 + 0xd102 + 0xd401 + 0xd402 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/ricoh-r3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/ricoh-r3.txt new file mode 100644 index 00000000..ae2efa91 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/ricoh-r3.txt @@ -0,0 +1,27 @@ +Device info: +Manufacturer: Ricoh Company Ltd. + model: Caplio R3 + device version: 01.24 + serial number: 'NNNNNNNNNNNNNNNN' +Vendor extension ID: 0x00000000 +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4009 +Device Properties Supported: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/ricoh-theta-m15.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/ricoh-theta-m15.txt new file mode 100644 index 00000000..b2bf428f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/ricoh-theta-m15.txt @@ -0,0 +1,576 @@ + Device info: + Manufacturer: Ricoh Company, Ltd. + Model: RICOH THETA m15 + device version: 01.21 + serial number: 'nnnnnnnn' + Vendor extension ID: 0x0000000d + Vendor extension version: 110 + Vendor extension description: + Functional Mode: 0x0000 + PTP Standard Version: 110 + Supported operations: + 0x1001 (Get device info) + 0x1002 (Open session) + 0x1003 (Close session) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x100b (Delete object) + 0x100e (Initiate capture) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x1018 (Terminate open capture) + 0x101c (Initiate open capture) + 0x1022 (Unknown PTP_OC) + 0x99a1 (Unknown VendorExtensionID) + Events Supported: + 0x4002 + 0x4006 + 0x400a + 0x400d + Device Properties Supported: + 0x5001 + 0x5005 + 0x500f + 0x5010 + 0x5011 + 0x5013 + 0x501a + 0x501b + 0x502c + 0xd006 + 0xd00f + 0xd801 + 0xd802 + 0xd803 + 0xd805 + 0xd806 + 0xd807 + 0xd808 + 0xd809 + 0xd80a + +Kamerazusammenfassung: +Hersteller: Ricoh Company, Ltd. +Modell: RICOH THETA m15 + Version: 01.21 + Seriennummer: nnnnnnnn +Vendor Extension ID: 0xd (1.10) +Beschreibung der Vendor Extension: +Version des PTP Standards: 1.10 + +Aufnahmeformate: Association/Directory Apple Quicktime JPEG +Anzeigeformate: Association/Directory, Apple Quicktime, JPEG + +Fähigkeiten des Geräts: + Dateien Download, Löschen von Dateien, kein Hochladen von Dateien + Generische Bild Aufnahme, Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Keine + Label des Speichergerätes: Keine + Speichertyp: Eingebauter Speicher + Typ des Dateisystems: Standard Digital Kamera Layout (DCIM) + Zugriffsmöglichkeiten: Lesen und Schreiben + Maximale Kapazität: 3983540224 (3799 MB) + Freier Platz (Bytes): 3944420352 (3761 MB) + Freier Speicher (Bilder): 1203 + +Properties des Geräts: +Batterie Ladezustand(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100) +Weißabgleich(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32769,32770,6,32800,32771,32772,32773,32774] value: Automatic (2) +Belichtungsindex (ISO-Filmempfindlichkeit)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,65535] value: ISO 65535 (65535) +Belichtungskorrektur(0x5010):(readwrite) (type=0x3) Enumeration [2000,1700,1300,1000,700,300,0,-300,-700,-1000,-1300,-1700,-2000] value: 0,0 stops (0) +Datum und Zeit(0x5011):(readwrite) (type=0xffff) '20160211T205832' +Bildaufnahme Modus(0x5013):(readwrite) (type=0x4) Enumeration [0,1,3] value: Single Shot (1) +Zeitraffer Nummer(0x501a):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Zeitraffer Intervall(0x501b):(readwrite) (type=0x6) Range [5000 - 3600000, step 1000] value: 5000 +Audio Volume(0x502c):(readwrite) (type=0x6) Range [0 - 100, step 1] value: 100 +Property 0xd006:(read only) (type=0x6) 0 +Property 0xd00f:(readwrite) (type=0x8) Enumeration [0,34359738368001,27487790694401,21474836480001,17179869184001,13743895347201,10737418240001,8589934592001,6871947673601,5368709120001,4294967296001,3435973836801,2748779069441,2147483648001,1717986918401,1374389534721,1073741824001,858993459201,687194767361,536870912001,429496729601,343597383681,257698037761,214748364801,171798691841,128849018881,107374182401,85899345921,64424509441,55834574849,42949672961,322122547210] value: 536870912001 +Property 0xd801:(readwrite) (type=0xffff) '' +Property 0xd802:(readwrite) (type=0x2) Range [0 - 30, step 1] value: 10 +Property 0xd803:(readwrite) (type=0x4) Range [0 - 1800, step 1] value: 300 +Property 0xd805:(readwrite) (type=0xffff) 'THETAXN00116563' +Property 0xd806:(readwrite) (type=0xffff) 'kie0hohB' +Property 0xd807:(readwrite) (type=0x2) Enumeration [0,1,6,11] value: 1 +Property 0xd808:(read only) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd809:(read only) (type=0x4) Range [0 - 179, step 1] value: 0 +Property 0xd80a:(read only) (type=0x4) Range [0 - 180, step 1] value: 0 + +Warte 1 Sekunden auf Events von der Kamera. Drücke Ctrl-C zum abbrechen. +/main/actions/movie +Label: Film Aufnahme +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/settings/datetime +Label: Kamera Datum und Zeit +Type: DATE +Current: 1455220673 +Printable: Do 11 Feb 2016 20:57:53 CET +Help: Use 'now' as the current time when setting. + +/main/status/serialnumber +Label: Seriennummer +Type: TEXT +Current: 00116563 +/main/status/manufacturer +Label: Kamera Hersteller +Type: TEXT +Current: Ricoh Company, Ltd. +/main/status/cameramodel +Label: Kameramodell +Type: TEXT +Current: RICOH THETA m15 +/main/status/deviceversion +Label: Version des Gerätes +Type: TEXT +Current: 01.21 +/main/status/vendorextension +Label: Hersteller Erweiterung +Type: TEXT +Current: +/main/status/batterylevel +Label: Batterie Ladezustand +Type: TEXT +Current: 100% +/main/imgsettings/iso +Label: ISO-Empfindlichkeit +Type: RADIO +Current: 65535 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 65535 +/main/imgsettings/whitebalance +Label: Weißabgleich +Type: RADIO +Current: Automatisch +Choice: 0 Automatisch +Choice: 1 Tageslicht +Choice: 2 Unbekannter Wert 8001 schatten +Choice: 3 Unbekannter Wert 8002 wolken +Choice: 4 Kunstlicht - Glühlampe gluehlampe +Choice: 5 Unbekannter Wert 8020 gluehlampe 2 +Choice: 6 Unbekannter Wert 8003 leuchtstoffroehre tageslicht +Choice: 7 Unbekannter Wert 8004 leuchtstoffroehre natuerlich weiss +Choice: 8 Unbekannter Wert 8005 leuchtstoffroehre weiss +Choice: 9 Unbekannter Wert 8006 leuchtstoffroehre gluehlampenfarben +/main/capturesettings/exposurecompensation +Label: Belichtungskorrektur +Type: RADIO +Current: 0 +Choice: 0 2 +Choice: 1 1,7 +Choice: 2 1,3 +Choice: 3 1 +Choice: 4 0,7 +Choice: 5 0,3 +Choice: 6 0 +Choice: 7 -0,3 +Choice: 8 -0,7 +Choice: 9 -1 +Choice: 10 -1,3 +Choice: 11 -1,7 +Choice: 12 -2 +/main/capturesettings/capturemode +Label: Bildaufnahme Modus +Type: RADIO +Current: Einzelbild +Choice: 0 Unbekannter Wert 0000 +Choice: 1 Einzelbild +Choice: 2 Zeitraffer +/main/other/5001 +Label: Batterie Ladezustand +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/5005 +Label: Weißabgleich +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32769 +Choice: 3 32770 +Choice: 4 6 +Choice: 5 32800 +Choice: 6 32771 +Choice: 7 32772 +Choice: 8 32773 +Choice: 9 32774 +/main/other/500f +Label: Belichtungsindex (ISO-Filmempfindlichkeit) +Type: MENU +Current: 65535 +Choice: 0 100 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 65535 +/main/other/5010 +Label: Belichtungskorrektur +Type: MENU +Current: 0 +Choice: 0 2000 +Choice: 1 1700 +Choice: 2 1300 +Choice: 3 1000 +Choice: 4 700 +Choice: 5 300 +Choice: 6 0 +Choice: 7 -300 +Choice: 8 -700 +Choice: 9 -1000 +Choice: 10 -1300 +Choice: 11 -1700 +Choice: 12 -2000 +/main/other/5011 +Label: Datum und Zeit +Type: TEXT +Current: 20160211T205753 +/main/other/5013 +Label: Bildaufnahme Modus +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 3 +/main/other/501a +Label: Zeitraffer Nummer +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/501b +Label: Zeitraffer Intervall +Type: RANGE +Current: 5000 +Bottom: 5000 +Top: 3,6e+06 +Step: 1000 +/main/other/502c +Label: Audio Volume +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +/main/other/d006 +Label: PTP Property 0xd006 +Type: TEXT +Current: 0 +/main/other/d00f +Label: PTP Property 0xd00f +Type: MENU +Current: (null) +/main/other/d801 +Label: PTP Property 0xd801 +Type: TEXT +Current: +/main/other/d802 +Label: PTP Property 0xd802 +Type: MENU +Current: 10 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +/main/other/d803 +Label: PTP Property 0xd803 +Type: RANGE +Current: 300 +Bottom: 0 +Top: 1800 +Step: 1 +/main/other/d805 +Label: PTP Property 0xd805 +Type: TEXT +Current: THETAXN00116563 +/main/other/d806 +Label: PTP Property 0xd806 +Type: TEXT +Current: kie0hohB +/main/other/d807 +Label: PTP Property 0xd807 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 6 +Choice: 3 11 +/main/other/d808 +Label: PTP Property 0xd808 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +/main/other/d809 +Label: PTP Property 0xd809 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 179 +Step: 1 +/main/other/d80a +Label: PTP Property 0xd80a +Type: RANGE +Current: 0 +Bottom: 0 +Top: 180 +Step: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/ricoh-wg-m2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/ricoh-wg-m2.txt new file mode 100644 index 00000000..08fa5309 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/ricoh-wg-m2.txt @@ -0,0 +1,202 @@ +Hi, I will put the things below + +Arda KAAN +***************************************** + + + +Bus 002 Device 002: ID 8087:8000 Intel Corp. +Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub +Bus 001 Device 002: ID 8087:8008 Intel Corp. +Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub +Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +Bus 003 Device 119: ID 04f2:b3fd Chicony Electronics Co., Ltd +Bus 003 Device 003: ID 8087:07dc Intel Corp. +Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver +Bus 003 Device 018: ID 25fb:210b +Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + + + + + +gphoto2 --auto-detect +Model Port + +---------------------------------------------------------- +USB PTP Class Camera usb:003,018 + + +gphoto2 --abilities +Abilities for camera : USB PTP Class Camera + +Serial port support : no +USB support : yes +Capture choices : + : Image + : Preview +Configuration support : yes +Delete selected files on camera : yes +Delete all files on camera : no +File preview (thumbnail) support : yes +File upload support : yes + + + + + +gphoto2 --summary +Camera summary: + +Manufacturer: RICOH IMAGING COMPANY, LTD. +Model: RICOH WG-M2 + Version: Ver 1.00 + Serial Number: 00000nnnnnnn +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: microsoft.com: 1.0; +microsoft.com/DeviceServices:1.0; + +Capture Formats: +Display Formats: Undefined Type, Association/Directory, Script, DPOF, JPEG, +Undefined Video +Supported MTP Object Properties: +Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus +dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject +dc41/PersistantUniqueObjectIdentifier dc44/Name +Association/Directory/3001: dc01/StorageID dc02/ObjectFormat +dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject +dc41/PersistantUniqueObjectIdentifier dc44/Name +Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus +dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject +dc41/PersistantUniqueObjectIdentifier dc44/Name +DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus +dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject +dc41/PersistantUniqueObjectIdentifier dc44/Name +JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus +dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject +dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height +dcd3/ImageBitDepth +Undefined Video/b980: dc01/StorageID dc02/ObjectFormat +dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject +dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height +dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth +de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate + +Device Capabilities: +File Download, File Deletion, File Upload +No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: +StorageDescription: None +VolumeLabel: None +Storage Type: Removable RAM (memory card) +Filesystemtype: Digital Camera Layout (DCIM) +Access Capability: Read-Write +Maximum Capability: 71467008 (68 MB) +Free Space (Bytes): 6438912 (6 MB) +Free Space (Images): 0 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration +[2,5,25,50,65,80,100] value: 100% (100) +Date & Time(0x5011):(readwrite) (type=0xffff) '20190103T231049' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0x0) Undefined +Property 0xd303:(read only) (type=0x2) 1 + + + + + + +gphoto2 --list-all-config +/main/actions/opcode + +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/settings/datetime +Label: Camera Date and Time +Readonly: 0 +Type: DATE +Current: 1546546304 +Printable: Prş 03 Oca 2019 23:11:44 +03 +Help: Use 'now' as the current time when setting. + +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: 00000nnnnnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: RICOH IMAGING COMPANY, LTD. +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: RICOH WG-M2 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: Ver 1.00 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: microsoft.com: 1.0; microsoft.com/DeviceServices:1.0; +END +/main/status/Battery Level +Label: Battery Level +Readonly: 1 +Type: TEXT +Current: 100% +END +/main/other/5001 +Label: Battery Level +Readonly: 1 +Type: MENU +Current: 100 +Choice: 0 2 +Choice: 1 5 +Choice: 2 25 +Choice: 3 50 +Choice: 4 65 +Choice: 5 80 +Choice: 6 100 +END +/main/other/5011 +Label: Date & Time +Readonly: 0 +Type: TEXT +Current: 20190103T231144 +END +/main/other/d407 +Label: Perceived Device Type +Readonly: 1 +Type: TEXT +Current: 1 +END +/main/other/d406 +Label: Session Initiator Info +Readonly: 0 +Type: TEXT +Current: (null) +END +/main/other/d303 +Label: PTP Property 0xd303 +Readonly: 1 +Type: TEXT +Current: 1 +END diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-ek-g100.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-ek-g100.txt new file mode 100644 index 00000000..df341760 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-ek-g100.txt @@ -0,0 +1,166 @@ +Device info: +Manufacturer: SAMSUNG Electronics Co. Ltd. + Model: EK-GC100 + device version: V1.0 + serial number: 'ABCDEFGH123' +Vendor extension ID: 0x00000000 +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9810 + 0x9811 + 0x9802 + 0x9801 + 0x9803 + 0x9804 + 0x9805 + 0x9806 + 0x9201 + 0x9202 + 0x100a + 0x1011 + 0x1012 + 0x1017 + 0x9807 + 0x9808 + 0x9100 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b + 0x910c + 0x910d + 0x910e + 0x910f + 0x9110 + 0x9111 + 0x9112 + 0x9113 + 0x9114 + 0x9115 + 0x9116 +Events Supported: + 0x4002 + 0x4003 + 0x4004 + 0x4005 +Device Properties Supported: + 0x5001 + 0xd401 + 0xd402 + 0xd404 + 0xd407 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 + +Camera summary: +Manufacturer: SAMSUNG Electronics Co. Ltd. +Model: EK-GC100 + Version: V1.0 + Serial Number: ABCDEFGH123 + +Capture Formats: Unknown(0000) +Display Formats: Unknown(b984), MP3, Unknown(b901), Unknown(b981), JPEG, Association/Directory, Unknown(ba05), Undefined Type, GIF, MS AVI, MPEG, ASF, Unknown(b982), Unknown(ba10), Unknown(ba11), Unknown(ba03) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Camera + VolumeLabel: ABCDEFGHIJ123467 + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 4162199552 (3969 MB) + Free Space (Bytes): 2611527680 (2490 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 10] value: 54% (54) +Property 0xd401:(readwrite) (type=0xffff) 'Longhorn Sync Engine' +Property 0xd402:(readwrite) (type=0xffff) 'EK-GC100' +Property 0xd404:(read only) (type=0x2) 1 +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd101:(read only) (type=0x4004) +Property 0xd102:(read only) (type=0x4004) +Property 0xd103:(read only) (type=0x4004) a[0] +Property 0xd105:(read only) (type=0x4002) a[0] + +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 54% +/main/other/5001 +Label: Battery Level +Type: RANGE +Current: 54 +Bottom: 0 +Top: 100 +Step: 10 +/main/other/d401 +Label: PTP Property 0xd401 +Type: TEXT +Current: Longhorn Sync Engine +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: EK-GC100 +/main/other/d404 +Label: PTP Property 0xd404 +Type: TEXT +Current: 1 +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d101 +Label: PTP Property 0xd101 +Type: TEXT +Current: (null) +/main/other/d102 +Label: PTP Property 0xd102 +Type: TEXT +Current: (null) +/main/other/d103 +Label: PTP Property 0xd103 +Type: TEXT +Current: (null) +/main/other/d104 +Label: PTP Property 0xd104 +Type: TEXT +Current: (null) +/main/other/d105 +Label: PTP Property 0xd105 +Type: TEXT +Current: (null) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-galaxy-s2-android4.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-galaxy-s2-android4.txt new file mode 100644 index 00000000..6eec0b4e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-galaxy-s2-android4.txt @@ -0,0 +1,102 @@ +Device info: +Manufacturer: SAMSUNG Electronics Co. Ltd. + Model: GT-I9100 + device version: V1.0 + serial number: '355310042588917' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; microsoft.com/WMPPD: 11.0; microsoft.com/WMPPD: 10.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9810 + 0x9811 + 0x9802 + 0x9801 + 0x9803 + 0x9804 + 0x9805 + 0x9806 + 0x9201 + 0x9202 + 0x1011 + 0x1012 + 0x1017 + 0x9807 + 0x9808 +Events Supported: + 0x4004 + 0x4005 +Device Properties Supported: + 0x5001 + 0xd401 + 0xd402 + 0xd404 + 0xd407 + +Camera summary: +Manufacturer: SAMSUNG Electronics Co. Ltd. +Model: GT-I9100 + Version: V1.0 + Serial Number: 355310042588917 +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: microsoft.com: 1.0; microsoft.com/WMPPD: 11.0; microsoft.com/WMPPD: 10.0; + +Capture Formats: Unknown(0000) +Display Formats: 3GP, MP3, WMA, WMV, JPEG, Association/Directory, Abstract Audio Video Playlist, Undefined Type, GIF, MS AVI, MPEG, ASF, MP4, WPL Playlist, M3U Playlist, Abstract Audio Album +Supported MTP Object Properties: + 3GP/b984: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc46/Artist dc89/Duration dc8a/Rating dc8b/Track dc8c/Genre dc97/EffectiveRating dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc91/UseCount de92/BitRateType dc9b/AlbumArtist dc96/Composer dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData + MP3/3009: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc46/Artist dc89/Duration dc8a/Rating dc8b/Track dc8c/Genre dc97/EffectiveRating dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc91/UseCount de92/BitRateType dc9b/AlbumArtist dc96/Composer dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData + WMA/b901: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc46/Artist dc89/Duration dc8a/Rating dc8b/Track dc8c/Genre dc97/EffectiveRating dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc91/UseCount de92/BitRateType dc9b/AlbumArtist dc96/Composer dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData + WMV/b981: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc01/StorageID dc88/Height dc8c/Genre dc91/UseCount dc99/OriginalReleaseDate de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc46/Artist dc8c/Genre dc9b/AlbumArtist dc87/Width dc88/Height dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData d901/BuyFlag + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated + Abstract Audio Video Playlist/ba05: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated + GIF/3807: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc46/Artist dc8c/Genre dc9b/AlbumArtist dc87/Width dc88/Height dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData d901/BuyFlag + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc01/StorageID dc88/Height dc8c/Genre dc91/UseCount dc99/OriginalReleaseDate de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + MPEG/300b: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc01/StorageID dc88/Height dc8c/Genre dc91/UseCount dc99/OriginalReleaseDate de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + ASF/300c: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc01/StorageID dc88/Height dc8c/Genre dc91/UseCount dc99/OriginalReleaseDate de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + MP4/b982: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc01/StorageID dc88/Height dc8c/Genre dc91/UseCount dc99/OriginalReleaseDate de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + WPL Playlist/ba10: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated + M3U Playlist/ba11: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated + Abstract Audio Album/ba03: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc46/Artist dc8c/Genre dc9b/AlbumArtist dc87/Width dc88/Height dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData d901/BuyFlag + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Phone + VolumeLabel: SECZ9519043CHOHB + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 12351995904 (11779 MB) + Free Space (Bytes): 14974976 (14 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 10] value: 24% (24) +Synchronization Partner(0xd401):(readwrite) (type=0xffff) Longhorn Sync Engine ('Longhorn Sync Engine') +Friendly Device Name(0xd402):(readwrite) (type=0xffff) GT-I9100 ('GT-I9100') +Property 0xd404:(read only) (type=0x2) 1 +Perceived Device Type(0xd407):(read only) (type=0x6) 2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-galaxy-s2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-galaxy-s2.txt new file mode 100644 index 00000000..3c89f78e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-galaxy-s2.txt @@ -0,0 +1,132 @@ +Camera summary: +Manufacturer: SAMSUNG Electronics Co. Ltd. +Model: GT-I9100 + Version: V1.0 + Serial Number: nnnnnnnnnnnnnnn +Vendor Extension ID: 0x6 (1.0) +Vendor Extension Description: microsoft.com: 1.0; microsoft.com/WMPPD: 11.0; microsoft.com/WMPPD: 10.0; microsoft.com/WMDRMPD:10.1; microsoft.com/playready:1.10; + +Capture Formats: Unknown(0000) +Display Formats: 3GP, MP3, WMA, WMV, JPEG, Association/Directory, Abstract Audio Video Playlist, Undefined Type, GIF, MS AVI, MPEG, ASF, MP4, WPL Playlist, M3U Playlist, Abstract Audio Album +Supported MTP Object Properties: + 3GP/b984: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc9d/DRMStatus dc89/Duration dc8a/Rating dc8b/Track dc8c/Genre dc97/EffectiveRating dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc91/UseCount de92/BitRateType dc9b/AlbumArtist dc96/Composer dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData + MP3/3009: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc9d/DRMStatus dc89/Duration dc8a/Rating dc8b/Track dc8c/Genre dc97/EffectiveRating dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc91/UseCount de92/BitRateType dc9b/AlbumArtist dc96/Composer dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData + WMA/b901: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc46/Artist dc89/Duration dc8a/Rating dc8b/Track dc8c/Genre dc97/EffectiveRating dc99/OriginalReleaseDate dc9a/AlbumName de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec de9a/AudioBitRate dc91/UseCount de92/BitRateType dc9b/AlbumArtist dc96/Composer dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData + WMV/b981: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc87/Width dc88/Height dc8c/Genre dc91/UseCount dc99/OriginalReleaseDate de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc46/Artist dc8c/Genre dc9b/AlbumArtist dc87/Width dc88/Height dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData d901/BuyFlag + Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated + Abstract Audio Video Playlist/ba05: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated + Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated + GIF/3807: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc46/Artist dc8c/Genre dc9b/AlbumArtist dc87/Width dc88/Height dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData d901/BuyFlag + MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc87/Width dc88/Height dc8c/Genre dc91/UseCount dc99/OriginalReleaseDate de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + MPEG/300b: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc87/Width dc88/Height dc8c/Genre dc91/UseCount dc99/OriginalReleaseDate de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + ASF/300c: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc87/Width dc88/Height dc8c/Genre dc91/UseCount dc99/OriginalReleaseDate de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + MP4/b982: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc87/Width dc88/Height dc8c/Genre dc91/UseCount dc99/OriginalReleaseDate de93/SampleRate de94/NumberOfChannels de97/ScanDepth de99/AudioWAVECodec de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate de9d/FramesPerThousandSeconds de9e/KeyFrameDistance dea1/EncodingProfile + WPL Playlist/ba10: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated + M3U Playlist/ba11: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated + Abstract Audio Album/ba03: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc09/DateModified dc44/Name dc05/AssociationType dc08/DateCreated dc46/Artist dc8c/Genre dc9b/AlbumArtist dc87/Width dc88/Height dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc85/RepresentativeSampleDuration dc86/RepresentativeSampleData d901/BuyFlag + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Phone + VolumeLabel: ABCDEFGH01234567 + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 12351995904 (11779 MB) + Free Space (Bytes): 12344688640 (11772 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 10] value: 90% (90) +Synchronization Partner(0xd401):(readwrite) (type=0xffff) Longhorn Sync Engine ('Longhorn Sync Engine') +Friendly Device Name(0xd402):(readwrite) (type=0xffff) GT-I9100 ('GT-I9100') +Property 0xd404:(read only) (type=0x2) 1 +Perceived Device Type(0xd407):(read only) (type=0x6) 3 + +Device info: +Manufacturer: SAMSUNG Electronics Co. Ltd. + Model: GT-I9100 + device version: V1.0 + serial number: 'nnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; microsoft.com/WMPPD: 11.0; microsoft.com/WMPPD: 10.0; microsoft.com/WMDRMPD:10.1; microsoft.com/playready:1.10; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9810 + 0x9811 + 0x9802 + 0x9801 + 0x9803 + 0x9804 + 0x9805 + 0x9806 + 0x9201 + 0x9202 + 0x1011 + 0x1012 + 0x1017 + 0x1019 + 0x101a + 0x9807 + 0x9808 + 0x9100 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b + 0x910c + 0x910d + 0x910e + 0x910f + 0x9110 + 0x9111 + 0x9112 + 0x9113 + 0x9114 + 0x9115 + 0x9116 +Events Supported: + 0x4004 + 0x4005 +Device Properties Supported: + 0x5001 + 0xd401 + 0xd402 + 0xd404 + 0xd407 + 0xd101 + 0xd102 + 0xd103 + 0xd104 + 0xd105 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-nx01.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-nx01.txt new file mode 100644 index 00000000..2691f1f0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-nx01.txt @@ -0,0 +1,753 @@ +localhost: ~$ uname -a +Linux 2.6.35.7-xeno15 #1 SMP Wed Jan 26 12:08:04 EST 2011 x86_64 GNU/Linux + +############################################################################ + +localhost: ~$ gphoto2 -v +gphoto2 2.5.2 + +Copyright (c) 2000-2013 Lutz Mueller and others + +gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may +redistribute copies of gphoto2 under the terms of the GNU General Public +License. For more information about these matters, see the files named COPYING. + +This version of gphoto2 is using the following software versions and options: +gphoto2 2.5.2 gcc, popt(m), no exif, no cdk, no aa, jpeg, no readline +libgphoto2 2.5.2 all camlibs, gcc, ltdl, no EXIF +libgphoto2_port 0.10.0 gcc, ltdl, USB, serial without locking + + +############################################################################ + +localhost: ~$ lsusb | grep -i samsung +Bus 005 Device 007: ID 04e8:140c Samsung Electronics Co., Ltd + +############################################################################# + +localhost: ~$ lsusb -v +Bus 005 Device 007: ID 04e8:140c Samsung Electronics Co., Ltd +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 2.10 + bDeviceClass 239 Miscellaneous Device + bDeviceSubClass 2 ? + bDeviceProtocol 1 Interface Association + bMaxPacketSize0 64 + idVendor 0x04e8 Samsung Electronics Co., Ltd + idProduct 0x140c + bcdDevice 2.34 + iManufacturer 1 Samsung + iProduct 2 SAMSUNG + iSerial 0 + bNumConfigurations 2 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 39 + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xc0 + Self Powered + MaxPower 96mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 3 + bInterfaceClass 6 Imaging + bInterfaceSubClass 1 Still Image Capture + bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470) + iInterface 5 Samsung MTP + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0200 1x 512 bytes + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x01 EP 1 OUT + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0200 1x 512 bytes + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x82 EP 2 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0040 1x 64 bytes + bInterval 6 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 39 + bNumInterfaces 1 + bConfigurationValue 2 + iConfiguration 0 + bmAttributes 0xc0 + Self Powered + MaxPower 96mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 3 + bInterfaceClass 6 Imaging + bInterfaceSubClass 1 Still Image Capture + bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470) + iInterface 5 Samsung MTP + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0200 1x 512 bytes + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x01 EP 1 OUT + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0200 1x 512 bytes + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x82 EP 2 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0040 1x 64 bytes + bInterval 6 +Device Qualifier (for other device speed): + bLength 10 + bDescriptorType 6 + bcdUSB 2.10 + bDeviceClass 239 Miscellaneous Device + bDeviceSubClass 2 ? + bDeviceProtocol 1 Interface Association + bMaxPacketSize0 64 + bNumConfigurations 2 +Device Status: 0x0001 + Self Powered + +############################################################################# + +localhost: ~$ gphoto2 --auto-detect +Model Port +---------------------------------------------------------- +USB PTP Class Camera usb:005,007 + +############################################################################# + +localhost: ~$ gphoto2 --summary >summary.txt + +Camera summary: +Manufacturer: SAMSUNG Electronics Co. Ltd. +Model: SAMSUNG NX1 + Version: V1.0 + +Capture Formats: Unknown(0000) +Display Formats: Unknown(b984), Unknown(b982), MP3, Unknown(b901), Unknown(b981), JPEG, Association/Directory, Unknown(ba05), Unknown(b906), Undefined Type, GIF, BMP, PNG, MS Wave, MS AVI, MPEG, ASF, Unknown(ba03) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00020001: + StorageDescription: Card + VolumeLabel: -20001 + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 15923150848 (15185 MB) + Free Space (Bytes): 15464103936 (14747 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):cannot be queried. +Property 0xd401:cannot be queried. +Property 0xd402:cannot be queried. +Property 0xd404:cannot be queried. +Property 0xd407:cannot be queried. + +############################################################################# + +localhost: ~$ gphoto2 --list-all-config > config.txt +Segmentation fault + +############################################################################# + +localhost: ~$ gphoto2 --summary --debug-logfile=summary.log --debug +Camera summary: +Manufacturer: SAMSUNG Electronics Co. Ltd. +Model: SAMSUNG NX1 + Version: V1.0 + +Capture Formats: Unknown(0000) +Display Formats: Unknown(b984), Unknown(b982), MP3, Unknown(b901), Unknown(b981), JPEG, Association/Directory, Unknown(ba05), Unknown(b906), Undefined Type, GIF, BMP, PNG, MS Wave, MS AVI, MPEG, ASF, Unknown(ba03) + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00020001: + StorageDescription: Card + VolumeLabel: -20001 + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 15923150848 (15185 MB) + Free Space (Bytes): 15464103936 (14747 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):cannot be queried. +Property 0xd401:cannot be queried. +Property 0xd402:cannot be queried. +Property 0xd404:cannot be queried. +Property 0xd407:cannot be queried. + +############################################################################ +localhost: ~$ cat summary.log + +0.000021 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: +0.000044 main(2): gphoto2 2.5.2 +0.000047 main(2): gphoto2 has been compiled with the following options: +0.000049 main(2): + gcc (C compiler used) +0.000051 main(2): + popt (mandatory, for handling command-line parameters) +0.000052 main(2): + no exif (for displaying EXIF information) +0.000054 main(2): + no cdk (for accessing configuration options) +0.000056 main(2): + no aa (for displaying live previews) +0.000057 main(2): + jpeg (for displaying live previews in JPEG format) +0.000059 main(2): + no readline (for easy navigation in the shell) +0.000063 main(2): libgphoto2 2.5.2 +0.000065 main(2): libgphoto2 has been compiled with the following options: +0.000067 main(2): + all camlibs +0.000068 main(2): + gcc (C compiler used) +0.000070 main(2): + ltdl (for portable loading of camlibs) +0.000072 main(2): + no EXIF (for special handling of EXIF files) +0.000074 main(2): libgphoto2_port 0.10.0 +0.000076 main(2): libgphoto2_port has been compiled with the following options: +0.000078 main(2): + gcc (C compiler used) +0.000080 main(2): + ltdl (for portable loading of camlibs) +0.000081 main(2): + USB (libusb0, for USB cameras) +0.000083 main(2): + serial (for serial cameras) +0.000084 main(2): + no resmgr (serial port access and locking) +0.000086 main(2): + no ttylock (serial port locking) +0.000087 main(2): + no lockdev (serial port locking) +0.000089 main(2): CAMLIBS env var not set, using compile-time default instead +0.000090 main(2): IOLIBS env var not set, using compile-time default instead +0.000110 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto +0.000137 setting/gphoto2-setting.c(2): Loading settings from file "/home/boboka/.gphoto/settings" +0.000335 main(2): The user has not specified both a model and a port. Try to figure them out. +0.000358 gphoto2-port-info-list(2): Using ltdl to load io-drivers from '/usr/local/lib/libgphoto2_port/0.10.0'... +0.000407 gphoto2-port-info-list(2): Called for filename '/usr/local/lib/libgphoto2_port/0.10.0/disk'. +0.000530 gphoto2-port/disk(2): found fstab fsname proc +0.000536 gphoto2-port/disk(2): found fstab fsname /dev/md2 +0.000544 gphoto2-port/disk(2): found fstab fsname /dev/md1 +0.000550 gphoto2-port/disk(2): found fstab fsname /dev/md3 +0.000555 gphoto2-port/disk(2): found fstab fsname /dev/md5 +0.000561 gphoto2-port/disk(2): found fstab fsname /dev/md6 +0.000566 gphoto2-port/disk(2): found fstab fsname /dev/md7 +0.000572 gphoto2-port/disk(2): found fstab fsname /dev/md8 +0.000590 gphoto2-port/disk(2): found mtab fsname /dev/md2 +0.000596 gphoto2-port/disk(2): found mtab fsname tmpfs +0.000604 gphoto2-port/disk(2): found mtab fsname proc +0.000607 gphoto2-port/disk(2): found mtab fsname sysfs +0.000610 gphoto2-port/disk(2): found mtab fsname udev +0.000616 gphoto2-port/disk(2): found mtab fsname tmpfs +0.000622 gphoto2-port/disk(2): found mtab fsname devpts +0.000625 gphoto2-port/disk(2): found mtab fsname /dev/md1 +0.000630 gphoto2-port/disk(2): found mtab fsname /dev/md5 +0.000635 gphoto2-port/disk(2): found mtab fsname /dev/md6 +0.000640 gphoto2-port/disk(2): found mtab fsname /dev/md7 +0.000645 gphoto2-port/disk(2): found mtab fsname /dev/md8 +0.000650 gphoto2-port/disk(2): found mtab fsname rpc_pipefs +0.000660 gphoto2-port/disk(2): found mtab fsname fusectl +0.000662 gphoto2-port/disk(2): found mtab fsname nfsd +0.000665 gphoto2-port/disk(2): found mtab fsname binfmt_misc +0.000696 gphoto2-port-info-list(2): Could not load port driver list: 'Unspecified error'. +0.000700 gphoto2-port-info-list(2): Loaded '' ('^disk:') from '/usr/local/lib/libgphoto2_port/0.10.0/disk'. +0.000703 gphoto2-port-info-list(2): Called for filename '/usr/local/lib/libgphoto2_port/0.10.0/ptpip'. +0.000762 gphoto2-port-info-list(2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/local/lib/libgphoto2_port/0.10.0/ptpip'. +0.000766 gphoto2-port-info-list(2): Loaded '' ('^ptpip:') from '/usr/local/lib/libgphoto2_port/0.10.0/ptpip'. +0.000768 gphoto2-port-info-list(2): Called for filename '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000890 gphoto2-port-info-list(2): Loaded 'Serial Port 0' ('serial:/dev/ttyS0') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000894 gphoto2-port-info-list(2): Loaded 'Serial Port 1' ('serial:/dev/ttyS1') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000897 gphoto2-port-info-list(2): Loaded 'Serial Port 2' ('serial:/dev/ttyS2') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000900 gphoto2-port-info-list(2): Loaded 'Serial Port 3' ('serial:/dev/ttyS3') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000903 gphoto2-port-info-list(2): Loaded 'Serial Port 4' ('serial:/dev/ttyS4') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000905 gphoto2-port-info-list(2): Loaded 'Serial Port 5' ('serial:/dev/ttyS5') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000908 gphoto2-port-info-list(2): Loaded 'Serial Port 6' ('serial:/dev/ttyS6') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000911 gphoto2-port-info-list(2): Loaded 'Serial Port 7' ('serial:/dev/ttyS7') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000913 gphoto2-port-info-list(2): Loaded 'Serial Port 8' ('serial:/dev/ttyS8') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000916 gphoto2-port-info-list(2): Loaded 'Serial Port 9' ('serial:/dev/ttyS9') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000919 gphoto2-port-info-list(2): Loaded 'Serial Port 10' ('serial:/dev/ttyS10') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000922 gphoto2-port-info-list(2): Loaded 'Serial Port 11' ('serial:/dev/ttyS11') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000925 gphoto2-port-info-list(2): Loaded 'Serial Port 12' ('serial:/dev/ttyS12') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000927 gphoto2-port-info-list(2): Loaded 'Serial Port 13' ('serial:/dev/ttyS13') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000930 gphoto2-port-info-list(2): Loaded '' ('^serial:') from '/usr/local/lib/libgphoto2_port/0.10.0/serial'. +0.000933 gphoto2-port-info-list(2): Called for filename '/usr/local/lib/libgphoto2_port/0.10.0/usb'. +0.001319 gphoto2-port-info-list(2): Loaded '' ('^usb:') from '/usr/local/lib/libgphoto2_port/0.10.0/usb'. +0.001325 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' ('usb:005,007') from '/usr/local/lib/libgphoto2_port/0.10.0/usb'. +0.001328 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' ('usb:005,005') from '/usr/local/lib/libgphoto2_port/0.10.0/usb'. +0.001330 gphoto2-port-info-list(2): Called for filename '/usr/local/lib/libgphoto2_port/0.10.0/usbdiskdirect'. +0.001516 gphoto2-port-info-list(2): Called for filename '/usr/local/lib/libgphoto2_port/0.10.0/usbscsi'. +0.001588 gphoto2-port-info-list(2): Counting entries (21 available)... +0.001592 gphoto2-port-info-list(2): 17 regular entries available. +0.001601 gphoto2-abilities-list(2): Using ltdl to load camera libraries from '/usr/local/lib/libgphoto2/2.5.2'... +0.001793 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/adc65'. +0.001798 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/agfa_cl20'. +0.001800 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/aox'. +0.001802 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/ax203'. +0.001804 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/barbie'. +0.001806 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/canon'. +0.001808 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/casio_qv'. +0.001810 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/clicksmart310'. +0.001812 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/digigr8'. +0.001814 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/digita'. +0.001816 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/dimagev'. +0.001818 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/dimera3500'. +0.001819 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/directory'. +0.001821 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/enigma13'. +0.001827 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/fuji'. +0.001829 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/gsmart300'. +0.001831 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/hp215'. +0.001833 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/iclick'. +0.001835 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/jamcam'. +0.001837 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/jd11'. +0.001838 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/jl2005a'. +0.001840 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/jl2005c'. +0.001842 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/kodak_dc120'. +0.001844 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/kodak_dc210'. +0.001846 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/kodak_dc240'. +0.001848 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/kodak_dc3200'. +0.001850 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/kodak_ez200'. +0.001852 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/konica'. +0.001853 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/konica_qm150'. +0.001855 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/largan'. +0.001857 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/lg_gsm'. +0.001859 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/mars'. +0.001861 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/mustek'. +0.001862 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/panasonic_coolshot'. +0.001864 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/panasonic_dc1000'. +0.001866 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/panasonic_dc1580'. +0.001868 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/panasonic_l859'. +0.001870 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/pccam300'. +0.001872 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/pccam600'. +0.001873 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/pentax'. +0.001875 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/polaroid_pdc320'. +0.001877 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/polaroid_pdc640'. +0.001879 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/polaroid_pdc700'. +0.001881 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/ptp2'. +0.001882 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/ricoh'. +0.001884 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/ricoh_g3'. +0.001886 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/samsung'. +0.001888 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/sierra'. +0.001889 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/sipix_blink2'. +0.001891 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/sipix_web2'. +0.001893 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/smal'. +0.001895 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/sonix'. +0.001897 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/sony_dscf1'. +0.001898 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/sony_dscf55'. +0.001900 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/soundvision'. +0.001902 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/spca50x'. +0.001904 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/sq905'. +0.001906 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/st2205'. +0.001907 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/stv0674'. +0.001909 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/stv0680'. +0.001911 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/sx330z'. +0.001915 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/topfield'. +0.001917 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/toshiba_pdrm11'. +0.001919 gphoto2-abilities-list(2): Found '/usr/local/lib/libgphoto2/2.5.2/tp6801'. +0.001923 gp-abilities-list(2): Found 64 camera drivers. +0.012277 gphoto2-port-info-list(2): Counting entries (21 available)... +0.012290 gphoto2-port-info-list(2): 17 regular entries available. +0.012293 gphoto2-port(2): Creating new device... +0.012298 gphoto2-port-info-list(2): Getting info of entry 0 (21 available)... +0.012371 gphoto2-port(2): Setting settings... +0.012377 gphoto2-port-info-list(2): Getting info of entry 1 (21 available)... +0.012435 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.012439 gphoto2-port(2): Setting settings... +0.012442 gphoto2-port-info-list(2): Getting info of entry 2 (21 available)... +0.012495 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.012499 gphoto2-port(2): Setting settings... +0.012502 gphoto2-port-info-list(2): Getting info of entry 3 (21 available)... +0.012553 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.012556 gphoto2-port(2): Setting settings... +0.012559 gphoto2-port-info-list(2): Getting info of entry 4 (21 available)... +0.012610 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.012613 gphoto2-port(2): Setting settings... +0.012616 gphoto2-port-info-list(2): Getting info of entry 5 (21 available)... +0.012666 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.012669 gphoto2-port(2): Setting settings... +0.012672 gphoto2-port-info-list(2): Getting info of entry 6 (21 available)... +0.012722 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.012726 gphoto2-port(2): Setting settings... +0.012729 gphoto2-port-info-list(2): Getting info of entry 7 (21 available)... +0.012779 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.012782 gphoto2-port(2): Setting settings... +0.012785 gphoto2-port-info-list(2): Getting info of entry 8 (21 available)... +0.012835 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.012838 gphoto2-port(2): Setting settings... +0.012841 gphoto2-port-info-list(2): Getting info of entry 9 (21 available)... +0.012891 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.012894 gphoto2-port(2): Setting settings... +0.012897 gphoto2-port-info-list(2): Getting info of entry 10 (21 available)... +0.012947 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.012951 gphoto2-port(2): Setting settings... +0.012954 gphoto2-port-info-list(2): Getting info of entry 11 (21 available)... +0.013004 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.013008 gphoto2-port(2): Setting settings... +0.013011 gphoto2-port-info-list(2): Getting info of entry 12 (21 available)... +0.013061 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.013065 gphoto2-port(2): Setting settings... +0.013068 gphoto2-port-info-list(2): Getting info of entry 13 (21 available)... +0.013118 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.013121 gphoto2-port(2): Setting settings... +0.013124 gphoto2-port-info-list(2): Getting info of entry 14 (21 available)... +0.013174 gphoto2-port(2): Setting timeout to 500 millisecond(s)... +0.013178 gphoto2-port(2): Setting settings... +0.013181 gphoto2-port-info-list(2): Getting info of entry 15 (21 available)... +0.013529 gphoto2-port(2): Setting timeout to 5000 millisecond(s)... +0.013533 gphoto2-port(2): Setting settings... +0.013537 libusb(2): gp_port_usb_update(old int=0, conf=-1, alt=-1) port usb:005,007, (new int=0, conf=-1, alt=-1), port usb:005,007 +0.013540 gphoto2-abilities-list.c(1): Auto-detecting USB cameras... +0.013901 gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)... +0.014251 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)... +0.014254 libusb(1): Found USB class device (class 0x6, subclass, 0x1, protocol 0x1) +0.014256 libusb(2): inep to look for is 81 +0.014259 libusb(1): Detected defaults: config 1, interface 0, altsetting 0, idVendor ID 04e8, idProduct 140c, inep 81, outep 01, intep 82 +0.014269 gphoto2-abilities-list.c(2): Found 'USB PTP Class Camera' (0x6,0x1,0x1) +0.014274 gphoto2-port-info-list(2): Getting info of entry 16 (21 available)... +0.014620 gphoto2-port(2): Setting timeout to 5000 millisecond(s)... +0.014626 gphoto2-port(2): Setting settings... +0.014629 libusb(2): gp_port_usb_update(old int=0, conf=-1, alt=-1) port usb:005,005, (new int=0, conf=-1, alt=-1), port usb:005,005 +0.014632 gphoto2-abilities-list.c(1): Auto-detecting USB cameras... +0.014993 gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)... +0.015285 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)... +0.015299 gphoto2-port(2): Freeing port... +0.015303 gphoto2-port(2): Closing port... +0.015377 gphoto2-camera(2): Setting abilities ('USB PTP Class Camera')... +0.015382 gphoto2-setting(2): Setting key 'model' to value 'USB PTP Class Camera' (gphoto2) +0.015386 gphoto2-setting(2): Saving 3 setting(s) to file "/home/boboka/.gphoto/settings" +0.031861 gphoto2-port-info-list(2): Looking for path 'usb:005,007' (21 entries available)... +0.031871 gphoto2-port-info-list(2): Getting info of entry 15 (21 available)... +0.031875 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:005,007'... +0.032263 gphoto2-port(2): Setting timeout to 5000 millisecond(s)... +0.032268 gphoto2-port(2): Setting settings... +0.032272 libusb(2): gp_port_usb_update(old int=0, conf=-1, alt=-1) port usb:005,007, (new int=0, conf=-1, alt=-1), port usb:005,007 +0.032276 gphoto2-setting(2): Setting key 'port' to value 'usb:005,007' (gphoto2) +0.032279 gphoto2-setting(2): Saving 3 setting(s) to file "/home/boboka/.gphoto/settings" +0.070507 gphoto2-camera(2): Initializing camera... +0.070527 gphoto2-port(0): The supplied vendor or product id (0x0,0x0) is not valid. +0.070531 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)... +0.070533 libusb(1): Found USB class device (class 0x6, subclass, 0x1, protocol 0x1) +0.070535 libusb(2): inep to look for is 81 +0.070538 libusb(1): Detected defaults: config 1, interface 0, altsetting 0, idVendor ID 04e8, idProduct 140c, inep 81, outep 01, intep 82 +0.070540 gphoto2-camera(2): Loading '/usr/local/lib/libgphoto2/2.5.2/ptp2'... +0.070711 gphoto2-port(2): Opening USB port... +0.070717 libusb(2): gp_port_usb_open(0x1b57830) +0.070736 libusb(2): claiming interface 0 +0.070766 ptp2(2): maxpacketsize 512 +0.070773 gphoto2-port(2): Setting timeout to 8000 millisecond(s)... +0.070778 ptp(2): PTP: Opening session +0.070783 gphoto2-port(2): Writing 16=0x10 byte(s) to port... +0.070787 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: +0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00 ................ + +0.070975 ptp2/ptp_usb_getresp(2): reading response +0.070983 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.070992 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.113964 gphoto2-port(2): Could only read 16 out of 512 byte(s) +0.113973 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: +0000 10 00 00 00 03 00 1e 20-00 00 00 00 01 00 00 00 ....... ........ + +0.113975 ptp2/usb_getresp(2): request code 0x1002 getting resp error 0x201e +0.113979 gphoto2-port(2): Setting timeout to 20000 millisecond(s)... +0.113985 gphoto2-port(2): Writing 12=0xc byte(s) to port... +0.113988 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 01 00 01 10-01 00 00 00 ............ + +0.114076 ptp2/ptp_usb_getdata(2): reading data +0.114078 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.114081 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.155580 gphoto2-port(2): Could only read 239 out of 512 byte(s) +0.155593 gphoto2-port(3): Hexdump of 239 = 0xef bytes follows: +0000 ef 00 00 00 02 00 01 10-01 00 00 00 64 00 00 00 ............d... +0010 00 00 00 00 00 00 00 15-00 00 00 01 10 02 10 03 ................ +0020 10 04 10 05 10 06 10 07-10 08 10 09 10 0b 10 0c ................ +0030 10 0d 10 0f 10 1b 10 0a-10 10 10 11 10 00 90 02 ................ +0040 91 03 91 04 91 04 00 00-00 02 40 03 40 04 40 05 ..........@.@.@. +0050 40 05 00 00 00 01 50 01-d4 02 d4 04 d4 07 d4 01 @.....P......... +0060 00 00 00 00 00 12 00 00-00 84 b9 82 b9 09 30 01 ..............0. +0070 b9 81 b9 01 38 01 30 05-ba 06 b9 00 30 07 38 04 ....8.0.....0.8. +0080 38 0b 38 08 30 0a 30 0b-30 0c 30 03 ba 1e 53 00 8.8.0.0.0.0...S. +0090 41 00 4d 00 53 00 55 00-4e 00 47 00 20 00 45 00 A.M.S.U.N.G. .E. +00a0 6c 00 65 00 63 00 74 00-72 00 6f 00 6e 00 69 00 l.e.c.t.r.o.n.i. +00b0 63 00 73 00 20 00 43 00-6f 00 2e 00 20 00 4c 00 c.s. .C.o... .L. +00c0 74 00 64 00 2e 00 20 00-00 00 0c 53 00 41 00 4d t.d... ....S.A.M +00d0 00 53 00 55 00 4e 00 47-00 20 00 4e 00 58 00 31 .S.U.N.G. .N.X.1 +00e0 00 00 00 05 56 00 31 00-2e 00 30 00 00 00 00 ....V.1...0.... + +0.155606 ptp2/ptp_usb_getresp(2): reading response +0.155608 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.155612 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.155695 gphoto2-port(2): Could only read 12 out of 512 byte(s) +0.155699 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-01 00 00 00 ....... .... + +0.155716 PTP2/ptp2/library.c(2): Device info: +0.155718 PTP2/ptp2/library.c(2): Manufacturer: SAMSUNG Electronics Co. Ltd. +0.155720 PTP2/ptp2/library.c(2): Model: SAMSUNG NX1 +0.155722 PTP2/ptp2/library.c(2): device version: V1.0 +0.155724 PTP2/ptp2/library.c(2): serial number: '(null)' +0.155726 PTP2/ptp2/library.c(2): Vendor extension ID: 0x00000000 +0.155727 PTP2/ptp2/library.c(2): Vendor extension version: 0 +0.155730 PTP2/ptp2/library.c(2): Vendor extension description: (null) +0.155732 PTP2/ptp2/library.c(2): Functional Mode: 0x0000 +0.155734 PTP2/ptp2/library.c(2): PTP Standard Version: 100 +0.155735 PTP2/ptp2/library.c(2): Supported operations: +0.155737 PTP2/ptp2/library.c(2): 0x1001 +0.155738 PTP2/ptp2/library.c(2): 0x1002 +0.155740 PTP2/ptp2/library.c(2): 0x1003 +0.155742 PTP2/ptp2/library.c(2): 0x1004 +0.155743 PTP2/ptp2/library.c(2): 0x1005 +0.155745 PTP2/ptp2/library.c(2): 0x1006 +0.155746 PTP2/ptp2/library.c(2): 0x1007 +0.155748 PTP2/ptp2/library.c(2): 0x1008 +0.155749 PTP2/ptp2/library.c(2): 0x1009 +0.155751 PTP2/ptp2/library.c(2): 0x100b +0.155752 PTP2/ptp2/library.c(2): 0x100c +0.155754 PTP2/ptp2/library.c(2): 0x100d +0.155755 PTP2/ptp2/library.c(2): 0x100f +0.155757 PTP2/ptp2/library.c(2): 0x101b +0.155758 PTP2/ptp2/library.c(2): 0x100a +0.155760 PTP2/ptp2/library.c(2): 0x1010 +0.155761 PTP2/ptp2/library.c(2): 0x1011 +0.155763 PTP2/ptp2/library.c(2): 0x9000 +0.155765 PTP2/ptp2/library.c(2): 0x9102 +0.155766 PTP2/ptp2/library.c(2): 0x9103 +0.155768 PTP2/ptp2/library.c(2): 0x9104 +0.155769 PTP2/ptp2/library.c(2): Events Supported: +0.155771 PTP2/ptp2/library.c(2): 0x4002 +0.155772 PTP2/ptp2/library.c(2): 0x4003 +0.155774 PTP2/ptp2/library.c(2): 0x4004 +0.155775 PTP2/ptp2/library.c(2): 0x4005 +0.155777 PTP2/ptp2/library.c(2): Device Properties Supported: +0.155778 PTP2/ptp2/library.c(2): 0x5001 +0.155780 PTP2/ptp2/library.c(2): 0xd401 +0.155782 PTP2/ptp2/library.c(2): 0xd402 +0.155783 PTP2/ptp2/library.c(2): 0xd404 +0.155785 PTP2/ptp2/library.c(2): 0xd407 +0.155790 ptp_list_folder(2): (storage=0xffffffff, handle=0xffffffff) +0.155792 ptp_list_folder(2): Listing ... +0.155797 gphoto2-port(2): Writing 24=0x18 byte(s) to port... +0.155800 gphoto2-port(3): Hexdump of 24 = 0x18 bytes follows: +0000 18 00 00 00 01 00 07 10-02 00 00 00 ff ff ff ff ................ +0010 00 00 00 00 ff ff ff ff- ........ + +0.155944 ptp2/ptp_usb_getdata(2): reading data +0.155946 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.155949 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.156583 gphoto2-port(2): Could only read 40 out of 512 byte(s) +0.156591 gphoto2-port(3): Hexdump of 40 = 0x28 bytes follows: +0000 28 00 00 00 02 00 07 10-02 00 00 00 06 00 00 00 (............... +0010 01 00 00 00 02 00 00 00-03 00 00 00 04 00 00 00 ................ +0020 05 00 00 00 06 00 00 00- ........ + +0.156599 ptp2/ptp_usb_getresp(2): reading response +0.156601 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.156604 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.156695 gphoto2-port(2): Could only read 12 out of 512 byte(s) +0.156698 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-02 00 00 00 ....... .... + +0.156701 ptp_list_folder(2): adding new objectid 0x00000001 (nrofobs=0,j=0) +0.156703 ptp_list_folder(2): parenthandle 0x00000000 +0.156705 ptp_list_folder(2): adding new objectid 0x00000002 (nrofobs=1,j=1) +0.156707 ptp_list_folder(2): parenthandle 0x00000000 +0.156709 ptp_list_folder(2): adding new objectid 0x00000003 (nrofobs=2,j=2) +0.156711 ptp_list_folder(2): parenthandle 0x00000000 +0.156713 ptp_list_folder(2): adding new objectid 0x00000004 (nrofobs=3,j=3) +0.156715 ptp_list_folder(2): parenthandle 0x00000000 +0.156716 ptp_list_folder(2): adding new objectid 0x00000005 (nrofobs=4,j=4) +0.156718 ptp_list_folder(2): parenthandle 0x00000000 +0.156720 ptp_list_folder(2): adding new objectid 0x00000006 (nrofobs=5,j=5) +0.156721 ptp_list_folder(2): parenthandle 0x00000000 +0.156730 gphoto2-port(2): Writing 12=0xc byte(s) to port... +0.156733 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 01 00 04 10-03 00 00 00 ............ + +0.156818 ptp2/ptp_usb_getdata(2): reading data +0.156820 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.156823 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.157320 gphoto2-port(2): Could only read 20 out of 512 byte(s) +0.157324 gphoto2-port(3): Hexdump of 20 = 0x14 bytes follows: +0000 14 00 00 00 02 00 04 10-03 00 00 00 01 00 00 00 ................ +0010 01 00 02 00 - .... + +0.157326 ptp2/ptp_usb_getresp(2): reading response +0.157328 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.157330 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.157444 gphoto2-port(2): Could only read 12 out of 512 byte(s) +0.157447 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-03 00 00 00 ....... .... + +0.157450 ptp_list_folder(2): (storage=0x00020001, handle=0xffffffff) +0.157452 ptp_list_folder(2): Listing ... +0.157455 gphoto2-port(2): Writing 24=0x18 byte(s) to port... +0.157458 gphoto2-port(3): Hexdump of 24 = 0x18 bytes follows: +0000 18 00 00 00 01 00 07 10-04 00 00 00 01 00 02 00 ................ +0010 00 00 00 00 ff ff ff ff- ........ + +0.157568 ptp2/ptp_usb_getdata(2): reading data +0.157570 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.157573 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.160713 gphoto2-port(2): Could only read 24 out of 512 byte(s) +0.160720 gphoto2-port(3): Hexdump of 24 = 0x18 bytes follows: +0000 18 00 00 00 02 00 07 10-04 00 00 00 02 00 00 00 ................ +0010 07 00 00 00 08 00 00 00- ........ + +0.160723 ptp2/ptp_usb_getresp(2): reading response +0.160725 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.160727 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.160819 gphoto2-port(2): Could only read 12 out of 512 byte(s) +0.160822 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-04 00 00 00 ....... .... + +0.160825 ptp_list_folder(2): adding new objectid 0x00000007 (nrofobs=6,j=6) +0.160827 ptp_list_folder(2): parenthandle 0x00000000 +0.160829 ptp_list_folder(2): storage 0x00020001 +0.160830 ptp_list_folder(2): adding new objectid 0x00000008 (nrofobs=7,j=7) +0.160832 ptp_list_folder(2): parenthandle 0x00000000 +0.160834 ptp_list_folder(2): storage 0x00020001 +0.160896 gphoto2-port(2): Writing 12=0xc byte(s) to port... +0.160900 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 01 00 04 10-05 00 00 00 ............ + +0.161067 ptp2/ptp_usb_getdata(2): reading data +0.161069 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.161072 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.161693 gphoto2-port(2): Could only read 20 out of 512 byte(s) +0.161697 gphoto2-port(3): Hexdump of 20 = 0x14 bytes follows: +0000 14 00 00 00 02 00 04 10-05 00 00 00 01 00 00 00 ................ +0010 01 00 02 00 - .... + +0.161699 ptp2/ptp_usb_getresp(2): reading response +0.161701 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.161703 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.161818 gphoto2-port(2): Could only read 12 out of 512 byte(s) +0.161821 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-05 00 00 00 ....... .... + +0.161827 gphoto2-port(2): Writing 16=0x10 byte(s) to port... +0.161830 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: +0000 10 00 00 00 01 00 05 10-06 00 00 00 01 00 02 00 ................ + +0.161941 ptp2/ptp_usb_getdata(2): reading data +0.161943 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.161946 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.162704 gphoto2-port(2): Could only read 64 out of 512 byte(s) +0.162712 gphoto2-port(3): Hexdump of 64 = 0x40 bytes follows: +0000 40 00 00 00 02 00 05 10-06 00 00 00 04 00 02 00 @............... +0010 00 00 00 00 18 b5 03 00-00 00 00 80 bb 99 03 00 ................ +0020 00 00 ff ff ff ff 05 43-00 61 00 72 00 64 00 00 .......C.a.r.d.. +0030 00 07 2d 00 32 00 30 00-30 00 30 00 31 00 00 00 ..-.2.0.0.0.1... + +0.162715 ptp2/ptp_usb_getresp(2): reading response +0.162717 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.162719 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.162818 gphoto2-port(2): Could only read 12 out of 512 byte(s) +0.162822 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-06 00 00 00 ....... .... + +0.162839 gphoto2-port(2): Writing 12=0xc byte(s) to port... +0.162842 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 01 00 01 10-07 00 00 00 ............ + +0.162942 ptp2/ptp_usb_getdata(2): reading data +0.162944 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.162947 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.203959 gphoto2-port(2): Could only read 239 out of 512 byte(s) +0.203971 gphoto2-port(3): Hexdump of 239 = 0xef bytes follows: +0000 ef 00 00 00 02 00 01 10-07 00 00 00 64 00 00 00 ............d... +0010 00 00 00 00 00 00 00 15-00 00 00 01 10 02 10 03 ................ +0020 10 04 10 05 10 06 10 07-10 08 10 09 10 0b 10 0c ................ +0030 10 0d 10 0f 10 1b 10 0a-10 10 10 11 10 00 90 02 ................ +0040 91 03 91 04 91 04 00 00-00 02 40 03 40 04 40 05 ..........@.@.@. +0050 40 05 00 00 00 01 50 01-d4 02 d4 04 d4 07 d4 01 @.....P......... +0060 00 00 00 00 00 12 00 00-00 84 b9 82 b9 09 30 01 ..............0. +0070 b9 81 b9 01 38 01 30 05-ba 06 b9 00 30 07 38 04 ....8.0.....0.8. +0080 38 0b 38 08 30 0a 30 0b-30 0c 30 03 ba 1e 53 00 8.8.0.0.0.0...S. +0090 41 00 4d 00 53 00 55 00-4e 00 47 00 20 00 45 00 A.M.S.U.N.G. .E. +00a0 6c 00 65 00 63 00 74 00-72 00 6f 00 6e 00 69 00 l.e.c.t.r.o.n.i. +00b0 63 00 73 00 20 00 43 00-6f 00 2e 00 20 00 4c 00 c.s. .C.o... .L. +00c0 74 00 64 00 2e 00 20 00-00 00 0c 53 00 41 00 4d t.d... ....S.A.M +00d0 00 53 00 55 00 4e 00 47-00 20 00 4e 00 58 00 31 .S.U.N.G. .N.X.1 +00e0 00 00 00 05 56 00 31 00-2e 00 30 00 00 00 00 ....V.1...0.... + +0.203975 ptp2/ptp_usb_getresp(2): reading response +0.203977 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.203980 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.204061 gphoto2-port(2): Could only read 12 out of 512 byte(s) +0.204065 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-07 00 00 00 ....... .... + +0.204318 gp-camera(2): Freeing camera... +0.204322 gphoto2-camera(2): Exiting camera ('USB PTP Class Camera')... +0.204327 gphoto2-port(2): Writing 12=0xc byte(s) to port... +0.204330 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 01 00 03 10-08 00 00 00 ............ + +0.204436 ptp2/ptp_usb_getresp(2): reading response +0.204443 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.204447 gphoto2-port(2): Reading 512=0x200 bytes from port... +0.204936 gphoto2-port(2): Could only read 12 out of 512 byte(s) +0.204940 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-08 00 00 00 ....... .... + +0.204948 gphoto2-port(2): Closing port... +0.204988 gphoto2-filesystem(2): resetting filesystem +0.204991 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list... +0.204994 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty +0.204995 gphoto2-filesystem(2): Internally deleting all folders from '/'... +0.204997 gphoto2-filesystem(2): Lookup folder '/'... +0.204999 gphoto2-filesystem(2): Found! / is 0x1b56400 +0.205001 gphoto2-filesystem(2): Recurse delete folder 0x1b56400// +0.205005 gphoto2-port(2): Freeing port... +0.205007 gphoto2-port(2): Closing port... +0.205028 gphoto2-filesystem(2): resetting filesystem +0.205030 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list... +0.205032 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty +0.205033 gphoto2-filesystem(2): Internally deleting all folders from '/'... +0.205035 gphoto2-filesystem(2): Lookup folder '/'... +0.205037 gphoto2-filesystem(2): Found! / is 0x1b56400 +0.205038 gphoto2-filesystem(2): Recurse delete folder 0x1b56400// + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-nx1000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-nx1000.txt new file mode 100644 index 00000000..9016e090 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-nx1000.txt @@ -0,0 +1,131 @@ +Device info: +Manufacturer: Samsung + Model: SAMSUNG Digital Camera + device version: 1.0 + serial number: '(null)' +Vendor extension ID: 0x0000001a +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100b + 0x100c + 0x100d + 0x101b + 0x100f + 0x1010 + 0x1011 + 0x1014 + 0x1015 + 0x1016 + 0x1017 + 0x9000 + 0x9102 + 0x9103 + 0x9006 + 0x9007 + 0x9004 + 0x9005 + 0x9001 + 0x9002 + 0x9003 + 0x9008 + 0x9009 + 0x97ff + 0x900a + 0x900b +Events Supported: + 0x4005 + 0x4009 + 0xc001 + 0xc002 + 0xc003 + 0x0000 +Device Properties Supported: + 0xdefe + 0xe7fd + 0xfff4 + 0xe59f + 0xf0f4 + 0xe59f + 0xf0f4 + 0xe59f + 0xf0f4 + 0xe59f + 0xa2e2 + 0x22bf + 0xf0f4 + 0xe59f + 0x2d2f + 0x8362 + 0x6ebf + 0x7ea5 + 0x2bf7 + 0xfa18 + 0xadeb + 0xe663 + 0xb3e8 + 0xfbde + 0xe6ff + 0xbdcf + 0x7fb7 + 0xaaef + 0xcaee + 0x41f3 + 0xf6bf + 0x68ac + 0xe1ef + 0xa8ed + 0xffbc + 0xb837 + 0x6bff + 0xfbfa + 0xeffe + 0x677a + 0xdf7f + 0xe328 + 0xbdeb + 0x0b91 + 0xdfef + 0x7594 + 0xaefe + 0xacaa + 0x8fa7 + 0x4b96 + 0x3fff + 0xe48b + 0xaeff + 0xeba6 + 0x0bf6 + 0xd1fa + 0xeffe + 0xaa21 + 0xe23c + 0xfbc6 + 0x5cee + 0x045a + 0xfce7 + 0x2e66 + 0x8ff8 + 0xa47b + 0xf9fb + 0xe06f + 0xfcb7 + 0xaacd + 0xafbd + 0x4fee + 0xfbfe + 0x7308 + 0xabff + 0xafdd diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-yh-820.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-yh-820.txt new file mode 100644 index 00000000..8d3885fc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-yh-820.txt @@ -0,0 +1,85 @@ +Device info: +Manufacturer: Samsung + model: Samsung PTP Device + device version: PP5020AF-05.22-PP05-05.22-PP05-05.22-DT, (Build 130) + serial number: 'xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx' +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com/WMDRMPD: 10.1 +Supported operations: + 0x1014 + 0x1015 + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1007 + 0x1008 + 0x1009 + 0x101b + 0x100c + 0x100d + 0x100b + 0x1012 + 0x1016 + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9806 + 0x9810 + 0x9811 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 +Events Supported: +Device Properties Supported: + 0x5001 + 0xd101 + 0xd102 + 0xd402 + +Camera summary: +Model: Samsung PTP Device + device version: PP5020AF-05.22-PP05-05.22-PP05-05.22-DT, (Build 130) + serial number: xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com/WMDRMPD: 10.1 + +Capture Formats: +Display Formats: Association/Directory, MP3, MS Wave, JPEG, Abstract Audio Video Playlist, WMA +Supported MTP Object Properties: + Association/Directory/3001: dc01/StorageID dc0b/ParentObject dc07/ObjectFileName dc04/ObjectSize dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc03/ProtectionStatus dc09/DateModified de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec dc8a/Rating + MP3/3009: dc01/StorageID dc0b/ParentObject dc07/ObjectFileName dc04/ObjectSize dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc03/ProtectionStatus dc09/DateModified dc8b/Track dc99/OriginalReleaseDate dc44/Name dc46/Artist dc8c/Genre dc9a/AlbumName dc89/Duration de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec dc8a/Rating + MS Wave/3008: dc01/StorageID dc0b/ParentObject dc07/ObjectFileName dc04/ObjectSize dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc03/ProtectionStatus dc09/DateModified dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec dc8a/Rating + JPEG/3801: dc01/StorageID dc0b/ParentObject dc07/ObjectFileName dc04/ObjectSize dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc03/ProtectionStatus dc09/DateModified de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec dc8a/Rating + Abstract Audio Video Playlist/ba05: dc01/StorageID dc0b/ParentObject dc07/ObjectFileName dc04/ObjectSize dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc03/ProtectionStatus dc09/DateModified de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec dc8a/Rating + WMA/b901: dc01/StorageID dc0b/ParentObject dc07/ObjectFileName dc04/ObjectSize dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc4f/NonConsumable dc03/ProtectionStatus dc09/DateModified dc8b/Track dc99/OriginalReleaseDate dc44/Name dc46/Artist dc8c/Genre dc9a/AlbumName dc89/Duration de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels de99/AudioWAVECodec dc8a/Rating + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: PPI HDD + VolumeLabel: YH-820 + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 4991205376 (4759 MB) + Free Space (Bytes): 4911346432 (4683 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 100] value: 84 +Secure Time(0xd101):(read only) (type=0x0) Undefined +Device Certificate(0xd102):(read only) (type=0x0) Undefined +Device Friendly Name(0xd402):(read only) (type=0x0) (null) (Undefined) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-yp-k3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-yp-k3.txt new file mode 100644 index 00000000..2dcc0764 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/samsung-yp-k3.txt @@ -0,0 +1,39 @@ +Camera summary: +Model: Samsung YP-K3 + device version: VER 3.09 WA JN + serial number: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com/WMDRMPD: 10.1;audible.com: 1.0; + +Capture Formats: +Display Formats: MP3, WMA, JPEG, Association/Directory, Abstract Audio Video Playlist, Undefined Type, Firmware, Abstract Audio Album +Supported MTP Object Properties: + MP3/3009: dc97/EffectiveRating dc8a/Rating dc44/Name dc01/StorageID dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc4f/NonConsumable dc02/ObjectFormat dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc03/ProtectionStatus dc8b/Track de9a/AudioBitRate dc46/Artist dc8c/Genre de93/SampleRate de94/NumberOfChannels dc9a/AlbumName dc89/Duration de99/AudioWAVECodec dc99/OriginalReleaseDate + WMA/b901: dc97/EffectiveRating dc8a/Rating dc44/Name dc01/StorageID dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc4f/NonConsumable dc02/ObjectFormat dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc03/ProtectionStatus dc8b/Track de9a/AudioBitRate dc46/Artist dc8c/Genre de93/SampleRate de94/NumberOfChannels dc9a/AlbumName dc89/Duration de99/AudioWAVECodec dc99/OriginalReleaseDate + JPEG/3801: dc97/EffectiveRating dc8a/Rating dc44/Name dc01/StorageID dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc4f/NonConsumable dc02/ObjectFormat dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc03/ProtectionStatus + Association/Directory/3001: dc97/EffectiveRating dc8a/Rating dc44/Name dc01/StorageID dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc4f/NonConsumable dc02/ObjectFormat dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc03/ProtectionStatus + Abstract Audio Video Playlist/ba05: dc97/EffectiveRating dc8a/Rating dc44/Name dc01/StorageID dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc4f/NonConsumable dc02/ObjectFormat dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc03/ProtectionStatus + Undefined Type/3000: dc97/EffectiveRating dc8a/Rating dc44/Name dc01/StorageID dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc4f/NonConsumable dc02/ObjectFormat dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc03/ProtectionStatus + Firmware/b802: dc97/EffectiveRating dc8a/Rating dc44/Name dc01/StorageID dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc4f/NonConsumable dc02/ObjectFormat dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc03/ProtectionStatus + Abstract Audio Album/ba03: dc97/EffectiveRating dc8a/Rating dc44/Name dc01/StorageID dc04/ObjectSize dc07/ObjectFileName dc09/DateModified dc4f/NonConsumable dc02/ObjectFormat dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc03/ProtectionStatus dc46/Artist dc8c/Genre + +Device Capabilities: + File Download, File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Internal Storage + VolumeLabel: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + Storage Type: Builtin RAM + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 4037017600 (3850 MB) + Free Space (Bytes): 3921702912 (3740 MB) + Free Space (Images): 17476 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 10] value: 100 +Synchronization Partner(0xd401):(readwrite) (type=0xffff) Longhorn Sync Engine ('Longhorn Sync Engine') +Device Friendly Name(0xd402):(readwrite) (type=0xffff) Samsung YP-K3 ('Samsung YP-K3') +Secure Time(0xd101):(read only) (type=0x4004) #20060311 13:33:10Z#DRM_CLK_NEEDS_REFRESHAG> diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sanyo-vpc-c5.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sanyo-vpc-c5.txt new file mode 100644 index 00000000..c86b9de3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sanyo-vpc-c5.txt @@ -0,0 +1,57 @@ +Device info: +Manufacturer: SANYO Electric Co.,Ltd. + Model: C5 + device version: ver1.0.1 + serial number: '000000000000' +Vendor extension ID: 0x00000000 +Vendor extension version: 0 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b +Events Supported: + 0x4001 + 0x4004 + 0x4005 + 0x4009 +Device Properties Supported: + +Camera summary: +Manufacturer: SANYO Electric Co.,Ltd. +Model: C5 + Version: ver1.0.1 + Serial Number: 000000000000 + +Capture Formats: +Display Formats: JPEG, TIFF, Association/Directory, DPOF, Apple Quicktime + +Device Capabilities: + File Download, No File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1023541248 (976 MB) + Free Space (Bytes): 1018249216 (971 MB) + Free Space (Images): 400 + +Device Property Summary: + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a3000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a3000.txt new file mode 100644 index 00000000..677f1b21 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a3000.txt @@ -0,0 +1,217 @@ + + +*** Error *** +The capturetarget widget is not configurable. + +*** Error *** +The capture widget is not configurable. +gphoto2 2.5.2.1 + +Copyright (c) 2000-2013 Lutz Mueller and others + +gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may +redistribute copies of gphoto2 under the terms of the GNU General Public +License. For more information about these matters, see the files named COPYING. + +This version of gphoto2 is using the following software versions and options: +gphoto2 2.5.2.1 gcc, popt(m), exif, cdk, aa, jpeg, readline +libgphoto2 2.5.2.2 all camlibs, gcc, ltdl, EXIF +libgphoto2_port 0.10.0 gcc, ltdl, USB, serial without locking +Camera summary: +Manufacturer: Sony Corporation +Model: ILCE-3000 + Version: 1.0 + Serial Number: 00000000000000003282603503972187 +Vendor Extension ID: 0xffffffff (1.0) + +Capture Formats: +Display Formats: Association/Directory, MPEG, JPEG, MP4, Unknown(b301), Undefined Type, Unknown(b101), Unknown(b310) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Only + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 100% (100) +Friendly Device Name(0xd402):(read only) (type=0xffff) ILCE-3000 ('ILCE-3000') +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '(null)' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 00000000000000003282603503972187 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: ILCE-3000 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 100 +/main/other/d402 +Label: Friendly Device Name +Type: TEXT +Current: ILCE-3000 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: (null) +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. + +*** Error *** +Sorry, your camera does not support generic capture +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** + +For debugging messages, please use the --debug option. +Debugging messages may help finding a solution to your problem. +If you intend to send any error or debug messages to the gphoto +developer mailing list , please run +gphoto2 as follows: + + env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --version --summary --list-all-config --set-config capturetarget=1 --set-config capture=on --wait-event=5s --capture-image + +Please make sure there is sufficient quoting around the arguments. + + +Device info: +Manufacturer: Sony Corporation + Model: ILCE-3000 + device version: 1.0 + serial number: '00000000000000003282603503972187' +Vendor extension ID: 0xffffffff +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9280 + 0x9281 + 0x9282 + 0x9283 + 0x9284 + 0x9285 +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a6000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a6000.txt new file mode 100644 index 00000000..3d17eea1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a6000.txt @@ -0,0 +1,1142 @@ + +Camera summary: +Manufacturer: Sony Corporation +Model: ILCE-6000 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), Unknown(b101) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,16,19] value: 3 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [1,2,4,32785,32784,6,32769,32770,32771,32772,7,32786,32803] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/5 (500) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,3,32772,32773,32776,32774,32775] value: 32773 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: Average (1) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32772,32817,32818] value: Undefined (0) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32833,7,32785,32789,32788,32786,32787,32790,32791,32792] value: 32768 +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,1,2,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32789,32786,32773,32772,32776,32777] value: Single Shot (1) +Property 0xd200:(readwrite) (type=0x3) Enumeration [0,1,2,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +Property 0xd201:(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 31 +Property 0xd203:(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Property 0xd20d:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65636 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,8,9,10,4,5,6,7] value: 6 +Property 0xd20f:(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Property 0xd210:(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +Property 0xd21c:(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +Property 0xd211:(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Property 0xd213:(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +Property 0xd21e:(readwrite) (type=0x6) Enumeration [16777215,25,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,102400,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416] value: 16777215 +Property 0xd21b:(readwrite) (type=0x4) Enumeration [32768] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd218:(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 67 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 2 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 33924096 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220:(read only) (type=0x0) Undefined + +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: ILCE-6000 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Sony PTP Extensions +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 100 +Choice: 3 125 +Choice: 4 160 +Choice: 5 200 +Choice: 6 250 +Choice: 7 320 +Choice: 8 400 +Choice: 9 500 +Choice: 10 640 +Choice: 11 800 +Choice: 12 1000 +Choice: 13 1250 +Choice: 14 1600 +Choice: 15 2000 +Choice: 16 2500 +Choice: 17 3200 +Choice: 18 4000 +Choice: 19 5000 +Choice: 20 6400 +Choice: 21 8000 +Choice: 22 10000 +Choice: 23 12800 +Choice: 24 16000 +Choice: 25 20000 +Choice: 26 25600 +Choice: 27 102400 +Choice: 28 Auto ISO Multi Frame Noise Reduction +Choice: 29 25 Multi Frame Noise Reduction +Choice: 30 50 Multi Frame Noise Reduction +Choice: 31 64 Multi Frame Noise Reduction +Choice: 32 80 Multi Frame Noise Reduction +Choice: 33 100 Multi Frame Noise Reduction +Choice: 34 125 Multi Frame Noise Reduction +Choice: 35 160 Multi Frame Noise Reduction +Choice: 36 200 Multi Frame Noise Reduction +Choice: 37 250 Multi Frame Noise Reduction +Choice: 38 320 Multi Frame Noise Reduction +Choice: 39 400 Multi Frame Noise Reduction +Choice: 40 500 Multi Frame Noise Reduction +Choice: 41 640 Multi Frame Noise Reduction +Choice: 42 800 Multi Frame Noise Reduction +Choice: 43 1000 Multi Frame Noise Reduction +Choice: 44 1250 Multi Frame Noise Reduction +Choice: 45 1600 Multi Frame Noise Reduction +Choice: 46 2000 Multi Frame Noise Reduction +Choice: 47 2500 Multi Frame Noise Reduction +Choice: 48 3200 Multi Frame Noise Reduction +Choice: 49 4000 Multi Frame Noise Reduction +Choice: 50 5000 Multi Frame Noise Reduction +Choice: 51 6400 Multi Frame Noise Reduction +Choice: 52 8000 Multi Frame Noise Reduction +Choice: 53 10000 Multi Frame Noise Reduction +Choice: 54 12800 Multi Frame Noise Reduction +Choice: 55 16000 Multi Frame Noise Reduction +Choice: 56 25600 Multi Frame Noise Reduction +Choice: 57 51200 Multi Frame Noise Reduction +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 0 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 Daylight +Choice: 3 Shade +Choice: 4 Cloudy +Choice: 5 Tungsten +Choice: 6 Fluorescent: Warm White +Choice: 7 Fluorescent: Cold White +Choice: 8 Fluorescent: Day White +Choice: 9 Fluorescent: Daylight +Choice: 10 Flash +Choice: 11 Choose Color Temperature +Choice: 12 Preset +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 5000 +Choice: 4 4700 +Choice: 5 4500 +Choice: 6 4300 +Choice: 7 4000 +Choice: 8 3700 +Choice: 9 3500 +Choice: 10 3300 +Choice: 11 3000 +Choice: 12 2700 +Choice: 13 2500 +Choice: 14 2300 +Choice: 15 2000 +Choice: 16 1700 +Choice: 17 1500 +Choice: 18 1300 +Choice: 19 1000 +Choice: 20 700 +Choice: 21 500 +Choice: 22 300 +Choice: 23 -300 +Choice: 24 -500 +Choice: 25 -700 +Choice: 26 -1000 +Choice: 27 -1300 +Choice: 28 -1500 +Choice: 29 -1700 +Choice: 30 -2000 +Choice: 31 -2300 +Choice: 32 -2500 +Choice: 33 -2700 +Choice: 34 -3000 +Choice: 35 -3300 +Choice: 36 -3500 +Choice: 37 -3700 +Choice: 38 -4000 +Choice: 39 -4300 +Choice: 40 -4500 +Choice: 41 -4700 +Choice: 42 -5000 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Unknown value 8003 +Choice: 7 Unknown value 8004 +Choice: 8 Unknown value 8031 +Choice: 9 Unknown value 8032 +Choice: 10 Unknown value 0000 +/main/capturesettings/f-number +Label: F-Number +Type: RANGE +Current: 5 +Bottom: 0 +Top: 655.35 +Step: 0.01 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: Fine +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 RAW +Choice: 3 RAW+JPEG +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Unknown value 8005 +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 Automatic Macro +Choice: 3 Unknown value 8004 +Choice: 4 Unknown value 8005 +Choice: 5 Unknown value 8008 +Choice: 6 Unknown value 8006 +Choice: 7 Unknown value 8007 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: Unknown value 8000 +Choice: 0 Unknown value 8000 +Choice: 1 Unknown value 8001 +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Unknown value 8050 +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8054 +Choice: 11 Unknown value 8041 +Choice: 12 Portrait +Choice: 13 Unknown value 8011 +Choice: 14 Unknown value 8015 +Choice: 15 Unknown value 8014 +Choice: 16 Unknown value 8012 +Choice: 17 Unknown value 8013 +Choice: 18 Unknown value 8016 +Choice: 19 Unknown value 8017 +Choice: 20 Unknown value 8018 +/main/capturesettings/aspectratio +Label: Aspect Ratio +Type: RADIO +Current: 3:2 +Choice: 0 16:9 +Choice: 1 3:2 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Unknown value 8015 +Choice: 3 Continuous Low Speed +Choice: 4 Selftimer 2s +Choice: 5 Selftimer 10s +Choice: 6 Unknown value 8008 +Choice: 7 Unknown value 8009 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Average +Choice: 0 Center Spot +Choice: 1 Average +Choice: 2 Unknown value 8002 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 16 +Choice: 3 19 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 4 +Choice: 3 32785 +Choice: 4 32784 +Choice: 5 6 +Choice: 6 32769 +Choice: 7 32770 +Choice: 8 32771 +Choice: 9 32772 +Choice: 10 7 +Choice: 11 32786 +Choice: 12 32803 +/main/other/5007 +Label: F-Number +Type: RANGE +Current: 500 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32773 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 32772 +Choice: 4 32773 +Choice: 5 32776 +Choice: 6 32774 +Choice: 7 32775 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 1 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 0 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32772 +Choice: 8 32817 +Choice: 9 32818 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32833 +Choice: 12 7 +Choice: 13 32785 +Choice: 14 32789 +Choice: 15 32788 +Choice: 16 32786 +Choice: 17 32787 +Choice: 18 32790 +Choice: 19 32791 +Choice: 20 32792 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 5000 +Choice: 4 4700 +Choice: 5 4500 +Choice: 6 4300 +Choice: 7 4000 +Choice: 8 3700 +Choice: 9 3500 +Choice: 10 3300 +Choice: 11 3000 +Choice: 12 2700 +Choice: 13 2500 +Choice: 14 2300 +Choice: 15 2000 +Choice: 16 1700 +Choice: 17 1500 +Choice: 18 1300 +Choice: 19 1000 +Choice: 20 700 +Choice: 21 500 +Choice: 22 300 +Choice: 23 -300 +Choice: 24 -500 +Choice: 25 -700 +Choice: 26 -1000 +Choice: 27 -1300 +Choice: 28 -1500 +Choice: 29 -1700 +Choice: 30 -2000 +Choice: 31 -2300 +Choice: 32 -2500 +Choice: 33 -2700 +Choice: 34 -3000 +Choice: 35 -3300 +Choice: 36 -3500 +Choice: 37 -3700 +Choice: 38 -4000 +Choice: 39 -4300 +Choice: 40 -4500 +Choice: 41 -4700 +Choice: 42 -5000 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32789 +Choice: 3 32786 +Choice: 4 32773 +Choice: 5 32772 +Choice: 6 32776 +Choice: 7 32777 +/main/other/d200 +Label: PTP Property 0xd200 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3000 +Choice: 4 2700 +Choice: 5 2500 +Choice: 6 2300 +Choice: 7 2000 +Choice: 8 1700 +Choice: 9 1500 +Choice: 10 1300 +Choice: 11 1000 +Choice: 12 700 +Choice: 13 500 +Choice: 14 300 +Choice: 15 -300 +Choice: 16 -500 +Choice: 17 -700 +Choice: 18 -1000 +Choice: 19 -1300 +Choice: 20 -1500 +Choice: 21 -1700 +Choice: 22 -2000 +Choice: 23 -2300 +Choice: 24 -2500 +Choice: 25 -2700 +Choice: 26 -3000 +/main/other/d201 +Label: PTP Property 0xd201 +Type: MENU +Current: 31 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +/main/other/d203 +Label: PTP Property 0xd203 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d20d +Label: PTP Property 0xd20d +Type: RANGE +Current: 65636 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 6 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 8 +Choice: 4 9 +Choice: 5 10 +Choice: 6 4 +Choice: 7 5 +Choice: 8 6 +Choice: 9 7 +/main/other/d20f +Label: PTP Property 0xd20f +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +/main/other/d210 +Label: PTP Property 0xd210 +Type: MENU +Current: 128 +Choice: 0 121 +Choice: 1 122 +Choice: 2 123 +Choice: 3 124 +Choice: 4 125 +Choice: 5 126 +Choice: 6 127 +Choice: 7 128 +Choice: 8 129 +Choice: 9 130 +Choice: 10 131 +Choice: 11 132 +Choice: 12 133 +Choice: 13 134 +Choice: 14 135 +/main/other/d21c +Label: PTP Property 0xd21c +Type: MENU +Current: 128 +Choice: 0 121 +Choice: 1 122 +Choice: 2 123 +Choice: 3 124 +Choice: 4 125 +Choice: 5 126 +Choice: 6 127 +Choice: 7 128 +Choice: 8 129 +Choice: 9 130 +Choice: 10 131 +Choice: 11 132 +Choice: 12 133 +Choice: 13 134 +Choice: 14 135 +/main/other/d211 +Label: PTP Property 0xd211 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +/main/other/d213 +Label: PTP Property 0xd213 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +/main/other/d21e +Label: PTP Property 0xd21e +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 100 +Choice: 3 125 +Choice: 4 160 +Choice: 5 200 +Choice: 6 250 +Choice: 7 320 +Choice: 8 400 +Choice: 9 500 +Choice: 10 640 +Choice: 11 800 +Choice: 12 1000 +Choice: 13 1250 +Choice: 14 1600 +Choice: 15 2000 +Choice: 16 2500 +Choice: 17 3200 +Choice: 18 4000 +Choice: 19 5000 +Choice: 20 6400 +Choice: 21 8000 +Choice: 22 10000 +Choice: 23 12800 +Choice: 24 16000 +Choice: 25 20000 +Choice: 26 25600 +Choice: 27 102400 +Choice: 28 33554431 +Choice: 29 16777241 +Choice: 30 16777266 +Choice: 31 16777280 +Choice: 32 16777296 +Choice: 33 16777316 +Choice: 34 16777341 +Choice: 35 16777376 +Choice: 36 16777416 +Choice: 37 16777466 +Choice: 38 16777536 +Choice: 39 16777616 +Choice: 40 16777716 +Choice: 41 16777856 +Choice: 42 16778016 +Choice: 43 16778216 +Choice: 44 16778466 +Choice: 45 16778816 +Choice: 46 16779216 +Choice: 47 16779716 +Choice: 48 16780416 +Choice: 49 16781216 +Choice: 50 16782216 +Choice: 51 16783616 +Choice: 52 16785216 +Choice: 53 16787216 +Choice: 54 16790016 +Choice: 55 16793216 +Choice: 56 16802816 +Choice: 57 16828416 +/main/other/d21b +Label: PTP Property 0xd21b +Type: MENU +Current: 32768 +Choice: 0 32768 +/main/other/d21d +Label: PTP Property 0xd21d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d217 +Label: PTP Property 0xd217 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: MENU +Current: 67 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +Choice: 3 2 +Choice: 4 3 +Choice: 5 4 +Choice: 6 5 +Choice: 7 6 +Choice: 8 7 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 12 +Choice: 14 13 +Choice: 15 14 +Choice: 16 15 +Choice: 17 16 +Choice: 18 17 +Choice: 19 18 +Choice: 20 19 +Choice: 21 20 +Choice: 22 21 +Choice: 23 22 +Choice: 24 23 +Choice: 25 24 +Choice: 26 25 +Choice: 27 26 +Choice: 28 27 +Choice: 29 28 +Choice: 30 29 +Choice: 31 30 +Choice: 32 31 +Choice: 33 32 +Choice: 34 33 +Choice: 35 34 +Choice: 36 35 +Choice: 37 36 +Choice: 38 37 +Choice: 39 38 +Choice: 40 39 +Choice: 41 40 +Choice: 42 41 +Choice: 43 42 +Choice: 44 43 +Choice: 45 44 +Choice: 46 45 +Choice: 47 46 +Choice: 48 47 +Choice: 49 48 +Choice: 50 49 +Choice: 51 50 +Choice: 52 51 +Choice: 53 52 +Choice: 54 53 +Choice: 55 54 +Choice: 56 55 +Choice: 57 56 +Choice: 58 57 +Choice: 59 58 +Choice: 60 59 +Choice: 61 60 +Choice: 62 61 +Choice: 63 62 +Choice: 64 63 +Choice: 65 64 +Choice: 66 65 +Choice: 67 66 +Choice: 68 67 +Choice: 69 68 +Choice: 70 69 +Choice: 71 70 +Choice: 72 71 +Choice: 73 72 +Choice: 74 73 +Choice: 75 74 +Choice: 76 75 +Choice: 77 76 +Choice: 78 77 +Choice: 79 78 +Choice: 80 79 +Choice: 81 80 +Choice: 82 81 +Choice: 83 82 +Choice: 84 83 +Choice: 85 84 +Choice: 86 85 +Choice: 87 86 +Choice: 88 87 +Choice: 89 88 +Choice: 90 89 +Choice: 91 90 +Choice: 92 91 +Choice: 93 92 +Choice: 94 93 +Choice: 95 94 +Choice: 96 95 +Choice: 97 96 +Choice: 98 97 +Choice: 99 98 +Choice: 100 99 +Choice: 101 100 +/main/other/d219 +Label: PTP Property 0xd219 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +/main/other/d214 +Label: PTP Property 0xd214 +Type: RANGE +Current: 3.39241e+07 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d215 +Label: PTP Property 0xd215 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d220 +Label: PTP Property 0xd220 +Type: TEXT +Current: (null) + +0.870844 PTP2/ptp2/library.c(2): Device info: +0.870861 PTP2/ptp2/library.c(2): Manufacturer: Sony Corporation +0.870874 PTP2/ptp2/library.c(2): Model: ILCE-6000 +0.870886 PTP2/ptp2/library.c(2): device version: 1.0 +0.870899 PTP2/ptp2/library.c(2): serial number: '0000000000000000nnnnnnnnnnnnnnnn' +0.870913 PTP2/ptp2/library.c(2): Vendor extension ID: 0x00000011 +0.870926 PTP2/ptp2/library.c(2): Vendor extension version: 100 +0.870943 PTP2/ptp2/library.c(2): Vendor extension description: Sony PTP Extensions +0.870966 PTP2/ptp2/library.c(2): Functional Mode: 0x0000 +0.870981 PTP2/ptp2/library.c(2): PTP Standard Version: 100 +0.870993 PTP2/ptp2/library.c(2): Supported operations: +0.871007 PTP2/ptp2/library.c(2): 0x1002 +0.871020 PTP2/ptp2/library.c(2): 0x1003 +0.871033 PTP2/ptp2/library.c(2): 0x1001 +0.871046 PTP2/ptp2/library.c(2): 0x1004 +0.871059 PTP2/ptp2/library.c(2): 0x1005 +0.871072 PTP2/ptp2/library.c(2): 0x1006 +0.871085 PTP2/ptp2/library.c(2): 0x1007 +0.871097 PTP2/ptp2/library.c(2): 0x1008 +0.871110 PTP2/ptp2/library.c(2): 0x1009 +0.871123 PTP2/ptp2/library.c(2): 0x100a +0.871136 PTP2/ptp2/library.c(2): 0x101b +0.871149 PTP2/ptp2/library.c(2): 0x9201 +0.871162 PTP2/ptp2/library.c(2): 0x9202 +0.871175 PTP2/ptp2/library.c(2): 0x9205 +0.871188 PTP2/ptp2/library.c(2): 0x9207 +0.871200 PTP2/ptp2/library.c(2): 0x9209 +0.871213 PTP2/ptp2/library.c(2): Events Supported: +0.871226 PTP2/ptp2/library.c(2): 0xc201 +0.871239 PTP2/ptp2/library.c(2): 0xc202 +0.871251 PTP2/ptp2/library.c(2): 0xc203 +0.871264 PTP2/ptp2/library.c(2): Device Properties Supported: +0.871277 PTP2/ptp2/library.c(2): 0x5004 +0.871290 PTP2/ptp2/library.c(2): 0x5005 +0.871303 PTP2/ptp2/library.c(2): 0x5007 +0.871316 PTP2/ptp2/library.c(2): 0x500a +0.871328 PTP2/ptp2/library.c(2): 0x500b +0.871341 PTP2/ptp2/library.c(2): 0x500c +0.871355 PTP2/ptp2/library.c(2): 0x500e +0.871367 PTP2/ptp2/library.c(2): 0x5010 +0.871380 PTP2/ptp2/library.c(2): 0x5013 +0.871393 PTP2/ptp2/library.c(2): 0xd200 +0.871406 PTP2/ptp2/library.c(2): 0xd201 +0.871419 PTP2/ptp2/library.c(2): 0xd203 +0.871449 PTP2/ptp2/library.c(2): 0xd20d +0.871464 PTP2/ptp2/library.c(2): 0xd20e +0.871477 PTP2/ptp2/library.c(2): 0xd20f +0.871490 PTP2/ptp2/library.c(2): 0xd210 +0.871503 PTP2/ptp2/library.c(2): 0xd21c +0.871516 PTP2/ptp2/library.c(2): 0xd211 +0.871529 PTP2/ptp2/library.c(2): 0xd213 +0.871542 PTP2/ptp2/library.c(2): 0xd21e +0.871555 PTP2/ptp2/library.c(2): 0xd21b +0.871568 PTP2/ptp2/library.c(2): 0xd21d +0.871581 PTP2/ptp2/library.c(2): 0xd217 +0.871593 PTP2/ptp2/library.c(2): 0xd218 +0.871606 PTP2/ptp2/library.c(2): 0xd219 +0.871619 PTP2/ptp2/library.c(2): 0xd212 +0.871632 PTP2/ptp2/library.c(2): 0xd214 +0.871645 PTP2/ptp2/library.c(2): 0xd215 +0.871657 PTP2/ptp2/library.c(2): 0xd220 + +0.898658 gphoto2-port(3): Hexdump of 1024 = 0x400 bytes follows: +0000 1c 04 00 00 02 00 09 92-08 00 00 00 22 00 00 00 ............"... +0010 00 00 00 00 04 50 02 00-01 01 02 03 02 04 00 02 .....P.......... +0020 03 10 13 05 50 04 00 01-00 02 00 02 00 02 0d 00 ....P........... +0030 01 00 02 00 04 00 11 80-10 80 06 00 01 80 02 80 ................ +0040 03 80 04 80 07 00 12 80-23 80 07 50 04 00 00 02 ........#..P.... +0050 ff ff f4 01 01 00 00 ff-ff 01 00 0a 50 04 00 00 ............P... +0060 02 01 00 05 80 02 08 00-01 00 02 00 03 00 04 80 ................ +0070 05 80 08 80 06 80 07 80-0b 50 04 00 00 00 01 00 .........P...... +0080 01 00 02 03 00 04 00 01-00 02 80 0c 50 04 00 00 ............P... +0090 00 01 00 00 00 02 0a 00-02 00 01 00 04 00 03 00 ................ +00a0 05 00 01 80 03 80 04 80-31 80 32 80 0e 50 04 00 ........1.2..P.. +00b0 00 02 01 00 00 80 02 15-00 00 80 01 80 02 00 03 ................ +00c0 00 04 00 01 00 50 80 51-80 52 80 53 80 54 80 41 .....P.Q.R.S.T.A +00d0 80 07 00 11 80 15 80 14-80 12 80 13 80 16 80 17 ................ +00e0 80 18 80 10 50 03 00 00-02 00 00 00 00 02 2b 00 ....P.........+. +00f0 00 00 01 00 02 00 88 13-5c 12 94 11 cc 10 a0 0f ........\....... +0100 74 0e ac 0d e4 0c b8 0b-8c 0a c4 09 fc 08 d0 07 t............... +0110 a4 06 dc 05 14 05 e8 03-bc 02 f4 01 2c 01 d4 fe ............,... +0120 0c fe 44 fd 18 fc ec fa-24 fa 5c f9 30 f8 04 f7 ..D.....$.\.0... +0130 3c f6 74 f5 48 f4 1c f3-54 f2 8c f1 60 f0 34 ef <.t.H...T...`.4. +0140 6c ee a4 ed 78 ec 13 50-04 00 01 01 01 00 01 00 l...x..P........ +0150 02 08 00 01 00 02 00 15-80 12 80 05 80 04 80 08 ................ +0160 80 09 80 00 d2 03 00 00-02 00 00 00 00 02 1b 00 ................ +0170 00 00 01 00 02 00 b8 0b-8c 0a c4 09 fc 08 d0 07 ................ +0180 a4 06 dc 05 14 05 e8 03-bc 02 f4 01 2c 01 d4 fe ............,... +0190 0c fe 44 fd 18 fc ec fa-24 fa 5c f9 30 f8 04 f7 ..D.....$.\.0... +01a0 3c f6 74 f5 48 f4 01 d2-02 00 01 00 01 1f 02 0e <.t.H........... +01b0 00 01 1f 11 12 13 14 15-20 21 22 23 24 25 26 03 ........ !"#$%&. +01c0 d2 02 00 01 01 04 01 02-03 00 01 02 03 0d d2 06 ................ +01d0 00 00 02 ff ff ff ff 64-00 01 00 01 00 00 00 00 .......d........ +01e0 ff ff ff ff 01 00 00 00-0e d2 02 00 00 02 01 06 ................ +01f0 02 0a 00 01 02 03 08 09-0a 04 05 06 07 0f d2 04 ................ +0200 00 01 00 7c 15 00 00 01-c4 09 ac 26 64 00 10 d2 ...|.......&d... +0210 02 00 01 00 80 80 01 79-87 01 1c d2 02 00 01 00 .......y........ +0220 80 80 01 79 87 01 11 d2-02 00 01 01 01 02 02 02 ...y............ +0230 00 01 02 13 d2 02 00 00-02 01 01 02 06 00 01 02 ................ +0240 03 05 06 07 1e d2 06 00-00 02 ff ff ff 00 ff ff ................ +0250 ff 00 02 3a 00 ff ff ff-00 19 00 00 00 64 00 00 ...:.........d.. +0260 00 7d 00 00 00 a0 00 00-00 c8 00 00 00 fa 00 00 .}.............. +0270 00 40 01 00 00 90 01 00-00 f4 01 00 00 80 02 00 .@.............. +0280 00 20 03 00 00 e8 03 00-00 e2 04 00 00 40 06 00 . ...........@.. +0290 00 d0 07 00 00 c4 09 00-00 80 0c 00 00 a0 0f 00 ................ +02a0 00 88 13 00 00 00 19 00-00 40 1f 00 00 10 27 00 .........@....'. +02b0 00 00 32 00 00 80 3e 00-00 20 4e 00 00 00 64 00 ..2...>.. N...d. +02c0 00 00 90 01 00 ff ff ff-01 19 00 00 01 32 00 00 .............2.. +02d0 01 40 00 00 01 50 00 00-01 64 00 00 01 7d 00 00 .@...P...d...}.. +02e0 01 a0 00 00 01 c8 00 00-01 fa 00 00 01 40 01 00 .............@.. +02f0 01 90 01 00 01 f4 01 00-01 80 02 00 01 20 03 00 ............. .. +0300 01 e8 03 00 01 e2 04 00-01 40 06 00 01 d0 07 00 .........@...... +0310 01 c4 09 00 01 80 0c 00-01 a0 0f 00 01 88 13 00 ................ +0320 01 00 19 00 01 40 1f 00-01 10 27 00 01 00 32 00 .....@....'...2. +0330 01 80 3e 00 01 00 64 00-01 00 c8 00 01 1b d2 04 ..>...d......... +0340 00 01 00 00 80 00 80 02-01 00 00 80 1d d2 02 00 ................ +0350 00 02 00 00 01 00 02 01-17 d2 02 00 00 02 01 01 ................ +0360 02 02 00 02 01 18 d2 01-00 00 02 ff 43 01 ff 64 ............C..d +0370 01 19 d2 02 00 00 02 01-02 02 02 00 02 01 c1 d2 ................ +0380 04 00 81 01 01 00 01 00-02 02 00 01 00 02 00 c2 ................ +0390 d2 04 00 81 01 01 00 01-00 02 02 00 01 00 02 00 ................ +03a0 c3 d2 04 00 81 01 01 00-01 00 02 02 00 01 00 02 ................ +03b0 00 c8 d2 04 00 81 01 01-00 01 00 02 02 00 01 00 ................ +03c0 02 00 12 d2 02 00 00 01-00 00 01 00 0f 01 14 d2 ................ +03d0 06 00 00 01 ff ff ff ff-00 a4 05 02 01 00 00 00 ................ +03e0 00 ff ff ff ff 01 00 00-00 15 d2 04 00 00 01 00 ................ +03f0 00 00 00 01 00 00 ff ff-01 00 c5 d2 04 00 83 01 ................ + +0.898769 gphoto2-port(2): Reading 28=0x1c bytes from port... +0.898882 gphoto2-port(3): Hexdump of 28 = 0x1c bytes follows: +0000 01 00 01 00 02 02 00 01-00 02 00 c7 d2 04 00 81 ................ +0010 01 01 00 01 00 02 02 00-01 00 02 00 ............ + +0.898905 ptp2/ptp_usb_getresp(2): reading response +0.898921 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.898938 gphoto2-port(2): Reading 1024=0x400 bytes from port... +0.899275 gphoto2-port(2): Could only read 12 out of 1024 byte(s) +0.899300 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-08 00 00 00 ....... .... + +0.899387 ptp2/sony_capture(2): dpd.CurrentValue.u8 = 3 +0.899427 ptp2/sony_capture(2): dpd.FactoryDefaultValue.u8 = 2 +0.899448 gphoto2-port(2): Writing 16=0x10 byte(s) to port... +0.899467 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: +0000 10 00 00 00 01 00 07 92-09 00 00 00 c7 d2 00 00 ................ + +0.899650 gphoto2-port(2): Writing 14=0xe byte(s) to port... +0.899674 gphoto2-port(3): Hexdump of 14 = 0xe bytes follows: +0000 0e 00 00 00 02 00 07 92-09 00 00 00 02 00 .............. + +0.899743 ptp2/ptp_usb_getresp(2): reading response +0.899765 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.899782 gphoto2-port(2): Reading 1024=0x400 bytes from port... +0.916033 gphoto2-port(2): Could only read 12 out of 1024 byte(s) +0.916067 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-09 00 00 00 ....... .... + +0.916090 gphoto2-port(2): Writing 12=0xc byte(s) to port... +0.916109 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 01 00 09 92-0a 00 00 00 ............ + +0.916267 ptp2/ptp_usb_getdata(2): reading data +0.916287 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.916306 gphoto2-port(2): Reading 1024=0x400 bytes from port... +0.918404 gphoto2-port(3): Hexdump of 1024 = 0x400 bytes follows: +0000 1c 04 00 00 02 00 09 92-0a 00 00 00 22 00 00 00 ............"... +0010 00 00 00 00 04 50 02 00-01 01 02 03 02 04 00 02 .....P.......... +0020 03 10 13 05 50 04 00 01-00 02 00 02 00 02 0d 00 ....P........... +0030 01 00 02 00 04 00 11 80-10 80 06 00 01 80 02 80 ................ +0040 03 80 04 80 07 00 12 80-23 80 07 50 04 00 00 02 ........#..P.... +0050 ff ff f4 01 01 00 00 ff-ff 01 00 0a 50 04 00 00 ............P... +0060 02 01 00 05 80 02 08 00-01 00 02 00 03 00 04 80 ................ +0070 05 80 08 80 06 80 07 80-0b 50 04 00 00 00 01 00 .........P...... +0080 01 00 02 03 00 04 00 01-00 02 80 0c 50 04 00 00 ............P... +0090 00 01 00 00 00 02 0a 00-02 00 01 00 04 00 03 00 ................ +00a0 05 00 01 80 03 80 04 80-31 80 32 80 0e 50 04 00 ........1.2..P.. +00b0 00 02 01 00 00 80 02 15-00 00 80 01 80 02 00 03 ................ +00c0 00 04 00 01 00 50 80 51-80 52 80 53 80 54 80 41 .....P.Q.R.S.T.A +00d0 80 07 00 11 80 15 80 14-80 12 80 13 80 16 80 17 ................ +00e0 80 18 80 10 50 03 00 00-02 00 00 00 00 02 2b 00 ....P.........+. +00f0 00 00 01 00 02 00 88 13-5c 12 94 11 cc 10 a0 0f ........\....... +0100 74 0e ac 0d e4 0c b8 0b-8c 0a c4 09 fc 08 d0 07 t............... +0110 a4 06 dc 05 14 05 e8 03-bc 02 f4 01 2c 01 d4 fe ............,... +0120 0c fe 44 fd 18 fc ec fa-24 fa 5c f9 30 f8 04 f7 ..D.....$.\.0... +0130 3c f6 74 f5 48 f4 1c f3-54 f2 8c f1 60 f0 34 ef <.t.H...T...`.4. +0140 6c ee a4 ed 78 ec 13 50-04 00 01 01 01 00 01 00 l...x..P........ +0150 02 08 00 01 00 02 00 15-80 12 80 05 80 04 80 08 ................ +0160 80 09 80 00 d2 03 00 00-02 00 00 00 00 02 1b 00 ................ +0170 00 00 01 00 02 00 b8 0b-8c 0a c4 09 fc 08 d0 07 ................ +0180 a4 06 dc 05 14 05 e8 03-bc 02 f4 01 2c 01 d4 fe ............,... +0190 0c fe 44 fd 18 fc ec fa-24 fa 5c f9 30 f8 04 f7 ..D.....$.\.0... +01a0 3c f6 74 f5 48 f4 01 d2-02 00 01 00 01 1f 02 0e <.t.H........... +01b0 00 01 1f 11 12 13 14 15-20 21 22 23 24 25 26 03 ........ !"#$%&. +01c0 d2 02 00 01 01 04 01 02-03 00 01 02 03 0d d2 06 ................ +01d0 00 00 02 ff ff ff ff 64-00 01 00 01 00 00 00 00 .......d........ +01e0 ff ff ff ff 01 00 00 00-0e d2 02 00 00 02 01 06 ................ +01f0 02 0a 00 01 02 03 08 09-0a 04 05 06 07 0f d2 04 ................ +0200 00 01 00 7c 15 00 00 01-c4 09 ac 26 64 00 10 d2 ...|.......&d... +0210 02 00 01 00 80 80 01 79-87 01 1c d2 02 00 01 00 .......y........ +0220 80 80 01 79 87 01 11 d2-02 00 01 01 01 02 02 02 ...y............ +0230 00 01 02 13 d2 02 00 00-02 01 01 02 06 00 01 02 ................ +0240 03 05 06 07 1e d2 06 00-00 02 ff ff ff 00 ff ff ................ +0250 ff 00 02 3a 00 ff ff ff-00 19 00 00 00 64 00 00 ...:.........d.. +0260 00 7d 00 00 00 a0 00 00-00 c8 00 00 00 fa 00 00 .}.............. +0270 00 40 01 00 00 90 01 00-00 f4 01 00 00 80 02 00 .@.............. +0280 00 20 03 00 00 e8 03 00-00 e2 04 00 00 40 06 00 . ...........@.. +0290 00 d0 07 00 00 c4 09 00-00 80 0c 00 00 a0 0f 00 ................ +02a0 00 88 13 00 00 00 19 00-00 40 1f 00 00 10 27 00 .........@....'. +02b0 00 00 32 00 00 80 3e 00-00 20 4e 00 00 00 64 00 ..2...>.. N...d. +02c0 00 00 90 01 00 ff ff ff-01 19 00 00 01 32 00 00 .............2.. +02d0 01 40 00 00 01 50 00 00-01 64 00 00 01 7d 00 00 .@...P...d...}.. +02e0 01 a0 00 00 01 c8 00 00-01 fa 00 00 01 40 01 00 .............@.. +02f0 01 90 01 00 01 f4 01 00-01 80 02 00 01 20 03 00 ............. .. +0300 01 e8 03 00 01 e2 04 00-01 40 06 00 01 d0 07 00 .........@...... +0310 01 c4 09 00 01 80 0c 00-01 a0 0f 00 01 88 13 00 ................ +0320 01 00 19 00 01 40 1f 00-01 10 27 00 01 00 32 00 .....@....'...2. +0330 01 80 3e 00 01 00 64 00-01 00 c8 00 01 1b d2 04 ..>...d......... +0340 00 01 00 00 80 00 80 02-01 00 00 80 1d d2 02 00 ................ +0350 00 02 00 00 01 00 02 01-17 d2 02 00 00 02 01 01 ................ +0360 02 02 00 02 01 18 d2 01-00 00 02 ff 43 01 ff 64 ............C..d +0370 01 19 d2 02 00 00 02 01-02 02 02 00 02 01 c1 d2 ................ +0380 04 00 81 01 01 00 01 00-02 02 00 01 00 02 00 c2 ................ +0390 d2 04 00 81 01 01 00 01-00 02 02 00 01 00 02 00 ................ +03a0 c3 d2 04 00 81 01 01 00-01 00 02 02 00 01 00 02 ................ +03b0 00 c8 d2 04 00 81 01 01-00 01 00 02 02 00 01 00 ................ +03c0 02 00 12 d2 02 00 00 01-00 00 01 00 0f 01 14 d2 ................ +03d0 06 00 00 01 ff ff ff ff-00 a4 05 02 01 00 00 00 ................ +03e0 00 ff ff ff ff 01 00 00-00 15 d2 04 00 00 01 00 ................ +03f0 00 00 00 01 00 00 ff ff-01 00 c5 d2 04 00 83 01 ................ + +0.918493 gphoto2-port(2): Reading 28=0x1c bytes from port... +0.918625 gphoto2-port(3): Hexdump of 28 = 0x1c bytes follows: +0000 01 00 01 00 02 02 00 01-00 02 00 c7 d2 04 00 81 ................ +0010 01 01 00 01 00 02 02 00-01 00 02 00 ............ + +0.918647 ptp2/ptp_usb_getresp(2): reading response +0.918661 ptp2/ptp_usb_getpacket(2): getting next ptp packet +0.918678 gphoto2-port(2): Reading 1024=0x400 bytes from port... +0.918878 gphoto2-port(2): Could only read 12 out of 1024 byte(s) +0.918905 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 03 00 01 20-0a 00 00 00 ....... .... + +0.918964 gphoto2-port(2): Getting timeout... +0.918984 gphoto2-port(2): Current timeout: 20000 milliseconds +0.919000 gphoto2-port(2): Setting timeout to 100 millisecond(s)... +0.919020 gphoto2-port(2): Reading 24=0x18 bytes from interrupt endpoint... +0.923126 gphoto2-port(2): Could only read 16 out of 24 byte(s) +0.923144 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: +0000 10 00 00 00 04 00 03 c2-ff ff ff ff 1d d2 00 00 ................ + +0.923155 gphoto2-port(2): Setting timeout to 20000 millisecond(s)... +0.923167 ptp(2): event: nparams=0x1, code=0xC203, trans_id=0xFFFFFFFF, p1=0xD21D, p2=0x0, p3=0x0 +0.923187 ptp2/sony_capture(2): during event.code=c203 Param1=0000d21d +0.933298 gphoto2-port(2): Writing 12=0xc byte(s) to port... +0.933313 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: +0000 0c 00 00 00 01 00 09 92-0b 00 00 00 ............ +Device info: +Manufacturer: Sony Corporation + Model: ILCE-6000 + device version: 3.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000011 +Vendor extension version: 100 +Vendor extension description: Sony PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x9201 (PTP_OC_SONY_SDIOConnect) + 0x9202 (PTP_OC_SONY_GetSDIOGetExtDeviceInfo) + 0x9205 (PTP_OC_SONY_SetControlDeviceA) + 0x9207 (PTP_OC_SONY_SetControlDeviceB) + 0x9209 (PTP_OC_SONY_GetAllDevicePropData) +Events Supported: + 0xc201 + 0xc202 + 0xc203 +Device Properties Supported: + 0x5004 + 0x5005 + 0x5007 + 0x500a + 0x500b + 0x500c + 0x500e + 0x5010 + 0x5013 + 0xd200 + 0xd201 + 0xd203 + 0xd20d + 0xd20e + 0xd20f + 0xd210 + 0xd21c + 0xd211 + 0xd213 + 0xd21e + 0xd21b + 0xd21d + 0xd217 + 0xd218 + 0xd219 + 0xd212 + 0xd214 + 0xd215 + 0xd220 + 0xd2c1 + 0xd2c2 + 0xd2c3 + 0xd2c8 + 0xd2c5 + 0xd2c7 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a6300.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a6300.txt new file mode 100644 index 00000000..91d34b20 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a6300.txt @@ -0,0 +1,1127 @@ +$ gphoto2 --list-all-config +/main/actions/bulb +Label: Bulb Mode +Type: TOGGLE +Current: 2 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 00000000000000000000000000000000 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: ILCE-6300 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Sony PTP Extensions +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Unknown value 0004 +Choice: 1 Unknown value 000e +Choice: 2 Unknown value 000f +Choice: 3 Unknown value 0005 +Choice: 4 Unknown value 0006 +Choice: 5 Unknown value 0007 +Choice: 6 Unknown value 0010 +Choice: 7 Unknown value 0011 +Choice: 8 Unknown value 0012 +Choice: 9 Unknown value 0008 +Choice: 10 Unknown value 0013 +Choice: 11 Unknown value 0009 +Choice: 12 Unknown value 000a +Choice: 13 Unknown value 000b +Choice: 14 Unknown value 0014 +Choice: 15 Unknown value 0015 +Choice: 16 Unknown value 000c +Choice: 17 Unknown value 0017 +Choice: 18 Unknown value 0018 +Choice: 19 Unknown value 000d +Choice: 20 Large +Choice: 21 Medium +Choice: 22 Small +Choice: 23 Unknown value 0000 +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: 0 +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Auto ISO Multi Frame Noise Reduction +Choice: 43 25 Multi Frame Noise Reduction +Choice: 44 50 Multi Frame Noise Reduction +Choice: 45 64 Multi Frame Noise Reduction +Choice: 46 80 Multi Frame Noise Reduction +Choice: 47 100 Multi Frame Noise Reduction +Choice: 48 125 Multi Frame Noise Reduction +Choice: 49 160 Multi Frame Noise Reduction +Choice: 50 200 Multi Frame Noise Reduction +Choice: 51 250 Multi Frame Noise Reduction +Choice: 52 320 Multi Frame Noise Reduction +Choice: 53 400 Multi Frame Noise Reduction +Choice: 54 500 Multi Frame Noise Reduction +Choice: 55 640 Multi Frame Noise Reduction +Choice: 56 800 Multi Frame Noise Reduction +Choice: 57 1000 Multi Frame Noise Reduction +Choice: 58 1250 Multi Frame Noise Reduction +Choice: 59 1600 Multi Frame Noise Reduction +Choice: 60 2000 Multi Frame Noise Reduction +Choice: 61 2500 Multi Frame Noise Reduction +Choice: 62 3200 Multi Frame Noise Reduction +Choice: 63 4000 Multi Frame Noise Reduction +Choice: 64 5000 Multi Frame Noise Reduction +Choice: 65 6400 Multi Frame Noise Reduction +Choice: 66 8000 Multi Frame Noise Reduction +Choice: 67 10000 Multi Frame Noise Reduction +Choice: 68 12800 Multi Frame Noise Reduction +Choice: 69 16000 Multi Frame Noise Reduction +Choice: 70 25600 Multi Frame Noise Reduction +Choice: 71 51200 Multi Frame Noise Reduction +Choice: 72 36864 Multi Frame Noise Reduction +Choice: 73 8192 Multi Frame Noise Reduction +Choice: 74 16384 Multi Frame Noise Reduction +Choice: 75 65535 Multi Frame Noise Reduction +Choice: 76 100 Multi Frame Noise Reduction +Choice: 77 200 Multi Frame Noise Reduction +Choice: 78 400 Multi Frame Noise Reduction +Choice: 79 800 Multi Frame Noise Reduction +Choice: 80 1600 Multi Frame Noise Reduction +Choice: 81 3200 Multi Frame Noise Reduction +Choice: 82 6400 Multi Frame Noise Reduction +Choice: 83 12800 Multi Frame Noise Reduction +Choice: 84 25600 Multi Frame Noise Reduction +Choice: 85 51200 Multi Frame Noise Reduction +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 0 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Shade +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Flash +Choice: 10 Unknown value 8030 +Choice: 11 Choose Color Temperature +Choice: 12 Unknown value 8020 +Choice: 13 Unknown value 8021 +Choice: 14 Unknown value 8022 +Choice: 15 Unknown value 0000 +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 5 +Choice: 2 4.7 +Choice: 3 4.5 +Choice: 4 4.3 +Choice: 5 4 +Choice: 6 3.7 +Choice: 7 3.5 +Choice: 8 3.3 +Choice: 9 3 +Choice: 10 2.7 +Choice: 11 2.5 +Choice: 12 2.3 +Choice: 13 2 +Choice: 14 1.7 +Choice: 15 1.5 +Choice: 16 1.3 +Choice: 17 1 +Choice: 18 0.7 +Choice: 19 0.5 +Choice: 20 0.3 +Choice: 21 -0.3 +Choice: 22 -0.5 +Choice: 23 -0.7 +Choice: 24 -1 +Choice: 25 -1.3 +Choice: 26 -1.5 +Choice: 27 -1.7 +Choice: 28 -2 +Choice: 29 -2.3 +Choice: 30 -2.5 +Choice: 31 -2.7 +Choice: 32 -3 +Choice: 33 -3.3 +Choice: 34 -3.5 +Choice: 35 -3.7 +Choice: 36 -4 +Choice: 37 -4.3 +Choice: 38 -4.5 +Choice: 39 -4.7 +Choice: 40 -5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Fill flash +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Rear Curtain Sync +Choice: 7 Wireless Sync +Choice: 8 Unknown value 8031 +Choice: 9 Slow Sync +/main/capturesettings/f-number +Label: F-Number +Type: RADIO +Current: 0 +Choice : 0 3.5 +Choice: 1 4 +Choice: 2 4.5 +Choice: 3 5 +Choice: 4 5.6 +Choice: 5 6.3 +Choice: 6 7.1 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 13 +Choice: 12 14 +Choice: 13 16 +Choice: 14 18 +Choice: 15 20 +Choice: 16 22 +END +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: RAW +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Unknown value 0004 +Choice: 3 RAW +Choice: 4 RAW+JPEG +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Undefined +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8006 +Choice: 5 Undefined +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: M +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Movie +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8054 +Choice: 11 Unknown value 8080 +Choice: 12 Unknown value 8081 +Choice: 13 Unknown value 8082 +Choice: 14 Unknown value 8055 +Choice: 15 Unknown value 8056 +Choice: 16 Unknown value 8057 +Choice: 17 Unknown value 8058 +Choice: 18 Unknown value 8083 +Choice: 19 Sweep Panorama +Choice: 20 Portrait +Choice: 21 Sports Action +Choice: 22 Macro +Choice: 23 Landscape +Choice: 24 Sunset +Choice: 25 Night Scene +Choice: 26 Hand-held Twilight +Choice: 27 Night Portrait +Choice: 28 Unknown value 8018 +/main/capturesettings/aspectratio +Label: Aspect Ratio +Type: RADIO +Current: Unknown value 0000 +Choice: 0 16:9 +Choice: 1 3:2 +Choice: 2 Unknown value 0000 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Single Shot +Choice: 1 Unknown value 8010 +Choice: 2 Burst +Choice: 3 Unknown value 8015 +Choice: 4 Continuous Low Speed +Choice: 5 Selftimer 2s +Choice: 6 Unknown value 8003 +Choice: 7 Selftimer 10s +Choice: 8 Unknown value 8008 +Choice: 9 Unknown value 8009 +Choice: 10 Unknown value 800c +Choice: 11 Unknown value 800d +Choice: 12 Unknown value 800e +Choice: 13 Unknown value 800f +Choice: 14 Bracketing C 0.3 Steps +Choice: 15 Unknown value 8537 +Choice: 16 Unknown value 8937 +Choice: 17 Unknown value 8357 +Choice: 18 Unknown value 8557 +Choice: 19 Unknown value 8957 +Choice: 20 Bracketing C 0.7 Steps +Choice: 21 Unknown value 8577 +Choice: 22 Unknown value 8977 +Choice: 23 Bracketing C 1.0 Steps +Choice: 24 Unknown value 8511 +Choice: 25 Unknown value 8911 +Choice: 26 Bracketing C 2.0 Steps +Choice: 27 Unknown value 8521 +Choice: 28 Bracketing C 3.0 Steps +Choice: 29 Unknown value 8531 +Choice: 30 Bracketing S 0.3 Steps +Choice: 31 Unknown value 8536 +Choice: 32 Unknown value 8936 +Choice: 33 Unknown value 8356 +Choice: 34 Unknown value 8556 +Choice: 35 Unknown value 8956 +Choice: 36 Bracketing S 0.7 Steps +Choice: 37 Unknown value 8576 +Choice: 38 Unknown value 8976 +Choice: 39 Bracketing S 1.0 Steps +Choice: 40 Unknown value 8510 +Choice: 41 Unknown value 8910 +Choice: 42 Bracketing S 2.0 Steps +Choice: 43 Unknown value 8520 +Choice: 44 Bracketing S 3.0 Steps +Choice: 45 Unknown value 8530 +Choice: 46 Bracketing WB Lo +Choice: 47 Bracketing WB Hi +Choice: 48 Unknown value 8019 +Choice: 49 Unknown value 8029 +Choice: 50 Unknown value 0000 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Center Spot +Choice: 1 Average +Choice: 2 Unknown value 8002 +Choice: 3 Unknown value 0000 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: Bulb +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 16 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 0 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32816 +Choice: 11 32786 +Choice: 12 32800 +Choice: 13 32801 +Choice: 14 32802 +/main/other/5007 +Label: F-Number +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 0 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32774 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 0 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32772 +Choice: 8 32817 +Choice: 9 32818 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 1 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32896 +Choice: 12 32897 +Choice: 13 32898 +Choice: 14 32853 +Choice: 15 32854 +Choice: 16 32855 +Choice: 17 32856 +Choice: 18 32899 +Choice: 19 32833 +Choice: 20 7 +Choice: 21 32785 +Choice: 22 32789 +Choice: 23 32788 +Choice: 24 32786 +Choice: 25 32787 +Choice: 26 32790 +Choice: 27 32791 +Choice: 28 32792 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 5000 +Choice: 2 4700 +Choice: 3 4500 +Choice: 4 4300 +Choice: 5 4000 +Choice: 6 3700 +Choice: 7 3500 +Choice: 8 3300 +Choice: 9 3000 +Choice: 10 2700 +Choice: 11 2500 +Choice: 12 2300 +Choice: 13 2000 +Choice: 14 1700 +Choice: 15 1500 +Choice: 16 1300 +Choice: 17 1000 +Choice: 18 700 +Choice: 19 500 +Choice: 20 300 +Choice: 21 -300 +Choice: 22 -500 +Choice: 23 -700 +Choice: 24 -1000 +Choice: 25 -1300 +Choice: 26 -1500 +Choice: 27 -1700 +Choice: 28 -2000 +Choice: 29 -2300 +Choice: 30 -2500 +Choice: 31 -2700 +Choice: 32 -3000 +Choice: 33 -3300 +Choice: 34 -3500 +Choice: 35 -3700 +Choice: 36 -4000 +Choice: 37 -4300 +Choice: 38 -4500 +Choice: 39 -4700 +Choice: 40 -5000 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 0 +Choice: 0 1 +Choice: 1 32784 +Choice: 2 2 +Choice: 3 32789 +Choice: 4 32786 +Choice: 5 32773 +Choice: 6 32771 +Choice: 7 32772 +Choice: 8 32776 +Choice: 9 32777 +Choice: 10 32780 +Choice: 11 32781 +Choice: 12 32782 +Choice: 13 32783 +Choice: 14 33591 +Choice: 15 34103 +Choice: 16 35127 +Choice: 17 33623 +Choice: 18 34135 +Choice: 19 35159 +Choice: 20 33655 +Choice: 21 34167 +Choice: 22 35191 +Choice: 23 33553 +Choice: 24 34065 +Choice: 25 35089 +Choice: 26 33569 +Choice: 27 34081 +Choice: 28 33585 +Choice: 29 34097 +Choice: 30 33590 +Choice: 31 34102 +Choice: 32 35126 +Choice: 33 33622 +Choice: 34 34134 +Choice: 35 35158 +Choice: 36 33654 +Choice: 37 34166 +Choice: 38 35190 +Choice: 39 33552 +Choice: 40 34064 +Choice: 41 35088 +Choice: 42 33568 +Choice: 43 34080 +Choice: 44 33584 +Choice: 45 34096 +Choice: 46 32792 +Choice: 47 32808 +Choice: 48 32793 +Choice: 49 32809 +/main/other/d200 +Label: DOC Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 3000 +Choice: 2 2700 +Choice: 3 2500 +Choice: 4 2300 +Choice: 5 2000 +Choice: 6 1700 +Choice: 7 1500 +Choice: 8 1300 +Choice: 9 1000 +Choice: 10 700 +Choice: 11 500 +Choice: 12 300 +Choice: 13 -300 +Choice: 14 -500 +Choice: 15 -700 +Choice: 16 -1000 +Choice: 17 -1300 +Choice: 18 -1500 +Choice: 19 -1700 +Choice: 20 -2000 +Choice: 21 -2300 +Choice: 22 -2500 +Choice: 23 -2700 +Choice: 24 -3000 +/main/other/d201 +Label: DRangeOptimize +Type: MENU +Current: 0 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +/main/other/d203 +Label: Image size +Type: MENU +Current: 0 +Choice: 0 4 +Choice: 1 14 +Choice: 2 15 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +Choice: 6 16 +Choice: 7 17 +Choice: 8 18 +Choice: 9 8 +Choice: 10 19 +Choice: 11 9 +Choice: 12 10 +Choice: 13 11 +Choice: 14 20 +Choice: 15 21 +Choice: 16 12 +Choice: 17 23 +Choice: 18 24 +Choice: 19 13 +Choice: 20 1 +Choice: 21 2 +Choice: 22 3 +/main/other/d20d +Label: Shutter speed +Type: RANGE +Current: 0 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +/main/other/d20f +Label: Color temperature +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +/main/other/d211 +Label: Aspect Ratio +Type: MENU +Current: 0 +Choice: 0 1 +Choice: 1 2 +/main/other/d213 +Label: PTP Property 0xd213 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +/main/other/d21e +Label: ISO +Type: MENU +Current: 0 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777316 +Choice: 48 16777341 +Choice: 49 16777376 +Choice: 50 16777416 +Choice: 51 16777466 +Choice: 52 16777536 +Choice: 53 16777616 +Choice: 54 16777716 +Choice: 55 16777856 +Choice: 56 16778016 +Choice: 57 16778216 +Choice: 58 16778466 +Choice: 59 16778816 +Choice: 60 16779216 +Choice: 61 16779716 +Choice: 62 16780416 +Choice: 63 16781216 +Choice: 64 16782216 +Choice: 65 16783616 +Choice: 66 16785216 +Choice: 67 16787216 +Choice: 68 16790016 +Choice: 69 16793216 +Choice: 70 16802816 +Choice: 71 16828416 +Choice: 72 16879616 +Choice: 73 16982016 +Choice: 74 17186816 +Choice: 75 50331647 +Choice: 76 33554532 +Choice: 77 33554632 +Choice: 78 33554832 +Choice: 79 33555232 +Choice: 80 33556032 +Choice: 81 33557632 +Choice: 82 33560832 +Choice: 83 33567232 +Choice: 84 33580032 +Choice: 85 33605632 +/main/other/d21b +Label: Picture Effect +Type: MENU +Current: 32768 +Choice: 0 32768 +/main/other/d21d +Label: PTP Property 0xd21d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d21f +Label: PTP Property 0xd21f +Type: MENU +Current: 0 +Choice: 0 2 +Choice: 1 1 +/main/other/d217 +Label: PTP Property 0xd217 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: MENU +Current: -1 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +Choice: 3 2 +Choice: 4 3 +Choice: 5 4 +Choice: 6 5 +Choice: 7 6 +Choice: 8 7 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 12 +Choice: 14 13 +Choice: 15 14 +Choice: 16 15 +Choice: 17 16 +Choice: 18 17 +Choice: 19 18 +Choice: 20 19 +Choice: 21 20 +Choice: 22 21 +Choice: 23 22 +Choice: 24 23 +Choice: 25 24 +Choice: 26 25 +Choice: 27 26 +Choice: 28 27 +Choice: 29 28 +Choice: 30 29 +Choice: 31 30 +Choice: 32 31 +Choice: 33 32 +Choice: 34 33 +Choice: 35 34 +Choice: 36 35 +Choice: 37 36 +Choice: 38 37 +Choice: 39 38 +Choice: 40 39 +Choice: 41 40 +Choice: 42 41 +Choice: 43 42 +Choice: 44 43 +Choice: 45 44 +Choice: 46 45 +Choice: 47 46 +Choice: 48 47 +Choice: 49 48 +Choice: 50 49 +Choice: 51 50 +Choice: 52 51 +Choice: 53 52 +Choice: 54 53 +Choice: 55 54 +Choice: 56 55 +Choice: 57 56 +Choice: 58 57 +Choice: 59 58 +Choice: 60 59 +Choice: 61 60 +Choice: 62 61 +Choice: 63 62 +Choice: 64 63 +Choice: 65 64 +Choice: 66 65 +Choice: 67 66 +Choice: 68 67 +Choice: 69 68 +Choice: 70 69 +Choice: 71 70 +Choice: 72 71 +Choice: 73 72 +Choice: 74 73 +Choice: 75 74 +Choice: 76 75 +Choice: 77 76 +Choice: 78 77 +Choice: 79 78 +Choice: 80 79 +Choice: 81 80 +Choice: 82 81 +Choice: 83 82 +Choice: 84 83 +Choice: 85 84 +Choice: 86 85 +Choice: 87 86 +Choice: 88 87 +Choice: 89 88 +Choice: 90 89 +Choice: 91 90 +Choice: 92 91 +Choice: 93 92 +Choice: 94 93 +Choice: 95 94 +Choice: 96 95 +Choice: 97 96 +Choice: 98 97 +Choice: 99 98 +Choice: 100 99 +Choice: 101 100 +/main/other/d219 +Label: PTP Property 0xd219 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +/main/other/d210 +Label: CC Filter +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +/main/other/d21c +Label: AB Filter +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +/main/other/d221 +Label: PTP Property 0xd221 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d214 +Label: PTP Property 0xd214 +Type: RANGE +Current: 3.39118e+07 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d215 +Label: PTP Property 0xd215 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c9 +Label: PTP Property 0xd2c9 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c8 +Label: Movie +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c7 +Label: Still Image +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +$ + + +$ gphoto2 --capture-image-and-download +New file is in location /capt0000.jpg on the camera +Saving file as capt0000.jpg +Deleting file /capt0000.jpg on the camera +New file is in location /capt0000.arw on the camera +Saving file as capt0000.arw +Deleting file /capt0000.arw on the camera +$ + + + + +$ gphoto2 --get-config shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1/25 +$ + + + +WORKING BUT VERY SLOW AS THE CAMERA LOOPS THROUGH ALL THE VALUES BETWEEN THE CURRENT AN NEW VALUE + +$ gphoto2 --set-config shutterspeed=1 +$ gphoto2 --set-config shutterspeed=30 +$ gphoto2 --set-config shutterspeed=1/4000 +$ gphoto2 --set-config shutterspeed=1/25 +$ + + +$ gphoto2 --list-ports +Devices found: 6 +Path Description +-------------------------------------------------------------- +ptpip: PTP/IP Connection +serial:/dev/ttyS0 Serial Port 0 +serial:/dev/ttyS1 Serial Port 1 +serial:/dev/ttyS2 Serial Port 2 +serial:/dev/ttyS3 Serial Port 3 +usb:003,003 Universal Serial Bus +$ + + + +$ gphoto2 --auto-detect +Model Port +---------------------------------------------------------- +USB PTP Class Camera usb:003,003 +$ + + +THE CARD HAS A LOTS OF DATA, YET THIS COMMAND RETURNS NO FILES + +$ gphoto2 --list-files +There is no file in folder '/'. +$ + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a77m2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a77m2.txt new file mode 100644 index 00000000..85319c19 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a77m2.txt @@ -0,0 +1,169 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: ILCA-77M2 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), Unknown(b101) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19] value: 3 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [1,2,4,32785,32784,6,32769,32770,32771,32772,7,32786,32800,32801,32802] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/4 (400) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,3,32772,32773,32776,32774,32775] value: Automatic (2) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: Average (1) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32772,32817,32818] value: Flash off (2) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32833,7,32785,32789,32788,32786,32787,32790,32791,32792] value: 32768 +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,1,2,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32786,32773,32772,32776,32777] value: Single Shot (1) +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,1,2,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 31 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65696 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,8,9,10,4,5,6,7] value: 7 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2] value: 2 +Property 0xd213:(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,102400,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632] value: 16777215 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd21f:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd218:(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 100 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 33922048 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c4:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c9:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 + + +sony code: 5004 +sony code: 5005 +sony code: 5007 +sony code: 500a +sony code: 500b +sony code: 500c +sony code: 500e +sony code: 5010 +sony code: 5013 +sony code: d200 +sony code: d201 +sony code: d203 +sony code: d20d +sony code: d20e +sony code: d20f +sony code: d210 +sony code: d21c +sony code: d211 +sony code: d213 +sony code: d21e +sony code: d21b +sony code: d21d +sony code: d21f +sony code: d217 +sony code: d218 +sony code: d219 +sony code: d212 +sony code: d221 +sony code: d214 +sony code: d215 +sony code: d220 +sony code: d2c1 +sony code: d2c2 +sony code: d2c4 +sony code: d2c3 +sony code: d2c9 +sony code: d2c8 +sony code: d2c5 +sony code: d2c7 + +Device info: +Manufacturer: Sony Corporation + Model: ILCA-77M2 + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000011 +Vendor extension version: 100 +Vendor extension description: Sony PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x9201 + 0x9202 + 0x9205 + 0x9207 + 0x9209 +Events Supported: + 0xc201 + 0xc202 + 0xc203 +Device Properties Supported: + 0x5004 + 0x5005 + 0x5007 + 0x500a + 0x500b + 0x500c + 0x500e + 0x5010 + 0x5013 + 0xd200 + 0xd201 + 0xd203 + 0xd20d + 0xd20e + 0xd20f + 0xd210 + 0xd21c + 0xd211 + 0xd213 + 0xd21e + 0xd21b + 0xd21d + 0xd21f + 0xd217 + 0xd218 + 0xd219 + 0xd212 + 0xd221 + 0xd214 + 0xd215 + 0xd220 + 0xd2c1 + 0xd2c2 + 0xd2c4 + 0xd2c3 + 0xd2c9 + 0xd2c8 + 0xd2c5 + 0xd2c7 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a7mr2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a7mr2.txt new file mode 100644 index 00000000..f596427d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a7mr2.txt @@ -0,0 +1,1371 @@ +(Adrians Sony) +Kamerazusammenfassung: +Hersteller: Sony Corporation +Modell: ILCE-7RM2 + Version: 4.0 + Seriennummer: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Beschreibung der Vendor Extension: Sony PTP Extensions + +Aufnahmeformate: +Anzeigeformate: JPEG, Unknown(b301), ARW + +Fähigkeiten des Geräts: + Dateien Download, kein Löschen von Dateien, kein Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Sony Aufnahme + +Informationen über Speichermedium: + +Properties des Geräts: +Kompressionseinstellung(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19] value: 3 +Weißabgleich(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32816,32786,32800,32801,32802] value: Automatic (2) +F-Nummer(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/2 (200) +Fokusmodus(0x500a):(readwrite) (type=0x4) Enumeration [1,2,32772,32773,32774] value: Automatic (2) +Belichtungsmessmodus(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: Average (1) +Blitzmodus(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32772,32817,32818] value: Undefined (0) +Belichtungsprogrammmodus(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32896,32897,32898,32899,32833,7,32785,32789,32788,32786,32787,32790,32791,32792] value: P (2) +Belichtungskorrektur(0x5010):(readwrite) (type=0x3) Enumeration [0,1,2,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0,3 stops (300) +Bildaufnahme Modus(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32786,32773,32771,32772,32776,32777,32780,32781,32782,32783,33591,34103,35127,33623,34135,35159,33655,34167,35191,33553,34065,35089,33569,34081,33585,34097,33590,34102,35126,33622,34134,35158,33654,34166,35190,33552,34064,35088,33568,34080,33584,34096,32792,32808,32793,32809] value: Single Shot (1) +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,1,2,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: -2000 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 31 +Bildgröße(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Belichtungszeit(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65566 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15] value: 15 +Farbtemperatur(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Seitenverhältnis(0xd211):(readwrite) (type=0x2) Enumeration [1,2] value: 1 +Fokus Status(0xd213):(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632] value: 16777215 +Bild Effekt(0xd21b):(readwrite) (type=0x4) Enumeration [32768,32769,32770,32771,32772,32773,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32880,32881,32882,32896,32897,32898,32912,32928,32929,32930,32931,32932,32933,32934,32944,32960,32961,32962] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd21f:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Batterie Ladezustand(0xd218):(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 100 +Sensor Crop(0xd219):(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 57464832 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220:PTP Fehler 2002 beim Abfragen +Autofokus(0xd2c1):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Aufnahme(0xd2c2):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c9:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Film(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Standbild(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 + +/main/actions/autofocus +Label: Auto-Focus +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/capture +Label: Aufnahme +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/bulb +Label: Langzeit Belichtungsmodus +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/movie +Label: Film Aufnahme +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/status/serialnumber +Label: Seriennummer +Readonly: 0 +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +END +/main/status/manufacturer +Label: Kamera Hersteller +Readonly: 0 +Type: TEXT +Current: Sony Corporation +END +/main/status/cameramodel +Label: Kameramodell +Readonly: 0 +Type: TEXT +Current: ILCE-7RM2 +END +/main/status/deviceversion +Label: Version des Gerätes +Readonly: 0 +Type: TEXT +Current: 4.0 +END +/main/status/vendorextension +Label: Hersteller Erweiterung +Readonly: 0 +Type: TEXT +Current: Sony PTP Extensions +END +/main/status/batterylevel +Label: Batterie Ladezustand +Readonly: 0 +Type: TEXT +Current: 100% +END +/main/imgsettings/imagesize +Label: Bildgröße +Readonly: 0 +Type: RADIO +Current: Groß +Choice: 0 Groß +Choice: 1 Mittel +Choice: 2 Klein +END +/main/imgsettings/iso +Label: ISO-Empfindlichkeit +Readonly: 0 +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Rauschunterdrückung bei Auto ISO Mehr Bild +Choice: 43 25 Mehr Bild Rauschunterdrückung +Choice: 44 50 Mehr Bild Rauschunterdrückung +Choice: 45 64 Mehr Bild Rauschunterdrückung +Choice: 46 80 Mehr Bild Rauschunterdrückung +Choice: 47 100 Mehr Bild Rauschunterdrückung +Choice: 48 125 Mehr Bild Rauschunterdrückung +Choice: 49 160 Mehr Bild Rauschunterdrückung +Choice: 50 200 Mehr Bild Rauschunterdrückung +Choice: 51 250 Mehr Bild Rauschunterdrückung +Choice: 52 320 Mehr Bild Rauschunterdrückung +Choice: 53 400 Mehr Bild Rauschunterdrückung +Choice: 54 500 Mehr Bild Rauschunterdrückung +Choice: 55 640 Mehr Bild Rauschunterdrückung +Choice: 56 800 Mehr Bild Rauschunterdrückung +Choice: 57 1000 Mehr Bild Rauschunterdrückung +Choice: 58 1250 Mehr Bild Rauschunterdrückung +Choice: 59 1600 Mehr Bild Rauschunterdrückung +Choice: 60 2000 Mehr Bild Rauschunterdrückung +Choice: 61 2500 Mehr Bild Rauschunterdrückung +Choice: 62 3200 Mehr Bild Rauschunterdrückung +Choice: 63 4000 Mehr Bild Rauschunterdrückung +Choice: 64 5000 Mehr Bild Rauschunterdrückung +Choice: 65 6400 Mehr Bild Rauschunterdrückung +Choice: 66 8000 Mehr Bild Rauschunterdrückung +Choice: 67 10000 Mehr Bild Rauschunterdrückung +Choice: 68 12800 Mehr Bild Rauschunterdrückung +Choice: 69 16000 Mehr Bild Rauschunterdrückung +Choice: 70 25600 Mehr Bild Rauschunterdrückung +Choice: 71 51200 Mehr Bild Rauschunterdrückung +Choice: 72 36864 Mehr Bild Rauschunterdrückung +Choice: 73 8192 Mehr Bild Rauschunterdrückung +Choice: 74 16384 Mehr Bild Rauschunterdrückung +Choice: 75 65535 Mehr Bild Rauschunterdrückung +Choice: 76 100 Mehr Bild Rauschunterdrückung +Choice: 77 200 Mehr Bild Rauschunterdrückung +Choice: 78 400 Mehr Bild Rauschunterdrückung +Choice: 79 800 Mehr Bild Rauschunterdrückung +Choice: 80 1600 Mehr Bild Rauschunterdrückung +Choice: 81 3200 Mehr Bild Rauschunterdrückung +Choice: 82 6400 Mehr Bild Rauschunterdrückung +Choice: 83 12800 Mehr Bild Rauschunterdrückung +Choice: 84 25600 Mehr Bild Rauschunterdrückung +Choice: 85 51200 Mehr Bild Rauschunterdrückung +END +/main/imgsettings/colortemperature +Label: Farbtemperatur +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/imgsettings/whitebalance +Label: Weißabgleich +Readonly: 0 +Type: RADIO +Current: Automatisch +Choice: 0 Automatisch +Choice: 1 Tageslicht +Choice: 2 Schatten +Choice: 3 Wolkig +Choice: 4 Kunstlicht - Glühlampe +Choice: 5 Fluoreszenz : Warmweiss +Choice: 6 Fluoreszenz: Kaltweiss +Choice: 7 Fluoreszenz: Tagweiss +Choice: 8 Fluoreszenz: Tageslicht +Choice: 9 Blitz +Choice: 10 Unterwasser: Automatisch +Choice: 11 Wähle Farbtemperatur +Choice: 12 Voreinstellung 1 +Choice: 13 Voreinstellung 2 +Choice: 14 Voreinstellung 3 +END +/main/capturesettings/exposurecompensation +Label: Belichtungskorrektur +Readonly: 0 +Type: RADIO +Current: 0,3 +Choice: 0 0 +Choice: 1 0,001 +Choice: 2 0,002 +Choice: 3 5 +Choice: 4 4,7 +Choice: 5 4,5 +Choice: 6 4,3 +Choice: 7 4 +Choice: 8 3,7 +Choice: 9 3,5 +Choice: 10 3,3 +Choice: 11 3 +Choice: 12 2,7 +Choice: 13 2,5 +Choice: 14 2,3 +Choice: 15 2 +Choice: 16 1,7 +Choice: 17 1,5 +Choice: 18 1,3 +Choice: 19 1 +Choice: 20 0,7 +Choice: 21 0,5 +Choice: 22 0,3 +Choice: 23 -0,3 +Choice: 24 -0,5 +Choice: 25 -0,7 +Choice: 26 -1 +Choice: 27 -1,3 +Choice: 28 -1,5 +Choice: 29 -1,7 +Choice: 30 -2 +Choice: 31 -2,3 +Choice: 32 -2,5 +Choice: 33 -2,7 +Choice: 34 -3 +Choice: 35 -3,3 +Choice: 36 -3,5 +Choice: 37 -3,7 +Choice: 38 -4 +Choice: 39 -4,3 +Choice: 40 -4,5 +Choice: 41 -4,7 +Choice: 42 -5 +END +/main/capturesettings/flashmode +Label: Blitzmodus +Readonly: 0 +Type: RADIO +Current: Unbekannter Wert 0000 +Choice: 0 Blitz aus +Choice: 1 Automatischer Blitz +Choice: 2 automatische Rote-Augen-Vermeidung +Choice: 3 Auffüll Blitz +Choice: 4 Rote-Augen-Blitz Füllmodus +Choice: 5 Unbekannter Wert 8001 +Choice: 6 Hinterer Vorhang Sync +Choice: 7 Wireless Sync +Choice: 8 Unbekannter Wert 8031 +Choice: 9 Langsamer Sync +Choice: 10 Unbekannter Wert 0000 +END +/main/capturesettings/f-number +Label: F-Nummer +Readonly: 0 +Type: RANGE +Current: 2 +Bottom: 0 +Top: 655,35 +Step: 0,01 +END +/main/capturesettings/imagequality +Label: Bildqualität +Readonly: 0 +Type: RADIO +Current: Fein +Choice: 0 Standard +Choice: 1 Fein +Choice: 2 Extra Fine +Choice: 3 RAW +Choice: 4 RAW+JPEG +END +/main/capturesettings/focusmode +Label: Fokusmodus +Readonly: 0 +Type: RADIO +Current: Automatisch +Choice: 0 Manuell +Choice: 1 Automatisch +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 DMF +END +/main/capturesettings/expprogram +Label: Belichtungs Programm +Readonly: 0 +Type: RADIO +Current: P +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Film +Choice: 7 Unbekannter Wert 8051 +Choice: 8 Unbekannter Wert 8052 +Choice: 9 Unbekannter Wert 8053 +Choice: 10 Unbekannter Wert 8054 +Choice: 11 Unbekannter Wert 8080 +Choice: 12 Unbekannter Wert 8081 +Choice: 13 Unbekannter Wert 8082 +Choice: 14 Unbekannter Wert 8083 +Choice: 15 Sweep Panorama +Choice: 16 Portrait +Choice: 17 Sport +Choice: 18 Makro +Choice: 19 Landschaft +Choice: 20 Sonnenuntergang +Choice: 21 Nachtlandschaft +Choice: 22 Freihand bei Dämmerung +Choice: 23 Nachtportrait +Choice: 24 Unbekannter Wert 8018 +END +/main/capturesettings/aspectratio +Label: Seitenverhältnis +Readonly: 0 +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +Choice: 1 16:9 +END +/main/capturesettings/capturemode +Label: Bildaufnahme Modus +Readonly: 0 +Type: RADIO +Current: Einzelbild +Choice: 0 Einzelbild +Choice: 1 Mehrbild +Choice: 2 Kontinuierlicher Langsame Geschwindigkeit +Choice: 3 Selbstauslöser 2s +Choice: 4 Selftimer 5s +Choice: 5 Selbstauslöser 10s +Choice: 6 Selftimer 10s 3 Pictures +Choice: 7 Selftimer 10s 5 Pictures +Choice: 8 Selftimer 5s 3 Pictures +Choice: 9 Selftimer 5s 5 Pictures +Choice: 10 Selftimer 2s 3 Pictures +Choice: 11 Selftimer 2s 5 Pictures +Choice: 12 Bracketing C 0.3 Steps 3 Pictures +Choice: 13 Bracketing C 0.3 Steps 5 Pictures +Choice: 14 Bracketing C 0.3 Steps 9 Pictures +Choice: 15 Bracketing C 0.5 Steps 3 Pictures +Choice: 16 Bracketing C 0.5 Steps 5 Pictures +Choice: 17 Bracketing C 0.5 Steps 9 Pictures +Choice: 18 Bracketing C 0.7 Steps 3 Pictures +Choice: 19 Bracketing C 0.7 Steps 5 Pictures +Choice: 20 Bracketing C 0.7 Steps 9 Pictures +Choice: 21 Bracketing C 1.0 Steps 3 Pictures +Choice: 22 Bracketing C 1.0 Steps 5 Pictures +Choice: 23 Bracketing C 1.0 Steps 9 Pictures +Choice: 24 Bracketing C 2.0 Steps 3 Pictures +Choice: 25 Bracketing C 2.0 Steps 5 Pictures +Choice: 26 Bracketing C 3.0 Steps 3 Pictures +Choice: 27 Bracketing C 3.0 Steps 5 Pictures +Choice: 28 Bracketing S 0.3 Steps 3 Pictures +Choice: 29 Bracketing S 0.3 Steps 5 Pictures +Choice: 30 Bracketing S 0.3 Steps 9 Pictures +Choice: 31 Bracketing S 0.5 Steps 3 Pictures +Choice: 32 Bracketing S 0.5 Steps 5 Pictures +Choice: 33 Bracketing S 0.5 Steps 9 Pictures +Choice: 34 Bracketing S 0.7 Steps 3 Pictures +Choice: 35 Bracketing S 0.7 Steps 5 Pictures +Choice: 36 Bracketing S 0.7 Steps 9 Pictures +Choice: 37 Bracketing S 1.0 Steps 3 Pictures +Choice: 38 Bracketing S 1.0 Steps 5 Pictures +Choice: 39 Bracketing S 1.0 Steps 9 Pictures +Choice: 40 Bracketing S 2.0 Steps 3 Pictures +Choice: 41 Bracketing S 2.0 Steps 5 Pictures +Choice: 42 Bracketing S 3.0 Steps 3 Pictures +Choice: 43 Bracketing S 3.0 Steps 5 Pictures +Choice: 44 Belichtungsreihe Whitebalance Low +Choice: 45 Belichtungsreihe Whitebalance High +Choice: 46 Bracketing DRO Lo +Choice: 47 Bracketing DRO Hi +END +/main/capturesettings/exposuremetermode +Label: Belichtungsmessmodus +Readonly: 0 +Type: RADIO +Current: Durchschnitt +Choice: 0 Zentral Punkt +Choice: 1 Durchschnitt +Choice: 2 Unbekannter Wert 8002 +END +/main/capturesettings/shutterspeed +Label: Belichtungszeit +Readonly: 0 +Type: RADIO +Current: 1/30 +Choice: 0 30 +Choice: 1 25 +Choice: 2 20 +Choice: 3 15 +Choice: 4 13 +Choice: 5 10 +Choice: 6 8 +Choice: 7 6 +Choice: 8 5 +Choice: 9 4 +Choice: 10 32/10 +Choice: 11 25/10 +Choice: 12 2 +Choice: 13 16/10 +Choice: 14 13/10 +Choice: 15 1 +Choice: 16 8/10 +Choice: 17 6/10 +Choice: 18 5/10 +Choice: 19 4/10 +Choice: 20 1/3 +Choice: 21 1/4 +Choice: 22 1/5 +Choice: 23 1/6 +Choice: 24 1/8 +Choice: 25 1/10 +Choice: 26 1/13 +Choice: 27 1/15 +Choice: 28 1/20 +Choice: 29 1/25 +Choice: 30 1/30 +Choice: 31 1/40 +Choice: 32 1/50 +Choice: 33 1/60 +Choice: 34 1/80 +Choice: 35 1/100 +Choice: 36 1/125 +Choice: 37 1/160 +Choice: 38 1/200 +Choice: 39 1/250 +Choice: 40 1/320 +Choice: 41 1/400 +Choice: 42 1/500 +Choice: 43 1/640 +Choice: 44 1/800 +Choice: 45 1/1000 +Choice: 46 1/1250 +Choice: 47 1/1600 +Choice: 48 1/2000 +Choice: 49 1/2500 +Choice: 50 1/3200 +Choice: 51 1/4000 +Choice: 52 Langzeitbelichtung +END +/main/capturesettings/sensorcrop +Label: Sensor Crop +Readonly: 0 +Type: RADIO +Current: Aus +Choice: 0 An +Choice: 1 Aus +END +/main/other/5004 +Label: Kompressionseinstellung +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +END +/main/other/5005 +Label: Weißabgleich +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32816 +Choice: 11 32786 +Choice: 12 32800 +Choice: 13 32801 +Choice: 14 32802 +END +/main/other/5007 +Label: F-Nummer +Readonly: 0 +Type: RANGE +Current: 200 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/500a +Label: Fokusmodus +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32774 +END +/main/other/500b +Label: Belichtungsmessmodus +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +END +/main/other/500c +Label: Blitzmodus +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32772 +Choice: 8 32817 +Choice: 9 32818 +END +/main/other/500e +Label: Belichtungsprogrammmodus +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32896 +Choice: 12 32897 +Choice: 13 32898 +Choice: 14 32899 +Choice: 15 32833 +Choice: 16 7 +Choice: 17 32785 +Choice: 18 32789 +Choice: 19 32788 +Choice: 20 32786 +Choice: 21 32787 +Choice: 22 32790 +Choice: 23 32791 +Choice: 24 32792 +END +/main/other/5010 +Label: Belichtungskorrektur +Readonly: 0 +Type: MENU +Current: 300 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 5000 +Choice: 4 4700 +Choice: 5 4500 +Choice: 6 4300 +Choice: 7 4000 +Choice: 8 3700 +Choice: 9 3500 +Choice: 10 3300 +Choice: 11 3000 +Choice: 12 2700 +Choice: 13 2500 +Choice: 14 2300 +Choice: 15 2000 +Choice: 16 1700 +Choice: 17 1500 +Choice: 18 1300 +Choice: 19 1000 +Choice: 20 700 +Choice: 21 500 +Choice: 22 300 +Choice: 23 -300 +Choice: 24 -500 +Choice: 25 -700 +Choice: 26 -1000 +Choice: 27 -1300 +Choice: 28 -1500 +Choice: 29 -1700 +Choice: 30 -2000 +Choice: 31 -2300 +Choice: 32 -2500 +Choice: 33 -2700 +Choice: 34 -3000 +Choice: 35 -3300 +Choice: 36 -3500 +Choice: 37 -3700 +Choice: 38 -4000 +Choice: 39 -4300 +Choice: 40 -4500 +Choice: 41 -4700 +Choice: 42 -5000 +END +/main/other/5013 +Label: Bildaufnahme Modus +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32786 +Choice: 3 32773 +Choice: 4 32771 +Choice: 5 32772 +Choice: 6 32776 +Choice: 7 32777 +Choice: 8 32780 +Choice: 9 32781 +Choice: 10 32782 +Choice: 11 32783 +Choice: 12 33591 +Choice: 13 34103 +Choice: 14 35127 +Choice: 15 33623 +Choice: 16 34135 +Choice: 17 35159 +Choice: 18 33655 +Choice: 19 34167 +Choice: 20 35191 +Choice: 21 33553 +Choice: 22 34065 +Choice: 23 35089 +Choice: 24 33569 +Choice: 25 34081 +Choice: 26 33585 +Choice: 27 34097 +Choice: 28 33590 +Choice: 29 34102 +Choice: 30 35126 +Choice: 31 33622 +Choice: 32 34134 +Choice: 33 35158 +Choice: 34 33654 +Choice: 35 34166 +Choice: 36 35190 +Choice: 37 33552 +Choice: 38 34064 +Choice: 39 35088 +Choice: 40 33568 +Choice: 41 34080 +Choice: 42 33584 +Choice: 43 34096 +Choice: 44 32792 +Choice: 45 32808 +Choice: 46 32793 +Choice: 47 32809 +END +/main/other/d200 +Label: DOC Compensation +Readonly: 0 +Type: MENU +Current: -2000 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3000 +Choice: 4 2700 +Choice: 5 2500 +Choice: 6 2300 +Choice: 7 2000 +Choice: 8 1700 +Choice: 9 1500 +Choice: 10 1300 +Choice: 11 1000 +Choice: 12 700 +Choice: 13 500 +Choice: 14 300 +Choice: 15 -300 +Choice: 16 -500 +Choice: 17 -700 +Choice: 18 -1000 +Choice: 19 -1300 +Choice: 20 -1500 +Choice: 21 -1700 +Choice: 22 -2000 +Choice: 23 -2300 +Choice: 24 -2500 +Choice: 25 -2700 +Choice: 26 -3000 +END +/main/other/d201 +Label: DRangeOptimize +Readonly: 0 +Type: MENU +Current: 31 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +END +/main/other/d203 +Label: Bildgröße +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d20d +Label: Belichtungszeit +Readonly: 0 +Type: RANGE +Current: 65566 +Bottom: 0 +Top: 4,29497e+09 +Step: 1 +END +/main/other/d20e +Label: PTP Property 0xd20e +Readonly: 0 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +END +/main/other/d20f +Label: Farbtemperatur +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +END +/main/other/d211 +Label: Seitenverhältnis +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d213 +Label: Fokus Status +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +END +/main/other/d21e +Label: ISO +Readonly: 0 +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777316 +Choice: 48 16777341 +Choice: 49 16777376 +Choice: 50 16777416 +Choice: 51 16777466 +Choice: 52 16777536 +Choice: 53 16777616 +Choice: 54 16777716 +Choice: 55 16777856 +Choice: 56 16778016 +Choice: 57 16778216 +Choice: 58 16778466 +Choice: 59 16778816 +Choice: 60 16779216 +Choice: 61 16779716 +Choice: 62 16780416 +Choice: 63 16781216 +Choice: 64 16782216 +Choice: 65 16783616 +Choice: 66 16785216 +Choice: 67 16787216 +Choice: 68 16790016 +Choice: 69 16793216 +Choice: 70 16802816 +Choice: 71 16828416 +Choice: 72 16879616 +Choice: 73 16982016 +Choice: 74 17186816 +Choice: 75 50331647 +Choice: 76 33554532 +Choice: 77 33554632 +Choice: 78 33554832 +Choice: 79 33555232 +Choice: 80 33556032 +Choice: 81 33557632 +Choice: 82 33560832 +Choice: 83 33567232 +Choice: 84 33580032 +Choice: 85 33605632 +END +/main/other/d21b +Label: Bild Effekt +Readonly: 0 +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32928 +Choice: 24 32929 +Choice: 25 32930 +Choice: 26 32931 +Choice: 27 32932 +Choice: 28 32933 +Choice: 29 32934 +Choice: 30 32944 +Choice: 31 32960 +Choice: 32 32961 +Choice: 33 32962 +END +/main/other/d21d +Label: PTP Property 0xd21d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d21f +Label: PTP Property 0xd21f +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d217 +Label: PTP Property 0xd217 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d218 +Label: Batterie Ladezustand +Readonly: 0 +Type: MENU +Current: 100 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +Choice: 3 2 +Choice: 4 3 +Choice: 5 4 +Choice: 6 5 +Choice: 7 6 +Choice: 8 7 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 12 +Choice: 14 13 +Choice: 15 14 +Choice: 16 15 +Choice: 17 16 +Choice: 18 17 +Choice: 19 18 +Choice: 20 19 +Choice: 21 20 +Choice: 22 21 +Choice: 23 22 +Choice: 24 23 +Choice: 25 24 +Choice: 26 25 +Choice: 27 26 +Choice: 28 27 +Choice: 29 28 +Choice: 30 29 +Choice: 31 30 +Choice: 32 31 +Choice: 33 32 +Choice: 34 33 +Choice: 35 34 +Choice: 36 35 +Choice: 37 36 +Choice: 38 37 +Choice: 39 38 +Choice: 40 39 +Choice: 41 40 +Choice: 42 41 +Choice: 43 42 +Choice: 44 43 +Choice: 45 44 +Choice: 46 45 +Choice: 47 46 +Choice: 48 47 +Choice: 49 48 +Choice: 50 49 +Choice: 51 50 +Choice: 52 51 +Choice: 53 52 +Choice: 54 53 +Choice: 55 54 +Choice: 56 55 +Choice: 57 56 +Choice: 58 57 +Choice: 59 58 +Choice: 60 59 +Choice: 61 60 +Choice: 62 61 +Choice: 63 62 +Choice: 64 63 +Choice: 65 64 +Choice: 66 65 +Choice: 67 66 +Choice: 68 67 +Choice: 69 68 +Choice: 70 69 +Choice: 71 70 +Choice: 72 71 +Choice: 73 72 +Choice: 74 73 +Choice: 75 74 +Choice: 76 75 +Choice: 77 76 +Choice: 78 77 +Choice: 79 78 +Choice: 80 79 +Choice: 81 80 +Choice: 82 81 +Choice: 83 82 +Choice: 84 83 +Choice: 85 84 +Choice: 86 85 +Choice: 87 86 +Choice: 88 87 +Choice: 89 88 +Choice: 90 89 +Choice: 91 90 +Choice: 92 91 +Choice: 93 92 +Choice: 94 93 +Choice: 95 94 +Choice: 96 95 +Choice: 97 96 +Choice: 98 97 +Choice: 99 98 +Choice: 100 99 +Choice: 101 100 +END +/main/other/d219 +Label: Sensor Crop +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d212 +Label: PTP Property 0xd212 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +END +/main/other/d210 +Label: CC Filter +Readonly: 0 +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +END +/main/other/d21c +Label: AB Filter +Readonly: 0 +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +END +/main/other/d221 +Label: PTP Property 0xd221 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d214 +Label: PTP Property 0xd214 +Readonly: 0 +Type: RANGE +Current: 5,74648e+07 +Bottom: 0 +Top: 4,29497e+09 +Step: 1 +END +/main/other/d215 +Label: Objects in memory +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/d2c1 +Label: Autofokus +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c2 +Label: Aufnahme +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c9 +Label: PTP Property 0xd2c9 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c8 +Label: Film +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c7 +Label: Standbild +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END + +Device info: +Manufacturer: Sony Corporation + Model: ILCE-7RM2 + device version: 4.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000011 +Vendor extension version: 100 +Vendor extension description: Sony PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x9201 (PTP_OC_SONY_SDIOConnect) + 0x9202 (PTP_OC_SONY_GetSDIOGetExtDeviceInfo) + 0x9205 (PTP_OC_SONY_SetControlDeviceA) + 0x9207 (PTP_OC_SONY_SetControlDeviceB) + 0x9209 (PTP_OC_SONY_GetAllDevicePropData) +Events Supported: + 0xc201 (Unknown Event) + 0xc202 (Unknown Event) + 0xc203 (Unknown Event) +Device Properties Supported: + 0x5004 (Compression Setting) + 0x5005 (White Balance) + 0x5007 (F-Number) + 0x500a (Focus Mode) + 0x500b (Exposure Metering Mode) + 0x500c (Flash Mode) + 0x500e (Exposure Program Mode) + 0x5010 (Exposure Bias Compensation) + 0x5013 (Still Capture Mode) + 0xd200 (DOC Compensation) + 0xd201 (DRangeOptimize) + 0xd203 (Image size) + 0xd20d (Shutter speed) + 0xd20e (Unknown DPC code) + 0xd20f (Color temperature) + 0xd211 (Aspect Ratio) + 0xd213 (Focus status) + 0xd21e (ISO) + 0xd21b (Picture Effect) + 0xd21d (Unknown DPC code) + 0xd21f (Unknown DPC code) + 0xd217 (Unknown DPC code) + 0xd218 (Battery Level) + 0xd219 (Sensor Crop) + 0xd212 (Unknown DPC code) + 0xd210 (CC Filter) + 0xd21c (AB Filter) + 0xd221 (Unknown DPC code) + 0xd214 (Unknown DPC code) + 0xd215 (Objects in memory) + 0xd220 (Unknown DPC code) + 0xd2c1 (Autofocus) + 0xd2c2 (Capture) + 0xd2c3 (Unknown DPC code) + 0xd2c9 (Unknown DPC code) + 0xd2c8 (Movie) + 0xd2c5 (Unknown DPC code) + 0xd2c7 (Still Image) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a7r.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a7r.txt new file mode 100644 index 00000000..3ad2055b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a7r.txt @@ -0,0 +1,2315 @@ +/main/actions/movie +Label: Film Aufnahme +Type: TOGGLE +Current: 2 +/main/status/serialnumber +Label: Seriennummer +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Kamera Hersteller +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Kameramodell +Type: TEXT +Current: ILCE-7RM2 +/main/status/deviceversion +Label: Version des Gerätes +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Hersteller Erweiterung +Type: TEXT +Current: Sony PTP Extensions +/main/imgsettings/imagesize +Label: Bildgröße +Type: RADIO +Current: Groß +Choice: 0 Groß +Choice: 1 Mittel +Choice: 2 Klein +/main/imgsettings/iso +Label: ISO-Geschwindigkeit +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Rauschunterdrückung bei Auto ISO Mehr Bild +Choice: 43 25 Mehr Bild Rauschunterdrückung +Choice: 44 50 Mehr Bild Rauschunterdrückung +Choice: 45 64 Mehr Bild Rauschunterdrückung +Choice: 46 80 Mehr Bild Rauschunterdrückung +Choice: 47 100 Mehr Bild Rauschunterdrückung +Choice: 48 125 Mehr Bild Rauschunterdrückung +Choice: 49 160 Mehr Bild Rauschunterdrückung +Choice: 50 200 Mehr Bild Rauschunterdrückung +Choice: 51 250 Mehr Bild Rauschunterdrückung +Choice: 52 320 Mehr Bild Rauschunterdrückung +Choice: 53 400 Mehr Bild Rauschunterdrückung +Choice: 54 500 Mehr Bild Rauschunterdrückung +Choice: 55 640 Mehr Bild Rauschunterdrückung +Choice: 56 800 Mehr Bild Rauschunterdrückung +Choice: 57 1000 Mehr Bild Rauschunterdrückung +Choice: 58 1250 Mehr Bild Rauschunterdrückung +Choice: 59 1600 Mehr Bild Rauschunterdrückung +Choice: 60 2000 Mehr Bild Rauschunterdrückung +Choice: 61 2500 Mehr Bild Rauschunterdrückung +Choice: 62 3200 Mehr Bild Rauschunterdrückung +Choice: 63 4000 Mehr Bild Rauschunterdrückung +Choice: 64 5000 Mehr Bild Rauschunterdrückung +Choice: 65 6400 Mehr Bild Rauschunterdrückung +Choice: 66 8000 Mehr Bild Rauschunterdrückung +Choice: 67 10000 Mehr Bild Rauschunterdrückung +Choice: 68 12800 Mehr Bild Rauschunterdrückung +Choice: 69 16000 Mehr Bild Rauschunterdrückung +Choice: 70 25600 Mehr Bild Rauschunterdrückung +Choice: 71 51200 Mehr Bild Rauschunterdrückung +Choice: 72 36864 Mehr Bild Rauschunterdrückung +Choice: 73 8192 Mehr Bild Rauschunterdrückung +Choice: 74 16384 Mehr Bild Rauschunterdrückung +Choice: 75 65535 Mehr Bild Rauschunterdrückung +Choice: 76 100 Mehr Bild Rauschunterdrückung +Choice: 77 200 Mehr Bild Rauschunterdrückung +Choice: 78 400 Mehr Bild Rauschunterdrückung +Choice: 79 800 Mehr Bild Rauschunterdrückung +Choice: 80 1600 Mehr Bild Rauschunterdrückung +Choice: 81 3200 Mehr Bild Rauschunterdrückung +Choice: 82 6400 Mehr Bild Rauschunterdrückung +Choice: 83 12800 Mehr Bild Rauschunterdrückung +Choice: 84 25600 Mehr Bild Rauschunterdrückung +Choice: 85 51200 Mehr Bild Rauschunterdrückung +/main/imgsettings/colortemperature +Label: Farbtemperatur +Type: TEXT +Current: 0 +/main/imgsettings/whitebalance +Label: Weißabgleich +Type: RADIO +Current: Automatisch +Choice: 0 Automatisch +Choice: 1 Tageslicht +Choice: 2 Schatten +Choice: 3 Wolkig +Choice: 4 Kunstlicht - Glühlampe +Choice: 5 Fluoreszenz : Warmweiss +Choice: 6 Fluoreszenz: Kaltweiss +Choice: 7 Fluoreszenz: Tagweiss +Choice: 8 Fluoreszenz: Tageslicht +Choice: 9 Blitz +Choice: 10 Unbekannter Wert 8030 +Choice: 11 Wähle Farbtemperatur +Choice: 12 Unbekannter Wert 8020 +Choice: 13 Unbekannter Wert 8021 +Choice: 14 Unbekannter Wert 8022 +/main/capturesettings/exposurecompensation +Label: Belichtungskompensation +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 0,001 +Choice: 2 0,002 +Choice: 3 5 +Choice: 4 4,7 +Choice: 5 4,5 +Choice: 6 4,3 +Choice: 7 4 +Choice: 8 3,7 +Choice: 9 3,5 +Choice: 10 3,3 +Choice: 11 3 +Choice: 12 2,7 +Choice: 13 2,5 +Choice: 14 2,3 +Choice: 15 2 +Choice: 16 1,7 +Choice: 17 1,5 +Choice: 18 1,3 +Choice: 19 1 +Choice: 20 0,7 +Choice: 21 0,5 +Choice: 22 0,3 +Choice: 23 -0,3 +Choice: 24 -0,5 +Choice: 25 -0,7 +Choice: 26 -1 +Choice: 27 -1,3 +Choice: 28 -1,5 +Choice: 29 -1,7 +Choice: 30 -2 +Choice: 31 -2,3 +Choice: 32 -2,5 +Choice: 33 -2,7 +Choice: 34 -3 +Choice: 35 -3,3 +Choice: 36 -3,5 +Choice: 37 -3,7 +Choice: 38 -4 +Choice: 39 -4,3 +Choice: 40 -4,5 +Choice: 41 -4,7 +Choice: 42 -5 +/main/capturesettings/flashmode +Label: Blitzmodus +Type: RADIO +Current: Unbekannter Wert 0000 +Choice: 0 Blitz aus +Choice: 1 Automatischer Blitz +Choice: 2 automatische Rote-Augen-Vermeidung +Choice: 3 Auffüll Blitz +Choice: 4 Rote-Augen-Blitz Füllmodus +Choice: 5 Unbekannter Wert 8001 +Choice: 6 Hinterer Vorhang Sync +Choice: 7 Wireless Sync +Choice: 8 Unbekannter Wert 8031 +Choice: 9 Langsamer Sync +Choice: 10 Unbekannter Wert 0000 +/main/capturesettings/f-number +Label: F-Nummer +Type: RANGE +Current: 2 +Bottom: 0 +Top: 655,35 +Step: 0,01 +/main/capturesettings/imagequality +Label: Bildqualität +Type: RADIO +Current: Unbekannter Wert 0004 +Choice: 0 Standard +Choice: 1 Fein +Choice: 2 Unbekannter Wert 0004 +Choice: 3 RAW +Choice: 4 RAW+JPEG +Choice: 5 Unbekannter Wert 0004 +/main/capturesettings/focusmode +Label: Fokusmodus +Type: RADIO +Current: Manuell +Choice: 0 Manuell +Choice: 1 Automatisch +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unbekannter Wert 8006 +/main/capturesettings/expprogram +Label: Belichtungs Programm +Type: RADIO +Current: P +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Film +Choice: 7 Unbekannter Wert 8051 +Choice: 8 Unbekannter Wert 8052 +Choice: 9 Unbekannter Wert 8053 +Choice: 10 Unbekannter Wert 8054 +Choice: 11 Unbekannter Wert 8080 +Choice: 12 Unbekannter Wert 8081 +Choice: 13 Unbekannter Wert 8082 +Choice: 14 Unbekannter Wert 8083 +Choice: 15 Sweep Panorama +Choice: 16 Portrait +Choice: 17 Sport +Choice: 18 Makro +Choice: 19 Landschaft +Choice: 20 Sonnenuntergang +Choice: 21 Nachtlandschaft +Choice: 22 Hand-held Twilight +Choice: 23 Nachtportrait +Choice: 24 Unbekannter Wert 8018 +/main/capturesettings/aspectratio +Label: Seitenverhältnis +Type: RADIO +Current: 16:9 +Choice: 0 16:9 +Choice: 1 3:2 +/main/capturesettings/capturemode +Label: Bildaufnahme Modus +Type: RADIO +Current: Einzelbild +Choice: 0 Einzelbild +Choice: 1 Mehrbild +Choice: 2 Kontinuierlicher Langsame Geschwindigkeit +Choice: 3 Selbstauslöser 2s +Choice: 4 Unbekannter Wert 8003 +Choice: 5 Selbstauslöser 10s +Choice: 6 Unbekannter Wert 8008 +Choice: 7 Unbekannter Wert 8009 +Choice: 8 Unbekannter Wert 800c +Choice: 9 Unbekannter Wert 800d +Choice: 10 Unbekannter Wert 800e +Choice: 11 Unbekannter Wert 800f +Choice: 12 Bracketing C 0.3 Steps +Choice: 13 Unbekannter Wert 8537 +Choice: 14 Unbekannter Wert 8937 +Choice: 15 Unbekannter Wert 8357 +Choice: 16 Unbekannter Wert 8557 +Choice: 17 Unbekannter Wert 8957 +Choice: 18 Bracketing C 0.7 Steps +Choice: 19 Unbekannter Wert 8577 +Choice: 20 Unbekannter Wert 8977 +Choice: 21 Bracketing C 1.0 Steps +Choice: 22 Unbekannter Wert 8511 +Choice: 23 Unbekannter Wert 8911 +Choice: 24 Bracketing C 2.0 Steps +Choice: 25 Unbekannter Wert 8521 +Choice: 26 Bracketing C 3.0 Steps +Choice: 27 Unbekannter Wert 8531 +Choice: 28 Bracketing S 0.3 Steps +Choice: 29 Unbekannter Wert 8536 +Choice: 30 Unbekannter Wert 8936 +Choice: 31 Unbekannter Wert 8356 +Choice: 32 Unbekannter Wert 8556 +Choice: 33 Unbekannter Wert 8956 +Choice: 34 Bracketing S 0.7 Steps +Choice: 35 Unbekannter Wert 8576 +Choice: 36 Unbekannter Wert 8976 +Choice: 37 Bracketing S 1.0 Steps +Choice: 38 Unbekannter Wert 8510 +Choice: 39 Unbekannter Wert 8910 +Choice: 40 Bracketing S 2.0 Steps +Choice: 41 Unbekannter Wert 8520 +Choice: 42 Bracketing S 3.0 Steps +Choice: 43 Unbekannter Wert 8530 +Choice: 44 Bracketing WB Lo +Choice: 45 Bracketing WB Hi +Choice: 46 Unbekannter Wert 8019 +Choice: 47 Unbekannter Wert 8029 +/main/capturesettings/exposuremetermode +Label: Belichtungsmessmodus +Type: RADIO +Current: Durchschnitt +Choice: 0 Zentral Punkt +Choice: 1 Durchschnitt +Choice: 2 Unbekannter Wert 8002 +/main/capturesettings/shutterspeed +Label: Belichtungszeit +Type: RADIO +Current: 1/60 +/main/other/5004 +Label: Kompressions Parameter +Type: MENU +Current: 4 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +/main/other/5005 +Label: Weißabgleich +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32816 +Choice: 11 32786 +Choice: 12 32800 +Choice: 13 32801 +Choice: 14 32802 +/main/other/5007 +Label: F-Nummer +Type: RANGE +Current: 200 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/500a +Label: Fokusmodus +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32774 +/main/other/500b +Label: Belichtungsmessmodus +Type: MENU +Current: 1 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +/main/other/500c +Label: Blitzmodus +Type: MENU +Current: 0 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32772 +Choice: 8 32817 +Choice: 9 32818 +/main/other/500e +Label: Belichtungs Programm Modus +Type: MENU +Current: 2 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32896 +Choice: 12 32897 +Choice: 13 32898 +Choice: 14 32899 +Choice: 15 32833 +Choice: 16 7 +Choice: 17 32785 +Choice: 18 32789 +Choice: 19 32788 +Choice: 20 32786 +Choice: 21 32787 +Choice: 22 32790 +Choice: 23 32791 +Choice: 24 32792 +/main/other/5010 +Label: Belichtungskompensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 5000 +Choice: 4 4700 +Choice: 5 4500 +Choice: 6 4300 +Choice: 7 4000 +Choice: 8 3700 +Choice: 9 3500 +Choice: 10 3300 +Choice: 11 3000 +Choice: 12 2700 +Choice: 13 2500 +Choice: 14 2300 +Choice: 15 2000 +Choice: 16 1700 +Choice: 17 1500 +Choice: 18 1300 +Choice: 19 1000 +Choice: 20 700 +Choice: 21 500 +Choice: 22 300 +Choice: 23 -300 +Choice: 24 -500 +Choice: 25 -700 +Choice: 26 -1000 +Choice: 27 -1300 +Choice: 28 -1500 +Choice: 29 -1700 +Choice: 30 -2000 +Choice: 31 -2300 +Choice: 32 -2500 +Choice: 33 -2700 +Choice: 34 -3000 +Choice: 35 -3300 +Choice: 36 -3500 +Choice: 37 -3700 +Choice: 38 -4000 +Choice: 39 -4300 +Choice: 40 -4500 +Choice: 41 -4700 +Choice: 42 -5000 +/main/other/5013 +Label: Bildaufnahme Modus +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32786 +Choice: 3 32773 +Choice: 4 32771 +Choice: 5 32772 +Choice: 6 32776 +Choice: 7 32777 +Choice: 8 32780 +Choice: 9 32781 +Choice: 10 32782 +Choice: 11 32783 +Choice: 12 33591 +Choice: 13 34103 +Choice: 14 35127 +Choice: 15 33623 +Choice: 16 34135 +Choice: 17 35159 +Choice: 18 33655 +Choice: 19 34167 +Choice: 20 35191 +Choice: 21 33553 +Choice: 22 34065 +Choice: 23 35089 +Choice: 24 33569 +Choice: 25 34081 +Choice: 26 33585 +Choice: 27 34097 +Choice: 28 33590 +Choice: 29 34102 +Choice: 30 35126 +Choice: 31 33622 +Choice: 32 34134 +Choice: 33 35158 +Choice: 34 33654 +Choice: 35 34166 +Choice: 36 35190 +Choice: 37 33552 +Choice: 38 34064 +Choice: 39 35088 +Choice: 40 33568 +Choice: 41 34080 +Choice: 42 33584 +Choice: 43 34096 +Choice: 44 32792 +Choice: 45 32808 +Choice: 46 32793 +Choice: 47 32809 +/main/other/d200 +Label: DOC Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3000 +Choice: 4 2700 +Choice: 5 2500 +Choice: 6 2300 +Choice: 7 2000 +Choice: 8 1700 +Choice: 9 1500 +Choice: 10 1300 +Choice: 11 1000 +Choice: 12 700 +Choice: 13 500 +Choice: 14 300 +Choice: 15 -300 +Choice: 16 -500 +Choice: 17 -700 +Choice: 18 -1000 +Choice: 19 -1300 +Choice: 20 -1500 +Choice: 21 -1700 +Choice: 22 -2000 +Choice: 23 -2300 +Choice: 24 -2500 +Choice: 25 -2700 +Choice: 26 -3000 +/main/other/d201 +Label: DRangeOptimize +Type: MENU +Current: 31 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +/main/other/d203 +Label: Bildgröße +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d20d +Label: Belichtungszeit +Type: RANGE +Current: 65596 +Bottom: 0 +Top: 4,29497e+09 +Step: 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 13 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +/main/other/d20f +Label: Farbtemperatur +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +/main/other/d211 +Label: Seitenverhältnis +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d213 +Label: PTP Property 0xd213 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +/main/other/d21e +Label: ISO +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777316 +Choice: 48 16777341 +Choice: 49 16777376 +Choice: 50 16777416 +Choice: 51 16777466 +Choice: 52 16777536 +Choice: 53 16777616 +Choice: 54 16777716 +Choice: 55 16777856 +Choice: 56 16778016 +Choice: 57 16778216 +Choice: 58 16778466 +Choice: 59 16778816 +Choice: 60 16779216 +Choice: 61 16779716 +Choice: 62 16780416 +Choice: 63 16781216 +Choice: 64 16782216 +Choice: 65 16783616 +Choice: 66 16785216 +Choice: 67 16787216 +Choice: 68 16790016 +Choice: 69 16793216 +Choice: 70 16802816 +Choice: 71 16828416 +Choice: 72 16879616 +Choice: 73 16982016 +Choice: 74 17186816 +Choice: 75 50331647 +Choice: 76 33554532 +Choice: 77 33554632 +Choice: 78 33554832 +Choice: 79 33555232 +Choice: 80 33556032 +Choice: 81 33557632 +Choice: 82 33560832 +Choice: 83 33567232 +Choice: 84 33580032 +Choice: 85 33605632 +/main/other/d21b +Label: Bild Effekt +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32928 +Choice: 24 32929 +Choice: 25 32930 +Choice: 26 32931 +Choice: 27 32932 +Choice: 28 32933 +Choice: 29 32934 +Choice: 30 32944 +Choice: 31 32960 +Choice: 32 32961 +Choice: 33 32962 +/main/other/d21d +Label: PTP Property 0xd21d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d21f +Label: PTP Property 0xd21f +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d217 +Label: PTP Property 0xd217 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: MENU +Current: 49 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +Choice: 3 2 +Choice: 4 3 +Choice: 5 4 +Choice: 6 5 +Choice: 7 6 +Choice: 8 7 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 12 +Choice: 14 13 +Choice: 15 14 +Choice: 16 15 +Choice: 17 16 +Choice: 18 17 +Choice: 19 18 +Choice: 20 19 +Choice: 21 20 +Choice: 22 21 +Choice: 23 22 +Choice: 24 23 +Choice: 25 24 +Choice: 26 25 +Choice: 27 26 +Choice: 28 27 +Choice: 29 28 +Choice: 30 29 +Choice: 31 30 +Choice: 32 31 +Choice: 33 32 +Choice: 34 33 +Choice: 35 34 +Choice: 36 35 +Choice: 37 36 +Choice: 38 37 +Choice: 39 38 +Choice: 40 39 +Choice: 41 40 +Choice: 42 41 +Choice: 43 42 +Choice: 44 43 +Choice: 45 44 +Choice: 46 45 +Choice: 47 46 +Choice: 48 47 +Choice: 49 48 +Choice: 50 49 +Choice: 51 50 +Choice: 52 51 +Choice: 53 52 +Choice: 54 53 +Choice: 55 54 +Choice: 56 55 +Choice: 57 56 +Choice: 58 57 +Choice: 59 58 +Choice: 60 59 +Choice: 61 60 +Choice: 62 61 +Choice: 63 62 +Choice: 64 63 +Choice: 65 64 +Choice: 66 65 +Choice: 67 66 +Choice: 68 67 +Choice: 69 68 +Choice: 70 69 +Choice: 71 70 +Choice: 72 71 +Choice: 73 72 +Choice: 74 73 +Choice: 75 74 +Choice: 76 75 +Choice: 77 76 +Choice: 78 77 +Choice: 79 78 +Choice: 80 79 +Choice: 81 80 +Choice: 82 81 +Choice: 83 82 +Choice: 84 83 +Choice: 85 84 +Choice: 86 85 +Choice: 87 86 +Choice: 88 87 +Choice: 89 88 +Choice: 90 89 +Choice: 91 90 +Choice: 92 91 +Choice: 93 92 +Choice: 94 93 +Choice: 95 94 +Choice: 96 95 +Choice: 97 96 +Choice: 98 97 +Choice: 99 98 +Choice: 100 99 +Choice: 101 100 +/main/other/d219 +Label: APS-C/Super 35mm +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +/main/other/d210 +Label: CC Filter +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +/main/other/d21c +Label: AB Filter +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +/main/other/d221 +Label: PTP Property 0xd221 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d214 +Label: PTP Property 0xd214 +Type: RANGE +Current: 5,74648e+07 +Bottom: 0 +Top: 4,29497e+09 +Step: 1 +/main/other/d215 +Label: PTP Property 0xd215 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c9 +Label: PTP Property 0xd2c9 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c8 +Label: Film +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c7 +Label: Still Image +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Kamerazusammenfassung: +Hersteller: Sony Corporation +Modell: ILCE-7RM2 + Version: 1.0 + Seriennummer: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Beschreibung der Vendor Extension: Sony PTP Extensions + +Aufnahmeformate: +Anzeigeformate: JPEG, Unknown(b301), Unknown(b101) + +Fähigkeiten des Geräts: + Dateien Download, kein Löschen von Dateien, kein Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Sony Aufnahme +Informationen über Speichermedium: + +Properties des Geräts: +Kompressions Parameter(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19] value: RAW (4) +Weißabgleich(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32816,32786,32800,32801,32802] value: Automatic (2) +F-Nummer(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/2 (200) +Fokusmodus(0x500a):(readwrite) (type=0x4) Enumeration [1,2,32772,32773,32774] value: Manual Focus (1) +Belichtungsmessmodus(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: Average (1) +Blitzmodus(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32772,32817,32818] value: Undefined (0) +Belichtungs Programm Modus(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32896,32897,32898,32899,32833,7,32785,32789,32788,32786,32787,32790,32791,32792] value: P (2) +Belichtungskompensation(0x5010):(readwrite) (type=0x3) Enumeration [0,1,2,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0,0 stops (0) +Bildaufnahme Modus(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32786,32773,32771,32772,32776,32777,32780,32781,32782,32783,33591,34103,35127,33623,34135,35159,33655,34167,35191,33553,34065,35089,33569,34081,33585,34097,33590,34102,35126,33622,34134,35158,33654,34166,35190,33552,34064,35088,33568,34080,33584,34096,32792,32808,32793,32809] value: Single Shot (1) +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,1,2,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 31 +Bildgröße(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Belichtungszeit(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65596 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15] value: 13 +Farbtemperatur(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Seitenverhältnis(0xd211):(readwrite) (type=0x2) Enumeration [1,2] value: 1 +Property 0xd213:(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632] value: 16777215 +Bild Effekt(0xd21b):(readwrite) (type=0x4) Enumeration [32768,32769,32770,32771,32772,32773,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32880,32881,32882,32896,32897,32898,32912,32928,32929,32930,32931,32932,32933,32934,32944,32960,32961,32962] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd21f:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd218:(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 49 +APS-C/Super 35mm(0xd219):(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 57464832 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220:PTP Fehler 2002 beim Abfragen +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c9:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Film(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 + +8.521045 print_debug_deviceinfo (2): Device info: +8.521056 print_debug_deviceinfo (2): Manufacturer: Sony Corporation +8.521069 print_debug_deviceinfo (2): Model: ILCE-7RM2 +8.521077 print_debug_deviceinfo (2): device version: 1.0 +8.521084 print_debug_deviceinfo (2): serial number: '0000000000000000nnnnnnnnnnnnnnnn' +8.521099 print_debug_deviceinfo (2): Vendor extension ID: 0x00000011 +8.521108 print_debug_deviceinfo (2): Vendor extension version: 100 +8.521115 print_debug_deviceinfo (2): Vendor extension description: Sony PTP Extensions +8.521123 print_debug_deviceinfo (2): Functional Mode: 0x0000 +8.521131 print_debug_deviceinfo (2): PTP Standard Version: 100 +8.521138 print_debug_deviceinfo (2): Supported operations: +8.521150 print_debug_deviceinfo (2): 0x1002 (Open session) +8.521161 print_debug_deviceinfo (2): 0x1003 (Close session) +8.521172 print_debug_deviceinfo (2): 0x1001 (Get device info) +8.521182 print_debug_deviceinfo (2): 0x1004 (Get storage IDs) +8.521193 print_debug_deviceinfo (2): 0x1005 (Get storage info) +8.521204 print_debug_deviceinfo (2): 0x1006 (Get number of objects) +8.521215 print_debug_deviceinfo (2): 0x1007 (Get object handles) +8.521226 print_debug_deviceinfo (2): 0x1008 (Get object info) +8.521236 print_debug_deviceinfo (2): 0x1009 (Get object) +8.521247 print_debug_deviceinfo (2): 0x100a (Get thumbnail) +8.521258 print_debug_deviceinfo (2): 0x101b (Get partial object) +8.521269 print_debug_deviceinfo (2): 0x9201 (PTP_OC_SONY_SDIOConnect) +8.521280 print_debug_deviceinfo (2): 0x9202 (PTP_OC_SONY_GetSDIOGetExtDeviceInfo) +8.521291 print_debug_deviceinfo (2): 0x9205 (PTP_OC_SONY_SetControlDeviceA) +8.521302 print_debug_deviceinfo (2): 0x9207 (PTP_OC_SONY_SetControlDeviceB) +8.521312 print_debug_deviceinfo (2): 0x9209 (PTP_OC_SONY_GetAllDevicePropData) +8.521321 print_debug_deviceinfo (2): Events Supported: +8.521328 print_debug_deviceinfo (2): 0xc201 +8.521336 print_debug_deviceinfo (2): 0xc202 +8.521343 print_debug_deviceinfo (2): 0xc203 +8.521350 print_debug_deviceinfo (2): Device Properties Supported: +8.521358 print_debug_deviceinfo (2): 0x5004 +8.521365 print_debug_deviceinfo (2): 0x5005 +8.521372 print_debug_deviceinfo (2): 0x5007 +8.521380 print_debug_deviceinfo (2): 0x500a +8.521387 print_debug_deviceinfo (2): 0x500b +8.521394 print_debug_deviceinfo (2): 0x500c +8.521401 print_debug_deviceinfo (2): 0x500e +8.521409 print_debug_deviceinfo (2): 0x5010 +8.521416 print_debug_deviceinfo (2): 0x5013 +8.521423 print_debug_deviceinfo (2): 0xd200 +8.521431 print_debug_deviceinfo (2): 0xd201 +8.521438 print_debug_deviceinfo (2): 0xd203 +8.521445 print_debug_deviceinfo (2): 0xd20d +8.521452 print_debug_deviceinfo (2): 0xd20e +8.521459 print_debug_deviceinfo (2): 0xd20f +8.521467 print_debug_deviceinfo (2): 0xd211 +8.521474 print_debug_deviceinfo (2): 0xd213 +8.521481 print_debug_deviceinfo (2): 0xd21e +8.521489 print_debug_deviceinfo (2): 0xd21b +8.521496 print_debug_deviceinfo (2): 0xd21d +8.521503 print_debug_deviceinfo (2): 0xd21f +8.521510 print_debug_deviceinfo (2): 0xd217 +8.521517 print_debug_deviceinfo (2): 0xd218 +8.521525 print_debug_deviceinfo (2): 0xd219 +8.521532 print_debug_deviceinfo (2): 0xd212 +8.521539 print_debug_deviceinfo (2): 0xd210 +8.521547 print_debug_deviceinfo (2): 0xd21c +8.521566 print_debug_deviceinfo (2): 0xd221 +8.521575 print_debug_deviceinfo (2): 0xd214 +8.521583 print_debug_deviceinfo (2): 0xd215 +8.521590 print_debug_deviceinfo (2): 0xd220 +8.521598 print_debug_deviceinfo (2): 0xd2c1 +8.521605 print_debug_deviceinfo (2): 0xd2c2 +8.521612 print_debug_deviceinfo (2): 0xd2c3 +8.521620 print_debug_deviceinfo (2): 0xd2c9 +8.521627 print_debug_deviceinfo (2): 0xd2c8 +8.521635 print_debug_deviceinfo (2): 0xd2c5 +8.521642 print_debug_deviceinfo (2): 0xd2c7 + +8.586328 fixup_cached_deviceinfo (2): sony code: 5004 +8.586337 fixup_cached_deviceinfo (2): sony code: 5005 +8.586345 fixup_cached_deviceinfo (2): sony code: 5007 +8.586353 fixup_cached_deviceinfo (2): sony code: 500a +8.586360 fixup_cached_deviceinfo (2): sony code: 500b +8.586368 fixup_cached_deviceinfo (2): sony code: 500c +8.586375 fixup_cached_deviceinfo (2): sony code: 500e +8.586383 fixup_cached_deviceinfo (2): sony code: 5010 +8.586390 fixup_cached_deviceinfo (2): sony code: 5013 +8.586398 fixup_cached_deviceinfo (2): sony code: d200 +8.586405 fixup_cached_deviceinfo (2): sony code: d201 +8.586412 fixup_cached_deviceinfo (2): sony code: d203 +8.586420 fixup_cached_deviceinfo (2): sony code: d20d +8.586427 fixup_cached_deviceinfo (2): sony code: d20e +8.586434 fixup_cached_deviceinfo (2): sony code: d20f +8.586442 fixup_cached_deviceinfo (2): sony code: d211 +8.586449 fixup_cached_deviceinfo (2): sony code: d213 +8.586456 fixup_cached_deviceinfo (2): sony code: d21e +8.586463 fixup_cached_deviceinfo (2): sony code: d21b +8.586470 fixup_cached_deviceinfo (2): sony code: d21d +8.586478 fixup_cached_deviceinfo (2): sony code: d21f +8.586485 fixup_cached_deviceinfo (2): sony code: d217 +8.586492 fixup_cached_deviceinfo (2): sony code: d218 +8.586500 fixup_cached_deviceinfo (2): sony code: d219 +8.586507 fixup_cached_deviceinfo (2): sony code: d212 +8.586514 fixup_cached_deviceinfo (2): sony code: d210 +8.586521 fixup_cached_deviceinfo (2): sony code: d21c +8.586528 fixup_cached_deviceinfo (2): sony code: d221 +8.586536 fixup_cached_deviceinfo (2): sony code: d214 +8.586543 fixup_cached_deviceinfo (2): sony code: d215 +8.586568 fixup_cached_deviceinfo (2): sony code: d220 +8.586578 fixup_cached_deviceinfo (2): sony code: d2c1 +8.586586 fixup_cached_deviceinfo (2): sony code: d2c2 +8.586593 fixup_cached_deviceinfo (2): sony code: d2c3 +8.586601 fixup_cached_deviceinfo (2): sony code: d2c9 +8.586608 fixup_cached_deviceinfo (2): sony code: d2c8 +8.586616 fixup_cached_deviceinfo (2): sony code: d2c5 +8.586623 fixup_cached_deviceinfo (2): sony code: d2c7 + +/main/actions/autofocus +Label: Auto-Focus +Type: TOGGLE +Current: 2 +/main/actions/capture +Label: Capture +Type: TOGGLE +Current: 2 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: ILCE-7RM2 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 3.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Sony PTP Extensions +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 5% +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Auto ISO Multi Frame Noise Reduction +Choice: 43 25 Multi Frame Noise Reduction +Choice: 44 50 Multi Frame Noise Reduction +Choice: 45 64 Multi Frame Noise Reduction +Choice: 46 80 Multi Frame Noise Reduction +Choice: 47 100 Multi Frame Noise Reduction +Choice: 48 125 Multi Frame Noise Reduction +Choice: 49 160 Multi Frame Noise Reduction +Choice: 50 200 Multi Frame Noise Reduction +Choice: 51 250 Multi Frame Noise Reduction +Choice: 52 320 Multi Frame Noise Reduction +Choice: 53 400 Multi Frame Noise Reduction +Choice: 54 500 Multi Frame Noise Reduction +Choice: 55 640 Multi Frame Noise Reduction +Choice: 56 800 Multi Frame Noise Reduction +Choice: 57 1000 Multi Frame Noise Reduction +Choice: 58 1250 Multi Frame Noise Reduction +Choice: 59 1600 Multi Frame Noise Reduction +Choice: 60 2000 Multi Frame Noise Reduction +Choice: 61 2500 Multi Frame Noise Reduction +Choice: 62 3200 Multi Frame Noise Reduction +Choice: 63 4000 Multi Frame Noise Reduction +Choice: 64 5000 Multi Frame Noise Reduction +Choice: 65 6400 Multi Frame Noise Reduction +Choice: 66 8000 Multi Frame Noise Reduction +Choice: 67 10000 Multi Frame Noise Reduction +Choice: 68 12800 Multi Frame Noise Reduction +Choice: 69 16000 Multi Frame Noise Reduction +Choice: 70 25600 Multi Frame Noise Reduction +Choice: 71 51200 Multi Frame Noise Reduction +Choice: 72 36864 Multi Frame Noise Reduction +Choice: 73 8192 Multi Frame Noise Reduction +Choice: 74 16384 Multi Frame Noise Reduction +Choice: 75 65535 Multi Frame Noise Reduction +Choice: 76 100 Multi Frame Noise Reduction +Choice: 77 200 Multi Frame Noise Reduction +Choice: 78 400 Multi Frame Noise Reduction +Choice: 79 800 Multi Frame Noise Reduction +Choice: 80 1600 Multi Frame Noise Reduction +Choice: 81 3200 Multi Frame Noise Reduction +Choice: 82 6400 Multi Frame Noise Reduction +Choice: 83 12800 Multi Frame Noise Reduction +Choice: 84 25600 Multi Frame Noise Reduction +Choice: 85 51200 Multi Frame Noise Reduction +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 0 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Shade +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Flash +Choice: 10 Underwater: Auto +Choice: 11 Choose Color Temperature +Choice: 12 Preset 1 +Choice: 13 Preset 2 +Choice: 14 Preset 3 +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 0.001 +Choice: 2 0.002 +Choice: 3 5 +Choice: 4 4.7 +Choice: 5 4.5 +Choice: 6 4.3 +Choice: 7 4 +Choice: 8 3.7 +Choice: 9 3.5 +Choice: 10 3.3 +Choice: 11 3 +Choice: 12 2.7 +Choice: 13 2.5 +Choice: 14 2.3 +Choice: 15 2 +Choice: 16 1.7 +Choice: 17 1.5 +Choice: 18 1.3 +Choice: 19 1 +Choice: 20 0.7 +Choice: 21 0.5 +Choice: 22 0.3 +Choice: 23 -0.3 +Choice: 24 -0.5 +Choice: 25 -0.7 +Choice: 26 -1 +Choice: 27 -1.3 +Choice: 28 -1.5 +Choice: 29 -1.7 +Choice: 30 -2 +Choice: 31 -2.3 +Choice: 32 -2.5 +Choice: 33 -2.7 +Choice: 34 -3 +Choice: 35 -3.3 +Choice: 36 -3.5 +Choice: 37 -3.7 +Choice: 38 -4 +Choice: 39 -4.3 +Choice: 40 -4.5 +Choice: 41 -4.7 +Choice: 42 -5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Rear Curtain Sync +Choice: 7 Wireless Sync +Choice: 8 Unknown value 8031 +Choice: 9 Slow Sync +Choice: 10 Unknown value 0000 +/main/capturesettings/f-number +Label: F-Number +Type: RANGE +Current: 2 +Bottom: 0 +Top: 655.35 +Step: 0.01 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: Extra Fine +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Extra Fine +Choice: 3 RAW +Choice: 4 RAW+JPEG +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Unknown value 8006 +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8006 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: P +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Movie +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8054 +Choice: 11 Unknown value 8080 +Choice: 12 Unknown value 8081 +Choice: 13 Unknown value 8082 +Choice: 14 Unknown value 8083 +Choice: 15 Sweep Panorama +Choice: 16 Portrait +Choice: 17 Sports Action +Choice: 18 Macro +Choice: 19 Landscape +Choice: 20 Sunset +Choice: 21 Night Scene +Choice: 22 Hand-held Twilight +Choice: 23 Night Portrait +Choice: 24 Unknown value 8018 +/main/capturesettings/aspectratio +Label: Aspect Ratio +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +Choice: 1 16:9 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Selftimer 2s +Choice: 4 Selftimer 5s +Choice: 5 Selftimer 10s +Choice: 6 Selftimer 10s 3 Pictures +Choice: 7 Selftimer 10s 5 Pictures +Choice: 8 Selftimer 5s 3 Pictures +Choice: 9 Selftimer 5s 5 Pictures +Choice: 10 Selftimer 2s 3 Pictures +Choice: 11 Selftimer 2s 5 Pictures +Choice: 12 Bracketing C 0.3 Steps 3 Pictures +Choice: 13 Bracketing C 0.3 Steps 5 Pictures +Choice: 14 Bracketing C 0.3 Steps 9 Pictures +Choice: 15 Bracketing C 0.5 Steps 3 Pictures +Choice: 16 Bracketing C 0.5 Steps 5 Pictures +Choice: 17 Bracketing C 0.5 Steps 9 Pictures +Choice: 18 Bracketing C 0.7 Steps 3 Pictures +Choice: 19 Bracketing C 0.7 Steps 5 Pictures +Choice: 20 Bracketing C 0.7 Steps 9 Pictures +Choice: 21 Bracketing C 1.0 Steps 3 Pictures +Choice: 22 Bracketing C 1.0 Steps 5 Pictures +Choice: 23 Bracketing C 1.0 Steps 9 Pictures +Choice: 24 Bracketing C 2.0 Steps 3 Pictures +Choice: 25 Bracketing C 2.0 Steps 5 Pictures +Choice: 26 Bracketing C 3.0 Steps 3 Pictures +Choice: 27 Bracketing C 3.0 Steps 5 Pictures +Choice: 28 Bracketing S 0.3 Steps 3 Pictures +Choice: 29 Bracketing S 0.3 Steps 5 Pictures +Choice: 30 Bracketing S 0.3 Steps 9 Pictures +Choice: 31 Bracketing S 0.5 Steps 3 Pictures +Choice: 32 Bracketing S 0.5 Steps 5 Pictures +Choice: 33 Bracketing S 0.5 Steps 9 Pictures +Choice: 34 Bracketing S 0.7 Steps 3 Pictures +Choice: 35 Bracketing S 0.7 Steps 5 Pictures +Choice: 36 Bracketing S 0.7 Steps 9 Pictures +Choice: 37 Bracketing S 1.0 Steps 3 Pictures +Choice: 38 Bracketing S 1.0 Steps 5 Pictures +Choice: 39 Bracketing S 1.0 Steps 9 Pictures +Choice: 40 Bracketing S 2.0 Steps 3 Pictures +Choice: 41 Bracketing S 2.0 Steps 5 Pictures +Choice: 42 Bracketing S 3.0 Steps 3 Pictures +Choice: 43 Bracketing S 3.0 Steps 5 Pictures +Choice: 44 Bracketing WB Lo +Choice: 45 Bracketing WB Hi +Choice: 46 Bracketing DRO Lo +Choice: 47 Bracketing DRO Hi +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Average +Choice: 0 Center Spot +Choice: 1 Average +Choice: 2 Unknown value 8002 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 40/10 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 4 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32816 +Choice: 11 32786 +Choice: 12 32800 +Choice: 13 32801 +Choice: 14 32802 +/main/other/5007 +Label: F-Number +Type: RANGE +Current: 200 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32774 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32774 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 1 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 0 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32772 +Choice: 8 32817 +Choice: 9 32818 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 2 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32896 +Choice: 12 32897 +Choice: 13 32898 +Choice: 14 32899 +Choice: 15 32833 +Choice: 16 7 +Choice: 17 32785 +Choice: 18 32789 +Choice: 19 32788 +Choice: 20 32786 +Choice: 21 32787 +Choice: 22 32790 +Choice: 23 32791 +Choice: 24 32792 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 5000 +Choice: 4 4700 +Choice: 5 4500 +Choice: 6 4300 +Choice: 7 4000 +Choice: 8 3700 +Choice: 9 3500 +Choice: 10 3300 +Choice: 11 3000 +Choice: 12 2700 +Choice: 13 2500 +Choice: 14 2300 +Choice: 15 2000 +Choice: 16 1700 +Choice: 17 1500 +Choice: 18 1300 +Choice: 19 1000 +Choice: 20 700 +Choice: 21 500 +Choice: 22 300 +Choice: 23 -300 +Choice: 24 -500 +Choice: 25 -700 +Choice: 26 -1000 +Choice: 27 -1300 +Choice: 28 -1500 +Choice: 29 -1700 +Choice: 30 -2000 +Choice: 31 -2300 +Choice: 32 -2500 +Choice: 33 -2700 +Choice: 34 -3000 +Choice: 35 -3300 +Choice: 36 -3500 +Choice: 37 -3700 +Choice: 38 -4000 +Choice: 39 -4300 +Choice: 40 -4500 +Choice: 41 -4700 +Choice: 42 -5000 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32786 +Choice: 3 32773 +Choice: 4 32771 +Choice: 5 32772 +Choice: 6 32776 +Choice: 7 32777 +Choice: 8 32780 +Choice: 9 32781 +Choice: 10 32782 +Choice: 11 32783 +Choice: 12 33591 +Choice: 13 34103 +Choice: 14 35127 +Choice: 15 33623 +Choice: 16 34135 +Choice: 17 35159 +Choice: 18 33655 +Choice: 19 34167 +Choice: 20 35191 +Choice: 21 33553 +Choice: 22 34065 +Choice: 23 35089 +Choice: 24 33569 +Choice: 25 34081 +Choice: 26 33585 +Choice: 27 34097 +Choice: 28 33590 +Choice: 29 34102 +Choice: 30 35126 +Choice: 31 33622 +Choice: 32 34134 +Choice: 33 35158 +Choice: 34 33654 +Choice: 35 34166 +Choice: 36 35190 +Choice: 37 33552 +Choice: 38 34064 +Choice: 39 35088 +Choice: 40 33568 +Choice: 41 34080 +Choice: 42 33584 +Choice: 43 34096 +Choice: 44 32792 +Choice: 45 32808 +Choice: 46 32793 +Choice: 47 32809 +/main/other/d200 +Label: DOC Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3000 +Choice: 4 2700 +Choice: 5 2500 +Choice: 6 2300 +Choice: 7 2000 +Choice: 8 1700 +Choice: 9 1500 +Choice: 10 1300 +Choice: 11 1000 +Choice: 12 700 +Choice: 13 500 +Choice: 14 300 +Choice: 15 -300 +Choice: 16 -500 +Choice: 17 -700 +Choice: 18 -1000 +Choice: 19 -1300 +Choice: 20 -1500 +Choice: 21 -1700 +Choice: 22 -2000 +Choice: 23 -2300 +Choice: 24 -2500 +Choice: 25 -2700 +Choice: 26 -3000 +/main/other/d201 +Label: DRangeOptimize +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +/main/other/d203 +Label: Image size +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d20d +Label: Shutter speed +Type: RANGE +Current: 2.62145e+06 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 12 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +/main/other/d20f +Label: Color temperature +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +/main/other/d211 +Label: Aspect Ratio +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d213 +Label: Focus status +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +/main/other/d21e +Label: ISO +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777316 +Choice: 48 16777341 +Choice: 49 16777376 +Choice: 50 16777416 +Choice: 51 16777466 +Choice: 52 16777536 +Choice: 53 16777616 +Choice: 54 16777716 +Choice: 55 16777856 +Choice: 56 16778016 +Choice: 57 16778216 +Choice: 58 16778466 +Choice: 59 16778816 +Choice: 60 16779216 +Choice: 61 16779716 +Choice: 62 16780416 +Choice: 63 16781216 +Choice: 64 16782216 +Choice: 65 16783616 +Choice: 66 16785216 +Choice: 67 16787216 +Choice: 68 16790016 +Choice: 69 16793216 +Choice: 70 16802816 +Choice: 71 16828416 +Choice: 72 16879616 +Choice: 73 16982016 +Choice: 74 17186816 +Choice: 75 50331647 +Choice: 76 33554532 +Choice: 77 33554632 +Choice: 78 33554832 +Choice: 79 33555232 +Choice: 80 33556032 +Choice: 81 33557632 +Choice: 82 33560832 +Choice: 83 33567232 +Choice: 84 33580032 +Choice: 85 33605632 +/main/other/d21b +Label: Picture Effect +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32928 +Choice: 24 32929 +Choice: 25 32930 +Choice: 26 32931 +Choice: 27 32932 +Choice: 28 32933 +Choice: 29 32934 +Choice: 30 32944 +Choice: 31 32960 +Choice: 32 32961 +Choice: 33 32962 +/main/other/d21d +Label: PTP Property 0xd21d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d21f +Label: PTP Property 0xd21f +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d217 +Label: PTP Property 0xd217 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d218 +Label: Battery Level +Type: MENU +Current: 5 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +Choice: 3 2 +Choice: 4 3 +Choice: 5 4 +Choice: 6 5 +Choice: 7 6 +Choice: 8 7 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 12 +Choice: 14 13 +Choice: 15 14 +Choice: 16 15 +Choice: 17 16 +Choice: 18 17 +Choice: 19 18 +Choice: 20 19 +Choice: 21 20 +Choice: 22 21 +Choice: 23 22 +Choice: 24 23 +Choice: 25 24 +Choice: 26 25 +Choice: 27 26 +Choice: 28 27 +Choice: 29 28 +Choice: 30 29 +Choice: 31 30 +Choice: 32 31 +Choice: 33 32 +Choice: 34 33 +Choice: 35 34 +Choice: 36 35 +Choice: 37 36 +Choice: 38 37 +Choice: 39 38 +Choice: 40 39 +Choice: 41 40 +Choice: 42 41 +Choice: 43 42 +Choice: 44 43 +Choice: 45 44 +Choice: 46 45 +Choice: 47 46 +Choice: 48 47 +Choice: 49 48 +Choice: 50 49 +Choice: 51 50 +Choice: 52 51 +Choice: 53 52 +Choice: 54 53 +Choice: 55 54 +Choice: 56 55 +Choice: 57 56 +Choice: 58 57 +Choice: 59 58 +Choice: 60 59 +Choice: 61 60 +Choice: 62 61 +Choice: 63 62 +Choice: 64 63 +Choice: 65 64 +Choice: 66 65 +Choice: 67 66 +Choice: 68 67 +Choice: 69 68 +Choice: 70 69 +Choice: 71 70 +Choice: 72 71 +Choice: 73 72 +Choice: 74 73 +Choice: 75 74 +Choice: 76 75 +Choice: 77 76 +Choice: 78 77 +Choice: 79 78 +Choice: 80 79 +Choice: 81 80 +Choice: 82 81 +Choice: 83 82 +Choice: 84 83 +Choice: 85 84 +Choice: 86 85 +Choice: 87 86 +Choice: 88 87 +Choice: 89 88 +Choice: 90 89 +Choice: 91 90 +Choice: 92 91 +Choice: 93 92 +Choice: 94 93 +Choice: 95 94 +Choice: 96 95 +Choice: 97 96 +Choice: 98 97 +Choice: 99 98 +Choice: 100 99 +Choice: 101 100 +/main/other/d219 +Label: APS-C/Super 35mm +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +/main/other/d210 +Label: CC Filter +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +/main/other/d21c +Label: AB Filter +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +/main/other/d221 +Label: PTP Property 0xd221 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d214 +Label: PTP Property 0xd214 +Type: RANGE +Current: 5.74648e+07 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d215 +Label: Objects in memory +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c9 +Label: PTP Property 0xd2c9 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c8 +Label: Movie +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c7 +Label: Still Image +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 + +Camera summary: +Manufacturer: Sony Corporation +Model: ILCE-7RM2 + Version: 3.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), Unknown(b101) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture + +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19] value: RAW (4) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32816,32786,32800,32801,32802] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/2 (200) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,32772,32773,32774] value: 32774 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: Average (1) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32772,32817,32818] value: Undefined (0) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32896,32897,32898,32899,32833,7,32785,32789,32788,32786,32787,32790,32791,32792] value: P (2) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,1,2,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32786,32773,32771,32772,32776,32777,32780,32781,32782,32783,33591,34103,35127,33623,34135,35159,33655,34167,35191,33553,34065,35089,33569,34081,33585,34097,33590,34102,35126,33622,34134,35158,33654,34166,35190,33552,34064,35088,33568,34080,33584,34096,32792,32808,32793,32809] value: Single Shot (1) +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,1,2,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 1 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 2621450 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15] value: 12 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2] value: 1 +Focus status(0xd213):(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632] value: 16777215 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768,32769,32770,32771,32772,32773,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32880,32881,32882,32896,32897,32898,32912,32928,32929,32930,32931,32932,32933,32934,32944,32960,32961,32962] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd21f:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Battery Level(0xd218):(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 4 +APS-C/Super 35mm(0xd219):(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 57464832 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c9:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a7r3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a7r3.txt new file mode 100644 index 00000000..0576437e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-a7r3.txt @@ -0,0 +1,83 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: ILCE-7RM3 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), Unknown(b101) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19,20,18] value: 3 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [1,2,4,32785,32784,6,32769,32770,32771,32772,7,32816,32786,32800,32801,32802] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/4 (400) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,32772,32773,32774,32777] value: 32773 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [32769,32770,32772,32773,32771,32774] value: 32769 +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32817,32818,32833,32834] value: Automatic flash (1) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,2,3,4,1,32848,32849,32850,32851,32852,32900,32901,32902,32903,32792] value: 32768 +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,32784,2,32789,32786,32773,32771,32772,32776,32777,32780,32781,32782,32783] value: Single Shot (1) +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 31 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65696 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15,16] value: 15 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2] value: 1 +Property 0xd213:(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632,33656832,33759232,33964032] value: 16777215 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd21f:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd218:(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 90 +APS-C/Super 35mm(0xd219):(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd222:(readwrite) (type=0x4) Enumeration [1,17] value: 1 +Property 0xd22c:(readwrite) (type=0x4) Enumeration [1,2,3,257,258,259,260,513,514,515,516,517,518,519,261,520] value: 1 +Property 0xd22d:(readwrite) (type=0x2) Enumeration [0,1,2] value: 0 +Property 0xd22e:(readwrite) (type=0x4) Enumeration [] value: 62 +Property 0xd22f:(readwrite) (type=0x4) Enumeration [] value: 0 +Property 0xd230:(readwrite) (type=0x6) Enumeration [] value: 20971734 +Property 0xd231:(readwrite) (type=0x2) Enumeration [1,2] value: 1 +Property 0xd232:(readwrite) (type=0x6) Enumeration [] value: 20971734 +Property 0xd233:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd235:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd236:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd238:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd239:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd23a:(readwrite) (type=0x4) Enumeration [1,4] value: 4 +Property 0xd23b:(readwrite) (type=0x4) Enumeration [1,2,3,4,5,10,15,30] value: 1 +Property 0xd23c:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd23d:(readwrite) (type=0x4) Enumeration [1,2,3,4] value: 4 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 57464832 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c9:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cb:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cc:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cd:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2ce:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cf:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d0:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d4:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d1:(readwrite) (type=0x3) Range [-7 - 7, step 1] value: 0 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-hx20v.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-hx20v.txt new file mode 100644 index 00000000..be61ee6e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-hx20v.txt @@ -0,0 +1,180 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-HX20V + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) + +Capture Formats: +Display Formats: Association/Directory, Executable, MPEG, JPEG, Unknown(b982), Unknown(b301), Undefined Type, Unknown(b101), Unknown(b310) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Only + Maximum Capability: 32014073856 (30531 MB) + Free Space (Bytes): 27419574272 (26149 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 100% (100) +Property 0xd402:(read only) (type=0xffff) 'DSC-HX20V' +Property 0xd406:(readwrite) (type=0xffff) '(null)' +Property 0xd407:(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + + Device info: + Manufacturer: Sony Corporation + Model: DSC-HX20V + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' + Vendor extension ID: 0x00000011 + Vendor extension version: 100 + Vendor extension description: (null) + Functional Mode: 0x0000 + PTP Standard Version: 100 + Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9280 (Unknown PTP_OC) + 0x9281 (Unknown PTP_OC) + 0x9282 (Unknown PTP_OC) + 0x9283 (Unknown PTP_OC) + 0x9284 (Unknown PTP_OC) + 0x9285 (Unknown PTP_OC) + Events Supported: + 0x4004 + 0x4005 + 0x4006 + Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 00000000000000008081346307485863 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: DSC-HX20V +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 100 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: DSC-HX20V +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: (null) +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-hx300.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-hx300.txt new file mode 100644 index 00000000..526e5bb3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-hx300.txt @@ -0,0 +1,197 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-HX300 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0xffffffff (1.0) + +Capture Formats: +Display Formats: Association/Directory, MPEG, JPEG, MP4, Unknown(b301), Undefined Type, Unknown(b101), Unknown(b310) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Only + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 100% (100) +Friendly Device Name(0xd402):(read only) (type=0xffff) DSC-HX300 ('DSC-HX300') +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '(null)' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: DSC-HX300 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 100 +/main/other/d402 +Label: Friendly Device Name +Type: TEXT +Current: DSC-HX300 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: (null) +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. + +*** Error *** +Sorry, your camera does not support generic capture +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** + +For debugging messages, please use the --debug option. +Debugging messages may help finding a solution to your problem. +If you intend to send any error or debug messages to the gphoto +developer mailing list , please run +gphoto2 as follows: + + env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --version --summary --list-all-config --set-config capturetarget=1 --set-config capture=on --wait-event=5s --capture-image + +Please make sure there is sufficient quoting around the arguments. + +Device info: +Manufacturer: Sony Corporation + Model: DSC-HX300 + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0xffffffff +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9280 + 0x9281 + 0x9282 + 0x9283 + 0x9284 + 0x9285 +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-hx5v.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-hx5v.txt new file mode 100644 index 00000000..ccc6c86b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-hx5v.txt @@ -0,0 +1,88 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: Sony Digital Still Camera + Version: (null) + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x6 (1.0) + +Capture Formats: +Display Formats: JPEG +Supported MTP Object Properties: + JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc05/AssociationType dc06/AssociationDesc dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0a/Keywords dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc81/RepresentativeSampleFormat dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight dc84/RepresentativeSampleWidth dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00030001: + StorageDescription: Memory Card + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Only + Maximum Capability: 7952400384 (7584 MB) + Free Space (Bytes): 7383842816 (7041 MB) + Free Space (Images): -1 + +Device Property Summary: +Perceived Device Type(0xd407):(read only) (type=0x6) 1 + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: Sony Digital Still Camera +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: None +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Sony Corporation + Model: Sony Digital Still Camera + device version: (null) + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4004 + 0x4005 +Device Properties Supported: + 0xd407 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-r1.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-r1.txt new file mode 100644 index 00000000..0b15962e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-r1.txt @@ -0,0 +1,37 @@ +Device info: +Manufacturer: Sony Corporation + model: Sony Digital Still Camera + device version: 03.1000 + serial number: '(null)' +Vendor extension ID: 0x00000000 +Vendor extension description: (null) +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b +Events Supported: + 0x4001 + 0x4002 + 0x4003 + 0x4004 + 0x4005 + 0x4007 + 0x4009 +Device Properties Supported: +Camera summary: +Model: Sony Digital Still Camera + device version: 03.1000 + serial number: (null) +Vendor extension ID: 0x00000000 +Vendor extension description: (null) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx0.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx0.txt new file mode 100644 index 00000000..afcacbc7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx0.txt @@ -0,0 +1,1478 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-RX0 + Version: 3.00 + Serial Number: 00000000000000000nnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: Association/Directory, MPEG, JPEG, Unknown(b982), Unknown(b301), Undefined Type, ARW, Unknown(b310) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture + +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19] value: RAW (4) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [1,2,4,32785,32784,6,32769,32770,32771,32772,32816,32786,32800,32801,32802] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/4 (400) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,32769,32770] value: 32769 +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,1,32848,32851,32852,32896,32899] value: 32768 +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,0,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,0,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,32787,32788,32772,32771,32773,32776,32777,32780,32781,32782,32783] value: Single Shot (1) +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 31 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65586 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15] value: 15 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0 +Focus status(0xd213):(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768] value: 32768 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632,33656832,33759232,33964032] value: 16777215 +Property 0xd220: error 2002 on query. +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd222:(readwrite) (type=0x4) Enumeration [1,17] value: 1 +Property 0xd224:(readwrite) (type=0x3) Enumeration [3000,2700,2300,2000,1700,1300,1000,700,300,-300,-700,-1000,-1300,-1700,-2000,-2300,-2700,-3000] value: 0 +Property 0xd226:(readwrite) (type=0x6) Enumeration [33554431,16777416,16777616,16778016,16778816,16780416,16783616,16790016,16802816,50331647,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,16777215,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,512000,640000,819200] value: 16777215 +Property 0xd227:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd229:(readwrite) (type=0x6) Enumeration [65540,65541,65542,65544,65546,65549,65551,65556,65561,65566,65576,65586,65596,65616,65636,65661,65696,65736,65786,65856,65936,66036,66176,66336,66536,66786,67136,67536,68036,68736,69536,70536,71936,73536,75536,78336,81536,85536,91136,97536] value: 65586 +Property 0xd22a:(readwrite) (type=0x2) Enumeration [1,2,3,4,5,6] value: 1 +Property 0xd22b:(readwrite) (type=0x2) Enumeration [1,0] value: 0 +Property 0xd23e:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd23f:(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: 0 +Property 0xd240:(readwrite) (type=0x2) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] value: 1 +Property 0xd241:(readwrite) (type=0x2) Enumeration [4,9,3] value: 9 +Property 0xd242:(readwrite) (type=0x4) Enumeration [4,5] value: 4 +Property 0xd243:(readwrite) (type=0x4) Enumeration [2,4] value: 2 +Property 0xd244:(readwrite) (type=0x4) Enumeration [2,4,6] value: 2 +Property 0xd245:(readwrite) (type=0x2) Enumeration [1,2] value: 1 +Property 0xd246:(readwrite) (type=0x2) Enumeration [1,2] value: 1 +Property 0xd247:(readwrite) (type=0x2) Enumeration [0,1,2,3,17,18,19,20] value: 0 +Property 0xd248:(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 0 +Property 0xd249:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 0 +Property 0xd24a:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 0 +Property 0xd24b:(readwrite) (type=0x2) Enumeration [1,0] value: 0 +Property 0xd24c:(readwrite) (type=0x2) Range [0 - 100, step 1] value: 8 +Property 0xd2d1:(readwrite) (type=0x3) Range [-7 - 7, step 1] value: 0 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [] value: 0 +Property 0xd228:(readwrite) (type=0x2) Enumeration [4,5] value: 5 +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [] value: 1 +Property 0xd2ca:(readwrite) (type=0x4) Enumeration [] value: 1 +Property 0xd2d5:(readwrite) (type=0x4) Enumeration [] value: 1 +Property 0xd2d6:(readwrite) (type=0x4) Enumeration [] value: 1 +Property 0xd2d7:(readwrite) (type=0x4) Enumeration [] value: 1 +Property 0xd2d8:(readwrite) (type=0x4) Enumeration [] value: 1 +Still Image(0xd2c7): error 2002 on query. +Property 0xd223: error 2002 on query. +Property 0xd24d:(readwrite) (type=0x2) Enumeration [0,1,2,3,4] value: 0 + +/main/actions/autofocus +Label: Auto-Focus +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/capture +Label: Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/movie +Label: Movie Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: 00000000000000000nnnnnnnnnnnnnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: Sony Corporation +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: DSC-RX0 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: 3.00 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: Sony PTP Extensions +END +/main/imgsettings/imagesize +Label: Image Size +Readonly: 0 +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +END +/main/imgsettings/iso +Label: ISO Speed +Readonly: 0 +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Auto ISO Multi Frame Noise Reduction +Choice: 43 25 Multi Frame Noise Reduction +Choice: 44 50 Multi Frame Noise Reduction +Choice: 45 64 Multi Frame Noise Reduction +Choice: 46 80 Multi Frame Noise Reduction +Choice: 47 100 Multi Frame Noise Reduction +Choice: 48 125 Multi Frame Noise Reduction +Choice: 49 160 Multi Frame Noise Reduction +Choice: 50 200 Multi Frame Noise Reduction +Choice: 51 250 Multi Frame Noise Reduction +Choice: 52 320 Multi Frame Noise Reduction +Choice: 53 400 Multi Frame Noise Reduction +Choice: 54 500 Multi Frame Noise Reduction +Choice: 55 640 Multi Frame Noise Reduction +Choice: 56 800 Multi Frame Noise Reduction +Choice: 57 1000 Multi Frame Noise Reduction +Choice: 58 1250 Multi Frame Noise Reduction +Choice: 59 1600 Multi Frame Noise Reduction +Choice: 60 2000 Multi Frame Noise Reduction +Choice: 61 2500 Multi Frame Noise Reduction +Choice: 62 3200 Multi Frame Noise Reduction +Choice: 63 4000 Multi Frame Noise Reduction +Choice: 64 5000 Multi Frame Noise Reduction +Choice: 65 6400 Multi Frame Noise Reduction +Choice: 66 8000 Multi Frame Noise Reduction +Choice: 67 10000 Multi Frame Noise Reduction +Choice: 68 12800 Multi Frame Noise Reduction +Choice: 69 16000 Multi Frame Noise Reduction +Choice: 70 25600 Multi Frame Noise Reduction +Choice: 71 51200 Multi Frame Noise Reduction +Choice: 72 36864 Multi Frame Noise Reduction +Choice: 73 8192 Multi Frame Noise Reduction +Choice: 74 16384 Multi Frame Noise Reduction +Choice: 75 65535 Multi Frame Noise Reduction +Choice: 76 100 Multi Frame Noise Reduction +Choice: 77 200 Multi Frame Noise Reduction +Choice: 78 400 Multi Frame Noise Reduction +Choice: 79 800 Multi Frame Noise Reduction +Choice: 80 1600 Multi Frame Noise Reduction +Choice: 81 3200 Multi Frame Noise Reduction +Choice: 82 6400 Multi Frame Noise Reduction +Choice: 83 12800 Multi Frame Noise Reduction +Choice: 84 25600 Multi Frame Noise Reduction +Choice: 85 51200 Multi Frame Noise Reduction +Choice: 86 36864 Multi Frame Noise Reduction +Choice: 87 8192 Multi Frame Noise Reduction +Choice: 88 16384 Multi Frame Noise Reduction +END +/main/imgsettings/colortemperature +Label: Color Temperature +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/imgsettings/whitebalance +Label: WhiteBalance +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 Daylight +Choice: 3 Shade +Choice: 4 Cloudy +Choice: 5 Tungsten +Choice: 6 Fluorescent: Warm White +Choice: 7 Fluorescent: Cold White +Choice: 8 Fluorescent: Day White +Choice: 9 Fluorescent: Daylight +Choice: 10 Underwater: Auto +Choice: 11 Choose Color Temperature +Choice: 12 Preset 1 +Choice: 13 Preset 2 +Choice: 14 Preset 3 +END +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Readonly: 0 +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 0 +Choice: 2 5 +Choice: 3 4.7 +Choice: 4 4.5 +Choice: 5 4.3 +Choice: 6 4 +Choice: 7 3.7 +Choice: 8 3.5 +Choice: 9 3.3 +Choice: 10 3 +Choice: 11 2.7 +Choice: 12 2.5 +Choice: 13 2.3 +Choice: 14 2 +Choice: 15 1.7 +Choice: 16 1.5 +Choice: 17 1.3 +Choice: 18 1 +Choice: 19 0.7 +Choice: 20 0.5 +Choice: 21 0.3 +Choice: 22 0 +Choice: 23 -0.3 +Choice: 24 -0.5 +Choice: 25 -0.7 +Choice: 26 -1 +Choice: 27 -1.3 +Choice: 28 -1.5 +Choice: 29 -1.7 +Choice: 30 -2 +Choice: 31 -2.3 +Choice: 32 -2.5 +Choice: 33 -2.7 +Choice: 34 -3 +Choice: 35 -3.3 +Choice: 36 -3.5 +Choice: 37 -3.7 +Choice: 38 -4 +Choice: 39 -4.3 +Choice: 40 -4.5 +Choice: 41 -4.7 +Choice: 42 -5 +END +/main/capturesettings/f-number +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 4 +Bottom: 0 +Top: 655.35 +Step: 0.01 +END +/main/capturesettings/imagequality +Label: Image Quality +Readonly: 0 +Type: RADIO +Current: Extra Fine +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Extra Fine +Choice: 3 RAW +Choice: 4 RAW+JPEG +END +/main/capturesettings/focusmode +Label: Focus Mode +Readonly: 0 +Type: RADIO +Current: Manual +Choice: 0 Manual +Choice: 1 Automatic +END +/main/capturesettings/expprogram +Label: Exposure Program +Readonly: 0 +Type: RADIO +Current: Intelligent Auto +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 M +Choice: 4 Movie +Choice: 5 Unknown value 8053 +Choice: 6 Unknown value 8054 +Choice: 7 Unknown value 8080 +Choice: 8 Unknown value 8083 +END +/main/capturesettings/aspectratio +Label: Aspect Ratio +Readonly: 0 +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +Choice: 1 16:9 +Choice: 2 Unknown value 0003 +Choice: 3 Unknown value 0004 +END +/main/capturesettings/capturemode +Label: Still Capture Mode +Readonly: 0 +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Unknown value 8013 +Choice: 2 Unknown value 8014 +Choice: 3 Selftimer 10s +Choice: 4 Selftimer 5s +Choice: 5 Selftimer 2s +Choice: 6 Selftimer 10s 3 Pictures +Choice: 7 Selftimer 10s 5 Pictures +Choice: 8 Selftimer 5s 3 Pictures +Choice: 9 Selftimer 5s 5 Pictures +Choice: 10 Selftimer 2s 3 Pictures +Choice: 11 Selftimer 2s 5 Pictures +END +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Readonly: 0 +Type: RADIO +Current: Unknown value 8001 +Choice: 0 Center Spot +Choice: 1 Unknown value 8001 +Choice: 2 Unknown value 8002 +END +/main/capturesettings/shutterspeed +Label: Shutter Speed +Readonly: 0 +Type: RADIO +Current: 1/50 +END +/main/other/5004 +Label: Compression Setting +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +END +/main/other/5005 +Label: White Balance +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 4 +Choice: 3 32785 +Choice: 4 32784 +Choice: 5 6 +Choice: 6 32769 +Choice: 7 32770 +Choice: 8 32771 +Choice: 9 32772 +Choice: 10 32816 +Choice: 11 32786 +Choice: 12 32800 +Choice: 13 32801 +Choice: 14 32802 +END +/main/other/5007 +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 400 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/500a +Label: Focus Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/500b +Label: Exposure Metering Mode +Readonly: 0 +Type: MENU +Current: 32769 +Choice: 0 4 +Choice: 1 32769 +Choice: 2 32770 +END +/main/other/500e +Label: Exposure Program Mode +Readonly: 0 +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 1 +Choice: 4 32848 +Choice: 5 32851 +Choice: 6 32852 +Choice: 7 32896 +Choice: 8 32899 +END +/main/other/5010 +Label: Exposure Bias Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 0 +Choice: 2 5000 +Choice: 3 4700 +Choice: 4 4500 +Choice: 5 4300 +Choice: 6 4000 +Choice: 7 3700 +Choice: 8 3500 +Choice: 9 3300 +Choice: 10 3000 +Choice: 11 2700 +Choice: 12 2500 +Choice: 13 2300 +Choice: 14 2000 +Choice: 15 1700 +Choice: 16 1500 +Choice: 17 1300 +Choice: 18 1000 +Choice: 19 700 +Choice: 20 500 +Choice: 21 300 +Choice: 22 0 +Choice: 23 -300 +Choice: 24 -500 +Choice: 25 -700 +Choice: 26 -1000 +Choice: 27 -1300 +Choice: 28 -1500 +Choice: 29 -1700 +Choice: 30 -2000 +Choice: 31 -2300 +Choice: 32 -2500 +Choice: 33 -2700 +Choice: 34 -3000 +Choice: 35 -3300 +Choice: 36 -3500 +Choice: 37 -3700 +Choice: 38 -4000 +Choice: 39 -4300 +Choice: 40 -4500 +Choice: 41 -4700 +Choice: 42 -5000 +END +/main/other/5013 +Label: Still Capture Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 32787 +Choice: 2 32788 +Choice: 3 32772 +Choice: 4 32771 +Choice: 5 32773 +Choice: 6 32776 +Choice: 7 32777 +Choice: 8 32780 +Choice: 9 32781 +Choice: 10 32782 +Choice: 11 32783 +END +/main/other/d200 +Label: DOC Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 3000 +Choice: 1 2700 +Choice: 2 2500 +Choice: 3 2300 +Choice: 4 2000 +Choice: 5 1700 +Choice: 6 1500 +Choice: 7 1300 +Choice: 8 1000 +Choice: 9 700 +Choice: 10 500 +Choice: 11 300 +Choice: 12 -300 +Choice: 13 -500 +Choice: 14 -700 +Choice: 15 -1000 +Choice: 16 -1300 +Choice: 17 -1500 +Choice: 18 -1700 +Choice: 19 -2000 +Choice: 20 -2300 +Choice: 21 -2500 +Choice: 22 -2700 +Choice: 23 -3000 +END +/main/other/d201 +Label: DRangeOptimize +Readonly: 0 +Type: MENU +Current: 31 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +END +/main/other/d203 +Label: Image size +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d20d +Label: Shutter speed +Readonly: 0 +Type: RANGE +Current: 65586 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d20e +Label: PTP Property 0xd20e +Readonly: 0 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +END +/main/other/d20f +Label: Color temperature +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +END +/main/other/d210 +Label: CC Filter +Readonly: 0 +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +END +/main/other/d211 +Label: Aspect Ratio +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/d212 +Label: PTP Property 0xd212 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +END +/main/other/d213 +Label: Focus status +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +END +/main/other/d217 +Label: PTP Property 0xd217 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d219 +Label: PTP Property 0xd219 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d21b +Label: Picture Effect +Readonly: 0 +Type: MENU +Current: 32768 +Choice: 0 32768 +END +/main/other/d21c +Label: AB Filter +Readonly: 0 +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +END +/main/other/d21d +Label: PTP Property 0xd21d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d21e +Label: ISO +Readonly: 0 +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777316 +Choice: 48 16777341 +Choice: 49 16777376 +Choice: 50 16777416 +Choice: 51 16777466 +Choice: 52 16777536 +Choice: 53 16777616 +Choice: 54 16777716 +Choice: 55 16777856 +Choice: 56 16778016 +Choice: 57 16778216 +Choice: 58 16778466 +Choice: 59 16778816 +Choice: 60 16779216 +Choice: 61 16779716 +Choice: 62 16780416 +Choice: 63 16781216 +Choice: 64 16782216 +Choice: 65 16783616 +Choice: 66 16785216 +Choice: 67 16787216 +Choice: 68 16790016 +Choice: 69 16793216 +Choice: 70 16802816 +Choice: 71 16828416 +Choice: 72 16879616 +Choice: 73 16982016 +Choice: 74 17186816 +Choice: 75 50331647 +Choice: 76 33554532 +Choice: 77 33554632 +Choice: 78 33554832 +Choice: 79 33555232 +Choice: 80 33556032 +Choice: 81 33557632 +Choice: 82 33560832 +Choice: 83 33567232 +Choice: 84 33580032 +Choice: 85 33605632 +Choice: 86 33656832 +Choice: 87 33759232 +Choice: 88 33964032 +END +/main/other/d221 +Label: PTP Property 0xd221 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d222 +Label: PTP Property 0xd222 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 17 +END +/main/other/d224 +Label: PTP Property 0xd224 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 3000 +Choice: 1 2700 +Choice: 2 2300 +Choice: 3 2000 +Choice: 4 1700 +Choice: 5 1300 +Choice: 6 1000 +Choice: 7 700 +Choice: 8 300 +Choice: 9 -300 +Choice: 10 -700 +Choice: 11 -1000 +Choice: 12 -1300 +Choice: 13 -1700 +Choice: 14 -2000 +Choice: 15 -2300 +Choice: 16 -2700 +Choice: 17 -3000 +END +/main/other/d226 +Label: PTP Property 0xd226 +Readonly: 0 +Type: MENU +Current: 16777215 +Choice: 0 33554431 +Choice: 1 16777416 +Choice: 2 16777616 +Choice: 3 16778016 +Choice: 4 16778816 +Choice: 5 16780416 +Choice: 6 16783616 +Choice: 7 16790016 +Choice: 8 16802816 +Choice: 9 50331647 +Choice: 10 33554632 +Choice: 11 33554832 +Choice: 12 33555232 +Choice: 13 33556032 +Choice: 14 33557632 +Choice: 15 33560832 +Choice: 16 33567232 +Choice: 17 33580032 +Choice: 18 16777215 +Choice: 19 80 +Choice: 20 100 +Choice: 21 125 +Choice: 22 160 +Choice: 23 200 +Choice: 24 250 +Choice: 25 320 +Choice: 26 400 +Choice: 27 500 +Choice: 28 640 +Choice: 29 800 +Choice: 30 1000 +Choice: 31 1250 +Choice: 32 1600 +Choice: 33 2000 +Choice: 34 2500 +Choice: 35 3200 +Choice: 36 4000 +Choice: 37 5000 +Choice: 38 6400 +Choice: 39 8000 +Choice: 40 10000 +Choice: 41 12800 +Choice: 42 512000 +Choice: 43 640000 +Choice: 44 819200 +END +/main/other/d227 +Label: PTP Property 0xd227 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d229 +Label: PTP Property 0xd229 +Readonly: 0 +Type: MENU +Current: 65586 +Choice: 0 65540 +Choice: 1 65541 +Choice: 2 65542 +Choice: 3 65544 +Choice: 4 65546 +Choice: 5 65549 +Choice: 6 65551 +Choice: 7 65556 +Choice: 8 65561 +Choice: 9 65566 +Choice: 10 65576 +Choice: 11 65586 +Choice: 12 65596 +Choice: 13 65616 +Choice: 14 65636 +Choice: 15 65661 +Choice: 16 65696 +Choice: 17 65736 +Choice: 18 65786 +Choice: 19 65856 +Choice: 20 65936 +Choice: 21 66036 +Choice: 22 66176 +Choice: 23 66336 +Choice: 24 66536 +Choice: 25 66786 +Choice: 26 67136 +Choice: 27 67536 +Choice: 28 68036 +Choice: 29 68736 +Choice: 30 69536 +Choice: 31 70536 +Choice: 32 71936 +Choice: 33 73536 +Choice: 34 75536 +Choice: 35 78336 +Choice: 36 81536 +Choice: 37 85536 +Choice: 38 91136 +Choice: 39 97536 +END +/main/other/d22a +Label: PTP Property 0xd22a +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +END +/main/other/d22b +Label: PTP Property 0xd22b +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 1 +Choice: 1 0 +END +/main/other/d23e +Label: PTP Property 0xd23e +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d23f +Label: PTP Property 0xd23f +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +END +/main/other/d240 +Label: PTP Property 0xd240 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +END +/main/other/d241 +Label: PTP Property 0xd241 +Readonly: 0 +Type: MENU +Current: 9 +Choice: 0 4 +Choice: 1 9 +Choice: 2 3 +END +/main/other/d242 +Label: PTP Property 0xd242 +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 4 +Choice: 1 5 +END +/main/other/d243 +Label: PTP Property 0xd243 +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +END +/main/other/d244 +Label: PTP Property 0xd244 +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 6 +END +/main/other/d245 +Label: PTP Property 0xd245 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d246 +Label: PTP Property 0xd246 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d247 +Label: PTP Property 0xd247 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 17 +Choice: 5 18 +Choice: 6 19 +Choice: 7 20 +END +/main/other/d248 +Label: PTP Property 0xd248 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/d249 +Label: PTP Property 0xd249 +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d24a +Label: PTP Property 0xd24a +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d24b +Label: PTP Property 0xd24b +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 1 +Choice: 1 0 +END +/main/other/d24c +Label: PTP Property 0xd24c +Readonly: 0 +Type: MENU +Current: 8 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 61 +Choice: 62 62 +Choice: 63 63 +Choice: 64 64 +Choice: 65 65 +Choice: 66 66 +Choice: 67 67 +Choice: 68 68 +Choice: 69 69 +Choice: 70 70 +Choice: 71 71 +Choice: 72 72 +Choice: 73 73 +Choice: 74 74 +Choice: 75 75 +Choice: 76 76 +Choice: 77 77 +Choice: 78 78 +Choice: 79 79 +Choice: 80 80 +Choice: 81 81 +Choice: 82 82 +Choice: 83 83 +Choice: 84 84 +Choice: 85 85 +Choice: 86 86 +Choice: 87 87 +Choice: 88 88 +Choice: 89 89 +Choice: 90 90 +Choice: 91 91 +Choice: 92 92 +Choice: 93 93 +Choice: 94 94 +Choice: 95 95 +Choice: 96 96 +Choice: 97 97 +Choice: 98 98 +Choice: 99 99 +Choice: 100 100 +END +/main/other/d2d1 +Label: PTP Property 0xd2d1 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -7 +Choice: 1 -6 +Choice: 2 -5 +Choice: 3 -4 +Choice: 4 -3 +Choice: 5 -2 +Choice: 6 -1 +Choice: 7 0 +Choice: 8 1 +Choice: 9 2 +Choice: 10 3 +Choice: 11 4 +Choice: 12 5 +Choice: 13 6 +Choice: 14 7 +END +/main/other/d215 +Label: Objects in memory +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Readonly: 0 +Type: MENU +Current: 0 +END +/main/other/d228 +Label: PTP Property 0xd228 +Readonly: 0 +Type: MENU +Current: 5 +Choice: 0 4 +Choice: 1 5 +END +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d2c8 +Label: Movie +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d2ca +Label: PTP Property 0xd2ca +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d2d5 +Label: PTP Property 0xd2d5 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d2d6 +Label: PTP Property 0xd2d6 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d2d7 +Label: PTP Property 0xd2d7 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d2d8 +Label: PTP Property 0xd2d8 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d24d +Label: PTP Property 0xd24d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +END + +1.050947 ptp_usb_getresp (2): Reading PTP_OC 0x9202 (PTP_OC_SONY_GetSDIOGetExtDeviceInfo) response... +1.050957 gp_port_read (3): Reading 1024 = 0x400 bytes from port... +1.051542 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes) +0000 0c 00 00 00 03 00 01 20-0a 00 00 00 ....... .... + +1.051573 ptp (2): xsize 140, got size 112 + +1.051587 fixup_cached_deviceinfo (2): sony code: 5004 +1.051594 fixup_cached_deviceinfo (2): sony code: 5005 +1.051600 fixup_cached_deviceinfo (2): sony code: 5007 +1.051605 fixup_cached_deviceinfo (2): sony code: 500a +1.051611 fixup_cached_deviceinfo (2): sony code: 500b +1.051617 fixup_cached_deviceinfo (2): sony code: 500e +1.051627 fixup_cached_deviceinfo (2): sony code: 5010 +1.051636 fixup_cached_deviceinfo (2): sony code: 5013 +1.051644 fixup_cached_deviceinfo (2): sony code: d200 +1.051652 fixup_cached_deviceinfo (2): sony code: d201 +1.051657 fixup_cached_deviceinfo (2): sony code: d203 +1.051665 fixup_cached_deviceinfo (2): sony code: d20d +1.051671 fixup_cached_deviceinfo (2): sony code: d20e +1.051679 fixup_cached_deviceinfo (2): sony code: d20f +1.051684 fixup_cached_deviceinfo (2): sony code: d210 +1.051693 fixup_cached_deviceinfo (2): sony code: d211 +1.051698 fixup_cached_deviceinfo (2): sony code: d212 +1.051706 fixup_cached_deviceinfo (2): sony code: d213 +1.051711 fixup_cached_deviceinfo (2): sony code: d217 +1.051719 fixup_cached_deviceinfo (2): sony code: d219 +1.051727 fixup_cached_deviceinfo (2): sony code: d21b +1.051735 fixup_cached_deviceinfo (2): sony code: d21c +1.051742 fixup_cached_deviceinfo (2): sony code: d21d +1.051752 fixup_cached_deviceinfo (2): sony code: d21e +1.051760 fixup_cached_deviceinfo (2): sony code: d220 +1.051768 fixup_cached_deviceinfo (2): sony code: d221 +1.051776 fixup_cached_deviceinfo (2): sony code: d222 +1.051784 fixup_cached_deviceinfo (2): sony code: d224 +1.051792 fixup_cached_deviceinfo (2): sony code: d226 +1.051799 fixup_cached_deviceinfo (2): sony code: d227 +1.051807 fixup_cached_deviceinfo (2): sony code: d229 +1.051816 fixup_cached_deviceinfo (2): sony code: d22a +1.051824 fixup_cached_deviceinfo (2): sony code: d22b +1.051832 fixup_cached_deviceinfo (2): sony code: d23e +1.051840 fixup_cached_deviceinfo (2): sony code: d23f +1.051847 fixup_cached_deviceinfo (2): sony code: d240 +1.051855 fixup_cached_deviceinfo (2): sony code: d241 +1.051863 fixup_cached_deviceinfo (2): sony code: d242 +1.051871 fixup_cached_deviceinfo (2): sony code: d243 +1.051879 fixup_cached_deviceinfo (2): sony code: d244 +1.051886 fixup_cached_deviceinfo (2): sony code: d245 +1.051894 fixup_cached_deviceinfo (2): sony code: d246 +1.051902 fixup_cached_deviceinfo (2): sony code: d247 +1.051910 fixup_cached_deviceinfo (2): sony code: d248 +1.051918 fixup_cached_deviceinfo (2): sony code: d249 +1.051926 fixup_cached_deviceinfo (2): sony code: d24a +1.051933 fixup_cached_deviceinfo (2): sony code: d24b +1.051942 fixup_cached_deviceinfo (2): sony code: d24c +1.051949 fixup_cached_deviceinfo (2): sony code: d2d1 +1.051958 fixup_cached_deviceinfo (2): sony code: d215 +1.051965 fixup_cached_deviceinfo (2): sony code: d220 +1.051973 fixup_cached_deviceinfo (2): sony code: d2c5 +1.051981 fixup_cached_deviceinfo (2): sony code: d228 +1.051989 fixup_cached_deviceinfo (2): sony code: d2c1 +1.051997 fixup_cached_deviceinfo (2): sony code: d2c2 +1.052005 fixup_cached_deviceinfo (2): sony code: d2c3 +1.052013 fixup_cached_deviceinfo (2): sony code: d2c8 +1.052021 fixup_cached_deviceinfo (2): sony code: d2ca +1.052029 fixup_cached_deviceinfo (2): sony code: d2d5 +1.052037 fixup_cached_deviceinfo (2): sony code: d2d6 +1.052044 fixup_cached_deviceinfo (2): sony code: d2d7 +1.052052 fixup_cached_deviceinfo (2): sony code: d2d8 +1.052060 fixup_cached_deviceinfo (2): sony code: d2c7 +1.052068 fixup_cached_deviceinfo (2): sony code: d223 +1.052076 fixup_cached_deviceinfo (2): sony code: d24d diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx100.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx100.txt new file mode 100644 index 00000000..02ef485c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx100.txt @@ -0,0 +1,76 @@ +Device info: +Manufacturer: Sony Corporation + Model: DSC-RX100 + device version: 1.0 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn' +Vendor extension ID: 0xffffffff +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9280 + 0x9281 + 0x9282 + 0x9283 + 0x9284 + 0x9285 +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-RX100 + Version: 1.0 + Serial Number: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +Vendor Extension ID: 0xffffffff (1.0) + +Capture Formats: +Display Formats: Association/Directory, Executable, MPEG, JPEG, MP4, Unknown(b301), Undefined Type, Unknown(b101), Unknown(b310) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Only + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 100% (100) +Friendly Device Name(0xd402):(read only) (type=0xffff) DSC-RX100 ('DSC-RX100') +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '(null)' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx100m2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx100m2.txt new file mode 100644 index 00000000..ea9ed1aa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx100m2.txt @@ -0,0 +1,198 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-RX100M2 + Version: 1.0 + Serial Number: 00000000000000008081415002897992 +Vendor Extension ID: 0xffffffff (1.0) + +Capture Formats: +Display Formats: Association/Directory, MPEG, JPEG, MP4, Unknown(b301), Undefined Type, Unknown(b101), Unknown(b310) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Only + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 100% (100) +Friendly Device Name(0xd402):(read only) (type=0xffff) DSC-RX100M2 ('DSC-RX100M2') +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '(null)' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 00000000000000008081415002897992 +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: DSC-RX100M2 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 100 +/main/other/d402 +Label: Friendly Device Name +Type: TEXT +Current: DSC-RX100M2 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: (null) +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. + +*** Error *** +Sorry, your camera does not support generic capture +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** + +For debugging messages, please use the --debug option. +Debugging messages may help finding a solution to your problem. +If you intend to send any error or debug messages to the gphoto +developer mailing list , please run +gphoto2 as follows: + + env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --version --summary --list-all-config --set-config capturetarget=1 --set-config capture=on --wait-event=5s --capture-image + +Please make sure there is sufficient quoting around the arguments. + + +Device info: +Manufacturer: Sony Corporation + Model: DSC-RX100M2 + device version: 1.0 + serial number: '00000000000000008081415002897992' +Vendor extension ID: 0xffffffff +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9280 + 0x9281 + 0x9282 + 0x9283 + 0x9284 + 0x9285 +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx100m5.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx100m5.txt new file mode 100644 index 00000000..ba46b97d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-rx100m5.txt @@ -0,0 +1,998 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-RX100M5 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), Unknown(b101) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture + +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19] value: 16 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32786,32800,32801,32802] value: 0 +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/0 (0) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,32772,32773,32774] value: 0 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: 0 +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32817,32818] value: Fill flash (3) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32896,32897,32898,32853,32854,32855,32856,32899,32857,32858,32859,32860,32833,7,32785,32789,32788,32786,32787,32790,32791,32792,32793,32794,32795,32796] value: A (3) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32789,32786,32773,32771,32772,32776,32777,32780,32781,32782,32783,33591,34103,35127,33655,34167,35191,33553,34065,35089,33569,34081,33585,34097,33590,34102,35126,33654,34166,35190,33552,34064,35088,33568,34080,33584,34096,32792,32808,32793,32809] value: 0 +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 0 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3,25] value: 0 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 0 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15] value: 15 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 0 +Focus status(0xd213):(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632] value: 0 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768,32769,32770,32771,32772,32773,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32880,32881,32882,32896,32897,32898,32912,32928,32929,32930,32931,32932,32933,32934,32944,32960,32961,32962] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd21f:(readwrite) (type=0x2) Enumeration [] value: 0 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 0 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 32053248 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 + +/main/actions/autofocus +Label: Auto-Focus +Type: TOGGLE +Current: 2 +/main/actions/capture +Label: Capture +Type: TOGGLE +Current: 2 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: DSC-RX100M5 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Sony PTP Extensions +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Auto ISO Multi Frame Noise Reduction +Choice: 43 25 Multi Frame Noise Reduction +Choice: 44 50 Multi Frame Noise Reduction +Choice: 45 64 Multi Frame Noise Reduction +Choice: 46 80 Multi Frame Noise Reduction +Choice: 47 100 Multi Frame Noise Reduction +Choice: 48 125 Multi Frame Noise Reduction +Choice: 49 160 Multi Frame Noise Reduction +Choice: 50 200 Multi Frame Noise Reduction +Choice: 51 250 Multi Frame Noise Reduction +Choice: 52 320 Multi Frame Noise Reduction +Choice: 53 400 Multi Frame Noise Reduction +Choice: 54 500 Multi Frame Noise Reduction +Choice: 55 640 Multi Frame Noise Reduction +Choice: 56 800 Multi Frame Noise Reduction +Choice: 57 1000 Multi Frame Noise Reduction +Choice: 58 1250 Multi Frame Noise Reduction +Choice: 59 1600 Multi Frame Noise Reduction +Choice: 60 2000 Multi Frame Noise Reduction +Choice: 61 2500 Multi Frame Noise Reduction +Choice: 62 3200 Multi Frame Noise Reduction +Choice: 63 4000 Multi Frame Noise Reduction +Choice: 64 5000 Multi Frame Noise Reduction +Choice: 65 6400 Multi Frame Noise Reduction +Choice: 66 8000 Multi Frame Noise Reduction +Choice: 67 10000 Multi Frame Noise Reduction +Choice: 68 12800 Multi Frame Noise Reduction +Choice: 69 16000 Multi Frame Noise Reduction +Choice: 70 25600 Multi Frame Noise Reduction +Choice: 71 51200 Multi Frame Noise Reduction +Choice: 72 36864 Multi Frame Noise Reduction +Choice: 73 8192 Multi Frame Noise Reduction +Choice: 74 16384 Multi Frame Noise Reduction +Choice: 75 65535 Multi Frame Noise Reduction +Choice: 76 100 Multi Frame Noise Reduction +Choice: 77 200 Multi Frame Noise Reduction +Choice: 78 400 Multi Frame Noise Reduction +Choice: 79 800 Multi Frame Noise Reduction +Choice: 80 1600 Multi Frame Noise Reduction +Choice: 81 3200 Multi Frame Noise Reduction +Choice: 82 6400 Multi Frame Noise Reduction +Choice: 83 12800 Multi Frame Noise Reduction +Choice: 84 25600 Multi Frame Noise Reduction +Choice: 85 51200 Multi Frame Noise Reduction +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 0 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Shade +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Flash +Choice: 10 Choose Color Temperature +Choice: 11 Unknown value 8020 +Choice: 12 Unknown value 8021 +Choice: 13 Unknown value 8022 +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 5 +Choice: 2 4.7 +Choice: 3 4.5 +Choice: 4 4.3 +Choice: 5 4 +Choice: 6 3.7 +Choice: 7 3.5 +Choice: 8 3.3 +Choice: 9 3 +Choice: 10 2.7 +Choice: 11 2.5 +Choice: 12 2.3 +Choice: 13 2 +Choice: 14 1.7 +Choice: 15 1.5 +Choice: 16 1.3 +Choice: 17 1 +Choice: 18 0.7 +Choice: 19 0.5 +Choice: 20 0.3 +Choice: 21 -0.3 +Choice: 22 -0.5 +Choice: 23 -0.7 +Choice: 24 -1 +Choice: 25 -1.3 +Choice: 26 -1.5 +Choice: 27 -1.7 +Choice: 28 -2 +Choice: 29 -2.3 +Choice: 30 -2.5 +Choice: 31 -2.7 +Choice: 32 -3 +Choice: 33 -3.3 +Choice: 34 -3.5 +Choice: 35 -3.7 +Choice: 36 -4 +Choice: 37 -4.3 +Choice: 38 -4.5 +Choice: 39 -4.7 +Choice: 40 -5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Fill flash +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Rear Curtain Sync +Choice: 7 Unknown value 8031 +Choice: 8 Slow Sync +/main/capturesettings/f-number +Label: F-Number +Type: RANGE +Current: 1.8 +Bottom: 0 +Top: 655.35 +Step: 0.01 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: Unknown value 0004 +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Unknown value 0004 +Choice: 3 RAW +Choice: 4 RAW+JPEG +Choice: 5 Unknown value 0004 +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-A +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 Unknown value 8006 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: A +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Movie +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8054 +Choice: 11 Unknown value 8080 +Choice: 12 Unknown value 8081 +Choice: 13 Unknown value 8082 +Choice: 14 Unknown value 8055 +Choice: 15 Unknown value 8056 +Choice: 16 Unknown value 8057 +Choice: 17 Unknown value 8058 +Choice: 18 Unknown value 8083 +Choice: 19 Unknown value 8059 +Choice: 20 Unknown value 805a +Choice: 21 Unknown value 805b +Choice: 22 Unknown value 805c +Choice: 23 Sweep Panorama +Choice: 24 Portrait +Choice: 25 Sports Action +Choice: 26 Macro +Choice: 27 Landscape +Choice: 28 Sunset +Choice: 29 Night Scene +Choice: 30 Hand-held Twilight +Choice: 31 Night Portrait +Choice: 32 Unknown value 8018 +Choice: 33 Unknown value 8019 +Choice: 34 Unknown value 801a +Choice: 35 Unknown value 801b +Choice: 36 Unknown value 801c +/main/capturesettings/aspectratio +Label: Aspect Ratio +Type: RADIO +Current: 16:9 +Choice: 0 16:9 +Choice: 1 3:2 +Choice: 2 Unknown value 0003 +Choice: 3 Unknown value 0004 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Unknown value 8015 +Choice: 3 Continuous Low Speed +Choice: 4 Selftimer 2s +Choice: 5 Unknown value 8003 +Choice: 6 Selftimer 10s +Choice: 7 Unknown value 8008 +Choice: 8 Unknown value 8009 +Choice: 9 Unknown value 800c +Choice: 10 Unknown value 800d +Choice: 11 Unknown value 800e +Choice: 12 Unknown value 800f +Choice: 13 Bracketing C 0.3 Steps +Choice: 14 Unknown value 8537 +Choice: 15 Unknown value 8937 +Choice: 16 Bracketing C 0.7 Steps +Choice: 17 Unknown value 8577 +Choice: 18 Unknown value 8977 +Choice: 19 Bracketing C 1.0 Steps +Choice: 20 Unknown value 8511 +Choice: 21 Unknown value 8911 +Choice: 22 Bracketing C 2.0 Steps +Choice: 23 Unknown value 8521 +Choice: 24 Bracketing C 3.0 Steps +Choice: 25 Unknown value 8531 +Choice: 26 Bracketing S 0.3 Steps +Choice: 27 Unknown value 8536 +Choice: 28 Unknown value 8936 +Choice: 29 Bracketing S 0.7 Steps +Choice: 30 Unknown value 8576 +Choice: 31 Unknown value 8976 +Choice: 32 Bracketing S 1.0 Steps +Choice: 33 Unknown value 8510 +Choice: 34 Unknown value 8910 +Choice: 35 Bracketing S 2.0 Steps +Choice: 36 Unknown value 8520 +Choice: 37 Bracketing S 3.0 Steps +Choice: 38 Unknown value 8530 +Choice: 39 Bracketing WB Lo +Choice: 40 Bracketing WB Hi +Choice: 41 Unknown value 8019 +Choice: 42 Unknown value 8029 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Average +Choice: 0 Center Spot +Choice: 1 Average +Choice: 2 Unknown value 8002 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1/30 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 4 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32786 +Choice: 11 32800 +Choice: 12 32801 +Choice: 13 32802 +/main/other/5007 +Label: F-Number +Type: RANGE +Current: 180 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32773 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32774 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 1 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32817 +Choice: 8 32818 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 3 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32896 +Choice: 12 32897 +Choice: 13 32898 +Choice: 14 32853 +Choice: 15 32854 +Choice: 16 32855 +Choice: 17 32856 +Choice: 18 32899 +Choice: 19 32857 +Choice: 20 32858 +Choice: 21 32859 +Choice: 22 32860 +Choice: 23 32833 +Choice: 24 7 +Choice: 25 32785 +Choice: 26 32789 +Choice: 27 32788 +Choice: 28 32786 +Choice: 29 32787 +Choice: 30 32790 +Choice: 31 32791 +Choice: 32 32792 +Choice: 33 32793 +Choice: 34 32794 +Choice: 35 32795 +Choice: 36 32796 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 5000 +Choice: 2 4700 +Choice: 3 4500 +Choice: 4 4300 +Choice: 5 4000 +Choice: 6 3700 +Choice: 7 3500 +Choice: 8 3300 +Choice: 9 3000 +Choice: 10 2700 +Choice: 11 2500 +Choice: 12 2300 +Choice: 13 2000 +Choice: 14 1700 +Choice: 15 1500 +Choice: 16 1300 +Choice: 17 1000 +Choice: 18 700 +Choice: 19 500 +Choice: 20 300 +Choice: 21 -300 +Choice: 22 -500 +Choice: 23 -700 +Choice: 24 -1000 +Choice: 25 -1300 +Choice: 26 -1500 +Choice: 27 -1700 +Choice: 28 -2000 +Choice: 29 -2300 +Choice: 30 -2500 +Choice: 31 -2700 +Choice: 32 -3000 +Choice: 33 -3300 +Choice: 34 -3500 +Choice: 35 -3700 +Choice: 36 -4000 +Choice: 37 -4300 +Choice: 38 -4500 +Choice: 39 -4700 +Choice: 40 -5000 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32789 +Choice: 3 32786 +Choice: 4 32773 +Choice: 5 32771 +Choice: 6 32772 +Choice: 7 32776 +Choice: 8 32777 +Choice: 9 32780 +Choice: 10 32781 +Choice: 11 32782 +Choice: 12 32783 +Choice: 13 33591 +Choice: 14 34103 +Choice: 15 35127 +Choice: 16 33655 +Choice: 17 34167 +Choice: 18 35191 +Choice: 19 33553 +Choice: 20 34065 +Choice: 21 35089 +Choice: 22 33569 +Choice: 23 34081 +Choice: 24 33585 +Choice: 25 34097 +Choice: 26 33590 +Choice: 27 34102 +Choice: 28 35126 +Choice: 29 33654 +Choice: 30 34166 +Choice: 31 35190 +Choice: 32 33552 +Choice: 33 34064 +Choice: 34 35088 +Choice: 35 33568 +Choice: 36 34080 +Choice: 37 33584 +Choice: 38 34096 +Choice: 39 32792 +Choice: 40 32808 +Choice: 41 32793 +Choice: 42 32809 +/main/other/d200 +Label: DOC Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 3000 +Choice: 2 2700 +Choice: 3 2500 +Choice: 4 2300 +Choice: 5 2000 +Choice: 6 1700 +Choice: 7 1500 +Choice: 8 1300 +Choice: 9 1000 +Choice: 10 700 +Choice: 11 500 +Choice: 12 300 +Choice: 13 -300 +Choice: 14 -500 +Choice: 15 -700 +Choice: 16 -1000 +Choice: 17 -1300 +Choice: 18 -1500 +Choice: 19 -1700 +Choice: 20 -2000 +Choice: 21 -2300 +Choice: 22 -2500 +Choice: 23 -2700 +Choice: 24 -3000 +/main/other/d201 +Label: DRangeOptimize +Type: MENU +Current: 31 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +/main/other/d203 +Label: Image size +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d20d +Label: Shutter speed +Type: RANGE +Current: 65566 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +/main/other/d20f +Label: Color temperature +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +/main/other/d211 +Label: Aspect Ratio +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d213 +Label: Focus status +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +/main/other/d21e +Label: ISO +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777316 +Choice: 48 16777341 +Choice: 49 16777376 +Choice: 50 16777416 +Choice: 51 16777466 +Choice: 52 16777536 +Choice: 53 16777616 +Choice: 54 16777716 +Choice: 55 16777856 +Choice: 56 16778016 +Choice: 57 16778216 +Choice: 58 16778466 +Choice: 59 16778816 +Choice: 60 16779216 +Choice: 61 16779716 +Choice: 62 16780416 +Choice: 63 16781216 +Choice: 64 16782216 +Choice: 65 16783616 +Choice: 66 16785216 +Choice: 67 16787216 +Choice: 68 16790016 +Choice: 69 16793216 +Choice: 70 16802816 +Choice: 71 16828416 +Choice: 72 16879616 +Choice: 73 16982016 +Choice: 74 17186816 +Choice: 75 50331647 +Choice: 76 33554532 +Choice: 77 33554632 +Choice: 78 33554832 +Choice: 79 33555232 +Choice: 80 33556032 +Choice: 81 33557632 +Choice: 82 33560832 +Choice: 83 33567232 +Choice: 84 33580032 +Choice: 85 33605632 +/main/other/d21b +Label: Picture Effect +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32928 +Choice: 24 32929 +Choice: 25 32930 +Choice: 26 32931 +Choice: 27 32932 +Choice: 28 32933 +Choice: 29 32934 +Choice: 30 32944 +Choice: 31 32960 +Choice: 32 32961 +Choice: 33 32962 +/main/other/d21d +Label: PTP Property 0xd21d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d21f +Label: PTP Property 0xd21f +Type: MENU +Current: 1 +/main/other/d217 +Label: PTP Property 0xd217 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d219 +Label: PTP Property 0xd219 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +/main/other/d210 +Label: CC Filter +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +/main/other/d21c +Label: AB Filter +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +/main/other/d221 +Label: PTP Property 0xd221 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d214 +Label: PTP Property 0xd214 +Type: RANGE +Current: 3.20532e+07 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d215 +Label: Objects in memory +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c8 +Label: Movie +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c7 +Label: Still Image +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-s730.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-s730.txt new file mode 100644 index 00000000..667479ca --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-s730.txt @@ -0,0 +1,57 @@ +Device info: +Manufacturer: Sony Corporation + Model: Sony Digital Still Camera + device version: (null) + serial number: '(null)' +Vendor extension ID: 0x00000000 +Vendor extension version: 0 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x1012 + 0x9005 + 0x9006 + 0x0030 +Events Supported: + 0x4009 +Device Properties Supported: + +Camera summary: +Manufacturer: Sony Corporation +Model: Sony Digital Still Camera + Version: (null) + +Capture Formats: JPEG TIFF EP MS Wave MS AVI +Display Formats: JPEG, TIFF EP, FlashPix, BMP, CIFF, Unknown(3806), GIF + +Device Capabilities: + File Download, No File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Removable storage + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 2014773248 (1921 MB) + Free Space (Bytes): 2014674944 (1921 MB) + Free Space (Images): 1499 + +Device Property Summary: + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-w510.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-w510.txt new file mode 100644 index 00000000..8d5a4608 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-w510.txt @@ -0,0 +1,108 @@ +Camera summary: +Sony Corporation +Sony Digital Still Camera +1.0 1.1 +XXXXXXXXXXXX +0x6 (1.0) +microsoft.com: 1.0; microsoft.com/WMPPD: 10.0; + + +JPEG +Supported MTP Object Properties: +dc01/StorageID dc02/ObjectFormat dc41/PersistantUniqueObjectIdentifier dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc44/Name dc03/ProtectionStatus dc09/DateModified dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: +Memory Stick +None +Builtin RAM +Digital Camera Layout (DCIM) +Read-Write +7813988352 (7452 MB) +7813529600 (7451 MB) +-1 + +Device Property Summary: +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '' +Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 75% (75) + +/main/status/serialnumber +Serial Number +TEXT +XXXXXXXXXXXX +/main/status/manufacturer +Camera Manufacturer +TEXT +Sony Corporation +/main/status/cameramodel +Camera Model +TEXT +Sony Digital Still Camera +/main/status/deviceversion +Device Version +TEXT +1.0 1.1 +/main/status/vendorextension +Vendor Extension +TEXT +microsoft.com: 1.0; microsoft.com/WMPPD: 10.0; +/main/other/d407 +Perceived Device Type +TEXT +1 +/main/other/d406 +Session Initiator Info +TEXT + +/main/other/5001 +Battery Level +MENU +75 +0 2 +1 5 +2 25 +3 50 +4 65 +5 80 +6 100 + +Device info: +Manufacturer: Sony Corporation + Model: Sony Digital Still Camera + device version: 1.0 1.1 + serial number: 'XXXXXXXXXXXX' +Vendor extension ID: 0x00000006 +Vendor extension version: 100 +Vendor extension description: microsoft.com: 1.0; microsoft.com/WMPPD: 10.0; +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 +Events Supported: + 0x4004 + 0x4005 +Device Properties Supported: + 0xd407 + 0xd406 + 0x5001 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-wx350.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-wx350.txt new file mode 100644 index 00000000..83735a2b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-dsc-wx350.txt @@ -0,0 +1,45 @@ +Device info: +Manufacturer: Sony Corporation + Model: DSC-WX350 + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000011 +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9280 (Unknown PTP_OC) + 0x9281 (Unknown PTP_OC) + 0x9282 (Unknown PTP_OC) + 0x9283 (Unknown PTP_OC) + 0x9284 (Unknown PTP_OC) + 0x9285 (Unknown PTP_OC) +Events Supported: + 0x4004 (StoreAdded) + 0x4005 (StoreRemoved) + 0x4006 (DevicePropChanged) +Device Properties Supported: + 0x5001 (Battery Level) + 0xd402 (Unknown DPC code) + 0xd406 (Unknown DPC code) + 0xd407 (Unknown DPC code) + 0xd303 (Unknown DPC code) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-hx200v.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-hx200v.txt new file mode 100644 index 00000000..0e261c94 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-hx200v.txt @@ -0,0 +1,88 @@ +Device info: +Manufacturer: Sony Corporation + Model: DSC-HX200V + device version: 1.0 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn' +Vendor extension ID: 0xffffffff +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9280 + 0x9281 + 0x9282 + 0x9283 + 0x9284 + 0x9285 +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Kamerazusammenfassung: +Hersteller: Sony Corporation +Modell: DSC-HX200V + Version: 1.0 + Seriennummer: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0xffffffff (1.0) + +Aufnahmeformate: +Anzeigeformate: Association/Directory, Executable, MPEG, JPEG, MP4, Unknown(b301), Undefined Type, Unknown(b101), Unknown(b310) + +Fähigkeiten des Geräts: + Dateien Download, kein Löschen von Dateien, kein Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Kein Vendor spezifischer Aufnahmemodus + +Informationen über Speichermedium: +store_00010001: + Beschreibung des Speichergeräts: Storage Media + Label des Speichergerätes: Keine + Speichertyp: Entfernbarer Speicher (Karte) + Typ des Dateisystems: Generisch hierarchischer Modus + Zugriffsmöglichkeiten: nur Lesen + Maximale Kapazität: 0 (0 MB) + Freier Platz (Bytes): 0 (0 MB) + Freier Speicher (Bilder): -1 + +Properties des Geräts: +Batterie Ladezustand(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 0% (0) +Anzeigbarer Gerätename(0xd402):(read only) (type=0xffff) DSC-HX200V ('DSC-HX200V') +Session Initiator Information(0xd406):(readwrite) (type=0xffff) '(null)' +Angenommener Gerätetyp(0xd407):(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/status/serialnumber +/main/status/manufacturer +/main/status/cameramodel +/main/status/deviceversion +/main/status/vendorextension +/main/other/5001 +/main/other/d402 +/main/other/d406 +/main/other/d407 +/main/other/d303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-hx90v.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-hx90v.txt new file mode 100644 index 00000000..eb0ad709 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-hx90v.txt @@ -0,0 +1,157 @@ +gphoto2 --list-all-config +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: DSC-HX90V +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/status/Battery Level +Label: Battery Level +Type: TEXT +Current: 100% +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 100 +/main/other/d402 +Label: PTP Property 0xd402 +Type: TEXT +Current: DSC-HX90V +/main/other/d406 +Label: PTP Property 0xd406 +Type: TEXT +Current: (null) +/main/other/d407 +Label: PTP Property 0xd407 +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + +Device info: +Manufacturer: Sony Corporation + Model: DSC-HX90V + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000011 +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) + 0x9280 (Unknown PTP_OC) + 0x9281 (Unknown PTP_OC) + 0x9282 (Unknown PTP_OC) + 0x9283 (Unknown PTP_OC) + 0x9284 (Unknown PTP_OC) + 0x9285 (Unknown PTP_OC) +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-ilce6000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-ilce6000.txt new file mode 100644 index 00000000..b16b16cf --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-ilce6000.txt @@ -0,0 +1,885 @@ +/main/actions/bulb +Label: Bulb Mode +Type: TOGGLE +Current: 2 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: ILCE-6000 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 2.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Sony PTP Extensions +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 100 +Choice: 3 125 +Choice: 4 160 +Choice: 5 200 +Choice: 6 250 +Choice: 7 320 +Choice: 8 400 +Choice: 9 500 +Choice: 10 640 +Choice: 11 800 +Choice: 12 1000 +Choice: 13 1250 +Choice: 14 1600 +Choice: 15 2000 +Choice: 16 2500 +Choice: 17 3200 +Choice: 18 4000 +Choice: 19 5000 +Choice: 20 6400 +Choice: 21 8000 +Choice: 22 10000 +Choice: 23 12800 +Choice: 24 16000 +Choice: 25 20000 +Choice: 26 25600 +Choice: 27 102400 +Choice: 28 Auto ISO Multi Frame Noise Reduction +Choice: 29 25 Multi Frame Noise Reduction +Choice: 30 50 Multi Frame Noise Reduction +Choice: 31 64 Multi Frame Noise Reduction +Choice: 32 80 Multi Frame Noise Reduction +Choice: 33 100 Multi Frame Noise Reduction +Choice: 34 125 Multi Frame Noise Reduction +Choice: 35 160 Multi Frame Noise Reduction +Choice: 36 200 Multi Frame Noise Reduction +Choice: 37 250 Multi Frame Noise Reduction +Choice: 38 320 Multi Frame Noise Reduction +Choice: 39 400 Multi Frame Noise Reduction +Choice: 40 500 Multi Frame Noise Reduction +Choice: 41 640 Multi Frame Noise Reduction +Choice: 42 800 Multi Frame Noise Reduction +Choice: 43 1000 Multi Frame Noise Reduction +Choice: 44 1250 Multi Frame Noise Reduction +Choice: 45 1600 Multi Frame Noise Reduction +Choice: 46 2000 Multi Frame Noise Reduction +Choice: 47 2500 Multi Frame Noise Reduction +Choice: 48 3200 Multi Frame Noise Reduction +Choice: 49 4000 Multi Frame Noise Reduction +Choice: 50 5000 Multi Frame Noise Reduction +Choice: 51 6400 Multi Frame Noise Reduction +Choice: 52 8000 Multi Frame Noise Reduction +Choice: 53 10000 Multi Frame Noise Reduction +Choice: 54 12800 Multi Frame Noise Reduction +Choice: 55 16000 Multi Frame Noise Reduction +Choice: 56 25600 Multi Frame Noise Reduction +Choice: 57 51200 Multi Frame Noise Reduction +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 0 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Daylight +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Shade +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Flash +Choice: 10 Choose Color Temperature +Choice: 11 Preset +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 0.001 +Choice: 2 0.002 +Choice: 3 5 +Choice: 4 4.7 +Choice: 5 4.5 +Choice: 6 4.3 +Choice: 7 4 +Choice: 8 3.7 +Choice: 9 3.5 +Choice: 10 3.3 +Choice: 11 3 +Choice: 12 2.7 +Choice: 13 2.5 +Choice: 14 2.3 +Choice: 15 2 +Choice: 16 1.7 +Choice: 17 1.5 +Choice: 18 1.3 +Choice: 19 1 +Choice: 20 0.7 +Choice: 21 0.5 +Choice: 22 0.3 +Choice: 23 -0.3 +Choice: 24 -0.5 +Choice: 25 -0.7 +Choice: 26 -1 +Choice: 27 -1.3 +Choice: 28 -1.5 +Choice: 29 -1.7 +Choice: 30 -2 +Choice: 31 -2.3 +Choice: 32 -2.5 +Choice: 33 -2.7 +Choice: 34 -3 +Choice: 35 -3.3 +Choice: 36 -3.5 +Choice: 37 -3.7 +Choice: 38 -4 +Choice: 39 -4.3 +Choice: 40 -4.5 +Choice: 41 -4.7 +Choice: 42 -5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Rear Curtain Sync +Choice: 7 Wireless Sync +Choice: 8 Unknown value 8031 +Choice: 9 Slow Sync +Choice: 10 Unknown value 0000 +/main/capturesettings/f-number +Label: F-Number +Type: RANGE +Current: 4 +Bottom: 0 +Top: 655.35 +Step: 0.01 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: Fine +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 RAW +Choice: 3 RAW+JPEG +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: AF-C +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 Automatic Macro +Choice: 3 AF-C +Choice: 4 AF-A +Choice: 5 Unknown value 8008 +Choice: 6 Unknown value 8006 +Choice: 7 Unknown value 8007 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: S +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Movie +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8054 +Choice: 11 Sweep Panorama +Choice: 12 Portrait +Choice: 13 Sports Action +Choice: 14 Macro +Choice: 15 Landscape +Choice: 16 Sunset +Choice: 17 Night Scene +Choice: 18 Hand-held Twilight +Choice: 19 Night Portrait +Choice: 20 Unknown value 8018 +/main/capturesettings/aspectratio +Label: Aspect Ratio +Type: RADIO +Current: 16:9 +Choice: 0 16:9 +Choice: 1 3:2 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Unknown value 8015 +Choice: 3 Continuous Low Speed +Choice: 4 Selftimer 2s +Choice: 5 Selftimer 10s +Choice: 6 Unknown value 8008 +Choice: 7 Unknown value 8009 +Choice: 8 Bracketing C 0.3 Steps +Choice: 9 Unknown value 8537 +Choice: 10 Unknown value 8357 +Choice: 11 Unknown value 8557 +Choice: 12 Bracketing C 0.7 Steps +Choice: 13 Unknown value 8577 +Choice: 14 Bracketing C 1.0 Steps +Choice: 15 Bracketing C 2.0 Steps +Choice: 16 Bracketing C 3.0 Steps +Choice: 17 Bracketing S 0.3 Steps +Choice: 18 Unknown value 8536 +Choice: 19 Unknown value 8356 +Choice: 20 Unknown value 8556 +Choice: 21 Bracketing S 0.7 Steps +Choice: 22 Unknown value 8576 +Choice: 23 Bracketing S 1.0 Steps +Choice: 24 Bracketing S 2.0 Steps +Choice: 25 Bracketing S 3.0 Steps +Choice: 26 Bracketing WB Lo +Choice: 27 Bracketing WB Hi +Choice: 28 Unknown value 8019 +Choice: 29 Unknown value 8029 +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Center Weighted +Choice: 0 Center Spot +Choice: 1 Average +Choice: 2 Unknown value 8002 +Choice: 3 Center Weighted +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1/500 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 16 +Choice: 3 19 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 4 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32786 +Choice: 11 32803 +/main/other/5007 +Label: F-Number +Type: RANGE +Current: 400 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 32772 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 32772 +Choice: 4 32773 +Choice: 5 32776 +Choice: 6 32774 +Choice: 7 32775 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 2 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 0 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32772 +Choice: 8 32817 +Choice: 9 32818 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 4 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32833 +Choice: 12 7 +Choice: 13 32785 +Choice: 14 32789 +Choice: 15 32788 +Choice: 16 32786 +Choice: 17 32787 +Choice: 18 32790 +Choice: 19 32791 +Choice: 20 32792 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 5000 +Choice: 4 4700 +Choice: 5 4500 +Choice: 6 4300 +Choice: 7 4000 +Choice: 8 3700 +Choice: 9 3500 +Choice: 10 3300 +Choice: 11 3000 +Choice: 12 2700 +Choice: 13 2500 +Choice: 14 2300 +Choice: 15 2000 +Choice: 16 1700 +Choice: 17 1500 +Choice: 18 1300 +Choice: 19 1000 +Choice: 20 700 +Choice: 21 500 +Choice: 22 300 +Choice: 23 -300 +Choice: 24 -500 +Choice: 25 -700 +Choice: 26 -1000 +Choice: 27 -1300 +Choice: 28 -1500 +Choice: 29 -1700 +Choice: 30 -2000 +Choice: 31 -2300 +Choice: 32 -2500 +Choice: 33 -2700 +Choice: 34 -3000 +Choice: 35 -3300 +Choice: 36 -3500 +Choice: 37 -3700 +Choice: 38 -4000 +Choice: 39 -4300 +Choice: 40 -4500 +Choice: 41 -4700 +Choice: 42 -5000 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32789 +Choice: 3 32786 +Choice: 4 32773 +Choice: 5 32772 +Choice: 6 32776 +Choice: 7 32777 +Choice: 8 33591 +Choice: 9 34103 +Choice: 10 33623 +Choice: 11 34135 +Choice: 12 33655 +Choice: 13 34167 +Choice: 14 33553 +Choice: 15 33569 +Choice: 16 33585 +Choice: 17 33590 +Choice: 18 34102 +Choice: 19 33622 +Choice: 20 34134 +Choice: 21 33654 +Choice: 22 34166 +Choice: 23 33552 +Choice: 24 33568 +Choice: 25 33584 +Choice: 26 32792 +Choice: 27 32808 +Choice: 28 32793 +Choice: 29 32809 +/main/other/d200 +Label: DOC Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3000 +Choice: 4 2700 +Choice: 5 2500 +Choice: 6 2300 +Choice: 7 2000 +Choice: 8 1700 +Choice: 9 1500 +Choice: 10 1300 +Choice: 11 1000 +Choice: 12 700 +Choice: 13 500 +Choice: 14 300 +Choice: 15 -300 +Choice: 16 -500 +Choice: 17 -700 +Choice: 18 -1000 +Choice: 19 -1300 +Choice: 20 -1500 +Choice: 21 -1700 +Choice: 22 -2000 +Choice: 23 -2300 +Choice: 24 -2500 +Choice: 25 -2700 +Choice: 26 -3000 +/main/other/d201 +Label: DRangeOptimize +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +/main/other/d203 +Label: Image size +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d20d +Label: Shutter speed +Type: RANGE +Current: 66036 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 5 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 8 +Choice: 4 9 +Choice: 5 10 +Choice: 6 4 +Choice: 7 5 +Choice: 8 6 +Choice: 9 7 +/main/other/d20f +Label: Color temperature +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +/main/other/d210 +Label: CC Filter +Type: MENU +Current: 128 +Choice: 0 121 +Choice: 1 122 +Choice: 2 123 +Choice: 3 124 +Choice: 4 125 +Choice: 5 126 +Choice: 6 127 +Choice: 7 128 +Choice: 8 129 +Choice: 9 130 +Choice: 10 131 +Choice: 11 132 +Choice: 12 133 +Choice: 13 134 +Choice: 14 135 +/main/other/d21c +Label: AB Filter +Type: MENU +Current: 128 +Choice: 0 121 +Choice: 1 122 +Choice: 2 123 +Choice: 3 124 +Choice: 4 125 +Choice: 5 126 +Choice: 6 127 +Choice: 7 128 +Choice: 8 129 +Choice: 9 130 +Choice: 10 131 +Choice: 11 132 +Choice: 12 133 +Choice: 13 134 +Choice: 14 135 +/main/other/d211 +Label: Aspect Ratio +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d213 +Label: PTP Property 0xd213 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +/main/other/d21e +Label: ISO +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 100 +Choice: 3 125 +Choice: 4 160 +Choice: 5 200 +Choice: 6 250 +Choice: 7 320 +Choice: 8 400 +Choice: 9 500 +Choice: 10 640 +Choice: 11 800 +Choice: 12 1000 +Choice: 13 1250 +Choice: 14 1600 +Choice: 15 2000 +Choice: 16 2500 +Choice: 17 3200 +Choice: 18 4000 +Choice: 19 5000 +Choice: 20 6400 +Choice: 21 8000 +Choice: 22 10000 +Choice: 23 12800 +Choice: 24 16000 +Choice: 25 20000 +Choice: 26 25600 +Choice: 27 102400 +Choice: 28 33554431 +Choice: 29 16777241 +Choice: 30 16777266 +Choice: 31 16777280 +Choice: 32 16777296 +Choice: 33 16777316 +Choice: 34 16777341 +Choice: 35 16777376 +Choice: 36 16777416 +Choice: 37 16777466 +Choice: 38 16777536 +Choice: 39 16777616 +Choice: 40 16777716 +Choice: 41 16777856 +Choice: 42 16778016 +Choice: 43 16778216 +Choice: 44 16778466 +Choice: 45 16778816 +Choice: 46 16779216 +Choice: 47 16779716 +Choice: 48 16780416 +Choice: 49 16781216 +Choice: 50 16782216 +Choice: 51 16783616 +Choice: 52 16785216 +Choice: 53 16787216 +Choice: 54 16790016 +Choice: 55 16793216 +Choice: 56 16802816 +Choice: 57 16828416 +/main/other/d21b +Label: Picture Effect +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32929 +Choice: 24 32930 +Choice: 25 32931 +Choice: 26 32932 +Choice: 27 32933 +Choice: 28 32934 +Choice: 29 32944 +Choice: 30 32960 +Choice: 31 32961 +Choice: 32 32962 +/main/other/d21d +Label: PTP Property 0xd21d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d217 +Label: PTP Property 0xd217 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: MENU +Current: 32 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +Choice: 3 2 +Choice: 4 3 +Choice: 5 4 +Choice: 6 5 +Choice: 7 6 +Choice: 8 7 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 12 +Choice: 14 13 +Choice: 15 14 +Choice: 16 15 +Choice: 17 16 +Choice: 18 17 +Choice: 19 18 +Choice: 20 19 +Choice: 21 20 +Choice: 22 21 +Choice: 23 22 +Choice: 24 23 +Choice: 25 24 +Choice: 26 25 +Choice: 27 26 +Choice: 28 27 +Choice: 29 28 +Choice: 30 29 +Choice: 31 30 +Choice: 32 31 +Choice: 33 32 +Choice: 34 33 +Choice: 35 34 +Choice: 36 35 +Choice: 37 36 +Choice: 38 37 +Choice: 39 38 +Choice: 40 39 +Choice: 41 40 +Choice: 42 41 +Choice: 43 42 +Choice: 44 43 +Choice: 45 44 +Choice: 46 45 +Choice: 47 46 +Choice: 48 47 +Choice: 49 48 +Choice: 50 49 +Choice: 51 50 +Choice: 52 51 +Choice: 53 52 +Choice: 54 53 +Choice: 55 54 +Choice: 56 55 +Choice: 57 56 +Choice: 58 57 +Choice: 59 58 +Choice: 60 59 +Choice: 61 60 +Choice: 62 61 +Choice: 63 62 +Choice: 64 63 +Choice: 65 64 +Choice: 66 65 +Choice: 67 66 +Choice: 68 67 +Choice: 69 68 +Choice: 70 69 +Choice: 71 70 +Choice: 72 71 +Choice: 73 72 +Choice: 74 73 +Choice: 75 74 +Choice: 76 75 +Choice: 77 76 +Choice: 78 77 +Choice: 79 78 +Choice: 80 79 +Choice: 81 80 +Choice: 82 81 +Choice: 83 82 +Choice: 84 83 +Choice: 85 84 +Choice: 86 85 +Choice: 87 86 +Choice: 88 87 +Choice: 89 88 +Choice: 90 89 +Choice: 91 90 +Choice: 92 91 +Choice: 93 92 +Choice: 94 93 +Choice: 95 94 +Choice: 96 95 +Choice: 97 96 +Choice: 98 97 +Choice: 99 98 +Choice: 100 99 +Choice: 101 100 +/main/other/d219 +Label: PTP Property 0xd219 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +/main/other/d214 +Label: PTP Property 0xd214 +Type: RANGE +Current: 3.39241e+07 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d215 +Label: PTP Property 0xd215 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c8 +Label: Movie +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c7 +Label: Still Image +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-nex-3n.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-nex-3n.txt new file mode 100644 index 00000000..526e5bb3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-nex-3n.txt @@ -0,0 +1,197 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-HX300 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0xffffffff (1.0) + +Capture Formats: +Display Formats: Association/Directory, MPEG, JPEG, MP4, Unknown(b301), Undefined Type, Unknown(b101), Unknown(b310) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Only + Maximum Capability: 0 (0 MB) + Free Space (Bytes): 0 (0 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 100% (100) +Friendly Device Name(0xd402):(read only) (type=0xffff) DSC-HX300 ('DSC-HX300') +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '(null)' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: DSC-HX300 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 100 +/main/other/d402 +Label: Friendly Device Name +Type: TEXT +Current: DSC-HX300 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: (null) +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Waiting for 5 seconds for events from camera. Press Ctrl-C to abort. + +*** Error *** +Sorry, your camera does not support generic capture +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** + +For debugging messages, please use the --debug option. +Debugging messages may help finding a solution to your problem. +If you intend to send any error or debug messages to the gphoto +developer mailing list , please run +gphoto2 as follows: + + env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --version --summary --list-all-config --set-config capturetarget=1 --set-config capture=on --wait-event=5s --capture-image + +Please make sure there is sufficient quoting around the arguments. + +Device info: +Manufacturer: Sony Corporation + Model: DSC-HX300 + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0xffffffff +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9280 + 0x9281 + 0x9282 + 0x9283 + 0x9284 + 0x9285 +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-nex-7.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-nex-7.txt new file mode 100644 index 00000000..16cb5b56 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-nex-7.txt @@ -0,0 +1,42 @@ +Device info: +Manufacturer: Sony Corporation + Model: NEX-7 + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0xffffffff +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9282 + 0x9280 + 0x9281 + 0x9805 +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-nex6.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-nex6.txt new file mode 100644 index 00000000..d5e1ee44 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-nex6.txt @@ -0,0 +1,199 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: NEX-6 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0xffffffff (1.0) + +Capture Formats: +Display Formats: Association/Directory, Executable, MPEG, JPEG, MP4, +Unknown(b301), Undefined Type, Unknown(b101), Unknown(b310) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Only + Maximum Capability: 16001269760 (15260 MB) + Free Space (Bytes): 15868690432 (15133 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration +[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35, +36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] +value: 100% (100) +Friendly Device Name(0xd402):(read only) (type=0xffff) NEX-6 ('NEX-6') +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '(null)' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + + + + +*LANG=C gphoto2 --list-all-config >config.txt* +more config.txt +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: NEX-6 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 100 +/main/other/d402 +Label: Friendly Device Name +Type: TEXT +Current: NEX-6 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: (null) +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 + + + + +*gphoto2 --capture-image* +*** Error *** +Sorry, your camera does not support generic capture +ERROR: Could not capture image. +ERROR: Could not capture. + ** Error (-6: «Operación no soportada») *** + +Device info: +Manufacturer: Sony Corporation + Model: NEX-6 + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0xffffffff +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9280 + 0x9281 + 0x9282 + 0x9283 + 0x9284 + 0x9285 +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx0m2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx0m2.txt new file mode 100644 index 00000000..6c9456f0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx0m2.txt @@ -0,0 +1,1374 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-RX0M2 + Version: 1.00 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), ARW + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture + +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,18,19,20] value: 3 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,32816,32786,32800,32801,32802] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/4 (400) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,32777] value: Automatic (2) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [32769,32770,32772,32773,32771,32774] value: 32769 +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [] value: Flash off (2) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [2,1,32848,32851,32852,32768,32769,32896,32899] value: P (2) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,32787,32788,32772,32771,32773,32776,32777,32780,32781,32782,32783,33591,34103,35127,33655,34167,35191,33553,34065,35089,33569,34081,33585,34097,33590,34102,35126,33654,34166,35190,33552,34064,35088,33568,34080,33584,34096,32808,32792,32809,32793] value: 0 +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 1 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65586 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [] value: 7 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 5500 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 1 +Focus status(0xd213):(readwrite) (type=0x2) Enumeration [] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 4294967295 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd217:(readwrite) (type=0x2) Enumeration [] value: 1 +Battery Level(0xd218):(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 70 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32912,32880,32881,32882,32896,32897,32898,32928,32929,32930,32931,32932,32933,32934,32944,32960,32961,32962] value: 32768 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [] value: 16777215 +Property 0xd220:(readwrite) (type=0x2) Enumeration [] value: 1 +Property 0xd221:(readwrite) (type=0x2) Enumeration [] value: 1 +Property 0xd222:(readwrite) (type=0x4) Enumeration [1,17,16] value: 17 +Property 0xd223: error 2002 on query. +Property 0xd224:(readwrite) (type=0x3) Enumeration [3000,2700,2300,2000,1700,1300,1000,700,300,0,-300,-700,-1000,-1300,-1700,-2000,-2300,-2700,-3000] value: 0 +Property 0xd226:(readwrite) (type=0x6) Enumeration [16777215,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,33554431,16777416,16777616,16778016,16778816,16780416,16783616,16790016,16802816,50331647,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032] value: 16777215 +Property 0xd227:(readwrite) (type=0x2) Enumeration [] value: 0 +Property 0xd228:(readwrite) (type=0x2) Enumeration [4,5] value: 5 +Property 0xd229:(readwrite) (type=0x6) Enumeration [] value: 65586 +Property 0xd22a:(readwrite) (type=0x2) Enumeration [] value: 1 +Property 0xd22b:(readwrite) (type=0x2) Enumeration [] value: 0 +Property 0xd235:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd23e:(readwrite) (type=0x2) Enumeration [0,1] value: 0 +Property 0xd23f:(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7] value: 0 +Property 0xd240:(readwrite) (type=0x2) Enumeration [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] value: 1 +Property 0xd241:(readwrite) (type=0x2) Enumeration [8,9,3] value: 3 +Property 0xd242:(readwrite) (type=0x4) Enumeration [6,8] value: 8 +Property 0xd243:(readwrite) (type=0x4) Enumeration [1,3,7] value: 1 +Property 0xd244:(readwrite) (type=0x4) Enumeration [1,3,5] value: 1 +Property 0xd245:(readwrite) (type=0x2) Enumeration [1,2] value: 1 +Property 0xd246:(readwrite) (type=0x2) Enumeration [1,2,4] value: 1 +Property 0xd247:(readwrite) (type=0x2) Enumeration [0,1,2,3,17,18,19,20] value: 0 +Property 0xd248:(readwrite) (type=0x2) Enumeration [] value: 1 +Property 0xd249:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 1832 +Property 0xd24a:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 0 +Property 0xd24b:(readwrite) (type=0x2) Enumeration [] value: 0 +Property 0xd24c:(readwrite) (type=0x2) Range [0 - 0, step 1] value: 100 +Property 0xd24d:(readwrite) (type=0x2) Enumeration [0,1,2,3,4] value: 0 +Property 0xd24e:(readwrite) (type=0x4) Enumeration [] value: 1 +Property 0xd24f:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd250:(readwrite) (type=0x2) Enumeration [] value: 0 +Property 0xd25b:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Property 0xd25c:(readwrite) (type=0x6) Range [1000 - 2000, step 100] value: 1000 +Property 0xd25d:(readwrite) (type=0x6) 16777216 +Property 0xd25f:(readwrite) (type=0x2) Enumeration [2,3,4] value: 3 +Property 0xd260:(readwrite) (type=0x2) Enumeration [] value: 1 +Property 0xd265:(readwrite) (type=0x2) Enumeration [] value: 0 +Property 0xd266:(readwrite) (type=0x2) Enumeration [0,1] value: 1 +Autofocus(0xd2c1):(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Capture(0xd2c2):(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd2ca:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd2d1:(readwrite) (type=0x3) Range [-7 - 7, step 1] value: 2 +Property 0xd2d5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d6:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d7:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd2d8:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd2d9:(readwrite) (type=0x4) Enumeration [1,2] value: 2 +Property 0xd2dd:(readwrite) (type=0x1) Range [-1 - 1, step 1] value: 2 +Property 0xd2de:(readwrite) (type=0x4) Enumeration [1,2] value: 2 + +/main/actions/autofocus +Label: Auto-Focus +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/capture +Label: Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/bulb +Label: Bulb Mode +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/movie +Label: Movie Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: Sony Corporation +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: DSC-RX0M2 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: 1.00 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: Sony PTP Extensions +END +/main/status/batterylevel +Label: Battery Level +Readonly: 0 +Type: TEXT +Current: 70% +END +/main/imgsettings/imagesize +Label: Image Size +Readonly: 0 +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +END +/main/imgsettings/iso +Label: ISO Speed +Readonly: 0 +Type: RADIO +Current: Auto ISO +END +/main/imgsettings/colortemperature +Label: Color Temperature +Readonly: 0 +Type: TEXT +Current: 5500 +END +/main/imgsettings/whitebalance +Label: WhiteBalance +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Shade +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Underwater: Auto +Choice: 10 Choose Color Temperature +Choice: 11 Preset 1 +Choice: 12 Preset 2 +Choice: 13 Preset 3 +END +/main/capturesettings/zoom +Label: Zoom +Readonly: 0 +Type: RANGE +Current: 4294.97 +Bottom: 0 +Top: 4294.97 +Step: 1 +END +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Readonly: 0 +Type: RADIO +Current: 0 +END +/main/capturesettings/flashmode +Label: Flash Mode +Readonly: 0 +Type: RADIO +Current: Flash off +Choice: 0 Automatic Flash +Choice: 1 Flash off +Choice: 2 Fill flash +Choice: 3 Red-eye automatic +Choice: 4 Red-eye fill +Choice: 5 External sync +Choice: 6 Rear Curtain Sync +Choice: 7 Wireless Sync +Choice: 8 Slow Sync +END +/main/capturesettings/f-number +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 4 +Bottom: 0 +Top: 655.35 +Step: 0.01 +END +/main/capturesettings/imagequality +Label: Image Quality +Readonly: 0 +Type: RADIO +Current: Fine +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Extra Fine +Choice: 3 RAW +Choice: 4 Unknown value 0012 +Choice: 5 RAW+JPEG +Choice: 6 Unknown value 0014 +END +/main/capturesettings/focusmode +Label: Focus Mode +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 Unknown value 8009 +END +/main/capturesettings/expprogram +Label: Exposure Program +Readonly: 0 +Type: RADIO +Current: P +Choice: 0 P +Choice: 1 M +Choice: 2 Movie +Choice: 3 Unknown value 8053 +Choice: 4 Unknown value 8054 +Choice: 5 Intelligent Auto +Choice: 6 Superior Auto +Choice: 7 Unknown value 8080 +Choice: 8 Unknown value 8083 +END +/main/capturesettings/aspectratio +Label: Aspect Ratio +Readonly: 0 +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +Choice: 1 16:9 +Choice: 2 Unknown value 0003 +Choice: 3 Unknown value 0004 +END +/main/capturesettings/capturemode +Label: Still Capture Mode +Readonly: 0 +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Single Shot +Choice: 1 Unknown value 8013 +Choice: 2 Unknown value 8014 +Choice: 3 Selftimer 10s +Choice: 4 Selftimer 5s +Choice: 5 Selftimer 2s +Choice: 6 Selftimer 10s 3 Pictures +Choice: 7 Selftimer 10s 5 Pictures +Choice: 8 Selftimer 5s 3 Pictures +Choice: 9 Selftimer 5s 5 Pictures +Choice: 10 Selftimer 2s 3 Pictures +Choice: 11 Selftimer 2s 5 Pictures +Choice: 12 Bracketing C 0.3 Steps 3 Pictures +Choice: 13 Bracketing C 0.3 Steps 5 Pictures +Choice: 14 Bracketing C 0.3 Steps 9 Pictures +Choice: 15 Bracketing C 0.7 Steps 3 Pictures +Choice: 16 Bracketing C 0.7 Steps 5 Pictures +Choice: 17 Bracketing C 0.7 Steps 9 Pictures +Choice: 18 Bracketing C 1.0 Steps 3 Pictures +Choice: 19 Bracketing C 1.0 Steps 5 Pictures +Choice: 20 Bracketing C 1.0 Steps 9 Pictures +Choice: 21 Bracketing C 2.0 Steps 3 Pictures +Choice: 22 Bracketing C 2.0 Steps 5 Pictures +Choice: 23 Bracketing C 3.0 Steps 3 Pictures +Choice: 24 Bracketing C 3.0 Steps 5 Pictures +Choice: 25 Bracketing S 0.3 Steps 3 Pictures +Choice: 26 Bracketing S 0.3 Steps 5 Pictures +Choice: 27 Bracketing S 0.3 Steps 9 Pictures +Choice: 28 Bracketing S 0.7 Steps 3 Pictures +Choice: 29 Bracketing S 0.7 Steps 5 Pictures +Choice: 30 Bracketing S 0.7 Steps 9 Pictures +Choice: 31 Bracketing S 1.0 Steps 3 Pictures +Choice: 32 Bracketing S 1.0 Steps 5 Pictures +Choice: 33 Bracketing S 1.0 Steps 9 Pictures +Choice: 34 Bracketing S 2.0 Steps 3 Pictures +Choice: 35 Bracketing S 2.0 Steps 5 Pictures +Choice: 36 Bracketing S 3.0 Steps 3 Pictures +Choice: 37 Bracketing S 3.0 Steps 5 Pictures +Choice: 38 Bracketing WB Hi +Choice: 39 Bracketing WB Lo +Choice: 40 Bracketing DRO Hi +Choice: 41 Bracketing DRO Lo +Choice: 42 Unknown value 0000 +END +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Readonly: 0 +Type: RADIO +Current: Unknown value 8001 +Choice: 0 Unknown value 8001 +Choice: 1 Unknown value 8002 +Choice: 2 Unknown value 8004 +Choice: 3 Unknown value 8005 +Choice: 4 Unknown value 8003 +Choice: 5 Unknown value 8006 +END +/main/capturesettings/shutterspeed +Label: Shutter Speed +Readonly: 0 +Type: RADIO +Current: 1/50 +Choice: 0 30 +Choice: 1 25 +Choice: 2 20 +Choice: 3 15 +Choice: 4 13 +Choice: 5 10 +Choice: 6 8 +Choice: 7 6 +Choice: 8 5 +Choice: 9 4 +Choice: 10 32/10 +Choice: 11 25/10 +Choice: 12 2 +Choice: 13 16/10 +Choice: 14 13/10 +Choice: 15 1 +Choice: 16 8/10 +Choice: 17 6/10 +Choice: 18 5/10 +Choice: 19 4/10 +Choice: 20 1/3 +Choice: 21 1/4 +Choice: 22 1/5 +Choice: 23 1/6 +Choice: 24 1/8 +Choice: 25 1/10 +Choice: 26 1/13 +Choice: 27 1/15 +Choice: 28 1/20 +Choice: 29 1/25 +Choice: 30 1/30 +Choice: 31 1/40 +Choice: 32 1/50 +Choice: 33 1/60 +Choice: 34 1/80 +Choice: 35 1/100 +Choice: 36 1/125 +Choice: 37 1/160 +Choice: 38 1/200 +Choice: 39 1/250 +Choice: 40 1/320 +Choice: 41 1/400 +Choice: 42 1/500 +Choice: 43 1/640 +Choice: 44 1/800 +Choice: 45 1/1000 +Choice: 46 1/1250 +Choice: 47 1/1600 +Choice: 48 1/2000 +Choice: 49 1/2500 +Choice: 50 1/3200 +Choice: 51 1/4000 +Choice: 52 Bulb +END +/main/other/5004 +Label: Compression Setting +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 18 +Choice: 5 19 +Choice: 6 20 +END +/main/other/5005 +Label: White Balance +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 32816 +Choice: 10 32786 +Choice: 11 32800 +Choice: 12 32801 +Choice: 13 32802 +END +/main/other/5007 +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 400 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/500a +Label: Focus Mode +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32777 +END +/main/other/500b +Label: Exposure Metering Mode +Readonly: 0 +Type: MENU +Current: 32769 +Choice: 0 32769 +Choice: 1 32770 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32771 +Choice: 5 32774 +END +/main/other/500c +Label: Flash Mode +Readonly: 0 +Type: MENU +Current: 2 +END +/main/other/500e +Label: Exposure Program Mode +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 1 +Choice: 2 32848 +Choice: 3 32851 +Choice: 4 32852 +Choice: 5 32768 +Choice: 6 32769 +Choice: 7 32896 +Choice: 8 32899 +END +/main/other/5010 +Label: Exposure Bias Compensation +Readonly: 0 +Type: MENU +Current: 0 +END +/main/other/5013 +Label: Still Capture Mode +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 1 +Choice: 1 32787 +Choice: 2 32788 +Choice: 3 32772 +Choice: 4 32771 +Choice: 5 32773 +Choice: 6 32776 +Choice: 7 32777 +Choice: 8 32780 +Choice: 9 32781 +Choice: 10 32782 +Choice: 11 32783 +Choice: 12 33591 +Choice: 13 34103 +Choice: 14 35127 +Choice: 15 33655 +Choice: 16 34167 +Choice: 17 35191 +Choice: 18 33553 +Choice: 19 34065 +Choice: 20 35089 +Choice: 21 33569 +Choice: 22 34081 +Choice: 23 33585 +Choice: 24 34097 +Choice: 25 33590 +Choice: 26 34102 +Choice: 27 35126 +Choice: 28 33654 +Choice: 29 34166 +Choice: 30 35190 +Choice: 31 33552 +Choice: 32 34064 +Choice: 33 35088 +Choice: 34 33568 +Choice: 35 34080 +Choice: 36 33584 +Choice: 37 34096 +Choice: 38 32808 +Choice: 39 32792 +Choice: 40 32809 +Choice: 41 32793 +END +/main/other/d200 +Label: DOC Compensation +Readonly: 0 +Type: MENU +Current: 0 +END +/main/other/d201 +Label: DRangeOptimize +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +END +/main/other/d203 +Label: Image size +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d20d +Label: Shutter speed +Readonly: 0 +Type: RANGE +Current: 65586 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d20e +Label: PTP Property 0xd20e +Readonly: 0 +Type: MENU +Current: 15 +END +/main/other/d20f +Label: Color temperature +Readonly: 0 +Type: RANGE +Current: 5500 +Bottom: 2500 +Top: 9900 +Step: 100 +END +/main/other/d210 +Label: CC Filter +Readonly: 0 +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +END +/main/other/d211 +Label: Aspect Ratio +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/d213 +Label: Focus status +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d214 +Label: PTP Property 0xd214 +Readonly: 0 +Type: RANGE +Current: 4.29497e+09 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d215 +Label: Objects in memory +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/d217 +Label: PTP Property 0xd217 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d218 +Label: Battery Level +Readonly: 0 +Type: MENU +Current: 70 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +Choice: 3 2 +Choice: 4 3 +Choice: 5 4 +Choice: 6 5 +Choice: 7 6 +Choice: 8 7 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 12 +Choice: 14 13 +Choice: 15 14 +Choice: 16 15 +Choice: 17 16 +Choice: 18 17 +Choice: 19 18 +Choice: 20 19 +Choice: 21 20 +Choice: 22 21 +Choice: 23 22 +Choice: 24 23 +Choice: 25 24 +Choice: 26 25 +Choice: 27 26 +Choice: 28 27 +Choice: 29 28 +Choice: 30 29 +Choice: 31 30 +Choice: 32 31 +Choice: 33 32 +Choice: 34 33 +Choice: 35 34 +Choice: 36 35 +Choice: 37 36 +Choice: 38 37 +Choice: 39 38 +Choice: 40 39 +Choice: 41 40 +Choice: 42 41 +Choice: 43 42 +Choice: 44 43 +Choice: 45 44 +Choice: 46 45 +Choice: 47 46 +Choice: 48 47 +Choice: 49 48 +Choice: 50 49 +Choice: 51 50 +Choice: 52 51 +Choice: 53 52 +Choice: 54 53 +Choice: 55 54 +Choice: 56 55 +Choice: 57 56 +Choice: 58 57 +Choice: 59 58 +Choice: 60 59 +Choice: 61 60 +Choice: 62 61 +Choice: 63 62 +Choice: 64 63 +Choice: 65 64 +Choice: 66 65 +Choice: 67 66 +Choice: 68 67 +Choice: 69 68 +Choice: 70 69 +Choice: 71 70 +Choice: 72 71 +Choice: 73 72 +Choice: 74 73 +Choice: 75 74 +Choice: 76 75 +Choice: 77 76 +Choice: 78 77 +Choice: 79 78 +Choice: 80 79 +Choice: 81 80 +Choice: 82 81 +Choice: 83 82 +Choice: 84 83 +Choice: 85 84 +Choice: 86 85 +Choice: 87 86 +Choice: 88 87 +Choice: 89 88 +Choice: 90 89 +Choice: 91 90 +Choice: 92 91 +Choice: 93 92 +Choice: 94 93 +Choice: 95 94 +Choice: 96 95 +Choice: 97 96 +Choice: 98 97 +Choice: 99 98 +Choice: 100 99 +Choice: 101 100 +END +/main/other/d21b +Label: Picture Effect +Readonly: 0 +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32784 +Choice: 2 32800 +Choice: 3 32801 +Choice: 4 32816 +Choice: 5 32832 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32864 +Choice: 11 32912 +Choice: 12 32880 +Choice: 13 32881 +Choice: 14 32882 +Choice: 15 32896 +Choice: 16 32897 +Choice: 17 32898 +Choice: 18 32928 +Choice: 19 32929 +Choice: 20 32930 +Choice: 21 32931 +Choice: 22 32932 +Choice: 23 32933 +Choice: 24 32934 +Choice: 25 32944 +Choice: 26 32960 +Choice: 27 32961 +Choice: 28 32962 +END +/main/other/d21c +Label: AB Filter +Readonly: 0 +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +END +/main/other/d21d +Label: PTP Property 0xd21d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d21e +Label: ISO +Readonly: 0 +Type: MENU +Current: 16777215 +END +/main/other/d220 +Label: PTP Property 0xd220 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d221 +Label: PTP Property 0xd221 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d222 +Label: PTP Property 0xd222 +Readonly: 0 +Type: MENU +Current: 17 +Choice: 0 1 +Choice: 1 17 +Choice: 2 16 +END +/main/other/d224 +Label: PTP Property 0xd224 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 3000 +Choice: 1 2700 +Choice: 2 2300 +Choice: 3 2000 +Choice: 4 1700 +Choice: 5 1300 +Choice: 6 1000 +Choice: 7 700 +Choice: 8 300 +Choice: 9 0 +Choice: 10 -300 +Choice: 11 -700 +Choice: 12 -1000 +Choice: 13 -1300 +Choice: 14 -1700 +Choice: 15 -2000 +Choice: 16 -2300 +Choice: 17 -2700 +Choice: 18 -3000 +END +/main/other/d226 +Label: PTP Property 0xd226 +Readonly: 0 +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 125 +Choice: 2 160 +Choice: 3 200 +Choice: 4 250 +Choice: 5 320 +Choice: 6 400 +Choice: 7 500 +Choice: 8 640 +Choice: 9 800 +Choice: 10 1000 +Choice: 11 1250 +Choice: 12 1600 +Choice: 13 2000 +Choice: 14 2500 +Choice: 15 3200 +Choice: 16 4000 +Choice: 17 5000 +Choice: 18 6400 +Choice: 19 8000 +Choice: 20 10000 +Choice: 21 12800 +Choice: 22 33554431 +Choice: 23 16777416 +Choice: 24 16777616 +Choice: 25 16778016 +Choice: 26 16778816 +Choice: 27 16780416 +Choice: 28 16783616 +Choice: 29 16790016 +Choice: 30 16802816 +Choice: 31 50331647 +Choice: 32 33554632 +Choice: 33 33554832 +Choice: 34 33555232 +Choice: 35 33556032 +Choice: 36 33557632 +Choice: 37 33560832 +Choice: 38 33567232 +Choice: 39 33580032 +END +/main/other/d227 +Label: PTP Property 0xd227 +Readonly: 0 +Type: MENU +Current: 0 +END +/main/other/d228 +Label: PTP Property 0xd228 +Readonly: 0 +Type: MENU +Current: 5 +Choice: 0 4 +Choice: 1 5 +END +/main/other/d229 +Label: PTP Property 0xd229 +Readonly: 0 +Type: MENU +Current: 65586 +END +/main/other/d22a +Label: PTP Property 0xd22a +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d22b +Label: PTP Property 0xd22b +Readonly: 0 +Type: MENU +Current: 0 +END +/main/other/d235 +Label: PTP Property 0xd235 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d23e +Label: PTP Property 0xd23e +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d23f +Label: PTP Property 0xd23f +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +END +/main/other/d240 +Label: PTP Property 0xd240 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +Choice: 4 5 +Choice: 5 6 +Choice: 6 7 +Choice: 7 8 +Choice: 8 9 +Choice: 9 10 +Choice: 10 11 +Choice: 11 12 +Choice: 12 13 +Choice: 13 14 +Choice: 14 15 +Choice: 15 16 +Choice: 16 17 +Choice: 17 18 +Choice: 18 19 +END +/main/other/d241 +Label: PTP Property 0xd241 +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 8 +Choice: 1 9 +Choice: 2 3 +END +/main/other/d242 +Label: PTP Property 0xd242 +Readonly: 0 +Type: MENU +Current: 8 +Choice: 0 6 +Choice: 1 8 +END +/main/other/d243 +Label: PTP Property 0xd243 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 3 +Choice: 2 7 +END +/main/other/d244 +Label: PTP Property 0xd244 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 3 +Choice: 2 5 +END +/main/other/d245 +Label: PTP Property 0xd245 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d246 +Label: PTP Property 0xd246 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 4 +END +/main/other/d247 +Label: PTP Property 0xd247 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 17 +Choice: 5 18 +Choice: 6 19 +Choice: 7 20 +END +/main/other/d248 +Label: PTP Property 0xd248 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d249 +Label: PTP Property 0xd249 +Readonly: 0 +Type: RANGE +Current: 1832 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d24a +Label: PTP Property 0xd24a +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d24b +Label: PTP Property 0xd24b +Readonly: 0 +Type: MENU +Current: 0 +END +/main/other/d24c +Label: PTP Property 0xd24c +Readonly: 0 +Type: MENU +Current: 100 +Choice: 0 0 +END +/main/other/d24d +Label: PTP Property 0xd24d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +END +/main/other/d24e +Label: PTP Property 0xd24e +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d24f +Label: PTP Property 0xd24f +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d250 +Label: PTP Property 0xd250 +Readonly: 0 +Type: MENU +Current: 0 +END +/main/other/d25b +Label: PTP Property 0xd25b +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d25c +Label: PTP Property 0xd25c +Readonly: 0 +Type: RANGE +Current: 1000 +Bottom: 1000 +Top: 2000 +Step: 100 +END +/main/other/d25d +Label: PTP Property 0xd25d +Readonly: 0 +Type: TEXT +Current: 16777216 +END +/main/other/d25f +Label: PTP Property 0xd25f +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +END +/main/other/d260 +Label: PTP Property 0xd260 +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d265 +Label: PTP Property 0xd265 +Readonly: 0 +Type: MENU +Current: 0 +END +/main/other/d266 +Label: PTP Property 0xd266 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +END +/main/other/d2c1 +Label: Autofocus +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c2 +Label: Capture +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c7 +Label: Still Image +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c8 +Label: Movie +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2ca +Label: PTP Property 0xd2ca +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d1 +Label: PTP Property 0xd2d1 +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 -7 +Choice: 1 -6 +Choice: 2 -5 +Choice: 3 -4 +Choice: 4 -3 +Choice: 5 -2 +Choice: 6 -1 +Choice: 7 0 +Choice: 8 1 +Choice: 9 2 +Choice: 10 3 +Choice: 11 4 +Choice: 12 5 +Choice: 13 6 +Choice: 14 7 +END +/main/other/d2d5 +Label: PTP Property 0xd2d5 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d6 +Label: PTP Property 0xd2d6 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d7 +Label: PTP Property 0xd2d7 +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d8 +Label: PTP Property 0xd2d8 +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d9 +Label: PTP Property 0xd2d9 +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2dd +Label: PTP Property 0xd2dd +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +END +/main/other/d2de +Label: PTP Property 0xd2de +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +END diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx10-3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx10-3.txt new file mode 100644 index 00000000..85f8b3f7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx10-3.txt @@ -0,0 +1,1099 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-RX10M3 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), ARW + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture + +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19] value: RAW (4) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32786,32800,32801,32802] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/2.4 (240) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,3,32772,32773,32776,32774,32775] value: Automatic (2) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: Average (1) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32772,32817,32818] value: Fill flash (3) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32896,32897,32898,32853,32854,32855,32856,32899,32857,32858,32859,32860,32833,7,32785,32789,32788,32786,32787,32790,32791,32792] value: P (2) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.3 stops (300) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,32773,32771,32772] value: Single Shot (1) +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 32 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65586 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15] value: 15 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 1 +Focus status(0xd213):(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632] value: 16777215 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768,32769,32770,32771,32772,32773,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32880,32881,32882,32896,32897,32898,32912,32928,32929,32930,32931,32932,32933,32934,32944,32960,32961,32962] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd21f:(readwrite) (type=0x2) Enumeration [] value: 1 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Battery Level(0xd218):(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 100 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 32053248 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 + +/main/actions/autofocus +Label: Auto-Focus +Type: TOGGLE +Current: 2 +/main/actions/capture +Label: Capture +Type: TOGGLE +Current: 2 +/main/actions/movie +Label: Movie Capture +Type: TOGGLE +Current: 2 +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: DSC-RX10M3 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Sony PTP Extensions +/main/status/batterylevel +Label: Battery Level +Type: TEXT +Current: 100% +/main/imgsettings/imagesize +Label: Image Size +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +/main/imgsettings/iso +Label: ISO Speed +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Auto ISO Multi Frame Noise Reduction +Choice: 43 25 Multi Frame Noise Reduction +Choice: 44 50 Multi Frame Noise Reduction +Choice: 45 64 Multi Frame Noise Reduction +Choice: 46 80 Multi Frame Noise Reduction +Choice: 47 100 Multi Frame Noise Reduction +Choice: 48 125 Multi Frame Noise Reduction +Choice: 49 160 Multi Frame Noise Reduction +Choice: 50 200 Multi Frame Noise Reduction +Choice: 51 250 Multi Frame Noise Reduction +Choice: 52 320 Multi Frame Noise Reduction +Choice: 53 400 Multi Frame Noise Reduction +Choice: 54 500 Multi Frame Noise Reduction +Choice: 55 640 Multi Frame Noise Reduction +Choice: 56 800 Multi Frame Noise Reduction +Choice: 57 1000 Multi Frame Noise Reduction +Choice: 58 1250 Multi Frame Noise Reduction +Choice: 59 1600 Multi Frame Noise Reduction +Choice: 60 2000 Multi Frame Noise Reduction +Choice: 61 2500 Multi Frame Noise Reduction +Choice: 62 3200 Multi Frame Noise Reduction +Choice: 63 4000 Multi Frame Noise Reduction +Choice: 64 5000 Multi Frame Noise Reduction +Choice: 65 6400 Multi Frame Noise Reduction +Choice: 66 8000 Multi Frame Noise Reduction +Choice: 67 10000 Multi Frame Noise Reduction +Choice: 68 12800 Multi Frame Noise Reduction +Choice: 69 16000 Multi Frame Noise Reduction +Choice: 70 25600 Multi Frame Noise Reduction +Choice: 71 51200 Multi Frame Noise Reduction +Choice: 72 36864 Multi Frame Noise Reduction +Choice: 73 8192 Multi Frame Noise Reduction +Choice: 74 16384 Multi Frame Noise Reduction +Choice: 75 65535 Multi Frame Noise Reduction +Choice: 76 100 Multi Frame Noise Reduction +Choice: 77 200 Multi Frame Noise Reduction +Choice: 78 400 Multi Frame Noise Reduction +Choice: 79 800 Multi Frame Noise Reduction +Choice: 80 1600 Multi Frame Noise Reduction +Choice: 81 3200 Multi Frame Noise Reduction +Choice: 82 6400 Multi Frame Noise Reduction +Choice: 83 12800 Multi Frame Noise Reduction +Choice: 84 25600 Multi Frame Noise Reduction +Choice: 85 51200 Multi Frame Noise Reduction +/main/imgsettings/colortemperature +Label: Color Temperature +Type: TEXT +Current: 0 +/main/imgsettings/whitebalance +Label: WhiteBalance +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Shade +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Flash +Choice: 10 Choose Color Temperature +Choice: 11 Preset 1 +Choice: 12 Preset 2 +Choice: 13 Preset 3 +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Type: RADIO +Current: 0.3 +Choice: 0 0 +Choice: 1 5 +Choice: 2 4.7 +Choice: 3 4.5 +Choice: 4 4.3 +Choice: 5 4 +Choice: 6 3.7 +Choice: 7 3.5 +Choice: 8 3.3 +Choice: 9 3 +Choice: 10 2.7 +Choice: 11 2.5 +Choice: 12 2.3 +Choice: 13 2 +Choice: 14 1.7 +Choice: 15 1.5 +Choice: 16 1.3 +Choice: 17 1 +Choice: 18 0.7 +Choice: 19 0.5 +Choice: 20 0.3 +Choice: 21 -0.3 +Choice: 22 -0.5 +Choice: 23 -0.7 +Choice: 24 -1 +Choice: 25 -1.3 +Choice: 26 -1.5 +Choice: 27 -1.7 +Choice: 28 -2 +Choice: 29 -2.3 +Choice: 30 -2.5 +Choice: 31 -2.7 +Choice: 32 -3 +Choice: 33 -3.3 +Choice: 34 -3.5 +Choice: 35 -3.7 +Choice: 36 -4 +Choice: 37 -4.3 +Choice: 38 -4.5 +Choice: 39 -4.7 +Choice: 40 -5 +/main/capturesettings/flashmode +Label: Flash Mode +Type: RADIO +Current: Fill flash +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Rear Curtain Sync +Choice: 7 Wireless Sync +Choice: 8 Unknown value 8031 +Choice: 9 Slow Sync +/main/capturesettings/f-number +Label: F-Number +Type: RANGE +Current: 2.4 +Bottom: 0 +Top: 655.35 +Step: 0.01 +/main/capturesettings/imagequality +Label: Image Quality +Type: RADIO +Current: Extra Fine +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Extra Fine +Choice: 3 RAW +Choice: 4 RAW+JPEG +/main/capturesettings/focusmode +Label: Focus Mode +Type: RADIO +Current: Automatic +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 Automatic Macro +Choice: 3 AF-C +Choice: 4 AF-A +Choice: 5 Unknown value 8008 +Choice: 6 DMF +Choice: 7 Unknown value 8007 +/main/capturesettings/expprogram +Label: Exposure Program +Type: RADIO +Current: P +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Movie +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8054 +Choice: 11 Unknown value 8080 +Choice: 12 Unknown value 8081 +Choice: 13 Unknown value 8082 +Choice: 14 Unknown value 8055 +Choice: 15 Unknown value 8056 +Choice: 16 Unknown value 8057 +Choice: 17 Unknown value 8058 +Choice: 18 Unknown value 8083 +Choice: 19 Unknown value 8059 +Choice: 20 Unknown value 805a +Choice: 21 Unknown value 805b +Choice: 22 Unknown value 805c +Choice: 23 Sweep Panorama +Choice: 24 Portrait +Choice: 25 Sports Action +Choice: 26 Macro +Choice: 27 Landscape +Choice: 28 Sunset +Choice: 29 Night Scene +Choice: 30 Hand-held Twilight +Choice: 31 Night Portrait +Choice: 32 Unknown value 8018 +/main/capturesettings/aspectratio +Label: Aspect Ratio +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +Choice: 1 16:9 +Choice: 2 Unknown value 0003 +Choice: 3 Unknown value 0004 +/main/capturesettings/capturemode +Label: Still Capture Mode +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Selftimer 2s +Choice: 2 Selftimer 5s +Choice: 3 Selftimer 10s +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Type: RADIO +Current: Average +Choice: 0 Center Spot +Choice: 1 Average +Choice: 2 Unknown value 8002 +/main/capturesettings/shutterspeed +Label: Shutter Speed +Type: RADIO +Current: 1/50 +/main/other/5004 +Label: Compression Setting +Type: MENU +Current: 4 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +/main/other/5005 +Label: White Balance +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32786 +Choice: 11 32800 +Choice: 12 32801 +Choice: 13 32802 +/main/other/5007 +Label: F-Number +Type: RANGE +Current: 240 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/500a +Label: Focus Mode +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 32772 +Choice: 4 32773 +Choice: 5 32776 +Choice: 6 32774 +Choice: 7 32775 +/main/other/500b +Label: Exposure Metering Mode +Type: MENU +Current: 1 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +/main/other/500c +Label: Flash Mode +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32772 +Choice: 8 32817 +Choice: 9 32818 +/main/other/500e +Label: Exposure Program Mode +Type: MENU +Current: 2 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32896 +Choice: 12 32897 +Choice: 13 32898 +Choice: 14 32853 +Choice: 15 32854 +Choice: 16 32855 +Choice: 17 32856 +Choice: 18 32899 +Choice: 19 32857 +Choice: 20 32858 +Choice: 21 32859 +Choice: 22 32860 +Choice: 23 32833 +Choice: 24 7 +Choice: 25 32785 +Choice: 26 32789 +Choice: 27 32788 +Choice: 28 32786 +Choice: 29 32787 +Choice: 30 32790 +Choice: 31 32791 +Choice: 32 32792 +/main/other/5010 +Label: Exposure Bias Compensation +Type: MENU +Current: 300 +Choice: 0 0 +Choice: 1 5000 +Choice: 2 4700 +Choice: 3 4500 +Choice: 4 4300 +Choice: 5 4000 +Choice: 6 3700 +Choice: 7 3500 +Choice: 8 3300 +Choice: 9 3000 +Choice: 10 2700 +Choice: 11 2500 +Choice: 12 2300 +Choice: 13 2000 +Choice: 14 1700 +Choice: 15 1500 +Choice: 16 1300 +Choice: 17 1000 +Choice: 18 700 +Choice: 19 500 +Choice: 20 300 +Choice: 21 -300 +Choice: 22 -500 +Choice: 23 -700 +Choice: 24 -1000 +Choice: 25 -1300 +Choice: 26 -1500 +Choice: 27 -1700 +Choice: 28 -2000 +Choice: 29 -2300 +Choice: 30 -2500 +Choice: 31 -2700 +Choice: 32 -3000 +Choice: 33 -3300 +Choice: 34 -3500 +Choice: 35 -3700 +Choice: 36 -4000 +Choice: 37 -4300 +Choice: 38 -4500 +Choice: 39 -4700 +Choice: 40 -5000 +/main/other/5013 +Label: Still Capture Mode +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 32773 +Choice: 2 32771 +Choice: 3 32772 +/main/other/d200 +Label: DOC Compensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 3000 +Choice: 2 2700 +Choice: 3 2500 +Choice: 4 2300 +Choice: 5 2000 +Choice: 6 1700 +Choice: 7 1500 +Choice: 8 1300 +Choice: 9 1000 +Choice: 10 700 +Choice: 11 500 +Choice: 12 300 +Choice: 13 -300 +Choice: 14 -500 +Choice: 15 -700 +Choice: 16 -1000 +Choice: 17 -1300 +Choice: 18 -1500 +Choice: 19 -1700 +Choice: 20 -2000 +Choice: 21 -2300 +Choice: 22 -2500 +Choice: 23 -2700 +Choice: 24 -3000 +/main/other/d201 +Label: DRangeOptimize +Type: MENU +Current: 32 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +/main/other/d203 +Label: Image size +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d20d +Label: Shutter speed +Type: RANGE +Current: 65586 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +/main/other/d20f +Label: Color temperature +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +/main/other/d211 +Label: Aspect Ratio +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +/main/other/d213 +Label: Focus status +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +/main/other/d21e +Label: ISO +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777316 +Choice: 48 16777341 +Choice: 49 16777376 +Choice: 50 16777416 +Choice: 51 16777466 +Choice: 52 16777536 +Choice: 53 16777616 +Choice: 54 16777716 +Choice: 55 16777856 +Choice: 56 16778016 +Choice: 57 16778216 +Choice: 58 16778466 +Choice: 59 16778816 +Choice: 60 16779216 +Choice: 61 16779716 +Choice: 62 16780416 +Choice: 63 16781216 +Choice: 64 16782216 +Choice: 65 16783616 +Choice: 66 16785216 +Choice: 67 16787216 +Choice: 68 16790016 +Choice: 69 16793216 +Choice: 70 16802816 +Choice: 71 16828416 +Choice: 72 16879616 +Choice: 73 16982016 +Choice: 74 17186816 +Choice: 75 50331647 +Choice: 76 33554532 +Choice: 77 33554632 +Choice: 78 33554832 +Choice: 79 33555232 +Choice: 80 33556032 +Choice: 81 33557632 +Choice: 82 33560832 +Choice: 83 33567232 +Choice: 84 33580032 +Choice: 85 33605632 +/main/other/d21b +Label: Picture Effect +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32928 +Choice: 24 32929 +Choice: 25 32930 +Choice: 26 32931 +Choice: 27 32932 +Choice: 28 32933 +Choice: 29 32934 +Choice: 30 32944 +Choice: 31 32960 +Choice: 32 32961 +Choice: 33 32962 +/main/other/d21d +Label: PTP Property 0xd21d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d21f +Label: PTP Property 0xd21f +Type: MENU +Current: 1 +/main/other/d217 +Label: PTP Property 0xd217 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d218 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +Choice: 3 2 +Choice: 4 3 +Choice: 5 4 +Choice: 6 5 +Choice: 7 6 +Choice: 8 7 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 12 +Choice: 14 13 +Choice: 15 14 +Choice: 16 15 +Choice: 17 16 +Choice: 18 17 +Choice: 19 18 +Choice: 20 19 +Choice: 21 20 +Choice: 22 21 +Choice: 23 22 +Choice: 24 23 +Choice: 25 24 +Choice: 26 25 +Choice: 27 26 +Choice: 28 27 +Choice: 29 28 +Choice: 30 29 +Choice: 31 30 +Choice: 32 31 +Choice: 33 32 +Choice: 34 33 +Choice: 35 34 +Choice: 36 35 +Choice: 37 36 +Choice: 38 37 +Choice: 39 38 +Choice: 40 39 +Choice: 41 40 +Choice: 42 41 +Choice: 43 42 +Choice: 44 43 +Choice: 45 44 +Choice: 46 45 +Choice: 47 46 +Choice: 48 47 +Choice: 49 48 +Choice: 50 49 +Choice: 51 50 +Choice: 52 51 +Choice: 53 52 +Choice: 54 53 +Choice: 55 54 +Choice: 56 55 +Choice: 57 56 +Choice: 58 57 +Choice: 59 58 +Choice: 60 59 +Choice: 61 60 +Choice: 62 61 +Choice: 63 62 +Choice: 64 63 +Choice: 65 64 +Choice: 66 65 +Choice: 67 66 +Choice: 68 67 +Choice: 69 68 +Choice: 70 69 +Choice: 71 70 +Choice: 72 71 +Choice: 73 72 +Choice: 74 73 +Choice: 75 74 +Choice: 76 75 +Choice: 77 76 +Choice: 78 77 +Choice: 79 78 +Choice: 80 79 +Choice: 81 80 +Choice: 82 81 +Choice: 83 82 +Choice: 84 83 +Choice: 85 84 +Choice: 86 85 +Choice: 87 86 +Choice: 88 87 +Choice: 89 88 +Choice: 90 89 +Choice: 91 90 +Choice: 92 91 +Choice: 93 92 +Choice: 94 93 +Choice: 95 94 +Choice: 96 95 +Choice: 97 96 +Choice: 98 97 +Choice: 99 98 +Choice: 100 99 +Choice: 101 100 +/main/other/d219 +Label: PTP Property 0xd219 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d212 +Label: PTP Property 0xd212 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +/main/other/d210 +Label: CC Filter +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +/main/other/d21c +Label: AB Filter +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +/main/other/d221 +Label: PTP Property 0xd221 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d214 +Label: PTP Property 0xd214 +Type: RANGE +Current: 3.20532e+07 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +/main/other/d215 +Label: Objects in memory +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c8 +Label: Movie +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d2c7 +Label: Still Image +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Device info: +Manufacturer: Sony Corporation + Model: DSC-RX10M3 + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000011 +Vendor extension version: 100 +Vendor extension description: Sony PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x101b (Get partial object) + 0x9201 (PTP_OC_SONY_SDIOConnect) + 0x9202 (PTP_OC_SONY_GetSDIOGetExtDeviceInfo) + 0x9205 (PTP_OC_SONY_SetControlDeviceA) + 0x9207 (PTP_OC_SONY_SetControlDeviceB) + 0x9209 (PTP_OC_SONY_GetAllDevicePropData) +Events Supported: + 0xc201 + 0xc202 + 0xc203 +Device Properties Supported: + 0x5004 + 0x5005 + 0x5007 + 0x500a + 0x500b + 0x500c + 0x500e + 0x5010 + 0x5013 + 0xd200 + 0xd201 + 0xd203 + 0xd20d + 0xd20e + 0xd20f + 0xd211 + 0xd213 + 0xd21e + 0xd21b + 0xd21d + 0xd21f + 0xd217 + 0xd218 + 0xd219 + 0xd212 + 0xd210 + 0xd21c + 0xd221 + 0xd214 + 0xd215 + 0xd220 + 0xd2c1 + 0xd2c2 + 0xd2c3 + 0xd2c8 + 0xd2c5 + 0xd2c7 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m4.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m4.txt new file mode 100644 index 00000000..9126b486 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m4.txt @@ -0,0 +1,1055 @@ +/main/actions/autofocus +Label: Auto-Focus +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/capture +Label: Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/bulb +Label: Bulb Mode +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/movie +Label: Movie Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: Sony Corporation +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: DSC-RX100M4 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: 1.0 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: Sony PTP Extensions +END +/main/imgsettings/imagesize +Label: Image Size +Readonly: 0 +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +END +/main/imgsettings/iso +Label: ISO Speed +Readonly: 0 +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Auto ISO Multi Frame Noise Reduction +Choice: 43 25 Multi Frame Noise Reduction +Choice: 44 50 Multi Frame Noise Reduction +Choice: 45 64 Multi Frame Noise Reduction +Choice: 46 80 Multi Frame Noise Reduction +Choice: 47 100 Multi Frame Noise Reduction +Choice: 48 125 Multi Frame Noise Reduction +Choice: 49 160 Multi Frame Noise Reduction +Choice: 50 200 Multi Frame Noise Reduction +Choice: 51 250 Multi Frame Noise Reduction +Choice: 52 320 Multi Frame Noise Reduction +Choice: 53 400 Multi Frame Noise Reduction +Choice: 54 500 Multi Frame Noise Reduction +Choice: 55 640 Multi Frame Noise Reduction +Choice: 56 800 Multi Frame Noise Reduction +Choice: 57 1000 Multi Frame Noise Reduction +Choice: 58 1250 Multi Frame Noise Reduction +Choice: 59 1600 Multi Frame Noise Reduction +Choice: 60 2000 Multi Frame Noise Reduction +Choice: 61 2500 Multi Frame Noise Reduction +Choice: 62 3200 Multi Frame Noise Reduction +Choice: 63 4000 Multi Frame Noise Reduction +Choice: 64 5000 Multi Frame Noise Reduction +Choice: 65 6400 Multi Frame Noise Reduction +Choice: 66 8000 Multi Frame Noise Reduction +Choice: 67 10000 Multi Frame Noise Reduction +Choice: 68 12800 Multi Frame Noise Reduction +Choice: 69 16000 Multi Frame Noise Reduction +Choice: 70 25600 Multi Frame Noise Reduction +Choice: 71 51200 Multi Frame Noise Reduction +Choice: 72 36864 Multi Frame Noise Reduction +Choice: 73 8192 Multi Frame Noise Reduction +Choice: 74 16384 Multi Frame Noise Reduction +Choice: 75 65535 Multi Frame Noise Reduction +Choice: 76 100 Multi Frame Noise Reduction +Choice: 77 200 Multi Frame Noise Reduction +Choice: 78 400 Multi Frame Noise Reduction +Choice: 79 800 Multi Frame Noise Reduction +Choice: 80 1600 Multi Frame Noise Reduction +Choice: 81 3200 Multi Frame Noise Reduction +Choice: 82 6400 Multi Frame Noise Reduction +Choice: 83 12800 Multi Frame Noise Reduction +Choice: 84 25600 Multi Frame Noise Reduction +Choice: 85 51200 Multi Frame Noise Reduction +END +/main/imgsettings/colortemperature +Label: Color Temperature +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/imgsettings/whitebalance +Label: WhiteBalance +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Shade +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Flash +Choice: 10 Choose Color Temperature +Choice: 11 Preset 1 +Choice: 12 Preset 2 +Choice: 13 Preset 3 +END +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Readonly: 0 +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 0.001 +Choice: 2 0.002 +Choice: 3 5 +Choice: 4 4.7 +Choice: 5 4.5 +Choice: 6 4.3 +Choice: 7 4 +Choice: 8 3.7 +Choice: 9 3.5 +Choice: 10 3.3 +Choice: 11 3 +Choice: 12 2.7 +Choice: 13 2.5 +Choice: 14 2.3 +Choice: 15 2 +Choice: 16 1.7 +Choice: 17 1.5 +Choice: 18 1.3 +Choice: 19 1 +Choice: 20 0.7 +Choice: 21 0.5 +Choice: 22 0.3 +Choice: 23 -0.3 +Choice: 24 -0.5 +Choice: 25 -0.7 +Choice: 26 -1 +Choice: 27 -1.3 +Choice: 28 -1.5 +Choice: 29 -1.7 +Choice: 30 -2 +Choice: 31 -2.3 +Choice: 32 -2.5 +Choice: 33 -2.7 +Choice: 34 -3 +Choice: 35 -3.3 +Choice: 36 -3.5 +Choice: 37 -3.7 +Choice: 38 -4 +Choice: 39 -4.3 +Choice: 40 -4.5 +Choice: 41 -4.7 +Choice: 42 -5 +END +/main/capturesettings/flashmode +Label: Flash Mode +Readonly: 0 +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Rear Curtain Sync +Choice: 7 Unknown value 8031 +Choice: 8 Slow Sync +Choice: 9 Unknown value 0000 +END +/main/capturesettings/f-number +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 9 +Bottom: 0 +Top: 655.35 +Step: 0.01 +END +/main/capturesettings/imagequality +Label: Image Quality +Readonly: 0 +Type: RADIO +Current: Extra Fine +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Extra Fine +Choice: 3 RAW +Choice: 4 RAW+JPEG +END +/main/capturesettings/focusmode +Label: Focus Mode +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 DMF +END +/main/capturesettings/expprogram +Label: Exposure Program +Readonly: 0 +Type: RADIO +Current: A +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Movie +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8054 +Choice: 11 Unknown value 8080 +Choice: 12 Unknown value 8081 +Choice: 13 Unknown value 8082 +Choice: 14 Unknown value 8083 +Choice: 15 Sweep Panorama +Choice: 16 Portrait +Choice: 17 Sports Action +Choice: 18 Macro +Choice: 19 Landscape +Choice: 20 Sunset +Choice: 21 Night Scene +Choice: 22 Hand-held Twilight +Choice: 23 Night Portrait +Choice: 24 Unknown value 8018 +Choice: 25 Unknown value 8019 +Choice: 26 Unknown value 801a +Choice: 27 Unknown value 801b +Choice: 28 Unknown value 801c +END +/main/capturesettings/aspectratio +Label: Aspect Ratio +Readonly: 0 +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +Choice: 1 16:9 +Choice: 2 Unknown value 0003 +Choice: 3 Unknown value 0004 +END +/main/capturesettings/capturemode +Label: Still Capture Mode +Readonly: 0 +Type: RADIO +Current: Selftimer 2s +Choice: 0 Single Shot +Choice: 1 Selftimer 2s +Choice: 2 Selftimer 5s +Choice: 3 Selftimer 10s +END +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Readonly: 0 +Type: RADIO +Current: Center Spot +Choice: 0 Center Spot +Choice: 1 Average +Choice: 2 Unknown value 8002 +END +/main/capturesettings/shutterspeed +Label: Shutter Speed +Readonly: 0 +Type: RADIO +Current: 1/13 +Choice: 0 30 +Choice: 1 25 +Choice: 2 20 +Choice: 3 15 +Choice: 4 13 +Choice: 5 10 +Choice: 6 8 +Choice: 7 6 +Choice: 8 5 +Choice: 9 4 +Choice: 10 32/10 +Choice: 11 25/10 +Choice: 12 2 +Choice: 13 16/10 +Choice: 14 13/10 +Choice: 15 1 +Choice: 16 8/10 +Choice: 17 6/10 +Choice: 18 5/10 +Choice: 19 4/10 +Choice: 20 1/3 +Choice: 21 1/4 +Choice: 22 1/5 +Choice: 23 1/6 +Choice: 24 1/8 +Choice: 25 1/10 +Choice: 26 1/13 +Choice: 27 1/15 +Choice: 28 1/20 +Choice: 29 1/25 +Choice: 30 1/30 +Choice: 31 1/40 +Choice: 32 1/50 +Choice: 33 1/60 +Choice: 34 1/80 +Choice: 35 1/100 +Choice: 36 1/125 +Choice: 37 1/160 +Choice: 38 1/200 +Choice: 39 1/250 +Choice: 40 1/320 +Choice: 41 1/400 +Choice: 42 1/500 +Choice: 43 1/640 +Choice: 44 1/800 +Choice: 45 1/1000 +Choice: 46 1/1250 +Choice: 47 1/1600 +Choice: 48 1/2000 +Choice: 49 1/2500 +Choice: 50 1/3200 +Choice: 51 1/4000 +Choice: 52 Bulb +END +/main/other/5004 +Label: Compression Setting +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +END +/main/other/5005 +Label: White Balance +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32786 +Choice: 11 32800 +Choice: 12 32801 +Choice: 13 32802 +END +/main/other/5007 +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 900 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/500a +Label: Focus Mode +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32774 +END +/main/other/500b +Label: Exposure Metering Mode +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +END +/main/other/500c +Label: Flash Mode +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32817 +Choice: 8 32818 +END +/main/other/500e +Label: Exposure Program Mode +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32896 +Choice: 12 32897 +Choice: 13 32898 +Choice: 14 32899 +Choice: 15 32833 +Choice: 16 7 +Choice: 17 32785 +Choice: 18 32789 +Choice: 19 32788 +Choice: 20 32786 +Choice: 21 32787 +Choice: 22 32790 +Choice: 23 32791 +Choice: 24 32792 +Choice: 25 32793 +Choice: 26 32794 +Choice: 27 32795 +Choice: 28 32796 +END +/main/other/5010 +Label: Exposure Bias Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 5000 +Choice: 4 4700 +Choice: 5 4500 +Choice: 6 4300 +Choice: 7 4000 +Choice: 8 3700 +Choice: 9 3500 +Choice: 10 3300 +Choice: 11 3000 +Choice: 12 2700 +Choice: 13 2500 +Choice: 14 2300 +Choice: 15 2000 +Choice: 16 1700 +Choice: 17 1500 +Choice: 18 1300 +Choice: 19 1000 +Choice: 20 700 +Choice: 21 500 +Choice: 22 300 +Choice: 23 -300 +Choice: 24 -500 +Choice: 25 -700 +Choice: 26 -1000 +Choice: 27 -1300 +Choice: 28 -1500 +Choice: 29 -1700 +Choice: 30 -2000 +Choice: 31 -2300 +Choice: 32 -2500 +Choice: 33 -2700 +Choice: 34 -3000 +Choice: 35 -3300 +Choice: 36 -3500 +Choice: 37 -3700 +Choice: 38 -4000 +Choice: 39 -4300 +Choice: 40 -4500 +Choice: 41 -4700 +Choice: 42 -5000 +END +/main/other/5013 +Label: Still Capture Mode +Readonly: 0 +Type: MENU +Current: 32773 +Choice: 0 1 +Choice: 1 32773 +Choice: 2 32771 +Choice: 3 32772 +END +/main/other/d200 +Label: DOC Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3000 +Choice: 4 2700 +Choice: 5 2500 +Choice: 6 2300 +Choice: 7 2000 +Choice: 8 1700 +Choice: 9 1500 +Choice: 10 1300 +Choice: 11 1000 +Choice: 12 700 +Choice: 13 500 +Choice: 14 300 +Choice: 15 -300 +Choice: 16 -500 +Choice: 17 -700 +Choice: 18 -1000 +Choice: 19 -1300 +Choice: 20 -1500 +Choice: 21 -1700 +Choice: 22 -2000 +Choice: 23 -2300 +Choice: 24 -2500 +Choice: 25 -2700 +Choice: 26 -3000 +END +/main/other/d201 +Label: DRangeOptimize +Readonly: 0 +Type: MENU +Current: 32 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +END +/main/other/d203 +Label: Image size +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d20d +Label: Shutter speed +Readonly: 0 +Type: RANGE +Current: 65549 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d20e +Label: PTP Property 0xd20e +Readonly: 0 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +END +/main/other/d20f +Label: Color temperature +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +END +/main/other/d210 +Label: CC Filter +Readonly: 0 +Type: MENU +Current: 128 +Choice: 0 121 +Choice: 1 122 +Choice: 2 123 +Choice: 3 124 +Choice: 4 125 +Choice: 5 126 +Choice: 6 127 +Choice: 7 128 +Choice: 8 129 +Choice: 9 130 +Choice: 10 131 +Choice: 11 132 +Choice: 12 133 +Choice: 13 134 +Choice: 14 135 +END +/main/other/d21c +Label: AB Filter +Readonly: 0 +Type: MENU +Current: 128 +Choice: 0 121 +Choice: 1 122 +Choice: 2 123 +Choice: 3 124 +Choice: 4 125 +Choice: 5 126 +Choice: 6 127 +Choice: 7 128 +Choice: 8 129 +Choice: 9 130 +Choice: 10 131 +Choice: 11 132 +Choice: 12 133 +Choice: 13 134 +Choice: 14 135 +END +/main/other/d211 +Label: Aspect Ratio +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/d213 +Label: Focus status +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +END +/main/other/d21e +Label: ISO +Readonly: 0 +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777316 +Choice: 48 16777341 +Choice: 49 16777376 +Choice: 50 16777416 +Choice: 51 16777466 +Choice: 52 16777536 +Choice: 53 16777616 +Choice: 54 16777716 +Choice: 55 16777856 +Choice: 56 16778016 +Choice: 57 16778216 +Choice: 58 16778466 +Choice: 59 16778816 +Choice: 60 16779216 +Choice: 61 16779716 +Choice: 62 16780416 +Choice: 63 16781216 +Choice: 64 16782216 +Choice: 65 16783616 +Choice: 66 16785216 +Choice: 67 16787216 +Choice: 68 16790016 +Choice: 69 16793216 +Choice: 70 16802816 +Choice: 71 16828416 +Choice: 72 16879616 +Choice: 73 16982016 +Choice: 74 17186816 +Choice: 75 50331647 +Choice: 76 33554532 +Choice: 77 33554632 +Choice: 78 33554832 +Choice: 79 33555232 +Choice: 80 33556032 +Choice: 81 33557632 +Choice: 82 33560832 +Choice: 83 33567232 +Choice: 84 33580032 +Choice: 85 33605632 +END +/main/other/d21b +Label: Picture Effect +Readonly: 0 +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32928 +Choice: 24 32929 +Choice: 25 32930 +Choice: 26 32931 +Choice: 27 32932 +Choice: 28 32933 +Choice: 29 32934 +Choice: 30 32944 +Choice: 31 32960 +Choice: 32 32961 +Choice: 33 32962 +END +/main/other/d21d +Label: PTP Property 0xd21d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d21f +Label: PTP Property 0xd21f +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d217 +Label: PTP Property 0xd217 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d219 +Label: PTP Property 0xd219 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d212 +Label: PTP Property 0xd212 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +END +/main/other/d221 +Label: PTP Property 0xd221 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d214 +Label: PTP Property 0xd214 +Readonly: 0 +Type: RANGE +Current: 3.20532e+07 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d215 +Label: Objects in memory +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c8 +Label: Movie +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c7 +Label: Still Image +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-RX100M4 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), ARW + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture + +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19] value: RAW (4) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32786,32800,32801,32802] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/9 (900) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,32772,32773,32774] value: Automatic (2) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: Center-spot (4) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32817,32818] value: Undefined (0) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32896,32897,32898,32899,32833,7,32785,32789,32788,32786,32787,32790,32791,32792,32793,32794,32795,32796] value: A (3) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,1,2,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,32773,32771,32772] value: 32773 +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,1,2,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 32 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65551 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15] value: 15 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 1 +Focus status(0xd213):(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632] value: 16777215 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768,32769,32770,32771,32772,32773,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32880,32881,32882,32896,32897,32898,32912,32928,32929,32930,32931,32932,32933,32934,32944,32960,32961,32962] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd21f:(readwrite) (type=0x2) Enumeration [] value: 1 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 32053248 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m5.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m5.txt new file mode 100644 index 00000000..7e2e8614 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m5.txt @@ -0,0 +1,1121 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-RX100M5 + Version: 2.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), ARW + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture + +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19] value: JPEG Fine (2) +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32816,32786,32800,32801,32802] value: Daylight (4) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/5.6 (560) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,32772,32773,32774] value: Automatic (2) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: Center-spot (4) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32817,32818] value: Flash off (2) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32896,32897,32898,32853,32854,32855,32856,32899,32857,32858,32859,32860,32833,7,32785,32789,32788,32786,32787,32790,32791,32792,32793,32794,32795,32796] value: M (1) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32789,32786,32773,32771,32772,32776,32777,32780,32781,32782,32783,33591,34103,35127,33655,34167,35191,33553,34065,35089,33569,34081,33585,34097,33590,34102,35126,33654,34166,35190,33552,34064,35088,33568,34080,33584,34096,32792,32808,32793,32809] value: Power Wind (2) +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 1 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 67536 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15] value: 7 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 1 +Focus status(0xd213):(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632] value: 1600 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768,32769,32770,32771,32772,32773,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32880,32881,32882,32896,32897,32898,32912,32928,32929,32930,32931,32932,32933,32934,32944,32960,32961,32962] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd21f:(readwrite) (type=0x2) Enumeration [] value: 1 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 32053248 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 + +/main/actions/autofocus +Label: Auto-Focus +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/capture +Label: Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/bulb +Label: Bulb Mode +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/movie +Label: Movie Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: Sony Corporation +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: DSC-RX100M5 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: 2.0 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: Sony PTP Extensions +END +/main/imgsettings/imagesize +Label: Image Size +Readonly: 0 +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +END +/main/imgsettings/iso +Label: ISO Speed +Readonly: 0 +Type: RADIO +Current: 1600 +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Auto ISO Multi Frame Noise Reduction +Choice: 43 25 Multi Frame Noise Reduction +Choice: 44 50 Multi Frame Noise Reduction +Choice: 45 64 Multi Frame Noise Reduction +Choice: 46 80 Multi Frame Noise Reduction +Choice: 47 100 Multi Frame Noise Reduction +Choice: 48 125 Multi Frame Noise Reduction +Choice: 49 160 Multi Frame Noise Reduction +Choice: 50 200 Multi Frame Noise Reduction +Choice: 51 250 Multi Frame Noise Reduction +Choice: 52 320 Multi Frame Noise Reduction +Choice: 53 400 Multi Frame Noise Reduction +Choice: 54 500 Multi Frame Noise Reduction +Choice: 55 640 Multi Frame Noise Reduction +Choice: 56 800 Multi Frame Noise Reduction +Choice: 57 1000 Multi Frame Noise Reduction +Choice: 58 1250 Multi Frame Noise Reduction +Choice: 59 1600 Multi Frame Noise Reduction +Choice: 60 2000 Multi Frame Noise Reduction +Choice: 61 2500 Multi Frame Noise Reduction +Choice: 62 3200 Multi Frame Noise Reduction +Choice: 63 4000 Multi Frame Noise Reduction +Choice: 64 5000 Multi Frame Noise Reduction +Choice: 65 6400 Multi Frame Noise Reduction +Choice: 66 8000 Multi Frame Noise Reduction +Choice: 67 10000 Multi Frame Noise Reduction +Choice: 68 12800 Multi Frame Noise Reduction +Choice: 69 16000 Multi Frame Noise Reduction +Choice: 70 25600 Multi Frame Noise Reduction +Choice: 71 51200 Multi Frame Noise Reduction +Choice: 72 36864 Multi Frame Noise Reduction +Choice: 73 8192 Multi Frame Noise Reduction +Choice: 74 16384 Multi Frame Noise Reduction +Choice: 75 65535 Multi Frame Noise Reduction +Choice: 76 100 Multi Frame Noise Reduction +Choice: 77 200 Multi Frame Noise Reduction +Choice: 78 400 Multi Frame Noise Reduction +Choice: 79 800 Multi Frame Noise Reduction +Choice: 80 1600 Multi Frame Noise Reduction +Choice: 81 3200 Multi Frame Noise Reduction +Choice: 82 6400 Multi Frame Noise Reduction +Choice: 83 12800 Multi Frame Noise Reduction +Choice: 84 25600 Multi Frame Noise Reduction +Choice: 85 51200 Multi Frame Noise Reduction +END +/main/imgsettings/colortemperature +Label: Color Temperature +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/imgsettings/whitebalance +Label: WhiteBalance +Readonly: 0 +Type: RADIO +Current: Daylight +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Shade +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Flash +Choice: 10 Underwater: Auto +Choice: 11 Choose Color Temperature +Choice: 12 Preset 1 +Choice: 13 Preset 2 +Choice: 14 Preset 3 +END +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Readonly: 0 +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 5 +Choice: 2 4.7 +Choice: 3 4.5 +Choice: 4 4.3 +Choice: 5 4 +Choice: 6 3.7 +Choice: 7 3.5 +Choice: 8 3.3 +Choice: 9 3 +Choice: 10 2.7 +Choice: 11 2.5 +Choice: 12 2.3 +Choice: 13 2 +Choice: 14 1.7 +Choice: 15 1.5 +Choice: 16 1.3 +Choice: 17 1 +Choice: 18 0.7 +Choice: 19 0.5 +Choice: 20 0.3 +Choice: 21 -0.3 +Choice: 22 -0.5 +Choice: 23 -0.7 +Choice: 24 -1 +Choice: 25 -1.3 +Choice: 26 -1.5 +Choice: 27 -1.7 +Choice: 28 -2 +Choice: 29 -2.3 +Choice: 30 -2.5 +Choice: 31 -2.7 +Choice: 32 -3 +Choice: 33 -3.3 +Choice: 34 -3.5 +Choice: 35 -3.7 +Choice: 36 -4 +Choice: 37 -4.3 +Choice: 38 -4.5 +Choice: 39 -4.7 +Choice: 40 -5 +END +/main/capturesettings/flashmode +Label: Flash Mode +Readonly: 0 +Type: RADIO +Current: Flash off +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Rear Curtain Sync +Choice: 7 Unknown value 8031 +Choice: 8 Slow Sync +END +/main/capturesettings/f-number +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 5.6 +Bottom: 0 +Top: 655.35 +Step: 0.01 +END +/main/capturesettings/imagequality +Label: Image Quality +Readonly: 0 +Type: RADIO +Current: Standard +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Extra Fine +Choice: 3 RAW +Choice: 4 RAW+JPEG +END +/main/capturesettings/focusmode +Label: Focus Mode +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 DMF +END +/main/capturesettings/expprogram +Label: Exposure Program +Readonly: 0 +Type: RADIO +Current: M +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Movie +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8054 +Choice: 11 Unknown value 8080 +Choice: 12 Unknown value 8081 +Choice: 13 Unknown value 8082 +Choice: 14 Unknown value 8055 +Choice: 15 Unknown value 8056 +Choice: 16 Unknown value 8057 +Choice: 17 Unknown value 8058 +Choice: 18 Unknown value 8083 +Choice: 19 Unknown value 8059 +Choice: 20 Unknown value 805a +Choice: 21 Unknown value 805b +Choice: 22 Unknown value 805c +Choice: 23 Sweep Panorama +Choice: 24 Portrait +Choice: 25 Sports Action +Choice: 26 Macro +Choice: 27 Landscape +Choice: 28 Sunset +Choice: 29 Night Scene +Choice: 30 Hand-held Twilight +Choice: 31 Night Portrait +Choice: 32 Unknown value 8018 +Choice: 33 Unknown value 8019 +Choice: 34 Unknown value 801a +Choice: 35 Unknown value 801b +Choice: 36 Unknown value 801c +END +/main/capturesettings/aspectratio +Label: Aspect Ratio +Readonly: 0 +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +Choice: 1 16:9 +Choice: 2 Unknown value 0003 +Choice: 3 Unknown value 0004 +END +/main/capturesettings/capturemode +Label: Still Capture Mode +Readonly: 0 +Type: RADIO +Current: Burst +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Unknown value 8015 +Choice: 3 Continuous Low Speed +Choice: 4 Selftimer 2s +Choice: 5 Selftimer 5s +Choice: 6 Selftimer 10s +Choice: 7 Selftimer 10s 3 Pictures +Choice: 8 Selftimer 10s 5 Pictures +Choice: 9 Selftimer 5s 3 Pictures +Choice: 10 Selftimer 5s 5 Pictures +Choice: 11 Selftimer 2s 3 Pictures +Choice: 12 Selftimer 2s 5 Pictures +Choice: 13 Bracketing C 0.3 Steps 3 Pictures +Choice: 14 Bracketing C 0.3 Steps 5 Pictures +Choice: 15 Bracketing C 0.3 Steps 9 Pictures +Choice: 16 Bracketing C 0.7 Steps 3 Pictures +Choice: 17 Bracketing C 0.7 Steps 5 Pictures +Choice: 18 Bracketing C 0.7 Steps 9 Pictures +Choice: 19 Bracketing C 1.0 Steps 3 Pictures +Choice: 20 Bracketing C 1.0 Steps 5 Pictures +Choice: 21 Bracketing C 1.0 Steps 9 Pictures +Choice: 22 Bracketing C 2.0 Steps 3 Pictures +Choice: 23 Bracketing C 2.0 Steps 5 Pictures +Choice: 24 Bracketing C 3.0 Steps 3 Pictures +Choice: 25 Bracketing C 3.0 Steps 5 Pictures +Choice: 26 Bracketing S 0.3 Steps 3 Pictures +Choice: 27 Bracketing S 0.3 Steps 5 Pictures +Choice: 28 Bracketing S 0.3 Steps 9 Pictures +Choice: 29 Bracketing S 0.7 Steps 3 Pictures +Choice: 30 Bracketing S 0.7 Steps 5 Pictures +Choice: 31 Bracketing S 0.7 Steps 9 Pictures +Choice: 32 Bracketing S 1.0 Steps 3 Pictures +Choice: 33 Bracketing S 1.0 Steps 5 Pictures +Choice: 34 Bracketing S 1.0 Steps 9 Pictures +Choice: 35 Bracketing S 2.0 Steps 3 Pictures +Choice: 36 Bracketing S 2.0 Steps 5 Pictures +Choice: 37 Bracketing S 3.0 Steps 3 Pictures +Choice: 38 Bracketing S 3.0 Steps 5 Pictures +Choice: 39 Bracketing WB Lo +Choice: 40 Bracketing WB Hi +Choice: 41 Bracketing DRO Lo +Choice: 42 Bracketing DRO Hi +END +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Readonly: 0 +Type: RADIO +Current: Center Spot +Choice: 0 Center Spot +Choice: 1 Average +Choice: 2 Unknown value 8002 +END +/main/capturesettings/shutterspeed +Label: Shutter Speed +Readonly: 0 +Type: RADIO +Current: 1/2000 +END +/main/other/5004 +Label: Compression Setting +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +END +/main/other/5005 +Label: White Balance +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32816 +Choice: 11 32786 +Choice: 12 32800 +Choice: 13 32801 +Choice: 14 32802 +END +/main/other/5007 +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 560 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/500a +Label: Focus Mode +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32774 +END +/main/other/500b +Label: Exposure Metering Mode +Readonly: 0 +Type: MENU +Current: 4 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +END +/main/other/500c +Label: Flash Mode +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32817 +Choice: 8 32818 +END +/main/other/500e +Label: Exposure Program Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32896 +Choice: 12 32897 +Choice: 13 32898 +Choice: 14 32853 +Choice: 15 32854 +Choice: 16 32855 +Choice: 17 32856 +Choice: 18 32899 +Choice: 19 32857 +Choice: 20 32858 +Choice: 21 32859 +Choice: 22 32860 +Choice: 23 32833 +Choice: 24 7 +Choice: 25 32785 +Choice: 26 32789 +Choice: 27 32788 +Choice: 28 32786 +Choice: 29 32787 +Choice: 30 32790 +Choice: 31 32791 +Choice: 32 32792 +Choice: 33 32793 +Choice: 34 32794 +Choice: 35 32795 +Choice: 36 32796 +END +/main/other/5010 +Label: Exposure Bias Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 5000 +Choice: 2 4700 +Choice: 3 4500 +Choice: 4 4300 +Choice: 5 4000 +Choice: 6 3700 +Choice: 7 3500 +Choice: 8 3300 +Choice: 9 3000 +Choice: 10 2700 +Choice: 11 2500 +Choice: 12 2300 +Choice: 13 2000 +Choice: 14 1700 +Choice: 15 1500 +Choice: 16 1300 +Choice: 17 1000 +Choice: 18 700 +Choice: 19 500 +Choice: 20 300 +Choice: 21 -300 +Choice: 22 -500 +Choice: 23 -700 +Choice: 24 -1000 +Choice: 25 -1300 +Choice: 26 -1500 +Choice: 27 -1700 +Choice: 28 -2000 +Choice: 29 -2300 +Choice: 30 -2500 +Choice: 31 -2700 +Choice: 32 -3000 +Choice: 33 -3300 +Choice: 34 -3500 +Choice: 35 -3700 +Choice: 36 -4000 +Choice: 37 -4300 +Choice: 38 -4500 +Choice: 39 -4700 +Choice: 40 -5000 +END +/main/other/5013 +Label: Still Capture Mode +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32789 +Choice: 3 32786 +Choice: 4 32773 +Choice: 5 32771 +Choice: 6 32772 +Choice: 7 32776 +Choice: 8 32777 +Choice: 9 32780 +Choice: 10 32781 +Choice: 11 32782 +Choice: 12 32783 +Choice: 13 33591 +Choice: 14 34103 +Choice: 15 35127 +Choice: 16 33655 +Choice: 17 34167 +Choice: 18 35191 +Choice: 19 33553 +Choice: 20 34065 +Choice: 21 35089 +Choice: 22 33569 +Choice: 23 34081 +Choice: 24 33585 +Choice: 25 34097 +Choice: 26 33590 +Choice: 27 34102 +Choice: 28 35126 +Choice: 29 33654 +Choice: 30 34166 +Choice: 31 35190 +Choice: 32 33552 +Choice: 33 34064 +Choice: 34 35088 +Choice: 35 33568 +Choice: 36 34080 +Choice: 37 33584 +Choice: 38 34096 +Choice: 39 32792 +Choice: 40 32808 +Choice: 41 32793 +Choice: 42 32809 +END +/main/other/d200 +Label: DOC Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 3000 +Choice: 2 2700 +Choice: 3 2500 +Choice: 4 2300 +Choice: 5 2000 +Choice: 6 1700 +Choice: 7 1500 +Choice: 8 1300 +Choice: 9 1000 +Choice: 10 700 +Choice: 11 500 +Choice: 12 300 +Choice: 13 -300 +Choice: 14 -500 +Choice: 15 -700 +Choice: 16 -1000 +Choice: 17 -1300 +Choice: 18 -1500 +Choice: 19 -1700 +Choice: 20 -2000 +Choice: 21 -2300 +Choice: 22 -2500 +Choice: 23 -2700 +Choice: 24 -3000 +END +/main/other/d201 +Label: DRangeOptimize +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +END +/main/other/d203 +Label: Image size +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d20d +Label: Shutter speed +Readonly: 0 +Type: RANGE +Current: 67536 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d20e +Label: PTP Property 0xd20e +Readonly: 0 +Type: MENU +Current: 7 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +END +/main/other/d20f +Label: Color temperature +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +END +/main/other/d211 +Label: Aspect Ratio +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/d213 +Label: Focus status +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +END +/main/other/d21e +Label: ISO +Readonly: 0 +Type: MENU +Current: 1600 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777316 +Choice: 48 16777341 +Choice: 49 16777376 +Choice: 50 16777416 +Choice: 51 16777466 +Choice: 52 16777536 +Choice: 53 16777616 +Choice: 54 16777716 +Choice: 55 16777856 +Choice: 56 16778016 +Choice: 57 16778216 +Choice: 58 16778466 +Choice: 59 16778816 +Choice: 60 16779216 +Choice: 61 16779716 +Choice: 62 16780416 +Choice: 63 16781216 +Choice: 64 16782216 +Choice: 65 16783616 +Choice: 66 16785216 +Choice: 67 16787216 +Choice: 68 16790016 +Choice: 69 16793216 +Choice: 70 16802816 +Choice: 71 16828416 +Choice: 72 16879616 +Choice: 73 16982016 +Choice: 74 17186816 +Choice: 75 50331647 +Choice: 76 33554532 +Choice: 77 33554632 +Choice: 78 33554832 +Choice: 79 33555232 +Choice: 80 33556032 +Choice: 81 33557632 +Choice: 82 33560832 +Choice: 83 33567232 +Choice: 84 33580032 +Choice: 85 33605632 +END +/main/other/d21b +Label: Picture Effect +Readonly: 0 +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32928 +Choice: 24 32929 +Choice: 25 32930 +Choice: 26 32931 +Choice: 27 32932 +Choice: 28 32933 +Choice: 29 32934 +Choice: 30 32944 +Choice: 31 32960 +Choice: 32 32961 +Choice: 33 32962 +END +/main/other/d21d +Label: PTP Property 0xd21d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d21f +Label: PTP Property 0xd21f +Readonly: 0 +Type: MENU +Current: 1 +END +/main/other/d217 +Label: PTP Property 0xd217 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d219 +Label: PTP Property 0xd219 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d212 +Label: PTP Property 0xd212 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +END +/main/other/d210 +Label: CC Filter +Readonly: 0 +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +END +/main/other/d21c +Label: AB Filter +Readonly: 0 +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +END +/main/other/d221 +Label: PTP Property 0xd221 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d214 +Label: PTP Property 0xd214 +Readonly: 0 +Type: RANGE +Current: 3.20532e+07 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d215 +Label: Objects in memory +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c8 +Label: Movie +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c7 +Label: Still Image +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m5a.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m5a.txt new file mode 100644 index 00000000..d8516a40 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m5a.txt @@ -0,0 +1,1228 @@ + +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-RX100M5A + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), ARW + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture + +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19,20,18] value: 3 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32816,32786,32800,32801,32802] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/1.8 (180) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,32772,32773,32774,32777] value: 32773 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [32769,32770,32772,32773,32771,32774] value: 32769 +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32817,32818,32833,32834] value: Fill flash (3) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32896,32897,32898,32899,32833,7,32785,32789,32788,32786,32787,32790,32791,32792,32793,32794,32795,32796] value: M (1) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32789,32786,32773,32771,32772,32776,32777,32780,32781,32782,32783,33591,34103,35127,33655,34167,35191,33553,34065,35089,33569,34081,33585,34097,33590,34102,35126,33654,34166,35190,33552,34064,35088,33568,34080,33584,34096,32792,32808,32793,32809] value: Single Shot (1) +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 31 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65786 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15,16] value: 7 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 1 +Focus status(0xd213):(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777341,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632,33656832,33759232,33964032] value: 16777215 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768,32769,32770,32771,32772,32773,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32880,32881,32882,32896,32897,32898,32912,32928,32929,32930,32931,32932,32933,32934,32944,32960,32961,32962] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd222:(readwrite) (type=0x4) Enumeration [1,17] value: 1 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 32053248 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cb:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cc:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cd:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2ce:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cf:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d0:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d4:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d1:(readwrite) (type=0x3) Range [-7 - 7, step 1] value: 0 + +/main/actions/autofocus +Label: Auto-Focus +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/capture +Label: Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/bulb +Label: Bulb Mode +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/movie +Label: Movie Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: Sony Corporation +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: DSC-RX100M5A +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: 1.0 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: Sony PTP Extensions +END +/main/imgsettings/imagesize +Label: Image Size +Readonly: 0 +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +END +/main/imgsettings/iso +Label: ISO Speed +Readonly: 0 +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Auto ISO Multi Frame Noise Reduction +Choice: 43 25 Multi Frame Noise Reduction +Choice: 44 50 Multi Frame Noise Reduction +Choice: 45 64 Multi Frame Noise Reduction +Choice: 46 80 Multi Frame Noise Reduction +Choice: 47 125 Multi Frame Noise Reduction +Choice: 48 200 Multi Frame Noise Reduction +Choice: 49 250 Multi Frame Noise Reduction +Choice: 50 320 Multi Frame Noise Reduction +Choice: 51 400 Multi Frame Noise Reduction +Choice: 52 500 Multi Frame Noise Reduction +Choice: 53 640 Multi Frame Noise Reduction +Choice: 54 800 Multi Frame Noise Reduction +Choice: 55 1000 Multi Frame Noise Reduction +Choice: 56 1250 Multi Frame Noise Reduction +Choice: 57 1600 Multi Frame Noise Reduction +Choice: 58 2000 Multi Frame Noise Reduction +Choice: 59 2500 Multi Frame Noise Reduction +Choice: 60 3200 Multi Frame Noise Reduction +Choice: 61 4000 Multi Frame Noise Reduction +Choice: 62 5000 Multi Frame Noise Reduction +Choice: 63 6400 Multi Frame Noise Reduction +Choice: 64 8000 Multi Frame Noise Reduction +Choice: 65 10000 Multi Frame Noise Reduction +Choice: 66 12800 Multi Frame Noise Reduction +Choice: 67 16000 Multi Frame Noise Reduction +Choice: 68 25600 Multi Frame Noise Reduction +Choice: 69 51200 Multi Frame Noise Reduction +Choice: 70 36864 Multi Frame Noise Reduction +Choice: 71 8192 Multi Frame Noise Reduction +Choice: 72 16384 Multi Frame Noise Reduction +Choice: 73 65535 Multi Frame Noise Reduction +Choice: 74 100 Multi Frame Noise Reduction +Choice: 75 200 Multi Frame Noise Reduction +Choice: 76 400 Multi Frame Noise Reduction +Choice: 77 800 Multi Frame Noise Reduction +Choice: 78 1600 Multi Frame Noise Reduction +Choice: 79 3200 Multi Frame Noise Reduction +Choice: 80 6400 Multi Frame Noise Reduction +Choice: 81 12800 Multi Frame Noise Reduction +Choice: 82 25600 Multi Frame Noise Reduction +Choice: 83 51200 Multi Frame Noise Reduction +Choice: 84 36864 Multi Frame Noise Reduction +Choice: 85 8192 Multi Frame Noise Reduction +Choice: 86 16384 Multi Frame Noise Reduction +END +/main/imgsettings/colortemperature +Label: Color Temperature +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/imgsettings/whitebalance +Label: WhiteBalance +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Shade +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Flash +Choice: 10 Underwater: Auto +Choice: 11 Choose Color Temperature +Choice: 12 Preset 1 +Choice: 13 Preset 2 +Choice: 14 Preset 3 +END +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Readonly: 0 +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 5 +Choice: 2 4.7 +Choice: 3 4.5 +Choice: 4 4.3 +Choice: 5 4 +Choice: 6 3.7 +Choice: 7 3.5 +Choice: 8 3.3 +Choice: 9 3 +Choice: 10 2.7 +Choice: 11 2.5 +Choice: 12 2.3 +Choice: 13 2 +Choice: 14 1.7 +Choice: 15 1.5 +Choice: 16 1.3 +Choice: 17 1 +Choice: 18 0.7 +Choice: 19 0.5 +Choice: 20 0.3 +Choice: 21 -0.3 +Choice: 22 -0.5 +Choice: 23 -0.7 +Choice: 24 -1 +Choice: 25 -1.3 +Choice: 26 -1.5 +Choice: 27 -1.7 +Choice: 28 -2 +Choice: 29 -2.3 +Choice: 30 -2.5 +Choice: 31 -2.7 +Choice: 32 -3 +Choice: 33 -3.3 +Choice: 34 -3.5 +Choice: 35 -3.7 +Choice: 36 -4 +Choice: 37 -4.3 +Choice: 38 -4.5 +Choice: 39 -4.7 +Choice: 40 -5 +END +/main/capturesettings/flashmode +Label: Flash Mode +Readonly: 0 +Type: RADIO +Current: Fill flash +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Rear Curtain Sync +Choice: 7 Unknown value 8031 +Choice: 8 Slow Sync +Choice: 9 Unknown value 8041 +Choice: 10 Unknown value 8042 +END +/main/capturesettings/f-number +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 1.8 +Bottom: 0 +Top: 655.35 +Step: 0.01 +END +/main/capturesettings/imagequality +Label: Image Quality +Readonly: 0 +Type: RADIO +Current: Fine +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Extra Fine +Choice: 3 RAW +Choice: 4 RAW+JPEG +Choice: 5 Unknown value 0014 +Choice: 6 Unknown value 0012 +END +/main/capturesettings/focusmode +Label: Focus Mode +Readonly: 0 +Type: RADIO +Current: AF-A +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 DMF +Choice: 5 Unknown value 8009 +END +/main/capturesettings/expprogram +Label: Exposure Program +Readonly: 0 +Type: RADIO +Current: M +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Movie +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8080 +Choice: 11 Unknown value 8081 +Choice: 12 Unknown value 8082 +Choice: 13 Unknown value 8083 +Choice: 14 Sweep Panorama +Choice: 15 Portrait +Choice: 16 Sports Action +Choice: 17 Macro +Choice: 18 Landscape +Choice: 19 Sunset +Choice: 20 Night Scene +Choice: 21 Hand-held Twilight +Choice: 22 Night Portrait +Choice: 23 Unknown value 8018 +Choice: 24 Unknown value 8019 +Choice: 25 Unknown value 801a +Choice: 26 Unknown value 801b +Choice: 27 Unknown value 801c +END +/main/capturesettings/aspectratio +Label: Aspect Ratio +Readonly: 0 +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +Choice: 1 16:9 +Choice: 2 Unknown value 0003 +Choice: 3 Unknown value 0004 +END +/main/capturesettings/capturemode +Label: Still Capture Mode +Readonly: 0 +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Unknown value 8015 +Choice: 3 Continuous Low Speed +Choice: 4 Selftimer 2s +Choice: 5 Selftimer 5s +Choice: 6 Selftimer 10s +Choice: 7 Selftimer 10s 3 Pictures +Choice: 8 Selftimer 10s 5 Pictures +Choice: 9 Selftimer 5s 3 Pictures +Choice: 10 Selftimer 5s 5 Pictures +Choice: 11 Selftimer 2s 3 Pictures +Choice: 12 Selftimer 2s 5 Pictures +Choice: 13 Bracketing C 0.3 Steps 3 Pictures +Choice: 14 Bracketing C 0.3 Steps 5 Pictures +Choice: 15 Bracketing C 0.3 Steps 9 Pictures +Choice: 16 Bracketing C 0.7 Steps 3 Pictures +Choice: 17 Bracketing C 0.7 Steps 5 Pictures +Choice: 18 Bracketing C 0.7 Steps 9 Pictures +Choice: 19 Bracketing C 1.0 Steps 3 Pictures +Choice: 20 Bracketing C 1.0 Steps 5 Pictures +Choice: 21 Bracketing C 1.0 Steps 9 Pictures +Choice: 22 Bracketing C 2.0 Steps 3 Pictures +Choice: 23 Bracketing C 2.0 Steps 5 Pictures +Choice: 24 Bracketing C 3.0 Steps 3 Pictures +Choice: 25 Bracketing C 3.0 Steps 5 Pictures +Choice: 26 Bracketing S 0.3 Steps 3 Pictures +Choice: 27 Bracketing S 0.3 Steps 5 Pictures +Choice: 28 Bracketing S 0.3 Steps 9 Pictures +Choice: 29 Bracketing S 0.7 Steps 3 Pictures +Choice: 30 Bracketing S 0.7 Steps 5 Pictures +Choice: 31 Bracketing S 0.7 Steps 9 Pictures +Choice: 32 Bracketing S 1.0 Steps 3 Pictures +Choice: 33 Bracketing S 1.0 Steps 5 Pictures +Choice: 34 Bracketing S 1.0 Steps 9 Pictures +Choice: 35 Bracketing S 2.0 Steps 3 Pictures +Choice: 36 Bracketing S 2.0 Steps 5 Pictures +Choice: 37 Bracketing S 3.0 Steps 3 Pictures +Choice: 38 Bracketing S 3.0 Steps 5 Pictures +Choice: 39 Bracketing WB Lo +Choice: 40 Bracketing WB Hi +Choice: 41 Bracketing DRO Lo +Choice: 42 Bracketing DRO Hi +END +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Readonly: 0 +Type: RADIO +Current: Unknown value 8001 +Choice: 0 Unknown value 8001 +Choice: 1 Unknown value 8002 +Choice: 2 Unknown value 8004 +Choice: 3 Unknown value 8005 +Choice: 4 Unknown value 8003 +Choice: 5 Unknown value 8006 +END +/main/capturesettings/shutterspeed +Label: Shutter Speed +Readonly: 0 +Type: RADIO +Current: 1/250 +END +/main/other/5004 +Label: Compression Setting +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +Choice: 5 20 +Choice: 6 18 +END +/main/other/5005 +Label: White Balance +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32816 +Choice: 11 32786 +Choice: 12 32800 +Choice: 13 32801 +Choice: 14 32802 +END +/main/other/5007 +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 180 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/500a +Label: Focus Mode +Readonly: 0 +Type: MENU +Current: 32773 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32774 +Choice: 5 32777 +END +/main/other/500b +Label: Exposure Metering Mode +Readonly: 0 +Type: MENU +Current: 32769 +Choice: 0 32769 +Choice: 1 32770 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32771 +Choice: 5 32774 +END +/main/other/500c +Label: Flash Mode +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32817 +Choice: 8 32818 +Choice: 9 32833 +Choice: 10 32834 +END +/main/other/500e +Label: Exposure Program Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32896 +Choice: 11 32897 +Choice: 12 32898 +Choice: 13 32899 +Choice: 14 32833 +Choice: 15 7 +Choice: 16 32785 +Choice: 17 32789 +Choice: 18 32788 +Choice: 19 32786 +Choice: 20 32787 +Choice: 21 32790 +Choice: 22 32791 +Choice: 23 32792 +Choice: 24 32793 +Choice: 25 32794 +Choice: 26 32795 +Choice: 27 32796 +END +/main/other/5010 +Label: Exposure Bias Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 5000 +Choice: 2 4700 +Choice: 3 4500 +Choice: 4 4300 +Choice: 5 4000 +Choice: 6 3700 +Choice: 7 3500 +Choice: 8 3300 +Choice: 9 3000 +Choice: 10 2700 +Choice: 11 2500 +Choice: 12 2300 +Choice: 13 2000 +Choice: 14 1700 +Choice: 15 1500 +Choice: 16 1300 +Choice: 17 1000 +Choice: 18 700 +Choice: 19 500 +Choice: 20 300 +Choice: 21 -300 +Choice: 22 -500 +Choice: 23 -700 +Choice: 24 -1000 +Choice: 25 -1300 +Choice: 26 -1500 +Choice: 27 -1700 +Choice: 28 -2000 +Choice: 29 -2300 +Choice: 30 -2500 +Choice: 31 -2700 +Choice: 32 -3000 +Choice: 33 -3300 +Choice: 34 -3500 +Choice: 35 -3700 +Choice: 36 -4000 +Choice: 37 -4300 +Choice: 38 -4500 +Choice: 39 -4700 +Choice: 40 -5000 +END +/main/other/5013 +Label: Still Capture Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32789 +Choice: 3 32786 +Choice: 4 32773 +Choice: 5 32771 +Choice: 6 32772 +Choice: 7 32776 +Choice: 8 32777 +Choice: 9 32780 +Choice: 10 32781 +Choice: 11 32782 +Choice: 12 32783 +Choice: 13 33591 +Choice: 14 34103 +Choice: 15 35127 +Choice: 16 33655 +Choice: 17 34167 +Choice: 18 35191 +Choice: 19 33553 +Choice: 20 34065 +Choice: 21 35089 +Choice: 22 33569 +Choice: 23 34081 +Choice: 24 33585 +Choice: 25 34097 +Choice: 26 33590 +Choice: 27 34102 +Choice: 28 35126 +Choice: 29 33654 +Choice: 30 34166 +Choice: 31 35190 +Choice: 32 33552 +Choice: 33 34064 +Choice: 34 35088 +Choice: 35 33568 +Choice: 36 34080 +Choice: 37 33584 +Choice: 38 34096 +Choice: 39 32792 +Choice: 40 32808 +Choice: 41 32793 +Choice: 42 32809 +END +/main/other/d200 +Label: DOC Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 3000 +Choice: 2 2700 +Choice: 3 2500 +Choice: 4 2300 +Choice: 5 2000 +Choice: 6 1700 +Choice: 7 1500 +Choice: 8 1300 +Choice: 9 1000 +Choice: 10 700 +Choice: 11 500 +Choice: 12 300 +Choice: 13 -300 +Choice: 14 -500 +Choice: 15 -700 +Choice: 16 -1000 +Choice: 17 -1300 +Choice: 18 -1500 +Choice: 19 -1700 +Choice: 20 -2000 +Choice: 21 -2300 +Choice: 22 -2500 +Choice: 23 -2700 +Choice: 24 -3000 +END +/main/other/d201 +Label: DRangeOptimize +Readonly: 0 +Type: MENU +Current: 31 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +END +/main/other/d203 +Label: Image size +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d20d +Label: Shutter speed +Readonly: 0 +Type: RANGE +Current: 65786 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d20e +Label: PTP Property 0xd20e +Readonly: 0 +Type: MENU +Current: 7 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +Choice: 15 16 +END +/main/other/d20f +Label: Color temperature +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +END +/main/other/d211 +Label: Aspect Ratio +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/d213 +Label: Focus status +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +END +/main/other/d21e +Label: ISO +Readonly: 0 +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777341 +Choice: 48 16777416 +Choice: 49 16777466 +Choice: 50 16777536 +Choice: 51 16777616 +Choice: 52 16777716 +Choice: 53 16777856 +Choice: 54 16778016 +Choice: 55 16778216 +Choice: 56 16778466 +Choice: 57 16778816 +Choice: 58 16779216 +Choice: 59 16779716 +Choice: 60 16780416 +Choice: 61 16781216 +Choice: 62 16782216 +Choice: 63 16783616 +Choice: 64 16785216 +Choice: 65 16787216 +Choice: 66 16790016 +Choice: 67 16793216 +Choice: 68 16802816 +Choice: 69 16828416 +Choice: 70 16879616 +Choice: 71 16982016 +Choice: 72 17186816 +Choice: 73 50331647 +Choice: 74 33554532 +Choice: 75 33554632 +Choice: 76 33554832 +Choice: 77 33555232 +Choice: 78 33556032 +Choice: 79 33557632 +Choice: 80 33560832 +Choice: 81 33567232 +Choice: 82 33580032 +Choice: 83 33605632 +Choice: 84 33656832 +Choice: 85 33759232 +Choice: 86 33964032 +END +/main/other/d21b +Label: Picture Effect +Readonly: 0 +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32928 +Choice: 24 32929 +Choice: 25 32930 +Choice: 26 32931 +Choice: 27 32932 +Choice: 28 32933 +Choice: 29 32934 +Choice: 30 32944 +Choice: 31 32960 +Choice: 32 32961 +Choice: 33 32962 +END +/main/other/d21d +Label: PTP Property 0xd21d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d217 +Label: PTP Property 0xd217 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d219 +Label: PTP Property 0xd219 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d212 +Label: PTP Property 0xd212 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +END +/main/other/d210 +Label: CC Filter +Readonly: 0 +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +END +/main/other/d21c +Label: AB Filter +Readonly: 0 +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +END +/main/other/d222 +Label: PTP Property 0xd222 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 17 +END +/main/other/d221 +Label: PTP Property 0xd221 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d214 +Label: PTP Property 0xd214 +Readonly: 0 +Type: RANGE +Current: 3.20532e+07 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d215 +Label: Objects in memory +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c8 +Label: Movie +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c7 +Label: Still Image +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2cb +Label: PTP Property 0xd2cb +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2cc +Label: PTP Property 0xd2cc +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2cd +Label: PTP Property 0xd2cd +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2ce +Label: PTP Property 0xd2ce +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2cf +Label: PTP Property 0xd2cf +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d0 +Label: PTP Property 0xd2d0 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d2 +Label: PTP Property 0xd2d2 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d3 +Label: PTP Property 0xd2d3 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d4 +Label: PTP Property 0xd2d4 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d1 +Label: PTP Property 0xd2d1 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -7 +Choice: 1 -6 +Choice: 2 -5 +Choice: 3 -4 +Choice: 4 -3 +Choice: 5 -2 +Choice: 6 -1 +Choice: 7 0 +Choice: 8 1 +Choice: 9 2 +Choice: 10 3 +Choice: 11 4 +Choice: 12 5 +Choice: 13 6 +Choice: 14 7 +END diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m6.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m6.txt new file mode 100644 index 00000000..5acd78dd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-rx100m6.txt @@ -0,0 +1,1147 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSC-RX100M6 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), ARW + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture + +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19,20,18] value: 3 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [1,2,4,32785,32784,6,32769,32770,32771,32772,7,32816,32786,32800,32801,32802] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/2.8 (280) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,32772,32773,32774,32777] value: 32773 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770,32772,32773,32771,32774] value: Average (1) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32817,32818,32833,32834] value: Fill flash (3) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32896,32897,32898,32899,32833,7,32785,32789,32788,32786,32787,32790,32791,32792,32793,32794,32795,32796] value: 32768 +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32789,32786,32773,32771,32772,32776,32777,32780,32781,32782,32783] value: Single Shot (1) +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 31 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65549 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,11,8,9,10,4,12,5,13,6,14,7,15,16] value: 15 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2,3,4] value: 1 +Focus status(0xd213):(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,32000,40000,51200,64000,80000,102400,128000,160000,204800,256000,320000,409600,33554431,16777241,16777266,16777280,16777296,16777341,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816,16828416,16879616,16982016,17186816,50331647,33554532,33554632,33554832,33555232,33556032,33557632,33560832,33567232,33580032,33605632,33656832,33759232,33964032] value: 16777215 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [164 - 220, step 1] value: 192 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [164 - 220, step 2] value: 192 +Property 0xd222:(readwrite) (type=0x4) Enumeration [1,17] value: 1 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 32053248 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cb:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cc:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cd:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2ce:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2cf:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d0:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d4:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2d1:(readwrite) (type=0x3) Range [-7 - 7, step 1] value: 0 + +/main/actions/autofocus +Label: Auto-Focus +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/manualfocus +Label: Manual-Focus +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: -7 +Top: 7 +Step: 1 +END +/main/actions/capture +Label: Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/bulb +Label: Bulb Mode +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/movie +Label: Movie Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: Sony Corporation +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: DSC-RX100M6 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: 1.0 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: Sony PTP Extensions +END +/main/imgsettings/imagesize +Label: Image Size +Readonly: 0 +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +END +/main/imgsettings/iso +Label: ISO Speed +Readonly: 0 +Type: RADIO +Current: Auto ISO +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 Auto ISO Multi Frame Noise Reduction +Choice: 43 25 Multi Frame Noise Reduction +Choice: 44 50 Multi Frame Noise Reduction +Choice: 45 64 Multi Frame Noise Reduction +Choice: 46 80 Multi Frame Noise Reduction +Choice: 47 125 Multi Frame Noise Reduction +Choice: 48 200 Multi Frame Noise Reduction +Choice: 49 250 Multi Frame Noise Reduction +Choice: 50 320 Multi Frame Noise Reduction +Choice: 51 400 Multi Frame Noise Reduction +Choice: 52 500 Multi Frame Noise Reduction +Choice: 53 640 Multi Frame Noise Reduction +Choice: 54 800 Multi Frame Noise Reduction +Choice: 55 1000 Multi Frame Noise Reduction +Choice: 56 1250 Multi Frame Noise Reduction +Choice: 57 1600 Multi Frame Noise Reduction +Choice: 58 2000 Multi Frame Noise Reduction +Choice: 59 2500 Multi Frame Noise Reduction +Choice: 60 3200 Multi Frame Noise Reduction +Choice: 61 4000 Multi Frame Noise Reduction +Choice: 62 5000 Multi Frame Noise Reduction +Choice: 63 6400 Multi Frame Noise Reduction +Choice: 64 8000 Multi Frame Noise Reduction +Choice: 65 10000 Multi Frame Noise Reduction +Choice: 66 12800 Multi Frame Noise Reduction +Choice: 67 16000 Multi Frame Noise Reduction +Choice: 68 25600 Multi Frame Noise Reduction +Choice: 69 51200 Multi Frame Noise Reduction +Choice: 70 36864 Multi Frame Noise Reduction +Choice: 71 8192 Multi Frame Noise Reduction +Choice: 72 16384 Multi Frame Noise Reduction +Choice: 73 65535 Multi Frame Noise Reduction +Choice: 74 100 Multi Frame Noise Reduction +Choice: 75 200 Multi Frame Noise Reduction +Choice: 76 400 Multi Frame Noise Reduction +Choice: 77 800 Multi Frame Noise Reduction +Choice: 78 1600 Multi Frame Noise Reduction +Choice: 79 3200 Multi Frame Noise Reduction +Choice: 80 6400 Multi Frame Noise Reduction +Choice: 81 12800 Multi Frame Noise Reduction +Choice: 82 25600 Multi Frame Noise Reduction +Choice: 83 51200 Multi Frame Noise Reduction +Choice: 84 36864 Multi Frame Noise Reduction +Choice: 85 8192 Multi Frame Noise Reduction +Choice: 86 16384 Multi Frame Noise Reduction +END +/main/imgsettings/colortemperature +Label: Color Temperature +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/imgsettings/whitebalance +Label: WhiteBalance +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 Daylight +Choice: 3 Shade +Choice: 4 Cloudy +Choice: 5 Tungsten +Choice: 6 Fluorescent: Warm White +Choice: 7 Fluorescent: Cold White +Choice: 8 Fluorescent: Day White +Choice: 9 Fluorescent: Daylight +Choice: 10 Flash +Choice: 11 Underwater: Auto +Choice: 12 Choose Color Temperature +Choice: 13 Preset 1 +Choice: 14 Preset 2 +Choice: 15 Preset 3 +END +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Readonly: 0 +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 5 +Choice: 2 4.7 +Choice: 3 4.5 +Choice: 4 4.3 +Choice: 5 4 +Choice: 6 3.7 +Choice: 7 3.5 +Choice: 8 3.3 +Choice: 9 3 +Choice: 10 2.7 +Choice: 11 2.5 +Choice: 12 2.3 +Choice: 13 2 +Choice: 14 1.7 +Choice: 15 1.5 +Choice: 16 1.3 +Choice: 17 1 +Choice: 18 0.7 +Choice: 19 0.5 +Choice: 20 0.3 +Choice: 21 -0.3 +Choice: 22 -0.5 +Choice: 23 -0.7 +Choice: 24 -1 +Choice: 25 -1.3 +Choice: 26 -1.5 +Choice: 27 -1.7 +Choice: 28 -2 +Choice: 29 -2.3 +Choice: 30 -2.5 +Choice: 31 -2.7 +Choice: 32 -3 +Choice: 33 -3.3 +Choice: 34 -3.5 +Choice: 35 -3.7 +Choice: 36 -4 +Choice: 37 -4.3 +Choice: 38 -4.5 +Choice: 39 -4.7 +Choice: 40 -5 +END +/main/capturesettings/flashmode +Label: Flash Mode +Readonly: 0 +Type: RADIO +Current: Fill flash +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Rear Curtain Sync +Choice: 7 Unknown value 8031 +Choice: 8 Slow Sync +Choice: 9 Unknown value 8041 +Choice: 10 Unknown value 8042 +END +/main/capturesettings/f-number +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 2.8 +Bottom: 0 +Top: 655.35 +Step: 0.01 +END +/main/capturesettings/imagequality +Label: Image Quality +Readonly: 0 +Type: RADIO +Current: Fine +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Extra Fine +Choice: 3 RAW +Choice: 4 RAW+JPEG +Choice: 5 Unknown value 0014 +Choice: 6 Unknown value 0012 +END +/main/capturesettings/focusmode +Label: Focus Mode +Readonly: 0 +Type: RADIO +Current: AF-A +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 AF-C +Choice: 3 AF-A +Choice: 4 DMF +Choice: 5 Unknown value 8009 +END +/main/capturesettings/expprogram +Label: Exposure Program +Readonly: 0 +Type: RADIO +Current: Intelligent Auto +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Movie +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8080 +Choice: 11 Unknown value 8081 +Choice: 12 Unknown value 8082 +Choice: 13 Unknown value 8083 +Choice: 14 Sweep Panorama +Choice: 15 Portrait +Choice: 16 Sports Action +Choice: 17 Macro +Choice: 18 Landscape +Choice: 19 Sunset +Choice: 20 Night Scene +Choice: 21 Hand-held Twilight +Choice: 22 Night Portrait +Choice: 23 Unknown value 8018 +Choice: 24 Unknown value 8019 +Choice: 25 Unknown value 801a +Choice: 26 Unknown value 801b +Choice: 27 Unknown value 801c +END +/main/capturesettings/aspectratio +Label: Aspect Ratio +Readonly: 0 +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +Choice: 1 16:9 +Choice: 2 Unknown value 0003 +Choice: 3 Unknown value 0004 +END +/main/capturesettings/capturemode +Label: Still Capture Mode +Readonly: 0 +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Unknown value 8015 +Choice: 3 Continuous Low Speed +Choice: 4 Selftimer 2s +Choice: 5 Selftimer 5s +Choice: 6 Selftimer 10s +Choice: 7 Selftimer 10s 3 Pictures +Choice: 8 Selftimer 10s 5 Pictures +Choice: 9 Selftimer 5s 3 Pictures +Choice: 10 Selftimer 5s 5 Pictures +Choice: 11 Selftimer 2s 3 Pictures +Choice: 12 Selftimer 2s 5 Pictures +END +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Readonly: 0 +Type: RADIO +Current: Average +Choice: 0 Center Spot +Choice: 1 Average +Choice: 2 Unknown value 8002 +Choice: 3 Unknown value 8004 +Choice: 4 Unknown value 8005 +Choice: 5 Unknown value 8003 +Choice: 6 Unknown value 8006 +END +/main/capturesettings/shutterspeed +Label: Shutter Speed +Readonly: 0 +Type: RADIO +Current: 1/13 +END +/main/other/5004 +Label: Compression Setting +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +Choice: 5 20 +Choice: 6 18 +END +/main/other/5005 +Label: White Balance +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 1 +Choice: 1 2 +Choice: 2 4 +Choice: 3 32785 +Choice: 4 32784 +Choice: 5 6 +Choice: 6 32769 +Choice: 7 32770 +Choice: 8 32771 +Choice: 9 32772 +Choice: 10 7 +Choice: 11 32816 +Choice: 12 32786 +Choice: 13 32800 +Choice: 14 32801 +Choice: 15 32802 +END +/main/other/5007 +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 280 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/500a +Label: Focus Mode +Readonly: 0 +Type: MENU +Current: 32773 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32772 +Choice: 3 32773 +Choice: 4 32774 +Choice: 5 32777 +END +/main/other/500b +Label: Exposure Metering Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +Choice: 3 32772 +Choice: 4 32773 +Choice: 5 32771 +Choice: 6 32774 +END +/main/other/500c +Label: Flash Mode +Readonly: 0 +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32817 +Choice: 8 32818 +Choice: 9 32833 +Choice: 10 32834 +END +/main/other/500e +Label: Exposure Program Mode +Readonly: 0 +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32896 +Choice: 11 32897 +Choice: 12 32898 +Choice: 13 32899 +Choice: 14 32833 +Choice: 15 7 +Choice: 16 32785 +Choice: 17 32789 +Choice: 18 32788 +Choice: 19 32786 +Choice: 20 32787 +Choice: 21 32790 +Choice: 22 32791 +Choice: 23 32792 +Choice: 24 32793 +Choice: 25 32794 +Choice: 26 32795 +Choice: 27 32796 +END +/main/other/5010 +Label: Exposure Bias Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 5000 +Choice: 2 4700 +Choice: 3 4500 +Choice: 4 4300 +Choice: 5 4000 +Choice: 6 3700 +Choice: 7 3500 +Choice: 8 3300 +Choice: 9 3000 +Choice: 10 2700 +Choice: 11 2500 +Choice: 12 2300 +Choice: 13 2000 +Choice: 14 1700 +Choice: 15 1500 +Choice: 16 1300 +Choice: 17 1000 +Choice: 18 700 +Choice: 19 500 +Choice: 20 300 +Choice: 21 -300 +Choice: 22 -500 +Choice: 23 -700 +Choice: 24 -1000 +Choice: 25 -1300 +Choice: 26 -1500 +Choice: 27 -1700 +Choice: 28 -2000 +Choice: 29 -2300 +Choice: 30 -2500 +Choice: 31 -2700 +Choice: 32 -3000 +Choice: 33 -3300 +Choice: 34 -3500 +Choice: 35 -3700 +Choice: 36 -4000 +Choice: 37 -4300 +Choice: 38 -4500 +Choice: 39 -4700 +Choice: 40 -5000 +END +/main/other/5013 +Label: Still Capture Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32789 +Choice: 3 32786 +Choice: 4 32773 +Choice: 5 32771 +Choice: 6 32772 +Choice: 7 32776 +Choice: 8 32777 +Choice: 9 32780 +Choice: 10 32781 +Choice: 11 32782 +Choice: 12 32783 +END +/main/other/d200 +Label: DOC Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 3000 +Choice: 2 2700 +Choice: 3 2500 +Choice: 4 2300 +Choice: 5 2000 +Choice: 6 1700 +Choice: 7 1500 +Choice: 8 1300 +Choice: 9 1000 +Choice: 10 700 +Choice: 11 500 +Choice: 12 300 +Choice: 13 -300 +Choice: 14 -500 +Choice: 15 -700 +Choice: 16 -1000 +Choice: 17 -1300 +Choice: 18 -1500 +Choice: 19 -1700 +Choice: 20 -2000 +Choice: 21 -2300 +Choice: 22 -2500 +Choice: 23 -2700 +Choice: 24 -3000 +END +/main/other/d201 +Label: DRangeOptimize +Readonly: 0 +Type: MENU +Current: 31 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +END +/main/other/d203 +Label: Image size +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d20d +Label: Shutter speed +Readonly: 0 +Type: RANGE +Current: 65549 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d20e +Label: PTP Property 0xd20e +Readonly: 0 +Type: MENU +Current: 15 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 11 +Choice: 4 8 +Choice: 5 9 +Choice: 6 10 +Choice: 7 4 +Choice: 8 12 +Choice: 9 5 +Choice: 10 13 +Choice: 11 6 +Choice: 12 14 +Choice: 13 7 +Choice: 14 15 +Choice: 15 16 +END +/main/other/d20f +Label: Color temperature +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +END +/main/other/d211 +Label: Aspect Ratio +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 4 +END +/main/other/d213 +Label: Focus status +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +END +/main/other/d21e +Label: ISO +Readonly: 0 +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 50 +Choice: 3 64 +Choice: 4 80 +Choice: 5 100 +Choice: 6 125 +Choice: 7 160 +Choice: 8 200 +Choice: 9 250 +Choice: 10 320 +Choice: 11 400 +Choice: 12 500 +Choice: 13 640 +Choice: 14 800 +Choice: 15 1000 +Choice: 16 1250 +Choice: 17 1600 +Choice: 18 2000 +Choice: 19 2500 +Choice: 20 3200 +Choice: 21 4000 +Choice: 22 5000 +Choice: 23 6400 +Choice: 24 8000 +Choice: 25 10000 +Choice: 26 12800 +Choice: 27 16000 +Choice: 28 20000 +Choice: 29 25600 +Choice: 30 32000 +Choice: 31 40000 +Choice: 32 51200 +Choice: 33 64000 +Choice: 34 80000 +Choice: 35 102400 +Choice: 36 128000 +Choice: 37 160000 +Choice: 38 204800 +Choice: 39 256000 +Choice: 40 320000 +Choice: 41 409600 +Choice: 42 33554431 +Choice: 43 16777241 +Choice: 44 16777266 +Choice: 45 16777280 +Choice: 46 16777296 +Choice: 47 16777341 +Choice: 48 16777416 +Choice: 49 16777466 +Choice: 50 16777536 +Choice: 51 16777616 +Choice: 52 16777716 +Choice: 53 16777856 +Choice: 54 16778016 +Choice: 55 16778216 +Choice: 56 16778466 +Choice: 57 16778816 +Choice: 58 16779216 +Choice: 59 16779716 +Choice: 60 16780416 +Choice: 61 16781216 +Choice: 62 16782216 +Choice: 63 16783616 +Choice: 64 16785216 +Choice: 65 16787216 +Choice: 66 16790016 +Choice: 67 16793216 +Choice: 68 16802816 +Choice: 69 16828416 +Choice: 70 16879616 +Choice: 71 16982016 +Choice: 72 17186816 +Choice: 73 50331647 +Choice: 74 33554532 +Choice: 75 33554632 +Choice: 76 33554832 +Choice: 77 33555232 +Choice: 78 33556032 +Choice: 79 33557632 +Choice: 80 33560832 +Choice: 81 33567232 +Choice: 82 33580032 +Choice: 83 33605632 +Choice: 84 33656832 +Choice: 85 33759232 +Choice: 86 33964032 +END +/main/other/d21b +Label: Picture Effect +Readonly: 0 +Type: MENU +Current: 32768 +Choice: 0 32768 +END +/main/other/d21d +Label: PTP Property 0xd21d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d217 +Label: PTP Property 0xd217 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d219 +Label: PTP Property 0xd219 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d212 +Label: PTP Property 0xd212 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +END +/main/other/d210 +Label: CC Filter +Readonly: 0 +Type: MENU +Current: 192 +Choice: 0 164 +Choice: 1 165 +Choice: 2 166 +Choice: 3 167 +Choice: 4 168 +Choice: 5 169 +Choice: 6 170 +Choice: 7 171 +Choice: 8 172 +Choice: 9 173 +Choice: 10 174 +Choice: 11 175 +Choice: 12 176 +Choice: 13 177 +Choice: 14 178 +Choice: 15 179 +Choice: 16 180 +Choice: 17 181 +Choice: 18 182 +Choice: 19 183 +Choice: 20 184 +Choice: 21 185 +Choice: 22 186 +Choice: 23 187 +Choice: 24 188 +Choice: 25 189 +Choice: 26 190 +Choice: 27 191 +Choice: 28 192 +Choice: 29 193 +Choice: 30 194 +Choice: 31 195 +Choice: 32 196 +Choice: 33 197 +Choice: 34 198 +Choice: 35 199 +Choice: 36 200 +Choice: 37 201 +Choice: 38 202 +Choice: 39 203 +Choice: 40 204 +Choice: 41 205 +Choice: 42 206 +Choice: 43 207 +Choice: 44 208 +Choice: 45 209 +Choice: 46 210 +Choice: 47 211 +Choice: 48 212 +Choice: 49 213 +Choice: 50 214 +Choice: 51 215 +Choice: 52 216 +Choice: 53 217 +Choice: 54 218 +Choice: 55 219 +Choice: 56 220 +END +/main/other/d21c +Label: AB Filter +Readonly: 0 +Type: RANGE +Current: 192 +Bottom: 164 +Top: 220 +Step: 2 +END +/main/other/d222 +Label: PTP Property 0xd222 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 17 +END +/main/other/d221 +Label: PTP Property 0xd221 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d214 +Label: PTP Property 0xd214 +Readonly: 0 +Type: RANGE +Current: 3.20532e+07 +Bottom: 0 +Top: 4.29497e+09 +Step: 1 +END +/main/other/d215 +Label: Objects in memory +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c8 +Label: Movie +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c7 +Label: Still Image +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2cb +Label: PTP Property 0xd2cb +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2cc +Label: PTP Property 0xd2cc +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2cd +Label: PTP Property 0xd2cd +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2ce +Label: PTP Property 0xd2ce +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2cf +Label: PTP Property 0xd2cf +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d0 +Label: PTP Property 0xd2d0 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d2 +Label: PTP Property 0xd2d2 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d3 +Label: PTP Property 0xd2d3 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d4 +Label: PTP Property 0xd2d4 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2d1 +Label: PTP Property 0xd2d1 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 -7 +Choice: 1 -6 +Choice: 2 -5 +Choice: 3 -4 +Choice: 4 -3 +Choice: 5 -2 +Choice: 6 -1 +Choice: 7 0 +Choice: 8 1 +Choice: 9 2 +Choice: 10 3 +Choice: 11 4 +Choice: 12 5 +Choice: 13 6 +Choice: 14 7 +END diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-s780.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-s780.txt new file mode 100644 index 00000000..46ccb2b4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-s780.txt @@ -0,0 +1,56 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: Sony Digital Still Camera + Version: (null) + +Capture Formats: JPEG TIFF EP MS Wave MS AVI +Display Formats: JPEG, TIFF EP, FlashPix, BMP, CIFF, Unknown(3806), GIF + +Device Capabilities: + File Download, No File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Removable storage + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 2033942528 (1939 MB) + Free Space (Bytes): 713621504 (680 MB) + Free Space (Images): 171 + +Device Property Summary: + +Device info: +Manufacturer: Sony Corporation + Model: Sony Digital Still Camera + device version: (null) + serial number: '(null)' +Vendor extension ID: 0x00000000 +Vendor extension version: 0 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x100c + 0x100d + 0x101b + 0x1012 + 0x9005 + 0x9006 + 0x0000 +Events Supported: + 0x4009 +Device Properties Supported: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a350.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a350.txt new file mode 100644 index 00000000..bf682002 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a350.txt @@ -0,0 +1,63 @@ +LANG=C gphoto2 --summary +Camera summary: +Manufacturer: Sony Corporation +Model: DSLR-A350 + Version: 1.00 + +Capture Formats: +Display Formats: DPOF, MS Wave, JPEG, TIFF EP, JFIF, Unknown(b101), Unknown(b102) + +Device Capabilities: + File Download, No File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Digital Camera Layout (DCIM) + Access Capability: Read-Write + Maximum Capability: 1354760192 (1292 MB) + Free Space (Bytes): 1833959424 (1749 MB) + Free Space (Images): -1 +store_ffff0001: + StorageDescription: None + VolumeLabel: None + Storage Type: Builtin RAM + Filesystemtype: Generic Flat + Access Capability: Read-Only + Maximum Capability: 18446744073709551615 (17592186044415 MB) + Free Space (Bytes): 18446744073709551615 (17592186044415 MB) + Free Space (Images): -1 + +Device Property Summary: +root@vala ~ $ LANG=C gphoto2 --list-all-config +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: None +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: DSLR-A350 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None + +gphoto2 --capture-image + +*** Error *** +Sorry, your camera does not support generic capture +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a5000.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a5000.txt new file mode 100644 index 00000000..ce5326ac --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a5000.txt @@ -0,0 +1,54 @@ +Camera summary: + +Manufacturer: Sony Corporation +Model: ILCE-5000 +Version: 1.0 +Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), Unknown(b101) + +Device Capabilities: +File Download, No File Deletion, No File Upload +No Image Capture, No Open Capture, Sony Capture +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,16,19] value: 16 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32786,32803] value: Automatic (2) +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/3.5 (350) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,3,32772,32773,32776,32774,32775] value: Manual Focus (1) +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: Average (1) +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32817,32818] value: Undefined (0) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32833,7,32785,32789,32788,32786,32787,32790,32791,32792] value: M (1) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,1,2,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0.0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,32787,32788,32773,32772,32776,32777,33591,33655,33553,33569,33585,33590,33654,33552,33568,33584,32792,32808,32793,32809] value: 32773 +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,1,2,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21] value: 31 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 6553610 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,8,9,10,4,5,6,7] value: 4 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2] value: 1 +Property 0xd213:(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,102400,16787216] value: 100 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd218:(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 19 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 2 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 28267520 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a58.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a58.txt new file mode 100644 index 00000000..296732c2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a58.txt @@ -0,0 +1,963 @@ +Device info: +Manufacturer: Sony Corporation + Model: SLT-A58 + device version: 1.0 + serial number: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn' +Vendor extension ID: 0xffffffff +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9280 + 0x9281 + 0x9282 + 0x9283 + 0x9284 + 0x9285 +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 + +Camera summary: +Manufacturer: Sony Corporation +Model: SLT-A58 + Version: 1.0 + Serial Number: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +Vendor Extension ID: 0xffffffff (1.0) + +Capture Formats: +Display Formats: Association/Directory, MPEG, JPEG, MP4, Unknown(b301), Undefined Type, Unknown(b101), Unknown(b310) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Only + Maximum Capability: 7949418496 (7581 MB) + Free Space (Bytes): 7874437120 (7509 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 100% (100) +Friendly Device Name(0xd402):(read only) (type=0xffff) SLT-A58 ('SLT-A58') +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '(null)' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: SLT-A58 +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 100 +/main/other/d402 +Label: Friendly Device Name +Type: TEXT +Current: SLT-A58 +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: (null) +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 +Kamerazusammenfassung: +Hersteller: Sony Corporation +Modell: SLT-A58 + Version: 1.0 + Seriennummer: 00000000000000008436653504538948 +Vendor Extension ID: 0x11 (1.0) +Beschreibung der Vendor Extension: Sony PTP Extensions + +Aufnahmeformate: +Anzeigeformate: JPEG, Unknown(b301), Unknown(b101) + +Fähigkeiten des Geräts: + Dateien Download, kein Löschen von Dateien, kein Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Sony Capture +Informationen über Speichermedium: + +Properties des Geräts: +Kompressions Parameter(0x5004):(readwrite) (type=0x2) Enumeration [2,3,16,19] value: JPEG Basic (0) +Weißabgleich(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32786,32803] value: 0 +F-Nummer(0x5007):(read only) (type=0x4) Range [0 - 65535, step 1] value: f/0 (0) +Fokusmodus(0x500a):(read only) (type=0x4) Enumeration [1,2,3,32772,32773,32775] value: 0 +Belichtungsmessmodus(0x500b):(read only) (type=0x4) Enumeration [4,1,2] value: 0 +Blitzmodus(0x500c):(read only) (type=0x4) Enumeration [2,1,4,3,5,32771,32772,32817,32818] value: Fill flash (3) +Belichtungs Programm Modus(0x500e):(read only) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32833,7,32785,32789,32788,32786,32787,32790,32791,32864,32817,32819,32880] value: M (1) +Belichtungskompensation(0x5010):(read only) (type=0x3) Enumeration [0,3000,2700,2300,2000,1700,1300,1000,700,300,-300,-700,-1000,-1300,-1700,-2000,-2300,-2700,-3000] value: 0,0 stops (0) +Bildaufnahme Modus(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32786,32773,32772,33591,33655,33553,33569,33585,33590,33654,33552,33568,33584,32792,32808] value: 0 +Property 0xd200:(read only) (type=0x3) Enumeration [0,2000,1700,1300,1000,700,300,-300,-700,-1000,-1300,-1700,-2000] value: 0 +Property 0xd201:(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 0 +Property 0xd203:(readwrite) (type=0x2) Enumeration [1,2,3] value: 0 +Property 0xd20d:(read only) (type=0x6) Range [0 - 4294967295, step 1] value: 0 +Property 0xd20e:(read only) (type=0x2) Enumeration [1,2,3,8,9,10,4,5,6,7] value: 5 +Property 0xd20f:(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +Property 0xd210:(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +Property 0xd21c:(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +Property 0xd211:(readwrite) (type=0x2) Enumeration [1,2] value: 0 +Property 0xd213:(read only) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +Property 0xd21e:(read only) (type=0x6) Enumeration [16777215,25,100,200,400,800,1600,3200,6400,12800,16000,102400,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816] value: 0 +Property 0xd21b:(readwrite) (type=0x4) Enumeration [32768,32769,32770,32771,32772,32773,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32880,32881,32882,32896,32897,32898,32912,32928,32929,32930,32931,32932,32933,32934] value: 32768 +Property 0xd21d:(read only) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd217:(read only) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd218:(read only) (type=0x1) Range [-1 - 100, step 1] value: 43 +Property 0xd219:(read only) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd214:(read only) (type=0x6) Range [0 - 4294967295, step 1] value: 28236800 +Property 0xd215:(read only) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220:(read only) (type=0x0) Undefined + +/main/actions/movie +Label: Film Aufnahme +Type: TOGGLE +Current: 2 +/main/status/serialnumber +Label: Seriennummer +Type: TEXT +Current: 00000000000000008436653504538948 +/main/status/manufacturer +Label: Kamera Hersteller +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Kameramodell +Type: TEXT +Current: SLT-A58 +/main/status/deviceversion +Label: Version des Gerätes +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Hersteller Erweiterung +Type: TEXT +Current: Sony PTP Extensions +/main/imgsettings/imagesize +Label: Bildgröße +Type: RADIO +Current: Groß +Choice: 0 Groß +Choice: 1 Mittel +Choice: 2 Klein +/main/imgsettings/colortemperature +Label: Farbtemperatur +Type: TEXT +Current: 0 +/main/imgsettings/whitebalance +Label: Weißabgleich +Type: RADIO +Current: Automatisch +Choice: 0 Automatisch +Choice: 1 Tageslicht +Choice: 2 Schatten +Choice: 3 Wolkig +Choice: 4 Kunstlicht - Glühlampe +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Blitz +Choice: 10 Wähle Farbtemperatur +Choice: 11 Voreinstellung +/main/capturesettings/exposurecompensation +Label: Belichtungskompensation +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 3000 +Choice: 2 2700 +Choice: 3 2300 +Choice: 4 2000 +Choice: 5 1700 +Choice: 6 1300 +Choice: 7 1000 +Choice: 8 700 +Choice: 9 300 +Choice: 10 -300 +Choice: 11 -700 +Choice: 12 -1000 +Choice: 13 -1300 +Choice: 14 -1700 +Choice: 15 -2000 +Choice: 16 -2300 +Choice: 17 -2700 +Choice: 18 -3000 +/main/capturesettings/flashmode +Label: Blitzmodus +Type: RADIO +Current: Auffüll Blitz +Choice: 0 Blitz aus +Choice: 1 Automatischer Blitz +Choice: 2 automatische Rote-Augen-Vermeidung +Choice: 3 Auffüll Blitz +Choice: 4 Rote-Augen-Blitz Füllmodus +Choice: 5 Unbekannter Wert 8003 +Choice: 6 Unbekannter Wert 8004 +Choice: 7 Unbekannter Wert 8031 +Choice: 8 Unbekannter Wert 8032 +/main/capturesettings/f-number +Label: F-Nummer +Type: RANGE +Current: 4,5 +Bottom: 0 +Top: 655,35 +Step: 0,01 +/main/capturesettings/imagequality +Label: Bildqualität +Type: RADIO +Current: Standard +Choice: 0 Standard +Choice: 1 Fein +Choice: 2 RAW +Choice: 3 RAW+JPEG +/main/capturesettings/focusmode +Label: Fokusmodus +Type: RADIO +Current: Unbekannter Wert 8005 +Choice: 0 Manuell +Choice: 1 Automatisch +Choice: 2 Automatischer Makro +Choice: 3 Unbekannter Wert 8004 +Choice: 4 Unbekannter Wert 8005 +Choice: 5 Unbekannter Wert 8007 +/main/capturesettings/expprogram +Label: Belichtungs Programm +Type: RADIO +Current: M +Choice: 0 Unbekannter Wert 8000 +Choice: 1 Unbekannter Wert 8001 +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Unbekannter Wert 8050 +Choice: 7 Unbekannter Wert 8051 +Choice: 8 Unbekannter Wert 8052 +Choice: 9 Unbekannter Wert 8053 +Choice: 10 Unbekannter Wert 8041 +Choice: 11 Portrait +Choice: 12 Unbekannter Wert 8011 +Choice: 13 Unbekannter Wert 8015 +Choice: 14 Unbekannter Wert 8014 +Choice: 15 Unbekannter Wert 8012 +Choice: 16 Unbekannter Wert 8013 +Choice: 17 Unbekannter Wert 8016 +Choice: 18 Unbekannter Wert 8017 +Choice: 19 Unbekannter Wert 8060 +Choice: 20 Unbekannter Wert 8031 +Choice: 21 Unbekannter Wert 8033 +Choice: 22 Unbekannter Wert 8070 +/main/capturesettings/aspectratio +Label: Aspect Ratio +Type: RADIO +Current: 16:9 +Choice: 0 16:9 +Choice: 1 3:2 +/main/capturesettings/capturemode +Label: Bildaufnahme Modus +Type: RADIO +Current: Bracketing WB Hi +Choice: 0 Einzelbild +Choice: 1 Mehrbild +Choice: 2 Kontinuierlicher Langsame Geschwindigkeit +Choice: 3 Selftimer 2s +Choice: 4 Selftimer 10s +Choice: 5 Bracketing C 0.3 Steps +Choice: 6 Bracketing C 0.7 Steps +Choice: 7 Bracketing C 1.0 Steps +Choice: 8 Bracketing C 2.0 Steps +Choice: 9 Bracketing C 3.0 Steps +Choice: 10 Bracketing S 0.3 Steps +Choice: 11 Bracketing S 0.7 Steps +Choice: 12 Bracketing S 1.0 Steps +Choice: 13 Bracketing S 2.0 Steps +Choice: 14 Bracketing S 3.0 Steps +Choice: 15 Bracketing WB Lo +Choice: 16 Bracketing WB Hi +/main/capturesettings/exposuremetermode +Label: Belichtungsmessmodus +Type: RADIO +Current: Durchschnitt +Choice: 0 Zentral Punkt +Choice: 1 Durchschnitt +Choice: 2 Mittelpunkt/Gewichtet +/main/other/5004 +Label: Kompressions Parameter +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 3 +Choice: 2 16 +Choice: 3 19 +/main/other/5005 +Label: Weißabgleich +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32786 +Choice: 11 32803 +/main/other/5007 +Label: F-Nummer +Type: RANGE +Current: 450 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/500a +Label: Fokusmodus +Type: MENU +Current: 32773 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 32772 +Choice: 4 32773 +Choice: 5 32775 +/main/other/500b +Label: Belichtungsmessmodus +Type: MENU +Current: 1 +Choice: 0 4 +Choice: 1 1 +Choice: 2 2 +/main/other/500c +Label: Blitzmodus +Type: MENU +Current: 3 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32771 +Choice: 6 32772 +Choice: 7 32817 +Choice: 8 32818 +/main/other/500e +Label: Belichtungs Programm Modus +Type: MENU +Current: 1 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32833 +Choice: 11 7 +Choice: 12 32785 +Choice: 13 32789 +Choice: 14 32788 +Choice: 15 32786 +Choice: 16 32787 +Choice: 17 32790 +Choice: 18 32791 +Choice: 19 32864 +Choice: 20 32817 +Choice: 21 32819 +Choice: 22 32880 +/main/other/5010 +Label: Belichtungskompensation +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 3000 +Choice: 2 2700 +Choice: 3 2300 +Choice: 4 2000 +Choice: 5 1700 +Choice: 6 1300 +Choice: 7 1000 +Choice: 8 700 +Choice: 9 300 +Choice: 10 -300 +Choice: 11 -700 +Choice: 12 -1000 +Choice: 13 -1300 +Choice: 14 -1700 +Choice: 15 -2000 +Choice: 16 -2300 +Choice: 17 -2700 +Choice: 18 -3000 +/main/other/5013 +Label: Bildaufnahme Modus +Type: MENU +Current: 32808 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32786 +Choice: 3 32773 +Choice: 4 32772 +Choice: 5 33591 +Choice: 6 33655 +Choice: 7 33553 +Choice: 8 33569 +Choice: 9 33585 +Choice: 10 33590 +Choice: 11 33654 +Choice: 12 33552 +Choice: 13 33568 +Choice: 14 33584 +Choice: 15 32792 +Choice: 16 32808 +/main/other/d200 +Label: PTP Property 0xd200 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 2000 +Choice: 2 1700 +Choice: 3 1300 +Choice: 4 1000 +Choice: 5 700 +Choice: 6 300 +Choice: 7 -300 +Choice: 8 -700 +Choice: 9 -1000 +Choice: 10 -1300 +Choice: 11 -1700 +Choice: 12 -2000 +/main/other/d201 +Label: PTP Property 0xd201 +Type: MENU +Current: 31 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +/main/other/d203 +Label: PTP Property 0xd203 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +/main/other/d20d +Label: PTP Property 0xd20d +Type: RANGE +Current: 65736 +Bottom: 0 +Top: 4,29497e+09 +Step: 1 +/main/other/d20e +Label: PTP Property 0xd20e +Type: MENU +Current: 5 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 8 +Choice: 4 9 +Choice: 5 10 +Choice: 6 4 +Choice: 7 5 +Choice: 8 6 +Choice: 9 7 +/main/other/d20f +Label: PTP Property 0xd20f +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +/main/other/d210 +Label: PTP Property 0xd210 +Type: MENU +Current: 128 +Choice: 0 121 +Choice: 1 122 +Choice: 2 123 +Choice: 3 124 +Choice: 4 125 +Choice: 5 126 +Choice: 6 127 +Choice: 7 128 +Choice: 8 129 +Choice: 9 130 +Choice: 10 131 +Choice: 11 132 +Choice: 12 133 +Choice: 13 134 +Choice: 14 135 +/main/other/d21c +Label: PTP Property 0xd21c +Type: MENU +Current: 128 +Choice: 0 121 +Choice: 1 122 +Choice: 2 123 +Choice: 3 124 +Choice: 4 125 +Choice: 5 126 +Choice: 6 127 +Choice: 7 128 +Choice: 8 129 +Choice: 9 130 +Choice: 10 131 +Choice: 11 132 +Choice: 12 133 +Choice: 13 134 +Choice: 14 135 +/main/other/d211 +Label: PTP Property 0xd211 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +/main/other/d213 +Label: PTP Property 0xd213 +Type: MENU +Current: 3 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +/main/other/d21e +Label: PTP Property 0xd21e +Type: MENU +Current: 16777215 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 100 +Choice: 3 200 +Choice: 4 400 +Choice: 5 800 +Choice: 6 1600 +Choice: 7 3200 +Choice: 8 6400 +Choice: 9 12800 +Choice: 10 16000 +Choice: 11 102400 +Choice: 12 33554431 +Choice: 13 16777241 +Choice: 14 16777266 +Choice: 15 16777280 +Choice: 16 16777296 +Choice: 17 16777316 +Choice: 18 16777341 +Choice: 19 16777376 +Choice: 20 16777416 +Choice: 21 16777466 +Choice: 22 16777536 +Choice: 23 16777616 +Choice: 24 16777716 +Choice: 25 16777856 +Choice: 26 16778016 +Choice: 27 16778216 +Choice: 28 16778466 +Choice: 29 16778816 +Choice: 30 16779216 +Choice: 31 16779716 +Choice: 32 16780416 +Choice: 33 16781216 +Choice: 34 16782216 +Choice: 35 16783616 +Choice: 36 16785216 +Choice: 37 16787216 +Choice: 38 16790016 +Choice: 39 16793216 +Choice: 40 16802816 +/main/other/d21b +Label: PTP Property 0xd21b +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32928 +Choice: 24 32929 +Choice: 25 32930 +Choice: 26 32931 +Choice: 27 32932 +Choice: 28 32933 +Choice: 29 32934 +/main/other/d21d +Label: PTP Property 0xd21d +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +/main/other/d217 +Label: PTP Property 0xd217 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d218 +Label: PTP Property 0xd218 +Type: MENU +Current: 43 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +Choice: 3 2 +Choice: 4 3 +Choice: 5 4 +Choice: 6 5 +Choice: 7 6 +Choice: 8 7 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 12 +Choice: 14 13 +Choice: 15 14 +Choice: 16 15 +Choice: 17 16 +Choice: 18 17 +Choice: 19 18 +Choice: 20 19 +Choice: 21 20 +Choice: 22 21 +Choice: 23 22 +Choice: 24 23 +Choice: 25 24 +Choice: 26 25 +Choice: 27 26 +Choice: 28 27 +Choice: 29 28 +Choice: 30 29 +Choice: 31 30 +Choice: 32 31 +Choice: 33 32 +Choice: 34 33 +Choice: 35 34 +Choice: 36 35 +Choice: 37 36 +Choice: 38 37 +Choice: 39 38 +Choice: 40 39 +Choice: 41 40 +Choice: 42 41 +Choice: 43 42 +Choice: 44 43 +Choice: 45 44 +Choice: 46 45 +Choice: 47 46 +Choice: 48 47 +Choice: 49 48 +Choice: 50 49 +Choice: 51 50 +Choice: 52 51 +Choice: 53 52 +Choice: 54 53 +Choice: 55 54 +Choice: 56 55 +Choice: 57 56 +Choice: 58 57 +Choice: 59 58 +Choice: 60 59 +Choice: 61 60 +Choice: 62 61 +Choice: 63 62 +Choice: 64 63 +Choice: 65 64 +Choice: 66 65 +Choice: 67 66 +Choice: 68 67 +Choice: 69 68 +Choice: 70 69 +Choice: 71 70 +Choice: 72 71 +Choice: 73 72 +Choice: 74 73 +Choice: 75 74 +Choice: 76 75 +Choice: 77 76 +Choice: 78 77 +Choice: 79 78 +Choice: 80 79 +Choice: 81 80 +Choice: 82 81 +Choice: 83 82 +Choice: 84 83 +Choice: 85 84 +Choice: 86 85 +Choice: 87 86 +Choice: 88 87 +Choice: 89 88 +Choice: 90 89 +Choice: 91 90 +Choice: 92 91 +Choice: 93 92 +Choice: 94 93 +Choice: 95 94 +Choice: 96 95 +Choice: 97 96 +Choice: 98 97 +Choice: 99 98 +Choice: 100 99 +Choice: 101 100 +/main/other/d219 +Label: PTP Property 0xd219 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +/main/other/d214 +Label: PTP Property 0xd214 +Type: RANGE +Current: 2,82368e+07 +Bottom: 0 +Top: 4,29497e+09 +Step: 1 +/main/other/d215 +Label: PTP Property 0xd215 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +/main/other/d220 +Label: PTP Property 0xd220 +Type: TEXT +Current: (null) + +Kamerazusammenfassung: +Hersteller: Sony Corporation +Modell: SLT-A58 + Version: 1.0 + Seriennummer: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Beschreibung der Vendor Extension: Sony PTP Extensions + +Aufnahmeformate: +Anzeigeformate: JPEG, Unknown(b301), Unknown(b101) + +Fähigkeiten des Geräts: + Dateien Download, kein Löschen von Dateien, kein Hochladen von Dateien + Keine Aufnahme von Bildern, keine Offene Aufnahme, Sony Aufnahme +Informationen über Speichermedium: + +Properties des Geräts: +Kompressions Parameter(0x5004):(readwrite) (type=0x2) Enumeration [2,3,16,19] value: JPEG Fine (2) + works, controla + 1 - 1 +Weißabgleich(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32786,32803] value: Automatic (2) + works, controla + 1 - 1 +F-Nummer(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/5 (500) + works, controlb + 0 - 1 +Fokusmodus(0x500a):(readwrite) (type=0x4) Enumeration [1,2,3,32772,32773,32775] value: 32773 + works, controla + 0 - 2 +Belichtungsmessmodus(0x500b):(readwrite) (type=0x4) Enumeration [4,1,2] value: Average (1) + works, controla + 0 - 2 +Blitzmodus(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32771,32772,32817,32818] value: Fill flash (3) + only some are reachable, works with controla, some work only with flash popped open. weird. + 0 - 0 + +Belichtungs Programm Modus(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32833,7,32785,32789,32788,32786,32787,32790,32791,32864,32817,32819,32880] value: 32768 + not fully done, weird + 0 - 2 + +Belichtungskompensation(0x5010):(readwrite) (type=0x3) Enumeration [0,3000,2700,2300,2000,1700,1300,1000,700,300,-300,-700,-1000,-1300,-1700,-2000,-2300,-2700,-3000] value: 0,0 stops (0) + works, controlb + 0 - 1 + +Bildaufnahme Modus(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32786,32773,32772] value: Single Shot (1) + works, controla + 1 - 1 + +Property 0xd200:(readwrite) (type=0x3) Enumeration [0,2000,1700,1300,1000,700,300,-300,-700,-1000,-1300,-1700,-2000] value: 0 + 0 - 1 +Property 0xd201:(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 31 + 1 - 1 +ImageSize 0xd203:(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 + works, controlA + 1 - 1 +Shutterspeed 0xd20d:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65596 + Works, controlB + 0 - 1 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,8,9,10,4,5,6,7] value: 7 + 0 - 2 +Property 0xd20f:(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 + 1 - 0 +Property 0xd210:(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 + 1 - 1 +Property 0xd21c:(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +Property 0xd211:(readwrite) (type=0x2) Enumeration [1,2] value: 1 +Property 0xd213:(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO 0xd21e:(readwrite) (type=0x6) Enumeration [16777215,25,100,200,400,800,1600,3200,6400,12800,16000,102400,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816] value: 16777215 + works, controlB +Property 0xd21b:(readwrite) (type=0x4) Enumeration [32768] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd218:(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 98 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 28236800 +Property 0xd215:(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220:PTP Fehler 2002 beim Abfragen +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c4:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c8:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c7:(readwrite) (type=0x4) Enumeration [1,2] value: 1 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a65v.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a65v.txt new file mode 100644 index 00000000..2dd38233 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a65v.txt @@ -0,0 +1,42 @@ +Device info: +Manufacturer: Sony Corporation + Model: SLT-A65V + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0x00000011 +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 (Open session) + 0x1003 (Close session) + 0x1001 (Get device info) + 0x1004 (Get storage IDs) + 0x1005 (Get storage info) + 0x1006 (Get number of objects) + 0x1007 (Get object handles) + 0x1008 (Get object info) + 0x1009 (Get object) + 0x100a (Get thumbnail) + 0x1014 (Get device property description) + 0x1015 (Get device property value) + 0x1016 (Set device property value) + 0x101b (Get partial object) + 0x9801 (Unknown PTP_OC) + 0x9802 (Unknown PTP_OC) + 0x9803 (Unknown PTP_OC) + 0x9282 (Unknown PTP_OC) + 0x9280 (Unknown PTP_OC) + 0x9281 (Unknown PTP_OC) + 0x9805 (Unknown PTP_OC) +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a68.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a68.txt new file mode 100644 index 00000000..d77b0642 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a68.txt @@ -0,0 +1,1124 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: ILCA-68 + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: JPEG, Unknown(b301), ARW + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, Sony Capture + +Storage Devices Summary: + +Device Property Summary: +Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [2,3,4,16,19] value: 16 +White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32786,32800,32801,32802] value: 0 +F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/0 (0) +Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [1,2,3,32772,32773,32776,32774,32775] value: 0 +Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [4,1,32770] value: 0 +Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,1,4,3,5,32769,32771,32772,32817,32818] value: Undefined (0) +Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768,32769,2,3,4,1,32848,32849,32850,32851,32852,32833,7,32785,32789,32788,32786,32787,32790,32791,32792] value: P (2) +Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [0,1,2,5000,4700,4500,4300,4000,3700,3500,3300,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000,-3300,-3500,-3700,-4000,-4300,-4500,-4700,-5000] value: 0,0 stops (0) +Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32786,32773,32772,32776,32777,33591,34103,33623,34135,33655,34167,33553,34065,33569,34081,33585,34097,33590,34102,33622,34134,33654,34166,33552,34064,33568,34080,33584,34096,32792,32808,32793,32809] value: 0 +DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [0,1,2,3000,2700,2500,2300,2000,1700,1500,1300,1000,700,500,300,-300,-500,-700,-1000,-1300,-1500,-1700,-2000,-2300,-2500,-2700,-3000] value: 0 +DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21,32,33,34,35,36,37,38] value: 0 +Image size(0xd203):(readwrite) (type=0x2) Enumeration [4,14,15,5,6,7,16,17,18,8,19,9,10,11,20,21,12,23,24,13,1,2,3] value: 0 +Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 0 +Property 0xd20e:(readwrite) (type=0x2) Enumeration [1,2,3,8,9,10,4,5,6,7] value: 6 +Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0 +CC Filter(0xd210):(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +AB Filter(0xd21c):(readwrite) (type=0x2) Range [121 - 135, step 1] value: 128 +Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,2] value: 0 +Focus status(0xd213):(readwrite) (type=0x2) Enumeration [1,2,3,5,6,7] value: 1 +ISO(0xd21e):(readwrite) (type=0x6) Enumeration [16777215,25,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600,102400,33554431,16777241,16777266,16777280,16777296,16777316,16777341,16777376,16777416,16777466,16777536,16777616,16777716,16777856,16778016,16778216,16778466,16778816,16779216,16779716,16780416,16781216,16782216,16783616,16785216,16787216,16790016,16793216,16802816] value: 0 +Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768,32769,32770,32771,32772,32773,32784,32800,32801,32816,32832,32848,32849,32850,32851,32864,32880,32881,32882,32896,32897,32898,32912,32928,32929,32930,32931,32932,32933,32934,32944,32960,32961,32962] value: 32768 +Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 +Property 0xd21f:(readwrite) (type=0x2) Enumeration [2,1] value: 0 +Property 0xd217:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Battery Level(0xd218):(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 77 +Property 0xd219:(readwrite) (type=0x2) Enumeration [2,1] value: 1 +Property 0xd212:(readwrite) (type=0x2) Range [0 - 15, step 1] value: 0 +Property 0xd221:(readwrite) (type=0x2) Enumeration [0,1,2] value: 0 +Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 33911808 +Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 +Property 0xd220: error 2002 on query. +Property 0xd2c1:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c2:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c4:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c9:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 +Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 + +/main/actions/autofocus +Label: Auto-Focus +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/capture +Label: Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/bulb +Label: Bulb Mode +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/movie +Label: Movie Capture +Readonly: 0 +Type: TOGGLE +Current: 2 +END +/main/actions/opcode +Label: PTP Opcode +Readonly: 0 +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +END +/main/status/serialnumber +Label: Serial Number +Readonly: 0 +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +END +/main/status/manufacturer +Label: Camera Manufacturer +Readonly: 0 +Type: TEXT +Current: Sony Corporation +END +/main/status/cameramodel +Label: Camera Model +Readonly: 0 +Type: TEXT +Current: ILCA-68 +END +/main/status/deviceversion +Label: Device Version +Readonly: 0 +Type: TEXT +Current: 1.0 +END +/main/status/vendorextension +Label: Vendor Extension +Readonly: 0 +Type: TEXT +Current: Sony PTP Extensions +END +/main/status/batterylevel +Label: Battery Level +Readonly: 0 +Type: TEXT +Current: 77% +END +/main/imgsettings/imagesize +Label: Image Size +Readonly: 0 +Type: RADIO +Current: Large +Choice: 0 Large +Choice: 1 Medium +Choice: 2 Small +END +/main/imgsettings/iso +Label: ISO Speed +Readonly: 0 +Type: RADIO +Current: 1000 +Choice: 0 Auto ISO +Choice: 1 25 +Choice: 2 100 +Choice: 3 125 +Choice: 4 160 +Choice: 5 200 +Choice: 6 250 +Choice: 7 320 +Choice: 8 400 +Choice: 9 500 +Choice: 10 640 +Choice: 11 800 +Choice: 12 1000 +Choice: 13 1250 +Choice: 14 1600 +Choice: 15 2000 +Choice: 16 2500 +Choice: 17 3200 +Choice: 18 4000 +Choice: 19 5000 +Choice: 20 6400 +Choice: 21 8000 +Choice: 22 10000 +Choice: 23 12800 +Choice: 24 16000 +Choice: 25 20000 +Choice: 26 25600 +Choice: 27 102400 +Choice: 28 Auto ISO Multi Frame Noise Reduction +Choice: 29 25 Multi Frame Noise Reduction +Choice: 30 50 Multi Frame Noise Reduction +Choice: 31 64 Multi Frame Noise Reduction +Choice: 32 80 Multi Frame Noise Reduction +Choice: 33 100 Multi Frame Noise Reduction +Choice: 34 125 Multi Frame Noise Reduction +Choice: 35 160 Multi Frame Noise Reduction +Choice: 36 200 Multi Frame Noise Reduction +Choice: 37 250 Multi Frame Noise Reduction +Choice: 38 320 Multi Frame Noise Reduction +Choice: 39 400 Multi Frame Noise Reduction +Choice: 40 500 Multi Frame Noise Reduction +Choice: 41 640 Multi Frame Noise Reduction +Choice: 42 800 Multi Frame Noise Reduction +Choice: 43 1000 Multi Frame Noise Reduction +Choice: 44 1250 Multi Frame Noise Reduction +Choice: 45 1600 Multi Frame Noise Reduction +Choice: 46 2000 Multi Frame Noise Reduction +Choice: 47 2500 Multi Frame Noise Reduction +Choice: 48 3200 Multi Frame Noise Reduction +Choice: 49 4000 Multi Frame Noise Reduction +Choice: 50 5000 Multi Frame Noise Reduction +Choice: 51 6400 Multi Frame Noise Reduction +Choice: 52 8000 Multi Frame Noise Reduction +Choice: 53 10000 Multi Frame Noise Reduction +Choice: 54 12800 Multi Frame Noise Reduction +Choice: 55 16000 Multi Frame Noise Reduction +Choice: 56 25600 Multi Frame Noise Reduction +END +/main/imgsettings/colortemperature +Label: Color Temperature +Readonly: 0 +Type: TEXT +Current: 0 +END +/main/imgsettings/whitebalance +Label: WhiteBalance +Readonly: 0 +Type: RADIO +Current: Automatic +Choice: 0 Automatic +Choice: 1 Daylight +Choice: 2 Shade +Choice: 3 Cloudy +Choice: 4 Tungsten +Choice: 5 Fluorescent: Warm White +Choice: 6 Fluorescent: Cold White +Choice: 7 Fluorescent: Day White +Choice: 8 Fluorescent: Daylight +Choice: 9 Flash +Choice: 10 Choose Color Temperature +Choice: 11 Preset 1 +Choice: 12 Preset 2 +Choice: 13 Preset 3 +END +/main/capturesettings/exposurecompensation +Label: Exposure Compensation +Readonly: 0 +Type: RADIO +Current: 0 +Choice: 0 0 +Choice: 1 0,001 +Choice: 2 0,002 +Choice: 3 5 +Choice: 4 4,7 +Choice: 5 4,5 +Choice: 6 4,3 +Choice: 7 4 +Choice: 8 3,7 +Choice: 9 3,5 +Choice: 10 3,3 +Choice: 11 3 +Choice: 12 2,7 +Choice: 13 2,5 +Choice: 14 2,3 +Choice: 15 2 +Choice: 16 1,7 +Choice: 17 1,5 +Choice: 18 1,3 +Choice: 19 1 +Choice: 20 0,7 +Choice: 21 0,5 +Choice: 22 0,3 +Choice: 23 -0,3 +Choice: 24 -0,5 +Choice: 25 -0,7 +Choice: 26 -1 +Choice: 27 -1,3 +Choice: 28 -1,5 +Choice: 29 -1,7 +Choice: 30 -2 +Choice: 31 -2,3 +Choice: 32 -2,5 +Choice: 33 -2,7 +Choice: 34 -3 +Choice: 35 -3,3 +Choice: 36 -3,5 +Choice: 37 -3,7 +Choice: 38 -4 +Choice: 39 -4,3 +Choice: 40 -4,5 +Choice: 41 -4,7 +Choice: 42 -5 +END +/main/capturesettings/flashmode +Label: Flash Mode +Readonly: 0 +Type: RADIO +Current: Unknown value 0000 +Choice: 0 Flash off +Choice: 1 Automatic Flash +Choice: 2 Red-eye automatic +Choice: 3 Fill flash +Choice: 4 Red-eye fill +Choice: 5 Unknown value 8001 +Choice: 6 Rear Curtain Sync +Choice: 7 Wireless Sync +Choice: 8 Unknown value 8031 +Choice: 9 Slow Sync +Choice: 10 Unknown value 0000 +END +/main/capturesettings/f-number +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 655,35 +Step: 0,01 +END +/main/capturesettings/imagequality +Label: Image Quality +Readonly: 0 +Type: RADIO +Current: Standard +Choice: 0 Standard +Choice: 1 Fine +Choice: 2 Extra Fine +Choice: 3 RAW +Choice: 4 RAW+JPEG +END +/main/capturesettings/focusmode +Label: Focus Mode +Readonly: 0 +Type: RADIO +Current: Manual +Choice: 0 Manual +Choice: 1 Automatic +Choice: 2 Automatic Macro +Choice: 3 AF-C +Choice: 4 AF-A +Choice: 5 Unknown value 8008 +Choice: 6 DMF +Choice: 7 Unknown value 8007 +END +/main/capturesettings/expprogram +Label: Exposure Program +Readonly: 0 +Type: RADIO +Current: P +Choice: 0 Intelligent Auto +Choice: 1 Superior Auto +Choice: 2 P +Choice: 3 A +Choice: 4 S +Choice: 5 M +Choice: 6 Movie +Choice: 7 Unknown value 8051 +Choice: 8 Unknown value 8052 +Choice: 9 Unknown value 8053 +Choice: 10 Unknown value 8054 +Choice: 11 Sweep Panorama +Choice: 12 Portrait +Choice: 13 Sports Action +Choice: 14 Macro +Choice: 15 Landscape +Choice: 16 Sunset +Choice: 17 Night Scene +Choice: 18 Hand-held Twilight +Choice: 19 Night Portrait +Choice: 20 Unknown value 8018 +END +/main/capturesettings/aspectratio +Label: Aspect Ratio +Readonly: 0 +Type: RADIO +Current: 3:2 +Choice: 0 3:2 +Choice: 1 16:9 +END +/main/capturesettings/capturemode +Label: Still Capture Mode +Readonly: 0 +Type: RADIO +Current: Single Shot +Choice: 0 Single Shot +Choice: 1 Burst +Choice: 2 Continuous Low Speed +Choice: 3 Selftimer 2s +Choice: 4 Selftimer 10s +Choice: 5 Selftimer 10s 3 Pictures +Choice: 6 Selftimer 10s 5 Pictures +Choice: 7 Bracketing C 0.3 Steps 3 Pictures +Choice: 8 Bracketing C 0.3 Steps 5 Pictures +Choice: 9 Bracketing C 0.5 Steps 3 Pictures +Choice: 10 Bracketing C 0.5 Steps 5 Pictures +Choice: 11 Bracketing C 0.7 Steps 3 Pictures +Choice: 12 Bracketing C 0.7 Steps 5 Pictures +Choice: 13 Bracketing C 1.0 Steps 3 Pictures +Choice: 14 Bracketing C 1.0 Steps 5 Pictures +Choice: 15 Bracketing C 2.0 Steps 3 Pictures +Choice: 16 Bracketing C 2.0 Steps 5 Pictures +Choice: 17 Bracketing C 3.0 Steps 3 Pictures +Choice: 18 Bracketing C 3.0 Steps 5 Pictures +Choice: 19 Bracketing S 0.3 Steps 3 Pictures +Choice: 20 Bracketing S 0.3 Steps 5 Pictures +Choice: 21 Bracketing S 0.5 Steps 3 Pictures +Choice: 22 Bracketing S 0.5 Steps 5 Pictures +Choice: 23 Bracketing S 0.7 Steps 3 Pictures +Choice: 24 Bracketing S 0.7 Steps 5 Pictures +Choice: 25 Bracketing S 1.0 Steps 3 Pictures +Choice: 26 Bracketing S 1.0 Steps 5 Pictures +Choice: 27 Bracketing S 2.0 Steps 3 Pictures +Choice: 28 Bracketing S 2.0 Steps 5 Pictures +Choice: 29 Bracketing S 3.0 Steps 3 Pictures +Choice: 30 Bracketing S 3.0 Steps 5 Pictures +Choice: 31 Bracketing WB Lo +Choice: 32 Bracketing WB Hi +Choice: 33 Bracketing DRO Lo +Choice: 34 Bracketing DRO Hi +END +/main/capturesettings/exposuremetermode +Label: Exposure Metering Mode +Readonly: 0 +Type: RADIO +Current: Average +Choice: 0 Center Spot +Choice: 1 Average +Choice: 2 Unknown value 8002 +END +/main/capturesettings/shutterspeed +Label: Shutter Speed +Readonly: 0 +Type: RADIO +Current: 1/60 +END +/main/other/5004 +Label: Compression Setting +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 3 +Choice: 2 4 +Choice: 3 16 +Choice: 4 19 +END +/main/other/5005 +Label: White Balance +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 2 +Choice: 1 4 +Choice: 2 32785 +Choice: 3 32784 +Choice: 4 6 +Choice: 5 32769 +Choice: 6 32770 +Choice: 7 32771 +Choice: 8 32772 +Choice: 9 7 +Choice: 10 32786 +Choice: 11 32800 +Choice: 12 32801 +Choice: 13 32802 +END +/main/other/5007 +Label: F-Number +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/500a +Label: Focus Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 32772 +Choice: 4 32773 +Choice: 5 32776 +Choice: 6 32774 +Choice: 7 32775 +END +/main/other/500b +Label: Exposure Metering Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 4 +Choice: 1 1 +Choice: 2 32770 +END +/main/other/500c +Label: Flash Mode +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 2 +Choice: 1 1 +Choice: 2 4 +Choice: 3 3 +Choice: 4 5 +Choice: 5 32769 +Choice: 6 32771 +Choice: 7 32772 +Choice: 8 32817 +Choice: 9 32818 +END +/main/other/500e +Label: Exposure Program Mode +Readonly: 0 +Type: MENU +Current: 2 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 1 +Choice: 6 32848 +Choice: 7 32849 +Choice: 8 32850 +Choice: 9 32851 +Choice: 10 32852 +Choice: 11 32833 +Choice: 12 7 +Choice: 13 32785 +Choice: 14 32789 +Choice: 15 32788 +Choice: 16 32786 +Choice: 17 32787 +Choice: 18 32790 +Choice: 19 32791 +Choice: 20 32792 +END +/main/other/5010 +Label: Exposure Bias Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 5000 +Choice: 4 4700 +Choice: 5 4500 +Choice: 6 4300 +Choice: 7 4000 +Choice: 8 3700 +Choice: 9 3500 +Choice: 10 3300 +Choice: 11 3000 +Choice: 12 2700 +Choice: 13 2500 +Choice: 14 2300 +Choice: 15 2000 +Choice: 16 1700 +Choice: 17 1500 +Choice: 18 1300 +Choice: 19 1000 +Choice: 20 700 +Choice: 21 500 +Choice: 22 300 +Choice: 23 -300 +Choice: 24 -500 +Choice: 25 -700 +Choice: 26 -1000 +Choice: 27 -1300 +Choice: 28 -1500 +Choice: 29 -1700 +Choice: 30 -2000 +Choice: 31 -2300 +Choice: 32 -2500 +Choice: 33 -2700 +Choice: 34 -3000 +Choice: 35 -3300 +Choice: 36 -3500 +Choice: 37 -3700 +Choice: 38 -4000 +Choice: 39 -4300 +Choice: 40 -4500 +Choice: 41 -4700 +Choice: 42 -5000 +END +/main/other/5013 +Label: Still Capture Mode +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 32786 +Choice: 3 32773 +Choice: 4 32772 +Choice: 5 32776 +Choice: 6 32777 +Choice: 7 33591 +Choice: 8 34103 +Choice: 9 33623 +Choice: 10 34135 +Choice: 11 33655 +Choice: 12 34167 +Choice: 13 33553 +Choice: 14 34065 +Choice: 15 33569 +Choice: 16 34081 +Choice: 17 33585 +Choice: 18 34097 +Choice: 19 33590 +Choice: 20 34102 +Choice: 21 33622 +Choice: 22 34134 +Choice: 23 33654 +Choice: 24 34166 +Choice: 25 33552 +Choice: 26 34064 +Choice: 27 33568 +Choice: 28 34080 +Choice: 29 33584 +Choice: 30 34096 +Choice: 31 32792 +Choice: 32 32808 +Choice: 33 32793 +Choice: 34 32809 +END +/main/other/d200 +Label: DOC Compensation +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3000 +Choice: 4 2700 +Choice: 5 2500 +Choice: 6 2300 +Choice: 7 2000 +Choice: 8 1700 +Choice: 9 1500 +Choice: 10 1300 +Choice: 11 1000 +Choice: 12 700 +Choice: 13 500 +Choice: 14 300 +Choice: 15 -300 +Choice: 16 -500 +Choice: 17 -700 +Choice: 18 -1000 +Choice: 19 -1300 +Choice: 20 -1500 +Choice: 21 -1700 +Choice: 22 -2000 +Choice: 23 -2300 +Choice: 24 -2500 +Choice: 25 -2700 +Choice: 26 -3000 +END +/main/other/d201 +Label: DRangeOptimize +Readonly: 0 +Type: MENU +Current: 31 +Choice: 0 1 +Choice: 1 31 +Choice: 2 17 +Choice: 3 18 +Choice: 4 19 +Choice: 5 20 +Choice: 6 21 +Choice: 7 32 +Choice: 8 33 +Choice: 9 34 +Choice: 10 35 +Choice: 11 36 +Choice: 12 37 +Choice: 13 38 +END +/main/other/d203 +Label: Image size +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +END +/main/other/d20d +Label: Shutter speed +Readonly: 0 +Type: RANGE +Current: 65596 +Bottom: 0 +Top: 4,29497e+09 +Step: 1 +END +/main/other/d20e +Label: PTP Property 0xd20e +Readonly: 0 +Type: MENU +Current: 6 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 8 +Choice: 4 9 +Choice: 5 10 +Choice: 6 4 +Choice: 7 5 +Choice: 8 6 +Choice: 9 7 +END +/main/other/d20f +Label: Color temperature +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 2500 +Top: 9900 +Step: 100 +END +/main/other/d210 +Label: CC Filter +Readonly: 0 +Type: MENU +Current: 128 +Choice: 0 121 +Choice: 1 122 +Choice: 2 123 +Choice: 3 124 +Choice: 4 125 +Choice: 5 126 +Choice: 6 127 +Choice: 7 128 +Choice: 8 129 +Choice: 9 130 +Choice: 10 131 +Choice: 11 132 +Choice: 12 133 +Choice: 13 134 +Choice: 14 135 +END +/main/other/d21c +Label: AB Filter +Readonly: 0 +Type: MENU +Current: 128 +Choice: 0 121 +Choice: 1 122 +Choice: 2 123 +Choice: 3 124 +Choice: 4 125 +Choice: 5 126 +Choice: 6 127 +Choice: 7 128 +Choice: 8 129 +Choice: 9 130 +Choice: 10 131 +Choice: 11 132 +Choice: 12 133 +Choice: 13 134 +Choice: 14 135 +END +/main/other/d211 +Label: Aspect Ratio +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d213 +Label: Focus status +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +Choice: 2 3 +Choice: 3 5 +Choice: 4 6 +Choice: 5 7 +END +/main/other/d21e +Label: ISO +Readonly: 0 +Type: MENU +Current: 1000 +Choice: 0 16777215 +Choice: 1 25 +Choice: 2 100 +Choice: 3 125 +Choice: 4 160 +Choice: 5 200 +Choice: 6 250 +Choice: 7 320 +Choice: 8 400 +Choice: 9 500 +Choice: 10 640 +Choice: 11 800 +Choice: 12 1000 +Choice: 13 1250 +Choice: 14 1600 +Choice: 15 2000 +Choice: 16 2500 +Choice: 17 3200 +Choice: 18 4000 +Choice: 19 5000 +Choice: 20 6400 +Choice: 21 8000 +Choice: 22 10000 +Choice: 23 12800 +Choice: 24 16000 +Choice: 25 20000 +Choice: 26 25600 +Choice: 27 102400 +Choice: 28 33554431 +Choice: 29 16777241 +Choice: 30 16777266 +Choice: 31 16777280 +Choice: 32 16777296 +Choice: 33 16777316 +Choice: 34 16777341 +Choice: 35 16777376 +Choice: 36 16777416 +Choice: 37 16777466 +Choice: 38 16777536 +Choice: 39 16777616 +Choice: 40 16777716 +Choice: 41 16777856 +Choice: 42 16778016 +Choice: 43 16778216 +Choice: 44 16778466 +Choice: 45 16778816 +Choice: 46 16779216 +Choice: 47 16779716 +Choice: 48 16780416 +Choice: 49 16781216 +Choice: 50 16782216 +Choice: 51 16783616 +Choice: 52 16785216 +Choice: 53 16787216 +Choice: 54 16790016 +Choice: 55 16793216 +Choice: 56 16802816 +END +/main/other/d21b +Label: Picture Effect +Readonly: 0 +Type: MENU +Current: 32768 +Choice: 0 32768 +Choice: 1 32769 +Choice: 2 32770 +Choice: 3 32771 +Choice: 4 32772 +Choice: 5 32773 +Choice: 6 32784 +Choice: 7 32800 +Choice: 8 32801 +Choice: 9 32816 +Choice: 10 32832 +Choice: 11 32848 +Choice: 12 32849 +Choice: 13 32850 +Choice: 14 32851 +Choice: 15 32864 +Choice: 16 32880 +Choice: 17 32881 +Choice: 18 32882 +Choice: 19 32896 +Choice: 20 32897 +Choice: 21 32898 +Choice: 22 32912 +Choice: 23 32928 +Choice: 24 32929 +Choice: 25 32930 +Choice: 26 32931 +Choice: 27 32932 +Choice: 28 32933 +Choice: 29 32934 +Choice: 30 32944 +Choice: 31 32960 +Choice: 32 32961 +Choice: 33 32962 +END +/main/other/d21d +Label: PTP Property 0xd21d +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d21f +Label: PTP Property 0xd21f +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d217 +Label: PTP Property 0xd217 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d218 +Label: Battery Level +Readonly: 0 +Type: MENU +Current: 77 +Choice: 0 -1 +Choice: 1 0 +Choice: 2 1 +Choice: 3 2 +Choice: 4 3 +Choice: 5 4 +Choice: 6 5 +Choice: 7 6 +Choice: 8 7 +Choice: 9 8 +Choice: 10 9 +Choice: 11 10 +Choice: 12 11 +Choice: 13 12 +Choice: 14 13 +Choice: 15 14 +Choice: 16 15 +Choice: 17 16 +Choice: 18 17 +Choice: 19 18 +Choice: 20 19 +Choice: 21 20 +Choice: 22 21 +Choice: 23 22 +Choice: 24 23 +Choice: 25 24 +Choice: 26 25 +Choice: 27 26 +Choice: 28 27 +Choice: 29 28 +Choice: 30 29 +Choice: 31 30 +Choice: 32 31 +Choice: 33 32 +Choice: 34 33 +Choice: 35 34 +Choice: 36 35 +Choice: 37 36 +Choice: 38 37 +Choice: 39 38 +Choice: 40 39 +Choice: 41 40 +Choice: 42 41 +Choice: 43 42 +Choice: 44 43 +Choice: 45 44 +Choice: 46 45 +Choice: 47 46 +Choice: 48 47 +Choice: 49 48 +Choice: 50 49 +Choice: 51 50 +Choice: 52 51 +Choice: 53 52 +Choice: 54 53 +Choice: 55 54 +Choice: 56 55 +Choice: 57 56 +Choice: 58 57 +Choice: 59 58 +Choice: 60 59 +Choice: 61 60 +Choice: 62 61 +Choice: 63 62 +Choice: 64 63 +Choice: 65 64 +Choice: 66 65 +Choice: 67 66 +Choice: 68 67 +Choice: 69 68 +Choice: 70 69 +Choice: 71 70 +Choice: 72 71 +Choice: 73 72 +Choice: 74 73 +Choice: 75 74 +Choice: 76 75 +Choice: 77 76 +Choice: 78 77 +Choice: 79 78 +Choice: 80 79 +Choice: 81 80 +Choice: 82 81 +Choice: 83 82 +Choice: 84 83 +Choice: 85 84 +Choice: 86 85 +Choice: 87 86 +Choice: 88 87 +Choice: 89 88 +Choice: 90 89 +Choice: 91 90 +Choice: 92 91 +Choice: 93 92 +Choice: 94 93 +Choice: 95 94 +Choice: 96 95 +Choice: 97 96 +Choice: 98 97 +Choice: 99 98 +Choice: 100 99 +Choice: 101 100 +END +/main/other/d219 +Label: PTP Property 0xd219 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 2 +Choice: 1 1 +END +/main/other/d212 +Label: PTP Property 0xd212 +Readonly: 0 +Type: MENU +Current: 0 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +END +/main/other/d221 +Label: PTP Property 0xd221 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +END +/main/other/d214 +Label: PTP Property 0xd214 +Readonly: 0 +Type: RANGE +Current: 3,39118e+07 +Bottom: 0 +Top: 4,29497e+09 +Step: 1 +END +/main/other/d215 +Label: Objects in memory +Readonly: 0 +Type: RANGE +Current: 0 +Bottom: 0 +Top: 65535 +Step: 1 +END +/main/other/d2c1 +Label: PTP Property 0xd2c1 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c2 +Label: PTP Property 0xd2c2 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c4 +Label: PTP Property 0xd2c4 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c3 +Label: PTP Property 0xd2c3 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c9 +Label: PTP Property 0xd2c9 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c8 +Label: Movie +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c5 +Label: PTP Property 0xd2c5 +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END +/main/other/d2c7 +Label: Still Image +Readonly: 0 +Type: MENU +Current: 1 +Choice: 0 1 +Choice: 1 2 +END diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a77.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a77.txt new file mode 100644 index 00000000..c71fba62 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a77.txt @@ -0,0 +1,134 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: SLT-A77V + Version: 1.0 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0xffffffff (1.0) + +Capture Formats: +Display Formats: Association/Directory, Executable, MPEG, JPEG, MP4, Unknown(b301), Undefined Type, Unknown(b101) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: Storage Media + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Only + Maximum Capability: 7939817472 (7572 MB) + Free Space (Bytes): 900071424 (858 MB) + Free Space (Images): -1 + +Device Property Summary: +Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 100% (100) +Friendly Device Name(0xd402):(read only) (type=0xffff) SLT-A77V ('SLT-A77V') +Session Initiator Info(0xd406):(readwrite) (type=0xffff) '(null)' +Perceived Device Type(0xd407):(read only) (type=0x6) 1 +Property 0xd303:(read only) (type=0x2) 1 + +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: SLT-A77V +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 1.0 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: None +/main/other/5001 +Label: Battery Level +Type: MENU +Current: 100 +Choice: 0 0 +Choice: 1 1 +Choice: 2 2 +Choice: 3 3 +Choice: 4 4 +Choice: 5 5 +Choice: 6 6 +Choice: 7 7 +Choice: 8 8 +Choice: 9 9 +Choice: 10 10 +Choice: 11 11 +Choice: 12 12 +Choice: 13 13 +Choice: 14 14 +Choice: 15 15 +Choice: 16 16 +Choice: 17 17 +Choice: 18 18 +Choice: 19 19 +Choice: 20 20 +Choice: 21 21 +Choice: 22 22 +Choice: 23 23 +Choice: 24 24 +Choice: 25 25 +Choice: 26 26 +Choice: 27 27 +Choice: 28 28 +Choice: 29 29 +Choice: 30 30 +Choice: 31 31 +Choice: 32 32 +Choice: 33 33 +Choice: 34 34 +Choice: 35 35 +Choice: 36 36 +Choice: 37 37 +Choice: 38 38 +Choice: 39 39 +Choice: 40 40 +Choice: 41 41 +Choice: 42 42 +Choice: 43 43 +Choice: 44 44 +Choice: 45 45 +Choice: 46 46 +Choice: 47 47 +Choice: 48 48 +Choice: 49 49 +Choice: 50 50 +Choice: 51 51 +Choice: 52 52 +Choice: 53 53 +Choice: 54 54 +Choice: 55 55 +Choice: 56 56 +Choice: 57 57 +Choice: 58 58 +Choice: 59 59 +Choice: 60 60 +Choice: 61 100 +/main/other/d402 +Label: Friendly Device Name +Type: TEXT +Current: SLT-A77V +/main/other/d406 +Label: Session Initiator Info +Type: TEXT +Current: (null) +/main/other/d407 +Label: Perceived Device Type +Type: TEXT +Current: 1 +/main/other/d303 +Label: PTP Property 0xd303 +Type: TEXT +Current: 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a900.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a900.txt new file mode 100644 index 00000000..0c67dd66 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a900.txt @@ -0,0 +1,91 @@ +Camera summary: +Manufacturer: Sony Corporation +Model: DSLR-A900 + Version: 01.0000 + +Capture Formats: +Display Formats: Script, JPEG, Unknown(b101) + +Device Capabilities: + File Download, No File Deletion, File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: +store_00010001: + StorageDescription: None + VolumeLabel: None + Storage Type: Removable RAM (memory card) + Filesystemtype: Generic Hierarchical + Access Capability: Read-Write + Maximum Capability: 32009093120 (30526 MB) + Free Space (Bytes): 31046238208 (29608 MB) + Free Space (Images): -1 + +Device Property Summary: + +Device info: +Manufacturer: Sony Corporation + Model: DSLR-A900 + device version: 01.0000 + serial number: '(null)' +Vendor extension ID: 0x00000011 +Vendor extension version: 100 +Vendor extension description: Sony PTP Extensions +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x101b + 0x9201 + 0x9202 + 0x9203 + 0x9204 + 0x9205 + 0x9206 + 0x9207 + 0x9208 +Events Supported: + 0x4001 + 0x4004 + 0x4005 + 0xc201 + 0xc202 + 0xc203 +Device Properties Supported: + +sony code: 5004 +sony code: 5005 +sony code: 5007 +sony code: 500a +sony code: 500b +sony code: 500c +sony code: 500e +sony code: 5010 +sony code: 5013 +sony code: d200 +sony code: d201 +sony code: d203 +sony code: d20d +sony code: d20e +sony code: d20f +sony code: d210 +sony code: d211 +sony code: d212 +sony code: d213 +sony code: d214 +sony code: d215 +sony code: d216 +sony code: d217 +sony code: d218 +sony code: d219 +sony code: d21a + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a99v.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a99v.txt new file mode 100644 index 00000000..f2ab8fce --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-slt-a99v.txt @@ -0,0 +1,45 @@ +Device info: +Manufacturer: Sony Corporation + Model: SLT-A99V + device version: 1.0 + serial number: '0000000000000000nnnnnnnnnnnnnnnn' +Vendor extension ID: 0xffffffff +Vendor extension version: 100 +Vendor extension description: (null) +Functional Mode: 0x0000 +PTP Standard Version: 100 +Supported operations: + 0x1002 + 0x1003 + 0x1001 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100a + 0x1014 + 0x1015 + 0x1016 + 0x101b + 0x9801 + 0x9802 + 0x9803 + 0x9805 + 0x9280 + 0x9281 + 0x9282 + 0x9283 + 0x9284 + 0x9285 +Events Supported: + 0x4004 + 0x4005 + 0x4006 +Device Properties Supported: + 0x5001 + 0xd402 + 0xd406 + 0xd407 + 0xd303 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-umc-r10c.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-umc-r10c.txt new file mode 100644 index 00000000..18f56ecf --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/sony-umc-r10c.txt @@ -0,0 +1,70 @@ +Lsusb: +Bus 001 Device 002: ID 054c:0a79 Sony Corp. + +gphoto2 --auto-detect: +USB PTP Class Camera usb:001,002 + +LANG=C gphoto2 --summary >summary.txt: +Camera summary: +Manufacturer: Sony Corporation +Model: UMC-R10C + Version: 2.00 + Serial Number: 0000000000000000nnnnnnnnnnnnnnnn +Vendor Extension ID: 0x11 (1.0) +Vendor Extension Description: Sony PTP Extensions + +Capture Formats: +Display Formats: Association/Directory, MPEG, JPEG, Unknown(b982), Unknown(b301), Undefined Type, Unknown(b101), Unknown(b310) + +Device Capabilities: + File Download, No File Deletion, No File Upload + No Image Capture, No Open Capture, No vendor specific capture + +Storage Devices Summary: + +Device Property Summary: + +LANG=C gphoto2 --list-all-config >config.txt: +/main/actions/opcode +Label: PTP Opcode +Type: TEXT +Current: 0x1001,0xparam1,0xparam2 +/main/status/serialnumber +Label: Serial Number +Type: TEXT +Current: 0000000000000000nnnnnnnnnnnnnnnn +/main/status/manufacturer +Label: Camera Manufacturer +Type: TEXT +Current: Sony Corporation +/main/status/cameramodel +Label: Camera Model +Type: TEXT +Current: UMC-R10C +/main/status/deviceversion +Label: Device Version +Type: TEXT +Current: 2.00 +/main/status/vendorextension +Label: Vendor Extension +Type: TEXT +Current: Sony PTP Extensions + +gphoto2 --capture-image: + +*** Error *** +Sorry, your camera does not support generic capture +ERROR: Could not capture image. +ERROR: Could not capture. +*** Error (-6: 'Unsupported operation') *** + +For debugging messages, please use the --debug option. +Debugging messages may help finding a solution to your problem. +If you intend to send any error or debug messages to the gphoto +developer mailing list , please run +gphoto2 as follows: + + env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image + +Please make sure there is sufficient quoting around the arguments. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/toshiba-gigabeat.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/toshiba-gigabeat.txt new file mode 100644 index 00000000..27ccbd4a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/cameras/toshiba-gigabeat.txt @@ -0,0 +1,50 @@ +Device info: +Manufacturer: TOSHIBA COPORATIO + model: TOSHIBA gigabea + device version: 2.020 + serial number: 'xxxxxxxxxxxxxxxxxxx' +Vendor extension ID: 0x00000006 +Vendor extension description: microsoft.com: 1.0; microsoft.com/WMDRMPD: 10.1; microsoft.com/WMPPD: 10.0 +Supported operations: + 0x1001 + 0x1002 + 0x1003 + 0x1004 + 0x1005 + 0x1006 + 0x1007 + 0x1008 + 0x1009 + 0x100b + 0x100c + 0x100d + 0x100f + 0x1014 + 0x1015 + 0x1016 + 0x9801 + 0x9802 + 0x9805 + 0x9806 + 0x9803 + 0x9804 + 0x9807 + 0x9810 + 0x9811 + 0x9101 + 0x9102 + 0x9103 + 0x9104 + 0x9105 + 0x9106 + 0x9107 + 0x9108 + 0x9109 + 0x910a + 0x910b + 0x9201 +Events Supported: +Device Properties Supported: + 0xd101 + 0xd102 + 0xd402 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/canon-eos-customfunc.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/canon-eos-customfunc.txt new file mode 100644 index 00000000..a0512665 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/canon-eos-customfunc.txt @@ -0,0 +1,109 @@ +From: Axel Waggershauser + + + +To whom it may concern... ;-) + +attached is a patch to enable some _very_ low level (but therefore +general) access to the custom functions of (modern) EOS cameras. But +before anyone gets excited: this is nowhere near something like + + gphoto2 --set-config mirrorlockup=on + +instead it's more like + + gphoto2 --set-config +customfuncex=60,1,1,54,6,101,1,1,102,1,0,104,1,0,105,1,0,106,2,2,1,108,1,0 + + +The background details: There is a PTP property called CustomFuncEx +(hex code 0xd1a0) for accessing custom functions. Unfortunately, this +property is not like any other standard PTP property (like e.g. the +aperture property, which has exactly one meaning and one value at a +time and you can select a value from an automatically enumerated list +of supported values): + * the CustomFuncEx property represents all custom functions at the same time + * the list of available functions may differ from camera to camera + * there is no automatic enumeration of available values for +individual custom functions + * the individual custom functions can only be changed/accessed in +groups simultaneously +Therefore it does not fit into the libgphoto2 supplied structures to +access camera properties. And therefore I came up with this minimal +invasive patch with the downside of having a horrible user interface. + +A 'value' of the CustomFuncEx property is a list of numbers (4 byte +integers) that forms a two-level hierarchical structure of individual +enumerated custom functions. First level is the group of functions, +second level is the list of functions within that group. The 5DM3 +seems to have 3 groups (1,2,4), the 60D 4 groups (1,2,3,4). The groups +seem to be somewhat related to the different pages in the custom +functions menu structure on the camera. The first group of the 5DM3 +contains the individual functions numbered 101, 102, 104, 105, 106, +108. On the 60D it's 101, 102, 104, 105, 108, 10f (beware: those +numbers are all in base 16). To give an example: the 101 is the +"Exposure level increments" custom function. Each function may have 1 +to several individual (integer) values. Most of them have only 1 value +but e.g. the bracket-count function (number 106) is mapped to two +numbers. + +The complete structure of a valid CustomFuncEx property value +explained on the example +60,1,1,54,6, 101,1,1, 102,1,0, 104,1,0, 105,1,0, 106,2,2,1, 108,1,0 +is as follows (remember: every number is hex encoded): +1. size of the whole data set in bytes: here 0x60 = 96, i.e. 96/4=24 integers +2. number of groups in this data set: always 1 +3. group id: here 1, I've seen 1, 2, 3 and 4 +4. size of the group part in bytes: here 0x54 = 84, i.e. 84/4=21 integers +5. number of individual custom functions in the group: here 6 +--- and now for each custom function in this group --- +a. function id: here 101, 102, 104, 105, 106, 108 +b. number of 'sub-values' of this function: mostly 1, in case of 106 it's 2 +c-?. the (final) sub-values of the functions + +One may construct valid 'values' for that property mentioning only +individual functions (e.g. 20,1,1,14,1,101,1,1 which sets the 101 +function to '1') but the camera then sets all other available +functions in the same group back to their default state. Notice: the +group id is redundant since the function id completely determines the +function. If you try to set a 10x function inside group 2 nothing +happens. + +To actually make use of that feature (e.g. toggle mirror lockup on a +5DM2) you may proceed as follows: +1) set the mirror lockup to off +2) gphoto2 --debug --debug-logfile=off.txt --get-config customfuncex +3) set the mirror lockup to on (you may have to disconnect the camera +if it says 'busy') +4) gphoto2 --debug --debug-logfile=on.txt --get-config customfuncex +5) grep custom off.txt | cut -d' ' -f 12 +6) grep custom on.txt | cut -d' ' -f 12 + +The last two commands will output something like: + +68,1,1,5c,7,101,1,1,102,1,1,103,1,0,104,1,0,105,1,0,108,1,0,10f,1,0, +50,1,2,44,5,201,1,0,202,1,0,203,1,0,204,1,0,205,1,0, +84,1,3,78,8,505,1,0,506,1,0,50f,1,0,510,1,0,50e,1,0,60f,1,0,508,1,0,507,5,0,ff,0,ff,0, +68,1,4,5c,7,701,1,0,702,1,0,704,1,0,706,1,0,80b,1,0,80f,1,0,70b,1,0, + +68,1,1,5c,7,101,1,1,102,1,1,103,1,0,104,1,0,105,1,0,108,1,0,10f,1,0, +50,1,2,44,5,201,1,0,202,1,0,203,1,0,204,1,0,205,1,0, +84,1,3,78,8,505,1,0,506,1,0,50f,1,0,510,1,0,50e,1,0,60f,1,1,508,1,0,507,5,0,ff,0,ff,0, +68,1,4,5c,7,701,1,0,702,1,0,704,1,0,706,1,0,80b,1,0,80f,1,0,70b,1,0, + +You can see the 4 groups and after close inspection you'll find that +the mirror lockup belongs to group 3 and has id 60f with the values 0 +and 1. Hence, to enable mirror lockup you may finally call + + gphoto2 --set-config +customfuncex=84,1,3,78,8,505,1,0,506,1,0,50f,1,0,510,1,0,50e,1,0,60f,1,1,508,1,0,507,5,0,ff,0,ff,0, + +In fact if you don't care for anything else than mirror lockup you may also call + + gphoto2 --set-config customfuncex=20,1,3,14,1,60f,1,1 + +DISCLAIMER: Throwing random numbers at your Canon may SET IT ON FIRE! +(Well, that is actually pretty unlikely but anyway: _your_ risk. What +is pretty likely is, that it will crash your gphoto2 process.) + + - Axel diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/chdk.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/chdk.c new file mode 100644 index 00000000..62c6e8b3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/chdk.c @@ -0,0 +1,1397 @@ +/* chdk.c + * + * Copyright (C) 2015 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include +#include +#include +#include + +#ifdef HAVE_LIBJPEG +# include +#endif + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "ptp.h" +#include "ptp-bugs.h" +#include "ptp-private.h" +#include "ptp-pack.c" + +/* CHDK support */ + +/* Include the rlibs.lua lua libs or try do it on our own? */ + +/* capture: + * send LUA: + * init_usb_capture(0); is exiting capture + + * init_usb_capture(1,0,0) 1 = jpeg, 2 = raw, 4 = switch raw to dng + * + * ff_imglist(options) + + * return ls('path'[,'opts') + + * return ff_download(srcpaths[,ropts]) + * + * return ff_mdelete(paths) + * + * return os.stat(path) + * return os.utime(path) + * return os.mkdir(path) + * return os.remove(path) + * return mkdir_m(path(s)) + + * rs_init for starting usb shootinp + */ + +static int +chdk_generic_script_run ( + PTPParams *params, const char *luascript, + char **table, int *retint, GPContext *context +) { + int ret = GP_OK; + int scriptid = 0; + unsigned int status; + int luastatus; + ptp_chdk_script_msg *msg = NULL; + char *xtable = NULL; + int xint = -1; + + if (!table) table = &xtable; + if (!retint) retint = &xint; + + GP_LOG_D ("calling lua script %s", luascript); + C_PTP (ptp_chdk_exec_lua(params, (char*)luascript, 0, &scriptid, &luastatus)); + GP_LOG_D ("called script. script id %d, status %d", scriptid, luastatus); + + *table = NULL; + *retint = -1; + + while (1) { + C_PTP (ptp_chdk_get_script_status(params, &status)); + GP_LOG_D ("script status %x", status); + + if (status & PTP_CHDK_SCRIPT_STATUS_MSG) { + C_PTP (ptp_chdk_read_script_msg(params, &msg)); + GP_LOG_D ("message script id %d, type %d, subtype %d", msg->script_id, msg->type, msg->subtype); + switch (msg->type) { + case PTP_CHDK_S_MSGTYPE_RET: + case PTP_CHDK_S_MSGTYPE_USER: + switch (msg->subtype) { + case PTP_CHDK_TYPE_UNSUPPORTED: GP_LOG_D("unsupported");break; + case PTP_CHDK_TYPE_NIL: GP_LOG_D("nil");break; + case PTP_CHDK_TYPE_BOOLEAN: + *retint = msg->data[0]; /* 3 more bytes, but rest are not interestng for bool */ + GP_LOG_D("boolean %d", *retint); + break; + case PTP_CHDK_TYPE_INTEGER: + GP_LOG_D("int %02x %02x %02x %02x", msg->data[0], msg->data[1], msg->data[2], msg->data[3]); + *retint = le32atoh((unsigned char*)msg->data); + break; + case PTP_CHDK_TYPE_STRING: + GP_LOG_D("string %s", msg->data); + if (*table) { + *table = realloc(*table,strlen(*table)+strlen(msg->data)+1); + strcat(*table,msg->data); + } else { + *table = strdup(msg->data); + } + break; + case PTP_CHDK_TYPE_TABLE: + GP_LOG_D("table %s", msg->data); + if (*table) { + *table = realloc(*table,strlen(*table)+strlen(msg->data)+1); + strcat(*table,msg->data); + } else { + *table = strdup(msg->data); + } + break; + default: GP_LOG_E("unknown chdk msg->type %d", msg->subtype);break; + } + break; + case PTP_CHDK_S_MSGTYPE_ERR: + GP_LOG_D ("error %d, message %s", msg->subtype, msg->data); + gp_context_error(context, _("CHDK lua engine reports error: %s"), msg->data); + ret = GP_ERROR_BAD_PARAMETERS; + break; + default: + GP_LOG_E ("unknown msg->type %d", msg->type); + break; + } + free (msg); + } + + if (!status) /* this means we read out all messages */ + break; + + /* wait for script to finish */ + if (status & PTP_CHDK_SCRIPT_STATUS_RUN) + usleep(100*1000); /* 100 ms */ + } + if (xtable) + GP_LOG_E("a string return was unexpected, returned value: %s", xtable); + if (xint != -1) + GP_LOG_E("a int return was unexpected, returned value: %d", xint); + return ret; +} + + +static int +chdk_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context, int dirsonly) +{ + Camera *camera = (Camera *)data; + PTPParams *params = &camera->pl->params; + int retint = FALSE; + int ret; + int tablecnt; + /* return ls("A/path/"); */ + const char *luascript = PTP_CHDK_LUA_LS"\nreturn ls('A%s',{\nstat='*',\n})"; + char *lua = NULL; + char *t, *table = NULL; + char *xfolder; + + /* strip leading / of folders, except for the root folder */ + xfolder=strdup(folder); + if (strlen(folder)>2 && (xfolder[strlen(xfolder)-1] == '/')) + xfolder[strlen(xfolder)-1] = '\0'; + + C_MEM (lua = malloc(strlen(luascript)+strlen(xfolder)+1)); + + sprintf(lua,luascript,xfolder); + free(xfolder); + + ret = chdk_generic_script_run (params, lua, &table, &retint, context); + if (ret != GP_OK) + return ret; + if (table) { + t = table; + /* table {[1]="NIKON001.DSC",[2]="DCIM",[3]="MISC",[4]="DISKBOOT.BIN",[5]="CHDK",[6]="changelog.txt",[7]="vers.req",[8]="readme.txt",[9]="PS.FI2",} */ + + /* table {[1]={is_file=true,mtime=1402161416,name="NIKON001.DSC",ctime=1402161416,attrib=34,is_dir=false,size=512,},[2]={is_file=false,mtime=1402161416,name="DCIM",ctime=1402161416,attrib=16,is_dir=true,size=0,},[3]={is_file=false,mtime=1406460938,name="MISC",ctime=1406460938,attrib=16,is_dir=true,size=0,},[4]={is_file=true,mtime=1398564982,name="DISKBOOT.BIN",ctime=1423347896,attrib=32,is_dir=false,size=138921,},[5]={is_file=false,mtime=1423347900,name="CHDK",ctime=1423347900,attrib=16,is_dir=true,size=0,},[6]={is_file=true,mtime=1395026402,name="changelog.txt",ctime=1423347900,attrib=32,is_dir=false,size=2093,},[7]={is_file=true,mtime=1217623956,name="vers.req",ctime=1423347900,attrib=32,is_dir=false,size=107,},[8]={is_file=true,mtime=1398564982,name="readme.txt",ctime=1423347900,attrib=32,is_dir=false,size=10518,},[9]={is_file=true,mtime=1398564982,name="PS.FI2",ctime=1423347900,attrib=32,is_dir=false,size=80912,},} +*/ + +nexttable: + if (*t != '{') + return GP_ERROR; + t++; + tablecnt = 0; + while (*t) { + int cnt; + char *name = NULL; + int isfile = 0, mtime = 0, attrib = -1, ctime = 0, size = -1; + CameraFileInfo info; + + if (*t++ != '[') { + GP_LOG_E("expected [, have %c", t[-1]); + break; + } + if (!sscanf(t,"%d",&cnt)) { + GP_LOG_E("expected integer"); + break; + } + GP_LOG_D("parsing entry %d", cnt); + if (cnt != tablecnt + 1) { + GP_LOG_E("cnt %d, tablecnt %d, expected %d", cnt, tablecnt, tablecnt+1); + break; + } + tablecnt++; + t = strchr(t,']'); + if (!t) { + GP_LOG_E("expected ]"); + break; + } + t++; + if (*t++ != '=') { + GP_LOG_E("expected ="); + break; + } + /* {is_file=true,mtime=1402161416,name="NIKON001.DSC",ctime=1402161416,attrib=34,is_dir=false,size=512,} */ + if (*t++ != '{') { + GP_LOG_E("expected {"); + break; + } + memset(&info,0,sizeof(info)); + while (*t && *t != '}') { + /* GP_LOG_D("parsing %s", t); */ + if (t==strstr(t,"is_file=true")) { isfile = TRUE; } + if (t==strstr(t,"is_file=false")) { isfile = FALSE; } + if (t==strstr(t,"is_dir=true")) { isfile = FALSE; } + if (t==strstr(t,"is_dir=false")) { isfile = TRUE; } + if (t==strstr(t,"name=\"")) { + char *s; + name = t+strlen("name=."); + s = strchr(name,'"'); + if (s) *s='\0'; + name = strdup(name); + GP_LOG_D("name is %s", name); + *s = '"'; + } + if (sscanf(t,"mtime=%d,", &mtime)) { + info.file.mtime = mtime; + info.file.fields |= GP_FILE_INFO_MTIME; + } + if (sscanf(t,"size=%d,", &size)) { + info.file.size = size; + info.file.fields |= GP_FILE_INFO_SIZE; + } + if (!sscanf(t,"ctime=%d,", &ctime)) { } + if (!sscanf(t,"attrib=%d,", &attrib)) { } + t = strchr(t,','); + if (t) t++; + } + if (*t) + t++; + /* Directories: return as list. */ + if (dirsonly && !isfile) + gp_list_append (list, name, NULL); + + /* Files: Add directly to FS, including the meta info too. */ + if (!dirsonly && isfile) { + gp_filesystem_append(fs, folder, name, context); + gp_filesystem_set_info_noop(fs, folder, name, info, context); + } + free(name); + + if (*t++ != ',') { + GP_LOG_E("expected , got %c", t[-1]); + break; + } + if (*t == '}') { t++; break; } + } + if (*t) { + if (*t == '{') goto nexttable; + GP_LOG_E("expected end of string or { , got %s", t); + return GP_ERROR; + } + free (table); + table = NULL; + } + if (retint) + return GP_OK; + GP_LOG_E("boolean return from LUA ls was %d", retint); + return GP_ERROR; +} + +static int +chdk_file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + return chdk_list_func(fs,folder,list,data,context,FALSE); +} + + +static int +chdk_folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + return chdk_list_func(fs,folder,list,data,context,TRUE); +} + +static int +chdk_get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = (Camera *)data; + PTPParams *params = &camera->pl->params; + int retint = 0; + int ret; + char *table = NULL; + const char *luascript = "\nreturn os.stat('A%s/%s')"; + char *lua = NULL; + + C_MEM (lua = malloc(strlen(luascript)+strlen(folder)+strlen(filename)+1)); + sprintf(lua,luascript,folder,filename); + ret = chdk_generic_script_run (params, lua, &table, &retint, context); + free (lua); + if (table) { + char *t = table; + int x; + while (*t) { + if (sscanf(t,"mtime %d", &x)) { + info->file.fields |= GP_FILE_INFO_MTIME; + info->file.mtime = x; + } + if (sscanf(t,"size %d", &x)) { + info->file.fields |= GP_FILE_INFO_SIZE; + info->file.size = x; + } + t = strchr(t,'\n'); + if (t) t++; + } + free (table); + } + return ret; +} + +static int +chdk_delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = (Camera *)data; + PTPParams *params = &camera->pl->params; + int ret; + const char *luascript = "\nreturn os.remove('A%s/%s')"; + char *lua = NULL; + + C_MEM (lua = malloc(strlen(luascript)+strlen(folder)+strlen(filename)+1)); + sprintf(lua,luascript,folder,filename); + ret = chdk_generic_script_run (params, lua, NULL, NULL, context); + free (lua); + return ret; +} + +static int +chdk_get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + PTPParams *params = &camera->pl->params; + uint16_t ret; + PTPDataHandler handler; + char *fn; + + fn = malloc(1+strlen(folder)+1+strlen(filename)+1), + sprintf(fn,"A%s/%s",folder,filename); + ptp_init_camerafile_handler (&handler, file); + ret = ptp_chdk_download(params, fn, &handler); + free (fn); + ptp_exit_camerafile_handler (&handler); + if (ret == PTP_ERROR_CANCEL) + return GP_ERROR_CANCEL; + C_PTP_REP (ret); + return GP_OK; +} + + +static CameraFilesystemFuncs chdk_fsfuncs = { + .file_list_func = chdk_file_list_func, + .folder_list_func = chdk_folder_list_func, + .get_info_func = chdk_get_info_func, + .get_file_func = chdk_get_file_func, + .del_file_func = chdk_delete_file_func, +/* + .set_info_func = chdk_set_info_func, + .read_file_func = chdk_read_file_func, + .put_file_func = chdk_put_file_func, + .make_dir_func = chdk_make_dir_func, + .remove_dir_func = chdk_remove_dir_func, + .storage_info_func = chdk_storage_info_func +*/ +}; + +static int +camera_prepare_chdk_capture(Camera *camera, GPContext *context) { + PTPParams *params = &camera->pl->params; + int ret = 0, retint = 0; + char *table = NULL; + char *lua = +PTP_CHDK_LUA_SERIALIZE +"if not get_mode() then\n\ + switch_mode_usb(1)\n\ + local i=0\n\ + while not get_mode() and i < 300 do\n\ + sleep(10)\n\ + i=i+1\n\ + end\n\ + if not get_mode() then\n\ + return false, 'switch failed'\n\ + end\n\ + return true\n\ +end\n\ +return false,'already in rec'\n\ +"; + + ret = chdk_generic_script_run (params, lua, &table, &retint, context); + if(table) GP_LOG_D("table returned: %s\n", table); + free(table); + return ret; +} + +static int +camera_unprepare_chdk_capture(Camera *camera, GPContext *context) { + PTPParams *params = &camera->pl->params; + int ret, retint; + char *table; + char *lua = +PTP_CHDK_LUA_SERIALIZE +"if get_mode() then\n\ + switch_mode_usb(0)\n\ + local i=0\n\ + while get_mode() and i < 300 do\n\ + sleep(10)\n\ + i=i+1\n\ + end\n\ + if get_mode() then\n\ + return false, 'switch failed'\n\ + end\n\ + return true\n\ +end\n\ +return false,'already in play'\n\ +"; + ret = chdk_generic_script_run (params, lua, &table, &retint, context); + if(table) GP_LOG_D("table returned: %s\n", table); + free(table); + + return ret; +} + + +static int +chdk_camera_about (Camera *camera, CameraText *text, GPContext *context) +{ + snprintf (text->text, sizeof(text->text), + _("PTP2 / CHDK driver\n" + "(c) 2015-%d by Marcus Meissner .\n" + "This is a PTP subdriver that supports CHDK using Canon cameras.\n" + "\n" + "Enjoy!"), 2015); + return GP_OK; +} + +static int +chdk_camera_summary (Camera *camera, CameraText *text, GPContext *context) +{ + PTPParams *params = &camera->pl->params; + int ret; + char *s = text->text; + int major, minor, retint; + + C_PTP (ptp_chdk_get_version (params, &major, &minor)); + sprintf (s, _("CHDK %d.%d Status:\n"), major, minor ); s += strlen(s); + + ret = chdk_generic_script_run (params, "return get_mode()", NULL, &retint, context); + sprintf (s, _("Mode: %d\n"), retint); s += strlen(s); + ret = chdk_generic_script_run (params, "return get_sv96()", NULL, &retint, context); + sprintf (s, _("SV96: %d, ISO: %d\n"), retint, (int)(exp2(retint/96.0)*3.125)); s += strlen(s); + ret = chdk_generic_script_run (params, "return get_tv96()", NULL, &retint, context); + sprintf (s, _("TV96: %d, Shutterspeed: %f\n"), retint, 1.0/exp2(retint/96.0)); s += strlen(s); + ret = chdk_generic_script_run (params, "return get_av96()", NULL, &retint, context); + sprintf (s, _("AV96: %d, Aperture: %f\n"), retint, sqrt(exp2(retint/96.0))); s += strlen(s); + ret = chdk_generic_script_run (params, "return get_focus()", NULL, &retint, context); + sprintf (s, _("Focus: %d\n"), retint); s += strlen(s); + ret = chdk_generic_script_run (params, "return get_iso_mode()", NULL, &retint, context); + sprintf (s, _("ISO Mode: %d\n"), retint); s += strlen(s); + + ret = chdk_generic_script_run (params, "return get_zoom()", NULL, &retint, context); + sprintf (s, _("Zoom: %d\n"), retint); s += strlen(s); + ret = chdk_generic_script_run (params, "return get_temperature(0)", NULL, &retint, context); + sprintf (s, _("Optical Temperature: %d\n"), retint); s += strlen(s); + ret = chdk_generic_script_run (params, "return get_temperature(1)", NULL, &retint, context); + sprintf (s, _("CCD Temperature: %d\n"), retint); s += strlen(s); + ret = chdk_generic_script_run (params, "return get_temperature(2)", NULL, &retint, context); + sprintf (s, _("Battery Temperature: %d\n"), retint); s += strlen(s); + + ret = chdk_generic_script_run (params, "return get_flash_mode()", NULL, &retint, context); + sprintf (s, _("Flash Mode: %d\n"), retint); s += strlen(s); + return ret; +/* +Mode: 256 +SV96: 603, ISO: 243 +TV96: 478, Shutterspeed: 0 +AV96: 294, Aperture: 2,890362 +ND Filter: -1 +Focus: 166 +ISO Mode: 0 + +*/ + +} + +struct submenu; +typedef int (*get_func) (PTPParams *, struct submenu*, CameraWidget **, GPContext *); +#define CONFIG_GET_ARGS PTPParams *params, struct submenu *menu, CameraWidget **widget, GPContext *context +typedef int (*put_func) (PTPParams *, CameraWidget *, GPContext *); +#define CONFIG_PUT_ARGS PTPParams *params, CameraWidget *widget, GPContext *context + +struct submenu { + char *label; + char *name; + get_func getfunc; + put_func putfunc; +}; + +static int +chdk_get_iso(CONFIG_GET_ARGS) { + int retint = 0, iso = 0; + char buf[20]; + + CR (chdk_generic_script_run (params, "return get_iso_mode()", NULL, &retint, context)); + if (!retint) { + CR(chdk_generic_script_run (params, "return get_sv96()", NULL, &retint, context)); + iso = (int)(exp2(retint/96.0)*3.125); + } else { + iso = retint; + } + CR (gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget)); + gp_widget_set_name (*widget, menu->name); + sprintf(buf,"%d", iso); + gp_widget_set_value (*widget, buf); + return GP_OK; +} + +static int +chdk_put_iso(CONFIG_PUT_ARGS) { + int iso = 0; + char *val; + char lua[100]; + + gp_widget_get_value (widget, &val); + if (!sscanf(val, "%d", &iso)) + return GP_ERROR_BAD_PARAMETERS; + + sprintf(lua,"return set_iso_mode(%d)\n", iso); + CR (chdk_generic_script_run (params, lua, NULL, NULL, context)); + return GP_OK; +} + +static int +chdk_get_iso_market(CONFIG_GET_ARGS) { + int retint = 0, iso = 0; + char buf[20]; + + CR (chdk_generic_script_run (params, "return get_iso_market()", NULL, &retint, context)); + if (!retint) { + CR(chdk_generic_script_run (params, "return iso_real_to_market(get_sv96())", NULL, &retint, context)); + iso = (int)(exp2(retint/96.0)*3.125); + } else { + iso = retint; + } + CR (gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget)); + gp_widget_set_name (*widget, menu->name); + sprintf(buf,"%d", iso); + gp_widget_set_value (*widget, buf); + return GP_OK; +} + +static int +chdk_put_iso_market(CONFIG_PUT_ARGS) { + int iso = 0; + char *val; + char lua[100]; + + gp_widget_get_value (widget, &val); + if (!sscanf(val, "%d", &iso)) + return GP_ERROR_BAD_PARAMETERS; + + sprintf(lua,"return set_iso_real(iso_market_to_real(%d))\n", iso); + CR (chdk_generic_script_run (params, lua, NULL, NULL, context)); + return GP_OK; +} + +static int +chdk_get_av(CONFIG_GET_ARGS) { + int retint = 0; + char buf[20]; + float f; + + CR (chdk_generic_script_run (params, "return get_av96()", NULL, &retint, context)); + f = sqrt(exp2(retint/96.0)); + CR (gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget)); + gp_widget_set_name (*widget, menu->name); + sprintf(buf, "%d.%d", (int)f,((int)f*10)%10); + gp_widget_set_value (*widget, buf); + return GP_OK; +} + +static int +chdk_put_av(CONFIG_PUT_ARGS) { + char *val; + int av1,av2,sqav; + char lua[100]; + + gp_widget_get_value (widget, &val); + if (2 != sscanf(val, "%d.%d", &av1,&av2)) { + if (!sscanf(val, "%d", &av1)) { + return GP_ERROR_BAD_PARAMETERS; + } + av2 = 0; + } + + /* av96 = 96*log2(f^2) */ + sqav = (av1*1.0+av2/10.0)*(av1*1.0+av2/10.0); + sprintf(lua,"return set_av96(%d)\n", (int)(96.0*log2(sqav))); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + +static int +chdk_get_tv(CONFIG_GET_ARGS) { + int retint = 0; + char buf[20]; + + CR (chdk_generic_script_run (params, "return get_tv96()", NULL, &retint, context)); + CR (gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget)); + gp_widget_set_name (*widget, menu->name); + sprintf(buf, "%f", 1.0/exp2(retint/96.0)); + gp_widget_set_value (*widget, buf); + return GP_OK; +} + +static int +chdk_put_tv(CONFIG_PUT_ARGS) { + char *val; + float f; + char lua[100]; + + gp_widget_get_value (widget, &val); + if (!sscanf(val, "%f", &f)) + return GP_ERROR_BAD_PARAMETERS; + + sprintf(lua,"return set_tv96(%d)\n", (int)(96.0*(-log2(f)))); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + +static int +chdk_get_focus(CONFIG_GET_ARGS) { + int retint = 0; + char buf[20]; + + CR (chdk_generic_script_run (params, "return get_focus()", NULL, &retint, context)); + CR (gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget)); + sprintf(buf, "%dmm", retint); + gp_widget_set_value (*widget, buf); + return GP_OK; +} + +static int +chdk_put_focus(CONFIG_PUT_ARGS) { + char *val; + int focus; + char lua[100]; + + gp_widget_get_value (widget, &val); + if (!sscanf(val, "%dmm", &focus)) + return GP_ERROR_BAD_PARAMETERS; + + sprintf(lua,"return set_focus(%d)\n", focus); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + +static int +chdk_get_zoom(CONFIG_GET_ARGS) { + int retint = 0; + char buf[20]; + + CR (chdk_generic_script_run (params, "return get_zoom()", NULL, &retint, context)); + CR (gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget)); + sprintf(buf, "%d", retint); + gp_widget_set_value (*widget, buf); + return GP_OK; +} + +static int +chdk_put_zoom(CONFIG_PUT_ARGS) { + char *val; + int zoom; + char lua[100]; + + gp_widget_get_value (widget, &val); + if (!sscanf(val, "%d", &zoom)) + return GP_ERROR_BAD_PARAMETERS; + + sprintf(lua,"return set_zoom(%d)\n", zoom); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + +static int +chdk_get_orientation(CONFIG_GET_ARGS) { + int retint = 0; + char buf[20]; + + CR (chdk_generic_script_run (params, "return get_orientation_sensor()", NULL, &retint, context)); + CR (gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget)); + sprintf(buf, "%d'", retint); + gp_widget_set_value (*widget, buf); + return GP_OK; +} + +static int +chdk_put_none(CONFIG_PUT_ARGS) { + return GP_ERROR_NOT_SUPPORTED; +} + +static int +chdk_get_ev(CONFIG_GET_ARGS) { + int retint = 0; + float val; + + CR (chdk_generic_script_run (params, "return get_ev()", NULL, &retint, context)); + CR (gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget)); + gp_widget_set_range (*widget, + -5.0, + 5.0, + 1.0/6.0 + ); + val = retint/96.0; + return gp_widget_set_value (*widget, &val); +} + +static int +chdk_put_ev(CONFIG_PUT_ARGS) { + float val; + char lua[100]; + + gp_widget_get_value (widget, &val); + sprintf(lua,"return set_ev(%d)\n", (int)(val*96.0)); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + +static void +add_buttons(CameraWidget *widget) { + gp_widget_add_choice(widget, "shoot_half"); + gp_widget_add_choice(widget, "shoot_full"); + gp_widget_add_choice(widget, "shoot_full_only"); + gp_widget_add_choice(widget, "erase"); + gp_widget_add_choice(widget, "up"); + gp_widget_add_choice(widget, "print"); + gp_widget_add_choice(widget, "left"); + gp_widget_add_choice(widget, "set"); + gp_widget_add_choice(widget, "right"); + gp_widget_add_choice(widget, "disp"); + gp_widget_add_choice(widget, "down"); + gp_widget_add_choice(widget, "menu"); + gp_widget_add_choice(widget, "zoom_in"); + gp_widget_add_choice(widget, "zoom_out"); + gp_widget_add_choice(widget, "video"); + gp_widget_add_choice(widget, "shoot_full"); + gp_widget_add_choice(widget, "shoot_full_only"); + gp_widget_add_choice(widget, "wheel l"); + gp_widget_add_choice(widget, "wheel r"); + gp_widget_add_choice(widget, "zoom in"); + gp_widget_add_choice(widget, "zoom out"); + gp_widget_add_choice(widget, "iso"); + gp_widget_add_choice(widget, "flash"); + gp_widget_add_choice(widget, "mf"); + gp_widget_add_choice(widget, "macro"); + gp_widget_add_choice(widget, "video"); + gp_widget_add_choice(widget, "timer"); + gp_widget_add_choice(widget, "expo_corr"); + gp_widget_add_choice(widget, "fe"); + gp_widget_add_choice(widget, "face"); + gp_widget_add_choice(widget, "zoom_assist"); + gp_widget_add_choice(widget, "ae_lock"); + gp_widget_add_choice(widget, "metering_mode"); + gp_widget_add_choice(widget, "playback"); + gp_widget_add_choice(widget, "help"); +} + +static int +chdk_get_press(CONFIG_GET_ARGS) { + CR (gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget)); + gp_widget_set_value (*widget, "chdk buttonname"); + add_buttons(*widget); + return GP_OK; +} + +static int +chdk_put_press(CONFIG_PUT_ARGS) { + char *val; + char lua[100]; + + gp_widget_get_value (widget, &val); + sprintf(lua,"press('%s')\n", val); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + +static int +chdk_get_release(CONFIG_GET_ARGS) { + CR (gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget)); + gp_widget_set_value (*widget, "chdk buttonname"); + add_buttons(*widget); + return GP_OK; +} + +static int +chdk_put_release(CONFIG_PUT_ARGS) { + char *val; + char lua[100]; + + gp_widget_get_value (widget, &val); + sprintf(lua,"release('%s')\n", val); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + +static int +chdk_get_click(CONFIG_GET_ARGS) { + CR (gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget)); + gp_widget_set_value (*widget, "chdk buttonname"); + add_buttons(*widget); + return GP_OK; +} + +static int +chdk_put_click(CONFIG_PUT_ARGS) { + char *val; + char lua[100]; + + gp_widget_get_value (widget, &val); + if (!strcmp(val,"wheel l")) + strcpy(lua,"post_levent_to_ui(\"RotateJogDialLeft\",1)\n"); + else if (!strcmp(val,"wheel r")) + strcpy(lua,"post_levent_to_ui(\"RotateJogDialRight\",1)\n"); + else + sprintf(lua,"click('%s')\n", val); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + +static int +chdk_get_capmode(CONFIG_GET_ARGS) { + char *s , *table = NULL; + int retint = 0; + const char *lua = +PTP_CHDK_LUA_SERIALIZE \ +"capmode=require'capmode'\n" +"str=''\n" +"local l={}\n" +"local i=1\n" +"for id,name in ipairs(capmode.mode_to_name) do\n" +" if capmode.valid(id) then\n" +" str = str .. name .. '\\n'\n" +" l[i] = {name=name,id=id}\n" +" i = i + 1\n" +" end\n" +"end\n" +"str = str .. capmode.get_name()\n" +"return str\n"; + + CR (gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget)); + + CR (chdk_generic_script_run (params,lua,&table,&retint,context)); + + s = table; + GP_LOG_D("table is %s", table); + while (*s) { + char *x = strchr(s,'\n'); + + if (x) *x = 0; + GP_LOG_D("line is %s", s); + gp_widget_add_choice (*widget, s); + if (!x || !strlen(x+1)) + gp_widget_set_value (*widget, s); + if (!x) + break; + s = x+1; + } + free (table); + return GP_OK; +} + +static int +chdk_put_capmode(CONFIG_PUT_ARGS) { + char *val; + char lua[200]; + const char *luastr = +"capmode=require'capmode'\n" +"str='%s'\n" +"for id,name in ipairs(capmode.mode_to_name) do\n" +" if capmode.valid(id) and str == name then\n" +" set_capture_mode(id)\n" +" end\n" +"end\n" +"return\n"; + + gp_widget_get_value (widget, &val); + /* integer? should actually work ... according to CHDK/TEST/isobase.lua */ + sprintf(lua, luastr, val); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + +static int +chdk_get_aelock(CONFIG_GET_ARGS) { + int val = 2; + CR (gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget)); + gp_widget_set_value (*widget, &val); + return GP_OK; +} + +static int +chdk_put_aelock(CONFIG_PUT_ARGS) { + int val; + char lua[100]; + + gp_widget_get_value (widget, &val); + sprintf(lua,"set_aelock(%d)\n", val); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + + +static int +chdk_get_aflock(CONFIG_GET_ARGS) { + int val = 2; + CR (gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget)); + gp_widget_set_value (*widget, &val); + return GP_OK; +} + +static int +chdk_put_aflock(CONFIG_PUT_ARGS) { + int val; + char lua[100]; + + gp_widget_get_value (widget, &val); + sprintf(lua,"set_aflock(%d)\n", val); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + + +static int +chdk_get_mflock(CONFIG_GET_ARGS) { + int val = 2; + CR (gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget)); + gp_widget_set_value (*widget, &val); + return GP_OK; +} + +static int +chdk_put_mflock(CONFIG_PUT_ARGS) { + int val; + char lua[100]; + + gp_widget_get_value (widget, &val); + sprintf(lua,"set_mf(%d)\n", val); + return chdk_generic_script_run (params, lua, NULL, NULL, context); +} + +static struct { + char *name; + char *label; +} chdkonoff[] = { + {"on", N_("On") }, + {"off", N_("Off") }, +}; + +static int +chdk_get_onoff(CONFIG_GET_ARGS) { + int i; + char buf[1024]; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + if (GP_OK != gp_setting_get("ptp2","chdk", buf)) + strcpy(buf,"off"); + for (i=0;ipl->params); + CameraWidget *menu, *child; + int i, ret; + + CR(camera_prepare_chdk_capture(camera, context)); + + gp_widget_new (GP_WIDGET_WINDOW, _("Camera and Driver Configuration"), window); + gp_widget_set_name (*window, "main"); + gp_widget_new (GP_WIDGET_SECTION, _("Image Settings"), &menu); + gp_widget_set_name (menu, "imgsettings"); + gp_widget_append(*window, menu); + + for (i=0;imgsettings[i].name;i++) { + ret = imgsettings[i].getfunc(params,&imgsettings[i],&child,context); + if (ret != GP_OK) { + GP_LOG_E("error getting %s menu", imgsettings[i].name); + continue; + } + gp_widget_set_name (child, imgsettings[i].name); + gp_widget_append (menu, child); + } + return GP_OK; +} + +static int +chdk_camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + PTPParams *params = &(camera->pl->params); + int i, ret; + + for (i=0;imgsettings[i].name;i++) { + CameraWidget *widget; + + ret = gp_widget_get_child_by_label (window, _(imgsettings[i].label), &widget); + if (ret != GP_OK) + continue; + if (!gp_widget_changed (widget)) + continue; + gp_widget_set_changed (widget, FALSE); + ret = imgsettings[i].putfunc(params,widget,context); + if (ret != GP_OK) { + GP_LOG_E("error putting %s menu", imgsettings[i].name); + continue; + } + } + return GP_OK; +} + +static int +chdk_camera_exit (Camera *camera, GPContext *context) +{ + camera_unprepare_chdk_capture(camera, context); + return GP_OK; +} + +static int +chdk_camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + int ret, retint; + char *table, *s; + PTPParams *params = &camera->pl->params; + const char *luascript = PTP_CHDK_LUA_SERIALIZE_MSGS_SIMPLEQUOTE \ + PTP_CHDK_LUA_RLIB_SHOOT \ + "return rlib_shoot({info=true});\n"; + + ret = camera_prepare_chdk_capture(camera, context); + if (ret != GP_OK) return ret; + + ret = chdk_generic_script_run (params, luascript, &table, &retint, context); + GP_LOG_D("rlib_shoot returned table %s, retint %d\n", table, retint); + s = strstr(table, "exp="); + if (s) { + int exp; + if (!sscanf(s,"exp=%d\n", &exp)) { + GP_LOG_E("%s did not parse for exp=NR?", s); + ret = GP_ERROR; + } else { + sprintf(path->name,"IMG_%04d.JPG", exp); + } + } else { + GP_LOG_E("no exp=nr found?\n"); + ret = GP_ERROR; + } + s = strstr(table, "dir=\"A"); + if (s) { + char *y = strchr(s+6,'"'); + if (y) *y='\0'; + strcpy(path->folder, s+6); + } else { + ret = GP_ERROR; + } + free (table); + return ret; +} + +#ifdef HAVE_LIBJPEG +static void yuv_live_to_jpeg(unsigned char *p_yuv, + int buf_width, int width, int height, + int fb_type, CameraFile *file +) { + struct jpeg_compress_struct cinfo; + struct jpeg_error_mgr jerr; + JSAMPROW row_ptr[1]; + uint8_t *outbuf = NULL, *tmprowbuf = NULL; + uint64_t outlen = 0; + unsigned int row_inc; + int sshift, dshift, xshift, skip; + + /* Pre-Digic 6 cameras: 8 bit per element UYVYYY, + * 6 bytes used to encode 4 pixels, need 12 bytes raw YUV data for jpeg encoding */ + if (fb_type == LV_FB_YUV8) { + row_inc = buf_width*1.5; + sshift = 6; + dshift = (width/height > 2) ? 6 : 12; + xshift = 4; + /* Digic 6 cameras: 8 bit per element UYVY, + * 4 bytes used to encode 2 pixels, need 6 bytes raw YUV data for jpeg encoding */ + } else { + row_inc = buf_width*2; + sshift = 4; + dshift = 6; + xshift = 2; + } + /* Encode only 2 pixels from each UV pair either if it is a UYVY data + * (for Digic 6 cameras) or if the width to height ratio provided + * by camera is too large (typically width 720 for height 240), so that + * the resulting image would be stretched too much in the horizontal + * direction if all 4 Y values were used. */ + skip = (fb_type > LV_FB_YUV8) || (width/height > 2); + + cinfo.err = jpeg_std_error (&jerr); + jpeg_create_compress (&cinfo); + + cinfo.image_width = (width/height > 2) ? (width/2) & -1 : width & -1; + cinfo.image_height = height & -1; + cinfo.input_components = 3; + cinfo.in_color_space = JCS_YCbCr; // input color space + + jpeg_mem_dest (&cinfo, &outbuf, &outlen); + jpeg_set_defaults (&cinfo); + cinfo.dct_method = JDCT_IFAST; // DCT method + jpeg_set_quality (&cinfo, 70, TRUE); + + jpeg_start_compress (&cinfo, TRUE); + + tmprowbuf = malloc (cinfo.image_width * 3); + row_ptr[0] = &tmprowbuf[0]; + + while (cinfo.next_scanline < cinfo.image_height) { + unsigned int x, i, j; + /* offset to the correct row */ + unsigned int offset = cinfo.next_scanline * row_inc; + + for (x = 0, i = 0, j = 0; x < width; i += sshift, j += dshift, x += xshift) { + int8_t u = (int8_t) p_yuv[offset + i + 0]; + int8_t v = (int8_t) p_yuv[offset + i + 2]; + if (fb_type == LV_FB_YUV8) { + u += 0x80; + v += 0x80; + } + + tmprowbuf[j + 0] = p_yuv[offset + i + 1]; + tmprowbuf[j + 1] = u; + tmprowbuf[j + 2] = v; + tmprowbuf[j + 3] = p_yuv[offset + i + 3]; + tmprowbuf[j + 4] = u; + tmprowbuf[j + 5] = v; + + if (!skip) { + tmprowbuf[j + 6] = p_yuv[offset + i + 4]; + tmprowbuf[j + 7] = u; + tmprowbuf[j + 8] = v; + tmprowbuf[j + 9] = p_yuv[offset + i + 5]; + tmprowbuf[j +10] = u; + tmprowbuf[j +11] = v; + } + } + jpeg_write_scanlines (&cinfo, row_ptr, 1); + } + jpeg_finish_compress (&cinfo); + jpeg_destroy_compress (&cinfo); + + gp_file_append (file, (char*)outbuf, outlen); + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_name (file, "chdk_preview.jpg"); + + free (outbuf); + free (tmprowbuf); +} + +#else +static inline uint8_t clip_yuv (int v) { + if (v<0) return 0; + if (v>255) return 255; + return v; +} + +static inline uint8_t yuv_to_r (uint8_t y, int8_t v) { + return clip_yuv (((y<<12) + v*5743 + 2048)>>12); +} + +static inline uint8_t yuv_to_g (uint8_t y, int8_t u, int8_t v) { + return clip_yuv (((y<<12) - u*1411 - v*2925 + 2048)>>12); +} + +static inline uint8_t yuv_to_b (uint8_t y, int8_t u) { + return clip_yuv (((y<<12) + u*7258 + 2048)>>12); +} + +static void yuv_live_to_ppm (unsigned char *p_yuv, + int buf_width, int width, int height, + int fb_type, CameraFile *file +) { + const unsigned char *p_row = p_yuv; + const unsigned char *p; + unsigned int row, x; + unsigned int row_inc; + int pshift, xshift, skip; + char ppm_header[32]; + uint8_t rgb[6]; + + /* Pre-Digic 6 cameras: + * 8 bit per element UYVYYY, 6 bytes used to encode 4 rgb values */ + if (fb_type == LV_FB_YUV8) { + row_inc = buf_width*1.5; + pshift = 6; + xshift = 4; + /* Digic 6 cameras: + * 8 bit per element UYVY, 4 bytes used to encode 2 rgb values */ + } else { + row_inc = buf_width*2; + pshift = 4; + xshift = 2; + } + /* Encode only 2 pixels from each UV pair either if it is a UYVY data + * (for Digic 6 cameras) or if the width to height ratio provided + * by camera is too large (typically width 720 for height 240), so that + * the resulting image would be stretched too much in the horizontal + * direction if all 4 Y values were used. */ + skip = (fb_type > LV_FB_YUV8) || (width/height > 2); + + sprintf (ppm_header, "P6 %d %d 255\n", (width/height > 2) ? width/2 : width, height); + gp_file_append (file, ppm_header, strlen (ppm_header)); + + for (row=0; row LV_FB_YUV8) { + u -= 0x80; + v -= 0x80; + } + rgb[0] = yuv_to_r (p[1], v); + rgb[1] = yuv_to_g (p[1], u, v); + rgb[2] = yuv_to_b (p[1], u); + + rgb[3] = yuv_to_r (p[3], v); + rgb[4] = yuv_to_g (p[3], u, v); + rgb[5] = yuv_to_b (p[3], u); + gp_file_append (file, (char*)rgb, 6); + + if (!skip) { + rgb[0] = yuv_to_r (p[4], v); + rgb[1] = yuv_to_g (p[4], u, v); + rgb[2] = yuv_to_b (p[4], u); + + rgb[3] = yuv_to_r (p[5], v); + rgb[4] = yuv_to_g (p[5], u, v); + rgb[5] = yuv_to_b (p[5], u); + gp_file_append (file, (char*)rgb, 6); + } + } + } + gp_file_set_mime_type (file, GP_MIME_PPM); + gp_file_set_name (file, "chdk_preview.ppm"); +} +#endif + +static int +chdk_camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + unsigned char *data = NULL; + uint32_t size = 0; + PTPParams *params = &camera->pl->params; + unsigned int flags = LV_TFR_VIEWPORT; + + lv_data_header header; + lv_framebuffer_desc vpd; + lv_framebuffer_desc bmd; + + memset (&header, 0, sizeof (header)); + memset (&vpd, 0, sizeof (vpd)); + memset (&vpd, 0, sizeof (bmd)); + + CR (camera_prepare_chdk_capture (camera, context)); + C_PTP_REP_MSG (ptp_chdk_get_live_data (params, flags, &data, &size), + _("CHDK get live data failed")); + if (ptp_chdk_parse_live_data (params, data, size, &header, &vpd, &bmd) != PTP_RC_OK) { + gp_context_error (context, _("CHDK get live data failed: incomplete data (%d bytes) returned"), size); + return GP_ERROR; + } +#ifdef HAVE_LIBJPEG + yuv_live_to_jpeg(data+vpd.data_start, vpd.buffer_width, vpd.visible_width, + vpd.visible_height, vpd.fb_type, file); +#else + yuv_live_to_ppm (data+vpd.data_start, vpd.buffer_width, vpd.visible_width, + vpd.visible_height, vpd.fb_type, file); +#endif + + free (data); + gp_file_set_mtime (file, time (NULL)); + return GP_OK; +} + +int +chdk_init(Camera *camera, GPContext *context) { + camera->functions->about = chdk_camera_about; + camera->functions->exit = chdk_camera_exit; + camera->functions->capture = chdk_camera_capture; + camera->functions->summary = chdk_camera_summary; + camera->functions->get_config = chdk_camera_get_config; + camera->functions->set_config = chdk_camera_set_config; + camera->functions->capture_preview = chdk_camera_capture_preview; +/* + camera->functions->trigger_capture = camera_trigger_capture; + camera->functions->wait_for_event = camera_wait_for_event; +*/ + + gp_filesystem_set_funcs ( camera->fs, &chdk_fsfuncs, camera); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/chdk_live_view.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/chdk_live_view.h new file mode 100644 index 00000000..b41126c8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/chdk_live_view.h @@ -0,0 +1,110 @@ +#ifndef __LIVE_VIEW_H +#define __LIVE_VIEW_H + +// Note: used in modules and platform independent code. +// Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values) + +/* +Protocol notes: +- Unless otherwise specified, all structure values are packed in camera native (little + endian) byte order +- Frame buffer and palette data are in native camera formats + Some documentation may be found at http://chdk.wikia.com/wiki/Frame_buffers +- The frame buffer descriptions returned may not be correct depending on the + camera model and various camera settings (shooting mode, digital zoom, aspect ratio) + This may result in partial images, garbage in the "valid" area or incorrect position +- In some cases, the requested data may not be available. If this happens, the framebuffer + or palette data offset will be zero. +- The frame buffer descriptions are returned regardless of whether the data is available +- New enum values (e.g. aspect ratio, framebuffer type, palette type) may be added in minor + versions. +*/ +// Live View protocol version +#define LIVE_VIEW_VERSION_MAJOR 2 // increase only with backwards incompatible changes (and reset minor) +#define LIVE_VIEW_VERSION_MINOR 2 // increase with extensions of functionality + +/* +protocol version history +< 2.0 - development versions +2.0 - initial release, chdk 1.1 +2.1 - added palette type 4 - 16 entry VUYA, 2 bit alpha +2.2 - in development digic 6 support. Added LV_ASPECT_3_2, LV_FB_YUV8B and LV_FB_YUV8C formats +*/ + + +// Control flags for determining which data block to transfer +#define LV_TFR_VIEWPORT 0x01 +#define LV_TFR_BITMAP 0x04 +#define LV_TFR_PALETTE 0x08 +#define LV_TFR_BITMAP_OPACITY 0x10 + +enum lv_aspect_rato { + LV_ASPECT_4_3, + LV_ASPECT_16_9, + // below added in 2.2 + LV_ASPECT_3_2, +}; + +/* +Framebuffer types +additional values will be added if new data formats appear +*/ +enum lv_fb_type { + LV_FB_YUV8, // 8 bit per element UYVYYY, used for live view + LV_FB_PAL8, // 8 bit paletted, used for bitmap overlay. Note palette data and type sent separately + // below added in 2.2 + LV_FB_YUV8B,// 8 bit per element UYVY, used for live view and overlay on Digic 6 + LV_FB_YUV8C,// 8 bit per element UYVY, used for alternate Digic 6 live view + LV_FB_OPACITY8,// 8 bit opacity / alpha buffer +}; + +/* +framebuffer data description +NOTE YUV pixels widths are based on the number of Y elements +*/ +typedef struct { + int fb_type; // framebuffer type - note future versions might use different structures depending on type + int data_start; // offset of data from start of live view header + /* + buffer width in pixels + data size is always buffer_width*visible_height*(buffer bpp based on type) + */ + int buffer_width; + /* + visible size in pixels + describes data within the buffer which contains image data to be displayed + any offsets within buffer data are added before sending, so the top left + pixel is always the first first byte of data. + width must always be <= buffer_width + if buffer_width is > width, the additional data should be skipped + visible_height also defines the number of data rows + */ + int visible_width; + int visible_height; + + /* + margins + pixels offsets needed to replicate display position on cameras screen + not used for any buffer offsets + */ + int margin_left; + int margin_top; + + int margin_right; + int margin_bot; +} lv_framebuffer_desc; + +typedef struct { + // live view sub-protocol version + int version_major; + int version_minor; + int lcd_aspect_ratio; // physical aspect ratio of LCD + int palette_type; + int palette_data_start; + // framebuffer descriptions are given as offsets, to allow expanding the structures in minor protocol changes + int vp_desc_start; + int bm_desc_start; + int bmo_desc_start; // added in protocol 2.2 +} lv_data_header; + +#endif // __LIVE_VIEW_H diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/chdk_ptp.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/chdk_ptp.h new file mode 100644 index 00000000..65dcfd78 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/chdk_ptp.h @@ -0,0 +1,630 @@ +#ifndef __CHDK_PTP_H +#define __CHDK_PTP_H + +// CHDK PTP protocol interface (can also be used in client PTP programs) + +// Note: used in modules and platform independent code. +// Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values) + +#define PTP_CHDK_VERSION_MAJOR 2 // increase only with backwards incompatible changes (and reset minor) +#define PTP_CHDK_VERSION_MINOR 6 // increase with extensions of functionality + // minor > 1000 for development versions + +/* +protocol version history +0.1 - initial proposal from mweerden, + luar +0.2 - Added ScriptStatus and ScriptSupport, based on work by ultimA +1.0 - removed old script result code (luar), replace with message system +2.0 - return PTP_CHDK_TYPE_TABLE for tables instead of TYPE_STRING, allow return of empty strings +2.1 - experimental live view, not formally released +2.2 - live view (work in progress) +2.3 - live view - released in 1.1 +2.4 - live view protocol 2.1 +2.5 - remote capture +2.6 - script execution flags +*/ + +#define PTP_OC_CHDK 0x9999 + +// N.B.: unused parameters should be set to 0 +//enum ptp_chdk_command { +enum PTP_CHDK_Command { + PTP_CHDK_Version = 0, // return param1 is major version number + // return param2 is minor version number + PTP_CHDK_GetMemory, // param2 is base address (not NULL; circumvent by taking 0xFFFFFFFF and size+1) + // param3 is size (in bytes) + // return data is memory block + PTP_CHDK_SetMemory, // param2 is address + // param3 is size (in bytes) + // data is new memory block + PTP_CHDK_CallFunction, // data is array of function pointer and 32 bit int arguments (max: 10 args prior to protocol 2.5) + // return param1 is return value + PTP_CHDK_TempData, // data is data to be stored for later + // param2 is for the TD flags below + PTP_CHDK_UploadFile, // data is 4-byte length of filename, followed by filename and contents + PTP_CHDK_DownloadFile, // preceded by PTP_CHDK_TempData with filename + // return data are file contents + PTP_CHDK_ExecuteScript, // data is script to be executed + // param2 is language of script + // in proto 2.6 and later, language is the lower byte, rest is used for PTP_CHDK_SCRIPT_FL* flags + // return param1 is script id, like a process id + // return param2 is status from ptp_chdk_script_error_type + PTP_CHDK_ScriptStatus, // Script execution status + // return param1 bits + // PTP_CHDK_SCRIPT_STATUS_RUN is set if a script running, cleared if not + // PTP_CHDK_SCRIPT_STATUS_MSG is set if script messages from script waiting to be read + // all other bits and params are reserved for future use + PTP_CHDK_ScriptSupport, // Which scripting interfaces are supported in this build + // param1 CHDK_PTP_SUPPORT_LUA is set if lua is supported, cleared if not + // all other bits and params are reserved for future use + PTP_CHDK_ReadScriptMsg, // read next message from camera script system + // return param1 is chdk_ptp_s_msg_type + // return param2 is message subtype: + // for script return and users this is ptp_chdk_script_data_type + // for error ptp_chdk_script_error_type + // return param3 is script id of script that generated the message + // return param4 is length of the message data. + // return data is message. + // A minimum of 1 bytes of zeros is returned if the message has no data (empty string or type NONE) + PTP_CHDK_WriteScriptMsg, // write a message for scripts running on camera + // input param2 is target script id, 0=don't care. Messages for a non-running script will be discarded + // data length is handled by ptp data phase + // input messages do not have type or subtype, they are always a string destined for the script (similar to USER/string) + // output param1 is ptp_chdk_script_msg_status + PTP_CHDK_GetDisplayData, // Return camera display data + // This is defined as separate sub protocol in live_view.h + // Changes to the sub-protocol will always be considered a minor change to the main protocol + // param2 bitmask of data + // output param1 = total size of data + // return data is protocol information, frame buffer descriptions and selected display data + // Currently a data phase is always returned. Future versions may define other behavior + // for values in currently unused parameters. + // Direct image capture over USB. + // Use lua get_usb_capture_support for available data types, lua init_usb_capture for setup + PTP_CHDK_RemoteCaptureIsReady, // Check if data is available + // return param1 is status + // 0 = not ready + // 0x10000000 = remote capture not initialized + // otherwise bitmask of PTP_CHDK_CAPTURE_* datatypes + // return param2 is image number + PTP_CHDK_RemoteCaptureGetData // retrieve data + // param2 is bit indicating data type to get + // return param1 is length + // return param2 more chunks available? + // 0 = no more chunks of selected format + // return param3 seek required to pos (-1 = no seek) +}; + +// data types as used by ReadScriptMessage +enum ptp_chdk_script_data_type { + PTP_CHDK_TYPE_UNSUPPORTED = 0, // type name will be returned in data + PTP_CHDK_TYPE_NIL, + PTP_CHDK_TYPE_BOOLEAN, + PTP_CHDK_TYPE_INTEGER, + PTP_CHDK_TYPE_STRING, // Empty strings are returned with length=0 + PTP_CHDK_TYPE_TABLE, // tables are converted to a string by usb_msg_table_to_string, + // this function can be overridden in lua to change the format + // the string may be empty for an empty table +}; + +// TempData flags +#define PTP_CHDK_TD_DOWNLOAD 0x1 // download data instead of upload +#define PTP_CHDK_TD_CLEAR 0x2 // clear the stored data; with DOWNLOAD this + // means first download, then clear and + // without DOWNLOAD this means no uploading, + // just clear + +// Script Languages - for execution only lua is supported for now +#define PTP_CHDK_SL_LUA 0 +#define PTP_CHDK_SL_UBASIC 1 +#define PTP_CHDK_SL_MASK 0xFF + +/* standard message chdkptp sends */ +#define PTP_CHDK_LUA_SERIALIZE "\n\ +serialize_r = function(v,opts,r,seen,depth)\n\ + local vt = type(v)\n\ + if vt == 'nil' or vt == 'boolean' or vt == 'number' then\n\ + table.insert(r,tostring(v))\n\ + return\n\ + end\n\ + if vt == 'string' then\n\ + table.insert(r,string.format('%%q',v))\n\ + return\n\ + end\n\ + if vt == 'table' then\n\ + if not depth then\n\ + depth = 1\n\ + end\n\ + if depth >= opts.maxdepth then\n\ + error('serialize: max depth')\n\ + end\n\ + if not seen then\n\ + seen={}\n\ + elseif seen[v] then\n\ + if opts.err_cycle then\n\ + error('serialize: cycle')\n\ + else\n\ + table.insert(r,'\"cycle:'..tostring(v)..'\"')\n\ + return\n\ + end\n\ + end\n\ + seen[v] = true;\n\ + table.insert(r,'{')\n\ + for k,v1 in pairs(v) do\n\ + if opts.pretty then\n\ + table.insert(r,'\\n'..string.rep(' ',depth))\n\ + end\n\ + if type(k) == 'string' and string.match(k,'^[_%%a][%%a%%d_]*$') then\n\ + table.insert(r,k)\n\ + else\n\ + table.insert(r,'[')\n\ + serialize_r(k,opts,r,seen,depth+1)\n\ + table.insert(r,']')\n\ + end\n\ + table.insert(r,'=')\n\ + serialize_r(v1,opts,r,seen,depth+1)\n\ + table.insert(r,',')\n\ + end\n\ + if opts.pretty then\n\ + table.insert(r,'\\n'..string.rep(' ',depth-1))\n\ + end\n\ + table.insert(r,'}')\n\ + return\n\ + end\n\ + if opts.err_type then\n\ + error('serialize: unsupported type ' .. vt, 2)\n\ + else\n\ + table.insert(r,'\"'..tostring(v)..'\"')\n\ + end\n\ +end\n\ +serialize_defaults = {\n\ + maxdepth=10,\n\ + err_type=true,\n\ + err_cycle=true,\n\ + pretty=false,\n\ +}\n\ +function serialize(v,opts)\n\ + if opts then\n\ + for k,v in pairs(serialize_defaults) do\n\ + if not opts[k] then\n\ + opts[k]=v\n\ + end\n\ + end\n\ + else\n\ + opts=serialize_defaults\n\ + end\n\ + local r={}\n\ + serialize_r(v,opts,r)\n\ + return table.concat(r)\n\ +end\n" + +#define PTP_CHDK_LUA_SERIALIZE_SIMPLEQUOTE "\n\ +serialize_r = function(v,opts,r,seen,depth)\n\ + local vt = type(v)\n\ + if vt == 'nil' or vt == 'boolean' or vt == 'number' then\n\ + table.insert(r,tostring(v))\n\ + return\n\ + end\n\ + if vt == 'string' then\n\ + table.insert(r,string.format('%q',v))\n\ + return\n\ + end\n\ + if vt == 'table' then\n\ + if not depth then\n\ + depth = 1\n\ + end\n\ + if depth >= opts.maxdepth then\n\ + error('serialize: max depth')\n\ + end\n\ + if not seen then\n\ + seen={}\n\ + elseif seen[v] then\n\ + if opts.err_cycle then\n\ + error('serialize: cycle')\n\ + else\n\ + table.insert(r,'\"cycle:'..tostring(v)..'\"')\n\ + return\n\ + end\n\ + end\n\ + seen[v] = true;\n\ + table.insert(r,'{')\n\ + for k,v1 in pairs(v) do\n\ + if opts.pretty then\n\ + table.insert(r,'\\n'..string.rep(' ',depth))\n\ + end\n\ + if type(k) == 'string' and string.match(k,'^[_%a][%a%d_]*$') then\n\ + table.insert(r,k)\n\ + else\n\ + table.insert(r,'[')\n\ + serialize_r(k,opts,r,seen,depth+1)\n\ + table.insert(r,']')\n\ + end\n\ + table.insert(r,'=')\n\ + serialize_r(v1,opts,r,seen,depth+1)\n\ + table.insert(r,',')\n\ + end\n\ + if opts.pretty then\n\ + table.insert(r,'\\n'..string.rep(' ',depth-1))\n\ + end\n\ + table.insert(r,'}')\n\ + return\n\ + end\n\ + if opts.err_type then\n\ + error('serialize: unsupported type ' .. vt, 2)\n\ + else\n\ + table.insert(r,'\"'..tostring(v)..'\"')\n\ + end\n\ +end\n\ +serialize_defaults = {\n\ + maxdepth=10,\n\ + err_type=true,\n\ + err_cycle=true,\n\ + pretty=false,\n\ +}\n\ +function serialize(v,opts)\n\ + if opts then\n\ + for k,v in pairs(serialize_defaults) do\n\ + if not opts[k] then\n\ + opts[k]=v\n\ + end\n\ + end\n\ + else\n\ + opts=serialize_defaults\n\ + end\n\ + local r={}\n\ + serialize_r(v,opts,r)\n\ + return table.concat(r)\n\ +end\n" + +#define PTP_CHDK_LUA_SERIALIZE_MSGS \ +PTP_CHDK_LUA_SERIALIZE\ +"usb_msg_table_to_string=serialize\n" + +#define PTP_CHDK_LUA_SERIALIZE_MSGS_SIMPLEQUOTE \ +PTP_CHDK_LUA_SERIALIZE_SIMPLEQUOTE\ +"usb_msg_table_to_string=serialize\n" + +#define PTP_CHDK_LUA_EXTEND_TABLE \ +"function extend_table(target,source,deep)\n\ + if type(target) ~= 'table' then\n\ + error('extend_table: target not table')\n\ + end\n\ + if source == nil then\n\ + return target\n\ + end\n\ + if type(source) ~= 'table' then \n\ + error('extend_table: source not table')\n\ + end\n\ + if source == target then\n\ + error('extend_table: source == target')\n\ + end\n\ + if deep then\n\ + return extend_table_r(target, source)\n\ + else \n\ + for k,v in pairs(source) do\n\ + target[k]=v\n\ + end\n\ + return target\n\ + end\n\ +end\n" + +#define PTP_CHDK_LUA_MSG_BATCHER \ +PTP_CHDK_LUA_SERIALIZE_MSGS \ +PTP_CHDK_LUA_EXTEND_TABLE \ +"function msg_batcher(opts)\n\ + local t = extend_table({\n\ + batchsize=50,\n\ + batchgc='step',\n\ + timeout=100000,\n\ + },opts)\n\ + t.data={}\n\ + t.n=0\n\ + if t.dbgmem then\n\ + t.init_free = get_meminfo().free_block_max_size\n\ + t.init_count = collectgarbage('count')\n\ + end\n\ + t.write=function(self,val)\n\ + self.n = self.n+1\n\ + self.data[self.n]=val\n\ + if self.n >= self.batchsize then\n\ + return self:flush()\n\ + end\n\ + return true\n\ + end\n\ + t.flush = function(self)\n\ + if self.n > 0 then\n\ + if self.dbgmem then\n\ + local count=collectgarbage('count')\n\ + local free=get_meminfo().free_block_max_size\n\ + self.data._dbg=string.format(\"count %%d (%%d) free %%d (%%d)\",\n\ + count, count - self.init_count, free, self.init_free-free)\n\ + end\n\ + if not write_usb_msg(self.data,self.timeout) then\n\ + return false\n\ + end\n\ + self.data={}\n\ + self.n=0\n\ + if self.batchgc then\n\ + collectgarbage(self.batchgc)\n\ + end\n\ + if self.batchpause then\n\ + sleep(self.batchpause)\n\ + end\n\ + end\n\ + return true\n\ + end\n\ + return t\n\ +end\n" + +#define PTP_CHDK_LUA_LS_SIMPLE \ +PTP_CHDK_LUA_MSG_BATCHER \ +"function ls_simple(path)\n\ + local b=msg_batcher()\n\ + local t,err=os.listdir(path)\n\ + if not t then\n\ + return false,err\n\ + end\n\ + for i,v in ipairs(t) do\n\ + if not b:write(v) then\n\ + return false\n\ + end\n\ + end\n\ + return b:flush()\n\ +end\n" + +#define PTP_CHDK_LUA_JOINPATH \ +"function joinpath(...)\n\ + local parts={...}\n\ + if #parts < 2 then\n\ + error('joinpath requires at least 2 parts',2)\n\ + end\n\ + local r=parts[1]\n\ + for i = 2, #parts do\n\ + local v = string.gsub(parts[i],'^/','')\n\ + if not string.match(r,'/$') then\n\ + r=r..'/'\n\ + end\n\ + r=r..v\n\ + end\n\ + return r\n\ +end\n" + +#define PTP_CHDK_LUA_LS \ +PTP_CHDK_LUA_MSG_BATCHER \ +PTP_CHDK_LUA_JOINPATH \ +"function ls_single(opts,b,path,v)\n\ + if not opts.match or string.match(v,opts.match) then\n\ + if opts.stat then\n\ + local st,msg=os.stat(joinpath(path,v))\n\ + if not st then\n\ + return false,msg\n\ + end\n\ + if opts.stat == '/' then\n\ + if st.is_dir then\n\ + b:write(v .. '/')\n\ + else\n\ + b:write(v)\n\ + end\n\ + elseif opts.stat == '*' then\n\ + st.name=v\n\ + b:write(st)\n\ + end\n\ + else\n\ + b:write(v)\n\ + end\n\ + end\n\ + return true\n\ +end\n\ +\n\ +function ls(path,opts_in)\n\ + local opts={\n\ + msglimit=50,\n\ + msgtimeout=100000,\n\ + dirsonly=true\n\ + }\n\ + if opts_in then\n\ + for k,v in pairs(opts_in) do\n\ + opts[k]=v\n\ + end\n\ + end\n\ + local st, err = os.stat(path)\n\ + if not st then\n\ + return false, err\n\ + end\n\ + \n\ + local b=msg_batcher{\n\ + batchsize=opts.msglimit,\n\ + timeout=opts.msgtimeout\n\ + }\n\ + \n\ + if not st.is_dir then\n\ + if opts.dirsonly then\n\ + return false, 'not a directory'\n\ + end\n\ + if opts.stat == '*' then\n\ + st.name=path\n\ + b:write(st)\n\ + else\n\ + b:write(path)\n\ + end\n\ + b:flush()\n\ + return true\n\ + end\n\ + \n\ + if os.idir then\n\ + for v in os.idir(path,opts.listall) do\n\ + local status,err=ls_single(opts,b,path,v)\n\ + if not status then\n\ + return false, err\n\ + end\n\ + end\n\ + else\n\ + local t,msg=os.listdir(path,opts.listall)\n\ + if not t then\n\ + return false,msg\n\ + end\n\ + for i,v in ipairs(t) do\n\ + local status,err=ls_single(opts,b,path,v)\n\ + if not status then\n\ + return false, err\n\ + end\n\ + end\n\ + end\n\ + b:flush()\n\ + return true\n\ +end\n" + +#define PTP_CHDK_LUA_RLIB_SHOOT_COMMON \ +"function rlib_shoot_init_exp(opts) \n\ + if opts.tv then\n\ + set_tv96_direct(opts.tv)\n\ + end\n\ + if opts.sv then\n\ + set_sv96(opts.sv)\n\ + end\n\ + if opts.svm then\n\ + if type(sv96_market_to_real) ~= 'function' then\n\ + error('svm not supported')\n\ + end\n\ + set_sv96(sv96_market_to_real(opts.svm))\n\ + end\n\ + if opts.isomode then\n\ + set_iso_mode(opts.isomode)\n\ + end\n\ + if opts.av then\n\ + set_av96_direct(opts.av)\n\ + end\n\ + if opts.nd then\n\ + set_nd_filter(opts.nd)\n\ + end\n\ + if opts.sd then\n\ + set_focus(opts.sd)\n\ + end\n\ +end\n" + +#define PTP_CHDK_LUA_RLIB_SHOOT \ +PTP_CHDK_LUA_RLIB_SHOOT_COMMON \ +"function rlib_shoot(opts)\n\ + local rec,vid = get_mode()\n\ + if not rec then\n\ + return false,'not in rec mode'\n\ + end\n\ +\n\ + rlib_shoot_init_exp(opts)\n\ +\n\ + local save_raw\n\ + if opts.raw then\n\ + save_raw=get_raw()\n\ + set_raw(opts.raw)\n\ + end\n\ + local save_dng\n\ + if opts.dng then\n\ + save_dng=get_config_value(226)\n\ + set_config_value(226,opts.dng)\n\ + end\n\ + shoot()\n\ + local r\n\ + if opts.info then\n\ + r = {\n\ + dir=get_image_dir(),\n\ + exp=get_exp_count(),\n\ + raw=(get_raw() == 1),\n\ + }\n\ + if r.raw then\n\ + r.raw_in_dir = (get_config_value(35) == 1)\n\ + r.raw_pfx = get_config_value(36)\n\ + r.raw_ext = get_config_value(37)\n\ + r.dng = (get_config_value(226) == 1)\n\ + if r.dng then\n\ + r.use_dng_ext = (get_config_value(234) == 1)\n\ + end\n\ + end\n\ + else\n\ + r=true\n\ + end\n\ + if save_raw then\n\ + set_raw(save_raw)\n\ + end\n\ + if save_dng then\n\ + set_config_value(226,save_dng)\n\ + end\n\ + return r\n\ +end\n" + + + +// bit flags for script start +#define PTP_CHDK_SCRIPT_FL_NOKILL 0x100 // if script is running return error instead of killing +#define PTP_CHDK_SCRIPT_FL_FLUSH_CAM_MSGS 0x200 // discard existing cam->host messages before starting +#define PTP_CHDK_SCRIPT_FL_FLUSH_HOST_MSGS 0x400 // discard existing host->cam messages before starting + +// bit flags for script status +#define PTP_CHDK_SCRIPT_STATUS_RUN 0x1 // script running +#define PTP_CHDK_SCRIPT_STATUS_MSG 0x2 // messages waiting +// bit flags for scripting support +#define PTP_CHDK_SCRIPT_SUPPORT_LUA 0x1 + + +// bit flags for remote capture +// used to select and also to indicate available data in PTP_CHDK_RemoteCaptureIsReady +/* +Full jpeg file. Note supported on all cameras, use Lua get_usb_capture_support to check +*/ +#define PTP_CHDK_CAPTURE_JPG 0x1 + +/* +Raw framebuffer data, in camera native format. +A subset of rows may be requested in init_usb_capture. +*/ +#define PTP_CHDK_CAPTURE_RAW 0x2 + +/* +DNG header. +The header will be DNG version 1.3 +Does not include image data, clients wanting to create a DNG file should also request RAW +Raw data for all known cameras will be packed, little endian. Client is responsible for +reversing the byte order if creating a DNG. +Can requested without RAW to get sensor dimensions, exif values etc. + +ifd 0 specifies a 128x96 RGB thumbnail, 4 byte aligned following the header +client is responsible for generating thumbnail data. + +ifd 0 subifd 0 specifies the main image +The image dimensions always contain the full sensor dimensions, if a sub-image was requested +with init_usb_capture, the client is responsible for padding the data to the full image or +adjusting dimensions. + +Bad pixels will not be patched, but DNG opcodes will specify how to patch them +*/ +#define PTP_CHDK_CAPTURE_DNGHDR 0x4 + +// status from PTP_CHDK_RemoteCaptureIsReady if capture not enabled +#define PTP_CHDK_CAPTURE_NOTSET 0x10000000 + +// message types +enum ptp_chdk_script_msg_type { + PTP_CHDK_S_MSGTYPE_NONE = 0, // no messages waiting + PTP_CHDK_S_MSGTYPE_ERR, // error message + PTP_CHDK_S_MSGTYPE_RET, // script return value + PTP_CHDK_S_MSGTYPE_USER, // message queued by script +// TODO chdk console data ? +}; + +// error subtypes for PTP_CHDK_S_MSGTYPE_ERR and script startup status +enum ptp_chdk_script_error_type { + PTP_CHDK_S_ERRTYPE_NONE = 0, + PTP_CHDK_S_ERRTYPE_COMPILE, + PTP_CHDK_S_ERRTYPE_RUN, + // the following are for ExecuteScript status only, not message types + PTP_CHDK_S_ERR_SCRIPTRUNNING = 0x1000, // script already running with NOKILL +}; + +// message status +enum ptp_chdk_script_msg_status { + PTP_CHDK_S_MSGSTATUS_OK = 0, // queued ok + PTP_CHDK_S_MSGSTATUS_NOTRUN, // no script is running + PTP_CHDK_S_MSGSTATUS_QFULL, // queue is full + PTP_CHDK_S_MSGSTATUS_BADID, // specified ID is not running +}; + +#endif // __CHDK_PTP_H diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/config.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/config.c new file mode 100644 index 00000000..f2448921 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/config.c @@ -0,0 +1,9358 @@ +/* config.c + * + * Copyright (C) 2003-2019 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#define _DEFAULT_SOURCE +#include "config.h" + +#include +#include +#include +#include +#include +#ifdef WIN32 +# include +#else +# include +# include +# include +#endif +#include + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "ptp.h" +#include "ptp-bugs.h" +#include "ptp-private.h" +#include "ptp-pack.c" + +#ifdef __GNUC__ +# define __unused__ __attribute__((unused)) +#else +# define __unused__ +#endif + +#define SET_CONTEXT(camera, ctx) ((PTPData *) camera->pl->params.data)->context = ctx + +int +have_prop(Camera *camera, uint16_t vendor, uint16_t prop) { + unsigned int i; + + /* prop 0 matches */ + if (!prop && (camera->pl->params.deviceinfo.VendorExtensionID==vendor)) + return 1; + + if ( ((prop & 0x7000) == 0x5000) || + (NIKON_1(&camera->pl->params) && ((prop & 0xf000) == 0xf000)) + ) { /* properties */ + for (i=0; ipl->params.deviceinfo.DevicePropertiesSupported_len; i++) { + if (prop != camera->pl->params.deviceinfo.DevicePropertiesSupported[i]) + continue; + if ((prop & 0xf000) == 0x5000) { /* generic property */ + if (!vendor || (camera->pl->params.deviceinfo.VendorExtensionID==vendor)) + return 1; + } + if (camera->pl->params.deviceinfo.VendorExtensionID==vendor) + return 1; + } + } + if ((prop & 0x7000) == 0x1000) { /* commands */ + for (i=0; ipl->params.deviceinfo.OperationsSupported_len; i++) { + if (prop != camera->pl->params.deviceinfo.OperationsSupported[i]) + continue; + if ((prop & 0xf000) == 0x1000) /* generic property */ + return 1; + if (camera->pl->params.deviceinfo.VendorExtensionID==vendor) + return 1; + } + } + return 0; +} + +static int +camera_prepare_chdk_capture(Camera *camera, GPContext *context) { + PTPParams *params = &camera->pl->params; + int scriptid = 0, major = 0,minor = 0; + unsigned int status; + int luastatus; + ptp_chdk_script_msg *msg = NULL; + char *lua = +PTP_CHDK_LUA_SERIALIZE +"if not get_mode() then\n\ + switch_mode_usb(1)\n\ + local i=0\n\ + while not get_mode() and i < 300 do\n\ + sleep(10)\n\ + i=i+1\n\ + end\n\ + if not get_mode() then\n\ + return false, 'switch failed'\n\ + end\n\ + return true\n\ +end\n\ +return false,'already in rec'\n\ +"; + C_PTP (ptp_chdk_get_version (params, &major, &minor)); + GP_LOG_D ("CHDK %d.%d", major, minor); + + GP_LOG_D ("calling lua script %s", lua); + C_PTP (ptp_chdk_exec_lua(params, lua, 0, &scriptid, &luastatus)); + GP_LOG_D ("called script. script id %d, status %d", scriptid, luastatus); + + while (1) { + C_PTP (ptp_chdk_get_script_status(params, &status)); + GP_LOG_D ("script status %x", status); + + if (status & PTP_CHDK_SCRIPT_STATUS_MSG) { + C_PTP (ptp_chdk_read_script_msg(params, &msg)); + GP_LOG_D ("message script id %d, type %d, subtype %d", msg->script_id, msg->type, msg->subtype); + GP_LOG_D ("message script %s", msg->data); + free (msg); + } + + if (!(status & PTP_CHDK_SCRIPT_STATUS_RUN)) + break; + usleep(100000); + } + return GP_OK; +} + +static int +camera_unprepare_chdk_capture(Camera *camera, GPContext *context) { + PTPParams *params = &camera->pl->params; + int scriptid = 0, status = 0; + ptp_chdk_script_msg *msg = NULL; + char *lua = +PTP_CHDK_LUA_SERIALIZE +"if get_mode() then\n\ + switch_mode_usb(0)\n\ + local i=0\n\ + while get_mode() and i < 300 do\n\ + sleep(10)\n\ + i=i+1\n\ + end\n\ + if get_mode() then\n\ + return false, 'switch failed'\n\ + end\n\ + return true\n\ +end\n\ +return false,'already in play'\n\ +"; + GP_LOG_D ("calling lua script %s", lua); + C_PTP (ptp_chdk_exec_lua(params, lua, 0, &scriptid, &status)); + C_PTP (ptp_chdk_read_script_msg(params, &msg)); + + GP_LOG_D ("called script. script id %d, status %d", scriptid, status); + GP_LOG_D ("message script id %d, type %d, subtype %d", msg->script_id, msg->type, msg->subtype); + GP_LOG_D ("message script %s", msg->data); + free (msg); + if (!status) { + gp_context_error(context,_("CHDK did not leave recording mode.")); + return GP_ERROR; + } + return GP_OK; +} + +static int +camera_prepare_canon_powershot_capture(Camera *camera, GPContext *context) { + uint16_t ret; + PTPContainer event; + PTPPropertyValue propval; + PTPParams *params = &camera->pl->params; + int found, oldtimeout; + + if (ptp_property_issupported(params, PTP_DPC_CANON_FlashMode)) { + GP_LOG_D ("Canon capture mode is already set up."); + C_PTP (ptp_getdevicepropvalue(params, PTP_DPC_CANON_EventEmulateMode, &propval, PTP_DTC_UINT16)); + GP_LOG_D ("Event emulate mode 0x%04x", propval.u16); + params->canon_event_mode = propval.u16; + return GP_OK; + } + + propval.u16 = 0; + C_PTP (ptp_getdevicepropvalue(params, PTP_DPC_CANON_EventEmulateMode, &propval, PTP_DTC_UINT16)); + GP_LOG_D ("prop 0xd045 value is 0x%04x",propval.u16); + + propval.u16=1; + C_PTP (ptp_setdevicepropvalue(params, PTP_DPC_CANON_EventEmulateMode, &propval, PTP_DTC_UINT16)); + params->canon_event_mode = propval.u16; + C_PTP (ptp_getdevicepropvalue(params, PTP_DPC_CANON_SizeOfOutputDataFromCamera, &propval, PTP_DTC_UINT32)); + GP_LOG_D ("prop PTP_DPC_CANON_SizeOfOutputDataFromCamera value is %d",propval.u32); + C_PTP (ptp_getdevicepropvalue(params, PTP_DPC_CANON_SizeOfInputDataToCamera, &propval, PTP_DTC_UINT32)); + GP_LOG_D ("prop PTP_DPC_CANON_SizeOfInputDataToCamera value is %d",propval.u32); + + C_PTP (ptp_getdeviceinfo (params, ¶ms->deviceinfo)); + C_PTP (ptp_getdeviceinfo (params, ¶ms->deviceinfo)); + CR (fixup_cached_deviceinfo (camera, ¶ms->deviceinfo)); + + C_PTP (ptp_getdevicepropvalue(params, PTP_DPC_CANON_SizeOfOutputDataFromCamera, &propval, PTP_DTC_UINT32)); + GP_LOG_D ("prop PTP_DPC_CANON_SizeOfOutputDataFromCamera value is %d",propval.u32); + C_PTP (ptp_getdevicepropvalue(params, PTP_DPC_CANON_SizeOfInputDataToCamera, &propval, PTP_DTC_UINT32)); + GP_LOG_D ("prop PTP_DPC_CANON_SizeOfInputDataToCamera value is %d",propval.u32); + C_PTP (ptp_getdeviceinfo (params, ¶ms->deviceinfo)); + CR (fixup_cached_deviceinfo (camera, ¶ms->deviceinfo)); + C_PTP (ptp_getdevicepropvalue(params, PTP_DPC_CANON_EventEmulateMode, &propval, PTP_DTC_UINT16)); + params->canon_event_mode = propval.u16; + GP_LOG_D ("prop 0xd045 value is 0x%04x",propval.u16); + + GP_LOG_D ("Magic code ends."); + + GP_LOG_D ("Setting prop. EventEmulateMode to 7."); +/* interrupt 9013 get event + 1 Yes No + 2 Yes No + 3 Yes Yes + 4 Yes Yes + 5 Yes Yes + 6 No No + 7 No Yes + */ + propval.u16 = 7; + C_PTP (ptp_setdevicepropvalue(params, PTP_DPC_CANON_EventEmulateMode, &propval, PTP_DTC_UINT16)); + params->canon_event_mode = propval.u16; + + ret = ptp_canon_startshootingmode (params); + if (ret == PTP_RC_CANON_A009) { + /* I think this means ... already in capture mode */ + return GP_OK; + } + if (ret != PTP_RC_OK) { + GP_LOG_E ("'ptp_canon_startshootingmode (params)' failed: 0x%04x", ret); + C_PTP_REP (ret); + } + gp_port_get_timeout (camera->port, &oldtimeout); + gp_port_set_timeout (camera->port, 1000); + + /* Catch the event telling us the mode was switched ... */ + /* If we were prepared already, it will be 5*50*1000 wait, so 1/4 second ... hmm */ + found = 0; + while (found++<10) { + ret = ptp_check_event (params); + if (ret != PTP_RC_OK) + break; + + while (ptp_get_one_event (params, &event)) { + GP_LOG_D ("Event: 0x%x", event.Code); + if ((event.Code==0xc00c) || + (event.Code==PTP_EC_StorageInfoChanged)) { + GP_LOG_D ("Event: Entered shooting mode."); + found = 1; + break; + } + } + usleep(50*1000); + } + +#if 0 + gp_port_set_timeout (camera->port, oldtimeout); + if (ptp_operation_issupported(params, PTP_OC_CANON_ViewfinderOn)) { + ret = ptp_canon_viewfinderon (params); + if (ret != PTP_RC_OK) + GP_LOG_E ("Canon enable viewfinder failed: %d", ret); + /* ignore errors here */ + } + gp_port_set_timeout (camera->port, 1000); +#endif + + /* Reget device info, they change on the Canons. */ + C_PTP (ptp_getdeviceinfo(&camera->pl->params, &camera->pl->params.deviceinfo)); + CR (fixup_cached_deviceinfo (camera, &camera->pl->params.deviceinfo)); + gp_port_set_timeout (camera->port, oldtimeout); + return GP_OK; +} + +int +camera_canon_eos_update_capture_target(Camera *camera, GPContext *context, int value) { + PTPParams *params = &camera->pl->params; + char buf[200]; + PTPPropertyValue ct_val; + PTPDevicePropDesc dpd; + int cardval = -1; + + memset(&dpd,0,sizeof(dpd)); + if (!have_eos_prop(params, PTP_VENDOR_CANON, PTP_DPC_CANON_EOS_CaptureDestination) ) { + GP_LOG_D ("No CaptureDestination property?"); + return GP_OK; + } + C_PTP (ptp_canon_eos_getdevicepropdesc (params,PTP_DPC_CANON_EOS_CaptureDestination, &dpd)); + + /* Look for the correct value of the card mode */ + if (value != PTP_CANON_EOS_CAPTUREDEST_HD) { + if (dpd.FormFlag == PTP_DPFF_Enumeration) { + unsigned int i; + for (i=0;i 0) + break; + } + } + } else { + GP_LOG_D ("optimized ... setdevicepropvalue of capturetarget to 0x%x not done as it was set already.", ct_val.u32 ); + } + ptp_free_devicepropdesc (&dpd); + return GP_OK; +} + +static int +camera_prepare_canon_eos_capture(Camera *camera, GPContext *context) { + PTPParams *params = &camera->pl->params; + PTPStorageIDs sids; + int tries; + + GP_LOG_D ("preparing EOS capture..."); + + if (is_canon_eos_m(params)) { + int mode = 0x15; /* default for EOS M and newer Powershot SX */ + + if (!strcmp(params->deviceinfo.Model,"Canon PowerShot G5 X")) mode = 0x11; + if (!strcmp(params->deviceinfo.Model,"Canon EOS M6 Mark II")) mode = 0x1; + C_PTP (ptp_canon_eos_setremotemode(params, mode)); + } else { + C_PTP (ptp_canon_eos_setremotemode(params, 1)); + } + C_PTP (ptp_canon_eos_seteventmode(params, 1)); + params->eos_camerastatus = -1; /* aka unknown */ + + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_SetRequestOLCInfoGroup)) + C_PTP (ptp_canon_eos_setrequestolcinfogroup(params, 0x00001fff)); + + /* Get the initial bulk set of event data */ + C_PTP (ptp_check_eos_events (params)); + + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_RequestDevicePropValue)) { + /* request additional properties */ + /* if one of this is not present GeneralError will be returned, so only check + * and log, but do not error return */ + LOG_ON_PTP_E (ptp_canon_eos_requestdevicepropvalue (params, PTP_DPC_CANON_EOS_Owner)); + LOG_ON_PTP_E (ptp_canon_eos_requestdevicepropvalue (params, PTP_DPC_CANON_EOS_Artist)); + LOG_ON_PTP_E (ptp_canon_eos_requestdevicepropvalue (params, PTP_DPC_CANON_EOS_Copyright)); + LOG_ON_PTP_E (ptp_canon_eos_requestdevicepropvalue (params, PTP_DPC_CANON_EOS_SerialNumber)); + +/* LOG_ON_PTP_E (ptp_canon_eos_requestdevicepropvalue (params, PTP_DPC_CANON_EOS_DPOFVersion)); */ +/* LOG_ON_PTP_E (ptp_canon_eos_requestdevicepropvalue (params, PTP_DPC_CANON_EOS_MyMenuList)); */ +/* LOG_ON_PTP_E (ptp_canon_eos_requestdevicepropvalue (params, PTP_DPC_CANON_EOS_LensAdjustParams)); */ + } + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_GetDeviceInfoEx)) { + PTPCanonEOSDeviceInfo x; + unsigned int i; + + C_PTP (ptp_canon_eos_getdeviceinfo (params, &x)); + for (i=0;ideviceinfo); + C_PTP (ptp_getdeviceinfo(params, ¶ms->deviceinfo)); + CR (fixup_cached_deviceinfo (camera, ¶ms->deviceinfo)); + C_PTP (ptp_canon_eos_getstorageids(params, &sids)); + if (sids.n >= 1) { + unsigned char *sdata; + unsigned int slen; + C_PTP (ptp_canon_eos_getstorageinfo(params, sids.Storage[0], &sdata, &slen )); + free (sdata); + } + free (sids.Storage); + + /* FIXME: 9114 call missing here! */ + + /* Get the second bulk set of 0x9116 property data */ + C_PTP (ptp_check_eos_events (params)); + params->eos_captureenabled = 1; + + /* run this only on EOS M, not on PowerShot SX */ + /* FIXME: needs more testing :/ */ + if (is_canon_eos_m (params) && strstr(params->deviceinfo.Model,"EOS")) { + /* This code is needed on EOS m3 at least. might not be needed on others ... mess :/ */ + PTPPropertyValue ct_val; + + GP_LOG_D ("EOS M detected"); + + C_PTP (ptp_canon_eos_seteventmode(params, 2)); + ct_val.u16 = 0x0008; + C_PTP (ptp_canon_eos_setdevicepropvalue (params, PTP_DPC_CANON_EOS_EVFOutputDevice, &ct_val, PTP_DTC_UINT16)); + +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + usleep(1000*1000); /* 1 second */ +#endif + + C_PTP (ptp_check_eos_events (params)); + } + return GP_OK; +} + +int +camera_prepare_capture (Camera *camera, GPContext *context) +{ + PTPParams *params = &camera->pl->params; + + GP_LOG_D ("prepare_capture"); + switch (params->deviceinfo.VendorExtensionID) { + case PTP_VENDOR_FUJI: + { + PTPPropertyValue propval; + + /* without the firmware update ... not an error... */ + if (!have_prop (camera, PTP_VENDOR_FUJI, 0xd207)) + return GP_OK; + + /* timelapse does: + * d38c -> 1 (PC Mode) + * d207 -> 2 (USB control) + */ + + propval.u16 = 0x0001; + LOG_ON_PTP_E (ptp_setdevicepropvalue (params, 0xd38c, &propval, PTP_DTC_UINT16)); + propval.u16 = 0x0002; + LOG_ON_PTP_E (ptp_setdevicepropvalue (params, 0xd207, &propval, PTP_DTC_UINT16)); + return GP_OK; + } + break; + case PTP_VENDOR_CANON: + if (ptp_operation_issupported(params, PTP_OC_CANON_InitiateReleaseControl)) + return camera_prepare_canon_powershot_capture(camera,context); + + if (ptp_operation_issupported(params, PTP_OC_CHDK)) + return camera_prepare_chdk_capture(camera,context); + + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteRelease) || + ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn) + ) + return camera_prepare_canon_eos_capture(camera,context); + gp_context_error(context, _("Sorry, your Canon camera does not support Canon capture")); + return GP_ERROR_NOT_SUPPORTED; + case PTP_VENDOR_PANASONIC: { + char buf[1024]; + if ((GP_OK != gp_setting_get("ptp2","capturetarget",buf)) || !strcmp(buf,"sdram")) + C_PTP (ptp_panasonic_setcapturetarget(params, 1)); + else + C_PTP (ptp_panasonic_setcapturetarget(params, 0)); + break; + } + default: + /* generic capture does not need preparation */ + return GP_OK; + } + return GP_OK; +} + +static int +camera_unprepare_canon_powershot_capture(Camera *camera, GPContext *context) { + PTPParams *params = &camera->pl->params; + + C_PTP (ptp_canon_endshootingmode (params)); + + if (ptp_operation_issupported(params, PTP_OC_CANON_ViewfinderOff)) { + if (params->canon_viewfinder_on) { + params->canon_viewfinder_on = 0; + LOG_ON_PTP_E (ptp_canon_viewfinderoff (params)); + /* ignore errors here */ + } + } + /* Reget device info, they change on the Canons. */ + C_PTP (ptp_getdeviceinfo(params, ¶ms->deviceinfo)); + CR (fixup_cached_deviceinfo (camera, ¶ms->deviceinfo)); + return GP_OK; +} + +static int +camera_unprepare_canon_eos_capture(Camera *camera, GPContext *context) { + PTPParams *params = &camera->pl->params; + + /* just in case we had autofocus running */ + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_AfCancel)) + CR (ptp_canon_eos_afcancel(params)); + + if (is_canon_eos_m (params)) { + PTPPropertyValue ct_val; + + ct_val.u16 = 0x0000; + C_PTP (ptp_canon_eos_setdevicepropvalue (params, PTP_DPC_CANON_EOS_EVFOutputDevice, &ct_val, PTP_DTC_UINT16)); + } + + /* then emits 911b and 911c ... not done yet ... */ + CR (camera_canon_eos_update_capture_target(camera, context, 1)); + + if (ptp_operation_issupported(&camera->pl->params, PTP_OC_CANON_EOS_ResetUILock)) + LOG_ON_PTP_E (ptp_canon_eos_resetuilock (params)); + + /* Drain the rest set of the event data */ + C_PTP (ptp_check_eos_events (params)); + C_PTP (ptp_canon_eos_setremotemode(params, 0)); + C_PTP (ptp_canon_eos_seteventmode(params, 0)); + params->eos_captureenabled = 0; + return GP_OK; +} + +int +camera_unprepare_capture (Camera *camera, GPContext *context) +{ + GP_LOG_D ("Unprepare_capture"); + switch (camera->pl->params.deviceinfo.VendorExtensionID) { + case PTP_VENDOR_CANON: + if (ptp_operation_issupported(&camera->pl->params, PTP_OC_CANON_TerminateReleaseControl)) + return camera_unprepare_canon_powershot_capture (camera, context); + + if (ptp_operation_issupported(&camera->pl->params, PTP_OC_CHDK)) + return camera_unprepare_chdk_capture(camera,context); + + if (ptp_operation_issupported(&camera->pl->params, PTP_OC_CANON_EOS_RemoteRelease) || + ptp_operation_issupported(&camera->pl->params, PTP_OC_CANON_EOS_RemoteReleaseOn) + ) + return camera_unprepare_canon_eos_capture (camera, context); + + gp_context_error(context, + _("Sorry, your Canon camera does not support Canon capture")); + return GP_ERROR_NOT_SUPPORTED; + case PTP_VENDOR_FUJI: + { + PTPPropertyValue propval; + PTPParams *params = &camera->pl->params; + + if (params->inliveview) { + C_PTP_REP (ptp_terminateopencapture (params, params->opencapture_transid)); + params->inliveview = 0; + } + + propval.u16 = 0x0001; + C_PTP (ptp_setdevicepropvalue (params, 0xd207, &propval, PTP_DTC_UINT16)); + return GP_OK; + } + break; + default: + /* generic capture does not need unpreparation */ + return GP_OK; + } + return GP_OK; +} + +static uint16_t +nikon_wait_busy(PTPParams *params, int waitms, int timeout) { + uint16_t res; + int tries; + + /* wait either 1 second, or 50 tries */ + if (waitms) + tries=timeout/waitms; + else + tries=50; + do { + res = ptp_nikon_device_ready(params); + if (res != PTP_RC_DeviceBusy) + return res; + if (waitms) usleep(waitms*1000)/*wait a bit*/; + } while (tries--); + return res; +} + +struct submenu; +#define CONFIG_GET_ARGS Camera *camera, CameraWidget **widget, struct submenu* menu, PTPDevicePropDesc *dpd +#define CONFIG_GET_NAMES camera, widget, menu, dpd +typedef int (*get_func)(CONFIG_GET_ARGS); +#define CONFIG_PUT_ARGS Camera *camera, CameraWidget *widget, PTPPropertyValue *propval, PTPDevicePropDesc *dpd +#define CONFIG_PUT_NAMES camera, widget, propval, dpd +typedef int (*put_func)(CONFIG_PUT_ARGS); + +struct menu; +#define CONFIG_MENU_GET_ARGS Camera *camera, CameraWidget **widget, struct menu* menu +typedef int (*get_menu_func)(CONFIG_MENU_GET_ARGS); +#define CONFIG_MENU_PUT_ARGS Camera *camera, CameraWidget *widget +typedef int (*put_menu_func)(CONFIG_MENU_PUT_ARGS); + +struct submenu { + char *label; + char *name; + uint16_t propid; + uint16_t vendorid; + uint32_t type; /* for 32bit alignment */ + get_func getfunc; + put_func putfunc; +}; + +struct menu { + char *label; + char *name; + + uint16_t usb_vendorid; + uint16_t usb_productid; + + /* Either: Standard menu */ + struct submenu *submenus; + /* Or: Non-standard menu with custom behaviour */ + get_menu_func getfunc; + put_menu_func putfunc; +}; + +/* Generic helper function for: + * + * ENUM xINTxx propertiess, with potential vendor specific variables. \ + */ +#define GENERIC_TABLE(bits,type,dpc) \ +struct deviceproptable##bits { \ + char *label; \ + type value; \ + uint16_t vendor_id; \ +};\ +\ +static int \ +_get_Generic##bits##Table(CONFIG_GET_ARGS, struct deviceproptable##bits * tbl, int tblsize) { \ + int i, j; \ + int isset = FALSE, isset2 = FALSE; \ + \ + if (!(dpd->FormFlag & (PTP_DPFF_Enumeration|PTP_DPFF_Range))) { \ + GP_LOG_D ("no enumeration/range in %sbit table code... going on", #bits); \ + } \ + if (dpd->DataType != dpc) { \ + GP_LOG_D ("no %s prop in %sbit table code", #bits, #bits); \ + return GP_ERROR; \ + } \ + \ + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); \ + gp_widget_set_name (*widget, menu->name); \ + if (dpd->FormFlag & PTP_DPFF_Enumeration) { \ + if (!dpd->FORM.Enum.NumberOfValues) { \ + /* fill in with all values we have in the table. */ \ + for (j=0;jpl->params.deviceinfo.VendorExtensionID) \ + ) { \ + gp_widget_add_choice (*widget, _(tbl[j].label)); \ + if (tbl[j].value == dpd->CurrentValue.bits) { \ + gp_widget_set_value (*widget, _(tbl[j].label)); \ + isset2 = TRUE; \ + } \ + } \ + } \ + /* fallthrough in case we do not have currentvalue in the table. isset2 = FALSE */ \ + } \ + for (i = 0; iFORM.Enum.NumberOfValues; i++) { \ + isset = FALSE; \ + for (j=0;jFORM.Enum.SupportedValue[i].bits) && \ + ((tbl[j].vendor_id == 0) || \ + (tbl[j].vendor_id == camera->pl->params.deviceinfo.VendorExtensionID)) \ + ) { \ + gp_widget_add_choice (*widget, _(tbl[j].label)); \ + if (tbl[j].value == dpd->CurrentValue.bits) { \ + isset2 = TRUE; \ + gp_widget_set_value (*widget, _(tbl[j].label)); \ + } \ + isset = TRUE; \ + break; \ + } \ + } \ + if (!isset) { \ + char buf[200]; \ + sprintf(buf, _("Unknown value %04x"), dpd->FORM.Enum.SupportedValue[i].bits); \ + gp_widget_add_choice (*widget, buf); \ + if (dpd->FORM.Enum.SupportedValue[i].bits == dpd->CurrentValue.bits) { \ + isset2 = TRUE; \ + gp_widget_set_value (*widget, buf); \ + } \ + } \ + } \ + } \ + if (dpd->FormFlag & PTP_DPFF_Range) { \ + for ( i = dpd->FORM.Range.MinimumValue.bits; \ + i<=dpd->FORM.Range.MaximumValue.bits; \ + i+= dpd->FORM.Range.StepSize.bits \ + ) { \ + isset = FALSE; \ + for (j=0;jpl->params.deviceinfo.VendorExtensionID)) \ + ) { \ + gp_widget_add_choice (*widget, _(tbl[j].label)); \ + if (i == dpd->CurrentValue.bits) { \ + isset2 = TRUE; \ + gp_widget_set_value (*widget, _(tbl[j].label)); \ + } \ + isset = TRUE; \ + break; \ + } \ + } \ + if (!isset) { \ + char buf[200]; \ + sprintf(buf, _("Unknown value %04d"), i); \ + gp_widget_add_choice (*widget, buf); \ + if (i == dpd->CurrentValue.bits) { \ + isset2 = TRUE; \ + gp_widget_set_value (*widget, buf); \ + } \ + } \ + \ + /* device might report stepsize 0. but we do at least 1 round */ \ + if (dpd->FORM.Range.StepSize.bits == 0) \ + break; \ + } \ + } \ + if (!isset2) { \ + for (j=0;jpl->params.deviceinfo.VendorExtensionID)) && \ + (tbl[j].value == dpd->CurrentValue.bits) \ + ) { \ + gp_widget_add_choice (*widget, _(tbl[j].label)); \ + isset2 = TRUE; \ + gp_widget_set_value (*widget, _(tbl[j].label)); \ + } \ + } \ + if (!isset2) { \ + char buf[200]; \ + sprintf(buf, _("Unknown value %04x"), dpd->CurrentValue.bits); \ + gp_widget_add_choice (*widget, buf); \ + gp_widget_set_value (*widget, buf); \ + } \ + } \ + return (GP_OK); \ +} \ +\ +\ +static int \ +_put_Generic##bits##Table(CONFIG_PUT_ARGS, struct deviceproptable##bits * tbl, int tblsize) { \ + char *value; \ + int i, intval, j; \ + int foundvalue = 0; \ + type bits##val = 0; \ + \ + CR (gp_widget_get_value (widget, &value)); \ + for (i=0;ipl->params.deviceinfo.VendorExtensionID)) \ + ) { \ + bits##val = tbl[i].value; \ + foundvalue = 1; \ + \ + if (dpd->FormFlag & PTP_DPFF_Enumeration) { \ + for (j = 0; jFORM.Enum.NumberOfValues; j++) { \ + if (bits##val == dpd->FORM.Enum.SupportedValue[j].bits) { \ + GP_LOG_D ("FOUND right value for %s in the enumeration at val %d", value, bits##val); \ + propval->bits = bits##val; \ + return GP_OK; \ + } \ + } \ + GP_LOG_D ("did not find the right value for %s in the enumeration at val %d... continuing", value, bits##val); \ + /* continue looking, but with this value as fallback */ \ + } else { \ + GP_LOG_D ("not an enumeration ... return %s as %d", value, bits##val); \ + propval->bits = bits##val; \ + return GP_OK; \ + } \ + } \ + } \ + if (foundvalue) { \ + GP_LOG_D ("Using fallback, not found in enum... return %s as %d", value, bits##val); \ + propval->bits = bits##val; \ + return GP_OK; \ + } \ + if (!sscanf(value, _("Unknown value %04x"), &intval)) { \ + GP_LOG_E ("failed to find value %s in list", value); \ + return GP_ERROR; \ + } \ + GP_LOG_D ("Using fallback, not found in enum... return %s as %d", value, bits##val); \ + propval->bits = intval; \ + return GP_OK; \ +} + +GENERIC_TABLE(u32,uint32_t,PTP_DTC_UINT32) +GENERIC_TABLE(u16,uint16_t,PTP_DTC_UINT16) +GENERIC_TABLE(i16,int16_t, PTP_DTC_INT16) +GENERIC_TABLE(u8, uint8_t, PTP_DTC_UINT8) +GENERIC_TABLE(i8, int8_t, PTP_DTC_INT8) + +#define GENERIC16TABLE(name,tbl) \ +static int \ +_get_##name(CONFIG_GET_ARGS) { \ + return _get_Genericu16Table(CONFIG_GET_NAMES, \ + tbl,sizeof(tbl)/sizeof(tbl[0]) \ + ); \ +} \ + \ +static int __unused__ \ +_put_##name(CONFIG_PUT_ARGS) { \ + return _put_Genericu16Table(CONFIG_PUT_NAMES, \ + tbl,sizeof(tbl)/sizeof(tbl[0]) \ + ); \ +} + +#define GENERIC32TABLE(name,tbl) \ +static int \ +_get_##name(CONFIG_GET_ARGS) { \ + return _get_Genericu32Table(CONFIG_GET_NAMES, \ + tbl,sizeof(tbl)/sizeof(tbl[0]) \ + ); \ +} \ + \ +static int __unused__ \ +_put_##name(CONFIG_PUT_ARGS) { \ + return _put_Genericu32Table(CONFIG_PUT_NAMES, \ + tbl,sizeof(tbl)/sizeof(tbl[0]) \ + ); \ +} + +#define GENERICI16TABLE(name,tbl) \ +static int \ +_get_##name(CONFIG_GET_ARGS) { \ + return _get_Generici16Table(CONFIG_GET_NAMES, \ + tbl,sizeof(tbl)/sizeof(tbl[0]) \ + ); \ +} \ + \ +static int __unused__ \ +_put_##name(CONFIG_PUT_ARGS) { \ + return _put_Generici16Table(CONFIG_PUT_NAMES, \ + tbl,sizeof(tbl)/sizeof(tbl[0]) \ + ); \ +} + +#define GENERIC8TABLE(name,tbl) \ +static int \ +_get_##name(CONFIG_GET_ARGS) { \ + return _get_Genericu8Table(CONFIG_GET_NAMES, \ + tbl,sizeof(tbl)/sizeof(tbl[0]) \ + ); \ +} \ + \ +static int __unused__ \ +_put_##name(CONFIG_PUT_ARGS) { \ + return _put_Genericu8Table(CONFIG_PUT_NAMES, \ + tbl,sizeof(tbl)/sizeof(tbl[0]) \ + ); \ +} + +#define GENERICI8TABLE(name,tbl) \ +static int \ +_get_##name(CONFIG_GET_ARGS) { \ + return _get_Generici8Table(CONFIG_GET_NAMES, \ + tbl,sizeof(tbl)/sizeof(tbl[0]) \ + ); \ +} \ + \ +static int __unused__ \ +_put_##name(CONFIG_PUT_ARGS) { \ + return _put_Generici8Table(CONFIG_PUT_NAMES, \ + tbl,sizeof(tbl)/sizeof(tbl[0]) \ + ); \ +} + +static int +_get_AUINT8_as_CHAR_ARRAY(CONFIG_GET_ARGS) { + unsigned int j; + char value[128]; + + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + if (dpd->DataType != PTP_DTC_AUINT8) { + sprintf (value,_("unexpected datatype %i"),dpd->DataType); + } else { + memset(value,0,sizeof(value)); + for (j=0;jCurrentValue.a.count;j++) + value[j] = dpd->CurrentValue.a.v[j].u8; + } + gp_widget_set_value (*widget,value); + return (GP_OK); +} + +static int +_get_STR(CONFIG_GET_ARGS) { + char value[64]; + + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + if (dpd->DataType != PTP_DTC_STR) { + sprintf (value,_("unexpected datatype %i"),dpd->DataType); + gp_widget_set_value (*widget,value); + } else { + gp_widget_set_value (*widget,dpd->CurrentValue.str); + } + return (GP_OK); +} + +static int +_put_STR(CONFIG_PUT_ARGS) { + const char *string; + + CR (gp_widget_get_value(widget, &string)); + C_MEM (propval->str = strdup (string)); + return (GP_OK); +} + +static int +_put_AUINT8_as_CHAR_ARRAY(CONFIG_PUT_ARGS) { + char *value; + unsigned int i; + + CR (gp_widget_get_value(widget, &value)); + memset(propval,0,sizeof(PTPPropertyValue)); + /* add \0 ? */ + C_MEM (propval->a.v = malloc((strlen(value)+1)*sizeof(PTPPropertyValue))); + propval->a.count = strlen(value)+1; + for (i=0;ia.v[i].u8 = value[i]; + return (GP_OK); +} + +static int +_get_Range_INT8(CONFIG_GET_ARGS) { + float CurrentValue; + + if (dpd->FormFlag != PTP_DPFF_Range) + return (GP_ERROR_NOT_SUPPORTED); + if (dpd->DataType != PTP_DTC_INT8) + return (GP_ERROR_NOT_SUPPORTED); + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name ( *widget, menu->name); + CurrentValue = (float) dpd->CurrentValue.i8; + gp_widget_set_range ( *widget, (float) dpd->FORM.Range.MinimumValue.i8, (float) dpd->FORM.Range.MaximumValue.i8, (float) dpd->FORM.Range.StepSize.i8); + gp_widget_set_value ( *widget, &CurrentValue); + return (GP_OK); +} + + +static int +_put_Range_INT8(CONFIG_PUT_ARGS) { + float f; + + CR (gp_widget_get_value(widget, &f)); + propval->i8 = (int) f; + return (GP_OK); +} + +static int +_get_Range_UINT8(CONFIG_GET_ARGS) { + float CurrentValue; + + if (dpd->FormFlag != PTP_DPFF_Range) + return (GP_ERROR_NOT_SUPPORTED); + if (dpd->DataType != PTP_DTC_UINT8) + return (GP_ERROR_NOT_SUPPORTED); + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name ( *widget, menu->name); + CurrentValue = (float) dpd->CurrentValue.u8; + gp_widget_set_range ( *widget, (float) dpd->FORM.Range.MinimumValue.u8, (float) dpd->FORM.Range.MaximumValue.u8, (float) dpd->FORM.Range.StepSize.u8); + gp_widget_set_value ( *widget, &CurrentValue); + return (GP_OK); +} + + +static int +_put_Range_UINT8(CONFIG_PUT_ARGS) { + float f; + + CR (gp_widget_get_value(widget, &f)); + propval->u8 = (int) f; + return (GP_OK); +} + +/* generic int getter */ +static int +_get_INT(CONFIG_GET_ARGS) { + char value[64]; + + switch (dpd->DataType) { + case PTP_DTC_UINT32: + sprintf (value, "%u", dpd->CurrentValue.u32 ); + break; + case PTP_DTC_INT32: + sprintf (value, "%d", dpd->CurrentValue.i32 ); + break; + case PTP_DTC_UINT16: + sprintf (value, "%u", dpd->CurrentValue.u16 ); + break; + case PTP_DTC_INT16: + sprintf (value, "%d", dpd->CurrentValue.i16 ); + break; + case PTP_DTC_UINT8: + sprintf (value, "%u", dpd->CurrentValue.u8 ); + break; + case PTP_DTC_INT8: + sprintf (value, "%d", dpd->CurrentValue.i8 ); + break; + default: + sprintf (value,_("unexpected datatype %i"),dpd->DataType); + return GP_ERROR; + } + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_set_value (*widget,value); + return GP_OK; +} + +static int +_put_INT(CONFIG_PUT_ARGS) { + char *value; + unsigned int u; + int i; + + CR (gp_widget_get_value(widget, &value)); + + switch (dpd->DataType) { + case PTP_DTC_UINT32: + case PTP_DTC_UINT16: + case PTP_DTC_UINT8: + C_PARAMS (1 == sscanf (value, "%u", &u )); + break; + case PTP_DTC_INT32: + case PTP_DTC_INT16: + case PTP_DTC_INT8: + C_PARAMS (1 == sscanf (value, "%d", &i )); + break; + default: + return GP_ERROR; + } + switch (dpd->DataType) { + case PTP_DTC_UINT32: + propval->u32 = u; + break; + case PTP_DTC_INT32: + propval->i32 = i; + break; + case PTP_DTC_UINT16: + propval->u16 = u; + break; + case PTP_DTC_INT16: + propval->i16 = i; + break; + case PTP_DTC_UINT8: + propval->u8 = u; + break; + case PTP_DTC_INT8: + propval->i8 = i; + break; + } + return GP_OK; +} + + +static int +_get_Nikon_OnOff_UINT8(CONFIG_GET_ARGS) { + if (dpd->FormFlag != PTP_DPFF_Range) + return (GP_ERROR_NOT_SUPPORTED); + if (dpd->DataType != PTP_DTC_UINT8) + return (GP_ERROR_NOT_SUPPORTED); + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name ( *widget, menu->name); + gp_widget_add_choice (*widget,_("On")); + gp_widget_add_choice (*widget,_("Off")); + gp_widget_set_value ( *widget, (dpd->CurrentValue.u8?_("On"):_("Off"))); + return (GP_OK); +} + +static int +_put_Nikon_OnOff_UINT8(CONFIG_PUT_ARGS) { + char *value; + + CR (gp_widget_get_value(widget, &value)); + if(!strcmp(value,_("On"))) { + propval->u8 = 1; + return (GP_OK); + } + if(!strcmp(value,_("Off"))) { + propval->u8 = 0; + return (GP_OK); + } + return (GP_ERROR); +} + +static int +_get_Nikon_OffOn_UINT8(CONFIG_GET_ARGS) { + if (dpd->FormFlag != PTP_DPFF_Range) + return (GP_ERROR_NOT_SUPPORTED); + if (dpd->DataType != PTP_DTC_UINT8) + return (GP_ERROR_NOT_SUPPORTED); + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name ( *widget, menu->name); + gp_widget_add_choice (*widget,_("On")); + gp_widget_add_choice (*widget,_("Off")); + gp_widget_set_value ( *widget, (!dpd->CurrentValue.u8?_("On"):_("Off"))); + return (GP_OK); +} + +static int +_put_Nikon_OffOn_UINT8(CONFIG_PUT_ARGS) { + char *value; + + CR (gp_widget_get_value(widget, &value)); + if(!strcmp(value,_("On"))) { + propval->u8 = 0; + return (GP_OK); + } + if(!strcmp(value,_("Off"))) { + propval->u8 = 1; + return (GP_OK); + } + return (GP_ERROR); +} + +#define PUT_SONY_VALUE_(bits,inttype) \ +static int \ +_put_sony_value_##bits (PTPParams*params, uint16_t prop, inttype value,int useenumorder) { \ + GPContext *context = ((PTPData *) params->data)->context; \ + PTPDevicePropDesc dpd; \ + PTPPropertyValue propval; \ + inttype origval; \ + time_t start,end; \ + int tries = 100; /* 100 steps allowed towards the new value */ \ + \ + GP_LOG_D("setting 0x%04x to 0x%08x", prop, value); \ + \ + C_PTP_REP (ptp_sony_getalldevicepropdesc (params)); \ + C_PTP_REP (ptp_generic_getdevicepropdesc (params, prop, &dpd)); \ + if (value == dpd.CurrentValue.bits) { \ + GP_LOG_D("value is already 0x%08x", value); \ + return GP_OK; \ + } \ +fallback: \ + do { \ + origval = dpd.CurrentValue.bits; \ + /* if it is a ENUM, the camera will walk through the ENUM */ \ + if (useenumorder && (dpd.FormFlag & PTP_DPFF_Enumeration)) { \ + int i, posorig = -1, posnew = -1; \ + \ + for (i=0;i posorig) \ + propval.u8 = 0x01; \ + else \ + propval.u8 = 0xff; \ + } else { \ + if (value == origval) \ + break; \ + if (value > origval) \ + propval.u8 = 0x01; \ + else \ + propval.u8 = 0xff; \ + } \ + C_PTP_REP (ptp_sony_setdevicecontrolvalueb (params, prop, &propval, PTP_DTC_UINT8 ));\ + \ + GP_LOG_D ("value is (0x%x vs target 0x%x)", origval, value); \ + \ + /* we tell the camera to do it, but it takes around 0.7 seconds for the SLT-A58 */ \ + time(&start); \ + do { \ + C_PTP_REP (ptp_sony_getalldevicepropdesc (params)); \ + C_PTP_REP (ptp_generic_getdevicepropdesc (params, prop, &dpd)); \ + \ + if (dpd.CurrentValue.bits == value) { \ + GP_LOG_D ("Value matched!"); \ + break; \ + } \ + if (dpd.CurrentValue.bits != origval) { \ + GP_LOG_D ("value changed (0x%x vs 0x%x vs target 0x%x), next step....", dpd.CurrentValue.bits, origval, value);\ + break; \ + } \ + \ + usleep(200*1000); \ + \ + time(&end); \ + } while (end-start <= 3); \ + \ + if (dpd.CurrentValue.bits == value) { \ + GP_LOG_D ("Value matched!"); \ + break; \ + } \ + if (dpd.CurrentValue.bits == origval) { \ + GP_LOG_D ("value did not change (0x%x vs 0x%x vs target 0x%x), not good ...", dpd.CurrentValue.bits, origval, value);\ + break; \ + } \ + /* We did not get there. Did we hit 0? */ \ + if (useenumorder && (dpd.FormFlag & PTP_DPFF_Enumeration)) { \ + int i, posnow = -1; \ + \ + for (i=0;ilabel), widget); + gp_widget_set_name (*widget, menu->name); + if (dpd->DataType != PTP_DTC_UINT32) { + sprintf (value,_("unexpected datatype %i"),dpd->DataType); + } else { + uint32_t x = dpd->CurrentValue.u32; + sprintf (value,"%d.%d.%d.%d",((x&0xff000000)>>24),((x&0xff0000)>>16),((x&0xff00)>>8),x&0xff); + } + gp_widget_set_value (*widget,value); + return (GP_OK); +} + +static struct deviceproptableu16 whitebalance[] = { + { N_("Manual"), 0x0001, 0 }, + { N_("Automatic"), 0x0002, 0 }, + { N_("One-push Automatic"), 0x0003, 0 }, + { N_("Daylight"), 0x0004, 0 }, + { N_("Fluorescent"), 0x0005, 0 }, + { N_("Tungsten"), 0x0006, 0 }, + { N_("Flash"), 0x0007, 0 }, + { N_("Cloudy"), 0x8010, PTP_VENDOR_NIKON }, + { N_("Shade"), 0x8011, PTP_VENDOR_NIKON }, + { N_("Color Temperature"), 0x8012, PTP_VENDOR_NIKON }, + { N_("Preset"), 0x8013, PTP_VENDOR_NIKON }, + { N_("Natural light auto"), 0x8016, PTP_VENDOR_NIKON }, + + { N_("Fluorescent Lamp 1"), 0x8001, PTP_VENDOR_FUJI }, + { N_("Fluorescent Lamp 2"), 0x8002, PTP_VENDOR_FUJI }, + { N_("Fluorescent Lamp 3"), 0x8003, PTP_VENDOR_FUJI }, + { N_("Fluorescent Lamp 4"), 0x8004, PTP_VENDOR_FUJI }, + { N_("Fluorescent Lamp 5"), 0x8005, PTP_VENDOR_FUJI }, + { N_("Shade"), 0x8006, PTP_VENDOR_FUJI }, + { N_("Choose Color Temperature"),0x8007, PTP_VENDOR_FUJI }, + { N_("Preset Custom 1"), 0x8008, PTP_VENDOR_FUJI }, + { N_("Preset Custom 2"), 0x8009, PTP_VENDOR_FUJI }, + { N_("Preset Custom 3"), 0x800a, PTP_VENDOR_FUJI }, + { N_("Preset Custom 4"), 0x800b, PTP_VENDOR_FUJI }, + { N_("Preset Custom 5"), 0x800c, PTP_VENDOR_FUJI }, + + { N_("Shade"), 0x8011, PTP_VENDOR_SONY }, + { N_("Cloudy"), 0x8010, PTP_VENDOR_SONY }, + { N_("Fluorescent: Warm White"),0x8001, PTP_VENDOR_SONY }, + { N_("Fluorescent: Cold White"),0x8002, PTP_VENDOR_SONY }, + { N_("Fluorescent: Day White"), 0x8003, PTP_VENDOR_SONY }, + { N_("Fluorescent: Daylight"), 0x8004, PTP_VENDOR_SONY }, + { N_("Choose Color Temperature"),0x8012, PTP_VENDOR_SONY }, + { N_("Preset 1"), 0x8020, PTP_VENDOR_SONY }, + { N_("Preset 2"), 0x8021, PTP_VENDOR_SONY }, + { N_("Preset 3"), 0x8022, PTP_VENDOR_SONY }, + { N_("Preset"), 0x8023, PTP_VENDOR_SONY }, + { N_("Underwater: Auto"), 0x8030, PTP_VENDOR_SONY }, + + { N_("Shade"), 0x8001, PTP_VENDOR_PENTAX }, + { N_("Cloudy"), 0x8002, PTP_VENDOR_PENTAX }, + { N_("Tungsten 2"), 0x8020, PTP_VENDOR_PENTAX }, + { N_("Fluorescent: Daylight"), 0x8003, PTP_VENDOR_PENTAX }, + { N_("Fluorescent: Day White"), 0x8004, PTP_VENDOR_PENTAX }, + { N_("Fluorescent: White"), 0x8005, PTP_VENDOR_PENTAX }, + { N_("Fluorescent: Tungsten"), 0x8006, PTP_VENDOR_PENTAX }, +}; +GENERIC16TABLE(WhiteBalance,whitebalance) + +static struct deviceproptableu16 olympus_whitebalance[] = { + { N_("Automatic"), 0x0001, 0 }, + { N_("Daylight"), 0x0002, 0 }, + { N_("Shade"), 0x0003, 0 }, + { N_("Cloudy"), 0x0004, 0 }, + { N_("Tungsten"), 0x0005, 0 }, + { N_("Fluorescent"), 0x0006, 0 }, + { N_("Underwater"), 0x0007, 0 }, + { N_("Flash"), 0x0008, 0 }, + { N_("Preset 1"), 0x0009, 0 }, + { N_("Preset 2"), 0x000a, 0 }, + { N_("Preset 3"), 0x000b, 0 }, + { N_("Preset 4"), 0x000c, 0 }, + { N_("Custom"), 0x000d, 0 }, +}; +GENERIC16TABLE(Olympus_WhiteBalance,olympus_whitebalance) + +static struct deviceproptableu16 fuji_imageformat[] = { + { N_("RAW"), 1, PTP_VENDOR_FUJI }, + { N_("JPEG Fine"), 2, PTP_VENDOR_FUJI }, + { N_("JPEG Normal"), 3, PTP_VENDOR_FUJI }, + { N_("RAW + JPEG Fine"), 4, PTP_VENDOR_FUJI }, + { N_("RAW + JPEG Normal"), 5, PTP_VENDOR_FUJI }, +}; +GENERIC16TABLE(Fuji_ImageFormat,fuji_imageformat) + +static struct deviceproptableu16 olympus_imageformat[] = { + { N_("RAW"), 0x020, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("Large Fine JPEG"), 0x101, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("Large Normal JPEG"), 0x102, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("Medium Normal JPEG"), 0x103, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("Small Normal JPEG"), 0x104, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("Large Fine JPEG+RAW"), 0x121, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("Large Normal JPEG+RAW"), 0x122, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("Medium Normal JPEG+RAW"), 0x123, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("Small Normal JPEG+RAW"), 0x124, PTP_VENDOR_GP_OLYMPUS_OMD }, +}; +GENERIC16TABLE(Olympus_Imageformat,olympus_imageformat) + +static struct deviceproptableu16 fuji_releasemode[] = { + { N_("Single frame"), 1, PTP_VENDOR_FUJI }, + { N_("Continuous low speed"), 2, PTP_VENDOR_FUJI }, + { N_("Continuous high speed"), 3, PTP_VENDOR_FUJI }, + { N_("Self-timer"), 4, PTP_VENDOR_FUJI }, + { N_("Mup Mirror up"), 5, PTP_VENDOR_FUJI }, +}; +GENERIC16TABLE(Fuji_ReleaseMode,fuji_releasemode) + +static int +_get_ImageSize(CONFIG_GET_ARGS) { + int j; + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return(GP_ERROR); + if (dpd->DataType != PTP_DTC_STR) + return(GP_ERROR); + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (j=0;jFORM.Enum.NumberOfValues; j++) { + gp_widget_add_choice (*widget,dpd->FORM.Enum.SupportedValue[j].str); + } + gp_widget_set_value (*widget,dpd->CurrentValue.str); + return GP_OK; +} + +static int +_put_ImageSize(CONFIG_PUT_ARGS) { + char *value; + + CR (gp_widget_get_value(widget, &value)); + C_MEM (propval->str = strdup (value)); + return(GP_OK); +} + +static int +_get_ExpCompensation(CONFIG_GET_ARGS) { + int j; + char buf[13]; + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return GP_ERROR; + if (dpd->DataType != PTP_DTC_INT16) + return GP_ERROR; + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (j=0;jFORM.Enum.NumberOfValues; j++) { + sprintf(buf, "%g", dpd->FORM.Enum.SupportedValue[j].i16/1000.0); + gp_widget_add_choice (*widget,buf); + } + sprintf(buf, "%g", dpd->CurrentValue.i16/1000.0); + gp_widget_set_value (*widget,buf); + return GP_OK; +} + +static int +_put_ExpCompensation(CONFIG_PUT_ARGS) { + char *value; + float x; + int16_t val, targetval = 0; + int mindist = 65535, j; + + CR (gp_widget_get_value(widget, &value)); + if (1 != sscanf(value,"%g", &x)) + return GP_ERROR; + + /* float processing is not always hitting the right values, but close */ + val = x*1000.0; + for (j=0;jFORM.Enum.NumberOfValues; j++) { + if (abs(dpd->FORM.Enum.SupportedValue[j].i16 - val) < mindist) { + mindist = abs(dpd->FORM.Enum.SupportedValue[j].i16 - val); + targetval = dpd->FORM.Enum.SupportedValue[j].i16; + } + } + propval->i16 = targetval; + return GP_OK ; +} + +static int +_put_Sony_ExpCompensation(CONFIG_PUT_ARGS) { + int ret; + + ret = _put_ExpCompensation(CONFIG_PUT_NAMES); + if (ret != GP_OK) return ret; + return _put_sony_value_i16 (&camera->pl->params, PTP_DPC_ExposureBiasCompensation, propval->i16, 0); +} + +static int +_get_Olympus_ExpCompensation(CONFIG_GET_ARGS) { + int j; + char buf[13]; + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return GP_ERROR; + if (dpd->DataType != PTP_DTC_UINT16) + return GP_ERROR; + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (j=0;jFORM.Enum.NumberOfValues; j++) { + sprintf(buf, "%g", dpd->FORM.Enum.SupportedValue[j].i16/1000.0); + gp_widget_add_choice (*widget,buf); + } + sprintf(buf, "%g", dpd->CurrentValue.i16/1000.0); + gp_widget_set_value (*widget,buf); + return GP_OK; +} + +static int +_put_Olympus_ExpCompensation(CONFIG_PUT_ARGS) { + char *value; + float x; + int16_t val, targetval = 0; + int mindist = 65535, j; + + CR (gp_widget_get_value(widget, &value)); + if (1 != sscanf(value,"%g", &x)) + return GP_ERROR; + + /* float processing is not always hitting the right values, but close */ + val = x*1000.0; + for (j=0;jFORM.Enum.NumberOfValues; j++) { + if (abs(dpd->FORM.Enum.SupportedValue[j].i16 - val) < mindist) { + mindist = abs(dpd->FORM.Enum.SupportedValue[j].i16 - val); + targetval = dpd->FORM.Enum.SupportedValue[j].i16; + } + } + propval->i16 = targetval; + return GP_OK ; +} + + +static struct deviceproptableu16 canon_assistlight[] = { + { N_("On"), 0x0000, PTP_VENDOR_CANON }, + { N_("Off"), 0x0001, PTP_VENDOR_CANON }, +}; +GENERIC16TABLE(Canon_AssistLight,canon_assistlight) + +static struct deviceproptableu16 canon_autorotation[] = { + { N_("On"), 0x0000, PTP_VENDOR_CANON }, + { N_("Off"), 0x0001, PTP_VENDOR_CANON }, +}; +GENERIC16TABLE(Canon_AutoRotation,canon_autorotation) + +static struct deviceproptableu16 canon_beepmode[] = { + { N_("Off"), 0x00, PTP_VENDOR_CANON }, + { N_("On"), 0x01, PTP_VENDOR_CANON }, +}; +GENERIC16TABLE(Canon_BeepMode,canon_beepmode) + +static int +_get_Canon_ZoomRange(CONFIG_GET_ARGS) { + float f, t, b, s; + + if (!(dpd->FormFlag & PTP_DPFF_Range)) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + f = (float)dpd->CurrentValue.u16; + b = (float)dpd->FORM.Range.MinimumValue.u16; + t = (float)dpd->FORM.Range.MaximumValue.u16; + s = (float)dpd->FORM.Range.StepSize.u16; + gp_widget_set_range (*widget, b, t, s); + gp_widget_set_value (*widget, &f); + return (GP_OK); +} + +static int +_put_Canon_ZoomRange(CONFIG_PUT_ARGS) +{ + float f; + + CR (gp_widget_get_value(widget, &f)); + propval->u16 = (unsigned short)f; + return (GP_OK); +} + +/* This seems perhaps focal length * 1.000.000 */ +static int +_get_Sony_Zoom(CONFIG_GET_ARGS) { + float f, t, b, s; + + if (dpd->DataType != PTP_DTC_UINT32) + return GP_ERROR; + if (!(dpd->FormFlag & PTP_DPFF_Range)) + return GP_ERROR; + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + f = (float)dpd->CurrentValue.u32 / 1000000; + b = (float)dpd->FORM.Range.MinimumValue.u32 / 1000000; + t = (float)dpd->FORM.Range.MaximumValue.u32 / 1000000; + s = 1; + gp_widget_set_range (*widget, b, t, s); + gp_widget_set_value (*widget, &f); + return GP_OK; +} + +static int +_put_Sony_Zoom(CONFIG_PUT_ARGS) +{ + float f; + PTPParams *params = &camera->pl->params; + + CR (gp_widget_get_value(widget, &f)); + propval->u32 = (uint32_t)f*1000000; + return _put_sony_value_u32(params, PTP_DPC_SONY_Zoom, propval->u32, 0); +} + +static int +_get_Nikon_WBBias(CONFIG_GET_ARGS) { + float f, t, b, s; + + if (dpd->DataType != PTP_DTC_INT8) + return GP_ERROR; + if (!(dpd->FormFlag & PTP_DPFF_Range)) + return GP_ERROR; + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + f = (float)dpd->CurrentValue.i8; + b = (float)dpd->FORM.Range.MinimumValue.i8; + t = (float)dpd->FORM.Range.MaximumValue.i8; + s = (float)dpd->FORM.Range.StepSize.i8; + gp_widget_set_range (*widget, b, t, s); + gp_widget_set_value (*widget, &f); + return (GP_OK); +} + +static int +_put_Nikon_WBBias(CONFIG_PUT_ARGS) +{ + float f; + + CR (gp_widget_get_value(widget, &f)); + propval->i8 = (signed char)f; + return (GP_OK); +} + +static int +_get_Nikon_UWBBias(CONFIG_GET_ARGS) { + float f, t, b, s; + + if (dpd->DataType != PTP_DTC_UINT8) + return (GP_ERROR); + if (!(dpd->FormFlag & PTP_DPFF_Range)) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + f = (float)dpd->CurrentValue.u8; + b = (float)dpd->FORM.Range.MinimumValue.u8; + t = (float)dpd->FORM.Range.MaximumValue.u8; + s = (float)dpd->FORM.Range.StepSize.u8; + gp_widget_set_range (*widget, b, t, s); + gp_widget_set_value (*widget, &f); + return (GP_OK); +} + +static int +_put_Nikon_UWBBias(CONFIG_PUT_ARGS) +{ + float f; + + CR (gp_widget_get_value(widget, &f)); + propval->u8 = (unsigned char)f; + return (GP_OK); +} + +static int +_get_Nikon_WBBiasPresetVal(CONFIG_GET_ARGS) { + char buf[20]; + + if (dpd->DataType != PTP_DTC_UINT32) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + sprintf (buf, "%d", dpd->CurrentValue.u32); + gp_widget_set_value (*widget, buf); + return (GP_OK); +} +static int +_get_Nikon_WBBiasPreset(CONFIG_GET_ARGS) { + char buf[20]; + int i; + + if (dpd->DataType != PTP_DTC_UINT8) + return (GP_ERROR); + if (!(dpd->FormFlag & PTP_DPFF_Range)) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + for (i = dpd->FORM.Range.MinimumValue.u8; i < dpd->FORM.Range.MaximumValue.u8; i++) { + sprintf (buf, "%d", i); + gp_widget_add_choice (*widget, buf); + if (i == dpd->CurrentValue.u8) + gp_widget_set_value (*widget, buf); + } + return (GP_OK); +} + +static int +_put_Nikon_WBBiasPreset(CONFIG_PUT_ARGS) { + int ret; + char *val; + + CR (gp_widget_get_value(widget, &val)); + sscanf (val, "%u", &ret); + propval->u8 = ret; + return (GP_OK); +} + +static int +_get_Nikon_HueAdjustment(CONFIG_GET_ARGS) { + float f, t, b, s; + + if (dpd->DataType != PTP_DTC_INT8) + return (GP_ERROR); + if (dpd->FormFlag & PTP_DPFF_Range) { + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + f = (float)dpd->CurrentValue.i8; + b = (float)dpd->FORM.Range.MinimumValue.i8; + t = (float)dpd->FORM.Range.MaximumValue.i8; + s = (float)dpd->FORM.Range.StepSize.i8; + gp_widget_set_range (*widget, b, t, s); + gp_widget_set_value (*widget, &f); + return (GP_OK); + } + if (dpd->FormFlag & PTP_DPFF_Enumeration) { + char buf[20]; + int i, isset = FALSE; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + for (i = 0; iFORM.Enum.NumberOfValues; i++) { + + sprintf (buf, "%d", dpd->FORM.Enum.SupportedValue[i].i8); + gp_widget_add_choice (*widget, buf); + if (dpd->FORM.Enum.SupportedValue[i].i8 == dpd->CurrentValue.i8) { + gp_widget_set_value (*widget, buf); + isset = TRUE; + } + } + if (!isset && (dpd->FORM.Enum.NumberOfValues > 0)) { + sprintf (buf, "%d", dpd->FORM.Enum.SupportedValue[0].i8); + gp_widget_set_value (*widget, buf); + } + return (GP_OK); + } + return (GP_ERROR); +} + +static int +_put_Nikon_HueAdjustment(CONFIG_PUT_ARGS) +{ + if (dpd->FormFlag & PTP_DPFF_Range) { + float f = 0.0; + CR (gp_widget_get_value(widget, &f)); + propval->i8 = (signed char)f; + return (GP_OK); + } + if (dpd->FormFlag & PTP_DPFF_Enumeration) { + char *val; + int ival; + + CR (gp_widget_get_value(widget, &val)); + sscanf (val, "%d", &ival); + propval->i8 = ival; + return (GP_OK); + } + return (GP_ERROR); +} + + +static struct deviceproptableu8 canon_quality[] = { + { N_("undefined"), 0x00, 0 }, + { N_("economy"), 0x01, 0 }, + { N_("normal"), 0x02, 0 }, + { N_("fine"), 0x03, 0 }, + { N_("lossless"), 0x04, 0 }, + { N_("superfine"), 0x05, 0 }, +}; +GENERIC8TABLE(Canon_Quality,canon_quality) + +static struct deviceproptableu8 canon_fullview_fileformat[] = { + { N_("Undefined"), 0x00, 0 }, + { N_("JPEG"), 0x01, 0 }, + { N_("CRW"), 0x02, 0 }, +}; +GENERIC8TABLE(Canon_Capture_Format,canon_fullview_fileformat) + +static struct deviceproptableu8 canon_shootmode[] = { + { N_("Auto"), 0x01, 0 }, + { N_("TV"), 0x02, 0 }, + { N_("AV"), 0x03, 0 }, + { N_("Manual"), 0x04, 0 }, + { N_("A_DEP"), 0x05, 0 }, + { N_("M_DEP"), 0x06, 0 }, + { N_("Bulb"), 0x07, 0 }, + /* Marcus: The SDK has more listed, but I have never seen them + * enumerated by the cameras. Lets leave them out for now. */ +}; +GENERIC8TABLE(Canon_ShootMode,canon_shootmode) + +static struct deviceproptableu16 canon_eos_autoexposuremode[] = { + { N_("P"), 0x0000, 0 }, + { N_("TV"), 0x0001, 0 }, + { N_("AV"), 0x0002, 0 }, + { N_("Manual"), 0x0003, 0 }, + { N_("Bulb"), 0x0004, 0 }, + { N_("A_DEP"), 0x0005, 0 }, + { N_("DEP"), 0x0006, 0 }, + { N_("Custom"), 0x0007, 0 }, + { N_("Lock"), 0x0008, 0 }, + { N_("Green"), 0x0009, 0 }, + { N_("Night Portrait"), 0x000a, 0 }, + { N_("Sports"), 0x000b, 0 }, + { N_("Portrait"), 0x000c, 0 }, + { N_("Landscape"), 0x000d, 0 }, + { N_("Closeup"), 0x000e, 0 }, + { N_("Flash Off"), 0x000f, 0 }, +}; +GENERIC16TABLE(Canon_EOS_AutoExposureMode,canon_eos_autoexposuremode) + +static struct deviceproptableu32 canon_eos_alomode[] = { + { N_("Standard"), 0x10000, 0 }, + { N_("Standard (disabled in manual exposure)"), 0x00000, 0 }, + { N_("Low"), 0x10101, 0 }, + { N_("Low (disabled in manual exposure)"), 0x00101, 0 }, + { N_("Off"), 0x10303, 0 }, + { N_("Off (disabled in manual exposure)"), 0x00303, 0 }, + { N_("High"), 0x10202, 0 }, + { N_("High (disabled in manual exposure)"), 0x00202, 0 }, + { N_("x1"), 0x1, 0 }, + { N_("x2"), 0x2, 0 }, + { N_("x3"), 0x3, 0 }, +}; +GENERIC32TABLE(Canon_EOS_AloMode,canon_eos_alomode) + +static struct deviceproptableu8 canon_flash[] = { + { N_("off"), 0, 0 }, + { N_("auto"), 1, 0 }, + { N_("on"), 2, 0 }, + { N_("red eye suppression"), 3, 0 }, + { N_("fill in"), 4, 0 }, + { N_("auto + red eye suppression"), 5, 0 }, + { N_("on + red eye suppression"), 6, 0 }, +}; +GENERIC8TABLE(Canon_FlashMode,canon_flash) + +static struct deviceproptableu8 nikon_internalflashmode[] = { + { N_("iTTL"), 0, 0 }, + { N_("Manual"), 1, 0 }, + { N_("Commander"), 2, 0 }, + { N_("Repeating"), 3, 0 }, /* stroboskop */ +}; +GENERIC8TABLE(Nikon_InternalFlashMode,nikon_internalflashmode) + +static struct deviceproptableu8 nikon_flashcommandermode[] = { + { N_("TTL"), 0, 0 }, + { N_("Auto Aperture"), 1, 0 }, + { N_("Full Manual"), 2, 0 }, +}; +GENERIC8TABLE(Nikon_FlashCommanderMode,nikon_flashcommandermode) + +static struct deviceproptableu8 nikon_flashcommanderpower[] = { + { N_("Full"), 0, 0 }, + { "1/2", 1, 0 }, + { "1/4", 2, 0 }, + { "1/8", 3, 0 }, + { "1/16", 4, 0 }, + { "1/32", 5, 0 }, + { "1/64", 6, 0 }, + { "1/128", 7, 0 }, +}; +GENERIC8TABLE(Nikon_FlashCommanderPower,nikon_flashcommanderpower) + +/* 0xd1d3 */ +static struct deviceproptableu8 nikon_flashcommandchannel[] = { + { "1", 0, 0 }, + { "2", 1, 0 }, + { "3", 2, 0 }, + { "4", 3, 0 }, +}; +GENERIC8TABLE(Nikon_FlashCommandChannel,nikon_flashcommandchannel) + +/* 0xd1d4 */ +static struct deviceproptableu8 nikon_flashcommandselfmode[] = { + { N_("TTL"), 0, 0 }, + { N_("Manual"), 1, 0 }, + { N_("Off"), 2, 0 }, +}; +GENERIC8TABLE(Nikon_FlashCommandSelfMode,nikon_flashcommandselfmode) + +/* 0xd1d5, 0xd1d8, 0xd1da */ +static struct deviceproptableu8 nikon_flashcommandXcompensation[] = { + { "-3.0", 0, 0 }, + { "-2.7", 1, 0 }, + { "-2.3", 2, 0 }, + { "-2.0", 3, 0 }, + { "-1.7", 4, 0 }, + { "-1.3", 5, 0 }, + { "-1.0", 6, 0 }, + { "-0.7", 7, 0 }, + { "-0.3", 8, 0 }, + { "0.0", 9, 0 }, + { "0.3", 10, 0 }, + { "0.7", 11, 0 }, + { "1.0", 12, 0 }, + { "1.3", 13, 0 }, + { "1.7", 14, 0 }, + { "2.0", 15, 0 }, + { "2.3", 16, 0 }, + { "2.7", 17, 0 }, + { "3.0", 18, 0 }, +}; +GENERIC8TABLE(Nikon_FlashCommandXCompensation,nikon_flashcommandXcompensation) + +/* 0xd1d5, 0xd1d9, 0xd1dc */ +static struct deviceproptableu8 nikon_flashcommandXvalue[] = { + { N_("Full"), 0, 0 }, + { "1/1.3", 1, 0 }, + { "1/1.7", 2, 0 }, + { "1/2", 3, 0 }, + { "1/2.5", 4, 0 }, + { "1/3.2", 5, 0 }, + { "1/4", 6, 0 }, + { "1/5", 7, 0 }, + { "1/6.4", 8, 0 }, + { "1/8", 9, 0 }, + { "1/10", 10, 0 }, + { "1/13", 11, 0 }, + { "1/16", 12, 0 }, + { "1/20", 13, 0 }, + { "1/25", 14, 0 }, + { "1/32", 15, 0 }, + { "1/40", 16, 0 }, + { "1/50", 17, 0 }, + { "1/64", 18, 0 }, + { "1/80", 19, 0 }, + { "1/100", 20, 0 }, + { "1/128", 21, 0 }, +}; +GENERIC8TABLE(Nikon_FlashCommandXValue,nikon_flashcommandXvalue) + + +/* 0xd1d7, 0xd1da */ +static struct deviceproptableu8 nikon_flashcommandXmode[] = { + { N_("TTL"), 0, 0 }, + { N_("Auto Aperture"), 1, 0 }, + { N_("Manual"), 2, 0 }, + { N_("Off"), 3, 0 }, +}; +GENERIC8TABLE(Nikon_FlashCommandXMode,nikon_flashcommandXmode) + + +static struct deviceproptableu8 nikon_afmode[] = { + { N_("AF-S"), 0, 0 }, + { N_("AF-C"), 1, 0 }, + { N_("AF-A"), 2, 0 }, + { N_("MF (fixed)"), 3, 0 }, + { N_("MF (selection)"), 4, 0 }, + /* more for newer */ +}; +GENERIC8TABLE(Nikon_AFMode,nikon_afmode) + +static struct deviceproptableu8 nikon_videomode[] = { + { N_("NTSC"), 0, 0 }, + { N_("PAL"), 1, 0 }, +}; +GENERIC8TABLE(Nikon_VideoMode,nikon_videomode) + +static struct deviceproptableu8 flash_modemanualpower[] = { + { N_("Full"), 0x00, 0 }, + { "1/2", 0x01, 0 }, + { "1/4", 0x02, 0 }, + { "1/8", 0x03, 0 }, + { "1/16", 0x04, 0 }, + { "1/32", 0x05, 0 }, +}; +GENERIC8TABLE(Nikon_FlashModeManualPower,flash_modemanualpower) + +static struct deviceproptableu8 canon_meteringmode[] = { + { N_("Center-weighted"), 0, 0 }, + { N_("Spot"), 1, 0 }, + { N_("Average"), 2, 0 }, + { N_("Evaluative"), 3, 0 }, + { N_("Partial"), 4, 0 }, + { N_("Center-weighted average"), 5, 0 }, + { N_("Spot metering interlocked with AF frame"), 6, 0 }, + { N_("Multi spot"), 7, 0 }, +}; +GENERIC8TABLE(Canon_MeteringMode,canon_meteringmode) + +static struct deviceproptableu8 canon_eos_picturestyle[] = { + { N_("Standard"), 0x81, 0 }, + { N_("Portrait"), 0x82, 0 }, + { N_("Landscape"), 0x83, 0 }, + { N_("Neutral"), 0x84, 0 }, + { N_("Faithful"), 0x85, 0 }, + { N_("Monochrome"), 0x86, 0 }, + { N_("Auto"), 0x87, 0 }, /*Canon EOS 5D Mark III*/ + { N_("Fine detail"), 0x88, 0 }, + { N_("User defined 1"), 0x21, 0 }, + { N_("User defined 2"), 0x22, 0 }, + { N_("User defined 3"), 0x23, 0 }, +}; +GENERIC8TABLE(Canon_EOS_PictureStyle,canon_eos_picturestyle) + +static struct deviceproptableu16 canon_shutterspeed[] = { + { "auto", 0x0000,0 }, + { "bulb", 0x0004,0 }, + { "bulb", 0x000c,0 }, + { "30", 0x0010,0 }, + { "25", 0x0013,0 }, + { "20", 0x0014,0 }, /* + 1/3 */ + { "20", 0x0015,0 }, + { "15", 0x0018,0 }, + { "13", 0x001b,0 }, + { "10", 0x001c,0 }, + { "10", 0x001d,0 }, /* 10.4 */ + { "8", 0x0020,0 }, + { "6", 0x0023,0 }, /* + 1/3 */ + { "6", 0x0024,0 }, + { "5", 0x0025,0 }, + { "4", 0x0028,0 }, + { "3.2", 0x002b,0 }, + { "3", 0x002c,0 }, + { "2.5", 0x002d,0 }, + { "2", 0x0030,0 }, + { "1.6", 0x0033,0 }, + { "1.5", 0x0034,0 }, + { "1.3", 0x0035,0 }, + { "1", 0x0038,0 }, + { "0.8", 0x003b,0 }, + { "0.7", 0x003c,0 }, + { "0.6", 0x003d,0 }, + { "0.5", 0x0040,0 }, + { "0.4", 0x0043,0 }, + { "0.3", 0x0044,0 }, + { "0.3", 0x0045,0 }, /* 1/3 */ + { "1/4", 0x0048,0 }, + { "1/5", 0x004b,0 }, + { "1/6", 0x004c,0 }, + { "1/6", 0x004d,0 }, /* 1/3? */ + { "1/8", 0x0050,0 }, + { "1/10", 0x0053,0 }, /* 1/3? */ + { "1/10", 0x0054,0 }, + { "1/13", 0x0055,0 }, + { "1/15", 0x0058,0 }, + { "1/20", 0x005b,0 }, /* 1/3? */ + { "1/20", 0x005c,0 }, + { "1/25", 0x005d,0 }, + { "1/30", 0x0060,0 }, + { "1/40", 0x0063,0 }, + { "1/45", 0x0064,0 }, + { "1/50", 0x0065,0 }, + { "1/60", 0x0068,0 }, + { "1/80", 0x006b,0 }, + { "1/90", 0x006c,0 }, + { "1/100", 0x006d,0 }, + { "1/125", 0x0070,0 }, + { "1/160", 0x0073,0 }, + { "1/180", 0x0074,0 }, + { "1/200", 0x0075,0 }, + { "1/250", 0x0078,0 }, + { "1/320", 0x007b,0 }, + { "1/350", 0x007c,0 }, + { "1/400", 0x007d,0 }, + { "1/500", 0x0080,0 }, + { "1/640", 0x0083,0 }, + { "1/750", 0x0084,0 }, + { "1/800", 0x0085,0 }, + { "1/1000", 0x0088,0 }, + { "1/1250", 0x008b,0 }, + { "1/1500", 0x008c,0 }, + { "1/1600", 0x008d,0 }, + { "1/2000", 0x0090,0 }, + { "1/2500", 0x0093,0 }, + { "1/3000", 0x0094,0 }, + { "1/3200", 0x0095,0 }, + { "1/4000", 0x0098,0 }, + { "1/5000", 0x009b,0 }, + { "1/6000", 0x009c,0 }, + { "1/6400", 0x009d,0 }, + { "1/8000", 0x00a0,0 }, +}; +GENERIC16TABLE(Canon_ShutterSpeed,canon_shutterspeed) + + +static struct deviceproptableu16 canon_focuspoints[] = { + { N_("Focusing Point on Center Only, Manual"), 0x1000, 0 }, + { N_("Focusing Point on Center Only, Auto"), 0x1001, 0 }, + { N_("Multiple Focusing Points (No Specification), Manual"), 0x3000, 0 }, + { N_("Multiple Focusing Points, Auto"), 0x3001, 0 }, + { N_("Multiple Focusing Points (Right)"), 0x3002, 0 }, + { N_("Multiple Focusing Points (Center)"), 0x3003, 0 }, + { N_("Multiple Focusing Points (Left)"), 0x3004, 0 }, +}; +GENERIC16TABLE(Canon_FocusingPoint,canon_focuspoints) + +static struct deviceproptableu8 canon_size[] = { + { N_("Large"), 0x00, 0 }, + { N_("Medium 1"), 0x01, 0 }, + { N_("Medium 2"), 0x03, 0 }, + { N_("Medium 3"), 0x07, 0 }, + { N_("Small"), 0x02, 0 }, +}; +GENERIC8TABLE(Canon_Size,canon_size) + +static struct deviceproptableu8 sony_size[] = { + { N_("Large"), 0x01, 0 }, + { N_("Medium"), 0x02, 0 }, + { N_("Small"), 0x03, 0 }, +}; +GENERIC8TABLE(Sony_ImageSize,sony_size) + +static struct deviceproptableu8 nikon1_size[] = { + { N_("Small"), 0x00, 0 }, + { N_("Medium"), 0x01, 0 }, + { N_("Large"), 0x02, 0 }, +}; +GENERIC8TABLE(Nikon1_ImageSize,nikon1_size) + +static struct deviceproptableu8 sony_aspectratio[] = { + { N_("3:2"), 0x01, 0 }, + { N_("16:9"), 0x02, 0 }, +}; +GENERIC8TABLE(Sony_AspectRatio,sony_aspectratio) + +/* values are from 6D */ +static struct deviceproptableu16 canon_eos_aspectratio[] = { + { "3:2", 0x0000, 0}, + { "1:1", 0x0001, 0}, + { "4:3", 0x0002, 0}, + { "16:9", 0x0007, 0}, +}; +GENERIC16TABLE(Canon_EOS_AspectRatio,canon_eos_aspectratio) + +/* actually in 1/10s of a second, but only 3 values in use */ +static struct deviceproptableu16 canon_selftimer[] = { + { N_("Not used"), 0, 0 }, + { N_("10 seconds"), 100, 0 }, + { N_("2 seconds"), 20, 0 }, +}; +GENERIC16TABLE(Canon_SelfTimer,canon_selftimer) + +/* actually it is a flag value, 1 = TFT, 2 = PC, 4 = MOBILE, 8 = MOBILE2 */ +static struct deviceproptableu16 canon_eos_cameraoutput[] = { + { N_("Off"), 0, 0 }, /*On 5DM3, LCD/TFT is off, mirror down and optical view finder enabled */ + { N_("TFT"), 1, 0 }, + { N_("PC"), 2, 0 }, + { N_("TFT + PC"), 3, 0 }, + { N_("MOBILE"), 4, 0 }, + { N_("TFT + MOBILE"), 5, 0 }, + { N_("PC + MOBILE"), 6, 0 }, + { N_("TFT + PC + MOBILE"), 7, 0 }, + { N_("MOBILE2"), 8, 0 }, + { N_("TFT + MOBILE2"), 9, 0 }, + { N_("PC + MOBILE2"), 10, 0 }, + { N_("TFT + PC + MOBILE2"), 11, 0 }, +}; +GENERIC16TABLE(Canon_EOS_CameraOutput,canon_eos_cameraoutput) + +static struct deviceproptableu16 canon_eos_evfrecordtarget[] = { + { N_("None"), 0, 0 }, + { N_("SDRAM"), 3, 0 }, + { N_("Card"), 4, 0 }, +}; +GENERIC16TABLE(Canon_EOS_EVFRecordTarget,canon_eos_evfrecordtarget) + +/* values currently unknown */ +static struct deviceproptableu16 canon_eos_evfmode[] = { + { "0", 0, 0 }, + { "1", 1, 0 }, +}; +GENERIC16TABLE(Canon_EOS_EVFMode,canon_eos_evfmode) + +#if 0 /* reimplement with viewfinder on/off below */ +static struct deviceproptableu8 canon_cameraoutput[] = { + { N_("Undefined"), 0, 0 }, + { N_("LCD"), 1, 0 }, + { N_("Video OUT"), 2, 0 }, + { N_("Off"), 3, 0 }, +}; +GENERIC8TABLE(Canon_CameraOutput,canon_cameraoutput) +#endif + +static int +_get_Canon_CameraOutput(CONFIG_GET_ARGS) { + int i,isset=0; + char buf[30]; + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return (GP_ERROR); + if (dpd->DataType != PTP_DTC_UINT8) + return (GP_ERROR); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char *x; + + switch (dpd->FORM.Enum.SupportedValue[i].u8) { + default:sprintf(buf,_("Unknown %d"),dpd->FORM.Enum.SupportedValue[i].u8); + x=buf; + break; + case 1: x=_("LCD");break; + case 2: x=_("Video OUT");break; + case 3: x=_("Off");break; + } + gp_widget_add_choice (*widget,x); + if (dpd->FORM.Enum.SupportedValue[i].u8 == dpd->CurrentValue.u8) { + gp_widget_set_value (*widget,x); + isset = 1; + } + } + if (!isset) { + sprintf(buf,_("Unknown %d"),dpd->CurrentValue.u8); + gp_widget_set_value (*widget,buf); + } + return GP_OK; +} + +static int +_put_Canon_CameraOutput(CONFIG_PUT_ARGS) { + int u, i; + char *value; + PTPParams *params = &camera->pl->params; + + CR (gp_widget_get_value(widget, &value)); + + u = -1; + if (!strcmp(value,_("LCD"))) { u = 1; } + if (!strcmp(value,_("Video OUT"))) { u = 2; } + if (!strcmp(value,_("Off"))) { u = 3; } + if (sscanf(value,_("Unknown %d"),&i)) { u = i; } + C_PARAMS (u != -1); + + if ((u==1) || (u==2)) { + if (ptp_operation_issupported(params, PTP_OC_CANON_ViewfinderOn)) { + if (!params->canon_viewfinder_on) { + if (LOG_ON_PTP_E (ptp_canon_viewfinderon (params)) == PTP_RC_OK) + params->canon_viewfinder_on=1; + } + } + } + if (u==3) { + if (ptp_operation_issupported(params, PTP_OC_CANON_ViewfinderOff)) { + if (params->canon_viewfinder_on) { + if (LOG_ON_PTP_E (ptp_canon_viewfinderoff (params)) == PTP_RC_OK) + params->canon_viewfinder_on=0; + } + } + } + propval->u8 = u; + return GP_OK; +} + +static struct deviceproptableu16 canon_isospeed[] = { + { N_("Factory Default"),0xffff, 0 }, + { "6", 0x0028, 0 }, + { "12", 0x0030, 0 }, + { "25", 0x0038, 0 }, + { "50", 0x0040, 0 }, + { "64", 0x0043, 0 }, + { "80", 0x0045, 0 }, + { "100", 0x0048, 0 }, + { "125", 0x004b, 0 }, + { "160", 0x004d, 0 }, + { "200", 0x0050, 0 }, + { "250", 0x0053, 0 }, + { "320", 0x0055, 0 }, + { "400", 0x0058, 0 }, + { "500", 0x005b, 0 }, + { "640", 0x005d, 0 }, + { "800", 0x0060, 0 }, + { "1000", 0x0063, 0 }, + { "1250", 0x0065, 0 }, + { "1600", 0x0068, 0 }, + { "2000", 0x006b, 0 }, + { "2500", 0x006d, 0 }, + { "3200", 0x0070, 0 }, + { "4000", 0x0073, 0 }, + { "5000", 0x0075, 0 }, + { "6400", 0x0078, 0 }, + { "8000", 0x007b, 0 }, + { "10000", 0x007d, 0 }, + { "12800", 0x0080, 0 }, + { "16000", 0x0083, 0 }, + { "20000", 0x0085, 0 }, + { "25600", 0x0088, 0 }, + { "32000", 0x008b, 0 }, + { "40000", 0x008d, 0 }, + { "51200", 0x0090, 0 }, + { "102400", 0x0098, 0 }, + { N_("Auto"), 0x0000, 0 }, +}; +GENERIC16TABLE(Canon_ISO,canon_isospeed) + +/* see ptp-pack.c:ptp_unpack_EOS_ImageFormat */ +static struct deviceproptableu16 canon_eos_image_format[] = { + { N_("RAW"), 0x0c00, 0 }, + { N_("mRAW"), 0x1c00, 0 }, + { N_("sRAW"), 0x2c00, 0 }, + { N_("cRAW"), 0x0b00, 0 }, + { N_("Large Fine JPEG"), 0x0300, 0 }, + { N_("Large Normal JPEG"), 0x0200, 0 }, + { N_("Medium Fine JPEG"), 0x1300, 0 }, + { N_("Medium Normal JPEG"), 0x1200, 0 }, + { N_("Small Fine JPEG"), 0x2300, 0 }, + { N_("Small Normal JPEG"), 0x2200, 0 }, + { N_("Small Fine JPEG"), 0xd300, 0 }, + { N_("Small Normal JPEG"), 0xd200, 0 }, + { N_("Smaller JPEG"), 0xe300, 0 }, + { N_("Tiny JPEG"), 0xf300, 0 }, + { N_("RAW + Large Fine JPEG"), 0x0c03, 0 }, + { N_("mRAW + Large Fine JPEG"), 0x1c03, 0 }, + { N_("sRAW + Large Fine JPEG"), 0x2c03, 0 }, + { N_("cRAW + Large Fine JPEG"), 0x0b03, 0 }, + { N_("RAW + Medium Fine JPEG"), 0x0c13, 0 }, + { N_("mRAW + Medium Fine JPEG"), 0x1c13, 0 }, + { N_("sRAW + Medium Fine JPEG"), 0x2c13, 0 }, + { N_("cRAW + Medium Fine JPEG"), 0x0b13, 0 }, + { N_("RAW + Small Fine JPEG"), 0x0c23, 0 }, + { N_("RAW + Small Fine JPEG"), 0x0cd3, 0 }, /*Canon EOS 5D Mark III*/ + { N_("mRAW + Small Fine JPEG"), 0x1c23, 0 }, + { N_("mRAW + Small Fine JPEG"), 0x1cd3, 0 }, /*Canon EOS 5D Mark III*/ + { N_("sRAW + Small Fine JPEG"), 0x2c23, 0 }, + { N_("sRAW + Small Fine JPEG"), 0x2cd3, 0 }, /*Canon EOS 5D Mark III*/ + { N_("cRAW + Small Fine JPEG"), 0x0bd3, 0 }, + { N_("RAW + Large Normal JPEG"), 0x0c02, 0 }, + { N_("mRAW + Large Normal JPEG"), 0x1c02, 0 }, + { N_("sRAW + Large Normal JPEG"), 0x2c02, 0 }, + { N_("cRAW + Large Normal JPEG"), 0x0b02, 0 }, + { N_("RAW + Medium Normal JPEG"), 0x0c12, 0 }, + { N_("mRAW + Medium Normal JPEG"), 0x1c12, 0 }, + { N_("sRAW + Medium Normal JPEG"), 0x2c12, 0 }, + { N_("cRAW + Medium Normal JPEG"), 0x0b12, 0 }, + { N_("RAW + Small Normal JPEG"), 0x0c22, 0 }, + { N_("RAW + Small Normal JPEG"), 0x0cd2, 0 }, /*Canon EOS 5D Mark III*/ + { N_("mRAW + Small Normal JPEG"), 0x1c22, 0 }, + { N_("mRAW + Small Normal JPEG"), 0x1cd2, 0 }, /*Canon EOS 5D Mark III*/ + { N_("sRAW + Small Normal JPEG"), 0x2c22, 0 }, + { N_("sRAW + Small Normal JPEG"), 0x2cd2, 0 }, /*Canon EOS 5D Mark III*/ + { N_("cRAW + Small Normal JPEG"), 0x0bd2, 0 }, + { N_("RAW + Smaller JPEG"), 0x0ce3, 0 }, /*Canon EOS 5D Mark III*/ + { N_("mRAW + Smaller JPEG"), 0x1ce3, 0 }, /*Canon EOS 5D Mark III*/ + { N_("sRAW + Smaller JPEG"), 0x2ce3, 0 }, /*Canon EOS 5D Mark III*/ + { N_("cRAW + Smaller JPEG"), 0x0be3, 0 }, /*Canon EOS M50*/ + { N_("RAW + Tiny JPEG"), 0x0cf3, 0 }, /*Canon EOS 5D Mark III*/ + { N_("mRAW + Tiny JPEG"), 0x1cf3, 0 }, /*Canon EOS 5D Mark III*/ + { N_("sRAW + Tiny JPEG"), 0x2cf3, 0 }, /*Canon EOS 5D Mark III*/ + /* There are more RAW + 'smallish' JPEG combinations for at least the 5DM3 possible. + Axel was simply to lazy to exercise the combinatorial explosion. :-/ */ +}; +GENERIC16TABLE(Canon_EOS_ImageFormat,canon_eos_image_format) + +static struct deviceproptableu16 canon_eos_aeb[] = { + { N_("off"), 0x0000, 0 }, + { "+/- 1/3", 0x0003, 0 }, + { "+/- 1/2", 0x0004, 0 }, + { "+/- 2/3", 0x0005, 0 }, + { "+/- 1", 0x0008, 0 }, + { "+/- 1 1/3", 0x000b, 0 }, + { "+/- 1 1/2", 0x000c, 0 }, + { "+/- 1 2/3", 0x000d, 0 }, + { "+/- 2", 0x0010, 0 }, + { "+/- 2 1/3", 0x0013, 0 }, + { "+/- 2 1/2", 0x0014, 0 }, + { "+/- 2 2/3", 0x0015, 0 }, + { "+/- 3", 0x0018, 0 }, +}; +GENERIC16TABLE(Canon_EOS_AEB,canon_eos_aeb) + +static struct deviceproptableu16 canon_eos_drive_mode[] = { + { N_("Single"), 0x0000, 0 }, + { N_("Continuous"), 0x0001, 0 }, + { N_("Continuous high speed"), 0x0004, 0 }, + { N_("Continuous low speed"), 0x0005, 0 }, + { N_("Single: Silent shooting"),0x0006, 0 }, + { N_("Continuous timer"), 0x0007, 0 }, + { N_("Timer 10 sec"), 0x0010, 0 }, + { N_("Timer 2 sec"), 0x0011, 0 }, + { N_("Super high speed continuous shooting"), 0x0012, 0 }, + { N_("Single silent"), 0x0013, 0 }, + { N_("Continuous silent"), 0x0014, 0 }, +}; +GENERIC16TABLE(Canon_EOS_DriveMode,canon_eos_drive_mode) + +static int +_get_ISO(CONFIG_GET_ARGS) { + int i; + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return (GP_ERROR); + if (dpd->DataType != PTP_DTC_UINT16) + return (GP_ERROR); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + + sprintf(buf,"%d",dpd->FORM.Enum.SupportedValue[i].u16); + gp_widget_add_choice (*widget,buf); + if (dpd->FORM.Enum.SupportedValue[i].u16 == dpd->CurrentValue.u16) + gp_widget_set_value (*widget,buf); + } + return (GP_OK); +} + +static int +_put_ISO(CONFIG_PUT_ARGS) +{ + char *value; + unsigned int u; + + CR (gp_widget_get_value(widget, &value)); + + if (sscanf(value, "%ud", &u)) { + propval->u16 = u; + return GP_OK; + } + return GP_ERROR; +} + +static int +_get_Olympus_ISO(CONFIG_GET_ARGS) { + int i; + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return GP_ERROR; + if (dpd->DataType != PTP_DTC_UINT16) + return GP_ERROR; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + + sprintf(buf,"%d",dpd->FORM.Enum.SupportedValue[i].u16); + if (dpd->FORM.Enum.SupportedValue[i].u16 == 0xffff) { strcpy(buf,_("Auto")); } + if (dpd->FORM.Enum.SupportedValue[i].u16 == 0xfffd) { strcpy(buf,_("Low")); } + gp_widget_add_choice (*widget,buf); + if (dpd->FORM.Enum.SupportedValue[i].u16 == dpd->CurrentValue.u16) + gp_widget_set_value (*widget,buf); + } + return GP_OK; +} + +static int +_put_Olympus_ISO(CONFIG_PUT_ARGS) +{ + char *value; + unsigned int u; + + CR (gp_widget_get_value(widget, &value)); + if (!strcmp(value,_("Auto"))) { + propval->u16 = 0xffff; + return GP_OK; + } + if (!strcmp(value,_("Low"))) { + propval->u16 = 0xfffd; + return GP_OK; + } + + if (sscanf(value, "%ud", &u)) { + propval->u16 = u; + return GP_OK; + } + return GP_ERROR; +} + +static int +_get_Olympus_OMD_Bulb(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Olympus_OMD_Bulb(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + GPContext *context = ((PTPData *) params->data)->context; + + CR (gp_widget_get_value(widget, &val)); + if (val) { + int ret = ptp_olympus_omd_bulbstart (params); + if (ret == PTP_RC_GeneralError) { + gp_context_error (((PTPData *) camera->pl->params.data)->context, + _("For bulb capture to work, make sure the mode dial is switched to 'M' and set 'shutterspeed' to 'bulb'.")); + return translate_ptp_result (ret); + } + C_PTP_REP (ret); + } else { + C_PTP_REP (ptp_olympus_omd_bulbend (params)); + } + return GP_OK; +} + +static int +_get_ISO32(CONFIG_GET_ARGS) { + int i; + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return GP_ERROR; + if (dpd->DataType != PTP_DTC_UINT32) + return GP_ERROR; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + + sprintf(buf,"%d",dpd->FORM.Enum.SupportedValue[i].u32); + gp_widget_add_choice (*widget,buf); + if (dpd->FORM.Enum.SupportedValue[i].u32 == dpd->CurrentValue.u32) + gp_widget_set_value (*widget,buf); + } + return GP_OK; +} + +static int +_put_ISO32(CONFIG_PUT_ARGS) +{ + char *value; + unsigned int u; + + CR (gp_widget_get_value(widget, &value)); + + if (sscanf(value, "%ud", &u)) { + propval->u32 = u; + return GP_OK; + } + return GP_ERROR; +} + +static int +_get_Fuji_ISO(CONFIG_GET_ARGS) { + int i; + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return GP_ERROR; + if (dpd->DataType != PTP_DTC_INT32 && /* most camera return INT32 */ + dpd->DataType != PTP_DTC_UINT16) /* ensure compatibility with UINT16 */ + return GP_ERROR; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + + sprintf(buf,"%d",dpd->FORM.Enum.SupportedValue[i].i32); + gp_widget_add_choice (*widget,buf); + if (dpd->FORM.Enum.SupportedValue[i].i32 == dpd->CurrentValue.i32) + gp_widget_set_value (*widget,buf); + } + return GP_OK; +} + +static int +_put_Fuji_ISO(CONFIG_PUT_ARGS) +{ + char *value; + + CR (gp_widget_get_value(widget, &value)); + + /* most camera return INT32 */ + if (dpd->DataType == PTP_DTC_INT32) { + int i; + if (sscanf(value, "%d", &i)) { + propval->i32 = i; + return GP_OK; + } + /* ensure compatibility with UINT16 */ + } else if (dpd->DataType == PTP_DTC_UINT16) { + unsigned int u; + if (sscanf(value, "%d", &u)) { + propval->u16 = u; + return GP_OK; + } + } + return GP_ERROR; +} + +static int +_get_Sony_ISO(CONFIG_GET_ARGS) { + int i,isset=0; + char buf[50]; + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return GP_ERROR; + if (dpd->DataType != PTP_DTC_UINT32) + return GP_ERROR; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (i=0;iFORM.Enum.NumberOfValues; i++) { + if (dpd->FORM.Enum.SupportedValue[i].u32 == 0x00ffffffU) { + sprintf(buf,_("Auto ISO")); + } else if (dpd->FORM.Enum.SupportedValue[i].u32 == 0x01ffffffU) { + sprintf(buf,_("Auto ISO Multi Frame Noise Reduction")); + } else { + if (dpd->FORM.Enum.SupportedValue[i].u32 & 0xff000000) { + sprintf(buf,_("%d Multi Frame Noise Reduction"),dpd->FORM.Enum.SupportedValue[i].u32 & 0xffff); + } else { + sprintf(buf,"%d",dpd->FORM.Enum.SupportedValue[i].u32); + } + } + gp_widget_add_choice (*widget,buf); + if (dpd->FORM.Enum.SupportedValue[i].u32 == dpd->CurrentValue.u32) { + isset=1; + gp_widget_set_value (*widget,buf); + } + } + if (!isset) { + if (dpd->CurrentValue.u32 == 0x00ffffffU) + sprintf(buf,_("Auto ISO")); + else if (dpd->CurrentValue.u32 == 0x01ffffffU) + sprintf(buf,_("Auto ISO Multi Frame Noise Reduction")); + else { + if (dpd->CurrentValue.u32 & 0xff000000) { + sprintf(buf,_("%d Multi Frame Noise Reduction"),dpd->CurrentValue.u32 & 0xffff); + } else { + sprintf(buf,"%d",dpd->CurrentValue.u32); + } + } + gp_widget_set_value (*widget,buf); + } + return GP_OK; +} + +static int +_put_Sony_ISO(CONFIG_PUT_ARGS) +{ + char *value; + uint32_t u; + PTPParams *params = &(camera->pl->params); + + CR (gp_widget_get_value(widget, &value)); + if (!strcmp(value,_("Auto ISO"))) { + u = 0x00ffffff; + goto setiso; + } + if (!strcmp(value,_("Auto ISO Multi Frame Noise Reduction"))) { + u = 0x01ffffff; + goto setiso; + } + + if (!sscanf(value, "%ud", &u)) + return GP_ERROR; + + if (strstr(value,_("Multi Frame Noise Reduction"))) + u |= 0x1000000; + +setiso: + propval->u32 = u; + return _put_sony_value_u32(params, PTP_DPC_SONY_ISO, u, 1); +} + +static int +_get_Olympus_AspectRatio(CONFIG_GET_ARGS) { + int i; + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return GP_ERROR; + if (dpd->DataType != PTP_DTC_UINT32) + return GP_ERROR; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + + sprintf(buf,"%d:%d",(dpd->FORM.Enum.SupportedValue[i].u32 >> 16), dpd->FORM.Enum.SupportedValue[i].u32 & 0xffff); + gp_widget_add_choice (*widget,buf); + if (dpd->FORM.Enum.SupportedValue[i].u32 == dpd->CurrentValue.u32) + gp_widget_set_value (*widget,buf); + } + return GP_OK; +} + +static int +_put_Olympus_AspectRatio(CONFIG_PUT_ARGS) +{ + char *value; + unsigned int x,y; + + CR (gp_widget_get_value(widget, &value)); + + if (2 == sscanf(value, "%d:%d", &x, &y)) { + propval->u32 = (x<<16) | y; + return GP_OK; + } + return GP_ERROR; +} + + +static int +_get_Milliseconds(CONFIG_GET_ARGS) { + unsigned int i, min, max; + + if (!(dpd->FormFlag & (PTP_DPFF_Range|PTP_DPFF_Enumeration))) + return (GP_ERROR); + if ((dpd->DataType != PTP_DTC_UINT32) && (dpd->DataType != PTP_DTC_UINT16)) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + if (dpd->FormFlag & PTP_DPFF_Enumeration) { + unsigned int t; + + if (dpd->DataType == PTP_DTC_UINT32) + t = dpd->CurrentValue.u32; + else + t = dpd->CurrentValue.u16; + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + unsigned int x; + + if (dpd->DataType == PTP_DTC_UINT32) + x = dpd->FORM.Enum.SupportedValue[i].u32; + else + x = dpd->FORM.Enum.SupportedValue[i].u16; + + sprintf(buf,"%0.3fs",x/1000.0); + gp_widget_add_choice (*widget,buf); + if (x == t) + gp_widget_set_value (*widget,buf); + } + } + if (dpd->FormFlag & PTP_DPFF_Range) { + unsigned int s; + + if (dpd->DataType == PTP_DTC_UINT32) { + min = dpd->FORM.Range.MinimumValue.u32; + max = dpd->FORM.Range.MaximumValue.u32; + s = dpd->FORM.Range.StepSize.u32; + } else { + min = dpd->FORM.Range.MinimumValue.u16; + max = dpd->FORM.Range.MaximumValue.u16; + s = dpd->FORM.Range.StepSize.u16; + } + for (i=min; i<=max; i+=s) { + char buf[20]; + + sprintf (buf, "%0.3fs", i/1000.0); + CR (gp_widget_add_choice (*widget, buf)); + if ( ((dpd->DataType == PTP_DTC_UINT32) && (dpd->CurrentValue.u32 == i)) || + ((dpd->DataType == PTP_DTC_UINT16) && (dpd->CurrentValue.u16 == i)) + ) + CR (gp_widget_set_value (*widget, buf)); + + /* device might report stepsize 0. but we do at least 1 round */ + if (s == 0) + break; + } + + } + return GP_OK; +} + +static int +_put_Milliseconds(CONFIG_PUT_ARGS) +{ + char *value; + float f; + + CR (gp_widget_get_value(widget, &value)); + + if (sscanf(value, "%f", &f)) { + if (dpd->DataType == PTP_DTC_UINT32) + propval->u32 = f*1000; + else + propval->u16 = f*1000; + return GP_OK; + } + return GP_ERROR; +} + +static int +_get_FNumber(CONFIG_GET_ARGS) { + int i; + + GP_LOG_D ("get_FNumber"); + if (!(dpd->FormFlag & (PTP_DPFF_Enumeration|PTP_DPFF_Range))) + return (GP_ERROR); + if (dpd->DataType != PTP_DTC_UINT16) + return (GP_ERROR); + + if (dpd->FormFlag & PTP_DPFF_Enumeration) { + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + + sprintf(buf,"f/%g",(dpd->FORM.Enum.SupportedValue[i].u16*1.0)/100.0); + gp_widget_add_choice (*widget,buf); + if (dpd->FORM.Enum.SupportedValue[i].u16 == dpd->CurrentValue.u16) + gp_widget_set_value (*widget,buf); + } + GP_LOG_D ("get_FNumber via enum"); + } else { /* Range */ + float value_float; + + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_set_range (*widget, + dpd->FORM.Range.MinimumValue.u16/100.0, + dpd->FORM.Range.MaximumValue.u16/100.0, + dpd->FORM.Range.StepSize.u16/100.0 + ); + value_float = dpd->CurrentValue.u16/100.0; + gp_widget_set_value (*widget, &value_float); + GP_LOG_D ("get_FNumber via float"); + } + return GP_OK; +} + +static int +_put_FNumber(CONFIG_PUT_ARGS) +{ + int i; + + if (dpd->FormFlag & PTP_DPFF_Enumeration) { + char *value; + float f; + + CR (gp_widget_get_value(widget, &value)); + if (strstr (value, "f/") == value) + value += strlen("f/"); + + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + + sprintf(buf,"%g",(dpd->FORM.Enum.SupportedValue[i].u16*1.0)/100.0); + if (!strcmp (buf, value)) { + propval->u16 = dpd->FORM.Enum.SupportedValue[i].u16; + return GP_OK; + } + } + if (sscanf(value, "%g", &f)) { + propval->u16 = f*100; + return GP_OK; + } + } else { /* RANGE uses float */ + float fvalue; + + CR (gp_widget_get_value (widget, &fvalue)); + propval->u16 = fvalue*100; + return GP_OK; + } + return GP_ERROR; +} + +static int +_put_Sony_FNumber(CONFIG_PUT_ARGS) +{ + float fvalue; + PTPParams *params = &(camera->pl->params); + + CR (gp_widget_get_value (widget, &fvalue)); + + propval->u16 = fvalue*100; /* probably not used */ + return _put_sony_value_u16 (params, PTP_DPC_FNumber, fvalue*100, 0); +} + +static int +_get_ExpTime(CONFIG_GET_ARGS) { + int i; + PTPParams *params = &(camera->pl->params); + + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return (GP_ERROR); + if (dpd->DataType != PTP_DTC_UINT32) + return (GP_ERROR); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) { + if (dpd->FORM.Enum.SupportedValue[i].u32 == 0xffffffff) { + sprintf(buf,_("Bulb")); + goto choicefound; + } + if (dpd->FORM.Enum.SupportedValue[i].u32 == 0xfffffffd) { + sprintf(buf,_("Time")); + goto choicefound; + } + } + sprintf (buf,_("%0.4fs"), (1.0*dpd->FORM.Enum.SupportedValue[i].u32)/10000.0); +choicefound: + gp_widget_add_choice (*widget,buf); + if (dpd->FORM.Enum.SupportedValue[i].u32 == dpd->CurrentValue.u32) + gp_widget_set_value (*widget,buf); + } + return (GP_OK); +} + +static int +_put_ExpTime(CONFIG_PUT_ARGS) +{ + unsigned int i, delta, xval, ival1, ival2, ival3; + float val; + char *value; + PTPParams *params = &(camera->pl->params); + + CR (gp_widget_get_value (widget, &value)); + + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) { + if (!strcmp(value,_("Bulb"))) { + propval->u32 = 0xffffffff; + return GP_OK; + } + if (!strcmp(value,_("Time"))) { + propval->u32 = 0xfffffffd; + return GP_OK; + } + } + + if (sscanf(value,_("%d %d/%d"),&ival1,&ival2,&ival3) == 3) { + GP_LOG_D ("%d %d/%d case", ival1, ival2, ival3); + val = ((float)ival1) + ((float)ival2/(float)ival3); + } else if (sscanf(value,_("%d/%d"),&ival1,&ival2) == 2) { + GP_LOG_D ("%d/%d case", ival1, ival2); + val = (float)ival1/(float)ival2; + } else if (!sscanf(value,_("%f"),&val)) { + GP_LOG_E ("failed to parse: %s", value); + return (GP_ERROR); + } else + GP_LOG_D ("%fs case", val); + val = val*10000.0; + delta = 1000000; + xval = val; + /* match the closest value */ + for (i=0;iFORM.Enum.NumberOfValues; i++) { + /*GP_LOG_D ("delta is currently %d, val is %f, supval is %u, abs is %u",delta,val,dpd->FORM.Enum.SupportedValue[i].u32,abs(val - dpd->FORM.Enum.SupportedValue[i].u32));*/ + if (abs(val - dpd->FORM.Enum.SupportedValue[i].u32)FORM.Enum.SupportedValue[i].u32; + delta = abs(val - dpd->FORM.Enum.SupportedValue[i].u32); + } + } + GP_LOG_D ("value %s is %f, closest match was %d",value,val,xval); + propval->u32 = xval; + return (GP_OK); +} + +static int +_get_Sharpness(CONFIG_GET_ARGS) { + int i, min, max, t; + + if (!(dpd->FormFlag & (PTP_DPFF_Enumeration|PTP_DPFF_Range))) + return (GP_ERROR); + if ((dpd->DataType != PTP_DTC_UINT8) && (dpd->DataType != PTP_DTC_INT8)) + return (GP_ERROR); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + if (dpd->FormFlag & PTP_DPFF_Range) { + int s; + + if (dpd->DataType == PTP_DTC_UINT8) { + min = dpd->FORM.Range.MinimumValue.u8; + max = dpd->FORM.Range.MaximumValue.u8; + s = dpd->FORM.Range.StepSize.u8; + } else { + min = dpd->FORM.Range.MinimumValue.i8; + max = dpd->FORM.Range.MaximumValue.i8; + s = dpd->FORM.Range.StepSize.i8; + } + if (!s) { + gp_widget_set_value (*widget, "invalid range, stepping 0"); + return GP_OK; + } + for (i=min; i<=max; i+=s) { + char buf[20]; + + if (max != min) + sprintf (buf, "%d%%", (i-min)*100/(max-min)); + else + strcpy (buf, "range max=min?"); + gp_widget_add_choice (*widget, buf); + if ( ((dpd->DataType == PTP_DTC_UINT8) && (dpd->CurrentValue.u8 == i)) || + ((dpd->DataType == PTP_DTC_INT8) && (dpd->CurrentValue.i8 == i)) + ) + gp_widget_set_value (*widget, buf); + } + } + + if (dpd->FormFlag & PTP_DPFF_Enumeration) { + min = 256; + max = -256; + for (i=0;iFORM.Enum.NumberOfValues; i++) { + if (dpd->DataType == PTP_DTC_UINT8) { + if (dpd->FORM.Enum.SupportedValue[i].u8 < min) + min = dpd->FORM.Enum.SupportedValue[i].u8; + if (dpd->FORM.Enum.SupportedValue[i].u8 > max) + max = dpd->FORM.Enum.SupportedValue[i].u8; + } else { + if (dpd->FORM.Enum.SupportedValue[i].i8 < min) + min = dpd->FORM.Enum.SupportedValue[i].i8; + if (dpd->FORM.Enum.SupportedValue[i].i8 > max) + max = dpd->FORM.Enum.SupportedValue[i].i8; + } + } + if (dpd->DataType == PTP_DTC_UINT8) + t = dpd->CurrentValue.u8; + else + t = dpd->CurrentValue.i8; + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + int x; + + if (dpd->DataType == PTP_DTC_UINT8) + x = dpd->FORM.Enum.SupportedValue[i].u8; + else + x = dpd->FORM.Enum.SupportedValue[i].i8; + + if (max != min) + sprintf (buf, "%d%%", (x-min)*100/(max-min)); + else + strcpy (buf, "range max=min?"); + gp_widget_add_choice (*widget, buf); + if (t == x) + gp_widget_set_value (*widget, buf); + } + } + return (GP_OK); +} + +static int +_put_Sharpness(CONFIG_PUT_ARGS) { + const char *val; + int i, min, max, x; + + gp_widget_get_value (widget, &val); + if (dpd->FormFlag & PTP_DPFF_Enumeration) { + min = 256; + max = -256; + for (i=0;iFORM.Enum.NumberOfValues; i++) { + if (dpd->DataType == PTP_DTC_UINT8) { + if (dpd->FORM.Enum.SupportedValue[i].u8 < min) + min = dpd->FORM.Enum.SupportedValue[i].u8; + if (dpd->FORM.Enum.SupportedValue[i].u8 > max) + max = dpd->FORM.Enum.SupportedValue[i].u8; + } else { + if (dpd->FORM.Enum.SupportedValue[i].i8 < min) + min = dpd->FORM.Enum.SupportedValue[i].i8; + if (dpd->FORM.Enum.SupportedValue[i].i8 > max) + max = dpd->FORM.Enum.SupportedValue[i].i8; + } + } + for (i=0;iFORM.Enum.NumberOfValues; i++) { + char buf[20]; + + if (dpd->DataType == PTP_DTC_UINT8) + x = dpd->FORM.Enum.SupportedValue[i].u8; + else + x = dpd->FORM.Enum.SupportedValue[i].i8; + + sprintf (buf, "%d%%", (x-min)*100/(max-min)); + if (!strcmp(buf, val)) { + if (dpd->DataType == PTP_DTC_UINT8) + propval->u8 = x; + else + propval->i8 = x; + return GP_OK; + } + } + } + if (dpd->FormFlag & PTP_DPFF_Range) { + int s; + + if (dpd->DataType == PTP_DTC_UINT8) { + min = dpd->FORM.Range.MinimumValue.u8; + max = dpd->FORM.Range.MaximumValue.u8; + s = dpd->FORM.Range.StepSize.u8; + } else { + min = dpd->FORM.Range.MinimumValue.i8; + max = dpd->FORM.Range.MaximumValue.i8; + s = dpd->FORM.Range.StepSize.i8; + } + for (i=min; i<=max; i+=s) { + char buf[20]; + + sprintf (buf, "%d%%", (i-min)*100/(max-min)); + if (strcmp (buf, val)) { + if (s == 0) + break; + continue; + } + if (dpd->DataType == PTP_DTC_UINT8) + propval->u8 = i; + else + propval->i8 = i; + return GP_OK; + } + } + return GP_ERROR; +} + + +static struct deviceproptableu16 exposure_program_modes[] = { + { "M", 0x0001, 0 }, + { "P", 0x0002, 0 }, + { "A", 0x0003, 0 }, + { "S", 0x0004, 0 }, + { N_("Creative"), 0x0005, 0 }, + { N_("Action"), 0x0006, 0 }, + { N_("Portrait"), 0x0007, 0 }, + { N_("Auto"), 0x8010, PTP_VENDOR_NIKON}, + { N_("Portrait"), 0x8011, PTP_VENDOR_NIKON}, + { N_("Landscape"), 0x8012, PTP_VENDOR_NIKON}, + { N_("Macro"), 0x8013, PTP_VENDOR_NIKON}, + { N_("Sports"), 0x8014, PTP_VENDOR_NIKON}, + { N_("Night Portrait"), 0x8015, PTP_VENDOR_NIKON}, + { N_("Night Landscape"),0x8016, PTP_VENDOR_NIKON}, + { N_("Children"), 0x8017, PTP_VENDOR_NIKON}, + { N_("Automatic (No Flash)"), 0x8018, PTP_VENDOR_NIKON}, + + { N_("Intelligent Auto"), 0x8000, PTP_VENDOR_SONY}, + { N_("Superior Auto"), 0x8001, PTP_VENDOR_SONY}, + { N_("Movie"), 0x8050, PTP_VENDOR_SONY}, + { N_("Tele-zoom Cont. Priority AE"), 0x8031, PTP_VENDOR_SONY}, + { N_("Sweep Panorama"), 0x8041, PTP_VENDOR_SONY}, + { N_("Intelligent Auto Flash Off"), 0x8060, PTP_VENDOR_SONY}, + { N_("Sports Action"), 0x8011, PTP_VENDOR_SONY}, + { N_("Macro"), 0x8015, PTP_VENDOR_SONY}, + { N_("Landscape"), 0x8014, PTP_VENDOR_SONY}, + { N_("Sunset"), 0x8012, PTP_VENDOR_SONY}, + { N_("Night Scene"), 0x8013, PTP_VENDOR_SONY}, + { N_("Hand-held Twilight"), 0x8016, PTP_VENDOR_SONY}, + { N_("Night Portrait"), 0x8017, PTP_VENDOR_SONY}, + { N_("Picture Effect"), 0x8070, PTP_VENDOR_SONY}, + { N_("S&Q"), 0x8084, PTP_VENDOR_SONY}, /* on A7III */ +}; +GENERIC16TABLE(ExposureProgram,exposure_program_modes) + +static struct deviceproptableu8 nikon_scenemode[] = { + { N_("Night landscape"), 0, 0 }, + { N_("Party/Indoor"), 1, 0 }, + { N_("Beach/Snow"), 2, 0 }, + { N_("Sunset"), 3, 0 }, + { N_("Dusk/Dawn"), 4, 0 }, + { N_("Pet Portrait"), 5, 0 }, + { N_("Candlelight"), 6, 0 }, + { N_("Blossom"), 7, 0 }, + { N_("Autumn colors"), 8, 0 }, + { N_("Food"), 9, 0 }, + /* ? */ + { N_("Portrait"), 13, 0 }, + { N_("Landscape"), 14, 0 }, + { N_("Child"), 15, 0 }, + { N_("Sports"), 16, 0 }, + { N_("Close up"), 17, 0 }, + { N_("Night Portrait"), 18, 0 }, + +}; +GENERIC8TABLE(NIKON_SceneMode,nikon_scenemode); + +/* Nikon 1 S1 specials in here */ +static struct deviceproptableu8 nikon_1_j3_iso[] = { + /* values from a J3 */ + { N_("A6400 (160-6400)"), 0x01, 0 }, + { N_("A3200 (160-3200)"), 0x02, 0 }, + { N_("A800 (160-800)"), 0x03, 0 }, + + /* these same same for all 1 */ + { "100", 0x0a, 0 }, + { "110", 0x0b, 0 }, + { "125", 0x0c, 0 }, + { "140", 0x0d, 0 }, + { "160", 0x0e, 0 }, + { "180", 0x0f, 0 }, + { "200", 0x10, 0 }, + { "220", 0x11, 0 }, + { "250", 0x12, 0 }, + { "280", 0x13, 0 }, + { "320", 0x14, 0 }, + { "360", 0x15, 0 }, + { "400", 0x16, 0 }, + { "400", 0x16, 0 }, + { "450", 0x17, 0 }, + { "500", 0x18, 0 }, + { "560", 0x19, 0 }, + { "640", 0x1a, 0 }, + { "720", 0x1b, 0 }, + { "800", 0x1c, 0 }, + { "900", 0x1d, 0 }, + { "1000", 0x1e, 0 }, + { "1100", 0x1f, 0 }, + { "1250", 0x20, 0 }, + { "1400", 0x21, 0 }, + { "1600", 0x22, 0 }, + { "1800", 0x23, 0 }, + { "2000", 0x24, 0 }, + { "2200", 0x25, 0 }, + { "2500", 0x26, 0 }, + { "2800", 0x27, 0 }, + { "3200", 0x28, 0 }, + { "6400", 0x2e, 0 }, + /* more unknown values */ +}; +GENERIC8TABLE(Nikon_1_J3_ISO,nikon_1_j3_iso); + +/* Nikon 1 S1 specials in here */ +static struct deviceproptableu8 nikon_1_s1_iso[] = { + { "100", 0x0a, 0 }, + { "110", 0x0b, 0 }, + { "125", 0x0c, 0 }, + { "140", 0x0d, 0 }, + { "160", 0x0e, 0 }, + { "180", 0x0f, 0 }, + { "200", 0x10, 0 }, + { "220", 0x11, 0 }, + { "250", 0x12, 0 }, + { "280", 0x13, 0 }, + { "320", 0x14, 0 }, + { "360", 0x15, 0 }, + { "400", 0x16, 0 }, + { "450", 0x17, 0 }, + { "500", 0x18, 0 }, + { "560", 0x19, 0 }, + { "640", 0x1a, 0 }, + { "720", 0x1b, 0 }, + { "800", 0x1c, 0 }, + { "900", 0x1d, 0 }, + { "1000", 0x1e, 0 }, + { "1100", 0x1f, 0 }, + { "1250", 0x20, 0 }, + { "1400", 0x21, 0 }, + { "1600", 0x22, 0 }, + { "1800", 0x23, 0 }, + { "2000", 0x24, 0 }, + { "2200", 0x25, 0 }, + { "2500", 0x26, 0 }, + { "2800", 0x27, 0 }, + { "3200", 0x28, 0 }, + { "6400", 0x2e, 0 }, +}; +GENERIC8TABLE(Nikon_1_S1_ISO,nikon_1_s1_iso); + +/* Generic Nikon 1 ISO */ +static struct deviceproptableu8 nikon_1_iso[] = { + { "100", 0x0a, 0 }, + { "110", 0x0b, 0 }, + { "125", 0x0c, 0 }, + { "140", 0x0d, 0 }, + { "160", 0x0e, 0 }, + { "180", 0x0f, 0 }, + { "200", 0x10, 0 }, + { "220", 0x11, 0 }, + { "250", 0x12, 0 }, + { "280", 0x13, 0 }, + { "320", 0x14, 0 }, + { "360", 0x15, 0 }, + { "400", 0x16, 0 }, + { "450", 0x17, 0 }, + { "500", 0x18, 0 }, + { "560", 0x19, 0 }, + { "640", 0x1a, 0 }, + { "720", 0x1b, 0 }, + { "800", 0x1c, 0 }, + { "900", 0x1d, 0 }, + { "1000", 0x1e, 0 }, + { "1100", 0x1f, 0 }, + { "1250", 0x20, 0 }, + { "1400", 0x21, 0 }, + { "1600", 0x22, 0 }, + { "1800", 0x23, 0 }, + { "2000", 0x24, 0 }, + { "2200", 0x25, 0 }, + { "2500", 0x26, 0 }, + { "2800", 0x27, 0 }, + { "3200", 0x28, 0 }, + { "6400", 0x2e, 0 }, +}; +GENERIC8TABLE(Nikon_1_ISO,nikon_1_iso); + +static struct deviceproptableu8 nikon_1_whitebalance[] = { + /* values from a J3 */ + { N_("Auto"), 0x00, 0 }, + { N_("Tungsten"), 0x01, 0 }, + { N_("Flourescent"), 0x02, 0 }, + { N_("Daylight"), 0x03, 0 }, + { N_("Flash"), 0x04, 0 }, + { N_("Cloudy"), 0x05, 0 }, + { N_("Shade"), 0x06, 0 }, + + /* these are not in the enum range on the j3 ... but reported? */ + { N_("Water"), 0x0a, 0 }, + { N_("Preset"), 0x08, 0 }, +}; +GENERIC8TABLE(Nikon_1_WhiteBalance,nikon_1_whitebalance); + +static struct deviceproptableu8 nikon_hdrhighdynamic[] = { + { N_("Auto"), 0, 0 }, + { N_("1 EV"), 1, 0 }, + { N_("2 EV"), 2, 0 }, + { N_("3 EV"), 3, 0 }, +}; +GENERIC8TABLE(Nikon_HDRHighDynamic,nikon_hdrhighdynamic); + +static struct deviceproptableu8 nikon_hdrsmoothing[] = { + { N_("Auto"), 3, 0 }, + { N_("Low"), 2, 0 }, + { N_("Normal"), 1, 0 }, + { N_("High"), 0, 0 }, + { N_("Extra high"), 4, 0 }, +}; +GENERIC8TABLE(Nikon_HDRSmoothing,nikon_hdrsmoothing); + +static struct deviceproptableu16 nikon_d7100_exposure_program_modes[] = { + { "M", 0x0001, 0 }, + { "P", 0x0002, 0 }, + { "A", 0x0003, 0 }, + { "S", 0x0004, 0 }, + { N_("Auto"), 0x8010, PTP_VENDOR_NIKON}, + { N_("Portrait"), 0x8011, PTP_VENDOR_NIKON}, + { N_("Landscape"), 0x8012, PTP_VENDOR_NIKON}, + { N_("Macro"), 0x8013, PTP_VENDOR_NIKON}, + { N_("Sports"), 0x8014, PTP_VENDOR_NIKON}, + { N_("No Flash"), 0x8016, PTP_VENDOR_NIKON}, + { N_("Children"), 0x8017, PTP_VENDOR_NIKON}, + { N_("Scene"), 0x8018, PTP_VENDOR_NIKON}, + { N_("Effects"), 0x8019, PTP_VENDOR_NIKON}, + { N_("U1"), 0x8050, PTP_VENDOR_NIKON}, + { N_("U2"), 0x8051, PTP_VENDOR_NIKON}, +}; +GENERIC16TABLE(NIKON_D7100_ExposureProgram,nikon_d7100_exposure_program_modes) + +static struct deviceproptableu16 nikon_d5100_exposure_program_modes[] = { + { "M", 0x0001, 0 }, + { "P", 0x0002, 0 }, + { "A", 0x0003, 0 }, + { "S", 0x0004, 0 }, + { N_("Auto"), 0x8010, PTP_VENDOR_NIKON}, + { N_("Portrait"), 0x8011, PTP_VENDOR_NIKON}, + { N_("Landscape"), 0x8012, PTP_VENDOR_NIKON}, + { N_("Macro"), 0x8013, PTP_VENDOR_NIKON}, + { N_("Sports"), 0x8014, PTP_VENDOR_NIKON}, + { N_("No Flash"), 0x8016, PTP_VENDOR_NIKON}, + { N_("Children"), 0x8017, PTP_VENDOR_NIKON}, + { N_("Scene"), 0x8018, PTP_VENDOR_NIKON}, + { N_("Effects"), 0x8019, PTP_VENDOR_NIKON}, +}; +GENERIC16TABLE(NIKON_D5100_ExposureProgram,nikon_d5100_exposure_program_modes) + +static struct deviceproptableu8 nikon_1_exposure_program_modes[] = { + { "P", 0x00, 0 }, + { "S", 0x01, 0 }, + { "A", 0x02, 0 }, + { "M", 0x03, 0 }, + { N_("Night Landscape"),0x04, 0 }, + { N_("Night Portrait"), 0x05, 0 }, + { N_("Back Light"), 0x06, 0 }, + { N_("Panorama"), 0x07, 0 }, + { N_("Smoothing"), 0x08, 0 }, + { N_("Tilt-Shift"), 0x09, 0 }, + { N_("Select Color"), 0x0a, 0 }, +}; +GENERIC8TABLE(NIKON_1_ExposureProgram,nikon_1_exposure_program_modes) + +static struct deviceproptableu16 capture_mode[] = { + { N_("Single Shot"), 0x0001, 0 }, + { N_("Burst"), 0x0002, 0 }, + { N_("Timelapse"), 0x0003, 0 }, + { N_("Continuous Low Speed"), 0x8010, PTP_VENDOR_NIKON}, + { N_("Timer"), 0x8011, PTP_VENDOR_NIKON}, + { N_("Mirror Up"), 0x8012, PTP_VENDOR_NIKON}, + { N_("Remote"), 0x8013, PTP_VENDOR_NIKON}, + { N_("Quick Response Remote"), 0x8014, PTP_VENDOR_NIKON}, /* others nikons */ + { N_("Delayed Remote"), 0x8015, PTP_VENDOR_NIKON}, /* d90 */ + { N_("Quiet Release"), 0x8016, PTP_VENDOR_NIKON}, /* d5000 */ + { N_("Continuous Quiet Release"), 0x8018, PTP_VENDOR_NIKON}, /* d850 */ + + { N_("Continuous Low Speed"), 0x8012, PTP_VENDOR_SONY}, + { N_("Selftimer 2s"), 0x8005, PTP_VENDOR_SONY}, + { N_("Selftimer 5s"), 0x8003, PTP_VENDOR_SONY}, + { N_("Selftimer 10s"), 0x8004, PTP_VENDOR_SONY}, + { N_("Selftimer 10s 3 Pictures"),0x8008, PTP_VENDOR_SONY}, + { N_("Selftimer 10s 5 Pictures"),0x8009, PTP_VENDOR_SONY}, + { N_("Selftimer 5s 3 Pictures"),0x800c, PTP_VENDOR_SONY}, + { N_("Selftimer 5s 5 Pictures"),0x800d, PTP_VENDOR_SONY}, + { N_("Selftimer 2s 3 Pictures"),0x800e, PTP_VENDOR_SONY}, + { N_("Selftimer 2s 5 Pictures"),0x800f, PTP_VENDOR_SONY}, + { N_("Continuous Hi+ Speed"), 0x8010, PTP_VENDOR_SONY}, /* A7III */ + { N_("Continuous Med Speed"), 0x8015, PTP_VENDOR_SONY}, /* A7III */ + + { N_("Bracketing C 0.3 Steps 3 Pictures"), 0x8337, PTP_VENDOR_SONY}, + { N_("Bracketing C 0.3 Steps 5 Pictures"), 0x8537, PTP_VENDOR_SONY}, + { N_("Bracketing C 0.3 Steps 9 Pictures"), 0x8937, PTP_VENDOR_SONY}, + + { N_("Bracketing C 0.5 Steps 3 Pictures"), 0x8357, PTP_VENDOR_SONY}, + { N_("Bracketing C 0.5 Steps 5 Pictures"), 0x8557, PTP_VENDOR_SONY}, + { N_("Bracketing C 0.5 Steps 9 Pictures"), 0x8957, PTP_VENDOR_SONY}, + + { N_("Bracketing C 0.7 Steps 3 Pictures"), 0x8377, PTP_VENDOR_SONY}, + { N_("Bracketing C 0.7 Steps 5 Pictures"), 0x8577, PTP_VENDOR_SONY}, + { N_("Bracketing C 0.7 Steps 9 Pictures"), 0x8977, PTP_VENDOR_SONY}, + + { N_("Bracketing C 1.0 Steps 3 Pictures"), 0x8311, PTP_VENDOR_SONY}, + { N_("Bracketing C 1.0 Steps 5 Pictures"), 0x8511, PTP_VENDOR_SONY}, + { N_("Bracketing C 1.0 Steps 9 Pictures"), 0x8911, PTP_VENDOR_SONY}, + + { N_("Bracketing C 2.0 Steps 3 Pictures"), 0x8321, PTP_VENDOR_SONY}, + { N_("Bracketing C 2.0 Steps 5 Pictures"), 0x8521, PTP_VENDOR_SONY}, + + { N_("Bracketing C 3.0 Steps 3 Pictures"), 0x8331, PTP_VENDOR_SONY}, + { N_("Bracketing C 3.0 Steps 5 Pictures"), 0x8531, PTP_VENDOR_SONY}, + + { N_("Bracketing S 0.3 Steps 3 Pictures"), 0x8336, PTP_VENDOR_SONY}, + { N_("Bracketing S 0.3 Steps 5 Pictures"), 0x8536, PTP_VENDOR_SONY}, + { N_("Bracketing S 0.3 Steps 9 Pictures"), 0x8936, PTP_VENDOR_SONY}, + + { N_("Bracketing S 0.5 Steps 3 Pictures"), 0x8356, PTP_VENDOR_SONY}, + { N_("Bracketing S 0.5 Steps 5 Pictures"), 0x8556, PTP_VENDOR_SONY}, + { N_("Bracketing S 0.5 Steps 9 Pictures"), 0x8956, PTP_VENDOR_SONY}, + + { N_("Bracketing S 0.7 Steps 3 Pictures"), 0x8376, PTP_VENDOR_SONY}, + { N_("Bracketing S 0.7 Steps 5 Pictures"), 0x8576, PTP_VENDOR_SONY}, + { N_("Bracketing S 0.7 Steps 9 Pictures"), 0x8976, PTP_VENDOR_SONY}, + + { N_("Bracketing S 1.0 Steps 3 Pictures"), 0x8310, PTP_VENDOR_SONY}, + { N_("Bracketing S 1.0 Steps 5 Pictures"), 0x8510, PTP_VENDOR_SONY}, + { N_("Bracketing S 1.0 Steps 9 Pictures"), 0x8910, PTP_VENDOR_SONY}, + + { N_("Bracketing S 2.0 Steps 3 Pictures"), 0x8320, PTP_VENDOR_SONY}, + { N_("Bracketing S 2.0 Steps 5 Pictures"), 0x8520, PTP_VENDOR_SONY}, + { N_("Bracketing S 3.0 Steps 3 Pictures"), 0x8330, PTP_VENDOR_SONY}, + { N_("Bracketing S 3.0 Steps 5 Pictures"), 0x8530, PTP_VENDOR_SONY}, + { N_("Bracketing WB Lo"), 0x8018, PTP_VENDOR_SONY}, + { N_("Bracketing DRO Lo"), 0x8019, PTP_VENDOR_SONY}, + { N_("Bracketing WB Hi"), 0x8028, PTP_VENDOR_SONY}, + { N_("Bracketing DRO Hi"), 0x8029, PTP_VENDOR_SONY}, +/* + { N_("Continuous"), 0x8001, PTP_VENDOR_CASIO}, + { N_("Prerecord"), 0x8002, PTP_VENDOR_CASIO}, +*/ +}; +GENERIC16TABLE(CaptureMode,capture_mode) + +static struct deviceproptableu16 focus_metering[] = { + { N_("Centre-spot"), 0x0001, 0 }, + { N_("Multi-spot"), 0x0002, 0 }, + { N_("Single Area"), 0x8010, PTP_VENDOR_NIKON}, + { N_("Closest Subject"),0x8011, PTP_VENDOR_NIKON}, + { N_("Group Dynamic"), 0x8012, PTP_VENDOR_NIKON}, + { N_("Single-area AF"), 0x8001, PTP_VENDOR_FUJI}, + { N_("Dynamic-area AF"),0x8002, PTP_VENDOR_FUJI}, + { N_("Group-dynamic AF"),0x8003, PTP_VENDOR_FUJI}, + { N_("Dynamic-area AF with closest subject priority"),0x8004, PTP_VENDOR_FUJI}, +}; +GENERIC16TABLE(FocusMetering,focus_metering) + +static struct deviceproptableu16 nikon_d7100_focus_metering[] = { + { N_("Auto"),0x8011, PTP_VENDOR_NIKON}, + { N_("Single Area"), 0x8010, PTP_VENDOR_NIKON}, + { N_("Dynamic Area (9)"), 0x0002, 0 }, + { N_("Dynamic Area (21)"), 0x8013, PTP_VENDOR_NIKON}, + { N_("Dynamic Area (51)"), 0x8014, PTP_VENDOR_NIKON}, + { N_("3D Tracking"), 0x8012, PTP_VENDOR_NIKON}, +}; +GENERIC16TABLE(Nikon_D7100_FocusMetering,nikon_d7100_focus_metering) + +static struct deviceproptableu16 nikon_d850_focus_metering[] = { + { N_("Dynamic-area AF (25 points)"),0x0002, PTP_VENDOR_NIKON}, + { N_("Single-point AF"),0x8010, PTP_VENDOR_NIKON}, + { N_("Auto-area AF"), 0x8011, PTP_VENDOR_NIKON}, + { N_("3D-tracking"), 0x8012, PTP_VENDOR_NIKON}, + { N_("Dynamic-area AF (72 points)"),0x8013, PTP_VENDOR_NIKON}, + { N_("Dynamic-area AF (153 points)"), 0x8014, PTP_VENDOR_NIKON}, + { N_("Group-area AF"), 0x8015, PTP_VENDOR_NIKON}, + { N_("Dynamic-area AF (9 points)"), 0x8016, PTP_VENDOR_NIKON}, + + { N_("Pinpoint AF"), 0x8017, PTP_VENDOR_NIKON}, /* on Z */ + { N_("Wide-area AF (S)"), 0x8018, PTP_VENDOR_NIKON}, /* on Z */ + { N_("Wide-area AF (L)"), 0x8019, PTP_VENDOR_NIKON}, /* on Z */ +}; +GENERIC16TABLE(Nikon_D850_FocusMetering,nikon_d850_focus_metering) + +static struct deviceproptableu8 nikon_colormodel[] = { + { N_("sRGB (portrait)"),0x00, 0 }, + { N_("AdobeRGB"), 0x01, 0 }, + { N_("sRGB (nature)"), 0x02, 0 }, +}; +GENERIC8TABLE(Nikon_ColorModel,nikon_colormodel) + +static struct deviceproptableu8 nikon_colorspace[] = { + { N_("sRGB"), 0x00, 0 }, + { N_("AdobeRGB"), 0x01, 0 }, +}; +GENERIC8TABLE(Nikon_ColorSpace,nikon_colorspace) + +static struct deviceproptableu16 canon_eos_colorspace[] = { + { N_("sRGB"), 0x01, 0 }, + { N_("AdobeRGB"), 0x02, 0 }, +}; +GENERIC16TABLE(Canon_EOS_ColorSpace,canon_eos_colorspace) + + +static struct deviceproptableu8 nikon_evstep[] = { + { "1/3", 0, 0 }, + { "1/2", 1, 0 }, +}; +GENERIC8TABLE(Nikon_EVStep,nikon_evstep) + +static struct deviceproptableu8 nikon_orientation[] = { + { "0'", 0, 0 }, + { "270'", 1, 0 }, + { "90'", 2, 0 }, + { "180'", 3, 0 }, +}; +GENERIC8TABLE(Nikon_CameraOrientation,nikon_orientation) + +static struct deviceproptableu16 canon_orientation[] = { + { "0'", 0, 0 }, + { "90'", 1, 0 }, + { "180'", 2, 0 }, + { "270'", 3, 0 }, +}; + +static int +_get_Canon_CameraOrientation(CONFIG_GET_ARGS) { + char orient[50]; /* needs also to fit the translated string */ + int i; + + if (dpd->DataType != PTP_DTC_UINT16) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (i=0;iCurrentValue.u16) + continue; + gp_widget_set_value (*widget, canon_orientation[i].label); + return GP_OK; + } + sprintf (orient, _("Unknown value 0x%04x"), dpd->CurrentValue.u16); + gp_widget_set_value (*widget, orient); + return GP_OK; +} + +static int +_get_Nikon_AngleLevel(CONFIG_GET_ARGS) { + char orient[20]; + + if (dpd->DataType != PTP_DTC_INT32) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + sprintf (orient, "%.f'", dpd->CurrentValue.i32/65536.0); + gp_widget_set_value (*widget, orient); + return GP_OK; +} + + +static struct deviceproptableu8 nikon_afsensor[] = { + { N_("Centre"), 0x00, 0 }, + { N_("Top"), 0x01, 0 }, + { N_("Bottom"), 0x02, 0 }, + { N_("Left"), 0x03, 0 }, + { N_("Right"), 0x04, 0 }, +}; +GENERIC8TABLE(Nikon_AutofocusArea,nikon_afsensor) + + +static struct deviceproptableu16 exposure_metering[] = { + { N_("Average"), 0x0001, 0 }, + { N_("Center Weighted"),0x0002, 0 }, + { N_("Multi Spot"), 0x0003, 0 }, + { N_("Center Spot"), 0x0004, 0 }, + { N_("Spot"), 0x8001, PTP_VENDOR_FUJI }, + { N_("ESP"), 0x8001, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("Spot+Highlights"),0x8011, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("Spot+Shadows"), 0x8012, PTP_VENDOR_GP_OLYMPUS_OMD }, + /* next ones taken from A7III */ + { N_("Multi"), 0x8001, PTP_VENDOR_SONY }, + { N_("Center"), 0x8002, PTP_VENDOR_SONY }, + { N_("Entire Screen Avg."), 0x8003, PTP_VENDOR_SONY }, + { N_("Spot Standard"), 0x8004, PTP_VENDOR_SONY }, + { N_("Spot Large"), 0x8005, PTP_VENDOR_SONY }, + { N_("Highlight"), 0x8006, PTP_VENDOR_SONY }, +}; +GENERIC16TABLE(ExposureMetering,exposure_metering) + +static struct deviceproptableu16 flash_mode[] = { + { N_("Automatic Flash"), 0x0001, 0 }, + { N_("Flash off"), 0x0002, 0 }, + { N_("Fill flash"), 0x0003, 0 }, + { N_("Red-eye automatic"), 0x0004, 0 }, + { N_("Red-eye fill"), 0x0005, 0 }, + { N_("External sync"), 0x0006, 0 }, + { N_("Auto"), 0x8010, PTP_VENDOR_NIKON}, + { N_("Auto Slow Sync"), 0x8011, PTP_VENDOR_NIKON}, + { N_("Rear Curtain Sync + Slow Sync"), 0x8012, PTP_VENDOR_NIKON}, + { N_("Red-eye Reduction + Slow Sync"), 0x8013, PTP_VENDOR_NIKON}, + { N_("Front-curtain sync"), 0x8001, PTP_VENDOR_FUJI}, + { N_("Red-eye reduction"), 0x8002, PTP_VENDOR_FUJI}, + { N_("Red-eye reduction with slow sync"), 0x8003, PTP_VENDOR_FUJI}, + { N_("Slow sync"), 0x8004, PTP_VENDOR_FUJI}, + { N_("Rear-curtain with slow sync"), 0x8005, PTP_VENDOR_FUJI}, + { N_("Rear-curtain sync"), 0x8006, PTP_VENDOR_FUJI}, + + { N_("Rear Curtain Sync"), 0x8003, PTP_VENDOR_SONY}, + { N_("Wireless Sync"), 0x8004, PTP_VENDOR_SONY}, + { N_("Slow Sync"), 0x8032, PTP_VENDOR_SONY}, +}; +GENERIC16TABLE(FlashMode,flash_mode) + +static struct deviceproptableu16 effect_modes[] = { + { N_("Standard"), 0x0001, 0 }, + { N_("Black & White"), 0x0002, 0 }, + { N_("Sepia"), 0x0003, 0 }, +}; +GENERIC16TABLE(EffectMode,effect_modes) + +static struct deviceproptableu8 nikon_effect_modes[] = { + { N_("Night Vision"), 0x00, 0 }, + { N_("Color sketch"), 0x01, 0 }, + { N_("Miniature effect"), 0x02, 0 }, + { N_("Selective color"), 0x03, 0 }, + { N_("Silhouette"), 0x04, 0 }, + { N_("High key"), 0x05, 0 }, + { N_("Low key"), 0x06, 0 }, +}; +GENERIC8TABLE(NIKON_EffectMode,nikon_effect_modes) + + +static int +_get_FocalLength(CONFIG_GET_ARGS) { + float value_float , start=0.0, end=0.0, step=0.0; + int i; + + if (!(dpd->FormFlag & (PTP_DPFF_Range|PTP_DPFF_Enumeration))) + return (GP_ERROR); + if (dpd->DataType != PTP_DTC_UINT32) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + if (dpd->FormFlag & PTP_DPFF_Enumeration) { + /* Find the range we need. */ + start = 10000.0; + end = 0.0; + for (i = 0; iFORM.Enum.NumberOfValues; i++) { + float cur = dpd->FORM.Enum.SupportedValue[i].u32 / 100.0; + + if (cur < start) start = cur; + if (cur > end) end = cur; + } + step = 1.0; + } + if (dpd->FormFlag & PTP_DPFF_Range) { + start = dpd->FORM.Range.MinimumValue.u32/100.0; + end = dpd->FORM.Range.MaximumValue.u32/100.0; + step = dpd->FORM.Range.StepSize.u32/100.0; + } + gp_widget_set_range (*widget, start, end, step); + value_float = dpd->CurrentValue.u32/100.0; + gp_widget_set_value (*widget, &value_float); + return (GP_OK); +} + +static int +_put_FocalLength(CONFIG_PUT_ARGS) { + int i; + float value_float; + uint32_t curdiff, newval; + + CR (gp_widget_get_value (widget, &value_float)); + propval->u32 = 100*value_float; + if (dpd->FormFlag & PTP_DPFF_Range) + return GP_OK; + /* If FocalLength is enumerated, we need to hit the + * values exactly, otherwise nothing will happen. + * (problem encountered on my Nikon P2) + */ + curdiff = 10000; + newval = propval->u32; + for (i = 0; iFORM.Enum.NumberOfValues; i++) { + uint32_t diff = abs(dpd->FORM.Enum.SupportedValue[i].u32 - propval->u32); + + if (diff < curdiff) { + newval = dpd->FORM.Enum.SupportedValue[i].u32; + curdiff = diff; + } + } + propval->u32 = newval; + return GP_OK; +} + +static int +_get_FocusDistance(CONFIG_GET_ARGS) { + if (!(dpd->FormFlag & (PTP_DPFF_Range|PTP_DPFF_Enumeration))) + return (GP_ERROR); + + if (dpd->DataType != PTP_DTC_UINT16) + return (GP_ERROR); + + if (dpd->FormFlag & PTP_DPFF_Enumeration) { + int i, valset = 0; + char buf[200]; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + for (i = 0; iFORM.Enum.NumberOfValues; i++) { + + if (dpd->FORM.Enum.SupportedValue[i].u16 == 0xFFFF) + strcpy (buf, _("infinite")); + else + sprintf (buf, _("%d mm"), dpd->FORM.Enum.SupportedValue[i].u16); + gp_widget_add_choice (*widget,buf); + if (dpd->CurrentValue.u16 == dpd->FORM.Enum.SupportedValue[i].u16) { + gp_widget_set_value (*widget, buf); + valset = 1; + } + } + if (!valset) { + sprintf (buf, _("%d mm"), dpd->CurrentValue.u16); + gp_widget_set_value (*widget, buf); + } + } + if (dpd->FormFlag & PTP_DPFF_Range) { + float value_float , start=0.0, end=0.0, step=0.0; + + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + start = dpd->FORM.Range.MinimumValue.u16/100.0; + end = dpd->FORM.Range.MaximumValue.u16/100.0; + step = dpd->FORM.Range.StepSize.u16/100.0; + gp_widget_set_range (*widget, start, end, step); + value_float = dpd->CurrentValue.u16/100.0; + gp_widget_set_value (*widget, &value_float); + } + return GP_OK; +} + +static int +_put_FocusDistance(CONFIG_PUT_ARGS) { + int val; + const char *value_str; + + if (dpd->FormFlag & PTP_DPFF_Range) { + float value_float; + + CR (gp_widget_get_value (widget, &value_float)); + propval->u16 = value_float; + return GP_OK; + } + /* else ENUMeration */ + CR (gp_widget_get_value (widget, &value_str)); + if (!strcmp (value_str, _("infinite"))) { + propval->u16 = 0xFFFF; + return GP_OK; + } + C_PARAMS (sscanf(value_str, _("%d mm"), &val)); + propval->u16 = val; + return GP_OK; +} + +static int +_get_Nikon_ShutterSpeed(CONFIG_GET_ARGS) { + int i, valset = 0; + char buf[200]; + int x,y; + + if (dpd->DataType != PTP_DTC_UINT32) + return (GP_ERROR); + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return (GP_ERROR); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + for (i = 0; iFORM.Enum.NumberOfValues; i++) { + if (dpd->FORM.Enum.SupportedValue[i].u32 == 0xffffffff) { + sprintf(buf,_("Bulb")); + goto choicefound; + } + if (dpd->FORM.Enum.SupportedValue[i].u32 == 0xfffffffe) { + sprintf(buf,_("x 200")); + goto choicefound; + } + if (dpd->FORM.Enum.SupportedValue[i].u32 == 0xfffffffd) { + sprintf(buf,_("Time")); + goto choicefound; + } + x = dpd->FORM.Enum.SupportedValue[i].u32>>16; + y = dpd->FORM.Enum.SupportedValue[i].u32&0xffff; + if (y == 1) { /* x/1 */ + sprintf (buf, "%d", x); + } else { + sprintf (buf, "%d/%d",x,y); + } +choicefound: + gp_widget_add_choice (*widget,buf); + if (dpd->CurrentValue.u32 == dpd->FORM.Enum.SupportedValue[i].u32) { + gp_widget_set_value (*widget, buf); + valset = 1; + } + } + if (!valset) { + x = dpd->CurrentValue.u32>>16; + y = dpd->CurrentValue.u32&0xffff; + if (y == 1) { + sprintf (buf, "%d",x); + } else { + sprintf (buf, "%d/%d",x,y); + } + gp_widget_set_value (*widget, buf); + } + return GP_OK; +} + +static int +_put_Nikon_ShutterSpeed(CONFIG_PUT_ARGS) { + int x,y; + const char *value_str; + + gp_widget_get_value (widget, &value_str); + + if (!strcmp(value_str,_("Bulb"))) { + propval->u32 = 0xffffffff; + return GP_OK; + } + if (!strcmp(value_str,_("x 200"))) { + propval->u32 = 0xfffffffe; + return GP_OK; + } + if (!strcmp(value_str,_("Time"))) { + propval->u32 = 0xfffffffd; + return GP_OK; + } + + if (strchr(value_str, '/')) { + if (2 != sscanf (value_str, "%d/%d", &x, &y)) + return GP_ERROR; + } else { + if (!sscanf (value_str, "%d", &x)) + return GP_ERROR; + y = 1; + } + propval->u32 = (x<<16) | y; + return GP_OK; +} + +static int +_get_Olympus_ShutterSpeed(CONFIG_GET_ARGS) { + int i, valset = 0; + char buf[200]; + int x,y; + + if (dpd->DataType != PTP_DTC_UINT32) + return (GP_ERROR); + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return (GP_ERROR); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + for (i = 0; iFORM.Enum.NumberOfValues; i++) { + if (dpd->FORM.Enum.SupportedValue[i].u32 == 0xfffffffc) { + sprintf(buf,_("Bulb")); + goto choicefound; + } + if (dpd->FORM.Enum.SupportedValue[i].u32 == 0xfffffffa) { + sprintf(buf,_("Composite")); + goto choicefound; + } + if (dpd->FORM.Enum.SupportedValue[i].u32 == 0xfffffffb) { + sprintf(buf,_("Time")); + goto choicefound; + } + + x = dpd->FORM.Enum.SupportedValue[i].u32>>16; + y = dpd->FORM.Enum.SupportedValue[i].u32&0xffff; + + if (((y % 10) == 0) && ((x % 10) == 0)) { + y /= 10; + x /= 10; + } + if (y == 1) { /* x/1 */ + sprintf (buf, "%d", x); + } else { + sprintf (buf, "%d/%d",x,y); + } + +choicefound: + + gp_widget_add_choice (*widget,buf); + if (dpd->CurrentValue.u32 == dpd->FORM.Enum.SupportedValue[i].u32) { + gp_widget_set_value (*widget, buf); + valset = 1; + } + } + if (!valset) { + x = dpd->CurrentValue.u32>>16; + y = dpd->CurrentValue.u32&0xffff; + if (y == 1) { + sprintf (buf, "%d",x); + } else { + sprintf (buf, "%d/%d",x,y); + } + gp_widget_set_value (*widget, buf); + } + return GP_OK; +} + +static int +_put_Olympus_ShutterSpeed(CONFIG_PUT_ARGS) { + int x,y; + const char *value_str; + + gp_widget_get_value (widget, &value_str); + + if (!strcmp(value_str,_("Bulb"))) { + propval->u32 = 0xfffffffc; + return GP_OK; + } + if (!strcmp(value_str,_("Composite"))) { + propval->u32 = 0xfffffffa; + return GP_OK; + } + if (!strcmp(value_str,_("Time"))) { + propval->u32 = 0xfffffffb; + return GP_OK; + } + + if (strchr(value_str, '/')) { + if (2 != sscanf (value_str, "%d/%d", &x, &y)) + return GP_ERROR; + } else { + if (!sscanf (value_str, "%d", &x)) + return GP_ERROR; + y = 10; + x *=10; + } + + propval->u32 = (x<<16) | y; + return GP_OK; +} + + +static int +_get_Ricoh_ShutterSpeed(CONFIG_GET_ARGS) { + int i, valset = 0; + char buf[200]; + int x,y; + + if (dpd->DataType != PTP_DTC_UINT64) + return GP_ERROR; + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return GP_ERROR; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + for (i = 0; iFORM.Enum.NumberOfValues; i++) { + if (dpd->FORM.Enum.SupportedValue[i].u64 == 0) { + sprintf(buf,_("Auto")); + goto choicefound; + } + x = dpd->FORM.Enum.SupportedValue[i].u64>>32; + y = dpd->FORM.Enum.SupportedValue[i].u64&0xffffffff; + if (y == 1) { + sprintf (buf, "1/%d", x); + } else { + sprintf (buf, "%d/%d",y,x); + } +choicefound: + gp_widget_add_choice (*widget,buf); + if (dpd->CurrentValue.u64 == dpd->FORM.Enum.SupportedValue[i].u64) { + gp_widget_set_value (*widget, buf); + valset = 1; + } + } + if (!valset) { + x = dpd->CurrentValue.u64>>32; + y = dpd->CurrentValue.u64&0xffffffff; + if (y == 1) { + sprintf (buf, "1/%d",x); + } else { + sprintf (buf, "%d/%d",y,x); + } + gp_widget_set_value (*widget, buf); + } + return GP_OK; +} + +static int +_put_Ricoh_ShutterSpeed(CONFIG_PUT_ARGS) { + int x,y; + const char *value_str; + + gp_widget_get_value (widget, &value_str); + + if (!strcmp(value_str,_("Auto"))) { + propval->u64 = 0; + return GP_OK; + } + + if (strchr(value_str, '/')) { + if (2 != sscanf (value_str, "%d/%d", &y, &x)) + return GP_ERROR; + } else { + if (!sscanf (value_str, "%d", &x)) + return GP_ERROR; + y = 1; + } + propval->u64 = ((uint64_t)x<<32) | y; + return GP_OK; +} + +/* This list is taken from Sony A58... fill in more if your Sony has more */ +static struct sonyshutter { + int dividend, divisor; +} sony_shuttertable[] = { + {30,1}, + {25,1}, + {20,1}, + {15,1}, + {13,1}, + {10,1}, + {8,1}, + {6,1}, + {5,1}, + {4,1}, + {32,10}, + {25,10}, + {2,1}, + {16,10}, + {13,10}, + {1,1}, + {8,10}, + {6,10}, + {5,10}, + {4,10}, + {1,3}, + {1,4}, + {1,5}, + {1,6}, + {1,8}, + {1,10}, + {1,13}, + {1,15}, + {1,20}, + {1,25}, + {1,30}, + {1,40}, + {1,50}, + {1,60}, + {1,80}, + {1,100}, + {1,125}, + {1,160}, + {1,200}, + {1,250}, + {1,320}, + {1,400}, + {1,500}, + {1,640}, + {1,800}, + {1,1000}, + {1,1250}, + {1,1600}, + {1,2000}, + {1,2500}, + {1,3200}, + {1,4000}, + /* A7 series */ + {1,5000}, + {1,6400}, + {1,8000}, + /* A9, some RX series cameras */ + {1,10000}, + {1,12500}, + {1,16000}, + {1,20000}, + {1,25000}, + {1,32000}, +}; + +static int +_get_Sony_ShutterSpeed(CONFIG_GET_ARGS) { + int x,y; + char buf[20]; + + if (dpd->DataType != PTP_DTC_UINT32) + return GP_ERROR; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + if (dpd->FormFlag & PTP_DPFF_Enumeration) { + GP_LOG_E("there is a enum, support it! ... report to gphoto-devel list!\n"); + } else { + unsigned int i; + /* use our static table */ + for (i=0;iCurrentValue.u32 == 0) { + strcpy(buf,_("Bulb")); + } else { + x = dpd->CurrentValue.u32>>16; + y = dpd->CurrentValue.u32&0xffff; + if (y == 1) + sprintf (buf, "%d",x); + else + sprintf (buf, "%d/%d",x,y); + } + gp_widget_set_value (*widget, buf); + return GP_OK; +} + +static int +_put_Sony_ShutterSpeed(CONFIG_PUT_ARGS) { + int x,y,a,b; + const char *val; + float old,new; + PTPPropertyValue value; + uint32_t new32, origval; + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + time_t start,end; + + CR (gp_widget_get_value (widget, &val)); + + if (dpd->CurrentValue.u32 == 0) { + x = 65536; y = 1; + } else { + x = dpd->CurrentValue.u32>>16; + y = dpd->CurrentValue.u32&0xffff; + } + old = ((float)x)/(float)y; + + if (!strcmp(val,_("Bulb"))) { + new32 = 0; + x = 65536; y = 1; + } else { + if (2!=sscanf(val, "%d/%d", &x, &y)) { + if (1==sscanf(val,"%d", &x)) { + y = 1; + } else { + return GP_ERROR_BAD_PARAMETERS; + } + } + new32 = (x<<16)|y; + } + new = ((float)x)/(float)y; + do { + origval = dpd->CurrentValue.u32; + if (old == new) + break; + if (old > new) + value.u8 = 0x01; + else + value.u8 = 0xff; + a = dpd->CurrentValue.u32>>16; + b = dpd->CurrentValue.u32&0xffff; + C_PTP_REP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_ShutterSpeed, &value, PTP_DTC_UINT8 )); + + GP_LOG_D ("shutterspeed value is (0x%x vs target 0x%x)", origval, new32); + + /* we tell the camera to do it, but it takes around 0.7 seconds for the SLT-A58 */ + time(&start); + do { + C_PTP_REP (ptp_sony_getalldevicepropdesc (params)); + C_PTP_REP (ptp_generic_getdevicepropdesc (params, PTP_DPC_SONY_ShutterSpeed, dpd)); + + if (dpd->CurrentValue.u32 == new32) { + GP_LOG_D ("Value matched!"); + break; + } + a = dpd->CurrentValue.u32>>16; + b = dpd->CurrentValue.u32&0xffff; + if ((a*y != 0) && (a*y == b*x)) { + GP_LOG_D ("Value matched via math(tm) %d/%d == %d/%d!",x,y,a,b); + break; + } + + if (dpd->CurrentValue.u32 != origval) { + GP_LOG_D ("value changed (0x%x vs 0x%x vs target 0x%x), next step....", dpd->CurrentValue.u32, origval, new32); + break; + } + + usleep(200*1000); + + time(&end); + } while (end-start <= 3); + + if (dpd->CurrentValue.u32 == new32) { + GP_LOG_D ("Value matched!"); + break; + } + if ((a*y != 0) && (a*y == b*x)) { + GP_LOG_D ("Value matched via math(tm) %d/%d == %d/%d!",x,y,a,b); + break; + } + if (dpd->CurrentValue.u32 == origval) { + GP_LOG_D ("value did not change (0x%x vs 0x%x vs target 0x%x), not good ...", dpd->CurrentValue.u32, origval, new32); + break; + } + } while (1); + propval->u32 = new; + return GP_OK; +} + + +static int +_get_Nikon_FocalLength(CONFIG_GET_ARGS) { + char len[20]; + + if (dpd->DataType != PTP_DTC_UINT32) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + sprintf (len, "%.0f mm", dpd->CurrentValue.u32 * 0.01); + gp_widget_set_value (*widget, len); + return (GP_OK); +} + +static int +_get_Nikon_ApertureAtFocalLength(CONFIG_GET_ARGS) { + char len[20]; + + if (dpd->DataType != PTP_DTC_UINT16) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + sprintf (len, "%.0f", dpd->CurrentValue.u16 * 0.01); + gp_widget_set_value (*widget, len); + return (GP_OK); +} + +static int +_get_Olympus_Aperture(CONFIG_GET_ARGS) { + char len[20]; + int i; + + if (dpd->DataType != PTP_DTC_UINT16) + return GP_ERROR; + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return GP_ERROR; + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + for (i=0;iFORM.Enum.NumberOfValues; i++) { + sprintf (len, "%.1f", dpd->FORM.Enum.SupportedValue[i].u16 * 0.1); + gp_widget_add_choice (*widget, len); + } + sprintf (len, "%.1f", dpd->CurrentValue.u16 * 0.1); + gp_widget_set_value (*widget, len); + return GP_OK; +} + +static int +_put_Olympus_Aperture(CONFIG_PUT_ARGS) { + char *val; + float f; + + gp_widget_get_value (widget, &val); + sscanf (val, "%f", &f); + propval->u16 = 10*f; + return GP_OK; +} + +static int +_get_Nikon_LightMeter(CONFIG_GET_ARGS) { + char meter[20]; + + if (dpd->DataType != PTP_DTC_INT8) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + sprintf (meter, "%.1f", dpd->CurrentValue.i8 * 0.08333); + gp_widget_set_value (*widget, meter); + return (GP_OK); +} + + +static int +_get_Nikon_FlashExposureCompensation(CONFIG_GET_ARGS) { + float value_float; + + if (!(dpd->FormFlag & PTP_DPFF_Range)) + return (GP_ERROR); + if (dpd->DataType != PTP_DTC_INT8) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_set_range (*widget, + dpd->FORM.Range.MinimumValue.i8/6.0, + dpd->FORM.Range.MaximumValue.i8/6.0, + dpd->FORM.Range.StepSize.i8/6.0 + ); + value_float = dpd->CurrentValue.i8/6.0; + gp_widget_set_value (*widget, &value_float); + return (GP_OK); +} + +static int +_put_Nikon_FlashExposureCompensation(CONFIG_PUT_ARGS) { + float val; + + CR (gp_widget_get_value(widget, &val)); + propval->i8 = 6.0*val; + return GP_OK; +} + +static int +_get_Nikon_LowLight(CONFIG_GET_ARGS) { + float value_float; + + if (!(dpd->FormFlag & PTP_DPFF_Range)) + return (GP_ERROR); + if (dpd->DataType != PTP_DTC_UINT8) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_set_range (*widget, + dpd->FORM.Range.MinimumValue.u8, + dpd->FORM.Range.MaximumValue.u8, + dpd->FORM.Range.StepSize.u8 + ); + value_float = dpd->CurrentValue.u8; + gp_widget_set_value (*widget, &value_float); + return (GP_OK); +} + +static int +_get_Canon_EOS_WBAdjust(CONFIG_GET_ARGS) { + int i, valset = 0; + char buf[200]; + + if (dpd->DataType != PTP_DTC_INT32) + return (GP_ERROR); + if (!(dpd->FormFlag & PTP_DPFF_Enumeration)) + return (GP_ERROR); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + for (i = 0; iFORM.Enum.NumberOfValues; i++) { + sprintf (buf, "%d", dpd->FORM.Enum.SupportedValue[i].i32); + gp_widget_add_choice (*widget,buf); + if (dpd->CurrentValue.i32 == dpd->FORM.Enum.SupportedValue[i].i32) { + gp_widget_set_value (*widget, buf); + valset = 1; + } + } + if (!valset) { + sprintf (buf, "%d",dpd->CurrentValue.i32); + gp_widget_set_value (*widget, buf); + } + return GP_OK; +} + +static int +_put_Canon_EOS_WBAdjust(CONFIG_PUT_ARGS) { + int x; + const char *value_str; + + gp_widget_get_value (widget, &value_str); + if (!sscanf (value_str, "%d", &x)) + return GP_ERROR; + propval->i32 = x; + return GP_OK; +} + +static struct deviceproptableu8 nikon_liveviewaf[] = { + { N_("Face-priority AF"), 0, 0 }, + { N_("Wide-area AF"), 1, 0 }, + { N_("Normal-area AF"), 2, 0 }, + { N_("Subject-tracking AF"), 3, 0 }, +}; +GENERIC8TABLE(Nikon_LiveViewAFU,nikon_liveviewaf) +static struct deviceproptablei8 nikon_liveviewafi[] = { + { N_("Face-priority AF"), 0, 0 }, + { N_("Wide-area AF"), 1, 0 }, + { N_("Normal-area AF"), 2, 0 }, + { N_("Subject-tracking AF"), 3, 0 }, +}; +GENERICI8TABLE(Nikon_LiveViewAFI,nikon_liveviewafi) + +static struct deviceproptableu8 nikon_liveviewaffocus[] = { + { N_("Single-servo AF"), 0, 0 }, + { N_("Full-time-servo AF"), 2, 0 }, + { N_("Manual Focus"), 4, 0 }, +}; +GENERIC8TABLE(Nikon_LiveViewAFFocus,nikon_liveviewaffocus) + +static struct deviceproptableu8 nikon_afareaillum[] = { + { N_("Auto"), 0, 0 }, + { N_("Off"), 1, 0 }, + { N_("On"), 2, 0 }, +}; +GENERIC8TABLE(Nikon_AFAreaIllum,nikon_afareaillum) + + +static struct deviceproptableu8 nikon_aelaflmode[] = { + { N_("AE/AF Lock"), 0x00, 0 }, + { N_("AE Lock only"), 0x01, 0 }, + { N_("AF Lock Only"), 0x02, 0 }, + { N_("AF Lock Hold"), 0x03, 0 }, + { N_("AF On"), 0x04, 0 }, + { N_("Flash Level Lock"),0x05, 0 }, +}; +GENERIC8TABLE(Nikon_AELAFLMode,nikon_aelaflmode) + +static struct deviceproptableu8 nikon_lcdofftime[] = { + { N_("10 seconds"), 0x00, 0 }, + { N_("20 seconds"), 0x01, 0 }, + { N_("1 minute"), 0x02, 0 }, + { N_("5 minutes"), 0x03, 0 }, + { N_("10 minutes"), 0x04, 0 }, + { N_("5 seconds"), 0x05, 0 }, /* d80 observed */ +}; +GENERIC8TABLE(Nikon_LCDOffTime,nikon_lcdofftime) + +static struct deviceproptableu8 nikon_recordingmedia[] = { + { N_("Card"), 0x00, 0 }, + { N_("SDRAM"), 0x01, 0 }, +}; +GENERIC8TABLE(Nikon_RecordingMedia,nikon_recordingmedia) + +static struct deviceproptableu8 nikon_selftimerdelay[] = { + { N_("2 seconds"), 0x00, 0 }, + { N_("5 seconds"), 0x01, 0 }, + { N_("10 seconds"), 0x02, 0 }, + { N_("20 seconds"), 0x03, 0 }, +}; +GENERIC8TABLE(Nikon_SelfTimerDelay,nikon_selftimerdelay) + +static struct deviceproptableu8 nikon_centerweight[] = { + { N_("6 mm"), 0x00, 0 }, + { N_("8 mm"), 0x01, 0 }, + { N_("10 mm"), 0x02, 0 }, + { N_("12 mm"), 0x03, 0 }, + { N_("Average"),0x04, 0 }, /* ? */ +}; +GENERIC8TABLE(Nikon_CenterWeight,nikon_centerweight) + +static struct deviceproptableu8 nikon_d850_centerweight[] = { + { N_("8 mm"), 0x00, 0 }, + { N_("12 mm"), 0x01, 0 }, + { N_("15 mm"), 0x02, 0 }, + { N_("20 mm"), 0x03, 0 }, + { N_("Average"),0x04, 0 }, +}; +GENERIC8TABLE(Nikon_D850_CenterWeight,nikon_d850_centerweight) + +static struct deviceproptableu8 nikon_flashshutterspeed[] = { + { N_("1/60"), 0x00, 0 }, + { N_("1/30"), 0x01, 0 }, + { N_("1/15"), 0x02, 0 }, + { N_("1/8"), 0x03, 0 }, + { N_("1/4"), 0x04, 0 }, + { N_("1/2"), 0x05, 0 }, + { N_("1"), 0x06, 0 }, + { N_("2"), 0x07, 0 }, + { N_("4"), 0x08, 0 }, + { N_("8"), 0x09, 0 }, + { N_("15"), 0x0a, 0 }, + { N_("30"), 0x0b, 0 }, +}; +GENERIC8TABLE(Nikon_FlashShutterSpeed,nikon_flashshutterspeed) + +static struct deviceproptablei16 fuji_shutterspeed[] = { + { N_("bulb"), -31, 0 }, + { N_("30s"), -30, 0 }, + { N_("25s"), -28, 0 }, + { N_("20s"), -26, 0 }, + { N_("15s"), -24, 0 }, + { N_("13s"), -22, 0 }, + { N_("10s"), -20, 0 }, + { N_("8s"), -18, 0 }, + { N_("6s"), -16, 0 }, + { N_("5s"), -14, 0 }, + { N_("4s"), -12, 0 }, + { N_("3s"), -10, 0 }, + { N_("2.5s"), -8, 0 }, + { N_("2s"), -6, 0 }, + { N_("1.6s"), -4, 0 }, + { N_("1.3s"), -2, 0 }, + { N_("1s"), 0, 0 }, + { N_("1/1.3s"), 2, 0 }, + { N_("1/1.6s"), 4, 0 }, + { N_("1/2s"), 6, 0 }, + { N_("1/2.5s"), 8, 0 }, + { N_("1/3s"), 10, 0 }, + { N_("1/4s"), 12, 0 }, + { N_("1/5s"), 14, 0 }, + { N_("1/6s"), 16, 0 }, + { N_("1/8s"), 18, 0 }, + { N_("1/10s"), 20, 0 }, + { N_("1/13s"), 22, 0 }, + { N_("1/15s"), 24, 0 }, + { N_("1/20s"), 26, 0 }, + { N_("1/25s"), 28, 0 }, + { N_("1/30s"), 30, 0 }, + { N_("1/40s"), 32, 0 }, + { N_("1/50s"), 34, 0 }, + { N_("1/60s"), 36, 0 }, + { N_("1/80s"), 38, 0 }, + { N_("1/100s"), 40, 0 }, + { N_("1/125s"), 42, 0 }, + { N_("1/160s"), 44, 0 }, + { N_("1/200s"), 46, 0 }, + { N_("1/250s"), 48, 0 }, + { N_("1/320s"), 50, 0 }, + { N_("1/400s"), 52, 0 }, + { N_("1/500s"), 54, 0 }, + { N_("1/640s"), 56, 0 }, + { N_("1/800s"), 58, 0 }, + { N_("1/1000s"),60, 0 }, + { N_("1/1250s"),62, 0 }, + { N_("1/1250s"),62, 0 }, + { N_("1/1600s"),64, 0 }, + { N_("1/2000s"),66, 0 }, + { N_("1/2500s"),68, 0 }, + { N_("1/3200s"),70, 0 }, + { N_("1/4000s"),72, 0 }, + { N_("1/5000s"),74, 0 }, + { N_("1/6400s"),76, 0 }, + { N_("1/8000s"),78, 0 }, +}; +GENERICI16TABLE(Fuji_ShutterSpeed,fuji_shutterspeed) + +static struct deviceproptableu8 nikon_remotetimeout[] = { + { N_("1 minute"), 0x00, 0 }, + { N_("5 minutes"), 0x01, 0 }, + { N_("10 minutes"), 0x02, 0 }, + { N_("15 minutes"), 0x03, 0 }, +}; +GENERIC8TABLE(Nikon_RemoteTimeout,nikon_remotetimeout) + +static struct deviceproptableu8 nikon_optimizeimage[] = { + { N_("Normal"), 0x00, 0 }, + { N_("Vivid"), 0x01, 0 }, + { N_("Sharper"), 0x02, 0 }, + { N_("Softer"), 0x03, 0 }, + { N_("Direct Print"), 0x04, 0 }, + { N_("Portrait"), 0x05, 0 }, + { N_("Landscape"), 0x06, 0 }, + { N_("Custom"), 0x07, 0 }, +}; +GENERIC8TABLE(Nikon_OptimizeImage,nikon_optimizeimage) + +static struct deviceproptableu8 nikon_sharpening[] = { + { N_("Auto"), 0x00, 0 }, + { N_("Normal"), 0x01, 0 }, + { N_("Low"), 0x02, 0 }, + { N_("Medium Low"), 0x03, 0 }, + { N_("Medium high"), 0x04, 0 }, + { N_("High"), 0x05, 0 }, + { N_("None"), 0x06, 0 }, +}; +GENERIC8TABLE(Nikon_Sharpening,nikon_sharpening) + +static struct deviceproptableu8 nikon_tonecompensation[] = { + { N_("Auto"), 0x00, 0 }, + { N_("Normal"), 0x01, 0 }, + { N_("Low contrast"), 0x02, 0 }, + { N_("Medium Low"), 0x03, 0 }, + { N_("Medium High"), 0x04, 0 }, + { N_("High control"), 0x05, 0 }, + { N_("Custom"), 0x06, 0 }, +}; +GENERIC8TABLE(Nikon_ToneCompensation,nikon_tonecompensation) + +static struct deviceproptableu8 canon_afdistance[] = { + { N_("Manual"), 0x00, 0 }, + { N_("Auto"), 0x01, 0 }, + { N_("Unknown"), 0x02, 0 }, + { N_("Zone Focus (Close-up)"), 0x03, 0 }, + { N_("Zone Focus (Very Close)"),0x04, 0 }, + { N_("Zone Focus (Close)"), 0x05, 0 }, + { N_("Zone Focus (Medium)"), 0x06, 0 }, + { N_("Zone Focus (Far)"), 0x07, 0 }, + { N_("Zone Focus (Reserved 1)"),0x08, 0 }, + { N_("Zone Focus (Reserved 2)"),0x09, 0 }, + { N_("Zone Focus (Reserved 3)"),0x0a, 0 }, + { N_("Zone Focus (Reserved 4)"),0x0b, 0 }, +}; +GENERIC8TABLE(Canon_AFDistance,canon_afdistance) + + +/* Focus Modes as per PTP standard. |0x8000 means vendor specific. */ +static struct deviceproptableu16 focusmodes[] = { + { N_("Undefined"), 0x0000, 0 }, + { N_("Manual"), 0x0001, 0 }, + { N_("Automatic"), 0x0002, 0 }, + { N_("Automatic Macro"),0x0003, 0 }, + { N_("AF-S"), 0x8010, PTP_VENDOR_NIKON }, + { N_("AF-C"), 0x8011, PTP_VENDOR_NIKON }, + { N_("AF-A"), 0x8012, PTP_VENDOR_NIKON }, + { N_("Single-Servo AF"),0x8001, PTP_VENDOR_FUJI }, + { N_("Continuous-Servo AF"),0x8002, PTP_VENDOR_FUJI }, + + { N_("C-AF"), 0x8002, PTP_VENDOR_GP_OLYMPUS_OMD }, + { N_("S-AF+MF"), 0x8001, PTP_VENDOR_GP_OLYMPUS_OMD }, + + { N_("AF-A"), 0x8005, PTP_VENDOR_SONY }, + { N_("AF-C"), 0x8004, PTP_VENDOR_SONY }, + { N_("DMF"), 0x8006, PTP_VENDOR_SONY }, + +}; +GENERIC16TABLE(FocusMode,focusmodes) + +/* Sony specific, we need to wait for it settle (around 1 second), otherwise we get trouble later on */ +static int +_put_Sony_FocusMode(CONFIG_PUT_ARGS) { + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + int ret; + PTPDevicePropDesc dpd2; + time_t start,end; + + ret = _put_FocusMode(CONFIG_PUT_NAMES); + if (ret != GP_OK) return ret; + start = time(NULL); + C_PTP_REP (ptp_generic_setdevicepropvalue (params, PTP_DPC_FocusMode, propval, PTP_DTC_UINT16)); + while (1) { + C_PTP_REP (ptp_sony_getalldevicepropdesc (params)); + C_PTP_REP (ptp_generic_getdevicepropdesc (params, PTP_DPC_FocusMode, &dpd2)); + if (dpd2.CurrentValue.u16 == propval->u16) + break; + end = time(NULL); + if (end-start >= 3) { + GP_LOG_E("failed to change variable to %d (current %d)\n", propval->u16, dpd2.CurrentValue.u16); + break; + } + } + return GP_OK; +} + + +static struct deviceproptableu16 eos_focusmodes[] = { + { N_("One Shot"), 0x0000, 0 }, + { N_("AI Servo"), 0x0001, 0 }, + { N_("AI Focus"), 0x0002, 0 }, + { N_("Manual"), 0x0003, 0 }, +}; +GENERIC16TABLE(Canon_EOS_FocusMode,eos_focusmodes) + +static struct deviceproptableu16 eos_quickreviewtime[] = { + { N_("None"), 0x0000, 0 }, + { N_("2 seconds"), 0x0002, 0 }, + { N_("4 seconds"), 0x0004, 0 }, + { N_("8 seconds"), 0x0008, 0 }, + { N_("Hold"), 0x00ff, 0 }, +}; +GENERIC16TABLE(Canon_EOS_QuickReviewTime,eos_quickreviewtime) + + +static struct deviceproptableu8 canon_whitebalance[] = { + { N_("Auto"), 0, 0 }, + { N_("Daylight"), 1, 0 }, + { N_("Cloudy"), 2, 0 }, + { N_("Tungsten"), 3, 0 }, + { N_("Fluorescent"), 4, 0 }, + { N_("Custom"), 6, 0 }, + { N_("Fluorescent H"), 7, 0 }, + { N_("Color Temperature"), 9, 0 }, + { N_("Custom Whitebalance PC-1"), 10, 0 }, + { N_("Custom Whitebalance PC-2"), 11, 0 }, + { N_("Custom Whitebalance PC-3"), 12, 0 }, + { N_("Missing Number"), 13, 0 }, + /*{ N_("Flourescent H"), 14, 0 }, ... dup? */ +}; +GENERIC8TABLE(Canon_WhiteBalance,canon_whitebalance) + +/* confirmed against EOS 450D - Marcus */ +/* I suspect every EOS uses a different table :( */ +static struct deviceproptableu8 canon_eos_whitebalance[] = { + { N_("Auto"), 0, 0 }, + { N_("Daylight"), 1, 0 }, + { N_("Cloudy"), 2, 0 }, + { N_("Tungsten"), 3, 0 }, + { N_("Fluorescent"), 4, 0 }, + { N_("Flash"), 5, 0 }, + { N_("Manual"), 6, 0 }, + {"Unknown 7", 7, 0 }, + { N_("Shadow"), 8, 0 }, + { N_("Color Temperature"),9, 0 }, /* from eos 40d / 5D Mark II dump */ + { "Unknown 10", 10, 0 }, + { "Unknown 11", 11, 0 }, + { N_("Custom WB 2"), 15, 0 }, + { N_("Custom WB 3"), 16, 0 }, + { N_("Custom WB 4"), 18, 0 }, + { N_("Custom WB 5"), 19, 0 }, + { N_("AWB White"), 23, 0 }, +}; +GENERIC8TABLE(Canon_EOS_WhiteBalance,canon_eos_whitebalance) + + +static struct deviceproptableu8 canon_expcompensation[] = { + { N_("Factory Default"),0xff, 0 }, + { "+3", 0x00, 0 }, + { "+2 2/3", 0x03, 0 }, + { "+2 1/2", 0x04, 0 }, + { "+2 1/3", 0x05, 0 }, + { "+2", 0x08, 0 }, + { "+1 2/3", 0x0b, 0 }, + { "+1 1/2", 0x0c, 0 }, + { "+1 1/3", 0x0d, 0 }, + { "+1", 0x10, 0 }, + { "+2/3", 0x13, 0 }, + { "+1/2", 0x14, 0 }, + { "+1/3", 0x15, 0 }, + { "0", 0x18, 0 }, + { "-1/3", 0x1b, 0 }, + { "-1/2", 0x1c, 0 }, + { "-2/3", 0x1d, 0 }, + { "-1", 0x20, 0 }, + { "-1 1/3", 0x23, 0 }, + { "-1 1/2", 0x24, 0 }, + { "-1 2/3", 0x25, 0 }, + { "-2", 0x28, 0 }, + { "-2 1/3", 0x2b, 0 }, + { "-2 1/2", 0x2c, 0 }, + { "-2 2/3", 0x2d, 0 }, + { "-3", 0x30, 0 }, +}; +GENERIC8TABLE(Canon_ExpCompensation,canon_expcompensation) + +static struct deviceproptableu8 canon_expcompensation2[] = { + { "5", 0x28, 0 }, + { "4.6", 0x25, 0 }, + { "4.5", 0x24, 0 }, + { "4.3", 0x23, 0 }, + { "4", 0x20, 0 }, + { "3.6", 0x1d, 0 }, + { "3.5", 0x1c, 0 }, + { "3.3", 0x1b, 0 }, + { "3", 0x18, 0 }, + { "2.6", 0x15, 0 }, + { "2.5", 0x14, 0 }, + { "2.3", 0x13, 0 }, + { "2", 0x10, 0 }, + { "1.6", 0x0d, 0 }, + { "1.5", 0x0c, 0 }, + { "1.3", 0x0b, 0 }, + { "1", 0x08, 0 }, + { "1.0", 0x08, 0 }, + { "0.6", 0x05, 0 }, + { "0.5", 0x04, 0 }, + { "0.3", 0x03, 0 }, + { "0", 0x00, 0 }, + { "-0.3", 0xfd, 0 }, + { "-0.5", 0xfc, 0 }, + { "-0.6", 0xfb, 0 }, + { "-1", 0xf8, 0 }, + { "-1.0", 0xf8, 0 }, + { "-1.3", 0xf5, 0 }, + { "-1.5", 0xf4, 0 }, + { "-1.6", 0xf3, 0 }, + { "-2", 0xf0, 0 }, + { "-2.3", 0xed, 0 }, + { "-2.5", 0xec, 0 }, + { "-2.6", 0xeb, 0 }, + { "-3", 0xe8, 0 }, + { "-3.3", 0xe5, 0 }, + { "-3.5", 0xe4, 0 }, + { "-3.6", 0xe3, 0 }, + { "-4", 0xe0, 0 }, + { "-4.3", 0xdd, 0 }, /*Canon EOS 5D Mark III*/ + { "-4.5", 0xdc, 0 }, + { "-4.6", 0xdb, 0 }, + { "-5", 0xd8, 0 }, +}; +GENERIC8TABLE(Canon_ExpCompensation2,canon_expcompensation2) + + +static struct deviceproptableu16 canon_photoeffect[] = { + { N_("Off"), 0, 0 }, + { N_("Vivid"), 1, 0 }, + { N_("Neutral"), 2, 0 }, + { N_("Low sharpening"), 3, 0 }, + { N_("Sepia"), 4, 0 }, + { N_("Black & white"), 5, 0 }, +}; +GENERIC16TABLE(Canon_PhotoEffect,canon_photoeffect) + + +static struct deviceproptableu16 canon_aperture[] = { + { N_("implicit auto"), 0x0, 0 }, + { N_("auto"), 0xffff, 0 }, + { "1", 0x0008, 0 }, + { "1.1", 0x000b, 0 }, + { "1.2", 0x000c, 0 }, + { "1.2", 0x000d, 0 }, /* (1/3)? */ + { "1.4", 0x0010, 0 }, + { "1.6", 0x0013, 0 }, + { "1.8", 0x0014, 0 }, + { "1.8", 0x0015, 0 }, /* (1/3)? */ + { "2", 0x0018, 0 }, + { "2.2", 0x001b, 0 }, + { "2.5", 0x001c, 0 }, + { "2.5", 0x001d, 0 }, /* (1/3)? */ + { "2.8", 0x0020, 0 }, + { "3.2", 0x0023, 0 }, + { "3.5", 0x0024, 0 }, + { "3.5", 0x0025, 0 }, /* (1/3)? */ + { "4", 0x0028, 0 }, + { "4.5", 0x002c, 0 }, + { "4.5", 0x002b, 0 }, /* (1/3)? */ + { "5", 0x002d, 0 }, /* 5.6 (1/3)??? */ + { "5.6", 0x0030, 0 }, + { "6.3", 0x0033, 0 }, + { "6.7", 0x0034, 0 }, + { "7.1", 0x0035, 0 }, + { "8", 0x0038, 0 }, + { "9", 0x003b, 0 }, + { "9.5", 0x003c, 0 }, + { "10", 0x003d, 0 }, + { "11", 0x0040, 0 }, + { "13", 0x0043, 0 }, /* (1/3)? */ + { "13", 0x0044, 0 }, + { "14", 0x0045, 0 }, + { "16", 0x0048, 0 }, + { "18", 0x004b, 0 }, + { "19", 0x004c, 0 }, + { "20", 0x004d, 0 }, + { "22", 0x0050, 0 }, + { "25", 0x0053, 0 }, + { "27", 0x0054, 0 }, + { "29", 0x0055, 0 }, + { "32", 0x0058, 0 }, + { "36", 0x005b, 0 }, + { "38", 0x005c, 0 }, + { "40", 0x005d, 0 }, + { "45", 0x0060, 0 }, + { "51", 0x0063, 0 }, + { "54", 0x0064, 0 }, + { "57", 0x0065, 0 }, + { "64", 0x0068, 0 }, + { "72", 0x006b, 0 }, + { "76", 0x006c, 0 }, + { "81", 0x006d, 0 }, + { "91", 0x0070, 0 }, +}; +GENERIC16TABLE(Canon_Aperture,canon_aperture) + +static struct deviceproptableu16 fuji_aperture[] = { + { "1.8", 10, 0 }, + { "2", 12, 0 }, + { "2.2", 14, 0 }, + { "2.5", 16, 0 }, + { "2.8", 18, 0 }, + { "3.2", 20, 0 }, + { "3.5", 22, 0 }, + { "4", 24, 0 }, + { "4.5", 26, 0 }, + { "5", 28, 0 }, + { "5.6", 30, 0 }, + { "6.3", 32, 0 }, + { "7.1", 34, 0 }, + { "8", 36, 0 }, + { "9", 38, 0 }, + { "10", 40, 0 }, + { "11", 42, 0 }, + { "13", 44, 0 }, + { "14", 46, 0 }, + { "16", 48, 0 }, + { "18", 50, 0 }, + { "20", 52, 0 }, + { "22", 54, 0 }, + { "25", 56, 0 }, + { "29", 58, 0 }, + { "32", 60, 0 }, + { "36", 62, 0 }, +}; +GENERIC16TABLE(Fuji_Aperture,fuji_aperture) + + + +static struct deviceproptableu8 nikon_bracketset[] = { + { N_("AE & Flash"), 0, 0 }, + { N_("AE only"), 1, 0 }, + { N_("Flash only"), 2, 0 }, + { N_("WB bracketing"), 3, 0 }, + { N_("ADL bracketing"), 4, 0 }, +}; +GENERIC8TABLE(Nikon_BracketSet,nikon_bracketset) + +static struct deviceproptableu8 nikon_cleansensor[] = { + { N_("Off"), 0, 0 }, + { N_("Startup"), 1, 0 }, + { N_("Shutdown"), 2, 0 }, + { N_("Startup and Shutdown"), 3, 0 }, +}; +GENERIC8TABLE(Nikon_CleanSensor,nikon_cleansensor) + +static struct deviceproptableu8 nikon_flickerreduction[] = { + { N_("50 Hz"), 0, 0 }, + { N_("60 Hz"), 1, 0 }, + { N_("Auto"), 2, 0 }, +}; +GENERIC8TABLE(Nikon_FlickerReduction,nikon_flickerreduction) + +static struct deviceproptableu8 nikon_remotemode[] = { + { N_("Delayed Remote"), 0, 0 }, + { N_("Quick Response"), 1, 0 }, + { N_("Remote Mirror Up"), 2, 0 }, +}; +GENERIC8TABLE(Nikon_RemoteMode,nikon_remotemode) + +static struct deviceproptableu8 nikon_applicationmode[] = { + { N_("Application Mode 0"), 0, 0 }, + { N_("Application Mode 1"), 1, 0 }, +}; +GENERIC8TABLE(Nikon_ApplicationMode,nikon_applicationmode) + +static struct deviceproptableu8 nikon_saturation[] = { + { N_("Normal"), 0, 0 }, + { N_("Moderate"), 1, 0 }, + { N_("Enhanced"), 2, 0 }, +}; +GENERIC8TABLE(Nikon_Saturation,nikon_saturation) + + +static struct deviceproptableu8 nikon_bracketorder[] = { + { N_("MTR > Under"), 0, 0 }, + { N_("Under > MTR"), 1, 0 }, +}; +GENERIC8TABLE(Nikon_BracketOrder,nikon_bracketorder) + +/* There is a table for it in the internet */ +static struct deviceproptableu8 nikon_lensid[] = { + {N_("Unknown"), 0, 0}, + {"Sigma 70-300mm 1:4-5.6 D APO Macro", 38, 0}, + {"AF Nikkor 80-200mm 1:2.8 D ED", 83, 0}, + {"AF Nikkor 50mm 1:1.8 D", 118, 0}, + {"AF-S Nikkor 18-70mm 1:3.5-4.5G ED DX", 127, 0}, + {"AF-S Nikkor 18-200mm 1:3.5-5.6 GED DX VR", 139, 0}, + {"AF-S Nikkor 24-70mm 1:2.8G ED DX", 147, 0}, + {"AF-S Nikkor 18-55mm 1:3.5-F5.6G DX VR", 154, 0}, + {"AF-S Nikkor 35mm 1:1.8G DX", 159, 0}, + {"Sigma EX 30mm 1:1.4 DC HSM", 248, 0}, /* from mge */ +}; +GENERIC8TABLE(Nikon_LensID,nikon_lensid) + +static struct deviceproptableu8 nikon_microphone[] = { + {N_("Auto sensitivity"), 0, 0}, + {N_("High sensitivity"), 1, 0}, + {N_("Medium sensitivity"), 2, 0}, + {N_("Low sensitivity"), 3, 0}, + {N_("Microphone off"), 4, 0}, +}; +GENERIC8TABLE(Nikon_Microphone, nikon_microphone); + +static struct deviceproptableu8 nikon_moviequality[] = { + {"320x216", 0, 0}, + {"640x424", 1, 0}, + {"1280x720", 2, 0}, +}; +GENERIC8TABLE(Nikon_MovieQuality, nikon_moviequality); + +static struct deviceproptableu8 nikon_d850_moviequality[] = { + {"3840x2160; 30p", 0, 0}, + {"3840x2160; 25p", 1, 0}, + {"3840x2160; 24p", 2, 0}, + + {"1920x1080; 60p", 3, 0}, + {"1920x1080; 50p", 4, 0}, + {"1920x1080; 30p", 5, 0}, + {"1920x1080; 25p", 6, 0}, + {"1920x1080; 24p", 7, 0}, + + {"1280x720; 60p", 8, 0}, + {"1280x720; 50p", 9, 0}, + + {"1920x1080; 30p x4 (slow-mo)", 10, 0}, + {"1920x1080; 25p x4 (slow-mo)", 11, 0}, + {"1920x1080; 24p x5 (slow-mo)", 12, 0}, +}; +GENERIC8TABLE(Nikon_D850_MovieQuality, nikon_d850_moviequality); + +static struct deviceproptableu8 nikon_d5100_moviequality[] = { + {"640x424; 25fps; normal", 0, 0}, + {"640x424; 25fps; high quality", 1, 0}, + {"1280x720; 24fps; normal", 2, 0}, + {"1280x720; 24fps; high quality", 3, 0}, + {"1280x720; 25fps; normal", 4, 0}, + {"1280x720; 25fps; high quality", 5, 0}, + {"1920x1080; 24fps; normal", 6, 0}, + {"1920x1080; 24fps; high quality", 7, 0}, + {"1920x1080; 25fps; normal", 8, 0}, + {"1920x1080; 25fps; high quality", 9, 0}, +}; +GENERIC8TABLE(Nikon_D5100_MovieQuality, nikon_d5100_moviequality); + +static struct deviceproptableu8 nikon_d7100_moviequality[] = { + {"1920x1080; 60i", 0, 0}, + {"1920x1080; 50i", 1, 0}, + {"1920x1080; 30p", 2, 0}, + {"1920x1080; 25p", 3, 0}, + {"1920x1080; 24p", 4, 0}, + {"1280x720; 60p", 5, 0}, + {"1280x720; 50p", 6, 0}, +}; +GENERIC8TABLE(Nikon_D7100_MovieQuality, nikon_d7100_moviequality); + +static struct deviceproptableu8 nikon_d7100_moviequality2[] = { + {"Norm", 0, 0}, + {"High", 1, 0}, +}; +GENERIC8TABLE(Nikon_D7100_MovieQuality2, nikon_d7100_moviequality2); + +static struct deviceproptableu8 nikon_1_moviequality[] = { + {"1080/60i", 0, 0}, + {"1080/30p", 1, 0}, + {"720/60p", 3, 0}, + {"720/30p", 4, 0}, +}; +GENERIC8TABLE(Nikon_1_MovieQuality, nikon_1_moviequality); + +static struct deviceproptableu8 nikon_d90_isoautohilimit[] = { + {"400", 0, 0}, + {"800", 1, 0}, + {"1600", 2, 0}, + {"3200", 3, 0}, + {N_("Hi 1"), 4, 0}, + {N_("Hi 2"), 5, 0}, +}; +GENERIC8TABLE(Nikon_D90_ISOAutoHiLimit, nikon_d90_isoautohilimit); + +static struct deviceproptableu8 nikon_d7100_isoautohilimit[] = { + { "200", 0, 0 }, + { "250", 1, 0 }, + { "280", 2, 0 }, + { "320", 3, 0 }, + { "400", 4, 0 }, + { "500", 5, 0 }, + { "560", 6, 0 }, + { "640", 7, 0 }, + { "800", 8, 0 }, + { "1000", 9, 0 }, + { "1100", 10, 0 }, + { "1250", 11, 0 }, + { "1600", 12, 0 }, + { "2000", 13, 0 }, + { "2200", 14, 0 }, + { "2500", 15, 0 }, + { "3200", 16, 0 }, + { "4000", 17, 0 }, + { "4500", 18, 0 }, + { "5000", 19, 0 }, + { "6400", 20, 0 }, + { "Hi 0.3", 21, 0 }, + { "Hi 0.5", 22, 0 }, + { "Hi 0.7", 23, 0 }, + { "Hi 1", 24, 0 }, + { "Hi 2", 25, 0 }, +}; +GENERIC8TABLE(Nikon_D7100_ISOAutoHiLimit, nikon_d7100_isoautohilimit); + +static struct deviceproptableu8 nikon_manualbracketmode[] = { + {N_("Flash/speed"), 0, 0}, + {N_("Flash/speed/aperture"), 1, 0}, + {N_("Flash/aperture"), 2, 0}, + {N_("Flash only"), 3, 0}, +}; +GENERIC8TABLE(Nikon_ManualBracketMode, nikon_manualbracketmode); + +static struct deviceproptableu8 nikon_d3s_isoautohilimit[] = { + {"400", 0, 0}, + {"500", 1, 0}, + {"640", 3, 0}, + {"800", 4, 0}, + {"1000", 5, 0}, + {"1250", 7, 0}, + {"1600", 8, 0}, + {"2000", 9, 0}, + {"2500", 11, 0}, + {"3200", 12, 0}, + {"4000", 13, 0}, + {"5000", 15, 0}, + {"6400", 16, 0}, + {"8000", 17, 0}, + {"10000", 19, 0}, + {"12800", 20, 0}, + {"14400", 21, 0}, + {"20000", 23, 0}, + {"25600", 24, 0}, + {"51200", 25, 0}, + {"102400",26, 0}, +}; +GENERIC8TABLE(Nikon_D3s_ISOAutoHiLimit, nikon_d3s_isoautohilimit); + +#if 0 +static struct deviceproptableu8 nikon_d70s_padvpvalue[] = { + { "1/125", 0x00, 0 }, + { "1/60", 0x01, 0 }, + { "1/30", 0x02, 0 }, + { "1/15", 0x03, 0 }, + { "1/8", 0x04, 0 }, + { "1/4", 0x05, 0 }, + { "1/2", 0x06, 0 }, + { "1", 0x07, 0 }, + { "2", 0x08, 0 }, + { "4", 0x09, 0 }, + { "8", 0x0a, 0 }, + { "15", 0x0b, 0 }, + { "30", 0x0c, 0 }, +}; +GENERIC8TABLE(Nikon_D70s_PADVPValue,nikon_d70s_padvpvalue) +#endif + +static struct deviceproptableu8 nikon_d90_padvpvalue[] = { + { "1/2000", 0x00, 0 }, + { "1/1600", 0x01, 0 }, + { "1/1250", 0x02, 0 }, + { "1/1000", 0x03, 0 }, + { "1/800", 0x04, 0 }, + { "1/640", 0x05, 0 }, + { "1/500", 0x06, 0 }, + { "1/400", 0x07, 0 }, + { "1/320", 0x08, 0 }, + { "1/250", 0x09, 0 }, + { "1/200", 0x0a, 0 }, + { "1/160", 0x0b, 0 }, + { "1/125", 0x0c, 0 }, + { "1/100", 0x0d, 0 }, + { "1/80", 0x0e, 0 }, + { "1/60", 0x0f, 0 }, + { "1/50", 0x10, 0 }, + { "1/40", 0x11, 0 }, + { "1/30", 0x12, 0 }, + { "1/15", 0x13, 0 }, + { "1/8", 0x14, 0 }, + { "1/4", 0x15, 0 }, + { "1/2", 0x16, 0 }, + { "1", 0x17, 0 }, +}; +GENERIC8TABLE(Nikon_D90_PADVPValue,nikon_d90_padvpvalue) + +static struct deviceproptableu8 nikon_d7100_padvpvalue[] = { + { "1/4000", 0x00, 0 }, + { "1/3200", 0x01, 0 }, + { "1/2500", 0x02, 0 }, + { "1/2000", 0x03, 0 }, + { "1/1600", 0x04, 0 }, + { "1/1250", 0x05, 0 }, + { "1/1000", 0x06, 0 }, + { "1/800", 0x07, 0 }, + { "1/640", 0x08, 0 }, + { "1/500", 0x09, 0 }, + { "1/400", 0x0a, 0 }, + { "1/320", 0x0b, 0 }, + { "1/250", 0x0c, 0 }, + { "1/200", 0x0d, 0 }, + { "1/160", 0x0e, 0 }, + { "1/125", 0x0f, 0 }, + { "1/100", 0x10, 0 }, + { "1/80", 0x11, 0 }, + { "1/60", 0x12, 0 }, + { "1/50", 0x13, 0 }, + { "1/40", 0x14, 0 }, + { "1/30", 0x15, 0 }, + { "1/15", 0x16, 0 }, + { "1/8", 0x17, 0 }, + { "1/4", 0x18, 0 }, + { "1/2", 0x19, 0 }, + { "1", 0x1a, 0 }, + { "Auto", 0x1b, 0 }, +}; +GENERIC8TABLE(Nikon_D7100_PADVPValue,nikon_d7100_padvpvalue) + +static struct deviceproptableu8 nikon_d3s_padvpvalue[] = { + { "1/4000", 0x00, 0 }, + { "1/3200", 0x01, 0 }, + { "1/2500", 0x02, 0 }, + { "1/2000", 0x03, 0 }, + { "1/1600", 0x04, 0 }, + { "1/1250", 0x05, 0 }, + { "1/1000", 0x06, 0 }, + { "1/800", 0x07, 0 }, + { "1/640", 0x08, 0 }, + { "1/500", 0x09, 0 }, + { "1/400", 0x0a, 0 }, + { "1/320", 0x0b, 0 }, + { "1/250", 0x0c, 0 }, + { "1/200", 0x0d, 0 }, + { "1/160", 0x0e, 0 }, + { "1/125", 0x0f, 0 }, + { "1/100", 0x10, 0 }, + { "1/80", 0x11, 0 }, + { "1/60", 0x12, 0 }, + { "1/50", 0x13, 0 }, + { "1/40", 0x14, 0 }, + { "1/30", 0x15, 0 }, + { "1/15", 0x16, 0 }, + { "1/8", 0x17, 0 }, + { "1/4", 0x18, 0 }, + { "1/2", 0x19, 0 }, + { "1", 0x1a, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_PADVPValue,nikon_d3s_padvpvalue) + +static struct deviceproptablei8 nikon_d90_activedlighting[] = { + { N_("Extra high"), 0x00, 0 }, + { N_("High"), 0x01, 0 }, + { N_("Normal"), 0x02, 0 }, + { N_("Low"), 0x03, 0 }, + { N_("Off"), 0x04, 0 }, + { N_("Auto"), 0x05, 0 }, +}; +GENERICI8TABLE(Nikon_D90_ActiveDLighting,nikon_d90_activedlighting) + +static struct deviceproptablei8 nikon_d850_activedlighting[] = { + { N_("Auto"), 0x00, 0 }, + { N_("Off"), 0x01, 0 }, + { N_("Low"), 0x02, 0 }, + { N_("Normal"), 0x03, 0 }, + { N_("High"), 0x04, 0 }, + { N_("Extra high"), 0x05, 0 }, +}; +GENERICI8TABLE(Nikon_D850_ActiveDLighting,nikon_d850_activedlighting) + +static struct deviceproptableu8 nikon_1_compression[] = { + { N_("JPEG Normal"), 0x00, PTP_VENDOR_NIKON }, + { N_("JPEG Fine"), 0x01, PTP_VENDOR_NIKON }, + { N_("JPEG Basic"), 0x02, PTP_VENDOR_NIKON }, + { N_("NEF+Fine"), 0x03, PTP_VENDOR_NIKON }, + { N_("NEF (Raw)"), 0x04, PTP_VENDOR_NIKON }, /* for j5 */ + { N_("NEF (Raw)"), 0x06, PTP_VENDOR_NIKON }, /* for j3 */ +}; +GENERIC8TABLE(Nikon_1_Compression,nikon_1_compression) + +static struct deviceproptableu8 nikon_d90_compression[] = { + { N_("JPEG Basic"), 0x00, PTP_VENDOR_NIKON }, + { N_("JPEG Normal"), 0x01, PTP_VENDOR_NIKON }, + { N_("JPEG Fine"), 0x02, PTP_VENDOR_NIKON }, + { N_("NEF (Raw)"), 0x04, PTP_VENDOR_NIKON }, + { N_("NEF+Basic"), 0x05, PTP_VENDOR_NIKON }, + { N_("NEF+Normal"), 0x06, PTP_VENDOR_NIKON }, + { N_("NEF+Fine"), 0x07, PTP_VENDOR_NIKON }, +}; +GENERIC8TABLE(Nikon_D90_Compression,nikon_d90_compression) + +static struct deviceproptableu8 nikon_d3s_compression[] = { + { N_("JPEG Basic"), 0x00, PTP_VENDOR_NIKON }, + { N_("JPEG Normal"), 0x01, PTP_VENDOR_NIKON }, + { N_("JPEG Fine"), 0x02, PTP_VENDOR_NIKON }, + { N_("TIFF (RGB)"), 0x03, PTP_VENDOR_NIKON }, + { N_("NEF (Raw)"), 0x04, PTP_VENDOR_NIKON }, + { N_("NEF+Basic"), 0x05, PTP_VENDOR_NIKON }, + { N_("NEF+Normal"), 0x06, PTP_VENDOR_NIKON }, + { N_("NEF+Fine"), 0x07, PTP_VENDOR_NIKON }, +}; +GENERIC8TABLE(Nikon_D3s_Compression,nikon_d3s_compression) + +static struct deviceproptableu8 nikon_d40_compression[] = { + { N_("JPEG Basic"), 0x00, PTP_VENDOR_NIKON }, + { N_("JPEG Normal"), 0x01, PTP_VENDOR_NIKON }, + { N_("JPEG Fine"), 0x02, PTP_VENDOR_NIKON }, + { N_("NEF (Raw)"), 0x03, PTP_VENDOR_NIKON }, + { N_("NEF+Basic"), 0x04, PTP_VENDOR_NIKON }, +}; +GENERIC8TABLE(Nikon_D40_Compression,nikon_d40_compression) + +static struct deviceproptableu8 nikon_d850_compression[] = { + { N_("JPEG Basic"), 0x00, PTP_VENDOR_NIKON }, + { N_("JPEG Basic*"), 0x01, PTP_VENDOR_NIKON }, + { N_("JPEG Normal"), 0x02, PTP_VENDOR_NIKON }, + { N_("JPEG Normal*"), 0x03, PTP_VENDOR_NIKON }, + { N_("JPEG Fine"), 0x04, PTP_VENDOR_NIKON }, + { N_("JPEG Fine*"), 0x05, PTP_VENDOR_NIKON }, + { N_("TIFF"), 0x06, PTP_VENDOR_NIKON }, + { N_("NEF (Raw)"), 0x07, PTP_VENDOR_NIKON }, + { N_("NEF+Basic"), 0x08, PTP_VENDOR_NIKON }, + { N_("NEF+Basic*"), 0x09, PTP_VENDOR_NIKON }, + { N_("NEF+Normal"), 0x0A, PTP_VENDOR_NIKON }, + { N_("NEF+Normal*"), 0x0B, PTP_VENDOR_NIKON }, + { N_("NEF+Fine"), 0x0C, PTP_VENDOR_NIKON }, + { N_("NEF+Fine*"), 0x0D, PTP_VENDOR_NIKON }, +}; +GENERIC8TABLE(Nikon_D850_Compression,nikon_d850_compression) + +static struct deviceproptableu8 nikon_d7500_compression[] = { + { N_("JPEG Basic"), 0x00, PTP_VENDOR_NIKON }, + { N_("JPEG Basic*"), 0x01, PTP_VENDOR_NIKON }, + { N_("JPEG Normal"), 0x02, PTP_VENDOR_NIKON }, + { N_("JPEG Normal*"), 0x03, PTP_VENDOR_NIKON }, + { N_("JPEG Fine"), 0x04, PTP_VENDOR_NIKON }, + { N_("JPEG Fine*"), 0x05, PTP_VENDOR_NIKON }, + { N_("NEF (Raw)"), 0x07, PTP_VENDOR_NIKON }, + { N_("NEF+Basic"), 0x08, PTP_VENDOR_NIKON }, + { N_("NEF+Basic*"), 0x09, PTP_VENDOR_NIKON }, + { N_("NEF+Normal"), 0x0A, PTP_VENDOR_NIKON }, + { N_("NEF+Normal*"), 0x0B, PTP_VENDOR_NIKON }, + { N_("NEF+Fine"), 0x0C, PTP_VENDOR_NIKON }, + { N_("NEF+Fine*"), 0x0D, PTP_VENDOR_NIKON }, +}; +GENERIC8TABLE(Nikon_D7500_Compression,nikon_d7500_compression) + +static struct deviceproptableu8 compressionsetting[] = { + { N_("JPEG Basic"), 0x00, PTP_VENDOR_NIKON }, + { N_("JPEG Normal"), 0x01, PTP_VENDOR_NIKON }, + { N_("JPEG Fine"), 0x02, PTP_VENDOR_NIKON }, + { N_("NEF (Raw)"), 0x04, PTP_VENDOR_NIKON }, + { N_("NEF+Basic"), 0x05, PTP_VENDOR_NIKON }, + { N_("NEF+Normal"), 0x06, PTP_VENDOR_NIKON }, + { N_("NEF+Fine"), 0x07, PTP_VENDOR_NIKON }, + { N_("Standard"), 0x02, PTP_VENDOR_SONY }, + { N_("Fine"), 0x03, PTP_VENDOR_SONY }, + { N_("Extra Fine"), 0x04, PTP_VENDOR_SONY }, + { N_("RAW"), 0x10, PTP_VENDOR_SONY }, + { N_("RAW+JPEG (Std)"), 0x12, PTP_VENDOR_SONY }, + { N_("RAW+JPEG (Fine)"), 0x13, PTP_VENDOR_SONY }, + { N_("RAW+JPEG (X.Fine)"), 0x14, PTP_VENDOR_SONY }, +}; +GENERIC8TABLE(CompressionSetting,compressionsetting) + +static struct deviceproptableu8 sony_sensorcrop[] = { + { N_("Off"), 0x01, 0 }, + { N_("On"), 0x02, 0 }, +}; +GENERIC8TABLE(Sony_SensorCrop,sony_sensorcrop) + +/* Sony specific, we need to wait for it settle (around 1 second), otherwise we get trouble later on */ +static int +_put_Sony_CompressionSetting(CONFIG_PUT_ARGS) { + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + int ret; + PTPDevicePropDesc dpd2; + time_t start,end; + + ret = _put_CompressionSetting(CONFIG_PUT_NAMES); + if (ret != GP_OK) return ret; + start = time(NULL); + C_PTP_REP (ptp_generic_setdevicepropvalue (params, PTP_DPC_CompressionSetting, propval, PTP_DTC_UINT8)); + while (1) { + C_PTP_REP (ptp_sony_getalldevicepropdesc (params)); + C_PTP_REP (ptp_generic_getdevicepropdesc (params, PTP_DPC_CompressionSetting, &dpd2)); + if (dpd2.CurrentValue.u8 == propval->u8) + break; + end = time(NULL); + if (end-start >= 2) { + GP_LOG_E("failed to change variable to %d (current %d)\n", propval->u8, dpd2.CurrentValue.u8); + break; + } + } + return GP_OK; +} + +static struct deviceproptableu16 canon_eos_highisonr[] = { + /* 6d values */ + { N_("Off"), 0, 0 }, + { N_("Low"), 1, 0 }, + { N_("Normal"), 2, 0 }, + { N_("High"), 3, 0 }, + { N_("Multi-Shot"), 4, 0 }, +}; + +GENERIC16TABLE(Canon_EOS_HighIsoNr,canon_eos_highisonr) + +static struct deviceproptablei8 nikon_d90_highisonr[] = { + { N_("Off"), 0, 0 }, + { N_("Low"), 1, 0 }, + { N_("Normal"), 2, 0 }, + { N_("High"), 3, 0 }, +}; +GENERICI8TABLE(Nikon_D90_HighISONR,nikon_d90_highisonr) + +static struct deviceproptableu8 nikon_1_highisonr[] = { + { N_("On"), 0, 0 }, + { N_("Off"), 3, 0 }, +}; +GENERIC8TABLE(Nikon_1_HighISONR,nikon_1_highisonr) + +static struct deviceproptableu8 nikon_d90_meterofftime[] = { + { N_("4 seconds"), 0x00, 0 }, + { N_("6 seconds"), 0x01, 0 }, + { N_("8 seconds"), 0x02, 0 }, + { N_("16 seconds"), 0x03, 0 }, + { N_("30 seconds"), 0x04, 0 }, + { N_("1 minute"), 0x05, 0 }, + { N_("5 minutes"), 0x06, 0 }, + { N_("10 minutes"), 0x07, 0 }, + { N_("30 minutes"), 0x08, 0 }, +}; +GENERIC8TABLE(Nikon_D90_MeterOffTime,nikon_d90_meterofftime) + + +static struct deviceproptableu8 nikon_rawcompression[] = { + { N_("Lossless"), 0x00, 0 }, + { N_("Lossy"), 0x01, 0 }, +}; +GENERIC8TABLE(Nikon_RawCompression,nikon_rawcompression) + +static struct deviceproptableu8 nikon_d3s_jpegcompressionpolicy[] = { + { N_("Size Priority"), 0x00, 0 }, + { N_("Optimal quality"),0x01, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_JPEGCompressionPolicy,nikon_d3s_jpegcompressionpolicy) + +static struct deviceproptableu8 nikon_d3s_flashsyncspeed[] = { + { N_("1/250s (Auto FP)"), 0x00, 0 }, + { N_("1/250s"), 0x01, 0 }, + { N_("1/200s"), 0x02, 0 }, + { N_("1/160s"), 0x03, 0 }, + { N_("1/125s"), 0x04, 0 }, + { N_("1/100s"), 0x05, 0 }, + { N_("1/80s"), 0x06, 0 }, + { N_("1/60s"), 0x07, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_FlashSyncSpeed,nikon_d3s_flashsyncspeed) + +static struct deviceproptableu8 nikon_d7100_flashsyncspeed[] = { + { N_("1/320s (Auto FP)"), 0x00, 0 }, + { N_("1/250s (Auto FP)"), 0x01, 0 }, + { N_("1/250s"), 0x02, 0 }, + { N_("1/200s"), 0x03, 0 }, + { N_("1/160s"), 0x04, 0 }, + { N_("1/125s"), 0x05, 0 }, + { N_("1/100s"), 0x06, 0 }, + { N_("1/80s"), 0x07, 0 }, + { N_("1/60s"), 0x08, 0 }, +}; +GENERIC8TABLE(Nikon_D7100_FlashSyncSpeed,nikon_d7100_flashsyncspeed) + +static struct deviceproptableu8 nikon_d3s_afcmodepriority[] = { + { N_("Release"), 0x00, 0 }, + { N_("Release + Focus"),0x01, 0 }, + { N_("Focus"), 0x02, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_AFCModePriority,nikon_d3s_afcmodepriority) + +static struct deviceproptableu8 nikon_d3s_afsmodepriority[] = { + { N_("Release"), 0x00, 0 }, + { N_("Focus"), 0x01, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_AFSModePriority,nikon_d3s_afsmodepriority) + +static struct deviceproptableu8 nikon_d3s_dynamicafarea[] = { + { N_("9 points"), 0x00, 0 }, + { N_("21 points"), 0x01, 0 }, + { N_("51 points"), 0x02, 0 }, + { N_("51 points (3D)"), 0x03, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_DynamicAFArea,nikon_d3s_dynamicafarea) + +static struct deviceproptableu8 nikon_d3s_aflockon[] = { + { N_("5 (Long)"), 0x00, 0 }, + { N_("4"), 0x01, 0 }, + { N_("3 (Normal)"), 0x02, 0 }, + { N_("2"), 0x03, 0 }, + { N_("1 (Short)"), 0x04, 0 }, + { N_("Off"), 0x05, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_AFLockOn,nikon_d3s_aflockon) + +static struct deviceproptableu8 nikon_d3s_afactivation[] = { + { N_("Shutter/AF-ON"), 0x00, 0 }, + { N_("AF-ON"), 0x01, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_AFActivation,nikon_d3s_afactivation) + +static struct deviceproptableu8 nikon_d3s_afareapoint[] = { + { N_("AF51"), 0x00, 0 }, + { N_("AF11"), 0x01, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_AFAreaPoint,nikon_d3s_afareapoint) + +static struct deviceproptableu8 nikon_d3s_normalafon[] = { + { N_("AF-ON"), 0x00, 0 }, + { N_("AE/AF lock"), 0x01, 0 }, + { N_("AE lock only"), 0x02, 0 }, + { N_("AE lock (Reset on release)"), 0x03, 0 }, + { N_("AE lock (Hold)"), 0x04, 0 }, + { N_("AF lock only"), 0x05, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_NormalAFOn,nikon_d3s_normalafon) + +static struct deviceproptableu8 nikon_d3s_flashshutterspeed[] = { + { N_("1/60s"), 0x00, 0 }, + { N_("1/30s"), 0x01, 0 }, + { N_("1/15s"), 0x02, 0 }, + { N_("1/8s"), 0x03, 0 }, + { N_("1/4s"), 0x04, 0 }, + { N_("1/2s"), 0x05, 0 }, + { N_("1s"), 0x06, 0 }, + { N_("2s"), 0x07, 0 }, + { N_("4s"), 0x08, 0 }, + { N_("8s"), 0x09, 0 }, + { N_("15s"), 0x0a, 0 }, + { N_("30s"), 0x0b, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_FlashShutterSpeed,nikon_d3s_flashshutterspeed) + +static struct deviceproptableu8 nikon_d90_shootingspeed[] = { + { N_("4 fps"), 0x00, 0 }, + { N_("3 fps"), 0x01, 0 }, + { N_("2 fps"), 0x02, 0 }, + { N_("1 fps"), 0x03, 0 }, +}; +GENERIC8TABLE(Nikon_D90_ShootingSpeed,nikon_d90_shootingspeed) + +static struct deviceproptableu8 nikon_d7100_shootingspeed[] = { + { N_("6 fps"), 0x00, 0 }, + { N_("5 fps"), 0x01, 0 }, + { N_("4 fps"), 0x02, 0 }, + { N_("3 fps"), 0x03, 0 }, + { N_("2 fps"), 0x04, 0 }, + { N_("1 fps"), 0x05, 0 }, +}; +GENERIC8TABLE(Nikon_D7100_ShootingSpeed,nikon_d7100_shootingspeed) + +static struct deviceproptableu8 nikon_d3s_shootingspeed[] = { + { N_("9 fps"), 0x00, 0 }, + { N_("8 fps"), 0x01, 0 }, + { N_("7 fps"), 0x02, 0 }, + { N_("6 fps"), 0x03, 0 }, + { N_("5 fps"), 0x04, 0 }, + { N_("4 fps"), 0x05, 0 }, + { N_("3 fps"), 0x06, 0 }, + { N_("2 fps"), 0x07, 0 }, + { N_("1 fps"), 0x08, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_ShootingSpeed,nikon_d3s_shootingspeed) + +static struct deviceproptableu8 nikon_d850_shootingspeed[] = { + { N_("8 fps"), 0x01, 0 }, + { N_("7 fps"), 0x02, 0 }, + { N_("6 fps"), 0x03, 0 }, + { N_("5 fps"), 0x04, 0 }, + { N_("4 fps"), 0x05, 0 }, + { N_("3 fps"), 0x06, 0 }, + { N_("2 fps"), 0x07, 0 }, + { N_("1 fps"), 0x08, 0 }, +}; +GENERIC8TABLE(Nikon_D850_ShootingSpeed,nikon_d850_shootingspeed) + +static struct deviceproptableu8 nikon_d3s_shootingspeedhigh[] = { + { N_("11 fps"), 0x00, 0 }, + { N_("10 fps"), 0x01, 0 }, + { N_("9 fps"), 0x02, 0 }, +}; +GENERIC8TABLE(Nikon_D3s_ShootingSpeedHigh,nikon_d3s_shootingspeedhigh) + +static struct deviceproptableu8 nikon_d7000_funcbutton[] = { + { N_("Unassigned"), 0x00, 0 },/* unselectable */ + { N_("Preview"), 0x01, 0 }, + { N_("FV lock"), 0x02, 0 }, + { N_("AE/AF lock"), 0x03, 0 }, + { N_("AE lock only"), 0x04, 0 }, + { N_("Invalid"), 0x05, 0 },/* unselectable */ + { N_("AE lock (hold)"), 0x06, 0 }, + { N_("AF lock only"), 0x07, 0 }, + { N_("Flash off"), 0x08, 0 }, + { N_("Bracketing burst"), 0x09, 0 }, + { N_("Matrix metering"), 0x0a, 0 }, + { N_("Center-weighted metering"), 0x0b, 0 }, + { N_("Spot metering"), 0x0c, 0 }, + { N_("Playback"), 0x0d, 0 }, + { N_("Access top item in MY MENU"), 0x0e, 0 }, + { N_("+NEF (RAW)"), 0x0f, 0 }, + { N_("Framing grid"), 0x10, 0 }, + { N_("Active D-Lighting"), 0x11, 0 }, + { N_("1 step spd/aperture"), 0x12, 0 }, + { N_("Choose non-CPU lens number"), 0x13, 0 }, + { N_("Viewfinder virtual horizont"), 0x14, 0 }, + { N_("Start movie recording"), 0x15, 0 }, +}; +GENERIC8TABLE(Nikon_D7000_FuncButton,nikon_d7000_funcbutton) + +static struct deviceproptableu8 nikon_menus_and_playback[] = { + { N_("Off"), 0x0, 0 }, + { N_("On"), 0x1, 0 }, + { N_("On (image review excluded)"), 0x2, 0 }, +}; +GENERIC8TABLE(Nikon_MenusAndPlayback,nikon_menus_and_playback) + + +static int +_get_BurstNumber(CONFIG_GET_ARGS) { + float value_float , start=0.0, end=0.0, step=0.0; + + if (!(dpd->FormFlag & PTP_DPFF_Range)) + return (GP_ERROR); + if (dpd->DataType != PTP_DTC_UINT16) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + start = dpd->FORM.Range.MinimumValue.u16; + end = dpd->FORM.Range.MaximumValue.u16; + step = dpd->FORM.Range.StepSize.u16; + gp_widget_set_range (*widget, start, end, step); + value_float = dpd->CurrentValue.u16; + gp_widget_set_value (*widget, &value_float); + return (GP_OK); +} + +static int +_put_BurstNumber(CONFIG_PUT_ARGS) { + float val; + + CR (gp_widget_get_value(widget, &val)); + propval->u16 = val; + return GP_OK; +} + +static int +_get_BatteryLevel(CONFIG_GET_ARGS) { + unsigned char value_float , start, end; + char buffer[20]; + + if (dpd->DataType != PTP_DTC_UINT8) + return GP_ERROR; + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + + if (dpd->FormFlag == PTP_DPFF_Range) { + gp_widget_set_name (*widget, menu->name); + start = dpd->FORM.Range.MinimumValue.u8; + end = dpd->FORM.Range.MaximumValue.u8; + value_float = dpd->CurrentValue.u8; + if (0 == end - start + 1) { + /* avoid division by 0 */ + sprintf (buffer, "broken"); + } else { + sprintf (buffer, "%d%%", (int)((value_float-start+1)*100/(end-start+1))); + } + return gp_widget_set_value(*widget, buffer); + } + /* Enumeration is also valid on EOS, but this will be just be the % value */ + sprintf (buffer, "%d%%", dpd->CurrentValue.u8); + return gp_widget_set_value(*widget, buffer); +} + +static int +_get_SONY_BatteryLevel(CONFIG_GET_ARGS) { + unsigned char value_float , start, end; + char buffer[20]; + + if (dpd->DataType != PTP_DTC_INT8) + return GP_ERROR; + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + + if (dpd->FormFlag == PTP_DPFF_Range) { + gp_widget_set_name (*widget, menu->name); + start = dpd->FORM.Range.MinimumValue.i8; + if (dpd->FORM.Range.MinimumValue.i8 == -1) + start = 0; /* -1 might be special for unknown? */ + else + start = dpd->FORM.Range.MinimumValue.i8; + end = dpd->FORM.Range.MaximumValue.i8; + value_float = dpd->CurrentValue.i8; + if (0 == end - start + 1) { + /* avoid division by 0 */ + sprintf (buffer, "broken"); + } else { + sprintf (buffer, "%d%%", (int)((value_float-start+1)*100/(end-start+1))); + } + return gp_widget_set_value(*widget, buffer); + } + /* Enumeration is also valid on EOS, but this will be just be the % value */ + if (dpd->CurrentValue.i8 == -1) + sprintf (buffer, _("Unknown")); + else + sprintf (buffer, "%d%%", dpd->CurrentValue.i8); + return gp_widget_set_value(*widget, buffer); +} + +static int +_get_Canon_EOS_BatteryLevel(CONFIG_GET_ARGS) { + if (dpd->DataType != PTP_DTC_UINT16) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + switch (dpd->CurrentValue.u16) { + case 0: gp_widget_set_value(*widget, _("Low")); break; + case 1: gp_widget_set_value(*widget, _("50%")); break; + case 2: gp_widget_set_value(*widget, _("100%")); break; + case 4: gp_widget_set_value(*widget, _("75%")); break; + case 5: gp_widget_set_value(*widget, _("25%")); break; + default: gp_widget_set_value(*widget, _("Unknown value")); break; + } + return (GP_OK); +} + +static int +_get_Canon_EOS_StorageID(CONFIG_GET_ARGS) { + char buf[16]; + + if (dpd->DataType != PTP_DTC_UINT32) + return GP_ERROR; + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + sprintf(buf,"%08x",dpd->CurrentValue.u32); + gp_widget_set_value(*widget, buf); + return GP_OK; +} + +static int +_put_Canon_EOS_StorageID(CONFIG_PUT_ARGS) { + char *val = NULL; + unsigned int x = 0; + + CR (gp_widget_get_value(widget, &val)); + if (!sscanf(val,"%x",&x)) + return GP_ERROR_BAD_PARAMETERS; + propval->u32 = x; + return GP_OK; +} + + +static int +_get_UINT32_as_time(CONFIG_GET_ARGS) { + time_t camtime; + + gp_widget_new (GP_WIDGET_DATE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + camtime = dpd->CurrentValue.u32; + gp_widget_set_value (*widget,&camtime); + return (GP_OK); +} + +static int +_put_UINT32_as_time(CONFIG_PUT_ARGS) { + time_t camtime; + + camtime = 0; + CR (gp_widget_get_value (widget,&camtime)); + propval->u32 = camtime; + return (GP_OK); +} + +static int +_get_UINT32_as_localtime(CONFIG_GET_ARGS) { + time_t camtime; + struct tm *ptm; + + gp_widget_new (GP_WIDGET_DATE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + camtime = dpd->CurrentValue.u32; + /* hack to convert from local time on camera to utc */ + ptm = gmtime(&camtime); + ptm->tm_isdst = -1; + camtime = mktime (ptm); + gp_widget_set_value (*widget,&camtime); + return (GP_OK); +} + +static int +_put_UINT32_as_localtime(CONFIG_PUT_ARGS) { + time_t camtime,newcamtime; + struct tm *ptm; +#if HAVE_SETENV + char *tz; +#endif + + camtime = 0; + CR (gp_widget_get_value (widget, &camtime)); + ptm = localtime(&camtime); + +#if HAVE_SETENV + tz = getenv("TZ"); + if (tz) + C_MEM (tz = strdup(tz)); + setenv("TZ", "", 1); + tzset(); +#endif + newcamtime = mktime(ptm); +#if HAVE_SETENV + if (tz) { + setenv("TZ", tz, 1); + free(tz); + } else + unsetenv("TZ"); + tzset(); +#endif + + propval->u32 = newcamtime; + return (GP_OK); +} + +static int +_get_Canon_SyncTime(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + return (GP_OK); +} + +static int +_put_Canon_SyncTime(CONFIG_PUT_ARGS) { + /* Just set the time if the entry changes. */ + propval->u32 = time(NULL); + return (GP_OK); +} + +static int +_get_Nikon_AFDrive(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + return (GP_OK); +} + +static int +_put_Nikon_AFDrive(CONFIG_PUT_ARGS) { + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + if (!ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_AfDrive)) + return (GP_ERROR_NOT_SUPPORTED); + + C_PTP (ptp_nikon_afdrive (&camera->pl->params)); + /* wait at most 5 seconds for focusing currently */ + C_PTP_REP (nikon_wait_busy (params, 10, 5000)); + /* this can return PTP_RC_OK or PTP_RC_NIKON_OutOfFocus */ + return GP_OK; +} + +static int +_get_Nikon_ChangeAfArea(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + + gp_widget_set_value (*widget,"0x0"); + return (GP_OK); +} + +static int +_put_Nikon_ChangeAfArea(CONFIG_PUT_ARGS) { + uint16_t ret; + char *val; + int x,y; + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + CR (gp_widget_get_value(widget, &val)); + + C_PARAMS (2 == sscanf(val, "%dx%d", &x, &y)); + + ret = ptp_nikon_changeafarea (&camera->pl->params, x, y); + if (ret == PTP_RC_NIKON_NotLiveView) { + gp_context_error (context, _("Nikon changeafarea works only in LiveView mode.")); + return GP_ERROR; + } + + C_PTP_MSG (ret, "Nikon changeafarea failed"); +#if 0 + int tries = 0; + /* wait at most 5 seconds for focusing currently */ + while (PTP_RC_DeviceBusy == (ret = ptp_nikon_device_ready(&camera->pl->params))) { + tries++; + if (tries == 500) + return GP_ERROR_CAMERA_BUSY; + usleep(10*1000); + } + /* this can return PTP_RC_OK or PTP_RC_NIKON_OutOfFocus */ + if (ret == PTP_RC_NIKON_OutOfFocus) + gp_context_error (context, _("Nikon autofocus drive did not focus.")); +#endif + return translate_ptp_result (ret); +} + +static int +_get_Canon_EOS_AFDrive(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + return (GP_OK); +} + +static int +_put_Canon_EOS_AFDrive(CONFIG_PUT_ARGS) { + int val; + PTPParams *params = &(camera->pl->params); + + if (!ptp_operation_issupported(params, PTP_OC_CANON_EOS_DoAf)) + return (GP_ERROR_NOT_SUPPORTED); + + CR (gp_widget_get_value(widget, &val)); + if (val) + C_PTP (ptp_canon_eos_afdrive (params)); + else + C_PTP (ptp_canon_eos_afcancel (params)); + /* Get the next set of event data */ + C_PTP (ptp_check_eos_events (params)); + return GP_OK; +} + +static int +_get_Canon_EOS_AFCancel(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + return (GP_OK); +} + +static int +_put_Canon_EOS_AFCancel(CONFIG_PUT_ARGS) { + PTPParams *params = &(camera->pl->params); + + if (!ptp_operation_issupported(params, PTP_OC_CANON_EOS_AfCancel)) + return (GP_ERROR_NOT_SUPPORTED); + + C_PTP (ptp_canon_eos_afcancel (params)); + /* Get the next set of event data */ + C_PTP (ptp_check_eos_events (params)); + return GP_OK; +} + +static int +_get_Nikon_MFDrive(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + + gp_widget_set_range(*widget, -32767.0, 32767.0, 1.0); + return (GP_OK); +} + +static int +_put_Nikon_MFDrive(CONFIG_PUT_ARGS) { + uint16_t ret; + float val; + unsigned int xval, flag; + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + if (!ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_MfDrive)) + return (GP_ERROR_NOT_SUPPORTED); + gp_widget_get_value(widget, &val); + + if (val<0) { + xval = -val; + flag = 0x1; + } else { + xval = val; + flag = 0x2; + } + if (!xval) xval = 1; + ret = LOG_ON_PTP_E (ptp_nikon_mfdrive (&camera->pl->params, flag, xval)); + if (ret == PTP_RC_NIKON_NotLiveView) { + gp_context_error (context, _("Nikon manual focus works only in LiveView mode.")); + return GP_ERROR; + } + if (ret != PTP_RC_OK) + return translate_ptp_result(ret); + + /* The mf drive operation has started ... wait for it to + * finish. */ + ret = LOG_ON_PTP_E (nikon_wait_busy (&camera->pl->params, 20, 1000)); + if (ret == PTP_RC_NIKON_MfDriveStepEnd) { + gp_context_error (context, _("Nikon manual focus at limit.")); + return GP_ERROR_CAMERA_ERROR; + } + if (ret == PTP_RC_NIKON_MfDriveStepInsufficiency) { + gp_context_error (context, _("Nikon manual focus stepping too small.")); + return GP_ERROR_CAMERA_ERROR; + } + return translate_ptp_result(ret); +} + +static int +_get_Nikon_ControlMode(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + gp_widget_set_value(*widget, "0"); + return (GP_OK); +} + +static int +_put_Nikon_ControlMode(CONFIG_PUT_ARGS) { + PTPParams *params = &(camera->pl->params); + char* val; + unsigned int xval = 0; + + if (!ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_SetControlMode)) + return GP_ERROR_NOT_SUPPORTED; + gp_widget_get_value(widget, &val); + + if (!sscanf(val,"%d",&xval)) + return GP_ERROR; + + C_PTP (ptp_nikon_setcontrolmode (&camera->pl->params, xval)); + return GP_OK; +} + +static int +_get_Canon_EOS_RemoteRelease(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + + /* FIXME: remember state of release */ + gp_widget_add_choice (*widget, _("None")); + gp_widget_add_choice (*widget, _("Press Half")); + gp_widget_add_choice (*widget, _("Press Full")); + gp_widget_add_choice (*widget, _("Release Half")); + gp_widget_add_choice (*widget, _("Release Full")); + gp_widget_add_choice (*widget, _("Immediate")); + /* debugging */ + gp_widget_add_choice (*widget, _("Press 1")); + gp_widget_add_choice (*widget, _("Press 2")); + gp_widget_add_choice (*widget, _("Press 3")); + gp_widget_add_choice (*widget, _("Release 1")); + gp_widget_add_choice (*widget, _("Release 2")); + gp_widget_add_choice (*widget, _("Release 3")); + gp_widget_set_value (*widget, _("None")); + return (GP_OK); +} + +/* On EOS 7D: + * 9128 1 0 (half?) + * 9128 2 0 (full?) + * paramters: press mode, ? afmode ? SDK seems to suggest 1==NonAF, 0 == AF + */ + +static int +_put_Canon_EOS_RemoteRelease(CONFIG_PUT_ARGS) { + const char* val; + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + if (!ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn)) + return (GP_ERROR_NOT_SUPPORTED); + + /* If someone has set the capture target inbetween */ + CR (camera_canon_eos_update_capture_target( camera, context, -1 )); + + gp_widget_get_value(widget, &val); + + if (!strcmp (val, _("None"))) { + return GP_OK; + } else if (!strcmp (val, _("Press Half"))) { + C_PTP (ptp_canon_eos_remotereleaseon (params, 1, 1)); + } else if (!strcmp (val, _("Press Full"))) { + C_PTP (ptp_canon_eos_remotereleaseon (params, 3, 1)); + } else if (!strcmp (val, _("Immediate"))) { + /* HACK by Flori Radlherr: "fire and forget" half release before release: + Avoids autofocus drive while focus-switch on the lens is in AF state */ + C_PTP (ptp_canon_eos_remotereleaseon (params, 1, 1)); + C_PTP (ptp_canon_eos_remotereleaseon (params, 3, 1)); + /* try out others with 0 */ + } else if (!strcmp (val, _("Press 1"))) { + C_PTP (ptp_canon_eos_remotereleaseon (params, 1, 0)); + } else if (!strcmp (val, _("Press 2"))) { + C_PTP (ptp_canon_eos_remotereleaseon (params, 2, 0)); + } else if (!strcmp (val, _("Press 3"))) { + C_PTP (ptp_canon_eos_remotereleaseon (params, 3, 0)); + } else if (!strcmp (val, _("Release 1"))) { + C_PTP (ptp_canon_eos_remotereleaseoff (params, 1)); + } else if (!strcmp (val, _("Release 2"))) { + C_PTP (ptp_canon_eos_remotereleaseoff (params, 2)); + } else if (!strcmp (val, _("Release 3"))) { + C_PTP (ptp_canon_eos_remotereleaseoff (params, 3)); + } else if (!strcmp (val, _("Release Half"))) { + C_PTP (ptp_canon_eos_remotereleaseoff (params, 1)); + } else if (!strcmp (val, _("Release Full"))) { + C_PTP (ptp_canon_eos_remotereleaseoff (params, 3)); + } else { + GP_LOG_D ("Unknown value %s", val); + return GP_ERROR_NOT_SUPPORTED; + } + + /* Get the next set of event data */ + C_PTP (ptp_check_eos_events (params)); + return GP_OK; +} + +static int +_get_Canon_EOS_ContinousAF(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + + gp_widget_add_choice (*widget, _("Off")); + gp_widget_add_choice (*widget, _("On")); + switch (dpd->CurrentValue.u32) { + case 0: gp_widget_set_value (*widget, _("Off")); break; + case 1: gp_widget_set_value (*widget, _("On")); break; + default: { + char buf[200]; + sprintf(buf,"Unknown value 0x%08x", dpd->CurrentValue.u32); + gp_widget_set_value (*widget, buf); + break; + } + } + return GP_OK; +} + +static int +_put_Canon_EOS_ContinousAF(CONFIG_PUT_ARGS) { + char *val; + unsigned int ival; + + CR(gp_widget_get_value (widget, &val)); + if (!strcmp(val,_("Off"))) { propval->u32 = 0; return GP_OK; } + if (!strcmp(val,_("On"))) { propval->u32 = 1; return GP_OK; } + if (!sscanf(val,"Unknown value 0x%08x",&ival)) + return GP_ERROR_BAD_PARAMETERS; + propval->u32 = ival; + return GP_OK; +} + +static int +_get_Canon_EOS_MFDrive(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + + gp_widget_add_choice (*widget, _("Near 1")); + gp_widget_add_choice (*widget, _("Near 2")); + gp_widget_add_choice (*widget, _("Near 3")); + gp_widget_add_choice (*widget, _("None")); + gp_widget_add_choice (*widget, _("Far 1")); + gp_widget_add_choice (*widget, _("Far 2")); + gp_widget_add_choice (*widget, _("Far 3")); + + gp_widget_set_value (*widget, _("None")); + return (GP_OK); +} + +static int +_put_Canon_EOS_MFDrive(CONFIG_PUT_ARGS) { + const char* val; + unsigned int xval; + PTPParams *params = &(camera->pl->params); + + if (!ptp_operation_issupported(params, PTP_OC_CANON_EOS_DriveLens)) + return (GP_ERROR_NOT_SUPPORTED); + gp_widget_get_value(widget, &val); + + if (!strcmp (val, _("None"))) return GP_OK; + + if (!sscanf (val, _("Near %d"), &xval)) { + if (!sscanf (val, _("Far %d"), &xval)) { + GP_LOG_D ("Could not parse %s", val); + return GP_ERROR; + } else { + xval |= 0x8000; + } + } + C_PTP_MSG (ptp_canon_eos_drivelens (params, xval), + "Canon manual focus drive 0x%x failed", xval); + /* Get the next set of event data */ + C_PTP (ptp_check_eos_events (params)); + return GP_OK; +} + +static int +_get_Panasonic_MFDrive(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + + gp_widget_add_choice (*widget, _("Near 1")); + gp_widget_add_choice (*widget, _("Near 2")); + gp_widget_add_choice (*widget, _("None")); + gp_widget_add_choice (*widget, _("Far 1")); + gp_widget_add_choice (*widget, _("Far 2")); + + gp_widget_set_value (*widget, _("None")); + return GP_OK; +} + +static int +_put_Panasonic_MFDrive(CONFIG_PUT_ARGS) { + const char* val; + unsigned int xval; + uint16_t direction = 0; // 0=near + uint16_t mode = 0x02; + PTPParams *params = &(camera->pl->params); + + gp_widget_get_value(widget, &val); + + if (!strcmp (val, _("None"))) return GP_OK; + + if (!sscanf (val, _("Near %d"), &xval)) { + if (!sscanf (val, _("Far %d"), &xval)) { + GP_LOG_D ("Could not parse %s", val); + return GP_ERROR; + } else { + direction = 1; // far + } + } + if(direction) { // far + if(xval == 1) mode = 0x03; + if(xval == 2) mode = 0x04; + } else { // near + if(xval == 1) mode = 0x02; + if(xval == 2) mode = 0x01; + } + gp_widget_set_value (widget, _("None")); /* Marcus: not right here */ + C_PTP_MSG (ptp_panasonic_manualfocusdrive (params, mode), "Panasonic manual focus drive 0x%x failed", xval); + return GP_OK; +} + + +static int +_get_Olympus_OMD_MFDrive(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + + gp_widget_add_choice (*widget, _("Near 1")); + gp_widget_add_choice (*widget, _("Near 2")); + gp_widget_add_choice (*widget, _("Near 3")); + gp_widget_add_choice (*widget, _("None")); + gp_widget_add_choice (*widget, _("Far 1")); + gp_widget_add_choice (*widget, _("Far 2")); + gp_widget_add_choice (*widget, _("Far 3")); + + gp_widget_set_value (*widget, _("None")); + return (GP_OK); +} + +static int +_put_Olympus_OMD_MFDrive(CONFIG_PUT_ARGS) { + const char* val; + unsigned int xval; + uint32_t direction = 0x01; + uint32_t step_size = 0x0e; + PTPParams *params = &(camera->pl->params); + + if (!ptp_operation_issupported(params, PTP_OC_OLYMPUS_OMD_MFDrive)) + return (GP_ERROR_NOT_SUPPORTED); + gp_widget_get_value(widget, &val); + + if (!strcmp (val, _("None"))) return GP_OK; + + if (!sscanf (val, _("Near %d"), &xval)) { + if (!sscanf (val, _("Far %d"), &xval)) { + GP_LOG_D ("Could not parse %s", val); + return GP_ERROR; + } else { + direction = 0x02; + } + } + if(xval == 1) step_size = 0x03; + if(xval == 2) step_size = 0x0e; + if(xval == 3) step_size = 0x3c; + + C_PTP_MSG (ptp_olympus_omd_move_focus (params, direction, step_size), + "Olympus manual focus drive 0x%x failed", xval); + return GP_OK; +} + + +static int +_get_Canon_EOS_Zoom(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + gp_widget_set_value (*widget, "0"); + return (GP_OK); +} + +/* Only 1 and 5 seem to work on the EOS 1000D */ +static int +_put_Canon_EOS_Zoom(CONFIG_PUT_ARGS) { + const char* val; + unsigned int xval; + PTPParams *params = &(camera->pl->params); + + if (!ptp_operation_issupported(params, PTP_OC_CANON_EOS_Zoom)) + return (GP_ERROR_NOT_SUPPORTED); + + gp_widget_get_value(widget, &val); + if (!sscanf (val, "%d", &xval)) { + GP_LOG_D ("Could not parse %s", val); + return GP_ERROR; + } + C_PTP_MSG (ptp_canon_eos_zoom (params, xval), + "Canon zoom 0x%x failed", xval); + + /* Get the next set of event data */ + C_PTP (ptp_check_eos_events (params)); + return GP_OK; +} + +/* EOS Zoom. Works in approx 64 pixel steps on the EOS 1000D, but just accept + * all kind of pairs */ +static int +_get_Canon_EOS_ZoomPosition(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + gp_widget_set_value (*widget, "0,0"); + return (GP_OK); +} + +static int +_put_Canon_EOS_ZoomPosition(CONFIG_PUT_ARGS) { + const char* val; + unsigned int x,y; + PTPParams *params = &(camera->pl->params); + + if (!ptp_operation_issupported(params, PTP_OC_CANON_EOS_ZoomPosition)) + return (GP_ERROR_NOT_SUPPORTED); + + gp_widget_get_value(widget, &val); + if (2!=sscanf (val, "%d,%d", &x,&y)) { + GP_LOG_D ("Could not parse %s (expected 'x,y')", val); + return GP_ERROR; + } + C_PTP_MSG (ptp_canon_eos_zoomposition (params, x,y), + "Canon zoom position %d,%d failed", x, y); + /* Get the next set of event data */ + C_PTP (ptp_check_eos_events (params)); + return GP_OK; +} + +static int +_get_Canon_CHDK_Script(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + gp_widget_add_choice (*widget, "cls();exit_alt();"); + gp_widget_add_choice (*widget, "shoot();cls();exit_alt();"); + gp_widget_set_value (*widget, "cls();exit_alt();"); + return (GP_OK); +} + +static int +_put_Canon_CHDK_Script(CONFIG_PUT_ARGS) { + char *script; + PTPParams *params = &(camera->pl->params); + int script_id; + unsigned int status; + int luastatus; + + CR (gp_widget_get_value(widget, &script)); + +// Nafraf: Working on this!!! +// +// gphoto: config.c +// ret = ptp_chdk_exec_lua (params, val, &output); +// +// chdkptp: chdkptp.c +// ret = ptp_chdk_exec_lua (params, +// (char *)luaL_optstring(L,2,""), +// luaL_optnumber(L,3,0), +// &ptp_cs->script_id, +// &status) +// +// Unfinished, I'm not sure of last 3 parameters + GP_LOG_D ("calling script: %s", script); + C_PTP (ptp_chdk_exec_lua (params, script, 0, &script_id, &luastatus)); + GP_LOG_D ("called script, id %d, status %d", script_id, luastatus); + + while (1) { + C_PTP (ptp_chdk_get_script_status(params, &status)); + GP_LOG_D ("script status %x", status); + + if (status & PTP_CHDK_SCRIPT_STATUS_MSG) { + ptp_chdk_script_msg *msg = NULL; + + C_PTP (ptp_chdk_read_script_msg(params, &msg)); + GP_LOG_D ("message script id %d, type %d, subtype %d", msg->script_id, msg->type, msg->subtype); + GP_LOG_D ("message script %s", msg->data); + free (msg); + } + + if (!(status & PTP_CHDK_SCRIPT_STATUS_RUN)) + break; + usleep(100000); + } + + return GP_OK; +} + + +static int +_get_STR_as_time(CONFIG_GET_ARGS) { + time_t camtime; + struct tm tm; + char capture_date[64],tmp[5]; + + /* strptime() is not widely accepted enough to use yet */ + memset(&tm,0,sizeof(tm)); + if (!dpd->CurrentValue.str) + return (GP_ERROR); + gp_widget_new (GP_WIDGET_DATE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + strncpy(capture_date,dpd->CurrentValue.str,sizeof(capture_date)); + strncpy (tmp, capture_date, 4); + tmp[4] = 0; + tm.tm_year=atoi (tmp) - 1900; + strncpy (tmp, capture_date + 4, 2); + tmp[2] = 0; + tm.tm_mon = atoi (tmp) - 1; + strncpy (tmp, capture_date + 6, 2); + tmp[2] = 0; + tm.tm_mday = atoi (tmp); + strncpy (tmp, capture_date + 9, 2); + tmp[2] = 0; + tm.tm_hour = atoi (tmp); + strncpy (tmp, capture_date + 11, 2); + tmp[2] = 0; + tm.tm_min = atoi (tmp); + strncpy (tmp, capture_date + 13, 2); + tmp[2] = 0; + tm.tm_sec = atoi (tmp); + tm.tm_isdst = -1; /* autodetect */ + camtime = mktime(&tm); + gp_widget_set_value (*widget,&camtime); + return (GP_OK); +} + +static int +_put_STR_as_time(CONFIG_PUT_ARGS) { + time_t camtime; +#ifdef HAVE_GMTIME_R + struct tm xtm; +#endif + struct tm *pxtm; + char asctime[64]; + + camtime = 0; + CR (gp_widget_get_value (widget,&camtime)); +#ifdef HAVE_GMTIME_R + memset(&xtm,0,sizeof(xtm)); + pxtm = localtime_r (&camtime, &xtm); +#else + pxtm = localtime (&camtime); +#endif + /* 20020101T123400.0 is returned by the HP Photosmart */ + sprintf(asctime,"%04d%02d%02dT%02d%02d%02d",pxtm->tm_year+1900,pxtm->tm_mon+1,pxtm->tm_mday,pxtm->tm_hour,pxtm->tm_min,pxtm->tm_sec); + + /* if the camera reported fractional seconds, also add it */ + if (strchr(dpd->CurrentValue.str,'.')) + strcat(asctime,".0"); + + C_MEM (propval->str = strdup(asctime)); + return (GP_OK); +} + +static int +_put_None(CONFIG_PUT_ARGS) { + return (GP_ERROR_NOT_SUPPORTED); +} + +static int +_get_Canon_CaptureMode(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + /* we use presence of FlashMode as indication of capture enablement or not */ + val = have_prop (camera, PTP_VENDOR_CANON, PTP_DPC_CANON_FlashMode); + return gp_widget_set_value (*widget, &val); +} + +static int +_put_Canon_CaptureMode(CONFIG_PUT_ARGS) { + int val; + + CR (gp_widget_get_value(widget, &val)); + if (val) + return camera_prepare_capture (camera, NULL); + else + return camera_unprepare_capture (camera, NULL); +} + +static int +_get_Canon_RemoteMode(CONFIG_GET_ARGS) { + char buf[200]; + PTPParams *params = &(camera->pl->params); + uint32_t mode; + + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + if (ptp_operation_issupported (params, PTP_OC_CANON_EOS_GetRemoteMode)) { + C_PTP (ptp_canon_eos_getremotemode (params, &mode)); + sprintf (buf, "%d", mode); + } else { + strcpy (buf, "0"); + } + return gp_widget_set_value (*widget, buf); +} + +static int +_put_Canon_RemoteMode(CONFIG_PUT_ARGS) { + uint32_t mode; + char *val; + PTPParams *params = &(camera->pl->params); + + CR (gp_widget_get_value(widget, &val)); + if (!sscanf (val, "%d", &mode)) + return GP_ERROR; + C_PTP (ptp_canon_eos_setremotemode (params, mode)); + return GP_OK; +} + + +static int +_get_Canon_EOS_ViewFinder(CONFIG_GET_ARGS) { + int val; + PTPParams *params = &(camera->pl->params); + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + val = params->inliveview; /* try returning live view mode */ + gp_widget_set_value (*widget, &val); + return GP_OK; +} + +static int +_put_Canon_EOS_ViewFinder(CONFIG_PUT_ARGS) { + int val; + uint16_t res; + PTPParams *params = &(camera->pl->params); + PTPPropertyValue xval; + + CR (gp_widget_get_value(widget, &val)); + if (val) { + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_InitiateViewfinder)) { + res = ptp_canon_eos_start_viewfinder (params); + params->inliveview = 1; + return translate_ptp_result (res); + } + } else { + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_TerminateViewfinder)) { + res = ptp_canon_eos_end_viewfinder (params); + params->inliveview = 0; + return translate_ptp_result (res); + } + } + if (val) + xval.u16 = 2; + else + xval.u16 = 0; + C_PTP_MSG (ptp_canon_eos_setdevicepropvalue (params, PTP_DPC_CANON_EOS_EVFOutputDevice, &xval, PTP_DTC_UINT16), + "ptp2_eos_viewfinder enable", "setval of evf outputmode to %d failed", xval.u32); + return GP_OK; +} + +static int +_get_Panasonic_ViewFinder(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + val = 2; /* always changed, unless we can find out the state ... */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Panasonic_ViewFinder(CONFIG_PUT_ARGS) { + int val; + uint16_t res; + PTPParams *params = &(camera->pl->params); + + CR (gp_widget_get_value(widget, &val)); + if (val) { + res = ptp_panasonic_liveview (params, 1); + params->inliveview = 1; + } else { + res = ptp_panasonic_liveview (params, 0); + params->inliveview = 0; + } + return translate_ptp_result (res); +} + +static int +_get_Nikon_ViewFinder(CONFIG_GET_ARGS) { + int val; + PTPPropertyValue value; + PTPParams *params = &(camera->pl->params); + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + if (LOG_ON_PTP_E (ptp_getdevicepropvalue (params, PTP_DPC_NIKON_LiveViewStatus, &value, PTP_DTC_UINT8)) != PTP_RC_OK ) + value.u8 = 0; + val = value.u8 ? 1 : 0; + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Nikon_ViewFinder(CONFIG_PUT_ARGS) { + int val; + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + if (!ptp_operation_issupported(params, PTP_OC_NIKON_StartLiveView)) + return GP_ERROR_NOT_SUPPORTED; + + CR (gp_widget_get_value (widget, &val)); + if (val) { + PTPPropertyValue value; + + if (LOG_ON_PTP_E (ptp_getdevicepropvalue (params, PTP_DPC_NIKON_LiveViewStatus, &value, PTP_DTC_UINT8)) != PTP_RC_OK) + value.u8 = 0; + + if (!value.u8) { + value.u8 = 1; + LOG_ON_PTP_E (ptp_setdevicepropvalue (params, PTP_DPC_NIKON_RecordingMedia, &value, PTP_DTC_UINT8)); + C_PTP_REP_MSG (ptp_nikon_start_liveview (params), + _("Nikon enable liveview failed")); + /* Has to put the mirror up, so takes a bit. */ + C_PTP (nikon_wait_busy(params, 50, 1000)); + params->inliveview = 1; + } + } else { + if (ptp_operation_issupported(params, PTP_OC_NIKON_EndLiveView)) + C_PTP (ptp_nikon_end_liveview (params)); + params->inliveview = 0; + } + return GP_OK; +} + +static int +_get_Canon_FocusLock(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Canon_FocusLock(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + + CR (gp_widget_get_value(widget, &val)); + if (val) + C_PTP (ptp_canon_focuslock (params)); + else + C_PTP (ptp_canon_focusunlock (params)); + return GP_OK; +} + +static int +_get_PowerDown(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_PowerDown(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + + CR (gp_widget_get_value(widget, &val)); + if (val) + C_PTP (ptp_powerdown (params)); + return GP_OK; +} + +static int +_get_Generic_OPCode(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + gp_widget_set_value (*widget, "0x1001,0xparam1,0xparam2"); + return GP_OK; +} + +static int +_put_Generic_OPCode(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + char *val, *x; + int opcode; + int nparams; + uint32_t xparams[5]; + uint16_t ret; + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size = 0; + + CR (gp_widget_get_value(widget, &val)); + + if (!sscanf(val,"0x%x", &opcode)) + return GP_ERROR_BAD_PARAMETERS; + nparams = 0; x = val; + while ((x = strchr(x,',')) && (nparams<5)) { + x++; + if (!sscanf(x,"0x%x", &xparams[nparams])) + return GP_ERROR_BAD_PARAMETERS; + nparams++; + } + ptp.Code = opcode; + ptp.Nparam = nparams; + ptp.Param1 = xparams[0]; + ptp.Param2 = xparams[1]; + ptp.Param3 = xparams[2]; + ptp.Param4 = xparams[3]; + ptp.Param5 = xparams[4]; + + /* FIXME: handle in data */ + + ret = ptp_transaction (params, &ptp, PTP_DP_GETDATA, 0, &data, &size); + + /* FIXME: handle out data (store locally?) */ + + return translate_ptp_result (ret); +} + +static int +_get_Sony_Movie(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Sony_Movie(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + PTPPropertyValue value; + GPContext *context = ((PTPData *) params->data)->context; + + CR (gp_widget_get_value(widget, &val)); + if (val) + value.u16 = 2; + else + value.u16 = 1; + C_PTP_REP (ptp_sony_setdevicecontrolvalueb (params, 0xD2C8, &value, PTP_DTC_UINT16 )); + return GP_OK; +} +static int +_get_Nikon_Movie(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Nikon_Movie(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val, ret; + GPContext *context = ((PTPData *) params->data)->context; + + CR (gp_widget_get_value(widget, &val)); + if (val) { + PTPPropertyValue value; + + if (have_prop(camera,PTP_VENDOR_NIKON,PTP_DPC_NIKON_ApplicationMode)) { + value.u8 = 0; + C_PTP (ptp_getdevicepropvalue (params, PTP_DPC_NIKON_ApplicationMode, &value, PTP_DTC_UINT8)); + if (value.u8 != 1) { + value.u8 = 1; + C_PTP (ptp_setdevicepropvalue (params, PTP_DPC_NIKON_ApplicationMode, &value, PTP_DTC_UINT8)); + } + } + + ret = ptp_getdevicepropvalue (params, PTP_DPC_NIKON_LiveViewStatus, &value, PTP_DTC_UINT8); + if (ret != PTP_RC_OK) + value.u8 = 0; + + if (!value.u8) { + value.u8 = 1; + LOG_ON_PTP_E (ptp_setdevicepropvalue (params, PTP_DPC_NIKON_RecordingMedia, &value, PTP_DTC_UINT8)); + C_PTP_REP_MSG (ptp_nikon_start_liveview (params), + _("Nikon enable liveview failed")); + C_PTP_REP_MSG (nikon_wait_busy(params, 50, 1000), + _("Nikon enable liveview failed")); + } + C_PTP_REP (ptp_nikon_startmovie (params)); + } else + C_PTP_REP (ptp_nikon_stopmovie (params)); + return GP_OK; +} + +static int +_get_Nikon_Bulb(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Nikon_Bulb(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + + CR (gp_widget_get_value(widget, &val)); + if (val) { + PTPPropertyValue propval2; + char buf[20]; + + C_PTP (ptp_nikon_setcontrolmode (params, 1)); + propval2.u16 = 1; /* Exposure Mode to Full Manual */ + C_PTP (ptp_setdevicepropvalue (params, PTP_DPC_ExposureProgramMode, &propval2, PTP_DTC_UINT16)); + propval2.u32 = 0xffffffff; /* Exposure Time to bulb */ + C_PTP_MSG (ptp_setdevicepropvalue (params, PTP_DPC_ExposureTime, &propval2, PTP_DTC_UINT32), + "failed to set exposuretime to bulb"); + /* If there is no capturetarget set yet, the default is "sdram" */ + if (GP_OK != gp_setting_get("ptp2","capturetarget",buf)) + strcpy (buf, "sdram"); + + C_PTP_MSG (ptp_nikon_capture2 (params, 0/*No AF*/, !strcmp(buf,"sdram")), + "failed to initiate bulb capture"); + return GP_OK; + } else { + C_PTP (ptp_nikon_terminatecapture (params, 0, 0)); + C_PTP (nikon_wait_busy(params, 100, 5000)); + return GP_OK; + } +} + + +static int +_get_OpenCapture(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return GP_OK; +} + +static int +_put_OpenCapture(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + GPContext *context = ((PTPData *) params->data)->context; + + CR (gp_widget_get_value(widget, &val)); + if (val) { + C_PTP_REP (ptp_initiateopencapture (params, 0x0, 0x0)); /* so far use only defaults for storage and ofc */ + params->opencapture_transid = params->transaction_id-1; /* transid will be incremented already */ + } else { + C_PTP_REP (ptp_terminateopencapture (params, params->opencapture_transid)); + } + return GP_OK; +} + +static int +_get_Sony_Autofocus(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Sony_Autofocus(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + PTPPropertyValue xpropval; + + CR (gp_widget_get_value(widget, &val)); + xpropval.u16 = val ? 2 : 1; + + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_AutoFocus, &xpropval, PTP_DTC_UINT16)); + + return GP_OK; +} + +static int +_get_Sony_ManualFocus(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_range(*widget, -7.0, 7.0, 1.0); + gp_widget_set_name (*widget,menu->name); + val = 0.0; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Sony_ManualFocus(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + float val; + PTPPropertyValue xpropval; + + CR (gp_widget_get_value(widget, &val)); + + if(val != 0.0) { + /* value 2 seems to set it to autofocusmode. see issue https://github.com/gphoto/libgphoto2/issues/434 + xpropval.u16 = 2; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, 0xd2d2, &xpropval, PTP_DTC_UINT16)); + */ + if(val <= -7) xpropval.u16 = 0xFFFF - 6; + else if(val <= -6.0) xpropval.u16 = 0xFFFF - 5; + else if(val <= -5.0) xpropval.u16 = 0xFFFF - 4; + else if(val <= -4.0) xpropval.u16 = 0xFFFF - 3; + else if(val <= -3.0) xpropval.u16 = 0xFFFF - 2; + else if(val <= -2.0) xpropval.u16 = 0xFFFF - 1; + else if(val <= -1.0) xpropval.u16 = 0xFFFF; + else if(val <= 1.0) xpropval.u16 = 1; + else if(val <= 2.0) xpropval.u16 = 2; + else if(val <= 3.0) xpropval.u16 = 3; + else if(val <= 4.0) xpropval.u16 = 4; + else if(val <= 5.0) xpropval.u16 = 5; + else if(val <= 6.0) xpropval.u16 = 6; + else if(val <= 7.0) xpropval.u16 = 7; + else xpropval.u16 = 0; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, 0xd2d1, &xpropval, PTP_DTC_UINT16)); + } else { + xpropval.u16 = 1; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, 0xd2d2, &xpropval, PTP_DTC_UINT16)); + } + + return GP_OK; +} + +static int +_get_Sony_Capture(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return GP_OK; +} + +static int +_put_Sony_Capture(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + PTPPropertyValue xpropval; + + CR (gp_widget_get_value(widget, &val)); + xpropval.u16 = val ? 2 : 1; + + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_Capture, &xpropval, PTP_DTC_UINT16)); + + return GP_OK; +} + +static int +_get_Sony_Bulb(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Sony_Bulb(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + PTPPropertyValue xpropval; + + CR (gp_widget_get_value(widget, &val)); + if (val) { + xpropval.u16 = 1; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_AutoFocus, &xpropval, PTP_DTC_UINT16)); + + xpropval.u16 = 2; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_StillImage, &xpropval, PTP_DTC_UINT16)); + } else { + xpropval.u16 = 1; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_Capture, &xpropval, PTP_DTC_UINT16)); + + xpropval.u16 = 1; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_AutoFocus, &xpropval, PTP_DTC_UINT16)); + } + return GP_OK; +} + +static int +_put_Panasonic_Shutter(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + char *xval; + uint32_t val; + float f; + + CR (gp_widget_get_value(widget, &xval)); + if(xval[0] == 'b' || xval[0] == 'B') { + val = 0xFFFFFFFF; + } else if(xval[1] == '/') { + sscanf (xval, "1/%f", &f); + f *= 1000; + val = (uint32_t) f; + } else { + sscanf (xval, "%f", &f); + f *= 1000; + val = (uint32_t) f; + val |= 0x80000000; + } + + //printf("setting shutterspeed to %lu (%s)\n", val, xval); + + return translate_ptp_result (ptp_panasonic_setdeviceproperty(params, 0x2000031, (unsigned char*)&val, 4)); +} + +static int +_get_Panasonic_Shutter(CONFIG_GET_ARGS) { + uint32_t currentVal; + uint32_t listCount; + uint32_t *list; + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + C_PTP_REP (ptp_panasonic_getdevicepropertydesc(params, 0x2000030, 4, ¤tVal, &list, &listCount)); + + //printf("retrieved %lu property values\n", listCount); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + uint32_t i; + float f; + char buf[16]; + for (i = 0; i < listCount; i++) { + if(currentVal == 0xFFFFFFFF) { + sprintf (buf, "bulb"); + } else if(list[i] & 0x80000000) { + list[i] &= ~0x80000000; + f = (float) list[i]; + f /= 1000; + if(list[i] % 1000 == 0) { + sprintf (buf, "%.0f", f); + } else { + sprintf (buf, "%.1f", f); + } + } else { + f = (float) list[i]; + f /= 1000; + if(list[i] % 1000 == 0) { + sprintf (buf, "1/%.0f", f); + } else { + sprintf (buf, "1/%.1f", f); + } + } + gp_widget_add_choice (*widget, buf); + } + + if(currentVal == 0) { + uint16_t valuesize; + ptp_panasonic_getdeviceproperty(params, 0x2000030, &valuesize, ¤tVal); + } + + if(currentVal == 0xFFFFFFFF) { + sprintf (buf, "bulb"); + } else if(currentVal & 0x80000000) { + currentVal &= ~0x80000000; + f = (float) currentVal; + f /= 1000; + if(currentVal % 1000 == 0) { + sprintf (buf, "%.0f", f); + } else { + sprintf (buf, "%.1f", f); + } + } else { + f = (float) currentVal; + f /= 1000; + if(currentVal % 1000 == 0) { + sprintf (buf, "1/%.0f", f); + } else { + sprintf (buf, "1/%.1f", f); + } + } + + gp_widget_set_value (*widget, &buf); + + free(list); + + return GP_OK; +} + +static int +_put_Panasonic_ISO(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + char *xval; + unsigned int ival; + uint32_t val; + + CR (gp_widget_get_value(widget, &xval)); + sscanf (xval, "%d", &ival); + val = ival; + + //printf("setting ISO to %lu (%s)\n", val, xval); + + return translate_ptp_result (ptp_panasonic_setdeviceproperty(params, 0x2000021, (unsigned char*)&val, 4)); +} + +static int +_get_Panasonic_ISO(CONFIG_GET_ARGS) { + uint32_t currentVal; + uint32_t listCount; + uint32_t *list; + uint16_t valsize; + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + C_PTP_REP (ptp_panasonic_getdevicepropertydesc(params, 0x2000020, 4, ¤tVal, &list, &listCount)); + + //printf("retrieved %lu property values\n", listCount); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + uint32_t i; + char buf[16]; + for (i = 0; i < listCount; i++) { + sprintf (buf, "%d", (unsigned int)list[i]); + gp_widget_add_choice (*widget, buf); + } + ptp_panasonic_getdeviceproperty(params, 0x2000021, &valsize, ¤tVal); + + sprintf (buf, "%d", (unsigned int)currentVal); + gp_widget_set_value (*widget, buf); + + free(list); + + return GP_OK; +} + +static +struct { + char* str; + uint16_t val; +} panasonic_wbtable[] = { + { N_("Automatic"), 0x0002 }, + { N_("Daylight"), 0x0004 }, + { N_("Cloudy"), 32776 }, + { N_("Tungsten"), 0x0006 }, + { N_("Flash"), 0x0007 }, + { N_("Preset 1"), 32779 }, + { N_("Preset 2"), 32780 }, + { N_("Preset 3"), 32781 }, + { N_("Preset 4"), 32782 }, + { N_("Shadow"), 32783 }, + { N_("Temperature 1"), 32784 }, + { N_("Temperature 2"), 32785 }, + { N_("Temperature 3"), 32786 }, + { N_("Temperature 4"), 32787 }, + { N_("Automatic C"), 32788 }, +}; + +static int +_put_Panasonic_Whitebalance(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + char *xval; + uint32_t val = 0; + uint32_t currentVal; + uint32_t listCount; + uint32_t *list; + int i,ival; + + CR (gp_widget_get_value(widget, &xval)); + + C_PTP_REP (ptp_panasonic_getdevicepropertydesc(params, PTP_DPC_PANASONIC_WhiteBalance, 2, ¤tVal, &list, &listCount)); + + if (sscanf(xval,_("Unknown 0x%04x"), &ival)) + val = ival; + + for (i = 0; i < listCount; i++) { + int j; + + for (j=0;jpl->params); + GPContext *context = ((PTPData *) params->data)->context; + + C_PTP_REP (ptp_panasonic_getdevicepropertydesc(params, PTP_DPC_PANASONIC_WhiteBalance, 2, ¤tVal, &list, &listCount)); + + //printf("retrieved %lu property values\n", listCount); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + for (i = 0; i < listCount; i++) { + sprintf(buf,_("Unknown 0x%04x"), list[i]); + for (j=0;jpl->params); + char *xval; + uint32_t val; + float f; + + CR (gp_widget_get_value(widget, &xval)); + + sscanf (xval, "%f", &f); + + if (f < 0) + val = (uint32_t)(0x8000 | (int)(((-f)*3))); + else + val = (uint32_t) (f*3); + return translate_ptp_result (ptp_panasonic_setdeviceproperty(params, PTP_DPC_PANASONIC_Exposure, (unsigned char*)&val, 2)); +} + +static int +_get_Panasonic_Exposure(CONFIG_GET_ARGS) { + uint32_t currentVal; + uint32_t listCount; + uint32_t *list; + uint32_t i; + char buf[16]; + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + C_PTP_REP (ptp_panasonic_getdevicepropertydesc(params, PTP_DPC_PANASONIC_Exposure, 2, ¤tVal, &list, &listCount)); + + //printf("retrieved %lu property values\n", listCount); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + for (i = 0; i < listCount; i++) { + int val = (int)list[i]; + + if (val & 0x8000) + val = -(val & 0x7fff); + sprintf (buf, "%f", val/3.0); + gp_widget_add_choice (*widget, buf); + } + free(list); + + sprintf (buf, "%f", (float)currentVal); + gp_widget_set_value (*widget, &buf); + return GP_OK; +} + +static int +_put_Panasonic_FNumber(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + char *xval; + uint32_t val; + + CR (gp_widget_get_value(widget, &xval)); + float f; + sscanf (xval, "%f", &f); + val = (uint32_t) (f*10); + + //printf("setting ISO to %lu (%s)\n", val, xval); + + return translate_ptp_result (ptp_panasonic_setdeviceproperty(params, 0x2000041, (unsigned char*)&val, 2)); +} + +static int +_get_Panasonic_FNumber(CONFIG_GET_ARGS) { + uint32_t currentVal; + uint32_t listCount; + uint16_t valsize; + uint32_t *list; + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + C_PTP_REP (ptp_panasonic_getdevicepropertydesc(params, 0x2000040, 2, ¤tVal, &list, &listCount)); + + //printf("retrieved %lu property values\n", listCount); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + uint32_t i; + float f; + char buf[16]; + for (i = 0; i < listCount; i++) { + f = (float) list[i]; + f /= 10.0; + if(list[i] % 10 == 0) { + sprintf (buf, "%.0f", f); + } else { + sprintf (buf, "%.1f", f); + } + gp_widget_add_choice (*widget, buf); + } + ptp_panasonic_getdeviceproperty(params, 0x2000041, &valsize, ¤tVal); + + f = (float) currentVal; + f /= 10.0; + if(currentVal % 10 == 0) { + sprintf (buf, "%.0f", f); + } else { + sprintf (buf, "%.1f", f); + } + + gp_widget_set_value (*widget, &buf); + + free(list); + + return GP_OK; +} + +static int +_put_Panasonic_ImageFormat(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + char *xval; + uint32_t val; + unsigned int uval; + + CR (gp_widget_get_value(widget, &xval)); + + sscanf (xval, "%u", &uval); + val = uval; + //printf("setting ImageFormat to %lu (%s)\n", val, xval); + + return translate_ptp_result (ptp_panasonic_setdeviceproperty(params, 0x20000A2, (unsigned char*)&val, 2)); +} + +static int +_get_Panasonic_ImageFormat(CONFIG_GET_ARGS) { + uint32_t currentVal; + uint32_t listCount; + uint32_t *list; + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + C_PTP_REP (ptp_panasonic_getdevicepropertydesc(params, 0x20000A2, 2, ¤tVal, &list, &listCount)); + + //printf("retrieved %lu property values\n", listCount); + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + uint32_t i; + char buf[16]; + for (i = 0; i < listCount; i++) { + sprintf (buf, "%u", (unsigned int)list[i]); + gp_widget_add_choice (*widget, buf); + } + + sprintf (buf, "%u", (unsigned int)currentVal); + gp_widget_set_value (*widget, buf); + + free(list); + + return GP_OK; +} + +static int +_get_Canon_EOS_Bulb(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Canon_EOS_Bulb(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + GPContext *context = ((PTPData *) params->data)->context; + + CR (gp_widget_get_value(widget, &val)); + if (val) { + int ret = ptp_canon_eos_bulbstart (params); + if (ret == PTP_RC_GeneralError) { + gp_context_error (((PTPData *) camera->pl->params.data)->context, + _("For bulb capture to work, make sure the mode dial is switched to 'M' and set 'shutterspeed' to 'bulb'.")); + return translate_ptp_result (ret); + } + C_PTP_REP (ret); + } else { + C_PTP_REP (ptp_canon_eos_bulbend (params)); + } + return GP_OK; +} + +static int +_get_Canon_EOS_UILock(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Canon_EOS_UILock(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + int val; + GPContext *context = ((PTPData *) params->data)->context; + + CR (gp_widget_get_value(widget, &val)); + if (val) + C_PTP_REP (ptp_canon_eos_setuilock (params)); + else + C_PTP_REP (ptp_canon_eos_resetuilock (params)); + return GP_OK; +} + +static int +_get_Canon_EOS_PopupFlash(CONFIG_GET_ARGS) { + int val; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget,menu->name); + val = 2; /* always changed */ + gp_widget_set_value (*widget, &val); + return GP_OK; +} + +static int +_put_Canon_EOS_PopupFlash(CONFIG_PUT_ARGS) +{ + PTPParams *params = &(camera->pl->params); + GPContext *context = ((PTPData *) params->data)->context; + + C_PTP_REP (ptp_canon_eos_popupflash (params)); + return GP_OK; +} + +static int +_get_Nikon_FastFS(CONFIG_GET_ARGS) { + int val; + char buf[1024]; + + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + val = 1; /* default is fast fs */ + if (GP_OK == gp_setting_get("ptp2","nikon.fastfilesystem", buf)) + val = atoi(buf); + gp_widget_set_value (*widget, &val); + return (GP_OK); +} + +static int +_put_Nikon_FastFS(CONFIG_PUT_ARGS) { + int val; + char buf[20]; + + CR (gp_widget_get_value(widget, &val)); + sprintf(buf,"%d",val); + gp_setting_set("ptp2","nikon.fastfilesystem",buf); + return GP_OK; +} + +static struct { + char *name; + char *label; +} capturetargets[] = { + {"sdram", N_("Internal RAM") }, + {"card", N_("Memory card") }, +}; + +static int +_get_CaptureTarget(CONFIG_GET_ARGS) { + int i; + char buf[1024]; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + if (GP_OK != gp_setting_get("ptp2","capturetarget", buf)) + strcpy(buf,"sdram"); + + for (i=0;ipl->params); + GPContext *context = ((PTPData *) params->data)->context; + char buf[1024]; + + CR (gp_widget_get_value(widget, &val)); + for (i=0;ideviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + (ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteRelease) || + ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn) + ) + ) + CR (camera_canon_eos_update_capture_target( camera, context, -1 )); + + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_PANASONIC) { + if ((GP_OK != gp_setting_get("ptp2","capturetarget",buf)) || !strcmp(buf,"sdram")) + C_PTP (ptp_panasonic_setcapturetarget(params, 1)); + else + C_PTP (ptp_panasonic_setcapturetarget(params, 0)); + } + return GP_OK; +} + +static struct { + char *name; + char *label; +} chdkonoff[] = { + {"on", N_("On") }, + {"off", N_("Off") }, +}; + +static int +_get_CHDK(CONFIG_GET_ARGS) { + int i; + char buf[1024]; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + if (GP_OK != gp_setting_get("ptp2","chdk", buf)) + strcpy(buf,"off"); + for (i=0;ilabel), widget); + gp_widget_set_name (*widget, menu->name); + if (GP_OK != gp_setting_get("ptp2","autofocus", buf)) + strcpy(buf,"on"); + for (i=0;ipl->params); + + if (camera->pl->params.deviceinfo.VendorExtensionID != PTP_VENDOR_NIKON) + return (GP_ERROR_NOT_SUPPORTED); + + for (i = 0; i < gp_widget_count_children(widget); i++) { + gp_widget_get_child(widget, i, &child); + gp_widget_get_child_by_name(child, "delete", &child2); + + gp_widget_get_value(child2, &value); + if (value) { + gp_widget_get_name(child, &name); + /* FIXME: far from elegant way to get ID back... */ + val = strtol(name, &endptr, 0); + if (!*endptr) { + C_PTP (ptp_nikon_deletewifiprofile(&(camera->pl->params), val)); + gp_widget_set_value(child2, 0); + } + } + } + + /* FIXME: deleted entry still exists, rebuild tree if deleted = 1 ? */ + + return GP_OK; +} + +static int +_get_nikon_list_wifi_profiles (CONFIG_GET_ARGS) +{ + CameraWidget *child; + int ret; + char buffer[4096]; + int i; + PTPParams *params = &(camera->pl->params); + + if (params->deviceinfo.VendorExtensionID != PTP_VENDOR_NIKON) + return (GP_ERROR_NOT_SUPPORTED); + + /* check for more codes, on non-wireless nikons getwifiprofilelist might hang */ + if (!ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_GetProfileAllData) || + !ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_SendProfileData) || + !ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_DeleteProfile) || + !ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_SetProfileData)) + return (GP_ERROR_NOT_SUPPORTED); + + ret = ptp_nikon_getwifiprofilelist(params); + if (ret != PTP_RC_OK) + return (GP_ERROR_NOT_SUPPORTED); + + gp_widget_new (GP_WIDGET_SECTION, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_new (GP_WIDGET_TEXT, "Version", &child); + snprintf(buffer, 4096, "%d", params->wifi_profiles_version); + gp_widget_set_value(child, buffer); + gp_widget_append(*widget, child); + + for (i = 0; i < params->wifi_profiles_number; i++) { + CameraWidget *child2; + if (params->wifi_profiles[i].valid) { + gp_widget_new (GP_WIDGET_SECTION, params->wifi_profiles[i].profile_name, &child); + snprintf(buffer, 4096, "%d", params->wifi_profiles[i].id); + gp_widget_set_name(child, buffer); + gp_widget_append(*widget, child); + + gp_widget_new (GP_WIDGET_TEXT, _("ID"), &child2); + snprintf (buffer, 4096, "%d", params->wifi_profiles[i].id); + gp_widget_set_value(child2, buffer); + gp_widget_append(child, child2); + + gp_widget_new (GP_WIDGET_TEXT, _("ESSID"), &child2); + snprintf (buffer, 4096, "%s", params->wifi_profiles[i].essid); + gp_widget_set_value(child2, buffer); + gp_widget_append(child, child2); + + gp_widget_new (GP_WIDGET_TEXT, _("Display"), &child2); + snprintf (buffer, 4096, "Order: %d, Icon: %d, Device type: %d", + params->wifi_profiles[i].display_order, + params->wifi_profiles[i].icon_type, + params->wifi_profiles[i].device_type); + gp_widget_set_value(child2, buffer); + gp_widget_append(child, child2); + + gp_widget_new (GP_WIDGET_TEXT, "Dates", &child2); + snprintf (buffer, 4096, + _("Creation date: %s, Last usage date: %s"), + params->wifi_profiles[i].creation_date, + params->wifi_profiles[i].lastusage_date); + gp_widget_set_value(child2, buffer); + gp_widget_append(child, child2); + + gp_widget_new (GP_WIDGET_TOGGLE, _("Delete"), &child2); + gp_widget_set_value(child2, 0); + gp_widget_set_name(child2, "delete"); + gp_widget_append(child, child2); + } + } + + return GP_OK; +} + +static int +_get_nikon_wifi_profile_prop(CONFIG_GET_ARGS) { + char buffer[1024]; + + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_setting_get("ptp2_wifi",menu->name,buffer); + gp_widget_set_value(*widget,buffer); + return (GP_OK); +} + +static int +_put_nikon_wifi_profile_prop(CONFIG_PUT_ARGS) { + char *string, *name; + CR (gp_widget_get_value(widget, &string)); + gp_widget_get_name(widget,(const char**)&name); + gp_setting_set("ptp2_wifi",name,string); + return (GP_OK); +} + +static int +_get_nikon_wifi_profile_channel(CONFIG_GET_ARGS) { + char buffer[1024]; + float val; + + gp_widget_new (GP_WIDGET_RANGE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_setting_get("ptp2_wifi", menu->name, buffer); + val = (float)atoi(buffer); + gp_widget_set_range(*widget, 1.0, 11.0, 1.0); + if (!val) + val = 1.0; + gp_widget_set_value(*widget, &val); + + return (GP_OK); +} + +static int +_put_nikon_wifi_profile_channel(CONFIG_PUT_ARGS) { + char *name; + float val; + char buffer[16]; + CR (gp_widget_get_value(widget, &val)); + gp_widget_get_name(widget,(const char**)&name); + + snprintf(buffer, 16, "%d", (int)val); + gp_setting_set("ptp2_wifi",name,buffer); + return GP_OK; +} + +static char* encryption_values[] = { +N_("None"), +N_("WEP 64-bit"), +N_("WEP 128-bit"), +NULL +}; + +static int +_get_nikon_wifi_profile_encryption(CONFIG_GET_ARGS) { + char buffer[1024]; + int i; + int val; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_setting_get("ptp2_wifi", menu->name, buffer); + val = atoi(buffer); + + for (i = 0; encryption_values[i]; i++) { + gp_widget_add_choice(*widget, _(encryption_values[i])); + if (i == val) + gp_widget_set_value(*widget, _(encryption_values[i])); + } + + return (GP_OK); +} + +static int +_put_nikon_wifi_profile_encryption(CONFIG_PUT_ARGS) { + char *string, *name; + int i; + char buffer[16]; + CR (gp_widget_get_value(widget, &string)); + gp_widget_get_name(widget,(const char**)&name); + + for (i = 0; encryption_values[i]; i++) { + if (!strcmp(_(encryption_values[i]), string)) { + snprintf(buffer, 16, "%d", i); + gp_setting_set("ptp2_wifi",name,buffer); + return GP_OK; + } + } + + return GP_ERROR_BAD_PARAMETERS; +} + +static char* accessmode_values[] = { +N_("Managed"), +N_("Ad-hoc"), +NULL +}; + +static int +_get_nikon_wifi_profile_accessmode(CONFIG_GET_ARGS) { + char buffer[1024]; + int i; + int val; + + gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_setting_get("ptp2_wifi", menu->name, buffer); + val = atoi(buffer); + + for (i = 0; accessmode_values[i]; i++) { + gp_widget_add_choice(*widget, _(accessmode_values[i])); + if (i == val) + gp_widget_set_value(*widget, _(accessmode_values[i])); + } + + return (GP_OK); +} + +static int +_put_nikon_wifi_profile_accessmode(CONFIG_PUT_ARGS) { + char *string, *name; + int i; + char buffer[16]; + CR (gp_widget_get_value(widget, &string)); + gp_widget_get_name(widget,(const char**)&name); + + for (i = 0; accessmode_values[i]; i++) { + if (!strcmp(_(accessmode_values[i]), string)) { + snprintf(buffer, 16, "%d", i); + gp_setting_set("ptp2_wifi",name,buffer); + return GP_OK; + } + } + + return GP_ERROR_BAD_PARAMETERS; +} + +static int +_get_nikon_wifi_profile_write(CONFIG_GET_ARGS) { + gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_set_value(*widget, 0); + return (GP_OK); +} + +static int +_put_nikon_wifi_profile_write(CONFIG_PUT_ARGS) { + char buffer[1024]; + char keypart[3]; + char* pos, *endptr; + int value, i; + CR (gp_widget_get_value(widget, &value)); + if (value) { + struct in_addr inp; + PTPNIKONWifiProfile profile; + memset(&profile, 0, sizeof(PTPNIKONWifiProfile)); + profile.icon_type = 1; + profile.key_nr = 1; + + gp_setting_get("ptp2_wifi","name",buffer); + strncpy(profile.profile_name, buffer, 16); + gp_setting_get("ptp2_wifi","essid",buffer); + strncpy(profile.essid, buffer, 32); + + gp_setting_get("ptp2_wifi","accessmode",buffer); + profile.access_mode = atoi(buffer); + + gp_setting_get("ptp2_wifi","ipaddr",buffer); +/* fixme: replacement on win32 where we do not have this helper */ +#ifdef HAVE_INET_ATON + if (buffer[0] != 0) { /* No DHCP */ + C_PARAMS_MSG (inet_aton (buffer, &inp), "failed to scan for addr in %s.", buffer); + profile.ip_address = inp.s_addr; + gp_setting_get("ptp2_wifi","netmask",buffer); + C_PARAMS_MSG (inet_aton (buffer, &inp), "failed to scan for netmask in %s.", buffer); + inp.s_addr = be32toh(inp.s_addr); /* Reverse bytes so we can use the code below. */ + profile.subnet_mask = 32; + while (((inp.s_addr >> (32-profile.subnet_mask)) & 0x01) == 0) { + profile.subnet_mask--; + C_PARAMS_MSG (profile.subnet_mask > 0, "Invalid subnet mask %s: no zeros.", buffer); + } + /* Check there is only ones left */ + C_PARAMS_MSG ((inp.s_addr | ((0x01 << (32-profile.subnet_mask)) - 1)) == 0xFFFFFFFF, + "Invalid subnet mask %s: misplaced zeros.", buffer); + + /* Gateway (never tested) */ + gp_setting_get("ptp2_wifi","gw",buffer); + if (*buffer) { + C_PARAMS_MSG (inet_aton (buffer, &inp), "failed to scan for gw in %s", buffer); + profile.gateway_address = inp.s_addr; + } + } + else +#endif + { /* DHCP */ + /* Never use mode 2, as mode 3 switches to mode 2 + * if it gets no DHCP answer. */ + profile.address_mode = 3; + } + + gp_setting_get("ptp2_wifi","channel",buffer); + profile.wifi_channel = atoi(buffer); + + /* Encryption */ + gp_setting_get("ptp2_wifi","encryption",buffer); + profile.encryption = atoi(buffer); + + if (profile.encryption != 0) { + gp_setting_get("ptp2_wifi","key",buffer); + i = 0; + pos = buffer; + keypart[2] = 0; + while (*pos) { + C_PARAMS_MSG (*(pos+1), "Bad key: '%s'", buffer); + keypart[0] = *(pos++); + keypart[1] = *(pos++); + profile.key[i++] = strtol(keypart, &endptr, 16); + C_PARAMS_MSG (endptr == keypart+2, "Bad key: '%s', '%s' is not a number.", buffer, keypart); + if (*pos == ':') + pos++; + } + if (profile.encryption == 1) /* WEP 64-bit */ + C_PARAMS_MSG (i == 5, "Bad key: '%s', %d bit length, should be 40 bit.", buffer, i*8); /* 5*8 = 40 bit + 24 bit (IV) = 64 bit */ + else if (profile.encryption == 2) /* WEP 128-bit */ + C_PARAMS_MSG (i == 13, "Bad key: '%s', %d bit length, should be 104 bit.", buffer, i*8); /* 13*8 = 104 bit + 24 bit (IV) = 128 bit */ + } + + ptp_nikon_writewifiprofile(&(camera->pl->params), &profile); + } + return (GP_OK); +} + +static struct submenu create_wifi_profile_submenu[] = { + { N_("Profile name"), "name", 0, PTP_VENDOR_NIKON, 0, _get_nikon_wifi_profile_prop, _put_nikon_wifi_profile_prop }, + { N_("WIFI ESSID"), "essid", 0, PTP_VENDOR_NIKON, 0, _get_nikon_wifi_profile_prop, _put_nikon_wifi_profile_prop }, + { N_("IP address (empty for DHCP)"), "ipaddr", 0, PTP_VENDOR_NIKON, 0, _get_nikon_wifi_profile_prop, _put_nikon_wifi_profile_prop }, + { N_("Network mask"), "netmask", 0, PTP_VENDOR_NIKON, 0, _get_nikon_wifi_profile_prop, _put_nikon_wifi_profile_prop }, + { N_("Default gateway"), "gw", 0, PTP_VENDOR_NIKON, 0, _get_nikon_wifi_profile_prop, _put_nikon_wifi_profile_prop }, + { N_("Access mode"), "accessmode", 0, PTP_VENDOR_NIKON, 0, _get_nikon_wifi_profile_accessmode, _put_nikon_wifi_profile_accessmode }, + { N_("WIFI channel"), "channel", 0, PTP_VENDOR_NIKON, 0, _get_nikon_wifi_profile_channel, _put_nikon_wifi_profile_channel }, + { N_("Encryption"), "encryption", 0, PTP_VENDOR_NIKON, 0, _get_nikon_wifi_profile_encryption, _put_nikon_wifi_profile_encryption }, + { N_("Encryption key (hex)"), "key", 0, PTP_VENDOR_NIKON, 0, _get_nikon_wifi_profile_prop, _put_nikon_wifi_profile_prop }, + { N_("Write"), "write", 0, PTP_VENDOR_NIKON, 0, _get_nikon_wifi_profile_write, _put_nikon_wifi_profile_write }, + { 0,0,0,0,0,0,0 }, +}; + +static int +_get_nikon_create_wifi_profile (CONFIG_GET_ARGS) +{ + int submenuno, ret; + CameraWidget *subwidget; + + gp_widget_new (GP_WIDGET_SECTION, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + for (submenuno = 0; create_wifi_profile_submenu[submenuno].name ; submenuno++ ) { + struct submenu *cursub = create_wifi_profile_submenu+submenuno; + + ret = cursub->getfunc (camera, &subwidget, cursub, NULL); + if (ret == GP_OK) + gp_widget_append (*widget, subwidget); + } + + return GP_OK; +} + +static int +_put_nikon_create_wifi_profile (CONFIG_PUT_ARGS) +{ + int submenuno, ret; + CameraWidget *subwidget; + + for (submenuno = 0; create_wifi_profile_submenu[submenuno].name ; submenuno++ ) { + struct submenu *cursub = create_wifi_profile_submenu+submenuno; + + ret = gp_widget_get_child_by_label (widget, _(cursub->label), &subwidget); + if (ret != GP_OK) + continue; + + if (!gp_widget_changed (subwidget)) + continue; + + gp_widget_set_changed (subwidget, FALSE); + + ret = cursub->putfunc (camera, subwidget, NULL, NULL); + } + + return GP_OK; +} + +static struct submenu wifi_profiles_menu[] = { + /* wifi */ + { N_("List Wifi profiles"), "list", 0, PTP_VENDOR_NIKON, 0, _get_nikon_list_wifi_profiles, _put_nikon_list_wifi_profiles }, + { N_("Create Wifi profile"), "new", 0, PTP_VENDOR_NIKON, 0, _get_nikon_create_wifi_profile, _put_nikon_create_wifi_profile }, + { 0,0,0,0,0,0,0 }, +}; + +/* Wifi profiles menu is a non-standard menu, because putfunc is always + * called on each submenu, whether or not the value has been changed. */ +static int +_get_wifi_profiles_menu (CONFIG_MENU_GET_ARGS) +{ + CameraWidget *subwidget; + int submenuno, ret; + + if (camera->pl->params.deviceinfo.VendorExtensionID != PTP_VENDOR_NIKON) + return (GP_ERROR_NOT_SUPPORTED); + + if (!ptp_operation_issupported (&camera->pl->params, PTP_OC_NIKON_GetProfileAllData)) + return (GP_ERROR_NOT_SUPPORTED); + + gp_widget_new (GP_WIDGET_SECTION, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + + for (submenuno = 0; wifi_profiles_menu[submenuno].name ; submenuno++ ) { + struct submenu *cursub = wifi_profiles_menu+submenuno; + + ret = cursub->getfunc (camera, &subwidget, cursub, NULL); + if (ret == GP_OK) + gp_widget_append (*widget, subwidget); + } + + return GP_OK; +} + +static int +_put_wifi_profiles_menu (CONFIG_MENU_PUT_ARGS) +{ + int submenuno, ret; + CameraWidget *subwidget; + + for (submenuno = 0; wifi_profiles_menu[submenuno].name ; submenuno++ ) { + struct submenu *cursub = wifi_profiles_menu+submenuno; + + ret = gp_widget_get_child_by_label (widget, _(cursub->label), &subwidget); + if (ret != GP_OK) + continue; + + ret = cursub->putfunc (camera, subwidget, NULL, NULL); + } + + return GP_OK; +} + +static int +_get_PTP_DeviceVersion_STR(CONFIG_GET_ARGS) { + PTPParams *params = &camera->pl->params; + + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_set_value (*widget,params->deviceinfo.DeviceVersion?params->deviceinfo.DeviceVersion:_("None")); + return GP_OK; +} + +static int +_get_PTP_Model_STR(CONFIG_GET_ARGS) { + PTPParams *params = &camera->pl->params; + + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_set_value (*widget,params->deviceinfo.Model?params->deviceinfo.Model:_("None")); + return GP_OK; +} + +static int +_get_PTP_VendorExtension_STR(CONFIG_GET_ARGS) { + PTPParams *params = &camera->pl->params; + + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_set_value (*widget,params->deviceinfo.VendorExtensionDesc?params->deviceinfo.VendorExtensionDesc:_("None")); + return GP_OK; +} + +static int +_get_PTP_Serial_STR(CONFIG_GET_ARGS) { + PTPParams *params = &camera->pl->params; + + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_set_value (*widget,params->deviceinfo.SerialNumber?params->deviceinfo.SerialNumber:_("None")); + return GP_OK; +} + +static int +_get_PTP_Manufacturer_STR(CONFIG_GET_ARGS) { + PTPParams *params = &camera->pl->params; + + gp_widget_new (GP_WIDGET_TEXT, _(menu->label), widget); + gp_widget_set_name (*widget, menu->name); + gp_widget_set_value (*widget,params->deviceinfo.Manufacturer?params->deviceinfo.Manufacturer:_("None")); + return GP_OK; +} + + +static struct submenu camera_actions_menu[] = { + /* { N_("Viewfinder Mode"), "viewfinder", PTP_DPC_CANON_ViewFinderMode, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_Canon_ViewFinderMode, _put_Canon_ViewFinderMode}, */ + /*{ N_("Synchronize camera date and time with PC"),"syncdatetime", PTP_DPC_CANON_UnixTime, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_Canon_SyncTime, _put_Canon_SyncTime },*/ + { N_("Synchronize camera date and time with PC"),"syncdatetimeutc", PTP_DPC_CANON_EOS_UTCTime, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_Canon_SyncTime, _put_Canon_SyncTime }, + { N_("Synchronize camera date and time with PC"),"syncdatetime", PTP_DPC_CANON_EOS_CameraTime, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_Canon_SyncTime, _put_Canon_SyncTime }, + + { N_("Auto-Focus"), "autofocus", PTP_DPC_SONY_AutoFocus, PTP_VENDOR_SONY, PTP_DTC_UINT16, _get_Sony_Autofocus, _put_Sony_Autofocus }, + { N_("Manual-Focus"), "manualfocus", 0xd2d2, PTP_VENDOR_SONY, PTP_DTC_UINT16, _get_Sony_ManualFocus, _put_Sony_ManualFocus }, + { N_("Capture"), "capture", PTP_DPC_SONY_Capture, PTP_VENDOR_SONY, PTP_DTC_UINT16, _get_Sony_Capture, _put_Sony_Capture }, + { N_("Power Down"), "powerdown", 0, 0, PTP_OC_PowerDown, _get_PowerDown, _put_PowerDown }, + { N_("Focus Lock"), "focuslock", 0, PTP_VENDOR_CANON, PTP_OC_CANON_FocusLock, _get_Canon_FocusLock, _put_Canon_FocusLock }, + { N_("Bulb Mode"), "bulb", PTP_DPC_SONY_StillImage,PTP_VENDOR_SONY, 0, _get_Sony_Bulb, _put_Sony_Bulb }, + { N_("Bulb Mode"), "bulb", 0, PTP_VENDOR_CANON, PTP_OC_CANON_EOS_BulbStart, _get_Canon_EOS_Bulb, _put_Canon_EOS_Bulb }, + { N_("Bulb Mode"), "bulb", 0, PTP_VENDOR_NIKON, PTP_OC_NIKON_TerminateCapture, _get_Nikon_Bulb, _put_Nikon_Bulb }, + { N_("Bulb Mode"), "bulb", 0, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_OC_OLYMPUS_OMD_Capture, _get_Olympus_OMD_Bulb, _put_Olympus_OMD_Bulb }, + { N_("UI Lock"), "uilock", 0, PTP_VENDOR_CANON, PTP_OC_CANON_EOS_SetUILock, _get_Canon_EOS_UILock, _put_Canon_EOS_UILock }, + { N_("Popup Flash"), "popupflash", 0, PTP_VENDOR_CANON, PTP_OC_CANON_EOS_PopupBuiltinFlash, _get_Canon_EOS_PopupFlash, _put_Canon_EOS_PopupFlash }, + { N_("Drive Nikon DSLR Autofocus"), "autofocusdrive", 0, PTP_VENDOR_NIKON, PTP_OC_NIKON_AfDrive, _get_Nikon_AFDrive, _put_Nikon_AFDrive }, + { N_("Drive Canon DSLR Autofocus"), "autofocusdrive", 0, PTP_VENDOR_CANON, PTP_OC_CANON_EOS_DoAf, _get_Canon_EOS_AFDrive, _put_Canon_EOS_AFDrive }, + { N_("Drive Nikon DSLR Manual focus"), "manualfocusdrive", 0, PTP_VENDOR_NIKON, PTP_OC_NIKON_MfDrive, _get_Nikon_MFDrive, _put_Nikon_MFDrive }, + { N_("Set Nikon Autofocus area"), "changeafarea", 0, PTP_VENDOR_NIKON, PTP_OC_NIKON_ChangeAfArea, _get_Nikon_ChangeAfArea, _put_Nikon_ChangeAfArea }, + { N_("Set Nikon Control Mode"), "controlmode", 0, PTP_VENDOR_NIKON, PTP_OC_NIKON_SetControlMode, _get_Nikon_ControlMode, _put_Nikon_ControlMode }, + { N_("Drive Canon DSLR Manual focus"), "manualfocusdrive", 0, PTP_VENDOR_CANON, PTP_OC_CANON_EOS_DriveLens, _get_Canon_EOS_MFDrive, _put_Canon_EOS_MFDrive }, + { N_("Cancel Canon DSLR Autofocus"), "cancelautofocus", 0, PTP_VENDOR_CANON, PTP_OC_CANON_EOS_AfCancel, _get_Canon_EOS_AFCancel, _put_Canon_EOS_AFCancel }, + { N_("Drive Olympus OMD Manual focus"), "manualfocusdrive", 0, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_OC_OLYMPUS_OMD_MFDrive, _get_Olympus_OMD_MFDrive, _put_Olympus_OMD_MFDrive }, + { N_("Drive Panasonic Manual focus"), "manualfocusdrive", 0, PTP_VENDOR_PANASONIC, PTP_OC_PANASONIC_ManualFocusDrive,_get_Panasonic_MFDrive, _put_Panasonic_MFDrive }, + { N_("Canon EOS Zoom"), "eoszoom", 0, PTP_VENDOR_CANON, PTP_OC_CANON_EOS_Zoom, _get_Canon_EOS_Zoom, _put_Canon_EOS_Zoom }, + { N_("Canon EOS Zoom Position"), "eoszoomposition", 0, PTP_VENDOR_CANON, PTP_OC_CANON_EOS_ZoomPosition, _get_Canon_EOS_ZoomPosition, _put_Canon_EOS_ZoomPosition }, + { N_("Canon EOS Viewfinder"), "viewfinder", 0, PTP_VENDOR_CANON, PTP_OC_CANON_EOS_GetViewFinderData, _get_Canon_EOS_ViewFinder, _put_Canon_EOS_ViewFinder }, + { N_("Panasonic Viewfinder"), "viewfinder", 0, PTP_VENDOR_PANASONIC, 0, _get_Panasonic_ViewFinder, _put_Panasonic_ViewFinder }, + { N_("Nikon Viewfinder"), "viewfinder", 0, PTP_VENDOR_NIKON, PTP_OC_NIKON_StartLiveView, _get_Nikon_ViewFinder, _put_Nikon_ViewFinder }, + { N_("Canon EOS Remote Release"), "eosremoterelease", 0, PTP_VENDOR_CANON, PTP_OC_CANON_EOS_RemoteReleaseOn, _get_Canon_EOS_RemoteRelease, _put_Canon_EOS_RemoteRelease }, + { N_("CHDK Script"), "chdk_script", 0, PTP_VENDOR_CANON, PTP_OC_CHDK, _get_Canon_CHDK_Script, _put_Canon_CHDK_Script }, + { N_("Movie Capture"), "movie", 0, 0, PTP_OC_InitiateOpenCapture, _get_OpenCapture, _put_OpenCapture }, + { N_("Movie Capture"), "movie", 0, PTP_VENDOR_NIKON, PTP_OC_NIKON_StartMovieRecInCard, _get_Nikon_Movie, _put_Nikon_Movie }, + { N_("Movie Capture"), "movie", 0, PTP_VENDOR_SONY, PTP_OC_SONY_SDIOConnect, _get_Sony_Movie, _put_Sony_Movie }, + { N_("PTP Opcode"), "opcode", 0, 0, PTP_OC_GetDeviceInfo, _get_Generic_OPCode, _put_Generic_OPCode }, + { 0,0,0,0,0,0,0 }, +}; + +static struct submenu camera_status_menu[] = { + { N_("Serial Number"), "serialnumber", 0, 0, PTP_OC_GetDeviceInfo, _get_PTP_Serial_STR, _put_None }, + { N_("Camera Manufacturer"), "manufacturer", 0, 0, PTP_OC_GetDeviceInfo, _get_PTP_Manufacturer_STR, _put_None }, + { N_("Camera Model"), "cameramodel", 0, 0, PTP_OC_GetDeviceInfo, _get_PTP_Model_STR, _put_None }, + { N_("Device Version"), "deviceversion", 0, 0, PTP_OC_GetDeviceInfo, _get_PTP_DeviceVersion_STR, _put_None }, + { N_("Vendor Extension"), "vendorextension", 0, 0, PTP_OC_GetDeviceInfo, _get_PTP_VendorExtension_STR, _put_None }, + + { N_("Camera Model"), "model", PTP_DPC_CANON_CameraModel, PTP_VENDOR_CANON, PTP_DTC_STR, _get_STR, _put_None }, + { N_("Camera Model"), "model", PTP_DPC_CANON_EOS_ModelID, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_INT, _put_None }, + { N_("Firmware Version"), "firmwareversion", PTP_DPC_CANON_FirmwareVersion, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_CANON_FirmwareVersion, _put_None }, + { N_("PTP Version"), "ptpversion", PTP_DPC_CANON_EOS_PTPExtensionVersion, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_INT, _put_None }, + { N_("DPOF Version"), "dpofversion", PTP_DPC_CANON_EOS_DPOFVersion, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_INT, _put_None }, + { N_("AC Power"), "acpower", PTP_DPC_NIKON_ACPower, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_None }, + { N_("External Flash"), "externalflash", PTP_DPC_NIKON_ExternalFlashAttached, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_None }, + { N_("Battery Level"), "batterylevel", PTP_DPC_BatteryLevel, 0, PTP_DTC_UINT8, _get_BatteryLevel, _put_None }, + { N_("Battery Level"), "batterylevel", PTP_DPC_CANON_EOS_BatteryPower, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_BatteryLevel, _put_None }, + { N_("Battery Level"), "batterylevel", PTP_DPC_SONY_BatteryLevel, PTP_VENDOR_SONY, PTP_DTC_INT8, _get_SONY_BatteryLevel, _put_None }, + { N_("Camera Orientation"), "orientation", PTP_DPC_NIKON_CameraOrientation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_CameraOrientation, _put_None }, + { N_("Camera Orientation"), "orientation2", PTP_DPC_NIKON_AngleLevel, PTP_VENDOR_NIKON, PTP_DTC_INT32, _get_Nikon_AngleLevel, _put_None }, + { N_("Camera Orientation"), "orientation", PTP_DPC_CANON_RotationAngle, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_CameraOrientation, _put_None }, + { N_("Flash Open"), "flashopen", PTP_DPC_NIKON_FlashOpen, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_None }, + { N_("Flash Charged"), "flashcharged", PTP_DPC_NIKON_FlashCharged, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_None }, + { N_("Lens Name"), "lensname", PTP_DPC_NIKON_LensID, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_LensID, _put_None }, + { N_("Lens Name"), "lensname", PTP_DPC_CANON_EOS_LensName, PTP_VENDOR_CANON, PTP_DTC_STR, _get_STR, _put_None }, + { N_("Serial Number"), "eosserialnumber", PTP_DPC_CANON_EOS_SerialNumber, PTP_VENDOR_CANON, PTP_DTC_STR, _get_STR, _put_None }, + { N_("Shutter Counter"), "shuttercounter", PTP_DPC_CANON_EOS_ShutterCounter, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_INT, _put_None }, + { N_("Available Shots"), "availableshots", PTP_DPC_CANON_EOS_AvailableShots, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_INT, _put_None }, + { N_("Focal Length Minimum"), "minfocallength", PTP_DPC_NIKON_FocalLengthMin, PTP_VENDOR_NIKON, PTP_DTC_UINT32, _get_Nikon_FocalLength, _put_None }, + { N_("Focal Length Maximum"), "maxfocallength", PTP_DPC_NIKON_FocalLengthMax, PTP_VENDOR_NIKON, PTP_DTC_UINT32, _get_Nikon_FocalLength, _put_None }, + { N_("Maximum Aperture at Focal Length Minimum"), "apertureatminfocallength", PTP_DPC_NIKON_MaxApAtMinFocalLength, PTP_VENDOR_NIKON, PTP_DTC_UINT16, _get_Nikon_ApertureAtFocalLength, _put_None }, + { N_("Maximum Aperture at Focal Length Maximum"), "apertureatmaxfocallength", PTP_DPC_NIKON_MaxApAtMaxFocalLength, PTP_VENDOR_NIKON, PTP_DTC_UINT16, _get_Nikon_ApertureAtFocalLength, _put_None }, + { N_("Low Light"), "lowlight", PTP_DPC_NIKON_ExposureDisplayStatus, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_LowLight, _put_None }, + { N_("Light Meter"), "lightmeter", PTP_DPC_NIKON_LightMeter, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_LightMeter, _put_None }, + { N_("Light Meter"), "lightmeter", PTP_DPC_NIKON_ExposureIndicateStatus, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Range_INT8, _put_None }, + { N_("AF Locked"), "aflocked", PTP_DPC_NIKON_AFLockStatus, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_None }, + { N_("AE Locked"), "aelocked", PTP_DPC_NIKON_AELockStatus, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_None }, + { N_("FV Locked"), "fvlocked", PTP_DPC_NIKON_FVLockStatus, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_None }, + { 0,0,0,0,0,0,0 }, +}; + +static struct submenu camera_settings_menu[] = { + { N_("Camera Date and Time"), "datetimeutc", PTP_DPC_CANON_EOS_UTCTime, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_UINT32_as_time, _put_UINT32_as_time }, + { N_("Camera Date and Time"), "datetime", PTP_DPC_CANON_UnixTime, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_UINT32_as_localtime, _put_UINT32_as_localtime }, + { N_("Camera Date and Time"), "datetime", PTP_DPC_CANON_EOS_CameraTime, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_UINT32_as_localtime, _put_UINT32_as_localtime }, + { N_("Camera Date and Time"), "datetime", PTP_DPC_DateTime, 0, PTP_DTC_STR, _get_STR_as_time, _put_STR_as_time }, + { N_("Beep Mode"), "beep", PTP_DPC_CANON_BeepMode, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_BeepMode, _put_Canon_BeepMode }, + { N_("Image Comment"), "imagecomment", PTP_DPC_NIKON_ImageCommentString, PTP_VENDOR_NIKON, PTP_DTC_STR, _get_STR, _put_STR }, + { N_("WLAN GUID"), "guid", PTP_DPC_NIKON_GUID, PTP_VENDOR_NIKON, PTP_DTC_STR, _get_STR, _put_STR }, + { N_("Enable Image Comment"), "imagecommentenable", PTP_DPC_NIKON_ImageCommentEnable, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("LCD Off Time"), "lcdofftime", PTP_DPC_NIKON_MonitorOff, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_LCDOffTime, _put_Nikon_LCDOffTime }, + { N_("Recording Media"), "recordingmedia", PTP_DPC_NIKON_RecordingMedia, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_RecordingMedia, _put_Nikon_RecordingMedia }, + { N_("Quick Review Time"), "reviewtime", PTP_DPC_CANON_EOS_QuickReviewTime, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_QuickReviewTime, _put_Canon_EOS_QuickReviewTime }, + { N_("CSM Menu"), "csmmenu", PTP_DPC_NIKON_CSMMenu, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Reverse Command Dial"), "reversedial", PTP_DPC_NIKON_ReverseCommandDial, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Camera Output"), "output", PTP_DPC_CANON_CameraOutput, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_CameraOutput, _put_Canon_CameraOutput }, + { N_("Camera Output"), "output", PTP_DPC_CANON_EOS_EVFOutputDevice, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_CameraOutput, _put_Canon_EOS_CameraOutput }, + { N_("Recording Destination"), "movierecordtarget", PTP_DPC_CANON_EOS_EVFRecordStatus, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_EVFRecordTarget, _put_Canon_EOS_EVFRecordTarget }, + { N_("EVF Mode"), "evfmode", PTP_DPC_CANON_EOS_EVFMode, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_EVFMode, _put_Canon_EOS_EVFMode }, + { N_("Owner Name"), "ownername", PTP_DPC_CANON_CameraOwner, PTP_VENDOR_CANON, PTP_DTC_AUINT8, _get_AUINT8_as_CHAR_ARRAY, _put_AUINT8_as_CHAR_ARRAY }, + { N_("Owner Name"), "ownername", PTP_DPC_CANON_EOS_Owner, PTP_VENDOR_CANON, PTP_DTC_STR, _get_STR, _put_STR }, + { N_("Artist"), "artist", PTP_DPC_CANON_EOS_Artist, PTP_VENDOR_CANON, PTP_DTC_STR, _get_STR, _put_STR }, + { N_("Artist"), "artist", PTP_DPC_NIKON_ArtistName, PTP_VENDOR_NIKON, PTP_DTC_STR, _get_STR, _put_STR }, + { N_("CCD Number"), "ccdnumber", PTP_DPC_NIKON_CCDNumber, PTP_VENDOR_NIKON, PTP_DTC_STR, _get_STR, _put_None }, + { N_("Copyright"), "copyright", PTP_DPC_CANON_EOS_Copyright, PTP_VENDOR_CANON, PTP_DTC_STR, _get_STR, _put_STR }, + { N_("Copyright"), "copyright", PTP_DPC_FUJI_Copyright, PTP_VENDOR_FUJI, PTP_DTC_STR, _get_STR, _put_STR }, + { N_("Copyright"), "copyright", PTP_DPC_NIKON_CopyrightInfo, PTP_VENDOR_NIKON, PTP_DTC_STR, _get_STR, _put_STR }, + { N_("Clean Sensor"), "cleansensor", PTP_DPC_NIKON_CleanImageSensor, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_CleanSensor, _put_Nikon_CleanSensor }, + { N_("Flicker Reduction"), "flickerreduction", PTP_DPC_NIKON_FlickerReduction, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlickerReduction, _put_Nikon_FlickerReduction }, + { N_("Custom Functions Ex"), "customfuncex", PTP_DPC_CANON_EOS_CustomFuncEx, PTP_VENDOR_CANON, PTP_DTC_STR, _get_STR, _put_STR }, + { N_("Focus Info"), "focusinfo", PTP_DPC_CANON_EOS_FocusInfoEx, PTP_VENDOR_CANON, PTP_DTC_STR, _get_STR, _put_None }, + { N_("Focus Area"), "focusarea", PTP_DPC_CANON_EOS_AFSelectFocusArea,PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_INT, _put_INT }, + { N_("Auto Power Off"), "autopoweroff", PTP_DPC_CANON_EOS_AutoPowerOff, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_INT, _put_INT }, + { N_("Depth of Field"), "depthoffield", PTP_DPC_CANON_EOS_DepthOfFieldPreview, PTP_VENDOR_CANON,PTP_DTC_UINT32, _get_INT, _put_INT }, + { N_("Menus and Playback"), "menusandplayback", PTP_DPC_NIKON_MenusAndPlayback, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_MenusAndPlayback, _put_Nikon_MenusAndPlayback }, + +/* virtual */ + { N_("Fast Filesystem"), "fastfs", 0, PTP_VENDOR_NIKON, 0, _get_Nikon_FastFS, _put_Nikon_FastFS }, + { N_("Capture Target"), "capturetarget",0, PTP_VENDOR_NIKON, 0, _get_CaptureTarget, _put_CaptureTarget }, + { N_("Autofocus"), "autofocus", 0, PTP_VENDOR_NIKON, 0, _get_Autofocus, _put_Autofocus }, + { N_("Capture Target"), "capturetarget",0, PTP_VENDOR_CANON, 0, _get_CaptureTarget, _put_CaptureTarget }, + { N_("Capture Target"), "capturetarget",0, PTP_VENDOR_PANASONIC,0, _get_CaptureTarget, _put_CaptureTarget }, + { N_("CHDK"), "chdk", PTP_OC_CHDK, PTP_VENDOR_CANON, 0, _get_CHDK, _put_CHDK }, + { N_("Capture"), "capture", 0, PTP_VENDOR_CANON, 0, _get_Canon_CaptureMode, _put_Canon_CaptureMode }, + { N_("Remote Mode"), "remotemode", PTP_OC_CANON_EOS_SetRemoteMode, PTP_VENDOR_CANON, 0, _get_Canon_RemoteMode, _put_Canon_RemoteMode }, + { 0,0,0,0,0,0,0 }, +}; + +/* think of this as properties of the "film" */ +static struct submenu image_settings_menu[] = { + { N_("Image Quality"), "imagequality", PTP_DPC_CANON_ImageQuality, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_Quality, _put_Canon_Quality }, + { N_("Image Format"), "imageformat", PTP_DPC_OLYMPUS_ImageFormat, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_DTC_UINT16, _get_Olympus_Imageformat, _put_Olympus_Imageformat }, + { N_("Image Format"), "imageformat", PTP_DPC_CANON_FullViewFileFormat, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_Capture_Format, _put_Canon_Capture_Format }, + { N_("Image Format"), "imageformat", PTP_DPC_CANON_EOS_ImageFormat, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_ImageFormat, _put_Canon_EOS_ImageFormat }, + { N_("Image Format SD"), "imageformatsd", PTP_DPC_CANON_EOS_ImageFormatSD, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_ImageFormat, _put_Canon_EOS_ImageFormat }, + { N_("Image Format CF"), "imageformatcf", PTP_DPC_CANON_EOS_ImageFormatCF, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_ImageFormat, _put_Canon_EOS_ImageFormat }, + { N_("Image Format"), "imageformat", PTP_DPC_FUJI_Quality, PTP_VENDOR_FUJI, PTP_DTC_UINT16, _get_Fuji_ImageFormat, _put_Fuji_ImageFormat }, + { N_("Image Format"), "imageformat", 0, PTP_VENDOR_PANASONIC,PTP_DTC_UINT16, _get_Panasonic_ImageFormat, _put_Panasonic_ImageFormat }, + { N_("Image Format Ext HD"), "imageformatexthd", PTP_DPC_CANON_EOS_ImageFormatExtHD, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_ImageFormat, _put_Canon_EOS_ImageFormat }, + { N_("Image Size"), "imagesize", PTP_DPC_ImageSize, 0, PTP_DTC_STR, _get_ImageSize, _put_ImageSize }, + { N_("Image Size"), "imagesize", PTP_DPC_NIKON_1_ImageSize, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon1_ImageSize, _put_Nikon1_ImageSize }, + { N_("Image Size"), "imagesize", PTP_DPC_SONY_ImageSize, PTP_VENDOR_SONY, PTP_DTC_UINT8, _get_Sony_ImageSize, _put_Sony_ImageSize }, + { N_("Image Size"), "imagesize", PTP_DPC_CANON_ImageSize, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_Size, _put_Canon_Size }, + { N_("ISO Speed"), "iso", PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_ISO, _put_Canon_ISO }, + { N_("ISO Speed"), "iso", PTP_DPC_ExposureIndex, PTP_VENDOR_FUJI, PTP_DTC_INT32, _get_Fuji_ISO, _put_Fuji_ISO }, + { N_("ISO Speed"), "iso", PTP_DPC_ExposureIndex, 0, PTP_DTC_UINT16, _get_ISO, _put_ISO }, + { N_("Movie ISO Speed"), "movieiso", PTP_DPC_NIKON_MovieISO, PTP_VENDOR_NIKON, PTP_DTC_UINT32, _get_ISO32, _put_ISO32 }, + { N_("ISO Speed"), "iso", PTP_DPC_CANON_EOS_ISOSpeed, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_ISO, _put_Canon_ISO }, + { N_("ISO Speed"), "iso", PTP_DPC_SONY_ISO, PTP_VENDOR_SONY, PTP_DTC_UINT32, _get_Sony_ISO, _put_Sony_ISO }, + { N_("ISO Speed"), "iso", PTP_DPC_NIKON_1_ISO, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_1_ISO, _put_Nikon_1_ISO }, + { N_("ISO Speed"), "iso", PTP_DPC_OLYMPUS_ISO, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_DTC_UINT16, _get_Olympus_ISO, _put_Olympus_ISO }, + { N_("ISO Speed"), "iso", 0, PTP_VENDOR_PANASONIC, PTP_DTC_UINT32, _get_Panasonic_ISO, _put_Panasonic_ISO }, + { N_("ISO Auto"), "isoauto", PTP_DPC_NIKON_ISO_Auto, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("WhiteBalance"), "whitebalance", PTP_DPC_OLYMPUS_WhiteBalance, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_DTC_UINT16, _get_Olympus_WhiteBalance, _put_Olympus_WhiteBalance }, + { N_("WhiteBalance"), "whitebalance", PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_WhiteBalance, _put_Canon_WhiteBalance }, + { N_("WhiteBalance"), "whitebalance", PTP_DPC_CANON_EOS_WhiteBalance, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_EOS_WhiteBalance, _put_Canon_EOS_WhiteBalance }, + { N_("Color Temperature"), "colortemperature", PTP_DPC_CANON_EOS_ColorTemperature, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_INT, _put_INT }, + { N_("Color Temperature"), "colortemperature", PTP_DPC_SONY_ColorTemp, PTP_VENDOR_SONY, PTP_DTC_UINT16, _get_INT, _put_INT }, + { N_("WhiteBalance"), "whitebalance", PTP_DPC_WhiteBalance, 0, PTP_DTC_UINT16, _get_WhiteBalance, _put_WhiteBalance }, + { N_("WhiteBalance"), "whitebalance", PTP_DPC_NIKON_1_WhiteBalance, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_1_WhiteBalance, _put_Nikon_1_WhiteBalance }, + { N_("WhiteBalance Adjust A"), "whitebalanceadjusta", PTP_DPC_CANON_EOS_WhiteBalanceAdjustA, PTP_VENDOR_CANON, PTP_DTC_INT32, _get_Canon_EOS_WBAdjust, _put_Canon_EOS_WBAdjust }, + { N_("WhiteBalance Adjust B"), "whitebalanceadjustb", PTP_DPC_CANON_EOS_WhiteBalanceAdjustB, PTP_VENDOR_CANON, PTP_DTC_INT32, _get_Canon_EOS_WBAdjust, _put_Canon_EOS_WBAdjust }, + { N_("WhiteBalance X A"), "whitebalancexa", PTP_DPC_CANON_EOS_WhiteBalanceXA, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_INT, _put_None }, + { N_("WhiteBalance X B"), "whitebalancexb", PTP_DPC_CANON_EOS_WhiteBalanceXB, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_INT, _put_None }, + { N_("Photo Effect"), "photoeffect", PTP_DPC_CANON_PhotoEffect, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_PhotoEffect, _put_Canon_PhotoEffect }, + { N_("Color Model"), "colormodel", PTP_DPC_NIKON_ColorModel, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_ColorModel, _put_Nikon_ColorModel }, + { N_("Color Space"), "colorspace", PTP_DPC_NIKON_ColorSpace, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_ColorSpace, _put_Nikon_ColorSpace }, + { N_("Color Space"), "colorspace", PTP_DPC_CANON_EOS_ColorSpace, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_ColorSpace, _put_Canon_EOS_ColorSpace }, + { N_("Auto ISO"), "autoiso", PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { 0,0,0,0,0,0,0 }, +}; + +static struct submenu capture_settings_menu[] = { + { N_("Long Exp Noise Reduction"), "longexpnr", PTP_DPC_NIKON_LongExposureNoiseReduction, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Long Exp Noise Reduction"), "longexpnr", PTP_DPC_NIKON_1_LongExposureNoiseReduction, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Auto Focus Mode 2"), "autofocusmode2", PTP_DPC_NIKON_A4AFActivation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Zoom"), "zoom", PTP_DPC_CANON_Zoom, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_ZoomRange, _put_Canon_ZoomRange }, + { N_("Zoom"), "zoom", PTP_DPC_CANON_EOS_PowerZoomPosition, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_INT, _put_INT }, + { N_("Zoom"), "zoom", PTP_DPC_SONY_Zoom, PTP_VENDOR_SONY, PTP_DTC_UINT32, _get_Sony_Zoom, _put_Sony_Zoom }, + { N_("Zoom Speed"), "zoomspeed", PTP_DPC_CANON_EOS_PowerZoomSpeed, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_INT, _put_INT }, + { N_("Assist Light"), "assistlight", PTP_DPC_CANON_AssistLight, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_AssistLight, _put_Canon_AssistLight }, + { N_("Rotation Flag"), "autorotation", PTP_DPC_CANON_RotationScene, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_AutoRotation, _put_Canon_AutoRotation }, + { N_("Self Timer"), "selftimer", PTP_DPC_CANON_SelfTime, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_SelfTimer, _put_Canon_SelfTimer }, + { N_("Assist Light"), "assistlight", PTP_DPC_NIKON_AFAssist, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Exposure Compensation"), "exposurecompensation", PTP_DPC_OLYMPUS_ExposureCompensation, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_DTC_UINT16, _get_Olympus_ExpCompensation,_put_Olympus_ExpCompensation }, + { N_("Exposure Compensation"), "exposurecompensation", PTP_DPC_ExposureBiasCompensation, PTP_VENDOR_SONY, PTP_DTC_INT16, _get_ExpCompensation, _put_Sony_ExpCompensation }, + { N_("Exposure Compensation"), "exposurecompensation", PTP_DPC_ExposureBiasCompensation, 0, PTP_DTC_INT16, _get_ExpCompensation, _put_ExpCompensation }, + { N_("Exposure Compensation"), "exposurecompensation", PTP_DPC_CANON_ExpCompensation, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_ExpCompensation, _put_Canon_ExpCompensation }, + { N_("Exposure Compensation"), "exposurecompensation", PTP_DPC_CANON_EOS_ExpCompensation, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_ExpCompensation2, _put_Canon_ExpCompensation2 }, + { N_("Exposure Compensation"), "exposurecompensation", 0, PTP_VENDOR_PANASONIC, PTP_DTC_INT32, _get_Panasonic_Exposure, _put_Panasonic_Exposure }, + { N_("White Balance"), "whitebalance", 0, PTP_VENDOR_PANASONIC, PTP_DTC_INT32, _get_Panasonic_Whitebalance, _put_Panasonic_Whitebalance }, + /* these cameras also have PTP_DPC_ExposureBiasCompensation, avoid overlap */ + { N_("Exposure Compensation"), "exposurecompensation2", PTP_DPC_NIKON_ExposureCompensation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Flash Compensation"), "flashcompensation", PTP_DPC_CANON_FlashCompensation, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_ExpCompensation, _put_Canon_ExpCompensation }, + { N_("AEB Exposure Compensation"), "aebexpcompensation", PTP_DPC_CANON_AEBExposureCompensation, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_ExpCompensation, _put_Canon_ExpCompensation }, + { N_("Flash Mode"), "flashmode", PTP_DPC_CANON_FlashMode, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_FlashMode, _put_Canon_FlashMode }, + { N_("Flash Mode"), "flashmode", PTP_DPC_FlashMode, 0, PTP_DTC_UINT16, _get_FlashMode, _put_FlashMode }, + { N_("Nikon Flash Mode"), "nikonflashmode", PTP_DPC_NIKON_FlashMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_InternalFlashMode, _put_Nikon_InternalFlashMode }, + { N_("Flash Commander Mode"), "flashcommandermode", PTP_DPC_NIKON_FlashCommanderMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommanderMode, _put_Nikon_FlashCommanderMode }, + { N_("Flash Commander Power"), "flashcommanderpower", PTP_DPC_NIKON_FlashModeCommanderPower, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommanderPower, _put_Nikon_FlashCommanderPower }, + { N_("Flash Command Channel"), "flashcommandchannel", PTP_DPC_NIKON_FlashCommandChannel, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommandChannel, _put_Nikon_FlashCommandChannel }, + { N_("Flash Command Self Mode"), "flashcommandselfmode", PTP_DPC_NIKON_FlashCommandSelfMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommandSelfMode, _put_Nikon_FlashCommandSelfMode }, + { N_("Flash Command Self Compensation"), "flashcommandselfcompensation", PTP_DPC_NIKON_FlashCommandSelfCompensation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommandXCompensation, _put_Nikon_FlashCommandXCompensation }, + { N_("Flash Command Self Value"), "flashcommandselfvalue", PTP_DPC_NIKON_FlashCommandSelfValue, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommandXValue, _put_Nikon_FlashCommandXValue }, + { N_("Flash Command A Mode"), "flashcommandamode", PTP_DPC_NIKON_FlashCommandAMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommandXMode, _put_Nikon_FlashCommandXMode }, + { N_("Flash Command A Compensation"), "flashcommandacompensation", PTP_DPC_NIKON_FlashCommandACompensation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommandXCompensation, _put_Nikon_FlashCommandXCompensation }, + { N_("Flash Command A Value"), "flashcommandavalue", PTP_DPC_NIKON_FlashCommandAValue, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommandXValue, _put_Nikon_FlashCommandXValue }, + { N_("Flash Command B Mode"), "flashcommandbmode", PTP_DPC_NIKON_FlashCommandBMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommandXMode, _put_Nikon_FlashCommandXMode }, + { N_("Flash Command B Compensation"), "flashcommandbcompensation", PTP_DPC_NIKON_FlashCommandBCompensation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommandXCompensation, _put_Nikon_FlashCommandXCompensation }, + { N_("Flash Command B Value"), "flashcommandbvalue", PTP_DPC_NIKON_FlashCommandBValue, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashCommandXValue, _put_Nikon_FlashCommandXValue }, + { N_("AF Area Illumination"), "af-area-illumination", PTP_DPC_NIKON_AFAreaIllumination, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_AFAreaIllum, _put_Nikon_AFAreaIllum }, + { N_("AF Beep Mode"), "afbeep", PTP_DPC_NIKON_BeepOff, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OffOn_UINT8, _put_Nikon_OffOn_UINT8 }, + { N_("F-Number"), "f-number", PTP_DPC_FNumber, PTP_VENDOR_SONY, PTP_DTC_UINT16, _get_FNumber, _put_Sony_FNumber }, + { N_("F-Number"), "f-number", PTP_DPC_FNumber, 0, PTP_DTC_UINT16, _get_FNumber, _put_FNumber }, + { N_("F-Number"), "f-number", 0, PTP_VENDOR_PANASONIC,PTP_DTC_INT32, _get_Panasonic_FNumber, _put_Panasonic_FNumber }, + { N_("Movie F-Number"), "movief-number", PTP_DPC_NIKON_MovieFNumber, PTP_VENDOR_NIKON, PTP_DTC_UINT16, _get_FNumber, _put_FNumber }, + { N_("Flexible Program"), "flexibleprogram", PTP_DPC_NIKON_FlexibleProgram, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Range_INT8, _put_Range_INT8 }, + { N_("Image Quality"), "imagequality", PTP_DPC_CompressionSetting, PTP_VENDOR_SONY, PTP_DTC_UINT8, _get_CompressionSetting, _put_Sony_CompressionSetting }, + { N_("Image Quality"), "imagequality", PTP_DPC_CompressionSetting, 0, PTP_DTC_UINT8, _get_CompressionSetting, _put_CompressionSetting }, + { N_("Focus Distance"), "focusdistance", PTP_DPC_FocusDistance, 0, PTP_DTC_UINT16, _get_FocusDistance, _put_FocusDistance }, + { N_("Focal Length"), "focallength", PTP_DPC_FocalLength, 0, PTP_DTC_UINT32, _get_FocalLength, _put_FocalLength }, + { N_("Focus Mode"), "focusmode", PTP_DPC_FocusMode, PTP_VENDOR_SONY, PTP_DTC_UINT16, _get_FocusMode, _put_Sony_FocusMode }, + { N_("Focus Mode"), "focusmode", PTP_DPC_FocusMode, 0, PTP_DTC_UINT16, _get_FocusMode, _put_FocusMode }, + { N_("Focus Mode"), "focusmode", PTP_DPC_OLYMPUS_FocusMode, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_DTC_UINT16, _get_FocusMode, _put_FocusMode }, + /* Nikon DSLR have both PTP focus mode and Nikon specific focus mode */ + { N_("Focus Mode 2"), "focusmode2", PTP_DPC_NIKON_AutofocusMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_AFMode, _put_Nikon_AFMode }, + { N_("Focus Mode"), "focusmode", PTP_DPC_CANON_EOS_FocusMode, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_FocusMode, _put_Canon_EOS_FocusMode }, + { N_("Continuous AF"), "continuousaf", PTP_DPC_CANON_EOS_ContinousAFMode, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_Canon_EOS_ContinousAF, _put_Canon_EOS_ContinousAF }, + { N_("Effect Mode"), "effectmode", PTP_DPC_EffectMode, 0, PTP_DTC_UINT16, _get_EffectMode, _put_EffectMode }, + { N_("Effect Mode"), "effectmode", PTP_DPC_NIKON_EffectMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_NIKON_EffectMode, _put_NIKON_EffectMode }, + { N_("Exposure Program"), "expprogram", PTP_DPC_ExposureProgramMode, 0, PTP_DTC_UINT16, _get_ExposureProgram, _put_ExposureProgram }, + { N_("Exposure Program"), "expprogram2", PTP_DPC_NIKON_1_Mode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_NIKON_1_ExposureProgram, _put_NIKON_1_ExposureProgram }, + { N_("Scene Mode"), "scenemode", PTP_DPC_NIKON_SceneMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_NIKON_SceneMode, _put_NIKON_SceneMode }, + { N_("Aspect Ratio"), "aspectratio", PTP_DPC_SONY_AspectRatio, PTP_VENDOR_SONY, PTP_DTC_UINT8, _get_Sony_AspectRatio, _put_Sony_AspectRatio }, + { N_("Aspect Ratio"), "aspectratio", PTP_DPC_OLYMPUS_AspectRatio, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_DTC_UINT32, _get_Olympus_AspectRatio, _put_Olympus_AspectRatio }, + { N_("Aspect Ratio"), "aspectratio", PTP_DPC_CANON_EOS_MultiAspect, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_Canon_EOS_AspectRatio, _put_Canon_EOS_AspectRatio }, + { N_("Storage Device"), "storageid", PTP_DPC_CANON_EOS_CurrentStorage, PTP_VENDOR_CANON, PTP_DTC_UINT32, _get_Canon_EOS_StorageID , _put_Canon_EOS_StorageID }, + { N_("High ISO Noise Reduction"), "highisonr", PTP_DPC_CANON_EOS_HighISOSettingNoiseReduction, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_HighIsoNr, _put_Canon_EOS_HighIsoNr }, + { N_("HDR Mode"), "hdrmode", PTP_DPC_NIKON_HDRMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("HDR High Dynamic"), "hdrhighdynamic", PTP_DPC_NIKON_HDRHighDynamic, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_HDRHighDynamic, _put_Nikon_HDRHighDynamic }, + { N_("HDR Smoothing"), "hdrsmoothing", PTP_DPC_NIKON_HDRSmoothing, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_HDRSmoothing, _put_Nikon_HDRSmoothing }, + { N_("Still Capture Mode"), "capturemode", PTP_DPC_StillCaptureMode, 0, PTP_DTC_UINT16, _get_CaptureMode, _put_CaptureMode }, + { N_("Still Capture Mode"), "capturemode", PTP_DPC_FUJI_ReleaseMode, PTP_VENDOR_FUJI, PTP_DTC_UINT16, _get_Fuji_ReleaseMode, _put_Fuji_ReleaseMode }, + { N_("Canon Shooting Mode"), "shootingmode", PTP_DPC_CANON_ShootingMode, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_ShootMode, _put_Canon_ShootMode }, + { N_("Canon Auto Exposure Mode"), "autoexposuremode", PTP_DPC_CANON_EOS_AutoExposureMode, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_AutoExposureMode, _put_Canon_EOS_AutoExposureMode }, + { N_("Drive Mode"), "drivemode", PTP_DPC_CANON_EOS_DriveMode, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_DriveMode, _put_Canon_EOS_DriveMode }, + { N_("Picture Style"), "picturestyle", PTP_DPC_CANON_EOS_PictureStyle, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_EOS_PictureStyle, _put_Canon_EOS_PictureStyle }, + { N_("Focus Metering Mode"), "focusmetermode", PTP_DPC_FocusMeteringMode, 0, PTP_DTC_UINT16, _get_FocusMetering, _put_FocusMetering }, + { N_("Focus Metering Mode"), "exposuremetermode", PTP_DPC_OLYMPUS_ExposureMeteringMode, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_DTC_UINT16, _get_ExposureMetering, _put_ExposureMetering }, + { N_("Exposure Metering Mode"), "exposuremetermode", PTP_DPC_ExposureMeteringMode, 0, PTP_DTC_UINT16, _get_ExposureMetering, _put_ExposureMetering }, + { N_("Aperture"), "aperture", PTP_DPC_OLYMPUS_Aperture, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_DTC_UINT16, _get_Olympus_Aperture, _put_Olympus_Aperture }, + { N_("Aperture"), "aperture", PTP_DPC_CANON_Aperture, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_Aperture, _put_Canon_Aperture }, + { N_("Aperture"), "aperture", PTP_DPC_FUJI_Aperture, PTP_VENDOR_FUJI, PTP_DTC_UINT16, _get_Fuji_Aperture, _put_Fuji_Aperture }, + { N_("AV Open"), "avopen", PTP_DPC_CANON_AvOpen, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_Aperture, _put_Canon_Aperture }, + { N_("AV Max"), "avmax", PTP_DPC_CANON_AvMax, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_Aperture, _put_Canon_Aperture }, + { N_("Aperture"), "aperture", PTP_DPC_CANON_EOS_Aperture, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_Aperture, _put_Canon_Aperture }, + { N_("Focusing Point"), "focusingpoint", PTP_DPC_CANON_FocusingPoint, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_FocusingPoint, _put_Canon_FocusingPoint }, + { N_("Sharpness"), "sharpness", PTP_DPC_Sharpness, 0, PTP_DTC_UINT8, _get_Sharpness, _put_Sharpness }, + { N_("Capture Delay"), "capturedelay", PTP_DPC_CaptureDelay, 0, PTP_DTC_UINT32, _get_Milliseconds, _put_Milliseconds }, + { N_("Shutter Speed"), "shutterspeed", PTP_DPC_ExposureTime, 0, PTP_DTC_UINT32, _get_ExpTime, _put_ExpTime }, + { N_("Shutter Speed"), "shutterspeed", PTP_DPC_CANON_ShutterSpeed, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_ShutterSpeed, _put_Canon_ShutterSpeed }, + { N_("Shutter Speed"), "shutterspeed", 0, PTP_VENDOR_PANASONIC, PTP_DTC_INT32, _get_Panasonic_Shutter, _put_Panasonic_Shutter }, + /* these cameras also have PTP_DPC_ExposureTime, avoid overlap */ + { N_("Shutter Speed 2"), "shutterspeed2", PTP_DPC_NIKON_ExposureTime, PTP_VENDOR_NIKON, PTP_DTC_UINT32, _get_Nikon_ShutterSpeed, _put_Nikon_ShutterSpeed }, + { N_("Movie Shutter Speed 2"), "movieshutterspeed", PTP_DPC_NIKON_MovieShutterSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT32, _get_Nikon_ShutterSpeed, _put_Nikon_ShutterSpeed }, + /* olympus uses also a 16 bit/16bit seperation */ + { N_("Shutter Speed"), "shutterspeed", PTP_DPC_OLYMPUS_Shutterspeed, PTP_VENDOR_GP_OLYMPUS_OMD, PTP_DTC_UINT32, _get_Olympus_ShutterSpeed, _put_Olympus_ShutterSpeed }, + { N_("Shutter Speed"), "shutterspeed", PTP_DPC_CANON_EOS_ShutterSpeed, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_ShutterSpeed, _put_Canon_ShutterSpeed }, + { N_("Shutter Speed"), "shutterspeed", PTP_DPC_FUJI_ShutterSpeed, PTP_VENDOR_FUJI, PTP_DTC_INT16, _get_Fuji_ShutterSpeed, _put_Fuji_ShutterSpeed }, + { N_("Shutter Speed"), "shutterspeed", PTP_DPC_SONY_ShutterSpeed, PTP_VENDOR_SONY, PTP_DTC_UINT32, _get_Sony_ShutterSpeed, _put_Sony_ShutterSpeed }, + { N_("Shutter Speed"), "shutterspeed", PTP_DPC_RICOH_ShutterSpeed, PTP_VENDOR_PENTAX, PTP_DTC_UINT64, _get_Ricoh_ShutterSpeed, _put_Ricoh_ShutterSpeed }, + { N_("Metering Mode"), "meteringmode", PTP_DPC_CANON_MeteringMode, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_MeteringMode, _put_Canon_MeteringMode }, + { N_("Metering Mode"), "meteringmode", PTP_DPC_CANON_EOS_MeteringMode, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_MeteringMode, _put_Canon_MeteringMode }, + { N_("AF Distance"), "afdistance", PTP_DPC_CANON_AFDistance, PTP_VENDOR_CANON, PTP_DTC_UINT8, _get_Canon_AFDistance, _put_Canon_AFDistance }, + { N_("Focus Area Wrap"), "focusareawrap", PTP_DPC_NIKON_FocusAreaWrap, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Exposure Delay Mode"), "exposuredelaymode", PTP_DPC_NIKON_ExposureDelayMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Exposure Lock"), "exposurelock", PTP_DPC_NIKON_AELockMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("AE-L/AF-L Mode"), "aelaflmode", PTP_DPC_NIKON_AELAFLMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_AELAFLMode, _put_Nikon_AELAFLMode }, + { N_("Live View AF Mode"), "liveviewafmode", PTP_DPC_NIKON_LiveViewAFArea, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_LiveViewAFI, _put_Nikon_LiveViewAFI }, + { N_("Live View AF Mode"), "liveviewafmode", PTP_DPC_NIKON_LiveViewAFArea, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_LiveViewAFU, _put_Nikon_LiveViewAFU }, + { N_("Live View AF Focus"), "liveviewaffocus", PTP_DPC_NIKON_LiveViewAFFocus, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_LiveViewAFFocus, _put_Nikon_LiveViewAFFocus }, + { N_("File Number Sequencing"), "filenrsequencing", PTP_DPC_NIKON_FileNumberSequence, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Flash Sign"), "flashsign", PTP_DPC_NIKON_FlashSign, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Modelling Flash"), "modelflash", PTP_DPC_NIKON_E4ModelingFlash, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OffOn_UINT8, _put_Nikon_OffOn_UINT8 }, + { N_("Viewfinder Grid"), "viewfindergrid", PTP_DPC_NIKON_GridDisplay, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Image Review"), "imagereview", PTP_DPC_NIKON_ImageReview, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Image Rotation Flag"), "imagerotationflag", PTP_DPC_NIKON_ImageRotation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Release without CF card"), "nocfcardrelease", PTP_DPC_NIKON_NoCFCard, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Flash Mode Manual Power"), "flashmodemanualpower", PTP_DPC_NIKON_FlashModeManualPower, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashModeManualPower, _put_Nikon_FlashModeManualPower }, + { N_("Auto Focus Area"), "autofocusarea", PTP_DPC_NIKON_AutofocusArea, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_AutofocusArea, _put_Nikon_AutofocusArea }, + { N_("Flash Exposure Compensation"), "flashexposurecompensation", PTP_DPC_NIKON_FlashExposureCompensation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashExposureCompensation, _put_Nikon_FlashExposureCompensation }, + { N_("Bracketing"), "bracketing", PTP_DPC_NIKON_Bracketing, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Bracketing"), "bracketmode", PTP_DPC_NIKON_E6ManualModeBracketing, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_ManualBracketMode, _put_Nikon_ManualBracketMode }, + { N_("Bracket Mode"), "bracketmode", PTP_DPC_CANON_EOS_BracketMode, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_INT, _put_None /*FIXME*/ }, + { N_("EV Step"), "evstep", PTP_DPC_NIKON_EVStep, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_EVStep, _put_Nikon_EVStep }, + { N_("Bracket Set"), "bracketset", PTP_DPC_NIKON_BracketSet, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_BracketSet, _put_Nikon_BracketSet }, + { N_("Bracket Order"), "bracketorder", PTP_DPC_NIKON_BracketOrder, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_BracketOrder, _put_Nikon_BracketOrder }, + { N_("Burst Number"), "burstnumber", PTP_DPC_BurstNumber, 0, PTP_DTC_UINT16, _get_BurstNumber, _put_BurstNumber }, + { N_("Burst Interval"), "burstinterval", PTP_DPC_BurstNumber, 0, PTP_DTC_UINT16, _get_Milliseconds, _put_Milliseconds }, + { N_("Maximum Shots"), "maximumshots", PTP_DPC_NIKON_MaximumShots, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_INT, _put_None }, + + /* Newer Nikons have UINT8 ranges */ + { N_("Auto White Balance Bias"), "autowhitebias", PTP_DPC_NIKON_WhiteBalanceAutoBias, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_UWBBias, _put_Nikon_UWBBias }, + { N_("Tungsten White Balance Bias"), "tungstenwhitebias", PTP_DPC_NIKON_WhiteBalanceTungstenBias, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_UWBBias, _put_Nikon_UWBBias }, + { N_("Fluorescent White Balance Bias"), "flourescentwhitebias", PTP_DPC_NIKON_WhiteBalanceFluorescentBias, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_UWBBias, _put_Nikon_UWBBias }, + { N_("Daylight White Balance Bias"), "daylightwhitebias", PTP_DPC_NIKON_WhiteBalanceDaylightBias, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_UWBBias, _put_Nikon_UWBBias }, + { N_("Flash White Balance Bias"), "flashwhitebias", PTP_DPC_NIKON_WhiteBalanceFlashBias, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_UWBBias, _put_Nikon_UWBBias }, + { N_("Cloudy White Balance Bias"), "cloudywhitebias", PTP_DPC_NIKON_WhiteBalanceCloudyBias, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_UWBBias, _put_Nikon_UWBBias }, + { N_("Shady White Balance Bias"), "shadewhitebias", PTP_DPC_NIKON_WhiteBalanceShadeBias, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_UWBBias, _put_Nikon_UWBBias }, + { N_("Natural light auto White Balance Bias"), "naturallightautowhitebias", PTP_DPC_NIKON_WhiteBalanceNaturalLightAutoBias, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_UWBBias, _put_Nikon_UWBBias }, + /* older Nikons have INT8 ranges */ + { N_("Auto White Balance Bias"), "autowhitebias", PTP_DPC_NIKON_WhiteBalanceAutoBias, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_WBBias, _put_Nikon_WBBias }, + { N_("Tungsten White Balance Bias"), "tungstenwhitebias", PTP_DPC_NIKON_WhiteBalanceTungstenBias, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_WBBias, _put_Nikon_WBBias }, + { N_("Fluorescent White Balance Bias"), "flourescentwhitebias", PTP_DPC_NIKON_WhiteBalanceFluorescentBias, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_WBBias, _put_Nikon_WBBias }, + { N_("Daylight White Balance Bias"), "daylightwhitebias", PTP_DPC_NIKON_WhiteBalanceDaylightBias, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_WBBias, _put_Nikon_WBBias }, + { N_("Flash White Balance Bias"), "flashwhitebias", PTP_DPC_NIKON_WhiteBalanceFlashBias, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_WBBias, _put_Nikon_WBBias }, + { N_("Cloudy White Balance Bias"), "cloudywhitebias", PTP_DPC_NIKON_WhiteBalanceCloudyBias, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_WBBias, _put_Nikon_WBBias }, + { N_("Shady White Balance Bias"), "shadewhitebias", PTP_DPC_NIKON_WhiteBalanceShadeBias, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_WBBias, _put_Nikon_WBBias }, + + { N_("White Balance Bias Preset Nr"), "whitebiaspresetno", PTP_DPC_NIKON_WhiteBalancePresetNo, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_WBBiasPreset, _put_Nikon_WBBiasPreset }, + { N_("White Balance Bias Preset 0"), "whitebiaspreset0", PTP_DPC_NIKON_WhiteBalancePresetVal0, PTP_VENDOR_NIKON, PTP_DTC_UINT32, _get_Nikon_WBBiasPresetVal, _put_None }, + { N_("White Balance Bias Preset 1"), "whitebiaspreset1", PTP_DPC_NIKON_WhiteBalancePresetVal1, PTP_VENDOR_NIKON, PTP_DTC_UINT32, _get_Nikon_WBBiasPresetVal, _put_None }, + { N_("White Balance Bias Preset 2"), "whitebiaspreset2", PTP_DPC_NIKON_WhiteBalancePresetVal2, PTP_VENDOR_NIKON, PTP_DTC_UINT32, _get_Nikon_WBBiasPresetVal, _put_None }, + { N_("White Balance Bias Preset 3"), "whitebiaspreset3", PTP_DPC_NIKON_WhiteBalancePresetVal3, PTP_VENDOR_NIKON, PTP_DTC_UINT32, _get_Nikon_WBBiasPresetVal, _put_None }, + { N_("White Balance Bias Preset 4"), "whitebiaspreset4", PTP_DPC_NIKON_WhiteBalancePresetVal4, PTP_VENDOR_NIKON, PTP_DTC_UINT32, _get_Nikon_WBBiasPresetVal, _put_None }, + { N_("Selftimer Delay"), "selftimerdelay", PTP_DPC_NIKON_SelfTimer, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_SelfTimerDelay, _put_Nikon_SelfTimerDelay }, + { N_("Center Weight Area"), "centerweightsize", PTP_DPC_NIKON_CenterWeightArea, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_CenterWeight, _put_Nikon_CenterWeight }, + { N_("Flash Shutter Speed"), "flashshutterspeed", PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FlashShutterSpeed, _put_Nikon_FlashShutterSpeed }, + { N_("Remote Timeout"), "remotetimeout", PTP_DPC_NIKON_RemoteTimeout, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_RemoteTimeout, _put_Nikon_RemoteTimeout }, + { N_("Remote Mode"), "remotemode", PTP_DPC_NIKON_RemoteMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_RemoteMode, _put_Nikon_RemoteMode }, + { N_("Application Mode"), "applicationmode", PTP_DPC_NIKON_ApplicationMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_ApplicationMode, _put_Nikon_ApplicationMode }, + { N_("Optimize Image"), "optimizeimage", PTP_DPC_NIKON_OptimizeImage, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OptimizeImage, _put_Nikon_OptimizeImage }, + { N_("Sharpening"), "sharpening", PTP_DPC_NIKON_ImageSharpening, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_Sharpening, _put_Nikon_Sharpening }, + { N_("Tone Compensation"), "tonecompensation", PTP_DPC_NIKON_ToneCompensation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_ToneCompensation, _put_Nikon_ToneCompensation }, + { N_("Saturation"), "saturation", PTP_DPC_NIKON_Saturation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_Saturation, _put_Nikon_Saturation }, + { N_("Hue Adjustment"), "hueadjustment", PTP_DPC_NIKON_HueAdjustment, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_HueAdjustment, _put_Nikon_HueAdjustment }, + { N_("Auto Exposure Bracketing"), "aeb", PTP_DPC_CANON_EOS_AEB, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_AEB, _put_Canon_EOS_AEB }, + { N_("Auto Lighting Optimization"), "alomode", PTP_DPC_CANON_EOS_AloMode, PTP_VENDOR_CANON, PTP_DTC_UINT16, _get_Canon_EOS_AloMode, _put_Canon_EOS_AloMode }, + { N_("Movie Sound"), "moviesound", PTP_DPC_NIKON_MovVoice, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OffOn_UINT8, _put_Nikon_OffOn_UINT8 }, + { N_("Manual Movie Setting"), "manualmoviesetting", PTP_DPC_NIKON_ManualMovieSetting, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OnOff_UINT8, _put_Nikon_OnOff_UINT8 }, + { N_("Microphone"), "microphone", PTP_DPC_NIKON_MovMicrophone, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_Microphone, _put_Nikon_Microphone }, + { N_("Reverse Indicators"), "reverseindicators", PTP_DPC_NIKON_IndicatorDisp, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OffOn_UINT8, _put_Nikon_OffOn_UINT8 }, + { N_("Auto Distortion Control"), "autodistortioncontrol", PTP_DPC_NIKON_AutoDistortionControl, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OffOn_UINT8, _put_Nikon_OffOn_UINT8 }, + { N_("Video Mode"), "videomode", PTP_DPC_NIKON_VideoMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_VideoMode, _put_Nikon_VideoMode }, + { N_("Sensor Crop"), "sensorcrop", PTP_DPC_SONY_SensorCrop, PTP_VENDOR_SONY, PTP_DTC_UINT8, _get_Sony_SensorCrop, _put_Sony_SensorCrop }, + + { 0,0,0,0,0,0,0 }, +}; + +/* Nikon camera specific values, as unfortunately the values are handled differently + * A generic fallback for the "rest" of the Nikons is in the main menu. + */ +static struct submenu nikon_1_j3_camera_settings[] = { + { N_("ISO Speed"), "iso", PTP_DPC_NIKON_1_ISO, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_1_J3_ISO, _put_Nikon_1_J3_ISO }, + { 0,0,0,0,0,0,0 }, +}; +static struct submenu nikon_1_s1_camera_settings[] = { + { N_("ISO Speed"), "iso", PTP_DPC_NIKON_1_ISO, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_1_S1_ISO, _put_Nikon_1_S1_ISO }, + { 0,0,0,0,0,0,0 }, +}; +/* Nikon D90. Marcus Meissner */ +static struct submenu nikon_d90_camera_settings[] = { + { N_("Meter Off Time"), "meterofftime", PTP_DPC_NIKON_MeterOff, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D90_MeterOffTime, _put_Nikon_D90_MeterOffTime }, + { 0,0,0,0,0,0,0 }, +}; + +/* Nikon D7000. Marcus Meissner */ +static struct submenu nikon_d7000_camera_settings[] = { + { N_("Assign Func Button"), "funcbutton", PTP_DPC_NIKON_F4AssignFuncButton, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7000_FuncButton, _put_Nikon_D7000_FuncButton }, + { N_("Assign Preview Button"), "previewbutton", PTP_DPC_NIKON_PreviewButton, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7000_FuncButton, _put_Nikon_D7000_FuncButton }, + { 0,0,0,0,0,0,0 }, +}; + +/* Nikon D7100. Daniel Wagenaar */ +static struct submenu nikon_d7100_camera_settings[] = { + { N_("Assign Func Button"), "funcbutton", PTP_DPC_NIKON_F4AssignFuncButton, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7000_FuncButton, _put_Nikon_D7000_FuncButton }, + { N_("Assign Preview Button"), "previewbutton", PTP_DPC_NIKON_PreviewButton, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7000_FuncButton, _put_Nikon_D7000_FuncButton }, + { 0,0,0,0,0,0,0 }, +}; + +static struct submenu nikon_d40_capture_settings[] = { + { N_("Image Quality"), "imagequality", PTP_DPC_CompressionSetting, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D40_Compression, _put_Nikon_D40_Compression }, + { 0,0,0,0,0,0,0 }, +}; + +static struct submenu nikon_d850_capture_settings[] = { + { N_("Image Quality"), "imagequality", PTP_DPC_CompressionSetting, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D850_Compression, _put_Nikon_D850_Compression }, + { N_("Image Rotation Flag"), "imagerotationflag", PTP_DPC_NIKON_ImageRotation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_OffOn_UINT8, _put_Nikon_OffOn_UINT8 }, + { N_("Active D-Lighting"), "dlighting", PTP_DPC_NIKON_ActiveDLighting, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D850_ActiveDLighting, _put_Nikon_D850_ActiveDLighting }, + { N_("Continuous Shooting Speed Slow"), "shootingspeed", PTP_DPC_NIKON_D1ShootingSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D850_ShootingSpeed, _put_Nikon_D850_ShootingSpeed }, + { N_("Movie Resolution"), "moviequality", PTP_DPC_NIKON_MovScreenSize, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D850_MovieQuality, _put_Nikon_D850_MovieQuality }, + { N_("Center Weight Area"), "centerweightsize", PTP_DPC_NIKON_CenterWeightArea, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D850_CenterWeight, _put_Nikon_D850_CenterWeight }, + { N_("Focus Metering Mode"), "focusmetermode", PTP_DPC_FocusMeteringMode, PTP_VENDOR_NIKON, PTP_DTC_UINT16, _get_Nikon_D850_FocusMetering, _put_Nikon_D850_FocusMetering }, + { 0,0,0,0,0,0,0 }, +}; + +static struct submenu nikon_d7500_capture_settings[] = { + { N_("Image Quality"), "imagequality", PTP_DPC_CompressionSetting, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7500_Compression, _put_Nikon_D7500_Compression }, + { 0,0,0,0,0,0,0 }, +}; + +static struct submenu nikon_z6_capture_settings[] = { + { N_("Image Quality"), "imagequality", PTP_DPC_CompressionSetting, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D850_Compression, _put_Nikon_D850_Compression }, + { N_("Focus Metering Mode"), "focusmetermode", PTP_DPC_FocusMeteringMode, PTP_VENDOR_NIKON, PTP_DTC_UINT16, _get_Nikon_D850_FocusMetering, _put_Nikon_D850_FocusMetering }, + { 0,0,0,0,0,0,0 }, +}; + +static struct submenu nikon_d5100_capture_settings[] = { + { N_("Movie Quality"), "moviequality", PTP_DPC_NIKON_MovScreenSize, 0, PTP_DTC_UINT8, _get_Nikon_D5100_MovieQuality, _put_Nikon_D5100_MovieQuality }, + { N_("Exposure Program"), "expprogram", PTP_DPC_ExposureProgramMode, 0, PTP_DTC_UINT16, _get_NIKON_D5100_ExposureProgram, _put_NIKON_D5100_ExposureProgram }, + { N_("Minimum Shutter Speed"), "minimumshutterspeed", PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D90_PADVPValue, _put_Nikon_D90_PADVPValue }, + { 0,0,0,0,0,0,0 }, +}; + +/* Nikon D7100. Daniel Wagenaar */ +static struct submenu nikon_d7100_capture_settings[] = { + { N_("Movie Resolution"), "moviequality", PTP_DPC_NIKON_MovScreenSize, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7100_MovieQuality, _put_Nikon_D7100_MovieQuality }, + { N_("Movie Quality"), "moviequality2", PTP_DPC_NIKON_MovQuality, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7100_MovieQuality2, _put_Nikon_D7100_MovieQuality2 }, + { N_("Exposure Program"), "expprogram", PTP_DPC_ExposureProgramMode, 0, PTP_DTC_UINT16, _get_NIKON_D7100_ExposureProgram, _put_NIKON_D7100_ExposureProgram }, + { N_("Minimum Shutter Speed"), "minimumshutterspeed", PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7100_PADVPValue, _put_Nikon_D7100_PADVPValue }, + { N_("Continuous Shooting Speed Slow"), "shootingspeed", PTP_DPC_NIKON_D1ShootingSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7100_ShootingSpeed, _put_Nikon_D7100_ShootingSpeed }, + { N_("ISO Auto Hi Limit"), "isoautohilimit", PTP_DPC_NIKON_ISOAutoHiLimit, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D7100_ISOAutoHiLimit, _put_Nikon_D7100_ISOAutoHiLimit }, + { N_("Flash Sync. Speed"), "flashsyncspeed", PTP_DPC_NIKON_FlashSyncSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7100_FlashSyncSpeed, _put_Nikon_D7100_FlashSyncSpeed }, + { N_("Focus Metering"), "focusmetering", PTP_DPC_FocusMeteringMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7100_FocusMetering, _put_Nikon_D7100_FocusMetering }, + { 0,0,0,0,0,0,0 }, +}; +static struct submenu nikon_d90_capture_settings[] = { + { N_("Minimum Shutter Speed"), "minimumshutterspeed", PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D90_PADVPValue, _put_Nikon_D90_PADVPValue }, + { N_("ISO Auto Hi Limit"), "isoautohilimit", PTP_DPC_NIKON_ISOAutoHiLimit, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D90_ISOAutoHiLimit, _put_Nikon_D90_ISOAutoHiLimit }, + { N_("Active D-Lighting"), "dlighting", PTP_DPC_NIKON_ActiveDLighting, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D90_ActiveDLighting, _put_Nikon_D90_ActiveDLighting }, + { N_("High ISO Noise Reduction"), "highisonr", PTP_DPC_NIKON_NrHighISO, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D90_HighISONR, _put_Nikon_D90_HighISONR }, + { N_("Image Quality"), "imagequality", PTP_DPC_CompressionSetting, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D90_Compression, _put_Nikon_D90_Compression }, + { N_("Continuous Shooting Speed Slow"), "shootingspeed", PTP_DPC_NIKON_D1ShootingSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D90_ShootingSpeed, _put_Nikon_D90_ShootingSpeed }, + { 0,0,0,0,0,0,0 }, +}; + +/* One D3s reporter is Matthias Blaicher */ +static struct submenu nikon_d3s_capture_settings[] = { + { N_("Minimum Shutter Speed"), "minimumshutterspeed", PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_PADVPValue, _put_Nikon_D3s_PADVPValue }, + { N_("ISO Auto Hi Limit"), "isoautohilimit", PTP_DPC_NIKON_ISOAutoHiLimit, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D3s_ISOAutoHiLimit, _put_Nikon_D3s_ISOAutoHiLimit }, + { N_("Continuous Shooting Speed Slow"), "shootingspeed", PTP_DPC_NIKON_D1ShootingSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_ShootingSpeed, _put_Nikon_D3s_ShootingSpeed }, + { N_("Continuous Shooting Speed High"), "shootingspeedhigh", PTP_DPC_NIKON_ContinuousSpeedHigh, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_ShootingSpeedHigh, _put_Nikon_D3s_ShootingSpeedHigh }, + { N_("Flash Sync. Speed"), "flashsyncspeed", PTP_DPC_NIKON_FlashSyncSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_FlashSyncSpeed, _put_Nikon_D3s_FlashSyncSpeed }, + { N_("Flash Shutter Speed"), "flashshutterspeed", PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_FlashShutterSpeed, _put_Nikon_D3s_FlashShutterSpeed }, + { N_("Image Quality"), "imagequality", PTP_DPC_CompressionSetting, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_Compression, _put_Nikon_D3s_Compression }, + { N_("JPEG Compression Policy"), "jpegcompressionpolicy", PTP_DPC_NIKON_JPEG_Compression_Policy, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_JPEGCompressionPolicy, _put_Nikon_D3s_JPEGCompressionPolicy }, + { N_("AF-C Mode Priority"), "afcmodepriority", PTP_DPC_NIKON_A1AFCModePriority, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_AFCModePriority, _put_Nikon_D3s_AFCModePriority }, + { N_("AF-S Mode Priority"), "afsmodepriority", PTP_DPC_NIKON_A2AFSModePriority, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_AFSModePriority, _put_Nikon_D3s_AFSModePriority }, + { N_("AF Activation"), "afactivation", PTP_DPC_NIKON_A4AFActivation, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_AFActivation, _put_Nikon_D3s_AFActivation }, + { N_("Dynamic AF Area"), "dynamicafarea", PTP_DPC_NIKON_DynamicAFArea, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_DynamicAFArea, _put_Nikon_D3s_DynamicAFArea }, + { N_("AF Lock On"), "aflockon", PTP_DPC_NIKON_AFLockOn, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_AFLockOn, _put_Nikon_D3s_AFLockOn }, + { N_("AF Area Point"), "afareapoint", PTP_DPC_NIKON_AFAreaPoint, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_AFAreaPoint, _put_Nikon_D3s_AFAreaPoint }, + { N_("AF On Button"), "afonbutton", PTP_DPC_NIKON_NormalAFOn, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_NormalAFOn, _put_Nikon_D3s_NormalAFOn }, + + /* same as D90 */ + { N_("High ISO Noise Reduction"), "highisonr", PTP_DPC_NIKON_NrHighISO, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D90_HighISONR, _put_Nikon_D90_HighISONR }, + { N_("Active D-Lighting"), "dlighting", PTP_DPC_NIKON_ActiveDLighting, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D90_ActiveDLighting, _put_Nikon_D90_ActiveDLighting }, + + { 0,0,0,0,0,0,0 }, +}; + +static struct submenu nikon_generic_capture_settings[] = { + /* filled in with D90 values */ + { N_("Minimum Shutter Speed"), "minimumshutterspeed", PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D90_PADVPValue, _put_Nikon_D90_PADVPValue }, + { N_("ISO Auto Hi Limit"), "isoautohilimit", PTP_DPC_NIKON_ISOAutoHiLimit, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D90_ISOAutoHiLimit, _put_Nikon_D90_ISOAutoHiLimit }, + { N_("Active D-Lighting"), "dlighting", PTP_DPC_NIKON_ActiveDLighting, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D90_ActiveDLighting, _put_Nikon_D90_ActiveDLighting }, + { N_("High ISO Noise Reduction"), "highisonr", PTP_DPC_NIKON_NrHighISO, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D90_HighISONR, _put_Nikon_D90_HighISONR }, + { N_("Movie High ISO Noise Reduction"), "moviehighisonr", PTP_DPC_NIKON_MovieNrHighISO, PTP_VENDOR_NIKON, PTP_DTC_INT8, _get_Nikon_D90_HighISONR, _put_Nikon_D90_HighISONR }, + { N_("Continuous Shooting Speed Slow"), "shootingspeed", PTP_DPC_NIKON_D1ShootingSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D90_ShootingSpeed, _put_Nikon_D90_ShootingSpeed }, + { N_("Maximum continuous release"), "maximumcontinousrelease", PTP_DPC_NIKON_D2MaximumShots, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Range_UINT8, _put_Range_UINT8 }, + { N_("Movie Quality"), "moviequality", PTP_DPC_NIKON_MovScreenSize, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_MovieQuality, _put_Nikon_MovieQuality }, + { N_("Movie Quality"), "moviequality", PTP_DPC_NIKON_1_MovQuality, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_1_MovieQuality, _put_Nikon_1_MovieQuality }, + { N_("High ISO Noise Reduction"), "highisonr", PTP_DPC_NIKON_1_HiISONoiseReduction, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_1_HighISONR, _put_Nikon_1_HighISONR }, + + { N_("Raw Compression"), "rawcompression", PTP_DPC_NIKON_RawCompression, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_RawCompression, _put_Nikon_RawCompression }, + + { N_("Image Quality 2"), "imagequality2", PTP_DPC_NIKON_1_ImageCompression, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_1_Compression, _put_Nikon_1_Compression }, + + /* And some D3s values */ + { N_("Continuous Shooting Speed High"), "shootingspeedhigh", PTP_DPC_NIKON_ContinuousSpeedHigh, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_ShootingSpeedHigh, _put_Nikon_D3s_ShootingSpeedHigh }, + { N_("Flash Sync. Speed"), "flashsyncspeed", PTP_DPC_NIKON_FlashSyncSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_FlashSyncSpeed, _put_Nikon_D3s_FlashSyncSpeed }, + { N_("Flash Shutter Speed"), "flashshutterspeed", PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D3s_FlashShutterSpeed, _put_Nikon_D3s_FlashShutterSpeed }, + + { 0,0,0,0,0,0,0 }, +}; + + +static struct menu menus[] = { + { N_("Camera Actions"), "actions", 0, 0, camera_actions_menu, NULL, NULL }, + + { N_("Camera Settings"), "settings", 0x4b0, 0x0428, nikon_d7000_camera_settings, NULL, NULL }, + { N_("Camera Settings"), "settings", 0x4b0, 0x0430, nikon_d7100_camera_settings, NULL, NULL }, + { N_("Camera Settings"), "settings", 0x4b0, 0x0421, nikon_d90_camera_settings, NULL, NULL }, + { N_("Camera Settings"), "settings", 0x4b0, 0x0606, nikon_1_s1_camera_settings, NULL, NULL }, + { N_("Camera Settings"), "settings", 0x4b0, 0x0605, nikon_1_j3_camera_settings, NULL, NULL }, + { N_("Camera Settings"), "settings", 0, 0, camera_settings_menu, NULL, NULL }, + + { N_("Camera Status Information"), "status", 0, 0, camera_status_menu, NULL, NULL }, + { N_("Image Settings"), "imgsettings", 0, 0, image_settings_menu, NULL, NULL }, + + + { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0421, nikon_d90_capture_settings, NULL, NULL }, + { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0426, nikon_d3s_capture_settings, NULL, NULL }, + { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0429, nikon_d5100_capture_settings, NULL, NULL }, + { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0430, nikon_d7100_capture_settings, NULL, NULL }, + { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0440, nikon_d7500_capture_settings, NULL, NULL }, + { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0414, nikon_d40_capture_settings, NULL, NULL }, + { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0441, nikon_d850_capture_settings, NULL, NULL }, + { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0442, nikon_z6_capture_settings, NULL, NULL }, /* Z7 */ + { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0443, nikon_z6_capture_settings, NULL, NULL }, /* Z6 */ + { N_("Capture Settings"), "capturesettings", 0x4b0, 0, nikon_generic_capture_settings, NULL, NULL }, + { N_("Capture Settings"), "capturesettings", 0, 0, capture_settings_menu, NULL, NULL }, + + { N_("WIFI profiles"), "wifiprofiles", 0, 0, NULL, _get_wifi_profiles_menu, _put_wifi_profiles_menu }, +}; + +/* + * Can do 3 things: + * - get the whole widget dialog tree (confname = NULL, list = NULL, widget = rootwidget) + * - get the named single widget (confname = the specified property, widget = property widget, list = NULL) + * - get a flat ascii list of configuration names (confname = NULL, widget = NULL, list = list to fill in) + */ +static int +_get_config (Camera *camera, const char *confname, CameraWidget **outwidget, CameraList *list, GPContext *context) +{ + CameraWidget *section, *widget, *window; + unsigned int menuno, submenuno; + int ret; + uint16_t *setprops = NULL; + int i, nrofsetprops = 0; + PTPParams *params = &camera->pl->params; + CameraAbilities ab; + + enum { + MODE_GET, + MODE_LIST, + MODE_SINGLE_GET + } mode = MODE_GET; + + if (confname) + mode = MODE_SINGLE_GET; + if (list) { + gp_list_reset (list); + mode = MODE_LIST; + } + + SET_CONTEXT(camera, context); + memset (&ab, 0, sizeof(ab)); + gp_camera_get_abilities (camera, &ab); + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + (ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteRelease) || + ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn) + ) + ) { + if (!params->eos_captureenabled) + camera_prepare_capture (camera, context); + ptp_check_eos_events (params); + /* Otherwise the camera will auto-shutdown */ + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_KeepDeviceOn)) + C_PTP (ptp_canon_eos_keepdeviceon (params)); + } + + if (mode == MODE_GET) { + gp_widget_new (GP_WIDGET_WINDOW, _("Camera and Driver Configuration"), &window); + gp_widget_set_name (window, "main"); + *outwidget = window; + } + + for (menuno = 0; menuno < sizeof(menus)/sizeof(menus[0]) ; menuno++ ) { + if (!menus[menuno].submenus) { /* Custom menu */ + if (mode == MODE_GET) { + struct menu *cur = menus+menuno; + ret = cur->getfunc(camera, §ion, cur); + if (ret == GP_OK) + gp_widget_append(window, section); + } /* else ... not supported in single get and list */ + continue; + } + if ((menus[menuno].usb_vendorid != 0) && (ab.port == GP_PORT_USB)) { + if (menus[menuno].usb_vendorid != ab.usb_vendor) + continue; + if ( menus[menuno].usb_productid && + (menus[menuno].usb_productid != ab.usb_product) + ) + continue; + GP_LOG_D ("usb vendor/product specific path entered"); + } + + if (mode == MODE_GET) { + /* Standard menu with submenus */ + ret = gp_widget_get_child_by_label (window, _(menus[menuno].label), §ion); + if (ret != GP_OK) { + gp_widget_new (GP_WIDGET_SECTION, _(menus[menuno].label), §ion); + gp_widget_set_name (section, menus[menuno].name); + gp_widget_append (window, section); + } + } + for (submenuno = 0; menus[menuno].submenus[submenuno].name ; submenuno++ ) { + struct submenu *cursub = menus[menuno].submenus+submenuno; + widget = NULL; + + if ( have_prop(camera,cursub->vendorid,cursub->propid) || + ((cursub->propid == 0) && have_prop(camera,cursub->vendorid,cursub->type)) + ) { + int j; + + /* Do not handle a property we have already handled. + * needed for the vendor specific but different configs. + */ + if (cursub->propid) { + for (j=0;jpropid) + break; + if (jlabel, cursub->propid ); + continue; + } + if (nrofsetprops) + C_MEM (setprops = realloc(setprops,sizeof(setprops[0])*(nrofsetprops+1))); + else + C_MEM (setprops = malloc(sizeof(setprops[0]))); + setprops[nrofsetprops++] = cursub->propid; + } + /* ok, looking good */ + if ( ((cursub->propid & 0x7000) == 0x5000) || + (NIKON_1(params) && ((cursub->propid & 0xf000) == 0xf000)) + ) { + PTPDevicePropDesc dpd; + + if ((mode == MODE_SINGLE_GET) && strcmp (cursub->name, confname)) + continue; + if (mode == MODE_LIST) { + gp_list_append (list, cursub->name, NULL); + continue; + } + + GP_LOG_D ("Getting property '%s' / 0x%04x", cursub->label, cursub->propid ); + memset(&dpd,0,sizeof(dpd)); + ret = LOG_ON_PTP_E(ptp_generic_getdevicepropdesc(params,cursub->propid,&dpd)); + if (ret != PTP_RC_OK) + continue; + + if (cursub->type != dpd.DataType) { + GP_LOG_E ("Type of property '%s' expected: 0x%04x got: 0x%04x", cursub->label, cursub->type, dpd.DataType ); + /* str is incompatible to all others */ + if ((PTP_DTC_STR == cursub->type) || (PTP_DTC_STR == dpd.DataType)) + continue; + /* array is not compatible to non-array */ + if (((cursub->type ^ dpd.DataType) & PTP_DTC_ARRAY_MASK) == PTP_DTC_ARRAY_MASK) + continue; + } + ret = cursub->getfunc (camera, &widget, cursub, &dpd); + if ((ret == GP_OK) && (dpd.GetSet == PTP_DPGS_Get)) + gp_widget_set_readonly (widget, 1); + ptp_free_devicepropdesc(&dpd); + if (mode == MODE_SINGLE_GET) { + *outwidget = widget; + free (setprops); + return GP_OK; + } + } else { + /* if it is a OPC, check for its presence. Otherwise just create the widget. */ + if ( ((cursub->type & 0x7000) != 0x1000) || + ptp_operation_issupported(params, cursub->type) + ) { + if ((mode == MODE_SINGLE_GET) && strcmp (cursub->name, confname)) + continue; + if (mode == MODE_LIST) { + gp_list_append (list, cursub->name, NULL); + continue; + } + + GP_LOG_D ("Getting function prop '%s' / 0x%04x", cursub->label, cursub->type ); + ret = cursub->getfunc (camera, &widget, cursub, NULL); + if (mode == MODE_SINGLE_GET) { + *outwidget = widget; + free (setprops); + return GP_OK; + } + } else + continue; + } + if (ret != GP_OK) { + GP_LOG_D ("Failed to parse value of property '%s' / 0x%04x: error code %d", cursub->label, cursub->propid, ret); + continue; + } + if (mode == MODE_GET) + gp_widget_append (section, widget); + continue; + } + if (have_eos_prop(params,cursub->vendorid,cursub->propid)) { + PTPDevicePropDesc dpd; + + if ((mode == MODE_SINGLE_GET) && strcmp (cursub->name, confname)) + continue; + if (mode == MODE_LIST) { + gp_list_append (list, cursub->name, NULL); + continue; + } + GP_LOG_D ("Getting property '%s' / 0x%04x", cursub->label, cursub->propid ); + memset(&dpd,0,sizeof(dpd)); + ptp_canon_eos_getdevicepropdesc (params,cursub->propid, &dpd); + ret = cursub->getfunc (camera, &widget, cursub, &dpd); + ptp_free_devicepropdesc(&dpd); + if (ret != GP_OK) { + GP_LOG_D ("Failed to parse value of property '%s' / 0x%04x: error code %d", cursub->label, cursub->propid, ret); + continue; + } + if (mode == MODE_SINGLE_GET) { + *outwidget = widget; + free (setprops); + return GP_OK; + } + if (mode == MODE_GET) + gp_widget_append (section, widget); + continue; + } + } + } + + if (!params->deviceinfo.DevicePropertiesSupported_len) { + free (setprops); + return GP_OK; + } + + if (mode == MODE_GET) { + /* Last menu is "Other", a generic property fallback window. */ + gp_widget_new (GP_WIDGET_SECTION, _("Other PTP Device Properties"), §ion); + gp_widget_set_name (section, "other"); + gp_widget_append (window, section); + } + + for (i=0;ideviceinfo.DevicePropertiesSupported_len;i++) { + uint16_t propid = params->deviceinfo.DevicePropertiesSupported[i]; + char buf[21], *label; + PTPDevicePropDesc dpd; + CameraWidgetType type; + +#if 0 /* enable this for suppression of generic properties for already decoded ones */ + int j; + + for (j=0;jpl->params; + PTPPropertyValue propval; + unsigned int i; + CameraAbilities ab; + enum { + MODE_SET, MODE_SINGLE_SET + } mode = MODE_SET; + + if (confname) mode = MODE_SINGLE_SET; + + SET_CONTEXT(camera, context); + memset (&ab, 0, sizeof(ab)); + gp_camera_get_abilities (camera, &ab); + + camera->pl->checkevents = TRUE; + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + (ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteRelease) || + ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn) + ) + ) { + if (!params->eos_captureenabled) + camera_prepare_capture (camera, context); + ptp_check_eos_events (params); + } + + if (mode == MODE_SET) + CR (gp_widget_get_child_by_label (window, _("Camera and Driver Configuration"), &subwindow)); + for (menuno = 0; menuno < sizeof(menus)/sizeof(menus[0]) ; menuno++ ) { + if (mode == MODE_SET) { + ret = gp_widget_get_child_by_label (subwindow, _(menus[menuno].label), §ion); + if (ret != GP_OK) + continue; + } + + if (!menus[menuno].submenus) { /* Custom menu */ + if (mode == MODE_SET) + menus[menuno].putfunc(camera, section); + continue; + } + if ((menus[menuno].usb_vendorid != 0) && (ab.port == GP_PORT_USB)) { + if (menus[menuno].usb_vendorid != ab.usb_vendor) + continue; + if ( menus[menuno].usb_productid && + (menus[menuno].usb_productid != ab.usb_product) + ) + continue; + GP_LOG_D ("usb vendor/product specific path entered"); + } + + /* Standard menu with submenus */ + for (submenuno = 0; menus[menuno].submenus[submenuno].label ; submenuno++ ) { + struct submenu *cursub = menus[menuno].submenus+submenuno; + + ret = GP_OK; + if (mode == MODE_SET) { + ret = gp_widget_get_child_by_label (section, _(cursub->label), &widget); + if (ret != GP_OK) + continue; + + if (!gp_widget_changed (widget)) + continue; + + /* restore the "changed flag" */ + gp_widget_set_changed (widget, TRUE); + } + + if ( have_prop(camera,cursub->vendorid,cursub->propid) || + ((cursub->propid == 0) && have_prop(camera,cursub->vendorid,cursub->type)) + ) { + if ((mode == MODE_SINGLE_SET) && strcmp (confname, cursub->name)) + continue; + + gp_widget_set_changed (widget, FALSE); /* clear flag */ + GP_LOG_D ("Setting property '%s' / 0x%04x", cursub->label, cursub->propid ); + if ( ((cursub->propid & 0x7000) == 0x5000) || + (NIKON_1(params) && ((cursub->propid & 0xf000) == 0xf000)) + ){ + PTPDevicePropDesc dpd; + + memset(&dpd,0,sizeof(dpd)); + memset(&propval,0,sizeof(propval)); + + C_PTP (ptp_generic_getdevicepropdesc(params,cursub->propid,&dpd)); + if (cursub->type != dpd.DataType) { + GP_LOG_E ("Type of property '%s' expected: 0x%04x got: 0x%04x", cursub->label, cursub->type, dpd.DataType ); + /* str is incompatible to all others */ + if ((PTP_DTC_STR == cursub->type) || (PTP_DTC_STR == dpd.DataType)) + continue; + /* array is not compatible to non-array */ + if (((cursub->type ^ dpd.DataType) & PTP_DTC_ARRAY_MASK) == PTP_DTC_ARRAY_MASK) + continue; + } + if (dpd.GetSet == PTP_DPGS_GetSet) { + ret = cursub->putfunc (camera, widget, &propval, &dpd); + } else { + gp_context_error (context, _("Sorry, the property '%s' / 0x%04x is currently read-only."), _(cursub->label), cursub->propid); + ret = GP_ERROR_NOT_SUPPORTED; + } + if (ret == GP_OK) { + ret_ptp = LOG_ON_PTP_E (ptp_generic_setdevicepropvalue (params, cursub->propid, &propval, cursub->type)); + if (ret_ptp != PTP_RC_OK) { + gp_context_error (context, _("The property '%s' / 0x%04x was not set (0x%04x: %s)"), + _(cursub->label), cursub->propid, ret_ptp, _(ptp_strerror(ret_ptp, params->deviceinfo.VendorExtensionID))); + ret = translate_ptp_result (ret_ptp); + } + ptp_free_devicepropvalue (cursub->type, &propval); + } + ptp_free_devicepropdesc(&dpd); + } else { + ret = cursub->putfunc (camera, widget, NULL, NULL); + } + if (mode == MODE_SINGLE_SET) + return ret; + } + if (have_eos_prop(params,cursub->vendorid,cursub->propid)) { + PTPDevicePropDesc dpd; + + if ((mode == MODE_SINGLE_SET) && strcmp (confname, cursub->name)) + continue; + gp_widget_set_changed (widget, FALSE); /* clear flag */ + if ((cursub->propid & 0x7000) == 0x5000) { + GP_LOG_D ("Setting property '%s' / 0x%04x", cursub->label, cursub->propid); + memset(&dpd,0,sizeof(dpd)); + ptp_canon_eos_getdevicepropdesc (params,cursub->propid, &dpd); + ret = cursub->putfunc (camera, widget, &propval, &dpd); + if (ret == GP_OK) { + ret_ptp = LOG_ON_PTP_E (ptp_canon_eos_setdevicepropvalue (params, cursub->propid, &propval, cursub->type)); + if (ret_ptp != PTP_RC_OK) { + gp_context_error (context, _("The property '%s' / 0x%04x was not set (0x%04x: %s)."), + _(cursub->label), cursub->propid, ret_ptp, _(ptp_strerror(ret_ptp, params->deviceinfo.VendorExtensionID))); + ret = translate_ptp_result (ret_ptp); + } + ptp_free_devicepropvalue(cursub->type, &propval); + } else + gp_context_error (context, _("Parsing the value of widget '%s' / 0x%04x failed with %d."), _(cursub->label), cursub->propid, ret); + ptp_free_devicepropdesc(&dpd); + } else { + GP_LOG_D ("Setting virtual property '%s' / 0x%04x", cursub->label, cursub->propid); + ret = cursub->putfunc (camera, widget, &propval, &dpd); + } + if (mode == MODE_SINGLE_SET) + return ret; + } + if (ret != GP_OK) + return ret; + } + } + if (!params->deviceinfo.DevicePropertiesSupported_len) + return GP_OK; + + if (mode == MODE_SET) + CR (gp_widget_get_child_by_label (subwindow, _("Other PTP Device Properties"), §ion)); + /* Generic property setter */ + for (i=0;ideviceinfo.DevicePropertiesSupported_len;i++) { + uint16_t propid = params->deviceinfo.DevicePropertiesSupported[i]; + CameraWidgetType type; + char buf[20], *label, *xval; + PTPDevicePropDesc dpd; + + if (mode == MODE_SINGLE_SET) { + sprintf(buf,"%04x", propid); + if (strcmp (confname, buf)) + continue; + } + label = (char*)ptp_get_property_description(params, propid); + if (!label) { + sprintf (buf, N_("PTP Property 0x%04x"), propid); + label = buf; + } + if (mode == MODE_SET) { + ret = gp_widget_get_child_by_label (section, _(label), &widget); + if (ret != GP_OK) + continue; + if (!gp_widget_changed (widget)) + continue; + gp_widget_set_changed (widget, FALSE); + } + + gp_widget_get_type (widget, &type); + + memset (&dpd,0,sizeof(dpd)); + memset (&propval,0,sizeof(propval)); + ret = ptp_generic_getdevicepropdesc (params,propid,&dpd); + if (ret != PTP_RC_OK) + continue; + if (dpd.GetSet != PTP_DPGS_GetSet) { + gp_context_error (context, _("Sorry, the property '%s' / 0x%04x is currently read-only."), _(label), propid); + return GP_ERROR_NOT_SUPPORTED; + } + + switch (dpd.DataType) { +#define X(dtc,val) \ + case dtc: \ + if (type == GP_WIDGET_RANGE) { \ + float f; \ + gp_widget_get_value (widget, &f); \ + propval.val = f; \ + } else { \ + long x; \ + ret = gp_widget_get_value (widget, &xval); \ + sscanf (xval, "%ld", &x); \ + propval.val = x; \ + }\ + break; + + X(PTP_DTC_INT8,i8) + X(PTP_DTC_UINT8,u8) + X(PTP_DTC_INT16,i16) + X(PTP_DTC_UINT16,u16) + X(PTP_DTC_INT32,i32) + X(PTP_DTC_UINT32,u32) + X(PTP_DTC_INT64,i64) + X(PTP_DTC_UINT64,u64) +#undef X + case PTP_DTC_STR: { + char *val; + gp_widget_get_value (widget, &val); + C_MEM (propval.str = strdup(val)); + break; + } + default: + break; + } + + /* TODO: ret is ignored here, this is inconsistent with the code above */ + ret = LOG_ON_PTP_E (ptp_generic_setdevicepropvalue (params, propid, &propval, dpd.DataType)); + if (ret != PTP_RC_OK) { + gp_context_error (context, _("The property '%s' / 0x%04x was not set (0x%04x: %s)."), + _(label), propid, ret, _(ptp_strerror(ret, params->deviceinfo.VendorExtensionID))); + ret = GP_ERROR; + } + ptp_free_devicepropvalue (dpd.DataType, &propval); + ptp_free_devicepropdesc (&dpd); + if (mode == MODE_SINGLE_SET) + return GP_OK; + } + if (mode == MODE_SINGLE_SET) { + /* if we get here, we have not found anything */ + gp_context_error (context, _("Property '%s' not found."), confname); + return GP_ERROR_BAD_PARAMETERS; + } + return GP_OK; +} + +int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + return _set_config (camera, NULL, window, context); +} + +int +camera_set_single_config (Camera *camera, const char *confname, CameraWidget *widget, GPContext *context) +{ + return _set_config (camera, confname, widget, context); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/device-flags.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/device-flags.h new file mode 100644 index 00000000..ced4985c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/device-flags.h @@ -0,0 +1,344 @@ +/** + * \file device-flags.h + * Special device flags to deal with bugs in specific devices. + * + * Copyright (C) 2005-2007 Richard A. Low + * Copyright (C) 2005-2012 Linus Walleij + * Copyright (C) 2006-2007 Marcus Meissner + * Copyright (C) 2007 Ted Bullock + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * This file is supposed to be included by both libmtp and libgphoto2. + */ + +/** + * These flags are used to indicate if some or other + * device need special treatment. These should be possible + * to concatenate using logical OR so please use one bit per + * feature and lets pray we don't need more than 32 bits... + */ +#define DEVICE_FLAG_NONE 0x00000000 +/** + * This means that the PTP_OC_MTP_GetObjPropList is broken + * in the sense that it won't return properly formatted metadata + * for ALL files on the device when you request an object + * property list for object 0xFFFFFFFF with parameter 3 likewise + * set to 0xFFFFFFFF. Compare to + * DEVICE_FLAG_BROKEN_MTPGETOBJECTPROPLIST which only signify + * that it's broken when getting metadata for a SINGLE object. + * A typical way the implementation may be broken is that it + * may not return a proper count of the objects, and sometimes + * (like on the ZENs) objects are simply missing from the list + * if you use this. Sometimes it has been used incorrectly to + * mask bugs in the code (like handling transactions of data + * with size given to -1 (0xFFFFFFFFU), in that case please + * help us remove it now the code is fixed. Sometimes this is + * used because getting all the objects is just too slow and + * the USB transaction will time out if you use this command. + */ +#define DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL 0x00000001 +/** + * This means that under Linux, another kernel module may + * be using this device's USB interface, so we need to detach + * it if it is. Typically this is on dual-mode devices that + * will present both an MTP compliant interface and device + * descriptor *and* a USB mass storage interface. If the USB + * mass storage interface is in use, other apps (like our + * userspace libmtp through libusb access path) cannot get in + * and get cosy with it. So we can remove the offending + * application. Typically this means you have to run the program + * as root as well. + */ +#define DEVICE_FLAG_UNLOAD_DRIVER 0x00000002 +/** + * This means that the PTP_OC_MTP_GetObjPropList (9805) + * is broken in some way, either it doesn't work at all + * (as for Android devices) or it won't properly return all + * object properties if parameter 3 is set to 0xFFFFFFFFU. + */ +#define DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST 0x00000004 +/** + * This means the device doesn't send zero packets to indicate + * end of transfer when the transfer boundary occurs at a + * multiple of 64 bytes (the USB 1.1 endpoint size). Instead, + * exactly one extra byte is sent at the end of the transfer + * if the size is an integer multiple of USB 1.1 endpoint size + * (64 bytes). + * + * This behaviour is most probably a workaround due to the fact + * that the hardware USB slave controller in the device cannot + * handle zero writes at all, and the usage of the USB 1.1 + * endpoint size is due to the fact that the device will "gear + * down" on a USB 1.1 hub, and since 64 bytes is a multiple of + * 512 bytes, it will work with USB 1.1 and USB 2.0 alike. + */ +#define DEVICE_FLAG_NO_ZERO_READS 0x00000008 +/** + * This flag means that the device is prone to forgetting the + * OGG container file type, so that libmtp must look at the + * filename extensions in order to determine that a file is + * actually OGG. This is a clear and present firmware bug, and + * while firmware bugs should be fixed in firmware, we like + * OGG so much that we back it by introducing this flag. + * The error has only been seen on iriver devices. Turning this + * flag on won't hurt anything, just that the check against + * filename extension will be done for files of "unknown" type. + * If the player does not even know (reports) that it supports + * ogg even though it does, please use the stronger + * OGG_IS_UNKNOWN flag, which will forcedly support ogg on + * anything with the .ogg filename extension. + */ +#define DEVICE_FLAG_IRIVER_OGG_ALZHEIMER 0x00000010 +/** + * This flag indicates a limitation in the filenames a device + * can accept - they must be 7 bit (all chars <= 127/0x7F). + * It was found first on the Philips Shoqbox, and is a deviation + * from the PTP standard which mandates that any unicode chars + * may be used for filenames. I guess this is caused by a 7bit-only + * filesystem being used intrinsically on the device. + */ +#define DEVICE_FLAG_ONLY_7BIT_FILENAMES 0x00000020 +/** + * This flag indicates that the device will lock up if you + * try to get status of endpoints and/or release the interface + * when closing the device. This fixes problems with SanDisk + * Sansa devices especially. It may be a side-effect of a + * Windows behaviour of never releasing interfaces. + */ +#define DEVICE_FLAG_NO_RELEASE_INTERFACE 0x00000040 +/** + * This flag was introduced with the advent of Creative ZEN + * 8GB. The device sometimes return a broken PTP header + * like this: < 1502 0000 0200 01d1 02d1 01d2 > + * the latter 6 bytes (representing "code" and "transaction ID") + * contain junk. This is breaking the PTP/MTP spec but works + * on Windows anyway, probably because the Windows implementation + * does not check that these bytes are valid. To interoperate + * with devices like this, we need this flag to emulate the + * Windows bug. Broken headers has also been found in the + * Aricent MTP stack. + */ +#define DEVICE_FLAG_IGNORE_HEADER_ERRORS 0x00000080 +/** + * The Motorola RAZR2 V8 (others?) has broken set object + * proplist causing the metadata setting to fail. (The + * set object prop to set individual properties work on + * this device, but the metadata is plain ignored on + * tracks, though e.g. playlist names can be set.) + */ +#define DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST 0x00000100 +/** + * The Samsung YP-T10 think Ogg files shall be sent with + * the "unknown" (PTP_OFC_Undefined) file type, this gives a + * side effect that is a combination of the iRiver Ogg Alzheimer + * problem (have to recognized Ogg files on file extension) + * and a need to report the Ogg support (the device itself does + * not properly claim to support it) and need to set filetype + * to unknown when storing Ogg files, even though they're not + * actually unknown. Later iRivers seem to need this flag since + * they do not report to support OGG even though they actually + * do. Often the device supports OGG in USB mass storage mode, + * then the firmware simply miss to declare metadata support + * for OGG properly. + */ +#define DEVICE_FLAG_OGG_IS_UNKNOWN 0x00000200 +/** + * The Creative Zen is quite unstable in libmtp but seems to + * be better with later firmware versions. However, it still + * frequently crashes when setting album art dimensions. This + * flag disables setting the dimensions (which seems to make + * no difference to how the graphic is displayed). + */ +#define DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS 0x00000400 +/** + * Some devices, particularly SanDisk Sansas, need to always + * have their "OS Descriptor" probed in order to work correctly. + * This flag provides that extra massage. + */ +#define DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR 0x00000800 +/** + * Samsung has implimented its own playlist format as a .spl file + * stored in the normal file system, rather than a proper mtp + * playlist. There are multiple versions of the .spl format + * identified by a line in the file: VERSION X.XX + * Version 1.00 is just a simple playlist. + */ +#define DEVICE_FLAG_PLAYLIST_SPL_V1 0x00001000 +/** + * Samsung has implimented its own playlist format as a .spl file + * stored in the normal file system, rather than a proper mtp + * playlist. There are multiple versions of the .spl format + * identified by a line in the file: VERSION X.XX + * Version 2.00 is playlist but allows DNSe sound settings + * to be stored, per playlist. + */ +#define DEVICE_FLAG_PLAYLIST_SPL_V2 0x00002000 +/** + * The Sansa E250 is know to have this problem which is actually + * that the device claims that property PTP_OPC_DateModified + * is read/write but will still fail to update it. It can only + * be set properly the first time a file is sent. + */ +#define DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED 0x00004000 +/** + * This avoids use of the send object proplist which + * is used when creating new objects (not just updating) + * The DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST is related + * but only concerns the case where the object proplist + * is sent in to update an existing object. The Toshiba + * Gigabeat MEU202 for example has this problem. + */ +#define DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST 0x00008000 +/** + * Devices that cannot support reading out battery + * level. + */ +#define DEVICE_FLAG_BROKEN_BATTERY_LEVEL 0x00010000 + +/** + * Devices that send "ObjectDeleted" events after deletion + * of images. (libgphoto2) + */ +#define DEVICE_FLAG_DELETE_SENDS_EVENT 0x00020000 + +/** + * Cameras that can capture images. (libgphoto2) + */ +#define DEVICE_FLAG_CAPTURE 0x00040000 + +/** + * Cameras that can capture images. (libgphoto2) + */ +#define DEVICE_FLAG_CAPTURE_PREVIEW 0x00080000 + +/** + * Nikon broken capture support without proper ObjectAdded events. + * (libgphoto2) + */ +#define DEVICE_FLAG_NIKON_BROKEN_CAPTURE 0x00100000 + +/** + * To distinguish the V1 series from the DSLRs and handle them + * (libgphoto2) + */ +#define DEVICE_FLAG_NIKON_1 0x00200000 + +/** + * Broken capture support where cameras do not send CaptureComplete events. + * (libgphoto2) + */ +#define DEVICE_FLAG_NO_CAPTURE_COMPLETE 0x00400000 + +/** + * Direct PTP match required. + * (libgphoto2) + */ +#define DEVICE_FLAG_OLYMPUS_XML_WRAPPED 0x00800000 +/** + * This flag is like DEVICE_FLAG_OGG_IS_UNKNOWN but for FLAC + * files instead. Using the unknown filetype for FLAC files. + */ +#define DEVICE_FLAG_FLAC_IS_UNKNOWN 0x01000000 +/** + * Device needs unique filenames, no two files can be + * named the same string. + */ +#define DEVICE_FLAG_UNIQUE_FILENAMES 0x02000000 +/** + * This flag performs some random magic on the BlackBerry + * device to switch from USB mass storage to MTP mode we think. + */ +#define DEVICE_FLAG_SWITCH_MODE_BLACKBERRY 0x04000000 +/** + * This flag indicates that the device need an extra long + * timeout on some operations. + */ +#define DEVICE_FLAG_LONG_TIMEOUT 0x08000000 +/** + * This flag indicates that the device need an explicit + * USB reset after each connection. Some devices don't + * like this, so it's not done by default. + */ +#define DEVICE_FLAG_FORCE_RESET_ON_CLOSE 0x10000000 +/** + * On 2016 EOS cameras, do not close the session on exiting, + * as the device will only report ptp errors afterwards. + */ +#define DEVICE_FLAG_DONT_CLOSE_SESSION 0x20000000 +/** + * It seems that some devices return an bad data when + * using the GetObjectInfo operation. So in these cases + * we prefer to override the PTP-compatible object infos + * with the MTP property list. + * + * For example Some Samsung Galaxy S devices contain an MTP + * stack that present the ObjectInfo in 64 bit instead of + * 32 bit. + */ +#define DEVICE_FLAG_PROPLIST_OVERRIDES_OI 0x40000000 +/** + * The MTP stack of Samsung Galaxy devices has a mysterious bug in + * GetPartialObject. When GetPartialObject is invoked to read the last + * bytes of a file and the amount of data to read is such that the + * last USB packet sent in the reply matches exactly the USB 2.0 + * packet size, then the Samsung Galaxy device hangs, resulting in a + * timeout error. + */ +#define DEVICE_FLAG_SAMSUNG_OFFSET_BUG 0x80000000 + +/** + * All these bug flags need to be set on SONY NWZ Walkman + * players, and will be autodetected on unknown devices + * by detecting the vendor extension descriptor "sony.net" + */ +#define DEVICE_FLAGS_SONY_NWZ_BUGS \ + (DEVICE_FLAG_UNLOAD_DRIVER | \ + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | \ + DEVICE_FLAG_UNIQUE_FILENAMES | \ + DEVICE_FLAG_FORCE_RESET_ON_CLOSE) +/** + * All these bug flags need to be set on Android devices, + * they claim to support MTP operations they actually + * cannot handle, especially 9805 (Get object property list). + * These are auto-assigned to devices reporting + * "android.com" in their device extension descriptor. + */ +#define DEVICE_FLAGS_ANDROID_BUGS \ + (DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | \ + DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST | \ + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST | \ + DEVICE_FLAG_UNLOAD_DRIVER | \ + DEVICE_FLAG_LONG_TIMEOUT | \ + DEVICE_FLAG_FORCE_RESET_ON_CLOSE) +/** + * All these bug flags appear on a number of SonyEricsson + * devices including Android devices not using the stock + * Android 4.0+ (Ice Cream Sandwich) MTP stack. It is highly + * supected that these bugs comes from an MTP implementation + * from Aricent, so it is called the Aricent bug flags as a + * shorthand. Especially the header errors that need to be + * ignored is typical for this stack. + * + * After some guesswork we auto-assign these bug flags to + * devices that present the "microsoft.com/WPDNA", and + * "sonyericsson.com/SE" but NOT the "android.com" + * descriptor. + */ +#define DEVICE_FLAGS_ARICENT_BUGS \ + (DEVICE_FLAG_IGNORE_HEADER_ERRORS | \ + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST | \ + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/library.c new file mode 100644 index 00000000..3f9b90ed --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/library.c @@ -0,0 +1,8804 @@ +/* library.c + * + * Copyright (C) 2001-2005 Mariusz Woloszyn + * Copyright (C) 2003-2019 Marcus Meissner + * Copyright (C) 2005 Hubert Figuiere + * Copyright (C) 2009 Axel Waggershauser + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE +#include "config.h" + +#include +#include +#include +#include +#include +#include +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) +#include +#endif + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "ptp.h" +#include "ptp-bugs.h" +#include "ptp-private.h" +#include "ptp-pack.c" +#include "olympus-wrap.h" + +#define USB_START_TIMEOUT 8000 +#define USB_CANON_START_TIMEOUT 1500 /* 1.5 seconds (0.5 was too low) */ +#define USB_NORMAL_TIMEOUT 20000 +static int normal_timeout = USB_NORMAL_TIMEOUT; +#define USB_TIMEOUT_CAPTURE 100000 +static int capture_timeout = USB_TIMEOUT_CAPTURE; + +#define SET_CONTEXT(camera, ctx) ((PTPData *) camera->pl->params.data)->context = ctx +#define SET_CONTEXT_P(p, ctx) ((PTPData *) p->data)->context = ctx + +/* below macro makes a copy of fn without leading character ('/'), + * removes the '/' at the end if present, and calls folder_to_handle() + * funtion proviging as the first argument the string after the second '/'. + * for example if fn is '/store_00010001/DCIM/somefolder/', the macro will + * call folder_to_handle() with 'DCIM/somefolder' as the very first argument. + * it's used to omit storage pseudofolder and remove trailing '/' + */ + +#define find_folder_handle(params,fn,s,p) { \ + { \ + int len=strlen(fn); \ + char *backfolder=malloc(len); \ + char *tmpfolder; \ + memcpy(backfolder,fn+1, len); \ + if (backfolder[len-2]=='/') backfolder[len-2]='\0';\ + if ((tmpfolder=strchr(backfolder+1,'/'))==NULL) tmpfolder="/";\ + p=folder_to_handle(params, tmpfolder+1,s,0,NULL);\ + free(backfolder); \ + } \ +} + +#define folder_to_storage(fn,s) { \ + if (!strncmp(fn,"/"STORAGE_FOLDER_PREFIX,strlen(STORAGE_FOLDER_PREFIX)+1)) \ + { \ + if (strlen(fn)Manufacturer); + GP_LOG_D (" Model: %s", di->Model); + GP_LOG_D (" device version: %s", di->DeviceVersion); + GP_LOG_D (" serial number: '%s'",di->SerialNumber); + GP_LOG_D ("Vendor extension ID: 0x%08x",di->VendorExtensionID); + GP_LOG_D ("Vendor extension version: %d",di->VendorExtensionVersion); + GP_LOG_D ("Vendor extension description: %s",di->VendorExtensionDesc); + GP_LOG_D ("Functional Mode: 0x%04x",di->FunctionalMode); + GP_LOG_D ("PTP Standard Version: %d",di->StandardVersion); + GP_LOG_D ("Supported operations:"); + for (i=0; iOperationsSupported_len; i++) + GP_LOG_D (" 0x%04x (%s)", di->OperationsSupported[i], ptp_get_opcode_name (params, di->OperationsSupported[i])); + GP_LOG_D ("Events Supported:"); + for (i=0; iEventsSupported_len; i++) + GP_LOG_D (" 0x%04x (%s)", di->EventsSupported[i], ptp_get_event_code_name (params, di->EventsSupported[i])); + GP_LOG_D ("Device Properties Supported:"); + for (i=0; iDevicePropertiesSupported_len; i++) { + const char *ptpname = ptp_get_property_description (params, di->DevicePropertiesSupported[i]); + GP_LOG_D (" 0x%04x (%s)", di->DevicePropertiesSupported[i], ptpname ? ptpname : "Unknown DPC code"); + } +} + +/* struct timeval is simply two long int values, so passing it by value is not expensive. + * It is most likely going to be inlined anyway and therefore 'free'. Passing it by value + * leads to a cleaner interface. */ +static struct timeval +time_now() { + struct timeval curtime; + gettimeofday (&curtime, NULL); + return curtime; +} + +static int +time_since (const struct timeval start) { + struct timeval curtime = time_now(); + return ((curtime.tv_sec - start.tv_sec)*1000)+((curtime.tv_usec - start.tv_usec)/1000); +} + +static int +waiting_for_timeout (int *current_wait, struct timeval start, int timeout) { +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + int time_to_timeout = timeout - time_since (start); + + if (time_to_timeout <= 0) /* we timed out already ... */ + return 0; + *current_wait += 50; /* increase sleep time by 50ms per cycle */ + if (*current_wait > 200) + *current_wait = 200; /* 200ms is the maximum sleep time */ + if (*current_wait > time_to_timeout) + *current_wait = time_to_timeout; /* never sleep 'into' the timeout */ + if (*current_wait > 0) + usleep (*current_wait * 1000); + return *current_wait > 0; +#else + /* Wait always timeout during fuzzing! */ + return 0; +#endif +} + +/* Changes the ptp deviceinfo with additional hidden information available, + * or stuff that requires special tricks + */ +int +fixup_cached_deviceinfo (Camera *camera, PTPDeviceInfo *di) { + CameraAbilities a; + PTPParams *params = &camera->pl->params; + + gp_camera_get_abilities(camera, &a); + + /* Panasonic GH5 */ + if ( (di->VendorExtensionID == PTP_VENDOR_PANASONIC) && + (camera->port->type == GP_PORT_USB) && + (a.usb_product == 0x2382) + ) { + C_MEM (di->OperationsSupported = realloc(di->OperationsSupported,sizeof(di->OperationsSupported[0])*(di->OperationsSupported_len + 6))); + di->OperationsSupported[di->OperationsSupported_len+0] = PTP_OC_PANASONIC_GetProperty; + di->OperationsSupported[di->OperationsSupported_len+1] = PTP_OC_PANASONIC_SetProperty; + di->OperationsSupported[di->OperationsSupported_len+2] = PTP_OC_PANASONIC_ListProperty; + di->OperationsSupported[di->OperationsSupported_len+3] = PTP_OC_PANASONIC_InitiateCapture; + di->OperationsSupported[di->OperationsSupported_len+4] = PTP_OC_PANASONIC_Liveview; + di->OperationsSupported[di->OperationsSupported_len+5] = PTP_OC_PANASONIC_LiveviewImage; + di->OperationsSupported_len += 6; + } + + /* Panasonic hack */ + if ( (di->VendorExtensionID == PTP_VENDOR_MICROSOFT) && + (camera->port->type == GP_PORT_USB) && + (a.usb_vendor == 0x04da) + ) { + PTPPropertyValue propval; + /* Panasonic changes its device info if the MTP Initiator + * is set, and e.g. adds DeleteObject. + * (found in Windows USB traces) */ + + if (!ptp_property_issupported(params, PTP_DPC_MTP_SessionInitiatorInfo)) + return GP_OK; + + propval.str = "Windows/6.2.9200 MTPClassDriver/6.2.9200.16384"; + + C_PTP (ptp_setdevicepropvalue (params, PTP_DPC_MTP_SessionInitiatorInfo, &propval, PTP_DTC_STR)); + C_PTP (ptp_getdeviceinfo (params, di)); + return GP_OK; + } + /* XML style Olympus E series control. internal deviceInfos is encoded in XML. */ + if ( di->Manufacturer && !strcmp(di->Manufacturer,"OLYMPUS") && + (params->device_flags & DEVICE_FLAG_OLYMPUS_XML_WRAPPED) + ) { + PTPDeviceInfo ndi, newdi, *outerdi; + unsigned int i; + + C_PTP (ptp_getdeviceinfo (params, ¶ms->outer_deviceinfo)); + outerdi = ¶ms->outer_deviceinfo; + + C_PTP (ptp_olympus_getdeviceinfo (&camera->pl->params, &ndi)); + + /* Now merge the XML (inner) and outer (PictBridge) Deviceinfo. */ + memcpy (&newdi, outerdi, sizeof(PTPDeviceInfo)); + + /* dup the strings */ + if (outerdi->VendorExtensionDesc) C_MEM (newdi.VendorExtensionDesc = strdup (outerdi->VendorExtensionDesc)); + if (outerdi->Manufacturer) C_MEM (newdi.Manufacturer = strdup (outerdi->Manufacturer)); + if (outerdi->Model) C_MEM (newdi.Model = strdup (outerdi->Model)); + if (outerdi->DeviceVersion) C_MEM (newdi.DeviceVersion = strdup (outerdi->DeviceVersion)); + if (outerdi->SerialNumber) C_MEM (newdi.SerialNumber = strdup (outerdi->SerialNumber)); + + /* Dup and merge the lists */ +#define DI_MERGE(x) \ + C_MEM (newdi.x = malloc(sizeof(outerdi->x[0])*(ndi.x##_len + outerdi->x##_len)));\ + for (i = 0; i < outerdi->x##_len ; i++) \ + newdi.x[i] = outerdi->x[i]; \ + for (i = 0; i < ndi.x##_len ; i++) \ + newdi.x[i+outerdi->x##_len] = ndi.x[i]; \ + newdi.x##_len = ndi.x##_len + outerdi->x##_len; + + DI_MERGE(OperationsSupported); + DI_MERGE(EventsSupported); + DI_MERGE(DevicePropertiesSupported); + DI_MERGE(CaptureFormats); + DI_MERGE(ImageFormats); + + /* libgphoto2 specific for usage in config trees */ + newdi.VendorExtensionID = PTP_VENDOR_GP_OLYMPUS; + + GP_LOG_D ("Dumping Olympus Deviceinfo"); + + + print_debug_deviceinfo (params, &newdi); + ptp_free_DI (di); + memcpy (di, &newdi, sizeof(newdi)); + return GP_OK; + } + + /* for USB class matches on unknown cameras that were matches with PTP generic... */ + if (!a.usb_vendor && di->Manufacturer) { + if (strstr (di->Manufacturer,"Canon")) + a.usb_vendor = 0x4a9; + if (strstr (di->Manufacturer,"Nikon")) + a.usb_vendor = 0x4b0; + } + /* Switch the PTP vendor, so that the vendor specific sets become available. */ + if ( (di->VendorExtensionID == PTP_VENDOR_MICROSOFT) && + di->Manufacturer + ) { + if (strstr (di->Manufacturer,"Canon")) + di->VendorExtensionID = PTP_VENDOR_CANON; + if (strstr (di->Manufacturer,"Nikon")) + di->VendorExtensionID = PTP_VENDOR_NIKON; + } + + /* Newer Canons say that they are MTP devices. Restore Canon vendor extid. */ + if ( ( (di->VendorExtensionID == PTP_VENDOR_MICROSOFT) || + (di->VendorExtensionID == PTP_VENDOR_MTP) + ) && + (camera->port->type == GP_PORT_USB) && + (a.usb_vendor == 0x4a9) + ) { + /*camera->pl->bugs |= PTP_MTP;*/ + di->VendorExtensionID = PTP_VENDOR_CANON; + } + + /* Newer Nikons (D40) say that they are MTP devices. Restore Nikon vendor extid. */ + if ( ( (di->VendorExtensionID == PTP_VENDOR_MICROSOFT) || + (di->VendorExtensionID == PTP_VENDOR_MTP) + ) && + (camera->port->type == GP_PORT_USB) && + (a.usb_vendor == 0x4b0) + ) { + /*camera->pl->bugs |= PTP_MTP;*/ + di->VendorExtensionID = PTP_VENDOR_NIKON; + } + + /* Fuji S5 Pro mostly, make its vendor set available. */ + if ( (di->VendorExtensionID == PTP_VENDOR_MICROSOFT) && + (camera->port->type == GP_PORT_USB) && + (a.usb_vendor == 0x4cb) && + strstr(di->VendorExtensionDesc,"fujifilm.co.jp: 1.0;") + ) { + /*camera->pl->bugs |= PTP_MTP;*/ + di->VendorExtensionID = PTP_VENDOR_FUJI; + } + + if ( di->Manufacturer && !strcmp(di->Manufacturer,"OLYMPUS") && !strncmp(di->Model,"E-M",3) ) { + GP_LOG_D ("Setting Olympus VendorExtensionID to PTP_VENDOR_GP_OLYMPUS_OMD"); + di->VendorExtensionID = PTP_VENDOR_GP_OLYMPUS_OMD; + } + + if (di->VendorExtensionID == PTP_VENDOR_FUJI) { + C_MEM (di->DevicePropertiesSupported = realloc(di->DevicePropertiesSupported,sizeof(di->DevicePropertiesSupported[0])*(di->DevicePropertiesSupported_len + 6))); + di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+0] = PTP_DPC_ExposureTime; + di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+1] = PTP_DPC_FNumber; + di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+2] = 0xd38c; /* PC Mode */ + di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+3] = 0xd171; /* Focus control */ + di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+4] = 0xd21c; /* Needed for X-T2? */ + di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+5] = 0xd347; /* Focus Position */ + di->DevicePropertiesSupported_len += 6; + } + + /* Nikon DSLR hide its newer opcodes behind another vendor specific query, + * do that and merge it into the generic PTP deviceinfo. */ + if (di->VendorExtensionID == PTP_VENDOR_NIKON) { + unsigned int i; + unsigned int nikond; + + /* Nikon V* and J* advertise the new Nikon stuff, but only do the generic + * PTP capture. FIXME: could use flags. */ + if (params->deviceinfo.Model && ( + (params->deviceinfo.Model[0]=='J') || /* J1 - J3 currently */ + (params->deviceinfo.Model[0]=='V') || /* V1 - V3 currently */ + ((params->deviceinfo.Model[0]=='S') && strlen(params->deviceinfo.Model) < 3) /* S1 - S2 currently */ + /* but not S7000 */ + ) + ) { + if (!NIKON_1(&camera->pl->params)) { + GP_LOG_E ("if camera is Nikon 1 series, camera should probably have flag NIKON_1 set. report that to the libgphoto2 project"); + camera->pl->params.device_flags |= PTP_NIKON_1; + } + + /* The 1 hides some commands from us ... */ + if ( ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_CheckEvent) && + !ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_GetVendorPropCodes) + ) { + C_MEM (di->OperationsSupported = realloc(di->OperationsSupported,sizeof(di->OperationsSupported[0])*(di->OperationsSupported_len + 2))); + di->OperationsSupported[di->OperationsSupported_len+0] = PTP_OC_NIKON_GetVendorPropCodes; + di->OperationsSupported_len++; + + /* Nikon J5 does not advertise the PTP_OC_NIKON_InitiateCaptureRecInMedia cmd ... gnh */ + /* logic: If we have one 0x920x command, we will probably have 0x9207 too. */ + if ( !ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_InitiateCaptureRecInMedia) && + ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_StartLiveView) + ) { + di->OperationsSupported[di->OperationsSupported_len+0] = PTP_OC_NIKON_InitiateCaptureRecInMedia; + di->OperationsSupported_len++; + } + /* probably more */ + } + } + if (params->deviceinfo.Model && !strcmp(params->deviceinfo.Model,"COOLPIX A")) { + /* The A also hides some commands from us ... */ + if (!ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_GetVendorPropCodes)) { + C_MEM (di->OperationsSupported = realloc(di->OperationsSupported,sizeof(di->OperationsSupported[0])*(di->OperationsSupported_len + 10))); + di->OperationsSupported[di->OperationsSupported_len+0] = PTP_OC_NIKON_GetVendorPropCodes; + di->OperationsSupported[di->OperationsSupported_len+1] = PTP_OC_NIKON_CheckEvent; + di->OperationsSupported[di->OperationsSupported_len+2] = PTP_OC_NIKON_AfDrive; + di->OperationsSupported[di->OperationsSupported_len+3] = PTP_OC_NIKON_SetControlMode; + di->OperationsSupported[di->OperationsSupported_len+4] = PTP_OC_NIKON_DeviceReady; + di->OperationsSupported[di->OperationsSupported_len+5] = PTP_OC_NIKON_StartLiveView; + di->OperationsSupported[di->OperationsSupported_len+6] = PTP_OC_NIKON_EndLiveView; + di->OperationsSupported[di->OperationsSupported_len+7] = PTP_OC_NIKON_GetLiveViewImg; + di->OperationsSupported[di->OperationsSupported_len+8] = PTP_OC_NIKON_ChangeAfArea; + di->OperationsSupported[di->OperationsSupported_len+9] = PTP_OC_NIKON_InitiateCaptureRecInMedia; + di->OperationsSupported_len += 10; + } + } + if (params->deviceinfo.Model && (strstr(params->deviceinfo.Model,"KeyMission 170"))) + { + GP_LOG_D("The KeyMission 170 hides commands from us ... adding all KeyMission 360 ones"); + /* the keymission 170 seems to hide stuff from us. Mirror what the 360 exposes */ + C_MEM (di->OperationsSupported = realloc(di->OperationsSupported,sizeof(di->OperationsSupported[0])*(di->OperationsSupported_len + 12))); + di->OperationsSupported[di->OperationsSupported_len+0] = PTP_OC_NIKON_AfDrive; + di->OperationsSupported[di->OperationsSupported_len+1] = PTP_OC_NIKON_SetControlMode; + di->OperationsSupported[di->OperationsSupported_len+2] = PTP_OC_NIKON_GetLargeThumb; + di->OperationsSupported[di->OperationsSupported_len+3] = PTP_OC_NIKON_DeviceReady; + di->OperationsSupported[di->OperationsSupported_len+4] = PTP_OC_NIKON_StartLiveView; + di->OperationsSupported[di->OperationsSupported_len+5] = PTP_OC_NIKON_EndLiveView; + di->OperationsSupported[di->OperationsSupported_len+6] = PTP_OC_NIKON_GetLiveViewImg; + di->OperationsSupported[di->OperationsSupported_len+7] = PTP_OC_NIKON_ChangeAfArea; + di->OperationsSupported[di->OperationsSupported_len+8] = PTP_OC_NIKON_InitiateCaptureRecInMedia; + di->OperationsSupported[di->OperationsSupported_len+9] = PTP_OC_NIKON_EndMovieRec; + di->OperationsSupported[di->OperationsSupported_len+10] = PTP_OC_NIKON_StartMovieRecInCard; + di->OperationsSupported[di->OperationsSupported_len+11] = PTP_OC_InitiateCapture; + } + if (params->deviceinfo.Model && (sscanf(params->deviceinfo.Model,"D%d", &nikond))) + { + if ((nikond >= 3000) && (nikond < 3199)) { + GP_LOG_D("The D3xxx series hides commands from us ... adding all D3000 ones"); + if (!ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_GetVendorPropCodes)) { + C_MEM (di->OperationsSupported = realloc(di->OperationsSupported,sizeof(di->OperationsSupported[0])*(di->OperationsSupported_len + 15))); + di->OperationsSupported[di->OperationsSupported_len+0] = PTP_OC_NIKON_GetVendorPropCodes; + di->OperationsSupported[di->OperationsSupported_len+1] = PTP_OC_NIKON_CheckEvent; + di->OperationsSupported[di->OperationsSupported_len+2] = PTP_OC_NIKON_Capture; + di->OperationsSupported[di->OperationsSupported_len+3] = PTP_OC_NIKON_AfDrive; + di->OperationsSupported[di->OperationsSupported_len+4] = PTP_OC_NIKON_SetControlMode; + di->OperationsSupported[di->OperationsSupported_len+5] = PTP_OC_NIKON_DeviceReady; + di->OperationsSupported[di->OperationsSupported_len+6] = PTP_OC_NIKON_AfCaptureSDRAM; + di->OperationsSupported[di->OperationsSupported_len+7] = PTP_OC_NIKON_DelImageSDRAM; + + di->OperationsSupported[di->OperationsSupported_len+8] = PTP_OC_NIKON_GetPreviewImg; + di->OperationsSupported[di->OperationsSupported_len+9] = PTP_OC_NIKON_StartLiveView; + di->OperationsSupported[di->OperationsSupported_len+10] = PTP_OC_NIKON_EndLiveView; + di->OperationsSupported[di->OperationsSupported_len+11] = PTP_OC_NIKON_GetLiveViewImg; + di->OperationsSupported[di->OperationsSupported_len+12] = PTP_OC_NIKON_MfDrive; + di->OperationsSupported[di->OperationsSupported_len+13] = PTP_OC_NIKON_ChangeAfArea; + di->OperationsSupported[di->OperationsSupported_len+14] = PTP_OC_NIKON_AfDriveCancel; + /* only opcodes up to 9206 ... I think. */ + di->OperationsSupported_len += 15; + } + } + if ((nikond >= 3200) && (nikond < 3999)) { + GP_LOG_D("The D3xxx series hides commands from us ... adding all D7100 ones"); + if (!ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_GetVendorPropCodes)) { + C_MEM (di->OperationsSupported = realloc(di->OperationsSupported,sizeof(di->OperationsSupported[0])*(di->OperationsSupported_len + 19))); + di->OperationsSupported[di->OperationsSupported_len+0] = PTP_OC_NIKON_GetVendorPropCodes; + di->OperationsSupported[di->OperationsSupported_len+1] = PTP_OC_NIKON_CheckEvent; + di->OperationsSupported[di->OperationsSupported_len+2] = PTP_OC_NIKON_Capture; + di->OperationsSupported[di->OperationsSupported_len+3] = PTP_OC_NIKON_AfDrive; + di->OperationsSupported[di->OperationsSupported_len+4] = PTP_OC_NIKON_SetControlMode; + di->OperationsSupported[di->OperationsSupported_len+5] = PTP_OC_NIKON_DeviceReady; + di->OperationsSupported[di->OperationsSupported_len+6] = PTP_OC_NIKON_AfCaptureSDRAM; + di->OperationsSupported[di->OperationsSupported_len+7] = PTP_OC_NIKON_DelImageSDRAM; + + di->OperationsSupported[di->OperationsSupported_len+8] = PTP_OC_NIKON_GetPreviewImg; + di->OperationsSupported[di->OperationsSupported_len+9] = PTP_OC_NIKON_StartLiveView; + di->OperationsSupported[di->OperationsSupported_len+10] = PTP_OC_NIKON_EndLiveView; + di->OperationsSupported[di->OperationsSupported_len+11] = PTP_OC_NIKON_GetLiveViewImg; + di->OperationsSupported[di->OperationsSupported_len+12] = PTP_OC_NIKON_MfDrive; + di->OperationsSupported[di->OperationsSupported_len+13] = PTP_OC_NIKON_ChangeAfArea; + di->OperationsSupported[di->OperationsSupported_len+14] = PTP_OC_NIKON_InitiateCaptureRecInMedia; + di->OperationsSupported[di->OperationsSupported_len+15] = PTP_OC_NIKON_AfDriveCancel; + di->OperationsSupported[di->OperationsSupported_len+15] = PTP_OC_NIKON_AfDriveCancel; + di->OperationsSupported[di->OperationsSupported_len+16] = PTP_OC_NIKON_StartMovieRecInCard; + di->OperationsSupported[di->OperationsSupported_len+17] = PTP_OC_NIKON_EndMovieRec; + di->OperationsSupported[di->OperationsSupported_len+18] = PTP_OC_NIKON_TerminateCapture; + /* probably more */ + di->OperationsSupported_len += 19; + } + } + } + + if (ptp_operation_issupported(&camera->pl->params, PTP_OC_NIKON_GetVendorPropCodes)) { + uint16_t *xprops; + unsigned int xsize; + + if (PTP_RC_OK == LOG_ON_PTP_E (ptp_nikon_get_vendorpropcodes (&camera->pl->params, &xprops, &xsize))) { + di->DevicePropertiesSupported = realloc(di->DevicePropertiesSupported,sizeof(di->DevicePropertiesSupported[0])*(di->DevicePropertiesSupported_len + xsize)); + if (!di->DevicePropertiesSupported) { + free (xprops); + C_MEM (di->DevicePropertiesSupported); + } + for (i=0;iDevicePropertiesSupported[i+di->DevicePropertiesSupported_len] = xprops[i]; + di->DevicePropertiesSupported_len += xsize; + free (xprops); + } + } + /* For nikon 1 j5, they have blanked this space */ + if (camera->pl->params.device_flags & PTP_NIKON_1) { + for (i=0;iDevicePropertiesSupported_len;i++) + if ((di->DevicePropertiesSupported[i] & 0xf000) == 0xf000) + break; + /* The J5 so far goes up to 0xf01c */ +#define NIKON_1_ADDITIONAL_DEVPROPS 29 + if (i==di->DevicePropertiesSupported_len) { + di->DevicePropertiesSupported = realloc(di->DevicePropertiesSupported,sizeof(di->DevicePropertiesSupported[0])*(di->DevicePropertiesSupported_len + NIKON_1_ADDITIONAL_DEVPROPS)); + if (!di->DevicePropertiesSupported) { + C_MEM (di->DevicePropertiesSupported); + } + for (i=0;iDevicePropertiesSupported[i+di->DevicePropertiesSupported_len] = 0xf000 | i; + di->DevicePropertiesSupported_len += NIKON_1_ADDITIONAL_DEVPROPS; + } + } + +#if 0 + if (!ptp_operation_issupported(&camera->pl->params, 0x9207)) { + C_MEM (di->OperationsSupported = realloc(di->OperationsSupported,sizeof(di->OperationsSupported[0])*(di->OperationsSupported_len + 2))); + di->OperationsSupported[di->OperationsSupported_len+0] = PTP_OC_NIKON_Capture; + di->OperationsSupported[di->OperationsSupported_len+1] = PTP_OC_NIKON_AfCaptureSDRAM; + di->OperationsSupported_len+=2; + } +#endif + } + + /* Mostly for PTP/IP mode */ + if (di->VendorExtensionID == PTP_VENDOR_MTP && di->Manufacturer && !strcmp(di->Manufacturer,"Sony Corporation")) { + di->VendorExtensionID = PTP_VENDOR_SONY; + } + + /* Sony DSLR also hide its newer opcodes behind another vendor specific query, + * do that and merge it into the generic PTP deviceinfo. */ + if (di->VendorExtensionID == PTP_VENDOR_SONY) { + unsigned int i; + + if (ptp_operation_issupported(&camera->pl->params, PTP_OC_SONY_GetSDIOGetExtDeviceInfo)) { + int opcodes = 0, propcodes = 0, events = 0, j,k,l; + uint16_t *xprops; + unsigned int xsize; + + C_PTP (ptp_sony_sdioconnect (&camera->pl->params, 1, 0, 0)); + C_PTP (ptp_sony_sdioconnect (&camera->pl->params, 2, 0, 0)); + C_PTP (ptp_sony_get_vendorpropcodes (&camera->pl->params, &xprops, &xsize)); + + for (i=0;iDevicePropertiesSupported = realloc(di->DevicePropertiesSupported,sizeof(di->DevicePropertiesSupported[0])*(di->DevicePropertiesSupported_len + propcodes))); + C_MEM (di->OperationsSupported = realloc(di->OperationsSupported, sizeof(di->OperationsSupported[0])*(di->OperationsSupported_len + opcodes))); + C_MEM (di->EventsSupported = realloc(di->EventsSupported, sizeof(di->EventsSupported[0])*(di->EventsSupported_len + events))); + j = 0; k = 0; l = 0; + for (i=0;iOperationsSupported[(k++)+di->OperationsSupported_len] = xprops[i]; + break; + case 0x4000: + di->EventsSupported[(l++)+di->EventsSupported_len] = xprops[i]; + break; + case 0x5000: + di->DevicePropertiesSupported[(j++)+di->DevicePropertiesSupported_len] = xprops[i]; + break; + default: + break; + } + } + di->DevicePropertiesSupported_len += propcodes; + di->EventsSupported_len += events; + di->OperationsSupported_len += opcodes; + free (xprops); + C_PTP (ptp_sony_sdioconnect (&camera->pl->params, 3, 0, 0)); + } + } +#if 0 /* Marcus: not regular ptp properties, not queryable via getdevicepropertyvalue */ + if (di->VendorExtensionID == PTP_VENDOR_CANON) { + if (ptp_operation_issupported(&camera->pl->params, PTP_OC_CANON_EOS_GetDeviceInfoEx)) { + PTPCanonEOSDeviceInfo eosdi; + int i; + + C_PTP (ptp_canon_eos_getdeviceinfo (&camera->pl->params, &eosdi)); + C_MEM (di->DevicePropertiesSupported = realloc(di->DevicePropertiesSupported,sizeof(di->DevicePropertiesSupported[0])*(di->DevicePropertiesSupported_len + eosdi.DevicePropertiesSupported_len))); + for (i=0;iDevicePropertiesSupported[i+di->DevicePropertiesSupported_len] = eosdi.DevicePropertiesSupported[i]; + di->DevicePropertiesSupported_len += eosdi.DevicePropertiesSupported_len; + } + } +#endif + return GP_OK; +} + +static uint16_t +nikon_wait_busy(PTPParams *params, int waitms, int timeout) { + uint16_t res; + int tries; + + /* wait either 1 second, or 50 tries */ + if (waitms) + tries=timeout/waitms; + else + tries=50; + + do { + res = ptp_nikon_device_ready(params); + if (res != PTP_RC_DeviceBusy) { + if (res == 0xa201) /* seems to mean something like "not relevant" ... will repeat forever */ + return PTP_RC_OK; + return res; + } + if (waitms) usleep(waitms*1000)/*wait a bit*/; + } while (tries--); + return res; +} + + +static struct { + const char *model; + unsigned short usb_vendor; + unsigned short usb_product; + unsigned long device_flags; +} models[] = { +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + /* + * The very first PTP camera (with special firmware only), also + * called "PTP Prototype", may report non PTP interface class + */ + {"Kodak:DC240 (PTP mode)", 0x040a, 0x0121, 0}, + /* + * Old DC-4800 firmware reported custom interface class, so we have + * to detect it by product/vendor IDs + */ + {"Kodak:DC4800", 0x040a, 0x0160, 0}, + /* Below other camers known to be detected by interface class */ + + {"Kodak:DX3900", 0x040a, 0x0170, 0}, + {"Kodak:MC3", 0x040a, 0x0400, 0}, + /* reported by Ken Moffat */ + {"Kodak:Z7590", 0x040a, 0x0403, 0}, + {"Kodak:DX3500", 0x040a, 0x0500, 0}, + {"Kodak:DX3600", 0x040a, 0x0510, 0}, + {"Kodak:DX3215", 0x040a, 0x0525, 0}, + {"Kodak:DX3700", 0x040a, 0x0530, 0}, + {"Kodak:CX4230", 0x040a, 0x0535, 0}, + {"Kodak:LS420", 0x040a, 0x0540, 0}, + {"Kodak:DX4900", 0x040a, 0x0550, 0}, + {"Kodak:DX4330", 0x040a, 0x0555, 0}, + {"Kodak:CX4200", 0x040a, 0x0560, 0}, + {"Kodak:CX4210", 0x040a, 0x0560, 0}, + {"Kodak:LS743", 0x040a, 0x0565, 0}, + /* both above with different product IDs + normal/retail versions of the same model */ + {"Kodak:CX4300", 0x040a, 0x0566, 0}, + {"Kodak:CX4310", 0x040a, 0x0566, 0}, + {"Kodak:LS753", 0x040a, 0x0567, 0}, + {"Kodak:LS443", 0x040a, 0x0568, 0}, + {"Kodak:LS663", 0x040a, 0x0569, 0}, + {"Kodak:DX6340", 0x040a, 0x0570, 0}, + {"Kodak:CX6330", 0x040a, 0x0571, 0}, + {"Kodak:DX6440", 0x040a, 0x0572, 0}, + {"Kodak:CX6230", 0x040a, 0x0573, 0}, + {"Kodak:CX6200", 0x040a, 0x0574, 0}, + {"Kodak:DX6490", 0x040a, 0x0575, 0}, + {"Kodak:DX4530", 0x040a, 0x0576, 0}, + {"Kodak:DX7630", 0x040a, 0x0577, 0}, + {"Kodak:CX7300", 0x040a, 0x0578, 0}, + {"Kodak:CX7310", 0x040a, 0x0578, 0}, + {"Kodak:CX7220", 0x040a, 0x0579, 0}, + {"Kodak:CX7330", 0x040a, 0x057a, 0}, + {"Kodak:CX7430", 0x040a, 0x057b, 0}, + {"Kodak:CX7530", 0x040a, 0x057c, 0}, + {"Kodak:DX7440", 0x040a, 0x057d, 0}, + /* c300 Pau Rodriguez-Estivill */ + {"Kodak:C300", 0x040a, 0x057e, 0}, + {"Kodak:DX7590", 0x040a, 0x057f, 0}, + {"Kodak:Z730", 0x040a, 0x0580, 0}, + {"Kodak:CX6445", 0x040a, 0x0584, 0}, + /* Francesco Del Prete */ + {"Kodak:M893 IS",0x040a, 0x0585, 0}, + {"Kodak:CX7525", 0x040a, 0x0586, 0}, + /* a sf bugreporter */ + {"Kodak:Z700", 0x040a, 0x0587, 0}, + /* EasyShare Z740, Benjamin Mesing */ + {"Kodak:Z740", 0x040a, 0x0588, 0}, + /* EasyShare C360, Guilherme de S. Pastore via Debian */ + {"Kodak:C360", 0x040a, 0x0589, 0}, + /* Giulio Salani */ + {"Kodak:C310", 0x040a, 0x058a, 0}, + /* Brandon Sharitt */ + {"Kodak:C330", 0x040a, 0x058c, 0}, + /* c340 Maurizio Daniele */ + {"Kodak:C340", 0x040a, 0x058d, 0}, + {"Kodak:V530", 0x040a, 0x058e, 0}, + /* v550 Jon Burgess */ + {"Kodak:V550", 0x040a, 0x058f, 0}, + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=1618878&group_id=8874 */ + {"Kodak:V570", 0x040a, 0x0591, 0}, + {"Kodak:P850", 0x040a, 0x0592, 0}, + {"Kodak:P880", 0x040a, 0x0593, 0}, + /* Илья Розановский */ + {"Kodak:Z8612 IS",0x040a, 0x0595, 0}, + /* https://launchpad.net/distros/ubuntu/+source/libgphoto2/+bug/67532 */ + {"Kodak:C530", 0x040a, 0x059a, 0}, + /* Ivan Baldo, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387998 */ + {"Kodak:CD33", 0x040a, 0x059c, 0}, + /* https://sourceforge.net/tracker/?func=detail&atid=208874&aid=1565144&group_id=8874 */ + {"Kodak:Z612", 0x040a, 0x059d, 0}, + /* David D. Huff Jr. */ + {"Kodak:Z650", 0x040a, 0x059e, 0}, + /* Sonja Krause-Harder */ + {"Kodak:M753", 0x040a, 0x059f, 0}, + /* irc reporter */ + {"Kodak:V603", 0x040a, 0x05a0, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1547142&group_id=8874&atid=358874 */ + {"Kodak:C533", 0x040a, 0x05a2, 0}, + /* Marc Santhoff */ + {"Kodak:C643", 0x040a, 0x05a7, 0}, + /* Eric Kibbee */ + {"Kodak:C875", 0x040a, 0x05a9, 0}, + /* https://launchpad.net/bugs/64146 */ + {"Kodak:C433", 0x040a, 0x05aa, 0}, + /* https://launchpad.net/bugs/64146 */ + {"Kodak:V705", 0x040a, 0x05ab, 0}, + /* https://launchpad.net/bugs/67532 */ + {"Kodak:V610", 0x040a, 0x05ac, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1861193&group_id=8874&atid=358874 */ + {"Kodak:M883", 0x040a, 0x05ad, 0}, + /* from Thomas */ + {"Kodak:C743", 0x040a, 0x05ae, 0}, + /* via IRC */ + {"Kodak:C653", 0x040a, 0x05af, 0}, + /* "William L. Thomson Jr." */ + {"Kodak:Z710", 0x040a, 0x05b3, 0}, + /* Nicolas Brodu */ + {"Kodak:Z712 IS",0x040a, 0x05b4, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1904224&group_id=8874&atid=358874 */ + {"Kodak:Z812 IS",0x040a, 0x05b5, 0}, + /* */ + {"Kodak:C613", 0x040a, 0x05b7, 0}, + /* msp@debian.org https://bugs.kde.org/show_bug.cgi?id=190795 */ + {"Kodak:V803", 0x040a, 0x05b8, 0}, + /* via IRC */ + {"Kodak:C633", 0x040a, 0x05ba, 0}, + /* https://bugs.launchpad.net/bugs/203402 */ + {"Kodak:ZD710", 0x040a, 0x05c0, 0}, + /* https://bugs.launchpad.net/ubuntu/+source/libgphoto2/+bug/385432 */ + {"Kodak:M863", 0x040a, 0x05c1, 0}, + /* Peter F Bradshaw */ + {"Kodak:C813", 0x040a, 0x05c3, 0}, + /* reported by Christian Le Corre */ + {"Kodak:C913", 0x040a, 0x05c6, 0}, + /* IRC reporter */ + {"Kodak:Z950", 0x040a, 0x05cd, 0}, + /* reported by Jim Nelson */ + {"Kodak:M1063", 0x040a, 0x05ce, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=2889451&group_id=8874&atid=358874 */ + {"Kodak:Z915", 0x040a, 0x05cf, 0}, + /* l.w.winter@web.de */ + {"Kodak:M531", 0x040a, 0x0600, 0}, + /* rschweikert@novell.com */ + {"Kodak:C183", 0x040a, 0x060b, 0}, + /* Oleh Malyi */ + {"Kodak:Z990", 0x040a, 0x0613, 0}, + /* ra4veiV6@lavabit.com */ + {"Kodak:C1530", 0x040a, 0x0617, 0}, + + /* HP PTP cameras */ +#if 0 + /* 0x4002 seems to be the mass storage ID, which various forums suggest. -Marcus */ + {"HP:PhotoSmart ... ", 0x03f0, 0x4002, 0}, +#endif + {"HP:PhotoSmart 812 (PTP mode)", 0x03f0, 0x4202, 0}, + {"HP:PhotoSmart 850 (PTP mode)", 0x03f0, 0x4302, 0}, + /* HP PhotoSmart 935: T. Kaproncai, 25 Jul 2003*/ + {"HP:PhotoSmart 935 (PTP mode)", 0x03f0, 0x4402, 0}, + /* HP:PhotoSmart 945: T. Jelbert, 2004/03/29 */ + {"HP:PhotoSmart 945 (PTP mode)", 0x03f0, 0x4502, 0}, + {"HP:PhotoSmart C500 (PTP mode)", 0x03f0, 0x6002, 0}, + {"HP:PhotoSmart 318 (PTP mode)", 0x03f0, 0x6302, 0}, + {"HP:PhotoSmart 612 (PTP mode)", 0x03f0, 0x6302, 0}, + {"HP:PhotoSmart 715 (PTP mode)", 0x03f0, 0x6402, 0}, + {"HP:PhotoSmart 120 (PTP mode)", 0x03f0, 0x6502, 0}, + {"HP:PhotoSmart 320 (PTP mode)", 0x03f0, 0x6602, 0}, + {"HP:PhotoSmart 720 (PTP mode)", 0x03f0, 0x6702, 0}, + {"HP:PhotoSmart 620 (PTP mode)", 0x03f0, 0x6802, 0}, + {"HP:PhotoSmart 735 (PTP mode)", 0x03f0, 0x6a02, 0}, + {"HP:PhotoSmart 707 (PTP mode)", 0x03f0, 0x6b02, 0}, + {"HP:PhotoSmart 733 (PTP mode)", 0x03f0, 0x6c02, 0}, + {"HP:PhotoSmart 607 (PTP mode)", 0x03f0, 0x6d02, 0}, + {"HP:PhotoSmart 507 (PTP mode)", 0x03f0, 0x6e02, 0}, + {"HP:PhotoSmart 635 (PTP mode)", 0x03f0, 0x7102, 0}, + /* report from Federico Prat Villar */ + {"HP:PhotoSmart 43x (PTP mode)", 0x03f0, 0x7202, 0}, + {"HP:PhotoSmart M307 (PTP mode)", 0x03f0, 0x7302, 0}, + {"HP:PhotoSmart 407 (PTP mode)", 0x03f0, 0x7402, 0}, + {"HP:PhotoSmart M22 (PTP mode)", 0x03f0, 0x7502, 0}, + {"HP:PhotoSmart 717 (PTP mode)", 0x03f0, 0x7602, 0}, + {"HP:PhotoSmart 817 (PTP mode)", 0x03f0, 0x7702, 0}, + {"HP:PhotoSmart 417 (PTP mode)", 0x03f0, 0x7802, 0}, + {"HP:PhotoSmart 517 (PTP mode)", 0x03f0, 0x7902, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1365941&group_id=8874&atid=108874 */ + {"HP:PhotoSmart M415 (PTP mode)", 0x03f0, 0x7a02, 0}, + /* irc contact, YGingras */ + {"HP:PhotoSmart M23 (PTP mode)", 0x03f0, 0x7b02, 0}, + {"HP:PhotoSmart 217 (PTP mode)", 0x03f0, 0x7c02, 0}, + /* irc contact */ + {"HP:PhotoSmart 317 (PTP mode)", 0x03f0, 0x7d02, 0}, + {"HP:PhotoSmart 818 (PTP mode)", 0x03f0, 0x7e02, 0}, + /* Robin */ + {"HP:PhotoSmart M425 (PTP mode)", 0x03f0, 0x8002, 0}, + {"HP:PhotoSmart M525 (PTP mode)", 0x03f0, 0x8102, 0}, + {"HP:PhotoSmart M527 (PTP mode)", 0x03f0, 0x8202, 0}, + {"HP:PhotoSmart M725 (PTP mode)", 0x03f0, 0x8402, 0}, + {"HP:PhotoSmart M727 (PTP mode)", 0x03f0, 0x8502, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1584447&group_id=8874&atid=358874 */ + {"HP:PhotoSmart R927 (PTP mode)", 0x03f0, 0x8702, 0}, + /* R967 - Far Jump */ + {"HP:PhotoSmart R967 (PTP mode)", 0x03f0, 0x8802, 0}, + {"HP:PhotoSmart E327 (PTP mode)", 0x03f0, 0x8b02, 0}, + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=1589879&group_id=8874 */ + {"HP:PhotoSmart E427 (PTP mode)", 0x03f0, 0x8c02, 0}, + /* Martin Laberge */ + {"HP:PhotoSmart M737 (PTP mode)", 0x03f0, 0x9602, 0}, + /* https://bugs.launchpad.net/bugs/178916 */ + {"HP:PhotoSmart R742 (PTP mode)", 0x03f0, 0x9702, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1814147&group_id=8874&atid=358874 */ + {"HP:PhotoSmart M547 (PTP mode)", 0x03f0, 0x9b02, 0}, + + /* Most Sony PTP cameras use the same product/vendor IDs. */ + {"Sony:PTP", 0x054c, 0x004e, 0}, + {"Sony:DSC-H1 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-H2 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-H5 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-N2 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P5 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P10 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-F707V (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-F717 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-F828 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P30 (PTP mode)", 0x054c, 0x004e, 0}, + /* P32 reported on May 1st by Justin Alexander */ + {"Sony:DSC-P31 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P32 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P41 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P43 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P50 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P51 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P52 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P71 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P72 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P73 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P92 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P93 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P100 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P120 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-P200 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-R1 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-S40 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-S60 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-S75 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-S85 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-T1 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-T3 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-T10 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-U20 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-V1 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-W1 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-W12 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-W35 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-W55 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:MVC-CD300 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:MVC-CD500 (PTP mode)", 0x054c, 0x004e, 0}, + {"Sony:DSC-U10 (PTP mode)", 0x054c, 0x004e, 0}, + /* "Riccardo (C10uD)" */ + {"Sony:DSC-S730 (PTP mode)", 0x054c, 0x0296, 0}, + {"Sony:DSC-S780 (PTP mode)", 0x054c, 0x0296, 0}, + /* Fernando Santoro */ + {"Sony:DSC-A100 (PTP mode)", 0x054c, 0x02c0, 0}, + /* Sam Tseng */ + /* this seems not to have a seperate control mode id, see https://github.com/gphoto/libgphoto2/issues/288 */ + {"Sony:DSC-A900 (PTP mode)", 0x054c, 0x02e7, PTP_CAP}, + /* new id?! Reported by Ruediger Oertel. */ + {"Sony:DSC-W200 (PTP mode)", 0x054c, 0x02f8, 0}, + /* Martin Vala */ + {"Sony:SLT-A350 (PTP mode)", 0x054c, 0x0321, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1946931&group_id=8874&atid=308874 */ + {"Sony:DSC-W130 (PTP mode)", 0x054c, 0x0343, 0}, + /* https://sourceforge.net/p/gphoto/support-requests/115/ */ + {"Sony:DSC-HX5V (PTP mode)", 0x054c, 0x0491, 0}, + /* tux droid */ + {"Sony:SLT-A55 (PTP mode)", 0x054c, 0x04a3, 0}, + /* http://sourceforge.net/tracker/?func=detail&atid=358874&aid=3515558&group_id=8874 */ + {"Sony:SLT-A35 (PTP mode)", 0x054c, 0x04a7, 0}, + /* t.ludewig@gmail.com */ + {"Sony:DSC-RX100 (PTP mode)", 0x054c, 0x052a, 0}, + /* Stuart Nettleton */ + {"Sony:DSC-RX1 (PTP mode)", 0x054c, 0x052b, 0}, + /* Maptz */ + {"Sony:DSC-W510 (PTP mode)", 0x054c, 0x053c, 0}, + /* Rudi */ + {"Sony:DSC-HX100V (PTP mode)",0x054c, 0x0543, 0}, + /* t.ludewig@gmail.com */ + {"Sony:SLT-A65V (PTP mode)", 0x054c, 0x0574, 0}, + /* Irina Iakovleva */ + {"Sony:SLT-A77V (PTP mode)", 0x054c, 0x0577, 0}, + /* Jose Velez */ + {"Sony:NEX-7 (PTP mode)", 0x054c, 0x057d, 0}, + + /* https://sourceforge.net/p/libmtp/bugs/1459/ */ + {"Sony:HDR-PJ260VE (PTP mode)",0x054c, 0x0603, 0}, + + /* Jean-Christophe Clavier */ + {"Sony:DSC-HX20V (PTP mode)", 0x054c, 0x061c, 0}, + /* t.ludewig@gmail.com */ + {"Sony:DSC-HX200V (PTP mode)",0x054c, 0x061f, 0}, + + /* https://sourceforge.net/p/gphoto/feature-requests/424/ */ + {"Sony:SLT-A57", 0x054c, 0x0669, 0}, + + /* Abhishek Anand */ + {"Sony:SLT-A37", 0x054c, 0x0669, 0}, + + /* https://sourceforge.net/p/gphoto/feature-requests/480/ */ + {"Sony:NEX-5R", 0x054c, 0x066f, 0}, + + /* Mike Breeuwer */ + {"Sony:SLT-A99v", 0x054c, 0x0675, 0}, + + /* Ramon Carlos Garcia Bruna */ + {"Sony:NEX-6", 0x054c, 0x0678, 0}, + + /* t.ludewig@gmail.com */ + {"Sony:DSC-HX300 (PTP mode)", 0x054c, 0x06ee, 0}, + + /* t.ludewig@gmail.com */ + {"Sony:NEX-3N (PTP mode)", 0x054c, 0x072f, 0}, + + /* Thorsten Ludewig */ + {"Sony:SLT-A58", 0x054c, 0x0736, 0}, + /* Marcus Meissner */ + {"Sony:SLT-A58 (Control)", 0x054c, 0x0737, PTP_CAP}, + + /* Thorsten Ludewig */ + {"Sony:DSC-RX100M2", 0x054c, 0x074b, 0}, + /* Thorsten Ludewig */ + {"Sony:Alpha-A3000", 0x054c, 0x074e, 0}, + + /* bertrand.chambon@free.fr */ + {"Sony:Alpha-A68 (MTP)", 0x054c, 0x0779, 0}, + /* https://github.com/gphoto/libgphoto2/issues/70 */ + {"Sony:Alpha-A6300 (MTP)", 0x054c, 0x077a, 0}, + + /* https://github.com/gphoto/libgphoto2/issues/190 */ + {"Sony:Alpha-A6500", 0x054c, 0x0784, 0}, + + /* bertrand.chambon@free.fr */ + {"Sony:Alpha-A68 (Control)", 0x054c, 0x079b, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/70 */ + {"Sony:Alpha-A6300 (Control)",0x054c, 0x079c, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Anja Stock at SUSE */ + {"Sony:DSC-RX10M3 (Control)", 0x054c, 0x079d, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Elijah Parker */ + {"Sony:Alpha-A99 M2 (Control)", 0x054c, 0x079e, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Elijah Parker */ + {"Sony:DSC-RX100V (Control)", 0x054c, 0x07a3, PTP_CAP}, + /* hanes442@icloud.com */ + {"Sony:DSC-RX100M5 (Control)",0x054c, 0x07a3, PTP_CAP}, + + + /* Elijah Parker */ + /* https://github.com/gphoto/libgphoto2/issues/190 */ + {"Sony:Alpha-A6500 (Control)", 0x054c, 0x07a4, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Elijah Parker */ + /* https://sourceforge.net/p/gphoto/support-requests/127/ */ + {"Sony:Alpha-A5000 (Control)", 0x054c, 0x07c6, PTP_CAP}, + + /* jackden@gmail.com */ + {"Sony:DSC-RX100M6 (MTP)", 0x054c, 0x0830, 0}, + + /* https://sourceforge.net/p/libmtp/support-requests/246/ */ + {"Sony:DSC-HX400V (MTP)", 0x054c, 0x08ac, 0}, + + /* https://sourceforge.net/p/libmtp/bugs/1310/ */ + {"Sony:DSC-HX60V (MTP)", 0x054c, 0x08ad, 0}, + + /* https://github.com/gphoto/libgphoto2/issues/355 */ + {"Sony:DSC-WX350 (MTP)", 0x054c, 0x08b0, 0}, + + /* Sascha Peilicke at SUSE */ + {"Sony:Alpha-A6000 (MTP)", 0x054c, 0x08b7, 0}, + + /* https://sourceforge.net/p/gphoto/feature-requests/456/ */ + {"Sony:Alpha-A7S (MTP)", 0x054c, 0x08e2, 0}, + + /* David Farrier */ + {"Sony:RX100M3 (MTP)", 0x054c, 0x08e3, 0}, + + /* Markus Oertel */ + {"Sony:Alpha-A5100 (MTP)", 0x054c, 0x08e7, 0}, + + /* Andre Crone, andre@elysia.nl */ + {"Sony:Alpha-A7 (Control)", 0x054c, 0x094c, PTP_CAP}, + + /* https://sourceforge.net/p/gphoto/feature-requests/442/ */ + /* no preview: https://github.com/gphoto/gphoto2/issues/106#issuecomment-381424159 */ + {"Sony:Alpha-A7r (Control)", 0x054c, 0x094d, PTP_CAP}, + + /* preview was confirmed not to work. */ + {"Sony:Alpha-A6000 (Control)", 0x054c, 0x094e, PTP_CAP}, + + /* Nick Clarke */ + {"Sony:Alpha-A77 M2 (Control)", 0x054c, 0x0953, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Elijah Parker */ + {"Sony:Alpha-A7s (Control)", 0x054c, 0x0954, PTP_CAP}, + + /* Markus Oertel */ + /* Preview confirmed by Adrian Schroeter, preview might need the firmware getting updated */ + {"Sony:Alpha-A5100 (Control)", 0x054c, 0x0957, PTP_CAP|PTP_CAP_PREVIEW}, + + /* http://sourceforge.net/p/gphoto/feature-requests/456/ */ + {"Sony:Alpha-A7S (Control)", 0x054c, 0x0954, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/343 */ + {"Sony:Alpha-A7III (Control)", 0x054c, 0x096f, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Adrian Schroeter */ + {"Sony:ILCE-7R M2 (MTP)", 0x054c, 0x09e7, 0}, + + /* https://sourceforge.net/p/gphoto/feature-requests/472/ */ + {"Sony:DSC-HX90V (MTP)", 0x054c, 0x09e8, 0}, + + /* titan232@gmail.com */ + {"Sony:ILCE-7M2 (Control)", 0x054c, 0x0a6a, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Andre Crone, andre@elysia.nl */ + {"Sony:Alpha-A7r II (Control)", 0x054c, 0x0a6b, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Andre Crone */ + {"Sony:DSC-RX100M4", 0x054c, 0x0a6d, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Andre Crone , adjusted */ + {"Sony:Alpha-A7S II (Control)", 0x054c,0x0a71, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Demo7up */ + {"Sony:UMC-R10C", 0x054c,0x0a79, 0}, + + {"Sony:DSC-RX0 (MTP)", 0x054c, 0x0bfd, 0}, + + /* https://github.com/gphoto/libgphoto2/issues/230 */ + {"Sony:Alpha-A7R III (MTP mode)", 0x054c,0x0c00, 0}, + + /* https://github.com/gphoto/libgphoto2/issues/343 */ + {"Sony:Alpha-A7 III (MTP mode)", 0x054c,0x0c03, 0}, + + /* Elijah Parker, mail@timelapseplus.com */ + {"Sony:Alpha-A9 (Control)", 0x054c, 0x0c2a, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Richard Brown at SUSE */ + {"Sony:Alpha-RX10M4 (Control)", 0x054c,0x0c2f, PTP_CAP|PTP_CAP_PREVIEW}, + + {"Sony:DSC-RX0 (PC Control)", 0x054c, 0x0c32, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Elijah Parker, mail@timelapseplus.com */ + /* https://github.com/gphoto/libgphoto2/issues/230 */ + {"Sony:Alpha-A7r III (PC Control)", 0x054c, 0x0c33, PTP_CAP|PTP_CAP_PREVIEW}, /* FIXME: crosscheck */ + {"Sony:Alpha-A7 III (PC Control)", 0x054c, 0x0c34, PTP_CAP|PTP_CAP_PREVIEW}, /* FIXME: crosscheck */ + + /* jackden@gmail.com */ + {"Sony:DSC-RX100M6 (PC Control)", 0x054c, 0x0c38, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/419 */ + {"Sony:DSC RX0 II (PC Control)", 0x054c, 0x0ca6, PTP_CAP|PTP_CAP_PREVIEW}, + /* orbital sailor */ + {"Sony:ILCE-6400 (PC Control)", 0x054c, 0x0caa, PTP_CAP|PTP_CAP_PREVIEW}, + /* Mikael Ståldal */ + {"Sony:DSC-RX100M5A (MTP)", 0x054c, 0x0cb1, 0}, + {"Sony:DSC-RX100M5A (PC Control)", 0x054c, 0x0cb2, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Elijah Parker, mail@timelapseplus.com */ + {"Sony:DSC-A7r IV (Control)", 0x054c, 0x0ccc, PTP_CAP|PTP_CAP_PREVIEW}, + + + /* Nikon Coolpix 2500: M. Meissner, 05 Oct 2003 */ + {"Nikon:Coolpix 2500 (PTP mode)", 0x04b0, 0x0109, 0}, + /* Nikon Coolpix 5700: A. Tanenbaum, 29 Oct 2002 */ + /* no capture complete: https://sourceforge.net/tracker/index.php?func=detail&aid=3018517&group_id=8874&atid=108874 */ + {"Nikon:Coolpix 5700 (PTP mode)", 0x04b0, 0x010d, PTP_CAP|PTP_NO_CAPTURE_COMPLETE}, + /* Nikon Coolpix 4500: T. Kaproncai, 22 Aug 2003 */ + {"Nikon:Coolpix 4500 (PTP mode)", 0x04b0, 0x010b, 0}, + /* Nikon Coolpix 4300: Marco Rodriguez, 10 dic 2002 */ + {"Nikon:Coolpix 4300 (PTP mode)", 0x04b0, 0x010f, 0}, + /* Nikon Coolpix 3500: M. Meissner, 07 May 2003 */ + {"Nikon:Coolpix 3500 (PTP mode)", 0x04b0, 0x0111, 0}, + /* Nikon Coolpix 885: S. Anderson, 19 nov 2002 */ + {"Nikon:Coolpix 885 (PTP mode)", 0x04b0, 0x0112, 0}, + /* Nikon Coolpix 5000, Firmware v1.7 or later */ + {"Nikon:Coolpix 5000 (PTP mode)", 0x04b0, 0x0113, PTP_CAP|PTP_NO_CAPTURE_COMPLETE}, + /* Nikon Coolpix 3100 */ + {"Nikon:Coolpix 3100 (PTP mode)", 0x04b0, 0x0115, 0}, + /* Nikon Coolpix 2100 */ + {"Nikon:Coolpix 2100 (PTP mode)", 0x04b0, 0x0117, 0}, + /* Nikon Coolpix 5400: T. Kaproncai, 25 Jul 2003 */ + {"Nikon:Coolpix 5400 (PTP mode)", 0x04b0, 0x0119, PTP_CAP|PTP_NO_CAPTURE_COMPLETE}, + /* Nikon Coolpix 3700: T. Ehlers, 18 Jan 2004 */ + {"Nikon:Coolpix 3700 (PTP mode)", 0x04b0, 0x011d, PTP_CAP|PTP_NO_CAPTURE_COMPLETE}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2110825&group_id=8874&atid=108874 */ + {"Nikon:Coolpix 8700 (PTP mode)", 0x04b0, 0x011f, 0}, + /* Nikon Coolpix 3200 */ + {"Nikon:Coolpix 3200 (PTP mode)", 0x04b0, 0x0121, 0}, + /* Nikon Coolpix 2200 */ + {"Nikon:Coolpix 2200 (PTP mode)", 0x04b0, 0x0122, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + + /* Jonathan Marten + * https://sourceforge.net/p/gphoto/bugs/968/ */ + {"Nikon:Coolpix 2200v1.1 (PTP mode)", 0x04b0, 0x0123, PTP_CAP|PTP_NO_CAPTURE_COMPLETE}, + + /* Harry Reisenleiter */ + {"Nikon:Coolpix 8800 (PTP mode)", 0x04b0, 0x0127, PTP_CAP}, + /* Nikon Coolpix 4800 */ + {"Nikon:Coolpix 4800 (PTP mode)", 0x04b0, 0x0129, 0}, + /* Nikon Coolpix SQ: M. Holzbauer, 07 Jul 2003 */ + /* and https://github.com/gphoto/libgphoto2/issues/29 */ + {"Nikon:Coolpix 4100 (PTP mode)", 0x04b0, 0x012d, PTP_CAP|PTP_NO_CAPTURE_COMPLETE}, + /* Nikon Coolpix 5600: Andy Shevchenko, 11 Aug 2005 */ + {"Nikon:Coolpix 5600 (PTP mode)", 0x04b0, 0x012e, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* 4600: Martin Klaffenboeck */ + {"Nikon:Coolpix 4600 (PTP mode)", 0x04b0, 0x0130, 0}, + /* 4600: Roberto Costa , 22 Oct 2006 */ + {"Nikon:Coolpix 4600a (PTP mode)", 0x04b0, 0x0131,PTP_CAP|PTP_NO_CAPTURE_COMPLETE}, + {"Nikon:Coolpix 5900 (PTP mode)", 0x04b0, 0x0135, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1846012&group_id=8874&atid=358874 */ + {"Nikon:Coolpix 7900 (PTP mode)", 0x04b0, 0x0137, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* Egil Kvaleberg: USB says "NIKON DSC E7600-PTP" */ + {"Nikon:Coolpix 7600 (PTP mode)", 0x04b0, 0x0139, PTP_CAP}, + + {"Nikon:Coolpix P1 (PTP mode)", 0x04b0, 0x0140, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* Marcus Meissner */ + {"Nikon:Coolpix P2 (PTP mode)", 0x04b0, 0x0142, PTP_CAP|PTP_NO_CAPTURE_COMPLETE}, + /* Richard SCHNEIDER */ + {"Nikon:Coolpix S4 (PTP mode)", 0x04b0, 0x0144, 0}, + /* Lowe, John Michael */ + {"Nikon:Coolpix S2 (PTP mode)", 0x04b0, 0x014e, 0}, + {"Nikon:Coolpix S6 (PTP mode)", 0x04b0, 0x014e, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=3114250&group_id=8874&atid=358874 */ + {"Nikon:Coolpix S7c (PTP mode)", 0x04b0, 0x0157, 0}, + /* Ole Aamot */ + {"Nikon:Coolpix P5000 (PTP mode)",0x04b0, 0x015b, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* Peter Pregler */ + {"Nikon:Coolpix S500 (PTP mode)", 0x04b0, 0x015d, 0}, + {"Nikon:Coolpix L12 (PTP mode)", 0x04b0, 0x015f, PTP_CAP}, + /* Marius Groeger */ + {"Nikon:Coolpix S200 (PTP mode)", 0x04b0, 0x0161, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* Submitted on IRC by kallepersson */ + {"Nikon:Coolpix P5100 (PTP mode)", 0x04b0, 0x0163, 0}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2589245&group_id=8874&atid=108874 */ + {"Nikon:Coolpix P50 (PTP mode)", 0x04b0, 0x0169, 0}, + /* Clodoaldo via + * https://bugs.kde.org/show_bug.cgi?id=315268 */ + {"Nikon:Coolpix P80 (PTP mode)", 0x04b0, 0x016b, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + + /* TJ */ + {"Nikon:Coolpix P80 v1.1 (PTP mode)", 0x04b0, 0x016c, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + + /* http://sourceforge.net/tracker/index.php?func=detail&aid=2951663&group_id=8874&atid=358874 */ + {"Nikon:Coolpix P6000 (PTP mode)",0x04b0, 0x016f, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* http://bugs.debian.org/520752 */ + {"Nikon:Coolpix S60 (PTP mode)", 0x04b0, 0x0171, 0}, + /* Mike Strickland */ + {"Nikon:Coolpix P90 (PTP mode)", 0x04b0, 0x0173, 0}, + /* https://github.com/gphoto/gphoto2/issues/214 */ + {"Nikon:Coolpix L100 (PTP mode)", 0x04b0, 0x0174, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* Christoph Muehlmann */ + {"Nikon:Coolpix S220 (PTP mode)", 0x04b0, 0x0177, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* */ + {"Nikon:Coolpix S225 (PTP mode)", 0x04b0, 0x0178, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + + /* Ryan Nestor */ + {"Nikon:Coolpix P100 (PTP mode)", 0x04b0, 0x017d, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* Štěpán Němec */ + {"Nikon:Coolpix P7000 (PTP mode)",0x04b0, 0x017f, PTP_CAP|PTP_NO_CAPTURE_COMPLETE}, + + /* http://sourceforge.net/tracker/index.php?func=detail&aid=3019787&group_id=8874&atid=358874 */ + /* probably no need for nikon_broken_Cap as it worked without this flag for the user */ + {"Nikon:Coolpix L110 (PTP mode)", 0x04b0, 0x017e, PTP_CAP}, + + /* miguel@rozsas.eng.br */ + {"Nikon:Coolpix P500 (PTP mode)", 0x04b0, 0x0184, PTP_CAP}, + /* Graeme Wyatt */ + {"Nikon:Coolpix L120 (PTP mode)", 0x04b0, 0x0185, PTP_CAP}, + /* Kévin Ottens */ + {"Nikon:Coolpix S9100 (PTP mode)",0x04b0, 0x0186, PTP_CAP}, + + /* johnnolan@comcast.net */ + {"Nikon:Coolpix AW100 (PTP mode)",0x04b0, 0x0188, PTP_CAP}, + + /* Dale Pontius */ + {"Nikon:Coolpix P7100 (PTP mode)",0x04b0, 0x018b, PTP_CAP}, + + /* "Dr. Ing. Dieter Jurzitza" */ + {"Nikon:Coolpix 9400 (PTP mode)",0x04b0, 0x0191, PTP_CAP}, + + /* t.ludewig@gmail.com */ + {"Nikon:Coolpix L820 (PTP mode)",0x04b0, 0x0192, PTP_CAP}, + /* https://sourceforge.net/p/gphoto/feature-requests/429/ */ + {"Nikon:Coolpix S9500 (PTP mode)",0x04b0, 0x0193, PTP_CAP}, + + /* LeChuck */ + {"Nikon:Coolpix AW110 (PTP mode)",0x04b0, 0x0194, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + + /* https://github.com/gphoto/libgphoto2/issues/116 */ + {"Nikon:Coolpix AW130 (PTP mode)",0x04b0, 0x0198, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + + /* https://github.com/gphoto/libgphoto2/issues/150 */ + {"Nikon:Coolpix P900 (PTP mode)", 0x04b0, 0x019c, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + + /* https://github.com/gphoto/libgphoto2/issues/141 */ + {"Nikon:Coolpix A900 (PTP mode)", 0x04b0, 0x019e, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + + /* https://github.com/gphoto/libgphoto2/issues/138 */ + {"Nikon:KeyMission 360 (PTP mode)",0x04b0, 0x019f, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + + {"Nikon:Coolpix SQ (PTP mode)", 0x04b0, 0x0202, 0}, + /* lars marowski bree, 16.8.2004 */ + {"Nikon:Coolpix 4200 (PTP mode)", 0x04b0, 0x0204, 0}, + /* Nikon Coolpix 5200: Andy Shevchenko, 18 Jul 2005 */ + {"Nikon:Coolpix 5200 (PTP mode)", 0x04b0, 0x0206, 0}, + /* https://launchpad.net/bugs/63473 */ + {"Nikon:Coolpix L1 (PTP mode)", 0x04b0, 0x0208, 0}, + {"Nikon:Coolpix P4 (PTP mode)", 0x04b0, 0x020c, PTP_CAP}, + /* Bo Masser */ + {"Nikon:Coolpix S620 (PTP mode)", 0x04b0, 0x021c, 0}, + {"Nikon:Coolpix S6000 (PTP mode)",0x04b0, 0x021e, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=3135935&group_id=8874&atid=358874 */ + {"Nikon:Coolpix S8000 (PTP mode)",0x04b0, 0x021f, 0}, + /* Aleksej Serdjukov */ + {"Nikon:Coolpix S5100 (PTP mode)",0x04b0, 0x0220, 0}, + /* wlady.cs@gmail.com */ + {"Nikon:Coolpix P300 (PTP mode)", 0x04b0, 0x0221, 0}, + /* t.ludewig@gmail.com */ + {"Nikon:Coolpix S8200", 0x04b0, 0x0222, 0}, + {"Nikon:Coolpix P510 (PTP mode)", 0x04b0, 0x0223, 0}, + /* Bernhard Schiffner */ + {"Nikon:Coolpix P7700 (PTP mode)",0x04b0, 0x0225, 0}, + + /* t.ludewig@gmail.com */ + /* N CP A seems capture capable, but does not list vendor commands */ + /* Reports 0x400d aka CaptureComplete event ... but has no + * vendor commands? yeah right ... */ + /* It might be similar to the 1? lets try ... Marcus 20140706 */ + {"Nikon:Coolpix A (PTP mode)", 0x04b0, 0x0226, PTP_CAP|PTP_NIKON_1}, /* PTP_CAP */ + + /* Jonas Stein */ + {"Nikon:Coolpix P330 (PTP mode)", 0x04b0, 0x0227, PTP_CAP}, + + /* Malcolm Lee */ + {"Nikon:Coolpix P7800 (PTP mode)", 0x04b0, 0x0229, 0}, + + /* t.ludewig@gmail.com */ + /* Also reports 0x400d aka CaptureComplete event ... but has no + * vendor commands? yeah right... */ + {"Nikon:Coolpix P520 (PTP mode)", 0x04b0, 0x0228, 0}, /* PTP_CAP */ + + /* Nikon Coolpix 2000 */ + {"Nikon:Coolpix 2000 (PTP mode)", 0x04b0, 0x0302, 0}, + /* From IRC reporter. */ + {"Nikon:Coolpix L4 (PTP mode)", 0x04b0, 0x0305, 0}, + /* from Magnus Larsson */ + {"Nikon:Coolpix L11 (PTP mode)", 0x04b0, 0x0309, 0}, + /* From IRC reporter. */ + {"Nikon:Coolpix L10 (PTP mode)", 0x04b0, 0x030b, 0}, + /* Philippe ENTZMANN */ + {"Nikon:Coolpix P60 (PTP mode)", 0x04b0, 0x0311, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* Stas Timokhin */ + {"Nikon:Coolpix L16 (PTP mode)", 0x04b0, 0x0315, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2977303&group_id=8874&atid=358874 */ + {"Nikon:Coolpix L20 (PTP mode)", 0x04b0, 0x0317, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2947644&group_id=8874&atid=108874 */ + {"Nikon:Coolpix L19 (PTP mode)", 0x04b0, 0x0318, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + /* IRC reporter */ + {"Nikon:Coolpix S3000 (PTP mode)",0x04b0, 0x031b, PTP_CAP}, + /* christian.moll@tudor.lu */ + {"Nikon:Coolpix S3100 (PTP mode)",0x04b0, 0x0320, PTP_CAP}, + /* Teemu rytilahti of KDE */ + {"Nikon:Coolpix S2500 (PTP mode)",0x04b0, 0x0321, PTP_CAP}, + /* Fabio */ + {"Nikon:Coolpix L23 (PTP mode)", 0x04b0, 0x0324, PTP_CAP}, + /* Novell bugzilla 852551 */ + {"Nikon:Coolpix S4300 (PTP mode)",0x04b0, 0x0329, PTP_CAP/*?*/}, + /* "M.-A. DARCHE" . gets capturecomplete events nicely */ + {"Nikon:Coolpix S3300 (PTP mode)",0x04b0, 0x032a, PTP_CAP}, + /* Mdasoh Kyaeppd at IRC */ + {"Nikon:Coolpix S6300 (PTP mode)",0x04b0, 0x032c, PTP_CAP}, + /* sakax */ + {"Nikon:Coolpix S2600 (PTP mode)",0x04b0, 0x032d, PTP_CAP|PTP_NIKON_BROKEN_CAP}, + + /* dougvj@gmail.com */ + {"Nikon:Coolpix L810 (PTP mode)",0x04b0, 0x032f, PTP_CAP}, + + /* Borja Latorre */ + {"Nikon:Coolpix S3200", 0x04b0, 0x0334, PTP_CAP}, + + + /* t.ludewig@gmail.com */ + {"Nikon:Coolpix S01", 0x04b0, 0x0337, PTP_CAP}, + + /* https://sourceforge.net/p/gphoto/bugs/971/ */ + {"Nikon:Coolpix S2700", 0x04b0, 0x033f, PTP_CAP}, + + /* Jeremy Harkcom */ + {"Nikon:Coolpix L27", 0x04b0, 0x0343, PTP_CAP}, + + /* t.ludewig@gmail.com */ + {"Nikon:Coolpix S02", 0x04b0, 0x0346, PTP_CAP}, + + /* t.ludewig@gmail.com */ + /* seems not to report events? but has full liveview caps_ */ + {"Nikon:Coolpix S9700", 0x04b0, 0x034b, PTP_CAP|PTP_CAP_PREVIEW|PTP_NIKON_BROKEN_CAP}, + + /* David Shawcross */ + {"Nikon:Coolpix S6800", 0x04b0, 0x0350, PTP_CAP}, + + /* Tomasz Lis */ + {"Nikon:Coolpix S3600", 0x04b0, 0x0353, PTP_CAP}, + + /* Laurence Praties */ + {"Nikon:Coolpix L840", 0x04b0, 0x035a, PTP_CAP|PTP_NO_CAPTURE_COMPLETE}, + + /* David Shawcross */ + {"Nikon:Coolpix S3700", 0x04b0, 0x035c, PTP_CAP}, + + /* David Shawcross */ + {"Nikon:Coolpix S2900", 0x04b0, 0x035e, PTP_CAP}, + + /* https://sourceforge.net/p/libmtp/bugs/1743/ */ + {"Nikon:Coolpix L340", 0x04b0, 0x0361, PTP_CAP}, + + /* Krystal Puga */ + {"Nikon:KeyMission 170", 0x04b0, 0x0364, PTP_CAP}, + + /* Nikon D100 has a PTP mode: westin 2002.10.16 */ + {"Nikon:DSC D100 (PTP mode)", 0x04b0, 0x0402, 0}, + /* D2H SLR in PTP mode from Steve Drew */ + {"Nikon:D2H SLR (PTP mode)", 0x04b0, 0x0404, 0}, + {"Nikon:DSC D70 (PTP mode)", 0x04b0, 0x0406, PTP_CAP}, + /* Justin Case */ + {"Nikon:D2X SLR (PTP mode)", 0x04b0, 0x0408, PTP_CAP}, + /* Niclas Gustafsson (nulleman @ sf) */ + {"Nikon:D50 (PTP mode)", 0x04b0, 0x040a, PTP_CAP}, /* no hidden props */ + /* Didier Gasser-Morlay */ + {"Nikon:D2Hs (PTP mode)", 0x04b0, 0x040c, PTP_CAP}, + {"Nikon:DSC D70s (PTP mode)", 0x04b0, 0x040e, PTP_CAP}, + /* Jana Jaeger */ + {"Nikon:DSC D200 (PTP mode)", 0x04b0, 0x0410, PTP_CAP}, + /* Christian Deckelmann @ SUSE */ + {"Nikon:DSC D80 (PTP mode)", 0x04b0, 0x0412, PTP_CAP}, + /* Huy Hoang */ + {"Nikon:DSC D40 (PTP mode)", 0x04b0, 0x0414, PTP_CAP}, + /* Mark de Ruijter */ + {"Nikon:DSC D2Xs (PTP mode)", 0x04b0, 0x0416, PTP_CAP}, + /* Luca Gervasi */ + {"Nikon:DSC D40x (PTP mode)", 0x04b0, 0x0418, PTP_CAP}, + /* Andreas Jaeger . + * Marcus: MTP Proplist does not return objectsizes ... useless. */ + {"Nikon:DSC D300 (PTP mode)", 0x04b0, 0x041a, PTP_CAP}, + /* Pat Shanahan, http://sourceforge.net/tracker/index.php?func=detail&aid=1924511&group_id=8874&atid=358874 */ + {"Nikon:D3 (PTP mode)", 0x04b0, 0x041c, PTP_CAP}, + /* irc reporter Benjamin Schindler */ + {"Nikon:DSC D60 (PTP mode)", 0x04b0, 0x041e, PTP_CAP}, + + /* pbj304 pbj@ecs.soton.ac.uk */ + {"Nikon:DSC D3x (PTP mode)", 0x04b0, 0x0420, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Will Stephenson at SUSE and wstephenson@flickr */ + {"Nikon:DSC D90 (PTP mode)", 0x04b0, 0x0421, PTP_CAP|PTP_CAP_PREVIEW}, + /* Borrowed D700 by deckel / marcus at SUSE */ + {"Nikon:DSC D700 (PTP mode)", 0x04b0, 0x0422, PTP_CAP|PTP_CAP_PREVIEW}, + /* Stephan Barth at SUSE */ + {"Nikon:DSC D5000 (PTP mode)", 0x04b0, 0x0423, PTP_CAP|PTP_CAP_PREVIEW}, + /* IRC reporter */ + {"Nikon:DSC D3000 (PTP mode)", 0x04b0, 0x0424, PTP_CAP}, + /* Andreas Dielacher */ + {"Nikon:DSC D300s (PTP mode)", 0x04b0, 0x0425, PTP_CAP|PTP_CAP_PREVIEW}, + /* Matthias Blaicher */ + {"Nikon:DSC D3s (PTP mode)", 0x04b0, 0x0426, PTP_CAP|PTP_CAP_PREVIEW}, + /* SWPLinux IRC reporter... does not have liveview -lowend model. */ + {"Nikon:DSC D3100 (PTP mode)", 0x04b0, 0x0427, PTP_CAP|PTP_CAP_PREVIEW}, + /* http://sourceforge.net/tracker/?func=detail&atid=358874&aid=3140014&group_id=8874 */ + {"Nikon:DSC D7000 (PTP mode)", 0x04b0, 0x0428, PTP_CAP|PTP_CAP_PREVIEW}, + + /* IRC Reporter popolon */ + {"Nikon:DSC D5100 (PTP mode)", 0x04b0, 0x0429, PTP_CAP|PTP_CAP_PREVIEW}, + + /* "François G." */ + {"Nikon:DSC D800", 0x04b0, 0x042a, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Christian Deckelmann of Xerox */ + {"Nikon:DSC D4", 0x04b0, 0x042b, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Lihuijun */ + {"Nikon:DSC D3200", 0x04b0, 0x042c, PTP_CAP|PTP_CAP_PREVIEW}, + + /* t.ludewig@gmail.com */ + {"Nikon:DSC D600", 0x04b0, 0x042d, PTP_CAP|PTP_CAP_PREVIEW}, + /* Roderick Stewart */ + {"Nikon:DSC D800E", 0x04b0, 0x042e, PTP_CAP|PTP_CAP_PREVIEW}, + /* Simeon Pilgrim */ + {"Nikon:DSC D5200", 0x04b0, 0x042f, PTP_CAP|PTP_CAP_PREVIEW}, + + /* t.ludewig@gmail.com */ + {"Nikon:DSC D7100", 0x04b0, 0x0430, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Kirill Bogdanenk via kde bug 336523 */ + {"Nikon:DSC D5300", 0x04b0, 0x0431, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Andre Crone */ + {"Nikon:DSC Df", 0x04b0, 0x0432, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://sourceforge.net/p/gphoto/feature-requests/449/ */ + {"Nikon:DSC D3300", 0x04b0, 0x0433, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Andre Crone */ + {"Nikon:DSC D610", 0x04b0, 0x0434, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Andre Crone */ + {"Nikon:DSC D4s", 0x04b0, 0x0435, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Jeremie FROLI */ + {"Nikon:DSC D810", 0x04b0, 0x0436, PTP_CAP|PTP_CAP_PREVIEW}, + + /*Jürgen Blumenschein */ + {"Nikon:DSC D750", 0x04b0, 0x0437, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Jeffrey Wilson */ + {"Nikon:DSC D5500", 0x04b0, 0x0438, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/83 */ + {"Nikon:DSC D7200", 0x04b0, 0x0439, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Laurent Zylberman */ + {"Nikon:DSC D5", 0x04b0, 0x043a, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Andre Crone */ + {"Nikon:DSC D810A", 0x04b0, 0x043b, PTP_CAP|PTP_CAP_PREVIEW}, + + /* bob@360degreeviews.com */ + {"Nikon:DSC D500", 0x04b0, 0x043c, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Chris P */ + {"Nikon:DSC D3400", 0x04b0, 0x043d, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Phil Stephenson */ + {"Nikon:DSC D5600", 0x04b0, 0x043f, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Satoshi Kubota */ + {"Nikon:DSC D7500", 0x04b0, 0x0440, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Andre Crone */ + {"Nikon:DSC D850", 0x04b0, 0x0441, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Horshack ?? */ + {"Nikon:Z7", 0x04b0, 0x0442, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Marcus Meissner */ + {"Nikon:Z6", 0x04b0, 0x0443, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Daniel Baertschi */ + {"Nikon:Z50", 0x04b0, 0x0444, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Schreiber, Steve via Gphoto-devel */ + {"Nikon:DSC D3500", 0x04b0, 0x0445, PTP_CAP|PTP_CAP_PREVIEW}, + + /* http://sourceforge.net/tracker/?func=detail&aid=3536904&group_id=8874&atid=108874 */ + {"Nikon:V1", 0x04b0, 0x0601, PTP_CAP|PTP_NIKON_1}, + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=3556403&group_id=8874 */ + {"Nikon:J1", 0x04b0, 0x0602, PTP_CAP|PTP_NIKON_1}, + /* https://bugzilla.novell.com/show_bug.cgi?id=814622 Martin Caj at SUSE */ + {"Nikon:J2", 0x04b0, 0x0603, PTP_CAP|PTP_NIKON_1}, + /* https://sourceforge.net/p/gphoto/feature-requests/432/ */ + {"Nikon:V2", 0x04b0, 0x0604, PTP_CAP|PTP_NIKON_1}, + /* Ralph Schindler */ + {"Nikon:J3", 0x04b0, 0x0605, PTP_CAP|PTP_NIKON_1}, + /* Markus Karlhuber */ + {"Nikon:S1", 0x04b0, 0x0606, PTP_CAP|PTP_NIKON_1}, + /* Tarjei Husøy */ + {"Nikon:S2", 0x04b0, 0x0608, PTP_CAP|PTP_NIKON_1}, + /* Raj Kumar */ + {"Nikon:J4", 0x04b0, 0x0609, PTP_CAP|PTP_NIKON_1}, + /* Alexander Smith */ + {"Nikon:V3", 0x04b0, 0x060a, PTP_CAP|PTP_NIKON_1}, + + /* Wolfgang Goetz */ + {"Nikon:J5", 0x04b0, 0x060b, PTP_CAP|PTP_NIKON_1}, + +#if 0 + /* Thomas Luzat */ + /* this was reported as not working, mass storage only: + * http://sourceforge.net/tracker/index.php?func=detail&aid=1847471&group_id=8874&atid=108874 + {"Panasonic:DMC-FZ20 (alternate id)", 0x04da, 0x2372, 0}, + */ + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1350226&group_id=8874&atid=208874 */ + {"Panasonic:DMC-LZ2", 0x04da, 0x2372, 0}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=1405541&group_id=8874&atid=358874 */ + {"Panasonic:DMC-LC1", 0x04da, 0x2372, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1275100&group_id=8874&atid=358874 */ + {"Panasonic:Lumix FZ5", 0x04da, 0x2372, 0}, +#endif + + {"Panasonic:DMC-FZ20", 0x04da, 0x2374, 0}, + {"Panasonic:DMC-FZ45", 0x04da, 0x2374, 0}, + {"Panasonic:DMC-FZ38", 0x04da, 0x2374, 0}, + {"Panasonic:DMC-FZ50", 0x04da, 0x2374, 0}, + {"Panasonic:DMC-LS2", 0x04da, 0x2374, 0}, + /* from Tomas Herrdin */ + {"Panasonic:DMC-LS3", 0x04da, 0x2374, 0}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2070864&group_id=8874&atid=358874 */ + {"Panasonic:DMC-TZ15", 0x04da, 0x2374, 0}, + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=2950529&group_id=8874 */ + {"Panasonic:DMC-FS62", 0x04da, 0x2374, 0}, + {"Panasonic:DMC-TZ18", 0x04da, 0x2374, 0}, + /* Jean Ribière */ + {"Panasonic:DMC-TZ8", 0x04da, 0x2374, 0}, + {"Panasonic:DMC-LX7", 0x04da, 0x2374, 0}, + /* Constantin B */ + {"Panasonic:DMC-GF1", 0x04da, 0x2374, 0}, + + {"Panasonic:DC-GH5", 0x04da, 0x2382, PTP_CAP|PTP_CAP_PREVIEW}, + + + /* Søren Krarup Olesen */ + {"Leica:D-LUX 2", 0x04da, 0x2375, 0}, + /* Graham White */ + {"Leica:SL", 0x04da, 0x2041, 0}, + + /* http://callendor.zongo.be/wiki/OlympusMju500 */ + {"Olympus:mju 500", 0x07b4, 0x0113, 0}, + + /* Olympus wrap test code */ + {"Olympus:E series (Control)", 0x07b4, 0x0110, PTP_OLYMPUS_XML}, + +#if 0 /* talks PTP via SCSI vendor command backchannel, like above. */ + {"Olympus:E-410 (UMS 2 mode)", 0x07b4, 0x0118, 0}, /* not XML wrapped */ +#endif + + /* From VICTOR */ + {"Olympus:C-350Z", 0x07b4, 0x0114, 0}, + {"Olympus:D-560Z", 0x07b4, 0x0114, 0}, + {"Olympus:X-250", 0x07b4, 0x0114, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1349900&group_id=8874&atid=108874 */ + {"Olympus:C-310Z", 0x07b4, 0x0114, 0}, + {"Olympus:D-540Z", 0x07b4, 0x0114, 0}, + {"Olympus:X-100", 0x07b4, 0x0114, 0}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=1442115&group_id=8874&atid=358874 */ + {"Olympus:C-55Z", 0x07b4, 0x0114, 0}, + {"Olympus:C-5500Z", 0x07b4, 0x0114, 0}, + + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=1272944&group_id=8874 */ + {"Olympus:IR-300", 0x07b4, 0x0114, 0}, + + /* Marcus */ + {"Olympus:FE4000", 0x07b4, 0x0116, 0}, + {"Olympus:X920", 0x07b4, 0x0116, 0}, + {"Olympus:X925", 0x07b4, 0x0116, 0}, + {"Olympus:VR360", 0x07b4, 0x0116, 0}, + + /* Jonas Rani Hatem */ + {"Olympus:TG-620", 0x07b4, 0x0125, 0}, + + /* t.ludewig@gmail.com */ + {"Olympus:SP-720UZ", 0x07b4, 0x012f, 0}, + {"Olympus:E-PL5", 0x07b4, 0x012f, 0}, + /* Rafał Bryndza */ + {"Olympus:E-M5", 0x07b4, 0x012f, 0}, + /* Richard Wonka */ + {"Olympus:E-M5 Mark II", 0x07b4, 0x0130, PTP_CAP|PTP_CAP_PREVIEW}, + /* same id also on E-M1 */ + {"Olympus:E-M1 Mark II", 0x07b4, 0x0130, PTP_CAP|PTP_CAP_PREVIEW}, + {"Olympus:E-M1", 0x07b4, 0x0130, PTP_CAP|PTP_CAP_PREVIEW}, + + /* IRC report */ + {"Casio:EX-Z120", 0x07cf, 0x1042, 0}, + /* Andrej Semen (at suse) */ + {"Casio:EX-S770", 0x07cf, 0x1049, 0}, + /* https://launchpad.net/bugs/64146 */ + {"Casio:EX-Z700", 0x07cf, 0x104c, 0}, + /* IRC Reporter */ + {"Casio:EX-Z65", 0x07cf, 0x104d, 0}, + + /* Juan Carlos Bretal Fernandez */ + {"Casio:EX-ZR700", 0x07cf, 0x117a, 0}, + + /* (at least some) newer Canon cameras can be switched between + * PTP and "normal" (i.e. Canon) mode + * Canon PS G3: A. Marinichev, 20 nov 2002 + */ + {"Canon:PowerShot S45 (PTP mode)", 0x04a9, 0x306d, PTPBUG_DELETE_SENDS_EVENT}, + /* 0x306c is S45 in normal (canon) mode */ + {"Canon:PowerShot G3 (PTP mode)", 0x04a9, 0x306f, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* 0x306e is G3 in normal (canon) mode */ + {"Canon:PowerShot S230 (PTP mode)", 0x04a9, 0x3071, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* 0x3070 is S230 in normal (canon) mode */ + {"Canon:Digital IXUS v3 (PTP mode)", 0x04a9, 0x3071, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* it's the same as S230 */ + + {"Canon:Digital IXUS II (PTP mode)", 0x04a9, 0x3072, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot SD100 (PTP mode)", 0x04a9, 0x3072, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot A70 (PTP)", 0x04a9, 0x3073, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot A60 (PTP)", 0x04a9, 0x3074, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* IXUS 400 has the same PID in both modes, Till Kamppeter */ + {"Canon:Digital IXUS 400 (PTP mode)", 0x04a9, 0x3075, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot S400 (PTP mode)", 0x04a9, 0x3075, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot A300 (PTP mode)", 0x04a9, 0x3076, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot S50 (PTP mode)", 0x04a9, 0x3077, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot G5 (PTP mode)", 0x04a9, 0x3085, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:Elura 50 (PTP mode)", 0x04a9, 0x3087, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:MVX3i (PTP mode)", 0x04a9, 0x308d, PTPBUG_DELETE_SENDS_EVENT}, + /* 0x3084 is the EOS 300D/Digital Rebel in normal (canon) mode */ + {"Canon:EOS 300D (PTP mode)", 0x04a9, 0x3099, 0}, + {"Canon:EOS Digital Rebel (PTP mode)", 0x04a9, 0x3099, 0}, + {"Canon:EOS Kiss Digital (PTP mode)", 0x04a9, 0x3099, 0}, + {"Canon:PowerShot A80 (PTP)", 0x04a9, 0x309a, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:Digital IXUS i (PTP mode)", 0x04a9, 0x309b, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot S1 IS (PTP mode)", 0x04a9, 0x309c, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:MV750i (PTP mode)", 0x04a9, 0x30a0, PTPBUG_DELETE_SENDS_EVENT}, + /* Canon Elura 65, provolone on #gphoto on 2006-12-17 */ + {"Canon:Elura 65 (PTP mode)", 0x04a9, 0x30a5, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:Powershot S70 (PTP mode)", 0x04a9, 0x30b1, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:Powershot S60 (PTP mode)", 0x04a9, 0x30b2, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:Powershot G6 (PTP mode)", 0x04a9, 0x30b3, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:Digital IXUS 500 (PTP mode)", 0x04a9, 0x30b4, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot S500 (PTP mode)", 0x04a9, 0x30b4, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot A75 (PTP mode)", 0x04a9, 0x30b5, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot SD110 (PTP mode)", 0x04a9, 0x30b6, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:Digital IXUS IIs (PTP mode)", 0x04a9, 0x30b6, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot A400 (PTP mode)", 0x04a9, 0x30b7, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot A310 (PTP mode)", 0x04a9, 0x30b8, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot A85 (PTP mode)", 0x04a9, 0x30b9, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:Digital IXUS 430 (PTP mode)", 0x04a9, 0x30ba, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot S410 (PTP mode)", 0x04a9, 0x30ba, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot A95 (PTP mode)", 0x04a9, 0x30bb, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:EOS 10D (PTP mode)", 0x04a9, 0x30bc, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:Digital IXUS 40 (PTP mode)", 0x04a9, 0x30bf, PTPBUG_DELETE_SENDS_EVENT}, +#if 0 + /* the 30c0 id cannot remote capture, use normal mode. */ + {"Canon:PowerShot SD200 (PTP mode)", 0x04a9, 0x30c0, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:Digital IXUS 30 (PTP mode)", 0x04a9, 0x30c0, PTPBUG_DELETE_SENDS_EVENT}, +#endif + {"Canon:PowerShot A520 (PTP mode)", 0x04a9, 0x30c1, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot A510 (PTP mode)", 0x04a9, 0x30c2, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:EOS 1D Mark II (PTP mode)", 0x04a9, 0x30ea, 0}, + {"Canon:EOS 20D (PTP mode)", 0x04a9, 0x30ec, 0}, + /* 30ef is the ID in explicit PTP mode. + * 30ee is the ID with the camera in Canon mode, but the camera reacts to + * PTP commands according to: + * https://sourceforge.net/tracker/?func=detail&atid=108874&aid=1394326&group_id=8874 + * They need to have different names. + */ + {"Canon:EOS 350D (PTP mode)", 0x04a9, 0x30ee, 0}, + {"Canon:EOS 350D", 0x04a9, 0x30ef, 0}, + {"Canon:PowerShot S2 IS (PTP mode)", 0x04a9, 0x30f0, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot SD430 (PTP mode)", 0x04a9, 0x30f1, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:Digital IXUS Wireless (PTP mode)",0x04a9, 0x30f1, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:Digital IXUS 700 (PTP mode)", 0x04a9, 0x30f2, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot SD500 (PTP mode)", 0x04a9, 0x30f2, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* reported by Gilles Dartiguelongue */ + {"Canon:Digital IXUS iZ (PTP mode)", 0x04a9, 0x30f4, PTPBUG_DELETE_SENDS_EVENT}, + /* A340, Andreas Stempfhuber */ + {"Canon:PowerShot A430 (PTP mode)", 0x04a9, 0x30f8, PTPBUG_DELETE_SENDS_EVENT}, + /* Conan Colx, A410, gphoto-Feature Requests-1342538 */ + {"Canon:PowerShot A410 (PTP mode)", 0x04a9, 0x30f9, PTPBUG_DELETE_SENDS_EVENT}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1411976&group_id=8874&atid=358874 */ + {"Canon:PowerShot S80 (PTP mode)", 0x04a9, 0x30fa, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* A620, Tom Roelz */ + {"Canon:PowerShot A620 (PTP mode)", 0x04a9, 0x30fc, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* A610, Andriy Kulchytskyy */ + {"Canon:PowerShot A610 (PTP mode)", 0x04a9, 0x30fd, PTPBUG_DELETE_SENDS_EVENT}, + /* Irc Reporter */ + {"Canon:PowerShot SD630 (PTP mode)", 0x04a9, 0x30fe, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:Digital IXUS 65 (PTP mode)", 0x04a9, 0x30fe, PTPBUG_DELETE_SENDS_EVENT}, + /* Rob Lensen */ + {"Canon:Digital IXUS 55 (PTP mode)", 0x04a9, 0x30ff, 0}, + {"Canon:PowerShot SD450 (PTP mode)", 0x04a9, 0x30ff, 0}, + {"Canon:Optura 600 (PTP mode)", 0x04a9, 0x3105, 0}, + /* Jeff Mock */ + {"Canon:EOS 5D (PTP mode)", 0x04a9, 0x3102, 0}, + /* Nick Richards */ + {"Canon:Digital IXUS 50 (PTP mode)", 0x04a9, 0x310e, PTPBUG_DELETE_SENDS_EVENT}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1640547&group_id=8874&atid=358874 */ + {"Canon:PowerShot A420 (PTP mode)", 0x04a9, 0x310f, PTPBUG_DELETE_SENDS_EVENT}, + /* Some Canon 400D do not have the infamous PTP bug, but some do. + * see http://bugs.kde.org/show_bug.cgi?id=141577 -Marcus */ + {"Canon:EOS 400D (PTP mode)", 0x04a9, 0x3110, PTP_CAP}, + {"Canon:EOS Digital Rebel XTi (PTP mode)", 0x04a9, 0x3110, PTP_CAP}, + {"Canon:EOS Kiss Digital X (PTP mode)", 0x04a9, 0x3110, PTP_CAP}, + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=1456391&group_id=8874 */ + {"Canon:EOS 30D (PTP mode)", 0x04a9, 0x3113, PTP_CAP}, + {"Canon:Digital IXUS 900Ti (PTP mode)", 0x04a9, 0x3115, 0}, + {"Canon:PowerShot SD900 (PTP mode)", 0x04a9, 0x3115, 0}, + {"Canon:Digital IXUS 750 (PTP mode)", 0x04a9, 0x3116, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot A700 (PTP mode)", 0x04a9, 0x3117, PTPBUG_DELETE_SENDS_EVENT}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1498577&group_id=8874&atid=358874 */ + {"Canon:PowerShot SD700 (PTP mode)", 0x04a9, 0x3119, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:Digital IXUS 800 (PTP mode)", 0x04a9, 0x3119, PTPBUG_DELETE_SENDS_EVENT}, + /* Gert Vervoort */ + {"Canon:PowerShot S3 IS (PTP mode)", 0x04a9, 0x311a, PTP_CAP|PTP_CAP_PREVIEW}, + /* David Goodenough */ + {"Canon:PowerShot A540 (PTP mode)", 0x04a9, 0x311b, PTPBUG_DELETE_SENDS_EVENT}, + /* Irc reporter */ + {"Canon:Digital IXUS 60 (PTP mode)", 0x04a9, 0x311c, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot SD600 (PTP mode)", 0x04a9, 0x311c, PTPBUG_DELETE_SENDS_EVENT}, + /* Harald Dunkel */ + {"Canon:PowerShot G7 (PTP mode)", 0x04a9, 0x3125, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* Ales Kozumplik */ + {"Canon:PowerShot A530 (PTP mode)", 0x04a9, 0x3126, PTPBUG_DELETE_SENDS_EVENT}, + /* Jerome Vizcaino */ + {"Canon:Digital IXUS 850 IS (PTP mode)",0x04a9, 0x3136, PTPBUG_DELETE_SENDS_EVENT}, + /* https://launchpad.net/bugs/64146 */ + {"Canon:PowerShot SD40 (PTP mode)", 0x04a9, 0x3137, PTPBUG_DELETE_SENDS_EVENT}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1565043&group_id=8874&atid=358874 */ + {"Canon:PowerShot A710 IS (PTP mode)", 0x04a9, 0x3138, PTPBUG_DELETE_SENDS_EVENT}, + /* Thomas Roelz at SUSE, MTP proplist does not work (hangs) */ + {"Canon:PowerShot A640 (PTP mode)", 0x04a9, 0x3139, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:PowerShot A630 (PTP mode)", 0x04a9, 0x313a, PTPBUG_DELETE_SENDS_EVENT}, + /* Deti Fliegl. + * Marcus: supports MTP proplists, but these are 2 times slower than regular + * data retrieval. */ + {"Canon:EOS 450D (PTP mode)", 0x04a9, 0x3145, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:EOS Rebel XSi (PTP mode)", 0x04a9, 0x3145, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:EOS Kiss X2 (PTP mode)", 0x04a9, 0x3145, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + /* reported by Ferry Huberts */ + {"Canon:EOS 40D (PTP mode)", 0x04a9, 0x3146, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + + /* reported by: gphoto@lunkwill.org */ + {"Canon:EOS 1D Mark III (PTP mode)", 0x04a9, 0x3147, PTP_CAP}, + + {"Canon:PowerShot S5 IS (PTP mode)", 0x04a9, 0x3148, PTP_CAP|PTP_CAP_PREVIEW}, + /* AlannY */ + {"Canon:PowerShot A460 (PTP mode)", 0x04a9, 0x3149, PTP_CAP|PTP_CAP_PREVIEW}, + /* Tobias Blaser */ + {"Canon:Digital IXUS 950 IS (PTP mode)",0x04a9, 0x314b, PTPBUG_DELETE_SENDS_EVENT}, + /* https://bugs.launchpad.net/bugs/206627 */ + {"Canon:PowerShot SD850 (PTP mode)", 0x04a9, 0x314b, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot A570 IS (PTP mode)", 0x04a9, 0x314c, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot A560 (PTP mode)", 0x04a9, 0x314d, PTPBUG_DELETE_SENDS_EVENT}, + /* mailreport from sec@dschroeder.info */ + {"Canon:Digital IXUS 75 (PTP mode)", 0x04a9, 0x314e, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot SD750 (PTP mode)", 0x04a9, 0x314e, PTPBUG_DELETE_SENDS_EVENT}, + /* Marcus: MTP Proplist does not work at all here, it just hangs */ + {"Canon:Digital IXUS 70 (PTP mode)", 0x04a9, 0x314f, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot SD1000 (PTP mode)", 0x04a9, 0x314f, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot A550 (PTP mode)", 0x04a9, 0x3150, PTPBUG_DELETE_SENDS_EVENT}, + /* https://launchpad.net/bugs/64146 */ + {"Canon:PowerShot A450 (PTP mode)", 0x04a9, 0x3155, PTPBUG_DELETE_SENDS_EVENT}, + /* Harald Dunkel */ + {"Canon:PowerShot G9 (PTP mode)", 0x04a9, 0x315a, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* Barrie Stott */ + {"Canon:PowerShot A650IS (PTP mode)", 0x04a9, 0x315b, PTP_CAP|PTP_CAP_PREVIEW}, + /* Roger Lynn */ + {"Canon:PowerShot A720 IS (PTP mode)", 0x04a9, 0x315d, PTPBUG_DELETE_SENDS_EVENT}, + /* Mats Petersson */ + {"Canon:Powershot SX100 IS (PTP mode)", 0x04a9, 0x315e, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* "[AvataR]" */ + {"Canon:Digital IXUS 960 IS (PTP mode)",0x04a9, 0x315f, PTPBUG_DELETE_SENDS_EVENT}, + /* Ruben Vandamme */ + {"Canon:Digital IXUS 860 IS", 0x04a9, 0x3160, PTPBUG_DELETE_SENDS_EVENT}, + + /* Christian P. Schmidt" */ + {"Canon:Digital IXUS 970 IS", 0x04a9, 0x3173, PTPBUG_DELETE_SENDS_EVENT}, + + /* Martin Lasarsch at SUSE. MTP_PROPLIST returns just 0 entries */ + {"Canon:Digital IXUS 90 IS", 0x04a9, 0x3174, PTPBUG_DELETE_SENDS_EVENT}, + /* Daniel Moyne */ + {"Canon:Powershot SD790 IS", 0x04a9, 0x3174, PTPBUG_DELETE_SENDS_EVENT}, + + /* https://sourceforge.net/tracker/?func=detail&aid=2722422&group_id=8874&atid=358874 */ + {"Canon:Digital IXUS 85 IS", 0x04a9, 0x3174, PTPBUG_DELETE_SENDS_EVENT}, + + /* Theodore Kilgore */ + {"Canon:PowerShot SD770 IS", 0x04a9, 0x3175, PTPBUG_DELETE_SENDS_EVENT}, + + /* Olaf Hering at SUSE */ + {"Canon:PowerShot A590 IS", 0x04a9, 0x3176, PTPBUG_DELETE_SENDS_EVENT}, + + /* Dmitriy Khanzhin */ + {"Canon:PowerShot A580", 0x04a9, 0x3177, PTPBUG_DELETE_SENDS_EVENT}, + + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2602638&group_id=8874&atid=108874 */ + {"Canon:PowerShot A470", 0x04a9, 0x317a, PTPBUG_DELETE_SENDS_EVENT}, + /* Michael Plucik */ + {"Canon:EOS 1000D", 0x04a9, 0x317b, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=1910010&group_id=8874 */ + {"Canon:Digital IXUS 80 IS", 0x04a9, 0x3184, PTPBUG_DELETE_SENDS_EVENT}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2391422&group_id=8874&atid=358874 */ + {"Canon:Powershot SD1100 IS", 0x04a9, 0x3184, PTPBUG_DELETE_SENDS_EVENT}, + /* Hubert Mercier */ + {"Canon:PowerShot SX10 IS", 0x04a9, 0x318d, PTPBUG_DELETE_SENDS_EVENT}, + + /* Novell Bugzilla 852551, Dean Martin */ + {"Canon:PowerShot A1000 IS", 0x04a9, 0x318e, PTPBUG_DELETE_SENDS_EVENT}, + + /* Paul Tinsley */ + {"Canon:PowerShot G10", 0x04a9, 0x318f, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + + /* Nikolay Rysev */ + {"Canon:PowerShot A2000 IS", 0x04a9, 0x3191, PTPBUG_DELETE_SENDS_EVENT}, + /* Chris Rodley */ + {"Canon:PowerShot SX110 IS", 0x04a9, 0x3192, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + + /* Kurt Garloff at SUSE */ + {"Canon:Digital IXUS 980 IS", 0x04a9, 0x3193, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot SD990", 0x04a9, 0x3193, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:IXY 3000 IS", 0x04a9, 0x3193, PTPBUG_DELETE_SENDS_EVENT}, + + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2750875&group_id=8874&atid=358874 */ + {"Canon:PowerShot SD880 IS", 0x04a9, 0x3196, PTPBUG_DELETE_SENDS_EVENT}, + + /* IRC Reporter */ + {"Canon:EOS 5D Mark II", 0x04a9, 0x3199, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + /* Thomas Tanner */ + {"Canon:EOS 7D", 0x04a9, 0x319a, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + /* mitch */ + {"Canon:EOS 50D", 0x04a9, 0x319b, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + + /* https://bugs.launchpad.net/ubuntu/+source/libgphoto2/+bug/569419 */ + /* "T. Ludewig" */ + {"Canon:PowerShot D10", 0x04a9, 0x31bc, PTPBUG_DELETE_SENDS_EVENT}, + + /* Carsten Grohmann */ + {"Canon:Digital IXUS 110 IS", 0x04a9, 0x31bd, PTPBUG_DELETE_SENDS_EVENT}, + + /* Willy Tarreau */ + {"Canon:PowerShot A2100 IS", 0x04a9, 0x31be, PTPBUG_DELETE_SENDS_EVENT}, + + {"Canon:PowerShot A480", 0x04a9, 0x31bf, PTPBUG_DELETE_SENDS_EVENT}, + + /* IRC Reporter */ + {"Canon:PowerShot SX200 IS", 0x04a9, 0x31c0, 0}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2789326&group_id=8874&atid=358874 */ + {"Canon:Digital IXUS 990 IS", 0x04a9, 0x31c1, PTPBUG_DELETE_SENDS_EVENT}, + /* Michael Ole Olsen */ + {"Canon:PowerShot SD970 IS", 0x04a9, 0x31c1, PTPBUG_DELETE_SENDS_EVENT}, + /* https://sourceforge.net/tracker/?func=detail&aid=2769511&group_id=8874&atid=208874 */ + /* Do not confuse with PowerShot SX100IS */ + {"Canon:Digital IXUS 100 IS", 0x04a9, 0x31c2, PTPBUG_DELETE_SENDS_EVENT}, + /* https://sourceforge.net/tracker/?func=detail&aid=2769511&group_id=8874&atid=208874 */ + {"Canon:PowerShot SD780 IS", 0x04a9, 0x31c2, PTPBUG_DELETE_SENDS_EVENT}, + /* Matthew Vernon */ + {"Canon:PowerShot A1100 IS", 0x04a9, 0x31c3, PTPBUG_DELETE_SENDS_EVENT}, + /* Joshua Hoke */ + {"Canon:Powershot SD1200 IS", 0x04a9, 0x31c4, PTPBUG_DELETE_SENDS_EVENT}, + /* RalfGesellensetter */ + {"Canon:Digital IXUS 95 IS", 0x04a9, 0x31c4, PTPBUG_DELETE_SENDS_EVENT}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2796275&group_id=8874&atid=358874 */ + {"Canon:EOS 500D", 0x04a9, 0x31cf, PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:EOS Rebel T1i", 0x04a9, 0x31cf, PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:EOS Kiss X3", 0x04a9, 0x31cf, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Peter Lawrence */ + {"Canon:EOS 1D Mark IV", 0x04a9, 0x31d0, PTP_CAP|PTP_CAP_PREVIEW}, + + /* From: Franck GIRARDIN - OPTOCONCEPT */ + {"Canon:PowerShot G11", 0x04a9, 0x31df, 0}, + + /* The Wanderer */ + {"Canon:PowerShot SX120 IS", 0x04a9, 0x31e0, PTPBUG_DELETE_SENDS_EVENT}, + /* via libmtp */ + {"Canon:PowerShot SX20 IS", 0x04a9, 0x31e4, PTPBUG_DELETE_SENDS_EVENT}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=2918540&group_id=8874&atid=358874 */ + {"Canon:IXY 220 IS", 0x04a9, 0x31e6, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:Digital IXUS 120 IS", 0x04a9, 0x31e6, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:PowerShot SD940 IS", 0x04a9, 0x31e6, PTPBUG_DELETE_SENDS_EVENT}, + /* IRC reporter */ + {"Canon:EOS 550D", 0x04a9, 0x31ea, PTP_CAP|PTP_CAP_PREVIEW}, + /* Mauricio Pasquier Juan */ + {"Canon:Rebel T2i", 0x04a9, 0x31ea, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Andrés Farfán */ + {"Canon:Powershot A495", 0x04a9, 0x31ef, PTPBUG_DELETE_SENDS_EVENT}, + + /* ErVito on IRC */ + {"Canon:PowerShot A3100 IS", 0x04a9, 0x31f1, PTPBUG_DELETE_SENDS_EVENT}, + + {"Canon:PowerShot A3000 IS", 0x04a9, 0x31f2, PTPBUG_DELETE_SENDS_EVENT}, + {"Canon:Digital IXUS 130", 0x04a9, 0x31f3, PTPBUG_DELETE_SENDS_EVENT}, + /* Mark Voorhies */ + {"Canon:PowerShot SD1300 IS", 0x04a9, 0x31f4, PTPBUG_DELETE_SENDS_EVENT}, + /* Juergen Weigert */ + {"Canon:PowerShot SX210 IS", 0x04a9, 0x31f6, PTPBUG_DELETE_SENDS_EVENT}, + /* name correct? https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1296275?comments=all */ + {"Canon:Digital IXUS 300 HS", 0x04a9, 0x31f7, PTPBUG_DELETE_SENDS_EVENT}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=3153412&group_id=8874&atid=358874 */ + {"Canon:PowerShot SX130 IS", 0x04a9, 0x3211, PTPBUG_DELETE_SENDS_EVENT}, + /* novell bugzilla 871944 */ + {"Canon:PowerShot S95", 0x04a9, 0x3212, PTPBUG_DELETE_SENDS_EVENT}, + /* IRC Reporter */ + {"Canon:EOS 60D", 0x04a9, 0x3215, PTP_CAP|PTP_CAP_PREVIEW}, + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=3312353&group_id=8874 */ + {"Canon:EOS 1100D", 0x04a9, 0x3217, PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon:Rebel T3", 0x04a9, 0x3217, PTP_CAP|PTP_CAP_PREVIEW}, + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=3310995&group_id=8874 */ + {"Canon:EOS 600D", 0x04a9, 0x3218, PTP_CAP|PTP_CAP_PREVIEW}, + /* us alias from Andre Crone */ + {"Canon:Rebel T3i", 0x04a9, 0x3218, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Brian L Murphy */ + {"Canon:EOS 1D X", 0x04a9, 0x3219, PTP_CAP|PTP_CAP_PREVIEW}, + + /* "T. Ludewig" */ + {"Canon:IXUS 310IS", 0x04a9, 0x3225, PTPBUG_DELETE_SENDS_EVENT}, + + /* analemma88@gmail.com */ + {"Canon:PowerShot A800", 0x04a9, 0x3226, PTPBUG_DELETE_SENDS_EVENT}, + + /* Juha Pesonen */ + {"Canon:PowerShot SX230HS", 0x04a9, 0x3228, PTPBUG_DELETE_SENDS_EVENT}, + + /* Andrés Farfán */ + {"Canon:PowerShot A2200", 0x04a9, 0x322a, PTPBUG_DELETE_SENDS_EVENT}, + + /* http://sourceforge.net/tracker/?func=detail&atid=358874&aid=3572477&group_id=8874 */ + {"Canon:PowerShot SX220HS", 0x04a9, 0x322c, PTPBUG_DELETE_SENDS_EVENT}, + + /* "T. Ludewig" */ + {"Canon:PowerShot G1 X", 0x04a9, 0x3233, PTPBUG_DELETE_SENDS_EVENT}, + /* Dean Martin , Novell Bugzilla 852551 */ + {"Canon:PowerShot SX150 IS", 0x04a9, 0x3234, PTPBUG_DELETE_SENDS_EVENT}, + + /* IRC reporter */ + {"Canon:PowerShot S100", 0x04a9, 0x3236, PTPBUG_DELETE_SENDS_EVENT}, + /* "T. Ludewig" */ + {"Canon:PowerShot SX40HS", 0x04a9, 0x3238, PTPBUG_DELETE_SENDS_EVENT}, + /* Axel Waggershauser */ + {"Canon:EOS 5D Mark III", 0x04a9, 0x323a, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + /* "T. Ludewig" */ + {"Canon:EOS 650D", 0x04a9, 0x323b, PTP_CAP|PTP_CAP_PREVIEW}, + /* "T. Ludewig" */ + {"Canon:Rebel T4i", 0x04a9, 0x323b, PTP_CAP|PTP_CAP_PREVIEW}, + + /* "T. Ludewig" */ + {"Canon:EOS M", 0x04a9, 0x323d, 0/*PTP_CAP|PTP_CAP_PREVIEW ... might be unknown opcodes -Marcus */}, + /* via https://bugs.kde.org/show_bug.cgi?id=311393 */ + {"Canon:PowerShot A1300IS", 0x04a9, 0x323e, PTPBUG_DELETE_SENDS_EVENT}, + /* https://forums.opensuse.org/showthread.php/493692-canon-usb-camera-a810-not-detected */ + {"Canon:PowerShot A810", 0x04a9, 0x323f, PTPBUG_DELETE_SENDS_EVENT}, + + /* Giulio Fidente */ + {"Canon:IXUS 125HS", 0x04a9, 0x3241, PTPBUG_DELETE_SENDS_EVENT}, + /* "T. Ludewig" */ + {"Canon:PowerShot A4000IS", 0x04a9, 0x3243, PTPBUG_DELETE_SENDS_EVENT}, + /* Peter Ivanyi */ + {"Canon:PowerShot SX260HS", 0x04a9, 0x3244, PTPBUG_DELETE_SENDS_EVENT}, + /* "T. Ludewig" */ + {"Canon:PowerShot SX240HS", 0x04a9, 0x3245, PTPBUG_DELETE_SENDS_EVENT}, + /* "T. Ludewig" */ + {"Canon:PowerShot A2400IS", 0x04a9, 0x3249, PTPBUG_DELETE_SENDS_EVENT}, + /* Coro Fe */ + {"Canon:PowerShot A2300IS", 0x04a9, 0x324a, PTPBUG_DELETE_SENDS_EVENT}, + + /* "François G." */ + {"Canon:EOS 6D", 0x04a9, 0x3250, PTP_CAP|PTP_CAP_PREVIEW}, + /* Andre Crone */ + {"Canon:EOS 1D C", 0x04a9, 0x3252, PTP_CAP|PTP_CAP_PREVIEW}, + /* Thorsten Ludewig */ + {"Canon:EOS 70D", 0x04a9, 0x3253, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Thorsten Ludewig */ + {"Canon:PowerShot G15", 0x04a9, 0x3258, PTPBUG_DELETE_SENDS_EVENT}, + + /* Andrés Farfán */ + {"Canon:PowerShot SX160IS", 0x04a9, 0x325a, PTPBUG_DELETE_SENDS_EVENT}, + + /* "T. Ludewig" */ + {"Canon:PowerShot S110 (PTP Mode)", 0x04a9, 0x325b, PTPBUG_DELETE_SENDS_EVENT}, + /* "T. Ludewig" */ + {"Canon:PowerShot SX500IS", 0x04a9, 0x325c, PTPBUG_DELETE_SENDS_EVENT}, + + /* Andrés Farfán */ + {"Canon:PowerShot SX280HS", 0x04a9, 0x325f, PTPBUG_DELETE_SENDS_EVENT}, + + /* Marcus Meissner */ + {"Canon:PowerShot A3500IS", 0x04a9, 0x3261, PTPBUG_DELETE_SENDS_EVENT}, + + /* Canon Powershot A2600 */ + {"Canon:PowerShot A2600", 0x04a9, 0x3262, PTPBUG_DELETE_SENDS_EVENT}, + + /* Andrés Farfán */ + {"Canon:PowerShot A1400", 0x04a9, 0x3264, PTPBUG_DELETE_SENDS_EVENT}, + /* https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1296275?comments=all */ + {"Canon:Digital IXUS 255HS", 0x04a9, 0x3268, PTPBUG_DELETE_SENDS_EVENT}, + + /* t.ludewig@gmail.com */ + {"Canon:EOS 7D MarkII", 0x04a9, 0x326f, PTP_CAP|PTP_CAP_PREVIEW}, + + /* "T. Ludewig" */ + {"Canon:EOS 100D", 0x04a9, 0x3270, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Ronny Kalusniok */ + {"Canon:PowerShot A2500", 0x04a9, 0x3271, PTPBUG_DELETE_SENDS_EVENT}, + + /* "T. Ludewig" */ + {"Canon:EOS 700D", 0x04a9, 0x3272, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Alexey Kryukov */ + {"Canon:EOS M2", 0x04a9, 0x3273, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Harald Krause */ + {"Canon:PowerShot G16", 0x04a9, 0x3274, 0}, + + /* From: Gerwin Voorsluijs */ + {"Canon:PowerShot S120", 0x04a9, 0x3275, PTPBUG_DELETE_SENDS_EVENT}, + + /* Andrés Farfán */ + {"Canon:PowerShot SX170 IS", 0x04a9, 0x3276, PTPBUG_DELETE_SENDS_EVENT}, + + /* Andrés Farfán */ + {"Canon:PowerShot SX510 HS", 0x04a9, 0x3277, PTPBUG_DELETE_SENDS_EVENT}, + + /* thinkgareth */ + {"Canon:EOS 1200D", 0x04a9, 0x327f, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Iain Paton */ + {"Canon:EOS 760D", 0x04a9, 0x3280, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/92 */ + {"Canon:EOS 5D Mark IV", 0x04a9, 0x3281, PTP_CAP|PTP_CAP_PREVIEW|PTP_DONT_CLOSE_SESSION}, + + /* Marcus parents */ + {"Canon:PowerShot SX600 HS", 0x04a9, 0x3286, PTPBUG_DELETE_SENDS_EVENT}, + + /* https://sourceforge.net/p/gphoto/feature-requests/445/ */ + {"Canon:PowerShot Elph135", 0x04a9, 0x3288, PTPBUG_DELETE_SENDS_EVENT}, + + /* Reed Johnson */ + {"Canon:PowerShot Elph340HS", 0x04a9, 0x3289, PTPBUG_DELETE_SENDS_EVENT}, + + /* Jesper Pedersen */ + {"Canon:EOS M3", 0x04a9, 0x3299, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW}, + /* Shaul Badusa */ + {"Canon:PowerShot SX60HS", 0x04a9, 0x329a, PTPBUG_DELETE_SENDS_EVENT}, + /* pravsripad@gmail.com */ + {"Canon:PowerShot SX520 HS", 0x04a9, 0x329b, PTPBUG_DELETE_SENDS_EVENT}, + + /* sparkycoladev@gmail.com */ + {"Canon:PowerShot G7 X", 0x04a9, 0x329d, PTP_CAP|PTP_CAP_PREVIEW|PTP_DONT_CLOSE_SESSION}, + + /* Sascha Wolff */ + {"Canon:PowerShot SX530 HS", 0x04a9, 0x329f, PTP_CAP|PTP_CAP_PREVIEW|PTP_DONT_CLOSE_SESSION}, + + /* Marcus Meissner */ + {"Canon:EOS M10", 0x04a9, 0x32a0, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Johannes Goecke */ + {"Canon:EOS 750D", 0x04a9, 0x32a1, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Tomas.Linden@helsinki.fi */ + {"Canon:PowerShot G3 X", 0x04a9, 0x32a8, PTP_CAP|PTP_CAP_PREVIEW}, + /* Kiss Tamas */ + {"Canon:IXUS 165", 0x04a9, 0x32a9, PTPBUG_DELETE_SENDS_EVENT}, + + /* Gong */ + {"Canon:IXUS 160", 0x04a9, 0x32aa, PTPBUG_DELETE_SENDS_EVENT}, + + /* Gerald Leung */ + {"Canon:PowerShot ELPH 350 HS", 0x04a9, 0x32ab, PTPBUG_DELETE_SENDS_EVENT}, + + /* Andre Crone */ + {"Canon:EOS 1300D", 0x04a9, 0x32b4, PTP_CAP|PTP_CAP_PREVIEW}, + /* Rebel T6 is the same camera. Jasem Mutlaq */ + {"Canon:EOS Rebel T6", 0x04a9, 0x32b4, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Jim Howard */ + {"Canon:EOS M5", 0x04a9, 0x32bb, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Hubert F */ + {"Canon:PowerShot G7 X Mark II", 0x04a9, 0x32bc, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/325 */ + {"Canon:PowerShot SX540 HS", 0x04a9, 0x32be, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/84 */ + {"Canon:Digital IXUS 180", 0x04a9, 0x32c0, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/316 */ + {"Canon:SX 720HS", 0x04a9, 0x32c2, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Sagufta Kapadia */ + {"Canon:SX 620HS", 0x04a9, 0x32c3, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/235 */ + {"Canon:EOS M6", 0x04a9, 0x32c5, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/379 */ + {"Canon:PowerShot G9 X Mark II", 0x04a9, 0x32c7, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Viktors Berstis */ + {"Canon:EOS Rebel T7i", 0x04a9, 0x32c9, PTP_CAP|PTP_CAP_PREVIEW}, + /* https://github.com/gphoto/libgphoto2/issues/338 */ + {"Canon:EOS 800D", 0x04a9, 0x32c9, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Thomas Schaaf */ + {"Canon:EOS 6d Mark II", 0x04a9, 0x32ca, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Daniel Muller, jednatel SourcePaint s.r.o. */ + {"Canon:EOS 77D", 0x04a9, 0x32cb, PTP_CAP|PTP_CAP_PREVIEW}, + + /* "Lacy Rhoades" */ + {"Canon:EOS 200D", 0x04a9, 0x32cc, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Geza Lore */ + {"Canon:EOS M100", 0x04a9, 0x32d1, PTP_CAP|PTP_CAP_PREVIEW}, + + /* https://github.com/gphoto/libgphoto2/issues/58 */ + {"Canon:EOS M50", 0x04a9, 0x32d2, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Marcus Meissner */ + {"Canon:Digital IXUS 185", 0x04a9, 0x32d4, 0}, + + /* Jasem Mutlaq */ + {"Canon:EOS 4000D", 0x04a9, 0x32d9, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + + /* Elijah Parker */ + {"Canon:EOS R", 0x04a9, 0x32da, PTP_CAP|PTP_CAP_PREVIEW|PTP_DONT_CLOSE_SESSION}, + + /* Christian Muehlhaeuser */ + {"Canon:EOS 2000D", 0x04a9, 0x32e1, PTP_CAP|PTP_CAP_PREVIEW|PTPBUG_DELETE_SENDS_EVENT}, + + /* https://github.com/gphoto/gphoto2/issues/247, from logfile */ + {"Canon:EOS 1500D", 0x04a9, 0x32e1, PTP_CAP|PTP_CAP_PREVIEW|PTP_DONT_CLOSE_SESSION}, + + /* from timelapse-VIEW */ + {"Canon:EOS R2", 0x04a9, 0x32e2, PTP_CAP|PTP_CAP_PREVIEW|PTP_DONT_CLOSE_SESSION}, + + /* https://github.com/gphoto/libgphoto2/issues/316 */ + {"Canon:PowerShot SX740 HS", 0x04a9, 0x32e4, PTP_CAP|PTP_CAP_PREVIEW}, + + /*Marc Wetli */ + {"Canon:EOS M6 Mark II", 0x04a9, 0x32e7, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Roland Förg */ + {"Canon:EOS 250D", 0x04a9, 0x32e9, PTP_CAP|PTP_CAP_PREVIEW}, + + /* Konica-Minolta PTP cameras */ + {"Konica-Minolta:DiMAGE A2 (PTP mode)", 0x132b, 0x0001, 0}, + {"Konica-Minolta:DiMAGE Z2 (PictBridge mode)", 0x132b, 0x0007, 0}, + {"Konica-Minolta:DiMAGE X21 (PictBridge mode)",0x132b, 0x0009, 0}, + {"Konica-Minolta:DiMAGE Z3 (PictBridge mode)", 0x132b, 0x0018, 0}, + {"Konica-Minolta:DiMAGE A200 (PictBridge mode)",0x132b, 0x0019, 0}, + {"Konica-Minolta:DiMAGE Z5 (PictBridge mode)", 0x132b, 0x0022, 0}, + + /* Fuji PTP cameras */ + {"Fuji:FinePix S7000", 0x04cb, 0x0142, 0}, + {"Fuji:FinePix A330", 0x04cb, 0x014a, 0}, + /* Hans-Joachim Baader */ + {"Fuji:FinePix S9500", 0x04cb, 0x018f, 0}, + {"Fuji:FinePix E900", 0x04cb, 0x0193, 0}, + {"Fuji:FinePix F30", 0x04cb, 0x019b, 0}, + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=1620750&group_id=8874 */ + {"Fuji:FinePix S6500fd", 0x04cb, 0x01bf, 0}, + /* https://launchpad.net/bugs/89743 */ + {"Fuji:FinePix F20", 0x04cb, 0x01c0, 0}, + /* launchpad 67532 */ + {"Fuji:FinePix F31fd", 0x04cb, 0x01c1, 0}, + /* http://sourceforge.net/tracker/?func=detail&atid=358874&aid=2881948&group_id=8874 */ + {"Fuji:S5 Pro", 0x04cb, 0x01c3, PTP_CAP}, + {"Fuji:FinePix S5700", 0x04cb, 0x01c4, 0}, + {"Fuji:FinePix F40fd", 0x04cb, 0x01c5, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1800289&group_id=8874&atid=358874 */ + {"Fuji:FinePix A820", 0x04cb, 0x01c6, 0}, + /* Louis Byrne */ + {"Fuji:FinePix A610", 0x04cb, 0x01d0, 0}, + /* g4@catking.net */ + {"Fuji:FinePix A800", 0x04cb, 0x01d2, 0}, + /* Gerhard Schmidt */ + {"Fuji:FinePix A920", 0x04cb, 0x01d3, 0}, + /* Teppo Jalava */ + {"Fuji:FinePix F50fd", 0x04cb, 0x01d4, 0}, + /* IRC reporter */ + {"Fuji:FinePix S5800", 0x04cb, 0x01d7, 0}, + /* https://sourceforge.net/tracker/?func=detail&atid=108874&aid=1945259&group_id=8874 */ + {"Fuji:FinePix Z100fd", 0x04cb, 0x01d8, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=2017171&group_id=8874&atid=358874 */ + {"Fuji:FinePix S100fs", 0x04cb, 0x01db, 0}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2772199&group_id=8874&atid=358874 */ + {"Fuji:FinePix S1000fd", 0x04cb, 0x01dd, 0}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2203316&group_id=8874&atid=358874 */ + {"Fuji:FinePix F100fd", 0x04cb, 0x01e0, 0}, + /*https://sourceforge.net/tracker/index.php?func=detail&aid=2820380&group_id=8874&atid=358874 */ + {"Fuji:FinePix F200 EXR", 0x04cb, 0x01e4, 0}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=2993118&group_id=8874&atid=358874 */ + {"Fuji:FinePix F60fd", 0x04cb, 0x01e6, 0}, + /* Gerhard Schmidt */ + {"Fuji:FinePix S2000HD", 0x04cb, 0x01e8, 0}, + {"Fuji:FinePix S1500", 0x04cb, 0x01ef, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=3018889&group_id=8874&atid=358874 */ + {"Fuji:FinePix F70 EXR", 0x04cb, 0x01fa, 0}, + /* http://sourceforge.net/tracker/index.php?func=detail&aid=3111790&group_id=8874&atid=358874 */ + {"Fuji:Fujifilm A220", 0x04cb, 0x01fe, 0}, + /* NoOp */ + {"Fuji:FinePix S1800", 0x04cb, 0x0200, 0}, + /* Luke Symes */ + {"Fuji:FinePix Z35", 0x04cb, 0x0201, 0}, + /* "Steven A. McIntosh" */ + {"Fuji:FinePix S2500HD", 0x04cb, 0x0209, 0}, + /* Erik Hahn */ + {"Fuji:FinePix F80EXR", 0x04cb, 0x020e, 0}, + /* salsaman */ + {"Fuji:FinePix Z700EXR", 0x04cb, 0x020d, 0}, + /* https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1311953 */ + {"Fuji:FinePix AV-150", 0x04cb, 0x021b, 0}, + /* Gregor Voss */ + {"Fuji:FinePix H20EXR", 0x04cb, 0x022d, 0}, + /* https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1296275?comments=all */ + {"Fuji:FinePix T200", 0x04cb, 0x0233, 0}, + /* https://sourceforge.net/tracker/index.php?func=detail&aid=3556692&group_id=8874&atid=108874 */ + {"Fuji:FinePix S2950", 0x04cb, 0x0240, 0}, + /* https://sourceforge.net/p/gphoto/bugs/974/ */ + {"Fuji:FinePix JX370", 0x04cb, 0x0250, 0}, + /* Luis Arias */ + {"Fuji:FinePix X10", 0x04cb, 0x0263, 0}, + /* t.ludewig@gmail.com */ + {"Fuji:FinePix S4300", 0x04cb, 0x0265, 0}, + /* t.ludewig@gmail.com */ + {"Fuji:FinePix X-S1", 0x04cb, 0x026e, 0}, + /* t.ludewig@gmail.com */ + {"Fuji:FinePix HS30EXR", 0x04cb, 0x0271, 0}, + /* Marcel Bonnet */ + {"Fuji:FinePix S2980", 0x04cb, 0x027d, 0}, + /* t.ludewig@gmail.com */ + {"Fuji:FinePix XF1", 0x04cb, 0x0288, 0}, + /* Steve Dahl */ + {"Fuji:FinePix S4850", 0x04cb, 0x0298, 0}, + /* Larry D. DeMaris" */ + {"Fuji:FinePix SL1000", 0x04cb, 0x029c, 0}, + /* t.ludewig@gmail.com */ + {"Fuji:FinePix X20", 0x04cb, 0x02a6, 0}, + /* https://sourceforge.net/p/libmtp/bugs/1040/ */ + {"Fuji:Fujifilm X-E2", 0x04cb, 0x02b5, 0}, + /* https://github.com/gphoto/libgphoto2/issues/283 */ + {"Fuji:Fujifilm X-M1", 0x04cb, 0x02b6, 0}, + /* https://github.com/gphoto/libgphoto2/issues/281 */ + {"Fuji:Fujifilm X70", 0x04cb, 0x02ba, 0}, + /* Vladimir K , https://github.com/gphoto/libgphoto2/issues/283 */ + {"Fuji:Fujifilm X-T1", 0x04cb, 0x02bf, PTP_CAP|PTP_CAP_PREVIEW}, + /* https://github.com/gphoto/libgphoto2/issues/281 */ + {"Fuji:Fujifilm X30", 0x04cb, 0x02c1, 0}, + /* https://sourceforge.net/p/gphoto/feature-requests/464/ */ + {"Fuji:Fujifilm X-A2", 0x04cb, 0x02c6, 0}, + /* https://github.com/gphoto/libgphoto2/issues/32 */ + {"Fuji:Fujifilm X-T10", 0x04cb, 0x02c8, 0}, + /* with new updated firmware 4.0, https://github.com/gphoto/libgphoto2/issues/220 */ + {"Fuji:Fujifilm X-Pro2", 0x04cb, 0x02cb, PTP_CAP|PTP_CAP_PREVIEW}, + /* with new updated firmware 1.1 */ + {"Fuji:Fujifilm X-T2", 0x04cb, 0x02cd, PTP_CAP|PTP_CAP_PREVIEW}, + /* https://github.com/gphoto/libgphoto2/issues/283 */ + {"Fuji:Fujifilm X100F", 0x04cb, 0x02d1, 0}, + /* https://github.com/gphoto/libgphoto2/issues/133 */ + {"Fuji:GFX 50 S", 0x04cb, 0x02d3, PTP_CAP}, + /* https://github.com/gphoto/libgphoto2/issues/170 */ + {"Fuji:Fujifilm X-T20", 0x04cb, 0x02d4, 0}, + /* Рустем Валиев */ + {"Fuji:Fujifilm X-A5", 0x04cb, 0x02d5, 0}, + /* Daniel Queen */ + /* USB Raw Converter/Backup Restore mode, firmware version 1.20 or newer */ + {"Fuji:Fujifilm X-E3", 0x04cb, 0x02d6, PTP_CAP|PTP_CAP_PREVIEW}, + /* https://github.com/gphoto/libgphoto2/issues/283 */ + {"Fuji:Fujifilm X-H1", 0x04cb, 0x02d7, PTP_CAP|PTP_CAP_PREVIEW}, + /* Seth Cohen */ + {"Fuji:GFX 50 R", 0x04cb, 0x02dc, PTP_CAP|PTP_CAP_PREVIEW}, + /* Stefan Weiberg at SUSE */ + {"Fuji:Fujifilm X-T3", 0x04cb, 0x02dd, PTP_CAP|PTP_CAP_PREVIEW}, + /* https://github.com/gphoto/gphoto2/issues/256 */ + {"Fuji:Fujifilm GFX100", 0x04cb, 0x02de, PTP_CAP|PTP_CAP_PREVIEW}, + /* Bruno Filho at SUSE (currently not working with cpature, but shows variables) */ + {"Fuji:Fujifilm X-T30", 0x04cb, 0x02e3, 0 /*PTP_CAP|PTP_CAP_PREVIEW*/}, + + {"Ricoh:Caplio R5 (PTP mode)", 0x05ca, 0x0110, 0}, + {"Ricoh:Caplio GX (PTP mode)", 0x05ca, 0x0325, 0}, + {"Sea & Sea:5000G (PTP mode)", 0x05ca, 0x0327, 0}, + /* Michael Steinhauser */ + {"Ricoh Caplio:R1v (PTP mode)", 0x05ca, 0x032b, 0}, + {"Ricoh:Caplio R3 (PTP mode)", 0x05ca, 0x032f, 0}, + /* Arthur Butler */ + {"Ricoh:Caplio RR750 (PTP mode)", 0x05ca, 0x033d, 0}, + /* Gerald Pfeifer at SUSE */ + {"Sea & Sea:2G (PTP mode)", 0x05ca, 0x0353, 0}, + + /* Marcus Meissner */ + {"Ricoh:Theta m15 (PTP mode)", 0x05ca, 0x0365, 0}, + + /* "Lacy Rhoades" */ + {"Ricoh:Theta S (PTP mode)", 0x05ca, 0x0366, 0}, + {"Ricoh:Theta SC (PTP mode)", 0x05ca, 0x0367, 0}, + + /* Rollei dr5 */ + {"Rollei:dr5 (PTP mode)", 0x05ca, 0x220f, 0}, + + /* Ricoh Caplio GX 8 */ + {"Ricoh:Caplio GX 8 (PTP mode)", 0x05ca, 0x032d, 0}, + + /* Arda Kaan */ + {"Ricoh:WG-M2 (PTP mode)", 0x25fb, 0x210b, 0}, + + /* Pentax cameras */ + {"Pentax:Optio 43WR", 0x0a17, 0x000d, 0}, + /* Stephan Barth at SUSE */ + {"Pentax:Optio W90", 0x0a17, 0x00f7, 0}, + + /* gphoto:feature-requests 452. yes, weird vendor. */ + {"Pentax:K3 (PTP Mode)", 0x25fb, 0x0165, 0}, + /* Keld Henningsen . Does not support MTP. */ + {"Apple:iPhone (PTP mode)", 0x05ac, 0x1290, 0}, + /* IRC reporter adjusted info */ + {"Apple:iPod Touch (PTP mode)", 0x05ac, 0x1291, 0}, + /* irc reporter. MTP based. */ + {"Apple:iPhone 3G (PTP mode)", 0x05ac, 0x1292, 0}, + /* Marco Michna at SUSE */ + {"Apple:iPod Touch 2G (PTP mode)", 0x05ac, 0x1293, 0}, + /* Mark Lehrer */ + {"Apple:iPhone 3GS (PTP mode)", 0x05ac, 0x1294, 0}, + + /* Rasmus P */ + {"Apple:iPhone 4 (PTP mode)", 0x05ac, 0x1297, 0}, + + {"Apple:iPod Touch 3rd Gen (PTP mode)", 0x05ac, 0x1299, 0}, + {"Apple:iPad (PTP mode)", 0x05ac, 0x129a, 0}, + + /* Don Cohen */ + {"Apple:iPhone 4S (PTP mode)", 0x05ac, 0x12a0, 0}, + + /* grinchdee@gmail.com */ + {"Apple:iPhone 5 (PTP mode)", 0x05ac, 0x12a8, 0}, + + /* chase.thunderstrike@gmail.com */ + {"Apple:iPad Air", 0x05ac, 0x12ab, 0}, + + /* https://sourceforge.net/tracker/index.php?func=detail&aid=1869653&group_id=158745&atid=809061 */ + {"Pioneer:DVR-LX60D", 0x08e4, 0x0142, 0}, + + /* https://sourceforge.net/tracker/index.php?func=detail&aid=1680029&group_id=8874&atid=108874 */ + {"Nokia:N73", 0x0421, 0x0488, 0}, + + /* gbakos@astro.princeton.edu */ + {"Samsung:NX1", 0x04e8, 0x140c, 0}, + /* IRC reporter */ + {"Samsung:S5620", 0x04e8, 0x684a, 0}, + + /* Israel Barrientos */ + {"Samsung:NX1000", 0x04e8, 0x1384, 0}, + + /* This is a camera ... reported by TAN JIAN QI */ + {"Leica:M9", 0x1a98, 0x0002, PTP_CAP}, + + /* https://github.com/gphoto/libgphoto2/issues/105 */ + {"Parrot:Sequoia", 0x19cf, 0x5039, PTP_CAP}, + + {"GoPro:HERO" , 0x2672, 0x000c, 0}, + {"GoPro:HERO4 Silver" , 0x2672, 0x000d, 0 }, + + /* https://sourceforge.net/p/gphoto/support-requests/130/ */ + {"GoPro:HERO 4", 0x2672, 0x000e, 0}, + /* Tomas Zigo */ + {"GoPro:HERO 3+", 0x2672, 0x0011, 0}, + /* https://sourceforge.net/u/drzap/libmtp/ci/39841e9a15ed250a0121ae4a139b2a950a07f08c/ */ + {"GoPro:HERO +", 0x2672, 0x0021, 0}, + /* from libmtp */ + {"GoPro:HERO5 Black", 0x2672, 0x0027, 0}, + {"GoPro:HERO5 Session", 0x2672, 0x0029, 0}, + + /* https://sourceforge.net/p/libmtp/feature-requests/239/ */ + {"GoPro:HERO6 Black", 0x2672, 0x0037, 0}, + /* Rasmus Larsson */ + {"GoPro:HERO7 White", 0x2672, 0x0042, 0}, + /* https://sourceforge.net/p/libmtp/feature-requests/284/ */ + {"GoPro:HERO7 Black", 0x2672, 0x0047, 0}, + /* https://sourceforge.net/p/libmtp/bugs/1858/ */ + {"GoPro:HERO8 Black", 0x2672, 0x0049, 0}, +#endif +}; + +static struct { + const char *model; + unsigned long device_flags; +} ptpip_models[] = { + {"PTP/IP Camera" , PTP_CAP|PTP_CAP_PREVIEW}, + {"Ricoh Theta (WLAN)" , PTP_CAP}, + {"Nikon DSLR (WLAN)" , PTP_CAP|PTP_CAP_PREVIEW}, + {"Nikon 1 (WLAN)" , PTP_CAP|PTP_CAP_PREVIEW}, + {"Canon EOS (WLAN)" , PTP_CAP|PTP_CAP_PREVIEW}, +}; + +#include "device-flags.h" +static struct { + const char *vendor; + unsigned short usb_vendor; + const char *model; + unsigned short usb_product; + unsigned long flags; +} mtp_models[] = { +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION +#include "music-players.h" +#endif +}; + +static struct { + uint16_t format_code; + uint16_t vendor_code; + const char *txt; +} object_formats[] = { + {PTP_OFC_Undefined, 0, "application/x-unknown"}, + {PTP_OFC_Association, 0, "application/x-association"}, + {PTP_OFC_Script, 0, "application/x-script"}, + {PTP_OFC_Executable, 0, "application/octet-stream"}, + {PTP_OFC_Text, 0, GP_MIME_TXT}, + {PTP_OFC_HTML, 0, "text/html"}, + {PTP_OFC_DPOF, 0, "text/plain"}, + {PTP_OFC_AIFF, 0, "audio/x-aiff"}, + {PTP_OFC_WAV, 0, GP_MIME_WAV}, + {PTP_OFC_MP3, 0, "audio/mpeg"}, + {PTP_OFC_AVI, 0, GP_MIME_AVI}, + {PTP_OFC_MPEG, 0, "video/mpeg"}, + {PTP_OFC_ASF, 0, "video/x-ms-asf"}, + {PTP_OFC_QT, 0, "video/quicktime"}, + {PTP_OFC_EXIF_JPEG, 0, GP_MIME_JPEG}, + {PTP_OFC_TIFF_EP, 0, "image/x-tiffep"}, + {PTP_OFC_FlashPix, 0, "image/x-flashpix"}, + {PTP_OFC_BMP, 0, GP_MIME_BMP}, + {PTP_OFC_CIFF, 0, "image/x-ciff"}, + {PTP_OFC_Undefined_0x3806, 0, "application/x-unknown"}, + {PTP_OFC_GIF, 0, "image/gif"}, + {PTP_OFC_JFIF, 0, GP_MIME_JPEG}, + {PTP_OFC_PCD, 0, "image/x-pcd"}, + {PTP_OFC_PICT, 0, "image/x-pict"}, + {PTP_OFC_PNG, 0, GP_MIME_PNG}, + {PTP_OFC_Undefined_0x380C, 0, "application/x-unknown"}, + {PTP_OFC_TIFF, 0, GP_MIME_TIFF}, + {PTP_OFC_TIFF_IT, 0, "image/x-tiffit"}, + {PTP_OFC_JP2, 0, "image/x-jpeg2000bff"}, + {PTP_OFC_JPX, 0, "image/x-jpeg2000eff"}, + {PTP_OFC_DNG, 0, "image/x-adobe-dng"}, + {PTP_OFC_MTP_MP4, 0, "video/mp4"}, + + {PTP_OFC_MTP_OGG, PTP_VENDOR_MICROSOFT, "application/ogg"}, + {PTP_OFC_MTP_FLAC, PTP_VENDOR_MICROSOFT, "audio/x-flac"}, + {PTP_OFC_MTP_MP2, PTP_VENDOR_MICROSOFT, "video/mpeg"}, + {PTP_OFC_MTP_M4A, PTP_VENDOR_MICROSOFT, "audio/x-m4a"}, + {PTP_OFC_MTP_3GP, PTP_VENDOR_MICROSOFT, "audio/3gpp"}, + {PTP_OFC_MTP_WMV, PTP_VENDOR_MICROSOFT, "video/x-wmv"}, + {PTP_OFC_MTP_WMA, PTP_VENDOR_MICROSOFT, "audio/x-wma"}, + {PTP_OFC_MTP_WMV, PTP_VENDOR_MICROSOFT, "video/x-ms-wmv"}, + {PTP_OFC_MTP_WMA, PTP_VENDOR_MICROSOFT, "audio/x-ms-wma"}, + {PTP_OFC_MTP_AAC, PTP_VENDOR_MICROSOFT, "audio/MP4A-LATM"}, + {PTP_OFC_MTP_XMLDocument, PTP_VENDOR_MICROSOFT, "text/xml"}, + {PTP_OFC_MTP_MSWordDocument, PTP_VENDOR_MICROSOFT, "application/msword"}, + {PTP_OFC_MTP_MSExcelSpreadsheetXLS, PTP_VENDOR_MICROSOFT, "vnd.ms-excel"}, + {PTP_OFC_MTP_MSPowerpointPresentationPPT, PTP_VENDOR_MICROSOFT, "vnd.ms-powerpoint"}, + {PTP_OFC_MTP_vCard2, PTP_VENDOR_MICROSOFT, "text/directory"}, + {PTP_OFC_MTP_vCard3, PTP_VENDOR_MICROSOFT, "text/directory"}, + {PTP_OFC_MTP_vCalendar1, PTP_VENDOR_MICROSOFT, "text/calendar"}, + {PTP_OFC_MTP_vCalendar2, PTP_VENDOR_MICROSOFT, "text/calendar"}, + {PTP_OFC_CANON_CRW, PTP_VENDOR_CANON, "image/x-canon-cr2"}, + {PTP_OFC_CANON_CRW3, PTP_VENDOR_CANON, "image/x-canon-cr2"}, + {PTP_OFC_CANON_CR3, PTP_VENDOR_CANON, "image/x-canon-cr3"}, + {PTP_OFC_CANON_MOV, PTP_VENDOR_CANON, "video/quicktime"}, + {PTP_OFC_CANON_CHDK_CRW, PTP_VENDOR_CANON, "image/x-canon-cr2"}, + {PTP_OFC_SONY_RAW, PTP_VENDOR_SONY, "image/x-sony-arw"}, + {0, 0, NULL} +}; + +static int +set_mimetype (CameraFile *file, uint16_t vendorcode, uint16_t ofc) +{ + int i; + + for (i = 0; object_formats[i].format_code; i++) { + if (object_formats[i].vendor_code && /* 0 means generic */ + (object_formats[i].vendor_code != vendorcode)) + continue; + if (object_formats[i].format_code != ofc) + continue; + return gp_file_set_mime_type (file, object_formats[i].txt); + } + GP_LOG_D ("Failed to find mime type for %04x", ofc); + return gp_file_set_mime_type (file, "application/x-unknown"); +} + +static void +strcpy_mime(char * dest, uint16_t vendor_code, uint16_t ofc) { + int i; + + for (i = 0; object_formats[i].format_code; i++) { + if (object_formats[i].vendor_code && /* 0 means generic */ + (object_formats[i].vendor_code != vendor_code)) + continue; + if (object_formats[i].format_code == ofc) { + strcpy(dest, object_formats[i].txt); + return; + } + } + GP_LOG_D ("Failed to find mime type for %04x", ofc); + strcpy(dest, "application/x-unknown"); +} + +static uint32_t +get_mimetype (Camera *camera, CameraFile *file, uint16_t vendor_code) +{ + int i; + const char *mimetype; + + gp_file_get_mime_type (file, &mimetype); + for (i = 0; object_formats[i].format_code; i++) { + if (object_formats[i].vendor_code && /* 0 means generic */ + (object_formats[i].vendor_code != vendor_code)) + continue; + if (!strcmp(mimetype,object_formats[i].txt)) + return (object_formats[i].format_code); + } + GP_LOG_D ("Failed to find mime type for %s", mimetype); + return (PTP_OFC_Undefined); +} + +static void +#ifdef __GNUC__ +__attribute__((__format__(printf,2,0))) +#endif +ptp_debug_func (void *data, const char *format, va_list args) +{ + gp_logv (GP_LOG_DEBUG, "ptp", format, args); +} + +static void +#ifdef __GNUC__ +__attribute__((__format__(printf,2,0))) +#endif +ptp_error_func (void *data, const char *format, va_list args) +{ + PTPData *ptp_data = data; + char buf[2048]; + + vsnprintf (buf, sizeof (buf), format, args); + gp_context_error (ptp_data->context, "%s", buf); +} + +static int +is_mtp_capable(Camera *camera) { + PTPParams *params = &camera->pl->params; + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_MICROSOFT) + return 1; + /* + if (camera->pl->bugs & PTP_MTP) + return 1; + */ + return 0; +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + unsigned int i; + CameraAbilities a; + + for (i = 0; i < sizeof(models)/sizeof(models[0]); i++) { + memset(&a, 0, sizeof(a)); + strcpy (a.model, models[i].model); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].usb_vendor; + a.usb_product = models[i].usb_product; + a.device_type = GP_DEVICE_STILL_CAMERA; + a.operations = GP_OPERATION_NONE; + + /* for now */ + if (models[i].device_flags & PTP_OLYMPUS_XML) + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + + if (models[i].device_flags & PTP_CAP) { + a.operations |= GP_OPERATION_CAPTURE_IMAGE | GP_OPERATION_CONFIG; + + /* Only Nikon *D* and *Z* cameras for now -Marcus */ + if ( (models[i].usb_vendor == 0x4b0) && + (strchr(models[i].model,'D') || strchr(models[i].model,'Z')) + ) + a.operations |= GP_OPERATION_TRIGGER_CAPTURE; + /* Also enable trigger capture for EOS capture */ + if ( (models[i].usb_vendor == 0x4a9) && + (strstr(models[i].model,"EOS") || strstr(models[i].model,"Rebel")) + ) + a.operations |= GP_OPERATION_TRIGGER_CAPTURE; + /* Sony Alpha are also trigger capture capable */ + if ( models[i].usb_vendor == 0x54c) + a.operations |= GP_OPERATION_TRIGGER_CAPTURE; + + /* Olympus test trigger capture capable */ + if ( models[i].usb_vendor == 0x7b4) + a.operations |= GP_OPERATION_TRIGGER_CAPTURE; +#if 0 + /* SX 100 IS ... works in sdram, not in card mode */ + if ( (models[i].usb_vendor == 0x4a9) && + (models[i].usb_product == 0x315e) + ) + a.operations |= GP_OPERATION_TRIGGER_CAPTURE; +#endif + } + if (models[i].device_flags & PTP_CAP_PREVIEW) + a.operations |= GP_OPERATION_CAPTURE_PREVIEW; + a.file_operations = GP_FILE_OPERATION_PREVIEW | + GP_FILE_OPERATION_DELETE; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE | + GP_FOLDER_OPERATION_MAKE_DIR | + GP_FOLDER_OPERATION_REMOVE_DIR; + CR (gp_abilities_list_append (list, a)); + } + for (i = 0; i < sizeof(mtp_models)/sizeof(mtp_models[0]); i++) { + memset(&a, 0, sizeof(a)); + sprintf (a.model, "%s:%s", mtp_models[i].vendor, mtp_models[i].model); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = mtp_models[i].usb_vendor; + a.usb_product = mtp_models[i].usb_product; + a.operations = GP_OPERATION_NONE; + a.device_type = GP_DEVICE_AUDIO_PLAYER; + a.file_operations = GP_FILE_OPERATION_DELETE; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE | + GP_FOLDER_OPERATION_MAKE_DIR | + GP_FOLDER_OPERATION_REMOVE_DIR; + CR (gp_abilities_list_append (list, a)); + } + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "USB PTP Class Camera"); + a.status = GP_DRIVER_STATUS_TESTING; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_class = 6; + a.usb_subclass = 1; + a.usb_protocol = 1; + a.operations = GP_OPERATION_CAPTURE_IMAGE | /*GP_OPERATION_TRIGGER_CAPTURE |*/ + GP_OPERATION_CAPTURE_PREVIEW | + GP_OPERATION_CONFIG; + a.file_operations = GP_FILE_OPERATION_PREVIEW| + GP_FILE_OPERATION_DELETE; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE + | GP_FOLDER_OPERATION_MAKE_DIR | + GP_FOLDER_OPERATION_REMOVE_DIR; + a.device_type = GP_DEVICE_STILL_CAMERA; + CR (gp_abilities_list_append (list, a)); + memset(&a, 0, sizeof(a)); + strcpy(a.model, "MTP Device"); + a.status = GP_DRIVER_STATUS_TESTING; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_class = 666; + a.usb_subclass = -1; + a.usb_protocol = -1; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE + | GP_FOLDER_OPERATION_MAKE_DIR | + GP_FOLDER_OPERATION_REMOVE_DIR; + a.device_type = GP_DEVICE_AUDIO_PLAYER; + CR (gp_abilities_list_append (list, a)); + + for (i = 0; i < sizeof(ptpip_models)/sizeof(ptpip_models[0]); i++) { + memset(&a, 0, sizeof(a)); + strcpy(a.model, ptpip_models[i].model); + a.status = GP_DRIVER_STATUS_TESTING; + a.port = GP_PORT_PTPIP; + a.operations = GP_OPERATION_CONFIG; + if (ptpip_models[i].device_flags & PTP_CAP) + a.operations |= GP_OPERATION_CAPTURE_IMAGE; + if (ptpip_models[i].device_flags & PTP_CAP_PREVIEW) + a.operations |= GP_OPERATION_CAPTURE_PREVIEW; + a.file_operations = GP_FILE_OPERATION_PREVIEW | + GP_FILE_OPERATION_DELETE; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE | + GP_FOLDER_OPERATION_MAKE_DIR | + GP_FOLDER_OPERATION_REMOVE_DIR; + a.device_type = GP_DEVICE_STILL_CAMERA; + CR (gp_abilities_list_append (list, a)); + } + + return (GP_OK); +} + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "PTP"); + + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + if (camera->pl!=NULL) { + PTPParams *params = &camera->pl->params; + PTPContainer event; + SET_CONTEXT_P(params, context); + + switch (params->deviceinfo.VendorExtensionID) { + case PTP_VENDOR_CANON: + /* Disable EOS capture now, also end viewfinder mode. */ + if (params->eos_captureenabled) { + if (camera->pl->checkevents) { + PTPCanon_changes_entry entry; + + ptp_check_eos_events (params); + while (ptp_get_one_eos_event (params, &entry)) { + GP_LOG_D ("missed EOS ptp type %d", entry.type); + if (entry.type == PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN) + free (entry.u.info); + } + camera->pl->checkevents = 0; + } + if (params->inliveview && ptp_operation_issupported(params, PTP_OC_CANON_EOS_TerminateViewfinder)) + ptp_canon_eos_end_viewfinder (params); + camera_unprepare_capture (camera, context); + } + break; + case PTP_VENDOR_NIKON: + if (ptp_operation_issupported(params, PTP_OC_NIKON_EndLiveView)) + C_PTP (ptp_nikon_end_liveview (params)); + params->inliveview = 0; + + /* get the Nikon out of control mode again */ + if (params->controlmode && ptp_operation_issupported(params,PTP_OC_NIKON_SetControlMode)) { + ptp_nikon_setcontrolmode (params, 0); + params->controlmode = 0; + } + break; + case PTP_VENDOR_SONY: +#if 0 + /* if we call this, the camera shuts down on close in MTP mode */ + if (ptp_operation_issupported(params, 0x9280)) { + C_PTP (ptp_sony_9280(params, 0x4,0,5,0,0,0,0)); + } +#endif + break; + case PTP_VENDOR_FUJI: + CR (camera_unprepare_capture (camera, context)); + break; + } + + if (camera->pl->checkevents) + ptp_check_event (params); + while (ptp_get_one_event (params, &event)) + GP_LOG_D ("missed ptp event 0x%x (param1=%x)", event.Code, event.Param1); + + /* 2016 EOS cameras do not like that and report 0x2005 on all following opcodes */ + if (!DONT_CLOSE_SESSION(params)) { + /* close ptp session */ + ptp_closesession (params); + } + ptp_free_params(params); + +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + /* close iconv converters */ + if (params->cd_ucs2_to_locale != (iconv_t)-1) iconv_close(params->cd_ucs2_to_locale); + if (params->cd_locale_to_ucs2 != (iconv_t)-1) iconv_close(params->cd_locale_to_ucs2); +#endif + + free (params->data); + free (camera->pl); /* also frees params */ + params = NULL; + camera->pl = NULL; + } + /* This code hangs USB 3 devices after the first bulk image transmission. + * For some unknown reason. */ + if (0 && (camera->port!=NULL) && (camera->port->type == GP_PORT_USB)) { + /* clear halt */ + gp_port_usb_clear_halt + (camera->port, GP_PORT_USB_ENDPOINT_IN); + gp_port_usb_clear_halt + (camera->port, GP_PORT_USB_ENDPOINT_OUT); + gp_port_usb_clear_halt + (camera->port, GP_PORT_USB_ENDPOINT_INT); + } + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *text, GPContext *context) +{ + /* Note that we are not a so called 'Licensed Implementation' of MTP + * ... (for a LI you need express approval from Microsoft etc.) + */ + snprintf (text->text, sizeof(text->text), + _("PTP2 driver\n" + "(c) 2001-2005 by Mariusz Woloszyn .\n" + "(c) 2003-%d by Marcus Meissner .\n" + "This driver supports cameras that support PTP or PictBridge(tm), and\n" + "Media Players that support the Media Transfer Protocol (MTP).\n" + "\n" + "Enjoy!"), 2020); + return (GP_OK); +} + +static void debug_objectinfo(PTPParams *params, uint32_t oid, PTPObjectInfo *oi); + +/* Add new object to internal driver structures. issued when creating + * folder, uploading objects, or captured images. + */ +static int +add_object (Camera *camera, uint32_t handle, GPContext *context) +{ + PTPObject *ob; + PTPParams *params = &camera->pl->params; + + C_PTP (ptp_object_want (params, handle, 0, &ob)); + return GP_OK; +} + +static int +camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + unsigned char *data = NULL, *jpgStartPtr = NULL, *jpgEndPtr = NULL; + uint32_t size = 0; + uint16_t ret; + PTPParams *params = &camera->pl->params; + + camera->pl->checkevents = TRUE; + switch (params->deviceinfo.VendorExtensionID) { + case PTP_VENDOR_CANON: + /* Canon PowerShot / IXUS preview mode */ + if (ptp_operation_issupported(params, PTP_OC_CANON_ViewfinderOn)) { + SET_CONTEXT_P(params, context); + /* check if we need to prepare capture */ + if (!params->canon_event_mode) + CR (camera_prepare_capture (camera, context)); + if (!params->canon_viewfinder_on) { /* enable on demand, but just once */ + C_PTP_REP_MSG (ptp_canon_viewfinderon (params), + _("Canon enable viewfinder failed")); + params->canon_viewfinder_on = 1; + } + C_PTP_REP_MSG (ptp_canon_getviewfinderimage (params, &data, &size), + _("Canon get viewfinder image failed")); + gp_file_append ( file, (char*)data, size ); + free (data); + gp_file_set_mime_type (file, GP_MIME_JPEG); /* always */ + /* Add an arbitrary file name so caller won't crash */ + gp_file_set_name (file, "canon_preview.jpg"); + gp_file_set_mtime (file, time(NULL)); + SET_CONTEXT_P(params, NULL); + return GP_OK; + } + /* Canon EOS DSLR preview mode */ + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_GetViewFinderData)) { + PTPPropertyValue val; + /* FIXME: this might cause a focusing pass and take seconds. 20 was not + * enough (would be 0.2 seconds, too short for the mirror up operation.). */ + /* The EOS 100D takes 1.2 seconds */ + PTPDevicePropDesc dpd; + int back_off_wait = 0; + struct timeval event_start; + + SET_CONTEXT_P(params, context); + + if (!params->eos_captureenabled) + camera_prepare_capture (camera, context); + memset (&dpd,0,sizeof(dpd)); + + /* do not set it everytime, it will cause delays */ + ret = ptp_canon_eos_getdevicepropdesc (params, PTP_DPC_CANON_EOS_EVFMode, &dpd); + if ((ret == PTP_RC_OK) && (dpd.CurrentValue.u16 != 1)) { + /* 0 means off, 1 means on */ + val.u16 = 1; + ret = ptp_canon_eos_setdevicepropvalue (params, PTP_DPC_CANON_EOS_EVFMode, &val, PTP_DTC_UINT16); + /* in movie mode we get busy, but can proceed */ + if ((ret != PTP_RC_OK) && (ret != PTP_RC_DeviceBusy)) + C_PTP_MSG (ret, "setval of evf enable to 1 failed (curval is %d)!", dpd.CurrentValue.u16); + } + ptp_free_devicepropdesc (&dpd); + /* do not set it everytime, it will cause delays */ + ret = ptp_canon_eos_getdevicepropdesc (params, PTP_DPC_CANON_EOS_EVFOutputDevice, &dpd); + if ((ret == PTP_RC_OK) && (dpd.CurrentValue.u32 != 2)) { + /* 2 means PC, 1 means TFT */ + val.u32 = 2; + C_PTP_MSG (ptp_canon_eos_setdevicepropvalue (params, PTP_DPC_CANON_EOS_EVFOutputDevice, &val, PTP_DTC_UINT32), + "setval of evf outputmode to 2 failed (curval is %d)!", dpd.CurrentValue.u32); + } + ptp_free_devicepropdesc (&dpd); + + /* Otherwise the camera will auto-shutdown */ + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_KeepDeviceOn)) C_PTP (ptp_canon_eos_keepdeviceon (params)); + + params->inliveview = 1; + event_start = time_now(); + do { + unsigned char *xdata; + /* Poll for camera events, but just call + * it once and do not drain the queue now */ + C_PTP (ptp_check_eos_events (params)); + + ret = ptp_canon_eos_get_viewfinder_image (params , &data, &size); + if ((ret == 0xa102) || (ret == PTP_RC_DeviceBusy)) { /* means "not there yet" ... so wait */ + /* wait 3 seconds at most */ + if (waiting_for_timeout (&back_off_wait, event_start, 3*1000)) + continue; + } + C_PTP_MSG (ret, "get_viewfinder_image failed"); + + /* returns multiple blobs, they are usually structured as + * uint32 len + * uint32 type + * ... data ... + * + * 1: JPEG preview + */ + + xdata = data; + GP_LOG_D ("total size: len=%d", size); + while ((xdata-data) < size) { + uint32_t len = dtoh32a(xdata); + uint32_t type = dtoh32a(xdata+4); + + /* 4 byte len of jpeg data, 4 byte type */ + /* JPEG blob */ + /* stuff */ + GP_LOG_D ("get_viewfinder_image header: len=%d type=%d", len, type); + switch (type) { + default: + if (len > (size-(xdata-data))) { + len = size; + GP_LOG_E ("len=%d larger than rest size %ld", len, (size-(xdata-data))); + } + GP_LOG_DATA ((char*)xdata, len, "get_viewfinder_image header:"); + xdata = xdata+len; + continue; + case 9: + case 1: + case 11: + if (len > (size-(xdata-data))) { + len = size; + GP_LOG_E ("len=%d larger than rest size %ld", len, (size-(xdata-data))); + break; + } + gp_file_append ( file, (char*)xdata+8, len-8 ); + /* type 1 is JPEG (regular), type 9 is in movie mode */ + + gp_file_set_mime_type (file, ((type == 1) || (type == 11)) ? GP_MIME_JPEG : GP_MIME_RAW); + + /* Add an arbitrary file name so caller won't crash */ + gp_file_set_name (file, "preview.jpg"); + + /* dump the rest of the blobs */ + xdata = xdata+len; + while ((xdata-data) < size) { + len = dtoh32a(xdata); + type = dtoh32a(xdata+4); + + if (len > (size-(xdata-data))) { + len = size; + GP_LOG_E ("len=%d larger than rest size %ld", len, (size-(xdata-data))); + break; + } + GP_LOG_DATA ((char*)xdata, len, "get_viewfinder_image header:"); + xdata = xdata+len; + } + free (data); + SET_CONTEXT_P(params, NULL); + return GP_OK; + } + } + return GP_ERROR; + } while (1); + GP_LOG_E ("get_viewfinder_image failed after all tries with ret: 0x%x\n", ret); + SET_CONTEXT_P(params, NULL); + return translate_ptp_result (ret); + } + gp_context_error (context, _("Sorry, your Canon camera does not support Canon Viewfinder mode")); + return GP_ERROR_NOT_SUPPORTED; + case PTP_VENDOR_NIKON: { + PTPPropertyValue value; + int tries, firstimage = 0; + + if (!ptp_operation_issupported(params, PTP_OC_NIKON_StartLiveView)) { + gp_context_error (context, + _("Sorry, your Nikon camera does not support LiveView mode")); + return GP_ERROR_NOT_SUPPORTED; + } + SET_CONTEXT_P(params, context); + + /* Nilon V and J seem to like that */ + if (!params->controlmode && ptp_operation_issupported(params,PTP_OC_NIKON_SetControlMode)) { + ret = ptp_nikon_setcontrolmode (params, 1); + /* FIXME: PTP_RC_NIKON_ChangeCameraModeFailed does not seem to be problematic */ + if (ret != PTP_RC_NIKON_ChangeCameraModeFailed) + C_PTP_REP (ret); + params->controlmode = 1; + } + + ret = ptp_getdevicepropvalue (params, PTP_DPC_NIKON_LiveViewStatus, &value, PTP_DTC_UINT8); + if (ret != PTP_RC_OK) + value.u8 = 0; + +enable_liveview: + if (!value.u8) { + value.u8 = 1; + if (have_prop(camera, params->deviceinfo.VendorExtensionID, PTP_DPC_NIKON_RecordingMedia)) + LOG_ON_PTP_E (ptp_setdevicepropvalue (params, PTP_DPC_NIKON_RecordingMedia, &value, PTP_DTC_UINT8)); + + ret = ptp_nikon_start_liveview (params); + if ((ret != PTP_RC_OK) && (ret != PTP_RC_DeviceBusy)) + C_PTP_REP_MSG (ret, _("Nikon enable liveview failed")); + + /* wait up to 1 second */ + C_PTP_REP_MSG (nikon_wait_busy(params,20,2000), _("Nikon enable liveview failed")); + params->inliveview = 1; + firstimage = 1; + } + /* nikon 1 special */ + if (value.u8 && !params->inliveview) { + ret = ptp_nikon_start_liveview (params); + if ((ret != PTP_RC_OK) && (ret != PTP_RC_DeviceBusy)) + C_PTP_REP_MSG (ret, _("Nikon enable liveview failed")); + + C_PTP_REP_MSG (nikon_wait_busy(params,20,2000), _("Nikon enable liveview failed")); + params->inliveview = 1; + } + tries = 20; + while (tries--) { + ret = ptp_nikon_get_liveview_image (params , &data, &size); + if (ret == PTP_RC_NIKON_NotLiveView) { + /* this happens on the D7000 after 14000 frames... reenable liveview */ + params->inliveview = 0; + value.u8 = 0; + goto enable_liveview; + } + if (ret == PTP_RC_OK) { + if (firstimage) { + /* the first image on the S9700 is corrupted. so just skip the first image */ + firstimage = 0; + free (data); + continue; + } + /* look for the JPEG SOI marker (0xFFD8) in data */ + jpgStartPtr = (unsigned char*)memchr(data, 0xff, size); + while(jpgStartPtr && ((jpgStartPtr+1) < (data + size))) { + if(*(jpgStartPtr + 1) == 0xd8) { /* SOI found */ + break; + } else { /* go on looking (starting at next byte) */ + jpgStartPtr++; + jpgStartPtr = (unsigned char*)memchr(jpgStartPtr, 0xff, data + size - jpgStartPtr); + } + } + if(!jpgStartPtr) { /* no SOI -> no JPEG */ + gp_context_error (context, _("Sorry, your Nikon camera does not seem to return a JPEG image in LiveView mode")); + return GP_ERROR; + } + /* if SOI found, start looking for EOI marker (0xFFD9) one byte after SOI + (just to be sure we will not go beyond the end of the data array) */ + jpgEndPtr = (unsigned char*)memchr(jpgStartPtr+1, 0xff, data+size-jpgStartPtr-1); + while(jpgEndPtr && ((jpgEndPtr+1) < (data + size))) { + if(*(jpgEndPtr + 1) == 0xd9) { /* EOI found */ + jpgEndPtr += 2; + break; + } else { /* go on looking (starting at next byte) */ + jpgEndPtr++; + jpgEndPtr = (unsigned char*)memchr(jpgEndPtr, 0xff, data + size - jpgEndPtr); + } + } + if(!jpgEndPtr) { /* no EOI -> no JPEG */ + gp_context_error (context, _("Sorry, your Nikon camera does not seem to return a JPEG image in LiveView mode")); + return GP_ERROR; + } + gp_file_append (file, (char*)jpgStartPtr, jpgEndPtr-jpgStartPtr); + free (data); /* FIXME: perhaps handle the 128 byte header data too. */ + gp_file_set_mime_type (file, GP_MIME_JPEG); /* always */ + /* Add an arbitrary file name so caller won't crash */ + gp_file_set_name (file, "preview.jpg"); + gp_file_set_mtime (file, time(NULL)); + break; + } + if (ret == PTP_RC_DeviceBusy) { + GP_LOG_D ("busy, retrying after a bit of wait, try %d", tries); + usleep(10*1000); + continue; + } + SET_CONTEXT_P(params, NULL); + return translate_ptp_result (ret); + } +#if 0 + C_PTP_REP_MSG (ptp_nikon_end_liveview (params), + _("Nikon disable liveview failed")); +#endif + SET_CONTEXT_P(params, NULL); + return GP_OK; + } + case PTP_VENDOR_SONY: { + uint32_t preview_object = 0xffffc002; /* this is where the liveview image is accessed */ + unsigned char *ximage = NULL; + int tries = 20; + +#if 0 + /* this times out, with 0.3 seconds wait ... bad */ + ptp_check_event (params); /* will stall for some reason */ +#endif + do { + ret = ptp_getobject_with_size(params, preview_object, &ximage, &size); + if (ret == PTP_RC_OK) + break; + if (ret != PTP_RC_AccessDenied) /* we get those when we are too fast */ + C_PTP (ret); + usleep(10*1000); + } while (tries--); + + /* look for the JPEG SOI marker (0xFFD8) in data */ + jpgStartPtr = (unsigned char*)memchr(ximage, 0xff, size); + while(jpgStartPtr && ((jpgStartPtr+1) < (ximage + size))) { + if(*(jpgStartPtr + 1) == 0xd8) { /* SOI found */ + break; + } else { /* go on looking (starting at next byte) */ + jpgStartPtr++; + jpgStartPtr = (unsigned char*)memchr(jpgStartPtr, 0xff, ximage + size - jpgStartPtr); + } + } + if(!jpgStartPtr) { /* no SOI -> no JPEG */ + gp_context_error (context, _("Sorry, your Sony camera does not seem to return a JPEG image in LiveView mode")); + return GP_ERROR; + } + /* if SOI found, start looking for EOI marker (0xFFD9) one byte after SOI + (just to be sure we will not go beyond the end of the data array) */ + jpgEndPtr = (unsigned char*)memchr(jpgStartPtr+1, 0xff, ximage+size-jpgStartPtr-1); + while(jpgEndPtr && ((jpgEndPtr+1) < (ximage + size))) { + if(*(jpgEndPtr + 1) == 0xd9) { /* EOI found */ + jpgEndPtr += 2; + break; + } else { /* go on looking (starting at next byte) */ + jpgEndPtr++; + jpgEndPtr = (unsigned char*)memchr(jpgEndPtr, 0xff, ximage + size - jpgEndPtr); + } + } + if(!jpgEndPtr) { /* no EOI -> no JPEG */ + gp_context_error (context, _("Sorry, your Sony camera does not seem to return a JPEG image in LiveView mode")); + return GP_ERROR; + } + gp_file_append (file, (char*)jpgStartPtr, jpgEndPtr-jpgStartPtr); + free (ximage); /* FIXME: perhaps handle the 128 byte header data too. */ + + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_name (file, "sony_preview.jpg"); + gp_file_set_mtime (file, time(NULL)); + + SET_CONTEXT_P(params, NULL); + return GP_OK; + } + case PTP_VENDOR_FUJI: { + PTPObjectInfo oi; + uint32_t preview_object = 0x80000001; /* this is where the liveview image is accessed */ + unsigned char *ximage = NULL; + int tries = 10; + + while (tries--) { + ret = ptp_getobjectinfo (params, preview_object, &oi); + if (ret == PTP_RC_OK) break; + if (ret == PTP_RC_InvalidObjectHandle) { + usleep(1000); + continue; + } + C_PTP_REP (ret); + } + + if(ret != PTP_RC_OK) { + tries = 5; + while (tries--) { + ret = ptp_initiateopencapture(params, 0x00000000, 0x00000000); + if (ret == PTP_RC_OK) { + params->opencapture_transid = params->transaction_id-1; + params->inliveview = 1; + usleep(100*1000); /* this basically waits until the first object is there. */ + break; + } + usleep(200*1000); + } + } + + tries = 20; + do { + ret = ptp_getobject_with_size(params, preview_object, &ximage, &size); + if (ret == PTP_RC_OK) + break; + if(ret == PTP_RC_DeviceBusy) { + usleep(1000); + continue; + } + + if (ret != PTP_RC_AccessDenied) /* we get those when we are too fast */ /* priobably pasted from nikon, check? */ + C_PTP (ret); + } while (tries--); + C_PTP_REP (ptp_deleteobject(params, preview_object, 0)); + + /* Fuji Liveview returns FF D8 ... FF D9 ... so no meta data wrapped around the jpeg data */ + gp_file_append (file, (char*)ximage, size); + free (ximage); + + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_name (file, "sony_preview.jpg"); + gp_file_set_mtime (file, time(NULL)); + + SET_CONTEXT_P(params, NULL); + return GP_OK; + } + case PTP_VENDOR_PANASONIC: { + unsigned char *ximage = NULL; + int tries = 25; + + if(!params->inliveview) { + C_PTP_REP(ptp_panasonic_liveview(params, 1)); + params->inliveview = 1; + usleep(100000); + } + + for (;;) { + tries--; + if(tries <= 0) + return translate_ptp_result (ret); + ret = ptp_panasonic_liveview_image (params, &ximage, &size); + if(ret == PTP_RC_DeviceBusy) { + usleep(40000); + continue; + } else { + break; + } + } + /* look for the JPEG SOI marker (0xFFD8) in data */ + jpgStartPtr = (unsigned char*)memchr(ximage, 0xff, size); + while(jpgStartPtr && ((jpgStartPtr+1) < (ximage + size))) { + if(*(jpgStartPtr + 1) == 0xd8) { /* SOI found */ + break; + } else { /* go on looking (starting at next byte) */ + jpgStartPtr++; + jpgStartPtr = (unsigned char*)memchr(jpgStartPtr, 0xff, ximage + size - jpgStartPtr); + } + } + if(!jpgStartPtr) { /* no SOI -> no JPEG */ + gp_context_error (context, _("Sorry, your Panasonic camera does not seem to return a JPEG image in LiveView mode")); + return GP_ERROR; + } + /* if SOI found, start looking for EOI marker (0xFFD9) one byte after SOI + (just to be sure we will not go beyond the end of the data array) */ + jpgEndPtr = (unsigned char*)memchr(jpgStartPtr+1, 0xff, ximage+size-jpgStartPtr-1); + while(jpgEndPtr && ((jpgEndPtr+1) < (ximage + size))) { + if(*(jpgEndPtr + 1) == 0xd9) { /* EOI found */ + jpgEndPtr += 2; + break; + } else { /* go on looking (starting at next byte) */ + jpgEndPtr++; + jpgEndPtr = (unsigned char*)memchr(jpgEndPtr, 0xff, ximage + size - jpgEndPtr); + } + } + if(!jpgEndPtr) { /* no EOI -> no JPEG */ + gp_context_error (context, _("Sorry, your Panasonic camera does not seem to return a JPEG image in LiveView mode")); + return GP_ERROR; + } + gp_file_append (file, (char*)jpgStartPtr, jpgEndPtr-jpgStartPtr); + free (ximage); /* FIXME: perhaps handle the 128 byte header data too. */ + + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_name (file, "preview.jpg"); + gp_file_set_mtime (file, time(NULL)); + + SET_CONTEXT_P(params, NULL); + return GP_OK; + } + case PTP_VENDOR_GP_OLYMPUS_OMD: { + unsigned char *ximage = NULL; + PTPPropertyValue value; + int tries = 25; + + ret = ptp_getdevicepropvalue (params, PTP_DPC_OLYMPUS_LiveViewModeOM, &value, PTP_DTC_UINT32); + if (ret != PTP_RC_OK) + value.u32 = 0; + + if (value.u32 != 67109632) { /* 0x04000300 */ + value.u32 = 67109632; + LOG_ON_PTP_E (ptp_setdevicepropvalue (params, PTP_DPC_OLYMPUS_LiveViewModeOM, &value, PTP_DTC_UINT32)); + + params->inliveview = 1; + } + + for(;;) { + tries--; + if(tries <= 0) { + return ret; + } + ret = ptp_olympus_liveview_image (params, &ximage, &size); + if(ret == PTP_RC_DeviceBusy || size < 1024) { + usleep(40000); + continue; + } else { + break; + } + } + + gp_file_append (file, (char*)ximage, size); + free (ximage); + + gp_file_set_mime_type (file, GP_MIME_JPEG); + gp_file_set_name (file, "preview.jpg"); + gp_file_set_mtime (file, time(NULL)); + + SET_CONTEXT_P(params, NULL); + return GP_OK; + } + default: + break; + } + return GP_ERROR_NOT_SUPPORTED; +} + +static int +get_folder_from_handle (Camera *camera, uint32_t storage, uint32_t handle, char *folder) { + PTPObject *ob; + PTPParams *params = &camera->pl->params; + + GP_LOG_D ("(%x,%x,%s)", storage, handle, folder); + if (handle == PTP_HANDLER_ROOT) + return GP_OK; + + C_PTP (ptp_object_want (params, handle, PTPOBJECT_OBJECTINFO_LOADED, &ob)); + CR (get_folder_from_handle (camera, storage, ob->oi.ParentObject, folder)); + /* now ob could be invalid, since we might have reallocated params->objects */ + ptp_object_want (params, handle, PTPOBJECT_OBJECTINFO_LOADED, &ob); + strcat (folder, ob->oi.Filename); + strcat (folder, "/"); + return (GP_OK); +} + +static int +add_objectid_and_upload (Camera *camera, CameraFilePath *path, GPContext *context, + uint32_t newobject, PTPObjectInfo *oi) { + int ret; + PTPParams *params = &camera->pl->params; + CameraFile *file = NULL; + unsigned char *ximage = NULL; + CameraFileInfo info; + + ret = gp_file_new(&file); + if (ret!=GP_OK) return ret; + gp_file_set_mtime (file, time(NULL)); + set_mimetype (file, params->deviceinfo.VendorExtensionID, oi->ObjectFormat); + C_PTP_REP (ptp_getobject(params, newobject, &ximage)); + + GP_LOG_D ("setting size"); + ret = gp_file_set_data_and_size(file, (char*)ximage, oi->ObjectCompressedSize); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + GP_LOG_D ("append to fs"); + ret = gp_filesystem_append(camera->fs, path->folder, path->name, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + GP_LOG_D ("adding filedata to fs"); + ret = gp_filesystem_set_file_noop(camera->fs, path->folder, path->name, GP_FILE_TYPE_NORMAL, file, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + + /* We have now handed over the file, disclaim responsibility by unref. */ + gp_file_unref (file); + + /* we also get the fs info for free, so just set it */ + info.file.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | + GP_FILE_INFO_SIZE | GP_FILE_INFO_MTIME; + strcpy_mime (info.file.type, params->deviceinfo.VendorExtensionID, oi->ObjectFormat); + info.file.width = oi->ImagePixWidth; + info.file.height = oi->ImagePixHeight; + info.file.size = oi->ObjectCompressedSize; + info.file.mtime = time(NULL); + + info.preview.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | + GP_FILE_INFO_SIZE; + strcpy_mime (info.preview.type, params->deviceinfo.VendorExtensionID, oi->ThumbFormat); + info.preview.width = oi->ThumbPixWidth; + info.preview.height = oi->ThumbPixHeight; + info.preview.size = oi->ThumbCompressedSize; + GP_LOG_D ("setting fileinfo in fs"); + return gp_filesystem_set_info_noop(camera->fs, path->folder, path->name, info, context); +} + +/** + * camera_nikon_capture: + * params: Camera* - camera object + * CameraCaptureType type - type of object to capture + * CameraFilePath *path - filled out with filename and folder on return + * uint32_t af - use autofocus or not. + * uint32_t sdram - capture to sdram or not + * GPContext* context - gphoto context for this operation + * + * This function captures an image using special Nikon capture to SDRAM. + * The object(s) do(es) not appear in the "objecthandles" array returned by GetObjectHandles, + * so we need to download them here immediately. + * + * Return values: A gphoto return code. + * Upon success CameraFilePath *path contains the folder and filename of the captured + * image. + */ +static int +camera_nikon_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + uint32_t af, int sdram, GPContext *context) +{ + PTPObjectInfo oi; + PTPParams *params = &camera->pl->params; + PTPDevicePropDesc propdesc; + PTPPropertyValue propval; + int i, ret, burstnumber = 1, done, tries; + uint32_t newobject; + int back_off_wait = 0; + struct timeval capture_start; + int loops; + + + if (type != GP_CAPTURE_IMAGE) + return GP_ERROR_NOT_SUPPORTED; + + if (params->deviceinfo.VendorExtensionID!=PTP_VENDOR_NIKON) + return GP_ERROR_NOT_SUPPORTED; + + /* Nilon V and J seem to like that */ + if (!params->controlmode && ptp_operation_issupported(params,PTP_OC_NIKON_SetControlMode)) { + ret = ptp_nikon_setcontrolmode (params, 1); + /* FIXME: PTP_RC_NIKON_ChangeCameraModeFailed does not seem to be problematic */ + if (ret != PTP_RC_NIKON_ChangeCameraModeFailed) + C_PTP_REP (ret); + params->controlmode = 1; + } + + if ( !ptp_operation_issupported(params,PTP_OC_NIKON_Capture) && + !ptp_operation_issupported(params,PTP_OC_NIKON_AfCaptureSDRAM) && + !ptp_operation_issupported(params,PTP_OC_NIKON_InitiateCaptureRecInMedia) + ) { + gp_context_error(context, + _("Sorry, your camera does not support Nikon capture")); + return GP_ERROR_NOT_SUPPORTED; + } + if ( ptp_property_issupported(params, PTP_DPC_StillCaptureMode) && + (PTP_RC_OK == ptp_getdevicepropdesc (params, PTP_DPC_StillCaptureMode, &propdesc))) { + PTPDevicePropDesc burstdesc; + + if ((propdesc.DataType == PTP_DTC_UINT16) && + (propdesc.CurrentValue.u16 == 2) /* Burst Mode */ && + ptp_property_issupported(params, PTP_DPC_BurstNumber) && + (PTP_RC_OK == ptp_getdevicepropdesc (params, PTP_DPC_BurstNumber, &burstdesc))) { + if (burstdesc.DataType == PTP_DTC_UINT16) { + burstnumber = burstdesc.CurrentValue.u16; + GP_LOG_D ("burstnumber %d", burstnumber); + } + ptp_free_devicepropdesc (&burstdesc); + } + ptp_free_devicepropdesc (&propdesc); + } + + /* if in liveview mode, we have to run non-af capture */ + params->inliveview = 0; + if (ptp_property_issupported (params, PTP_DPC_NIKON_LiveViewStatus)) { + ret = ptp_getdevicepropvalue (params, PTP_DPC_NIKON_LiveViewStatus, &propval, PTP_DTC_UINT8); + if (ret == PTP_RC_OK) + params->inliveview = propval.u8; + if (params->inliveview) af = 0; + } + + if (NIKON_1(params)) { + ret = ptp_nikon_start_liveview (params); + if ((ret != PTP_RC_OK) && (ret != PTP_RC_DeviceBusy)) + C_PTP_REP_MSG(ret, _("Failed to enable liveview on a Nikon 1, but it is required for capture")); + /* OK or busy, try to proceed ... */ + C_PTP_REP_MSG (nikon_wait_busy(params,20,2000), _("Nikon enable liveview failed")); + } + + if (ptp_operation_issupported(params, PTP_OC_NIKON_InitiateCaptureRecInMedia)) { + /* we assume for modern cameras this event method works to avoid longer waits */ + params->event90c7works = 1; + + loops = 100; + do { + ret = ptp_nikon_capture2 (params, af, sdram); + /* Nikon 1 ... if af is 0, it reports PTP_RC_NIKON_InvalidStatus */ + if (!af && ((ret == PTP_RC_NIKON_InvalidStatus))) { + ret = ptp_nikon_capture2 (params, 1, sdram); + if (ret == PTP_RC_OK) + break; + } + + if ( (ret == PTP_RC_DeviceBusy) || + /* this is seen on Nikon V3 */ + (ret == PTP_RC_NIKON_InvalidStatus) || + (ret == 0xa207) /* on Nikon D850 */ + ) usleep(2000); + } while (((ret == PTP_RC_DeviceBusy) || (ret == PTP_RC_NIKON_InvalidStatus)) && loops--); + goto capturetriggered; + } + + if (!params->inliveview && ptp_operation_issupported(params,PTP_OC_NIKON_AfCaptureSDRAM)) { + loops = 100; + do { + ret = ptp_nikon_capture_sdram(params); + } while ((ret == PTP_RC_DeviceBusy) && (loops--)); + } else { + loops = 100; + do { + ret = ptp_nikon_capture(params, 0xffffffff); + } while ((ret == PTP_RC_DeviceBusy) && (loops--)); + } + +capturetriggered: + C_PTP_REP (ret); + + CR (gp_port_set_timeout (camera->port, capture_timeout)); + + C_PTP_REP (nikon_wait_busy (params, 100, 200*1000)); /* lets wait 200 seconds */ + + newobject = 0xffff0001; + done = 0; tries = 100; + capture_start = time_now(); + do { + PTPContainer event; + int checkevt; + + /* Just busy loop until the camera is ready again. */ + /* and wait for the 0xc101 event */ + C_PTP_REP (ptp_check_event (params)); + checkevt = 0; + while (ptp_get_one_event(params, &event)) { + GP_LOG_D ("event.Code is %x / param %lx", event.Code, (unsigned long)event.Param1); + switch (event.Code) { + case PTP_EC_Nikon_ObjectAddedInSDRAM: + done |= 3; + newobject = event.Param1; + if (!newobject) newobject = 0xffff0001; + break; + case PTP_EC_ObjectRemoved: + ptp_remove_object_from_cache(params, event.Param1); + gp_filesystem_reset (camera->fs); + break; + case PTP_EC_ObjectAdded: { + PTPObject *ob; + + /* if we got one object already, put it into the queue */ + /* e.g. for NEF+RAW capture */ + if (newobject != 0xffff0001) { + ptp_add_event (params, &event); + checkevt = 1; /* avoid endless loop */ + done = 3; + break; + } + /* we register the object in the internal storage, and we also need to + * to find out if it is just a new directory (/DCIM/NEWENTRY/) created + * during capture or the actual image. */ + ret = ptp_object_want (params, event.Param1, PTPOBJECT_OBJECTINFO_LOADED, &ob); + if (ret != PTP_RC_OK) + break; + /* if a new directory was added, not a file ... just continue. + * happens when the camera starts with an empty card. */ + if (ob->oi.ObjectFormat == PTP_OFC_Association) { + /* libgphoto2 vfs does not notice otherwise */ + gp_filesystem_reset (camera->fs); + break; + } + newobject = event.Param1; + done |= 2; + break; + } + case PTP_EC_Nikon_CaptureCompleteRecInSdram: + case PTP_EC_CaptureComplete: + if (params->inliveview) { + GP_LOG_D ("Capture complete ... restarting liveview"); + ret = ptp_nikon_start_liveview (params); + } + done |= 1; + break; + default: + GP_LOG_D ("UNHANDLED event.Code is %x / param %lx, DEFER", event.Code, (unsigned long)event.Param1); + ptp_add_event (params, &event); + checkevt = 1; /* avoid endless loop */ + break; + } + if (checkevt) + break; + } + /* we got both capturecomplete and objectadded ... leave */ + if (done == 3) + break; + /* just got capturecomplete ... wait a bit for a objectadded (Nikon 1) */ + if (done == 1) { + if (!tries--) + break; + } + gp_context_idle (context); + /* do not drain all of the DSLRs compute time */ + } while ((done != 3) && waiting_for_timeout (&back_off_wait, capture_start, 70*1000)); /* 70 seconds */ + /* Maximum image time is 30 seconds, but NR processing might take 25 seconds ... so wait longer. + * see https://github.com/gphoto/libgphoto2/issues/94 */ + + if (!newobject) newobject = 0xffff0001; + + CR (gp_port_set_timeout (camera->port, normal_timeout)); + + /* This loop handles single and burst capture. + * It also handles SDRAM and also CARD capture. + * In Burst/SDRAM we need to download everything at once + * In all SDRAM modes we download and store it in the virtual fs. + * in Burst/CARD we add just the 1st as object, but do not download it yet. + */ + for (i=0;ifolder, "/"); + } else { + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx",(unsigned long)oi.StorageID); + } + if (oi.ObjectFormat != PTP_OFC_EXIF_JPEG) { + /* the Nikon Coolpix P2 says "TIFF" and gives us "JPG". weird. */ + if (oi.Filename && strstr(oi.Filename,".JPG")) { + GP_LOG_D ("rewriting %04x to JPEG %04x for %s", oi.ObjectFormat,PTP_OFC_EXIF_JPEG,oi.Filename); + oi.ObjectFormat = PTP_OFC_EXIF_JPEG; + } + } + + if (oi.ObjectFormat != PTP_OFC_EXIF_JPEG) { + GP_LOG_D ("raw? ofc is 0x%04x, name is %s", oi.ObjectFormat,oi.Filename); + sprintf (path->name, "capt%04d.nef", params->capcnt++); + } else { + sprintf (path->name, "capt%04d.jpg", params->capcnt++); + } + ret = add_objectid_and_upload (camera, path, context, newobject, &oi); + if (ret != GP_OK) { + GP_LOG_E ("failed to add object\n"); + return ret; + } + /* this does result in 0x2009 (invalid object id) with the D90 ... curiuos + ret = ptp_nikon_delete_sdram_image (params, newobject); + */ + if (!params->deletesdramfails) { + ret = ptp_deleteobject (params, newobject, 0); + if (ret != PTP_RC_OK) { + GP_LOG_E ("deleteobject(%x) failed: %x", newobject, ret); + if (ret == PTP_RC_InvalidObjectHandle) + params->deletesdramfails = 1; + else + ret = ptp_nikon_delete_sdram_image (params, newobject); + if (ret != PTP_RC_OK) + GP_LOG_E ("deleteobjectinsdram(%x) failed too: %x", newobject, ret); + if (ret == PTP_RC_InvalidObjectHandle) + params->deletesdramfails = 1; + } + } + } else { /* capture to card branch */ + CR (add_object (camera, newobject, context)); + strcpy (path->name, oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)oi.StorageID); + get_folder_from_handle (camera, oi.StorageID, oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + + ptp_free_objectinfo(&oi); + + /* not doing the rest of the burst loop ... */ + return gp_filesystem_append (camera->fs, path->folder, path->name, context); + } + } + ptp_check_event (params); + return GP_OK; +} + +/* 60 seconds timeout in ms ... (for long cycles) */ +#define EOS_CAPTURE_TIMEOUT (60*1000) + +/* This is currently the capture method used by the EOS 400D + * ... in development. + */ +static int camera_trigger_canon_eos_capture (Camera *camera, GPContext *context); +static int +camera_canon_eos_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + int ret; + PTPParams *params = &camera->pl->params; + uint32_t newobject = 0x0; + PTPCanon_changes_entry entry; + CameraFile *file = NULL; + CameraFileInfo info; + PTPObjectInfo oi; + int back_off_wait = 0; + struct timeval capture_start; + char *mime; + + if (! (ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteRelease) || + ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn)) + ) { + gp_context_error (context, + _("Sorry, your Canon camera does not support Canon EOS Capture")); + return GP_ERROR_NOT_SUPPORTED; + } + + capture_start = time_now(); + + CR (camera_trigger_canon_eos_capture (camera, context)); + + newobject = 0; + memset (&oi, 0, sizeof(oi)); + do { + C_PTP_REP_MSG (ptp_check_eos_events (params), + _("Canon EOS Get Changes failed")); + while (ptp_get_one_eos_event (params, &entry)) { + /* if we got at least one event from the last event polling, we reset our back_off_wait counter */ + back_off_wait = 0; + GP_LOG_D ("entry type %04x", entry.type); + switch (entry.type) { + case PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN: + GP_LOG_D ("entry unknown: %s", entry.u.info); + free (entry.u.info); + continue; /* in loop ... do not poll while draining the queue */ + case PTP_CANON_EOS_CHANGES_TYPE_OBJECTTRANSFER: + GP_LOG_D ("Found new object! OID 0x%x, name %s", (unsigned int)entry.u.object.oid, entry.u.object.oi.Filename); + newobject = entry.u.object.oid; + memcpy (&oi, &entry.u.object.oi, sizeof(oi)); + break; + case PTP_CANON_EOS_CHANGES_TYPE_OBJECTREMOVED: + GP_LOG_D ("Found removed object. OID 0x%x", (unsigned int)entry.u.object.oid); + ptp_remove_object_from_cache(params, entry.u.object.oid); + gp_filesystem_reset (camera->fs); + break; + case PTP_CANON_EOS_CHANGES_TYPE_OBJECTINFO: { + PTPObject *ob; + + /* just add it to the filesystem, and return in CameraPath */ + GP_LOG_D ("Found new object! OID 0x%x, name %s", (unsigned int)entry.u.object.oid, entry.u.object.oi.Filename); + memcpy (&oi, &entry.u.object.oi, sizeof(oi)); + ret = ptp_object_want (params, entry.u.object.oid, 0, &ob); + if (ret != PTP_RC_OK) + continue; + strcpy (path->name, oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)oi.StorageID); + get_folder_from_handle (camera, oi.StorageID, oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + gp_filesystem_append (camera->fs, path->folder, path->name, context); + /* The camera might have rotated the folder from NNNCANON to NNN+1CANON , image probably comes next ... */ + if (entry.u.object.oi.ObjectFormat == PTP_OFC_Association) + continue; + newobject = entry.u.object.oid; + break;/* for RAW+JPG mode capture, we just return the first image for now, and + * let wait_for_event get the rest. */ + default: + GP_LOG_D("unhandled eos change: %d", entry.type); + break; + } + } + if (newobject) + break; + } + if (newobject) + break; + + /* not really proven to help keep it on */ + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_KeepDeviceOn)) C_PTP_REP (ptp_canon_eos_keepdeviceon (params)); + gp_context_idle (context); + } while (waiting_for_timeout (&back_off_wait, capture_start, EOS_CAPTURE_TIMEOUT)); + + if (newobject == 0) + return GP_ERROR; + GP_LOG_D ("object has OFC 0x%x", oi.ObjectFormat); + + if (oi.StorageID) /* all done above */ + return GP_OK; + + strcpy (path->folder,"/"); + sprintf (path->name, "capt%04d.", params->capcnt++); + CR (gp_file_new(&file)); + if (oi.ObjectFormat == PTP_OFC_CANON_CRW || oi.ObjectFormat == PTP_OFC_CANON_CRW3) { + mime = GP_MIME_CRW; + strcat(path->name, "cr2"); + gp_file_set_mime_type (file, GP_MIME_CRW); + } else if (oi.ObjectFormat == PTP_OFC_CANON_CR3) { + mime = GP_MIME_CR3; + strcat(path->name, "cr3"); + gp_file_set_mime_type (file, GP_MIME_CR3); + } else { + mime = GP_MIME_JPEG; + strcat(path->name, "jpg"); + gp_file_set_mime_type (file, GP_MIME_JPEG); + } + gp_file_set_mtime (file, time(NULL)); + + GP_LOG_D ("trying to get object size=0x%lx", (unsigned long)oi.ObjectCompressedSize); + +#define BLOBSIZE 1*1024*1024 + /* the EOS R does not like 5MB, but likes 1MB */ + /* Trying to read this in 1 block might be the cause of crashes of newer EOS */ + { + uint32_t offset = 0; + + while (offset < oi.ObjectCompressedSize) { + uint32_t xsize = oi.ObjectCompressedSize - offset; + unsigned char *ximage = NULL; + + if (xsize > BLOBSIZE) + xsize = BLOBSIZE; + C_PTP_REP (ptp_getpartialobject (params, newobject, offset, xsize, &ximage, &xsize)); + gp_file_append (file, (char*)ximage, xsize); + free (ximage); + offset += xsize; + } + } + /*old C_PTP_REP (ptp_canon_eos_getpartialobject (params, newobject, 0, oi.ObjectCompressedSize, &ximage));*/ +#undef BLOBSIZE + + + C_PTP_REP (ptp_canon_eos_transfercomplete (params, newobject)); +/* + old: + ret = gp_file_set_data_and_size(file, (char*)ximage, oi.ObjectCompressedSize); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } +*/ + ret = gp_filesystem_append(camera->fs, path->folder, path->name, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + ret = gp_filesystem_set_file_noop(camera->fs, path->folder, path->name, GP_FILE_TYPE_NORMAL, file, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + memset(&info, 0, sizeof(info)); + /* We also get the fs info for free, so just set it */ + info.file.fields = GP_FILE_INFO_TYPE | GP_FILE_INFO_SIZE | GP_FILE_INFO_MTIME; + strcpy (info.file.type, mime); + info.file.size = oi.ObjectCompressedSize; + info.file.mtime = time(NULL); + + gp_filesystem_set_info_noop(camera->fs, path->folder, path->name, info, context); + /* We have now handed over the file, disclaim responsibility by unref. */ + gp_file_unref (file); + return GP_OK; +} + +static int +camera_olympus_xml_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + uint16_t ret; + int res; + PTPParams *params = &camera->pl->params; + + GP_LOG_D ("olympus capture"); + + /* C_PTP (ptp_olympus_capture (params, 3)); */ + C_PTP (ptp_generic_no_data (params, PTP_OC_OLYMPUS_Capture, 1, 3)); + + while (1) { + PTPContainer event; + + ret = ptp_check_event(params); + if (ret != PTP_RC_OK) + break; + + event.Code = 0; + while (ptp_get_one_event (params, &event)) { + GP_LOG_D ("capture 1: got event 0x%x (param1=%x)", event.Code, event.Param1); + if (event.Code == PTP_EC_Olympus_CaptureComplete) break; + } + if (event.Code == PTP_EC_Olympus_CaptureComplete) + break; + } + /* C_PTP (ptp_olympus_capture (params, 0)); */ + C_PTP (ptp_generic_no_data (params, PTP_OC_OLYMPUS_Capture, 1, 0)); + + /* 0x1a000002 object id */ + while (1) { + PTPContainer event; + uint32_t assochandle = 0; + + ret = ptp_check_event(params); + if (ret != PTP_RC_OK) + break; + + event.Code = 0; + while (ptp_get_one_event (params, &event)) { + GP_LOG_D ("capture 2: got event 0x%x (param1=%x)", event.Code, event.Param1); + if (event.Code == PTP_EC_RequestObjectTransfer) { + PTPObjectInfo oi; + + C_PTP_MSG (ptp_getobjectinfo (params, event.Param1, &oi), + "capture 2: no objectinfo for 0x%x", event.Param1); + debug_objectinfo(params, event.Param1, &oi); + /* We get usually + * 0x1a000001 - folder + * 0x1a000002 - image within that folder + */ + + /* remember for later deletion */ + if (oi.ObjectFormat == PTP_OFC_Association) { + assochandle = event.Param1; + continue; + } + + if (oi.ObjectFormat == PTP_OFC_EXIF_JPEG) { + sprintf (path->folder,"/"); + sprintf (path->name, "capt%04d.jpg", params->capcnt++); + res = add_objectid_and_upload (camera, path, context, event.Param1, &oi); + + ret = ptp_deleteobject (params, event.Param1, PTP_OFC_EXIF_JPEG); + if (ret != PTP_RC_OK) + GP_LOG_E ("capture 2: delete image %08x, ret 0x%04x", event.Param1, ret); + ret = ptp_deleteobject (params, assochandle, PTP_OFC_Association); + if (ret != PTP_RC_OK) + GP_LOG_E ("capture 2: delete folder %08x, ret 0x%04x", assochandle, ret); + return res; + } + GP_LOG_E ("capture 2: unknown OFC 0x%04x for 0x%x", oi.ObjectFormat, event.Param1); + } + } + } + return GP_ERROR; +} + +/* To use: + * gphoto2 --set-config capture=on --config --capture-image + * gphoto2 -f /store_80000001 -p 1 + * will download a file called "VirtualObject" + */ +static int +camera_canon_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + PTPObjectInfo oi; + int found, ret, timeout, sawcapturecomplete = 0, viewfinderwason = 0; + PTPParams *params = &camera->pl->params; + uint32_t newobject = 0x0; + PTPPropertyValue propval; + PTPContainer event; + char buf[1024]; + int xmode = CANON_TRANSFER_CARD; + struct timeval event_start; + + if (!ptp_operation_issupported(params, PTP_OC_CANON_InitiateCaptureInMemory)) { + gp_context_error (context, + _("Sorry, your Canon camera does not support Canon Capture initiation")); + return GP_ERROR_NOT_SUPPORTED; + } + + /* did not call --set-config capture=on, do it for user */ + CR (camera_prepare_capture (camera, context)); + + if (!params->canon_event_mode) { + propval.u16 = 0; + ret = ptp_getdevicepropvalue(params, PTP_DPC_CANON_EventEmulateMode, &propval, PTP_DTC_UINT16); + if (ret == PTP_RC_OK) params->canon_event_mode = propval.u16; + } + + if (ptp_property_issupported(params, PTP_DPC_CANON_CaptureTransferMode)) { + if ((GP_OK == gp_setting_get("ptp2","capturetarget",buf)) && !strcmp(buf,"sdram")) + propval.u16 = xmode = CANON_TRANSFER_MEMORY; + else + propval.u16 = xmode = CANON_TRANSFER_CARD; + + if (xmode == CANON_TRANSFER_CARD) { + PTPStorageIDs storageids; + + ret = ptp_getstorageids(params, &storageids); + if (ret == PTP_RC_OK) { + unsigned int k, stgcnt = 0; + for (k=0;kcanon_viewfinder_on) { /* disable during capture ... reenable later on. */ + C_PTP_REP_MSG (ptp_canon_viewfinderoff (params), + _("Canon disable viewfinder failed")); + viewfinderwason = 1; + params->canon_viewfinder_on = 0; + } + C_PTP_REP_MSG (ptp_check_event (params), + _("Canon Capture failed")); + +#if 0 + /* FIXME: For now, to avoid flash during debug */ + propval.u8 = 0; + ret = ptp_setdevicepropvalue(params, PTP_DPC_CANON_FlashMode, &propval, PTP_DTC_UINT8); +#endif + C_PTP_REP_MSG (ptp_canon_initiatecaptureinmemory (params), + _("Canon Capture failed")); + sawcapturecomplete = 0; + /* Checking events in stack. */ + event_start = time_now(); + found = FALSE; + + gp_port_get_timeout (camera->port, &timeout); + CR (gp_port_set_timeout (camera->port, capture_timeout)); + while (time_since (event_start) < capture_timeout) { + gp_context_idle (context); + /* Make sure we do not poll USB interrupts after the capture complete event. + * MacOS libusb 1 has non-timing out interrupts so we must avoid event reads that will not + * result in anything. + */ + ret = ptp_check_event (params); + if (ret != PTP_RC_OK) + break; + + if (!ptp_get_one_event (params, &event)) { + /* FIXME: wait a bit? */ + usleep(20*1000); + continue; + } + GP_LOG_D ("Event: nparams=0x%X, code=0x%X, trans_id=0x%X, p1=0x%X, p2=0x%X, p3=0x%X", event.Nparam,event.Code,event.Transaction_ID, event.Param1, event.Param2, event.Param3); + switch (event.Code) { + case PTP_EC_ObjectRemoved: + ptp_remove_object_from_cache(params, event.Param1); + gp_filesystem_reset (camera->fs); + break; + case PTP_EC_ObjectAdded: { + /* add newly created object to internal structures. this hopefully just is a new folder */ + PTPObject *ob; + + GP_LOG_D ("Event ObjectAdded, object handle=0x%X.", newobject); + + ret = ptp_object_want (params, event.Param1, PTPOBJECT_OBJECTINFO_LOADED, &ob); + if (ret != PTP_RC_OK) + break; + /* this might be just the folder add, ignore that. */ + if (ob->oi.ObjectFormat == PTP_OFC_Association) { + /* new directory ... mark fs as to be refreshed */ + gp_filesystem_reset (camera->fs); /* FIXME: implement more lightweight folder add */ + break; + } else { + /* new file */ + newobject = event.Param1; + /* FALLTHROUGH */ + } + /* FALLTHROUGH */ + } + case PTP_EC_CANON_RequestObjectTransfer: { + int j; + + newobject = event.Param1; + GP_LOG_D ("Event PTP_EC_CANON_RequestObjectTransfer, object handle=0x%X.", newobject); + /* drain the event queue further */ + for (j=0;j<2;j++) { + ret = ptp_check_event (params); + while (ptp_get_one_event (params, &event) && !sawcapturecomplete) { + GP_LOG_D ("evdata: L=0x%X, C=0x%X, trans_id=0x%X, p1=0x%X, p2=0x%X, p3=0x%X", event.Nparam,event.Code,event.Transaction_ID, event.Param1, event.Param2, event.Param3); + if (event.Code == PTP_EC_CaptureComplete) + sawcapturecomplete = 1; + } + if (sawcapturecomplete) + break; + usleep(20*1000); + } + /* Marcus: Not sure if we really needs this. This refocuses the camera. + ret = ptp_canon_reset_aeafawb(params,7); + */ + found = TRUE; + break; + } + case PTP_EC_CaptureComplete: + GP_LOG_D ("Event: Capture complete."); + sawcapturecomplete = 1; + break; + default: + GP_LOG_D ("Event unhandled: nparams=0x%X, code=0x%X, trans_id=0x%X, p1=0x%X, p2=0x%X, p3=0x%X", + event.Nparam, event.Code, event.Transaction_ID, event.Param1, event.Param2, event.Param3 + ); + break; + } + if (found == TRUE) + break; + } + CR (gp_port_set_timeout (camera->port, timeout)); + /* Catch event, attempt 2 */ + while (!sawcapturecomplete) { + ret = ptp_check_event (params); + if (ret != PTP_RC_OK) + break; + while (ptp_get_one_event (params, &event)) { + if (event.Code==PTP_EC_CaptureComplete) { + GP_LOG_D ("Event: capture complete(2)."); + sawcapturecomplete = 1; + break; + } + } + /* FIXME: wait backoff */ + GP_LOG_D ("Event: 0x%X (2)", event.Code); + } + if (!found) { + GP_LOG_D ("ERROR: Capture timed out!"); + return GP_ERROR_TIMEOUT; + } + if (viewfinderwason) { /* disable during capture ... reenable later on. */ + viewfinderwason = 0; + C_PTP_REP_MSG (ptp_canon_viewfinderon (params), + _("Canon enable viewfinder failed")); + params->canon_viewfinder_on = 1; + } + + /* FIXME: handle multiple images (as in BurstMode) */ + C_PTP (ptp_getobjectinfo (params, newobject, &oi)); + + if (oi.ParentObject != 0) { + if (xmode != CANON_TRANSFER_CARD) { + fprintf (stderr,"parentobject is 0x%x, but not in card mode?\n", oi.ParentObject); + } + CR (add_object (camera, newobject, context)); + strcpy (path->name, oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)oi.StorageID); + get_folder_from_handle (camera, oi.StorageID, oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + return gp_filesystem_append (camera->fs, path->folder, path->name, context); + } else { + if (xmode == CANON_TRANSFER_CARD) { + fprintf (stderr,"parentobject is 0, but not in memory mode?\n"); + } + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx",(unsigned long)oi.StorageID); + sprintf (path->name, "capt%04d.jpg", params->capcnt++); + return add_objectid_and_upload (camera, path, context, newobject, &oi); + } +} + + +static int +camera_sony_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) +{ + PTPParams *params = &camera->pl->params; + PTPPropertyValue propval; + PTPContainer event; + PTPObjectInfo oi; + uint32_t newobject = 0; + PTPDevicePropDesc dpd; + struct timeval event_start; + + C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_CompressionSetting, &dpd)); + + GP_LOG_D ("dpd.CurrentValue.u8 = %x", dpd.CurrentValue.u8); + GP_LOG_D ("dpd.FactoryDefaultValue.u8 = %x", dpd.FactoryDefaultValue.u8); + + if (dpd.CurrentValue.u8 == 0) + dpd.CurrentValue.u8 = dpd.FactoryDefaultValue.u8; + if (dpd.CurrentValue.u8 == 0x13) { + GP_LOG_D ("expecting raw+jpeg capture"); + } + + /* half-press */ + propval.u16 = 2; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_AutoFocus, &propval, PTP_DTC_UINT16)); + + /* full-press */ + propval.u16 = 2; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_Capture, &propval, PTP_DTC_UINT16)); + + /* Check if we are in manual focus to skip the wait for focus */ + C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_FocusMode, &dpd)); + if (dpd.CurrentValue.u16 != 1) { /* 1 is Manual .. no need to wait there for focusing */ + + /* Now hold down the shutter button for a bit. We probably need to hold it as long as it takes to + * get focus, indicated by the 0xD213 property. But hold it for at most 1 second. + */ + + GP_LOG_D ("holding down shutterbutton"); + event_start = time_now(); + do { + /* needed on older cameras like the a58, check for events ... */ + C_PTP (ptp_check_event (params)); + if (ptp_get_one_event(params, &event)) { + GP_LOG_D ("during event.code=%04x Param1=%08x", event.Code, event.Param1); + if ( (event.Code == PTP_EC_Sony_PropertyChanged) && + (event.Param1 == PTP_DPC_SONY_FocusFound) + ) { + GP_LOG_D ("SONY FocusFound change received, 0xd213... ending press"); + break; + } + if (event.Code == PTP_EC_Sony_ObjectAdded) { + newobject = event.Param1; + GP_LOG_D ("SONY ObjectAdded received, ending wait"); + break; + } + } + + /* Alternative code in case we miss the event */ + + C_PTP (ptp_sony_getalldevicepropdesc (params)); /* avoid caching */ + C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_SONY_FocusFound, &dpd)); + GP_LOG_D ("DEBUG== 0xd213 after shutter press = %d", dpd.CurrentValue.u8); + /* if prop 0xd213 = 2 or 3 (for rx0), the focus seems to be achieved */ + if (dpd.CurrentValue.u8 == 2 || dpd.CurrentValue.u8 == 3) { + GP_LOG_D ("SONY Property change seen, 0xd213... ending press"); + break; + } + + } while (time_since (event_start) < 1000); + } + GP_LOG_D ("releasing shutterbutton"); + + /* release full-press */ + propval.u16 = 1; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_Capture, &propval, PTP_DTC_UINT16)); + + /* release half-press */ + propval.u16 = 1; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_AutoFocus, &propval, PTP_DTC_UINT16)); + + GP_LOG_D ("waiting for image availability"); + event_start = time_now(); + do { + /* break if we got it from above focus wait already for some reason, seen on A6000 */ + if (newobject) break; +#if 1 + /* needed on older cameras like the a58, check for events ... */ + /* This would be unsafe if we get an out-of-order event with no objects present, but + * we drained all events above */ + C_PTP (ptp_check_event_queue (params)); + if (ptp_get_one_event(params, &event)) { + GP_LOG_D ("during event.code=%04x Param1=%08x", event.Code, event.Param1); + if (event.Code == PTP_EC_Sony_ObjectAdded) { + newobject = event.Param1; + GP_LOG_D ("SONY ObjectAdded received, ending wait"); + break; + } + } +#endif + + C_PTP (ptp_sony_getalldevicepropdesc (params)); /* avoid caching */ + C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_SONY_ObjectInMemory, &dpd)); + GP_LOG_D ("DEBUG== 0xd215 after capture = %d", dpd.CurrentValue.u16); + + /* if prop 0xd215 > 0x8000, the object in RAM is available at location 0xffffc001 */ + /* This variable also turns to 1 , but downloading then will crash the firmware + * we seem to need to wait for 0x8000 */ + if (dpd.CurrentValue.u16 >= 0x8000) { + GP_LOG_D ("SONY ObjectInMemory count change to 0x%x seen, ending wait", dpd.CurrentValue.u16); + newobject = 0xffffc001; + if (dpd.CurrentValue.u16 == 0x8001) { + /* Also synthesize a capture complete event, if its just 1 image. */ + event.Code = PTP_EC_CaptureComplete; + event.Nparam = 0; + ptp_add_event (params, &event); + } + break; + } + + /* 30 seconds are maximum capture time currently, so use 30 seconds + 5 seconds image saving at most. */ + } while (time_since (event_start) < 35000); + GP_LOG_D ("ending image availability"); + + /* If the camera does not report object presence, it will crash if we access 0xffffc001 ... */ + if (!newobject) { + GP_LOG_E("no object found during event polling. perhaps no focus..."); + return GP_ERROR; + } + /* FIXME: handle multiple images (as in BurstMode) */ + C_PTP (ptp_getobjectinfo (params, newobject, &oi)); + + sprintf (path->folder,"/"); + if (oi.ObjectFormat == PTP_OFC_SONY_RAW) + sprintf (path->name, "capt%04d.arw", params->capcnt++); + else + sprintf (path->name, "capt%04d.jpg", params->capcnt++); + return add_objectid_and_upload (camera, path, context, newobject, &oi); +} + +static int +camera_fuji_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) +{ + PTPParams *params = &camera->pl->params; + PTPPropertyValue propval; + PTPObjectHandles handles, beforehandles; + int tries; + uint32_t newobject = 0, newobject2 = 0; + PTPContainer event; + + GP_LOG_D ("camera_fuji_capture"); + if (params->inliveview) { + GP_LOG_D ("terminating running liveview"); + params->inliveview = 0; + C_PTP (ptp_terminateopencapture (params,params->opencapture_transid)); + } + + C_PTP (ptp_getobjecthandles (params, PTP_HANDLER_SPECIAL, 0x000000, 0x000000, &beforehandles)); + + /* focus */ + propval.u16 = 0x0200; + C_PTP_REP (ptp_setdevicepropvalue (params, 0xd208, &propval, PTP_DTC_UINT16)); + C_PTP_REP(ptp_initiatecapture(params, 0x00000000, 0x00000000)); + + /* poll camera until it is ready */ + propval.u16 = 0x0001; + while (propval.u16 == 0x0001) { + ptp_getdevicepropvalue (params, 0xd209, &propval, PTP_DTC_UINT16); + GP_LOG_D ("XXX Ready to shoot? %X", propval.u16); + } + /* 2 - means OK apparently, 3 - means failed and initiatecapture will get busy. */ + if (propval.u16 == 3) { /* reported on out of focus */ + gp_context_error (context, _("Fuji Capture failed: Perhaps no auto-focus?")); + return GP_ERROR; + } + + /* shoot */ + propval.u16 = 0x0304; + C_PTP_REP (ptp_setdevicepropvalue (params, 0xd208, &propval, PTP_DTC_UINT16)); + C_PTP_REP(ptp_initiatecapture(params, 0x00000000, 0x00000000)); + + /* debug code currently. not working as-is */ + if (params->deviceinfo.Model && !strcmp(params->deviceinfo.Model,"X-T1")) { // X-T1 needs this + /* poll camera until it is ready */ + propval.u16 = 0x0000; + int loops = 0, i; + uint16_t *events; + uint16_t count, ready = 0; + while (loops < 3300) { // loop for about 33 seconds max + ptp_fuji_getevents (params, &events, &count); + if(count > 0) { + for(i = 0; i < count; i++) { + if(events[i] == 0xd20d) { + ready = 1; + break; + } + } + free(events); + if(ready) break; + } + C_PTP_REP (ptp_check_event (params)); + usleep(10000); + i++; + } + } + + + /* poll camera until it is ready */ + do { + uint16_t ret, count = 0; + uint16_t *events = NULL; + + ret = ptp_fuji_getevents (params, &events, &count); + if (ret != PTP_RC_OK) { + GP_LOG_D ("XXX d212 property did not work, error 0x%04x, bypassing.", ret); + break; + } + GP_LOG_D ("XXX Ready after shooting? count = %d", count); + free (events); + C_PTP_REP (ptp_check_event (params)); + if (count) break; + } while (1); + + /* FIXME: Marcus ... I need to review this when I get hands on a camera ... the objecthandles loop needs to go */ + /* Reporter in https://github.com/gphoto/libgphoto2/issues/133 says only 1 event ever is sent, so this does not work */ + /* there is a ObjectAdded event being sent */ + + /* Marcus: X-Pro2 in current setup also sends just 1 event for the first capture, then none. + * We might be missing something after capture. + * But we need to drain the event queue, otherwise wait_event will see this ObjectAdded event again. */ + C_PTP_REP (ptp_check_event (params)); + + while (ptp_get_one_event(params, &event)) { + switch (event.Code) { + case PTP_EC_ObjectAdded: + newobject2 = event.Param1; + break; + default: + GP_LOG_D ("unexpected unhandled event Code %04x, Param 1 %08x", event.Code, event.Param1); + break; + } + } + /* If we got no event seconds duplicate the nikon broken capture, as we do not know how to get events yet */ + + tries = 35; + GP_LOG_D ("XXXX missing fuji objectadded events workaround"); + + /* clear path, so we get defined results even without object info */ + path->name[0]='\0'; + path->folder[0]='\0'; + + while (tries--) { + unsigned int i; + uint16_t ret = ptp_getobjecthandles (params, PTP_HANDLER_SPECIAL, 0x000000, 0x000000, &handles); + if (ret != PTP_RC_OK) + break; + + /* if (handles.n == params->handles.n) + * continue; + * While this is a potential optimization, lets skip it for now. + */ + newobject = 0; + for (i=0;ioi.ObjectFormat == PTP_OFC_Association) { + GP_LOG_D ("new object 0x%08x is a directory, continuing", handles.Handler[i]); + continue; + } + if (newobject) { + /* we already got one image ... means a secondary image in RAW+JPG. Push this to the event queue. */ + event.Code = PTP_EC_ObjectAdded; + event.Param1 = newobject; + ptp_add_event (params, &event); + } + newobject = handles.Handler[i]; + GP_LOG_D ("newobject 0x%08x, newobject2 0x%08x", newobject, newobject2); + /* we found a new file */ + strcpy (path->name, ob->oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)ob->oi.StorageID); + get_folder_from_handle (camera, ob->oi.StorageID, ob->oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + add_objectid_and_upload (camera, path, context, newobject, &ob->oi); + /* we need to proceed to download all images, in cases of RAW+JPG capture */ + } + + free (handles.Handler); + C_PTP_REP (ptp_check_event (params)); + if (newobject) + break; + usleep(1000*1000); /* wait 1 second for image to appear */ + } + free (beforehandles.Handler); + + if (!newobject) { + GP_LOG_D ("fuji object added no new file found after 5 seconds?!?"); + return GP_ERROR; + } + + return GP_OK; +} + +static int +camera_panasonic_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) +{ + PTPParams *params = &camera->pl->params; + PTPContainer event; + uint32_t newobject = 0; + struct timeval event_start; + int back_off_wait = 0; + PTPObject *ob = NULL; + + //C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_CompressionSetting, &dpd)); + + //GP_LOG_D ("dpd.CurrentValue.u8 = %x", dpd.CurrentValue.u8); + //GP_LOG_D ("dpd.FactoryDefaultValue.u8 = %x", dpd.FactoryDefaultValue.u8); + + //if (dpd.CurrentValue.u8 == 0) + // dpd.CurrentValue.u8 = dpd.FactoryDefaultValue.u8; + //if (dpd.CurrentValue.u8 == 0x13) { + // GP_LOG_D ("expecting raw+jpeg capture"); + //} + + uint32_t currentVal; + uint16_t valuesize; + uint32_t waitMS = 1000; + + ptp_panasonic_getdeviceproperty(params, 0x2000030, &valuesize, ¤tVal); + + float f; + if(currentVal == 0xFFFFFFFF) { + waitMS = 1000; + } else if(currentVal & 0x80000000) { + currentVal &= ~0x80000000; + f = (float) currentVal; + waitMS = (uint32_t)f + 1000; + } else { + waitMS = 1000; + } + + + // clear out old events + GP_LOG_D ("**** GH5: checking old events..."); + C_PTP_REP (ptp_check_event (params)); + GP_LOG_D ("**** GH5: draining old events..."); + while (ptp_get_one_event(params, &event)); + + GP_LOG_D ("**** GH5: trigger capture..."); + C_PTP_REP (ptp_panasonic_capture(params)); + + usleep(waitMS * 1000); + + event_start = time_now(); + + do { + GP_LOG_D ("**** GH5: checking for new object..."); + C_PTP_REP (ptp_check_event (params)); + + while (ptp_get_one_event(params, &event)) { + switch (event.Code) { + case 0xC101: + ptp_panasonic_9401(params, event.Param1); // not sure if this is needed or what this does (following LUMIXTether) + case 0xC107: + //event_start = time_now(); // still working... + break; + case PTP_EC_PANASONIC_ObjectAdded: + case PTP_EC_PANASONIC_ObjectAddedSDRAM: /* marcus: check if this works */ + newobject = event.Param1; + C_PTP_REP (ptp_object_want (params, newobject, PTPOBJECT_OBJECTINFO_LOADED, &ob)); + + if (ob->oi.ObjectFormat != PTP_OFC_Association) + goto downloadfile; + newobject = 0; + /* new folder ... wait a bit longer */ + break; + default: + GP_LOG_D ("unexpected unhandled event Code %04x, Param 1 %08x", event.Code, event.Param1); + break; + } + } + } while (waiting_for_timeout (&back_off_wait, event_start, 65000)); /* wait for 66 seconds after busy is no longer signaled */ + +downloadfile: + + usleep(50000); // it seems there can be an error if the object is accessed too soon + + path->name[0]='\0'; + path->folder[0]='\0'; + + if (newobject != 0) { + C_PTP_REP (ptp_object_want (params, newobject, PTPOBJECT_OBJECTINFO_LOADED, &ob)); + + strcpy (path->name, ob->oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)ob->oi.StorageID); + get_folder_from_handle (camera, ob->oi.StorageID, ob->oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + + CR (gp_filesystem_append (camera->fs, path->folder, path->name, context)); + + /* we also get the fs info for free, so just set it */ + CameraFileInfo info; + info.file.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | + GP_FILE_INFO_SIZE | GP_FILE_INFO_MTIME; + strcpy_mime (info.file.type, params->deviceinfo.VendorExtensionID, ob->oi.ObjectFormat); + info.file.width = ob->oi.ImagePixWidth; + info.file.height = ob->oi.ImagePixHeight; + info.file.size = ob->oi.ObjectCompressedSize; + info.file.mtime = time(NULL); + + info.preview.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | + GP_FILE_INFO_SIZE; + strcpy_mime (info.preview.type, params->deviceinfo.VendorExtensionID, ob->oi.ThumbFormat); + info.preview.width = ob->oi.ThumbPixWidth; + info.preview.height = ob->oi.ThumbPixHeight; + info.preview.size = ob->oi.ThumbCompressedSize; + GP_LOG_D ("setting fileinfo in fs"); + return gp_filesystem_set_info_noop(camera->fs, path->folder, path->name, info, context); + } + return GP_ERROR; +} + +static int +camera_olympus_omd_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) +{ + PTPParams *params = &camera->pl->params; + PTPContainer event; + uint32_t newobject = 0; + struct timeval event_start; + int back_off_wait = 0; + PTPPropertyValue propval; + + // clear out old events + //C_PTP_REP (ptp_check_event (params)); + //while (ptp_get_one_event(params, &event)); + + C_PTP_REP (ptp_getdevicepropvalue (params, PTP_DPC_OLYMPUS_CaptureTarget, &propval, PTP_DTC_UINT16)); + C_PTP_REP (ptp_olympus_omd_capture(params)); + + usleep(100); + + event_start = time_now(); + do { + C_PTP_REP (ptp_check_event (params)); + + while (ptp_get_one_event(params, &event)) { + switch (event.Code) { + case 0xc002: + case PTP_EC_ObjectAdded: + newobject = event.Param1; + goto downloadfile; + case 0xc003: +#if 0 + { /* we seem to receive the event when ready ... not sure if this is the right trigger, as it has unrelated parameters */ + CameraFile *file; + unsigned char *data = NULL; + unsigned int size = 0; + CameraFileInfo info; + int ret; + + C_PTP_REP (ptp_olympus_sdram_image(params, &data, &size)); + + gp_file_new (&file); + gp_file_set_data_and_size (file, (char*)data, size); + + sprintf(path->folder, "/store_deadbeef"); + sprintf(path->name, "capt%04d.jpg", params->capcnt++); + + ret = gp_filesystem_append(camera->fs, path->folder, path->name, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + ret = gp_filesystem_set_file_noop(camera->fs, path->folder, path->name, GP_FILE_TYPE_NORMAL, file, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + memset(&info, 0, sizeof(info)); + /* We also get the fs info for free, so just set it */ + info.file.fields = GP_FILE_INFO_TYPE | GP_FILE_INFO_SIZE | GP_FILE_INFO_MTIME; + strcpy (info.file.type, GP_MIME_JPEG); + info.file.size = size; + info.file.mtime = time(NULL); + + gp_filesystem_set_info_noop(camera->fs, path->folder, path->name, info, context); + return GP_OK; + } +#endif + default: + GP_LOG_D ("unexpected unhandled event Code %04x, Param 1 %08x", event.Code, event.Param1); + break; + } + } + } while (waiting_for_timeout (&back_off_wait, event_start, 65000)); /* wait for 0.5 seconds after busy is no longer signaled */ + +downloadfile: + + path->name[0]='\0'; + path->folder[0]='\0'; + + if (newobject != 0) { + PTPObject *ob; + + C_PTP_REP (ptp_object_want (params, newobject, PTPOBJECT_OBJECTINFO_LOADED, &ob)); + + strcpy (path->name, ob->oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)ob->oi.StorageID); + get_folder_from_handle (camera, ob->oi.StorageID, ob->oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + + CR (gp_filesystem_append (camera->fs, path->folder, path->name, context)); + + /* we also get the fs info for free, so just set it */ + CameraFileInfo info; + info.file.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | + GP_FILE_INFO_SIZE | GP_FILE_INFO_MTIME; + strcpy_mime (info.file.type, params->deviceinfo.VendorExtensionID, ob->oi.ObjectFormat); + info.file.width = ob->oi.ImagePixWidth; + info.file.height = ob->oi.ImagePixHeight; + info.file.size = ob->oi.ObjectCompressedSize; + info.file.mtime = time(NULL); + + info.preview.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | + GP_FILE_INFO_SIZE; + strcpy_mime (info.preview.type, params->deviceinfo.VendorExtensionID, ob->oi.ThumbFormat); + info.preview.width = ob->oi.ThumbPixWidth; + info.preview.height = ob->oi.ThumbPixHeight; + info.preview.size = ob->oi.ThumbCompressedSize; + GP_LOG_D ("setting fileinfo in fs"); + return gp_filesystem_set_info_noop(camera->fs, path->folder, path->name, info, context); + } + return GP_ERROR; +} + + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + PTPContainer event; + PTPParams *params = &camera->pl->params; + uint32_t newobject = 0x0; + int done,tries; + PTPObjectHandles beforehandles; + + /* adjust if we ever do sound or movie capture */ + if (type != GP_CAPTURE_IMAGE) + return GP_ERROR_NOT_SUPPORTED; + + SET_CONTEXT_P(params, context); + camera->pl->checkevents = TRUE; + + /* first, draing existing events if the caller did not do it. */ + while (ptp_get_one_event(params, &event)) { + GP_LOG_D ("draining unhandled event Code %04x, Param 1 %08x", event.Code, event.Param1); + } + + /* Do not use the enhanced capture methods for now. */ + if ((params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) && NIKON_BROKEN_CAP(params)) + goto fallback; + + /* 3rd gen style nikon capture, can do both sdram and card */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) && + ptp_operation_issupported(params, PTP_OC_NIKON_InitiateCaptureRecInMedia) + ) { + char buf[1024]; + int sdram = 0; + int af = 1; + + if ((GP_OK != gp_setting_get("ptp2","capturetarget",buf)) || !strcmp(buf,"sdram")) + sdram = 1; + if ((GP_OK != gp_setting_get("ptp2","autofocus",buf)) || !strcmp(buf,"off")) + af = 0; + + return camera_nikon_capture (camera, type, path, af, sdram, context); + } + + /* 1st gen, 2nd gen nikon capture only go to SDRAM */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) && + (ptp_operation_issupported(params, PTP_OC_NIKON_Capture) || + ptp_operation_issupported(params, PTP_OC_NIKON_AfCaptureSDRAM) + )) { + int ret = GP_ERROR_NOT_SUPPORTED; + char buf[1024]; + int af = 1; + + if ((GP_OK != gp_setting_get("ptp2","autofocus",buf)) || !strcmp(buf,"off")) + af = 0; + if ((GP_OK != gp_setting_get("ptp2","capturetarget",buf)) || !strcmp(buf,"sdram")) + ret = camera_nikon_capture (camera, type, path, af, 1, context); + if (ret != GP_ERROR_NOT_SUPPORTED) + return ret; + /* for CARD capture and unsupported combinations, fall through */ + } + + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_GP_OLYMPUS_OMD) + return camera_olympus_omd_capture (camera, type, path, context); + + if (params->device_flags & DEVICE_FLAG_OLYMPUS_XML_WRAPPED) + return camera_olympus_xml_capture (camera, type, path, context); + + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ptp_operation_issupported(params, PTP_OC_CANON_InitiateCaptureInMemory) + ) { + return camera_canon_capture (camera, type, path, context); + } + + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ( ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteRelease) || + ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn) + ) + ) { + return camera_canon_eos_capture (camera, type, path, context); + } + + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_SONY) && + ptp_operation_issupported(params, PTP_OC_SONY_SetControlDeviceB) + ) { + return camera_sony_capture (camera, type, path, context); + } + + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_FUJI) && + ptp_operation_issupported(params, PTP_OC_InitiateCapture) + ) { + return camera_fuji_capture (camera, type, path, context); + } + + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_PANASONIC) && + ptp_operation_issupported(params, PTP_OC_PANASONIC_InitiateCapture) + ) { + return camera_panasonic_capture (camera, type, path, context); + } + + + if (!ptp_operation_issupported(params,PTP_OC_InitiateCapture)) { + gp_context_error(context, + _("Sorry, your camera does not support generic capture")); + return GP_ERROR_NOT_SUPPORTED; + } + +fallback: + /* broken capture ... we detect what was captured using added objects + * via the getobjecthandles array. here get the before state */ + if ((params->deviceinfo.VendorExtensionID==PTP_VENDOR_NIKON) && NIKON_BROKEN_CAP(params)) + C_PTP (ptp_getobjecthandles (params, PTP_HANDLER_SPECIAL, 0x000000, 0x000000, &beforehandles)); + + /* A capture may take longer than the standard 8 seconds. + * The G5 for instance does, or in dark rooms ... + * Even 16 seconds might not be enough. (Marcus) + */ + /* ptp_initiatecapture() returns immediately, only the event + * indicating that the capure has been completed may occur after + * few seconds. moving down the code. (kil3r) + */ + C_PTP_REP (ptp_initiatecapture(params, 0x00000000, 0x00000000)); + CR (gp_port_set_timeout (camera->port, capture_timeout)); + /* A word of comments is worth here. + * After InitiateCapture camera should report with ObjectAdded event + * all newly created objects. However there might be more than one + * newly created object. There a two scenarios here, which may occur + * both at the time. + * 1) InitiateCapture trigers capture of more than one object if the + * camera is in burst mode for example. + * 2) InitiateCapture creates a number of objects, but not all + * objects represents images. This happens when the camera creates a + * folder for newly captured image(s). This may happen with the + * fresh, formatted flashcard or in burs mode if the camera is + * configured to create a dedicated folder for a burst of pictures. + * The newly created folder (an association object) is reported + * before the images that are stored after its creation. + * Thus we set CameraFilePath to the path to last object reported by + * the camera. + */ + + /* The Nikon way: Does not send AddObject event ... so try to detect it by checking what objects + * were added. */ + if ((params->deviceinfo.VendorExtensionID==PTP_VENDOR_NIKON) && NIKON_BROKEN_CAP(params)) { + PTPObjectHandles handles; + + tries = 5; + GP_LOG_D ("PTPBUG_NIKON_BROKEN_CAPTURE bug workaround"); + while (tries--) { + unsigned int i; + uint16_t ret = ptp_getobjecthandles (params, PTP_HANDLER_SPECIAL, 0x000000, 0x000000, &handles); + if (ret != PTP_RC_OK) + break; + + /* if (handles.n == params->handles.n) + * continue; + * While this is a potential optimization, lets skip it for now. + */ + newobject = 0; + for (i=0;ioi.ObjectFormat == PTP_OFC_Association) + continue; + newobject = handles.Handler[i]; + /* we found a new file */ + break; + } + free (handles.Handler); + if (newobject) + break; + C_PTP_REP (ptp_check_event (params)); + sleep(1); + } + free (beforehandles.Handler); + if (!newobject) + GP_LOG_D ("PTPBUG_NIKON_BROKEN_CAPTURE no new file found after 5 seconds?!?"); + goto out; + } + + CR (gp_port_set_timeout (camera->port, normal_timeout)); + + /* The standard defined way ... wait for some capture related events. */ + /* The Nikon 1 series emits ObjectAdded occasionaly after + * the CaptureComplete event, while others do it the other way + * round. Handle that case with some bitmask. */ + done = 0; tries = 20; + while (done != 3) { + uint16_t ret; + + C_PTP_REP (ptp_wait_event (params)); + + if (!ptp_get_one_event(params, &event)) { + usleep(1000); + if (done & 1) /* only wait 20 rounds for objectadded */ + if (!tries--) + break; + continue; + } + GP_LOG_D ("event.Code is %04x / param %08x", event.Code, event.Param1); + + switch (event.Code) { + case PTP_EC_ObjectRemoved: + ptp_remove_object_from_cache(params, event.Param1); + gp_filesystem_reset (camera->fs); + break; + case PTP_EC_ObjectAdded: { + PTPObject *ob; + + /* add newly created object to internal structures */ + ret = ptp_object_want (params, event.Param1, PTPOBJECT_OBJECTINFO_LOADED, &ob); + if (ret != PTP_RC_OK) + break; + + /* this might be just the folder add, ignore that. */ + if (ob->oi.ObjectFormat == PTP_OFC_Association) { + /* new directory ... mark fs as to be refreshed */ + gp_filesystem_reset (camera->fs); + } else { + newobject = event.Param1; + done |= 2; + if (NO_CAPTURE_COMPLETE(params)) + done|=1; + } + break; + } + case PTP_EC_StoreFull: + gp_context_error (context, _("Camera memorycard ran full during capture.")); + return GP_ERROR_NO_MEMORY; + case PTP_EC_CaptureComplete: + done |= 1; + break; + default: + GP_LOG_D ("Received event 0x%04x, ignoring (please report).",event.Code); + /* done = 1; */ + break; + } + } +out: + /* clear path, so we get defined results even without object info */ + path->name[0]='\0'; + path->folder[0]='\0'; + + if (newobject != 0) { + PTPObject *ob; + + C_PTP_REP (ptp_object_want (params, newobject, PTPOBJECT_OBJECTINFO_LOADED, &ob)); + strcpy (path->name, ob->oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)ob->oi.StorageID); + get_folder_from_handle (camera, ob->oi.StorageID, ob->oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + return gp_filesystem_append (camera->fs, path->folder, path->name, context); + } + return GP_ERROR; +} + +static int +camera_trigger_canon_eos_capture (Camera *camera, GPContext *context) +{ + PTPParams *params = &camera->pl->params; + int ret; + PTPCanon_changes_entry entry; + int back_off_wait = 0; + uint32_t result; + struct timeval focus_start; + PTPDevicePropDesc dpd; + + GP_LOG_D ("camera_trigger_canon_eos_capture"); + + if (!params->eos_captureenabled) + camera_prepare_capture (camera, context); + else + CR( camera_canon_eos_update_capture_target(camera, context, -1)); + + /* Get the initial bulk set of event data, otherwise + * capture might return busy. */ + ptp_check_eos_events (params); + while (ptp_get_one_eos_event (params, &entry)) + GP_LOG_D("discarding event type %d", entry.type); + + if (params->eos_camerastatus == 1) + return GP_ERROR_CAMERA_BUSY; + + if (have_eos_prop(params, PTP_VENDOR_CANON, PTP_DPC_CANON_EOS_CaptureDestination)) { + C_PTP (ptp_canon_eos_getdevicepropdesc (params, PTP_DPC_CANON_EOS_CaptureDestination, &dpd)); + if (dpd.CurrentValue.u32 == PTP_CANON_EOS_CAPTUREDEST_HD) { + C_PTP (ptp_canon_eos_getdevicepropdesc (params, PTP_DPC_CANON_EOS_AvailableShots, &dpd)); + if (dpd.CurrentValue.u32 < 100) { + /* Tell the camera we have enough free space on the PC */ + ptp_canon_eos_setuilock(params); + LOG_ON_PTP_E (ptp_canon_eos_pchddcapacity(params, 0x0fffffff, 0x00001000, 0x00000001)); + ptp_canon_eos_resetuilock(params); + } + } + } + + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn)) { + if (!is_canon_eos_m (params)) { + /* Regular EOS */ + int manualfocus = 0, foundfocusinfo = 0; + + /* are we in manual focus mode ... value would be 3 */ + if (PTP_RC_OK == ptp_canon_eos_getdevicepropdesc (params, PTP_DPC_CANON_EOS_FocusMode, &dpd)) { + if ((dpd.DataType == PTP_DTC_UINT16) && (dpd.CurrentValue.u16 == 3)) { + manualfocus = 1; + /* will do 1 pass through the focusing loop for good measure */ + GP_LOG_D("detected manual focus. skipping focus detection logic"); + } + } + ret = GP_OK; + /* half press now - initiate focusing and wait for result */ + C_PTP_REP_MSG (ptp_canon_eos_remotereleaseon (params, 1, 0), _("Canon EOS Half-Press failed")); + + focus_start = time_now(); + do { + int foundevents = 0; + + C_PTP_REP_MSG (ptp_check_eos_events (params), _("Canon EOS Get Changes failed")); + while (ptp_get_one_eos_event (params, &entry)) { + foundevents = 1; + GP_LOG_D("focusing - read event type %d", entry.type); + if (entry.type == PTP_CANON_EOS_CHANGES_TYPE_FOCUSINFO) { + GP_LOG_D("focusinfo content: %s", entry.u.info); + foundfocusinfo = 1; + if (strstr(entry.u.info,"0000200")) { + gp_context_error (context, _("Canon EOS Capture failed to release: Perhaps no focus?")); + ret = GP_ERROR; + } + } + if ( (entry.type == PTP_CANON_EOS_CHANGES_TYPE_PROPERTY) && + (entry.u.propid == PTP_DPC_CANON_EOS_FocusInfoEx) + ) { + if (PTP_RC_OK == ptp_canon_eos_getdevicepropdesc (params, PTP_DPC_CANON_EOS_FocusInfoEx, &dpd)) { + GP_LOG_D("focusinfo prop content: %s", dpd.CurrentValue.str); + if (!strstr(dpd.CurrentValue.str,"select={}")) /* select={} means "no focus yet" */ + foundfocusinfo = 1; + ptp_free_devicepropdesc (&dpd); + } + } + } + /* We found focus information, so half way pressing has finished! */ + if (foundfocusinfo) + break; + /* for manual focus, at least wait until we get events */ + if (manualfocus && foundevents) + break; + /* when doing manual focus, wait at most 0.1 seconds */ + if (manualfocus && (time_since (focus_start) >= 100)) + break; + } while (waiting_for_timeout (&back_off_wait, focus_start, 2*1000)); /* wait 2 seconds for focus */ + + if (!foundfocusinfo && !manualfocus) { + GP_LOG_E("no focus info?\n"); + } + if (ret != GP_OK) { + C_PTP_REP_MSG (ptp_canon_eos_remotereleaseoff (params, 1), _("Canon EOS Half-Release failed")); + return ret; + } + /* full press now */ + + C_PTP_REP_MSG (ptp_canon_eos_remotereleaseon (params, 2, 0), _("Canon EOS Full-Press failed")); + /* no event check between */ + /* full release now */ + C_PTP_REP_MSG (ptp_canon_eos_remotereleaseoff (params, 2), _("Canon EOS Full-Release failed")); + ptp_check_eos_events (params); + + /* half release now */ + C_PTP_REP_MSG (ptp_canon_eos_remotereleaseoff (params, 1), _("Canon EOS Half-Release failed")); + } else { + /* Canon EOS M series */ + int button = 0, eos_m_focus_done = 0; + + C_PTP_REP_MSG (ptp_canon_eos_remotereleaseon (params, 3, 0), _("Canon EOS M Full-Press failed")); + focus_start = time_now(); + /* check if the capture was successful (the result is reported as a set of OLCInfoChanged events) */ + do { + ptp_check_eos_events (params); + while (ptp_get_one_eos_event (params, &entry)) { + GP_LOG_D ("entry type %04x", entry.type); + if (entry.type == PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN && entry.u.info && sscanf (entry.u.info, "Button %d", &button)) { + GP_LOG_D ("Button %d", button); + switch (button) { + /* Indicates a successful Half-Press(?) on M2, where it + * would precede any other value (unless in MF mode). + * So skip it and look for another button reported */ + case 2: + /* Reported in the self-timer mode during the delay + * period. May be followed by 1, 3 or 4 */ + case 7: + continue; + /* Full-Press successful */ + case 4: + eos_m_focus_done = 1; + break; + /* 3 indicates a Full-Press fail on M2 */ + /* 1 is a "normal" state, reported after a release. + On M10 also indicates a Full-Press fail */ + default: + eos_m_focus_done = 1; + gp_context_error (context, _("Canon EOS M Capture failed: Perhaps no focus?")); + } + break; + } + } + } while (!eos_m_focus_done && waiting_for_timeout (&back_off_wait, focus_start, 2*1000)); /* wait 2 seconds for focus */ + /* full release now (even if the press has failed) */ + C_PTP_REP_MSG (ptp_canon_eos_remotereleaseoff (params, 3), _("Canon EOS M Full-Release failed")); + ptp_check_eos_events (params); + /* NB: no error is returned in case of button == 7, which means + * the timer is still working, but no AF fail has been reported */ + if (button < 4) + return GP_ERROR; + } + } else { + C_PTP_REP_MSG (ptp_canon_eos_capture (params, &result), + _("Canon EOS Capture failed")); + + if ((result & 0x7000) == 0x2000) { /* also happened */ + gp_context_error (context, _("Canon EOS Capture failed: %x"), result); + return translate_ptp_result (result); + } + GP_LOG_D ("result is %d", result); + switch (result) { + case 0: /* OK */ + break; + case 1: gp_context_error (context, _("Canon EOS Capture failed to release: Perhaps no focus?")); + return GP_ERROR; + case 3: gp_context_error (context, _("Canon EOS Capture failed to release: Perhaps mirror up?")); + return GP_ERROR; + case 7: gp_context_error (context, _("Canon EOS Capture failed to release: Perhaps no more memory on card?")); + return GP_ERROR_NO_MEMORY; + case 8: gp_context_error (context, _("Canon EOS Capture failed to release: Card read-only?")); + return GP_ERROR_NO_MEMORY; + default:gp_context_error (context, _("Canon EOS Capture failed to release: Unknown error %d, please report."), result); + return GP_ERROR; + } + } + return GP_OK; +} + +static int +camera_trigger_capture (Camera *camera, GPContext *context) +{ + PTPParams *params = &camera->pl->params; + uint16_t ret; + char buf[1024]; + int sdram = 0; + int af = 1; + + GP_LOG_D ("camera_trigger_capture"); + + SET_CONTEXT_P(params, context); + + /* If there is no capturetarget set yet, the default is "sdram" */ + if (GP_OK != gp_setting_get("ptp2","capturetarget",buf)) + strcpy (buf, "sdram"); + + if (!strcmp(buf,"sdram")) + sdram = 1; + + if ((GP_OK != gp_setting_get("ptp2","autofocus",buf)) || !strcmp(buf,"off")) + af = 0; + + GP_LOG_D ("Triggering capture to %s, autofocus=%d", buf, af); + + /* Nilon V and J seem to like that */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) && + !params->controlmode && + ptp_operation_issupported(params,PTP_OC_NIKON_SetControlMode) + ) { + ret = ptp_nikon_setcontrolmode (params, 1); + /* FIXME: PTP_RC_NIKON_ChangeCameraModeFailed does not seem to be problematic */ + if (ret != PTP_RC_NIKON_ChangeCameraModeFailed) + C_PTP_REP (ret); + params->controlmode = 1; + } + + /* On Nikon 1 series, the liveview must be enabled before capture works */ + if (NIKON_1(params)) { + ret = ptp_nikon_start_liveview (params); + if ((ret != PTP_RC_OK) && (ret != PTP_RC_DeviceBusy)) + C_PTP_REP_MSG(ret, _("Failed to enable liveview on a Nikon 1, but it is required for capture")); + /* OK or busy, try to proceed ... */ + } + + /* Nikon 2 */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) && + ptp_operation_issupported(params, PTP_OC_NIKON_InitiateCaptureRecInMedia) + ) { + /* If in liveview mode, we have to run non-af capture */ + int inliveview = 0; + int tries; + PTPPropertyValue propval; + + C_PTP_REP (ptp_check_event (params)); + C_PTP_REP (nikon_wait_busy (params, 100, 2000)); /* lets wait 2 seconds */ + C_PTP_REP (ptp_check_event (params)); + + if (ptp_property_issupported (params, PTP_DPC_NIKON_LiveViewStatus)) { + ret = ptp_getdevicepropvalue (params, PTP_DPC_NIKON_LiveViewStatus, &propval, PTP_DTC_UINT8); + if (ret == PTP_RC_OK) + inliveview = propval.u8; + + if (inliveview) af = 0; + } + + tries = 200; + do { + ret = ptp_nikon_capture2 (params, af, sdram); + if (ret == PTP_RC_OK) + break; + + /* Nikon 1 ... if af is 0, it reports PTP_RC_NIKON_InvalidStatus */ + if (!af && ((ret == PTP_RC_NIKON_InvalidStatus))) { + ret = ptp_nikon_capture2 (params, 1, sdram); + if (ret == PTP_RC_OK) + break; + } + + /* busy means wait and the invalid status might go away */ + if ((ret != PTP_RC_DeviceBusy) && (ret != PTP_RC_NIKON_InvalidStatus) && (ret != 0xa207)) /* a207 on Nikon D850 */ + return translate_ptp_result (ret); + + usleep(2000); + /* sleep a bit perhaps ? or check events? */ + } while (tries--); + + /* busyness will be reported during the whole of the exposure time. */ + C_PTP_REP (nikon_wait_busy (params, 100, 200*1000)); /* lets wait 200 seconds */ + return GP_OK; + } + + /* Nikon */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) && + (ptp_operation_issupported(params, PTP_OC_NIKON_Capture) || + ptp_operation_issupported(params, PTP_OC_NIKON_AfCaptureSDRAM) + ) + && sdram + ) { + /* If in liveview mode, we have to run non-af capture */ + int inliveview = 0; + PTPPropertyValue propval; + + C_PTP_REP (ptp_check_event (params)); + C_PTP_REP (nikon_wait_busy (params, 20, 2000)); + C_PTP_REP (ptp_check_event (params)); + + if (ptp_property_issupported (params, PTP_DPC_NIKON_LiveViewStatus)) { + ret = ptp_getdevicepropvalue (params, PTP_DPC_NIKON_LiveViewStatus, &propval, PTP_DTC_UINT8); + if (ret == PTP_RC_OK) + inliveview = propval.u8; + } + + do { + if (!inliveview && ptp_operation_issupported (params,PTP_OC_NIKON_AfCaptureSDRAM)) + ret = ptp_nikon_capture_sdram (params); + else + ret = ptp_nikon_capture (params, 0xffffffff); + if ((ret != PTP_RC_OK) && (ret != PTP_RC_DeviceBusy)) + return translate_ptp_result (ret); + } while (ret == PTP_RC_DeviceBusy); + + C_PTP_REP (nikon_wait_busy (params, 100, 200*000)); /* lets wait 200 seconds */ + return GP_OK; + } + + /* Canon EOS */ + if ((params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ( ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteRelease) || + ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn)) + ) + return camera_trigger_canon_eos_capture (camera, context); + + /* Canon Powershot */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ptp_operation_issupported(params, PTP_OC_CANON_InitiateCaptureInMemory) + ) { + uint16_t xmode; + /*int viewfinderwason = 0;*/ + PTPPropertyValue propval; + + if (!ptp_property_issupported(params, PTP_DPC_CANON_FlashMode)) { + /* did not call --set-config capture=on, do it for user */ + CR (camera_prepare_capture (camera, context)); + if (!ptp_property_issupported(params, PTP_DPC_CANON_FlashMode)) { + gp_context_error (context, + _("Sorry, initializing your camera did not work. Please report this.")); + return GP_ERROR_NOT_SUPPORTED; + } + } + + if (ptp_property_issupported(params, PTP_DPC_CANON_CaptureTransferMode)) { + if (sdram) + propval.u16 = xmode = CANON_TRANSFER_MEMORY; + else + propval.u16 = xmode = CANON_TRANSFER_CARD; + + if (xmode == CANON_TRANSFER_CARD) { + PTPStorageIDs storageids; + + ret = ptp_getstorageids(params, &storageids); + if (ret == PTP_RC_OK) { + unsigned int k, stgcnt = 0; + + for (k=0;kcanon_viewfinder_on) { /* disable during capture ... reenable later on. */ + C_PTP_REP_MSG (ptp_canon_viewfinderoff (params), + _("Canon disable viewfinder failed")); + /*viewfinderwason = 1;*/ + params->canon_viewfinder_on = 0; + } + + #if 0 + /* FIXME: For now, to avoid flash during debug */ + propval.u8 = 0; + ret = ptp_setdevicepropvalue(params, PTP_DPC_CANON_FlashMode, &propval, PTP_DTC_UINT8); + #endif + while (1) { + ret = ptp_canon_initiatecaptureinmemory (params); + if (ret == PTP_RC_OK) + break; + if (ret == PTP_RC_DeviceBusy) { + GP_LOG_D ("Canon Powershot busy ... retrying..."); + gp_context_idle (context); + ptp_check_event (params); + usleep(10000); /* 10 ms ... fixme: perhaps experimental backoff? */ + continue; + } + C_PTP_REP_MSG (ret, _("Canon Capture failed")); + } + GP_LOG_D ("Canon Powershot capture triggered..."); + return GP_OK; + } + + /* Sony Alpha */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_SONY) && + ptp_operation_issupported(params, PTP_OC_SONY_SetControlDeviceB) + ) { + PTPPropertyValue propval; + struct timeval event_start; + PTPContainer event; + PTPDevicePropDesc dpd; + + /* half-press */ + propval.u16 = 2; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_AutoFocus, &propval, PTP_DTC_UINT16)); + + /* full-press */ + propval.u16 = 2; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_Capture, &propval, PTP_DTC_UINT16)); + + /* Wait for focus only in automatic focus mode */ + C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_FocusMode, &dpd)); + if (dpd.CurrentValue.u16 != 1) { /* 1 is Manual .. no need to wait there for focusing */ + /* Now hold down the shutter button for a bit. We probably need to hold it as long as it takes to + * get focus, indicated by the 0xD213 property. But hold it for at most 1 second. + */ + + GP_LOG_D ("holding down shutterbutton"); + event_start = time_now(); + do { + /* needed on older cameras like the a58, check for events ... */ + C_PTP (ptp_check_event (params)); + if (ptp_get_one_event(params, &event)) { + GP_LOG_D ("during event.code=%04x Param1=%08x", event.Code, event.Param1); + if ( (event.Code == PTP_EC_Sony_PropertyChanged) && + (event.Param1 == PTP_DPC_SONY_FocusFound) + ) { + GP_LOG_D ("SONY FocusFound change received, 0xd213... ending press"); + break; + } + } + + /* Alternative code in case we miss the event */ + + C_PTP (ptp_sony_getalldevicepropdesc (params)); /* avoid caching */ + C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_SONY_FocusFound, &dpd)); + GP_LOG_D ("DEBUG== 0xd213 after shutter press = %d", dpd.CurrentValue.u8); + /* if prop 0xd213 = 2 or 3 (for rx0), the focus seems to be achieved */ + if (dpd.CurrentValue.u8 == 2 || dpd.CurrentValue.u8 == 3) { + GP_LOG_D ("SONY Property change seen, 0xd213... ending press"); + break; + } + } while (time_since (event_start) < 1000); + } + GP_LOG_D ("releasing shutterbutton"); + + /* release full-press */ + propval.u16 = 1; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_Capture, &propval, PTP_DTC_UINT16)); + + /* release half-press */ + propval.u16 = 1; + C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_AutoFocus, &propval, PTP_DTC_UINT16)); + + return GP_OK; + } + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_FUJI) && + ptp_operation_issupported(params, PTP_OC_InitiateCapture) + ) { + PTPPropertyValue propval; + + /* focus */ + propval.u16 = 0x0200; + C_PTP_REP (ptp_setdevicepropvalue (params, 0xd208, &propval, PTP_DTC_UINT16)); + C_PTP_REP(ptp_initiatecapture(params, 0x00000000, 0x00000000)); + + /* poll camera until it is ready */ + propval.u16 = 0x0001; + while (propval.u16 == 0x0001) { + C_PTP_REP (ptp_getdevicepropvalue (params, 0xd209, &propval, PTP_DTC_UINT16)); + } + + /* shoot */ + propval.u16 = 0x0304; + C_PTP_REP (ptp_setdevicepropvalue (params, 0xd208, &propval, PTP_DTC_UINT16)); + C_PTP_REP(ptp_initiatecapture(params, 0x00000000, 0x00000000)); + + /* poll camera until it is ready */ + propval.u16 = 0x0000; + while (propval.u16 == 0x0000) { + C_PTP_REP (ptp_getdevicepropvalue (params, 0xd212, &propval, PTP_DTC_UINT64)); + } + } + +#if 0 + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteRelease) + ) { + return camera_canon_eos_capture (camera, type, path, context); + } +#endif + if (!ptp_operation_issupported(params,PTP_OC_InitiateCapture)) { + gp_context_error(context, + _("Sorry, your camera does not support generic capture")); + return GP_ERROR_NOT_SUPPORTED; + } + C_PTP_REP (ptp_initiatecapture(params, 0x00000000, 0x00000000)); + return GP_OK; +} + +static int +camera_wait_for_event (Camera *camera, int timeout, + CameraEventType *eventtype, void **eventdata, + GPContext *context) { + PTPContainer event; + PTPParams *params = &camera->pl->params; + uint32_t newobject = 0x0; + CameraFilePath *path; + uint16_t ret; + struct timeval event_start; + CameraFile *file; + CameraFileInfo info; + char *ximage, *mime; + int back_off_wait = 0; + int oldtimeout; + + SET_CONTEXT(camera, context); + GP_LOG_D ("waiting for events timeout %d ms", timeout); + memset (&event, 0, sizeof(event)); + *eventtype = GP_EVENT_TIMEOUT; + *eventdata = NULL; + + if (params->device_flags & DEVICE_FLAG_OLYMPUS_XML_WRAPPED) { + GP_LOG_D ("olympus setcameracontrolmode 2\n"); + C_PTP_REP (ptp_olympus_setcameracontrolmode (params, 2)); + } + + event_start = time_now(); + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + (ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteRelease) || + ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn)) + ) { + + if (!params->eos_captureenabled) + camera_prepare_capture (camera, context); + do { + PTPCanon_changes_entry entry; + + /* keep device alive */ + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_KeepDeviceOn)) C_PTP (ptp_canon_eos_keepdeviceon (params)); + + C_PTP_REP_MSG (ptp_check_eos_events (params), + _("Canon EOS Get Changes failed")); + while (ptp_get_one_eos_event (params, &entry)) { + back_off_wait = 0; + GP_LOG_D ("entry type %04x", entry.type); + switch (entry.type) { + case PTP_CANON_EOS_CHANGES_TYPE_OBJECTTRANSFER: + GP_LOG_D ("Found new object! OID 0x%x, name %s", (unsigned int)entry.u.object.oid, entry.u.object.oi.Filename); + free (entry.u.object.oi.Filename); + + newobject = entry.u.object.oid; + + C_MEM (path = malloc(sizeof(CameraFilePath))); + path->name[0]='\0'; + strcpy (path->folder,"/"); + ret = gp_file_new(&file); + if (ret!=GP_OK) return ret; + sprintf (path->name, "capt%04d.", params->capcnt++); + if ((entry.u.object.oi.ObjectFormat == PTP_OFC_CANON_CRW) || (entry.u.object.oi.ObjectFormat == PTP_OFC_CANON_CRW3)) { + strcat(path->name, "cr2"); + gp_file_set_mime_type (file, GP_MIME_CRW); + mime = GP_MIME_CRW; + } else if (entry.u.object.oi.ObjectFormat == PTP_OFC_CANON_CR3) { + strcat(path->name, "cr3"); + gp_file_set_mime_type (file, GP_MIME_CR3); + mime = GP_MIME_CR3; + } else { + strcat(path->name, "jpg"); + gp_file_set_mime_type (file, GP_MIME_JPEG); + mime = GP_MIME_JPEG; + } + gp_file_set_mtime (file, time(NULL)); + + GP_LOG_D ("trying to get object size=0x%lx", (unsigned long)entry.u.object.oi.ObjectCompressedSize); + +#define BLOBSIZE 1*1024*1024 + /* Trying to read this in 1 block might be the cause of crashes of newer EOS */ + { + uint32_t offset = 0; + + while (offset < entry.u.object.oi.ObjectCompressedSize) { + uint32_t xsize = entry.u.object.oi.ObjectCompressedSize - offset; + unsigned char *yimage = NULL; + + if (xsize > BLOBSIZE) + xsize = BLOBSIZE; + C_PTP_REP (ptp_getpartialobject (params, newobject, offset, xsize, &yimage, &xsize)); + gp_file_append (file, (char*)yimage, xsize); + free (yimage); + offset += xsize; + } + } + /*old C_PTP_REP (ptp_canon_eos_getpartialobject (params, newobject, 0, oi.ObjectCompressedSize, &ximage));*/ + /* C_PTP_REP (ptp_canon_eos_getpartialobject (params, newobject, 0, entry.u.object.oi.ObjectCompressedSize, (unsigned char**)&ximage));*/ +#undef BLOBSIZE + C_PTP_REP (ptp_canon_eos_transfercomplete (params, newobject)); + +/* + ret = gp_file_set_data_and_size(file, (char*)ximage, entry.u.object.oi.ObjectCompressedSize); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } +*/ + + ret = gp_filesystem_append(camera->fs, path->folder, path->name, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + ret = gp_filesystem_set_file_noop(camera->fs, path->folder, path->name, GP_FILE_TYPE_NORMAL, file, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + memset(&info, 0, sizeof(info)); + /* We also get the fs info for free, so just set it */ + info.file.fields = GP_FILE_INFO_TYPE | GP_FILE_INFO_SIZE | GP_FILE_INFO_MTIME; + strcpy (info.file.type, mime); + info.file.size = entry.u.object.oi.ObjectCompressedSize; + info.file.mtime = time(NULL); + + gp_filesystem_set_info_noop(camera->fs, path->folder, path->name, info, context); + *eventtype = GP_EVENT_FILE_ADDED; + *eventdata = path; + /* We have now handed over the file, disclaim responsibility by unref. */ + gp_file_unref (file); + return GP_OK; + case PTP_CANON_EOS_CHANGES_TYPE_OBJECTCONTENT_CHANGE: { + PTPObject *ob; + + GP_LOG_D ("Found object content changed! OID 0x%x", (unsigned int)entry.u.object.oid); + newobject = entry.u.object.oid; + /* It might have gone away in the meantime */ + if (PTP_RC_OK != ptp_object_want(params, newobject, PTPOBJECT_OBJECTINFO_LOADED, &ob)) + break; + debug_objectinfo(params, newobject, &ob->oi); + + C_MEM (path = malloc(sizeof(CameraFilePath))); + path->name[sizeof(path->name)-1] = '\0'; + strncpy (path->name, ob->oi.Filename, sizeof (path->name)-1); + + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)ob->oi.StorageID); + get_folder_from_handle (camera, ob->oi.StorageID, ob->oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + + *eventtype = GP_EVENT_FILE_CHANGED; + *eventdata = path; + return GP_OK; + } + case PTP_CANON_EOS_CHANGES_TYPE_OBJECTINFO: + case PTP_CANON_EOS_CHANGES_TYPE_OBJECTINFO_CHANGE: { + PTPObject *ob; + + /* just add it to the filesystem, and return in CameraPath */ + GP_LOG_D ("Found new objectinfo! OID 0x%x, name %s", (unsigned int)entry.u.object.oid, entry.u.object.oi.Filename); + if ( (entry.type == PTP_CANON_EOS_CHANGES_TYPE_OBJECTINFO_CHANGE) && + (PTP_RC_OK != ptp_object_find (params, entry.u.object.oid, &ob)) + ) { + GP_LOG_D ("not found in cache, assuming deleted already."); + break; + } + newobject = entry.u.object.oid; + add_object (camera, newobject, context); + C_MEM (path = malloc(sizeof(CameraFilePath))); + path->name[sizeof(path->name)-1] = '\0'; + strncpy (path->name, entry.u.object.oi.Filename, sizeof (path->name)-1); + free (entry.u.object.oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)entry.u.object.oi.StorageID); + get_folder_from_handle (camera, entry.u.object.oi.StorageID, entry.u.object.oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + gp_filesystem_append (camera->fs, path->folder, path->name, context); + if (entry.u.object.oi.ObjectFormat == PTP_OFC_Association) /* not sure if we would get folder changed */ + *eventtype = GP_EVENT_FOLDER_ADDED; + else + *eventtype = (entry.type == PTP_CANON_EOS_CHANGES_TYPE_OBJECTINFO) ? GP_EVENT_FILE_ADDED : GP_EVENT_FILE_CHANGED; + *eventdata = path; + return GP_OK; + } + case PTP_CANON_EOS_CHANGES_TYPE_PROPERTY: + *eventtype = GP_EVENT_UNKNOWN; + if (PTP_DPC_CANON_EOS_FocusInfoEx == entry.u.propid) { + PTPDevicePropDesc dpd; + + if (PTP_RC_OK == ptp_canon_eos_getdevicepropdesc (params, PTP_DPC_CANON_EOS_FocusInfoEx, &dpd)) { + C_MEM (*eventdata = malloc(strlen("FocusInfo ")+strlen(dpd.CurrentValue.str)+1)); + sprintf (*eventdata, "FocusInfo %s", dpd.CurrentValue.str); + ptp_free_devicepropdesc (&dpd); + return GP_OK; + } + } + C_MEM (*eventdata = malloc(strlen("PTP Property 0123 changed")+1)); + sprintf (*eventdata, "PTP Property %04x changed", entry.u.propid); + return GP_OK; + case PTP_CANON_EOS_CHANGES_TYPE_CAMERASTATUS: + /* if we do capture stuff, camerastatus will turn to 0 when done */ + if (entry.u.status == 0) { + *eventtype = GP_EVENT_CAPTURE_COMPLETE; + *eventdata = NULL; + } else { + *eventtype = GP_EVENT_UNKNOWN; + C_MEM (*eventdata = malloc(strlen("Camera Status 123456789012345")+1)); + sprintf (*eventdata, "Camera Status %d", entry.u.status); + } + return GP_OK; + case PTP_CANON_EOS_CHANGES_TYPE_FOCUSINFO: + *eventtype = GP_EVENT_UNKNOWN; + C_MEM (*eventdata = malloc(strlen("Focus Info 12345678901234567890123456789")+1)); + sprintf (*eventdata, "Focus Info %s", entry.u.info); + return GP_OK; + case PTP_CANON_EOS_CHANGES_TYPE_FOCUSMASK: + *eventtype = GP_EVENT_UNKNOWN; + C_MEM (*eventdata = malloc(strlen("Focus Mask 12345678901234567890123456789")+1)); + sprintf (*eventdata, "Focus Mask %s", entry.u.info); + return GP_OK; + case PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN: + /* only return if interesting stuff happened */ + if (entry.u.info) { + *eventtype = GP_EVENT_UNKNOWN; + *eventdata = entry.u.info; /* take over the allocated string allocation ownership */ + return GP_OK; + } + /* continue otherwise */ + break; + case PTP_CANON_EOS_CHANGES_TYPE_OBJECTREMOVED: + ptp_remove_object_from_cache(params, entry.u.object.oid); + gp_filesystem_reset (camera->fs); + *eventtype = GP_EVENT_UNKNOWN; + C_MEM (*eventdata = malloc(strlen("Object Removed")+1)); + sprintf (*eventdata, "ObjectRemoved"); + return GP_OK; + default: + GP_LOG_D ("Unhandled EOS event 0x%04x", entry.type); + break; + } + } + gp_context_idle (context); + } while (waiting_for_timeout (&back_off_wait, event_start, timeout)); + + *eventtype = GP_EVENT_TIMEOUT; + return GP_OK; + } + + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ptp_operation_issupported(params, PTP_OC_CANON_CheckEvent) + ) { + while (1) { + C_PTP_REP (ptp_check_event (params)); + if (ptp_get_one_event(params, &event)) { + GP_LOG_D ("canon event: nparam=0x%X, C=0x%X, trans_id=0x%X, p1=0x%X, p2=0x%X, p3=0x%X", event.Nparam,event.Code,event.Transaction_ID, event.Param1, event.Param2, event.Param3); + switch (event.Code) { + case PTP_EC_CANON_RequestObjectTransfer: { + PTPObjectInfo oi; + + newobject = event.Param1; + GP_LOG_D ("PTP_EC_CANON_RequestObjectTransfer, object handle=0x%X.",newobject); + /* FIXME: handle multiple images (as in BurstMode) */ + C_PTP (ptp_getobjectinfo (params, newobject, &oi)); + + if (oi.ParentObject != 0) { + CR (add_object (camera, newobject, context)); + C_MEM (path = malloc (sizeof(CameraFilePath))); + strcpy (path->name, oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)oi.StorageID); + get_folder_from_handle (camera, oi.StorageID, oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + gp_filesystem_append (camera->fs, path->folder, path->name, context); + + } else { + C_MEM (path = malloc (sizeof(CameraFilePath))); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx",(unsigned long)oi.StorageID); + sprintf (path->name, "capt%04d.jpg", params->capcnt++); + add_objectid_and_upload (camera, path, context, newobject, &oi); + } + *eventdata = path; + *eventtype = GP_EVENT_FILE_ADDED; + return GP_OK; + } + case PTP_EC_CANON_ShutterButtonPressed0: + /*case PTP_EC_CANON_ShutterButtonPressed1: This seems to be sent without a press on S3 IS, likely some other event reason */ + { + C_MEM (path = malloc(sizeof(CameraFilePath))); + ret = camera_canon_capture (camera, GP_CAPTURE_IMAGE, path, context); + if (ret != GP_OK) { + free (path); + break; + } + *eventdata = path; + *eventtype = GP_EVENT_FILE_ADDED; + return GP_OK; + } + default: + break; + } + goto handleregular; + } + if (time_since (event_start) >= timeout) + break; + gp_context_idle (context); + } + *eventtype = GP_EVENT_TIMEOUT; + return GP_OK; + } + + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) && + ptp_operation_issupported(params, PTP_OC_NIKON_CheckEvent) + ) { + do { + C_PTP_REP (ptp_check_event (params)); + while (ptp_get_one_event (params, &event)) { + back_off_wait = 0; + GP_LOG_D ("event.Code is %x / param %lx", event.Code, (unsigned long)event.Param1); + switch (event.Code) { + case PTP_EC_ObjectAdded: { + PTPObject *ob; + uint16_t ofc; + + if (!event.Param1 || (event.Param1 == 0xffff0001)) + goto downloadnow; + +#if 0 + /* if we have the object already loaded, no need to add it here */ + /* but in dual mode capture at empty startup we can + * encounter that the second image is not loaded */ + if (PTP_RC_OK == ptp_object_find(params, event.Param1, &ob)) + continue; +#endif + + ret = ptp_object_want (params, event.Param1, PTPOBJECT_OBJECTINFO_LOADED, &ob); + if (ret != PTP_RC_OK) { + *eventtype = GP_EVENT_UNKNOWN; + C_MEM (*eventdata = strdup ("object added not found (already deleted)")); + break; + } + debug_objectinfo(params, event.Param1, &ob->oi); + + C_MEM (path = malloc(sizeof(CameraFilePath))); + path->name[0]='\0'; + path->folder[0]='\0'; + + ofc = ob->oi.ObjectFormat; + /* ob might be invalidated by get_folder_from_handle */ + + if (ob->oi.StorageID == 0) { + /* We would always get the same filename, + * which will confuse the frontends */ + if (strstr(ob->oi.Filename,".NEF")) + sprintf (path->name, "capt%04d.nef", params->capcnt++); + else + sprintf (path->name, "capt%04d.jpg", params->capcnt++); + free (ob->oi.Filename); + C_MEM (ob->oi.Filename = strdup (path->name)); + strcpy (path->folder,"/"); + goto downloadnow; + } else { + strcpy (path->name, ob->oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)ob->oi.StorageID); + get_folder_from_handle (camera, ob->oi.StorageID, ob->oi.ParentObject, path->folder); + path->folder[ strlen(path->folder)-1 ] = '\0'; + } + /* ob pointer can be invalid now! */ + /* delete last / or we get confused later. */ + if (ofc == PTP_OFC_Association) { /* new folder! */ + *eventtype = GP_EVENT_FOLDER_ADDED; + *eventdata = path; + gp_filesystem_reset (camera->fs); /* FIXME: implement more lightweight folder add */ + /* if this was the last current event ... stop and return the folder add */ + return GP_OK; + } else { + CR (gp_filesystem_append (camera->fs, path->folder, + path->name, context)); + *eventtype = GP_EVENT_FILE_ADDED; + *eventdata = path; + return GP_OK; + } + break; + } + case PTP_EC_Nikon_ObjectAddedInSDRAM: { + PTPObjectInfo oi; +downloadnow: + newobject = event.Param1; + if (!newobject) newobject = 0xffff0001; + ret = ptp_getobjectinfo (params, newobject, &oi); + if (ret != PTP_RC_OK) + continue; + debug_objectinfo(params, newobject, &oi); + C_MEM (path = malloc(sizeof(CameraFilePath))); + path->name[0]='\0'; + strcpy (path->folder,"/"); + ret = gp_file_new(&file); + if (ret!=GP_OK) return ret; + if (oi.ObjectFormat != PTP_OFC_EXIF_JPEG) { + GP_LOG_D ("raw? ofc is 0x%04x, name is %s", oi.ObjectFormat,oi.Filename); + sprintf (path->name, "capt%04d.nef", params->capcnt++); + gp_file_set_mime_type (file, "image/x-nikon-nef"); /* FIXME */ + } else { + sprintf (path->name, "capt%04d.jpg", params->capcnt++); + gp_file_set_mime_type (file, GP_MIME_JPEG); + } + gp_file_set_mtime (file, time(NULL)); + + GP_LOG_D ("trying to get object size=0x%lx", (unsigned long)oi.ObjectCompressedSize); + C_PTP_REP (ptp_getobject (params, newobject, (unsigned char**)&ximage)); + ret = gp_file_set_data_and_size(file, (char*)ximage, oi.ObjectCompressedSize); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + ret = gp_filesystem_append(camera->fs, path->folder, path->name, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + ret = gp_filesystem_set_file_noop(camera->fs, path->folder, path->name, GP_FILE_TYPE_NORMAL, file, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + *eventtype = GP_EVENT_FILE_ADDED; + *eventdata = path; + /* We have now handed over the file, disclaim responsibility by unref. */ + gp_file_unref (file); + return GP_OK; + } + case PTP_EC_Nikon_CaptureCompleteRecInSdram: + case PTP_EC_CaptureComplete: + if (params->inliveview) { + GP_LOG_D ("Capture complete ... restarting liveview"); + ret = ptp_nikon_start_liveview (params); + } + *eventtype = GP_EVENT_CAPTURE_COMPLETE; + *eventdata = NULL; + return GP_OK; + default: + goto handleregular; + } + } + gp_context_idle (context); + } while (waiting_for_timeout (&back_off_wait, event_start, timeout)); + + *eventtype = GP_EVENT_TIMEOUT; + return GP_OK; + } + + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_SONY) && + ptp_operation_issupported(params, PTP_OC_SONY_SetControlDeviceB) + ) { + PTPObjectInfo oi; + PTPDevicePropDesc dpd; + + do { + /* Check if the captured image counter was bumped before checking events to + * avoid the timeout ... */ + + /* Check if there are pending images for download. If yes, synthesize a FILE ADDED event */ + C_PTP (ptp_sony_getalldevicepropdesc (params)); /* avoid caching */ + C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_SONY_ObjectInMemory, &dpd)); + GP_LOG_D ("DEBUG== 0xd215 after capture = %d", dpd.CurrentValue.u16); + + /* if prop 0xd215 is above 0x8000, the object in RAM is available at location 0xffffc001 */ + if (dpd.CurrentValue.u16 > 0x8000) { + GP_LOG_D ("SONY ObjectInMemory count change seen, retrieving file"); + + newobject = 0xffffc001; + ret = ptp_getobjectinfo (params, newobject, &oi); + if (ret != PTP_RC_OK) + goto sonyout; + debug_objectinfo(params, newobject, &oi); + C_MEM (path = malloc(sizeof(CameraFilePath))); + path->name[0]='\0'; + strcpy (path->folder,"/"); + ret = gp_file_new(&file); + if (ret!=GP_OK) + return ret; + if (oi.ObjectFormat != PTP_OFC_EXIF_JPEG) { + GP_LOG_D ("raw? ofc is 0x%04x, name is %s", oi.ObjectFormat,oi.Filename); + sprintf (path->name, "capt%04d.arw", params->capcnt++); + gp_file_set_mime_type (file, "image/x-sony-arw"); /* FIXME */ + } else { + sprintf (path->name, "capt%04d.jpg", params->capcnt++); + gp_file_set_mime_type (file, GP_MIME_JPEG); + } + gp_file_set_mtime (file, time(NULL)); + + GP_LOG_D ("trying to get object size=0x%lx", (unsigned long)oi.ObjectCompressedSize); + C_PTP_REP (ptp_getobject (params, newobject, (unsigned char**)&ximage)); + ret = gp_file_set_data_and_size(file, (char*)ximage, oi.ObjectCompressedSize); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + ret = gp_filesystem_append(camera->fs, path->folder, path->name, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + ret = gp_filesystem_set_file_noop(camera->fs, path->folder, path->name, GP_FILE_TYPE_NORMAL, file, context); + if (ret != GP_OK) { + gp_file_free (file); + return ret; + } + *eventtype = GP_EVENT_FILE_ADDED; + *eventdata = path; + /* We have now handed over the file, disclaim responsibility by unref. */ + gp_file_unref (file); + + /* Synthesize a capture complete event, if this was the last image. */ + if (dpd.CurrentValue.u16 == 0x8001) { + event.Code = PTP_EC_CaptureComplete; + event.Nparam = 0; + ptp_add_event (params, &event); + } + return GP_OK; + } + +sonyout: + /* If not, check for events and handle them */ + if (time_since(event_start) > timeout-100) { + /* if there is less than 0.1 seconds, just check the + * queue. with libusb1 this can still make progress, + * as above bulk calls will check and queue new ptp events + * async */ + C_PTP_REP (ptp_check_event_queue(params)); + } else { + C_PTP_REP (ptp_check_event(params)); + } + if (ptp_get_one_event (params, &event)) + goto handleregular; + gp_context_idle (context); + } while (waiting_for_timeout (&back_off_wait, event_start, timeout)); + + *eventtype = GP_EVENT_TIMEOUT; + return GP_OK; + } + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_GP_OLYMPUS_OMD) + { + + do { + C_PTP_REP (ptp_check_event (params)); + + while (ptp_get_one_event(params, &event)) { + GP_LOG_D ("received event Code %04x, Param 1 %08x", event.Code, event.Param1); + switch (event.Code) { + case 0xC002: + case PTP_EC_ObjectAdded: + newobject = event.Param1; + goto downloadomdfile; + default: + GP_LOG_D ("unexpected unhandled event Code %04x, Param 1 %08x", event.Code, event.Param1); + break; + } + } + } while (waiting_for_timeout (&back_off_wait, event_start, 65000)); /* wait for 65 seconds after busy is no longer signaled */ + +downloadomdfile: + C_MEM (path = malloc(sizeof(CameraFilePath))); + path->name[0]='\0'; + path->folder[0]='\0'; + + if (newobject != 0) { + PTPObject *ob = NULL; + + C_PTP_REP (ptp_object_want (params, newobject, PTPOBJECT_OBJECTINFO_LOADED, &ob)); + + strcpy (path->name, ob->oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)ob->oi.StorageID); + get_folder_from_handle (camera, ob->oi.StorageID, ob->oi.ParentObject, path->folder); + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + + CR (gp_filesystem_append (camera->fs, path->folder, path->name, context)); + + /* we also get the fs info for free, so just set it */ + info.file.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | + GP_FILE_INFO_SIZE | GP_FILE_INFO_MTIME; + strcpy_mime (info.file.type, params->deviceinfo.VendorExtensionID, ob->oi.ObjectFormat); + info.file.width = ob->oi.ImagePixWidth; + info.file.height = ob->oi.ImagePixHeight; + info.file.size = ob->oi.ObjectCompressedSize; + info.file.mtime = time(NULL); + + info.preview.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | + GP_FILE_INFO_SIZE; + strcpy_mime (info.preview.type, params->deviceinfo.VendorExtensionID, ob->oi.ThumbFormat); + info.preview.width = ob->oi.ThumbPixWidth; + info.preview.height = ob->oi.ThumbPixHeight; + info.preview.size = ob->oi.ThumbCompressedSize; + GP_LOG_D ("setting fileinfo in fs"); + *eventtype = GP_EVENT_FILE_ADDED; + *eventdata = path; + return gp_filesystem_set_info_noop(camera->fs, path->folder, path->name, info, context); + } + } + /* Wait for the whole timeout period */ + CR (gp_port_get_timeout (camera->port, &oldtimeout)); + CR (gp_port_set_timeout (camera->port, timeout)); + C_PTP_REP (ptp_wait_event(params)); + CR (gp_port_set_timeout (camera->port, oldtimeout)); + + /* FIXME: Might be another error, but usually is a timeout */ + if (ptp_get_one_event (params, &event)) { + goto handleregular; + } + + *eventtype = GP_EVENT_TIMEOUT; + return GP_OK; + +handleregular: + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_PANASONIC) { + switch (event.Code) { + case PTP_EC_PANASONIC_ObjectAdded: + GP_LOG_D ("PANASONIC_ObjectAdded -> PTP_EC_ObjectAdded"); + event.Code = PTP_EC_ObjectAdded; + break; + } + } + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_SONY) { + switch (event.Code) { + /* We are handling this in the above Sony case. events might + * come to early (or too late, as we handled it above) + * and retrieving the image will crash the camera. */ + case PTP_EC_Sony_ObjectAdded: { +#if 0 + PTPObjectInfo oi; + + C_MEM (path = malloc(sizeof(CameraFilePath))); + C_PTP (ptp_getobjectinfo (params, event.Param1, &oi)); + + sprintf (path->folder,"/"); + if (oi.ObjectFormat == PTP_OFC_SONY_RAW) + sprintf (path->name, "capt%04d.arw", params->capcnt++); + else + sprintf (path->name, "capt%04d.jpg", params->capcnt++); + + CR (add_objectid_and_upload (camera, path, context, event.Param1, &oi)); + *eventtype = GP_EVENT_FILE_ADDED; + *eventdata = path; + return GP_OK; +#endif + break; + } + case PTP_EC_Sony_PropertyChanged: /* same as DevicePropChanged, just go there */ + event.Code = PTP_EC_DevicePropChanged; + break; + } + /*fallthrough*/ + } + switch (event.Code) { + case PTP_EC_CaptureComplete: + *eventtype = GP_EVENT_CAPTURE_COMPLETE; + *eventdata = NULL; + break; + case PTP_EC_ObjectAdded: { + PTPObject *ob; + uint16_t ofc; + + C_MEM (path = malloc(sizeof(CameraFilePath))); + path->name[0]='\0'; + path->folder[0]='\0'; + + C_PTP_REP (ptp_object_want (params, event.Param1, PTPOBJECT_OBJECTINFO_LOADED, &ob)); + strcpy (path->name, ob->oi.Filename); + sprintf (path->folder,"/"STORAGE_FOLDER_PREFIX"%08lx/",(unsigned long)ob->oi.StorageID); + ofc = ob->oi.ObjectFormat; + get_folder_from_handle (camera, ob->oi.StorageID, ob->oi.ParentObject, path->folder); + /* ob could be invalid now, reload it or dont use it... */ + /* delete last / or we get confused later. */ + path->folder[ strlen(path->folder)-1 ] = '\0'; + if (ofc == PTP_OFC_Association) { /* new folder! */ + *eventtype = GP_EVENT_FOLDER_ADDED; + *eventdata = path; + gp_filesystem_reset (camera->fs); /* FIXME: implement more lightweight folder add */ + } else { + CR (gp_filesystem_append (camera->fs, path->folder, + path->name, context)); + *eventtype = GP_EVENT_FILE_ADDED; + *eventdata = path; + } + break; + } + case PTP_EC_DevicePropChanged: + *eventtype = GP_EVENT_UNKNOWN; + C_MEM (*eventdata = malloc(strlen("PTP Property 0123 changed")+1)); + sprintf (*eventdata, "PTP Property %04x changed", event.Param1 & 0xffff); + break; + case PTP_EC_ObjectRemoved: + ptp_remove_object_from_cache(params, event.Param1); + gp_filesystem_reset (camera->fs); + *eventtype = GP_EVENT_UNKNOWN; + C_MEM (*eventdata = malloc(strlen("PTP ObjectRemoved, Param1 01234567")+1)); + sprintf (*eventdata, "PTP ObjectRemoved, Param1 %08x", event.Param1); + break; + case PTP_EC_StoreAdded: + gp_filesystem_reset (camera->fs); + *eventtype = GP_EVENT_UNKNOWN; + C_MEM (*eventdata = malloc(strlen("PTP StoreAdded, Param1 01234567")+1)); + sprintf (*eventdata, "PTP StoreAdded, Param1 %08x", event.Param1); + break; + case PTP_EC_StoreRemoved: + gp_filesystem_reset (camera->fs); + *eventtype = GP_EVENT_UNKNOWN; + C_MEM (*eventdata = malloc(strlen("PTP StoreRemoved, Param1 01234567")+1)); + sprintf (*eventdata, "PTP StoreRemoved, Param1 %08x", event.Param1); + break; + default: + *eventtype = GP_EVENT_UNKNOWN; + C_MEM (*eventdata = malloc(strlen("PTP Event 0123, Param1 01234567")+1)); + sprintf (*eventdata, "PTP Event %04x, Param1 %08x", event.Code, event.Param1); + break; + } + return GP_OK; +} + +static int +snprintf_ptp_property (char *txt, int spaceleft, PTPPropertyValue *data, uint16_t dt) +{ + if (dt == PTP_DTC_STR) + return snprintf (txt, spaceleft, "'%s'", data->str); + if (dt & PTP_DTC_ARRAY_MASK) { + unsigned int i; + const char *origtxt = txt; +#define SPACE_LEFT (origtxt + spaceleft - txt) + + txt += snprintf (txt, SPACE_LEFT, "a[%d] ", data->a.count); + for ( i=0; ia.count; i++) { + txt += snprintf_ptp_property (txt, SPACE_LEFT, &data->a.v[i], dt & ~PTP_DTC_ARRAY_MASK); + if (i!=data->a.count-1) + txt += snprintf (txt, SPACE_LEFT, ","); + } + return txt - origtxt; +#undef SPACE_LEFT + } else { + switch (dt) { + case PTP_DTC_UNDEF: + return snprintf (txt, spaceleft, "Undefined"); + case PTP_DTC_INT8: + return snprintf (txt, spaceleft, "%d", data->i8); + case PTP_DTC_UINT8: + return snprintf (txt, spaceleft, "%u", data->u8); + case PTP_DTC_INT16: + return snprintf (txt, spaceleft, "%d", data->i16); + case PTP_DTC_UINT16: + return snprintf (txt, spaceleft, "%u", data->u16); + case PTP_DTC_INT32: + return snprintf (txt, spaceleft, "%d", data->i32); + case PTP_DTC_UINT32: + return snprintf (txt, spaceleft, "%u", data->u32); + case PTP_DTC_INT64: + return snprintf (txt, spaceleft, "%lu", data->u64); + case PTP_DTC_UINT64: + return snprintf (txt, spaceleft, "%ld", data->i64); + /* + PTP_DTC_INT128 + PTP_DTC_UINT128 + */ + default: + return snprintf (txt, spaceleft, "Unknown %x", dt); + } + } + return 0; +} + +#if 0 /* leave out ... is confusing -P downloads */ +#pragma pack(1) +struct canon_theme_entry { + uint16_t unknown1; + uint32_t offset; + uint32_t length; + uint8_t name[8]; + char unknown2[8]; +}; + +static int +canon_theme_get (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = (Camera*)data; + PTPParams *params = &camera->pl->params; + unsigned char *xdata; + unsigned int size; + int i; + struct canon_theme_entry *ent; + + SET_CONTEXT(camera, context); + + C_PTP_REP (ptp_canon_get_customize_data (params, 1, &xdata, &size)); + + C_PARAMS (size >= 42+sizeof(struct canon_theme_entry)*5); + + ent = (struct canon_theme_entry*)(xdata+42); + for (i=0;i<5;i++) { + fprintf(stderr,"entry %d: unknown1 = %x\n", i, ent[i].unknown1); + fprintf(stderr,"entry %d: off = %d\n", i, ent[i].offset); + fprintf(stderr,"entry %d: len = %d\n", i, ent[i].length); + fprintf(stderr,"entry %d: name = %s\n", i, ent[i].name); + } + CR (gp_file_set_data_and_size (file, (char*)xdata, size)); + return (GP_OK); +} + +static int +canon_theme_put (CameraFilesystem *fs, const char *folder, CameraFile *file, + void *data, GPContext *context) +{ + /* not yet */ + return (GP_OK); +} +#endif + +static int +nikon_curve_get (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = (Camera*)data; + PTPParams *params = &camera->pl->params; + unsigned char *xdata; + unsigned int size; + int n; + PTPNIKONCurveData *tonecurve; + char *ntcfile; + char *charptr; + double *doubleptr; + ((PTPData *) camera->pl->params.data)->context = context; + SET_CONTEXT(camera, context); + + C_PTP_REP (ptp_nikon_curve_download (params, &xdata, &size)); + + tonecurve = (PTPNIKONCurveData *) xdata; + C_MEM (ntcfile = malloc(2000)); + memcpy(ntcfile,"\x9d\xdc\x7d\x00\x65\xd4\x11\xd1\x91\x94\x44\x45\x53\x54\x00\x00\xff\x05\xbb\x02\x00\x00\x01\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9d\xdc\x7d\x03\x65\xd4\x11\xd1\x91\x94\x44\x45\x53\x54\x00\x00\x00\x00\x00\x00\xff\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00", 92); + doubleptr=(double *) &ntcfile[92]; + *doubleptr++ = (double) tonecurve->XAxisStartPoint/255; + *doubleptr++ = (double) tonecurve->XAxisEndPoint/255; + *doubleptr++ = (double) tonecurve->MidPointIntegerPart + + tonecurve->MidPointDecimalPart/100; + *doubleptr++ = (double) tonecurve->YAxisStartPoint/255; + *doubleptr++ = (double) tonecurve->YAxisEndPoint/255; + charptr=(char*) doubleptr; + *charptr++ = (char) tonecurve->NCoordinates; + memcpy(charptr, "\x00\x00\x00", 3); + charptr +=3; + doubleptr = (double *) charptr; + for(n=0;nNCoordinates;n++) { + *doubleptr = (double) tonecurve->CurveCoordinates[n].X/255; + doubleptr = &doubleptr[1]; + *doubleptr = (double) tonecurve->CurveCoordinates[n].Y/255; + doubleptr = &doubleptr[1]; + } + *doubleptr++ = (double) 0; + charptr = (char*) doubleptr; + memcpy(charptr,"\x9d\xdc\x7d\x03\x65\xd4\x11\xd1\x91\x94\x44\x45\x53\x54\x00\x00\x01\x00\x00\x00\xff\x03\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x9d\xdc\x7d\x03\x65\xd4\x11\xd1\x91\x94\x44\x45\x53\x54\x00\x00\x02\x00\x00\x00\xff\x03\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x9d\xdc\x7d\x03\x65\xd4\x11\xd1\x91\x94\x44\x45\x53\x54\x00\x00\x03\x00\x00\x00\xff\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\x00\x00",429); + charptr += 429; + CR (gp_file_set_data_and_size (file, ntcfile, (long)charptr - (long)ntcfile)); + /* do not free ntcfile, it is managed by filesys now */ + free (xdata); + return (GP_OK); +} + +static int +nikon_curve_put (CameraFilesystem *fs, const char *folder, CameraFile *file, + void *data, GPContext *context) +{ + /* not yet */ + return (GP_OK); +} + +static int ptp_max(int a, int b) { + if (a > b) return a; + return b; +} + +static int +camera_summary (Camera* camera, CameraText* summary, GPContext *context) +{ + unsigned int i, j; + uint16_t ret; + char *txt, *txt_marker; + PTPParams *params = &(camera->pl->params); + PTPDeviceInfo pdi; + + SET_CONTEXT(camera, context); + + txt = summary->text; + +#define SPACE_LEFT ptp_max(0, summary->text + sizeof (summary->text) - txt) +#define APPEND_TXT( ... ) txt += snprintf (txt, SPACE_LEFT, __VA_ARGS__) + + APPEND_TXT (_("Manufacturer: %s\n"),params->deviceinfo.Manufacturer); + APPEND_TXT (_("Model: %s\n"),params->deviceinfo.Model); + APPEND_TXT (_(" Version: %s\n"),params->deviceinfo.DeviceVersion); + if (params->deviceinfo.SerialNumber) + APPEND_TXT (_(" Serial Number: %s\n"),params->deviceinfo.SerialNumber); + if (params->deviceinfo.VendorExtensionID) { + APPEND_TXT (_("Vendor Extension ID: 0x%x (%d.%d)\n"), + params->deviceinfo.VendorExtensionID, + params->deviceinfo.VendorExtensionVersion/100, + params->deviceinfo.VendorExtensionVersion%100 + ); + if (params->deviceinfo.VendorExtensionDesc) + APPEND_TXT (_("Vendor Extension Description: %s\n"),params->deviceinfo.VendorExtensionDesc); + } + if (params->deviceinfo.StandardVersion != 100) + APPEND_TXT (_("PTP Standard Version: %d.%d\n"), + params->deviceinfo.StandardVersion/100, + params->deviceinfo.StandardVersion%100 + ); + if (params->deviceinfo.FunctionalMode) + APPEND_TXT (_("Functional Mode: 0x%04x\n"),params->deviceinfo.FunctionalMode); + +/* Dump Formats */ + APPEND_TXT (_("\nCapture Formats: ")); + + for (i=0;ideviceinfo.CaptureFormats_len;i++) { + txt += ptp_render_ofc (params, params->deviceinfo.CaptureFormats[i], SPACE_LEFT, txt); + if (ideviceinfo.CaptureFormats_len-1) + APPEND_TXT (" "); + } + APPEND_TXT ("\n"); + + APPEND_TXT (_("Display Formats: ")); + for (i=0;ideviceinfo.ImageFormats_len;i++) { + txt += ptp_render_ofc (params, params->deviceinfo.ImageFormats[i], SPACE_LEFT, txt); + if (ideviceinfo.ImageFormats_len-1) + APPEND_TXT (", "); + } + APPEND_TXT ("\n"); + + if (is_mtp_capable (camera) && + ptp_operation_issupported(params,PTP_OC_MTP_GetObjectPropsSupported) + ) { + APPEND_TXT (_("Supported MTP Object Properties:\n")); + for (i=0;ideviceinfo.ImageFormats_len;i++) { + uint16_t *props = NULL; + uint32_t propcnt = 0; + + APPEND_TXT ("\t"); + txt += ptp_render_ofc (params, params->deviceinfo.ImageFormats[i], SPACE_LEFT, txt); + APPEND_TXT ("/%04x:", params->deviceinfo.ImageFormats[i]); + + ret = ptp_mtp_getobjectpropssupported (params, params->deviceinfo.ImageFormats[i], &propcnt, &props); + if (ret != PTP_RC_OK) { + APPEND_TXT (_(" PTP error %04x on query"), ret); + } else { + for (j=0;jdeviceinfo.VendorExtensionID) { + case PTP_VENDOR_CANON: + if (ptp_operation_issupported(params, PTP_OC_CANON_ViewfinderOn)) + APPEND_TXT (_("Canon Capture, ")); + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteRelease)) + APPEND_TXT (_("Canon EOS Capture, ")); + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn)) + APPEND_TXT (_("Canon EOS Capture 2, ")); + break; + case PTP_VENDOR_NIKON: + if (ptp_operation_issupported(params, PTP_OC_NIKON_Capture)) + APPEND_TXT (_("Nikon Capture 1, ")); + if (ptp_operation_issupported(params, PTP_OC_NIKON_AfCaptureSDRAM)) + APPEND_TXT (_("Nikon Capture 2, ")); + if (ptp_operation_issupported(params, PTP_OC_NIKON_InitiateCaptureRecInMedia)) + APPEND_TXT (_("Nikon Capture 3, ")); + break; + case PTP_VENDOR_SONY: + if (ptp_operation_issupported(params, PTP_OC_SONY_SetControlDeviceB)) + APPEND_TXT (_("Sony Capture, ")); + break; + default: + /* does not belong to good vendor ... needs another detection */ + if (params->device_flags & DEVICE_FLAG_OLYMPUS_XML_WRAPPED) + APPEND_TXT (_("Olympus E XML Capture, ")); + break; + } + if (txt_marker == txt) + APPEND_TXT (_("No vendor specific capture\n")); + else + { + /* replace the trailing ", " with a "\n" */ + txt -= 2; + APPEND_TXT ("\n"); + } + + /* Third line for Wifi support, but just leave it out if not there. */ + if ((params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) && + ptp_operation_issupported(params, PTP_OC_NIKON_GetProfileAllData)) + APPEND_TXT (_("\tNikon Wifi support\n")); + + if ((params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ptp_operation_issupported(params, PTP_OC_CANON_GetMACAddress)) + APPEND_TXT (_("\tCanon Wifi support\n")); + +/* Dump storage information */ + + if (ptp_operation_issupported(params,PTP_OC_GetStorageIDs) && + ptp_operation_issupported(params,PTP_OC_GetStorageInfo) + ) { + APPEND_TXT (_("\nStorage Devices Summary:\n")); + + for (i=0; istorageids.n; i++) { + char tmpname[20], *s; + + PTPStorageInfo storageinfo; + /* invalid storage, storageinfo might fail on it (Nikon D300s e.g.) */ + if ((params->storageids.Storage[i]&0x0000ffff)==0) + continue; + + APPEND_TXT ("store_%08x:\n",(unsigned int)params->storageids.Storage[i]); + + C_PTP_REP (ptp_getstorageinfo(params, params->storageids.Storage[i], &storageinfo)); + APPEND_TXT (_("\tStorageDescription: %s\n"), + storageinfo.StorageDescription?storageinfo.StorageDescription:_("None") + ); + APPEND_TXT (_("\tVolumeLabel: %s\n"), + storageinfo.VolumeLabel?storageinfo.VolumeLabel:_("None") + ); + + switch (storageinfo.StorageType) { + case PTP_ST_Undefined: s = _("Undefined"); break; + case PTP_ST_FixedROM: s = _("Builtin ROM"); break; + case PTP_ST_RemovableROM: s = _("Removable ROM"); break; + case PTP_ST_FixedRAM: s = _("Builtin RAM"); break; + case PTP_ST_RemovableRAM: s = _("Removable RAM (memory card)"); break; + default: + snprintf(tmpname, sizeof(tmpname), _("Unknown: 0x%04x\n"), storageinfo.StorageType); + s = tmpname; + break; + } + APPEND_TXT (_("\tStorage Type: %s\n"), s); + + switch (storageinfo.FilesystemType) { + case PTP_FST_Undefined: s = _("Undefined"); break; + case PTP_FST_GenericFlat: s = _("Generic Flat"); break; + case PTP_FST_GenericHierarchical: s = _("Generic Hierarchical"); break; + case PTP_FST_DCF: s = _("Digital Camera Layout (DCIM)"); break; + default: + snprintf(tmpname, sizeof(tmpname), _("Unknown: 0x%04x\n"), storageinfo.FilesystemType); + s = tmpname; + break; + } + APPEND_TXT (_("\tFilesystemtype: %s\n"), s); + + switch (storageinfo.AccessCapability) { + case PTP_AC_ReadWrite: s = _("Read-Write"); break; + case PTP_AC_ReadOnly: s = _("Read-Only"); break; + case PTP_AC_ReadOnly_with_Object_Deletion: s = _("Read Only with Object deletion"); break; + default: + snprintf(tmpname, sizeof(tmpname), _("Unknown: 0x%04x\n"), storageinfo.AccessCapability); + s = tmpname; + break; + } + APPEND_TXT (_("\tAccess Capability: %s\n"), s); + APPEND_TXT (_("\tMaximum Capability: %llu (%lu MB)\n"), + (unsigned long long)storageinfo.MaxCapability, + (unsigned long)(storageinfo.MaxCapability/1024/1024) + ); + APPEND_TXT (_("\tFree Space (Bytes): %llu (%lu MB)\n"), + (unsigned long long)storageinfo.FreeSpaceInBytes, + (unsigned long)(storageinfo.FreeSpaceInBytes/1024/1024) + ); + APPEND_TXT (_("\tFree Space (Images): %d\n"), (unsigned int)storageinfo.FreeSpaceInImages); + free (storageinfo.StorageDescription); + free (storageinfo.VolumeLabel); + } + } + + APPEND_TXT (_("\nDevice Property Summary:\n")); + /* The information is cached. However, the canon firmware changes + * the available properties in capture mode. + */ + C_PTP_REP (ptp_getdeviceinfo (params, &pdi)); + CR (fixup_cached_deviceinfo (camera, &pdi)); + for (i=0;ideviceinfo.VendorExtensionID==PTP_VENDOR_MICROSOFT) { + if (dpc == 0xd201) { + APPEND_TXT (_(" not read out.\n")); + continue; + } + } +#if 0 /* check is handled by the generic getter now */ + if (!ptp_operation_issupported(params, PTP_OC_GetDevicePropDesc)) { + APPEND_TXT (_("cannot be queried.\n")); + continue; + } +#endif + + memset (&dpd, 0, sizeof (dpd)); + ret = ptp_generic_getdevicepropdesc (params, dpc, &dpd); + if (ret == PTP_RC_OK) { + switch (dpd.GetSet) { + case PTP_DPGS_Get: APPEND_TXT ("(%s) ", N_("read only")); break; + case PTP_DPGS_GetSet: APPEND_TXT ("(%s) ", N_("readwrite")); break; + default: APPEND_TXT ("(%s) ", N_("Unknown")); + } + APPEND_TXT ("(type=0x%x) ",dpd.DataType); + switch (dpd.FormFlag) { + case PTP_DPFF_None: break; + case PTP_DPFF_Range: { + APPEND_TXT ("Range ["); + txt += snprintf_ptp_property (txt, SPACE_LEFT, &dpd.FORM.Range.MinimumValue, dpd.DataType); + APPEND_TXT (" - "); + txt += snprintf_ptp_property (txt, SPACE_LEFT, &dpd.FORM.Range.MaximumValue, dpd.DataType); + APPEND_TXT (", step "); + txt += snprintf_ptp_property (txt, SPACE_LEFT, &dpd.FORM.Range.StepSize, dpd.DataType); + APPEND_TXT ("] value: "); + break; + } + case PTP_DPFF_Enumeration: + APPEND_TXT ("Enumeration ["); + if ((dpd.DataType & PTP_DTC_ARRAY_MASK) == PTP_DTC_ARRAY_MASK) + APPEND_TXT ("\n\t"); + for (j = 0; jnrofobjects; i++) { + PTPObject *ob = ¶ms->objects[i]; + uint32_t oid = ob->oid; + + ret = PTP_RC_OK; + if ((ob->flags & (PTPOBJECT_PARENTOBJECT_LOADED|PTPOBJECT_STORAGEID_LOADED)) != (PTPOBJECT_PARENTOBJECT_LOADED|PTPOBJECT_STORAGEID_LOADED)) + ret = ptp_object_want (params, oid, PTPOBJECT_PARENTOBJECT_LOADED|PTPOBJECT_STORAGEID_LOADED, &ob); + if (ret != PTP_RC_OK) { + /* NOTE: the "i" array entry might now be invalid, as object_want can remove objects from the list */ + GP_LOG_D("failed getting info of oid 0x%08x?", oid); + /* could happen if file gets removed inbetween */ + continue; + } + if ((ob->oi.StorageID==storage) && (ob->oi.ParentObject==handle)) { + ret = ptp_object_want (params, oid, PTPOBJECT_OBJECTINFO_LOADED, &ob); + if (ret != PTP_RC_OK) { + GP_LOG_D("failed getting info of oid 0x%08x?", oid); + /* could happen if file gets removed inbetween */ + /* FIXME: should remove, but then we irritate our list */ + continue; + } + if (!strcmp (ob->oi.Filename,file)) { + if (retob) *retob = ob; + return oid; + } + } + } + /* else not found */ + return PTP_HANDLER_SPECIAL; +} + +static uint32_t +folder_to_handle(PTPParams *params, const char *folder, uint32_t storage, uint32_t parent, PTPObject **retob) +{ + char *c; + + if (retob) *retob = NULL; + if (!strlen(folder)) { + /* was initially read, no need to reread */ + /* ptp_list_folder (params, storage, 0); */ + return PTP_HANDLER_ROOT; + } + if (!strcmp(folder,"/")) { + /* was initially read, no need to reread */ + /* ptp_list_folder (params, storage, 0); */ + return PTP_HANDLER_ROOT; + } + + c = strchr(folder,'/'); + if (c != NULL) { + *c = 0; + parent = find_child (params, folder, storage, parent, retob); + if (parent == PTP_HANDLER_SPECIAL) + GP_LOG_D("not found???"); + return folder_to_handle(params, c+1, storage, parent, retob); + } else { + return find_child (params, folder, storage, parent, retob); + } +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = (Camera *)data; + PTPParams *params = &camera->pl->params; + uint32_t parent, storage=0x0000000; + unsigned int i, hasgetstorageids; + SET_CONTEXT_P(params, context); + int lastnrofobjects = params->nrofobjects, redoneonce = 0; + + GP_LOG_D ("file_list_func(%s)", folder); + + /* There should be NO files in root folder */ + if (!strcmp(folder, "/")) + return (GP_OK); + + if (!strcmp(folder, "/special")) { + for (i=0; inrofobjects; i++) { + PTPObject *ob; + uint16_t ret; + uint32_t oid; + + /* not our parent -> next */ + C_PTP_REP (ptp_object_want (params, params->objects[i].oid, PTPOBJECT_PARENTOBJECT_LOADED|PTPOBJECT_STORAGEID_LOADED, &ob)); + + /* DANGER DANGER: i is now invalid as objects might have been inserted in the list! */ + + if (ob->oi.ParentObject!=parent) + continue; + + /* not on our storage devices -> next */ + if ((hasgetstorageids && (ob->oi.StorageID != storage))) + continue; + + oid = ob->oid; /* ob might change or even become invalid in the function below */ + ret = ptp_object_want (params, oid, PTPOBJECT_OBJECTINFO_LOADED, &ob); + if (ret != PTP_RC_OK) { + /* we might raced another delete or ongoing addition, seen on a D810 */ + if (ret == PTP_RC_InvalidObjectHandle) { + GP_LOG_D ("Handle %08x was in list, but not/no longer found via getobjectinfo.\n", oid); + /* remove it for now, we will readd it later if we see it again. */ + ptp_remove_object_from_cache(params, oid); + continue; + } + C_PTP_REP (ret); + } + /* Is a directory -> next */ + if (ob->oi.ObjectFormat == PTP_OFC_Association) + continue; + + debug_objectinfo(params, ob->oid, &ob->oi); + + if (!ob->oi.Filename) + continue; + + if (1) { + /* HP Photosmart 850, the camera tends to duplicate filename in the list. + * Original patch by clement.rezvoy@gmail.com */ + /* search backwards, likely gets hits faster. */ + /* FIXME Marcus: This is also O(n^2) ... bad for large directories. */ + if (GP_OK == gp_list_find_by_name(list, NULL, ob->oi.Filename)) { + GP_LOG_E ( + "Duplicate filename '%s' in folder '%s'. Ignoring nth entry.\n", + ob->oi.Filename, folder); + continue; + } + } + CR(gp_list_append (list, ob->oi.Filename, NULL)); + } + + /* Did we change the object tree list during our traversal? if yes, redo the scan. */ + if (params->nrofobjects != lastnrofobjects) { + if (redoneonce++) { + GP_LOG_E("list changed again on second pass, returning anyway"); + return GP_OK; + } + lastnrofobjects = params->nrofobjects; + gp_list_reset(list); + goto retry; + } + return GP_OK; +} + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + PTPParams *params = &((Camera *)data)->pl->params; + unsigned int i, hasgetstorageids; + uint32_t handler,storage; + int redoneonce = 0, lastnrofobjects = params->nrofobjects; + + SET_CONTEXT_P(params, context); + GP_LOG_D ("folder_list_func(%s)", folder); + /* add storage pseudofolders in root folder */ + if (!strcmp(folder, "/")) { + /* use the cached storageids. they should be valid after camera_init */ + if (ptp_operation_issupported(params,PTP_OC_GetStorageIDs)) { + char fname[PTP_MAXSTRLEN]; + + if (!params->storageids.n) { + snprintf(fname, sizeof(fname), STORAGE_FOLDER_PREFIX"%08x",0x00010001); + CR (gp_list_append (list, fname, NULL)); + } + for (i=0; istorageids.n; i++) { + + /* invalid storage, storageinfo might fail on it (Nikon D300s e.g.) */ + if ((params->storageids.Storage[i]&0x0000ffff)==0) continue; + snprintf(fname, sizeof(fname), + STORAGE_FOLDER_PREFIX"%08x", + params->storageids.Storage[i]); + CR (gp_list_append (list, fname, NULL)); + } + } else { + char fname[PTP_MAXSTRLEN]; + snprintf(fname, sizeof(fname), + STORAGE_FOLDER_PREFIX"%08x", + 0xdeadbeef + ); + gp_list_append (list, fname, NULL); + } + if (nrofspecial_files) + CR (gp_list_append (list, "special", NULL)); + return (GP_OK); + } + + if (!strcmp(folder, "/special")) { + /* no folders in here */ + return (GP_OK); + } + + /* compute storage ID value from folder path */ + folder_to_storage (folder,storage); + + /* Get folder handle omiting storage pseudofolder */ + find_folder_handle (params,folder,storage,handler); + + /* list this directory */ + C_PTP_REP (ptp_list_folder (params, storage, handler)); + + GP_LOG_D ("after list folder (storage=0x%08x, handler=0x08%x)", storage, handler); + + /* Look for objects we can present as directories. + * Currently we specify *any* PTP association as directory. + */ + hasgetstorageids = ptp_operation_issupported(params,PTP_OC_GetStorageIDs); +retry: + for (i = 0; i < params->nrofobjects; i++) { + PTPObject *ob; + uint16_t ret; + uint32_t handle; + + C_PTP_REP (ptp_object_want (params, params->objects[i].oid, PTPOBJECT_STORAGEID_LOADED|PTPOBJECT_PARENTOBJECT_LOADED, &ob)); + + if (ob->oi.ParentObject != handler) + continue; + if (hasgetstorageids && (ob->oi.StorageID != storage)) + continue; + + handle = ob->oid; + ret = ptp_object_want (params, handle, PTPOBJECT_OBJECTINFO_LOADED, &ob); + if (ret != PTP_RC_OK) { + /* we might raced another delete or ongoing addition, seen on a D810 */ + if (ret == PTP_RC_InvalidObjectHandle) { + GP_LOG_D ("Handle %08x was in list, but not/no longer found via getobjectinfo.\n", handle); + /* remove it for now, we will readd it later if we see it again. */ + ptp_remove_object_from_cache(params, handle); + continue; + } + C_PTP_REP (ret); + } + if (ob->oi.ObjectFormat!=PTP_OFC_Association) + continue; + GP_LOG_D ("adding 0x%x / ob=%p to folder", ob->oid, ob); + if (GP_OK == gp_list_find_by_name(list, NULL, ob->oi.Filename)) { + GP_LOG_E ( "Duplicated foldername '%s' in folder '%s'. should not happen!\n", ob->oi.Filename, folder); + continue; + } + CR (gp_list_append (list, ob->oi.Filename, NULL)); + } + if (lastnrofobjects != params->nrofobjects) { + if (redoneonce++) { + GP_LOG_E("list changed again on second pass, returning anyway"); + return GP_OK; + } + lastnrofobjects = params->nrofobjects; + gp_list_reset (list); + goto retry; + } + return GP_OK; +} + +/* To avoid roundtrips for querying prop desc + * that are uninteresting for us we list all + * that are exposed by PTP anyway (and are r/o). + */ +static unsigned short uninteresting_props [] = { + PTP_OPC_StorageID, + PTP_OPC_ObjectFormat, + PTP_OPC_ProtectionStatus, + PTP_OPC_ObjectSize, + PTP_OPC_AssociationType, + PTP_OPC_AssociationDesc, + PTP_OPC_ParentObject +}; + +static int +ptp_mtp_render_metadata ( + PTPParams *params, uint32_t object_id, uint16_t ofc, CameraFile *file +) { + uint16_t ret, *props = NULL; + uint32_t propcnt = 0; + unsigned int j; + MTPProperties *mprops; + PTPObject *ob; + + C_PTP (ptp_object_want (params, object_id, PTPOBJECT_MTPPROPLIST_LOADED, &ob)); + + /* ... use little helper call to see if we missed anything in the global + * retrieval. */ + C_PTP (ptp_mtp_getobjectpropssupported (params, ofc, &propcnt, &props)); + + mprops = ob->mtpprops; + if (mprops) { /* use the fast method, without device access since cached.*/ + char propname[256]; + char text[256]; + unsigned int i, n; + + for (j=0;jnrofmtpprops;j++) { + MTPProperties *xpl = &mprops[j]; + + for (i=0;iproperty) + break; + /* Is uninteresting. */ + if (i != sizeof(uninteresting_props)/sizeof(uninteresting_props[0])) + continue; + + for(i=0;iproperty) { + props[i]=0; + break; + } + } + + n = ptp_render_mtp_propname(xpl->property, sizeof(propname), propname); + gp_file_append (file, "<", 1); + gp_file_append (file, propname, n); + gp_file_append (file, ">", 1); + + switch (xpl->datatype) { + default:sprintf (text, "Unknown type %d", xpl->datatype); + break; + case PTP_DTC_STR: + snprintf (text, sizeof(text), "%s", xpl->propval.str?xpl->propval.str:""); + break; + case PTP_DTC_INT64: + sprintf (text, "%ld", xpl->propval.i64); + break; + case PTP_DTC_INT32: + sprintf (text, "%d", xpl->propval.i32); + break; + case PTP_DTC_INT16: + sprintf (text, "%d", xpl->propval.i16); + break; + case PTP_DTC_INT8: + sprintf (text, "%d", xpl->propval.i8); + break; + case PTP_DTC_UINT64: + sprintf (text, "%lu", xpl->propval.u64); + break; + case PTP_DTC_UINT32: + sprintf (text, "%u", xpl->propval.u32); + break; + case PTP_DTC_UINT16: + sprintf (text, "%u", xpl->propval.u16); + break; + case PTP_DTC_UINT8: + sprintf (text, "%u", xpl->propval.u8); + break; + } + gp_file_append (file, text, strlen(text)); + gp_file_append (file, "\n", 2); + } + /* fallthrough */ + } + + for (j=0;j", 1); + + ret = LOG_ON_PTP_E (ptp_mtp_getobjectpropdesc (params, props[j], ofc, &opd)); + if (ret == PTP_RC_OK) { + PTPPropertyValue pv; + ret = ptp_mtp_getobjectpropvalue (params, object_id, props[j], &pv, opd.DataType); + if (ret != PTP_RC_OK) { + sprintf (text, "failure to retrieve %x of oid %x, ret %x", props[j], object_id, ret); + } else { + switch (opd.DataType) { + default:sprintf (text, "Unknown type %d", opd.DataType); + break; + case PTP_DTC_STR: + snprintf (text, sizeof(text), "%s", pv.str?pv.str:""); + break; + case PTP_DTC_INT64: + sprintf (text, "%ld", pv.i64); + break; + case PTP_DTC_INT32: + sprintf (text, "%d", pv.i32); + break; + case PTP_DTC_INT16: + sprintf (text, "%d", pv.i16); + break; + case PTP_DTC_INT8: + sprintf (text, "%d", pv.i8); + break; + case PTP_DTC_UINT64: + sprintf (text, "%lu", pv.u64); + break; + case PTP_DTC_UINT32: + sprintf (text, "%u", pv.u32); + break; + case PTP_DTC_UINT16: + sprintf (text, "%u", pv.u16); + break; + case PTP_DTC_UINT8: + sprintf (text, "%u", pv.u8); + break; + } + } + gp_file_append (file, text, strlen(text)); + } + gp_file_append (file, "\n", 2); + + } + free(props); + return (GP_OK); +} + +/* To avoid roundtrips for querying prop desc if it is R/O + * we list all that are by standard means R/O. + */ +static unsigned short readonly_props [] = { + PTP_OPC_StorageID, + PTP_OPC_ObjectFormat, + PTP_OPC_ProtectionStatus, + PTP_OPC_ObjectSize, + PTP_OPC_AssociationType, + PTP_OPC_AssociationDesc, + PTP_OPC_ParentObject, + PTP_OPC_PersistantUniqueObjectIdentifier, + PTP_OPC_DateAdded, + PTP_OPC_CorruptOrUnplayable, + PTP_OPC_RepresentativeSampleFormat, + PTP_OPC_RepresentativeSampleSize, + PTP_OPC_RepresentativeSampleHeight, + PTP_OPC_RepresentativeSampleWidth, + PTP_OPC_RepresentativeSampleDuration +}; + +static int +ptp_mtp_parse_metadata ( + PTPParams *params, uint32_t object_id, uint16_t ofc, CameraFile *file +) { + uint16_t ret, *props = NULL; + uint32_t propcnt = 0; + char *filedata = NULL; + unsigned long filesize = 0; + unsigned int j; + + if (gp_file_get_data_and_size (file, (const char**)&filedata, &filesize) < GP_OK) + return (GP_ERROR); + + C_PTP (ptp_mtp_getobjectpropssupported (params, ofc, &propcnt, &props)); + + for (j=0;j", propname); + begin= strstr (filedata, propname2); + if (!begin) continue; + begin += strlen(propname2); + sprintf (propname2, "", propname); + end = strstr (begin, propname2); + if (!end) continue; + *end = '\0'; + content = strdup(begin); + if (!content) { + free (props); + C_MEM (content); + } + *end = '<'; + GP_LOG_D ("found tag %s, content %s", propname, content); + ret = LOG_ON_PTP_E (ptp_mtp_getobjectpropdesc (params, props[j], ofc, &opd)); + if (ret != PTP_RC_OK) { + free (content); content = NULL; + continue; + } + if (opd.GetSet == 0) { + GP_LOG_D ("Tag %s is read only, sorry.", propname); + free (content); content = NULL; + continue; + } + switch (opd.DataType) { + default:GP_LOG_E ("mtp parser: Unknown datatype %d, content %s", opd.DataType, content); + free (content); content = NULL; + continue; + break; + case PTP_DTC_STR: + pv.str = content; + break; + case PTP_DTC_INT32: + sscanf (content, "%d", &pv.i32); + break; + case PTP_DTC_INT16: + sscanf (content, "%hd", &pv.i16); + break; + case PTP_DTC_INT8: + sscanf (content, "%hhd", &pv.i8); + break; + case PTP_DTC_UINT32: + sscanf (content, "%u", &pv.u32); + break; + case PTP_DTC_UINT16: + sscanf (content, "%hu", &pv.u16); + break; + case PTP_DTC_UINT8: + sscanf (content, "%hhu", &pv.u8); + break; + } + ret = ptp_mtp_setobjectpropvalue (params, object_id, props[j], &pv, opd.DataType); + free (content); content = NULL; + } + free(props); + return (GP_OK); +} + +static int +mtp_get_playlist_string( + Camera *camera, uint32_t object_id, char **xcontent, int *xcontentlen +) { + PTPParams *params = &camera->pl->params; + uint32_t numobjects = 0, *objects = NULL; + unsigned int i, contentlen = 0; + char *content = NULL; + + C_PTP (ptp_mtp_getobjectreferences (params, object_id, &objects, &numobjects)); + + for (i=0;ioi.Filename)+1, buf, len); + memcpy (buf+1, ob->oi.Filename, strlen (ob->oi.Filename)); + buf[0] = '/'; + object_id = ob->oi.ParentObject; + len = strlen(buf); + } while (object_id != 0); + memmove (buf+strlen("/store_00010001"), buf, len); + sprintf (buf,"/store_%08x",(unsigned int)ob->oi.StorageID); + buf[strlen(buf)]='/'; + len = strlen(buf); + + C_MEM (content = realloc (content, contentlen+len+1+1)); + strcpy (content+contentlen, buf); + strcpy (content+contentlen+len, "\n"); + contentlen += len+1; + } + if (!content) + C_MEM (content = malloc(1)); + if (xcontent) + *xcontent = content; + else + free (content); + *xcontentlen = contentlen; + free (objects); + return (GP_OK); +} + +static int +mtp_put_playlist( + Camera *camera, char *content, int contentlen, PTPObjectInfo *oi, GPContext *context +) { + char *s = content; + unsigned char data[1]; + uint32_t storage = 0, objectid, playlistid; + uint32_t *oids = NULL; + int nrofoids = 0; + PTPParams *params = &camera->pl->params; + + while (*s) { + char *t = strchr(s,'\n'); + char *fn, *filename; + if (t) { + C_MEM (fn = malloc (t-s+1)); + memcpy (fn, s, t-s); + fn[t-s]='\0'; + } else { + C_MEM (fn = strdup(s)); + } + filename = strrchr (fn,'/'); + if (!filename) { + free (fn); + if (!t) break; + s = t+1; + continue; + } + *filename = '\0';filename++; + + /* compute storage ID value from folder patch */ + folder_to_storage(fn,storage); + /* Get file number omiting storage pseudofolder */ + find_folder_handle(params, fn, storage, objectid); + objectid = find_child(params, filename, storage, objectid, NULL); + if (objectid != PTP_HANDLER_SPECIAL) { + C_MEM (oids = realloc(oids, sizeof(oids[0])*(nrofoids+1))); + oids[nrofoids] = objectid; + nrofoids++; + } else { + /*fprintf (stderr,"%s/%s NOT FOUND!\n", fn, filename);*/ + GP_LOG_E ("Object %s/%s not found on device.", fn, filename); + } + free (fn); + if (!t) break; + s = t+1; + } + oi->ObjectCompressedSize = 1; + oi->ObjectFormat = PTP_OFC_MTP_AbstractAudioVideoPlaylist; + C_PTP_MSG (ptp_sendobjectinfo(&camera->pl->params, &storage, &oi->ParentObject, &playlistid, oi), + "failed sendobjectinfo of playlist."); + C_PTP_MSG (ptp_sendobject(&camera->pl->params, (unsigned char*)data, 1), + "failed dummy sendobject of playlist."); + C_PTP (ptp_mtp_setobjectreferences (&camera->pl->params, playlistid, oids, nrofoids)); + free (oids); + /* update internal structures */ + return add_object(camera, playlistid, context); +} + +static int +mtp_get_playlist( + Camera *camera, CameraFile *file, uint32_t object_id, GPContext *context +) { + char *content; + int contentlen; + + CR (mtp_get_playlist_string( camera, object_id, &content, &contentlen)); + /* takes ownership of content */ + return gp_file_set_data_and_size (file, content, contentlen); +} + +typedef struct { + CameraFile *file; +} PTPCFHandlerPrivate; + +static uint16_t +gpfile_getfunc (PTPParams *params, void *xpriv, + unsigned long wantlen, unsigned char *bytes, + unsigned long *gotlen +) { + PTPCFHandlerPrivate* priv = (PTPCFHandlerPrivate*)xpriv; + int ret; + size_t gotlensize; + + ret = gp_file_slurp (priv->file, (char*)bytes, wantlen, &gotlensize); + *gotlen = gotlensize; + if (ret != GP_OK) + return PTP_ERROR_IO; + return PTP_RC_OK; +} + +static uint16_t +gpfile_putfunc (PTPParams *params, void *xpriv, + unsigned long sendlen, unsigned char *bytes +) { + PTPCFHandlerPrivate* priv= (PTPCFHandlerPrivate*)xpriv; + int ret; + + ret = gp_file_append (priv->file, (char*)bytes, sendlen); + if (ret != GP_OK) + return PTP_ERROR_IO; + return PTP_RC_OK; +} + +uint16_t +ptp_init_camerafile_handler (PTPDataHandler *handler, CameraFile *file) { + PTPCFHandlerPrivate* priv = malloc (sizeof(PTPCFHandlerPrivate)); + if (!priv) return PTP_RC_GeneralError; + handler->priv = priv; + handler->getfunc = gpfile_getfunc; + handler->putfunc = gpfile_putfunc; + priv->file = file; + return PTP_RC_OK; +} + +uint16_t +ptp_exit_camerafile_handler (PTPDataHandler *handler) { + free (handler->priv); + return PTP_RC_OK; +} + + +static int +read_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, + uint64_t offset64, char *buf, uint64_t *size64, + void *data, GPContext *context) +{ + Camera *camera = data; + PTPParams *params = &camera->pl->params; + /* Note that "image" points to unsigned chars whereas all the other + * functions which set image return pointers to chars. + * However, we calculate a number of unsigned values in this function, + * so we cannot make it signed either. + * Therefore, sometimes a "ximage" char* helper, since wild casts of pointers + * confuse the compilers aliasing mechanisms. + * If you do not like that, feel free to clean up the datatypes. + * (TODO for Marcus and 2.2 ;) + */ + uint32_t oid; + uint32_t storage; + uint64_t obj_size; + uint32_t offset32 = offset64, size32 = *size64; + PTPObject *ob; + + SET_CONTEXT_P(params, context); + + C_PARAMS_MSG (*size64 <= 0xffffffff, "size exceeds 32bit"); + C_PARAMS_MSG (strcmp (folder, "/special"), "file not found"); + + if (!ptp_operation_issupported(params, PTP_OC_GetPartialObject) && + !( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_MTP) && + ptp_operation_issupported(params, PTP_OC_ANDROID_GetPartialObject64) + ) + ) + return GP_ERROR_NOT_SUPPORTED; + + if (!( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_MTP) && + ptp_operation_issupported(params, PTP_OC_ANDROID_GetPartialObject64)) && (offset64 > 0xffffffff) ) { + GP_LOG_E ("Invalid parameters: offset exceeds 32 bits but the device doesn't support GetPartialObject64."); + return GP_ERROR_NOT_SUPPORTED; + } + + /* compute storage ID value from folder patch */ + folder_to_storage(folder,storage); + /* Get file number omiting storage pseudofolder */ + find_folder_handle(params, folder, storage, oid); + oid = find_child(params, filename, storage, oid, &ob); + if (oid == PTP_HANDLER_SPECIAL) { + gp_context_error (context, _("File '%s/%s' does not exist."), folder, filename); + return GP_ERROR_BAD_PARAMETERS; + } + GP_LOG_D ("Reading %u bytes from file '%s' at offset %lu.", size32, filename, offset64); + switch (type) { + default: + return GP_ERROR_NOT_SUPPORTED; + case GP_FILE_TYPE_NORMAL: { + uint16_t ret; + unsigned char *xdata; + + /* We do not allow downloading unknown type files as in most + cases they are special file (like firmware or control) which + sometimes _cannot_ be downloaded. doing so we avoid errors.*/ + /* however this avoids the possibility to download files on + * Androids ... doh. Let reenable it again. */ + if (ob->oi.ObjectFormat == PTP_OFC_Association + /* + || (ob->oi.ObjectFormat == PTP_OFC_Undefined && + ((ob->oi.ThumbFormat == PTP_OFC_Undefined) || + (ob->oi.ThumbFormat == 0) + ) + ) */ + ) + return (GP_ERROR_NOT_SUPPORTED); + + if (is_mtp_capable (camera) && + (ob->oi.ObjectFormat == PTP_OFC_MTP_AbstractAudioVideoPlaylist)) + return (GP_ERROR_NOT_SUPPORTED); + + obj_size = ob->oi.ObjectCompressedSize; + if (!obj_size) + return GP_ERROR_NOT_SUPPORTED; + + if (offset64 >= obj_size) { + *size64 = 0; + return GP_OK; + } else if (size32 + offset64 > obj_size) { + size32 = obj_size - offset64; + } + + if ((params->deviceinfo.VendorExtensionID == PTP_VENDOR_MTP) && + ptp_operation_issupported(params, PTP_OC_ANDROID_GetPartialObject64) + ) { + ret = ptp_android_getpartialobject64(params, oid, offset64, size32, &xdata, &size32); + } else { + ret = ptp_getpartialobject(params, oid, offset32, size32, &xdata, &size32); + } + if (ret == PTP_ERROR_CANCEL) + return GP_ERROR_CANCEL; + C_PTP_REP (ret); + *size64 = size32; + memcpy (buf, xdata, size32); + free (xdata); + /* clear the "new" flag on Canons */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + (ob->canon_flags & 0x20) && + ptp_operation_issupported(params,PTP_OC_CANON_SetObjectArchive) + ) { + /* seems just a byte (0x20 - new) */ + /* can fail on some models, like S5. Ignore errors. */ + ret = LOG_ON_PTP_E (ptp_canon_setobjectarchive (params, oid, ob->canon_flags & ~0x20)); + if (ret == PTP_RC_OK) + ob->canon_flags &= ~0x20; + } else if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + (ob->canon_flags & 0x20) && + ptp_operation_issupported(params,PTP_OC_CANON_EOS_SetObjectAttributes) + ) { + /* seems just a byte (0x20 - new) */ + /* can fail on some models, like S5. Ignore errors. */ + ret = LOG_ON_PTP_E (ptp_canon_eos_setobjectattributes(params, oid, ob->canon_flags & ~0x20)); + if (ret == PTP_RC_OK) + ob->canon_flags &= ~0x20; + } + } + break; + } + return GP_OK; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + /* Note that "image" points to unsigned chars whereas all the other + * functions which set image return pointers to chars. + * However, we calculate a number of unsigned values in this function, + * so we cannot make it signed either. + * Therefore, sometimes a "ximage" char* helper, since wild casts of pointers + * confuse the compilers aliasing mechanisms. + * If you do not like that, feel free to clean up the datatypes. + * (TODO for Marcus and 2.2 ;) + */ + uint32_t oid; + uint32_t size; + uint32_t storage; + PTPObject *ob; + PTPParams *params = &camera->pl->params; + + SET_CONTEXT_P(params, context); + +#if 0 + /* The new Canons like to switch themselves off in the middle. */ + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) { + if (ptp_operation_issupported(params, PTP_OC_CANON_KeepDeviceOn)) + ptp_canon_keepdeviceon (params); + } +#endif + + if (!strcmp (folder, "/special")) { + unsigned int i; + + for (i=0;ioi.ModificationDate != 0) + gp_file_set_mtime (file, ob->oi.ModificationDate); + else + gp_file_set_mtime (file, ob->oi.CaptureDate); + + GP_LOG_D ("Getting file '%s'.", filename); + switch (type) { + case GP_FILE_TYPE_EXIF: { + uint32_t offset, xlen, maxbytes; + unsigned char *ximage = NULL; + + /* Check if we have partial downloads. Otherwise we can just hope + * upstream downloads the whole image to get EXIF data. */ + if (!ptp_operation_issupported(params, PTP_OC_GetPartialObject)) + return (GP_ERROR_NOT_SUPPORTED); + /* Device may hang is a partial read is attempted beyond the file */ + if (ob->oi.ObjectCompressedSize < 10) + return (GP_ERROR_NOT_SUPPORTED); + + /* We only support JPEG / EXIF format ... others might hang. */ + if (ob->oi.ObjectFormat != PTP_OFC_EXIF_JPEG) + return (GP_ERROR_NOT_SUPPORTED); + + /* Note: Could also use Canon partial downloads */ + C_PTP_REP (ptp_getpartialobject (params, + oid, 0, 10, &ximage, &xlen)); + + if (!((ximage[0] == 0xff) && (ximage[1] == 0xd8))) { /* SOI */ + free (ximage); + return (GP_ERROR_NOT_SUPPORTED); + } + if (!((ximage[2] == 0xff) && (ximage[3] == 0xe1))) { /* App1 */ + free (ximage); + return (GP_ERROR_NOT_SUPPORTED); + } + if (0 != memcmp(ximage+6, "Exif", 4)) { + free (ximage); + return (GP_ERROR_NOT_SUPPORTED); + } + offset = 2; + maxbytes = (ximage[4] << 8) + ximage[5] + 2; + free (ximage); + ximage = NULL; + C_PTP_REP (ptp_getpartialobject (params, + oid, offset, maxbytes, &ximage, &xlen)); + CR (gp_file_set_data_and_size (file, (char*)ximage, xlen)); + break; + } + case GP_FILE_TYPE_PREVIEW: { + unsigned char *ximage = NULL; + unsigned int xlen; + + /* If thumb size is 0, and the ofc is not an image type (0x38xx or 0xb8xx) + * then there is no thumbnail at all... */ + size=ob->oi.ThumbCompressedSize; + if((size==0) && ( + ((ob->oi.ObjectFormat & 0x7800) != 0x3800) && + ((ob->oi.ObjectFormat != PTP_OFC_CANON_CRW)) && + ((ob->oi.ObjectFormat != PTP_OFC_CANON_MOV)) && + ((ob->oi.ObjectFormat != PTP_OFC_CANON_MOV2)) && + ((ob->oi.ObjectFormat != PTP_OFC_CANON_CRW3)) && + ((ob->oi.ObjectFormat != PTP_OFC_CANON_CR3)) + )) + return GP_ERROR_NOT_SUPPORTED; + C_PTP_REP (ptp_getthumb(params, oid, &ximage, &xlen)); + set_mimetype (file, params->deviceinfo.VendorExtensionID, ob->oi.ThumbFormat); + CR (gp_file_set_data_and_size (file, (char*)ximage, xlen)); + break; + } + case GP_FILE_TYPE_METADATA: + if (is_mtp_capable (camera) && + ptp_operation_issupported(params,PTP_OC_MTP_GetObjectPropsSupported) + ) + return ptp_mtp_render_metadata (params,oid,ob->oi.ObjectFormat,file); + return (GP_ERROR_NOT_SUPPORTED); + default: { + if (ob->oi.ObjectFormat == PTP_OFC_Association) + return GP_ERROR_NOT_SUPPORTED; + + /* We do not allow downloading unknown type files as in most + * cases they are special file (like firmware or control) which + * sometimes _cannot_ be downloaded. doing so we avoid errors. + * Allow all types from MTP devices, like phones. + */ + if ( !is_mtp_capable (camera) && + (ob->oi.ObjectFormat == PTP_OFC_Undefined && + ((ob->oi.ThumbFormat == PTP_OFC_Undefined) || + (ob->oi.ThumbFormat == 0) + ) + ) + ) + return (GP_ERROR_NOT_SUPPORTED); + + if (is_mtp_capable (camera) && + (ob->oi.ObjectFormat == PTP_OFC_MTP_AbstractAudioVideoPlaylist)) + return mtp_get_playlist (camera, file, oid, context); + + size=ob->oi.ObjectCompressedSize; +#define BLOBSIZE 1*1024*1024 + /* We also need this for Nikon D850 and very big RAWs (>40 MB) */ + /* Try the generic method first, EOS R does not like the second for some reason */ + if ( (ptp_operation_issupported(params,PTP_OC_GetPartialObject)) && + (size > BLOBSIZE) + ) { + unsigned char *ximage = NULL; + uint32_t offset = 0; + + while (offset < size) { + uint32_t xsize = size - offset; + uint32_t xlen; + + if (xsize > BLOBSIZE) + xsize = BLOBSIZE; + C_PTP_REP (ptp_getpartialobject (params, oid, offset, xsize, &ximage, &xlen)); + gp_file_append (file, (char*)ximage, xlen); + free (ximage); + ximage = NULL; + offset += xlen; + } + goto done; + } + /* EOS software uses 1MB blobs, use that too... EOS R does not like 5MB blobs */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + (ptp_operation_issupported(params,PTP_OC_CANON_EOS_GetPartialObject)) && + (size > BLOBSIZE) + ) { + unsigned char *ximage = NULL; + uint32_t offset = 0; + + while (offset < size) { + uint32_t xsize = size - offset; + + if (xsize > BLOBSIZE) + xsize = BLOBSIZE; + C_PTP_REP (ptp_getpartialobject (params, oid, offset, xsize, &ximage, &xsize)); + gp_file_append (file, (char*)ximage, xsize); + free (ximage); + ximage = NULL; + offset += xsize; + } + goto done; + } +#undef BLOBSIZE + if (size) { + uint16_t ret; + PTPDataHandler handler; + + ptp_init_camerafile_handler (&handler, file); + ret = ptp_getobject_to_handler(params, oid, &handler); + ptp_exit_camerafile_handler (&handler); + if (ret == PTP_ERROR_CANCEL) + return GP_ERROR_CANCEL; + C_PTP_REP (ret); + } else { + unsigned char *ximage = NULL; + /* Do not download 0 sized files. + * It is not necessary and even breaks for some camera special files. + */ + C_MEM (ximage = malloc(1)); + CR (gp_file_set_data_and_size (file, (char*)ximage, size)); + } +done: + + /* clear the "new" flag on Canons */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + (ob->canon_flags & 0x20) && + ptp_operation_issupported(params,PTP_OC_CANON_SetObjectArchive) + ) { + uint16_t ret; + + /* seems just a byte (0x20 - new) */ + /* can fail on some models, like S5. Ignore errors. */ + ret = LOG_ON_PTP_E (ptp_canon_setobjectarchive (params, oid, ob->canon_flags & ~0x20)); + if (ret == PTP_RC_OK) + ob->canon_flags &= ~0x20; + } else if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + (ob->canon_flags & 0x20) && + ptp_operation_issupported(params,PTP_OC_CANON_EOS_SetObjectAttributes) + ) { + uint16_t ret; + + /* seems just a byte (0x20 - new) */ + /* can fail on some models, like S5. Ignore errors. */ + ret = LOG_ON_PTP_E (ptp_canon_eos_setobjectattributes(params, oid, ob->canon_flags & ~0x20)); + if (ret == PTP_RC_OK) + ob->canon_flags &= ~0x20; + } + break; + } + } + return set_mimetype (file, params->deviceinfo.VendorExtensionID, ob->oi.ObjectFormat); +} + +static int +put_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, GPContext *context) +{ + Camera *camera = data; + PTPObjectInfo oi; + uint32_t parent; + uint32_t storage; + uint32_t handle; + unsigned long intsize; + PTPParams* params = &camera->pl->params; + + SET_CONTEXT_P(params, context); + camera->pl->checkevents = TRUE; + + GP_LOG_D ("folder=%s, filename=%s", folder, filename); + + if (!strcmp (folder, "/special")) { + unsigned int i; + + for (i=0;ioi.ObjectFormat,file); + } + gp_context_error (context, _("Metadata only supported for MTP devices.")); + return GP_ERROR_NOT_SUPPORTED; + } + C_PARAMS (type == GP_FILE_TYPE_NORMAL); + /* compute storage ID value from folder patch */ + folder_to_storage(folder,storage); + + /* get parent folder id omiting storage pseudofolder */ + find_folder_handle(params,folder,storage,parent); + + /* if you desire to put file to root folder, you have to use + * 0xffffffff instead of 0x00000000 (which means responder decide). + */ + if (parent==PTP_HANDLER_ROOT) parent=PTP_HANDLER_SPECIAL; + + /* We don't really want a file to exist with the same name twice. */ + handle = find_child (params, filename, storage, parent, NULL); + if (handle != PTP_HANDLER_SPECIAL) { + GP_LOG_D ("%s/%s exists.", folder, filename); + return GP_ERROR_FILE_EXISTS; + } + + oi.Filename=(char *)filename; + oi.ObjectFormat = get_mimetype(camera, file, params->deviceinfo.VendorExtensionID); + oi.ParentObject = parent; + gp_file_get_mtime(file, &oi.ModificationDate); + + if (is_mtp_capable (camera) && + ( strstr(filename,".zpl") || strstr(filename, ".pla") )) { + char *object; + gp_file_get_data_and_size (file, (const char**)&object, &intsize); + return mtp_put_playlist (camera, object, intsize, &oi, context); + } + + /* If the device is using PTP_VENDOR_EASTMAN_KODAK extension try + * PTP_OC_EK_SendFileObject. + */ + gp_file_get_data_and_size (file, NULL, &intsize); + oi.ObjectCompressedSize = intsize; + if ((params->deviceinfo.VendorExtensionID==PTP_VENDOR_EASTMAN_KODAK) && + (ptp_operation_issupported(params, PTP_OC_EK_SendFileObject))) + { + PTPDataHandler handler; + C_PTP_REP (ptp_ek_sendfileobjectinfo (params, &storage, + &parent, &handle, &oi)); + ptp_init_camerafile_handler (&handler, file); + C_PTP_REP (ptp_ek_sendfileobject_from_handler (params, &handler, intsize)); + ptp_exit_camerafile_handler (&handler); + } else if (ptp_operation_issupported(params, PTP_OC_SendObjectInfo)) { + uint16_t ret; + PTPDataHandler handler; + + C_PTP_REP (ptp_sendobjectinfo (params, &storage, + &parent, &handle, &oi)); + ptp_init_camerafile_handler (&handler, file); + ret = ptp_sendobject_from_handler (params, &handler, intsize); + ptp_exit_camerafile_handler (&handler); + if (ret == PTP_ERROR_CANCEL) + return (GP_ERROR_CANCEL); + C_PTP_REP (ret); + } else { + GP_LOG_D ("The device does not support uploading files."); + return GP_ERROR_NOT_SUPPORTED; + } + /* update internal structures */ + return add_object(camera, handle, context); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + uint32_t oid; + uint32_t storage; + PTPParams *params = &camera->pl->params; + + SET_CONTEXT_P(params, context); + + if (!strcmp (folder, "/special")) + return GP_ERROR_NOT_SUPPORTED; + + /* virtual file created by Nikon special capture */ + if ( ((params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) || + (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) || + (params->deviceinfo.VendorExtensionID == PTP_VENDOR_FUJI) || + (params->deviceinfo.VendorExtensionID == PTP_VENDOR_GP_OLYMPUS_OMD) || + (params->deviceinfo.VendorExtensionID == PTP_VENDOR_SONY) || + (params->device_flags & DEVICE_FLAG_OLYMPUS_XML_WRAPPED)) && + !strncmp (filename, "capt", 4) + ) + return GP_OK; + + if (!ptp_operation_issupported(params, PTP_OC_DeleteObject)) + return GP_ERROR_NOT_SUPPORTED; + + camera->pl->checkevents = TRUE; + C_PTP_REP (ptp_check_event (params)); + /* compute storage ID value from folder patch */ + folder_to_storage(folder,storage); + /* Get file number omiting storage pseudofolder */ + find_folder_handle(params, folder, storage, oid); + oid = find_child(params, filename, storage, oid, NULL); + + /* in some cases we return errors ... just ignore them for now */ + LOG_ON_PTP_E (ptp_deleteobject(params, oid, 0)); + + /* On some Canon firmwares, a DeleteObject causes a ObjectRemoved event + * to be sent. At least on Digital IXUS II and PowerShot A85. But + * not on 350D. + */ + if (DELETE_SENDS_EVENT(params) && + ptp_event_issupported(params, PTP_EC_ObjectRemoved)) { + PTPContainer event; + + ptp_check_event (params); /* ignore errors */ + while (ptp_get_one_event (params, &event)) { + if (event.Code == PTP_EC_ObjectRemoved) + break; + if (event.Code == PTP_EC_ObjectAdded) { + PTPObject *ob; + + ptp_object_want (params, event.Param1, 0, &ob); + } + } + /* FIXME: need to handle folder additions during capture-image-and-download */ + } + return (GP_OK); +} + +static int +remove_dir_func (CameraFilesystem *fs, const char *folder, + const char *foldername, void *data, GPContext *context) +{ + Camera *camera = data; + uint32_t oid; + uint32_t storage; + PTPParams *params = &camera->pl->params; + + SET_CONTEXT_P(params, context); + + if (!ptp_operation_issupported(params, PTP_OC_DeleteObject)) + return GP_ERROR_NOT_SUPPORTED; + camera->pl->checkevents = TRUE; + C_PTP_REP (ptp_check_event (params)); + /* compute storage ID value from folder patch */ + folder_to_storage(folder,storage); + /* Get file number omiting storage pseudofolder */ + find_folder_handle(params, folder, storage, oid); + oid = find_child(params, foldername, storage, oid, NULL); + if (oid == PTP_HANDLER_SPECIAL) + return GP_ERROR; + C_PTP_REP (ptp_deleteobject(params, oid, 0)); + return (GP_OK); +} + +static int +set_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo info, void *data, GPContext *context) +{ + Camera *camera = data; + PTPObject *ob; + uint32_t object_id; + uint32_t storage; + PTPParams *params = &camera->pl->params; + + SET_CONTEXT_P(params, context); + + C_PARAMS (strcmp (folder, "/special")); + + camera->pl->checkevents = TRUE; + /* compute storage ID value from folder patch */ + folder_to_storage(folder,storage); + /* Get file number omiting storage pseudofolder */ + find_folder_handle(params, folder, storage, object_id); + object_id = find_child(params, filename, storage, object_id, &ob); + if (object_id == PTP_HANDLER_SPECIAL) + return GP_ERROR; + + if (info.file.fields & GP_FILE_INFO_PERMISSIONS) { + uint16_t newprot; + + if ((info.file.permissions & GP_FILE_PERM_DELETE) != GP_FILE_PERM_DELETE) + newprot = PTP_PS_ReadOnly; + else + newprot = PTP_PS_NoProtection; + if (ob->oi.ProtectionStatus != newprot) { + if (!ptp_operation_issupported(params, PTP_OC_SetObjectProtection)) { + gp_context_error (context, _("Device does not support setting object protection.")); + return (GP_ERROR_NOT_SUPPORTED); + } + C_PTP_REP_MSG (ptp_setobjectprotection (params, object_id, newprot), + _("Device failed to set object protection to %d"), newprot); + ob->oi.ProtectionStatus = newprot; /* should actually reread objectinfo to be sure, but lets not. */ + } + info.file.fields &= ~GP_FILE_INFO_PERMISSIONS; + /* fall through */ + } + /* ... no more cases implemented yet */ + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + PTPObject *ob; + uint32_t oid, storage; + PTPParams *params = &camera->pl->params; + + SET_CONTEXT_P(params, context); + + C_PARAMS (strcmp (folder, "/special")); + + /* compute storage ID value from folder patch */ + folder_to_storage(folder,storage); + /* Get file number omiting storage pseudofolder */ + find_folder_handle(params, folder, storage, oid); + oid = find_child(params, filename, storage, oid, &ob); + if (oid == PTP_HANDLER_SPECIAL) + return GP_ERROR; + + info->file.fields = GP_FILE_INFO_SIZE|GP_FILE_INFO_TYPE|GP_FILE_INFO_MTIME; + info->file.size = ob->oi.ObjectCompressedSize; + + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) { + info->file.fields |= GP_FILE_INFO_STATUS; + if (ob->canon_flags & 0x20) + info->file.status = GP_FILE_STATUS_NOT_DOWNLOADED; + else + info->file.status = GP_FILE_STATUS_DOWNLOADED; + } + + /* MTP playlists have their own size calculation */ + if (is_mtp_capable (camera) && + (ob->oi.ObjectFormat == PTP_OFC_MTP_AbstractAudioVideoPlaylist)) { + int contentlen; + CR (mtp_get_playlist_string (camera, oid, NULL, &contentlen)); + info->file.size = contentlen; + } + + strcpy_mime (info->file.type, params->deviceinfo.VendorExtensionID, ob->oi.ObjectFormat); + if (ob->oi.ModificationDate != 0) { + info->file.mtime = ob->oi.ModificationDate; + } else { + info->file.mtime = ob->oi.CaptureDate; + } + + switch (ob->oi.ProtectionStatus) { + case PTP_PS_NoProtection: + info->file.fields |= GP_FILE_INFO_PERMISSIONS; + info->file.permissions = GP_FILE_PERM_READ|GP_FILE_PERM_DELETE; + break; + case PTP_PS_ReadOnly: + info->file.fields |= GP_FILE_INFO_PERMISSIONS; + info->file.permissions = GP_FILE_PERM_READ; + break; + default: + GP_LOG_E ("mapping protection to gp perm failed, prot is %x", ob->oi.ProtectionStatus); + break; + } + + /* if object is an image */ + if ((ob->oi.ObjectFormat & 0x0800) != 0) { + info->preview.fields = 0; + strcpy_mime(info->preview.type, params->deviceinfo.VendorExtensionID, ob->oi.ThumbFormat); + if (strlen(info->preview.type)) { + info->preview.fields |= GP_FILE_INFO_TYPE; + } + if (ob->oi.ThumbCompressedSize) { + info->preview.size = ob->oi.ThumbCompressedSize; + info->preview.fields |= GP_FILE_INFO_SIZE; + } + if (ob->oi.ThumbPixWidth) { + info->preview.width = ob->oi.ThumbPixWidth; + info->preview.fields |= GP_FILE_INFO_WIDTH; + } + if (ob->oi.ThumbPixHeight) { + info->preview.height = ob->oi.ThumbPixHeight; + info->preview.fields |= GP_FILE_INFO_HEIGHT; + } + if (ob->oi.ImagePixWidth) { + info->file.width = ob->oi.ImagePixWidth; + info->file.fields |= GP_FILE_INFO_WIDTH; + } + if (ob->oi.ImagePixHeight) { + info->file.height = ob->oi.ImagePixHeight; + info->file.fields |= GP_FILE_INFO_HEIGHT; + } + } + return (GP_OK); +} + +static int +make_dir_func (CameraFilesystem *fs, const char *folder, const char *foldername, + void *data, GPContext *context) +{ + Camera *camera = data; + PTPObjectInfo oi; + uint32_t parent; + uint32_t storage; + uint32_t handle; + PTPParams* params = &camera->pl->params; + + if (!strcmp (folder, "/special")) + return GP_ERROR_NOT_SUPPORTED; + + SET_CONTEXT_P(params, context); + camera->pl->checkevents = TRUE; + + memset(&oi, 0, sizeof (PTPObjectInfo)); + /* compute storage ID value from folder patch */ + folder_to_storage(folder,storage); + /* get parent folder id omiting storage pseudofolder */ + find_folder_handle(params,folder,storage,parent); + + /* if you desire to make dir in 'root' folder, you have to use + * 0xffffffff instead of 0x00000000 (which means responder decide). + */ + if (parent==PTP_HANDLER_ROOT) parent=PTP_HANDLER_SPECIAL; + + handle = folder_to_handle (params, foldername, storage, parent, NULL); + if (handle != PTP_HANDLER_SPECIAL) + return GP_ERROR_DIRECTORY_EXISTS; + + oi.Filename=(char *)foldername; + + oi.ObjectFormat=PTP_OFC_Association; + oi.ProtectionStatus=PTP_PS_NoProtection; + oi.AssociationType=PTP_AT_GenericFolder; + + if ((params->deviceinfo.VendorExtensionID== + PTP_VENDOR_EASTMAN_KODAK) && + (ptp_operation_issupported(params, + PTP_OC_EK_SendFileObjectInfo))) + { + C_PTP_REP (ptp_ek_sendfileobjectinfo (params, &storage, + &parent, &handle, &oi)); + } else if (ptp_operation_issupported(params, PTP_OC_SendObjectInfo)) { + C_PTP_REP (ptp_sendobjectinfo (params, &storage, + &parent, &handle, &oi)); + } else { + GP_LOG_D ("The device does not support creating a folder."); + return GP_ERROR_NOT_SUPPORTED; + } + /* update internal structures */ + return add_object(camera, handle, context); +} + +static int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **sinfos, + int *nrofsinfos, + void *data, GPContext *context +) { + Camera *camera = data; + PTPParams *params = &camera->pl->params; + PTPStorageInfo si; + PTPStorageIDs sids; + unsigned int i,n; + CameraStorageInformation*sif; + + if (!ptp_operation_issupported (params, PTP_OC_GetStorageIDs)) + return (GP_ERROR_NOT_SUPPORTED); + + SET_CONTEXT_P(params, context); + C_PTP (ptp_getstorageids (params, &sids)); + n = 0; + C_MEM (*sinfos = calloc (sids.n, sizeof (CameraStorageInformation))); + for (i = 0; ifields |= GP_STORAGEINFO_BASE; + sprintf (sif->basedir, "/"STORAGE_FOLDER_PREFIX"%08x", sids.Storage[i]); + + if (si.VolumeLabel && strlen(si.VolumeLabel)) { + sif->fields |= GP_STORAGEINFO_LABEL; + strcpy (sif->label, si.VolumeLabel); + } + if (si.StorageDescription && strlen(si.StorageDescription)) { + sif->fields |= GP_STORAGEINFO_DESCRIPTION; + strcpy (sif->description, si.StorageDescription); + } + sif->fields |= GP_STORAGEINFO_STORAGETYPE; + switch (si.StorageType) { + case PTP_ST_Undefined: + sif->type = GP_STORAGEINFO_ST_UNKNOWN; + break; + case PTP_ST_FixedROM: + sif->type = GP_STORAGEINFO_ST_FIXED_ROM; + break; + case PTP_ST_FixedRAM: + sif->type = GP_STORAGEINFO_ST_FIXED_RAM; + break; + case PTP_ST_RemovableRAM: + sif->type = GP_STORAGEINFO_ST_REMOVABLE_RAM; + break; + case PTP_ST_RemovableROM: + sif->type = GP_STORAGEINFO_ST_REMOVABLE_ROM; + break; + default: + GP_LOG_D ("unknown storagetype 0x%x", si.StorageType); + sif->type = GP_STORAGEINFO_ST_UNKNOWN; + break; + } + sif->fields |= GP_STORAGEINFO_ACCESS; + switch (si.AccessCapability) { + case PTP_AC_ReadWrite: + sif->access = GP_STORAGEINFO_AC_READWRITE; + break; + case PTP_AC_ReadOnly: + sif->access = GP_STORAGEINFO_AC_READONLY; + break; + case PTP_AC_ReadOnly_with_Object_Deletion: + sif->access = GP_STORAGEINFO_AC_READONLY_WITH_DELETE; + break; + default: + GP_LOG_D ("unknown accesstype 0x%x", si.AccessCapability); + sif->access = GP_STORAGEINFO_AC_READWRITE; + break; + } + sif->fields |= GP_STORAGEINFO_FILESYSTEMTYPE; + switch (si.FilesystemType) { + default: + case PTP_FST_Undefined: + sif->fstype = GP_STORAGEINFO_FST_UNDEFINED; + break; + case PTP_FST_GenericFlat: + sif->fstype = GP_STORAGEINFO_FST_GENERICFLAT; + break; + case PTP_FST_GenericHierarchical: + sif->fstype = GP_STORAGEINFO_FST_GENERICHIERARCHICAL; + break; + case PTP_FST_DCF: + sif->fstype = GP_STORAGEINFO_FST_DCF; + break; + } + if (si.MaxCapability != -1) { + sif->fields |= GP_STORAGEINFO_MAXCAPACITY; + sif->capacitykbytes = si.MaxCapability / 1024; + } + if (si.FreeSpaceInBytes != -1) { + sif->fields |= GP_STORAGEINFO_FREESPACEKBYTES; + sif->freekbytes = si.FreeSpaceInBytes / 1024; + } + if (si.FreeSpaceInImages != -1) { + sif->fields |= GP_STORAGEINFO_FREESPACEIMAGES; + sif->freeimages = si.FreeSpaceInImages; + } + free (si.StorageDescription); + free (si.VolumeLabel); + + n++; + } + free (sids.Storage); + *nrofsinfos = n; + return (GP_OK); +} + +static void +debug_objectinfo(PTPParams *params, uint32_t oid, PTPObjectInfo *oi) { + GP_LOG_D ("ObjectInfo for '%s':", oi->Filename); + GP_LOG_D (" Object ID: 0x%08x", oid); + GP_LOG_D (" StorageID: 0x%08x", oi->StorageID); + GP_LOG_D (" ObjectFormat: 0x%04x", oi->ObjectFormat); + GP_LOG_D (" ProtectionStatus: 0x%04x", oi->ProtectionStatus); + GP_LOG_D (" ObjectCompressedSize: %ld", (unsigned long)oi->ObjectCompressedSize); + GP_LOG_D (" ThumbFormat: 0x%04x", oi->ThumbFormat); + GP_LOG_D (" ThumbCompressedSize: %d", oi->ThumbCompressedSize); + GP_LOG_D (" ThumbPixWidth: %d", oi->ThumbPixWidth); + GP_LOG_D (" ThumbPixHeight: %d", oi->ThumbPixHeight); + GP_LOG_D (" ImagePixWidth: %d", oi->ImagePixWidth); + GP_LOG_D (" ImagePixHeight: %d", oi->ImagePixHeight); + GP_LOG_D (" ImageBitDepth: %d", oi->ImageBitDepth); + GP_LOG_D (" ParentObject: 0x%08x", oi->ParentObject); + GP_LOG_D (" AssociationType: 0x%04x", oi->AssociationType); + GP_LOG_D (" AssociationDesc: 0x%08x", oi->AssociationDesc); + GP_LOG_D (" SequenceNumber: 0x%08x", oi->SequenceNumber); + GP_LOG_D (" ModificationDate: 0x%08x", (unsigned int)oi->ModificationDate); + GP_LOG_D (" CaptureDate: 0x%08x", (unsigned int)oi->CaptureDate); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_info_func = get_info_func, + .set_info_func = set_info_func, + .get_file_func = get_file_func, + .read_file_func = read_file_func, + .del_file_func = delete_file_func, + .put_file_func = put_file_func, + .make_dir_func = make_dir_func, + .remove_dir_func = remove_dir_func, + .storage_info_func = storage_info_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + CameraAbilities a; + unsigned int i; + int ret, tries = 0; + PTPParams *params; + char *curloc, *camloc; + GPPortSettings settings; + uint32_t sessionid; + char buf[20]; + int start_timeout = USB_START_TIMEOUT; + int canon_start_timeout = USB_CANON_START_TIMEOUT; + + gp_port_get_settings (camera->port, &settings); + /* Make sure our port is either USB or PTP/IP. */ + if ( (camera->port->type != GP_PORT_USB) && + (camera->port->type != GP_PORT_PTPIP) && + (camera->port->type != GP_PORT_USB_SCSI) + ) { + gp_context_error (context, _("Currently, PTP is only implemented for " + "USB and PTP/IP cameras currently, port type %x"), camera->port->type); + return (GP_ERROR_UNKNOWN_PORT); + } + + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + camera->functions->trigger_capture = camera_trigger_capture; + camera->functions->capture = camera_capture; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->summary = camera_summary; + camera->functions->get_config = camera_get_config; + camera->functions->get_single_config = camera_get_single_config; + camera->functions->set_single_config = camera_set_single_config; + camera->functions->set_config = camera_set_config; + camera->functions->list_config = camera_list_config; + camera->functions->wait_for_event = camera_wait_for_event; + + /* We need some data that we pass around */ + C_MEM (camera->pl = calloc (1, sizeof (CameraPrivateLibrary))); + params = &camera->pl->params; + params->debug_func = ptp_debug_func; + params->error_func = ptp_error_func; + C_MEM (params->data = calloc (1, sizeof (PTPData))); + ((PTPData *) params->data)->camera = camera; + params->byteorder = PTP_DL_LE; + if (params->byteorder == PTP_DL_LE) + camloc = "UCS-2LE"; + else + camloc = "UCS-2BE"; + + gp_camera_get_abilities(camera, &a); + +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + curloc = nl_langinfo (CODESET); + if (!curloc) curloc="UTF-8"; + params->cd_ucs2_to_locale = iconv_open(curloc, camloc); + params->cd_locale_to_ucs2 = iconv_open(camloc, curloc); + if ((params->cd_ucs2_to_locale == (iconv_t) -1) || + (params->cd_locale_to_ucs2 == (iconv_t) -1)) { + GP_LOG_E ("Failed to create iconv converter."); + /* we can fallback */ + /*return (GP_ERROR_OS_FAILURE);*/ + } +#endif + + for (i = 0; idevice_flags = models[i].device_flags; + break; + } + /* do not run the funny MTP stuff on the cameras for now */ + params->device_flags |= DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL; + params->device_flags |= DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST; + } + /* map the libmtp flags to ours. Currently its just 1 flag. */ + for (i = 0; idevice_flags = mtp_models[i].flags; + break; + } + } + + + switch (camera->port->type) { + case GP_PORT_USB: + params->sendreq_func = ptp_usb_sendreq; + params->senddata_func = ptp_usb_senddata; + params->getresp_func = ptp_usb_getresp; + params->getdata_func = ptp_usb_getdata; + params->event_wait = ptp_usb_event_wait; + params->event_check = ptp_usb_event_check; + params->event_check_queue = ptp_usb_event_check_queue; + params->cancelreq_func = ptp_usb_control_cancel_request; + params->maxpacketsize = settings.usb.maxpacketsize; + GP_LOG_D ("maxpacketsize %d", settings.usb.maxpacketsize); + if (params->device_flags & DEVICE_FLAG_OLYMPUS_XML_WRAPPED) { +#ifdef HAVE_LIBXML2 + GP_LOG_D ("Entering Olympus USB Mass Storage XML Wrapped Mode.\n"); + olympus_setup (params); +#else + gp_context_error (context, _("Olympus wrapped XML support is currently only available with libxml2 support built in.")); \ + return GP_ERROR; +#endif + } + break; + case GP_PORT_PTPIP: { + GPPortInfo info; + char *xpath; + + ret = gp_port_get_info (camera->port, &info); + if (ret != GP_OK) { + GP_LOG_E ("Failed to get port info?"); + return ret; + } + gp_port_info_get_path (info, &xpath); + ret = ptp_ptpip_connect (params, xpath); + if (ret != GP_OK) { + GP_LOG_E ("Failed to connect."); + return ret; + } + params->sendreq_func = ptp_ptpip_sendreq; + params->senddata_func = ptp_ptpip_senddata; + params->getresp_func = ptp_ptpip_getresp; + params->getdata_func = ptp_ptpip_getdata; + params->event_wait = ptp_ptpip_event_wait; + params->event_check = ptp_ptpip_event_check; + params->event_check_queue = ptp_ptpip_event_check_queue; + break; + } + default: + break; + } + if (!params->maxpacketsize) + params->maxpacketsize = 64; /* assume USB 1.0 */ + + /* Read configurable timeouts */ +#define XT(val,def) \ + if ((GP_OK == gp_setting_get("ptp2",#val,buf))) \ + sscanf(buf, "%d", &val); \ + if (!val) val = def; + XT(normal_timeout,USB_NORMAL_TIMEOUT); + XT(capture_timeout,USB_TIMEOUT_CAPTURE); + + /* Choose a shorter timeout on inital setup to avoid + * having the user wait too long. + */ + if (a.usb_vendor == 0x4a9) { /* CANON */ + /* our special canon friends get a shorter timeout, sinc ethey + * occasionaly need 2 retries. */ + XT(canon_start_timeout,USB_CANON_START_TIMEOUT); + CR (gp_port_set_timeout (camera->port, canon_start_timeout)); + } else { + XT(start_timeout,USB_START_TIMEOUT); + CR (gp_port_set_timeout (camera->port, start_timeout)); + } +#undef XT + if ((GP_OK == gp_setting_get("ptp2","cachetime",buf))) { + sscanf(buf, "%d", ¶ms->cachetime); + GP_LOG_D("read cachetime %d", params->cachetime); + } else { + params->cachetime = 2; /* 2 seconds */ + } + + /* Establish a connection to the camera */ + SET_CONTEXT(camera, context); + + tries = 0; + sessionid = 1; + while (1) { + ret = LOG_ON_PTP_E (ptp_opensession (params, sessionid)); + if (ret == PTP_RC_SessionAlreadyOpened || ret == PTP_RC_OK) + break; + + tries++; + + if (ret==PTP_RC_InvalidTransactionID) { + sessionid++; + /* Try a couple sessionids starting with 1 */ + if (tries < 10) + continue; + + if (tries < 11 && camera->port->type == GP_PORT_USB) { + /* Try whacking PTP device */ + ptp_usb_control_device_reset_request (&camera->pl->params); + sessionid = 1; + continue; + } + } else if ((ret == PTP_ERROR_RESP_EXPECTED) || (ret == PTP_ERROR_IO)) { + /* Try whacking PTP device */ + if (tries < 3 && camera->port->type == GP_PORT_USB) + ptp_usb_control_device_reset_request (params); + } + + if (tries < 3) + continue; + + /* FIXME: deviceinfo is not read yet ... (see macro)*/ + C_PTP_REP (ret); + } + /* We have cameras where a response takes 15 seconds(!), so make + * post init timeouts longer */ + CR (gp_port_set_timeout (camera->port, normal_timeout)); + + if (params->device_flags & DEVICE_FLAG_OLYMPUS_XML_WRAPPED) { + unsigned char *data; + unsigned int len; + PTPObjectInfo oi; + uint32_t parenthandle,storagehandle, handle; + + GP_LOG_D ("Sending empty XDISCVRY.X3C file to camera ... "); + + storagehandle = 0x80000001; + parenthandle = 0; + handle = 0; + + memset (&oi, 0, sizeof (oi)); + oi.ObjectFormat = PTP_OFC_Script; + oi.StorageID = 0x80000001; + oi.Filename = "XDISCVRY.X3C"; + oi.ObjectCompressedSize = 0; + C_PTP_REP (ptp_sendobjectinfo (params, &storagehandle, &parenthandle, &handle, &oi)); + + GP_LOG_D ("olympus getcameraid\n"); + C_PTP_REP (ptp_olympus_getcameraid (params, &data, &len)); + + GP_LOG_D ("olympus setcameracontrolmode\n"); + C_PTP_REP (ptp_olympus_setcameracontrolmode (params, 1)); + + GP_LOG_D ("olympus opensession\n"); + C_PTP_REP (ptp_olympus_opensession (params, &data, &len)); + } + + /* Seems HP does not like getdevinfo outside of session + although it's legal to do so */ + /* get device info */ + C_PTP_REP (ptp_getdeviceinfo(params, ¶ms->deviceinfo)); + + CR (fixup_cached_deviceinfo (camera,¶ms->deviceinfo)); + + print_debug_deviceinfo(params, ¶ms->deviceinfo); + + switch (params->deviceinfo.VendorExtensionID) { + case PTP_VENDOR_CANON: +#if 0 + if (ptp_operation_issupported(params, PTP_OC_CANON_ThemeDownload)) { + add_special_file("startimage.jpg", canon_theme_get, canon_theme_put); + add_special_file("startsound.wav", canon_theme_get, canon_theme_put); + add_special_file("operation.wav", canon_theme_get, canon_theme_put); + add_special_file("shutterrelease.wav", canon_theme_get, canon_theme_put); + add_special_file("selftimer.wav", canon_theme_get, canon_theme_put); + } +#endif + + /* If CHDK is present and enabled, this will go and overwrite the function tables again */ + if ( ptp_operation_issupported(params, PTP_OC_CHDK) && + (GP_OK == gp_setting_get("ptp2","chdk",buf)) && + !strcmp(buf,"on") + ) + return chdk_init (camera, context); + + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_SetRemoteMode)) { + if (is_canon_eos_m(params)) { + int mode = 0x15; /* default for EOS M and newer Powershot SX */ + + if (!strcmp(params->deviceinfo.Model,"Canon EOS M6 Mark II")) mode = 0x1; + + /* according to reporter only needed in config.c part + if (!strcmp(params->deviceinfo.Model,"Canon PowerShot G5 X")) mode = 0x11; + */ + C_PTP (ptp_canon_eos_setremotemode(params, mode)); + /* Setting remote mode changes device info on EOS M2, + so have to reget it */ + C_PTP (ptp_getdeviceinfo(&camera->pl->params, &camera->pl->params.deviceinfo)); + CR (fixup_cached_deviceinfo (camera, &camera->pl->params.deviceinfo)); + print_debug_deviceinfo(params, ¶ms->deviceinfo); + } else { + C_PTP (ptp_canon_eos_setremotemode(params, 1)); + } + } + break; + case PTP_VENDOR_NIKON: + if (ptp_operation_issupported(params, PTP_OC_NIKON_CurveDownload)) + add_special_file("curve.ntc", nikon_curve_get, nikon_curve_put); + break; + case PTP_VENDOR_SONY: + if (ptp_operation_issupported(params, 0x9280)) { +#if 0 + C_PTP (ptp_sony_9280(params, 0x1,0,1,0,0)); + C_PTP (ptp_sony_9281(params, 0x1)); /* no data sent back */ + + C_PTP (ptp_sony_9280(params, 0x1,0,2,0,0)); + C_PTP (ptp_sony_9281(params, 0x1)); /* no data sent back */ + + C_PTP (ptp_sony_9280(params, 0x4,0,1,0,0)); + C_PTP (ptp_sony_9281(params, 0x4)); /* gets big data blob? */ + /* also tries this multiple times , but gets back 2006 error + ptp_sony_9280(params, 0x5,0,1,0,0); + */ +#endif + /* This combination seems to reportedly work */ + C_PTP (ptp_sony_9280(params, 0x4, 2,2,0,0, 0x01,0x01)); + C_PTP (ptp_sony_9281(params, 0x4)); + } + break; + case PTP_VENDOR_FUJI: + CR (camera_prepare_capture (camera, context)); + break; + default: + break; + } + +#if 0 + /* new ptp 1.1 command, implemented in the newer iphone firmware */ + { + unsigned char *data; + ptp_getfilesystemmanifest (params, 0x00010001, 0, 0, &data); + } +#endif + + /* read the root directory to avoid the "DCIM WRONG ROOT" bugs */ + CR (gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera)); + + /* initialize the storage ids in Params */ + if ((!params->storageids.n) && (ptp_operation_issupported(params, PTP_OC_GetStorageIDs))) + ptp_getstorageids(params, ¶ms->storageids); + + if (a.usb_vendor == 0x05ac) { /* Apple iOS 10.2 hack */ + int timeout; + PTPContainer event; + + /* Background: + * Untrusted computer gets a storage id of 0xfeedface. + * Once the ipad user allows / trusts the computer in a popup dialog, + * this storage removed and the actual storage is being addded + * StoreRemoved 0xfeedface and StoreAdded 0x.... events are seen. + */ + + /* Wait for a valid storage id , starting with 0x0001???? */ + /* wait for 3 events or 9 seconds at most */ + tries = 3; + gp_port_get_timeout (camera->port, &timeout); + gp_port_set_timeout (camera->port, 3000); + while (tries--) { + /* 0xfeedface and 0x00000000 seem bad storageid values for iPhones */ + /* The event handling code in ptp.c will refresh the storage list if + * it sees the correct events */ + if (params->storageids.n && ( + (params->storageids.Storage[0] != 0xfeedface) && + (params->storageids.Storage[0] != 0x00000000) + )) + break; + C_PTP_REP (ptp_wait_event (params)); + while (ptp_get_one_event (params, &event)) { + GP_LOG_D ("Initial ptp event 0x%x (param1=%x)", event.Code, event.Param1); + /* the ptp stack should refresh the storage array */ + if (event.Code == PTP_EC_StoreAdded) + break; + } + } + gp_port_set_timeout (camera->port, timeout); + } + + /* avoid doing this on the Sonys DSLRs in control mode, they hang. :( */ + + if (params->deviceinfo.VendorExtensionID != PTP_VENDOR_SONY) + ptp_list_folder (params, PTP_HANDLER_SPECIAL, PTP_HANDLER_SPECIAL); + + { + unsigned int k; + + for (k=0;kstorageids.n;k++) { + if (!(params->storageids.Storage[k] & 0xffff)) continue; + if (params->storageids.Storage[k] == 0x80000001) continue; + ptp_list_folder (params, params->storageids.Storage[k], PTP_HANDLER_SPECIAL); + } + } + /* moved down here in case the filesystem needs to first be initialized as the Olympus app does */ + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_GP_OLYMPUS_OMD) { + GP_LOG_D ("Initializing Olympus ... "); + ptp_olympus_init_pc_mode(params); + + /* + if(params->storageids.n > 0) { // Olympus app gets storage info for first item, so emulating here + PTPStorageInfo storageinfo; + ptp_getstorageinfo(params, params->storageids.Storage[0], &storageinfo); + } + + PTPPropertyValue propval; + if (!strncmp(params->deviceinfo.Model,"E-M5",4)) { + ptp_olympus_init_pc_mode(params); + } + ptp_olympus_omd_init(params); + propval.u16 = 2; + ptp_setdevicepropvalue(params, 0xD078, &propval, PTP_DTC_UINT16); + if (!strncmp(params->deviceinfo.Model,"E-M1",4)) { + propval.u16 = 2; // save to camera's card + ptp_setdevicepropvalue(params, 0xD0DC, &propval, PTP_DTC_UINT16); + //propval.u16 = 1; + //ptp_setdevicepropvalue(params, 0xD052, &propval, PTP_DTC_UINT16); + ptp_check_event_handle (params, 0); + ptp_olympus_init_pc_mode(params); + } + */ + } + + + + SET_CONTEXT(camera, NULL); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/music-players.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/music-players.h new file mode 100644 index 00000000..6953318a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/music-players.h @@ -0,0 +1,4063 @@ +/** + * \file music-players.h + * List of music players as USB ids. + * + * Copyright (C) 2005-2007 Richard A. Low + * Copyright (C) 2005-2013 Linus Walleij + * Copyright (C) 2006-2007,2015-2018 Marcus Meissner + * Copyright (C) 2007 Ted Bullock + * Copyright (C) 2012 Sony Mobile Communications AB + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * This file is supposed to be included within a struct from both libmtp + * and libgphoto2. + * + * Information can be harvested from Windows driver .INF files, see: + * http://msdn.microsoft.com/en-us/library/aa973606.aspx + */ +/* + * MTP device list, trying real bad to get all devices into + * this list by stealing from everyone I know. + * Some devices taken from the Rockbox device listing: + * http://www.rockbox.org/twiki/bin/view/Main/DeviceDetection + */ + + /* + * Creative Technology and ZiiLABS + * Initially the Creative devices was all we supported so these are + * the most thoroughly tested devices. Presumably only the devices + * with older firmware (the ones that have 32bit object size) will + * need the DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL flag. This bug + * manifest itself when you have a lot of folders on the device, + * some of the folders will start to disappear when getting all objects + * and properties. + */ + { "Creative", 0x041e, "ZEN Vision", 0x411f, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Creative", 0x041e, "Portable Media Center", 0x4123, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Creative", 0x041e, "ZEN Xtra (MTP mode)", 0x4128, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Dell", 0x041e, "DJ (2nd generation)", 0x412f, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Creative", 0x041e, "ZEN Micro (MTP mode)", 0x4130, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Creative", 0x041e, "ZEN Touch (MTP mode)", 0x4131, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Dell", 0x041e, "Dell Pocket DJ (MTP mode)", 0x4132, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Creative", 0x041e, "ZEN MicroPhoto (alternate version)", 0x4133, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Creative", 0x041e, "ZEN Sleek (MTP mode)", 0x4137, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Creative", 0x041e, "ZEN MicroPhoto", 0x413c, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Creative", 0x041e, "ZEN Sleek Photo", 0x413d, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Creative", 0x041e, "ZEN Vision:M", 0x413e, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Reported by marazm@o2.pl + { "Creative", 0x041e, "ZEN V", 0x4150, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Reported by danielw@iinet.net.au + // This version of the Vision:M needs the no release interface flag, + // unclear whether the other version above need it too or not. + { "Creative", 0x041e, "ZEN Vision:M (DVP-HD0004)", 0x4151, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Reported by Darel on the XNJB forums + { "Creative", 0x041e, "ZEN V Plus", 0x4152, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + { "Creative", 0x041e, "ZEN Vision W", 0x4153, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Don't add 0x4155: this is a Zen Stone device which is not MTP + // Reported by Paul Kurczaba + { "Creative", 0x041e, "ZEN", 0x4157, + DEVICE_FLAG_IGNORE_HEADER_ERRORS | + DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Reported by Ringofan + { "Creative", 0x041e, "ZEN V 2GB", 0x4158, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Reported by j norment + { "Creative", 0x041e, "ZEN Mozaic", 0x4161, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Reported by Aaron F. Gonzalez + { "Creative", 0x041e, "ZEN X-Fi", 0x4162, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Reported by farmerstimuli + { "Creative", 0x041e, "ZEN X-Fi 3", 0x4169, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Reported by Todor Gyumyushev + { "ZiiLABS", 0x041e, "Zii EGG", 0x6000, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR | + DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + + /* + * Samsung + * We suspect that more of these are dual mode. + * We suspect more of these might need DEVICE_FLAG_NO_ZERO_READS + * We suspect more of these might need DEVICE_FLAG_PLAYLIST_SPL_V1 + * or DEVICE_FLAG_PLAYLIST_SPL_V2 to get playlists working. + * YP-NEU, YP-NDU, YP-20, YP-800, YP-MF Series, YP-100, YP-30 + * YP-700 and YP-90 are NOT MTP, but use a Samsung custom protocol. + * See: http://wiki.xiph.org/index.php/PortablePlayers for Ogg + * status. + */ + // From anonymous SourceForge user, not verified + { "Samsung", 0x04e8, "YP-900", 0x0409, DEVICE_FLAG_NONE }, + // From MItch + { "Samsung", 0x04e8, "I550W Phone", 0x04a4, DEVICE_FLAG_NONE }, + // From Manfred Enning + { "Samsung", 0x04e8, "Jet S8000", 0x4f1f, DEVICE_FLAG_NONE }, + // From Gabriel Nunes + { "Samsung", 0x04e8, "YH-920 (501d)", 0x501d, DEVICE_FLAG_UNLOAD_DRIVER }, + // From Soren O'Neill + { "Samsung", 0x04e8, "YH-920 (5022)", 0x5022, DEVICE_FLAG_UNLOAD_DRIVER }, + // Contributed by aronvanammers on SourceForge + { "Samsung", 0x04e8, "YH-925GS", 0x5024, DEVICE_FLAG_NONE }, + // From libgphoto2, according to tests by Stephan Fabel it cannot + // get all objects with the getobjectproplist command.. + { "Samsung", 0x04e8, "YH-820", 0x502e, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Contributed by polux2001@users.sourceforge.net + { "Samsung", 0x04e8, "YH-925(-GS)", 0x502f, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Contributed by anonymous person on SourceForge + { "Samsung", 0x04e8, "YH-J70J", 0x5033, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From XNJB user + // Guessing on .spl flag + { "Samsung", 0x04e8, "YP-Z5", 0x503c, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // Don't add 0x5041 as this is YP-Z5 in USB mode + // Contributed by anonymous person on SourceForge + { "Samsung", 0x04e8, "YP-T7J", 0x5047, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + // Reported by cstrickler@gmail.com + { "Samsung", 0x04e8, "YP-U2J (YP-U2JXB/XAA)", 0x5054, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + // Reported by Andrew Benson + { "Samsung", 0x04e8, "YP-F2J", 0x5057, + DEVICE_FLAG_UNLOAD_DRIVER }, + // Reported by Patrick + // Just guessing but looks like .spl v1 http://www.anythingbutipod.com/forum/showthread.php?t=14160 + { "Samsung", 0x04e8, "YP-K5", 0x505a, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From dev.local@gmail.com - 0x4e8/0x507c is the UMS mode, apparently + // do not add that device. + // From m.eik michalke + // This device does NOT use the special SPL playlist according to sypqgjxu@gmx.de. + { "Samsung", 0x04e8, "YP-U3", 0x507d, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + // Reported by Matthew Wilcox + // Sergio reports this device need the BROKEN ALL flag. + // Guessing on .spl flag + { "Samsung", 0x04e8, "YP-T9", 0x507f, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From Paul Clinch + // Just guessing but looks like .spl v1 http://www.anythingbutipod.com/forum/showthread.php?t=14160 + // Some versions of the firmware reportedly support OGG, reportedly only the + // UMS versions, so MTP+OGG is not possible on this device. + { "Samsung", 0x04e8, "YP-K3", 0x5081, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From XNJB user + // From Alistair Boyle, .spl v2 required for playlists + // According to the device log it properly supports OGG + { "Samsung", 0x04e8, "YP-P2", 0x5083, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_PLAYLIST_SPL_V2 }, + // From Paul Clinch + // Guessing on .spl flag + { "Samsung", 0x04e8, "YP-T10", 0x508a, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_PLAYLIST_SPL_V1 | + DEVICE_FLAG_NO_ZERO_READS }, + // From Wim Verwimp + // Not sure about the Ogg and broken proplist flags here. Just guessing. + // Guessing on .spl flag + { "Samsung", 0x04e8, "YP-S5", 0x508b, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From Ludovic Danigo + // Guessing on .spl flag + { "Samsung", 0x04e8, "YP-S3", 0x5091, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From Adrian Levi + // Guessing on .spl flag + // This one supports OGG properly through the correct MTP type. + { "Samsung", 0x04e8, "YP-U4", 0x5093, DEVICE_FLAG_UNLOAD_DRIVER }, + // From Chris Le Sueur + // Guessing on .spl flag + // This one supports OGG properly through the correct MTP type. + { "Samsung", 0x04e8, "YP-R1", 0x510f, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_UNIQUE_FILENAMES | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // From Anonymous SourceForge user + // Guessing on .spl flag + { "Samsung", 0x04e8, "YP-Q1", 0x5115, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From Holger + { "Samsung", 0x04e8, "YP-M1", 0x5118, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_PLAYLIST_SPL_V2 }, + // From Anonymous SourceForge user + // Guessing on .spl flag + { "Samsung", 0x04e8, "YP-P3", 0x511a, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From Anonymous SourceForge user + // Guessing on .spl flag + { "Samsung", 0x04e8, "YP-Q2", 0x511d, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From Marco Pizzocaro + // Guessing on .spl flag + { "Samsung", 0x04e8, "YP-U5", 0x5121, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_PLAYLIST_SPL_V1 | + DEVICE_FLAG_UNIQUE_FILENAMES | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // From Leonardo Accorsi + // Guessing on .spl flag + { "Samsung", 0x04e8, "YP-R0", 0x5125, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_PLAYLIST_SPL_V1 | + DEVICE_FLAG_UNIQUE_FILENAMES | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // The "YP-R2" (0x04e8/0x512d) is NOT MTP, it is UMS only. + // Guessing on device flags for the MTP mode... + { "Samsung", 0x04e8, "YP-R2", 0x512e, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_UNIQUE_FILENAMES | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From Manuel Carro + // Copied from Q2 + { "Samsung", 0x04e8, "YP-Q3", 0x5130, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // Reported by: traaf + // Guessing on the playlist type! + // Appears to present itself properly as a PTP device with MTP extensions! + { "Samsung", 0x04e8, "YP-Z3", 0x5137, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // YP-F3 is NOT MTP - USB mass storage + // From a rouge .INF file + // this device ID seems to have been recycled for: + // the Samsung SGH-A707 Cingular cellphone + // the Samsung L760-V cellphone + // the Samsung SGH-U900 cellphone + // the Samsung Fascinate player + { "Samsung", 0x04e8, + "YH-999 Portable Media Center/SGH-A707/SGH-L760V/SGH-U900/Verizon Intensity/Fascinate", + 0x5a0f, DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // From Santi Béjar - not sure this is MTP... + // { "Samsung", 0x04e8, "Z170 Mobile Phone", 0x6601, DEVICE_FLAG_UNLOAD_DRIVER }, + // From Santi Béjar - not sure this is MTP... + // { "Samsung", 0x04e8, "E250 Mobile Phone", 0x663e, DEVICE_FLAG_UNLOAD_DRIVER }, + // From an anonymous SF user + { "Samsung", 0x04e8, "M7600 Beat/GT-S8300T/SGH-F490/S8300", 0x6642, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_BROKEN_BATTERY_LEVEL }, + // From Lionel Bouton + { "Samsung", 0x04e8, "X830 Mobile Phone", 0x6702, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From James + { "Samsung", 0x04e8, "U600 Mobile Phone", 0x6709, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From Cesar Cardoso + // No confirmation that this is really MTP. + { "Samsung", 0x04e8, "F250 Mobile Phone", 0x6727, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From Charlie Todd 2007-10-31 + { "Samsung", 0x04e8, "Juke (SCH-U470)", 0x6734, + DEVICE_FLAG_UNLOAD_DRIVER}, + // Reported by Tenn + { "Samsung", 0x04e8, "GT-B2700", 0x6752, + DEVICE_FLAG_UNLOAD_DRIVER }, + // Added by Greg Fitzgerald + { "Samsung", 0x04e8, "SAMSUNG Trance", 0x6763, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From anonymous sourceforge user + // Guessing on .spl flag, maybe needs NO_ZERO_READS, whatdoIknow + { "Samsung", 0x04e8, "GT-S8500", 0x6819, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + /* + * These entries seems to be used on a *lot* of Samsung + * Android phones. It is *not* the Android MTP stack but an internal + * Samsung stack. The devices present a few different product IDs + * depending on mode: + * + * 0x685b - UMS + * 0x685c - MTP + ADB + * 0x685e - UMS + CDC (not MTP) + * 0x6860 - MTP mode (default) + * 0x6863 - USB CDC RNDIS (not MTP) + * 0x6865 - PTP mode (not MTP) + * 0x6877 - Kies mode? Does it have MTP? + * + * Used on these samsung devices: + * GT P7310/P7510/N7000/I9100/I9250/I9300 + * Galaxy Nexus + * Galaxy Tab 7.7/10.1 + * Galaxy S GT-I9000 + * Galaxy S Advance GT-I9070 + * Galaxy S2 + * Galaxy S3 + * Galaxy Note + * Gakaxy Xcover + * Galaxy Y + * + * - It seems that some PTP commands are broken. + * - Devices seem to have a connection timeout, the session must be + * open in about 3 seconds since the device is plugged in, after + * that time it will not respond. Thus GUI programs work fine. + * - Seems also to be used with Galaxy Nexus debug mode and on + * US markets for some weird reason. + * - has a weird USB bug if it reads exactly 512byte (usb 2 packetsize) + * the device will hang. this is one of the reasons we need to disable + * DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST as it can hit this size :/ + * + * From: Ignacio Martínez and others + * From Harrison Metzger + */ + { "Samsung", 0x04e8, + "Galaxy models (MTP+ADB)", 0x685c, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_LONG_TIMEOUT | + DEVICE_FLAG_PROPLIST_OVERRIDES_OI | + DEVICE_FLAG_SAMSUNG_OFFSET_BUG | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_FLAC_IS_UNKNOWN }, + { "Samsung", 0x04e8, + "Galaxy models (MTP)", 0x6860, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_LONG_TIMEOUT | + DEVICE_FLAG_PROPLIST_OVERRIDES_OI | + DEVICE_FLAG_SAMSUNG_OFFSET_BUG | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // From: Erik Berglund + // Logs indicate this needs DEVICE_FLAG_NO_ZERO_READS + // No Samsung platlists on this device. + // https://sourceforge.net/tracker/?func=detail&atid=809061&aid=3026337&group_id=158745 + // i5800 duplicate reported by igel + // Guessing this has the same problematic MTP stack as the device + // above. + { "Samsung", 0x04e8, "Galaxy models Kies mode", 0x6877, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_LONG_TIMEOUT | + DEVICE_FLAG_PROPLIST_OVERRIDES_OI | + DEVICE_FLAG_SAMSUNG_OFFSET_BUG | + DEVICE_FLAG_OGG_IS_UNKNOWN | + DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // From: John Gorkos and + // Akos Maroy + { "Samsung", 0x04e8, "Vibrant SGH-T959/Captivate/Media player mode", 0x68a9, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // Reported by Sleep.Walker + { "Samsung", 0x04e8, "GT-B2710/Xcover 271", 0x68af, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_PLAYLIST_SPL_V1 }, + // From anonymous Sourceforge user + { "Samsung", 0x04e8, "GT-S5230", 0xe20c, DEVICE_FLAG_NONE }, + + + /* + * Microsoft + * All except the first probably need MTPZ to work + */ + { "Microsoft/Intel", 0x045e, "Bandon Portable Media Center", 0x00c9, + DEVICE_FLAG_NONE }, + // HTC Mozart is using the PID, as is Nokia Lumia 800 + // May need MTPZ to work + { "Microsoft", 0x045e, "Windows Phone", 0x04ec, DEVICE_FLAG_NONE }, + // Reported by Tadimarri Sarath + // No idea why this use an Intel PID, perhaps a leftover from + // the early PMC development days when Intel and Microsoft were + // partnering. + { "Microsoft", 0x045e, "Windows MTP Simulator", 0x0622, DEVICE_FLAG_NONE }, + // Reported by Edward Hutchins (used for Zune HDs) + { "Microsoft", 0x045e, "Zune HD", 0x063e, DEVICE_FLAG_NONE }, + { "Microsoft", 0x045e, "Kin 1", 0x0640, DEVICE_FLAG_NONE }, + { "Microsoft/Sharp/nVidia", 0x045e, "Kin TwoM", 0x0641, DEVICE_FLAG_NONE }, + // Reported by Farooq Zaman (used for all Zunes) + { "Microsoft", 0x045e, "Zune", 0x0710, DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/feature-requests/155/ */ + { "Microsoft", 0x045e, "Lumia 950 XL Dual SIM (RM-1116)", 0x0a00, DEVICE_FLAG_NONE }, + // Reported by Olegs Jeremejevs + { "Microsoft/HTC", 0x045e, "HTC 8S", 0xf0ca, DEVICE_FLAG_NONE }, + + /* + * JVC + */ + // From Mark Veinot + { "JVC", 0x04f1, "Alneo XA-HD500", 0x6105, DEVICE_FLAG_NONE }, + + /* https://sourceforge.net/p/libmtp/bugs/1613/ */ + { "Intex", 0x05c6, "Aqua Fish", 0x0a07, DEVICE_FLAG_NONE }, + + /* + * Philips + */ + { "Philips", 0x0471, "HDD6320/00 or HDD6330/17", 0x014b, DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Anonymous SourceForge user + { "Philips", 0x0471, "HDD14XX,HDD1620 or HDD1630/17", 0x014c, DEVICE_FLAG_NONE }, + // from discussion forum + { "Philips", 0x0471, "HDD085/00 or HDD082/17", 0x014d, DEVICE_FLAG_NONE }, + // from XNJB forum + { "Philips", 0x0471, "GoGear SA9200", 0x014f, DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // From John Coppens + { "Philips", 0x0471, "SA1115/55", 0x0164, DEVICE_FLAG_NONE }, + // From Gerhard Mekenkamp + { "Philips", 0x0471, "GoGear Audio", 0x0165, DEVICE_FLAG_NONE }, + // from David Holm + { "Philips", 0x0471, "Shoqbox", 0x0172, DEVICE_FLAG_ONLY_7BIT_FILENAMES }, + // from npedrosa + { "Philips", 0x0471, "PSA610", 0x0181, DEVICE_FLAG_NONE }, + // From libgphoto2 source + { "Philips", 0x0471, "HDD6320", 0x01eb, DEVICE_FLAG_NONE }, + // From Detlef Meier + { "Philips", 0x0471, "GoGear SA6014/SA6015/SA6024/SA6025/SA6044/SA6045", 0x084e, DEVICE_FLAG_UNLOAD_DRIVER }, + // From anonymous Sourceforge user SA5145/02 + { "Philips", 0x0471, "GoGear SA5145", 0x0857, DEVICE_FLAG_UNLOAD_DRIVER }, + /* https://sourceforge.net/p/libmtp/bugs/1260/ */ + { "Philips", 0x0471, "i908", 0x190b, DEVICE_FLAG_UNLOAD_DRIVER }, + // From a + { "Philips", 0x0471, "GoGear SA6125/SA6145/SA6185", 0x2002, DEVICE_FLAG_UNLOAD_DRIVER }, + // From anonymous Sourceforge user, not verified to be MTP! + { "Philips", 0x0471, "GoGear SA3345", 0x2004, DEVICE_FLAG_UNLOAD_DRIVER }, + /* https://sourceforge.net/p/libmtp/support-requests/163/ */ + { "Philips", 0x0471, "W6610", 0x2008, DEVICE_FLAG_UNLOAD_DRIVER }, + // From Roberto Vidmar + { "Philips", 0x0471, "SA5285", 0x2022, DEVICE_FLAG_UNLOAD_DRIVER }, + // From Elie De Brauwer + { "Philips", 0x0471, "GoGear ViBE SA1VBE04", 0x2075, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From Anonymous SourceForge user + { "Philips", 0x0471, "GoGear Muse", 0x2077, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From Elie De Brauwer + { "Philips", 0x0471, "GoGear ViBE SA1VBE04/08", 0x207b, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From josmtx + { "Philips", 0x0471, "GoGear Aria", 0x207c, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From epklein + { "Philips", 0x0471, "GoGear SA1VBE08KX/78", 0x208e, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From Anonymous SourceForge User + { "Philips", 0x0471, "GoGear VIBE SA2VBE[08|16]K/02", 0x20b7, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From Anonymous SourceForge User + { "Philips", 0x0471, "GoGear Ariaz", 0x20b9, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From Anonymous SourceForge User + { "Philips", 0x0471, "GoGear Vibe/02", 0x20e5, + DEVICE_FLAG_UNLOAD_DRIVER }, + // Reported by Philip Rhoades + { "Philips", 0x0471, "GoGear Ariaz/97", 0x2138, + DEVICE_FLAG_UNLOAD_DRIVER }, + /* https://sourceforge.net/p/libmtp/bugs/1186/ */ + { "Philips", 0x0471, "PI3900B2/58 ", 0x2190, + DEVICE_FLAG_UNLOAD_DRIVER }, + // from XNJB user + { "Philips", 0x0471, "PSA235", 0x7e01, DEVICE_FLAG_NONE }, + + /* + * Acer + * Reporters: + * Franck VDL + * Matthias Arndt + * Arvin Schnell + * Philippe Marzouk + * nE0sIghT + * Maxime de Roucy + */ + { "Acer", 0x0502, "Iconia TAB A500 (ID1)", 0x3325, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A500 (ID2)", 0x3341, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A501 (ID1)", 0x3344, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A501 (ID2)", 0x3345, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A100 (ID1)", 0x3348, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A100 (ID2)", 0x3349, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A101 (ID1)", 0x334a, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A700", 0x3378, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A200 (ID1)", 0x337c, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A200 (ID2)", 0x337d, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A510 (ID1)", 0x3389, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A510 (ID2)", 0x338a, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "S500 CloudMobile", 0x33aa, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "E350 Liquid Gallant Duo (ID1)", 0x33c3, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "E350 Liquid Gallant Duo (ID2)", 0x33c4, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A210", 0x33cb, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia TAB A110", 0x33d8, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Liquid Z120 MT65xx Android Phone", 0x3473, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1029/ */ + { "Acer", 0x0502, "Liquid E2", 0x3514, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia A1-810", 0x353c, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Liquid Z130 MT65xx Android Phone", 0x355f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1206/ */ + { "Acer", 0x0502, "Iconia A3-A11", 0x3586, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1103/ */ + { "Acer", 0x0502, "Liquid E3", 0x35a8, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1147/ */ + { "Acer", 0x0502, "Z150", 0x35e4, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1184/ */ + { "Acer", 0x0502, "Liquid X1", 0x3609, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1298/ */ + { "Acer", 0x0502, "Z160", 0x361d, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "Iconia A1-840FHD", 0x362d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1251/ */ + { "Acer", 0x0502, "E39", 0x3643, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1369/ */ + { "Acer", 0x0502, "liquid e700", 0x3644, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acer", 0x0502, "One 7", 0x3657, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/183/ */ + { "Acer", 0x0502, "Z200", 0x3683, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1579/ */ + { "Acer", 0x0502, "A1-841", 0x365e, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1341/ */ + { "Acer", 0x0502, "Liquid S56", 0x3725, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/228/ */ + { "Acer", 0x0502, "Liquid Z220 (ID1)", 0x374f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/188/ */ + { "Acer", 0x0502, "Liquid Z220 (ID2)", 0x3750, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1478/ */ + { "Acer", 0x0502, "Liquid Z330", 0x3750, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1552/ */ + { "Acer", 0x0502, "Liquid Z630", 0x37ef, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1469/ */ + { "Acer", 0x0502, "Z530", 0x3822, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1534/ */ + { "Acer", 0x0502, "Z530 16GB", 0x3823, + DEVICE_FLAGS_ANDROID_BUGS }, + /* Reported by Jocelyn Mayer */ + { "Acer", 0x0502, "Iconia One 10", 0x3841, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/279/ */ + { "Acer", 0x0502, "B3-A20", 0x3841, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1733/ */ + { "Acer", 0x0502, "Liquid Zest 4G", 0x38a5, + DEVICE_FLAGS_ANDROID_BUGS }, + /* Mia */ + { "Acer", 0x0502, "Liquid Zest Plus", 0x38bb, + DEVICE_FLAGS_ANDROID_BUGS }, + /* Richard Waterbeek on libmtp-discuss */ + { "Acer", 0x0502, "Liquid Liquid Z6E", 0x3938, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1838/ */ + { "Acer", 0x0502, "Iconia One 10 B3-A40 ", 0x394b, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * SanDisk + * several devices (c150 for sure) are definately dual-mode and must + * have the USB mass storage driver that hooks them unloaded first. + * They all have problematic dual-mode making the device unload effect + * uncertain on these devices. + * + * All older devices seem to need DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL. + * Old chipsets: e200/c200 use PP5024 from Nvidia (formerly PortalPlayer). + * m200 use TCC770 from Telechips. + * + * The newer Sansa v2 chipset, AD3525 from Austriamicrosystems (AMS) found + * in e280 v2 c200 v2, Clip, Fuze etc require + * DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST + * and DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR to work properly. + * + * For more info see: http://daniel.haxx.se/sansa/v2.html + */ + // Reported by Brian Robison + { "SanDisk", 0x0781, "Sansa m230/m240", 0x7400, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // From Rockbox device listing + { "SanDisk", 0x0781, "Sansa m200-tcc (MTP mode)", 0x7401, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // Reported by tangent_@users.sourceforge.net + { "SanDisk", 0x0781, "Sansa c150", 0x7410, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // From libgphoto2 source + // Reported by + // Reported by Mike Owen + { "SanDisk", 0x0781, "Sansa e200/e250/e260/e270/e280", 0x7420, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // Don't add 0x7421 as this is e280 in MSC mode + // Reported by XNJB user + { "SanDisk", 0x0781, "Sansa e260/e280 v2", 0x7422, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR | + DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // Reported by XNJB user + { "SanDisk", 0x0781, "Sansa m240/m250", 0x7430, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // Reported by Eugene Brevdo + { "SanDisk", 0x0781, "Sansa Clip", 0x7432, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR | + DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED}, + // Reported by HackAR + { "SanDisk", 0x0781, "Sansa Clip v2", 0x7434, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR | + DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED}, + // Reported by anonymous user at sourceforge.net + { "SanDisk", 0x0781, "Sansa c240/c250", 0x7450, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // Reported by anonymous SourceForge user + { "SanDisk", 0x0781, "Sansa c250 v2", 0x7452, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // Reported by Troy Curtis Jr. + { "SanDisk", 0x0781, "Sansa Express", 0x7460, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // Reported by XNJB user, and Miguel de Icaza + // This has no dual-mode so no need to unload any driver. + // This is a Linux based device! + { "SanDisk", 0x0781, "Sansa Connect", 0x7480, DEVICE_FLAG_NONE }, + // Reported by anonymous SourceForge user + { "SanDisk", 0x0781, "Sansa View", 0x74b0, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // Reported by Patrick + // There are apparently problems with this device. + { "SanDisk", 0x0781, "Sansa Fuze", 0x74c0, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR | + DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS | + DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // Harry Phillips + { "SanDisk", 0x0781, "Sansa Fuze v2", 0x74c2, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR | + DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS | + DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED }, + // Reported by anonymous SourceForge user + // Need BROKEN_SET_SAMPLE_DIMENSIONS accordning to + // Michael + { "SanDisk", 0x0781, "Sansa Clip+", 0x74d0, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR | + DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS | + DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED}, + // Reported by anonymous SourceForge user + { "SanDisk", 0x0781, "Sansa Fuze+", 0x74e0, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR | + DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS | + DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED}, + // Reported by mattyj2001@users.sourceforge.net + { "SanDisk", 0x0781, "Sansa Clip Zip", 0x74e4, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR | + DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS | + DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED}, + + /* + * iRiver + * we assume that PTP_OC_MTP_GetObjPropList is essentially + * broken on all iRiver devices, meaning it simply won't return + * all properties for a file when asking for metadata 0xffffffff. + * Please test on your device if you believe it isn't broken! + */ + { "iRiver", 0x1006, "H300 Series MTP", 0x3004, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + { "iRiver", 0x1006, "Portable Media Center 1", 0x4002, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + { "iRiver", 0x1006, "Portable Media Center 2", 0x4003, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + // From [st]anislav + { "iRiver", 0x1042, "T7 Volcano", 0x1143, DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + // From an anonymous person at SourceForge, uncertain about this one + { "iRiver", 0x4102, "iFP-880", 0x1008, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + // 0x4102, 0x1042 is a USB mass storage mode for E100 v2/Lplayer + // From libgphoto2 source + { "iRiver", 0x4102, "T10", 0x1113, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + { "iRiver", 0x4102, "T20 FM", 0x1114, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + // This appears at the MTP-UMS site + { "iRiver", 0x4102, "T20", 0x1115, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + { "iRiver", 0x4102, "U10", 0x1116, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + { "iRiver", 0x4102, "T10b", 0x1117, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + { "iRiver", 0x4102, "T20b", 0x1118, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + { "iRiver", 0x4102, "T30", 0x1119, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + // Reported by David Wolpoff + { "iRiver", 0x4102, "T10 2GB", 0x1120, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + // Rough guess this is the MTP device ID... + { "iRiver", 0x4102, "N12", 0x1122, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + // Reported by Philip Antoniades + // Newer iriver devices seem to have shaped-up firmware without any + // of the annoying bugs. + { "iRiver", 0x4102, "Clix2", 0x1126, DEVICE_FLAG_NONE }, + // Reported by Adam Torgerson + { "iRiver", 0x4102, "Clix", 0x112a, + DEVICE_FLAG_NO_ZERO_READS | DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + // Reported by Douglas Roth + { "iRiver", 0x4102, "X20", 0x1132, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + // Reported by Robert Ugo + { "iRiver", 0x4102, "T60", 0x1134, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_IRIVER_OGG_ALZHEIMER }, + // Reported by two anonymous SourceForge users + // Needs the stronger OGG_IS_UNKNOWN flag to support OGG properly, + // be aware of newer players that may be needing this too. + { "iRiver", 0x4102, "E100", 0x1141, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + // Reported by anonymous SourceForge user + // Need verification of whether this firmware really need all these flags + { "iRiver", 0x4102, "E100 v2/Lplayer", 0x1142, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + // Reported by Richard Vennemann + // In USB Mass Storage mode it is 0x4102/0x1047 + // Seems to use the new shaped-up firmware. + { "iRiver", 0x4102, "Spinn", 0x1147, DEVICE_FLAG_NONE }, + // Reported by Tony Janssen + { "iRiver", 0x4102, "E50", 0x1151, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + // Reported by anonymous SourceForge user, guessing on flags + { "iRiver", 0x4102, "E150", 0x1152, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + // Reported by Jakub Matraszek + { "iRiver", 0x4102, "T5", 0x1153, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_NO_ZERO_READS | DEVICE_FLAG_OGG_IS_UNKNOWN }, + // Reported by pyalex@users.sourceforge.net + // Guessing that this needs the FLAG_NO_ZERO_READS... + { "iRiver", 0x4102, "E30", 0x1167, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + /* https://sourceforge.net/p/libmtp/bugs/1766/ */ + { "iRiver", 0x4102, "AK380", 0x1195, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + /* https://sourceforge.net/p/libmtp/bugs/1634/ + * copying flags from above */ + { "iRiver", 0x4102, "AK70", 0x1200, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + // Reported by Scott Call + // Assume this actually supports OGG though it reports it doesn't. + { "iRiver", 0x4102, "H10 20GB", 0x2101, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + { "iRiver", 0x4102, "H10 5GB", 0x2102, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + // From Rockbox device listing + { "iRiver", 0x4102, "H10 5.6GB", 0x2105, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | DEVICE_FLAG_NO_ZERO_READS | + DEVICE_FLAG_OGG_IS_UNKNOWN }, + + + /* + * Dell + */ + { "Dell Inc", 0x413c, "DJ Itty", 0x4500, + DEVICE_FLAG_NONE }, + /* Reported by: JR */ + { "Dell Inc", 0x413c, "Dell Streak 7", 0xb10b, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Dell Inc", 0x413c, "Dell Venue 7 inch", 0xb11a, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Dell Inc", 0x413c, "Dell Venue 7 inch (2nd ID)", 0xb11b, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Toshiba + * Tentatively flagged all Toshiba devices with + * DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST after one of them + * showed erroneous behaviour. + */ + { "Toshiba", 0x0930, "Gigabeat MEGF-40", 0x0009, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + { "Toshiba", 0x0930, "Gigabeat", 0x000c, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + // Reported by Nicholas Tripp + { "Toshiba", 0x0930, "Gigabeat P20", 0x000f, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + // From libgphoto2 + { "Toshiba", 0x0930, "Gigabeat S", 0x0010, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + // Reported by Rob Brown + { "Toshiba", 0x0930, "Gigabeat P10", 0x0011, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + // Reported by solanum@users.sourceforge.net + { "Toshiba", 0x0930, "Gigabeat V30", 0x0014, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + // Reported by Michael Davis + { "Toshiba", 0x0930, "Gigabeat U", 0x0016, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + // Reported by Devon Jacobs + { "Toshiba", 0x0930, "Gigabeat MEU202", 0x0018, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + // Reported by Rolf + { "Toshiba", 0x0930, "Gigabeat T", 0x0019, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + // Reported by Phil Ingram + // Tentatively added - no real reports of this device ID being MTP, + // reports as USB Mass Storage currently. + { "Toshiba", 0x0930, "Gigabeat MEU201", 0x001a, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + // Reported by anonymous SourceForge user + { "Toshiba", 0x0930, "Gigabeat MET401", 0x001d, + DEVICE_FLAG_NO_RELEASE_INTERFACE | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + // Reported by Andree Jacobson + { "Toshiba", 0x0930, "Excite AT300", 0x0963, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1557/ */ + { "Toshiba", 0x0930, "Excite AT200", 0x0960, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Nigel Cunningham + // Guessing on Android bugs + { "Toshiba", 0x0930, "Thrive AT100/AT105", 0x7100, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Archos + * These devices have some dual-mode interfaces which will really + * respect the driver unloading, so DEVICE_FLAG_UNLOAD_DRIVER + * really work on these devices! + * + * Devices reported by: + * Archos + * Alexander Haertig + * Jan Binder + * gudul1@users.sourceforge.net + * Etienne Chauchot + * Kay McCormick + * Joe Rabinoff + * Jim Krehl + * Adrien Guichard + * Clément + * Thackert + * Till + * Sebastien ROHAUT + */ + { "Archos", 0x0e79, "Gmini XS100", 0x1207, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "XS202 (MTP mode)", 0x1208, DEVICE_FLAG_NONE }, + { "Archos", 0x0e79, "104 (MTP mode)", 0x120a, DEVICE_FLAG_NONE }, + { "Archos", 0x0e79, "204 (MTP mode)", 0x120c, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "404 (MTP mode)", 0x1301, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "404CAM (MTP mode)", 0x1303, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "504 (MTP mode)", 0x1307, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "604 (MTP mode)", 0x1309, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "604WIFI (MTP mode)", 0x130b, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "704 mobile dvr", 0x130d, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "704TV (MTP mode)", 0x130f, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "405 (MTP mode)", 0x1311, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "605 (MTP mode)", 0x1313, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "605F (MTP mode)", 0x1315, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "705 (MTP mode)", 0x1319, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "TV+ (MTP mode)", 0x131b, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "105 (MTP mode)", 0x131d, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "405HDD (MTP mode)", 0x1321, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "5 (MTP mode 1)", 0x1331, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "5 (MTP mode 2)", 0x1333, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "7 (MTP mode)", 0x1335, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "SPOD (MTP mode)", 0x1341, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "5S IT (MTP mode)", 0x1351, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "5H IT (MTP mode)", 0x1357, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "48 (MTP mode)", 0x1421, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "Arnova Childpad", 0x1458, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "Arnova 8c G3", 0x145e, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "Arnova 10bG3 Tablet", 0x146b, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "97 Xenon", 0x149a, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "97 Titanium", 0x14ad, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "80 Titanium", 0x14bf, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "101 Titanium", 0x14b9, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/91/ */ + { "Archos", 0x0e79, "70b Titanium", 0x14ef, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "8o G9 (MTP mode)", 0x1508, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "8o G9 Turbo (MTP mode)", 0x1509, DEVICE_FLAG_UNLOAD_DRIVER }, + { "Archos", 0x0e79, "80G9", 0x1518, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "101 G9 (ID1)", 0x1528, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "101 G9 (ID2)", 0x1529, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "101 G9 Turbo 250 HD", 0x1538, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "101 G9 Turbo", 0x1539, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "101 XS", 0x1548, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "70it2 (ID 1)", 0x1568, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "70it2 (ID 2)", 0x1569, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "70 Cobalt", 0x15ba, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "50c", 0x2008, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "C40", 0x31ab, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1824/ */ + { "Archos", 0x0e79, "50b", 0x31bd, DEVICE_FLAGS_ANDROID_BUGS }, + /* via libmtp-discuss Tonton */ + { "Archos", 0x0e79, "Helium 45B", 0x31d8, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1393/ */ + { "Archos", 0x0e79, "Phone", 0x31e1, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1325/ */ + { "Archos", 0x0e79, "45 Neon", 0x31f3, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1352/ */ + { "Archos", 0x0e79, "50 Diamond", 0x3229, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/241 */ + { "Archos", 0x0e79, "50 Diamond (2nd ID)", 0x322a, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "101 G4", 0x4002, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos (for Tesco)", 0x0e79, "Hudl (ID1)", 0x5008, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos (for Tesco)", 0x0e79, "Hudl (ID2)", 0x5009, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1404/ */ + { "Archos", 0x0e79, "AC40DTI", 0x5217, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/221/ */ + { "Archos", 0x0e79, "50 Helium Plus", 0x5229, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1682/ */ + { "Archos", 0x0e79, "50 Helium Plus (2nd ID)", 0x522a, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1573/ */ + { "Archos", 0x0e79, "101 xenon lite", 0x528c, DEVICE_FLAGS_ANDROID_BUGS }, + { "Archos", 0x0e79, "101 xenon lite (ADB)", 0x528d, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1581/ */ + { "Archos", 0x0e79, "40 Helium phone", 0x52c2, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/support-requests/222/ */ + { "Archos", 0x0e79, "Diamond S", 0x5305, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1587/ */ + { "Archos", 0x0e79, "50d neon", 0x5371, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1660/ */ + { "Archos", 0x0e79, "70b neon", 0x5395, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/290/ */ + { "Archos", 0x0e79, "50 power", 0x53a7, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1637/ */ + { "Archos", 0x0e79, "101b Oxygen", 0x542f, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/support-requests/245/ */ + { "Archos", 0x0e79, "55B Platinum", 0x544a, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1799/ */ + { "Archos", 0x0e79, "50F Helium", 0x545c, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/209/ */ + { "Archos", 0x0e79, "55 diamond Selfie", 0x5465, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/262/ */ + { "Archos", 0x0e79, "Core 50P", 0x5603, DEVICE_FLAGS_ANDROID_BUGS }, + + + /* + * Dunlop (OEM of EGOMAN ltd?) reported by Nanomad + * This unit is falsely detected as USB mass storage in Linux + * prior to kernel 2.6.19 (fixed by patch from Alan Stern) + * so on older kernels special care is needed to remove the + * USB mass storage driver that erroneously binds to the device + * interface. + * + * More problematic, this manufacturer+device ID seems to be + * reused in a USB Mass Storage device named "Zipy Fox 8GB", + * which means libmtp may mistreat it. + */ + { "Dunlop", 0x10d6, "MP3 player 1GB / EGOMAN MD223AFD", 0x2200, DEVICE_FLAG_UNLOAD_DRIVER}, + // Reported by Steven Black + // Obviously this company goes by many names. + // This device is USB 2.0 only. Broken pipe on closing. + // A later report indicates that this is also used by the iRiver E200 + { "Memorex or iRiver", 0x10d6, "MMP 8585/8586 or iRiver E200", 0x2300, + DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_NO_RELEASE_INTERFACE}, + + /* + * Sirius + */ + { "Sirius", 0x18f6, "Stiletto", 0x0102, DEVICE_FLAG_NONE }, + // Reported by Chris Bagwell + { "Sirius", 0x18f6, "Stiletto 2", 0x0110, DEVICE_FLAG_NONE }, + + /* + * Nokia + * Please verify the low device IDs here, I suspect these might be for + * things like USB storage or modem mode actually, whereas the higher + * range (0x04nn) could be for MTP. Some of the devices were gathered + * from the Nokia WMP drivers: + * http://nds2.nokia.com/files/support/global/phones/software/ + * Address was gathered from going to: + * nseries.com + * -> support + * -> select supported device + * -> PC software + * -> Music software + * -> Windows Media Player 10 driver + */ + // From: DoomHammer + { "Nokia", 0x0421, "N81 Mobile Phone", 0x000a, DEVICE_FLAG_NONE }, + // From an anonymous SourceForge user + { "Nokia", 0x0421, "6120c Classic Mobile Phone", 0x002e, DEVICE_FLAG_NONE }, + // From Stefano + { "Nokia", 0x0421, "N96 Mobile Phone", 0x0039, DEVICE_FLAG_NONE }, + // From Martijn van de Streek + { "Nokia", 0x0421, "6500c Classic Mobile Phone", 0x003c, DEVICE_FLAG_NONE }, + // From: DoomHammer + { "Nokia", 0x0421, "3110c Mobile Phone", 0x005f, DEVICE_FLAG_NONE }, + // From: Vasily + { "Nokia", 0x0421, "3109c Mobile Phone", 0x0065, DEVICE_FLAG_NONE }, + // From: + { "Nokia", 0x0421, "5310 XpressMusic", 0x006c, DEVICE_FLAG_NONE }, + // From: robin (AT) headbank D0Tco DOTuk + { "Nokia", 0x0421, "N95 Mobile Phone 8GB", 0x006e, DEVICE_FLAG_NONE }, + // From Bastien Nocera + { "Nokia", 0x0421, "N82 Mobile Phone", 0x0074, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From Martijn van de Streek + { "Nokia", 0x0421, "N78 Mobile Phone", 0x0079, DEVICE_FLAG_NONE }, + // From William Pettersson + { "Nokia", 0x0421, "6220 Classic", 0x008d, DEVICE_FLAG_NONE }, + // From kellerkev@gmail.com + { "Nokia", 0x0421, "N85 Mobile Phone", 0x0092, DEVICE_FLAG_NONE }, + // From Alexandre LISSY + { "Nokia", 0x0421, "6210 Navigator", 0x0098, DEVICE_FLAG_NONE }, + // From: danielw + { "Nokia", 0x0421, "E71", 0x00e4, DEVICE_FLAG_NONE }, + // From: Laurent Bigonville + { "Nokia", 0x0421, "E66", 0x00e5, DEVICE_FLAG_NONE }, + // From: Pier + { "Nokia", 0x0421, "5320 XpressMusic", 0x00ea, DEVICE_FLAG_NONE }, + // From: Gausie + { "Nokia", 0x0421, "5800 XpressMusic", 0x0154, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // From: Willy Gardiol (web) + // Spurious errors for getting all objects, lead me to believe + // this flag atleast is needed + { "Nokia", 0x0421, "5800 XpressMusic v2", 0x0155, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Yet another version... I think + { "Nokia", 0x0421, "5800 XpressMusic v3", 0x0159, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // From an anonymous SourceForge user + // Not verified to be MTP + { "Nokia", 0x0421, "E63", 0x0179, DEVICE_FLAG_NONE }, + // Reported by: max g + // Reported by: oswillios + { "Nokia", 0x0421, "N79", 0x0186, DEVICE_FLAG_NONE }, + // From an anonymous SourceForge user + { "Nokia", 0x0421, "E71x", 0x01a1, DEVICE_FLAG_NONE }, + // From Ser + { "Nokia", 0x0421, "E52", 0x01cf, DEVICE_FLAG_NONE }, + // From Marcus Meissner + { "Nokia", 0x0421, "3710", 0x01ee, DEVICE_FLAG_NONE }, + // From: AxeL + { "Nokia", 0x0421, "N97-1", 0x01f4, DEVICE_FLAG_NONE }, + // From: FunkyPenguin + { "Nokia", 0x0421, "N97", 0x01f5, DEVICE_FLAG_NONE }, + // From: Anonymous SourceForge user + { "Nokia", 0x0421, "5130 XpressMusic", 0x0209, DEVICE_FLAG_NONE }, + // From: Anonymous SourceForge user + { "Nokia", 0x0421, "E72", 0x0221, DEVICE_FLAG_NONE }, + // From: Anonymous SourceForge user + { "Nokia", 0x0421, "5530", 0x0229, DEVICE_FLAG_NONE }, + /* Grzegorz Woźniak */ + { "Nokia", 0x0421, "E6", 0x032f, DEVICE_FLAG_NONE }, + // From: Anonymous SourceForge user + { "Nokia", 0x0421, "N97 mini", 0x026b, DEVICE_FLAG_NONE }, + // From: Anonymous SourceForge user + { "Nokia", 0x0421, "X6", 0x0274, DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // From: Alexander Kojevnikov + { "Nokia", 0x0421, "6600i", 0x0297, DEVICE_FLAG_NONE }, + // From: Karthik Paithankar + { "Nokia", 0x0421, "2710", 0x02c1, DEVICE_FLAG_NONE }, + // From: Mick Stephenson + { "Nokia", 0x0421, "5230", 0x02e2, DEVICE_FLAG_NONE }, + // From: Lan Liu at Nokia + { "Nokia", 0x0421, "N8", 0x02fe, DEVICE_FLAG_NONE }, + // From: Lan Liu at Nokia + { "Nokia", 0x0421, "N8 (Ovi mode)", 0x0302, DEVICE_FLAG_NONE }, + // From: Martijn Hoogendoorn + { "Nokia", 0x0421, "E7", 0x0334, DEVICE_FLAG_NONE }, + // From: Raul Metsma + { "Nokia", 0x0421, "E7 (Ovi mode)", 0x0335, DEVICE_FLAG_NONE }, + // Reported by Serg + // Symbian phone + { "Nokia", 0x0421, "C7", 0x03c1, DEVICE_FLAG_NONE }, + // Reported by Anonymous SourceForge user + { "Nokia", 0x0421, "C7 (ID2)", 0x03cd, DEVICE_FLAG_NONE }, + // Reported by Anonymous SourceForge user + { "Nokia", 0x0421, "N950", 0x03d2, DEVICE_FLAG_NONE }, + // From: http://nds2.nokia.com/files/support/global/phones/software/Nokia_3250_WMP10_driver.inf + { "Nokia", 0x0421, "3250 Mobile Phone", 0x0462, DEVICE_FLAG_NONE }, + // From http://nds2.nokia.com/files/support/global/phones/software/Nokia_N93_WMP10_Driver.inf + { "Nokia", 0x0421, "N93 Mobile Phone", 0x0478, DEVICE_FLAG_NONE }, + // From: http://nds2.nokia.com/files/support/global/phones/software/Nokia_5500_Sport_WMP10_driver.inf + { "Nokia", 0x0421, "5500 Sport Mobile Phone", 0x047e, DEVICE_FLAG_NONE }, + // From http://nds2.nokia.com/files/support/global/phones/software/Nokia_N91_WMP10_Driver.inf + { "Nokia", 0x0421, "N91 Mobile Phone", 0x0485, DEVICE_FLAG_NONE }, + // From: Christian Rusa + { "Nokia", 0x0421, "5700 XpressMusic Mobile Phone", 0x04b4, DEVICE_FLAG_NONE }, + // From: Mitchell Hicks + { "Nokia", 0x0421, "5300 Mobile Phone", 0x04ba, DEVICE_FLAG_NONE }, + // https://sourceforge.net/tracker/index.php?func=detail&aid=2692473&group_id=8874&atid=358874 + // From: Tiburce + { "Nokia", 0x0421, "5200 Mobile Phone", 0x04be, + DEVICE_FLAG_BROKEN_BATTERY_LEVEL }, + // From Christian Arnold + { "Nokia", 0x0421, "N73 Mobile Phone", 0x04d1, DEVICE_FLAG_UNLOAD_DRIVER }, + // From Swapan + { "Nokia", 0x0421, "N75 Mobile Phone", 0x04e1, DEVICE_FLAG_NONE }, + // From: http://nds2.nokia.com/files/support/global/phones/software/Nokia_N93i_WMP10_driver.inf + { "Nokia", 0x0421, "N93i Mobile Phone", 0x04e5, DEVICE_FLAG_NONE }, + // From Anonymous Sourceforge User + { "Nokia", 0x0421, "N95 Mobile Phone", 0x04ef, DEVICE_FLAG_NONE }, + // From: Pat Nicholls + { "Nokia", 0x0421, "N80 Internet Edition (Media Player)", 0x04f1, + DEVICE_FLAG_UNLOAD_DRIVER }, + // From: Maxin B. John + { "Nokia", 0x0421, "N9", 0x051a, DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1308/ */ + { "Nokia", 0x0421, "N300", 0x0524, DEVICE_FLAG_NONE }, + { "Nokia", 0x0421, "C5-00", 0x0592, DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1457/ */ + { "Nokia", 0x0421, "C5-00 (ID2)", 0x0595, DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/feature-requests/235/ */ + { "Nokia", 0x0421, "500", 0x05c0, DEVICE_FLAG_NONE }, + { "Nokia", 0x0421, "808 PureView", 0x05d3, DEVICE_FLAG_NONE }, + // Reported by Sampo Savola + // Covers Lumia 920, 820 and probably any WP8 device. + { "Nokia", 0x0421, "Lumia WP8", 0x0661, DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1176/ */ + { "Nokia", 0x0421, "Lumia 301", 0x0666, DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/support-requests/146/ */ + { "Nokia", 0x0421, "XL", 0x06e8, DEVICE_FLAG_UNLOAD_DRIVER }, + /* https://sourceforge.net/p/libmtp/patches/69/ + * https://sourceforge.net/p/libmtp/bugs/1285/ + * ID is the same for various Lumia version. + */ + { "Nokia", 0x0421, "Lumia (RM-975)", 0x06fc, DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1453/ */ + { "Nokia", 0x0421, "X2 Dual Sim", 0x0708, DEVICE_FLAG_NONE }, + + /* https://sourceforge.net/p/libmtp/bugs/1711/ */ + { "Nokia", 0x2e04, "6", 0xc025, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1783/ */ + { "Nokia", 0x2e04, "6.1", 0xc026, DEVICE_FLAGS_ANDROID_BUGS }, + /* ndim from gphoto */ + { "Nokia", 0x2e04, "6.2", 0xc02a, DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Qualcomm + * This vendor ID seems to be used a bit by others. + */ + + // Reported by Richard Wall + { "Qualcomm (for Nokia)", 0x05c6, "5530 Xpressmusic", 0x0229, + DEVICE_FLAG_NONE }, + // One thing stated by reporter (Nokia model) another by the detect log... + { "Qualcomm (for Nokia/Verizon)", 0x05c6, "6205 Balboa/Verizon Music Phone", + 0x3196, DEVICE_FLAG_NONE }, + { "Qualcomm (for Gigabyte)", 0x05c6, "GSmart G1342", + 0x8800, DEVICE_FLAG_NONE }, + { "Qualcomm (for Smartfren)", 0x05c6, "Andromax U", + 0x9025, DEVICE_FLAG_NONE }, + // New Android phone of the OnePlus brand : the One model + { "Qualcomm (for OnePlus)", 0x05c6, "One (MTP)", + 0x6764, DEVICE_FLAGS_ANDROID_BUGS }, + { "Qualcomm (for OnePlus)", 0x05c6, "One (MTP+ADB)", + 0x6765, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1377/ */ + { "Qualcomm (for Xolo)", 0x901b, "Xolo Black (MTP)", + 0x9039, DEVICE_FLAGS_ANDROID_BUGS }, + + { "Qualcomm (for PhiComm)", 0x05c6, "C230w (MTP)", + 0x9039, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1513/ */ + { "Qualcomm (for OnePlus)", 0x05c6, "One Plus 2 (A2003) (MTP)", + 0xf003, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1284/ */ + { "Qualcomm (for Highscreen)", 0x05c6, "Omega Prime S", + 0xf003, DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Vendor ID 0x13d1 is some offshoring company in China, + * in one source named "A-Max Technology Macao Commercial + * Offshore Co. Ltd." sometime "CCTech". + */ + // Logik brand + { "Logik", 0x13d1, "LOG DAX MP3 and DAB Player", 0x7002, DEVICE_FLAG_UNLOAD_DRIVER }, + // Technika brand + // Reported by + { "Technika", 0x13d1, "MP-709", 0x7017, DEVICE_FLAG_UNLOAD_DRIVER }, + + + /* + * RCA / Thomson + */ + // From kiki + { "Thomson", 0x069b, "EM28 Series", 0x0774, DEVICE_FLAG_NONE }, + { "Thomson / RCA", 0x069b, "Opal / Lyra MC4002", 0x0777, DEVICE_FLAG_NONE }, + { "Thomson", 0x069b, "Lyra MC5104B (M51 Series)", 0x077c, DEVICE_FLAG_NONE }, + { "Thomson", 0x069b, "RCA H106", 0x301a, DEVICE_FLAG_UNLOAD_DRIVER }, + // From Svenna + // Not confirmed to be MTP. + { "Thomson", 0x069b, "scenium E308", 0x3028, DEVICE_FLAG_NONE }, + // From XNJB user + { "Thomson / RCA", 0x069b, "Lyra HC308A", 0x3035, DEVICE_FLAG_NONE }, + + /* + * Fujitsu devices + */ + { "Fujitsu, Ltd", 0x04c5, "F903iX HIGH-SPEED", 0x1140, DEVICE_FLAG_NONE }, + // Reported by Thomas Bretthauer + { "Fujitsu, Ltd", 0x04c5, "STYLISTIC M532", 0x133b, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/137/ */ + { "Fujitsu, Ltd", 0x04c5, "F02-E", 0x1378, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1495/ */ + { "Fujitsu, Ltd", 0x04c5, "Arrows 202F", 0x13dd, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Palm device userland program named Pocket Tunes + * Reported by Peter Gyongyosi + */ + { "NormSoft, Inc.", 0x1703, "Pocket Tunes", 0x0001, DEVICE_FLAG_NONE }, + // Reported by anonymous submission + { "NormSoft, Inc.", 0x1703, "Pocket Tunes 4", 0x0002, DEVICE_FLAG_NONE }, + + /* + * TrekStor, Medion and Maxfield devices + * Their datasheet claims their devices are dualmode so probably needs to + * unload the attached drivers here. + */ + // Reported by Stefan Voss + // This is a Sigmatel SoC with a hard disk. + { "TrekStor", 0x066f, "Vibez 8/12GB", 0x842a, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by anonymous SourceForge user. + // This one done for Medion, whatever that is. Error reported so assume + // the same bug flag as its ancestor above. + { "Medion", 0x066f, "MD8333 (ID1)", 0x8550, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by anonymous SourceForge user + { "Medion", 0x066f, "MD8333 (ID2)", 0x8588, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + /* https://sourceforge.net/p/libmtp/bugs/1359/ */ + { "Verizon", 0x0408, "Ellipsis 7", 0x3899, + DEVICE_FLAGS_ANDROID_BUGS }, + // The vendor ID is "Quanta Computer, Inc." + // same as Olivetti Olipad 110 + // Guessing on device flags + { "Medion", 0x0408, "MD99000 (P9514)/Olivetti Olipad 110", 0xb009, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Richard Eigenmann + { "Medion", 0x0408, "Lifetab P9514", 0xb00a, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by anonymous SourceForge user + { "Maxfield", 0x066f, "G-Flash NG 1GB", 0x846c, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by PaoloC + // Apparently SigmaTel has an SDK for MTP players with this ID + { "SigmaTel Inc.", 0x066f, "MTPMSCN Audio Player", 0xa010, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Cristi Magherusan + { "TrekStor", 0x0402, "i.Beat Sweez FM", 0x0611, + DEVICE_FLAG_UNLOAD_DRIVER }, + // Reported by Fox-ino + // No confirmation that this is really MTP so commented it out. + // { "ALi Corp.", 0x0402, "MPMAN 2GB", 0x5668, + // DEVICE_FLAG_UNLOAD_DRIVER }, + // Reported by Anonymous SourceForge user + {"TrekStor", 0x1e68, "i.Beat Organix 2.0", 0x0002, + DEVICE_FLAG_UNLOAD_DRIVER }, + + /* Also Thalia Toline. https://sourceforge.net/p/libmtp/bugs/1156/ */ + {"iRiver", 0x1e68, "Tolino Tab 7", 0x1002, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1694/ */ + {"iRiver", 0x1e68, "Tolino Tab 8", 0x1007, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1699/ */ + {"Trekstor", 0x1e68, "SurfTab breeze 7.0 quad 3G", 0x1045, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Disney/Tevion/MyMusix + */ + // Reported by XNJB user + { "Disney", 0x0aa6, "MixMax", 0x6021, DEVICE_FLAG_NONE }, + // Reported by anonymous Sourceforge user + { "Tevion", 0x0aa6, "MD 81488", 0x3011, DEVICE_FLAG_NONE }, + // Reported by Peter Hedlund + { "MyMusix", 0x0aa6, "PD-6070", 0x9601, DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST | + DEVICE_FLAG_NO_RELEASE_INTERFACE }, + + /* + * Cowon Systems, Inc. + * The iAudio audiophile devices don't encourage the use of MTP. + * See: http://wiki.xiph.org/index.php/PortablePlayers for Ogg + * status + */ + // Reported by Patrik Johansson + { "Cowon", 0x0e21, "iAudio U3 (MTP mode)", 0x0701, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // Reported by Kevin Michael Smith + { "Cowon", 0x0e21, "iAudio 6 (MTP mode)", 0x0711, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Roberth Karman + { "Cowon", 0x0e21, "iAudio 7 (MTP mode)", 0x0751, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // Reported by an anonymous SourceForge user + { "Cowon", 0x0e21, "iAudio U5 (MTP mode)", 0x0761, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // Reported by TJ Something + { "Cowon", 0x0e21, "iAudio D2 (MTP mode)", 0x0801, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // Reported by anonymous Sourceforge user + { "Cowon", 0x0e21, "iAudio D2+ FW 2.x (MTP mode)", 0x0861, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // From Rockbox device listing + { "Cowon", 0x0e21, "iAudio D2+ DAB FW 4.x (MTP mode)", 0x0871, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // From Rockbox device listing + { "Cowon", 0x0e21, "iAudio D2+ FW 3.x (MTP mode)", 0x0881, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // From Rockbox device listing + { "Cowon", 0x0e21, "iAudio D2+ DMB FW 1.x (MTP mode)", 0x0891, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // Reported by + { "Cowon", 0x0e21, "iAudio S9 (MTP mode)", 0x0901, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // Reported by Dan Nicholson + { "Cowon", 0x0e21, "iAudio 9 (MTP mode)", 0x0911, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // Reported by Franck VDL + { "Cowon", 0x0e21, "iAudio J3 (MTP mode)", 0x0921, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // Reported by anonymous SourceForge user + { "Cowon", 0x0e21, "iAudio X7 (MTP mode)", 0x0931, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + // Reported by anonymous SourceForge user + { "Cowon", 0x0e21, "iAudio C2 (MTP mode)", 0x0941, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + { "Cowon", 0x0e21, "iAudio 10 (MTP mode)", 0x0952, + DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_OGG_IS_UNKNOWN | DEVICE_FLAG_FLAC_IS_UNKNOWN }, + + /* + * Insignia, dual-mode. + */ + { "Insignia", 0x19ff, "NS-DV45", 0x0303, DEVICE_FLAG_UNLOAD_DRIVER }, + // Reported by Rajan Bella + { "Insignia", 0x19ff, "Sport Player", 0x0307, DEVICE_FLAG_UNLOAD_DRIVER }, + // Reported by "brad" (anonymous, sourceforge) + { "Insignia", 0x19ff, "Pilot 4GB", 0x0309, DEVICE_FLAG_UNLOAD_DRIVER }, + + /* + * LG Electronics + */ + // Uncertain if this is really the MTP mode device ID... + { "LG Electronics Inc.", 0x043e, "T54", 0x7040, + DEVICE_FLAG_UNLOAD_DRIVER }, + // Not verified - anonymous submission + { "LG Electronics Inc.", 0x043e, "UP3", 0x70b1, DEVICE_FLAG_NONE }, + // Reported by Joseph Nahmias + { "LG Electronics Inc.", 0x1004, "VX8550 V CAST Mobile Phone", 0x6010, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR }, + // Reported by Cyrille Potereau + { "LG Electronics Inc.", 0x1004, "KC910 Renoir Mobile Phone", 0x608f, + DEVICE_FLAG_UNLOAD_DRIVER }, + // Reported by Aaron Slunt + { "LG Electronics Inc.", 0x1004, "GR-500 Music Player", 0x611b, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR }, + { "LG Electronics Inc.", 0x1004, "KM900", 0x6132, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_UNLOAD_DRIVER }, + { "LG Electronics Inc.", 0x1004, "LG8575", 0x619a, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_UNLOAD_DRIVER }, + /* + * These two are LG Android phones: + * LG-F6 + * V909 G-Slate + */ + { "LG Electronics Inc.", 0x1004, "Android phone (ID1)", 0x61f1, + DEVICE_FLAGS_ANDROID_BUGS }, + { "LG Electronics Inc.", 0x1004, "Android phone (ID2)", 0x61f9, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1007/ */ + { "LG Electronics Inc.", 0x1004, "LG VS980", 0x621c, + DEVICE_FLAGS_ANDROID_BUGS }, + { "LG Electronics Inc.", 0x1004, "LG2 Optimus", 0x6225, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1386/ */ + { "LG Electronics Inc.", 0x1004, "LG VS950", 0x622a, + DEVICE_FLAGS_ANDROID_BUGS }, + { "LG Electronics Inc.", 0x1004, "LG VS870", 0x6239, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/992/ */ + { "LG Electronics Inc.", 0x1004, "LG VS890", 0x623d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/190/ */ + { "LG Electronics Inc.", 0x1004, "LG Optimus Zone 2", 0x6259, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1463/ */ + { "LG Electronics Inc.", 0x1004, "810 tablet", 0x6263, + DEVICE_FLAGS_ANDROID_BUGS }, + { "LG Electronics Inc.", 0x1004, "VK810", 0x6265, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/134/ */ + { "LG Electronics Inc.", 0x1004, "G3 (VS985)", 0x626e, + DEVICE_FLAGS_ANDROID_BUGS }, + { "LG Electronics Inc.", 0x1004, "G3", 0x627f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1701/ */ + { "LG Electronics Inc.", 0x1004, "Transpyre", 0x628a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/290/ */ + { "LG Electronics Inc.", 0x1004, "LG G6 Phone", 0x62c9, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/222/ */ + { "LG Electronics Inc.", 0x1004, "LG G5 Phone", 0x62ce, + DEVICE_FLAGS_ANDROID_BUGS }, + /* + * This VID+PID is used by a lot of LG models: + * E430 + * E460 + * E610 + * E612 + * E617G + * E970 + * P700 + */ + { "LG Electronics Inc.", 0x1004, "Various E and P models", 0x631c, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1294/ */ + { "LG Electronics Inc.", 0x1004, "LG G Flex 2", 0x633e, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/280/ */ + { "LG Electronics Inc.", 0x1004, "LG G3 f460s", 0x633f, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Sony + * It could be that these PIDs are one-per hundred series, so + * NWZ-A8xx is 0325, NWZ-S5xx is 0x326 etc. We need more devices + * reported to see a pattern here. + */ + // Reported by Alessandro Radaelli + { "Sony", 0x054c, "NWZ-A815/NWZ-A818", 0x0325, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by anonymous Sourceforge user. + { "Sony", 0x054c, "NWZ-S516", 0x0326, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Endre Oma + { "Sony", 0x054c, "NWZ-S615F/NWZ-S616F/NWZ-S618F", 0x0327, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Jean-Marc Bourguet + { "Sony", 0x054c, "NWZ-S716F", 0x035a, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Anon SF User / Anthon van der Neut + { "Sony", 0x054c, "NWZ-A826/NWZ-A828/NWZ-A829", 0x035b, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Niek Klaverstijn + { "Sony", 0x054c, "NWZ-A726/NWZ-A728/NWZ-A768", 0x035c, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Mehdi AMINI + { "Sony", 0x054c, "NWZ-B135", 0x036e, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by + { "Sony", 0x054c, "NWZ-E436F", 0x0385, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Michael Wilkinson + { "Sony", 0x054c, "NWZ-W202", 0x0388, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Ondrej Sury + { "Sony", 0x054c, "NWZ-S739F", 0x038c, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Marco Filipe Nunes Soares Abrantes Pereira + { "Sony", 0x054c, "NWZ-S638F", 0x038e, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Elliot + { "Sony", 0x054c, "NWZ-X1050B/NWZ-X1060B", + 0x0397, DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Silvio J. Gutierrez + { "Sony", 0x054c, "NWZ-X1051/NWZ-X1061", 0x0398, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Gregory Boddin + { "Sony", 0x054c, "NWZ-B142F", 0x03d8, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Rick Warner + { "Sony", 0x054c, "NWZ-E344/E345", 0x03fc, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Jonathan Stowe + { "Sony", 0x054c, "NWZ-E445", 0x03fd, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Anonymous SourceForge user + { "Sony", 0x054c, "NWZ-S545", 0x03fe, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + { "Sony", 0x054c, "NWZ-A845", 0x0404, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by anonymous SourceForge user + { "Sony", 0x054c, "NWZ-W252B", 0x04bb, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Suspect this device has strong DRM features + // See https://answers.launchpad.net/ubuntu/+source/libmtp/+question/149587 + { "Sony", 0x054c, "NWZ-B153F", 0x04be, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + { "Sony", 0x054c, "NWZ-E354", 0x04cb, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Toni Burgarello + { "Sony", 0x054c, "NWZ-S754", 0x04cc, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Hideki Yamane + { "Sony", 0x054c, "Sony Tablet P1", 0x04d1, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by dmiceman + { "Sony", 0x054c, "NWZ-B163F", 0x059a, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + { "Sony", 0x054c, "NWZ-E464", 0x05a6, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Reported by Jan Rheinlaender + { "Sony", 0x054c, "NWZ-S765", 0x05a8, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + // Olivier Keshavjee + { "Sony", 0x054c, "Sony Tablet S", 0x05b3, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by ghalambaz + { "Sony", 0x054c, "Sony Tablet S1", 0x05b4, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Sony", 0x054c, "NWZ-B173F", 0x0689, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1540/ */ + { "Sony", 0x054c, "NWZ-E474", 0x06a9, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1688/ */ + { "Sony", 0x054c, "NWZ-E384", 0x0882, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + /* hartmut001@users.sourceforge.net */ + { "Sony", 0x054c, "NW-A45 Walkman", 0x0c71, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + { "Sony", 0x054c, "DCR-SR75", 0x1294, + DEVICE_FLAGS_SONY_NWZ_BUGS }, + + /* + * SonyEricsson + * These initially seemed to support GetObjPropList but later revisions + * of the firmware seem to have broken it, so all are flagged as broken + * for now. + */ + // Reported by Øyvind Stegard + { "SonyEricsson", 0x0fce, "K850i", 0x0075, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Michael Eriksson + { "SonyEricsson", 0x0fce, "W910", 0x0076, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Zack + { "SonyEricsson", 0x0fce, "W890i", 0x00b3, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by robert dot ahlskog at gmail + { "SonyEricsson", 0x0fce, "W760i", 0x00c6, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Linus Åkesson + { "SonyEricsson", 0x0fce, "C902", 0x00d4, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by an anonymous SourceForge user + { "SonyEricsson", 0x0fce, "C702", 0x00d9, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Christian Zuckschwerdt + { "SonyEricsson", 0x0fce, "W980", 0x00da, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by David Taylor + { "SonyEricsson", 0x0fce, "C905", 0x00ef, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by David House + { "SonyEricsson", 0x0fce, "W595", 0x00f3, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL | + DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST }, + // Reported by Mattias Evensson + { "SonyEricsson", 0x0fce, "W902", 0x00f5, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Sarunas + // Doesn't need any flags according to reporter + { "SonyEricsson", 0x0fce, "T700", 0x00fb, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + // Reported by Stéphane Pontier + { "SonyEricsson", 0x0fce, "W705/W715", 0x0105, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Håkan Kvist + { "SonyEricsson", 0x0fce, "W995", 0x0112, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by anonymous SourceForge user + { "SonyEricsson", 0x0fce, "U5", 0x0133, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Flo + { "SonyEricsson", 0x0fce, "U8i", 0x013a, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by xirotyu + { "SonyEricsson", 0x0fce, "j10i2 (Elm)", 0x0144, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Serge Chirik + { "SonyEricsson", 0x0fce, "j108i (Cedar)", 0x014e, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Jonas Nyrén + { "SonyEricsson", 0x0fce, "W302", 0x10c8, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Anonymous Sourceforge user + { "SonyEricsson", 0x0fce, "j10i (Elm)", 0xd144, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Thomas Schweitzer + { "SonyEricsson", 0x0fce, "K550i", 0xe000, + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + + /* + * SonyEricsson/SONY Android devices usually have three personalities due to + * using composite descriptors and the fact that Windows cannot distinguish + * the device unless each composite descriptor is unique. + * + * Legend: + * MTP = Media Transfer Protocol + * UMS = USB Mass Storage Protocol + * ADB = Android Debug Bridge Protocol + * CDC = Communications Device Class, Internet Sharing + * + * 0x0nnn = MTP + * 0x4nnn = MTP + UMS (for CD-ROM) + * 0x5nnn = MTP + ADB + * 0x6nnn = UMS + ADB + * 0x7nnn = MTP + CDC + * 0x8nnn = MTP + CDC + ADB + * 0xannn = MTP + UMS (MTP for eMMC and UMS for external SD card) + * 0xbnnn = MTP + UMS + ADB + * 0xennn = UMS only + * + * The SonyEricsson and SONY devices have (at least) two deployed MTP + * stacks: Aricent and Android. These have different bug flags, and + * sometimes the same device has firmware upgrades moving it from + * the Aricent to Android MTP stack without changing the device + * VID+PID (first observed on the SK17i Xperia Mini Pro), so the + * detection has to be more elaborate. The code in libmtp.c will do + * this and assign the proper bug flags (hopefully). + * That is why DEVICE_FLAG_NONE is used for these devices. + * + * Devices reported by: + * Sony Mobile Communications (via Toby Collett) + * Jonas Salling + * Eamonn Webster + * Alejandro DC + * StehpanKa + * hdhoang + * Paul Taylor + * Bruno Basilio + * Christoffer Holmstedt + * equaeghe + * Ondra Lengal + * Michael K. + * Jean-François B. + * Eduard Bloch + * Ah Hong + * Eowyn Carter + */ + { "SonyEricsson", 0x0fce, "c1605 Xperia Dual E MTP", 0x0146, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "LT15i Xperia arc S MTP", 0x014f, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "MT11i Xperia Neo MTP", 0x0156, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "IS12S Xperia Acro MTP", 0x0157, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "MK16i Xperia MTP", 0x015a, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "R800/R88i Xperia Play MTP", 0x015d, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "ST18a Xperia Ray MTP", 0x0161, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "SK17i Xperia Mini Pro MTP", 0x0166, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "ST15i Xperia Mini MTP", 0x0167, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "ST17i Xperia Active MTP", 0x0168, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT26i Xperia S MTP", 0x0169, + DEVICE_FLAG_NO_ZERO_READS }, + { "SONY", 0x0fce, "WT19i Live Walkman MTP", 0x016d, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST21i Xperia Tipo MTP", 0x0170, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST15i Xperia U MTP", 0x0171, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT22i Xperia P MTP", 0x0172, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "MT27i Xperia Sola MTP", 0x0173, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT26w Xperia Acro HD IS12S MTP", 0x0175, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT26w Xperia Acro HD SO-03D MTP", 0x0176, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT28at Xperia Ion MTP", 0x0177, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT29i Xperia GX MTP", 0x0178, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST27i/ST27a Xperia go MTP", 0x017e, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST23i Xperia Miro MTP", 0x0180, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "SO-05D Xperia SX MTP", 0x0181, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT30p Xperia T MTP", 0x0182, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT25i Xperia V MTP", 0x0186, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia J MTP", 0x0188, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia ZL MTP", 0x0189, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia E MTP", 0x018c, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Tablet Z MTP 1", 0x018d, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia L MTP", 0x0192, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z MTP", 0x0193, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Tablet Z MTP 2", 0x0194, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia SP MTP", 0x0195, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z Ultra MTP (ID2)", 0x0196, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia ZR MTP", 0x0197, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia A MTP", 0x0198, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia M MTP", 0x019b, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z Ultra MTP (ID3)", 0x019c, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z1 MTP", 0x019e, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia C MTP", 0x01a3, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z1 Compact D5503", 0x01a7, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia T2 Ultra MTP", 0x01a9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia M2 MTP", 0x01aa, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia M2 Dual MTP", 0x01ab, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z2 MTP", 0x01af, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z3v MTP", 0x01b0, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia Z2 Tablet MTP", 0x01b1, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia E1 MTP", 0x01b5, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia Z Ultra MTP", 0x01b6, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia M2 Aqua MTP", 0x01b8, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia Z3 MTP", 0x01ba, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z3 Compact MTP", 0x01bb, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia E3 MTP", 0x01bc, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z3 Tablet MTP", 0x01c0, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria M4 Aqua Dual MTP", 0x01c4, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "E2115 MTP", 0x01c5, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z3+ MTP", 0x01c9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria E4g MTP", 0x01cb, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "C4 Dual MTP", 0x01d2, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria M5 MTP", 0x01d6, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z5 MTP", 0x01d9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z5 Compact MTP", 0x01da, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/feature-requests/236/ */ + { "SONY", 0x0fce, "XPeria Z5 Premium Dual Sim MTP", 0x01db, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1649/ */ + { "SONY", 0x0fce, "XPeria XA MTP", 0x01de, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria X MTP", 0x01e0, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/feature-requests/251/ */ + { "SONY", 0x0fce, "XPeria SOV33", 0x01e1, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ MTP", 0x01e7, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria X Compact MTP", 0x01e8, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/feature-requests/252/ */ + { "SONY", 0x0fce, "XPeria G3123", 0x01eb, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/support-requests/247/ */ + { "SONY", 0x0fce, "XPeria XZ", 0x01ed, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1812/ */ + { "SONY", 0x0fce, "XPeria XA1 Ultra", 0x01ef, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/support-requests/251/ */ + { "SONY", 0x0fce, "XPeria XZ Premium", 0x01f1, + DEVICE_FLAG_NONE }, + /* Nicholas O'Connor on libmtp-discuss */ + { "SONY", 0x0fce, "XPeria XZ1", 0x01f3, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/support-requests/252/ */ + { "SONY", 0x0fce, "XPeria XZ1 Compact", 0x01f4, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/feature-requests/281/ */ + { "SONY", 0x0fce, "XPeria L2", 0x01f6, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XA2 Compact", 0x01f7, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/support-requests/285/ */ + { "SONY", 0x0fce, "XPeria XA2 Ultra", 0x01f8, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1804/ */ + { "SONY", 0x0fce, "Xperia XZ2 Compact Dual Sim", 0x01f9, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1775/ */ + { "SONY", 0x0fce, "Xperia XZ2 (H8266)", 0x01fa, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1854/ */ + { "SONY", 0x0fce, "Xperia XZ2 Premium", 0x01fb, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1853/ */ + { "SONY", 0x0fce, "Xperia 10 (I4113)", 0x0201, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1859/ */ + { "SONY", 0x0fce, "Xperia 1 (J9110)", 0x0205, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1849/ */ + { "SONY", 0x0fce, "Xperia I4312", 0x0207, + DEVICE_FLAG_NONE }, + + /* https://bugs.kde.org/show_bug.cgi?id=387454 ... probably not in the ADB/CDROM method? */ + { "SONY", 0x0fce, "Xperia XA2 (Jolla Sailfish)", 0x0a07, + DEVICE_FLAG_NONE }, + + /* + * MTP+UMS personalities of MTP devices (see above) + */ + { "SonyEricsson", 0x0fce, "IS12S Xperia Acro MTP+CDROM", 0x4157, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "ST17i Xperia Active MTP+CDROM", 0x4168, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT26i Xperia S MTP+CDROM", 0x4169, + DEVICE_FLAG_NO_ZERO_READS }, + { "SONY", 0x0fce, "ST21i Xperia Tipo MTP+CDROM", 0x4170, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST25i Xperia U MTP+CDROM", 0x4171, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT22i Xperia P MTP+CDROM", 0x4172, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "MT27i Xperia Sola MTP+CDROM", 0x4173, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT26w Xperia Acro HD IS12S MTP+CDROM", 0x4175, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT26w Xperia Acro HD SO-03D MTP+CDROM", 0x4176, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT28at Xperia Ion MTP+CDROM", 0x4177, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT29i Xperia GX MTP+CDROM", 0x4178, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST27i/ST27a Xperia go MTP+CDROM", 0x417e, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST23i Xperia Miro MTP+CDROM", 0x4180, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "SO-05D Xperia SX MTP+CDROM", 0x4181, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT30p Xperia T MTP+CDROM", 0x4182, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT25i Xperia V MTP+CDROM", 0x4186, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia J MTP+CDROM", 0x4188, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia ZL MTP+CDROM", 0x4189, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia E MTP+CDROM", 0x418c, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Tablet Z MTP+CDROM 1", 0x418d, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia L MTP+CDROM", 0x4192, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z MTP+CDROM", 0x4193, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Tablet Z MTP+CDROM 2", 0x4194, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia SP MTP+CDROM", 0x4195, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia M MTP+CDROM", 0x419b, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z Ultra MTP+CDROM (ID3)", 0x419c, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z1 MTP+CDROM", 0x419e, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia C MTP+CDROM", 0x41a3, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z1 Compact D5503 MTP+CDROM", 0x41a7, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia T2 Ultra MTP+CDROM", 0x41a9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia M2 MTP+CDROM", 0x41aa, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia M2 Dual MTP+CDROM", 0x41ab, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z2 MTP+CDROM", 0x41af, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z3v MTP+CDROM", 0x41b0, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia Z2 Tablet MTP+CDROM", 0x41b1, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia E1 MTP+CDROM", 0x41b5, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia Z Ultra MTP+CDROM", 0x41b6, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia M2 Aqua MTP+CDROM", 0x41b8, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia Z3 MTP+CDROM", 0x41ba, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z3 Compact MTP+CDROM", 0x41bb, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia E3 MTP+CDROM", 0x41bc, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z3 Tablet MTP+CDROM", 0x41c0, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria M4 Aqua Dual MTP+CDROM", 0x41c4, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "E2115 MTP+CDROM", 0x41c5, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z3+ MTP+CDROM", 0x41c9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria E4g MTP+CDROM", 0x41cb, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "C4 Dual MTP+CDROM", 0x41d2, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria M5 MTP+CDROM", 0x41d6, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z5 MTP+CDROM", 0x41d9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z5 Compact MTP+CDROM", 0x41da, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z5 Premium Dual Sim MTP+CDROM", 0x41db, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XA MTP+CDROM", 0x41de, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria X MTP+CDROM", 0x41e0, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria SOV33 MTP+CDROM", 0x41e1, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ MTP+CDROM", 0x41e7, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria X Compact MTP+CDROM", 0x41e8, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria G3123 MTP+CDROM", 0x41eb, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ CDROM", 0x41ed, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XA1 Ultra MTP+CDROM", 0x41ef, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ Premium MTP+CDROM", 0x41f1, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ1 MTP+CDROM", 0x41f3, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ1 Compact MTP+CDROM", 0x41f4, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria L2 MTP+CDROM", 0x41f6, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XA2 Compact MTP+CDROM", 0x41f7, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XA2 Ultra MTP+CDROM", 0x41f8, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia XZ2 Compact Dual Sim MTP+CDROM", 0x41f9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia XZ2 (H8266) MTP+CDROM", 0x41fa, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia XZ2 Premium MTP+CDROM", 0x41fb, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia 10 (I4113) MTP+CDROM", 0x4201, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia 1 (J9110) MTP+CDROM", 0x4205, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia I4312 MTP+CDROM", 0x4207, + DEVICE_FLAG_NONE }, + + /* + * MTP+ADB personalities of MTP devices (see above) + */ + { "SonyEricsson", 0x0fce, "c1605 Xperia Dual E MTP+ADB", 0x5146, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "LT15i Xperia Arc MTP+ADB", 0x514f, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "MT11i Xperia Neo MTP+ADB", 0x5156, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "IS12S Xperia Acro MTP+ADB", 0x5157, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "MK16i Xperia MTP+ADB", 0x515a, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "R800/R88i Xperia Play MTP+ADB", 0x515d, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "ST18i Xperia Ray MTP+ADB", 0x5161, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "SK17i Xperia Mini Pro MTP+ADB", 0x5166, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "ST15i Xperia Mini MTP+ADB", 0x5167, + DEVICE_FLAG_NONE }, + { "SonyEricsson", 0x0fce, "ST17i Xperia Active MTP+ADB", 0x5168, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT26i Xperia S MTP+ADB", 0x5169, + DEVICE_FLAG_NO_ZERO_READS }, + { "SonyEricsson", 0x0fce, "WT19i Live Walkman MTP+ADB", 0x516d, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST21i Xperia Tipo MTP+ADB", 0x5170, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST25i Xperia U MTP+ADB", 0x5171, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT22i Xperia P MTP+ADB", 0x5172, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "MT27i Xperia Sola MTP+ADB", 0x5173, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "IS12S Xperia Acro HD MTP+ADB", 0x5175, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "SO-03D Xperia Acro HD MTP+ADB", 0x5176, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT28at Xperia Ion MTP+ADB", 0x5177, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT29i Xperia GX MTP+ADB", 0x5178, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST27i/ST27a Xperia go MTP+ADB", 0x517e, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST23i Xperia Miro MTP+ADB", 0x5180, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "SO-05D Xperia SX MTP+ADB", 0x5181, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT30p Xperia T MTP+ADB", 0x5182, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT25i Xperia V MTP+ADB", 0x5186, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia J MTP+ADB", 0x5188, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia ZL MTP+ADB", 0x5189, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia E MTP+ADB", 0x518c, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Tablet Z MTP+ADB 1", 0x518d, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia L MTP+ADB", 0x5192, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z MTP+ADB", 0x5193, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Tablet Z MTP+ADB 2", 0x5194, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia SP MTP+ADB", 0x5195, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z Ultra MTP+ADB (ID2)", 0x5196, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia ZR MTP+ADB", 0x5197, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia A MTP+ADB", 0x5198, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia M MTP+ADB", 0x519b, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z Ultra MTP+ADB (ID3)", 0x519c, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z1 MTP+ADB", 0x519e, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia C MTP+ADB", 0x51a3, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z1 Compact MTP+ADB", 0x51a7, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia T2 Ultra MTP+ADB", 0x51a9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia M2 MTP+ADB", 0x51aa, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia M2 Dual MTP+ADB", 0x51ab, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z2 MTP+ADB", 0x51af, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z3v MTP+ADB", 0x51b0, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia Z2 Tablet MTP+ADB", 0x51b1, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia E1 MTP+ADB", 0x51b5, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia Z Ultra MTP+ADB", 0x51b6, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia M2 Aqua MTP+ADB", 0x51b8, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SONY", 0x0fce, "Xperia Z3 MTP+ADB", 0x51ba, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z3 Compact MTP+ADB", 0x51bb, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia E3 MTP+ADB", 0x51bc, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia Z3 Tablet MTP+ADB", 0x41c0, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria M4 Aqua Dual MTP+ADB", 0x51c4, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "E2115 MTP+ADB", 0x51c5, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z3+ MTP+ADB", 0x51c9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria E4g MTP+ADB", 0x51cb, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "C4 Dual MTP+ADB", 0x51d2, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria M5 MTP+ADB", 0x51d6, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z5 MTP+ADB", 0x51d9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z5 Compact MTP+ADB", 0x51da, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria Z5 Premium Dual Sim MTP+ADB", 0x51db, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XA MTP+ADB", 0x51de, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria X MTP+ADB", 0x51e0, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria SOV33 MTP+ADB", 0x51e1, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ MTP+ADB", 0x51e7, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria X Compact MTP+ADB", 0x51e8, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria G3123 MTP+ADB", 0x51eb, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ ADB", 0x51ed, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XA1 Ultra MTP+ADB", 0x51ef, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ Premium MTP+ADB", 0x51f1, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ1 ADB", 0x51f3, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XZ1 Compact MTP+ADB", 0x51f4, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria L2 MTP+ADB", 0x51f6, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XA2 Compact MTP+ADB", 0x51f7, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "XPeria XA2 Ultra MTP+ADB", 0x51f8, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia XZ2 Compact Dual Sim MTP+ADB", 0x51f9, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia XZ2 (H8266) MTP+ADB", 0x51fa, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia XZ2 Premium MTP+ADB", 0x51fb, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia 10 (I4113) MTP+ADB", 0x5201, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia 1 (J9110) MTP+ADB", 0x5205, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "Xperia I4312 MTP+ADB", 0x5207, + DEVICE_FLAG_NONE }, + + /* + * MTP+UMS modes + * This mode is for using MTP on the internal storage (eMMC) + * and using UMS (Mass Storage Device Class) on the external + * SD card + */ + { "SONY", 0x0fce, "MT27i Xperia Sola MTP+UMS", 0xa173, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "IS12S Xperia Acro HD MTP+UMS", 0xa175, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "SO-03D Xperia Acro HD MTP+UMS", 0xa176, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT28at Xperia Ion MTP+UMS", 0xa177, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST27i/ST27a Xperia go MTP+UMS", 0xa17e, + DEVICE_FLAG_NONE }, + + /* + * MTP+UMS+ADB modes + * Like the above, but also ADB + */ + { "SONY", 0x0fce, "MT27i Xperia Sola MTP+UMS+ADB", 0xb173, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "IS12S Xperia Acro MTP+UMS+ADB", 0xb175, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "SO-03D Xperia Acro MTP+UMS+ADB", 0xb176, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "LT28at Xperia Ion MTP+UMS+ADB", 0xb177, + DEVICE_FLAG_NONE }, + { "SONY", 0x0fce, "ST27i/ST27a Xperia go MTP+UMS+ADB", 0xb17e, + DEVICE_FLAG_NONE }, + + + /* + * Motorola + * Assume DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST on all of these. + */ + /* https://sourceforge.net/p/libmtp/feature-requests/136/ */ + { "Motorola", 0x22b8, "XT1524 (MTP)", 0x002e, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by David Boyd + { "Motorola", 0x22b8, "V3m/V750 verizon", 0x2a65, + DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST | + DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + /* https://sourceforge.net/p/libmtp/support-requests/130/ */ + { "Motorola", 0x22b8, "X 2nd edition XT1097 (MTP)", 0x2e24, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Atrix/Razr HD (MTP)", 0x2e32, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Atrix/Razr HD (MTP+ADB)", 0x2e33, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "RAZR M XT907 (MTP)", 0x2e50, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "RAZR M XT907 (MTP+ADB)", 0x2e51, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1539/ */ + { "Motorola", 0x22b8, "Droid Turbo 2 (XT1585)", 0x2e61, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Moto X (XT1053)", 0x2e62, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Moto X (XT1058)", 0x2e63, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1323/ */ + { "Motorola", 0x22b8, "Moto X (XT1080)", 0x2e66, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Droid Maxx (XT1080)", 0x2e67, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Droid Ultra", 0x2e68, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Moto G (ID1)", 0x2e76, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Moto G (ID2)", 0x2e82, + DEVICE_FLAGS_ANDROID_BUGS & ~(DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL|DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST)}, + /* https://sourceforge.net/p/libmtp/bugs/1030/, PTP Id */ + { "Motorola", 0x22b8, "Moto G (XT1032)", 0x2e84, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1477/ */ + { "Motorola", 0x22b8, "Moto Maxx (XT1225)", 0x2ea4, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1841/ */ + { "Motorola", 0x22b8, "Moto Z2 (XT1789)", 0x2e81, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/189/ */ + { "Motorola", 0x22b8, "MB632", 0x2dff, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Jader Rodrigues Simoes + { "Motorola", 0x22b8, "Xoom 2 Media Edition (ID3)", 0x41cf, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Steven Roemen + { "Motorola", 0x22b8, "Droid X/MB525 (Defy)", 0x41d6, + DEVICE_FLAG_NONE }, + { "Motorola", 0x22b8, "DROID2 (ID1)", 0x41da, + DEVICE_FLAG_NONE }, + { "Motorola", 0x22b8, "Milestone / Verizon Droid", 0x41dc, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "DROID2 (ID2)", 0x42a7, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Xoom 2 Media Edition (ID2)", 0x4306, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Xoom 2 Media Edition", 0x4311, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by B,H,Kissinger + { "Motorola", 0x22b8, "XT912/XT928", 0x4362, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1104/ , PTP id. */ + { "Motorola", 0x22b8, "DROID4 (PTP)", 0x4373, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Lundgren + { "Motorola", 0x22b8, "DROID4", 0x437f, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Marcus Meissner to libptp2 + { "Motorola", 0x22b8, "IdeaPad K1", 0x4811, + DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST }, + // Reported by Hans-Joachim Baader to libptp2 + { "Motorola", 0x22b8, "A1200", 0x60ca, + DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST }, + // http://mark.cdmaforums.com/Files/Motdmmtp.inf + { "Motorola", 0x22b8, "MTP Test Command Interface", 0x6413, + DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST }, + // Reported by anonymous user + { "Motorola", 0x22b8, "RAZR2 V8/U9/Z6", 0x6415, + DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST }, + // Reported by Rodrigo Angelo Rafael + // Razr D1, D3 + { "Motorola", 0x22b8, "Razr D1/D3/i (MTP)", 0x64b5, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Razr D1/D3/i (MTP+?)", 0x64b6, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/697/ */ + { "Motorola", 0x22b8, "Atrix XT687 (MTP)", 0x64cf, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Brian Dolbec + { "Motorola", 0x22b8, "Atrix MB860 (MTP)", 0x7088, + DEVICE_FLAGS_ANDROID_BUGS }, + /* + * Motorola Xoom (Wingray) variants + * + * These devices seem to use these product IDs simulatenously + * https://code.google.com/p/android-source-browsing/source/browse/init.stingray.usb.rc?repo=device--moto--wingray + * + * 0x70a3 - Factory test - reported as early MTP ID + * 0x70a8 - MTP + * 0x70a9 - MTP+ADB + * 0x70ae - RNDIS + * 0x70af - RNDIS+ADB + * 0x70b0 - ACM + * 0x70b1 - ACM+ADB + * 0x70b2 - ACM+RNDIS + * 0x70b3 - ACM+RNDIS+ADB + * 0x70b4 - PTP + * 0x70b5 - PTP+ADB + * + * Reported by Google Inc's Yavor Goulishev + */ + { "Motorola", 0x22b8, "Xoom (Factory test)", 0x70a3, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Xoom (MTP)", 0x70a8, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Xoom (MTP+ADB)", 0x70a9, + DEVICE_FLAGS_ANDROID_BUGS }, + // "carried by C Spire and other CDMA US carriers" + { "Motorola", 0x22b8, "Milestone X2", 0x70ca, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "XT890/907/Razr (MTP)", 0x710d, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "XT890/907/Razr (MTP+ADB)", 0x710e, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1183/ */ + { "Motorola", 0x22b8, "Droid Turbo (XT1254)", 0x2ea5, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Motorola", 0x22b8, "Droid Turbo Verizon", 0x2ea8, + DEVICE_FLAGS_ANDROID_BUGS }, + /* + * XT890/907/Razr + * 710f is USB mass storage + */ + + /* + * Google + * These guys lend their Vendor ID to anyone who comes down the + * road to produce an Android tablet it seems... The Vendor ID + * was originally used for Nexus phones + */ + { "Google Inc (for Allwinner)", 0x18d1, "A31 SoC", 0x0006, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Google Inc (for Ainol Novo)", 0x18d1, "Fire/Flame", 0x0007, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Google Inc (for Sony)", 0x18d1, "S1", 0x05b3, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/218/ */ + { "Google Inc (for Fairphone)", 0x18d1, "Fairphone 2", 0x0a07, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by anonymous Sourceforge user + { "Google Inc (for Barnes & Noble)", 0x18d1, "Nook Color", 0x2d02, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by anonymous Sourceforge user + { "Google Inc (for Asus)", 0x18d1, "TF201 Transformer", 0x4d00, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by anonymous Sourceforge user + { "Google Inc (for Asus)", 0x18d1, "TF101 Transformer", 0x4e0f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1837/ */ + { "Google Inc (for Samsung)", 0x18d1, "Nexus One (MTP)", 0x4e12, + DEVICE_FLAGS_ANDROID_BUGS }, + // 0x4e21 (Nexus S) is a USB Mass Storage device. + { "Google Inc (for Samsung)", 0x18d1, "Nexus S (MTP)", 0x4e25, + DEVICE_FLAGS_ANDROID_BUGS }, + // 0x4e26 is also used by "Ramos W30HD Pro Quad Core" + { "Google Inc (for Samsung)", 0x18d1, "Nexus S (MTP+ADB)", 0x4e26, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Chris Smith + { "Google Inc (for Asus)", 0x18d1, "Nexus 7 (MTP)", 0x4e41, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Michael Hess + { "Google Inc (for Asus)", 0x18d1, "Nexus 7 (MTP+ADB)", 0x4e42, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Google Inc", 0x18d1, "Nexus/Pixel (MTP)", 0x4ee1, + (DEVICE_FLAGS_ANDROID_BUGS | DEVICE_FLAG_PROPLIST_OVERRIDES_OI) & ~DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + { "Google Inc", 0x18d1, "Nexus/Pixel (MTP+ADB)", 0x4ee2, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1255/ */ + { "Google Inc", 0x18d1, "Nexus/Pixel (PTP)", 0x4ee5, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Google Inc", 0x18d1, "Nexus/Pixel (PTP+ADB)", 0x4ee6, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1444/ */ + { "Google", 0x18d1, "Pixel C (MTP)", 0x5202, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Google", 0x18d1, "Pixel C (MTP+ADB)", 0x5203, + DEVICE_FLAGS_ANDROID_BUGS }, + // WiFi-only version of Xoom + // See: http://bugzilla.gnome.org/show_bug.cgi?id=647506 + { "Google Inc (for Motorola)", 0x18d1, "Xoom (MZ604)", 0x70a8, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Google Inc (for Toshiba)", 0x18d1, "Thrive 7/AT105", 0x7102, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Google Inc (for Lenovo)", 0x18d1, "Ideapad K1", 0x740a, + DEVICE_FLAGS_ANDROID_BUGS }, + // Another OEM for Medion + { "Google Inc (for Medion)", 0x18d1, "MD99000 (P9514)", 0xb00a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1563/ */ + { "Meizu", 0x18d1, "Pro 5 Ubuntu Phone", 0xd001, DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Frederik Himpe + { "Google Inc (for LG Electronics)", 0x18d1, "P990/Optimus (Cyanogen)", + 0xd109, DEVICE_FLAGS_ANDROID_BUGS }, + { "Google Inc (for LG Electronics)", 0x18d1, "P990/Optimus", 0xd10a, + DEVICE_FLAGS_ANDROID_BUGS }, + + + /* + * Media Keg + */ + // Reported by Rajan Bella + { "Kenwood", 0x0b28, "Media Keg HD10GB7 Sport Player", 0x100c, DEVICE_FLAG_UNLOAD_DRIVER}, + + /* + * Micro-Star International (MSI) + */ + // Reported by anonymous sourceforge user. + { "Micro-Star International", 0x0db0, "P610/Model MS-5557", 0x5572, DEVICE_FLAG_NONE }, + + /* + * FOMA + */ + { "FOMA", 0x06d3, "D905i", 0x21ba, DEVICE_FLAG_NONE }, + + /* + * Haier + */ + // Both reported by an anonymous SourceForge user + // This is the 30 GiB model + { "Haier", 0x1302, "Ibiza Rhapsody 1", 0x1016, DEVICE_FLAG_NONE }, + // This is the 4/8 GiB model + { "Haier", 0x1302, "Ibiza Rhapsody 2", 0x1017, DEVICE_FLAG_NONE }, + + /* + * Panasonic + */ + // Reported by dmizer + { "Panasonic", 0x04da, "P905i", 0x2145, DEVICE_FLAG_NONE }, + // Reported by Taku + { "Panasonic", 0x04da, "P906i", 0x2158, DEVICE_FLAG_NONE }, + + /* + * Polaroid + */ + { "Polaroid", 0x0546, "Freescape/MPU-433158", 0x2035, DEVICE_FLAG_NONE }, + + /* + * Pioneer + */ + // Reported by Dan Allen + { "Pioneer", 0x08e4, "XMP3", 0x0148, DEVICE_FLAG_NONE }, + + /* + * Slacker Inc. + * Put in all evilness flags because it looks fragile. + */ + // Reported by Pug Fantus + { "Slacker Inc.", 0x1bdc, "Slacker Portable Media Player", 0xfabf, + DEVICE_FLAG_BROKEN_BATTERY_LEVEL | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST | + DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST | DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST }, + + // Reported by anonymous user + { "Conceptronic", 0x1e53, "CMTD2", 0x0005, DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by Demadridsur + { "O2 Sistemas", 0x1e53, "ZoltarTV", 0x0006, DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + // Reported by da-beat + { "Wyplay", 0x1e53, "Wyplayer", 0x0007, DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, + + // Reported by Sense Hofstede + { "Perception Digital, Ltd", 0x0aa6, "Gigaware GX400", 0x9702, DEVICE_FLAG_NONE }, + + /* + * RIM's BlackBerry + */ + // Reported by Nicolas VIVIEN + { "RIM", 0x0fca, "BlackBerry Storm/9650", 0x8007, DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_SWITCH_MODE_BLACKBERRY | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + + /* https://sourceforge.net/p/libmtp/bugs/1551/ */ + { "RIM", 0x0fca, "BlackBerry Priv", 0x8031, DEVICE_FLAG_UNLOAD_DRIVER | + DEVICE_FLAG_SWITCH_MODE_BLACKBERRY | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL }, + + /* https://sourceforge.net/p/libmtp/bugs/1658/ */ + { "RIM", 0x0fca, "BlackBerry Dtek 60", 0x8041, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/feature-requests/264/ */ + { "RIM", 0x0fca, "BlackBerry Keyone", 0x8042, DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Nextar + */ + { "Nextar", 0x0402, "MA715A-8R", 0x5668, DEVICE_FLAG_NONE }, + + /* + * Coby + */ + { "Coby", 0x1e74, "COBY MP705", 0x6512, DEVICE_FLAG_NONE }, + +#if 0 + /* + * Apple devices, which are not MTP natively but can be made to speak MTP + * using PwnTunes (http://www.pwntunes.net/) + * CURRENTLY COMMENTED OUT: + * These will make the UDEV rules flag these as MTP devices even if + * PwnTunes is NOT installed. That is unacceptable, so a better solution + * that actually inspects if the device has PwnTunes/MTP support needs + * to be found, see: + * https://sourceforge.net/p/libmtp/bugs/759/ + */ + { "Apple", 0x05ac, "iPhone", 0x1290, DEVICE_FLAG_NONE }, + { "Apple", 0x05ac, "iPod Touch 1st Gen", 0x1291, DEVICE_FLAG_NONE }, + { "Apple", 0x05ac, "iPhone 3G", 0x1292, DEVICE_FLAG_NONE }, + { "Apple", 0x05ac, "iPod Touch 2nd Gen", 0x1293, DEVICE_FLAG_NONE }, + { "Apple", 0x05ac, "iPhone 3GS", 0x1294, DEVICE_FLAG_NONE }, + { "Apple", 0x05ac, "0x1296", 0x1296, DEVICE_FLAG_NONE }, + { "Apple", 0x05ac, "0x1297", 0x1297, DEVICE_FLAG_NONE }, + { "Apple", 0x05ac, "0x1298", 0x1298, DEVICE_FLAG_NONE }, + { "Apple", 0x05ac, "iPod Touch 3rd Gen", 0x1299, DEVICE_FLAG_NONE }, + { "Apple", 0x05ac, "iPad", 0x129a, DEVICE_FLAG_NONE }, +#endif + + // Reported by anonymous SourceForge user, also reported as + // Pantech Crux, claming to be: + // Manufacturer: Qualcomm + // Model: Windows Simulator + // Device version: Qualcomm MTP1.0 + { "Curitel Communications, Inc.", 0x106c, + "Verizon Wireless Device", 0x3215, DEVICE_FLAG_NONE }, + // Reported by: Jim Hanrahan + { "Pantech", 0x106c, "Crux", 0xf003, DEVICE_FLAG_NONE }, + + /* https://sourceforge.net/p/libmtp/feature-requests/208/ */ + { "Asus", 0x0b05, "Zenfone Go (ZC500TG)", 0x2008, DEVICE_FLAGS_ANDROID_BUGS }, + /* + * Asus + * Pattern of PIDs on Android devices seem to be: + * n+0 = MTP + * n+1 = MTP+ADB + * n+2 = ? + * n+3 = ? + * n+4 = PTP + */ + // Reported by Glen Overby + { "Asus", 0x0b05, "TF300 Transformer (MTP)", 0x4c80, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by jaile + { "Asus", 0x0b05, "TF300 Transformer (MTP+ADB)", 0x4c81, + DEVICE_FLAGS_ANDROID_BUGS }, + // Repored by Florian Apolloner + { "Asus", 0x0b05, "TF700 Transformer (MTP)", 0x4c90, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "TF700 Transformer (MTP+ADB)", 0x4c91, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "TF701T Transformer Pad (MTP)", 0x4ca0, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "TF701T Transformer Pad (MTP+ADB)", 0x4ca1, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/135/ */ + { "Asus", 0x0b05, "ME302KL MeMo Pad FHD10 (MTP)", 0x4cc0, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "ME302KL MeMo Pad FHD10 (MTP+ADB)", 0x4cc1, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "ME301T MeMo Pad Smart 10 (MTP)", 0x4cd0, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "ME301T MeMo Pad Smart 10 (MTP+ADB)", 0x4cd1, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "Asus Fonepad Note 6 (MTP)", 0x4ce0, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "Asus Fonepad Note 6 (MTP+ADB)", 0x4ce1, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "TF201 Transformer Prime (keyboard dock)", 0x4d00, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "TF201 Transformer Prime (tablet only)", 0x4d01, + DEVICE_FLAGS_ANDROID_BUGS }, + // 4d04 is the PTP mode, don't add it + { "Asus", 0x0b05, "SL101 (MTP)", 0x4e00, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "SL101 (MTP+ADB)", 0x4e01, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "TF101 Eeepad Transformer (MTP)", 0x4e0f, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "TF101 Eeepad Transformer (MTP+ADB)", 0x4e1f, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "Fonepad", 0x514f, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "PadFone (MTP)", 0x5200, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "PadFone (MTP+ADB)", 0x5201, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "ME302C MemoPad (MTP+?)", 0x520f, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "PadFone 2 (MTP)", 0x5210, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "PadFone 2 (MTP+ADB)", 0x5211, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "PadFone 2 (PTP)", 0x5214, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "ME302C MemoPad (MTP)", 0x521f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1066/ */ + { "Asus", 0x0b05, "PadFone Infinity (2nd ID) (MTP)", 0x5220, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "PadFone Infinity (2nd ID) (MTP+ADB)", 0x5221, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "PadFone Infinity (MTP)", 0x5230, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "PadFone Infinity (MTP+ADB)", 0x5231, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "Memo ME172V (MTP)", 0x5400, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1072/ */ + { "Asus", 0x0b05, "Fonepad 7 LTE ME372CL (MTP)", 0x540f, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "Memo ME173X (MTP)", 0x5410, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "Memo ME173X (MTP+ADB)", 0x5411, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1072/ */ + { "Asus", 0x0b05, "Fonepad 7 LTE ME372CL (MTP+ADB)", 0x541f, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "Memo K00F (MTP)", 0x5460, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "Memo Pad 8 (MTP)", 0x5466, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "Memo K00F (MTP+ADB)", 0x5468, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/158/ */ + { "Asus", 0x0b05, "ZenFone 5 (MTP)", 0x5480, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1279/ */ + { "Asus", 0x0b05, "ZenFone 5 (MTP+ADB)", 0x5481, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1236/ */ + { "Asus", 0x0b05, "ZenFone 6 (MTP)", 0x5490, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "ZenFone 6 (MTP+ADB)", 0x5491, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1239/ */ + { "Asus", 0x0b05, "K010 (MTP)", 0x5500, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1196/ */ + { "Asus", 0x0b05, "MemoPad 7 (MTP+ADB)", 0x5506, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1069/ */ + { "Asus", 0x0b05, "K00E (MTP+ADB)", 0x550f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1244/ */ + { "Asus", 0x0b05, "MemoPad 8 ME181 CX (MTP)", 0x5561, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1406/ */ + { "Asus", 0x0b05, "Zenfone 2 (MTP)", 0x5600, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1364/ */ + { "Asus", 0x0b05, "Z00AD (MTP)", 0x5601, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "TX201LA (MTP)", 0x561f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1271/ */ + { "Asus", 0x0b05, "ZenFone 4 (MTP)", 0x580f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1179/ */ + { "Asus", 0x0b05, "ZenFone 4 A400CG (MTP)", 0x581f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1548/ */ + { "Asus", 0x0b05, "ASUS FonePad 8 FE380CG (MTP)", 0x590f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1258/ */ + { "Asus", 0x0b05, "A450CG (MTP)", 0x5a0f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1546/ */ + { "Asus", 0x0b05, "ZenPad 80 (MTP)", 0x5e0f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1350/ */ + { "Asus", 0x0b05, "Zenfone 2 ZE550ML (MTP)", 0x5f02, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1364/ */ + { "Asus", 0x0b05, "Zenfone 2 ZE551ML (MTP)", 0x5f03, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/255/ */ + { "Asus", 0x0b05, "Zenfone V (MTP)", 0x610f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1642/ */ + { "Asus", 0x0b05, "ME581CL", 0x7770, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1232/ */ + { "Asus", 0x0b05, "MemoPad 7 (ME572CL)", 0x7772, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1351/ */ + { "Asus", 0x0b05, "Fonepad 7 (FE375CXG)", 0x7773, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Asus", 0x0b05, "ZenFone 5 A500KL (MTP)", 0x7780, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1247/ */ + { "Asus", 0x0b05, "ZenFone 5 A500KL (MTP+ADB)", 0x7781, + DEVICE_FLAGS_ANDROID_BUGS }, + + + /* + * Lenovo + */ + /* https://sourceforge.net/p/libmtp/support-requests/178/ */ + { "Lenovo", 0x17ef, "P70-A", 0x0c02, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1415/ */ + { "Lenovo", 0x17ef, "P70", 0x2008, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Richard Körber + { "Lenovo", 0x17ef, "K1", 0x740a, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by anonymous sourceforge user + // Adding Android default bug flags since it appears to be an Android + { "Lenovo", 0x17ef, "ThinkPad Tablet", 0x741c, + DEVICE_FLAGS_ANDROID_BUGS }, + // Medion is using Lenovos manufacturer ID it seems. + // Reported by Thomas Goss + { "Medion", 0x17ef, "Lifetab P9516", 0x7483, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by: XChesser + { "Lenovo", 0x17ef, "P700", 0x7497, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1185/ */ + { "Lenovo", 0x17ef, "A820", 0x7498, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1190/ */ + { "Lenovo", 0x17ef, "P780", 0x74a6, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by: anonymous sourceforge user + { "Lenovo", 0x17ef, "Lifetab S9512", 0x74cc, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/217/ */ + { "Lenovo", 0x17ef, "Vibe K5", 0x74ee, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/170/ */ + { "Lenovo", 0x17ef, "S660", 0x74f8, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Brian J. Murrell + { "Lenovo", 0x17ef, "IdeaTab A2109A", 0x7542, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/166/ */ + { "Lenovo", 0x17ef, "IdeaTab S2210a", 0x757d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1529/ */ + { "Lenovo", 0x17ef, "K900 (ID2)", 0x75b3, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1123/ */ + { "Lenovo", 0x17ef, "K900 (ID1)", 0x75b5, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by rvelev@mail.bg + { "Lenovo", 0x17ef, "IdeaPad A3000 (ID1)", 0x75bc, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Lenovo", 0x17ef, "IdeaPad A3000 (ID2)", 0x75be, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/232/ */ + { "Lenovo", 0x17ef, "A706", 0x7614, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Lenovo", 0x17ef, "IdeaTab S5000", 0x76e8, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Lenovo", 0x17ef, "Toga Tablet B6000-F", 0x76f2, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1155/ */ + { "Lenovo", 0x17ef, "Yoga Tablet 10 B8000-H", 0x76ff, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1673/ */ + { "Lenovo", 0x17ef, "S960", 0x770a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1597/ */ + { "Lenovo", 0x17ef, "K910SS", 0x7713, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1122/ */ + { "Lenovo", 0x17ef, "S930", 0x7718, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/discussion/535190/ */ + { "Lenovo", 0x17ef, "A5500-H", 0x772a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1250/ */ + { "Lenovo", 0x17ef, "A5500-F", 0x772b, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1742/ */ + { "Lenovo", 0x17ef, "A7600-F", 0x7730, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1391/ */ + { "Lenovo", 0x17ef, "A7600-F 2nd", 0x7731, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1291/ */ + { "Lenovo", 0x17ef, "A3500-F", 0x7737, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1556/ */ + { "Lenovo", 0x17ef, "A3500-FL", 0x7738, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Lenovo", 0x17ef, "LifeTab E733X", 0x775a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1595/ */ + { "Lenovo", 0x17ef, "K920", 0x778f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/186/ */ + { "Lenovo", 0x17ef, "Yoga Tablet 2 - 1050F", 0x77a4, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1828/ */ + { "Lenovo", 0x17ef, "Yoga Tablet 2", 0x77a5, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/168/ */ + { "Lenovo", 0x17ef, "Yoga Tablet 2 Pro", 0x77b1, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/219/ */ + { "Lenovo", 0x17ef, "Tab S8-50F", 0x77d8, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/125/ */ + { "Lenovo", 0x17ef, "Vibe Z2", 0x77ea, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1793/ */ + { "Lenovo", 0x17ef, "S60-a", 0x7802, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/272/ */ + { "Lenovo", 0x17ef, "A7-30HC", 0x7852, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1861/ */ + { "Lenovo", 0x17ef, "A7-30GC", 0x7853, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/253/ */ + { "Lenovo", 0x17ef, "A7000-A Smartphone", 0x7882, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1360/ */ + { "Lenovo", 0x17ef, "K3 Note", 0x7883, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1488/ */ + { "Lenovo", 0x17ef, "A10-70F", 0x789a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1497/ */ + { "Lenovo", 0x17ef, "A10-70L", 0x789b, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/264/ */ + { "Lenovo", 0x17ef, "Vibe Shot Z90a40", 0x78a7, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1480/ */ + { "Medion", 0x17ef, "P8312 Tablet", 0x78ae, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/201/ */ + { "Lenovo", 0x17ef, "Lifetab S1034X", 0x78b0, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1572/ */ + { "Lenovo", 0x17ef, "PHAB Plus", 0x78d1, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1562/ */ + { "Lenovo", 0x17ef, "Vibe K4 Note", 0x78f6, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/213/ */ + { "Lenovo", 0x17ef, "Vibe P1 Pro", 0x78fc, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1531/ */ + { "Lenovo", 0x17ef, "Vibe X", 0x7902, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1784/ */ + { "Lenovo", 0x17ef, "P1ma40 (2nd ID)", 0x7920, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/235/ */ + { "Lenovo", 0x17ef, "P1ma40", 0x7921, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1465/ */ + { "Lenovo", 0x17ef, "A1000 Smartphone", 0x7928, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1465/ */ + { "Lenovo", 0x17ef, "A1000 Smartphone ADB", 0x7929, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/224/ */ + { "Lenovo", 0x17ef, "Yoga 10 Tablet YT3-X50F", 0x7932, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/204/ */ + { "Lenovo", 0x17ef, "TAB 2 A10-30", 0x7949, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1719/ */ + { "Lenovo", 0x17ef, "YT3 X90F", 0x795c, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Lenovo", 0x17ef, "K5", 0x7993, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Lenovo", 0x17ef, "Vibe K5 Note", 0x7999, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/293/ */ + { "Lenovo", 0x17ef, "TB3-710F", 0x79a2, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1820/ */ + { "Lenovo", 0x17ef, "YB1-X90F", 0x79af, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1664/ */ + { "Lenovo", 0x17ef, "Vibe K4", 0x79b7, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/242/ */ + { "Lenovo", 0x17ef, "Tab 3 10 Plus", 0x79de, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1755/ */ + { "Lenovo", 0x17ef, "TB3-850M ", 0x79de, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1624/ */ + { "Lenovo", 0x17ef, "B Smartphone", 0x7a18, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1738/ */ + { "Lenovo", 0x17ef, "K6 Power", 0x7a2a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1679/ */ + { "Lenovo", 0x17ef, "C2", 0x7a36, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/248/ */ + { "Lenovo", 0x17ef, "P2c72", 0x7a36, + DEVICE_FLAGS_ANDROID_BUGS }, + /* Marcus parents */ + { "Lenovo", 0x17ef, "Tab 10", 0x7a50, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/262/ */ + { "Lenovo", 0x17ef, "Tab4 10", 0x7ac5, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1831/ */ + { "Lenovo", 0x17ef, "Tab4 10 (2nd ID)", 0x7bc7, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1736/ */ + { "Lenovo", 0x17ef, "P1060X", 0x9039, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/259/ */ + { "Medion", 0x17ef, "P10606", 0xf003, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Huawei + * IDs used by Honor U8860,U8815,U9200,P2 + */ + { "Huawei", 0x12d1, "MTP device (ID1)", 0x1051, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Huawei", 0x12d1, "MTP device (ID2)", 0x1052, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1507/ */ + { "Huawei", 0x12d1, "Honor 7", 0x1074, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1381/ */ + { "Huawei", 0x12d1, "H60-L11", 0x1079, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1550/ */ + { "Huawei", 0x12d1, "H60-L12", 0x107a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1640/ */ + { "Huawei", 0x12d1, "Nova", 0x107d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/173/ */ + { "Huawei", 0x12d1, "P9 Plus", 0x107e, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/259/ */ + { "Huawei", 0x12d1, "Y5 2017", 0x107f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1361/ */ + { "Huawei", 0x12d1, "Ascend P8", 0x1082, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/276/ */ + { "Huawei", 0x12d1, "Y600", 0x2008, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1418/ */ + { "Huawei", 0x12d1, "Honor 3C", 0x2012, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1629/ */ + { "Huawei", 0x12d1, "Y320-U10", 0x2406, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1703/ */ + { "Huawei", 0x12d1, "Y625-U03", 0x255d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/186/ */ + { "Huawei", 0x12d1, "Y360-U61", 0x2567, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/205/ */ + { "Huawei", 0x12d1, "Y360-U03", 0x256b, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1774/ */ + { "Huawei", 0x12d1, "Y541-U02", 0x257c, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/227/ */ + { "Huawei", 0x12d1, "Y560-L01", 0x259c, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1695/ + * Seth Brown on libmtp-discuss + */ + { "Huawei", 0x12d1, "CUN-U29", 0x2608, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/257/ */ + { "Huawei", 0x12d1, "LUA-L02", 0x260b, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Huawei", 0x12d1, "Mediapad (mode 0)", 0x360f, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by Bearsh + { "Huawei", 0x12d1, "Mediapad (mode 1)", 0x361f, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * ZTE + * Android devices reported by junwang + */ + { "ZTE", 0x19d2, "V55 ID 1", 0x0244, DEVICE_FLAGS_ANDROID_BUGS }, + { "ZTE", 0x19d2, "V55 ID 2", 0x0245, DEVICE_FLAGS_ANDROID_BUGS }, + { "ZTE", 0x19d2, "V790/Blade 3", 0x0306, DEVICE_FLAGS_ANDROID_BUGS }, + { "ZTE", 0x19d2, "V880E", 0x0307, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/672/ */ + { "ZTE", 0x19d2, "Grand X In", 0x0343, DEVICE_FLAGS_ANDROID_BUGS }, + { "ZTE", 0x19d2, "V985", 0x0383, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1745/ */ + { "ZTE", 0x19d2, "Blade L3", 0x2008, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1328/ */ + { "ZTE", 0x19d2, "V5", 0xffce, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1646/ */ + { "ZTE", 0x19d2, "Z9 Max", 0xffcf, DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * HTC (High Tech Computer Corp) + * Reporters: + * Steven Eastland + * Kevin Cheng + */ + /* https://sourceforge.net/p/libmtp/feature-requests/173/ */ + { "HTC", 0x0bb4, "M9", 0x0401, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/181/ */ + { "HTC", 0x0bb4, "One M9 (1st ID)", 0x040b, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1398/ */ + { "HTC", 0x0bb4, "Spreadtrum SH57MYZ03342 (MTP)", 0x05e3, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1840/ */ + { "HTC", 0x0bb4, "Desire 626G (MTP)", 0x05f0, + DEVICE_FLAGS_ANDROID_BUGS }, + /* reported by Mikkel Oscar Lyderik */ + { "HTC", 0x0bb4, "Desire 510 (MTP+ADB)", 0x05fd, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1221/ */ + { "HTC", 0x0bb4, "One M8 Google Play Edition (MTP+ADB)", 0x060b, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1500/ */ + { "HTC", 0x0bb4, "One Mini 2 (MTP)", 0x0629, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1508/ */ + { "HTC", 0x0bb4, "One M9 (2nd ID)", 0x065c, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1543/ */ + { "HTC", 0x0bb4, "Desire 626s (MTP)", 0x0668, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/support-requests/200/ */ + { "HTC", 0x0bb4, "HTC Desire 520", 0x0670, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/153/ */ + { "HTC", 0x0bb4, "HTC6515LVW/One Remix", 0x07d8, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1615/ */ + { "HTC", 0x0bb4, "HTC X920E", 0x07a1, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/support-requests/141/ */ + { "HTC", 0x0bb4, "HTC One (HTC6500LVW)", 0x07ae, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/support-requests/128/ */ + { "HTC", 0x0bb4, "HTC One M8 (HTC6525LVW)", 0x07ca, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1161/ */ + { "HTC", 0x0bb4, "HTC One M8 (Verizon) (HTC6525LVW)", 0x07cb, + DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1133/ */ + { "HTC", 0x0bb4, "HTC One Remix (HTC6515LVW)", 0x07d9, + DEVICE_FLAG_NONE }, + // Reported by Markus Heberling + { "HTC", 0x0bb4, "Windows Phone 8X ID1", 0x0ba1, + DEVICE_FLAG_NONE }, + { "HTC", 0x0bb4, "Windows Phone 8X ID2", 0x0ba2, + DEVICE_FLAG_NONE }, + +#if 1 + /* after some review I commented it back in. There was apparently + * only one or two devices misbehaving (having this ID in mass storage mode), + * but more seem to use it regulary as MTP devices. Marcus 20150401 */ + /* + * This had to be commented out - the same VID+PID is used also for + * other modes than MTP, so we need to let mtp-probe do its job on this + * device instead of adding it to the database. + * used by various devices, like Fairphone, Elephone P5000, etc + * https://sourceforge.net/p/libmtp/bugs/1290/ + */ + { "HTC", 0x0bb4, "Android Device ID1 (Zopo, HD2, Bird...)", 0x0c02, + DEVICE_FLAGS_ANDROID_BUGS }, +#endif + /* https://sourceforge.net/p/libmtp/bugs/1677/ */ + { "DEXP", 0x0bb4, "Ixion XL145 Snatch", 0x0c08, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "EVO 4G LTE/One V (ID1)", 0x0c93, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "EVO 4G LTE/One V (ID2)", 0x0ca8, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One S (ID1)", 0x0cec, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "One Mini (ID1)", 0x0dcd, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One 802w (ID1)", 0x0dd2, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC Desire X", 0x0dd5, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One (ID1)", 0x0dda, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC Butterfly X290d", 0x0de4, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One (MTP+UMS+ADB)", 0x0dea, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC Evo 4G LTE (ID1)", 0x0df5, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One S (ID2)", 0x0df8, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One S (ID3)", 0x0df9, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One X (ID1)", 0x0dfa, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One X (ID2)", 0x0dfb, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One X (ID3)", 0x0dfc, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One X (ID4)", 0x0dfd, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC Butterfly (ID1)", 0x0dfe, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "Droid DNA (MTP+UMS+ADB)", 0x0dff, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC Droid Incredible 4G LTE (MTP)", 0x0e31, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC Droid Incredible 4G LTE (MTP+ADB)", 0x0e32, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "Droid DNA (MTP+UMS)", 0x0ebd, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1182/ */ + { "HTC", 0x0bb4, "Desire 310 (MTP)", 0x0ec6, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1481/ */ + { "HTC", 0x0bb4, "Desire 310 (2nd id) (MTP)", 0x0ec7, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1420/ */ + { "HTC", 0x0bb4, "Desire 816G (MTP)", 0x0edb, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1632/ */ + { "HTC", 0x0bb4, "Desire 626G Dual Sim (MTP)", 0x0edd, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One (MTP+ADB+CDC)", 0x0f5f, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One (MTP+CDC)", 0x0f60, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One (MTP+ADB)", 0x0f63, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One (MTP)", 0x0f64, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One (MTP+ADB+?)", 0x0f87, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One (ID3)", 0x0f91, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One M8 (MTP)", 0x0f25, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/245/ */ + { "HTC", 0x0bb4, "HTC One U11 (MTP)", 0x0f26, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One M8 (MTP+ADB)", 0x061a, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One M8 (MTP+UMS)", 0x0fb5, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "HTC One M8 (MTP+ADB+UMS)", 0x0fb4, + DEVICE_FLAGS_ANDROID_BUGS }, + +#if 1 + /* after some review I commented it back in. There was apparently + * only one or two devices misbehaving (having this ID in mass storage mode), + * but more seem to use it regulary as MTP devices. Marcus 20150401 */ + /* + * This had to be commented out - the same VID+PID is used also for + * other modes than MTP, so we need to let mtp-probe do its job on this + * device instead of adding it to the database. + * + * Apparently also used by a clone called Jiayu G2S + * with the MTK6577T chipset + * http://www.ejiayu.com/en/Product-19.html + * Wiko Cink Peax 2 + */ + { "HTC", 0x0bb4, "Android Device ID2 (Zopo, HD2...)", 0x2008, + DEVICE_FLAGS_ANDROID_BUGS }, +#endif + /* https://sourceforge.net/p/libmtp/bugs/1198/ */ + { "HTC", 0x0bb4, "Motorola Razr D1", 0x2012, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1440/ */ + { "HTC", 0x0bb4, "Motorola P98 4G", 0x201d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1508/ */ + { "HTC", 0x0bb4, "One M9 (3rd ID)", 0x4ee1, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/217/ */ + { "HTC", 0x0bb4, "One M9 (4th ID)", 0x4ee2, + DEVICE_FLAGS_ANDROID_BUGS }, + // These identify themselves as "cm_tenderloin", fun... + // Done by HTC for HP I guess. + { "HTC (for Hewlett-Packard)", 0x0bb4, "HP Touchpad (MTP)", 0x685c, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC (for Hewlett-Packard)", 0x0bb4, "HP Touchpad (MTP+ADB)", 0x6860, + DEVICE_FLAGS_ANDROID_BUGS }, + { "HTC", 0x0bb4, "Windows Phone 8s ID1", 0xf0ca, + DEVICE_FLAG_NONE }, + + /* + * NEC + */ + { "NEC", 0x0409, "FOMA N01A", 0x0242, DEVICE_FLAG_NONE }, + /* https://sourceforge.net/p/libmtp/bugs/1724/ */ + { "Casio", 0x0409, "GzOne Commando C771", 0x02ed, DEVICE_FLAG_NONE }, + { "NEC", 0x0409, "Casio C811", 0x0326, DEVICE_FLAG_NONE }, + { "NEC", 0x0409, "Casio CA-201L", 0x0432, DEVICE_FLAG_NONE }, + + /* + * nVidia + */ + // Found on Internet forum + { "nVidia", 0x0955, "CM9-Adam", 0x70a9, + DEVICE_FLAGS_ANDROID_BUGS }, + // Various pads such as Nabi2, Notion Ink Adam, Viewsonic G-Tablet + { "nVidia", 0x0955, "Various tablets (ID1)", 0x7100, + DEVICE_FLAGS_ANDROID_BUGS }, + { "nVidia", 0x0955, "Various tablets (ID2)", 0x7102, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1582/ */ + { "nVidia", 0x0955, "Jetson TX1", 0x7721, + DEVICE_FLAGS_ANDROID_BUGS }, + { "nVidia", 0x0955, "Shield (MTP+ADB)", 0xb400, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1447/ */ + { "nVidia", 0x0955, "Shield (MTP)", 0xb401, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1087/ */ + { "nVidia", 0x0955, "Tegra Note", 0xcf02, + DEVICE_FLAGS_ANDROID_BUGS }, + { "nVidia", 0x0955, "Shield Tablet (MTP+ADB)", 0xcf05, + DEVICE_FLAGS_ANDROID_BUGS }, + /* benpro82@gmail.com */ + { "nVidia", 0x0955, "Shield Tablet (MTP)", 0xcf07, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Vizio + * Reported by: + * Michael Gurski + */ + /* https://sourceforge.net/p/libmtp/support-requests/221/ */ + { "Nokia", 0x0489, "N1", 0x1ab0, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1567/ */ + { "InFocus", 0x0489, "M808", 0xc00b, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/138/ */ + { "InFocus", 0x0489, "M810", 0xc025, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Vizio", 0x0489, "Unknown 1", 0xc026, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Vizio", 0x0489, "VTAB1008", 0xe040, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Vizio (for Lenovo)", 0x0489, "LIFETAB S9714", 0xe111, + DEVICE_FLAGS_ANDROID_BUGS }, + + + /* + * Amazon + */ + { "Amazon", 0x1949, "Kindle Fire 2G (ID1)", 0x0005, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Amazon", 0x1949, "Kindle Fire (ID1)", 0x0007, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Amazon", 0x1949, "Kindle Fire (ID2)", 0x0008, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Amazon", 0x1949, "Kindle Fire (ID3)", 0x000a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1026/ */ + { "Amazon", 0x1949, "Kindle Fire (ID6)", 0x000b, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Amazon", 0x1949, "Kindle Fire (ID4)", 0x000c, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1015/ */ + { "Amazon", 0x1949, "Kindle Fire (ID7)", 0x000d, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Amazon", 0x1949, "Kindle Fire (ID5)", 0x0012, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1353/ */ + { "Amazon", 0x1949, "Kindle Fire HD6", 0x00f2, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1460/ */ + { "Amazon", 0x1949, "Kindle Fire 8", 0x0211, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/158/ */ + { "Amazon", 0x1949, "Kindle Fire 8 HD", 0x0212, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1448/ */ + { "Amazon", 0x1949, "Kindle Fire 7", 0x0221, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1491/ */ + { "Amazon", 0x1949, "Kindle Fire 5", 0x0222, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1718/ */ + { "Amazon", 0x1949, "Kindle Fire 8 (2nd ID)", 0x0261, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1776/ */ + { "Amazon", 0x1949, "Kindle Fire 7 (2nd ID)", 0x0271, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1845/ */ + { "Amazon", 0x1949, "Kindle Fire Kids", 0x0272, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/279/ */ + { "Amazon", 0x1949, "Kindle Fire Tablet 10 HD", 0x0281, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://github.com/libmtp/libmtp/issues/21 */ + { "Amazon", 0x1949, "Kindle Fire 8 HD (2nd ID)", 0x0331, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/293/ */ + { "Amazon", 0x1949, "Kindle Fire Tablet 10 HD (2nd ID)", 0x03f1, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Amazon", 0x1949, "Fire Phone", 0x0800, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Barnes&Noble + */ + { "Barnes&Noble", 0x2080, "Nook HD+", 0x0005, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Barnes&Noble", 0x2080, "Nook HD", 0x0006, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1504/ */ + { "Barnes&Noble", 0x2080, "Nook Glowlight+", 0x000a, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Viewpia, bq, YiFang + * Seems like some multi-branded OEM product line. + */ + { "Various", 0x2207, "Viewpia DR/bq Kepler", 0x0001, + DEVICE_FLAGS_ANDROID_BUGS }, + { "YiFang", 0x2207, "BQ Tesla", 0x0006, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://bugs.debian.org/917259 */ + { "Various", 0x2207, "Onyx Boox Max 2", 0x000b, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1833/ */ + { "Onyx", 0x2207, "Boox Max 2 Pro", 0x000c, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1834/ */ + { "Onyx", 0x2207, "Boox Note", 0x000d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1354/ */ + { "Various", 0x2207, "Viewpia DR/bq Kepler Debugging", 0x0011, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/291/ */ + { "Onyx", 0x2207, "Boox Nova", 0x0014, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Kobo + */ + /* https://sourceforge.net/p/libmtp/bugs/1208/ */ + { "Kobo", 0x2237, "Arc 7 HD", 0xb108, + DEVICE_FLAGS_ANDROID_BUGS }, + // Reported by George Talusan + { "Kobo", 0x2237, "Arc (ID1)", 0xd108, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Kobo", 0x2237, "Arc (ID2)", 0xd109, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Hisense + */ + // Reported by Anonymous SourceForge users + { "HiSense", 0x109b, "Sero 7 Pro", 0x9105, DEVICE_FLAGS_ANDROID_BUGS }, + { "Hisense", 0x109b, "E860 (ID1)", 0x9106, DEVICE_FLAGS_ANDROID_BUGS }, + { "Hisense", 0x109b, "E860 (ID2)", 0x9109, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1704/ */ + { "Crosscall", 0x109b, "Trekker M1 core", 0x9130, DEVICE_FLAGS_ANDROID_BUGS }, + + + /* + * Intel + * Also sold rebranded as Orange products + */ + /* https://sourceforge.net/p/libmtp/feature-requests/215/ */ + { "Intel", 0x8087, "Point of View TAB-I847", 0x092a, DEVICE_FLAGS_ANDROID_BUGS }, + + { "Intel", 0x8087, "Xolo 900/AZ210A", 0x09fb, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1256/ */ + { "Intel", 0x8087, "Noblex T7A21", 0x0a16, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1252/ */ + { "Intel", 0x8087, "Foxconn iView i700", 0x0a15, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1237/ */ + { "Intel", 0x8087, "Telcast Air 3G", 0x0a5e, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1338/ */ + { "Intel", 0x8087, "Chuwi vi8", 0x0a5f, DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Xiaomi + */ + /* https://sourceforge.net/p/libmtp/bugs/1269/ */ + { "Xiaomi", 0x2717, "Mi-3w (MTP)", 0x0360, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Xiaomi", 0x2717, "Mi-3 (MTP)", 0x0368, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1149/ */ + { "Xiaomi", 0x2717, "MiPad (MTP)", 0x0660, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1489/ */ + { "Xiaomi", 0x2717, "MiPad (MTP+ADB)", 0x0668, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Xiaomi", 0x2717, "Hongmi (MTP+ADB)", 0x1240, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1095/ */ + { "Xiaomi", 0x2717, "Hongmi (MTP)", 0x1248, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1295/ */ + { "Redmi", 0x2717, "1S (MTP)", 0x1260, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1164/ */ + { "Redmi", 0x2717, "HM 1S (MTP)", 0x1268, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1702/ */ + { "Xiaomi", 0x2717, "HM NOTE 1LTEW 4G Phone (MTP)", 0x1360, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/discussion/535190/ */ + { "Xiaomi", 0x2717, "HM NOTE 1LTEW MIUI (MTP)", 0x1368, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Xiaomi", 0x2717, "Mi-2 (MTP+ADB)", 0x9039, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Xiaomi", 0x2717, "Mi-2 (MTP)", 0xf003, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1397/ */ + { "Xiaomi", 0x2717, "Mi-2s (id2) (MTP)", 0xff40, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1339/ */ + { "Xiaomi", 0x2717, "Mi-2s (MTP)", 0xff48, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1402/ */ + { "Xiaomi", 0x2717, "Redmi 2 (MTP)", 0xff60, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1445/ */ + { "Xiaomi", 0x2717, "Redmi 2 2014811 (MTP)", 0xff68, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * XO Learning Tablet + * Also Trio Stealth G2 tablet it seems + */ + { "Acromag Inc.", 0x16d5, "XO Learning Tablet (MTP+ADB)", 0x8005, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Acromag Inc.", 0x16d5, "XO Learning Tablet (MTP)", 0x8006, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * SHARP Corporation + */ + { "SHARP Corporation", 0x0489, "SH930W", 0xc025, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SHARP Corporation", 0x04dd, "SBM203SH", 0x9661, + DEVICE_FLAGS_ANDROID_BUGS }, + { "SHARP Corporation", 0x04dd, "SH-06E", 0x96ca, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/192/ */ + { "SHARP Corporation", 0x04dd, "SHV35 AQUOS U ", 0x99d2, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * T & A Mobile phones Alcatel and TCT + */ + { "Alcatel", 0x1bbb, "One Touch 997D (MTP+ADB)", 0x0c02, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Alcatel", 0x1bbb, "One Touch 997D (MTP)", 0x2008, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Alcatel/TCT", 0x1bbb, "6010D/TCL S950", 0x0167, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Alcatel", 0x1bbb, "6030a", 0x0168, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/276/ */ + { "Alcatel", 0x1bbb, "A405DL", 0x901b, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Alcatel/Bouygues", 0x1bbb, "BS472", 0x904d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1304/ */ + { "Alcatel", 0x1bbb, "OneTouch 5042D (MTP)", 0xa00e, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1776/ */ + { "Alcatel", 0x1bbb, "Popo4 (MTP)", 0xa00f, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1605/ */ + { "Alcatel", 0x1bbb, "OneTouch Idol 3 ID2 (MTP)", 0xaf00, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/189/ */ + { "Alcatel", 0x1bbb, "OneTouch Idol 3 small (MTP)", 0xaf2a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1401/ */ + { "Alcatel", 0x1bbb, "OneTouch Idol 3 (MTP)", 0xaf2b, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/114/ */ + { "Alcatel", 0x1bbb, "OneTouch 6034R", 0xf003, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Kyocera + */ + { "Kyocera", 0x0482, "Rise", 0x0571, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1492/ */ + { "Kyocera", 0x0482, "Event", 0x0591, DEVICE_FLAGS_ANDROID_BUGS & ~DEVICE_FLAG_FORCE_RESET_ON_CLOSE }, + /* https://sourceforge.net/p/libmtp/feature-requests/134/ */ + { "Kyocera", 0x0482, "Torque Model E6715", 0x0059a, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/164/ */ + { "Kyocera", 0x0482, "Hydro Elite C6750", 0x073c, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/discussion/535190/thread/6270f5ce/ */ + { "Kyocera", 0x0482, "KYL22", 0x0810, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/270/ */ + { "Kyocera", 0x0482, "Hydro Icon", 0x085e, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1518/ */ + { "Kyocera", 0x0482, "302KC", 0x09fc, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1345/ */ + { "Kyocera", 0x0482, "DuraForce", 0x0979, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1476/ */ + { "Kyocera", 0x0482, "KC-S701", 0x09cb, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/192/ */ + { "Kyocera", 0x0482, "C6740N", 0x0a73, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/220/ */ + { "Kyocera", 0x0482, "Duraforce XD", 0x0a9a, DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Hewlett-Packard + */ + { "Hewlett-Packard", 0x03f0, "Slate 7 4600", 0x5c1d, + DEVICE_FLAGS_ANDROID_BUGS }, + { "Hewlett-Packard", 0x03f0, "Slate 7 2800", 0x5d1d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1366/ */ + { "Hewlett-Packard", 0x03f0, "Slate 10 HD", 0x7e1d, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * MediaTek Inc. + */ + { "MediaTek Inc", 0x0e8d, "MT5xx and MT6xx SoCs", 0x0050, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1553/ */ + { "Bravis", 0x0e8d, "A401 Neo", 0x0c03, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1422/ */ + { "MediaTek Inc", 0x0e8d, "MT65xx", 0x2008, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1467/ */ + { "elephone", 0x0e8d, "p6000", 0x2008, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/234/ */ + { "DOODGE", 0x0e8d, "X6pro", 0x200a, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/289/ */ + { "Jinga", 0x0e8d, "PassPluss", 0x2012, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/79/ */ + { "MediaTek Inc", 0x0e8d, "Elephone P8000", 0x201d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1717/ */ + { "MediaTek Inc", 0x0e8d, "Wiko Sunny", 0x4001, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1855/ */ + { "Vivo", 0x0e8d, "Y21", 0xff00, DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Jolla + */ + { "Jolla", 0x2931, "Sailfish (ID1)", 0x0a01, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* In update 4 the order of devices was changed for + better OS X / Windows suport and another device-id + got assigned for the MTP */ + { "Jolla", 0x2931, "Sailfish (ID2)", 0x0a05, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* In a later version, the ID changed again. */ + { "Jolla", 0x2931, "Sailfish (ID3)", 0x0a07, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * TCL? Alcatel? + */ + { "TCL", 0x0451, "Alcatel one touch 986+", 0xd108, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Garmin + */ + { "Garmin", 0x091e, "Monterra", 0x2585, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1779/ */ + { "Garmin", 0x091e, "Forerunner 645 Music", 0x4b48, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://github.com/libmtp/libmtp/issues/15 */ + { "Garmin", 0x091e, "Fenix 5/5S/5X Plus", 0x4b54, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/271/ */ + { "Garmin", 0x091e, "Vivoactive 3", 0x4bac, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1864/ */ + { "Garmin", 0x091e, "Venu", 0x4c9a, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1852/ */ + { "Garmin", 0x091e, "Fenix 6", 0x4cda, DEVICE_FLAGS_ANDROID_BUGS }, + { "Garmin", 0x091e, "Fenix 6 Sapphire", 0x4cdb, DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Wacom + */ + { "Wacom", 0x0531, "Cintiq Companion Hybrid (MTP+ADB)", 0x2001, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Kurio + */ + { "Kurio", 0x1f3a, "7S", 0x1006, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1521/ */ + { "iRulu", 0x1f3a, "X1s", 0x1007, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1245/ */ + { "DigiLand", 0x1f3a, "DL701Q", 0x0c02, + DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * bq + * https://sourceforge.net/p/libmtp/feature-requests/128/ + */ + { "bq", 0x2a47, "Krillin (MTP+ADB)", 0x0c02, + DEVICE_FLAGS_ANDROID_BUGS }, + { "bq", 0x2a47, "Krillin (MTP)", 0x2008, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/163/ */ + { "bq", 0x2a47, "Aquaris M10 (MTP)", 0x200d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1558/ */ + { "bq", 0x2a47, "Avila Cooler (MTP)", 0x201d, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/224/ */ + { "bq", 0x2a47, "Aquaris X5 (MTP)", 0x3003, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/284/ */ + { "bq", 0x2a47, "Aquaris X2 (MTP)", 0x4ee1, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1311/ */ + { "bq", 0x2a47, "Aquarius E5-4G", 0x7f10, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/181/ */ + { "bq", 0x2a47, "Aquarius X5 (MTP) (ID2)", 0x7f11, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1541/ */ + { "bq", 0x2a47, "Aquarius M5.5", 0x901b, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/269/ */ + { "bq", 0x2a47, "Aquarius U", 0x9039, + DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/231/ */ + { "bq", 0x2a47, "U Plus", 0xf003, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1292/ */ + { "Prestigio", 0x29e4, "5505 DUO ", 0x1103, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/260/ */ + { "MediaTek", 0x29e4, "5508 DUO", 0x1201, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1243/ */ + { "Prestigio", 0x29e4, "5504 DUO ", 0x1203, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/141/ */ + { "Prestigio", 0x29e4, "3405 DUO ", 0x3201, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/287/ */ + { "Prestigio", 0x29e4, "Multipad Color 8", 0xb001, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/148/ */ + { "Prestigio", 0x29e4, "Multipad Color 7.0", 0xb003, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1283/ */ + { "Megafon", 0x201e, "MFLogin3T", 0x42ab, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/208/ */ + { "Haier", 0x201e, "CT715", 0xa0c1, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1287/ */ + { "Gensis", 0x040d, "GT-7305 ", 0x885c, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/support-requests/182/ */ + { "Oppo", 0x22d9, "Find 5", 0x2764, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1207/ */ + { "Oppo", 0x22d9, "Find 7 (ID 1)", 0x2765, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1277/ */ + { "Oppo", 0x22d9, "X9006", 0x2773, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/129/ */ + { "Oppo", 0x22d9, "Find 7 (ID 2)", 0x2774, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1273/ */ + { "Gigabyte", 0x0414, "RCT6773W22 (MTP+ADB)", 0x0c02, DEVICE_FLAGS_ANDROID_BUGS }, + { "Gigabyte", 0x0414, "RCT6773W22 (MTP)", 0x2008, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1264/ */ + { "Meizu", 0x2a45, "MX Phone (MTP)", 0x2008, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1263/ */ + { "Meizu", 0x2a45, "MX Phone (MTP+ADB)", 0x0c02, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1201/ */ + { "Caterpillar", 0x04b7, "Cat S50", 0x88a9, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1525/ */ + { "Caterpillar", 0x04b7, "Cat S50 (2nd ID)", 0x88aa, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1603/ */ + { "Caterpillar", 0x04b7, "Cat S40", 0x88b0, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/253/ */ + { "Caterpillar", 0x04b7, "Cat S30", 0x88b9, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/176/ */ + { "Caterpillar", 0x04b7, "Cat S60", 0x88c0, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1850/ */ + { "Caterpillar", 0x04b7, "Cat S60 (2nd ID)", 0x88c1, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1757/ */ + { "Caterpillar", 0x04b7, "Cat S41", 0x88c6, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/260/ */ + { "Caterpillar", 0x04b7, "Cat S31", 0x88d0, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1814/ */ + { "Caterpillar", 0x04b7, "Cat S61", 0x88d6, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/682/ */ + { "Pegatron", 0x1d4d, "Chagall (ADB)", 0x5035, DEVICE_FLAGS_ANDROID_BUGS }, + { "Pegatron", 0x1d4d, "Chagall", 0x5036, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/115/ */ + { "Pegatron", 0x1d4d, "Hudl 2", 0x504a, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/support-requests/127/ */ + { "Yota", 0x2916, "Phone C9660", 0x9039, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1661/ */ + { "Yota", 0x2916, "Phone", 0x9139, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1229/ */ + { "Yota", 0x2916, "Phone 2", 0x914d, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1267/ */ + { "Yota", 0x2916, "Phone 2 (ID2)", 0xf003, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1212/ */ + { "Fly", 0x2970, "Evo Tech 4", 0x2008, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1720/ */ + { "Wileyfox", 0x2970, "Spark Plus", 0x2008, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/feature-requests/289/ */ + { "Wileyfox", 0x2970, "Spark", 0x201d, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/feature-requests/146/ */ + { "Wileyfox", 0x2970, "Swift", 0x2281, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/159/ */ + { "Wileyfox", 0x2970, "Swift 2", 0x2282, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1554/ */ + { "Kazam", 0x2970, "Trooper 650 4G", 0x9039, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1303/ */ + { "Megafon", 0x1271, "Login+", 0x2012, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1127/ */ + { "Fly", 0x2970, "iq4415 era style 3", 0x0c02, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1082/ */ + { "Fly", 0x1782, "iq449", 0x4001, DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * YU Yureka. + */ + { "YU Yureka", 0x1ebf, "Vodafone smart turbo 4", 0x7f29, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/feature-requests/249/ */ + { "Coolpad", 0x1ebf, "801ES", 0x7029, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1314/ */ + { "BenQ", 0x1d45, "F5", 0x459d, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1362/ */ + { "TomTom", 0x1390, "Rider 40", 0x5455, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/feature-requests/135/. guessed android. */ + { "OUYA", 0x2836, "Videogame Console", 0x0010, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1383/ */ + { "BLU", 0x0e8d, "Studio HD", 0x2008, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/feature-requests/161/ */ + { "Cubot", 0x0e8d, "X17", 0x201d, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1423/ */ + { "OnePlus", 0x2a70, "ONE A2001", 0x9011, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1450/ */ + { "OnePlus", 0x2a70, "OnePlus 2 A2005", 0xf003, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1436/ */ + { "Parrot", 0x19cf, "Bebop Drone", 0x5038, DEVICE_FLAGS_ANDROID_BUGS }, + +#if 0 + /* + * GoPro Action Cams. + */ + { "GoPro" , 0x2672, "HERO3+ Black", 0x0011, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "HERO", 0x000c, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "HERO4 Silver", 0x000d, DEVICE_FLAG_NONE }, + { "Gopro" , 0x2672, "HERO4 Black", 0x000e, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "HERO4 Session", 0x000f, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "HERO+", 0x0021, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "HERO5 Black", 0x0027, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "HERO5 Session", 0x0029, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "HERO 2018", 0x002d, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "FUSION (back)", 0x0032, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "FUSION (front)", 0x0035, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "HERO6 Black", 0x0037, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "HERO7 Black", 0x0047, DEVICE_FLAG_NONE }, + { "GoPro" , 0x2672, "HERO8 Black", 0x0049, DEVICE_FLAG_NONE }, +#endif + + /* https://sourceforge.net/p/libmtp/bugs/1490/ */ + { "Marshall" , 0x2ad9, "London", 0x000b, DEVICE_FLAG_NONE }, + + /* https://sourceforge.net/p/libmtp/feature-requests/257/ */ + { "Fairphone" , 0x2ae5, "Fairphone 2 (ID2)", 0x6764, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/202/ */ + { "Fairphone" , 0x2ae5, "Fairphone 2", 0xf003, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/214/ */ + { "Fairphone" , 0x2ae5, "Fairphone 2 OS", 0x9039, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1700/ */ + { "BLUE" , 0x271d, "Vivo XL", 0x4008, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1512/ */ + { "Allview" , 0x271d, "Energy P5", 0x4016, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/177/ */ + { "BLU" , 0x271d, "Studio Energy X 2 Phone", 0x4016, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1575/ */ + { "BLU" , 0x271d, "Studio Energy 2", 0x4017, DEVICE_FLAGS_ANDROID_BUGS }, + + + /* https://sourceforge.net/p/libmtp/bugs/1545/ */ + { "Zuk" , 0x2b4c, "Z1", 0x1004, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1596/ */ + { "Zuk" , 0x2b4c, "Z1 (2nd ID)", 0x1005, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/support-requests/250/ */ + { "Zuk" , 0x2b4c, "Z2 Pro", 0x1013, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1782/ */ + { "Zuk" , 0x2b4c, "Z2", 0x101a, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1574/ */ + { "Letv" , 0x2b0e, "X5001s", 0x1700, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/210/ */ + { "Letv" , 0x2b0e, "1s", 0x1704, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1805/ */ + { "LeMobile" , 0x2b0e, "Le 2", 0x1714, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/274/ */ + { "LeMobile" , 0x2b0e, "Le 2 (ID2)", 0x171b, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/241/ */ + { "Letv" , 0x2b0e, "Leeco Le 1s", 0x1768, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/241/ */ + { "Letv" , 0x2b0e, "Leeco Le 2 Pro", 0x1778, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/220/ */ + { "Letv" , 0x2b0e, "X800 (ID1)", 0x182c, DEVICE_FLAGS_ANDROID_BUGS }, + { "Letv" , 0x2b0e, "X800 (ID2)", 0x1830, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1716/ */ + { "Letv" , 0x2b0e, "Le Max2", 0x1840, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1768/ */ + { "Letv" , 0x2b0e, "Le Max2 (ID2)", 0x1844, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1606/ */ + { "TP-Link" , 0x2357, "Neffos C5 (MTP)", 0x0314, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/197/ */ + { "TP-Link" , 0x2357, "Neffos C5 MAX (MTP)", 0x031a, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/196/ */ + { "TP-Link" , 0x2357, "Neffos Y5L (MTP)", 0x0320, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/195/ */ + { "TP-Link" , 0x2357, "Neffos Y5 (MTP)", 0x0328, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/support-requests/240/ */ + { "TP-Link" , 0x2357, "Neffos X1 (MTP)", 0x033c, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1844/ */ + { "TP-Link" , 0x2357, "Neffos Y5s (MTP)", 0x038c, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1570/ */ + { "Recon Instruments" , 0x2523, "Jet", 0xd209, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/bugs/1571/ */ + { "Recon Instruments" , 0x2523, "Snow2 HUD", 0xd109, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1663/ */ + { "Nextbit" , 0x2c3f, "Robin", 0x0001, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/feature-requests/240/ */ + { "Spreadtrum" , 0x1782, "STK Storm 2e Pluz", 0x4002, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/support-requests/258/ */ + { "Essential Phone" , 0x2e17, "PH-1a", 0xc030, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/242/ */ + { "Essential Phone" , 0x2e17, "PH-1", 0xc033, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/feature-requests/247/ */ + { "VEGA" , 0x10a9, "R3", 0x1105, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1764/ */ + { "O&P Innovations" , 0x0746, "XDP-100R", 0xa003, DEVICE_FLAGS_ANDROID_BUGS }, + /* https://sourceforge.net/p/libmtp/feature-requests/278/ */ + { "Pioneer" , 0x0746, "XDP-300R", 0xa023, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1786/ */ + { "Niteto" , 0x16c0, "ADF-Drive", 0x0489, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/support-requests/277/ */ + { "Vivo" , 0x2d95, "V11", 0x6002, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1786/ */ + { "Longcheer" , 0x1c9e, "D", 0xf003, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1822/ */ + { "vtevch" , 0x0f88, "Storio Max XL 2.0", 0x0684, DEVICE_FLAGS_ANDROID_BUGS }, + + /* https://sourceforge.net/p/libmtp/bugs/1846/ */ + { "Netronix" , 0x1f85, "E60QH2", 0x6a12 , DEVICE_FLAGS_ANDROID_BUGS }, + + /* + * Other strange stuff. + */ + { "Isabella", 0x0b20, "Her Prototype", 0xddee, DEVICE_FLAG_NONE }, + + /* https://sourceforge.net/p/libmtp/bugs/1817/ */ + { "Nox", 0x1e0a, "A1", 0x1001, DEVICE_FLAG_NONE }, + + /* qemu 3.0.0 hw/usb/dev-mtp.c */ + { "QEMU", 0x46f4, "Virtual MTP", 0x0004, DEVICE_FLAG_NONE } diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/olympus-wrap.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/olympus-wrap.c new file mode 100644 index 00000000..3ba67846 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/olympus-wrap.c @@ -0,0 +1,1413 @@ +/* olympus_wrap.c + * + * Copyright (c) 2012-2013 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * Notes: + * XDISCVRY.X3C file sent on start, empty. + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#ifdef HAVE_LIBXML2 + +#include +#include +#include +#include <_stdint.h> + +#include + +#include "ptp.h" +#include "ptp-private.h" +#include "ptp-pack.c" +#include "olympus-wrap.h" + +#include +#include +#include +#include + +/* + * The following things are the way the are just to ensure that USB + * wrapper packets have the correct byte-order on all types of machines. + * Intel byte order is used instead of "network" byte order :-( + */ +typedef struct +{ unsigned char c1, c2, c3, c4; } uw32_t; /* A type for 32-bit integers */ +typedef struct +{ unsigned char c1, c2, c3, c4; } uw4c_t; /* A type for 4-byte things */ + +static uw32_t uw_value(unsigned int value) /* Convert from host-integer to uw32_t */ +{ + uw32_t ret; + ret.c1 = (value & 0x000000ffUL); + ret.c2 = (value >> 8 & 0x000000ffUL); + ret.c3 = (value >> 16 & 0x000000ffUL); + ret.c4 = (value >> 24 & 0x000000ffUL); + return ret; +} + +static unsigned char +cmdbyte (unsigned char nr) { + return nr | 0xc0; +} + +/* Test for equality between two uw32_t's or two uw4c_t's. */ +#define UW_EQUAL(a, b) \ +((a).c1==(b).c1 && (a).c2==(b).c2 && (a).c3==(b).c3 && (a).c4==(b).c4) + +/* + * USB storage wrapper packets start with ASCII bytes "USBC". + * The responses back from the camera start with "USBS". + */ +#define UW_MAGIC_OUT ((uw4c_t){ 'U','S','B','C' }) +#define UW_MAGIC_IN ((uw4c_t){ 'U','S','B','S' }) + +#pragma pack(1) +/* + * The rest of the USB wrapper packet looks like this: + */ + +/* This is linux/include/linux/usb/storage.h, struct bulk_cb_wrap + * 31 byte length */ +typedef struct +{ + uw4c_t magic; /* The letters U S B C for packets sent to camera */ + uw32_t tag; /* The SCSI command tag */ + uw32_t rw_length; /* Length of data to be read or written next */ + unsigned char flags; /* in / out flag mostly */ + unsigned char lun; /* 0 here */ + unsigned char length; /* of the CDB... but 0x0c is used here in the traces */ + unsigned char cdb[16]; +} uw_header_t; + +/* + * This is the end response block from the camera looks like this: + * + * This is the generic bulk style USB Storage response block. + * + * linux/include/linux/usb/storage.h, struct bulk_cs_wrap */ +typedef struct +{ + uw4c_t magic; /* The letters U S B S for packets from camera */ + uw32_t tag; /* A copy of whatever value the host made up */ + uw32_t residue; /* residual read? */ + char status; /* status byte */ +} uw_response_t; + + +/* In the SCSI API, the CDB[16] block. */ +typedef struct +{ + unsigned char cmd; + char zero1[8]; + uw32_t length; + char zero2[3]; +} uw_scsicmd_t; + +#pragma pack() + +/* This is for the unique tag id for the UMS command / response + * It gets incremented by one for every command. + */ +static int ums_tag = 0x42424242; +/* + * This routine is called after every UW_REQUEST_XXX to get an OK + * with a matching session ID. + */ +static int +usb_wrap_OK (GPPort *dev, uw_header_t *hdr) +{ + uw_response_t rsp; + int ret; + memset(&rsp, 0, sizeof(rsp)); + + GP_LOG_D ("usb_wrap_OK"); + if ((ret = gp_port_read(dev, (char*)&rsp, sizeof(rsp))) != sizeof(rsp)) { + GP_LOG_D ("gp_port_read *** FAILED (%d vs %d bytes)", (int)sizeof(rsp), ret); + if (ret < GP_OK) + return ret; + return GP_ERROR; + } + if ( !UW_EQUAL(rsp.magic, UW_MAGIC_IN) || + !UW_EQUAL(rsp.tag, hdr->tag)) + { + GP_LOG_E ("usb_wrap_OK wrong session *** FAILED"); + return GP_ERROR; + } + /* + * 32bit residual length (0) and 8 bit status (0) are good. + */ + if ( rsp.residue.c1 != 0 || + rsp.residue.c2 != 0 || + rsp.residue.c3 != 0 || + rsp.residue.c4 != 0 || + rsp.status != 0) { + GP_LOG_E ("Error: usb_wrap_OK failed - residual non-0 or status %x", rsp.status); + return GP_ERROR; + } + return GP_OK; +} + +/* so it mirrors: + ret = gp_port_send_scsi_cmd (camera->port, 1, (char*)&cmd, sizeof(cmd), + sense_buffer, sizeof(sense_buffer), (char*)&usbreq, usbreq.length); + */ +static int +scsi_wrap_cmd( + GPPort *port, + int todev, + char *cmd, unsigned int cmdlen, + char *sense, unsigned int senselen, + char *data, unsigned int size +) { + uw_header_t hdr; + int ret; + + memset(&hdr, 0, sizeof(hdr)); + hdr.magic = UW_MAGIC_OUT; + hdr.tag = uw_value(ums_tag); + ums_tag++; + hdr.rw_length = uw_value(size); + hdr.length = 12; /* seems to be always 12, even as we send 16 byte CDBs */ + hdr.flags = todev?0:(1<<7); + hdr.lun = 0; + + memcpy(hdr.cdb, cmd, cmdlen); + + if ((ret=gp_port_write(port, (char*)&hdr, sizeof(hdr))) < GP_OK) { + GP_LOG_E ("scsi_wrap_cmd *** FAILED to write scsi cmd"); + return GP_ERROR_IO; + } + if (todev) { + if ((ret=gp_port_write(port, (char*)data, size)) < GP_OK) { + GP_LOG_E ("scsi_wrap_cmd *** FAILED to write scsi data"); + return GP_ERROR_IO; + } + } else { + if ((ret=gp_port_read(port, (char*)data, size)) < GP_OK) { + GP_LOG_E ("scsi_wrap_cmd *** FAILED to read scsi data"); + return GP_ERROR_IO; + } + } + if ((ret=usb_wrap_OK(port, &hdr)) != GP_OK) { + GP_LOG_E ("scsi_wrap_cmd *** FAILED to get scsi reply"); + return GP_ERROR_IO; + } + return GP_OK; +} + +#define gp_port_send_scsi_cmd scsi_wrap_cmd + +/* Transaction data phase description */ +#define PTP_DP_NODATA 0x0000 /* no data phase */ +#define PTP_DP_SENDDATA 0x0001 /* sending data */ +#define PTP_DP_GETDATA 0x0002 /* receiving data */ +#define PTP_DP_DATA_MASK 0x00ff /* data phase mask */ + +static uint16_t +ums_wrap_sendreq (PTPParams* params, PTPContainer* req, int dataphase) { + Camera *camera = ((PTPData *)params->data)->camera; + PTPUSBBulkContainer usbreq; + char buf[64]; + int ret; + uw_scsicmd_t cmd; + char sense_buffer[32]; + + GP_LOG_D ("ums_wrap_sendreq"); + /* Build appropriate USB container */ + usbreq.length= htod32(PTP_USB_BULK_REQ_LEN- + (sizeof(uint32_t)*(5-req->Nparam))); + usbreq.type = htod16(PTP_USB_CONTAINER_COMMAND); + usbreq.code = htod16(req->Code); + usbreq.trans_id = htod32(req->Transaction_ID); + usbreq.payload.params.param1 = htod32(req->Param1); + usbreq.payload.params.param2 = htod32(req->Param2); + usbreq.payload.params.param3 = htod32(req->Param3); + usbreq.payload.params.param4 = htod32(req->Param4); + usbreq.payload.params.param5 = htod32(req->Param5); + + memset(buf,0,sizeof(buf)); + + memset (&cmd, 0, sizeof(cmd)); + cmd.cmd = cmdbyte(0); + cmd.length = uw_value(usbreq.length); + + ret = gp_port_send_scsi_cmd (camera->port, 1, (char*)&cmd, sizeof(cmd), + sense_buffer, sizeof(sense_buffer), (char*)&usbreq, usbreq.length); + GP_LOG_D ("send_scsi_cmd ret %d", ret); + return PTP_RC_OK; +} + +static uint16_t +ums_wrap_senddata ( + PTPParams* params, PTPContainer* ptp, uint64_t sendlen, PTPDataHandler*getter +) { + Camera *camera = ((PTPData *)params->data)->camera; + PTPUSBBulkContainer usbreq; + int ret; + unsigned long gotlen; + unsigned char *xdata; + uw_scsicmd_t cmd; + char sense_buffer[32]; + + GP_LOG_D ("ums_wrap_senddata"); + + memset (&cmd, 0, sizeof(cmd)); + cmd.cmd = cmdbyte(1); + cmd.length = uw_value(sendlen+12); + + xdata = malloc(sendlen + 12); + usbreq.length = htod32(sendlen + 12); + usbreq.type = htod16(PTP_USB_CONTAINER_DATA); + usbreq.code = htod16(ptp->Code); + usbreq.trans_id = htod32(ptp->Transaction_ID); + memcpy (xdata, &usbreq, 12); + ret = getter->getfunc(params, getter->priv, sendlen, xdata+12, &gotlen); + if (ret != PTP_RC_OK) { + GP_LOG_E ("ums_wrap_senddata *** data get from handler FAILED, ret %d", ret); + return ret; + } + if (gotlen != sendlen) { + GP_LOG_E ("ums_wrap_senddata *** data get from handler got %ld instead of %ld", gotlen, sendlen); + return PTP_ERROR_IO; + } + + ret = gp_port_send_scsi_cmd (camera->port, 1, (char*)&cmd, sizeof(cmd), + sense_buffer, sizeof(sense_buffer), (char*)xdata, sendlen+12); + + GP_LOG_D ("send_scsi_cmd ret %d", ret); + + free (xdata); + + return PTP_RC_OK; +} + +static uint16_t +ums_wrap_getresp (PTPParams* params, PTPContainer* resp) +{ + Camera *camera = ((PTPData *)params->data)->camera; + PTPUSBBulkContainer usbresp; + char buf[64]; + int ret; + uw_scsicmd_t cmd; + char sense_buffer[32]; + + GP_LOG_D ("ums_wrap_getresp"); + memset (&cmd, 0, sizeof(cmd)); + cmd.cmd = cmdbyte(3); + cmd.length = uw_value(sizeof(buf)); + + ret = gp_port_send_scsi_cmd (camera->port, 0, (char*)&cmd, sizeof(cmd), + sense_buffer, sizeof(sense_buffer), (char*)buf, sizeof(buf)); + + GP_LOG_D ("send_scsi_cmd ret %d", ret); + + memcpy (&usbresp, buf, sizeof(buf)); + resp->Code = dtoh16(usbresp.code); + resp->Nparam = (dtoh32(usbresp.length)-PTP_USB_BULK_REQ_LEN)/sizeof(uint32_t); + resp->Param1 = dtoh32(usbresp.payload.params.param1); + resp->Param2 = dtoh32(usbresp.payload.params.param2); + resp->Param3 = dtoh32(usbresp.payload.params.param3); + resp->Param4 = dtoh32(usbresp.payload.params.param4); + resp->Param5 = dtoh32(usbresp.payload.params.param5); + return PTP_RC_OK; +} + +static uint16_t +ums_wrap_getdata (PTPParams* params, PTPContainer* ptp, PTPDataHandler *putter) +{ + Camera *camera = ((PTPData *)params->data)->camera; + PTPUSBBulkContainer usbresp; + char buf[64]; + int ret; + unsigned long recvlen; + char *data; + uw_scsicmd_t cmd; + char sense_buffer[32]; + + GP_LOG_D ("ums_wrap_getdata"); + + memset(&cmd,0,sizeof(cmd)); + cmd.cmd = cmdbyte(4); + cmd.length = uw_value(sizeof(buf)); + + ret = gp_port_send_scsi_cmd (camera->port, 0, (char*)&cmd, sizeof(cmd), + sense_buffer, sizeof(sense_buffer), (char*)buf, sizeof(buf)); + + GP_LOG_D ("send_scsi_cmd ret %d", ret); + + memcpy (&usbresp, buf, sizeof(buf)); + if ((dtoh16(usbresp.code) != ptp->Code) && (dtoh16(usbresp.code) != PTP_RC_OK)) { + GP_LOG_D ("ums_wrap_getdata *** PTP code %04x during PTP data in size read", dtoh16(usbresp.code)); + /* break; */ + } + if (dtoh16(usbresp.length) < 16) { + recvlen = 0; + GP_LOG_D ("ums_wrap_getdata *** PTP size %d during PTP data in size read, expected 16", dtoh16(usbresp.length)); + } else { + recvlen = dtoh32(usbresp.payload.params.param1); + } + data = malloc (recvlen); + if (!data) + return PTP_ERROR_IO; + + memset(&cmd,0,sizeof(cmd)); + cmd.cmd = cmdbyte(2); + cmd.length = uw_value(recvlen); + + ret = gp_port_send_scsi_cmd (camera->port, 0, (char*)&cmd, sizeof(cmd), + sense_buffer, sizeof(sense_buffer), (char*)data, recvlen); + + GP_LOG_D ("send_scsi_cmd 2 ret %d", ret); + /* skip away the 12 byte header */ + if (recvlen >= 16) + GP_LOG_DATA (data + PTP_USB_BULK_HDR_LEN, recvlen - PTP_USB_BULK_HDR_LEN, "ptp2/olympus/getdata"); + ret = putter->putfunc ( params, putter->priv, recvlen - PTP_USB_BULK_HDR_LEN, (unsigned char*)data + PTP_USB_BULK_HDR_LEN); + free (data); + if (ret != PTP_RC_OK) { + GP_LOG_E ("ums_wrap_getdata FAILED to push data into put handle, ret %x", ret); + return PTP_ERROR_IO; + } + return PTP_RC_OK; +} + +static char* generate_event_OK_xml(PTPParams *params, PTPContainer *ptp); +static int parse_event_xml(PTPParams *params, const char *txt, PTPContainer *resp); + +static int +olympus_xml_transfer (PTPParams *params, + char *cmdxml, char **inxml +) { + PTPContainer ptp2; + int res; + PTPObjectInfo oi; + unsigned char *resxml, *oidata = NULL; + uint32_t size, newhandle; + uint16_t ret; + PTPParams *outerparams = params->outer_params; + + GP_LOG_D ("olympus_xml_transfer"); + while (1) { + GP_LOG_D ("... checking camera for events ..."); + ret = outerparams->event_check(outerparams, &ptp2); + if (ret == PTP_RC_OK) { + char *evxml; + + GP_LOG_D ("event: code %04x, p %08x", ptp2.Code, ptp2.Param1); + + if (ptp2.Code != PTP_EC_RequestObjectTransfer) { + ptp_add_event (params, &ptp2); + goto skip; + } + newhandle = ptp2.Param1; + if ((newhandle & 0xff000000) != 0x1e000000) { + GP_LOG_D ("event 0x%04x, handle 0x%08x received, no XML event, just passing on", ptp2.Code, ptp2.Param1); + ptp_add_event (params, &ptp2); + continue; + } + + ret = ptp_getobjectinfo (outerparams, newhandle, &oi); + if (ret != PTP_RC_OK) + return ret; + eventhandler: + GP_LOG_D ("event xml transfer: got new file: %s", oi.Filename); + ret = ptp_getobject (outerparams, newhandle, (unsigned char**)&resxml); + if (ret != PTP_RC_OK) + return ret; + evxml = malloc (oi.ObjectCompressedSize + 1); + memcpy (evxml, resxml, oi.ObjectCompressedSize); + evxml[oi.ObjectCompressedSize] = 0x00; + + GP_LOG_D ("file content: %s", evxml); + + parse_event_xml (params, evxml, &ptp2); + /* parse it */ + + evxml = generate_event_OK_xml(params, &ptp2); + + GP_LOG_D ("... sending XML event reply to camera ... "); + memset (&ptp2, 0 , sizeof (ptp2)); + ptp2.Code = PTP_OC_SendObjectInfo; + ptp2.Nparam = 1; + ptp2.Param1 = 0x80000001; + + memset (&oi, 0, sizeof (oi)); + oi.ObjectFormat = PTP_OFC_Script; + oi.StorageID = 0x80000001; + oi.Filename = "HRSPONSE.X3C"; + oi.ObjectCompressedSize = strlen(evxml); + size = ptp_pack_OI(params, &oi, &oidata); + res = ptp_transaction (outerparams, &ptp2, PTP_DP_SENDDATA, size, &oidata, NULL); + if (res != PTP_RC_OK) + return res; + free(oidata); + /*handle = ptp2.Param3; ... we do not use the returned handle and leave the file on camera. */ + + ptp2.Code = PTP_OC_SendObject; + ptp2.Nparam = 0; + res = ptp_transaction(outerparams, &ptp2, PTP_DP_SENDDATA, strlen(evxml), (unsigned char**)&evxml, NULL); + if (res != PTP_RC_OK) + return res; + continue; + } + skip: + + GP_LOG_D ("... sending XML request to camera ... "); + memset (&ptp2, 0 , sizeof (ptp2)); + ptp2.Code = PTP_OC_SendObjectInfo; + ptp2.Nparam = 1; + ptp2.Param1 = 0x80000001; + + memset (&oi, 0, sizeof (oi)); + oi.ObjectFormat = PTP_OFC_Script; + oi.StorageID = 0x80000001; + oi.Filename = "HREQUEST.X3C"; + oi.ObjectCompressedSize = strlen(cmdxml); + +/* +"HRSPONSE.X3C" ... sent back to camera after receiving an event. +2001event_wait(outerparams, &ptp2); + if (ret != PTP_RC_OK) + return ret; + GP_LOG_D ("event: code %04x, p %08x", ptp2.Code, ptp2.Param1); + if (ptp2.Code != PTP_EC_RequestObjectTransfer) { + ptp_add_event (params, &ptp2); + goto redo; + } + /* FIXME: check for 0x1e0000* ? */ + newhandle = ptp2.Param1; + ret = ptp_getobjectinfo (outerparams, newhandle, &oi); + if (ret != PTP_RC_OK) + return ret; + GP_LOG_D ("regular xml transfer: got new file: %s", oi.Filename); + if (strcmp(oi.Filename,"DRSPONSE.X3C")) { + GP_LOG_E ("FIXME: regular xml transfer: got new file: %s", oi.Filename); + goto eventhandler; + } + ret = ptp_getobject (outerparams, newhandle, (unsigned char**)&resxml); + if (ret != PTP_RC_OK) + return ret; + *inxml = malloc (oi.ObjectCompressedSize + 1); + memcpy (*inxml, resxml, oi.ObjectCompressedSize); + (*inxml)[oi.ObjectCompressedSize] = 0x00; + + GP_LOG_D ("file content: %s", *inxml); + /* parse it */ + break; + } + return PTP_RC_OK; +} + +static int +traverse_tree (PTPParams *params, int depth, xmlNodePtr node) { + xmlNodePtr next; + xmlChar *xchar; + int n; + char *xx; + + + if (!node) return FALSE; + xx = malloc(depth * 4 + 1); + memset (xx, ' ', depth*4); + xx[depth*4] = 0; + + n = xmlChildElementCount (node); + + next = node; + do { + ptp_debug(params,"%snode %s", xx, next->name); + ptp_debug(params,"%selements %d", xx, n); + xchar = xmlNodeGetContent (next); + ptp_debug(params,"%scontent %s", xx, xchar); + traverse_tree (params, depth+1,xmlFirstElementChild (next)); + } while ((next = xmlNextElementSibling (next))); + free (xx); + return TRUE; +} + +static int +parse_9581_tree (xmlNodePtr node) { + xmlNodePtr next; + + next = xmlFirstElementChild (node); + while (next) { + if (!strcmp ((char*)next->name, "data")) { + char *decoded, *x; + char *xchars = (char*)xmlNodeGetContent (next); + + x = decoded = malloc(strlen(xchars)+1); + while (xchars[0] && xchars[1]) { + int y; + sscanf(xchars,"%02x", &y); + *x++ = y; + xchars+=2; + } + *x = '\0'; + GP_LOG_D ("9581: %s", decoded); + + + next = xmlNextElementSibling (next); + free (decoded); + continue; + } + GP_LOG_E ("9581: unhandled node type %s", next->name); + next = xmlNextElementSibling (next); + } + /*traverse_tree (0, node);*/ + return TRUE; +} + +static int +parse_910a_tree (xmlNodePtr node) { + xmlNodePtr next; + + next = xmlFirstElementChild (node); + do { + if (!strcmp ((char*)next->name, "param")) { + unsigned int x; + xmlChar *xchar = xmlNodeGetContent (next); + if (!sscanf((char*)xchar,"%08x", &x)) { + fprintf(stderr,"could not parse param content %s\n", xchar); + } + fprintf(stderr,"param content is 0x%08x\n", x); + continue; + } + fprintf (stderr,"910a: unhandled type %s\n", next->name); + } while ((next = xmlNextElementSibling (next))); + /*traverse_tree (0, node);*/ + return TRUE; +} + +static int +parse_9302_tree (xmlNodePtr node) { + xmlNodePtr next; + xmlChar *xchar; + + next = xmlFirstElementChild (node); + while (next) { + if (!strcmp((char*)next->name, "x3cVersion")) { + int x3cver; + xchar = xmlNodeGetContent (next); + sscanf((char*)xchar, "%04x", &x3cver); + GP_LOG_D ("x3cVersion %d.%d", (x3cver>>8)&0xff, x3cver&0xff); + goto xnext; + } + if (!strcmp((char*)next->name, "productIDs")) { + char *x, *nextspace; + int len; + x = (char*)(xchar = xmlNodeGetContent (next)); + GP_LOG_D ("productIDs:"); + + do { + nextspace=strchr(x,' '); + if (nextspace) nextspace++; + + /* ascii ptp string, 1 byte length, little endian 16 bit chars */ + if (sscanf(x,"%02x", &len)) { + int i; + char *str = malloc(len+1); + for (i=0;i>8) & 0xff) | ((xc & 0xff) << 8); + str[i] = cx; + } + str[len] = 0; + } + GP_LOG_D ("\t%s", str); + free (str); + } + x = nextspace; + } while (x); + + goto xnext; + } + GP_LOG_E ("unknown node in 9301: %s", next->name); +xnext: + next = xmlNextElementSibling (next); + } + return TRUE; +} + +#if 0 +static int +parse_9301_value (PTPParams *params, const char *str, uint16_t type, PTPPropertyValue *propval) { + switch (type) { + case 6: { /*UINT32*/ + unsigned int x; + if (!sscanf(str,"%08x", &x)) { + ptp_debug( params, "could not parse uint32 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->u32 = x; + break; + } + case 5: { /*INT32*/ + int x; + if (!sscanf(str,"%08x", &x)) { + ptp_debug( params, "could not parse int32 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->i32 = x; + break; + } + case 4: { /*UINT16*/ + unsigned int x; + if (!sscanf(str,"%04x", &x)) { + ptp_debug( params, "could not parse uint16 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->u16 = x; + break; + } + case 3: { /*INT16*/ + int x; + if (!sscanf(str,"%04x", &x)) { + ptp_debug( params, "could not parse int16 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->i16 = x; + break; + } + case 2: { /*UINT8*/ + unsigned int x; + if (!sscanf(str,"%02x", &x)) { + ptp_debug( params, "could not parse uint8 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->u8 = x; + break; + } + case 1: { /*INT8*/ + int x; + if (!sscanf(str,"%02x", &x)) { + ptp_debug( params, "could not parse int8 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->i8 = x; + break; + } + case 65535: { /* string */ + int len; + + /* ascii ptp string, 1 byte length, little endian 16 bit chars */ + if (sscanf(str,"%02x", &len)) { + int i; + char *xstr = malloc(len+1); + for (i=0;i>8) & 0xff) | ((xc & 0xff) << 8); + xstr[i] = cx; + } + xstr[len] = 0; + } + ptp_debug( params, "\t%s", xstr); + propval->str = xstr; + break; + } + ptp_debug( params, "string %s not parseable!", str); + return PTP_RC_GeneralError; + } + case 7: /*INT64*/ + case 8: /*UINT64*/ + case 9: /*INT128*/ + case 10: /*UINT128*/ + default: + ptp_debug( params, "unhandled data type %d!", type); + return PTP_RC_GeneralError; + } + return PTP_RC_OK; +} + + +static int +parse_9301_propdesc (PTPParams *params, xmlNodePtr node, PTPDevicePropDesc *dpd) { + xmlNodePtr next; + int type = -1; + + dpd->FormFlag = PTP_DPFF_None; + dpd->GetSet = PTP_DPGS_Get; + next = xmlFirstElementChild (node); + do { + if (!strcmp((char*)next->name,"type")) { /* propdesc.DataType */ + if (!sscanf((char*)xmlNodeGetContent (next), "%04x", &type)) { + ptp_debug( params, "\ttype %s not parseable?",xmlNodeGetContent (next)); + return 0; + } + ptp_debug( params, "type 0x%x", type); + dpd->DataType = type; + continue; + } + if (!strcmp((char*)next->name,"attribute")) { /* propdesc.GetSet */ + int attr; + + if (!sscanf((char*)xmlNodeGetContent (next), "%02x", &attr)) { + ptp_debug( params, "\tattr %s not parseable",xmlNodeGetContent (next)); + return 0; + } + ptp_debug( params, "attribute 0x%x", attr); + dpd->GetSet = attr; + continue; + } + if (!strcmp((char*)next->name,"default")) { /* propdesc.FactoryDefaultValue */ + ptp_debug( params, "default value"); + parse_9301_value (params, (char*)xmlNodeGetContent (next), type, &dpd->FactoryDefaultValue); + continue; + } + if (!strcmp((char*)next->name,"value")) { /* propdesc.CurrentValue */ + ptp_debug( params, "current value"); + parse_9301_value (params, (char*)xmlNodeGetContent (next), type, &dpd->CurrentValue); + continue; + } + if (!strcmp((char*)next->name,"enum")) { /* propdesc.FORM.Enum */ + int n,i; + char *s; + + ptp_debug( params, "enum"); + dpd->FormFlag = PTP_DPFF_Enumeration; + s = (char*)xmlNodeGetContent (next); + n = 0; + do { + s = strchr(s,' '); + if (s) s++; + n++; + } while (s); + dpd->FORM.Enum.NumberOfValues = n; + dpd->FORM.Enum.SupportedValue = malloc (n * sizeof(PTPPropertyValue)); + s = (char*)xmlNodeGetContent (next); + i = 0; + do { + parse_9301_value (params, s, type, &dpd->FORM.Enum.SupportedValue[i]); /* should turn ' ' into \0? */ + i++; + s = strchr(s,' '); + if (s) s++; + } while (s && (iname,"range")) { /* propdesc.FORM.Enum */ + char *s = (char*)xmlNodeGetContent (next); + dpd->FormFlag = PTP_DPFF_Range; + ptp_debug( params, "range"); + parse_9301_value (params, s, type, &dpd->FORM.Range.MinimumValue); /* should turn ' ' into \0? */ + s = strchr(s,' '); + if (!s) continue; + s++; + parse_9301_value (params, s, type, &dpd->FORM.Range.MaximumValue); /* should turn ' ' into \0? */ + s = strchr(s,' '); + if (!s) continue; + s++; + parse_9301_value (params, s, type, &dpd->FORM.Range.StepSize); /* should turn ' ' into \0? */ + + continue; + } + ptp_debug (params, "\tpropdescvar: %s", next->name); + ptp_debug (params, "\tcontent: %s", (char*)xmlNodeGetContent(next)); + traverse_tree (params, 3, xmlFirstElementChild(next)); + } while ((next = xmlNextElementSibling (next))); + return PTP_RC_OK; +} + +static int +parse_1015_tree (xmlNodePtr node, uint16_t type) { + PTPPropertyValue propval; + xmlNodePtr next; + + next = xmlFirstElementChild (node); + return parse_value ((char*)xmlNodeGetContent (next), type, &propval); +} +#endif + +static int +traverse_output_tree (PTPParams *params, xmlNodePtr node, PTPContainer *resp) { + xmlNodePtr next; + int cmd; + + if (strcmp((char*)node->name,"output")) { + GP_LOG_E ("node is not output, but %s.", node->name); + return FALSE; + } + if (xmlChildElementCount(node) != 2) { + GP_LOG_E ("output: expected 2 children, got %ld.", xmlChildElementCount(node)); + return FALSE; + } + next = xmlFirstElementChild (node); + if (!strcmp((char*)next->name,"result")) { + int result; + xmlChar *xchar; + xchar = xmlNodeGetContent (next); + if (!sscanf((char*)xchar,"%04x",&result)) + GP_LOG_E ("failed scanning result from %s", xchar); + resp->Code = result; + GP_LOG_D ("ptp result is 0x%04x", result); + + } + next = xmlNextElementSibling (next); + if (!sscanf ((char*)next->name, "c%04x", &cmd)) { + GP_LOG_E ("expected c, have %s", next->name); + return FALSE; + } + GP_LOG_D ("cmd is 0x%04x", cmd); + switch (cmd) { + /* reviewed OK. */ + case PTP_OC_OLYMPUS_Capture: return TRUE; + case PTP_OC_GetDevicePropDesc: return TRUE; + + /* TODO */ +#if 0 + case PTP_OC_OLYMPUS_GetDeviceInfo: return parse_9301_tree (next); /* 9301 */ +#endif + case PTP_OC_OLYMPUS_OpenSession: return parse_9302_tree (next); + case PTP_OC_OLYMPUS_GetCameraControlMode: return parse_910a_tree (next); + case PTP_OC_OLYMPUS_GetCameraID: return parse_9581_tree (next); + + case PTP_OC_SetDevicePropValue: /* \n2001\n\n\n\n */ + /* we could cross check the parameter, but its not strictly necessary */ + return TRUE; +#if 0 + case PTP_OC_GetDevicePropValue: return parse_1015_tree ( next , PTP_DTC_UINT32); +#endif + default: + return traverse_tree (params, 0, next); + } + return FALSE; +} + +static int +traverse_input_tree (PTPParams *params, xmlNodePtr node, PTPContainer *resp) { + unsigned int curpar = 0; + int evt; + xmlNodePtr next = xmlFirstElementChild (node); + uint32_t pars[5]; + + + if (!next) { + GP_LOG_E ("no nodes below input."); + return FALSE; + } + + resp->Code = 0; + while (next) { + if (sscanf((char*)next->name,"e%x",&evt)) { + resp->Code = evt; + + switch (evt) { + case PTP_EC_Olympus_PropertyChanged: { + xmlNodePtr propidnode = xmlFirstElementChild(next); + + /* Gets a list of property that changed ... stuff into + * event queue. */ + while (propidnode) { + int propid; + + if (sscanf((char*)propidnode->name,"p%x", &propid)) { + PTPContainer ptp; + + memset(&ptp, 0, sizeof(ptp)); + ptp.Code = PTP_EC_DevicePropChanged; + ptp.Nparam = 1; + ptp.Param1 = propid; + ptp_add_event (params, &ptp); + } + propidnode = xmlNextElementSibling (propidnode); + } + break; + } + default: + if (xmlChildElementCount(node) != 0) { + GP_LOG_E ("event %s hat tree below?", (char*)next->name); + traverse_tree (params, 0, xmlFirstElementChild(next)); + } + } + next = xmlNextElementSibling (next); + continue; + } + if (!strcmp((char*)next->name,"param")) { + int x; + if (sscanf((char*)xmlNodeGetContent(next),"%x", &x)) { + if (curpar < sizeof(pars)/sizeof(pars[0])) + pars[curpar++] = x; + else + GP_LOG_E ("ignore superfluous argument %s/%x", (char*)xmlNodeGetContent(next), x); + } + next = xmlNextElementSibling (next); + continue; + } + GP_LOG_E ("parsing event input node, unknown node %s", (char*)next->name); + next = xmlNextElementSibling (next); + } + resp->Nparam = curpar; + switch (curpar) { + case 5: resp->Param5 = pars[4]; + case 4: resp->Param4 = pars[3]; + case 3: resp->Param3 = pars[2]; + case 2: resp->Param2 = pars[1]; + case 1: resp->Param1 = pars[0]; + case 0: break; + } + /* FIXME: decode content and inject into PTP event queue. */ + return TRUE; +} + +static int +traverse_x3c_tree (PTPParams *params, xmlNodePtr node, PTPContainer *resp) { + xmlNodePtr next; + + if (!node) + return FALSE; + if (strcmp((char*)node->name,"x3c")) { + GP_LOG_E ("node is not x3c, but %s.", node->name); + return FALSE; + } + if (xmlChildElementCount(node) != 1) { + GP_LOG_E ("x3c: expected 1 child, got %ld.", xmlChildElementCount(node)); + return FALSE; + } + next = xmlFirstElementChild (node); + if (!strcmp((char*)next->name, "output")) + return traverse_output_tree (params, next, resp); + if (!strcmp((char*)next->name, "input")) + return traverse_input_tree (params, next, resp); /* event */ + GP_LOG_E ("unknown name %s below x3c.", next->name); + return FALSE; +} + +static int +traverse_x3c_event_tree (PTPParams *params, xmlNodePtr node, PTPContainer *resp) { + xmlNodePtr next; + + if (!node) + return FALSE; + if (strcmp((char*)node->name,"x3c")) { + GP_LOG_E ("node is not x3c, but %s.", node->name); + return FALSE; + } + if (xmlChildElementCount(node) != 1) { + GP_LOG_E ("x3c: expected 1 child, got %ld.", xmlChildElementCount(node)); + return FALSE; + } + next = xmlFirstElementChild (node); + if (!strcmp((char*)next->name, "input")) + return traverse_input_tree (params, next, resp); /* event */ + GP_LOG_E ("unknown name %s below x3c.", next->name); + return FALSE; +} + +static int +parse_xml(PTPParams *params, const char *txt, PTPContainer *resp) { + xmlDocPtr docin; + xmlNodePtr docroot; + + docin = xmlReadMemory (txt, strlen(txt), "http://gphoto.org/", "utf-8", 0); + if (!docin) return FALSE; + docroot = xmlDocGetRootElement (docin); + if (!docroot) return FALSE; + return traverse_x3c_tree (params, docroot, resp); +} + +static int +parse_event_xml(PTPParams *params, const char *txt, PTPContainer *resp) { + xmlDocPtr docin; + xmlNodePtr docroot; + + docin = xmlReadMemory (txt, strlen(txt), "http://gphoto.org/", "utf-8", 0); + if (!docin) return FALSE; + docroot = xmlDocGetRootElement (docin); + if (!docroot) return FALSE; + return traverse_x3c_event_tree (params, docroot, resp); +} + +static void +encode_command (xmlNodePtr inputnode, PTPContainer *ptp, unsigned char *data, int len) +{ + xmlNodePtr cmdnode; + char code[20]; + + sprintf(code,"c%04X", ptp->Code); + cmdnode = xmlNewChild (inputnode, NULL, (xmlChar*)code, NULL); + + switch (ptp->Code) { + case 0x1014: { /* OK */ + sprintf (code, "p%04X", ptp->Param1); + xmlNewChild (cmdnode, NULL, (xmlChar*)code, NULL); + break; + } + case 0x1016: { + char buf[20]; + xmlNodePtr pnode; + /* zb 000A000D */ + /* FIXME: might still be wrong. */ + /* We can directly byte encode the data we get from the PTP stack */ + /* ... BUT the byte order is bigendian (printed) vs encoded */ + int i; + char *x = malloc (len*2+1); + + if (len <= 4) { /* just dump the bytes in big endian byteorder */ + for (i=0;iParam1); + pnode = xmlNewChild (cmdnode, NULL, (xmlChar*)buf, NULL); + xmlNewChild (pnode, NULL, (xmlChar*)"value", (xmlChar*)x); + free (x); + break; + } + default: + if (ptp->Nparam) { + switch (ptp->Nparam) { + case 1: + sprintf (code, "%08X", ptp->Param1); + xmlNewChild (cmdnode, NULL, (xmlChar*)"param", (xmlChar*)code); + break; + case 2: + sprintf (code, "%08X", ptp->Param1); + xmlNewChild (cmdnode, NULL, (xmlChar*)"param", (xmlChar*)code); + sprintf (code, "%08X", ptp->Param2); + xmlNewChild (cmdnode, NULL, (xmlChar*)"param", (xmlChar*)code); + break; + } + } + break; + } +} + +static char* +generate_event_OK_xml(PTPParams *params, PTPContainer *ptp) { + xmlDocPtr docout; + xmlChar *output; + int len; + xmlNodePtr x3cnode, inputnode; + char buf[10]; + + /* + "HRSPONSE.X3C" ... sent back to camera after receiving an event. + 2001Code); + + xmlNewChild (inputnode, NULL, (xmlChar*)"result", (xmlChar*)"2001"); + xmlNewChild (inputnode, NULL, (xmlChar*)buf, NULL); + + xmlDocSetRootElement (docout, x3cnode); + xmlDocDumpMemory (docout, &output, &len); + + GP_LOG_D ("generated xml is:"); + GP_LOG_D ("%s", output); + + /* NOTE: Windows driver generates XML with CRLF, Unix just creates XML with LF. + * Olympus E-410 does not seem to care. */ + return (char*)output; +} +static char* +generate_xml(PTPParams *params, PTPContainer *ptp, unsigned char *data, int len) { + xmlDocPtr docout; + xmlChar *output; + xmlNodePtr x3cnode; + xmlNodePtr inputnode; + + docout = xmlNewDoc ((xmlChar*)"1.0"); + x3cnode = xmlNewDocNode (docout, NULL, (xmlChar*)"x3c", NULL); + xmlNewNs (x3cnode,(xmlChar*)"http://www1.olympus-imaging.com/ww/x3c",NULL); + inputnode = xmlNewChild (x3cnode, NULL, (xmlChar*)"input", NULL); + + /* The fun starts in here: */ + encode_command (inputnode, ptp, data, len); + + xmlDocSetRootElement (docout, x3cnode); + xmlDocDumpMemory (docout, &output, &len); + + GP_LOG_D ("generated xml is:"); + GP_LOG_D ("%s", output); + + /* NOTE: Windows driver generates XML with CRLF, Unix just creates XML with LF. + * Olympus E-410 does not seem to care. */ + return (char*)output; +} + +static int +is_outer_operation (PTPParams* params, uint16_t opcode) { + unsigned int i; + + GP_LOG_D ("is_outer_operation %04x", opcode); + /* the ones we need before we can do getdeviceinfo */ + if (opcode == PTP_OC_OpenSession) return 1; + if (opcode == PTP_OC_SendObjectInfo) return 1; + if (opcode == PTP_OC_SendObject) return 1; + if (opcode == PTP_OC_GetDeviceInfo) return 1; + if (opcode == PTP_OC_GetStorageIDs) return 1; + + /* all vendor ones are XML driven. */ + if ((opcode & 0x8000) == 0x8000) return 0; + + /* Do nothing here, either do stuff in senddata, getdata or getresp, + * which will get the PTPContainer req too. */ + for (i=0;iouter_deviceinfo.OperationsSupported_len;i++) + if (params->outer_deviceinfo.OperationsSupported[i]==opcode) + return TRUE; + GP_LOG_D ("is_outer_operation %04x - is WRAPPED", opcode); + return FALSE; +} + +static uint16_t +ums_wrap2_event_check (PTPParams* params, PTPContainer* req) +{ + PTPContainer ptp2; + int res; + PTPObjectInfo oi; + unsigned char *resxml, *oidata = NULL; + uint32_t size, newhandle; + uint16_t ret; + PTPParams *outerparams = params->outer_params; + char *evxml; + + GP_LOG_D ("ums_wrap2_event_check"); + + while (1) { + ret = outerparams->event_check(outerparams, &ptp2); + if (ret != PTP_RC_OK) + return ret; + + GP_LOG_D ("event: code %04x, p %08x", ptp2.Code, ptp2.Param1); + + if (ptp2.Code != PTP_EC_RequestObjectTransfer) { + GP_LOG_D ("event 0x%04x received, just passing on", ptp2.Code); + memcpy (req, &ptp2, sizeof(ptp2)); + return PTP_RC_OK; + } + + newhandle = ptp2.Param1; + + if ((newhandle & 0xff000000) != 0x1e000000) { + GP_LOG_D ("event 0x%04x, handle 0x%08x received, no XML event, just passing on", ptp2.Code, ptp2.Param1); + ptp_add_event (params, &ptp2); + continue; + } + + ret = ptp_getobjectinfo (outerparams, newhandle, &oi); + if (ret != PTP_RC_OK) + return ret; + GP_LOG_D ("event xml: got new file: %s", oi.Filename); + if (!strstr(oi.Filename,".X3C")) { + GP_LOG_D ("PTP_EC_RequestObjectTransfer with non XML filename %s", oi.Filename); + memcpy (req, &ptp2, sizeof(ptp2)); + return PTP_RC_OK; + } + ret = ptp_getobject (outerparams, newhandle, (unsigned char**)&resxml); + if (ret != PTP_RC_OK) + return ret; + evxml = malloc (oi.ObjectCompressedSize + 1); + memcpy (evxml, resxml, oi.ObjectCompressedSize); + evxml[oi.ObjectCompressedSize] = 0x00; + + GP_LOG_D ("file content: %s", evxml); + + /* FIXME: handle the case where we get a non X3C file, like during capture */ + + /* parse it ... into req */ + parse_event_xml (params, evxml, req); + + /* generate reply */ + evxml = generate_event_OK_xml(params, req); + + GP_LOG_D ("... sending XML event reply to camera ... "); + memset (&ptp2, 0 , sizeof (ptp2)); + ptp2.Code = PTP_OC_SendObjectInfo; + ptp2.Nparam = 1; + ptp2.Param1 = 0x80000001; + + memset (&oi, 0, sizeof (oi)); + oi.ObjectFormat = PTP_OFC_Script; + oi.StorageID = 0x80000001; + oi.Filename = "HRSPONSE.X3C"; + oi.ObjectCompressedSize = strlen(evxml); + size = ptp_pack_OI(params, &oi, &oidata); + res = ptp_transaction (outerparams, &ptp2, PTP_DP_SENDDATA, size, &oidata, NULL); + if (res != PTP_RC_OK) + return res; + free(oidata); + /*handle = ptp2.Param3; ... we do not use the returned handle and leave the file on camera. */ + + ptp2.Code = PTP_OC_SendObject; + ptp2.Nparam = 0; + res = ptp_transaction(outerparams, &ptp2, PTP_DP_SENDDATA, strlen(evxml), (unsigned char**)&evxml, NULL); + if (res != PTP_RC_OK) + return res; + return PTP_RC_OK; + } +} + +static uint16_t +ums_wrap2_sendreq (PTPParams* params, PTPContainer* req, int dataphase) +{ + GP_LOG_D ("ums_wrap2_sendreq"); + if (is_outer_operation (params,req->Code)) + return ums_wrap_sendreq (params,req,dataphase); + /* We do stuff in either senddata, getdata or getresp, not here. */ + params->olympus_cmd = NULL; + params->olympus_reply = NULL; + return PTP_RC_OK; +} + +static uint16_t +ums_wrap2_senddata ( + PTPParams* params, PTPContainer* ptp, uint64_t sendlen, PTPDataHandler*getter +) { + unsigned char *data; + uint16_t ret; + unsigned long gotlen; + + if (is_outer_operation (params, ptp->Code)) + return ums_wrap_senddata (params, ptp, sendlen, getter); + + GP_LOG_D ("ums_wrap2_senddata"); + data = malloc (sendlen); + ret = getter->getfunc(params, getter->priv, sendlen, data, &gotlen); + if (ret != PTP_RC_OK) { + GP_LOG_D ("ums_wrap2_senddata *** data get from handler FAILED, ret %d", ret); + return ret; + } + params->olympus_cmd = generate_xml (params, ptp, data, sendlen); + free (data); + /* Do not do stuff yet, do it in getresp */ + return PTP_RC_OK; +} + +static uint16_t +ums_wrap2_getdata (PTPParams* params, PTPContainer* ptp, PTPDataHandler *putter) { + char *resxml = NULL; + uint16_t ret; + + if (is_outer_operation (params, ptp->Code)) + return ums_wrap_getdata (params, ptp, putter); + + GP_LOG_D ("ums_wrap2_getdata"); + + /* Either send or get data, not both. olympus_cmd is NULL now */ + params->olympus_cmd = generate_xml (params, ptp, NULL, 0); + + /* Do the fun stuff. */ + ret = olympus_xml_transfer (params, params->olympus_cmd, &resxml); + if (ret != PTP_RC_OK) + return ret; + + /* Remember the returned XML for getresp() for the PTP return code. */ + params->olympus_reply = resxml; + switch (ptp->Code) { +#if 0 + case PTP_OC_GetDevicePropDesc: { + PTPPropertyDesc dpd; + parse_9301_propdesc (xmlFirstElementChild (next), &dpd); + /* decode the XML ... reencode the binary presentation of the propdesc */ + break; + } +#endif + default: + /* Just put the XML blob as-is as data... It will be processed in ptp.c */ + return putter->putfunc(params,putter->priv,strlen(resxml)+1,(unsigned char*)resxml); + } +} + +static uint16_t +ums_wrap2_getresp (PTPParams* params, PTPContainer* resp) { + int ret; + + if (is_outer_operation(params, resp->Code)) + return ums_wrap_getresp (params, resp); + + GP_LOG_D ("ums_wrap2_getresp"); + if (!params->olympus_cmd) /* no data phase at all */ + params->olympus_cmd = generate_xml (params, resp, NULL, 0); + if (!params->olympus_reply) { + /* Do the actual handshake here. */ + ret = olympus_xml_transfer (params, params->olympus_cmd, ¶ms->olympus_reply); + if (ret != PTP_RC_OK) { + GP_LOG_E ("ums_wrap2_getresp: error %x from transfer", ret); + return ret; + } + } + parse_xml (params, params->olympus_reply, resp); + return PTP_RC_OK; +} + +uint16_t +olympus_setup (PTPParams *params) { + PTPParams *outerparams; + + params->getresp_func = ums_wrap2_getresp; + params->senddata_func = ums_wrap2_senddata; + params->getdata_func = ums_wrap2_getdata; + params->sendreq_func = ums_wrap2_sendreq; + + params->event_check = ums_wrap2_event_check; + params->event_wait = ums_wrap2_event_check; + + params->outer_params = outerparams = malloc (sizeof(PTPParams)); + memcpy(outerparams, params, sizeof(PTPParams)); + outerparams->sendreq_func = ums_wrap_sendreq; + outerparams->getresp_func = ums_wrap_getresp; + outerparams->senddata_func = ums_wrap_senddata; + outerparams->getdata_func = ums_wrap_getdata; + outerparams->getdata_func = ums_wrap_getdata; + + /* events come just as PTP events */ + outerparams->event_check = ptp_usb_event_check; + outerparams->event_wait = ptp_usb_event_wait; + + return PTP_RC_OK; +} +#endif /* HAVE_LIBXML2 */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/olympus-wrap.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/olympus-wrap.h new file mode 100644 index 00000000..e76285b2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/olympus-wrap.h @@ -0,0 +1,28 @@ +/* olympus-wrap.h + * + * Copyright (c) 2012 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __OLYMPUS_USBWRAP_H__ +#define __OLYMPUS_USBWRAP_H__ + +#include + +uint16_t olympus_setup (PTPParams *params); + +#endif /* __OLYMPUS_USBWRAP_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/olympus.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/olympus.txt new file mode 100644 index 00000000..80f12470 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/olympus.txt @@ -0,0 +1,1439 @@ +Olympus E series notes from Marcus + +#if 0 +int +main(int argc, char **argv) { + PTPContainer ptp; + + parse_xml(" 2001 0100 224F0045003000360034003000300030003000300030003000300030002D00300030003000300031003000300039002D004700370033003500310039003500360033000000 224F004C003000300032003300300031003000300030003000300030002D00300030003000300031003300300035002D003200310033003000340033003600300037000000 "); + parse_xml("\ +\ +\ +\ +2001\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +\ +0002\ +00\ +00\ +64\ +01 64 01\ +\ +\ +FFFF\ +01\ +0A3400300033003200780033003000320034000000\ +0A3400300033003200780033003000320034000000\ +0A3400300033003200780033003000320034000000\ +\ +\ +0004\ +01\ +017C\ +0230\ +017C 0190 01C2 01F4 0230 0276 02C6 0320 0384 03E8 044C 0514 0578 0640 0708 07D0 0898\ +\ +\ +0006\ +00\ +00002710\ +00000D48\ +00000AF0 000020D0 00000064\ +\ +\ +0004\ +01\ +0002\ +8001\ +0001 0002 8001\ +\ +\ +0004\ +01\ +8001\ +8001\ +0002 0004 8001 8011 8012\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001 0004 8003 8001 8002 0003 0002 9001 9004 9010 9040\ +\ +\ +0004\ +01\ +0002\ +0003\ +FFFF 0001 0002 0003 0004 8001 8002 8003 8006 9006 9008 900A 900F 9011 9013 9014\ +\ +\ +0004\ +01\ +FFFF\ +0190\ +FFFF 0064 007D 00A0 00C8 00FA 0140 0190 01F4 0280 0320 03E8 04E2 0640 07D0 09C4 0C80\ +\ +\ +0003\ +01\ +0000\ +0000\ +EC78 EDC6 EF13 F060 F1AE F2FB F448 F596 F6E3 F830 F97E FACB FC18 FD66 FEB3 0000 014D 029A 03E8 0535 0682 07D0 091D 0A6A 0BB8 0D05 0E52 0FA0 10ED 123A 1388\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001 0022 0012\ +\ +\ +0002\ +01\ +00\ +00\ +FE FF 00 01 02\ +\ +\ +0002\ +01\ +00\ +00\ +FE FF 00 01 02\ +\ +\ +0004\ +01\ +0001\ +0002\ +0001 0001 0001\ +\ +\ +0004\ +01\ +8100\ +8100\ +8100 8101\ +\ +\ +0004\ +01\ +0102\ +0020\ +0020 0101 0102 0103 0104 0121 0122 0123 0124\ +\ +\ +0004\ +01\ +0002\ +0001\ +0001 0002\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001 0002 0003\ +\ +\ +0004\ +01\ +0001\ +0003\ +0001 0002 0003\ +\ +\ +0004\ +01\ +014D\ +014D\ +03E8 01F4 014D\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001 0002 8000 0004\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001\ +\ +\ +0004\ +01\ +0BB8\ +0BB8\ +0BB8 0FA0 1194 14B4 157C 1770 19C8 1D4C\ +\ +\ +0003\ +01\ +0000\ +0000\ +FFF9 FFFA FFFB FFFC FFFD FFFE FFFF 0000 0001 0002 0003 0004 0005 0006 0007\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001\ +\ +\ +0004\ +01\ +1518\ +1518\ +07D0 0802 0834 0866 0898 08CA 08FC 092E 0960 0992 09C4 09F6 0A28 0A5A 0A8C 0ABE 0AF0 0B54 0BB8 0C1C 0C80 0CE4 0D48 0DAC 0E10 0E74 0ED8 0F3C 0FA0 1068 1130 11F8 12C0 1388 1450 1518 15E0 16A8 1770 1838 1900 19C8 1A90 1B58 1CE8 1E78 2008 2198 2328 24B8 2648 2710 2AF8 2EE0 32C8 36B0\ +\ +\ +0006\ +01\ +000100FA\ +000A000D\ +0258000A 01F4000A 0190000A 012C000A 00FA000A 00C8000A 0096000A 0082000A 0064000A 0050000A 003C000A 0032000A 0028000A 0020000A 0019000A 0014000A 0010000A 000D000A 000A000A 000A000D 000A0010 000A0014 000A0019 00010003 00010004 00010005 00010006 00010008 0001000A 0001000D 0001000F 00010014 00010019 0001001E 00010028 00010032 0001003C 00010050 00010064 0001007D 000100A0 000100C8 000100FA 00010140 00010190 000101F4 00010280 00010320 000103E8 000104E2 00010640 000107D0 000109C4 00010C80 00010FA0\ +\ +\ +0006\ +01\ +00000000\ +00000000\ +00000000 01E00001\ +\ +\ +0004\ +01\ +0002\ +0000\ +0000 0001 0002 0003 0004 0005 0007 000A 000F 0014 0019 001E\ +\ +\ +0003\ +01\ +0000\ +0000\ +F448 F574 F704 F830 F97E FACB FC18 FD66 FEB3 0000 014D 029A 03E8 0535 0682 07D0 08FC 0A8C 0BB8\ +\ +\ +0004\ +01\ +0001\ +0001\ +0000 0001\ +\ +\ +0004\ +01\ +0001\ +0001\ +0000 0001\ +\ +\ +0004\ +01\ +0001\ +0001\ +0000 0001\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001 0002\ +\ +\ +0003\ +01\ +0000\ +0000\ +FFFE FFFF 0000 0001 0002\ +\ +\ +0004\ +01\ +FFFF\ +0000\ +FFFF 0000 0001\ +\ +\ +0004\ +01\ +0001\ +0000\ +0000 0010 0001 0100\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0001\ +\ +\ +0006\ +01\ +454E5500\ +454E5500\ +454E5500 46524100 44455500 45535000 49544100 4A504E00 4B4F5200 43485300 43485400 52555300 43535900 4E4C4400 44414E00 504C4B00 50544700 53564500 4E4F5200 46494E00 48525600 534C5600 48554E00 454C4C00 534B5900 54524B00 4C564900 45544900 4C544800 554B5200 53524200 42475200 524F4D00 494E4400 4D534C00 54484100\ +\ +\ +0004\ +01\ +0005\ +0005\ +0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F 0010 0011 0012 0013 0014 FFFF\ +\ +\ +0004\ +01\ +003C\ +003C\ +0000 003C 00B4 012C 0258\ +\ +\ +0004\ +01\ +0001\ +0002\ +0001 0002\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0001\ +\ +\ +0004\ +01\ +0000\ +0001\ +FC18 0000 0001 03E8\ +\ +\ +0004\ +01\ +014D\ +014D\ +03E8 014D\ +\ +\ +0003\ +01\ +0000\ +0000\ +FFF9 FFFA FFFB FFFC FFFD FFFE FFFF 0000 0001 0002 0003 0004 0005 0006 0007\ +\ +\ +0004\ +0000\ +0000\ +0000\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000\ +\ +\ +0004\ +01\ +0002\ +0002\ +0000 0001 0002 8001 8003 8101\ +\ +\ +0004\ +01\ +0002\ +0002\ +0002\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0001 0002\ +\ +\ +0004\ +01\ +0008\ +0008\ +0008 001E 003C FFFF\ +\ +\ +0004\ +01\ +0002\ +0002\ +0000 0001 0002 8001 8003\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0001\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001 0002 0003\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001 0002 0003 0004\ +\ +\ +0004\ +01\ +0002\ +0002\ +0002 0001\ +\ +\ +0004\ +01\ +0002\ +0002\ +0000 0001 0002 0003\ +\ +\ +0003\ +01\ +0000\ +0000\ +EC78 EDC6 EF13 F060 F1AE F2FB F448 F596 F6E3 F830 F97E FACB FC18 FD66 FEB3 0000 014D 029A 03E8 0535 0682 07D0 091D 0A6A 0BB8 0D05 0E52 0FA0 10ED 123A 1388\ +\ +\ +0006\ +01\ +00010001\ +00010001\ +00010001 000A000D 000A0010 00010002 000A0019 00010003 00010004 00010005 00010006 00010008 0001000A 0001000D 00010010 00010014 00010019 00010020 00010028 00010032 00010040 00010050 00010064 00010080\ +\ +\ +0003\ +01\ +FFFF\ +FFFF\ +FFFF 0000 0001\ +\ +\ +0004\ +01\ +0006\ +0006\ +0002 0004 0005 0006 0007 0008 000A\ +\ +\ +0004\ +01\ +0001\ +0001\ +0000 0001\ +\ +\ +0004\ +01\ +0003\ +0003\ +0001 0002 0003\ +\ +\ +0004\ +01\ +00C8\ +00C8\ +00C8 00FA 0140 0190 01F4 0280 0320 03E8 04E2 0640 07D0 09C4 0C80\ +\ +\ +0004\ +01\ +0320\ +0320\ +00C8 00FA 0140 0190 01F4 0280 0320 03E8 04E2 0640 07D0 09C4 0C80\ +\ +\ +0004\ +01\ +0008\ +0008\ +0001 0002 0004 0008 000F 0014 0019 001E\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001 0010\ +\ +\ +0004\ +01\ +015E\ +015E\ +0001 270F 0001\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0001\ +\ +\ +0004\ +01\ +0001\ +0001\ +0000 0001\ +\ +\ +0004\ +01\ +0000\ +0000\ +0011 0012 0013 0014 0021 0022 0023 0024 0031 0032 0033 0034 0000\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0303 0307 030A\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0314 0328 033C\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0314 0328 033C\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0303 0307 030A\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0303 0307 030A\ +\ +\ +0004\ +01\ +0000\ +0000\ +0000 0001\ +\ +\ +0004\ +01\ +0001\ +0001\ +0001 0002\ +\ +\ +0006\ +01\ +00040003\ +00040003\ +00040003 00030002 00100009 00060006\ +\ +\ +\ +\ +"); + parse_xml ("\n\n\n2001\n\n\n\n\n\n"); + + parse_xml ("200100000001\n"); + parse_xml ("2001000401017C0230017C 0190 01C2 01F4 0230 0276 02C6 0320 0384 03E8 044C 0514 0578 0640 0708 07D0 0898"); + parse_xml (" 2001 00000000 "); + parse_xml (""); + + ptp.Code = 0x1016; + ptp.Nparam = 1; + ptp.Param1 = 0x5007; + generate_xml(&ptp, "abcd", 4); + return; +} +#endif +/* 1014: + + + + */ +/* 1016 + +0230 + + + + +2001 + + + + + + + + +000A000D + + + +2001 + + + + + +*/ + +/* + + + + + + +2001 + + +64 + + + + + */ + +/* event: + +2001 + +*/ + +/* + + + +*/ + +/* 9302: + + + + + + +2001 + +0100 +224F0045003000360034003000300030003000300030003000300030002D00300030003000300031003000300039002D004700370033003500310039003500360033000000 224F004C003000300032003300300031003000300030003000300030002D00300030003000300031003300300035002D003200310033003000340033003600300037000000 + + + +*/ +/* 9301 + + + + + + +2001 + + + + + + + + + + + + + + + + + + + + + + + + + + +0002 +00 +00 +64 +01 64 01 + + +FFFF +01 +0A3400300033003200780033003000320034000000 +0A3400300033003200780033003000320034000000 +0A3400300033003200780033003000320034000000 + + +0004 +01 +017C +0230 +017C 0190 01C2 01F4 0230 0276 02C6 0320 0384 03E8 044C 0514 0578 0640 0708 07D0 0898 + + +0006 +00 +00002710 +00000D48 +00000AF0 000020D0 00000064 + + +0004 +01 +0002 +8001 +0001 0002 8001 + + +0004 +01 +8001 +8001 +0002 0004 8001 8011 8012 + + +0004 +01 +0001 +0001 +0001 0004 8003 8001 8002 0003 0002 9001 9004 9010 9040 + + +0004 +01 +0002 +0003 +FFFF 0001 0002 0003 0004 8001 8002 8003 8006 9006 9008 900A 900F 9011 9013 9014 + + +0004 +01 +FFFF +0190 +FFFF 0064 007D 00A0 00C8 00FA 0140 0190 01F4 0280 0320 03E8 04E2 0640 07D0 09C4 0C80 + + +0003 +01 +0000 +0000 +EC78 EDC6 EF13 F060 F1AE F2FB F448 F596 F6E3 F830 F97E FACB FC18 FD66 FEB3 0000 014D 029A 03E8 0535 0682 07D0 091D 0A6A 0BB8 0D05 0E52 0FA0 10ED 123A 1388 + + +0004 +01 +0001 +0001 +0001 0022 0012 + + +0002 +01 +00 +00 +FE FF 00 01 02 + + +0002 +01 +00 +00 +FE FF 00 01 02 + + +0004 +01 +0001 +0002 +0001 0001 0001 + + +0004 +01 +8100 +8100 +8100 8101 + + +0004 +01 +0102 +0020 +0020 0101 0102 0103 0104 0121 0122 0123 0124 + + +0004 +01 +0002 +0001 +0001 0002 + + +0004 +01 +0001 +0001 +0001 0002 0003 + + +0004 +01 +0001 +0003 +0001 0002 0003 + + +0004 +01 +014D +014D +03E8 01F4 014D + + +0004 +01 +0001 +0001 +0001 0002 8000 0004 + + +0004 +01 +0001 +0001 +0001 + + +0004 +01 +0BB8 +0BB8 +0BB8 0FA0 1194 14B4 157C 1770 19C8 1D4C + + +0003 +01 +0000 +0000 +FFF9 FFFA FFFB FFFC FFFD FFFE FFFF 0000 0001 0002 0003 0004 0005 0006 0007 + + +0004 +01 +0001 +0001 +0001 + + +0004 +01 +1518 +1518 +07D0 0802 0834 0866 0898 08CA 08FC 092E 0960 0992 09C4 09F6 0A28 0A5A 0A8C 0ABE 0AF0 0B54 0BB8 0C1C 0C80 0CE4 0D48 0DAC 0E10 0E74 0ED8 0F3C 0FA0 1068 1130 11F8 12C0 1388 1450 1518 15E0 16A8 1770 1838 1900 19C8 1A90 1B58 1CE8 1E78 2008 2198 2328 24B8 2648 2710 2AF8 2EE0 32C8 36B0 + + +0006 +01 +000100FA +000A000D +0258000A 01F4000A 0190000A 012C000A 00FA000A 00C8000A 0096000A 0082000A 0064000A 0050000A 003C000A 0032000A 0028000A 0020000A 0019000A 0014000A 0010000A 000D000A 000A000A 000A000D 000A0010 000A0014 000A0019 00010003 00010004 00010005 00010006 00010008 0001000A 0001000D 0001000F 00010014 00010019 0001001E 00010028 00010032 0001003C 00010050 00010064 0001007D 000100A0 000100C8 000100FA 00010140 00010190 000101F4 00010280 00010320 000103E8 000104E2 00010640 000107D0 000109C4 00010C80 00010FA0 + + +0006 +01 +00000000 +00000000 +00000000 01E00001 + + +0004 +01 +0002 +0000 +0000 0001 0002 0003 0004 0005 0007 000A 000F 0014 0019 001E + + +0003 +01 +0000 +0000 +F448 F574 F704 F830 F97E FACB FC18 FD66 FEB3 0000 014D 029A 03E8 0535 0682 07D0 08FC 0A8C 0BB8 + + +0004 +01 +0001 +0001 +0000 0001 + + +0004 +01 +0001 +0001 +0000 0001 + + +0004 +01 +0001 +0001 +0000 0001 + + +0004 +01 +0001 +0001 +0001 0002 + + +0003 +01 +0000 +0000 +FFFE FFFF 0000 0001 0002 + + +0004 +01 +FFFF +0000 +FFFF 0000 0001 + + +0004 +01 +0001 +0000 +0000 0010 0001 0100 + + +0004 +01 +0000 +0000 +0000 0001 + + +0006 +01 +454E5500 +454E5500 +454E5500 46524100 44455500 45535000 49544100 4A504E00 4B4F5200 43485300 43485400 52555300 43535900 4E4C4400 44414E00 504C4B00 50544700 53564500 4E4F5200 46494E00 48525600 534C5600 48554E00 454C4C00 534B5900 54524B00 4C564900 45544900 4C544800 554B5200 53524200 42475200 524F4D00 494E4400 4D534C00 54484100 + + +0004 +01 +0005 +0005 +0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F 0010 0011 0012 0013 0014 FFFF + + +0004 +01 +003C +003C +0000 003C 00B4 012C 0258 + + +0004 +01 +0001 +0002 +0001 0002 + + +0004 +01 +0000 +0000 +0000 0001 + + +0004 +01 +0000 +0001 +FC18 0000 0001 03E8 + + +0004 +01 +014D +014D +03E8 014D + + +0003 +01 +0000 +0000 +FFF9 FFFA FFFB FFFC FFFD FFFE FFFF 0000 0001 0002 0003 0004 0005 0006 0007 + + +0004 +0000 +0000 +0000 + + +0004 +01 +0000 +0000 +0000 + + +0004 +01 +0002 +0002 +0000 0001 0002 8001 8003 8101 + + +0004 +01 +0002 +0002 +0002 + + +0004 +01 +0000 +0000 +0000 0001 0002 + + +0004 +01 +0008 +0008 +0008 001E 003C FFFF + + +0004 +01 +0002 +0002 +0000 0001 0002 8001 8003 + + +0004 +01 +0000 +0000 +0000 0001 + + +0004 +01 +0001 +0001 +0001 0002 0003 + + +0004 +01 +0001 +0001 +0001 0002 0003 0004 + + +0004 +01 +0002 +0002 +0002 0001 + + +0004 +01 +0002 +0002 +0000 0001 0002 0003 + + +0003 +01 +0000 +0000 +EC78 EDC6 EF13 F060 F1AE F2FB F448 F596 F6E3 F830 F97E FACB FC18 FD66 FEB3 0000 014D 029A 03E8 0535 0682 07D0 091D 0A6A 0BB8 0D05 0E52 0FA0 10ED 123A 1388 + + +0006 +01 +00010001 +00010001 +00010001 000A000D 000A0010 00010002 000A0019 00010003 00010004 00010005 00010006 00010008 0001000A 0001000D 00010010 00010014 00010019 00010020 00010028 00010032 00010040 00010050 00010064 00010080 + + +0003 +01 +FFFF +FFFF +FFFF 0000 0001 + + +0004 +01 +0006 +0006 +0002 0004 0005 0006 0007 0008 000A + + +0004 +01 +0001 +0001 +0000 0001 + + +0004 +01 +0003 +0003 +0001 0002 0003 + + +0004 +01 +00C8 +00C8 +00C8 00FA 0140 0190 01F4 0280 0320 03E8 04E2 0640 07D0 09C4 0C80 + + +0004 +01 +0320 +0320 +00C8 00FA 0140 0190 01F4 0280 0320 03E8 04E2 0640 07D0 09C4 0C80 + + +0004 +01 +0008 +0008 +0001 0002 0004 0008 000F 0014 0019 001E + + +0004 +01 +0001 +0001 +0001 0010 + + +0004 +01 +015E +015E +0001 270F 0001 + + +0004 +01 +0000 +0000 +0000 0001 + + +0004 +01 +0001 +0001 +0000 0001 + + +0004 +01 +0000 +0000 +0011 0012 0013 0014 0021 0022 0023 0024 0031 0032 0033 0034 0000 + + +0004 +01 +0000 +0000 +0000 0303 0307 030A + + +0004 +01 +0000 +0000 +0000 0314 0328 033C + + +0004 +01 +0000 +0000 +0000 0314 0328 033C + + +0004 +01 +0000 +0000 +0000 0303 0307 030A + + +0004 +01 +0000 +0000 +0000 0303 0307 030A + + +0004 +01 +0000 +0000 +0000 0001 + + +0004 +01 +0001 +0001 +0001 0002 + + +0006 +01 +00040003 +00040003 +00040003 00030002 00100009 00060006 + + + + + + */ +/* 910a: GetCameraControlMode + + + + + + +2001 + +00000001 + + + + + */ +/* 1014: + + + + + + +2001 + + +0004 +01 +017C +0230 +017C 0190 01C2 01F4 0230 0276 02C6 0320 0384 03E8 044C 0514 0578 0640 0708 07D0 0898 + + + + + + */ +/* 1016 + +0230 + + + + +2001 + + + + + + + + +000A000D + + + +2001 + + + + + +*/ + +/* + + + + + + +2001 + + +64 + + + + + */ + +/* event: + + + + + + + + + + + + + + + + + + + +2001 + +*/ + +/* + + + + + + +2001 + + +00000000 + + + + +*/ + +/* + Looking at E-510 trace: + + D135: 16bit , 0002 + + D136: type 4 UINT16, attribute=01, default=0, value=0, enum=0,1 + + C102 - likely "propertychanged" or so + + + 9101 - 1 32bitparameter parameter, param1=3 + + C103 - 32bit parameter, value 1 + + 9101 - 32bit parameter, value 0 + + GetNumObjects 0x80000001, 0x3001, 0x1a000001 ... returns 1 + then retrieves 0x1a0000002 ... +*/ +/* E-620 traces: + + 9302 - initial command? + 9301 - getdeviceinfo style + + + + */ + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-bugs.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-bugs.h new file mode 100644 index 00000000..8005f81b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-bugs.h @@ -0,0 +1,50 @@ +/* ptp-bugs.h + * + * Copyright (C) 2005-2006 Hubert Figuiere + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + + +#ifndef __PTP_BUGS_H_ +#define __PTP_BUGS_H_ + +#include "device-flags.h" + +#define PTPBUG_DELETE_SENDS_EVENT DEVICE_FLAG_DELETE_SENDS_EVENT +#define PTP_CAP DEVICE_FLAG_CAPTURE +#define PTP_CAP_PREVIEW DEVICE_FLAG_CAPTURE_PREVIEW +#define PTP_NIKON_BROKEN_CAP DEVICE_FLAG_NIKON_BROKEN_CAPTURE +#define PTP_MTP_ZEN_BROKEN_HEADER DEVICE_FLAG_IGNORE_HEADER_ERRORS +#define PTP_NO_CAPTURE_COMPLETE DEVICE_FLAG_NO_CAPTURE_COMPLETE +#define PTP_OLYMPUS_XML DEVICE_FLAG_OLYMPUS_XML_WRAPPED +#define PTP_NIKON_1 DEVICE_FLAG_NIKON_1 +#define PTP_DONT_CLOSE_SESSION DEVICE_FLAG_DONT_CLOSE_SESSION + +#define DELETE_SENDS_EVENT(x) \ + ((x)->device_flags & (DEVICE_FLAG_DELETE_SENDS_EVENT)) +#define NIKON_BROKEN_CAP(x) \ + ((x)->device_flags & (DEVICE_FLAG_NIKON_BROKEN_CAPTURE)) +#define NIKON_1(x) \ + ((x)->device_flags & (DEVICE_FLAG_NIKON_1)) +#define DONT_CLOSE_SESSION(x) \ + ((x)->device_flags & (DEVICE_FLAG_DONT_CLOSE_SESSION)) +#define NO_CAPTURE_COMPLETE(x) \ + ((x)->device_flags & (DEVICE_FLAG_NO_CAPTURE_COMPLETE)) +#define MTP_ZEN_BROKEN_HEADER(x) \ + ((x)->device_flags & (DEVICE_FLAG_IGNORE_HEADER_ERRORS)) + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-pack.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-pack.c new file mode 100644 index 00000000..d2fc4fb9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-pack.c @@ -0,0 +1,3093 @@ +/* ptp-pack.c + * + * Copyright (C) 2001-2004 Mariusz Woloszyn + * Copyright (C) 2003-2019 Marcus Meissner + * Copyright (C) 2006-2008 Linus Walleij + * Copyright (C) 2007 Tero Saarni + * Copyright (C) 2009 Axel Waggershauser + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/* currently this file is included into ptp.c */ + +#ifdef HAVE_LIMITS_H +#include +#endif +#ifndef UINT_MAX +# define UINT_MAX 0xFFFFFFFF +#endif +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) +#include +#endif + +static inline uint16_t +htod16p (PTPParams *params, uint16_t var) +{ + return ((params->byteorder==PTP_DL_LE)?htole16(var):htobe16(var)); +} + +static inline uint32_t +htod32p (PTPParams *params, uint32_t var) +{ + return ((params->byteorder==PTP_DL_LE)?htole32(var):htobe32(var)); +} + +static inline void +htod16ap (PTPParams *params, unsigned char *a, uint16_t val) +{ + if (params->byteorder==PTP_DL_LE) + htole16a(a,val); + else + htobe16a(a,val); +} + +static inline void +htod32ap (PTPParams *params, unsigned char *a, uint32_t val) +{ + if (params->byteorder==PTP_DL_LE) + htole32a(a,val); + else + htobe32a(a,val); +} + +static inline void +htod64ap (PTPParams *params, unsigned char *a, uint64_t val) +{ + if (params->byteorder==PTP_DL_LE) + htole64a(a,val); + else + htobe64a(a,val); +} + +static inline uint16_t +dtoh16p (PTPParams *params, uint16_t var) +{ + return ((params->byteorder==PTP_DL_LE)?le16toh(var):be16toh(var)); +} + +static inline uint32_t +dtoh32p (PTPParams *params, uint32_t var) +{ + return ((params->byteorder==PTP_DL_LE)?le32toh(var):be32toh(var)); +} + +static inline uint64_t +dtoh64p (PTPParams *params, uint64_t var) +{ + return ((params->byteorder==PTP_DL_LE)?le64toh(var):be64toh(var)); +} + +static inline uint16_t +dtoh16ap (PTPParams *params, const unsigned char *a) +{ + return ((params->byteorder==PTP_DL_LE)?le16atoh(a):be16atoh(a)); +} + +static inline uint32_t +dtoh32ap (PTPParams *params, const unsigned char *a) +{ + return ((params->byteorder==PTP_DL_LE)?le32atoh(a):be32atoh(a)); +} + +static inline uint64_t +dtoh64ap (PTPParams *params, const unsigned char *a) +{ + return ((params->byteorder==PTP_DL_LE)?le64atoh(a):be64atoh(a)); +} + +#define htod8a(a,x) *(uint8_t*)(a) = x +#define htod16a(a,x) htod16ap(params,a,x) +#define htod32a(a,x) htod32ap(params,a,x) +#define htod64a(a,x) htod64ap(params,a,x) +#define htod16(x) htod16p(params,x) +#define htod32(x) htod32p(params,x) +#define htod64(x) htod64p(params,x) + +#define dtoh8a(x) (*(uint8_t*)(x)) +#define dtoh16a(a) dtoh16ap(params,a) +#define dtoh32a(a) dtoh32ap(params,a) +#define dtoh64a(a) dtoh64ap(params,a) +#define dtoh16(x) dtoh16p(params,x) +#define dtoh32(x) dtoh32p(params,x) +#define dtoh64(x) dtoh64p(params,x) + + +/* + * PTP strings ... if the size field is: + * size 0 : "empty string" ... we interpret that as NULL, return 1 + * size > 0: all other strings have a terminating \0, included in the length (not sure how conforming everyone is here) + * + * len - in ptp string characters currently + */ +static inline int +ptp_unpack_string(PTPParams *params, unsigned char* data, uint16_t offset, uint32_t total, uint8_t *len, char **retstr) +{ + uint8_t length; + uint16_t string[PTP_MAXSTRLEN+1]; + /* allow for UTF-8: max of 3 bytes per UCS-2 char, plus final null */ + char loclstr[PTP_MAXSTRLEN*3+1]; + size_t nconv, srclen, destlen; + char *src, *dest; + + *len = 0; + *retstr = NULL; + + if (offset + 1 > total) + return 0; + + length = dtoh8a(&data[offset]); /* PTP_MAXSTRLEN == 255, 8 bit len */ + if (length == 0) { /* nothing to do? */ + *len = 0; + return 1; + } + + if (offset + 1 + length*sizeof(string[0]) > total) + return 0; + + *len = length; + + /* copy to string[] to ensure correct alignment for iconv(3) */ + memcpy(string, &data[offset+1], length * sizeof(string[0])); + string[length] = 0x0000U; /* be paranoid! add a terminator. */ + loclstr[0] = '\0'; + + /* convert from camera UCS-2 to our locale */ + src = (char *)string; + srclen = length * sizeof(string[0]); + dest = loclstr; + destlen = sizeof(loclstr)-1; + nconv = (size_t)-1; +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + if (params->cd_ucs2_to_locale != (iconv_t)-1) + nconv = iconv(params->cd_ucs2_to_locale, &src, &srclen, &dest, &destlen); +#endif + if (nconv == (size_t) -1) { /* do it the hard way */ + int i; + /* try the old way, in case iconv is broken */ + for (i=0;i127) + loclstr[i] = '?'; + else + loclstr[i] = dtoh16a(&data[offset+1+2*i]); + } + dest = loclstr+length; + } + *dest = '\0'; + loclstr[sizeof(loclstr)-1] = '\0'; /* be safe? */ + *retstr = strdup(loclstr); + return 1; +} + +static inline int +ucs2strlen(uint16_t const * const unicstr) +{ + int length = 0; + + /* Unicode strings are terminated with 2 * 0x00 */ + for(length = 0; unicstr[length] != 0x0000U; length ++); + return length; +} + + +static inline void +ptp_pack_string(PTPParams *params, char *string, unsigned char* data, uint16_t offset, uint8_t *len) +{ + int packedlen = 0; + uint16_t ucs2str[PTP_MAXSTRLEN+1]; + char *ucs2strp = (char *) ucs2str; + size_t convlen = strlen(string); + + /* Cannot exceed 255 (PTP_MAXSTRLEN) since it is a single byte, duh ... */ + memset(ucs2strp, 0, sizeof(ucs2str)); /* XXX: necessary? */ +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + if (params->cd_locale_to_ucs2 != (iconv_t)-1) { + size_t nconv; + size_t convmax = PTP_MAXSTRLEN * 2; /* Includes the terminator */ + char *stringp = string; + + nconv = iconv(params->cd_locale_to_ucs2, &stringp, &convlen, + &ucs2strp, &convmax); + if (nconv == (size_t) -1) + ucs2str[0] = 0x0000U; + } else +#endif + { + unsigned int i; + + for (i=0;i PTP_MAXSTRLEN-1) { + *len=0; + return; + } + + /* number of characters including terminating 0 (PTP standard confirmed) */ + htod8a(&data[offset],packedlen+1); + memcpy(&data[offset+1], &ucs2str[0], packedlen * sizeof(ucs2str[0])); + htod16a(&data[offset+packedlen*2+1], 0x0000); /* terminate 0 */ + + /* The returned length is in number of characters */ + *len = (uint8_t) packedlen+1; +} + +static inline unsigned char * +ptp_get_packed_stringcopy(PTPParams *params, char *string, uint32_t *packed_size) +{ + uint8_t packed[PTP_MAXSTRLEN*2+3], len; + size_t plen; + unsigned char *retcopy = NULL; + + if (string == NULL) + ptp_pack_string(params, "", (unsigned char*) packed, 0, &len); + else + ptp_pack_string(params, string, (unsigned char*) packed, 0, &len); + + /* returned length is in characters, then one byte for string length */ + plen = len*2 + 1; + + retcopy = malloc(plen); + if (!retcopy) { + *packed_size = 0; + return NULL; + } + memcpy(retcopy, packed, plen); + *packed_size = plen; + return (retcopy); +} + +static inline uint32_t +ptp_unpack_uint32_t_array(PTPParams *params, unsigned char* data, unsigned int offset, unsigned int datalen, uint32_t **array) +{ + uint32_t n, i=0; + + if (!data) + return 0; + + if (offset >= datalen) + return 0; + + if (offset + sizeof(uint32_t) > datalen) + return 0; + + *array = NULL; + n=dtoh32a(&data[offset]); + if (n >= UINT_MAX/sizeof(uint32_t)) + return 0; + if (!n) + return 0; + + if (offset + sizeof(uint32_t)*(n+1) > datalen) { + ptp_debug (params ,"array runs over datalen bufferend (%d vs %d)", offset + sizeof(uint32_t)*(n+1) , datalen); + return 0; + } + + *array = malloc (n*sizeof(uint32_t)); + if (!*array) + return 0; + for (i=0;i= (UINT_MAX - offset - sizeof(uint32_t))/sizeof(uint16_t)) + return 0; + if (!n) + return 0; + if (offset + sizeof(uint32_t) > datalen) + return 0; + if (offset + sizeof(uint32_t)+sizeof(uint16_t)*n > datalen) { + ptp_debug (params ,"array runs over datalen bufferend (%d vs %d)", offset + sizeof(uint32_t)+n*sizeof(uint16_t) , datalen); + return 0; + } + *array = malloc (n*sizeof(uint16_t)); + if (!*array) + return 0; + for (i=0;iStandardVersion = dtoh16a(&data[PTP_di_StandardVersion]); + di->VendorExtensionID = + dtoh32a(&data[PTP_di_VendorExtensionID]); + di->VendorExtensionVersion = + dtoh16a(&data[PTP_di_VendorExtensionVersion]); + if (!ptp_unpack_string(params, data, + PTP_di_VendorExtensionDesc, + datalen, + &len, + &di->VendorExtensionDesc) + ) + return 0; + totallen=len*2+1; + if (datalen <= totallen + PTP_di_FunctionalMode + sizeof(uint16_t)) { + ptp_debug (params, "datalen %d <= totallen + PTP_di_FunctionalMode + sizeof(uint16_t) %d", datalen, totallen + PTP_di_FunctionalMode + sizeof(uint16_t)); + return 0; + } + di->FunctionalMode = + dtoh16a(&data[PTP_di_FunctionalMode+totallen]); + di->OperationsSupported_len = ptp_unpack_uint16_t_array(params, data, + PTP_di_OperationsSupported+totallen, + datalen, + &di->OperationsSupported); + totallen=totallen+di->OperationsSupported_len*sizeof(uint16_t)+sizeof(uint32_t); + if (datalen <= totallen+PTP_di_OperationsSupported) { + ptp_debug (params, "datalen %d <= totallen+PTP_di_OperationsSupported %d 1", datalen, totallen+PTP_di_OperationsSupported); + return 0; + } + di->EventsSupported_len = ptp_unpack_uint16_t_array(params, data, + PTP_di_OperationsSupported+totallen, + datalen, + &di->EventsSupported); + totallen=totallen+di->EventsSupported_len*sizeof(uint16_t)+sizeof(uint32_t); + if (datalen <= totallen+PTP_di_OperationsSupported) { + ptp_debug (params, "datalen %d <= totallen+PTP_di_OperationsSupported %d 2", datalen, totallen+PTP_di_OperationsSupported); + return 0; + } + di->DevicePropertiesSupported_len = + ptp_unpack_uint16_t_array(params, data, + PTP_di_OperationsSupported+totallen, + datalen, + &di->DevicePropertiesSupported); + totallen=totallen+di->DevicePropertiesSupported_len*sizeof(uint16_t)+sizeof(uint32_t); + if (datalen <= totallen+PTP_di_OperationsSupported) { + ptp_debug (params, "datalen %d <= totallen+PTP_di_OperationsSupported %d 3", datalen, totallen+PTP_di_OperationsSupported); + return 0; + } + di->CaptureFormats_len = ptp_unpack_uint16_t_array(params, data, + PTP_di_OperationsSupported+totallen, + datalen, + &di->CaptureFormats); + totallen=totallen+di->CaptureFormats_len*sizeof(uint16_t)+sizeof(uint32_t); + if (datalen <= totallen+PTP_di_OperationsSupported) { + ptp_debug (params, "datalen %d <= totallen+PTP_di_OperationsSupported %d 4", datalen, totallen+PTP_di_OperationsSupported); + return 0; + } + di->ImageFormats_len = ptp_unpack_uint16_t_array(params, data, + PTP_di_OperationsSupported+totallen, + datalen, + &di->ImageFormats); + totallen=totallen+di->ImageFormats_len*sizeof(uint16_t)+sizeof(uint32_t); + if (datalen <= totallen+PTP_di_OperationsSupported) { + ptp_debug (params, "datalen %d <= totallen+PTP_di_OperationsSupported %d 5", datalen, totallen+PTP_di_OperationsSupported); + return 0; + } + if (!ptp_unpack_string(params, data, + PTP_di_OperationsSupported+totallen, + datalen, + &len, + &di->Manufacturer) + ) + return 0; + totallen+=len*2+1; + /* be more relaxed ... as these are optional its ok if they are not here */ + if (datalen <= totallen+PTP_di_OperationsSupported) { + ptp_debug (params, "datalen %d <= totallen+PTP_di_OperationsSupported %d 6", datalen, totallen+PTP_di_OperationsSupported); + return 1; + } + if (!ptp_unpack_string(params, data, + PTP_di_OperationsSupported+totallen, + datalen, + &len, + &di->Model) + ) + return 1; + totallen+=len*2+1; + /* be more relaxed ... as these are optional its ok if they are not here */ + if (datalen <= totallen+PTP_di_OperationsSupported) { + ptp_debug (params, "datalen %d <= totallen+PTP_di_OperationsSupported %d 7", datalen, totallen+PTP_di_OperationsSupported); + return 1; + } + if (!ptp_unpack_string(params, data, + PTP_di_OperationsSupported+totallen, + datalen, + &len, + &di->DeviceVersion) + ) + return 1; + totallen+=len*2+1; + /* be more relaxed ... as these are optional its ok if they are not here */ + if (datalen <= totallen+PTP_di_OperationsSupported) { + ptp_debug (params, "datalen %d <= totallen+PTP_di_OperationsSupported %d 8", datalen, totallen+PTP_di_OperationsSupported); + return 1; + } + if (!ptp_unpack_string(params, data, + PTP_di_OperationsSupported+totallen, + datalen, + &len, + &di->SerialNumber) + ) + return 1; + return 1; +} + +inline static void +ptp_free_DI (PTPDeviceInfo *di) { + free (di->SerialNumber); + free (di->DeviceVersion); + free (di->Model); + free (di->Manufacturer); + free (di->ImageFormats); + free (di->CaptureFormats); + free (di->VendorExtensionDesc); + free (di->OperationsSupported); + free (di->EventsSupported); + free (di->DevicePropertiesSupported); + memset(di, 0, sizeof(*di)); +} + +/* EOS Device Info unpack */ +static inline int +ptp_unpack_EOS_DI (PTPParams *params, unsigned char* data, PTPCanonEOSDeviceInfo *di, unsigned int datalen) +{ + unsigned int totallen = 4; + + memset (di,0, sizeof(*di)); + if (datalen < 8) return 0; + + /* uint32_t struct len - ignore */ + di->EventsSupported_len = ptp_unpack_uint32_t_array(params, data, + totallen, datalen, &di->EventsSupported); + if (!di->EventsSupported) return 0; + totallen += di->EventsSupported_len*sizeof(uint32_t)+4; + if (totallen >= datalen) return 0; + + di->DevicePropertiesSupported_len = ptp_unpack_uint32_t_array(params, data, + totallen, datalen, &di->DevicePropertiesSupported); + if (!di->DevicePropertiesSupported) return 0; + totallen += di->DevicePropertiesSupported_len*sizeof(uint32_t)+4; + if (totallen >= datalen) return 0; + + di->unk_len = ptp_unpack_uint32_t_array(params, data, + totallen, datalen, &di->unk); + if (!di->unk) return 0; + totallen += di->unk_len*sizeof(uint32_t)+4; + return 1; +} + +static inline void +ptp_free_EOS_DI (PTPCanonEOSDeviceInfo *di) +{ + free (di->EventsSupported); + free (di->DevicePropertiesSupported); + free (di->unk); +} + +/* ObjectHandles array pack/unpack */ + +#define PTP_oh 0 + +static inline void +ptp_unpack_OH (PTPParams *params, unsigned char* data, PTPObjectHandles *oh, unsigned int len) +{ + if (len) { + oh->n = ptp_unpack_uint32_t_array(params, data, PTP_oh, len, &oh->Handler); + } else { + oh->n = 0; + oh->Handler = NULL; + } +} + +/* StoreIDs array pack/unpack */ + +#define PTP_sids 0 + +static inline void +ptp_unpack_SIDs (PTPParams *params, unsigned char* data, PTPStorageIDs *sids, unsigned int len) +{ + sids->n = 0; + sids->Storage = NULL; + + if (!data || !len) + return; + + sids->n = ptp_unpack_uint32_t_array(params, data, PTP_sids, len, &sids->Storage); +} + +/* StorageInfo pack/unpack */ + +#define PTP_si_StorageType 0 +#define PTP_si_FilesystemType 2 +#define PTP_si_AccessCapability 4 +#define PTP_si_MaxCapability 6 +#define PTP_si_FreeSpaceInBytes 14 +#define PTP_si_FreeSpaceInImages 22 +#define PTP_si_StorageDescription 26 + +static inline int +ptp_unpack_SI (PTPParams *params, unsigned char* data, PTPStorageInfo *si, unsigned int len) +{ + uint8_t storagedescriptionlen; + + if (len < 26) return 0; + si->StorageType=dtoh16a(&data[PTP_si_StorageType]); + si->FilesystemType=dtoh16a(&data[PTP_si_FilesystemType]); + si->AccessCapability=dtoh16a(&data[PTP_si_AccessCapability]); + si->MaxCapability=dtoh64a(&data[PTP_si_MaxCapability]); + si->FreeSpaceInBytes=dtoh64a(&data[PTP_si_FreeSpaceInBytes]); + si->FreeSpaceInImages=dtoh32a(&data[PTP_si_FreeSpaceInImages]); + + /* FIXME: check more lengths here */ + if (!ptp_unpack_string(params, data, + PTP_si_StorageDescription, + len, + &storagedescriptionlen, + &si->StorageDescription) + ) + return 0; + + if (!ptp_unpack_string(params, data, + PTP_si_StorageDescription+storagedescriptionlen*2+1, + len, + &storagedescriptionlen, + &si->VolumeLabel)) { + ptp_debug(params, "could not unpack storage description"); + return 0; + } + return 1; +} + +/* ObjectInfo pack/unpack */ + +#define PTP_oi_StorageID 0 +#define PTP_oi_ObjectFormat 4 +#define PTP_oi_ProtectionStatus 6 +#define PTP_oi_ObjectCompressedSize 8 +#define PTP_oi_ThumbFormat 12 +#define PTP_oi_ThumbCompressedSize 14 +#define PTP_oi_ThumbPixWidth 18 +#define PTP_oi_ThumbPixHeight 22 +#define PTP_oi_ImagePixWidth 26 +#define PTP_oi_ImagePixHeight 30 +#define PTP_oi_ImageBitDepth 34 +#define PTP_oi_ParentObject 38 +#define PTP_oi_AssociationType 42 +#define PTP_oi_AssociationDesc 44 +#define PTP_oi_SequenceNumber 48 +#define PTP_oi_filenamelen 52 +#define PTP_oi_Filename 53 + +/* the max length assuming zero length dates. We have need 3 */ +/* bytes for these. */ +#define PTP_oi_MaxLen PTP_oi_Filename+(PTP_MAXSTRLEN+1)*2+3 + +static inline uint32_t +ptp_pack_OI (PTPParams *params, PTPObjectInfo *oi, unsigned char** oidataptr) +{ + unsigned char* oidata; + uint8_t filenamelen; + uint8_t capturedatelen=0; + /* let's allocate some memory first; correct assuming zero length dates */ + oidata=malloc(PTP_oi_MaxLen + params->ocs64*4); + *oidataptr=oidata; + /* the caller should free it after use! */ +#if 0 + char *capture_date="20020101T010101"; /* XXX Fake date */ +#endif + memset (oidata, 0, PTP_oi_MaxLen + params->ocs64*4); + htod32a(&oidata[PTP_oi_StorageID],oi->StorageID); + htod16a(&oidata[PTP_oi_ObjectFormat],oi->ObjectFormat); + htod16a(&oidata[PTP_oi_ProtectionStatus],oi->ProtectionStatus); + htod32a(&oidata[PTP_oi_ObjectCompressedSize],oi->ObjectCompressedSize); + if (params->ocs64) + oidata += 4; + htod16a(&oidata[PTP_oi_ThumbFormat],oi->ThumbFormat); + htod32a(&oidata[PTP_oi_ThumbCompressedSize],oi->ThumbCompressedSize); + htod32a(&oidata[PTP_oi_ThumbPixWidth],oi->ThumbPixWidth); + htod32a(&oidata[PTP_oi_ThumbPixHeight],oi->ThumbPixHeight); + htod32a(&oidata[PTP_oi_ImagePixWidth],oi->ImagePixWidth); + htod32a(&oidata[PTP_oi_ImagePixHeight],oi->ImagePixHeight); + htod32a(&oidata[PTP_oi_ImageBitDepth],oi->ImageBitDepth); + htod32a(&oidata[PTP_oi_ParentObject],oi->ParentObject); + htod16a(&oidata[PTP_oi_AssociationType],oi->AssociationType); + htod32a(&oidata[PTP_oi_AssociationDesc],oi->AssociationDesc); + htod32a(&oidata[PTP_oi_SequenceNumber],oi->SequenceNumber); + + ptp_pack_string(params, oi->Filename, oidata, PTP_oi_filenamelen, &filenamelen); +/* + filenamelen=(uint8_t)strlen(oi->Filename); + htod8a(&req->data[PTP_oi_filenamelen],filenamelen+1); + for (i=0;idata[PTP_oi_Filename+i*2]=oi->Filename[i]; + } +*/ + /* + *XXX Fake date. + * for example Kodak sets Capture date on the basis of EXIF data. + * Spec says that this field is from perspective of Initiator. + */ +#if 0 /* seems now we don't need any data packed in OI dataset... for now ;)*/ + capturedatelen=strlen(capture_date); + htod8a(&data[PTP_oi_Filename+(filenamelen+1)*2], + capturedatelen+1); + for (i=0;iocs64*4; +} + +static time_t +ptp_unpack_PTPTIME (const char *str) { + char ptpdate[40]; + char tmp[5]; + size_t ptpdatelen; + struct tm tm; + + if (!str) + return 0; + ptpdatelen = strlen(str); + if (ptpdatelen >= sizeof (ptpdate)) { + /*ptp_debug (params ,"datelen is larger then size of buffer", ptpdatelen, (int)sizeof(ptpdate));*/ + return 0; + } + if (ptpdatelen<15) { + /*ptp_debug (params ,"datelen is less than 15 (%d)", ptpdatelen);*/ + return 0; + } + strncpy (ptpdate, str, sizeof(ptpdate)); + ptpdate[sizeof(ptpdate) - 1] = '\0'; + + memset(&tm,0,sizeof(tm)); + strncpy (tmp, ptpdate, 4); + tmp[4] = 0; + tm.tm_year=atoi (tmp) - 1900; + strncpy (tmp, ptpdate + 4, 2); + tmp[2] = 0; + tm.tm_mon = atoi (tmp) - 1; + strncpy (tmp, ptpdate + 6, 2); + tmp[2] = 0; + tm.tm_mday = atoi (tmp); + strncpy (tmp, ptpdate + 9, 2); + tmp[2] = 0; + tm.tm_hour = atoi (tmp); + strncpy (tmp, ptpdate + 11, 2); + tmp[2] = 0; + tm.tm_min = atoi (tmp); + strncpy (tmp, ptpdate + 13, 2); + tmp[2] = 0; + tm.tm_sec = atoi (tmp); + tm.tm_isdst = -1; + return mktime (&tm); +} + +static inline void +ptp_unpack_OI (PTPParams *params, unsigned char* data, PTPObjectInfo *oi, unsigned int len) +{ + uint8_t filenamelen; + uint8_t capturedatelen; + char *capture_date; + + if (len < PTP_oi_SequenceNumber) + return; + + oi->Filename = oi->Keywords = NULL; + + /* FIXME: also handle length with all the strings at the end */ + oi->StorageID=dtoh32a(&data[PTP_oi_StorageID]); + oi->ObjectFormat=dtoh16a(&data[PTP_oi_ObjectFormat]); + oi->ProtectionStatus=dtoh16a(&data[PTP_oi_ProtectionStatus]); + oi->ObjectCompressedSize=dtoh32a(&data[PTP_oi_ObjectCompressedSize]); + + /* Stupid Samsung Galaxy developers emit a 64bit objectcompressedsize */ + if ((data[PTP_oi_filenamelen] == 0) && (data[PTP_oi_filenamelen+4] != 0)) { + ptp_debug (params, "objectsize 64bit detected!"); + params->ocs64 = 1; + data += 4; + len -= 4; + } + oi->ThumbFormat=dtoh16a(&data[PTP_oi_ThumbFormat]); + oi->ThumbCompressedSize=dtoh32a(&data[PTP_oi_ThumbCompressedSize]); + oi->ThumbPixWidth=dtoh32a(&data[PTP_oi_ThumbPixWidth]); + oi->ThumbPixHeight=dtoh32a(&data[PTP_oi_ThumbPixHeight]); + oi->ImagePixWidth=dtoh32a(&data[PTP_oi_ImagePixWidth]); + oi->ImagePixHeight=dtoh32a(&data[PTP_oi_ImagePixHeight]); + oi->ImageBitDepth=dtoh32a(&data[PTP_oi_ImageBitDepth]); + oi->ParentObject=dtoh32a(&data[PTP_oi_ParentObject]); + oi->AssociationType=dtoh16a(&data[PTP_oi_AssociationType]); + oi->AssociationDesc=dtoh32a(&data[PTP_oi_AssociationDesc]); + oi->SequenceNumber=dtoh32a(&data[PTP_oi_SequenceNumber]); + + ptp_unpack_string(params, data, PTP_oi_filenamelen, len, &filenamelen, &oi->Filename); + ptp_unpack_string(params, data, PTP_oi_filenamelen+filenamelen*2+1, len, &capturedatelen, &capture_date); + /* subset of ISO 8601, without '.s' tenths of second and + * time zone + */ + oi->CaptureDate = ptp_unpack_PTPTIME(capture_date); + free(capture_date); + + /* now the modification date ... */ + ptp_unpack_string(params, data, + PTP_oi_filenamelen+filenamelen*2 + +capturedatelen*2+2, len, &capturedatelen, &capture_date + ); + oi->ModificationDate = ptp_unpack_PTPTIME(capture_date); + free(capture_date); +} + +/* Custom Type Value Assignement (without Length) macro frequently used below */ +#define CTVAL(target,func) { \ + if (total - *offset < sizeof(target)) \ + return 0; \ + target = func(&data[*offset]); \ + *offset += sizeof(target); \ +} + +#define RARR(val,member,func) { \ + unsigned int n,j; \ + if (total - *offset < sizeof(uint32_t)) \ + return 0; \ + n = dtoh32a (&data[*offset]); \ + *offset += sizeof(uint32_t); \ + \ + if (n >= UINT_MAX/sizeof(val->a.v[0])) \ + return 0; \ + if (n > (total - (*offset))/sizeof(val->a.v[0]))\ + return 0; \ + val->a.count = n; \ + val->a.v = malloc(sizeof(val->a.v[0])*n); \ + if (!val->a.v) return 0; \ + for (j=0;ja.v[j].member, func); \ +} + +static inline unsigned int +ptp_unpack_DPV ( + PTPParams *params, unsigned char* data, unsigned int *offset, unsigned int total, + PTPPropertyValue* value, uint16_t datatype +) { + if (*offset >= total) /* we are at the end or over the end of the buffer */ + return 0; + + switch (datatype) { + case PTP_DTC_INT8: + CTVAL(value->i8,dtoh8a); + break; + case PTP_DTC_UINT8: + CTVAL(value->u8,dtoh8a); + break; + case PTP_DTC_INT16: + CTVAL(value->i16,dtoh16a); + break; + case PTP_DTC_UINT16: + CTVAL(value->u16,dtoh16a); + break; + case PTP_DTC_INT32: + CTVAL(value->i32,dtoh32a); + break; + case PTP_DTC_UINT32: + CTVAL(value->u32,dtoh32a); + break; + case PTP_DTC_INT64: + CTVAL(value->i64,dtoh64a); + break; + case PTP_DTC_UINT64: + CTVAL(value->u64,dtoh64a); + break; + + case PTP_DTC_UINT128: + *offset += 16; + /*fprintf(stderr,"unhandled unpack of uint128n");*/ + break; + case PTP_DTC_INT128: + *offset += 16; + /*fprintf(stderr,"unhandled unpack of int128n");*/ + break; + + + + case PTP_DTC_AINT8: + RARR(value,i8,dtoh8a); + break; + case PTP_DTC_AUINT8: + RARR(value,u8,dtoh8a); + break; + case PTP_DTC_AUINT16: + RARR(value,u16,dtoh16a); + break; + case PTP_DTC_AINT16: + RARR(value,i16,dtoh16a); + break; + case PTP_DTC_AUINT32: + RARR(value,u32,dtoh32a); + break; + case PTP_DTC_AINT32: + RARR(value,i32,dtoh32a); + break; + case PTP_DTC_AUINT64: + RARR(value,u64,dtoh64a); + break; + case PTP_DTC_AINT64: + RARR(value,i64,dtoh64a); + break; + /* XXX: other int types are unimplemented */ + /* XXX: other int arrays are unimplemented also */ + case PTP_DTC_STR: { + uint8_t len; + /* XXX: max size */ + + if (*offset >= total+1) + return 0; + + if (!ptp_unpack_string(params,data,*offset,total,&len,&value->str)) + return 0; + *offset += len*2+1; + break; + } + default: + return 0; + } + return 1; +} + +/* Device Property pack/unpack */ +#define PTP_dpd_DevicePropertyCode 0 +#define PTP_dpd_DataType 2 +#define PTP_dpd_GetSet 4 +#define PTP_dpd_FactoryDefaultValue 5 + +static inline int +ptp_unpack_DPD (PTPParams *params, unsigned char* data, PTPDevicePropDesc *dpd, unsigned int dpdlen) +{ + unsigned int offset = 0, ret; + + memset (dpd, 0, sizeof(*dpd)); + if (dpdlen <= 5) + return 0; + dpd->DevicePropertyCode=dtoh16a(&data[PTP_dpd_DevicePropertyCode]); + dpd->DataType=dtoh16a(&data[PTP_dpd_DataType]); + dpd->GetSet=dtoh8a(&data[PTP_dpd_GetSet]); + dpd->FormFlag=PTP_DPFF_None; + + offset = PTP_dpd_FactoryDefaultValue; + ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->FactoryDefaultValue, dpd->DataType); + if (!ret) goto outofmemory; + if ((dpd->DataType == PTP_DTC_STR) && (offset == dpdlen)) + return 1; + ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->CurrentValue, dpd->DataType); + if (!ret) goto outofmemory; + + /* if offset==0 then Data Type format is not supported by this + code or the Data Type is a string (with two empty strings as + values). In both cases Form Flag should be set to 0x00 and FORM is + not present. */ + + if (offset + sizeof(uint8_t) > dpdlen) + return 1; + + dpd->FormFlag=dtoh8a(&data[offset]); + offset+=sizeof(uint8_t); + + switch (dpd->FormFlag) { + case PTP_DPFF_Range: + ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->FORM.Range.MinimumValue, dpd->DataType); + if (!ret) goto outofmemory; + ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->FORM.Range.MaximumValue, dpd->DataType); + if (!ret) goto outofmemory; + ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->FORM.Range.StepSize, dpd->DataType); + if (!ret) goto outofmemory; + break; + case PTP_DPFF_Enumeration: { + int i; +#define N dpd->FORM.Enum.NumberOfValues + + if (offset + sizeof(uint16_t) > dpdlen) goto outofmemory; + + N = dtoh16a(&data[offset]); + offset+=sizeof(uint16_t); + dpd->FORM.Enum.SupportedValue = malloc(N*sizeof(dpd->FORM.Enum.SupportedValue[0])); + if (!dpd->FORM.Enum.SupportedValue) + goto outofmemory; + + memset (dpd->FORM.Enum.SupportedValue,0 , N*sizeof(dpd->FORM.Enum.SupportedValue[0])); + for (i=0;iFORM.Enum.SupportedValue[i], dpd->DataType); + + /* Slightly different handling here. The HP PhotoSmart 120 + * specifies an enumeration with N in wrong endian + * 00 01 instead of 01 00, so we count the enum just until the + * the end of the packet. + */ + if (!ret) { + if (!i) + goto outofmemory; + dpd->FORM.Enum.NumberOfValues = i; + break; + } + } + } + } +#undef N + return 1; +outofmemory: + ptp_free_devicepropdesc(dpd); + return 0; +} + +/* Device Property pack/unpack */ +#define PTP_dpd_Sony_DevicePropertyCode 0 +#define PTP_dpd_Sony_DataType 2 +#define PTP_dpd_Sony_GetSet 4 +#define PTP_dpd_Sony_Unknown 5 +#define PTP_dpd_Sony_FactoryDefaultValue 6 + +static inline int +ptp_unpack_Sony_DPD (PTPParams *params, unsigned char* data, PTPDevicePropDesc *dpd, unsigned int dpdlen, unsigned int *poffset) +{ + unsigned int ret; +#if 0 + unsigned int unk1, unk2; +#endif + + memset (dpd, 0, sizeof(*dpd)); + dpd->DevicePropertyCode=dtoh16a(&data[PTP_dpd_Sony_DevicePropertyCode]); + dpd->DataType=dtoh16a(&data[PTP_dpd_Sony_DataType]); + +#if 0 + /* get set ? */ + unk1 = dtoh8a(&data[PTP_dpd_Sony_GetSet]); + unk2 = dtoh8a(&data[PTP_dpd_Sony_Unknown]); + ptp_debug (params, "prop 0x%04x, datatype 0x%04x, unk1 %d unk2 %d", dpd->DevicePropertyCode, dpd->DataType, unk1, unk2); +#endif + dpd->GetSet=1; + + dpd->FormFlag=PTP_DPFF_None; + + *poffset = PTP_dpd_Sony_FactoryDefaultValue; + ret = ptp_unpack_DPV (params, data, poffset, dpdlen, &dpd->FactoryDefaultValue, dpd->DataType); + if (!ret) goto outofmemory; + if ((dpd->DataType == PTP_DTC_STR) && (*poffset == dpdlen)) + return 1; + ret = ptp_unpack_DPV (params, data, poffset, dpdlen, &dpd->CurrentValue, dpd->DataType); + if (!ret) goto outofmemory; + + /* if offset==0 then Data Type format is not supported by this + code or the Data Type is a string (with two empty strings as + values). In both cases Form Flag should be set to 0x00 and FORM is + not present. */ + + if (*poffset==PTP_dpd_Sony_FactoryDefaultValue) + return 1; + + dpd->FormFlag=dtoh8a(&data[*poffset]); + *poffset+=sizeof(uint8_t); + + switch (dpd->FormFlag) { + case PTP_DPFF_Range: + ret = ptp_unpack_DPV (params, data, poffset, dpdlen, &dpd->FORM.Range.MinimumValue, dpd->DataType); + if (!ret) goto outofmemory; + ret = ptp_unpack_DPV (params, data, poffset, dpdlen, &dpd->FORM.Range.MaximumValue, dpd->DataType); + if (!ret) goto outofmemory; + ret = ptp_unpack_DPV (params, data, poffset, dpdlen, &dpd->FORM.Range.StepSize, dpd->DataType); + if (!ret) goto outofmemory; + break; + case PTP_DPFF_Enumeration: { + int i; +#define N dpd->FORM.Enum.NumberOfValues + N = dtoh16a(&data[*poffset]); + *poffset+=sizeof(uint16_t); + dpd->FORM.Enum.SupportedValue = malloc(N*sizeof(dpd->FORM.Enum.SupportedValue[0])); + if (!dpd->FORM.Enum.SupportedValue) + goto outofmemory; + + memset (dpd->FORM.Enum.SupportedValue,0 , N*sizeof(dpd->FORM.Enum.SupportedValue[0])); + for (i=0;iFORM.Enum.SupportedValue[i], dpd->DataType); + + /* Slightly different handling here. The HP PhotoSmart 120 + * specifies an enumeration with N in wrong endian + * 00 01 instead of 01 00, so we count the enum just until the + * the end of the packet. + */ + if (!ret) { + if (!i) + goto outofmemory; + dpd->FORM.Enum.NumberOfValues = i; + break; + } + } + } + } +#undef N + return 1; +outofmemory: + ptp_free_devicepropdesc(dpd); + return 0; +} + +static inline void +duplicate_PropertyValue (const PTPPropertyValue *src, PTPPropertyValue *dst, uint16_t type) { + if (type == PTP_DTC_STR) { + if (src->str) + dst->str = strdup(src->str); + else + dst->str = NULL; + return; + } + + if (type & PTP_DTC_ARRAY_MASK) { + unsigned int i; + + dst->a.count = src->a.count; + dst->a.v = malloc (sizeof(src->a.v[0])*src->a.count); + for (i=0;ia.count;i++) + duplicate_PropertyValue (&src->a.v[i], &dst->a.v[i], type & ~PTP_DTC_ARRAY_MASK); + return; + } + switch (type & ~PTP_DTC_ARRAY_MASK) { + case PTP_DTC_INT8: dst->i8 = src->i8; break; + case PTP_DTC_UINT8: dst->u8 = src->u8; break; + case PTP_DTC_INT16: dst->i16 = src->i16; break; + case PTP_DTC_UINT16: dst->u16 = src->u16; break; + case PTP_DTC_INT32: dst->i32 = src->i32; break; + case PTP_DTC_UINT32: dst->u32 = src->u32; break; + case PTP_DTC_UINT64: dst->u64 = src->u64; break; + case PTP_DTC_INT64: dst->i64 = src->i64; break; +#if 0 + case PTP_DTC_INT128: dst->i128 = src->i128; break; + case PTP_DTC_UINT128: dst->u128 = src->u128; break; +#endif + default: break; + } + return; +} + +static inline void +duplicate_DevicePropDesc(const PTPDevicePropDesc *src, PTPDevicePropDesc *dst) { + int i; + + dst->DevicePropertyCode = src->DevicePropertyCode; + dst->DataType = src->DataType; + dst->GetSet = src->GetSet; + + duplicate_PropertyValue (&src->FactoryDefaultValue, &dst->FactoryDefaultValue, src->DataType); + duplicate_PropertyValue (&src->CurrentValue, &dst->CurrentValue, src->DataType); + + dst->FormFlag = src->FormFlag; + switch (src->FormFlag) { + case PTP_DPFF_Range: + duplicate_PropertyValue (&src->FORM.Range.MinimumValue, &dst->FORM.Range.MinimumValue, src->DataType); + duplicate_PropertyValue (&src->FORM.Range.MaximumValue, &dst->FORM.Range.MaximumValue, src->DataType); + duplicate_PropertyValue (&src->FORM.Range.StepSize, &dst->FORM.Range.StepSize, src->DataType); + break; + case PTP_DPFF_Enumeration: + dst->FORM.Enum.NumberOfValues = src->FORM.Enum.NumberOfValues; + dst->FORM.Enum.SupportedValue = malloc (sizeof(dst->FORM.Enum.SupportedValue[0])*src->FORM.Enum.NumberOfValues); + for (i = 0; iFORM.Enum.NumberOfValues ; i++) + duplicate_PropertyValue (&src->FORM.Enum.SupportedValue[i], &dst->FORM.Enum.SupportedValue[i], src->DataType); + break; + case PTP_DPFF_None: + break; + } +} + +#define PTP_opd_ObjectPropertyCode 0 +#define PTP_opd_DataType 2 +#define PTP_opd_GetSet 4 +#define PTP_opd_FactoryDefaultValue 5 + +static inline int +ptp_unpack_OPD (PTPParams *params, unsigned char* data, PTPObjectPropDesc *opd, unsigned int opdlen) +{ + unsigned int offset=0, ret; + + memset (opd, 0, sizeof(*opd)); + + if (opdlen < 5) + return 0; + + opd->ObjectPropertyCode=dtoh16a(&data[PTP_opd_ObjectPropertyCode]); + opd->DataType=dtoh16a(&data[PTP_opd_DataType]); + opd->GetSet=dtoh8a(&data[PTP_opd_GetSet]); + + offset = PTP_opd_FactoryDefaultValue; + ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FactoryDefaultValue, opd->DataType); + if (!ret) goto outofmemory; + + if (offset + sizeof(uint32_t) > opdlen) goto outofmemory; + opd->GroupCode=dtoh32a(&data[offset]); + offset+=sizeof(uint32_t); + + if (offset + sizeof(uint8_t) > opdlen) goto outofmemory; + opd->FormFlag=dtoh8a(&data[offset]); + offset+=sizeof(uint8_t); + + switch (opd->FormFlag) { + case PTP_OPFF_Range: + ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Range.MinimumValue, opd->DataType); + if (!ret) goto outofmemory; + ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Range.MaximumValue, opd->DataType); + if (!ret) goto outofmemory; + ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Range.StepSize, opd->DataType); + if (!ret) goto outofmemory; + break; + case PTP_OPFF_Enumeration: { + unsigned int i; +#define N opd->FORM.Enum.NumberOfValues + + if (offset + sizeof(uint16_t) > opdlen) goto outofmemory; + N = dtoh16a(&data[offset]); + offset+=sizeof(uint16_t); + + opd->FORM.Enum.SupportedValue = malloc(N*sizeof(opd->FORM.Enum.SupportedValue[0])); + if (!opd->FORM.Enum.SupportedValue) + goto outofmemory; + + memset (opd->FORM.Enum.SupportedValue,0 , N*sizeof(opd->FORM.Enum.SupportedValue[0])); + for (i=0;iFORM.Enum.SupportedValue[i], opd->DataType); + + /* Slightly different handling here. The HP PhotoSmart 120 + * specifies an enumeration with N in wrong endian + * 00 01 instead of 01 00, so we count the enum just until the + * the end of the packet. + */ + if (!ret) { + if (!i) + goto outofmemory; + opd->FORM.Enum.NumberOfValues = i; + break; + } + } +#undef N + } + } + return 1; +outofmemory: + ptp_free_objectpropdesc(opd); + return 0; +} + + +static inline uint32_t +ptp_pack_DPV (PTPParams *params, PTPPropertyValue* value, unsigned char** dpvptr, uint16_t datatype) +{ + unsigned char* dpv=NULL; + uint32_t size=0; + unsigned int i; + + switch (datatype) { + case PTP_DTC_INT8: + size=sizeof(int8_t); + dpv=malloc(size); + htod8a(dpv,value->i8); + break; + case PTP_DTC_UINT8: + size=sizeof(uint8_t); + dpv=malloc(size); + htod8a(dpv,value->u8); + break; + case PTP_DTC_INT16: + size=sizeof(int16_t); + dpv=malloc(size); + htod16a(dpv,value->i16); + break; + case PTP_DTC_UINT16: + size=sizeof(uint16_t); + dpv=malloc(size); + htod16a(dpv,value->u16); + break; + case PTP_DTC_INT32: + size=sizeof(int32_t); + dpv=malloc(size); + htod32a(dpv,value->i32); + break; + case PTP_DTC_UINT32: + size=sizeof(uint32_t); + dpv=malloc(size); + htod32a(dpv,value->u32); + break; + case PTP_DTC_INT64: + size=sizeof(int64_t); + dpv=malloc(size); + htod64a(dpv,value->i64); + break; + case PTP_DTC_UINT64: + size=sizeof(uint64_t); + dpv=malloc(size); + htod64a(dpv,value->u64); + break; + case PTP_DTC_AUINT8: + size=sizeof(uint32_t)+value->a.count*sizeof(uint8_t); + dpv=malloc(size); + htod32a(dpv,value->a.count); + for (i=0;ia.count;i++) + htod8a(&dpv[sizeof(uint32_t)+i*sizeof(uint8_t)],value->a.v[i].u8); + break; + case PTP_DTC_AINT8: + size=sizeof(uint32_t)+value->a.count*sizeof(int8_t); + dpv=malloc(size); + htod32a(dpv,value->a.count); + for (i=0;ia.count;i++) + htod8a(&dpv[sizeof(uint32_t)+i*sizeof(int8_t)],value->a.v[i].i8); + break; + case PTP_DTC_AUINT16: + size=sizeof(uint32_t)+value->a.count*sizeof(uint16_t); + dpv=malloc(size); + htod32a(dpv,value->a.count); + for (i=0;ia.count;i++) + htod16a(&dpv[sizeof(uint32_t)+i*sizeof(uint16_t)],value->a.v[i].u16); + break; + case PTP_DTC_AINT16: + size=sizeof(uint32_t)+value->a.count*sizeof(int16_t); + dpv=malloc(size); + htod32a(dpv,value->a.count); + for (i=0;ia.count;i++) + htod16a(&dpv[sizeof(uint32_t)+i*sizeof(int16_t)],value->a.v[i].i16); + break; + case PTP_DTC_AUINT32: + size=sizeof(uint32_t)+value->a.count*sizeof(uint32_t); + dpv=malloc(size); + htod32a(dpv,value->a.count); + for (i=0;ia.count;i++) + htod32a(&dpv[sizeof(uint32_t)+i*sizeof(uint32_t)],value->a.v[i].u32); + break; + case PTP_DTC_AINT32: + size=sizeof(uint32_t)+value->a.count*sizeof(int32_t); + dpv=malloc(size); + htod32a(dpv,value->a.count); + for (i=0;ia.count;i++) + htod32a(&dpv[sizeof(uint32_t)+i*sizeof(int32_t)],value->a.v[i].i32); + break; + case PTP_DTC_AUINT64: + size=sizeof(uint32_t)+value->a.count*sizeof(uint64_t); + dpv=malloc(size); + htod32a(dpv,value->a.count); + for (i=0;ia.count;i++) + htod64a(&dpv[sizeof(uint32_t)+i*sizeof(uint64_t)],value->a.v[i].u64); + break; + case PTP_DTC_AINT64: + size=sizeof(uint32_t)+value->a.count*sizeof(int64_t); + dpv=malloc(size); + htod32a(dpv,value->a.count); + for (i=0;ia.count;i++) + htod64a(&dpv[sizeof(uint32_t)+i*sizeof(int64_t)],value->a.v[i].i64); + break; + /* XXX: other int types are unimplemented */ + case PTP_DTC_STR: { + dpv=ptp_get_packed_stringcopy(params, value->str, &size); + break; + } + } + *dpvptr=dpv; + return size; +} + +#define MAX_MTP_PROPS 127 +static inline uint32_t +ptp_pack_OPL (PTPParams *params, MTPProperties *props, int nrofprops, unsigned char** opldataptr) +{ + unsigned char* opldata; + MTPProperties *propitr; + unsigned char *packedprops[MAX_MTP_PROPS]; + uint32_t packedpropslens[MAX_MTP_PROPS]; + uint32_t packedobjecthandles[MAX_MTP_PROPS]; + uint16_t packedpropsids[MAX_MTP_PROPS]; + uint16_t packedpropstypes[MAX_MTP_PROPS]; + uint32_t totalsize = 0; + uint32_t bufp = 0; + uint32_t noitems = 0; + uint32_t i; + + totalsize = sizeof(uint32_t); /* 4 bytes to store the number of elements */ + propitr = props; + while (nrofprops-- && noitems < MAX_MTP_PROPS) { + /* Object Handle */ + packedobjecthandles[noitems]=propitr->ObjectHandle; + totalsize += sizeof(uint32_t); /* Object ID */ + /* Metadata type */ + packedpropsids[noitems]=propitr->property; + totalsize += sizeof(uint16_t); + /* Data type */ + packedpropstypes[noitems]= propitr->datatype; + totalsize += sizeof(uint16_t); + /* Add each property to be sent. */ + packedpropslens[noitems] = ptp_pack_DPV (params, &propitr->propval, &packedprops[noitems], propitr->datatype); + totalsize += packedpropslens[noitems]; + noitems ++; + propitr ++; + } + + /* Allocate memory for the packed property list */ + opldata = malloc(totalsize); + + htod32a(&opldata[bufp],noitems); + bufp += 4; + + /* Copy into a nice packed list */ + for (i = 0; i < noitems; i++) { + /* Object ID */ + htod32a(&opldata[bufp],packedobjecthandles[i]); + bufp += sizeof(uint32_t); + htod16a(&opldata[bufp],packedpropsids[i]); + bufp += sizeof(uint16_t); + htod16a(&opldata[bufp],packedpropstypes[i]); + bufp += sizeof(uint16_t); + /* The copy the actual property */ + memcpy(&opldata[bufp], packedprops[i], packedpropslens[i]); + bufp += packedpropslens[i]; + free(packedprops[i]); + } + *opldataptr = opldata; + return totalsize; +} + +static int +_compare_func(const void* x, const void *y) { + const MTPProperties *px = x; + const MTPProperties *py = y; + + return px->ObjectHandle - py->ObjectHandle; +} + +static inline int +ptp_unpack_OPL (PTPParams *params, unsigned char* data, MTPProperties **pprops, unsigned int len) +{ + uint32_t prop_count; + MTPProperties *props = NULL; + unsigned int offset = 0, i; + + if (len < sizeof(uint32_t)) { + ptp_debug (params ,"must have at least 4 bytes data, not %d", len); + return 0; + } + + prop_count = dtoh32a(data); + *pprops = NULL; + if (prop_count == 0) + return 0; + + if (prop_count >= INT_MAX/sizeof(MTPProperties)) { + ptp_debug (params ,"prop_count %d is too large", prop_count); + return 0; + } + ptp_debug (params ,"Unpacking MTP OPL, size %d (prop_count %d)", len, prop_count); + + data += sizeof(uint32_t); + len -= sizeof(uint32_t); + props = malloc(prop_count * sizeof(MTPProperties)); + if (!props) return 0; + for (i = 0; i < prop_count; i++) { + if (len <= (sizeof(uint32_t) + sizeof(uint16_t) + sizeof(uint16_t))) { + ptp_debug (params ,"short MTP Object Property List at property %d (of %d)", i, prop_count); + ptp_debug (params ,"device probably needs DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL"); + ptp_debug (params ,"or even DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST", i); + qsort (props, i, sizeof(MTPProperties),_compare_func); + *pprops = props; + return i; + } + + + props[i].ObjectHandle = dtoh32a(data); + data += sizeof(uint32_t); + len -= sizeof(uint32_t); + + props[i].property = dtoh16a(data); + data += sizeof(uint16_t); + len -= sizeof(uint16_t); + + props[i].datatype = dtoh16a(data); + data += sizeof(uint16_t); + len -= sizeof(uint16_t); + + offset = 0; + if (!ptp_unpack_DPV(params, data, &offset, len, &props[i].propval, props[i].datatype)) { + ptp_debug (params ,"unpacking DPV of property %d encountered insufficient buffer. attack?", i); + qsort (props, i, sizeof(MTPProperties),_compare_func); + *pprops = props; + return i; + } + data += offset; + len -= offset; + } + qsort (props, prop_count, sizeof(MTPProperties),_compare_func); + *pprops = props; + return prop_count; +} + +/* + PTP USB Event container unpack + Copyright (c) 2003 Nikolai Kopanygin +*/ + +#define PTP_ec_Length 0 +#define PTP_ec_Type 4 +#define PTP_ec_Code 6 +#define PTP_ec_TransId 8 +#define PTP_ec_Param1 12 +#define PTP_ec_Param2 16 +#define PTP_ec_Param3 20 + +static inline void +ptp_unpack_EC (PTPParams *params, unsigned char* data, PTPContainer *ec, unsigned int len) +{ + unsigned int length; + int type; + + if (data==NULL) + return; + memset(ec,0,sizeof(*ec)); + + length=dtoh32a(&data[PTP_ec_Length]); + if (length > len) { + ptp_debug (params, "length %d in container, but data only %d bytes?!", length, len); + return; + } + type = dtoh16a(&data[PTP_ec_Type]); + + ec->Code=dtoh16a(&data[PTP_ec_Code]); + ec->Transaction_ID=dtoh32a(&data[PTP_ec_TransId]); + + if (type!=PTP_USB_CONTAINER_EVENT) { + ptp_debug (params, "Unknown canon event type %d (code=%x,tid=%x), please report!",type,ec->Code,ec->Transaction_ID); + return; + } + if (length>=(PTP_ec_Param1+4)) { + ec->Param1=dtoh32a(&data[PTP_ec_Param1]); + ec->Nparam=1; + } + if (length>=(PTP_ec_Param2+4)) { + ec->Param2=dtoh32a(&data[PTP_ec_Param2]); + ec->Nparam=2; + } + if (length>=(PTP_ec_Param3+4)) { + ec->Param3=dtoh32a(&data[PTP_ec_Param3]); + ec->Nparam=3; + } +} + +/* + PTP Canon Folder Entry unpack + Copyright (c) 2003 Nikolai Kopanygin +*/ +#define PTP_cfe_ObjectHandle 0 +#define PTP_cfe_ObjectFormatCode 4 +#define PTP_cfe_Flags 6 +#define PTP_cfe_ObjectSize 7 +#define PTP_cfe_Time 11 +#define PTP_cfe_Filename 15 + +static inline void +ptp_unpack_Canon_FE (PTPParams *params, unsigned char* data, PTPCANONFolderEntry *fe) +{ + int i; + if (data==NULL) + return; + fe->ObjectHandle=dtoh32a(&data[PTP_cfe_ObjectHandle]); + fe->ObjectFormatCode=dtoh16a(&data[PTP_cfe_ObjectFormatCode]); + fe->Flags=dtoh8a(&data[PTP_cfe_Flags]); + fe->ObjectSize=dtoh32a((unsigned char*)&data[PTP_cfe_ObjectSize]); + fe->Time=(time_t)dtoh32a(&data[PTP_cfe_Time]); + for (i=0; iFilename[i]=(char)dtoh8a(&data[PTP_cfe_Filename+i]); +} + +/* + PTP Canon EOS Folder Entry unpack +0: 00 00 08 a0 objectid +4: 01 00 02 00 storageid +8: 01 30 00 00 ofc +12: 01 00 +14: 00 00 +16: 11 00 00 00 +20: 00 00 00 00 +24: 00 00 00 80 +28: 00 00 08 a0 +32: 4d 49 53 43-00 00 00 00 00 00 00 00 name +00 00 00 00 +84 bc 74 46 objectime + + +(normal PTP GetObjectInfo) +ObjectInfo for 'IMG_0199.JPG': + Object ID: 0x92740c72 + StorageID: 0x00020001 + ObjectFormat: 0x3801 + ProtectionStatus: 0x0000 + ObjectCompressedSize: 2217241 + ThumbFormat: 0x3808 + ThumbCompressedSize: 5122 + ThumbPixWidth: 160 + ThumbPixHeight: 120 + ImagePixWidth: 4000 + ImagePixHeight: 3000 + ImageBitDepth: 24 + ParentObject: 0x92740000 + AssociationType: 0x0000 + AssociationDesc: 0x00000000 + SequenceNumber: 0x00000000 + ModificationDate: 0x4d985ff0 + CaptureDate: 0x4d985ff0 + +0010 38 00 00 00 Size of this entry +0014 72 0c 74 92 OID +0018 01 00 02 00 StorageID +001c 01 38 00 00 OFC +0020 00 00 00 00 ?? +0024 21 00 00 00 flags (4 bytes? 1 byte?) +0028 19 d5 21 00 Size +002c 00 00 74 92 ? +0030 70 0c 74 92 OID +0034 49 4d 47 5f-30 31 39 39 2e 4a 50 47 IMG_0199.JPG +0040 00 00 00 00 +0044 10 7c 98 4d Time + + +*/ +#define PTP_cefe_ObjectHandle 0 +#define PTP_cefe_StorageID 4 +#define PTP_cefe_ObjectFormatCode 8 +#define PTP_cefe_Flags 16 +#define PTP_cefe_ObjectSize 20 +#define PTP_cefe_Filename 32 +#define PTP_cefe_Time 48 + +static inline void +ptp_unpack_Canon_EOS_FE (PTPParams *params, unsigned char* data, unsigned int size, PTPCANONFolderEntry *fe) +{ + int i; + + if (size < PTP_cefe_Time + 4) return; + + fe->ObjectHandle=dtoh32a(&data[PTP_cefe_ObjectHandle]); + fe->ObjectFormatCode=dtoh16a(&data[PTP_cefe_ObjectFormatCode]); + fe->Flags=dtoh8a(&data[PTP_cefe_Flags]); + fe->ObjectSize=dtoh32a((unsigned char*)&data[PTP_cefe_ObjectSize]); + fe->Time=(time_t)dtoh32a(&data[PTP_cefe_Time]); + for (i=0; iFilename[i]=(char)data[PTP_cefe_Filename+i]; + fe->Filename[PTP_CANON_FilenameBufferLen-1] = 0; +} + + +static inline uint16_t +ptp_unpack_EOS_ImageFormat (PTPParams* params, unsigned char** data ) +{ + /* + EOS ImageFormat entries (of at least the 5DM2 and the 400D) look like this: + uint32: number of entries / generated files (1 or 2) + uint32: size of this entry in bytes (most likely allways 0x10) + uint32: image type (1 == JPG, 6 == RAW) + uint32: image size (0 == Large, 1 == Medium, 2 == Small, 0xe == S1, 0xf == S2, 0x10 == S3) + uint32: image compression (2 == Standard/JPG, 3 == Fine/JPG, 4 == Lossles/RAW) + If the number of entries is 2 the last 4 uint32 repeat. + + example: + 0: 0x 1 + 1: 0x 10 + 2: 0x 6 + 3: 0x 1 + 4: 0x 4 + + The idea is to simply 'condense' these values to just one uint16 to be able to conveniently + use the available enumeration facilities (look-up table). The image size and compression + values used to fully describe the image format, but at least since EOS M50 (with cRAW) + it is no longer true - we need to store RAW flag (8). + Hence we generate a uint16 with the four nibles set as follows: + + entry 1 size | entry 1 compression & RAW flag | entry 2 size | entry 2 compression & RAW flag. + + The above example would result in the value 0x1400. + + The EOS 5D Mark III (and possibly other high-end EOS as well) added the extra fancy S1, S2 + and S3 JPEG options. S1 replaces the old Small. -1 the S1/S2/S3 to prevent the 0x10 overflow. + */ + + const unsigned char* d = *data; + uint32_t n = dtoh32a( d ); + uint32_t l, t1, s1, c1, t2 = 0, s2 = 0, c2 = 0; + + if (n != 1 && n !=2) { + ptp_debug (params, "parsing EOS ImageFormat property failed (n != 1 && n != 2: %d)", n); + return 0; + } + + l = dtoh32a( d+=4 ); + if (l != 0x10) { + ptp_debug (params, "parsing EOS ImageFormat property failed (l != 0x10: 0x%x)", l); + return 0; + } + + t1 = dtoh32a( d+=4 ); + s1 = dtoh32a( d+=4 ); + c1 = dtoh32a( d+=4 ); + + if (n == 2) { + l = dtoh32a( d+=4 ); + if (l != 0x10) { + ptp_debug (params, "parsing EOS ImageFormat property failed (l != 0x10: 0x%x)", l); + return 0; + } + t2 = dtoh32a( d+=4 ); + s2 = dtoh32a( d+=4 ); + c2 = dtoh32a( d+=4 ); + } + + *data = (unsigned char*) d+4; + + /* deal with S1/S2/S3 JPEG sizes, see above. */ + if( s1 >= 0xe ) + s1--; + if( s2 >= 0xe ) + s2--; + + /* encode RAW flag */ + c1 |= (t1 == 6) ? 8 : 0; + c2 |= (t2 == 6) ? 8 : 0; + + return ((s1 & 0xF) << 12) | ((c1 & 0xF) << 8) | ((s2 & 0xF) << 4) | ((c2 & 0xF) << 0); +} + +static inline uint32_t +ptp_pack_EOS_ImageFormat (PTPParams* params, unsigned char* data, uint16_t value) +{ + uint32_t n = (value & 0xFF) ? 2 : 1; + uint32_t s = 4 + 0x10 * n; + + if( !data ) + return s; + +#define PACK_5DM3_SMALL_JPEG_SIZE( X ) (X) >= 0xd ? (X)+1 : (X) + + htod32a(data+=0, n); + htod32a(data+=4, 0x10); + htod32a(data+=4, (((value >> 8) & 0xF) >> 3) ? 6 : 1); + htod32a(data+=4, PACK_5DM3_SMALL_JPEG_SIZE((value >> 12) & 0xF)); + htod32a(data+=4, ((value >> 8) & 0xF) & ~8); + + if (n==2) { + htod32a(data+=4, 0x10); + htod32a(data+=4, (((value >> 0) & 0xF) >> 3) ? 6 : 1); + htod32a(data+=4, PACK_5DM3_SMALL_JPEG_SIZE((value >> 4) & 0xF)); + htod32a(data+=4, ((value >> 0) & 0xF) & ~8); + } + +#undef PACK_5DM3_SMALL_JPEG_SIZE + + return s; +} + +/* 00: 32 bit size + * 04: 16 bit subsize + * 08: 16 bit version (?) + * 0c: 16 bit focus_points_in_struct + * 10: 16 bit focus_points_in_use + * 14: variable arrays: + * 16 bit sizex, 16 bit sizey + * 16 bit othersizex, 16 bit othersizey + * 16 bit array height[focus_points_in_struct] + * 16 bit array width[focus_points_in_struct] + * 16 bit array offsetheight[focus_points_in_struct] middle is 0 + * 16 bit array offsetwidth[focus_points_in_struct] middle is ? + * bitfield of selected focus points, starting with 0 [size focus_points_in_struct in bits] + * unknown stuff , likely which are active + * 16 bit 0xffff + * + * size=NxN,size2=NxN,points={NxNxNxN,NxNxNxN,...},selected={0,1,2} + */ +static inline char* +ptp_unpack_EOS_FocusInfoEx (PTPParams* params, unsigned char** data, uint32_t datasize ) +{ + uint32_t size = dtoh32a( *data ); + uint32_t halfsize = dtoh16a( (*data) + 4); + uint32_t version = dtoh16a( (*data) + 6); + uint32_t focus_points_in_struct = dtoh16a( (*data) + 8); + uint32_t focus_points_in_use = dtoh16a( (*data) + 10); + uint32_t sizeX = dtoh16a( (*data) + 12); + uint32_t sizeY = dtoh16a( (*data) + 14); + uint32_t size2X = dtoh16a( (*data) + 16); + uint32_t size2Y = dtoh16a( (*data) + 18); + uint32_t i; + uint32_t maxlen; + char *str, *p; + + if ((size >= datasize) || (size < 20)) + return strdup("bad size 1"); + /* If data is zero-filled, then it is just a placeholder, so nothing + useful, but also not an error */ + if (!focus_points_in_struct || !focus_points_in_use) { + ptp_debug(params, "skipped FocusInfoEx data (zero filled)"); + return strdup("no focus points returned by camera"); + } + + /* every focuspoint gets 4 (16 bit number possible "-" sign and a x) and a ,*/ + /* inital things around lets say 100 chars at most. + * FIXME: check selected when we decode it + */ + if (size < focus_points_in_struct*8) { + ptp_error(params, "focus_points_in_struct %d is too large vs size %d", focus_points_in_struct, size); + return strdup("bad size 2"); + } + if (focus_points_in_use > focus_points_in_struct) { + ptp_error(params, "focus_points_in_use %d is larger than focus_points_in_struct %d", focus_points_in_use, focus_points_in_struct); + return strdup("bad size 3"); + } + + maxlen = focus_points_in_use*32 + 100 + (size - focus_points_in_struct*8)*2; + if (halfsize != size-4) { + ptp_error(params, "halfsize %d is not expected %d", halfsize, size-4); + return strdup("bad size 4"); + } + if (20 + focus_points_in_struct*8 + (focus_points_in_struct+7)/8 > size) { + ptp_error(params, "size %d is too large for fp in struct %d", focus_points_in_struct*8 + 20 + (focus_points_in_struct+7)/8, size); + return strdup("bad size 5"); + } +#if 0 + ptp_debug(params,"d1d3 content:"); + for (i=0;i maxlen - 4) + break; + p+=sprintf(p,"%02x", (*data)[i]); + } + p += sprintf(p,"}"); + return str; +} + + +static inline char* +ptp_unpack_EOS_CustomFuncEx (PTPParams* params, unsigned char** data ) +{ + uint32_t s = dtoh32a( *data ); + uint32_t n = s/4, i; + char *str, *p; + + if (s > 1024) { + ptp_debug (params, "customfuncex data is larger than 1k / %d... unexpected?", s); + return strdup("bad length"); + } + str = (char*)malloc( s*2+s/4+1 ); /* n is size in uint32, maximum %x len is 8 chars and \0*/ + if (!str) + return strdup("malloc failed"); + + p = str; + for (i=0; i < n; ++i) + p += sprintf(p, "%x,", dtoh32a( *data + 4*i )); + return str; +} + +static inline uint32_t +ptp_pack_EOS_CustomFuncEx (PTPParams* params, unsigned char* data, char* str) +{ + uint32_t s = strtoul(str, NULL, 16); + uint32_t n = s/4, i, v; + + if (!data) + return s; + + for (i=0; inrofcanon_props;j++) + if (params->canon_props[j].proptype == proptype) + break; + if (jnrofcanon_props) + return ¶ms->canon_props[j].dpd; + + if (j) + params->canon_props = realloc(params->canon_props, sizeof(params->canon_props[0])*(j+1)); + else + params->canon_props = malloc(sizeof(params->canon_props[0])); + params->canon_props[j].proptype = proptype; + params->canon_props[j].size = 0; + params->canon_props[j].data = NULL; + memset (¶ms->canon_props[j].dpd,0,sizeof(params->canon_props[j].dpd)); + params->canon_props[j].dpd.GetSet = 1; + params->canon_props[j].dpd.FormFlag = PTP_DPFF_None; + params->nrofcanon_props = j+1; + return ¶ms->canon_props[j].dpd; +} + + +static inline int +ptp_unpack_CANON_changes (PTPParams *params, unsigned char* data, int datasize, PTPCanon_changes_entry **pce) +{ + int i = 0, entries = 0; + unsigned char *curdata = data; + PTPCanon_changes_entry *ce; + + if (data==NULL) + return 0; + while (curdata - data + 8 < datasize) { + uint32_t size = dtoh32a(&curdata[PTP_ece_Size]); + uint32_t type = dtoh32a(&curdata[PTP_ece_Type]); + + if (size > datasize) { + ptp_debug (params, "size %d is larger than datasize %d", size, datasize); + break; + } + if (size < 8) { + ptp_debug (params, "size %d is smaller than 8.", size); + break; + } + if ((size == 8) && (type == 0)) + break; + if ((curdata - data) + size >= datasize) { + ptp_debug (params, "canon eos event decoder ran over supplied data, skipping entries"); + break; + } + if (type == PTP_EC_CANON_EOS_OLCInfoChanged) { + unsigned int j; + + entries++; + if (size >= 12+2) { + for (j=0;j<31;j++) + if (dtoh16a(curdata+12) & (1< datasize) { + ptp_debug (params, "size %d is larger than datasize %d", size, datasize); + break; + } + if (size < 8) { + ptp_debug (params, "size %d is smaller than 8", size); + break; + } + + if ((size == 8) && (type == 0)) + break; + + if ((curdata - data) + size >= datasize) { + ptp_debug (params, "canon eos event decoder ran over supplied data, skipping entries"); + break; + } + + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; + ce[i].u.info = NULL; + switch (type) { + case PTP_EC_CANON_EOS_ObjectContentChanged: + if (size < PTP_ece_OA_ObjectID+1) { + ptp_debug (params, "size %d is smaller than %d", size, PTP_ece_OA_ObjectID+1); + break; + } + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_OBJECTCONTENT_CHANGE; + ce[i].u.object.oid = dtoh32a(&curdata[PTP_ece_OA_ObjectID]); + break; + case PTP_EC_CANON_EOS_ObjectInfoChangedEx: + case PTP_EC_CANON_EOS_ObjectAddedEx: + if (size < PTP_ece_OA_Name+1) { + ptp_debug (params, "size %d is smaller than %d", size, PTP_ece_OA_Name+1); + break; + } + ce[i].type = ((type == PTP_EC_CANON_EOS_ObjectAddedEx) ? PTP_CANON_EOS_CHANGES_TYPE_OBJECTINFO : PTP_CANON_EOS_CHANGES_TYPE_OBJECTINFO_CHANGE); + ce[i].u.object.oid = dtoh32a(&curdata[PTP_ece_OA_ObjectID]); + ce[i].u.object.oi.StorageID = dtoh32a(&curdata[PTP_ece_OA_StorageID]); + ce[i].u.object.oi.ParentObject = dtoh32a(&curdata[PTP_ece_OA_Parent]); + ce[i].u.object.oi.ObjectFormat = dtoh16a(&curdata[PTP_ece_OA_OFC]); + ce[i].u.object.oi.ObjectCompressedSize= dtoh32a(&curdata[PTP_ece_OA_Size]); + ce[i].u.object.oi.Filename = strdup(((char*)&curdata[PTP_ece_OA_Name])); + if (type == PTP_EC_CANON_EOS_ObjectAddedEx) { + ptp_debug (params, "event %d: objectinfo added oid %08lx, parent %08lx, ofc %04x, size %d, filename %s", i, ce[i].u.object.oid, ce[i].u.object.oi.ParentObject, ce[i].u.object.oi.ObjectFormat, ce[i].u.object.oi.ObjectCompressedSize, ce[i].u.object.oi.Filename); + } else { + ptp_debug (params, "event %d: objectinfo changed oid %08lx, parent %08lx, ofc %04x, size %d, filename %s", i, ce[i].u.object.oid, ce[i].u.object.oi.ParentObject, ce[i].u.object.oi.ObjectFormat, ce[i].u.object.oi.ObjectCompressedSize, ce[i].u.object.oi.Filename); + } + break; + case PTP_EC_CANON_EOS_ObjectAddedEx64: /* FIXME: review if the data used is correct */ + if (size < PTP_ece2_OA_Name+1) { + ptp_debug (params, "size %d is smaller than %d", size, PTP_ece2_OA_Name+1); + break; + } + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_OBJECTINFO; + ce[i].u.object.oid = dtoh32a(&curdata[PTP_ece2_OA_ObjectID]); + ce[i].u.object.oi.StorageID = dtoh32a(&curdata[PTP_ece2_OA_StorageID]); + ce[i].u.object.oi.ParentObject = dtoh32a(&curdata[PTP_ece2_OA_Parent]); + ce[i].u.object.oi.ObjectFormat = dtoh16a(&curdata[PTP_ece2_OA_OFC]); + ce[i].u.object.oi.ObjectCompressedSize= dtoh32a(&curdata[PTP_ece2_OA_Size]); /* FIXME: might be 64bit now */ + ce[i].u.object.oi.Filename = strdup(((char*)&curdata[PTP_ece2_OA_Name])); + ptp_debug (params, "event %d: objectinfo added oid %08lx, parent %08lx, ofc %04x, size %d, filename %s", i, ce[i].u.object.oid, ce[i].u.object.oi.ParentObject, ce[i].u.object.oi.ObjectFormat, ce[i].u.object.oi.ObjectCompressedSize, ce[i].u.object.oi.Filename); + break; + case PTP_EC_CANON_EOS_RequestObjectTransfer: + case PTP_EC_CANON_EOS_RequestObjectTransfer64: + if (size < PTP_ece_OI_Name+1) { + ptp_debug (params, "size %d is smaller than %d", size, PTP_ece_OI_Name+1); + break; + } + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_OBJECTTRANSFER; + ce[i].u.object.oid = dtoh32a(&curdata[PTP_ece_OI_ObjectID]); + ce[i].u.object.oi.StorageID = 0; /* use as marker */ + ce[i].u.object.oi.ObjectFormat = dtoh16a(&curdata[PTP_ece_OI_OFC]); + ce[i].u.object.oi.ParentObject = 0; /* check, but use as marker */ + ce[i].u.object.oi.ObjectCompressedSize = dtoh32a(&curdata[PTP_ece_OI_Size]); + ce[i].u.object.oi.Filename = strdup(((char*)&curdata[PTP_ece_OI_Name])); + + ptp_debug (params, "event %d: request object transfer oid %08lx, ofc %04x, size %d, filename %p", i, ce[i].u.object.oid, ce[i].u.object.oi.ObjectFormat, ce[i].u.object.oi.ObjectCompressedSize, ce[i].u.object.oi.Filename); + break; + case PTP_EC_CANON_EOS_AvailListChanged: { /* property desc */ + uint32_t proptype = dtoh32a(&curdata[PTP_ece_Prop_Subtype]); + uint32_t propxtype = dtoh32a(&curdata[PTP_ece_Prop_Desc_Type]); + uint32_t propxcnt = dtoh32a(&curdata[PTP_ece_Prop_Desc_Count]); + unsigned char *xdata = &curdata[PTP_ece_Prop_Desc_Data]; + unsigned int j; + PTPDevicePropDesc *dpd; + + if (size < PTP_ece_Prop_Desc_Data) { + ptp_debug (params, "size %d is smaller than %d", size, PTP_ece_Prop_Desc_Data); + break; + } + + ptp_debug (params, "event %d: EOS prop %04x desc record, datasize %d, propxtype %d", i, proptype, size-PTP_ece_Prop_Desc_Data, propxtype); + for (j=0;jnrofcanon_props;j++) + if (params->canon_props[j].proptype == proptype) + break; + if (j==params->nrofcanon_props) { + ptp_debug (params, "event %d: propdesc %x, default value not found.", i, proptype); + break; + } + dpd = ¶ms->canon_props[j].dpd; + /* 1 - uint16 ? + * 3 - uint16 + * 7 - string? + */ + if (propxtype != 3) { + ptp_debug (params, "event %d: propxtype is %x for %04x, unhandled, size %d", i, propxtype, proptype, size); + for (j=0;j= 2<<16) /* buggy or exploit */ + break; + + ptp_debug (params, "event %d: propxtype is %x, prop is 0x%04x, data type is 0x%04x, propxcnt is %d.", + i, propxtype, proptype, dpd->DataType, propxcnt); + dpd->FormFlag = PTP_DPFF_Enumeration; + dpd->FORM.Enum.NumberOfValues = propxcnt; + free (dpd->FORM.Enum.SupportedValue); + dpd->FORM.Enum.SupportedValue = malloc (sizeof (PTPPropertyValue)*propxcnt); + + switch (proptype) { + case PTP_DPC_CANON_EOS_ImageFormat: + case PTP_DPC_CANON_EOS_ImageFormatCF: + case PTP_DPC_CANON_EOS_ImageFormatSD: + case PTP_DPC_CANON_EOS_ImageFormatExtHD: + /* special handling of ImageFormat properties */ + for (j=0;jFORM.Enum.SupportedValue[j].u16 = + ptp_unpack_EOS_ImageFormat( params, &xdata ); + ptp_debug (params, "event %d: suppval[%d] of %x is 0x%x.", i, j, proptype, dpd->FORM.Enum.SupportedValue[j].u16); + } + break; + default: + /* 'normal' enumerated types */ + switch (dpd->DataType) { +#define XX( TYPE, CONV )\ + if (sizeof(dpd->FORM.Enum.SupportedValue[j].TYPE)*propxcnt + PTP_ece_Prop_Desc_Data > size) { \ + ptp_debug (params, "size %lu does not match needed %u", sizeof(dpd->FORM.Enum.SupportedValue[j].TYPE)*propxcnt + PTP_ece_Prop_Desc_Data, size); \ + break; \ + } \ + for (j=0;jFORM.Enum.SupportedValue[j].TYPE = CONV(xdata); \ + ptp_debug (params, "event %u: suppval[%u] of %x is 0x%x.", i, j, proptype, CONV(xdata)); \ + xdata += 4; /* might only be for propxtype 3 */ \ + } \ + break; + + case PTP_DTC_INT16: XX( i16, dtoh16a ); + case PTP_DTC_UINT16: XX( u16, dtoh16a ); + case PTP_DTC_UINT32: XX( u32, dtoh32a ); + case PTP_DTC_INT32: XX( i32, dtoh32a ); + case PTP_DTC_UINT8: XX( u8, dtoh8a ); + case PTP_DTC_INT8: XX( i8, dtoh8a ); +#undef XX + default: + free (dpd->FORM.Enum.SupportedValue); + dpd->FORM.Enum.SupportedValue = NULL; + dpd->FORM.Enum.NumberOfValues = 0; + ptp_debug (params ,"event %d: data type 0x%04x of %x unhandled, size %d, raw values:", i, dpd->DataType, proptype, dtoh32a(xdata), size); + for (j=0;j<(size-PTP_ece_Prop_Desc_Data)/4;j++, xdata+=4) /* 4 is good for propxtype 3 */ + ptp_debug (params, " %3d: 0x%8x", j, dtoh32a(xdata)); + break; + } + } + break; + } + case PTP_EC_CANON_EOS_PropValueChanged: + if (size >= 0xc) { /* property info */ + unsigned int j; + uint32_t proptype = dtoh32a(&curdata[PTP_ece_Prop_Subtype]); + unsigned char *xdata = &curdata[PTP_ece_Prop_Val_Data]; + PTPDevicePropDesc *dpd; + + if (size < PTP_ece_Prop_Val_Data) { + ptp_debug (params, "size %d is smaller than %d", size, PTP_ece_Prop_Val_Data); + break; + } + ptp_debug (params, "event %d: EOS prop %04x info record, datasize is %d", i, proptype, size-PTP_ece_Prop_Val_Data); + for (j=0;jnrofcanon_props;j++) + if (params->canon_props[j].proptype == proptype) + break; + if (jnrofcanon_props) { + if ( (params->canon_props[j].size != size) || + (memcmp(params->canon_props[j].data,xdata,size-PTP_ece_Prop_Val_Data))) { + params->canon_props[j].data = realloc(params->canon_props[j].data,size-PTP_ece_Prop_Val_Data); + params->canon_props[j].size = size; + memcpy (params->canon_props[j].data,xdata,size-PTP_ece_Prop_Val_Data); + } + } else { + if (j) + params->canon_props = realloc(params->canon_props, sizeof(params->canon_props[0])*(j+1)); + else + params->canon_props = malloc(sizeof(params->canon_props[0])); + params->canon_props[j].proptype = proptype; + params->canon_props[j].size = size; + params->canon_props[j].data = malloc(size-PTP_ece_Prop_Val_Data); + memcpy(params->canon_props[j].data, xdata, size-PTP_ece_Prop_Val_Data); + memset (¶ms->canon_props[j].dpd,0,sizeof(params->canon_props[j].dpd)); + params->canon_props[j].dpd.GetSet = 1; + params->canon_props[j].dpd.FormFlag = PTP_DPFF_None; + params->nrofcanon_props = j+1; + } + dpd = ¶ms->canon_props[j].dpd; + + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_PROPERTY; + ce[i].u.propid = proptype; + + /* fix GetSet value */ + switch (proptype) { +#define XX(x) case PTP_DPC_CANON_##x: + XX(EOS_FocusMode) + XX(EOS_BatteryPower) + XX(EOS_BatterySelect) + XX(EOS_ModelID) + XX(EOS_PTPExtensionVersion) + XX(EOS_DPOFVersion) + XX(EOS_AvailableShots) + XX(EOS_CurrentStorage) + XX(EOS_CurrentFolder) + XX(EOS_MyMenu) + XX(EOS_MyMenuList) + XX(EOS_HDDirectoryStructure) + XX(EOS_BatteryInfo) + XX(EOS_AdapterInfo) + XX(EOS_LensStatus) + XX(EOS_CardExtension) + XX(EOS_TempStatus) + XX(EOS_ShutterCounter) + XX(EOS_SerialNumber) + XX(EOS_DepthOfFieldPreview) + XX(EOS_EVFRecordStatus) + XX(EOS_LvAfSystem) + XX(EOS_FocusInfoEx) + XX(EOS_DepthOfField) + XX(EOS_Brightness) + XX(EOS_EFComp) + XX(EOS_LensName) + XX(EOS_LensID) +#undef XX + dpd->GetSet = PTP_DPGS_Get; + break; + } + + /* set DataType */ + switch (proptype) { + case PTP_DPC_CANON_EOS_CameraTime: + case PTP_DPC_CANON_EOS_UTCTime: + case PTP_DPC_CANON_EOS_Summertime: /* basical the DST flag */ + case PTP_DPC_CANON_EOS_AvailableShots: + case PTP_DPC_CANON_EOS_CaptureDestination: + case PTP_DPC_CANON_EOS_WhiteBalanceXA: + case PTP_DPC_CANON_EOS_WhiteBalanceXB: + case PTP_DPC_CANON_EOS_CurrentStorage: + case PTP_DPC_CANON_EOS_CurrentFolder: + case PTP_DPC_CANON_EOS_ShutterCounter: + case PTP_DPC_CANON_EOS_ModelID: + case PTP_DPC_CANON_EOS_LensID: + case PTP_DPC_CANON_EOS_StroboFiring: + case PTP_DPC_CANON_EOS_AFSelectFocusArea: + case PTP_DPC_CANON_EOS_ContinousAFMode: + case PTP_DPC_CANON_EOS_MirrorUpSetting: + case PTP_DPC_CANON_EOS_OLCInfoVersion: + case PTP_DPC_CANON_EOS_PowerZoomPosition: + case PTP_DPC_CANON_EOS_PowerZoomSpeed: + case PTP_DPC_CANON_EOS_BuiltinStroboMode: + case PTP_DPC_CANON_EOS_StroboETTL2Metering: + case PTP_DPC_CANON_EOS_ColorTemperature: + dpd->DataType = PTP_DTC_UINT32; + break; + /* enumeration for AEM is never provided, but is available to set */ + case PTP_DPC_CANON_EOS_AutoExposureMode: + dpd->DataType = PTP_DTC_UINT16; + dpd->FormFlag = PTP_DPFF_Enumeration; + dpd->FORM.Enum.NumberOfValues = 0; + break; + case PTP_DPC_CANON_EOS_Aperture: + case PTP_DPC_CANON_EOS_ShutterSpeed: + case PTP_DPC_CANON_EOS_ISOSpeed: + case PTP_DPC_CANON_EOS_FocusMode: + case PTP_DPC_CANON_EOS_ColorSpace: + case PTP_DPC_CANON_EOS_BatteryPower: + case PTP_DPC_CANON_EOS_BatterySelect: + case PTP_DPC_CANON_EOS_PTPExtensionVersion: + case PTP_DPC_CANON_EOS_DriveMode: + case PTP_DPC_CANON_EOS_AEB: + case PTP_DPC_CANON_EOS_BracketMode: + case PTP_DPC_CANON_EOS_QuickReviewTime: + case PTP_DPC_CANON_EOS_EVFMode: + case PTP_DPC_CANON_EOS_EVFOutputDevice: + case PTP_DPC_CANON_EOS_AutoPowerOff: + case PTP_DPC_CANON_EOS_EVFRecordStatus: + case PTP_DPC_CANON_EOS_HighISOSettingNoiseReduction: + case PTP_DPC_CANON_EOS_MultiAspect: /* actually a 32bit value, but lets try it for easyness */ + dpd->DataType = PTP_DTC_UINT16; + break; + case PTP_DPC_CANON_EOS_PictureStyle: + case PTP_DPC_CANON_EOS_WhiteBalance: + case PTP_DPC_CANON_EOS_MeteringMode: + case PTP_DPC_CANON_EOS_ExpCompensation: + dpd->DataType = PTP_DTC_UINT8; + break; + case PTP_DPC_CANON_EOS_Owner: + case PTP_DPC_CANON_EOS_Artist: + case PTP_DPC_CANON_EOS_Copyright: + case PTP_DPC_CANON_EOS_SerialNumber: + case PTP_DPC_CANON_EOS_LensName: + dpd->DataType = PTP_DTC_STR; + break; + case PTP_DPC_CANON_EOS_WhiteBalanceAdjustA: + case PTP_DPC_CANON_EOS_WhiteBalanceAdjustB: + dpd->DataType = PTP_DTC_INT32; + break; + /* unknown props, listed from dump.... all 16 bit, but vals might be smaller */ + case PTP_DPC_CANON_EOS_DPOFVersion: + dpd->DataType = PTP_DTC_UINT16; + ptp_debug (params, "event %d: Unknown EOS property %04x, datasize is %d, using uint16", i ,proptype, size-PTP_ece_Prop_Val_Data); + for (j=0;jDataType = PTP_DTC_UINT8; + ptp_debug (params, "event %d: Unknown EOS property %04x, datasize is %d, using uint8", i ,proptype, size-PTP_ece_Prop_Val_Data); + for (j=0;jDataType = PTP_DTC_UINT32; + ptp_debug (params, "event %d: Unknown EOS property %04x, datasize is %d, using uint32", i ,proptype, size-PTP_ece_Prop_Val_Data); + if ((size-PTP_ece_Prop_Val_Data) % sizeof(uint32_t) != 0) + ptp_debug (params, "event %d: Warning: datasize modulo sizeof(uint32) is not 0: ", i, (size-PTP_ece_Prop_Val_Data) % sizeof(uint32_t) ); + for (j=0;j<(size-PTP_ece_Prop_Val_Data)/sizeof(uint32_t);j++) + ptp_debug (params, " %d: 0x%8x", j, dtoh32a(xdata+j*4)); + break; + /* ImageFormat properties have to be ignored here, see special handling below */ + case PTP_DPC_CANON_EOS_ImageFormat: + case PTP_DPC_CANON_EOS_ImageFormatCF: + case PTP_DPC_CANON_EOS_ImageFormatSD: + case PTP_DPC_CANON_EOS_ImageFormatExtHD: + case PTP_DPC_CANON_EOS_CustomFuncEx: + case PTP_DPC_CANON_EOS_FocusInfoEx: + break; + default: + ptp_debug (params, "event %d: Unknown EOS property %04x, datasize is %d", i ,proptype, size-PTP_ece_Prop_Val_Data); + for (j=0;jDataType) { + case PTP_DTC_UINT32: + dpd->FactoryDefaultValue.u32 = dtoh32a(xdata); + dpd->CurrentValue.u32 = dtoh32a(xdata); + ptp_debug (params ,"event %d: currentvalue of %x is %x", i, proptype, dpd->CurrentValue.u32); + break; + case PTP_DTC_INT16: + dpd->FactoryDefaultValue.i16 = dtoh16a(xdata); + dpd->CurrentValue.i16 = dtoh16a(xdata); + ptp_debug (params,"event %d: currentvalue of %x is %d", i, proptype, dpd->CurrentValue.i16); + break; + case PTP_DTC_UINT16: + dpd->FactoryDefaultValue.u16 = dtoh16a(xdata); + dpd->CurrentValue.u16 = dtoh16a(xdata); + ptp_debug (params,"event %d: currentvalue of %x is %x", i, proptype, dpd->CurrentValue.u16); + break; + case PTP_DTC_UINT8: + dpd->FactoryDefaultValue.u8 = dtoh8a(xdata); + dpd->CurrentValue.u8 = dtoh8a(xdata); + ptp_debug (params,"event %d: currentvalue of %x is %x", i, proptype, dpd->CurrentValue.u8); + break; + case PTP_DTC_INT8: + dpd->FactoryDefaultValue.i8 = dtoh8a(xdata); + dpd->CurrentValue.i8 = dtoh8a(xdata); + ptp_debug (params,"event %d: currentvalue of %x is %x", i, proptype, dpd->CurrentValue.i8); + break; + case PTP_DTC_STR: { +#if 0 /* 5D MII and 400D aktually store plain ASCII in their string properties */ + uint8_t len = 0; + dpd->FactoryDefaultValue.str = ptp_unpack_string(params, data, 0, &len); + dpd->CurrentValue.str = ptp_unpack_string(params, data, 0, &len); +#else + free (dpd->FactoryDefaultValue.str); + dpd->FactoryDefaultValue.str = strdup( (char*)xdata ); + + free (dpd->CurrentValue.str); + dpd->CurrentValue.str = strdup( (char*)xdata ); +#endif + ptp_debug (params,"event %d: currentvalue of %x is %s", i, proptype, dpd->CurrentValue.str); + break; + } + default: + /* debug is printed in switch above this one */ + break; + } + + /* ImageFormat and customFuncEx special handling (WARNING: dont move this in front of the dpd->DataType switch!) */ + switch (proptype) { + case PTP_DPC_CANON_EOS_ImageFormat: + case PTP_DPC_CANON_EOS_ImageFormatCF: + case PTP_DPC_CANON_EOS_ImageFormatSD: + case PTP_DPC_CANON_EOS_ImageFormatExtHD: + dpd->DataType = PTP_DTC_UINT16; + dpd->FactoryDefaultValue.u16 = ptp_unpack_EOS_ImageFormat( params, &xdata ); + dpd->CurrentValue.u16 = dpd->FactoryDefaultValue.u16; + ptp_debug (params,"event %d: decoded imageformat, currentvalue of %x is %x", i, proptype, dpd->CurrentValue.u16); + break; + case PTP_DPC_CANON_EOS_CustomFuncEx: + dpd->DataType = PTP_DTC_STR; + free (dpd->FactoryDefaultValue.str); + free (dpd->CurrentValue.str); + dpd->FactoryDefaultValue.str = ptp_unpack_EOS_CustomFuncEx( params, &xdata ); + dpd->CurrentValue.str = strdup( (char*)dpd->FactoryDefaultValue.str ); + ptp_debug (params,"event %d: decoded custom function, currentvalue of %x is %s", i, proptype, dpd->CurrentValue.str); + break; + case PTP_DPC_CANON_EOS_FocusInfoEx: + dpd->DataType = PTP_DTC_STR; + free (dpd->FactoryDefaultValue.str); + free (dpd->CurrentValue.str); + dpd->FactoryDefaultValue.str = ptp_unpack_EOS_FocusInfoEx( params, &xdata, size ); + dpd->CurrentValue.str = strdup( (char*)dpd->FactoryDefaultValue.str ); + ptp_debug (params,"event %d: decoded focus info, currentvalue of %x is %s", i, proptype, dpd->CurrentValue.str); + break; + } + + break; + } + /* one more information record handed to us */ + /* Versions seen: (d199) + * 100D: 7 (original reference) + * 5d Mark 3: 7 + * 650D: 7 + * 6D: 7 + * M10: 8 + * 70D: 8 + * 5Dsr: b + * 200D: f + */ + case PTP_EC_CANON_EOS_OLCInfoChanged: { + uint32_t len, curoff; + uint16_t mask,proptype; + PTPDevicePropDesc *dpd; + int olcver = 0; + + dpd = _lookup_or_allocate_canon_prop(params, PTP_DPC_CANON_EOS_OLCInfoVersion); + if (dpd) { + ptp_debug (params, "olcinfoversion is %d", dpd->CurrentValue.u32); + olcver = dpd->CurrentValue.u32; + } + + /* unclear what OLC stands for */ + ptp_debug (params, "event %d: EOS event OLCInfoChanged (size %d)", i, size); + if (size >= 0x8) { /* event info */ + unsigned int k; + for (k=8;kCurrentValue.u16 = curdata[curoff+5]; /* just use last byte */ + + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_PROPERTY; + ce[i].u.propid = proptype; + /* hack to differ between older EOS and EOS 200D newer */ + switch (olcver) { + case 0xf: + curoff += 7; /* f (200D), 8 (M10) */ + break; + case 0x7: + case 0x8: /* EOS 70D */ + case 0xb: /* EOS 5Ds */ + curoff += 6; /* 7 , b (5ds) */ + break; + default: + curoff += 6; + break; + } + i++; + } + if (mask & CANON_EOS_OLC_APERTURE) { + /* 5 bytes: 01 01 5b 30 30 */ + /* this seesm to be the aperture record */ + /* EOS 200D seems to have 6 bytes here? + * 6 bytes: 01 01 50 20 20 00 * + */ + proptype = PTP_DPC_CANON_EOS_Aperture; + dpd = _lookup_or_allocate_canon_prop(params, proptype); + dpd->CurrentValue.u16 = curdata[curoff+4]; /* just use last byte */ + + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_PROPERTY; + ce[i].u.propid = proptype; + if (olcver >= 0xf) { + curoff += 6; /* f */ + } else { + curoff += 5; /* 7, 8, b */ + } + i++; + } + if (mask & CANON_EOS_OLC_ISO) { + /* 4 bytes: 01 01 00 78 */ + /* this seesm to be the aperture record */ + proptype = PTP_DPC_CANON_EOS_ISOSpeed; + dpd = _lookup_or_allocate_canon_prop(params, proptype); + dpd->CurrentValue.u16 = curdata[curoff+3]; /* just use last byte */ + + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_PROPERTY; + ce[i].u.propid = proptype; + curoff += 4; /* 7, 8, b, f*/ + i++; + } + if (mask & 0x0010) { + /* mask 0x0010: 4 bytes, 04 00 00 00 observed */ + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; + ce[i].u.info = malloc(strlen("OLCInfo event 0x0010 content 01234567")+1); + sprintf(ce[i].u.info,"OLCInfo event 0x0010 content %02x%02x%02x%02x", + curdata[curoff], + curdata[curoff+1], + curdata[curoff+2], + curdata[curoff+3] + ); + curoff += 4; + i++; + } + if (mask & 0x0020) { + /* mask 0x0020: 6 bytes, 00 00 00 00 00 00 observed. + * This seems to be the self-timer record: when active, + * has the form of 00 00 01 00 XX XX, where the last two bytes + * stand for the number of seconds remaining until the shot */ + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; + ce[i].u.info = malloc(strlen("OLCInfo event 0x0020 content 0123456789ab")+1); + sprintf(ce[i].u.info,"OLCInfo event 0x0020 content %02x%02x%02x%02x%02x%02x", + curdata[curoff], + curdata[curoff+1], + curdata[curoff+2], + curdata[curoff+3], + curdata[curoff+4], + curdata[curoff+5] + ); + curoff += 6; + i++; + } + if (mask & 0x0040) { + int value = (signed char)curdata[curoff+2]; + /* mask 0x0040: 7 bytes, 01 01 00 00 00 00 00 observed */ + /* exposure indicator */ + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; + ce[i].u.info = malloc(strlen("OLCInfo exposure indicator 012345678901234567890123456789abcd")+1); + sprintf(ce[i].u.info,"OLCInfo exposure indicator %d,%d,%d.%d (%02x%02x%02x%02x)", + curdata[curoff], + curdata[curoff+1], + value/10,abs(value)%10, + curdata[curoff+3], + curdata[curoff+4], + curdata[curoff+5], + curdata[curoff+6] + ); + curoff += 7; + i++; + } + if (mask & 0x0080) { + /* mask 0x0080: 4 bytes, 00 00 00 00 observed */ + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; + ce[i].u.info = malloc(strlen("OLCInfo event 0x0080 content 01234567")+1); + sprintf(ce[i].u.info,"OLCInfo event 0x0080 content %02x%02x%02x%02x", + curdata[curoff], + curdata[curoff+1], + curdata[curoff+2], + curdata[curoff+3] + ); + curoff += 4; + i++; + } + if (mask & 0x0100) { + /* mask 0x0100: 6 bytes, 00 00 00 00 00 00 (before focus) and 00 00 00 00 01 00 (on focus) observed */ + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_FOCUSINFO; + ce[i].u.info = malloc(strlen("0123456789ab")+1); + sprintf(ce[i].u.info,"%02x%02x%02x%02x%02x%02x", + curdata[curoff], + curdata[curoff+1], + curdata[curoff+2], + curdata[curoff+3], + curdata[curoff+4], + curdata[curoff+5] + ); + curoff += 6; + i++; + } + if (mask & 0x0200) { + /* mask 0x0200: 7 bytes, 00 00 00 00 00 00 00 observed */ + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_FOCUSMASK; + ce[i].u.info = malloc(strlen("0123456789abcd0123456789abcdef")+1); + sprintf(ce[i].u.info,"%02x%02x%02x%02x%02x%02x%02x", + curdata[curoff], + curdata[curoff+1], + curdata[curoff+2], + curdata[curoff+3], + curdata[curoff+4], + curdata[curoff+5], + curdata[curoff+6] + ); + curoff += 7; + i++; + } + if (mask & 0x0400) { + /* mask 0x0400: 7 bytes, 00 00 00 00 00 00 00 observed */ + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; + ce[i].u.info = malloc(strlen("OLCInfo event 0x0400 content 0123456789abcd")+1); + sprintf(ce[i].u.info,"OLCInfo event 0x0400 content %02x%02x%02x%02x%02x%02x%02x", + curdata[curoff], + curdata[curoff+1], + curdata[curoff+2], + curdata[curoff+3], + curdata[curoff+4], + curdata[curoff+5], + curdata[curoff+6] + ); + curoff += 7; + i++; + } + if (mask & 0x0800) { + /* mask 0x0800: 8 bytes, 00 00 00 00 00 00 00 00 and 19 01 00 00 00 00 00 00 and others observed */ + /* might be mask of focus points selected */ + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; + ce[i].u.info = malloc(strlen("OLCInfo event 0x0800 content 0123456789abcdef")+1); + sprintf(ce[i].u.info,"OLCInfo event 0x0800 content %02x%02x%02x%02x%02x%02x%02x%02x", + curdata[curoff], + curdata[curoff+1], + curdata[curoff+2], + curdata[curoff+3], + curdata[curoff+4], + curdata[curoff+5], + curdata[curoff+6], + curdata[curoff+7] + ); + curoff += 8; + i++; + } + if (mask & 0x1000) { + /* mask 0x1000: 1 byte, 00 observed */ + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; + ce[i].u.info = malloc(strlen("OLCInfo event 0x1000 content 01")+1); + sprintf(ce[i].u.info,"OLCInfo event 0x1000 content %02x", + curdata[curoff] + ); + curoff += 1; + i++; + } + /* handle more masks */ + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; + ce[i].u.info = malloc(strlen("OLCInfo event mask 0123456789")+1); + sprintf(ce[i].u.info, "OLCInfo event mask=%x", mask); + break; + } + case PTP_EC_CANON_EOS_CameraStatusChanged: + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_CAMERASTATUS; + ce[i].u.status = dtoh32a(curdata+8); + ptp_debug (params, "event %d: EOS event CameraStatusChanged (size %d) = %d", i, size, dtoh32a(curdata+8)); + params->eos_camerastatus = dtoh32a(curdata+8); + break; + case 0: /* end marker */ + if (size == 8) /* no output */ + break; + ptp_debug (params, "event %d: EOS event 0, but size %d", i, size); + break; + case PTP_EC_CANON_EOS_BulbExposureTime: + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; + ce[i].u.info = malloc(strlen("BulbExposureTime 123456789012345678")); + sprintf (ce[i].u.info, "BulbExposureTime %u", dtoh32a(curdata+8)); + break; + case PTP_EC_CANON_EOS_ObjectRemoved: + ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_OBJECTREMOVED; + ce[i].u.object.oid = dtoh32a(curdata+8); + break; + default: + switch (type) { +#define XX(x) case PTP_EC_CANON_EOS_##x: \ + ptp_debug (params, "event %u: unhandled EOS event "#x" (size %u)", i, size); \ + ce[i].u.info = malloc(strlen("unhandled EOS event "#x" (size 12345678901)")+1); \ + sprintf (ce[i].u.info, "unhandled EOS event "#x" (size %u)", size); \ + break; + XX(RequestGetEvent) + XX(RequestGetObjectInfoEx) + XX(StorageStatusChanged) + XX(StorageInfoChanged) + XX(ObjectInfoChangedEx) + XX(ObjectContentChanged) + XX(WillSoonShutdown) + XX(ShutdownTimerUpdated) + XX(RequestCancelTransfer) + XX(RequestObjectTransferDT) + XX(RequestCancelTransferDT) + XX(StoreAdded) + XX(StoreRemoved) + XX(BulbExposureTime) + XX(RecordingTime) + XX(RequestObjectTransferTS) + XX(AfResult) + XX(PowerZoomInfoChanged) + XX(CTGInfoCheckComplete) +#undef XX + default: + ptp_debug (params, "event %d: unknown EOS event %04x", i, type); + break; + } + if (size >= 0x8) { /* event info */ + unsigned int j; + /*ptp_debug (params, "data=%p, curdata=%p, datsize=%d, size=%d", data, curdata, datasize, size);*/ + for (j=8;j= entries) { + ptp_debug (params, "BAD: i %d, entries %d", i, entries); + } + } + if (!i) { + free (ce); + ce = NULL; + } + *pce = ce; + return i; +} + +/* + PTP USB Event container unpack for Nikon events. +*/ +#define PTP_nikon_ec_Length 0 +#define PTP_nikon_ec_Code 2 +#define PTP_nikon_ec_Param1 4 +#define PTP_nikon_ec_Size 6 +static inline void +ptp_unpack_Nikon_EC (PTPParams *params, unsigned char* data, unsigned int len, PTPContainer **ec, unsigned int *cnt) +{ + unsigned int i; + + *ec = NULL; + if (data == NULL) + return; + if (len < PTP_nikon_ec_Code) + return; + *cnt = dtoh16a(&data[PTP_nikon_ec_Length]); + if (*cnt > (len-PTP_nikon_ec_Code)/PTP_nikon_ec_Size) { /* broken cnt? */ + *cnt = 0; + return; + } + if (!*cnt) + return; + + *ec = malloc(sizeof(PTPContainer)*(*cnt)); + + for (i=0;i<*cnt;i++) { + memset(&(*ec)[i],0,sizeof(PTPContainer)); + (*ec)[i].Code = dtoh16a(&data[PTP_nikon_ec_Code+PTP_nikon_ec_Size*i]); + (*ec)[i].Param1 = dtoh32a(&data[PTP_nikon_ec_Param1+PTP_nikon_ec_Size*i]); + (*ec)[i].Nparam = 1; + } +} + + +static inline uint32_t +ptp_pack_EK_text(PTPParams *params, PTPEKTextParams *text, unsigned char **data) { + int i, len = 0; + uint8_t retlen; + unsigned char *curdata; + + len = 2*(strlen(text->title)+1)+1+ + 2*(strlen(text->line[0])+1)+1+ + 2*(strlen(text->line[1])+1)+1+ + 2*(strlen(text->line[2])+1)+1+ + 2*(strlen(text->line[3])+1)+1+ + 2*(strlen(text->line[4])+1)+1+ + 4*2+2*4+2+4+2+5*4*2; + *data = malloc(len); + if (!*data) return 0; + + curdata = *data; + htod16a(curdata,100);curdata+=2; + htod16a(curdata,1);curdata+=2; + htod16a(curdata,0);curdata+=2; + htod16a(curdata,1000);curdata+=2; + + htod32a(curdata,0);curdata+=4; + htod32a(curdata,0);curdata+=4; + + htod16a(curdata,6);curdata+=2; + htod32a(curdata,0);curdata+=4; + + ptp_pack_string(params, text->title, curdata, 0, &retlen); curdata+=2*retlen+1;htod16a(curdata,0);curdata+=2; + htod16a(curdata,0x10);curdata+=2; + + for (i=0;i<5;i++) { + ptp_pack_string(params, text->line[i], curdata, 0, &retlen); curdata+=2*retlen+1;htod16a(curdata,0);curdata+=2; + htod16a(curdata,0x10);curdata+=2; + htod16a(curdata,0x01);curdata+=2; + htod16a(curdata,0x02);curdata+=2; + htod16a(curdata,0x06);curdata+=2; + } + return len; +} + +#define ptp_canon_dir_version 0x00 +#define ptp_canon_dir_ofc 0x02 +#define ptp_canon_dir_unk1 0x04 +#define ptp_canon_dir_objectid 0x08 +#define ptp_canon_dir_parentid 0x0c +#define ptp_canon_dir_previd 0x10 /* in same dir */ +#define ptp_canon_dir_nextid 0x14 /* in same dir */ +#define ptp_canon_dir_nextchild 0x18 /* down one dir */ +#define ptp_canon_dir_storageid 0x1c /* only in storage entry */ +#define ptp_canon_dir_name 0x20 +#define ptp_canon_dir_flags 0x2c +#define ptp_canon_dir_size 0x30 +#define ptp_canon_dir_unixtime 0x34 +#define ptp_canon_dir_year 0x38 +#define ptp_canon_dir_month 0x39 +#define ptp_canon_dir_mday 0x3a +#define ptp_canon_dir_hour 0x3b +#define ptp_canon_dir_minute 0x3c +#define ptp_canon_dir_second 0x3d +#define ptp_canon_dir_unk2 0x3e +#define ptp_canon_dir_thumbsize 0x40 +#define ptp_canon_dir_width 0x44 +#define ptp_canon_dir_height 0x48 + +static inline uint16_t +ptp_unpack_canon_directory ( + PTPParams *params, + unsigned char *dir, + uint32_t cnt, + PTPObjectHandles *handles, + PTPObjectInfo **oinfos, /* size(handles->n) */ + uint32_t **flags /* size(handles->n) */ +) { + unsigned int i, j, nrofobs = 0, curob = 0; + +#define ISOBJECT(ptr) (dtoh32a((ptr)+ptp_canon_dir_storageid) == 0xffffffff) + for (i=0;in = nrofobs; + handles->Handler = calloc(nrofobs,sizeof(handles->Handler[0])); + if (!handles->Handler) return PTP_RC_GeneralError; + *oinfos = calloc(nrofobs,sizeof((*oinfos)[0])); + if (!*oinfos) return PTP_RC_GeneralError; + *flags = calloc(nrofobs,sizeof((*flags)[0])); + if (!*flags) return PTP_RC_GeneralError; + + /* Migrate data into objects ids, handles into + * the object handler array. + */ + curob = 0; + for (i=0;iHandler[curob] = dtoh32a(cur + ptp_canon_dir_objectid); + oi->StorageID = 0xffffffff; + oi->ObjectFormat = dtoh16a(cur + ptp_canon_dir_ofc); + oi->ParentObject = dtoh32a(cur + ptp_canon_dir_parentid); + oi->Filename = strdup((char*)(cur + ptp_canon_dir_name)); + oi->ObjectCompressedSize= dtoh32a(cur + ptp_canon_dir_size); + oi->ThumbCompressedSize = dtoh32a(cur + ptp_canon_dir_thumbsize); + oi->ImagePixWidth = dtoh32a(cur + ptp_canon_dir_width); + oi->ImagePixHeight = dtoh32a(cur + ptp_canon_dir_height); + oi->CaptureDate = oi->ModificationDate = dtoh32a(cur + ptp_canon_dir_unixtime); + (*flags)[curob] = dtoh32a(cur + ptp_canon_dir_flags); + curob++; + } + /* Walk over Storage ID entries and distribute the IDs to + * the parent objects. */ + for (i=0;in;j++) if (nextchild == handles->Handler[j]) break; + if (j == handles->n) continue; + (*oinfos)[j].StorageID = dtoh32a(cur + ptp_canon_dir_storageid); + } + /* Walk over all objects and distribute the storage ids */ + while (1) { + unsigned int changed = 0; + for (i=0;in;j++) if (oid == handles->Handler[j]) break; + if (j == handles->n) { + /*fprintf(stderr,"did not find oid in lookup pass for current oid\n");*/ + continue; + } + storageid = (*oinfos)[j].StorageID; + if (storageid == 0xffffffff) continue; + if (nextoid != 0xffffffff) { + for (j=0;jn;j++) if (nextoid == handles->Handler[j]) break; + if (j == handles->n) { + /*fprintf(stderr,"did not find oid in lookup pass for next oid\n");*/ + continue; + } + if ((*oinfos)[j].StorageID == 0xffffffff) { + (*oinfos)[j].StorageID = storageid; + changed++; + } + } + if (nextchild != 0xffffffff) { + for (j=0;jn;j++) if (nextchild == handles->Handler[j]) break; + if (j == handles->n) { + /*fprintf(stderr,"did not find oid in lookup pass for next child\n");*/ + continue; + } + if ((*oinfos)[j].StorageID == 0xffffffff) { + (*oinfos)[j].StorageID = storageid; + changed++; + } + } + } + /* Check if we: + * - changed no entry (nothing more to do) + * - changed all of them at once (usually happens) + * break if we do. + */ + if (!changed || (changed==nrofobs-1)) + break; + } +#undef ISOBJECT + return PTP_RC_OK; +} + +static inline int +ptp_unpack_ptp11_manifest ( + PTPParams *params, + unsigned char *data, + unsigned int datalen, + uint64_t *numoifs, + PTPObjectFilesystemInfo **oifs +) { + uint64_t numberoifs, i; + unsigned int curoffset; + PTPObjectFilesystemInfo *xoifs; + + if (datalen < 8) + return 0; + numberoifs = dtoh64ap(params,data); + curoffset = 8; + xoifs = calloc(sizeof(PTPObjectFilesystemInfo),numberoifs); + if (!xoifs) + return 0; + + for (i = 0; i < numberoifs; i++) { + uint8_t len,dlen; + char *modify_date; + PTPObjectFilesystemInfo *oif = xoifs+i; + + if (curoffset + 34 + 2 > datalen) + goto tooshort; + + oif->ObjectHandle = dtoh32ap(params,data+curoffset); + oif->StorageID = dtoh32ap(params,data+curoffset+4); + oif->ObjectFormat = dtoh16ap(params,data+curoffset+8); + oif->ProtectionStatus = dtoh16ap(params,data+curoffset+10); + oif->ObjectCompressedSize64 = dtoh64ap(params,data+curoffset+12); + oif->ParentObject = dtoh32ap(params,data+curoffset+20); + oif->AssociationType = dtoh16ap(params,data+curoffset+24); + oif->AssociationDesc = dtoh32ap(params,data+curoffset+26); + oif->SequenceNumber = dtoh32ap(params,data+curoffset+30); + if (!ptp_unpack_string(params, data, curoffset+34, datalen, &len, &oif->Filename)) + goto tooshort; + if (curoffset+34+len*2+1 > datalen) + goto tooshort; + + if (!ptp_unpack_string(params, data, curoffset+len*2+1+34, datalen, &dlen, &modify_date)) + goto tooshort; + + oif->ModificationDate = ptp_unpack_PTPTIME(modify_date); + free(modify_date); + curoffset += 34+len*2+dlen*2+2; + } + *numoifs = numberoifs; + *oifs = xoifs; + return 1; +tooshort: + for (i = 0; i < numberoifs; i++) + if (xoifs[i].Filename) free (xoifs[i].Filename); + free (xoifs); + return 0; +} + +static inline void +ptp_unpack_chdk_lv_data_header (PTPParams *params, unsigned char* data, lv_data_header *header) +{ + int off = 0; + if (data==NULL) + return; + header->version_major = dtoh32a(&data[off]); + header->version_minor = dtoh32a(&data[off+=4]); + header->lcd_aspect_ratio = dtoh32a(&data[off+=4]); + header->palette_type = dtoh32a(&data[off+=4]); + header->palette_data_start = dtoh32a(&data[off+=4]); + header->vp_desc_start = dtoh32a(&data[off+=4]); + header->bm_desc_start = dtoh32a(&data[off+=4]); + if (header->version_minor > 1) + header->bmo_desc_start = dtoh32a(&data[off+=4]); +} + +static inline void +ptp_unpack_chdk_lv_framebuffer_desc (PTPParams *params, unsigned char* data, lv_framebuffer_desc *fd) +{ + int off = 0; + if (data==NULL) + return; + fd->fb_type = dtoh32a(&data[off]); + fd->data_start = dtoh32a(&data[off+=4]); + fd->buffer_width = dtoh32a(&data[off+=4]); + fd->visible_width = dtoh32a(&data[off+=4]); + fd->visible_height = dtoh32a(&data[off+=4]); + fd->margin_left = dtoh32a(&data[off+=4]); + fd->margin_top = dtoh32a(&data[off+=4]); + fd->margin_right = dtoh32a(&data[off+=4]); + fd->margin_bot = dtoh32a(&data[off+=4]); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-parse.pl b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-parse.pl new file mode 100644 index 00000000..19db5ecf --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-parse.pl @@ -0,0 +1,498 @@ +#!/usr/bin/perl +# Copyright Marcus Meissner 2005. +# Licensed under GPL v2. NO WARRANTY. +# +# This is mostly unfinished ... + +use strict; +use XML::Parser; +use IO::Handle; + +my $xmlfile = shift @ARGV || die "specify xml file on cmdline:$!\n"; + +my @elemstack = (); +my @data = 0; +my $needdata = 0; +my $curseq = -1; +my $curep = -1; +my %urbenc = (); +my @curdata = (); +my $lastcode; +my $vendorid = 0; + +my $size=-s $xmlfile; +my $buffer; +sysopen(BINFILE,$xmlfile,0) || die "sysopen: $!"; +sysread(BINFILE,$buffer,$size); +close(BINFILE); + +my @data = unpack("C*",$buffer); +if ($data[0] == 60) { # 60 == '<' ... start of XML file ... + my $p1 = new XML::Parser( + Handlers => { Start => \&xml_handle_start, + End => \&xml_handle_end, + Char => \&xml_handle_char} + ); + $p1->parsefile($xmlfile); + exit 0; +} + +# binary file parser ... Looking for ptp usb traffic +my $expectseqnr = 0; +my @curdata; +my $dataskip; +my $off = 0; +while ($#data) { + my $type = $data[4] | ($data[5] << 8); + if (($type < 1) || ($type > 4)) { + $off++; + shift @data; + next; + } + my $code = $data[6] | ($data[7] << 8); + my $len = $data[0] | ($data[1] << 8) | ($data[2] << 16) | ($data[3] << 24); + my $seqnr = $data[8] | ($data[9] << 8) | ($data[0xa] << 16) | ($data[0xb] << 24); + if ($code < 0x1000) { $off++;shift @data; next; } + if ($seqnr != $expectseqnr) { + $off++; + shift @data; + next; + } + if ($len > $#data) { + $off++; + shift @data; + next; + } + if ($type == 1) { + $dataskip = 1; + $lastcode = $code; + # $dataskip = 0 if ($code == 0x1008); + $dataskip = 0 if ($code == 0x9007); + @curdata = (); + } + # printf "off %x, type = %04x, code=%04x, len = %08x, seqnr = %08x\n", $off, $type, $code, $len, $seqnr; + my @bytes; + if ($len <= 64) { + @bytes = @data[0xc..$len-1]; + } else { + @bytes = @data[0xc..0x3f]+@data[0x40+0x120..0x120+$len-1]; + } + if ($type == 2) { + if ($dataskip == 0) { + my $i; + @curdata = @data[0xc..$len-1]; + if ($len <= 64) { + @curdata = @data[0xc..$len-1]; + } else { + @curdata = (@data[0xc..0x3f],@data[0x40+0x120..0x120+$len-1]); + } + } + $dataskip--; + } + dump_ptp_line($type,$code,\@bytes,\@curdata); + if ($type == 3) { + $expectseqnr++; + @curdata = (); + } + $off++; + shift @data; +} +print "done\n"; +exit 0; + + +sub hexdump { + my @data = @_; + my $i; + my $str = ""; + for ($i = 0;$i <= $#data ; $i++) { + my $c = $data[$i]; + if (($i & 0x0f) == 0) { + if ($i) { + print " $str\n"; + $str = ""; + } + printf "%03x: ", $i; + } + printf " %02x", $c; + if (($c >= 0x20) && ($c < 0x7f)) { + $str .= sprintf "%c", $c; + } else { + $str .= "."; + } + } + printf " $str\n"; +} + +sub get_uint32 { + my($arrref) = @_; + + return shift(@{$arrref})+256*(shift(@{$arrref}))+ + 256*256*shift(@{$arrref})+256*256*256*(shift(@{$arrref})); +} + +sub get_uint16 { + my($arrref) = @_; + + return shift(@{$arrref})+256*(shift(@{$arrref})); +} + +sub get_uint8 { + my($arrref) = @_; + + return shift @{$arrref}; +} + +sub get_str { + my($arrref) = @_; + my $len = get_uint8($arrref); + my $i; + my $str; + + $str = ''; + for ($i = 0; $i < $len - 1 ; $i++ ) { + $str .= pack("C",shift(@{$arrref})); + shift @{$arrref}; + } + return $str; +} + +my $lastfunction; +my $lasttype = 0; + +sub xml_handle_char { + my ($expat, $str) = @_; + my @bytes; + + if ($elemstack[$#elemstack] eq "function") { + $lastfunction = $str; + return; + } + if ($elemstack[$#elemstack] eq "endpoint") { + $curep = $str; + return; + } + # for the IN ep we only get the second mention of the URB + # for the OUT ep we only get the first. + if ($curep == 129) { + return if ($urbenc{$curseq} == 1); + } else { + if ($curep == 2) { + return if ($urbenc{$curseq} == 2); + } + } + return unless ($elemstack[$#elemstack] eq "payloadbytes"); + if ($lastfunction ne "BULK_OR_INTERRUPT_TRANSFER") { + print "str $str\n"; + return; + } + + @bytes = unpack('C*',pack('H*',"\U$str")); + + my $length = get_uint32(\@bytes); + my $type = get_uint16(\@bytes); + + #if ($length < $#bytes-6) { + # # print STDERR "$length < $#bytes\n"; + # @bytes = @bytes[0..$length-7]; + #} + + if ($type == 1) { + print "$curseq: COMMAND: "; + } elsif ($type == 2) { + # print "str is $str\n"; + # print "DATA: "; + @curdata = (); + } elsif ($type == 3) { + return if ($urbenc{$curseq} == 1); + print "$curseq: RESPONSE: "; + } elsif ($type == 4) { + print "$curseq: EVENT: "; + } else { + # printf "$curseq: TYPE %02x: ", $type; + # print "$str\n"; + @bytes = unpack('C*',pack('H*',"\U$str")); + push @curdata, @bytes; + return; + } + my $code = get_uint16(\@bytes); + my $transid = get_uint32(\@bytes); + # not really needed .... print "transid $transid "; + + if ($type == 1) { + $lastcode = $code; + @curdata = (); + } + if ($type == 2) { + push @curdata, @bytes; + return; + } + dump_ptp_line($type,$code,\@bytes,\@curdata); +} + +sub xml_handle_start { + my ($expat, $element, $attr, $val) = @_; + if (($element eq "urb") && ($attr eq "sequence")) { + $curseq = $val; + $urbenc{$val} = $urbenc{$val} + 1; + } + push @elemstack, $element; +} + +sub xml_handle_end { + my ($expat, $element) = @_; + pop @elemstack; +} + + +# Evaluate and print out debug commands +# type == 1 during send ... print parameters sent to camera +# type == 3 after response ... print data returned +# @bytes - bulk container in response (no data) +# @curdata - bulk data if command had seperate datastream +sub +dump_ptp_line() { + my($type,$code,$bytesref,$curdataref) = @_; + my @bytes = @{$bytesref}; + my @curdata = @{$curdataref}; + my $dummy; + + if ($type == 3) { + if ($code == 0x2001) { print "OK(2001) - "; } + elsif ($code == 0x2002) { print "GeneralError(2002) "; } + elsif ($code == 0x2019) { print "DeviceBusy(2019) "; } + else { printf "Unknown(%04x) ",$code; } + $code = $lastcode; + } + + if ($code == 0x1001) { + if ($type == 1) { + print "GetDeviceInfo(1001)\n"; + } elsif ($type == 3) { + my $sver = get_uint16(\@curdata); + $vendorid = get_uint32(\@curdata); + my $vendorextver= get_uint16(\@curdata); + my $vendorextstr= get_str(\@curdata); + my $funcmode = get_uint16(\@curdata); + + print "GetDeviceInfo(1001)\n"; + print "\tStandardversion: $sver\n"; + print "\tVendorExtID: $vendorid\n"; + print "\tVendorExtVer: $vendorextver\n"; + print "\tVendorExtStr: $vendorextstr\n"; + printf "\tFunctionalMode: %x\n", $funcmode; + } + return; + } elsif (($vendorid == 11) && ($code == 0x9008)) { + print "CANON Start Shooting Mode (9008)\n"; + return; + } elsif (($vendorid == 11) && ($code == 0x900b)) { + print "CANON ViewFinder On(900b)\n"; + return; + } elsif (($vendorid == 11) && ($code == 0x900c)) { + print "CANON ViewFinder Off(900c)\n"; + return; + } elsif ($code == 0x1002) { + printf "OpenSession(1002) id = 0x%08x\n", get_uint32(\@bytes); + return; + } elsif ($code == 0x1004) { + if ($type == 1) { + printf "GetStorageIds(1004)\n"; + } elsif ($type == 3) { + my $nr; + my $i; + + $nr = get_uint32(\@curdata); + printf "GetStorageIds(1004) [%x]=", $nr; + for ($i = 0; $i < $nr; $i++) { + printf("0x%08x",get_uint32(\@curdata)); + if ($i != $nr-1) { + print ","; + } + } + print "\n"; + } + return; + } elsif ($code == 0x1005) { + if ($type ==1 ) { + my $sid = get_uint32(\@bytes); + printf "GetStorageInfo(1005) storage=0x%08lx\n",$sid; + } elsif ($type == 3) { + my $storagetype = get_uint16(\@curdata); + my $filesystemtype = get_uint16(\@curdata); + my $accesscap = get_uint16(\@curdata); + my $maxcap = get_uint32(\@curdata); $dummy = get_uint32(\@curdata); + my $freespace = get_uint32(\@curdata); $dummy = get_uint32(\@curdata); + my $freeimages = get_uint32(\@curdata); + + print "GetStorageInfo(1005) type $storagetype, filesystem $filesystemtype, accesscap $accesscap, freespace $freespace, freeimages $freeimages\n"; + } + return; + } elsif ($code == 0x1014) { + if ($type == 1) { + my $prop = get_uint16(\@bytes); + printf "GetDevicePropDesc(1014) prop = %04x\n", $prop; + } elsif ($type == 3) { + print "GetDevicePropDesc(1014)\n"; + hexdump(@curdata); + } + return; + } elsif ($code == 0x1006) { + if ($type == 1) { + my $p1 = get_uint32(\@bytes); + my $p2 = get_uint32(\@bytes); + my $p3 = get_uint32(\@bytes); + printf "GetNumObjects(1006) 0x%08lx,0x%08lx,0x%08lx\n", $p1,$p2,$p3; + } elsif ($type == 3) { + my $p1 = get_uint32(\@bytes); + print "GetNumObjects(1006) num=$p1\n"; + } + return; + } elsif ($code == 0x1015) { + if ($type == 1) { + my $prop = get_uint32(\@bytes); + printf "GetDevicePropValue(1015) prop = %04x\n", $prop; + } elsif ($type == 3) { + print "GetDevicePropValue(1015) data: "; + hexdump(@curdata); + } + return; + } elsif ($code == 0x1016) { + if ($type == 1) { + my $prop = get_uint32(\@bytes); + printf "SetDevicePropValue(1016) prop = %04x, " . join(",",@bytes) . "\n", $prop; + } elsif ($type == 3) { + print "SetDevicePropValue(1016) data: "; + hexdump(@curdata); + } + return; + } elsif ($code == 0x1007) { + if ($type == 1) { + my $sid = get_uint32(\@bytes); + my $ofc = get_uint32(\@bytes); + my $assoc = get_uint32(\@bytes); + printf("GetObjectHandles(1007) 0x%08x 0x%08x 0x%08x\n", $sid, $ofc, $assoc); + } elsif ($type == 3) { + print "GetObjectHandles(1007) . "+join(",",@curdata) . "\n"; + } + return; + } elsif ($code == 0x1008) { + if ($type ==1 ) { + my $obid = get_uint32(\@bytes); + my $xx = get_uint32(\@bytes); + printf("GetObjectInfo(1008) object=0x%08lx, xx=0x%08lx\n", $obid, $xx); + } elsif ($type == 3) { + my $sid = get_uint32(\@curdata); # 0 + my $of = get_uint16(\@curdata); # 4 + my $protect = get_uint16(\@curdata); # 6 + my $compsize = get_uint32(\@curdata); # 8 + my $thumbof = get_uint16(\@curdata); # 12 + my $thumbsize = get_uint32(\@curdata); # 14 + my $thumbwidth = get_uint32(\@curdata); # 18 + my $thumbheight = get_uint32(\@curdata); # 22 + my $width = get_uint32(\@curdata); # 26 + my $height = get_uint32(\@curdata); # 30 + my $depth = get_uint32(\@curdata); # 34 + my $parent = get_uint32(\@curdata); # 38 + my $assoctype = get_uint16(\@curdata); # 42 + my $assocdesc = get_uint32(\@curdata); # 44 + my $seqnr = get_uint32(\@curdata); # 48 + my $filename = get_str(\@curdata); # 52 + my $capdate = get_str(\@curdata); + my $moddate = get_str(\@curdata); + + print "GetObjectInfo(1008)\n"; + print "\tFileName: $filename\n"; + print "\tcapturedate: $capdate\n"; + print "\tmodificationdate: $moddate\n"; + printf "\tStorageID: %08lx\n", $sid; + printf "\tOFC: %04x\n",$of; + } + return; + } elsif ($code == 0x101b) { + if ($type == 1 ) { + my $obid = get_uint32(\@bytes); + my $offset = get_uint32(\@bytes); + my $maxbytes = get_uint32(\@bytes); + printf("GetPartialObject(1008) object=0x%08lx, offset=%d, maxbytes=%d\n", $obid,$offset, $maxbytes); + } elsif ($type == 3) { + print "GetPartialObject(1008) ... data ...\n"; + @curdata = (); + @bytes = (); + } + return; + } elsif (($vendorid == 11) && ($code == 0x9014)) { + if ($type ==1 ) { + print "FocusLock(9014)\n"; + } elsif ($type == 3) { + printf("FocusLock(9014) ...\n"); + } + return; + } elsif (($vendorid == 11) && ($code == 0x9015)) { + if ($type ==1 ) { + print "FocusUnlock(9015)\n"; + } elsif ($type == 3) { + printf("FocusUnlock(9015) ...\n"); + } + return; + } elsif (($vendorid == 11) && ($code == 0x9020)) { + if ($type ==1 ) { + print "CANON GetChanges(9020)\n"; + } elsif ($type == 3) { + print "CANON GetChanges(9020) "; + my $len = get_uint32(\@curdata); + my $i; + print " codes[$len] = {"; + for ($i = 0; $i < $len ; $i++) { + my $code = get_uint16(\@curdata); + printf("%04x,",$code); + } + print "}\n"; + } + return; + } elsif (($vendorid == 11) && ($code == 0x9013)) { + if ($type == 1) { + print "CANON CheckEvent(9013)\n"; + } elsif ($type == 3) { + my $i; + my $len = get_uint32(\@bytes); + my $type = get_uint16(\@bytes); + my $code = get_uint16(\@bytes); + my $transid = get_uint32(\@bytes); + printf("CANON CheckEvent(9013) len = $len, type = %04x, code = %04x, ", $type, $code); + my $x; + + if ($len > 12 + 4*4) { + $len = 12+4*4; + } + + for ($i = 12; $i < $len ; $i += 4 ) { + $x = get_uint32(\@bytes); + printf ("%08x,", $x); + } + print "\n"; + } + return; + } elsif (($vendorid == 10) && ($code == 0x9007)) { + if ($type == 1) { + my $profnr = get_uint32(\@bytes); + print "NIKON UploadProfile(9007) nr=$profnr\n"; + } elsif ($type == 3) { + print "NIKON UploadProfile(9007), data:\n"; + hexdump(@curdata); + } + return; + } elsif ($code == 0x2001) { + my $code = get_uint32(\@bytes); + print "OK(2001) code=$code"; + hexdump(@bytes); + print "\n"; + return; + } elsif ($code == 0x400d) { + print "CaptureComplete(400d)"; + } else { + printf "%04x ", $code; + } + hexdump (@bytes); + # print "str: $str\n"; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-private.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-private.h new file mode 100644 index 00000000..4a5822e8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp-private.h @@ -0,0 +1,154 @@ +/* ptp-private.h + * + * Copyright (C) 2011 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/* ptp2 camlib private functions */ +#include + +#include + +/* config.c */ +int camera_get_config (Camera *camera, CameraWidget **window, GPContext *context); +int camera_get_config_list (Camera *camera, CameraList *list, GPContext *context); +int camera_get_single_config (Camera *camera, const char *confname, CameraWidget **window, GPContext *context); +int camera_set_config (Camera *camera, CameraWidget *window, GPContext *context); +int camera_set_single_config (Camera *camera, const char *confname, CameraWidget *window, GPContext *context); +int camera_list_config (Camera *camera, CameraList *list, GPContext *context); +int camera_prepare_capture (Camera *camera, GPContext *context); +int camera_unprepare_capture (Camera *camera, GPContext *context); +int camera_canon_eos_update_capture_target(Camera *camera, GPContext *context, int value); +int have_prop(Camera *camera, uint16_t vendor, uint16_t prop); + + +/* library.c */ +int translate_ptp_result (uint16_t result); +uint16_t translate_gp_result_to_ptp (int gp_result); +int fixup_cached_deviceinfo (Camera *camera, PTPDeviceInfo*); + +int chdk_init(Camera*,GPContext*); +uint16_t ptp_init_camerafile_handler (PTPDataHandler *handler, CameraFile *file); +uint16_t ptp_exit_camerafile_handler (PTPDataHandler *handler); + + + +inline static int log_on_ptp_error_helper( int _r, const char* _func, const char* file, int line, const char* func, int vendor ) { + if (_r != PTP_RC_OK) { + const char* ptp_err_str = ptp_strerror(_r, vendor); + gp_log_with_source_location(GP_LOG_ERROR, file, line, func, + "'%s' failed: %s (0x%04x)", _func, ptp_err_str, _r); + } + return _r; +} +#define LOG_ON_PTP_E( RESULT ) \ + log_on_ptp_error_helper( (RESULT), #RESULT, __FILE__, __LINE__, __func__,\ + params->deviceinfo.VendorExtensionID ) + +#define C_PTP(RESULT) do {\ + uint16_t c_ptp_ret = (RESULT);\ + if (c_ptp_ret != PTP_RC_OK) {\ + const char* ptp_err_str = ptp_strerror(c_ptp_ret, params->deviceinfo.VendorExtensionID);\ + GP_LOG_E ("'%s' failed: %s (0x%04x)", #RESULT, ptp_err_str, c_ptp_ret);\ + return translate_ptp_result (c_ptp_ret);\ + }\ +} while(0) + +#define C_PTP_MSG(RESULT, MSG, ...) do {\ + uint16_t c_ptp_msg_ret = (RESULT);\ + if (c_ptp_msg_ret != PTP_RC_OK) {\ + const char* ptp_err_str = ptp_strerror(c_ptp_msg_ret, params->deviceinfo.VendorExtensionID);\ + char fmt_str[256];\ + snprintf(fmt_str, sizeof(fmt_str), "%s%s%s", "'%s' failed: ", MSG, " (0x%04x: %s)");\ + GP_LOG_E (fmt_str, #RESULT, ##__VA_ARGS__, c_ptp_msg_ret, ptp_err_str);\ + return translate_ptp_result (c_ptp_msg_ret);\ + }\ +} while(0) + +#define C_PTP_REP(RESULT) do {\ + uint16_t c_ptp_rep_ret = (RESULT);\ + if (c_ptp_rep_ret != PTP_RC_OK) {\ + const char* ptp_err_str = ptp_strerror(c_ptp_rep_ret, params->deviceinfo.VendorExtensionID);\ + GP_LOG_E ("'%s' failed: '%s' (0x%04x)", #RESULT, ptp_err_str, c_ptp_rep_ret);\ + gp_context_error (context, "%s", dgettext(GETTEXT_PACKAGE, ptp_err_str));\ + return translate_ptp_result (c_ptp_rep_ret);\ + }\ +} while(0) + +#define C_PTP_REP_MSG(RESULT, MSG, ...) do {\ + uint16_t c_ptp_rep_msg_ret = (RESULT);\ + if (c_ptp_rep_msg_ret != PTP_RC_OK) {\ + const char* ptp_err_str = ptp_strerror(c_ptp_rep_msg_ret, params->deviceinfo.VendorExtensionID);\ + char fmt_str[256];\ + snprintf(fmt_str, sizeof(fmt_str), "%s%s%s", "'%s' failed: ", MSG, " (0x%04x: %s)");\ + GP_LOG_E (fmt_str, #RESULT, ##__VA_ARGS__, c_ptp_rep_msg_ret, ptp_err_str);\ + snprintf(fmt_str, sizeof(fmt_str), "%s%s", MSG, " (0x%04x: %s)");\ + gp_context_error (context, fmt_str, ##__VA_ARGS__, c_ptp_rep_msg_ret, dgettext(GETTEXT_PACKAGE, ptp_err_str));\ + return translate_ptp_result (c_ptp_rep_msg_ret);\ + }\ +} while(0) + +#define CR(RESULT) do {\ + int cr_r=(RESULT);\ + if (cr_r<0) {\ + GP_LOG_E ("'%s' failed: '%s' (%d)", #RESULT, gp_port_result_as_string(cr_r), cr_r);\ + return cr_r;\ + }\ +} while (0) + +static inline int +is_canon_eos_m(PTPParams *params) { + if (params->deviceinfo.VendorExtensionID != PTP_VENDOR_CANON) return 0; + if (!ptp_operation_issupported(params, PTP_OC_CANON_EOS_SetRemoteMode)) return 0; + if (!params->deviceinfo.Model) return 0; + + /* classic EOS M */ + if (!strncmp(params->deviceinfo.Model, "Canon EOS M", strlen("Canon EOS M"))) + return 1; + + /* We encountered newer Powershot SX models that seem to have EOS M like firmware, see https://github.com/gphoto/libgphoto2/issues/316 */ + if ( !strncmp(params->deviceinfo.Model, "Canon PowerShot SX", strlen("Canon PowerShot SX")) || + !strncmp(params->deviceinfo.Model, "Canon PowerShot G", strlen("Canon PowerShot G")) || + !strncmp(params->deviceinfo.Model, "Canon Digital IXUS", strlen("Canon Digital IXUS")) + ) + return ptp_operation_issupported(params, PTP_OC_CANON_EOS_RemoteReleaseOn); + return 0; +} + +static inline int +have_eos_prop(PTPParams *params, uint16_t vendor, uint16_t prop) { + unsigned int i; + + /* The special Canon EOS property set gets special treatment. */ + if ((params->deviceinfo.VendorExtensionID != PTP_VENDOR_CANON) || (vendor != PTP_VENDOR_CANON)) + return 0; + for (i=0;inrofcanon_props;i++) + if (params->canon_props[i].proptype == prop) + return 1; + return 0; +} + +struct _CameraPrivateLibrary { + PTPParams params; + int checkevents; +}; + +struct _PTPData { + Camera *camera; + GPContext *context; +}; +typedef struct _PTPData PTPData; diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp.c new file mode 100644 index 00000000..90fc6b33 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp.c @@ -0,0 +1,7838 @@ +/* ptp.c + * + * Copyright (C) 2001-2004 Mariusz Woloszyn + * Copyright (C) 2003-2019 Marcus Meissner + * Copyright (C) 2006-2008 Linus Walleij + * Copyright (C) 2007 Tero Saarni + * Copyright (C) 2009 Axel Waggershauser + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE +#include "config.h" +#include "ptp.h" + +#ifdef HAVE_LIBXML2 +# include +#endif + +#include +#include +#include +#include +#ifdef HAVE_UNISTD_H +# include +#endif + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CHECK_PTP_RC(RESULT) do { uint16_t r = (RESULT); if (r != PTP_RC_OK) return r; } while(0) + +static inline void +ptp_init_container(PTPContainer* ptp, uint16_t code, int n_param, ...) +{ + va_list args; + int i; + + memset(ptp, 0, sizeof(*ptp)); + ptp->Code = code; + ptp->Nparam = n_param; + + va_start(args, n_param); + for (i=0; iParam1)[i] = va_arg(args, uint32_t); + va_end(args); +} + +#define NARGS_SEQ(_1,_2,_3,_4,_5,_6,_7,_8,N,...) N +#define NARGS(...) NARGS_SEQ(-1, ##__VA_ARGS__, 7, 6, 5, 4, 3, 2, 1, 0) + +#define PTP_CNT_INIT(PTP, CODE, ...) \ + ptp_init_container(&PTP, CODE, NARGS(__VA_ARGS__), ##__VA_ARGS__) + +static uint16_t ptp_exit_recv_memory_handler (PTPDataHandler*,unsigned char**,unsigned long*); +static uint16_t ptp_init_recv_memory_handler(PTPDataHandler*); +static uint16_t ptp_init_send_memory_handler(PTPDataHandler*,unsigned char*,unsigned long len); +static uint16_t ptp_exit_send_memory_handler (PTPDataHandler *handler); + +void +ptp_debug (PTPParams *params, const char *format, ...) +{ + va_list args; + + va_start (args, format); + if (params->debug_func!=NULL) + params->debug_func (params->data, format, args); + else + { + vfprintf (stderr, format, args); + fprintf (stderr,"\n"); + fflush (stderr); + } + va_end (args); +} + +void +ptp_error (PTPParams *params, const char *format, ...) +{ + va_list args; + + va_start (args, format); + if (params->error_func!=NULL) + params->error_func (params->data, format, args); + else + { + vfprintf (stderr, format, args); + fprintf (stderr,"\n"); + fflush (stderr); + } + va_end (args); +} + +/* Pack / unpack functions */ + +#include "ptp-pack.c" + +/* major PTP functions */ + +/** + * ptp_transaction: + * params: PTPParams* + * PTPContainer* ptp - general ptp container + * uint16_t flags - lower 8 bits - data phase description + * unsigned int sendlen - senddata phase data length + * char** data - send or receive data buffer pointer + * int* recvlen - receive data length + * + * Performs PTP transaction. ptp is a PTPContainer with appropriate fields + * filled in (i.e. operation code and parameters). It's up to caller to do + * so. + * The flags decide thether the transaction has a data phase and what is its + * direction (send or receive). + * If transaction is sending data the sendlen should contain its length in + * bytes, otherwise it's ignored. + * The data should contain an address of a pointer to data going to be sent + * or is filled with such a pointer address if data are received depending + * od dataphase direction (send or received) or is beeing ignored (no + * dataphase). + * The memory for a pointer should be preserved by the caller, if data are + * beeing retreived the appropriate amount of memory is beeing allocated + * (the caller should handle that!). + * + * Return values: Some PTP_RC_* code. + * Upon success PTPContainer* ptp contains PTP Response Phase container with + * all fields filled in. + **/ +uint16_t +ptp_transaction_new (PTPParams* params, PTPContainer* ptp, + uint16_t flags, uint64_t sendlen, + PTPDataHandler *handler +) { + int tries; + uint16_t cmd; + + if ((params==NULL) || (ptp==NULL)) + return PTP_ERROR_BADPARAM; + + cmd = ptp->Code; + ptp->Transaction_ID=params->transaction_id++; + ptp->SessionID=params->session_id; + /* send request */ + CHECK_PTP_RC(params->sendreq_func (params, ptp, flags)); + /* is there a dataphase? */ + switch (flags&PTP_DP_DATA_MASK) { + case PTP_DP_SENDDATA: + { + uint16_t ret = params->senddata_func(params, ptp, sendlen, handler); + if (ret == PTP_ERROR_CANCEL) + CHECK_PTP_RC(params->cancelreq_func(params, params->transaction_id-1)); + CHECK_PTP_RC(ret); + } + break; + case PTP_DP_GETDATA: + { + uint16_t ret = params->getdata_func(params, ptp, handler); + if (ret == PTP_ERROR_CANCEL) + CHECK_PTP_RC(params->cancelreq_func(params, params->transaction_id-1)); + CHECK_PTP_RC(ret); + } + break; + case PTP_DP_NODATA: + break; + default: + return PTP_ERROR_BADPARAM; + } + tries = 3; + while (tries--) { + uint16_t ret; + /* get response */ + ret = params->getresp_func(params, ptp); + if (ret == PTP_ERROR_RESP_EXPECTED) { + ptp_debug (params,"PTP: response expected but not got, retrying."); + tries++; + continue; + } + CHECK_PTP_RC(ret); + + if (ptp->Transaction_ID < params->transaction_id-1) { + /* The Leica uses Transaction ID 0 on result from CloseSession. */ + if (cmd == PTP_OC_CloseSession) + break; + tries++; + ptp_debug (params, + "PTP: Sequence number mismatch %d vs expected %d, suspecting old reply.", + ptp->Transaction_ID, params->transaction_id-1 + ); + continue; + } + if (ptp->Transaction_ID != params->transaction_id-1) { + /* try to clean up potential left overs from previous session */ + if ((cmd == PTP_OC_OpenSession) && tries) + continue; + ptp_error (params, + "PTP: Sequence number mismatch %d vs expected %d.", + ptp->Transaction_ID, params->transaction_id-1 + ); +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + return PTP_ERROR_BADPARAM; +#endif + } + break; + } + return ptp->Code; +} + +/* memory data get/put handler */ +typedef struct { + unsigned char *data; + unsigned long size, curoff; +} PTPMemHandlerPrivate; + +static uint16_t +memory_getfunc(PTPParams* params, void* private, + unsigned long wantlen, unsigned char *data, + unsigned long *gotlen +) { + PTPMemHandlerPrivate* priv = (PTPMemHandlerPrivate*)private; + unsigned long tocopy = wantlen; + + if (priv->curoff + tocopy > priv->size) + tocopy = priv->size - priv->curoff; + memcpy (data, priv->data + priv->curoff, tocopy); + priv->curoff += tocopy; + *gotlen = tocopy; + return PTP_RC_OK; +} + +static uint16_t +memory_putfunc(PTPParams* params, void* private, + unsigned long sendlen, unsigned char *data +) { + PTPMemHandlerPrivate* priv = (PTPMemHandlerPrivate*)private; + + if (priv->curoff + sendlen > priv->size) { + priv->data = realloc (priv->data, priv->curoff+sendlen); + if (!priv->data) + return PTP_RC_GeneralError; + priv->size = priv->curoff + sendlen; + } + memcpy (priv->data + priv->curoff, data, sendlen); + priv->curoff += sendlen; + return PTP_RC_OK; +} + +/* init private struct for receiving data. */ +static uint16_t +ptp_init_recv_memory_handler(PTPDataHandler *handler) +{ + PTPMemHandlerPrivate* priv; + priv = malloc (sizeof(PTPMemHandlerPrivate)); + if (!priv) + return PTP_RC_GeneralError; + handler->priv = priv; + handler->getfunc = memory_getfunc; + handler->putfunc = memory_putfunc; + priv->data = NULL; + priv->size = 0; + priv->curoff = 0; + return PTP_RC_OK; +} + +/* init private struct and put data in for sending data. + * data is still owned by caller. + */ +static uint16_t +ptp_init_send_memory_handler(PTPDataHandler *handler, + unsigned char *data, unsigned long len +) { + PTPMemHandlerPrivate* priv; + priv = malloc (sizeof(PTPMemHandlerPrivate)); + if (!priv) + return PTP_RC_GeneralError; + handler->priv = priv; + handler->getfunc = memory_getfunc; + handler->putfunc = memory_putfunc; + priv->data = data; + priv->size = len; + priv->curoff = 0; + return PTP_RC_OK; +} + +/* free private struct + data */ +static uint16_t +ptp_exit_send_memory_handler (PTPDataHandler *handler) +{ + PTPMemHandlerPrivate* priv = (PTPMemHandlerPrivate*)handler->priv; + /* data is owned by caller */ + free (priv); + return PTP_RC_OK; +} + +/* hand over our internal data to caller */ +static uint16_t +ptp_exit_recv_memory_handler (PTPDataHandler *handler, + unsigned char **data, unsigned long *size +) { + PTPMemHandlerPrivate* priv = (PTPMemHandlerPrivate*)handler->priv; + *data = priv->data; + *size = priv->size; + free (priv); + return PTP_RC_OK; +} + +/* fd data get/put handler */ +typedef struct { + int fd; +} PTPFDHandlerPrivate; + +static uint16_t +fd_getfunc(PTPParams* params, void* private, + unsigned long wantlen, unsigned char *data, + unsigned long *gotlen +) { + PTPFDHandlerPrivate* priv = (PTPFDHandlerPrivate*)private; + int got; + + got = read (priv->fd, data, wantlen); + if (got != -1) + *gotlen = got; + else + return PTP_RC_GeneralError; + return PTP_RC_OK; +} + +static uint16_t +fd_putfunc(PTPParams* params, void* private, + unsigned long sendlen, unsigned char *data +) { + ssize_t written; + PTPFDHandlerPrivate* priv = (PTPFDHandlerPrivate*)private; + + written = write (priv->fd, data, sendlen); + if (written != sendlen) + return PTP_ERROR_IO; + return PTP_RC_OK; +} + +static uint16_t +ptp_init_fd_handler(PTPDataHandler *handler, int fd) +{ + PTPFDHandlerPrivate* priv; + priv = malloc (sizeof(PTPFDHandlerPrivate)); + if (!priv) + return PTP_RC_GeneralError; + handler->priv = priv; + handler->getfunc = fd_getfunc; + handler->putfunc = fd_putfunc; + priv->fd = fd; + return PTP_RC_OK; +} + +static uint16_t +ptp_exit_fd_handler (PTPDataHandler *handler) +{ + PTPFDHandlerPrivate* priv = (PTPFDHandlerPrivate*)handler->priv; + free (priv); + return PTP_RC_OK; +} + +/* Old style transaction, based on memory */ +/* A note on memory management: + * If called with the flag PTP_DP_GETDATA, this function will internally + * allocate memory as much as necessary. The caller has to free the memory + * returned in *data. If the function returns an error, it will free any + * memory it might have allocated. The recvlen may be NULL. After the + * function returns, *data will be initialized (valid memory pointer or NULL), + * i.e. it is not necessary to initialize *data or *recvlen beforehand. + */ +uint16_t +ptp_transaction (PTPParams* params, PTPContainer* ptp, + uint16_t flags, uint64_t sendlen, + unsigned char **data, unsigned int *recvlen +) { + PTPDataHandler handler; + uint16_t ret; + + switch (flags & PTP_DP_DATA_MASK) { + case PTP_DP_SENDDATA: + if (!data) + return PTP_ERROR_BADPARAM; + CHECK_PTP_RC(ptp_init_send_memory_handler (&handler, *data, sendlen)); + break; + case PTP_DP_GETDATA: + if (!data) + return PTP_ERROR_BADPARAM; + *data = NULL; + if (recvlen) + *recvlen = 0; + CHECK_PTP_RC(ptp_init_recv_memory_handler (&handler)); + break; + default:break; + } + ret = ptp_transaction_new (params, ptp, flags, sendlen, &handler); + switch (flags & PTP_DP_DATA_MASK) { + case PTP_DP_SENDDATA: + ptp_exit_send_memory_handler (&handler); + break; + case PTP_DP_GETDATA: { + unsigned long len; + ptp_exit_recv_memory_handler (&handler, data, &len); + if (ret != PTP_RC_OK) { + len = 0; + free(*data); + *data = NULL; + } + if (recvlen) + *recvlen = len; + break; + } + default:break; + } + return ret; +} + + +/** + * PTP operation functions + * + * all ptp_ functions should take integer parameters + * in host byte order! + **/ + + +/** + * ptp_getdeviceinfo: + * params: PTPParams* + * + * Gets device info dataset and fills deviceinfo structure. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getdeviceinfo (PTPParams* params, PTPDeviceInfo* deviceinfo) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + int ret; + + PTP_CNT_INIT(ptp, PTP_OC_GetDeviceInfo); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + ret = ptp_unpack_DI(params, data, deviceinfo, size); + free(data); + if (ret) + return PTP_RC_OK; + else + return PTP_ERROR_IO; +} + +uint16_t +ptp_canon_eos_getdeviceinfo (PTPParams* params, PTPCanonEOSDeviceInfo*di) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + int ret; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_GetDeviceInfoEx); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + ret = ptp_unpack_EOS_DI(params, data, di, size); + free (data); + if (ret) + return PTP_RC_OK; + else + return PTP_ERROR_IO; +} + +uint16_t +ptp_canon_eos_905f (PTPParams* params, uint32_t x) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, 0x905f, x); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + free (data); + return PTP_RC_OK; +} + +#ifdef HAVE_LIBXML2 +static int +traverse_tree (PTPParams *params, int depth, xmlNodePtr node) +{ + xmlNodePtr next; + xmlChar *xchar; + int n; + char *xx; + + + if (!node) return 0; + xx = malloc (depth * 4 + 1); + memset (xx, ' ', depth*4); + xx[depth*4] = 0; + + n = xmlChildElementCount (node); + + next = node; + do { + fprintf(stderr,"%snode %s\n", xx,next->name); + fprintf(stderr,"%selements %d\n", xx,n); + xchar = xmlNodeGetContent (next); + fprintf(stderr,"%scontent %s\n", xx,xchar); + traverse_tree (params, depth+1,xmlFirstElementChild (next)); + } while ((next = xmlNextElementSibling (next))); + free (xx); + return PTP_RC_OK; +} + +static int +parse_9301_cmd_tree (PTPParams *params, xmlNodePtr node, PTPDeviceInfo *di) +{ + xmlNodePtr next; + int cnt; + + cnt = 0; + next = xmlFirstElementChild (node); + while (next) { + cnt++; + next = xmlNextElementSibling (next); + } + di->OperationsSupported_len = cnt; + di->OperationsSupported = malloc (cnt*sizeof(di->OperationsSupported[0])); + cnt = 0; + next = xmlFirstElementChild (node); + while (next) { + unsigned int p; + + sscanf((char*)next->name, "c%04x", &p); + ptp_debug( params, "cmd %s / 0x%04x", next->name, p); + di->OperationsSupported[cnt++] = p; + next = xmlNextElementSibling (next); + } + return PTP_RC_OK; +} + +static int +parse_9301_value (PTPParams *params, const char *str, uint16_t type, PTPPropertyValue *propval) +{ + switch (type) { + case 6: { /*UINT32*/ + unsigned int x; + if (!sscanf(str,"%08x", &x)) { + ptp_debug( params, "could not parse uint32 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->u32 = x; + break; + } + case 5: { /*INT32*/ + int x; + if (!sscanf(str,"%08x", &x)) { + ptp_debug( params, "could not parse int32 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->i32 = x; + break; + } + case 4: { /*UINT16*/ + unsigned int x; + if (!sscanf(str,"%04x", &x)) { + ptp_debug( params, "could not parse uint16 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->u16 = x; + break; + } + case 3: { /*INT16*/ + int x; + if (!sscanf(str,"%04x", &x)) { + ptp_debug( params, "could not parse int16 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->i16 = x; + break; + } + case 2: { /*UINT8*/ + unsigned int x; + if (!sscanf(str,"%02x", &x)) { + ptp_debug( params, "could not parse uint8 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->u8 = x; + break; + } + case 1: { /*INT8*/ + int x; + if (!sscanf(str,"%02x", &x)) { + ptp_debug( params, "could not parse int8 %s", str); + return PTP_RC_GeneralError; + } + ptp_debug( params, "\t%d", x); + propval->i8 = x; + break; + } + case 65535: { /* string */ + int len; + + /* ascii ptp string, 1 byte length, little endian 16 bit chars */ + if (sscanf(str,"%02x", &len)) { + int i; + char *xstr = malloc(len+1); + for (i=0;i>8) & 0xff) | ((xc & 0xff) << 8); + xstr[i] = cx; + } + xstr[len] = 0; + } + ptp_debug( params, "\t%s", xstr); + propval->str = xstr; + break; + } + ptp_debug( params, "string %s not parseable!", str); + return PTP_RC_GeneralError; + } + case 7: /*INT64*/ + case 8: /*UINT64*/ + case 9: /*INT128*/ + case 10: /*UINT128*/ + default: + ptp_debug( params, "unhandled data type %d!", type); + return PTP_RC_GeneralError; + } + return PTP_RC_OK; +} + +static int +parse_9301_propdesc (PTPParams *params, xmlNodePtr next, PTPDevicePropDesc *dpd) +{ + int type = -1; + + if (!next) + return PTP_RC_GeneralError; + + ptp_debug (params, "parse_9301_propdesc"); + dpd->FormFlag = PTP_DPFF_None; + dpd->GetSet = PTP_DPGS_Get; + do { + if (!strcmp((char*)next->name,"type")) { /* propdesc.DataType */ + if (!sscanf((char*)xmlNodeGetContent (next), "%04x", &type)) { + ptp_debug( params, "\ttype %s not parseable?",xmlNodeGetContent (next)); + return 0; + } + ptp_debug( params, "type 0x%x", type); + dpd->DataType = type; + continue; + } + if (!strcmp((char*)next->name,"attribute")) { /* propdesc.GetSet */ + int attr; + + if (!sscanf((char*)xmlNodeGetContent (next), "%02x", &attr)) { + ptp_debug( params, "\tattr %s not parseable",xmlNodeGetContent (next)); + return 0; + } + ptp_debug( params, "attribute 0x%x", attr); + dpd->GetSet = attr; + continue; + } + if (!strcmp((char*)next->name,"default")) { /* propdesc.FactoryDefaultValue */ + ptp_debug( params, "default value"); + parse_9301_value (params, (char*)xmlNodeGetContent (next), type, &dpd->FactoryDefaultValue); + continue; + } + if (!strcmp((char*)next->name,"value")) { /* propdesc.CurrentValue */ + ptp_debug( params, "current value"); + parse_9301_value (params, (char*)xmlNodeGetContent (next), type, &dpd->CurrentValue); + continue; + } + if (!strcmp((char*)next->name,"enum")) { /* propdesc.FORM.Enum */ + int n,i; + char *s; + + ptp_debug( params, "enum"); + dpd->FormFlag = PTP_DPFF_Enumeration; + s = (char*)xmlNodeGetContent (next); + n = 0; + do { + s = strchr(s,' '); + if (s) s++; + n++; + } while (s); + dpd->FORM.Enum.NumberOfValues = n; + dpd->FORM.Enum.SupportedValue = malloc (n * sizeof(PTPPropertyValue)); + s = (char*)xmlNodeGetContent (next); + i = 0; + do { + parse_9301_value (params, s, type, &dpd->FORM.Enum.SupportedValue[i]); /* should turn ' ' into \0? */ + i++; + s = strchr(s,' '); + if (s) s++; + } while (s && (iname,"range")) { /* propdesc.FORM.Enum */ + char *s = (char*)xmlNodeGetContent (next); + dpd->FormFlag = PTP_DPFF_Range; + ptp_debug( params, "range"); + parse_9301_value (params, s, type, &dpd->FORM.Range.MinimumValue); /* should turn ' ' into \0? */ + s = strchr(s,' '); + if (!s) continue; + s++; + parse_9301_value (params, s, type, &dpd->FORM.Range.MaximumValue); /* should turn ' ' into \0? */ + s = strchr(s,' '); + if (!s) continue; + s++; + parse_9301_value (params, s, type, &dpd->FORM.Range.StepSize); /* should turn ' ' into \0? */ + + continue; + } + ptp_debug (params, "\tpropdescvar: %s", next->name); + traverse_tree (params, 3, next); + } while ((next = xmlNextElementSibling (next))); + return PTP_RC_OK; +} + +static int +parse_9301_prop_tree (PTPParams *params, xmlNodePtr node, PTPDeviceInfo *di) +{ + xmlNodePtr next; + int cnt; + unsigned int i; + + cnt = 0; + next = xmlFirstElementChild (node); + while (next) { + cnt++; + next = xmlNextElementSibling (next); + } + + di->DevicePropertiesSupported_len = cnt; + di->DevicePropertiesSupported = malloc (cnt*sizeof(di->DevicePropertiesSupported[0])); + cnt = 0; + next = xmlFirstElementChild (node); + while (next) { + unsigned int p; + PTPDevicePropDesc dpd; + + sscanf((char*)next->name, "p%04x", &p); + ptp_debug( params, "prop %s / 0x%04x", next->name, p); + parse_9301_propdesc (params, xmlFirstElementChild (next), &dpd); + dpd.DevicePropertyCode = p; + di->DevicePropertiesSupported[cnt++] = p; + + /* add to cache of device propdesc */ + for (i=0;inrofdeviceproperties;i++) + if (params->deviceproperties[i].desc.DevicePropertyCode == p) + break; + if (i == params->nrofdeviceproperties) { + params->deviceproperties = realloc(params->deviceproperties,(i+1)*sizeof(params->deviceproperties[0])); + memset(¶ms->deviceproperties[i],0,sizeof(params->deviceproperties[0])); + params->nrofdeviceproperties++; + } else { + ptp_free_devicepropdesc (¶ms->deviceproperties[i].desc); + } + /* FIXME: free old entry */ + /* we are not using dpd, so copy it directly to the cache */ + time( ¶ms->deviceproperties[i].timestamp); + params->deviceproperties[i].desc = dpd; + + next = xmlNextElementSibling (next); + } + return PTP_RC_OK; +} + +static int +parse_9301_event_tree (PTPParams *params, xmlNodePtr node, PTPDeviceInfo *di) +{ + xmlNodePtr next; + int cnt; + + cnt = 0; + next = xmlFirstElementChild (node); + while (next) { + cnt++; + next = xmlNextElementSibling (next); + } + di->EventsSupported_len = cnt; + di->EventsSupported = malloc (cnt*sizeof(di->EventsSupported[0])); + cnt = 0; + next = xmlFirstElementChild (node); + while (next) { + unsigned int p; + + sscanf((char*)next->name, "e%04x", &p); + ptp_debug( params, "event %s / 0x%04x", next->name, p); + di->EventsSupported[cnt++] = p; + next = xmlNextElementSibling (next); + } + return PTP_RC_OK; +} + +static int +parse_9301_tree (PTPParams *params, xmlNodePtr node, PTPDeviceInfo *di) +{ + xmlNodePtr next; + + next = xmlFirstElementChild (node); + while (next) { + if (!strcmp ((char*)next->name, "cmd")) { + parse_9301_cmd_tree (params, next, di); + next = xmlNextElementSibling (next); + continue; + } + if (!strcmp ((char*)next->name, "prop")) { + parse_9301_prop_tree (params, next, di); + next = xmlNextElementSibling (next); + continue; + } + if (!strcmp ((char*)next->name, "event")) { + parse_9301_event_tree (params, next, di); + next = xmlNextElementSibling (next); + continue; + } + fprintf (stderr,"9301: unhandled type %s\n", next->name); + next = xmlNextElementSibling (next); + } + /*traverse_tree (0, node);*/ + return PTP_RC_OK; +} +#endif + +uint16_t +ptp_olympus_omd_capture (PTPParams* params) +{ + PTPContainer ptp; + uint16_t ret; + unsigned int size = 0; + unsigned char *buffer = NULL; + +/* these two trigger the capture ... one might be "shutter down", the other "shutter up"? */ + PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_OMD_Capture, 0x3); // initiate capture + ret = ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL); + PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_OMD_Capture, 0x6); // initiate capture + ret = ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL); + + usleep(500); + +/* this only fetches changed props */ + PTP_CNT_INIT(ptp, 0x9486); /* query changed properties */ + ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &buffer, &size); + free (buffer); + return ret; +} +/** + * ptp_olympus_bulbstart: + * params: PTPParams* + * + * Starts Olympus Bulb capture. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_olympus_omd_bulbstart (PTPParams* params) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_OMD_Capture, 0x3); // initiate capture + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + if ((ptp.Nparam >= 1) && ((ptp.Param1 & 0x7000) == 0x2000)) + return ptp.Param1; + return PTP_RC_OK; +} + + +/** + * ptp_olympus_bulbend: + * params: PTPParams* + * + * Stops Olympus Bulb capture. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_olympus_omd_bulbend (PTPParams* params) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_OMD_Capture, 0x6); // initiate capture + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + if ((ptp.Nparam >= 1) && ((ptp.Param1 & 0x7000) == 0x2000)) + return ptp.Param1; + return PTP_RC_OK; +} + +uint16_t +ptp_panasonic_liveview_image (PTPParams* params, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_PANASONIC_LiveviewImage); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +uint16_t +ptp_olympus_init_pc_mode (PTPParams* params) +{ + uint16_t ret; + PTPPropertyValue propval; + PTPContainer event; + int i; + + ptp_debug (params,"PTP: (Olympus Init) switching to PC mode..."); + + propval.u16 = 1; + ret = ptp_setdevicepropvalue (params, 0xD052, &propval, PTP_DTC_UINT16); + usleep(100000); + + for(i = 0; i < 2; i++) { + ptp_debug (params,"PTP: (Olympus Init) checking events..."); + /* Just busy loop until the camera is ready again. */ + ptp_check_event (params); + if (ptp_get_one_event(params, &event)) break; + usleep(100000); + } + +/* + * 9489 code: sends a list of PTP device properties supported apparently? on E-M1. + * F4 00 00 00 count +02 D0 03 D0 04 D0 05 D0 06 D0 07 D0 08 D0 09 D0 0C D0 0D D0 0E D0 0F D0 10 D0 11 D0 13 D0 14 D0 18 D0 1A D0 1B D0 1C D0 1D D0 1E D0 1F D0 20 D0 21 D0 22 D0 23 D0 24 D0 25 D0 26 D0 27 D0 28 D0 29 D0 2A D0 2B D0 2C D0 2D D0 2E D0 2F D0 30 D0 31 D0 32 D0 33 D0 34 D0 35 D0 36 D0 37 D0 38 D0 39 D0 3A D0 3B D0 3C D0 3D D0 3E D0 3F D0 40 D0 41 D0 42 D0 43 D0 44 D0 45 D0 46 D0 47 D0 48 D0 49 D0 4A D0 4B D0 4C D0 4D D0 4E D0 4F D0 50 D0 51 D0 52 D0 58 D0 59 D0 5F D0 60 D0 61 D0 62 D0 64 D0 65 D0 66 D0 68 D0 69 D0 70 D0 73 D0 67 D0 5A D0 5B D0 63 D0 6A D0 6B D0 6C D0 71 D0 72 D0 7A D0 7B D0 7C D0 7D D0 7F D0 80 D0 81 D0 82 D0 86 D0 87 D0 8B D0 8C D0 8E D0 8F D0 97 D0 9F D0 C4 D0 C5 D0 A2 D0 A3 D0 A4 D0 A6 D0 A7 D0 A8 D0 A9 D0 AA D0 AB D0 AC D0 AD D0 AE D0 B2 D0 B3 D0 B4 D0 B5 D0 B6 D0 B7 D0 B8 D0 B9 D0 BA D0 BC D0 BD D0 BE D0 BF D0 C0 D0 C6 D0 C7 D0 C8 D0 C9 D0 CB D0 CC D0 CD D0 CE D0 CF D0 D0 D0 D1 D0 D2 D0 D3 D0 D4 D0 D5 D0 D6 D0 D7 D0 D8 D0 D9 D0 DA D0 DB D0 DC D0 DD D0 DE D0 E2 D0 E3 D0 E4 D0 E5 D0 E6 D0 E7 D0 E8 D0 E9 D0 EA D0 EC D0 EF D0 F0 D0 F1 D0 F2 D0 F3 D0 F4 D0 F5 D0 F6 D0 F7 D0 F8 D0 F9 D0 FA D0 FB D0 FC D0 FD D0 FE D0 FF D0 00 D1 01 D1 02 D1 03 D1 04 D1 05 D1 06 D1 07 D1 08 D1 09 D1 0A D1 0B D1 0C D1 0D D1 0E D1 0F D1 10 D1 11 D1 12 D1 13 D1 14 D1 15 D1 16 D1 17 D1 18 D1 19 D1 1A D1 1B D1 1C D1 1D D1 1E D1 1F D1 20 D1 51 D1 52 D1 5A D1 24 D1 25 D1 26 D1 27 D1 28 D1 2D D1 2E D1 2F D1 30 D1 31 D1 34 D1 35 D1 36 D1 37 D1 38 D1 39 D1 3A D1 + * + * 9486: queries something. gets 00 00 00 00 ... or list of devicepropdesc in standard ptp propdesc format. + * could be some form of "properties changed" query perhaps? (32bit count in front) + * might only monitor/return properties set by 9489? + * + * 948a: seems also be some kind of polling function, returns 32bit 0 if nothing is there. similar to above? + * returns properties sent by 94b8. + * + * 948b: also sends a list of ptp devprops: + * 11 00 00 00 53 D0 54 D0 55 D0 56 D0 57 D0 6D D0 5C D0 5D D0 5E D0 74 D0 75 D0 83 D0 84 D0 85 D0 ED D0 79 D0 E1 D0 + * Events: c008: 21 D1 00 00 0F 00 00 00 01 00 00 00 + */ + //ptp_debug (params,"PTP: (Olympus Init) getting response..."); + //gp_port_set_timeout (camera->port, timeout); + //ret=ptp_transaction(params, &ptp, PTP_DP_RESPONSEONLY, size, &data, NULL); + //if(data) free(data); + return ret; +} + +uint16_t +ptp_olympus_liveview_image (PTPParams* params, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + uint32_t param1 = 1; + + PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_GetLiveViewImage, param1); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +uint16_t +ptp_olympus_sdram_image (PTPParams* params, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_OMD_GetImage); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +uint16_t +ptp_panasonic_9401 (PTPParams* params, uint32_t param1) +{ + PTPContainer ptp; + uint16_t ret; + unsigned int *size = 0; + unsigned char *data = NULL; + + PTP_CNT_INIT(ptp, PTP_OC_PANASONIC_9401, param1); + ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, size); + free(data); + return ret; +} + +uint16_t +ptp_panasonic_setdeviceproperty (PTPParams* params, uint32_t propcode, + unsigned char *value, uint16_t valuesize) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data; + uint32_t size = 4 + 4 + valuesize; + + data = calloc(size, sizeof(unsigned char)); + + htod32a(data, propcode); /* memcpy(data, &propcode, 4); */ + htod16a(&data[4], valuesize); /* memcpy(&data[4], &valuesize, 2); */ + + memcpy(&data[8], value, valuesize); /* perhaps check if one of the DPV packagers work? */ + + PTP_CNT_INIT(ptp, PTP_OC_PANASONIC_SetProperty, propcode); + ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free(data); + return ret; +} + +uint16_t +ptp_panasonic_getdevicepropertysize (PTPParams *params, uint32_t propcode) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size = 0; + + PTP_CNT_INIT(ptp, PTP_OC_PANASONIC_9107, propcode, 0, 0); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + if (!data) return PTP_RC_GeneralError; + + if (size < 4) return PTP_RC_GeneralError; + uint32_t headerLength = dtoh32a( (data) + 4 ); + if (size < 4 + 6 * 4) return PTP_RC_GeneralError; + uint32_t propertyCode = dtoh32a( (data) + 4 + 6 * 4 ); + if (size < headerLength * 4 + 2 * 4) return PTP_RC_GeneralError; + + ptp_debug(params, "header: %lu, code: %lu\n", headerLength, propertyCode); + + return PTP_RC_OK; +} + +uint16_t +ptp_panasonic_manualfocusdrive (PTPParams* params, uint16_t mode) +{ + PTPContainer ptp; + unsigned char data[10]; + unsigned char *xdata = data; + uint32_t propcode = 0x03010011; + uint32_t type = 2; + + htod32a(data, propcode); /* memcpy(data, &propcode, 4); */ + htod32a(&data[4], type); /* memcpy(&data[4], &type, 4); */ + htod16a(&data[8], mode); /* memcpy(&data[8], &mode, 2); */ + + PTP_CNT_INIT(ptp, PTP_OC_PANASONIC_ManualFocusDrive, propcode); + return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, sizeof(data), &xdata, NULL); +} + +uint16_t +ptp_panasonic_setcapturetarget (PTPParams* params, uint16_t mode) // mode == 1 == RAM, mode == 0 == SD +{ + PTPContainer ptp; + unsigned char data[10]; + uint32_t propcode = 0x00000000; + uint32_t propcodedata = 0x08000091; + uint32_t type = 2; + unsigned char *xdata = (unsigned char*)data; + + htod32a(data, propcodedata); /* memcpy(data, &propcodedata, 4); */ + htod32a(&data[4], type); /* memcpy(&data[4], &type, 4); */ + htod16a(&data[8], mode); /* memcpy(&data[8], &mode, 2); */ + + PTP_CNT_INIT(ptp, PTP_OC_PANASONIC_SetCaptureTarget, propcode); + return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, sizeof(data), &xdata, NULL); +} + +uint16_t +ptp_panasonic_getdevicepropertydesc (PTPParams *params, uint32_t propcode, uint16_t valuesize, uint32_t *currentValue, uint32_t **propertyValueList, uint32_t *propertyValueListLength) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size = 0; + uint16_t ret = 0; + + PTP_CNT_INIT(ptp, PTP_OC_PANASONIC_ListProperty, propcode, 0, 0); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + if (!data) return PTP_RC_GeneralError; + + + if (size < 4) return PTP_RC_GeneralError; + uint32_t headerLength = dtoh32a( (data) + 4 ); + if (size < 4 + 6 * 4) return PTP_RC_GeneralError; + uint32_t propertyCode = dtoh32a( (data) + 4 + 6 * 4 ); + if (size < headerLength * 4 + 2 * 4) return PTP_RC_GeneralError; + + if(valuesize == 2) { + *currentValue = (uint32_t) dtoh16a( (data) + headerLength * 4 + 2 * 4 ); + } else if(valuesize == 4) { + *currentValue = dtoh32a( (data) + headerLength * 4 + 2 * 4 ); + } else { + return PTP_RC_GeneralError; + } + if (size < headerLength * 4 + 2 * 4 + valuesize) return PTP_RC_GeneralError; + *propertyValueListLength = dtoh32a( (data) + headerLength * 4 + 2 * 4 + valuesize); + + ptp_debug(params, "header: %lu, code: 0x%lx, value: %lu, count: %lu", headerLength, propertyCode, *currentValue, *propertyValueListLength); + + if (size < headerLength * 4 + 3 * 4 + valuesize + (*propertyValueListLength) * valuesize) return PTP_RC_GeneralError; + + *propertyValueList = calloc(*propertyValueListLength, sizeof(uint32_t)); + + uint16_t i; + for(i = 0; i < *propertyValueListLength; i++) { + if(valuesize == 2) { + (*propertyValueList)[i] = (uint32_t) dtoh16a( (data) + headerLength * 4 + 3 * 4 + valuesize + i * valuesize); + } else if(valuesize == 4) { + (*propertyValueList)[i] = dtoh32a( (data) + headerLength * 4 + 3 * 4 + valuesize + i * valuesize); + } + //printf("Property: %lu\n", (*propertyValueList)[i]); + } + + free (data); + return ret; +} + + +uint16_t +ptp_panasonic_getdeviceproperty (PTPParams *params, uint32_t propcode, uint16_t *valuesize, uint32_t *currentValue) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size = 0; + uint16_t ret = PTP_RC_OK; + + PTP_CNT_INIT(ptp, PTP_OC_PANASONIC_GetProperty, propcode); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + if (!data) return PTP_RC_GeneralError; + + if(size < 8) return PTP_RC_GeneralError; + *valuesize = dtoh32a( (data + 4) ); + + if(size < 8 + (*valuesize)) return PTP_RC_GeneralError; + if(*valuesize == 4) { + *currentValue = dtoh32a( (data + 8) ); + } else if(*valuesize == 2) { + *currentValue = (uint32_t) dtoh16a( (data + 8) ); + } else { + return PTP_RC_GeneralError; + } + //printf("ptp_panasonic_getdeviceproperty: size: %lu, valuesize: %d, currentValue: %lu\n", size, *valuesize, *currentValue); + + free (data); + return ret; +} + +#ifdef HAVE_LIBXML2 +static uint16_t +ptp_olympus_parse_output_xml(PTPParams* params, char*data, int len, xmlNodePtr *code) +{ + xmlDocPtr docin; + xmlNodePtr docroot, output, next; + int result, xcode; + + *code = NULL; + + docin = xmlReadMemory ((char*)data, len, "http://gphoto.org/", "utf-8", 0); + if (!docin) return PTP_RC_GeneralError; + docroot = xmlDocGetRootElement (docin); + if (!docroot) { + xmlFreeDoc (docin); + return PTP_RC_GeneralError; + } + + if (strcmp((char*)docroot->name,"x3c")) { + ptp_debug (params, "olympus: docroot is not x3c, but %s", docroot->name); + xmlFreeDoc (docin); + return PTP_RC_GeneralError; + } + if (xmlChildElementCount(docroot) != 1) { + ptp_debug (params, "olympus: x3c: expected 1 child, got %ld", xmlChildElementCount(docroot)); + xmlFreeDoc (docin); + return PTP_RC_GeneralError; + } + output = xmlFirstElementChild (docroot); + if (strcmp((char*)output->name, "output") != 0) { + ptp_debug (params, "olympus: x3c node: expected child 'output', but got %s", (char*)output->name); + xmlFreeDoc (docin); + return PTP_RC_GeneralError; + } + next = xmlFirstElementChild (output); + + result = PTP_RC_GeneralError; + + while (next) { + if (!strcmp((char*)next->name,"result")) { + xmlChar *xchar; + + xchar = xmlNodeGetContent (next); + if (!sscanf((char*)xchar,"%04x",&result)) + ptp_debug (params, "failed scanning result from %s", xchar); + ptp_debug (params, "ptp result is 0x%04x", result); + next = xmlNextElementSibling (next); + continue; + } + if (sscanf((char*)next->name,"c%x", &xcode)) { + ptp_debug (params, "ptp code node found %s", (char*)next->name); + *code = next; + next = xmlNextElementSibling (next); + continue; + } + ptp_debug (params, "unhandled node %s", (char*)next->name); + next = xmlNextElementSibling (next); + } + + if (result != PTP_RC_OK) { + *code = NULL; + xmlFreeDoc (docin); + } + return result; +} +#endif + +uint16_t +ptp_olympus_getdeviceinfo (PTPParams* params, PTPDeviceInfo *di) +{ +#ifdef HAVE_LIBXML2 + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + unsigned int size; + xmlNodePtr code; + + memset (di, 0, sizeof(PTPDeviceInfo)); + + PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_GetDeviceInfo); + ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size); + /* TODO: check for error, only parse_output_xml if ret == PTP_RC_OK? + * where is 'data' going to be deallocated? */ + ret = ptp_olympus_parse_output_xml(params,(char*)data,size,&code); + if (ret != PTP_RC_OK) + return ret; + + ret = parse_9301_tree (params, code, di); + + xmlFreeDoc(code->doc); + return ret; +#else + return PTP_RC_GeneralError; +#endif +} + +uint16_t +ptp_olympus_opensession (PTPParams* params, unsigned char**data, unsigned int *len) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_OpenSession); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, len); +} + +uint16_t +ptp_olympus_getcameraid (PTPParams* params, unsigned char**data, unsigned int *len) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_GetCameraID); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, len); +} + +/** + * ptp_generic_no_data: + * params: PTPParams* + * code PTP OP Code + * n_param count of parameters + * ... variable argument list ... + * + * Emits a generic PTP command without any data transfer. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_generic_no_data (PTPParams* params, uint16_t code, unsigned int n_param, ...) +{ + PTPContainer ptp; + va_list args; + unsigned int i; + + if( n_param > 5 ) + return PTP_ERROR_BADPARAM; + + memset(&ptp, 0, sizeof(ptp)); + ptp.Code=code; + ptp.Nparam=n_param; + + va_start(args, n_param); + for( i=0; isession_id=0x00000000; + /* TransactionID should be set to 0 also! */ + params->transaction_id=0x0000000; + /* zero out response packet buffer */ + params->response_packet = NULL; + params->response_packet_size = 0; + /* no split headers */ + params->split_header_data = 0; + + PTP_CNT_INIT(ptp, PTP_OC_OpenSession, session); + ret=ptp_transaction_new(params, &ptp, PTP_DP_NODATA, 0, NULL); + /* TODO: check for error */ + /* now set the global session id to current session number */ + params->session_id=session; + return ret; +} + +void +ptp_free_devicepropvalue(uint16_t dt, PTPPropertyValue* dpd) +{ + switch (dt) { + case PTP_DTC_INT8: case PTP_DTC_UINT8: + case PTP_DTC_UINT16: case PTP_DTC_INT16: + case PTP_DTC_UINT32: case PTP_DTC_INT32: + case PTP_DTC_UINT64: case PTP_DTC_INT64: + case PTP_DTC_UINT128: case PTP_DTC_INT128: + /* Nothing to free */ + break; + case PTP_DTC_AINT8: case PTP_DTC_AUINT8: + case PTP_DTC_AUINT16: case PTP_DTC_AINT16: + case PTP_DTC_AUINT32: case PTP_DTC_AINT32: + case PTP_DTC_AUINT64: case PTP_DTC_AINT64: + case PTP_DTC_AUINT128: case PTP_DTC_AINT128: + free(dpd->a.v); + break; + case PTP_DTC_STR: + free(dpd->str); + break; + } +} + +void +ptp_free_devicepropdesc(PTPDevicePropDesc* dpd) +{ + uint16_t i; + + ptp_free_devicepropvalue (dpd->DataType, &dpd->FactoryDefaultValue); + ptp_free_devicepropvalue (dpd->DataType, &dpd->CurrentValue); + switch (dpd->FormFlag) { + case PTP_DPFF_Range: + ptp_free_devicepropvalue (dpd->DataType, &dpd->FORM.Range.MinimumValue); + ptp_free_devicepropvalue (dpd->DataType, &dpd->FORM.Range.MaximumValue); + ptp_free_devicepropvalue (dpd->DataType, &dpd->FORM.Range.StepSize); + break; + case PTP_DPFF_Enumeration: + if (dpd->FORM.Enum.SupportedValue) { + for (i=0;iFORM.Enum.NumberOfValues;i++) + ptp_free_devicepropvalue (dpd->DataType, dpd->FORM.Enum.SupportedValue+i); + free (dpd->FORM.Enum.SupportedValue); + } + } + dpd->DataType = PTP_DTC_UNDEF; + dpd->FormFlag = PTP_DPFF_None; +} + + +void +ptp_free_objectpropdesc(PTPObjectPropDesc* opd) +{ + uint16_t i; + + ptp_free_devicepropvalue (opd->DataType, &opd->FactoryDefaultValue); + switch (opd->FormFlag) { + case PTP_OPFF_None: + break; + case PTP_OPFF_Range: + ptp_free_devicepropvalue (opd->DataType, &opd->FORM.Range.MinimumValue); + ptp_free_devicepropvalue (opd->DataType, &opd->FORM.Range.MaximumValue); + ptp_free_devicepropvalue (opd->DataType, &opd->FORM.Range.StepSize); + break; + case PTP_OPFF_Enumeration: + if (opd->FORM.Enum.SupportedValue) { + for (i=0;iFORM.Enum.NumberOfValues;i++) + ptp_free_devicepropvalue (opd->DataType, opd->FORM.Enum.SupportedValue+i); + free (opd->FORM.Enum.SupportedValue); + } + break; + case PTP_OPFF_DateTime: + case PTP_OPFF_FixedLengthArray: + case PTP_OPFF_RegularExpression: + case PTP_OPFF_ByteArray: + case PTP_OPFF_LongString: + /* Ignore these presently, we cannot unpack them, so there is nothing to be freed. */ + break; + default: + fprintf (stderr, "Unknown OPFF type %d\n", opd->FormFlag); + break; + } +} + + +/** + * ptp_free_params: + * params: PTPParams* + * + * Frees all data within the PTPParams struct. + * + * Return values: Some PTP_RC_* code. + **/ +void +ptp_free_params (PTPParams *params) +{ + unsigned int i; + + free (params->cameraname); + free (params->wifi_profiles); + for (i=0;inrofobjects;i++) + ptp_free_object (¶ms->objects[i]); + free (params->objects); + free (params->storageids.Storage); + free (params->events); + for (i=0;inrofcanon_props;i++) { + free (params->canon_props[i].data); + ptp_free_devicepropdesc (¶ms->canon_props[i].dpd); + } + free (params->canon_props); + free (params->backlogentries); + + for (i=0;inrofdeviceproperties;i++) + ptp_free_devicepropdesc (¶ms->deviceproperties[i].desc); + free (params->deviceproperties); + + ptp_free_DI (¶ms->deviceinfo); +} + +/** + * ptp_getststorageids: + * params: PTPParams* + * + * Gets array of StorageIDs and fills the storageids structure. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getstorageids (PTPParams* params, PTPStorageIDs* storageids) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_GetStorageIDs); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + ptp_unpack_SIDs(params, data, storageids, size); + free(data); + return PTP_RC_OK; +} + +/** + * ptp_getststorageinfo: + * params: PTPParams* + * storageid - StorageID + * + * Gets StorageInfo dataset of desired storage and fills storageinfo + * structure. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getstorageinfo (PTPParams* params, uint32_t storageid, + PTPStorageInfo* storageinfo) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_GetStorageInfo, storageid); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + if (!data || !size) + return PTP_RC_GeneralError; + memset(storageinfo, 0, sizeof(*storageinfo)); + if (!ptp_unpack_SI(params, data, storageinfo, size)) { + free(data); + return PTP_RC_GeneralError; + } + free(data); + return PTP_RC_OK; +} + +/** + * ptp_getobjecthandles: + * params: PTPParams* + * storage - StorageID + * objectformatcode - ObjectFormatCode (optional) + * associationOH - ObjectHandle of Association for + * wich a list of children is desired + * (optional) + * objecthandles - pointer to structute + * + * Fills objecthandles with structure returned by device. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getobjecthandles (PTPParams* params, uint32_t storage, + uint32_t objectformatcode, uint32_t associationOH, + PTPObjectHandles* objecthandles) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + unsigned int size; + + objecthandles->Handler = NULL; + objecthandles->n = 0; + + PTP_CNT_INIT(ptp, PTP_OC_GetObjectHandles, storage, objectformatcode, associationOH); + ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size); + if (ret == PTP_RC_OK) { + ptp_unpack_OH(params, data, objecthandles, size); + } else { + if ( (storage == 0xffffffff) && + (objectformatcode == 0) && + (associationOH == 0) + ) { + /* When we query all object handles on all stores and + * get an error -> just handle it as "0 handles". + */ + objecthandles->Handler = NULL; + objecthandles->n = 0; + ret = PTP_RC_OK; + } + } + free(data); + return ret; +} + +uint16_t +ptp_getfilesystemmanifest (PTPParams* params, uint32_t storage, + uint32_t objectformatcode, uint32_t associationOH, + uint64_t *numoifs, PTPObjectFilesystemInfo **oifs +) { + PTPContainer ptp; + unsigned int size = 0; + unsigned char *data = NULL; + + *oifs = NULL; + *numoifs = 0; + PTP_CNT_INIT(ptp, PTP_OC_GetFilesystemManifest, storage, objectformatcode, associationOH); + CHECK_PTP_RC (ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + ptp_unpack_ptp11_manifest (params, data, size, numoifs, oifs); + return PTP_RC_OK; +} + +/** + * ptp_getnumobjects: + * params: PTPParams* + * storage - StorageID + * objectformatcode - ObjectFormatCode (optional) + * associationOH - ObjectHandle of Association for + * wich a list of children is desired + * (optional) + * numobs - pointer to uint32_t that takes number of objects + * + * Fills numobs with number of objects on device. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getnumobjects (PTPParams* params, uint32_t storage, + uint32_t objectformatcode, uint32_t associationOH, + uint32_t* numobs) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_GetNumObjects, storage, objectformatcode, associationOH); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + if (ptp.Nparam >= 1) + *numobs = ptp.Param1; + else + return PTP_RC_GeneralError; + return PTP_RC_OK; +} + +/** + * ptp_eos_bulbstart: + * params: PTPParams* + * + * Starts EOS Bulb capture. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_canon_eos_bulbstart (PTPParams* params) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_BulbStart); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + if ((ptp.Nparam >= 1) && ((ptp.Param1 & 0x7000) == 0x2000)) + return ptp.Param1; + return PTP_RC_OK; +} + +/** + * ptp_eos_capture: + * params: PTPParams* + * uint32_t* result + * + * This starts a EOS400D style capture. You have to use the + * get_eos_events to find out what resulted. + * The return value is "0" for all OK, and "1" for capture failed. (not fully confirmed) + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_canon_eos_capture (PTPParams* params, uint32_t *result) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_RemoteRelease); + *result = 0; + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + if (ptp.Nparam >= 1) + *result = ptp.Param1; + return PTP_RC_OK; +} + +/** + * ptp_canon_eos_bulbend: + * params: PTPParams* + * + * Starts EOS Bulb capture. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_canon_eos_bulbend (PTPParams* params) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_BulbEnd); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + if ((ptp.Nparam >= 1) && ((ptp.Param1 & 0x7000) == 0x2000)) + return ptp.Param1; + return PTP_RC_OK; +} + +/** + * ptp_getobjectinfo: + * params: PTPParams* + * handle - Object handle + * objectinfo - pointer to objectinfo that is returned + * + * Get objectinfo structure for handle from device. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getobjectinfo (PTPParams* params, uint32_t handle, + PTPObjectInfo* objectinfo) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_GetObjectInfo, handle); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + ptp_unpack_OI(params, data, objectinfo, size); + free(data); + return PTP_RC_OK; +} + +/** + * ptp_getobject: + * params: PTPParams* + * handle - Object handle + * object - pointer to data area + * + * Get object 'handle' from device and store the data in newly + * allocated 'object'. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getobject (PTPParams* params, uint32_t handle, unsigned char** object) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_GetObject, handle); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, object, NULL); +} + +/** + * ptp_getobject_with_size: + * params: PTPParams* + * handle - Object handle + * object - pointer to data area + * size - pointer to uint, returns size of object + * + * Get object 'handle' from device and store the data in newly + * allocated 'object'. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getobject_with_size (PTPParams* params, uint32_t handle, unsigned char** object, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_GetObject, handle); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, object, size); +} + +/** + * ptp_getobject_to_handler: + * params: PTPParams* + * handle - Object handle + * PTPDataHandler* - pointer datahandler + * + * Get object 'handle' from device and store the data in newly + * allocated 'object'. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getobject_to_handler (PTPParams* params, uint32_t handle, PTPDataHandler *handler) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_GetObject, handle); + return ptp_transaction_new(params, &ptp, PTP_DP_GETDATA, 0, handler); +} + +/** + * ptp_getobject_tofd: + * params: PTPParams* + * handle - Object handle + * fd - File descriptor to write() to + * + * Get object 'handle' from device and write the data to the + * given file descriptor. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getobject_tofd (PTPParams* params, uint32_t handle, int fd) +{ + PTPContainer ptp; + PTPDataHandler handler; + uint16_t ret; + + PTP_CNT_INIT(ptp, PTP_OC_GetObject, handle); + ptp_init_fd_handler (&handler, fd); + ret = ptp_transaction_new(params, &ptp, PTP_DP_GETDATA, 0, &handler); + ptp_exit_fd_handler (&handler); + return ret; +} + +/** + * ptp_getpartialobject: + * params: PTPParams* + * handle - Object handle + * offset - Offset into object + * maxbytes - Maximum of bytes to read + * object - pointer to data area + * len - pointer to returned length + * + * Get object 'handle' from device and store the data in newly + * allocated 'object'. Start from offset and read at most maxbytes. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getpartialobject (PTPParams* params, uint32_t handle, uint32_t offset, + uint32_t maxbytes, unsigned char** object, + uint32_t *len) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_GetPartialObject, handle, offset, maxbytes); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, object, len); +} + +/** + * ptp_getpartialobject_to_handler: + * params: PTPParams* + * handle - Object handle + * offset - Offset into object + * maxbytes - Maximum of bytes to read + * handler - a ptp data handler + * + * Get object 'handle' from device and send the data to the + * data handler. Start from offset and read at most maxbytes. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getpartialobject_to_handler (PTPParams* params, uint32_t handle, uint32_t offset, + uint32_t maxbytes, PTPDataHandler *handler) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_GetPartialObject, handle, offset, maxbytes); + return ptp_transaction_new(params, &ptp, PTP_DP_GETDATA, 0, handler); +} + +/** + * ptp_getthumb: + * params: PTPParams* + * handle - Object handle + * object - pointer to data area + * + * Get thumb for object 'handle' from device and store the data in newly + * allocated 'object'. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_getthumb (PTPParams* params, uint32_t handle, unsigned char** object, unsigned int *len) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_GetThumb, handle); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, object, len); +} + +/** + * ptp_deleteobject: + * params: PTPParams* + * handle - object handle + * ofc - object format code (optional) + * + * Deletes desired objects. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_deleteobject (PTPParams* params, uint32_t handle, uint32_t ofc) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_DeleteObject, handle, ofc); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + /* If the object is cached and could be removed, cleanse cache. */ + ptp_remove_object_from_cache(params, handle); + return PTP_RC_OK; +} + +/** + * ptp_moveobject: + * params: PTPParams* + * handle - source ObjectHandle + * storage - destination StorageID + * parent - destination parent ObjectHandle + * + * Move an object to a new location under the specified parent. + * Note that unlike most calls, 0 must be passed for the parent if the destination + * is the Storage root. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_moveobject (PTPParams* params, uint32_t handle, uint32_t storage, uint32_t parent) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_MoveObject, handle, storage, parent); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + /* If the object is cached and could be removed, cleanse cache. */ + ptp_remove_object_from_cache(params, handle); + return PTP_RC_OK; +} + +/** + * ptp_copyobject: + * params: PTPParams* + * handle - source ObjectHandle + * storage - destination StorageID + * parent - destination parent ObjectHandle + * + * Copy an object to a new location under the specified parent. + * Note that unlike most calls, 0 must be passed for the parent if the destination + * is the Storage root. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_copyobject (PTPParams* params, uint32_t handle, uint32_t storage, uint32_t parent) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CopyObject, handle, storage, parent); + return ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL); +} + +/** + * ptp_sendobjectinfo: + * params: PTPParams* + * uint32_t* store - destination StorageID on Responder + * uint32_t* parenthandle - Parent ObjectHandle on responder + * uint32_t* handle - see Return values + * PTPObjectInfo* objectinfo- ObjectInfo that is to be sent + * + * Sends ObjectInfo of file that is to be sent via SendFileObject. + * + * Return values: Some PTP_RC_* code. + * Upon success : uint32_t* store - Responder StorageID in which + * object will be stored + * uint32_t* parenthandle- Responder Parent ObjectHandle + * in which the object will be stored + * uint32_t* handle - Responder's reserved ObjectHandle + * for the incoming object + **/ +uint16_t +ptp_sendobjectinfo (PTPParams* params, uint32_t* store, + uint32_t* parenthandle, uint32_t* handle, + PTPObjectInfo* objectinfo) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + uint32_t size; + + PTP_CNT_INIT(ptp, PTP_OC_SendObjectInfo, *store, *parenthandle); + size = ptp_pack_OI(params, objectinfo, &data); + ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free(data); + *store=ptp.Param1; + *parenthandle=ptp.Param2; + *handle=ptp.Param3; + return ret; +} + +/** + * ptp_sendobject: + * params: PTPParams* + * char* object - contains the object that is to be sent + * uint64_t size - object size + * + * Sends object to Responder. + * + * Return values: Some PTP_RC_* code. + * + */ +uint16_t +ptp_sendobject (PTPParams* params, unsigned char* object, uint64_t size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_SendObject); + return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &object, NULL); +} + +/** + * ptp_sendobject_from_handler: + * params: PTPParams* + * PTPDataHandler* - File descriptor to read() object from + * uint64_t size - File/object size + * + * Sends object from file descriptor by consecutive reads from this + * descriptor. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_sendobject_from_handler (PTPParams* params, PTPDataHandler *handler, uint64_t size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_SendObject); + return ptp_transaction_new(params, &ptp, PTP_DP_SENDDATA, size, handler); +} + + +/** + * ptp_sendobject_fromfd: + * params: PTPParams* + * fd - File descriptor to read() object from + * uint64_t size - File/object size + * + * Sends object from file descriptor by consecutive reads from this + * descriptor. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_sendobject_fromfd (PTPParams* params, int fd, uint64_t size) +{ + PTPContainer ptp; + PTPDataHandler handler; + uint16_t ret; + + PTP_CNT_INIT(ptp, PTP_OC_SendObject); + ptp_init_fd_handler (&handler, fd); + ret = ptp_transaction_new(params, &ptp, PTP_DP_SENDDATA, size, &handler); + ptp_exit_fd_handler (&handler); + return ret; +} + +#define PROPCACHE_TIMEOUT 5 /* seconds */ + +uint16_t +ptp_getdevicepropdesc (PTPParams* params, uint16_t propcode, + PTPDevicePropDesc* devicepropertydesc) +{ + PTPContainer ptp; + uint16_t ret = PTP_RC_OK; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_GetDevicePropDesc, propcode); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + + if (!data) { + ptp_debug (params, "no data received for getdevicepropdesc"); + return PTP_RC_InvalidDevicePropFormat; + } + + if (params->device_flags & DEVICE_FLAG_OLYMPUS_XML_WRAPPED) { +#ifdef HAVE_LIBXML2 + xmlNodePtr code; + + ret = ptp_olympus_parse_output_xml (params,(char*)data,size,&code); + if (ret == PTP_RC_OK) { + int x; + + if ( (xmlChildElementCount(code) == 1) && + (!strcmp((char*)code->name,"c1014")) + ) { + code = xmlFirstElementChild (code); + + if ( (sscanf((char*)code->name,"p%x", &x)) && + (x == propcode) + ) { + ret = parse_9301_propdesc (params, xmlFirstElementChild (code), devicepropertydesc); + xmlFreeDoc(code->doc); + } + } + } else { + ptp_debug(params,"failed to parse output xml, ret %x?", ret); + } +#endif + } else { + if (!ptp_unpack_DPD(params, data, devicepropertydesc, size)) { + ptp_debug(params,"failed to unpack DPD of propcode 0x%04x, likely corrupted?", propcode); + free (data); + return PTP_RC_InvalidDevicePropFormat; + } + } + free(data); + return ret; +} + + +uint16_t +ptp_getdevicepropvalue (PTPParams* params, uint16_t propcode, + PTPPropertyValue* value, uint16_t datatype) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size, offset = 0; + uint16_t ret; + + PTP_CNT_INIT(ptp, PTP_OC_GetDevicePropValue, propcode); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + ret = ptp_unpack_DPV(params, data, &offset, size, value, datatype) ? PTP_RC_OK : PTP_RC_GeneralError; + if (ret != PTP_RC_OK) + ptp_debug (params, "ptp_getdevicepropvalue: unpacking DPV failed"); + free(data); + return ret; +} + +uint16_t +ptp_setdevicepropvalue (PTPParams* params, uint16_t propcode, + PTPPropertyValue *value, uint16_t datatype) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + uint32_t size; + + PTP_CNT_INIT(ptp, PTP_OC_SetDevicePropValue, propcode); + size=ptp_pack_DPV(params, value, &data, datatype); + ret=ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free(data); + return ret; +} + +/** + * ptp_ek_sendfileobjectinfo: + * params: PTPParams* + * uint32_t* store - destination StorageID on Responder + * uint32_t* parenthandle - Parent ObjectHandle on responder + * uint32_t* handle - see Return values + * PTPObjectInfo* objectinfo- ObjectInfo that is to be sent + * + * Sends ObjectInfo of file that is to be sent via SendFileObject. + * + * Return values: Some PTP_RC_* code. + * Upon success : uint32_t* store - Responder StorageID in which + * object will be stored + * uint32_t* parenthandle- Responder Parent ObjectHandle + * in which the object will be stored + * uint32_t* handle - Responder's reserved ObjectHandle + * for the incoming object + **/ +uint16_t +ptp_ek_sendfileobjectinfo (PTPParams* params, uint32_t* store, + uint32_t* parenthandle, uint32_t* handle, + PTPObjectInfo* objectinfo) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + uint32_t size; + + PTP_CNT_INIT(ptp, PTP_OC_EK_SendFileObjectInfo, *store, *parenthandle); + size=ptp_pack_OI(params, objectinfo, &data); + ret=ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free(data); + *store=ptp.Param1; + *parenthandle=ptp.Param2; + *handle=ptp.Param3; + return ret; +} + +/** + * ptp_ek_getserial: + * params: PTPParams* + * char** serial - contains the serial number of the camera + * uint32_t* size - contains the string length + * + * Gets the serial number from the device. (ptp serial) + * + * Return values: Some PTP_RC_* code. + * + */ +uint16_t +ptp_ek_getserial (PTPParams* params, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_EK_GetSerial); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +/** + * ptp_ek_setserial: + * params: PTPParams* + * char* serial - contains the new serial number + * uint32_t size - string length + * + * Sets the serial number of the device. (ptp serial) + * + * Return values: Some PTP_RC_* code. + * + */ +uint16_t +ptp_ek_setserial (PTPParams* params, unsigned char *data, unsigned int size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_EK_SetSerial); + return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); +} + +/* unclear what it does yet */ +uint16_t +ptp_ek_9007 (PTPParams* params, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, 0x9007); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +/* unclear what it does yet */ +uint16_t +ptp_ek_9009 (PTPParams* params, uint32_t *p1, uint32_t *p2) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, 0x9009); + *p1 = *p2 = 0; + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + *p1 = ptp.Param1; + *p2 = ptp.Param2; + return PTP_RC_OK; +} + +/* unclear yet, but I guess it returns the info from 9008 */ +uint16_t +ptp_ek_900c (PTPParams* params, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, 0x900c); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); + /* returned data is 16bit,16bit,32bit,32bit */ +} + +/** + * ptp_ek_settext: + * params: PTPParams* + * PTPEKTextParams* - contains the texts to display. + * + * Displays the specified texts on the TFT of the camera. + * + * Return values: Some PTP_RC_* code. + * + */ +uint16_t +ptp_ek_settext (PTPParams* params, PTPEKTextParams *text) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data = 0; + uint32_t size; + + PTP_CNT_INIT(ptp, PTP_OC_EK_SetText); + if (0 == (size = ptp_pack_EK_text(params, text, &data))) + return PTP_ERROR_BADPARAM; + ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free(data); + return ret; +} + +/** + * ptp_ek_sendfileobject: + * params: PTPParams* + * char* object - contains the object that is to be sent + * uint32_t size - object size + * + * Sends object to Responder. + * + * Return values: Some PTP_RC_* code. + * + */ +uint16_t +ptp_ek_sendfileobject (PTPParams* params, unsigned char* object, uint32_t size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_EK_SendFileObject); + return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &object, NULL); +} + +/** + * ptp_ek_sendfileobject_from_handler: + * params: PTPParams* + * PTPDataHandler* handler - contains the handler of the object that is to be sent + * uint32_t size - object size + * + * Sends object to Responder. + * + * Return values: Some PTP_RC_* code. + * + */ +uint16_t +ptp_ek_sendfileobject_from_handler (PTPParams* params, PTPDataHandler*handler, uint32_t size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_EK_SendFileObject); + return ptp_transaction_new(params, &ptp, PTP_DP_SENDDATA, size, handler); +} + +/************************************************************************* + * + * Canon PTP extensions support + * + * (C) Nikolai Kopanygin 2003 + * + *************************************************************************/ + + +/** + * ptp_canon_getpartialobjectinfo: + * params: PTPParams* + * uint32_t handle - ObjectHandle + * uint32_t p2 - Not fully understood parameter + * 0 - returns full size + * 1 - returns thumbnail size (or EXIF?) + * + * Gets form the responder the size of the specified object. + * + * Return values: Some PTP_RC_* code. + * Upon success : uint32_t* size - The object size + * uint32_t* rp2 - Still unknown return parameter + * (perhaps upper 32bit of size) + * + * + **/ +uint16_t +ptp_canon_getpartialobjectinfo (PTPParams* params, uint32_t handle, uint32_t p2, + uint32_t* size, uint32_t* rp2) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetPartialObjectInfo, handle, p2); + *size = *rp2 = 0; + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + *size=ptp.Param1; + *rp2=ptp.Param2; + return PTP_RC_OK; +} + +/** + * ptp_canon_get_mac_address: + * params: PTPParams* + * value 0 works. + * Gets the MAC address of the wireless transmitter. + * + * Return values: Some PTP_RC_* code. + * Upon success : unsigned char* mac - The MAC address + * + **/ +uint16_t +ptp_canon_get_mac_address (PTPParams* params, unsigned char **mac) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetMACAddress); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, mac, NULL); +} + +/** + * ptp_canon_get_directory: + * params: PTPParams* + + * Gets the full directory of the camera. + * + * Return values: Some PTP_RC_* code. + * Upon success : PTPObjectHandles *handles - filled out with handles + * PTPObjectInfo **oinfos - allocated array of PTP Object Infos + * uint32_t **flags - allocated array of CANON Flags + * + **/ +uint16_t +ptp_canon_get_directory (PTPParams* params, + PTPObjectHandles *handles, + PTPObjectInfo **oinfos, /* size(handles->n) */ + uint32_t **flags /* size(handles->n) */ +) { + PTPContainer ptp; + unsigned char *data = NULL; + uint16_t ret; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetDirectory); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, NULL)); + ret = ptp_unpack_canon_directory(params, data, ptp.Param1, handles, oinfos, flags); + free (data); + return ret; +} + +/** + * ptp_canon_gettreeinfo: + * params: PTPParams* + * uint32_t *out + * + * Switches the camera display to on and lets the user + * select what to transfer. Sends a 0xc011 event when started + * and 0xc013 if direct transfer aborted. + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_canon_gettreeinfo (PTPParams* params, uint32_t *out) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetTreeInfo, 0xf); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + if (ptp.Nparam > 0) + *out = ptp.Param1; + return PTP_RC_OK; +} + +/** + * ptp_canon_getpairinginfo: + * params: PTPParams* + * int nr + * + * Get the pairing information. + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_canon_getpairinginfo (PTPParams* params, uint32_t nr, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetPairingInfo, nr); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +/** + * ptp_canon_get_target_handles: + * params: PTPParams* + * PTPCanon_directtransfer_entry **out + * unsigned int *outsize + * + * Retrieves direct transfer entries specifying the images to transfer + * from the camera (to be retrieved after 0xc011 event). + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_canon_gettreesize (PTPParams* params, + PTPCanon_directtransfer_entry **entries, unsigned int *cnt) +{ + PTPContainer ptp; + uint16_t ret = PTP_RC_OK; + unsigned char *data = NULL, *cur; + unsigned int size, i; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetTreeSize); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + *cnt = dtoh32a(data); + *entries = malloc(sizeof(PTPCanon_directtransfer_entry)*(*cnt)); + if (!*entries) { + ret = PTP_RC_GeneralError; + goto exit; + } + cur = data+4; + for (i=0;i<*cnt;i++) { + unsigned char len; + (*entries)[i].oid = dtoh32a(cur); + if (!ptp_unpack_string(params, cur, 4, size-(cur-data-4), &len, &(*entries)[i].str)) + break; + cur += 4+(cur[4]*2+1); + } +exit: + free (data); + return ret; +} + +/** + * ptp_canon_checkevent: + * params: PTPParams* + * + * The camera has a FIFO stack, in which it accumulates events. + * Partially these events are communicated also via the USB interrupt pipe + * according to the PTP USB specification, partially not. + * This operation returns from the device a block of data, empty, + * if the event stack is empty, or filled with an event's data otherwise. + * The event is removed from the stack in the latter case. + * The Remote Capture app sends this command to the camera all the time + * of connection, filling with it the gaps between other operations. + * + * Return values: Some PTP_RC_* code. + * Upon success : PTPUSBEventContainer* event - is filled with the event data + * if any + * int *isevent - returns 1 in case of event + * or 0 otherwise + **/ +uint16_t +ptp_canon_checkevent (PTPParams* params, PTPContainer* event, int* isevent) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_CheckEvent); + *isevent=0; + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + if (data && size) { /* check if we had a successfull call with data */ + ptp_unpack_EC(params, data, event, size); + *isevent=1; + free(data); + } + return PTP_RC_OK; +} + +uint16_t +ptp_add_event (PTPParams *params, PTPContainer *evt) +{ + params->events = realloc(params->events, sizeof(PTPContainer)*(params->nrofevents+1)); + memcpy (¶ms->events[params->nrofevents],evt,1*sizeof(PTPContainer)); + params->nrofevents += 1; + return PTP_RC_OK; +} + +/* CANON EOS fast directory mode */ +/* FIXME: incomplete ... needs storage mode retrieval support too (storage == 0xffffffff) */ +static uint16_t +ptp_list_folder_eos (PTPParams *params, uint32_t storage, uint32_t handle) { + unsigned int k, i, j, last, changed; + PTPCANONFolderEntry *tmp = NULL; + unsigned int nroftmp = 0; + uint16_t ret; + PTPStorageIDs storageids; + PTPObject *ob; + + if ((handle != 0xffffffff) && (handle != 0)) { + ret = ptp_object_want (params, handle, PTPOBJECT_OBJECTINFO_LOADED, &ob); + if ((ret == PTP_RC_OK) && (ob->flags & PTPOBJECT_DIRECTORY_LOADED)) + return PTP_RC_OK; + } + + if (storage == 0xffffffff) { + if (handle != 0xffffffff) + handle = 0xffffffff; + ret = ptp_getstorageids(params, &storageids); + if (ret != PTP_RC_OK) + return ret; + } else { + storageids.n = 1; + storageids.Storage = malloc(sizeof(storageids.Storage[0])); + storageids.Storage[0] = storage; + } + last = changed = 0; + + for (k=0;knrofobjects;j++) { + if (params->objects[(last+j)%params->nrofobjects].oid == tmp[i].ObjectHandle) { + ob = ¶ms->objects[(last+j)%params->nrofobjects]; + break; + } + } + if (j == params->nrofobjects) { + ptp_debug (params, "adding new objectid 0x%08x (nrofobs=%d,j=%d)", tmp[i].ObjectHandle, params->nrofobjects,j); + newobs = realloc (params->objects,sizeof(PTPObject)*(params->nrofobjects+1)); + if (!newobs) { + free (tmp); + free (storageids.Storage); + return PTP_RC_GeneralError; + } + params->objects = newobs; + memset (¶ms->objects[params->nrofobjects],0,sizeof(params->objects[params->nrofobjects])); + params->objects[params->nrofobjects].oid = tmp[i].ObjectHandle; + params->objects[params->nrofobjects].flags = 0; + + params->objects[params->nrofobjects].oi.StorageID = storageids.Storage[k]; + params->objects[params->nrofobjects].flags |= PTPOBJECT_STORAGEID_LOADED; + if (handle == 0xffffffff) + params->objects[params->nrofobjects].oi.ParentObject = 0; + else + params->objects[params->nrofobjects].oi.ParentObject = handle; + params->objects[params->nrofobjects].flags |= PTPOBJECT_PARENTOBJECT_LOADED; + params->objects[params->nrofobjects].oi.Filename = strdup(tmp[i].Filename); + params->objects[params->nrofobjects].oi.ObjectFormat = tmp[i].ObjectFormatCode; + + ptp_debug (params, " flags %x", tmp[i].Flags); + if (tmp[i].Flags & 0x1) + params->objects[params->nrofobjects].oi.ProtectionStatus = PTP_PS_ReadOnly; + else + params->objects[params->nrofobjects].oi.ProtectionStatus = PTP_PS_NoProtection; + params->objects[params->nrofobjects].canon_flags = tmp[i].Flags; + params->objects[params->nrofobjects].oi.ObjectCompressedSize = tmp[i].ObjectSize; + params->objects[params->nrofobjects].oi.CaptureDate = tmp[i].Time; + params->objects[params->nrofobjects].oi.ModificationDate = tmp[i].Time; + params->objects[params->nrofobjects].flags |= PTPOBJECT_OBJECTINFO_LOADED; + + /*debug_objectinfo(params, tmp[i].ObjectHandle, ¶ms->objects[params->nrofobjects].oi);*/ + last = params->nrofobjects; + params->nrofobjects++; + changed = 1; + } else { + ptp_debug (params, "adding old objectid 0x%08x (nrofobs=%d,j=%d)", tmp[i].ObjectHandle, params->nrofobjects,j); + ob = ¶ms->objects[(last+j)%params->nrofobjects]; + /* for speeding up search */ + last = (last+j)%params->nrofobjects; + if (handle != PTP_HANDLER_SPECIAL) { + ob->oi.ParentObject = handle; + ob->flags |= PTPOBJECT_PARENTOBJECT_LOADED; + } + if (storageids.Storage[k] != PTP_HANDLER_SPECIAL) { + ob->oi.StorageID = storageids.Storage[k]; + ob->flags |= PTPOBJECT_STORAGEID_LOADED; + } + } + } + free (tmp); + } + if (changed) ptp_objects_sort (params); + + /* Do not cache ob, it might be reallocated and have a new address */ + if (handle != 0xffffffff) { + ret = ptp_object_want (params, handle, PTPOBJECT_OBJECTINFO_LOADED, &ob); + if (ret == PTP_RC_OK) + ob->flags |= PTPOBJECT_DIRECTORY_LOADED; + } + free (storageids.Storage); + return PTP_RC_OK; +} + +uint16_t +ptp_list_folder (PTPParams *params, uint32_t storage, uint32_t handle) { + unsigned int i, changed, last; + uint16_t ret; + uint32_t xhandle = handle; + PTPObject *newobs; + PTPObjectHandles handles; + + ptp_debug (params, "(storage=0x%08x, handle=0x%08x)", storage, handle); + /* handle=0 is only not read when there is no object in the list yet + * and we do the initial read. */ + if (!handle && params->nrofobjects) + return PTP_RC_OK; + /* but we can override this to read 0 object of storages */ + if (handle == PTP_HANDLER_SPECIAL) + handle = 0; + + /* Canon EOS Fast directory strategy */ + if ((params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ptp_operation_issupported(params, PTP_OC_CANON_EOS_GetObjectInfoEx)) { + ret = ptp_list_folder_eos (params, storage, handle); + if (ret == PTP_RC_OK) + return ret; + } + + if (handle) { /* 0 is the virtual root */ + PTPObject *ob; + /* first check if object itself is loaded, and get its objectinfo. */ + ret = ptp_object_want (params, handle, PTPOBJECT_OBJECTINFO_LOADED, &ob); + if (ret != PTP_RC_OK) + return ret; + if (ob->oi.ObjectFormat != PTP_OFC_Association) + return PTP_RC_GeneralError; + if (ob->flags & PTPOBJECT_DIRECTORY_LOADED) return PTP_RC_OK; + ob->flags |= PTPOBJECT_DIRECTORY_LOADED; + /*debug_objectinfo(params, handle, &ob->oi);*/ + } + +#if 0 /* apple devices report it, but the conrtent they have does not match the standard somehow. Neesd further debugging */ + if (ptp_operation_issupported(params, PTP_OC_GetFilesystemManifest)) { + uint64_t numoifs = 0; + PTPObjectFilesystemInfo *oifs = NULL; + + if (storage == PTP_HANDLER_SPECIAL) storage = 0; + ret = ptp_getfilesystemmanifest (params, storage, 0, handle, &numoifs, &oifs); + if (ret != PTP_RC_OK || !numoifs) + goto fallback; + + last = changed = 0; + for (i=0;inrofobjects;j++) { + if (params->objects[(last+j)%params->nrofobjects].oid == oifs[i].ObjectHandle) { + ob = ¶ms->objects[(last+j)%params->nrofobjects]; + break; + } + } + if (j == params->nrofobjects) { + ptp_debug (params, "adding new objectid 0x%08x (nrofobs=%d,j=%d)", oifs[i].ObjectHandle, params->nrofobjects,j); + newobs = realloc (params->objects,sizeof(PTPObject)*(params->nrofobjects+1)); + if (!newobs) { + free (oifs); + return PTP_RC_GeneralError; + } + params->objects = newobs; + memset (¶ms->objects[params->nrofobjects],0,sizeof(params->objects[params->nrofobjects])); + params->objects[params->nrofobjects].oid = oifs[i].ObjectHandle; + params->objects[params->nrofobjects].flags = 0; + ob = ¶ms->objects[params->nrofobjects]; + params->nrofobjects++; + changed = 1; + } else { + ptp_debug (params, "adding old objectid 0x%08x (nrofobs=%d,j=%d)", oifs[i].ObjectHandle, params->nrofobjects,j); + ob = ¶ms->objects[(last+j)%params->nrofobjects]; + /* for speeding up search */ + last = (last+j)%params->nrofobjects; + } + + ob->oi.StorageID = oifs[i].StorageID; + ob->oi.ObjectFormat = oifs[i].ObjectFormat; + ob->oi.ProtectionStatus = oifs[i].ProtectionStatus; + ob->oi.ObjectCompressedSize = oifs[i].ObjectCompressedSize64; + ob->oi.ParentObject = oifs[i].ParentObject; + + /* bad iOS, returns StorageID instead of 0x0 */ + if (ob->oi.ParentObject == oifs[i].StorageID) { + ptp_debug (params, "objectid 0x%08x aka %s has parent %08x, rewriting to 0", oifs[i].ObjectHandle, oifs[i].Filename, oifs[i].ParentObject); + ob->oi.ParentObject = 0; + } + + ob->oi.AssociationType = oifs[i].AssociationType; + ob->oi.AssociationDesc = oifs[i].AssociationDesc; + ob->oi.SequenceNumber = oifs[i].SequenceNumber; + ob->oi.Filename = oifs[i].Filename; /* hand over memory ownership */ + ob->oi.ModificationDate = oifs[i].ModificationDate; + /* FIXME: most of it ... but not the image sizes */ + ob->flags |= PTPOBJECT_OBJECTINFO_LOADED|PTPOBJECT_STORAGEID_LOADED|PTPOBJECT_PARENTOBJECT_LOADED; + } + free (oifs); + if (changed) ptp_objects_sort (params); + return PTP_RC_OK; + } +fallback: +#endif + + ptp_debug (params, "Listing ... "); + if (handle == 0) xhandle = PTP_HANDLER_SPECIAL; /* 0 would mean all */ + ret = ptp_getobjecthandles (params, storage, 0, xhandle, &handles); + if (ret == PTP_RC_ParameterNotSupported) {/* try without storage */ + storage = PTP_HANDLER_SPECIAL; + ret = ptp_getobjecthandles (params, PTP_HANDLER_SPECIAL, 0, xhandle, &handles); + } + if (ret == PTP_RC_ParameterNotSupported) { /* fall back to always supported method */ + xhandle = PTP_HANDLER_SPECIAL; + handle = PTP_HANDLER_SPECIAL; + ret = ptp_getobjecthandles (params, PTP_HANDLER_SPECIAL, 0, 0, &handles); + } + if (ret != PTP_RC_OK) + return ret; + last = changed = 0; + for (i=0;inrofobjects;j++) { + if (params->objects[(last+j)%params->nrofobjects].oid == handles.Handler[i]) { + ob = ¶ms->objects[(last+j)%params->nrofobjects]; + break; + } + } + if (j == params->nrofobjects) { + ptp_debug (params, "adding new objectid 0x%08x (nrofobs=%d,j=%d)", handles.Handler[i], params->nrofobjects,j); + newobs = realloc (params->objects,sizeof(PTPObject)*(params->nrofobjects+1)); + if (!newobs) return PTP_RC_GeneralError; + params->objects = newobs; + memset (¶ms->objects[params->nrofobjects],0,sizeof(params->objects[params->nrofobjects])); + params->objects[params->nrofobjects].oid = handles.Handler[i]; + params->objects[params->nrofobjects].flags = 0; + /* root directory list files might return all files, so avoid tagging it */ + if (handle != PTP_HANDLER_SPECIAL && handle) { + ptp_debug (params, " parenthandle 0x%08x", handle); + if (handles.Handler[i] == handle) { /* EOS bug where oid == parent(oid) */ + params->objects[params->nrofobjects].oi.ParentObject = 0; + } else { + params->objects[params->nrofobjects].oi.ParentObject = handle; + } + params->objects[params->nrofobjects].flags |= PTPOBJECT_PARENTOBJECT_LOADED; + } + if (storage != PTP_HANDLER_SPECIAL) { + ptp_debug (params, " storage 0x%08x", storage); + params->objects[params->nrofobjects].oi.StorageID = storage; + params->objects[params->nrofobjects].flags |= PTPOBJECT_STORAGEID_LOADED; + } + params->nrofobjects++; + changed = 1; + } else { + ptp_debug (params, "adding old objectid 0x%08x (nrofobs=%d,j=%d)", handles.Handler[i], params->nrofobjects,j); + ob = ¶ms->objects[(last+j)%params->nrofobjects]; + /* for speeding up search */ + last = (last+j)%params->nrofobjects; + if (handle != PTP_HANDLER_SPECIAL) { + ob->oi.ParentObject = handle; + ob->flags |= PTPOBJECT_PARENTOBJECT_LOADED; + } + if (storage != PTP_HANDLER_SPECIAL) { + ob->oi.StorageID = storage; + ob->flags |= PTPOBJECT_STORAGEID_LOADED; + } + } + } + free (handles.Handler); + if (changed) ptp_objects_sort (params); + return PTP_RC_OK; +} + + +static void +handle_event_internal (PTPParams *params, PTPContainer *event) +{ + /* handle some PTP stack internal events */ + switch (event->Code) { + case PTP_EC_DevicePropChanged: { + unsigned int i; + + /* mark the property for a forced refresh on the next query */ + for (i=0;inrofdeviceproperties;i++) + if (params->deviceproperties[i].desc.DevicePropertyCode == event->Param1) { + params->deviceproperties[i].timestamp = 0; + break; + } + break; + } + case PTP_EC_StoreAdded: + case PTP_EC_StoreRemoved: { + int i; + + /* FIXME: if we just remove 1 out of many storages, we do not need to invalidate/reload the entire tree? */ + + /* refetch storage IDs and also invalidate whole object tree */ + free (params->storageids.Storage); + params->storageids.Storage = NULL; + params->storageids.n = 0; + ptp_getstorageids (params, ¶ms->storageids); + + /* free object storage as it might be associated with the storage ids */ + /* FIXME: enhance and just delete the ones from the storage */ + for (i=0;inrofobjects;i++) + ptp_free_object (¶ms->objects[i]); + free (params->objects); + params->objects = NULL; + params->nrofobjects = 0; + + params->storagechanged = 1; + /* mirror what we do in camera_init, fetch root directory entries. */ + if (params->deviceinfo.VendorExtensionID != PTP_VENDOR_SONY) + ptp_list_folder (params, PTP_HANDLER_SPECIAL, PTP_HANDLER_SPECIAL); + + { + unsigned int k; + + for (k=0;kstorageids.n;k++) { + if (!(params->storageids.Storage[k] & 0xffff)) continue; + if (params->storageids.Storage[k] == 0x80000001) continue; + ptp_list_folder (params, params->storageids.Storage[k], PTP_HANDLER_SPECIAL); + } + } + + break; + } + default: /* check if we should handle it internally too */ + break; + } +} + +uint16_t +ptp_check_event_queue (PTPParams *params) +{ + PTPContainer event; + uint16_t ret; + + /* We try to do a event check without I/O */ + /* Basically this means just looking at the meanwhile queued events */ + + ret = params->event_check_queue(params,&event); + + if (ret == PTP_RC_OK) { + ptp_debug (params, "event: nparams=0x%X, code=0x%X, trans_id=0x%X, p1=0x%X, p2=0x%X, p3=0x%X", event.Nparam,event.Code,event.Transaction_ID, event.Param1, event.Param2, event.Param3); + ptp_add_event (params, &event); + handle_event_internal (params, &event); + } + if (ret == PTP_ERROR_TIMEOUT) /* ok, just new events */ + ret = PTP_RC_OK; + return ret; +} + +uint16_t +ptp_check_event (PTPParams *params) +{ + PTPContainer event; + uint16_t ret; + + /* Method offered by Nikon DSLR, Nikon 1, and some older Nikon Coolpix P* + * The Nikon Coolpix P2 however does not return anything. So if we never get + * events from here, use the ptp "interrupt" method */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) && + ptp_operation_issupported(params, PTP_OC_NIKON_CheckEvent) + ) { + unsigned int evtcnt = 0, i; + PTPContainer *xevent = NULL; + + ret = ptp_nikon_check_event(params, &xevent, &evtcnt); + if (ret != PTP_RC_OperationNotSupported) + CHECK_PTP_RC(ret); + + if (evtcnt) { + for (i = 0; i < evtcnt; i++) + handle_event_internal (params, &xevent[i]); + params->events = realloc(params->events, sizeof(PTPContainer)*(evtcnt+params->nrofevents)); + memcpy (¶ms->events[params->nrofevents],xevent,evtcnt*sizeof(PTPContainer)); + params->nrofevents += evtcnt; + params->event90c7works = 1; + } + free (xevent); + if (params->event90c7works) + return PTP_RC_OK; + /* fall through to generic event handling */ + } + /* should not get here ... EOS has no normal PTP events and another queue handling. */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ptp_operation_issupported(params, PTP_OC_CANON_EOS_GetEvent) + ) { + return PTP_RC_OK; + } + + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ptp_operation_issupported(params, PTP_OC_CANON_CheckEvent) + ) { + int isevent; + + CHECK_PTP_RC(ptp_canon_checkevent (params,&event,&isevent)); + + if (isevent) { + ret = PTP_RC_OK; + goto store_event; + } + /* Event Emulate Mode 0 (unset) and 1-5 get interrupt events. 6-7 does not. */ + if (params->canon_event_mode > 5) + return PTP_RC_OK; + + /* FIXME: fallthrough or return? */ +#ifdef __APPLE__ + /* the libusb 1 on darwin currently does not like polling + * for interrupts, they have no timeout for it. 2010/08/23 + * Check back in 2011 or so. -Marcus + */ + return PTP_RC_OK; +#endif + } + ret = params->event_check(params,&event); + +store_event: + if (ret == PTP_RC_OK) { + ptp_debug (params, "event: nparams=0x%X, code=0x%X, trans_id=0x%X, p1=0x%X, p2=0x%X, p3=0x%X", event.Nparam,event.Code,event.Transaction_ID, event.Param1, event.Param2, event.Param3); + ptp_add_event (params, &event); + + handle_event_internal (params, &event); + + + } + if (ret == PTP_ERROR_TIMEOUT) /* ok, just new events */ + ret = PTP_RC_OK; + return ret; +} + +uint16_t +ptp_wait_event (PTPParams *params) +{ + PTPContainer event; + uint16_t ret; + + ret = params->event_wait(params,&event); + if (ret == PTP_RC_OK) { + ptp_debug (params, "event: nparams=0x%X, code=0x%X, trans_id=0x%X, p1=0x%X, p2=0x%X, p3=0x%X", event.Nparam,event.Code,event.Transaction_ID, event.Param1, event.Param2, event.Param3); + ptp_add_event (params, &event); + + handle_event_internal (params, &event); + } + if (ret == PTP_ERROR_TIMEOUT) /* ok, just new events */ + ret = PTP_RC_OK; + return ret; +} + + +int +ptp_get_one_event(PTPParams *params, PTPContainer *event) +{ + if (!params->nrofevents) + return 0; + memcpy (event, params->events, sizeof(PTPContainer)); + memmove (params->events, params->events+1, sizeof(PTPContainer)*(params->nrofevents-1)); + /* do not realloc on shrink. */ + params->nrofevents--; + if (!params->nrofevents) { + free (params->events); + params->events = NULL; + } + return 1; +} + +/** + * ptp_canon_eos_getevent: + * + * This retrieves configuration status/updates/changes + * on EOS cameras. It reads a datablock which has a list of variable + * sized structures. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_canon_eos_getevent (PTPParams* params, PTPCanon_changes_entry **entries, int *nrofentries) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_GetEvent); + *nrofentries = 0; + *entries = NULL; + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + *nrofentries = ptp_unpack_CANON_changes(params,data,size,entries); + free (data); + return PTP_RC_OK; +} + +uint16_t +ptp_check_eos_events (PTPParams *params) +{ + PTPCanon_changes_entry *entries = NULL, *nentries; + int nrofentries = 0; + + while (1) { /* call it repeatedly until the camera does not report any */ + CHECK_PTP_RC(ptp_canon_eos_getevent (params, &entries, &nrofentries)); + if (!nrofentries) + return PTP_RC_OK; + + if (params->nrofbacklogentries) { + nentries = realloc(params->backlogentries,sizeof(entries[0])*(params->nrofbacklogentries+nrofentries)); + if (!nentries) + return PTP_RC_GeneralError; + params->backlogentries = nentries; + memcpy (nentries+params->nrofbacklogentries, entries, nrofentries*sizeof(entries[0])); + params->nrofbacklogentries += nrofentries; + free (entries); + } else { + params->backlogentries = entries; + params->nrofbacklogentries = nrofentries; + } + } + return PTP_RC_OK; +} + +int +ptp_get_one_eos_event (PTPParams *params, PTPCanon_changes_entry *entry) +{ + if (!params->nrofbacklogentries) + return 0; + memcpy (entry, params->backlogentries, sizeof(*entry)); + if (params->nrofbacklogentries > 1) { + memmove (params->backlogentries,params->backlogentries+1,sizeof(*entry)*(params->nrofbacklogentries-1)); + params->nrofbacklogentries--; + } else { + free (params->backlogentries); + params->backlogentries = NULL; + params->nrofbacklogentries = 0; + } + return 1; +} + + +uint16_t +ptp_canon_eos_getdevicepropdesc (PTPParams* params, uint16_t propcode, + PTPDevicePropDesc *dpd) +{ + unsigned int i; + + for (i=0;inrofcanon_props;i++) + if (params->canon_props[i].proptype == propcode) + break; + if (params->nrofcanon_props == i) + return PTP_RC_Undefined; + memcpy (dpd, ¶ms->canon_props[i].dpd, sizeof (*dpd)); + if (dpd->FormFlag == PTP_DPFF_Enumeration) { + /* need to duplicate the Enumeration alloc */ + dpd->FORM.Enum.SupportedValue = malloc (sizeof (PTPPropertyValue)*dpd->FORM.Enum.NumberOfValues); + memcpy (dpd->FORM.Enum.SupportedValue, + params->canon_props[i].dpd.FORM.Enum.SupportedValue, + sizeof (PTPPropertyValue)*dpd->FORM.Enum.NumberOfValues + ); + } + if (dpd->DataType == PTP_DTC_STR) { + dpd->FactoryDefaultValue.str = strdup( params->canon_props[i].dpd.FactoryDefaultValue.str ); + dpd->CurrentValue.str = strdup( params->canon_props[i].dpd.CurrentValue.str ); + } + + return PTP_RC_OK; +} + + +uint16_t +ptp_canon_eos_getstorageids (PTPParams* params, PTPStorageIDs* storageids) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_GetStorageIDs); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + ptp_unpack_SIDs(params, data, storageids, size); + free(data); + return PTP_RC_OK; +} + +uint16_t +ptp_canon_eos_getstorageinfo (PTPParams* params, uint32_t p1, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_GetStorageInfo, p1); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); + /* FIXME: do stuff with data */ +} + +uint16_t +ptp_canon_eos_getobjectinfoex ( + PTPParams* params, uint32_t storageid, uint32_t oid, uint32_t unk, + PTPCANONFolderEntry **entries, unsigned int *nrofentries +) { + PTPContainer ptp; + uint16_t ret = PTP_RC_OK; + unsigned char *data = NULL, *xdata; + unsigned int size, i; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_GetObjectInfoEx, storageid, oid, unk); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + if (!data) { + *nrofentries = 0; + return PTP_RC_OK; + } + + if (size < 4) { + ret = PTP_RC_GeneralError; + goto exit; + } + /* check for integer overflow */ + if (dtoh32a(data) >= INT_MAX/sizeof(PTPCANONFolderEntry)) { + ret = PTP_RC_GeneralError; + goto exit; + } + + *nrofentries = dtoh32a(data); + *entries = malloc(*nrofentries * sizeof(PTPCANONFolderEntry)); + if (!*entries) { + ret = PTP_RC_GeneralError; + goto exit; + } + + xdata = data+sizeof(uint32_t); + for (i=0;i<*nrofentries;i++) { + unsigned int entrysize; + + if (4 + (xdata - data) > size) { + ptp_debug (params, "reading canon FEs run over read data size? (1)\n"); + free (*entries); + *entries = NULL; + *nrofentries = 0; + ret = PTP_RC_GeneralError; + goto exit; + } + entrysize = dtoh32a(xdata); + if ((entrysize + (xdata-data)) > size) { + ptp_debug (params, "reading canon FEs run over read data size? (2)\n"); + free (*entries); + *entries = NULL; + *nrofentries = 0; + ret = PTP_RC_GeneralError; + goto exit; + } + if (entrysize < 4 + 48 + 4) { + ptp_debug (params, "%d entry size %d does not match expected 56\n", i, entrysize); + free (*entries); + *entries = NULL; + *nrofentries = 0; + ret = PTP_RC_GeneralError; + goto exit; + } + ptp_unpack_Canon_EOS_FE (params, &xdata[4], entrysize - 4, &((*entries)[i])); + xdata += entrysize; + } +exit: + free (data); + return ret; +} + +/** + * ptp_canon_eos_getpartialobject: + * + * This retrieves a part of an PTP object which you specify as object id. + * The id originates from 0x9116 call. + * After finishing it, we seem to need to call ptp_canon_eos_enddirecttransfer. + * + * params: PTPParams* + * oid Object ID + * offset The offset where to start the data transfer + * xsize Size in bytes of the transfer to do + * data Pointer that receives the malloc()ed memory of the transfer. + * + * Return values: Some PTP_RC_* code. + * + */ +uint16_t +ptp_canon_eos_getpartialobject (PTPParams* params, uint32_t oid, uint32_t offset, uint32_t xsize, unsigned char**data) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_GetPartialObject, oid, offset, xsize); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, NULL); +} + +/** + * ptp_canon_eos_getpartialobjectex: + * + * This retrieves a part of an PTP object which you specify as object id. + * The id originates from 0x9116 call. + * After finishing it, we seem to need to call ptp_canon_eos_enddirecttransfer. + * + * params: PTPParams* + * oid Object ID + * offset The offset where to start the data transfer + * xsize Size in bytes of the transfer to do + * data Pointer that receives the malloc()ed memory of the transfer. + * + * Return values: Some PTP_RC_* code. + * + */ +uint16_t +ptp_canon_eos_getpartialobjectex (PTPParams* params, uint32_t oid, uint32_t offset, uint32_t xsize, unsigned char**data) +{ + PTPContainer ptp; + +/* 5bf19091 00008001 00001000 00000000 */ +/* objectid offset size ? 64bit part ? */ + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_GetPartialObjectEx, oid, offset, xsize, 0); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, NULL); +} + +uint16_t +ptp_canon_eos_setdevicepropvalueex (PTPParams* params, unsigned char* data, unsigned int size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_SetDevicePropValueEx); + return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); +} + +uint16_t +ptp_canon_eos_setdevicepropvalue (PTPParams* params, + uint16_t propcode, PTPPropertyValue *value, uint16_t datatype +) { + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + unsigned int i, size; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_SetDevicePropValueEx); + + for (i=0;inrofcanon_props;i++) + if (params->canon_props[i].proptype == propcode) + break; + if (params->nrofcanon_props == i) + return PTP_RC_Undefined; + + switch (propcode) { + case PTP_DPC_CANON_EOS_ImageFormat: + case PTP_DPC_CANON_EOS_ImageFormatCF: + case PTP_DPC_CANON_EOS_ImageFormatSD: + case PTP_DPC_CANON_EOS_ImageFormatExtHD: + /* special handling of ImageFormat properties */ + size = 8 + ptp_pack_EOS_ImageFormat( params, NULL, value->u16 ); + data = malloc( size ); + if (!data) return PTP_RC_GeneralError; + ptp_pack_EOS_ImageFormat( params, data + 8, value->u16 ); + break; + case PTP_DPC_CANON_EOS_CustomFuncEx: + /* special handling of CustomFuncEx properties */ + ptp_debug (params, "ptp2/ptp_canon_eos_setdevicepropvalue: setting EOS prop %x to %s",propcode,value->str); + size = 8 + ptp_pack_EOS_CustomFuncEx( params, NULL, value->str ); + data = malloc( size ); + if (!data) return PTP_RC_GeneralError; + ptp_pack_EOS_CustomFuncEx( params, data + 8, value->str ); + break; + default: + if (datatype != PTP_DTC_STR) { + data = calloc(3,sizeof(uint32_t)); + if (!data) return PTP_RC_GeneralError; + size = sizeof(uint32_t)*3; + } else { + size = strlen(value->str) + 1 + 8; + data = calloc(size,sizeof(char)); + if (!data) return PTP_RC_GeneralError; + } + switch (datatype) { + case PTP_DTC_INT8: + case PTP_DTC_UINT8: + /*fprintf (stderr, "%x -> %d\n", propcode, value->u8);*/ + htod8a(&data[8], value->u8); + break; + case PTP_DTC_UINT16: + case PTP_DTC_INT16: + /*fprintf (stderr, "%x -> %d\n", propcode, value->u16);*/ + htod16a(&data[8], value->u16); + break; + case PTP_DTC_INT32: + case PTP_DTC_UINT32: + /*fprintf (stderr, "%x -> %d\n", propcode, value->u32);*/ + htod32a(&data[8], value->u32); + break; + case PTP_DTC_STR: + strcpy((char*)data + 8, value->str); + break; + } + } + + htod32a(&data[0], size); + htod32a(&data[4], propcode); + + ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free (data); + if (ret == PTP_RC_OK) { + /* commit to cache only after successful setting */ + switch (propcode) { + case PTP_DPC_CANON_EOS_ImageFormat: + case PTP_DPC_CANON_EOS_ImageFormatCF: + case PTP_DPC_CANON_EOS_ImageFormatSD: + case PTP_DPC_CANON_EOS_ImageFormatExtHD: + /* special handling of ImageFormat properties */ + params->canon_props[i].dpd.CurrentValue.u16 = value->u16; + break; + case PTP_DPC_CANON_EOS_CustomFuncEx: + /* special handling of CustomFuncEx properties */ + params->canon_props[i].dpd.CurrentValue.str = strdup( value->str ); + break; + default: + switch (datatype) { + case PTP_DTC_INT8: + case PTP_DTC_UINT8: + params->canon_props[i].dpd.CurrentValue.u8 = value->u8; + break; + case PTP_DTC_UINT16: + case PTP_DTC_INT16: + params->canon_props[i].dpd.CurrentValue.u16 = value->u16; + break; + case PTP_DTC_INT32: + case PTP_DTC_UINT32: + params->canon_props[i].dpd.CurrentValue.u32 = value->u32; + break; + case PTP_DTC_STR: + free (params->canon_props[i].dpd.CurrentValue.str); + params->canon_props[i].dpd.CurrentValue.str = strdup(value->str); + break; + } + } + } + return ret; +} + +/** + * ptp_canon_getpartialobject: + * + * This operation is used to read from the device a data + * block of an object from a specified offset. + * + * params: PTPParams* + * uint32_t handle - the handle of the requested object + * uint32_t offset - the offset in bytes from the beginning of the object + * uint32_t size - the requested size of data block to read + * uint32_t pos - 1 for the first block, 2 - for a block in the middle, + * 3 - for the last block + * + * Return values: Some PTP_RC_* code. + * char **block - the pointer to the block of data read + * uint32_t* readnum - the number of bytes read + * + **/ +uint16_t +ptp_canon_getpartialobject (PTPParams* params, uint32_t handle, + uint32_t offset, uint32_t size, + uint32_t pos, unsigned char** block, + uint32_t* readnum) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetPartialObjectEx, handle, offset, size, pos); + ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, NULL); + if (ret==PTP_RC_OK) { + *block=data; + *readnum=ptp.Param1; + } + free (data); + return ret; +} + +/** + * ptp_canon_getviewfinderimage: + * + * This operation can be used to read the image which is currently + * in the camera's viewfinder. The image size is 320x240, format is JPEG. + * Of course, prior to calling this operation, one must turn the viewfinder + * on with the CANON_ViewfinderOn command. + * Invoking this operation many times, one can get live video from the camera! + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * char **image - the pointer to the read image + * unit32_t *size - the size of the image in bytes + * + **/ +uint16_t +ptp_canon_getviewfinderimage (PTPParams* params, unsigned char** image, uint32_t* size) +{ + PTPContainer ptp; + uint16_t ret; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetViewfinderImage); + ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, image, NULL); + if (ret==PTP_RC_OK) + *size=ptp.Param1; + return ret; +} + +/** + * ptp_canon_getchanges: + * + * This is an interesting operation, about the effect of which I am not sure. + * This command is called every time when a device property has been changed + * with the SetDevicePropValue operation, and after some other operations. + * This operation reads the array of Device Properties which have been changed + * by the previous operation. + * Probably, this operation is even required to make those changes work. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * uint16_t** props - the pointer to the array of changed properties + * uint32_t* propnum - the number of elements in the *props array + * + **/ +uint16_t +ptp_canon_getchanges (PTPParams* params, uint16_t** props, uint32_t* propnum) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetChanges); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + *propnum=ptp_unpack_uint16_t_array(params,data,0,size,props); + free(data); + return PTP_RC_OK; +} + +/** + * ptp_canon_getobjectinfo: + * + * This command reads a specified object's record in a device's filesystem, + * or the records of all objects belonging to a specified folder (association). + * + * params: PTPParams* + * uint32_t store - StorageID, + * uint32_t p2 - Yet unknown (0 value works OK) + * uint32_t parent - Parent Object Handle + * # If Parent Object Handle is 0xffffffff, + * # the Parent Object is the top level folder. + * uint32_t handle - Object Handle + * # If Object Handle is 0, the records of all objects + * # belonging to the Parent Object are read. + * # If Object Handle is not 0, only the record of this + * # Object is read. + * + * Return values: Some PTP_RC_* code. + * PTPCANONFolderEntry** entries - the pointer to the folder entry array + * uint32_t* entnum - the number of elements of the array + * + **/ +uint16_t +ptp_canon_getobjectinfo (PTPParams* params, uint32_t store, uint32_t p2, + uint32_t parent, uint32_t handle, + PTPCANONFolderEntry** entries, uint32_t* entnum) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + unsigned int i, size; + + *entnum = 0; + *entries = NULL; + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetObjectInfoEx, store, p2, parent, handle); + data = NULL; + size = 0; + ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size); + if (ret != PTP_RC_OK) + goto exit; + if (!data) + return ret; + if (ptp.Param1 > size/PTP_CANON_FolderEntryLen) { + ptp_debug (params, "param1 is %d, size is only %d", ptp.Param1, size); + ret = PTP_RC_GeneralError; + goto exit; + } + + *entnum = ptp.Param1; + *entries= calloc(*entnum, sizeof(PTPCANONFolderEntry)); + if (*entries == NULL) { + ret = PTP_RC_GeneralError; + goto exit; + } + for(i=0; i<(*entnum); i++) { + if (size < i*PTP_CANON_FolderEntryLen) break; + ptp_unpack_Canon_FE(params, + data+i*PTP_CANON_FolderEntryLen, + &((*entries)[i]) ); + } + +exit: + free (data); + return ret; +} + +/** + * ptp_canon_get_objecthandle_by_name: + * + * This command looks up the specified object on the camera. + * + * Format is "A:\\PATH". + * + * The 'A' is the VolumeLabel from GetStorageInfo, + * my IXUS has "A" for the card and "V" for internal memory. + * + * params: PTPParams* + * char* name - path name + * + * Return values: Some PTP_RC_* code. + * uint32_t *oid - PTP object id. + * + **/ +uint16_t +ptp_canon_get_objecthandle_by_name (PTPParams* params, char* name, uint32_t* objectid) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data; + uint8_t len = 0; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetObjectHandleByName); + data = malloc (2*(strlen(name)+1)+2); + if (!data) return PTP_RC_GeneralError; + memset (data, 0, 2*(strlen(name)+1)+2); + ptp_pack_string (params, name, data, 0, &len); + ret=ptp_transaction (params, &ptp, PTP_DP_SENDDATA, (len+1)*2+1, &data, NULL); + free (data); + *objectid = ptp.Param1; + return ret; +} + +/** + * ptp_canon_get_customize_data: + * + * This command downloads the specified theme slot, including jpegs + * and wav files. + * + * params: PTPParams* + * uint32_t themenr - nr of theme + * + * Return values: Some PTP_RC_* code. + * unsigned char **data - pointer to data pointer + * unsigned int *size - size of data returned + * + **/ +uint16_t +ptp_canon_get_customize_data (PTPParams* params, uint32_t themenr, + unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_GetCustomizeData, themenr); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + + +uint16_t +ptp_nikon_curve_download (PTPParams* params, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_NIKON_CurveDownload); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +/** + * ptp_sony_sdioconnect: + * + * This changes modes of the camera + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_sony_sdioconnect (PTPParams* params, uint32_t p1, uint32_t p2, uint32_t p3) +{ + PTPContainer ptp; + unsigned char *data = NULL; + + PTP_CNT_INIT(ptp, PTP_OC_SONY_SDIOConnect, p1, p2, p3); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, NULL)); + free (data); + return PTP_RC_OK; +} +/** + * ptp_sony_get_vendorpropcodes: + * + * This command downloads the vendor specific property codes. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * unsigned char **data - pointer to data pointer + * unsigned int *size - size of data returned + * + **/ +uint16_t +ptp_sony_get_vendorpropcodes (PTPParams* params, uint16_t **props, unsigned int *size) +{ + PTPContainer ptp; + unsigned char *xdata = NULL; + unsigned int xsize, psize1 = 0, psize2 = 0; + uint16_t *props1 = NULL,*props2 = NULL; + + *props = NULL; + *size = 0; + PTP_CNT_INIT(ptp, PTP_OC_SONY_GetSDIOGetExtDeviceInfo, 0xc8 /* unclear */); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &xdata, &xsize)); + if (xsize == 0) { + ptp_debug (params, "No special operations sent?"); + return PTP_RC_OK; + } + + psize1 = ptp_unpack_uint16_t_array (params, xdata+2, 0, xsize, &props1); + ptp_debug (params, "xsize %d, got size %d\n", xsize, psize1*2 + 2 + 4); + if (psize1*2 + 2 + 4 < xsize) { + psize2 = ptp_unpack_uint16_t_array(params,xdata+2+psize1*2+4, 0, xsize, &props2); + } + *props = calloc(psize1+psize2, sizeof(uint16_t)); + if (!*props) { + ptp_debug (params, "oom during malloc?"); + free (props1); + free (props2); + free (xdata); + return PTP_RC_OK; + } + *size = psize1+psize2; + memcpy (*props, props1, psize1*sizeof(uint16_t)); + memcpy ((*props)+psize1, props2, psize2*sizeof(uint16_t)); + free (props1); + free (props2); + free (xdata); + return PTP_RC_OK; +} + +uint16_t +ptp_sony_getdevicepropdesc (PTPParams* params, uint16_t propcode, PTPDevicePropDesc *dpd) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size, len = 0; + uint16_t ret; + + PTP_CNT_INIT(ptp, PTP_OC_SONY_GetDevicePropdesc, propcode); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + if (!data) return PTP_RC_GeneralError; + /* first 16 bit is 0xc8 0x00, then an array of 16 bit PTP ids */ + ret = ptp_unpack_Sony_DPD(params,data,dpd,size,&len) ? PTP_RC_OK : PTP_RC_GeneralError; + free (data); + return ret; +} + +uint16_t +ptp_sony_getalldevicepropdesc (PTPParams* params) +{ + PTPContainer ptp; + unsigned char *data = NULL, *dpddata; + unsigned int size, readlen; + PTPDevicePropDesc dpd; + + /* for old A900 / A700 who does not have this, but has capture */ + if (!ptp_operation_issupported(params, PTP_OC_SONY_GetAllDevicePropData)) + return PTP_RC_OK; + + PTP_CNT_INIT(ptp, PTP_OC_SONY_GetAllDevicePropData); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + if (!data) + return PTP_RC_GeneralError; + if (size <= 8) { + free (data); + return PTP_RC_GeneralError; + } + dpddata = data+8; /* nr of entries 32bit, 0 32bit */ + size -= 8; + while (size>0) { + unsigned int i; + uint16_t propcode; + + if (!ptp_unpack_Sony_DPD (params, dpddata, &dpd, size, &readlen)) + break; + + propcode = dpd.DevicePropertyCode; + + for (i=0;inrofdeviceproperties;i++) + if (params->deviceproperties[i].desc.DevicePropertyCode == propcode) + break; + + /* debug output to see what changes */ + if (i != params->nrofdeviceproperties) { + switch (dpd.DataType) { + case PTP_DTC_INT8: +#define CHECK_CHANGED(type) \ + if (params->deviceproperties[i].desc.CurrentValue.type != dpd.CurrentValue.type) \ + ptp_debug (params, "ptp_sony_getalldevicepropdesc: %04x: value %d -> %d", propcode, params->deviceproperties[i].desc.CurrentValue.type, dpd.CurrentValue.type); + CHECK_CHANGED(i8); + break; + case PTP_DTC_UINT8: + CHECK_CHANGED(u8); + break; + case PTP_DTC_UINT16: + CHECK_CHANGED(u16); + break; + case PTP_DTC_INT16: + CHECK_CHANGED(i16); + break; + case PTP_DTC_INT32: + CHECK_CHANGED(i32); + break; + case PTP_DTC_UINT32: + CHECK_CHANGED(u32); + break; + default: + break; + } + } + + if (i == params->nrofdeviceproperties) { + params->deviceproperties = realloc(params->deviceproperties,(i+1)*sizeof(params->deviceproperties[0])); + memset(¶ms->deviceproperties[i],0,sizeof(params->deviceproperties[0])); + params->nrofdeviceproperties++; + } else { + ptp_free_devicepropdesc (¶ms->deviceproperties[i].desc); + } + params->deviceproperties[i].desc = dpd; +#if 0 + ptp_debug (params, "dpd.DevicePropertyCode %04x, readlen %d, getset %d", dpd.DevicePropertyCode, readlen, dpd.GetSet); + switch (dpd.DataType) { + case PTP_DTC_INT8: + ptp_debug (params, "value %d/%x", dpd.CurrentValue.i8, dpd.CurrentValue.i8); + break; + case PTP_DTC_UINT8: + ptp_debug (params, "value %d/%x", dpd.CurrentValue.u8, dpd.CurrentValue.u8); + break; + case PTP_DTC_UINT16: + ptp_debug (params, "value %d/%x", dpd.CurrentValue.u16, dpd.CurrentValue.u16); + break; + case PTP_DTC_INT16: + ptp_debug (params, "value %d/%x", dpd.CurrentValue.i16, dpd.CurrentValue.i16); + break; + case PTP_DTC_INT32: + ptp_debug (params, "value %d/%x", dpd.CurrentValue.i32, dpd.CurrentValue.i32); + break; + case PTP_DTC_UINT32: + ptp_debug (params, "value %d/%x", dpd.CurrentValue.u32, dpd.CurrentValue.u32); + break; + default: + ptp_debug (params, "unknown type %x", dpd.DataType); + break; + } +#endif + dpddata += readlen; + size -= readlen; + } + free(data); + return PTP_RC_OK; +} + +uint16_t +ptp_sony_setdevicecontrolvaluea (PTPParams* params, uint16_t propcode, + PTPPropertyValue *value, uint16_t datatype) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data; + uint32_t size; + + PTP_CNT_INIT(ptp, PTP_OC_SONY_SetControlDeviceA, propcode); + size = ptp_pack_DPV(params, value, &data, datatype); + ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free(data); + return ret; +} + +uint16_t +ptp_sony_setdevicecontrolvalueb (PTPParams* params, uint16_t propcode, + PTPPropertyValue *value, uint16_t datatype) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data; + uint32_t size; + + PTP_CNT_INIT(ptp, PTP_OC_SONY_SetControlDeviceB, propcode); + size = ptp_pack_DPV(params, value, &data , datatype); + ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free(data); + return ret; +} + +uint16_t +ptp_sony_9280 (PTPParams* params, uint32_t param1, + uint32_t additional, uint32_t data2, uint32_t data3, uint32_t data4, uint8_t x, uint8_t y) +{ + PTPContainer ptp; + unsigned char buf[18]; + unsigned char *buffer; + + PTP_CNT_INIT(ptp, 0x9280, param1); + + if ((additional != 0) && (additional != 2)) + return PTP_RC_GeneralError; + + htod32a(&buf[0], additional); + htod32a(&buf[4], data2); + htod32a(&buf[8], data3); + htod32a(&buf[12], data4); + + /* only sent in the case where additional is 2 */ + buf[16]= x; buf[17]= y; + + buffer=buf; + return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, 16+additional, &buffer, NULL); +} + +uint16_t +ptp_sony_9281 (PTPParams* params, uint32_t param1) { + PTPContainer ptp; + unsigned int size = 0; + unsigned char *buffer = NULL; + uint16_t ret; + + PTP_CNT_INIT(ptp, 0x9281, param1); + ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &buffer, &size); + free (buffer); + return ret; +} + +/** + * ptp_generic_getdevicepropdesc: + * + * This command gets a propertydesc. + * If a vendor specific property desc query is available, it uses that. + * If not, it falls back to the generic PTP getdevicepropdesc. + * + * params: PTPParams* + * uint16_t propcode + * PTPDevicePropDesc *dpd + * + * Return values: Some PTP_RC_* code. + * + **/ +/* Cache time in seconds. Should perhaps be more granular... */ + +uint16_t +ptp_generic_getdevicepropdesc (PTPParams *params, uint16_t propcode, PTPDevicePropDesc *dpd) +{ + unsigned int i; + time_t now; + + for (i=0;inrofdeviceproperties;i++) + if (params->deviceproperties[i].desc.DevicePropertyCode == propcode) + break; + if (i == params->nrofdeviceproperties) { + params->deviceproperties = realloc(params->deviceproperties,(i+1)*sizeof(params->deviceproperties[0])); + memset(¶ms->deviceproperties[i],0,sizeof(params->deviceproperties[0])); + params->nrofdeviceproperties++; + } + + if (params->deviceproperties[i].desc.DataType != PTP_DTC_UNDEF) { + time(&now); + if (params->deviceproperties[i].timestamp + params->cachetime > now) { + duplicate_DevicePropDesc(¶ms->deviceproperties[i].desc, dpd); + return PTP_RC_OK; + } + /* free cached entry as we will refetch it. */ + ptp_free_devicepropdesc (¶ms->deviceproperties[i].desc); + } + + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_SONY) && + ptp_operation_issupported(params, PTP_OC_SONY_GetAllDevicePropData) + ) { + CHECK_PTP_RC(ptp_sony_getalldevicepropdesc (params)); + + for (i=0;inrofdeviceproperties;i++) + if (params->deviceproperties[i].desc.DevicePropertyCode == propcode) + break; + if (i == params->nrofdeviceproperties) { + ptp_debug (params, "property 0x%04x not found?\n", propcode); + return PTP_RC_GeneralError; + } + time(&now); + params->deviceproperties[i].timestamp = now; + duplicate_DevicePropDesc(¶ms->deviceproperties[i].desc, dpd); + return PTP_RC_OK; + } + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_SONY) && + ptp_operation_issupported(params, PTP_OC_SONY_GetDevicePropdesc) + ) { + CHECK_PTP_RC(ptp_sony_getdevicepropdesc (params, propcode, ¶ms->deviceproperties[i].desc)); + + time(&now); + params->deviceproperties[i].timestamp = now; + duplicate_DevicePropDesc(¶ms->deviceproperties[i].desc, dpd); + return PTP_RC_OK; + } + + + if (ptp_operation_issupported(params, PTP_OC_GetDevicePropDesc)) { + CHECK_PTP_RC(ptp_getdevicepropdesc (params, propcode, ¶ms->deviceproperties[i].desc)); + + time(&now); + params->deviceproperties[i].timestamp = now; + duplicate_DevicePropDesc(¶ms->deviceproperties[i].desc, dpd); + return PTP_RC_OK; + } + + return PTP_RC_OperationNotSupported; +} + +/** + * ptp_generic_setdevicepropvalue: + * + * This command sets a property value, device specific. + * + * params: PTPParams* + * uint16_t propcode + * PTPDevicePropertyValue *value + * uint16_t datatype + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_generic_setdevicepropvalue (PTPParams* params, uint16_t propcode, + PTPPropertyValue *value, uint16_t datatype) +{ + unsigned int i; + + /* reset the cache entry */ + for (i=0;inrofdeviceproperties;i++) + if (params->deviceproperties[i].desc.DevicePropertyCode == propcode) + break; + if (i != params->nrofdeviceproperties) + params->deviceproperties[i].timestamp = 0; + + /* FIXME: change the cache? hmm */ + /* this works for some methods, but not for all */ + if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_SONY) && + ptp_operation_issupported(params, PTP_OC_SONY_SetControlDeviceA) + ) + return ptp_sony_setdevicecontrolvaluea (params, propcode, value, datatype); + return ptp_setdevicepropvalue (params, propcode, value, datatype); +} + +/** + * ptp_nikon_get_vendorpropcodes: + * + * This command downloads the vendor specific property codes. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * unsigned char **data - pointer to data pointer + * unsigned int *size - size of data returned + * + **/ +uint16_t +ptp_nikon_get_vendorpropcodes (PTPParams* params, uint16_t **props, unsigned int *size) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int xsize = 0; + + *props = NULL; + *size = 0; + PTP_CNT_INIT(ptp, PTP_OC_NIKON_GetVendorPropCodes); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &xsize)); + *size = ptp_unpack_uint16_t_array(params,data,0,xsize,props); + free (data); + return PTP_RC_OK; +} + +uint16_t +ptp_nikon_getfileinfoinblock ( PTPParams* params, + uint32_t p1, uint32_t p2, uint32_t p3, + unsigned char **data, unsigned int *size +) { + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_NIKON_GetFileInfoInBlock, p1, p2, p3); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +/** + * ptp_nikon_get_liveview_image: + * + * This command gets a LiveView image from newer Nikons DSLRs. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_nikon_get_liveview_image (PTPParams* params, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_NIKON_GetLiveViewImg); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +/** + * ptp_nikon_get_preview_image: + * + * This command gets a Preview image from newer Nikons DSLRs. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_nikon_get_preview_image (PTPParams* params, unsigned char **xdata, unsigned int *xsize, + uint32_t *handle) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_NIKON_GetPreviewImg); + + /* FIXME: + * pdslrdashboard passes 3 parameters: + * objectid, minimum size, maximum size + */ + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, xdata, xsize)); + if (ptp.Nparam > 0) + *handle = ptp.Param1; + return PTP_RC_OK; +} + +/** + * ptp_canon_eos_get_remotemode: + * + * This command gets the EOS remote mode. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_canon_eos_getremotemode (PTPParams* params, uint32_t *mode) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_GetRemoteMode); + + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + *mode = 0; + if (ptp.Nparam > 0) + *mode = ptp.Param1; + return PTP_RC_OK; +} + +/** + * ptp_canon_eos_get_viewfinder_image: + * + * This command gets a Viewfinder image from newer Nikons DSLRs. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_canon_eos_get_viewfinder_image (PTPParams* params, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_GetViewFinderData, 0x00100000 /* from trace */); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +uint16_t +ptp_canon_eos_get_viewfinder_image_handler (PTPParams* params, PTPDataHandler*handler) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CANON_EOS_GetViewFinderData, 0x00100000 /* from trace */); + return ptp_transaction_new(params, &ptp, PTP_DP_GETDATA, 0, handler); +} + +/** + * ptp_nikon_check_event: + * + * This command checks the event queue on the Nikon. + * + * params: PTPParams* + * PTPUSBEventContainer **event - list of usb events. + * int *evtcnt - number of usb events in event structure. + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_nikon_check_event (PTPParams* params, PTPContainer** event, unsigned int* evtcnt) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_NIKON_CheckEvent); + *evtcnt = 0; + CHECK_PTP_RC(ptp_transaction (params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + ptp_unpack_Nikon_EC (params, data, size, event, evtcnt); + free (data); + return PTP_RC_OK; +} + +/** + * ptp_nikon_getptpipinfo: + * + * This command gets the ptpip info data. + * + * params: PTPParams* + * unsigned char *data - data + * unsigned int size - size of returned data + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_nikon_getptpipinfo (PTPParams* params, unsigned char **data, unsigned int *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_NIKON_GetDevicePTPIPInfo); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size); +} + +/** + * ptp_nikon_getwifiprofilelist: + * + * This command gets the wifi profile list. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_nikon_getwifiprofilelist (PTPParams* params) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + unsigned int size, pos, profn, n; + char *buffer; + uint8_t len; + + PTP_CNT_INIT(ptp, PTP_OC_NIKON_GetProfileAllData); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + + ret = PTP_RC_Undefined; /* FIXME: Add more precise error code */ + + if (size < 2) + goto exit; + + params->wifi_profiles_version = data[0]; + params->wifi_profiles_number = data[1]; + free(params->wifi_profiles); + + params->wifi_profiles = malloc(params->wifi_profiles_number*sizeof(PTPNIKONWifiProfile)); + memset(params->wifi_profiles, 0, params->wifi_profiles_number*sizeof(PTPNIKONWifiProfile)); + + pos = 2; + profn = 0; + while (profn < params->wifi_profiles_number && pos < size) { + if (pos+6 >= size) + goto exit; + params->wifi_profiles[profn].id = data[pos++]; + params->wifi_profiles[profn].valid = data[pos++]; + + n = dtoh32a(&data[pos]); + pos += 4; + if (pos+n+4 >= size) + goto exit; + strncpy(params->wifi_profiles[profn].profile_name, (char*)&data[pos], n); + params->wifi_profiles[profn].profile_name[16] = '\0'; + pos += n; + + params->wifi_profiles[profn].display_order = data[pos++]; + params->wifi_profiles[profn].device_type = data[pos++]; + params->wifi_profiles[profn].icon_type = data[pos++]; + + if (!ptp_unpack_string(params, data, pos, size, &len, &buffer)) + goto exit; + strncpy(params->wifi_profiles[profn].creation_date, buffer, sizeof(params->wifi_profiles[profn].creation_date)); + free (buffer); + pos += (len*2+1); + if (pos+1 >= size) + goto exit; + /* FIXME: check if it is really last usage date */ + if (!ptp_unpack_string(params, data, pos, size, &len, &buffer)) + goto exit; + strncpy(params->wifi_profiles[profn].lastusage_date, buffer, sizeof(params->wifi_profiles[profn].lastusage_date)); + free (buffer); + pos += (len*2+1); + if (pos+5 >= size) + goto exit; + + n = dtoh32a(&data[pos]); + pos += 4; + if (pos+n >= size) + goto exit; + strncpy(params->wifi_profiles[profn].essid, (char*)&data[pos], n); + params->wifi_profiles[profn].essid[32] = '\0'; + pos += n; + pos += 1; + profn++; + } + +#if 0 + PTPNIKONWifiProfile test; + memset(&test, 0, sizeof(PTPNIKONWifiProfile)); + strcpy(test.profile_name, "MyTest"); + test.icon_type = 1; + strcpy(test.essid, "nikon"); + test.ip_address = 10 + 11 << 16 + 11 << 24; + test.subnet_mask = 24; + test.access_mode = 1; + test.wifi_channel = 1; + test.key_nr = 1; + + ptp_nikon_writewifiprofile(params, &test); +#endif + /* everything went Ok */ + ret = PTP_RC_OK; +exit: + free (data); + return ret; +} + +/** + * ptp_nikon_writewifiprofile: + * + * This command gets the ptpip info data. + * + * params: PTPParams* + * unsigned int profilenr - profile number + * unsigned char *data - data + * unsigned int size - size of returned data + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_nikon_writewifiprofile (PTPParams* params, PTPNIKONWifiProfile* profile) +{ + PTPContainer ptp; + unsigned char buffer[1024]; + unsigned char* data = buffer; + int size = 0; + int i; + uint8_t len; + int profilenr = -1; + unsigned char guid[16]; + + ptp_nikon_getptpipguid(guid); + + if (!params->wifi_profiles) + CHECK_PTP_RC(ptp_nikon_getwifiprofilelist(params)); + + for (i = 0; i < params->wifi_profiles_number; i++) { + if (!params->wifi_profiles[i].valid) { + profilenr = params->wifi_profiles[i].id; + break; + } + } + + if (profilenr == -1) { + /* No free profile! */ + return PTP_RC_StoreFull; + } + + memset(buffer, 0, 1024); + + buffer[0x00] = 0x64; /* Version */ + + /* Profile name */ + htod32a(&buffer[0x01], 17); + /* 16 as third parameter, so there will always be a null-byte in the end */ + strncpy((char*)&buffer[0x05], profile->profile_name, 16); + + buffer[0x16] = 0x00; /* Display order */ + buffer[0x17] = profile->device_type; + buffer[0x18] = profile->icon_type; + + /* FIXME: Creation date: put a real date here */ + ptp_pack_string(params, "19990909T090909", data, 0x19, &len); + + /* IP parameters */ + memcpy(&buffer[0x3A],&profile->ip_address,sizeof(profile->ip_address)); + /**((unsigned int*)&buffer[0x3A]) = profile->ip_address; *//* Do not reverse bytes */ + buffer[0x3E] = profile->subnet_mask; + memcpy(&buffer[0x3F],&profile->gateway_address,sizeof(profile->gateway_address)); + /**((unsigned int*)&buffer[0x3F]) = profile->gateway_address; */ /* Do not reverse bytes */ + buffer[0x43] = profile->address_mode; + + /* Wifi parameters */ + buffer[0x44] = profile->access_mode; + buffer[0x45] = profile->wifi_channel; + + htod32a(&buffer[0x46], 33); /* essid */ + /* 32 as third parameter, so there will always be a null-byte in the end */ + strncpy((char*)&buffer[0x4A], profile->essid, 32); + + buffer[0x6B] = profile->authentification; + buffer[0x6C] = profile->encryption; + htod32a(&buffer[0x6D], 64); + for (i = 0; i < 64; i++) { + buffer[0x71+i] = profile->key[i]; + } + buffer[0xB1] = profile->key_nr; + memcpy(&buffer[0xB2], guid, 16); + + switch(profile->encryption) { + case 1: /* WEP 64bit */ + htod16a(&buffer[0xC2], 5); /* (64-24)/8 = 5 */ + break; + case 2: /* WEP 128bit */ + htod16a(&buffer[0xC2], 13); /* (128-24)/8 = 13 */ + break; + default: + htod16a(&buffer[0xC2], 0); + } + size = 0xC4; + + PTP_CNT_INIT(ptp, PTP_OC_NIKON_SendProfileData, profilenr); + return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); +} + +/** + * ptp_mtp_getobjectpropssupported: + * + * This command gets the object properties possible from the device. + * + * params: PTPParams* + * uint ofc - object format code + * unsigned int *propnum - number of elements in returned array + * uint16_t *props - array of supported properties + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_mtp_getobjectpropssupported (PTPParams* params, uint16_t ofc, + uint32_t *propnum, uint16_t **props +) { + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int xsize = 0; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_GetObjectPropsSupported, ofc); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &xsize)); + if (!data) return PTP_RC_GeneralError; + *propnum=ptp_unpack_uint16_t_array (params, data, 0, xsize, props); + free(data); + return PTP_RC_OK; +} + +/** + * ptp_mtp_getobjectpropdesc: + * + * This command gets the object property description. + * + * params: PTPParams* + * uint16_t opc - object property code + * uint16_t ofc - object format code + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_mtp_getobjectpropdesc ( + PTPParams* params, uint16_t opc, uint16_t ofc, PTPObjectPropDesc *opd +) { + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_GetObjectPropDesc, opc, ofc); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + ptp_unpack_OPD (params, data, opd, size); + free(data); + return PTP_RC_OK; +} + +/** + * ptp_mtp_getobjectpropvalue: + * + * This command gets the object properties of an object handle. + * + * params: PTPParams* + * uint32_t objectid - object format code + * uint16_t opc - object prop code + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_mtp_getobjectpropvalue ( + PTPParams* params, uint32_t oid, uint16_t opc, + PTPPropertyValue *value, uint16_t datatype +) { + PTPContainer ptp; + uint16_t ret = PTP_RC_OK; + unsigned char *data = NULL; + unsigned int size, offset = 0; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_GetObjectPropValue, oid, opc); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + if (!ptp_unpack_DPV(params, data, &offset, size, value, datatype)) { + ptp_debug (params, "ptp_mtp_getobjectpropvalue: unpacking DPV failed"); + ret = PTP_RC_GeneralError; + } + free(data); + return ret; +} + +/** + * ptp_mtp_setobjectpropvalue: + * + * This command gets the object properties of an object handle. + * + * params: PTPParams* + * uint32_t objectid - object format code + * uint16_t opc - object prop code + * + * Return values: Some PTP_RC_* code. + * + **/ +uint16_t +ptp_mtp_setobjectpropvalue ( + PTPParams* params, uint32_t oid, uint16_t opc, + PTPPropertyValue *value, uint16_t datatype +) { + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + uint32_t size; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_SetObjectPropValue, oid, opc); + size = ptp_pack_DPV(params, value, &data, datatype); + ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free(data); + return ret; +} + +uint16_t +ptp_mtp_getobjectreferences (PTPParams* params, uint32_t handle, uint32_t** ohArray, uint32_t* arraylen) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_GetObjectReferences, handle); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data , &size)); + /* Sandisk Sansa skips the DATA phase, but returns OK as response. + * this will gives us a NULL here. Handle it. -Marcus */ + if ((data == NULL) || (size == 0)) { + *arraylen = 0; + *ohArray = NULL; + } else { + *arraylen = ptp_unpack_uint32_t_array(params, data , 0, size, ohArray); + } + free(data); + return PTP_RC_OK; +} + +uint16_t +ptp_mtp_setobjectreferences (PTPParams* params, uint32_t handle, uint32_t* ohArray, uint32_t arraylen) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + uint32_t size; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_SetObjectReferences, handle); + size = ptp_pack_uint32_t_array(params, ohArray, arraylen, &data); + ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free(data); + return ret; +} + +uint16_t +ptp_mtp_getobjectproplist_generic (PTPParams* params, uint32_t handle, uint32_t formats, uint32_t properties, uint32_t propertygroups, uint32_t level, MTPProperties **props, int *nrofprops) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_GetObjPropList, handle, formats, properties, propertygroups, level); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + *nrofprops = ptp_unpack_OPL(params, data, props, size); + free(data); + return PTP_RC_OK; +} + +uint16_t +ptp_mtp_getobjectproplist_level (PTPParams* params, uint32_t handle, uint32_t level, MTPProperties **props, int *nrofprops) +{ + return ptp_mtp_getobjectproplist_generic (params, handle, + 0x00000000U, /* 0x00000000U should be "all formats" */ + 0xFFFFFFFFU, /* 0xFFFFFFFFU should be "all properties" */ + 0, + level, + props, + nrofprops + ); +} + + +uint16_t +ptp_mtp_getobjectproplist (PTPParams* params, uint32_t handle, MTPProperties **props, int *nrofprops) +{ + return ptp_mtp_getobjectproplist_level(params, handle, 0xFFFFFFFFU, props, nrofprops); +} + +uint16_t +ptp_mtp_getobjectproplist_single (PTPParams* params, uint32_t handle, MTPProperties **props, int *nrofprops) +{ + return ptp_mtp_getobjectproplist_level(params, handle, 0, props, nrofprops); +} + +uint16_t +ptp_mtp_sendobjectproplist (PTPParams* params, uint32_t* store, uint32_t* parenthandle, uint32_t* handle, + uint16_t objecttype, uint64_t objectsize, MTPProperties *props, int nrofprops) +{ + PTPContainer ptp; + uint16_t ret; + unsigned char *data = NULL; + uint32_t size; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_SendObjectPropList, *store, *parenthandle, (uint32_t) objecttype, + (uint32_t) (objectsize >> 32), (uint32_t) (objectsize & 0xffffffffU) + ); + + /* Set object handle to 0 for a new object */ + size = ptp_pack_OPL(params,props,nrofprops,&data); + ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL); + free(data); + *store = ptp.Param1; + *parenthandle = ptp.Param2; + *handle = ptp.Param3; + + return ret; +} + +uint16_t +ptp_mtp_setobjectproplist (PTPParams* params, MTPProperties *props, int nrofprops) +{ + PTPContainer ptp; + unsigned char *data = NULL; + uint32_t size; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_SetObjPropList); + size = ptp_pack_OPL(params,props,nrofprops,&data); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL)); + free(data); + return PTP_RC_OK; +} + +uint16_t +ptp_mtpz_sendwmdrmpdapprequest (PTPParams* params, unsigned char *appcertmsg, uint32_t size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_WMDRMPD_SendWMDRMPDAppRequest); + return ptp_transaction (params, &ptp, PTP_DP_SENDDATA, size, &appcertmsg, NULL); +} + +uint16_t +ptp_mtpz_getwmdrmpdappresponse (PTPParams* params, unsigned char **response, uint32_t *size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_MTP_WMDRMPD_GetWMDRMPDAppResponse); + *size = 0; + *response = NULL; + return ptp_transaction (params, &ptp, PTP_DP_GETDATA, 0, response, size); +} + +/****** CHDK interface ******/ + +uint16_t +ptp_chdk_get_memory(PTPParams* params, int start, int num, unsigned char **buf) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_GetMemory, start, num); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, buf, NULL); +} + +uint16_t +ptp_chdk_set_memory_long(PTPParams* params, int addr, int val) +{ + PTPContainer ptp; + unsigned char *buf = (unsigned char *) &val; /* FIXME ... endianness? */ + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_SetMemory, addr, 4); + return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, 4, &buf, NULL); +} + +uint16_t +ptp_chdk_download(PTPParams* params, char *remote_fn, PTPDataHandler *handler) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_TempData, 0); + CHECK_PTP_RC (ptp_transaction(params, &ptp, PTP_DP_SENDDATA, strlen(remote_fn), (unsigned char**)&remote_fn, NULL)); + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_DownloadFile); + return ptp_transaction_new (params, &ptp, PTP_DP_GETDATA, 0, handler); +} + +#if 0 +int ptp_chdk_upload(PTPParams* params, char *local_fn, char *remote_fn) +{ + uint16_t ret; + PTPContainer ptp; + char *buf = NULL; + FILE *f; + unsigned file_len,data_len,file_name_len; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_UploadFile); + + f = fopen(local_fn,"rb"); + if ( f == NULL ) + { + ptp_error(params,"could not open file \'%s\'",local_fn); + return 0; + } + + fseek(f,0,SEEK_END); + file_len = ftell(f); + fseek(f,0,SEEK_SET); + + file_name_len = strlen(remote_fn); + data_len = 4 + file_name_len + file_len; + buf = malloc(data_len); + memcpy(buf,&file_name_len,4); + memcpy(buf+4,remote_fn,file_name_len); + fread(buf+4+file_name_len,1,file_len,f); + + fclose(f); + + ret=ptp_transaction(params, &ptp, PTP_DP_SENDDATA, data_len, &buf, NULL); + + free(buf); + + if ( ret != PTP_RC_OK ) + { + ptp_error(params,"unexpected return code 0x%x",ret); + return 0; + } + return 1; +} + +#endif + +/* + * Preliminary remote capture over USB code. Corresponding CHDK code is in the ptp-remote-capture-test + * This is under development and should not be included in builds for general distribution + */ +/* + * isready: 0: not ready, lowest 2 bits: available image formats, 0x10000000: error + */ +uint16_t +ptp_chdk_rcisready(PTPParams* params, int *isready, int *imgnum) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_RemoteCaptureIsReady); + *isready = *imgnum = 0; + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + *isready=ptp.Param1; + *imgnum=ptp.Param2; + return PTP_RC_OK; +} + +uint16_t +ptp_chdk_rcgetchunk(PTPParams* params, int fmt, ptp_chdk_rc_chunk *chunk) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_RemoteCaptureGetData, fmt); //get chunk + + chunk->data = NULL; + chunk->size = 0; + chunk->offset = 0; + chunk->last = 0; + // TODO should allow ptp_getdata_transaction to send chunks directly to file, or to mem + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &chunk->data, NULL)); + chunk->size = ptp.Param1; + chunk->last = (ptp.Param2 == 0); + chunk->offset = ptp.Param3; //-1 for none + return PTP_RC_OK; +} + +uint16_t +ptp_chdk_exec_lua(PTPParams* params, char *script, int flags, int *script_id, int *status) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_ExecuteScript, PTP_CHDK_SL_LUA | flags); + *script_id = 0; + *status = 0; + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_SENDDATA, strlen(script)+1, (unsigned char**)&script, NULL)); + *script_id = ptp.Param1; + *status = ptp.Param2; + return PTP_RC_OK; +} + +uint16_t +ptp_chdk_get_version(PTPParams* params, int *major, int *minor) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_Version); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + *major = ptp.Param1; + *minor = ptp.Param2; + return PTP_RC_OK; +} + +uint16_t +ptp_chdk_get_script_status(PTPParams* params, unsigned *status) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_ScriptStatus); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + *status = ptp.Param1; + return PTP_RC_OK; +} +uint16_t +ptp_chdk_get_script_support(PTPParams* params, unsigned *status) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_ScriptSupport); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL)); + *status = ptp.Param1; + return PTP_RC_OK; +} + +uint16_t +ptp_chdk_write_script_msg(PTPParams* params, char *data, unsigned size, int target_script_id, int *status) +{ + PTPContainer ptp; + + // a zero length data phase appears to do bad things, camera stops responding to PTP + if(!size) { + ptp_error(params,"zero length message not allowed"); + *status = 0; + return PTP_ERROR_BADPARAM; + } + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_WriteScriptMsg, target_script_id); + *status = 0; + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, (unsigned char**)&data, NULL)); + *status = ptp.Param1; + return PTP_RC_OK; +} +uint16_t +ptp_chdk_read_script_msg(PTPParams* params, ptp_chdk_script_msg **msg) +{ + PTPContainer ptp; + unsigned char *data = NULL; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_ReadScriptMsg); + + *msg = NULL; + + /* camera will always send data, otherwise getdata will cause problems */ + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, NULL)); + if (!data) { + ptp_error(params,"no data received"); + return PTP_ERROR_BADPARAM; + } + + /* for convenience, always allocate an extra byte and null it*/ + *msg = malloc(sizeof(ptp_chdk_script_msg) + ptp.Param4 + 1); + (*msg)->type = ptp.Param1; + (*msg)->subtype = ptp.Param2; + (*msg)->script_id = ptp.Param3; + (*msg)->size = ptp.Param4; + memcpy((*msg)->data,data,(*msg)->size); + (*msg)->data[(*msg)->size] = 0; + free(data); + return PTP_RC_OK; +} + +uint16_t +ptp_chdk_get_live_data(PTPParams* params, unsigned flags, unsigned char **data, unsigned int *data_size) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_GetDisplayData, flags); + *data_size = 0; + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, NULL)); + *data_size = ptp.Param1; + return PTP_RC_OK; +} + +uint16_t +ptp_chdk_call_function(PTPParams* params, int *args, int size, int *ret) +{ + PTPContainer ptp; + + PTP_CNT_INIT(ptp, PTP_OC_CHDK, PTP_CHDK_CallFunction); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size*sizeof(int), (unsigned char **) &args, NULL)); + if (ret) + *ret = ptp.Param1; + return PTP_RC_OK; +} + +uint16_t +ptp_chdk_parse_live_data (PTPParams* params, unsigned char *data, unsigned int data_size, + lv_data_header *header, + lv_framebuffer_desc *vpd, lv_framebuffer_desc *bmd +) { + int byte_w; + + if (data_size < sizeof (*header)) + return PTP_ERROR_IO; + ptp_unpack_chdk_lv_data_header (params, data, header); + if (data_size < (header->vp_desc_start + sizeof (*vpd)) || data_size < (header->bm_desc_start + sizeof (*bmd))) + return PTP_ERROR_IO; + ptp_unpack_chdk_lv_framebuffer_desc (params, data+header->vp_desc_start, vpd); + ptp_unpack_chdk_lv_framebuffer_desc (params, data+header->vp_desc_start, bmd); + + /* The buffer_width field corresponds to the number of Y values in a row, + * so the actual number of bytes would be either one and a half times + * or (for Digic 6 cameras) twice so large */ + byte_w = (vpd->fb_type == LV_FB_YUV8) ? vpd->buffer_width * 1.5 : vpd->buffer_width * 2; + if (data_size < (vpd->data_start + (byte_w * vpd->visible_height))) + return PTP_ERROR_IO; + return PTP_RC_OK; +} + + +/** + * Android MTP Extensions + */ + +/** + * ptp_android_getpartialobject64: + * params: PTPParams* + * handle - Object handle + * offset - Offset into object + * maxbytes - Maximum of bytes to read + * object - pointer to data area + * len - pointer to returned length + * + * Get object 'handle' from device and store the data in newly + * allocated 'object'. Start from offset and read at most maxbytes. + * + * This is a 64bit offset version of the standard GetPartialObject. + * + * Return values: Some PTP_RC_* code. + **/ +uint16_t +ptp_android_getpartialobject64 (PTPParams* params, uint32_t handle, uint64_t offset, + uint32_t maxbytes, unsigned char** object, + uint32_t *len) +{ + PTPContainer ptp; + + /* casts due to varargs otherwise pushing 64bit values on the stack */ + PTP_CNT_INIT(ptp, PTP_OC_ANDROID_GetPartialObject64, handle, ((uint32_t)offset & 0xFFFFFFFF), (uint32_t)(offset >> 32), maxbytes); + return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, object, len); +} + +uint16_t +ptp_android_sendpartialobject (PTPParams* params, uint32_t handle, uint64_t offset, + unsigned char* object, uint32_t len) +{ + PTPContainer ptp; + uint16_t ret; + + PTP_CNT_INIT(ptp, PTP_OC_ANDROID_SendPartialObject, handle, (uint32_t)(offset & 0xFFFFFFFF), (uint32_t)(offset >> 32), len); + + /* + * MtpServer.cpp is buggy: it uses write() without offset + * rather than pwrite to send the data for data coming with + * the header packet + */ + params->split_header_data = 1; + ret=ptp_transaction(params, &ptp, PTP_DP_SENDDATA, len, &object, NULL); + params->split_header_data = 0; + + return ret; +} + +uint16_t +ptp_fuji_getevents (PTPParams* params, uint16_t** events, uint16_t* count) +{ + PTPContainer ptp; + unsigned char *data = NULL; + unsigned int size = 0; + + PTP_CNT_INIT(ptp, PTP_OC_GetDevicePropValue, 0xd212); + CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size)); + ptp_debug(params, "ptp_fuji_getevents"); + *count = 0; + if(size >= 2) + { + *count = dtoh16a(data); + ptp_debug(params, "event count: %d", *count); + *events = calloc(*count, sizeof(uint16_t)); + if(size >= 2 + *count * 6) + { + uint16_t param; + uint32_t value; + int i; + + for(i = 0; i < *count; i++) + { + param = dtoh16a(&data[2 + 6 * i]); + value = dtoh32a(&data[2 + 6 * i + 2]); + (*events)[i] = param; + ptp_debug(params, "param: %02x, value: %d ", param, value); + } + } + } + free(data); + return PTP_RC_OK; +} + + +/* Non PTP protocol functions */ +/* devinfo testing functions */ + +int +ptp_event_issupported(PTPParams* params, uint16_t event) +{ + unsigned int i=0; + + for (;ideviceinfo.EventsSupported_len;i++) { + if (params->deviceinfo.EventsSupported[i]==event) + return 1; + } + return 0; +} + + +int +ptp_property_issupported(PTPParams* params, uint16_t property) +{ + unsigned int i; + + for (i=0;ideviceinfo.DevicePropertiesSupported_len;i++) + if (params->deviceinfo.DevicePropertiesSupported[i]==property) + return 1; + return 0; +} + +void +ptp_free_objectinfo (PTPObjectInfo *oi) +{ + if (!oi) return; + free (oi->Filename); oi->Filename = NULL; + free (oi->Keywords); oi->Keywords = NULL; +} + +void +ptp_free_object (PTPObject *ob) +{ + unsigned int i; + if (!ob) return; + + ptp_free_objectinfo (&ob->oi); + for (i=0;inrofmtpprops;i++) + ptp_destroy_object_prop(&ob->mtpprops[i]); + ob->flags = 0; +} + +/* PTP error descriptions */ +static struct { + uint16_t rc; + uint16_t vendor; + const char *txt; +} ptp_errors[] = { + {PTP_RC_Undefined, 0, N_("PTP Undefined Error")}, + {PTP_RC_OK, 0, N_("PTP OK!")}, + {PTP_RC_GeneralError, 0, N_("PTP General Error")}, + {PTP_RC_SessionNotOpen, 0, N_("PTP Session Not Open")}, + {PTP_RC_InvalidTransactionID, 0, N_("PTP Invalid Transaction ID")}, + {PTP_RC_OperationNotSupported, 0, N_("PTP Operation Not Supported")}, + {PTP_RC_ParameterNotSupported, 0, N_("PTP Parameter Not Supported")}, + {PTP_RC_IncompleteTransfer, 0, N_("PTP Incomplete Transfer")}, + {PTP_RC_InvalidStorageId, 0, N_("PTP Invalid Storage ID")}, + {PTP_RC_InvalidObjectHandle, 0, N_("PTP Invalid Object Handle")}, + {PTP_RC_DevicePropNotSupported, 0, N_("PTP Device Prop Not Supported")}, + {PTP_RC_InvalidObjectFormatCode,0, N_("PTP Invalid Object Format Code")}, + {PTP_RC_StoreFull, 0, N_("PTP Store Full")}, + {PTP_RC_ObjectWriteProtected, 0, N_("PTP Object Write Protected")}, + {PTP_RC_StoreReadOnly, 0, N_("PTP Store Read Only")}, + {PTP_RC_AccessDenied, 0, N_("PTP Access Denied")}, + {PTP_RC_NoThumbnailPresent, 0, N_("PTP No Thumbnail Present")}, + {PTP_RC_SelfTestFailed, 0, N_("PTP Self Test Failed")}, + {PTP_RC_PartialDeletion, 0, N_("PTP Partial Deletion")}, + {PTP_RC_StoreNotAvailable, 0, N_("PTP Store Not Available")}, + {PTP_RC_SpecificationByFormatUnsupported, 0, N_("PTP Specification By Format Unsupported")}, + {PTP_RC_NoValidObjectInfo, 0, N_("PTP No Valid Object Info")}, + {PTP_RC_InvalidCodeFormat, 0, N_("PTP Invalid Code Format")}, + {PTP_RC_UnknownVendorCode, 0, N_("PTP Unknown Vendor Code")}, + {PTP_RC_CaptureAlreadyTerminated, 0, N_("PTP Capture Already Terminated")}, + {PTP_RC_DeviceBusy, 0, N_("PTP Device Busy")}, + {PTP_RC_InvalidParentObject, 0, N_("PTP Invalid Parent Object")}, + {PTP_RC_InvalidDevicePropFormat,0, N_("PTP Invalid Device Prop Format")}, + {PTP_RC_InvalidDevicePropValue, 0, N_("PTP Invalid Device Prop Value")}, + {PTP_RC_InvalidParameter, 0, N_("PTP Invalid Parameter")}, + {PTP_RC_SessionAlreadyOpened, 0, N_("PTP Session Already Opened")}, + {PTP_RC_TransactionCanceled, 0, N_("PTP Transaction Canceled")}, + {PTP_RC_SpecificationOfDestinationUnsupported, 0, N_("PTP Specification Of Destination Unsupported")}, + + {PTP_RC_EK_FilenameRequired, PTP_VENDOR_EASTMAN_KODAK, N_("Filename Required")}, + {PTP_RC_EK_FilenameConflicts, PTP_VENDOR_EASTMAN_KODAK, N_("Filename Conflicts")}, + {PTP_RC_EK_FilenameInvalid, PTP_VENDOR_EASTMAN_KODAK, N_("Filename Invalid")}, + + {PTP_RC_NIKON_HardwareError, PTP_VENDOR_NIKON, N_("Hardware Error")}, + {PTP_RC_NIKON_OutOfFocus, PTP_VENDOR_NIKON, N_("Out of Focus")}, + {PTP_RC_NIKON_ChangeCameraModeFailed, PTP_VENDOR_NIKON, N_("Change Camera Mode Failed")}, + {PTP_RC_NIKON_InvalidStatus, PTP_VENDOR_NIKON, N_("Invalid Status")}, + {PTP_RC_NIKON_SetPropertyNotSupported, PTP_VENDOR_NIKON, N_("Set Property Not Supported")}, + {PTP_RC_NIKON_WbResetError, PTP_VENDOR_NIKON, N_("Whitebalance Reset Error")}, + {PTP_RC_NIKON_DustReferenceError, PTP_VENDOR_NIKON, N_("Dust Reference Error")}, + {PTP_RC_NIKON_ShutterSpeedBulb, PTP_VENDOR_NIKON, N_("Shutter Speed Bulb")}, + {PTP_RC_NIKON_MirrorUpSequence, PTP_VENDOR_NIKON, N_("Mirror Up Sequence")}, + {PTP_RC_NIKON_CameraModeNotAdjustFNumber, PTP_VENDOR_NIKON, N_("Camera Mode Not Adjust FNumber")}, + {PTP_RC_NIKON_NotLiveView, PTP_VENDOR_NIKON, N_("Not in Liveview")}, + {PTP_RC_NIKON_MfDriveStepEnd, PTP_VENDOR_NIKON, N_("Mf Drive Step End")}, + {PTP_RC_NIKON_MfDriveStepInsufficiency, PTP_VENDOR_NIKON, N_("Mf Drive Step Insufficiency")}, + {PTP_RC_NIKON_AdvancedTransferCancel, PTP_VENDOR_NIKON, N_("Advanced Transfer Cancel")}, + + {PTP_RC_CANON_UNKNOWN_COMMAND, PTP_VENDOR_CANON, N_("Unknown Command")}, + {PTP_RC_CANON_OPERATION_REFUSED,PTP_VENDOR_CANON, N_("Operation Refused")}, + {PTP_RC_CANON_LENS_COVER, PTP_VENDOR_CANON, N_("Lens Cover Present")}, + {PTP_RC_CANON_BATTERY_LOW, PTP_VENDOR_CANON, N_("Battery Low")}, + {PTP_RC_CANON_NOT_READY, PTP_VENDOR_CANON, N_("Camera Not Ready")}, + + {PTP_ERROR_NODEVICE, 0, N_("PTP No Device")}, + {PTP_ERROR_TIMEOUT, 0, N_("PTP Timeout")}, + {PTP_ERROR_CANCEL, 0, N_("PTP Cancel Request")}, + {PTP_ERROR_BADPARAM, 0, N_("PTP Invalid Parameter")}, + {PTP_ERROR_RESP_EXPECTED, 0, N_("PTP Response Expected")}, + {PTP_ERROR_DATA_EXPECTED, 0, N_("PTP Data Expected")}, + {PTP_ERROR_IO, 0, N_("PTP I/O Error")}, + {0, 0, NULL} +}; + +const char * +ptp_strerror(uint16_t ret, uint16_t vendor) +{ + int i; + + for (i=0; ptp_errors[i].txt != NULL; i++) + if ((ptp_errors[i].rc == ret) && ((ptp_errors[i].vendor == 0) || (ptp_errors[i].vendor == vendor))) + return ptp_errors[i].txt; + return NULL; +} + +const char* +ptp_get_property_description(PTPParams* params, uint16_t dpc) +{ + int i; + /* Device Property descriptions */ + struct { + uint16_t dpc; + const char *txt; + } ptp_device_properties[] = { + {PTP_DPC_Undefined, N_("Undefined PTP Property")}, + {PTP_DPC_BatteryLevel, N_("Battery Level")}, + {PTP_DPC_FunctionalMode, N_("Functional Mode")}, + {PTP_DPC_ImageSize, N_("Image Size")}, + {PTP_DPC_CompressionSetting, N_("Compression Setting")}, + {PTP_DPC_WhiteBalance, N_("White Balance")}, + {PTP_DPC_RGBGain, N_("RGB Gain")}, + {PTP_DPC_FNumber, N_("F-Number")}, + {PTP_DPC_FocalLength, N_("Focal Length")}, + {PTP_DPC_FocusDistance, N_("Focus Distance")}, + {PTP_DPC_FocusMode, N_("Focus Mode")}, + {PTP_DPC_ExposureMeteringMode, N_("Exposure Metering Mode")}, + {PTP_DPC_FlashMode, N_("Flash Mode")}, + {PTP_DPC_ExposureTime, N_("Exposure Time")}, + {PTP_DPC_ExposureProgramMode, N_("Exposure Program Mode")}, + {PTP_DPC_ExposureIndex, + N_("Exposure Index (film speed ISO)")}, + {PTP_DPC_ExposureBiasCompensation, + N_("Exposure Bias Compensation")}, + {PTP_DPC_DateTime, N_("Date & Time")}, + {PTP_DPC_CaptureDelay, N_("Pre-Capture Delay")}, + {PTP_DPC_StillCaptureMode, N_("Still Capture Mode")}, + {PTP_DPC_Contrast, N_("Contrast")}, + {PTP_DPC_Sharpness, N_("Sharpness")}, + {PTP_DPC_DigitalZoom, N_("Digital Zoom")}, + {PTP_DPC_EffectMode, N_("Effect Mode")}, + {PTP_DPC_BurstNumber, N_("Burst Number")}, + {PTP_DPC_BurstInterval, N_("Burst Interval")}, + {PTP_DPC_TimelapseNumber, N_("Timelapse Number")}, + {PTP_DPC_TimelapseInterval, N_("Timelapse Interval")}, + {PTP_DPC_FocusMeteringMode, N_("Focus Metering Mode")}, + {PTP_DPC_UploadURL, N_("Upload URL")}, + {PTP_DPC_Artist, N_("Artist")}, + {PTP_DPC_CopyrightInfo, N_("Copyright Info")}, + {PTP_DPC_SupportedStreams, N_("Supported Streams")}, + {PTP_DPC_EnabledStreams, N_("Enabled Streams")}, + {PTP_DPC_VideoFormat, N_("Video Format")}, + {PTP_DPC_VideoResolution, N_("Video Resolution")}, + {PTP_DPC_VideoQuality, N_("Video Quality")}, + {PTP_DPC_VideoFrameRate, N_("Video Framerate")}, + {PTP_DPC_VideoContrast, N_("Video Contrast")}, + {PTP_DPC_VideoBrightness, N_("Video Brightness")}, + {PTP_DPC_AudioFormat, N_("Audio Format")}, + {PTP_DPC_AudioBitrate, N_("Audio Bitrate")}, + {PTP_DPC_AudioSamplingRate, N_("Audio Samplingrate")}, + {PTP_DPC_AudioBitPerSample, N_("Audio Bits per sample")}, + {PTP_DPC_AudioVolume, N_("Audio Volume")}, + {0,NULL} + }; + struct { + uint16_t dpc; + const char *txt; + } ptp_device_properties_EK[] = { + {PTP_DPC_EK_ColorTemperature, N_("Color Temperature")}, + {PTP_DPC_EK_DateTimeStampFormat, + N_("Date Time Stamp Format")}, + {PTP_DPC_EK_BeepMode, N_("Beep Mode")}, + {PTP_DPC_EK_VideoOut, N_("Video Out")}, + {PTP_DPC_EK_PowerSaving, N_("Power Saving")}, + {PTP_DPC_EK_UI_Language, N_("UI Language")}, + {0,NULL} + }; + + struct { + uint16_t dpc; + const char *txt; + } ptp_device_properties_Canon[] = { + {PTP_DPC_CANON_BeepMode, N_("Beep Mode")}, + {PTP_DPC_CANON_BatteryKind, N_("Battery Type")}, + {PTP_DPC_CANON_BatteryStatus, N_("Battery Mode")}, + {PTP_DPC_CANON_UILockType, N_("UILockType")}, + {PTP_DPC_CANON_CameraMode, N_("Camera Mode")}, + {PTP_DPC_CANON_ImageQuality, N_("Image Quality")}, + {PTP_DPC_CANON_FullViewFileFormat, N_("Full View File Format")}, + {PTP_DPC_CANON_ImageSize, N_("Image Size")}, + {PTP_DPC_CANON_SelfTime, N_("Self Time")}, + {PTP_DPC_CANON_FlashMode, N_("Flash Mode")}, + {PTP_DPC_CANON_Beep, N_("Beep")}, + {PTP_DPC_CANON_ShootingMode, N_("Shooting Mode")}, + {PTP_DPC_CANON_ImageMode, N_("Image Mode")}, + {PTP_DPC_CANON_DriveMode, N_("Drive Mode")}, + {PTP_DPC_CANON_EZoom, N_("Zoom")}, + {PTP_DPC_CANON_MeteringMode, N_("Metering Mode")}, + {PTP_DPC_CANON_AFDistance, N_("AF Distance")}, + {PTP_DPC_CANON_FocusingPoint, N_("Focusing Point")}, + {PTP_DPC_CANON_WhiteBalance, N_("White Balance")}, + {PTP_DPC_CANON_SlowShutterSetting, N_("Slow Shutter Setting")}, + {PTP_DPC_CANON_AFMode, N_("AF Mode")}, + {PTP_DPC_CANON_ImageStabilization, N_("Image Stabilization")}, + {PTP_DPC_CANON_Contrast, N_("Contrast")}, + {PTP_DPC_CANON_ColorGain, N_("Color Gain")}, + {PTP_DPC_CANON_Sharpness, N_("Sharpness")}, + {PTP_DPC_CANON_Sensitivity, N_("Sensitivity")}, + {PTP_DPC_CANON_ParameterSet, N_("Parameter Set")}, + {PTP_DPC_CANON_ISOSpeed, N_("ISO Speed")}, + {PTP_DPC_CANON_Aperture, N_("Aperture")}, + {PTP_DPC_CANON_ShutterSpeed, N_("Shutter Speed")}, + {PTP_DPC_CANON_ExpCompensation, N_("Exposure Compensation")}, + {PTP_DPC_CANON_FlashCompensation, N_("Flash Compensation")}, + {PTP_DPC_CANON_AEBExposureCompensation, N_("AEB Exposure Compensation")}, + {PTP_DPC_CANON_AvOpen, N_("Av Open")}, + {PTP_DPC_CANON_AvMax, N_("Av Max")}, + {PTP_DPC_CANON_FocalLength, N_("Focal Length")}, + {PTP_DPC_CANON_FocalLengthTele, N_("Focal Length Tele")}, + {PTP_DPC_CANON_FocalLengthWide, N_("Focal Length Wide")}, + {PTP_DPC_CANON_FocalLengthDenominator, N_("Focal Length Denominator")}, + {PTP_DPC_CANON_CaptureTransferMode, N_("Capture Transfer Mode")}, + {PTP_DPC_CANON_Zoom, N_("Zoom")}, + {PTP_DPC_CANON_NamePrefix, N_("Name Prefix")}, + {PTP_DPC_CANON_SizeQualityMode, N_("Size Quality Mode")}, + {PTP_DPC_CANON_SupportedThumbSize, N_("Supported Thumb Size")}, + {PTP_DPC_CANON_SizeOfOutputDataFromCamera, N_("Size of Output Data from Camera")}, + {PTP_DPC_CANON_SizeOfInputDataToCamera, N_("Size of Input Data to Camera")}, + {PTP_DPC_CANON_RemoteAPIVersion,N_("Remote API Version")}, + {PTP_DPC_CANON_FirmwareVersion, N_("Firmware Version")}, + {PTP_DPC_CANON_CameraModel, N_("Camera Model")}, + {PTP_DPC_CANON_CameraOwner, N_("Camera Owner")}, + {PTP_DPC_CANON_UnixTime, N_("UNIX Time")}, + {PTP_DPC_CANON_CameraBodyID, N_("Camera Body ID")}, + {PTP_DPC_CANON_CameraOutput, N_("Camera Output")}, + {PTP_DPC_CANON_DispAv, N_("Disp Av")}, + {PTP_DPC_CANON_AvOpenApex, N_("Av Open Apex")}, + {PTP_DPC_CANON_DZoomMagnification, N_("Digital Zoom Magnification")}, + {PTP_DPC_CANON_MlSpotPos, N_("Ml Spot Position")}, + {PTP_DPC_CANON_DispAvMax, N_("Disp Av Max")}, + {PTP_DPC_CANON_AvMaxApex, N_("Av Max Apex")}, + {PTP_DPC_CANON_EZoomStartPosition, N_("EZoom Start Position")}, + {PTP_DPC_CANON_FocalLengthOfTele, N_("Focal Length Tele")}, + {PTP_DPC_CANON_EZoomSizeOfTele, N_("EZoom Size of Tele")}, + {PTP_DPC_CANON_PhotoEffect, N_("Photo Effect")}, + {PTP_DPC_CANON_AssistLight, N_("Assist Light")}, + {PTP_DPC_CANON_FlashQuantityCount, N_("Flash Quantity Count")}, + {PTP_DPC_CANON_RotationAngle, N_("Rotation Angle")}, + {PTP_DPC_CANON_RotationScene, N_("Rotation Scene")}, + {PTP_DPC_CANON_EventEmulateMode,N_("Event Emulate Mode")}, + {PTP_DPC_CANON_DPOFVersion, N_("DPOF Version")}, + {PTP_DPC_CANON_TypeOfSupportedSlideShow, N_("Type of Slideshow")}, + {PTP_DPC_CANON_AverageFilesizes,N_("Average Filesizes")}, + {PTP_DPC_CANON_ModelID, N_("Model ID")}, + {0,NULL} + }; + + struct { + uint16_t dpc; + const char *txt; + } ptp_device_properties_Nikon[] = { + {PTP_DPC_NIKON_ShootingBank, /* 0xD010 */ + N_("Shooting Bank")}, + {PTP_DPC_NIKON_ShootingBankNameA, /* 0xD011 */ + N_("Shooting Bank Name A")}, + {PTP_DPC_NIKON_ShootingBankNameB, /* 0xD012 */ + N_("Shooting Bank Name B")}, + {PTP_DPC_NIKON_ShootingBankNameC, /* 0xD013 */ + N_("Shooting Bank Name C")}, + {PTP_DPC_NIKON_ShootingBankNameD, /* 0xD014 */ + N_("Shooting Bank Name D")}, + {PTP_DPC_NIKON_ResetBank0, /* 0xD015 */ + N_("Reset Bank 0")}, + {PTP_DPC_NIKON_RawCompression, /* 0xD016 */ + N_("Raw Compression")}, + {PTP_DPC_NIKON_WhiteBalanceAutoBias, /* 0xD017 */ + N_("Auto White Balance Bias")}, + {PTP_DPC_NIKON_WhiteBalanceTungstenBias, /* 0xD018 */ + N_("Tungsten White Balance Bias")}, + {PTP_DPC_NIKON_WhiteBalanceFluorescentBias, /* 0xD019 */ + N_("Fluorescent White Balance Bias")}, + {PTP_DPC_NIKON_WhiteBalanceDaylightBias, /* 0xD01a */ + N_("Daylight White Balance Bias")}, + {PTP_DPC_NIKON_WhiteBalanceFlashBias, /* 0xD01b */ + N_("Flash White Balance Bias")}, + {PTP_DPC_NIKON_WhiteBalanceCloudyBias, /* 0xD01c */ + N_("Cloudy White Balance Bias")}, + {PTP_DPC_NIKON_WhiteBalanceShadeBias, /* 0xD01d */ + N_("Shady White Balance Bias")}, + {PTP_DPC_NIKON_WhiteBalanceColorTemperature, /* 0xD01e */ + N_("White Balance Colour Temperature")}, + {PTP_DPC_NIKON_WhiteBalancePresetNo, /* 0xD01f */ + N_("White Balance Preset Number")}, + {PTP_DPC_NIKON_WhiteBalancePresetName0, /* 0xD020 */ + N_("White Balance Preset Name 0")}, + {PTP_DPC_NIKON_WhiteBalancePresetName1, /* 0xD021 */ + N_("White Balance Preset Name 1")}, + {PTP_DPC_NIKON_WhiteBalancePresetName2, /* 0xD022 */ + N_("White Balance Preset Name 2")}, + {PTP_DPC_NIKON_WhiteBalancePresetName3, /* 0xD023 */ + N_("White Balance Preset Name 3")}, + {PTP_DPC_NIKON_WhiteBalancePresetName4, /* 0xD024 */ + N_("White Balance Preset Name 4")}, + {PTP_DPC_NIKON_WhiteBalancePresetVal0, /* 0xD025 */ + N_("White Balance Preset Value 0")}, + {PTP_DPC_NIKON_WhiteBalancePresetVal1, /* 0xD026 */ + N_("White Balance Preset Value 1")}, + {PTP_DPC_NIKON_WhiteBalancePresetVal2, /* 0xD027 */ + N_("White Balance Preset Value 2")}, + {PTP_DPC_NIKON_WhiteBalancePresetVal3, /* 0xD028 */ + N_("White Balance Preset Value 3")}, + {PTP_DPC_NIKON_WhiteBalancePresetVal4, /* 0xD029 */ + N_("White Balance Preset Value 4")}, + {PTP_DPC_NIKON_ImageSharpening, /* 0xD02a */ + N_("Sharpening")}, + {PTP_DPC_NIKON_ToneCompensation, /* 0xD02b */ + N_("Tone Compensation")}, + {PTP_DPC_NIKON_ColorModel, /* 0xD02c */ + N_("Color Model")}, + {PTP_DPC_NIKON_HueAdjustment, /* 0xD02d */ + N_("Hue Adjustment")}, + {PTP_DPC_NIKON_NonCPULensDataFocalLength, /* 0xD02e */ + N_("Lens Focal Length (Non CPU)")}, + {PTP_DPC_NIKON_NonCPULensDataMaximumAperture, /* 0xD02f */ + N_("Lens Maximum Aperture (Non CPU)")}, + {PTP_DPC_NIKON_ShootingMode, /* 0xD030 */ + N_("Shooting Mode")}, + {PTP_DPC_NIKON_JPEG_Compression_Policy, /* 0xD031 */ + N_("JPEG Compression Policy")}, + {PTP_DPC_NIKON_ColorSpace, /* 0xD032 */ + N_("Color Space")}, + {PTP_DPC_NIKON_AutoDXCrop, /* 0xD033 */ + N_("Auto DX Crop")}, + {PTP_DPC_NIKON_FlickerReduction, /* 0xD034 */ + N_("Flicker Reduction")}, + {PTP_DPC_NIKON_RemoteMode, /* 0xD035 */ + N_("Remote Mode")}, + {PTP_DPC_NIKON_VideoMode, /* 0xD036 */ + N_("Video Mode")}, + {PTP_DPC_NIKON_EffectMode, /* 0xD037 */ + N_("Effect Mode")}, + {PTP_DPC_NIKON_CSMMenuBankSelect, /* 0xD040 */ + "PTP_DPC_NIKON_CSMMenuBankSelect"}, + {PTP_DPC_NIKON_MenuBankNameA, /* 0xD041 */ + N_("Menu Bank Name A")}, + {PTP_DPC_NIKON_MenuBankNameB, /* 0xD042 */ + N_("Menu Bank Name B")}, + {PTP_DPC_NIKON_MenuBankNameC, /* 0xD043 */ + N_("Menu Bank Name C")}, + {PTP_DPC_NIKON_MenuBankNameD, /* 0xD044 */ + N_("Menu Bank Name D")}, + {PTP_DPC_NIKON_ResetBank, /* 0xD045 */ + N_("Reset Menu Bank")}, + {PTP_DPC_NIKON_A1AFCModePriority, /* 0xD048 */ + "PTP_DPC_NIKON_A1AFCModePriority"}, + {PTP_DPC_NIKON_A2AFSModePriority, /* 0xD049 */ + "PTP_DPC_NIKON_A2AFSModePriority"}, + {PTP_DPC_NIKON_A3GroupDynamicAF, /* 0xD04a */ + "PTP_DPC_NIKON_A3GroupDynamicAF"}, + {PTP_DPC_NIKON_A4AFActivation, /* 0xD04b */ + "PTP_DPC_NIKON_A4AFActivation"}, + {PTP_DPC_NIKON_FocusAreaIllumManualFocus, /* 0xD04c */ + "PTP_DPC_NIKON_FocusAreaIllumManualFocus"}, + {PTP_DPC_NIKON_FocusAreaIllumContinuous, /* 0xD04d */ + "PTP_DPC_NIKON_FocusAreaIllumContinuous"}, + {PTP_DPC_NIKON_FocusAreaIllumWhenSelected, /* 0xD04e */ + "PTP_DPC_NIKON_FocusAreaIllumWhenSelected"}, + {PTP_DPC_NIKON_FocusAreaWrap, /* 0xD04f */ + N_("Focus Area Wrap")}, + {PTP_DPC_NIKON_VerticalAFON, /* 0xD050 */ + N_("Vertical AF On")}, + {PTP_DPC_NIKON_AFLockOn, /* 0xD051 */ + N_("AF Lock On")}, + {PTP_DPC_NIKON_FocusAreaZone, /* 0xD052 */ + N_("Focus Area Zone")}, + {PTP_DPC_NIKON_EnableCopyright, /* 0xD053 */ + N_("Enable Copyright")}, + {PTP_DPC_NIKON_ISOAuto, /* 0xD054 */ + N_("Auto ISO")}, + {PTP_DPC_NIKON_EVISOStep, /* 0xD055 */ + N_("Exposure ISO Step")}, + {PTP_DPC_NIKON_EVStep, /* 0xD056 */ + N_("Exposure Step")}, + {PTP_DPC_NIKON_EVStepExposureComp, /* 0xD057 */ + N_("Exposure Compensation (EV)")}, + {PTP_DPC_NIKON_ExposureCompensation, /* 0xD058 */ + N_("Exposure Compensation")}, + {PTP_DPC_NIKON_CenterWeightArea, /* 0xD059 */ + N_("Centre Weight Area")}, + {PTP_DPC_NIKON_ExposureBaseMatrix, /* 0xD05A */ + N_("Exposure Base Matrix")}, + {PTP_DPC_NIKON_ExposureBaseCenter, /* 0xD05B */ + N_("Exposure Base Center")}, + {PTP_DPC_NIKON_ExposureBaseSpot, /* 0xD05C */ + N_("Exposure Base Spot")}, + {PTP_DPC_NIKON_LiveViewAFArea, /* 0xD05D */ + N_("Live View AF Area")}, + {PTP_DPC_NIKON_AELockMode, /* 0xD05E */ + N_("Exposure Lock")}, + {PTP_DPC_NIKON_AELAFLMode, /* 0xD05F */ + N_("Focus Lock")}, + {PTP_DPC_NIKON_LiveViewAFFocus, /* 0xD061 */ + N_("Live View AF Focus")}, + {PTP_DPC_NIKON_MeterOff, /* 0xD062 */ + N_("Auto Meter Off Time")}, + {PTP_DPC_NIKON_SelfTimer, /* 0xD063 */ + N_("Self Timer Delay")}, + {PTP_DPC_NIKON_MonitorOff, /* 0xD064 */ + N_("LCD Off Time")}, + {PTP_DPC_NIKON_ImgConfTime, /* 0xD065 */ + N_("Img Conf Time")}, + {PTP_DPC_NIKON_AutoOffTimers, /* 0xD066 */ + N_("Auto Off Timers")}, + {PTP_DPC_NIKON_AngleLevel, /* 0xD067 */ + N_("Angle Level")}, + {PTP_DPC_NIKON_D1ShootingSpeed, /* 0xD068 */ + N_("Shooting Speed")}, + {PTP_DPC_NIKON_D2MaximumShots, /* 0xD069 */ + N_("Maximum Shots")}, + {PTP_DPC_NIKON_ExposureDelayMode, /* 0xD06A */ + N_("Exposure delay mode")}, + {PTP_DPC_NIKON_LongExposureNoiseReduction, /* 0xD06B */ + N_("Long Exposure Noise Reduction")}, + {PTP_DPC_NIKON_FileNumberSequence, /* 0xD06C */ + N_("File Number Sequencing")}, + {PTP_DPC_NIKON_ControlPanelFinderRearControl, /* 0xD06D */ + "PTP_DPC_NIKON_ControlPanelFinderRearControl"}, + {PTP_DPC_NIKON_ControlPanelFinderViewfinder, /* 0xD06E */ + "PTP_DPC_NIKON_ControlPanelFinderViewfinder"}, + {PTP_DPC_NIKON_D7Illumination, /* 0xD06F */ + N_("LCD Illumination")}, + {PTP_DPC_NIKON_NrHighISO, /* 0xD070 */ + N_("High ISO noise reduction")}, + {PTP_DPC_NIKON_SHSET_CH_GUID_DISP, /* 0xD071 */ + N_("On screen tips")}, + {PTP_DPC_NIKON_ArtistName, /* 0xD072 */ + N_("Artist Name")}, + {PTP_DPC_NIKON_CopyrightInfo, /* 0xD073 */ + N_("Copyright Information")}, + {PTP_DPC_NIKON_FlashSyncSpeed, /* 0xD074 */ + N_("Flash Sync. Speed")}, + {PTP_DPC_NIKON_FlashShutterSpeed, /* 0xD075 */ + N_("Flash Shutter Speed")}, + {PTP_DPC_NIKON_E3AAFlashMode, /* 0xD076 */ + N_("Flash Mode")}, + {PTP_DPC_NIKON_E4ModelingFlash, /* 0xD077 */ + N_("Modeling Flash")}, + {PTP_DPC_NIKON_BracketSet, /* 0xD078 */ + N_("Bracket Set")}, + {PTP_DPC_NIKON_E6ManualModeBracketing, /* 0xD079 */ + N_("Manual Mode Bracketing")}, + {PTP_DPC_NIKON_BracketOrder, /* 0xD07A */ + N_("Bracket Order")}, + {PTP_DPC_NIKON_E8AutoBracketSelection, /* 0xD07B */ + N_("Auto Bracket Selection")}, + {PTP_DPC_NIKON_BracketingSet, N_("NIKON Auto Bracketing Set")}, /* 0xD07C */ + {PTP_DPC_NIKON_F1CenterButtonShootingMode, /* 0xD080 */ + N_("Center Button Shooting Mode")}, + {PTP_DPC_NIKON_CenterButtonPlaybackMode, /* 0xD081 */ + N_("Center Button Playback Mode")}, + {PTP_DPC_NIKON_F2Multiselector, /* 0xD082 */ + N_("Multiselector")}, + {PTP_DPC_NIKON_F3PhotoInfoPlayback, /* 0xD083 */ + N_("Photo Info. Playback")}, + {PTP_DPC_NIKON_F4AssignFuncButton, /* 0xD084 */ + N_("Assign Func. Button")}, + {PTP_DPC_NIKON_F5CustomizeCommDials, /* 0xD085 */ + N_("Customise Command Dials")}, + {PTP_DPC_NIKON_ReverseCommandDial, /* 0xD086 */ + N_("Reverse Command Dial")}, + {PTP_DPC_NIKON_ApertureSetting, /* 0xD087 */ + N_("Aperture Setting")}, + {PTP_DPC_NIKON_MenusAndPlayback, /* 0xD088 */ + N_("Menus and Playback")}, + {PTP_DPC_NIKON_F6ButtonsAndDials, /* 0xD089 */ + N_("Buttons and Dials")}, + {PTP_DPC_NIKON_NoCFCard, /* 0xD08A */ + N_("No CF Card Release")}, + {PTP_DPC_NIKON_CenterButtonZoomRatio, /* 0xD08B */ + N_("Center Button Zoom Ratio")}, + {PTP_DPC_NIKON_FunctionButton2, /* 0xD08C */ + N_("Function Button 2")}, + {PTP_DPC_NIKON_AFAreaPoint, /* 0xD08D */ + N_("AF Area Point")}, + {PTP_DPC_NIKON_NormalAFOn, /* 0xD08E */ + N_("Normal AF On")}, + {PTP_DPC_NIKON_CleanImageSensor, /* 0xD08F */ + N_("Clean Image Sensor")}, + {PTP_DPC_NIKON_ImageCommentString, /* 0xD090 */ + N_("Image Comment String")}, + {PTP_DPC_NIKON_ImageCommentEnable, /* 0xD091 */ + N_("Image Comment Enable")}, + {PTP_DPC_NIKON_ImageRotation, /* 0xD092 */ + N_("Image Rotation")}, + {PTP_DPC_NIKON_ManualSetLensNo, /* 0xD093 */ + N_("Manual Set Lens Number")}, + {PTP_DPC_NIKON_MovScreenSize, /* 0xD0A0 */ + N_("Movie Screen Size")}, + {PTP_DPC_NIKON_MovVoice, /* 0xD0A1 */ + N_("Movie Voice")}, + {PTP_DPC_NIKON_MovMicrophone, /* 0xD0A2 */ + N_("Movie Microphone")}, + {PTP_DPC_NIKON_MovFileSlot, /* 0xD0A3 */ + N_("Movie Card Slot")}, + {PTP_DPC_NIKON_ManualMovieSetting, /* 0xD0A6 */ + N_("Manual Movie Setting")}, + {PTP_DPC_NIKON_MovQuality, /* 0xD0A7 */ + N_("Movie Quality")}, + {PTP_DPC_NIKON_MonitorOffDelay, /* 0xD0B3 */ + N_("Monitor Off Delay")}, + {PTP_DPC_NIKON_Bracketing, /* 0xD0C0 */ + N_("Bracketing Enable")}, + {PTP_DPC_NIKON_AutoExposureBracketStep, /* 0xD0C1 */ + N_("Exposure Bracketing Step")}, + {PTP_DPC_NIKON_AutoExposureBracketProgram, /* 0xD0C2 */ + N_("Exposure Bracketing Program")}, + {PTP_DPC_NIKON_AutoExposureBracketCount, /* 0xD0C3 */ + N_("Auto Exposure Bracket Count")}, + {PTP_DPC_NIKON_WhiteBalanceBracketStep, N_("White Balance Bracket Step")}, /* 0xD0C4 */ + {PTP_DPC_NIKON_WhiteBalanceBracketProgram, N_("White Balance Bracket Program")}, /* 0xD0C5 */ + {PTP_DPC_NIKON_LensID, /* 0xD0E0 */ + N_("Lens ID")}, + {PTP_DPC_NIKON_LensSort, /* 0xD0E1 */ + N_("Lens Sort")}, + {PTP_DPC_NIKON_LensType, /* 0xD0E2 */ + N_("Lens Type")}, + {PTP_DPC_NIKON_FocalLengthMin, /* 0xD0E3 */ + N_("Min. Focal Length")}, + {PTP_DPC_NIKON_FocalLengthMax, /* 0xD0E4 */ + N_("Max. Focal Length")}, + {PTP_DPC_NIKON_MaxApAtMinFocalLength, /* 0xD0E5 */ + N_("Max. Aperture at Min. Focal Length")}, + {PTP_DPC_NIKON_MaxApAtMaxFocalLength, /* 0xD0E6 */ + N_("Max. Aperture at Max. Focal Length")}, + {PTP_DPC_NIKON_FinderISODisp, /* 0xD0F0 */ + N_("Finder ISO Display")}, + {PTP_DPC_NIKON_AutoOffPhoto, /* 0xD0F2 */ + N_("Auto Off Photo")}, + {PTP_DPC_NIKON_AutoOffMenu, /* 0xD0F3 */ + N_("Auto Off Menu")}, + {PTP_DPC_NIKON_AutoOffInfo, /* 0xD0F4 */ + N_("Auto Off Info")}, + {PTP_DPC_NIKON_SelfTimerShootNum, /* 0xD0F5 */ + N_("Self Timer Shot Number")}, + {PTP_DPC_NIKON_VignetteCtrl, /* 0xD0F7 */ + N_("Vignette Control")}, + {PTP_DPC_NIKON_AutoDistortionControl, /* 0xD0F8 */ + N_("Auto Distortion Control")}, + {PTP_DPC_NIKON_SceneMode, /* 0xD0F9 */ + N_("Scene Mode")}, + {PTP_DPC_NIKON_ExposureTime, /* 0xD100 */ + N_("Nikon Exposure Time")}, + {PTP_DPC_NIKON_ACPower, N_("AC Power")}, /* 0xD101 */ + {PTP_DPC_NIKON_WarningStatus, N_("Warning Status")},/* 0xD102 */ + {PTP_DPC_NIKON_MaximumShots, /* 0xD103 */ + N_("Maximum Shots")}, + {PTP_DPC_NIKON_AFLockStatus, N_("AF Locked")},/* 0xD104 */ + {PTP_DPC_NIKON_AELockStatus, N_("AE Locked")},/* 0xD105 */ + {PTP_DPC_NIKON_FVLockStatus, N_("FV Locked")},/* 0xD106 */ + {PTP_DPC_NIKON_AutofocusLCDTopMode2, /* 0xD107 */ + N_("AF LCD Top Mode 2")}, + {PTP_DPC_NIKON_AutofocusArea, /* 0xD108 */ + N_("Active AF Sensor")}, + {PTP_DPC_NIKON_FlexibleProgram, /* 0xD109 */ + N_("Flexible Program")}, + {PTP_DPC_NIKON_LightMeter, /* 0xD10A */ + N_("Exposure Meter")}, + {PTP_DPC_NIKON_RecordingMedia, /* 0xD10B */ + N_("Recording Media")}, + {PTP_DPC_NIKON_USBSpeed, /* 0xD10C */ + N_("USB Speed")}, + {PTP_DPC_NIKON_CCDNumber, /* 0xD10D */ + N_("CCD Serial Number")}, + {PTP_DPC_NIKON_CameraOrientation, /* 0xD10E */ + N_("Camera Orientation")}, + {PTP_DPC_NIKON_GroupPtnType, /* 0xD10F */ + N_("Group PTN Type")}, + {PTP_DPC_NIKON_FNumberLock, /* 0xD110 */ + N_("FNumber Lock")}, + {PTP_DPC_NIKON_ExposureApertureLock, /* 0xD111 */ + N_("Exposure Aperture Lock")}, + {PTP_DPC_NIKON_TVLockSetting, /* 0xD112 */ + N_("TV Lock Setting")}, + {PTP_DPC_NIKON_AVLockSetting, /* 0xD113 */ + N_("AV Lock Setting")}, + {PTP_DPC_NIKON_IllumSetting, /* 0xD114 */ + N_("Illum Setting")}, + {PTP_DPC_NIKON_FocusPointBright, /* 0xD115 */ + N_("Focus Point Bright")}, + {PTP_DPC_NIKON_ExternalFlashAttached, /* 0xD120 */ + N_("External Flash Attached")}, + {PTP_DPC_NIKON_ExternalFlashStatus, /* 0xD121 */ + N_("External Flash Status")}, + {PTP_DPC_NIKON_ExternalFlashSort, /* 0xD122 */ + N_("External Flash Sort")}, + {PTP_DPC_NIKON_ExternalFlashMode, /* 0xD123 */ + N_("External Flash Mode")}, + {PTP_DPC_NIKON_ExternalFlashCompensation, /* 0xD124 */ + N_("External Flash Compensation")}, + {PTP_DPC_NIKON_NewExternalFlashMode, /* 0xD125 */ + N_("External Flash Mode")}, + {PTP_DPC_NIKON_FlashExposureCompensation, /* 0xD126 */ + N_("Flash Exposure Compensation")}, + {PTP_DPC_NIKON_HDRMode, /* 0xD130 */ + N_("HDR Mode")}, + {PTP_DPC_NIKON_HDRHighDynamic, /* 0xD131 */ + N_("HDR High Dynamic")}, + {PTP_DPC_NIKON_HDRSmoothing, /* 0xD132 */ + N_("HDR Smoothing")}, + {PTP_DPC_NIKON_OptimizeImage, /* 0xD140 */ + N_("Optimize Image")}, + {PTP_DPC_NIKON_Saturation, /* 0xD142 */ + N_("Saturation")}, + {PTP_DPC_NIKON_BW_FillerEffect, /* 0xD143 */ + N_("BW Filler Effect")}, + {PTP_DPC_NIKON_BW_Sharpness, /* 0xD144 */ + N_("BW Sharpness")}, + {PTP_DPC_NIKON_BW_Contrast, /* 0xD145 */ + N_("BW Contrast")}, + {PTP_DPC_NIKON_BW_Setting_Type, /* 0xD146 */ + N_("BW Setting Type")}, + {PTP_DPC_NIKON_Slot2SaveMode, /* 0xD148 */ + N_("Slot 2 Save Mode")}, + {PTP_DPC_NIKON_RawBitMode, /* 0xD149 */ + N_("Raw Bit Mode")}, + {PTP_DPC_NIKON_ActiveDLighting, /* 0xD14E */ + N_("Active D-Lighting")}, + {PTP_DPC_NIKON_FlourescentType, /* 0xD14F */ + N_("Flourescent Type")}, + {PTP_DPC_NIKON_TuneColourTemperature, /* 0xD150 */ + N_("Tune Colour Temperature")}, + {PTP_DPC_NIKON_TunePreset0, /* 0xD151 */ + N_("Tune Preset 0")}, + {PTP_DPC_NIKON_TunePreset1, /* 0xD152 */ + N_("Tune Preset 1")}, + {PTP_DPC_NIKON_TunePreset2, /* 0xD153 */ + N_("Tune Preset 2")}, + {PTP_DPC_NIKON_TunePreset3, /* 0xD154 */ + N_("Tune Preset 3")}, + {PTP_DPC_NIKON_TunePreset4, /* 0xD155 */ + N_("Tune Preset 4")}, + {PTP_DPC_NIKON_BeepOff, /* 0xD160 */ + N_("AF Beep Mode")}, + {PTP_DPC_NIKON_AutofocusMode, /* 0xD161 */ + N_("Autofocus Mode")}, + {PTP_DPC_NIKON_AFAssist, /* 0xD163 */ + N_("AF Assist Lamp")}, + {PTP_DPC_NIKON_PADVPMode, /* 0xD164 */ + N_("Auto ISO P/A/DVP Setting")}, + {PTP_DPC_NIKON_ImageReview, /* 0xD165 */ + N_("Image Review")}, + {PTP_DPC_NIKON_AFAreaIllumination, /* 0xD166 */ + N_("AF Area Illumination")}, + {PTP_DPC_NIKON_FlashMode, /* 0xD167 */ + N_("Flash Mode")}, + {PTP_DPC_NIKON_FlashCommanderMode, /* 0xD168 */ + N_("Flash Commander Mode")}, + {PTP_DPC_NIKON_FlashSign, /* 0xD169 */ + N_("Flash Sign")}, + {PTP_DPC_NIKON_ISO_Auto, /* 0xD16A */ + N_("ISO Auto")}, + {PTP_DPC_NIKON_RemoteTimeout, /* 0xD16B */ + N_("Remote Timeout")}, + {PTP_DPC_NIKON_GridDisplay, /* 0xD16C */ + N_("Viewfinder Grid Display")}, + {PTP_DPC_NIKON_FlashModeManualPower, /* 0xD16D */ + N_("Flash Mode Manual Power")}, + {PTP_DPC_NIKON_FlashModeCommanderPower, /* 0xD16E */ + N_("Flash Mode Commander Power")}, + {PTP_DPC_NIKON_AutoFP, /* 0xD16F */ + N_("Auto FP")}, + {PTP_DPC_NIKON_CSMMenu, /* 0xD180 */ + N_("CSM Menu")}, + {PTP_DPC_NIKON_WarningDisplay, /* 0xD181 */ + N_("Warning Display")}, + {PTP_DPC_NIKON_BatteryCellKind, /* 0xD182 */ + N_("Battery Cell Kind")}, + {PTP_DPC_NIKON_ISOAutoHiLimit, /* 0xD183 */ + N_("ISO Auto High Limit")}, + {PTP_DPC_NIKON_DynamicAFArea, /* 0xD184 */ + N_("Dynamic AF Area")}, + {PTP_DPC_NIKON_ContinuousSpeedHigh, /* 0xD186 */ + N_("Continuous Speed High")}, + {PTP_DPC_NIKON_InfoDispSetting, /* 0xD187 */ + N_("Info Disp Setting")}, + {PTP_DPC_NIKON_PreviewButton, /* 0xD189 */ + N_("Preview Button")}, + {PTP_DPC_NIKON_PreviewButton2, /* 0xD18A */ + N_("Preview Button 2")}, + {PTP_DPC_NIKON_AEAFLockButton2, /* 0xD18B */ + N_("AEAF Lock Button 2")}, + {PTP_DPC_NIKON_IndicatorDisp, /* 0xD18D */ + N_("Indicator Display")}, + {PTP_DPC_NIKON_CellKindPriority, /* 0xD18E */ + N_("Cell Kind Priority")}, + {PTP_DPC_NIKON_BracketingFramesAndSteps, /* 0xD190 */ + N_("Bracketing Frames and Steps")}, + {PTP_DPC_NIKON_LiveViewMode, /* 0xD1A0 */ + N_("Live View Mode")}, + {PTP_DPC_NIKON_LiveViewDriveMode, /* 0xD1A1 */ + N_("Live View Drive Mode")}, + {PTP_DPC_NIKON_LiveViewStatus, /* 0xD1A2 */ + N_("Live View Status")}, + {PTP_DPC_NIKON_LiveViewImageZoomRatio, /* 0xD1A3 */ + N_("Live View Image Zoom Ratio")}, + {PTP_DPC_NIKON_LiveViewProhibitCondition, /* 0xD1A4 */ + N_("Live View Prohibit Condition")}, + {PTP_DPC_NIKON_ExposureDisplayStatus, /* 0xD1B0 */ + N_("Exposure Display Status")}, + {PTP_DPC_NIKON_ExposureIndicateStatus, /* 0xD1B1 */ + N_("Exposure Indicate Status")}, + {PTP_DPC_NIKON_InfoDispErrStatus, /* 0xD1B2 */ + N_("Info Display Error Status")}, + {PTP_DPC_NIKON_ExposureIndicateLightup, /* 0xD1B3 */ + N_("Exposure Indicate Lightup")}, + {PTP_DPC_NIKON_FlashOpen, /* 0xD1C0 */ + N_("Flash Open")}, + {PTP_DPC_NIKON_FlashCharged, /* 0xD1C1 */ + N_("Flash Charged")}, + {PTP_DPC_NIKON_FlashMRepeatValue, /* 0xD1D0 */ + N_("Flash MRepeat Value")}, + {PTP_DPC_NIKON_FlashMRepeatCount, /* 0xD1D1 */ + N_("Flash MRepeat Count")}, + {PTP_DPC_NIKON_FlashMRepeatInterval, /* 0xD1D2 */ + N_("Flash MRepeat Interval")}, + {PTP_DPC_NIKON_FlashCommandChannel, /* 0xD1D3 */ + N_("Flash Command Channel")}, + {PTP_DPC_NIKON_FlashCommandSelfMode, /* 0xD1D4 */ + N_("Flash Command Self Mode")}, + {PTP_DPC_NIKON_FlashCommandSelfCompensation, /* 0xD1D5 */ + N_("Flash Command Self Compensation")}, + {PTP_DPC_NIKON_FlashCommandSelfValue, /* 0xD1D6 */ + N_("Flash Command Self Value")}, + {PTP_DPC_NIKON_FlashCommandAMode, /* 0xD1D7 */ + N_("Flash Command A Mode")}, + {PTP_DPC_NIKON_FlashCommandACompensation, /* 0xD1D8 */ + N_("Flash Command A Compensation")}, + {PTP_DPC_NIKON_FlashCommandAValue, /* 0xD1D9 */ + N_("Flash Command A Value")}, + {PTP_DPC_NIKON_FlashCommandBMode, /* 0xD1DA */ + N_("Flash Command B Mode")}, + {PTP_DPC_NIKON_FlashCommandBCompensation, /* 0xD1DB */ + N_("Flash Command B Compensation")}, + {PTP_DPC_NIKON_FlashCommandBValue, /* 0xD1DC */ + N_("Flash Command B Value")}, + {PTP_DPC_NIKON_ActivePicCtrlItem, /* 0xD200 */ + N_("Active Pic Ctrl Item")}, + {PTP_DPC_NIKON_ChangePicCtrlItem, /* 0xD201 */ + N_("Change Pic Ctrl Item")}, + /* nikon 1 stuff */ + {PTP_DPC_NIKON_1_ISO, /* 0xf002 */ + N_("ISO")}, + {PTP_DPC_NIKON_1_ImageSize, /* 0xf00a */ + N_("Image Size")}, + {PTP_DPC_NIKON_1_LongExposureNoiseReduction, /* 0xF00D */ + N_("Long Exposure Noise Reduction")}, + {PTP_DPC_NIKON_1_MovQuality, /* 0xF01C */ + N_("Movie Quality")}, + {PTP_DPC_NIKON_1_HiISONoiseReduction, /* 0xF00E */ + N_("High ISO Noise Reduction")}, + {PTP_DPC_NIKON_1_WhiteBalance, /* 0xF00C */ + N_("White Balance")}, + {PTP_DPC_NIKON_1_ImageCompression, /* 0xF009 */ + N_("Image Compression")}, + {PTP_DPC_NIKON_1_ActiveDLighting, /* 0xF00F */ + N_("Active D-Lighting")}, + {0,NULL} + }; + struct { + uint16_t dpc; + const char *txt; + } ptp_device_properties_MTP[] = { + {PTP_DPC_MTP_SecureTime, N_("Secure Time")}, /* D101 */ + {PTP_DPC_MTP_DeviceCertificate, N_("Device Certificate")}, /* D102 */ + {PTP_DPC_MTP_RevocationInfo, N_("Revocation Info")}, /* D103 */ + {PTP_DPC_MTP_SynchronizationPartner, /* D401 */ + N_("Synchronization Partner")}, + {PTP_DPC_MTP_DeviceFriendlyName, /* D402 */ + N_("Friendly Device Name")}, + {PTP_DPC_MTP_VolumeLevel, N_("Volume Level")}, /* D403 */ + {PTP_DPC_MTP_DeviceIcon, N_("Device Icon")}, /* D405 */ + {PTP_DPC_MTP_SessionInitiatorInfo, N_("Session Initiator Info")},/* D406 */ + {PTP_DPC_MTP_PerceivedDeviceType, N_("Perceived Device Type")},/* D407 */ + {PTP_DPC_MTP_PlaybackRate, N_("Playback Rate")}, /* D410 */ + {PTP_DPC_MTP_PlaybackObject, N_("Playback Object")}, /* D411 */ + {PTP_DPC_MTP_PlaybackContainerIndex, /* D412 */ + N_("Playback Container Index")}, + {PTP_DPC_MTP_PlaybackPosition, N_("Playback Position")}, /* D413 */ + {PTP_DPC_MTP_PlaysForSureID, N_("PlaysForSure ID")}, /* D131 (?) */ + {0,NULL} + }; + struct { + uint16_t dpc; + const char *txt; + } ptp_device_properties_FUJI[] = { + {PTP_DPC_FUJI_ColorTemperature, N_("Color Temperature")}, /* 0xD017 */ + {PTP_DPC_FUJI_Quality, N_("Quality")}, /* 0xD018 */ + {PTP_DPC_FUJI_Quality, N_("Release Mode")}, /* 0xD201 */ + {PTP_DPC_FUJI_Quality, N_("Focus Areas")}, /* 0xD206 */ + {PTP_DPC_FUJI_Quality, N_("AE Lock")}, /* 0xD213 */ + {PTP_DPC_FUJI_Quality, N_("Aperture")}, /* 0xD218 */ + {PTP_DPC_FUJI_Quality, N_("Shutter Speed")}, /* 0xD219 */ + {PTP_DPC_FUJI_FocusPoint, N_("Focus Point")}, /* 0xD347 */ + {0,NULL} + }; + + struct { + uint16_t dpc; + const char *txt; + } ptp_device_properties_SONY[] = { + {PTP_DPC_SONY_DPCCompensation, ("DOC Compensation")}, /* 0xD200 */ + {PTP_DPC_SONY_DRangeOptimize, ("DRangeOptimize")}, /* 0xD201 */ + {PTP_DPC_SONY_ImageSize, N_("Image size")}, /* 0xD203 */ + {PTP_DPC_SONY_ShutterSpeed, N_("Shutter speed")}, /* 0xD20D */ + {PTP_DPC_SONY_ColorTemp, N_("Color temperature")}, /* 0xD20F */ + {PTP_DPC_SONY_CCFilter, ("CC Filter")}, /* 0xD210 */ + {PTP_DPC_SONY_AspectRatio, N_("Aspect Ratio")}, /* 0xD211 */ + {PTP_DPC_SONY_FocusFound, N_("Focus status")}, /* 0xD213 */ + {PTP_DPC_SONY_ObjectInMemory, N_("Objects in memory")}, /* 0xD215 */ + {PTP_DPC_SONY_ExposeIndex, N_("Expose Index")}, /* 0xD216 */ + {PTP_DPC_SONY_BatteryLevel, N_("Battery Level")}, /* 0xD218 */ + {PTP_DPC_SONY_PictureEffect, N_("Picture Effect")}, /* 0xD21B */ + {PTP_DPC_SONY_ABFilter, N_("AB Filter")}, /* 0xD21C */ + {PTP_DPC_SONY_ISO, N_("ISO")}, /* 0xD21E */ + {PTP_DPC_SONY_Movie, N_("Movie")}, /* 0xD2C8 */ + {PTP_DPC_SONY_StillImage, N_("Still Image")}, /* 0xD2C7 */ + {PTP_DPC_SONY_SensorCrop, N_("Sensor Crop")}, + {PTP_DPC_SONY_AutoFocus, N_("Autofocus")}, + {PTP_DPC_SONY_Capture, N_("Capture")}, + {PTP_DPC_WhiteBalance, N_("White Balance")}, /* 0x5005 */ + {0,NULL} + }; + + struct { + uint16_t dpc; + const char *txt; + } ptp_device_properties_PARROT[] = { + {PTP_DPC_PARROT_PhotoSensorEnableMask, "PhotoSensorEnableMask"}, /* 0xD201 */ + {PTP_DPC_PARROT_PhotoSensorsKeepOn, "PhotoSensorsKeepOn"}, /* 0xD202 */ + {PTP_DPC_PARROT_MultispectralImageSize, "MultispectralImageSize"}, /* 0xD203 */ + {PTP_DPC_PARROT_MainBitDepth, "MainBitDepth"}, /* 0xD204 */ + {PTP_DPC_PARROT_MultispectralBitDepth, "MultispectralBitDepth"}, /* 0xD205 */ + {PTP_DPC_PARROT_HeatingEnable, "HeatingEnable"}, /* 0xD206 */ + {PTP_DPC_PARROT_WifiStatus, "WifiStatus"}, /* 0xD207 */ + {PTP_DPC_PARROT_WifiSSID, "WifiSSID"}, /* 0xD208 */ + {PTP_DPC_PARROT_WifiEncryptionType, "WifiEncryptionType"}, /* 0xD209 */ + {PTP_DPC_PARROT_WifiPassphrase, "WifiPassphrase"}, /* 0xD20A */ + {PTP_DPC_PARROT_WifiChannel, "WifiChannel"}, /* 0xD20B */ + {PTP_DPC_PARROT_Localization, "Localization"}, /* 0xD20C */ + {PTP_DPC_PARROT_WifiMode, "WifiMode"}, /* 0xD20D */ + {PTP_DPC_PARROT_AntiFlickeringFrequency, "AntiFlickeringFrequency"}, /* 0xD210 */ + {PTP_DPC_PARROT_DisplayOverlayMask, "DisplayOverlayMask"}, /* 0xD211 */ + {PTP_DPC_PARROT_GPSInterval, "GPSInterval"}, /* 0xD212 */ + {PTP_DPC_PARROT_MultisensorsExposureMeteringMode,"MultisensorsExposureMeteringMode"}, /* 0xD213 */ + {PTP_DPC_PARROT_MultisensorsExposureTime, "MultisensorsExposureTime"}, /* 0xD214 */ + {PTP_DPC_PARROT_MultisensorsExposureProgramMode,"MultisensorsExposureProgramMode"}, /* 0xD215 */ + {PTP_DPC_PARROT_MultisensorsExposureIndex, "MultisensorsExposureIndex"}, /* 0xD216 */ + {PTP_DPC_PARROT_MultisensorsIrradianceGain, "MultisensorsIrradianceGain"}, /* 0xD217 */ + {PTP_DPC_PARROT_MultisensorsIrradianceIntegrationTime,"MultisensorsIrradianceIntegrationTime"}, /* 0xD218 */ + {PTP_DPC_PARROT_OverlapRate, "OverlapRate"}, /* 0xD219 */ + {0,NULL} + }; + + + for (i=0; ptp_device_properties[i].txt!=NULL; i++) + if (ptp_device_properties[i].dpc==dpc) + return (ptp_device_properties[i].txt); + + if (params->deviceinfo.VendorExtensionID==PTP_VENDOR_MICROSOFT + || params->deviceinfo.VendorExtensionID==PTP_VENDOR_MTP + || params->deviceinfo.VendorExtensionID==PTP_VENDOR_PANASONIC) + for (i=0; ptp_device_properties_MTP[i].txt!=NULL; i++) + if (ptp_device_properties_MTP[i].dpc==dpc) + return (ptp_device_properties_MTP[i].txt); + + if (params->deviceinfo.VendorExtensionID==PTP_VENDOR_EASTMAN_KODAK) + for (i=0; ptp_device_properties_EK[i].txt!=NULL; i++) + if (ptp_device_properties_EK[i].dpc==dpc) + return (ptp_device_properties_EK[i].txt); + + if (params->deviceinfo.VendorExtensionID==PTP_VENDOR_CANON) + for (i=0; ptp_device_properties_Canon[i].txt!=NULL; i++) + if (ptp_device_properties_Canon[i].dpc==dpc) + return (ptp_device_properties_Canon[i].txt); + + if (params->deviceinfo.VendorExtensionID==PTP_VENDOR_NIKON) + for (i=0; ptp_device_properties_Nikon[i].txt!=NULL; i++) + if (ptp_device_properties_Nikon[i].dpc==dpc) + return (ptp_device_properties_Nikon[i].txt); + + if (params->deviceinfo.VendorExtensionID==PTP_VENDOR_FUJI) + for (i=0; ptp_device_properties_FUJI[i].txt!=NULL; i++) + if (ptp_device_properties_FUJI[i].dpc==dpc) + return (ptp_device_properties_FUJI[i].txt); + + if (params->deviceinfo.VendorExtensionID==PTP_VENDOR_SONY) + for (i=0; ptp_device_properties_SONY[i].txt!=NULL; i++) + if (ptp_device_properties_SONY[i].dpc==dpc) + return (ptp_device_properties_SONY[i].txt); + if (params->deviceinfo.VendorExtensionID==PTP_VENDOR_PARROT) + for (i=0; ptp_device_properties_PARROT[i].txt!=NULL; i++) + if (ptp_device_properties_PARROT[i].dpc==dpc) + return (ptp_device_properties_PARROT[i].txt); + + + return NULL; +} + +static int64_t +_value_to_num(PTPPropertyValue *data, uint16_t dt) { + if (dt == PTP_DTC_STR) { + if (!data->str) + return 0; + return atol(data->str); + } + if (dt & PTP_DTC_ARRAY_MASK) { + return 0; + } else { + switch (dt) { + case PTP_DTC_UNDEF: + return 0; + case PTP_DTC_INT8: + return data->i8; + case PTP_DTC_UINT8: + return data->u8; + case PTP_DTC_INT16: + return data->i16; + case PTP_DTC_UINT16: + return data->u16; + case PTP_DTC_INT32: + return data->i32; + case PTP_DTC_UINT32: + return data->u32; + /* + PTP_DTC_INT64 + PTP_DTC_UINT64 + PTP_DTC_INT128 + PTP_DTC_UINT128 + */ + default: + return 0; + } + } + + return 0; +} + +#define PTP_VAL_BOOL(dpc) {dpc, 0, N_("Off")}, {dpc, 1, N_("On")} +#define PTP_VENDOR_VAL_BOOL(dpc,vendor) {dpc, vendor, 0, N_("Off")}, {dpc, vendor, 1, N_("On")} +#define PTP_VENDOR_VAL_RBOOL(dpc,vendor) {dpc, vendor, 0, N_("On")}, {dpc, vendor, 1, N_("Off")} +#define PTP_VENDOR_VAL_YN(dpc,vendor) {dpc, vendor, 0, N_("No")}, {dpc, vendor, 1, N_("Yes")} + +int +ptp_render_property_value(PTPParams* params, uint16_t dpc, + PTPDevicePropDesc *dpd, unsigned int length, char *out) +{ + unsigned int i; + int64_t kval; + + struct { + uint16_t dpc; + uint16_t vendor; + double coef; + double bias; + const char *format; + } ptp_value_trans[] = { + {PTP_DPC_BatteryLevel, 0, 1.0, 0.0, "%.0f%%"}, /* 5001 */ + {PTP_DPC_FNumber, 0, 0.01, 0.0, "f/%.2g"}, /* 5007 */ + {PTP_DPC_FocalLength, 0, 0.01, 0.0, "%.0f mm"}, /* 5008 */ + {PTP_DPC_FocusDistance, 0, 0.01, 0.0, "%.0f mm"}, /* 5009 */ + {PTP_DPC_ExposureTime, 0, 0.00001, 0.0, "%.2g sec"}, /* 500D */ + {PTP_DPC_ExposureIndex, 0, 1.0, 0.0, "ISO %.0f"}, /* 500F */ + {PTP_DPC_ExposureBiasCompensation, 0, 0.001, 0.0, N_("%.1f stops")},/* 5010 */ + {PTP_DPC_CaptureDelay, 0, 0.001, 0.0, "%.1fs"}, /* 5012 */ + {PTP_DPC_DigitalZoom, 0, 0.1, 0.0, "%.1f"}, /* 5016 */ + {PTP_DPC_BurstInterval, 0, 0.001, 0.0, "%.1fs"}, /* 5019 */ + + /* Nikon device properties */ + {PTP_DPC_NIKON_LightMeter, PTP_VENDOR_NIKON, 0.08333, 0.0, N_("%.1f stops")},/* D10A */ + {PTP_DPC_NIKON_FlashExposureCompensation, PTP_VENDOR_NIKON, 0.16666, 0.0, N_("%.1f stops")}, /* D126 */ + {PTP_DPC_NIKON_CenterWeightArea, PTP_VENDOR_NIKON, 2.0, 6.0, N_("%.0f mm")},/* D059 */ + {PTP_DPC_NIKON_FocalLengthMin, PTP_VENDOR_NIKON, 0.01, 0.0, "%.0f mm"}, /* D0E3 */ + {PTP_DPC_NIKON_FocalLengthMax, PTP_VENDOR_NIKON, 0.01, 0.0, "%.0f mm"}, /* D0E4 */ + {PTP_DPC_NIKON_MaxApAtMinFocalLength, PTP_VENDOR_NIKON, 0.01, 0.0, "f/%.2g"}, /* D0E5 */ + {PTP_DPC_NIKON_MaxApAtMaxFocalLength, PTP_VENDOR_NIKON, 0.01, 0.0, "f/%.2g"}, /* D0E6 */ + {PTP_DPC_NIKON_ExternalFlashCompensation, PTP_VENDOR_NIKON, 1.0/6.0, 0.0,"%.0f"}, /* D124 */ + {PTP_DPC_NIKON_ExposureIndicateStatus, PTP_VENDOR_NIKON, 0.08333, 0.0, N_("%.1f stops")},/* D1B1 - FIXME: check if correct. */ + {PTP_DPC_NIKON_AngleLevel, PTP_VENDOR_NIKON, 1.0/65536, 0.0, "%.1f'"},/* 0xD067 */ + {0, 0, 0.0, 0.0, NULL} + }; + + struct { + uint16_t dpc; + uint16_t vendor; + int64_t key; + char *value; + } ptp_value_list[] = { + {PTP_DPC_CompressionSetting, 0, 0, N_("JPEG Basic")}, /* 5004 */ + {PTP_DPC_CompressionSetting, 0, 1, N_("JPEG Norm")}, + {PTP_DPC_CompressionSetting, 0, 2, N_("JPEG Fine")}, + {PTP_DPC_CompressionSetting, 0, 4, N_("RAW")}, + {PTP_DPC_CompressionSetting, 0, 5, N_("RAW + JPEG Basic")}, + {PTP_DPC_WhiteBalance, 0, 1, N_("Manual")}, + {PTP_DPC_WhiteBalance, 0, 2, N_("Automatic")}, /* 5005 */ + {PTP_DPC_WhiteBalance, 0, 3, N_("One-push Automatic")}, + {PTP_DPC_WhiteBalance, 0, 4, N_("Daylight")}, + {PTP_DPC_WhiteBalance, 0, 5, N_("Fluorescent")}, + {PTP_DPC_WhiteBalance, 0, 6, N_("Incandescent")}, + {PTP_DPC_WhiteBalance, 0, 7, N_("Flash")}, + {PTP_DPC_WhiteBalance, PTP_VENDOR_NIKON, 32784, N_("Cloudy")}, + {PTP_DPC_WhiteBalance, PTP_VENDOR_NIKON, 32785, N_("Shade")}, + {PTP_DPC_WhiteBalance, PTP_VENDOR_NIKON, 32786, N_("Color Temperature")}, + {PTP_DPC_WhiteBalance, PTP_VENDOR_NIKON, 32787, N_("Preset")}, + {PTP_DPC_FocusMode, 0, 1, N_("Manual Focus")}, /* 500A */ + {PTP_DPC_FocusMode, 0, 2, N_("Automatic")}, + {PTP_DPC_FocusMode, 0, 3, N_("Automatic Macro (close-up)")}, + {PTP_DPC_FocusMode, PTP_VENDOR_NIKON, 32784, "AF-S"}, + {PTP_DPC_FocusMode, PTP_VENDOR_NIKON, 32785, "AF-C"}, + {PTP_DPC_FocusMode, PTP_VENDOR_NIKON, 32786, "AF-A"}, + {PTP_DPC_ExposureMeteringMode, 0, 1, N_("Average")}, /* 500B */ + {PTP_DPC_ExposureMeteringMode, 0, 2, N_("Center Weighted Average")}, + {PTP_DPC_ExposureMeteringMode, 0, 3, N_("Multi-spot")}, + {PTP_DPC_ExposureMeteringMode, 0, 4, N_("Center-spot")}, + {PTP_DPC_FlashMode, 0, 0, N_("Undefined")}, /* 500C */ + {PTP_DPC_FlashMode, 0, 1, N_("Automatic flash")}, + {PTP_DPC_FlashMode, 0, 2, N_("Flash off")}, + {PTP_DPC_FlashMode, 0, 3, N_("Fill flash")}, + {PTP_DPC_FlashMode, 0, 4, N_("Automatic Red-eye Reduction")}, + {PTP_DPC_FlashMode, 0, 5, N_("Red-eye fill flash")}, + {PTP_DPC_FlashMode, 0, 6, N_("External sync")}, + {PTP_DPC_FlashMode, PTP_VENDOR_NIKON, 32784, N_("Auto")}, + {PTP_DPC_FlashMode, PTP_VENDOR_NIKON, 32785, N_("Auto Slow Sync")}, + {PTP_DPC_FlashMode, PTP_VENDOR_NIKON, 32786, N_("Rear Curtain Sync + Slow Sync")}, + {PTP_DPC_FlashMode, PTP_VENDOR_NIKON, 32787, N_("Red-eye Reduction + Slow Sync")}, + {PTP_DPC_ExposureProgramMode, 0, 1, "M"}, /* 500E */ + {PTP_DPC_ExposureProgramMode, 0, 3, "A"}, + {PTP_DPC_ExposureProgramMode, 0, 4, "S"}, + {PTP_DPC_ExposureProgramMode, 0, 2, "P"}, + {PTP_DPC_ExposureProgramMode, PTP_VENDOR_NIKON, 32784, N_("Auto")}, + {PTP_DPC_ExposureProgramMode, PTP_VENDOR_NIKON, 32785, N_("Portrait")}, + {PTP_DPC_ExposureProgramMode, PTP_VENDOR_NIKON, 32786, N_("Landscape")}, + {PTP_DPC_ExposureProgramMode, PTP_VENDOR_NIKON, 32787, N_("Macro")}, + {PTP_DPC_ExposureProgramMode, PTP_VENDOR_NIKON, 32788, N_("Sports")}, + {PTP_DPC_ExposureProgramMode, PTP_VENDOR_NIKON, 32790, N_("Night Landscape")}, + {PTP_DPC_ExposureProgramMode, PTP_VENDOR_NIKON, 32789, N_("Night Portrait")}, + {PTP_DPC_StillCaptureMode, 0, 1, N_("Single Shot")}, /* 5013 */ + {PTP_DPC_StillCaptureMode, 0, 2, N_("Power Wind")}, + {PTP_DPC_StillCaptureMode, 0, 3, N_("Timelapse")}, + {PTP_DPC_StillCaptureMode, PTP_VENDOR_NIKON, 32784, N_("Continuous Low Speed")}, + {PTP_DPC_StillCaptureMode, PTP_VENDOR_NIKON, 32785, N_("Timer")}, + {PTP_DPC_StillCaptureMode, PTP_VENDOR_NIKON, 32787, N_("Remote")}, + {PTP_DPC_StillCaptureMode, PTP_VENDOR_NIKON, 32787, N_("Mirror Up")}, + {PTP_DPC_StillCaptureMode, PTP_VENDOR_NIKON, 32788, N_("Timer + Remote")}, + {PTP_DPC_FocusMeteringMode, 0, 1, N_("Centre-spot")}, /* 501C */ + {PTP_DPC_FocusMeteringMode, 0, 2, N_("Multi-spot")}, + {PTP_DPC_FocusMeteringMode, PTP_VENDOR_NIKON, 32784, N_("Single Area")}, + {PTP_DPC_FocusMeteringMode, PTP_VENDOR_NIKON, 32785, N_("Closest Subject")}, + {PTP_DPC_FocusMeteringMode, PTP_VENDOR_NIKON, 32786, N_("Group Dynamic")}, + + + /* Nikon specific device properties */ + {PTP_DPC_NIKON_ImageSharpening, PTP_VENDOR_NIKON, 0, N_("Auto")}, /* D02A */ + {PTP_DPC_NIKON_ImageSharpening, PTP_VENDOR_NIKON, 1, N_("Normal")}, + {PTP_DPC_NIKON_ImageSharpening, PTP_VENDOR_NIKON, 2, N_("Low")}, + {PTP_DPC_NIKON_ImageSharpening, PTP_VENDOR_NIKON, 3, N_("Medium Low")}, + {PTP_DPC_NIKON_ImageSharpening, PTP_VENDOR_NIKON, 4, N_("Medium high")}, + {PTP_DPC_NIKON_ImageSharpening, PTP_VENDOR_NIKON, 5, N_("High")}, + {PTP_DPC_NIKON_ImageSharpening, PTP_VENDOR_NIKON, 6, N_("None")}, + + {PTP_DPC_NIKON_ToneCompensation, PTP_VENDOR_NIKON, 0, N_("Auto")}, /* D02B */ + {PTP_DPC_NIKON_ToneCompensation, PTP_VENDOR_NIKON, 1, N_("Normal")}, + {PTP_DPC_NIKON_ToneCompensation, PTP_VENDOR_NIKON, 2, N_("Low contrast")}, + {PTP_DPC_NIKON_ToneCompensation, PTP_VENDOR_NIKON, 3, N_("Medium Low")}, + {PTP_DPC_NIKON_ToneCompensation, PTP_VENDOR_NIKON, 4, N_("Medium High")}, + {PTP_DPC_NIKON_ToneCompensation, PTP_VENDOR_NIKON, 5, N_("High control")}, + {PTP_DPC_NIKON_ToneCompensation, PTP_VENDOR_NIKON, 6, N_("Custom")}, + + {PTP_DPC_NIKON_ColorModel, PTP_VENDOR_NIKON, 0, "sRGB"}, /* D02C */ + {PTP_DPC_NIKON_ColorModel, PTP_VENDOR_NIKON, 1, "AdobeRGB"}, + {PTP_DPC_NIKON_ColorModel, PTP_VENDOR_NIKON, 2, "sRGB"}, + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_AutoDXCrop,PTP_VENDOR_NIKON), /* D033 */ + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_FocusAreaWrap,PTP_VENDOR_NIKON), /* D04F */ + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_EnableCopyright,PTP_VENDOR_NIKON), /* D053 */ + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_ISOAuto,PTP_VENDOR_NIKON), /* D054 */ + + /* FIXME! this is not ISO Auto (which is a bool) Perhaps ISO Auto Time?*/ + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 0, "1/125"}, /* D054 */ + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 1, "1/60"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 2, "1/30"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 3, "1/15"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 4, "1/8"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 5, "1/4"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 6, "1/2"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 7, "1"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 8, "2"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 9, "4"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 10, "8"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 11, "15"}, + {PTP_DPC_NIKON_ISOAuto, PTP_VENDOR_NIKON, 12, "30"}, + + {PTP_DPC_NIKON_EVStep, PTP_VENDOR_NIKON, 0, "1/3"}, /* D056 */ + {PTP_DPC_NIKON_EVStep, PTP_VENDOR_NIKON, 1, "1/2"}, + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_ExposureCompensation,PTP_VENDOR_NIKON),/*D058 */ + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_AELockMode,PTP_VENDOR_NIKON), /* D05E */ + + {PTP_DPC_NIKON_AELAFLMode, PTP_VENDOR_NIKON, 0, N_("AE/AF Lock")}, /* D05F */ + {PTP_DPC_NIKON_AELAFLMode, PTP_VENDOR_NIKON, 1, N_("AF Lock only")}, + {PTP_DPC_NIKON_AELAFLMode, PTP_VENDOR_NIKON, 2, N_("AE Lock only")}, + {PTP_DPC_NIKON_AELAFLMode, PTP_VENDOR_NIKON, 3, N_("AF Lock Hold")}, + {PTP_DPC_NIKON_AELAFLMode, PTP_VENDOR_NIKON, 4, N_("AF On")}, + {PTP_DPC_NIKON_AELAFLMode, PTP_VENDOR_NIKON, 5, N_("Flash Lock")}, + + {PTP_DPC_NIKON_MeterOff, PTP_VENDOR_NIKON, 0, N_("4 seconds")}, /* D062 */ + {PTP_DPC_NIKON_MeterOff, PTP_VENDOR_NIKON, 1, N_("6 seconds")}, + {PTP_DPC_NIKON_MeterOff, PTP_VENDOR_NIKON, 2, N_("8 seconds")}, + {PTP_DPC_NIKON_MeterOff, PTP_VENDOR_NIKON, 3, N_("16 seconds")}, + {PTP_DPC_NIKON_MeterOff, PTP_VENDOR_NIKON, 4, N_("30 minutes")}, + {PTP_DPC_NIKON_MeterOff, PTP_VENDOR_NIKON, 5, N_("30 seconds")}, + + {PTP_DPC_NIKON_SelfTimer, PTP_VENDOR_NIKON, 0, N_("2 seconds")}, /* D063 */ + {PTP_DPC_NIKON_SelfTimer, PTP_VENDOR_NIKON, 1, N_("5 seconds")}, + {PTP_DPC_NIKON_SelfTimer, PTP_VENDOR_NIKON, 2, N_("10 seconds")}, + {PTP_DPC_NIKON_SelfTimer, PTP_VENDOR_NIKON, 3, N_("20 seconds")}, + + {PTP_DPC_NIKON_MonitorOff, PTP_VENDOR_NIKON, 0, N_("10 seconds")}, /* D064 */ + {PTP_DPC_NIKON_MonitorOff, PTP_VENDOR_NIKON, 1, N_("20 seconds")}, + {PTP_DPC_NIKON_MonitorOff, PTP_VENDOR_NIKON, 2, N_("1 minute")}, + {PTP_DPC_NIKON_MonitorOff, PTP_VENDOR_NIKON, 3, N_("5 minutes")}, + {PTP_DPC_NIKON_MonitorOff, PTP_VENDOR_NIKON, 4, N_("10 minutes")}, + {PTP_DPC_NIKON_MonitorOff, PTP_VENDOR_NIKON, 5, N_("5 seconds")}, /* d80 observed */ + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_ExposureDelayMode,PTP_VENDOR_NIKON), /* D06A */ + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_LongExposureNoiseReduction,PTP_VENDOR_NIKON), /* D06B */ + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_FileNumberSequence,PTP_VENDOR_NIKON), /* D06C */ + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_D7Illumination,PTP_VENDOR_NIKON), /* D06F */ + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_SHSET_CH_GUID_DISP,PTP_VENDOR_NIKON), /* D071 */ + + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 0, "1/60s"}, /* D075 */ + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 1, "1/30s"}, + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 2, "1/15s"}, + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 3, "1/8s"}, + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 4, "1/4s"}, + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 5, "1/2s"}, + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 6, "1s"}, + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 7, "2s"}, + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 8, "4s"}, + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 9, "8s"}, + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 10, "15s"}, + {PTP_DPC_NIKON_FlashShutterSpeed, PTP_VENDOR_NIKON, 11, "30s"}, + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_E4ModelingFlash,PTP_VENDOR_NIKON), /* D077 */ + + {PTP_DPC_NIKON_BracketSet, PTP_VENDOR_NIKON, 0, N_("AE & Flash")}, /* D078 */ + {PTP_DPC_NIKON_BracketSet, PTP_VENDOR_NIKON, 1, N_("AE only")}, + {PTP_DPC_NIKON_BracketSet, PTP_VENDOR_NIKON, 2, N_("Flash only")}, + {PTP_DPC_NIKON_BracketSet, PTP_VENDOR_NIKON, 3, N_("WB bracketing")}, + + {PTP_DPC_NIKON_BracketOrder, PTP_VENDOR_NIKON, 0, N_("MTR > Under")}, /* D07A */ + {PTP_DPC_NIKON_BracketOrder, PTP_VENDOR_NIKON, 1, N_("Under > MTR")}, + + {PTP_DPC_NIKON_F1CenterButtonShootingMode, PTP_VENDOR_NIKON, 0, N_("Reset focus point to center")}, /* D080 */ + {PTP_DPC_NIKON_F1CenterButtonShootingMode, PTP_VENDOR_NIKON, 1, N_("Highlight active focus point")}, + {PTP_DPC_NIKON_F1CenterButtonShootingMode, PTP_VENDOR_NIKON, 2, N_("Unused")}, + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_F3PhotoInfoPlayback,PTP_VENDOR_NIKON),/* D083 */ + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_F5CustomizeCommDials,PTP_VENDOR_NIKON),/* D085 */ + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_ReverseCommandDial,PTP_VENDOR_NIKON), /* D086 */ + PTP_VENDOR_VAL_RBOOL(PTP_DPC_NIKON_F6ButtonsAndDials,PTP_VENDOR_NIKON), /* D089 */ + PTP_VENDOR_VAL_RBOOL(PTP_DPC_NIKON_NoCFCard,PTP_VENDOR_NIKON), /* D08A */ + PTP_VENDOR_VAL_RBOOL(PTP_DPC_NIKON_AFAreaPoint,PTP_VENDOR_NIKON), /* D08D */ + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_ImageCommentEnable,PTP_VENDOR_NIKON), /* D091 */ + PTP_VENDOR_VAL_RBOOL(PTP_DPC_NIKON_ImageRotation,PTP_VENDOR_NIKON), /* D092 */ + + PTP_VENDOR_VAL_RBOOL(PTP_DPC_NIKON_MovVoice,PTP_VENDOR_NIKON), /* D0A1 */ + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_Bracketing,PTP_VENDOR_NIKON), /* D0C0 */ + + /* http://www.rottmerhusen.com/objektives/lensid/nikkor.html is complete */ + {PTP_DPC_NIKON_LensID, PTP_VENDOR_NIKON, 0, N_("Unknown")}, /* D0E0 */ + {PTP_DPC_NIKON_LensID, PTP_VENDOR_NIKON, 38, "Sigma 70-300mm 1:4-5.6 D APO Macro"}, + {PTP_DPC_NIKON_LensID, PTP_VENDOR_NIKON, 83, "AF Nikkor 80-200mm 1:2.8 D ED"}, + {PTP_DPC_NIKON_LensID, PTP_VENDOR_NIKON, 118, "AF Nikkor 50mm 1:1.8 D"}, + {PTP_DPC_NIKON_LensID, PTP_VENDOR_NIKON, 127, "AF-S Nikkor 18-70mm 1:3.5-4.5G ED DX"}, + {PTP_DPC_NIKON_LensID, PTP_VENDOR_NIKON, 139, "AF-S Nikkor 18-200mm 1:3.5-5.6 GED DX VR"}, + {PTP_DPC_NIKON_LensID, PTP_VENDOR_NIKON, 147, "AF-S Nikkor 24-70mm 1:2.8G ED DX"}, + {PTP_DPC_NIKON_LensID, PTP_VENDOR_NIKON, 154, "AF-S Nikkor 18-55mm 1:3.5-F5.6G DX VR"}, + {PTP_DPC_NIKON_LensID, PTP_VENDOR_NIKON, 159, "AF-S Nikkor 35mm 1:1.8G DX"}, + {PTP_DPC_NIKON_FinderISODisp, PTP_VENDOR_NIKON, 0, "Show ISO sensitivity"},/* 0xD0F0 */ + {PTP_DPC_NIKON_FinderISODisp, PTP_VENDOR_NIKON, 1, "Show ISO/Easy ISO"}, + {PTP_DPC_NIKON_FinderISODisp, PTP_VENDOR_NIKON, 2, "Show frame count"}, + + {PTP_DPC_NIKON_RawCompression, PTP_VENDOR_NIKON, 0, N_("Lossless")}, /* D016 */ + {PTP_DPC_NIKON_RawCompression, PTP_VENDOR_NIKON, 1, N_("Lossy")}, + + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_ACPower,PTP_VENDOR_NIKON), /* D101 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_AFLockStatus,PTP_VENDOR_NIKON), /* D104 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_AELockStatus,PTP_VENDOR_NIKON), /* D105 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_FVLockStatus,PTP_VENDOR_NIKON), /* D106 */ + + {PTP_DPC_NIKON_AutofocusArea, PTP_VENDOR_NIKON, 0, N_("Centre")}, /* D108 */ + {PTP_DPC_NIKON_AutofocusArea, PTP_VENDOR_NIKON, 1, N_("Top")}, + {PTP_DPC_NIKON_AutofocusArea, PTP_VENDOR_NIKON, 2, N_("Bottom")}, + {PTP_DPC_NIKON_AutofocusArea, PTP_VENDOR_NIKON, 3, N_("Left")}, + {PTP_DPC_NIKON_AutofocusArea, PTP_VENDOR_NIKON, 4, N_("Right")}, + + {PTP_DPC_NIKON_RecordingMedia, PTP_VENDOR_NIKON, 0, N_("Card")}, /* D10B */ + {PTP_DPC_NIKON_RecordingMedia, PTP_VENDOR_NIKON, 1, N_("SDRam")}, + + {PTP_DPC_NIKON_USBSpeed, PTP_VENDOR_NIKON, 0, N_("USB 1.1")}, /* D10C */ + {PTP_DPC_NIKON_USBSpeed, PTP_VENDOR_NIKON, 1, N_("USB 2.0")}, + + {PTP_DPC_NIKON_CameraOrientation, PTP_VENDOR_NIKON, 0, "0'"}, /* D10E */ + {PTP_DPC_NIKON_CameraOrientation, PTP_VENDOR_NIKON, 1, "270'"}, + {PTP_DPC_NIKON_CameraOrientation, PTP_VENDOR_NIKON, 2, "90'"}, + {PTP_DPC_NIKON_CameraOrientation, PTP_VENDOR_NIKON, 3, "180'"}, + + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_FNumberLock,PTP_VENDOR_NIKON), /* D110 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_ExposureApertureLock,PTP_VENDOR_NIKON), /* D111 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_TVLockSetting,PTP_VENDOR_NIKON), /* D112 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_AVLockSetting,PTP_VENDOR_NIKON), /* D113 */ + + {PTP_DPC_NIKON_IllumSetting,PTP_VENDOR_NIKON,0,N_("LCD Backlight")}, /* D114 */ + {PTP_DPC_NIKON_IllumSetting,PTP_VENDOR_NIKON,1,N_("LCD Backlight and Info Display")}, + + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_ExternalFlashAttached,PTP_VENDOR_NIKON),/* D120 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_ExternalFlashStatus,PTP_VENDOR_NIKON), /* D121 */ + + {PTP_DPC_NIKON_OptimizeImage, PTP_VENDOR_NIKON, 0, N_("Normal")}, /* D140 */ + {PTP_DPC_NIKON_OptimizeImage, PTP_VENDOR_NIKON, 1, N_("Vivid")}, + {PTP_DPC_NIKON_OptimizeImage, PTP_VENDOR_NIKON, 2, N_("Sharper")}, + {PTP_DPC_NIKON_OptimizeImage, PTP_VENDOR_NIKON, 3, N_("Softer")}, + {PTP_DPC_NIKON_OptimizeImage, PTP_VENDOR_NIKON, 4, N_("Direct Print")}, + {PTP_DPC_NIKON_OptimizeImage, PTP_VENDOR_NIKON, 5, N_("Portrait")}, + {PTP_DPC_NIKON_OptimizeImage, PTP_VENDOR_NIKON, 6, N_("Landscape")}, + {PTP_DPC_NIKON_OptimizeImage, PTP_VENDOR_NIKON, 7, N_("Custom")}, + + {PTP_DPC_NIKON_Saturation, PTP_VENDOR_NIKON, 0, N_("Normal")}, /* D142 */ + {PTP_DPC_NIKON_Saturation, PTP_VENDOR_NIKON, 1, N_("Moderate")}, + {PTP_DPC_NIKON_Saturation, PTP_VENDOR_NIKON, 2, N_("Enhanced")}, + + PTP_VENDOR_VAL_RBOOL(PTP_DPC_NIKON_BeepOff,PTP_VENDOR_NIKON), /* D160 */ + + {PTP_DPC_NIKON_AutofocusMode, PTP_VENDOR_NIKON, 0, N_("AF-S")}, /* D161 */ + {PTP_DPC_NIKON_AutofocusMode, PTP_VENDOR_NIKON, 1, N_("AF-C")}, + {PTP_DPC_NIKON_AutofocusMode, PTP_VENDOR_NIKON, 2, N_("AF-A")}, + {PTP_DPC_NIKON_AutofocusMode, PTP_VENDOR_NIKON, 3, N_("MF (fixed)")}, + {PTP_DPC_NIKON_AutofocusMode, PTP_VENDOR_NIKON, 4, N_("MF (selection)")}, + + PTP_VENDOR_VAL_RBOOL(PTP_DPC_NIKON_AFAssist,PTP_VENDOR_NIKON), /* D163 */ + + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 0, "1/125"}, /* D164 */ + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 1, "1/60"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 2, "1/30"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 3, "1/15"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 4, "1/8"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 5, "1/4"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 6, "1/2"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 7, "1"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 8, "2"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 9, "4"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 10, "8"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 11, "15"}, + {PTP_DPC_NIKON_PADVPMode, PTP_VENDOR_NIKON, 12, "30"}, + + PTP_VENDOR_VAL_RBOOL(PTP_DPC_NIKON_ImageReview,PTP_VENDOR_NIKON), /* D165 */ + + {PTP_DPC_NIKON_AFAreaIllumination, PTP_VENDOR_NIKON, 0, N_("Auto")}, /* D166 */ + {PTP_DPC_NIKON_AFAreaIllumination, PTP_VENDOR_NIKON, 1, N_("Off")}, + {PTP_DPC_NIKON_AFAreaIllumination, PTP_VENDOR_NIKON, 2, N_("On")}, + + {PTP_DPC_NIKON_FlashMode, PTP_VENDOR_NIKON, 0, "iTTL"}, /* D167 */ + {PTP_DPC_NIKON_FlashMode, PTP_VENDOR_NIKON, 1, N_("Manual")}, + {PTP_DPC_NIKON_FlashMode, PTP_VENDOR_NIKON, 2, N_("Commander")}, + + {PTP_DPC_NIKON_FlashCommanderMode, PTP_VENDOR_NIKON, 0, N_("TTL")}, /* D168 */ + {PTP_DPC_NIKON_FlashCommanderMode, PTP_VENDOR_NIKON, 1, N_("Auto Aperture")}, + {PTP_DPC_NIKON_FlashCommanderMode, PTP_VENDOR_NIKON, 2, N_("Full Manual")}, + + PTP_VENDOR_VAL_RBOOL(PTP_DPC_NIKON_FlashSign,PTP_VENDOR_NIKON), /* D169 */ + + {PTP_DPC_NIKON_RemoteTimeout, PTP_VENDOR_NIKON, 0, N_("1 min")}, /* D16B */ + {PTP_DPC_NIKON_RemoteTimeout, PTP_VENDOR_NIKON, 1, N_("5 mins")}, + {PTP_DPC_NIKON_RemoteTimeout, PTP_VENDOR_NIKON, 2, N_("10 mins")}, + {PTP_DPC_NIKON_RemoteTimeout, PTP_VENDOR_NIKON, 3, N_("15 mins")}, + + PTP_VENDOR_VAL_BOOL(PTP_DPC_NIKON_GridDisplay,PTP_VENDOR_NIKON), /* D16C */ + + {PTP_DPC_NIKON_FlashModeManualPower, PTP_VENDOR_NIKON, 0, N_("Full")}, /* D16D */ + {PTP_DPC_NIKON_FlashModeManualPower, PTP_VENDOR_NIKON, 1, "1/2"}, + {PTP_DPC_NIKON_FlashModeManualPower, PTP_VENDOR_NIKON, 2, "1/4"}, + {PTP_DPC_NIKON_FlashModeManualPower, PTP_VENDOR_NIKON, 3, "1/8"}, + {PTP_DPC_NIKON_FlashModeManualPower, PTP_VENDOR_NIKON, 4, "1/16"}, + + {PTP_DPC_NIKON_FlashModeCommanderPower, PTP_VENDOR_NIKON, 0, N_("Full")},/* D16E */ + {PTP_DPC_NIKON_FlashModeCommanderPower, PTP_VENDOR_NIKON, 1, "1/2"}, + {PTP_DPC_NIKON_FlashModeCommanderPower, PTP_VENDOR_NIKON, 2, "1/4"}, + {PTP_DPC_NIKON_FlashModeCommanderPower, PTP_VENDOR_NIKON, 3, "1/8"}, + {PTP_DPC_NIKON_FlashModeCommanderPower, PTP_VENDOR_NIKON, 4, "1/16"}, + {PTP_DPC_NIKON_FlashModeCommanderPower, PTP_VENDOR_NIKON, 5, "1/32"}, + {PTP_DPC_NIKON_FlashModeCommanderPower, PTP_VENDOR_NIKON, 6, "1/64"}, + {PTP_DPC_NIKON_FlashModeCommanderPower, PTP_VENDOR_NIKON, 7, "1/128"}, + + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_CSMMenu,PTP_VENDOR_NIKON), /* D180 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_WarningDisplay,PTP_VENDOR_NIKON), /* D181 */ + + {PTP_DPC_NIKON_BatteryCellKind, PTP_VENDOR_NIKON, 0, "LR6 (AA alkaline)"},/* D182 */ + {PTP_DPC_NIKON_BatteryCellKind, PTP_VENDOR_NIKON, 1, "HR6 (AA Ni-Mh)"}, + {PTP_DPC_NIKON_BatteryCellKind, PTP_VENDOR_NIKON, 2, "FR6 (AA Lithium)"}, + {PTP_DPC_NIKON_BatteryCellKind, PTP_VENDOR_NIKON, 3, "ZR6 (AA Ni-Mn)"}, + + {PTP_DPC_NIKON_ISOAutoHiLimit, PTP_VENDOR_NIKON, 0, "400"}, /* D183 */ + {PTP_DPC_NIKON_ISOAutoHiLimit, PTP_VENDOR_NIKON, 1, "800"}, + {PTP_DPC_NIKON_ISOAutoHiLimit, PTP_VENDOR_NIKON, 2, "1600"}, + {PTP_DPC_NIKON_ISOAutoHiLimit, PTP_VENDOR_NIKON, 3, "3200"}, + {PTP_DPC_NIKON_ISOAutoHiLimit, PTP_VENDOR_NIKON, 4, "Hi 1"}, + {PTP_DPC_NIKON_ISOAutoHiLimit, PTP_VENDOR_NIKON, 5, "Hi 2"}, + + {PTP_DPC_NIKON_InfoDispSetting, PTP_VENDOR_NIKON, 0, N_("Auto")}, /* 0xD187 */ + {PTP_DPC_NIKON_InfoDispSetting, PTP_VENDOR_NIKON, 1, N_("Dark on light")}, + {PTP_DPC_NIKON_InfoDispSetting, PTP_VENDOR_NIKON, 2, N_("Light on dark")}, + + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_IndicatorDisp,PTP_VENDOR_NIKON), /* D18D */ + + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_LiveViewStatus,PTP_VENDOR_NIKON), /* D1A2 */ + + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_ExposureDisplayStatus,PTP_VENDOR_NIKON),/* D1B0 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_InfoDispErrStatus,PTP_VENDOR_NIKON), /* D1B2 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_ExposureIndicateLightup,PTP_VENDOR_NIKON),/* D1B3 */ + + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_FlashOpen,PTP_VENDOR_NIKON), /* D1C0 */ + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_FlashCharged,PTP_VENDOR_NIKON), /* D1C1 */ + + PTP_VENDOR_VAL_YN(PTP_DPC_NIKON_ManualMovieSetting,PTP_VENDOR_NIKON), /* 0xD0A6 */ + + {PTP_DPC_NIKON_FlickerReduction, PTP_VENDOR_NIKON, 0, "50Hz"}, /* 0xD034 */ + {PTP_DPC_NIKON_FlickerReduction, PTP_VENDOR_NIKON, 1, "60Hz"}, + + {PTP_DPC_NIKON_RemoteMode, PTP_VENDOR_NIKON, 0, N_("Delayed Remote")}, /* 0xD035 */ + {PTP_DPC_NIKON_RemoteMode, PTP_VENDOR_NIKON, 1, N_("Quick Response")}, /* 0xD035 */ + {PTP_DPC_NIKON_RemoteMode, PTP_VENDOR_NIKON, 2, N_("Remote Mirror Up")},/* 0xD035 */ + + {PTP_DPC_NIKON_MonitorOffDelay, PTP_VENDOR_NIKON, 0, "5min"}, /* 0xD0b3 */ + {PTP_DPC_NIKON_MonitorOffDelay, PTP_VENDOR_NIKON, 1, "10min"}, /* 0xD0b3 */ + {PTP_DPC_NIKON_MonitorOffDelay, PTP_VENDOR_NIKON, 2, "15min"}, /* 0xD0b3 */ + {PTP_DPC_NIKON_MonitorOffDelay, PTP_VENDOR_NIKON, 3, "20min"}, /* 0xD0b3 */ + {PTP_DPC_NIKON_MonitorOffDelay, PTP_VENDOR_NIKON, 4, "30min"}, /* 0xD0b3 */ + + + /* Canon stuff */ + PTP_VENDOR_VAL_BOOL(PTP_DPC_CANON_AssistLight,PTP_VENDOR_CANON), + PTP_VENDOR_VAL_RBOOL(PTP_DPC_CANON_RotationScene,PTP_VENDOR_CANON), + PTP_VENDOR_VAL_RBOOL(PTP_DPC_CANON_BeepMode,PTP_VENDOR_CANON), + PTP_VENDOR_VAL_BOOL(PTP_DPC_CANON_Beep,PTP_VENDOR_CANON), + + {PTP_DPC_CANON_RotationAngle, PTP_VENDOR_CANON, 0, "0'"}, + {PTP_DPC_CANON_RotationAngle, PTP_VENDOR_CANON, 3, "270'"}, + {PTP_DPC_CANON_RotationAngle, PTP_VENDOR_CANON, 1, "90'"}, + + {PTP_DPC_CANON_BatteryKind, PTP_VENDOR_CANON, 0, N_("Unknown")}, + {PTP_DPC_CANON_BatteryKind, PTP_VENDOR_CANON, 1, N_("AC")}, + {PTP_DPC_CANON_BatteryKind, PTP_VENDOR_CANON, 2, N_("Lithium Ion")}, + {PTP_DPC_CANON_BatteryKind, PTP_VENDOR_CANON, 3, N_("Nickel hydride")}, + {PTP_DPC_CANON_BatteryKind, PTP_VENDOR_CANON, 4, N_("Nickel cadmium")}, + {PTP_DPC_CANON_BatteryKind, PTP_VENDOR_CANON, 5, N_("Alkalium manganese")}, + + {PTP_DPC_CANON_BatteryStatus, PTP_VENDOR_CANON, 0, N_("Undefined")}, + {PTP_DPC_CANON_BatteryStatus, PTP_VENDOR_CANON, 1, N_("Normal")}, + {PTP_DPC_CANON_BatteryStatus, PTP_VENDOR_CANON, 2, N_("Warning Level 1")}, + {PTP_DPC_CANON_BatteryStatus, PTP_VENDOR_CANON, 3, N_("Emergency")}, + {PTP_DPC_CANON_BatteryStatus, PTP_VENDOR_CANON, 4, N_("Warning Level 0")}, + + {PTP_DPC_CANON_ImageQuality, PTP_VENDOR_CANON, 0, N_("Undefined")}, + {PTP_DPC_CANON_ImageQuality, PTP_VENDOR_CANON, 1, N_("Economy")}, + {PTP_DPC_CANON_ImageQuality, PTP_VENDOR_CANON, 2, N_("Normal")}, + {PTP_DPC_CANON_ImageQuality, PTP_VENDOR_CANON, 3, N_("Fine")}, + {PTP_DPC_CANON_ImageQuality, PTP_VENDOR_CANON, 4, N_("Lossless")}, + {PTP_DPC_CANON_ImageQuality, PTP_VENDOR_CANON, 5, N_("SuperFine")}, + + {PTP_DPC_CANON_FullViewFileFormat, PTP_VENDOR_CANON, 0, N_("Undefined")}, + {PTP_DPC_CANON_FullViewFileFormat, PTP_VENDOR_CANON, 1, N_("JPEG")}, + {PTP_DPC_CANON_FullViewFileFormat, PTP_VENDOR_CANON, 2, N_("CRW")}, + + {PTP_DPC_CANON_ImageSize, PTP_VENDOR_CANON, 0, N_("Large")}, + {PTP_DPC_CANON_ImageSize, PTP_VENDOR_CANON, 1, N_("Medium 1")}, + {PTP_DPC_CANON_ImageSize, PTP_VENDOR_CANON, 2, N_("Small")}, + {PTP_DPC_CANON_ImageSize, PTP_VENDOR_CANON, 3, N_("Medium 2")}, + {PTP_DPC_CANON_ImageSize, PTP_VENDOR_CANON, 7, N_("Medium 3")}, + + {PTP_DPC_CANON_SelfTime, PTP_VENDOR_CANON, 0, N_("Not used")}, + {PTP_DPC_CANON_SelfTime, PTP_VENDOR_CANON, 100, N_("10 seconds")}, + {PTP_DPC_CANON_SelfTime, PTP_VENDOR_CANON, 20, N_("2 seconds")}, + + {PTP_DPC_CANON_FlashMode, PTP_VENDOR_CANON, 0, N_("Off")}, + {PTP_DPC_CANON_FlashMode, PTP_VENDOR_CANON, 1, N_("Auto")}, + {PTP_DPC_CANON_FlashMode, PTP_VENDOR_CANON, 2, N_("On")}, + {PTP_DPC_CANON_FlashMode, PTP_VENDOR_CANON, 3, N_("Red Eye Suppression")}, + {PTP_DPC_CANON_FlashMode, PTP_VENDOR_CANON, 4, N_("Low Speed Synchronization")}, + {PTP_DPC_CANON_FlashMode, PTP_VENDOR_CANON, 5, N_("Auto + Red Eye Suppression")}, + {PTP_DPC_CANON_FlashMode, PTP_VENDOR_CANON, 6, N_("On + Red Eye Suppression")}, + + {PTP_DPC_CANON_ShootingMode, PTP_VENDOR_CANON, 0, N_("Auto")}, + {PTP_DPC_CANON_ShootingMode, PTP_VENDOR_CANON, 1, N_("P")}, + {PTP_DPC_CANON_ShootingMode, PTP_VENDOR_CANON, 2, N_("Tv")}, + {PTP_DPC_CANON_ShootingMode, PTP_VENDOR_CANON, 3, N_("Av")}, + {PTP_DPC_CANON_ShootingMode, PTP_VENDOR_CANON, 4, N_("M")}, + {PTP_DPC_CANON_ShootingMode, PTP_VENDOR_CANON, 5, N_("A_DEP")}, + {PTP_DPC_CANON_ShootingMode, PTP_VENDOR_CANON, 6, N_("M_DEP")}, + {PTP_DPC_CANON_ShootingMode, PTP_VENDOR_CANON, 7, N_("Bulb")}, + /* more actually */ + + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 0, N_("Auto")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 1, N_("Manual")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 2, N_("Distant View")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 3, N_("High-Speed Shutter")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 4, N_("Low-Speed Shutter")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 5, N_("Night View")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 6, N_("Grayscale")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 7, N_("Sepia")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 8, N_("Portrait")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 9, N_("Sports")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 10, N_("Macro")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 11, N_("Monochrome")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 12, N_("Pan Focus")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 13, N_("Neutral")}, + {PTP_DPC_CANON_ImageMode, PTP_VENDOR_CANON, 14, N_("Soft")}, + + {PTP_DPC_CANON_DriveMode, PTP_VENDOR_CANON, 0, N_("Single-Frame Shooting")}, + {PTP_DPC_CANON_DriveMode, PTP_VENDOR_CANON, 1, N_("Continuous Shooting")}, + {PTP_DPC_CANON_DriveMode, PTP_VENDOR_CANON, 2, N_("Timer (Single) Shooting")}, + {PTP_DPC_CANON_DriveMode, PTP_VENDOR_CANON, 4, N_("Continuous Low-speed Shooting")}, + {PTP_DPC_CANON_DriveMode, PTP_VENDOR_CANON, 5, N_("Continuous High-speed Shooting")}, + + {PTP_DPC_CANON_EZoom, PTP_VENDOR_CANON, 0, N_("Off")}, + {PTP_DPC_CANON_EZoom, PTP_VENDOR_CANON, 1, N_("2x")}, + {PTP_DPC_CANON_EZoom, PTP_VENDOR_CANON, 2, N_("4x")}, + {PTP_DPC_CANON_EZoom, PTP_VENDOR_CANON, 3, N_("Smooth")}, + + {PTP_DPC_CANON_MeteringMode, PTP_VENDOR_CANON, 0, N_("Center-weighted Metering")}, + {PTP_DPC_CANON_MeteringMode, PTP_VENDOR_CANON, 1, N_("Spot Metering")}, + {PTP_DPC_CANON_MeteringMode, PTP_VENDOR_CANON, 2, N_("Average Metering")}, + {PTP_DPC_CANON_MeteringMode, PTP_VENDOR_CANON, 3, N_("Evaluative Metering")}, + {PTP_DPC_CANON_MeteringMode, PTP_VENDOR_CANON, 4, N_("Partial Metering")}, + {PTP_DPC_CANON_MeteringMode, PTP_VENDOR_CANON, 5, N_("Center-weighted Average Metering")}, + {PTP_DPC_CANON_MeteringMode, PTP_VENDOR_CANON, 6, N_("Spot Metering Interlocked with AF Frame")}, + {PTP_DPC_CANON_MeteringMode, PTP_VENDOR_CANON, 7, N_("Multi-Spot Metering")}, + + {PTP_DPC_CANON_AFDistance, PTP_VENDOR_CANON, 0, N_("Manual")}, + {PTP_DPC_CANON_AFDistance, PTP_VENDOR_CANON, 1, N_("Auto")}, + {PTP_DPC_CANON_AFDistance, PTP_VENDOR_CANON, 2, N_("Unknown")}, + {PTP_DPC_CANON_AFDistance, PTP_VENDOR_CANON, 3, N_("Zone Focus (Close-up)")}, + {PTP_DPC_CANON_AFDistance, PTP_VENDOR_CANON, 4, N_("Zone Focus (Very Close)")}, + {PTP_DPC_CANON_AFDistance, PTP_VENDOR_CANON, 5, N_("Zone Focus (Close)")}, + {PTP_DPC_CANON_AFDistance, PTP_VENDOR_CANON, 6, N_("Zone Focus (Medium)")}, + {PTP_DPC_CANON_AFDistance, PTP_VENDOR_CANON, 7, N_("Zone Focus (Far)")}, + + {PTP_DPC_CANON_FocusingPoint, PTP_VENDOR_CANON, 0, N_("Invalid")}, + {PTP_DPC_CANON_FocusingPoint, PTP_VENDOR_CANON, 0x1000, N_("Focusing Point on Center Only, Manual")}, + {PTP_DPC_CANON_FocusingPoint, PTP_VENDOR_CANON, 0x1001, N_("Focusing Point on Center Only, Auto")}, + {PTP_DPC_CANON_FocusingPoint, PTP_VENDOR_CANON, 0x3000, N_("Multiple Focusing Points (No Specification), Manual")}, + {PTP_DPC_CANON_FocusingPoint, PTP_VENDOR_CANON, 0x3001, N_("Multiple Focusing Points, Auto")}, + {PTP_DPC_CANON_FocusingPoint, PTP_VENDOR_CANON, 0x3002, N_("Multiple Focusing Points (Right)")}, + {PTP_DPC_CANON_FocusingPoint, PTP_VENDOR_CANON, 0x3003, N_("Multiple Focusing Points (Center)")}, + {PTP_DPC_CANON_FocusingPoint, PTP_VENDOR_CANON, 0x3004, N_("Multiple Focusing Points (Left)")}, + + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 0, N_("Auto")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 1, N_("Daylight")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 2, N_("Cloudy")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 3, N_("Tungsten")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 4, N_("Fluorescent")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 6, N_("Preset")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 7, N_("Fluorescent H")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 9, N_("Color Temperature")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 10, N_("Custom Whitebalance PC-1")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 11, N_("Custom Whitebalance PC-2")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 12, N_("Custom Whitebalance PC-3")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 13, N_("Missing Number")}, + {PTP_DPC_CANON_WhiteBalance, PTP_VENDOR_CANON, 14, N_("Fluorescent H")}, /* dup? */ + + {PTP_DPC_CANON_SlowShutterSetting, PTP_VENDOR_CANON, 0, N_("Off")}, + {PTP_DPC_CANON_SlowShutterSetting, PTP_VENDOR_CANON, 1, N_("Night View")}, + {PTP_DPC_CANON_SlowShutterSetting, PTP_VENDOR_CANON, 2, N_("On")}, + {PTP_DPC_CANON_SlowShutterSetting, PTP_VENDOR_CANON, 3, N_("Low-speed shutter function not available")}, + + {PTP_DPC_CANON_AFMode, PTP_VENDOR_CANON, 0, N_("Single Shot")}, + {PTP_DPC_CANON_AFMode, PTP_VENDOR_CANON, 1, N_("AI Servo")}, + {PTP_DPC_CANON_AFMode, PTP_VENDOR_CANON, 2, N_("AI Focus")}, + {PTP_DPC_CANON_AFMode, PTP_VENDOR_CANON, 3, N_("Manual")}, + {PTP_DPC_CANON_AFMode, PTP_VENDOR_CANON, 4, N_("Continuous")}, + + PTP_VENDOR_VAL_BOOL(PTP_DPC_CANON_ImageStabilization,PTP_VENDOR_CANON), + + {PTP_DPC_CANON_Contrast, PTP_VENDOR_CANON, -2, N_("Low 2")}, + {PTP_DPC_CANON_Contrast, PTP_VENDOR_CANON, -1, N_("Low")}, + {PTP_DPC_CANON_Contrast, PTP_VENDOR_CANON, 0, N_("Standard")}, + {PTP_DPC_CANON_Contrast, PTP_VENDOR_CANON, 1, N_("High")}, + {PTP_DPC_CANON_Contrast, PTP_VENDOR_CANON, 2, N_("High 2")}, + + {PTP_DPC_CANON_ColorGain, PTP_VENDOR_CANON, -2, N_("Low 2")}, + {PTP_DPC_CANON_ColorGain, PTP_VENDOR_CANON, -1, N_("Low")}, + {PTP_DPC_CANON_ColorGain, PTP_VENDOR_CANON, 0, N_("Standard")}, + {PTP_DPC_CANON_ColorGain, PTP_VENDOR_CANON, 1, N_("High")}, + {PTP_DPC_CANON_ColorGain, PTP_VENDOR_CANON, 2, N_("High 2")}, + + {PTP_DPC_CANON_Sharpness, PTP_VENDOR_CANON, -2, N_("Low 2")}, + {PTP_DPC_CANON_Sharpness, PTP_VENDOR_CANON, -1, N_("Low")}, + {PTP_DPC_CANON_Sharpness, PTP_VENDOR_CANON, 0, N_("Standard")}, + {PTP_DPC_CANON_Sharpness, PTP_VENDOR_CANON, 1, N_("High")}, + {PTP_DPC_CANON_Sharpness, PTP_VENDOR_CANON, 2, N_("High 2")}, + + {PTP_DPC_CANON_Sensitivity, PTP_VENDOR_CANON, 0, N_("Standard")}, + {PTP_DPC_CANON_Sensitivity, PTP_VENDOR_CANON, 1, N_("Upper 1")}, + {PTP_DPC_CANON_Sensitivity, PTP_VENDOR_CANON, 2, N_("Upper 2")}, + + {PTP_DPC_CANON_ParameterSet, PTP_VENDOR_CANON, 0x08, N_("Standard Development Parameters")}, + {PTP_DPC_CANON_ParameterSet, PTP_VENDOR_CANON, 0x10, N_("Development Parameters 1")}, + {PTP_DPC_CANON_ParameterSet, PTP_VENDOR_CANON, 0x20, N_("Development Parameters 2")}, + {PTP_DPC_CANON_ParameterSet, PTP_VENDOR_CANON, 0x40, N_("Development Parameters 3")}, + + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x00, N_("Auto")}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x28, "6"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x30, "12"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x38, "25"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x40, "50"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x43, "64"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x48, "100"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x50, "200"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x58, "400"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x60, "800"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x68, "1600"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x70, "3200"}, + {PTP_DPC_CANON_ISOSpeed, PTP_VENDOR_CANON, 0x78, "6400"}, + + /* 0xd01d - PTP_DPC_CANON_Aperture */ + /* 0xd01e - PTP_DPC_CANON_ShutterSpeed */ + /* 0xd01f - PTP_DPC_CANON_ExpCompensation */ + /* 0xd020 - PTP_DPC_CANON_FlashCompensation */ + /* 0xd021 - PTP_DPC_CANON_AEBExposureCompensation */ + /* 0xd023 - PTP_DPC_CANON_AvOpen */ + /* 0xd024 - PTP_DPC_CANON_AvMax */ + + {PTP_DPC_CANON_CameraOutput, PTP_VENDOR_CANON, 0, N_("Undefined")}, + {PTP_DPC_CANON_CameraOutput, PTP_VENDOR_CANON, 1, N_("LCD")}, + {PTP_DPC_CANON_CameraOutput, PTP_VENDOR_CANON, 2, N_("Video OUT")}, + {PTP_DPC_CANON_CameraOutput, PTP_VENDOR_CANON, 3, N_("Off")}, + + {PTP_DPC_CANON_MlSpotPos, PTP_VENDOR_CANON, 0, N_("MlSpotPosCenter")}, + {PTP_DPC_CANON_MlSpotPos, PTP_VENDOR_CANON, 1, N_("MlSpotPosAfLink")}, + + {PTP_DPC_CANON_PhotoEffect, PTP_VENDOR_CANON, 0, N_("Off")}, + {PTP_DPC_CANON_PhotoEffect, PTP_VENDOR_CANON, 1, N_("Vivid")}, + {PTP_DPC_CANON_PhotoEffect, PTP_VENDOR_CANON, 2, N_("Neutral")}, + {PTP_DPC_CANON_PhotoEffect, PTP_VENDOR_CANON, 3, N_("Soft")}, + {PTP_DPC_CANON_PhotoEffect, PTP_VENDOR_CANON, 4, N_("Sepia")}, + {PTP_DPC_CANON_PhotoEffect, PTP_VENDOR_CANON, 5, N_("Monochrome")}, + + {0, 0, 0, NULL} + }; + for (i=0; ptp_value_trans[i].dpc!=0; i++) { + if ((ptp_value_trans[i].dpc == dpc) && + (((ptp_value_trans[i].dpc & 0xf000) == 0x5000) || + (ptp_value_trans[i].vendor == params->deviceinfo.VendorExtensionID)) + ) { + double value = _value_to_num(&(dpd->CurrentValue), dpd->DataType); + + return snprintf(out, length, + _(ptp_value_trans[i].format), + value * ptp_value_trans[i].coef + + ptp_value_trans[i].bias); + } + } + + kval = _value_to_num(&(dpd->CurrentValue), dpd->DataType); + for (i=0; ptp_value_list[i].dpc!=0; i++) { + if ((ptp_value_list[i].dpc == dpc) && + (((ptp_value_list[i].dpc & 0xf000) == 0x5000) || + (ptp_value_list[i].vendor == params->deviceinfo.VendorExtensionID)) && + (ptp_value_list[i].key==kval) + ) { + return snprintf(out, length, "%s", _(ptp_value_list[i].value)); + } + } + if (params->deviceinfo.VendorExtensionID==PTP_VENDOR_MICROSOFT + || params->deviceinfo.VendorExtensionID==PTP_VENDOR_MTP + || params->deviceinfo.VendorExtensionID==PTP_VENDOR_PANASONIC) { + switch (dpc) { + case PTP_DPC_MTP_SynchronizationPartner: + case PTP_DPC_MTP_DeviceFriendlyName: + if (dpd->DataType == PTP_DTC_STR) + return snprintf(out, length, "%s", dpd->CurrentValue.str); + else + return snprintf(out, length, "invalid type, expected STR"); + case PTP_DPC_MTP_SecureTime: + case PTP_DPC_MTP_DeviceCertificate: { + if (dpd->DataType != PTP_DTC_AUINT16) + return snprintf(out, length, "invalid type, expected AUINT16"); + /* FIXME: Convert to use unicode demux functions */ + for (i=0;(iCurrentValue.a.count) && (iCurrentValue.a.v[i].u16; + if ( dpd->CurrentValue.a.count && + (dpd->CurrentValue.a.count < length)) { + out[dpd->CurrentValue.a.count-1] = 0; + return dpd->CurrentValue.a.count-1; + } else { + out[length-1] = 0; + return length; + } + break; + } + default: + break; + } + } + + return 0; +} + +struct { + uint16_t ofc; + const char *format; +} ptp_ofc_trans[] = { + {PTP_OFC_Undefined,"Undefined Type"}, + {PTP_OFC_Defined,"Defined Type"}, + {PTP_OFC_Association,"Association/Directory"}, + {PTP_OFC_Script,"Script"}, + {PTP_OFC_Executable,"Executable"}, + {PTP_OFC_Text,"Text"}, + {PTP_OFC_HTML,"HTML"}, + {PTP_OFC_DPOF,"DPOF"}, + {PTP_OFC_AIFF,"AIFF"}, + {PTP_OFC_WAV,"MS Wave"}, + {PTP_OFC_MP3,"MP3"}, + {PTP_OFC_AVI,"MS AVI"}, + {PTP_OFC_MPEG,"MPEG"}, + {PTP_OFC_ASF,"ASF"}, + {PTP_OFC_QT,"Apple Quicktime"}, + {PTP_OFC_EXIF_JPEG,"JPEG"}, + {PTP_OFC_TIFF_EP,"TIFF EP"}, + {PTP_OFC_FlashPix,"FlashPix"}, + {PTP_OFC_BMP,"BMP"}, + {PTP_OFC_CIFF,"CIFF"}, + {PTP_OFC_GIF,"GIF"}, + {PTP_OFC_JFIF,"JFIF"}, + {PTP_OFC_PCD,"PCD"}, + {PTP_OFC_PICT,"PICT"}, + {PTP_OFC_PNG,"PNG"}, + {PTP_OFC_TIFF,"TIFF"}, + {PTP_OFC_TIFF_IT,"TIFF_IT"}, + {PTP_OFC_JP2,"JP2"}, + {PTP_OFC_JPX,"JPX"}, + {PTP_OFC_DNG,"DNG"}, +}; + +struct { + uint16_t ofc; + const char *format; +} ptp_ofc_mtp_trans[] = { + {PTP_OFC_MTP_MediaCard,N_("Media Card")}, + {PTP_OFC_MTP_MediaCardGroup,N_("Media Card Group")}, + {PTP_OFC_MTP_Encounter,N_("Encounter")}, + {PTP_OFC_MTP_EncounterBox,N_("Encounter Box")}, + {PTP_OFC_MTP_M4A,N_("M4A")}, + {PTP_OFC_MTP_Firmware,N_("Firmware")}, + {PTP_OFC_MTP_WindowsImageFormat,N_("Windows Image Format")}, + {PTP_OFC_MTP_UndefinedAudio,N_("Undefined Audio")}, + {PTP_OFC_MTP_WMA,"WMA"}, + {PTP_OFC_MTP_OGG,"OGG"}, + {PTP_OFC_MTP_AAC,"AAC"}, + {PTP_OFC_MTP_AudibleCodec,N_("Audible.com Codec")}, + {PTP_OFC_MTP_FLAC,"FLAC"}, + {PTP_OFC_MTP_SamsungPlaylist,N_("Samsung Playlist")}, + {PTP_OFC_MTP_UndefinedVideo,N_("Undefined Video")}, + {PTP_OFC_MTP_WMV,"WMV"}, + {PTP_OFC_MTP_MP4,"MP4"}, + {PTP_OFC_MTP_MP2,"MP2"}, + {PTP_OFC_MTP_3GP,"3GP"}, + {PTP_OFC_MTP_UndefinedCollection,N_("Undefined Collection")}, + {PTP_OFC_MTP_AbstractMultimediaAlbum,N_("Abstract Multimedia Album")}, + {PTP_OFC_MTP_AbstractImageAlbum,N_("Abstract Image Album")}, + {PTP_OFC_MTP_AbstractAudioAlbum,N_("Abstract Audio Album")}, + {PTP_OFC_MTP_AbstractVideoAlbum,N_("Abstract Video Album")}, + {PTP_OFC_MTP_AbstractAudioVideoPlaylist,N_("Abstract Audio Video Playlist")}, + {PTP_OFC_MTP_AbstractContactGroup,N_("Abstract Contact Group")}, + {PTP_OFC_MTP_AbstractMessageFolder,N_("Abstract Message Folder")}, + {PTP_OFC_MTP_AbstractChapteredProduction,N_("Abstract Chaptered Production")}, + {PTP_OFC_MTP_AbstractAudioPlaylist,N_("Abstract Audio Playlist")}, + {PTP_OFC_MTP_AbstractVideoPlaylist,N_("Abstract Video Playlist")}, + {PTP_OFC_MTP_AbstractMediacast,N_("Abstract Mediacast")}, + {PTP_OFC_MTP_WPLPlaylist,N_("WPL Playlist")}, + {PTP_OFC_MTP_M3UPlaylist,N_("M3U Playlist")}, + {PTP_OFC_MTP_MPLPlaylist,N_("MPL Playlist")}, + {PTP_OFC_MTP_ASXPlaylist,N_("ASX Playlist")}, + {PTP_OFC_MTP_PLSPlaylist,N_("PLS Playlist")}, + {PTP_OFC_MTP_UndefinedDocument,N_("Undefined Document")}, + {PTP_OFC_MTP_AbstractDocument,N_("Abstract Document")}, + {PTP_OFC_MTP_XMLDocument,N_("XMLDocument")}, + {PTP_OFC_MTP_MSWordDocument,N_("Microsoft Word Document")}, + {PTP_OFC_MTP_MHTCompiledHTMLDocument,N_("MHT Compiled HTML Document")}, + {PTP_OFC_MTP_MSExcelSpreadsheetXLS,N_("Microsoft Excel Spreadsheet (.xls)")}, + {PTP_OFC_MTP_MSPowerpointPresentationPPT,N_("Microsoft Powerpoint (.ppt)")}, + {PTP_OFC_MTP_UndefinedMessage,N_("Undefined Message")}, + {PTP_OFC_MTP_AbstractMessage,N_("Abstract Message")}, + {PTP_OFC_MTP_UndefinedContact,N_("Undefined Contact")}, + {PTP_OFC_MTP_AbstractContact,N_("Abstract Contact")}, + {PTP_OFC_MTP_vCard2,N_("vCard2")}, + {PTP_OFC_MTP_vCard3,N_("vCard3")}, + {PTP_OFC_MTP_UndefinedCalendarItem,N_("Undefined Calendar Item")}, + {PTP_OFC_MTP_AbstractCalendarItem,N_("Abstract Calendar Item")}, + {PTP_OFC_MTP_vCalendar1,N_("vCalendar1")}, + {PTP_OFC_MTP_vCalendar2,N_("vCalendar2")}, + {PTP_OFC_MTP_UndefinedWindowsExecutable,N_("Undefined Windows Executable")}, + {PTP_OFC_MTP_MediaCast,N_("Media Cast")}, + {PTP_OFC_MTP_Section,N_("Section")}, +}; + +int +ptp_render_ofc(PTPParams* params, uint16_t ofc, int spaceleft, char *txt) +{ + unsigned int i; + + if (!(ofc & 0x8000)) { + for (i=0;ideviceinfo.VendorExtensionID) { + case PTP_VENDOR_EASTMAN_KODAK: + switch (ofc) { + case PTP_OFC_EK_M3U: + return snprintf (txt, spaceleft,"M3U"); + default: + break; + } + break; + case PTP_VENDOR_CANON: + switch (ofc) { + case PTP_OFC_CANON_CRW: + return snprintf (txt, spaceleft,"CRW"); + default: + break; + } + break; + case PTP_VENDOR_SONY: + switch (ofc) { + case PTP_OFC_SONY_RAW: + return snprintf (txt, spaceleft,"ARW"); + default: + break; + } + break; + case PTP_VENDOR_MICROSOFT: + case PTP_VENDOR_MTP: + for (i=0;ideviceinfo.VendorExtensionID) { + case PTP_VENDOR_MICROSOFT: + case PTP_VENDOR_PANASONIC: + case PTP_VENDOR_MTP: RETURN_NAME_FROM_TABLE(ptp_opcode_mtp_trans, opcode); + case PTP_VENDOR_NIKON: RETURN_NAME_FROM_TABLE(ptp_opcode_nikon_trans, opcode); + case PTP_VENDOR_CANON: RETURN_NAME_FROM_TABLE(ptp_opcode_canon_trans, opcode); + case PTP_VENDOR_SONY: RETURN_NAME_FROM_TABLE(ptp_opcode_sony_trans, opcode); + case PTP_VENDOR_PARROT: RETURN_NAME_FROM_TABLE(ptp_opcode_parrot_trans, opcode); + default: + break; + } +#undef RETURN_NAME_FROM_TABLE + + return _("Unknown VendorExtensionID"); +} + + +struct { + uint16_t code; + const char *name; +} ptp_event_codes[] = { + {PTP_EC_Undefined, "Undefined"}, + {PTP_EC_CancelTransaction, "CancelTransaction"}, + {PTP_EC_ObjectAdded, "ObjectAdded"}, + {PTP_EC_ObjectRemoved, "ObjectRemoved"}, + {PTP_EC_StoreAdded, "StoreAdded"}, + {PTP_EC_StoreRemoved, "StoreRemoved"}, + {PTP_EC_DevicePropChanged, "DevicePropChanged"}, + {PTP_EC_ObjectInfoChanged, "ObjectInfoChanged"}, + {PTP_EC_DeviceInfoChanged, "DeviceInfoChanged"}, + {PTP_EC_RequestObjectTransfer, "RequestObjectTransfer"}, + {PTP_EC_StoreFull, "StoreFull"}, + {PTP_EC_DeviceReset, "DeviceReset"}, + {PTP_EC_StorageInfoChanged, "StorageInfoChanged"}, + {PTP_EC_CaptureComplete, "CaptureComplete"}, + {PTP_EC_UnreportedStatus, "UnreportedStatus"}, + + {PTP_EC_MTP_ObjectPropChanged, "ObjectPropChanged"}, + {PTP_EC_MTP_ObjectPropDescChanged, "ObjectPropDescChanged"}, + {PTP_EC_MTP_ObjectReferencesChanged, "ObjectReferencesChanged"}, +}; + + +const char* +ptp_get_event_code_name(PTPParams* params, uint16_t event_code) +{ + unsigned int i; + for (i=0; iproperty = PTP_OPC_StorageID; /* Should be "unknown" */ + prop->datatype = PTP_DTC_UNDEF; + prop->ObjectHandle = 0x00000000U; + prop->propval.str = NULL; + + (*props) = newprops; + (*nrofprops)++; + return prop; +} + +void +ptp_destroy_object_prop(MTPProperties *prop) +{ + if (!prop) + return; + + if (prop->datatype == PTP_DTC_STR && prop->propval.str != NULL) + free(prop->propval.str); + else if ((prop->datatype == PTP_DTC_AINT8 || prop->datatype == PTP_DTC_AINT16 || + prop->datatype == PTP_DTC_AINT32 || prop->datatype == PTP_DTC_AINT64 || prop->datatype == PTP_DTC_AINT128 || + prop->datatype == PTP_DTC_AUINT8 || prop->datatype == PTP_DTC_AUINT16 || + prop->datatype == PTP_DTC_AUINT32 || prop->datatype == PTP_DTC_AUINT64 || prop->datatype == PTP_DTC_AUINT128) + && prop->propval.a.v != NULL) + free(prop->propval.a.v); +} + +void +ptp_destroy_object_prop_list(MTPProperties *props, int nrofprops) +{ + int i; + MTPProperties *prop = props; + + for (i=0;imtpprops; + for (i=0;inrofmtpprops;i++) { + if (attribute_id == prop->property) + return prop; + prop++; + } + return NULL; +} + +uint16_t +ptp_remove_object_from_cache(PTPParams *params, uint32_t handle) +{ + unsigned int i; + PTPObject *ob; + + CHECK_PTP_RC(ptp_object_find (params, handle, &ob)); + i = ob-params->objects; + /* remove object from object info cache */ + ptp_free_object (ob); + + if (i < params->nrofobjects-1) + memmove (ob,ob+1,(params->nrofobjects-1-i)*sizeof(PTPObject)); + params->nrofobjects--; + /* We use less memory than before so this shouldn't fail */ + params->objects = realloc(params->objects, sizeof(PTPObject)*params->nrofobjects); + return PTP_RC_OK; +} + +static int _cmp_ob (const void *a, const void *b) +{ + PTPObject *oa = (PTPObject*)a; + PTPObject *ob = (PTPObject*)b; + + /* Do not subtract the oids and return ... + * the unsigned int -> int conversion will overflow in cases + * like 0xfffc0000 vs 0x0004000. */ + if (oa->oid > ob->oid) return 1; + if (oa->oid < ob->oid) return -1; + return 0; +} + +void +ptp_objects_sort (PTPParams *params) +{ + qsort (params->objects, params->nrofobjects, sizeof(PTPObject), _cmp_ob); +} + +/* Binary search in objects. Needs "objects" to be a sorted by objectid list! */ +uint16_t +ptp_object_find (PTPParams *params, uint32_t handle, PTPObject **retob) +{ + PTPObject tmpob; + + tmpob.oid = handle; + *retob = bsearch (&tmpob, params->objects, params->nrofobjects, sizeof(tmpob), _cmp_ob); + if (!*retob) + return PTP_RC_GeneralError; + return PTP_RC_OK; +} + +/* Binary search in objects + insert of not found. Needs "objects" to be a sorted by objectid list! */ +uint16_t +ptp_object_find_or_insert (PTPParams *params, uint32_t handle, PTPObject **retob) +{ + unsigned int begin, end, cursor; + unsigned int insertat; + PTPObject *newobs; + + if (!handle) return PTP_RC_GeneralError; + *retob = NULL; + if (!params->nrofobjects) { + params->objects = calloc(1,sizeof(PTPObject)); + params->nrofobjects = 1; + params->objects[0].oid = handle; + *retob = ¶ms->objects[0]; + return PTP_RC_OK; + } + begin = 0; + end = params->nrofobjects-1; + /*ptp_debug (params, "searching %08x, total=%d", handle, params->nrofobjects);*/ + while (1) { + cursor = (end-begin)/2+begin; + /*ptp_debug (params, "ob %d: %08x [%d-%d]", cursor, params->objects[cursor].oid, begin, end);*/ + if (params->objects[cursor].oid == handle) { + *retob = ¶ms->objects[cursor]; + return PTP_RC_OK; + } + if (params->objects[cursor].oid < handle) + begin = cursor; + else + end = cursor; + if ((end - begin) <= 1) + break; + } + if (params->objects[begin].oid == handle) { + *retob = ¶ms->objects[begin]; + return PTP_RC_OK; + } + if (params->objects[end].oid == handle) { + *retob = ¶ms->objects[end]; + return PTP_RC_OK; + } + if ((begin == 0) && (handle < params->objects[0].oid)) { + insertat=begin; + } else { + if ((end == params->nrofobjects-1) && (handle > params->objects[end].oid)) + insertat=end+1; + else + insertat=begin+1; + } + /*ptp_debug (params, "inserting oid %x at [%x,%x], begin=%d, end=%d, insertat=%d\n", handle, params->objects[begin].oid, params->objects[end].oid, begin, end, insertat);*/ + newobs = realloc (params->objects, sizeof(PTPObject)*(params->nrofobjects+1)); + if (!newobs) return PTP_RC_GeneralError; + params->objects = newobs; + if (insertatnrofobjects) + memmove (¶ms->objects[insertat+1],¶ms->objects[insertat],(params->nrofobjects-insertat)*sizeof(PTPObject)); + memset(¶ms->objects[insertat],0,sizeof(PTPObject)); + params->objects[insertat].oid = handle; + *retob = ¶ms->objects[insertat]; + params->nrofobjects++; + return PTP_RC_OK; +} + +uint16_t +ptp_object_want (PTPParams *params, uint32_t handle, unsigned int want, PTPObject **retob) +{ + uint16_t ret; + PTPObject *ob; + /*Camera *camera = ((PTPData *)params->data)->camera;*/ + + /* If GetObjectInfo is broken, force GetPropList */ + if (params->device_flags & DEVICE_FLAG_PROPLIST_OVERRIDES_OI) + want |= PTPOBJECT_MTPPROPLIST_LOADED; + + *retob = NULL; + if (!handle) { + ptp_debug (params, "ptp_object_want: querying handle 0?\n"); + return PTP_RC_GeneralError; + } + CHECK_PTP_RC(ptp_object_find_or_insert (params, handle, &ob)); + *retob = ob; + /* Do we have all of it already? */ + if ((ob->flags & want) == want) + return PTP_RC_OK; + +#define X (PTPOBJECT_OBJECTINFO_LOADED|PTPOBJECT_STORAGEID_LOADED|PTPOBJECT_PARENTOBJECT_LOADED) + if ((want & X) && ((ob->flags & X) != X)) { + uint32_t saveparent = 0; + + /* One EOS issue, where getobjecthandles(root) returns obs without root flag. */ + if (ob->flags & PTPOBJECT_PARENTOBJECT_LOADED) + saveparent = ob->oi.ParentObject; + + ret = ptp_getobjectinfo (params, handle, &ob->oi); + if (ret != PTP_RC_OK) { + /* kill it from the internal list ... */ + ptp_remove_object_from_cache(params, handle); + return ret; + } + if (!ob->oi.Filename) ob->oi.Filename=strdup(""); + if (ob->flags & PTPOBJECT_PARENTOBJECT_LOADED) { + if (ob->oi.ParentObject != saveparent) + ptp_debug (params, "saved parent %08x is not the same as read via getobjectinfo %08x", ob->oi.ParentObject, saveparent); + ob->oi.ParentObject = saveparent; + } + + /* Second EOS issue, 0x20000000 has 0x20000000 as parent */ + if (ob->oi.ParentObject == handle) + ob->oi.ParentObject = 0; + + /* Apple iOS X does that for the root folder. */ + if (ob->oi.ParentObject == ob->oi.StorageID) { + ptp_debug (params, "parent %08x of %s has same id as storage id. rewriting to 0.", ob->oi.ParentObject, ob->oi.Filename); + ob->oi.ParentObject = 0; + } + + /* Read out the canon special flags */ + if ((params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ptp_operation_issupported(params,PTP_OC_CANON_GetObjectInfoEx)) { + PTPCANONFolderEntry *ents = NULL; + uint32_t numents = 0; + + ret = ptp_canon_getobjectinfo(params, + ob->oi.StorageID,0, + ob->oi.ParentObject,handle, + &ents,&numents + ); + if ((ret == PTP_RC_OK) && (numents >= 1)) + ob->canon_flags = ents[0].Flags; + free (ents); + } + + ob->flags |= X; + } +#undef X + if ( (want & PTPOBJECT_MTPPROPLIST_LOADED) && + (!(ob->flags & PTPOBJECT_MTPPROPLIST_LOADED)) + ) { + int nrofprops = 0; + MTPProperties *props = NULL; + + if (params->device_flags & DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST) { + want &= ~PTPOBJECT_MTPPROPLIST_LOADED; + goto fallback; + } + /* Microsoft/MTP has fast directory retrieval. */ + if (!ptp_operation_issupported(params,PTP_OC_MTP_GetObjPropList)) { + want &= ~PTPOBJECT_MTPPROPLIST_LOADED; + goto fallback; + } + + ptp_debug (params, "ptp2/mtpfast: reading mtp proplist of %08x", handle); + /* We just want this one object, not all at once. */ + ret = ptp_mtp_getobjectproplist_single (params, handle, &props, &nrofprops); + if (ret != PTP_RC_OK) + goto fallback; + ob->mtpprops = props; + ob->nrofmtpprops = nrofprops; + + /* Override the ObjectInfo data with data from properties */ + if (params->device_flags & DEVICE_FLAG_PROPLIST_OVERRIDES_OI) { + unsigned int i; + MTPProperties *prop = ob->mtpprops; + + for (i=0;inrofmtpprops;i++,prop++) { + /* in case we got all subtree objects */ + if (prop->ObjectHandle != handle) continue; + + switch (prop->property) { + case PTP_OPC_StorageID: + ob->oi.StorageID = prop->propval.u32; + break; + case PTP_OPC_ObjectFormat: + ob->oi.ObjectFormat = prop->propval.u16; + break; + case PTP_OPC_ProtectionStatus: + ob->oi.ProtectionStatus = prop->propval.u16; + break; + case PTP_OPC_ObjectSize: + if (prop->datatype == PTP_DTC_UINT64) { + ob->oi.ObjectCompressedSize = prop->propval.u64; + } else if (prop->datatype == PTP_DTC_UINT32) { + ob->oi.ObjectCompressedSize = prop->propval.u32; + } + break; + case PTP_OPC_AssociationType: + ob->oi.AssociationType = prop->propval.u16; + break; + case PTP_OPC_AssociationDesc: + ob->oi.AssociationDesc = prop->propval.u32; + break; + case PTP_OPC_ObjectFileName: + if (prop->propval.str) { + free(ob->oi.Filename); + ob->oi.Filename = strdup(prop->propval.str); + } + break; + case PTP_OPC_DateCreated: + ob->oi.CaptureDate = ptp_unpack_PTPTIME(prop->propval.str); + break; + case PTP_OPC_DateModified: + ob->oi.ModificationDate = ptp_unpack_PTPTIME(prop->propval.str); + break; + case PTP_OPC_Keywords: + if (prop->propval.str) { + free(ob->oi.Keywords); + ob->oi.Keywords = strdup(prop->propval.str); + } + break; + case PTP_OPC_ParentObject: + ob->oi.ParentObject = prop->propval.u32; + break; + } + } + } + +#if 0 + MTPProperties *xpl; + int j; + PTPObjectInfo oinfo; + + memset (&oinfo,0,sizeof(oinfo)); + /* hmm, not necessary ... only if we would use it */ + for (j=0;jproperty) { + case PTP_OPC_ParentObject: + if (xpl->datatype != PTP_DTC_UINT32) { + ptp_debug (params, "ptp2/mtpfast: parentobject has type 0x%x???", xpl->datatype); + break; + } + oinfo.ParentObject = xpl->propval.u32; + ptp_debug (params, "ptp2/mtpfast: parent 0x%x", xpl->propval.u32); + break; + case PTP_OPC_ObjectFormat: + if (xpl->datatype != PTP_DTC_UINT16) { + ptp_debug (params, "ptp2/mtpfast: objectformat has type 0x%x???", xpl->datatype); + break; + } + oinfo.ObjectFormat = xpl->propval.u16; + ptp_debug (params, "ptp2/mtpfast: ofc 0x%x", xpl->propval.u16); + break; + case PTP_OPC_ObjectSize: + switch (xpl->datatype) { + case PTP_DTC_UINT32: + oinfo.ObjectCompressedSize = xpl->propval.u32; + break; + case PTP_DTC_UINT64: + oinfo.ObjectCompressedSize = xpl->propval.u64; + break; + default: + ptp_debug (params, "ptp2/mtpfast: objectsize has type 0x%x???", xpl->datatype); + break; + } + ptp_debug (params, "ptp2/mtpfast: objectsize %u", xpl->propval.u32); + break; + case PTP_OPC_StorageID: + if (xpl->datatype != PTP_DTC_UINT32) { + ptp_debug (params, "ptp2/mtpfast: storageid has type 0x%x???", xpl->datatype); + break; + } + oinfo.StorageID = xpl->propval.u32; + ptp_debug (params, "ptp2/mtpfast: storageid 0x%x", xpl->propval.u32); + break; + case PTP_OPC_ProtectionStatus:/*UINT16*/ + if (xpl->datatype != PTP_DTC_UINT16) { + ptp_debug (params, "ptp2/mtpfast: protectionstatus has type 0x%x???", xpl->datatype); + break; + } + oinfo.ProtectionStatus = xpl->propval.u16; + ptp_debug (params, "ptp2/mtpfast: protection 0x%x", xpl->propval.u16); + break; + case PTP_OPC_ObjectFileName: + if (xpl->datatype != PTP_DTC_STR) { + ptp_debug (params, "ptp2/mtpfast: filename has type 0x%x???", xpl->datatype); + break; + } + if (xpl->propval.str) { + ptp_debug (params, "ptp2/mtpfast: filename %s", xpl->propval.str); + oinfo.Filename = strdup(xpl->propval.str); + } else { + oinfo.Filename = NULL; + } + break; + case PTP_OPC_DateCreated: + if (xpl->datatype != PTP_DTC_STR) { + ptp_debug (params, "ptp2/mtpfast: datecreated has type 0x%x???", xpl->datatype); + break; + } + ptp_debug (params, "ptp2/mtpfast: capturedate %s", xpl->propval.str); + oinfo.CaptureDate = ptp_unpack_PTPTIME (xpl->propval.str); + break; + case PTP_OPC_DateModified: + if (xpl->datatype != PTP_DTC_STR) { + ptp_debug (params, "ptp2/mtpfast: datemodified has type 0x%x???", xpl->datatype); + break; + } + ptp_debug (params, "ptp2/mtpfast: moddate %s", xpl->propval.str); + oinfo.ModificationDate = ptp_unpack_PTPTIME (xpl->propval.str); + break; + default: + if ((xpl->property & 0xfff0) == 0xdc00) + ptp_debug (params, "ptp2/mtpfast:case %x type %x unhandled", xpl->property, xpl->datatype); + break; + } + } + if (!oinfo.Filename) + /* i have one such file on my Creative */ + oinfo.Filename = strdup(""); +#endif + ob->flags |= PTPOBJECT_MTPPROPLIST_LOADED; +fallback: ; + } + if ((ob->flags & want) == want) + return PTP_RC_OK; + ptp_debug (params, "ptp_object_want: oid 0x%08x, want flags %x, have only %x?", handle, want, ob->flags); + return PTP_RC_GeneralError; +} + + +uint16_t +ptp_add_object_to_cache(PTPParams *params, uint32_t handle) +{ + PTPObject *ob; + return ptp_object_want (params, handle, PTPOBJECT_OBJECTINFO_LOADED|PTPOBJECT_MTPPROPLIST_LOADED, &ob); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp.h new file mode 100644 index 00000000..bfda8770 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptp.h @@ -0,0 +1,3851 @@ +/* ptp.h + * + * Copyright (C) 2001 Mariusz Woloszyn + * Copyright (C) 2003-2019 Marcus Meissner + * Copyright (C) 2006-2008 Linus Walleij + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __PTP_H__ +#define __PTP_H__ + +#include +#include +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) +#include +#endif +#include "gphoto2-endian.h" +#include "device-flags.h" + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* PTP datalayer byteorder */ + +#define PTP_DL_BE 0xF0 +#define PTP_DL_LE 0x0F + +/* USB interface class */ +#ifndef USB_CLASS_PTP +#define USB_CLASS_PTP 6 +#endif + +/* PTP request/response/event general PTP container (transport independent) */ + +struct _PTPContainer { + uint16_t Code; + uint32_t SessionID; + uint32_t Transaction_ID; + /* params may be of any type of size less or equal to uint32_t */ + uint32_t Param1; + uint32_t Param2; + uint32_t Param3; + /* events can only have three parameters */ + uint32_t Param4; + uint32_t Param5; + /* the number of meaningfull parameters */ + uint8_t Nparam; +}; +typedef struct _PTPContainer PTPContainer; + +/* PTP USB Bulk-Pipe container */ +/* USB bulk max packet length for high speed endpoints */ +/* The max packet is set to 512 bytes. The spec says + * "end of data transfers are signaled by short packets or NULL + * packets". It never says anything about 512, but current + * implementations seem to have chosen this value, which also + * happens to be the size of an USB 2.0 HS endpoint, even though + * this is not necessary. + * + * Previously we had this as 4096 for MTP devices. We have found + * and fixed the bugs that made this necessary and it can be 512 again. + * + * USB 3.0 has now 1024 byte EPs. + */ +#define PTP_USB_BULK_HS_MAX_PACKET_LEN_WRITE 512 +#define PTP_USB_BULK_HS_MAX_PACKET_LEN_READ 512 +#define PTP_USB_BULK_SS_MAX_PACKET_LEN_WRITE 1024 +#define PTP_USB_BULK_SS_MAX_PACKET_LEN_READ 1024 +#define PTP_USB_BULK_HDR_LEN (2*sizeof(uint32_t)+2*sizeof(uint16_t)) +#define PTP_USB_BULK_PAYLOAD_LEN_WRITE (PTP_USB_BULK_SS_MAX_PACKET_LEN_WRITE-PTP_USB_BULK_HDR_LEN) +#define PTP_USB_BULK_PAYLOAD_LEN_READ (PTP_USB_BULK_SS_MAX_PACKET_LEN_READ-PTP_USB_BULK_HDR_LEN) +#define PTP_USB_BULK_REQ_LEN (PTP_USB_BULK_HDR_LEN+5*sizeof(uint32_t)) + +struct _PTPUSBBulkContainer { + uint32_t length; + uint16_t type; + uint16_t code; + uint32_t trans_id; + union { + struct { + uint32_t param1; + uint32_t param2; + uint32_t param3; + uint32_t param4; + uint32_t param5; + } params; + /* this must be set to the maximum of PTP_USB_BULK_PAYLOAD_LEN_WRITE + * and PTP_USB_BULK_PAYLOAD_LEN_READ */ + unsigned char data[PTP_USB_BULK_PAYLOAD_LEN_READ]; + } payload; +}; +typedef struct _PTPUSBBulkContainer PTPUSBBulkContainer; + +/* PTP USB Asynchronous Event Interrupt Data Format */ +struct _PTPUSBEventContainer { + uint32_t length; + uint16_t type; + uint16_t code; + uint32_t trans_id; + uint32_t param1; + uint32_t param2; + uint32_t param3; +}; +typedef struct _PTPUSBEventContainer PTPUSBEventContainer; + +struct _PTPCanon_directtransfer_entry { + uint32_t oid; + char *str; +}; +typedef struct _PTPCanon_directtransfer_entry PTPCanon_directtransfer_entry; + +/* USB container types */ + +#define PTP_USB_CONTAINER_UNDEFINED 0x0000 +#define PTP_USB_CONTAINER_COMMAND 0x0001 +#define PTP_USB_CONTAINER_DATA 0x0002 +#define PTP_USB_CONTAINER_RESPONSE 0x0003 +#define PTP_USB_CONTAINER_EVENT 0x0004 + +/* PTP/IP definitions */ +#define PTPIP_INIT_COMMAND_REQUEST 1 +#define PTPIP_INIT_COMMAND_ACK 2 +#define PTPIP_INIT_EVENT_REQUEST 3 +#define PTPIP_INIT_EVENT_ACK 4 +#define PTPIP_INIT_FAIL 5 +#define PTPIP_CMD_REQUEST 6 +#define PTPIP_CMD_RESPONSE 7 +#define PTPIP_EVENT 8 +#define PTPIP_START_DATA_PACKET 9 +#define PTPIP_DATA_PACKET 10 +#define PTPIP_CANCEL_TRANSACTION 11 +#define PTPIP_END_DATA_PACKET 12 +#define PTPIP_PING 13 +#define PTPIP_PONG 14 + +struct _PTPIPHeader { + uint32_t length; + uint32_t type; +}; +typedef struct _PTPIPHeader PTPIPHeader; + +/* Vendor IDs */ +/* List is linked from here: http://www.imaging.org/site/IST/Standards/PTP_Standards.aspx */ +#define PTP_VENDOR_EASTMAN_KODAK 0x00000001 +#define PTP_VENDOR_SEIKO_EPSON 0x00000002 +#define PTP_VENDOR_AGILENT 0x00000003 +#define PTP_VENDOR_POLAROID 0x00000004 +#define PTP_VENDOR_AGFA_GEVAERT 0x00000005 +#define PTP_VENDOR_MICROSOFT 0x00000006 +#define PTP_VENDOR_EQUINOX 0x00000007 +#define PTP_VENDOR_VIEWQUEST 0x00000008 +#define PTP_VENDOR_STMICROELECTRONICS 0x00000009 +#define PTP_VENDOR_NIKON 0x0000000A +#define PTP_VENDOR_CANON 0x0000000B +#define PTP_VENDOR_FOTONATION 0x0000000C +#define PTP_VENDOR_PENTAX 0x0000000D +#define PTP_VENDOR_FUJI 0x0000000E +#define PTP_VENDOR_NDD_MEDICAL_TECHNOLOGIES 0x00000012 +#define PTP_VENDOR_SAMSUNG 0x0000001a +#define PTP_VENDOR_PARROT 0x0000001b +#define PTP_VENDOR_PANASONIC 0x0000001c +/* not from standards papers, but from traces: */ +#define PTP_VENDOR_SONY 0x00000011 /* observed in the A900 */ + +/* Vendor extension ID used for MTP (occasionaly, usualy 6 is used) */ +#define PTP_VENDOR_MTP 0xffffffff + +/* gphoto overrides */ +#define PTP_VENDOR_GP_OLYMPUS 0x0000fffe +#define PTP_VENDOR_GP_OLYMPUS_OMD 0x0000fffd + + +/* Operation Codes */ + +/* PTP v1.0 operation codes */ +#define PTP_OC_Undefined 0x1000 +#define PTP_OC_GetDeviceInfo 0x1001 +#define PTP_OC_OpenSession 0x1002 +#define PTP_OC_CloseSession 0x1003 +#define PTP_OC_GetStorageIDs 0x1004 +#define PTP_OC_GetStorageInfo 0x1005 +#define PTP_OC_GetNumObjects 0x1006 +#define PTP_OC_GetObjectHandles 0x1007 +#define PTP_OC_GetObjectInfo 0x1008 +#define PTP_OC_GetObject 0x1009 +#define PTP_OC_GetThumb 0x100A +#define PTP_OC_DeleteObject 0x100B +#define PTP_OC_SendObjectInfo 0x100C +#define PTP_OC_SendObject 0x100D +#define PTP_OC_InitiateCapture 0x100E +#define PTP_OC_FormatStore 0x100F +#define PTP_OC_ResetDevice 0x1010 +#define PTP_OC_SelfTest 0x1011 +#define PTP_OC_SetObjectProtection 0x1012 +#define PTP_OC_PowerDown 0x1013 +#define PTP_OC_GetDevicePropDesc 0x1014 +#define PTP_OC_GetDevicePropValue 0x1015 +#define PTP_OC_SetDevicePropValue 0x1016 +#define PTP_OC_ResetDevicePropValue 0x1017 +#define PTP_OC_TerminateOpenCapture 0x1018 +#define PTP_OC_MoveObject 0x1019 +#define PTP_OC_CopyObject 0x101A +#define PTP_OC_GetPartialObject 0x101B +#define PTP_OC_InitiateOpenCapture 0x101C +/* PTP v1.1 operation codes */ +#define PTP_OC_StartEnumHandles 0x101D +#define PTP_OC_EnumHandles 0x101E +#define PTP_OC_StopEnumHandles 0x101F +#define PTP_OC_GetVendorExtensionMaps 0x1020 +#define PTP_OC_GetVendorDeviceInfo 0x1021 +#define PTP_OC_GetResizedImageObject 0x1022 +#define PTP_OC_GetFilesystemManifest 0x1023 +#define PTP_OC_GetStreamInfo 0x1024 +#define PTP_OC_GetStream 0x1025 + +/* Eastman Kodak extension Operation Codes */ +#define PTP_OC_EK_GetSerial 0x9003 +#define PTP_OC_EK_SetSerial 0x9004 +#define PTP_OC_EK_SendFileObjectInfo 0x9005 +#define PTP_OC_EK_SendFileObject 0x9006 +#define PTP_OC_EK_SetText 0x9008 + +/* Canon extension Operation Codes */ +#define PTP_OC_CANON_GetPartialObjectInfo 0x9001 +/* 9002 - sends 2 uint32, nothing back */ +#define PTP_OC_CANON_SetObjectArchive 0x9002 +#define PTP_OC_CANON_KeepDeviceOn 0x9003 +#define PTP_OC_CANON_LockDeviceUI 0x9004 +#define PTP_OC_CANON_UnlockDeviceUI 0x9005 +#define PTP_OC_CANON_GetObjectHandleByName 0x9006 +/* no 9007 observed yet */ +#define PTP_OC_CANON_InitiateReleaseControl 0x9008 +#define PTP_OC_CANON_TerminateReleaseControl 0x9009 +#define PTP_OC_CANON_TerminatePlaybackMode 0x900A +#define PTP_OC_CANON_ViewfinderOn 0x900B +#define PTP_OC_CANON_ViewfinderOff 0x900C +#define PTP_OC_CANON_DoAeAfAwb 0x900D + +/* 900e - send nothing, gets 5 uint16t in 32bit entities back in 20byte datablob */ +#define PTP_OC_CANON_GetCustomizeSpec 0x900E +#define PTP_OC_CANON_GetCustomizeItemInfo 0x900F +#define PTP_OC_CANON_GetCustomizeData 0x9010 +#define PTP_OC_CANON_SetCustomizeData 0x9011 +#define PTP_OC_CANON_GetCaptureStatus 0x9012 +#define PTP_OC_CANON_CheckEvent 0x9013 +#define PTP_OC_CANON_FocusLock 0x9014 +#define PTP_OC_CANON_FocusUnlock 0x9015 +#define PTP_OC_CANON_GetLocalReleaseParam 0x9016 +#define PTP_OC_CANON_SetLocalReleaseParam 0x9017 +#define PTP_OC_CANON_AskAboutPcEvf 0x9018 +#define PTP_OC_CANON_SendPartialObject 0x9019 +#define PTP_OC_CANON_InitiateCaptureInMemory 0x901A +#define PTP_OC_CANON_GetPartialObjectEx 0x901B +#define PTP_OC_CANON_SetObjectTime 0x901C +#define PTP_OC_CANON_GetViewfinderImage 0x901D +#define PTP_OC_CANON_GetObjectAttributes 0x901E +#define PTP_OC_CANON_ChangeUSBProtocol 0x901F +#define PTP_OC_CANON_GetChanges 0x9020 +#define PTP_OC_CANON_GetObjectInfoEx 0x9021 +#define PTP_OC_CANON_InitiateDirectTransfer 0x9022 +#define PTP_OC_CANON_TerminateDirectTransfer 0x9023 +#define PTP_OC_CANON_SendObjectInfoByPath 0x9024 +#define PTP_OC_CANON_SendObjectByPath 0x9025 +#define PTP_OC_CANON_InitiateDirectTansferEx 0x9026 +#define PTP_OC_CANON_GetAncillaryObjectHandles 0x9027 +#define PTP_OC_CANON_GetTreeInfo 0x9028 +#define PTP_OC_CANON_GetTreeSize 0x9029 +#define PTP_OC_CANON_NotifyProgress 0x902A +#define PTP_OC_CANON_NotifyCancelAccepted 0x902B +/* 902c: no parms, read 3 uint32 in data, no response parms */ +#define PTP_OC_CANON_902C 0x902C +#define PTP_OC_CANON_GetDirectory 0x902D +#define PTP_OC_CANON_902E 0x902E +#define PTP_OC_CANON_902F 0x902F /* used during camera init */ + +#define PTP_OC_CANON_SetPairingInfo 0x9030 +#define PTP_OC_CANON_GetPairingInfo 0x9031 +#define PTP_OC_CANON_DeletePairingInfo 0x9032 +#define PTP_OC_CANON_GetMACAddress 0x9033 /* no args */ +/* +0000 12 00 00 00 02 00 33 90-1a 00 00 00 2c 9e fc c8 ......3.....,... +0010 33 e3 - 3. + */ + +/* 9034: 1 param, no parms returned */ +#define PTP_OC_CANON_SetDisplayMonitor 0x9034 +#define PTP_OC_CANON_PairingComplete 0x9035 +#define PTP_OC_CANON_GetWirelessMAXChannel 0x9036 + +#define PTP_OC_CANON_GetWebServiceSpec 0x9068 /* no args */ +/* data returned: +0000 1e 00 00 00 02 00 68 90-1a 00 00 00 00 01 08 00 ......h......... +0010 14 00 bc ce 00 00 78 00-78 00 00 14 00 00 ......x.x..... +*/ + +#define PTP_OC_CANON_GetWebServiceData 0x9069 /* no args */ +#define PTP_OC_CANON_SetWebServiceData 0x906A +#define PTP_OC_CANON_DeleteWebServiceData 0x906B +#define PTP_OC_CANON_GetRootCertificateSpec 0x906C /* no args */ +/* +0000 12 00 00 00 02 00 6c 90-1a 00 00 00 00 01 6c 30 ......l.......l0 +0010 00 00 - .. +*/ +#define PTP_OC_CANON_GetRootCertificateData 0x906D /* no args */ +/* empty data on test */ +#define PTP_OC_CANON_SetRootCertificateData 0x906F +#define PTP_OC_CANON_GetGpsMobilelinkObjectInfo 0x9075 /* 2 args: utcstart, utcend */ +#define PTP_OC_CANON_SendGpsTagInfo 0x9076 /* 1 arg: oid */ +#define PTP_OC_CANON_GetTranscodeApproxSize 0x9077 /* 1 arg: oid? */ +#define PTP_OC_CANON_RequestTranscodeStart 0x9078 /* 1 arg: oid? */ +#define PTP_OC_CANON_RequestTranscodeCancel 0x9079 /* 1 arg: oid? */ + +#define PTP_OC_CANON_SetRemoteShootingMode 0x9086 + +/* 9101: no args, 8 byte data (01 00 00 00 00 00 00 00), no resp data. */ +#define PTP_OC_CANON_EOS_GetStorageIDs 0x9101 +/* 9102: 1 arg (0) + * 0x28 bytes of data: + 00000000: 34 00 00 00 02 00 02 91 0a 00 00 00 04 00 03 00 + 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00000020: 00 00 ff ff ff ff 03 43 00 46 00 00 00 03 41 00 + 00000030: 3a 00 00 00 + * no resp args + */ +#define PTP_OC_CANON_EOS_GetStorageInfo 0x9102 +#define PTP_OC_CANON_EOS_GetObjectInfo 0x9103 +#define PTP_OC_CANON_EOS_GetObject 0x9104 +#define PTP_OC_CANON_EOS_DeleteObject 0x9105 +#define PTP_OC_CANON_EOS_FormatStore 0x9106 +#define PTP_OC_CANON_EOS_GetPartialObject 0x9107 +#define PTP_OC_CANON_EOS_GetDeviceInfoEx 0x9108 + +/* sample1: + * 3 cmdargs: 1,0xffffffff,00 00 10 00; + * data: + 00000000: 48 00 00 00 02 00 09 91 12 00 00 00 01 00 00 00 + 00000010: 38 00 00 00 00 00 00 30 01 00 00 00 01 30 00 00 + 00000020: 01 00 00 00 10 00 00 00 00 00 00 00 00 00 00 20 + 00000030: 00 00 00 30 44 43 49 4d 00 00 00 00 00 00 00 00 DCIM + 00000040: 00 00 00 00 cc c3 01 46 + * 2 respargs: 0x0, 0x3c + * + * sample2: + * + 00000000: 18 00 00 00 01 00 09 91 15 00 00 00 01 00 00 00 + 00000010: 00 00 00 30 00 00 10 00 + + 00000000: 48 00 00 00 02 00 09 91 15 00 00 00 01 00 00 00 + 00000010: 38 00 00 00 00 00 9c 33 01 00 00 00 01 30 00 00 + 00000020: 01 00 00 00 10 00 00 00 00 00 00 00 00 00 00 30 + 00000030: 00 00 9c 33 32 33 31 43 41 4e 4f 4e 00 00 00 00 231CANON + 00000040: 00 00 00 00 cc c3 01 46 + + */ +#define PTP_OC_CANON_EOS_GetObjectInfoEx 0x9109 +#define PTP_OC_CANON_EOS_GetThumbEx 0x910A +#define PTP_OC_CANON_EOS_SendPartialObject 0x910B +#define PTP_OC_CANON_EOS_SetObjectAttributes 0x910C +#define PTP_OC_CANON_EOS_GetObjectTime 0x910D +#define PTP_OC_CANON_EOS_SetObjectTime 0x910E + +/* 910f: no args, no data, 1 response arg (0). */ +#define PTP_OC_CANON_EOS_RemoteRelease 0x910F +/* Marcus: looks more like "Set DeviceProperty" in the trace. + * + * no cmd args + * data phase (0xc, 0xd11c, 0x1) + * no resp args + */ +#define PTP_OC_CANON_EOS_SetDevicePropValueEx 0x9110 +#define PTP_OC_CANON_EOS_GetRemoteMode 0x9113 +/* 9114: 1 arg (0x1), no data, no resp data. */ +#define PTP_OC_CANON_EOS_SetRemoteMode 0x9114 +/* 9115: 1 arg (0x1), no data, no resp data. */ +#define PTP_OC_CANON_EOS_SetEventMode 0x9115 +/* 9116: no args, data phase, no resp data. */ +#define PTP_OC_CANON_EOS_GetEvent 0x9116 +#define PTP_OC_CANON_EOS_TransferComplete 0x9117 +#define PTP_OC_CANON_EOS_CancelTransfer 0x9118 +#define PTP_OC_CANON_EOS_ResetTransfer 0x9119 + +/* 911a: 3 args (0xfffffff7, 0x00001000, 0x00000001), no data, no resp data. */ +/* 911a: 3 args (0x001dfc60, 0x00001000, 0x00000001), no data, no resp data. */ +#define PTP_OC_CANON_EOS_PCHDDCapacity 0x911A + +/* 911b: no cmd args, no data, no resp args */ +#define PTP_OC_CANON_EOS_SetUILock 0x911B +/* 911c: no cmd args, no data, no resp args */ +#define PTP_OC_CANON_EOS_ResetUILock 0x911C +#define PTP_OC_CANON_EOS_KeepDeviceOn 0x911D /* no arg */ +#define PTP_OC_CANON_EOS_SetNullPacketMode 0x911E /* 1 param */ +#define PTP_OC_CANON_EOS_UpdateFirmware 0x911F +#define PTP_OC_CANON_EOS_TransferCompleteDT 0x9120 +#define PTP_OC_CANON_EOS_CancelTransferDT 0x9121 +#define PTP_OC_CANON_EOS_SetWftProfile 0x9122 +#define PTP_OC_CANON_EOS_GetWftProfile 0x9123 /* 2 args: setnum, configid */ +#define PTP_OC_CANON_EOS_SetProfileToWft 0x9124 +#define PTP_OC_CANON_EOS_BulbStart 0x9125 +#define PTP_OC_CANON_EOS_BulbEnd 0x9126 +#define PTP_OC_CANON_EOS_RequestDevicePropValue 0x9127 + +/* 0x9128 args (0x1/0x2, 0x0), no data, no resp args */ +#define PTP_OC_CANON_EOS_RemoteReleaseOn 0x9128 +/* 0x9129 args (0x1/0x2), no data, no resp args */ +#define PTP_OC_CANON_EOS_RemoteReleaseOff 0x9129 + +#define PTP_OC_CANON_EOS_RegistBackgroundImage 0x912A +#define PTP_OC_CANON_EOS_ChangePhotoStudioMode 0x912B +#define PTP_OC_CANON_EOS_GetPartialObjectEx 0x912C +#define PTP_OC_CANON_EOS_ResetMirrorLockupState 0x9130 /* no args */ +#define PTP_OC_CANON_EOS_PopupBuiltinFlash 0x9131 +#define PTP_OC_CANON_EOS_EndGetPartialObjectEx 0x9132 +#define PTP_OC_CANON_EOS_MovieSelectSWOn 0x9133 /* no args */ +#define PTP_OC_CANON_EOS_MovieSelectSWOff 0x9134 /* no args */ +#define PTP_OC_CANON_EOS_GetCTGInfo 0x9135 +#define PTP_OC_CANON_EOS_GetLensAdjust 0x9136 +#define PTP_OC_CANON_EOS_SetLensAdjust 0x9137 +#define PTP_OC_CANON_EOS_ReadyToSendMusic 0x9138 +/* 3 paramaeters, no data, OFC, size, unknown */ +#define PTP_OC_CANON_EOS_CreateHandle 0x9139 +#define PTP_OC_CANON_EOS_SendPartialObjectEx 0x913A +#define PTP_OC_CANON_EOS_EndSendPartialObjectEx 0x913B +#define PTP_OC_CANON_EOS_SetCTGInfo 0x913C +#define PTP_OC_CANON_EOS_SetRequestOLCInfoGroup 0x913D +#define PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel 0x913E /* 1 arg: onoff? */ +/* 3 args, 0x21201020, 0x110, 0x1000000 (potentially reverse order) */ +#define PTP_OC_CANON_EOS_GetCameraSupport 0x913F +#define PTP_OC_CANON_EOS_SetRating 0x9140 /* 2 args, objectid, rating? */ +#define PTP_OC_CANON_EOS_RequestInnerDevelopStart 0x9141 /* 2 args: 1 type, 1 object? */ +#define PTP_OC_CANON_EOS_RequestInnerDevelopParamChange 0x9142 +#define PTP_OC_CANON_EOS_RequestInnerDevelopEnd 0x9143 +#define PTP_OC_CANON_EOS_GpsLoggingDataMode 0x9144 /* 1 arg */ +#define PTP_OC_CANON_EOS_GetGpsLogCurrentHandle 0x9145 +#define PTP_OC_CANON_EOS_SetImageRecoveryData 0x9146 /* sends data? */ +#define PTP_OC_CANON_EOS_GetImageRecoveryList 0x9147 +#define PTP_OC_CANON_EOS_FormatImageRecoveryData 0x9148 +#define PTP_OC_CANON_EOS_GetPresetLensAdjustParam 0x9149 /* no arg */ +#define PTP_OC_CANON_EOS_GetRawDispImage 0x914A /* ? 2 args ? */ +#define PTP_OC_CANON_EOS_SaveImageRecoveryData 0x914B +#define PTP_OC_CANON_EOS_RequestBLE 0x914C /* 2? args? */ +#define PTP_OC_CANON_EOS_DrivePowerZoom 0x914D /* 1 arg */ + +#define PTP_OC_CANON_EOS_GetIptcData 0x914F +#define PTP_OC_CANON_EOS_SetIptcData 0x9150 /* sends data? */ +#define PTP_OC_CANON_EOS_InitiateViewfinder 0x9151 /* no arg */ +#define PTP_OC_CANON_EOS_TerminateViewfinder 0x9152 +/* EOS M2 wlan: 2 params, 0x00200000 0x01000000 */ +#define PTP_OC_CANON_EOS_GetViewFinderData 0x9153 +#define PTP_OC_CANON_EOS_DoAf 0x9154 +#define PTP_OC_CANON_EOS_DriveLens 0x9155 +#define PTP_OC_CANON_EOS_DepthOfFieldPreview 0x9156 /* 1 arg */ +#define PTP_OC_CANON_EOS_ClickWB 0x9157 /* 2 args: x,y */ +#define PTP_OC_CANON_EOS_Zoom 0x9158 /* 1 arg: zoom */ +#define PTP_OC_CANON_EOS_ZoomPosition 0x9159 /* 2 args: x,y */ +#define PTP_OC_CANON_EOS_SetLiveAfFrame 0x915A /* sends data? */ +#define PTP_OC_CANON_EOS_TouchAfPosition 0x915B /* 3 args: type,x,y */ +#define PTP_OC_CANON_EOS_SetLvPcFlavoreditMode 0x915C /* 1 arg */ +#define PTP_OC_CANON_EOS_SetLvPcFlavoreditParam 0x915D /* 1 arg */ +#define PTP_OC_CANON_EOS_AfCancel 0x9160 +#define PTP_OC_CANON_EOS_SetImageRecoveryDataEx 0x916B +#define PTP_OC_CANON_EOS_GetImageRecoveryListEx 0x916C +#define PTP_OC_CANON_EOS_NotifyAutoTransferStatus 0x916E +#define PTP_OC_CANON_EOS_GetReducedObject 0x916F +#define PTP_OC_CANON_EOS_GetObjectInfo64 0x9170 /* 1 arg: oid */ +#define PTP_OC_CANON_EOS_GetObject64 0x9171 /* 1 arg: oid */ +#define PTP_OC_CANON_EOS_GetPartialObject64 0x9172 /* args: oid, offset, maxbyte */ +#define PTP_OC_CANON_EOS_GetObjectInfoEx64 0x9173 /* 2 args: storageid, oid ? */ +#define PTP_OC_CANON_EOS_GetPartialObjectEX64 0x9174 /* args: oid, offset 64bit, maxbyte */ +#define PTP_OC_CANON_EOS_CreateHandle64 0x9175 +#define PTP_OC_CANON_EOS_NotifySaveComplete 0x9177 +#define PTP_OC_CANON_EOS_NotifyEstimateNumberofImport 0x9182 /* 1 arg: importnumber */ +#define PTP_OC_CANON_EOS_NotifyNumberofImported 0x9183 /* 1 arg: importnumber */ +#define PTP_OC_CANON_EOS_NotifySizeOfPartialDataTransfer 0x9184 /* 4 args: filesizelow, filesizehigh, downloadsizelow, downloadsizehigh */ +#define PTP_OC_CANON_EOS_NotifyFinish 0x9185 /* 1 arg: reason */ +#define PTP_OC_CANON_EOS_GetObjectURL 0x91AB +#define PTP_OC_CANON_EOS_SetFELock 0x91B9 +#define PTP_OC_CANON_EOS_SetDefaultCameraSetting 0x91BE +#define PTP_OC_CANON_EOS_GetAEData 0x91BF +#define PTP_OC_CANON_EOS_SendHostInfo 0x91E4 /* https://research.checkpoint.com/say-cheese-ransomware-ing-a-dslr-camera/ */ +#define PTP_OC_CANON_EOS_NotifyNetworkError 0x91E8 /* 1 arg: errorcode */ +#define PTP_OC_CANON_EOS_AdapterTransferProgress 0x91E9 +#define PTP_OC_CANON_EOS_TransferCompleteFTP 0x91F0 +#define PTP_OC_CANON_EOS_CancelTransferFTP 0x91F1 +#define PTP_OC_CANON_EOS_NotifyBtStatus 0x91F9 /* https://research.checkpoint.com/say-cheese-ransomware-ing-a-dslr-camera/ */ +#define PTP_OC_CANON_EOS_SetAdapterBatteryReport 0x91FD /* https://research.checkpoint.com/say-cheese-ransomware-ing-a-dslr-camera/ */ +#define PTP_OC_CANON_EOS_FAPIMessageTX 0x91FE +#define PTP_OC_CANON_EOS_FAPIMessageRX 0x91FF + +/* A1E8 ... also seen? is an error code? */ + +/* Nikon extension Operation Codes */ +#define PTP_OC_NIKON_GetProfileAllData 0x9006 +#define PTP_OC_NIKON_SendProfileData 0x9007 +#define PTP_OC_NIKON_DeleteProfile 0x9008 +#define PTP_OC_NIKON_SetProfileData 0x9009 +#define PTP_OC_NIKON_AdvancedTransfer 0x9010 +#define PTP_OC_NIKON_GetFileInfoInBlock 0x9011 +#define PTP_OC_NIKON_Capture 0x90C0 /* 1 param, no data */ +#define PTP_OC_NIKON_AfDrive 0x90C1 /* no params, no data */ +#define PTP_OC_NIKON_SetControlMode 0x90C2 /* 1 param, no data */ +#define PTP_OC_NIKON_DelImageSDRAM 0x90C3 /* 1 param, no data */ +#define PTP_OC_NIKON_GetLargeThumb 0x90C4 +#define PTP_OC_NIKON_CurveDownload 0x90C5 /* 1 param, data in */ +#define PTP_OC_NIKON_CurveUpload 0x90C6 /* 1 param, data out */ +#define PTP_OC_NIKON_CheckEvent 0x90C7 /* no params, data in */ +#define PTP_OC_NIKON_DeviceReady 0x90C8 /* no params, no data */ +#define PTP_OC_NIKON_SetPreWBData 0x90C9 /* 3 params, data out */ +#define PTP_OC_NIKON_GetVendorPropCodes 0x90CA /* 0 params, data in */ +#define PTP_OC_NIKON_AfCaptureSDRAM 0x90CB /* no params, no data */ +#define PTP_OC_NIKON_GetPictCtrlData 0x90CC /* 2 params, data in */ +#define PTP_OC_NIKON_SetPictCtrlData 0x90CD /* 2 params, data out */ +#define PTP_OC_NIKON_DelCstPicCtrl 0x90CE /* 1 param, no data */ +#define PTP_OC_NIKON_GetPicCtrlCapability 0x90CF /* 1 param, data in */ + +/* Nikon Liveview stuff */ +#define PTP_OC_NIKON_GetPreviewImg 0x9200 +#define PTP_OC_NIKON_StartLiveView 0x9201 /* no params */ +#define PTP_OC_NIKON_EndLiveView 0x9202 /* no params */ +#define PTP_OC_NIKON_GetLiveViewImg 0x9203 /* no params, data in */ +#define PTP_OC_NIKON_MfDrive 0x9204 /* 2 params */ +#define PTP_OC_NIKON_ChangeAfArea 0x9205 /* 2 params */ +#define PTP_OC_NIKON_AfDriveCancel 0x9206 /* no params */ +/* 2 params: + * 0xffffffff == No AF before, 0xfffffffe == AF before capture + * sdram=1, card=0 + */ +#define PTP_OC_NIKON_InitiateCaptureRecInMedia 0x9207 /* 1 params */ + +#define PTP_OC_NIKON_GetVendorStorageIDs 0x9209 /* no params, data in */ + +#define PTP_OC_NIKON_StartMovieRecInCard 0x920a /* no params, no data */ +#define PTP_OC_NIKON_EndMovieRec 0x920b /* no params, no data */ + +#define PTP_OC_NIKON_TerminateCapture 0x920c /* 2 params */ + +#define PTP_OC_NIKON_GetDevicePTPIPInfo 0x90E0 + +#define PTP_OC_NIKON_GetPartialObjectHiSpeed 0x9400 /* 3 params, data in */ + +/* From Nikon V1 Trace */ +#define PTP_OC_NIKON_GetDevicePropEx 0x9504 /* gets device prop data */ + +/* Casio EX-F1 (from http://code.google.com/p/exf1ctrl/ ) */ +#define PTP_OC_CASIO_STILL_START 0x9001 +#define PTP_OC_CASIO_STILL_STOP 0x9002 + +#define PTP_OC_CASIO_FOCUS 0x9007 +#define PTP_OC_CASIO_CF_PRESS 0x9009 +#define PTP_OC_CASIO_CF_RELEASE 0x900A +#define PTP_OC_CASIO_GET_OBJECT_INFO 0x900C + +#define PTP_OC_CASIO_SHUTTER 0x9024 +#define PTP_OC_CASIO_GET_STILL_HANDLES 0x9027 +#define PTP_OC_CASIO_STILL_RESET 0x9028 +#define PTP_OC_CASIO_HALF_PRESS 0x9029 +#define PTP_OC_CASIO_HALF_RELEASE 0x902A +#define PTP_OC_CASIO_CS_PRESS 0x902B +#define PTP_OC_CASIO_CS_RELEASE 0x902C + +#define PTP_OC_CASIO_ZOOM 0x902D +#define PTP_OC_CASIO_CZ_PRESS 0x902E +#define PTP_OC_CASIO_CZ_RELEASE 0x902F + +#define PTP_OC_CASIO_MOVIE_START 0x9041 +#define PTP_OC_CASIO_MOVIE_STOP 0x9042 +#define PTP_OC_CASIO_MOVIE_PRESS 0x9043 +#define PTP_OC_CASIO_MOVIE_RELEASE 0x9044 +#define PTP_OC_CASIO_GET_MOVIE_HANDLES 0x9045 +#define PTP_OC_CASIO_MOVIE_RESET 0x9046 + +#define PTP_OC_CASIO_GET_OBJECT 0x9025 +#define PTP_OC_CASIO_GET_THUMBNAIL 0x9026 + +/* Sony stuff */ +/* 9201: + * 3 params: 1,0,0 ; IN: data 8 bytes all 0 + * or: + * 3 params: 2,0,0 ; IN: data 8 bytes all 0 + * or + * 3 params: 3,0,0,: IN: data 8 butes all 0 + */ +#define PTP_OC_SONY_SDIOConnect 0x9201 +/* 9202: 1 param, 0xc8; IN data: + * 16 bit: 0xc8 + * ptp array 32 bit: index, 16 bit values of propcodes */ +#define PTP_OC_SONY_GetSDIOGetExtDeviceInfo 0x9202 + +#define PTP_OC_SONY_GetDevicePropdesc 0x9203 +#define PTP_OC_SONY_GetDevicePropertyValue 0x9204 +/* 1 param, 16bit propcode, SEND DATA: propvalue */ +#define PTP_OC_SONY_SetControlDeviceA 0x9205 +#define PTP_OC_SONY_GetControlDeviceDesc 0x9206 +/* 1 param, 16bit propcode, SEND DATA: propvalue */ +#define PTP_OC_SONY_SetControlDeviceB 0x9207 +/* get all device property data at once */ +#define PTP_OC_SONY_GetAllDevicePropData 0x9209 /* gets a 4126 byte blob of device props ?*/ + +/* Microsoft / MTP extension codes */ + +#define PTP_OC_MTP_GetObjectPropsSupported 0x9801 +#define PTP_OC_MTP_GetObjectPropDesc 0x9802 +#define PTP_OC_MTP_GetObjectPropValue 0x9803 +#define PTP_OC_MTP_SetObjectPropValue 0x9804 +#define PTP_OC_MTP_GetObjPropList 0x9805 +#define PTP_OC_MTP_SetObjPropList 0x9806 +#define PTP_OC_MTP_GetInterdependendPropdesc 0x9807 +#define PTP_OC_MTP_SendObjectPropList 0x9808 +#define PTP_OC_MTP_GetObjectReferences 0x9810 +#define PTP_OC_MTP_SetObjectReferences 0x9811 +#define PTP_OC_MTP_UpdateDeviceFirmware 0x9812 +#define PTP_OC_MTP_Skip 0x9820 + +/* + * Windows Media Digital Rights Management for Portable Devices + * Extension Codes (microsoft.com/WMDRMPD: 10.1) + */ +#define PTP_OC_MTP_WMDRMPD_GetSecureTimeChallenge 0x9101 +#define PTP_OC_MTP_WMDRMPD_GetSecureTimeResponse 0x9102 +#define PTP_OC_MTP_WMDRMPD_SetLicenseResponse 0x9103 +#define PTP_OC_MTP_WMDRMPD_GetSyncList 0x9104 +#define PTP_OC_MTP_WMDRMPD_SendMeterChallengeQuery 0x9105 +#define PTP_OC_MTP_WMDRMPD_GetMeterChallenge 0x9106 +#define PTP_OC_MTP_WMDRMPD_SetMeterResponse 0x9107 +#define PTP_OC_MTP_WMDRMPD_CleanDataStore 0x9108 +#define PTP_OC_MTP_WMDRMPD_GetLicenseState 0x9109 +#define PTP_OC_MTP_WMDRMPD_SendWMDRMPDCommand 0x910A +#define PTP_OC_MTP_WMDRMPD_SendWMDRMPDRequest 0x910B + +/* + * Windows Media Digital Rights Management for Portable Devices + * Extension Codes (microsoft.com/WMDRMPD: 10.1) + * Below are operations that have no public documented identifier + * associated with them "Vendor-defined Command Code" + */ +#define PTP_OC_MTP_WMDRMPD_SendWMDRMPDAppRequest 0x9212 +#define PTP_OC_MTP_WMDRMPD_GetWMDRMPDAppResponse 0x9213 +#define PTP_OC_MTP_WMDRMPD_EnableTrustedFilesOperations 0x9214 +#define PTP_OC_MTP_WMDRMPD_DisableTrustedFilesOperations 0x9215 +#define PTP_OC_MTP_WMDRMPD_EndTrustedAppSession 0x9216 +/* ^^^ guess ^^^ */ + +/* + * Microsoft Advanced Audio/Video Transfer + * Extensions (microsoft.com/AAVT: 1.0) + */ +#define PTP_OC_MTP_AAVT_OpenMediaSession 0x9170 +#define PTP_OC_MTP_AAVT_CloseMediaSession 0x9171 +#define PTP_OC_MTP_AAVT_GetNextDataBlock 0x9172 +#define PTP_OC_MTP_AAVT_SetCurrentTimePosition 0x9173 + +/* + * Windows Media Digital Rights Management for Network Devices + * Extensions (microsoft.com/WMDRMND: 1.0) MTP/IP? + */ +#define PTP_OC_MTP_WMDRMND_SendRegistrationRequest 0x9180 +#define PTP_OC_MTP_WMDRMND_GetRegistrationResponse 0x9181 +#define PTP_OC_MTP_WMDRMND_GetProximityChallenge 0x9182 +#define PTP_OC_MTP_WMDRMND_SendProximityResponse 0x9183 +#define PTP_OC_MTP_WMDRMND_SendWMDRMNDLicenseRequest 0x9184 +#define PTP_OC_MTP_WMDRMND_GetWMDRMNDLicenseResponse 0x9185 + +/* + * Windows Media Player Portiable Devices + * Extension Codes (microsoft.com/WMPPD: 11.1) + */ +#define PTP_OC_MTP_WMPPD_ReportAddedDeletedItems 0x9201 +#define PTP_OC_MTP_WMPPD_ReportAcquiredItems 0x9202 +#define PTP_OC_MTP_WMPPD_PlaylistObjectPref 0x9203 + +/* + * Undocumented Zune Operation Codes + * maybe related to WMPPD extension set? + */ +#define PTP_OC_MTP_ZUNE_GETUNDEFINED001 0x9204 + +/* WiFi Provisioning MTP Extension Codes (microsoft.com/WPDWCN: 1.0) */ +#define PTP_OC_MTP_WPDWCN_ProcessWFCObject 0x9122 + +/* Olympus OMD series commands */ +#define PTP_OC_OLYMPUS_OMD_Capture 0x9481 +#define PTP_OC_OLYMPUS_GetLiveViewImage 0x9484 /* liveview */ +#define PTP_OC_OLYMPUS_OMD_GetImage 0x9485 /* gets an JPEG image (from the capture? SDRAM style?) */ +#define PTP_OC_OLYMPUS_OMD_ChangedProperties 0x9486 +#define PTP_OC_OLYMPUS_OMD_MFDrive 0x9487 +#define PTP_OC_OLYMPUS_OMD_SetProperties 0x9489 /* Sends to the device a PTP list of all 16 bit device properties , count 32bit, then 16bit vals */ + +/* Olympus E series commands */ + +#define PTP_OC_OLYMPUS_Capture 0x9101 +#define PTP_OC_OLYMPUS_SelfCleaning 0x9103 +#define PTP_OC_OLYMPUS_SetRGBGain 0x9106 +#define PTP_OC_OLYMPUS_SetPresetMode 0x9107 +#define PTP_OC_OLYMPUS_SetWBBiasAll 0x9108 +#define PTP_OC_OLYMPUS_GetCameraControlMode 0x910a +#define PTP_OC_OLYMPUS_SetCameraControlMode 0x910b +#define PTP_OC_OLYMPUS_SetWBRGBGain 0x910c +#define PTP_OC_OLYMPUS_GetDeviceInfo 0x9301 +#define PTP_OC_OLYMPUS_OpenSession 0x9302 +#define PTP_OC_OLYMPUS_SetDateTime 0x9402 +#define PTP_OC_OLYMPUS_GetDateTime 0x9482 +#define PTP_OC_OLYMPUS_SetCameraID 0x9501 +#define PTP_OC_OLYMPUS_GetCameraID 0x9581 + + +/* Android Random I/O Extensions Codes */ +#define PTP_OC_ANDROID_GetPartialObject64 0x95C1 +#define PTP_OC_ANDROID_SendPartialObject 0x95C2 +#define PTP_OC_ANDROID_TruncateObject 0x95C3 +#define PTP_OC_ANDROID_BeginEditObject 0x95C4 +#define PTP_OC_ANDROID_EndEditObject 0x95C5 + +/* Leica opcodes, from Lightroom tether plugin */ +/* also from: + * https://alexhude.github.io/2019/01/24/hacking-leica-m240.html */ +#define PTP_OC_LEICA_SetCameraSettings 0x9001 +#define PTP_OC_LEICA_GetCameraSettings 0x9002 +#define PTP_OC_LEICA_GetLensParameter 0x9003 +/* probably 2 arguments. + * generic: releaseStage, stepSize + * Release(releasestage) = (releasestage,0) + * Release() = (0,0) + * AEStart() = (1,0) + * Autofocusrelease() = (2,0) + * AutofocusPush() = (1,0) ... same as AEStart? + * KeepCameraActive() = (0xe,0) + */ +#define PTP_OC_LEICA_Release 0x9004 +#define PTP_OC_LEICA_OpenLESession 0x9005 +#define PTP_OC_LEICA_CloseLESession 0x9006 +#define PTP_OC_LEICA_RequestObjectTransferReady 0x9007 +#define PTP_OC_LEICA_GetGeoTrackingData 0x9008 +#define PTP_OC_LEICA_OpenDebugSession 0x900a +#define PTP_OC_LEICA_CloseDebugSession 0x900b +#define PTP_OC_LEICA_GetDebugBuffer 0x900c +#define PTP_OC_LEICA_DebugCommandString 0x900d +#define PTP_OC_LEICA_GetDebugRoute 0x900e +#define PTP_OC_LEICA_SetIPTCData 0x900f +#define PTP_OC_LEICA_GetIPTCData 0x9010 +#define PTP_OC_LEICA_Get3DAxisData 0x9020 +#define PTP_OC_LEICA_OpenLiveViewSession 0x9030 +#define PTP_OC_LEICA_CloseLiveViewSession 0x9031 +#define PTP_OC_LEICA_OpenProductionSession 0x9100 +#define PTP_OC_LEICA_CloseProductionSession 0x9101 +#define PTP_OC_LEICA_UpdateFirmware 0x9102 +#define PTP_OC_LEICA_OpenOSDSession 0x9103 +#define PTP_OC_LEICA_CloseOSDSession 0x9104 +#define PTP_OC_LEICA_GetOSDData 0x9105 +#define PTP_OC_LEICA_GetFirmwareStruct 0x9106 +#define PTP_OC_LEICA_GetDebugMenu 0x910b +#define PTP_OC_LEICA_SetDebugMenu 0x910c +#define PTP_OC_LEICA_OdinMessage 0x910d +#define PTP_OC_LEICA_GetDebugObjectHandles 0x910e +#define PTP_OC_LEICA_GetDebugObject 0x910f +#define PTP_OC_LEICA_DeleteDebugObject 0x9110 +#define PTP_OC_LEICA_GetDebugObjectInfo 0x9111 +#define PTP_OC_LEICA_WriteDebugObject 0x9112 +#define PTP_OC_LEICA_CreateDebugObject 0x9113 +#define PTP_OC_LEICA_Calibrate3DAxis 0x9114 +#define PTP_OC_LEICA_MagneticCalibration 0x9115 +#define PTP_OC_LEICA_GetViewFinderData 0x9116 + +#define PTP_OC_PARROT_GetSunshineValues 0x9201 +#define PTP_OC_PARROT_GetTemperatureValues 0x9202 +#define PTP_OC_PARROT_GetAngleValues 0x9203 +#define PTP_OC_PARROT_GetGpsValues 0x9204 +#define PTP_OC_PARROT_GetGyroscopeValues 0x9205 +#define PTP_OC_PARROT_GetAccelerometerValues 0x9206 +#define PTP_OC_PARROT_GetMagnetometerValues 0x9207 +#define PTP_OC_PARROT_GetImuValues 0x9208 +#define PTP_OC_PARROT_GetStatusMask 0x9209 +#define PTP_OC_PARROT_EjectStorage 0x920A +#define PTP_OC_PARROT_StartMagnetoCalib 0x9210 +#define PTP_OC_PARROT_StopMagnetoCalib 0x9211 +#define PTP_OC_PARROT_MagnetoCalibStatus 0x9212 +#define PTP_OC_PARROT_SendFirmwareUpdate 0x9213 + +#define PTP_OC_PANASONIC_9101 0x9101 +#define PTP_OC_PANASONIC_OpenSession 0x9102 /* opensession (1 arg, seems to be storage id 0x00010001)*/ +#define PTP_OC_PANASONIC_CloseSession 0x9103 /* closesession (no arg) */ +#define PTP_OC_PANASONIC_9104 0x9104 /* get ext device id (1 arg?) */ +/* 9104 gets this data: +0000 24 00 00 00 02 00 04 91-04 00 00 00 01 00 01 00 $............... +0010 01 00 e1 07 10 00 00 00-00 00 00 00 00 00 00 00 ................ +0020 00 00 00 00 - .... +*/ + +#define PTP_OC_PANASONIC_9107 0x9107 /* getsize? */ +#define PTP_OC_PANASONIC_ListProperty 0x9108 +#define PTP_OC_PANASONIC_9110 0x9110 /* Get_Object infos */ +#define PTP_OC_PANASONIC_9112 0x9112 /* Get Partial Object , 4 args */ +#define PTP_OC_PANASONIC_9113 0x9113 /* Skip Objects Transfer , 1 arg */ + +#define PTP_OC_PANASONIC_9401 0x9401 +#define PTP_OC_PANASONIC_GetProperty 0x9402 +#define PTP_OC_PANASONIC_SetProperty 0x9403 +#define PTP_OC_PANASONIC_InitiateCapture 0x9404 /* Rec Ctrl Release */ +#define PTP_OC_PANASONIC_9405 0x9405 /* Rec Ctrl AF AE */ +#define PTP_OC_PANASONIC_9406 0x9406 /* Setup Ctrl various functions: Format, Sensor Cleaning, Menu Save, firmware update? */ +#define PTP_OC_PANASONIC_9408 0x9408 +#define PTP_OC_PANASONIC_9409 0x9409 /* 1 arg */ +#define PTP_OC_PANASONIC_940A 0x940A /* 1 arg, e.g. 0x08000010 */ +#define PTP_OC_PANASONIC_SetCaptureTarget 0x940B /* 1 arg, e.g. 0x08000010 */ +#define PTP_OC_PANASONIC_MoveRecControl 0x940C /* 07000011 start, 07000012 stop, 0700013 still capture */ +#define PTP_OC_PANASONIC_PowerControl 0x940D /* 1 arg: 0x0A000011 power off, 0x0a00012 device reset, 0x0a00013 device restart */ +#define PTP_OC_PANASONIC_PlayControl 0x940E /* 2 arg? 0x05000011 current=0, next=1, prev=0xffffffff */ +#define PTP_OC_PANASONIC_PlayControlPlay 0x940F /* 0x05000020 */ +#define PTP_OC_PANASONIC_9410 0x9410 /* Rec Ctrl Other */ +#define PTP_OC_PANASONIC_SetGPSDataInfo 0x9411 +#define PTP_OC_PANASONIC_Liveview 0x9412 /* 0d000010 start, 0d000011 stop */ +#define PTP_OC_PANASONIC_PollEvents 0x9414 /* ? 1 arg e.g 12000020 */ +#define PTP_OC_PANASONIC_ManualFocusDrive 0x9416 /* Rec Ctrl Mf Assist, Rec Ctrl Backup Req ... 1 arg */ + +#define PTP_OC_PANASONIC_ChangeEvent 0x9603 /* 2 args ... e.g. 0x4002, new (change object added event) */ +#define PTP_OC_PANASONIC_GetFromEventInfo 0x9605 /* 1 arg, e.g. 0x41000013 , 15c00021: setup exec menu save comp, 15c00022: setup exec pixel refresh comp */ +#define PTP_OC_PANASONIC_SendDataInfo 0x9606 /* no args? used during firmware update */ +#define PTP_OC_PANASONIC_StartSendData 0x9607 /* no args? used during firmware update */ + +#define PTP_OC_PANASONIC_9703 0x9703 /* Mnt_GetInfo_GetVersion ... 1 arg? */ +#define PTP_OC_PANASONIC_9704 0x9704 /* Set USB Mode ... 80040001 */ +#define PTP_OC_PANASONIC_9705 0x9705 /* Ctrl Liveview */ +#define PTP_OC_PANASONIC_LiveviewImage 0x9706 /* Get Liveview Data */ +#define PTP_OC_PANASONIC_9707 0x9707 /* 4k6k cutting get stream */ + + + +/* Proprietary vendor extension operations mask */ +#define PTP_OC_EXTENSION_MASK 0xF000 +#define PTP_OC_EXTENSION 0x9000 + +/* Response Codes */ + +/* PTP v1.0 response codes */ +#define PTP_RC_Undefined 0x2000 +#define PTP_RC_OK 0x2001 +#define PTP_RC_GeneralError 0x2002 +#define PTP_RC_SessionNotOpen 0x2003 +#define PTP_RC_InvalidTransactionID 0x2004 +#define PTP_RC_OperationNotSupported 0x2005 +#define PTP_RC_ParameterNotSupported 0x2006 +#define PTP_RC_IncompleteTransfer 0x2007 +#define PTP_RC_InvalidStorageId 0x2008 +#define PTP_RC_InvalidObjectHandle 0x2009 +#define PTP_RC_DevicePropNotSupported 0x200A +#define PTP_RC_InvalidObjectFormatCode 0x200B +#define PTP_RC_StoreFull 0x200C +#define PTP_RC_ObjectWriteProtected 0x200D +#define PTP_RC_StoreReadOnly 0x200E +#define PTP_RC_AccessDenied 0x200F +#define PTP_RC_NoThumbnailPresent 0x2010 +#define PTP_RC_SelfTestFailed 0x2011 +#define PTP_RC_PartialDeletion 0x2012 +#define PTP_RC_StoreNotAvailable 0x2013 +#define PTP_RC_SpecificationByFormatUnsupported 0x2014 +#define PTP_RC_NoValidObjectInfo 0x2015 +#define PTP_RC_InvalidCodeFormat 0x2016 +#define PTP_RC_UnknownVendorCode 0x2017 +#define PTP_RC_CaptureAlreadyTerminated 0x2018 +#define PTP_RC_DeviceBusy 0x2019 +#define PTP_RC_InvalidParentObject 0x201A +#define PTP_RC_InvalidDevicePropFormat 0x201B +#define PTP_RC_InvalidDevicePropValue 0x201C +#define PTP_RC_InvalidParameter 0x201D +#define PTP_RC_SessionAlreadyOpened 0x201E +#define PTP_RC_TransactionCanceled 0x201F +#define PTP_RC_SpecificationOfDestinationUnsupported 0x2020 +/* PTP v1.1 response codes */ +#define PTP_RC_InvalidEnumHandle 0x2021 +#define PTP_RC_NoStreamEnabled 0x2022 +#define PTP_RC_InvalidDataSet 0x2023 + +/* Eastman Kodak extension Response Codes */ +#define PTP_RC_EK_FilenameRequired 0xA001 +#define PTP_RC_EK_FilenameConflicts 0xA002 +#define PTP_RC_EK_FilenameInvalid 0xA003 + +/* Nikon specific response codes */ +#define PTP_RC_NIKON_HardwareError 0xA001 +#define PTP_RC_NIKON_OutOfFocus 0xA002 +#define PTP_RC_NIKON_ChangeCameraModeFailed 0xA003 +#define PTP_RC_NIKON_InvalidStatus 0xA004 +#define PTP_RC_NIKON_SetPropertyNotSupported 0xA005 +#define PTP_RC_NIKON_WbResetError 0xA006 +#define PTP_RC_NIKON_DustReferenceError 0xA007 +#define PTP_RC_NIKON_ShutterSpeedBulb 0xA008 +#define PTP_RC_NIKON_MirrorUpSequence 0xA009 +#define PTP_RC_NIKON_CameraModeNotAdjustFNumber 0xA00A +#define PTP_RC_NIKON_NotLiveView 0xA00B +#define PTP_RC_NIKON_MfDriveStepEnd 0xA00C +#define PTP_RC_NIKON_MfDriveStepInsufficiency 0xA00E +#define PTP_RC_NIKON_AdvancedTransferCancel 0xA022 + +/* Canon specific response codes */ +#define PTP_RC_CANON_UNKNOWN_COMMAND 0xA001 +#define PTP_RC_CANON_OPERATION_REFUSED 0xA005 +#define PTP_RC_CANON_LENS_COVER 0xA006 +#define PTP_RC_CANON_BATTERY_LOW 0xA101 +#define PTP_RC_CANON_NOT_READY 0xA102 + +#define PTP_RC_CANON_A009 0xA009 + +#define PTP_RC_CANON_EOS_UnknownCommand 0xA001 +#define PTP_RC_CANON_EOS_OperationRefused 0xA005 +#define PTP_RC_CANON_EOS_LensCoverClosed 0xA006 +#define PTP_RC_CANON_EOS_LowBattery 0xA101 +#define PTP_RC_CANON_EOS_ObjectNotReady 0xA102 +#define PTP_RC_CANON_EOS_CannotMakeObject 0xA104 +#define PTP_RC_CANON_EOS_MemoryStatusNotReady 0xA106 + + +/* Microsoft/MTP specific codes */ +#define PTP_RC_MTP_Undefined 0xA800 +#define PTP_RC_MTP_Invalid_ObjectPropCode 0xA801 +#define PTP_RC_MTP_Invalid_ObjectProp_Format 0xA802 +#define PTP_RC_MTP_Invalid_ObjectProp_Value 0xA803 +#define PTP_RC_MTP_Invalid_ObjectReference 0xA804 +#define PTP_RC_MTP_Invalid_Dataset 0xA806 +#define PTP_RC_MTP_Specification_By_Group_Unsupported 0xA807 +#define PTP_RC_MTP_Specification_By_Depth_Unsupported 0xA808 +#define PTP_RC_MTP_Object_Too_Large 0xA809 +#define PTP_RC_MTP_ObjectProp_Not_Supported 0xA80A + +/* Microsoft Advanced Audio/Video Transfer response codes +(microsoft.com/AAVT 1.0) */ +#define PTP_RC_MTP_Invalid_Media_Session_ID 0xA170 +#define PTP_RC_MTP_Media_Session_Limit_Reached 0xA171 +#define PTP_RC_MTP_No_More_Data 0xA172 + +/* WiFi Provisioning MTP Extension Error Codes (microsoft.com/WPDWCN: 1.0) */ +#define PTP_RC_MTP_Invalid_WFC_Syntax 0xA121 +#define PTP_RC_MTP_WFC_Version_Not_Supported 0xA122 + +/* libptp2 extended ERROR codes */ +#define PTP_ERROR_NODEVICE 0x02F9 +#define PTP_ERROR_TIMEOUT 0x02FA +#define PTP_ERROR_CANCEL 0x02FB +#define PTP_ERROR_BADPARAM 0x02FC +#define PTP_ERROR_RESP_EXPECTED 0x02FD +#define PTP_ERROR_DATA_EXPECTED 0x02FE +#define PTP_ERROR_IO 0x02FF + +/* PTP Event Codes */ + +#define PTP_EC_Undefined 0x4000 +#define PTP_EC_CancelTransaction 0x4001 +#define PTP_EC_ObjectAdded 0x4002 +#define PTP_EC_ObjectRemoved 0x4003 +#define PTP_EC_StoreAdded 0x4004 +#define PTP_EC_StoreRemoved 0x4005 +#define PTP_EC_DevicePropChanged 0x4006 +#define PTP_EC_ObjectInfoChanged 0x4007 +#define PTP_EC_DeviceInfoChanged 0x4008 +#define PTP_EC_RequestObjectTransfer 0x4009 +#define PTP_EC_StoreFull 0x400A +#define PTP_EC_DeviceReset 0x400B +#define PTP_EC_StorageInfoChanged 0x400C +#define PTP_EC_CaptureComplete 0x400D +#define PTP_EC_UnreportedStatus 0x400E + +/* Canon extension Event Codes */ +#define PTP_EC_CANON_ExtendedErrorcode 0xC005 /* ? */ +#define PTP_EC_CANON_ObjectInfoChanged 0xC008 +#define PTP_EC_CANON_RequestObjectTransfer 0xC009 +#define PTP_EC_CANON_ShutterButtonPressed0 0xC00B +#define PTP_EC_CANON_CameraModeChanged 0xC00C +#define PTP_EC_CANON_ShutterButtonPressed1 0xC00E + +#define PTP_EC_CANON_StartDirectTransfer 0xC011 +#define PTP_EC_CANON_StopDirectTransfer 0xC013 + +#define PTP_EC_CANON_TranscodeProgress 0xC01B /* EOS ? */ + +/* Canon EOS events */ +#define PTP_EC_CANON_EOS_RequestGetEvent 0xc101 +#define PTP_EC_CANON_EOS_RequestCancelTransferMA 0xc180 +#define PTP_EC_CANON_EOS_ObjectAddedEx 0xc181 +#define PTP_EC_CANON_EOS_ObjectRemoved 0xc182 +#define PTP_EC_CANON_EOS_RequestGetObjectInfoEx 0xc183 +#define PTP_EC_CANON_EOS_StorageStatusChanged 0xc184 +#define PTP_EC_CANON_EOS_StorageInfoChanged 0xc185 +#define PTP_EC_CANON_EOS_RequestObjectTransfer 0xc186 +#define PTP_EC_CANON_EOS_ObjectInfoChangedEx 0xc187 +#define PTP_EC_CANON_EOS_ObjectContentChanged 0xc188 +#define PTP_EC_CANON_EOS_PropValueChanged 0xc189 +#define PTP_EC_CANON_EOS_AvailListChanged 0xc18a +#define PTP_EC_CANON_EOS_CameraStatusChanged 0xc18b +#define PTP_EC_CANON_EOS_WillSoonShutdown 0xc18d +#define PTP_EC_CANON_EOS_ShutdownTimerUpdated 0xc18e +#define PTP_EC_CANON_EOS_RequestCancelTransfer 0xc18f +#define PTP_EC_CANON_EOS_RequestObjectTransferDT 0xc190 +#define PTP_EC_CANON_EOS_RequestCancelTransferDT 0xc191 +#define PTP_EC_CANON_EOS_StoreAdded 0xc192 +#define PTP_EC_CANON_EOS_StoreRemoved 0xc193 +#define PTP_EC_CANON_EOS_BulbExposureTime 0xc194 +#define PTP_EC_CANON_EOS_RecordingTime 0xc195 +#define PTP_EC_CANON_EOS_InnerDevelopParam 0xc196 +#define PTP_EC_CANON_EOS_RequestObjectTransferDevelop 0xc197 +#define PTP_EC_CANON_EOS_GPSLogOutputProgress 0xc198 +#define PTP_EC_CANON_EOS_GPSLogOutputComplete 0xc199 +#define PTP_EC_CANON_EOS_TouchTrans 0xc19a +#define PTP_EC_CANON_EOS_RequestObjectTransferExInfo 0xc19b +#define PTP_EC_CANON_EOS_PowerZoomInfoChanged 0xc19d +#define PTP_EC_CANON_EOS_RequestPushMode 0xc19f +#define PTP_EC_CANON_EOS_RequestObjectTransferTS 0xc1a2 +#define PTP_EC_CANON_EOS_AfResult 0xc1a3 +#define PTP_EC_CANON_EOS_CTGInfoCheckComplete 0xc1a4 +#define PTP_EC_CANON_EOS_OLCInfoChanged 0xc1a5 +#define PTP_EC_CANON_EOS_ObjectAddedEx64 0xc1a7 +#define PTP_EC_CANON_EOS_ObjectInfoChangedEx64 0xc1a8 +#define PTP_EC_CANON_EOS_RequestObjectTransfer64 0xc1a9 +#define PTP_EC_CANON_EOS_RequestObjectTransferDT64 0xc1aa +#define PTP_EC_CANON_EOS_RequestObjectTransferFTP64 0xc1ab +#define PTP_EC_CANON_EOS_RequestObjectTransferInfoEx64 0xc1ac +#define PTP_EC_CANON_EOS_RequestObjectTransferMA64 0xc1ad +#define PTP_EC_CANON_EOS_ImportError 0xc1af +#define PTP_EC_CANON_EOS_BlePairing 0xc1b0 +#define PTP_EC_CANON_EOS_RequestAutoSendImages 0xc1b1 +#define PTP_EC_CANON_EOS_RequestTranscodedBlockTransfer 0xc1b2 +#define PTP_EC_CANON_EOS_RequestObjectTransferFTP 0xc1f1 + +/* Nikon extension Event Codes */ + +/* Nikon extension Event Codes */ +#define PTP_EC_Nikon_ObjectAddedInSDRAM 0xC101 +#define PTP_EC_Nikon_CaptureCompleteRecInSdram 0xC102 +/* Gets 1 parameter, objectid pointing to DPOF object */ +#define PTP_EC_Nikon_AdvancedTransfer 0xC103 +#define PTP_EC_Nikon_PreviewImageAdded 0xC104 + +/* Olympus E series */ +#define PTP_EC_Olympus_PropertyChanged 0xC102 +#define PTP_EC_Olympus_CaptureComplete 0xC103 + +/* Sony */ +#define PTP_EC_Sony_ObjectAdded 0xC201 +#define PTP_EC_Sony_ObjectRemoved 0xC202 +#define PTP_EC_Sony_PropertyChanged 0xC203 + +/* MTP Event codes */ +#define PTP_EC_MTP_ObjectPropChanged 0xC801 +#define PTP_EC_MTP_ObjectPropDescChanged 0xC802 +#define PTP_EC_MTP_ObjectReferencesChanged 0xC803 + +#define PTP_EC_PARROT_Status 0xC201 +#define PTP_EC_PARROT_MagnetoCalibrationStatus 0xC202 + +#define PTP_EC_PANASONIC_ObjectAdded 0xC108 +#define PTP_EC_PANASONIC_ObjectAddedSDRAM 0xC109 + + +/* constants for GetObjectHandles */ +#define PTP_GOH_ALL_STORAGE 0xffffffff +#define PTP_GOH_ALL_FORMATS 0x00000000 +#define PTP_GOH_ALL_ASSOCS 0x00000000 +#define PTP_GOH_ROOT_PARENT 0xffffffff + +/* PTP device info structure (returned by GetDevInfo) */ + +struct _PTPDeviceInfo { + uint16_t StandardVersion; + uint32_t VendorExtensionID; + uint16_t VendorExtensionVersion; + char *VendorExtensionDesc; + uint16_t FunctionalMode; + uint32_t OperationsSupported_len; + uint16_t *OperationsSupported; + uint32_t EventsSupported_len; + uint16_t *EventsSupported; + uint32_t DevicePropertiesSupported_len; + uint16_t *DevicePropertiesSupported; + uint32_t CaptureFormats_len; + uint16_t *CaptureFormats; + uint32_t ImageFormats_len; + uint16_t *ImageFormats; + char *Manufacturer; + char *Model; + char *DeviceVersion; + char *SerialNumber; +}; +typedef struct _PTPDeviceInfo PTPDeviceInfo; + +/* PTP storageIDs structute (returned by GetStorageIDs) */ + +struct _PTPStorageIDs { + uint32_t n; + uint32_t *Storage; +}; +typedef struct _PTPStorageIDs PTPStorageIDs; + +/* PTP StorageInfo structure (returned by GetStorageInfo) */ +struct _PTPStorageInfo { + uint16_t StorageType; + uint16_t FilesystemType; + uint16_t AccessCapability; + uint64_t MaxCapability; + uint64_t FreeSpaceInBytes; + uint32_t FreeSpaceInImages; + char *StorageDescription; + char *VolumeLabel; +}; +typedef struct _PTPStorageInfo PTPStorageInfo; + +/* PTP objecthandles structure (returned by GetObjectHandles) */ + +struct _PTPObjectHandles { + uint32_t n; + uint32_t *Handler; +}; +typedef struct _PTPObjectHandles PTPObjectHandles; + +#define PTP_HANDLER_SPECIAL 0xffffffff +#define PTP_HANDLER_ROOT 0x00000000 + + +/* PTP objectinfo structure (returned by GetObjectInfo) */ + +struct _PTPObjectInfo { + uint32_t StorageID; + uint16_t ObjectFormat; + uint16_t ProtectionStatus; + /* In the regular objectinfo this is 32bit, + * but we keep the general object size here + * that also arrives via other methods and so + * use 64bit */ + uint64_t ObjectCompressedSize; + uint16_t ThumbFormat; + uint32_t ThumbCompressedSize; + uint32_t ThumbPixWidth; + uint32_t ThumbPixHeight; + uint32_t ImagePixWidth; + uint32_t ImagePixHeight; + uint32_t ImageBitDepth; + uint32_t ParentObject; + uint16_t AssociationType; + uint32_t AssociationDesc; + uint32_t SequenceNumber; + char *Filename; + time_t CaptureDate; + time_t ModificationDate; + char *Keywords; +}; +typedef struct _PTPObjectInfo PTPObjectInfo; + +struct _PTPObjectFilesystemInfo { + uint32_t ObjectHandle; + uint32_t StorageID; + uint16_t ObjectFormat; + uint16_t ProtectionStatus; + uint64_t ObjectCompressedSize64; + uint32_t ParentObject; + uint16_t AssociationType; + uint32_t AssociationDesc; + uint32_t SequenceNumber; + char *Filename; + time_t ModificationDate; +}; +typedef struct _PTPObjectFilesystemInfo PTPObjectFilesystemInfo; + +/* max ptp string length INCLUDING terminating null character */ + +#define PTP_MAXSTRLEN 255 + +/* PTP Object Format Codes */ + +/* ancillary formats */ +#define PTP_OFC_Undefined 0x3000 +#define PTP_OFC_Defined 0x3800 +#define PTP_OFC_Association 0x3001 +#define PTP_OFC_Script 0x3002 +#define PTP_OFC_Executable 0x3003 +#define PTP_OFC_Text 0x3004 +#define PTP_OFC_HTML 0x3005 +#define PTP_OFC_DPOF 0x3006 +#define PTP_OFC_AIFF 0x3007 +#define PTP_OFC_WAV 0x3008 +#define PTP_OFC_MP3 0x3009 +#define PTP_OFC_AVI 0x300A +#define PTP_OFC_MPEG 0x300B +#define PTP_OFC_ASF 0x300C +#define PTP_OFC_QT 0x300D /* guessing */ +/* image formats */ +#define PTP_OFC_EXIF_JPEG 0x3801 +#define PTP_OFC_TIFF_EP 0x3802 +#define PTP_OFC_FlashPix 0x3803 +#define PTP_OFC_BMP 0x3804 +#define PTP_OFC_CIFF 0x3805 +#define PTP_OFC_Undefined_0x3806 0x3806 +#define PTP_OFC_GIF 0x3807 +#define PTP_OFC_JFIF 0x3808 +#define PTP_OFC_PCD 0x3809 +#define PTP_OFC_PICT 0x380A +#define PTP_OFC_PNG 0x380B +#define PTP_OFC_Undefined_0x380C 0x380C +#define PTP_OFC_TIFF 0x380D +#define PTP_OFC_TIFF_IT 0x380E +#define PTP_OFC_JP2 0x380F +#define PTP_OFC_JPX 0x3810 +/* ptp v1.1 has only DNG new */ +#define PTP_OFC_DNG 0x3811 +/* Eastman Kodak extension ancillary format */ +#define PTP_OFC_EK_M3U 0xb002 +/* Canon extension */ +#define PTP_OFC_CANON_CRW 0xb101 +#define PTP_OFC_CANON_CRW3 0xb103 +#define PTP_OFC_CANON_MOV 0xb104 +#define PTP_OFC_CANON_MOV2 0xb105 +#define PTP_OFC_CANON_CR3 0xb108 +/* CHDK specific raw mode */ +#define PTP_OFC_CANON_CHDK_CRW 0xb1ff +/* Sony */ +#define PTP_OFC_SONY_RAW 0xb101 +/* MTP extensions */ +#define PTP_OFC_MTP_MediaCard 0xb211 +#define PTP_OFC_MTP_MediaCardGroup 0xb212 +#define PTP_OFC_MTP_Encounter 0xb213 +#define PTP_OFC_MTP_EncounterBox 0xb214 +#define PTP_OFC_MTP_M4A 0xb215 +#define PTP_OFC_MTP_ZUNEUNDEFINED 0xb217 /* Unknown file type */ +#define PTP_OFC_MTP_Firmware 0xb802 +#define PTP_OFC_MTP_WindowsImageFormat 0xb881 +#define PTP_OFC_MTP_UndefinedAudio 0xb900 +#define PTP_OFC_MTP_WMA 0xb901 +#define PTP_OFC_MTP_OGG 0xb902 +#define PTP_OFC_MTP_AAC 0xb903 +#define PTP_OFC_MTP_AudibleCodec 0xb904 +#define PTP_OFC_MTP_FLAC 0xb906 +#define PTP_OFC_MTP_SamsungPlaylist 0xb909 +#define PTP_OFC_MTP_UndefinedVideo 0xb980 +#define PTP_OFC_MTP_WMV 0xb981 +#define PTP_OFC_MTP_MP4 0xb982 +#define PTP_OFC_MTP_MP2 0xb983 +#define PTP_OFC_MTP_3GP 0xb984 +#define PTP_OFC_MTP_UndefinedCollection 0xba00 +#define PTP_OFC_MTP_AbstractMultimediaAlbum 0xba01 +#define PTP_OFC_MTP_AbstractImageAlbum 0xba02 +#define PTP_OFC_MTP_AbstractAudioAlbum 0xba03 +#define PTP_OFC_MTP_AbstractVideoAlbum 0xba04 +#define PTP_OFC_MTP_AbstractAudioVideoPlaylist 0xba05 +#define PTP_OFC_MTP_AbstractContactGroup 0xba06 +#define PTP_OFC_MTP_AbstractMessageFolder 0xba07 +#define PTP_OFC_MTP_AbstractChapteredProduction 0xba08 +#define PTP_OFC_MTP_AbstractAudioPlaylist 0xba09 +#define PTP_OFC_MTP_AbstractVideoPlaylist 0xba0a +#define PTP_OFC_MTP_AbstractMediacast 0xba0b +#define PTP_OFC_MTP_WPLPlaylist 0xba10 +#define PTP_OFC_MTP_M3UPlaylist 0xba11 +#define PTP_OFC_MTP_MPLPlaylist 0xba12 +#define PTP_OFC_MTP_ASXPlaylist 0xba13 +#define PTP_OFC_MTP_PLSPlaylist 0xba14 +#define PTP_OFC_MTP_UndefinedDocument 0xba80 +#define PTP_OFC_MTP_AbstractDocument 0xba81 +#define PTP_OFC_MTP_XMLDocument 0xba82 +#define PTP_OFC_MTP_MSWordDocument 0xba83 +#define PTP_OFC_MTP_MHTCompiledHTMLDocument 0xba84 +#define PTP_OFC_MTP_MSExcelSpreadsheetXLS 0xba85 +#define PTP_OFC_MTP_MSPowerpointPresentationPPT 0xba86 +#define PTP_OFC_MTP_UndefinedMessage 0xbb00 +#define PTP_OFC_MTP_AbstractMessage 0xbb01 +#define PTP_OFC_MTP_UndefinedContact 0xbb80 +#define PTP_OFC_MTP_AbstractContact 0xbb81 +#define PTP_OFC_MTP_vCard2 0xbb82 +#define PTP_OFC_MTP_vCard3 0xbb83 +#define PTP_OFC_MTP_UndefinedCalendarItem 0xbe00 +#define PTP_OFC_MTP_AbstractCalendarItem 0xbe01 +#define PTP_OFC_MTP_vCalendar1 0xbe02 +#define PTP_OFC_MTP_vCalendar2 0xbe03 +#define PTP_OFC_MTP_UndefinedWindowsExecutable 0xbe80 +#define PTP_OFC_MTP_MediaCast 0xbe81 +#define PTP_OFC_MTP_Section 0xbe82 + +/* PTP Association Types */ +#define PTP_AT_Undefined 0x0000 +#define PTP_AT_GenericFolder 0x0001 +#define PTP_AT_Album 0x0002 +#define PTP_AT_TimeSequence 0x0003 +#define PTP_AT_HorizontalPanoramic 0x0004 +#define PTP_AT_VerticalPanoramic 0x0005 +#define PTP_AT_2DPanoramic 0x0006 +#define PTP_AT_AncillaryData 0x0007 + +/* PTP Protection Status */ + +#define PTP_PS_NoProtection 0x0000 +#define PTP_PS_ReadOnly 0x0001 +#define PTP_PS_MTP_ReadOnlyData 0x8002 +#define PTP_PS_MTP_NonTransferableData 0x8003 + +/* PTP Storage Types */ + +#define PTP_ST_Undefined 0x0000 +#define PTP_ST_FixedROM 0x0001 +#define PTP_ST_RemovableROM 0x0002 +#define PTP_ST_FixedRAM 0x0003 +#define PTP_ST_RemovableRAM 0x0004 + +/* PTP FilesystemType Values */ + +#define PTP_FST_Undefined 0x0000 +#define PTP_FST_GenericFlat 0x0001 +#define PTP_FST_GenericHierarchical 0x0002 +#define PTP_FST_DCF 0x0003 + +/* PTP StorageInfo AccessCapability Values */ + +#define PTP_AC_ReadWrite 0x0000 +#define PTP_AC_ReadOnly 0x0001 +#define PTP_AC_ReadOnly_with_Object_Deletion 0x0002 + +/* Property Describing Dataset, Range Form */ + +union _PTPPropertyValue { + char *str; /* common string, malloced */ + uint8_t u8; + int8_t i8; + uint16_t u16; + int16_t i16; + uint32_t u32; + int32_t i32; + uint64_t u64; + int64_t i64; + /* XXXX: 128 bit signed and unsigned missing */ + struct array { + uint32_t count; + union _PTPPropertyValue *v; /* malloced, count elements */ + } a; +}; + +typedef union _PTPPropertyValue PTPPropertyValue; + +/* Metadata lists for MTP operations */ +struct _MTPProperties { + uint16_t property; + uint16_t datatype; + uint32_t ObjectHandle; + PTPPropertyValue propval; +}; +typedef struct _MTPProperties MTPProperties; + +struct _PTPPropDescRangeForm { + PTPPropertyValue MinimumValue; + PTPPropertyValue MaximumValue; + PTPPropertyValue StepSize; +}; +typedef struct _PTPPropDescRangeForm PTPPropDescRangeForm; + +/* Property Describing Dataset, Enum Form */ + +struct _PTPPropDescEnumForm { + uint16_t NumberOfValues; + PTPPropertyValue *SupportedValue; /* malloced */ +}; +typedef struct _PTPPropDescEnumForm PTPPropDescEnumForm; + +/* Device Property Describing Dataset (DevicePropDesc) */ + +struct _PTPDevicePropDesc { + uint16_t DevicePropertyCode; + uint16_t DataType; + uint8_t GetSet; + PTPPropertyValue FactoryDefaultValue; + PTPPropertyValue CurrentValue; + uint8_t FormFlag; + union { + PTPPropDescEnumForm Enum; + PTPPropDescRangeForm Range; + } FORM; +}; +typedef struct _PTPDevicePropDesc PTPDevicePropDesc; + +/* Object Property Describing Dataset (DevicePropDesc) */ + +struct _PTPObjectPropDesc { + uint16_t ObjectPropertyCode; + uint16_t DataType; + uint8_t GetSet; + PTPPropertyValue FactoryDefaultValue; + uint32_t GroupCode; + uint8_t FormFlag; + union { + PTPPropDescEnumForm Enum; + PTPPropDescRangeForm Range; + } FORM; +}; +typedef struct _PTPObjectPropDesc PTPObjectPropDesc; + +/* Canon filesystem's folder entry Dataset */ + +#define PTP_CANON_FilenameBufferLen 13 +#define PTP_CANON_FolderEntryLen 28 + +struct _PTPCANONFolderEntry { + uint32_t ObjectHandle; + uint16_t ObjectFormatCode; + uint8_t Flags; + uint32_t ObjectSize; + time_t Time; + char Filename[PTP_CANON_FilenameBufferLen]; + + uint32_t StorageID; +}; +typedef struct _PTPCANONFolderEntry PTPCANONFolderEntry; + +/* Nikon Tone Curve Data */ + +#define PTP_NIKON_MaxCurvePoints 19 + +struct _PTPNIKONCoordinatePair { + uint8_t X; + uint8_t Y; +}; + +typedef struct _PTPNIKONCoordinatePair PTPNIKONCoordinatePair; + +struct _PTPNTCCoordinatePair { + uint8_t X; + uint8_t Y; +}; + +typedef struct _PTPNTCCoordinatePair PTPNTCCoordinatePair; + +struct _PTPNIKONCurveData { + char static_preamble[6]; + uint8_t XAxisStartPoint; + uint8_t XAxisEndPoint; + uint8_t YAxisStartPoint; + uint8_t YAxisEndPoint; + uint8_t MidPointIntegerPart; + uint8_t MidPointDecimalPart; + uint8_t NCoordinates; + PTPNIKONCoordinatePair CurveCoordinates[PTP_NIKON_MaxCurvePoints]; +}; + +typedef struct _PTPNIKONCurveData PTPNIKONCurveData; + +struct _PTPEKTextParams { + char *title; + char *line[5]; +}; +typedef struct _PTPEKTextParams PTPEKTextParams; + +/* Nikon Wifi profiles */ + +struct _PTPNIKONWifiProfile { + /* Values valid both when reading and writing profiles */ + char profile_name[17]; + uint8_t device_type; + uint8_t icon_type; + char essid[33]; + + /* Values only valid when reading. Some of these are in the write packet, + * but are set automatically, like id, display_order and creation_date. */ + uint8_t id; + uint8_t valid; + uint8_t display_order; + char creation_date[16]; + char lastusage_date[16]; + + /* Values only valid when writing */ + uint32_t ip_address; + uint8_t subnet_mask; /* first zero bit position, e.g. 24 for 255.255.255.0 */ + uint32_t gateway_address; + uint8_t address_mode; /* 0 - Manual, 2-3 - DHCP ad-hoc/managed*/ + uint8_t access_mode; /* 0 - Managed, 1 - Adhoc */ + uint8_t wifi_channel; /* 1-11 */ + uint8_t authentification; /* 0 - Open, 1 - Shared, 2 - WPA-PSK */ + uint8_t encryption; /* 0 - None, 1 - WEP 64bit, 2 - WEP 128bit (not supported: 3 - TKIP) */ + uint8_t key[64]; + uint8_t key_nr; +/* char guid[16]; */ +}; + +typedef struct _PTPNIKONWifiProfile PTPNIKONWifiProfile; + +enum _PTPCanon_changes_types { + PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN, + PTP_CANON_EOS_CHANGES_TYPE_OBJECTINFO, + PTP_CANON_EOS_CHANGES_TYPE_OBJECTTRANSFER, + PTP_CANON_EOS_CHANGES_TYPE_PROPERTY, + PTP_CANON_EOS_CHANGES_TYPE_CAMERASTATUS, + PTP_CANON_EOS_CHANGES_TYPE_FOCUSINFO, + PTP_CANON_EOS_CHANGES_TYPE_FOCUSMASK, + PTP_CANON_EOS_CHANGES_TYPE_OBJECTREMOVED, + PTP_CANON_EOS_CHANGES_TYPE_OBJECTINFO_CHANGE, + PTP_CANON_EOS_CHANGES_TYPE_OBJECTCONTENT_CHANGE +}; + +struct _PTPCanon_New_Object { + uint32_t oid; + PTPObjectInfo oi; +}; + +struct _PTPCanon_changes_entry { + enum _PTPCanon_changes_types type; + union { + struct _PTPCanon_New_Object object; /* TYPE_OBJECTINFO */ + char *info; + uint16_t propid; + int status; + } u; +}; +typedef struct _PTPCanon_changes_entry PTPCanon_changes_entry; + +typedef struct _PTPCanon_Property { + uint32_t size; + uint32_t proptype; + unsigned char *data; + + /* fill out for queries */ + PTPDevicePropDesc dpd; +} PTPCanon_Property; + +typedef struct _PTPCanonEOSDeviceInfo { + /* length */ + uint32_t EventsSupported_len; + uint32_t *EventsSupported; + + uint32_t DevicePropertiesSupported_len; + uint32_t *DevicePropertiesSupported; + + uint32_t unk_len; + uint32_t *unk; +} PTPCanonEOSDeviceInfo; + +/* DataType Codes */ + +#define PTP_DTC_UNDEF 0x0000 +#define PTP_DTC_INT8 0x0001 +#define PTP_DTC_UINT8 0x0002 +#define PTP_DTC_INT16 0x0003 +#define PTP_DTC_UINT16 0x0004 +#define PTP_DTC_INT32 0x0005 +#define PTP_DTC_UINT32 0x0006 +#define PTP_DTC_INT64 0x0007 +#define PTP_DTC_UINT64 0x0008 +#define PTP_DTC_INT128 0x0009 +#define PTP_DTC_UINT128 0x000A + +#define PTP_DTC_ARRAY_MASK 0x4000 + +#define PTP_DTC_AINT8 (PTP_DTC_ARRAY_MASK | PTP_DTC_INT8) +#define PTP_DTC_AUINT8 (PTP_DTC_ARRAY_MASK | PTP_DTC_UINT8) +#define PTP_DTC_AINT16 (PTP_DTC_ARRAY_MASK | PTP_DTC_INT16) +#define PTP_DTC_AUINT16 (PTP_DTC_ARRAY_MASK | PTP_DTC_UINT16) +#define PTP_DTC_AINT32 (PTP_DTC_ARRAY_MASK | PTP_DTC_INT32) +#define PTP_DTC_AUINT32 (PTP_DTC_ARRAY_MASK | PTP_DTC_UINT32) +#define PTP_DTC_AINT64 (PTP_DTC_ARRAY_MASK | PTP_DTC_INT64) +#define PTP_DTC_AUINT64 (PTP_DTC_ARRAY_MASK | PTP_DTC_UINT64) +#define PTP_DTC_AINT128 (PTP_DTC_ARRAY_MASK | PTP_DTC_INT128) +#define PTP_DTC_AUINT128 (PTP_DTC_ARRAY_MASK | PTP_DTC_UINT128) + +#define PTP_DTC_STR 0xFFFF + +/* Device Properties Codes */ + +/* PTP v1.0 property codes */ +#define PTP_DPC_Undefined 0x5000 +#define PTP_DPC_BatteryLevel 0x5001 +#define PTP_DPC_FunctionalMode 0x5002 +#define PTP_DPC_ImageSize 0x5003 +#define PTP_DPC_CompressionSetting 0x5004 +#define PTP_DPC_WhiteBalance 0x5005 +#define PTP_DPC_RGBGain 0x5006 +#define PTP_DPC_FNumber 0x5007 +#define PTP_DPC_FocalLength 0x5008 +#define PTP_DPC_FocusDistance 0x5009 +#define PTP_DPC_FocusMode 0x500A +#define PTP_DPC_ExposureMeteringMode 0x500B +#define PTP_DPC_FlashMode 0x500C +#define PTP_DPC_ExposureTime 0x500D +#define PTP_DPC_ExposureProgramMode 0x500E +#define PTP_DPC_ExposureIndex 0x500F +#define PTP_DPC_ExposureBiasCompensation 0x5010 +#define PTP_DPC_DateTime 0x5011 +#define PTP_DPC_CaptureDelay 0x5012 +#define PTP_DPC_StillCaptureMode 0x5013 +#define PTP_DPC_Contrast 0x5014 +#define PTP_DPC_Sharpness 0x5015 +#define PTP_DPC_DigitalZoom 0x5016 +#define PTP_DPC_EffectMode 0x5017 +#define PTP_DPC_BurstNumber 0x5018 +#define PTP_DPC_BurstInterval 0x5019 +#define PTP_DPC_TimelapseNumber 0x501A +#define PTP_DPC_TimelapseInterval 0x501B +#define PTP_DPC_FocusMeteringMode 0x501C +#define PTP_DPC_UploadURL 0x501D +#define PTP_DPC_Artist 0x501E +#define PTP_DPC_CopyrightInfo 0x501F +/* PTP v1.1 property codes */ +#define PTP_DPC_SupportedStreams 0x5020 +#define PTP_DPC_EnabledStreams 0x5021 +#define PTP_DPC_VideoFormat 0x5022 +#define PTP_DPC_VideoResolution 0x5023 +#define PTP_DPC_VideoQuality 0x5024 +#define PTP_DPC_VideoFrameRate 0x5025 +#define PTP_DPC_VideoContrast 0x5026 +#define PTP_DPC_VideoBrightness 0x5027 +#define PTP_DPC_AudioFormat 0x5028 +#define PTP_DPC_AudioBitrate 0x5029 +#define PTP_DPC_AudioSamplingRate 0x502A +#define PTP_DPC_AudioBitPerSample 0x502B +#define PTP_DPC_AudioVolume 0x502C + +/* Proprietary vendor extension device property mask */ +#define PTP_DPC_EXTENSION_MASK 0xF000 +#define PTP_DPC_EXTENSION 0xD000 + +/* Zune extension device property codes */ +#define PTP_DPC_MTP_ZUNE_UNKNOWN1 0xD181 +#define PTP_DPC_MTP_ZUNE_UNKNOWN2 0xD132 +#define PTP_DPC_MTP_ZUNE_UNKNOWN3 0xD215 +#define PTP_DPC_MTP_ZUNE_UNKNOWN4 0xD216 + +/* Eastman Kodak extension device property codes */ +#define PTP_DPC_EK_ColorTemperature 0xD001 +#define PTP_DPC_EK_DateTimeStampFormat 0xD002 +#define PTP_DPC_EK_BeepMode 0xD003 +#define PTP_DPC_EK_VideoOut 0xD004 +#define PTP_DPC_EK_PowerSaving 0xD005 +#define PTP_DPC_EK_UI_Language 0xD006 + +/* Canon extension device property codes */ +#define PTP_DPC_CANON_BeepMode 0xD001 +#define PTP_DPC_CANON_BatteryKind 0xD002 +#define PTP_DPC_CANON_BatteryStatus 0xD003 +#define PTP_DPC_CANON_UILockType 0xD004 +#define PTP_DPC_CANON_CameraMode 0xD005 +#define PTP_DPC_CANON_ImageQuality 0xD006 +#define PTP_DPC_CANON_FullViewFileFormat 0xD007 +#define PTP_DPC_CANON_ImageSize 0xD008 +#define PTP_DPC_CANON_SelfTime 0xD009 +#define PTP_DPC_CANON_FlashMode 0xD00A +#define PTP_DPC_CANON_Beep 0xD00B +#define PTP_DPC_CANON_ShootingMode 0xD00C +#define PTP_DPC_CANON_ImageMode 0xD00D +#define PTP_DPC_CANON_DriveMode 0xD00E +#define PTP_DPC_CANON_EZoom 0xD00F +#define PTP_DPC_CANON_MeteringMode 0xD010 +#define PTP_DPC_CANON_AFDistance 0xD011 +#define PTP_DPC_CANON_FocusingPoint 0xD012 +#define PTP_DPC_CANON_WhiteBalance 0xD013 +#define PTP_DPC_CANON_SlowShutterSetting 0xD014 +#define PTP_DPC_CANON_AFMode 0xD015 +#define PTP_DPC_CANON_ImageStabilization 0xD016 +#define PTP_DPC_CANON_Contrast 0xD017 +#define PTP_DPC_CANON_ColorGain 0xD018 +#define PTP_DPC_CANON_Sharpness 0xD019 +#define PTP_DPC_CANON_Sensitivity 0xD01A +#define PTP_DPC_CANON_ParameterSet 0xD01B +#define PTP_DPC_CANON_ISOSpeed 0xD01C +#define PTP_DPC_CANON_Aperture 0xD01D +#define PTP_DPC_CANON_ShutterSpeed 0xD01E +#define PTP_DPC_CANON_ExpCompensation 0xD01F +#define PTP_DPC_CANON_FlashCompensation 0xD020 +#define PTP_DPC_CANON_AEBExposureCompensation 0xD021 +#define PTP_DPC_CANON_AvOpen 0xD023 +#define PTP_DPC_CANON_AvMax 0xD024 +#define PTP_DPC_CANON_FocalLength 0xD025 +#define PTP_DPC_CANON_FocalLengthTele 0xD026 +#define PTP_DPC_CANON_FocalLengthWide 0xD027 +#define PTP_DPC_CANON_FocalLengthDenominator 0xD028 +#define PTP_DPC_CANON_CaptureTransferMode 0xD029 +#define CANON_TRANSFER_ENTIRE_IMAGE_TO_PC 0x0002 +#define CANON_TRANSFER_SAVE_THUMBNAIL_TO_DEVICE 0x0004 +#define CANON_TRANSFER_SAVE_IMAGE_TO_DEVICE 0x0008 +/* we use those values: */ +#define CANON_TRANSFER_MEMORY (2|1) +#define CANON_TRANSFER_CARD (8|4|1) + +#define PTP_DPC_CANON_Zoom 0xD02A +#define PTP_DPC_CANON_NamePrefix 0xD02B +#define PTP_DPC_CANON_SizeQualityMode 0xD02C +#define PTP_DPC_CANON_SupportedThumbSize 0xD02D +#define PTP_DPC_CANON_SizeOfOutputDataFromCamera 0xD02E +#define PTP_DPC_CANON_SizeOfInputDataToCamera 0xD02F +#define PTP_DPC_CANON_RemoteAPIVersion 0xD030 +#define PTP_DPC_CANON_FirmwareVersion 0xD031 +#define PTP_DPC_CANON_CameraModel 0xD032 +#define PTP_DPC_CANON_CameraOwner 0xD033 +#define PTP_DPC_CANON_UnixTime 0xD034 +#define PTP_DPC_CANON_CameraBodyID 0xD035 +#define PTP_DPC_CANON_CameraOutput 0xD036 +#define PTP_DPC_CANON_DispAv 0xD037 +#define PTP_DPC_CANON_AvOpenApex 0xD038 +#define PTP_DPC_CANON_DZoomMagnification 0xD039 +#define PTP_DPC_CANON_MlSpotPos 0xD03A +#define PTP_DPC_CANON_DispAvMax 0xD03B +#define PTP_DPC_CANON_AvMaxApex 0xD03C +#define PTP_DPC_CANON_EZoomStartPosition 0xD03D +#define PTP_DPC_CANON_FocalLengthOfTele 0xD03E +#define PTP_DPC_CANON_EZoomSizeOfTele 0xD03F +#define PTP_DPC_CANON_PhotoEffect 0xD040 +#define PTP_DPC_CANON_AssistLight 0xD041 +#define PTP_DPC_CANON_FlashQuantityCount 0xD042 +#define PTP_DPC_CANON_RotationAngle 0xD043 +#define PTP_DPC_CANON_RotationScene 0xD044 +#define PTP_DPC_CANON_EventEmulateMode 0xD045 +#define PTP_DPC_CANON_DPOFVersion 0xD046 +#define PTP_DPC_CANON_TypeOfSupportedSlideShow 0xD047 +#define PTP_DPC_CANON_AverageFilesizes 0xD048 +#define PTP_DPC_CANON_ModelID 0xD049 + +#define PTP_DPC_CANON_EOS_PowerZoomPosition 0xD055 +#define PTP_DPC_CANON_EOS_StrobeSettingSimple 0xD056 +#define PTP_DPC_CANON_EOS_ConnectTrigger 0xD058 +#define PTP_DPC_CANON_EOS_ChangeCameraMode 0xD059 + +/* From EOS 400D trace. */ +#define PTP_DPC_CANON_EOS_Aperture 0xD101 +#define PTP_DPC_CANON_EOS_ShutterSpeed 0xD102 +#define PTP_DPC_CANON_EOS_ISOSpeed 0xD103 +#define PTP_DPC_CANON_EOS_ExpCompensation 0xD104 +#define PTP_DPC_CANON_EOS_AutoExposureMode 0xD105 +#define PTP_DPC_CANON_EOS_DriveMode 0xD106 +#define PTP_DPC_CANON_EOS_MeteringMode 0xD107 +#define PTP_DPC_CANON_EOS_FocusMode 0xD108 +#define PTP_DPC_CANON_EOS_WhiteBalance 0xD109 +#define PTP_DPC_CANON_EOS_ColorTemperature 0xD10A +#define PTP_DPC_CANON_EOS_WhiteBalanceAdjustA 0xD10B +#define PTP_DPC_CANON_EOS_WhiteBalanceAdjustB 0xD10C +#define PTP_DPC_CANON_EOS_WhiteBalanceXA 0xD10D +#define PTP_DPC_CANON_EOS_WhiteBalanceXB 0xD10E +#define PTP_DPC_CANON_EOS_ColorSpace 0xD10F +#define PTP_DPC_CANON_EOS_PictureStyle 0xD110 +#define PTP_DPC_CANON_EOS_BatteryPower 0xD111 +#define PTP_DPC_CANON_EOS_BatterySelect 0xD112 +#define PTP_DPC_CANON_EOS_CameraTime 0xD113 +#define PTP_DPC_CANON_EOS_AutoPowerOff 0xD114 +#define PTP_DPC_CANON_EOS_Owner 0xD115 +#define PTP_DPC_CANON_EOS_ModelID 0xD116 +#define PTP_DPC_CANON_EOS_PTPExtensionVersion 0xD119 +#define PTP_DPC_CANON_EOS_DPOFVersion 0xD11A +#define PTP_DPC_CANON_EOS_AvailableShots 0xD11B +#define PTP_CANON_EOS_CAPTUREDEST_HD 4 +#define PTP_DPC_CANON_EOS_CaptureDestination 0xD11C +#define PTP_DPC_CANON_EOS_BracketMode 0xD11D +#define PTP_DPC_CANON_EOS_CurrentStorage 0xD11E +#define PTP_DPC_CANON_EOS_CurrentFolder 0xD11F +#define PTP_DPC_CANON_EOS_ImageFormat 0xD120 /* file setting */ +#define PTP_DPC_CANON_EOS_ImageFormatCF 0xD121 /* file setting CF */ +#define PTP_DPC_CANON_EOS_ImageFormatSD 0xD122 /* file setting SD */ +#define PTP_DPC_CANON_EOS_ImageFormatExtHD 0xD123 /* file setting exthd */ +#define PTP_DPC_CANON_EOS_RefocusState 0xD124 +#define PTP_DPC_CANON_EOS_CameraNickname 0xD125 +#define PTP_DPC_CANON_EOS_StroboSettingExpCompositionControl 0xD126 +#define PTP_DPC_CANON_EOS_ConnectStatus 0xD127 +#define PTP_DPC_CANON_EOS_LensBarrelStatus 0xD128 +#define PTP_DPC_CANON_EOS_SilentShutterSetting 0xD129 +#define PTP_DPC_CANON_EOS_LV_AF_EyeDetect 0xD12C +#define PTP_DPC_CANON_EOS_AutoTransMobile 0xD12D +#define PTP_DPC_CANON_EOS_URLSupportFormat 0xD12E +#define PTP_DPC_CANON_EOS_SpecialAcc 0xD12F +#define PTP_DPC_CANON_EOS_CompressionS 0xD130 +#define PTP_DPC_CANON_EOS_CompressionM1 0xD131 +#define PTP_DPC_CANON_EOS_CompressionM2 0xD132 +#define PTP_DPC_CANON_EOS_CompressionL 0xD133 +#define PTP_DPC_CANON_EOS_IntervalShootSetting 0xD134 +#define PTP_DPC_CANON_EOS_IntervalShootState 0xD135 +#define PTP_DPC_CANON_EOS_PushMode 0xD136 +#define PTP_DPC_CANON_EOS_LvCFilterKind 0xD137 +#define PTP_DPC_CANON_EOS_AEModeDial 0xD138 +#define PTP_DPC_CANON_EOS_AEModeCustom 0xD139 +#define PTP_DPC_CANON_EOS_MirrorUpSetting 0xD13A +#define PTP_DPC_CANON_EOS_HighlightTonePriority 0xD13B +#define PTP_DPC_CANON_EOS_AFSelectFocusArea 0xD13C +#define PTP_DPC_CANON_EOS_HDRSetting 0xD13D +#define PTP_DPC_CANON_EOS_TimeShootSetting 0xD13E +#define PTP_DPC_CANON_EOS_NFCApplicationInfo 0xD13F +#define PTP_DPC_CANON_EOS_PCWhiteBalance1 0xD140 +#define PTP_DPC_CANON_EOS_PCWhiteBalance2 0xD141 +#define PTP_DPC_CANON_EOS_PCWhiteBalance3 0xD142 +#define PTP_DPC_CANON_EOS_PCWhiteBalance4 0xD143 +#define PTP_DPC_CANON_EOS_PCWhiteBalance5 0xD144 +#define PTP_DPC_CANON_EOS_MWhiteBalance 0xD145 +#define PTP_DPC_CANON_EOS_MWhiteBalanceEx 0xD146 +#define PTP_DPC_CANON_EOS_PowerZoomSpeed 0xD149 +#define PTP_DPC_CANON_EOS_NetworkServerRegion 0xD14A +#define PTP_DPC_CANON_EOS_GPSLogCtrl 0xD14B +#define PTP_DPC_CANON_EOS_GPSLogListNum 0xD14C +#define PTP_DPC_CANON_EOS_UnknownPropD14D 0xD14D /*found in Canon EOS 5D M3*/ +#define PTP_DPC_CANON_EOS_PictureStyleStandard 0xD150 +#define PTP_DPC_CANON_EOS_PictureStylePortrait 0xD151 +#define PTP_DPC_CANON_EOS_PictureStyleLandscape 0xD152 +#define PTP_DPC_CANON_EOS_PictureStyleNeutral 0xD153 +#define PTP_DPC_CANON_EOS_PictureStyleFaithful 0xD154 +#define PTP_DPC_CANON_EOS_PictureStyleBlackWhite 0xD155 +#define PTP_DPC_CANON_EOS_PictureStyleAuto 0xD156 +#define PTP_DPC_CANON_EOS_PictureStyleExStandard 0xD157 +#define PTP_DPC_CANON_EOS_PictureStyleExPortrait 0xD158 +#define PTP_DPC_CANON_EOS_PictureStyleExLandscape 0xD159 +#define PTP_DPC_CANON_EOS_PictureStyleExNeutral 0xD15A +#define PTP_DPC_CANON_EOS_PictureStyleExFaithful 0xD15B +#define PTP_DPC_CANON_EOS_PictureStyleExBlackWhite 0xD15C +#define PTP_DPC_CANON_EOS_PictureStyleExAuto 0xD15D +#define PTP_DPC_CANON_EOS_PictureStyleExFineDetail 0xD15E +#define PTP_DPC_CANON_EOS_PictureStyleUserSet1 0xD160 +#define PTP_DPC_CANON_EOS_PictureStyleUserSet2 0xD161 +#define PTP_DPC_CANON_EOS_PictureStyleUserSet3 0xD162 +#define PTP_DPC_CANON_EOS_PictureStyleExUserSet1 0xD163 +#define PTP_DPC_CANON_EOS_PictureStyleExUserSet2 0xD164 +#define PTP_DPC_CANON_EOS_PictureStyleExUserSet3 0xD165 +#define PTP_DPC_CANON_EOS_MovieAVModeFine 0xD166 +#define PTP_DPC_CANON_EOS_ShutterReleaseCounter 0xD167 +#define PTP_DPC_CANON_EOS_AvailableImageSize 0xD168 +#define PTP_DPC_CANON_EOS_ErrorHistory 0xD169 +#define PTP_DPC_CANON_EOS_LensExchangeHistory 0xD16A +#define PTP_DPC_CANON_EOS_StroboExchangeHistory 0xD16B +#define PTP_DPC_CANON_EOS_PictureStyleParam1 0xD170 +#define PTP_DPC_CANON_EOS_PictureStyleParam2 0xD171 +#define PTP_DPC_CANON_EOS_PictureStyleParam3 0xD172 +#define PTP_DPC_CANON_EOS_MovieRecordVolumeLine 0xD174 +#define PTP_DPC_CANON_EOS_NetworkCommunicationMode 0xD175 +#define PTP_DPC_CANON_EOS_CanonLogGamma 0xD176 +#define PTP_DPC_CANON_EOS_SmartphoneShowImageConfig 0xD177 +#define PTP_DPC_CANON_EOS_HighISOSettingNoiseReduction 0xD178 +#define PTP_DPC_CANON_EOS_MovieServoAF 0xD179 +#define PTP_DPC_CANON_EOS_ContinuousAFValid 0xD17A +#define PTP_DPC_CANON_EOS_Attenuator 0xD17B +#define PTP_DPC_CANON_EOS_UTCTime 0xD17C +#define PTP_DPC_CANON_EOS_Timezone 0xD17D +#define PTP_DPC_CANON_EOS_Summertime 0xD17E +#define PTP_DPC_CANON_EOS_FlavorLUTParams 0xD17F +#define PTP_DPC_CANON_EOS_CustomFunc1 0xD180 +#define PTP_DPC_CANON_EOS_CustomFunc2 0xD181 +#define PTP_DPC_CANON_EOS_CustomFunc3 0xD182 +#define PTP_DPC_CANON_EOS_CustomFunc4 0xD183 +#define PTP_DPC_CANON_EOS_CustomFunc5 0xD184 +#define PTP_DPC_CANON_EOS_CustomFunc6 0xD185 +#define PTP_DPC_CANON_EOS_CustomFunc7 0xD186 +#define PTP_DPC_CANON_EOS_CustomFunc8 0xD187 +#define PTP_DPC_CANON_EOS_CustomFunc9 0xD188 +#define PTP_DPC_CANON_EOS_CustomFunc10 0xD189 +#define PTP_DPC_CANON_EOS_CustomFunc11 0xD18a +#define PTP_DPC_CANON_EOS_CustomFunc12 0xD18b +#define PTP_DPC_CANON_EOS_CustomFunc13 0xD18c +#define PTP_DPC_CANON_EOS_CustomFunc14 0xD18d +#define PTP_DPC_CANON_EOS_CustomFunc15 0xD18e +#define PTP_DPC_CANON_EOS_CustomFunc16 0xD18f +#define PTP_DPC_CANON_EOS_CustomFunc17 0xD190 +#define PTP_DPC_CANON_EOS_CustomFunc18 0xD191 +#define PTP_DPC_CANON_EOS_CustomFunc19 0xD192 +#define PTP_DPC_CANON_EOS_CustomFunc19 0xD192 +#define PTP_DPC_CANON_EOS_InnerDevelop 0xD193 +#define PTP_DPC_CANON_EOS_MultiAspect 0xD194 +#define PTP_DPC_CANON_EOS_MovieSoundRecord 0xD195 +#define PTP_DPC_CANON_EOS_MovieRecordVolume 0xD196 +#define PTP_DPC_CANON_EOS_WindCut 0xD197 +#define PTP_DPC_CANON_EOS_ExtenderType 0xD198 +#define PTP_DPC_CANON_EOS_OLCInfoVersion 0xD199 +#define PTP_DPC_CANON_EOS_UnknownPropD19A 0xD19A /*found in Canon EOS 5D M3*/ +#define PTP_DPC_CANON_EOS_UnknownPropD19C 0xD19C /*found in Canon EOS 5D M3*/ +#define PTP_DPC_CANON_EOS_UnknownPropD19D 0xD19D /*found in Canon EOS 5D M3*/ +#define PTP_DPC_CANON_EOS_GPSDeviceActive 0xD19F +#define PTP_DPC_CANON_EOS_CustomFuncEx 0xD1a0 +#define PTP_DPC_CANON_EOS_MyMenu 0xD1a1 +#define PTP_DPC_CANON_EOS_MyMenuList 0xD1a2 +#define PTP_DPC_CANON_EOS_WftStatus 0xD1a3 +#define PTP_DPC_CANON_EOS_WftInputTransmission 0xD1a4 +#define PTP_DPC_CANON_EOS_HDDirectoryStructure 0xD1a5 +#define PTP_DPC_CANON_EOS_BatteryInfo 0xD1a6 +#define PTP_DPC_CANON_EOS_AdapterInfo 0xD1a7 +#define PTP_DPC_CANON_EOS_LensStatus 0xD1a8 +#define PTP_DPC_CANON_EOS_QuickReviewTime 0xD1a9 +#define PTP_DPC_CANON_EOS_CardExtension 0xD1aa +#define PTP_DPC_CANON_EOS_TempStatus 0xD1ab +#define PTP_DPC_CANON_EOS_ShutterCounter 0xD1ac +#define PTP_DPC_CANON_EOS_SpecialOption 0xD1ad +#define PTP_DPC_CANON_EOS_PhotoStudioMode 0xD1ae +#define PTP_DPC_CANON_EOS_SerialNumber 0xD1af +#define PTP_DPC_CANON_EOS_EVFOutputDevice 0xD1b0 +#define PTP_DPC_CANON_EOS_EVFMode 0xD1b1 +#define PTP_DPC_CANON_EOS_DepthOfFieldPreview 0xD1b2 +#define PTP_DPC_CANON_EOS_EVFSharpness 0xD1b3 +#define PTP_DPC_CANON_EOS_EVFWBMode 0xD1b4 +#define PTP_DPC_CANON_EOS_EVFClickWBCoeffs 0xD1b5 +#define PTP_DPC_CANON_EOS_EVFColorTemp 0xD1b6 +#define PTP_DPC_CANON_EOS_ExposureSimMode 0xD1b7 +#define PTP_DPC_CANON_EOS_EVFRecordStatus 0xD1b8 +#define PTP_DPC_CANON_EOS_LvAfSystem 0xD1ba +#define PTP_DPC_CANON_EOS_MovSize 0xD1bb +#define PTP_DPC_CANON_EOS_LvViewTypeSelect 0xD1bc +#define PTP_DPC_CANON_EOS_MirrorDownStatus 0xD1bd +#define PTP_DPC_CANON_EOS_MovieParam 0xD1be +#define PTP_DPC_CANON_EOS_MirrorLockupState 0xD1bf +#define PTP_DPC_CANON_EOS_FlashChargingState 0xD1C0 +#define PTP_DPC_CANON_EOS_AloMode 0xD1C1 +#define PTP_DPC_CANON_EOS_FixedMovie 0xD1C2 +#define PTP_DPC_CANON_EOS_OneShotRawOn 0xD1C3 +#define PTP_DPC_CANON_EOS_ErrorForDisplay 0xD1C4 +#define PTP_DPC_CANON_EOS_AEModeMovie 0xD1C5 +#define PTP_DPC_CANON_EOS_BuiltinStroboMode 0xD1C6 +#define PTP_DPC_CANON_EOS_StroboDispState 0xD1C7 +#define PTP_DPC_CANON_EOS_StroboETTL2Metering 0xD1C8 +#define PTP_DPC_CANON_EOS_ContinousAFMode 0xD1C9 +#define PTP_DPC_CANON_EOS_MovieParam2 0xD1CA +#define PTP_DPC_CANON_EOS_StroboSettingExpComposition 0xD1CB +#define PTP_DPC_CANON_EOS_MovieParam3 0xD1CC +#define PTP_DPC_CANON_EOS_MovieParam4 0xD1CD +#define PTP_DPC_CANON_EOS_LVMedicalRotate 0xD1CF +#define PTP_DPC_CANON_EOS_Artist 0xD1d0 +#define PTP_DPC_CANON_EOS_Copyright 0xD1d1 +#define PTP_DPC_CANON_EOS_BracketValue 0xD1d2 +#define PTP_DPC_CANON_EOS_FocusInfoEx 0xD1d3 +#define PTP_DPC_CANON_EOS_DepthOfField 0xD1d4 +#define PTP_DPC_CANON_EOS_Brightness 0xD1d5 +#define PTP_DPC_CANON_EOS_LensAdjustParams 0xD1d6 +#define PTP_DPC_CANON_EOS_EFComp 0xD1d7 +#define PTP_DPC_CANON_EOS_LensName 0xD1d8 +#define PTP_DPC_CANON_EOS_AEB 0xD1d9 +#define PTP_DPC_CANON_EOS_StroboSetting 0xD1da +#define PTP_DPC_CANON_EOS_StroboWirelessSetting 0xD1db +#define PTP_DPC_CANON_EOS_StroboFiring 0xD1dc +#define PTP_DPC_CANON_EOS_LensID 0xD1dd +#define PTP_DPC_CANON_EOS_LCDBrightness 0xD1de +#define PTP_DPC_CANON_EOS_CADarkBright 0xD1df + +#define PTP_DPC_CANON_EOS_FocusShiftSetting 0xD208 + +/* Nikon extension device property codes */ +#define PTP_DPC_NIKON_ShootingBank 0xD010 +#define PTP_DPC_NIKON_ShootingBankNameA 0xD011 +#define PTP_DPC_NIKON_ShootingBankNameB 0xD012 +#define PTP_DPC_NIKON_ShootingBankNameC 0xD013 +#define PTP_DPC_NIKON_ShootingBankNameD 0xD014 +#define PTP_DPC_NIKON_ResetBank0 0xD015 +#define PTP_DPC_NIKON_RawCompression 0xD016 +#define PTP_DPC_NIKON_WhiteBalanceAutoBias 0xD017 +#define PTP_DPC_NIKON_WhiteBalanceTungstenBias 0xD018 +#define PTP_DPC_NIKON_WhiteBalanceFluorescentBias 0xD019 +#define PTP_DPC_NIKON_WhiteBalanceDaylightBias 0xD01A +#define PTP_DPC_NIKON_WhiteBalanceFlashBias 0xD01B +#define PTP_DPC_NIKON_WhiteBalanceCloudyBias 0xD01C +#define PTP_DPC_NIKON_WhiteBalanceShadeBias 0xD01D +#define PTP_DPC_NIKON_WhiteBalanceColorTemperature 0xD01E +#define PTP_DPC_NIKON_WhiteBalancePresetNo 0xD01F +#define PTP_DPC_NIKON_WhiteBalancePresetName0 0xD020 +#define PTP_DPC_NIKON_WhiteBalancePresetName1 0xD021 +#define PTP_DPC_NIKON_WhiteBalancePresetName2 0xD022 +#define PTP_DPC_NIKON_WhiteBalancePresetName3 0xD023 +#define PTP_DPC_NIKON_WhiteBalancePresetName4 0xD024 +#define PTP_DPC_NIKON_WhiteBalancePresetVal0 0xD025 +#define PTP_DPC_NIKON_WhiteBalancePresetVal1 0xD026 +#define PTP_DPC_NIKON_WhiteBalancePresetVal2 0xD027 +#define PTP_DPC_NIKON_WhiteBalancePresetVal3 0xD028 +#define PTP_DPC_NIKON_WhiteBalancePresetVal4 0xD029 +#define PTP_DPC_NIKON_ImageSharpening 0xD02A +#define PTP_DPC_NIKON_ToneCompensation 0xD02B +#define PTP_DPC_NIKON_ColorModel 0xD02C +#define PTP_DPC_NIKON_HueAdjustment 0xD02D +#define PTP_DPC_NIKON_NonCPULensDataFocalLength 0xD02E /* Set FMM Manual */ +#define PTP_DPC_NIKON_NonCPULensDataMaximumAperture 0xD02F /* Set F0 Manual */ +#define PTP_DPC_NIKON_ShootingMode 0xD030 +#define PTP_DPC_NIKON_JPEG_Compression_Policy 0xD031 +#define PTP_DPC_NIKON_ColorSpace 0xD032 +#define PTP_DPC_NIKON_AutoDXCrop 0xD033 +#define PTP_DPC_NIKON_FlickerReduction 0xD034 +#define PTP_DPC_NIKON_RemoteMode 0xD035 +#define PTP_DPC_NIKON_VideoMode 0xD036 +#define PTP_DPC_NIKON_EffectMode 0xD037 +#define PTP_DPC_NIKON_1_Mode 0xD038 +#define PTP_DPC_NIKON_CSMMenuBankSelect 0xD040 +#define PTP_DPC_NIKON_MenuBankNameA 0xD041 +#define PTP_DPC_NIKON_MenuBankNameB 0xD042 +#define PTP_DPC_NIKON_MenuBankNameC 0xD043 +#define PTP_DPC_NIKON_MenuBankNameD 0xD044 +#define PTP_DPC_NIKON_ResetBank 0xD045 +#define PTP_DPC_NIKON_A1AFCModePriority 0xD048 +#define PTP_DPC_NIKON_A2AFSModePriority 0xD049 +#define PTP_DPC_NIKON_A3GroupDynamicAF 0xD04A +#define PTP_DPC_NIKON_A4AFActivation 0xD04B +#define PTP_DPC_NIKON_FocusAreaIllumManualFocus 0xD04C +#define PTP_DPC_NIKON_FocusAreaIllumContinuous 0xD04D +#define PTP_DPC_NIKON_FocusAreaIllumWhenSelected 0xD04E +#define PTP_DPC_NIKON_FocusAreaWrap 0xD04F /* area sel */ +#define PTP_DPC_NIKON_VerticalAFON 0xD050 +#define PTP_DPC_NIKON_AFLockOn 0xD051 +#define PTP_DPC_NIKON_FocusAreaZone 0xD052 +#define PTP_DPC_NIKON_EnableCopyright 0xD053 +#define PTP_DPC_NIKON_ISOAuto 0xD054 +#define PTP_DPC_NIKON_EVISOStep 0xD055 +#define PTP_DPC_NIKON_EVStep 0xD056 /* EV Step SS FN */ +#define PTP_DPC_NIKON_EVStepExposureComp 0xD057 +#define PTP_DPC_NIKON_ExposureCompensation 0xD058 +#define PTP_DPC_NIKON_CenterWeightArea 0xD059 +#define PTP_DPC_NIKON_ExposureBaseMatrix 0xD05A +#define PTP_DPC_NIKON_ExposureBaseCenter 0xD05B +#define PTP_DPC_NIKON_ExposureBaseSpot 0xD05C +#define PTP_DPC_NIKON_LiveViewAFArea 0xD05D /* FIXME: AfAtLiveview? */ +#define PTP_DPC_NIKON_AELockMode 0xD05E +#define PTP_DPC_NIKON_AELAFLMode 0xD05F +#define PTP_DPC_NIKON_LiveViewAFFocus 0xD061 +#define PTP_DPC_NIKON_MeterOff 0xD062 +#define PTP_DPC_NIKON_SelfTimer 0xD063 +#define PTP_DPC_NIKON_MonitorOff 0xD064 +#define PTP_DPC_NIKON_ImgConfTime 0xD065 +#define PTP_DPC_NIKON_AutoOffTimers 0xD066 +#define PTP_DPC_NIKON_AngleLevel 0xD067 +#define PTP_DPC_NIKON_D1ShootingSpeed 0xD068 /* continous speed low */ +#define PTP_DPC_NIKON_D2MaximumShots 0xD069 +#define PTP_DPC_NIKON_ExposureDelayMode 0xD06A +#define PTP_DPC_NIKON_LongExposureNoiseReduction 0xD06B +#define PTP_DPC_NIKON_FileNumberSequence 0xD06C +#define PTP_DPC_NIKON_ControlPanelFinderRearControl 0xD06D +#define PTP_DPC_NIKON_ControlPanelFinderViewfinder 0xD06E +#define PTP_DPC_NIKON_D7Illumination 0xD06F +#define PTP_DPC_NIKON_NrHighISO 0xD070 +#define PTP_DPC_NIKON_SHSET_CH_GUID_DISP 0xD071 +#define PTP_DPC_NIKON_ArtistName 0xD072 +#define PTP_DPC_NIKON_CopyrightInfo 0xD073 +#define PTP_DPC_NIKON_FlashSyncSpeed 0xD074 +#define PTP_DPC_NIKON_FlashShutterSpeed 0xD075 /* SB Low Limit */ +#define PTP_DPC_NIKON_E3AAFlashMode 0xD076 +#define PTP_DPC_NIKON_E4ModelingFlash 0xD077 +#define PTP_DPC_NIKON_BracketSet 0xD078 /* Bracket Type? */ +#define PTP_DPC_NIKON_E6ManualModeBracketing 0xD079 /* Bracket Factor? */ +#define PTP_DPC_NIKON_BracketOrder 0xD07A +#define PTP_DPC_NIKON_E8AutoBracketSelection 0xD07B /* Bracket Method? */ +#define PTP_DPC_NIKON_BracketingSet 0xD07C +#define PTP_DPC_NIKON_F1CenterButtonShootingMode 0xD080 +#define PTP_DPC_NIKON_CenterButtonPlaybackMode 0xD081 +#define PTP_DPC_NIKON_F2Multiselector 0xD082 +#define PTP_DPC_NIKON_F3PhotoInfoPlayback 0xD083 /* MultiSelector Dir */ +#define PTP_DPC_NIKON_F4AssignFuncButton 0xD084 /* CMD Dial Rotate */ +#define PTP_DPC_NIKON_F5CustomizeCommDials 0xD085 /* CMD Dial Change */ +#define PTP_DPC_NIKON_ReverseCommandDial 0xD086 /* CMD Dial FN Set */ +#define PTP_DPC_NIKON_ApertureSetting 0xD087 /* CMD Dial Active */ +#define PTP_DPC_NIKON_MenusAndPlayback 0xD088 /* CMD Dial Active */ +#define PTP_DPC_NIKON_F6ButtonsAndDials 0xD089 /* Universal Mode? */ +#define PTP_DPC_NIKON_NoCFCard 0xD08A /* Enable Shutter? */ +#define PTP_DPC_NIKON_CenterButtonZoomRatio 0xD08B +#define PTP_DPC_NIKON_FunctionButton2 0xD08C +#define PTP_DPC_NIKON_AFAreaPoint 0xD08D +#define PTP_DPC_NIKON_NormalAFOn 0xD08E +#define PTP_DPC_NIKON_CleanImageSensor 0xD08F +#define PTP_DPC_NIKON_ImageCommentString 0xD090 +#define PTP_DPC_NIKON_ImageCommentEnable 0xD091 +#define PTP_DPC_NIKON_ImageRotation 0xD092 +#define PTP_DPC_NIKON_ManualSetLensNo 0xD093 +#define PTP_DPC_NIKON_MovScreenSize 0xD0A0 +#define PTP_DPC_NIKON_MovVoice 0xD0A1 +#define PTP_DPC_NIKON_MovMicrophone 0xD0A2 +#define PTP_DPC_NIKON_MovFileSlot 0xD0A3 +#define PTP_DPC_NIKON_MovRecProhibitCondition 0xD0A4 +#define PTP_DPC_NIKON_ManualMovieSetting 0xD0A6 +#define PTP_DPC_NIKON_MovQuality 0xD0A7 +#define PTP_DPC_NIKON_LiveViewScreenDisplaySetting 0xD0B2 +#define PTP_DPC_NIKON_MonitorOffDelay 0xD0B3 +#define PTP_DPC_NIKON_Bracketing 0xD0C0 +#define PTP_DPC_NIKON_AutoExposureBracketStep 0xD0C1 +#define PTP_DPC_NIKON_AutoExposureBracketProgram 0xD0C2 +#define PTP_DPC_NIKON_AutoExposureBracketCount 0xD0C3 +#define PTP_DPC_NIKON_WhiteBalanceBracketStep 0xD0C4 +#define PTP_DPC_NIKON_WhiteBalanceBracketProgram 0xD0C5 +#define PTP_DPC_NIKON_LensID 0xD0E0 +#define PTP_DPC_NIKON_LensSort 0xD0E1 +#define PTP_DPC_NIKON_LensType 0xD0E2 +#define PTP_DPC_NIKON_FocalLengthMin 0xD0E3 +#define PTP_DPC_NIKON_FocalLengthMax 0xD0E4 +#define PTP_DPC_NIKON_MaxApAtMinFocalLength 0xD0E5 +#define PTP_DPC_NIKON_MaxApAtMaxFocalLength 0xD0E6 +#define PTP_DPC_NIKON_FinderISODisp 0xD0F0 +#define PTP_DPC_NIKON_AutoOffPhoto 0xD0F2 +#define PTP_DPC_NIKON_AutoOffMenu 0xD0F3 +#define PTP_DPC_NIKON_AutoOffInfo 0xD0F4 +#define PTP_DPC_NIKON_SelfTimerShootNum 0xD0F5 +#define PTP_DPC_NIKON_VignetteCtrl 0xD0F7 +#define PTP_DPC_NIKON_AutoDistortionControl 0xD0F8 +#define PTP_DPC_NIKON_SceneMode 0xD0F9 +#define PTP_DPC_NIKON_SceneMode2 0xD0FD +#define PTP_DPC_NIKON_SelfTimerInterval 0xD0FE +#define PTP_DPC_NIKON_ExposureTime 0xD100 /* Shutter Speed */ +#define PTP_DPC_NIKON_ACPower 0xD101 +#define PTP_DPC_NIKON_WarningStatus 0xD102 +#define PTP_DPC_NIKON_MaximumShots 0xD103 /* remain shots (in RAM buffer?) */ +#define PTP_DPC_NIKON_AFLockStatus 0xD104 +#define PTP_DPC_NIKON_AELockStatus 0xD105 +#define PTP_DPC_NIKON_FVLockStatus 0xD106 +#define PTP_DPC_NIKON_AutofocusLCDTopMode2 0xD107 +#define PTP_DPC_NIKON_AutofocusArea 0xD108 +#define PTP_DPC_NIKON_FlexibleProgram 0xD109 +#define PTP_DPC_NIKON_LightMeter 0xD10A /* Exposure Status */ +#define PTP_DPC_NIKON_RecordingMedia 0xD10B /* Card or SDRAM */ +#define PTP_DPC_NIKON_USBSpeed 0xD10C +#define PTP_DPC_NIKON_CCDNumber 0xD10D +#define PTP_DPC_NIKON_CameraOrientation 0xD10E +#define PTP_DPC_NIKON_GroupPtnType 0xD10F +#define PTP_DPC_NIKON_FNumberLock 0xD110 +#define PTP_DPC_NIKON_ExposureApertureLock 0xD111 /* shutterspeed lock*/ +#define PTP_DPC_NIKON_TVLockSetting 0xD112 +#define PTP_DPC_NIKON_AVLockSetting 0xD113 +#define PTP_DPC_NIKON_IllumSetting 0xD114 +#define PTP_DPC_NIKON_FocusPointBright 0xD115 +#define PTP_DPC_NIKON_ExternalFlashAttached 0xD120 +#define PTP_DPC_NIKON_ExternalFlashStatus 0xD121 +#define PTP_DPC_NIKON_ExternalFlashSort 0xD122 +#define PTP_DPC_NIKON_ExternalFlashMode 0xD123 +#define PTP_DPC_NIKON_ExternalFlashCompensation 0xD124 +#define PTP_DPC_NIKON_NewExternalFlashMode 0xD125 +#define PTP_DPC_NIKON_FlashExposureCompensation 0xD126 +#define PTP_DPC_NIKON_HDRMode 0xD130 +#define PTP_DPC_NIKON_HDRHighDynamic 0xD131 +#define PTP_DPC_NIKON_HDRSmoothing 0xD132 +#define PTP_DPC_NIKON_OptimizeImage 0xD140 +#define PTP_DPC_NIKON_Saturation 0xD142 +#define PTP_DPC_NIKON_BW_FillerEffect 0xD143 +#define PTP_DPC_NIKON_BW_Sharpness 0xD144 +#define PTP_DPC_NIKON_BW_Contrast 0xD145 +#define PTP_DPC_NIKON_BW_Setting_Type 0xD146 +#define PTP_DPC_NIKON_Slot2SaveMode 0xD148 +#define PTP_DPC_NIKON_RawBitMode 0xD149 +#define PTP_DPC_NIKON_ActiveDLighting 0xD14E /* was PTP_DPC_NIKON_ISOAutoTime */ +#define PTP_DPC_NIKON_FlourescentType 0xD14F +#define PTP_DPC_NIKON_TuneColourTemperature 0xD150 +#define PTP_DPC_NIKON_TunePreset0 0xD151 +#define PTP_DPC_NIKON_TunePreset1 0xD152 +#define PTP_DPC_NIKON_TunePreset2 0xD153 +#define PTP_DPC_NIKON_TunePreset3 0xD154 +#define PTP_DPC_NIKON_TunePreset4 0xD155 +#define PTP_DPC_NIKON_WhiteBalanceNaturalLightAutoBias 0xD15E /* Only encountered in D850? */ +#define PTP_DPC_NIKON_BeepOff 0xD160 +#define PTP_DPC_NIKON_AutofocusMode 0xD161 +#define PTP_DPC_NIKON_AFAssist 0xD163 +#define PTP_DPC_NIKON_PADVPMode 0xD164 /* iso auto time */ +#define PTP_DPC_NIKON_ImageReview 0xD165 +#define PTP_DPC_NIKON_AFAreaIllumination 0xD166 +#define PTP_DPC_NIKON_FlashMode 0xD167 +#define PTP_DPC_NIKON_FlashCommanderMode 0xD168 +#define PTP_DPC_NIKON_FlashSign 0xD169 +#define PTP_DPC_NIKON_ISO_Auto 0xD16A +#define PTP_DPC_NIKON_RemoteTimeout 0xD16B +#define PTP_DPC_NIKON_GridDisplay 0xD16C +#define PTP_DPC_NIKON_FlashModeManualPower 0xD16D +#define PTP_DPC_NIKON_FlashModeCommanderPower 0xD16E +#define PTP_DPC_NIKON_AutoFP 0xD16F +#define PTP_DPC_NIKON_DateImprintSetting 0xD170 +#define PTP_DPC_NIKON_DateCounterSelect 0xD171 +#define PTP_DPC_NIKON_DateCountData 0xD172 +#define PTP_DPC_NIKON_DateCountDisplaySetting 0xD173 +#define PTP_DPC_NIKON_RangeFinderSetting 0xD174 +#define PTP_DPC_NIKON_CSMMenu 0xD180 +#define PTP_DPC_NIKON_WarningDisplay 0xD181 +#define PTP_DPC_NIKON_BatteryCellKind 0xD182 +#define PTP_DPC_NIKON_ISOAutoHiLimit 0xD183 +#define PTP_DPC_NIKON_DynamicAFArea 0xD184 +#define PTP_DPC_NIKON_ContinuousSpeedHigh 0xD186 +#define PTP_DPC_NIKON_InfoDispSetting 0xD187 +#define PTP_DPC_NIKON_PreviewButton 0xD189 +#define PTP_DPC_NIKON_PreviewButton2 0xD18A +#define PTP_DPC_NIKON_AEAFLockButton2 0xD18B +#define PTP_DPC_NIKON_IndicatorDisp 0xD18D +#define PTP_DPC_NIKON_CellKindPriority 0xD18E +#define PTP_DPC_NIKON_BracketingFramesAndSteps 0xD190 +#define PTP_DPC_NIKON_LiveViewMode 0xD1A0 +#define PTP_DPC_NIKON_LiveViewDriveMode 0xD1A1 +#define PTP_DPC_NIKON_LiveViewStatus 0xD1A2 +#define PTP_DPC_NIKON_LiveViewImageZoomRatio 0xD1A3 +#define PTP_DPC_NIKON_LiveViewProhibitCondition 0xD1A4 +#define PTP_DPC_NIKON_MovieShutterSpeed 0xD1A8 +#define PTP_DPC_NIKON_MovieFNumber 0xD1A9 +#define PTP_DPC_NIKON_MovieISO 0xD1AA +#define PTP_DPC_NIKON_LiveViewMovieMode 0xD1AC /* ? */ +#define PTP_DPC_NIKON_ExposureDisplayStatus 0xD1B0 +#define PTP_DPC_NIKON_ExposureIndicateStatus 0xD1B1 +#define PTP_DPC_NIKON_InfoDispErrStatus 0xD1B2 +#define PTP_DPC_NIKON_ExposureIndicateLightup 0xD1B3 +#define PTP_DPC_NIKON_FlashOpen 0xD1C0 +#define PTP_DPC_NIKON_FlashCharged 0xD1C1 +#define PTP_DPC_NIKON_FlashMRepeatValue 0xD1D0 +#define PTP_DPC_NIKON_FlashMRepeatCount 0xD1D1 +#define PTP_DPC_NIKON_FlashMRepeatInterval 0xD1D2 +#define PTP_DPC_NIKON_FlashCommandChannel 0xD1D3 +#define PTP_DPC_NIKON_FlashCommandSelfMode 0xD1D4 +#define PTP_DPC_NIKON_FlashCommandSelfCompensation 0xD1D5 +#define PTP_DPC_NIKON_FlashCommandSelfValue 0xD1D6 +#define PTP_DPC_NIKON_FlashCommandAMode 0xD1D7 +#define PTP_DPC_NIKON_FlashCommandACompensation 0xD1D8 +#define PTP_DPC_NIKON_FlashCommandAValue 0xD1D9 +#define PTP_DPC_NIKON_FlashCommandBMode 0xD1DA +#define PTP_DPC_NIKON_FlashCommandBCompensation 0xD1DB +#define PTP_DPC_NIKON_FlashCommandBValue 0xD1DC +#define PTP_DPC_NIKON_ApplicationMode 0xD1F0 +#define PTP_DPC_NIKON_ActiveSlot 0xD1F2 +#define PTP_DPC_NIKON_ActivePicCtrlItem 0xD200 +#define PTP_DPC_NIKON_ChangePicCtrlItem 0xD201 +#define PTP_DPC_NIKON_MovieNrHighISO 0xD236 + + +/* Nikon V1 (or WU adapter?) Trace */ +/* d241 - gets string "Nikon_WU2_0090B5123C61" */ +#define PTP_DPC_NIKON_D241 0xD241 +/* d244 - gets a single byte 0x00 */ +#define PTP_DPC_NIKON_D244 0xD244 +/* d247 - gets 3 bytes 0x01 0x00 0x00 */ +#define PTP_DPC_NIKON_D247 0xD247 +/* S9700 */ +#define PTP_DPC_NIKON_GUID 0xD24F +/* d250 - gets a string "0000123C61" */ +#define PTP_DPC_NIKON_D250 0xD250 +/* d251 - gets a 0x0100000d */ +#define PTP_DPC_NIKON_D251 0xD251 + +/* this is irregular, as it should be -0x5000 or 0xD000 based */ +#define PTP_DPC_NIKON_1_ISO 0xF002 +#define PTP_DPC_NIKON_1_ImageCompression 0xF009 +#define PTP_DPC_NIKON_1_ImageSize 0xF00A +#define PTP_DPC_NIKON_1_WhiteBalance 0xF00C +#define PTP_DPC_NIKON_1_LongExposureNoiseReduction 0xF00D +#define PTP_DPC_NIKON_1_HiISONoiseReduction 0xF00E +#define PTP_DPC_NIKON_1_ActiveDLighting 0xF00F +#define PTP_DPC_NIKON_1_MovQuality 0xF01C + +/* Fuji specific */ +#define PTP_DPC_FUJI_ColorTemperature 0xD017 +#define PTP_DPC_FUJI_Quality 0xD018 +#define PTP_DPC_FUJI_ReleaseMode 0xD201 +#define PTP_DPC_FUJI_FocusAreas 0xD206 +#define PTP_DPC_FUJI_AELock 0xD213 +#define PTP_DPC_FUJI_Copyright 0xD215 +#define PTP_DPC_FUJI_Aperture 0xD218 +#define PTP_DPC_FUJI_ShutterSpeed 0xD219 +#define PTP_DPC_FUJI_FocusPoint 0xD347 + +/* Microsoft/MTP specific */ +#define PTP_DPC_MTP_SecureTime 0xD101 +#define PTP_DPC_MTP_DeviceCertificate 0xD102 +#define PTP_DPC_MTP_RevocationInfo 0xD103 +#define PTP_DPC_MTP_SynchronizationPartner 0xD401 +#define PTP_DPC_MTP_DeviceFriendlyName 0xD402 +#define PTP_DPC_MTP_VolumeLevel 0xD403 +#define PTP_DPC_MTP_DeviceIcon 0xD405 +#define PTP_DPC_MTP_SessionInitiatorInfo 0xD406 +#define PTP_DPC_MTP_PerceivedDeviceType 0xD407 +#define PTP_DPC_MTP_PlaybackRate 0xD410 +#define PTP_DPC_MTP_PlaybackObject 0xD411 +#define PTP_DPC_MTP_PlaybackContainerIndex 0xD412 +#define PTP_DPC_MTP_PlaybackPosition 0xD413 +#define PTP_DPC_MTP_PlaysForSureID 0xD131 + +/* Zune specific property codes */ +#define PTP_DPC_MTP_Zune_UnknownVersion 0xD181 + +/* Olympus */ +/* these are from OMD E-M1 Mark 2 */ +#define PTP_DPC_OLYMPUS_Aperture 0xD002 +#define PTP_DPC_OLYMPUS_FocusMode 0xD003 +#define PTP_DPC_OLYMPUS_ExposureMeteringMode 0xD004 +#define PTP_DPC_OLYMPUS_ISO 0xD007 +#define PTP_DPC_OLYMPUS_ExposureCompensation 0xD008 +#define PTP_DPC_OLYMPUS_OMD_DriveMode 0xD009 +#define PTP_DPC_OLYMPUS_ImageFormat 0xD00D +#define PTP_DPC_OLYMPUS_FaceDetection 0xD01A +#define PTP_DPC_OLYMPUS_AspectRatio 0xD01B +#define PTP_DPC_OLYMPUS_Shutterspeed 0xD01C +#define PTP_DPC_OLYMPUS_WhiteBalance 0xD01E +#define PTP_DPC_OLYMPUS_LiveViewModeOM 0xD06D +#define PTP_DPC_OLYMPUS_CaptureTarget 0xD0DC + +/* unsure where these were from */ +#define PTP_DPC_OLYMPUS_ResolutionMode 0xD102 +#define PTP_DPC_OLYMPUS_FocusPriority 0xD103 +#define PTP_DPC_OLYMPUS_DriveMode 0xD104 +#define PTP_DPC_OLYMPUS_DateTimeFormat 0xD105 +#define PTP_DPC_OLYMPUS_ExposureBiasStep 0xD106 +#define PTP_DPC_OLYMPUS_WBMode 0xD107 +#define PTP_DPC_OLYMPUS_OneTouchWB 0xD108 +#define PTP_DPC_OLYMPUS_ManualWB 0xD109 +#define PTP_DPC_OLYMPUS_ManualWBRBBias 0xD10A +#define PTP_DPC_OLYMPUS_CustomWB 0xD10B +#define PTP_DPC_OLYMPUS_CustomWBValue 0xD10C +#define PTP_DPC_OLYMPUS_ExposureTimeEx 0xD10D +#define PTP_DPC_OLYMPUS_BulbMode 0xD10E +#define PTP_DPC_OLYMPUS_AntiMirrorMode 0xD10F +#define PTP_DPC_OLYMPUS_AEBracketingFrame 0xD110 +#define PTP_DPC_OLYMPUS_AEBracketingStep 0xD111 +#define PTP_DPC_OLYMPUS_WBBracketingFrame 0xD112 +#define PTP_DPC_OLYMPUS_WBBracketingRBFrame 0xD112 /* dup ? */ +#define PTP_DPC_OLYMPUS_WBBracketingRBRange 0xD113 +#define PTP_DPC_OLYMPUS_WBBracketingGMFrame 0xD114 +#define PTP_DPC_OLYMPUS_WBBracketingGMRange 0xD115 +#define PTP_DPC_OLYMPUS_FLBracketingFrame 0xD118 +#define PTP_DPC_OLYMPUS_FLBracketingStep 0xD119 +#define PTP_DPC_OLYMPUS_FlashBiasCompensation 0xD11A +#define PTP_DPC_OLYMPUS_ManualFocusMode 0xD11B +#define PTP_DPC_OLYMPUS_RawSaveMode 0xD11D +#define PTP_DPC_OLYMPUS_AUXLightMode 0xD11E +#define PTP_DPC_OLYMPUS_LensSinkMode 0xD11F +#define PTP_DPC_OLYMPUS_BeepStatus 0xD120 +#define PTP_DPC_OLYMPUS_ColorSpace 0xD122 +#define PTP_DPC_OLYMPUS_ColorMatching 0xD123 +#define PTP_DPC_OLYMPUS_Saturation 0xD124 +#define PTP_DPC_OLYMPUS_NoiseReductionPattern 0xD126 +#define PTP_DPC_OLYMPUS_NoiseReductionRandom 0xD127 +#define PTP_DPC_OLYMPUS_ShadingMode 0xD129 +#define PTP_DPC_OLYMPUS_ISOBoostMode 0xD12A +#define PTP_DPC_OLYMPUS_ExposureIndexBiasStep 0xD12B +#define PTP_DPC_OLYMPUS_FilterEffect 0xD12C +#define PTP_DPC_OLYMPUS_ColorTune 0xD12D +#define PTP_DPC_OLYMPUS_Language 0xD12E +#define PTP_DPC_OLYMPUS_LanguageCode 0xD12F +#define PTP_DPC_OLYMPUS_RecviewMode 0xD130 +#define PTP_DPC_OLYMPUS_SleepTime 0xD131 +#define PTP_DPC_OLYMPUS_ManualWBGMBias 0xD132 +#define PTP_DPC_OLYMPUS_AELAFLMode 0xD135 +#define PTP_DPC_OLYMPUS_AELButtonStatus 0xD136 +#define PTP_DPC_OLYMPUS_CompressionSettingEx 0xD137 +#define PTP_DPC_OLYMPUS_ToneMode 0xD139 +#define PTP_DPC_OLYMPUS_GradationMode 0xD13A +#define PTP_DPC_OLYMPUS_DevelopMode 0xD13B +#define PTP_DPC_OLYMPUS_ExtendInnerFlashMode 0xD13C +#define PTP_DPC_OLYMPUS_OutputDeviceMode 0xD13D +#define PTP_DPC_OLYMPUS_LiveViewMode 0xD13E +#define PTP_DPC_OLYMPUS_LCDBacklight 0xD140 +#define PTP_DPC_OLYMPUS_CustomDevelop 0xD141 +#define PTP_DPC_OLYMPUS_GradationAutoBias 0xD142 +#define PTP_DPC_OLYMPUS_FlashRCMode 0xD143 +#define PTP_DPC_OLYMPUS_FlashRCGroupValue 0xD144 +#define PTP_DPC_OLYMPUS_FlashRCChannelValue 0xD145 +#define PTP_DPC_OLYMPUS_FlashRCFPMode 0xD146 +#define PTP_DPC_OLYMPUS_FlashRCPhotoChromicMode 0xD147 +#define PTP_DPC_OLYMPUS_FlashRCPhotoChromicBias 0xD148 +#define PTP_DPC_OLYMPUS_FlashRCPhotoChromicManualBias 0xD149 +#define PTP_DPC_OLYMPUS_FlashRCQuantityLightLevel 0xD14A +#define PTP_DPC_OLYMPUS_FocusMeteringValue 0xD14B +#define PTP_DPC_OLYMPUS_ISOBracketingFrame 0xD14C +#define PTP_DPC_OLYMPUS_ISOBracketingStep 0xD14D +#define PTP_DPC_OLYMPUS_BulbMFMode 0xD14E +#define PTP_DPC_OLYMPUS_BurstFPSValue 0xD14F +#define PTP_DPC_OLYMPUS_ISOAutoBaseValue 0xD150 +#define PTP_DPC_OLYMPUS_ISOAutoMaxValue 0xD151 +#define PTP_DPC_OLYMPUS_BulbLimiterValue 0xD152 +#define PTP_DPC_OLYMPUS_DPIMode 0xD153 +#define PTP_DPC_OLYMPUS_DPICustomValue 0xD154 +#define PTP_DPC_OLYMPUS_ResolutionValueSetting 0xD155 +#define PTP_DPC_OLYMPUS_AFTargetSize 0xD157 +#define PTP_DPC_OLYMPUS_LightSensorMode 0xD158 +#define PTP_DPC_OLYMPUS_AEBracket 0xD159 +#define PTP_DPC_OLYMPUS_WBRBBracket 0xD15A +#define PTP_DPC_OLYMPUS_WBGMBracket 0xD15B +#define PTP_DPC_OLYMPUS_FlashBracket 0xD15C +#define PTP_DPC_OLYMPUS_ISOBracket 0xD15D +#define PTP_DPC_OLYMPUS_MyModeStatus 0xD15E + +/* Sony A900 */ +#define PTP_DPC_SONY_DPCCompensation 0xD200 +#define PTP_DPC_SONY_DRangeOptimize 0xD201 +#define PTP_DPC_SONY_ImageSize 0xD203 +#define PTP_DPC_SONY_ShutterSpeed 0xD20D +#define PTP_DPC_SONY_ColorTemp 0xD20F +#define PTP_DPC_SONY_CCFilter 0xD210 +#define PTP_DPC_SONY_AspectRatio 0xD211 +#define PTP_DPC_SONY_FocusFound 0xD213 /* seems to be signaled (1->2) when focus is achieved */ +#define PTP_DPC_SONY_Zoom 0xD214 /* might be focal length * 1.000.000 */ +#define PTP_DPC_SONY_ObjectInMemory 0xD215 /* used to signal when to retrieve new object */ +#define PTP_DPC_SONY_ExposeIndex 0xD216 +#define PTP_DPC_SONY_BatteryLevel 0xD218 +#define PTP_DPC_SONY_SensorCrop 0xD219 +#define PTP_DPC_SONY_PictureEffect 0xD21B +#define PTP_DPC_SONY_ABFilter 0xD21C +#define PTP_DPC_SONY_ISO 0xD21E /* ? */ +#define PTP_DPC_SONY_AutoFocus 0xD2C1 /* ? half-press */ +#define PTP_DPC_SONY_Capture 0xD2C2 /* ? full-press */ +/* also seen: D2C3 D2C4 */ +/* semi control opcodes */ +#define PTP_DPC_SONY_Movie 0xD2C8 /* ? */ +#define PTP_DPC_SONY_StillImage 0xD2C7 /* ? */ + + + +/* Casio EX-F1 */ +#define PTP_DPC_CASIO_MONITOR 0xD001 +#define PTP_DPC_CASIO_STORAGE 0xD002 //Not reported by DeviceInfo? +#define PTP_DPC_CASIO_UNKNOWN_1 0xD004 +#define PTP_DPC_CASIO_UNKNOWN_2 0xD005 +#define PTP_DPC_CASIO_UNKNOWN_3 0xD007 +#define PTP_DPC_CASIO_RECORD_LIGHT 0xD008 +#define PTP_DPC_CASIO_UNKNOWN_4 0xD009 +#define PTP_DPC_CASIO_UNKNOWN_5 0xD00A +#define PTP_DPC_CASIO_MOVIE_MODE 0xD00B +#define PTP_DPC_CASIO_HD_SETTING 0xD00C +#define PTP_DPC_CASIO_HS_SETTING 0xD00D +#define PTP_DPC_CASIO_CS_HIGH_SPEED 0xD00F +#define PTP_DPC_CASIO_CS_UPPER_LIMIT 0xD010 +#define PTP_DPC_CASIO_CS_SHOT 0xD011 +#define PTP_DPC_CASIO_UNKNOWN_6 0xD012 +#define PTP_DPC_CASIO_UNKNOWN_7 0xD013 +#define PTP_DPC_CASIO_UNKNOWN_8 0xD015 +#define PTP_DPC_CASIO_UNKNOWN_9 0xD017 +#define PTP_DPC_CASIO_UNKNOWN_10 0xD018 +#define PTP_DPC_CASIO_UNKNOWN_11 0xD019 +#define PTP_DPC_CASIO_UNKNOWN_12 0xD01A +#define PTP_DPC_CASIO_UNKNOWN_13 0xD01B +#define PTP_DPC_CASIO_UNKNOWN_14 0xD01C +#define PTP_DPC_CASIO_UNKNOWN_15 0xD01D +#define PTP_DPC_CASIO_UNKNOWN_16 0xD020 +#define PTP_DPC_CASIO_UNKNOWN_17 0xD030 +#define PTP_DPC_CASIO_UNKNOWN_18 0xD080 + +#define PTP_DPC_RICOH_ShutterSpeed 0xD00F + +/* https://github.com/Parrot-Developers/sequoia-ptpy */ +#define PTP_DPC_PARROT_PhotoSensorEnableMask 0xD201 +#define PTP_DPC_PARROT_PhotoSensorsKeepOn 0xD202 +#define PTP_DPC_PARROT_MultispectralImageSize 0xD203 +#define PTP_DPC_PARROT_MainBitDepth 0xD204 +#define PTP_DPC_PARROT_MultispectralBitDepth 0xD205 +#define PTP_DPC_PARROT_HeatingEnable 0xD206 +#define PTP_DPC_PARROT_WifiStatus 0xD207 +#define PTP_DPC_PARROT_WifiSSID 0xD208 +#define PTP_DPC_PARROT_WifiEncryptionType 0xD209 +#define PTP_DPC_PARROT_WifiPassphrase 0xD20A +#define PTP_DPC_PARROT_WifiChannel 0xD20B +#define PTP_DPC_PARROT_Localization 0xD20C +#define PTP_DPC_PARROT_WifiMode 0xD20D +#define PTP_DPC_PARROT_AntiFlickeringFrequency 0xD210 +#define PTP_DPC_PARROT_DisplayOverlayMask 0xD211 +#define PTP_DPC_PARROT_GPSInterval 0xD212 +#define PTP_DPC_PARROT_MultisensorsExposureMeteringMode 0xD213 +#define PTP_DPC_PARROT_MultisensorsExposureTime 0xD214 +#define PTP_DPC_PARROT_MultisensorsExposureProgramMode 0xD215 +#define PTP_DPC_PARROT_MultisensorsExposureIndex 0xD216 +#define PTP_DPC_PARROT_MultisensorsIrradianceGain 0xD217 +#define PTP_DPC_PARROT_MultisensorsIrradianceIntegrationTime 0xD218 +#define PTP_DPC_PARROT_OverlapRate 0xD219 + +/* Panasonic does not have regular device properties, they use some 32bit values */ +#define PTP_DPC_PANASONIC_PhotoStyle 0x02000010 +#define PTP_DPC_PANASONIC_ISO 0x02000020 +#define PTP_DPC_PANASONIC_ShutterSpeed 0x02000030 +#define PTP_DPC_PANASONIC_Aperture 0x02000040 +#define PTP_DPC_PANASONIC_WhiteBalance 0x02000050 +#define PTP_DPC_PANASONIC_Exposure 0x02000060 +#define PTP_DPC_PANASONIC_AFArea 0x02000070 +#define PTP_DPC_PANASONIC_CameraMode 0x02000080 +#define PTP_DPC_PANASONIC_ImageFormat 0x020000A2 +#define PTP_DPC_PANASONIC_MeteringInfo 0x020000B0 +#define PTP_DPC_PANASONIC_IntervalInfo 0x020000C0 +#define PTP_DPC_PANASONIC_RecDispConfig 0x020000E0 +#define PTP_DPC_PANASONIC_RecInfoFlash 0x02000110 +#define PTP_DPC_PANASONIC_BurstBracket 0x02000140 +#define PTP_DPC_PANASONIC_RecPreviewConfig 0x02000170 +#define PTP_DPC_PANASONIC_RecInfoSelfTimer 0x020001A0 +#define PTP_DPC_PANASONIC_RecInfoFlash2 0x020001B0 +#define PTP_DPC_PANASONIC_MovConfig 0x06000010 +#define PTP_DPC_PANASONIC_08000010 0x08000010 +/* various modes of the camera, HDMI, GetDateTimeWorldTime Mode/Area, SetupCfgInfo, SetupConfig_DateTime, GetSystemFreq Mode, GetSetupConfig Info */ +/* +0000 54 00 00 00 02 00 0a 94-04 00 00 00 11 00 00 08 T............... +0010 0a 00 00 00 e2 07 07 00-10 00 11 00 09 00 12 00 ................ +0020 00 08 02 00 00 00 00 00-13 00 00 08 02 00 00 00 ................ +0030 00 00 14 00 00 08 04 00-00 00 00 00 00 00 15 00 ................ +0040 00 08 04 00 00 00 00 00-00 00 16 00 00 08 02 00 ................ +0050 00 00 01 00 - .... + +0000 d0 00 00 00 02 00 07 91-04 00 00 00 10 00 00 08 ................ +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 06 00 00 00 38 03 00 00-11 00 00 08 14 00 00 00 ....8........... +0030 14 00 00 00 01 00 01 00-00 00 00 00 05 00 00 00 ................ +0040 c8 00 00 00 12 00 00 08-14 00 00 00 14 00 00 00 ................ +0050 01 00 01 00 00 00 00 00-01 00 00 00 36 00 00 00 ............6... +0060 13 00 00 08 14 00 00 00-14 00 00 00 01 00 01 00 ................ +0070 00 00 00 00 01 00 00 00-2a 00 00 00 14 00 00 08 ........*....... +0080 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0090 02 00 00 00 9e 00 00 00-15 00 00 08 14 00 00 00 ................ +00a0 14 00 00 00 01 00 01 00-00 00 00 00 02 00 00 00 ................ +00b0 9e 00 00 00 16 00 00 08-14 00 00 00 14 00 00 00 ................ +00c0 01 00 01 00 00 00 00 00-01 00 00 00 2c 00 00 00 ............,... + */ +#define PTP_DPC_PANASONIC_08000091 0x08000091 /* SetupFilesConfig_Set_Target */ +/* +0000 16 00 00 00 02 00 0a 94-04 00 00 00 91 00 00 08 ................ +0010 02 00 00 00 00 00 - ...... + +0000 44 00 00 00 02 00 07 91-04 00 00 00 90 00 00 08 D............... +0010 14 00 00 00 14 00 00 00-01 00 01 00 00 00 00 00 ................ +0020 01 00 00 00 48 00 00 00-91 00 00 08 14 00 00 00 ....H........... +0030 14 00 00 00 01 00 01 00-00 00 00 00 01 00 00 00 ................ +0040 2c 00 00 00 - ,... + */ + +#define PTP_DPC_PANASONIC_GetFreeSpaceInImages 0x12000010 +/* +0000 98 00 00 00 02 00 14 94-04 00 00 00 11 00 00 12 ................ +0010 04 00 00 00 4e 00 00 00-12 00 00 12 04 00 00 00 ....N........... +0020 00 00 00 00 13 00 00 12-02 00 00 00 00 00 14 00 ................ +0030 00 12 04 00 00 00 00 00-00 00 15 00 00 12 06 00 ................ +0040 00 00 02 00 01 00 00 00-16 00 00 12 3a 00 00 00 ............:... +0050 02 00 4e 00 00 00 00 00-00 00 4e 00 00 00 ff ff ..N.......N..... +0060 ff ff 00 00 00 00 ff ff-ff ff 00 00 00 00 00 00 ................ +0070 00 00 00 00 00 00 ff ff-ff ff 00 00 00 00 ff ff ................ +0080 ff ff 00 00 00 00 00 00-00 00 17 00 00 12 06 00 ................ +0090 00 00 00 00 00 00 00 00- ........ + */ +#define PTP_DPC_PANASONIC_GetBatteryInfo 0x16000010 +/* +0000 1c 00 00 00 02 00 14 94-04 00 00 00 11 00 00 16 ................ +0010 08 00 00 00 4b 00 00 00-4b 00 ff ff ....K...K... + */ +#define PTP_DPC_PANASONIC_LensGetMFBar 0x12010040 +/* 15c00010 GetSetupInfo Error */ +/* 18000010 GetUSBSpeed */ + + +/* MTP specific Object Properties */ +#define PTP_OPC_StorageID 0xDC01 +#define PTP_OPC_ObjectFormat 0xDC02 +#define PTP_OPC_ProtectionStatus 0xDC03 +#define PTP_OPC_ObjectSize 0xDC04 +#define PTP_OPC_AssociationType 0xDC05 +#define PTP_OPC_AssociationDesc 0xDC06 +#define PTP_OPC_ObjectFileName 0xDC07 +#define PTP_OPC_DateCreated 0xDC08 +#define PTP_OPC_DateModified 0xDC09 +#define PTP_OPC_Keywords 0xDC0A +#define PTP_OPC_ParentObject 0xDC0B +#define PTP_OPC_AllowedFolderContents 0xDC0C +#define PTP_OPC_Hidden 0xDC0D +#define PTP_OPC_SystemObject 0xDC0E +#define PTP_OPC_PersistantUniqueObjectIdentifier 0xDC41 +#define PTP_OPC_SyncID 0xDC42 +#define PTP_OPC_PropertyBag 0xDC43 +#define PTP_OPC_Name 0xDC44 +#define PTP_OPC_CreatedBy 0xDC45 +#define PTP_OPC_Artist 0xDC46 +#define PTP_OPC_DateAuthored 0xDC47 +#define PTP_OPC_Description 0xDC48 +#define PTP_OPC_URLReference 0xDC49 +#define PTP_OPC_LanguageLocale 0xDC4A +#define PTP_OPC_CopyrightInformation 0xDC4B +#define PTP_OPC_Source 0xDC4C +#define PTP_OPC_OriginLocation 0xDC4D +#define PTP_OPC_DateAdded 0xDC4E +#define PTP_OPC_NonConsumable 0xDC4F +#define PTP_OPC_CorruptOrUnplayable 0xDC50 +#define PTP_OPC_ProducerSerialNumber 0xDC51 +#define PTP_OPC_RepresentativeSampleFormat 0xDC81 +#define PTP_OPC_RepresentativeSampleSize 0xDC82 +#define PTP_OPC_RepresentativeSampleHeight 0xDC83 +#define PTP_OPC_RepresentativeSampleWidth 0xDC84 +#define PTP_OPC_RepresentativeSampleDuration 0xDC85 +#define PTP_OPC_RepresentativeSampleData 0xDC86 +#define PTP_OPC_Width 0xDC87 +#define PTP_OPC_Height 0xDC88 +#define PTP_OPC_Duration 0xDC89 +#define PTP_OPC_Rating 0xDC8A +#define PTP_OPC_Track 0xDC8B +#define PTP_OPC_Genre 0xDC8C +#define PTP_OPC_Credits 0xDC8D +#define PTP_OPC_Lyrics 0xDC8E +#define PTP_OPC_SubscriptionContentID 0xDC8F +#define PTP_OPC_ProducedBy 0xDC90 +#define PTP_OPC_UseCount 0xDC91 +#define PTP_OPC_SkipCount 0xDC92 +#define PTP_OPC_LastAccessed 0xDC93 +#define PTP_OPC_ParentalRating 0xDC94 +#define PTP_OPC_MetaGenre 0xDC95 +#define PTP_OPC_Composer 0xDC96 +#define PTP_OPC_EffectiveRating 0xDC97 +#define PTP_OPC_Subtitle 0xDC98 +#define PTP_OPC_OriginalReleaseDate 0xDC99 +#define PTP_OPC_AlbumName 0xDC9A +#define PTP_OPC_AlbumArtist 0xDC9B +#define PTP_OPC_Mood 0xDC9C +#define PTP_OPC_DRMStatus 0xDC9D +#define PTP_OPC_SubDescription 0xDC9E +#define PTP_OPC_IsCropped 0xDCD1 +#define PTP_OPC_IsColorCorrected 0xDCD2 +#define PTP_OPC_ImageBitDepth 0xDCD3 +#define PTP_OPC_Fnumber 0xDCD4 +#define PTP_OPC_ExposureTime 0xDCD5 +#define PTP_OPC_ExposureIndex 0xDCD6 +#define PTP_OPC_DisplayName 0xDCE0 +#define PTP_OPC_BodyText 0xDCE1 +#define PTP_OPC_Subject 0xDCE2 +#define PTP_OPC_Priority 0xDCE3 +#define PTP_OPC_GivenName 0xDD00 +#define PTP_OPC_MiddleNames 0xDD01 +#define PTP_OPC_FamilyName 0xDD02 +#define PTP_OPC_Prefix 0xDD03 +#define PTP_OPC_Suffix 0xDD04 +#define PTP_OPC_PhoneticGivenName 0xDD05 +#define PTP_OPC_PhoneticFamilyName 0xDD06 +#define PTP_OPC_EmailPrimary 0xDD07 +#define PTP_OPC_EmailPersonal1 0xDD08 +#define PTP_OPC_EmailPersonal2 0xDD09 +#define PTP_OPC_EmailBusiness1 0xDD0A +#define PTP_OPC_EmailBusiness2 0xDD0B +#define PTP_OPC_EmailOthers 0xDD0C +#define PTP_OPC_PhoneNumberPrimary 0xDD0D +#define PTP_OPC_PhoneNumberPersonal 0xDD0E +#define PTP_OPC_PhoneNumberPersonal2 0xDD0F +#define PTP_OPC_PhoneNumberBusiness 0xDD10 +#define PTP_OPC_PhoneNumberBusiness2 0xDD11 +#define PTP_OPC_PhoneNumberMobile 0xDD12 +#define PTP_OPC_PhoneNumberMobile2 0xDD13 +#define PTP_OPC_FaxNumberPrimary 0xDD14 +#define PTP_OPC_FaxNumberPersonal 0xDD15 +#define PTP_OPC_FaxNumberBusiness 0xDD16 +#define PTP_OPC_PagerNumber 0xDD17 +#define PTP_OPC_PhoneNumberOthers 0xDD18 +#define PTP_OPC_PrimaryWebAddress 0xDD19 +#define PTP_OPC_PersonalWebAddress 0xDD1A +#define PTP_OPC_BusinessWebAddress 0xDD1B +#define PTP_OPC_InstantMessengerAddress 0xDD1C +#define PTP_OPC_InstantMessengerAddress2 0xDD1D +#define PTP_OPC_InstantMessengerAddress3 0xDD1E +#define PTP_OPC_PostalAddressPersonalFull 0xDD1F +#define PTP_OPC_PostalAddressPersonalFullLine1 0xDD20 +#define PTP_OPC_PostalAddressPersonalFullLine2 0xDD21 +#define PTP_OPC_PostalAddressPersonalFullCity 0xDD22 +#define PTP_OPC_PostalAddressPersonalFullRegion 0xDD23 +#define PTP_OPC_PostalAddressPersonalFullPostalCode 0xDD24 +#define PTP_OPC_PostalAddressPersonalFullCountry 0xDD25 +#define PTP_OPC_PostalAddressBusinessFull 0xDD26 +#define PTP_OPC_PostalAddressBusinessLine1 0xDD27 +#define PTP_OPC_PostalAddressBusinessLine2 0xDD28 +#define PTP_OPC_PostalAddressBusinessCity 0xDD29 +#define PTP_OPC_PostalAddressBusinessRegion 0xDD2A +#define PTP_OPC_PostalAddressBusinessPostalCode 0xDD2B +#define PTP_OPC_PostalAddressBusinessCountry 0xDD2C +#define PTP_OPC_PostalAddressOtherFull 0xDD2D +#define PTP_OPC_PostalAddressOtherLine1 0xDD2E +#define PTP_OPC_PostalAddressOtherLine2 0xDD2F +#define PTP_OPC_PostalAddressOtherCity 0xDD30 +#define PTP_OPC_PostalAddressOtherRegion 0xDD31 +#define PTP_OPC_PostalAddressOtherPostalCode 0xDD32 +#define PTP_OPC_PostalAddressOtherCountry 0xDD33 +#define PTP_OPC_OrganizationName 0xDD34 +#define PTP_OPC_PhoneticOrganizationName 0xDD35 +#define PTP_OPC_Role 0xDD36 +#define PTP_OPC_Birthdate 0xDD37 +#define PTP_OPC_MessageTo 0xDD40 +#define PTP_OPC_MessageCC 0xDD41 +#define PTP_OPC_MessageBCC 0xDD42 +#define PTP_OPC_MessageRead 0xDD43 +#define PTP_OPC_MessageReceivedTime 0xDD44 +#define PTP_OPC_MessageSender 0xDD45 +#define PTP_OPC_ActivityBeginTime 0xDD50 +#define PTP_OPC_ActivityEndTime 0xDD51 +#define PTP_OPC_ActivityLocation 0xDD52 +#define PTP_OPC_ActivityRequiredAttendees 0xDD54 +#define PTP_OPC_ActivityOptionalAttendees 0xDD55 +#define PTP_OPC_ActivityResources 0xDD56 +#define PTP_OPC_ActivityAccepted 0xDD57 +#define PTP_OPC_Owner 0xDD5D +#define PTP_OPC_Editor 0xDD5E +#define PTP_OPC_Webmaster 0xDD5F +#define PTP_OPC_URLSource 0xDD60 +#define PTP_OPC_URLDestination 0xDD61 +#define PTP_OPC_TimeBookmark 0xDD62 +#define PTP_OPC_ObjectBookmark 0xDD63 +#define PTP_OPC_ByteBookmark 0xDD64 +#define PTP_OPC_LastBuildDate 0xDD70 +#define PTP_OPC_TimetoLive 0xDD71 +#define PTP_OPC_MediaGUID 0xDD72 +#define PTP_OPC_TotalBitRate 0xDE91 +#define PTP_OPC_BitRateType 0xDE92 +#define PTP_OPC_SampleRate 0xDE93 +#define PTP_OPC_NumberOfChannels 0xDE94 +#define PTP_OPC_AudioBitDepth 0xDE95 +#define PTP_OPC_ScanDepth 0xDE97 +#define PTP_OPC_AudioWAVECodec 0xDE99 +#define PTP_OPC_AudioBitRate 0xDE9A +#define PTP_OPC_VideoFourCCCodec 0xDE9B +#define PTP_OPC_VideoBitRate 0xDE9C +#define PTP_OPC_FramesPerThousandSeconds 0xDE9D +#define PTP_OPC_KeyFrameDistance 0xDE9E +#define PTP_OPC_BufferSize 0xDE9F +#define PTP_OPC_EncodingQuality 0xDEA0 +#define PTP_OPC_EncodingProfile 0xDEA1 +#define PTP_OPC_BuyFlag 0xD901 + +/* WiFi Provisioning MTP Extension property codes */ +#define PTP_OPC_WirelessConfigurationFile 0xB104 + +/* Device Property Form Flag */ + +#define PTP_DPFF_None 0x00 +#define PTP_DPFF_Range 0x01 +#define PTP_DPFF_Enumeration 0x02 + +/* Object Property Codes used by MTP (first 3 are same as DPFF codes) */ +#define PTP_OPFF_None 0x00 +#define PTP_OPFF_Range 0x01 +#define PTP_OPFF_Enumeration 0x02 +#define PTP_OPFF_DateTime 0x03 +#define PTP_OPFF_FixedLengthArray 0x04 +#define PTP_OPFF_RegularExpression 0x05 +#define PTP_OPFF_ByteArray 0x06 +#define PTP_OPFF_LongString 0xFF + +/* Device Property GetSet type */ +#define PTP_DPGS_Get 0x00 +#define PTP_DPGS_GetSet 0x01 + +/* Glue stuff starts here */ + +typedef struct _PTPParams PTPParams; + + +typedef uint16_t (* PTPDataGetFunc) (PTPParams* params, void*priv, + unsigned long wantlen, + unsigned char *data, unsigned long *gotlen); + +typedef uint16_t (* PTPDataPutFunc) (PTPParams* params, void*priv, + unsigned long sendlen, + unsigned char *data); +typedef struct _PTPDataHandler { + PTPDataGetFunc getfunc; + PTPDataPutFunc putfunc; + void *priv; +} PTPDataHandler; + +/* + * This functions take PTP oriented arguments and send them over an + * appropriate data layer doing byteorder conversion accordingly. + */ +typedef uint16_t (* PTPIOSendReq) (PTPParams* params, PTPContainer* req, int dataphase); +typedef uint16_t (* PTPIOSendData) (PTPParams* params, PTPContainer* ptp, + uint64_t size, PTPDataHandler*getter); + +typedef uint16_t (* PTPIOGetResp) (PTPParams* params, PTPContainer* resp); +typedef uint16_t (* PTPIOGetData) (PTPParams* params, PTPContainer* ptp, + PTPDataHandler *putter); +typedef uint16_t (* PTPIOCancelReq) (PTPParams* params, uint32_t transaction_id); +typedef uint16_t (* PTPIODevStatReq) (PTPParams* params); + +/* debug functions */ +typedef void (* PTPErrorFunc) (void *data, const char *format, va_list args) +#if (__GNUC__ >= 3) + __attribute__((__format__(printf,2,0))) +#endif +; +typedef void (* PTPDebugFunc) (void *data, const char *format, va_list args) +#if (__GNUC__ >= 3) + __attribute__((__format__(printf,2,0))) +#endif +; + +struct _PTPObject { + uint32_t oid; + unsigned int flags; +#define PTPOBJECT_OBJECTINFO_LOADED (1<<0) +#define PTPOBJECT_CANONFLAGS_LOADED (1<<1) +#define PTPOBJECT_MTPPROPLIST_LOADED (1<<2) +#define PTPOBJECT_DIRECTORY_LOADED (1<<3) +#define PTPOBJECT_PARENTOBJECT_LOADED (1<<4) +#define PTPOBJECT_STORAGEID_LOADED (1<<5) + + PTPObjectInfo oi; + uint32_t canon_flags; + MTPProperties *mtpprops; + unsigned int nrofmtpprops; +}; +typedef struct _PTPObject PTPObject; + +/* The Device Property Cache */ +struct _PTPDeviceProperty { + time_t timestamp; + PTPDevicePropDesc desc; + PTPPropertyValue value; +}; +typedef struct _PTPDeviceProperty PTPDeviceProperty; + +struct _MTPPropertyDesc { + uint16_t opc; + PTPObjectPropDesc opd; +}; +typedef struct _MTPPropertyDesc MTPPropertyDesc; + +struct _MTPObjectFormat { + uint16_t ofc; + unsigned int nrofpds; + MTPPropertyDesc *pds; +}; +typedef struct _MTPObjectFormat MTPObjectFormat; + +/* Transaction data phase description, internal flags to sendreq / transaction driver. */ +#define PTP_DP_NODATA 0x0000 /* no data phase */ +#define PTP_DP_SENDDATA 0x0001 /* sending data */ +#define PTP_DP_GETDATA 0x0002 /* receiving data */ +#define PTP_DP_DATA_MASK 0x00ff /* data phase mask */ + +struct _PTPParams { + /* device flags */ + uint32_t device_flags; + + /* data layer byteorder */ + uint8_t byteorder; + uint16_t maxpacketsize; + + /* PTP IO: Custom IO functions */ + PTPIOSendReq sendreq_func; + PTPIOSendData senddata_func; + PTPIOGetResp getresp_func; + PTPIOGetData getdata_func; + PTPIOGetResp event_check; + PTPIOGetResp event_check_queue; + PTPIOGetResp event_wait; + PTPIOCancelReq cancelreq_func; + PTPIODevStatReq devstatreq_func; + + /* Custom error and debug function */ + PTPErrorFunc error_func; + PTPDebugFunc debug_func; + + /* Data passed to above functions */ + void *data; + + /* ptp transaction ID */ + uint32_t transaction_id; + /* ptp session ID */ + uint32_t session_id; + + /* used for open capture */ + uint32_t opencapture_transid; + + /* PTP IO: if we have MTP style split header/data transfers */ + int split_header_data; + int ocs64; /* 64bit objectsize */ + + int nrofobjectformats; + MTPObjectFormat *objectformats; + + /* PTP: internal structures used by ptp driver */ + PTPObject *objects; + unsigned int nrofobjects; + + PTPDeviceInfo deviceinfo; + + /* PTP: the current event queue */ + PTPContainer *events; + int nrofevents; + + /* Capture count for SDRAM capture style images */ + unsigned int capcnt; + + /* live view enabled */ + int inliveview; + + /* PTP: caching time for properties, default 2 */ + int cachetime; + + /* PTP: Storage Caching */ + PTPStorageIDs storageids; + int storagechanged; + + /* PTP: Device Property Caching */ + PTPDeviceProperty *deviceproperties; + unsigned int nrofdeviceproperties; + + /* PTP: Canon specific flags list */ + PTPCanon_Property *canon_props; + unsigned int nrofcanon_props; + int canon_viewfinder_on; + int canon_event_mode; + + /* PTP: Canon EOS event queue */ + PTPCanon_changes_entry *backlogentries; + unsigned int nrofbacklogentries; + int eos_captureenabled; + int eos_camerastatus; + + /* PTP: Nikon specifics */ + int controlmode; + int event90c7works; + int deletesdramfails; + + /* PTP: Wifi profiles */ + uint8_t wifi_profiles_version; + uint8_t wifi_profiles_number; + PTPNIKONWifiProfile *wifi_profiles; + + /* IO: PTP/IP related data */ + int cmdfd, evtfd; + uint8_t cameraguid[16]; + uint32_t eventpipeid; + char *cameraname; + + /* Olympus UMS wrapping related data */ + PTPDeviceInfo outer_deviceinfo; + char *olympus_cmd; + char *olympus_reply; + struct _PTPParams *outer_params; + +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + /* PTP: iconv converters */ + iconv_t cd_locale_to_ucs2; + iconv_t cd_ucs2_to_locale; +#endif + + /* IO: Sometimes the response packet get send in the dataphase + * too. This only happens for a Samsung player now. + */ + uint8_t *response_packet; + uint16_t response_packet_size; +}; + +/* Asynchronous event callback */ +typedef void (*PTPEventCbFn)(PTPParams *params, uint16_t code, PTPContainer *event, void *user_data); + +/* last, but not least - ptp functions */ +uint16_t ptp_usb_sendreq (PTPParams* params, PTPContainer* req, int dataphase); +uint16_t ptp_usb_senddata (PTPParams* params, PTPContainer* ptp, + uint64_t size, PTPDataHandler *handler); +uint16_t ptp_usb_getresp (PTPParams* params, PTPContainer* resp); +uint16_t ptp_usb_getdata (PTPParams* params, PTPContainer* ptp, + PTPDataHandler *handler); +uint16_t ptp_usb_event_async (PTPParams *params, PTPEventCbFn cb, void *user_data); +uint16_t ptp_usb_event_wait (PTPParams* params, PTPContainer* event); +uint16_t ptp_usb_event_check (PTPParams* params, PTPContainer* event); +uint16_t ptp_usb_event_check_queue (PTPParams* params, PTPContainer* event); + +uint16_t ptp_usb_control_get_extended_event_data (PTPParams *params, char *buffer, int *size); +uint16_t ptp_usb_control_device_reset_request (PTPParams *params); +uint16_t ptp_usb_control_get_device_status (PTPParams *params, char *buffer, int *size); +uint16_t ptp_usb_control_cancel_request (PTPParams *params, uint32_t transid); +uint16_t ptp_usb_control_device_status_request (PTPParams *params); + + +int ptp_ptpip_connect (PTPParams* params, const char *port); +uint16_t ptp_ptpip_sendreq (PTPParams* params, PTPContainer* req, int dataphase); +uint16_t ptp_ptpip_senddata (PTPParams* params, PTPContainer* ptp, + uint64_t size, PTPDataHandler *handler); +uint16_t ptp_ptpip_getresp (PTPParams* params, PTPContainer* resp); +uint16_t ptp_ptpip_getdata (PTPParams* params, PTPContainer* ptp, + PTPDataHandler *handler); +uint16_t ptp_ptpip_event_wait (PTPParams* params, PTPContainer* event); +uint16_t ptp_ptpip_event_check (PTPParams* params, PTPContainer* event); +uint16_t ptp_ptpip_event_check_queue (PTPParams* params, PTPContainer* event); + +uint16_t ptp_getdeviceinfo (PTPParams* params, PTPDeviceInfo* deviceinfo); + +uint16_t ptp_generic_no_data (PTPParams* params, uint16_t opcode, unsigned int cnt, ...); + +uint16_t ptp_opensession (PTPParams *params, uint32_t session); + +uint16_t ptp_transaction_new (PTPParams* params, PTPContainer* ptp, + uint16_t flags, uint64_t sendlen, + PTPDataHandler *handler +); +uint16_t ptp_transaction (PTPParams* params, PTPContainer* ptp, + uint16_t flags, uint64_t sendlen, + unsigned char **data, unsigned int *recvlen +); + +/** + * ptp_closesession: + * params: PTPParams* + * + * Closes session. + * + * Return values: Some PTP_RC_* code. + **/ +#define ptp_closesession(params) ptp_generic_no_data(params,PTP_OC_CloseSession,0) + +/** + * ptp_powerdown: + * params: PTPParams* + * + * Powers down device. + * + * Return values: Some PTP_RC_* code. + **/ +#define ptp_powerdown(params) ptp_generic_no_data(params,PTP_OC_PowerDown,0) +/** + * ptp_resetdevice: + * params: PTPParams* + * + * Uses the built-in function to reset the device + * + * Return values: Some PTP_RC_* code. + * + */ +#define ptp_resetdevice(params) ptp_generic_no_data(params,PTP_OC_ResetDevice,0) + +uint16_t ptp_getstorageids (PTPParams* params, PTPStorageIDs* storageids); +uint16_t ptp_getstorageinfo (PTPParams* params, uint32_t storageid, + PTPStorageInfo* storageinfo); +/** + * ptp_formatstore: + * params: PTPParams* + * storageid - StorageID + * + * Formats the storage on the device. + * + * Return values: Some PTP_RC_* code. + **/ +#define ptp_formatstore(params,storageid) ptp_generic_no_data(params,PTP_OC_FormatStore,1,storageid) + +uint16_t ptp_getobjecthandles (PTPParams* params, uint32_t storage, + uint32_t objectformatcode, + uint32_t associationOH, + PTPObjectHandles* objecthandles); + + +uint16_t ptp_getnumobjects (PTPParams* params, uint32_t storage, + uint32_t objectformatcode, + uint32_t associationOH, + uint32_t* numobs); + +uint16_t ptp_getobjectinfo (PTPParams *params, uint32_t handle, + PTPObjectInfo* objectinfo); + +uint16_t ptp_getobject (PTPParams *params, uint32_t handle, + unsigned char** object); +uint16_t ptp_getobject_with_size (PTPParams *params, uint32_t handle, + unsigned char** object, unsigned int *size); +uint16_t ptp_getobject_tofd (PTPParams* params, uint32_t handle, int fd); +uint16_t ptp_getobject_to_handler (PTPParams* params, uint32_t handle, PTPDataHandler*); +uint16_t ptp_getpartialobject (PTPParams* params, uint32_t handle, uint32_t offset, + uint32_t maxbytes, unsigned char** object, + uint32_t *len); +uint16_t ptp_getpartialobject_to_handler (PTPParams* params, uint32_t handle, uint32_t offset, + uint32_t maxbytes, PTPDataHandler *handler); + +uint16_t ptp_getthumb (PTPParams *params, uint32_t handle, + unsigned char** object, unsigned int *len); + +uint16_t ptp_deleteobject (PTPParams* params, uint32_t handle, + uint32_t ofc); + +uint16_t ptp_moveobject (PTPParams* params, uint32_t handle, + uint32_t storage, uint32_t parent); + +uint16_t ptp_copyobject (PTPParams* params, uint32_t handle, + uint32_t storage, uint32_t parent); + +uint16_t ptp_sendobjectinfo (PTPParams* params, uint32_t* store, + uint32_t* parenthandle, uint32_t* handle, + PTPObjectInfo* objectinfo); +/** + * ptp_setobjectprotection: + * params: PTPParams* + * uint16_t newprot - object protection flag + * + * Set protection of object. + * + * Return values: Some PTP_RC_* code. + * + */ +#define ptp_setobjectprotection(params,oid,newprot) ptp_generic_no_data(params,PTP_OC_SetObjectProtection,2,oid,newprot) +uint16_t ptp_sendobject (PTPParams* params, unsigned char* object, + uint64_t size); +uint16_t ptp_sendobject_fromfd (PTPParams* params, int fd, uint64_t size); +uint16_t ptp_sendobject_from_handler (PTPParams* params, PTPDataHandler*, uint64_t size); +/** + * ptp_initiatecapture: + * params: PTPParams* + * storageid - destination StorageID on Responder + * ofc - object format code + * + * Causes device to initiate the capture of one or more new data objects + * according to its current device properties, storing the data into store + * indicated by storageid. If storageid is 0x00000000, the object(s) will + * be stored in a store that is determined by the capturing device. + * The capturing of new data objects is an asynchronous operation. + * + * Return values: Some PTP_RC_* code. + **/ +#define ptp_initiatecapture(params,storageid,ofc) ptp_generic_no_data(params,PTP_OC_InitiateCapture,2,storageid,ofc) + +#define ptp_initiateopencapture(params,storageid,ofc) ptp_generic_no_data(params,PTP_OC_InitiateOpenCapture,2,storageid,ofc) +#define ptp_terminateopencapture(params,transid) ptp_generic_no_data(params,PTP_OC_TerminateOpenCapture,1,transid) + +uint16_t ptp_getdevicepropdesc (PTPParams* params, uint16_t propcode, + PTPDevicePropDesc *devicepropertydesc); +uint16_t ptp_generic_getdevicepropdesc (PTPParams *params, uint16_t propcode, + PTPDevicePropDesc *dpd); +uint16_t ptp_getdevicepropvalue (PTPParams* params, uint16_t propcode, + PTPPropertyValue* value, uint16_t datatype); +uint16_t ptp_setdevicepropvalue (PTPParams* params, uint16_t propcode, + PTPPropertyValue* value, uint16_t datatype); +uint16_t ptp_generic_setdevicepropvalue (PTPParams* params, uint16_t propcode, + PTPPropertyValue* value, uint16_t datatype); +uint16_t ptp_getfilesystemmanifest (PTPParams* params, uint32_t storage, + uint32_t objectformatcode, uint32_t associationOH, + uint64_t *numoifs, PTPObjectFilesystemInfo **oifs); + + + +uint16_t ptp_check_event (PTPParams *params); +uint16_t ptp_check_event_queue (PTPParams *params); +uint16_t ptp_wait_event (PTPParams *params); +uint16_t ptp_add_event (PTPParams *params, PTPContainer *evt); +int ptp_get_one_event (PTPParams *params, PTPContainer *evt); +uint16_t ptp_check_eos_events (PTPParams *params); +int ptp_get_one_eos_event (PTPParams *params, PTPCanon_changes_entry *entry); + + +/* Microsoft MTP extensions */ +uint16_t ptp_mtp_getobjectpropdesc (PTPParams* params, uint16_t opc, uint16_t ofc, + PTPObjectPropDesc *objectpropertydesc); +uint16_t ptp_mtp_getobjectpropvalue (PTPParams* params, uint32_t oid, uint16_t opc, + PTPPropertyValue *value, uint16_t datatype); +uint16_t ptp_mtp_setobjectpropvalue (PTPParams* params, uint32_t oid, uint16_t opc, + PTPPropertyValue *value, uint16_t datatype); +uint16_t ptp_mtp_getobjectreferences (PTPParams* params, uint32_t handle, uint32_t** ohArray, uint32_t* arraylen); +uint16_t ptp_mtp_setobjectreferences (PTPParams* params, uint32_t handle, uint32_t* ohArray, uint32_t arraylen); +uint16_t ptp_mtp_getobjectproplist_generic (PTPParams* params, uint32_t handle, uint32_t formats, uint32_t properties, uint32_t propertygroups, uint32_t level, MTPProperties **props, int *nrofprops); +uint16_t ptp_mtp_getobjectproplist_level (PTPParams* params, uint32_t handle, uint32_t level, MTPProperties **props, int *nrofprops); +uint16_t ptp_mtp_getobjectproplist (PTPParams* params, uint32_t handle, MTPProperties **props, int *nrofprops); +uint16_t ptp_mtp_getobjectproplist_single (PTPParams* params, uint32_t handle, MTPProperties **props, int *nrofprops); +uint16_t ptp_mtp_sendobjectproplist (PTPParams* params, uint32_t* store, uint32_t* parenthandle, uint32_t* handle, + uint16_t objecttype, uint64_t objectsize, MTPProperties *props, int nrofprops); +uint16_t ptp_mtp_setobjectproplist (PTPParams* params, MTPProperties *props, int nrofprops); + +/* Microsoft MTPZ (Zune) extensions */ +uint16_t ptp_mtpz_sendwmdrmpdapprequest (PTPParams*, unsigned char *, uint32_t); +#define ptp_mtpz_resethandshake(params) ptp_generic_no_data(params, PTP_OC_MTP_WMDRMPD_EndTrustedAppSession, 0) +uint16_t ptp_mtpz_getwmdrmpdappresponse (PTPParams*, unsigned char **, uint32_t*); +#define ptp_mtpz_wmdrmpd_enabletrustedfilesoperations(params,hash1,hash2,hash3,hash4) \ + ptp_generic_no_data(params, PTP_OC_MTP_WMDRMPD_EnableTrustedFilesOperations, 4,\ + hash1, hash2, hash3, hash4) + +/* Eastman Kodak extensions */ +uint16_t ptp_ek_9007 (PTPParams* params, unsigned char **serial, unsigned int *size); +uint16_t ptp_ek_9009 (PTPParams* params, uint32_t*, uint32_t*); +uint16_t ptp_ek_900c (PTPParams* params, unsigned char **serial, unsigned int *size); +uint16_t ptp_ek_getserial (PTPParams* params, unsigned char **serial, unsigned int *size); +uint16_t ptp_ek_setserial (PTPParams* params, unsigned char *serial, unsigned int size); +uint16_t ptp_ek_settext (PTPParams* params, PTPEKTextParams *text); +uint16_t ptp_ek_sendfileobjectinfo (PTPParams* params, uint32_t* store, + uint32_t* parenthandle, uint32_t* handle, + PTPObjectInfo* objectinfo); +uint16_t ptp_ek_sendfileobject (PTPParams* params, unsigned char* object, + uint32_t size); +uint16_t ptp_ek_sendfileobject_from_handler (PTPParams* params, PTPDataHandler*, + uint32_t size); + +/* Canon PTP extensions */ +#define ptp_canon_9012(params) ptp_generic_no_data(params,0x9012,0) +uint16_t ptp_canon_gettreeinfo (PTPParams* params, uint32_t* out); +uint16_t ptp_canon_gettreesize (PTPParams* params, PTPCanon_directtransfer_entry**, unsigned int*cnt); +uint16_t ptp_canon_getpartialobjectinfo (PTPParams* params, uint32_t handle, + uint32_t p2, uint32_t* size, uint32_t* rp2); + +uint16_t ptp_canon_get_mac_address (PTPParams* params, unsigned char **mac); +/** + * ptp_canon_startshootingmode: + * params: PTPParams* + * + * Starts shooting session. It emits a StorageInfoChanged + * event via the interrupt pipe and pushes the StorageInfoChanged + * and CANON_CameraModeChange events onto the event stack + * (see operation PTP_OC_CANON_CheckEvent). + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_startshootingmode(params) ptp_generic_no_data(params,PTP_OC_CANON_InitiateReleaseControl,0) +/** + * ptp_canon_endshootingmode: + * params: PTPParams* + * + * This operation is observed after pressing the Disconnect + * button on the Remote Capture app. It emits a StorageInfoChanged + * event via the interrupt pipe and pushes the StorageInfoChanged + * and CANON_CameraModeChange events onto the event stack + * (see operation PTP_OC_CANON_CheckEvent). + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_endshootingmode(params) ptp_generic_no_data(params,PTP_OC_CANON_TerminateReleaseControl,0) +/** + * ptp_canon_viewfinderon: + * params: PTPParams* + * + * Prior to start reading viewfinder images, one must call this operation. + * Supposedly, this operation affects the value of the CANON_ViewfinderMode + * property. + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_viewfinderon(params) ptp_generic_no_data(params,PTP_OC_CANON_ViewfinderOn,0) +/** + * ptp_canon_viewfinderoff: + * params: PTPParams* + * + * Before changing the shooting mode, or when one doesn't need to read + * viewfinder images any more, one must call this operation. + * Supposedly, this operation affects the value of the CANON_ViewfinderMode + * property. + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_viewfinderoff(params) ptp_generic_no_data(params,PTP_OC_CANON_ViewfinderOff,0) +/** + * ptp_canon_reset_aeafawb: + * params: PTPParams* + * uint32_t flags - what shall be reset. + * 1 - autoexposure + * 2 - autofocus + * 4 - autowhitebalance + * + * Called "Reset AeAfAwb" (auto exposure, focus, white balance) + * + * Return values: Some PTP_RC_* code. + **/ +#define PTP_CANON_RESET_AE 0x1 +#define PTP_CANON_RESET_AF 0x2 +#define PTP_CANON_RESET_AWB 0x4 +#define ptp_canon_reset_aeafawb(params,flags) ptp_generic_no_data(params,PTP_OC_CANON_DoAeAfAwb,1,flags) +uint16_t ptp_canon_checkevent (PTPParams* params, + PTPContainer* event, int* isevent); +/** + * ptp_canon_focuslock: + * + * This operation locks the focus. It is followed by the CANON_GetChanges(?) + * operation in the log. + * It affects the CANON_MacroMode property. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_focuslock(params) ptp_generic_no_data(params,PTP_OC_CANON_FocusLock,0) +/** + * ptp_canon_focusunlock: + * + * This operation unlocks the focus. It is followed by the CANON_GetChanges(?) + * operation in the log. + * It sets the CANON_MacroMode property value to 1 (where it occurs in the log). + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_focusunlock(params) ptp_generic_no_data(params,PTP_OC_CANON_FocusUnlock,0) +/** + * ptp_canon_keepdeviceon: + * + * This operation sends a "ping" style message to the camera. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_keepdeviceon(params) ptp_generic_no_data(params,PTP_OC_CANON_KeepDeviceOn,0) +/** + * ptp_canon_eos_keepdeviceon: + * + * This operation sends a "ping" style message to the camera. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_eos_keepdeviceon(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_KeepDeviceOn,0) + +/** + * ptp_canon_eos_popupflash: + * + * This operation pops up the builtin flash of the Canon EOS. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_eos_popupflash(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_PopupBuiltinFlash,0) +/** + * ptp_canon_initiatecaptureinmemory: + * + * This operation starts the image capture according to the current camera + * settings. When the capture has happened, the camera emits a CaptureComplete + * event via the interrupt pipe and pushes the CANON_RequestObjectTransfer, + * CANON_DeviceInfoChanged and CaptureComplete events onto the event stack + * (see operation CANON_CheckEvent). From the CANON_RequestObjectTransfer + * event's parameter one can learn the just captured image's ObjectHandle. + * The image is stored in the camera's own RAM. + * On the next capture the image will be overwritten! + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_initiatecaptureinmemory(params) ptp_generic_no_data(params,PTP_OC_CANON_InitiateCaptureInMemory,0) +/** + * ptp_canon_eos_requestdevicepropvalue: + * + * This operation sends a "ping" style message to the camera. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define CANON_EOS_OLC_BUTTON 0x0001 +#define CANON_EOS_OLC_SHUTTERSPEED 0x0002 +#define CANON_EOS_OLC_APERTURE 0x0004 +#define CANON_EOS_OLC_ISO 0x0008 + +#define ptp_canon_eos_setrequestolcinfogroup(params,igmask) ptp_generic_no_data(params,PTP_OC_CANON_EOS_SetRequestOLCInfoGroup,1,igmask) +#define ptp_canon_eos_requestdevicepropvalue(params,prop) ptp_generic_no_data(params,PTP_OC_CANON_EOS_RequestDevicePropValue,1,prop) +#define ptp_canon_eos_setrequestrollingpitchinglevel(params,onoff) ptp_generic_no_data(params,PTP_OC_CANON_EOS_SetRequestRollingPitchingLevel,1,onoff) +uint16_t ptp_canon_eos_getremotemode (PTPParams*, uint32_t *); +uint16_t ptp_canon_eos_capture (PTPParams* params, uint32_t *result); +uint16_t ptp_canon_eos_getevent (PTPParams* params, PTPCanon_changes_entry **entries, int *nrofentries); +uint16_t ptp_canon_getpartialobject (PTPParams* params, uint32_t handle, + uint32_t offset, uint32_t size, + uint32_t pos, unsigned char** block, + uint32_t* readnum); +uint16_t ptp_canon_getviewfinderimage (PTPParams* params, unsigned char** image, + uint32_t* size); +uint16_t ptp_canon_getchanges (PTPParams* params, uint16_t** props, + uint32_t* propnum); +uint16_t ptp_canon_getobjectinfo (PTPParams* params, uint32_t store, + uint32_t p2, uint32_t parenthandle, + uint32_t handle, + PTPCANONFolderEntry** entries, + uint32_t* entnum); +uint16_t ptp_canon_eos_getdeviceinfo (PTPParams* params, PTPCanonEOSDeviceInfo*di); +/** + * ptp_canon_eos_setuilock: + * + * This command sets UI lock + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_eos_setuilock(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_SetUILock,0) +/** + * ptp_canon_eos_resetuilock: + * + * This command sets UI lock + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_eos_resetuilock(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_ResetUILock,0) +/** + * ptp_canon_eos_start_viewfinder: + * + * This command starts Viewfinder mode of newer Canon DSLRs. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_eos_start_viewfinder(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_InitiateViewfinder,0) +/** + * ptp_canon_eos_end_viewfinder: + * + * This command ends Viewfinder mode of newer Canon DSLRs. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_eos_end_viewfinder(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_TerminateViewfinder,0) +uint16_t ptp_canon_eos_get_viewfinder_image (PTPParams* params, unsigned char **data, unsigned int *size); +uint16_t ptp_canon_eos_get_viewfinder_image_handler (PTPParams* params, PTPDataHandler*); +uint16_t ptp_canon_get_objecthandle_by_name (PTPParams* params, char* name, uint32_t* objectid); +uint16_t ptp_canon_get_directory (PTPParams* params, PTPObjectHandles *handles, PTPObjectInfo **oinfos, uint32_t **flags); +/** + * ptp_canon_setobjectarchive: + * + * params: PTPParams* + * uint32_t objectid + * uint32_t flags + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_setobjectarchive(params,oid,flags) ptp_generic_no_data(params,PTP_OC_CANON_SetObjectArchive,2,oid,flags) +#define ptp_canon_eos_setobjectattributes(params,oid,flags) ptp_generic_no_data(params,PTP_OC_CANON_EOS_SetObjectAttributes,2,oid,flags) +uint16_t ptp_canon_get_customize_data (PTPParams* params, uint32_t themenr, + unsigned char **data, unsigned int *size); +uint16_t ptp_canon_getpairinginfo (PTPParams* params, uint32_t nr, unsigned char**, unsigned int*); + +uint16_t ptp_canon_eos_getstorageids (PTPParams* params, PTPStorageIDs* storageids); +uint16_t ptp_canon_eos_getstorageinfo (PTPParams* params, uint32_t p1, unsigned char**, unsigned int*); +uint16_t ptp_canon_eos_getpartialobject (PTPParams* params, uint32_t oid, uint32_t off, uint32_t xsize, unsigned char**data); +uint16_t ptp_canon_eos_getpartialobjectex (PTPParams* params, uint32_t oid, uint32_t off, uint32_t xsize, unsigned char**data); +uint16_t ptp_canon_eos_getobjectinfoex (PTPParams* params, uint32_t storageid, uint32_t objectid, uint32_t unk, + PTPCANONFolderEntry **entries, unsigned int *nrofentries); +uint16_t ptp_canon_eos_setdevicepropvalueex (PTPParams* params, unsigned char* data, unsigned int size); +#define ptp_canon_eos_setremotemode(params,p1) ptp_generic_no_data(params,PTP_OC_CANON_EOS_SetRemoteMode,1,p1) +#define ptp_canon_eos_seteventmode(params,p1) ptp_generic_no_data(params,PTP_OC_CANON_EOS_SetEventMode,1,p1) +/** + * ptp_canon_eos_transfercomplete: + * + * This ends a direct object transfer from an EOS camera. + * + * params: PTPParams* + * oid Object ID + * + * Return values: Some PTP_RC_* code. + * + */ +#define ptp_canon_eos_transfercomplete(params,oid) ptp_generic_no_data(params,PTP_OC_CANON_EOS_TransferComplete,1,oid) +/* inHDD = %d, inLength =%d, inReset = %d */ +#define ptp_canon_eos_pchddcapacity(params,p1,p2,p3) ptp_generic_no_data(params,PTP_OC_CANON_EOS_PCHDDCapacity,3,p1,p2,p3) +uint16_t ptp_canon_eos_bulbstart (PTPParams* params); +uint16_t ptp_canon_eos_bulbend (PTPParams* params); +uint16_t ptp_canon_eos_905f (PTPParams* params, uint32_t); +uint16_t ptp_canon_eos_getdevicepropdesc (PTPParams* params, uint16_t propcode, + PTPDevicePropDesc *devicepropertydesc); +uint16_t ptp_canon_eos_setdevicepropvalue (PTPParams* params, uint16_t propcode, + PTPPropertyValue* value, uint16_t datatype); +uint16_t ptp_nikon_get_vendorpropcodes (PTPParams* params, uint16_t **props, unsigned int *size); +uint16_t ptp_nikon_curve_download (PTPParams* params, + unsigned char **data, unsigned int *size); +uint16_t ptp_nikon_getptpipinfo (PTPParams* params, unsigned char **data, unsigned int *size); +uint16_t ptp_nikon_getwifiprofilelist (PTPParams* params); +uint16_t ptp_nikon_writewifiprofile (PTPParams* params, PTPNIKONWifiProfile* profile); + +uint16_t ptp_sony_sdioconnect (PTPParams* params, uint32_t p1, uint32_t p2, uint32_t p3); +uint16_t ptp_sony_get_vendorpropcodes (PTPParams* params, uint16_t **props, unsigned int *size); +uint16_t ptp_sony_getdevicepropdesc (PTPParams* params, uint16_t propcode, + PTPDevicePropDesc *devicepropertydesc); +uint16_t ptp_sony_getalldevicepropdesc (PTPParams* params); +uint16_t ptp_sony_setdevicecontrolvaluea (PTPParams* params, uint16_t propcode, + PTPPropertyValue* value, uint16_t datatype); +uint16_t ptp_sony_setdevicecontrolvalueb (PTPParams* params, uint16_t propcode, + PTPPropertyValue* value, uint16_t datatype); +uint16_t ptp_sony_9280 (PTPParams* params, uint32_t additional, uint32_t data1, uint32_t data2, uint32_t data3, uint32_t data4, uint8_t x, uint8_t y); +uint16_t ptp_sony_9281 (PTPParams* params, uint32_t param1); +/** + * ptp_nikon_deletewifiprofile: + * + * This command deletes a wifi profile. + * + * params: PTPParams* + * unsigned int profilenr - profile number + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_deletewifiprofile(params,profilenr) ptp_generic_no_data(params,PTP_OC_NIKON_DeleteProfile,1,profilenr) +/** + * ptp_nikon_setcontrolmode: + * + * This command can switch the camera to full PC control mode. + * + * params: PTPParams* + * uint32_t mode - mode + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_setcontrolmode(params,mode) ptp_generic_no_data(params,PTP_OC_NIKON_SetControlMode,1,mode) +/** + * ptp_nikon_terminatecapture: + * + * This command appears to terminate a longer capture + * + * params: PTPParams* + * uint32_t a + * uint32_t b + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_terminatecapture(params,p1,p2) ptp_generic_no_data(params,PTP_OC_NIKON_TerminateCapture,2,p1,p2) +/** + * ptp_nikon_afdrive: + * + * This command runs (drives) the lens autofocus. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_afdrive(params) ptp_generic_no_data(params,PTP_OC_NIKON_AfDrive,0) +/** + * ptp_nikon_changeafarea: + * + * This command starts movie capture (to card) + * + * params: PTPParams* + * x: x coordinate + * y: y coordinate + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_changeafarea(params,x,y) ptp_generic_no_data(params,PTP_OC_NIKON_ChangeAfArea,2,x,y) +/** + * ptp_nikon_startmovie: + * + * This command starts movie capture (to card) + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_startmovie(params) ptp_generic_no_data(params,PTP_OC_NIKON_StartMovieRecInCard,0) +/** + * ptp_nikon_stopmovie: + * + * This command stops movie capture (to card) + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_stopmovie(params) ptp_generic_no_data(params,PTP_OC_NIKON_EndMovieRec,0) +/** + * ptp_canon_eos_afdrive: + * + * This command runs (drives) the lens autofocus. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_eos_afdrive(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_DoAf,0) +/** + * ptp_canon_eos_afcancel: + * + * This command cancels the lens autofocus. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_eos_afcancel(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_AfCancel,0) +/** + * ptp_canon_eos_zoom: + * + * This command runs (drives) the lens autofocus. + * + * params: PTPParams* + * params: arg1 unknown + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_eos_zoom(params,x) ptp_generic_no_data(params,PTP_OC_CANON_EOS_Zoom,1,x) +#define ptp_canon_eos_zoomposition(params,x,y) ptp_generic_no_data(params,PTP_OC_CANON_EOS_ZoomPosition,2,x,y) + +#define ptp_canon_eos_remotereleaseon(params,x,y) ptp_generic_no_data(params,PTP_OC_CANON_EOS_RemoteReleaseOn,2,x,y) +#define ptp_canon_eos_remotereleaseoff(params,x) ptp_generic_no_data(params,PTP_OC_CANON_EOS_RemoteReleaseOff,1,x) +/** + * ptp_nikon_mfdrive: + * + * This command runs (drives) the lens focus manually. + * + * params: PTPParams* + * flag: 0x1 for (no limit - closest), 0x2 for (closest - no limit) + * amount: amount of steps + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_mfdrive(params,flag,amount) ptp_generic_no_data(params,PTP_OC_NIKON_MfDrive,2,flag,amount) + +/** + * ptp_canon_eos_drivelens: + * + * This command runs (drives) the lens focus manually. + * + * params: PTPParams* + * amount: 0x1-0x3 for near range, 0x8001-0x8003 for far range. + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_canon_eos_drivelens(params,amount) ptp_generic_no_data(params,PTP_OC_CANON_EOS_DriveLens,1,amount) +/** + * ptp_nikon_capture: + * + * This command captures a picture on the Nikon. + * + * params: PTPParams* + * uint32_t x: unknown parameter. seen to be -1. + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_capture(params,x) ptp_generic_no_data(params,PTP_OC_NIKON_Capture,1,x) + +/** + * ptp_nikon_capture2: + * + * This command captures a picture on the Nikon. + * + * params: PTPParams* + * af: autofocus before capture (1 yes , 0 no) + * target: sdram 1, card 0 + * + * Return values: Some PTP_RC_* code. + * 2 params: + * 0xffffffff == No AF before, 0xfffffffe == AF before capture + * sdram=1, card=0 + */ +#define ptp_nikon_capture2(params,af,target) ptp_generic_no_data(params,PTP_OC_NIKON_InitiateCaptureRecInMedia,2,af?0xfffffffe:0xffffffff,target) +/** + * ptp_nikon_capture_sdram: + * + * This command captures a picture on the Nikon. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_capture_sdram(params) ptp_generic_no_data(params,PTP_OC_NIKON_AfCaptureSDRAM,0) +/** + * ptp_nikon_delete_sdram_image: + * + * This command deletes the current SDRAM image + * + * params: PTPParams* + * uint32_t oid + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_delete_sdram_image(params,oid) ptp_generic_no_data(params,PTP_OC_NIKON_DelImageSDRAM,1,oid) +/** + * ptp_nikon_start_liveview: + * + * This command starts LiveView mode of newer Nikons DSLRs. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_start_liveview(params) ptp_generic_no_data(params,PTP_OC_NIKON_StartLiveView,0) +uint16_t ptp_nikon_get_liveview_image (PTPParams* params, unsigned char**,unsigned int*); +uint16_t ptp_nikon_get_preview_image (PTPParams* params, unsigned char**, unsigned int*, uint32_t*); +/** + * ptp_nikon_end_liveview: + * + * This command ends LiveView mode of newer Nikons DSLRs. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_end_liveview(params) ptp_generic_no_data(params,PTP_OC_NIKON_EndLiveView,0) +uint16_t ptp_nikon_check_event (PTPParams* params, PTPContainer **evt, unsigned int *evtcnt); +uint16_t ptp_nikon_getfileinfoinblock (PTPParams* params, uint32_t p1, uint32_t p2, uint32_t p3, + unsigned char **data, unsigned int *size); +/** + * ptp_nikon_device_ready: + * + * This command checks if the device is ready. Used after + * a capture. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +#define ptp_nikon_device_ready(params) ptp_generic_no_data (params, PTP_OC_NIKON_DeviceReady, 0) +uint16_t ptp_mtp_getobjectpropssupported (PTPParams* params, uint16_t ofc, uint32_t *propnum, uint16_t **props); + + +/* Android MTP Extensions */ +uint16_t ptp_android_getpartialobject64 (PTPParams* params, uint32_t handle, uint64_t offset, + uint32_t maxbytes, unsigned char** object, + uint32_t *len); +#define ptp_android_begineditobject(params,handle) ptp_generic_no_data (params, PTP_OC_ANDROID_BeginEditObject, 1, handle) +#define ptp_android_truncate(params,handle,offset) ptp_generic_no_data (params, PTP_OC_ANDROID_TruncateObject, 3, handle, (offset & 0xFFFFFFFF), (offset >> 32)) +uint16_t ptp_android_sendpartialobject (PTPParams *params, uint32_t handle, + uint64_t offset, unsigned char *object, uint32_t len); +#define ptp_android_endeditobject(params,handle) ptp_generic_no_data (params, PTP_OC_ANDROID_EndEditObject, 1, handle) + +uint16_t ptp_olympus_getdeviceinfo (PTPParams*, PTPDeviceInfo*); +#define ptp_olympus_setcameracontrolmode(params,p1) ptp_generic_no_data (params, PTP_OC_OLYMPUS_SetCameraControlMode, 1, p1) +uint16_t ptp_olympus_opensession (PTPParams*, unsigned char**, unsigned int *); +#define ptp_olympus_capture(params,p1) ptp_generic_no_data (params, PTP_OC_OLYMPUS_Capture, 1, p1) +uint16_t ptp_olympus_getcameraid (PTPParams*, unsigned char**, unsigned int *); + +uint16_t ptp_olympus_omd_capture (PTPParams* params); +uint16_t ptp_olympus_omd_move_focus (PTPParams* params, uint32_t direction, uint32_t step_size); + +/* Non PTP protocol functions */ +static inline int +ptp_operation_issupported(PTPParams* params, uint16_t operation) +{ + unsigned int i=0; + + for (;ideviceinfo.OperationsSupported_len;i++) { + if (params->deviceinfo.OperationsSupported[i]==operation) + return 1; + } + return 0; +} + +int ptp_event_issupported (PTPParams* params, uint16_t event); +int ptp_property_issupported (PTPParams* params, uint16_t property); + +void ptp_free_params (PTPParams *params); +void ptp_free_objectpropdesc (PTPObjectPropDesc*); +void ptp_free_devicepropdesc (PTPDevicePropDesc*); +void ptp_free_devicepropvalue (uint16_t, PTPPropertyValue*); +void ptp_free_objectinfo (PTPObjectInfo *oi); +void ptp_free_object (PTPObject *oi); + +const char *ptp_strerror (uint16_t ret, uint16_t vendor); +void ptp_debug (PTPParams *params, const char *format, ...); +void ptp_error (PTPParams *params, const char *format, ...); + + +const char* ptp_get_property_description(PTPParams* params, uint16_t dpc); + +const char* ptp_get_opcode_name(PTPParams* params, uint16_t opcode); +const char* ptp_get_event_code_name(PTPParams* params, uint16_t event_code); + +int +ptp_render_property_value(PTPParams* params, uint16_t dpc, + PTPDevicePropDesc *dpd, unsigned int length, char *out); +int ptp_render_ofc(PTPParams* params, uint16_t ofc, int spaceleft, char *txt); +int ptp_render_mtp_propname(uint16_t propid, int spaceleft, char *txt); +MTPProperties *ptp_get_new_object_prop_entry(MTPProperties **props, int *nrofprops); +void ptp_destroy_object_prop(MTPProperties *prop); +void ptp_destroy_object_prop_list(MTPProperties *props, int nrofprops); +MTPProperties *ptp_find_object_prop_in_cache(PTPParams *params, uint32_t const handle, uint32_t const attribute_id); +uint16_t ptp_remove_object_from_cache(PTPParams *params, uint32_t handle); +uint16_t ptp_add_object_to_cache(PTPParams *params, uint32_t handle); +uint16_t ptp_object_want (PTPParams *, uint32_t handle, unsigned int want, PTPObject**retob); +void ptp_objects_sort (PTPParams *); +uint16_t ptp_object_find (PTPParams *params, uint32_t handle, PTPObject **retob); +uint16_t ptp_object_find_or_insert (PTPParams *params, uint32_t handle, PTPObject **retob); +uint16_t ptp_list_folder (PTPParams *params, uint32_t storage, uint32_t handle); +/* ptpip.c */ +void ptp_nikon_getptpipguid (unsigned char* guid); + +/* CHDK specifics */ +#define PTP_OC_CHDK 0x9999 +typedef struct tagptp_chdk_videosettings { + long live_image_buffer_width; + long live_image_width; + long live_image_height; + long bitmap_buffer_width; + long bitmap_width; + long bitmap_height; + unsigned palette[16]; +} ptp_chdk_videosettings; + +/* Nafraf: Test this!!!*/ +#define ptp_chdk_switch_mode(params,mode) ptp_generic_no_data(params,PTP_OC_CHDK,2,PTP_CHDK_SwitchMode,mode) + +/* include CHDK ptp protocol definitions from a CHDK source tree */ +#include "chdk_ptp.h" +#if (PTP_CHDK_VERSION_MAJOR < 2 || (PTP_CHDK_VERSION_MAJOR == 2 && PTP_CHDK_VERSION_MINOR < 5)) +#error your chdk headers are too old, unset CHDK_SRC_DIR in config.mk +#endif +#include "chdk_live_view.h" + +/* the following happens to match what is used in CHDK, but is not part of the protocol */ +typedef struct { + unsigned size; + unsigned script_id; /* id of script message is to/from */ + unsigned type; + unsigned subtype; + char data[]; +} ptp_chdk_script_msg; + +/* +chunk for remote capture +*/ +typedef struct { + uint32_t size; /* length of data */ + int last; /* is it the last chunk? */ + uint32_t offset; /* offset within file, or -1 */ + unsigned char *data; /* data, must be free'd by caller when done */ +} ptp_chdk_rc_chunk; + + +uint16_t ptp_chdk_get_memory(PTPParams* params, int start, int num, unsigned char **); +uint16_t ptp_chdk_set_memory_long(PTPParams* params, int addr, int val); +int ptp_chdk_upload(PTPParams* params, char *local_fn, char *remote_fn); +uint16_t ptp_chdk_download(PTPParams* params, char *remote_fn, PTPDataHandler *handler); + +/* remote capture */ +uint16_t ptp_chdk_rcisready(PTPParams* params, int *isready,int *imgnum); +uint16_t ptp_chdk_rcgetchunk(PTPParams* params,int fmt, ptp_chdk_rc_chunk *chunk); + +uint16_t ptp_chdk_exec_lua(PTPParams* params, char *script, int flags, int *script_id,int *status); +uint16_t ptp_chdk_get_version(PTPParams* params, int *major, int *minor); +uint16_t ptp_chdk_get_script_support(PTPParams* params, unsigned *status); +uint16_t ptp_chdk_get_script_status(PTPParams* params, unsigned *status); +uint16_t ptp_chdk_write_script_msg(PTPParams* params, char *data, unsigned size, int target_script_id, int *status); +uint16_t ptp_chdk_read_script_msg(PTPParams* params, ptp_chdk_script_msg **msg); +uint16_t ptp_chdk_get_live_data(PTPParams* params, unsigned flags, unsigned char **data, unsigned int *data_size); +uint16_t ptp_chdk_parse_live_data (PTPParams* params, unsigned char *data, unsigned int data_size, + lv_data_header *header, lv_framebuffer_desc *vpd, lv_framebuffer_desc *bmd); +uint16_t ptp_chdk_call_function(PTPParams* params, int *args, int size, int *ret); + +/*uint16_t ptp_chdk_get_script_output(PTPParams* params, char **output ); */ +/*uint16_t ptp_chdk_get_video_settings(PTPParams* params, ptp_chdk_videosettings* vsettings);*/ + +uint16_t ptp_fuji_getevents (PTPParams* params, uint16_t** events, uint16_t* count); + +#define ptp_panasonic_liveview(params,enable) ptp_generic_no_data(params,PTP_OC_PANASONIC_Liveview,1,enable?0xD000010:0xD000011) +uint16_t ptp_panasonic_liveview_image (PTPParams* params, unsigned char **data, unsigned int *size); + +uint16_t ptp_panasonic_setdeviceproperty (PTPParams* params, uint32_t propcode, unsigned char *value, uint16_t valuesize); +uint16_t ptp_panasonic_getdeviceproperty (PTPParams *params, uint32_t propcode, uint16_t *valuesize, uint32_t *currentValue); +uint16_t ptp_panasonic_getdevicepropertydesc (PTPParams *params, uint32_t propcode, uint16_t valuesize, uint32_t *currentValue, uint32_t **propertyValueList, uint32_t *propertyValueListLength); +uint16_t ptp_panasonic_getdevicepropertysize (PTPParams *params, uint32_t propcode); +uint16_t ptp_panasonic_setcapturetarget (PTPParams *params, uint16_t mode); +uint16_t ptp_panasonic_manualfocusdrive (PTPParams* params, uint16_t mode); +uint16_t ptp_panasonic_9401 (PTPParams* params, uint32_t x); + +uint16_t ptp_olympus_liveview_image (PTPParams* params, unsigned char **data, unsigned int *size); +#define ptp_olympus_omd_move_focus(params,direction,step_size) ptp_generic_no_data(params,PTP_OC_OLYMPUS_OMD_MFDrive,2,direction,step_size) +uint16_t ptp_olympus_omd_capture (PTPParams* params); +uint16_t ptp_olympus_omd_bulbstart (PTPParams* params); +uint16_t ptp_olympus_omd_bulbend (PTPParams* params); +uint16_t ptp_olympus_init_pc_mode (PTPParams* params); +uint16_t ptp_olympus_sdram_image (PTPParams* params, unsigned char **data, unsigned int *size); + + + +#define ptp_panasonic_capture(params) ptp_generic_no_data(params,PTP_OC_PANASONIC_InitiateCapture,1,0x3000011) + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __PTP_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptpip.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptpip.c new file mode 100644 index 00000000..7a6492cc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptpip.c @@ -0,0 +1,815 @@ +/* ptpip.c + * + * Copyright (C) 2006 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +/* + * This is working, but unfinished! + * - Event handling not finished. + * - Some configure checking magic missing for the special header files + * and functions. + * - Not everything implementation correctly cross checked. + * - Coolpix P3 does not give transfer status (image 000x/000y), and reports an + * error when transfers finish correctly. + * + * Nikon WU-1* adapters might use 0011223344556677 as GUID always... + */ +#define _DEFAULT_SOURCE +#include "config.h" + +#include +#include +#include +#include +#include +#include +#ifdef HAVE_SYS_SELECT_H +#include +#endif + +#ifdef WIN32 +# include +#else +# include +# include +#endif + +#include +#include +#include + +#include "ptp.h" +#include "ptp-private.h" + +#define PTPIP_VERSION_MAJOR 0x0001 +#define PTPIP_VERSION_MINOR 0x0000 + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "ptp.h" +#include "ptp-bugs.h" + +#include "ptp-pack.c" + +#define ptpip_len 0 +#define ptpip_type 4 + +#define ptpip_cmd_dataphase 8 +#define ptpip_cmd_code 12 +#define ptpip_cmd_transid 14 +#define ptpip_cmd_param1 18 +#define ptpip_cmd_param2 22 +#define ptpip_cmd_param3 26 +#define ptpip_cmd_param4 30 +#define ptpip_cmd_param5 34 + +#define PTP_EVENT_CHECK 0x0000 /* waits for */ +#define PTP_EVENT_CHECK_FAST 0x0001 /* checks */ +static uint16_t ptp_ptpip_check_event (PTPParams* params); +static uint16_t ptp_ptpip_event (PTPParams* params, PTPContainer* event, int wait); + +/* send / receive functions */ +uint16_t +ptp_ptpip_sendreq (PTPParams* params, PTPContainer* req, int dataphase) +{ + int ret; + int len = 18+req->Nparam*4; + unsigned char *request = malloc(len); + + switch (req->Nparam) { + default: + case 0: GP_LOG_D ("Sending PTP_OC 0x%0x (%s) request...", req->Code, ptp_get_opcode_name(params, req->Code)); + break; + case 1: GP_LOG_D ("Sending PTP_OC 0x%0x (%s) (0x%x) request...", req->Code, ptp_get_opcode_name(params, req->Code), req->Param1); + break; + case 2: GP_LOG_D ("Sending PTP_OC 0x%0x (%s) (0x%x,0x%x) request...", req->Code, ptp_get_opcode_name(params, req->Code), req->Param1, req->Param2); + break; + case 3: GP_LOG_D ("Sending PTP_OC 0x%0x (%s) (0x%x,0x%x,0x%x) request...", req->Code, ptp_get_opcode_name(params, req->Code), req->Param1, req->Param2, req->Param3); + break; + } + + ptp_ptpip_check_event (params); + + htod32a(&request[ptpip_type],PTPIP_CMD_REQUEST); + htod32a(&request[ptpip_len],len); + /* sending data = 2, receiving data or no data = 1 */ + if ((dataphase&PTP_DP_DATA_MASK) == PTP_DP_SENDDATA) + htod32a(&request[ptpip_cmd_dataphase],2); + else + htod32a(&request[ptpip_cmd_dataphase],1); + htod16a(&request[ptpip_cmd_code],req->Code); + htod32a(&request[ptpip_cmd_transid],req->Transaction_ID); + + switch (req->Nparam) { + case 5: htod32a(&request[ptpip_cmd_param5],req->Param5); + case 4: htod32a(&request[ptpip_cmd_param4],req->Param4); + case 3: htod32a(&request[ptpip_cmd_param3],req->Param3); + case 2: htod32a(&request[ptpip_cmd_param2],req->Param2); + case 1: htod32a(&request[ptpip_cmd_param1],req->Param1); + case 0: + default: + break; + } + GP_LOG_DATA ( (char*)request, len, "ptpip/oprequest data:"); + ret = write (params->cmdfd, request, len); + free (request); + if (ret == -1) + perror ("sendreq/write to cmdfd"); + if (ret != len) { + GP_LOG_E ("ptp_ptpip_sendreq() len =%d but ret=%d", len, ret); + return PTP_RC_OK; + } + return PTP_RC_OK; +} + +static uint16_t +ptp_ptpip_generic_read (PTPParams *params, int fd, PTPIPHeader *hdr, unsigned char**data) { + int ret, len, curread; + unsigned char *xhdr; + + xhdr = (unsigned char*)hdr; curread = 0; len = sizeof (PTPIPHeader); + while (curread < len) { + ret = read (fd, xhdr + curread, len - curread); + if (ret == -1) { + perror ("read PTPIPHeader"); + return PTP_RC_GeneralError; + } + GP_LOG_DATA ((char*)xhdr+curread, ret, "ptpip/generic_read header:"); + curread += ret; + if (ret == 0) { + GP_LOG_E ("End of stream after reading %d bytes of ptpipheader", ret); + return PTP_RC_GeneralError; + } + } + len = dtoh32 (hdr->length) - sizeof (PTPIPHeader); + if (len < 0) { + GP_LOG_E ("len < 0, %d?", len); + return PTP_RC_GeneralError; + } + *data = malloc (len); + if (!*data) { + GP_LOG_E ("malloc failed."); + return PTP_RC_GeneralError; + } + curread = 0; + while (curread < len) { + ret = read (fd, (*data)+curread, len-curread); + if (ret == -1) { + GP_LOG_E ("error %d in reading PTPIP data", errno); + free (*data);*data = NULL; + return PTP_RC_GeneralError; + } else { + GP_LOG_DATA ((char*)((*data)+curread), ret, "ptpip/generic_read data:"); + } + if (ret == 0) + break; + curread += ret; + } + if (curread != len) { + GP_LOG_E ("read PTPIP data, ret %d vs len %d", ret, len); + free (*data);*data = NULL; + return PTP_RC_GeneralError; + } + return PTP_RC_OK; +} + +static uint16_t +ptp_ptpip_cmd_read (PTPParams* params, PTPIPHeader *hdr, unsigned char** data) { + ptp_ptpip_check_event (params); + return ptp_ptpip_generic_read (params, params->cmdfd, hdr, data); +} + +static uint16_t +ptp_ptpip_evt_read (PTPParams* params, PTPIPHeader *hdr, unsigned char** data) { + return ptp_ptpip_generic_read (params, params->evtfd, hdr, data); +} + +static uint16_t +ptp_ptpip_check_event (PTPParams* params) { + PTPContainer event; + uint16_t ret; + + event.Code = 0; + ret = ptp_ptpip_event (params, &event, PTP_EVENT_CHECK_FAST); + if (ret != PTP_RC_OK) + return ret; + if (event.Code == 0) + return ret; + return ptp_add_event (params, &event); +} + +#define ptpip_startdata_transid 0 +#define ptpip_startdata_totallen 4 +#define ptpip_startdata_unknown 8 +#define ptpip_data_transid 0 +#define ptpip_data_payload 4 + +#define WRITE_BLOCKSIZE 65536 +uint16_t +ptp_ptpip_senddata (PTPParams* params, PTPContainer* ptp, + uint64_t size, PTPDataHandler *handler +) { + unsigned char request[0x14]; + unsigned int curwrite, towrite; + int ret; + unsigned char* xdata; + + GP_LOG_D ("Sending PTP_OC 0x%0x (%s) data...", ptp->Code, ptp_get_opcode_name(params, ptp->Code)); + htod32a(&request[ptpip_type],PTPIP_START_DATA_PACKET); + htod32a(&request[ptpip_len],sizeof(request)); + htod32a(&request[ptpip_startdata_transid + 8],ptp->Transaction_ID); + htod32a(&request[ptpip_startdata_totallen + 8],size); + htod32a(&request[ptpip_startdata_unknown + 8],0); + GP_LOG_DATA ((char*)request, sizeof(request), "ptpip/senddata header:"); + ret = write (params->cmdfd, request, sizeof(request)); + if (ret == -1) + perror ("sendreq/write to cmdfd"); + if (ret != sizeof(request)) { + GP_LOG_E ("ptp_ptpip_senddata() len=%d but ret=%d", (int)sizeof(request), ret); + return PTP_RC_GeneralError; + } + xdata = malloc(WRITE_BLOCKSIZE+8+4); + if (!xdata) return PTP_RC_GeneralError; + curwrite = 0; + while (curwrite < size) { + unsigned long type, written, towrite2, xtowrite; + + ptp_ptpip_check_event (params); + + towrite = size - curwrite; + if (towrite > WRITE_BLOCKSIZE) { + towrite = WRITE_BLOCKSIZE; + type = PTPIP_DATA_PACKET; + } else { + type = PTPIP_END_DATA_PACKET; + } + ret = handler->getfunc (params, handler->priv, towrite, &xdata[ptpip_data_payload+8], &xtowrite); + if (ret == -1) { + perror ("getfunc in senddata failed"); + free (xdata); + return PTP_RC_GeneralError; + } + towrite2 = xtowrite + 12; + htod32a(&xdata[ptpip_type], type); + htod32a(&xdata[ptpip_len], towrite2); + htod32a(&xdata[ptpip_data_transid+8], ptp->Transaction_ID); + GP_LOG_DATA ((char*)xdata, towrite2, "ptpip/senddata data:"); + written = 0; + while (written < towrite2) { + ret = write (params->cmdfd, xdata+written, towrite2-written); + if (ret == -1) { + perror ("write in senddata failed"); + free (xdata); + return PTP_RC_GeneralError; + } + written += ret; + } + curwrite += towrite; + } + free (xdata); + return PTP_RC_OK; +} + +uint16_t +ptp_ptpip_getdata (PTPParams* params, PTPContainer* ptp, PTPDataHandler *handler) { + PTPIPHeader hdr; + unsigned char *xdata = NULL; + uint16_t ret; + unsigned long toread, curread; + int xret; + + GP_LOG_D ("Reading PTP_OC 0x%0x (%s) data...", ptp->Code, ptp_get_opcode_name(params, ptp->Code)); + ret = ptp_ptpip_cmd_read (params, &hdr, &xdata); + if (ret != PTP_RC_OK) + return ret; + + if (dtoh32(hdr.type) == PTPIP_CMD_RESPONSE) { /* might happen if we have no data transfer due to error? */ + GP_LOG_E ("Unexpected ptp response, ptp code %x", dtoh16a(&xdata[0])); + return dtoh16a(&xdata[0]); + } + if (dtoh32(hdr.type) != PTPIP_START_DATA_PACKET) { + GP_LOG_E ("got reply type %d\n", dtoh32(hdr.type)); + return PTP_RC_GeneralError; + } + toread = dtoh32a(&xdata[ptpip_data_payload]); + free (xdata); xdata = NULL; + curread = 0; + while (curread < toread) { + ret = ptp_ptpip_cmd_read (params, &hdr, &xdata); + if (ret != PTP_RC_OK) + return ret; + if (dtoh32(hdr.type) == PTPIP_END_DATA_PACKET) { + unsigned long datalen = dtoh32(hdr.length)-8-ptpip_data_payload; + if (datalen > (toread-curread)) { + GP_LOG_E ("returned data is too much, expected %ld, got %ld", + (toread-curread), datalen + ); + break; + } + xret = handler->putfunc (params, handler->priv, + datalen, xdata+ptpip_data_payload + ); + if (xret != PTP_RC_OK) { + GP_LOG_E ("failed to putfunc of returned data"); + break; + } + curread += datalen; + free (xdata); xdata = NULL; + continue; + } + if (dtoh32(hdr.type) == PTPIP_DATA_PACKET) { + unsigned long datalen = dtoh32(hdr.length)-8-ptpip_data_payload; + if (datalen > (toread-curread)) { + GP_LOG_E ("returned data is too much, expected %ld, got %ld", + (toread-curread), datalen + ); + break; + } + xret = handler->putfunc (params, handler->priv, + datalen, xdata+ptpip_data_payload + ); + if (xret != PTP_RC_OK) { + GP_LOG_E ("failed to putfunc of returned data"); + break; + } + curread += datalen; + free (xdata); xdata = NULL; + continue; + } + GP_LOG_E ("ret type %d", hdr.type); + } + if (curread < toread) + return PTP_RC_GeneralError; + return PTP_RC_OK; +} + +#define ptpip_resp_code 0 +#define ptpip_resp_transid 2 +#define ptpip_resp_param1 6 +#define ptpip_resp_param2 10 +#define ptpip_resp_param3 14 +#define ptpip_resp_param4 18 +#define ptpip_resp_param5 22 + +uint16_t +ptp_ptpip_getresp (PTPParams* params, PTPContainer* resp) +{ + PTPIPHeader hdr; + unsigned char *data = NULL; + uint16_t ret; + int n; + + GP_LOG_D ("Reading PTP_OC 0x%0x (%s) response...", resp->Code, ptp_get_opcode_name(params, resp->Code)); +retry: + ret = ptp_ptpip_cmd_read (params, &hdr, &data); + if (ret != PTP_RC_OK) + return ret; + + switch (dtoh32(hdr.type)) { + case PTPIP_END_DATA_PACKET: + GP_LOG_D("PTPIP_END_DATA_PACKET"); + resp->Transaction_ID = dtoh32a(&data[0]); + free (data); + data = NULL; + goto retry; + case PTPIP_CMD_RESPONSE: + GP_LOG_D("PTPIP_CMD_RESPONSE"); + resp->Code = dtoh16a(&data[ptpip_resp_code]); + resp->Transaction_ID = dtoh32a(&data[ptpip_resp_transid]); + n = (dtoh32(hdr.length) - sizeof(hdr) - ptpip_resp_param1)/sizeof(uint32_t); + switch (n) { + case 5: resp->Param5 = dtoh32a(&data[ptpip_resp_param5]); + case 4: resp->Param4 = dtoh32a(&data[ptpip_resp_param4]); + case 3: resp->Param3 = dtoh32a(&data[ptpip_resp_param3]); + case 2: resp->Param2 = dtoh32a(&data[ptpip_resp_param2]); + case 1: resp->Param1 = dtoh32a(&data[ptpip_resp_param1]); + case 0: break; + default: + GP_LOG_E ("response got %d parameters?", n); + break; + } + break; + default: + GP_LOG_E ("response type %d packet?", dtoh32(hdr.type)); + break; + } + free (data); + return PTP_RC_OK; +} + +#define ptpip_initcmd_guid 8 +#define ptpip_initcmd_name 24 + +static uint16_t +ptp_ptpip_init_command_request (PTPParams* params) +{ + char hostname[100]; + unsigned char* cmdrequest; + unsigned int i; + int len, ret; + unsigned char guid[16]; + + ptp_nikon_getptpipguid(guid); +#if !defined (WIN32) + if (gethostname (hostname, sizeof(hostname))) + return PTP_RC_GeneralError; +#else + strcpy (hostname, "gpwindows"); +#endif + len = ptpip_initcmd_name + (strlen(hostname)+1)*2 + 4; + + cmdrequest = malloc(len); + htod32a(&cmdrequest[ptpip_type],PTPIP_INIT_COMMAND_REQUEST); + htod32a(&cmdrequest[ptpip_len],len); + + memcpy(&cmdrequest[ptpip_initcmd_guid], guid, 16); + for (i=0;i ucs-2 in little endian */ + cmdrequest[ptpip_initcmd_name+i*2] = hostname[i]; + cmdrequest[ptpip_initcmd_name+i*2+1] = 0; + } + htod16a(&cmdrequest[ptpip_initcmd_name+(strlen(hostname)+1)*2],PTPIP_VERSION_MINOR); + htod16a(&cmdrequest[ptpip_initcmd_name+(strlen(hostname)+1)*2+2],PTPIP_VERSION_MAJOR); + + GP_LOG_DATA ((char*)cmdrequest, len, "ptpip/init_cmd data:"); + ret = write (params->cmdfd, cmdrequest, len); + free (cmdrequest); + if (ret == -1) { + perror("write init cmd request"); + return PTP_RC_GeneralError; + } + GP_LOG_E ("return %d / len %d", ret, len); + if (ret != len) { + GP_LOG_E ("return %d vs len %d", ret, len); + return PTP_RC_GeneralError; + } + return PTP_RC_OK; +} + +#define ptpip_cmdack_idx 0 +#define ptpip_cmdack_guid 4 +#define ptpip_cmdack_name 20 + +static uint16_t +ptp_ptpip_init_command_ack (PTPParams* params) +{ + PTPIPHeader hdr; + unsigned char *data = NULL; + uint16_t ret; + int i; + unsigned short *name; + + ret = ptp_ptpip_generic_read (params, params->cmdfd, &hdr, &data); + if (ret != PTP_RC_OK) + return ret; + if (hdr.type != dtoh32(PTPIP_INIT_COMMAND_ACK)) { + GP_LOG_E ("bad type returned %d", htod32(hdr.type)); + free (data); + if (hdr.type == PTPIP_INIT_FAIL) /* likely reason is permission denied */ + return PTP_RC_AccessDenied; + return PTP_RC_GeneralError; + } + params->eventpipeid = dtoh32a(&data[ptpip_cmdack_idx]); + memcpy (params->cameraguid, &data[ptpip_cmdack_guid], 16); + name = (unsigned short*)&data[ptpip_cmdack_name]; + for (i=0;name[i];i++) /* EMPTY */; + params->cameraname = malloc((i+1)*sizeof(uint16_t)); + for (i=0;name[i];i++) + params->cameraname[i] = name[i]; + free (data); + return PTP_RC_OK; +} + +#define ptpip_eventinit_idx 8 +#define ptpip_eventinit_size 12 +static uint16_t +ptp_ptpip_init_event_request (PTPParams* params) +{ + unsigned char evtrequest[ptpip_eventinit_size]; + int ret; + + htod32a(&evtrequest[ptpip_type],PTPIP_INIT_EVENT_REQUEST); + htod32a(&evtrequest[ptpip_len],ptpip_eventinit_size); + htod32a(&evtrequest[ptpip_eventinit_idx],params->eventpipeid); + + GP_LOG_DATA ((char*)evtrequest, ptpip_eventinit_size, "ptpip/init_event data:"); + ret = write (params->evtfd, evtrequest, ptpip_eventinit_size); + if (ret == -1) { + perror("write init evt request"); + return PTP_RC_GeneralError; + } + if (ret != ptpip_eventinit_size) { + GP_LOG_E ("unexpected retsize %d, expected %d", ret, ptpip_eventinit_size); + return PTP_RC_GeneralError; + } + return PTP_RC_OK; +} + +static uint16_t +ptp_ptpip_init_event_ack (PTPParams* params) +{ + PTPIPHeader hdr; + unsigned char *data = NULL; + uint16_t ret; + + ret = ptp_ptpip_evt_read (params, &hdr, &data); + if (ret != PTP_RC_OK) + return ret; + free (data); + if (hdr.type != dtoh32(PTPIP_INIT_EVENT_ACK)) { + GP_LOG_E ("bad type returned %d\n", htod32(hdr.type)); + return PTP_RC_GeneralError; + } + return PTP_RC_OK; +} + + +/* Event handling functions */ + +/* PTP Events wait for or check mode */ + +#define ptpip_event_code 0 +#define ptpip_event_transid 2 +#define ptpip_event_param1 6 +#define ptpip_event_param2 10 +#define ptpip_event_param3 14 + +static uint16_t +ptp_ptpip_event (PTPParams* params, PTPContainer* event, int wait) +{ +#ifndef WIN32 + fd_set infds; + struct timeval timeout; + int ret; + unsigned char* data = NULL; + PTPIPHeader hdr; + int n; + + while (1) { + FD_ZERO(&infds); + FD_SET(params->evtfd, &infds); + timeout.tv_sec = 0; + if (wait == PTP_EVENT_CHECK_FAST) + timeout.tv_usec = 1; + else + timeout.tv_usec = 1000; /* 1/1000 second .. perhaps wait longer? */ + + ret = select (params->evtfd+1, &infds, NULL, NULL, &timeout); + if (1 != ret) { + if (-1 == ret) { + GP_LOG_D ("select returned error, errno is %d", errno); + return PTP_ERROR_IO; + } + return PTP_ERROR_TIMEOUT; + } + + ret = ptp_ptpip_evt_read (params, &hdr, &data); + if (ret != PTP_RC_OK) + return ret; + GP_LOG_D ("hdr type %d, length %d", hdr.type, hdr.length); + + if (dtoh32(hdr.type) == PTPIP_EVENT) { + break; + } + + /* TODO: Handle cancel transaction and ping/pong + * If not PTPIP_EVENT, process it and wait for next PTPIP_EVENT + */ + GP_LOG_E ("unknown/unhandled event type %d", dtoh32(hdr.type)); + } + + event->Code = dtoh16a(&data[ptpip_event_code]); + event->Transaction_ID = dtoh32a(&data[ptpip_event_transid]); + n = (dtoh32(hdr.length) - sizeof(hdr) - ptpip_event_param1)/sizeof(uint32_t); + switch (n) { + case 3: event->Param3 = dtoh32a(&data[ptpip_event_param3]); + case 2: event->Param2 = dtoh32a(&data[ptpip_event_param2]); + case 1: event->Param1 = dtoh32a(&data[ptpip_event_param1]); + case 0: break; + default: + GP_LOG_E ("response got %d parameters?", n); + break; + } + free (data); + return PTP_RC_OK; +#else + GP_LOG_E ("not supported currently on Windows"); + return PTP_RC_OK; +#endif +} + +uint16_t +ptp_ptpip_event_check_queue (PTPParams* params, PTPContainer* event) { + /* the fast check just takes 1ms, so lets keep it */ + return ptp_ptpip_event (params, event, PTP_EVENT_CHECK_FAST); +} + +uint16_t +ptp_ptpip_event_check (PTPParams* params, PTPContainer* event) { + return ptp_ptpip_event (params, event, PTP_EVENT_CHECK_FAST); +} + +uint16_t +ptp_ptpip_event_wait (PTPParams* params, PTPContainer* event) { + return ptp_ptpip_event (params, event, PTP_EVENT_CHECK); +} + +/** + * ptp_nikon_getwifiguid: + * + * This command gets the GUID of this machine. If it does not exists, it creates + * one. + * + * params: PTPParams* + * + * Return values: Some PTP_RC_* code. + * + **/ +void +ptp_nikon_getptpipguid (unsigned char* guid) { + char buffer[1024]; + int i; + long val; + int valid; + char* endptr; + char* pos; + + gp_setting_get("ptp2_ip","guid",buffer); + + if (strlen(buffer) == 47) { /* 47 = 16*2 (numbers) + 15 (semi-colons) */ + pos = buffer; + valid = 1; + for (i = 0; i < 16; i++) { + val = strtol(pos, &endptr, 16); + if (((*endptr != ':') && (*endptr != 0)) || (endptr != pos+2)) { + valid = 0; + break; + } + guid[i] = (unsigned char)val; + pos += 3; + } + /*printf("GUID "); + for (i = 0; i < 16; i++) { + printf("%02x:", guid[i]); + } + printf("\n");*/ + if (valid) + return; + } + + /*fprintf(stderr, "Invalid GUID\n");*/ + + /* Generate an ID */ + srand(time(NULL)); + buffer[0] = 0; + pos = buffer; + for (i = 0; i < 16; i++) { + guid[i] = (unsigned char) ((256.0 * rand()) / RAND_MAX); + pos += sprintf(pos, "%02x:", guid[i]); + } + buffer[47] = 0; + + /*printf("New GUID: %s\n", buffer);*/ + + gp_setting_set("ptp2_ip","guid",buffer); +} + + +int +ptp_ptpip_connect (PTPParams* params, const char *address) { + char *addr, *s, *p; + int port, eventport, tries; + struct sockaddr_in saddr; + uint16_t ret; + + GP_LOG_D ("connecting to %s.", address); + if (NULL == strchr (address,':')) + return GP_ERROR_BAD_PARAMETERS; + +#ifdef HAVE_INET_ATON + addr = strdup (address); + if (!addr) + return GP_ERROR_NO_MEMORY; + s = strchr (addr,':'); + if (!s) { + GP_LOG_E ("addr %s should contain a :", address); + free (addr); + return GP_ERROR_BAD_PARAMETERS; + } + *s = '\0'; + p = strchr (s+1,':'); + eventport = port = 15740; + if (p) { + *p = '\0'; + if (!sscanf (p+1,"%d",&port)) { + fprintf(stderr,"failed to scan for port in %s\n", p+1); + free (addr); + return GP_ERROR_BAD_PARAMETERS; + } + /* different event port ? */ + p = strchr (p+1,':'); + if (p) { + if (!sscanf (p+1,"%d",&eventport)) { + fprintf(stderr,"failed to scan for eventport in %s\n", p+1); + free (addr); + return GP_ERROR_BAD_PARAMETERS; + } + } + } + if (!inet_aton (s+1, &saddr.sin_addr)) { + fprintf(stderr,"failed to scan for addr in %s\n", s+1); + free (addr); + return GP_ERROR_BAD_PARAMETERS; + } + saddr.sin_port = htons(port); + saddr.sin_family = AF_INET; + free (addr); + params->cmdfd = socket (PF_INET, SOCK_STREAM, 0); + if (params->cmdfd == -1) { + perror ("socket cmd"); + return GP_ERROR_BAD_PARAMETERS; + } + params->evtfd = socket (PF_INET, SOCK_STREAM, 0); + if (params->evtfd == -1) { + perror ("socket evt"); + close (params->cmdfd); + return GP_ERROR_BAD_PARAMETERS; + } + if (-1 == connect (params->cmdfd, (struct sockaddr*)&saddr, sizeof(struct sockaddr_in))) { + perror ("connect cmd"); + close (params->cmdfd); + close (params->evtfd); + return GP_ERROR_IO; + } + ret = ptp_ptpip_init_command_request (params); + if (ret != PTP_RC_OK) { + close (params->cmdfd); + close (params->evtfd); + return translate_ptp_result (ret); + } + ret = ptp_ptpip_init_command_ack (params); + if (ret != PTP_RC_OK) { + close (params->cmdfd); + close (params->evtfd); + return translate_ptp_result (ret); + } + /* seen on Ricoh Theta, camera is not immediately ready. try again two times. */ + tries = 2; + saddr.sin_port = htons(eventport); + do { + if (-1 != connect (params->evtfd, (struct sockaddr*)&saddr, sizeof(struct sockaddr_in))) + break; + if ((errno == ECONNREFUSED) && (tries--)) { + GP_LOG_D ("event connect failed, retrying after short wait"); + usleep(100*1000); + continue; + } + GP_LOG_E ("could not connect event"); + close (params->cmdfd); + close (params->evtfd); + return GP_ERROR_IO; + } while (1); + ret = ptp_ptpip_init_event_request (params); + if (ret != PTP_RC_OK) + return translate_ptp_result (ret); + ret = ptp_ptpip_init_event_ack (params); + if (ret != PTP_RC_OK) + return translate_ptp_result (ret); + GP_LOG_D ("ptpip connected!"); + return GP_OK; +#else + GP_LOG_E ("Windows currently not supported, neeeds a winsock port."); + return GP_ERROR_NOT_SUPPORTED; +#endif +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptpip.html b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptpip.html new file mode 100644 index 00000000..12814115 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/ptpip.html @@ -0,0 +1,198 @@ + + +PTP/IP protocol - briefly reverse engineered + + + + +

PTP/IP

+
+This document briefly describes the PTP/IP transfer layer, as reverse +engineered from ethereal packet dumps and glanced from the sparely available +online documentation. +

+It operates on top of a normal IP networkstack, the connections +are simple TCP/IP socket connection. +

+Default port is 15740 (same as the ISO standard number for PTP). +

+There are 2 connections used:
+

    +
  • control & data connection (Initiator (computer) driven) +
  • event connection (Responder (camera) driven) +
+

+The participants communicate in packets, their layout is: + + + + + + +
LengthVariableNotes
4length (little endian)Length of the whole packet including the header
4type (little endian)Type, listed below
length - 8dataspecific on type
+

+Observed types: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDirectionNameNext reply(s)Payload
1I->RInit_Command_Request2 or 5
    +
  • 16 byte GUID +
  • xx byte WCHAR computername with terminating \0 +
+
2R->IInit_Command_Ack5 or MAINLOOP
    +
  • 4 byte ID (session id, to be used for event connection startup) +
  • 16 byte GUID (MAC is used here for my camera, and repeated) +
  • xx byte WCHAR Camera Name with terminating \0 +
3I->RInit_Event_Request4 or 5
  • 4 byte ID (from Init_Command_Ack)
4R->IInit_Event_AckEVENTLOOP
  • No payload.
5I->RInit_FailEnd of communication
  • 4 byte error code (unclear meaning)
6I->RCmd_Request9 -> A/C or 7
    +
  • 4 byte unknown. set to 1 currently. +
  • 2 byte PTP command code +
  • 4 byte Transaction ID +
  • n x 4 byte PTP command arguments +
7R->ICmd_ResponseMAINLOOP
    +
  • 2 bytes PTP response code +
  • 4 bytes Transaction ID +
  • nr*4 bytes arguments (depending on length of response) +
8R->IEventEVENTLOOP +
    +
  • 2 byte PTP event code +
  • ... +
+ Not fully investigated, but similar to PTP event. +
9R<->IStart_Data_Packet10,12
    +
  • 4 byte Transaction ID +
  • 4 byte Total data download size (without headers) +
10R<->IData_Packet10,12
    +
  • 4 byte Transaction ID +
  • length-4-8 bytes payload data +
11I->RCancel_Transaction7 ?(Untested yet.)
    +
  • 4 bytes Transaction ID +
12R<->IEnd_Data_Packet7 ?
    +
  • 4 byte Transaction ID +
  • length-4-8 bytes payload data +
13R<->IPing14
  • No payload.
13R<->IPongEVENTLOOP
  • No payload.
+

+State transitions: +

+Initial Phase: +

+Command Connection: + + + +
1-> 2-> MAINLOOP
   \ 5-> EXIT
+

+Event Connection: + + + +
3-> 4-> EVENTLOOP
   \ 5-> EXIT
+Cameras using PTP/IP: +

    +
  • Nikon CoolPix P1 +
  • Nikon CoolPix P2 +
  • Nikon CoolPix P3 +
  • Nikon CoolPix P4 +
  • Nikon CoolPix S6 +
  • Kodak EasyShare One +
  • Canon PowerShot SD430 +
+ + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-canon-eos-1000d.sh b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-canon-eos-1000d.sh new file mode 100644 index 00000000..54a871aa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-canon-eos-1000d.sh @@ -0,0 +1,100 @@ +dir=`mktemp -d /tmp/camera.XXXXXX` +cd $dir +echo -n "Attach Canon EOS 1000D and press return: " +read dummy +set -x -v +echo "*** standard actions" +gphoto2 -l +gphoto2 -L +gphoto2 --summary +echo "*** single capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config imageformat=6 --capture-image-and-download +rm capt0000.jpg capt0000.cr2 +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 --capture-image-and-download +gphoto2 --set-config imageformat=6 --capture-image-and-download + +echo "single capture done, press return" +read dummy + +echo "*** trigger capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=0 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s +rm capt0000.jpg +gphoto2 --set-config imageformat=6 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=6 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s +rm capt0000.jpg capt0000.cr2 +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=0 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s +gphoto2 --set-config imageformat=6 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=6 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s + +echo "trigger capture done, press return" +read dummy + +echo "*** interval capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config imageformat=6 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 --capture-image-and-download -F 3 -I 5 +gphoto2 --set-config imageformat=6 --capture-image-and-download -F 3 -I 5 +gphoto2 --set-config imageformat=0 + +echo "*** timing capture" +gphoto2 --set-config capturetarget=0 +rm capt000*.* +time gphoto2 --set-config imageformat=0 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config capturetarget=1 +time gphoto2 --set-config imageformat=0 --capture-image-and-download + +echo "*** testing preview" +rm capture_preview.jpg || true +gphoto2 --capture-preview +gwenview capture_preview.jpg +rm capture_preview.jpg || true +gphoto2 --set-config capturetarget=0 +gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download +rm capt0*.* +gwenview capture_preview.jpg +gphoto2 --set-config capturetarget=1 +gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download +gwenview capture_preview.jpg +rm capture_preview.jpg + +rm movie.mjpg || true +gphoto2 --capture-movie=10s +rm movie.mjpg + +echo "*** capture and wait_event - jpg/sdram - 10s" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 +gphoto2 --wait-event-and-download=10s +gphoto2 --set-config imageformat=6 +gphoto2 --wait-event-and-download=10s +echo "*** capture and wait_event - jpg/card - 50 events" +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 +gphoto2 --wait-event-and-download=100 +gphoto2 --set-config imageformat=6 +gphoto2 --wait-event-and-download=100 + +echo "*** config " +gphoto2 --list-config +gphoto2 --list-all-config + +gphoto2 --set-config ownername="Markus Meissner" +gphoto2 --get-config ownername|grep Markus.Meissner +gphoto2 --set-config ownername="Marcus Meissner" +gphoto2 --get-config ownername|grep Marcus.Meissner + +echo "*** DONE" +echo rm -rf $dir diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-canon-eos-100d.sh b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-canon-eos-100d.sh new file mode 100644 index 00000000..e5959357 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-canon-eos-100d.sh @@ -0,0 +1,107 @@ +dir=`mktemp -d /tmp/camera.XXXXXX` +cd $dir +echo -n "Attach Canon EOS 100D and press return: " +read dummy +set -x -v +echo "*** standard actions" +gphoto2 -l +gphoto2 -L +gphoto2 --summary +echo "*** single capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config imageformat=8 --capture-image-and-download +rm capt0000.jpg capt0001.cr2 +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 --capture-image-and-download +gphoto2 --set-config imageformat=8 --capture-image-and-download +gphoto2 --set-config imageformat=8 --capture-image-and-download --keep-raw + +echo "single capture done, press return" +read dummy + +echo "*** trigger capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=0 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s +rm capt0000.jpg +gphoto2 --set-config imageformat=8 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=8 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s +rm capt0000.jpg capt0001.cr2 +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=0 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s +gphoto2 --set-config imageformat=8 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=8 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s + +echo "trigger capture done, press return" +read dummy + +echo "*** interval capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config imageformat=8 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 --capture-image-and-download -F 3 -I 5 +gphoto2 --set-config imageformat=8 --capture-image-and-download -F 3 -I 5 +gphoto2 --set-config imageformat=0 + +echo "*** timing capture" +gphoto2 --set-config capturetarget=0 +rm capt000*.* +time gphoto2 --set-config imageformat=0 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config capturetarget=1 +time gphoto2 --set-config imageformat=0 --capture-image-and-download + +echo "*** testing preview" +rm capture_preview.jpg || true +gphoto2 --capture-preview +gwenview capture_preview.jpg +rm capture_preview.jpg || true +gphoto2 --set-config capturetarget=0 +gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download +rm capt0*.* +gwenview capture_preview.jpg +gphoto2 --set-config capturetarget=1 +gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download +gwenview capture_preview.jpg +rm capture_preview.jpg + +rm movie.mjpg || true +gphoto2 --capture-movie=10s +rm movie.mjpg + +echo "*** capture and wait_event - jpg/sdram - 10s" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 +gphoto2 --wait-event-and-download=10s +gphoto2 --set-config imageformat=8 +gphoto2 --wait-event-and-download=10s +echo "*** capture and wait_event - jpg/card - 50 events" +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 +gphoto2 --wait-event-and-download=200 +gphoto2 --set-config imageformat=8 +gphoto2 --wait-event-and-download=200 +gphoto2 --wait-event-and-download=200 --keep-raw + +echo "*** config " +gphoto2 --list-config +gphoto2 --list-all-config + +gphoto2 --set-config ownername="Markus Meissner" +gphoto2 --get-config ownername|grep Markus.Meissner +gphoto2 --set-config ownername="Marcus Meissner" +gphoto2 --get-config ownername|grep Marcus.Meissner + +gphoto2 --get-config datetime +date +gphoto2 --set-config datetime=now +gphoto2 --get-config datetime + +echo "*** DONE" +echo rm -rf $dir diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-canon-powershot-sx100is.sh b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-canon-powershot-sx100is.sh new file mode 100644 index 00000000..be2da7a3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-canon-powershot-sx100is.sh @@ -0,0 +1,94 @@ +dir=`mktemp -d /tmp/camera.XXXXXX` +cd $dir +echo -n "Attach Canon Powershot SX100IS and press return: " +read dummy +set -x -v +echo "*** single capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config capturetarget=1 +gphoto2 --capture-image-and-download +rm capt0000.jpg +echo -n "Remove SD Card and press Enter: " +read dummy +gphoto2 --set-config capturetarget=0 +gphoto2 --capture-image-and-download +echo -n "Replugin SD Card and press Enter: " +read dummy + +echo "*** interval capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config capturetarget=1 +gphoto2 --capture-image-and-download -F 3 -I 5 +rm capt000*.* + +echo "*** timing capture" +gphoto2 --set-config capturetarget=0 +rm capt000*.* +time gphoto2 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config capturetarget=1 +time gphoto2 --capture-image-and-download + +echo "*** testing preview" +rm capture_preview.jpg || true +gphoto2 --capture-preview +gwenview capture_preview.jpg +rm capture_preview.jpg || true +gphoto2 --set-config capturetarget=0 +gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download +rm capt0*.* +gwenview capture_preview.jpg +gphoto2 --set-config capturetarget=1 +gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download +gwenview capture_preview.jpg +rm capture_preview.jpg + +rm movie.mjpg || true +gphoto2 --capture-movie=10s +rm movie.mjpg + +echo "*** wait_event 10s" +gphoto2 --wait-event-and-download=10s + +echo "*** config " +gphoto2 --list-config +gphoto2 --list-all-config + +echo "*** capture switching" +gphoto2 --get-config capture +gphoto2 --set-config capture=1 +gphoto2 --get-config capture +gphoto2 --set-config capture=0 +gphoto2 --get-config capture +gphoto2 --set-config capture=1 + +echo "*** zoom" +gphoto2 --get-config zoom +gphoto2 --set-config zoom=20 +gphoto2 --get-config zoom +gphoto2 --get-config d02a +gphoto2 --set-config d02a=10 +gphoto2 --get-config d02a + +echo "*** ownername" +gphoto2 --set-config ownername="Markus Meissner" +gphoto2 --get-config ownername|grep Markus.Meissner +gphoto2 --set-config ownername="Marcus Meissner" +gphoto2 --get-config ownername|grep Marcus.Meissner + +echo "*** MTP property" +gphoto2 --get-config d402 + +echo "*** Date & Time" +gphoto2 --get-config datetime +date +gphoto2 --set-config datetime=now +gphoto2 --get-config datetime + + +echo "*** DONE" +echo rm -rf $dir diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-nikon-d90.sh b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-nikon-d90.sh new file mode 100644 index 00000000..eebb9816 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-nikon-d90.sh @@ -0,0 +1,157 @@ +dir=`mktemp -d /tmp/camera.XXXXXX` +cd $dir +echo -n "Attach Nikon D90 and press return: " +read dummy +set -x -v +echo "*** basics" +gphoto2 -L +gphoto2 -l +gphoto2 --summary +echo "*** single capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imagequality=2 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config imagequality=6 --capture-image-and-download +rm capt0000.jpg capt0000.nef +gphoto2 --set-config imagequality=6 --capture-image-and-download --keep-raw +rm capt0000.jpg +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imagequality=2 --capture-image-and-download +gphoto2 --set-config imagequality=6 --capture-image-and-download +gphoto2 --set-config imagequality=6 --capture-image-and-download --keep-raw +echo -n "remove SDCARD and press return: " +read dummy +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imagequality=2 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config imagequality=6 --capture-image-and-download +rm capt0000.jpg capt0000.nef +echo -n "replugin SDCARD and press return: " +read dummy + +echo "*** trigger capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imagequality=2 --trigger-capture --wait-event-and-download=CAPTURECOMPLETE +echo FIXME: gphoto2 --set-config imagequality=2 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=30s +rm capt*jpg +gphoto2 --set-config imagequality=6 --trigger-capture --wait-event-and-download=CAPTURECOMPLETE +echo FIXME: gphoto2 --set-config imagequality=6 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=30s +rm capt* +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imagequality=2 --trigger-capture --wait-event-and-download=20s +gphoto2 --set-config imagequality=2 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=30s +gphoto2 --set-config imagequality=6 --trigger-capture --wait-event-and-download=20s +gphoto2 --set-config imagequality=6 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=30s + +echo -n "trigger capture done ... press return to continue" +read dummy + +echo "*** interval capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imagequality=2 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config imagequality=6 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imagequality=2 --capture-image-and-download -F 3 -I 5 +gphoto2 --set-config imagequality=6 --capture-image-and-download -F 3 -I 5 +gphoto2 --set-config imagequality=2 + +echo -n "interval capture done ... press return to continue" +read dummy + +echo "*** fast interval capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imagequality=2 --capture-image-and-download -F 3 -I 1 +rm capt000*.* +gphoto2 --set-config imagequality=6 --capture-image-and-download -F 3 -I 1 +rm capt000*.* +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imagequality=2 --capture-image-and-download -F 3 -I 1 +gphoto2 --set-config imagequality=6 --capture-image-and-download -F 3 -I 1 +gphoto2 --set-config imagequality=2 + +echo -n "fast interval capture done ... press return to continue" +read dummy + +echo "*** timing capture" +gphoto2 --set-config capturetarget=0 +rm capt000*.* +time gphoto2 --set-config imagequality=2 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config capturetarget=1 +time gphoto2 --set-config imagequality=2 --capture-image-and-download + +echo -n "timing capture done ... press return to continue" + +echo "*** testing preview" +rm capture_preview.jpg || true +gphoto2 --capture-preview +gwenview capture_preview.jpg +rm capture_preview.jpg || true +gphoto2 --set-config capturetarget=0 +gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download +gwenview capture_preview.jpg +rm capt*.* +gphoto2 --set-config capturetarget=1 +gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download +gwenview capture_preview.jpg +rm capt*.* + +rm movie.mjpg || true +gphoto2 --capture-movie=10s +mplayer movie.mjpg +rm movie.mjpg + +gphoto2 --set-config movie=1 --wait-event=10s --set-config movie=0 --wait-event-and-download=10s +mplayer *.MOV +rm *.MOV + +echo "*** capture and wait_event - jpg/sdram - 10s" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imagequality=2 +gphoto2 --wait-event-and-download=10s +gphoto2 --set-config imagequality=6 +gphoto2 --wait-event-and-download=10s +gphoto2 --wait-event-and-download=10s --keep-raw +echo "*** capture and wait_event - jpg/card - 50 events" +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imagequality=2 +gphoto2 --wait-event-and-download=50 +gphoto2 --set-config imagequality=6 +gphoto2 --wait-event-and-download=50 +gphoto2 --wait-event-and-download=50 --keep-raw +gphoto2 --set-config imagequality=2 + +echo "*** config " +gphoto2 --list-config +gphoto2 --list-all-config + +gphoto2 --set-config imagecomment="Markus Meissner" +gphoto2 --get-config imagecomment|grep Markus.Meissner +gphoto2 --set-config imagecomment="Marcus Meissner" +gphoto2 --get-config imagecomment|grep Marcus.Meissner +gphoto2 --get-config d090|grep Marcus.Meissner +gphoto2 --set-config d090="Markus Meissner" +gphoto2 --get-config d090|grep Markus.Meissner +gphoto2 --set-config d090="Marcus Meissner" +gphoto2 --get-config d090|grep Marcus.Meissner + +echo "*** needs to be in A or M mode" +gphoto2 --get-config f-number +gphoto2 --set-config f-number=f/5.6 + +gphoto2 --get-config datetime +date +gphoto2 --set-config datetime=now +gphoto2 --get-config datetime + +gphoto2 --get-config imagecommentenable +gphoto2 --set-config imagecommentenable=0 +gphoto2 --get-config d091|grep 1 +gphoto2 --set-config d091=0 +gphoto2 --get-config d091|grep 0 +gphoto2 --set-config d091=1 + +echo "*** DONE" +echo rm -rf $dir diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-sony-slt58.sh b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-sony-slt58.sh new file mode 100644 index 00000000..f2c6b423 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/test-sony-slt58.sh @@ -0,0 +1,50 @@ +#!/bin/sh -x +dir=`mktemp -d /tmp/camera.XXXXXX` +cd $dir +echo -n "Attach Sony SLT and press return: " +read dummy +set -x -v +echo "*** standard actions" +gphoto2 -l +gphoto2 -L +gphoto2 --summary +echo "*** single capture" +gphoto2 --set-config imagequality=0 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config imagequality=2 --capture-image-and-download +rm capt0000.jpg capt0000.arw + +echo "single capture done, press return" +read dummy + +echo "*** interval capture" +gphoto2 --set-config imagequality=0 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config imagequality=2 --capture-image-and-download -F 3 -I 5 +rm capt000*.* + +echo "*** timing capture" +rm capt000*.* +time gphoto2 --set-config imagequality=0 --capture-image-and-download +rm capt0000.jpg + +echo "*** trigger movie" +gphoto2 --set-config movie=1 --wait-event=10s --set-config movie=0 + +echo "*** capture and wait_event - jpg/sdram - 10s" +gphoto2 --set-config imagequality=0 +gphoto2 --wait-event-and-download=10s +gphoto2 --set-config imagequality=2 +gphoto2 --wait-event-and-download=10s + +echo "*** config " +gphoto2 --list-config +gphoto2 --list-all-config + +gphoto2 --get-config iso +gphoto2 --set-config iso=200 +gphoto2 --get-config iso +gphoto2 --set-config iso="Auto ISO" + +echo "*** DONE" +echo rm -rf $dir diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/usb.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/usb.c new file mode 100644 index 00000000..860f9c1e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ptp2/usb.c @@ -0,0 +1,696 @@ +/* usb.c + * + * Copyright (C) 2001-2004 Mariusz Woloszyn + * Copyright (C) 2003-2016 Marcus Meissner + * Copyright (C) 2003-2017 Marcus Meissner + * Copyright (C) 2006-2007 Linus Walleij + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE +#include +#include "ptp.h" +#include "ptp-private.h" +#include "ptp-bugs.h" + +#include +#include +#include +#include + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CONTEXT_BLOCK_SIZE 200000 + +#define PTP_CNT_INIT(cnt) {memset(&cnt,0,sizeof(cnt));} + +/* PTP2_FAST_TIMEOUT: how long (in milliseconds) we should wait for + * an URB to come back on an interrupt endpoint */ +/* 100 is not enough for various cameras types. 150 seems to work better */ +#define PTP2_FAST_TIMEOUT 150 + +/* Pack / unpack functions */ + +#include "ptp-pack.c" + +/* send / receive functions */ + +uint16_t +ptp_usb_sendreq (PTPParams* params, PTPContainer* req, int dataphase) +{ + int res, towrite, do_retry = TRUE; + PTPUSBBulkContainer usbreq; + Camera *camera = ((PTPData *)params->data)->camera; + + switch (req->Nparam) { + default: + case 0: GP_LOG_D ("Sending PTP_OC 0x%0x (%s) request...", req->Code, ptp_get_opcode_name(params, req->Code)); + break; + case 1: GP_LOG_D ("Sending PTP_OC 0x%0x (%s) (0x%x) request...", req->Code, ptp_get_opcode_name(params, req->Code), req->Param1); + break; + case 2: GP_LOG_D ("Sending PTP_OC 0x%0x (%s) (0x%x,0x%x) request...", req->Code, ptp_get_opcode_name(params, req->Code), req->Param1, req->Param2); + break; + case 3: GP_LOG_D ("Sending PTP_OC 0x%0x (%s) (0x%x,0x%x,0x%x) request...", req->Code, ptp_get_opcode_name(params, req->Code), req->Param1, req->Param2, req->Param3); + break; + } + + /* build appropriate USB container */ + usbreq.length=htod32(PTP_USB_BULK_REQ_LEN- + (sizeof(uint32_t)*(5-req->Nparam))); + usbreq.type=htod16(PTP_USB_CONTAINER_COMMAND); + usbreq.code=htod16(req->Code); + usbreq.trans_id=htod32(req->Transaction_ID); + usbreq.payload.params.param1=htod32(req->Param1); + usbreq.payload.params.param2=htod32(req->Param2); + usbreq.payload.params.param3=htod32(req->Param3); + usbreq.payload.params.param4=htod32(req->Param4); + usbreq.payload.params.param5=htod32(req->Param5); + /* send it to responder */ + towrite = PTP_USB_BULK_REQ_LEN-(sizeof(uint32_t)*(5-req->Nparam)); +retry: + res = gp_port_write (camera->port, (char*)&usbreq, towrite); + if (res != towrite) { + if (res < 0) { + GP_LOG_E ("PTP_OC 0x%04x sending req failed: %s (%d)", req->Code, gp_port_result_as_string(res), res); + if (res == GP_ERROR_IO_WRITE && do_retry) { + GP_LOG_D ("Clearing halt on OUT EP and retrying once."); + gp_port_usb_clear_halt (camera->port, GP_PORT_USB_ENDPOINT_OUT); + do_retry = FALSE; + goto retry; + } + } else + GP_LOG_E ("PTP_OC 0x%04x sending req failed: wrote only %d of %d bytes", req->Code, res, towrite); + return translate_gp_result_to_ptp(res); + } + return PTP_RC_OK; +} + +uint16_t +ptp_usb_senddata (PTPParams* params, PTPContainer* ptp, + uint64_t size, PTPDataHandler *handler +) { + uint16_t ret = PTP_RC_OK; + int res, wlen, datawlen; + PTPUSBBulkContainer usbdata; + unsigned long bytes_left_to_transfer, written; + Camera *camera = ((PTPData *)params->data)->camera; + unsigned char *bytes; + int progressid = 0; + int usecontext = (size > CONTEXT_BLOCK_SIZE); + GPContext *context = ((PTPData *)params->data)->context; + + GP_LOG_D ("Sending PTP_OC 0x%0x (%s) data...", ptp->Code, ptp_get_opcode_name(params, ptp->Code)); + /* build appropriate USB container */ + usbdata.length = htod32(PTP_USB_BULK_HDR_LEN+size); + usbdata.type = htod16(PTP_USB_CONTAINER_DATA); + usbdata.code = htod16(ptp->Code); + usbdata.trans_id= htod32(ptp->Transaction_ID); + + if (params->split_header_data) { + datawlen = 0; + wlen = PTP_USB_BULK_HDR_LEN; + } else { + unsigned long gotlen; + /* For all camera devices. */ + datawlen = (sizegetfunc(params, handler->priv, datawlen, usbdata.payload.data, &gotlen); + if (ret != PTP_RC_OK) + return ret; + if (gotlen != datawlen) + return PTP_RC_GeneralError; + } + res = gp_port_write (camera->port, (char*)&usbdata, wlen); + if (res != wlen) { + if (res < 0) + GP_LOG_E ("PTP_OC 0x%04x sending data failed: %s (%d)", ptp->Code, gp_port_result_as_string(res), res); + else + GP_LOG_E ("PTP_OC 0x%04x sending data failed: wrote only %d of %d bytes", ptp->Code, res, wlen); + return translate_gp_result_to_ptp(res); + } + if (size <= datawlen) { /* nothing more to do */ + written = wlen; + goto finalize; + } + if (usecontext) + progressid = gp_context_progress_start (context, (size/CONTEXT_BLOCK_SIZE), _("Uploading...")); + bytes = malloc (4096); + if (!bytes) + return PTP_RC_GeneralError; + /* if everything OK send the rest */ + bytes_left_to_transfer = size-datawlen; + ret = PTP_RC_OK; + written = 0; + while(bytes_left_to_transfer > 0) { + unsigned long readlen, toread, oldwritten = written; + + toread = 4096; + if (toread > bytes_left_to_transfer) + toread = bytes_left_to_transfer; + ret = handler->getfunc (params, handler->priv, toread, bytes, &readlen); + if (ret != PTP_RC_OK) + break; + res = gp_port_write (camera->port, (char*)bytes, readlen); + if (res < 0) { + ret = translate_gp_result_to_ptp(res); + break; + } + bytes_left_to_transfer -= res; + written += res; + if (usecontext && (oldwritten/CONTEXT_BLOCK_SIZE < written/CONTEXT_BLOCK_SIZE)) + gp_context_progress_update (context, progressid, written/CONTEXT_BLOCK_SIZE); +#if 0 /* Does not work this way... Hmm. */ + if (gp_context_cancel(context) == GP_CONTEXT_FEEDBACK_CANCEL) { + ret = ptp_usb_control_cancel_request (params,ptp->Transaction_ID); + if (ret == PTP_RC_OK) + ret = PTP_ERROR_CANCEL; + break; + } +#endif + } + if (usecontext) + gp_context_progress_stop (context, progressid); + free (bytes); +finalize: + if ((ret == PTP_RC_OK) && ((written % params->maxpacketsize) == 0)) + gp_port_write (camera->port, "x", 0); + if ((ret!=PTP_RC_OK) && (ret!=PTP_ERROR_CANCEL)) + ret = PTP_ERROR_IO; + return ret; +} + +static uint16_t +ptp_usb_getpacket(PTPParams *params, PTPUSBBulkContainer *packet, uint32_t maxsize, uint32_t *rlen) +{ + int tries = 0, result; + Camera *camera = ((PTPData *)params->data)->camera; + + /* read the header and potentially the first data */ + if (params->response_packet_size > 0) { + GP_LOG_D ("Returning previously buffered response packet."); + /* If there is a buffered packet, just use it. */ + + if (params->response_packet_size > maxsize) + params->response_packet_size = maxsize; + + memcpy(packet, params->response_packet, params->response_packet_size); + *rlen = params->response_packet_size; + free(params->response_packet); + params->response_packet = NULL; + params->response_packet_size = 0; + /* Here this signifies a "virtual read" */ + return PTP_RC_OK; + } +retry: + /* A packet should come in a single read always. */ + result = gp_port_read (camera->port, (char*)packet, maxsize); + /* This might be a left over zero-write of the device at the end of the previous transmission */ + if (result == 0) + result = gp_port_read (camera->port, (char*)packet, maxsize); + if (result > 0) { + *rlen = result; + return PTP_RC_OK; + } + if (result == GP_ERROR_IO_READ) { + GP_LOG_D ("Clearing halt on IN EP and retrying once."); + gp_port_usb_clear_halt (camera->port, GP_PORT_USB_ENDPOINT_IN); + /* retrying only makes sense if we did not read anything yet */ + if (tries++ < 1) + goto retry; + } + return translate_gp_result_to_ptp(result); +} + +#define READLEN 512*1024 /* read blob size, mostly to avoid reading all of it at once. */ + +uint16_t +ptp_usb_getdata (PTPParams* params, PTPContainer* ptp, PTPDataHandler *handler) +{ + uint16_t ret; + PTPUSBBulkContainer usbdata; + unsigned char *data = NULL; + uint32_t bytes_to_read, bytes_read; + Camera *camera = ((PTPData *)params->data)->camera; + int report_progress, progress_id = 0, do_retry = TRUE, res = GP_OK; + GPContext *context = ((PTPData *)params->data)->context; + + GP_LOG_D ("Reading PTP_OC 0x%0x (%s) data...", ptp->Code, ptp_get_opcode_name(params, ptp->Code)); + PTP_CNT_INIT(usbdata); + + ret = ptp_usb_getpacket (params, &usbdata, sizeof(usbdata), &bytes_read); + if (ret != PTP_RC_OK) + goto exit; + + if (bytes_read < PTP_USB_BULK_HDR_LEN) { + GP_LOG_E ("Read short bulk packet in data phase %d vs %d vs min len %d", bytes_read, dtoh32(usbdata.length), (uint32_t)PTP_USB_BULK_HDR_LEN); + ret = PTP_ERROR_IO; + goto exit; + } + + if (dtoh16(usbdata.type) != PTP_USB_CONTAINER_DATA) { + /* We might have got a response instead. On error for instance. */ + if (dtoh16(usbdata.type) == PTP_USB_CONTAINER_RESPONSE) { + /* responses are short and we should have it as-is right now */ + if (bytes_read != dtoh32(usbdata.length)) { + GP_LOG_E ("Read broken ptp response in data phase, read %d vs %d", bytes_read, dtoh32(usbdata.length)); + ret = PTP_ERROR_IO; + goto exit; + } + if (dtoh32(usbdata.length) > sizeof(usbdata)) { + GP_LOG_E ("Read too large ptp response in data phase, packet %d bytes large", dtoh32(usbdata.length)); + ret = PTP_ERROR_IO; + goto exit; + } + /* FIXME: maximum size of response packet perhaps ? */ + params->response_packet = malloc(dtoh32(usbdata.length)); + if (!params->response_packet) return PTP_RC_GeneralError; + memcpy(params->response_packet, (uint8_t *) &usbdata, dtoh32(usbdata.length)); + params->response_packet_size = dtoh32(usbdata.length); + ret = PTP_RC_OK; + } else { + ret = PTP_ERROR_DATA_EXPECTED; + } + goto exit; + } + if (dtoh16(usbdata.code)!=ptp->Code) { + /* A creative Zen device breaks down here, by leaving out + * Code and Transaction ID */ + if (MTP_ZEN_BROKEN_HEADER(params)) { + GP_LOG_D ("Read broken PTP header (Code is %04x vs %04x), compensating.", + dtoh16(usbdata.code), ptp->Code); + usbdata.code = dtoh16(ptp->Code); + usbdata.trans_id = htod32(ptp->Transaction_ID); + } else { + GP_LOG_E ("Read broken PTP header (Code is %04x vs %04x).", + dtoh16(usbdata.code), ptp->Code ); + + ret = PTP_ERROR_IO; + + /* if this is a valid packet that came late, drain it to allow reestablishing */ + + if (bytes_read >= dtoh32(usbdata.length)) + goto exit; + + bytes_to_read = dtoh32(usbdata.length) - bytes_read; + bytes_read -= PTP_USB_BULK_HDR_LEN; + + data = malloc(READLEN); + if (!data) goto exit; + while (bytes_to_read > 0) { + unsigned long chunk_to_read = bytes_to_read; + + /* if in read-until-short-packet mode, read one packet at a time */ + /* else read in large blobs */ + /* else read all but the last short packet depending on EP packetsize. */ + if (chunk_to_read > READLEN) + chunk_to_read = READLEN; + else if (chunk_to_read > params->maxpacketsize) + chunk_to_read = chunk_to_read - (chunk_to_read % params->maxpacketsize); + res = gp_port_read (camera->port, (char*)data, chunk_to_read); + if (res == GP_ERROR_IO_READ) + break; + if (res <= 0) + break; + bytes_to_read -= res; + bytes_read += res; + } + free (data); + data = NULL; + goto exit; + } + } + if (bytes_read > dtoh32(usbdata.length)) { + /* + * Buffer the surplus response packet if it is >= + * PTP_USB_BULK_HDR_LEN + * (i.e. it is probably an entire package) + * else discard it as erroneous surplus data. + * This will even work if more than 2 packets appear + * in the same transaction, they will just be handled + * iteratively. + * + * Marcus observed stray bytes on iRiver devices; + * these are still discarded. + */ + uint32_t surplen = bytes_read - dtoh32(usbdata.length); + + if (surplen >= PTP_USB_BULK_HDR_LEN) { + params->response_packet = malloc(surplen); + if (!params->response_packet) return PTP_RC_GeneralError; + memcpy(params->response_packet, (uint8_t *) &usbdata + dtoh32(usbdata.length), surplen); + params->response_packet_size = surplen; + } else { + GP_LOG_D ("Read %ld bytes too much, expect problems!", + (long)(bytes_read - dtoh32(usbdata.length))); + } + bytes_read = dtoh32(usbdata.length); + } + + /* For most PTP devices rlen is 512 == sizeof(usbdata) + * here. For MTP devices splitting header and data it might + * be PTP_USB_BULK_HDR_LEN (12). + */ + /* autodetect split header/data MTP devices */ + if (dtoh32(usbdata.length) > PTP_USB_BULK_HDR_LEN && (bytes_read==PTP_USB_BULK_HDR_LEN)) + params->split_header_data = 1; + + /* Copy the payload bytes we already read (with the first usb packet) */ + ret = handler->putfunc (params, handler->priv, bytes_read - PTP_USB_BULK_HDR_LEN, usbdata.payload.data); + if (ret != PTP_RC_OK) + goto exit; + + /* Check if we are done already... */ + if (bytes_read >= dtoh32(usbdata.length)) + goto exit; + + /* If not read the rest of it. */ + /* Make bytes_to_read contain the number of remaining payload-bytes to read. */ + bytes_to_read = dtoh32(usbdata.length) - bytes_read; + /* Make bytes_read contain the number of payload-bytes already read. */ + bytes_read -= PTP_USB_BULK_HDR_LEN; + + data = malloc(READLEN); + if (!data) return PTP_RC_GeneralError; + + report_progress = (bytes_to_read > 2*CONTEXT_BLOCK_SIZE) && (dtoh32(usbdata.length) != 0xffffffffU); + + /* On partial reads, do not report progress, this might lead to flickering progress bars. + * FIXME: would be better to pass in a flag + */ + if ( (ptp->Code == PTP_OC_GetPartialObject) || + ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) && + ( (ptp->Code == PTP_OC_CANON_EOS_GetPartialObject) || + (ptp->Code == PTP_OC_CANON_EOS_GetPartialObject64) || + (ptp->Code == PTP_OC_CANON_EOS_GetPartialObjectEx) || + (ptp->Code == PTP_OC_CANON_EOS_GetPartialObjectEX64) + ) + ) || + (ptp->Code == PTP_OC_ANDROID_GetPartialObject64) + ) + report_progress = 0; + + if (report_progress) + progress_id = gp_context_progress_start (context, (bytes_to_read/CONTEXT_BLOCK_SIZE), _("Downloading...")); + while (bytes_to_read > 0) { + unsigned long chunk_to_read = bytes_to_read; + + /* if in read-until-short-packet mode, read one packet at a time */ + /* else read in large blobs */ + /* else read all but the last short packet depending on EP packetsize. */ + if (dtoh32(usbdata.length) == 0xffffffffU) + chunk_to_read = PTP_USB_BULK_HS_MAX_PACKET_LEN_READ; + else if (chunk_to_read > READLEN) + chunk_to_read = READLEN; + else if (chunk_to_read > params->maxpacketsize) + chunk_to_read = chunk_to_read - (chunk_to_read % params->maxpacketsize); + res = gp_port_read (camera->port, (char*)data, chunk_to_read); + if (res == GP_ERROR_IO_READ && do_retry) { + GP_LOG_D ("Clearing halt on IN EP and retrying once."); + gp_port_usb_clear_halt (camera->port, GP_PORT_USB_ENDPOINT_IN); + /* retrying only once and only if we did not read anything yet */ + do_retry = FALSE; + continue; + } else if (res <= 0) { + ret = translate_gp_result_to_ptp(res); + break; + } else + do_retry = FALSE; /* once we have succesfully read any data, don't try again */ + ret = handler->putfunc (params, handler->priv, res, data); + if (ret != PTP_RC_OK) + break; + if (dtoh32(usbdata.length) == 0xffffffffU) { + /* once we have read a short packet, we are done. */ + if (res < PTP_USB_BULK_HS_MAX_PACKET_LEN_READ) + bytes_to_read = 0; + } else + bytes_to_read -= res; + bytes_read += res; + if (report_progress && ((bytes_read-res)/CONTEXT_BLOCK_SIZE < bytes_read/CONTEXT_BLOCK_SIZE)) + gp_context_progress_update (context, progress_id, bytes_read/CONTEXT_BLOCK_SIZE); + /* Only cancel transfers larger than 1MB. as + * canceling did not work on eos_get_viewfinder of 200kb */ + if ((bytes_read > 1024*1024) && gp_context_cancel(context) == GP_CONTEXT_FEEDBACK_CANCEL) { + ret = PTP_ERROR_CANCEL; + break; + } + } + if (report_progress) + gp_context_progress_stop (context, progress_id); + +exit: + free (data); + + if ((ret!=PTP_RC_OK) && (ret!=PTP_ERROR_CANCEL)) { + GP_LOG_E ("PTP_OC 0x%04x receiving data failed: %s (0x%04x)", ptp->Code, ptp_strerror(ret, params->deviceinfo.VendorExtensionID), ret); + return PTP_ERROR_IO; + } + return ret; +} + +uint16_t +ptp_usb_getresp (PTPParams* params, PTPContainer* resp) +{ + uint16_t ret; + uint32_t rlen; + PTPUSBBulkContainer usbresp; + /*GPContext *context = ((PTPData *)params->data)->context;*/ + + GP_LOG_D ("Reading PTP_OC 0x%0x (%s) response...", resp->Code, ptp_get_opcode_name(params, resp->Code)); + PTP_CNT_INIT(usbresp); + /* read response, it should never be longer than sizeof(usbresp) */ + ret = ptp_usb_getpacket(params, &usbresp, sizeof(usbresp), &rlen); + + if (ret!=PTP_RC_OK) { + ret = PTP_ERROR_IO; + } else + if (rlen < 12) { + ret = PTP_ERROR_IO; + } else + if (rlen != dtoh32(usbresp.length)) { + ret = PTP_ERROR_IO; + } else + if (dtoh16(usbresp.type)!=PTP_USB_CONTAINER_RESPONSE) { + ret = PTP_ERROR_RESP_EXPECTED; + } else + if (dtoh16(usbresp.code)!=resp->Code) { + ret = dtoh16(usbresp.code); + } + if (ret!=PTP_RC_OK) { + GP_LOG_E ("PTP_OC 0x%04x receiving resp failed: %s (0x%04x)", resp->Code, ptp_strerror(ret, params->deviceinfo.VendorExtensionID), ret); + return ret; + } + /* build an appropriate PTPContainer */ + resp->Code=dtoh16(usbresp.code); + resp->SessionID=params->session_id; + resp->Transaction_ID=dtoh32(usbresp.trans_id); + if (resp->Transaction_ID != params->transaction_id - 1) { + if (MTP_ZEN_BROKEN_HEADER(params)) { + GP_LOG_D ("Read broken PTP header (transid is %08x vs %08x), compensating.", + resp->Transaction_ID, params->transaction_id - 1 + ); + resp->Transaction_ID=params->transaction_id-1; + } + /* else will be handled by ptp.c as error. */ + } + resp->Nparam=(rlen-12)/4; + resp->Param1=dtoh32(usbresp.payload.params.param1); + resp->Param2=dtoh32(usbresp.payload.params.param2); + resp->Param3=dtoh32(usbresp.payload.params.param3); + resp->Param4=dtoh32(usbresp.payload.params.param4); + resp->Param5=dtoh32(usbresp.payload.params.param5); + return ret; +} + +/* Event handling functions */ + +/* PTP Events wait for or check mode */ +#define PTP_EVENT_CHECK 0x0000 /* waits for */ +#define PTP_EVENT_CHECK_FAST 0x0001 /* checks */ +#define PTP_EVENT_CHECK_QUEUE 0x0002 /* just looks in the queue */ + +static inline uint16_t +ptp_usb_event (PTPParams* params, PTPContainer* event, int wait) +{ + int result, timeout, fasttimeout; + unsigned long rlen; + PTPUSBEventContainer usbevent; + Camera *camera = ((PTPData *)params->data)->camera; + + if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) + fasttimeout = PTP2_FAST_TIMEOUT*2; + else + fasttimeout = PTP2_FAST_TIMEOUT; + + PTP_CNT_INIT(usbevent); + + if (event==NULL) + return PTP_ERROR_BADPARAM; + + switch(wait) { + case PTP_EVENT_CHECK: + result = gp_port_check_int (camera->port, (char*)&usbevent, sizeof(usbevent)); + if (result <= 0) result = gp_port_check_int (camera->port, (char*)&usbevent, sizeof(usbevent)); + break; + case PTP_EVENT_CHECK_FAST: + gp_port_get_timeout (camera->port, &timeout); + gp_port_set_timeout (camera->port, fasttimeout); + result = gp_port_check_int (camera->port, (char*)&usbevent, sizeof(usbevent)); + if (result <= 0) result = gp_port_check_int (camera->port, (char*)&usbevent, sizeof(usbevent)); + gp_port_set_timeout (camera->port, timeout); + break; + case PTP_EVENT_CHECK_QUEUE: + gp_port_get_timeout (camera->port, &timeout); + gp_port_set_timeout (camera->port, 0); /* indicates no waiting at all */ + result = gp_port_check_int (camera->port, (char*)&usbevent, sizeof(usbevent)); + gp_port_set_timeout (camera->port, timeout); + break; + default: + return PTP_ERROR_BADPARAM; + } + if (result < 0) { + if ((result != GP_ERROR_TIMEOUT) || (wait != PTP_EVENT_CHECK_FAST)) + GP_LOG_E ("Reading PTP event failed: %s (%d)", gp_port_result_as_string(result), result); + return translate_gp_result_to_ptp(result); + } + if (result == 0) { + GP_LOG_E ("Reading PTP event failed: a 0 read occurred, assuming timeout."); + return PTP_ERROR_TIMEOUT; + } + rlen = result; + if (rlen < 8) { + GP_LOG_E ("Reading PTP event failed: only %ld bytes read", rlen); + return PTP_ERROR_IO; + } + + /* Only do the additional reads for "events". Canon IXUS 2 likes to + * send unrelated data. + */ + if ( (dtoh16(usbevent.type) == PTP_USB_CONTAINER_EVENT) && + (dtoh32(usbevent.length) > rlen) + ) { + GP_LOG_D ("Canon incremental read (done: %ld, todo: %d)", rlen, dtoh32(usbevent.length)); + gp_port_get_timeout (camera->port, &timeout); + gp_port_set_timeout (camera->port, PTP2_FAST_TIMEOUT); + while (dtoh32(usbevent.length) > rlen) { + result = gp_port_check_int (camera->port, ((char*)&usbevent)+rlen, sizeof(usbevent)-rlen); + if (result <= 0) + break; + rlen += result; + } + gp_port_set_timeout (camera->port, timeout); + } + /* if we read anything over interrupt endpoint it must be an event */ + /* build an appropriate PTPContainer */ + event->Nparam = (rlen-12)/4; + event->Code = dtoh16(usbevent.code); + event->SessionID=params->session_id; + event->Transaction_ID=dtoh32(usbevent.trans_id); + event->Param1 = dtoh32(usbevent.param1); + event->Param2 = dtoh32(usbevent.param2); + event->Param3 = dtoh32(usbevent.param3); + return PTP_RC_OK; +} + +uint16_t +ptp_usb_event_check_queue (PTPParams* params, PTPContainer* event) { + + return ptp_usb_event (params, event, PTP_EVENT_CHECK_QUEUE); +} + +uint16_t +ptp_usb_event_check (PTPParams* params, PTPContainer* event) { + + return ptp_usb_event (params, event, PTP_EVENT_CHECK_FAST); +} + +uint16_t +ptp_usb_event_wait (PTPParams* params, PTPContainer* event) { + + return ptp_usb_event (params, event, PTP_EVENT_CHECK); +} + +uint16_t +ptp_usb_control_get_extended_event_data (PTPParams *params, char *buffer, int *size) { + Camera *camera = ((PTPData *)params->data)->camera; + int ret; + + GP_LOG_D ("Getting extended event data."); + ret = gp_port_usb_msg_class_read (camera->port, 0x65, 0x0000, 0x0000, buffer, *size); + if (ret < GP_OK) + return PTP_ERROR_IO; + *size = ret; + return PTP_RC_OK; +} + +uint16_t +ptp_usb_control_device_reset_request (PTPParams *params) { + Camera *camera = ((PTPData *)params->data)->camera; + int ret; + + GP_LOG_D ("Sending usb device reset request."); + ret = gp_port_usb_msg_class_write (camera->port, 0x66, 0x0000, 0x0000, NULL, 0); + if (ret < GP_OK) + return PTP_ERROR_IO; + return PTP_RC_OK; +} + +uint16_t +ptp_usb_control_get_device_status (PTPParams *params, char *buffer, int *size) { + Camera *camera = ((PTPData *)params->data)->camera; + int ret; + + ret = gp_port_usb_msg_class_read (camera->port, 0x67, 0x0000, 0x0000, buffer, *size); + if (ret < GP_OK) + return PTP_ERROR_IO; + *size = ret; + return PTP_RC_OK; +} + +uint16_t +ptp_usb_control_cancel_request (PTPParams *params, uint32_t transactionid) { + Camera *camera = ((PTPData *)params->data)->camera; + int ret; + unsigned char buffer[6]; + + htod16a(&buffer[0],PTP_EC_CancelTransaction); + htod32a(&buffer[2],transactionid); + ret = gp_port_usb_msg_class_write (camera->port, 0x64, 0x0000, 0x0000, (char*)buffer, sizeof (buffer)); + if (ret < GP_OK) + return PTP_ERROR_IO; + return PTP_RC_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/ChangeLog new file mode 100644 index 00000000..ee425f5d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/ChangeLog @@ -0,0 +1,227 @@ +2007-07-11 Marcus Meissner + + * g3.c: Added Ricoh Caplio R5 id. + +2006-08-29 Marcus Meissner + + * g3.c: Added Ricoh Caplio R4 id. + +2005-12-16 Marcus Meissner + + * g3.c: Added Ricoh Caplio R3. + Adjusted directory handling with 450 returned + for -NLST /IROM/. + +2005-07-14 Marcus Meissner + + * g3.c: Added Ricoh Caplio GX 8. + +2005-07-11 Marcus Meissner + + * g3.c: Added Ricoh R2 as reported. + Added some casts to supress warnings. + +2005-03-21 Marcus Meissner + + * g3.c: Added Ricoh 5000G (sea&sea edition). + +2005-03-01 Marcus Meissner + + * g3.c: Split RZ1 and R1 entries to avoid slashes. + +2005-02-13 Marcus Meissner + + * g3.c: Added Ricoh Caplio R1v as reported by + Johannes Guenther. + +2005-01-27 Marcus Meissner + + * g3.c: Added Ricoh Caplio R1 / RZ1 as reported. + +2004-09-12 Marcus Meissner + + * g3.c: Added Ricoh Caplio RX as reported by + Christoph Bauer. + +2004-08-11 Marcus Meissner + + * g3.c: Get the mtime out of NLST, so we get the + correct time without EXIF download. (might be off + some hours). + +2004-08-09 Marcus Meissner + + * g3.c: fixed buffer handling, we were overwriting + unallocated memory with newer libusb. + +2004-05-19 Hubert Figuiere + + * g3.c (camera_abilities): Camera is Medion MD 6126 + +2004-05-19 Marcus Meissner + + * g3.c: Martin Leopold reported the "Medion MD 6162" + as working too. + +2004-01-30 Marcus Meissner + + * g3.c: Added Caplio 300G model as reported. + +2003-11-17 Marcus Meissner + + * g3.c: + - Fixed camera access with removed SD card. + - Handle more than 62 files in one directory. + - Do not call -INFO for textfiles. + - Try to read at least 0x800 byte to avoid confusing the + remote USB stack. + +2003-10-10 Marcus Meissner + + * g3.txt, g3.c, Makefile.am: + + Added new Ricoh Caplio G3 driver. + + Lots of thanks to Klaus Singvogel for lending me his camera + over the weekend. + + Status: + Directory Listing, download of images, exif data and + audio, deleting files, creating and removing directories, + summary report works. + put file is possibly working too, but confuses the firmware + and this driver a bit. + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-07-20 Lutz Müller + + * library.c: + * ricoh.[c,h]: Implement upload. + +2002-07-16 Lutz Müller + + * ricoh.c: Simplify by using macros. + +2002-07-16 Lutz Müller + + Patch by Martin Fischer : + + * ricoh.c (ricoh_set_date): Fix. + +2002-07-16 Lutz Müller + + * library.c: The camera needs to be in record mode to set settings. + +2002-07-16 Lutz Müller + + Patch from Martin Fischer : + + * ricoh.c: Bug Fixes. + +2002-07-11 Lutz Müller + + * library.c: Initialize some variables to NULL. + +2002-07-11 Lutz Müller + + * ricoh.c: Remove 3 direct calls to ricoh_send and ricoh_recv. + +2002-07-10 Lutz Müller + + * library.c (camera_set_config): Fix bug (again). + +2002-07-10 Lutz Müller + + * library.c (camera_set_config): Fix bug. + +2002-07-10 Lutz Müller + + Patch by Martin Fischer : + + * ricoh.c (ricoh_get_pic_date): Corrected. + * library.c (get_info_func): Implemented. + +2002-07-05 Lutz Müller + + * ricoh.[c,h]: + * library.c: More settings. + +2002-07-02 LUtz Müller + + * ricoh.[c,h]: + * library.c: Exposure setting. + +2002-07-02 Lutz Müller + + Patch by Martin Fischer : + + * ricoh.c: + * library.c: Some bug fixes. + +2002-06-21 Lutz Müller + + * ricoh.[c,h]: + * library.c: More settings. + +2002-06-20 Lutz Müller + + * ricoh.[c,h] + * library.c: First step towards support of settings. + +2002-06-20 Lutz Müller + + * ricoh.h: + * library.c: Support a couple of other models. + +2002-06-20 Lutz Müller + + Lots of infos from Martin Fischer : + + * ricoh.[c,h] + * library.c: Correct syntax and name of ricoh_connect and + ricoh_bye. Fix typo in ricoh_get_pic_name. Remember the model + that we get on ricoh_connect. + +2002-06-19 Lutz Müller + + * ricoh.c: Flesh out ricoh_get_pic_date. + +2002-06-19 Lutz Müller + + * ricoh.c: Simplify code by introducing ricoh_transmit. As a side + effect, this should improve error recovery, too. + +2002-06-18 Martin Fischer + + Patch adapted by Lutz Müller . + + * ricoh.[c,h] + * library.c: The driver supports GP_FILE_OPERATION_PREVIEW. + Support for Philips ESP80 was added. camera_about was added. + +2002-03-14 Lutz Müller + + * ricoh.[c,h] + * library.c: This driver supports GP_FILE_OPERATION_DELETE and + GP_OPERATION_CAPTURE_IMAGE. Support for + configuration is still missing. Awaiting patches... + +2002-03-14 Lutz Müller + + * ricoh.[c,h] + * library.c: Remove CameraPrivateLibrary. Sure, that introduces + some communication overhead, but the code is cleaner this way. + +2002-03-14 Lutz Müller + + Submitted by . I fixed indentation. + + * ricoh.[c,h] + * library.c: Make the driver functional. + +2002-01-31 Lutz Müller + + * ricoh.[c,h]: More functions ported. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/Makefile-files new file mode 100644 index 00000000..46f73917 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/Makefile-files @@ -0,0 +1,19 @@ +# -*- Makefile -*- + +EXTRA_DIST += ricoh/g3.txt ricoh/ChangeLog + + +EXTRA_LTLIBRARIES += ricoh.la + +ricoh_la_SOURCES = ricoh/library.c ricoh/ricoh.c ricoh/ricoh.h ricoh/crctab.h +ricoh_la_LDFLAGS = $(camlib_ldflags) +ricoh_la_DEPENDENCIES = $(camlib_dependencies) +ricoh_la_LIBADD = $(camlib_libadd) + + +EXTRA_LTLIBRARIES += ricoh_g3.la + +ricoh_g3_la_SOURCES = ricoh/g3.c +ricoh_g3_la_LDFLAGS = $(camlib_ldflags) +ricoh_g3_la_DEPENDENCIES = $(camlib_dependencies) +ricoh_g3_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/crctab.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/crctab.h new file mode 100644 index 00000000..4b6f5828 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/crctab.h @@ -0,0 +1,142 @@ +/* + * Crc calculation stuff + */ + +/* crctab calculated by Mark G. Mendel, Network Systems Corporation */ +static unsigned short crctab[256] = { + 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, + 0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef, + 0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6, + 0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de, + 0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485, + 0xa56a, 0xb54b, 0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d, + 0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4, + 0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc, + 0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823, + 0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b, + 0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12, + 0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a, + 0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41, + 0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49, + 0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70, + 0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78, + 0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f, + 0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067, + 0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e, + 0x02b1, 0x1290, 0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256, + 0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d, + 0x34e2, 0x24c3, 0x14a0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405, + 0xa7db, 0xb7fa, 0x8799, 0x97b8, 0xe75f, 0xf77e, 0xc71d, 0xd73c, + 0x26d3, 0x36f2, 0x0691, 0x16b0, 0x6657, 0x7676, 0x4615, 0x5634, + 0xd94c, 0xc96d, 0xf90e, 0xe92f, 0x99c8, 0x89e9, 0xb98a, 0xa9ab, + 0x5844, 0x4865, 0x7806, 0x6827, 0x18c0, 0x08e1, 0x3882, 0x28a3, + 0xcb7d, 0xdb5c, 0xeb3f, 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a, + 0x4a75, 0x5a54, 0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92, + 0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9, + 0x7c26, 0x6c07, 0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1, + 0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8, + 0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0 +}; + +/* + * updcrc macro derived from article Copyright 1986 Stephen Satchell. + * NOTE: First srgument must be in range 0 to 255. + * Second argument is referenced twice. + * + * Programmers may incorporate any or all code into their programs, + * giving proper credit within the source. Publication of the + * source routines is permitted so long as proper credit is given + * to Stephen Satchell, Satchell Evaluations and Chuck Forsberg, + * Omen Technology. + */ + +#define updcrc(cp, crc) ( crctab[((crc >> 8) & 255)] ^ (crc << 8) ^ cp) + +/* + * Copyright 1986 Gary S. Brown. You may use this program, or + * code or tables extracted from it, as desired without restriction. + */ + +/* First, the polynomial itself and its table of feedback terms. The */ +/* polynomial is */ +/* X^32+X^26+X^23+X^22+X^16+X^12+X^11+X^10+X^8+X^7+X^5+X^4+X^2+X^1+X^0 */ +/* Note that we take it "backwards" and put the highest-order term in */ +/* the lowest-order bit. The X^32 term is "implied"; the LSB is the */ +/* X^31 term, etc. The X^0 term (usually shown as "+1") results in */ +/* the MSB being 1. */ + +/* Note that the usual hardware shift register implementation, which */ +/* is what we're using (we're merely optimizing it by doing eight-bit */ +/* chunks at a time) shifts bits into the lowest-order term. In our */ +/* implementation, that means shifting towards the right. Why do we */ +/* do it this way? Because the calculated CRC must be transmitted in */ +/* order from highest-order term to lowest-order term. UARTs transmit */ +/* characters in order from LSB to MSB. By storing the CRC this way, */ +/* we hand it to the UART in the order low-byte to high-byte; the UART */ +/* sends each low-bit to hight-bit; and the result is transmission bit */ +/* by bit from highest- to lowest-order term without requiring any bit */ +/* shuffling on our part. Reception works similarly. */ + +/* The feedback terms table consists of 256, 32-bit entries. Notes: */ +/* */ +/* The table can be generated at runtime if desired; code to do so */ +/* is shown later. It might not be obvious, but the feedback */ +/* terms simply represent the results of eight shift/xor opera- */ +/* tions for all combinations of data and CRC register values. */ +/* */ +/* The values must be right-shifted by eight bits by the "updcrc" */ +/* logic; the shift must be unsigned (bring in zeroes). On some */ +/* hardware you could probably optimize the shift in assembler by */ +/* using byte-swap instructions. */ + +#if 0 +static long cr3tab[] = { /* CRC polynomial 0xedb88320 */ +0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, +0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, +0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, +0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, +0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, +0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, +0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, +0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, +0x76dc4190, 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433, +0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, +0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, +0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65, +0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, +0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, +0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, +0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, +0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, +0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, +0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7, +0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, +0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b, +0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79, +0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, +0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d, +0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, +0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, +0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777, +0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, +0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, +0xaed16a4a, 0xd9d65adc, 0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, +0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf, +0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d +}; +#endif + +#ifdef NFGM +long +UPDC32(b, c) +long c; +{ + return (cr3tab[((int)c ^ b) & 0xff] ^ ((c >> 8) & 0x00FFFFFF)); +} + +#else + +#define UPDC32(b, c) (cr3tab[((int)c ^ b) & 0xff] ^ ((c >> 8) & 0x00FFFFFF)) +#endif + +/* End of crctab.c */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/g3.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/g3.c new file mode 100644 index 00000000..9c1a7407 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/g3.c @@ -0,0 +1,932 @@ +/* g3.c + * + * Copyright 2003 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include +#include +#include + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +/* channel header: + * + * channel host/client length data checksum padding + * 01 01 00 00 07 00 00 00 <7 byte> <1 byte> + * + */ + +static int +g3_channel_read(GPPort *port, int *channel, char **buffer, unsigned int *len) +{ + unsigned char xbuf[0x800]; + unsigned int tocopy, curlen; + int ret; + + ret = gp_port_read(port, (char *)xbuf, 0x800); + if (ret < GP_OK) { + gp_log(GP_LOG_ERROR, "g3", "read error in g3_channel_read\n"); + return ret; + } + + if ((xbuf[2] != 0xff) && (xbuf[3] != 0xff)) { + gp_log(GP_LOG_ERROR, "g3" ,"first bytes do not match.\n"); + return GP_ERROR_IO; + } + + *channel = xbuf[1]; + *len = xbuf[4] + (xbuf[5]<<8) + (xbuf[6]<<16) + (xbuf[7]<<24); + if (*len >= 0xffffffff-0x800-1) return GP_ERROR_CORRUPTED_DATA; + /* Safety buffer of 0x800 ... we can only read in 0x800 chunks, + * otherwise the communication gets hickups. However *len might be + * less. + */ + gp_log(GP_LOG_DEBUG, "g3" ,"length %u\n", *len); + if (!*buffer) + *buffer = malloc(*len + 1 + 0x800); + else + *buffer = realloc(*buffer, *len + 1 + 0x800); + if (!*buffer) { + gp_log(GP_LOG_ERROR, "g3" ,"malloc failed, size %d too large?\n", *len+1+0x800); + return GP_ERROR_NO_MEMORY; + } + tocopy = *len; + if (tocopy > 0x800-8) tocopy = 0x800-8; + memcpy(*buffer, xbuf+8, tocopy); + curlen = tocopy; + while (curlen < *len) { + int toread = 0x800; + if (toread + curlen > *len + 1 + 0x800) + toread = *len + 1 + 0x800 - curlen; + if (toread <= 0) + break; + + ret = gp_port_read(port, *buffer + curlen, toread); + if (ret < GP_OK) { + gp_log(GP_LOG_ERROR, "g3", "read error in g3_channel_read\n"); + return ret; + } + curlen += ret; + } + (*buffer)[*len] = 0x00; + return GP_OK; +} + +static int +g3_channel_read_bytes( + GPPort *port, int *channel, char **buffer, int expected, GPContext *context, + const char *msg +) { + unsigned char *xbuf; + int id, ret, len, xlen = 0; + + if (!*buffer) + *buffer = malloc (expected); + else + *buffer = realloc (*buffer, expected); + xbuf = malloc(65536 + 12); + + id = gp_context_progress_start (context, expected, "%s", msg); + + /* The camera lets us read in packets of at least max 64kb size. */ + while (expected > 0) { + int rest = expected; + if (rest > 65536) rest = 65536; + + rest = (rest + 9 + 3) & ~3; + if (rest < 0x800) rest = 0x800; + + ret = gp_port_read(port, (char *)xbuf, rest); + if (ret < GP_OK) { + gp_log(GP_LOG_ERROR, "g3", "read error in g3_channel_read\n"); + gp_context_progress_stop (context, id); + free(xbuf); + return ret; + } + if (ret != rest) { + gp_log(GP_LOG_ERROR, "g3", "read error in g3_channel_read\n"); + gp_context_progress_stop (context, id); + free(xbuf); + return ret; + } + + if ((xbuf[2] != 0xff) || (xbuf[3] != 0xff)) { + gp_log(GP_LOG_ERROR, "g3", "first bytes do not match.\n"); + gp_context_progress_stop (context, id); + free(xbuf); + return GP_ERROR_IO; + } + len = xbuf[4] + (xbuf[5]<<8) + (xbuf[6]<<16) + (xbuf[7]<<24); + *channel = xbuf[1]; + if (len > expected) + gp_log(GP_LOG_ERROR,"g3","len %d is > rest expected %d\n", len, expected); + memcpy(*buffer+xlen, xbuf+8, len); + expected -= len; + xlen += len; + gp_context_progress_update (context, id, xlen); + } + gp_context_progress_stop (context, id); + free(xbuf); + return GP_OK; +} + +static int +g3_channel_write(GPPort *port, int channel, char *buffer, int len) +{ + unsigned char *xbuf; + int ret = GP_OK, nlen, curlen = 0; + + while (len > 0) { + int sendlen = len; + + if (sendlen>65536) sendlen = 65536; + nlen = (4 + 4 + sendlen + 1 + 3) & ~3; + xbuf = calloc(nlen,1); + + xbuf[0] = 1; + xbuf[1] = channel; + xbuf[2] = 0; + xbuf[3] = 0; + xbuf[4] = sendlen & 0xff; + xbuf[5] = (sendlen>>8) & 0xff; + xbuf[6] = (sendlen>>16) & 0xff; + xbuf[7] = (sendlen>>24) & 0xff; + memcpy(xbuf+8, buffer + curlen, sendlen); + curlen += sendlen; + xbuf[8+sendlen] = 0x03; + ret = gp_port_write( port, (char*)xbuf, nlen); + free(xbuf); + if (ret < GP_OK) break; + len -= sendlen; + } + return ret; +} + +static int +g3_ftp_command_and_reply(GPPort *port, char *cmd, char **reply) { + int ret, channel; + unsigned int len; + char *realcmd, *s; + + realcmd = malloc(strlen(cmd)+2+1);strcpy(realcmd, cmd);strcat(realcmd, "\r\n"); + + gp_log(GP_LOG_DEBUG, "g3" , "sending %s", cmd); + ret = g3_channel_write(port, 1, realcmd, strlen(realcmd)); + free(realcmd); + if (ret < GP_OK) { + gp_log (GP_LOG_ERROR, "g3", "ftp command write failed? %d\n", ret); + return ret; + } + ret = g3_channel_read(port, &channel, reply, &len); + if (ret < GP_OK) { + gp_log (GP_LOG_ERROR, "g3", "ftp reply read failed? %d\n", ret); + return ret; + } + s = strchr(*reply, '\r'); + if (s) *s='\0'; + + gp_log(GP_LOG_DEBUG, "g3" , "reply %s", *reply); + return GP_OK; +} + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "ricoh_g3"); + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "Ricoh:Caplio G3"); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_USB; + a.usb_vendor = 0x5ca; + a.usb_product = 0x2204; + + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE | GP_FILE_OPERATION_EXIF; + a.folder_operations = GP_FOLDER_OPERATION_MAKE_DIR | + GP_FOLDER_OPERATION_REMOVE_DIR ; + + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio RR30"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x2202; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio 300G"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x2203; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Medion:MD 6126"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x2205; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio G4"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x2208; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Capilo RX"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x220b; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio GX"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x220c; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio R1"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x220d; + gp_abilities_list_append(list, a); + + /* same id as above */ + strcpy(a.model, "Ricoh:Caplio RZ1"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x220d; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Sea & Sea:5000G"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x220e; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Rollei:dr5"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x220f; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio R1v"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x2212; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio R2"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x2213; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio GX 8"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x2214; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio R3"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x2216; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio R4"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x2217; + gp_abilities_list_append(list, a); + + strcpy(a.model, "Ricoh:Caplio R5"); + a.usb_vendor = 0x5ca; + a.usb_product = 0x221a; + gp_abilities_list_append(list, a); + + return (GP_OK); +} + +static int +g3_cwd_command( GPPort *port, const char *folder) { + char *cmd, *reply = NULL; + int ret; + + cmd = malloc(strlen("CWD ") + strlen(folder) + 2 + 1); + sprintf(cmd,"CWD %s", folder); + ret = g3_ftp_command_and_reply(port, cmd, &reply); + free(cmd); + if (ret < GP_OK) { + if (reply) free(reply); + return ret; + } + if (reply[0]=='5') /* Failed, most likely no such directory */ + ret = GP_ERROR_DIRECTORY_NOT_FOUND; + free(reply); + return ret; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + char *buf = NULL, *reply = NULL, *cmd =NULL, *msg = NULL; + unsigned int len, bytes, seek; + int ret, channel; + + ret = g3_cwd_command (camera->port, folder); + if (ret < GP_OK) goto out; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + msg = _("Downloading..."); + if (strstr(filename,"AVI") || strstr(filename,"avi")) + msg = _("Downloading movie..."); + if (strstr(filename,"jpg") || strstr(filename,"JPG") || + strstr(filename,"tif") || strstr(filename,"TIF") + ) + msg = _("Downloading image..."); + if (strstr(filename,"wav") || strstr(filename,"WAV")) + msg = _("Downloading audio..."); + cmd = malloc(strlen("RETR ") + strlen(filename) + 2 + 1); + sprintf(cmd,"RETR %s", filename); + ret = g3_ftp_command_and_reply(camera->port, cmd, &buf); + free(cmd); + if (ret < GP_OK) goto out; + if (buf[0] != '1') { /* error, most likely file not found */ + ret = GP_ERROR_FILE_NOT_FOUND; + goto out; + } + + bytes = 0; + sscanf(buf, "150 data connection for RETR.(%d)", &bytes); + break; + case GP_FILE_TYPE_EXIF: + msg = _("Downloading EXIF data..."); + if (!strstr(filename,".JPG") && !strstr(filename,".jpg")) { + gp_context_error (context,_("No EXIF data available for %s."), + filename); + ret = GP_ERROR_FILE_NOT_FOUND; + goto out; + } + cmd = malloc(strlen("-SRET ") + strlen(filename) + 2 + 1); + sprintf(cmd,"-SRET %s", filename); + ret = g3_ftp_command_and_reply(camera->port, cmd, &buf); + free(cmd); + if (ret < GP_OK) goto out; + if (buf[0] != '1') { /* error, most likely file not found */ + ret = GP_ERROR_FILE_NOT_FOUND; + goto out; + } + bytes = seek = 0; + sscanf(buf, "150 %d byte Seek=%d", &bytes, &seek); + if (seek == -2) { + /* FIXME: pretty bad, the camera has some time out problems + * if this happens */ + gp_context_error (context,_("No EXIF data available for %s."), + filename); + ret = GP_ERROR_FILE_NOT_FOUND; + g3_channel_read(camera->port, &channel, &reply, &len); /* reply */ + goto out; + } + bytes += seek; + break; + default: + return GP_ERROR_NOT_SUPPORTED; + } + + ret = g3_channel_read_bytes(camera->port, &channel, &buf, bytes, context, msg); + if (ret < GP_OK) goto out; + ret = g3_channel_read(camera->port, &channel, &reply, &len); /* reply */ + if (ret < GP_OK) goto out; + gp_log(GP_LOG_DEBUG, "g3" , "reply %s", reply); + gp_file_set_data_and_size (file, buf, bytes); + buf = NULL; /* now owned by libgphoto2 filesystem */ + +out: + if (buf) free(buf); + if (reply) free(reply); + return (GP_OK); +} + +#if 0 +/* Works to some degree, but the firmware on the camera is not really happy + * with it and sometimes refuses to send data the correct way + */ +static int +put_file_func (CameraFilesystem *fs, const char *folder, const char *fn, CameraFile *file, + void *data, GPContext *context) +{ + Camera *camera = data; + char *buf = NULL, *reply = NULL, *cmd =NULL; + const char *imgdata = NULL; + int ret, channel, len; + long size; + + ret = g3_cwd_command (camera->port, folder); + if (ret < GP_OK) goto out; + + ret = gp_file_get_data_and_size (file, &imgdata, &size); + if (ret < GP_OK) goto out; + + cmd = malloc(strlen("-STOR ") + 20 + strlen(fn) + 2 + 1); + sprintf(cmd,"-STOR %ld %s", size, fn); + ret = g3_ftp_command_and_reply(camera->port, cmd, &buf); + free(cmd); + if (ret < GP_OK) goto out; + if (buf[0] != '1') { /* error, most likely file not found */ + ret = GP_ERROR; + goto out; + } + ret = g3_channel_write(camera->port, 2, (char*)imgdata, size); /* data */ + if (ret < GP_OK) goto out; + ret = g3_channel_read(camera->port, &channel, &reply, &len); /* reply */ + if (ret < GP_OK) goto out; +out: + if (buf) free(buf); + if (reply) free(reply); + return (GP_OK); +} +#endif + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + char *reply = NULL, *cmd = NULL; + int ret; + + ret = g3_cwd_command (camera->port, folder); + if (ret < GP_OK) + return ret; + + cmd = malloc(strlen("DELE ")+strlen(filename)+1); + if (!cmd) return GP_ERROR_NO_MEMORY; + sprintf(cmd,"DELE %s",filename); + ret = g3_ftp_command_and_reply(camera->port, cmd, &reply); + if (ret < GP_OK) + goto out; + if (reply[0] == '5') { + gp_context_error (context, _("Could not delete file.")); + ret = GP_ERROR; + } +out: + free(cmd); + free(reply); + return (GP_OK); +} + +static int +rmdir_func (CameraFilesystem *fs, const char *folder, + const char *name, void *data, GPContext *context) +{ + Camera *camera = data; + char *reply = NULL, *cmd = NULL; + int ret; + + ret = g3_cwd_command (camera->port, folder); + if (retport, cmd, &reply); + if (ret < GP_OK) + goto out; + if (reply[0] == '5') { + gp_context_error (context, _("Could not remove directory.")); + ret = GP_ERROR; + } +out: + free(cmd); + free(reply); + return (GP_OK); +} + +static int +mkdir_func (CameraFilesystem *fs, const char *folder, + const char *name, void *data, GPContext *context) +{ + Camera *camera = data; + char *reply = NULL, *cmd = NULL; + int ret; + + ret = g3_cwd_command (camera->port, folder); + if (retport, cmd, &reply); + if (ret < GP_OK) + goto out; + if (reply[0] == '5') { + gp_context_error (context, _("Could not create directory.")); + ret = GP_ERROR; + } +out: + free(cmd); + free(reply); + return (GP_OK); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + char *t = summary->text; + int ret; + char *buf = NULL; + + t[0]='\0'; + ret = g3_ftp_command_and_reply (camera->port, "-VER", &buf); + if (ret == GP_OK) + sprintf(t+strlen(t), _("Version: %s\n"), buf+4); /* skip "200 " */ + ret = g3_ftp_command_and_reply(camera->port, "-RTST", &buf); /* RTC test */ + if (ret == GP_OK) { + int rtcstat; + if (sscanf(buf, "200 RTC status=%d", &rtcstat)) + sprintf(t+strlen(t), _("RTC Status: %d\n"), rtcstat); + } + ret = g3_ftp_command_and_reply(camera->port, "-TIME", &buf); + if (ret == GP_OK) { + char day[20], time[20]; + if (sscanf(buf, "200 %s %s for -TIME", day, time)) + sprintf(t+strlen(t), _("Camera time: %s %s\n"), day, time); + } + ret = g3_ftp_command_and_reply(camera->port, "-GCID", &buf); + if (ret == GP_OK) { + char camid[40]; + if (sscanf(buf, "200 CameraID=%s for -GCID", camid)) + sprintf(t+strlen(t), _("Camera ID: %s\n"), camid); + } + ret = g3_ftp_command_and_reply(camera->port, "-GSID", &buf); + if (ret == GP_OK) { + char cardid[40]; + if (strstr(buf, "200 SD ID= for -GSID")) { + sprintf(t+strlen(t), _("No SD Card inserted.\n")); + } else { + if (sscanf(buf, "200 SD ID=%s for -GSID", cardid)) { + sprintf(t+strlen(t), _("SD Card ID: %s\n"), cardid); + } + } + } + ret = g3_ftp_command_and_reply(camera->port, "-GTPN", &buf); + if (ret == GP_OK) { + int total; + if (sscanf (buf, "200 TotalPhotoNo=%d for -GTPN", &total)) + sprintf(t+strlen(t), _("Photos on camera: %d\n"), total); + } + ret = g3_ftp_command_and_reply(camera->port, "-DCAP /EXT0", &buf); + if (ret == GP_OK) { + int space, sfree; + if (sscanf (buf, "200 /EXT0 capacity %d byte,free %d byte.", &space, &sfree)) { + sprintf(t+strlen(t), _("SD memory: %d MB total, %d MB free.\n"), space/1024/1024, sfree/1024/1024); + } + } + ret = g3_ftp_command_and_reply(camera->port, "-DCAP /IROM", &buf); + if (ret == GP_OK) { + int space, sfree; + if (sscanf (buf, "200 /IROM capacity %d byte,free %d byte.", &space, &sfree)) { + sprintf(t+strlen(t), _("Internal memory: %d MB total, %d MB free.\n"), space/1024/1024, sfree/1024/1024); + } + } + free (buf); + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Ricoh Caplio G3.\n" + "Marcus Meissner \n" + "Reverse engineered using USB Snoopy, looking\n" + "at the firmware update image and wild guessing.\n" + )); + + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + int ret, bytes, width, height, k; + struct tm xtm; + char *cmd = NULL, *reply = NULL; + + info->file.fields = GP_FILE_INFO_TYPE | + GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + strcpy(info->file.type,GP_MIME_UNKNOWN); + + if (!strcmp(filename+9,"JPG") || !strcmp(filename+9,"jpg")) + strcpy(info->file.type,GP_MIME_JPEG); + + if (!strcmp(filename+9,"AVI") || !strcmp(filename+9,"avi")) + strcpy(info->file.type,GP_MIME_AVI); + + if (!strcmp(filename+9,"WAV") || !strcmp(filename+9,"wav")) + strcpy(info->file.type,GP_MIME_WAV); + + if (!strcmp(filename+9,"MTA") || !strcmp(filename+9,"mta")) + strcpy(info->file.type,"text/plain"); + + cmd = malloc(strlen("-FDAT ")+strlen(folder)+1+strlen(filename)+1); + if (!cmd) return GP_ERROR_NO_MEMORY; + sprintf(cmd, "-FDAT %s/%s", folder,filename); + ret = g3_ftp_command_and_reply(camera->port, cmd, &reply); + if (ret < GP_OK) goto out; + if (sscanf(reply, "200 date=%d:%d:%d %d:%d:%d", + &xtm.tm_year, + &xtm.tm_mon, + &xtm.tm_mday, + &xtm.tm_hour, + &xtm.tm_min, + &xtm.tm_sec + )) { + xtm.tm_mon--; /* range 0 - 11 */ + xtm.tm_year -= 1900; /* number of years since 1900 */ + info->file.mtime = mktime(&xtm); + info->file.fields |= GP_FILE_INFO_MTIME; + } + + /* -INFO command only sometimes work on non jpeg/avi files */ + if ( !strcmp(info->file.type,GP_MIME_JPEG) || + !strcmp(info->file.type,GP_MIME_AVI) + ) { + sprintf(cmd, "-INFO %s/%s", folder,filename); + ret = g3_ftp_command_and_reply(camera->port, cmd, &reply); + if (ret < GP_OK) goto out; + + /* 200 1330313 byte W=2048 H=1536 K=0 for -INFO */ + if (sscanf(reply, "200 %d byte W=%d H=%d K=%d for -INFO", &bytes, &width, &height , &k)) { + if (width != 0 && height != 0) { + info->file.fields |= GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT; + info->file.height = height; + info->file.width = width; + } + info->file.fields |= GP_FILE_INFO_SIZE; + info->file.size = bytes; + if (k != 0) + gp_log(GP_LOG_ERROR, "g3", "k is %d for %s/%s\n", k, folder,filename); + } + } +out: + free(reply); + free(cmd); + + return (GP_OK); + +} + + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + char *buf = NULL, *reply = NULL; + char *cmd = NULL; + unsigned int len, rlen; + int ret = GP_OK, channel; + + if (!strcmp("/",folder)) { + /* Lets hope they dont invent other names. */ + + /* We check the folder we get, since we should + * not add EXT0 without SD card. + */ + ret = g3_ftp_command_and_reply(camera->port, "-NLST /", &buf); + if (ret < GP_OK) goto out; + if (buf[0] == '4') { + /* seen with R3: 450 Open Error... likely OK. */ + goto out; + } + if (buf[0] != '1') { + ret = GP_ERROR_IO; + goto out; + } + ret = g3_channel_read(camera->port, &channel, &buf, &len); /* data. */ + if (ret < GP_OK) goto out; + ret = g3_channel_read(camera->port, &channel, &reply, &rlen); /* next reply */ + if (ret < GP_OK) goto out; + gp_log(GP_LOG_DEBUG, "g3" , "reply %s", reply); + + if (!strcmp("/EXT0",buf)) + gp_list_append (list, "EXT0", NULL); + + /* always add internal memory */ + gp_list_append (list, "IROM", NULL); + return GP_OK; + } + + cmd = malloc(6 + strlen(folder) + 1); + strcpy(cmd, "-NLST "); + strcat(cmd, folder); + + ret = g3_ftp_command_and_reply(camera->port, cmd, &buf); + free(cmd);cmd = NULL; + if (ret < GP_OK) goto out; + if (buf[0] == '1') { /* 1xx means another reply follows */ + int n = 0; + + ret = g3_channel_read(camera->port, &channel, &buf, &len); /* data. */ + if (ret < GP_OK) goto out; + g3_channel_read(camera->port, &channel, &reply, &rlen); /* next reply */ + if (ret < GP_OK) goto out; + gp_log(GP_LOG_DEBUG, "g3" , "reply %s", reply); + + for (n=0;n UNIX time conversion */ +static int day_n[] = { 0,31,59,90,120,151,181,212,243,273,304,334,0,0,0,0 }; + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + char *buf = NULL, *reply = NULL, *cmd; + int ret = GP_OK; + unsigned char *ubuf; + + cmd = malloc(6 + strlen(folder) + 1); + strcpy(cmd, "-NLST "); + strcat(cmd, folder); + ret = g3_ftp_command_and_reply(camera->port, cmd, (char**)&buf); + free(cmd); cmd = NULL; + if (ret < GP_OK) goto out; + if (buf[0] == '1') { /* 1xx means another reply follows */ + int n = 0, channel; + unsigned int len, rlen; + ret = g3_channel_read(camera->port, &channel, &buf, &len); /* data. */ + if (ret < GP_OK) goto out; + ret = g3_channel_read(camera->port, &channel, &reply, &rlen); /* next reply */ + if (ret < GP_OK) goto out; + gp_log(GP_LOG_DEBUG, "g3" , "reply %s", reply); + + ubuf = (unsigned char*)buf; + for (n=0;n < len/32;n++) { + if (buf[n*32+11] == 0x20) { + CameraFileInfo info; + char xfn[13]; + int date, time, month, year; + + strncpy (xfn, buf+n*32, 8); + xfn[8] = '.'; + strncpy (xfn+9, buf+n*32+8, 3); + xfn[8+1+3] = '\0'; + + ret = gp_filesystem_append (fs, folder, xfn, context); + if (ret < GP_OK) goto out; + + /* we also get parts of fs info for free, so just set it */ + info.file.fields = + GP_FILE_INFO_SIZE | + GP_FILE_INFO_MTIME; + info.file.size =(ubuf[n*32+28]<<24)| + (ubuf[n*32+29]<<16)| + (ubuf[n*32+30]<< 8)| + (ubuf[n*32+31] ); + if (!strcmp(xfn+9,"JPG") || !strcmp(xfn+9,"jpg")) { + strcpy(info.file.type,GP_MIME_JPEG); + info.file.fields |= GP_FILE_INFO_TYPE; + } + + if (!strcmp(xfn+9,"AVI") || !strcmp(xfn+9,"avi")) { + strcpy(info.file.type,GP_MIME_AVI); + info.file.fields |= GP_FILE_INFO_TYPE; + } + + if (!strcmp(xfn+9,"WAV") || !strcmp(xfn+9,"wav")) { + strcpy(info.file.type,GP_MIME_WAV); + info.file.fields |= GP_FILE_INFO_TYPE; + } + + if (!strcmp(xfn+9,"MTA") || !strcmp(xfn+9,"mta")) { + strcpy(info.file.type,"text/plain"); + info.file.fields |= GP_FILE_INFO_TYPE; + } + info.preview.fields = 0; + date = (ubuf[n*32+16]) | (ubuf[n*32+17]<<8); + time = (ubuf[n*32+14]) | (ubuf[n*32+15]<<8); + + /* from kernel fs/fat/, time_dos2unix. */ + month = ((date >> 5) - 1) & 15; + year = date >> 9; + info.file.mtime = + (time & 31)*2+60*((time >> 5) & 63)+ + (time >> 11)*3600+86400*((date & 31)-1+ + day_n[month]+(year/4)+year*365- + ((year & 3) == 0 && month < 2 ? 1 : 0)+ + 3653); + + ret = gp_filesystem_set_info_noop(fs, folder, xfn, info, context); + + } + } + } else { + if (buf[0] == '4') /* 450 Open Error ... like dir not there */ + ret = GP_OK; + else + ret = GP_ERROR_IO; + } +out: + if (buf) free(buf); + if (reply) free(reply); + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .get_info_func = get_info_func, + .folder_list_func = folder_list_func, + .make_dir_func = mkdir_func, + .remove_dir_func = rmdir_func, +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + /*char *buf;*/ + GPPortSettings settings; + + /* First, set up all the needed function pointers */ + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + /* Now, tell the filesystem where to get lists, files and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + gp_port_get_settings(camera->port, &settings); + settings.usb.inep = 0x81; + settings.usb.outep = 0x02; + settings.usb.intep = 0x83; + gp_port_set_settings(camera->port, settings); + /* + * The port is already provided with camera->port (and + * already open). You just have to use functions like + * gp_port_timeout_set, gp_port_settings_get, gp_port_settings_set. + */ + + /* + * Once you have configured the port, you should check if a + * connection to the camera can be established. + */ + + /* testing code ... + buf = NULL; + g3_ftp_command_and_reply(camera->port, "-PWOF STDBY", &buf); + */ + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/g3.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/g3.txt new file mode 100644 index 00000000..e1846061 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/g3.txt @@ -0,0 +1,68 @@ +-SPWD +-PRET - partial retrieve I think, %s %d. +-CCTL - control? +-SINF +-FMT - format card? +-ATTR +-PWOF - power off? +-SDIS - set distinction ? what is a distinction? +-GDIS - get distinction ? +-ABOR - abort for data transfer? +QUIT +-FUPL - upload? +-FDWL +-GFCI +-GFGI +-SGID + + +Internal ftp style commands: +"-VER" - 200 9.2 01.06 +"-FDAT folder/file" - 200 date=2003:10:08 16:57:06 for -FDAT. + - 200 date=%s for -FDAT. + +"-INFO folder/file" - 200 %d byte W=%d H=%d K=%d for -INFO + +"-GSID" - 200 SD ID=%02x%02x%02x%02x%02x%02x%02x%02x for -GSID. +"-GCID" - 451 -GCID command failure + - 200 CameraID=%s for -GCID. +"-TIME" - 200 %02d%02d/%02d/%02d %02d:%02d:%02d for -TIME. + - 200 2003/10/11 19:47:23 for -TIME. + +"-NLST" - 150 data connection for -NLST. + ... data blocks ... + 250 -NLST command success. +"-GTPN" - 200 TotalPhotoNo=%d for -GTPN. +"-RTST" - 200 RTC status=%d for -RTST. +"-DCAP /EXT0" - 200 /EXT0 capacity 63520768 byte,free 39043072 byte. + +"-SRET filename" - 150 %d byte Seek=%d W=%d H=%d S=%d for -SRET. + ... bytes+seek image data ... + 250 -SRET command success. + + => Downloads exif data, at seek position is the thumbnail. + +"-STOR size filename" - 150 ... + ... data transfer ... + 200 done + +Generic ftp style commands: + +"CWD folder" - 501 CWD command failure + - 250 CWD command success. + +"RETR file" - 150 data connection for RETR.(%d) + ... data , %d bytes ... + 250 RETR command success. + +"DELE file" - 250 DELE command success. + - 500 DELE command failure + +"RMD dir" - 250 RMD command success. + - 500 RMD command failure + +"MKD dir" - 257 "%s" directory created. + - 500 MKD command failure + +"RNFR name" +"RNTO name" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/library.c new file mode 100644 index 00000000..ccf1cacf --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/library.c @@ -0,0 +1,606 @@ +/* library.c + * + * Copyright 2002 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include + +#include +#include + +#include "ricoh.h" + +#define GP_MODULE "ricoh" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CR(result) {int r=(result); if (r<0) return r;} +#define CRW(result,widget) {int r=(result); if (r<0) { gp_widget_free (widget); return r; } } + +static struct { + RicohModel id; + const char *model; +} models[] = { + {RICOH_MODEL_1, "Ricoh:RDC-1"}, + {RICOH_MODEL_2, "Ricoh:RDC-2"}, + {RICOH_MODEL_2E, "Ricoh:RDC-2E"}, + {RICOH_MODEL_100G, "Ricoh:RDC-100G"}, + {RICOH_MODEL_300, "Ricoh:RDC-300"}, + {RICOH_MODEL_300Z, "Ricoh:RDC-300Z"}, + {RICOH_MODEL_4200, "Ricoh:RDC-4200"}, + {RICOH_MODEL_4300, "Ricoh:RDC-4300"}, + {RICOH_MODEL_5000, "Ricoh:RDC-5000"}, + {RICOH_MODEL_ESP2, "Philips:ESP2"}, + {RICOH_MODEL_ESP50, "Philips:ESP50"}, + {RICOH_MODEL_ESP60, "Philips:ESP60"}, + {RICOH_MODEL_ESP70, "Philips:ESP70"}, + {RICOH_MODEL_ESP80, "Philips:ESP80"}, + {RICOH_MODEL_ESP80SXG, "Philips:ESP80SXG"}, + {0, NULL} +}; + +struct _CameraPrivateLibrary { + RicohModel model; +}; + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + memset (&a, 0, sizeof (CameraAbilities)); + for (i = 0; models[i].model; i++) { + strcpy (a.model, models[i].model); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_SERIAL; + a.operations = GP_OPERATION_CAPTURE_IMAGE | + GP_OPERATION_CONFIG; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE; + CR (gp_abilities_list_append (list, a)); + } + + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + + ricoh_disconnect (camera, context); + + return GP_OK; +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + unsigned int n, i; + const char *name; + + CR (ricoh_get_num (camera, context, &n)); + for (i = 0; i < n; i++) { + CR (ricoh_get_pic_name (camera, context, i + 1, &name)); + CR (gp_list_append (list, name, NULL)); + } + + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + int n; + const char *name; + + CR (n = gp_filesystem_number (fs, folder, filename, context)); + n++; + + info->audio.fields = GP_FILE_INFO_NONE; /* no info anbout audio files */ + + info->preview.width = 80; + info->preview.height = 60; + info->preview.fields = GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT; + + CR (ricoh_get_pic_name (camera, context, n, &name)); + CR (ricoh_get_pic_date (camera, context, n, &info->file.mtime)); + CR (ricoh_get_pic_size (camera, context, n, &info->file.size)); + strcpy (info->file.type, GP_MIME_EXIF); + info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_MTIME + | GP_FILE_INFO_TYPE; + + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int n; + unsigned int size; + unsigned char *data; + + CR (n = gp_filesystem_number (fs, folder, filename, context)); + n++; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + CR (ricoh_get_pic (camera, context, n, + RICOH_FILE_TYPE_NORMAL, &data, &size)); + gp_file_set_mime_type (file, GP_MIME_EXIF); + break; + case GP_FILE_TYPE_PREVIEW: + CR (ricoh_get_pic (camera, context, n, + RICOH_FILE_TYPE_PREVIEW, &data, &size)); + gp_file_set_mime_type (file, GP_MIME_TIFF); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + + gp_file_set_data_and_size (file, (char*)data, size); + + return (GP_OK); +} + +static int +del_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + void *user_data, GPContext *context) +{ + Camera *camera = user_data; + int n; + + CR (n = gp_filesystem_number (fs, folder, filename, context)); + n++; + + CR (ricoh_del_pic (camera, context, n)); + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + GP_DEBUG ("camera_about()"); + + strcpy (about->text, + _("Ricoh / Philips driver by\n" + "Lutz Mueller ,\n" + "Martin Fischer ,\n" + "based on Bob Paauwe's driver\n" ) + ); + + return GP_OK; +} + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Ricoh"); + + return (GP_OK); +} + +static int +camera_summary (Camera *camera, CameraText *about, GPContext *context) +{ + int avail_mem, total_mem; + char model[128]; + unsigned int i; + + CR (ricoh_get_cam_amem (camera, context, &avail_mem)); + CR (ricoh_get_cam_mem (camera, context, &total_mem)); + + memset (model, 0, sizeof (model)); + for (i = 0; models[i].model; i++) + if (models[i].id == camera->pl->model) + break; + if (models[i].model) + strncpy (model, models[i].model, sizeof (model) - 1); + else + snprintf (model, sizeof (model) - 1, _("unknown (0x%02x)"), + camera->pl->model); + + sprintf (about->text, _("Model: %s\n" + "Memory: %d byte(s) of %d available"), + model, avail_mem, total_mem); + + return (GP_OK); +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, + CameraFilePath *path, GPContext *context) +{ + unsigned int n; + + if (type != GP_CAPTURE_IMAGE) + return (GP_ERROR_NOT_SUPPORTED); + + CR (ricoh_get_num (camera, context, &n)); + CR (ricoh_take_pic (camera, context)); + + sprintf (path->name, "rdc%04i.jpg", n + 1); + strcpy (path->folder, "/"); + CR (gp_filesystem_append (camera->fs, path->folder, + path->name, context)); + + return (GP_OK); +} + +static int +put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *user_data, GPContext *context) +{ + const char *data; + unsigned long int size; + Camera *camera = user_data; + + if (type != GP_FILE_TYPE_NORMAL) + return GP_ERROR_BAD_PARAMETERS; + CR (gp_file_get_data_and_size (file, &data, &size)); + return ricoh_put_file (camera, context, name, (const unsigned char *)data, size); +} + +#undef N_ELEMENTS +#define N_ELEMENTS(v) (sizeof(v)/sizeof(v[0])) + +static struct { + RicohExposure exposure; + const char *name; +} ricoh_exposures[] = { + {RICOH_EXPOSURE_M20, N_("-2.0")}, + {RICOH_EXPOSURE_M15, N_("-1.5")}, + {RICOH_EXPOSURE_M10, N_("-1.0")}, + {RICOH_EXPOSURE_M05, N_("-0.5")}, + {RICOH_EXPOSURE_00, N_("0.0")}, + {RICOH_EXPOSURE_05, N_("0.5")}, + {RICOH_EXPOSURE_10, N_("1.0")}, + {RICOH_EXPOSURE_15, N_("1.5")}, + {RICOH_EXPOSURE_20, N_("2.0")}, + {RICOH_EXPOSURE_AUTO, N_("Auto")} +}; + +static struct { + RicohResolution resolution; + const char *name; +} ricoh_resolutions[] = { + {RICOH_RESOLUTION_640_480, N_("640 x 480")}, + {RICOH_RESOLUTION_1280_960, N_("1280 x 960")} +}; + +static struct { + RicohWhiteLevel white_level; + const char *name; +} ricoh_white_levels[] = { + {RICOH_WHITE_LEVEL_AUTO, N_("Auto")}, + {RICOH_WHITE_LEVEL_OUTDOOR, N_("Outdoor")}, + {RICOH_WHITE_LEVEL_FLUORESCENT, N_("Fluorescent")}, + {RICOH_WHITE_LEVEL_INCANDESCENT, N_("Incandescent")}, + {RICOH_WHITE_LEVEL_BLACK_WHITE, N_("Black & White")}, + {RICOH_WHITE_LEVEL_SEPIA, N_("Sepia")} +}; + +static struct { + RicohMacro macro; + const char *name; +} ricoh_macros[] = { + {RICOH_MACRO_ON, N_("On")}, + {RICOH_MACRO_OFF, N_("Off")} +}; + +static struct { + RicohCompression compression; + const char *name; +} ricoh_compressions[] = { + {RICOH_COMPRESSION_NONE, N_("None")}, + {RICOH_COMPRESSION_MAX, N_("Maximal")}, + {RICOH_COMPRESSION_NORM, N_("Normal")}, + {RICOH_COMPRESSION_MIN, N_("Minimal")} +}; + +static struct { + RicohRecMode rec_mode; + const char *name; +} ricoh_rec_modes[] = { + {RICOH_REC_MODE_IMAGE, N_("Image")}, + {RICOH_REC_MODE_CHARACTER, N_("Character")}, + {RICOH_REC_MODE_SOUND, N_("Sound")}, + {RICOH_REC_MODE_IMAGE_SOUND, N_("Image & Sound")}, + {RICOH_REC_MODE_CHARACTER_SOUND, N_("Character & Sound")} +}; + +static struct { + RicohFlash flash; + const char *name; +} ricoh_flashs[] = { + {RICOH_FLASH_AUTO, N_("Auto")}, + {RICOH_FLASH_OFF, N_("Off")}, + {RICOH_FLASH_ON, N_("On")} +}; + +static struct { + RicohZoom zoom; + const char *name; +} ricoh_zooms[] = { + {RICOH_ZOOM_OFF, N_("Off")}, + {RICOH_ZOOM_1, N_("2x")}, + {RICOH_ZOOM_2, N_("3x")}, + {RICOH_ZOOM_3, N_("4x")}, + {RICOH_ZOOM_4, N_("5x")}, + {RICOH_ZOOM_5, N_("6x")}, + {RICOH_ZOOM_6, N_("7x")}, + {RICOH_ZOOM_7, N_("8x")}, + {RICOH_ZOOM_8, N_("9x")} +}; + +#undef R_ADD_RADIO +#define R_ADD_RADIO(ca,co,s,type,n,Name) \ +{ \ + CameraWidget *__w = NULL; \ + type __v; \ + unsigned int __i; \ + \ + CR (gp_widget_new (GP_WIDGET_RADIO, _(Name), &__w)); \ + CRW (gp_widget_set_name (__w, (Name)), __w); \ + CRW (gp_widget_append ((s), __w), __w); \ + CR (ricoh_get_##n ((ca), (co), &__v)); \ + for (__i = 0; __i < N_ELEMENTS (ricoh_##n##s); __i++) { \ + CR (gp_widget_add_choice (__w, _(ricoh_##n##s[__i].name))); \ + if (__v == ricoh_##n##s[__i].n) \ + CR (gp_widget_set_value (__w, \ + _(ricoh_##n##s[__i].name))); \ + } \ +} + +#undef R_CHECK_RADIO +#define R_CHECK_RADIO(c,co,wi,n,Name) \ +{ \ + CameraWidget *__w = NULL; \ + const char *__v = NULL; \ + unsigned int __i; \ + \ + CR (gp_widget_get_child_by_name (wi, Name, &__w)); \ + if (gp_widget_changed (__w)) { \ + gp_widget_set_changed (__w, 0); \ + CR (gp_widget_get_value (__w, &__v)); \ + for (__i = 0; __i < N_ELEMENTS (ricoh_##n##s); __i++) \ + if (!strcmp (__v, _(ricoh_##n##s[__i].name))) { \ + CR (ricoh_set_##n (c, co, ricoh_##n##s[__i].n)); \ + break; \ + } \ + } \ +} + +static int +camera_get_config (Camera *c, CameraWidget **window, GPContext *co) +{ + CameraWidget *s, *w; + const char *copyright; + time_t time; + + CR (gp_widget_new (GP_WIDGET_WINDOW, _("Configuration"), window)); + + /* General settings */ + CR (gp_widget_new (GP_WIDGET_SECTION, _("General"), &s)); + CRW (gp_widget_append (*window, s), s); + + /* Copyright */ + CR (gp_widget_new (GP_WIDGET_TEXT, _("Copyright"), &w)); + CRW (gp_widget_set_name (w, "copyright"), w); + CRW (gp_widget_set_info (w, _("Copyright (max. 20 characters)")), w); + CRW (gp_widget_append (s, w), w); + CR (ricoh_get_copyright (c, co, ©right)); + CR (gp_widget_set_value (w, (void *) copyright)); + + /* Date */ + CR (gp_widget_new (GP_WIDGET_DATE, _("Date & Time"), &w)); + CRW (gp_widget_set_name (w, "date"), w); + CRW (gp_widget_set_info (w, _("Date & Time")), w); + CRW (gp_widget_append (s, w), w); + CR (ricoh_get_date (c, co, &time)); + CR (gp_widget_set_value (w, &time)); + + /* Picture related settings */ + CR (gp_widget_new (GP_WIDGET_SECTION, _("Pictures"), &s)); + CRW (gp_widget_append (*window, s), w); + + R_ADD_RADIO (c, co, s, RicohResolution, resolution, "Resolution") + R_ADD_RADIO (c, co, s, RicohExposure, exposure, "Exposure") + R_ADD_RADIO (c, co, s, RicohMacro, macro, "Macro") + R_ADD_RADIO (c, co, s, RicohFlash, flash, "Flash") + R_ADD_RADIO (c, co, s, RicohZoom, zoom, "Zoom") + R_ADD_RADIO (c, co, s, RicohCompression, compression, "Compression") + R_ADD_RADIO (c, co, s, RicohWhiteLevel, white_level, "White Level") + R_ADD_RADIO (c, co, s, RicohRecMode, rec_mode, "Record Mode") + + return (GP_OK); +} + +static int +camera_set_config (Camera *c, CameraWidget *window, GPContext *co) +{ + CameraWidget *w; + const char *v_char; + time_t time; + RicohMode mode; + + /* We need to be in record mode to set settings. */ + CR (ricoh_get_mode (c, co, &mode)); + if (mode != RICOH_MODE_RECORD) + CR (ricoh_set_mode (c, co, RICOH_MODE_RECORD)); + + /* Copyright */ + CR (gp_widget_get_child_by_name (window, "copyright", &w)); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + CR (gp_widget_get_value (w, &v_char)); + CR (ricoh_set_copyright (c, co, v_char)); + } + + /* Date */ + CR (gp_widget_get_child_by_name (window, "date", &w)); + if (gp_widget_changed (w)) { + gp_widget_set_changed (w, 0); + CR (gp_widget_get_value (w, &time)); + CR (ricoh_set_date (c, co, time)); + } + + R_CHECK_RADIO (c, co, window, resolution, N_("Resolution")) + R_CHECK_RADIO (c, co, window, exposure, N_("Exposure")) + R_CHECK_RADIO (c, co, window, white_level, N_("White level")) + R_CHECK_RADIO (c, co, window, macro, N_("Macro")) + R_CHECK_RADIO (c, co, window, zoom, N_("Zoom")) + R_CHECK_RADIO (c, co, window, flash, N_("Flash")) + R_CHECK_RADIO (c, co, window, rec_mode, N_("Record Mode")) + R_CHECK_RADIO (c, co, window, compression, N_("Compression")) + + return (GP_OK); +} + +static struct { + unsigned int speed; + RicohSpeed rspeed; +} speeds[] = { + { 2400, RICOH_SPEED_2400}, + {115200, RICOH_SPEED_115200}, + { 4800, RICOH_SPEED_4800}, + { 19200, RICOH_SPEED_19200}, + { 38400, RICOH_SPEED_38400}, + { 57600, RICOH_SPEED_57600}, + { 0, 0} +}; + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = del_file_func, + .put_file_func = put_file_func, + .get_info_func = get_info_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + unsigned int speed, i; + int result; + RicohModel model = 0; + + /* Try to contact the camera. */ + CR (gp_port_set_timeout (camera->port, 5000)); + CR (gp_port_get_settings (camera->port, &settings)); + speed = (settings.serial.speed ? settings.serial.speed : 115200); + for (i = 0; speeds[i].speed; i++) { + GP_DEBUG ("Trying speed %i...", speeds[i].speed); + settings.serial.speed = speeds[i].speed; + CR (gp_port_set_settings (camera->port, settings)); + + /* + * Note that ricoh_connect can only be called to + * initialize the connection at 2400 bps. At other + * speeds, a different function needs to be used. + */ + result = (speeds[i].rspeed == RICOH_SPEED_2400) ? + ricoh_connect (camera, NULL, &model) : + ricoh_get_mode (camera, NULL, NULL); + if (result == GP_OK) + break; + } + + /* Contact made? If not, report error. */ + if (!speeds[i].speed) { + gp_context_error (context, _("Could not contact camera.")); + return (GP_ERROR); + } + + /* Contact made. Do we need to change the speed? */ + if (settings.serial.speed != speed) { + for (i = 0; speeds[i].speed; i++) + if (speeds[i].speed == speed) + break; + if (!speeds[i].speed) { + gp_context_error (context, _("Speed %i is not " + "supported!"), speed); + return (GP_ERROR); + } + CR (ricoh_set_speed (camera, context, speeds[i].rspeed)); + settings.serial.speed = speed; + CR (gp_port_set_settings (camera->port, settings)); + + /* Check if the camera is still there. */ + CR (ricoh_get_mode (camera, context, NULL)); + } + + /* setup the function calls */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->capture = camera_capture; + camera->functions->about = camera_about; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + CR (gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera)); + /* + * Remember the model. It could be that there hasn't been the + * need to call ricoh_connect. Then we don't have a model. Should + * we disconnect and reconnect in this case? + */ + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + camera->pl->model = model; + + return (GP_OK); +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/ricoh.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/ricoh.c new file mode 100644 index 00000000..df562499 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/ricoh.c @@ -0,0 +1,873 @@ +/* ricoh.c + * + * Copyright 2002 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "ricoh.h" + +#include +#include + +#include + +#include "crctab.h" + +#define GP_MODULE "ricoh" + +#define STX 0x02 /* start of text */ +#define ETX 0x03 /* end of text */ +#define ACK 0x06 /* acknowledge */ +#define NAK 0x15 /* negative acknowledge */ +#define ETB 0x17 /* end of transmission block */ +#define DLE 0x10 /* datalink escape */ + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CR(result) {int r_mac=(result); if (r_mac<0) return r_mac;} +#define CRF(result,data) {int r_mac=(result); \ + if (r_mac<0) {free (data); return r_mac;}} + +#define C_CMD(context,cmd,target) \ +{ \ + if (cmd != target) { \ + gp_context_error (context, _("Expected %i, got %i. Please "\ + "report this error to %s."),\ + cmd, target, MAIL_GPHOTO_DEVEL); \ + return (GP_ERROR_CORRUPTED_DATA); \ + } \ +} +#define C_LEN(context,len,target) \ +{ \ + if (len != target) { \ + gp_context_error (context, _("Expected "\ + "%i bytes, got %i. " \ + "Please report this error to " \ + "%s."), \ + target, len, MAIL_GPHOTO_DEVEL); \ + return (GP_ERROR_CORRUPTED_DATA); \ + } \ +} + +#ifndef HAVE_TM_GMTOFF +/* required for time conversions in canon_int_set_time() */ +extern long int timezone; +#endif + +static int +ricoh_send (Camera *camera, GPContext *context, unsigned char cmd, + unsigned char number, + const unsigned char *data, unsigned char len) +{ + unsigned char buf[6]; + unsigned int i, w, crc = 0; + int timeout; + + /* First, make sure there is no data coming from the camera. */ + CR (gp_port_get_timeout (camera->port, &timeout)); + CR (gp_port_set_timeout (camera->port, 20)); + while (gp_port_read (camera->port, (char *)buf, 1) >= 0) { + /* do nothing */ + } + CR (gp_port_set_timeout (camera->port, timeout)); + + /* Write header */ + buf[0] = DLE; + buf[1] = STX; + buf[2] = cmd; + buf[3] = len; + CR (gp_port_write (camera->port, (char *)buf, 4)); + crc = updcrc (cmd, crc); + crc = updcrc (len, crc); + + /* + * Write data (escape DLE). + * + * w ... bytes written + */ + w = 0; + while (w < len) { + for (i = w; i < len; i++) { + crc = updcrc (data[i], crc); + if (data[i] == 0x10) { + i++; + break; + } + } + CR (gp_port_write (camera->port, (char *)data + w, i - w)); + if (data[i - 1] == 0x10) + CR (gp_port_write (camera->port, "\x10", 1)); + w = i; + } + + /* Write footer */ + buf[0] = DLE; + buf[1] = ETX; + buf[2] = crc >> 0; + buf[3] = crc >> 8; + buf[4] = len + 2; + buf[5] = number; + CR (gp_port_write (camera->port, (char *)buf, 6)); + + return (GP_OK); +} + +static int +ricoh_send_ack (Camera *camera, GPContext *context) +{ + CR (gp_port_write (camera->port, "\x10\x06", 2)); + return (GP_OK); +} + +static int +ricoh_send_nack (Camera *camera, GPContext *context) +{ + CR (gp_port_write (camera->port, "\x10\x15", 2)); + return (GP_OK); +} + +static int +ricoh_recv (Camera *camera, GPContext *context, unsigned char *cmd, + unsigned char *number, unsigned char *data, unsigned char *len) +{ + unsigned char buf[6]; + unsigned char r, i, ii, last_dle; + unsigned int crc = 0; + + for (ii = 0; ; ii++) { + crc = 0; + + /* + * Get header (DLE,STX). If we receive (DLE,ACK), just + * drop that and read on. + */ + for (i = 0, buf[1] = ACK; i < 4; i++) { + CR (gp_port_read (camera->port, (char *)buf, 2)); + if (buf[0] != DLE) { + gp_context_error (context, _("We expected " + "0x%x but received 0x%x. Please " + "contact %s."), + DLE, buf[0], MAIL_GPHOTO_DEVEL); + return (GP_ERROR_CORRUPTED_DATA); + } + if (buf[1] != ACK) + break; + } + switch (buf[1]) { + case STX: + break; + case NAK: + default: + gp_context_error (context, _("We expected " + "0x%x but received 0x%x. Please " + "contact %s."), + STX, buf[1], MAIL_GPHOTO_DEVEL); + return GP_ERROR_CORRUPTED_DATA; + } + + CR (gp_port_read (camera->port, (char *)cmd, 1)); + CR (gp_port_read (camera->port, (char *)len, 1)); + crc = updcrc (*cmd, crc); + crc = updcrc (*len, crc); + + /* + * Get data (check for DLEs). + * r ... number of bytes received + */ + r = 0; + last_dle = 0; + while (r < *len) { + CR (gp_port_read (camera->port, (char *)data + r, *len - r)); + if (last_dle) { + r++; + last_dle = 0; + } + for (i = r; i < *len; i++) { + if (data[r] == DLE) { + if (i + 1 != *len && + data[r + 1] != DLE) { + gp_context_error (context, + _("Bad characters " + "(0x%x, 0x%x). Please " + "contact %s."), + data[r], data[r + 1], MAIL_GPHOTO_DEVEL); + return (GP_ERROR_CORRUPTED_DATA); + } + memmove (&data[r], &data[r +1], + *len - i - 1); + i++; + } + crc = updcrc (data[r], crc); + if (i != *len) + r++; + else + last_dle = 1; + } + } + + /* Get footer */ + CR (gp_port_read (camera->port, (char *)buf, 6)); + + if ((buf[0] != DLE) || (buf[1] != ETX && buf[1] != ETB)) + return (GP_ERROR_CORRUPTED_DATA); + + /* CRC correct? If not, retry. */ + if ((buf[2] != (crc & 0xff)) || + (buf[3] != (crc >> 8 & 0xff)) || + (buf[4] != *len + 2)) { + GP_DEBUG ("CRC error. Retrying..."); + CR (ricoh_send_nack (camera, context)); + continue; + } + + /* Acknowledge the packet. */ + CR (ricoh_send_ack (camera, context)); + + /* If camera is busy, try again (but at most 4 times). */ + if ((*len == 3) && (data[0] == 0x00) && + (data[1] == 0x04) && + (data[2] == 0xff)) { + if (ii >= 4) { + gp_context_error (context, _("Camera busy. " + "If the problem persists, please " + "contact %s."), MAIL_GPHOTO_DEVEL); + return (GP_ERROR); + } + continue; + } + + /* Everything is ok. Break out of loop. */ + break; + } + + /* Sequence number */ + if (number) + *number = buf[5]; + + return (GP_OK); +} + +static int +ricoh_transmit (Camera *camera, GPContext *context, unsigned char cmd, + const unsigned char *data, unsigned char len, + unsigned char *ret_data, unsigned char *ret_len) +{ + unsigned char ret_cmd; + unsigned int r = 0; + int result; + + while (1) { + CR (ricoh_send (camera, context, cmd, 0, data, len)); + result = ricoh_recv (camera, context, &ret_cmd, NULL, + ret_data, ret_len); + switch (result) { + case GP_ERROR_TIMEOUT: + if (++r > 2) { + gp_context_error (context, _("Timeout " + "even after 2 retries. Please " + "contact %s."), MAIL_GPHOTO_DEVEL); + return (GP_ERROR_TIMEOUT); + } + GP_DEBUG ("Timeout! Retrying..."); + continue; + default: + CR (result); + } + + /* Check if the answer is for our command. */ + if (cmd != ret_cmd) { + GP_DEBUG ("Commands differ (expected 0x%02x, " + "got 0x%02x)!", cmd, ret_cmd); + if (++r > 2) { + gp_context_error (context, _("Communication " + "error even after 2 retries. Please " + "contact %s."), MAIL_GPHOTO_DEVEL); + return (GP_ERROR); + } + continue; + } + + /* Check if the camera reported success. */ + if ((*ret_len >= 2) && (ret_data[0] == 0x00) && + (ret_data[1] == 0x00)) + break; + + /* Check if the camera reported success, 2nd version. */ + if ((*ret_len == 3) && (ret_data[0] == 0x00) && + (ret_data[1] == 0x06) && + (ret_data[2] == 0xff)) + break; + + /* If camera is busy, try again (but at most 4 times). */ + if ((*ret_len == 3) && (ret_data[0] == 0x00) && + (ret_data[1] == 0x04) && + (ret_data[2] == 0xff)) { + if (++r >= 4) { + gp_context_error (context, _("Camera busy. " + "If the problem persists, please " + "contact %s."), MAIL_GPHOTO_DEVEL); + return (GP_ERROR); + } + continue; + } + + /* + * It could be that the camera is in the wrong mode to + * execute this command. + */ + if ((*ret_len == 2) && (ret_data[0] == 0x06) && + (ret_data[1] == 0x00)) { + gp_context_error (context, _("Camera is in wrong " + "mode. Please contact " + "%s."), MAIL_GPHOTO_DEVEL); + return (GP_ERROR); + } + + /* Invalid parameters? */ + if ((*ret_len == 2) && (ret_data[0] == 0x04) && + (ret_data[1] == 0x00)) { + gp_context_error (context, _("Camera did not " + "accept the parameters. Please contact " + "%s."), MAIL_GPHOTO_DEVEL); + return (GP_ERROR); + } + + gp_context_error (context, _("An unknown error occurred. " + "Please contact %s."), MAIL_GPHOTO_DEVEL); + return (GP_ERROR); + } + + /* Success! We don't need the first two bytes any more. */ + *ret_len -= 2; + if (*ret_len > 0) + memmove (ret_data, ret_data + 2, *ret_len); + + return (GP_OK); +} + +int +ricoh_get_pic_size (Camera *camera, GPContext *context, unsigned int n, + uint64_t *size) +{ + unsigned char p[3], buf[0xff], len; + + GP_DEBUG ("Getting size of picture %i...", n); + + p[0] = 0x04; + p[1] = n >> 0; + p[2] = n >> 8; + CR (ricoh_transmit (camera, context, 0x95, p, 3, buf, &len)); + C_LEN (context, len, 4); + + if (size) + *size = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0] << 0; + + return (GP_OK); +} + +#define B2H( bcd ) ((bcd>>4)*10+(bcd&0xF)) + +int +ricoh_get_pic_date (Camera *camera, GPContext *context, unsigned int n, + time_t *date) +{ + unsigned char p[3], buf[0xff], len; + struct tm time; + + GP_DEBUG ("Getting date of picture %i...", n); + + p[0] = 0x03; + p[1] = n >> 0; + p[2] = n >> 8; + CR (ricoh_transmit (camera, context, 0x95, p, 3, buf, &len)); + C_LEN (context, len, 7); + + if (date) { + time.tm_year = B2H (buf[1]); + /* correct for Y2K in case older images are read */ + if (time.tm_year < 90) time.tm_year += 100; + time.tm_mon = B2H (buf[2]) - 1; + time.tm_mday = B2H (buf[3]); + time.tm_hour = B2H (buf[4]); + time.tm_min = B2H (buf[5]); + time.tm_sec = B2H (buf[6]); + time.tm_isdst = -1; + *date = mktime (&time); + } + + return (GP_OK); +} + +int +ricoh_get_pic_name (Camera *camera, GPContext *context, unsigned int n, + const char **name) +{ + unsigned char p[3], len; + static unsigned char buf[0xff]; + + GP_DEBUG ("Getting name of picture %i...", n); + + p[0] = 0x00; + p[1] = n >> 0; + p[2] = n >> 8; + CR (ricoh_transmit (camera, context, 0x95, p, 3, buf, &len)); + + if (name && *name) { + *name = (char *)buf; + buf[len] = '\0'; + } + + return (GP_OK); +} + +int +ricoh_get_pic_memo (Camera *camera, GPContext *context, unsigned int n, + const char **memo) +{ + unsigned char p[3], len; + static unsigned char buf[0xff]; + + GP_DEBUG ("Getting memo of picture %i...", n); + + p[0] = 0x02; + p[1] = n >> 0; + p[2] = n >> 8; + CR (ricoh_transmit (camera, context, 0x95, p, 3, buf, &len)); + + if (memo && *memo) { + *memo = (char *)buf; + buf[len] = '\0'; + } + + return (GP_OK); +} + +int +ricoh_del_pic (Camera *camera, GPContext *context, unsigned int n) +{ + unsigned char p[2], buf[0xff], len; + + GP_DEBUG ("Deleting picture %i...", n); + + /* Put camera in delete mode */ + CR (ricoh_transmit (camera, context, 0x97, NULL, 0, buf, &len)); + C_LEN (context, len, 0); + + /* Find and send picture to delete */ + p[0] = n >> 0; + p[1] = n >> 8; + CR (ricoh_transmit (camera, context, 0x93, p, 2, buf, &len)); + C_LEN (context, len, 0); + CR (ricoh_transmit (camera, context, 0x92, p, 2, buf, &len)); + C_LEN (context, len, 0); + + return (GP_OK); +} + +int +ricoh_get_num (Camera *camera, GPContext *context, unsigned int *n) +{ + unsigned char p[2], buf[0xff], len; + + GP_DEBUG ("Getting number of pictures..."); + + p[0] = 0x00; + p[1] = 0x01; + CR (ricoh_transmit (camera, context, 0x51, p, 2, buf, &len)); + C_LEN (context, len, 2); + + if (n) + *n = (buf[1] << 8) | buf[0]; + + return (GP_OK); +} + +int +ricoh_set_speed (Camera *camera, GPContext *context, RicohSpeed speed) +{ + unsigned char p[1], buf[0xff], len; + + p[0] = speed; + CR (ricoh_transmit (camera, context, 0x32, p, 1, buf, &len)); + C_LEN (context, len, 0); + + /* Wait for camera to switch speed. */ + sleep (1); + + return (GP_OK); +} + +int +ricoh_connect (Camera *camera, GPContext *context, RicohModel *model) +{ + unsigned char p[3], buf[0xff], len; + + p[0] = 0x00; + p[1] = 0x00; + p[2] = 0x00; + CR (ricoh_transmit (camera, context, 0x31, p, 3, buf, &len)); + C_LEN (context, len, 4); + + /* Model */ + if (model) + *model = (buf[0] << 8) | buf[1]; + + /* No idea what buf[2] and buf[3] contain. */ + + return (GP_OK); +} + +int +ricoh_disconnect (Camera *camera, GPContext *context) +{ + unsigned char buf[0xff], len; + + CR (ricoh_transmit (camera, context, 0x37, NULL, 0, buf, &len)); + C_LEN (context, len, 2); + + return (GP_OK); +} + +static unsigned char header[236] = { + 0x49,0x49,0x2a,0x00,0x08,0x00,0x00,0x00,0x0c,0x00,0x00,0x01,0x03,0x00, + 0x01,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x01,0x01,0x03,0x00,0x01,0x00, + 0x00,0x00,0x3c,0x00,0x00,0x00,0x02,0x01,0x03,0x00,0x03,0x00,0x00,0x00, + 0x9e,0x00,0x00,0x00,0x03,0x01,0x03,0x00,0x01,0x00,0x00,0x00,0x01,0x00, + 0x00,0x00,0x06,0x01,0x03,0x00,0x01,0x00,0x00,0x00,0x06,0x00,0x00,0x00, + 0x11,0x01,0x04,0x00,0x01,0x00,0x00,0x00,0xec,0x00,0x00,0x00,0x15,0x01, + 0x03,0x00,0x01,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x17,0x01,0x04,0x00, + 0x01,0x00,0x00,0x00,0x80,0x25,0x00,0x00,0x1c,0x01,0x03,0x00,0x01,0x00, + 0x00,0x00,0x01,0x00,0x00,0x00,0x11,0x02,0x05,0x00,0x03,0x00,0x00,0x00, + 0xa4,0x00,0x00,0x00,0x12,0x02,0x03,0x00,0x02,0x00,0x00,0x00,0x02,0x00, + 0x01,0x00,0x14,0x02,0x05,0x00,0x06,0x00,0x00,0x00,0xbc,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x08,0x00,0x08,0x00,0x08,0x00,0xe0,0xd0,0x22,0x13, + 0x00,0x00,0x00,0x40,0x80,0x68,0x91,0x25,0x00,0x00,0x00,0x40,0xa8,0xc6, + 0x4b,0x07,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, + 0x00,0x00,0xe0,0x1f,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x10,0x00,0x00, + 0x20,0x00,0x00,0x00,0xe0,0x1f,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x10, + 0x00,0x00,0x20,0x00,0x00,0x00,0xe0,0x1f,0x00,0x00,0x20,0x00 +}; + +int +ricoh_get_pic (Camera *camera, GPContext *context, unsigned int n, + RicohFileType type, unsigned char **data, unsigned int *size) +{ + unsigned char p[2], cmd, buf[0xff], len; + unsigned int r, header_len; + RicohMode mode; + + GP_DEBUG ("Getting image %i as %s...", n, + (type==RICOH_FILE_TYPE_PREVIEW ? "thumbnail":"image")); + + /* Put camera into play mode, if not already */ + CR (ricoh_get_mode (camera, context, &mode)); + if (mode != RICOH_MODE_PLAY) + CR (ricoh_set_mode (camera, context, RICOH_MODE_PLAY)); + + /* Send picture number */ + p[0] = n >> 0; + p[1] = n >> 8; + CR (ricoh_transmit (camera, context, (unsigned char) type, + p, 2, buf, &len)); + C_LEN (context, len, 16); + + /* + * Allocate the necessary memory. Note that previews are 80x60 pixels + * raw TIFF data, we therefore need to allocate some extra memory + * for the TIFF header. + */ + header_len = (type == RICOH_FILE_TYPE_PREVIEW) ? sizeof (header) : 0; + *size = buf[15] << 24 | buf[14] << 16 | buf[13] << 8 | buf[12]; + *size += header_len; + + *data = malloc (*size); + if (!*data) + return (GP_ERROR_NO_MEMORY); + + /* + * Receive data. + * r ... number of bytes received + */ + for (r = 0; r < (*size) - header_len; r += len) { + CRF (ricoh_recv (camera, context, &cmd, NULL, + *data + header_len + r, &len), *data); + C_CMD (context, cmd, 0xa2); + } + + /* In case of previews, copy over the TIFF header. */ + if (type == RICOH_FILE_TYPE_PREVIEW) + memcpy (*data, header, header_len); + + return (GP_OK); +} + +int +ricoh_get_date (Camera *camera, GPContext *context, time_t *date) +{ + unsigned char p[1], buf[0xff], len; + struct tm time; + + p[0] = 0x0a; + CR (ricoh_transmit (camera, context, 0x51, p, 1, buf, &len)); + + /* the camera only supplies 2 digits for year, so I will + * make the assumption that if less than 90, then it is + * year 2000 or greater */ + time.tm_year = ((buf[1] & 0xf0) >> 4) * 10 + (buf[1] & 0xf); + if(time.tm_year < 90) time.tm_year += 100; + time.tm_mon = ((buf[2] & 0xf0) >> 4) * 10 + (buf[2] & 0xf) - 1; + time.tm_mday = ((buf[3] & 0xf0) >> 4) * 10 + (buf[3] & 0xf); + time.tm_hour = ((buf[4] & 0xf0) >> 4) * 10 + (buf[4] & 0xf); + time.tm_min = ((buf[5] & 0xf0) >> 4) * 10 + (buf[5] & 0xf); + time.tm_sec = ((buf[6] & 0xf0) >> 4) * 10 + (buf[6] & 0xf); + time.tm_isdst = -1; + *date = mktime (&time); + + return (GP_OK); +} + +#ifdef HEX +# undef HEX +#endif +#define HEX(x) (((x)/10)<<4)+((x)%10) + +int +ricoh_set_date (Camera *camera, GPContext *context, time_t time) +{ + unsigned char p[8], buf[0xff], len; + struct tm *t; + + p[0] = 0x0a; + + /* Call localtime() to get 'extern long timezone' */ + t = localtime (&time); +#ifdef HAVE_TM_GMTOFF + time += t->tm_gmtoff; +#else + time += timezone; +#endif + t = localtime (&time); + GP_DEBUG ("ricoh_set_date: converted time to localtime %s " + "(timezone is %ld)", asctime (t), timezone); + + p[1] = HEX (t->tm_year / 100 + 19); + p[2] = HEX (t->tm_year % 100); + p[3] = HEX (t->tm_mon + 1); + p[4] = HEX (t->tm_mday); + p[5] = HEX (t->tm_hour); + p[6] = HEX (t->tm_min); + p[7] = HEX (t->tm_sec); + CR (ricoh_transmit (camera, context, 0x50, p, 8, buf, &len)); + + return (GP_OK); +} + +/* get the cameras memory size */ +int +ricoh_get_cam_mem (Camera *camera, GPContext *context, int *size) +{ + unsigned char p[2], buf[0xff], len; + + p[0] = 0x00; + p[1] = 0x05; + CR (ricoh_transmit (camera, context, 0x51, p, 2, buf, &len)); + C_LEN (context, len, 4); + + if (size) + *size = buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0]; + + return (GP_OK); +} + +/* get the cameras available memory size */ +int +ricoh_get_cam_amem (Camera *camera, GPContext *context, int *size) +{ + unsigned char p[2], buf[0xff], len; + + p[0] = 0x00; + p[1] = 0x06; + CR (ricoh_transmit (camera, context, 0x51, p, 2, buf, &len)); + C_LEN (context, len, 4); + + if (size) + *size = buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0]; + + return (GP_OK); +} + +#define RICOH_GET_SET_VALUE(name,type,code) \ +int \ +ricoh_get_##name (Camera *camera, GPContext *context, \ + type *value) \ +{ \ + unsigned char p[1], buf[0xff], len; \ + \ + p[0] = (code); \ + CR (ricoh_transmit (camera, context, 0x51, p, 1, buf, &len)); \ + C_LEN (context, len, 1); \ + if (value) \ + *value = buf[0]; \ + return (GP_OK); \ +} \ + \ +int \ +ricoh_set_##name (Camera *camera, GPContext *context, \ + type value) \ +{ \ + unsigned char p[2], buf[0xff], len; \ + \ + p[0] = (code); \ + p[1] = (unsigned char) value; \ + CR (ricoh_transmit (camera, context, 0x50, p, 2, buf, &len)); \ + C_LEN (context, len, 0); \ + \ + return (GP_OK); \ +} + +RICOH_GET_SET_VALUE(exposure, RicohExposure, 0x03) +RICOH_GET_SET_VALUE(white_level,RicohWhiteLevel, 0x04) +RICOH_GET_SET_VALUE(zoom, RicohZoom, 0x05) +RICOH_GET_SET_VALUE(flash, RicohFlash, 0x06) +RICOH_GET_SET_VALUE(rec_mode, RicohRecMode, 0x07) +RICOH_GET_SET_VALUE(compression,RicohCompression,0x08) +RICOH_GET_SET_VALUE(resolution, RicohResolution, 0x09) +RICOH_GET_SET_VALUE(mode, RicohMode, 0x12) +RICOH_GET_SET_VALUE(macro, RicohMacro, 0x16) + +int +ricoh_get_copyright (Camera *camera, GPContext *context, const char **copyright) +{ + unsigned char p[1], len; + static char buf[1024]; + + p[0] = 0x0f; + CR (ricoh_transmit (camera, context, 0x51, p, 1, (unsigned char *)buf, &len)); + + if (copyright && *copyright) { + *copyright = (char *)buf; + buf[len] = '\0'; + } + + return (GP_OK); +} + +int +ricoh_set_copyright (Camera *camera, GPContext *context, const char *copyright) +{ + unsigned char p[21], len, buf[0xff]; + + p[0] = 0x0f; + strncpy ((char *)p + 1, copyright, 20); + CR (ricoh_transmit (camera, context, 0x50, p, 21, buf, &len)); + + return (GP_OK); +} + +int +ricoh_take_pic (Camera *camera, GPContext *context) +{ + unsigned char p[1]; + RicohMode mode; + + /* Put camera into record mode, if not already */ + CR (ricoh_get_mode (camera, context, &mode)); + if (mode != RICOH_MODE_RECORD) + CR (ricoh_set_mode (camera, context, RICOH_MODE_RECORD)); + + p[0] = 0x01; + CR (ricoh_send (camera, context, 0x60, 0x00, p, 1)); + + return (GP_OK); +} + +#undef MIN +#define MIN(x,y) (((x) < (y)) ? (x) : (y)) + +int +ricoh_put_file (Camera *camera, GPContext *context, const char *name, + const unsigned char *data, unsigned int size) +{ + RicohMode mode; + unsigned char p[16], len, buf[0xff], block[0xff]; + unsigned int i, pr; + + CR (ricoh_get_mode (camera, context, &mode)); + if (mode != RICOH_MODE_PLAY) + CR (ricoh_set_mode (camera, context, RICOH_MODE_PLAY)); + + /* Filename ok? */ + if (strlen (name) > 12) { + gp_context_error (context, _("The filename's length must not " + "exceed 12 characters ('%s' has %i characters)."), + name, (int)strlen (name)); + return (GP_ERROR); + } + + strncpy ((char *)p, name, 12); + p[12] = size << 24; + p[13] = size << 16; + p[14] = size << 8; + p[15] = size; + CR (ricoh_transmit (camera, context, 0xa1, p, 16, buf, &len)); + C_LEN (context, len, 2); + + /* + * We just received the picture number of the new file. We don't + * need it. + */ + + /* Now send the data */ + pr = gp_context_progress_start (context, size, _("Uploading...")); + for (i = 0; i < size; i += 128) { + memset (block, 0, sizeof (buf)); + memcpy (block, data + i, MIN (128, size - i)); + CR (ricoh_transmit (camera, context, 0xa2, block, 128, + buf, &len)); + C_LEN (context, len, 0); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + gp_context_progress_update (context, pr, MIN (i + 128, size)); + } + gp_context_progress_stop (context, pr); + + /* Finish upload */ + p[0] = 0x12; + p[1] = 0x00; + CR (ricoh_transmit (camera, context, 0x50, p, 2, buf, &len)); + C_LEN (context, len, 0); + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/ricoh.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/ricoh.h new file mode 100644 index 00000000..426f14e2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/ricoh/ricoh.h @@ -0,0 +1,203 @@ +/* ricoh.h + * + * Copyright 2002 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __RICOH_H__ +#define __RICOH_H__ + +#include + +#include +#include + +enum _RicohSpeed { + RICOH_SPEED_2400 = 0x00, + RICOH_SPEED_4800 = 0x01, + RICOH_SPEED_9600 = 0x02, + RICOH_SPEED_19200 = 0x03, + RICOH_SPEED_38400 = 0x04, + RICOH_SPEED_57600 = 0x05, + RICOH_SPEED_115200 = 0x07 +}; +typedef enum _RicohSpeed RicohSpeed; + +int ricoh_set_speed (Camera *camera, GPContext *context, RicohSpeed speed); + +/* We don't know the numbers for the models marked as 'dummy'. */ +enum _RicohModel { + RICOH_MODEL_1 = 0x001, /* dummy */ + RICOH_MODEL_2 = 0x002, /* dummy */ + RICOH_MODEL_2E = 0x003, /* dummy */ + RICOH_MODEL_100G = 0x005, /* dummy */ + RICOH_MODEL_300 = 0x300, + RICOH_MODEL_300Z = 0x301, + RICOH_MODEL_4200 = 0x402, + RICOH_MODEL_4300 = 0x403, + RICOH_MODEL_5000 = 0x004, /* dummy */ + RICOH_MODEL_ESP2 = 0x006, /* dummy */ + RICOH_MODEL_ESP50 = 0x007, /* dummy */ + RICOH_MODEL_ESP60 = 0x008, /* dummy */ + RICOH_MODEL_ESP70 = 0x009, /* dummy */ + RICOH_MODEL_ESP80 = 0x010, /* dummy */ + RICOH_MODEL_ESP80SXG = 0x400 +}; +typedef enum _RicohModel RicohModel; + +int ricoh_connect (Camera *camera, GPContext *context, RicohModel *model); +int ricoh_disconnect (Camera *camera, GPContext *context); + +enum _RicohMode { + RICOH_MODE_PLAY = 0x00, + RICOH_MODE_RECORD = 0x01 +}; +typedef enum _RicohMode RicohMode; + +int ricoh_get_mode (Camera *camera, GPContext *context, RicohMode *mode); +int ricoh_set_mode (Camera *camera, GPContext *context, RicohMode mode); + +int ricoh_get_num (Camera *camera, GPContext *context, unsigned int *n); + +int ricoh_get_pic_size (Camera *, GPContext *, unsigned int, uint64_t *); +int ricoh_get_pic_date (Camera *, GPContext *, unsigned int, time_t *); +int ricoh_get_pic_name (Camera *, GPContext *, unsigned int, const char **); +int ricoh_get_pic_memo (Camera *, GPContext *, unsigned int, const char **); +int ricoh_del_pic (Camera *, GPContext *, unsigned int); + +enum _RicohFileType { + RICOH_FILE_TYPE_NORMAL = 0xa0, + RICOH_FILE_TYPE_PREVIEW = 0xa4 +}; +typedef enum _RicohFileType RicohFileType; +int ricoh_get_pic (Camera *camera, GPContext *context, unsigned int n, + RicohFileType type, + unsigned char **data, unsigned int *size); + +int ricoh_take_pic (Camera *, GPContext *); +int ricoh_put_file (Camera *, GPContext *, const char *name, + const unsigned char *data, unsigned int size); + +int ricoh_get_date (Camera *camera, GPContext *context, time_t *time); +int ricoh_set_date (Camera *camera, GPContext *context, time_t time); + +int ricoh_get_cam_mem (Camera *camera, GPContext *context, int *mem); +int ricoh_get_cam_amem (Camera *camera, GPContext *context, int *mem); + +int ricoh_get_copyright (Camera *camera, GPContext *context, + const char **copyright); +int ricoh_set_copyright (Camera *camera, GPContext *context, + const char *copyright); + +enum _RicohResolution { + RICOH_RESOLUTION_640_480 = 0x01, + RICOH_RESOLUTION_1280_960 = 0x04 +}; +typedef enum _RicohResolution RicohResolution; + +int ricoh_get_resolution (Camera *, GPContext *, RicohResolution *); +int ricoh_set_resolution (Camera *, GPContext *, RicohResolution); + +enum _RicohExposure { + RICOH_EXPOSURE_M20 = 0x01, /* -2.0 */ + RICOH_EXPOSURE_M15 = 0x02, + RICOH_EXPOSURE_M10 = 0x03, + RICOH_EXPOSURE_M05 = 0x04, + RICOH_EXPOSURE_00 = 0x05, + RICOH_EXPOSURE_05 = 0x06, + RICOH_EXPOSURE_10 = 0x07, + RICOH_EXPOSURE_15 = 0x08, + RICOH_EXPOSURE_20 = 0x09, /* +2.0 */ + RICOH_EXPOSURE_AUTO = 0xff +}; +typedef enum _RicohExposure RicohExposure; + +int ricoh_get_exposure (Camera *, GPContext *, RicohExposure *); +int ricoh_set_exposure (Camera *, GPContext *, RicohExposure); + +enum _RicohWhiteLevel { + RICOH_WHITE_LEVEL_AUTO = 0x00, + RICOH_WHITE_LEVEL_OUTDOOR = 0x01, + RICOH_WHITE_LEVEL_FLUORESCENT = 0x02, + RICOH_WHITE_LEVEL_INCANDESCENT = 0x03, + RICOH_WHITE_LEVEL_BLACK_WHITE = 0x04, + RICOH_WHITE_LEVEL_SEPIA = 0x05 +}; +typedef enum _RicohWhiteLevel RicohWhiteLevel; + +int ricoh_get_white_level (Camera *, GPContext *, RicohWhiteLevel *); +int ricoh_set_white_level (Camera *, GPContext *, RicohWhiteLevel); + +enum _RicohMacro { + RICOH_MACRO_OFF = 0x00, + RICOH_MACRO_ON = 0x01 +}; +typedef enum _RicohMacro RicohMacro; + +int ricoh_get_macro (Camera *, GPContext *, RicohMacro *); +int ricoh_set_macro (Camera *, GPContext *, RicohMacro); + +enum _RicohZoom { + RICOH_ZOOM_OFF = 0x00, + RICOH_ZOOM_1 = 0x01, + RICOH_ZOOM_2 = 0x02, + RICOH_ZOOM_3 = 0x03, + RICOH_ZOOM_4 = 0x04, + RICOH_ZOOM_5 = 0x05, + RICOH_ZOOM_6 = 0x06, + RICOH_ZOOM_7 = 0x07, + RICOH_ZOOM_8 = 0x08 +}; +typedef enum _RicohZoom RicohZoom; + +int ricoh_get_zoom (Camera *, GPContext *, RicohZoom *); +int ricoh_set_zoom (Camera *, GPContext *, RicohZoom); + +enum _RicohFlash { + RICOH_FLASH_AUTO = 0x00, + RICOH_FLASH_OFF = 0x01, + RICOH_FLASH_ON = 0x02 +}; +typedef enum _RicohFlash RicohFlash; + +int ricoh_get_flash (Camera *, GPContext *, RicohFlash *); +int ricoh_set_flash (Camera *, GPContext *, RicohFlash); + +enum _RicohRecMode { + RICOH_REC_MODE_IMAGE = 0x00, + RICOH_REC_MODE_CHARACTER = 0x01, + RICOH_REC_MODE_SOUND = 0x03, + RICOH_REC_MODE_IMAGE_SOUND = 0x04, + RICOH_REC_MODE_CHARACTER_SOUND = 0x06 +}; +typedef enum _RicohRecMode RicohRecMode; + +int ricoh_get_rec_mode (Camera *, GPContext *, RicohRecMode *); +int ricoh_set_rec_mode (Camera *, GPContext *, RicohRecMode); + +enum _RicohCompression { + RICOH_COMPRESSION_NONE = 0x00, + RICOH_COMPRESSION_MAX = 0x01, + RICOH_COMPRESSION_NORM = 0x02, + RICOH_COMPRESSION_MIN = 0x03 +}; +typedef enum _RicohCompression RicohCompression; + +int ricoh_get_compression (Camera *, GPContext *, RicohCompression *); +int ricoh_set_compression (Camera *, GPContext *, RicohCompression); + +#endif /* __RICOH_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/samsung/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/samsung/ChangeLog new file mode 100644 index 00000000..bbc7723f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/samsung/ChangeLog @@ -0,0 +1,21 @@ +2002-04-05 Marcus Meissner + + * samsung.c: Should include name into file info. + Actually update the file data the same way we update the + progress data (helping kio_camera along). + +2002-04-04 Marcus Meissner + + * samsung.c: Implemented get_info_func, so kio_camera + download images only once. Some logical changes to other + functions which might make them faster on large imagesets. + +2002-01-14 Marcus Meissner + + * samsung.c: Added progress and abort handling to image download. + +2002-01-14 Marcus Meissner + + [ I bought a Practika QD800, which is the same model. ] + * samsung.c: Fixed the porting bugs, the driver now downloads + images correctly. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/samsung/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/samsung/Makefile-files new file mode 100644 index 00000000..3c89cc84 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/samsung/Makefile-files @@ -0,0 +1,9 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += samsung.la +EXTRA_DIST += samsung/ChangeLog + +samsung_la_SOURCES = samsung/samsung.c +samsung_la_LDFLAGS = $(camlib_ldflags) +samsung_la_DEPENDENCIES = $(camlib_dependencies) +samsung_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/samsung/samsung.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/samsung/samsung.c new file mode 100644 index 00000000..9d7429a4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/samsung/samsung.c @@ -0,0 +1,342 @@ +/* samsung.c + * + * Copyright 2000 James McKenzie + * Copyright 2001 Lutz Mueller + * Copyright 2002 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include +#include + +#include + +/* The commands */ +#define SDSC_START 0x43 +#define SDSC_NEXT 0x53 +#define SDSC_BINARY 0x06 +#define SDSC_RETRANSMIT 0x15 + +#define SDSC_BLOCKSIZE 0x400 +#define SDSC_INFOSIZE 0x080 + +#define SDSC_TIMEOUT 500 +#define SDSC_RETRIES 3 + +/* Our own error codes */ +#define SDSC_ERROR_EOF -1001 + +#define CHECK_RESULT(result) {int r = result; if (r < 0) return (r);} + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +static int +SDSC_send (GPPort *port, unsigned char command) +{ + CHECK_RESULT (gp_port_write (port, (char *)&command, 1)); + + return (GP_OK); +} + +static int +SDSC_receive (GPPort *port, unsigned char *buf, int length) +{ + char tmp[3]; + int i, result = GP_OK; + + for (i = 0; i < SDSC_RETRIES; i++) { + + /* Read the header (3 bytes) and check for EOF */ + CHECK_RESULT (gp_port_read (port, tmp, 1)); + if (tmp[0] == 0x04) + return (SDSC_ERROR_EOF); + result = gp_port_read (port, tmp, 2); + if (result < 0) { + CHECK_RESULT (SDSC_send (port, SDSC_RETRANSMIT)); + continue; + } + + /* Read data */ + result = gp_port_read (port, (char *)buf, length); + if (result < 0) { + CHECK_RESULT (SDSC_send (port, SDSC_RETRANSMIT)); + continue; + } + + /* Read footer (2 bytes) */ + result = gp_port_read (port, tmp, 2); + if (result < 0) { + CHECK_RESULT (SDSC_send (port, SDSC_RETRANSMIT)); + continue; + } + break; + } + + return (result); +} + +static int +is_null (unsigned char *buf) +{ + int n = 128; + + while (n--) + if (*(buf++)) + return (0); + return (1); +} + +static int +SDSC_initialize (GPPort *port) +{ + unsigned char buffer[SDSC_INFOSIZE]; + + /* Read out a header */ + do { + CHECK_RESULT (SDSC_send (port, SDSC_NEXT)); + CHECK_RESULT (SDSC_send (port, SDSC_START)); + CHECK_RESULT (SDSC_receive (port, buffer, SDSC_INFOSIZE)); + } while (!is_null (buffer)); + return (GP_OK); +} + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "samsung"); + + return (GP_OK); +} + +static const struct { + const char *model; +} models[] = { + {"Samsung:digimax 800k"}, + {"Dynatron:Dynacam 800"}, + {"Jenoptik:JD12 800ff"}, + {"Praktica:QD800"}, + {NULL} +}; + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].model; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].model); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 115200; + a.speed[1] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + CHECK_RESULT (gp_abilities_list_append (list, a)); + } + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int result; + int havefirst = 0; + unsigned char buffer[SDSC_BLOCKSIZE], first[SDSC_BLOCKSIZE]; + long int size, curread; + unsigned int pid; + + if (type != GP_FILE_TYPE_NORMAL) + return (GP_ERROR_NOT_SUPPORTED); + + /* Seek the header of our file */ + while (1) { + CHECK_RESULT (SDSC_send (camera->port, SDSC_NEXT)); + CHECK_RESULT (SDSC_send (camera->port, SDSC_START)); + CHECK_RESULT (SDSC_receive (camera->port, buffer, SDSC_INFOSIZE)); + if (!strcmp((char*)buffer,filename)) + break; + if (is_null(buffer)) { /* skipped to the end of the camera? */ + /* Since we start at a random position, we wrap around. */ + continue; + } + /* We are at the first item again, so break. */ + if (havefirst && !strcmp((char*)first,(char*)buffer)) + return GP_ERROR_BAD_PARAMETERS; + if (!havefirst) { + havefirst = 1; + strcpy((char*)first,(char*)buffer); + } + } + /* The buffer header has + * filename (8.3 DOS format and \0) + * filesize (as ascii number) and \0 + */ + /* Extract the size of the file */ + sscanf((char *)buffer+12,"%ld",&size); + /* Put the camera into image mode */ + CHECK_RESULT (SDSC_send (camera->port, SDSC_BINARY)); + CHECK_RESULT (SDSC_send (camera->port, SDSC_START)); + + pid = gp_context_progress_start(context,size,_("Downloading image...")); + + curread = 0; + /* Read data */ + while (1) { + /* Read data and check for EOF */ + result = SDSC_receive (camera->port, buffer, SDSC_BLOCKSIZE); + if (result == SDSC_ERROR_EOF) + break; + if (result < 0) + return result; + gp_file_append(file,(char *)buffer,SDSC_BLOCKSIZE); + curread += SDSC_BLOCKSIZE; + gp_context_progress_update(context, pid, curread); + if (gp_context_cancel(context) == GP_CONTEXT_FEEDBACK_CANCEL) + return GP_ERROR_CANCEL; + CHECK_RESULT (SDSC_send (camera->port, SDSC_BINARY)); + } + gp_context_progress_stop(context, pid); + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_JPEG)); + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + /* Translators: please write 'M"uller' and 'Mei"sner' (that + is, with u-umlaut and eszett resp.) if your charset + allows it. If not, use "Mueller" and "Meissner". */ + strcpy (about->text, _("The Samsung digimax 800k driver has " + "been written by James McKenzie " + " for gphoto. " + "Lutz Mueller ported it to " + "gphoto2. Marcus Meissner fixed " + "and enhanced the port.") + ); + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + unsigned char buffer[SDSC_INFOSIZE]; + Camera *camera = data; + + /* Rewind */ + CHECK_RESULT (SDSC_initialize (camera->port)); + + /* Count the pictures */ + while (1) { + CHECK_RESULT (SDSC_send (camera->port, SDSC_NEXT)); + CHECK_RESULT (SDSC_send (camera->port, SDSC_START)); + CHECK_RESULT (SDSC_receive (camera->port, + buffer, SDSC_INFOSIZE)); + if (is_null (buffer)) + break; + gp_list_append(list, (char *)buffer, NULL); + } + return (GP_OK); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + int havefirst = 0; + unsigned char buffer[SDSC_INFOSIZE], first[SDSC_INFOSIZE]; + + info->file.fields = GP_FILE_INFO_NONE; + /* Don't rewind, just go forward until we find it. + * Works way better for linear queries. + */ + while (1) { + CHECK_RESULT (SDSC_send (camera->port, SDSC_NEXT)); + CHECK_RESULT (SDSC_send (camera->port, SDSC_START)); + CHECK_RESULT (SDSC_receive (camera->port,buffer,SDSC_INFOSIZE)); + if (is_null (buffer)) + continue; + if (!strcmp((char*)buffer,filename)) { + info->file.fields = GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | GP_FILE_INFO_SIZE; + info->file.width = 1024; + info->file.height = 768; + strcpy(info->file.type,GP_MIME_JPEG); + sscanf((char *)buffer+12,"%lld",(long long int *)&info->file.size); + return GP_OK; + } + /* We are at the first item again */ + if (havefirst && !strcmp((char*)first,(char*)buffer)) + break; + if (!havefirst) { + havefirst = 1; + strcpy((char*)first,(char*)buffer); + } + } + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + + /* First, set up all the function pointers */ + camera->functions->about = camera_about; + + /* Now, tell the filesystem where to get lists and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + /* Some settings */ + CHECK_RESULT (gp_port_get_settings (camera->port, &settings)); + settings.serial.speed = 115200; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits= 1; + CHECK_RESULT (gp_port_set_settings (camera->port, settings)); + CHECK_RESULT (gp_port_set_timeout (camera->port, SDSC_TIMEOUT)); + /* Open the port and check if the camera is there */ + CHECK_RESULT (SDSC_initialize (camera->port)); + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/ChangeLog new file mode 100644 index 00000000..ceccc114 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/ChangeLog @@ -0,0 +1,702 @@ +2011-01-25 Marcus Meissner + + * sierra-usbwrap.c: Instead of synthesizing USB Mass Storage protocol + to send SCSI commands ... Use the usbscsi: port and send them + directly. + +2008-09-20 Marcus Meissner + + * sierra.c: Implement storage_info function. + +2007-04-22 Marcus Meissner + + * *-desc.c: Removed "const" from some structures that + are written to by the configuration handling code. + +2007-02-13 Chandra Curtis + *sierra.c, sierra-desc.h, olympus-desc.c: Added support for Olympus SP-500UZ. + (Works with gtkam, still some issue with gphoto2) + +2006-08-08 Marcus Meissner + + * sierra.c: Added Nikon CoolPix 2100, from + Ken Restivo . + +2005-09-26 Marcus Meissner + + * sierra-desc.c: Fixed 2 strict aliasing problems. + +2005-08-04 Marcus Meissner + + * sierra.c: epson photopc 700 has no reg 51 either + +2005-07-07 Marcus Meissner + + * sierra.c: Moved new Olympus entries prodid 0x109 here (from ptp2). + +2005-06-10 Marcus Meissner + + * sierra.c: Added Nikon Coolpix 4300 in wrapper modce. + +2005-05-30 Marcus Meissner + + * sierra.c: Sanyo VPC G250 does not have register 51. + +2005-05-08 Marcus Meissner + + * sierra.c: The olympus c-420l does only like + speeds up to 57600. + The epson photopc 650 does only like up to 38400. + +2005-02-27 Marcus Meissner + + Aurelien Jarno + * library.c: Increase buffer size to the one we will try to + to read. Newer libusb and kernels give more than 4k back to + read()s. + + Debian bug#296708. + +2005-02-16 Marcus Meissner + + * sierra.c: Added Pentax Optio 450. Thanks to Jack + for lending me his camera for some minutes. :) + (Capture works, but only if you plug it in with the lens + extracted already.) + +2005-02-14 Marcus Meissner + * library.c, sierra-desc.h, sierra.c, sierra.h, sierra-usbwrap.c: + Nikon Coolpix * and Pentax cameras also support the Sierra + protocol (usb wrapped), however with different command bytes. + + This patch adds support to specify the usb wrapping camera + type and also adds the Nikon Coolpix 2500. + +2005-01-22 Patrick Mansfield + * sierra-desc.c, sierra-desc.h: Add code in case we ever need a + GP_WIDGET_BUTTON/callback created, not currently used. + +2005-01-05 Patrick Mansfield + * olympus-desc.c: Add other Olympus C750UZ camera settings, they + were using the C3040 ones except for the zoom. Also use + GP_WIDGET_MENU instead of GP_WIDGET_RADIO for the resolutions, + as the radio with many elements takes up to much space. + +2005-01-04 Patrick Mansfield + * sierra-desc.c: Call gp_widget_set_name to properly set the + "name", so new gphoto2 --list-config and such are easier to + use. + +2004-12-11 Patrick Mansfield + * sierra.c, sierra.h: Per report from Emmanuel Beranger, add and + use a SIERRA_MID_SPEED flag so we only use download speeds of + 9600 to 38400 for the Olympus C820-L. + +2004-07-30 Patrick Mansfield + * library.c, sierra.c, sierra.h: Patch from Sean Bruno + to support Toshiba cameras. Added and + use SIERRA_NO_USB_CLEAR and SIERRA_NO_REGISTER_40 flags. + +2003-11-16 Patrick Mansfield + * library.c: Only do progress updates in sierra_get_string_register + if a command requires multiple packets. + +2003-11-16 Patrick Mansfield + * library.c, sierra.c: Enable progress checks, since the recursion + cases have been removed from libgphoto2 and gtkam. + +2003-11-15 Patrick Mansfield + * sierra.c: Make all ifdef's the same for recursion check and add + a missing ifdef. + +2003-11-15 Patrick Mansfield + * olympus-desc.c, sierra-desc.h, sierra.c: Add basic camera + description for the oly 750uz (just the zoom support and + oly750uz_manual for now). + +2003-11-03 Patrick Mansfield + * library.c: get rid of all progress updates to fix recursion + during capture per bug report 805858 from Harry Mangalam. The + fix sucks, since we now can't update gtkam (like scroll) while + operations are pending, but it fixes the bug. + + This also gets rid of a bug where do_percent was no longer + getting initialized. + + This really needs a change to gtkam or the gtkam <-> gphoto + interface, so we do not allow recursion but we do allow updates. + +2003-11-03 Patrick Mansfield + * sierra.c: mark Epson PhotoPC 650 as SIERRA_NO_51, per bug + report 831290 from Brian Lee. + +2003-11-03 Patrick Mansfield + * nikon-desc.c: update a comment about the behaviour of cp 880 and + register 30. + +2003-09-17 Marcus Meissner + + * library.c: we were closing a context id we never opened. Not good. + +2003-09-13 Patrick Mansfield + * epson-desc.c: remove unused commented out code. + +2003-09-13 Patrick Mansfield + * epson-desc.c sierra.c: get rid of C++ style comments. + +2003-08-30 Patrick Mansfield + * olympus-desc.c, sierra.c, sierra-desc.h: Add specific values + for the Olympus 3000z, based on input from Till Kamppeter + . + +2003-08-26 Patrick Mansfield + * library.c: Fix so on receipt of an unknown packet and a read of + zero bytes, we don't loop forever. + +2003-06-14 Dan Fandrich + * epson-desc.c, nikon-desc.c, olympus-desc.c, sierra-desc.c, sierra.c: + include _stdint.h instead of stdint.h + +2003-05-28 Patrick Mansfield + + * epson-desc.c, nikon-desc.c, olympus-desc.c, and sierr.c + sierra-desc.c, sierra-desc.h, sierra.c: change u_int* to uint*_t, + and include stdint.h + +2003-03-01 Patrick Mansfield + + * sierra.c: Fix SIERRA_SKIP_INIT usage and add vendor/product + id's for Polaroid PDC 2300Z. + +2003-02-27 Marcus Meissner + + * library.c: We support EXIF download. + +2003-02-15 Patrick Mansfield + + * sierra.c, sierra.h: Add and use SIERRA_SKIP_INIT for use with + Polaroid PDC 2300Z. + +2003-02-15 Patrick Mansfield + + * epson-desc.c, library.c, nikon-desc.c olympus-desc.c + sierra-desc.h, sierra.c, sierra.h: Remove use_extended_protocol + field and use a bit in the flags field instead. + * sierra.c: cleanup some of the init code + * sierra-desc.h: cleanup a comment + +2003-02-02 Patrick Mansfield + + * library.c: Add locking support just use the action + SIERRA_ACTION_PROT_STATE in sierra_set_locked. + +2003-02-02 Patrick Mansfield + + * library.c: Allow sierra_get_pic_info to always work even if + register 47 return no data - use other registers to get the data. + * sierra.c: Use register 43 to get audio, not sierra_get_pic_info, + so register 47 is not used prior to downloading. + +2003-02-02 Patrick Mansfield + + Idea based on a patch in a bug report from Valentin Rusu + , this should also fix other cameras + that do not return valid data for register 47. + + * library.c, library.h: added sierra_get_size + * sierra.c: call sierra_get_size to get sizes via register 12 or + 13, only call sierra_get_pic_info to get sizes for audio files. + Treat 0 length file size as unsupported. + +2003-01-30 Lutz Mller + + * sierra.h: SierraCamera is not needed any more. + * sierra.c: Make some calls non-fatal. + +2003-01-29 Lutz Mueller + + * sierra.c: It seems the "Agfa ePhoto307" does not support the + register 51. Reported by Ullrich Maenz . + +2003-01-14 Marcus Meissner + + * *.c: enabled more translations, added some missing _(). + +2003-01-14 Lutz Müller + + * sierra.c: Split the model string into manufacturer and model. + +2003-01-03 Marcus Meissner + + * sierra.c: Epson PhotoPC 650 at least partially working. + +2003-01-03 Marcus Meissner + + * library.c: Replaced stack allocated CameraList by dynamic + allocated one, since this struct is huge. + +2002-12-10 Marcus Meissner + + * sierra.c, sierra.h: replaced usb_wrap flag value by a generic + flags value. + + Added a hack for "low speed" cameras and cameras which do not + like the register 51 being retrieved, like the Agfa ePhoto 780c + apparently. + +2002-11-17 Patrick Mansfield + * sierra.c: start off with folder set to empty rather than "/", + since we have no idea of the camera directory on startup. + +2002-11-17 Patrick Mansfield + * sierra.c: Change 2100UZ to be SIERRA_MODEL_CAM_DESC per + patch from C.A. Marby . + +2002-11-17 Marcus Meissner + * sierra.c: Do not cast between time_t* and int*. + +2002-11-10 Patrick Mansfield + * library.c: oops accidentally took out the retrieval of the + current picture number (it's used to set the file name if no + valid file name is retrieved), put it back. + +2002-11-10 Patrick Mansfield + * library.c: Conditionally save the file path on capture. + Note that this requires gp_camera_capture() to allow a NULL + path, else the the sierra_capture is never called with a NULL + path. + +2002-11-10 Patrick Mansfield + * library.c: Per patch and details from C.A. Marby + , fix bugs with capture: fix a bug I + introduced, put back the read after action of a SIERRA_PACKET_ENQ. + Move the timeout increase before the capture, and increase the + timeout to 20 seconds. + +2002-11-05 Lutz Müller + + * sierra.c: The 2100UZ seems to use oly3040_cam_desc (reported by + C.A. Marby ) + +2002-11-01 Patrick Mansfield + * PROTOCOL, epson-desc.c, library.c, nikon-desc.c + * olympus-desc.c, sierra-desc.h, sierra.c, sierra.h: Add changes to + support the 0x6 get register strings, the extended protocol. + This gives roughly twice the download speed. This is not + supported for the default cases. Thanks to Selmeczi David + for discovering and coding up the original + patch for this support. Also includes a minor change in + library.c for the message when a recursive call is detected. + +2002-10-27 Patrick Mansfield + * library.c: rename ifdef around recursive call problem, and + change ifdef-ed out code to use gp_context_progress_start. + +2002-10-20 Lutz Müller + + * sierra.c (camera_init): Don't call sierra_init if the camera is + a 'Polaroid PDC 2300Z'. Reported by William Bader + . + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-09-21 Lutz Müller + + * library.c: Don't tell the camera to switch to a speed it is + currently operating at. + +2002-09-21 Lutz Müller + + * library.c + * sierra.c: Make the check for the precence of a memory card + non-fatal. + +2002-09-19 Lutz Müller + + * library.c (sierra_check_connection): Fix. + +2002-09-07 Patrick Mansfield + * sierra.c + * library.c: Avoid recursive calls from gtkam into get/set + functions by not calling gp_context_progress_update. + +2002-08-11 Patrick Mansfield + + * sierra-desc.c: set the widget info field. + * sierra.c: Change GP_DEBUG's to be more consistent. + * library.c: Do not call sierra_read_packet_wait after a + sierra_transmit_ack, since it's called by sierra_transmit_ack. + Add file name to progress bar in sierra_get_string_register. + Add recursion protection to sierra_get_string_register. + Increase the timeout temporarily for the next command after + capture completes. + Change GP_DEBUG's to be more consistent. + +2002-07-09 Gilles Grandou + + * epson-desc.c + * sierra-desc.h + * sierra.h + * Makefile.am: add initial configuration support for epson + 3000z through cam_desc. original code is still here for + other cameras which may rely on it (if any). + +2002-07-09 Selmeczi David + + * olympus-desc.c: Patch aperature to use menu rather than radio. + +2002-07-08 Patrick Mansfield + + * nikon-desc.c: Add comment clarifying 995 non-support. + * olympus-desc.c: + * sierra-desc.h: Add sierra_default_cam_desc. + +2002-07-06 Patrick Mansfield + + * sierra.c: Output summary with warning if no memory card present. + * library.c: Check for memory card before capture or listing. + * sierra-desc.c: add extern round() rather than a complete hack. + +2002-07-05 Lutz Müller + + Patch by Thomas Reitelbach : + + * sierra.c: Add support for Epson 850z. + +2002-07-01 Patrick Mansfield + + * nikon-desc.c + * olympus-desc.c + * sierra-desc.c + * sierra-desc.h + * sierra.c + * sierra.h: Add the ability to put the camera manual text in the + camera descriptor. Added text for cp880 and cp995. Put text in + for the Oly 3040. + + +2002-07-01 Patrick Mansfield + + Patch by Selmeczi David : + + * sierra.c: Use SIERRA_MODEL_CAM_DESC for some olympus models. + +2002-06-28 Lutz Müller + + Patch by Selmeczi David : + + * olympus-desc.c: + * nikon-desc.c: Prepare for translation. + * sierra.c: Use the new configuration dialog for more camera models. + +2002-06-28 Lutz Müller + + * sierra.h: + * library.[c,h]: + * sierra-desc.[c,h]: Fix includes. + * sierra.c: Remove cruft. + +2002-06-28 Selmeczi David + + * olympus-desc.c: New. + * Makefile.am: Add above file. + * sierra-desc.h: Reference to olympus-desc.c + * sierra.c: Use new configuration dialog for the 3040Z. + +2002-06-27 Lutz Müller + + * sierra-usbwrap.c: I missed one < GP_OK. + +2002-06-27 Lutz Müller + + Selmeczi David fixed the error checks. I added + the CR macro and fixed the headers. + + * sierra-usbwrap.h: Fix header. + * sierra-usbwrap.c: Check for gp_* < GP_OK instead of != GP_OK. + +2002-06-26 Lutz Müller + + Selmeczi David is working on supporting + his camera. This is a first step to get his camera working: + + * sierra.c: "Olympus C-3040Z" is supported by this driver, too. + +2002-05-29 Patrick Mansfield + + * library.[hc], sierra.[hc], sierra-desc.[ch], nikon-desc.c: + Add camera description table for camera configuration settings. + Add support for nikon coolpix 880 using the description table. + +2002-05-26 Lutz Müller + + * library.c: Handle the error where the camera sends strange bytes. + +2002-05-26 Lutz Müller + + * library.c (sierra_check_connection, sierra_set_speed): + These functions are only applicable for serial connections. + +2002-05-25 Lutz Müller + + * library.c: If we receive SIERRA_PACKET_SESSION_END, reestablish + the connection and switch to the default speed. + +2002-05-25 Lutz Müller + + * sierra.c (camera_init): It seems the code I '#if 0'ed out is needed + by USB cameras... + +2002-05-25 Lutz Müller + + * sierra.c: '#if 0' some code that I don't think is needed at all. + * library.c (sierra_init): Logs show that sierra_init does not + start a new session (i.e. no 0x53 instead of 0x43 needed). + +2002-05-25 Lutz Müller + + * library.c (sierra_set_speed): A speed change automatically + starts a new session. + +2002-05-25 Lutz Müller + + * library.c: The first packet after initialization (sierra_init) + needs a special flag. + +2002-05-25 Lutz Müller + + * sierra.c (camera_init): Check if the computer supports high speeds + (i.e. 115200). + +2002-05-25 Lutz Müller + + * library.c (sierra_check_connection): GP_ERROR_IO_READ is fine, too. + +2002-05-24 Lutz Müller + + * library.c: Imitate the behavior of the Windows driver and + check before each sierra_write_packet if the connection is + still open (sierra_check_connection), i.e. if the camera + has sent SIERRA_PACKET_SESSION_END. + +2002-05-24 Lutz Müller + + * library.c + * sierra.c: Move the check if a speed change is really needed into + sierra_set_speed. + +2002-05-23 Lutz Müller + + * library.c (sierra_init): Don't use sierra_read_packet_wait, + use sierra_read_packet and resend the request on GP_ERROR_TIMEOUT. + +2002-05-22 Lutz Müller + + * library.c (sierra_init): Portmon logs show that the port + is closed and reopened after SIERRA_PACKET_SESSION_END + has been received and before the initial handshake. + +2002-05-22 Lutz Müller + + * sierra.c: If the requested speed is 0, we set it to 115200. + +2002-05-21 Lutz Müller + + * sierra.c + * library.[c,h] (sierra_set_speed): Introduce SierraSpeed - makes + reading the code easier. Set GP_PIN_DTR before initialization and + after speed changes. According to Portmon logs, sierra_init + must be called after a SIERRA_PACKET_SESSION_END has been received. + Implement that. + +2002-05-21 Lutz Müller + + * library.c: Yet another try to handle SIERRA_PACKET_SESSION_END. + +2002-05-14 Lutz Müller + + * library.c: Try to handle the strange 0x8c error. + +2002-05-13 Lutz Müller + + * library.c: Handle SIERRA_PACKET_SESSION_[END,ERROR] by reinitializing + the connection if this error occurs. + +2002-04-27 Ilya Konstantinov + + * sierra.c (camera_start, camera_init): Send the + initialization sequence only on init. Olympus C-860L + stops communications when receiving an initialization + sequence after some communications have already occured. + + * library.h, library.c (sierra_ping -> sierra_init): + This function isn't really a "ping", since it can be used + only on startup. + +2002-04-26 Lutz Müller + + * sierra.c (camera_start): Forgot a gp_port_get_settings before + checking settings.serial.speed. Shouldn't affect anything though... + +2002-04-17 Lutz Müller + + Patch by Ilya Konstantinov : + + * library.c: break on timeout. + +2002-03-29 Lutz Müller + + * library.c (sierra_ping): Retry up to 3 times. + +2002-03-28 Lutz Müller + + * library.c: Formatting. + * sierra.c: Ping the camera before changing the speed. + +2002-03-14 Patrick Mansfield + + * sierra.c (camera_get_config_olympus, camera_set_config_olympus): + Fix getting/setting the shutter speed via conversion to int or + float. + +2002-02-27 Lutz Müller + + Patch by Patrick Mansfield : + + * library.c: Stop the progress only if any has been started. + +2002-02-22 Lutz Müller + + * library.c (sierra_get_string_register): Retry on timeout (after + sending nak). + +2002-02-21 Lutz Müller + + * sierra.c: Olympus C-860L has been reported to work with this driver, + too. + +2002-02-19 Lutz Müller + + * library.c (sierra_list_files): No need to set the int register, + (sierra_get_string_register) will do that for us. + +2002-02-18 Lutz Müller + + Per Gilles Grandou's request: + + * #undef HAVE_EXIF + +2002-02-18 Lutz Müller + + Reported by Patrick Mansfield : + + * library.c (sierra_read_packet): At least Nikon CoolPix 880 sets + the checksum always to 0xffff (?!?). + +2002-02-11 Lutz Müller + + * Makefile.am: As long as there is EXIF code in here, add + EXIF_[CFLAGS,LIBS]. However, there shouldn't be any EXIF code here, + it should all be done by the CameraFilesystem... + * library.c (sierra_list_files): Some cameras don't support filenames. + We are now that good in catching errors that we needed to adjust + the check here. + * sierra.c: Remove wrong use of CHECK + +2002-02-11 Gilles Grandou + + * sierra.c: added EXIF support. + +2002-02-08 Lutz Müller + + * library.c (sierra_read_packet): Improve debugging output by + reading several bytes at once. Should make transmission faster, + too. + +2002-02-06 Lutz Müller + + * sierra.[c,h]: Lots of additional debugging output. + +2002-02-06 Lutz Müller + + * sierra.c (sierra_read_packet_wait): {int res=(res);... + just cannot work. Read the macro definitions... + +2002-02-05 Lutz Müller + + * sierra.c (camera_init): Pass NULL as context, because we will + ignore those error messages and are just probing for the level of + support for filenames or folders. + +2002-02-05 Lutz Müller + + * library.c (sierra_read_packet): TYPE_COMMAND is a multi-byte + packet, too, according to protocol.htm (see photopc). + +2002-02-05 Lutz Müller + + * library.c (sierra_list_files): For cameras that don't support + filenames, it is useless to try to get a filename for each + file. Just try on the first one. If this fails, come up with + dummy filenames for each file. + +2002-02-05 Lutz Müller + + * library.c (sierra_read_packet): Hopefully this fixes problems + with serial cameras: TYPE_DATA[_END] identifies packets of more + than one byte. + +2002-01-29 Lutz Müller + + * library.c: Cleanup. + +2002-01-27 Lutz Müller + + * sierra.c: %s/== GP_OK/>= 0. Fixes camera_config (for example). + +2002-01-22 Lutz Müller + + William Bader reported (partial) success + with his Polaroid PDC2300Z. + + * sierra.c: New model. + * library.c: Clean-up. + +2002-01-22 Lutz Müller + + William Bader reported (partial) success + with his Polaroid PDC2300Z. + + * sierra.c: New model. + +2002-01-19 Lutz Müller + + * library.c: I messed up the logic: TYPE_DATA and TYPE_DATA_END + are _not_ single byte packets. + +2002-01-17 Lutz Müller + + * library.c: Improved debugging messages. I hope I didn't break + the logic... + +2002-01-16 Lutz Müller + + * library.c: Additional debugging messages. + +2002-01-13 Lutz Müller + + * *.[c,h]: Remove references to gp_camera_set_error. + +2002-01-09 Dan Fandrich + + * sierra-usbwrap.c: Fixed a pointer arithmetic portability issue. + +2001-12-01 Lutz Müller + + Suggestion from Stefan Höhne : + + * library.c: Check for filename == " ". It seems his + camera doesn't support filenames. + * sierra.c: Add "Olympus C-2500L". diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/MC-EU1-Protocol.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/MC-EU1-Protocol.txt new file mode 100644 index 00000000..fadf714a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/MC-EU1-Protocol.txt @@ -0,0 +1,181 @@ +From: http://vyskocil.free.fr/coolcom/MC-EU1%20Protocol.txt + + + Coolpix MC-EU1 Protocol + +Here are some informations about the serial protocol used between the Coolpix and the MC-EU1 remote. +Speed is set to 19200 bauds + +* Introduction +This protocol use 1 or 4 bytes "packets". 4 bytes packets are used to send command to the coolpix and receive information from it. +1 byte packet are used as acknowledge (0x86), not acknowledge (0x15), "attention packet" (0xFF). +Each byte in these packet is divided in two part, bit 0-6 is the value on 7 bits and bit 7 is the odd parity bit (thanks Mark Roberts !) +Returned value by the coolpix (in the two or three? last byte) have 0x1C offset, and least signifiant byte is sent first, for example +the number of picture is : + +nb picture = ((byte[2] & 0x7F) - 0x1C) + 100 * ((byte[3] & 0x7F) - 0x1C) +byte[0] == 0x9B, byte[1] == 0x10 + +* Going to MC-EU1 protocol + +Send Receive Informations + +0x00 + + 0x15 + +0x1B,0x53,0x06,0x00,0x00,0x11,0x02,0x00,0x00,0x00,0x13,0x00 Standard SetSpeed to 19200 command packet + + 0x06 + +0x1B,0x53,0x06,0x00,0x00,0x11,0x02,0x00,0x00,0x10,0x23,0x00 Go to MC-EU1 protocol packet, switch LCD ON + + 0x06 + +At first connection after Coolpix has been powerup, first 0x00 don't work, coolpix respond 0xFF 0xFF then nothing +A second 0x00 do the job. + +* Initialisations + +Need more informations... + +Send Receive Informations + +0x9B, 0x85, 0x1C, 0x1C + + 0x9B, 0x13, 0x1C, 0x1C ? + +0x86 + +* Has camera power down ? + +Send Receive Informations + +0x9B, 0x08, 0x1C, 0x1C + + 0x9B, 0x92, 0x7F, 0x7F Coolpix is ON + or + 0x9B, 0x19, 0x7F, 0x7F Coolpix powerdown. + +0x86 + +* Take a shoot : + +Send Receive Informations + +0x9B, 0x01, 0x1C, 0x1C Half press the shutter button. + + 0x86 + +0x9B, 0x01, 0x7F, 0x1C Full press the shutter button, + take the picture + 0x86 + +0x9B, 0x01, 0x7F, 0x7F Release the shutter button, + usefull in bulb mode + + 0x8F + +0x9B, 0x01, 0x1C, 0x7F Half press release (unlock shutter button). + + 0x86 + +* Zoom IN + +Send Receive Informations + +0x9B, 0x02, 0x1C, 0x1C "Press" the zoom in button + + 0x86 + +0x9B, 0x02, 0x1C, 0x7F "Release" the zoom in button + + 0x86 + +* Zoom OUT + +Send Receive Informations + +0x9B, 0x02, 0x7F, 0x1C "Press" the zoom out button + + 0x86 + +0x9B, 0x02, 0x7F, 0x7F "Release" the zoom out button + + 0x86 + +* Next picture + +Send Receive Informations + +0x9B, 0x04, 0x1C, 0x1C "Press" right + + 0x86 + +0x9B, 0x04, 0x1C, 0x7F "Release" right + + 0x86 + +* Previous picture + +Send Receive Informations + +0x9B, 0x04, 0x7F, 0x1C "Press" left + + 0x86 + +0x9B, 0x04, 0x7F, 0x7F "Release" left + + 0x86 + +* Number of picture left + +Send Receive Informations + +0x9B, 0x07, 0x1C, 0x1C + + 0x9B, 0x10, 0xXX, 0xYY (0xXX & 0x7F) - 0x1C + 100 * ((0xYY & 0x7F) - 0x1C) + is the number of pictures left + +0x86 + +* A-REC/M-Rec + +Send Receive Informations + +0x9B, 0x89, 0x1C, 0x1C + + 0x9B, 0x91, 0x9D, 0x7F for A Rec mode + or + 0x9B, 0x91, 0x0D, 0x1C for M Rec mode + or + 0x9B, 0x91, 0x7F, 0x9D for play mode + +0x86 + +* Go back to standard protocol + +Send Receive Informations + +0x9B, 0x8A, 0x1C, 0x1C LCD OFF + + 0x86 + +* "Attention" packet 0xFF from coolpix + +Coolpix send 0xFF in many cases : +- After initialisation in response to 0x00. +- When Coolpix self powerdown (powersave) +- When Coolpix is powerdown +- When a picture has been recorded +- When mode selector is operated (A-Rec, M-Rec, Play) + +It's a good idea to send 0x9B, 0x08, 0x1C, 0x1C packet to check +if coolpix has powerdown when a 0xFF is received, else check the +picture number and current mode. + +* Notes + +- Camera send NAK (0x15) in response to bad command packet + +- You may send any useful informations about this protocol to : vladimir.vyskocil@wanadoo.fr diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/Makefile-files new file mode 100644 index 00000000..9d791809 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/Makefile-files @@ -0,0 +1,16 @@ +# -*- Makefile -*- + +EXTRA_DIST += sierra/PROTOCOL sierra/ChangeLog sierra/MC-EU1-Protocol.txt + +EXTRA_LTLIBRARIES += sierra.la + +sierra_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS) $(LIBEXIF_CFLAGS) +sierra_la_SOURCES = \ + sierra/sierra.c sierra/sierra.h \ + sierra/library.c sierra/library.h \ + sierra/sierra-usbwrap.c sierra/sierra-usbwrap.h \ + sierra/sierra-desc.h sierra/sierra-desc.c \ + sierra/nikon-desc.c sierra/olympus-desc.c sierra/epson-desc.c +sierra_la_LDFLAGS = $(camlib_ldflags) +sierra_la_DEPENDENCIES = $(camlib_dependencies) +sierra_la_LIBADD = $(camlib_libadd) $(LIBEXIF_LIBS) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/PROTOCOL b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/PROTOCOL new file mode 100644 index 00000000..4fa0e2d6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/PROTOCOL @@ -0,0 +1,76 @@ +For further information , see http://photopc.sourceforge.net/protocol.html. + + register interpretation +--------------------------------------------------------------------------- + 1 resolution + 2 date (seconds since 1/1/1970) + 3 shutter speed + 4 current image number + 5 aperture + 6 color mode + 7 flash mode + 8 + 9 + 10 frames taken + 11 frames left + 12 size of current image + 13 size of thumbnail of current image + 14 (s) current preview (captured) + 15 + 16 battery life + 17 speed + 18 + 19 brightness/contrast + 20 white balance + 21 + 22 (s) camera id + 23 auto off (host) + 24 auto off (field) + 25 (s) serial number + 26 (s) software revision + 27 + 28 memory left + 29 (s) upload data here + 30 + 31 + 32 set to 0x0FEC000E before uploading a file + 33 lens mode + 34 + 35 lcd brightness + 36 + 37 + 38 lcd auto off + 70 spot metering mode + 72 zoom (0 = 1x, 8 = 2x, 520 = 1.6x, 1032 = 2.5x) + 79 (s) current filename + 83 number of folders in current folder + current folder number + 84 (s) current folder name + + + actions interpretation +--------------------------------------------------------------------- + 00 yy zz... set int register to value zz... + 01 yy get int register yy + + 02 01 00 delete all + 02 02 00 capture image + 02 03 00 + 02 04 00 end session + 02 05 00 capture preview + 02 06 00 + 02 07 00 delete + 02 08 00 + 02 09 00 + 02 10 00 + 02 11 00 + 02 12 00 + 02 13 00 + 02 14 00 + 02 15 00 + 02 16 00 + 02 17 00 upload file (after writing the file into register) + + 03 yy zz... set string register yy to value zz... + 04 yy get string register yy + 06 yy get string register yy using 32k packets (USB, extended protocol) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/epson-desc.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/epson-desc.c new file mode 100644 index 00000000..7f72a494 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/epson-desc.c @@ -0,0 +1,300 @@ +/* olympus_desc.c: + * + * Olympus-specific code: David Selmeczi + * Original code: + * Copyright 2002 Patrick Mansfield + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include <_stdint.h> +#include +#include +#include +#include +#include "sierra.h" +#include "library.h" +#include "sierra-desc.h" + +/* + * Camera descriptor for Olympus C-3040Z (and possibly others). + */ + +/* + * Notes: + * + * The variable "value" in a ValueNameType is the first element of + * the name/value union, and so it is the default value initialized. + * + * To init to a range, use: + * { .range = { 100.1, 2000.0, 10 } }, NULL + * + * Casts are used to avoid warnings about using a const. + * + * Only registers that are used by the camera configuration are listed + * here (for use in the get/set config functions); no settings, capture or + * other data is stored here. + */ + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +/* + * Register 1: resolution/size. + */ +static const ValueNameType ep3000z_reg_01_val_names[] = { + { { 0x01 }, "Standard 640x480" }, + { { 0x02 }, "Fine 2048x1536" }, + { { 0x03 }, "SuperFine 2048x1536" }, + { { 0x04 }, "HyPict 2544x1904" }, +}; +static const RegisterDescriptorType ep3000z_reg_01[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "resolution", N_("Resolution plus Size"), + VAL_NAME_INIT (ep3000z_reg_01_val_names) + } +}; + +/* + * Register 2: Date and time. + */ +static const ValueNameType ep3000z_reg_02_val_names[] = { + /* + * Dummy value, since we need at least one of these to + * display anything. + */ + { { 0x00 }, "Dummy" }, +}; +static const RegisterDescriptorType ep3000z_reg_02[] = { + { + GP_WIDGET_DATE, GP_REG_NO_MASK, + "date-time", N_("Date and time (GMT)"), + VAL_NAME_INIT (ep3000z_reg_02_val_names) + } +}; + +/* + * Register 3: shutter speed, not on ep3000z + */ + +/* + * Register 5: aperture settings. + */ +static const ValueNameType ep3000z_reg_05_val_names[] = { + { { 6 }, N_("auto") }, + { { 0 }, "F2.0" }, + { { 1 }, "F2.3" }, + { { 2 }, "F2.8" }, + { { 3 }, "F4.0" }, + { { 4 }, "F5.6" }, + { { 5 }, "F8.0" }, +}; +static const RegisterDescriptorType ep3000z_reg_05[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "aperture", N_("Aperture Settings"), + VAL_NAME_INIT (ep3000z_reg_05_val_names) + } +}; + +/* + * Register 6: color mode + */ +static const ValueNameType ep3000z_reg_06_val_names[] = { + { { 1 }, N_("Color") }, + { { 2 }, N_("Black & White") }, +}; +static const RegisterDescriptorType ep3000z_reg_06[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "color", N_("Color Mode"), + VAL_NAME_INIT (ep3000z_reg_06_val_names) + } +}; + +/* + * Register 7: flash settings + */ +static const ValueNameType ep3000z_reg_07_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1 }, N_("Force") }, + { { 2 }, N_("Off") }, + { { 3 }, N_("Red-eye Reduction") }, + { { 4 }, N_("Slow Sync") }, +}; +static const RegisterDescriptorType ep3000z_reg_07[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "flash", N_("Flash Settings"), + VAL_NAME_INIT (ep3000z_reg_07_val_names) + } +}; + +/* + * Register 20: white balance. + */ +static const ValueNameType ep3000z_reg_20_val_names[] = { + { { 0x00 }, N_("Auto") }, + { { 0x01 }, N_("Fixed") }, + { { 0xFF }, N_("Custom") }, +}; +static const RegisterDescriptorType ep3000z_reg_20[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "whitebalance", N_("White Balance"), + VAL_NAME_INIT (ep3000z_reg_20_val_names) + } +}; + +/* + * Register 23: camera power save when connected to PC + * (idle time before entering power save mode) + * TOCHECK: what is the exact valid range? + * I have previously set 0,255,1 is old camera_get_config_epson() + */ +static const ValueNameType ep3000z_reg_23_val_names[] = { + { { .range = { 30, 600, 30 } }, NULL }, +}; +static const RegisterDescriptorType ep3000z_reg_23[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "host-power-save", N_("Host power save (seconds)"), + VAL_NAME_INIT (ep3000z_reg_23_val_names) + } +}; + +/* + * Register 24: camera power save (idle time before entering power save mode) + * TOCHECK: what is the exact valid range? + * I have previously set 0,255,1 is old camera_get_config_epson() + */ +static const ValueNameType ep3000z_reg_24_val_names[] = { + { { .range = { 30, 600, 30 } }, NULL }, +}; +static const RegisterDescriptorType ep3000z_reg_24[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "camera-power-save", N_("Camera power save (seconds)"), + VAL_NAME_INIT (ep3000z_reg_24_val_names) + } +}; + +/* + * Register 33: Lens mode. + */ +static const ValueNameType ep3000z_reg_33_val_names[] = { + { { 0x01 }, N_("Macro") }, + { { 0x02 }, N_("Normal") }, +}; +static const RegisterDescriptorType ep3000z_reg_33[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "lens-mode", N_("Lens Mode"), + VAL_NAME_INIT (ep3000z_reg_33_val_names) + } +}; + +/* + * Register 53: language setting. + */ +static const ValueNameType ep3000z_reg_53_val_names[] = { + { { 0x01 }, N_("Korean") }, + { { 0x03 }, N_("English") }, + { { 0x04 }, N_("French") }, + { { 0x05 }, N_("German") }, + { { 0x06 }, N_("Italian") }, + { { 0x07 }, N_("Japanese") }, + { { 0x08 }, N_("Spanish") }, + { { 0x09 }, N_("Portuguese") }, + +}; +static const RegisterDescriptorType ep3000z_reg_53[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "language", N_("Language"), + VAL_NAME_INIT (ep3000z_reg_53_val_names) + } +}; + +/* + * All of the register used to modify picture settings. The register value + * received from the camera is stored into this data area, so it cannot be + * a const. + */ +static CameraRegisterType ep3000z_pic_regs[] = { + /* camera prefix, register number, size of register */ + CAM_REG_TYPE_INIT (ep3000z, 01, 4, CAM_DESC_DEFAULT, 0), /* resolution/size */ + CAM_REG_TYPE_INIT (ep3000z, 05, 4, CAM_DESC_DEFAULT, 0), /* aperture (f-stop) */ + CAM_REG_TYPE_INIT (ep3000z, 06, 4, CAM_DESC_DEFAULT, 0), /* color mode */ + CAM_REG_TYPE_INIT (ep3000z, 07, 4, CAM_DESC_DEFAULT, 0), /* flash */ + CAM_REG_TYPE_INIT (ep3000z, 20, 4, CAM_DESC_DEFAULT, 0), /* white balance */ + CAM_REG_TYPE_INIT (ep3000z, 33, 4, CAM_DESC_DEFAULT, 0), /* focus mode */ +}; + +/* + * All of the register used to modify camera settings. + */ +static CameraRegisterType ep3000z_cam_regs[] = { + CAM_REG_TYPE_INIT (ep3000z, 53, 4, CAM_DESC_DEFAULT, 0), /* date-time */ + CAM_REG_TYPE_INIT (ep3000z, 02, 4, CAM_DESC_DEFAULT, 0), /* date-time */ + CAM_REG_TYPE_INIT (ep3000z, 24, 4, CAM_DESC_DEFAULT, 0), /* Camera power save */ + CAM_REG_TYPE_INIT (ep3000z, 23, 4, CAM_DESC_DEFAULT, 0), /* Host power save */ +}; + +static const CameraRegisterSetType ep3000z_desc[] = { + { + N_("Picture Settings"), + SIZE_ADDR (CameraRegisterType, ep3000z_pic_regs) + }, + { + N_("Camera Settings"), + SIZE_ADDR (CameraRegisterType, ep3000z_cam_regs) + }, +}; + +static const char ep3000z_manual[] = +N_( +"Some notes about Epson cameras:\n" +"- Some parameters are not controllable remotely:\n" +" * zoom\n" +" * focus\n" +" * custom white balance setup\n" +"- Configuration has been reverse-engineered with\n" +" a PhotoPC 3000z, if your camera acts differently\n" +" please send a mail to the gphoto developer mailing list (in English)\n" +); + +const CameraDescType ep3000z_cam_desc = { ep3000z_desc, ep3000z_manual, + SIERRA_EXT_PROTO, }; diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/library.c new file mode 100644 index 00000000..77ad17fa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/library.c @@ -0,0 +1,1563 @@ +/* library.c + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" +#include "library.h" + +#include +#include +#include +#include +#include + +#include + +#include "sierra.h" +#include "sierra-usbwrap.h" + +#define GP_MODULE "sierra" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +enum _SierraPacket { + NUL = 0x00, + SIERRA_PACKET_DATA = 0x02, + SIERRA_PACKET_DATA_END = 0x03, + SIERRA_PACKET_ENQ = 0x05, + ACK = 0x06, + SIERRA_PACKET_INVALID = 0x11, + SIERRA_PACKET_NAK = 0x15, + SIERRA_PACKET_COMMAND = 0x1b, + SIERRA_PACKET_WRONG_SPEED = 0x8c, + SIERRA_PACKET_SESSION_ERROR = 0xfc, + SIERRA_PACKET_SESSION_END = 0xff +}; +typedef enum _SierraPacket SierraPacket; + +/* Size of requested packet */ +#define SIERRA_PACKET_SIZE 32774 + +/* Sub-types */ +#define SUBSIERRA_PACKET_COMMAND_FIRST 0x53 +#define SUBSIERRA_PACKET_COMMAND 0x43 + +/* Maximum length of the data field within a packet */ +#define MAX_DATA_FIELD_LENGTH 2048 + +#define RETRIES 10 + +#define QUICKSLEEP 5 + +int sierra_change_folder (Camera *camera, const char *folder, GPContext *context) +{ + int st = 0, i; + char target[128]; + + GP_DEBUG ("*** sierra_change_folder"); + GP_DEBUG ("*** folder: %s", folder); + + /* + * Do not issue the command if the camera doesn't support folders + * or if the folder is the current working folder + */ + if (!camera->pl->folders || !strcmp (camera->pl->folder, folder)) + return GP_OK; + + /* We will later need a path ending with '/'. */ + memset (target, 0, sizeof (target)); + if (folder[0]) + strncpy (target, folder, sizeof (target) - 1); + if (target[strlen (target) - 1] != '/') + strcat (target, "/"); + + /* If the given path is absolute, we need to start in '/'. */ + if (target[0] == '/') { + CHECK (sierra_set_string_register (camera, 84, "\\", 1, + context)); + i = 1; + } else + i = 0; + + st = i; + for (; target[i]; i++) { + if (target[i] == '/') { + target[i] = '\0'; + if (st == i - 1) + break; + CHECK (sierra_set_string_register (camera, 84, + target + st, strlen (target + st), context)); + + st = i + 1; + target[i] = '/'; + } + } + strcpy (camera->pl->folder, folder); + + return GP_OK; +} + +int sierra_list_files (Camera *camera, const char *folder, CameraList *list, GPContext *context) +{ + int count, i, r; + unsigned int len = 0; + char filename[1024]; + + GP_DEBUG ("Listing files in folder '%s'", folder); + + /* + * This is a non-fatal check if a memory card is present. Some + * cameras don't understand this command and error out here. + * Since some cameras do not like it at all, do not send it for those. + */ + if (!(camera->pl->flags & SIERRA_NO_51)) { + r = sierra_get_int_register (camera, 51, &i, NULL); + if ((r >= 0) && (i == 1)) { + gp_context_error (context, _("No memory card present")); + return GP_ERROR_NOT_SUPPORTED; + } + } + + /* We need to change to the folder first */ + CHECK (sierra_change_folder (camera, folder, context)); + + /* Then, we count the files */ + GP_DEBUG ("Counting files in '%s'...", folder); + CHECK (sierra_get_int_register (camera, 10, &count, context)); + GP_DEBUG ("... done. Found %i file(s).", count); + + /* No files? Then, we are done. */ + if (!count) + return GP_OK; + + /* + * Get the filename of the first picture. Note that some cameras + * that don't support filenames return 8 blanks instead of + * reporting an error. If this is indeed the case, just fill + * the list with dummy entries and return. + */ + GP_DEBUG ("Getting filename of first file"); + r = sierra_get_string_register (camera, 79, 1, NULL, + (unsigned char *)filename, + &len, context); + if ((r < 0) || (len <= 0) || !strcmp (filename, " ")) { + CHECK (gp_list_populate (list, "P101%04i.JPG", count)); + return GP_OK; + } + + /* + * The camera supports filenames. Append the first one to the list + * and get the remaining ones. + */ + CHECK (gp_list_append (list, filename, NULL)); + for (i = 1; i < count; i++) { + GP_DEBUG ("Getting filename of file %i...", i + 1); + CHECK (sierra_get_string_register (camera, 79, i + 1, NULL, + (unsigned char *)filename, + &len, context)); + if ((len <= 0) || !strcmp (filename, " ")) + snprintf (filename, sizeof (filename), + "P101%04i.JPG", i + 1); + GP_DEBUG ("... done ('%s').", filename); + CHECK (gp_list_append (list, filename, NULL)); + } + + return GP_OK; +} + +int sierra_list_folders (Camera *camera, const char *folder, CameraList *list, + GPContext *context) +{ + int j, count; + unsigned int i, bsize; + char buf[1024]; + + /* List the folders only if the camera supports them */ + if (!camera->pl->folders) + return GP_OK; + + CHECK (sierra_change_folder (camera, folder, context)); + GP_DEBUG ("*** counting folders in '%s'...", folder); + CHECK (sierra_get_int_register (camera, 83, &count, context)); + GP_DEBUG ("*** found %i folders", count); + for (i = 0; i < count; i++) { + CHECK (sierra_change_folder (camera, folder, context)); + CHECK (sierra_set_int_register (camera, 83, i + 1, context)); + bsize = 1024; + GP_DEBUG ("*** getting name of folder %i", i + 1); + CHECK (sierra_get_string_register (camera, 84, 0, + NULL, (unsigned char *)buf, + &bsize, context)); + + /* Remove trailing spaces */ + for (j = strlen (buf) - 1; j >= 0 && buf[j] == ' '; j--) + buf[j] = '\0'; + gp_list_append (list, buf, NULL); + } + + return GP_OK; +} + +/** + * sierra_get_picture_folder: + * @camera : camera data stucture + * @folder : folder name (to be freed by the caller) + * + * Return the name of the folder that stores pictures. It is assumed that + * the camera conforms with the JEIDA standard. Thus, look for the picture + * folder into the /DCIM directory. + * + * Returns: a gphoto2 error code + */ +int sierra_get_picture_folder (Camera *camera, char **folder) +{ + int i; + CameraList *list; + const char *name = NULL; + + GP_DEBUG ("* sierra_get_picture_folder"); + + *folder = NULL; + + /* If the camera does not support folders, the picture + folder is the root folder */ + if (!camera->pl->folders) { + *folder = (char*) calloc(2, sizeof(char)); + strcpy(*folder, "/"); + return GP_OK; + } + + CHECK (gp_list_new (&list)); + + /* It is assumed that the camera conforms with the JEIDA standard . + Thus, look for the picture folder into the /DCIM directory */ + CHECK (gp_filesystem_list_folders (camera->fs, "/DCIM", list, NULL) ); + for(i=0 ; i < gp_list_count (list) ; i++) { + CHECK (gp_list_get_name (list, i, &name) ); + GP_DEBUG ("* check folder %s", name); + if (isdigit(name[0]) && isdigit(name[1]) && isdigit(name[2])) + break; + name = NULL; + } + + if (name) { + *folder = (char*) calloc(strlen(name)+7, sizeof(char)); + strcpy(*folder, "/DCIM/"); + strcat(*folder, name); + gp_list_free (list); + return GP_OK; + } else { + gp_list_free (list); + return GP_ERROR_DIRECTORY_NOT_FOUND; + } +} + +/** + * sierra_check_battery_capacity: + * @camera : camera data stucture + * + * Check if the battery capacity is high enough. + * + * Returns: a gphoto2 error code + */ +int sierra_check_battery_capacity (Camera *camera, GPContext *context) +{ + int ret, capacity; + + GP_DEBUG ("* sierra_check_battery_capacity"); + + if ((ret = sierra_get_int_register(camera, 16, &capacity, context)) != GP_OK) { + gp_context_error (context, + _("Cannot retrieve the battery capacity")); + return ret; + } + if (!capacity) /* 0% is unlikely */ + return GP_OK; + + if (capacity < 5) { + gp_context_error (context, + _("The battery level of the camera is too low (%d%%). " + "The operation is aborted."), capacity); + return GP_ERROR; + } + + return GP_OK; +} + +/** + * sierra_get_memory_left: + * @camera : camera data stucture + * @memory : memory left + * + * Provide the available memory left + * + * Returns: a gphoto2 error code + */ +int +sierra_get_memory_left (Camera *camera, int *memory, GPContext *context) +{ + int ret; + + ret = sierra_get_int_register (camera, 28, memory, context); + if (ret < 0) { + gp_context_error (context, _("Cannot retrieve the available " + "memory left")); + return ret; + } + + return GP_OK; +} + +static int +sierra_check_connection (Camera *camera, GPContext *context) +{ + int r = 0, ret, timeout; + unsigned char c; + + /* Only serial cameras close the connection after some timeout. */ + if (camera->port->type != GP_PORT_SERIAL) + return GP_OK; + + GP_DEBUG ("Checking if connection is still open"); + while (1) { + + /* + * Do like the Windows driver - check for 20ms if something + * has been sent by the camera. + */ + CHECK (gp_port_get_timeout (camera->port, &timeout)); + CHECK (gp_port_set_timeout (camera->port, 20)); + ret = gp_port_read (camera->port, (char *)&c, 1); + CHECK (gp_port_set_timeout (camera->port, timeout)); + switch (ret) { + case GP_ERROR_TIMEOUT: + case GP_ERROR_IO_READ: + + /* + * If we got GP_ERROR_TIMEOUT or GP_ERROR_IO_READ, + * everything's just fine. + */ + return GP_OK; + + default: + + /* + * If any error (except timeout) has occurred, + * report it. + */ + CHECK (ret); + } + + /* + * We have received something. This is not good. Check if + * the camera has closed the connection and told us about + * that by sending SIERRA_PACKET_SESSION_END. + */ + if (c == SIERRA_PACKET_SESSION_END) { + if (++r > 2) { + gp_context_error (context, _("Camera refused " + "3 times to keep a connection open.")); + return GP_ERROR; + } + CHECK (sierra_init (camera, context)); + CHECK (sierra_set_speed (camera, SIERRA_SPEED_19200, + context)); + continue; + } + + /* + * The camera sends us unexpected data. Dump it and assume + * that everything's just fine. + */ + while (gp_port_read (camera->port, (char *)&c, 1) >= 0); + return GP_OK; + } +} + +static int +sierra_write_packet (Camera *camera, char *packet, GPContext *context) +{ + int x, checksum=0, length; + + CHECK (sierra_check_connection (camera, context)); + + /* + * We need to check if this is the first packet. Note that USB + * cameras don't care. + */ + switch (packet[0]) { + case SIERRA_PACKET_COMMAND: + switch (camera->port->type) { + case GP_PORT_SERIAL: + packet[1] = (camera->pl->first_packet ? + SUBSIERRA_PACKET_COMMAND_FIRST : + SUBSIERRA_PACKET_COMMAND); + camera->pl->first_packet = 0; + break; + default: + packet[1] = SUBSIERRA_PACKET_COMMAND; + break; + } + break; + default: + break; + } + + /* Determing packet length */ + if ((packet[0] == SIERRA_PACKET_COMMAND) || + (packet[0] == SIERRA_PACKET_DATA) || + (packet[0] == SIERRA_PACKET_DATA_END)) { + length = ((unsigned char)packet[2]) + + ((unsigned char)packet[3] * 256); + length += 6; + } else { + length = 1; + } + + /* Generate the checksum */ + if (length > 1) { + for (x = 4; x < length - 2; x++) + checksum += (unsigned char)packet[x]; + packet[length-2] = checksum & 0xff; + packet[length-1] = (checksum >> 8) & 0xff; + } + + if (camera->pl->flags & SIERRA_WRAP_USB_MASK) { + CHECK (usb_wrap_write_packet (camera->port, + (camera->pl->flags & SIERRA_WRAP_USB_MASK), + packet, length)); + } else { + CHECK (gp_port_write (camera->port, packet, length)); + } + + return GP_OK; +} + +static int +sierra_clear_usb_halt(Camera *camera) +{ + + if ( (camera->port->type == GP_PORT_USB) && + !(camera->pl->flags & SIERRA_WRAP_USB_MASK) && + !(camera->pl->flags & SIERRA_NO_USB_CLEAR) ) + gp_port_usb_clear_halt(camera->port, GP_PORT_USB_ENDPOINT_IN); + return (GP_OK); +} + +static int +sierra_write_nak (Camera *camera, GPContext *context) +{ + char buf[4096]; + int ret; + + GP_DEBUG ("* sierra_write_nack"); + + buf[0] = SIERRA_PACKET_NAK; + ret = sierra_write_packet (camera, buf, context); + sierra_clear_usb_halt(camera); + return (ret); +} + +/** + * sierra_read_packet: + * @camera : camera data stucture + * @packet : to return the read packet + * + * Read a data packet from the camera. + * + * Method: + * Two kinds of packet may be received from the camera : + * - either single byte length packet, + * - or several byte length packet. + * + * Structure of the several byte length packet is the following : + * Offset Length Meaning + * 0 1 Packet type + * 1 1 Packet subtype/sequence + * 2 2 Length of data + * 4 variable Data + * -2 2 Checksum + * + * The operation is successful when the packet is recognised + * and is completely retrieved without IO errors. + * + * Returns: error code + * - GP_OK if the operation is successful (see description), + * - GP_ERROR_UNKNOWN_PORT if no port was specified within + * the camera data structure, + * - GP_ERROR_CORRUPTED_DATA if the received data are invalid, + * - GP_ERROR_IO_* on other IO error. + */ +static int +sierra_read_packet (Camera *camera, unsigned char *packet, GPContext *context) +{ + int result; + unsigned int i, c, r = 0, length, blocksize = 1, br; + + GP_DEBUG ("Reading packet..."); + + switch (camera->port->type) { + case GP_PORT_USB_SCSI: + case GP_PORT_USB: + blocksize = SIERRA_PACKET_SIZE; + break; + case GP_PORT_SERIAL: + blocksize = 1; + break; + default: + return (GP_ERROR_UNKNOWN_PORT); + } + + /* Try several times before leaving on error... */ + while (1) { + + /* Clear the USB bus + (what about the SERIAL bus : do we need to flush it?) */ + sierra_clear_usb_halt(camera); + + /* + * Read data through the bus. If an error occurred, + * try again. + */ + if ((camera->port->type & (GP_PORT_USB_SCSI|GP_PORT_USB)) && (camera->pl->flags & SIERRA_WRAP_USB_MASK)) + result = usb_wrap_read_packet (camera->port, + (camera->pl->flags & SIERRA_WRAP_USB_MASK), + (char *)packet, blocksize); + else + result = gp_port_read (camera->port, (char *)packet, blocksize); + if (result < 0) { + GP_DEBUG ("Read failed (%i: '%s').", result, + gp_result_as_string (result)); + if (++r > 2) { + sierra_clear_usb_halt(camera); + GP_DEBUG ("Giving up..."); + return (result); + } + GP_DEBUG ("Retrying..."); + continue; + } + if (result == 0) { + GP_DEBUG ("Read got 0 bytes.."); + if (++r > 2) { + sierra_clear_usb_halt(camera); + GP_DEBUG ("Giving up..."); + return GP_ERROR_IO_READ; + } + GP_DEBUG ("Retrying..."); + continue; + } + br = result; + + /* + * If the first read byte is not known, + * report an error and exit the processing. + */ + switch (packet[0]) { + case NUL: + case SIERRA_PACKET_ENQ: + case ACK: + case SIERRA_PACKET_INVALID: + case SIERRA_PACKET_NAK: + case SIERRA_PACKET_SESSION_ERROR: + case SIERRA_PACKET_SESSION_END: + case SIERRA_PACKET_WRONG_SPEED: + + /* Those are all single byte packets. */ + sierra_clear_usb_halt(camera); + GP_DEBUG ("Packet type 0x%02x read. Returning GP_OK.", packet[0]); + return GP_OK; + + case SIERRA_PACKET_DATA: + case SIERRA_PACKET_DATA_END: + case SIERRA_PACKET_COMMAND: + + /* Those are packets with more than one byte. */ + break; + + default: + + /* + * This byte is not valid. Dump everything that + * coming in. + */ + gp_context_error (context, _("The first byte " + "received (0x%x) is not valid."), packet[0]); + while (gp_port_read (camera->port, (char *)packet, 1) > 0) + ; + sierra_clear_usb_halt(camera); + return (GP_ERROR_CORRUPTED_DATA); + } + + /* + * We've got a packet containing several bytes. + * The data packet size is not known yet if the communication + * is performed through the serial bus : read it then. + */ + if (br < 4) { + result = gp_port_read (camera->port, + (char *)packet + br, 4 - br); + if (result < 0) { + sierra_clear_usb_halt(camera); + GP_DEBUG ("Could not read length of " + "packet (%i: '%s'). Giving up...", + result, gp_result_as_string (result)); + return (result); + } + br += result; + } + + /* + * Determine the packet length: 2 for packet type and + * subtype or sequence number, 2 for length, the actual + * data, and 2 for the checksum. + */ + length = packet[2] + (packet[3] * 256) + 6; + if (length > SIERRA_PACKET_SIZE) { + GP_DEBUG ("Packet too long (%d)!", length); + return GP_ERROR_IO; + } + + /* + * Read until the end of the packet is reached + * or an error occurred. + */ + while (br < length) { + result = gp_port_read (camera->port, (char *)packet + br, + length - br); + if (result == GP_ERROR_TIMEOUT) { + + /* We will retry later on. */ + GP_DEBUG ("Timeout!"); + break; + + } else if (result < 0) { + GP_DEBUG ("Could not read remainder of " + "packet (%i: '%s'). Giving up...", + result, gp_result_as_string (result)); + return (result); + } else + br += result; + } + + /* + * If we have, at this point, received the full packet, + * check the checksum. If the checksum is correct, we are + * done. + */ + if (br == length) { + for (c = 0, i = 4; i < br - 2; i++) + c += packet[i]; + c &= 0xffff; + if (c == (packet[br - 2] + (packet[br - 1] * 256))) + break; + + /* + * At least the Nikon CoolPix 880 sets the checksum + * always to 0xffff. In that case, we can't check it + * and return successfully. + */ + if ((packet[br - 2] == 0xff) && + (packet[br - 1] == 0xff)) + break; + /* + * The checksum for the Toshiba PDR-M6X cameras is + * almost always set to 0x00 0x00. + */ + if ((packet[br - 2] == 0x00) && + (packet[br - 1] == 0x00)) + break; + + + GP_DEBUG ("Checksum wrong (calculated 0x%x, " + "found 0x%x)!", c, + packet[br - 2] + (packet[br - 1] * 256)); + } + + /* + * We will retry if we couldn't receive the full packet + * (GP_ERROR_TIMEOUT) or if the checksum is wrong. + */ + r++; + if (r + 1 >= RETRIES) { + sierra_clear_usb_halt(camera); + GP_DEBUG ("Giving up..."); + return ((br == length) ? GP_ERROR_CORRUPTED_DATA : + GP_ERROR_TIMEOUT); + } + GP_DEBUG ("Retrying..."); + sierra_write_nak (camera, context); + usleep (10 * 1000); + } + + sierra_clear_usb_halt(camera); + + return GP_OK; +} + +static int +sierra_read_packet_wait (Camera *camera, char *buf, GPContext *context) +{ + int result, r = 0; + + while (1) { + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + + result = sierra_read_packet (camera, (unsigned char *)buf, context); + if (result == GP_ERROR_TIMEOUT) { + if (++r > 2) { + gp_context_error (context, _("Transmission " + "of packet timed out even after " + "%i retries. Please contact " + "%s."), r, MAIL_GPHOTO_DEVEL); + return GP_ERROR; + } + GP_DEBUG ("Retrying..."); + usleep (QUICKSLEEP * 1000); + continue; + } + + CHECK (result); + + GP_DEBUG ("Packet successfully read."); + return GP_OK; + } +} + +static int +sierra_transmit_ack (Camera *camera, char *packet, GPContext *context) +{ + int r = 0, result; + unsigned char buf[SIERRA_PACKET_SIZE]; + + while (1) { + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + + /* Write packet and read the answer */ + CHECK (sierra_write_packet (camera, packet, context)); + buf[0] = 0; + result = sierra_read_packet_wait (camera, (char *)buf, context); + switch (result) { + case GP_ERROR_CORRUPTED_DATA: + if (++r > 2) { + gp_context_error (context, _("Could not " + "transmit packet even after several " + "retries.")); + return (result); + } + continue; + default: + CHECK (result); + } + + switch (buf[0]) { + case SIERRA_PACKET_ENQ: + case ACK: + GP_DEBUG ("Transmission successful."); + return GP_OK; + case SIERRA_PACKET_INVALID: + gp_context_error (context, _("Packet was rejected " + "by camera. Please contact " + "%s."), MAIL_GPHOTO_DEVEL); + return GP_ERROR; + + case SIERRA_PACKET_SESSION_END: + case SIERRA_PACKET_SESSION_ERROR: + case SIERRA_PACKET_WRONG_SPEED: + if (++r > 2) { + gp_context_error (context, _("Could not " + "transmit packet even after several " + "retries.")); + return GP_ERROR; + } + + /* + * The camera has ended this session and + * reverted the speed back to 19200. Reinitialize + * the connection. + */ + CHECK (sierra_init (camera, context)); + CHECK (sierra_set_speed (camera, SIERRA_SPEED_19200, + context)); + continue; + + default: + if (++r > 2) { + gp_context_error (context, _("Could not " + "transmit packet (error code %i). " + "Please contact " + "%s."), buf[0], MAIL_GPHOTO_DEVEL); + return GP_ERROR; + } + GP_DEBUG ("Did not receive ACK. Retrying..."); + continue; + } + } +} + +static int +sierra_build_packet (Camera *camera, char type, char subtype, + int data_length, char *packet) +{ + packet[0] = type; + switch (type) { + case SIERRA_PACKET_COMMAND: + + /* sierra_write_packet will check for the first packet */ + packet[1] = SUBSIERRA_PACKET_COMMAND; + + break; + case SIERRA_PACKET_DATA: + case SIERRA_PACKET_DATA_END: + packet[1] = subtype; + break; + default: + GP_DEBUG ("* unknown packet type!"); + } + + packet[2] = data_length & 0xff; + packet[3] = (data_length >> 8) & 0xff; + + return GP_OK; +} + +static int +sierra_write_ack (Camera *camera, GPContext *context) +{ + char buf[4096]; + int ret; + + GP_DEBUG ("Writing acknowledgement..."); + + buf[0] = ACK; + ret = sierra_write_packet (camera, buf, context); + sierra_clear_usb_halt(camera); + CHECK (ret); + + GP_DEBUG ("Successfully wrote acknowledgement."); + return GP_OK; +} + +int +sierra_init (Camera *camera, GPContext *context) +{ + unsigned char buf[SIERRA_PACKET_SIZE], packet[4096]; + int ret, r = 0; + GPPortSettings settings; + + GP_DEBUG ("Sending initialization sequence to the camera"); + + /* Only serial connections need to be initialized. */ + if (camera->port->type != GP_PORT_SERIAL) + return GP_OK; + + /* + * It seems that the initialization sequence needs to be sent at + * 19200. + */ + CHECK (gp_port_get_settings (camera->port, &settings)); + if (settings.serial.speed != 19200) { + settings.serial.speed = 19200; + CHECK (gp_port_set_settings (camera->port, settings)); + } + CHECK (gp_port_set_pin (camera->port, GP_PIN_DTR, GP_LEVEL_HIGH)); + + packet[0] = NUL; + + while (1) { + + /* Send NUL */ + CHECK (sierra_write_packet (camera, (char *)packet, context)); + + /* Read the response */ + ret = sierra_read_packet (camera, buf, context); + if (ret == GP_ERROR_TIMEOUT) { + if (++r > 2) { + gp_context_error (context, + _("Transmission timed out even after " + "2 retries. Giving up...")); + return (GP_ERROR_TIMEOUT); + } + GP_DEBUG ("Retrying..."); + continue; + } + CHECK (ret); + + switch (buf[0]) { + case SIERRA_PACKET_NAK: + + /* Everything is fine. */ + return GP_OK; + + case SIERRA_PACKET_SESSION_END: + default: + if (++r > 3) { + gp_context_error (context, + _("Got unexpected result " + "0x%x. Please contact " + "%s."), + buf[0], MAIL_GPHOTO_DEVEL); + return GP_ERROR; + } + break; + } + } +} + +static struct { + SierraSpeed speed; + int bit_rate; +} SierraSpeeds[] = { + {SIERRA_SPEED_9600 , 9600}, + {SIERRA_SPEED_19200 , 19200}, + {SIERRA_SPEED_38400 , 38400}, + {SIERRA_SPEED_57600 , 57600}, + {SIERRA_SPEED_115200, 115200}, + {0, 0} +}; + +int +sierra_set_speed (Camera *camera, SierraSpeed speed, GPContext *context) +{ + GPPortSettings settings; + unsigned int i, bit_rate; + + /* Only serial connections have different speeds. */ + if (camera->port->type != GP_PORT_SERIAL) + return GP_OK; + + /* + * Check that the requested speed is valid. We don't want to bug + * the user with our coding errors, therefore if the requested + * speed is invalid, we use 19200. + */ + for (i = 0; SierraSpeeds[i].bit_rate; i++) + if (SierraSpeeds[i].speed == speed) + break; + if (SierraSpeeds[i].bit_rate) + bit_rate = SierraSpeeds[i].bit_rate; + else { + GP_DEBUG ("Invalid speed %i. Using %i (19200, default).", + speed, SIERRA_SPEED_19200); + speed = SIERRA_SPEED_19200; + bit_rate = 19200; + } + + /* + * Check if we need to change the speed or if we are currently + * using the requested speed. The reason why we are doing that is + * that (at least some) cameras reject the request for a speed if + * they are currently operating at that speed. + */ + CHECK (gp_port_get_settings (camera->port, &settings)); + if (settings.serial.speed == bit_rate) + return GP_OK; + + /* + * Tell the camera about the new speed. Note that a speed change + * automatically starts a new session. + */ + GP_DEBUG ("Setting speed to %i (%i bps)", speed, bit_rate); + camera->pl->first_packet = 1; + CHECK (sierra_set_int_register (camera, 17, speed, context)); + + /* Now switch the port to the new speed. */ + CHECK (gp_port_get_settings (camera->port, &settings)); + settings.serial.speed = bit_rate; + CHECK (gp_port_set_settings (camera->port, settings)); + CHECK (gp_port_set_pin (camera->port, GP_PIN_DTR, GP_LEVEL_HIGH)); + + usleep (10 * 1000); + return GP_OK; +} + +int sierra_sub_action (Camera *camera, SierraAction action, int sub_action, + GPContext *context) +{ + char buf[SIERRA_PACKET_SIZE]; + + CHECK (sierra_build_packet (camera, SIERRA_PACKET_COMMAND, 0, 3, buf)); + buf[4] = 0x02; + buf[5] = action; + buf[6] = sub_action; + + GP_DEBUG ("sierra_sub_action: action %d, sub action %d", action, + sub_action); + CHECK (sierra_transmit_ack (camera, buf, context)); + GP_DEBUG ("Waiting for acknowledgement..."); + CHECK (sierra_read_packet_wait (camera, buf, context)); + + switch (buf[0]) { + case ACK: /* reported on capture on Olympus 4040 */ + case SIERRA_PACKET_ENQ: + return (GP_OK); + default: + gp_context_error (context, _("Received unexpected answer " + "(%i). Please contact %s."), buf[0], MAIL_GPHOTO_DEVEL); + return (GP_ERROR); + } + + return GP_OK; +} + +static int +sierra_action (Camera *camera, SierraAction action, GPContext *context) +{ + return(sierra_sub_action (camera, action, 0, context)); +} + +int +sierra_set_int_register (Camera *camera, int reg, int value, + GPContext *context) +{ + char p[4096]; + + GP_DEBUG ("sierra_set_int_register: register %i value %i", reg, value); + + CHECK (sierra_build_packet (camera, SIERRA_PACKET_COMMAND, 0, + (value < 0) ? 2 : 6, p)); + + /* Fill in the data */ + p[4] = 0x00; + p[5] = reg; + if (value >= 0) { + p[6] = (value) & 0xff; + p[7] = (value>>8) & 0xff; + p[8] = (value>>16) & 0xff; + p[9] = (value>>24) & 0xff; + } + + /* Send packet */ + CHECK (sierra_transmit_ack (camera, p, context)); + + return GP_OK; +} + +int sierra_get_int_register (Camera *camera, int reg, int *value, GPContext *context) +{ + int r = 0; + unsigned char p[4096], buf[SIERRA_PACKET_SIZE]; + + GP_DEBUG ("sierra_get_int_register: register 0x%02x...", reg); + + /* Build and send the packet. */ + CHECK (sierra_build_packet (camera, SIERRA_PACKET_COMMAND, 0, 2, (char *)p)); + p[4] = 0x01; + p[5] = reg; + CHECK (sierra_write_packet (camera, (char *)p, context)); + + while (1) { + + /* Read the response */ + buf[0] = 0; + CHECK (sierra_read_packet_wait (camera, (char *)buf, context)); + GP_DEBUG ("Successfully read packet. Interpreting result " + "(0x%02x)", buf[0]); + switch (buf[0]) { + case SIERRA_PACKET_INVALID: + gp_context_error (context, _("Could not get " + "register %i. Please contact " + "%s."), reg, MAIL_GPHOTO_DEVEL); + return GP_ERROR; + case SIERRA_PACKET_DATA_END: + r = ((unsigned char) buf[4]) + + ((unsigned char) buf[5] * 256) + + ((unsigned char) buf[6] * 65536) + + ((unsigned char) buf[7] * 16777216); + *value = r; + GP_DEBUG ("Value of register 0x%02x: 0x%02x. ", reg, r); + CHECK (sierra_write_ack (camera, context)); + GP_DEBUG ("Read value of register 0x%02x and wrote " + "acknowledgement. Returning.", reg); + return GP_OK; + + case SIERRA_PACKET_SESSION_END: + case SIERRA_PACKET_SESSION_ERROR: + case SIERRA_PACKET_WRONG_SPEED: + if (++r > 2) { + gp_context_error (context, _("Too many " + "retries failed.")); + return GP_ERROR; + } + + /* + * The camera has ended this session and + * reverted the speed back to 19200. Reinitialize + * the connection and resend the packet. We use the + * default speed from now on. + */ + CHECK (sierra_init (camera, context)); + CHECK (sierra_set_speed (camera, SIERRA_SPEED_19200, + context)); + CHECK (sierra_write_packet (camera, (char *)p, context)); + + break; + + default: + if (++r > 2) { + gp_context_error (context, _("Too many " + "retries failed.")); + return GP_ERROR; + } + + /* Tell the camera to send again. */ + CHECK (sierra_write_nak (camera, context)); + break; + } + } + + return GP_ERROR_IO; +} + +int +sierra_set_string_register (Camera *camera, int reg, const char *s, + long int length, GPContext *context) +{ + + char packet[4096]; + char type; + long int x=0; + int seq=0, size=0; + int do_percent; + unsigned int id = 0; + + GP_DEBUG ("sierra_set_string_register: reg %i, value '%s'", reg, s); + + /* Make use of the progress bar when the packet is "large enough" */ + if (length > MAX_DATA_FIELD_LENGTH) { + do_percent = 1; + /* + * This code can lead to recursive calls in gtkam - the + * main problem is when thumbnails are being downloaded, + * gtkam tries to download another thumbnail when + * gp_context_progress_update() is called. There are also + * other areas in gtkam that can recursively call into + * this function. + */ + id = gp_context_progress_start (context, length, + _("Sending data...")); + } + else + do_percent = 0; + + while (x < length) { + if (x == 0) { + type = SIERRA_PACKET_COMMAND; + size = (length + 2 - x) > MAX_DATA_FIELD_LENGTH + ? MAX_DATA_FIELD_LENGTH : length + 2; + } else { + size = (length - x) > MAX_DATA_FIELD_LENGTH + ? MAX_DATA_FIELD_LENGTH : length-x; + if (x + size < length) + type = SIERRA_PACKET_DATA; + else + type = SIERRA_PACKET_DATA_END; + } + CHECK (sierra_build_packet (camera, type, seq, size, packet)); + + if (type == SIERRA_PACKET_COMMAND) { + packet[4] = 0x03; + packet[5] = reg; + memcpy (&packet[6], &s[x], size-2); + x += size - 2; + } else { + packet[1] = seq++; + memcpy (&packet[4], &s[x], size); + x += size; + } + + /* Transmit packet */ + CHECK (sierra_transmit_ack (camera, packet, context)); + if (do_percent) + gp_context_progress_update (context, id, x); + } + if (do_percent) + gp_context_progress_stop (context, id); + + return GP_OK; +} + +int sierra_get_string_register (Camera *camera, int reg, int fnumber, + CameraFile *file, unsigned char *b, + unsigned int *b_len, GPContext *context) +{ + unsigned char p[34816]; + unsigned int packlength, total = (b_len) ? *b_len : 0; + int retries, r; + unsigned int min_progress_bytes; + static int in_function = 0; + unsigned int id = 0; + + GP_DEBUG ("sierra_get_string_register: reg %i, file number %i, " + " total %d, flags 0x%x", reg, fnumber, total, + camera->pl->flags); + + if (in_function != 0) { + gp_context_error (context, _("recursive calls are not" + " supported by the sierra driver! Please contact" + " %s."), MAIL_GPHOTO_DEVEL); + return GP_ERROR; + } + in_function = 1; + + /* Set the current picture number */ + if (fnumber >= 0) + CHECK (sierra_set_int_register (camera, 4, fnumber, context)); + + /* Build and send the request */ + CHECK (sierra_build_packet (camera, SIERRA_PACKET_COMMAND, 0, 2, (char *)p)); + /* + * If the extended protocol is enabled, use code 0x06 so we can send + * and receive 32k size packages, otherwise code 0x04 is used and + * we have 2k size packages. + */ + if (camera->pl->flags & SIERRA_EXT_PROTO) { + p[4] = 0x06; + min_progress_bytes = 32 * 1024; + } else { + p[4] = 0x04; + min_progress_bytes = 2 * 1024; + } + p[5] = reg; + CHECK (sierra_write_packet (camera, (char *)p, context)); + + if (file && total > min_progress_bytes) { + id = gp_context_progress_start (context, total, _("Downloading data...")); + } + + /* Read all the data packets */ + *b_len = 0; + retries = 0; + do { + + /* Read one packet and retry on timeout. */ + r = sierra_read_packet (camera, p, context); + if (r == GP_ERROR_TIMEOUT) { + if (++retries > RETRIES) { + in_function = 0; + return (r); + } + GP_DEBUG ("Timeout! Retrying (%i of %i)...", + retries, RETRIES); + CHECK (sierra_write_nak (camera, context)); + continue; + } + CHECK (r); + + GP_DEBUG ("sierra_get_string_register p[0] is %d", p[0]); + switch (p[0]) { + case SIERRA_PACKET_INVALID: + gp_context_error (context, _("Could not get " + "string register %i. Please contact " + "%s."), reg, MAIL_GPHOTO_DEVEL); + in_function = 0; + return GP_ERROR; + default: + break; + } + CHECK (sierra_write_ack (camera, context)); + + packlength = p[2] | (p[3] << 8); + GP_DEBUG ("Packet length: %d", packlength); + + if (b) + memcpy (&b[*b_len], &p[4], packlength); + *b_len += packlength; + + if (file) { + CHECK (gp_file_append (file, (char *)&p[4], packlength)); + if (total > min_progress_bytes) + gp_context_progress_update (context, id, *b_len); + } + + } while (p[0] != SIERRA_PACKET_DATA_END); + if (file && total > min_progress_bytes) + gp_context_progress_stop (context, id); + + GP_DEBUG ("sierra_get_string_register: completed OK, *b_len %d", + *b_len); + in_function = 0; + return GP_OK; +} + +int +sierra_delete_all (Camera *camera, GPContext *context) +{ + CHECK (sierra_action (camera, SIERRA_ACTION_DELETE_ALL, context)); + + return GP_OK; +} + +int +sierra_delete (Camera *camera, int picture_number, GPContext *context) +{ + /* Tell the camera which picture to delete and execute command. */ + CHECK (sierra_set_int_register (camera, 4, picture_number, context)); + CHECK (sierra_action (camera, SIERRA_ACTION_DELETE, context)); + + return GP_OK; +} + +int +sierra_end_session (Camera *camera, GPContext *context) +{ + CHECK (sierra_action (camera, SIERRA_ACTION_END, context)); + + return GP_OK; +} + +int +sierra_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + unsigned int size; + + /* Send to the camera the capture request and wait + for the completion */ + CHECK (sierra_action (camera, SIERRA_ACTION_PREVIEW, context)); + + /* Retrieve the preview and set the MIME type */ + CHECK (sierra_get_int_register (camera, 12, (int *)&size, context)); + CHECK (sierra_get_string_register (camera, 14, 0, file, NULL, &size, + context)); + CHECK (gp_file_set_mime_type (file, GP_MIME_JPEG)); + + return GP_OK; +} + +int +sierra_capture (Camera *camera, CameraCaptureType type, + CameraFilePath *filepath, GPContext *context) +{ + int n, r; + unsigned int len = 0; + char filename[128]; + char *folder; + int timeout; + + GP_DEBUG ("* sierra_capture"); + + /* We can only capture images */ + if (type != GP_CAPTURE_IMAGE) + return GP_ERROR_NOT_SUPPORTED; + + /* + * This is a non-fatal check if a memory card is present. Some + * cameras don't understand this command and error out here. + * Since some cameras do not like it at all, do not send it for those. + */ + if (!(camera->pl->flags & SIERRA_NO_51)) { + r = sierra_get_int_register (camera, 51, &n, context); + if ((r >= 0) && (n == 1)) { + gp_context_error (context, _("No memory card present")); + return GP_ERROR_NOT_SUPPORTED; + } + } + + /* + * Raise the timeout before the capture, since it can take longer, + * the shutter speed alone could push us over 10 seconds. + */ + CHECK (gp_port_get_timeout (camera->port, &timeout)); + CHECK (gp_port_set_timeout (camera->port, 20000)); /* 20 seconds */ + /* Send to the camera the capture request and wait + for the completion */ + CHECK (sierra_action (camera, SIERRA_ACTION_CAPTURE, context)); + CHECK (gp_port_set_timeout (camera->port, timeout)); + + if (filepath != NULL) { + /* + * After the picture is taken, register 4 is set to the + * current picture. + */ + GP_DEBUG ("Getting picture number."); + r = sierra_get_int_register (camera, 4, &n, context); + if (r == GP_OK) { + GP_DEBUG ("Getting filename of file %i.", n); + } + /* + * We need to tell the frontend where the new image can be + * found. Unfortunatelly, we can only figure out the + * filename. Therefore, reset the CameraFilesystem and let + * it search for the filename. + * + * If you know how to figure out where the image gets + * saved, please submit a patch. + * + * Not that some cameras that don't support filenames will + * return 8 blanks instead of reporting an error. + * + * Some newer cameras (Nikon*) do not return register 4, so + * ignore errors from that. + */ + CHECK (sierra_get_string_register (camera, 79, 0, NULL, + (unsigned char *)filename, + &len, context)); + if ((len <= 0) || !strcmp (filename, " ")) + snprintf (filename, sizeof (filename), "P101%04i.JPG", n); + GP_DEBUG ("... done ('%s')", filename); + CHECK (gp_filesystem_reset (camera->fs)); + CHECK (gp_filesystem_get_folder (camera->fs, filename, + &folder, context)); + strncpy (filepath->folder, folder, sizeof (filepath->folder)); + strncpy (filepath->name, filename, sizeof (filepath->name)); + } + + GP_DEBUG ("* sierra_capture completed OK"); + return GP_OK; +} + +int sierra_upload_file (Camera *camera, CameraFile *file, GPContext *context) +{ + const char *data; + long unsigned int data_size; + + /* Put the "magic spell" in register 32 */ + CHECK (sierra_set_int_register (camera, 32, 0x0FEC000E, context)); + + /* Upload the file */ + CHECK (gp_file_get_data_and_size (file, &data, &data_size)); + CHECK (sierra_set_string_register (camera, 29, data, data_size, context)); + + /* Send command to order the transfer into NVRAM and wait + for the completion */ + CHECK (sierra_action (camera, SIERRA_ACTION_UPLOAD, context)); + + return GP_OK; +} + +static unsigned int +get_int (const unsigned char b[]) +{ + return (b[0] | (b[1] << 8) | (b[2] << 16) | (b[3] << 24)); +} + +int sierra_get_pic_info (Camera *camera, unsigned int n, + SierraPicInfo *pic_info, GPContext *context) +{ + unsigned char buf[1024]; + unsigned int buf_len = 0; + int value, audio_info[8]; + + CHECK (sierra_get_string_register (camera, 47, n, NULL, buf, + &buf_len, context)); + if (buf_len == 0) { + /* + * Many (older) serial cameras seem to return 0 bytes back + * and effectively do not support register 47. Try using + * other registers to get the data. + * + * Don't fail on error so unsupported or semi-broken + * behaviour does not prevent downloads or other use. + */ + memset(pic_info, 0, sizeof(*pic_info)); + if (sierra_get_size(camera, 12, n, &value, context) == GP_OK) { + pic_info->size_file = value; + } + if (sierra_get_size(camera, 13, n, &value, context) == GP_OK) { + pic_info->size_preview = value; + } + /* + * If the following hangs any cameras, just delete this + * code, and assume that cameras with audio will get audio + * file information via reg 47. + * + * Note that the value variable as used here is number of + * bytes transferred, not the returned data. Some + * unsupported sierra commands return zero bytes. + */ + if ((sierra_get_string_register (camera, 43, n, NULL, + (unsigned char *) &audio_info, + (unsigned int *)&value, + context) == GP_OK) && (value != 0)) { + pic_info->size_audio = audio_info[0]; + } + if (sierra_get_int_register (camera, 39, &value, context) + == GP_OK) { + pic_info->locked = value; + } else { + /* + * Default to marking as locked (not-deletable). + * It looks the file can still be deleted if the + * file is not really locked. + */ + pic_info->locked = SIERRA_LOCKED_YES; + } + return (GP_OK); + } + + if (buf_len != 32) { + gp_context_error (context, _("Expected 32 bytes, got %i. " + "Please contact %s."), buf_len, MAIL_GPHOTO_DEVEL); + return (GP_ERROR_CORRUPTED_DATA); + } + + pic_info->size_file = get_int (buf); + pic_info->size_preview = get_int (buf + 4); + pic_info->size_audio = get_int (buf + 8); + pic_info->resolution = get_int (buf + 12); + pic_info->locked = get_int (buf + 16); + pic_info->date = get_int (buf + 20); + pic_info->animation_type = get_int (buf + 28); + + /* Make debugging easier */ + GP_DEBUG ("sierra_get_pic_info "); + GP_DEBUG ("File size: %d", pic_info->size_file); + GP_DEBUG ("Preview size: %i", pic_info->size_preview); + GP_DEBUG ("Audio size: %i", pic_info->size_audio); + GP_DEBUG ("Resolution: %i", pic_info->resolution); + GP_DEBUG ("Locked: %i", pic_info->locked); + GP_DEBUG ("Date: %i", pic_info->date); + GP_DEBUG ("Animation type: %i", pic_info->animation_type); + + return GP_OK; +} + +int sierra_set_locked (Camera *camera, unsigned int n, SierraLocked locked, + GPContext *context) +{ + CHECK (sierra_set_int_register (camera, 4, n, context)); + CHECK (sierra_sub_action (camera, SIERRA_ACTION_PROT_STATE, + (int) locked, context)); + return GP_OK; +} + +int sierra_get_size (Camera *camera, int reg, unsigned int n, int *value, + GPContext *context) +{ + CHECK (sierra_set_int_register (camera, 4, n, context)); + CHECK (sierra_get_int_register (camera, reg, value, context)); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/library.h new file mode 100644 index 00000000..bd87bb48 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/library.h @@ -0,0 +1,154 @@ +/* library.h + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __LIBRARY_H__ +#define __LIBRARY_H__ + +#include + +#define TIMEOUT 2000 + +#define CHECK_STOP(camera,result) \ +{ \ + int res = (result); \ + \ + if (res < 0) { \ + GP_DEBUG ("Operation failed in %s (%i)!", __FUNCTION__, res); \ + camera_stop (camera, context); \ + return (res); \ + } \ +} + +#define CHECK_STOP_FREE(camera,result) \ +{ \ + int res = (result); \ + \ + if (res < 0) { \ + GP_DEBUG ("Operation failed in %s (%i)!", __FUNCTION__, res); \ + camera_stop (camera, context); \ + free (camera->pl); \ + camera->pl = NULL; \ + return (res); \ + } \ +} + +#define CHECK_FREE(camera,result) \ +{ \ + int res = (result); \ + \ + if (res < 0) { \ + GP_DEBUG ("Operation failed in %s (%i)!", __FUNCTION__, res); \ + free (camera->pl); \ + camera->pl = NULL; \ + return (res); \ + } \ +} + +enum _SierraAction { + SIERRA_ACTION_DELETE_LAST_PIC = 0x00, + SIERRA_ACTION_DELETE_ALL = 0x01, + SIERRA_ACTION_CAPTURE = 0x02, + SIERRA_ACTION_END = 0x04, + SIERRA_ACTION_PREVIEW = 0x05, + SIERRA_ACTION_TESTING = 0x06, + SIERRA_ACTION_DELETE = 0x07, + SIERRA_ACTION_LCD_MODE = 0x08, + SIERRA_ACTION_PROT_STATE = 0x09, + SIERRA_ACTION_UPLOAD = 0x0b, + SIERRA_ACTION_LCD_TEST = 0x0c, +}; +typedef enum _SierraAction SierraAction; + +typedef enum { + SIERRA_LOCKED_NO = 0x00, + SIERRA_LOCKED_YES = 0x01 +} SierraLocked; + +typedef struct _SierraPicInfo SierraPicInfo; +struct _SierraPicInfo { + unsigned int size_file; + unsigned int size_preview; + unsigned int size_audio; + unsigned int resolution; + SierraLocked locked; + unsigned int date; + unsigned int animation_type; +}; +int sierra_get_pic_info (Camera *camera, unsigned int n, + SierraPicInfo *pic_info, GPContext *context); +int sierra_set_locked (Camera *camera, unsigned int n, SierraLocked locked, + GPContext *context); + +/* Communications functions */ +enum _SierraSpeed { + SIERRA_SPEED_9600 = 1, + SIERRA_SPEED_19200 = 2, + SIERRA_SPEED_38400 = 3, + SIERRA_SPEED_57600 = 4, + SIERRA_SPEED_115200 = 5 +}; +typedef enum _SierraSpeed SierraSpeed; +int sierra_set_speed (Camera *camera, SierraSpeed speed, + GPContext *context); +int sierra_end_session (Camera *camera, GPContext *context); +int sierra_init (Camera *camera, GPContext *context); +int sierra_get_memory_left (Camera *camera, int *memory, + GPContext *context); +int sierra_check_battery_capacity (Camera *camera, GPContext *context); +int sierra_sub_action (Camera *camera, SierraAction action, + int sub_action, GPContext *context); +int sierra_set_int_register (Camera *camera, int reg, int value, + GPContext *context); +int sierra_get_int_register (Camera *camera, int reg, int *value, + GPContext *context); +int sierra_set_string_register (Camera *camera, int reg, const char *s, + long int length, GPContext *context); +int sierra_get_string_register (Camera *camera, int reg, int file_number, + CameraFile *file, + unsigned char *b, unsigned int *b_len, + GPContext *context); +int sierra_delete (Camera *camera, int picture_number, + GPContext *context); +int sierra_delete_all (Camera *camera, GPContext *context); +int sierra_capture (Camera *camera, CameraCaptureType type, + CameraFilePath *filepath, + GPContext *context); +int sierra_capture_preview (Camera *camera, CameraFile *file, + GPContext *context); +int sierra_change_folder (Camera *camera, const char *folder, + GPContext *context); +int sierra_get_size (Camera *camera, int reg, unsigned int n, + int *value, GPContext *context); +int camera_start (Camera *camera, GPContext *context); +int camera_stop (Camera *camera, GPContext *context); + +/* Filesystem functions */ +int sierra_list_files (Camera *camera, const char *folder, CameraList *list, GPContext *context); +int sierra_list_folders (Camera *camera, const char *folder, CameraList *list, GPContext *context); +int sierra_get_picture_folder (Camera *camera, char **folder); +int sierra_upload_file (Camera *camera, CameraFile *file, + GPContext *context); + +/* Camera desc functions in sierra-desc.c */ +int camera_set_config_cam_desc (Camera *camera, CameraWidget *window, + GPContext *context); +int camera_get_config_cam_desc (Camera *camera, CameraWidget **window, + GPContext *context); +#endif /* __LIBRARY_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/nikon-coolpix2500.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/nikon-coolpix2500.txt new file mode 100644 index 00000000..3114f727 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/nikon-coolpix2500.txt @@ -0,0 +1,133 @@ +/Camera Configuration/Picture Settings/resolution + Label: Resolution plus Size + Type: RADIO + Current: Normal-UXGA + Choice: 0 Basic-VGA + Choice: 1 Normal-VGA + Choice: 2 Fine-VGA + Choice: 3 Basic-SXGA + Choice: 4 Normal-SXGA + Choice: 5 Fine-SXGA + Choice: 6 Basic-XGA + Choice: 7 Normal-XGA + Choice: 8 Fine-XGA + Choice: 9 Basic-UXGA + Choice: 10 Normal-UXGA + Choice: 11 Fine-UXGA +/Camera Configuration/Picture Settings/color + Label: Color Mode + Type: RADIO + Current: Color + Choice: 0 Color + Choice: 1 B/W +/Camera Configuration/Picture Settings/flash + Label: Flash Settings + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Force + Choice: 2 Off + Choice: 3 Anti-redeye + Choice: 4 Slow-sync +/Camera Configuration/Picture Settings/image-adj + Label: Image Adjustment + Type: RADIO + Current: Normal + Choice: 0 Auto + Choice: 1 Normal + Choice: 2 Contrast+ + Choice: 3 Contrast- + Choice: 4 Brightness+ + Choice: 5 Brightness- +/Camera Configuration/Picture Settings/whitebalance + Label: White Balance + Type: RADIO + Current: Auto + Choice: 0 Auto + Choice: 1 Fine + Choice: 2 Incandescent + Choice: 3 Fluorescent + Choice: 4 Flash + Choice: 5 Preset + Choice: 6 Cloudy +/Camera Configuration/Picture Settings/focus-mode + Label: Focus Mode + Type: RADIO + Current: Normal + Choice: 0 Macro + Choice: 1 Normal + Choice: 2 Infinity +/Camera Configuration/Picture Settings/exp + Label: Exposure Compensation + Type: MENU + Current: 0 + Choice: 0 -2.0 + Choice: 1 -1.7 + Choice: 2 -1.3 + Choice: 3 -1.0 + Choice: 4 -0.7 + Choice: 5 -0.3 + Choice: 6 0 + Choice: 7 +0.3 + Choice: 8 +0.7 + Choice: 9 +1.0 + Choice: 10 +1.3 + Choice: 11 +1.7 + Choice: 12 +2.0 +/Camera Configuration/Picture Settings/exp-meter + Label: Exposure Metering + Type: RADIO + Current: 0 (unknown) + Choice: 0 Center-Weighted + Choice: 1 Spot + Choice: 2 Matrix + Choice: 3 Spot-AF + Choice: 4 0 (unknown) +/Camera Configuration/Picture Settings/zoom + Label: Zoom (in millimeters) + Type: RANGE + Current: 5.6 + Bottom: 8 + Top: 20 + Step: 0.1 +/Camera Configuration/Picture Settings/dzoom + Label: Digital Zoom + Type: RADIO + Current: off + Choice: 0 off + Choice: 1 on +/Camera Configuration/Picture Settings/ael + Label: Auto exposure lock + Type: RADIO + Current: off + Choice: 0 off + Choice: 1 on +/Camera Configuration/Camera Settings/date-time + Label: Date and time (GMT) + Type: DATE + Current: -1 + Printable: Thu Jan 1 00:59:59 1970 +/Camera Configuration/Camera Settings/op-mode + Label: Operation Mode + Type: RADIO + Current: Off + Choice: 0 Off + Choice: 1 Record + Choice: 2 Play + Choice: 3 Preview Thumbnail + Choice: 4 Next + Choice: 5 Previous +/Camera Configuration/Camera Settings/lcd-brightness + Label: LCD Brightness + Type: RANGE + Current: 4 + Bottom: 0 + Top: 7 + Step: 1 +/Camera Configuration/Camera Settings/language + Label: Language + Type: RADIO + Current: German + Choice: 0 English + Choice: 1 French + Choice: 2 German diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/nikon-desc.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/nikon-desc.c new file mode 100644 index 00000000..a456e017 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/nikon-desc.c @@ -0,0 +1,759 @@ +/* nikon_desc.c: + * + * Copyright 2002 Patrick Mansfield + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include +#include <_stdint.h> +#include +#include +#include +#include +#include "sierra.h" +#include "library.h" +#include "sierra-desc.h" + +/* + * Camera descriptor for Nikon Coolpix 880 (cp880). + */ + +/* + * Notes: + * + * The variable "value" in a ValueNameType is the first element of + * the name/value union, and so it is the default value initialized. + * + * To init to a range, use: + * { .range = { 100.1, 2000.0, 10 } }, NULL + * + * Casts are used to avoid warnings about using a const. + * + * Only registers that are used by the camera configuration are listed + * here (for use in the get/set config functions); no settings, capture or + * other data is stored here. + */ + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +/* + * Register 1: resolution/size. + */ +static const ValueNameType cp880_reg_01_val_names[] = { + /* + * These values suck. why didn't they make these maskable, or use + * a nibble for each part? Just use a the combined resolution + size. + * It would be good to try and break these into two selections. + */ + { { 0x01 }, "Basic-VGA" }, /* 640 x 480 */ + { { 0x02 }, "Normal-VGA" }, + { { 0x03 }, "Fine-VGA" }, + { { 0x07 }, "Basic-XGA" }, /* 1024 x 768 */ + { { 0x08 }, "Normal-XGA" }, + { { 0x09 }, "Fine-XGA" }, + { { 0x11 }, "Basic-Full" }, + { { 0x12 }, "Normal-Full" }, + { { 0x13 }, "Fine-Full" }, + { { 0x23 }, "Hi-Full" }, +}; +static const RegisterDescriptorType cp880_reg_01[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "resolution", N_("Resolution plus Size"), + VAL_NAME_INIT (cp880_reg_01_val_names) + } +}; + +/* + * Register 1: resolution/size. + */ +static const ValueNameType cp2500_reg_01_val_names[] = { + /* + * These values suck. why didn't they make these maskable, or use + * a nibble for each part? Just use a the combined resolution + size. + * It would be good to try and break these into two selections. + */ + { { 0x01 }, "Basic-VGA" }, /* 640 x 480 */ + { { 0x02 }, "Normal-VGA" }, + { { 0x03 }, "Fine-VGA" }, + + { { 0x04 }, "Basic-SXGA" }, /* 1280 x 1024 */ + { { 0x05 }, "Normal-SXGA" }, + { { 0x06 }, "Fine-SXGA" }, + + { { 0x07 }, "Basic-XGA" }, /* 1024 x 768 */ + { { 0x08 }, "Normal-XGA" }, + { { 0x09 }, "Fine-XGA" }, + + { { 0x0a }, "Basic-UXGA" }, /* 1600 x 1200 aka 2 Megapixel */ + { { 0x0b }, "Normal-UXGA" }, + { { 0x0c }, "Fine-UXGA" }, + +}; +static const RegisterDescriptorType cp2500_reg_01[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "resolution", N_("Resolution plus Size"), + VAL_NAME_INIT (cp2500_reg_01_val_names) + } +}; + +/* + * Register 2: Date and time. + */ +static const ValueNameType cp880_reg_02_val_names[] = { + /* + * Dummy value, since we need at least one of these to + * display anything. + */ + { { 0x00 }, "Dummy" }, +}; +static const RegisterDescriptorType cp880_reg_02[] = { + { + GP_WIDGET_DATE, GP_REG_NO_MASK, + "date-time", N_("Date and time (GMT)"), + VAL_NAME_INIT (cp880_reg_02_val_names) + } +}; + +/* + * Register 3: shutter speed, cp880 must be in manual mode for this to + * work. + */ +#ifdef RANGE_FOR_SHUTTER +static const ValueNameType cp880_reg_03_val_names[] = { + { + { .range = { 0, 8000000 } }, NULL + } +}; +static const RegisterDescriptorType cp880_reg_03[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "shutter", N_("Shutter Speed microseconds (0 auto)"), + VAL_NAME_INIT (cp880_reg_03_val_names) + } +}; +#endif +static const ValueNameType cp880_reg_03_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1000 }, "1/1000" }, + { { 2000 }, "1/500" }, + { { 4000 }, "1/250" }, + { { 8000 }, "1/125" }, + { { 16666 }, "1/60" }, + { { 33333 }, "1/30" }, + { { 66666 }, "1/15" }, + { { 125000 }, "1/8" }, + { { 250000 }, "1/4" }, + { { 500000 }, "1/2" }, + { { 1000000 }, "1" }, + { { 2000000 }, "2" }, + { { 3000000 }, "3" }, + { { 4000000 }, "4" }, + { { 5000000 }, "5" }, + { { 6000000 }, "6" }, + { { 7000000 }, "7" }, + { { 8000000 }, "8" }, + /* { { -20 }, "bulb?" }, */ + +}; +static const RegisterDescriptorType cp880_reg_03[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "shutter", N_("Shutter Speed (in seconds)"), + VAL_NAME_INIT (cp880_reg_03_val_names) + } +}; + +/* + * Register 5: aperture settings (f-stop) + */ +static const ValueNameType cp880_reg_05_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1 }, N_("Low") }, + { { 2 }, N_("Medium") }, + /* { { 4 }, N_("High") }, not on a cp880 */ +}; +static const RegisterDescriptorType cp880_reg_05[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "aperture", N_("Aperture Settings"), + VAL_NAME_INIT (cp880_reg_05_val_names) + } +}; + +/* + * Register 6: color mode (not tested on cp880) + */ +static const ValueNameType cp880_reg_06_val_names[] = { + { { 1 }, N_("Color") }, + { { 2 }, N_("B/W") }, +}; +static const RegisterDescriptorType cp880_reg_06[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "color", N_("Color Mode"), + VAL_NAME_INIT (cp880_reg_06_val_names) + } +}; + +/* + * Register 7: flash settings + */ +static const ValueNameType cp880_reg_07_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1 }, N_("Force") }, + { { 2 }, N_("Off") }, + { { 3 }, N_("Anti-redeye") }, + { { 4 }, N_("Slow-sync") }, +}; +static const RegisterDescriptorType cp880_reg_07[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "flash", N_("Flash Settings"), + VAL_NAME_INIT (cp880_reg_07_val_names) + } +}; + +/* + * Register 19: Image adjustment. + */ +static const ValueNameType cp880_reg_19_val_names[] = { + { { 5 }, N_("Auto") }, + { { 0 }, N_("Normal") }, /* also 0 if chose b+w */ + { { 1 }, N_("Contrast+") }, /* cp880 more contrast */ + { { 2 }, N_("Contrast-") }, /* cp880 less contrast */ + { { 3 }, N_("Brightness+") }, /* cp880 lighten image */ + { { 4 }, N_("Brightness-") }, /* cp880 darken image */ +}; +static const RegisterDescriptorType cp880_reg_19[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "image-adj", N_("Image Adjustment"), /* brightness/contrast */ + VAL_NAME_INIT (cp880_reg_19_val_names) + } +}; + +/* + * Register 20: white balance. + * + * Could not determine how the camera does the gradation in settings - + * such as fine +-1,2,3, and FL1 FL2 FL3. Dumping all registers (1 to 90) + * shows no changes when going (for example) from fine +3 to -3. + * + * Setting these via the camera to a +3/2/1 etc, and then changing them + * via gphoto2 to another value changes the "type" but the value +3/2/1 is + * the same, so there is some other register or setting that changes the + * range of these values. + * + * It appears this needs the sierra extended protocol to be complete. + */ +static const ValueNameType cp880_reg_20_val_names[] = { + { { 0x00 }, N_("Auto") }, + { { 0x01 }, N_("Fine") }, /* fine +3, +2, ... -3 */ + { { 0x02 }, N_("Incandescent") }, /* incan +3 ... -3 */ + { { 0x03 }, N_("Fluorescent") }, /* FL3, FL2, and FL1 */ + { { 0x05 }, N_("Flash") }, /* speedlight/flash +3 ... -3 */ + { { 0x06 }, N_("Preset") }, /* preset automatically by camera, prob range */ + { { 0xff }, N_("Cloudy") }, /* cloudy +3 ... -3 */ +}; +static const RegisterDescriptorType cp880_reg_20[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "whitebalance", N_("White Balance"), + VAL_NAME_INIT (cp880_reg_20_val_names) + } +}; + +#ifdef REG_30_FAILS +/* + * Register 30: LED mode, write only. Writing 0 and 1 do nothing, 2 + * retracts the lens and causes an error. + */ +static const ValueNameType cp880_reg_30_val_names[] = { + { { 0x00 }, N_("Off") }, + { { 0x01 }, N_("On") }, + { { 0x02 }, N_("Blink") }, +}; +static const RegisterDescriptorType cp880_reg_30[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "led", N_("LED Mode"), + VAL_NAME_INIT (cp880_reg_30_val_names) + } +}; +#endif + +/* + * Register 33: focus mode. Can change these, but macro mode does not work + * correctly - it does not zoom in or focus (macro-mode focus) correctly. + * And, setting infinity using the cp880 also turns off the flash, here it + * does not turn off the flash. + */ +static const ValueNameType cp880_reg_33_val_names[] = { + { { 0x01 }, N_("Macro") }, + { { 0x02 }, N_("Normal") }, + { { 0x03 }, N_("Infinity") }, +}; +static const RegisterDescriptorType cp880_reg_33[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "focus-mode", N_("Focus Mode"), + VAL_NAME_INIT (cp880_reg_33_val_names) + } +}; + +/* + * Register 34: operation mode. This is only readable, an action with + * subaction is required to change the mode. + * + * Note that on a cp880, sometimes the play mode ends up with a messed up + * display or an error message, powering the camera off and on seems to + * fix the problem. + * + * The use of next and previous should be part of a separate + * interface, such that a user can continuosly press next or previous to + * cycle through the images (while the camera is in play mode). + * + * Use command 2 (via sierra_sub_action) with action + * SIERRA_ACTION_LCD_MODE (8), with a sub-action below to change the mode. + * So, read reg 34 to figure out the mode, then use sierra_action to + * change the mode - the sierra action needs another arg to set the + * secondary action for this. The register 34 values match those needed to + * change the mode. + * + * Using a register get/set method of CAM_DESC_SUBACTION enables the + * above kluge. + */ +static const ValueNameType cp880_reg_34_val_names[] = { + { { 0x01 }, N_("Off") }, /* turn off lcd while waiting to capture */ + { { 0x02 }, N_("Record") }, /* turn on lcd while waiting to capture */ + { { 0x03 }, N_("Play") }, /* slide-show like mode */ + { { 0x06 }, N_("Preview Thumbnail") }, /* slide-show thumbnail */ + { { 0x07 }, N_("Next") }, /* go to the next image */ + { { 0x08 }, N_("Previous") }, /* go to previous image */ + /* + { { 0x00 }, "unknown 0x00" }, + { { 0x04 }, "unknown 0x04" }, + { { 0x05 }, "unknown 0x05" }, + { { 0x09 }, "unknown 0x09" }, + { { 0x0a }, "unknown 0x0a" }, + { { 0x0b }, "unknown 0x0b" }, + { { 0x0c }, "unknown 0x0c" }, + */ +}; +static const RegisterDescriptorType cp880_reg_34[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "op-mode", N_("Operation Mode"), + VAL_NAME_INIT (cp880_reg_34_val_names) + } +}; + +/* + * Register 35: lcd brightness. + */ +static const ValueNameType cp880_reg_35_val_names[] = { + { { .range = { 0, 7 } }, NULL }, +}; +static const RegisterDescriptorType cp880_reg_35[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "lcd-brightness", N_("LCD Brightness"), + VAL_NAME_INIT (cp880_reg_35_val_names) + } +}; + +/* + * Register 38: lcd auto shut off time, not verified for cp880, unknown + * what the maximum range should be. + */ +static const ValueNameType cp880_reg_38_val_names[] = { + { { .range = { 0, 255 /* XXX? */ } }, NULL }, +}; +static const RegisterDescriptorType cp880_reg_38[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "lcd-auto-shutoff", N_("LCD Auto Shut Off (seconds)"), + VAL_NAME_INIT (cp880_reg_38_val_names) + } +}; + +/* + * Register 53: language setting. On the cp880, can set to japanese, but + * cannot see any change in this register. + * + * It appears this needs the sierra extended protocol to be complete. + */ +static const ValueNameType cp880_reg_53_val_names[] = { + { { 0x03 }, N_("English") }, + { { 0x04 }, N_("French") }, + { { 0x05 }, N_("German") }, + /* { { 0x06 }, "Italian" }, not on cp880 */ + /* { { 0x08 }, "Spanish" }, not on cp880 */ + /* { { 0x0a }, "Dutch" }, not on cp880 */ + /* { { 0xnn }, "Japanese" }, + * + * weird, can set to japanese, but can't see any change in any + * registers; reg 53 is 3 wether it is english or japanese. + */ +}; +static const RegisterDescriptorType cp880_reg_53[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "language", N_("Language"), + VAL_NAME_INIT (cp880_reg_53_val_names) + } +}; + +/* + * Register 69: exposure compensation. + * + * The negative value is properly converted - the camera uses values + * compatible with little endian machine (or it is converted by gphoto2?). + * + * The cp880 sucks here, the register values goes from -20 to 20, but + * the only legal values are -20, -17, -13, ..., -7, -3, 0, 3, 7, ..., 20. + * It doesn't round, and it is too hard to round using a table, so just + * use a pull down menu rather than the more obvious range (slider). + */ +#ifdef RANGE_FOR_EXPOSURE +static const ValueNameType cp880_reg_69_val_names[] = { + { + { .range = { -2.0, 2.0, .1 } }, NULL, + } +}; +static const RegisterDescriptorType cp880_reg_69[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "exp", N_("Exposure Compensation"), + VAL_NAME_INIT (cp880_reg_69_val_names) + } +}; +#endif +static const ValueNameType cp880_reg_69_val_names[] = { + { { -20 }, "-2.0" }, + { { -17 }, "-1.7" }, + { { -13 }, "-1.3" }, + { { -10 }, "-1.0" }, + { { -07 }, "-0.7" }, + { { -03 }, "-0.3" }, + { { 00 }, " 0" }, + { { +03 }, "+0.3" }, + { { +07 }, "+0.7" }, + { { +10 }, "+1.0" }, + { { +13 }, "+1.3" }, + { { +17 }, "+1.7" }, + { { +20 }, "+2.0" }, +}; +static const RegisterDescriptorType cp880_reg_69[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "exp", N_("Exposure Compensation"), + VAL_NAME_INIT (cp880_reg_69_val_names) + } +}; + +/* + * Register 70: exposure meter. + */ +static const ValueNameType cp880_reg_70_val_names[] = { + { { 0x02 }, N_("Center-Weighted") }, + { { 0x03 }, N_("Spot") }, + { { 0x05 }, N_("Matrix") }, + { { 0x06 }, N_("Spot-AF") }, +}; +static const RegisterDescriptorType cp880_reg_70[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "exp-meter", N_("Exposure Metering"), + VAL_NAME_INIT (cp880_reg_70_val_names) + } +}; + +/* + * Register 71: optical zoom value. This does not work on the cp880. + * + * It appears this needs the sierra extended protocol to be complete. + */ +static const ValueNameType cp880_reg_71_val_names[] = { + { + { .range = { 8.0, 20.0, .1 } }, NULL + } +}; +static const RegisterDescriptorType cp880_reg_71[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "zoom", N_("Zoom (in millimeters)"), + VAL_NAME_INIT (cp880_reg_71_val_names) + } +}; + +/* + * Register 72: digital zoom, not fully working for cp880. This is likely + * related to the optical zoom not working, as the digital zoom modifies + * register 71 (when done from the camera). I can only set it to 2.0. + * + * It appears this needs the sierra extended protocol to be complete. + * + * The hi portion (mask 0xff00) has digital zoom values. On the cp880, it + * looks like the regular zoom + the digital zoom value determine the + * actual digital zoom used (the optical zoom must be at max before the + * camera goes to a digital zoom). + * + * The low portion (mask 0x00ff) seems to have three values, none verified + * on the cp880 - mabye should probably be split further. + */ +#ifdef OLD_WAY +static const ValueNameType cp880_reg_72_mask_hi_val_names[] = { + { { 0x0100 }, "1.25" }, + { { 0x0200 }, "1.60" }, + { { 0x0300 }, "2.00" }, + { { 0x0400 }, "2.50" }, + { { 0x0500 }, N_("none") }, +}; +static const ValueNameType cp880_reg_72_mask_lo_val_names[] = { + { { 0x0001 }, N_("AE-lock") }, + { { 0x0002 }, N_("Fisheye") }, + { { 0x0004 }, N_("Wide") }, +}; +static const RegisterDescriptorType cp880_reg_72[] = { + { + GP_WIDGET_RADIO, 0xff00, + "dzoom", N_("Digital Zoom"), + VAL_NAME_INIT (cp880_reg_72_mask_hi_val_names) + }, + { + GP_WIDGET_RADIO, 0x00ff, + "misc-exp-lenses", N_("Misc exposure/lens settings"), + VAL_NAME_INIT (cp880_reg_72_mask_lo_val_names) + }, +}; +#endif +static const ValueNameType cp880_reg_72_mask_hi_val_names[] = { + { { 0x00 }, N_("off") }, + { { 0x08 }, N_("on") }, + +}; +static const ValueNameType cp880_reg_72_mask_lo_val_names[] = { + { { 0x00 }, N_("off") }, + { { 0x01 }, N_("on") }, +}; + +static const RegisterDescriptorType cp880_reg_72[] = { + { + GP_WIDGET_RADIO, 0x08, + "dzoom", N_("Digital Zoom"), + VAL_NAME_INIT (cp880_reg_72_mask_hi_val_names) + }, + { + GP_WIDGET_RADIO, 0x01, + "ael", N_("Auto exposure lock"), + VAL_NAME_INIT (cp880_reg_72_mask_lo_val_names) + }, +}; + +/* + * All of the register used to modify picture settings. The register value + * received from the camera is stored into this data area, so it cannot be + * a const. + */ +static CameraRegisterType cp880_pic_regs[] = { + /* camera prefix, register number, size of register */ + CAM_REG_TYPE_INIT (cp880, 01, 4, CAM_DESC_DEFAULT, 0), /* resolution/size */ + CAM_REG_TYPE_INIT (cp880, 03, 4, CAM_DESC_DEFAULT, 0), /* shutter */ + CAM_REG_TYPE_INIT (cp880, 05, 4, CAM_DESC_DEFAULT, 0), /* aperture (f-stop) */ + CAM_REG_TYPE_INIT (cp880, 06, 4, CAM_DESC_DEFAULT, 0), /* color mode */ + CAM_REG_TYPE_INIT (cp880, 07, 4, CAM_DESC_DEFAULT, 0), /* flash */ + CAM_REG_TYPE_INIT (cp880, 19, 4, CAM_DESC_DEFAULT, 0), /* brightness/contrast */ + CAM_REG_TYPE_INIT (cp880, 20, 4, CAM_DESC_DEFAULT, 0), /* white balance */ +#ifdef REG_30_FAILS + CAM_REG_TYPE_INIT (cp880, 30, 4, CAM_DESC_DEFAULT, 0), /* LED mode */ +#endif + CAM_REG_TYPE_INIT (cp880, 33, 4, CAM_DESC_DEFAULT, 0), /* focus mode */ + CAM_REG_TYPE_INIT (cp880, 69, 8, CAM_DESC_DEFAULT, 0), /* exposure compensation */ + CAM_REG_TYPE_INIT (cp880, 70, 4, CAM_DESC_DEFAULT, 0), /* exposure metering */ + CAM_REG_TYPE_INIT (cp880, 71, 8, CAM_DESC_DEFAULT, 0), /* optical zoom */ + CAM_REG_TYPE_INIT (cp880, 72, 4, CAM_DESC_DEFAULT, 0), /* digital zoom + lense + AE lock */ +}; + +/* + * All of the register used to modify camera settings. + */ +static CameraRegisterType cp880_cam_regs[] = { + CAM_REG_TYPE_INIT (cp880, 02, 4, CAM_DESC_DEFAULT, 0), /* date-time */ + CAM_REG_TYPE_INIT (cp880, 34, 4, CAM_DESC_SUBACTION, + SIERRA_ACTION_LCD_MODE), /* lcd mode */ + CAM_REG_TYPE_INIT (cp880, 35, 4, CAM_DESC_DEFAULT, 0), /* LCD brightness */ + CAM_REG_TYPE_INIT (cp880, 38, 4, CAM_DESC_DEFAULT, 0), /* LCD auto shutoff */ + CAM_REG_TYPE_INIT (cp880, 53, 4, CAM_DESC_DEFAULT, 0), /* language */ +}; + +/* + * All of the register used to modify picture settings. The register value + * received from the camera is stored into this data area, so it cannot be + * a const. + */ +static CameraRegisterType cp2500_pic_regs[] = { + /* camera prefix, register number, size of register */ + CAM_REG_TYPE_INIT (cp2500, 01, 4, CAM_DESC_DEFAULT, 0), /* resolution/size */ + CAM_REG_TYPE_INIT (cp880, 06, 4, CAM_DESC_DEFAULT, 0), /* color mode */ + CAM_REG_TYPE_INIT (cp880, 07, 4, CAM_DESC_DEFAULT, 0), /* flash */ + CAM_REG_TYPE_INIT (cp880, 19, 4, CAM_DESC_DEFAULT, 0), /* brightness/contrast */ + CAM_REG_TYPE_INIT (cp880, 20, 4, CAM_DESC_DEFAULT, 0), /* white balance */ +#ifdef REG_30_FAILS + CAM_REG_TYPE_INIT (cp880, 30, 4, CAM_DESC_DEFAULT, 0), /* LED mode */ +#endif + CAM_REG_TYPE_INIT (cp880, 33, 4, CAM_DESC_DEFAULT, 0), /* focus mode */ + CAM_REG_TYPE_INIT (cp880, 69, 8, CAM_DESC_DEFAULT, 0), /* exposure compensation */ + CAM_REG_TYPE_INIT (cp880, 70, 4, CAM_DESC_DEFAULT, 0), /* exposure metering */ + CAM_REG_TYPE_INIT (cp880, 71, 8, CAM_DESC_DEFAULT, 0), /* optical zoom */ + CAM_REG_TYPE_INIT (cp880, 72, 4, CAM_DESC_DEFAULT, 0), /* digital zoom + lense + AE lock */ +}; + +/* + * All of the register used to modify camera settings. + */ +static CameraRegisterType cp2500_cam_regs[] = { + CAM_REG_TYPE_INIT (cp880, 02, 4, CAM_DESC_DEFAULT, 0), /* date-time */ + CAM_REG_TYPE_INIT (cp880, 34, 4, CAM_DESC_SUBACTION, + SIERRA_ACTION_LCD_MODE), /* lcd mode */ + CAM_REG_TYPE_INIT (cp880, 35, 4, CAM_DESC_DEFAULT, 0), /* LCD brightness */ + CAM_REG_TYPE_INIT (cp880, 53, 4, CAM_DESC_DEFAULT, 0), /* language */ +}; + +/* + * All of the register used to modify picture settings. The register value + * received from the camera is stored into this data area, so it cannot be + * a const. + */ +static CameraRegisterType cp4300_pic_regs[] = { + /* camera prefix, register number, size of register */ + CAM_REG_TYPE_INIT (cp880, 01, 4, CAM_DESC_DEFAULT, 0), /* resolution/size */ + CAM_REG_TYPE_INIT (cp880, 06, 4, CAM_DESC_DEFAULT, 0), /* color mode */ + CAM_REG_TYPE_INIT (cp880, 07, 4, CAM_DESC_DEFAULT, 0), /* flash */ + CAM_REG_TYPE_INIT (cp880, 19, 4, CAM_DESC_DEFAULT, 0), /* brightness/contrast */ + CAM_REG_TYPE_INIT (cp880, 20, 4, CAM_DESC_DEFAULT, 0), /* white balance */ +#ifdef REG_30_FAILS + CAM_REG_TYPE_INIT (cp880, 30, 4, CAM_DESC_DEFAULT, 0), /* LED mode */ +#endif + CAM_REG_TYPE_INIT (cp880, 33, 4, CAM_DESC_DEFAULT, 0), /* focus mode */ + CAM_REG_TYPE_INIT (cp880, 69, 8, CAM_DESC_DEFAULT, 0), /* exposure compensation */ + CAM_REG_TYPE_INIT (cp880, 70, 4, CAM_DESC_DEFAULT, 0), /* exposure metering */ + CAM_REG_TYPE_INIT (cp880, 71, 8, CAM_DESC_DEFAULT, 0), /* optical zoom */ + CAM_REG_TYPE_INIT (cp880, 72, 4, CAM_DESC_DEFAULT, 0), /* digital zoom + lense + AE lock */ +}; + +/* + * All of the register used to modify camera settings. + */ +static CameraRegisterType cp4300_cam_regs[] = { + CAM_REG_TYPE_INIT (cp880, 02, 4, CAM_DESC_DEFAULT, 0), /* date-time */ + CAM_REG_TYPE_INIT (cp880, 34, 4, CAM_DESC_SUBACTION, + SIERRA_ACTION_LCD_MODE), /* lcd mode */ + CAM_REG_TYPE_INIT (cp880, 35, 4, CAM_DESC_DEFAULT, 0), /* LCD brightness */ + CAM_REG_TYPE_INIT (cp880, 53, 4, CAM_DESC_DEFAULT, 0), /* language */ +}; + + +static const CameraRegisterSetType cp880_desc[] = { + { + N_("Picture Settings"), + SIZE_ADDR (CameraRegisterType, cp880_pic_regs) + }, + { + N_("Camera Settings"), + SIZE_ADDR (CameraRegisterType, cp880_cam_regs) + }, +}; + +static const CameraRegisterSetType cp2500_desc[] = { + { + N_("Picture Settings"), + SIZE_ADDR (CameraRegisterType, cp2500_pic_regs) + }, + { + N_("Camera Settings"), + SIZE_ADDR (CameraRegisterType, cp2500_cam_regs) + }, +}; + +static const CameraRegisterSetType cp4300_desc[] = { + { + N_("Picture Settings"), + SIZE_ADDR (CameraRegisterType, cp4300_pic_regs) + }, + { + N_("Camera Settings"), + SIZE_ADDR (CameraRegisterType, cp4300_cam_regs) + }, +}; + +static const char cp880_manual[] = +N_( +"Nikon Coolpix 880:\n" +" Camera configuration (or preferences):\n\n" +" The optical zoom does not properly\n" +" function.\n\n" +" Not all configuration settings\n" +" can be properly read or written, for\n" +" example, the fine tuned setting of\n" +" white balance, and the language settings.\n\n" +" Put the camera in 'M' mode in order to\n" +" to set the shutter speed.\n" +); + +/* + * Note: use of the 995 has not been tested, it might not even be + * possible to control the camera via the USB port since it reportedly + * appears as a USB mass storage device. + */ +static const char cp995_manual[] = +N_( +"Nikon Coolpix 995:\n" +" Camera configuration (preferences) for this\n" +" camera are incomplete, contact the gphoto\n" +" developer mailing list\n" +" if you would like to contribute to this\n" +" driver.\n\n" +" The download should function correctly.\n" +); + +const CameraDescType cp880_cam_desc = { cp880_desc, cp880_manual, + SIERRA_EXT_PROTO, }; +const CameraDescType cp995_cam_desc = { cp880_desc, cp995_manual, + SIERRA_EXT_PROTO, }; +const CameraDescType cp2500_cam_desc = { cp2500_desc, cp880_manual, + SIERRA_EXT_PROTO, }; +const CameraDescType cp4300_cam_desc = { cp4300_desc, cp880_manual, + SIERRA_EXT_PROTO, }; diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/olympus-desc.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/olympus-desc.c new file mode 100644 index 00000000..16f5787b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/olympus-desc.c @@ -0,0 +1,1203 @@ +/* olympus_desc.c: + * + * Olympus 3040 specific code (most of this file): + * David Selmeczi + * Olympus 3000z code, based on data from: + * Till Kamppeter + * Original code: + * Copyright 2002 Patrick Mansfield + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include +#include <_stdint.h> +#include +#include +#include +#include +#include "sierra.h" +#include "library.h" +#include "sierra-desc.h" + +/* + * Camera descriptor for Olympus C-3040Z, 3000Z (and somday maybe others). + */ + +/* + * Notes: + * + * The variable "value" in a ValueNameType is the first element of + * the name/value union, and so it is the default value initialized. + * + * To init to a range, use: + * { .range = { 100.1, 2000.0, 10 } }, NULL + * + * Casts are used to avoid warnings about using a const. + * + * Only registers that are used by the camera configuration are listed + * here (for use in the get/set config functions); no settings, capture or + * other data is stored here. + */ + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +/* + * Register 1: resolution/size. + * + * These values suck. why didn't they make these maskable, or use a nibble + * for each part? Just use a the combined resolution + size. It would be + * good to try and break these into two selections. + */ +static const ValueNameType oly3040_reg_01_val_names[] = { + { { 0x01 }, "640x480-Normal" }, + { { 0x04 }, "640x480-Fine" }, + { { 0x05 }, "1024x768-Normal" }, + { { 0x06 }, "1024x768-Fine" }, + { { 0x07 }, "1280x960-Normal" }, + { { 0x08 }, "1280x960-Fine" }, + { { 0x09 }, "1600x1200-Normal" }, + { { 0x0a }, "1600x1200-Fine" }, +/* Only for E-100RS + { { 0x0b }, "1360x1024-Normal" }, + { { 0x0c }, "1360x1024-Fine" }, +*/ + { { 0x02 }, "2048x1536-Normal" }, + { { 0x03 }, "2048x1536-Fine" }, + { { 0x21 }, "640x480-TIFF" }, + { { 0x22 }, "1024x768-TIFF" }, + { { 0x23 }, "1280x960-TIFF" }, + { { 0x24 }, "1600x1200-TIFF" }, + { { 0x25 }, "2048x1536-TIFF" }, + { { 0x26 }, "1360x1024-TIFF" }, +}; +static const RegisterDescriptorType oly3040_reg_01[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "resolution", N_("Resolution plus Size"), + VAL_NAME_INIT (oly3040_reg_01_val_names) + } +}; + +static const ValueNameType oly750uz_reg_01_val_names[] = { + { { 0x01 }, "SQ2-640x480-NORMAL" }, + { { 0x02 }, "SQ1-2048x1536-NORMAL" }, + { { 0x03 }, "SQ1-2048x1536-HIGH" }, + { { 0x04 }, "SQ2-640x480-HIGH" }, + { { 0x05 }, "SQ2-1024x768-NORMAL" }, + { { 0x06 }, "SQ2-1024x768-HIGH" }, + { { 0x07 }, "SQ1-1280x960-NORMAL" }, + { { 0x08 }, "SQ1-1280x960-HIGH" }, + { { 0x09 }, "SQ1-1600x1200-NORMAL" }, + { { 0x0a }, "SQ1-1600x1200-HIGH" }, + { { 0x0d }, "HQ-2288x1712" }, + { { 0x0e }, "SHQ-2288x1712" }, + { { 0x0f }, "3:2-HQ-2288x1520" }, + { { 0x10 }, "3:2-SHQ-2288x1620" }, + { { 0x13 }, "LG-HQ-3200x2400" }, + { { 0x14 }, "LG-SHQ-3200x2400" }, + { { 0x24 }, "TIFF-1600x1200" }, + { { 0x25 }, "TIFF-2048x1536" }, + { { 0x26 }, "TIFF-2218x1712" }, + { { 0x27 }, "3:2-TIFF-2218x1712" }, +}; +static const RegisterDescriptorType oly750uz_reg_01[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "resolution", N_("Resolution plus Size"), + VAL_NAME_INIT (oly750uz_reg_01_val_names) + } +}; + +static const ValueNameType olysp500uz_reg_01_val_names[] = { + { { 0x00 }, "SQ2-640x480-NORMAL" }, + { { 0x01 }, "SQ2-1024x768-NORMAL" }, + { { 0x02 }, "SQ2-1280x960-NORMAL" }, + { { 0x03 }, "SQ1-1600x1200-NORMAL" }, + { { 0x04 }, "SQ1-2048x1536-NORMAL" }, + { { 0x05 }, "SQ1-2288x1712-NORMAL" }, + { { 0x06 }, "SQ1-2592x1944-NORMAL" }, + { { 0x07 }, "RAW?-2816x2112-NORMAL" }, + { { 0x100 }, "SQ2-640x480-HIGH" }, + { { 0x101 }, "SQ2-1024x768-HIGH" }, + { { 0x102 }, "SQ2-1280x960-HIGH" }, + { { 0x103 }, "SQ1-1600x1200-HIGH" }, + { { 0x104 }, "SQ1-2048x1536-HIGH" }, + { { 0x105 }, "SQ1-2288x1712-HIGH" }, + { { 0x106 }, "SQ1-2592x1944-HIGH" }, + { { 0x1007 }, "HQ?-2816x1880-NORMAL" }, + { { 0x10007 }, "HQ?-2816x1880-NORMAL" }, + { { 0x10107 }, "HQ?-2816x1880-3:2" }, + { { 0x107 }, "HQ?-2816x2112-3:2" }, +}; +static const RegisterDescriptorType olysp500uz_reg_01[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "resolution", N_("Resolution plus Size"), + VAL_NAME_INIT (olysp500uz_reg_01_val_names) + } +}; + +/* + * Register 2: Date and time. + */ +static const ValueNameType oly3040_reg_02_val_names[] = { + /* + * Dummy value, since we need at least one of these to + * display anything. + */ + { { 0x00 }, "Dummy" }, +}; +static const RegisterDescriptorType oly3040_reg_02[] = { + { + GP_WIDGET_DATE, GP_REG_NO_MASK, + "date-time", N_("Date and time (GMT)"), + VAL_NAME_INIT (oly3040_reg_02_val_names) + } +}; + +/* + * Register 3: shutter speed, some cameras must be in S or M mode. + * + * In S mode, aperture is compensated. + * + * Possibly could be any other value in the range of 1250 and 16M + */ +static const ValueNameType oly3040_reg_03_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1250 }, "1/800" }, + { { 2000 }, "1/500" }, + { { 2500 }, "1/400" }, + { { 4000 }, "1/250" }, + { { 5000 }, "1/200" }, + { { 6250 }, "1/160" }, + { { 8000 }, "1/125" }, + { { 10000 }, "1/100" }, + { { 12500 }, "1/80" }, + { { 16666 }, "1/60" }, + { { 20000 }, "1/50" }, + { { 33333 }, "1/30" }, + { { 40000 }, "1/25" }, + { { 66667 }, "1/15" }, + { { 100000 }, "1/10" }, + { { 125000 }, "1/8" }, + { { 200000 }, "1/4" }, /* XXX patman should this be 25000? */ + { { 500000 }, "1/2" }, + { { 1000000 }, "1" }, + { { 2000000 }, "2" }, + { { 3000000 }, "3" }, + { { 4000000 }, "4" }, + { { 5000000 }, "5" }, + { { 6000000 }, "6" }, + { { 8000000 }, "8" }, + { {10000000 }, "10" }, + { {16000000 }, "16" }, + +}; +static const RegisterDescriptorType oly3040_reg_03[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "shutter", N_("Shutter Speed (in seconds)"), + VAL_NAME_INIT (oly3040_reg_03_val_names) + } +}; + +static const ValueNameType oly750uz_reg_03_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1000 }, "1/1000" }, + { { 1250 }, "1/800" }, + { { 1538 }, "1/650" }, + { { 2000 }, "1/500" }, + { { 2500 }, "1/400" }, + { { 3125 }, "1/320" }, + { { 4000 }, "1/250" }, + { { 5000 }, "1/200" }, + { { 6250 }, "1/160" }, + { { 8000 }, "1/125" }, + { { 10000 }, "1/100" }, + { { 12500 }, "1/80" }, + { { 16666 }, "1/60" }, + { { 20000 }, "1/50" }, + { { 25000 }, "1/40" }, + { { 33333 }, "1/30" }, + { { 40000 }, "1/25" }, + { { 50000 }, "1/20" }, + { { 66667 }, "1/15" }, + { { 76923 }, "1/13" }, + { { 100000 }, "1/10" }, + { { 125000 }, "1/8" }, + { { 166667 }, "1/6" }, + { { 200000 }, "1/5" }, + { { 250000 }, "1/4" }, + { { 333333 }, "1/3" }, + { { 400000 }, "1/2.5" }, + { { 500000 }, "1/2" }, + { { 625000 }, "1/1.6" }, + { { 769230 }, "1/1.3" }, + { { 1000000 }, "1" }, + { { 1300000 }, "1.3" }, + { { 1600000 }, "1.6" }, + { { 2000000 }, "2" }, + { { 2500000 }, "2.5" }, + { { 3200000 }, "3.2" }, + { { 4000000 }, "4" }, + { { 5000000 }, "5" }, + { { 6000000 }, "6" }, + { { 8000000 }, "8" }, + { {10000000 }, "10" }, + { {13000000 }, "13" }, + { {16000000 }, "16" }, +}; +static const RegisterDescriptorType oly750uz_reg_03[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "shutter", N_("Shutter Speed (in seconds)"), + VAL_NAME_INIT (oly750uz_reg_03_val_names) + } +}; + +static const ValueNameType olysp500uz_reg_03_val_names[] = { + { { 0 }, N_("Auto") }, + { { 250 }, "1/4000" }, + { { 313 }, "1/3200" }, + { { 400 }, "1/2500" }, + { { 500 }, "1/2000" }, + { { 625 }, "1/1600" }, + { { 800 }, "1/1250" }, + { { 1000 }, "1/1000" }, + { { 1250 }, "1/800" }, + { { 1538 }, "1/650" }, + { { 2000 }, "1/500" }, + { { 2500 }, "1/400" }, + { { 3125 }, "1/320" }, + { { 4000 }, "1/250" }, + { { 5000 }, "1/200" }, + { { 6250 }, "1/160" }, + { { 8000 }, "1/125" }, + { { 10000 }, "1/100" }, + { { 12500 }, "1/80" }, + { { 16666 }, "1/60" }, + { { 20000 }, "1/50" }, + { { 25000 }, "1/40" }, + { { 33333 }, "1/30" }, + { { 40000 }, "1/25" }, + { { 50000 }, "1/20" }, + { { 66667 }, "1/15" }, + { { 76923 }, "1/13" }, + { { 100000 }, "1/10" }, + { { 125000 }, "1/8" }, + { { 166667 }, "1/6" }, + { { 200000 }, "1/5" }, + { { 250000 }, "1/4" }, + { { 333333 }, "1/3" }, + { { 400000 }, "1/2.5" }, + { { 500000 }, "1/2" }, + { { 625000 }, "1/1.6" }, + { { 769230 }, "1/1.3" }, + { { 1000000 }, "1" }, + { { 1300000 }, "1.3" }, + { { 1600000 }, "1.6" }, + { { 2000000 }, "2" }, + { { 2500000 }, "2.5" }, + { { 3200000 }, "3.2" }, + { { 4000000 }, "4" }, + { { 5000000 }, "5" }, + { { 6000000 }, "6" }, + { { 8000000 }, "8" }, + { {10000000 }, "10" }, + { {13000000 }, "13" }, + { {16000000 }, "16" }, +}; +static const RegisterDescriptorType olysp500uz_reg_03[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "shutter", N_("Shutter Speed (in seconds)"), + VAL_NAME_INIT (olysp500uz_reg_03_val_names) + } +}; +/* + * Past behaviour is that you have to pick a supported value, you can't + * arbitrarily set this to some value and have it work, so using a range + * does not work well, since only about 30 of some 16 million values are + * valid. + */ +static const ValueNameType olyrange_reg_03_val_names[] = { + { + { .range = { 0, 16000000, 100 } }, NULL + } +}; +static const RegisterDescriptorType olyrange_reg_03[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "shutter", N_("Shutter Speed microseconds (0 auto)"), + VAL_NAME_INIT (olyrange_reg_03_val_names) + } +}; + +/* + * Olympus 3040 Register 5: aperture settings. Works only in A or M mode + * In A mode, shutter speed is compensated + */ +static const ValueNameType oly3040_reg_05_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1 }, "F1.8" }, + { { 2 }, "F2.0" }, + { { 3 }, "F2.3" }, + { { 4 }, "F2.6" }, + { { 5 }, "F2.8" }, + { { 6 }, "F3.2" }, + { { 7 }, "F3.6" }, + { { 8 }, "F4.0" }, + { { 9 }, "F4.5" }, + { { 10 }, "F5.0" }, + { { 11 }, "F5.6" }, + { { 12 }, "F6.3" }, + { { 13 }, "F7" }, + { { 14 }, "F8" }, + { { 15 }, "F9" }, + { { 16 }, "F10" }, +}; +static const RegisterDescriptorType oly3040_reg_05[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "aperture", N_("Aperture Settings"), + VAL_NAME_INIT (oly3040_reg_05_val_names) + } +}; + +/* + * Olympus 3000z Register 5: aperture settings. Unknown if this comment + * applies: Works only in A or M mode In A mode, shutter speed is + * compensated + */ +static const ValueNameType oly3000z_reg_05_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1 }, "F2.2" }, + { { 2 }, "F2.5" }, + { { 3 }, "F2.8" }, + { { 4 }, "F3.2" }, + { { 5 }, "F3.6" }, + { { 6 }, "F4.0" }, + { { 7 }, "F4.5" }, + { { 8 }, "F5.0" }, + { { 9 }, "F5.6" }, + { { 10 }, "F6.3" }, + { { 11 }, "F7.0" }, + { { 12 }, "F8.0" }, + { { 13 }, "F9.0" }, + { { 14 }, "F10.0" }, + { { 15 }, "F11.0" }, + { { 16 }, "F2.0" }, /* Odd */ +}; +static const RegisterDescriptorType oly3000z_reg_05[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "aperture", N_("Aperture Settings"), + VAL_NAME_INIT (oly3000z_reg_05_val_names) + } +}; + +/* + * Olympus 750uz Register 5: aperture settings. + */ +static const ValueNameType oly750uz_reg_05_val_names[] = { + { { 0 }, N_("Auto") }, + { { 3 }, "F2.8" }, + { { 4 }, "F3.2" }, + { { 5 }, "F3.5" }, + { { 6 }, "F4.0" }, + { { 7 }, "F4.5" }, + { { 8 }, "F5.0" }, + { { 9 }, "F5.6" }, + { { 10 }, "F6.3" }, + { { 11 }, "F7.0" }, + { { 12 }, "F8.0" }, +}; +static const RegisterDescriptorType oly750uz_reg_05[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "aperture", N_("Aperture Settings"), + VAL_NAME_INIT (oly750uz_reg_05_val_names) + } +}; + +/* + * Olympus SP-500uz Register 5: aperture settings. + */ +static const ValueNameType olysp500uz_reg_05_val_names[] = { + { { 0 }, N_("Auto") }, + { { 28 }, "F2.8" }, + { { 32 }, "F3.2" }, + { { 35 }, "F3.5" }, + { { 40 }, "F4.0" }, + { { 45 }, "F4.5" }, + { { 50 }, "F5.0" }, + { { 56 }, "F5.6" }, + { { 63 }, "F6.3" }, + { { 80 }, "F8.0" }, + { { 90 }, "F9.0" }, +}; +static const RegisterDescriptorType olysp500uz_reg_05[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "aperture", N_("Aperture Settings"), + VAL_NAME_INIT (olysp500uz_reg_05_val_names) + } +}; +/* + * Register 6: color mode + */ +static const ValueNameType oly3040_reg_06_val_names[] = { + { { 0 }, N_("Normal") }, + { { 1 }, N_("B/W") }, + { { 2 }, N_("Sepia") }, + { { 3 }, N_("White board") }, + { { 4 }, N_("Black board") }, +}; +static const RegisterDescriptorType oly3040_reg_06[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "color", N_("Color or Function Mode"), + VAL_NAME_INIT (oly3040_reg_06_val_names) + } +}; + +/* + * Olyumpus 3040 Register 7: flash settings + */ +static const ValueNameType oly3040_reg_07_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1 }, N_("Force") }, + { { 2 }, N_("Off") }, + { { 3 }, N_("Anti-redeye") }, +}; +static const RegisterDescriptorType oly3040_reg_07[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "flash", N_("Flash Settings"), + VAL_NAME_INIT (oly3040_reg_07_val_names) + } +}; + +/* + * Olumpus 750uz Register 7: flash settings + */ +static const ValueNameType oly750uz_reg_07_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1 }, N_("Force") }, + { { 2 }, N_("Off") }, + { { 3 }, N_("Anti-redeye") }, + { { 4 }, N_("Slow") }, + /* This is always 4 for slow 1, 2, or slow with redeye */ +}; +static const RegisterDescriptorType oly750uz_reg_07[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "flash", N_("Flash Settings"), + VAL_NAME_INIT (oly750uz_reg_07_val_names) + } +}; + +/* + * Olumpus SP-500uz Register 7: flash settings + */ +static const ValueNameType olysp500uz_reg_07_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1 }, N_("Force") }, + { { 2 }, N_("Off") }, + { { 3 }, N_("Anti-redeye") }, + { { 4 }, N_("Slow") }, + /* This is always 4 for slow 1, 2, or slow with redeye */ + { { 6 }, N_("Anti-redeye Fill") }, +}; + +static const RegisterDescriptorType olysp500uz_reg_07[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "flash", N_("Flash Settings"), + VAL_NAME_INIT (olysp500uz_reg_07_val_names) + } +}; + +/* + * Olympus 3040: Register 20: white balance. + */ +static const ValueNameType oly3040_reg_20_val_names[] = { + { { 0x00 }, N_("Auto") }, + { { 0x01 }, N_("Daylight") }, + { { 0x02 }, N_("Fluorescent") }, + { { 0x03 }, N_("Tungsten") }, + { { 0xff }, N_("Cloudy") }, +}; +static const RegisterDescriptorType oly3040_reg_20[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "whitebalance", N_("White Balance"), + VAL_NAME_INIT (oly3040_reg_20_val_names) + } +}; + +/* + * Olympus 3000z: Register 20: white balance. Only difference seems to be + * that cloudy is 0x04, not 0xff. + */ +static const ValueNameType oly3000z_reg_20_val_names[] = { + { { 0x00 }, N_("Auto") }, + { { 0x01 }, N_("Daylight") }, + { { 0x02 }, N_("Fluorescent") }, + { { 0x03 }, N_("Tungsten") }, + { { 0x04 }, N_("Cloudy") }, +}; +static const RegisterDescriptorType oly3000z_reg_20[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "whitebalance", N_("White Balance"), + VAL_NAME_INIT (oly3000z_reg_20_val_names) + } +}; + +/* + * Olympus 750uz: Register 20: white balance. The main difference is that + * we have the flourescent 1 2 and 3: + */ +static const ValueNameType oly750uz_reg_20_val_names[] = { + { { 0x00 }, N_("Auto") }, + { { 0x01 }, N_("Daylight") }, + { { 0x03 }, N_("Tungsten") }, + { { 0x04 }, N_("Fluorescent-1-home-6700K") }, + { { 0x05 }, N_("Fluorescent-2-desk-5000K") }, + { { 0x06 }, N_("Fluorescent-3-office-4200K") }, + { { 0xff }, N_("Cloudy") }, +}; +static const RegisterDescriptorType oly750uz_reg_20[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "whitebalance", N_("White Balance"), + VAL_NAME_INIT (oly750uz_reg_20_val_names) + } +}; + +/* + * Olympus SP 500uz: Register 20: white balance. The main difference is that + * we have the flourescent 1 2 and 3: + */ +static const ValueNameType olysp500uz_reg_20_val_names[] = { + { { 0x00 }, N_("Auto") }, + { { 0x01 }, N_("Daylight") }, + { { 0x03 }, N_("Tungsten") }, + { { 0x04 }, N_("Fluorescent-1-home-6700K") }, + { { 0x05 }, N_("Fluorescent-2-desk-5000K") }, + { { 0x06 }, N_("Fluorescent-3-office-4200K") }, + { { 0x09 }, N_("Dusk") }, + { { 0x0a }, N_("Preset") }, + { { 0xff }, N_("Cloudy") }, +}; + +static const RegisterDescriptorType olysp500uz_reg_20[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "whitebalance", N_("White Balance"), + VAL_NAME_INIT (olysp500uz_reg_20_val_names) + } +}; + +/* + * Register 33: focus mode. + */ +static const ValueNameType oly3040_reg_33_val_names[] = { + { { 0x01 }, N_("Macro") }, + { { 0x02 }, N_("Auto") }, + { { 0x03 }, N_("Manual") }, +}; +static const RegisterDescriptorType oly3040_reg_33[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "focus-mode", N_("Focus Mode"), + VAL_NAME_INIT (oly3040_reg_33_val_names) + } +}; + +/* + * Register 34: LCD mode / write-only through SIERRA_SUBACTION / ACTION_LCD_MODE + * This register always contains 1 (OFF). + * Note: Always swicth off LCD before disconnecting the camera. Otherwise the camera + * controls won't work, and you will need to replug the cable and switch off the LCD. + * (This _is_ a documented "feature".) + */ + +static const ValueNameType oly3040_reg_34_val_names[] = { + { { 0x01 }, N_("Off") }, + { { 0x02 }, N_("Monitor") }, + { { 0x03 }, N_("Normal") }, +}; +static const RegisterDescriptorType oly3040_reg_34[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "lcd-mode", N_("LCD Mode"), + VAL_NAME_INIT (oly3040_reg_34_val_names) + } +}; + + +/* + * Register 35: lcd brightness. + */ +static const ValueNameType oly3040_reg_35_val_names[] = { + { { .range = { 0, 7 } }, NULL }, +}; +static const RegisterDescriptorType oly3040_reg_35[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "lcd-brightness", N_("LCD Brightness"), + VAL_NAME_INIT (oly3040_reg_35_val_names) + } +}; + +/* + * Register 24: camera power save (idle time before entering power save mode) + */ +static const ValueNameType oly3040_reg_24_val_names[] = { + { { .range = { 30, 600, 30 } }, NULL }, +}; +static const RegisterDescriptorType oly3040_reg_24[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "camera-power-save", N_("Camera power save (seconds)"), + VAL_NAME_INIT (oly3040_reg_24_val_names) + } +}; + +/* + * Register 23: camera power save when connected to PC + * (idle time before entering power save mode) + */ +static const ValueNameType oly3040_reg_23_val_names[] = { + { { .range = { 30, 600, 30 } }, NULL }, +}; +static const RegisterDescriptorType oly3040_reg_23[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "host-power-save", N_("Host power save (seconds)"), + VAL_NAME_INIT (oly3040_reg_23_val_names) + } +}; +/* + * Register 38: lcd auto shut off time + */ +static const ValueNameType oly3040_reg_38_val_names[] = { + { { .range = { 30, 600, 30 } }, NULL }, +}; +static const RegisterDescriptorType oly3040_reg_38[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "lcd-auto-shutoff", N_("LCD Auto Shut Off (seconds)"), + VAL_NAME_INIT (oly3040_reg_38_val_names) + } +}; + +/* + * Register 53: language setting. No meaning on Olympus + */ +/* +static const ValueNameType oly3040_reg_53_val_names[] = { + { { 0x03 }, N_("English") }, + { { 0x04 }, N_("French") }, + { { 0x05 }, N_("German") }, +}; +static const RegisterDescriptorType oly3040_reg_53[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "language", N_("Language"), + VAL_NAME_INIT (oly3040_reg_53_val_names) + } +}; +*/ + +/* + * Register 69: exposure compensation. + */ +static const ValueNameType oly3040_reg_69_val_names[] = { + { { -20 }, "-2.0" }, + { { -17 }, "-1.7" }, + { { -13 }, "-1.3" }, + { { -10 }, "-1.0" }, + { { -07 }, "-0.7" }, + { { -03 }, "-0.3" }, + { { 00 }, " 0" }, + { { +03 }, "+0.3" }, + { { +07 }, "+0.7" }, + { { +10 }, "+1.0" }, + { { +13 }, "+1.3" }, + { { +17 }, "+1.7" }, + { { +20 }, "+2.0" }, +}; +static const RegisterDescriptorType oly3040_reg_69[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "exp", N_("Exposure Compensation"), + VAL_NAME_INIT (oly3040_reg_69_val_names) + } +}; + +/* + * Register 70: exposure meter. + */ +static const ValueNameType oly3040_reg_70_val_names[] = { + { { 0x03 }, N_("Spot") }, + { { 0x05 }, N_("Matrix") }, +}; +static const RegisterDescriptorType oly3040_reg_70[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "exp-meter", N_("Exposure Metering"), + VAL_NAME_INIT (oly3040_reg_70_val_names) + } +}; + +/* + * Olympus SP-500uz Register 70: exposure meter. + */ +static const ValueNameType olysp500uz_reg_70_val_names[] = { + { { 0x02 }, N_("Center Weighted") }, + { { 0x03 }, N_("Spot") }, + { { 0x04 }, N_("ESP") }, + { { 0x05 }, N_("Matrix") }, +}; + +static const RegisterDescriptorType olysp500uz_reg_70[] = { + { + GP_WIDGET_RADIO, GP_REG_NO_MASK, + "exp-meter", N_("Exposure Metering"), + VAL_NAME_INIT (olysp500uz_reg_70_val_names) + } +}; + +/* + * Oly 750 uz Register 71: optical zoom value. + */ +static const ValueNameType oly750uz_reg_71_val_names[] = { + { + { .range = { 6.3, 63.0, .1 } }, NULL + } +}; +static const RegisterDescriptorType oly750uz_reg_71[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "zoom", N_("Zoom (in millimeters)"), + VAL_NAME_INIT (oly750uz_reg_71_val_names) + } +}; + +/* + * Oly SP-500 uz Register 71: optical zoom value. + */ +static const ValueNameType olysp500uz_reg_71_val_names[] = { + { + { .range = { 6.3, 63.0, .3 } }, NULL + } +}; +static const RegisterDescriptorType olysp500uz_reg_71[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "zoom", N_("Zoom (in millimeters)"), + VAL_NAME_INIT (olysp500uz_reg_71_val_names) + } +}; + +/* + * Oly 3040 Register 71: optical zoom value. + */ +static const ValueNameType oly3040_reg_71_val_names[] = { + { + { .range = { 7.3, 21.0, .1 } }, NULL + } +}; +static const RegisterDescriptorType oly3040_reg_71[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "zoom", N_("Zoom (in millimeters)"), + VAL_NAME_INIT (oly3040_reg_71_val_names) + } +}; + +/* + * Register 72: digital zoom + */ +static const ValueNameType oly3040_reg_72_val_names[] = { + { { 0x0000 }, N_("Off") }, + { { 0x0208 }, "1.5x" }, + { { 0x0008 }, "2x" }, + { { 0x0408 }, "2.5x" }, +}; +static const RegisterDescriptorType oly3040_reg_72[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "dzoom", N_("Digital zoom"), + VAL_NAME_INIT (oly3040_reg_72_val_names) + } +}; + +/* + * Register 85: ISO speed, read only on some cameras + */ +static const ValueNameType oly3040_reg_85_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1 }, "100" }, + { { 2 }, "200" }, + { { 3 }, "400" }, +}; +static const RegisterDescriptorType oly3040_reg_85[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "iso", N_("ISO Speed"), + VAL_NAME_INIT (oly3040_reg_85_val_names) + } +}; + +/* + * Olympus 750uz Register 85: ISO speed, writable + */ +static const ValueNameType oly750uz_reg_85_val_names[] = { + { { 0 }, N_("Auto") }, + { { 1 }, "100" }, + { { 2 }, "200" }, + { { 3 }, "400" }, + { { 4 }, "50" }, +}; +static const RegisterDescriptorType oly750uz_reg_85[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "iso", N_("ISO Speed"), + VAL_NAME_INIT (oly750uz_reg_85_val_names) + } +}; + +/* + * Register 103: focus position (only applicable in manual focus mode) + * 1 to 120: macro positions + * 121 to 240: normal positions + */ +static const ValueNameType oly3040_reg_103_val_names[] = { + { { .range = { 1, 240, 1 } }, NULL }, +}; +static const RegisterDescriptorType oly3040_reg_103[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "focus-pos", N_("Focus position"), + VAL_NAME_INIT (oly3040_reg_103_val_names) + } +}; + +/* + * Olyumpus 750uz Register 103: focus position + * 27 to 120: if in macro mode + * 0 to 120: non-macro mode + */ +static const ValueNameType oly750uz_reg_103_val_names[] = { + { { .range = { 1, 120, 1 } }, NULL }, +}; +static const RegisterDescriptorType oly750uz_reg_103[] = { + { + GP_WIDGET_RANGE, GP_REG_NO_MASK, + "focus-pos", N_("Focus position"), + VAL_NAME_INIT (oly750uz_reg_103_val_names) + } +}; + +/* + * Register 41: time format, read only + */ +static const ValueNameType oly3040_reg_41_val_names[] = { + { { 0 }, N_("Off") }, + { { 1 }, "yymmdd" }, + { { 2 }, "mmddyy" }, + { { 3 }, "ddmmyy" }, +}; +static const RegisterDescriptorType oly3040_reg_41[] = { + { + GP_WIDGET_MENU, GP_REG_NO_MASK, + "timefmt", N_("Time format"), + VAL_NAME_INIT (oly3040_reg_41_val_names) + } +}; + + +/* + * Olympus 3040: All of the register used to modify picture settings. The + * register value received from the camera is stored into this data area, + * so it cannot be a const. + */ +static CameraRegisterType oly3040_pic_regs[] = { + /* camera prefix, register number, size of register */ + CAM_REG_TYPE_INIT (oly3040, 01, 4, CAM_DESC_DEFAULT, 0), /* resolution/size */ + CAM_REG_TYPE_INIT (oly3040, 03, 4, CAM_DESC_DEFAULT, 0), /* shutter */ + CAM_REG_TYPE_INIT (oly3040, 05, 4, CAM_DESC_DEFAULT, 0), /* aperture (f-stop) */ + CAM_REG_TYPE_INIT (oly3040, 06, 4, CAM_DESC_DEFAULT, 0), /* color mode */ + CAM_REG_TYPE_INIT (oly3040, 07, 4, CAM_DESC_DEFAULT, 0), /* flash */ + CAM_REG_TYPE_INIT (oly3040, 20, 4, CAM_DESC_DEFAULT, 0), /* white balance */ + CAM_REG_TYPE_INIT (oly3040, 33, 4, CAM_DESC_DEFAULT, 0), /* focus mode */ + CAM_REG_TYPE_INIT (oly3040,103, 4, CAM_DESC_DEFAULT, 0), /* focus position */ + CAM_REG_TYPE_INIT (oly3040, 69, 8, CAM_DESC_DEFAULT, 0), /* exposure compensation */ + CAM_REG_TYPE_INIT (oly3040, 70, 4, CAM_DESC_DEFAULT, 0), /* exposure metering */ + CAM_REG_TYPE_INIT (oly3040, 71, 8, CAM_DESC_DEFAULT, 0), /* optical zoom */ + CAM_REG_TYPE_INIT (oly3040, 72, 4, CAM_DESC_DEFAULT, 0), /* digital zoom + lense + AE lock */ + CAM_REG_TYPE_INIT (oly3040, 85, 4, CAM_DESC_DEFAULT, 0), /* ISO Speed, read only */ +}; + +/* + * Olympus 3000z: All of the register used to modify picture settings. + * Note that most of these are the same as the 3040. + */ +static CameraRegisterType oly3000z_pic_regs[] = { + /* camera prefix, register number, size of register */ + CAM_REG_TYPE_INIT (oly3040, 01, 4, CAM_DESC_DEFAULT, 0), /* resolution/size */ + CAM_REG_TYPE_INIT (oly3040, 03, 4, CAM_DESC_DEFAULT, 0), /* shutter */ + CAM_REG_TYPE_INIT (oly3000z, 05, 4, CAM_DESC_DEFAULT, 0), /* aperture (f-stop) */ + CAM_REG_TYPE_INIT (oly3040, 06, 4, CAM_DESC_DEFAULT, 0), /* color mode */ + CAM_REG_TYPE_INIT (oly3040, 07, 4, CAM_DESC_DEFAULT, 0), /* flash */ + CAM_REG_TYPE_INIT (oly3000z, 20, 4, CAM_DESC_DEFAULT, 0), /* white balance */ + CAM_REG_TYPE_INIT (oly3040, 33, 4, CAM_DESC_DEFAULT, 0), /* focus mode */ + CAM_REG_TYPE_INIT (oly3040,103, 4, CAM_DESC_DEFAULT, 0), /* focus position */ + CAM_REG_TYPE_INIT (oly3040, 69, 8, CAM_DESC_DEFAULT, 0), /* exposure compensation */ + CAM_REG_TYPE_INIT (oly3040, 70, 4, CAM_DESC_DEFAULT, 0), /* exposure metering */ + CAM_REG_TYPE_INIT (oly3040, 71, 8, CAM_DESC_DEFAULT, 0), /* optical zoom */ + CAM_REG_TYPE_INIT (oly3040, 72, 4, CAM_DESC_DEFAULT, 0), /* digital zoom + lense + AE lock */ + CAM_REG_TYPE_INIT (oly3040, 85, 4, CAM_DESC_DEFAULT, 0), /* ISO Speed, read only */ +}; + +/* + * All of the register used to modify camera settings. + */ +static CameraRegisterType oly3040_cam_regs[] = { + CAM_REG_TYPE_INIT (oly3040, 02, 4, CAM_DESC_DEFAULT, 0), /* date-time */ + CAM_REG_TYPE_INIT (oly3040, 34, 4, CAM_DESC_SUBACTION, + SIERRA_ACTION_LCD_MODE), /* lcd mode */ + CAM_REG_TYPE_INIT (oly3040, 35, 4, CAM_DESC_DEFAULT, 0), /* LCD brightness */ + CAM_REG_TYPE_INIT (oly3040, 38, 4, CAM_DESC_DEFAULT, 0), /* LCD auto shutoff */ + CAM_REG_TYPE_INIT (oly3040, 24, 4, CAM_DESC_DEFAULT, 0), /* Camera power save */ + CAM_REG_TYPE_INIT (oly3040, 23, 4, CAM_DESC_DEFAULT, 0), /* Host power save */ + CAM_REG_TYPE_INIT (oly3040, 41, 4, CAM_DESC_DEFAULT, 0), /* time format, read only */ +}; + +static const CameraRegisterSetType oly3040_desc[] = { + { + N_("Picture Settings"), + SIZE_ADDR (CameraRegisterType, oly3040_pic_regs) + }, + { + N_("Camera Settings"), + SIZE_ADDR (CameraRegisterType, oly3040_cam_regs) + }, +}; + +/* + * Olympus 750UZ: All of the register used to modify picture settings. + */ +static CameraRegisterType oly750uz_pic_regs[] = { + /* camera prefix, register number, size of register */ + CAM_REG_TYPE_INIT (oly750uz, 01, 4, CAM_DESC_DEFAULT, 0), /* resolution/size */ + CAM_REG_TYPE_INIT (oly750uz, 03, 4, CAM_DESC_DEFAULT, 0), /* shutter */ + CAM_REG_TYPE_INIT (oly750uz, 05, 4, CAM_DESC_DEFAULT, 0), /* aperture (f-stop) */ + CAM_REG_TYPE_INIT (oly3040, 06, 4, CAM_DESC_DEFAULT, 0), /* color mode */ + CAM_REG_TYPE_INIT (oly750uz, 07, 4, CAM_DESC_DEFAULT, 0), /* flash */ + CAM_REG_TYPE_INIT (oly750uz, 20, 4, CAM_DESC_DEFAULT, 0), /* white balance */ + CAM_REG_TYPE_INIT (oly3040, 33, 4, CAM_DESC_DEFAULT, 0), /* focus mode */ + /* + * Note: in "super macro" focus mode, the camera can only auto + * focus. Could not figure out how to set or get super macro mode. + */ + CAM_REG_TYPE_INIT (oly750uz,103, 4, CAM_DESC_DEFAULT, 0), /* focus position */ + CAM_REG_TYPE_INIT (oly3040, 69, 8, CAM_DESC_DEFAULT, 0), /* exposure compensation */ + CAM_REG_TYPE_INIT (oly3040, 70, 4, CAM_DESC_DEFAULT, 0), /* exposure metering */ + /* + * Could not figure out how or if mulit-metering can be set for + * the exposure metering. + */ + CAM_REG_TYPE_INIT (oly750uz, 71, 8, CAM_DESC_DEFAULT, 0), /* optical zoom */ + CAM_REG_TYPE_INIT (oly3040, 72, 4, CAM_DESC_DEFAULT, 0), /* digital zoom + lense + AE lock */ + CAM_REG_TYPE_INIT (oly750uz, 85, 4, CAM_DESC_DEFAULT, 0), /* ISO Speed, read only */ +}; + +/* + * All of the register used to modify camera settings. + * + * All the same as 3040. + */ +static CameraRegisterType oly750uz_cam_regs[] = { + CAM_REG_TYPE_INIT (oly3040, 02, 4, CAM_DESC_DEFAULT, 0), /* date-time */ + CAM_REG_TYPE_INIT (oly3040, 34, 4, CAM_DESC_SUBACTION, + SIERRA_ACTION_LCD_MODE), /* lcd mode */ + CAM_REG_TYPE_INIT (oly3040, 35, 4, CAM_DESC_DEFAULT, 0), /* LCD brightness */ + CAM_REG_TYPE_INIT (oly3040, 38, 4, CAM_DESC_DEFAULT, 0), /* LCD auto shutoff */ + CAM_REG_TYPE_INIT (oly3040, 24, 4, CAM_DESC_DEFAULT, 0), /* Camera power save */ + CAM_REG_TYPE_INIT (oly3040, 23, 4, CAM_DESC_DEFAULT, 0), /* Host power save */ + CAM_REG_TYPE_INIT (oly3040, 41, 4, CAM_DESC_DEFAULT, 0), /* time format, read only */ +}; + +/* + * Olympus SP-500UZ: All of the register used to modify picture settings. + */ +static CameraRegisterType olysp500uz_pic_regs[] = { + /* camera prefix, register number, size of register */ + CAM_REG_TYPE_INIT (olysp500uz, 01, 4, CAM_DESC_DEFAULT, 0), /* resolution/size */ + CAM_REG_TYPE_INIT (olysp500uz, 03, 4, CAM_DESC_DEFAULT, 0), /* shutter */ + CAM_REG_TYPE_INIT (oly750uz, 05, 4, CAM_DESC_DEFAULT, 0), /* aperture (f-stop) */ + CAM_REG_TYPE_INIT (oly3040, 06, 4, CAM_DESC_DEFAULT, 0), /* color mode */ + CAM_REG_TYPE_INIT (olysp500uz, 07, 4, CAM_DESC_DEFAULT, 0), /* flash */ + CAM_REG_TYPE_INIT (olysp500uz, 20, 4, CAM_DESC_DEFAULT, 0), /* white balance */ + CAM_REG_TYPE_INIT (oly3040, 33, 4, CAM_DESC_DEFAULT, 0), /* focus mode */ + /* + * Note: in "super macro" focus mode, the camera can only auto + * focus. Could not figure out how to set or get super macro mode. + */ + CAM_REG_TYPE_INIT (oly3040,103, 4, CAM_DESC_DEFAULT, 0), /* focus position */ + CAM_REG_TYPE_INIT (oly3040, 69, 8, CAM_DESC_DEFAULT, 0), /* exposure compensation */ + CAM_REG_TYPE_INIT (olysp500uz, 70, 4, CAM_DESC_DEFAULT, 0), /* exposure metering */ + /* + * Could not figure out how or if mulit-metering can be set for + * the exposure metering. + */ + CAM_REG_TYPE_INIT (oly750uz, 71, 8, CAM_DESC_DEFAULT, 0), /* optical zoom */ + CAM_REG_TYPE_INIT (oly3040, 72, 4, CAM_DESC_DEFAULT, 0), /* digital zoom + lense + AE lock */ + CAM_REG_TYPE_INIT (oly750uz, 85, 4, CAM_DESC_DEFAULT, 0), /* ISO Speed, read only */ +}; + +/* + * All of the register used to modify camera settings. + * + * All the same as 3040. + */ +static CameraRegisterType olysp500uz_cam_regs[] = { + CAM_REG_TYPE_INIT (oly3040, 02, 4, CAM_DESC_DEFAULT, 0), /* date-time */ + CAM_REG_TYPE_INIT (oly3040, 34, 4, CAM_DESC_SUBACTION, + SIERRA_ACTION_LCD_MODE), /* lcd mode */ + CAM_REG_TYPE_INIT (oly3040, 35, 4, CAM_DESC_DEFAULT, 0), /* LCD brightness */ + CAM_REG_TYPE_INIT (oly3040, 38, 4, CAM_DESC_DEFAULT, 0), /* LCD auto shutoff */ + CAM_REG_TYPE_INIT (oly3040, 24, 4, CAM_DESC_DEFAULT, 0), /* Camera power save */ + CAM_REG_TYPE_INIT (oly3040, 23, 4, CAM_DESC_DEFAULT, 0), /* Host power save */ + CAM_REG_TYPE_INIT (oly3040, 41, 4, CAM_DESC_DEFAULT, 0), /* time format, read only */ +}; + +static const CameraRegisterSetType olysp500uz_desc[] = { + { + N_("Picture Settings"), + SIZE_ADDR (CameraRegisterType, olysp500uz_pic_regs) + }, + { + N_("Camera Settings"), + SIZE_ADDR (CameraRegisterType, olysp500uz_cam_regs) + }, +}; + +static const CameraRegisterSetType oly750uz_desc[] = { + { + N_("Picture Settings"), + SIZE_ADDR (CameraRegisterType, oly750uz_pic_regs) + }, + { + N_("Camera Settings"), + SIZE_ADDR (CameraRegisterType, oly750uz_cam_regs) + }, +}; +static const CameraRegisterSetType oly3000z_desc[] = { + { + N_("Picture Settings"), + SIZE_ADDR (CameraRegisterType, oly3000z_pic_regs) + }, + { + /* + * Assumed that these are all the same as the 3040 + */ + N_("Camera Settings"), + SIZE_ADDR (CameraRegisterType, oly3040_cam_regs) + }, +}; + +static const char oly3040_manual[] = +N_( +"Some notes about Olympus cameras:\n" +"(1) Camera Configuration:\n" +" A zero value will take the default one (auto).\n" +"(2) Olympus C-3040Z (and possibly also the C-2040Z\n" +" and others) have a USB PC Control mode. To switch\n" +" into 'USB PC control mode', turn on the camera, open\n" +" the memory card access door and then press and\n" +" hold both of the menu and LCD buttons until the\n" +" camera control menu appears. Set it to ON.\n" +"(3) If you switch the 'LCD mode' to 'Monitor' or\n" +" 'Normal', don't forget to switch it back to 'Off'\n" +" before disconnecting. Otherwise you can't use\n" +" the camera buttons. If you end up in this\n" +" state, you should reconnect the camera to the\n" +" PC, then switch LCD to 'Off'." +); + +static const char oly750uz_manual[] = +N_( +"Olympus 750 Ultra Zoom:\n" +"(1) Olympus 750UZ has a USB PC Control mode. To switch\n" +" into 'USB PC control mode', turn on the camera, open\n" +" the memory card access door and then press and\n" +" hold both the 'OK' and 'quickview' buttons until the\n" +" camera control menu appears. Set it to control mode.\n" +"(2) If you switch the 'LCD mode' to 'Monitor' or\n" +" 'Normal', don't forget to switch it back to 'Off'\n" +" before disconnecting. Otherwise you can't use\n" +" the camera buttons. If you end up in this\n" +" state, you should reconnect the camera to the\n" +" PC, then switch LCD to 'Off'." +); + +static const char default_manual[] = +N_( +"Default sierra driver:\n\n" +" This is the default sierra driver, it\n" +" should be capable of supporting the download\n" +" and browsing of pictures on your camera.\n\n" +" Camera configuration (or preferences)\n" +" settings are based on the Olympus 3040,\n" +" and are likely incomplete. If you verify\n" +" that the configuration settings are\n" +" complete for your camera, or can contribute\n" +" code to support complete configuration,\n" +" please contact the developer mailing list.\n" +); +const CameraDescType olysp500uz_cam_desc = { olysp500uz_desc, oly750uz_manual, + SIERRA_EXT_PROTO, }; +const CameraDescType oly750uz_cam_desc = { oly750uz_desc, oly750uz_manual, + SIERRA_EXT_PROTO, }; +const CameraDescType oly3040_cam_desc = { oly3040_desc, oly3040_manual, + SIERRA_EXT_PROTO, }; +const CameraDescType oly3000z_cam_desc = { oly3000z_desc, oly3040_manual, + SIERRA_EXT_PROTO, }; +const CameraDescType sierra_default_cam_desc = { oly3040_desc, default_manual, + 0, }; diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-desc.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-desc.c new file mode 100644 index 00000000..a07a73e9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-desc.c @@ -0,0 +1,442 @@ +/* sierra-desc.c: + * + * Copyright 2002 Patrick Mansfield + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include <_stdint.h> +#include +#include + +#include + +#include +#include + +#include "sierra.h" +#include "sierra-desc.h" +#include "library.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "sierra" + +/* + * For some reason, round() does not get a prototype from math.h. + */ +extern double round(double x); + +static int +camera_cam_desc_get_value (ValueNameType *val_name_p, CameraWidgetType widge, + uint32_t reg_len, void *buff, int mask, + CameraWidget *child) +{ + if ((widge == GP_WIDGET_RADIO) || (widge == GP_WIDGET_MENU)) { + gp_widget_add_choice (child, _(val_name_p->name)); + GP_DEBUG ("get value %15s:\t%lld (0x%04llx)", + val_name_p->name, (long long)val_name_p->u.value, + (long long unsigned) val_name_p->u.value); + /* XXX where is endian handled? */ + if ((mask & *(int*) buff) == val_name_p->u.value) { + gp_widget_set_value (child, _(val_name_p->name)); + } + } else if (widge == GP_WIDGET_DATE) { + GP_DEBUG ("get value date/time %s", ctime((time_t *) buff)); + gp_widget_set_value (child, (int*) buff); + } else if (widge == GP_WIDGET_RANGE) { + float float_val, increment; + + increment = val_name_p->u.range[2]; + if (increment == 0.0) { + /* + * Use a default value. + */ + increment = 1.0; + } + GP_DEBUG ("get value range:\t%08g:%08g increment %g (via %g)", + val_name_p->u.range[0], val_name_p->u.range[1], + increment, val_name_p->u.range[2]); + gp_widget_set_range (child, val_name_p->u.range[0], + val_name_p->u.range[1], increment); + /* + * Kluge: store the value in buff as a 4 byte int, even + * though we might have read 8 bytes or more. + */ + float_val = (*(int*) buff) * increment; + gp_widget_set_value (child, &float_val); + } else if (widge == GP_WIDGET_BUTTON) { + GP_DEBUG ("get button"); + gp_widget_set_value (child, val_name_p->u.callback); + } else { + GP_DEBUG ("get value bad widget type %d", widge); + return (GP_ERROR); + } + + return (GP_OK); +} + +static int +camera_cam_desc_get_widget (Camera *camera, CameraRegisterType *reg_p, + CameraWidget *section, GPContext *context) +{ + int ind, vind, ret, value; + int mask; + char buff[1024]; + CameraWidget *child; + RegisterDescriptorType *reg_desc_p; + + GP_DEBUG ("register %d", reg_p->reg_number); + if (reg_p->reg_len == 0) { + /* + * This is 0 for GP_WIDGET_BUTTON (callbacks), since is no + * register for call backs. Frontends "get" the value, and + * call the function directly. + */ + ret = GP_OK; + } else if (reg_p->reg_len == 4) { + int rval; + ret = sierra_get_int_register (camera, reg_p->reg_number, + &rval, + context); + reg_p->reg_value = rval; + } else if (reg_p->reg_len == 8) { + /* + * reg_value is 8 bytes maximum. If you need a bigger + * value, change the reg_value size, or allocate space on + * the fly and make a union with reg_value and a void*. + */ + ret = sierra_get_string_register (camera, reg_p->reg_number, + -1, NULL, (unsigned char *)buff, (unsigned int *)&value, context); + if ((ret == GP_OK) && value != reg_p->reg_len) { + GP_DEBUG ("Bad length result %d", value); + return (GP_ERROR); + } + memcpy (®_p->reg_value, buff, reg_p->reg_len); + } else { + GP_DEBUG ("Bad register length %d", reg_p->reg_number); + return (GP_ERROR); + } + GP_DEBUG ("... '%s'.", gp_result_as_string (ret)); + if (ret < 0) { + return (ret); + } + + for (ind = 0; ind < reg_p->reg_desc_cnt; ind++) { + reg_desc_p = ®_p->reg_desc[ind]; + mask = reg_desc_p->regs_mask; + GP_DEBUG ("window name is %s", reg_desc_p->regs_long_name); + gp_widget_new (reg_desc_p->reg_widget_type, + _(reg_desc_p->regs_long_name), &child); + gp_widget_set_name (child, reg_desc_p->regs_short_name); + /* + * Setting the info for the preference settings does not + * make sense like it does for an icon button. This is + * used as the tool-tip field (mouse over hint that pops + * up after a second in gtkam). We don't want this used + * at all; setting it to space doesn't work well, so just + * set it to the same as regs_long_name. + */ + gp_widget_set_info (child, _(reg_desc_p->regs_long_name)); + GP_DEBUG ("reg_value 0x%016llx", (long long unsigned)reg_p->reg_value); + for (vind = 0; vind < reg_desc_p->reg_val_name_cnt; vind++) { + camera_cam_desc_get_value (®_desc_p->regs_value_names[vind], + reg_desc_p->reg_widget_type, reg_p->reg_len, + (char*) ®_p->reg_value, mask, child); + } + /* + * For radio and menu values: if there has been no change, it + * means the value was not set, and so it is unknown. + */ + if (((reg_desc_p->reg_widget_type == GP_WIDGET_RADIO) || + (reg_desc_p->reg_widget_type == GP_WIDGET_MENU)) && + !gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + sprintf (buff, _("%lld (unknown)"), (long long)reg_p->reg_value); + gp_widget_add_choice (child, buff); + gp_widget_set_value (child, buff); + } + gp_widget_append (section, child); + } + return (GP_OK); +} + +int +camera_get_config_cam_desc (Camera *camera, CameraWidget **window, + GPContext *context) +{ + CameraWidget *section; + int indw, indr; + const CameraDescType *cam_desc = NULL; + + GP_DEBUG ("*** camera_get_config_cam_desc"); + CHECK (camera_start (camera, context)); + gp_widget_new (GP_WIDGET_WINDOW, _("Camera Configuration"), window); + + cam_desc = camera->pl->cam_desc; + for (indw = 0; indw < 2 /* XXX sizeof () */; indw++) { + GP_DEBUG ("%s registers", cam_desc->regset[indw].window_name); + gp_widget_new (GP_WIDGET_SECTION, + _(cam_desc->regset[indw].window_name), §ion); + gp_widget_append (*window, section); + for (indr = 0; indr < cam_desc->regset[indw].reg_cnt; indr++) { + camera_cam_desc_get_widget (camera, + &cam_desc->regset[indw].regs[indr], section, + context); + } + } + return (GP_OK); +} + +static int +cam_desc_set_register (Camera *camera, CameraRegisterType *reg_p, + void *value, GPContext *context) +{ + if (reg_p->reg_get_set.method == CAM_DESC_DEFAULT) { + if (reg_p->reg_len == 4) { + /* XXX endian problem or not? */ + CHECK_STOP (camera, sierra_set_int_register + (camera, reg_p->reg_number, + *(int*)value, context)); + } else if (reg_p->reg_len <= 8) { + CHECK_STOP (camera, sierra_set_string_register (camera, + reg_p->reg_number, (char*) value, + reg_p->reg_len, context)); + } else { + /* + * Note that sizeof u.value is 8, so if you have a + * larger value to store, somehow change u.value + * size, or add a union. + */ + GP_DEBUG ("set value BAD LENGTH %d", reg_p->reg_len); + return (GP_ERROR); + } + } else if (reg_p->reg_get_set.method == CAM_DESC_SUBACTION) { + /* + * Right now, the only supported sub-action is for + * changing the LCD mode, the only other possible + * sub-actions are for testing, calibration, and + * protection mode. Just make sure the LCD mode setting + * works. + */ + CHECK_STOP (camera, sierra_sub_action (camera, + reg_p->reg_get_set.action, *(int*) value, + context)); + } else { + GP_DEBUG ("Unsupported register setting action %d", + reg_p->reg_get_set.method); + return (GP_ERROR); + } + return (GP_OK); +} + +static int +camera_cam_desc_set_value (Camera *camera, CameraRegisterType *reg_p, + RegisterDescriptorType *reg_desc_p, + ValueNameType *val_name_p, void *data, + GPContext *context) +{ + /* + * Return GP_OK if match and OK, 1 if no match, or < 0 on error. + */ + if ((reg_desc_p->reg_widget_type == GP_WIDGET_RADIO) || + (reg_desc_p->reg_widget_type == GP_WIDGET_MENU)) { + uint32_t new_value; + + GP_DEBUG ("set value comparing data '%s' with name '%s'", *(char**)data, + val_name_p->name); + if (strcmp (*(char**)data, val_name_p->name) != 0) { + return (1); + } + /* + * For masking, we might actually set the same register + * twice - once for each change in the mask, so we have to + * reset reg_value to the new value. + * + * If we must to mask u.value, that is really a bug - the + * u.value should already be masked. + * + * For registers longer than 4 bytes, we are masking + * in whatever values were already in the upper 4 bytes - + * none of the current settings (new values) are longer + * than 4 bytes. + */ + new_value = (reg_p->reg_value & ~reg_desc_p->regs_mask) | + (val_name_p->u.value & reg_desc_p->regs_mask); + reg_p->reg_value = new_value; + GP_DEBUG ("set new val 0x%x; reg val 0x%x; msk 0x%x; val 0x%x ", + new_value, (int)reg_p->reg_value, + reg_desc_p->regs_mask, (int)val_name_p->u.value); + CHECK_STOP (camera, cam_desc_set_register (camera, reg_p, + &new_value, context)); + } else if (reg_desc_p->reg_widget_type == GP_WIDGET_DATE) { + GP_DEBUG ("set new date/time %s", ctime((time_t*)data)); + CHECK_STOP (camera, cam_desc_set_register (camera, reg_p, + (int*)data, context)); + } else if (reg_desc_p->reg_widget_type == GP_WIDGET_RANGE) { + int val[2]; + float increment; + + if (reg_p->reg_get_set.method != CAM_DESC_DEFAULT) { + GP_DEBUG ("Setting range values using the non-default" + " register functions is not supported"); + return (GP_ERROR); + } + /* + * The value in *data is a float, convert it to an int. + * + * Currently no need to support any subaction here. + * + * Similiar to the masking above, if we have a register + * larger than 4 bytes, put the four bytes in the int to + * into the low four bytes of the value we want to set; + * fill the rest with whatever was read from the camera. + */ + increment = val_name_p->u.range[2]; + if (increment == 0.0) { + increment = 1.0; /* default value */ + } + GP_DEBUG ("set value range from %g inc %g", *(float*)data, + increment); + val[0] = round ((*(float*) data) / increment); + if (reg_p->reg_len == 4) { + /* + * not used but set it anyway + */ + val[1] = 0; + } else if (reg_p->reg_len == 8) { + memcpy(&val[1], ((char*)®_p->reg_value)+sizeof(val[0]), sizeof(val[0])); + /* val[1] = ((int *) ®_p->reg_value)[1]; */ + } else if (reg_p->reg_len != 4 ) { + GP_DEBUG ("Unsupported range with register length %d", + reg_p->reg_len); + return (GP_ERROR); + } + GP_DEBUG ("set value range to %d (0x%x and 0x%x)", val[0], + val[0], val[1]); + CHECK_STOP (camera, cam_desc_set_register (camera, reg_p, + &val, context)); + } else { + GP_DEBUG ("bad reg_widget_type type %d", + reg_desc_p->reg_widget_type); + return (GP_ERROR); + } + return (GP_OK); +} + +static int +camera_cam_desc_set_widget (Camera *camera, CameraRegisterType *reg_p, + CameraWidget *window, GPContext *context) +{ + int ind, vind, ret; + union value_in { + char *charp; + int val; + float flt; + } value_in; + CameraWidget *child; + RegisterDescriptorType *reg_desc_p; + + GP_DEBUG ("register %d", reg_p->reg_number); + + for (ind = 0; ind < reg_p->reg_desc_cnt; ind++) { + reg_desc_p = ®_p->reg_desc[ind]; + GP_DEBUG ("window name is %s", reg_desc_p->regs_long_name); + + if ((gp_widget_get_child_by_label (window, + _(reg_desc_p->regs_long_name), &child) >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value_in); + for (vind = 0; vind < reg_desc_p->reg_val_name_cnt; + vind++) { + ret = camera_cam_desc_set_value (camera, reg_p, + reg_desc_p, + ®_desc_p->regs_value_names[vind], + &value_in, context); + if (ret == GP_OK) { + /* + * Something got set, mark the + * widget as changed, so the user + * can repeat any actions - like + * going to the "next" picture by + * repeatedly hitting apply while + * in operation play mode. + * + * This has the side affect of + * changing whatever was just set + * twice when using the apply in + * gtkam - once when applied and + * once when OK. + */ + gp_widget_set_changed (child, 1); + + } + if (ret <= 0) { + /* + * Value was set (GP_OK is 0), or + * some an error occurred (< 0), + * don't bother checking any other + * value/name pairs. + */ + break; + } + } + } + } + return (GP_OK); +} + +int +camera_set_config_cam_desc (Camera *camera, CameraWidget *window, + GPContext *context) +{ + int wind, rind; + const CameraDescType *cam_desc = NULL; + + GP_DEBUG ("*** camera_set_config_cam_desc"); + CHECK (camera_start (camera, context)); + + cam_desc = camera->pl->cam_desc; + for (wind = 0; wind < 2 /* XXX sizeof () */; wind++) { + GP_DEBUG ("%s registers", cam_desc->regset[wind].window_name); + for (rind = 0; rind < cam_desc->regset[wind].reg_cnt; rind++) { + camera_cam_desc_set_widget (camera, + &cam_desc->regset[wind].regs[rind], window, + context); + } + } + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-desc.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-desc.h new file mode 100644 index 00000000..da234e55 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-desc.h @@ -0,0 +1,156 @@ +/* sierra_desc.h: + * + * Copyright 2002 Patrick Mansfield + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +/* + * Define a set of structures to describe the register layouts of a + * digital camera, based on the Nikon Coolpix 880 (sierra). Only camera + * configuration/settings are handled here. + * + * The lowest level structs are first, followed by the higher levels. + * + * These structures can't be in one single struct, since they are variable + * length, and each level has a slightly different set of functionallity. + * + * Generally, we have a CameraRegisterSetType with pointers to + * CameraRegisterType registers; each register in turn has pointers to + * RegisterDescriptorType's; each RegisterDescriptorType has pointers to + * ValueNameType's; the ValueNameType is a value and corresponding + * description (string). + */ + +#ifndef __SIERRA_DESC_H__ +#define __SIERRA_DESC_H__ + +#define SIZE_ADDR(type, var) (sizeof(var)/sizeof(type)), (type*) var + +#define VAL_NAME_INIT(name) \ + SIZE_ADDR(ValueNameType, name) + +#define CAM_REG_TYPE_INIT(prefix, reg, rsize, get_set, action) \ + { reg, rsize, 0, { get_set, action }, \ + SIZE_ADDR(RegisterDescriptorType, prefix##_reg_##reg), \ + } + +#define GP_REG_NO_MASK ~0 /* XXX long or int or ? */ + +typedef enum { + CAM_DESC_DEFAULT, /* use standard sierra get/set int/string + functions, depending on reg_len */ + CAM_DESC_SUBACTION, /* use standard get int/string, but use the + sierr_sub_action to set values */ +} RegGetSetType; + +typedef struct { + RegGetSetType method; + int action; /* if we are CAM_DESC_ACTION, the action to use. + * The sub-action is stored in the name-value + * field. This is probably not good enough for the + * standard action (calling sierra_action versus + * calling sierra_sub_action). + */ +} GetSetType; + +typedef struct { + union { + /* + * The register value masked with regs_mask gives the + * register value to compare or use here. Register values + * are always int, and must be converted to/from float for + * range values. The proper value to user here is based + * on the reg_len size and the reg_widget_type. + * + * For fields like the exp compensation, or the zoom, + * where the first x bytes are used, and it looks like the + * rest are a fixed value: just mask them out, and use the + * values read from the camera. + */ + int64_t value; /* GP_WIDGET_RADIO */ + float range[3]; /* GP_WIDGET_RANGE these are + min/max/stepping; if stepping is zero, + a stepping of one is used. */ + CameraWidgetCallback callback; /* GP_WIDGET_BUTTON */ + } u; + /* + * Range uses no name - the name is implicitly the value. XXX Move name + * up into a struct with value. + */ + char *name; /* name matching the value */ +} ValueNameType; + +typedef struct { + CameraWidgetType reg_widget_type; + uint32_t regs_mask; + char *regs_short_name; /* for command line use */ + char *regs_long_name; /* for gui/curses use */ + uint32_t reg_val_name_cnt; /* number of regs_value_names entries */ + ValueNameType *regs_value_names; /* list of reg value/names */ +} RegisterDescriptorType; + +/* + * XXX check usage of reg_value, maybe change it to char x[8], and + * normally type cast its usage. + */ +typedef struct { + uint32_t reg_number; /* register number */ + uint32_t reg_len; /* size in bytes of data at register */ + uint64_t reg_value; /* stored value, has no valid initial value; + * The size would have to be increased, or + * this space must be allocated for + * register values longer than 8 bytes. */ + GetSetType reg_get_set; + uint32_t reg_desc_cnt; /* number of reg_desc entries */ + RegisterDescriptorType *reg_desc; /* list of reg descriptors */ +} CameraRegisterType; + +typedef struct CameraRegisterSet { + char *window_name; + uint32_t reg_cnt; + CameraRegisterType *regs; +} CameraRegisterSetType; + +typedef struct CameraDesc { + const CameraRegisterSetType *regset; + const char * const manual; + const SierraFlags flags; +} CameraDescType; + +/* + * oly-desc.c: + */ +extern const CameraDescType sierra_default_cam_desc; +extern const CameraDescType olysp500uz_cam_desc; +extern const CameraDescType oly750uz_cam_desc; +extern const CameraDescType oly3040_cam_desc; +extern const CameraDescType oly3000z_cam_desc; + +/* + * nikon-desc.c: + */ +extern const CameraDescType cp880_cam_desc; +extern const CameraDescType cp995_cam_desc; +extern const CameraDescType cp2500_cam_desc; +extern const CameraDescType cp4300_cam_desc; + +/* + * epson-desc.c: + */ +extern const CameraDescType ep3000z_cam_desc; + +#endif /* __SIERRA_DESC_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-usbwrap.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-usbwrap.c new file mode 100644 index 00000000..f23b19d4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-usbwrap.c @@ -0,0 +1,519 @@ +/* sierra_usbwrap.c + * + * Copyright 2002 Lutz Mueller + * Copyright 2012-2013 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * + * Olympus C-3040Z (and possibly also the C-2040Z and others) have + * a USB PC Control mode in which "Sierra" protocol packets are tunneled + * inside another protocol. This file implements the wrapper protocol. + * The (ab)use of USB clear halt is not needed for this protocol. + * + * The other protocol is "SCSI via USB Mass Storage", so we can also use + * the Linux SCSI APIs. Interesting is also that the header looks a bit + * like a PTP header. + * + * IMPORTANT: In order to use this mode, the camera must be switched + * _out_ of "USB Mass Storage" mode and into "USB PC control mode". + * The images will not be accessable as a mass-storage/disk device in + * this mode, but you can control the camera, tell it to take pictures + * and download images using the protocol implemented in sierra.c. + * + * To get to the menu for switching modes, open the memory card + * access door (the camera senses this) and then press and hold + * both of the menu buttons until the camera control menu appears. + * Set it to ON. This disables the USB mass-storage support. + * + * Update 20110125: This switching might not be necessary with the new code, + * please just try. + */ + +#include "config.h" +#include "sierra-usbwrap.h" +#include "sierra.h" + +#include +#include + +#include <_stdint.h> + +#include +#include + +#define GP_MODULE "sierra" + +#define CR(result) {int r = (result); if (r < 0) return (r);} + +/* + * The following things are the way the are just to ensure that USB + * wrapper packets have the correct byte-order on all types of machines. + * Intel byte order is used instead of "network" byte order :-( + */ +typedef struct +{ unsigned char c1, c2, c3, c4; } uw32_t; /* A type for 32-bit integers */ +typedef struct +{ unsigned char c1, c2, c3, c4; } uw4c_t; /* A type for 4-byte things */ +typedef struct +{ unsigned char c1, c2; } uw2c_t; /* A type for 2-byte things? */ +static uw32_t uw_value(unsigned int value) /* Convert from host-integer to uw32_t */ +{ + uw32_t ret; + ret.c1 = (value & 0x000000ffUL); + ret.c2 = (value >> 8 & 0x000000ffUL); + ret.c3 = (value >> 16 & 0x000000ffUL); + ret.c4 = (value >> 24 & 0x000000ffUL); + return ret; +} + +static unsigned char +cmdbyte (unsigned int type, unsigned char nr) { + switch (type & SIERRA_WRAP_USB_MASK) { + case SIERRA_WRAP_USB_OLYMPUS: + return nr | 0xc0; + case SIERRA_WRAP_USB_NIKON: + return nr | 0xe0; + case SIERRA_WRAP_USB_PENTAX: + return nr | 0xd8; + default: /* should not get here */ + return 0xff; + } +} + +/* Test for equality between two uw32_t's or two uw4c_t's. */ +#define UW_EQUAL(a, b) \ +((a).c1==(b).c1 && (a).c2==(b).c2 && (a).c3==(b).c3 && (a).c4==(b).c4) + +/* + * Each of the following request types begins with USBC+SessionID and + * ends with a response from the camera of USBS+SessionID (OK). + * + * These requests always appear in a specific order: + * + * usb_wrap_write_packet: RDY(OK), CMND(OK), STAT(OK) + * usb_wrap_read_packet: RDY(OK), GETSIZE(OK), DATA(OK), STAT(OK) + */ +/* Test if camera ready */ +#define MAKE_UW_REQUEST_RDY(req,type) MAKE_UW_REQUEST_OUT(req,0x0c,cmdbyte(type, 0)) +/* Send command to camera */ +#define MAKE_UW_REQUEST_CMND(req,type) MAKE_UW_REQUEST_OUT(req,0x0c,cmdbyte(type, 1)) +/* Read data from camera */ +#define MAKE_UW_REQUEST_DATA(req,type) MAKE_UW_REQUEST_IN(req,0x0c,cmdbyte(type, 2)) +/* Get last CMND/DATA rslt */ +#define MAKE_UW_REQUEST_STAT(req,type) MAKE_UW_REQUEST_IN(req,0x0c,cmdbyte(type, 3)) +/* Get size of next DATA */ +#define MAKE_UW_REQUEST_SIZE(req,type) MAKE_UW_REQUEST_IN(req,0x0c,cmdbyte(type, 4)) +/* Get camera information */ +#define MAKE_UW_REQUEST_ID(req,type) MAKE_UW_REQUEST_IN(req,0x06,0x12) + +#define UW_PACKET_RDY ((uw4c_t){ 0x01, 0x00, 0xff, 0x9f }) +#define UW_PACKET_DATA ((uw4c_t){ 0x02, 0x00, 0xff, 0x9f }) +#define UW_PACKET_STAT ((uw4c_t){ 0x03, 0x00, 0xff, 0x9f }) + +#define UW_MAGIC_OUT ((uw4c_t){ 'U','S','B','C' }) +#define UW_MAGIC_IN ((uw4c_t){ 'U','S','B','S' }) + +#pragma pack(1) +/* This is linux/include/linux/usb/storage.h, struct bulk_cb_wrap + * 31 byte length */ +typedef struct +{ + uw4c_t magic; /* The letters U S B C for packets sent to camera */ + uw32_t tag; /* The SCSI command tag */ + uw32_t rw_length; /* Length of data to be read or written next */ + unsigned char flags; /* in / out flag mostly */ + unsigned char lun; /* 0 here */ + unsigned char length; /* of the CDB... but 0x0c is used here in the traces */ + unsigned char cdb[16]; +} uw_header_t; + +/* + * This is the end response block from the camera looks like this: + * + * This is the generic bulk style USB Storage response block. + * + * linux/include/linux/usb/storage.h, struct bulk_cs_wrap */ +typedef struct +{ + uw4c_t magic; /* The letters U S B S for packets from camera */ + uw32_t tag; /* A copy of whatever value the host made up */ + uw32_t residue; /* residual read? */ + char status; /* status byte */ +} uw_response_t; + +/* + * Data packet sent along with a UW_REQUEST_RDY: + */ +typedef struct +{ + uw32_t length; /* Length of this structure, sizeof(uw_rdy_t) */ + uw4c_t packet_type; /* Set this to UW_PACKET_RDY. */ + char zero[8]; /* 00 00 00 00 00 00 00 00 ? */ +} uw_pkout_rdy_t; + +/* + * Data packet to send along with a UW_REQUEST_DATA: + */ +typedef struct +{ + uw32_t length; /* sizeof(uw_data_t) *plus* sierra pckt after it */ + uw4c_t packet_type; /* Set this to UW_PACKET_DATA */ + char zero[56]; /* ? */ +} uw_pkout_sierra_hdr_t; + +/* + * Expected response to a UW_REQUEST_STAT: + */ +typedef struct +{ + uw32_t length; /* Length of this structure, sizeof(uw_stat_t) */ + uw4c_t packet_type; /* Compare with UW_PACKET_STAT here. */ + char zero[6]; /* 00 00 00 00 00 00 ? */ +} uw_stat_t; + +/* + * Expected response to a get size request, UW_REQUEST_SIZE: + */ +typedef struct +{ + uw32_t length; /* Length of this structure, sizeof(uw_size_t) */ + uw4c_t packet_type; /* Compare with UW_PACKET_DATA here. */ + char zero[4]; /* 00 00 00 00 ? */ + uw32_t size; /* The size of data waiting to be sent by camera */ +} uw_size_t; + +typedef struct +{ + unsigned char cmd; + char zero1[8]; + uw32_t length; + char zero2[3]; +} uw_scsicmd_t; +#pragma pack() + +static int ums_tag = 0x42424242; + +static int +scsi_wrap_cmd( + GPPort *dev, int todev, + char *cmd, unsigned int cmdlen, + char *sense, unsigned int senselen, + char *data, unsigned int size +) { + GPPortInfo info; + GPPortType type; + uw_header_t hdr; + uw_response_t rsp; + int ret; + + ret = gp_port_get_info (dev, &info); + if (ret != GP_OK) return ret; + + ret = gp_port_info_get_type (info, &type); + if (ret != GP_OK) return ret; + + if (type == GP_PORT_USB_SCSI) + /* just send it to the generic SCSI stack */ + return gp_port_send_scsi_cmd ( + dev, todev, + cmd, cmdlen, + sense, senselen, + data, size + ); + + /* Assuming plain USB, emulating SCSI ... */ + + memset(&hdr, 0, sizeof(hdr)); + hdr.magic = UW_MAGIC_OUT; + hdr.tag = uw_value(ums_tag); + ums_tag++; + hdr.rw_length = uw_value(size); + hdr.length = 12; /* seems to be always 12, even as we send 16 byte CDBs */ + hdr.flags = todev?0:(1<<7); + hdr.lun = 0; + + memcpy(hdr.cdb, cmd, cmdlen); + + /* WRITE scsi header / cdb */ + if ((ret=gp_port_write(dev, (char*)&hdr, sizeof(hdr))) < GP_OK) { + GP_DEBUG( "scsi_wrap_cmd *** FAILED to write scsi cmd" ); + return GP_ERROR_IO; + } + /* WRITE / READ data blob */ + if (todev) { + if ((ret=gp_port_write(dev, (char*)data, size)) < GP_OK) { + GP_DEBUG( "scsi_wrap_cmd *** FAILED to write scsi data" ); + return GP_ERROR_IO; + } + } else { + if ((ret=gp_port_read(dev, (char*)data, size)) < GP_OK) { + GP_DEBUG( "scsi_wrap_cmd *** FAILED to read scsi data" ); + return GP_ERROR_IO; + } + } + + /* READ RESPONSE */ + memset(&rsp, 0, sizeof(rsp)); + + GP_DEBUG( "usb_wrap_OK" ); + if ((ret = gp_port_read(dev, (char*)&rsp, sizeof(rsp))) != sizeof(rsp)) { + gp_log (GP_LOG_DEBUG, GP_MODULE, "scsi_wrap_cmd *** FAILED (%d vs %d bytes)", (int)sizeof(rsp), ret ); + if (ret < GP_OK) + return ret; + return GP_ERROR; + } + if ( !UW_EQUAL(rsp.magic, UW_MAGIC_IN) || + !UW_EQUAL(rsp.tag, hdr.tag)) + { + GP_DEBUG( "scsi_wrap_cmd wrong session *** FAILED" ); + return GP_ERROR; + } + /* + * 32bit residual length (0) and 8 bit status (0) are good. + */ + if ( rsp.residue.c1 != 0 || + rsp.residue.c2 != 0 || + rsp.residue.c3 != 0 || + rsp.residue.c4 != 0 || + rsp.status != 0) { + GP_DEBUG( "Error: scsi_wrap_cmd - residual non-0 or status %x", rsp.status); + return GP_ERROR; + } + return GP_OK; +} + +#define gp_port_send_scsi_cmd scsi_wrap_cmd + +static int +usb_wrap_RDY(gp_port* dev, unsigned int type) +{ + uw_pkout_rdy_t msg; + int ret; + char sense_buffer[32]; + uw_scsicmd_t cmd; + + GP_DEBUG( "usb_wrap_RDY" ); + + memset(&cmd,0,sizeof(cmd)); + cmd.cmd = cmdbyte(type, 0); + cmd.length = uw_value(sizeof(msg)); + + memset(&msg, 0, sizeof(msg)); + msg.length = uw_value(sizeof(msg)); + msg.packet_type = UW_PACKET_RDY; + ret = gp_port_send_scsi_cmd (dev, 1, (char*)&cmd, sizeof(cmd), + sense_buffer, sizeof(sense_buffer), (char*)&msg, sizeof(msg)); + if (retlength = uw_value(msg_len); + msg->packet_type = UW_PACKET_DATA; + memcpy((char*)msg + sizeof(*msg), sierra_msg, sierra_len); + + GP_DEBUG( "usb_wrap_CMND writing %i", msg_len); + + ret = gp_port_send_scsi_cmd (dev, 1, (char*)&cmd, sizeof(cmd), + sense_buffer, sizeof(sense_buffer), (char*)msg, msg_len); + free(msg); + + if (ret < GP_OK) + { + GP_DEBUG( "usb_wrap_CMND ** WRITE FAILED"); + return ret; + } + return GP_OK; +} + +static int +usb_wrap_SIZE(gp_port* dev, unsigned int type, uw32_t* size) +{ + uw32_t xlen; + uw_size_t msg; + int ret; + char sense_buffer[32]; + uw_scsicmd_t cmd; + + GP_DEBUG( "usb_wrap_SIZE" ); + + memset(&cmd, 0, sizeof(cmd)); + cmd.cmd = cmdbyte(type, 4); + cmd.length = uw_value(sizeof(msg)); + + memset(&msg, 0, sizeof(msg)); + ret = gp_port_send_scsi_cmd (dev, 0, (char*)&cmd, sizeof(cmd), + sense_buffer, sizeof(sense_buffer), (char*)&msg, sizeof(msg)); + + if (ret < GP_OK) + { + GP_DEBUG( "usb_wrap_SIZE *** FAILED" ); + return ret; + } + xlen = uw_value(sizeof(msg)); + if (!UW_EQUAL(msg.length, xlen) || !UW_EQUAL(msg.packet_type, UW_PACKET_DATA)) + { + GP_DEBUG( "usb_wrap_SIZE got bad packet *** FAILED" ); + return GP_ERROR; + } + + if (msg.zero[0] != 0 || + msg.zero[1] != 0 || + msg.zero[2] != 0 || + msg.zero[3] != 0) + { + GP_DEBUG( "warning: usb_wrap_SIZE found non-zero bytes (ignoring)" ); + } + *size = msg.size; + return GP_OK; +} + +static int +usb_wrap_DATA (GPPort *dev, unsigned int type, char *sierra_response, int *sierra_len, uw32_t size) +{ + uw_pkout_sierra_hdr_t* msg; + unsigned int msg_len; + int ret; + char sense_buffer[32]; + uw_scsicmd_t cmd; + + GP_DEBUG( "usb_wrap_DATA" ); + + msg_len = 0; + msg_len = msg_len * 256 + (unsigned int)(size.c4); + msg_len = msg_len * 256 + (unsigned int)(size.c3); + msg_len = msg_len * 256 + (unsigned int)(size.c2); + msg_len = msg_len * 256 + (unsigned int)(size.c1); + + if (*sierra_len < msg_len - sizeof(*msg)) + { + GP_DEBUG( "usb_wrap_read_packet buffer too small! (%i < %i) *** FAILED", *sierra_len, msg_len); + return GP_ERROR; + } + *sierra_len = msg_len - sizeof(*msg); + + msg = (uw_pkout_sierra_hdr_t*)calloc(msg_len,1); + + memset(&cmd, 0, sizeof(cmd)); + cmd.cmd = cmdbyte(type, 2); + cmd.length = uw_value(msg_len); + + ret = gp_port_send_scsi_cmd (dev, 0, (char*)&cmd, sizeof(cmd), + sense_buffer, sizeof(sense_buffer), (char*)msg, msg_len); + + if (ret < GP_OK) + { + GP_DEBUG( "usb_wrap_DATA FAILED" ); + free(msg); + return ret; + } + memcpy(sierra_response, (char*)msg + sizeof(*msg), *sierra_len); + free(msg); + return GP_OK; +} + +/* + * ------------------------------------------------------------------------- + * Here are the two public functions of this C file: + * ------------------------------------------------------------------------- + */ +int +usb_wrap_write_packet (GPPort *dev, unsigned int type, char *sierra_msg, int sierra_len) +{ + GP_DEBUG ("usb_wrap_write_packet"); + + CR (usb_wrap_RDY (dev, type)); + CR (usb_wrap_CMND (dev, type, sierra_msg, sierra_len)); + CR (usb_wrap_STAT (dev, type)); + + return GP_OK; +} + +int +usb_wrap_read_packet (GPPort *dev, unsigned int type, char *sierra_response, int sierra_len) +{ + uw32_t uw_size; + + GP_DEBUG ("usb_wrap_read_packet"); + + CR (usb_wrap_RDY (dev, type)); + CR (usb_wrap_SIZE (dev, type, &uw_size)); + CR (usb_wrap_DATA (dev, type, sierra_response, &sierra_len, uw_size)); + CR (usb_wrap_STAT (dev, type)); + + return sierra_len; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-usbwrap.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-usbwrap.h new file mode 100644 index 00000000..1d0ed7c3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra-usbwrap.h @@ -0,0 +1,29 @@ +/* sierra_usbwrap.h + * + * Copyright 2002 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __SIERRA_USBWRAP_H__ +#define __SIERRA_USBWRAP_H__ + +#include + +int usb_wrap_write_packet (GPPort *dev, unsigned int type, char *sierra_msg, int sierra_len); +int usb_wrap_read_packet (GPPort *dev, unsigned int type, char *sierra_response, int sierra_len); + +#endif /* __SIERRA_USBWRAP_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra.c new file mode 100644 index 00000000..6d595e10 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra.c @@ -0,0 +1,2345 @@ +/* sierra.c: + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#define _DEFAULT_SOURCE + +#include "config.h" +#include "sierra.h" + +#include +#include <_stdint.h> +#include +#include +#include + +#include +#include + +#include "sierra-desc.h" +#include "library.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "sierra" + +static int get_jpeg_data(const char *data, int data_size, char **jpeg_data, int *jpeg_size); + +/* Useful markers */ +static const char JPEG_SOI_MARKER[] = { (char)0xFF, (char)0xD8, '\0' }; +static const char JPEG_SOF_MARKER[] = { (char)0xFF, (char)0xD9, '\0' }; +static const char JPEG_APP1_MARKER[] = { (char)0xFF, (char)0xE1, '\0' }; +static const char TIFF_SOI_MARKER[] = { (char)0x49, (char)0x49, (char)0x2A, (char)0x00, (char)0x08, '\0' }; + +static struct { + const char *manuf; + const char *model; + SierraModel sierra_model; + int usb_vendor; + int usb_product; + SierraFlags flags; + struct CameraDesc const *cam_desc; +} sierra_cameras[] = { + /* Manufacturer, Camera Model, Sierra Model, + USBvendor id, USB product id, + USB wrapper protocol, CameraDesc) */ + {"Agfa", "ePhoto 307", SIERRA_MODEL_DEFAULT, 0, 0, + SIERRA_NO_51, NULL}, + {"Agfa", "ePhoto 780", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Agfa", "ePhoto 780C", SIERRA_MODEL_DEFAULT, 0, 0, + SIERRA_NO_51 | SIERRA_LOW_SPEED, NULL }, + {"Agfa", "ePhoto 1280", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Agfa", "ePhoto 1680", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + /* unclear, if driven by fuji driver or by sierra driver */ + {"Apple", "QuickTake 200 (Sierra Mode)", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Chinon", "ES-1000", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Epson", "PhotoPC 500", SIERRA_MODEL_EPSON, 0, 0, 0, NULL }, + {"Epson", "PhotoPC 550", SIERRA_MODEL_EPSON, 0, 0, 0, NULL }, + {"Epson", "PhotoPC 600", SIERRA_MODEL_EPSON, 0, 0, 0, NULL }, + {"Epson", "PhotoPC 650", SIERRA_MODEL_EPSON, 0, 0, + SIERRA_NO_51 | SIERRA_LOW_SPEED, NULL }, + {"Epson", "PhotoPC 700", SIERRA_MODEL_EPSON, 0, 0, SIERRA_NO_51, NULL }, + {"Epson", "PhotoPC 800", SIERRA_MODEL_EPSON, 0, 0, 0, NULL }, + {"Epson", "PhotoPC 850z", SIERRA_MODEL_EPSON, 0x4b8, 0x402, 0, NULL}, + {"Epson", "PhotoPC 3000z", SIERRA_MODEL_CAM_DESC, 0x4b8, 0x403, 0, &ep3000z_cam_desc}, + {"Nikon", "CoolPix 100", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Nikon", "CoolPix 300", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Nikon", "CoolPix 700", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Nikon", "CoolPix 800", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Nikon", "CoolPix 880",SIERRA_MODEL_CAM_DESC, 0x04b0, 0x0103, 0, + &cp880_cam_desc}, + {"Nikon", "CoolPix 900", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Nikon", "CoolPix 900S", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Nikon", "CoolPix 910", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Nikon", "CoolPix 950", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Nikon", "CoolPix 950S", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Nikon", "CoolPix 990", SIERRA_MODEL_DEFAULT, 0x04b0, 0x0102, 0, NULL}, + {"Nikon", "CoolPix 995", SIERRA_MODEL_CAM_DESC, 0x04b0, 0x0104, + SIERRA_WRAP_USB_OLYMPUS, + &cp995_cam_desc}, + + {"Nikon", "CoolPix 2500 (Sierra Mode)", SIERRA_MODEL_CAM_DESC, 0x04b0, 0x0108, + SIERRA_WRAP_USB_NIKON | SIERRA_NO_51, + &cp2500_cam_desc}, + + {"Nikon", "CoolPix 2100 (Sierra Mode)", SIERRA_MODEL_CAM_DESC, 0x04b0, 0x0116, + SIERRA_WRAP_USB_NIKON | SIERRA_NO_51, + &cp2500_cam_desc}, + + {"Nikon", "CoolPix 4300 (Sierra Mode)", SIERRA_MODEL_CAM_DESC, 0x04b0, 0x010e, + SIERRA_WRAP_USB_NIKON | SIERRA_NO_51, + &cp4300_cam_desc}, + {"Nikon", "CoolPix 3500 (Sierra Mode)", SIERRA_MODEL_CAM_DESC, 0x04b0, 0x0110, + SIERRA_WRAP_USB_NIKON | SIERRA_NO_51, + &cp880_cam_desc}, + {"Nikon", "D100 (Sierra Mode)", SIERRA_MODEL_CAM_DESC, 0x04b0, 0x0401, + SIERRA_WRAP_USB_NIKON | SIERRA_NO_51, + &cp880_cam_desc}, + {"Olympus", "D-100Z", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-200L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-220L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-300L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-320L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-330R", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-340L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-340R", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-360L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-400L Zoom", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-450Z", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-460Z", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-500L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-600L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-600XL", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "D-620L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-400", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-400L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-410", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-410L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-420", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-420L", SIERRA_MODEL_OLYMPUS, 0, 0, SIERRA_MID_SPEED, NULL }, + {"Olympus", "C-700UZ", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x105, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, + {"Olympus", "C-750UZ", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x105, + SIERRA_WRAP_USB_OLYMPUS, &oly750uz_cam_desc}, + {"Olympus", "C-770UZ", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x105, + SIERRA_WRAP_USB_OLYMPUS, &oly750uz_cam_desc}, + {"Olympus", "C-800", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-800L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-820", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-820L", SIERRA_MODEL_OLYMPUS, 0, 0, + SIERRA_MID_SPEED, NULL }, + {"Olympus", "C-830L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-840L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-860L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-900 Zoom", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-900L Zoom", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1082569&group_id=8874&atid=358874 + * strangely only works with low speed + */ + {"Olympus", "C-990 Zoom", SIERRA_MODEL_OLYMPUS, 0, 0, SIERRA_LOW_SPEED, NULL }, + {"Olympus", "C-1000L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-1400L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-1400XL", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-2000Z", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-2020Z", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + {"Olympus", "C-2040Z", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x105, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, + {"Olympus", "C-2100UZ", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x100, 0, + &oly3040_cam_desc}, + {"Olympus", "C-2500L", SIERRA_MODEL_OLYMPUS, 0, 0, 0, NULL }, + /* + * Note: The 3000z can't be auto selected, as it has the same USB + * id as the 2040 (and others, but the others are still using the + * the 3040 desc), so you have to set the camera "model" via the + * front end (gtkam or gphoto2 command line) in order to use it. + */ + {"Olympus", "C-3000Z", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x100, 0, + &oly3000z_cam_desc}, + {"Olympus", "C-3020Z", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x105, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, + {"Olympus", "C-3030Z", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x100, 0, + &oly3040_cam_desc}, + {"Olympus", "C-3040Z", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x105, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, + {"Olympus", "C-4040Z", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x105, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, + {"Olympus", "C-5050Z", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x105, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, + {"Olympus", "SP-500UZ", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x109, + SIERRA_WRAP_USB_OLYMPUS, &olysp500uz_cam_desc}, + {"Olympus", "C-370Z", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x109, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, + {"Olympus", "X-450", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x109, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, + {"Olympus", "D-535Z", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x109, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, + {"Olympus", "fe-200", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x109, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, +/* + {"Olympus", "E-520", SIERRA_MODEL_CAM_DESC, 0x07b4, 0x110, + SIERRA_WRAP_USB_OLYMPUS, &oly3040_cam_desc}, +*/ + {"Panasonic", "Coolshot NV-DCF5E", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + + {"Pentax", "Optio 450", SIERRA_MODEL_DEFAULT, 0x0a17,0x0007, SIERRA_WRAP_USB_PENTAX, NULL }, + {"Pentax", "Optio 33WR", SIERRA_MODEL_DEFAULT, 0x0a17,0x0009, SIERRA_WRAP_USB_PENTAX, NULL }, + /* has only very bare reactions + {"Pentax", "Optio W90 (Sierra Mode)", SIERRA_MODEL_DEFAULT, 0x0a17,0x00f6, SIERRA_WRAP_USB_PENTAX, NULL }, + */ + + {"Polaroid", "PDC 640", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Polaroid", "PDC 2300Z", SIERRA_MODEL_DEFAULT, 0x0546, 0x0daf, + SIERRA_SKIP_INIT, NULL }, + {"Sanyo", "DSC-X300", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Sanyo", "DSC-X350", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Sanyo", "VPC-G200", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Sanyo", "VPC-G200EX", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Sanyo", "VPC-G210", SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + {"Sanyo", "VPC-G250", SIERRA_MODEL_DEFAULT, 0, 0, SIERRA_NO_51, NULL }, + {"Sierra Imaging", "SD640",SIERRA_MODEL_DEFAULT, 0, 0, 0, NULL }, + /* + * Added by Sean Bruno on July 22, 2004 to support the Toshiba + * cameras below. + */ + {"Toshiba", "PDR-M60", SIERRA_MODEL_DEFAULT, 0x1132, 0x4332, + SIERRA_NO_51 | SIERRA_NO_REGISTER_40 | SIERRA_NO_USB_CLEAR, + NULL}, + {"Toshiba", "PDR-M61", SIERRA_MODEL_DEFAULT, 0x1132, 0x4335, + SIERRA_NO_51 | SIERRA_NO_REGISTER_40 | SIERRA_NO_USB_CLEAR, + NULL}, + {"Toshiba", "PDR-M65", SIERRA_MODEL_DEFAULT, 0x1132, 0x4334, + SIERRA_NO_51 | SIERRA_NO_REGISTER_40 | SIERRA_NO_USB_CLEAR, + NULL}, + {NULL, NULL, 0, 0, 0, 0, NULL} +}; + +static struct { + SierraSpeed speed; + int bit_rate; +} SierraSpeeds[] = { + {SIERRA_SPEED_9600 , 9600}, + {SIERRA_SPEED_19200 , 19200}, + {SIERRA_SPEED_38400 , 38400}, + {SIERRA_SPEED_57600 , 57600}, + {SIERRA_SPEED_115200, 115200}, + {0, 0} +}; + +int camera_id (CameraText *id) +{ + strcpy(id->text, "sierra"); + + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) +{ + int x; + CameraAbilities a; + + for (x = 0; sierra_cameras[x].manuf; x++) { + memset(&a, 0, sizeof(a)); + strcpy (a.model, sierra_cameras[x].manuf); + strcat (a.model, ":"); + strcat (a.model, sierra_cameras[x].model); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + if ((sierra_cameras[x].usb_vendor > 0) && + (sierra_cameras[x].usb_product > 0)) { +#ifdef linux + /* The USB SCSI generic passthrough driver only works on Linux currently */ + if (sierra_cameras[x].flags & (SIERRA_WRAP_USB_OLYMPUS|SIERRA_WRAP_USB_PENTAX|SIERRA_WRAP_USB_NIKON)) + a.port |= GP_PORT_USB_SCSI; + else +#endif + a.port |= GP_PORT_USB; + } + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + if (sierra_cameras[x].flags & SIERRA_LOW_SPEED) { + /* + * Camera supports 9600 -> 38400 + */ + a.speed[3] = 0; + } else { + a.speed[3] = 57600; + if (sierra_cameras[x].flags & SIERRA_MID_SPEED) { + /* + * Camera supports 9600 -> 57600. + */ + a.speed[4] = 0; + } else { + a.speed[4] = 115200; + a.speed[5] = 0; + } + } + a.operations = GP_OPERATION_CAPTURE_IMAGE | + GP_OPERATION_CAPTURE_PREVIEW | + GP_OPERATION_CONFIG; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW | + GP_FILE_OPERATION_AUDIO; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL | + GP_FOLDER_OPERATION_PUT_FILE; + a.usb_vendor = sierra_cameras[x].usb_vendor; + a.usb_product = sierra_cameras[x].usb_product; + gp_abilities_list_append (list, a); + } + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + + CHECK (camera_start (camera, context)); + CHECK_STOP (camera, sierra_list_files (camera, folder, list, context)); + return (camera_stop (camera, context)); +} + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + + CHECK (camera_start (camera, context)); + CHECK_STOP (camera, sierra_list_folders (camera, folder, list, context)); + return (camera_stop (camera, context)); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + int n; + SierraPicInfo i; + + /* + * Get the file number from the CameraFilesystem. We need numbers + * starting with 1. + */ + CHECK (n = gp_filesystem_number (camera->fs, folder, filename, + context)); + n++; + + info->file.fields = GP_FILE_INFO_NONE; + info->preview.fields = GP_FILE_INFO_NONE; + info->audio.fields = GP_FILE_INFO_NONE; + info->file.permissions = GP_FILE_PERM_READ; + + /* + * Get information about this image. Don't make this fatal as + * at least the "Agfa ePhoto307" doesn't support this command. + */ + CHECK (camera_start (camera, context)); + CHECK_STOP (camera, sierra_change_folder (camera, folder, context)); + memset (&i, 0, sizeof (SierraPicInfo)); + CHECK_STOP (camera, sierra_get_pic_info (camera, n, &i, context)); + /* Size of file */ + if (i.size_file) { + info->file.fields |= GP_FILE_INFO_SIZE; + info->file.size = i.size_file; + } + + /* Size of preview */ + if (i.size_preview) { + info->preview.fields |= GP_FILE_INFO_SIZE; + info->preview.size = i.size_preview; + } + + /* Audio data? */ + if (i.size_audio) { + /* Size */ + info->audio.size = i.size_audio; + info->audio.fields |= GP_FILE_INFO_SIZE; + + /* Type */ + strcpy (info->audio.type, GP_MIME_WAV); + info->audio.fields |= GP_FILE_INFO_TYPE; + } + +#if 0 /* need to add GMT -> local conversion first */ + if (i.date) { + info->file.fields |= GP_FILE_INFO_MTIME; + info->file.mtime = i.date; /* FIXME: convert from GMT to localtime */ + } +#endif + /* Type of image and preview? */ + if (strstr (filename, ".MOV") != NULL) { + strcpy (info->file.type, GP_MIME_QUICKTIME); + strcpy (info->preview.type, GP_MIME_JPEG); + } else if (strstr (filename, ".TIF") != NULL) { + strcpy (info->file.type, GP_MIME_TIFF); + strcpy (info->preview.type, GP_MIME_TIFF); + } else { + strcpy (info->file.type, GP_MIME_JPEG); + strcpy (info->preview.type, GP_MIME_JPEG); + } + info->file.fields |= GP_FILE_INFO_TYPE; + info->preview.fields |= GP_FILE_INFO_TYPE; + + /* Image protected? */ + info->file.fields |= GP_FILE_INFO_PERMISSIONS; + if (i.locked == SIERRA_LOCKED_NO) + info->file.permissions |= GP_FILE_PERM_DELETE; + + return (camera_stop (camera, context)); +} + +static int +set_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo info, void *data, GPContext *context) +{ + Camera *camera = data; + int n; + SierraPicInfo i; + + CHECK (n = gp_filesystem_number (camera->fs, folder, filename, context)); + n++; + + CHECK (camera_start (camera, context)); + CHECK_STOP (camera, sierra_change_folder (camera, folder, context)); + CHECK_STOP (camera, sierra_get_pic_info (camera, n, &i, context)); + + if (info.file.fields & GP_FILE_INFO_PERMISSIONS) { + if (info.file.permissions & GP_FILE_PERM_DELETE) { + if (i.locked == SIERRA_LOCKED_YES) { + CHECK_STOP (camera, sierra_set_locked (camera, + n, SIERRA_LOCKED_NO, context)); + } + } else { + if (i.locked == SIERRA_LOCKED_NO) { + CHECK_STOP (camera, sierra_set_locked (camera, + n, SIERRA_LOCKED_YES, context)); + } + } + } + + return (camera_stop (camera, context)); +} + +int +camera_start (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + unsigned int i; + SierraSpeed speed; + + GP_DEBUG ("Establishing connection"); + + switch (camera->port->type) { + case GP_PORT_SERIAL: + + /* If needed, change speed. */ + CHECK (gp_port_get_settings (camera->port, &settings)); + if (camera->pl->speed != settings.serial.speed) { + for (i = 0; SierraSpeeds[i].bit_rate; i++) + if (camera->pl->speed == + SierraSpeeds[i].bit_rate) + break; + if (SierraSpeeds[i].bit_rate) + speed = SierraSpeeds[i].speed; + else { + GP_DEBUG ("Invalid speed %i. Using 19200 " + "(default).", camera->pl->speed); + speed = SIERRA_SPEED_19200; + } + CHECK (sierra_set_speed (camera, speed, context)); + } + break; + + case GP_PORT_USB: + case GP_PORT_USB_SCSI: + CHECK (gp_port_set_timeout (camera->port, 5000)); + break; + default: + break; + } + + return (GP_OK); +} + +int +camera_stop (Camera *camera, GPContext *context) +{ + GP_DEBUG ("Closing connection"); + + switch (camera->port->type) { + case GP_PORT_SERIAL: + CHECK (sierra_set_speed (camera, SIERRA_SPEED_19200, context)); + break; + default: + break; + } + + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("sierra camera_exit"); + + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + + return (GP_OK); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int regd, n; + char *jpeg_data = NULL; + int jpeg_size; + const char *data, *mime_type; + long unsigned int size; + int download_size, audio_info[8]; + unsigned int transferred; + + /* + * Get the file number from the CameraFileSystem. + * We need file numbers starting with 1. + */ + CHECK (n = gp_filesystem_number (camera->fs, folder, filename, context)); + n++; + + /* In which register do we have to look for data? */ + switch (type) { + case GP_FILE_TYPE_PREVIEW: + case GP_FILE_TYPE_EXIF: + regd = 15; + break; + case GP_FILE_TYPE_NORMAL: + regd = 14; + break; + case GP_FILE_TYPE_AUDIO: + regd = 44; + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + + /* Set the working folder */ + CHECK (camera_start (camera, context)); + CHECK_STOP (camera, sierra_change_folder (camera, folder, context)); + + /* + * We need the file size in order to display progress information. + * Since we _can_ run without progress information, make failures + * here not prevent the download - but the failure should still + * show up in any logs. + * + * Some cameras do not return anything useful for register 47, so + * don't try to use it at all (via sierra_get_pic_info) here. + */ + download_size = 0; + switch (type) { + case GP_FILE_TYPE_PREVIEW: + case GP_FILE_TYPE_EXIF: + CHECK_STOP (camera, sierra_get_size(camera, 13, n, &download_size, context)); + break; + case GP_FILE_TYPE_NORMAL: + CHECK_STOP (camera, sierra_get_size(camera, 12, n, &download_size, context)); + break; + case GP_FILE_TYPE_AUDIO: + CHECK_STOP (camera, sierra_get_string_register (camera, 43, n, NULL, + (unsigned char *) &audio_info, &transferred, context)); + if (transferred == 0) + download_size = 0; + else + download_size = audio_info[0]; + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + + /* Get the file */ + CHECK_STOP (camera, sierra_get_string_register (camera, regd, n, + file, NULL, (unsigned int *)&download_size, context)); + if (download_size == 0) { + /* + * Assume a failure. At least coolpix 880 returns no error + * and no data when asked to download audio. + */ + return (GP_ERROR_NOT_SUPPORTED); + } + CHECK (camera_stop (camera, context)); + + /* Now get the data and do some post-processing */ + CHECK (gp_file_get_data_and_size (file, &data, &size)); + switch (type) { + case GP_FILE_TYPE_PREVIEW: + + /* * Thumbnails are always JPEG files (as far as we know...) */ + CHECK (gp_file_set_mime_type (file, GP_MIME_JPEG)); + + /* + * Some camera (e.g. Epson 3000z) send the EXIF application + * data as thumbnail of a picture. The JPEG file need to be + * extracted. Equally for movies, the JPEG thumbnail is + * contained within a .MOV file. It needs to be extracted. + */ + get_jpeg_data (data, size, &jpeg_data, &jpeg_size); + + if (jpeg_data) { + /* Append data to the output file */ + gp_file_set_data_and_size (file, jpeg_data, jpeg_size); + } else { + /* No valid JPEG data found */ + return GP_ERROR_CORRUPTED_DATA; + } + + break; + case GP_FILE_TYPE_NORMAL: + + /* + * Detect the mime type. If the resulting mime type is + * GP_MIME_RAW, manually set GP_MIME_QUICKTIME. + */ + CHECK (gp_file_detect_mime_type (file)); + CHECK (gp_file_get_mime_type (file, &mime_type)); + if (!strcmp (mime_type, GP_MIME_RAW)) + CHECK (gp_file_set_mime_type (file, GP_MIME_QUICKTIME)); + break; + + case GP_FILE_TYPE_AUDIO: + CHECK (gp_file_set_mime_type (file, GP_MIME_WAV)); + break; + + default: + return (GP_ERROR_NOT_SUPPORTED); + } + + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + int count; + + GP_DEBUG ( + "*** sierra_folder_delete_all"); + GP_DEBUG ("*** folder: %s", folder); + + /* Set the working folder and delete all pictures there */ + CHECK (camera_start (camera, context)); + CHECK_STOP (camera, sierra_change_folder (camera, folder, context)); + CHECK_STOP (camera, sierra_delete_all (camera, context)); + + /* + * Mick Grant found out that his + * Nicon CoolPix 880 won't have deleted any picture at this point. + * It seems that those cameras just acknowledge the command but do + * nothing in the end. Therefore, we have to count the number of + * pictures that are now on the camera. If there indeed are any + * pictures, return an error. libgphoto2 will then try to manually + * delete them one-by-one. + */ + CHECK_STOP (camera, sierra_get_int_register (camera, 10, &count, context)); + if (count > 0) + return (GP_ERROR); + + return (camera_stop (camera, context)); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int n; + unsigned int id; + + GP_DEBUG ("*** sierra_file_delete"); + GP_DEBUG ("*** folder: %s", folder); + GP_DEBUG ("*** filename: %s", filename); + + id = gp_context_progress_start (context, 4, "%s", filename); + /* + * XXX the CHECK() macro's don't allow for cleanup on error. + */ + /* Get the file number from the CameraFilesystem */ + gp_context_progress_update (context, id, 0); + CHECK (n = gp_filesystem_number (camera->fs, folder, filename, context)); + /* Set the working folder and delete the file */ + CHECK (camera_start (camera, context)); + CHECK_STOP (camera, sierra_change_folder (camera, folder, context)); + /* + * The following command takes a while, and there is no way to add + * a nice progress bar, since it is a single sierra_action call. + * so multiple gp_context_progress_update () calls can not add + * anything. + */ + CHECK_STOP (camera, sierra_delete (camera, n + 1, context)); + CHECK (camera_stop (camera, context)); + gp_context_progress_stop (context, id); + return (GP_OK); +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + CHECK (camera_start (camera, context)); + CHECK_STOP (camera, sierra_capture (camera, type, path, context)); + CHECK (camera_stop (camera, context)); + + return (GP_OK); +} + +static int +camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + CHECK (camera_start (camera, context)); + CHECK_STOP (camera, sierra_capture_preview (camera, file, context)); + CHECK (camera_stop (camera, context)); + + return (GP_OK); +} + +static int +put_file_func (CameraFilesystem * fs, const char *folder, const char *filename, + CameraFileType type, CameraFile * file, void *data, GPContext *context) +{ + Camera *camera = data; + char *picture_folder; + int ret; + const char *data_file; + long unsigned int data_size; + int available_memory; + + GP_DEBUG ("*** put_file_func"); + GP_DEBUG ("*** folder: %s", folder); + GP_DEBUG ("*** filename: %s", filename); + + if (type != GP_FILE_TYPE_NORMAL) + return GP_ERROR_BAD_PARAMETERS; + + /* Check the size */ + CHECK (gp_file_get_data_and_size (file, &data_file, &data_size)); + if ( data_size == 0 ) { + gp_context_error (context, + _("The file to be uploaded has a null length")); + return GP_ERROR_BAD_PARAMETERS; + } + + /* Initialize the camera */ + CHECK (camera_start (camera, context)); + + /* Check the battery capacity */ + CHECK (sierra_check_battery_capacity (camera, context)); + + /* Check the available memory */ + CHECK (sierra_get_memory_left(camera, &available_memory, context)); + if (available_memory < data_size) { + gp_context_error (context, + _("Not enough memory available on the memory card")); + return GP_ERROR_NO_MEMORY; + } + + /* Get the name of the folder containing the pictures */ + if ( (ret = sierra_get_picture_folder(camera, &picture_folder)) != GP_OK ) { + gp_context_error (context, + _("Cannot retrieve the name of the folder containing the pictures")); + return ret; + } + + /* Check the destination folder is the folder containing the pictures. + Otherwise, the upload is not supported by the camera. */ + if ( strcmp(folder, picture_folder) ) { + gp_context_error (context, _("Upload is supported into the '%s' folder only"), + picture_folder); + free(picture_folder); + return GP_ERROR_NOT_SUPPORTED; + } + free(picture_folder); + + /* It is not required to set the destination folder: the command + will be ignored by the camera and the uploaded file will be put + into the picure folder */ + + /* Upload the file */ + CHECK_STOP (camera, sierra_upload_file (camera, file, context)); + + return (camera_stop (camera, context)); +} + +#ifdef UNUSED_CODE +static void dump_register (Camera *camera, GPContext *context) +{ + int ret, value, i; + const char *description[] = { + "?", /* 0 */ + "resolution", + "date", + "shutter speed", + "current image number", + "aperture", + "color mode", + "flash mode", + "?", + "?", + "frames taken", /* 10 */ + "frames left", + "size of current image", + "size of thumbnail of current image", + "current preview (captured)", + "?", + "battery life", + "?", + "?", + "brightness/contrast", + "white balance", /* 20 */ + "?", + "camera id", + "auto off (host)", + "auto off (field)", + "serial number", + "software revision", + "?", + "memory left", + "?", + "?", /* 30 */ + "?", + "?", + "lens mode", + "?", + "lcd brightness", + "?", + "?", + "lcd auto off", + "?", + "?", /* 40 */ + "?", "?", "?", "?", "?", "?", "?", "?", "?", + "?", /* 50 */ + "?", "?", "?", "?", "?", "?", "?", "?", "?", + "?", /* 60 */ + "?", "?", "?", "?", "?", "?", "?", "?", "?", + "spot metering mode", /* 70 */ + "?", + "zoom", + "?", "?", "?", "?", "?", "?", + "current filename", + "?", /* 80 */ + "?", "?", + "number of folders in current folder/folder number", + "current folder name", + "?", "?", "?", "?", "?", + "?", /* 90 */ + "?", "?", "?", "?", "?", "?", "?", "?", "?", + "?", /* 100 */ + "?", "?", "?", "?", "?", "?", "?", "?", "?", + "?", /* 110 */ + "?", "?", "?", "?", "?", "?", "?", "?", "?", + "?", /* 120 */ + "?", "?", "?", "?", "?", "?", "?", "?", "?", + "?" /* 130 */ + }; + + + GP_DEBUG ("*** Register:"); + for (i = 0; i < 128; i++) { + ret = sierra_get_int_register (camera, i, &value, context); + if (ret >= 0) + GP_DEBUG ( + "*** %3i: %12i (%s)", i, value, + description [i]); + } +} +#endif + +static int +camera_get_config_olympus (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *child; + CameraWidget *section; + char t[1024]; + int ret, value; + float float_value; + + GP_DEBUG ("*** camera_get_config_olympus"); + + CHECK (camera_start (camera, context)); + + gp_widget_new (GP_WIDGET_WINDOW, _("Camera Configuration"), window); + gp_widget_new (GP_WIDGET_SECTION, _("Picture Settings"), §ion); + gp_widget_append (*window, section); + + /* Resolution */ + GP_DEBUG ("Resolution..."); + ret = sierra_get_int_register (camera, 1, &value, context); + GP_DEBUG ("... '%s'.", gp_result_as_string (ret)); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RADIO, _("Resolution"), &child); + gp_widget_add_choice (child, _("Auto")); + gp_widget_add_choice (child, _("Standard")); + gp_widget_add_choice (child, _("High")); + gp_widget_add_choice (child, _("Best")); + + switch (value) { + case 0: strcpy (t, _("Auto")); + break; + case 1: strcpy (t, _("Standard")); + break; + case 2: strcpy (t, _("High")); + break; + case 3: strcpy (t, _("Best")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Shutter Speed */ + ret = sierra_get_int_register (camera, 3, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RANGE, + _("Shutter Speed (microseconds, 0 auto)"), + &child); + gp_widget_set_range (child, 0, 2000000, 1); + float_value = value; + gp_widget_set_value (child, &float_value); + gp_widget_append (section, child); + } + + /* Aperture */ + ret = sierra_get_int_register (camera, 5, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RADIO, _("Aperture"), &child); + gp_widget_add_choice (child, _("Auto")); + gp_widget_add_choice (child, _("Low")); + gp_widget_add_choice (child, _("Medium")); + gp_widget_add_choice (child, _("High")); + + switch (value) { + case 0: strcpy (t, _("Auto")); + break; + case 1: strcpy (t, _("Low")); + break; + case 2: strcpy (t, _("Medium")); + break; + case 3: strcpy (t, _("High")); + break; + default: + sprintf(t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Color Mode */ + ret = sierra_get_int_register (camera, 6, &value, context); + if (ret >= 0) { + /* + * Those values are for a C-2020 Z. If your model differs, + * we have to distinguish models here. + */ + gp_widget_new (GP_WIDGET_RADIO, _("Color Mode"), &child); + gp_widget_add_choice (child, _("Normal")); + gp_widget_add_choice (child, _("Black/White")); + gp_widget_add_choice (child, _("Sepia")); + gp_widget_add_choice (child, _("White Board")); + gp_widget_add_choice (child, _("Black Board")); + + switch (value) { + case 0: strcpy (t, _("Normal")); + break; + case 1: strcpy (t, _("Black/White")); + break; + case 2: strcpy (t, _("Sepia")); + break; + case 3: strcpy (t, _("White Board")); + break; + case 4: strcpy (t, _("Black Board")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Flash Mode */ + ret = sierra_get_int_register (camera, 7, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RADIO, _("Flash Mode"), &child); + gp_widget_add_choice (child, _("Auto")); + gp_widget_add_choice (child, _("Force")); + gp_widget_add_choice (child, _("Off")); + gp_widget_add_choice (child, _("Red-eye Reduction")); + gp_widget_add_choice (child, _("Slow Sync")); + + switch (value) { + case 0: strcpy (t, _("Auto")); + break; + case 1: strcpy (t, _("Force")); + break; + case 2: strcpy (t, _("Off")); + break; + case 3: strcpy (t, _("Red-eye Reduction")); + break; + case 4: strcpy (t, _("Slow Sync")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Brightness/Contrast */ + ret = sierra_get_int_register (camera, 19, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RADIO, _("Brightness/Contrast"), + &child); + gp_widget_add_choice (child, _("Normal")); + gp_widget_add_choice (child, _("Bright+")); + gp_widget_add_choice (child, _("Bright-")); + gp_widget_add_choice (child, _("Contrast+")); + gp_widget_add_choice (child, _("Contrast-")); + + switch (value) { + case 0: strcpy (t, _("Normal")); + break; + case 1: strcpy (t, _("Bright+")); + break; + case 2: strcpy (t, _("Bright-")); + break; + case 3: strcpy (t, _("Contrast+")); + break; + case 4: strcpy (t, _("Contrast-")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* White Balance */ + ret = sierra_get_int_register (camera, 20, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RADIO, _("White Balance"), &child); + gp_widget_add_choice (child, _("Auto")); + gp_widget_add_choice (child, _("Skylight")); + gp_widget_add_choice (child, _("Fluorescent")); + gp_widget_add_choice (child, _("Tungsten")); + gp_widget_add_choice (child, _("Cloudy")); + + switch (value) { + case 0: strcpy (t, _("Auto")); + break; + case 1: strcpy (t, _("Skylight")); + break; + case 2: strcpy (t, _("Fluorescent")); + break; + case 3: strcpy (t, _("Tungsten")); + break; + case 255: + strcpy (t, _("Cloudy")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Lens Mode */ + ret = sierra_get_int_register (camera, 33, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RADIO, _("Lens Mode"), &child); + gp_widget_add_choice (child, _("Macro")); + gp_widget_add_choice (child, _("Normal")); + gp_widget_add_choice (child, _("Infinity/Fish-eye")); + + switch (value) { + case 1: strcpy (t, _("Macro")); + break; + case 2: strcpy (t, _("Normal")); + break; + case 3: strcpy (t, _("Infinity/Fish-eye")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Spot Metering Mode */ + ret = sierra_get_int_register (camera, 70, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RADIO, _("Spot Metering Mode"), + &child); + gp_widget_add_choice (child, _("On")); + gp_widget_add_choice (child, _("Off")); + + switch (value) { + case 5: strcpy (t, _("Off")); + break; + case 3: strcpy (t, _("On")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Zoom */ + ret = sierra_get_int_register (camera, 72, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RADIO, _("Zoom"), &child); + gp_widget_add_choice (child, _("1x")); + gp_widget_add_choice (child, _("1.6x")); + gp_widget_add_choice (child, _("2x")); + gp_widget_add_choice (child, _("2.5x")); + + switch (value) { + case 0: strcpy (t, _("1x")); + break; + case 8: strcpy (t, _("2x")); + break; + case 520: + strcpy (t, _("1.6x")); + break; + case 1032: + strcpy (t, _("2.5x")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + gp_widget_new (GP_WIDGET_SECTION, _("Camera Settings"), §ion); + gp_widget_append (*window, section); + + /* Auto Off (host) */ + ret = sierra_get_int_register (camera, 23, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RANGE, _("Auto Off (host) " + "(in seconds)"), &child); + gp_widget_set_info (child, _("How long will it take until the " + "camera powers off when connected to the " + "computer?")); + gp_widget_set_range (child, 0, 255, 1); + gp_widget_set_value (child, &value); + gp_widget_append (section, child); + } + + /* Auto Off (field) */ + ret = sierra_get_int_register (camera, 24, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RANGE, _("Auto Off (field) " + "(in seconds)"), &child); + gp_widget_set_info (child, _("How long will it take until the " + "camera powers off when not connected to " + "the computer?")); + gp_widget_set_range (child, 0, 255, 1); + gp_widget_set_value (child, &value); + gp_widget_append (section, child); + } + + /* LCD Brightness */ + ret = sierra_get_int_register (camera, 35, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RANGE, _("LCD Brightness"), &child); + gp_widget_set_range (child, 1, 7, 1); + gp_widget_set_value (child, &value); + gp_widget_append (section, child); + } + + /* LCD Auto Off */ + ret = sierra_get_int_register (camera, 38, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RANGE, _("LCD Auto Off (in " + "seconds)"), &child); + gp_widget_set_range (child, 0, 255, 1); + gp_widget_set_value (child, &value); + gp_widget_append (section, child); + } + + return (camera_stop (camera, context)); +} + +static int +camera_set_config_olympus (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *child; + char *value; + int i = 0; + float float_value; + + GP_DEBUG ("*** camera_set_config"); + + CHECK (camera_start (camera, context)); + + /* Resolution */ + GP_DEBUG ("*** setting resolution"); + if ((gp_widget_get_child_by_label (window, _("Resolution"), &child) + >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Auto")) == 0) { + i = 0; + } else if (strcmp (value, _("Standard")) == 0) { + i = 1; + } else if (strcmp (value, _("High")) == 0) { + i = 2; + } else if (strcmp (value, _("Best")) == 0) { + i = 3; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 1, i, context)); + } + + /* Shutter Speed */ + GP_DEBUG ("*** setting shutter speed"); + if ((gp_widget_get_child_by_label (window, + _("Shutter Speed (microseconds, 0 auto)"), &child) >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &float_value); + i = float_value; + CHECK_STOP (camera, sierra_set_int_register (camera, 3, i, context)); + } + + /* Aperture */ + GP_DEBUG ("*** setting aperture"); + if ((gp_widget_get_child_by_label (window, _("Aperture"), &child) + >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Auto")) == 0) { + i = 0; + } else if (strcmp (value, _("Low")) == 0) { + i = 1; + } else if (strcmp (value, _("Medium")) == 0) { + i = 2; + } else if (strcmp (value, _("High")) == 0) { + i = 3; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 5, i, context)); + } + + /* Color Mode */ + GP_DEBUG ("*** setting color mode"); + if ((gp_widget_get_child_by_label (window, _("Color Mode"), &child) + >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Normal")) == 0) { + i = 0; + } else if (strcmp (value, _("Black/White")) == 0) { + i = 1; + } else if (strcmp (value, _("Sepia")) == 0) { + i = 2; + } else if (strcmp (value, _("White Board")) == 0) { + i = 3; + } else if (strcmp (value, _("Black Board")) == 0) { + i = 4; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 6, i, context)); + } + + /* Flash Mode */ + GP_DEBUG ("*** setting flash mode"); + if ((gp_widget_get_child_by_label (window, _("Flash Mode"), &child) + >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Auto")) == 0) { + i = 0; + } else if (strcmp (value, _("Force")) == 0) { + i = 1; + } else if (strcmp (value, _("Off")) == 0) { + i = 2; + } else if (strcmp (value, _("Red-eye Reduction")) == 0) { + i = 3; + } else if (strcmp (value, _("Slow Sync")) == 0) { + i = 4; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 7, i, context)); + } + + /* Brightness/Contrast */ + GP_DEBUG ( + "*** setting brightness/contrast"); + if ((gp_widget_get_child_by_label (window, _("Brightness/Contrast"), + &child) >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Normal")) == 0) { + i = 0; + } else if (strcmp (value, _("Bright+")) == 0) { + i = 1; + } else if (strcmp (value, _("Bright-")) == 0) { + i = 2; + } else if (strcmp (value, _("Contrast+")) == 0) { + i = 3; + } else if (strcmp (value, _("Contrast-")) == 0) { + i = 4; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 19, i, context)); + } + + /* White Balance */ + GP_DEBUG ("*** setting white balance"); + if ((gp_widget_get_child_by_label (window, _("White Balance"), &child) + >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Auto")) == 0) { + i = 0; + } else if (strcmp (value, _("Skylight")) == 0) { + i = 1; + } else if (strcmp (value, _("Fluorescent")) == 0) { + i = 2; + } else if (strcmp (value, _("Tungsten")) == 0) { + i = 3; + } else if (strcmp (value, _("Cloudy")) == 0) { + i = 4; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 20, i, context)); + } + + /* Lens Mode */ + GP_DEBUG ("*** setting lens mode"); + if ((gp_widget_get_child_by_label (window, _("Lens Mode"), &child) + >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Macro")) == 0) { + i = 1; + } else if (strcmp (value, _("Normal")) == 0) { + i = 2; + } else if (strcmp (value, _("Infinity/Fish-eye")) == 0) { + i = 3; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 33, i, context)); + } + + /* Spot Metering Mode */ + GP_DEBUG ( + "*** setting spot metering mode"); + if ((gp_widget_get_child_by_label (window, _("Spot Metering Mode"), + &child) >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("On")) == 0) { + i = 3; + } else if (strcmp (value, _("Off")) == 0) { + i = 5; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 33, i, context)); + } + + /* Zoom */ + GP_DEBUG ("*** setting zoom"); + if ((gp_widget_get_child_by_label (window, _("Zoom"), &child) + >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, "1x") == 0) { + i = 0; + } else if (strcmp (value, "2x") == 0) { + i = 8; + } else if (strcmp (value, "1.6x") == 0) { + i = 520; + } else if (strcmp (value, "2.5x") == 0) { + i = 1032; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 72, i, context)); + } + + /* Auto Off (host) */ + GP_DEBUG ("*** setting auto off (host)"); + if ((gp_widget_get_child_by_label (window, _("Auto Off (host) " + "(in seconds)"), &child) >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &i); + CHECK_STOP (camera, sierra_set_int_register (camera, 23, i, context)); + } + + /* Auto Off (field) */ + GP_DEBUG ( + "*** setting auto off (field)"); + if ((gp_widget_get_child_by_label (window, _("Auto Off (field) " + "(in seconds)"), &child) >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &i); + CHECK_STOP (camera, sierra_set_int_register (camera, 24, i, context)); + } + + /* LCD Brightness */ + GP_DEBUG ("*** setting lcd brightness"); + if ((gp_widget_get_child_by_label (window, + _("LCD Brightness"), &child) >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &i); + CHECK_STOP (camera, sierra_set_int_register (camera, 35, i, context)); + } + + /* LCD Auto Off */ + GP_DEBUG ("*** setting lcd auto off"); + if ((gp_widget_get_child_by_label (window, + _("LCD Auto Off (in seconds)"), &child) >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &i); + CHECK_STOP (camera, sierra_set_int_register (camera, 38, i, context)); + } + + return (camera_stop (camera, context)); +} + + +static int +camera_get_config_epson (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *child; + CameraWidget *section; + char t[1024]; + int ret, value; + + GP_DEBUG ("*** camera_get_config_epson"); + + CHECK (camera_start (camera, context)); + + gp_widget_new (GP_WIDGET_WINDOW, _("Camera Configuration"), window); + + gp_widget_new (GP_WIDGET_SECTION, _("Shot Settings"), §ion); + gp_widget_append (*window, section); + + /* Aperture */ + ret = sierra_get_int_register (camera, 5, &value, context); + if (ret >= 0) { + gp_widget_new (GP_WIDGET_RADIO, _("Aperture"), &child); + gp_widget_add_choice (child, _("F2")); + gp_widget_add_choice (child, _("F2.3")); + gp_widget_add_choice (child, _("F2.8")); + gp_widget_add_choice (child, _("F4")); + gp_widget_add_choice (child, _("F5.6")); + gp_widget_add_choice (child, _("F8")); + gp_widget_add_choice (child, _("auto")); + switch (value) { + case 0: strcpy (t, _("F2")); + break; + case 1: strcpy (t, _("F2.3")); + break; + case 2: strcpy (t, _("F2.8")); + break; + case 3: strcpy (t, _("F4")); + break; + case 4: strcpy (t, _("F5.6")); + break; + case 5: strcpy (t, _("F8")); + break; + case 6: strcpy (t, _("auto")); + break; + default: + sprintf(t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Flash Mode */ + ret = sierra_get_int_register (camera, 7, &value, context); + if (ret >= 0) { + gp_widget_new (GP_WIDGET_RADIO, _("Flash Mode"), &child); + gp_widget_add_choice (child, _("Auto")); + gp_widget_add_choice (child, _("Force")); + gp_widget_add_choice (child, _("Off")); + gp_widget_add_choice (child, _("Red-eye Reduction")); + gp_widget_add_choice (child, _("Slow Sync")); + switch (value) { + case 0: strcpy (t, _("Auto")); + break; + case 1: strcpy (t, _("Force")); + break; + case 2: strcpy (t, _("Off")); + break; + case 3: strcpy (t, _("Red-eye Reduction")); + break; + case 4: strcpy (t, _("Slow Sync")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* White Balance */ + ret = sierra_get_int_register (camera, 20, &value, context); + if (ret >= 0) { + gp_widget_new (GP_WIDGET_RADIO, _("White Balance"), &child); + gp_widget_add_choice (child, _("Auto")); + gp_widget_add_choice (child, _("Fixed")); + gp_widget_add_choice (child, _("Custom")); + + switch (value) { + case 0: strcpy (t, _("Auto")); + break; + case 1: strcpy (t, _("Fixed")); + break; + case 225: strcpy (t, _("Custom")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + gp_widget_new (GP_WIDGET_SECTION, _("Picture Settings"), §ion); + gp_widget_append (*window, section); + + /* Lens Mode */ + ret = sierra_get_int_register (camera, 33, &value, context); + if (ret >= 0) { + gp_widget_new (GP_WIDGET_RADIO, _("Lens Mode"), &child); + gp_widget_add_choice (child, _("Macro")); + gp_widget_add_choice (child, _("Normal")); + switch (value) { + case 1: strcpy (t, _("Macro")); + break; + case 2: strcpy (t, _("Normal")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Resolution */ + ret = sierra_get_int_register (camera, 1, &value, context); + if (ret >= 0) { + gp_widget_new (GP_WIDGET_RADIO, _("Resolution"), &child); + gp_widget_add_choice (child, _("standard")); + gp_widget_add_choice (child, _("fine")); + gp_widget_add_choice (child, _("superfine")); + gp_widget_add_choice (child, _("HyPict")); + + switch (value) { + case 1: strcpy (t, _("standard")); + break; + case 2: strcpy (t, _("fine")); + break; + case 3: strcpy (t, _("superfine")); + break; + case 34: strcpy (t, _("HyPict")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Color Mode */ + ret = sierra_get_int_register (camera, 6, &value, context); + if (ret >= 0) { + gp_widget_new (GP_WIDGET_RADIO, _("Color Mode"), &child); + gp_widget_add_choice (child, _("color")); + gp_widget_add_choice (child, _("black & white")); + switch (value) { + case 1: strcpy (t, _("color")); + break; + case 2: strcpy (t, _("black & white")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + gp_widget_new (GP_WIDGET_SECTION, _("Camera Settings"), §ion); + gp_widget_append (*window, section); + + /* Auto Off (host) */ + ret = sierra_get_int_register (camera, 23, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RANGE, _("Auto Off (host) " + "(in seconds)"), &child); + gp_widget_set_info (child, _("How long will it take until the " + "camera powers off when connected to the " + "computer?")); + gp_widget_set_range (child, 0, 255, 1); + gp_widget_set_value (child, &value); + gp_widget_append (section, child); + } + + /* Auto Off (field) */ + ret = sierra_get_int_register (camera, 24, &value, context); + if (ret >= 0) { + + gp_widget_new (GP_WIDGET_RANGE, _("Auto Off (field) " + "(in seconds)"), &child); + gp_widget_set_info (child, _("How long will it take until the " + "camera powers off when not connected to " + "the computer?")); + gp_widget_set_range (child, 0, 255, 1); + gp_widget_set_value (child, &value); + gp_widget_append (section, child); + } + + /* Language */ + ret = sierra_get_int_register (camera, 53, &value, context); + if (ret >= 0) { + gp_widget_new (GP_WIDGET_RADIO, _("Language"), &child); + gp_widget_add_choice (child, _("Korean")); + gp_widget_add_choice (child, _("English")); + gp_widget_add_choice (child, _("French")); + gp_widget_add_choice (child, _("German")); + gp_widget_add_choice (child, _("Italian")); + gp_widget_add_choice (child, _("Japanese")); + gp_widget_add_choice (child, _("Spanish")); + gp_widget_add_choice (child, _("Portuguese")); + switch (value) { + case 1: strcpy (t, _("Korean")); + break; + case 3: strcpy (t, _("English")); + break; + case 4: strcpy (t, _("French")); + break; + case 5: strcpy (t, _("German")); + break; + case 6: strcpy (t, _("Italian")); + break; + case 7: strcpy (t, _("Japanese")); + break; + case 8: strcpy (t, _("Spanish")); + break; + case 9: strcpy (t, _("Portuguese")); + break; + default: + sprintf (t, _("%i (unknown)"), value); + gp_widget_add_choice (child, t); + } + gp_widget_set_value (child, t); + gp_widget_append (section, child); + } + + /* Date & Time */ + ret = sierra_get_int_register (camera, 2, &value, context); + if (ret >= 0) { + gp_widget_new (GP_WIDGET_DATE, _("Date & Time"), &child); + gp_widget_set_value (child, &value); + gp_widget_append (section, child); + } + + return (camera_stop (camera, context)); +} + +static int +camera_set_config_epson (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *child; + char *value; + int i = 0; + + GP_DEBUG ("*** camera_set_config_epson"); + + CHECK (camera_start (camera, context)); + + /* Aperture */ + GP_DEBUG ("*** setting aperture"); + if ((gp_widget_get_child_by_label (window, _("Aperture"), &child) + >= 0) && gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("F2")) == 0) { + i = 0; + } else if (strcmp (value, _("F2.3")) == 0) { + i = 1; + } else if (strcmp (value, _("F2.8")) == 0) { + i = 2; + } else if (strcmp (value, _("F4")) == 0) { + i = 3; + } else if (strcmp (value, _("F5.6")) == 0) { + i = 4; + } else if (strcmp (value, _("F8")) == 0) { + i = 5; + } else if (strcmp (value, _("auto")) == 0) { + i = 6; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 5, i, context)); + } + + /* Flash Mode */ + GP_DEBUG ("*** setting flash mode"); + if ((gp_widget_get_child_by_label (window, _("Flash Mode"), &child) + >= 0) && gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Auto")) == 0) { + i = 0; + } else if (strcmp (value, _("Force")) == 0) { + i = 1; + } else if (strcmp (value, _("Off")) == 0) { + i = 2; + } else if (strcmp (value, _("Red-eye Reduction")) == 0) { + i = 3; + } else if (strcmp (value, _("Slow Sync")) == 0) { + i = 4; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 7, i, context)); + } + + /* White Balance */ + GP_DEBUG ("*** setting white balance"); + if ((gp_widget_get_child_by_label (window, _("White Balance"), &child) + >= 0) && gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Auto")) == 0) { + i = 0; + } else if (strcmp (value, _("Fixed")) == 0) { + i = 1; + } else if (strcmp (value, _("Custom")) == 0) { + i = 225; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 20, i, context)); + } + + /* Lens Mode */ + GP_DEBUG ("*** setting lens mode"); + if ((gp_widget_get_child_by_label (window, _("Lens Mode"), &child) + >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Macro")) == 0) { + i = 1; + } else if (strcmp (value, _("Normal")) == 0) { + i = 2; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 33, i, context)); + } + + /* Resolution */ + GP_DEBUG ("*** setting resolution"); + if ((gp_widget_get_child_by_label (window, _("Resolution"), &child) + >= 0) && gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("standard")) == 0) { + i = 1; + } else if (strcmp (value, _("fine")) == 0) { + i = 2; + } else if (strcmp (value, _("superfine")) == 0) { + i = 3; + } else if (strcmp (value, _("HyPict")) == 0) { + i = 34; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 1, i, context)); + } + + /* Color Mode */ + GP_DEBUG ("*** setting color mode"); + if ((gp_widget_get_child_by_label (window, _("Color Mode"), &child) + >= 0) && gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("color")) == 0) { + i = 1; + } else if (strcmp (value, _("black & white")) == 0) { + i = 2; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 6, i, context)); + } + + /* Auto Off (host) */ + GP_DEBUG ("*** setting auto off (host)"); + if ((gp_widget_get_child_by_label (window, _("Auto Off (host) " + "(in seconds)"), &child) >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &i); + CHECK_STOP (camera, sierra_set_int_register (camera, 23, i, context)); + } + + /* Auto Off (field) */ + GP_DEBUG ( + "*** setting auto off (field)"); + if ((gp_widget_get_child_by_label (window, _("Auto Off (field) " + "(in seconds)"), &child) >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &i); + CHECK_STOP (camera, sierra_set_int_register (camera, 24, i, context)); + } + + /* Language */ + GP_DEBUG ("*** setting language"); + if ((gp_widget_get_child_by_label (window, _("Language"), &child) + >= 0) && gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &value); + if (strcmp (value, _("Korean")) == 0) { + i = 1; + } else if (strcmp (value, _("English")) == 0) { + i = 3; + } else if (strcmp (value, _("French")) == 0) { + i = 4; + } else if (strcmp (value, _("German")) == 0) { + i = 5; + } else if (strcmp (value, _("Italian")) == 0) { + i = 6; + } else if (strcmp (value, _("Japanese")) == 0) { + i = 7; + } else if (strcmp (value, _("Spanish")) == 0) { + i = 8; + } else if (strcmp (value, _("Portuguese")) == 0) { + i = 9; + } else + return (GP_ERROR_NOT_SUPPORTED); + CHECK_STOP (camera, sierra_set_int_register (camera, 53, i, context)); + } + + /* Date & Time */ + GP_DEBUG ("*** setting date"); + if ((gp_widget_get_child_by_label (window, _("Date & Time"), &child) + >= 0) && + gp_widget_changed (child)) { + gp_widget_set_changed (child, FALSE); + gp_widget_get_value (child, &i); + CHECK_STOP (camera, sierra_set_int_register (camera, 2, i, context)); + } + + return (camera_stop (camera, context)); +} + + +static int +camera_get_config_default (Camera *camera, CameraWidget **window, GPContext *context) +{ + return camera_get_config_olympus (camera, window, context); +} + + +static int +camera_set_config_default (Camera *camera, CameraWidget *window, GPContext *context) +{ + return camera_set_config_olympus (camera, window, context); +} + + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *c) +{ + char buf[1024*32]; + int v, r; + char t[1024]; + + GP_DEBUG ("*** sierra camera_summary"); + + CHECK (camera_start (camera, c)); + + strcpy(buf, ""); + + /* + * This is a non-fatal check if a memory card is present. Some + * cameras don't understand this command and error out here. + * + * At least on PhotoPC 3000z, if no card is present near all + * retrieved info are either unreadable or invalid... + */ + if (!(camera->pl->flags & SIERRA_NO_51)) { + r = sierra_get_int_register(camera, 51, &v, c); + if ((r >= 0) && (v == 1)) { + strcpy (buf, _("Note: no memory card present, some" + " values may be invalid\n")); + strcpy (summary->text, buf); + } + } + /* Get all the string-related info */ + + if (sierra_get_string_register (camera, 27, 0, NULL, + (unsigned char *)t, (unsigned int *)&v, c) >= 0) + sprintf (buf+strlen(buf), _("Camera Model: %s\n"), t); + if (sierra_get_string_register (camera, 48, 0, NULL, + (unsigned char *)t, (unsigned int *)&v, c) >= 0) + sprintf (buf+strlen(buf), _("Manufacturer: %s\n"), t); + if (sierra_get_string_register (camera, 22, 0, NULL, + (unsigned char *)t, (unsigned int *)&v, c) >= 0) + sprintf (buf+strlen(buf), _("Camera ID: %s\n"), t); + if (sierra_get_string_register (camera, 25, 0, NULL, + (unsigned char *)t, (unsigned int *)&v, c) >= 0) + sprintf (buf+strlen(buf), _("Serial Number: %s\n"), t); + if (sierra_get_string_register (camera, 26, 0, NULL, + (unsigned char *)t, (unsigned int *)&v, c) >= 0) + sprintf (buf+strlen(buf), _("Software Rev.: %s\n"), t); + + /* Get all the integer information */ + if (camera->pl->flags & SIERRA_NO_REGISTER_40) { + if (sierra_get_int_register(camera, 10, &v, c) >= 0) + sprintf (buf+strlen(buf), _("Frames Taken: %i\n"), v); + } else { + if (sierra_get_int_register(camera, 40, &v, c) >= 0) + sprintf (buf+strlen(buf), _("Frames Taken: %i\n"), v); + } + if (sierra_get_int_register(camera, 11, &v, c) >= 0) + sprintf (buf+strlen(buf), _("Frames Left: %i\n"), v); + if (sierra_get_int_register(camera, 16, &v, c) >= 0) + sprintf (buf+strlen(buf), _("Battery Life: %i\n"), v); + if (sierra_get_int_register(camera, 28, &v, c) >= 0) + sprintf (buf+strlen(buf), _("Memory Left: %i bytes\n"), v); + + /* Get date */ + if (sierra_get_int_register (camera, 2, &v, c) >= 0) { + time_t vtime = v; + sprintf (buf+strlen(buf), _("Date: %s"), ctime (&vtime)); + } + strcpy (summary->text, buf); + return (camera_stop (camera, c)); +} + +static int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **sinfos, + int *nrofsinfos, + void *data, GPContext *c +) { + Camera *camera = data; + CameraStorageInformation*sif; + int v; + char t[1024]; + + GP_DEBUG ("*** sierra storage_info"); + + CHECK (camera_start (camera, c)); + + sif = malloc(sizeof(CameraStorageInformation)); + if (!sif) + return GP_ERROR_NO_MEMORY; + *sinfos = sif; + *nrofsinfos = 1; + + sif->fields = GP_STORAGEINFO_BASE; + strcpy (sif->basedir, "/"); + sif->fields |= GP_STORAGEINFO_STORAGETYPE; + sif->type = GP_STORAGEINFO_ST_REMOVABLE_RAM; + sif->fields |= GP_STORAGEINFO_ACCESS; + sif->access = GP_STORAGEINFO_AC_READWRITE; + sif->fields |= GP_STORAGEINFO_FILESYSTEMTYPE; + sif->fstype = GP_STORAGEINFO_FST_DCF; + + if (sierra_get_string_register (camera, 25, 0, NULL, + (unsigned char *)t, (unsigned int *)&v, c) >= 0) { + sif->fields |= GP_STORAGEINFO_LABEL; + strcpy (sif->label, t); + } + + if (sierra_get_int_register(camera, 11, &v, c) >= 0) { + sif->fields |= GP_STORAGEINFO_FREESPACEIMAGES; + sif->freeimages = v; + } + if (sierra_get_int_register(camera, 28, &v, c) >= 0) { + sif->fields |= GP_STORAGEINFO_FREESPACEKBYTES; + sif->freekbytes = v/1024; + } + return camera_stop (camera, c); +} + +static int +camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + GP_DEBUG ("*** sierra camera_manual"); + + switch (camera->pl->model) { + case SIERRA_MODEL_CAM_DESC: + if (camera->pl->cam_desc->manual == NULL) { + strcpy (manual->text, _("No camera manual available.\n")); + } else { + strcpy (manual->text, _(camera->pl->cam_desc->manual)); + } + break; + case SIERRA_MODEL_EPSON: + snprintf (manual->text, sizeof(manual->text), + _("Some notes about Epson cameras:\n" + "- Some parameters are not controllable remotely:\n" + " * zoom\n" + " * focus\n" + " * custom white balance setup\n" + "- Configuration has been reverse-engineered with\n" + " a PhotoPC 3000z, if your camera acts differently\n" + " please send a mail to %s (in English)\n"), MAIL_GPHOTO_DEVEL); + break; + case SIERRA_MODEL_OLYMPUS: + default: + strcpy (manual->text, + _("Some notes about Olympus cameras (and others?):\n" + "(1) Camera Configuration:\n" + " A value of 0 will take the default one (auto).\n" + "(2) Olympus C-3040Z (and possibly also the C-2040Z\n" + " and others) have a USB PC Control mode. To switch\n" + " to this mode, turn on the camera, open\n" + " the memory card access door and then press and\n" + " hold both of the menu and LCD buttons until the\n" + " camera control menu appears. Set it to ON.\n" + "(3) If you switch the 'LCD mode' to 'Monitor' or\n" + " 'Normal', don't forget to switch it back to 'Off'\n" + " before disconnecting. Otherwise you cannot use\n" + " the camera's buttons. If you end up in this\n" + " state, you should reconnect the camera to the\n" + " PC and switch LCD to 'Off'.")); + break; + } + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + GP_DEBUG ("*** sierra camera_about"); + + strcpy (about->text, + _("sierra SPARClite library\n" + "Scott Fritzinger \n" + "Support for sierra-based digital cameras\n" + "including Olympus, Nikon, Epson, and Pentax.\n" + "\n" + "Thanks to Data Engines (www.dataengines.com)\n" + "for the use of their Olympus C-3030Z for USB\n" + "support implementation.")); + + return (GP_OK); +} + +/** + * get_jpeg_data: + * @data: input data table + * @data_size: table size + * @jpeg_data: return JPEG data table (NULL if no valid data is found). + * To be free by the the caller. + * @jpeg_size: return size of the jpeg_data table. + * + * Extract JPEG data form the provided input data (looking for the SOI + * and SOF markers in the input data table) + * + * Returns: error code (either GP_OK or GP_ERROR_CORRUPTED_DATA) + */ +int get_jpeg_data(const char *data, int data_size, char **jpeg_data, int *jpeg_size) +{ + int i, ret_status; + const char *soi_marker = NULL, *sof_marker = NULL; + + for(i=0 ; ifunctions->exit = camera_exit; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->capture = camera_capture; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + + camera->pl = calloc (1, sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + + camera->pl->model = SIERRA_MODEL_DEFAULT; + camera->pl->first_packet = 1; + camera->pl->flags = 0; + + /* Retrieve Camera information from name */ + gp_camera_get_abilities (camera, &a); + for (x = 0; sierra_cameras[x].manuf; x++) { + if (!strncmp (a.model, sierra_cameras[x].manuf, + strlen (sierra_cameras[x].manuf)) && + !strcmp (a.model + strlen (sierra_cameras[x].manuf) + 1, + sierra_cameras[x].model)) { + camera->pl->model = sierra_cameras[x].sierra_model; + vendor = sierra_cameras[x].usb_product; + camera->pl->flags = sierra_cameras[x].flags; + camera->pl->cam_desc = sierra_cameras[x].cam_desc; + break; + } + } + + switch (camera->pl->model) { + case SIERRA_MODEL_EPSON: + camera->functions->get_config = camera_get_config_epson; + camera->functions->set_config = camera_set_config_epson; + break; + case SIERRA_MODEL_OLYMPUS: + camera->functions->get_config = camera_get_config_olympus; + camera->functions->set_config = camera_set_config_olympus; + break; + case SIERRA_MODEL_CAM_DESC: + if (camera->pl->cam_desc == NULL) { + GP_DEBUG ("*** sierra cam_desc NULL"); + return (GP_ERROR_MODEL_NOT_FOUND); + } + camera->pl->flags |= camera->pl->cam_desc->flags; + camera->functions->get_config = camera_get_config_cam_desc; + camera->functions->set_config = camera_set_config_cam_desc; + break; + default: + camera->functions->get_config = camera_get_config_default; + camera->functions->set_config = camera_set_config_default; + break; + } + CHECK_FREE (camera, gp_port_get_settings (camera->port, &s)); + switch (camera->port->type) { + case GP_PORT_SERIAL: + + s.serial.bits = 8; + s.serial.parity = 0; + s.serial.stopbits = 1; + + /* + * Remember the speed. If no speed is given, we assume + * people want to use the highest one (i.e. 115200). + * However, not all machines support every speed. Check that. + */ + if (s.serial.speed) + camera->pl->speed = s.serial.speed; + else { + int i; + /* Find the speed into abilities.speeds array. + * Highest speeds are last ... so look backwards ... + */ + for (i=0;i= 0 ; i--) { + s.serial.speed = a.speed[i]; + if (gp_port_set_settings (camera->port, s) >= 0) + break; + } + camera->pl->speed = (i>=0 ? a.speed[i] : 19200); + } + + /* The camera defaults to 19200. */ + s.serial.speed = 19200; + + break; + + case GP_PORT_USB: + case GP_PORT_USB_SCSI: + + /* Test if we have usb information */ + if (vendor == 0) { + free (camera->pl); + camera->pl = NULL; + return (GP_ERROR_MODEL_NOT_FOUND); + } + /* Use the defaults the core parsed */ + break; + + default: + + free (camera->pl); + camera->pl = NULL; + return (GP_ERROR_UNKNOWN_PORT); + } + + CHECK_FREE (camera, gp_port_set_settings (camera->port, s)); + CHECK_FREE (camera, gp_port_set_timeout (camera->port, TIMEOUT)); + + /* + * Send initialization sequence unless otherwise flagged. (The + * 'Polaroid PDC 2300Z' fails sierra_init as reported by William + * Bader ). + */ + if (!(camera->pl->flags & SIERRA_SKIP_INIT)) + CHECK (sierra_init (camera, context)); + + /* Establish a connection */ + CHECK_FREE (camera, camera_start (camera, context)); + + /* + * USB cameras seem to need this request. If we don't request the + * contents of this register and directly proceed with checking for + * folder support, the camera doesn't send anything. + */ + sierra_get_int_register (camera, 1, &value, NULL); + +#if 0 + /* FIXME??? What's that for? "Resetting folder system"? */ + sierra_set_int_register (camera, 83, -1, NULL); +#endif + /* How to switch the coolpix 2500 between RAW / NORMAL + return dsc->SetStr(0x16, raw_enabled ? "DIAG RAW" : "NIKON DIGITAL CAMERA" ); + ret = sierra_set_string_register (camera, 0x16, "NIKON DIGITAL CAMERA", strlen("NIKON DIGITAL CAMERA"), NULL); + */ + + /* Folder support? */ + CHECK_STOP_FREE (camera, gp_port_set_timeout (camera->port, 50)); + ret = sierra_set_string_register (camera, 84, "\\", 1, NULL); + if (ret != GP_OK) { + camera->pl->folders = 0; + GP_DEBUG ("*** folder support: no"); + } else { + camera->pl->folders = 1; + GP_DEBUG ("*** folder support: yes"); + } + CHECK_STOP_FREE (camera, gp_port_set_timeout (camera->port, TIMEOUT)); + + /* We start off not knowing where we are */ + strcpy (camera->pl->folder, ""); + CHECK_STOP_FREE (camera, gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera)); + + CHECK (camera_stop (camera, context)); + + GP_DEBUG ("****************** sierra initialization OK"); + return (GP_OK); +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra.h new file mode 100644 index 00000000..61a28638 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/sierra.h @@ -0,0 +1,65 @@ +/* sierra.c: + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +typedef enum { + SIERRA_MODEL_DEFAULT, + SIERRA_MODEL_EPSON, + SIERRA_MODEL_OLYMPUS, + SIERRA_MODEL_CAM_DESC, +} SierraModel; + +typedef enum { + /* 2 bits USB wrap type ... none = 0 */ + SIERRA_WRAP_USB_NONE = 0<<0, + SIERRA_WRAP_USB_OLYMPUS = 1<<0, + SIERRA_WRAP_USB_NIKON = 2<<0, + SIERRA_WRAP_USB_PENTAX = 3<<0, + SIERRA_WRAP_USB_MASK = 3<<0, + + SIERRA_NO_51 = 1<<2, + SIERRA_LOW_SPEED = 1<<3, /* serial line 9600 -> 38400 */ + SIERRA_EXT_PROTO = 1<<4, + SIERRA_SKIP_INIT = 1<<5, + SIERRA_NO_USB_CLEAR = 1<<6, + SIERRA_NO_REGISTER_40 = 1<<7, + SIERRA_MID_SPEED = 1<<8, /* serial line 9600 -> 57600 */ +} SierraFlags; + +struct _CameraPrivateLibrary { + SierraModel model; + int folders; + int speed; + int first_packet; + SierraFlags flags; + struct CameraDesc const *cam_desc; + char folder[128]; +}; + +struct CameraDescriptor; + +#define CHECK(result) \ +{ \ + int res = (result); \ + \ + if (res < 0) { \ + gp_log (GP_LOG_DEBUG, "sierra", \ + "Operation failed in %s (%i)!", __FUNCTION__, res); \ + return (res); \ + } \ +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/usbwrap.pl b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/usbwrap.pl new file mode 100644 index 00000000..73c774f3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sierra/usbwrap.pl @@ -0,0 +1,245 @@ +#!/usr/bin/perl +# Copyright Marcus Meissner 2005. +# Licensed under GPL v2. NO WARRANTY. +# +# This is mostly unfinished ... + +use strict; +use XML::Parser; +use IO::Handle; + +my $xmlfile = shift @ARGV || die "specify xml file on cmdline:$!\n"; + +my @elemstack = (); +my @data = 0; +my $needdata = 0; +my $curseq = -1; +my $curep = -1; +my %urbenc = (); +my @lastresp = (); +my @lastreq = (); +my $lastcode; +my $vendorid = 0; + +my $size=-s $xmlfile; +my $buffer; +sysopen(BINFILE,$xmlfile,0) || die "sysopen: $!"; +sysread(BINFILE,$buffer,$size); +close(BINFILE); + +my @data = unpack("C*",$buffer); +if ($data[0] == 60) { # 60 == '<' ... start of XML file ... + my $p1 = new XML::Parser( + Handlers => { Start => \&xml_handle_start, + End => \&xml_handle_end, + Char => \&xml_handle_char} + ); + $p1->parsefile($xmlfile); + exit 0; +} +print "No XML.\n"; +exit 1; + +sub hexdump { + my @data = @_; + my $i; + my $str = ""; + for ($i = 0;$i <= $#data ; $i++) { + my $c = $data[$i]; + if (($i & 0x0f) == 0) { + if ($i) { + print " $str\n"; + $str = ""; + } + printf "%03x: ", $i; + } + printf " %02x", $c; + if (($c >= 0x20) && ($c < 0x7f)) { + $str .= sprintf "%c", $c; + } else { + $str .= "."; + } + } + printf " $str\n"; +} + +sub get_uint32 { + my($arrref) = @_; + + return shift(@{$arrref})+256*(shift(@{$arrref}))+ + 256*256*shift(@{$arrref})+256*256*256*(shift(@{$arrref})); +} + +sub get_uint16 { + my($arrref) = @_; + + return shift(@{$arrref})+256*(shift(@{$arrref})); +} + +sub get_uint8 { + my($arrref) = @_; + + return shift @{$arrref}; +} + +sub get_str { + my($arrref) = @_; + my $len = get_uint8($arrref); + my $i; + my $str; + + $str = ''; + for ($i = 0; $i < $len - 1 ; $i++ ) { + $str .= pack("C",shift(@{$arrref})); + shift @{$arrref}; + } + return $str; +} + +my $lastfunction; +my $lasttype = 0; + +sub xml_handle_char { + my ($expat, $str) = @_; + my @bytes; + + if ($elemstack[$#elemstack] eq "function") { + $lastfunction = $str; + return; + } + if ($elemstack[$#elemstack] eq "endpoint") { + $curep = $str; + return; + } + return unless ($elemstack[$#elemstack] eq "payloadbytes"); + if ($lastfunction ne "BULK_OR_INTERRUPT_TRANSFER") { + print "str $str\n"; + return; + } + # for the IN ep we only get the second mention of the URB + # for the OUT ep we only get the first. + if ($curep & 0x80) { + return if ($urbenc{$curseq} == 1); + } else { + return if ($urbenc{$curseq} == 2); + } + @bytes = unpack('C*',pack('H*',"\U$str")); + # print "xxx\n"; hexdump( @bytes ); print "yyy\n"; + my $a = shift @bytes; my $b = shift @bytes; + my $c = shift @bytes; my $d = shift @bytes; + if (($a == 0x55) && ($b == 0x53) && ($c == 0x42) && ($d == 0x43)) { + print_wrap_request(\@lastreq); + @lastreq = @bytes; + return; + } + if (($a == 0x55) && ($b == 0x53) && ($c == 0x42) && ($d == 0x53)) { + print_wrap_response(\@lastresp,\@bytes); + @lastresp = (); + return; + } + if ($curep & 0x80) { + push @lastresp, $a, $b, $c, $d, @bytes; + } else { + push @lastreq, $a, $b, $c, $d, @bytes; + } +} + +sub xml_handle_start { + my ($expat, $element, $attr, $val) = @_; + if (($element eq "urb") && ($attr eq "sequence")) { + $curseq = $val; + $urbenc{$val} = $urbenc{$val} + 1; + } + push @elemstack, $element; +} + +sub xml_handle_end { + my ($expat, $element) = @_; + pop @elemstack; +} + +sub print_wrap_request { + my ($bytesref) = @_; + my @xbytes = @{$bytesref}; + my ($length, $cursq, $inout, $a, $len, $cmd); + + $cursq = get_uint32(\@xbytes); + $length = get_uint32(\@xbytes); + + return if (!$#xbytes); + + $inout = get_uint8(\@xbytes); + $a = get_uint8(\@xbytes); + $len = get_uint8(\@xbytes); + $cmd = get_uint8(\@xbytes); + if (($cmd & 0xf0) != 0xc0) { + # printf "request: cmd is %x?\n", $cmd; + return; + } + get_uint32(\@xbytes); # zero + get_uint32(\@xbytes); # zero2 + my $xlength = get_uint32(\@xbytes); + get_uint8(\@xbytes); get_uint8(\@xbytes); get_uint8(\@xbytes); + if (($cmd & 0x0f) == 0) { + # print ">RDY: "; hexdump(@xbytes); + } elsif (($cmd & 0x0f) == 1) { + print ">CMND: "; + splice @xbytes, 0, 64; + # now this only has the Sierra Command. + hexdump(@xbytes); + } elsif (($cmd & 0x0f) == 2) { + if ($#xbytes>-1) { + print ">DATA: "; hexdump(@xbytes); + } + } elsif (($cmd & 0x0f) == 3) { + # print ">STAT: "; hexdump(@xbytes); + } elsif (($cmd & 0x0f) == 4) { + splice @xbytes, 0, 12; + my $size = get_uint32(\@xbytes); + # print ">SIZE: $size\n"; + } else { + # printf ">Unknown(%x): ", $cmd; hexdump(@xbytes); + } +} + +sub print_wrap_response { + my ($dataref,$bytesref) = @_; + my @xdata = @{$dataref}; + my @xbytes = @{$bytesref}; + my ($curseq, $shouldbe0); + + $curseq = get_uint32(\@xbytes); + $shouldbe0 = get_uint32(\@xbytes); + if ($shouldbe0 != 0) { + print "RESPONSE, but response should be 0?\n"; + return; + } + return if ($#xdata==-1); + # print "response data: ";hexdump(@xdata); + my @blub = @xdata; + my $length = get_uint32(\@xdata); + my $c0 = get_uint8(\@xdata); + my $c1 = get_uint8(\@xdata); + my $c2 = get_uint8(\@xdata); + my $c3 = get_uint8(\@xdata); + if (!(($c2 == 0xff) && ($c3 == 0x9f))) { + #print "response unknown?, $c2, $c3\n"; hexdump(@blub); + return; + } + if ($c0 == 0x01) { + # print "-1) { + print " + + * Makefile.am: do not build blink driver anymore, + not working anyway. + +2005-03-23 Marcus Meissner + + * blink2.c: added delete all and capture image. + * blink2.txt: started documenting. + +2004-04-01 Marcus Meissner + + * merged patch for Snap from Thomas Coffy , + changes some usb lowlevel stuff. + +2004-01-19 Marcus Meissner + + * blink2.c: Some alignment issues, set altsetting. + * xjpeg.c: Added APP1, APP2. + +2003-06-22 Marcus Meissner + + * blink2.c: SiPix Blink2 now downloads viewable + images. + * xjpeg.c: Small tool to view jpeg tags with contents, not + compiled. + +2003-05-20 Marcus Meissner + + * blink2.[ch]: New SiPix Blink2 driver. Downloads + unprocessed JPEG for now (needs a bit work). + + * blink2.c: SiPix Snap should also work, according to + old snoopy trace. + + * Makefile.am: reorganized file layout. + +2002-12-04 Marcus Meissner + + * Intermediate checkin of my current work. + + - Can read bitstream to some degree and extract the DCT tables. + Still apparently does not find the endmarker correctly. + +2002-09-21 Marcus Meissner + + * Imported SiPix StyleCam Blink driver from + Vincent Sanders + + * Cleaned it up and made it work, still dumps compressed images. + +2002-04-12 Marcus Meissner + + * *: First version of SiPix Web2 driver: + + The Camera is a 640x480 JPEG camera. The driver + currently supports: + - Picture, Thumbnail, EXIF download. + - Delete Single Picture diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/Makefile-files new file mode 100644 index 00000000..8010fcd0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/Makefile-files @@ -0,0 +1,28 @@ +# -*- Makefile -*- + +EXTRA_DIST += sipix/web2.html sipix/blink.c sipix/blink.txt \ + sipix/xjpeg.c sipix/blink2.txt sipix/ChangeLog + +# Seems to be obsolete +EXTRA_LTLIBRARIES += sipix_blink.la + +sipix_blink_la_SOURCES = sipix/blink.c +sipix_blink_la_LDFLAGS = $(camlib_ldflags) +sipix_blink_la_DEPENDENCIES = $(camlib_dependencies) +sipix_blink_la_LIBADD = $(camlib_libadd) + + +EXTRA_LTLIBRARIES += sipix_blink2.la + +sipix_blink2_la_SOURCES = sipix/blink2.c +sipix_blink2_la_LDFLAGS = $(camlib_ldflags) +sipix_blink2_la_DEPENDENCIES = $(camlib_dependencies) +sipix_blink2_la_LIBADD = $(camlib_libadd) @LIBJPEG@ + + +EXTRA_LTLIBRARIES += sipix_web2.la + +sipix_web2_la_SOURCES = sipix/web2.c +sipix_web2_la_LDFLAGS = $(camlib_ldflags) +sipix_web2_la_DEPENDENCIES = $(camlib_dependencies) +sipix_web2_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink.c new file mode 100644 index 00000000..e1395d05 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink.c @@ -0,0 +1,1010 @@ +/* sipixblink.c + * + * Copyright 2002 Vincent Sanders + * Copyright 2002 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; + * version 2 of the License + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +/* + * This library is unfinished! -Marcus + * + */ +#include "config.h" +#include +#include +#include + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "SiPix Blink"); + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "SiPix:Blink"); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + a.usb_vendor = 0x0851; + a.usb_product = 0x1542; + a.operations = GP_OPERATION_NONE; + a.file_operations = 0; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + gp_abilities_list_append(list, a); + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + return (GP_OK); +} + +static int +_get_number_images(Camera *camera) { + int ret; + unsigned char reply[8]; + + ret = gp_port_usb_msg_read (camera->port, 0, 0, 0, reply, 2); + if (ret < GP_OK) + return ret; + return reply[0] | (reply[1]<<8); +} + +#if 0 +static void +_mult_64words(short *result, short *in, short *mult) { + int i; + + for (i=0;i<64;i++) + result[i] = in[i] * mult[i]; +} +#endif + +static int +decomp_dct( + unsigned short *outtable, + unsigned char *input, + unsigned short *table +) { + int inpos = 1, outpos = 0; + int xinp = input[0]; + int curinflags = (input[0] & 0x30) << 2; + + if (!input[inpos]) return inpos; + + while (1) { + if (outpos >= 64) return inpos; + if (inpos >= 128) return inpos; + + switch (curinflags) { + case 0x00: /* Set position into the 8x8 DCT */ + xinp = input[inpos]; + curinflags = xinp & 0xc0; + outpos = xinp & 0x3f; + fprintf(stderr,"00:set outpos to %d\n", outpos); + inpos++; + break; + case 0x40: /* Set 2 DCT values from 2x 3 bit data */ + xinp = input[inpos]; + curinflags = xinp & 0xc0; + outtable[outpos+1] = (table+0)[xinp]; + outtable[outpos ] = (table+256)[xinp]; + outpos += 2; + inpos += 1; + fprintf(stderr,"40:input was %02x values are %x, %x\n", xinp, table[xinp], (table+256)[xinp]); + break; + case 0x80: /* Set 1 DCT value from 6bit compressed data */ + xinp = input[inpos]; + curinflags = xinp & 0xc0; + outtable[outpos] = (table+512)[xinp]; + inpos++; + outpos++; + fprintf(stderr,"80:input was %02x, value is %x\n", xinp, (table+512)[xinp]); + break; + case 0xc0: /* Set 1 value in DCT, 9 bit */ + xinp=((input[inpos+0]&0x1f)<<7)|(input[inpos+1]&0x7f); + if (xinp & 0x0800) + xinp |= 0xff00; + curinflags = input[inpos+1] & 0xc0; + outtable[outpos] = xinp; + outpos++; + inpos += 2; + fprintf(stderr,"80:input was %04x\n", xinp); + break; + default: + break; + } + if (!input[inpos]) return inpos; + } +} + +static void +init_dct_uncomp_table(unsigned short *tables) { + unsigned short *table1 = tables; + unsigned short *table2 = tables + 256; + unsigned short *table3 = tables + 512; + int i; + + for (i=0;i<256;i++) { + unsigned short x; + if (i & 4) { /* negative */ + x = i | 0xfff8; + } else { + x = i & 0x007; + } + table1[i] = x; + + if (i & 0x20) { + x = (i >> 3) | 0xfff8; + } else { + x = (i >> 3) & 0x0007; + } + table2[i] = x; + + if (i & 0x20) { + x = i | 0xffc0; + } else { + x = i & 0x003f; + } + table3[i] = x; + } +} + +static void db(unsigned char *b, int howmuch) { + int i; + for (i=0;idstptr; + edx = arg4->dstptr; + + eax = arg0->srcptr; + esi = arg4->srcptr; + + dest = lineoffsets[off]; + + if (off) + source = lineoffsets[off-1] + else + source = lineoffsets[0]; + + esi -= eax; + + for (i = 8; i--; ) { + edi = source + (word)[esi+eax]; + ebx = dest + (word)[eax]; + eax+= 0x10; + [ebx+ecx-7] = [edi+edx-7]; + [ebx+ecx-3] = [edi+edx-3]; + } +} + +10001dcf(arg0, short *ecx, arg8, argc) { /* 10011af0 */ + int i,j; + + eax = arg0; + edx = argC; + ecx = (word)arg8; + edx = [edx + ecx*4]; + + esi = [eax]; + edi = [eax+4]; + + /* copy out a 8x8 matrix */ + for (ebp=8;ebp--;) { + eax = (word)[edi] + edx; + + edi += 0x10; + ecx += 8; /* 16 bytes */ + + for (j=0;j<8;j++) + esi[eax+j] = (byte)100cf224( *(ecx+(8-j)) ); + } +} + +static int +_decompressor( +) { + char *buf; + int cur; + + ebx = arg0; + edx = [ebx+0x19c]; + eax = [ebx+0x138]; + cx = [ebx+0x134]; + di = [ebx+0x136]; + var148 = edx; + edx = [ebx+0x7ba]; + var14c = edi; + ebp = 0; + edi--; + buf = eax; + var150 = ecx; + cur = 6; + var158 = ebp; + if (edx == ebp) goto 100112af; + if (cx <= bp) goto 10011262; +1001114e: + ecx = (buf[cur] & 0x3f) << 7) | (buf[cur+1] & 0x7f); + edx = var158; /* word -> dword zero ext. */ + if (edx != ecx) return 0; + cur += 3; + + var154 = 0; + if (var14c <= 0) goto 10011242; + var15c = ebx+16c; +1001118e: + al = [cur + buf]; + if ((al & 0xc0 ) == 0xc0) { + call 10011c80([var15c],[ebx+di*4+0x16c],ebp,var148); + cur += 2; + } else { + memset(dct1,0,2*8*8); + cur = cur + decomp_dct( dct1, cur + buf, ebx) + 1; + _mult_64words(&dct, dct1, [var15c - 0x6c]); + IDCT_AAN(&dct); + 10001dcf([15c], &dct, ebp, var148); + } +1001121c: + var15c += 4; + ebp++; + edi = var154; + var154++; + if (var154 < var14c) goto 1001118e; + +10011242: + if (cur > [ebx+7bc]) goto 100113c9; + var158++; + if (var158 < var150) goto 1001114e; + +10011262: + al = [ebx+0x7c0]; + if (al != 9) goto 1001145e; + + eax = [ebx+0x144]; + cdq; + eax -= edx; + esi = eax; + eax = [ebx+0x148]; + cdq; + eax -= edx; + edi = eax; + edi >>= 1; + esi >>= 1; + var150 = malloc(edi * esi); + if (!var150) return 0; + goto 100113f3; + +100112af: + if (cx <= bp) goto 10011262; +100112b4: + cl = [cur+buf]; + dl = [cur+buf+1]; + ecx & = 0x3f; + edx & = 0x7f; + ecx <<= 7; + ecx |= edx; + + edx = var158; + if (ecx != edx) return 0; + cur+=3; + var154 = 0; + if (var14c <= 0) goto 100113a8; + var15c = ebx+0x16c; + +100112f4: + edx = buf+cur; + al = buf+cur; + if (al & 0xc0 != 0xc0) goto 10011325; + + 100020b8([var15c], [ebx+di*4+0x16c], ebp, var148); + cur += 2; + goto 10011382; +10011325: + memset(xtable128, 0, 32*4); / 8x8 16bit words */ + decomp_dct(xtable128, edx, ebx); + esi = cur+buf+1; + _mult_64words(&var140, xtable128, [var15c - 0x6c]); + IDCT_AAN(&var140); + 1000123f([edi], &var140, var148); + +10011382: + eax = var154; + edx = var15c; + ebp++; + edi = eax; + eax++; + edx += 4; + var154 = eax; + var15c = edx; + if (var154 < var14c) goto 100112f4; + + +100113a8: + if (cur > [ebx+0x7bc]) goto 100113c9; + ecx = var158; + ecx++; + var158 = cx; + if (cx < var150) goto 100112b4; + goto 10011262; + + +100113c9: + sprintf(&var40,"rlidx %d > pDecmpExt->CompressedDataLen %d !", + cur, + [ebx+0x7bc] + ); + return 0; + +100113f3: + ebp = malloc(edi * esi); + if (!ebp) return 0; + +1001140f: + 100021e9(var150, [ebx+0x15c], esi, edi); + 100021e9(ebp, [ebx+0x164], esi ,edi); + + eax = [ebx+0x15c] + [ebx+0x15c] = var150; + free(eax); + eax = [ebx+0x164] + [ebx+0x164] = ebp; + free(eax); + goto 10011489; +1001145e: + if (al != 8) goto 10011489; + if (! [ebx+0x7c4] ) goto 10011489; + 1000202c([ebx+0x154], [ebx+0x144], [ebx+0x148]); +10011489: + if ([ebx + 0x7a8] == 1) { + 100014ce(ebx); + } else { + 1000150a(ebx); + } + eax = [ebx + 0x7a8]; + eax--; + switch (eax) { + case 1: + 10001889(ebx); + return 1; + case 2: + 10001f28(ebx); + return 1; + case 3: + case 5: + 10001271(ebx); + return 1; + case 4: + 100012c1(ebx); + return 1; + case 6: + 10001712(ebx); + return 1; + case 7: + 100011c2(ebx); + return 1; + default: + return 1; + } +} + +_10001889(this) { + ecx = [this + 0x7a4]; + var4 = ecx; + var70 = 3168; + var94 = ecx + 0x835; + var7c = ecx + 0x18b4; + var74 = ecx + 0x1491; + var80 = ecx + 0x106f; + var84 = ecx + 0x0412; + var78 = 0x0030; +10012f90: + var90 = var84; + var8c = var94; + var9c = ecx - 6; + var44 = -6; + edx = ecx - 3; + var3c = -3; + ebx = ecx - 5; + var2c = -5; + var88 = ecx+1; + var34 = 1; + vara0 = ecx-2; + var24 = -2; + var98 = ecx - 4; + var14 = -4; + vara4 = ecx + 2; + var1c = 2; + vara8 = ecx - 1; + var0c = -1; + + var20 = var9c - edx; + var68 = ebx - edx; + ecx = var88; + var38 = var88 - edx; + var64 = vara0 - edx; + var54 = var98 - edx; + var5c = vara4 - edx; + var4c = vara8 - edx; + + var50 = var9c - ebx; + var28 = vara0 - ebx; + var08 = var98 - ebx; + var48 = vara4 - ebx; + var40 = vara8 - ebx; + + var18 = ebx - ecx + ebp = edx; + vara0 = 0x20; + var10 = edx - ecx; + + var30 = var98 - ecx; + var60 = vara4 - ecx; + var58 = vara8 - ecx; + ecx = ebx - edx; + var9c = var98 - edx; + ebp = var8c; + vara4 = vara4 - edx; + vara8 = vara8 - edx; + edx = var90; + + var88 = ecx; + goto 1001311b; +10013117: + ecx = var88; +1001311b: + ebx = 0; + bl = [edx + ecx]; + ecx = 0; + cl = [eax - 0x14a0]; + ebx += ecx; + ecx = 0; + ebx = ebx >> 1; + [esi - 0x1080] = bl; + cl = [ebp - 0x420]; + ebx = 0; + ebp = vara4; + bl = [edi - 0xc60]; + ecx += ebx; + ebx = var9c; + ecx = ecx >> 1; + [edx] = cl; + ecx = 0; + cl = [edx + ebx]; + ebx = 0; + bl = [edx + ebp]; + ebp = var8c; + ecx += ebx; + ebx = vara8; + ecx = ecx >> 1; + [ebx + edx] = cl; + ecx = var18; + edx = 0; + ebx = var30; + dl = [ecx + ebp]; + ecx = 0; + cl = [eax - 0x1080]; + edx += ecx; + ecx = 0; + edx = edx >> 1; + [esi - 0xc60] = dl; + cl = [ebp]; + edx = 0; + dl = [edi-0x840]; + edx += ecx; + edx >>= 1; + [ecx + ebp] = dl; + ecx = var10; +1001319d ... oder so; + +} + +_10001f28(this) { + int pitch; + + var0c = 0; + arg0 = [this + 0x14c]; + var14 = [this + 0x7a4]; + var10 = [this + 0x7ac]; + pitch = [this + 0x144] * 3; + var4 = [this + 0x150]; + var18 = 0; + esi = 0; + while (var0c < var4) { + switch (var18 % 5) { + case 0: + case 2: + case 4: + var0c++; + ebx = 0; + edi = 0; + ecx = var14; + while (ebx < arg0 ) { + switch (edi % 25) { + case 0: case 2: case 3: case 5: case 7: case 9: + case 11: case 13: case 15: case 17: case 19: case 21: + case 23: case 24: + ebx++; + memcpy(esi + var10, ecx, 3); + esi+=3; + break; + } + ecx += 3; + edi++; + } + default: /* nothing */ + break; + } + var14 += pitch; + var18++; + } +} + + + +_xdecomp(arg0, arg4, arg8, argc, arg10, arg14) { + eax = argc; + esi = arg10; + ebx = eax - 8; + edx = 0; + ecx = [esi + 0x138]; + edi = 0; + arg10 = ecx; + eax = arg8; + + while (edx <= ebx) { + if (!(dword)[eax] && !(byte)[eax+7]) break; + memcpy(ecx,eax,8); + edi+=8; + ecx+=8; + edx+=8; + eax+=8; + } +/*10010f6e:*/ + ecx = arg10; + edi++; + [edi + ecx - 1] ] = 0; + [esi + 0x7bc] = edi; + eax = _decompressor(esi); + if (!eax) goto 1001104d; + eax = arg14; + if (!eax) goto 1001101f; + eax = [esi + 0x14c]; + switch (eax) { + case 800: 10014140(esi); break; + case 640: 10013dd0(esi); break; + case 352: 10013eb0(esi); break; + case 160: 10014360(esi); break; + case 176: 10013fd0(esi); break; + case 320: 10014220(esi); break; + } +} + +/* shrinks image from CIF (352x288) -> VGA/4 (160x120) */ +10013eb0(arg0) { + int pitch; + int xcnt, xpixels; + int outoffset; + char *outdata, *indata; + + outdata = [arg0 + 0x7b4]; /* target image data */ + pitch = 3*[arg0 + 0x14c]; /* width in real pixels */ + indata = [arg0 + 0x7a4]; /* origin image data */ + xpixels = 0; + xcnt = 0; + while (xpixels < 120) { + switch (xcnt % 12) { + case 1: case 3: case 6: case 8: case 10: { + char *tmpdata = indata; + int ycnt = 0, ypixels = 0; + + xpixels++; + while (ypixels < 160) { + switch (ycnt % 11) { + case 1: case 3: case 5: case 7: case 9: + ypixels++; + memcpy(outdata, tmpdata, 3); + outdata += 3; + break; + default: + break; + } + tmpdata+=3; + ycnt++; + } + break; + default /* 10013f67 */: + break; + } + xcnt++; + data += pitch; + } +} + +#endif + + +static int +_check_image_header(unsigned char *d, int size) { + int width, height; + + if (d[0] != 0) + return FALSE; + if (d[1] > 0x3f) + return FALSE; + if ((d[2] & 0xc0) != 0x80) + return FALSE; + width = ((d[2] & 0x3f) << 4) | ((d[3] >> 3) & 0xf); + height = ((d[3] & 0x07) << 7) | (d[4] & 0x7f); + + fprintf(stderr,"picture is %d x %d\n",width,height); + + return TRUE; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + unsigned char reply[8]; + int image_no, picsize; + unsigned char *xdata, *ydata; + + + if (strcmp(folder,"/")) + return GP_ERROR_BAD_PARAMETERS; + image_no = gp_filesystem_number(fs, folder, filename, context); + + /* size */ + do { + gp_port_usb_msg_read (camera->port, 1, image_no , 1, reply, 8); + } while(reply[0]!=0); + + picsize = reply[1] | (reply[2] << 8) | ( reply[3] << 16); + /* Setup bulk transfer */ + do { + gp_port_usb_msg_read (camera->port, 2, image_no , 0, reply, 6); + } while(reply[0]!=0); + + /* bulk read */ + xdata = malloc(picsize); + gp_port_read(camera->port, xdata, picsize); + + ydata = malloc(640*480*3); + + _check_image_header(xdata, picsize); + + if (0) { /* disabled. replace 0 by 1 to enable */ + int cur; + + cur = 6; + while (cur < picsize) + cur += decompressor(xdata+cur); + } + gp_file_append(file, xdata, picsize); + free(xdata); + gp_file_set_mime_type (file, GP_MIME_UNKNOWN); + return (GP_OK); +} + +static int +camera_config_get (Camera *camera, CameraWidget **window, GPContext *context) +{ + gp_widget_new (GP_WIDGET_WINDOW, "Camera Configuration", window); + + /* Append your sections and widgets here. */ + + return (GP_OK); +} + +static int +camera_config_set (Camera *camera, CameraWidget *window, GPContext *context) +{ + /* + * Check if the widgets' values have changed. If yes, tell the camera. + */ + + return (GP_OK); +} + +static int +camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + /* + * Capture a preview and return the data in the given file (again, + * use gp_file_set_data_and_size, gp_file_set_mime_type, etc.). + * libgphoto2 assumes that previews are NOT stored on the camera's + * disk. If your camera does, please delete it from the camera. + */ + + return (GP_OK); +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + char reply[6]; + int oldimgno, newimgno, ret; + + oldimgno = _get_number_images(camera); + if (oldimgno < GP_OK) + return oldimgno; + do { /* FIXME: this will loop until a picture is taken. */ + ret = gp_port_usb_msg_read (camera->port, 4, 0, 0, reply, 6); + } while ((ret >= GP_OK) && (reply[0]!=0)); + if (ret < GP_OK) + return ret; + newimgno = _get_number_images(camera); + if (newimgno < GP_OK) + return newimgno; + if (newimgno == oldimgno) + return GP_ERROR; + strcpy(path->folder,"/"); + sprintf(path->name,"blink%03i.raw",newimgno); + return (GP_OK); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + /* + * Fill out the summary with some information about the current + * state of the camera (like pictures taken, etc.). + */ + + return (GP_OK); +} + +static int +camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + /* + * If you would like to tell the user some information about how + * to use the camera or the driver, this is the place to do. + */ + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Sipix StyleCam Blink Driver\n" + "Vincent Sanders \n" + "Marcus Meissner .\n" + )); + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + CameraFileInfo info; + unsigned char reply[6]; + int i, numpics, ret; + char fn[20]; + + numpics = _get_number_images(camera); + if (numpics < GP_OK) + return numpics; + /* gp_list_populate (list, "blink%03i.raw", numpics); */ +#if 1 + for (i=0;iport,1,i,8,reply,6); + if (ret < GP_OK) + return ret; + } while (reply[0]!=0); + + switch (reply[5] >> 5) { + case 0: /* VGA */ + info.file.width = 640; + info.file.height = 480; + break; + case 1: /* CIF */ + info.file.width = 352; + info.file.height = 288; + break; + case 2: /* QCIF */ + info.file.width = 176; + info.file.height = 144; + break; + case 3: /* QVGA */ + info.file.width = 320; + info.file.height = 240; + break; + case 4: /* ? */ + info.file.width = 800; + info.file.height = 592; + break; + case 5: /* VGA/4 */ + info.file.width = 160; + info.file.height = 120; + break; + default: + return GP_ERROR; + } + info.file.size = + (reply[1]) | + (reply[2] << 8) | + (reply[3] << 16)| + (reply[4] << 24); + ret = gp_filesystem_set_info_noop(fs, "/", fn, info, context); + if (ret != GP_OK) + return ret; + } +#endif + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + int res; + char reply[8]; + + GPPortSettings settings; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->get_config = camera_config_get; + camera->functions->set_config = camera_config_set; + camera->functions->capture = camera_capture; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + + /* Now, tell the filesystem where to get lists, files and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + /* + * The port is already provided with camera->port (and + * already open). You just have to use functions like + * gp_port_timeout_set, gp_port_settings_get, gp_port_settings_set. + */ + + /* Get the current settings */ + gp_port_get_settings (camera->port, &settings); + + /* Modify the default settings the core parsed */ + settings.usb.interface=1;/* we need to use interface 1 */ + settings.usb.inep=4; + + + /* Set the new settings */ + res = gp_port_set_settings (camera->port, settings); + if (res != GP_OK) { + gp_context_error (context, _("Could not apply USB settings")); + return res; + } + + /* + * Once you have configured the port, you should check if a + * connection to the camera can be established. + */ + gp_port_usb_msg_read (camera->port, 5, 1, 0, reply, 2); + if(reply[0]!=1) + return (GP_ERROR_IO); + + gp_port_usb_msg_read (camera->port, 5, 0, 0, reply, 8); + if(reply[0]!=1) + return (GP_ERROR_IO); + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink.txt new file mode 100644 index 00000000..d759d330 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink.txt @@ -0,0 +1,134 @@ +Sipix blink usb "toy" camera + +Stuff you need to know to control the *still* part of the camera +These are probably incomplete! but they do appear to work + +usb vendor id = 0x0851 +usb product id = 0x1542 + +device has 8megs ram and can take images at 640x480 and 320x240(ish) + +usb requests (snooped from doze driver - there listed in the order they appear) +all control requests are on the control pipe +bulk is only used to read data and is on interface 1 + + +Request +------- +no idea what this is for probably camera init? + +bmRequestType=c0 Vendor,device to host +bRequest = 5 +wValue = 1 +Index = 0 +Length = 2 + +Result:2bytes +contains: 01 00 + + + +Request +------- +again no idea - possibly camera id? - only first 6 bytes used +bmRequestType=c0 Vendor,device to host +bRequest = 5 +wValue = 0 +Index = 0 +Length = 8 + +Result:8bytes +contains:01 06 79 10 3e 1e 00 00 + + +Request +------- +Get picture count + +bmRequestType=c0 Vendor,device to host +bRequest = 0 +wValue = 0 +Index = 0 +Length = 8 + +Result:2bytes +contains:04 00 (there were 4 pics in device) + + + +Request +------- + +Gets size of specified image, odd in that request is repeated untill +first byte in returned data changes to 0 + +The returned size is in "blocks" these are 0x100 bytes long eithr that +or ive cocked up where the size field is by a byte ;-) + +bmRequestType=c0 Vendor,device to host +bRequest = 1 +wValue = 0 (image index from 0) +Index = 1 +Length = 8 + +Result:8bytes +contains:01 00 00 00 00 00 00 00 + +untill value changes +Result:8bytes +contains:00 00 10 01 00 00 00 00 + + +8 bytes break down into +byte 00:ready 0 - yes 1 -no + +byte 01: size 0 + 02: size 1 + 03: size 2 + 04: size 3 + 05: format flags + + Image Size: Upper 3 bits: (x >> 5) + + 0 - 640x480 + 1 - 352x288 + 2 - 176x144 + 3 - 320x240 + 4 - 800x592 + 5 - 160x120 + + Unknown: Lower 2 bits ( x & 0x03) + + 0 -> 2 + 2 -> 1 + 3 -> 0 + 1 -> ? + + Unknown: Mid 3 bits ( (x >> 2) & 0x07) + + + + 06 + 07 + + +request +------- +Positions bulk pipe ready to download image +Again request is repeated untill returned data byte 0 is set to 0 + +bmRequestType=c0 Vendor,device to host +bRequest = 2 +wValue = 0 (image index) +Index = 0 +Length = 6 + +Result:6bytes +contains:01 00 00 00 00 00 + +untill data changes to: +contains:00 00 00 00 00 00 + + +opens bulk pipe and starts reading data in 0x100(256) byte chunks +closes bulk pipe diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink2.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink2.c new file mode 100644 index 00000000..e5151c6a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink2.c @@ -0,0 +1,486 @@ +/* blink2.c + * + * Copyright 2003 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include +#include + +#ifdef HAVE_LIBJPEG +# include +#endif + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define BLINK2_GET_NUMPICS 0x08 +#define BLINK2_GET_MEMORY 0x0a +#define BLINK2_GET_DIR 0x0d +#define BLINK2_INIT_CAPTURE 0x0e +#define BLINK2_DELETE_ALL 0x12 +#define BLINK2_CHECK_CAPTURE_FINISH 0x16 +#define BLINK2_SET_EXPOSURE_COUNT 0x17 +#define BLINK2_GET_FIRMWARE_ID 0x18 + +static int +blink2_getnumpics( + GPPort *port, GPContext *context, unsigned int *numpics +) { + unsigned char buf[2]; + int ret; + + ret = gp_port_usb_msg_read(port, BLINK2_GET_NUMPICS, 0x03, 0, (char*)buf, 2); + if (ret < GP_OK) + return ret; + gp_log(GP_LOG_DEBUG, "blink2","ret is %d", ret); + if (ret < 2) return GP_ERROR_IO_READ; + *numpics = (buf[0]<<8) | buf[1]; + return GP_OK; +} + +#ifdef HAVE_LIBJPEG +/* for the jpeg decompressor source manager. */ +static void _jpeg_init_source(j_decompress_ptr cinfo) { } + +static boolean _jpeg_fill_input_buffer(j_decompress_ptr cinfo) { + fprintf(stderr,"(), should not get here.\n"); + return FALSE; +} + +static void _jpeg_skip_input_data(j_decompress_ptr cinfo,long num_bytes) { + fprintf(stderr,"(%ld), should not get here.\n",num_bytes); +} + +static boolean _jpeg_resync_to_restart(j_decompress_ptr cinfo, int desired) { + fprintf(stderr,"(desired=%d), should not get here.\n",desired); + return FALSE; +} +static void _jpeg_term_source(j_decompress_ptr cinfo) { } +#endif + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i, ret; + unsigned int bytes, numpics; + unsigned char *xbuf, buf[8]; + + ret = blink2_getnumpics( camera->port, context, &numpics ); + if (ret < GP_OK) return ret; + + bytes = ((8*(1+numpics))+0x3f) & ~0x3f; + xbuf = malloc(bytes); + ret = gp_port_usb_msg_read( camera->port,BLINK2_GET_DIR,0x03,0,(char*)buf,1 ); + if (ret < GP_OK) { + free(xbuf); + return ret; + } + if (ret < 1) return GP_ERROR_IO_READ; + ret = gp_port_read( camera->port, (char*)xbuf, bytes); + if (ret < GP_OK) { + free(xbuf); + return ret; + } + if (ret < bytes) return GP_ERROR_IO_READ; + for ( i=0; i < numpics; i++) { + char name[20]; + if (xbuf[8*(i+1)]) + sprintf( name, "image%04d.avi", i); + else + sprintf( name, "image%04d.pnm", i); + gp_list_append( list, name, NULL); + } + free(xbuf); + return GP_OK; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + int image_no, result; + int i, ret; + unsigned int numpics, bytes; + unsigned char *xbuf, buf[8]; + + struct xaddr { + unsigned int type, start,len; + } *addrs; + + ret = blink2_getnumpics( camera->port, context, &numpics ); + if (ret < GP_OK) return ret; + gp_log(GP_LOG_DEBUG, "blink2","numpics is %d", numpics); + bytes = ((8*(1+numpics))+0x3f) & ~0x3f; + xbuf = malloc(bytes); + if (!xbuf) + return GP_ERROR_NO_MEMORY; + addrs = (struct xaddr*)malloc(sizeof(struct xaddr)*numpics); + if (!addrs) { + free(xbuf); + return GP_ERROR_NO_MEMORY; + } + ret = gp_port_usb_msg_read( camera->port,BLINK2_GET_DIR,0x03,0,(char*)buf,1 ); + if (ret < GP_OK) { + free(addrs); + free(xbuf); + return ret; + } + if (ret < 1) return GP_ERROR_IO_READ; + ret = gp_port_read (camera->port, (char*)xbuf, bytes); + if (ret < GP_OK) { + free(addrs); + free(xbuf); + return ret; + } + if (ret < bytes) return GP_ERROR_IO_READ; + for ( i=0; i < numpics; i++) { + int end, start; + + start = (xbuf[8*i+ 5] << 16) | + (xbuf[8*i+ 6] << 8) | + (xbuf[8*i+ 7]); + end = (xbuf[8*i+13] << 16) | + (xbuf[8*i+14] << 8) | + (xbuf[8*i+15]); + + if (end < start) + return GP_ERROR_IO_READ; + + addrs[i].start = start; + addrs[i].len = (end-start)/4; + addrs[i].type = xbuf[8*(i+1)]; + gp_log(GP_LOG_DEBUG, "blink2","%d - %d", start, (end-start)/4); + } + free(xbuf); + + image_no = gp_filesystem_number(fs, folder, filename, context); + if(image_no < 0) { + free(addrs); + return image_no; + } + if (image_no >= numpics) { + free(addrs); + gp_log(GP_LOG_DEBUG, "blink2","image %d requested, but only %d pics on camera?", image_no, numpics); + return GP_ERROR; + } + switch (type) { + case GP_FILE_TYPE_NORMAL: +#ifdef HAVE_LIBJPEG +{ + char *convline,*convline2,*rawline; + unsigned char *jpegdata; + unsigned int curread, start, len, pitch; + struct jpeg_decompress_struct dinfo; + struct jpeg_source_mgr xjsm; + struct jpeg_error_mgr jerr; + + memset( buf, 0, sizeof(buf)); + if (addrs[image_no].type) + gp_file_set_mime_type (file, GP_MIME_AVI); + else + gp_file_set_mime_type (file, GP_MIME_JPEG); + start = addrs[image_no].start; + len = addrs[image_no].len; + + if (len >= UINT_MAX / 8) { + result = GP_ERROR_NO_MEMORY; + break; + } + jpegdata = (unsigned char*)malloc (len*8); + if (!jpegdata) { + result = GP_ERROR_NO_MEMORY; + break; + } + buf[0] = (start >> 24) & 0xff; + buf[1] = (start >> 16) & 0xff; + buf[2] = (start >> 8) & 0xff; + buf[3] = start & 0xff; + buf[4] = (len >> 24) & 0xff; + buf[5] = (len >> 16) & 0xff; + buf[6] = (len >> 8) & 0xff; + buf[7] = len & 0xff; + result = gp_port_usb_msg_write (camera->port,BLINK2_GET_MEMORY,0x03,0,(char*)buf,8); + if (result < GP_OK) { + free (jpegdata); + break; + } + len *= 8; + curread = 0; + do { + int res; + res = gp_port_read (camera->port, (char*)(jpegdata+curread), len-curread ); + if (res < GP_OK) { + result = GP_OK; + break; + } + if (!res) break; + curread += res; + } while (curread<=len); + + memset( &dinfo, 0, sizeof(dinfo)); + xjsm.next_input_byte = jpegdata; + xjsm.bytes_in_buffer = len; + xjsm.init_source = _jpeg_init_source; + xjsm.fill_input_buffer = _jpeg_fill_input_buffer; + xjsm.skip_input_data = _jpeg_skip_input_data; + xjsm.resync_to_restart = _jpeg_resync_to_restart; + xjsm.term_source = _jpeg_term_source; + dinfo.err = jpeg_std_error(&jerr); + jpeg_create_decompress(&dinfo); + dinfo.src = &xjsm; + ret = jpeg_read_header(&dinfo,TRUE); + if (ret != JPEG_HEADER_OK) { + jpeg_destroy_decompress(&dinfo); + free (jpegdata); + break; + } + dinfo.out_color_space = JCS_RGB; + jpeg_start_decompress(&dinfo); + + pitch = (dinfo.output_width*dinfo.output_components+3)&~3; + + rawline = malloc(pitch); + convline = malloc(dinfo.output_width*2*3); + convline2 = malloc(dinfo.output_width*2*2*3); + { + char foo[30]; + sprintf(foo,"P6\n%d %d 255\n",dinfo.output_width, dinfo.output_height*2); + gp_file_append (file, foo, strlen(foo)); + } + for (i = 0; i < dinfo.output_height ; i++ ) { + int j; + JSAMPROW row[1]; + JSAMPARRAY arr = row; + + row[0] = (JSAMPROW)rawline; + jpeg_read_scanlines(&dinfo,arr,1); + + memcpy(convline+((dinfo.output_width/16-1)*16+8)*3, rawline+((dinfo.output_width/16-1)*16+8)*3, 8*3); + memcpy(convline+pitch/2, rawline, 8*3); + for (j=0;j<(dinfo.output_width/16-1);j++) { + if ((j&1) == 0) + memcpy(convline+((j/2)*16)*3,rawline+(j*16+8)*3,16*3); + else + memcpy(convline+pitch/2+((j/2)*16+8)*3,rawline+(j*16+8)*3,16*3); + } + for (j=0;j> 24) & 0xff; + buf[1] = (start >> 16) & 0xff; + buf[2] = (start >> 8) & 0xff; + buf[3] = start & 0xff; + buf[4] = (len >> 24) & 0xff; + buf[5] = (len >> 16) & 0xff; + buf[6] = (len >> 8) & 0xff; + buf[7] = len & 0xff; + result = gp_port_usb_msg_write(camera->port,BLINK2_GET_MEMORY,0x03,0,(char*)buf,8); + if (result < GP_OK) + break; + len = len*8; + do { + curread = 4096; + if (curread > len) curread = len; + curread = gp_port_read( camera->port, buf2, curread); + if (curread < GP_OK) { + result = GP_OK; + break; + } + len -= curread; + result = gp_file_append( file, buf2, curread); + if (result < GP_OK) + break; + } while (len>0); + break; + } + default: + result = GP_ERROR_NOT_SUPPORTED; + break; + } + free(addrs); + if (result < 0) + return result; + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + int ret; + char buf[1]; + + ret = gp_port_usb_msg_read( camera->port, BLINK2_DELETE_ALL, 0x03, 0, buf, 1); + if (ret < GP_OK) + return ret; + if (ret < 1) return GP_ERROR_IO_READ; + return GP_OK; +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + int ret; + unsigned int oldnumpics, numpics; + char buf[1]; + + ret = blink2_getnumpics (camera->port, context, &oldnumpics); + if (ret < GP_OK) + return ret; + + ret = gp_port_usb_msg_read( camera->port, BLINK2_INIT_CAPTURE, 0x03, 0, buf, 1); + if (ret < GP_OK) + return ret; + if (ret < 1) return GP_ERROR_IO_READ; + do { + ret = gp_port_usb_msg_read( camera->port, BLINK2_CHECK_CAPTURE_FINISH, 0x03, 0, buf, 1); + if (ret < GP_OK) + return ret; + if (ret < 1) return GP_ERROR_IO_READ; + sleep(1); + } while (buf[0] == 0x00); + + ret = blink2_getnumpics (camera->port, context, &numpics); + if (ret < GP_OK) + return ret; + if (numpics == oldnumpics) + return (GP_ERROR); + strcpy (path->folder,"/"); + sprintf (path->name,"image%04d.pnm",numpics-1); + return (GP_OK); +} + + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "SiPix:Blink 2"); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = 0x0c77; + a.usb_product = 0x1011; + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.file_operations = GP_FILE_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + gp_abilities_list_append(list, a); + + a.usb_product = 0x1010; + strcpy(a.model, "SiPix:Snap"); + gp_abilities_list_append(list, a); + + a.usb_product = 0x1015; + strcpy(a.model, "SiPix:CAMeleon"); + gp_abilities_list_append(list, a); + + return (GP_OK); +} + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "SiPix Blink2"); + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .delete_all_func = delete_all_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + char buf[6]; + int ret; + GPPortSettings settings; + + camera->functions->capture = camera_capture; + + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + gp_port_get_settings( camera->port, &settings); + settings.usb.config = 1; + settings.usb.interface = 0; + settings.usb.altsetting = 0; + ret = gp_port_set_settings (camera->port, settings); + if (ret < GP_OK) return ret; + + ret = gp_port_usb_msg_read( camera->port, BLINK2_GET_FIRMWARE_ID, 0x03, 0, buf, 6); + if (ret < GP_OK) + return ret; + if (ret < 6) return GP_ERROR_IO_READ; + ret = gp_port_usb_msg_read( camera->port, 0x04, 0x03, 0, buf, 1); + if (ret < GP_OK) + return ret; + if (ret < 1) return GP_ERROR_IO_READ; + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink2.txt new file mode 100644 index 00000000..51cc8198 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/blink2.txt @@ -0,0 +1,125 @@ +Blink2 Protocol + +Mostly control messages... + + (control bRequest, wValue, wIndex -> buf[wLength]) + +Get Firmware ID: + control read 0x18, 0x03, 0x00 -> buf[6] + + Gets the firmware id. + + +Number of Pictures: + control read 0x8, 0x03, 0x00 -> buf[2] (high, low byte) + + Gets number of pictures. + +Get Directory: + control read 0x0d, 0x03, 0x00 -> buf[1] + bulk read (((8*(1+numpics))+0x3f) & ~0x3f) bytes. + + Buffer has now: + i = 0 .. numpics: + buf[8*(i+1)] - movie flag + buf[8*(i+1)+5 ... 7] - 3 bytes start, MSB first + buf[8*(i+1)+13 ... 15] - 3 bytes end, MSB first + + Gets the directory entries. + + +Get Memory: + Prepare buffer as: + buf[0..4] start (MSB first) + buf[5..7] length (MSB first) + + control write 0x0a, 0x03, 0x00, buf[8] + bulk read (length) + + Gets the memory (imagedata) as specified. + + +Capture Picture: + control read 0x0e, 0x03, 0x00 -> buf[1] + do + control read 0x16, 0x03, 0x00 -> buf[1] + while buf[0] == 0 + + Afterwards the image is in the camera memory. + + + +Delete All Images: + control read 0x12, 0x03, 0x00 -> buf[1] + + All images on the camera are deleted. + + +Delete Last Image: + control read 0x11, 0x03, 0x00 -> buf[1] + + Last image on camera is deleted. + + +Start Video: + control read 0x4, 0x01, 0x00 -> buf[1] + + This starts the ISO transfers I suspect? + + +Current Video Position (??): + control read 0x7, 0x00, 0x00 -> buf[2] + + Unclear, I think it returns amount of data read in buf[2]. + + +Initialize Still Mode: + control read 0x4, 0x03, 0x00 -> buf[1] + + +Hmm (?) / Resync Routine: + control read 0x13, 0x0, 0x00 -> buf[1] + + +Bandwith Allocate(type): + 320x240: control read 0x14, 0x0, 0x00 -> buf[1] + 640x480: control read 0x15, 0x0, 0x00 -> buf[1] + + I think this is for ISO transfers, started by 0x04,0x01. + You need to change the interface accordingly. + + +Set Exposure Count(value): + control read 0x17, 0x03, value -> buf[1] + Unclear. + + +Set Compression(value): + control read 0x1b, 0x03, value -> buf[1] + Unclear. + + +Set Whitebalance(value): + control read 0x1d, 0x03, value -> buf[1] + Unclear. + + +Set Still Quality(value): + control read 0x1a, 0x03, value -> buf[1] + Unclear. + + +Set Flare(value) + control read 0x19, 0x03, value -> buf[1] + Unclear. + + +Internal Driver Properties: + ID Name Range Default + 0x01 Brightness 0-50 43 + 0x03 Sharpness 0-255 20 + 0x08 Saturation 0-128 128 + 0x0b Whitebalance 0-7 7 + 0x0c Gamma 0-11 9 + 0x0d Backlight 0-1 0 + 0x0e Contrast ? 0-14 7 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/web2.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/web2.c new file mode 100644 index 00000000..08e6f07d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/web2.c @@ -0,0 +1,696 @@ +/* web2.c + * + * Copyright 2002 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include +#include + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define WEB2_SELECT_PICTURE 0xb2 +#define WEB2_GET_NUMPICS 0xb6 + +#define WEB2_OPEN_CAMERA 0xd7 +#define WEB2_CLOSE_CAMERA 0xd8 + +#define WEB2_GET_EXIF 0xe5 +#define WEB2_GET_IMAGE 0x93 +#define WEB2_GET_THUMBNAIL 0x9b + +#define WEB2_GET_DIRENTRY 0xb9 + +#define WEB2_GET_PICINFO 0xad + +static int +web2_command( + GPPort *port, int iswrite, int cmd, int param, int index, char *data, int datasize +) { + int ret; + if (iswrite) + ret = gp_port_usb_msg_write(port,0,(cmd<<8)|param,index,data,datasize); + else + ret = gp_port_usb_msg_read(port,0,(cmd<<8)|param,index,data,datasize); +#if 0 + fprintf(stderr,"cmd %x, param %d, ret is %d\n",cmd, param, ret); + if ((ret > 0) && data) { + for (i=0;i=GP_OK) + ret=GP_OK; + return ret; +} + +static int +web2_init(GPPort *port, GPContext *context) { + return web2_command(port, 1, WEB2_OPEN_CAMERA, 1, 0, NULL, 0); +} + +static int +web2_exit(GPPort *port, GPContext *context) { + return web2_command(port, 1, WEB2_CLOSE_CAMERA, 0, 0, NULL, 0); +} + +static int +web2_select_picture(GPPort *port, GPContext *context, int picnum) { + char cmdbuf[2]; + + picnum++; + cmdbuf[0] = picnum & 0xff; + cmdbuf[1] = (picnum>>8) & 0xff; + return web2_command(port, 1, WEB2_SELECT_PICTURE, 0, 0, cmdbuf, 2); +} + +static const unsigned char ExifHeader[] = {0x45, 0x78, 0x69, 0x66, 0x00, 0x00}; + +static int +web2_getexif(GPPort *port, GPContext *context, CameraFile *file) +{ + int ret, i; + char xbuf[16384]; + + ret = web2_command(port, 1, WEB2_GET_EXIF, 0x00, 0, NULL, 0); + if (ret!=GP_OK) + return ret; + gp_file_append(file, (char*)ExifHeader, sizeof(ExifHeader)); + ret = gp_port_read(port, xbuf, sizeof(xbuf)); + if (ret < GP_OK) { + gp_file_clean(file); + return ret; + } + for (i=0;i sizeof(xbuf)) + toread = sizeof(xbuf); + ret = gp_port_read(port, xbuf, toread); + if (ret < GP_OK) + return ret; + gp_file_append(file,xbuf,ret); + curread+=ret; + gp_context_progress_update(context, id, curread); + if (toread!=ret) + break; + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + /* We need to read the rest too or the communication is in + * an undefined state. */ + wascanceled = 1; + } + } + gp_context_progress_stop(context, id); + if (wascanceled) + return GP_ERROR_CANCEL; + return GP_OK; +} + +static int +web2_get_picture_info( + GPPort *port, GPContext *context, + int picnum, + int *perc, int *incamera, int *flags, int *unk +) { + char cmdbuf[8]; + int ret; + + /* picnum is not in param, but in the control message index! */ + ret = web2_command(port, 0, WEB2_GET_PICINFO, 0, picnum+1, cmdbuf, 8); + if (ret != GP_OK) + return ret; + *perc = cmdbuf[0] | (cmdbuf[1] << 8); + *incamera = cmdbuf[2] | (cmdbuf[3] << 8); + *flags = cmdbuf[4] | (cmdbuf[5] << 8); + *unk = cmdbuf[6] | (cmdbuf[7] << 8); + return GP_OK; +} + +/********************** Unknown and/or incomplete ******************/ + +/* Called after 0xad and 0xb2 , with 0, 1, 2, or similar x values + * Seems to global, not picture based. (Select storage? Select camera access + * mode?) Not clear. You need to set it correctly before download or delete + * thought + */ +static int +web2_set_xx_mode(GPPort *port, GPContext *context, int mode) { + char cmdbuf[2]; + + cmdbuf[0] = mode & 0xff; + cmdbuf[1] = (mode>>8) & 0xff; + return web2_command(port, 1, 0xae, 0, 0, cmdbuf, 2); +} + +static int +web2_getnumpics( + GPPort *port, GPContext *context, + int *x1, int *numpics, int *x3, int *freemem +) { + char cmdbuf[10]; + int ret; + + ret = web2_command(port, 0, WEB2_GET_NUMPICS, 0x00, 0, cmdbuf, 10); + if (ret!=GP_OK) + return ret; + *x1 = cmdbuf[0] | (cmdbuf[1] << 8); /* unclear */ + *numpics = cmdbuf[2] | (cmdbuf[3] << 8); + *x3 = cmdbuf[4] | (cmdbuf[5] << 8); /* unclear */ + + /* sometimes looks like mem, sometimes it doesn't */ + *freemem = cmdbuf[6] | (cmdbuf[7] << 8) | (cmdbuf[8] << 16) | (cmdbuf[9] << 24); + return GP_OK; +} + +/* called with 0x00, 0x20, or 0x40 */ +/* 0x40 is 'delete selected picture' */ +/* the others are unknown */ +static int +web2_set_picture_attribute(GPPort *port, GPContext *context, int x, int *y) { + char cmdbuf[2]; + int ret; + + ret = web2_command(port, 0, 0xba, x, 0, cmdbuf, 2); + if (ret!=GP_OK) + return ret; + *y = cmdbuf[0] | (cmdbuf[1] << 8); + return GP_OK; +} + +#if 0 +/* gets 7 shorts */ +static int +_cmd_e6(GPPort *port, GPContext *context, short *arr) { + char cmdbuf[14]; + int i; + int ret; + ret = web2_command(port, 0, 0xe6, 0, 0, cmdbuf, 14); + if (ret!=GP_OK) + return ret; + for (i=0;i<7;i++) + arr[i] = cmdbuf[2*i+0] | (cmdbuf[2*i+1]<<8); + return GP_OK; +} + +int +_cmd_d0(GPPort *port, GPContext *context, int flag, short *retval) { + char buf[4]; + int ret; + + ret = web2_command(port, 0, 0xd0, 0, 0, buf, 4); + if (ret < 0) + return GP_ERROR_IO; + *retval = buf[flag*2] | (buf[flag*2+1]<<8); + return GP_OK; +} + +int /* change mode? args are 30,40,50 ... they will appear in d0 later */ +_cmd_1f(GPPort *port, GPContext *context, int x) { + return web2_command(port, 1, 0x1f, x, 0, NULL, 0); +} + + +int +_cmd_07(GPPort *port, GPContext *context, int *x) { + char cmdbuf[2]; + int ret; + + ret = web2_command(port, 0, 0x07, 0, 0, cmdbuf, 2); + if (ret < 0) + return GP_ERROR_IO; + *x = cmdbuf[0] | (cmdbuf[1]<<8); + return GP_OK; +} + +int +_cmd_0a(GPPort *port, GPContext *context, int x1, int x2) { + char buf[80], cmdbuf[2]; + int ret, i; + + cmdbuf[0] = x2&0xff; + cmdbuf[1] = (x2>>8)&0xff; + ret = web2_command(port, 1, 0x0a, x1, 0, cmdbuf, 2); + if (ret < 0) { + fprintf(stderr,"0a failed\n"); + return GP_ERROR_IO; + } + ret = gp_port_read(port, buf, 80); + if (ret<80) + return ret; + for (i=0;i>8)&0xff; + ret = web2_command(port, 1, 0x0b, x1, 0, cmdbuf, 2); + if (ret < 0) + return GP_ERROR_IO; + /* Bulk writes stuff */ + return GP_OK; +} + + +int +_cmd_eb(GPPort *port, GPContext *context, int x) { + char cmdbuf[2]; + + cmdbuf[0] = x & 0xff; + cmdbuf[1] = (x>>8) & 0xff; + /* Only 1 is passed as param, and x appears to be a BOOL */ + return web2_command(port, 1, 0xeb, 1, 0, cmdbuf, 2); +} + +int +_cmd_11(GPPort *port, GPContext *context, int x) { + return web2_command(port, 1, 0x11, x|0x20, 0, NULL, 0); +} + + +/* gets 1 shorts */ +int +_cmd_bf(GPPort *port, GPContext *context, int x, short *val) { + char cmdbuf[2]; + int ret; + ret = web2_command(port, 0, 0xbf, x, 0, cmdbuf, 2); + if (ret!=GP_OK) + return ret; + *val = cmdbuf[0] | (cmdbuf[1]<<8); + return GP_OK; +} + +int +_cmd_20(GPPort *port, GPContext *context, int x) { + return web2_command(port, 1, 0x20, x, 0, NULL, 0); +} + +int +_cmd_60(GPPort *port, GPContext *context, int x) { + return web2_command(port, 1, 0x60, x, 0, NULL, 0); +} + + +int +_cmd_20_0(GPPort *port, GPContext *context) { + return _cmd_20(port,context,0); +} + +int +_cmd_e1(GPPort *port, GPContext *context, int x) { + switch (x) { + case 0: /* keep 0 */ + break; + case 1: x = 0xe; + break; + default: x = 0xe + 0x19; + break; + } + return web2_command(port, 1, 0xe1, x, 0, NULL, 0); +} + +static short xshort[3]; + +int +_cmd_26(GPPort *port, GPContext *context, int x) { + char cmdbuf[6]; + int i; + + switch (x) { + case 0: + for (i=0;i<3;i++) { + cmdbuf[2*i+0] = xshort[i] & 0xff; + cmdbuf[2*i+1] = (xshort[i] >> 8) & 0xff; + } + return web2_command(port, 1, 0x26, 0x10, 0, cmdbuf, 6); + case 1: xshort[0] = 364; /* 16c */ + xshort[1] = 256; /* 100 */ + xshort[2] = 596; /* 254 */ + break; + case 2: xshort[0] = 998; /* 3e6 */ + xshort[1] = 256; /* 100 */ + xshort[2] = 259; /* 103 */ + break; + default: xshort[0] = 625; /* 271 */ + xshort[1] = 256; /* 100 */ + xshort[2] = 607; /* 25f */ + break; + } + for (i=0;i<3;i++) { + cmdbuf[2*i+0] = xshort[i] & 0xff; + cmdbuf[2*i+1] = (xshort[i] >> 8) & 0xff; + } + return web2_command(port, 1, 0x26, 0x00, 0, cmdbuf, 6); +} + +int +_cmd_75(GPPort *port, GPContext *context, int x) { + switch (x) { + case 0: x = 1;break; + case 1: x = 2;break; + case 2: x = 0;break; + default:x = 1;break; + } + return web2_command(port, 1, 0x75, x, 0, NULL, 0); +} + +int +_cmd_fb(GPPort *port, GPContext *context, int *y) { + char cmdbuf[2]; + int ret; + + ret = web2_command(port, 0, 0xfb, 0, 0xa2b8, cmdbuf, 2); + if (ret != GP_OK) + return ret; + *y = cmdbuf[0] | (cmdbuf[1] << 8); + return GP_OK; +} +#endif + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "SiPix Web2"); + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "SiPix:Web2"); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = 0x0c77; + a.usb_product = 0x1001; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE | GP_FILE_OPERATION_PREVIEW | GP_FILE_OPERATION_EXIF; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + gp_abilities_list_append(list, a); + + /* reported by Terry Lewis */ + strcpy(a.model, "SiPix:SC2100"); + a.usb_product = 0x1002; + gp_abilities_list_append(list, a); + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + return web2_exit(camera->port, context); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + int image_no, result, flags, aeflag, junk; + + if (strcmp(folder,"/")) + return GP_ERROR_BAD_PARAMETERS; + + image_no = gp_filesystem_number(fs, folder, filename, context); + if (image_no < GP_OK) + return image_no; + + result = web2_get_picture_info(camera->port, context, image_no, &junk, &junk, &flags, &junk); + if (result != GP_OK) + return result; + + if (flags & 1) { + aeflag = 1; + } else { + if (flags & 2) { + aeflag = 2; + } else { + fprintf(stderr,"Oops , 0xAD returned flags %x?!\n",flags); + return GP_ERROR; + } + } + result = web2_select_picture(camera->port, context, image_no); + if (result != GP_OK) + return result; + + result = web2_set_xx_mode(camera->port, context, aeflag); + if (result != GP_OK) + return result; + + /* + result = _cmd_e6(camera->port, context, fupp); + if (result != GP_OK) + return result; + + for (i=0;i<7;i++) + fprintf(stderr,"%d (%x)",fupp[i],fupp[i]); + fprintf(stderr,"\n"); + */ + + gp_file_set_mime_type (file, GP_MIME_JPEG); + + switch (type) { + case GP_FILE_TYPE_NORMAL: + /*result = _cmd_ae(camera->port, context, 1); + if (result != GP_OK) + fprintf(stderr,"ae 1 failed with %d\n",result); + */ + result = web2_getpicture(camera->port,context,file); + break; + case GP_FILE_TYPE_PREVIEW: + result = web2_getthumb (camera->port,context,file); + break; + case GP_FILE_TYPE_EXIF: + result = web2_getexif(camera->port,context,file); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + if (result < 0) + return result; + return (GP_OK); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int aeflag, flags, junk, result, image_no; + + image_no = gp_filesystem_number(fs, folder, filename, context); + if (image_no < GP_OK) + return image_no; + + result = web2_get_picture_info(camera->port, context, image_no, &junk, &junk, &flags, &junk); + if (result != GP_OK) + return result; + + if (flags & 1) { + aeflag = 1; + } else { + if (flags & 2) { + aeflag = 2; + } else { + fprintf(stderr,"Oops , 0xAD returned flags %x?!\n",flags); + return GP_ERROR; + } + } + + result = web2_select_picture(camera->port, context, image_no); + if (result != GP_OK) + return result; + + + result = web2_set_xx_mode(camera->port, context, aeflag); + if (result != GP_OK) + return result; + + /* Delete the file from the camera. */ + result = web2_set_picture_attribute(camera->port, context, 0x40, &junk); + if (result!= GP_OK) + return result; + /* fprintf(stderr,"ba 0x40 returns %d\n",junk);*/ + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("SiPix Web2\n" + "Marcus Meissner \n" + "Driver for accessing the SiPix Web2 camera.")); + + return (GP_OK); +} + +/* + * This function makes sure that the is . Even delete should keep that relation. + */ +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i, count, result, junk, flags, aeflag; + + result = web2_getnumpics(camera->port, context, &junk, &count, &junk, &junk); + if (result != GP_OK) + return result; + + for (i=0;iport, context, i, &junk, &junk, &flags, &junk); + if (result != GP_OK) + return result; + + if (flags & 1) { + aeflag = 1; + } else { + if (flags & 2) { + aeflag = 2; + } else { + fprintf(stderr,"Oops , 0xAD returned flags %x?!\n",flags); + return GP_ERROR; + } + } + result = web2_select_picture(camera->port, context, i); + if (result != GP_OK) + return result; + + result = web2_set_xx_mode(camera->port, context, aeflag); + if (result != GP_OK) + return result; + + result = web2_get_file_info(camera->port, context, fn, &size); + if (result != GP_OK) + return result; + gp_list_append(list, fn, NULL); + } + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + camera->functions->exit = camera_exit; + camera->functions->about = camera_about; + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + return web2_init(camera->port, context); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/web2.html b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/web2.html new file mode 100644 index 00000000..b201e53f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/web2.html @@ -0,0 +1,116 @@ + +USB control messages: + +
    +
  • Command : (cmd << 8) | param +
  • Index : only set for read +
  • Buffer : arguments, usually in WORDs +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CommandnameR/WCodeParamInd.DataDescription
Init CameraW0xD71--Send for opening the camera.
Exit CameraW0xD80--Send for closing the camera.
Select PictureW0xB20-WORD picnumSelect picnum picture (first is 1).
Download ImageW0x93Flags, 0x10,0x01. 0x00 works just fine.--Download selected picture by doing bulk reads (until no more data).
Download ThumbnailW0x9B0x00 ?--Download selected thumbnail by doing bulk reads (until no more data).
Download ExifW0xE50x00--Download EXIF data for selected picture by doing bulk reads (until no more data).
Get Picture InfoR0xAD0x00picnum4 words: percentage, index number (in camera?), flags, unknownApparently gets image information about images in camera.
Get Picture FileentryR0xB90x00-WORD check;
CHAR filename[14] (byteflipped) from 2..16
DWORD filesize (32bit?), unknown(32bit?)
Gets the directory entry of the file.
Delete PictureR0xBAWORD flag;-WORD result;Deletes the selected picture. Parameter might be 0x40 (delete?) or 0x00 (?).
Get Number of Pictures?R0xB60x00-WORD unknown
+ WORD numpics
+ WORD unknown
+ DWORD freemem? +
Gets several global parameters, like the number of pictures.The + last 32bit appear to be free memory?
diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/xjpeg.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/xjpeg.c new file mode 100644 index 00000000..e20eeb3f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sipix/xjpeg.c @@ -0,0 +1,250 @@ +/* Simple JPEG tag extractor and viewer + * + * Copyright 2003 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include +#include +#include + +#define APP0 0xe0 +#define APP1 0xe1 +#define APP2 0xe2 +#define DHT 0xc4 +#define SOI 0xd8 +#define DQT 0xdb +#define SOF0 0xc0 +#define SOS 0xda +#define COM 0xfe + +static int +rb(int suppress) { + unsigned char c; + + if (1!=read(fileno(stdin),&c,1)) + return -1; + if (!suppress) + fprintf(stderr,"%02x",c); + return c; +} + +static int +rd(int len, char *data) { + unsigned int c,i; + + for (i=0;i>4),td&0xf); + } + ss = rb(1); if (ss == -1) break; + se = rb(1); if (se == -1) break; + ahl = rb(1); if (ahl == -1) break; + fprintf(stderr,"ss=%d, se=%d, h=%d,l=%d\n",ss,se,(ahl>>4),ahl&0xf); + break; + } + case SOF0: { + int bitcnt,x,y,nf,i,c,hv,tq; + m = rb(1); if (m == -1) break; + bitcnt = m; + y = rb(1); if (y == -1) break; + m = rb(1); if (m == -1) break; + y = (y<<8) | m; + x = rb(1); if (x == -1) break; + m = rb(1); if (m == -1) break; + x = (x<<8) | m; + nf = rb(1); if (nf == -1) break; + + fprintf(stderr,":SOF0,bitcnt=%d,x=%d,y=%d:\n",bitcnt,x,y); + for (i=0;i>4),hv&0xf,tq); + } + break; + } + case DHT: { + m = rb(1); + if (m == -1) break; + fprintf(stderr,":DHT(0x%02x)\n",m); + skipdata(len - 2 - 1,1); + break; + } + case DQT: { + fprintf(stderr,":DQT\n"); + skipdata(len-2,1); + break; + } + case APP1: case APP2: + case APP0: { + char name[5]; + fprintf(stderr,":APP0("); + if (-1==rd(4,name)) + break; + name[4] = '\0'; + fprintf(stderr,"%s):", name); + if (!strcmp(name,"JFIF")) { + print_jfif(); + } else { + if (-1==skipdata(len - 2 - 4,0)) { + break; + } + fprintf(stderr,"\n"); + } + break; + } + default: + fprintf(stderr,":Unknown marker\n"); + if (len) { + if (-1==skipdata(len - 2,0)) { + break; + } + fprintf(stderr,"\n"); + } + break; + } + } + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/ChangeLog new file mode 100644 index 00000000..51a9434c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/ChangeLog @@ -0,0 +1,29 @@ +2008-10-18 Marcus Meissner + + * merged 1.3M Creative CardCam patch from Sourceforge. + https://sourceforge.net/tracker/index.php?func=detail&aid=947064&group_id=8874&atid=308874 + +2003-01-06 Lee Benfield + + * Version 0.01 + +2003-01-13 LB + + * Version 0.02 + + * Added support for different header types in returned image as + observed by Vasileios Zografos, on @xia (different faceplate from + mine). + +2003-08-25 LB + + * Version 0.03 + + * Logitech pocket digital - previously someone had marked this as a + compatible camera, whereas it wasn't really (different USB id and + everything!) + + * Anyway - the logitech has a fairly different protocol, so I've added + support for that, with the caveat that logitech's imaginary 1024x768 + images are downloaded as 640x480 (the size they're stored on the + camera). If you want to double the size, use the gimp! diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/Makefile-files new file mode 100644 index 00000000..4af5a826 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/Makefile-files @@ -0,0 +1,13 @@ +# -*- Makefile -*- + +EXTRA_DIST += smal/README.smal smal/ChangeLog +camlibdoc_DATA += smal/README.smal + +EXTRA_LTLIBRARIES += smal.la + +smal_la_SOURCES = \ + smal/smal.c smal/ultrapocket.c \ + smal/smal.h smal/ultrapocket.h +smal_la_LDFLAGS = $(camlib_ldflags) +smal_la_DEPENDENCIES = $(camlib_dependencies) +smal_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/README.smal b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/README.smal new file mode 100644 index 00000000..0b3efdf7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/README.smal @@ -0,0 +1,33 @@ +Smal Ultrapocket +(fuji @xia slimshot) +___________________________________________________________________ + +This driver is based on packet sniffs of protocol observed under +Windows 2000, and is known to be incomplete. Minimal functionality +is implemented as of the Experimental version. + +RAW images as retrieved from the camera require a not insignificant +amount of post processing. Enabling #DO_GAMMA in ultrapocket.h +helps, but more work is required. +___________________________________________________________________ + +The author takes no responsibility for damage to your camera from +using this driver. Use at your own risk. +___________________________________________________________________ + +TODO: + +- Battery status +- Firmware information +- Current resolution information +- Determine what (if anything) the camera passes as image +modification parameters (Gamma, etc). +- At the moment, the Logitech driver stores images as .VGA and .XGA +not .PPM +___________________________________________________________________ + +Author: Lee Benfield (lee@benf.org) +Thanks: Vasileios Zografos, Dave Scott, Matthias Scherrer + +This code borrows heavily from the sipix web2 driver available with +gphoto. Thanks, guys ;) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/smal.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/smal.c new file mode 100644 index 00000000..41a575fd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/smal.c @@ -0,0 +1,247 @@ +/* smal.c + * + * Copyright (C) 2003 Lee Benfield + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include +#include +#include +#include + +#include +#include +#include +#include + +#include "smal.h" +#include "ultrapocket.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "smal"); + return (GP_OK); +} + + +static const struct smal_cameras { + char * name; + unsigned short idVendor; + unsigned short idProduct; +} smal_cameras [] = { + { "Fuji:Axia Slimshot", USB_VENDOR_ID_SMAL, USB_DEVICE_ID_ULTRAPOCKET }, + { "Fuji:Axia Eyeplate", USB_VENDOR_ID_SMAL, USB_DEVICE_ID_ULTRAPOCKET }, + { "Logitech:Pocket Digital", USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_POCKETDIGITAL }, + { "SMaL:Ultra-Pocket", USB_VENDOR_ID_SMAL, USB_DEVICE_ID_ULTRAPOCKET }, + { "Radioshack:Flatfoto", USB_VENDOR_ID_SMAL, USB_DEVICE_ID_FLATFOTO }, + { "Creative:CardCam", USB_VENDOR_ID_CREATIVE, USB_DEVICE_ID_CARDCAM }, + { NULL, 0, 0 } +}; + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + int i; + + memset(&a, 0, sizeof(a)); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; /* highly! */ + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + for (i = 0; smal_cameras[i].name; i++) { + strcpy(a.model, smal_cameras[i].name); + a.usb_vendor = smal_cameras[i].idVendor; + a.usb_product = smal_cameras[i].idProduct; + gp_abilities_list_append(list, a); + } + return (GP_OK); +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + if (camera->pl) { + free(camera->pl); + camera->pl = NULL; + } + return ultrapocket_exit(camera->port, context); +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int size,image_no,result; + unsigned char *data; + + image_no = gp_filesystem_number(fs, folder, filename, context); + if (image_no < GP_OK) + return image_no; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + result = ultrapocket_getpicture(camera,context,&data,&size,filename); + gp_file_set_mime_type (file, GP_MIME_PPM); + break; + case GP_FILE_TYPE_RAW: + result = ultrapocket_getrawpicture(camera, context, + &data, &size, filename); + gp_file_set_mime_type (file, GP_MIME_PPM); + break; + case GP_FILE_TYPE_PREVIEW: + default: + return (GP_ERROR_NOT_SUPPORTED); + } + if (result < 0) + return result; + + CHECK_RESULT(gp_file_set_data_and_size (file, (char *)data, size)); + + return (GP_OK); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int image_no; + + image_no = gp_filesystem_number(fs, folder, filename, context); + if (image_no < GP_OK) + return image_no; + + CHECK_RESULT(ultrapocket_deletefile(camera, filename)); + + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char* folder, void *data, + GPContext *context) +{ + Camera *camera = data; + if (strcmp (folder, "/")) + return (GP_ERROR_DIRECTORY_NOT_FOUND); + return ultrapocket_deleteall(camera); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Smal Ultrapocket\n" + "Lee Benfield \n" + "Driver for accessing the Smal Ultrapocket camera, and OEM versions (slimshot)")); + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int count, result; + + result = ultrapocket_getpicsoverview(camera, context, &count, list); + if (result != GP_OK) + return result; + + return (GP_OK); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func, +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + CameraAbilities cab; + up_badge_type badge; + + camera->functions->exit = camera_exit; + camera->functions->about = camera_about; + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + badge = BADGE_UNKNOWN; + gp_camera_get_abilities(camera, &cab); + switch (cab.usb_vendor) { + case USB_VENDOR_ID_SMAL: + case USB_VENDOR_ID_CREATIVE: + switch (cab.usb_product) { + case USB_DEVICE_ID_ULTRAPOCKET: + /* could be an axia eyeplate or a slimshot + * figure it out later, when we get the image + * catalogue. + */ + badge = BADGE_GENERIC; + break; + case USB_DEVICE_ID_FLATFOTO: + badge = BADGE_FLATFOTO; + break; + case USB_DEVICE_ID_CARDCAM: + badge = BADGE_CARDCAM; + break; + default: + break; + } + break; + case USB_VENDOR_ID_LOGITECH: + switch (cab.usb_product) { + case USB_DEVICE_ID_POCKETDIGITAL: + badge = BADGE_LOGITECH_PD; + break; + default: + break; + } + break; + default: + break; + } + + if (badge == BADGE_UNKNOWN) { + /* can't happen. Otherwise, how'd we get to camera_init, neh? */ + return GP_ERROR; + } + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + camera->pl->up_type = badge; + /* don't need to do any exciting init stuff until we get pic numbers */ + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/smal.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/smal.h new file mode 100644 index 00000000..622b66d5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/smal.h @@ -0,0 +1,49 @@ +/* smal.h + * + * Copyright (C) 2003 Lee Benfield + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#ifndef __SMAL_H__ + +#define __SMAL_H__ 1 + +#define USB_VENDOR_ID_SMAL 0x0dca +#define USB_DEVICE_ID_ULTRAPOCKET 0x0002 +#define USB_DEVICE_ID_FLATFOTO 0x0004 + +#define USB_VENDOR_ID_LOGITECH 0x046d +#define USB_DEVICE_ID_POCKETDIGITAL 0x0950 + +#define USB_VENDOR_ID_CREATIVE 0x041e +#define USB_DEVICE_ID_CARDCAM 0x4016 + +typedef enum ultrapocket_BADGE_TYPE { + BADGE_UNKNOWN = 0, + BADGE_GENERIC, /* could be axia/ultrapocket */ + BADGE_ULTRAPOCKET, + BADGE_AXIA, + BADGE_FLATFOTO, + BADGE_LOGITECH_PD, /* pocket digital */ + BADGE_CARDCAM +} up_badge_type; + +struct _CameraPrivateLibrary { + up_badge_type up_type; +}; + + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/ultrapocket.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/ultrapocket.c new file mode 100644 index 00000000..9212dae9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/ultrapocket.c @@ -0,0 +1,723 @@ +/* ultrapocket.c + * + * Copyright (C) 2003 Lee Benfield + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "ultrapocket.h" +#include "smal.h" + +#define GP_MODULE "Smal Ultrapocket" + +#include +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +static const char *BayerTileNames[8] = { + "RGGB", + "GRBG", + "BGGR", + "GBRG", + "RGGB_INTERLACED", + "GRBG_INTERLACED", + "BGGR_INTERLACED", + "GBRG_INTERLACED" +}; + +static int +ultrapocket_command(GPPort *port, int iswrite, unsigned char *data, int datasize) { + int ret; + if (iswrite) + ret = gp_port_write(port, (char *)data, datasize); + else + ret = gp_port_read(port, (char *)data, datasize); + + return ret; +} + +int +ultrapocket_exit(GPPort *port, GPContext *context) { + return GP_OK; +} + +/* A generic slimshot-alike camera */ +/* we have to determine from the header what the RAW image is, QVGA or VGA */ +static int +getpicture_generic(Camera *camera, GPContext *context, unsigned char **rd,int *retwidth, int *retheight, int *retimgstart, const char *filename) { + GPPort *port = camera->port; + unsigned char command[0x10] = { 0x11, 0x01, 0x00, 0x49, 0x4d, 0x47, 0,0,0,0, 0x2e, 0x52, 0x41, 0x57, 0x00, 0x00 }; + unsigned char retdata[0x1000]; + unsigned char header[42]; + unsigned char *rawdata; + int width, height, imgstart; + smal_img_type styp; + int ptc,pc,id; + + memcpy(command+6, filename+3, 4); /* the id of the image to transfer */ + + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + + /* the first packet has the header in it, plus the start of the data */ + CHECK_RESULT(ultrapocket_command(port, 0, retdata, 0x1000)); + memcpy(header, retdata, 41); + styp = header[3]; + + switch (styp) { + case TYPE_QVGA: + /* 24 packets, including one already got */ + ptc = 24; + width = 320; + height = 240; + imgstart = 0x29; + break; + case TYPE_VGA: + /* 80 including one already got. */ + ptc = 80; + width = 640; + height = 480; + imgstart = 0x29; + break; + case TYPE_QVGA_BH: + ptc = 24; + width = 320; + height = 240; + imgstart = 0x100; + break; + case TYPE_VGA_BH: + ptc = 80; + width = 640; + height = 480; + imgstart = 0x100; + break; + default: + return GP_ERROR; + } + rawdata = malloc(0x1000 * ptc * sizeof(char)); + if (!rawdata) return (GP_ERROR_NO_MEMORY); + + /* show how far we've got on the current image */ + id = gp_context_progress_start(context, ptc-1, _("Downloading image...")); + + memcpy(rawdata, retdata, 0x1000 * sizeof(char)); + for (pc=1;pcport; + unsigned char command[0x10] = { 0x11, 0x01, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; + unsigned char retdata[0x8000]; + unsigned char *rawdata; + int ptc,pc,id; + + strncpy(command+3, filename, 11); /* the id of the image to transfer */ + + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + + /* the first packet has the header in it, plus the start of the data */ + CHECK_RESULT(ultrapocket_command(port, 0, retdata, 0x8000)); + + /* 640 x 480 =ish 10 * 0x8000 */ + ptc = 10; + + rawdata = malloc(0x8000 * ptc * sizeof(char)); + if (!rawdata) return (GP_ERROR_NO_MEMORY); + + /* show how far we've got on the current image */ + id = gp_context_progress_start(context, ptc-1, _("Downloading image...")); + + memcpy(rawdata, retdata, 0x8000 * sizeof(char)); + for (pc=1;pcpl->up_type) { + case BADGE_CARDCAM: + case BADGE_FLATFOTO: + case BADGE_GENERIC: + case BADGE_ULTRAPOCKET: + case BADGE_AXIA: + CHECK_RESULT(getpicture_generic(camera, context, &rawdata, &width, &height, &imgstart, filename)); + break; + case BADGE_LOGITECH_PD: + CHECK_RESULT(getpicture_logitech_pd(camera, context, &rawdata, filename)); + width = 640; + height = 480; + imgstart = 0x29; + break; + default: + return GP_ERROR; + } + + tile = BAYER_TILE_BGGR; + + snprintf (ppmheader, sizeof(ppmheader), "P6\n" + "# CREATOR: gphoto2, ultrapocket library, raw," + " assuming Bayer tile %s\n" + "%d %d\n" + "255\n", BayerTileNames[tile], width, height); + + /* Allocate memory for Interpolated ppm image */ + pmmhdr_len = strlen(ppmheader); + outsize = ((long)width + 4) * height * 3 + pmmhdr_len; + outdata = malloc(outsize); + if (!outdata) { + free(rawdata); + return (GP_ERROR_NO_MEMORY); + } + + /* Set header */ + strcpy((char *)outdata, ppmheader); + + /* Expand the Bayer tiles */ + result = gp_bayer_expand((rawdata+imgstart), width + 4, height, + &outdata[pmmhdr_len], tile); + + /* and chop the spare 4 pixels off the RHS */ + for (pc = 1; pc < height; pc++) { + memmove(outdata + pmmhdr_len + ((long)width * pc * 3), + outdata + pmmhdr_len + (((long)width + 4) * pc * 3), + ((long)width) * 3); + } + /* modify outsize to reflect trim */ + outsize = ((long)width) * height * 3 + pmmhdr_len; + + free(rawdata); + if (result < 0) { + free (outdata); + return (result); + } + + *pdata = outdata; + *size = outsize; + return GP_OK; +} + +/* Different camera types (pocket digital/generic) + * use a different protocol - have to differetiate. + */ +int +ultrapocket_getpicture(Camera *camera, GPContext *context, unsigned char **pdata, int *size, const char *filename) +{ + char *savelocale; + char ppmheader[200]; + unsigned char *rawdata,*outdata; + int width, height, result; + size_t outsize; + int imgstart = 0; + int pc, pmmhdr_len; + BayerTile tile; +#if DO_GAMMA + unsigned char gtable[256]; +#endif + + switch (camera->pl->up_type) { + case BADGE_CARDCAM: + case BADGE_FLATFOTO: + case BADGE_GENERIC: + case BADGE_ULTRAPOCKET: + case BADGE_AXIA: + CHECK_RESULT(getpicture_generic(camera, context, &rawdata, &width, &height, &imgstart, filename)); + break; + case BADGE_LOGITECH_PD: + CHECK_RESULT(getpicture_logitech_pd(camera, context, &rawdata, filename)); + width = 640; + height = 480; + imgstart = 0x29; + break; + default: + return GP_ERROR; + } + + tile = BAYER_TILE_BGGR; + + savelocale = setlocale (LC_ALL, "C"); + snprintf (ppmheader, sizeof(ppmheader), "P6\n" + "# CREATOR: gphoto2, ultrapocket library," + " assuming Bayer tile %s, interpolated" +#if DO_GAMMA + ", gamma %.2f" +#endif + "\n%d %d\n" + "255\n", BayerTileNames[tile], +#if DO_GAMMA + GAMMA_NUMBER, +#endif + width, height); + setlocale (LC_ALL, savelocale); + + /* Allocate memory for Interpolated ppm image */ + pmmhdr_len = strlen(ppmheader); + outsize = ((long)width + 4) * height * 3 + pmmhdr_len; + outdata = malloc(outsize); + if (!outdata) { + free (rawdata); + return (GP_ERROR_NO_MEMORY); + } + + /* Set header */ + strcpy((char *)outdata, ppmheader); + + /* Decode and interpolate the Bayer tiles */ + result = gp_bayer_decode((rawdata+imgstart), width+4, height, + &outdata[pmmhdr_len], tile); + + /* and chop the spare 4 pixels off the RHS */ + for (pc = 1; pc < height; pc++) { + memmove(outdata + pmmhdr_len + ((long)width * pc * 3), + outdata + pmmhdr_len + (((long)width + 4) * pc * 3), + ((long)width) * 3); + } + /* modify outsize to reflect trim */ + outsize = ((long)width) * height * 3 + pmmhdr_len; + + free(rawdata); + if (result < 0) { + free (outdata); + return (result); + } + +#if DO_GAMMA + gp_gamma_fill_table(gtable, GAMMA_NUMBER); + gp_gamma_correct_single(gtable, &outdata[pmmhdr_len], height * width); +#endif + + *pdata = outdata; + *size = outsize; + return GP_OK; +} + +/* + * Only need to reset the generic camera type, AFAICT - + * the pocket digital never seems to need it. + */ +static int +ultrapocket_reset(Camera *camera) +{ + GPPortInfo oldpi; + GPPort *port = camera->port; + CameraAbilities cab; + unsigned char cmdbuf[0x10]; + gp_camera_get_abilities(camera, &cab); + GP_DEBUG ("First connect since camera was used - need to reset cam"); + + /* + * this resets the ultrapocket. Messy, but it's what the windows + * software does. We only reset if it's been plugged in since + * last reset. + */ + memset(cmdbuf, 0, 16); + cmdbuf[0] = 0x28; + cmdbuf[1] = 0x01; + CHECK_RESULT(ultrapocket_command(port, 1, cmdbuf, 0x10)); + /* -------------- */ + sleep(4); /* This should do - _might_ need increasing */ + CHECK_RESULT(gp_port_get_info(port, &oldpi)); + CHECK_RESULT(gp_port_free(port)); + CHECK_RESULT(gp_port_new(&port)); + CHECK_RESULT(gp_port_set_info(port, oldpi)); + CHECK_RESULT(gp_port_usb_find_device(port, + cab.usb_vendor, cab.usb_product)); + CHECK_RESULT(gp_port_open(port)); + camera->port = port; + return GP_OK; +} + +static int +ultrapocket_skip(GPPort *port, int npackets) +{ + int old_timeout = 200; + unsigned char retbuf[0x1000]; + + gp_port_get_timeout(port, &old_timeout); + gp_port_set_timeout(port, 100); + for (; (npackets > 0) && gp_port_read(port, (char *)retbuf, 0x1000); npackets--); + gp_port_set_timeout(port, old_timeout); + return GP_OK; +} + +static int +ultrapocket_sync(Camera *camera) +{ + GPPort *port = camera->port; + unsigned char command[0x10]; + + /* Who knows what's in all these packets? ... only SmAL! */ + + if (camera->pl->up_type == BADGE_CARDCAM) { +#if 0 + memset(command, 0, 16); + command[0] = 0x12; + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + ultrapocket_skip(port, 8); + /* -------------- */ +#endif + memset(command, 0, 16); + command[0] = 0x31; + command[1] = 0x01; + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + ultrapocket_skip(port, 8); + /* -------------- */ + memset(command, 0, 16); + command[0] = 0x12; + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + ultrapocket_skip(port, 8); + /* -------------- */ + memset(command, 0, 16); + command[0] = 0x31; + command[1] = 0x01; + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + ultrapocket_skip(port, 8); + } +#if 0 + /* -------------- */ + memset(command, 0, 16); + command[0] = 0x30; + command[1] = 0x01; + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + ultrapocket_skip(port, 16); + /* -------------- */ + memset(command, 0, 16); + command[0] = 0x29; + command[1] = 0x01; + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + ultrapocket_skip(port, 8); + /* -------------- */ +#endif + return GP_OK; +} + +/* + * For most ultrapocket compatibles, call this. + */ +static int getpicsoverview_generic( + Camera *camera, GPContext *context, + int *numpics, CameraList *list + ) { + GPPort **pport = &camera->port; + GPPort *port = *pport; + unsigned char command[0x10]; + unsigned char retbuf[0x1000]; + int y; + int np = 0; + char fn[20]; + int picid; + int reset_needed; + + CHECK_RESULT(ultrapocket_sync(camera)); + + memset(command, 0, 16); + command[0] = 0x12; + + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + + CHECK_RESULT(ultrapocket_command(port, 0, retbuf, 0x1000)); + np = *(unsigned char*)(retbuf + 0x104); + for (y=0;yport; + unsigned char command[0x10]; + unsigned char retbuf[0x8000]; + int y; + int np = 0; + char fn[20]; + + memset(command, 0, 16); + command[0] = 0x12; + + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + + CHECK_RESULT(ultrapocket_command(port, 0, retbuf, 0x8000)); + np = *(unsigned char*)(retbuf + 0x105); + for (y=0;ypl->up_type) { + case BADGE_CARDCAM: + case BADGE_FLATFOTO: + case BADGE_GENERIC: + case BADGE_ULTRAPOCKET: + case BADGE_AXIA: + return getpicsoverview_generic(camera, context, numpics, list); + break; + case BADGE_LOGITECH_PD: + return getpicsoverview_logitech_pd(camera, context, numpics, list); + break; + default: + break; + } + return GP_ERROR; +} + +static int deletefile_generic(Camera *camera, const char *filename) +{ + unsigned char command[0x10] = { 0x22, 0x01, 0x00, 0x49, 0x4d, 0x47, 0,0,0,0, 0x2e, 0x52, 0x41, 0x57, 0x00, 0x00 }; + memcpy(command+6, filename+3, 4); /* the id of the image to delete */ + + CHECK_RESULT(ultrapocket_command(camera->port, 1, command, 0x10)); + ultrapocket_skip(camera->port, 8); + + return GP_OK; +} + +static int deletefile_logitech_pd(GPPort *port, const char *filename) +{ + unsigned char command[0x10] = { 0x11, 0x01, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; + memcpy(command+3, filename, 11); /* the id of the image to delete */ + + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + return GP_OK; +} + +/* The windows software doesn't allow one to delete a file without deleting previous + * ones. + * + * Careful! + * + * This appears to be the same for Logitech pocket digital and the generic + * camera. + */ +int +ultrapocket_deletefile(Camera *camera, const char *filename) +{ + GPPort *port = camera->port; + + switch (camera->pl->up_type) { + case BADGE_CARDCAM: + case BADGE_FLATFOTO: + case BADGE_GENERIC: + case BADGE_ULTRAPOCKET: + case BADGE_AXIA: + return deletefile_generic(camera, filename); + break; + case BADGE_LOGITECH_PD: + return deletefile_logitech_pd(port, filename); + break; + default: + break; + } + return GP_ERROR; + +} + +static +int deleteall_logitech_pd(GPPort **pport) +{ + unsigned char command[0x10]; + unsigned char retbuf[0x8000]; + GPPort *port = *pport; + + memset(command, 0, 16); + command[0] = 0x12; + + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + + CHECK_RESULT(ultrapocket_command(port, 0, retbuf, 0x8000)); + CHECK_RESULT(ultrapocket_command(port, 0, retbuf, 0x8000)); + + /* as far as I can tell, the logitech pocket digital doesn't need a + * reset - if it did, it would go here. */ + memset(command, 0, 0x10); + command[0] = 0x18; + command[1] = 0x01; + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + + return GP_OK; +} + +static +int deleteall_generic(Camera *camera) +{ + unsigned char command[0x10]; + unsigned char retbuf[0x1000]; + int reset_needed = 0; + GPPort *port = camera->port; + + memset(command, 0, 16); + command[0] = 0x12; + + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + + CHECK_RESULT(ultrapocket_command(port, 0, retbuf, 0x1000)); + reset_needed = (*(retbuf + 2) & UP_FLAG_NEEDS_RESET); + ultrapocket_skip(camera->port, 7); + + if (reset_needed) { + CHECK_RESULT(ultrapocket_reset(camera)); + port = camera->port; + } + + memset(command, 0, 0x10); + command[0] = 0x18; + command[1] = 0x01; + CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); + ultrapocket_skip(camera->port, 8); + + return GP_OK; +} + +int +ultrapocket_deleteall(Camera *camera) +{ + GPPort **pport = &camera->port; + + switch (camera->pl->up_type) { + case BADGE_CARDCAM: + case BADGE_FLATFOTO: + case BADGE_GENERIC: + case BADGE_ULTRAPOCKET: + case BADGE_AXIA: + return deleteall_generic(camera); + break; + case BADGE_LOGITECH_PD: + return deleteall_logitech_pd(pport); + break; + default: + break; + } + return GP_ERROR; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/ultrapocket.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/ultrapocket.h new file mode 100644 index 00000000..b951daaf --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/smal/ultrapocket.h @@ -0,0 +1,50 @@ +/* ultrapocket.h + * + * Copyright (C) 2003 Lee Benfield + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#ifndef __ULTRAPOCKET_H__ + +#define __ULTRAPOCKET_H__ 1 + +#include +#include + +#ifndef CHECK_RESULT +#define CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} +#endif + +#define UP_FLAG_NEEDS_RESET 0x80 + +#define DO_GAMMA 1 +#define GAMMA_NUMBER 0.5 + +typedef enum ultrapocket_IMG_TYPE { + TYPE_QVGA = 0, + TYPE_VGA = 1, + TYPE_QVGA_BH = 2, + TYPE_VGA_BH = 3 +} smal_img_type; + +int ultrapocket_getpicsoverview(Camera *camera, GPContext *context,int *numpics, CameraList *list); +int ultrapocket_exit(GPPort *port, GPContext *context); +int ultrapocket_getrawpicture(Camera *camera, GPContext *context, unsigned char **pdata, int *size, const char *filename); +int ultrapocket_getpicture(Camera *camera, GPContext *context, unsigned char **pdata, int *size, const char *filename); +int ultrapocket_deletefile(Camera *camera, const char *filename); +int ultrapocket_deleteall(Camera *camera); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/ChangeLog new file mode 100644 index 00000000..01d29dcd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/ChangeLog @@ -0,0 +1,97 @@ +2008-04-20 Theodore Kilgore + * library.c: AHD Bayer and white_balance() in use. + * sonix.[c,h]: white_balance() and related stuff added. + +2008-03-24 Theodore Kilgore + * library.c: Previous change reverted. Bad idea. + +2008-02-16 Theodore Kilgore + * library.c: Camera ID byte saved in rawfile footers. + +2007-12-27 Theodore Kilgore + * library.c: added Wild Planet Digital Spy Camera, contributed by + Jorma Laaksonen + * sonix.c: Features of new camera listed. + +2007-12-18 Theodore Kilgore + * library.c: Processing of AVI output changed, so that output is + written to file one frame at a time, to reduce + memory footprint. + +2007-12-09 Theodore Kilgore + * library.c: Added Genius Smart 300. Thanks to + Norayr Chilingaryan + for reporting the camera and for testing. New camera + uses optional compression and uses an offset in the + still photos, but not in frames for AVI output. + Also changed from using the USB Product number to + distinguish between camera models and will use the + firmware version code reported during sonix_init() + instead. So the ID-ing of cameras is moved from + camera_init() to sonix_init() + Also cleaned up the camera_capture function. + * sonix.c: Incorporated above changes in sonix_init(). + * sonix.h: Changed fwversion variable from 1 byte to the 4 + actually reported. + +2007-10-16 Theodore Kilgore + * library.c: Several Sakar cameras added + +2007-06-25 Theodore Kilgore + * library.c: Clean up signedness warnings + * sonix.c: ditto + + +2007-05-05 Theodore Kilgore + + * library.c: Added Mini Shotz ms-350. Thanks to + Gines Carrascal de las Heras + for reporting the camera, and for testing the needed + code changes to support the camera. + + * sonix.c: functions added for reversing byte strings, rows, and + columns. + * sonix.h: the new functions declared. + * README.sonix: Updated. + + +2006-11-19 Marcus Meissner + + * sonix.c: made 3 functions static + +2006-08-17 Theodore Kilgore + + * library.c: Workaround for gtkam problem if camera empty. + + * sonix.c: indentation inside for() statement. + + + +2006-08-17 Theodore Kilgore + + * library.c: Workaround for gtkam problems with Sakar 11199. + + * sonix.c: Workaround for gtkam problems with Sakar 11199. + + * sonix.h: Workaround for gtkam problems with Sakar 11199. + + * README: Revisions. + + * sakar-avi-header.h: Forgot to commit this. Here it is! + + + +2006-08-14 Theodore Kilgore + + * library.c: Added Sakar Digital Keychain 11199. + New functionality to support new camera. + + * sonix.c: Rewritten to support new camera. + + * sonix.h: Rewritten to support new camera. + + * README: Revised. + +2005-06-09 Theodore Kilgore + + First check-in. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/Makefile-files new file mode 100644 index 00000000..d86c7506 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/Makefile-files @@ -0,0 +1,14 @@ +# -*- Makefile -*- + +EXTRA_DIST += sonix/README.sonix sonix/ChangeLog +camlibdoc_DATA += sonix/README.sonix + +EXTRA_LTLIBRARIES += sonix.la + +sonix_la_SOURCES = \ + sonix/library.c \ + sonix/sonix.c sonix/sonix.h \ + sonix/sakar-avi-header.h +sonix_la_LDFLAGS = $(camlib_ldflags) +sonix_la_DEPENDENCIES = $(camlib_dependencies) +sonix_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/README.sonix b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/README.sonix new file mode 100644 index 00000000..9d471f05 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/README.sonix @@ -0,0 +1,125 @@ +/* README for libgphoto2/camlibs/sonix camera library + * + * Copyright (C) 2005 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +This library supports fully the still-camera functions of several cameras +which use the sn9c2028 chip from Sonix (Vendor ID 0x0c45). + + +Differences in the functions and features of the known cameras can be +distinguished through the USB Product number, and also by a four-digit +hexadecimal string passed by the camera during initialization -- apparently a +firmware version number and/or an identification number for the video sensor. +If you have a Sonix sn9c2028 camera which returns a number not listed in +sonix.c, then your camera may or may not work with this code. How would I know? +Please inform if you get a different ID number! + +Here we give a brief description both of currently-supported cameras and of the +supported gphoto2 functions for each. + + +Vivicam 3350b: + +Uses an OV7630 sensor. Produces a maximum resolution of 640x480 and an option +to use 320x240. The photos are all compressed. The compression scheme is +lossy. The decompression algorithm originates, I understand, in the work of +Bertrik Sikkens for the sn9c102 cameras. In the macam project for MacOS-X +camera support(webcam-osx project on Sourceforge), the decompression algorithm +for the sn9c2028 cameras was developed by Mattias Krauss and adapted for use +with the Vivitar Vivicam 3350B in particular by Harald Ruda +. Harald brought to my attention the work already +done in the macam project, pointed out that it is GPL code, and invited me to +have a look. Thanks, Harald. The decompression algorithm used here is similar +to what is used in the macam driver, but is considerably streamlined and +improved. It seems to work perfectly. Brightness and/or gamma do sometimes +need to be adjusted with a photo editor such as Gimp, ImageMagick, or xv, +especially for photos taken in dim light. + +Features of the camera include the ability to delete all photos. The "delete +last" function and the "capture-image" function, which will work for some +other Sonix sn9c2028 cameras and are thus supported in this library, do not +seem to work with the my Vivicam 3350B and are therefore disabled for this +camera. These cameras can all shoot "movie clips" which are saved as AVI files. +Webcam functionality uses isochronous transfer; thus it lies outside the scope +of libgphoto2 and is therefore not supported here. + + +DC31VC: + +Yet another camera which the macam driver also supports has been listed here +as a supported camera. It apparently uses 352x288 and 176x144 resolution +settings. I know of it only second hand, have not personally tested it, and +would appreciate any reports about it (I suspect it is similar to the Sakar +Digital Keychain camera). + + +Sakar Digital Keychain #11199: + +This camera does not use data compression. It will hold 18 photos at +352x288 resolution, and 70 photos (or a clip containing at most 70 frames) +at 176x144 resolution, or any combination of these which does not fill up the +camera. Clips are processed as AVI files. + +This camera also supports gphoto2 --capture-image, which will cause a photo +to be taken and stored among the photos on the camera for later download (the +capture dimensions are always 352x288). + +The photo which one has just shot can of course be downloaded immediately +using gphoto2 -p (its number, which will be the last taken) and, if desired, +can be deleted immediately afterwards using gphoto2 -d (its number) which +this camera also permits (unlike the Vivicam 3350b). + +Mini-Shotz ms350: + +This camera has 640x480 and 320x240 resolution settings. Its features are +otherwise quite similar to those of the Sakar Digital Keychain #11199, except +that it exclusively uses the compressed mode. + +Genius Smart 300: + +This camera has 640x480 and 320x240 resolution settings. Its features are +otherwise quite similar to those of the Sakar Digital Keychain #11199 and the +Mini-Shotz ms350, except that it uses compressed mode for multiframe shooting, +but offers both compressed and uncompressed modes as options for still photos. +It does not support gphoto2 --capture-image. It does support deletion of +the last entry on the camera. + +GUI frontends: + +Libgphoto2 , of course, permits the use of a GUI frontend as well as the +gphoto2 command-line utility. I have tested my two cameras with gtkam and with +flphoto. Both of them work, with the following provisos: + +-- There is an unresolved problem with gtkam, when the Sakar Digital Keychain +camera is hooked up and gtkam is started. The LED display starts to move +immediately and keeps on. The LED activity does not stop when gtkam is exited, +but only on camera disconnect from the computer. This phenomenon may be quite +harmless, but who knows? It obviously means that some kind of background +activity is taking place inside the camera. This LED activity does not occur +if the gphoto2 command line or the gphoto2 shell or flphoto are used. +(UPDATE: A workaround patch has been applied, which seems to fix this, as of +08/17/06) + + +-- flphoto will give a message when asked to save an AVI file, that it cannot +put the AVI file into an "album." Well, perhaps not. But not to worry. +It will save the AVI file anyway, even while protesting. + + +(Most recent revision of this file is on 12/18/2007) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/library.c new file mode 100644 index 00000000..444eb6a0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/library.c @@ -0,0 +1,614 @@ +/* library.c + * + * Copyright (C) 2005 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include + +#include +#include +#include + +#include + +#include + + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +# define ngettext(String1,String2,Count) ((Count==1)?String1:String2) +#endif + +#include +#include "sonix.h" +#include "sakar-avi-header.h" +#define GP_MODULE "sonix" + +static const struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {"DC31VC", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0c45, 0x8000}, + {"Wild Planet Digital Spy Camera 70137", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0c45, 0x8001}, + {"Sakar Digital Keychain 11199", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0c45, 0x8003}, + {"Sakar Digital no, 6637x", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0c45, 0x8003}, + {"Sakar Digital no, 67480", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0c45, 0x8003}, + {"Mini Shotz ms-350", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0c45, 0x8008}, + {"Vivitar Vivicam3350B", GP_DRIVER_STATUS_EXPERIMENTAL, 0x0c45, 0x800a}, + {"Genius Smart 300, version 2", GP_DRIVER_STATUS_EXPERIMENTAL, + 0x0458, 0x7005}, + {NULL,0,0,0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "Vivitar ViviCam3350B"); + return GP_OK; +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].name); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + if (a.status == GP_DRIVER_STATUS_EXPERIMENTAL) + a.operations = GP_OPERATION_NONE; + else + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + a.file_operations = GP_FILE_OPERATION_DELETE| + GP_FILE_OPERATION_PREVIEW; + gp_abilities_list_append (list, a); + } + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + int ret = 0; + if(!camera->pl->sonix_init_done) + ret = sonix_init(camera->port, camera->pl); + if ( ret != GP_OK) { + free(camera->pl); + camera->pl = NULL; + return ret; + } + if (!camera->pl->num_pics) + sonix_exit(camera->port); + sprintf (summary->text,ngettext( + "Sonix camera.\nThere is %i photo in it.\n", + "Sonix camera.\nThere are %i photos in it.\n", + camera->pl->num_pics + ), camera->pl->num_pics); + return GP_OK; +} + +static int camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy(manual->text, + _( + "This driver supports some cameras that use the Sonix sn9c2028 chip.\n" + "The following operations are supported:\n" + " - thumbnails for a GUI frontend\n" + " - full images in PPM format\n" + " - delete all images\n" + " - delete last image (not all of the Sonix cameras can do this)\n" + " - image capture to camera ( ditto )\n" + "If present on the camera, video clip frames are downloaded \n" + "as consecutive still photos or as AVI files, depending on the model.\n" + "Thumbnails for AVIs are still photos made from the first frame.\n" + "A single image cannot be deleted unless it is the last one.\n" + )); + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Sonix camera library\n" + "Theodore Kilgore \n")); + return GP_OK; +} + +/*************** File and Downloading Functions *******************/ + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i = 0; + char name[16]; + int(avitype); + int ret = 0; + if(!camera->pl->sonix_init_done) + ret = sonix_init(camera->port, camera->pl); + if ( ret != GP_OK) { + free(camera->pl); + camera->pl = NULL; + return ret; + } + if(!camera->pl->num_pics) { + sonix_exit(camera->port); + return GP_OK; + } + for (i=0; ipl->num_pics; i++) { + avitype = (camera->pl->size_code[i])&8; + if (avitype) { + snprintf (name, 16, "sonix%03i.avi", i+1); + avitype = 0; + } else + snprintf (name, 16, "sonix%03i.ppm", i+1); + gp_list_append (list, name, NULL); + } + return GP_OK;} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int w, h = 0, buffersize = 0, i, k, rawsize = 0; + unsigned char *data = NULL; + unsigned char *ppm, *ptr, *avi=NULL, *frame_data = NULL; + unsigned char *p_data = NULL, *p_buf = NULL; + unsigned int numframes = 0; + unsigned int endpoint, bytes_used = 0; + unsigned int framestart[1024]; + unsigned int size = 0, frame_size = 0; + unsigned int avitype = 0; + unsigned int offset=0; + unsigned int CAM_OFFSET; + unsigned char POST_CODE; + unsigned char compressed=0; + int ret = 0; + + GP_DEBUG ("Downloading pictures!\n"); + if(!camera->pl->sonix_init_done) + ret = sonix_init(camera->port, camera->pl); + if ( ret != GP_OK) { + free(camera->pl); + camera->pl = NULL; + return ret; + } + if(!camera->pl->num_pics) { + sonix_exit(camera->port); + return GP_OK; + } + CAM_OFFSET = camera->pl->offset; + POST_CODE = camera->pl->post; + /* Get the number of the photo on the camera */ + k = gp_filesystem_number (camera->fs, "/", filename, context); + if (k < GP_OK) return k; + /* Cheap camera. No EXIF data. Quick! Kill this before it multiplies! */ + if(type == GP_FILE_TYPE_EXIF) + return GP_ERROR_FILE_EXISTS; + i = camera->pl->size_code[k]; + switch (i) { + case 0: w=352; h = 288; break; + case 9: avitype = 1; /* multiframe */ + case 1: w=176; h = 144; break; + case 0x0a: avitype = 1; /* multiframe */ + case 2: w=640; h = 480; break; + case 0x0b: avitype = 1; /* multiframe */ + case 3: w=320; h = 240; break; + default: GP_DEBUG ("Size code unknown\n"); + return (GP_ERROR_NOT_SUPPORTED); + } + GP_DEBUG( "avitype is %d\n", avitype); + GP_DEBUG ("height of picture %i is %i\n", k+1,h); + rawsize = sonix_read_data_size (camera->port, k); + if (rawsize < GP_OK) + return rawsize; + GP_DEBUG("rawsize = 0x%x = %i\n", rawsize, rawsize); + if(rawsize%0x40) + buffersize = rawsize - (rawsize%0x40) + 0x40; + else + buffersize = rawsize; + data = calloc (buffersize+64, 1); + if (!data) return GP_ERROR_NO_MEMORY; + gp_port_read(camera->port, (char *)data, buffersize); + + switch(type) { + case GP_FILE_TYPE_NORMAL: + /* count end of frame markers to know the number of + *frames and the size and starting offset of each */ + endpoint = 0; + numframes = 0; + framestart[0] = 0; + p_buf = data; + while (p_buf < data + buffersize+64) { + endpoint = 12; + while ( !((p_buf[endpoint-12]==0xff) && + (p_buf[endpoint-11]==0xff) && + (p_buf[endpoint-10]==0x00) && + (p_buf[endpoint-9]==0xc4) && + (p_buf[endpoint-8]==0xc4) ) && + (endpoint < buffersize +64 + - bytes_used)) + endpoint ++ ; + if ( !((p_buf[endpoint-12]==0xff) && + (p_buf[endpoint-11]==0xff) && + (p_buf[endpoint-10]==0x00) && + (p_buf[endpoint-9]==0xc4) && + (p_buf[endpoint-8]==0xc4) ) ) { + GP_DEBUG("Finished counting frames!\n"); + break; + } + if(!numframes) { + GP_DEBUG("compression byte is %#02x\n", + p_buf[endpoint-5]); + compressed=p_buf[endpoint-5]&1; + } + framestart[numframes+1] = + framestart[numframes] + endpoint; + p_buf += endpoint; + bytes_used += endpoint; + numframes ++; + } + GP_DEBUG("number of frames is %i\n",numframes); + GP_DEBUG("compressed %i\n",compressed); + POST_CODE|=compressed; + GP_DEBUG("POST_CODE is %i\n", POST_CODE); + /* AVI files need separate treatment */ + if (avitype) { + CAM_OFFSET = camera->pl->avi_offset; + GP_DEBUG("CAM_OFFSET=%i\n",CAM_OFFSET); + frame_size = w*h; + gp_file_set_mime_type (file, GP_MIME_AVI); + frame_data = malloc(frame_size); + if (!frame_data) { + return -1; + } + size = (numframes)*(3*frame_size+ 8) + 224; + GP_DEBUG("size = %i\n", size); + avi = malloc(224); + if (!avi) { + free(frame_data); + return -1; + } + GP_DEBUG("avi malloc'ed\n"); + memset(avi, 0, SAKAR_AVI_HEADER_LENGTH); + memcpy (avi,SakarAviHeader,SAKAR_AVI_HEADER_LENGTH); + GP_DEBUG("avi standard hdr copied\n"); + avi[0x04] = (size -4)&0xff; + avi[0x05] = ((size -4)&0xff00) >> 8; + avi[0x06] = ((size -4)&0xff0000) >> 16; + avi[0x07] = ((size -4)&0xff000000) >> 24; + avi[0x40] = w&0xff; + avi[0x41] = (w>>8)&0xff; + avi[0x44] = h&0xff; + avi[0x45] = (h>>8)&0xff; + avi[0xb0] = w&0xff; + avi[0xb1] = (w>>8)&0xff; + avi[0xb4] = h&0xff; + avi[0xb5] = (h>>8)&0xff; + avi[0x30] = numframes&0xff; + avi[0x8c] = numframes&0xff; + ptr=malloc(3*frame_size+8); + if(!ptr) { + free(frame_data); + free(avi); + return GP_ERROR_NO_MEMORY; + } + GP_DEBUG("avi hdr written\n"); + gp_file_append(file, (char *)avi, + SAKAR_AVI_HEADER_LENGTH); + free(avi); + GP_DEBUG("avi hdr put away\n"); + for (i=0; i < numframes; i++) { + memset(ptr, 0, 3*frame_size+ + SAKAR_AVI_FRAME_HEADER_LENGTH); + memcpy(ptr,SakarAviFrameHeader, + SAKAR_AVI_FRAME_HEADER_LENGTH); + ptr[4] = (3*frame_size)&0xff; + ptr[5] = ((3*frame_size)&0xff00) >> 8; + ptr[6] = ((3*frame_size)&0xff0000) >> 16; + GP_DEBUG("Doing frame number %i\n",i+1); + memset (frame_data, 0, frame_size); + offset = 0x40*(framestart[i]/0x40)+0x40; + if (offset == framestart[i] + 0x40) + offset -= 0x40; + GP_DEBUG("framestart[%i] = 0x%x\n", i, + framestart[i]); + GP_DEBUG("offset = 0x%x\n", offset); + switch (POST_CODE) { + case DECOMP|REVERSE: + sonix_decode (frame_data, + data+offset+CAM_OFFSET, w, h); + sonix_cols_reverse(frame_data, w, h); + gp_ahd_decode(frame_data, w, h, ptr+ + SAKAR_AVI_FRAME_HEADER_LENGTH, + BAYER_TILE_GBRG); + break; + case DECOMP: + sonix_decode (frame_data, + data+offset+CAM_OFFSET, w, h); + sonix_rows_reverse(frame_data, w, h); + gp_ahd_decode(frame_data, w, h, ptr+ + SAKAR_AVI_FRAME_HEADER_LENGTH, + BAYER_TILE_GRBG); + break; + default: + memcpy(frame_data, data + offset + +CAM_OFFSET, frame_size); + sonix_rows_reverse(frame_data, w, h); + gp_ahd_decode(frame_data, w, h, ptr+ + SAKAR_AVI_FRAME_HEADER_LENGTH, + BAYER_TILE_GRBG); + } + white_balance(ptr+SAKAR_AVI_FRAME_HEADER_LENGTH, + w * h, 1.2); + gp_file_append(file, (char *)ptr, + 3*frame_size+ + SAKAR_AVI_FRAME_HEADER_LENGTH); + GP_DEBUG("Done with frame number %i\n",i+1); + } + avitype = 0; + free(ptr); + free(frame_data); + free(data); + return GP_OK; + } + case GP_FILE_TYPE_PREVIEW: + if (k == camera->pl->num_pics - 1) { + camera->pl->sonix_init_done = 1; + sonix_exit(camera->port); + } + /* For an AVI file, we make a PPM thumbnail of the + * first frame. Otherwise, still photos are processed + * here, and also the thumbnails for them. + */ + p_data = malloc (w * h); + if (!p_data) {free (data); return GP_ERROR_NO_MEMORY;} + memset (p_data, 0, w * h); + ppm = malloc (w * h * 3 + 256); /* room for data + header */ + if (!ppm) { + free (data); + free (p_data); + return GP_ERROR_NO_MEMORY; + } + snprintf ((char *)ppm, 50, + "P6\n" + "# CREATOR: gphoto2, SONIX library\n" + "%d %d\n" + "255\n", w, h); + ptr = ppm + strlen ((char *)ppm); + size = strlen ((char *)ppm) + (w * h * 3); + switch (POST_CODE) + case DECOMP|REVERSE: + /* Images for Vivicam 3350b are upside down. */ + if (camera->pl->post&REVERSE) { + sonix_decode (p_data, data+CAM_OFFSET, w, h); + sonix_byte_reverse(p_data, w*h); + gp_ahd_decode(p_data, w, h, ptr, BAYER_TILE_BGGR); + break; + case DECOMP: + sonix_decode (p_data, data+CAM_OFFSET, w, h); + gp_ahd_decode(p_data, w, h, ptr, BAYER_TILE_RGGB); + break; + default: + memcpy (p_data, data+CAM_OFFSET, w*h); + gp_ahd_decode(p_data, w, h, ptr, BAYER_TILE_RGGB); + } + free (p_data); + white_balance(ptr, w * h, 1.2); + GP_DEBUG("white_balance run on photo number %03d \n", k+1); + gp_file_set_mime_type (file, GP_MIME_PPM); + gp_file_set_data_and_size (file, (char *)ppm, size); + free (data); + return GP_OK; + case GP_FILE_TYPE_RAW: + gp_file_set_mime_type(file, GP_MIME_RAW); + gp_file_append( file, (char *)data, rawsize); + free(data); + GP_DEBUG("rawsize= 0x%x = %i\n", rawsize, rawsize); + return GP_OK; + default: + free(data); + return GP_ERROR_NOT_SUPPORTED; + } + return GP_OK; +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + int ret = 0; + if(!camera->pl->sonix_init_done) + ret = sonix_init(camera->port, camera->pl); + if ( ret != GP_OK) { + free(camera->pl); + camera->pl = NULL; + return ret; + } + sonix_delete_all_pics (camera->port); + return GP_OK; +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int k; + int ret = 0; + if(!camera->pl->sonix_init_done) + ret = sonix_init(camera->port, camera->pl); + if ( ret != GP_OK) { + free(camera->pl); + camera->pl = NULL; + return ret; + } + if (camera->pl->fwversion[1] == 0x0a) + return GP_ERROR_NOT_SUPPORTED; + k = gp_filesystem_number (camera->fs, "/", filename, context); + if (k+1 != camera->pl->num_pics) { + GP_DEBUG("Only the last photo can be deleted!\n"); + return GP_ERROR_NOT_SUPPORTED; + } + sonix_delete_last (camera->port); + camera->pl->num_pics -= 1; + return GP_OK; +} + + +static int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + int ret = 0, n; + char name[30]; + if(!camera->pl->sonix_init_done) + ret = sonix_init(camera->port, camera->pl); + if ( ret != GP_OK) { + free(camera->pl); + camera->pl = NULL; + return ret; + } + if (!(camera->pl->can_do_capture)) { + GP_DEBUG("This camera does not do capture-image\n"); + return GP_ERROR_NOT_SUPPORTED; + } + if (camera->pl->full) + return GP_ERROR_NO_MEMORY; + n=camera->pl->num_pics; + sonix_capture_image(camera->port); + snprintf(name, sizeof(name), "sonix%03i.ppm",n+1); + sprintf(path->folder,"/"); + snprintf(path->name,sizeof(path->name),"sonix%03i.ppm",n+1); + gp_filesystem_append(camera->fs, "/", name, context); + return GP_OK; +} + + +/*************** Exit and Initialization Functions ******************/ + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("Sonix camera_exit"); + sonix_exit(camera->port); + if (camera->pl) { + free (camera->pl); + camera->pl = NULL; + } + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func, +}; + +int +camera_init(Camera *camera, GPContext *context) +{ + GPPortSettings settings; + CameraAbilities abilities; + int ret = 0; + + ret = gp_camera_get_abilities(camera,&abilities); + if (ret < 0) return ret; + GP_DEBUG("product number is 0x%x\n", abilities.usb_product); + + /* First, set up all the function pointers */ + camera->functions->capture = camera_capture; + camera->functions->manual = camera_manual; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + + GP_DEBUG ("Initializing the camera\n"); + ret = gp_port_get_settings(camera->port,&settings); + if (ret < 0) return ret; + + switch (camera->port->type) { + case GP_PORT_SERIAL: + return ( GP_ERROR ); + case GP_PORT_USB: + settings.usb.config = 1; + settings.usb.altsetting = 0; + settings.usb.interface = 0; + settings.usb.inep = 0x82; + settings.usb.outep = 0x05; + break; + default: + return ( GP_ERROR ); + } + + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) return ret; + + GP_DEBUG("interface = %i\n", settings.usb.interface); + GP_DEBUG("inep = %x\n", settings.usb.inep); + GP_DEBUG("outep = %x\n", settings.usb.outep); + + /* Now, tell the filesystem where to get lists, files and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + camera->pl->num_pics = 0; + camera->pl->full = 1; + camera->pl->avitype = 0; + camera->pl->sonix_init_done = 0; + camera->pl->post = 0; + GP_DEBUG("post code is 0x%x\n", camera->pl->post); + /* Connect to the camera only if something is actually being done, + * because otherwise the Sakar Digital Keychain camera is put into + * some kind of excited mode when gtkam is run, and will not leave + * this mode even after gtkam is exited. + */ + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/sakar-avi-header.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/sakar-avi-header.h new file mode 100644 index 00000000..1b52dbb0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/sakar-avi-header.h @@ -0,0 +1,76 @@ +#ifndef __SAKAR_AVI_HEADER_H +#define __SAKAR_AVI_HEADER_H + +#define SAKAR_AVI_FRAME_HEADER_LENGTH 8 +static const unsigned char SakarAviFrameHeader[SAKAR_AVI_FRAME_HEADER_LENGTH] = { + 0x30, 0x30, 0x64, 0x63, /* 00dc */ + 0x00, 0x00, 0x00, 0x00 /* size of frame */ +}; + +#define SAKAR_AVI_HEADER_LENGTH 224 +static const unsigned char SakarAviHeader[SAKAR_AVI_HEADER_LENGTH] = { + /* -- RIFF HEADER -- */ + 0x52, 0x49, 0x46, 0x46, /* 0x00; RIFF */ + 0x00, 0x00, 0x00, 0x00, /* 0x04; number of bytes following */ + 0x41, 0x56, 0x49, 0x20, /* 0x08; AVI */ + 0x4C, 0x49, 0x53, 0x54, /* 0x0c; LIST */ + 0xC0, 0x00, 0x00, 0x00, /* 0x10; length of list in bytes */ + 0x68, 0x64, 0x72, 0x6C, /* 0x14; hdrl */ + 0x61, 0x76, 0x69, 0x68, /* 0x18; avih */ + 0x38, 0x00, 0x00, 0x00, /* 0x1c; number of bytes to follow */ + 0x15, 0x16, 0x05, 0x00, /* 0x20; microseconds per frame */ + 0x00, 0x7b, 0x03, 0x00, /* 0x24; max bytes per second */ + 0x00, 0x00, 0x00, 0x00, /* 0x28; PaddingGranularity (whatever that might be) */ + /* Other sources call it 'reserved' */ + 0x00, 0x00, 0x00, 0x00, /* 0x2c; flags, ( I have no idea what goes here! ) */ + 0x00, 0x00, 0x00, 0x00, /* 0x30; total frames */ + 0x00, 0x00, 0x00, 0x00, /* 0x34: initial frames */ + 0x01, 0x00, 0x00, 0x00, /* 0x38: number of streams */ + 0x00, 0x01, 0x29, 0x00, /* 0x3c: suggested buffer size */ + 0xb0, 0x01, 0x00, 0x00, /* 0x40: width */ + 0x90, 0x00, 0x00, 0x00, /* 0x44: height */ + 0x00, 0x00, 0x00, 0x00, /* 0x48: some reserved long values */ + 0x00, 0x00, 0x00, 0x00, /* 0x4c: */ + 0x00, 0x00, 0x00, 0x00, /* 0x50: */ + 0x00, 0x00, 0x00, 0x00, /* 0x54: */ + /* -- video stream list -- */ + 0x4C, 0x49, 0x53, 0x54, /* 0x58: LIST */ + 0x74, 0x00, 0x00, 0x00, /* 0x5c: length of list in bytes */ + 0x73, 0x74, 0x72, 0x6C, /* 0x60: strl */ + /* -- video stream header -- */ + 0x73, 0x74, 0x72, 0x68, /* 0x64: strh */ + 0x38, 0x00, 0x00, 0x00, /* 0x68: # of bytes to follow */ + 0x76, 0x69, 0x64, 0x73, /* 0x6c: vids */ + 0x0, 0x0, 0x0, 0x0, /* 0x70: (nothing) */ + 0x00, 0x00, 0x00, 0x00, /* 0x74: some more reserved longs */ + 0x00, 0x00, 0x00, 0x00, /* 0x78: */ + 0x00, 0x00, 0x00, 0x00, /* 0x7c: */ + 0xa, 0x00, 0x00, 0x00, /* 0x80: ms_per_frame scale */ + 0x51, 0x00, 0x00, 0x00, /* 0x84: Rate: Rate/Scale == samples/second */ + 0x00, 0x00, 0x00, 0x00, /* 0x88: start */ + 0x00, 0x00, 0x00, 0x00, /* 0x8c: length (video_frames) */ + 0x00, 0x29, 0x01, 0x00, /* 0x90: suggested buffer size */ + 0x00, 0x00, 0x00, 0x00, /* 0x94: quality */ + 0x00, 0x00, 0x00, 0x00, /* 0x98: sample size */ + 0x00, 0x00, 0x00, 0x00, /* 0x9c: frame */ + 0x00, 0x00, 0x00, 0x00, /* 0xa0: frame (why b0? I don't know!)*/ + /* -- video stream format -- */ + 0x73, 0x74, 0x72, 0x66, /* 0xa4: strf */ + 0x28, 0x00, 0x00, 0x00, /* 0xa8: number of bytes to follow (40) */ + 0x28, 0x00, 0x00, 0x00, /* 0xac: size (ditto) */ + 0xb0, 0x00, 0x00, 0x00, /* 0xb0: width */ + 0xf0, 0x00, 0x00, 0x00, /* 0xb4: height */ + 0x01, 0x00, 0x18, 0x00, /* 0xb8: planes(1) : count(24) */ + 0x00, 0x00, 0x00, 0x00, /* 0xbc: encoder none? */ + 0x00, 0xC2, 0x01, 0x00, /* 0xc0: Size image */ + 0x01, 0x00, 0x00, 0x00, /* 0xc4: XPelsPerMeter */ + 0x01, 0x00, 0x00, 0x00, /* 0xc8: YPelsPerMeter */ + 0x00, 0x00, 0x00, 0x00, /* 0xcc: Number of colors used */ + 0x00, 0x00, 0x00, 0x00, /* 0xd0: Number of colors important */ + /* do we have to pad with JUNK here ? */ + 0x4C, 0x49, 0x53, 0x54, /* 0xd4: LIST */ + 0x00, 0x00, 0x00, 0x00, /* 0xd8: size of list */ + 0x6D, 0x6F, 0x76, 0x69 /* 0xda: movi */ +}; + +#endif /* __SAKAR_AVI_HEADER_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/sonix.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/sonix.c new file mode 100644 index 00000000..22b2d73f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/sonix.c @@ -0,0 +1,638 @@ +/* sonix.c + * + * Copyright (C) 2005 Theodore Kilgore + * + * A previous version of the white_balance() function intended for use in + * libgphoto2/camlibs/aox is copyright (c) 2008 Amauri Magagna. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + + +#include "sonix.h" +#define GP_MODULE "sonix" + + +/* Three often-used generic commands */ + +/* This reads a one-byte "status" response */ +static int +SONIX_READ (GPPort *port, char *data) +{ + return gp_port_usb_msg_interface_read(port, 0, 1, 0, data, 1); +} + +/* This reads a 4-byte response to a command */ +static int +SONIX_READ4 (GPPort *port, char *data) +{ + return gp_port_usb_msg_interface_read(port, 0, 4, 0, data, 4); +} + +/* A command to the camera is a 6-byte string, and this sends it. */ +static int +SONIX_COMMAND (GPPort *port, char *command) +{ + return gp_port_usb_msg_interface_write(port, 8, 2, 0, command ,6); +} + + +int sonix_init (GPPort *port, CameraPrivateLibrary *priv) +{ + int i; + char c[6]; + char status; + unsigned char reading[4]; + + memset(c,0,sizeof(c)); + c[0] = 0x0c; + GP_DEBUG("Running sonix_init\n"); + + + SONIX_READ(port, &status); + + if (status == 0x02) goto skip_a_step; + /* If status is 2 we can skip several steps. Otherwise, status + * needs to be reset to 0 and massaged until it is 2. + */ + + if ((unsigned)status) { + i = 0; + + while ((unsigned)status > 0) { + if (SONIX_READ(port, &status) < GP_OK) + break; + i++; + if (i==1000) break; + } + } + + SONIX_COMMAND ( port, c); + + + while (status !=2) { + if (SONIX_READ(port, &status) < GP_OK) + break; + } + + /* FIXME(Marcus): was indented at above level, unclear if it is needed this way ... */ + SONIX_READ(port, &status); + + skip_a_step: + + /* + * We are supposed to get c[0]=0x8c here; in general the reply + * string ought to start with the command byte c[0], plus 0x80 + */ + memset(reading, 0, 4); + SONIX_READ4 (port, (char *)reading); + SONIX_READ(port, &status); + + memset (c, 0, 6); + + while (!reading[1]&&!reading[2]&&!reading[3]) { + c[0]=0x16; + if (SONIX_COMMAND ( port, c ) < GP_OK) + break; + /* + * For the Vivicam 3350b this always gives + * 96 0a 76 07. This is apparently the firmware version. + * The webcam-osx comments that the 0x0a gives the sensor + * type, which is OV7630. For the Sakar Digital Keychain + * 11199 the string is 96 03 31 08, instead. For the + * Mini-Shotz ms350 it is 96 08 26 09. For the Genius + * Smart 300 it is 96 00 67 09 and for the Digital + * Spy Camera 70137 it is 96 01 31 09. Since the cameras + * have different abilities, we ought to distinguish. + */ + if (SONIX_READ4 (port, (char *)reading) < GP_OK) + break; + } + GP_DEBUG("%02x %02x %02x %02x\n", reading[0], reading[1], + reading[2], reading[3]); + GP_DEBUG("Above is the 4-byte ID string of your camera. "); + GP_DEBUG("Please report if it is anything other than\n"); + GP_DEBUG("96 0a 76 07 or 96 03 31 08 or 96 08 26 09\n"); + GP_DEBUG("or 96 00 67 09 or 96 01 31 09\n"); + GP_DEBUG("Thanks!\n" ); + for(i=0;i<4;i++) + priv->fwversion[i] = reading[i]; + GP_DEBUG("fwversion[1] is %#02x\n", reading[1]); + SONIX_READ(port, &status); + /* case 0x03: uses the default settings, above. */ + switch(priv->fwversion[1]) { + case 0x08: + priv->offset=0; + priv->avi_offset=0; + priv->can_do_capture=1; + priv->post = DECOMP; + break; + case 0x0a: + priv->offset=8; + priv->avi_offset=8; + priv->can_do_capture=0; + priv->post = DECOMP|REVERSE; + break; + case 0x00: + priv->offset=0; + priv->avi_offset=0; + priv->can_do_capture=0; + priv->post=0; + break; + case 0x01: + priv->offset=8; + priv->avi_offset=8; + priv->can_do_capture=0; + priv->post=0; + break; + case 0x03: + default: + priv->offset=8; + priv->avi_offset=8; + priv->can_do_capture=1; + priv->post=0; + } + + /* + * This sequence gives the photos in the camera and sets a flag + * in reading[3] if the camera is full. Alas, clip frames are + * not counted; the AVI constructor will need to count them + */ + memset (c,0,6); + c[0]=0x18; + SONIX_READ(port, &status); + SONIX_COMMAND ( port, c ); + SONIX_READ(port, &status); + SONIX_READ4 (port, (char *)reading); + if (reading[0] != 0x98) + return GP_ERROR_CAMERA_ERROR; + GP_DEBUG ("number of photos is %d\n", reading[1]+ 256*reading[2]); + /* + * If reading[3] = 0x01, it means the camera is full of data. + * The capture_image() function must then be disabled. + */ + if (!(reading[3])) priv->full = 0; + SONIX_READ(port, &status); + priv->num_pics = (reading[1] + 256*reading[2]); + memset(c,0,sizeof(c)); + for (i = 0; i < priv->num_pics; i++) { + GP_DEBUG("getting size_code for picture %i\n", i+1); + /* Gets the resolution setting, also flags a multi-frame entry. */ + c[0] = 0x19; + c[1] = (i+1)%256; + c[2] = (i+1)/256; + SONIX_COMMAND ( port, c ); + SONIX_READ(port, &status); + SONIX_READ4 (port, (char *)reading); + if (reading[0] != 0x99) + return GP_ERROR_CAMERA_ERROR; + SONIX_READ(port, &status); + /* For the code meanings, see get_file_func() in library.c */ + priv->size_code[i] = (reading[1]&0x0f); + } + priv->sonix_init_done = 1; + GP_DEBUG("Leaving sonix_init\n"); + return GP_OK; +} + +int +sonix_read_data_size (GPPort *port, int n) +{ + char status; + unsigned char c[6]; + unsigned char reading[4]; + GP_DEBUG("running sonix_read_data_size for picture %i\n", n+1); + memset (c, 0, 6); + c[0] = 0x1a; + c[1] = (n+1)%256; + c[2] = (n+1)/256; + SONIX_COMMAND ( port, (char *)c ); + SONIX_READ(port, &status); + SONIX_READ4 (port, (char *)reading); + if (reading[0] != 0x9a) + return GP_ERROR_CAMERA_ERROR; + return (reading[1] + reading[2]*0x100 + reading[3] *0x10000); +} + +int +sonix_delete_all_pics (GPPort *port) +{ + char status; + char c[6]; + unsigned char reading[4]; + memset (c,0,6); + c[0]=0x05; + SONIX_READ(port, &status); + SONIX_COMMAND ( port, c ); + SONIX_READ(port, &status); + SONIX_READ4 (port, (char *)reading); + if (reading[0] != 0x85) + return GP_ERROR_CAMERA_ERROR; + return GP_OK; +} + +int +sonix_delete_last (GPPort *port) +{ + char status; + char c[6]; + unsigned char reading[4]; + memset (c,0,6); + c[0]= 0x05; c[1] = 0x01; + SONIX_READ(port, &status); + SONIX_COMMAND ( port, c ); + SONIX_READ(port, &status); + SONIX_READ4 (port, (char *)reading); + if (reading[0] != 0x85) + return GP_ERROR_CAMERA_ERROR; + return GP_OK; + } + +int +sonix_capture_image (GPPort *port) +{ + char status; + char c[6]; + unsigned char reading[4]; + GP_DEBUG("Running sonix_capture_image\n"); + memset (c,0,6); + c[0]=0x0e; + SONIX_READ(port, &status); + SONIX_COMMAND ( port, c ); + SONIX_READ(port, &status); + SONIX_READ4 (port, (char *)reading); + if (reading[0] != 0x8e) + return GP_ERROR_CAMERA_ERROR; + return GP_OK; +} + +int +sonix_exit (GPPort *port) +{ + char status; + char c[6]; + + memset (c,0,6); + c[0]=0x14; + SONIX_READ(port, &status); + SONIX_COMMAND ( port, c ); + /* No READ4 after exit! */ + return GP_OK; +} + +/* + * The decoding algorithm originates with Bertrik Sikken. This version adapted + * from the webcam-osx (macam) project. See README for details. + */ + +/* Four defines for bitstream operations, for the decode function */ + +#define PEEK_BITS(num,to) {\ + if (bitBufCount>(bitBufCount-num);\ +} + +/* + * PEEK_BITS puts the next bits into the low bits of . + * when the buffer is empty, it is completely refilled. + * This strategy tries to reduce memory access. Note that the high bits + * are NOT set to zero! + */ + +#define EAT_BITS(num) { bitBufCount-=num; } + +/* + * EAT_BITS consumes bits (PEEK_BITS does not consume anything, + * it just peeks) + */ + +#define PARSE_PIXEL(val) {\ + PEEK_BITS(10,bits);\ + if ((bits&0x200)==0) { \ + EAT_BITS(1); \ + } \ + else if ((bits&0x380)==0x280) { \ + EAT_BITS(3); \ + val+=3; \ + if (val>255) val=255; \ + }\ + else if ((bits&0x380)==0x300) { \ + EAT_BITS(3); \ + val-=3; \ + if (val<0) val=0; \ + }\ + else if ((bits&0x3c0)==0x200) { \ + EAT_BITS(4); \ + val+=8; \ + if (val>255) val=255;\ + }\ + else if ((bits&0x3c0)==0x240) { \ + EAT_BITS(4); \ + val-=8; \ + if (val<0) val=0;\ + }\ + else if ((bits&0x3c0)==0x3c0) { \ + EAT_BITS(4); \ + val-=20; \ + if (val<0) val=0;\ + }\ + else if ((bits&0x3e0)==0x380) { \ + EAT_BITS(5); \ + val+=20; \ + if (val>255) val=255;\ + }\ + else { \ + EAT_BITS(10); \ + val=8*(bits&0x1f)+0; \ + }\ +} + + +#define PUT_PIXEL_PAIR {\ + long pp;\ + pp=(c1val<<8)+c2val;\ + *((unsigned short *) (dst+dst_index))=pp;\ + dst_index+=2; } + +/* Now the decode function itself */ + + +int +sonix_decode(unsigned char * dst, unsigned char * src, int width, int height) +{ + long dst_index = 0; + int starting_row = 0; + unsigned short bits; + short c1val, c2val; + int x, y; + unsigned long bitBuf = 0; + unsigned long bitBufCount = 0; + /* Columns were reversed during compression ! */ + for (y = starting_row; y < height; y++) { + PEEK_BITS(8, bits); + EAT_BITS(8); + c2val = bits & 0xff; + PEEK_BITS(8, bits); + EAT_BITS(8); + c1val = bits & 0xff; + PUT_PIXEL_PAIR; + for (x = 2; x < width ; x += 2) { + PARSE_PIXEL(c2val); + PARSE_PIXEL(c1val); + PUT_PIXEL_PAIR; + } + } + return GP_OK; +} + +int sonix_byte_reverse (unsigned char *imagedata, int datasize) +{ + int i; + unsigned char temp; + for (i=0; i< datasize/2 ; ++i) { + temp = imagedata[i]; + imagedata[i] = imagedata[datasize - 1 - i]; + imagedata[datasize - 1 - i] = temp; + } + return GP_OK; +} + +int sonix_rows_reverse (unsigned char *imagedata, int width, int height) +{ + int col, row; + unsigned char temp; + for (col = 0; col < width; col++) + for (row=0; row< height /2 ; row++) { + temp = imagedata[row*width+col]; + imagedata[row*width+col] = + imagedata[(height-row-1)*width +col]; + imagedata[(height-row-1)*width + col] = temp; + } + return GP_OK; +} + +int sonix_cols_reverse (unsigned char *imagedata, int width, int height) +{ + int col, row; + unsigned char temp; + for (row=0; row < height ; row++) { + for (col =0; col< width/2 ; col++) { + temp = imagedata[row*width + col]; + imagedata[row*width + col] = + imagedata[row*width + width - 1 - col]; + imagedata[row*width + width - 1 - col] = temp; + } + } + return GP_OK; +} + +/* + * === White Balance / Color Enhance / Gamma adjust === + * + * Get histogram for each color plane + * Expand to reach 0.5% of white dots in image + * + * Get new histogram for each color plane + * Expand to reach 0.5% of black dots in image + * + * Get new histogram + * Calculate and apply gamma correction + * + * if not a dark image: + * For each dot, increases color separation + */ + +static int +histogram (unsigned char *data, unsigned int size, int *htable_r, + int *htable_g, int *htable_b) +{ + int x; + /* Initializations */ + for (x = 0; x < 256; x++) { + htable_r[x] = 0; + htable_g[x] = 0; + htable_b[x] = 0; + } + /* Building the histograms */ + for (x = 0; x < (size * 3); x += 3) + { + htable_r[data[x+0]]++; /* red histogram */ + htable_g[data[x+1]]++; /* green histogram */ + htable_b[data[x+2]]++; /* blue histogram */ + } + return 0; +} + + +int +white_balance (unsigned char *data, unsigned int size, float saturation) +{ + int x, r, g, b, max, d; + double r_factor, g_factor, b_factor, max_factor, MAX_FACTOR=1.6; + int htable_r[256], htable_g[256], htable_b[256]; + unsigned char gtable[256]; + double new_gamma, gamma; + + /* ------------------- GAMMA CORRECTION ------------------- */ + + histogram(data, size, htable_r, htable_g, htable_b); + x = 1; + for (r = 64; r < 192; r++) + { + x += htable_r[r]; + x += htable_g[r]; + x += htable_b[r]; + } + gamma = sqrt((double) (x ) / (double) (size * 2)); + GP_DEBUG("Provisional gamma correction = %1.2f\n", gamma); + + if(gamma < .1) { + new_gamma = .50; + MAX_FACTOR=1.2; + } + else if (gamma < 0.60) + new_gamma = 0.60; + else + new_gamma = gamma; + if (new_gamma > 1.2) new_gamma = 1.2; + GP_DEBUG("Gamma correction = %1.2f\n", new_gamma); + gp_gamma_fill_table(gtable, new_gamma); + gp_gamma_correct_single(gtable,data,size); + + /* ---------------- BRIGHT DOTS ------------------- */ + max = size / 200; + histogram(data, size, htable_r, htable_g, htable_b); + + for (r=254, x=0; (r > 64) && (x < max); r--) + x += htable_r[r]; + for (g=254, x=0; (g > 64) && (x < max); g--) + x += htable_g[g]; + for (b=254, x=0; (b > 64) && (x < max); b--) + x += htable_b[b]; + + r_factor = (double) 254 / r; + g_factor = (double) 254 / g; + b_factor = (double) 254 / b; + max_factor = r_factor; + if (g_factor > max_factor) max_factor = g_factor; + if (b_factor > max_factor) max_factor = b_factor; + + if (max_factor > MAX_FACTOR) { + + r_factor = (r_factor / max_factor) * MAX_FACTOR; + g_factor = (g_factor / max_factor) * MAX_FACTOR; + b_factor = (b_factor / max_factor) * MAX_FACTOR; + } + + GP_DEBUG("White balance (bright): r=%1d, g=%1d, b=%1d, fr=%1.3f, fg=%1.3f, fb=%1.3f\n", r, g, b, r_factor, g_factor, b_factor); + + for (x = 0; x < (size * 3); x += 3) + { + d = (int) data[x+0] * r_factor; + if (d > 255) { d = 255; } + data[x+0] = d; + d = (int) data[x+1] * g_factor; + if (d > 255) { d = 255; } + data[x+1] = d; + d = (int) data[x+2] * b_factor; + if (d > 255) { d = 255; } + data[x+2] = d; + } + /* ---------------- DARK DOTS ------------------- */ + + + max = size / 200; /* 1/200 = 0.5% */ + + histogram(data, size, htable_r, htable_g, htable_b); + + for (r=0, x=0; (r < 64) && (x < max); r++) + x += htable_r[r]; + for (g=0, x=0; (g < 64) && (x < max); g++) + x += htable_g[g]; + for (b=0, x=0; (b < 64) && (x < max); b++) + x += htable_b[b]; + + r_factor = (double) 254 / (255-r); + g_factor = (double) 254 / (255-g); + b_factor = (double) 254 / (255-b); + + GP_DEBUG("White balance (dark): r=%1d, g=%1d, b=%1d, fr=%1.3f, fg=%1.3f, fb=%1.3f\n", r, g, b, r_factor, g_factor, b_factor); + + for (x = 0; x < (size * 3); x += 3) + { + d = (int) 255-((255-data[x+0]) * r_factor); + if (d < 0) { d = 0; } + data[x+0] = d; + d = (int) 255-((255-data[x+1]) * g_factor); + if (d < 0) { d = 0; } + data[x+1] = d; + d = (int) 255-((255-data[x+2]) * b_factor); + if (d < 0) { d = 0; } + data[x+2] = d; + } + + /* ------------------ COLOR ENHANCE ------------------ */ + + + for (x = 0; x < (size * 3); x += 3) + { + r = data[x+0]; g = data[x+1]; b = data[x+2]; + d = (int) (r + 2*g + b) / 4.; + if ( r > d ) + r = r + (int) ((r - d) * (255-r)/(256-d) * saturation); + else + r = r + (int) ((r - d) * (255-d)/(256-r) * saturation); + if (g > d) + g = g + (int) ((g - d) * (255-g)/(256-d) * saturation); + else + g = g + (int) ((g - d) * (255-d)/(256-g) * saturation); + if (b > d) + b = b + (int) ((b - d) * (255-b)/(256-d) * saturation); + else + b = b + (int) ((b - d) * (255-d)/(256-b) * saturation); + + if (r < 0) { r = 0; } + if (r > 255) { r = 255; } + data[x+0] = r; + if (g < 0) { g = 0; } + if (g > 255) { g = 255; } + data[x+1] = g; + if (b < 0) { b = 0; } + if (b > 255) { b = 255; } + data[x+2] = b; + } + + + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/sonix.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/sonix.h new file mode 100644 index 00000000..64833fae --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonix/sonix.h @@ -0,0 +1,59 @@ +/* sonix.h + * + * Copyright (C) 2005 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __SONIX_H__ +#define __SONIX_H__ + +#include + +#define DECOMP 1 +#define REVERSE 2 + +struct _CameraPrivateLibrary { +/* Model model; */ /* "model" and "fwversion" functionally equal */ + int num_pics; + unsigned char size_code[512]; + unsigned char fwversion[4]; + unsigned char full; + unsigned char avitype; + unsigned char post; + unsigned char offset; + unsigned char avi_offset; + unsigned char can_do_capture; + int sonix_init_done; +}; + + +int sonix_init (GPPort *port, CameraPrivateLibrary *priv); +int sonix_get_picture_size (GPPort *port, int n); +int sonix_read_data_size (GPPort *port, int n); +int sonix_delete_all_pics (GPPort *port); +int sonix_delete_last (GPPort *port); +int sonix_capture_image (GPPort *port); +int sonix_exit (GPPort *port); +int sonix_decode (unsigned char * dst, unsigned char * src, + int width, int height); +int sonix_byte_reverse (unsigned char *imagedata, int datasize); +int sonix_rows_reverse (unsigned char *imagedata, int width, int height); +int sonix_cols_reverse (unsigned char *imagedata, int width, int height); +int white_balance (unsigned char *data, unsigned int size, float saturation); + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/ChangeLog new file mode 100644 index 00000000..d63a8834 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/ChangeLog @@ -0,0 +1,19 @@ +2008-05-15 Marcus Meissner + + * *.[ch]: u_char -> unsigned char + +2007-11-16 Marcus Meissner + + * *.[ch]: Major cleanup, make it work. + +2006-11-19 Marcus Meissner + + * *.[ch]: Pass GPPort*port around to avoid global variables. + +2002-03-24 Dan Fandrich + + * Removed config.h as it clearly should not have been here. + +2002-02-13 Lutz Müller + + * sonydsc1.c: Mark driver as EXPERIMENTAL - it is currently broken. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/Makefile-files new file mode 100644 index 00000000..b1f5d90d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/Makefile-files @@ -0,0 +1,14 @@ +# -*- Makefile -*- + +EXTRA_DIST += sonydscf1/README.sonydscf1 sonydscf1/ChangeLog +camlibdoc_DATA += sonydscf1/README.sonydscf1 + +EXTRA_LTLIBRARIES += sony_dscf1.la + +sony_dscf1_la_SOURCES = \ + sonydscf1/command.c sonydscf1/command.h \ + sonydscf1/sonydscf1.c sonydscf1/pmp.h +sony_dscf1_la_LDFLAGS = $(camlib_ldflags) +sony_dscf1_la_DEPENDENCIES = $(camlib_dependencies) +sony_dscf1_la_LIBADD = $(camlib_libadd) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/README.sonydscf1 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/README.sonydscf1 new file mode 100644 index 00000000..c5b83a17 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/README.sonydscf1 @@ -0,0 +1,4 @@ +Camera is freshly updated and new. + +- Image download works +- --summary works diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/command.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/command.c new file mode 100644 index 00000000..5caf2d67 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/command.c @@ -0,0 +1,530 @@ +/* command.c + * + * Copyright (C) M. Adam Kendall + * Copyright (C) 2002 Bart van Leeuwen + * + * Based on the chotplay CLI interface from Ken-ichi Hayashi 1996,1997 + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE +#include "config.h" + +#include +#include +#include + +#include + +#include "command.h" + +static unsigned char address = 0; +static const unsigned char sendaddr[8] = { 0x00, 0x22, 0x44, 0x66, 0x88, 0xaa, 0xcc, 0xee }; +static const unsigned char recvaddr[8] = { 0x0e, 0x20, 0x42, 0x64, 0x86, 0xa8, 0xca, 0xec }; +static int sw_mode = 0; +static int pic_num = 0; +static int pic_num2 = 0; +static int year, month, date; +static int hour, minutes; + +static const unsigned char BOFRAME = 0xC0; +static const unsigned char EOFRAME = 0xC1; +#define CESCAPE 0x7D + +static int F1reset(GPPort *port); + +static int +wbyte(GPPort *port,unsigned char c) +{ + unsigned char temp = c; + return gp_port_write(port, (char*)&temp, 1); +} + +static unsigned char +checksum(unsigned char addr, unsigned char *cp, int len) +{ + int ret = addr; + while(len --) + ret = ret + (*cp++); + return(0x100 -(ret & 0xff) ); +} + +static void +sendcommand(GPPort *port,unsigned char *p, int len) +{ + wbyte(port,BOFRAME); + wbyte(port,sendaddr[address]); + gp_port_write (port, (char*)p, len); + wbyte(port,checksum(sendaddr[address], p, len)); + wbyte(port,EOFRAME); + address ++; + if(address >7 ) address = 0; +} + +static void +Abort(GPPort *port) +{ + unsigned char buf[4]; + buf[0] = BOFRAME; + buf[1] = 0x85; + buf[2] = 0x7B; + buf[3] = EOFRAME; + gp_port_write (port, (char*)buf, 4); +} + +static int recvdata(GPPort *port, unsigned char *p, int len) +{ + unsigned char s, t; + int sum; + int i; + + gp_log (GP_LOG_DEBUG, "recvdata", "reading %d bytes", len); + gp_port_read(port, (char *)&s, 1); /* BOFL */ + gp_port_read(port, (char *)&t, 1); /* recvaddr */ + + if(t != recvaddr[address]){ + gp_log (GP_LOG_ERROR, "recvdata", "address %02x does not match %02x, draining 3 bytes", t, recvaddr[address]); + gp_port_read(port, (char *)&s, 1); /* drain */ + gp_port_read(port, (char *)&s, 1); /* drain */ + gp_port_read(port, (char *)&s, 1); /* drain */ + Abort(port); + return(-1); + } + i = len; + sum = (int) t; + while ((GP_OK <= gp_port_read(port, (char *)&s, 1)) && (s != EOFRAME)) { + sum = sum + s; + if(i > 0) { + if(s == CESCAPE){ + gp_port_read(port, (char *)&s, 1); + if(0x20 & s) + s = 0xDF & s; + else + s = 0x20 | s; + } + *p = s; + p++; + i--; + } + t = s; + } + gp_log (GP_LOG_DEBUG, "recvdata", "checksum expected %02x (have %02x)", t, sum ); + gp_log (GP_LOG_DEBUG, "recvdata", "EOFL %02x (%d)", s, len - i); + if(sum & 0xff){ + gp_log (GP_LOG_ERROR, "recvdata" ,"Checksum error.(%02x)\n", sum); + return(-1); + } + return(len - i); +} + +/*------------------------------------------------------------*/ + + +char F1newstatus(GPPort *port, int verbose, char *return_buf) +{ + unsigned char buf[34]; + char status_buf[1000]=""; + char tmp_buf[150]=""; + int i; + + buf[0] = 0x03; + buf[1] = 0x02; + sendcommand(port,buf, 2); + i = recvdata(port, buf, 33); + gp_log (GP_LOG_DEBUG, "F1newstatus", "Status: %02x%02x:%02x(len = %d)", buf[0], buf[1], buf[2], i); + if((buf[0] != 0x03) || (buf[1] != 0x02) ||(buf[2] != 0)){ + Abort(port); + return(-1); + } + sw_mode = buf[3]; + pic_num = buf[4] * 0x100 + buf[5]; + pic_num2 = buf[6] * 0x100 + buf[7]; + year = (buf[10] >> 4 ) * 10 + (buf[10] & 0x0f); + month = (buf[11] >> 4 ) * 10 + (buf[11] & 0x0f); + date = (buf[12] >> 4 ) * 10 + (buf[12] & 0x0f); + hour = (buf[13] >> 4 ) * 10 + (buf[13] & 0x0f); + minutes = (buf[14] >> 4 ) * 10 + (buf[14] & 0x0f); + + if(verbose){ + strcat(status_buf, "Current camera statistics\n\n"); + strcat(status_buf, "Mode: "); + switch (sw_mode){ + case 1: + strcat(status_buf, "Playback\n"); + break; + case 2: + strcat(status_buf, "Record[Auto]\n"); + break; + case 3: + strcat(status_buf, "Record[Manual]\n"); + break; + default: + strcat(status_buf, "Huh?\n"); + break; + } + sprintf(tmp_buf, "Total Pictures: %02d\n", pic_num); + strcat(status_buf, tmp_buf); + sprintf(tmp_buf, "Date: %02d/%02d/%02d\n", month, date, year); + strcat(status_buf, tmp_buf); + sprintf(tmp_buf, "Time: %02d:%02d\n",hour, minutes); + strcat(status_buf, tmp_buf); + } + + strcpy(return_buf, status_buf); + return (buf[2]); /*ok*/ +} + + +int F1status(GPPort *port) +{ + unsigned char buf[34]; + int i; + + buf[0] = 0x03; + buf[1] = 0x02; + sendcommand(port,buf, 2); + i = recvdata(port, buf, 33); + gp_log (GP_LOG_DEBUG, "F1status", "Status: %02x%02x:%02x(len = %d)\n", buf[0], buf[1], buf[2], i); + if((buf[0] != 0x03) || (buf[1] != 0x02) ||(buf[2] != 0)){ + Abort(port); + return(-1); + } + sw_mode = buf[3]; + pic_num = buf[4] * 0x100 + buf[5]; + pic_num2 = buf[6] * 0x100 + buf[7]; + year = (buf[10] >> 4 ) * 10 + (buf[10] & 0x0f); + month = (buf[11] >> 4 ) * 10 + (buf[11] & 0x0f); + date = (buf[12] >> 4 ) * 10 + (buf[12] & 0x0f); + hour = (buf[13] >> 4 ) * 10 + (buf[13] & 0x0f); + minutes = (buf[14] >> 4 ) * 10 + (buf[14] & 0x0f); + + if(0){ + fprintf(stdout, "FnDial: "); + switch (sw_mode){ + case 1: + fprintf(stdout, "play\n"); + break; + case 2: + fprintf(stdout, "rec[A]\n"); + break; + case 3: + fprintf(stdout, "rec[M]\n"); + break; + default: + fprintf(stdout, "unknown?\n"); + break; + } + fprintf(stdout, "Picture: %3d\n", pic_num); + fprintf(stdout,"Date: %02d/%02d/%02d\nTime: %02d:%02d\n", + year,month,date, hour, minutes); + } + return (buf[2]); /*ok*/ +} + +int F1howmany(GPPort *port) +{ + F1status(port); + return(pic_num); +} + +int F1fopen(GPPort *port, char *name) +{ + unsigned char buf[64]; + int len; + buf[0] = 0x02; + buf[1] = 0x0A; + buf[2] = 0x00; + buf[3] = 0x00; + snprintf((char*)&buf[4], sizeof(buf)-4, "%s", name); + len = strlen(name) + 5; + sendcommand(port,buf, len); + recvdata(port, buf, 6); + if((buf[0] != 0x02) || (buf[1] != 0x0A) || (buf[2] != 0x00)){ + Abort(port); + fprintf(stderr,"F1fopen fail\n"); + return(-1); + } + + return(buf[3]); +} + +int F1fclose(GPPort*port) +{ + unsigned char buf[4]; + int i; + + buf[0] = 0x02; + buf[1] = 0x0B; + buf[2] = 0x00; + buf[3] = 0x00; + sendcommand(port,buf, 4); + i = recvdata(port, buf, 3); + gp_log (GP_LOG_DEBUG, "F1fclose", "Fclose: %02x%02x:%02x(len = %d)\n", buf[0], buf[1], buf[2], i); + if((buf[0] != 0x02) || (buf[1] != 0x0B) || (buf[2] != 0x00)){ + fprintf(stderr,"F1fclose fail\n"); + Abort(port); + return(-1); + } + return (buf[2]); /* ok == 0 */ +} + +long F1fread(GPPort *port, unsigned char *data, long len) +{ + + long len2; + long i = 0; + unsigned char s; + + unsigned char buf[10]; + + buf[0] = 0x02; + buf[1] = 0x0C; + buf[2] = 0x00; + buf[3] = 0x00; + + buf[4] = 0; /* data block size */ + buf[5] = 0; + + buf[6] = (len >> 8) & 0xff; + buf[7] = 0xff & len; + sendcommand(port,buf, 8); + gp_port_read(port, (char *)buf, 9); + if((buf[2] != 0x02) || (buf[3] != 0x0C) || (buf[4] != 0x00)){ + Abort(port); + fprintf(stderr,"F1fread fail\n"); + return(-1); + } + + len2 = buf[7] * 0x100 + buf[8]; /* data size */ + if(len2 == 0) { + gp_port_read(port, (char *)&s, 1); /* last block checksum */ + gp_port_read(port, (char *)&s, 1); /* last block EOFL */ + return(0); + } + while((GP_OK <= gp_port_read(port, (char *)&s, 1)) && (s != EOFRAME)){ + if(s == CESCAPE){ + gp_port_read(port, (char *)&s, 1); + if(0x20 & s) + s = 0xDF & s; + else + s = 0x20 | s; + } + if(i < len) + data[i] = s; + i++; + + } + i--; /* checksum */ + return(i); +} + +long F1fseek(GPPort *port,long offset, int base) +{ + unsigned char buf[10]; + + buf[0] = 0x02; + buf[1] = 0x0E; + buf[2] = 0x00; + buf[3] = 0x00; + + buf[4] = (offset >> 24) & 0xff; + buf[5] = (offset >> 16) & 0xff; + buf[6] = (offset >> 8) & 0xff; + buf[7] = 0xff & offset; + + buf[8] = (base >> 8) & 0xff; + buf[9] = 0xff & base; + + sendcommand(port,buf, 10); + recvdata(port, buf, 3); + if((buf[0] != 0x02) || (buf[1] != 0x0E) || (buf[2] != 0x00)){ + Abort(port); + return(-1); + } + + return(buf[2]); +} + +long F1fwrite(GPPort *port,unsigned char *data, long len, unsigned char b) /* this function not work well */ +{ + + long i = 0; + unsigned char *p; + unsigned char s; + unsigned char buf[10]; + + int checksum; + + p = data; + wbyte(port,BOFRAME); + wbyte(port,sendaddr[address]); + wbyte(port,0x02); + wbyte(port,0x14); + wbyte(port,b); + wbyte(port,0x00); + wbyte(port,0x00); + + wbyte(port,(len >> 8) & 0xff); + wbyte(port,0xff & len); + + checksum = sendaddr[address] + + 0x02 + 0x14 + b + ((len >> 8) & 0xff) + (0xff & len); + + while(i < len){ + s = *p; + if((s == 0x7D) || (s == 0xC1) || (s == 0xC0)){ + wbyte(port,CESCAPE); + if(0x20 & s) + s = 0xDF & s; + else + s = 0x20 | s; + checksum = checksum + CESCAPE; + i++; + } + wbyte(port,s); + checksum = checksum + s; + i++; + p++; + } + wbyte(port,0x100 -(checksum & 0xff) ); + wbyte(port,EOFRAME); + address ++; + if(address >7 ) address = 0; + + gp_port_read(port, (char *)buf, 7); + if((buf[2] != 0x02) || (buf[3] != 0x14) || (buf[4] != 0x00)){ + Abort(port); + fprintf(stderr,"F1fwrite fail\n"); + return(-1); + } + + return(i); +} + +unsigned long F1finfo(GPPort *port,char *name) +{ + unsigned char buf[64]; + int len; + unsigned long flen; + + buf[0] = 0x02; + buf[1] = 0x0F; + snprintf((char*)&buf[2], sizeof(buf)-2, "%s", name); + len = strlen(name) + 3; + + sendcommand(port,buf, len); + len = recvdata(port, buf, 37); + if((buf[0] != 0x02) || (buf[1] != 0x0F) || (buf[2] != 00)){ + Abort(port); + return(0); + } + + flen = buf[33] * 0x1000000 + buf[34] * 0x10000 + + buf[35] * 0x100 + buf[36]; + gp_log (GP_LOG_DEBUG , "F1finfo", "inf len = %ld %02x %02x %02x %02x\n", flen, + buf[33], buf[34], buf[35], buf[36]); + + if(buf[2] != 0) return(0); + return(flen); +} + +long F1getdata(GPPort*port,char *name, unsigned char *data) +{ + long filelen; + long total = 0; + long len; + unsigned char *p; + + F1status(port); + p = data; + filelen = F1finfo(port,name); + if(filelen < 0) + return(0); + + if(F1fopen(port,name) != 0) + return(0); + + while((len = F1fread(port, p, 0x0400)) != 0){ + if(len < 0){ + F1fclose(port); + return(0); + } + p = p + len; + total = total + len; + } + F1fclose(port); + return(total); +} + +int F1deletepicture(GPPort *port,int n) +{ + unsigned char buf[4]; + + gp_log (GP_LOG_DEBUG, "F1deletepicture", "Deleting picture %d...", n); + buf[0] = 0x02; + buf[1] = 0x15; + buf[2] = 0x00; + buf[3] = 0xff & n; + sendcommand(port,buf, 4); + recvdata(port, buf, 3); + if((buf[0] != 0x02) || (buf[1] != 0x15) || (buf[2] != 0)){ + Abort(port); + return GP_ERROR; + } + return GP_OK; +} + +int F1ok(GPPort*port) +{ + int retrycount = 100; + unsigned char buf[64]; + + gp_log (GP_LOG_DEBUG, "F1ok", "Asking for OK..."); + + buf[0] = 0x01; + buf[1] = 0x01; + sprintf((char*)&buf[2],"SONY MKY-1001 1.00"); + + while(retrycount--){ + sendcommand(port,buf, 32); + recvdata(port, buf, 32); + gp_log (GP_LOG_DEBUG, "F1ok", "OK:%02x%02x:%c%c%c%c\n", buf[0], buf[1], + buf[3],buf[4],buf[5],buf[6]); + if((buf[0] != 0x01) || (buf[1] != 0x01) || (buf[2] != 0x00) ){ + Abort(port); + F1reset(port); + } else + return 1; + } + return 0; /*ng*/ +} + +static int +F1reset(GPPort *port) +{ + unsigned char buf[3]; + gp_log (GP_LOG_DEBUG, "F1reset", "Resetting camera..."); + retryreset: + buf[0] = 0x01; + buf[1] = 0x02; + sendcommand(port,buf, 2); + recvdata(port, buf, 3); + gp_log (GP_LOG_DEBUG, "F1reset", "Reset: %02x%02x:%02x\n", buf[0], buf[1], buf[2]); + if(!((buf[0] == 0x01 ) && (buf[1] == 0x02) && (buf[2] == 0x00))) + goto retryreset; + return (int) buf[2]; /*ok*/ +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/command.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/command.h new file mode 100644 index 00000000..0596fa6e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/command.h @@ -0,0 +1,39 @@ +/* command.h + * + * Copyright (C) M. Adam Kendall + * Copyright (C) 2002 Bart van Leeuwen + * + * Based on the chotplay CLI interface from Ken-ichi Hayashi 1996,1997 + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __COMMAND_H__ +#define __COMMAND_H__ + +int F1ok (GPPort*); +long F1getdata (GPPort*,char *, unsigned char *); +int F1status (GPPort*); +char F1newstatus (GPPort *port, int, char *); +int F1howmany (GPPort *); +int F1fopen (GPPort *,char *); +long F1fread(GPPort *,unsigned char *data, long len); +long F1fwrite(GPPort *,unsigned char *data, long len, unsigned char b); +long F1fseek (GPPort *,long, int); +unsigned long F1finfo (GPPort *,char *); +int F1fclose (GPPort *); +int F1deletepicture (GPPort*,int); +#endif /* __COMMAND_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/pmp.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/pmp.h new file mode 100644 index 00000000..7c978491 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/pmp.h @@ -0,0 +1,47 @@ +/* pmp.h + * + * Copyright (C) M. Adam Kendall + * Copyright (C) 2002 Bart van Leeuwen + * + * Based on the chotplay CLI interface from Ken-ichi Hayashi 1996,1997 + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define PMP_RESOLUTION 0x1d +#define PMP_FIN 0x33 +#define PMP_STD 0x17 +#define PMP_ECM 0x08 + +#define PMP_COMMENT 0x34 + +#define PMP_TAKE_YEAR 0x4c +#define PMP_TAKE_MONTH 0x4d +#define PMP_TAKE_DATE 0x4e +#define PMP_TAKE_HOUR 0x4f +#define PMP_TAKE_MINUTE 0x50 +#define PMP_TAKE_SECOND 0x51 + +#define PMP_EDIT_YEAR 0x54 +#define PMP_EDIT_MONTH 0x55 +#define PMP_EDIT_DATE 0x56 +#define PMP_EDIT_HOUR 0x57 +#define PMP_EDIT_MINUTE 0x58 +#define PMP_EDIT_SECOND 0x59 + +#define PMP_SPEED 0x66 + +#define PMP_FLASH 0x76 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/sonydscf1.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/sonydscf1.c new file mode 100644 index 00000000..6000880c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf1/sonydscf1.c @@ -0,0 +1,623 @@ +/* sonydscf1.c + * + * Copyright (C) M. Adam Kendall + * Copyright (C) 2002 Bart van Leeuwen + * + * Based on the chotplay CLI interface from Ken-ichi Hayashi 1996,1997 + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "command.h" +#include "pmp.h" + +#define JPEG 0 +#define JPEG_T 1 +#define PMP 2 +#define PMX 3 + +#define PMF_MAXSIZ 3*1024 + +#define MAX_PICTURE_NUM 200 +static unsigned char picture_index[MAX_PICTURE_NUM]; +static unsigned short picture_thumbnail_index[MAX_PICTURE_NUM]; +static unsigned char picture_protect[MAX_PICTURE_NUM]; +static unsigned char picture_rotate[MAX_PICTURE_NUM]; + +static int +make_jpeg_comment(unsigned char *buf, unsigned char *jpeg_comment) +{ + int i, cur = 0; + int reso, shutter; + + struct resolution { + int reso_val; + char *reso_conv; + } reso_tab[] = { + {PMP_FIN, "fine"}, + {PMP_STD, "standard"}, + {PMP_ECM, "economy"}, + {0, "unknown"}, + }; + + struct sh_speed { + int spd_val; + char *spd_conv; + } sh_speed_tab[] = { + {0x0123, "1/7.5"}, + {0x0187, "1/15"}, + {0x01eb, "1/30"}, + {0x024f, "1/60"}, + {0x0298, "1/100"}, + {0x031d, "1/250"}, + {0x0381, "1/500"}, + {0x03e5, "1/1000"}, + {0, "unknown"}, + }; + + jpeg_comment[0] = 0xff; + jpeg_comment[1] = 0xd8; + jpeg_comment[2] = 0xff; + jpeg_comment[3] = 0xfe; + + /* resolution */ + reso = *(buf+PMP_RESOLUTION); + + i = 0; + while (1) { + if ((reso == reso_tab[i].reso_val) || (reso_tab[i].reso_val == 0)) { + cur = 6 + sprintf((char*)&jpeg_comment[6], "Resolution: %s\n", + reso_tab[i].reso_conv); + break; + } + i++; + } + + /* shutter speed */ + shutter = (buf[PMP_SPEED]<<8)|buf[PMP_SPEED+1]; + + i = 0; + while (1) { + if ((shutter == sh_speed_tab[i].spd_val) || + (sh_speed_tab[i].spd_val == 0)) { + cur = cur + sprintf((char*)&jpeg_comment[cur], "Shutter-speed: %s\n", + sh_speed_tab[i].spd_conv); + break; + } + i++; + } + + /* PMP comment */ + if (*(buf+PMP_COMMENT)) { + cur = cur + sprintf((char*)&jpeg_comment[cur], "Comment: %s\n", + (char *)(buf+PMP_COMMENT)); + } + + /* taken date */ + if (*(buf+PMP_TAKE_YEAR) == 0xff) { + cur = cur + sprintf((char*)&jpeg_comment[cur], + "Date-Taken: ----/--/-- --:--:--\n"); + } + else { + cur = cur + sprintf((char*)&jpeg_comment[cur], + "Date-Taken: %d/%02d/%02d %02d:%02d:%02d\n", + 2000+(*(buf+PMP_TAKE_YEAR)), *(buf+PMP_TAKE_MONTH), + *(buf+PMP_TAKE_DATE), *(buf+PMP_TAKE_HOUR), *(buf+PMP_TAKE_MINUTE), + *(buf+PMP_TAKE_SECOND)); + } + + /* edited date */ + if (*(buf+PMP_EDIT_YEAR) == 0xff) { + cur = cur + sprintf((char*)&jpeg_comment[cur], + "Date-Edited: ----/--/-- --:--:--\n"); + } + else { + cur = cur + sprintf((char*)&jpeg_comment[cur], + "Date-Edited: %d/%02d/%02d %02d:%02d:%02d\n", + 2000+(*(buf+PMP_EDIT_YEAR)), *(buf+PMP_EDIT_MONTH), + *(buf+PMP_EDIT_DATE), *(buf+PMP_EDIT_HOUR), *(buf+PMP_EDIT_MINUTE), + *(buf+PMP_EDIT_SECOND)); + } + + /* use flash? */ + if (*(buf+PMP_FLASH) != 0) { + cur = cur + sprintf((char*)&jpeg_comment[cur], "Flash: on\n"); + } + + /* insert total jpeg comment length */ + jpeg_comment[4] = (unsigned char)((cur - 4) >> 8); + jpeg_comment[5] = (unsigned char)(cur - 4); + + return cur; +} + +static int +get_picture_information(GPPort *port,int *pmx_num, int outit) +{ + unsigned char buforg[PMF_MAXSIZ]; + char name[64]; + int i, n; + int j, k; + char *buf = (char *) &buforg; + + strcpy(name, "/PIC_CAM/PIC00000/PIC_INF.PMF"); + F1ok(port); + F1getdata(port, name, (unsigned char *)buf); + + n = buf[26] * 256 + buf[27]; /* how many files */ + *pmx_num = buf[31]; /* ??? */ + + if(n ==10) + buf++; + + k = 0; + for(i = 0 ; i < (int) *pmx_num ; i++){ + for(j = 0 ; j < buforg[0x20 + 4 * i + 3]; j++){ + picture_thumbnail_index[k] = (j << 8) | buforg[0x20 + 4 * i] ; + k++; + } + } + for(i = 0 ; i < n ; i++){ + picture_index[i] = buf[0x420 + 0x10 * i + 3]; + picture_rotate[i] = buf[0x420 + 0x10 * i + 5]; + picture_protect[i] = buf[0x420 + 0x10 * i + 14]; + } + + if(outit == 2){ + fprintf(stdout," No:Internal name:Thumbnail name(Nth):Rotate:Protect\n"); + for(i = 0 ; i < n ; i++){ + fprintf(stdout,"%03d:", i + 1); + fprintf(stdout," PSN%05d.PMP:", picture_index[i]); + fprintf(stdout,"PIDX%03d.PMX(%02d) :", + 0xff & picture_thumbnail_index[i], + 0xff & (picture_thumbnail_index[i] >> 8)); + switch(picture_rotate[i]){ + case 0x00: + fprintf(stdout," 0:"); + break; + case 0x04: + fprintf(stdout," 270:"); + break; + case 0x08: + fprintf(stdout," 180:"); + break; + case 0x0c: + fprintf(stdout," 90:"); + break; + default: + fprintf(stdout," ???:"); + break; + } + if(picture_protect[i]) + fprintf(stdout,"on"); + else + fprintf(stdout,"off"); + fprintf(stdout,"\n"); + } + } + return(n); +} + +static int +get_file(GPPort *port, char *name, CameraFile *file, int format, GPContext *context) +{ + unsigned long filelen; + unsigned long total = 0; + long len,jpegcommentlen; + unsigned char buf[0x400]; + unsigned char jpeg_comment[256]; + int ret, id; + + F1ok(port); + F1status(port); + + filelen = F1finfo(port,name); + if(filelen == 0) + return GP_ERROR; + + if(F1fopen(port,name) != 0) + return GP_ERROR_IO; + + if(format != JPEG) + return GP_ERROR; + + len = F1fread(port, buf, 126); + if( len < 126){ + F1fclose(port); + return GP_ERROR_IO_READ; + } + jpegcommentlen = make_jpeg_comment(buf, jpeg_comment); + ret = gp_file_append (file, (char *)jpeg_comment, jpegcommentlen); + if (ret < GP_OK) return ret; + + total = 126; + id = gp_context_progress_start (context, filelen, + _("Downloading data...")); + ret = GP_OK; + while((len = F1fread(port, buf, 0x0400)) != 0){ + if(len < 0) + return GP_ERROR_IO_READ; + total = total + len; + gp_file_append (file, (char *)buf, len); + gp_context_progress_update (context, id, total); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + ret = GP_ERROR_CANCEL; + break; + } + } + gp_context_progress_stop (context, id); + F1fclose(port); + return ret; +} + +static long +get_thumbnail(GPPort *port,char *name, CameraFile *file, int format, int n) +{ + unsigned long filelen; + unsigned long total = 0; + long len; + int i; + unsigned char buf[0x1000]; + unsigned char *p; + + p = buf; + + F1ok(port); + F1status(port); + + filelen = F1finfo(port,name); + if(filelen == 0) + return GP_ERROR_IO; + + if(F1fopen(port,name) != 0) + return GP_ERROR_IO; + + for( i = 0 ; i < n ; i++) + len = F1fseek(port, 0x1000, 1); + + while((len = F1fread(port, p, 0x0400)) != 0){ + if(len < 0){ + F1fclose(port); + return GP_ERROR_IO_READ; + } + total = total + len; + p = p + len; + if(total >= 0x1000) + break; + } + F1fclose(port); + + filelen = buf[12] * 0x1000000 + buf[13] * 0x10000 + + buf[14] * 0x100 + buf[15]; + + return gp_file_append (file, (char *)&buf[256], filelen); +} + +#if 0 +static void +get_date_info(GPPort *port, char *name, char *outfilename ,char *newfilename) +{ + char *p, *q; + int year = 0; + int month = 0; + int date = 0; + int hour = 0; + int minute = 0; + int second = 0; + unsigned char buf[128]; + + F1ok(port); + F1status(port); + + (void) F1finfo(port, name); + if(F1fopen(port, name) ==0){ + if(F1fread(port, buf, 126) == 126){ + if(*(buf+PMP_TAKE_YEAR) != 0xff){ + year = (int) *(buf+PMP_TAKE_YEAR); + month = (int) *(buf+PMP_TAKE_MONTH); + date = (int) *(buf+PMP_TAKE_DATE); + hour = (int) *(buf+PMP_TAKE_HOUR); + minute = (int) *(buf+PMP_TAKE_MINUTE); + second = (int) *(buf+PMP_TAKE_SECOND); + } + } + F1fclose(port); + } + + p = outfilename; + q = newfilename; + while(*p){ + if(*p == '%'){ + p++; + switch(*p){ + case '%': + *q = '%'; + break; + case 'H': + q = q + sprintf(q, "%02d", hour); + break; + case 'M': + q = q + sprintf(q, "%02d", minute); + break; + case 'S': + q = q + sprintf(q, "%02d", second); + break; + case 'T': +#ifdef BINARYFILEMODE + q = q + sprintf(q, "%02d%02d%02d", hour, minute, date); +#else + q = q + sprintf(q, "%02d:%02d:%02d", hour, minute, date); +#endif + break; + case 'y': + q = q + sprintf(q, "%02d", year); + break; + case 'm': + q = q + sprintf(q, "%02d", month); + break; + case 'd': + q = q + sprintf(q, "%02d", date); + break; + case 'D': +#ifdef BINARYFILEMODE + q = q + sprintf(q, "%02d%02d%02d", year, month, date); +#else + q = q + sprintf(q, "%02d_%02d_%02d", year, month, date); +#endif + break; + default: + q = q + sprintf(q, "%%%c", *p); + break; + } + p++; + }else + *q++ = *p++; + } + *q = 0; + +} +#endif + +static int +get_picture(GPPort *port, int n, CameraFile *file, int format, int ignore, int all_pic_num, +GPContext *context) +{ + long len; + char name[64]; + char name2[64]; + int i; + + fprintf(stderr,"all_pic_num 1 %d\n", all_pic_num); + all_pic_num = get_picture_information(port,&i,0); + fprintf(stderr,"all_pic_num 2 %d\n", all_pic_num); + + +retry: + + if (all_pic_num < n) { + fprintf(stderr, "picture number %d is too large. %d\n",all_pic_num,n); + return(GP_ERROR); + } + + switch(format){ + case PMX: + sprintf(name, "/PIC_CAM/PIC00000/PIDX%03d.PMX", n - 1); + break; + case JPEG_T: + sprintf(name, "/PIC_CAM/PIC00000/PIDX%03d.PMX", + (picture_thumbnail_index[n] & 0xff)); + break; + case JPEG: + case PMP: + default: + if(ignore) + sprintf(name, "/PIC_CAM/PIC00000/PSN%05d.PMP", n); + else + sprintf(name, "/PIC_CAM/PIC00000/PSN%05d.PMP", picture_index[n]); + break; + } + if(ignore) + sprintf(name2, "/PIC_CAM/PIC00000/PSN%05d.PMP", n ); + else + sprintf(name2, "/PIC_CAM/PIC00000/PSN%05d.PMP", picture_index[n]); + + /* printf("name %s, name2 %s, %d\n",name,name2,n); */ + + if(0) + switch(format){ + case PMX: + fprintf(stdout, "pidx%03d.pmx: ", n -1 ); + break; + case JPEG_T: + fprintf(stderr, "Thumbnail %03d: ", n); + break; + case PMP: + case JPEG: + default: + fprintf(stdout, "Picture %03d: ", n); + break; + } + + if(format == JPEG_T) + len = get_thumbnail(port, name, file, format, + 0xff & (picture_thumbnail_index[n] >> 8)); + else + len = get_file(port, name, file, format, context); + if(len < GP_OK ) + goto retry; + + return(len); +} + +int camera_id (CameraText *id) { + strcpy(id->text, "sonydscf1-bvl"); + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) { + CameraAbilities a; + + memset (&a, 0, sizeof(a)); + strcpy(a.model, "Sony:DSC-F1"); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 19200; + a.speed[2] = 38400; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + return gp_abilities_list_append(list, a); +} + +static int camera_exit (Camera *camera, GPContext *context) { + if(F1ok(camera->port)) + return(GP_ERROR); + return (F1fclose(camera->port)); +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + int num; + + gp_log (GP_LOG_DEBUG, "sonyf1/get_file_func","folder: %s, file: %s", folder, filename); + + if(!F1ok(camera->port)) + return (GP_ERROR); + + gp_file_set_mime_type (file, GP_MIME_JPEG); + + /* Retrieve the number of the photo on the camera */ + num = gp_filesystem_number(camera->fs, "/", filename, context); + if (num < GP_OK) + return num; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + return get_picture (camera->port, num, file, JPEG, 0, F1howmany(camera->port), context); + case GP_FILE_TYPE_PREVIEW: + return get_picture (camera->port, num, file, JPEG_T, TRUE, F1howmany(camera->port), context); + default: + return (GP_ERROR_NOT_SUPPORTED); + } + return GP_OK; +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, + GPContext *context) +{ + Camera *camera = data; + int max, num; + + gp_log (GP_LOG_DEBUG, "sonydscf1/delete_file_func", "%s / %s", folder, filename); + num = gp_filesystem_number(camera->fs, "/", filename, context); + if (numfs,folder, context); + if (maxport)) + return GP_ERROR; + if(picture_protect[num] != 0x00){ + gp_log (GP_LOG_ERROR, "sonydscf1/delete_file_func", "picture %d is protected.", num); + return GP_ERROR; + } + return F1deletepicture(camera->port, picture_index[num]); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + int i; + + if(!F1ok(camera->port)) + return (GP_ERROR); + get_picture_information(camera->port,&i,2); + return (F1newstatus(camera->port, 1, summary->text)); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy(about->text, +_("Sony DSC-F1 Digital Camera Support\nM. Adam Kendall \nBased on the chotplay CLI interface from\nKen-ichi Hayashi\nGphoto2 port by Bart van Leeuwen ")); + + return (GP_OK); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + F1ok(camera->port); + /*if(F1ok(camera->port)) + return(GP_ERROR);*/ + /* Populate the list */ + return gp_list_populate(list, "PSN%05i.jpg", F1howmany(camera->port)); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, +}; + +int camera_init (Camera *camera, GPContext *context) { + GPPortSettings settings; + + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + + /* Configure the port */ + gp_port_set_timeout (camera->port, 5000); + gp_port_get_settings (camera->port, &settings); + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits= 1; + gp_port_set_settings (camera->port, settings); + + /* Set up the filesystem */ + return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/ChangeLog new file mode 100644 index 00000000..603a1491 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/ChangeLog @@ -0,0 +1,29 @@ +2004-05-13 Raymond Penners + + * *.[ch]: Merged in Sony DSC-F55 patches from Alberto Garlassi: + added support for downloading MPEG files, and fixed thumbnail + downloading. + +2004-04-08 Raymond Penners + + * *.[ch]: Merged in patch from Alberto Garlassi: serial + communication fixes on fast CPUs, and the native file names are + now used (instead of using the hardcoded "dsc%05d.jpg"). + +2003-02-27 Marcus Meissner + + * camera.c: We support EXIF download. + +2002-07-18 Raymond Penners + + * sony.c: Added calls to gp_context_idle(). + +2002-05-07 Khalid Akbar + + * *.[ch]: Added support for more than 256 images and "Sony TRV-20E". + +2002-03-27 Raymond Penners + + * *.[ch]: Made driver GPContext aware (i.e., operations can now be + cancelled), and added support for EXIF information. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/Makefile-files new file mode 100644 index 00000000..84ae3dd4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += sony_dscf55.la +EXTRA_DIST += sonydscf55/ChangeLog sonydscf55/TODO + +sony_dscf55_la_SOURCES = \ + sonydscf55/sony.c sonydscf55/sony.h \ + sonydscf55/camera.c sonydscf55/nls.h +sony_dscf55_la_LDFLAGS = $(camlib_ldflags) +sony_dscf55_la_DEPENDENCIES = $(camlib_dependencies) +sony_dscf55_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/TODO b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/TODO new file mode 100644 index 00000000..a434b660 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/TODO @@ -0,0 +1,13 @@ +* Fix all FIXME's + +* Add calls to gp_frontend_status() + +* In cases where an error occurs during transfer, the driver can get +out of sync with the device. From that point on, the driver is unable +to successfully initialise the driver, even for new gPhoto sessions. A +reboot (power-off, power-on) of the MSAC-SR1 device helps. See if it +is possible to do a proper init in such a case. + +-- +Raymond Penners -*- raymond@dotsphinx.com -*- http://www.dotsphinx.com + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/camera.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/camera.c new file mode 100644 index 00000000..9cc45fa8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/camera.c @@ -0,0 +1,345 @@ +/* Sony DSC-F55 & MSAC-SR1 - gPhoto2 camera library + * Copyright 2001, 2002, 2004 Raymond Penners + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include + +#include +#include + +#include "sony.h" +#include "nls.h" +#include + +#define GP_MODULE "sonydscf55" + +struct ModelInfo { + SonyModel model_id; + const char *model_str; +}; + +static const struct ModelInfo models[] = { + { SONY_MODEL_MSAC_SR1, "Sony:MSAC-SR1" }, + { SONY_MODEL_DCR_PC100, "Sony:DCR-PC100" }, + { SONY_MODEL_TRV_20E, "Sony:TRV-20E" }, + { SONY_MODEL_DSC_F55, "Sony:DSC-F55" } +}; + +int +camera_id(CameraText * id) +{ + strcpy(id->text, SONY_CAMERA_ID); + return (GP_OK); +} + +int +camera_abilities(CameraAbilitiesList * list) +{ + int i; + CameraAbilities a; + + for (i = 0; i < sizeof(models) / sizeof(models[i]); i++) { + memset(&a, 0, sizeof(a)); + strcpy(a.model, models[i].model_str); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_PREVIEW | GP_FILE_OPERATION_EXIF; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + gp_abilities_list_append(list, a); + } + + return (GP_OK); +} + +/** + * De-initialises camera + */ +static int +camera_exit(Camera * camera, GPContext *context) +{ + int rc; + + GP_DEBUG( + "camera_exit()"); + + if (camera->pl) { + rc = sony_exit (camera); + if (rc < 0) + return (rc); + free (camera->pl); + camera->pl = NULL; + } + + return (GP_OK); +} + + + +static int +camera_about(Camera * camera, CameraText * about, GPContext *context) +{ + strcpy(about->text, + _("Sony DSC-F55/505 gPhoto library\n" + "Supports Sony MSAC-SR1 and Memory Stick used by DCR-PC100\n" + "Originally written by Mark Davies \n" + "gPhoto2 port by Raymond Penners ")); + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int mpeg, rc = GP_OK; + + GP_DEBUG("camera_folder_list_files()"); + + for (mpeg = 0; mpeg <= 1 && rc == GP_OK; mpeg++) { + int i, count; + SonyFileType file_type; + + file_type = mpeg ? SONY_FILE_MPEG : SONY_FILE_IMAGE; + + rc = sony_file_count(camera, file_type, &count); + if (rc != GP_OK) { + break; + } + + for (i = 1; i <= count; i++) { + char buf[13]; + rc = sony_file_name_get(camera, i, file_type, buf); + if (rc != GP_OK) { + break; + } + gp_list_append(list, buf, NULL); + + if (gp_context_cancel(context) + == GP_CONTEXT_FEEDBACK_CANCEL) { + rc = GP_ERROR_CANCEL; + } + } + } + return rc; +} + + +static int +get_sony_file_id(Camera *camera, const char *folder, + const char *filename, GPContext *context, + int *sony_id, SonyFileType *sony_type) +{ + int num = gp_filesystem_number(camera->fs, folder, filename, context); + if (num < 0) + return (num); + + num++; + + if (sony_is_mpeg_file_name(filename)) { + const char *name_found; + int mpeg_num = 0; + do { + mpeg_num++; + gp_filesystem_name(camera->fs, folder, num-mpeg_num, &name_found, context); + } + while (sony_is_mpeg_file_name(name_found) + && (mpeg_num<=num)); + mpeg_num--; + + *sony_type = SONY_FILE_MPEG; + *sony_id = mpeg_num; + } + else { + *sony_type = SONY_FILE_IMAGE; + *sony_id = num; + } + return GP_OK; +} + + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile * file, void *data, + GPContext *context) +{ + Camera *camera = data; + int num; + SonyFileType file_type; + int rc = GP_ERROR; + + GP_DEBUG("camera_file_get(\"%s/%s\")", folder, filename); + + rc = get_sony_file_id(camera, folder, filename, context, + &num, &file_type); + if (rc != GP_OK) + return rc; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + if (file_type == SONY_FILE_MPEG) { + rc = sony_mpeg_get(camera, num, file, context); + } + else { + rc = sony_image_get(camera, num, file, context); + } + break; + case GP_FILE_TYPE_PREVIEW: + if (file_type == SONY_FILE_MPEG) { + rc = GP_OK; + } + else { + rc = sony_thumbnail_get(camera, num, file, context); + } + break; + case GP_FILE_TYPE_EXIF: + if (file_type == SONY_FILE_MPEG) { + rc = GP_OK; + } + else { + rc = sony_exif_get(camera, num, file, context); + } + break; + default: + rc = GP_ERROR_NOT_SUPPORTED; + } + return rc; +} + + + +static int +get_info_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, void *data, + GPContext *context) +{ + Camera *camera = data; + int num, rc; + SonyFileType file_type; + + rc = get_sony_file_id(camera, folder, filename, context, + &num, &file_type); + if (rc != GP_OK) + return rc; + + rc = sony_image_info(camera, num, file_type, info, context); + return rc; +} + + +static int +model_compare(const char *a, const char *b) +{ + const char *amod; + const char *bmod; + int alen, blen; + + alen = strlen(a); + blen = strlen(b); + if (alen != blen) + return 0; + amod = strchr(a, ':'); + bmod = strchr(b, ':'); + if ((amod == NULL && bmod == NULL) + || (amod != NULL && bmod != NULL)) { + return !strcasecmp(a, b); + } + if (amod != NULL) { + int aidx = amod - a; + return (!strncasecmp(a, b, aidx)) + && (!strcasecmp(a+aidx+1, b+aidx+1)); + } + if (bmod != NULL) { + int bidx = bmod - b; + return (!strncasecmp(a, b, bidx)) + && (!strcasecmp(a+bidx+1, b+bidx+1)); + } + /* can't really get here */ + return 42; +} + +static int +get_camera_model(Camera *camera, SonyModel *model) +{ + CameraAbilities a; + int rc; + + rc = gp_camera_get_abilities (camera, &a); + if (rc == GP_OK) { + int i; + rc = GP_ERROR; + for (i = 0; i < sizeof(models) / sizeof(models[i]); i++) { + if (model_compare(models[i].model_str, + a.model)) { + rc = GP_OK; + *model = models[i].model_id; + break; + } + } + } + return rc; +} + + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func +}; + +/** + * Initialises camera + */ +int +camera_init(Camera * camera, GPContext *context) +{ + int rc; + SonyModel model; + + rc = get_camera_model(camera, &model); + if (rc != GP_OK) + return rc; + + camera->functions->exit = camera_exit; + camera->functions->about = camera_about; + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + + rc = sony_init (camera, model); + if (rc < 0) { + free (camera->pl); + camera->pl = NULL; + return (rc); + } + return (GP_OK); +} + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/nls.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/nls.h new file mode 100644 index 00000000..46685f39 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/nls.h @@ -0,0 +1,41 @@ +/* Sony DSC-F55 & MSAC-SR1 - gPhoto2 camera library + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef NLS_H +#define NLS_H + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#endif /* NLS_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/sony.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/sony.c new file mode 100644 index 00000000..ec016032 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/sony.c @@ -0,0 +1,901 @@ +/* Sony DSC-F55 & MSAC-SR1 - gPhoto2 camera library + * Copyright 2001, 2002, 2004 Raymond Penners + * Copyright 2000 Mark Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include + +#include +#include "sony.h" + +#define GP_MODULE "sony55" + +/** + * Constants + */ +#define SONY_CONVERSE_RETRY 5 + +#define SONY_INVALID_CHECKSUM 0x40 +#define SONY_INVALID_SEQUENCE 0x41 +#define SONY_RESET_SEQUENCE 0x42 +#define SONY_RESEND_PACKET 0x43 + +#define SONY_ESCAPE_CHAR 0x7d +#define SONY_START_CHAR 0xc0 +#define SONY_END_CHAR 0xc1 + + +static const unsigned char START_PACKET = 192; +static const unsigned char END_PACKET = 193; + +static const char ESC_START_STRING[] = { 0x7d, 0xe0 }; +static const char ESC_END_STRING[] = { 0x7d, 0xe1 }; +static const char ESC_ESC_STRING[] = { 0x7d, 0x5d }; + +static const unsigned char PacketCodes[2] = { 192, 193 }; + + +#if defined(USE_ALL_TYPES) +static unsigned char EmailImage[] = + { 0, 2, 2, 0, 16, '/', 'M', 'S', 'S', 'O', 'N', 'Y', '/', 'I', 'M', +'C', + 'I', 'F', '1', '0', '0' +}; +#endif + + +static unsigned char IdentString[] = + { 0, 1, 1, 'S', 'O', 'N', 'Y', ' ', ' ', ' ', ' ', ' ' }; +static unsigned char EmptyPacket[] = { 0 }; /* null packet */ +static unsigned char SetTransferRate[] = { 0, 1, 3, 0 }; +static unsigned char SendImageCount[] = { 0, 2, 1 }; +static unsigned char StillImage[] = + { 0, 2, 2, 0, 14, '/', 'D', 'C', 'I', 'M', '/', '1', '0', '0', 'M', +'S', + 'D', 'C', 'F' +}; +static unsigned char MpegImage[] = + { 0, 2, 2, 0, 16, '/', 'M', 'S', 'S', 'O', 'N', 'Y', '/', 'M', 'O', +'M', + 'L', '0', '0', '0', '1' +}; +static unsigned char SelectImage[] = { 0, 2, 48, 0, 0, 0, 0 }; +static unsigned char SendImage[] = { 0, 2, '1', 0, 1, 0, 0 }; +static unsigned char SendNextImagePacket[] = { 0, 2, '1', 0 }; +static unsigned char SendThumbnail[] = { 0, 2, '0', 0 }; + +#if 0 +static unsigned char SelectCamera[] = { 0, 1, 2 }; +static unsigned char DownloadComplete[] = { 0, 2, '0', 255 }; +static unsigned char X10Camera[] = { 0, 1, 5 }; + +static unsigned char X5Camera[] = { 0, 2, 1 }; +static unsigned char X13Camera[] = { 0, 2, 18 }; + +#endif + + +/* + * This array contains the expected packet sequence code to to be applied/ + * checked for. + */ +static const unsigned char sony_sequence[] = + { 14, 0, 32, 34, 66, 68, 100, 102, 134, 136, 168, 170, 202, 204, 236, +238, + 255 +}; + + +#ifdef __linux__ +static const int baud_rate = 115200; +#else +# ifdef __sun__ +static const int baud_rate = 38400; +# else +static const int baud_rate = 9600; +# endif +#endif + + + + + +/** + * Returns transfer rate ID + */ +static int +sony_baud_to_id(long baud) +{ + int r; + + switch (baud) { + case 115200: + r = 4; + break; + case 57600: + r = 3; + break; /* FIXME ??? */ + case 38400: + r = 2; + break; /* works on sun */ + case 19200: + r = 1; + break; /* works on sun */ + default: + case 9600: + r = 0; + break; /* works on sun */ + } + return r; +} + + +/** + * Reads a byte + */ +static int +sony_read_byte(Camera * camera, unsigned char *b) +{ + int n = gp_port_read(camera->port, (char *)b, 1); + if (n != 1) + return GP_ERROR; + else + return GP_OK; +} + + + +/** + * Returns the checksum for a packet + */ +static unsigned char +sony_packet_checksum(Packet * p) +{ + unsigned short int o = 0; + unsigned long int sum = 0; + + sum = 0; + + while (o < p->length) + sum += p->buffer[o++]; + + return 256 - (sum & 255); +} + +/** + * Returns TRUE iff the packet is valid + */ +static int +sony_packet_validate(Camera * camera, Packet * p) +{ + unsigned char c = sony_packet_checksum(p); + + if (c != p->checksum) { + GP_DEBUG( + "sony_packet_validate: invalid checksum"); + return SONY_INVALID_CHECKSUM; + } + + if (129 == p->buffer[0]) { + GP_DEBUG( + "sony_packet_validate: resend packet"); + return SONY_RESEND_PACKET; + } + + if (sony_sequence[camera->pl->sequence_id] != p->buffer[0]) { + GP_DEBUG( + "sony_packet_validate: invalid sequence"); + return SONY_INVALID_SEQUENCE; + } + + return GP_OK; +} + +/** + * Constructs a packet. + */ +static int +sony_packet_make(Camera * camera, Packet * p, unsigned char *buffer, + unsigned short int length) +{ + p->length = 0; + + while (length--) + p->buffer[p->length++] = *(buffer++); + + if (255 == sony_sequence[++(camera->pl->sequence_id)]) + camera->pl->sequence_id = 0; + + p->buffer[0] = sony_sequence[camera->pl->sequence_id++]; + + if (255 == sony_sequence[camera->pl->sequence_id]) + camera->pl->sequence_id = 0; + + p->checksum = sony_packet_checksum(p); + + return TRUE; +} + +/** + * Reads a packet. + */ +static int sony_packet_read(Camera * camera, Packet * pack) +{ + unsigned int n; + unsigned char byte = 0; + static Packet p; + + GP_DEBUG( + "sony_packet_read()"); + p.length = 0; + + for (n = 0; n < 2; n++) { + for (byte = 0; byte != (unsigned char) PacketCodes[n];) { + if (sony_read_byte(camera, &byte) == GP_ERROR) { + return FALSE; + } + + if (n > 0) { + if (SONY_ESCAPE_CHAR == byte) { + unsigned char extra; + + sony_read_byte(camera, &extra); + + switch (extra) { + case 1: + case 7: + case 0xe1: + case 0xe0: + extra &= 0xcf; + p.buffer[p.length++] = + extra; + continue; + case 0x5d: + p.buffer[p.length++] = + byte; + continue; + default: + p.buffer[p.length++] = + byte; + p.buffer[p.length++] = + extra; + continue; + } + } else + p.buffer[p.length++] = byte; + } + } + } + + p.length -= 2; + p.checksum = p.buffer[p.length]; + + memcpy(pack, &p, sizeof(Packet)); + return TRUE; +} + +/** + * Sends a packet + */ +static int +sony_packet_write(Camera * camera, Packet * p) +{ + unsigned short int count; + int rc; + + GP_DEBUG( + "sony_packet_write()"); + + /** + * This usleep is necessary when using (relatively) fast CPUs, + * as P4 2Ghz. Without it gphoto2 stops with a segmentation fault + * and the --debug message sony_packet_validate: invalid sequence + * Failed to read packet during transfer. The delay is somewhat + * arbitrary. (alberto-g@(remove_me)inventati.org) + **/ + usleep(10000); + + rc = gp_port_write(camera->port, (char *)&START_PACKET, 1); + + p->buffer[p->length] = p->checksum; + + for (count = 0; count < p->length + 1 && rc != GP_ERROR; count++) { + switch ((unsigned char) p->buffer[count]) { + case SONY_ESCAPE_CHAR: + rc = gp_port_write(camera->port, ESC_ESC_STRING, 2); + break; + + case SONY_START_CHAR: + rc = gp_port_write(camera->port, ESC_START_STRING, 2); + break; + + case SONY_END_CHAR: + rc = gp_port_write(camera->port, ESC_END_STRING, 2); + break; + + default: + rc = gp_port_write(camera->port, + (char *) &p->buffer[count], 1); + break; + } + } + if (rc != GP_ERROR) + rc = gp_port_write(camera->port, (char *) &END_PACKET, 1); + return rc; +} + +/** + * Communicates packets + */ +static int +sony_converse(Camera * camera, Packet * out, unsigned char *str, int len) +{ + Packet ps; + char old_sequence = 33; + int sequence_count = 0; + int invalid_sequence = 0; + int count; + int rc; + + GP_DEBUG( "sony_converse()"); + sony_packet_make(camera, &ps, str, len); + + for (count = 0; count < SONY_CONVERSE_RETRY; count++) { + rc = sony_packet_write(camera, &ps); + + if (rc == GP_OK) { + if (sony_packet_read(camera, out)) { + switch (sony_packet_validate(camera, out)) { + case SONY_INVALID_CHECKSUM: + if (invalid_sequence) { + sony_packet_make(camera, + &ps, str, + len); + break; + } + + GP_DEBUG ("Checksum invalid"); + ps.buffer[0] = 129; + ps.checksum = + sony_packet_checksum(&ps); + break; + + case SONY_INVALID_SEQUENCE: + if (camera->pl->model + != SONY_MODEL_DSC_F55) { + invalid_sequence = 1; + sony_packet_make(camera, + &ps, str, + len); + break; + } + + if (old_sequence == out->buffer[0]) + sequence_count++; + else if (0 == sequence_count) + old_sequence = + out->buffer[0]; + + if (sequence_count == 4) { + GP_DEBUG ("Attempting to reset sequence id - image may be corrupt."); + camera->pl->sequence_id = 0; + + while (sony_sequence + [camera->pl-> + sequence_id] != + old_sequence) + camera->pl-> + sequence_id++; + + return GP_OK; + } + GP_DEBUG ("Invalid Sequence"); + ps.buffer[0] = 129; + ps.checksum = + sony_packet_checksum(&ps); + break; + + case SONY_RESET_SEQUENCE: + camera->pl->sequence_id = 0; + return GP_OK; + + case SONY_RESEND_PACKET: + GP_DEBUG ("Resending Packet"); + break; + + case GP_OK: + return GP_OK; + + default: + GP_DEBUG ("Unknown Error"); + break; + } + } else { + /* printf("Incomplete packet\n"); */ + ps.buffer[0] = 129; + ps.checksum = sony_packet_checksum(&ps); + } + } + } + + GP_DEBUG( + "Failed to read packet during transfer."); + + return GP_ERROR; +} + + +/** + * Sets baud rate + */ +static int +sony_baud_port_set(Camera * camera, long baud) +{ + gp_port_settings settings; + + gp_port_get_settings(camera->port, &settings); + settings.serial.speed = baud; + gp_port_set_settings(camera->port, settings); + + usleep(70000); + + return GP_OK; +} + +/** + * Sets baud rate + */ +static int +sony_baud_set(Camera * camera, long baud) +{ + Packet dp; + int rc; + + GP_DEBUG( "sony_baud_set(%ld)", + baud); + + if (camera->pl->current_baud_rate != baud) { + /* FIXME */ + SetTransferRate[3] = sony_baud_to_id(baud); + + rc = sony_converse(camera, &dp, SetTransferRate, 4); + if (rc == GP_OK) { + sony_baud_port_set(camera, baud); + rc = sony_converse(camera, &dp, EmptyPacket, 1); + if (rc == GP_OK) { + camera->pl->current_baud_rate = baud; + } + usleep(100000); /* 50000 was good too, jw */ + + } + } + else { + rc = GP_OK; + } + return rc; +} + +/** + * Port initialisation + */ +static int +sony_init_port (Camera *camera) +{ + gp_port_settings settings; + int rc; + + rc = gp_port_set_timeout (camera->port, 5000); + if (rc == GP_OK) { + + gp_port_get_settings(camera->port, &settings); + + settings.serial.speed = 9600; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + + rc = gp_port_set_settings(camera->port, settings); + if (rc == GP_OK) { + rc = gp_port_flush(camera->port, 0); + } + } + return rc; +} + +/** + * Establish first contact (remember the prime directive? :) + */ +static int +sony_init_first_contact (Camera *camera) +{ + int count = 0; + Packet dp; + int rc = GP_ERROR; + + for (count = 0; count < 3; count++) { + camera->pl->sequence_id = 0; + + rc = sony_converse(camera, &dp, IdentString, 12); + if (rc == GP_OK) { + GP_DEBUG( + "Init OK"); + break; + } + usleep(2000); + GP_DEBUG( + "Init - Fail %u", count + 1); + } + return rc; +} + +/** + * Device supports MPEG? + */ +static int +sony_is_mpeg_supported (Camera * camera) +{ + return camera->pl->model == SONY_MODEL_DSC_F55; +} + +/** + * Initialises camera + */ +int +sony_init (Camera * camera, SonyModel model) +{ + int rc; + camera->pl->model = model; + camera->pl->current_baud_rate = -1; + camera->pl->current_mpeg_mode = -1; + + rc = sony_init_port (camera); + if (rc == GP_OK) + rc = sony_init_first_contact (camera); + + return rc; +} + +/** + * Reset the camera sequence count and baud rate. + */ +int +sony_exit(Camera * camera) +{ + Packet dp; + int rc = GP_ERROR; + + rc = sony_baud_set(camera, 9600); + while (rc == GP_OK && camera->pl->sequence_id > 0) { + rc = sony_converse(camera, &dp, EmptyPacket, 1); + } + + return rc; +} + + +static int +sony_set_file_mode(Camera * camera, SonyFileType file_type) +{ + int rc = GP_OK; + Packet dp; + if (file_type == SONY_FILE_MPEG) { + if (camera->pl->current_mpeg_mode != 1) { + rc = sony_converse(camera, &dp, MpegImage, 21); + if (rc == GP_OK) { + camera->pl->current_mpeg_mode = 1; + } + } + } + else { + if (camera->pl->current_mpeg_mode != 0) { + rc = sony_converse(camera, &dp, StillImage, 19); + if (rc == GP_OK) { + camera->pl->current_mpeg_mode = 0; + } + } + } + return rc; +} + + +/** + * Return count of images taken. + */ +int +sony_file_count(Camera * camera, SonyFileType file_type, int *count) +{ + Packet dp; + int rc, nr; + + GP_DEBUG( "sony_file_count()"); + if (file_type == SONY_FILE_MPEG && (! sony_is_mpeg_supported(camera))) { + *count = 0; + return GP_OK; + } + *count = -1; + rc = sony_converse(camera, &dp, SetTransferRate, 4); + if (rc != GP_OK) + return rc; + rc = sony_set_file_mode(camera, file_type); + if (rc != GP_OK) + return rc; + rc = sony_converse(camera, &dp, SendImageCount, 3); + if (rc != GP_OK) + return rc; + nr = dp.buffer[5] | (dp.buffer[4]<<8); + GP_DEBUG ("count = %d", nr); + *count = nr; + return GP_OK; +} + + + +/** + * Fetches file name. + */ +int +sony_file_name_get(Camera *camera, int imageid, SonyFileType mpeg, char buf[13]) +{ + Packet dp; + int rc; + + GP_DEBUG( "sony_file_name_get()"); + rc = sony_set_file_mode(camera, mpeg); + if (rc != GP_OK) + return rc; + sony_baud_set(camera, baud_rate); + /* FIXME: Not nice, changing global data like this. */ + SelectImage[3] = (imageid >> 8); + SelectImage[4] = imageid & 0xff; + rc = sony_converse(camera, &dp, SelectImage, 7); + if (rc != GP_OK) + return rc; + memcpy(buf, &dp.buffer[5], 8); + buf[8] = '.'; + memcpy(buf+9, &dp.buffer[5+8], 3); + buf[12] = 0; + return rc; +} + + +/** + * Is it an MPEG file? + */ +int +sony_is_mpeg_file_name(const char * file_name) +{ + return strncmp(file_name,"MOV",3)==0; +} + + + +/** + * Fetches an image. + */ +static int +sony_file_get(Camera * camera, int imageid, int file_type, + CameraFile * file, GPContext *context) +{ + int sc; /* count of bytes to skip at start of packet */ + Packet dp; + int rc; + char buffer[128]; + + GP_DEBUG( "sony_file_get()"); + + rc = sony_set_file_mode(camera, file_type); + if (rc != GP_OK) { + return rc; + } + + if (gp_context_cancel(context) == GP_CONTEXT_FEEDBACK_CANCEL) { + return GP_ERROR_CANCEL; + } + + rc = gp_file_clean(file); + if (rc == GP_OK) { + gp_file_set_mime_type (file, GP_MIME_JPEG); + /* The file name we specify here is not important, + * since the calling function, gp_filesystem_get_file_impl, + * overwrites it with the correct one. + */ + sprintf(buffer, SONY_FILE_NAME_FMT, imageid); + + sony_baud_set(camera, baud_rate); + + rc = sony_set_file_mode(camera, file_type); + if (rc == GP_OK) { + if (file_type == SONY_FILE_THUMBNAIL) { + sc = 0x247; + SelectImage[3] = (imageid >> 8); + SelectImage[4] = imageid & 0xff; + sony_converse(camera, &dp, SelectImage, 7); + + if (camera->pl->model + != SONY_MODEL_DSC_F55) { + gp_file_append(file, + "\xff\xd8\xff", 3); + } + + for (;;) { + if (gp_context_cancel(context) + == GP_CONTEXT_FEEDBACK_CANCEL) { + + rc = GP_ERROR_CANCEL; + break; + } + gp_context_idle(context); + + sony_converse(camera, &dp, + SendThumbnail, 4); + + gp_file_append(file, + (char *) dp.buffer + + sc, dp.length - sc); + sc = 7; + + if (3 == dp.buffer[4]) + break; + } + } else { + sc = 11; + + SendImage[3] = (imageid >> 8); + SendImage[4] = imageid; + sony_converse(camera, &dp, SendImage, 7); + + for (;;) { + if (gp_context_cancel(context) + == GP_CONTEXT_FEEDBACK_CANCEL) { + + rc = GP_ERROR_CANCEL; + break; + } + gp_context_idle(context); + + gp_file_append(file, + (char *) dp.buffer + + sc, dp.length - sc); + + if (file_type == SONY_FILE_EXIF) { + const char *fdata; + unsigned long fsize; + + gp_file_get_data_and_size + (file, &fdata, &fsize); + /* FIXME: 4096 is a rather */ + /* arbitrary value */ + if (fsize > 4096) + break; + } + + sc = 7; + + if (3 == dp.buffer[4]) + break; + + sony_converse(camera, &dp, + SendNextImagePacket, + 4); + } + } + } + sony_baud_set(camera, 9600); + + if (rc != GP_OK) { + gp_file_clean(file); + } + } + return rc; +} + +/** + * Fetches a thumbnail image. + */ +int +sony_thumbnail_get(Camera * camera, int imageid, CameraFile * file, GPContext *context) +{ + return sony_file_get(camera, imageid, SONY_FILE_THUMBNAIL, file, context); +} + +/** + * Fetches an image. + */ +int +sony_image_get(Camera * camera, int imageid, CameraFile * file, GPContext *context) +{ + return sony_file_get(camera, imageid, SONY_FILE_IMAGE, file, context); +} + +/** + * Fetches EXIF information. + */ +int +sony_exif_get(Camera * camera, int imageid, CameraFile * file, GPContext *context) +{ + return sony_file_get(camera, imageid, SONY_FILE_EXIF, file, context); +} + +/** + * Fetches an Mpeg. + */ +int +sony_mpeg_get(Camera * camera, int imageid, CameraFile * file, GPContext *context) +{ + return sony_file_get(camera, imageid, SONY_FILE_MPEG, file, context); +} + + +/** + * Fetches image details. + */ +int +sony_image_info(Camera * camera, int imageid, SonyFileType file_type, + CameraFileInfo * info, GPContext *context) +{ + unsigned int l = 0; + int rc; + Packet dp; + + rc = sony_set_file_mode(camera, file_type); + if (rc != GP_OK) { + return rc; + } + + if (gp_context_cancel(context) == GP_CONTEXT_FEEDBACK_CANCEL) { + return GP_ERROR_CANCEL; + } + + SelectImage[3] = (imageid >> 8); + SelectImage[4] = imageid & 0xff; + rc = sony_converse(camera, &dp, SelectImage, 7); + if (rc == GP_OK) { + l = (l << 8) | dp.buffer[16]; + l = (l << 8) | dp.buffer[17]; + l = (l << 8) | dp.buffer[18]; + l = (l << 8) | dp.buffer[19]; + + info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + info->file.size = l; + + info->preview.fields = GP_FILE_INFO_TYPE; + + if (file_type == SONY_FILE_MPEG) { + strcpy (info->file.type, GP_MIME_AVI); + } + else { + strcpy (info->file.type, GP_MIME_JPEG); + } + } + return rc; +} + + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/sony.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/sony.h new file mode 100644 index 00000000..c3c9b437 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sonydscf55/sony.h @@ -0,0 +1,76 @@ +/* Sony DSC-F55 & MSAC-SR1 - gPhoto2 camera library + * Copyright 2001, 2002, 2004 Raymond Penners + * Copyright 2000 Mark Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#ifndef SONY_H +#define SONY_H + +#define SONY_CAMERA_ID "sonydscf55" + +typedef enum { + SONY_MODEL_MSAC_SR1 = 0, + SONY_MODEL_DCR_PC100, + SONY_MODEL_TRV_20E, + SONY_MODEL_DSC_F55, + SONY_MODEL_SIZEOF +} SonyModel; + +#define SONY_FILE_NAME_FMT "dsc%05d.jpg" + +typedef struct _tagPacket { + int valid; + int length; + unsigned char buffer[16384]; + unsigned char checksum; +} Packet; + +struct _CameraPrivateLibrary { + unsigned short int sequence_id; + long current_baud_rate; + int current_mpeg_mode; + SonyModel model; +}; + + +typedef enum +{ + SONY_FILE_EXIF=0, + SONY_FILE_THUMBNAIL, + SONY_FILE_IMAGE, + SONY_FILE_MPEG +} SonyFileType; + +int sony_init(Camera * camera, SonyModel model); +int sony_exit(Camera * camera); +int sony_file_count(Camera * camera, SonyFileType file_type, int * count); +int sony_image_get(Camera * camera, int imageid, CameraFile * file, GPContext *context); +int sony_thumbnail_get(Camera * camera, int imageid, CameraFile * file, GPContext *context); +int sony_exif_get(Camera * camera, int imageid, CameraFile * file, GPContext *context); +int sony_mpeg_get(Camera * camera, int imageid, CameraFile * file, GPContext *context); +int sony_image_info(Camera * camera, int imageid, SonyFileType file_type, CameraFileInfo * info, GPContext *context); +int sony_file_name_get(Camera *camera, int imageid, SonyFileType file_type, char buf[13]); +int sony_is_mpeg_file_name(const char * file_name); + +#endif /* SONY_H */ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/BUGS b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/BUGS new file mode 100644 index 00000000..5aafbae1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/BUGS @@ -0,0 +1,12 @@ +Known Bugs: + +overall: +* Long timeout (and usb read error) on alternate runnings of gphoto2. + All attempts to track this down so far have failed. + +agfa-specific: + + +tiger-fastflicks specific: +* File upload for tiger doesn't work [even though it should]. +* Delete-all on tiger sometimes causes problems. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/ChangeLog new file mode 100644 index 00000000..0fd75626 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/ChangeLog @@ -0,0 +1,51 @@ +2003-06-14 Dan Fandrich + * soundvision.h: Include _stdint.h to get fixed-size integer types. + +2002-02-11 Vince Weaver + * Completely redid tiger support. Involved separating out + more functions from Agfa, extensive looking at usb-traces, etc. + delete and image-capture should now work on Tiger. File upload + should work but doesn't. + * All attempts to fix the stall upon + subsequent re-running of gphoto2 failed. It seems to be + somewhat arbitrary. Sometimes a reset helps, sometimes not. + * Agfa-CL18 should work more or less same as before. + * Cleaned up a lot of the code. + +2002-01-23 Vince Weaver + * Add Argus DC-2200 + +2002-01-16 Vince Weaver + * Add Pretec DC530 + * Bought an Oregon Scientific DShot III to help debug the Tiger class + cameras + +2002-01-15 Vince Weaver + + * Add strings for a handful of cameras. + +2002-12-30 Vince Weaver + + * Add strings for CoolCam/StarCam CP086 + +2002-11-29 Vince Weaver + + * Add usb id for Mustek gSmart 350 + +2002-11-05 Vince Weaver + + * Add strings for FujiFilm @xia iX-100 + +2002-10-24 Vince Weaver + + * Add usb-id for Scott APX 30. + +2002-10-21 Vince Weaver + + * Add usb-id's for RCA CDS1005, and some + name overloading for the Fastflicks driver. + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/Makefile-files new file mode 100644 index 00000000..459dfe5d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/Makefile-files @@ -0,0 +1,15 @@ +# -*- Makefile -*- + +EXTRA_DIST += soundvision/README.soundvision soundvision/BUGS soundvision/ChangeLog +camlibdoc_DATA += soundvision/README.soundvision + +EXTRA_LTLIBRARIES += soundvision.la + +soundvision_la_SOURCES = \ + soundvision/soundvision.c soundvision/agfa_cl18.c \ + soundvision/tiger_fastflicks.c \ + soundvision/commands.c soundvision/commands.h \ + soundvision/soundvision.h +soundvision_la_LDFLAGS = $(camlib_ldflags) +soundvision_la_DEPENDENCIES = $(camlib_dependencies) +soundvision_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/README.soundvision b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/README.soundvision new file mode 100644 index 00000000..1bdc04a9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/README.soundvision @@ -0,0 +1,41 @@ +This directory contains drivers for camerase that use the +Sound Vision Inc (http://www.soundvisioninc.com) +"Clarity 2" Chipset. + +The Agfa ePhoto CL18 type cameras are an earlier design known +as the "1307" which support 640x480 and USB only. + +The Tiger FastFlicks type design is the "V1 Low-Cost Dual Mode VGA +Digital Camera" which can do many resolutions, short MOV movies, +and complact-flash of a sort. + +Sound Vision licences the design to many companys, hence +the wide variety of brands supported by this driver. + +Sound Vision refuses to release documentation, so this driver is based +entirely on reverse-engineering USB transactions. + +List of Cameras known to work with this driver: + + Agfa ePhoto CL18 + Mustek gSmart 350 + + RCA CDS1005 + Ixla DualCam 640 + + Argus:DC-2200 + CoolCam CP086 + FujiFilm @xia iX-100 (or "Axia ix-100") + Media-Tech mt-406 + Oregon Scientific DShot II + Oregon Scientific DShot III + Scott APX 30 + StarCam CP086 + Tiger Fast Flicks + +Cameras that might work with the proper USB ID's or are unverified to work: + + Digital Dreams l'elite + Eye Q3X Digital + Polaroid MP3 + Pretec DC530 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/agfa_cl18.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/agfa_cl18.c new file mode 100644 index 00000000..d8cfdb9e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/agfa_cl18.c @@ -0,0 +1,348 @@ +/* + * agfa_cl18.c + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * Command set specific to agfa-ephoto-CL18 + * + * Copyright 2001-2002 Vince Weaver + */ +#include "config.h" + +#include +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include +#include "gphoto2-endian.h" + +#include "soundvision.h" +#include "commands.h" + +#define GP_MODULE "soundvision" + + /* Below contributed by Ben Hague */ +int agfa_capture(CameraPrivateLibrary *dev, CameraFilePath *path) { + /*FIXME: Not fully implemented according to the gphoto2 spec.*/ + /*Should also save taken picture, and then delete it from the camera*/ + /*but when I try to do that it just hangs*/ + + int ret; + + ret=soundvision_send_command(SOUNDVISION_SETPC1,0,dev); + if (ret < 0) return ret; + ret=soundvision_send_command(SOUNDVISION_SETPC2,0,dev); + if (ret < 0) return ret; + ret=soundvision_send_command(SOUNDVISION_TAKEPIC3,0,dev); + if (ret < 0) return ret; + ret=soundvision_send_command(SOUNDVISION_SETPC2,0,dev); + if (ret < 0) return ret; + + /*Not sure if this delay is necessary, but it was used in the windows driver*/ + /*delay(20); */ + sleep(20); + /*Again, three times in windows driver*/ + soundvision_photos_taken(dev); + soundvision_photos_taken(dev); + soundvision_photos_taken(dev); + /*This seems to do some kind of reset, but does cause the camera to start responding again*/ + ret=soundvision_send_command(SOUNDVISION_GET_NAMES, 0, dev); + if (ret < 0) return ret; + + return GP_OK; +} + + /* Seems to work OK though sometimes camera is left in */ + /* unknown state after completing */ + /* thanks to heathhey3@hotmail.com for sending me the trace */ + /* to implement this */ +int agfa_delete_picture(CameraPrivateLibrary *dev, const char *filename) { + + int32_t ret,temp,taken; + uint8_t data[4],*buffer; + uint32_t size=4,buflen; + + /* yes, we do this twice?? */ + taken=soundvision_photos_taken(dev); + taken=soundvision_photos_taken(dev); + + ret = soundvision_send_command(SOUNDVISION_GET_PIC_SIZE,0,dev); + if (ret<0) return ret; + + /* always returns ff 0f 00 00 ??? */ + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) return ret; + + /* Some traces show sending other than the file we want deleted? */ + ret=soundvision_send_file_command(filename,dev); + if (ret<0) return ret; + + ret = soundvision_read(dev, data, size); + if (ret<0) return ret; + + /* Check num taken AGAIN */ + taken=soundvision_photos_taken(dev); + + ret = soundvision_send_command(SOUNDVISION_GET_PIC_SIZE,0,dev); + if (ret<0) return ret; + + /* always returns ff 0f 00 00 ??? */ + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) return ret; + + ret=soundvision_send_file_command(filename,dev); + if (ret<0) return ret; + + ret = soundvision_read(dev, data, size); + if (ret<0) return ret; + + /* Check num taken AGAIN */ + taken=soundvision_photos_taken(dev); + + ret=soundvision_send_command(SOUNDVISION_DELETE,0,dev); + if (ret<0) return ret; + + /* read ff 0f ??? */ + ret = soundvision_read(dev, data, size); + if (ret<0) return ret; + + ret = soundvision_send_file_command(filename,dev); + if (ret<0) return ret; + + /* This is the point we notices that in fact a pic is missing */ + /* Why do it 4 times??? Timing?? Who knows */ + taken=soundvision_photos_taken(dev); + taken=soundvision_photos_taken(dev); + taken=soundvision_photos_taken(dev); + taken=soundvision_photos_taken(dev); + + buflen = (taken * 13)+1; /* 12 char filenames and space for each */ + /* plus trailing NULL */ + buffer = malloc(buflen); + + if (!buffer) { + GP_DEBUG("Could not allocate %i bytes!", + buflen); + return (GP_ERROR_NO_MEMORY); + } + + ret=soundvision_send_command(SOUNDVISION_GET_NAMES, buflen,dev); + if (ret < 0) { + free(buffer); + return ret; + } + + ret = soundvision_read(dev, (void *)buffer, buflen); + if (ret < 0) { + free(buffer); + return ret; + } + + if (dev->file_list) free(dev->file_list); + dev->file_list = (char *)buffer; + + ret=soundvision_send_command(SOUNDVISION_GET_PIC_SIZE,0,dev); + if (ret<0) return ret; + + /* always returns ff 0f 00 00 ??? */ + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) return ret; + + ret=soundvision_send_file_command(filename,dev); + if (ret<0) return ret; + + ret = soundvision_read(dev, data, size); + if (ret<0) return ret; + + return GP_OK; + +} + + + +int agfa_get_file_list(CameraPrivateLibrary *dev) { + + char *buffer; + int32_t ret, taken, buflen,i; + + + /* It seems we need to do a "reset" packet before reading names?? */ + + soundvision_reset(dev,NULL,NULL); + + if ( (taken=soundvision_photos_taken(dev)) < 0) + return taken; + + dev->num_pictures = taken; + + + buflen = (taken * 13)+1; /* 12 char filenames and space for each */ + /* plus trailing NULL */ + + buffer = malloc(buflen); + + if (!buffer) { + GP_DEBUG("Could not allocate %i bytes!", + buflen); + return GP_ERROR_NO_MEMORY; + } + + ret=soundvision_send_command(SOUNDVISION_GET_NAMES, buflen, dev); + if (ret < 0) { + free(buffer); + return ret; + } + + ret = soundvision_read(dev, (void *)buffer, buflen); + if (ret < 0) { + free(buffer); + return ret; + } + if (ret < buflen) { + free (buffer); + return GP_ERROR_CORRUPTED_DATA; + } + + if (dev->file_list) free(dev->file_list); + + dev->file_list = malloc(taken * 13); + if (!dev->file_list) { + GP_DEBUG("Could not allocate %i bytes!", + taken*13); + free(buffer); + return (GP_ERROR_NO_MEMORY); + } + + for(i=0;ifile_list, buffer, taken * 13); + free(buffer); + +#if 0 + taken=soundvision_photos_taken(dev); + soundvision_get_thumb_size(dev,dev->file_list); +#endif + return GP_OK; +} + +int agfa_get_pic(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size) { + + int32_t ret,temp; + + ret = soundvision_send_command(SOUNDVISION_GET_PIC,0,dev); + if (ret<0) return ret; + + /* always returns ff 0f 00 00 ??? */ + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) return ret; + + ret=soundvision_send_file_command(filename,dev); + if (ret<0) return ret; + + ret = soundvision_read(dev, data, size); + if (ret<0) return ret; + +#if 0 + /* Have to do this after getting pic ? */ + ret=soundvision_send_command(SOUNDVISION_DONE_PIC,0,dev); + if (ret<0) return ret; +#endif + + return GP_OK; + +} + +int agfa_get_pic_size(CameraPrivateLibrary *dev, const char *filename) { + + int32_t ret,temp; + uint32_t size; + + ret=soundvision_send_command(SOUNDVISION_GET_PIC_SIZE,0,dev); + if (ret<0) return ret; + + /* always returns ff 0f 00 00 ??? */ + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) return ret; + + ret=soundvision_send_file_command(filename,dev); + if (ret<0) return ret; + + ret = soundvision_read(dev, &size, sizeof(size)); + if (ret<0) return ret; + + return le32toh(size); + +} + + +int agfa_get_thumb_size(CameraPrivateLibrary *dev, const char *filename) { + + int32_t ret,temp; + uint32_t size; + + ret=soundvision_send_command(SOUNDVISION_GET_THUMB_SIZE,0,dev); + if (ret<0) return ret; + + /* always returns ff 0f 00 00 ??? */ + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) return ret; + + ret = soundvision_send_file_command(filename,dev); + if (ret<0) return ret; + + ret = soundvision_read(dev, &size, sizeof(size)); + if (ret<0) return ret; + + return le32toh(size); + +} + +int agfa_get_thumb(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size) { + + int32_t ret,temp; + + ret = soundvision_send_command(SOUNDVISION_GET_THUMB,0,dev); + if (ret<0) return ret; + + /* always returns ff 0f 00 00 ??? */ + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) return ret; + + ret=soundvision_send_file_command(filename,dev); + if (ret<0) return ret; + + ret = soundvision_read(dev, data, size); + if (ret<0) return ret; +#if 0 + /* Is this needed? */ + soundvision_photos_taken(dev,&ret); + + ret=soundvision_send_command(SOUNDVISION_END_OF_THUMB,0,dev); + if (ret<0) return ret; + + ret = soundvision_read(dev, temp_string, 8); + if (ret<0) return ret; +#endif + + return GP_OK; + +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/commands.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/commands.c new file mode 100644 index 00000000..7a809bed --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/commands.c @@ -0,0 +1,250 @@ +/* + * commands.c + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * + * Command set for the soundvision cameras + * + * Copyright 2001-2003 Vince Weaver + */ + +#include "config.h" + +#include +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include +#include "gphoto2-endian.h" + +#include "soundvision.h" +#include "commands.h" + +#define GP_MODULE "soundvision" + + /* Regular commands always 8 bytes long */ +int32_t soundvision_send_command(uint32_t command, uint32_t argument, + CameraPrivateLibrary *dev) { + + uint8_t cmd[12]; + int result; + + htole32a(&cmd[0],8); /* Length "8" in little-endian 32bits */ + htole32a(&cmd[4],command); /* Command is a little-endian 32bits */ + htole32a(&cmd[8],argument); /* Argument is a little-endian 32bits */ + + result=gp_port_write(dev->gpdev,(char *)&cmd,sizeof(cmd)); + if (result<0) return result; + return GP_OK; +} + + /* Filenames are always 12 bytes long */ +int32_t soundvision_send_file_command(const char *filename, + CameraPrivateLibrary *dev) { + char file_cmd[16]; + + htole32a(&file_cmd[0],0xc); /* Length is 12 little-endian 32 bits */ + strncpy(&file_cmd[4],filename,12); /* Filename is 12 bytes at the end */ + return gp_port_write (dev->gpdev, file_cmd, sizeof(file_cmd)); +} + + /* USB-only */ +int32_t soundvision_read(CameraPrivateLibrary *dev, void *buffer, int len) { + + return gp_port_read(dev->gpdev, buffer, len); +} + + + /* Reset the camera */ +int soundvision_reset(CameraPrivateLibrary *dev,char *revision, char *status) { + + int ret,attempts=0; + +retry_reset: + + /* This prevents lockups on tiger !!!! */ + ret=soundvision_send_command(SOUNDVISION_START_TRANSACTION,0,dev); + if (ret<0) goto reset_error; + + /* First get firmware revision */ + ret=soundvision_get_revision(dev,revision); + + /* If camera out of whack, this is where it will hang */ + /* If we retry a few times usually after a few timeouts */ + /* It will get going again */ + if (ret<0) { + if (attempts<2) { + attempts++; + goto retry_reset; + } + else goto reset_error; + } + + + /* Dshot 3 camera does 2 extra steps */ + /* Seems to enable extra info in status */ + /* What does it do? It works w/o it */ + /* And other tiger cameras might not */ + /* need it. */ +#if 0 + if (dev->device_type==SOUNDVISION_TIGERFASTFLICKS) { + + char result[12]; + + /* What does 0x405 signify? */ + ret=soundvision_send_command(SOUNDVISION_SETPC2,0x405,dev); + if (ret<0) goto reset_error; + + ret=soundvision_send_command(SOUNDVISION_INIT2,0,dev); + if (ret<0) goto reset_error; + + /* Read returned value. Why 0x140,0xf,0x5 ? */ + ret = soundvision_read(dev, &result, sizeof(result)); + if (ret<0) goto reset_error; + } +#endif + + /* Read the status registers */ + dev->reset_times++; + + if (dev->device_type!=SOUNDVISION_IXLA) { + ret=soundvision_get_status(dev,status); + if (ret<0) goto reset_error; + } + + return GP_OK; + +reset_error: + + GP_DEBUG("Error in soundvision_reset\n"); + return ret; + +} + +int soundvision_get_revision(CameraPrivateLibrary *dev, char *revision) { + + int ret; + char version[9]; + + ret = soundvision_send_command(SOUNDVISION_GET_VERSION,0,dev); + if (ret<0) return ret; + + ret = soundvision_read(dev, &version, sizeof(version)-1); + if (ret<0) return ret; + + /* If null we don't care */ + if (revision!=NULL) { + strncpy(revision,version,8); + revision[8]=0; + } + + return GP_OK; +} + + + /* Status is a 96 byte array. */ + /* Haven't been able to decode it yet */ + /* It changes with every read though */ +int soundvision_get_status(CameraPrivateLibrary *dev, char *status) { + + uint8_t ss[0x60]; + int32_t ret; + + ret=soundvision_send_command(SOUNDVISION_STATUS, 0, dev); + if (ret < 0) goto get_status_error; + + ret = soundvision_read(dev, (unsigned char *)&ss, sizeof(ss)); + if (ret < 0) goto get_status_error; + + if (status!=NULL) { + memcpy(status,ss,0x60); + } + + return GP_OK; + +get_status_error: + GP_DEBUG("Error getting camera status\n"); + return ret; + +} + +int soundvision_photos_taken(CameraPrivateLibrary *dev) { + + int32_t ret; + uint32_t numpics; + + ret=soundvision_send_command(SOUNDVISION_GET_NUM_PICS, 0, dev); + if (ret < 0) goto error_photos_taken; + + ret = soundvision_read(dev, &numpics, sizeof(numpics)); + if (ret < 0) goto error_photos_taken; + + return le32toh(numpics); + +error_photos_taken: + GP_DEBUG("Error getting number of photos taken.\n"); + return ret; +} + +int soundvision_get_file_list(CameraPrivateLibrary *dev) { + if (dev->device_type==SOUNDVISION_TIGERFASTFLICKS) + return tiger_get_file_list(dev); + else + return agfa_get_file_list(dev); +} + +int soundvision_get_thumb_size(CameraPrivateLibrary *dev, const char *filename) { + if (dev->device_type==SOUNDVISION_TIGERFASTFLICKS) + return tiger_get_thumb_size(dev,filename); + else + return agfa_get_thumb_size(dev,filename); +} + +int soundvision_get_thumb(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size) { + if (dev->device_type==SOUNDVISION_TIGERFASTFLICKS) + return tiger_get_thumb(dev,filename,data,size); + else + return agfa_get_thumb(dev,filename,data,size); +} + +int soundvision_get_pic_size(CameraPrivateLibrary *dev, const char *filename) { + if (dev->device_type==SOUNDVISION_TIGERFASTFLICKS) + return tiger_get_pic_size(dev,filename); + else + return agfa_get_pic_size(dev,filename); +} + +int soundvision_get_pic(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size) { + if (dev->device_type==SOUNDVISION_TIGERFASTFLICKS) + return tiger_get_pic(dev,filename,data,size); + else + return agfa_get_pic(dev,filename,data,size); +} + +int soundvision_delete_picture(CameraPrivateLibrary *dev, const char *filename) { + if (dev->device_type==SOUNDVISION_TIGERFASTFLICKS) + return tiger_delete_picture(dev,filename); + else + return agfa_delete_picture(dev,filename); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/commands.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/commands.h new file mode 100644 index 00000000..d79dbd0f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/commands.h @@ -0,0 +1,31 @@ +/* + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef commands_H +#define commands_H + + +int32_t soundvision_send_command(uint32_t command, uint32_t argument, + CameraPrivateLibrary *dev); + +int32_t soundvision_send_file_command(const char *filename, + CameraPrivateLibrary *dev); + +int32_t soundvision_read(CameraPrivateLibrary *dev, void *buffer, int len); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/soundvision.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/soundvision.c new file mode 100644 index 00000000..577ff490 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/soundvision.c @@ -0,0 +1,514 @@ +/* + * soundvision.c + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * + * For cameras using the Clarity2 chip made by Soundvision Inc. + * Made entirely w/o Soundvision's help. They would not give + * documentation. Reverse-engineered from usb-traces. + * + * Copyright 2002-2003 Vince Weaver + * + * Originally based on the digita driver + * Copyright 1999-2000 Johannes Erdfelt, VA Linux Systems + */ + +#include "config.h" + +#include +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "soundvision.h" + +#include + +#define GP_MODULE "soundvision" + +static const struct { + char *name; + unsigned short idVendor; + unsigned short idProduct; + char serial; +} models[] = { + {"Agfa:ePhoto CL18",0x06bd,0x0403,0}, + + {"Mustek:gSmart 350",0x055f,0xa350,0}, + + {"RCA:CDS1005",0x0784,0x0100,0}, + {"Ixla:DualCam 640",0x0784,0x0100,0}, + + {"Pretec:dc530",0x0784,0x5300,0}, + + {"Generic SoundVision:Clarity2",0x0919,0x100,0}, + {"Argus:DC-2200",0x0919,0x100,0}, + {"CoolCam:CP086",0x0919,0x100,0}, + {"DigitalDream:l'elite",0x0919,0x0100,0}, + {"FujiFilm:@xia ix-100",0x0919,0x0100,0}, + {"Media-Tech:mt-406",0x0919,0x0100,0}, + {"Oregon Scientific:DShot II",0x0919,0x0100,0}, + {"Oregon Scientific:DShot III",0x0919,0x0100,0}, + {"Scott:APX 30",0x0919,0x0100,0}, + {"StarCam:CP086",0x0919,0x100,0}, + {"Tiger:Fast Flicks",0x0919,0x0100,0}, + {NULL,0,0,0} +}; + +int camera_id(CameraText *id) { + + strcpy(id->text, "soundvision"); + + return GP_OK; +} + + +int camera_abilities(CameraAbilitiesList *list) { + + int i; + CameraAbilities a; + + for(i=0; models[i].name; i++) { + memset(&a, 0, sizeof(a)); + strcpy(a.model, models[i].name); + + /* Agfa and Dshot types owned by author and tested */ + /* Others the testing not quite certain */ + if ( (models[i].idVendor==0x06bd) || (models[i].idVendor==0x0919)) + a.status = GP_DRIVER_STATUS_PRODUCTION; + else + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + + /* For now all are USB. Have the spec for Serial */ + /* If ever one shows up */ + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + + /* All should support image capture */ + a.operations = GP_OPERATION_CAPTURE_IMAGE; + + /* Folders not supported on any */ + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + a.file_operations = GP_FILE_OPERATION_PREVIEW | + GP_FILE_OPERATION_DELETE; + /* Dshot compat can upload files */ + if (models[i].idVendor == 0x0919) { + a.file_operations|=GP_FOLDER_OPERATION_PUT_FILE; + } + + + gp_abilities_list_append(list, a); + } + return GP_OK; +} + +static int camera_exit (Camera *camera, GPContext *context) { + + GP_DEBUG("MAKE ME GP_DEBUG Reset: %i pics: %i odd_command: %i\n", + camera->pl->reset_times, + camera->pl->num_pictures, + camera->pl->odd_command); + + /* We _must_ reset an even number of times ?? */ + /* It's more complicated than that. *sigh* */ + if (camera->pl->reset_times==1) { + soundvision_reset (camera->pl,NULL,NULL); +#if 0 + /* Odd number of pics */ + if (camera->pl->num_pictures%2==1) { + if (!camera->pl->odd_command) + soundvision_reset (camera->pl,NULL,NULL); + } + else { + if (camera->pl->odd_command) + soundvision_reset (camera->pl,NULL,NULL); + } +#endif + } + + + if (camera->pl) { + if (camera->pl->file_list) { + free(camera->pl->file_list); + camera->pl->file_list = NULL; + } + free(camera->pl); + camera->pl = NULL; + } + + return GP_OK; +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) { + + Camera *camera=data; + int i; + char temp_file[14]; + + GP_DEBUG ("camera_file_list %s\n", folder); + + if (soundvision_get_file_list(camera->pl) < 0) { + GP_DEBUG ("Could not soundvision_file_list!"); + return GP_ERROR; + } + + for(i=0; i < camera->pl->num_pictures; i++) { + strncpy(temp_file,camera->pl->file_list+(13*i),12); + temp_file[12]=0; + gp_list_append (list, temp_file, NULL); + } + return GP_OK; +} + + +static int soundvision_file_get (Camera *camera, const char *filename, int thumbnail, + unsigned char **data, int *size) { + + int buflen,throwaway,result; + + if (thumbnail) GP_DEBUG( "Getting thumbnail '%s'...",filename); + else GP_DEBUG( "Getting file '%s'...",filename); + + if (camera->pl->device_type==SOUNDVISION_TIGERFASTFLICKS) { + result=tiger_set_pc_mode(camera->pl); + if (thumbnail) buflen=soundvision_get_thumb_size(camera->pl,filename); + else buflen=soundvision_get_pic_size(camera->pl,filename); + if (buflen < 0) return buflen; + } else { + soundvision_reset(camera->pl,NULL,NULL); + + /* Always have to check num photos, + * then pic size no matter what. Otherwise + * the camera will stop responding + */ + throwaway=soundvision_photos_taken(camera->pl); + if (throwaway<0) { + result=throwaway; + goto file_get_error; + } + + + /* The below two lines might look wrong, but they aren't! */ + buflen = soundvision_get_pic_size(camera->pl,filename); + if (thumbnail) buflen=soundvision_get_thumb_size(camera->pl,filename); + if (buflen < 0) return buflen; + } + + + + + /* Don't try to download if size equals zero! */ + if (buflen) { + + *data = malloc(buflen+1); + + if (!*data) { + result=GP_ERROR_NO_MEMORY; + goto file_get_error; + } + + memset(*data, 0, buflen); + + if (thumbnail) { + result=soundvision_get_thumb(camera->pl, filename, *data, buflen); + if (result < 0) { + GP_DEBUG("soundvision_get_thumb_failed!"); + goto file_get_error; + } + } + else { + result=soundvision_get_pic(camera->pl, filename, *data, buflen); + if (result < 0) { + GP_DEBUG("soundvision_get_pic_failed!"); + goto file_get_error; + } + } + + if (size) + *size = buflen; + } + + return GP_OK; + +file_get_error: + + if (*data!=NULL) free(*data); + return result; +} + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, + GPContext *context) { + char *pos; + + Camera *camera = user_data; + unsigned char *data = NULL; + int size,ret; + + switch (type) { + case GP_FILE_TYPE_NORMAL: + ret=soundvision_file_get(camera, filename, 0, &data, &size); + if (ret<0) return ret; + break; + case GP_FILE_TYPE_PREVIEW: + ret=soundvision_file_get(camera, filename, 1, &data, &size); + if (ret<0) return ret; + break; + default: + return GP_ERROR_NOT_SUPPORTED; + } + + if (!data) return GP_ERROR; + + gp_file_set_data_and_size (file, (char *)data, size); + /* Maybe skip below if EXIF data present? */ + + /* As far as I know we only support JPG and MOV */ + /* Maybe some have MP3??? */ + pos=strchr (filename, '.'); + if (pos) { + if ((!strcmp(pos,".JPG")) || ((!strcmp(pos,".jpg")))) + gp_file_set_mime_type (file, GP_MIME_JPEG); + else if (!strcmp(pos,".MOV")) + gp_file_set_mime_type (file, GP_MIME_QUICKTIME); + else + gp_file_set_mime_type (file, GP_MIME_UNKNOWN); + } + + return GP_OK; +} + +static int camera_summary(Camera *camera, CameraText *summary, + GPContext *context) { + + char revision[9]; + + revision[0]=0; + soundvision_reset(camera->pl,revision,NULL); + + if (camera->pl->device_type==SOUNDVISION_TIGERFASTFLICKS) { + int mem_total,mem_free,num_pics, ret; + + ret = tiger_get_mem(camera->pl,&num_pics,&mem_total,&mem_free); + if (ret < GP_OK) + return ret; + + sprintf(summary->text, _("Firmware Revision: %8s\n" + "Pictures: %i\n" + "Memory Total: %ikB\n" + "Memory Free: %ikB\n"), + revision,num_pics,mem_total,mem_free); + } else { + sprintf(summary->text, _("Firmware Revision: %8s"), revision); + } + return GP_OK; +} + +static int camera_about(Camera *camera, CameraText *about, GPContext *context) { + + strcpy(about->text, _("Soundvision Driver\nVince Weaver \n")); + + return GP_OK; +} + + + /* Below contributed by Ben Hague */ +static int camera_capture (Camera *camera, CameraCaptureType type, + CameraFilePath *path, GPContext *context) { + + int result; + + if (camera->pl->device_type==SOUNDVISION_AGFACL18) + result=agfa_capture(camera->pl,path); + else if (camera->pl->device_type==SOUNDVISION_TIGERFASTFLICKS) { + result=tiger_capture(camera->pl,path); + } + else return GP_ERROR_NOT_SUPPORTED; + + if (result < GP_OK) + return result; + + soundvision_get_file_list(camera->pl); + + /* For some reason last taken picture is first on tiger? */ + /* Might be last on Agfa. Who knows. Craziness. */ + if (camera->pl->num_pictures<1) return GP_ERROR; + + strcpy (path->name,camera->pl->file_list); + strcpy (path->folder, "/"); +/* gp_filesystem_append (camera->fs, path->folder, + path->name, context);*/ + return GP_OK; +} + + +static int delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, + GPContext *context) { + + Camera *camera = data; + + GP_DEBUG("Deleting '%s' in '%s'...",filename,folder); + + soundvision_delete_picture(camera->pl,filename); + + /* Update our file list */ + if (soundvision_get_file_list(camera->pl)<0) return GP_ERROR; + + return GP_OK; +} + + +static int put_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, GPContext *context) { + + Camera *camera=data; + const char *data_file; + long unsigned int data_size; + + /* + * Upload the file to the camera. Use gp_file_get_data_and_size, etc. + */ + GP_DEBUG ("*** put_file_func"); + GP_DEBUG ("*** folder: %s", folder); + GP_DEBUG ("*** filename: %s", filename); + + gp_file_get_data_and_size (file, &data_file, &data_size); + if ( data_size == 0) { + gp_context_error (context, + _("The file to be uploaded has a null length")); + return GP_ERROR_BAD_PARAMETERS; + } + + /* Should check memory here */ + + /* if (available_memory < data_size) { + gp_context_error (context, + _("Not enough memory available on the memory card")); + return GP_ERROR_NO_MEMORY; + } + */ + + tiger_upload_file (camera->pl, filename,data_file,data_size); + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .put_file_func = put_file_func, + .del_file_func = delete_file_func, +}; + +int camera_init(Camera *camera, GPContext *context) { + + GPPortSettings settings; + CameraAbilities a; + int ret = 0; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->capture = camera_capture; + + GP_DEBUG ("Initializing the camera\n"); + + switch (camera->port->type) { + case GP_PORT_USB: + ret=gp_port_get_settings(camera->port,&settings); + if (ret<0) return ret; + + /* Use the defaults the core parsed */ + + ret=gp_port_set_settings(camera->port,settings); + if (ret<0) return ret; + break; + + case GP_PORT_SERIAL: + return GP_ERROR_IO_SUPPORTED_SERIAL; + default: + return GP_ERROR_NOT_SUPPORTED; + } + + + + /* Set up camera private library */ + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) return (GP_ERROR_NO_MEMORY); + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + camera->pl->gpdev = camera->port; + + + /* Set up the sub-architectures */ + /* Default to Agfa. Should we default otherwise? */ + camera->pl->device_type=SOUNDVISION_AGFACL18; + gp_camera_get_abilities (camera, &a); + + if ((a.usb_vendor==0x0919) && (a.usb_product==0x0100)) { + camera->pl->device_type=SOUNDVISION_TIGERFASTFLICKS; + } + + if ((a.usb_vendor==0x0784) && (a.usb_product==0x0100)) { + camera->pl->device_type=SOUNDVISION_IXLA; + } + + + + + + /* Keep track. We _must_ reset an even number of times */ + camera->pl->reset_times=0; + camera->pl->odd_command=0; + + /* Reset the camera */ + ret = soundvision_reset (camera->pl,NULL,NULL); + if (ret < 0) { + free (camera->pl); + camera->pl = NULL; + return (ret); + } + /* Tell the CameraFilesystem where to get lists from */ + return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/soundvision.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/soundvision.h new file mode 100644 index 00000000..a0d4580e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/soundvision.h @@ -0,0 +1,121 @@ +/* + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#ifndef soundvision_H +#define soundvision_H + +#include <_stdint.h> + +#define SOUNDVISION_START_TRANSACTION 0x0001 + +#define SOUNDVISION_SETPC2 0x0004 + +#define SOUNDVISION_GET_MEM_TOTAL 0x0065 + +#define SOUNDVISION_GET_MEM_FREE 0x0069 + +#define SOUNDVISION_TAKEPIC3 0x0092 + +#define SOUNDVISION_SETPC1 0x0094 + +#define SOUNDVISION_DELETE 0x0100 +#define SOUNDVISION_GET_PIC 0x0101 +#define SOUNDVISION_GET_PIC_SIZE 0x0102 +#define SOUNDVISION_GET_NUM_PICS 0x0103 + +#define SOUNDVISION_DELETE_ALL2 0x0105 +#define SOUNDVISION_GET_VERSION 0x0106 + +#define SOUNDVISION_GET_NAMES 0x0108 +#define SOUNDVISION_PUT_FILE 0x0109 +#define SOUNDVISION_GET_THUMB_SIZE 0x010A +#define SOUNDVISION_GET_THUMB 0x010B + +#define SOUNDVISION_STATUS 0x0114 +#define SOUNDVISION_INIT2 0x0115 + +#define SOUNDVISION_DONE_TRANSACTION 0x01FF + +#define SOUNDVISION_AGFACL18 0 +#define SOUNDVISION_TIGERFASTFLICKS 1 +#define SOUNDVISION_IXLA 2 + +struct _CameraPrivateLibrary { + GPPort *gpdev; + + int device_type; + int reset_times,odd_command; + int num_pictures; + char *file_list; + +}; + +/* commands.c */ +int32_t soundvision_send_command(uint32_t command, uint32_t argument, + CameraPrivateLibrary *dev); +int soundvision_reset(CameraPrivateLibrary *dev, char *revision, char *status); + +int soundvision_get_revision(CameraPrivateLibrary *dev,char *revision); + + +int soundvision_get_status(CameraPrivateLibrary *dev, char *status); + +int soundvision_photos_taken(CameraPrivateLibrary *dev); + +int soundvision_get_file_list(CameraPrivateLibrary *dev); + +int soundvision_delete_picture(CameraPrivateLibrary *dev, const char *filename); + +int soundvision_get_thumb_size(CameraPrivateLibrary *dev, const char *filename); +int soundvision_get_thumb(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size); +int soundvision_get_pic_size(CameraPrivateLibrary *dev, const char *filename); +int soundvision_get_pic(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size); + +/* agfa_cl18.c */ + +int agfa_capture(CameraPrivateLibrary *dev, CameraFilePath *path); +int agfa_delete_picture(CameraPrivateLibrary *dev, const char *filename); +int agfa_get_file_list(CameraPrivateLibrary *dev); +int agfa_get_pic(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size); +int agfa_get_pic_size(CameraPrivateLibrary *dev, const char *filename); +int agfa_get_thumb(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size); +int agfa_get_thumb_size(CameraPrivateLibrary *dev, const char *filename); + + + + + + +/* tiger_fastflicks.c */ +int tiger_set_pc_mode(CameraPrivateLibrary *dev); +int tiger_upload_file(CameraPrivateLibrary *dev, const char *filename, + const char *data, long data_size); +int tiger_delete_picture(CameraPrivateLibrary *dev, const char *filename); +int tiger_capture(CameraPrivateLibrary *dev, CameraFilePath *path); +int tiger_get_mem(CameraPrivateLibrary *dev, int *num_pics, int *mem_total, int *mem_free); +int tiger_get_file_list(CameraPrivateLibrary *dev); +int tiger_get_pic(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size); +int tiger_get_pic_size(CameraPrivateLibrary *dev, const char *filename); +int tiger_get_thumb(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size); +int tiger_get_thumb_size(CameraPrivateLibrary *dev, const char *filename); +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/tiger_fastflicks.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/tiger_fastflicks.c new file mode 100644 index 00000000..9b28452f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/soundvision/tiger_fastflicks.c @@ -0,0 +1,476 @@ +/* + * tiger_fastflicks.c + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * + * Commands specific to soundvision camears with usbid + * 0x0919:0x0100 and possibly others. + * + * Tiger FastFlicks was first camera of this type + * to be supported. + * + * Initial Support added by Dr. William Bland + * Other help from Adrien Hernot + * + * Vince Weaver got such a camera in Jan 2003 and massively + * re-wrote things. + * + * Copyright 2002-2003 Vince Weaver + */ + +/* Routines for the 0x919:0x100 cameras that aren't compatible */ +/* with the others go in this file */ + +#include "config.h" + +#include +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include +#include "gphoto2-endian.h" + +#include "soundvision.h" +#include "commands.h" + +#define GP_MODULE "soundvision" + + + /* Used at start of most tiger commands. Also */ + /* Seems to set the camera into "PC" mode */ +int tiger_set_pc_mode(CameraPrivateLibrary *dev) { + + int result; + + GP_DEBUG("tiger_set_pc_mode"); + + result=soundvision_send_command(SOUNDVISION_START_TRANSACTION,0,dev); + if (result<0) goto set_pc_error; + + result=soundvision_get_revision(dev,NULL); + if (result<0) goto set_pc_error; + + result=soundvision_send_command(SOUNDVISION_SETPC1,0,dev); + if (result<0) goto set_pc_error; + + result=soundvision_send_command(SOUNDVISION_SETPC2,0,dev); + if (result<0) goto set_pc_error; + + return GP_OK; + +set_pc_error: + return result; +} + + + + + /* This is packet-for-packet what windows does */ + /* The camera takes it all in stride. */ + /* Yet uploaded file never appears. Why?? */ +int tiger_upload_file(CameraPrivateLibrary *dev, + const char *filename, + const char *data, + long size) { + int result=0; + char return_value[4]; + + uint32_t our_size; + char *our_data=NULL; + + /* When we upload, the first 3 bytes are little-endian */ + /* File-size followed by the actual file */ + our_size=size+4; + our_data=calloc(our_size,sizeof(char)); + if (our_data==NULL) { + goto upload_error; + } + + htole32a(&our_data[0],size); + memcpy(our_data+4,data,size); + + + GP_DEBUG("File: %s Size=%ld\n",filename,size); +/* for(result=0;resultgpdev,our_data,our_size); + if (result<0) goto upload_error; + + free(our_data); + our_data=NULL; + +#if 0 + /* Some traces show the following, though most likely */ + /* this is just the windows driver updating the file list */ + + result=soundvision_photos_taken(dev); + result=soundvision_get_file_list(dev); + + result=soundvision_send_command(SOUNDVISION_GET_PIC_SIZE,0,dev); + if (result<0) goto upload_error; + + result=soundvision_read(dev, &return_value, sizeof(return_value)); + if (result<0) goto upload_error; + + result=soundvision_send_file_command("000VINCE.JPG",dev); + + result=soundvision_read(dev, &return_value, sizeof(return_value)); + if (result<0) goto upload_error; + + result=soundvision_send_command(SOUNDVISION_DONE_TRANSACTION,0,dev); + if (result<0) goto upload_error; +#endif + return GP_OK; + +upload_error: + if (our_data!=NULL) free(our_data); + GP_DEBUG("Error in tiger_upload_file"); + return result; +} + +int tiger_delete_picture(CameraPrivateLibrary *dev, const char *filename) { + + int32_t ret,temp; + + ret = tiger_set_pc_mode(dev); + if (ret<0) goto delete_pic_error; + + ret = soundvision_send_command(SOUNDVISION_DELETE,0,dev); + if (ret<0) goto delete_pic_error; + + /* should get fff if all is well */ + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) goto delete_pic_error; + + ret=soundvision_send_file_command(filename,dev); + if (ret<0) goto delete_pic_error; + + ret = soundvision_send_command(SOUNDVISION_DONE_TRANSACTION,0,dev); + if (ret<0) goto delete_pic_error; + + return GP_OK; + +delete_pic_error: + return ret; + +} + +int tiger_get_mem(CameraPrivateLibrary *dev, int *num_pics, int *mem_total, int *mem_free) { + + int result=0; + int temp_result; + + *num_pics=soundvision_photos_taken(dev); + if (*num_pics<0) goto get_mem_error; + + result=soundvision_get_revision(dev,NULL); + if (result<0) goto get_mem_error; + + result=soundvision_send_command(SOUNDVISION_GET_MEM_TOTAL,0,dev); + if (result<0) goto get_mem_error; + + result=soundvision_read(dev, &temp_result, sizeof(temp_result)); + if (result<0) goto get_mem_error; + + *mem_total=le32toh(temp_result); + + result=soundvision_send_command(SOUNDVISION_GET_MEM_FREE,0,dev); + if (result<0) goto get_mem_error; + + result=soundvision_read(dev, &temp_result, sizeof(temp_result)); + if (result<0) goto get_mem_error; + + *mem_free=le32toh(temp_result); + + return GP_OK; + +get_mem_error: + GP_DEBUG("Error in tiger_get_mem"); + return result; + +} + + +int tiger_capture(CameraPrivateLibrary *dev, CameraFilePath *path) { + + int result=0,start_pics,num_pics,mem_total,mem_free; + + result=soundvision_send_command(SOUNDVISION_START_TRANSACTION,0,dev); + if (result<0) goto tiger_capture_error; + + result=soundvision_get_revision(dev,NULL); + if (result<0) goto tiger_capture_error; + + result=tiger_get_mem(dev,&start_pics,&mem_total,&mem_free); + if (result<0) goto tiger_capture_error; + + result=soundvision_send_command(SOUNDVISION_SETPC2,0,dev); + if (result<0) goto tiger_capture_error; + + result=soundvision_send_command(SOUNDVISION_TAKEPIC3,0,dev); + if (result<0) goto tiger_capture_error; + + result=soundvision_send_command(SOUNDVISION_SETPC1,0,dev); + if (result<0) goto tiger_capture_error; + + result=tiger_get_mem(dev,&num_pics,&mem_total,&mem_free); + if (result<0) goto tiger_capture_error; + + while(num_pics==start_pics) { + sleep(4); + result=tiger_get_mem(dev,&num_pics,&mem_total,&mem_free); + if (result<0) goto tiger_capture_error; + } + + result=tiger_get_mem(dev,&num_pics,&mem_total,&mem_free); + if (result<0) goto tiger_capture_error; + + return GP_OK; + +tiger_capture_error: + GP_DEBUG("ERROR with tiger_capture"); + return result; + +} + + + +int tiger_get_file_list(CameraPrivateLibrary *dev) { + + char *buffer=NULL; + int32_t ret, taken, buflen,i; + + ret=tiger_set_pc_mode(dev); + if (ret<0) goto list_files_error; + + if ( (taken=soundvision_photos_taken(dev)) < 0) { + ret=taken; + goto list_files_error; + } + + dev->num_pictures = taken; + + if (taken>0) { + + buflen = (taken * 13)+1; /* 12 char filenames and space for each */ + /* plus trailing NULL */ + + buffer = malloc(buflen); + + if (!buffer) { + GP_DEBUG("Could not allocate %i bytes!",buflen); + ret=GP_ERROR_NO_MEMORY; + goto list_files_error; + } + + ret=soundvision_send_command(SOUNDVISION_GET_NAMES, buflen, dev); + if (ret < 0) { + goto list_files_error; + } + + + ret = soundvision_read(dev, (void *)buffer, buflen); + if (ret < 0) { + goto list_files_error; + } + if (ret < buflen) { + GP_DEBUG("Read only %i instead of %i!", buflen, ret); + ret=GP_ERROR_NO_MEMORY; + goto list_files_error; + } + + + if (dev->file_list) free(dev->file_list); + + dev->file_list = malloc(taken * 13); + + if (!dev->file_list) { + GP_DEBUG("Could not allocate %i bytes!",taken*13); + ret=GP_ERROR_NO_MEMORY; + goto list_files_error; + } + + for(i=0;ifile_list, buffer, taken * 13); + free(buffer); + buffer=NULL; + + + + } + + + ret=soundvision_send_command(SOUNDVISION_DONE_TRANSACTION, 0, dev); + if (ret<0) goto list_files_error; + + /* If we have >1 pics we should stat a file?*/ + /* Some traces do, some don't... */ +/* if (taken>0) + soundvision_get_pic_size(dev,dev->file_list); + */ + + return GP_OK; + +list_files_error: + + if (buffer!=NULL) free(buffer); + return ret; +} + +int tiger_get_pic(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size) { + + int32_t ret,temp; + + GP_DEBUG("tiger_get_pic"); + + dev->odd_command=1; + + ret=soundvision_get_revision(dev,NULL); + + ret = soundvision_send_command(SOUNDVISION_GET_PIC,0,dev); + if (ret<0) goto get_pic_error; + + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) goto get_pic_error; + + ret=soundvision_send_file_command(filename,dev); + if (ret<0) goto get_pic_error; + + ret = soundvision_read(dev, data, size); + if (ret<0) goto get_pic_error; + + ret=soundvision_send_command(SOUNDVISION_DONE_TRANSACTION,0,dev); + if (ret<0) goto get_pic_error; + + return GP_OK; + +get_pic_error: + return ret; + + +} + +int tiger_get_pic_size(CameraPrivateLibrary *dev, const char *filename) { + + int32_t ret,temp; + uint32_t size; + + GP_DEBUG("tiger_get_pic_size"); + + ret=soundvision_send_command(SOUNDVISION_GET_PIC_SIZE,0,dev); + if (ret<0) goto pic_size_error; + + /* should check that we get 0x0fff */ + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) goto pic_size_error; + + ret=soundvision_send_file_command(filename,dev); + if (ret<0) goto pic_size_error; + + ret = soundvision_read(dev, &size, sizeof(size)); + if (ret<0) goto pic_size_error; + + return le32toh(size); + +pic_size_error: + return ret; + +} + + +int tiger_get_thumb_size(CameraPrivateLibrary *dev, const char *filename) { + + int32_t ret,temp; + uint32_t size; + + + GP_DEBUG("tiger_get_thumb_size"); + + ret=soundvision_send_command(SOUNDVISION_GET_THUMB_SIZE,0,dev); + if (ret<0) goto thumb_size_error; + + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) goto thumb_size_error; + + ret = soundvision_send_file_command(filename,dev); + if (ret<0) goto thumb_size_error; + + ret = soundvision_read(dev, &size, sizeof(size)); + if (ret<0) goto thumb_size_error; + + return le32toh(size); + +thumb_size_error: + return ret; +} + +int tiger_get_thumb(CameraPrivateLibrary *dev, const char *filename, + unsigned char *data,int size) { + + int32_t ret,temp; + + ret=soundvision_get_revision(dev,NULL); + + ret = soundvision_send_command(SOUNDVISION_GET_THUMB,0,dev); + if (ret<0) goto get_thumb_error; + + ret = soundvision_read(dev, &temp, sizeof(temp)); + if (ret<0) goto get_thumb_error; + + ret=soundvision_send_file_command(filename,dev); + if (ret<0) goto get_thumb_error; + + ret = soundvision_read(dev, data, size); + if (ret<0) goto get_thumb_error; + + ret=soundvision_send_command(SOUNDVISION_DONE_TRANSACTION,0,dev); + if (ret<0) goto get_thumb_error; + + return GP_OK; + +get_thumb_error: + + return ret; + +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog new file mode 100644 index 00000000..db4f4c5b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog @@ -0,0 +1,39 @@ +2004-10-28 Hubert Figuiere + + * library.c (camera_init): Fix build for gcc 2.95 + (bug #105586) + +2004-02-22 Till Adam + * add support for Dakota disposable cameras. This is the + work of John Maushammer + +2004-02-22 Till Adam + * add support for Pencams without flash via a special camera + model. --camera "Pencam without flash" works for those cams + which fail upon autodetection as regular pencams. + Thanks to John Feuerstein for helping with + that. + +2004-01-17 Till Adam + * fix brokeness for pencams which don't react well to the reset + command needed for other firmware one cams. Thanks to + Norbert Möndjen and + Walt Boring for figuring that out + and helping debug it. + +2003-06-04 Till Adam + * add support for spca500 based cams with flash storage, courtesy + of Ian MacArthur + +2003-06-04 Till Adam + * use ids to detect the model instead of strcmp which fails + after the : change + * move jpeg function into spca50x.c|h + * return mtime in the info func to save thumbnail uploads + +2003-05-17 Till Adam + * fix crash in thumbnail generation due to brainfart on my part. + Thanks to Hartmut Henkel for the help. + +2003-02-22 Till Adam + * merge of the gsmart, spca504_flash and benq camlibs into this one diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog.benq b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog.benq new file mode 100644 index 00000000..55e27080 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog.benq @@ -0,0 +1,9 @@ +Mon Jan 20 20:45:15 2003 Till Adam + + * remove unused exit handler + * write the current date and time to the cam in init, to sync it. It seems + to require that occasionally to be able to keep time. + +Sam Jan 18 22:00:10 2003 Till Adam + + * initial import diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog.gsmart b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog.gsmart new file mode 100644 index 00000000..6f380929 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog.gsmart @@ -0,0 +1,71 @@ +Sam Dez 07 21:04:46 2002 Till Adam + + * the lowest res of the mini is a different format, cope with that + * fix cases where the number of frames advertised by one of the fat pages of + an avi exceed the total number of frames it has + (Reported by Gerd Flaig ) + +Tue Nov 05 12:17:30 2002 Till Adam + + * return unssuported for avi downloading and small and large image + resolutions if the bridge is a SPCA500 (gsmart mini). + +Sat Oct 19 22:52:34 2002 Till Adam + + * another patch from Piotr Pawlow which omits the standard + huffmann tables in the mjpeg thereby reducing them in size. This seems + to be a standard extension of the mjpeg "standard" and works with the + players I've tested + +Mon Oct 14 20:32:08 2002 Till Adam + + * move jpeg creation into function + * add experimental support for the "gsmart mini" + * bump version number to 0.3 + * driver status for the spca504a based is now TESTING + * patch from Piotr Pawlow adding an index to downloaded + avi's and fixing a few bugs. + * endianess fixes + +Wed Oct 09 19:58:01 2002 Till Adam + + * add experimental support for the "gSmart mini 3" and "So. Show 301" + * (identical to the gSmart mini 2) + +Tue Oct 08 22:14:04 2002 Till Adam + + * add support for avi downloading + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +Sam Aug 31 20:15:03 2002 Till Adam + + * return name in the file_info as well. Fixes kamera kio-slave + * endianess fix reported by Carl Lunde + * spelling fix + +Thu Aug 22 20:46:02 2002 Till Adam + + * add support for avi thumbnails + +Tue Aug 13 21:37:08 2002 Till Adam + + * add a little timeout after deletion of a file. The camera ignores + successive deletes otherwise. + +Tue Aug 13 14:13:27 2002 Till Adam + + * disallow deletion of anything but the last file on the camera + +Sat Aug 10 19:03:31 2002 Till Adam + + * remove debugging calls + * allocate space for GsmartFile structures dynamically + * sprintf -> snprintf, strcpy -> strncpy, fprintf -> gp_context_error + * make internally used functions static and remove them from gsmart.h + +Mon Aug 05 00:01:06 2002 Till Adam + + * initial release of the module diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog.spca504_flash b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog.spca504_flash new file mode 100644 index 00000000..18d58877 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/ChangeLog.spca504_flash @@ -0,0 +1,20 @@ +Fre Jan 24 11:47:04 2003 Till Adam + * apply patch by Mark Zimmermann + fixing thumbnails for low res images + +Fri Jan 24 08:15:59 2003 Till Adam + * apply patch by Mark Zimmermann + fixing reporting of preview height + +2002-11-26 Colin Marquardt + + * library.c (camera_about): Make sure author names are 7bit ASCII only. + +Son Nov 10 21:19:16 2002 Till Adam + * import into gphoto cvs + +Sam Nov 02 20:09:06 2002 Till Adam + * implement -n, -L and -P + +Fri Oct 25 17:32:26 2002 Till Adam + * start of camlib diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/Makefile-files new file mode 100644 index 00000000..b9e3d702 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/Makefile-files @@ -0,0 +1,18 @@ +# -*- Makefile -*- + +EXTRA_DIST += spca50x/ChangeLog.benq spca50x/ChangeLog.gsmart spca50x/ChangeLog.spca504_flash spca50x/lsusb-v spca50x/README.spca50x spca50x/ChangeLog + +camlibdoc_DATA += spca50x/README.spca50x + +EXTRA_LTLIBRARIES += spca50x.la + +spca50x_la_SOURCES = \ + spca50x/spca50x.c spca50x/spca50x.h \ + spca50x/spca50x-flash.c spca50x/spca50x-flash.h \ + spca50x/spca50x-sdram.c spca50x/spca50x-sdram.h \ + spca50x/library.c \ + spca50x/spca50x-jpeg-header.h spca50x/spca50x-registers.h \ + spca50x/spca50x-avi-header.h +spca50x_la_LDFLAGS = $(camlib_ldflags) +spca50x_la_DEPENDENCIES = $(camlib_dependencies) +spca50x_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/README.spca50x b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/README.spca50x new file mode 100644 index 00000000..611cd08d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/README.spca50x @@ -0,0 +1,126 @@ +This is a gphoto2 driver for cameras with a SunPlus spca504 chip and for the +Mustek gSmart mini, which has a spca500. It supports cameras with sdram, flash +and card storage or a combination of those. Currently we know of the following +models: + +Mustek gSmart mini +Mustek gSmart mini 2 +Mustek gSmart mini 3 +So. Show 301 +Aiptek Pencam +Aiptek Pencam without flash storage (needs --camera "Pencam without flash") +Medion MD 5319 +nisis Quickpix Qp3 +Trust Spyc@m 500F FLASH +Aiptek 1.3 mega PocketCam +Maxell Max Pocket +Aiptek Smart Megacam +Benq DC1300 +D-Link DSC 350+ +Trust Familycam 300 +Minton S-Cam F5 +Pure Digital Ritz disposable cam + +There are probably more cameras with these chips out there and they probably +work with this driver as well. + + +Notes +----- +The cameras always delete the last file on them, no matter what file number is +passed to it for deletion. It is impossible to delete a specific image or +movie on the camera. + +Webcam mode +----------- +The cameras of this series are based on the spca504a and spca500 chip +manufactured by Sunplus. Both chips are capable of streaming, so there's a +project working on video4linux support for them. spca50x.sourceforge.net +We have been succesfull in getting some of the cameras supported by this +camlib working as part of that project. :) + +Authors +------- +Till Adam +based on the work of others and with help from a lot of people listed below. +The initial support for the Mustek gsmart mini 2 was based on the sources +of the windows driver kindly provided by Mustek. + +Ian MacArthur +support for spca500 based cams with flash storage. + + +This camlib is the result of merging several others that were created before +it was clear how they relate to each other. The thank you sections of the old +READMEs are listed here in no particular order. + +Post merge thanks +----------------- +A lot of people helped with testing the merged camlib. Most of them are listed +below anyway, so I wont list them again. + +Big thanks to Richard Curnow who fixed several bug in the +gsmart mini support. His patches went in during the merge. + +Hartmut Henkel helped debug a crash with thumbnails. +Rupert Levene helped debug the merged camlib. +Norbert Möndjen found out that the pencams +don't react well to the reset command. +Walt Boring helped debug the above reset problem. +John Feuerstein helped figuring out and testing the +workaround for Pencams without flash. + +Thanks to John Maushammer for adding support for the +Dakota disposable cameras. + + +Thanks from the Benq README +--------------------------- +Johan Nilsson made windows snoops, tested the +early versions and helped debug them. Without him, this would not have been +possible. + + +Thanks from the gsmart README +----------------------------- +Special thanks go to Bjorn Borud who extorted the above +mentioned sources for the windows driver from Mustek and to Buster Lee at +Mustek for being helpful and responsive. + +Special thanks also to Tim Sampson , who made the +support for spca500 based cams (such as the gsmart mini) possible by boldly +trying out my untested alpha versions. + +Adam Pribyl helped debugging the lowest resolution +of the gsmart mini and had to put his cam in the fridge (!) several times in +the process. Brave man. ;) + +Michel Xhaard helped add support for the Maxell Max Pocket +with patches and testing. Thanks a lot. + +Very special thanks to Piotr Pawlow for adding avi index +functionality and fixing a few bugs. + +Also thanks to the following people for testing and feedback: + +Torfinn Ingolfsen +Mikael Nilsson +Miah Gregory +Soenke Reimers +Gerd Flaig + +Thanks from the spca504_flash README +------------------------------------ +This owes everything to the work of Mark Zimmermann whose +pencamread tool I have simply ported to a gphoto2 camlib. The macam driver by +Matthias Krauß was also helpfull. All features are theirs, all bugs are mine. + +I dont own a camera of this type, so I had to rely on Armin Janssen + to tirelessly produce usb snoops, test and give feedback. +Without Armin this would not have been possible, so if you own a camera that +is supported by this driver consider sending him an email and thanking him for +risking his cam so yours works on linux ;). + +Thanks also to Martyn Ranyard for testing and reporting +success with the nisis Quickpix Qp3. He also helped debug the beginnings of +avi support. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/library.c new file mode 100644 index 00000000..37487cb8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/library.c @@ -0,0 +1,651 @@ +/****************************************************************/ +/* library.c - Gphoto2 library for cameras with sunplus spca50x */ +/* chips */ +/* Copyright (C) 2002, 2003 Till Adam */ +/* */ +/* Author: Till Adam */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ +#define _DEFAULT_SOURCE + +#include "config.h" + + +#include +#include +#include + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "spca50x.h" +#include "spca50x-flash.h" +#include "spca50x-sdram.h" + +#define GP_MODULE "spca50x" +#define TIMEOUT 5000 + +#define SPCA50X_VERSION "0.1" +#define SPCA50X_LAST_MOD "02/09/03 - 23:14:11" + +/* forward declarations */ +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context); +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, + GPContext *context); + +static int delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, + GPContext *context); +static int delete_all_func (CameraFilesystem *fs, const char *folder, + void *data, GPContext *context); +static int get_info_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, + void *data, GPContext *context); +static int cam_has_sdram (CameraPrivateLibrary *pl); +static int cam_has_flash (CameraPrivateLibrary *pl); +static int cam_has_card (CameraPrivateLibrary *pl); + +/* define what cameras we support */ +static const struct +{ + char *model; + int usb_vendor; + int usb_product; + SPCA50xBridgeChip bridge; + int storage_media_mask; +} +models[] = +{ + /* firmware version 1 cams. */ + {"Mustek:gSmart mini", 0x055f, 0xc220, + BRIDGE_SPCA500, SPCA50X_SDRAM }, + {"Mustek:gSmart mini 2", 0x055f, 0xc420, + BRIDGE_SPCA504, SPCA50X_SDRAM }, + {"Mustek:gSmart mini 3", 0x055f, 0xc520, + BRIDGE_SPCA504, SPCA50X_SDRAM }, + {"So.:Show 301", 0x0ec7, 0x1008, + BRIDGE_SPCA504, SPCA50X_SDRAM }, + {"Aiptek:Pencam", 0x04fc, 0x504a, + BRIDGE_SPCA504, SPCA50X_SDRAM | SPCA50X_FLASH }, + /* same ids, different cam *sigh* */ + {"Aiptek:Pencam without flash", 0x04fc, 0x504a, + BRIDGE_SPCA504, SPCA50X_SDRAM }, + {"Medion:MD 5319", 0x04fc, 0x504a, + BRIDGE_SPCA504, SPCA50X_SDRAM | SPCA50X_FLASH }, + {"nisis:Quickpix Qp3", 0x04fc, 0x504a, + BRIDGE_SPCA504, SPCA50X_SDRAM | SPCA50X_FLASH }, + {"Trust:Spyc@m 500F FLASH", 0x04fc, 0x504a, + BRIDGE_SPCA504, SPCA50X_SDRAM | SPCA50X_FLASH }, + /* The firmware 2 cams. Those can autodetect their storage type */ + {"Aiptek:1.3 mega PocketCam", 0x04fc, 0x504b, + BRIDGE_SPCA504, 0 }, + {"Maxell:Max Pocket", 0x04fc, 0x504b, + BRIDGE_SPCA504, 0 }, + {"Aiptek:Smart Megacam", 0x04fc, 0x504b, + BRIDGE_SPCA504, 0 }, + {"Benq:DC1300", 0x04a5, 0x3003, + BRIDGE_SPCA504, 0 }, + /* Some other 500a cams with flash */ + {"Trust:Familycam 300", 0x084d, 0x0003, + BRIDGE_SPCA500, SPCA50X_FLASH}, + {"D-Link:DSC 350+", 0x084d, 0x0003, + BRIDGE_SPCA500, SPCA50X_FLASH}, + {"Minton:S-Cam F5", 0x084d, 0x0003, + BRIDGE_SPCA500, SPCA50X_FLASH}, + {"PureDigital:Ritz Disposable", 0x04fc, 0xffff, + BRIDGE_SPCA504B_PD, SPCA50X_FLASH}, + {NULL, 0, 0, 0, 0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "spca50x"); + return (GP_OK); +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + int x = 0; + char *ptr; + CameraAbilities a; + + ptr = models[x].model; + while (ptr) { + memset (&a, 0, sizeof (a)); + strcpy (a.model, ptr); + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.status = GP_DRIVER_STATUS_TESTING; + + a.file_operations = GP_FILE_OPERATION_PREVIEW + | GP_FILE_OPERATION_DELETE; + + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + + a.usb_vendor = models[x].usb_vendor; + a.usb_product = models[x].usb_product; + + if (models[x].bridge == BRIDGE_SPCA504) { + /* FIXME which cams can do it? */ + if (a.usb_product == 0xc420 + || a.usb_product == 0xc520) + a.operations = GP_OPERATION_CAPTURE_IMAGE; + } + if (models[x].bridge == BRIDGE_SPCA504B_PD) { + a.operations = GP_OPERATION_CAPTURE_IMAGE; + } + if (models[x].bridge == BRIDGE_SPCA500) { + /* TEST enable capture for the DSC-350 style cams */ + if (a.usb_vendor == 0x084d) { + a.operations = GP_OPERATION_CAPTURE_IMAGE; + } + } + gp_abilities_list_append (list, a); + + ptr = models[++x].model; + } + + return (GP_OK); +} + +static int +camera_capture (Camera *camera, CameraCaptureType type, + CameraFilePath * path, GPContext *context) +{ + struct SPCA50xFile *file; + CameraAbilities a; + + /* Not all our cameras support capture */ + gp_camera_get_abilities (camera, &a); + if (!(a.operations & GP_OPERATION_CAPTURE_IMAGE)) + return GP_ERROR_NOT_SUPPORTED; + + if (cam_has_flash(camera->pl)) + { + int fc; + char tmp [14]; + + CHECK(spca500_flash_capture (camera->pl)); + CHECK(spca50x_flash_get_TOC (camera->pl, &fc)); + /* assume new pic is the last one in the cam...*/ + CHECK(spca50x_flash_get_file_name (camera->pl, (fc - 1), tmp)); + + /* Add new image name to file list */ + /* NOTE: these lines moved from below */ + strncpy (path->name, tmp, sizeof (path->name) - 1); + path->name[sizeof (path->name) - 1] = '\0'; + } + else + { + CHECK (spca50x_capture (camera->pl)); + CHECK (spca50x_sdram_get_info (camera->pl)); + CHECK (spca50x_sdram_get_file_info + (camera->pl, camera->pl->num_files_on_sdram - 1, &file)); + + /* Add new image name to file list */ + /* NOTE: these lines moved from below */ + strncpy (path->name, file->name, sizeof (path->name) - 1); + path->name[sizeof (path->name) - 1] = '\0'; + } + /* Now tell the frontend where to look for the image */ + strncpy (path->folder, "/", sizeof (path->folder) - 1); + path->folder[sizeof (path->folder) - 1] = '\0'; + + CHECK (gp_filesystem_append + (camera->fs, path->folder, path->name, context)); + return GP_OK; +} + + +static int +camera_exit (Camera *camera, GPContext *context) +{ + if (camera->pl) { + if (cam_has_flash (camera->pl) || cam_has_card (camera->pl)) + spca50x_flash_close (camera->pl, context); + + if (camera->pl->fats) { + free (camera->pl->fats); + camera->pl->fats = NULL; + } + if (camera->pl->files) { + free (camera->pl->files); + camera->pl->files = NULL; + } + if (camera->pl->flash_toc) { + free (camera->pl->flash_toc); + camera->pl->flash_toc = NULL; + } + + free (camera->pl); + camera->pl = NULL; + } + return (GP_OK); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + char tmp[1024]; + int flash_file_count; + + if (cam_has_flash(camera->pl) || cam_has_card (camera->pl)) { + spca50x_flash_get_filecount(camera->pl, &flash_file_count); + snprintf (tmp, sizeof (tmp), + _("FLASH:\n Files: %d\n"), flash_file_count); + strcat (summary->text, tmp); + } + + /* possibly get # pics, mem free, etc. if needed */ + if (cam_has_sdram(camera->pl) && camera->pl->dirty_sdram) { + CHECK (spca50x_sdram_get_info (camera->pl)); + + snprintf (tmp, sizeof (tmp), + _("SDRAM:\n Files: %d\n Images: %4d\n Movies: %4d\nSpace used: %8d\nSpace free: %8d\n"), + camera->pl->num_files_on_sdram, + camera->pl->num_images, + camera->pl->num_movies, + camera->pl->size_used, + camera->pl->size_free); + strcat (summary->text, tmp); + } + + return (GP_OK); +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _("spca50x library v" SPCA50X_VERSION + " " SPCA50X_LAST_MOD "\n" + "Till Adam \n" + "Support for digital cameras with a sunplus spca50x chip " + "based on several other gphoto2 camlib modules and " + "the information kindly provided by Mustek.\n" + "\n")); + + return (GP_OK); +} + + + + +static int +file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + + Camera *camera = data; + int i = 0, filecount = 0; + char temp_file[14]; + + if (cam_has_flash(camera->pl) || cam_has_card(camera->pl) ) + { + CHECK (spca50x_flash_get_TOC(camera->pl, &filecount)); + for (i=0; ipl, i, + temp_file)); + gp_list_append (list, temp_file, NULL); + } + } + if (cam_has_sdram(camera->pl)) { + if (camera->pl->dirty_sdram) + CHECK (spca50x_sdram_get_info (camera->pl)); + + for (i = 0; i < camera->pl->num_files_on_sdram; i++) { + strncpy (temp_file, camera->pl->files[i].name, 12); + temp_file[12] = 0; + gp_list_append (list, temp_file, NULL); + } + } + + return GP_OK; +} + + +static int +get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + + Camera *camera = user_data; + unsigned char *data = NULL; + int number, filetype, flash_file_count = 0; + unsigned int size; + + CHECK (number = + gp_filesystem_number (camera->fs, folder, filename, context)); + + if (cam_has_flash(camera->pl) || cam_has_card(camera->pl) ) { + CHECK (spca50x_flash_get_filecount + (camera->pl, &flash_file_count)); + } + + switch (type) { + case GP_FILE_TYPE_NORMAL: + if ( number < flash_file_count) { + CHECK (spca50x_flash_get_file (camera->pl, + context, &data, &size, + number, 0)); + CHECK (gp_file_set_mime_type + (file, GP_MIME_JPEG)); + + } else { + CHECK (spca50x_sdram_request_file + (camera->pl, &data, &size, + number-flash_file_count, + &filetype)); + if (filetype == SPCA50X_FILE_TYPE_IMAGE) { + CHECK (gp_file_set_mime_type + (file, GP_MIME_JPEG)); + } else if (filetype == SPCA50X_FILE_TYPE_AVI) { + CHECK (gp_file_set_mime_type + (file, GP_MIME_AVI)); + } + } + break; + case GP_FILE_TYPE_PREVIEW: + if ( number < flash_file_count) { + CHECK (spca50x_flash_get_file (camera->pl, + context, &data, &size, + number, 1)); + CHECK (gp_file_set_mime_type (file, + GP_MIME_BMP)); + + } else { + CHECK (spca50x_sdram_request_thumbnail + (camera->pl, &data, &size, + number-flash_file_count, + &filetype)); + if (filetype == SPCA50X_FILE_TYPE_IMAGE) { + CHECK (gp_file_set_mime_type + (file, GP_MIME_BMP)); + } else if (filetype == SPCA50X_FILE_TYPE_AVI) { + CHECK (gp_file_set_mime_type + (file, GP_MIME_JPEG)); + } + } + + break; + default: + return GP_ERROR_NOT_SUPPORTED; + } + if (!data) + return GP_ERROR; + return gp_file_set_data_and_size (file, (char *)data, size); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, void *data, + GPContext *context) +{ + Camera *camera = data; + int n, flash_file_count = 0; + struct SPCA50xFile *file; + char name[14]; + int w,h; + + /* Get the file number from the CameraFileSystem */ + CHECK (n = + gp_filesystem_number (camera->fs, folder, filename, context)); + + if (cam_has_flash(camera->pl) || cam_has_card(camera->pl) ) { + CHECK (spca50x_flash_get_TOC(camera->pl, + &flash_file_count)); + } + if (n < flash_file_count) { + CHECK (spca50x_flash_get_file_name(camera->pl, + n, name)); + CHECK (spca50x_flash_get_file_dimensions( + camera->pl, n, &w, &h)); + strcpy (info->file.type, GP_MIME_JPEG); + info->file.width = w; + info->file.height = h; + info->preview.width = w/8; + info->preview.height = h/8; + } + if (cam_has_sdram (camera->pl) && n >= flash_file_count ){ + CHECK (spca50x_sdram_get_file_info (camera->pl, + n-flash_file_count, &file)); + if (file->mime_type == SPCA50X_FILE_TYPE_IMAGE) { + strcpy (info->file.type, GP_MIME_JPEG); + info->preview.width = 160; + info->preview.height = 120; + } else if (file->mime_type == SPCA50X_FILE_TYPE_AVI) { + strcpy (info->file.type, GP_MIME_AVI); + info->preview.width = 320; + info->preview.height = 240; + } + info->file.width = file->width; + info->file.height = file->height; + + } + info->file.fields = + GP_FILE_INFO_TYPE + | GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT; + + info->file.mtime = 0; + info->file.fields |= GP_FILE_INFO_MTIME; + + info->preview.fields = + GP_FILE_INFO_TYPE | GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT; + strcpy (info->preview.type, GP_MIME_BMP); + return (GP_OK); +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int n, c, flash_file_count; + + /* FIXME deleting a single file for flash/card cams should work */ + /* Get the file number from the CameraFileSystem */ + CHECK (n = + gp_filesystem_number (camera->fs, folder, filename, context)); + + if (cam_has_flash(camera->pl) || cam_has_card(camera->pl) ) { + CHECK (spca50x_flash_get_filecount + (camera->pl, &flash_file_count)); + } else { + /* should not happen really */ + return GP_ERROR; + } + if (n < flash_file_count) { + return spca500_flash_delete_file (camera->pl, n); + } + + CHECK (c = gp_filesystem_count (camera->fs, folder, context)); + if (n + 1 != c) { + const char *name; + + gp_filesystem_name (fs, "/", c - 1, &name, context); + gp_context_error (context, + _("Your camera only supports deleting the " + "last file on the camera. In this case, this " + "is file '%s'."), name); + return (GP_ERROR); + } + CHECK (spca50x_sdram_delete_file (camera->pl, n)); + return GP_OK; +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + + if (cam_has_sdram (camera->pl)) + CHECK (spca50x_sdram_delete_all (camera->pl)); + if (cam_has_flash(camera->pl) || cam_has_card(camera->pl) ) + CHECK (spca50x_flash_delete_all (camera->pl, context)); + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func, + .del_file_func = delete_file_func, + .delete_all_func = delete_all_func, +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + int ret = 0; + int x = 0; + char *model; + + GPPortSettings settings; + CameraAbilities abilities; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->capture = camera_capture; + + CHECK (gp_port_get_settings (camera->port, &settings)); + switch (camera->port->type) { + case GP_PORT_USB: + settings.usb.inep = 0x82; + settings.usb.outep = 0x03; + settings.usb.config = 1; + settings.usb.interface = 0; + settings.usb.altsetting = 0; + + CHECK (gp_port_set_settings (camera->port, settings)); + CHECK (gp_port_set_timeout (camera->port, TIMEOUT)); + + break; + default: + gp_context_error (context, + _("Unsupported port type: %d. " + "This driver only works with USB " + "cameras.\n"), camera->port->type); + return (GP_ERROR); + break; + } + + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) + return (GP_ERROR_NO_MEMORY); + memset (camera->pl, 0, sizeof (CameraPrivateLibrary)); + camera->pl->gpdev = camera->port; + camera->pl->dirty_sdram = 1; + camera->pl->dirty_flash = 1; + + /* What bridge chip is inside the camera? The gsmart mini is spca500 + * based, while the others have a spca50xa */ + gp_camera_get_abilities (camera, &abilities); + model = models[x].model; + while (model) { + if (abilities.usb_vendor == models[x].usb_vendor + && abilities.usb_product == models[x].usb_product) { + int same; + char *m = strdup( models[x].model ); + char *p = strchr (m, ':' ); + + if (p) *p = ' '; + same = !strcmp (m, abilities.model); + free (m); + if (same) { + camera->pl->bridge = models[x].bridge; + camera->pl->storage_media_mask = + models[x].storage_media_mask; + break; + } + } + model = models[++x].model; + } + + CHECK (spca50x_get_firmware_revision (camera->pl)); + if (camera->pl->fw_rev > 1) { + CHECK (spca50x_detect_storage_type (camera->pl)); + } + + if (cam_has_flash(camera->pl) || cam_has_card(camera->pl) ) { + if ((camera->pl->bridge == BRIDGE_SPCA504) || + (camera->pl->bridge == BRIDGE_SPCA504B_PD)) + CHECK (spca50x_flash_init (camera->pl, context)); + } + + if ((camera->pl->bridge == BRIDGE_SPCA504) || + (camera->pl->bridge == BRIDGE_SPCA504B_PD)) { +/* if (abilities.usb_vendor != 0x04fc && abilities.usb_product != 0x504a ) */ + if (!(abilities.usb_vendor == 0x04fc && abilities.usb_product == 0x504a )) + ret = spca50x_reset (camera->pl); + } + + if (ret < 0) { + gp_context_error (context, _("Could not reset camera.\n")); + free (camera->pl); + camera->pl = NULL; + + return (ret); + } + + /* Set up the CameraFilesystem */ + return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); +} + +static int +cam_has_sdram (CameraPrivateLibrary *pl) +{ + return pl->storage_media_mask & SPCA50X_SDRAM; +} + +static int +cam_has_flash (CameraPrivateLibrary *pl) +{ + return pl->storage_media_mask & SPCA50X_FLASH; +} + +static int +cam_has_card (CameraPrivateLibrary *pl) +{ + return pl->storage_media_mask & SPCA50X_CARD; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/lsusb-v b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/lsusb-v new file mode 100644 index 00000000..dd4c268e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/lsusb-v @@ -0,0 +1,522 @@ +#!/usr/bin/perl -w +# lsusb-v +##################################################################### +# +# This file contains the output of lsusb -v for the cameras +# supported by this driver +# +# The purpose is to have a comprehensive database in which to find +# distinguishing properties for cameras with the same ProductID but +# different features +# +# Add data after the __DATA__ line. There is a template you can copy. +# +# Run this file with perl to create the lsusb output in extra files. +# +###################################################################### + +use strict; +my $dir = "lsusb-v-comparison"; + +mkdir($dir) || die "no mkdir"; + +my $print = 0; +my $fname = 0; +while () { + my $line = $_; + if ($line =~ /^##BEGIN lsusb-v/) { + $print = 1; + open(OUT, ">${dir}/${fname}"); + $fname++; + } elsif ($line =~ /^##END lsusb-v/) { + $print = 0; + close(OUT); + } + if ($print) { + print OUT $line; + } +} +print "Have a look at ${dir}/* now :-)\n"; + +__DATA__ + + +##BEGIN CAMERA +#Camera name: +#Contact person: +##END Notes +##BEGIN lsusb-v + +##END lsusb-v +##END CAMERA + + + +##BEGIN CAMERA +#Camera name: Aiptek 1.3 +#Media: sdram, ? +#Contact person: Walter A. Boring IV - hemna +##BEGIN Notes +# This is the camera which deletes all files when downloading a file +# with libgphoto2 2.1.3. See +# https://sourceforge.net/tracker/index.php?func=detail&aid=876501&group_id=8874&atid=108874 +# for details. +##END Notes +##BEGIN lsusb-v +Bus 001 Device 004: ID 04fc:504a Sunplus Technology Co., Ltd SPCA504a Digital Camera + Language IDs: none (invalid length string descriptor bf; len=0) +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 1.00 + bDeviceClass 0 Interface + bDeviceSubClass 0 + bDeviceProtocol 0 + bMaxPacketSize0 8 + idVendor 0x04fc Sunplus Technology Co., Ltd + idProduct 0x504a SPCA504a Digital Camera + bcdDevice 1.00 + iManufacturer 0 + iProduct 0 + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 167 + bNumInterfaces 2 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0x80 + MaxPower 500mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 0 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 1 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 128 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 2 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 384 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 3 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 512 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 4 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 640 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 5 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 768 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 6 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 896 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 7 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 1023 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 1 + bAlternateSetting 0 + bNumEndpoints 3 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x82 EP 2 IN + bmAttributes 2 + Transfer Type Bulk + Synch Type none + wMaxPacketSize 64 + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x03 EP 3 OUT + bmAttributes 2 + Transfer Type Bulk + Synch Type none + wMaxPacketSize 64 + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x84 EP 4 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type none + wMaxPacketSize 1 + bInterval 1 + Language IDs: none (invalid length string descriptor bf; len=0) +##END lsusb-v +##END CAMERA + + +##BEGIN CAMERA +#Camera name: Aiptek Mega Cam 1.3 +#Media: flash, sdram +#Contact Person: mxhaard +##BEGIN Notes +# This camera must be initialized this way: +# - remove and reinsert battery +# - press the little button until the LCD goes in blink 888 +# Otherwise the camera is not found. Strange. +##END Notes +##BEGIN lsusb-v +Bus 002 Device 004: ID 04fc:504a Sunplus Technology Co. + Language IDs: none (invalid length string descriptor bf; len=0) +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 1.00 + bDeviceClass 0 Interface + bDeviceSubClass 0 + bDeviceProtocol 0 + bMaxPacketSize0 8 + idVendor 0x04fc Sunplus Technology Co. + idProduct 0x504a + bcdDevice 1.00 + iManufacturer 0 + iProduct 0 + iSerial 0 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 167 + bNumInterfaces 2 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0x80 + MaxPower 500mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 0 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 1 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 128 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 2 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 384 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 3 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 512 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 4 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 640 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 5 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 768 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 6 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 896 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 7 + bNumEndpoints 1 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x81 EP 1 IN + bmAttributes 1 + Transfer Type Isochronous + Synch Type none + wMaxPacketSize 1023 + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 1 + bAlternateSetting 0 + bNumEndpoints 3 + bInterfaceClass 255 Vendor Specific Class + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x82 EP 2 IN + bmAttributes 2 + Transfer Type Bulk + Synch Type none + wMaxPacketSize 64 + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x03 EP 3 OUT + bmAttributes 2 + Transfer Type Bulk + Synch Type none + wMaxPacketSize 64 + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x84 EP 4 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type none + wMaxPacketSize 1 + bInterval 1 + Language IDs: none (invalid length string descriptor bf; len=0) +##END lsusb-v +##END CAMERA + + +######################################################################## +# END OF FILE +######################################################################## diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-avi-header.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-avi-header.h new file mode 100644 index 00000000..4d1c1351 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-avi-header.h @@ -0,0 +1,76 @@ +#ifndef __SPCA50X_AVI_HEADER_H +#define __SPCA50X_AVI_HEADER_H + +#define SPCA50X_AVI_FRAME_HEADER_LENGTH 8 +static const uint8_t SPCA50xAviFrameHeader[SPCA50X_AVI_FRAME_HEADER_LENGTH] = { + 0x30, 0x30, 0x64, 0x63, /* 00dc */ + 0x00, 0x00, 0x00, 0x00 /* size of frame */ +}; + +#define SPCA50X_AVI_HEADER_LENGTH 224 +static const uint8_t SPCA50xAviHeader[SPCA50X_AVI_HEADER_LENGTH] = { + /* -- RIFF HEADER -- */ + 0x52, 0x49, 0x46, 0x46, /* 0x00; RIFF */ + 0x00, 0x00, 0x00, 0x00, /* 0x04; number of bytes following */ + 0x41, 0x56, 0x49, 0x20, /* 0x08; AVI */ + 0x4C, 0x49, 0x53, 0x54, /* 0x0c; LIST */ + 0xC0, 0x00, 0x00, 0x00, /* 0x10; length of list in bytes */ + 0x68, 0x64, 0x72, 0x6C, /* 0x14; hdrl */ + 0x61, 0x76, 0x69, 0x68, /* 0x18; avih */ + 0x38, 0x00, 0x00, 0x00, /* 0x1c; number of bytes to follow */ + 0xb5, 0x8c, 0x01, 0x00, /* 0x20; microseconds per frame */ + 0x00, 0x00, 0x06, 0x00, /* 0x24; max bytes per second */ + 0x00, 0x00, 0x00, 0x00, /* 0x28; PaddingGranularity (whatever that might be) */ + /* Other sources call it 'reserved' */ + 0x10, 0x00, 0x01, 0x00, /* 0x2c; flags, WASCAPTUREFILE | HASINDEX */ + 0x00, 0x00, 0x00, 0x00, /* 0x30; total frames */ + 0x00, 0x00, 0x00, 0x00, /* 0x34: initial frames */ + 0x01, 0x00, 0x00, 0x00, /* 0x38: number of streams */ + 0x00, 0x00, 0x00, 0x00, /* 0x3c: suggested buffer size */ + 0x40, 0x01, 0x00, 0x00, /* 0x40: width */ + 0xf0, 0x00, 0x00, 0x00, /* 0x44: height */ + 0x00, 0x00, 0x00, 0x00, /* 0x48: some reserved long values */ + 0x00, 0x00, 0x00, 0x00, /* 0x4c: */ + 0x00, 0x00, 0x00, 0x00, /* 0x50: */ + 0x00, 0x00, 0x00, 0x00, /* 0x54: */ + /* -- video stream list -- */ + 0x4C, 0x49, 0x53, 0x54, /* 0x58: LIST */ + 0x74, 0x00, 0x00, 0x00, /* 0x5c: length of list in bytes */ + 0x73, 0x74, 0x72, 0x6C, /* 0x60: strl */ + /* -- video stream header -- */ + 0x73, 0x74, 0x72, 0x68, /* 0x64: strh */ + 0x38, 0x00, 0x00, 0x00, /* 0x68: # of bytes to follow */ + 0x76, 0x69, 0x64, 0x73, /* 0x6c: vids */ + 0x4D, 0x4A, 0x50, 0x47, /* 0x70: MJPG */ + 0x00, 0x00, 0x00, 0x00, /* 0x74: some more reserved longs */ + 0x00, 0x00, 0x00, 0x00, /* 0x78: */ + 0x00, 0x00, 0x00, 0x00, /* 0x7c: */ + 0x33, 0x18, 0x00, 0x00, /* 0x80: ms_per_frame scale */ + 0x48, 0xEE, 0x00, 0x00, /* 0x84: Rate: Rate/Scale == samples/second */ + 0x00, 0x00, 0x00, 0x00, /* 0x88: start */ + 0x00, 0x00, 0x00, 0x00, /* 0x8c: length (video_frames) */ + 0x00, 0x00, 0x00, 0x00, /* 0x90: suggested buffer size */ + 0xFF, 0xFF, 0xFF, 0xFF, /* 0x94: quality */ + 0x00, 0x00, 0x00, 0x00, /* 0x98: sample size */ + 0x00, 0x00, 0x00, 0x00, /* 0x9c: frame */ + 0x00, 0x00, 0x00, 0x00, /* 0xa0: frame */ + /* -- video stream format -- */ + 0x73, 0x74, 0x72, 0x66, /* 0xa4: strf */ + 0x28, 0x00, 0x00, 0x00, /* 0xa8: number of bytes to follow (40) */ + 0x28, 0x00, 0x00, 0x00, /* 0xac: size (dito) */ + 0x40, 0x01, 0x00, 0x00, /* 0xb0: width */ + 0xf0, 0x00, 0x00, 0x00, /* 0xb4: height */ + 0x01, 0x00, 0x0C, 0x00, /* 0xb8: planes(1) : count(24) */ + 0x4D, 0x4A, 0x50, 0x47, /* 0xbc: encoder MJPG */ + 0x00, 0xC2, 0x01, 0x00, /* 0xc0: Size image */ + 0x00, 0x00, 0x00, 0x00, /* 0xc4: XPelsPerMeter */ + 0x00, 0x00, 0x00, 0x00, /* 0xc8: YPelsPerMeter */ + 0x00, 0x00, 0x00, 0x00, /* 0xcc: Number of colors used */ + 0x00, 0x00, 0x00, 0x00, /* 0xd0: Number of colors important */ + /* do we have to pad with JUNK here ? */ + 0x4C, 0x49, 0x53, 0x54, /* 0xd4: LIST */ + 0x00, 0x00, 0x00, 0x00, /* 0xd8: size of list */ + 0x6D, 0x6F, 0x76, 0x69 /* 0xda: movi */ +}; + +#endif /* __SPCA50X_AVI_HEADER_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-flash.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-flash.c new file mode 100644 index 00000000..efb73efd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-flash.c @@ -0,0 +1,1078 @@ +/****************************************************************/ +/* spca50x_flash.c - Gphoto2 library for cameras with a sunplus */ +/* spca50x chip and flash memory */ +/* */ +/* */ +/* Authors: Till Adam */ +/* Ian MacArthur */ +/* John Maushammer */ +/* based on work done by: */ +/* Mark A. Zimmerman */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ +#define _DEFAULT_SOURCE + +#include "config.h" +#include +#include +#include + +#include +#include +#include +#include "gphoto2-endian.h" + +#define GP_MODULE "spca50x" +#include "spca50x.h" +#include "spca50x-flash.h" + +/* forward declarations... local to this file */ +static int +spca500_flash_84D_get_file_info (CameraPrivateLibrary * lib, int index, + int *w, int *h, int *t, int *sz); + +/* dsc-350_get_file func. */ +static int +spca500_flash_84D_get_file (CameraPrivateLibrary * pl, + uint8_t ** data, unsigned int *len, int index, int thumbnail); + +/*****************************************************************************/ +static void +free_files (CameraPrivateLibrary *pl) +{ + int i; + if (pl->files) { + for (i = 0; i < pl->num_files_on_flash; i++){ + if(pl->files[i].thumb) free (pl->files[i].thumb); + } + free(pl->files); + pl->files = NULL; + } +} + +static int +spca50x_flash_wait_for_ready(CameraPrivateLibrary *pl) +{ + /* FIXME tweak this. What is reasonable? 30 s seems a bit long */ + int timeout = 30; + uint8_t ready = 0; + while (timeout--) { +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep(1); +#endif + if (pl->bridge == BRIDGE_SPCA500) { + CHECK (gp_port_usb_msg_read (pl->gpdev, + 0x00, 0x0000, 0x0101, + (char*)&ready, 0x01)); + } else { + if (pl->fw_rev == 1) { + CHECK (gp_port_usb_msg_read (pl->gpdev, + 0x0b, 0x0000, 0x0004, + (char*)&ready, 0x01)); + } else { + CHECK (gp_port_usb_msg_read (pl->gpdev, + 0x21, 0x0000, 0x0000, + (char*)&ready, 0x01)); + } + } + if (ready) + return GP_OK; + } + return GP_ERROR; +} + +static int +spca500_flash_84D_wait_while_busy(CameraPrivateLibrary *pl) +{ + int timeout = 30; + uint8_t ready = 0; + + while (timeout--) { +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep(1); +#endif + CHECK (gp_port_usb_msg_read (pl->gpdev, + 0x00, 0x0000, 0x0100, + (char*)&ready, 0x01)); + + if (ready == 0) + return GP_OK; + } + return GP_ERROR; +} + +int +spca50x_flash_get_TOC(CameraPrivateLibrary *pl, int *filecount) +{ + uint16_t n_toc_entries; + int toc_size = 0; + if (pl->dirty_flash == 0){ + /* TOC has been read already, and stored in the pl, + so let's not read it again unless "dirty" gets set, + e.g. by a reset, delete or capture action... */ + *filecount = pl->num_files_on_flash; + return GP_OK; + } + pl->num_files_on_flash = 0; + + if (pl->bridge == BRIDGE_SPCA500) { /* for dsc350 type cams */ + /* command mode */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x00, 0x0080, 0x0100, + NULL, 0x00)); + /* trigger TOC upload */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x05, 0x0000, 0x000d, + NULL, 0x00)); + toc_size = 0x100; /* always 256 for the dsc-350 cams */ + } else { + + if (pl->fw_rev == 1) { + CHECK (gp_port_usb_msg_read (pl->gpdev, + 0x0b, 0x0000, 0x0000, + (char*)&n_toc_entries, 0x02)); + /* Each file gets two toc entries, one for the image, + one for the thumbnail */ + LE16TOH (n_toc_entries); + *filecount = n_toc_entries/2; + } else { + CHECK (gp_port_usb_msg_read (pl->gpdev, + 0x54, 0x0000, 0x0000, + (char*)&n_toc_entries, 0x02)); + LE16TOH (n_toc_entries); + *filecount = n_toc_entries; + } + /* If empty, return now */ + if (n_toc_entries == 0) + return GP_OK; + + /* Request the TOC */ + if (pl->fw_rev == 1) { + CHECK (gp_port_usb_msg_read (pl->gpdev, 0x0a, + n_toc_entries, 0x000c, + NULL, 0x00)); + } else { + CHECK (gp_port_usb_msg_read (pl->gpdev, 0x54, + n_toc_entries, 0x0001, + NULL, 0x00)); + } + /* slurp it in. Supposedly there's 32 bytes in each entry. */ + toc_size = n_toc_entries * 32; + + /* align */ + if (toc_size % 512 != 0) + toc_size = ((toc_size / 512) + 1) * 512; + } + if (pl->flash_toc) + free (pl->flash_toc); + pl->flash_toc = malloc(toc_size); + if (!pl->flash_toc) + return GP_ERROR_NO_MEMORY; + + CHECK (spca50x_flash_wait_for_ready(pl)); + + if (pl->bridge == BRIDGE_SPCA500) { /* For dsc350 type cams */ + /* read the TOC from the cam */ + CHECK (gp_port_read (pl->gpdev, (char *)pl->flash_toc, toc_size)); + /* reset to idle */ + CHECK (gp_port_usb_msg_write(pl->gpdev, 0x00, 0x0000, 0x0100, NULL, 0x0)); + *filecount = (int)pl->flash_toc[10]; + /* Now, create the files info buffer */ + free_files(pl); + /* NOTE: using calloc to ensure new block is "empty" */ + pl->files = calloc (*filecount , sizeof (struct SPCA50xFile)); + if (!pl->files) + return GP_ERROR_NO_MEMORY; + } else { /* all other cams with flash... */ + /* read the TOC from the cam */ + CHECK (gp_port_read (pl->gpdev, (char *)pl->flash_toc, toc_size)); + } + /* record that TOC has been updated - clear the "dirty" flag */ + pl->num_files_on_flash = *filecount; + pl->dirty_flash = 0; + + return GP_OK; +} + + +int +spca50x_flash_get_filecount (CameraPrivateLibrary *pl, int *filecount) +{ + uint16_t response = 0; + + if (pl->bridge == BRIDGE_SPCA500) { /* dsc350 cams */ + return spca50x_flash_get_TOC (pl, filecount); + } else { + if (pl->fw_rev == 1) { + CHECK (gp_port_usb_msg_read (pl->gpdev, + 0x0b, 0x0000, 0x0000, + (char*)&response, 0x02)); + /* Each file gets two toc entries, one for the + image, one for the thumbnail */ + LE16TOH (response); + *filecount = response/2; + } else { + CHECK (gp_port_usb_msg_read (pl->gpdev, + 0x54, 0x0000, 0x0000, + (char*)&response, 0x02)); + LE16TOH (response); + *filecount = response; + } + } + return GP_OK; +} + +int +spca500_flash_delete_file (CameraPrivateLibrary *pl, int index) +{ + if (pl->bridge == BRIDGE_SPCA500) { + /* command mode */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x00, 0x0080, 0x0100, + NULL, 0x00)); + + /* trigger image delete */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x07, (index + 1), 0x000a, + NULL, 0x00)); + + /* reset to idle */ + CHECK (gp_port_usb_msg_write(pl->gpdev, 0x00, 0x0000, 0x0100, NULL, 0x0)); + + /* invalidate TOC/info cache */ + pl->dirty_flash = 1; + return GP_OK; + } else { + /* not supported on the 504 style cams */ + return GP_ERROR_NOT_SUPPORTED; + } +} /* spca500_flash_delete_file */ + +int +spca50x_flash_delete_all (CameraPrivateLibrary *pl, GPContext *context) +{ + if (pl->bridge == BRIDGE_SPCA500) { /* dsc350 cams */ + /* command mode */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x00, 0x0080, 0x0100, + NULL, 0x00)); + + /* delete all command */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x07, 0xffff, 0x000a, + NULL, 0x00)); + + /* wait until the camera is not busy any more */ + CHECK (spca500_flash_84D_wait_while_busy(pl)); + } else { + if (pl->fw_rev == 1) { + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x1, 0x0, 0x1, NULL, 0x0)); + } else { + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x52, 0x0, 0x0, NULL, 0x0)); + } + } + + /* invalidate TOC/info cache */ + pl->dirty_flash = 1; + return GP_OK; +} + +int +spca500_flash_capture (CameraPrivateLibrary *pl) +{ + if (pl->bridge == BRIDGE_SPCA500) { + /* command mode */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x00, 0x0080, 0x0100, + NULL, 0x00)); + + /* trigger image capture */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x03, 0x0000, 0x0004, + NULL, 0x00)); + + /* wait until the camera is not busy any more */ + CHECK (spca500_flash_84D_wait_while_busy(pl)); + + /* invalidate TOC/info cache */ + pl->dirty_flash = 1; + return GP_OK; + } else if (pl->bridge == BRIDGE_SPCA504B_PD) { + /* trigger image capture */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x51, 0x0000, 0x0000, + NULL, 0)); + + /* wait until the camera is not busy any more */ + /* spca50x_flash_wait_for_ready doesn't work here */ +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep(3); +#endif + + /* invalidate TOC/info cache */ + pl->dirty_flash = 1; + return GP_OK; + } else { + /* not supported on the 504 style cams, but procedure used by + * SPCA504_PD will probably work */ + return GP_ERROR_NOT_SUPPORTED; + } +} + +int +spca50x_flash_get_file_name (CameraPrivateLibrary *pl, int index, char *name) +{ + uint8_t *p; + if (pl->bridge == BRIDGE_SPCA500) { + char p[30]; + int w, h, type, size; + + memset (p, 0, sizeof(p)); + /* dsc350 - get the file info, so we can set the file type + correctly */ + spca500_flash_84D_get_file_info (pl, index, &w, &h, &type, &size); + if (type < 3){ /* for single images */ + snprintf (p, sizeof(p), "Img%03d.jpg", (index + 1)); + } + else if (type < 6){ /* for multi-frame images */ + snprintf (p, sizeof(p), "Img%03d-4.jpg", (index + 1)); + } + else if (type < 8){ /* for avi */ + snprintf (p, sizeof(p), "Mov%03d.avi", (index + 1)); + } + else{ + snprintf (p, sizeof(p), "Unknown"); + } + strcpy (name, p); + } else { + if (pl->fw_rev == 1) { + p = pl->flash_toc + index*2*32; + } else { + p = pl->flash_toc + index*32; + } + memcpy (name, p, 8); + name[8] = '.'; + memcpy (name+9, p+8, 3); + name[12] = '\0'; + } + return GP_OK; +} + +/* extract ascii-encoded number from file name */ +static int +spca50x_flash_get_number_from_file_name (CameraPrivateLibrary *pl, int index, int *file_number) +{ + char name[14]; + + CHECK (spca50x_flash_get_file_name (pl, index, name)); + if(sscanf(&(name[4]), "%d", file_number) != 1) /* skip "DSC_" */ + return GP_ERROR; + return GP_OK; +} + +static int +spca500_flash_84D_get_file_info (CameraPrivateLibrary * pl, int index, + int *w, int *h, int *t, int *sz) +{ + char hdr[260]; + char waste[260]; + int i; + unsigned long size; + + /* First, check if the info. is already buffered in the cam private lib + * We DO NOT want to be fetching the entire thumbnail just to get the file size...*/ + if ((pl->dirty_flash == 0) && (pl->files[index].type != 0)){ + /* This file must have been checked before */ + *w = pl->files[index].width ; + *h = pl->files[index].height ; + *t = pl->files[index].type ; + *sz = pl->files[index].size ; + return GP_OK; + } else if (pl->dirty_flash != 0){ /* should never happen, but just in case... */ + CHECK(spca50x_flash_get_TOC (pl, &i)); + if ( index >= i){ + /* asking for a picture that doesn't exist */ + return GP_ERROR; + } + } + + /* ...else we must query the cam the hard way... */ + /* command mode */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x00, 0x0080, 0x0100, + NULL, 0x00)); + /* trigger Thumbnail upload */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x07, (index + 1), 0x0000, + NULL, 0x00)); + /* NOTE: must use (index + 1) here as the cam indexes images from 1, + * whereas libgphoto2 indexes from 0.... */ + + /* wait for ready */ + CHECK (spca50x_flash_wait_for_ready(pl)); + /* read the header from the cam */ + CHECK (gp_port_read (pl->gpdev, hdr, 256)); /* always 256 for the DSC-350+ */ + + /* Read the rest of the header... and discard it */ + CHECK (gp_port_read (pl->gpdev, waste, 256)); + + /* Now we have to read in the thumbnail data anyway - + so we might as well store it for later */ + { + int j; + uint8_t * buf; + if (pl->files[index].thumb){ + free (pl->files[index].thumb); /* discard any previous thumbnail data */ + pl->files[index].thumb = NULL; + } + buf = malloc (38 * 256); /* create a new buffer to hold the thumbnail data */ + if (buf){ + j = 0; + for (i = 0; i < 38; i++) { /* Now read in the image data */ + /* read a buffer from the cam */ + CHECK (gp_port_read (pl->gpdev, (char *)&buf[j], 256)); + j += 256; + } + pl->files[index].thumb = buf; + } else { /* couldn't get a buffer - read in the data anyway and discard it */ + for (i = 0; i < 38; i++) {/* Thumbnails ALWAYS download 38 blocks...*/ + CHECK (gp_port_read (pl->gpdev, waste, 256)); + } + pl->files[index].thumb = NULL; + } + } /* end of thumbnail storing loop */ + + /* reset to idle */ + CHECK (gp_port_usb_msg_write(pl->gpdev, 0x00, 0x0000, 0x0100, + NULL, 0x0)); + + /* OK, now we have a hdr we can work with... */ + /* try and get the size */ + size = ((unsigned long)hdr[15] & 0xff) + + (((unsigned long)hdr[16] & 0xff) << 8) + + (((unsigned long)hdr[17] & 0xff) << 16); + *sz = size; + + /* Try and determine the file type */ + /* Should enumerate the possible types properly, somewhere... */ + i = (int)hdr[2]; /* should be the file type */ + *t = i; + switch (i){ + case 0: /* this will be 320 x 240 single-frame */ + *w = 320; + *h = 240; + break; + case 1: /* this will be 640 x 480 single-frame */ + *w = 640; + *h = 480; + break; + case 2: /* this will be 1024 x 768 single-frame */ +/* These are actually 640x480 pics - the win driver just expands them + * in the host before it stores them... What should we do here? Continue with that + * pretence, or tell the user the truth? */ + /* *w = 1024; */ + /* *h = 768; */ + *w = 640; + *h = 480; + break; + case 3: /* this will be 320 x 240 multi-frame */ + *w = 320; + *h = 240; + break; + case 4: /* this will be 640 x 480 multi-frame */ + *w = 640; + *h = 480; + break; + case 5: /* this will be 1024 x 768 multi-frame */ +/* See notes above! */ + /* *w = 1024; */ + /* *h = 768; */ + *w = 640; + *h = 480; + break; + case 6: /* ??? TAKE A GUESS!!! 160 x 120 avi ??? MUST verify this sometime.... */ + *w = 160; + *h = 120; + break; + case 7: /* this is 320 x 240 avi */ + *w = 320; + *h = 240; + break; + default: + *t = 99; /* or something equally invalid... */ + *w = 0; + *h = 0; + *sz = 0; /* if we don't know what it is, it can't have a size! */ + break; + } + + /* now add this new set of data to the info_cache */ + if (pl->dirty_flash == 0){ + /* Only update the files cache if it exists, i.e. if dirty is zero */ + /* We should never get here if dirty is set, however ! */ + pl->files[index].type = *t; + pl->files[index].width = *w; + pl->files[index].height = *h; + pl->files[index].size = *sz; + } + + return GP_OK; + +} /* end of spca500_flash_84D_get_file_info */ + +static int +spca50x_process_thumbnail (CameraPrivateLibrary *lib, /* context */ + uint8_t ** data, unsigned int *len, /* return these items */ + uint8_t * buf, uint32_t file_size, int index) /* input these items */ +{ + uint32_t alloc_size, true_size, w, h, hdrlen; + uint8_t *tmp, *rgb_p, *yuv_p; + uint8_t *p2 = lib->flash_toc + index*2*32; + + if (lib->bridge == BRIDGE_SPCA500) { /* for dsc 350 cams */ + w = 80; /* Always seems to be 80 x 60 for the DSC-350 cams */ + h = 60; + } else { + /* thumbnails are generated from dc coefficients and are + * therefore w/8 x h/8 + * Since the dimensions of the thumbnail in the TOC are + * always [0,0], Use the TOC entry for the full image. + */ + w = ((p2[0x0c] & 0xff) + (p2[0x0d] & 0xff) * 0x100) / 8; + h = ((p2[0x0e] & 0xff) + (p2[0x0f] & 0xff) * 0x100) / 8; + } + + /* Allow for a long header; get the true length later. + */ + hdrlen = 15; + alloc_size = w * h * 3 + hdrlen; + tmp = malloc (alloc_size); + if (!tmp) + return GP_ERROR_NO_MEMORY; + + /* Write the header and get its length. Then, verify that + * we allocated enough memory. + * This should never fail; it would be nice to have an error + * code like GP_ERROR_CAMLIB_INTERNAL for cases like this. + */ + hdrlen = snprintf((char*)tmp, alloc_size, "P6 %d %d 255\n", w, h); + true_size = w * h * 3 + hdrlen; + if ( true_size > alloc_size ) { + free (tmp); + return GP_ERROR; + } + + yuv_p = buf; + rgb_p = tmp + hdrlen; + while ((yuv_p < buf + file_size) && (rgb_p < tmp + hdrlen + w*h*3)) { + uint32_t u, v, y, y2; + uint32_t r, g, b; + + y = yuv_p[0]; + y2 = yuv_p[1]; + u = yuv_p[2]; + v = yuv_p[3]; + + CHECK (yuv2rgb (y, u, v, &r, &g, &b)); + *rgb_p++ = r; + *rgb_p++ = g; + *rgb_p++ = b; + + CHECK (yuv2rgb (y2, u, v, &r, &g, &b)); + *rgb_p++ = r; + *rgb_p++ = g; + *rgb_p++ = b; + + yuv_p += 4; + } + free (buf); + *data = tmp; + *len = true_size; + + return GP_OK; +} /* spca50x_process_thumbnail */ + +static int +spca50x_flash_process_image (CameraPrivateLibrary *pl, /* context */ + uint8_t ** data, unsigned int *len, /* return these items */ + uint8_t * buf, uint32_t buf_size, int index) /* input these items */ +{ + uint8_t *lp_jpg; + uint8_t qIndex = 0, format; + int file_size; + + int w = pl->files[index].width; + int h = pl->files[index].height; + + /* qindex == 2 seems to be right for all the dsc350 images - so far!!! */ + qIndex = 2 ; /* FIXME - what to do about Qtable stuff? */ + + /* decode the image size */ + if (w > 320){ + format = 0x21; /* for 640 size images */ + } else { + format = 0x22; /* for 320 x 240 size images */ + } + + file_size = buf_size + SPCA50X_JPG_DEFAULT_HEADER_LENGTH + 1024 * 10; + + /* now build a jpeg */ + lp_jpg = malloc (file_size); + if (!lp_jpg) + return GP_ERROR_NO_MEMORY; + + create_jpeg_from_data (lp_jpg, buf, qIndex, w, + h, format, buf_size, &file_size, + 0, 0); + free (buf); + lp_jpg = realloc (lp_jpg, file_size); + *data = lp_jpg; + *len = file_size; + + return (GP_OK); +} + +static int +spca500_flash_84D_get_file (CameraPrivateLibrary * pl, + uint8_t ** data, unsigned int *len, int index, int thumbnail) +{ + char tbuf[260]; /* for the file data blocks */ + int i, j; /* general loop vars */ + int blks; /* number of 256 byte blocks to fetch */ + int sz; /* number of bytes in image */ + uint8_t *buf; /* buffer for the read data */ + int type; /* type of image reported by header */ + int w, h; /* width, height of file being read */ + int true_len; /* length determined by actually counting the loaded data! */ + + /* Check the info. first, so we KNOW the file type before we start to download it...! */ + /* NOTE: The check should be really easy, as the info ought to be in the files info cache */ + spca500_flash_84D_get_file_info (pl, index, &w, &h, &type, &sz); + if (type >= 3) { /* for now, only support single frame still images */ + return GP_ERROR_NOT_SUPPORTED; + /* what to do for multi-frame images? (type 3, 4, 5) or avi's? (6, 7) */ + } + + /* OK, we've decided what type of file it is, now lets upload it... */ + if ((thumbnail != 0) && (pl->files[index].thumb != NULL)){ + /* We can cheat here - we already have the thumbnail data in a cache, so don't load it again */ + blks = 38; + buf = pl->files[index].thumb; + pl->files[index].thumb = NULL; /* we will release buf, so this pointer must be "emptied" */ + } + else { + /* We need to download this data from the cam... */ + /* set command mode */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x00, 0x0080, 0x0100, + NULL, 0x00)); + + /* trigger image upload */ + if (thumbnail){ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x07, (index + 1), 0x0000, /* code 0 gets the thumbnail */ + NULL, 0x00)); + } else { + /* code for different image types...? */ + CHECK (gp_port_usb_msg_write (pl->gpdev, + 0x07, (index + 1), 0x0001, /* code 1 gets the main image */ + NULL, 0x00)); + } + + /* wait for ready */ + CHECK (spca50x_flash_wait_for_ready(pl)); + + /* read the header from the cam */ + CHECK (gp_port_read (pl->gpdev, tbuf, 256)); /* always 256 for the DSC-350+ */ + + /* Read the rest of the header... and discard it */ + CHECK (gp_port_read (pl->gpdev, tbuf, 256)); + + if (thumbnail){ + blks = 38 ; /* always 38 blocks in a thumbnail with this setup */ + sz = 0; /* unknown, it's NOT recorded in the header or TOC as such... */ + /* Note the width/height of the thumbnail is fixed at 80 x 60 I believe. */ + } + else { /* full image... */ + /* find nearest EVEN number of blocks bigger than the size */ + blks = (sz / 256) + 1; + if ((blks & 1) != 0){ /* block count is odd, not allowed */ + blks += 1; + } + } + + /* create a buffer to hold all the read in data */ + buf = malloc (blks * 256); + if (!buf) + return GP_ERROR_NO_MEMORY; + + j = 0; /* k = 0; */ + /* Now read in the image data */ + for (i = 0; i < blks; i++) { + /* read a buffer from the cam */ + CHECK (gp_port_read (pl->gpdev, (char *)&buf[j], 256)); + j += 256; + } + + /* OK, that's all the data read in, set cam to idle */ + CHECK (gp_port_usb_msg_write(pl->gpdev, 0x00, 0x0000, 0x0100, NULL, 0x0)); + } + + /* Count how many bytes file really is! We use this to discard the padding zeros */ + sz = (blks * 256) - 1; + /* look for the last non-zero byte in the file... + * I hope the file never *really* ends with a zero!*/ + while (buf[sz] == 0) { + sz -= 1; + } + true_len = sz + 1; + + if (thumbnail) { /* post processing of thumbnail data */ + CHECK(spca50x_process_thumbnail (pl, data, len, buf, true_len, index)); + } else { /* post processing of single frame images */ + CHECK(spca50x_flash_process_image (pl, data, len, buf, true_len, index)); + } + return GP_OK; +} /* end of spca500_flash_84D_get_file */ + + +int +spca50x_flash_get_file_dimensions (CameraPrivateLibrary *pl, int index, int *w, int *h) +{ + uint8_t *p; + + if (pl->bridge == BRIDGE_SPCA500) { /* for dsc 350 cams */ + int type, size; + return spca500_flash_84D_get_file_info (pl, index, w, h, &type, &size); + } + + if (pl->fw_rev == 1) { + p = pl->flash_toc + index*2*32; + } else { + p = pl->flash_toc + index*32; + } + + *w = (p[0x0c] & 0xff) + (p[0x0d] & 0xff) * 0x100; + *h = (p[0x0e] & 0xff) + (p[0x0f] & 0xff) * 0x100; + return GP_OK; +} + +int +spca50x_flash_get_file_size (CameraPrivateLibrary *pl, int index, int *size) +{ + uint8_t *p; + + if (pl->bridge == BRIDGE_SPCA500) { /* for dsc350 cams */ + int type, w, h; + return spca500_flash_84D_get_file_info (pl, index, &w, &h, &type, size); + } + + if (pl->fw_rev == 1) { + p = pl->flash_toc + index*2*32; + } else { + p = pl->flash_toc + index*32; + } + + *size = (p[0x1c] & 0xff) + + (p[0x1d] & 0xff) * 0x100 + + (p[0x1e] & 0xff) * 0x10000 + + (p[0x1f] & 0xff) * 0x1000000; + + return GP_OK; +} + +int +spca50x_flash_get_file (CameraPrivateLibrary *lib, GPContext *context, + uint8_t ** data, unsigned int *len, int index, int thumbnail) +{ + uint32_t file_size = 0, aligned_size = 0; + uint8_t *p, *buf; + int file_number; + int align_to, ret; + + if (lib->bridge == BRIDGE_SPCA500) { /* for dsc 350 cams */ + return spca500_flash_84D_get_file (lib, data, len, index, thumbnail); + } + + if (lib->fw_rev != 1 && thumbnail) + return GP_ERROR_NOT_SUPPORTED; + + if (!lib->flash_toc) + return GP_ERROR; + + if (thumbnail) { + p = lib->flash_toc + (index*2+1) * 32; + } else { + if (lib->fw_rev == 1) { + p = lib->flash_toc + index*2*32; + } else { + p = lib->flash_toc + index*32; + } + } + + aligned_size = file_size = + (p[0x1c] & 0xff) + + (p[0x1d] & 0xff) * 0x100 + + (p[0x1e] & 0xff) * 0x10000; + + /* Trigger upload of image data */ + if (thumbnail) { + CHECK (gp_port_usb_msg_write (lib->gpdev, + 0x0c, index+1, 0x0006, NULL, 0x00)); + } else { + if (lib->fw_rev == 1) { + CHECK (gp_port_usb_msg_write (lib->gpdev, + 0x0a, index+1, 0x000d, NULL, 0x00)); + } else { + if(lib->bridge != BRIDGE_SPCA504B_PD) { + CHECK (gp_port_usb_msg_write (lib->gpdev, + 0x54, index+1, 0x0002, NULL, 0x00)); + } else { + CHECK (spca50x_flash_get_number_from_file_name( + lib, index, &file_number)); + CHECK (gp_port_usb_msg_write (lib->gpdev, + 0x54, file_number, 0x0002, NULL, 0x00)); + } + } + } + + if ((lib->fw_rev == 1) || (lib->bridge == BRIDGE_SPCA504B_PD)) { + align_to = 0x4000; + } else { + align_to = 0x2000; + } + /* align */ + if (file_size % align_to != 0) + aligned_size = ((file_size / align_to) + 1) * align_to; + + buf = malloc (aligned_size); + if (!buf) + return GP_ERROR_NO_MEMORY; + + ret = spca50x_flash_wait_for_ready(lib); + if (ret < GP_OK) { + free (buf); + return ret; + } + ret = gp_port_read (lib->gpdev, (char *)buf, aligned_size); + if (ret < GP_OK) { + free (buf); + return ret; + } + /* For images, we are done now, thumbnails need to be converted from + * yuv to rgb and a pbm header added. */ + if (thumbnail) { + ret = spca50x_process_thumbnail (lib, data, len, buf, file_size, index); + if (ret < GP_OK) { + free (buf); + return ret; + } + } else { + *data = buf; + *len = file_size; + } + return GP_OK; +} + +/* + * Deinit camera + */ +int +spca50x_flash_close (CameraPrivateLibrary *pl, GPContext *context) +{ + if (pl->fw_rev == 1) { + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x00, 0x01, 0x2306, + NULL, 0x00)); + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x00, 0x00, 0x0d04, + NULL, 0x00)); + } else { + /* Anything we need to do? */ + + } + + if (!pl->dirty_flash && pl->bridge == BRIDGE_SPCA500) { + /* check if we need to free the file info buffers */ + free_files(pl); + } + pl->dirty_flash = 1; + return GP_OK; +} + +/* + * Initialize the camera and write the jpeg registers. Read them back in to + * check whether the values are set correctly (wtf?) + */ +int +spca50x_flash_init (CameraPrivateLibrary *pl, GPContext *context) +{ + struct JPREG { + int reg; + int val; + }; + struct JPREG jpReg[] = { + { 0x2800, 0x0005 }, { 0x2840, 0x0005 }, + { 0x2801, 0x0003 }, { 0x2841, 0x0005 }, + { 0x2802, 0x0003 }, { 0x2842, 0x0007 }, + { 0x2803, 0x0005 }, { 0x2843, 0x000e }, + { 0x2804, 0x0007 }, { 0x2844, 0x001e }, + { 0x2805, 0x000c }, { 0x2845, 0x001e }, + { 0x2806, 0x000f }, { 0x2846, 0x001e }, + { 0x2807, 0x0012 }, { 0x2847, 0x001e }, + { 0x2808, 0x0004 }, { 0x2848, 0x0005 }, + { 0x2809, 0x0004 }, { 0x2849, 0x0006 }, + { 0x280a, 0x0004 }, { 0x284a, 0x0008 }, + { 0x280b, 0x0006 }, { 0x284b, 0x0014 }, + { 0x280c, 0x0008 }, { 0x284c, 0x001e }, + { 0x280d, 0x0011 }, { 0x284d, 0x001e }, + { 0x280e, 0x0012 }, { 0x284e, 0x001e }, + { 0x280f, 0x0011 }, { 0x284f, 0x001e }, + { 0x2810, 0x0004 }, { 0x2850, 0x0007 }, + { 0x2811, 0x0004 }, { 0x2851, 0x0008 }, + { 0x2812, 0x0005 }, { 0x2852, 0x0011 }, + { 0x2813, 0x0007 }, { 0x2853, 0x001e }, + { 0x2814, 0x000c }, { 0x2854, 0x001e }, + { 0x2815, 0x0011 }, { 0x2855, 0x001e }, + { 0x2816, 0x0015 }, { 0x2856, 0x001e }, + { 0x2817, 0x0011 }, { 0x2857, 0x001e }, + { 0x2818, 0x0004 }, { 0x2858, 0x000e }, + { 0x2819, 0x0005 }, { 0x2859, 0x0014 }, + { 0x281a, 0x0007 }, { 0x285a, 0x001e }, + { 0x281b, 0x0009 }, { 0x285b, 0x001e }, + { 0x281c, 0x000f }, { 0x285c, 0x001e }, + { 0x281d, 0x001a }, { 0x285d, 0x001e }, + { 0x281e, 0x0018 }, { 0x285e, 0x001e }, + { 0x281f, 0x0013 }, { 0x285f, 0x001e }, + { 0x2820, 0x0005 }, { 0x2860, 0x001e }, + { 0x2821, 0x0007 }, { 0x2861, 0x001e }, + { 0x2822, 0x000b }, { 0x2862, 0x001e }, + { 0x2823, 0x0011 }, { 0x2863, 0x001e }, + { 0x2824, 0x0014 }, { 0x2864, 0x001e }, + { 0x2825, 0x0021 }, { 0x2865, 0x001e }, + { 0x2826, 0x001f }, { 0x2866, 0x001e }, + { 0x2827, 0x0017 }, { 0x2867, 0x001e }, + { 0x2828, 0x0007 }, { 0x2868, 0x001e }, + { 0x2829, 0x000b }, { 0x2869, 0x001e }, + { 0x282a, 0x0011 }, { 0x286a, 0x001e }, + { 0x282b, 0x0013 }, { 0x286b, 0x001e }, + { 0x282c, 0x0018 }, { 0x286c, 0x001e }, + { 0x282d, 0x001f }, { 0x286d, 0x001e }, + { 0x282e, 0x0022 }, { 0x286e, 0x001e }, + { 0x282f, 0x001c }, { 0x286f, 0x001e }, + { 0x2830, 0x000f }, { 0x2870, 0x001e }, + { 0x2831, 0x0013 }, { 0x2871, 0x001e }, + { 0x2832, 0x0017 }, { 0x2872, 0x001e }, + { 0x2833, 0x001a }, { 0x2873, 0x001e }, + { 0x2834, 0x001f }, { 0x2874, 0x001e }, + { 0x2835, 0x0024 }, { 0x2875, 0x001e }, + { 0x2836, 0x0024 }, { 0x2876, 0x001e }, + { 0x2837, 0x001e }, { 0x2877, 0x001e }, + { 0x2838, 0x0016 }, { 0x2878, 0x001e }, + { 0x2839, 0x001c }, { 0x2879, 0x001e }, + { 0x283a, 0x001d }, { 0x287a, 0x001e }, + { 0x283b, 0x001d }, { 0x287b, 0x001e }, + { 0x283c, 0x0022 }, { 0x287c, 0x001e }, + { 0x283d, 0x001e }, { 0x287d, 0x001e }, + { 0x283e, 0x001f }, { 0x287e, 0x001e }, + { 0x283f, 0x001e }, { 0x287f, 0x001e } + }; + + int len = sizeof (jpReg) / sizeof (jpReg[0]); + uint8_t bytes[7]; + int i; + + if (pl->fw_rev == 1) { + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x00, 0x0000, 0x2000, + NULL, 0x00)); + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x00, 0x0013, 0x2301, + NULL, 0x00)); + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x00, 0x0001, 0x2883, + NULL, 0x00)); + + for (i=0 ; igpdev, 0x00, + jpReg[i].val, jpReg[i].reg, + NULL, 0x00)); + CHECK (gp_port_usb_msg_read (pl->gpdev, 0x00, 0x0000, + jpReg[i].reg, (char *)bytes, 0x01)); + } + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x00, 0x0001, 0x2501, + NULL, 0x00)); + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x00, 0x0000, 0x2306, + NULL, 0x00)); + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x08, 0x0000, 0x0006, + NULL, 0x00)); + + /* Read the same thing thrice, for whatever reason. + * From working on getting iso traffic working with this chip, I've found + * out, that 0x01, 0x0000, 0x0001 polls the chip for completion of a + * command. Unfortunately it is of yet unclear, what the exact procedure + * is. Until we know, let's keep this here. */ + CHECK (gp_port_usb_msg_read (pl->gpdev, 0x01, 0x0000, 0x0001, + (char *)bytes, 0x01)); + CHECK (gp_port_usb_msg_read (pl->gpdev, 0x01, 0x0000, 0x0001, + (char *)bytes, 0x01)); + CHECK (gp_port_usb_msg_read (pl->gpdev, 0x01, 0x0000, 0x0001, + (char *)bytes, 0x01)); + + /* Set to idle? */ + CHECK (gp_port_usb_msg_read (pl->gpdev, 0x01, 0x0000, 0x000f, + NULL, 0x00)); + + } else { + time_t t; + struct tm *ftm; + + /* firmware detection */ + CHECK (gp_port_usb_msg_read (pl->gpdev, 0x20, 0x0000, 0x0000, + (char *)bytes, 0x01)); + CHECK (gp_port_usb_msg_read (pl->gpdev, 0x20, 0x0000, 0x0000, + (char *)bytes, 0x05)); + CHECK (gp_port_usb_msg_read (pl->gpdev, 0x21, 0x0000, 0x0000, + (char *)bytes, 0x01)); + + /* + * The cam is supposed to sync up with the computer time here + * somehow, or at least that's what we think. */ + + time(&t); + ftm = localtime(&t); + + bytes[0] = ftm->tm_sec; + bytes[1] = ftm->tm_min; + bytes[2] = ftm->tm_hour; + bytes[3] = 0; /* what is that? either 0x0 or 0x6 */ + bytes[4] = ftm->tm_mday; + bytes[5] = ftm->tm_mon+1; + bytes[6] = ftm->tm_year-100; /* stupido. Year is 1900 + tm_year. + We need two digits only. */ + + + GP_DEBUG("Timestamp: %4d-%02d-%02d %2d:%02d:%02d", + ftm->tm_year+1900,ftm->tm_mon+1,ftm->tm_mday, + ftm->tm_hour,ftm->tm_min,ftm->tm_sec); + + for (i=0;i<7;i++) + CHECK (gp_port_usb_msg_write (pl->gpdev, 0x29, 0x0000, + i, (char *)bytes+i, 0x01)); + + } + + pl->dirty_flash = 1; + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-flash.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-flash.h new file mode 100644 index 00000000..705b3ae1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-flash.h @@ -0,0 +1,42 @@ +/* spca50x_flash.h + * + * This library is free software; you can redistribute and/or + * modify it inder the terms of the GNU Lesser Genreral Public + * License as publiced by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warrenty of + * MERCHANTABULITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * lesser General Public License for more details. + * + * Author: Till Adam + * based on work by: Mark A. Zimmerman + */ + +#ifndef __SPCA50X_FLASH_H__ +#define __SPCA50X_FLASH_H__ + +#include +#include + +#define CHECK(result) {int res; res = result; if (res < 0) return (res);} + +int spca50x_flash_init(CameraPrivateLibrary *pl, GPContext *context); +int spca50x_flash_close(CameraPrivateLibrary *pl, GPContext *context); + +int spca50x_flash_get_TOC(CameraPrivateLibrary *pl, int *filecount); +int spca50x_flash_get_file_name(CameraPrivateLibrary *pl, int index, char *name); +int spca50x_flash_get_file_dimensions(CameraPrivateLibrary *pl, int index, + int *w, int *h); +int spca50x_flash_get_file (CameraPrivateLibrary *pl, GPContext *context, + uint8_t **buf, unsigned int *len, int index, int thumbnail); +int spca50x_flash_get_file_size(CameraPrivateLibrary *pl, int index, int *size); +int spca50x_flash_get_filecount(CameraPrivateLibrary *pl, int *filecount); +int spca50x_flash_delete_all (CameraPrivateLibrary *pl, GPContext *context); + +/* for testing */ +int spca500_flash_delete_file (CameraPrivateLibrary *pl, int index); +int spca500_flash_capture (CameraPrivateLibrary *pl); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-jpeg-header.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-jpeg-header.h new file mode 100644 index 00000000..de6c37e5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-jpeg-header.h @@ -0,0 +1,178 @@ +#ifndef __SPCA50X_JPEG_HEADER_H +#define __SPCA50X_JPEG_HEADER_H + +/* + * Start from 0 -> 588 + * 7 - 70 : Quantization Table[0] + * 72 - 135 : Quantization Table[1] + */ +#define SPCA50X_JPG_DEFAULT_HEADER_PART1_LENGTH 136 +#define SPCA50X_JPG_DEFAULT_HEADER_PART2_LENGTH 420 +#define SPCA50X_JPG_DEFAULT_HEADER_PART3_LENGTH 33 + +static const uint8_t SPCA50xJPGDefaultHeaderPart1[SPCA50X_JPG_DEFAULT_HEADER_PART1_LENGTH] = { + /* SOI(Start of Image) */ + 0xFF,0xD8, + /* DQT(Define Quantization Table) */ + 0xFF,0xDB, + 0x00,0x84, + 0x00, + 0x05,0x03,0x04,0x04,0x04,0x03,0x05,0x04,0x04,0x04,0x06,0x05,0x05,0x06,0x08,0x0D, + 0x08,0x08,0x07,0x07,0x08,0x10,0x0C,0x0C,0x0A,0x0D,0x14,0x11,0x15,0x14,0x13,0x11, + 0x13,0x13,0x16,0x18,0x1F,0x1A,0x16,0x17,0x1E,0x17,0x13,0x13,0x1B,0x25,0x1C,0x1E, + 0x20,0x21,0x23,0x23,0x23,0x15,0x1A,0x27,0x29,0x26,0x22,0x29,0x1F,0x22,0x23,0X22, + 0X01, + 0x05,0x06,0x06,0x08,0x07,0x08,0x10,0x08,0x08,0x10,0x22,0x16,0x13,0x16,0x22,0x22, + 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, + 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, + 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22 +}; +static const uint8_t SPCA50xJPGDefaultHeaderPart2[SPCA50X_JPG_DEFAULT_HEADER_PART2_LENGTH] = { + /* DHT(Define Huffman Table) */ + 0xFF,0xC4, + 0x01,0xA2, + 0x00,0x00,0x01,0x05,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x01,0x00,0x03, + 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, + 0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x10,0x00,0x02,0x01,0x03,0x03, + 0x02,0x04,0x03,0x05,0x05,0x04,0x04,0x00,0x00,0x01,0x7D,0x01,0x02,0x03,0x00,0x04, + 0x11,0x05,0x12,0x21,0x31,0x41,0x06,0x13,0x51,0x61,0x07,0x22,0x71,0x14,0x32,0x81, + 0x91,0xA1,0x08,0x23,0x42,0xB1,0xC1,0x15,0x52,0xD1,0xF0,0x24,0x33,0x62,0x72,0x82, + 0x09,0x0A,0x16,0x17,0x18,0x19,0x1A,0x25,0x26,0x27,0x28,0x29,0x2A,0x34,0x35,0x36, + 0x37,0x38,0x39,0x3A,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x53,0x54,0x55,0x56, + 0x57,0x58,0x59,0x5A,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x73,0x74,0x75,0x76, + 0x77,0x78,0x79,0x7A,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x92,0x93,0x94,0x95, + 0x96,0x97,0x98,0x99,0x9A,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xB2,0xB3, + 0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA, + 0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7, + 0xE8,0xE9,0xEA,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0x11,0x00,0x02, + 0x01,0x02,0x04,0x04,0x03,0x04,0x07,0x05,0x04,0x04,0x00,0x01,0x02,0x77,0x00,0x01, + 0x02,0x03,0x11,0x04,0x05,0x21,0x31,0x06,0x12,0x41,0x51,0x07,0x61,0x71,0x13,0x22, + 0x32,0x81,0x08,0x14,0x42,0x91,0xA1,0xB1,0xC1,0x09,0x23,0x33,0x52,0xF0,0x15,0x62, + 0x72,0xD1,0x0A,0x16,0x24,0x34,0xE1,0x25,0xF1,0x17,0x18,0x19,0x1A,0x26,0x27,0x28, + 0x29,0x2A,0x35,0x36,0x37,0x38,0x39,0x3A,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A, + 0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A, + 0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89, + 0x8A,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7, + 0xA8,0xA9,0xAA,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xC2,0xC3,0xC4,0xC5, + 0xC6,0xC7,0xC8,0xC9,0xCA,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xE2,0xE3, + 0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA +}; +/* + * 5 - 6 : Image Height(H Byte,L Byte) + * 7 - 8 : Image Width(H Byte,L Byte) + */ +static const uint8_t SPCA50xJPGDefaultHeaderPart3[SPCA50X_JPG_DEFAULT_HEADER_PART3_LENGTH] = { + /* SOFn(Start of Frame) */ + 0xFF,0xC0, + 0x00,0x11, + 0x08,0x00,0x78,0x00,0xA0,0x03,0x01,0x21,0x00,0x02,0x11,0x01,0x03,0x11,0x01, + /* SOS(Start of Scan) */ + 0xFF,0xDA, + 0x00,0x0C, + 0x03,0x01,0x00,0x02,0x11,0x03,0x11,0x00,0x3F,0x00 +}; + +static const uint8_t SPCA50xQTable[20][64]= +{ + /* index 0, Q50 */ + { 16, 11, 12, 14, 12, 10, 16, 14, 13, 14, 18, 17, 16, 19, 24, 40, + 26, 24, 22, 22, 24, 49, 35, 37, 29, 40, 58, 51, 61, 60, 57, 51, + 56, 55, 64, 72, 92, 78, 64, 68, 87, 69, 55, 56, 80,109, 81, 87, + 95, 98,103,104,103, 62, 77,113,121,112,100,120, 92,101,103, 99 }, + { 17, 18, 18, 24, 21, 24, 47, 26, 26, 47, 99, 66, 56, 66, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99 }, + + /* index 1, Q70 */ + { 10, 7, 7, 8, 7, 6, 10, 8, 8, 8, 11, 10, 10, 11, 14, 24, + 16, 14, 13, 13, 14, 29, 21, 22, 17, 24, 35, 31, 37, 36, 34, 31, + 34, 33, 38, 43, 55, 47, 38, 41, 52, 41, 33, 34, 48, 65, 49, 52, + 57, 59, 62, 62, 62, 37, 46, 68, 73, 67, 60, 72, 55, 61, 62, 59 }, + { 10, 11, 11, 14, 13, 14, 28, 16, 16, 28, 59, 40, 34, 40, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59 }, + + /* index 2, Q80 */ + { 6, 4, 5, 6, 5, 4, 6, 6, 5, 6, 7, 7, 6, 8, 10, 16, + 10, 10, 9, 9, 10, 20, 14, 15, 12, 16, 23, 20, 24, 24, 23, 20, + 22, 22, 26, 29, 37, 31, 26, 27, 35, 28, 22, 22, 32, 44, 32, 35, + 38, 39, 41, 42, 41, 25, 31, 45, 48, 45, 40, 48, 37, 40, 41, 40 }, + { 7, 7, 7, 10, 8, 10, 19, 10, 10, 19, 40, 26, 22, 26, 40, 40, + 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, + 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, + 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40 }, + + /* index 3, Q85 */ + { 5, 3, 4, 4, 4, 3, 5, 4, 4, 4, 5, 5, 5, 6, 7, 12, + 8, 7, 7, 7, 7, 15, 11, 11, 9, 12, 17, 15, 18, 18, 17, 15, + 17, 17, 19, 22, 28, 23, 19, 20, 26, 21, 17, 17, 24, 33, 24, 26, + 29, 29, 31, 31, 31, 19, 23, 34, 36, 34, 30, 36, 28, 30, 31, 30 }, + { 5, 5, 5, 7, 6, 7, 14, 8, 8, 14, 30, 20, 17, 20, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30 }, + + /* index 4, Q90 */ + { 3, 2, 2, 3, 2, 2, 3, 3, 3, 3, 4, 3, 3, 4, 5, 8, + 5, 5, 4, 4, 5, 10, 7, 7, 6, 8, 12, 10, 12, 12, 11, 10, + 11, 11, 13, 14, 18, 16, 13, 14, 17, 14, 11, 11, 16, 22, 16, 17, + 19, 20, 21, 21, 21, 12, 15, 23, 24, 22, 20, 24, 18, 20, 21, 20 }, + { 3, 4, 4, 5, 4, 5, 9, 5, 5, 9, 20, 13, 11, 13, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20 }, + + /* index 5, Q60 */ + { 13, 9, 10, 11, 10, 8, 13, 11, 10, 11, 14, 14, 13, 15, 19, 32, + 21, 19, 18, 18, 19, 39, 28, 30, 23, 32, 46, 41, 49, 48, 46, 41, + 45, 44, 51, 58, 74, 62, 51, 54, 70, 55, 44, 45, 64, 87, 65, 70, + 76, 78, 82, 83, 82, 50, 62, 90, 97, 90, 80, 96, 74, 81, 82, 79 }, + { 14, 14, 14, 19, 17, 19, 38, 21, 21, 38, 79, 53, 45, 53, 79, 79, + 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, + 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, + 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79 }, + + /* index 6, Q25 */ + { 32, 22, 24, 28, 24, 20, 32, 28, 26, 28, 36, 34, 32, 38, 48, 80, + 52, 48, 44, 44, 48, 98, 70, 74, 58, 80,116,102,122,120,114,102, + 112,110,128,144,184,156,128,136,174,138,110,112,160,218,162,174, + 190,196,206,208,206,124,154,226,242,224,200,240,184,202,206,198 }, + { 34, 36, 36, 48, 42, 48, 94, 52, 52, 94,198,132,112,132,198,198, + 198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198, + 198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198, + 198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198 }, + + /* index 7, Q95 */ + { 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 2, 4, + 3, 2, 2, 2, 2, 5, 4, 4, 3, 4, 6, 5, 6, 6, 6, 5, + 6, 6, 6, 7, 9, 8, 6, 7, 9, 7, 6, 6, 8, 11, 8, 9, + 10, 10, 10, 10, 10, 6, 8, 11, 12, 11, 10, 12, 9, 10, 10, 10 }, + { 2, 2, 2, 2, 2, 2, 5, 3, 3, 5, 10, 7, 6, 7, 10, 10, + 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, + 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, + 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 }, + + /* index 8, Q93 */ + { 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 3, 2, 2, 3, 3, 6, + 4, 3, 3, 3, 3, 7, 5, 5, 4, 6, 8, 7, 9, 8, 8, 7, + 8, 8, 9, 10, 13, 11, 9, 10, 12, 10, 8, 8, 11, 15, 11, 12, + 13, 14, 14, 15, 14, 9, 11, 16, 17, 16, 14, 17, 13, 14, 14, 14 }, + { 2, 3, 3, 3, 3, 3, 7, 4, 4, 7, 14, 9, 8, 9, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 }, + + /* index 9, Q40 */ + { 20, 14, 15, 18, 15, 13, 20, 18, 16, 18, 23, 21, 20, 24, 30, 50, + 33, 30, 28, 28, 30, 61, 44, 46, 36, 50, 73, 64, 76, 75, 71, 64, + 70, 69, 80, 90,115, 98, 80, 85,109, 86, 69, 70,100,136,101,109, + 119,123,129,130,129, 78, 96,141,151,140,125,150,115,126,129,124 }, + { 21, 23, 23, 30, 26, 30, 59, 33, 33, 59,124, 83, 70, 83,124,124, + 124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124, + 124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124, + 124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124 } +}; +#endif /* __SPCA50X_JPEG_HEADER_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-registers.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-registers.h new file mode 100644 index 00000000..f1fd911d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-registers.h @@ -0,0 +1,84 @@ +/****************************************************************/ +/* spca50x-registers.h - Gphoto2 library for cameras with a */ +/* Sunplus spca50x chip */ +/* */ +/* Copyright 2002, 2003 Till Adam */ +/* */ +/* Author: Till Adam */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#ifndef __SPCA50X_REGISTERS_H__ +#define __SPCA50X_REGISTERS_H__ + + +/* ---- Register ---- */ +#define SPCA50X_REG_CamMode 0x2000 +/* ---- CamMode Value ---- */ +typedef enum +{ + SPCA50X_CamMode_Idle = 0, + SPCA50X_CamMode_DSC = 1, + SPCA50X_CamMode_VideoClip = 2, + SPCA50X_CamMode_PcCamera = 3, + SPCA50X_CamMode_Upload = 4 +} +SPCA50xCamMode; + +#define SPCA50X_REG_PbSrc 0x2301 +/* ---- PbSrc Value ---- */ +#define SPCA50X_DramUsb 0x13 + +#define SPCA50X_REG_AutoPbSize 0x2306 + +#define SPCA50X_REG_DramType 0x2705 + +#define SPCA50X_REG_ImageType 0x270c + +#define SPCA50X_REG_SdramSizeL 0x2710 /* Size [7:0] */ +#define SPCA50X_REG_SdramSizeM 0x2711 /* Size [15:8] */ +#define SPCA50X_REG_SdramSizeH 0x2712 /* Size [21:16] */ + +#define SPCA50X_REG_VlcAddressL 0x2713 +#define SPCA50X_REG_VlcAddressM 0x2714 +#define SPCA50X_REG_VlcAddressH 0x2715 + +#define SPCA50X_REG_MemWidthL 0x2720 +#define SPCA50X_REG_MemWidthH 0x2721 + +#define SPCA50X_REG_MemHeightL 0x2722 +#define SPCA50X_REG_MemHeightH 0x2723 + +#define SPCA50X_REG_Trigger 0x27a1 +/* ---- Trigger bit Value ---- */ +#define SPCA50X_TrigDramFifo 2 + +#define SPCA50X_REG_JFIF 0x2884 + +#define SPCA50X_REG_CompSizeL 0x2887 +#define SPCA50X_REG_CompSizeM 0x2888 +#define SPCA50X_REG_CompSizeH 0x2889 + +#define SPCA50X_REG_I2C_wIndex 0x2a08 +#define SPCA50X_REG_I2C_wValue 0x2a10 +#define SPCA50X_REG_I2C_rValue 0x2a30 +#define SPCA50X_REG_I2C_rStatus 0x2a06 + + +#endif /* __SPCA50X_REGISTERS_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-sdram.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-sdram.c new file mode 100644 index 00000000..f11cc8a3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-sdram.c @@ -0,0 +1,978 @@ +/****************************************************************/ +/* spca50x_sdram.c - Gphoto2 library for cameras with sunplus */ +/* spca50x chips */ +/* */ +/* Copyright 2002, 2003 Till Adam */ +/* */ +/* Author: Till Adam */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include +#include "gphoto2-endian.h" + +#include "spca50x.h" +#include "spca50x-sdram.h" +#include "spca50x-registers.h" +#include "spca50x-avi-header.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "spca50x" +static int spca50x_mode_set_idle (CameraPrivateLibrary * lib); +static int spca50x_is_idle (CameraPrivateLibrary * lib); +static int spca50x_mode_set_download (CameraPrivateLibrary * lib); +static int spca50x_download_data (CameraPrivateLibrary * lib, uint32_t start, + unsigned int size, uint8_t * buf); +static int spca50x_get_FATs (CameraPrivateLibrary * lib, int dramtype); +static int spca50x_sdram_get_file_count_and_fat_count + (CameraPrivateLibrary * lib, int dramtype); +static int spca50x_get_avi_thumbnail (CameraPrivateLibrary * lib, + uint8_t ** buf, unsigned int *len, + struct SPCA50xFile *g_file); +static int spca50x_get_image_thumbnail (CameraPrivateLibrary * lib, + uint8_t ** buf, unsigned int *len, + struct SPCA50xFile *g_file); +static int spca50x_get_avi (CameraPrivateLibrary * lib, uint8_t ** buf, + unsigned int *len, struct SPCA50xFile *g_file); +static int spca50x_get_image (CameraPrivateLibrary * lib, uint8_t ** buf, + unsigned int *len, struct SPCA50xFile *g_file); +static inline uint8_t *put_dword (uint8_t * ptr, uint32_t value); + + +static int +spca50x_sdram_get_fat_page (CameraPrivateLibrary * lib, int index, + int dramtype, uint8_t *p) +{ + switch (dramtype) { + case 4: /* 128 Mbit */ + CHECK (spca50x_download_data + (lib, 0x7fff80 - + index * 0x80, + SPCA50X_FAT_PAGE_SIZE, p)); + break; + case 3: /* 64 Mbit */ + CHECK (spca50x_download_data + (lib, 0x3fff80 - + index * 0x80, + SPCA50X_FAT_PAGE_SIZE, p)); + break; + default: + break; + } + + return GP_OK; +} + +static int +spca50x_sdram_get_file_count_and_fat_count (CameraPrivateLibrary * lib, + int dramtype) +{ + uint8_t theFat[256]; + + lib->num_fats = 0; + lib->num_files_on_sdram = 0; + + if (lib->bridge == BRIDGE_SPCA500){ + uint8_t lower, upper; + + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x5, 0, 0, NULL, 0)); +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep (1); +#endif + CHECK (gp_port_usb_msg_read + (lib->gpdev, 0, 0, 0xe15, + (char *) & lib->num_files_on_sdram, 1)); + LE32TOH (lib->num_files_on_sdram); + + /* get fatscount */ + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0x05, 0x0000, 0x0008, NULL, 0)); +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep (1); +#endif + CHECK (gp_port_usb_msg_read + (lib->gpdev, 0, 0, 0x0e19, + (char *)&lower, 1)); + CHECK (gp_port_usb_msg_read + (lib->gpdev, 0, 0, 0x0e20, + (char *)&upper, 1)); + + lib->num_fats = (((upper & 0xFF) << 8) | (lower & 0xFF)); + } else { + while (1) { + CHECK (spca50x_sdram_get_fat_page (lib, lib->num_fats, + dramtype, theFat)); + if (theFat[0] == 0xFF) + break; + + if (theFat[0] == 0x08 || theFat[0] == 0x00) + lib->num_files_on_sdram++; + + lib->num_fats++; + } + } + return (GP_OK); +} + +int +spca50x_sdram_delete_file (CameraPrivateLibrary * lib, unsigned int index) +{ + struct SPCA50xFile *g_file; + uint16_t fat_index; + + CHECK (spca50x_sdram_get_file_info (lib, index, &g_file)); + + if (lib->bridge == BRIDGE_SPCA500) + fat_index = 0x70FF - g_file->fat_start - 1; + else /* if (lib->bridge == BRIDGE_SPCA504) */ + fat_index = 0xD8000 - g_file->fat_start - 1; + + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0x06, fat_index, 0x0007, NULL, 0)); +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep (1); +#endif + + /* Reread fats the next time it is accessed */ + lib->dirty_sdram = 1; + + return GP_OK; +} + +int +spca50x_sdram_delete_all (CameraPrivateLibrary * lib) +{ + if (lib->fw_rev == 2) { + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0x71, 0x0000, 0x0000, NULL, 0)); + + } else { + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0x02, 0x0000, 0x0005, NULL, 0)); + } +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep (3); +#endif + + /* Reread fats the next time it is accessed */ + lib->dirty_sdram = 1; + return GP_OK; +} + +int +spca50x_sdram_request_file (CameraPrivateLibrary * lib, uint8_t ** buf, + unsigned int *len, unsigned int number, int *type) +{ + struct SPCA50xFile *g_file; + + CHECK (spca50x_sdram_get_file_info (lib, number, &g_file)); + + *type = g_file->mime_type; + if (g_file->mime_type == SPCA50X_FILE_TYPE_AVI) + return (spca50x_get_avi (lib, buf, len, g_file)); + else + return (spca50x_get_image (lib, buf, len, g_file)); +} + +static int +spca50x_get_image (CameraPrivateLibrary * lib, uint8_t ** buf, + unsigned int *len, struct SPCA50xFile *g_file) +{ + uint8_t *p, *lp_jpg; + uint8_t qIndex = 0, format; + uint32_t start; + uint8_t *mybuf; + int size, o_size, file_size, ret; + int omit_escape = 0; + + p = g_file->fat; + + /* get the position in memory where the image is */ + start = (p[1] & 0xff) + (p[2] & 0xff) * 0x100; + start *= 128; + + /* decode the image size */ + if (lib->bridge == BRIDGE_SPCA500) { + o_size = size = (p[5] & 0xff) * 0x100 + (p[6] & 0xff) * 0x10000; + qIndex = p[7] & 0x0f; + } else { + o_size = size = + (p[13] & 0xff) * 0x10000 + + (p[12] & 0xff) * 0x100 + + (p[11] & 0xff); + if (lib->fw_rev == 1) { + qIndex = p[7] & 0x0f; + } else if (lib->fw_rev == 2) { + omit_escape = 1; + qIndex = p[10] & 0x0f; + } + } + + format = 0x21; + + /* align */ + if (size % 64 != 0) + size = ((size / 64) + 1) * 64; + + file_size = size + SPCA50X_JPG_DEFAULT_HEADER_LENGTH + 1024 * 10; + + /* slurp in the image */ + mybuf = malloc (size); + if (!mybuf) + return GP_ERROR_NO_MEMORY; + + if (lib->bridge == BRIDGE_SPCA504) { + ret = spca50x_download_data (lib, start, size, mybuf); + if (ret < GP_OK) { + free (mybuf); + return ret; + } + } else if (lib->bridge == BRIDGE_SPCA500) { + /* find the file index on the camera */ + int index; + + index = (g_file->fat - lib->fats) / SPCA50X_FAT_PAGE_SIZE; + spca50x_reset (lib); + /* trigger upload of image at that index */ + ret = gp_port_usb_msg_write (lib->gpdev, 0x06, + 0x70FF - index, 0x01, NULL, 0); + if (ret < GP_OK) { + free (mybuf); + return ret; + } +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep (1); +#endif + ret = gp_port_read (lib->gpdev, (char *)mybuf, size); + if (ret < GP_OK) { + free (mybuf); + return ret; + } + /* the smallest ones are in a different format */ + if ((p[20] & 0xff) == 2) + format = 0x22; + } + /* now build a jpeg */ + lp_jpg = malloc (file_size); + if (!lp_jpg) { + free (mybuf); + return GP_ERROR_NO_MEMORY; + } + create_jpeg_from_data (lp_jpg, mybuf, qIndex, g_file->width, + g_file->height, format, o_size, &file_size, + 0, omit_escape); + + free (mybuf); + lp_jpg = realloc (lp_jpg, file_size); + *buf = lp_jpg; + *len = file_size; + + return (GP_OK); +} + +static int +spca50x_get_avi (CameraPrivateLibrary * lib, uint8_t ** buf, + unsigned int *len, struct SPCA50xFile *g_file) +{ + int i, j, length, ret; + int frame_count = 0, frames_per_fat = 0, fn = 0; + int size = 0; + int file_size; + int index_size; + uint32_t frame_size = 0, frame_width = 0, frame_height = 0; + uint32_t total_frame_size = 0; + uint32_t start = 0; + uint8_t *p, *mybuf, *avi, *start_of_file, *start_of_frame, *data; + uint8_t qIndex; + uint8_t *avi_index, *avi_index_ptr; + uint8_t index_item[16]; + + /* FIXME */ + if (lib->bridge == BRIDGE_SPCA500) + return GP_ERROR_NOT_SUPPORTED; + + p = g_file->fat; + + if (lib->fw_rev == 2) + qIndex = p[10] & 0x0f; + else + qIndex = p[7] & 0x0f; + + avi = mybuf = start_of_file = data = NULL; + + /* get the position in memory where the movie is */ + start = (p[1] & 0xff) + (p[2] & 0xff) * 0x100; + start *= 128; + + /* Frame w and h and qIndex dont change, so just use the values + * of the first frame */ + frame_width = (p[8] & 0xFF) * 16; + frame_height = (p[9] & 0xFF) * 16; + + /* Each movie consists of a number of frames, and can have more than + * one fat page. Iterate over all fat pages for this movie and count + * all frames in all fats. Same for size. */ + for (i = g_file->fat_start; i <= g_file->fat_end; i++) { + frames_per_fat = (p[49] & 0xFF) * 0x100 + (p[48] & 0xFF); + frame_count += frames_per_fat; + size += (p[13] & 0xFF) * 0x10000 + (p[12] & 0xFF) * 0x100 + + (p[11] & 0xFF); + if (frames_per_fat < 60) + break; + p += SPCA50X_FAT_PAGE_SIZE; + } + /* align */ + size = (size + 63) & 0xffffffc0; + + /* mem for index */ + index_size = frame_count * 16; + avi_index_ptr = avi_index = malloc (index_size); + if (!avi_index) + return GP_ERROR_NO_MEMORY; + + /* slurp in the movie */ + mybuf = malloc (size); + if (!mybuf) { + free (avi_index); + return GP_ERROR_NO_MEMORY; + } + + ret = spca50x_download_data (lib, start, size, mybuf); + if (ret < GP_OK) { + free (avi_index); + free (mybuf); + return ret; + } + + /* Now write our data to a file with an avi header */ + file_size = size + SPCA50X_AVI_HEADER_LENGTH + + (SPCA50X_JPG_DEFAULT_HEADER_LENGTH * frame_count) + + 8 + index_size /* for index chunk */ + + 1024 * 10 * frame_count; + + avi = malloc (file_size); + if (!avi) { + free (avi_index); + free (mybuf); + return GP_ERROR_NO_MEMORY; + } + + start_of_file = avi; + + /* prepare index item */ + put_dword (index_item, 0x63643030); /* 00dc */ + put_dword (index_item + 4, 0x10); /* KEYFRAME */ + + /* copy the header from the template */ + memcpy (avi, SPCA50xAviHeader, SPCA50X_AVI_HEADER_LENGTH); + + /* put the width and height into the riff header */ + put_dword(avi + 0x40, frame_width); + put_dword(avi + 0x44, frame_height); + + /* and at 0xb0 and 0xb4 */ + put_dword(avi + 0xb0, frame_width); + put_dword(avi + 0xb4, frame_height); + + avi += SPCA50X_AVI_HEADER_LENGTH; + + /* Reset to the first fat */ + p = g_file->fat; + data = mybuf; + + /* Iterate over fats and frames in each fat and build a jpeg for + * each frame. Add the jpeg to the avi and write an index entry. */ + for (i = g_file->fat_start; i <= g_file->fat_end; i++) { + frames_per_fat = ((p[49] & 0xFF) * 0x100 + (p[48] & 0xFF)); + + /* frames per fat might be lying, so double check how + many frames were already processed */ + if (frames_per_fat > 60 || frames_per_fat == 0 + || fn + frames_per_fat > frame_count) + break; + + for (j = 0; j < frames_per_fat; j++) { + frame_size = ((p[52 + j * 3] & 0xFF) * 0x10000) + + ((p[51 + j * 3] & 0xFF) * 0x100) + + (p[50 + j * 3] & 0xFF); + + memcpy (avi, SPCA50xAviFrameHeader, + SPCA50X_AVI_FRAME_HEADER_LENGTH); + + avi += SPCA50X_AVI_FRAME_HEADER_LENGTH; + start_of_frame = avi; + + /* jpeg starts here */ + if ((data - mybuf) + frame_size > size) { + free (mybuf); + GP_DEBUG("BAD: accessing more than we read (%d vs total %d)", (data-mybuf)+frame_size , size); + return GP_ERROR_CORRUPTED_DATA; + } + create_jpeg_from_data (avi, data, qIndex, frame_width, + frame_height, 0x22, frame_size, + &length, 1, 0); + + data += (frame_size + 7) & 0xfffffff8; + avi += length; + /* Make sure the next frame is aligned */ + if ((avi - start_of_frame) % 2 != 0) + avi++; + + /* Now we know the real frame size after escaping and + * adding the EOI marker. Put it in the frame header. */ + frame_size = avi - start_of_frame; + put_dword (start_of_frame - 4, frame_size); + put_dword (index_item + 8, + start_of_frame - start_of_file - + SPCA50X_AVI_HEADER_LENGTH - 4); + put_dword (index_item + 12, frame_size); + memcpy (avi_index_ptr, index_item, 16); + avi_index_ptr += 16; + fn++; + } + p += SPCA50X_FAT_PAGE_SIZE; + } + total_frame_size = avi - (start_of_file + SPCA50X_AVI_HEADER_LENGTH - 4); + put_dword (start_of_file + SPCA50X_AVI_HEADER_LENGTH - 8, + total_frame_size); + + avi = put_dword (avi, 0x31786469); /* idx1 */ + avi = put_dword (avi, index_size); + memcpy (avi, avi_index, index_size); + avi += index_size; + free (avi_index); + put_dword (start_of_file + 0x30, frame_count); + put_dword (start_of_file + 0x8c, frame_count); + + /* And reuse total_frame_size for the file size RIFF marker at offset + * 4 */ + total_frame_size = avi - (start_of_file + 4); + put_dword (start_of_file + 4, total_frame_size); + + free (mybuf); + start_of_file = realloc (start_of_file, avi - start_of_file); + *buf = start_of_file; + *len = avi - start_of_file; + return (GP_OK); +} + +int +spca50x_sdram_request_thumbnail (CameraPrivateLibrary * lib, uint8_t ** buf, + unsigned int *len, unsigned int number, int *type) +{ + struct SPCA50xFile *g_file; + + CHECK (spca50x_sdram_get_file_info (lib, number, &g_file)); + + *type = g_file->mime_type; + if (g_file->mime_type == SPCA50X_FILE_TYPE_AVI) { + return (spca50x_get_avi_thumbnail (lib, buf, len, g_file)); + } else { + + /* the spca500 stores the quality in p[20], the rest of them + * in [p40]. We need to check for the smallest resolution of + * the mini, since resolution does not have thumbnails. + * Download the full image instead. + * Low: 320x240 2 + * Middle: 640x480 0 + * High: 1024x768 (interpolated) 1*/ + if (lib->bridge == BRIDGE_SPCA500 + && (g_file->fat[20] & 0xFF) == 2) { + return (spca50x_get_image (lib, buf, len, g_file)); + + } else { + return (spca50x_get_image_thumbnail + (lib, buf, len, g_file)); + } + } +} + + +static int +spca50x_get_avi_thumbnail (CameraPrivateLibrary * lib, uint8_t ** buf, + unsigned int *len, struct SPCA50xFile *g_file) +{ + uint8_t *p, *lp_jpg; + uint8_t qIndex; + uint32_t start; + uint8_t *mybuf; + int size, o_size, file_size; + int ret; + + /* FIXME */ + if (lib->bridge == BRIDGE_SPCA500) + return GP_ERROR_NOT_SUPPORTED; + + p = g_file->fat; + + /* get the position in memory where the image is */ + start = (p[1] & 0xff) + (p[2] & 0xff) * 0x100; + start *= 128; + + /* decode the image size */ + o_size = size = + (p[52] & 0xff) * 0x10000 + (p[51] & 0xff) * 0x100 + + (p[50] & 0xff); + qIndex = p[7] & 0x0f; + + /* align */ + if (size % 64 != 0) + size = ((size / 64) + 1) * 64; + + file_size = size + SPCA50X_JPG_DEFAULT_HEADER_LENGTH + 1024 * 10; + + /* slurp in the image */ + mybuf = malloc (size); + if (!mybuf) + return GP_ERROR_NO_MEMORY; + + ret = spca50x_download_data (lib, start, size, mybuf); + if (ret < GP_OK) { + free (mybuf); + return ret; + } + + /* now build a jpeg */ + lp_jpg = malloc (file_size); + if (!lp_jpg) { + free (mybuf); + return GP_ERROR_NO_MEMORY; + } + + create_jpeg_from_data (lp_jpg, mybuf, qIndex, g_file->width, + g_file->height, 0x22, o_size, &file_size, 0, 0); + free (mybuf); + lp_jpg = realloc (lp_jpg, file_size); + *buf = lp_jpg; + *len = file_size; + + return (GP_OK); +} + + +static int +spca50x_get_image_thumbnail (CameraPrivateLibrary * lib, uint8_t ** buf, + unsigned int *len, struct SPCA50xFile *g_file) +{ + unsigned int size; + uint8_t *p; + uint32_t start; + uint8_t *mybuf = NULL; + uint8_t *tmp; + unsigned int t_width, t_height; + uint8_t *yuv_p; + uint8_t *rgb_p; + int headerlength, ret; + + p = g_file->fat; + + start = (p[3] & 0xff) + (p[4] & 0xff) * 0x100; + start *= 128; + + size = g_file->width * g_file->height * 2 / 64; + t_width = g_file->width / 8; + t_height = g_file->height / 8; + /* Adjust the headerlenght */ + headerlength = 13; + if (t_width > 99) headerlength++; + if (t_height > 99) headerlength++; + + /* align */ + if (size % 64 != 0) + size = ((size / 64) + 1) * 64; + + mybuf = malloc (size); + + if (lib->bridge == BRIDGE_SPCA504) { + ret = spca50x_download_data (lib, start, size, mybuf); + if (ret < GP_OK) { + free (mybuf); + return ret; + } + } else if (lib->bridge == BRIDGE_SPCA500) { + /* find the file index on the camera */ + int index; + + index = (g_file->fat - lib->fats) / SPCA50X_FAT_PAGE_SIZE; + spca50x_reset (lib); + /* trigger upload of thumbnail at that index */ + ret = gp_port_usb_msg_write (lib->gpdev, 0x06, + 0x70FF - index, 0x09, NULL, 0); + if (ret < GP_OK) { + free (mybuf); + return ret; + } +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep (1); +#endif + ret = gp_port_read (lib->gpdev, (char *)mybuf, size); + if (ret < GP_OK) { + free (mybuf); + return ret; + } + } + *len = t_width * t_height * 3 + headerlength; + *buf = malloc (*len); + if (!*buf) { + free (mybuf); + return (GP_ERROR_NO_MEMORY); + } + + tmp = *buf; + snprintf ((char*)tmp, *len, "P6 %d %d 255\n", t_width, t_height); + tmp += headerlength; + + yuv_p = mybuf; + rgb_p = tmp; + while (yuv_p < mybuf + (t_width * t_height * 2)) { + unsigned int u, v, y, y2; + unsigned int r, g, b; + + y = yuv_p[0]; + y2 = yuv_p[1]; + u = yuv_p[2]; + v = yuv_p[3]; + + CHECK (yuv2rgb (y, u, v, &r, &g, &b)); + *rgb_p++ = r; + *rgb_p++ = g; + *rgb_p++ = b; + + CHECK (yuv2rgb (y2, u, v, &r, &g, &b)); + *rgb_p++ = r; + *rgb_p++ = g; + *rgb_p++ = b; + + yuv_p += 4; + } + + free (mybuf); + return (GP_OK); +} + + +int +spca50x_sdram_get_info (CameraPrivateLibrary * lib) +{ + unsigned int index; + uint8_t dramtype = 0; + uint8_t *p; + uint32_t start_page, end_page; + uint8_t file_type; + + GP_DEBUG ("* spca50x_sdram_get_info"); + + if (lib->bridge == BRIDGE_SPCA504) { + if (!spca50x_is_idle (lib)) + spca50x_mode_set_idle (lib); + + spca50x_mode_set_download (lib); + + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0x00, 0x0001, SPCA50X_REG_AutoPbSize, NULL, + 0)); + + CHECK (gp_port_usb_msg_read + (lib->gpdev, 0, 0, SPCA50X_REG_DramType, + (char *) & dramtype, 1)); + dramtype &= 0xFF; + } + + CHECK (spca50x_sdram_get_file_count_and_fat_count (lib, dramtype)); + + if (lib->num_files_on_sdram > 0) { + CHECK (spca50x_get_FATs (lib, dramtype)); + + index = lib->files[lib->num_files_on_sdram - 1].fat_end; + if (index >= lib->num_fats) { + gp_log(GP_LOG_ERROR, "spca50x", "%d exceeds num_fats %d", index, lib->num_fats); + return GP_ERROR; + } + p = lib->fats + SPCA50X_FAT_PAGE_SIZE * index; + /* p now points to the fat of the last image of the last file */ + + file_type = p[0]; + start_page = ((p[2] & 0xFF) << 8) | (p[1] & 0xFF); + end_page = start_page + (((p[6] & 0xFF) << 8) | (p[5] & 0xFF)); + if (file_type == SPCA50X_FILE_TYPE_IMAGE) + end_page = end_page + 0xA0; + + lib->size_used = (end_page - 0x2800) * SPCA50X_FAT_PAGE_SIZE; + } else + lib->size_used = 0; + + lib->size_free = + 16 * 1024 * 1024 - 0x2800 * SPCA50X_FAT_PAGE_SIZE - lib->size_used; + lib->dirty_sdram = 0; + + return GP_OK; +} + +int +spca50x_sdram_get_file_info (CameraPrivateLibrary * lib, unsigned int index, + struct SPCA50xFile **g_file) +{ + if (lib->dirty_sdram) + CHECK (spca50x_sdram_get_info (lib)); + *g_file = &(lib->files[index]); + return GP_OK; +} +static int +spca50x_mode_set_idle (CameraPrivateLibrary * lib) +{ + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0, SPCA50X_CamMode_Idle, SPCA50X_REG_CamMode, NULL, + 0)); + return GP_OK; +} + +static int +spca50x_is_idle (CameraPrivateLibrary * lib) +{ + int mode; + + CHECK (gp_port_usb_msg_read + (lib->gpdev, 0, 0, SPCA50X_REG_CamMode, (char *) & mode, 1)); + + return mode == SPCA50X_CamMode_Idle ? 1 : 0; +} + +static int +spca50x_mode_set_download (CameraPrivateLibrary * lib) +{ + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0, SPCA50X_CamMode_Upload, SPCA50X_REG_CamMode, NULL, + 0)); + return GP_OK; +} + +static int +spca50x_download_data (CameraPrivateLibrary * lib, uint32_t start, + unsigned int size, uint8_t * buf) +{ + + uint8_t foo; + uint8_t vlcAddressL, vlcAddressM, vlcAddressH; + + if (!spca50x_is_idle (lib)) + spca50x_mode_set_idle (lib); + + spca50x_mode_set_download (lib); + + foo = size & 0xFF; + CHECK (gp_port_usb_msg_write (lib->gpdev, 0, foo, + SPCA50X_REG_SdramSizeL, NULL, 0)); + foo = (size >> 8) & 0xFF; + CHECK (gp_port_usb_msg_write (lib->gpdev, 0, foo, + SPCA50X_REG_SdramSizeM, NULL, 0)); + foo = (size >> 16) & 0xFF; + CHECK (gp_port_usb_msg_write (lib->gpdev, 0, foo, + SPCA50X_REG_SdramSizeH, NULL, 0)); + + CHECK (gp_port_usb_msg_read + (lib->gpdev, 0, 0, SPCA50X_REG_VlcAddressL, + (char *) & vlcAddressL, 1)); + CHECK (gp_port_usb_msg_read + (lib->gpdev, 0, 0, SPCA50X_REG_VlcAddressM, + (char *) & vlcAddressM, 1)); + CHECK (gp_port_usb_msg_read + (lib->gpdev, 0, 0, SPCA50X_REG_VlcAddressH, + (char *) & vlcAddressH, 1)); + + foo = start & 0xFF; + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0, foo, SPCA50X_REG_VlcAddressL, NULL, 0)); + foo = (start >> 8) & 0xFF; + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0, foo, SPCA50X_REG_VlcAddressM, NULL, 0)); + foo = (start >> 16) & 0xFF; + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0, foo, SPCA50X_REG_VlcAddressH, NULL, 0)); + + /* Set mode to ram -> usb */ + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0, SPCA50X_DramUsb, SPCA50X_REG_PbSrc, NULL, 0)); + /* and pull the trigger */ + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0, SPCA50X_TrigDramFifo, SPCA50X_REG_Trigger, NULL, + 0)); + + CHECK (gp_port_read (lib->gpdev, (char *)buf, size)); + + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0, vlcAddressL, SPCA50X_REG_VlcAddressL, NULL, 0)); + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0, vlcAddressM, SPCA50X_REG_VlcAddressM, NULL, 0)); + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0, vlcAddressH, SPCA50X_REG_VlcAddressH, NULL, 0)); + + spca50x_mode_set_idle (lib); + return GP_OK; +} + +static int +spca50x_get_FATs (CameraPrivateLibrary * lib, int dramtype) +{ + uint8_t type; + unsigned int index = 0; + unsigned int file_index = 0; + uint8_t *p = NULL; + uint8_t buf[30]; + + /* Reset image and movie counter */ + lib->num_images = lib->num_movies = 0; + + if (lib->fats) { + free (lib->fats); + lib->fats = NULL; + } + + if (lib->files) { + free (lib->files); + lib->files = NULL; + } + + lib->fats = calloc (lib->num_fats , SPCA50X_FAT_PAGE_SIZE); + lib->files = calloc (lib->num_files_on_sdram , sizeof (struct SPCA50xFile)); + + p = lib->fats; + if (lib->bridge == BRIDGE_SPCA504) { + while (index < lib->num_fats) { + CHECK (spca50x_sdram_get_fat_page (lib, index, + dramtype, p)); + if (p[0] == 0xFF) + break; + + index++; + p += SPCA50X_FAT_PAGE_SIZE; + } + } else if (lib->bridge == BRIDGE_SPCA500) { + /* for the spca500, download the whole fat in one go. */ + spca50x_reset (lib); + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0x05, 0x00, 0x07, NULL, 0)); +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep (1); +#endif + CHECK (gp_port_read + (lib->gpdev, (char *)lib->fats, + lib->num_fats * SPCA50X_FAT_PAGE_SIZE)); + } + + p = lib->fats; + index = 0; + + while (index < lib->num_fats) { + if (file_index >= lib->num_files_on_sdram) { + free (lib->fats); lib->fats = NULL; + free (lib->files); lib->files = NULL; + return GP_ERROR; + } + + type = p[0]; + /* While the spca504a indicates start of avi as 0x08 and cont. + * of avi as 0x80, the spca500 uses 0x03 for both. Each frame + * gets its own fat table with a sequence number at p[18]. */ + if ((type == 0x80) || (type == 0x03 && (p[18] != 0x00))) { + /* continuation of an avi */ + if (!file_index) + return GP_ERROR; + lib->files[file_index - 1].fat_end = index; + } else { + /* its an image */ + if (type == 0x00 || type == 0x01) { + snprintf (buf, sizeof(buf), "Image%03d.jpg", + ++lib->num_images); + lib->files[file_index].mime_type = + SPCA50X_FILE_TYPE_IMAGE; + } else if ((type == 0x08) || (type == 0x03)) { + /* its the start of an avi */ + snprintf (buf, sizeof(buf), "Movie%03d.avi", + ++lib->num_movies); + lib->files[file_index].mime_type = + SPCA50X_FILE_TYPE_AVI; + } else { + gp_log(GP_LOG_ERROR, "spca50x", "type %d unhandled - error", type); + return GP_ERROR; + } + lib->files[file_index].fat = p; + lib->files[file_index].fat_start = index; + lib->files[file_index].fat_end = index; + lib->files[file_index].name = strdup ((char*)buf); + if (lib->bridge == BRIDGE_SPCA504) { + lib->files[file_index].width = + (p[8] & 0xFF) * 16; + lib->files[file_index].height = + (p[9] & 0xFF) * 16; + } else if (lib->bridge == BRIDGE_SPCA500) { + int w, h; + + if (p[20] == 2) { + w = 320; + h = 240; + } else { + w = 640; + h = 480; + } + lib->files[file_index].width = w; + lib->files[file_index].height = h; + } + lib->files[file_index].thumb = NULL; + file_index++; + } + p += SPCA50X_FAT_PAGE_SIZE; + index++; + } + + return GP_OK; +} + +static inline uint8_t * +put_dword (uint8_t * ptr, uint32_t value) +{ + ptr[0] = (value & 0xff); + ptr[1] = (value & 0xff00) >> 8; + ptr[2] = (value & 0xff0000) >> 16; + ptr[3] = (value & 0xff000000) >> 24; + return ptr + 4; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-sdram.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-sdram.h new file mode 100644 index 00000000..b5bad4de --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x-sdram.h @@ -0,0 +1,42 @@ +/****************************************************************/ +/* spca50x_sdram.h - Gphoto2 library for cameras with sunplus */ +/* spca50x chips */ +/* */ +/* Copyright 2002, 2003 Till Adam */ +/* */ +/* Author: Till Adam */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#ifndef __SPCA50X_SDRAM_H__ +#define __SPCA50X_SDRAM_H__ +#include + +int spca50x_sdram_get_info (CameraPrivateLibrary * lib); +int spca50x_sdram_delete_file (CameraPrivateLibrary * lib, unsigned int index); +int spca50x_sdram_delete_all (CameraPrivateLibrary * lib); +int spca50x_sdram_get_file_info (CameraPrivateLibrary * lib, unsigned int index, + struct SPCA50xFile **file); +int spca50x_sdram_request_file (CameraPrivateLibrary * lib, uint8_t ** buf, + unsigned int *len, unsigned int number, int *type); +int spca50x_sdram_request_thumbnail (CameraPrivateLibrary * lib, + uint8_t ** buf, unsigned int *len, + unsigned int number, int *type); + +#endif /* __SPCA50X_SDRAM_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x.c new file mode 100644 index 00000000..518a381e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x.c @@ -0,0 +1,261 @@ +/****************************************************************/ +/* spca50x.c - Gphoto2 library for cameras with sunplus spca50x */ +/* chips */ +/* */ +/* Copyright 2002, 2003 Till Adam */ +/* */ +/* Author: Till Adam */ +/* */ +/* Pure digital support: John Maushammer */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include +#include "gphoto2-endian.h" + +#include "spca50x.h" +#include "spca50x-registers.h" +#include "spca50x-jpeg-header.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define GP_MODULE "spca50x" + +int +spca50x_get_firmware_revision (CameraPrivateLibrary *lib) +{ + + CHECK (gp_port_usb_msg_read (lib->gpdev, 0x20, 0x0, 0x0, + (char *)&(lib->fw_rev), 1)); + return GP_OK; +} + +int +spca50x_detect_storage_type (CameraPrivateLibrary *lib) +{ + int i; + uint8_t buf[3]; + + for (i=0;i<3;i++) + { + buf[i] = 0; /* if no data returned, assume no capability */ + CHECK (gp_port_usb_msg_read (lib->gpdev, 0x28, 0x0000, + i, (char *)&buf[i], 0x01)); + } + + if (buf[0]) lib->storage_media_mask |= SPCA50X_SDRAM; + if (buf[1]) lib->storage_media_mask |= SPCA50X_FLASH; + if (buf[2]) lib->storage_media_mask |= SPCA50X_CARD; + GP_DEBUG("SPCA50x: has_sdram: 0x%x has_flash 0x%x has_card: 0x%x\n", + buf[0], buf[1], buf[2]); + + return GP_OK; +} + +static int +spca50x_pd_enable (CameraPrivateLibrary * lib) +{ + uint8_t buf[9]; + uint8_t writebyte; + uint32_t bcd_serial; + uint32_t return_value; + + GP_DEBUG ("Pure digital additional initialization"); + CHECK (gp_port_usb_msg_read (lib->gpdev, 0x2d, 0x0000, 0x0001, + (char*)buf, 0x08)); + bcd_serial = ((buf[0] & 0x0f) << 28) | + ((buf[1] & 0x0f) << 24) | + ((buf[2] & 0x0f) << 20) | + ((buf[3] & 0x0f) << 16) | + ((buf[4] & 0x0f) << 12) | + ((buf[5] & 0x0f) << 8) | + ((buf[6] & 0x0f) << 4) | + ((buf[7] & 0x0f) << 0); + GP_DEBUG ("Camera serial number = %08x", bcd_serial); + return_value = ~bcd_serial << 2; + GP_DEBUG ("return value = %08x", return_value); + writebyte = return_value & 0xff; + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x2d, 0x0000, 0x0000, + (char*)&writebyte, 0x01)); + writebyte = (return_value >> 8) & 0xff; + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x2d, 0x0000, 0x0001, + (char*)&writebyte, 0x01)); + writebyte = (return_value >> 16) & 0xff; + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x2d, 0x0000, 0x0002, + (char*)&writebyte, 0x01)); + writebyte = (return_value >> 24) & 0xff; + CHECK (gp_port_usb_msg_write (lib->gpdev, 0x2d, 0x0000, 0x0003, + (char*)&writebyte, 0x01)); + return GP_OK; +} + +int +spca50x_reset (CameraPrivateLibrary * lib) +{ + GP_DEBUG ("* spca50x_reset"); + if (lib->bridge == BRIDGE_SPCA500) { + if (lib->storage_media_mask & SPCA50X_SDRAM) { + /* This is not reset but "Change Mode to Idle + * (Clear Buffer)" Cant hurt, I guess. */ + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0x02, 0x0000, 0x07, NULL, 0)); + } + } else if (lib->fw_rev == 1) { + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0x02, 0x0000, 0x0003, NULL, 0)); + } else if (lib->fw_rev == 2) { + CHECK (gp_port_usb_msg_write(lib->gpdev, 0, 1, + SPCA50X_REG_AutoPbSize, NULL, 0)); + CHECK (gp_port_usb_msg_write(lib->gpdev, 0, 0, + 0x0d04, NULL, 0)); + CHECK (gp_port_usb_msg_write(lib->gpdev, 0x1e, 0, 0, NULL, 0)); + if (lib->bridge == BRIDGE_SPCA504B_PD) { + CHECK (spca50x_pd_enable (lib)); + } + } +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + usleep(200000); +#endif + return GP_OK; +} + + +int +yuv2rgb (uint32_t y, uint32_t u, uint32_t v, uint32_t *_r, uint32_t *_g, uint32_t *_b) +{ + double r, g, b; + + r = (char) y + 128 + 1.402 * (char) v; + g = (char) y + 128 - 0.34414 * (char) u - 0.71414 * (char) v; + b = (char) y + 128 + 1.772 * (char) u; + + if (r > 255) + r = 255; + if (g > 255) + g = 255; + if (b > 255) + b = 255; + if (r < 0) + r = 0; + if (g < 0) + g = 0; + if (b < 0) + b = 0; + + *_r = r; + *_g = g; + *_b = b; + + return GP_OK; +} + +int +spca50x_capture (CameraPrivateLibrary * lib) +{ +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep (2); +#endif + CHECK (gp_port_usb_msg_write + (lib->gpdev, 0x06, 0x0000, 0x0003, NULL, 0)); +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + sleep (3); +#endif + return GP_OK; +} + +void +create_jpeg_from_data (uint8_t * dst, uint8_t * src, int qIndex, int w, + int h, uint8_t format, int o_size, int *size, + int omit_huffman_table, int omit_escape) +{ + int i = 0; + uint8_t *start; + uint8_t value; + + start = dst; + /* copy the header from the template */ + memcpy (dst, SPCA50xJPGDefaultHeaderPart1, + SPCA50X_JPG_DEFAULT_HEADER_PART1_LENGTH); + + /* modify quantization table */ + memcpy (dst + 7, SPCA50xQTable[qIndex * 2], 64); + memcpy (dst + 72, SPCA50xQTable[qIndex * 2 + 1], 64); + + dst += SPCA50X_JPG_DEFAULT_HEADER_PART1_LENGTH; + + /* copy Huffman table */ + if (!omit_huffman_table) { + memcpy (dst, SPCA50xJPGDefaultHeaderPart2, + SPCA50X_JPG_DEFAULT_HEADER_PART2_LENGTH); + dst += SPCA50X_JPG_DEFAULT_HEADER_PART2_LENGTH; + } + memcpy (dst, SPCA50xJPGDefaultHeaderPart3, + SPCA50X_JPG_DEFAULT_HEADER_PART3_LENGTH); + + /* modify the image width, height */ + *(dst + 8) = w & 0xFF; /* Image width low byte */ + *(dst + 7) = w >> 8 & 0xFF; /* Image width high byte */ + *(dst + 6) = h & 0xFF; /* Image height low byte */ + *(dst + 5) = h >> 8 & 0xFF; /* Image height high byte */ + + /* set the format */ + *(dst + 11) = format; + + /* point to real JPG compress data start position and copy */ + dst += SPCA50X_JPG_DEFAULT_HEADER_PART3_LENGTH; + + for (i = 0; i < o_size; i++) { + value = *(src + i) & 0xFF; + *(dst) = value; + dst++; + + if (value == 0xFF && !omit_escape) { + *(dst) = 0x00; + dst++; + } + } + /* Add end of image marker */ + *(dst++) = 0xFF; + *(dst++) = 0xD9; + + *size = dst - start; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x.h new file mode 100644 index 00000000..cf79fdfc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/spca50x/spca50x.h @@ -0,0 +1,93 @@ +/****************************************************************/ +/* spca50x.h - Gphoto2 library for cameras with sunplus spca50x */ +/* chips */ +/* */ +/* Copyright 2002, 2003 Till Adam */ +/* */ +/* Author: Till Adam */ +/* */ +/* This library is free software; you can redistribute it */ +/* and/or modify it under the terms of the GNU Library General */ +/* Public License as published by the Free Software Foundation; */ +/* either version 2 of the License, or (at your option) any */ +/* later version. */ +/* */ +/* This library is distributed in the hope that it will be */ +/* useful, but WITHOUT ANY WARRANTY; without even the implied */ +/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ +/* PURPOSE. See the GNU Library General Public License for */ +/* more details. */ +/* */ +/* You should have received a copy of the GNU Library General */ +/* Public License along with this library; if not, write to the */ +/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ +/* Boston, MA 02110-1301 USA */ +/****************************************************************/ + +#ifndef __SPCA50X_H__ +#define __SPCA50X_H__ +#include <_stdint.h> +#include + +#define SPCA50X_FAT_PAGE_SIZE 0x100 +#define SPCA50X_FILE_TYPE_IMAGE 0x00 +#define SPCA50X_FILE_TYPE_AVI 0x01 + +#define CHECK(result) {int res; res = result; if (res < 0) return (res);} + +struct SPCA50xFile +{ + char *name; + int width; + int height; + int fat_start; + int fat_end; + uint8_t *fat; + int mime_type; + int type; /* not necessarily the same thing as mime_type! */ + unsigned int size; + uint8_t *thumb; /* used to cache the thumbnail data, for some cams */ +}; + +typedef enum { + BRIDGE_SPCA500, + BRIDGE_SPCA504, + BRIDGE_SPCA504B_PD /* with specialized pure digital firmware */ +} SPCA50xBridgeChip; + +struct _CameraPrivateLibrary +{ + GPPort *gpdev; + int dirty_sdram:1; + int dirty_flash:1; + int storage_media_mask; + uint8_t fw_rev; + SPCA50xBridgeChip bridge; + int num_files_on_flash; + int num_files_on_sdram; + int num_images; + int num_movies; + int num_fats; + int size_used; + int size_free; + uint8_t *flash_toc; + uint8_t *fats; + struct SPCA50xFile *files; +}; + +#define SPCA50X_SDRAM 0x01 +#define SPCA50X_FLASH 0x02 +#define SPCA50X_CARD 0x04 + +#define SPCA50X_JPG_DEFAULT_HEADER_LENGTH 589 +int spca50x_get_firmware_revision (CameraPrivateLibrary *lib); +int spca50x_detect_storage_type (CameraPrivateLibrary *lib); +int spca50x_reset (CameraPrivateLibrary * lib); +int spca50x_capture (CameraPrivateLibrary * lib); +int yuv2rgb (uint32_t y, uint32_t u, uint32_t v, uint32_t *r, uint32_t *g, uint32_t *b); +void create_jpeg_from_data (uint8_t * dst, uint8_t * src, int qIndex, + int w, int h, uint8_t format, + int original_size, int *size, + int omit_huffman_table, int omit_escape); + +#endif /* __SPCA50X_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/ChangeLog new file mode 100644 index 00000000..f84cdd61 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/ChangeLog @@ -0,0 +1,228 @@ +2008-05-29 Theodore Kilgore + * library.c: New camera. Global Point Splash Mini added. + + +2008-05-29 Theodore Kilgore + * library.c: raw files now each have the corresponding catalog entry + added as a 16-byte footer. + +2008-05-27 Theodore Kilgore + * library.c: gp_bayer_decode() -> gp_ahd_decode(). + +2007-06-24 Theodore Kilgore + * library.c: Several Sakar cameras added. + +2007-06-24 Theodore Kilgore + * library.c: + * sq905.c: + * sq905.h: fixed compile warnings about signedness. + +2007-05-10 Marcus Meissner + + * postprocess.c: Fixed some free() calls and some memory leaks. + +2007-03-09 Theodore Kilgore + + * library.c: Decompression support re-done. + * postprocess.c: Decompression support re-done. + * sq905.c: Decompression support re-done. + * sq905.h: Decompression support re-done. + + +2006-01-03 Hubert Figuiere + + * library.c: Shark 2-in-1 Mini + Request Ultra Slim + +2005-05-18 Theodore Kilgore + + * library.c: raw photo download routine segfault fixed. + +2005-05-18 Theodore Kilgore + + * library.c: Several improvements for SQ_MODEL_POCK_CAM + * postprocess.c: Several improvements for SQ_MODEL_POCK_CAM + * sq905.c: Several improvements for SQ_MODEL_POCK_CAM, thanks to + Julius Schwartzenberg for exhaustive testing! + +2005-05-18 Theodore Kilgore + + * library.c: bug in compressed photo routine fixed, found by + Cedric Cellier. + +2005-04-17 Theodore Kilgore + + * ChangeLog: Fixed some typos. + +2005-04-16 Theodore Kilgore + + * library.c: fix sq_decompress() to handle Magpix B350 + * postprocess.c: fix sq_decompress() to handle Magpix B350 + * sq905.h: fix sq_decompress() to handle Magpix B350 + * sq905.h: fix sq_decompress() to handle Magpix B350 + +2005-04-12 Theodore Kilgore + + * postprocess.c: small oops repaired in sq_decompress() + +2005-04-03 Theodore Kilgore + + * library.c: improvements for compressed mode + * postprocess.c: improvements for compressed mode + * sq905.h: improvements for compressed mode + +2005-01-17 Theodore Kilgore + + * library.c: added Shark SDC-513 and SDC-519 + * postprocess.c: Code cleanup + +2004-12-15 Theodore Kilgore + + * library.c: added Concord Eye-Q Duo, Sakar Kidz Cam + (get_file_func): Conditionnalize pre-processing + +2004-11-11 Theodore Kilgore + + * postprocess.c: bugfix for release. + +2004-11-11 Theodore Kilgore + + * library.c: added ViviCam 5B and SY-2107C cameras. + +2004-10-28 Hubert Figuiere + + * sq905.c (sq_read_picture_data): Fix build for gcc 2.95 + (bug #1055868) + +2004-08-25 Theodore Kilgore + + * README.913C: Description of Argus DC-1730 0x2770:0x913c camera. + + * library.c: Argus DC-1730 0x2770:0x913c added. + + * sq905.c: data type corrected in sq_access_reg ( ) + + * sq905.h: In sq_access_reg ( ) the "index" is an int. Oops. + +2004-06-29 Theodore Kilgore + + * sq905.c: Major rewrite. Credit to Cedric Cellier + for several improvements, in particular + sq_rewind ( ), which permits random access to photos on camera. + + * sq905.h: needed changes declared. + + * postprocess.c: Anything special done to a photo after download + goes here, especially things which are experimental or + still not complete. + + * library.c: Big changes. Video clips and capture-preview supported; + delete-all-photos supported for those SQ cameras which will + do it; thumbnails supported for GUI compatibility. + + * README: Updated to describe new capabilities of camlib. + + * TODO: list of things which still need work. + + * Makefile.am: postprocess.c added as source file. + +2003-11-21 Theodore Kilgore + + * sq905.h: SQ_MODEL_MAGPIX added; ID number found by T. K. + +2003-11-21 Theodore Kilgore + + * sq905.c: The following changes are introduced: + -- In sq_init the initialization sequence is not repeated; + experience has shown this to be unnecessary. + -- In accordance with general policy, individual credits for + reporting model ID numbers are placed here. Credit to + Fabien Devaux for the ID of SQ_MODEL_PRECISION. + +2003-10-30 Lutz Mueller + + * sq905.c: Give credit to individual people (here + Paulo Tribolet Abreu who reported a special + model) in the ChangeLog, not all over the code to keep the code + readable. + +2003-10-29 Lutz Mueller + + * library.c: Reduce memory requirements by first freeing one variable + before allocating memory for another. + +2003-10-29 Lutz Mueller + + * library.c: Substitute memcpy by for (...) { (...) } on + request of Theodore Kilgore . + +2003-10-29 Lutz Mueller + + * sq905.[c.h]: Patch by Thodore Kilgore + : Introduce new SQ_MODEL_PRECISION. + +2003-10-29 Lutz Mueller + + * library.c: Patch by Theodore Kilgore + : Fix postprocessing of files + where comp_ration != 2. + +2003-10-10 Lutz Mueller + + * library.c: Patch by Theodore Kilgore + : Allocate enough bytes for + image data _and_ header. + +2003-10-07 Lutz Mueller + + * sq905.c: Patch by Theodore Kilgore , + without ChangeLog entry, unfortunately not against latest cvs, and + not in 'cvs diff -u3 -p' format. Hence no guaranty that I figured + out the right lines and the right changes. No idea if the code + now works better than before. But it compiles :-) + +2003-08-01 Lutz Mueller + + * sq905.c: Additional information by Paulo Tribolet Abreu + . + +2003-08-01 Lutz Mueller + + * sq905.c: Additional information by Paulo Tribolet Abreu + . + +2003-07-30 Lutz Mueller + + * library.c: Move some variables around to make non-gcc-compilers + happy. + +2003-07-15 Lutz Mueller + + * sq905.[c]: Some indentation fixes. + (sq_read_data): Theodore Kilgore + tells me that the + gp_port_write and gp_port_set_timeout is not needed here. + +2003-07-12 Lutz Mueller + + * library.c + * sq905.[c,h]: New code by Theodore Kilgore + + +2003-07-07 Lutz Mueller + + * library.c + * sq905.c: Got some more feedback from Theodore Kilgore + + +2003-06-30 Lutz Mueller + + * library.c: Implement downloading of pictures. + +2003-06-30 Lutz Mueller + + * sq905.[c,h]: Updates by the author. + +2003-06-26 Lutz Mueller + + * *.[c,h]: First check-in. Not functional yet. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/Makefile-files new file mode 100644 index 00000000..564ebca3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/Makefile-files @@ -0,0 +1,11 @@ +# -*- Makefile -*- + +EXTRA_DIST += sq905/README.913C sq905/README.sq905 sq905/ChangeLog sq905/TODO +camlibdoc_DATA += sq905/README.913C sq905/README.sq905 + +EXTRA_LTLIBRARIES += sq905.la + +sq905_la_SOURCES = sq905/library.c sq905/sq905.c sq905/sq905.h sq905/postprocess.c +sq905_la_LDFLAGS = $(camlib_ldflags) +sq905_la_DEPENDENCIES = $(camlib_dependencies) +sq905_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/README.913C b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/README.913C new file mode 100644 index 00000000..23e6d347 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/README.913C @@ -0,0 +1,85 @@ +/* This is a supplemental README file for libgphoto2/camlibs/sq905, dealing + * specifically with support for sq913 cameras. This file is an + * integral part of the libgphoto2/camlibs/sq905 library source and is + * distributed with that source under the LGPL license. a copy of which + * license may be seen in any of the source files in libgphoto2/camlibs/sq905, + * or in the head directory of libgphoto2. + */ + + +INTRODUCTION + +The Argus DC-1730 apparently uses the sq913 chip and has Vendor:Product +number 0x2770:0x913c. It provides 640x480 or 320x240 resolution, optional +compression setting, and capture mode. The camera also has an LED thumbnail +display and a flash, which the user can turn off to save power. Even with +these new features, the camera still retails for under $50 (US). This new +camera (presumably along with any other 0x2770:0x913c cameras which may +exist) uses the same command set as the existing sq905 cameras, and thus it +is supported simply by adding its ID to the models list in sq905/library.c. +It also has the new chip or model ID 09 13 06 67, but it seems to be +supported well enough under the options used for SQ_MODEL_DEFAULT. + +DIFFERENCES BETWEEN SQ913 AND SQ905 CAMERAS + +As already mentioned, these new cameras have an LED display on the rear and +also have a flash. Two other differences are not so readily visible. + +First, the sq905 cameras have a "video clip" feature. If this feature is +set, the camera will shoot frames repeatedly, until its memory is full. The +Argus DC-1730 does not have this feature; on similar button setting it will +shoot three frames only, and then stop. + +This functional difference also is reflected in a slightly different format +for the configuration data presented by the camera. + +The most major consequence of this change in the configuration data is +that sq_postprocess ( ) must be completely rewritten before it can be used +with these cameras; the meaning of entries 7 through 15 in each line of +config data is now wrong. For this reason, sq_postprocess ( ) is turned off +in CVS for now. + +Repeating myself: If you are running an existing version of camlibs/sq905 +and want to just add the new ID number 0x2770:0x913c instead of upgrading, +then be sure to comment out the call to sq_postprocess ( ) in the download +routine, or rewrite it. Otherwise you will get very funny-looking photos +from your Argus DC-1730. + + +HARDWARE COMPATIBILITY ISSUES AND PROBLEMS WITH THE ARGUS DC-1730 + +The addition of support for 0x2770:0x913c cameras has been delayed somewhat +by some rather strange hardware problems which seem to be related to the USB +controller chipset on the computer and/or to the length of the cable used to +connect the camera. Here, then, are my experiences. + +The first computer on which I tested my new Argus DC-1730 is an old Dell, +which has in it a Pentium III (Coppermine) 1Ghz and a board with Intel +USB controller. I had no problems at all. Everything was quite routine, and +I was about to commit the code to CVS. + +Then, I checked my work on machines and got mixed results: + +On an Athlon 1Ghz on an FIC AZ-11 board, with VIA KT166 chipset, the camera +misbehaved. It dropped data blocks while downloading and got jammed, +requiring battery removal to clear the jam. However, removal of an extension +cable seemed to clear up the problem. + +An old Micron "barebones" system, again with a VIA chipset, seems completely +unusable with this camera. + +I have also tested the camera with a Dell Inspiron 7500 laptop. No problems, +even with the extension cable. + +Finally, the camera was tested again on the first machine. the Dell Pentium +III, using the extension cable which had caused problems previously. Again +no problems. + +Gphoto2-libgphoto2 is installed on all of these computers. No such problems +have ever been noticed with any other camera on any of the machines. If you +are similarly unlucky with an 0x2770:0x913c camera, it would seem that the +only possible cure might be to install another USB controller on an addon +card, to use an external USB hub, to take extra precautions about cabling, +or in the most extreme circumstances to buy a new computer. You may have no +problems. It could be that I just got one bad camera or one bad USB cable to +go with it. But in case you do, you are hereby warned. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/README.sq905 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/README.sq905 new file mode 100644 index 00000000..aba7797d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/README.sq905 @@ -0,0 +1,288 @@ +/* This is the README.sq905 file for libgphoto2/camlibs/sq905. + * + * This README is part of the libgphoto2/camlibs/sq905 library source and is + * distributed with that source under the LGPL license. a copy of which + * license may be seen in any of the source files in libgphoto2/camlibs/sq905, + * or in the head directory of libgphoto2. + * + * Copyright (C) 2003 - 2010 Theodore Kilgore + */ + + +INTRODUCTION: + +Cameras with chip from S&Q Technologies are often called DSC(2770) cameras. +They have USB Vendor:Product number 0x2770:0x9120, and are classified as USB +Class:Subclass:Protocol ff:ff:ff (proprietary:proprietary:proprietary). + +These cameras are cheap, basic, and come in many brands and models -- all +with the same USB Vendor:Product number and identical /proc/bus/devices +entry. In this broad set of cameras, differences can include such things as +different resolution capabilities, mirror-imaging of data which requires +line reversal, and different sensitivity under various lighting conditions, +apparently due to different video sensor chips. Further complicating +matters, neither S&Q Technologies nor the associated camera "manufacturers" +seem responsive to requests for information about their chips or cameras. + +I have several different SQ905 cameras for testing. For other cameras, +I am totally dependent on reports from users and testers. If you have +another 0x2770:0x9120 camera and want it to work and it currently does not, +then I will be very glad to hear from you. Saying this a different way: +further progress with your camera will depend upon your input. + +Moreover, the Gphoto project tries very hard to keep a complete list of +all supported cameras, by name and/or by any other distinguishing features, +such as a model number if any is printed on the camera or on the packaging. +If your camera is not on the list of supported cameras, then even if it works +please report it, so that it can be explicitly added by name in the listing +found in the source file camlibs/sq905/library.c. Please do this to help +others. A camera is not sold with the USB vendor:product number printed on +the package. Also even if it works perfectly in Linux with Gphoto software +it will usually not say that on the package, either. For these reasons, +again, please remember to report your camera if it is previously unlisted, +even if it works. + +One would reasonably suspect that all of these cameras have the same chip in +them, or similar chips from SQ. The cameras do distinguish themselves from +one another to some extent, reporting a number which can be thought of as a +"chip id" or "model" ID (for more discussion and a list of known IDs skip +down to "THE MODEL OR CHIP ID NUMBER"). If your camera reports an unknown +chip id, then please let me know about that. Your camera may well work +anyway, but it may require a different color tiling scheme, or it might +mirror-image the photos. The only way to cure such a problem is for us +to know about the camera's chip ID and to know precisely what the +non-conforming behavior is. + + +WHAT CHIP IS ACTUALLY IN THESE CAMERAS? + +The brief answer is that I do not know. + +The website of SQ Technologies lists several camera +controller chips in addition to the SQ905, which is now (2007) +discontinued. All of the SQ cameras which have the same USB ID do use the +same control sequences, however. The lower-resolution cameras all seem to use +the same Hynix video sensor chip. The video chips in higher-resolution cameras +do not all behave the same way and thus probably come from several sources. +Fortunately, it seems that the "chip id" is a sufficiently reliable indicator +of how to process data from the camera. + + +THE MODEL OR CHIP ID NUMBER + +Very early during initialization, the camera reports a four-byte string. +Apparently, this string identifies the model, the precise chip in the +camera, or perhaps the controller and video imaging chip combination. The +string may be associated with special behavior. For example, the camera may +produce photos which are mirror-imaged unless line reversal is done, or +perhaps the color tiling is different. Fortunately, most of the time one may +assume that the model is "SQ_MODEL_DEFAULT," but not always. To help in +those cases where it does make a difference, the model number is recorded +during camera initialization. You can see what number your camera has, by +doing any gphoto2 operation in debug mode and saving the debug output into a +file. For example, to do "gphoto2 --summary --debug 2>debug" will create a +text logfile called "debug." In that file, look for the place where the +computer and the camera actually start to talk to each other, and you will +see the number. A list of known numbers follows: + +Brand name/model Number Credits to + +Argus DC-1510 and many other cameras 09 05 00 26 T. K. +PockCam, Che-Ez Snap, some others 09 05 01 19 Paolo Tribolet Abreu, + Christian Bulow +Magpix B350 Binocular Camera 09 05 01 32 T. K. +Precision Mini 50 05 00 26 Fabien Devaux +Vivicam 3350 09 05 02 19 T. K. +DC-N130t 09 05 02 25 Cedric Cellier +Global Point Splash Mini (waterproof) 09 05 02 19 T. K. + +Of these models, most actually use the "default" settings for photo processing. + + +WHAT FEATURES DO THESE CAMERAS HAVE, AND WHAT DOES THIS DRIVER SUPPORT? + + FEATURE LIST SUPPORTED (Y/N/Part) +-- USB connection to computer Y +-- High resolution 352x288 or 640x480, uncompressed Y +-- Low resolution 176x144 or 320x240, uncompressed Y +-- High resolution 352x288 or 640x480, compressed Y +-- Low resolution 176x144 or 320x240, compressed Y +-- Ability to "switch" resolution between pictures Y +-- Ability to download all pictures on camera Y +-- Ability to download the first k pictures, where + k is less than the number on the camera Y +-- Ability to download individual photos Y +-- "Video clip" capability. Clips are saved as directories. Y +-- Capture and immediate download of a 320x240 snapshot Y +-- Webcam mode: Not supported here. But see notes below. N +------------------------------------------------------------------------- +The following things can be done with button-pushes on the camera: +------------------------------------------------------------------------- +-- Frequency filter for use in artificial light. Can be set + to cancel 60hz or 50hz interference. +-- Delete all, delete last, resolution setting, compression mode setting. +Unfortunately, it does not seem possible to do any of these things with +commands sent from the computer even if the camera is tethered, except for +the fact that for some of the cameras the command which triggers capture also +has the effect of deleting everything stored on the camera. Thus, deletion +of all photos may work for your camera, but it may not. + +Notes: + +All known sq905 cameras have either a 640x480 high-resolution setting and a +320x240 low-resolution setting, or a 352x288 and a 176x144 setting. If your +sq905 camera uses a new resolution setting, then you will be unable to +download photos until that new resolution setting is listed in sq905.c in +sq_get_picture_width () and in library.c where the picture height is chosen. +If you encounter new resolution settings, then please report them so they +can be put into the camlib. + +All known sq905 cameras use only 320x240 in capture mode. Also, capture +never uses high compression, even if it is otherwise turned on. Please +report any behavior different from this. + + +"Video clip capability" is implemented for all known SQ cameras. "Video +clip" output is always uncompressed, ignoring the "compression" setting. +Also, it is possible to create more than one clip or to intersperse clips +and ordinary still photos on the camera. + +The pictures obtained on the uncompressed settings can often be superior to +those obtained using the software which came with the camera, but not +always. Generally, considering that they are cheap, low resolution cameras, +these cameras give relatively good pictures, + +Video capture of one photo is done with "gphoto2 --capture-preview". The +related command "gphoto2 --capture" is not implemented. It would be used to +take a photo which can be downloaded later on, through normal photo download +procedures. But the hardware seems unable to support "gphoto2 --capture". + +The sq905 cameras can function as webcams. Support for the webcam mode of +these cameras is available through the module gspca_sq905, included as +part of the regular kernel since kernel version 2.6.29. This means it is +part of the kernel source, of course. It is then up to your distro to +include the webcam support for these cameas, or not. The webcam mode for +any of these cameras can do streaming at any of the resolutions 160x240, +176x144, 320x240, 352x288, and in addition at 640x480 provided that the +camera's hardware will do this (What is the max resolution for still photos? +The same applies in webcam mode). However, do not expect a high frame rate +in webcam mode. The camera is a USB 1.1 device, and it is streaming +uncompressed frames, using bulk transport, not isochronous transport. + +Thanks is hereby given to the authors and maintainers of the old "sq" +module, which for several years provided an out-of-kernel module to support +streaming with these cameras. + + + +HARDWARE LIMITATIONS AND CONSTRAINTS + +1. The downloading of "thumbnails" as special files is totally +unsupported by the hardware. The manufacturer's driver downloads a +consecutive list of photos and creates thumbnails, then "saves" only the +photos which the user selects. Gphoto2 prefers ability to do random access. + +2. The camera's data storage provides only sequential access, not +random access. In other words, it acts as though it were a tape drive +instead of a disk. The constraints which this places are obvious. + +3. Considering the way the communication protocols of these cameras +seem to work, it would seem nearly impossible to copy any data to the camera +for storage and transport. The camera clearly does not have files on it, +only data addresses. And the camera does not keep time. For similar +reasons, it would also seem impossible to delete a photo from the camera by +action of software on the computer. The camera supports two choices for +deletion: delete the last photo taken, or delete all. Each action is +performed by an appropriate sequence of button pushes on the camera. + +(Addendum: Deletion of all photos is supported on the Argus DC-1510 and +certain cameras similar to it (Precision Mini?). The routine for starting +webcam mode will delete all photos on the DC-1510. But not on the Argus +DC-1512 and apparently not on most other SQ cameras. A "Delete all" function +is included, for those who have cameras which can use it. If your camera's +literature warns that using the camera as a webcam or PCcam will cause data +loss, then "Delete all" will probably work.) + +To find a way around the listed constraints would indeed be most +interesting. Who knows? Maybe these things can be done. Could be that these +chips have undocumented capabilities. But maybe not. I have especially +hunted for undocumented commands which would support things that the camera +will only do with button presses, but I have not found any. + + +WHAT GUI FRONTENDS DOES THIS CAMERA LIBRARY SUOPPORT? + +Gtkam seems to work quite well for me with this library. Note, however, that +gtkam will require you to download the contents of video clips separately +from ordinary photos. Clips are put into subdirectories, and you must enter +a subdirectory to see and download the frames in it. Digikam does not work +quite so well for me. But it may work nicely for you, and you are hereby +encouraged to try it. If you want to use either gtkam or digikam, you are +encouraged to read the camera's manual. + + +NOTES + +1. The program is set up to put out pictures in PPM or raw format. + +2. The gamma setting (actually seems to be one over gamma) used for +the construction of PPM image files has been obtained by trial and error. It +seems to work very well for outdoor pictures, but the setting is a +compromise between what happens with outdoor photos and what happens with +indoor photos. Conceivably, the program could support a choice between two +or more gamma settings, optimizing for different conditions. + +4. Please get back to me with reports about other SQ cameras, with their +specifications (what it says in the manual about resolution and number of +pictures, as well as make and model, ID reported, and whether it works or +not would be enough), and with a log file if there are problems. + + +ACKNOWLEDGMENTS: + + -- to several members of East Alabama Linux Users group, for help +and encouragement: + + Bruce Gray, + Darrel Hankerson, + Thomas Kilgore (my son, the Perl hacker) + Kelley Price, + for some basic help with C. + Wade "Bear" Tinney, + for help in discovering how to subscribe to the gphoto-devel mailing + list + -- to Prof. Stan Reeves, Department of Electrical Engineering, + Auburn University, for a very informative discussion of how a Bayer + array is constructed. + -- to my colleagues + Darrel Hankerson, who knows clever ways to pass a character + string from one function to another + Steve Stuckwisch, who could explain to me Darrel's + explanation + -- to Christophe Barbe, for encouragement + -- to Lutz Miller, for making me do it right. + -- to Cedric Cellier, for devising the sq_rewind ( ) function, for + implementing the directory structure for video clips, and in general + for his continued interest in these cameras. + + +WARRANTY? + + Absolutely not. No warranty. Never. Not responsible for any actual + or potential damage or consequences to anyone or to the equipment of + anyone for using this program, whether the alleged damage or alleged + consequences are claimed to be real, imaginary, direct, collateral, + for pain and suffering, or are claimed to be inflicted upon any + "third party" who is not the user or installer of the program. The + program has been written for my pleasure and to broaden and deepen + my knowledge of computer hardware and software. The program has not + been written with the immediate expectation of financial gain or + profit on my part, nor has it been commissioned for pay. It is + presumed that any end-user of this program will have access to the + source code of the program and can judge for himself or herself + whether he/she wishes to use it or not, or can consult someone with + appropriate expertise to make such a judgment. + + +Theodore Kilgore +07/07/03 (revised 03/09/07 and 02/18/10) \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/TODO b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/TODO new file mode 100644 index 00000000..aec41f4d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/TODO @@ -0,0 +1,6 @@ +Here is a short list of things which might still need work. It is envisioned +that this list might change from time to time. + +Not much left on the list of unsupported functionality, AFAIK. + +Theodore Kilgore (03/09/07) \ No newline at end of file diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/library.c new file mode 100644 index 00000000..b0362583 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/library.c @@ -0,0 +1,564 @@ +/* library.c + * + * Copyright (C) 2003 Theodore Kilgore + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include + +#include +#include +#include + +#include +#include + + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "sq905.h" + +#include + +#define GP_MODULE "sq905" + +static const struct { + char *name; + CameraDriverStatus status; + unsigned short idVendor; + unsigned short idProduct; +} models[] = { + {"SQ chip camera", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Argus DC-1510", GP_DRIVER_STATUS_PRODUCTION, 0x2770, 0x9120}, + {"Gear to go", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Mitek CD10" , GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Mitek CD30P", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"GTW Electronics", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Concord Eye-Q Easy",GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Concord Eye-Q Duo", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Che-ez Snap", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"PockCam", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Magpix B350", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Jenoptik JDC 350", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Precision Mini Digital Camera", + GP_DRIVER_STATUS_PRODUCTION , 0x2770 , 0x9120}, + {"iConcepts digital camera" , + GP_DRIVER_STATUS_PRODUCTION , 0x2770 , 0x9120}, + {"Sakar Kidz Cam 86379", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, + 0x9120}, + {"ViviCam3350", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"ViviCam5B", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"DC-N130ta", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"SY-2107C", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Shark SDC-513", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Shark SDC-519", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Shark 2-in-1 Mini", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Argus DC-1730", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x913c}, + {"Request Ultra Slim", + GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {"Global Point Splash Mini (underwater camera)", + GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120}, + {NULL,0,0} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "SQ chipset camera"); + + return GP_OK; +} + + +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + + for (i = 0; models[i].name; i++) { + memset (&a, 0, sizeof(a)); + strcpy (a.model, models[i].name); + a.status = models[i].status; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = models[i].idVendor; + a.usb_product= models[i].idProduct; + if (a.status == GP_DRIVER_STATUS_EXPERIMENTAL) + a.operations = GP_OPERATION_NONE; + else + a.operations = GP_OPERATION_CAPTURE_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + a.file_operations = GP_FILE_OPERATION_PREVIEW + + GP_FILE_OPERATION_RAW; + gp_abilities_list_append (list, a); + } + + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + sprintf (summary->text,_("Your USB camera has a S&Q chipset.\n" + "The total number of pictures taken is %i\n" + "Some of these could be clips containing\n" + "several frames\n"), + + camera->pl->nb_entries); + + return GP_OK; +} + +static int camera_manual (Camera *camera, CameraText *manual, + GPContext *context) +{ + strcpy(manual->text, + _( + "For cameras with S&Q Technologies chip.\n" + "Should work with gtkam. Photos will be saved in PPM format.\n\n" + + "All known S&Q cameras have two resolution settings. What\n" + "those are, will depend on your particular camera.\n" + "A few of these cameras allow deletion of all photos. Most do not.\n" + "Uploading of data to the camera is not supported.\n" + "The photo compression mode found on many of the S&Q\n" + "cameras is supported, to some extent.\n" + "If present on the camera, video clips are seen as subfolders.\n" + "Gtkam will download these separately. When clips are present\n" + "on the camera, there is a little triangle before the name of\n" + "the camera. If no folders are listed, click on the little \n" + "triangle to make them appear. Click on a folder to enter it\n" + "and see the frames in it, or to download them. The frames will\n" + "be downloaded as separate photos, with special names which\n" + "specify from which clip they came. Thus, you may freely \n" + "choose to save clip frames in separate directories. or not.\n" + )); + + return (GP_OK); +} + + + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("sq905 generic driver\n" + "Theodore Kilgore \n")); + + return GP_OK; +} + +/*************** File and Downloading Functions *******************/ + + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i,n; + GP_DEBUG ("List files in %s\n", folder); + if (0==strcmp(folder, "/")) { + for (i=0, n=0; ipl->nb_entries; i++) { + if (!sq_is_clip(camera->pl, i)) n++; + } + gp_list_populate(list, "pict%03i.ppm", n); + } else { + char format[16]; + n = atoi(folder+1+4); /* '/' + 'clip' */ + snprintf(format, sizeof(format), "%03i_%%03i.ppm", n); + for (i=0; ipl->nb_entries && n>0; i++) { + if (sq_is_clip(camera->pl, i)) n--; + } + i--; + if (!sq_is_clip(camera->pl, i)) + return GP_ERROR_DIRECTORY_NOT_FOUND; + gp_list_populate(list, format, + sq_get_num_frames(camera->pl, i)); + } + return GP_OK; +} + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i,n; + GP_DEBUG ("List folders in %s\n", folder); + if (0==strcmp(folder, "/")) { + for (i=0, n=0; ipl->nb_entries; i++) { + if (sq_is_clip(camera->pl, i)) n++; + } + gp_list_populate (list, "clip%03i", n); + + } + return GP_OK; +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo *info, void *data, GPContext *context) +{ + memset (info, 0, sizeof(CameraFileInfo)); + /* FIXME: fill in some stuff? */ + return (GP_OK); +} + + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + int i, w, h, b, entry, frame, is_in_clip; + int nb_frames, to_fetch; + int do_preprocess; + unsigned char comp_ratio; + unsigned char *frame_data, *rawdata; + unsigned char *ppm, *ptr; + unsigned char gtable[256]; + int size; + int this_cam_tile; + + if (GP_FILE_TYPE_EXIF ==type) return GP_ERROR_FILE_EXISTS; + + if (GP_FILE_TYPE_RAW!=type && GP_FILE_TYPE_NORMAL + !=type && GP_FILE_TYPE_PREVIEW!=type) { + + return GP_ERROR_NOT_SUPPORTED; + } + + + /* Get the entry number of the photo on the camera */ + entry = -1; + if (0==strcmp(folder, "/")) { + i = atoi(filename+4); + do { + do entry++; + while (sq_is_clip(camera->pl, entry) + && entrypl->nb_entries); + i--; + } + while (i>0); + if (entry == camera->pl->nb_entries) + return GP_ERROR_FILE_NOT_FOUND; + frame = 0; + is_in_clip = 0; + } else { + i = atoi(folder+1+4); + do { + do entry++; + while (!sq_is_clip(camera->pl, entry) && + entrypl->nb_entries); + i--; + } while (i>0); + if (entry == camera->pl->nb_entries) + return GP_ERROR_DIRECTORY_NOT_FOUND; + frame = atoi(filename+4)-1; + if (frame >= sq_get_num_frames(camera->pl, entry)) + return GP_ERROR_FILE_NOT_FOUND; + is_in_clip = 1; + } + + GP_DEBUG ("Download file %s from %s, entry = %d, frame = %d\n", + filename, folder, entry, frame); + + /* Fetch entries until the one we need, and toss all before + * the one we need. + * TODO: Either find out how to use the location info in the catalog + * to download just the entry needed, or show it is as impossible as + * it seems to be. + */ + + GP_DEBUG ("last entry was %d\n", camera->pl->last_fetched_entry); + + /* Change register to DATA, but only if necessary */ + if ((camera->pl->last_fetched_entry == -1) + || ((is_in_clip) && (frame == 0)) ) + + sq_access_reg(camera->port, DATA); + + if (camera->pl->last_fetched_entry > entry) { + sq_rewind(camera->port, camera->pl); + } + do_preprocess = 0; + do { + to_fetch = camera->pl->last_fetched_entry; + if (to_fetch < entry) { + to_fetch++; + free(camera->pl->last_fetched_data); + camera->pl->last_fetched_data = NULL; + } + nb_frames = sq_get_num_frames(camera->pl, to_fetch); + comp_ratio = sq_get_comp_ratio (camera->pl, to_fetch); + w = sq_get_picture_width (camera->pl, to_fetch); + switch (w) { + case 176: h = 144; break; + case 640: h = 480; break; + case 320: h = 240; break; + default: h = 288; break; + } + if (!comp_ratio) { + sq_rewind(camera->port, camera->pl); + return GP_ERROR; + } + b = nb_frames * w * h / comp_ratio; + do_preprocess = 1; + if (camera->pl->last_fetched_data) break; + + camera->pl->last_fetched_data = malloc (nb_frames*w*h); + if (!camera->pl->last_fetched_data) { + sq_rewind(camera->port, camera->pl); + return GP_ERROR_NO_MEMORY; + } + GP_DEBUG("Fetch entry %i\n", to_fetch); + sq_read_picture_data + (camera->port, camera->pl->last_fetched_data, b); + camera->pl->last_fetched_entry = to_fetch; + } while (camera->pl->last_fetched_entrypl->last_fetched_data+(w*h)*frame/comp_ratio; + /* sq_preprocess ( ) turns the photo right-side-up and for some + * models must also de-mirror the photo + */ + + if (GP_FILE_TYPE_RAW!=type) { + + if (do_preprocess) { + sq_preprocess(camera->pl->model, comp_ratio, + is_in_clip, frame_data, w, h); + } + + /* + * Now put the data into a PPM image file. + */ + ppm = malloc (w * h * 3 + 256); /* room for data + header */ + if (!ppm) { return GP_ERROR_NO_MEMORY; } + sprintf ((char *)ppm, + "P6\n" + "# CREATOR: gphoto2, SQ905 library\n" + "%d %d\n" + "255\n", w, h); + size = strlen ((char *)ppm); + ptr = ppm + size; + + switch (camera->pl->model) { + case SQ_MODEL_POCK_CAM: + case SQ_MODEL_MAGPIX: + this_cam_tile = BAYER_TILE_GBRG; + break; + default: + this_cam_tile = BAYER_TILE_BGGR; + break; + } + size = size + (w * h * 3); + GP_DEBUG ("size = %i\n", size); + if (comp_ratio>1) { + rawdata = malloc (w*h); + if (!rawdata) { + free (ppm); + return GP_ERROR_NO_MEMORY; + } + sq_decompress (camera->pl->model, rawdata, + frame_data, w, h); + gp_gamma_fill_table (gtable, .65); + } else { + rawdata = frame_data; + gp_gamma_fill_table (gtable, .55); + } + gp_ahd_decode (rawdata, w , h , ptr, this_cam_tile); + gp_gamma_correct_single (gtable, ptr, w * h); + + gp_file_set_mime_type (file, GP_MIME_PPM); + gp_file_set_data_and_size (file, (char *)ppm, size); + if (rawdata != frame_data) free (rawdata); + + } else { /* type is GP_FILE_TYPE_RAW */ + size = w*h/comp_ratio; + rawdata = malloc (size+16); + if (!rawdata) return GP_ERROR_NO_MEMORY; + memcpy (rawdata, frame_data, size); + memcpy (rawdata+size,camera->pl->catalog+16*entry,16); + gp_file_set_mime_type (file, GP_MIME_RAW); + gp_file_set_data_and_size (file, (char *)rawdata, size+16); + } + /* Reset camera when done, for more graceful exit. */ + if ((!(is_in_clip)&&(entry +1 == camera->pl->nb_entries)) + || ((is_in_clip)&& (frame +1 == nb_frames ))) + sq_reset (camera->port); + + return GP_OK; +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + + GP_DEBUG(" * delete_all_func()"); + sq_delete_all(camera->port, camera->pl); + + return (GP_OK); +} + +static int +camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + unsigned char *frame_data; + unsigned char *ppm, *ptr; + unsigned char gtable[256]; + int size; + int w = 320; + int h = 240; + int b=0x12c40; + + camera->pl->last_fetched_data = malloc (b); + if (!camera->pl->last_fetched_data) { + sq_rewind(camera->port, camera->pl); + return GP_ERROR_NO_MEMORY; + } + + sq_access_reg(camera->port, CAPTURE); + sq_read_picture_data (camera->port, camera->pl->last_fetched_data, b); + frame_data = camera->pl->last_fetched_data + 0x40; + sq_preprocess(camera->pl->model, 1, 0, frame_data, w, h); + + /* Now put the data into a PPM image file. */ + ppm = malloc (w * h * 3 + 256); + if (!ppm) + return GP_ERROR_NO_MEMORY; + sprintf ((char *)ppm, + "P6\n" + "# CREATOR: gphoto2, SQ905 library\n" + "%d %d\n" + "255\n", w, h); + ptr = ppm + strlen ((char*)ppm); + size = strlen ((char*)ppm) + (w * h * 3); + GP_DEBUG ("size = %i\n", size); + switch (camera->pl->model) { + case SQ_MODEL_POCK_CAM: + gp_bayer_decode (frame_data, w , h , ptr, BAYER_TILE_GBRG); + break; + default: + gp_bayer_decode (frame_data, w , h , ptr, BAYER_TILE_BGGR); + break; + } + + /* TO DO: + * Adapt some postprocessing routine to work here, because results + * can vary greatly, depending both on lighting conditions and on + * camera model. + */ + + gp_gamma_fill_table (gtable, .5); + gp_gamma_correct_single (gtable, ptr, w * h); + gp_file_set_mime_type (file, GP_MIME_PPM); + gp_file_set_data_and_size (file, (char *)ppm, size); + + sq_reset(camera->port); + sq_access_reg(camera->port, CAPTURE); + sq_reset(camera->port); + + return (GP_OK); +} + +/*************** Exit and Initialization Functions ******************/ + +static int +camera_exit (Camera *camera, GPContext *context) +{ + GP_DEBUG ("SQ camera_exit"); + sq_reset (camera->port); + + if (camera->pl) { + free (camera->pl->catalog); + free (camera->pl->last_fetched_data); + free (camera->pl); + camera->pl = NULL; + } + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_file_func = get_file_func, + .get_info_func = get_info_func, + .delete_all_func = delete_all_func, +}; +int +camera_init(Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int ret = 0; + + /* First, set up all the function pointers */ + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + camera->functions->capture_preview + = camera_capture_preview; + camera->functions->exit = camera_exit; + + GP_DEBUG ("Initializing the camera\n"); + + ret = gp_port_get_settings(camera->port,&settings); + if (ret < 0) return ret; + + ret = gp_port_set_settings(camera->port,settings); + if (ret < 0) return ret; + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + camera->pl = malloc (sizeof (CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + camera->pl->model = 0; + camera->pl->catalog = NULL; + camera->pl->nb_entries = 0; + camera->pl->last_fetched_entry = -1; + camera->pl->last_fetched_data = NULL; + + /* Connect to the camera */ + ret = sq_init (camera->port, camera->pl); + if (ret != GP_OK) { + free(camera->pl); + return ret; + }; + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/postprocess.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/postprocess.c new file mode 100644 index 00000000..3b7fe474 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/postprocess.c @@ -0,0 +1,255 @@ +/* + * postprocess.c + * + * Here are the decompression function for the compressed photos and the + * postprocessing for uncompressed photos. + * + * Copyright (c) 2003 Theodore Kilgore + * Camera library support under libgphoto2.1.1 for camera(s) + * with chipset from Service & Quality Technologies, Taiwan. + * The chip supported by this driver is presumed to be the SQ905, + * + * Licensed under GNU Lesser General Public License, as part of Gphoto + * camera support project. For a copy of the license, see the file + * COPYING in the main source tree of libgphoto2. + */ + +#include + + +#include +#include +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include +#include +#include "sq905.h" + +#define GP_MODULE "sq905" + +#define RED 0 +#define GREEN 1 +#define BLUE 2 + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + + +static int +decode_panel (unsigned char *panel_out, unsigned char *panel, + int panelwidth, int height, int color); + +int +sq_decompress (SQModel model, unsigned char *output, unsigned char *data, + int w, int h) +{ + /* + * Data arranged in planar form. We decompress the raw data first, + * one colorplane at a time, and put the results into a standard + * Bayer pattern. The byte-reversal routine having been done already, + * the planes are in the order RBG. The R and B planes each have + * dimensions (w/4)*(h/2), and the G is (w/4)*h. + */ + + unsigned char *red, *green, *blue, *red_out, *green_out, *blue_out; + int i, m; + unsigned char temp; + + red = data; + blue = data + w*h/8; + green = data + w*h/4; + + red_out = malloc(w*h/4); + if (!red_out) + return -1; + blue_out = malloc(w*h/4); + if (!blue_out) { + free (red_out); + return -1; + } + green_out = malloc(w*h/2); + if (!green_out) { + free (red_out); + free (blue_out); + return -1; + } + decode_panel (red_out, red, w/2, h/2, RED); + decode_panel (blue_out, blue, w/2, h/2, BLUE); + decode_panel (green_out, green, w/2, h, GREEN); + + + /* Now, put things in their proper places */ + + for ( m = 0; m < h/2 ; m++ ) { + for ( i = 0; i < w/2; i++ ) { + /* Reds in even rows, even columns */ + output[(2*m)*w+2*i ] = red_out[m*w/2+i ]; + /* Blues in odd rows, odd columns */ + output[(2*m+1)*w+2*i +1] = blue_out[m*w/2+i]; + /* For the greens (note m*w = (2*m)*w/2) we + * get first the even rows, odd columns */ + output[(2*m)*w+ 2*i+1] = green_out[m*w +i]; + /* and then, the greens on odd rows, even columns. */ + output[(2*m+1)*w+ 2*i] = green_out[(2*m+1)*w/2 +i]; + } + } + + + + /* De-mirroring for some models */ + switch(model) { + case(SQ_MODEL_MAGPIX): + case(SQ_MODEL_POCK_CAM): + for (i = 0; i < h; i++) { + for (m = 0 ; m < w/2; m++) { + temp = output[w*i +m]; + output[w*i + m] = output[w*i + w -1 -m]; + output[w*i + w - 1 - m] = temp; + } + } + break; + default: ; /* default is "do nothing" */ + } + free (red_out); + free (green_out); + free (blue_out); + return(GP_OK); +} + +static +int decode_panel (unsigned char *panel_out, unsigned char *panel, + int panelwidth, int height, int color) { + /* Here, "panelwidth" signifies width of panel_out + * which is w/2, and height equals h */ + + int diff = 0; + int tempval = 0; + int i, m; + unsigned char delta_left = 0; + unsigned char delta_right = 0; + int input_counter = 0; + + int delta_table[] = {-144,-110,-77,-53,-35,-21,-11,-3, + 2,10,20,34,52,76,110,144}; + + unsigned char *temp_line; + temp_line = malloc(panelwidth); + + if (!temp_line) + return -1; + + for(i=0; i < panelwidth; i++){ + temp_line[i] = 0x80; + } + + if (color != GREEN) { + for (m=0; m < height; m++) { + + for (i=0; i< panelwidth/2; i++) { + + delta_left = panel[input_counter] &0x0f; + delta_right = (panel[input_counter]>>4)&0xff; + input_counter ++; + /* left pixel */ + diff = delta_table[delta_left]; + if (!i) + tempval = (temp_line[2*i]) + diff; + else + tempval = (temp_line[2*i] + + panel_out[m*panelwidth+2*i-1])/2 + diff; + tempval = MIN(tempval, 0xff); + tempval = MAX(tempval, 0); + panel_out[m*panelwidth+2*i] = tempval; + temp_line[2*i] = panel_out[m*panelwidth + 2*i]; + /* right pixel */ + diff = delta_table[delta_right]; + tempval = (temp_line[2*i+1] + + panel_out[m*panelwidth+2*i])/2 + diff; + tempval = MIN(tempval, 0xff); + tempval = MAX(tempval, 0); + panel_out[m*panelwidth+2*i+1] = tempval; + temp_line[2*i+1] = panel_out[m*panelwidth + 2*i+1]; + } + } + free (temp_line); + return 0; + } else { /* greens */ + for (m=0; m < height/2; m++) { + /* First we do an even line */ + for (i=0; i< panelwidth/2; i++) { + delta_left = panel[input_counter] &0x0f; + delta_right = (panel[input_counter]>>4)&0xff; + input_counter ++; + /* left pixel */ + diff = delta_table[delta_left]; + if (!i) + tempval = (temp_line[0]+temp_line[1])/2 + diff; + else + tempval = (temp_line[2*i+1] + + panel_out[2*m*panelwidth+2*i-1])/2 + diff; + tempval = MIN(tempval, 0xff); + tempval = MAX(tempval, 0); + panel_out[2*m*panelwidth+2*i] = tempval; + temp_line[2*i] = tempval; + /* right pixel */ + diff = delta_table[delta_right]; + if (2*i == panelwidth - 2 ) + tempval = (temp_line[2*i+1] + + panel_out + [2*m*panelwidth+2*i])/2 + + diff; + else + tempval = (temp_line[2*i+2] + + panel_out + [2*m*panelwidth+2*i])/2 + + diff; + tempval = MIN(tempval, 0xff); + tempval = MAX(tempval, 0); + panel_out[2*m*panelwidth+2*i+1] = tempval; + temp_line[2*i+1] = tempval; + } + /* then an odd line */ + for (i=0; i< panelwidth/2; i++) { + delta_left = panel[input_counter] &0x0f; + delta_right = (panel[input_counter]>>4)&0xff; + input_counter ++; + /* left pixel */ + diff = delta_table[delta_left]; + if (!i) + tempval = (temp_line[2*i]) + diff; + else + tempval = (temp_line[2*i] + + panel_out + [(2*m+1)*panelwidth+2*i-1])/2 + + diff; + tempval = MIN(tempval, 0xff); + tempval = MAX(tempval, 0); + panel_out[(2*m+1)*panelwidth+2*i] = tempval; + temp_line[2*i] = tempval; + /* right pixel */ + diff = delta_table[delta_right]; + tempval = (temp_line[2*i+1] + + panel_out[(2*m+1)*panelwidth+2*i])/2 + + diff; + tempval = MIN(tempval, 0xff); + tempval = MAX(tempval, 0); + panel_out[(2*m+1)*panelwidth+2*i+1] = tempval; + temp_line[2*i+1] = tempval; + } + } + free (temp_line); + return GP_OK; + } +} + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/sq905.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/sq905.c new file mode 100644 index 00000000..16ece4a6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/sq905.c @@ -0,0 +1,283 @@ +/* + * sq905.c + * + * Here, the functions which are needed to get data from the camera. + * + * Copyright (c) 2003 Theodore Kilgore + * Camera library support under libgphoto2.1.1 for camera(s) + * with chipset from Service & Quality Technologies, Taiwan. + * The chip supported by this driver is presumed to be the SQ905, + * + * Licensed under GNU Lesser General Public License, as part of Gphoto + * camera support project. For a copy of the license, see the file + * COPYING in the main source tree of libgphoto2. + */ + +#include + + +#include +#include +#include +#include +#include +#include +#ifdef OS2 +#include +#endif + +#include +#include +#include "sq905.h" + +#define GP_MODULE "sq905" + +#define SQWRITE gp_port_usb_msg_write +#define SQREAD gp_port_usb_msg_read + +#define zero "\x0" + +static int +sq_read_data (GPPort *port, unsigned char *data, int size) +{ + SQWRITE (port, 0x0c, 0x03, size, zero, 1); + gp_port_read (port, (char *)data, size); + return GP_OK; +} + + +int sq_access_reg (GPPort *port, int reg) +{ + char c; + SQWRITE (port, 0x0c, 0x06, reg, zero, 1); /* Access a register */ + SQREAD (port, 0x0c, 0x07, 0x00, &c, 1); + return GP_OK; +} + +int +sq_init (GPPort *port, CameraPrivateLibrary *priv) +{ + unsigned char c[0x4]; + int i; + unsigned char *catalog = malloc(0x4000); + unsigned char *catalog_tmp; + if (!catalog) return GP_ERROR_NO_MEMORY; + + sq_reset (port); + sq_access_reg(port, ID); /* Access model or chip id */ + + sq_read_data (port, c, 4); + sq_reset (port); + if (!memcmp (c, "\x09\x05\x01\x19", 4)) { + priv->model = SQ_MODEL_POCK_CAM; + } else if (!memcmp (c, "\x09\x05\x01\x32", 4)) { + priv->model = SQ_MODEL_MAGPIX; +/* + } else if (!memcmp (c, "\x09\x13\x06\x67", 4)) { + priv->model = SQ_MODEL_913c; +*/ +/* + } else if (!memcmp (c, "\x50\x05\x00\x26", 4)) { + priv->model = SQ_MODEL_PRECISION; +*/ + } else { + priv->model = SQ_MODEL_DEFAULT; + } + + sq_access_reg(port, CONFIG); /* Access config */ + sq_read_data(port, catalog, 0x4000); /* We need 16 bytes for each photo. */ + sq_reset (port); + + /* The first occurence of a zero denotes end of files entries (here clips count as 1 entry) */ + for (i=0; i<0x4000 && catalog[i]; i+=16) ; + priv->nb_entries = i>>4; + if (i) { + catalog_tmp = realloc(catalog, i); + if (catalog_tmp) + priv->catalog = catalog_tmp; + else + priv->catalog = catalog; + } else { + free (catalog); + priv->catalog = NULL; /* We just have freed catalog_tmp */ + } + + sq_reset (port); + + priv->last_fetched_entry = -1; + free(priv->last_fetched_data); + priv->last_fetched_data = NULL; + + return GP_OK; +} + +int +sq_get_num_frames (CameraPrivateLibrary *priv, int entry) +{ + if (sq_is_clip(priv, entry)) { + GP_DEBUG(" Number of frames in clip %i is %i\n", entry, priv->catalog[16*entry+7]); + return priv->catalog[16*entry+7]; + } else { + return 1; + } +} + + +int +sq_get_comp_ratio (CameraPrivateLibrary *priv, int entry) +{ + switch (priv->catalog[16*entry]) { + case 0x61: + case 0x62: + case 0x63: + case 0x76: return 2; + case 0x41: + case 0x42: + case 0x43: + case 0x52: + case 0x53: + case 0x56: + case 0x72: return 1; + default: + GP_DEBUG ("Your camera has unknown resolution settings.\n"); + return 0; + } +} + +int +sq_get_picture_width (CameraPrivateLibrary *priv, int entry) +{ + switch (priv->catalog[16*entry]) { + case 0x41: + case 0x52: + case 0x61: return 352; + case 0x42: + case 0x62: + case 0x72: return 176; + case 0x43: + case 0x53: + case 0x63: return 320; + case 0x56: + case 0x76: return 640; + default: + GP_DEBUG ("Your pictures have unknown width.\n"); + return 0; + } +} + +int +sq_is_clip (CameraPrivateLibrary *priv, int entry) +{ + switch (priv->catalog[16*entry]) { + case 0x52: + case 0x53: + case 0x72: return 1; + default: return 0; + } +} + +int +sq_rewind (GPPort *port, CameraPrivateLibrary *priv) +{ + static unsigned char dummy_buf[0x4000]; + + + GP_DEBUG("REWIND cam's data pointer"); + + /* One has to read the catalog to rewind the data stream... + * I don't know if it's by design. There ought to be something better to do... :-/ + */ + + + sq_access_reg(port, CONFIG); /* Access config */ + + sq_read_data(port, dummy_buf, 0x4000); + sq_reset (port); + sq_access_reg(port, DATA); /* Access photo data */ + + priv->last_fetched_entry = -1; + free(priv->last_fetched_data); + priv->last_fetched_data = NULL; + return GP_OK; +} + +int +sq_reset (GPPort *port) +{ + sq_access_reg(port, CLEAR); /* Release current register */ + + return GP_OK; +} + +int +sq_read_picture_data (GPPort *port, unsigned char *data, int size ) +{ + int remainder = size % 0x8000; + int offset = 0; + char c; + + while ((offset + 0x8000 < size)) { + sq_read_data (port, data + offset, 0x8000); + offset = offset + 0x8000; + } + sq_read_data (port, data + offset, remainder); + + SQWRITE (port, 0x0c, 0xc0, 0x00, &c, 1); + return GP_OK; +} + +int +sq_delete_all (GPPort *port, CameraPrivateLibrary *priv) +{ + /* This will work on the Argus DC-1510, perhaps some others. + * Will not successfully delete on all SQ905 cameras! + */ + + switch (priv->catalog[2]) { + case 0xd0: /* Searches for DC-1510 */ + sq_access_reg(port, CAPTURE); /* used here to delete */ + + sq_reset(port); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + return GP_OK; +} + +int +sq_preprocess (SQModel model, int comp_ratio, unsigned char is_in_clip, + unsigned char *data, int w, int h) +{ + int i, m, b; + unsigned char temp; + b=w*h/comp_ratio; + + GP_DEBUG("Running sq_preprocess\n"); + + if (!is_in_clip) { + /* Turning the picture right-side up. */ + for (i = 0; i < b/2; ++i) { + temp = data[i]; + data[i] = data[b -1 -i]; + data[b - 1 - i] = temp; + } + /* But clip frames are already right-side-up */ + } + /* + * POCK_CAM needs de-mirror-imaging, too. But if a photo is + * compressed we de-mirror after decompression, so not here. + */ + if ((model == SQ_MODEL_POCK_CAM) && (comp_ratio == 1)) { + for (i = 0; i < h; i++) { + for (m = 0 ; m < w/2; m++) { + temp = data[w*i +m]; + data[w*i + m] = data[w*i + w -1 -m]; + data[w*i + w - 1 - m] = temp; + } + } + } + return GP_OK; +} + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/sq905.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/sq905.h new file mode 100644 index 00000000..63c4a8f6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sq905/sq905.h @@ -0,0 +1,62 @@ +#ifndef __SQ905_H__ +#define __SQ905_H__ + +#include + +/* A 'picture' is a single standalone picture. + * A 'clip' is an autoshoot clip. + * A 'frame' is a single a picture out of a clip. + * An 'entry' corresponds to a line listed in the camera's configuration data, + * part of which is a rudimentary allocation table (the 'catalog'). + * An entry, therefore, may be either a picture or a clip. + * We reserve the word 'file' for the user fetchable file, + * that is, a picture or a frame. + */ + +typedef enum { + SQ_MODEL_POCK_CAM, + SQ_MODEL_PRECISION, + SQ_MODEL_MAGPIX, +/* SQ_MODEL_913c, */ + SQ_MODEL_DEFAULT +} SQModel; + +struct _CameraPrivateLibrary { + SQModel model; + unsigned char *catalog; + int nb_entries; + int last_fetched_entry; + unsigned char *last_fetched_data; +}; + + +#define ID 0xf0 +#define CONFIG 0x20 +#define DATA 0x30 +#define CLEAR 0xa0 +#define CAPTURE 0x61 + + +int sq_access_reg (GPPort *, int reg); +int sq_reset (GPPort *); +int sq_rewind (GPPort *, CameraPrivateLibrary *); +int sq_init (GPPort *, CameraPrivateLibrary *); +int sq_read_picture_data (GPPort *, unsigned char *data, int size); +int sq_delete_all (GPPort *, CameraPrivateLibrary *); + +/* Those functions don't need data transfer with the camera */ +int sq_get_num_frames (CameraPrivateLibrary *, int entry); + +int sq_get_comp_ratio (CameraPrivateLibrary *, int entry); +int sq_get_picture_width (CameraPrivateLibrary *, int entry); +int sq_is_clip (CameraPrivateLibrary *, int entry); + +int +sq_preprocess (SQModel model, int comp_ratio, + unsigned char is_in_clip, + unsigned char *data, int w, int h); +int +sq_decompress (SQModel model, unsigned char *output, unsigned char *data, + int w, int h); +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/Makefile-files new file mode 100644 index 00000000..93a1efbd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/Makefile-files @@ -0,0 +1,12 @@ +# -*- Makefile -*- + +EXTRA_DIST += st2205/README.st2205-compression st2205/README.st2205 +camlibdoc_DATA += st2205/README.st2205-compression st2205/README.st2205 + +EXTRA_LTLIBRARIES += st2205.la + +st2205_la_SOURCES = st2205/library.c st2205/st2205.c st2205/st2205.h st2205/st2205_decode.c st2205/st2205_tables.c +st2205_la_LDFLAGS = $(camlib_ldflags) +st2205_la_DEPENDENCIES = $(camlib_dependencies) +st2205_la_LIBADD = $(camlib_libadd) @LIBGD_LIBS@ $(LTLIBICONV) +st2205_la_CFLAGS = @LIBGD_CFLAGS@ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/README.st2205 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/README.st2205 new file mode 100644 index 00000000..2257abf7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/README.st2205 @@ -0,0 +1,36 @@ +About this driver +================= + +This driver allows you to upload / download and delete pictures from +Sitronix st2205 based picture frames. This are small, cheap picture +frames with a 1.1, 1.5, 1.8 or 2.4 inch display and a USB id of 1403:0001 + +st2205 based frames present themselves as a regular usb mass storage device, +but cannot be used as a normal disk! Communication with the device happens by +a special protocol which consist of reading / writing sectors of the disk at +certain magic offsets. This driver uses the special "usbdiskdirect" port +driver, which allows the direct sector access the camlib for these devices +needs. + + +About the st2205 access protocol +================================ + +The protocol for these devices was reverse engineered by Jeroen Domburg, who +has created a hack which allows directly displaying an image on them from the +PC (IOW using these picture frames as a second monitor). See the spritesmods +wiki: http://picframe.spritesserver.nl/ . Many thanks to Jeroen for this work, +on which this camlib is based! + +The protocol basically allows raw access to the flash chip on the picture +frame, for example you need to do separate erase and program commands, and +as an erase block is larger then what you program in a single program command +you must make sure to always reprogram the entire range the single erase +command cleared (and read the entire range before clearing, so you can write +it back). + + +About the st2205 image compression +================================== + +See README.st2205-compression. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/README.st2205-compression b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/README.st2205-compression new file mode 100644 index 00000000..29c316c1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/README.st2205-compression @@ -0,0 +1,317 @@ +History of the reverse engineering of the st2205 compression +------------------------------------------------------------ + +After some failed attempts by me (Hans de Goede), I asked help +from Bertrik Sikken with reverse engineering the st2205 compression. +He went the route of disassembling the windows binaries for uploading +pictures, and wrote an algorithm description of the decompression on +the picframe wiki: +http://picframe.spritesserver.nl/wiki/index.php/ImageEncoding + +A copy of this page is included below. + +I used this description to write decompression code. The first version +used header files with the lookup tables as C-code arrays and these +header files were made by and given to me by Bertrik. I also wrote +compression code by "simply" reversing the decompression algorithm. + +The lookup tables were a problem, as Bertrik copied them out of +the windows code, and one could argue that they are copyrightable. + +Luckily the same tables are also present in the firmware of the +picture frame, and we can read them from the frame. So the +libgphoto2 st2205 camlib uses this approach to avoid any copyright +issues. + +Below is a dump of: +http://picframe.spritesserver.nl/wiki/index.php/ImageEncoding +Made on 19 March 2010. + +Contents + + • 1 Compressed image format + □ 1.1 Introduction + □ 1.2 Image decoding + ☆ 1.2.1 Image header + ☆ 1.2.2 8x8 pixel block + ○ 1.2.2.1 Decoding chrominance + ○ 1.2.2.2 Decoding luminance + ○ 1.2.2.3 Color decoding + ☆ 1.2.3 Shuffling/unshuffling + □ 1.3 Table overview + +Compressed image format + +Images written on the keychain by the Photoviewer application are stored in +a compressed form. This section describes the compressed image format. + +NOTE: code for reading images from a ST2205-based picture photoframe has +been included now (march 2010) in gphoto SVN + +Introduction + +The photo keychain can contain several images. A simple directory-like +structure starting at address 0 contains pointers to where the actual +compressed images are stored. + +Basic principles used in the encoding: + + • 8x8 image blocks: an image has a dimension of 128x128 pixels and is + subdivided into 256 blocks of 8x8 pixels each. + • YUV-like encoding: each of these 8x8 pixel blocks is separated into a + brightness component and two color components and independently encoded + by a lossy compression algorithm. + • block shuffling: the order in which the blocks are encoded is usually + not simply linear top-down left-right, but is controlled by one of + several "shuffling tables" that determine where each decoded block goes + into the final image. By showing the decoding process in real time and + using a different shuffling table for each picture, the photo key chain + can create various transition effects between the previously decoded + photo and the currently decoding photo. + +Note the above (and below) 128x128 resolution and thus 256 blocks assumes a +frame with a lcd a resolution of 128x128, for displays with a different +reslution this numbers change accordingly. + +Image decoding + +An image is encoded as a 16-byte image header, followed by the 256 blocks +encoding each for an area of 8x8 pixels. Typically, each 8x8 block is +encoded using 48 bytes (or in some special cases 56 or 64 bytes, see +below), this means a total size of 12304 bytes. Uncompressed, the image +would require 32768 bytes (assuming 16-bit RGB565 format), saving space by +a factor of about 2.66. + +Image header + +An image starts with a 16-byte header: + +┌─────────┬───────────────────────────────────────────────────────────────┐ +│ Byte │ Meaning │ +├─────────┼───────────────────────────────────────────────────────────────┤ +│0x00 │Image marker with a fixed value of 0xF5 │ +├─────────┼───────────────────────────────────────────────────────────────┤ +│0x01/0x02│Image width (0x80) encoded as big-endian │ +├─────────┼───────────────────────────────────────────────────────────────┤ +│0x03/0x04│Image height (0x80) encoded as big-endian │ +├─────────┼───────────────────────────────────────────────────────────────┤ +│0x05/0x06│Number of 8x8 blocks in the image (0x100) encoded as big-endian│ +├─────────┼───────────────────────────────────────────────────────────────┤ +│0x07 │Shuffle pattern to use │ +├─────────┼───────────────────────────────────────────────────────────────┤ +│0x08 │Unknown, bits 1 and 2 carry some special meaning. Usually │ +│ │contains value 0x04. │ +├─────────┼───────────────────────────────────────────────────────────────┤ +│ │Related to block shuffling, exact meaning unknown. Contain 0xFF│ +│0x09 │for shuffle pattern 1, for other shuffle patterns it contains a│ +│ │value depending on the picture frame resolution. For 128x128 │ +│ │frames it contains 1, for 96x64 frames it contains 0. │ +├─────────┼───────────────────────────────────────────────────────────────┤ +│0x0A/0x0B│Length of following image data │ +├─────────┼───────────────────────────────────────────────────────────────┤ +│0x0C-0x0F│Padding/unused (all 0x00) │ +└─────────┴───────────────────────────────────────────────────────────────┘ + +8x8 pixel block + +The 8x8 pixel block is encoded further as a variable length block, as +follows: + +┌──────┬───────┬──────────────────────────────────────────────────────────┐ +│Offset│Meaning│ Remark │ +├──────┼───────┼──────────────────────────────────────────────────────────┤ +│ │Length │Bit 0-6 is the length of the rest of the block (often │ +│0x00 │byte │0x2F). Bit 7 selects between 2-bit and 4-bit luma decoding│ +│ │ │mode │ +├──────┼───────┼──────────────────────────────────────────────────────────┤ +│ │Luma Y │Bit 0-6 is the base offset of the luminance channel for │ +│0x01 │byte │every pixel in the block. Bit 7 selects between two │ +│ │ │luminance patterns tables (LUMA1 or LUMA2) │ +├──────┼───────┼──────────────────────────────────────────────────────────┤ +│ │Chroma │Bit 0-6 is the base offset of the U chrominance channel │ +│0x02 │U byte │for every pixel in the block. Bit 7 indicates extended │ +│ │ │decoding of this chrominance channel │ +├──────┼───────┼──────────────────────────────────────────────────────────┤ +│ │Chroma │Bit 0-6 is the base offset of the V chrominance channel │ +│0x03 │V byte │for every pixel in the block. Bit 7 indicates extended │ +│ │ │decoding of this chrominance channel │ +├──────┼───────┼──────────────────────────────────────────────────────────┤ +│0x04 │Chroma │Variable length chrominance channel U decoding info, see │ +│ │U data │below │ +├──────┼───────┼──────────────────────────────────────────────────────────┤ +│... │Chroma │Variable length chrominance channel V decoding info, see │ +│ │V data │below │ +├──────┼───────┼──────────────────────────────────────────────────────────┤ +│... │Luma Y │Variable length luminance channel decoding info, see below│ +│ │data │ │ +└──────┴───────┴──────────────────────────────────────────────────────────┘ + +Decoding chrominance + +Chrominance is encoded with a reduced resolution of 4x4 "pixels" per block. + +The chrominance decoding info consists of: + +┌─────────┬──────────┬────────────────────────────────────────────────────┐ +│ Offset │ Meaning │ Remark │ +├─────────┼──────────┼────────────────────────────────────────────────────┤ +│ │Pattern │Index into a color base pattern table (CHROMA). The │ +│0x00 │byte A │table entry contains the pattern for the top 8 │ +│ │ │chroma pixels. │ +├─────────┼──────────┼────────────────────────────────────────────────────┤ +│ │Pattern │Index into a color base pattern table (CHROMA). The │ +│0x01 │byte B │table entry contains the pattern for the bottom 8 │ +│ │ │chroma pixels. │ +├─────────┼──────────┼────────────────────────────────────────────────────┤ +│ │ │Optional correction items for each chroma pixel │ +│0x02-0x09│Correction│(using table CORR). This part is only present when │ +│ │ │bit7 of the chroma byte is set. │ +└─────────┴──────────┴────────────────────────────────────────────────────┘ + +The chrominance value is basically the sum of: + + 1. chrominance base value (from the chroma U or V byte minus 0x40) + 2. one of the two base patterns selected from table CHROMA using pattern + byte A and B. + 3. optionally a set of correction values selected from table CORR (very + much like luminance) + +Chroma pixels in a segment are arranged in the following pattern: + +A00 A01 A02 A03 +A04 A05 A06 A07 +B00 B01 B02 B03 +B04 B05 B06 B07 + +where Axx indicates data looked up using pattern byte A, and Bxx data +looked up using pattern byte B. + +Note that the chroma info per channel (U and V) is either 2 or 10 bytes, +which is why the total block size can be one of 48, 56, or 64 bytes (resp +no corr, corr for 1 channel, corr for both channels). By far most blocks +are 48 bytes big. + +Decoding luminance + +The luminance decoding info consists of: + +┌─────────┬───────────────────────────────────────────────────────────────┐ +│ Offset │ Meaning │ +├─────────┼───────────────────────────────────────────────────────────────┤ +│0x00-0x07│A set of indexes into table LUMA1 or LUMA2 to select a "base │ +│ │pattern" for each row of pixels inside a block. │ +├─────────┼───────────────────────────────────────────────────────────────┤ +│ │Correction items for each pixel in the block, where each │ +│0x08-0x27│correction item is encoded in 4 bits. Each correction item is │ +│ │actually an index into table CORR storing a value that is added│ +│ │to the luminance value of the pixel. │ +└─────────┴───────────────────────────────────────────────────────────────┘ + +In short, the luminance channel of each pixel is basically the sum of: + + 1. luminance base value as encoded in byte 0x01 + 2. one of the base patterns selected from table LUMA1 or LUMA2 using bytes + 0x00-0x07 (one byte for one pattern per row of 8 pixels) + 3. one of the correction values selected from table CORR using the nibbles + in bytes 0x08-0x27. This uses one nibble for each pixel, with the high + 4 bits (high nibble) of a byte coding the correction for the first + pixel that bytes corrects, and the low 4 bits code the correction for + the second pixel. The first byte (at offset 0x08), codes the correction + for pixel 00 and 01, etc. + +Pixels are arranged in the following pattern: + +00 01 02 03 04 05 06 07 +08 09 0A 0B 0C 0D 0E 0F +... +38 39 3A 3B 3C 3D 3E 3F + +Color decoding + +The color space used in the images is a kind of YUV, using one luminance +channel (called Y here) and two chrominance channels (called U and V here), +as follows: + +R = 2 * (Y + V) +G = 2 * (Y - U - V) +B = 2 * (Y + U) + +Any underflows/overflows during the calculation of the RGB values should be +saturated to either 0 or 255 respectively. + +And conversely (during encode): + +Y = (R + G + B) / 6 +U = B/2 - Y +V = R/2 - Y + +where U and V should be constrained to the range -64 to +63. + +Shuffling/unshuffling + +Blocks of 8x8 pixels are stored in a shuffled sequence. The choice of the +shuffle pattern is stored in byte 0x07 of the image header. + +The shuffle pattern is stored in table SHUFFLEx, which contains the (x,y) +coordinates of each 8x8 pixel block. Currently there are 7 known shuffle +patterns. + +Table overview + +Several tables are involved in encoding/decoding. Below is an overview of +the various tables, their properties and what they are used for + +┌────────┬────────────┬───────────────────────────────────────────────────┐ +│ Table │ Dimension │ Remark │ +├────────┼────────────┼───────────────────────────────────────────────────┤ +│ │256 entries │Entry contains brightness patterns for 1 row of 8 │ +│LUMA1 │of 8 signed │pixels within an 8x8 block. │ +│ │words │ │ +├────────┼────────────┼───────────────────────────────────────────────────┤ +│ │256 entries │Entry contains brightness patterns for 1 row of 8 │ +│LUMA2 │of 8 signed │pixels within an 8x8 block. Alternate table. │ +│ │words │ │ +├────────┼────────────┼───────────────────────────────────────────────────┤ +│ │256 entries │Entry contains chroma patterns for 2 rows of 4 │ +│CHROMA │of 8 signed │pixels within an 4x4 chroma block. │ +│ │words │ │ +├────────┼────────────┼───────────────────────────────────────────────────┤ +│ │256 entries │Entry contains the (x,y) coordinates for an 8x8 │ +│SHUFFLEx│of 2 bytes │block. There are several tables like this, each one│ +│ │ │encoding for a different shuffle pattern. │ +├────────┼────────────┼───────────────────────────────────────────────────┤ +│ │16 entries │Correction values that are applied for each pixel. │ +│CORR │of 1 signed │Values in this table: │ +│ │word │-26,-22,-18,-14,-11,-7,-4,-1,1,4,7,11,14,18,22,26 │ +└────────┴────────────┴───────────────────────────────────────────────────┘ + +The LUMA1, LUMA2 and CHROMA tables are stored inside the picframe in 16 +bits signed (2's complement) LE byte order format. LUMA1 starts at 0x8477, +LUMA2 at 0x9477, CHROMA at 0xA477. These 3 tables are directly followed at +0xB477 by various shuffle tables, which contain x, y coordinate pairs (1 +byte for each). There are a number of sets of shuffle tables, for different +display resolutions. There are 8 or 7 tables per set, the first 2 tables +are "generated" (0 = row by row, 1 = column by column), then 6 or 5 tables +per resolution in ROM: + +┌──────────┬──────┬─────────────────────┐ +│Resolution│start │Number of sets in ROM│ +├──────────┼──────┼─────────────────────┤ +│128 x 160 │0xB477│6 │ +├──────────┼──────┼─────────────────────┤ +│128 x 128 │0xC377│5 │ +├──────────┼──────┼─────────────────────┤ +│120 x 160 │0xCD77│5 │ +├──────────┼──────┼─────────────────────┤ +│96 x 64 │0xD92F│5 │ +└──────────┴──────┴─────────────────────┘ + +Retrieved from "http://picframe.spritesserver.nl/wiki/index.php/ +ImageEncoding" + +Powered by MediaWiki +GNU Free Documentation License 1.2 + + • This page was last modified 20:49, 16 March 2010. + • This page has been accessed 4,256 times. + • Content is available under GNU Free Documentation License 1.2. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/library.c new file mode 100644 index 00000000..5c52575e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/library.c @@ -0,0 +1,724 @@ +/* Sitronix st2205 picframe access library + * + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#define _DEFAULT_SOURCE +#include "config.h" + +#include +#include +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) +# include +#endif +#ifdef HAVE_LIBGD +# include +#endif + +#include +#include +#include +#include +#include "st2205.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "ST2205 USB picture frame"); + + return GP_OK; +} + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset (&a, 0, sizeof(a)); + strcpy (a.model, "ST2205 USB picture frame"); + a.status = GP_DRIVER_STATUS_TESTING; + a.port = GP_PORT_USB_DISK_DIRECT; + a.speed[0] = 0; + a.usb_vendor = 0x1403; + a.usb_product= 0x0001; + a.operations = GP_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE | + GP_FOLDER_OPERATION_DELETE_ALL; + a.file_operations = GP_FILE_OPERATION_DELETE | GP_FILE_OPERATION_RAW; + return gp_abilities_list_append (list, a); +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + sprintf (summary->text, + _("Your USB picture frame has a ST2205 chipset\n")); + return GP_OK; +} + +static int +camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy(manual->text, + _( + "ST2205 based picture frames come with a variety of resolutions.\n" + "The gphoto driver for these devices allows you to download,\n" + "upload and delete pictures from the picture frame." + )); + + return GP_OK; +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _( + "ST2205 USB picture frame driver\n" + "Hans de Goede \n" + "This driver allows you to download, upload and delete pictures\n" + "from the picture frame." + )); + + return GP_OK; +} + +static int get_file_idx(CameraPrivateLibrary *pl, const char *folder, + const char *filename) +{ + int i; + + if (strcmp (folder, "/")) + return GP_ERROR_DIRECTORY_NOT_FOUND; + + for (i = 0; i < ST2205_MAX_NO_FILES; i++) { + if (!strcmp (filename, pl->filenames[i])) + break; + } + + if (i == ST2205_MAX_NO_FILES) + return GP_ERROR_FILE_NOT_FOUND; + + return i; +} + +#ifdef HAVE_LIBGD +static void +rotate90 (gdImagePtr src, gdImagePtr dest) +{ + int x, y; + + for (y = 0; y < dest->sy; y++) + for (x = 0; x < dest->sx; x++) + dest->tpixels[y][x] = + src->tpixels[src->sy - x - 1][y]; +} + +static void +rotate270 (gdImagePtr src, gdImagePtr dest) +{ + int x, y; + + for (y = 0; y < dest->sy; y++) + for (x = 0; x < dest->sx; x++) + dest->tpixels[y][x] = + src->tpixels[x][src->sx - y - 1]; +} + +static int +needs_rotation (Camera *camera) +{ + int display_orientation, user_orientation = camera->pl->orientation; + + if (camera->pl->width > camera->pl->height) + display_orientation = ORIENTATION_LANDSCAPE; + else + display_orientation = ORIENTATION_PORTRAIT; + + if (user_orientation == ORIENTATION_AUTO) { + if (camera->pl->width == 240 && camera->pl->height == 320) + user_orientation = ORIENTATION_LANDSCAPE; + else + user_orientation = display_orientation; + } + + return display_orientation != user_orientation; +} +#endif + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + int idx, size; +#ifdef HAVE_LIBGD + int ret; + gdImagePtr im, rotated; + void *gdpng; +#endif + + idx = get_file_idx(camera->pl, folder, filename); + if (idx < 0) + return idx; + + if (type == GP_FILE_TYPE_RAW) { + unsigned char *raw; + + size = st2205_read_raw_file (camera, idx, &raw); + if (size < 0) return size; + + gp_file_set_mime_type (file, GP_MIME_RAW); + gp_file_set_name (file, filename); + gp_file_set_data_and_size (file, (char *)raw, size); + + return GP_OK; + } + +#ifdef HAVE_LIBGD + if (type != GP_FILE_TYPE_NORMAL) + return GP_ERROR_NOT_SUPPORTED; + + im = gdImageCreateTrueColor(camera->pl->width, camera->pl->height); + if (im == NULL) + return GP_ERROR_NO_MEMORY; + + ret = st2205_read_file(camera, idx, im->tpixels); + if (ret < 0) { + gdImageDestroy (im); + return ret; + } + + if (needs_rotation (camera)) { + rotated = gdImageCreateTrueColor (im->sy, im->sx); + if (rotated == NULL) { + gdImageDestroy (im); + return GP_ERROR_NO_MEMORY; + } + rotate270 (im, rotated); + gdImageDestroy (im); + im = rotated; + } + + gdpng = gdImagePngPtr(im, &size); + gdImageDestroy (im); + if (gdpng == NULL) + return GP_ERROR_NO_MEMORY; + + ret = gp_file_set_mime_type (file, GP_MIME_PNG); + if (ret < 0) { gdFree (gdpng); return ret; } + + ret = gp_file_set_name (file, filename); + if (ret < 0) { gdFree (gdpng); return ret; } + + ret = gp_file_append (file, gdpng, size); + gdFree (gdpng); + return ret; +#else + gp_log(GP_LOG_ERROR,"st2205", "GD decompression not supported - no libGD present during build"); + return GP_ERROR_NOT_SUPPORTED; +#endif +} + +static int +put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *data, GPContext *context) +{ +#ifdef HAVE_LIBGD + Camera *camera = data; + char *c, *in_name, *out_name, *filedata = NULL; + int ret, in_width, in_height, in_x, in_y; + size_t inc, outc; + double aspect_in, aspect_out; +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + char *in, *out; +#else + int i; +#endif + unsigned long filesize = 0; + gdImagePtr rotated, im_out, im_in = NULL; + + if (strcmp (folder, "/")) + return GP_ERROR_DIRECTORY_NOT_FOUND; + + inc = strlen (name); + in_name = strdup (name); + outc = inc; + out_name = malloc (outc + 1); + if (!in_name || !out_name) { + free (in_name); + free (out_name); + return GP_ERROR_NO_MEMORY; + } + + /* Convert name to ASCII */ +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + in = in_name; + out = out_name; + if (iconv (camera->pl->cd, &in, &inc, &out, &outc) == -1) { + free (in_name); + free (out_name); + gp_log (GP_LOG_ERROR, "iconv", + "Failed to convert filename to ASCII"); + return GP_ERROR_OS_FAILURE; + } + outc = out - out_name; + out_name[outc] = 0; +#else + for (i = 0; i < inc; i++) { + if ((uint8_t)in_name[i] < 0x20 || (uint8_t)in_name[i] > 0x7E) + out_name[i] = '?'; + else + out_name[i] = in_name[i]; + } + out_name[i] = 0; +#endif + free (in_name); + + /* Remove file extension, and if necessary truncate the name */ + c = strrchr (out_name, '.'); + if (c) + *c = 0; + if (outc > ST2205_FILENAME_LENGTH) + out_name[ST2205_FILENAME_LENGTH] = 0; + + ret = gp_file_get_data_and_size (file, (const char **)&filedata, + &filesize); + if (ret < 0) { free (out_name); return ret; } + + /* Try loading the file using gd, starting with the most often + used types first */ + + /* gdImageCreateFromJpegPtr is chatty on error, don't call it on + non JPEG files */ + if (filesize > 2 && + (uint8_t)filedata[0] == 0xff && (uint8_t)filedata[1] == 0xd8) + im_in = gdImageCreateFromJpegPtr(filesize, filedata); + if (im_in == NULL) + im_in = gdImageCreateFromPngPtr(filesize, filedata); + if (im_in == NULL) + im_in = gdImageCreateFromGifPtr(filesize, filedata); + if (im_in == NULL) + im_in = gdImageCreateFromWBMPPtr(filesize, filedata); + if (im_in == NULL) { + gp_log (GP_LOG_ERROR, "st2205", + "Unrecognized file format for file: %s%s", + folder, name); + free (out_name); + return GP_ERROR_BAD_PARAMETERS; + } + + if (needs_rotation (camera)) { + rotated = gdImageCreateTrueColor (im_in->sy, im_in->sx); + if (rotated == NULL) { + gdImageDestroy (im_in); + free (out_name); + return GP_ERROR_NO_MEMORY; + } + rotate90 (im_in, rotated); + gdImageDestroy (im_in); + im_in = rotated; + } + + im_out = gdImageCreateTrueColor(camera->pl->width, camera->pl->height); + if (im_out == NULL) { + gdImageDestroy (im_in); + free (out_name); + return GP_ERROR_NO_MEMORY; + } + + /* Keep aspect */ + aspect_in = (double)im_in->sx / im_in->sy; + aspect_out = (double)im_out->sx / im_out->sy; + if (aspect_in > aspect_out) { + /* Reduce in width (crop left and right) */ + in_width = (im_in->sx / aspect_in) * aspect_out; + in_x = (im_in->sx - in_width) / 2; + in_height = im_in->sy; + in_y = 0; + } else { + /* Reduce in height (crop top and bottom) */ + in_width = im_in->sx; + in_x = 0; + in_height = (im_in->sy * aspect_in) / aspect_out; + in_y = (im_in->sy - in_height) / 2; + } + + gdImageCopyResampled (im_out, im_in, 0, 0, in_x, in_y, + im_out->sx, im_out->sy, + in_width, in_height); + + if (im_in->sx != im_out->sx || + im_in->sy != im_out->sy) + gdImageSharpen(im_out, 100); + + ret = st2205_write_file (camera, out_name, im_out->tpixels); + if (ret >= 0) { + /* Add to our filenames list */ + ST2205_SET_FILENAME(camera->pl->filenames[ret], out_name, ret); + /* And commit the changes to the device */ + ret = st2205_commit(camera); + } + + gdImageDestroy (im_in); + gdImageDestroy (im_out); + free (out_name); + return ret; +#else + gp_log(GP_LOG_ERROR,"st2205", "GD compression not supported - no libGD present during build"); + return GP_ERROR_NOT_SUPPORTED; +#endif +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int ret, idx; + + idx = get_file_idx(camera->pl, folder, filename); + if (idx < 0) + return idx; + + ret = st2205_delete_file(camera, idx); + if (ret < 0) return ret; + + /* Also remove the file from our cached filelist */ + camera->pl->filenames[idx][0] = 0; + + return st2205_commit(camera); +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + + CHECK (st2205_delete_all (camera)) + + return st2205_commit (camera); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + memset (info, 0, sizeof(CameraFileInfo)); + /* FIXME: fill in some stuff? */ + return GP_OK; +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i, ret; + + for (i = 0; i < ST2205_MAX_NO_FILES; i++) { + if (camera->pl->filenames[i][0]) { + ret = gp_list_append (list, camera->pl->filenames[i], + NULL); + if (ret < 0) return ret; + } + } + + return GP_OK; +} + +static int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **sinfos, + int *nrofsinfos, + void *data, GPContext *context) +{ + Camera *camera = (Camera*)data; + CameraStorageInformation *sinfo; + int free; + + free = st2205_get_free_mem_size (camera); + if (free < 0) return free; + + sinfo = malloc(sizeof(CameraStorageInformation)); + if (!sinfo) return GP_ERROR_NO_MEMORY; + + *sinfos = sinfo; + *nrofsinfos = 1; + + sinfo->fields = GP_STORAGEINFO_BASE; + strcpy(sinfo->basedir, "/"); + + sinfo->fields |= GP_STORAGEINFO_ACCESS; + sinfo->access = GP_STORAGEINFO_AC_READWRITE; + sinfo->fields |= GP_STORAGEINFO_STORAGETYPE; + sinfo->type = GP_STORAGEINFO_ST_FIXED_RAM; + sinfo->fields |= GP_STORAGEINFO_FILESYSTEMTYPE; + sinfo->fstype = GP_STORAGEINFO_FST_GENERICFLAT; + sinfo->fields |= GP_STORAGEINFO_MAXCAPACITY; + sinfo->capacitykbytes = st2205_get_mem_size (camera) / 1024; + sinfo->fields |= GP_STORAGEINFO_FREESPACEKBYTES; + sinfo->freekbytes = free / 1024; + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .put_file_func = put_file_func, + .delete_all_func = delete_all_func, + .storage_info_func = storage_info_func +}; + +static char * +orientation_to_string (int orientation) +{ + switch (orientation) { + case ORIENTATION_AUTO: + return _("Auto"); + case ORIENTATION_LANDSCAPE: + return _("Landscape"); + case ORIENTATION_PORTRAIT: + return _("Portrait"); + } + /* Never reached */ + return NULL; +} + +static int +string_to_orientation (const char *str) +{ + if (strcmp (str, _("Auto")) == 0) + return ORIENTATION_AUTO; + else if (strcmp (str, _("Landscape")) == 0) + return ORIENTATION_LANDSCAPE; + else if (strcmp (str, _("Portrait")) == 0) + return ORIENTATION_PORTRAIT; + else + return GP_ERROR_NOT_SUPPORTED; +} + +static int +camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *child; + + GP_DEBUG ("*** camera_get_config"); + + gp_widget_new (GP_WIDGET_WINDOW, + _("Picture Frame Configuration"), window); + + gp_widget_new (GP_WIDGET_TOGGLE, + _("Synchronize frame data and time with PC"), &child); + gp_widget_set_value (child, &camera->pl->syncdatetime); + gp_widget_append (*window, child); + + gp_widget_new (GP_WIDGET_RADIO, _("Orientation"), &child); + gp_widget_add_choice (child, orientation_to_string (0)); + gp_widget_add_choice (child, orientation_to_string (1)); + gp_widget_add_choice (child, orientation_to_string (2)); + gp_widget_set_value (child, + orientation_to_string (camera->pl->orientation)); + gp_widget_append (*window, child); + + return GP_OK; +} + +static int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *child; + int ret; + + GP_DEBUG ("*** camera_set_config"); + + ret = gp_widget_get_child_by_label (window, + _("Synchronize frame data and time with PC"), &child); + if (ret == GP_OK) + gp_widget_get_value (child, &camera->pl->syncdatetime); + + ret = gp_widget_get_child_by_label (window, _("Orientation"), &child); + if (ret == GP_OK) { + char *value; + int orientation; + gp_widget_get_value (child, &value); + orientation = string_to_orientation (value); + if (orientation < 0) return orientation; + camera->pl->orientation = orientation; + } + + return GP_OK; +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + char buf[2]; + + if (camera->pl != NULL) { + buf[0] = '0' + camera->pl->syncdatetime; + buf[1] = 0; + gp_setting_set ("st2205", "syncdatetime", buf); + gp_setting_set ("st2205", "orientation", orientation_to_string + (camera->pl->orientation)); +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + if (camera->pl->cd != (iconv_t) -1) + iconv_close (camera->pl->cd); +#endif + st2205_close (camera); + free (camera->pl); + camera->pl = NULL; + } + return GP_OK; +} + +int +camera_init (Camera *camera, GPContext *context) +{ + int i, j, ret; +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + char *curloc; +#endif + char buf[256]; + st2205_filename clean_name; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + /* FIXME add gp_camera_get_storageinfo support */ + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = calloc (1, sizeof(CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + + ret = gp_setting_get("st2205", "syncdatetime", buf); + if (ret == GP_OK) + camera->pl->syncdatetime = buf[0] == '1'; + else + camera->pl->syncdatetime = 1; + + ret = gp_setting_get("st2205", "orientation", buf); + if (ret == GP_OK) { + ret = string_to_orientation (buf); + if (ret >= 0) + camera->pl->orientation = ret; + } + +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + curloc = nl_langinfo (CODESET); + if (!curloc) + curloc="UTF-8"; + camera->pl->cd = iconv_open("ASCII", curloc); + if (camera->pl->cd == (iconv_t) -1) { + gp_log (GP_LOG_ERROR, "iconv", + "Failed to create iconv converter"); + camera_exit (camera, context); + return GP_ERROR_OS_FAILURE; + } +#endif + +#if 1 + ret = st2205_open_device (camera); +#else + ret = st2205_open_dump (camera, + "/home/hans/st2205tool/memdump.bin", 128, 128); +#endif + if (ret != GP_OK) { + camera_exit (camera, context); + return ret; + } + + GP_DEBUG ("st2205 memory size: %d, free: %d", + st2205_get_mem_size (camera), + st2205_get_free_mem_size (camera)); + + /* Get the filenames from the picframe */ + ret = st2205_get_filenames (camera, camera->pl->filenames); + if (ret != GP_OK) { + camera_exit (camera, context); + return ret; + } + + /* And clean them up and make them unique */ + for (i = 0; i < ST2205_MAX_NO_FILES; i++) { + if (!camera->pl->filenames[i][0]) + continue; + + /* Filter out non ASCII chars (some frames ship + with sample photo's with garbage in the names) */ + for (j = 0; camera->pl->filenames[i][j]; j++) { + if ((uint8_t)camera->pl->filenames[i][j] < 0x20 || + (uint8_t)camera->pl->filenames[i][j] > 0x7E) + clean_name[j] = '?'; + else + clean_name[j] = camera->pl->filenames[i][j]; + } + clean_name[j] = 0; + + ST2205_SET_FILENAME(camera->pl->filenames[i], clean_name, i); + } + + /* Sync time if requested */ + if (camera->pl->syncdatetime) { +#ifdef HAVE_LOCALTIME_R + struct tm tm; +#endif + struct tm *xtm; + time_t t; + + t = time (NULL); + +#ifdef HAVE_LOCALTIME_R + if ((xtm = localtime_r (&t , &tm))) { +#else + if ((xtm = localtime (&t))) { +#endif + ret = st2205_set_time_and_date (camera, xtm); + if (ret != GP_OK) { + camera_exit (camera, context); + return ret; + } + } + } + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205.c new file mode 100644 index 00000000..fce1344b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205.c @@ -0,0 +1,1131 @@ +/* Sitronix st2205 picframe access library + * + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#define _DEFAULT_SOURCE +#define _POSIX_C_SOURCE 1 +#include "config.h" + +#include +#include +#include +#include <_stdint.h> +#include +#include +#include +#ifdef HAVE_SYS_MMAN_H +# include +#endif +#include +#include + +#include +#include "st2205.h" + +struct image_table_entry { + uint8_t present; /* 1 when this image is present, 0 when deleted */ + uint32_t address; /* memory address where this image is stored */ + char name[ST2205_FILENAME_LENGTH + 1]; /* Image name (11 bytes) */ +} __attribute__((packed)); + +/* The st2205 port driver's write and read functions require page aligned + buffers, as they use O_DIRECT. */ +static char *st2205_malloc_page_aligned(int size) +{ +#ifdef HAVE_SYS_MMAN_H + int fd; + char *aligned; + + fd = open ("/dev/zero", O_RDWR); + aligned = mmap (0, size, PROT_READ|PROT_WRITE,MAP_PRIVATE, fd, 0); + close (fd); + if (aligned == MAP_FAILED) + return NULL; + return aligned; +#else + /* hope for the best */ + return malloc(size); +#endif +} + +static void st2205_free_page_aligned(char *aligned, int size) +{ +#ifdef HAVE_SYS_MMAN_H + if (aligned != NULL) + munmap(aligned, size); +#else + free (aligned); +#endif +} + +static int +st2205_send_command(Camera *camera, int cmd, int arg1, int arg2) +{ + char *buf = camera->pl->buf; + + if (gp_port_seek (camera->port, ST2205_CMD_OFFSET, SEEK_SET) != + ST2205_CMD_OFFSET) + return GP_ERROR_IO; + + memset(buf, 0, 512); + buf[0] = cmd; + buf[1] = (arg1 >> 24) & 0xff; + buf[2] = (arg1 >> 16) & 0xff; + buf[3] = (arg1 >> 8) & 0xff; + buf[4] = (arg1 ) & 0xff; + buf[5] = (arg2 >> 24) & 0xff; + buf[6] = (arg2 >> 16) & 0xff; + buf[7] = (arg2 >> 8) & 0xff; + buf[8] = (arg2 ) & 0xff; + + if (gp_port_write (camera->port, buf, 512) != 512) + return GP_ERROR_IO_WRITE; + + return GP_OK; +} + +static int +st2205_read_block(Camera *camera, int block, char *buf) +{ + int ret; + if (camera->pl->mem_dump) { + ret = fseek(camera->pl->mem_dump, block * ST2205_BLOCK_SIZE, + SEEK_SET); + if (ret) { + gp_log (GP_LOG_ERROR, "st2205", + "seeking in memdump: %s", strerror(errno)); + return GP_ERROR_IO_READ; + } + ret = fread(buf, 1, ST2205_BLOCK_SIZE, camera->pl->mem_dump); + if (ret != ST2205_BLOCK_SIZE) { + if (ret < 0) + gp_log (GP_LOG_ERROR, "st2205", + "reading memdump: %s", + strerror(errno)); + else + gp_log (GP_LOG_ERROR, "st2205", + "short read reading from memdump"); + return GP_ERROR_IO_READ; + } + } else { + CHECK (st2205_send_command (camera, 4, block, + ST2205_BLOCK_SIZE)) + if (gp_port_seek (camera->port, ST2205_READ_OFFSET, SEEK_SET) + != ST2205_READ_OFFSET) + return GP_ERROR_IO; + + if (gp_port_read (camera->port, buf, ST2205_BLOCK_SIZE) + != ST2205_BLOCK_SIZE) + return GP_ERROR_IO_READ; + } + return GP_OK; +} + +static int +st2205_write_block(Camera *camera, int block, char *buf) +{ + int ret; + if (camera->pl->mem_dump) { + ret = fseek(camera->pl->mem_dump, block * ST2205_BLOCK_SIZE, + SEEK_SET); + if (ret) { + gp_log (GP_LOG_ERROR, "st2205", + "seeking in memdump: %s", strerror(errno)); + return GP_ERROR_IO_WRITE; + } + ret = fwrite(buf, 1, ST2205_BLOCK_SIZE, camera->pl->mem_dump); + if (ret != ST2205_BLOCK_SIZE) { + gp_log (GP_LOG_ERROR, "st2205", + "writing memdump: %s", strerror(errno)); + return GP_ERROR_IO_WRITE; + } + } else { + /* Prepare for write */ + CHECK (st2205_send_command (camera, 3, block, + ST2205_BLOCK_SIZE)) + /* Write */ + if (gp_port_seek (camera->port, ST2205_WRITE_OFFSET, SEEK_SET) + != ST2205_WRITE_OFFSET) + return GP_ERROR_IO; + + if (gp_port_write (camera->port, buf, ST2205_BLOCK_SIZE) + != ST2205_BLOCK_SIZE) + return GP_ERROR_IO_WRITE; + /* Commit */ + CHECK (st2205_send_command (camera, 2, block, + ST2205_BLOCK_SIZE)) + /* Read commit response (ignored) */ + if (gp_port_seek (camera->port, ST2205_READ_OFFSET, SEEK_SET) + != ST2205_READ_OFFSET) + return GP_ERROR_IO; + + if (gp_port_read (camera->port, camera->pl->buf, 512) + != 512) + return GP_ERROR_IO_READ; + } + return GP_OK; +} + +static int +st2205_check_block_present(Camera *camera, int block) +{ + int ret; + + if ((block + 1) * ST2205_BLOCK_SIZE > camera->pl->mem_size) { + gp_log (GP_LOG_ERROR, "st2205", "read beyond end of memory"); + return GP_ERROR_CORRUPTED_DATA; + } + + if (camera->pl->block_is_present[block]) + return GP_OK; + + ret = st2205_read_block(camera, block, camera->pl->mem + + block * ST2205_BLOCK_SIZE); + if (ret == 0) + camera->pl->block_is_present[block] = 1; + + return ret; +} + +static int +st2205_detect_mem_size(Camera *camera) +{ + char *buf0, *buf1; + int i, ret; + + buf0 = st2205_malloc_page_aligned(ST2205_BLOCK_SIZE); + buf1 = st2205_malloc_page_aligned(ST2205_BLOCK_SIZE); + if (!buf0 || !buf1) { + st2205_free_page_aligned(buf0, ST2205_BLOCK_SIZE); + st2205_free_page_aligned(buf1, ST2205_BLOCK_SIZE); + return GP_ERROR_NO_MEMORY; + } + + ret = st2205_read_block(camera, 0, buf0); + if (ret) { + st2205_free_page_aligned(buf0, ST2205_BLOCK_SIZE); + st2205_free_page_aligned(buf1, ST2205_BLOCK_SIZE); + return ret; + } + + for (i = 0; i < 3; i++) { + ret = st2205_read_block(camera, + (524288 / ST2205_BLOCK_SIZE) << i, + buf1); + if (ret) { + st2205_free_page_aligned(buf0, ST2205_BLOCK_SIZE); + st2205_free_page_aligned(buf1, ST2205_BLOCK_SIZE); + return ret; + } + if (memcmp(buf0, buf1, ST2205_BLOCK_SIZE) == 0) + break; + } + + camera->pl->mem_size = 524288 << i; + + st2205_free_page_aligned(buf0, ST2205_BLOCK_SIZE); + st2205_free_page_aligned(buf1, ST2205_BLOCK_SIZE); + + return GP_OK; +} + +static int +st2205_read_mem(Camera *camera, int offset, + void *buf, int len) +{ + int to_copy, block = offset / ST2205_BLOCK_SIZE; + + while (len) { + CHECK (st2205_check_block_present (camera, block)) + + to_copy = ST2205_BLOCK_SIZE - (offset % ST2205_BLOCK_SIZE); + if (to_copy > len) + to_copy = len; + + memcpy(buf, camera->pl->mem + offset, to_copy); + buf += to_copy; + len -= to_copy; + offset += to_copy; + block++; + } + return GP_OK; +} + +static int +st2205_write_mem(Camera *camera, int offset, + void *buf, int len) +{ + int to_copy, block = offset / ST2205_BLOCK_SIZE; + + /* Don't allow writing to the firmware space */ + if ((offset + len) > + (camera->pl->mem_size - camera->pl->firmware_size)) { + gp_log (GP_LOG_ERROR, "st2205", "write beyond end of memory"); + return GP_ERROR_CORRUPTED_DATA; + } + + while (len) { + CHECK (st2205_check_block_present (camera, block)) + + to_copy = ST2205_BLOCK_SIZE - (offset % ST2205_BLOCK_SIZE); + if (to_copy > len) + to_copy = len; + + memcpy(camera->pl->mem + offset, buf, to_copy); + camera->pl->block_dirty[block] = 1; + + buf += to_copy; + len -= to_copy; + offset += to_copy; + block++; + } + return GP_OK; +} + +static int +st2205_read_file_count(Camera *camera) +{ + uint8_t count; + + CHECK (st2205_read_mem (camera, ST2205_COUNT_OFFSET, &count, 1)) + + return count; +} + +static int +st2205_write_file_count(Camera *camera, int count) +{ + uint8_t c = count; + + CHECK (st2205_write_mem (camera, ST2205_COUNT_OFFSET, &c, 1)) + + return GP_OK; +} + +static int +st2205_calc_fat_checksum(Camera *camera) +{ + int i, checksum = 0; + + CHECK (st2205_check_block_present(camera, 0)) + + /* Calculate the "FAT" checksum, note that the present bits are skipped + (as is the checksum location itself). The picframe itself does not + care about this, but the windows software does! */ + for (i = 2; i < ST2205_FAT_SIZE; i++) + if (i % 16) + checksum += (uint8_t)camera->pl->mem[i]; + + return checksum & 0xffff; +} + +static int +st2205_check_fat_checksum(Camera *camera) +{ + int checksum, expected_checksum; + + CHECK (st2205_check_block_present (camera, 0)) + checksum = le16atoh ((uint8_t *)camera->pl->mem); + + expected_checksum = st2205_calc_fat_checksum (camera); + if (expected_checksum < 0) return expected_checksum; + + if (checksum != expected_checksum) { + gp_log (GP_LOG_ERROR, "st2205", + "image table checksum mismatch"); + return GP_ERROR_CORRUPTED_DATA; + } + + return GP_OK; +} + +static int +st2205_update_fat_checksum(Camera *camera) +{ + int checksum; + uint8_t buf[2]; + + checksum = st2205_calc_fat_checksum(camera); + if (checksum < 0) return checksum; + + htole16a(buf, checksum); + return st2205_write_mem (camera, 0, buf, 2); +} + +static int st2205_copy_fat(Camera *camera) +{ + int i; + + /* The "FAT" repeats itself on some frames, copy it over */ + CHECK (st2205_check_block_present (camera, 0)) + for (i = 1; i < camera->pl->no_fats; i++) + CHECK (st2205_write_mem (camera, i * ST2205_FAT_SIZE, + camera->pl->mem, ST2205_FAT_SIZE)) + + return GP_OK; +} + +static int +st2205_add_picture(Camera *camera, int idx, const char *filename, + int start, int shuffle, unsigned char *buf, int size) +{ + int count; + struct image_table_entry entry; + + count = st2205_read_file_count(camera); + if (count < 0) return count; + + if (idx > count) { + gp_log (GP_LOG_ERROR, "st2205", + "adding picture beyond end of FAT"); + return GP_ERROR_BAD_PARAMETERS; + } + + memset(&entry, 0, sizeof(entry)); + entry.present = 1; + entry.address = htole32(start); + snprintf(entry.name, sizeof(entry.name), "%s", filename); + CHECK (st2205_write_mem (camera, ST2205_FILE_OFFSET (idx), + &entry, sizeof(entry))) + + if (idx == count) { + /* update picture count */ + count++; + CHECK (st2205_write_file_count (camera, count)) + + /* Add a fake last entry, with no name pointing to beginning + of freespace, neither the windows software nor the picframe + seem to care about this, but the windows software does this, + so lets do it too. */ + memset (&entry, 0, sizeof(entry)); + entry.address = htole32 (start + size); + CHECK (st2205_write_mem (camera, ST2205_FILE_OFFSET (count), + &entry, sizeof(entry))) + } + + CHECK (st2205_update_fat_checksum (camera)) + CHECK (st2205_copy_fat (camera)) + CHECK (st2205_write_mem (camera, start, buf, size)) + + /* Let the caller know at which index we stored the table entry */ + return idx; +} + +static int st2205_file_present(Camera *camera, int idx) +{ + struct image_table_entry entry; + + CHECK (st2205_read_mem (camera, ST2205_FILE_OFFSET (idx), + &entry, sizeof(entry))) + + return entry.present; +} + +/***************** Begin "public" functions *****************/ + +/* Note this function assumes the names array is filled with zeros + before it gets called */ +int +st2205_get_filenames(Camera *camera, st2205_filename *names) +{ + int i, count; + struct image_table_entry entry; + + count = st2205_read_file_count(camera); + if (count < 0) return count; + + if (count > ST2205_MAX_NO_FILES) { + gp_log (GP_LOG_ERROR, "st2205", "file table count overflow"); + return GP_ERROR_CORRUPTED_DATA; + } + + for (i = 0; i < count; i++) { + CHECK (st2205_read_mem (camera, ST2205_FILE_OFFSET (i), + &entry, sizeof(entry))) + + if (!entry.present) + continue; + + /* Note we use memcpy as we don't want to depend on the names + on the picframe being 0-terminated. We always write 0 + terminated names, as does windows, but better safe then + sorry. */ + memcpy(names[i], entry.name, ST2205_FILENAME_LENGTH); + /* Make sure a file with no name gets a "name" */ + if (!names[i][0]) + names[i][0] = '?'; + } + + return GP_OK; +} + +int +st2205_read_raw_file(Camera *camera, int idx, unsigned char **raw) +{ + struct image_table_entry entry; + struct st2205_image_header header; + int ret, count, size; + + *raw = NULL; + + count = st2205_read_file_count(camera); + if (count < 0) return count; + + if (idx >= count) { + gp_log (GP_LOG_ERROR, "st2205", + "read file beyond end of FAT"); + return GP_ERROR_BAD_PARAMETERS; + } + + CHECK (st2205_read_mem (camera, ST2205_FILE_OFFSET (idx), + &entry, sizeof(entry))) + + /* This should never happen */ + if (!entry.present) { + gp_log (GP_LOG_ERROR, "st2205", + "trying to read a deleted file"); + return GP_ERROR_BAD_PARAMETERS; + } + LE32TOH(entry.address); + + GP_DEBUG ("file: %d start at: %08x\n", idx, entry.address); + + if (camera->pl->compressed) { + CHECK (st2205_read_mem (camera, entry.address, + &header, sizeof(header))) + + if (header.marker != ST2205_HEADER_MARKER) { + gp_log (GP_LOG_ERROR, "st2205", "invalid header magic"); + return GP_ERROR_CORRUPTED_DATA; + } + + BE16TOH(header.width); + BE16TOH(header.height); + BE16TOH(header.length); + BE16TOH(header.blocks); + + if ((header.width != camera->pl->width) || + (header.height != camera->pl->height)) { + gp_log (GP_LOG_ERROR, "st2205", + "picture size does not match frame size."); + return GP_ERROR_CORRUPTED_DATA; + } + + if (((header.width / 8) * (header.height / 8)) != header.blocks) { + gp_log (GP_LOG_ERROR, "st2205", "invalid block count"); + return GP_ERROR_CORRUPTED_DATA; + } + + GP_DEBUG ("file: %d header read, size: %dx%d, length: %d bytes\n", + idx, header.width, header.height, header.length); + + size = header.length + sizeof (header); + } else + size = camera->pl->width * camera->pl->height * 2; + + *raw = malloc (size); + if (!*raw) { + gp_log (GP_LOG_ERROR, "st2205", "allocating memory"); + return GP_ERROR_NO_MEMORY; + } + + ret = st2205_read_mem (camera, entry.address, *raw, size); + if (ret < 0) { + free (*raw); + *raw = NULL; + return ret; + } + + return size; +} + +int +st2205_read_file(Camera *camera, int idx, int **rgb24) +{ + int ret; + unsigned char *src; + + CHECK (st2205_read_raw_file (camera, idx, &src)) + + if (camera->pl->compressed) + ret = st2205_decode_image (camera->pl, src, rgb24); + else + ret = st2205_rgb565_to_rgb24 (camera->pl, src, rgb24); + + free(src); + + return ret; +} + +static int +st2205_real_write_file(Camera *camera, + const char *filename, int **rgb24, unsigned char *buf, + int shuffle, int allow_uv_corr) +{ + int size, count; + struct image_table_entry entry; + struct st2205_image_header header; + int i, start, end, hole_start = 0, hole_idx = 0; + + if (camera->pl->compressed) + size = st2205_code_image (camera->pl, rgb24, buf, shuffle, + allow_uv_corr); + else + size = st2205_rgb24_to_rgb565 (camera->pl, rgb24, buf); + if (size < GP_OK) return size; + + count = st2205_read_file_count (camera); + if (count < 0) return count; + + /* Try to find a large enough "hole" in the memory */ + end = camera->pl->picture_start; + for (i = 0; i <= count; i++) { + /* Fake a present entry at the end of picture mem */ + if (i == count) { + entry.present = 1; + start = camera->pl->mem_size - + camera->pl->firmware_size; + /* If the last entry in the "FAT" was present, we need + to set hole_start to the end of the last picture */ + if (!hole_start) { + hole_start = end; + hole_idx = i; + } + } else { + CHECK (st2205_read_mem (camera, ST2205_FILE_OFFSET (i), + (unsigned char *)&entry, + sizeof(entry))) + + start = entry.address; + if (entry.present) { + if (camera->pl->compressed) { + CHECK (st2205_read_mem (camera, start, + &header, + sizeof(header))) + + BE16TOH(header.length); + end = start + sizeof(header) + + header.length; + } else + end = start + size; + } + } + + /* If we have a hole start address look for present entries (so a hole end + address), otherwise look for non present entries */ + if (hole_start) { + if (entry.present) { + int hole_size = start - hole_start; + GP_DEBUG ("found a hole at: %08x, of %d bytes " + "(need %d)\n", hole_start, hole_size, + size); + if (hole_size < size) { + /* Too small, start searching + for the next hole */ + hole_start = 0; + continue; + } + + /* bingo we have a large enough hole */ + return st2205_add_picture(camera, hole_idx, + filename, hole_start, shuffle, + buf, size); + } + } else { + if (!entry.present) { + /* We have a hole starting at the end of the + *previous* picture, note that end at this + moment points to the end of the last present + picture, as we don't set end for non present + pictures, which is exactly what we want. */ + hole_start = end; + hole_idx = i; + } + } + } + + /* No freespace found, try again with uv correction tables disabled */ + if (camera->pl->compressed && allow_uv_corr) + return st2205_real_write_file (camera, filename, rgb24, buf, + shuffle, 0); + + gp_log (GP_LOG_ERROR, "st2205", "not enough freespace to add file %s", + filename); + return GP_ERROR_NO_SPACE; +} + +int +st2205_write_file(Camera *camera, + const char *filename, int **rgb24) +{ + /* The buffer must be large enough for the worst case scenario */ + unsigned char buf[camera->pl->width * camera->pl->height * 2]; + int shuffle; + +#ifdef HAVE_RAND_R + shuffle = (long long)rand_r(&camera->pl->rand_seed) * + camera->pl->no_shuffles / (RAND_MAX + 1ll); +#else + shuffle = (long long)rand() * camera->pl->no_shuffles / (RAND_MAX + 1ll); +#endif + + return st2205_real_write_file (camera, filename, rgb24, buf, + shuffle, 1); +} + +int +st2205_delete_file(Camera *camera, int idx) +{ + uint8_t c = 0; + int i, present, count, new_count = 0; + + count = st2205_read_file_count(camera); + if (count < 0) return count; + + if (idx >= count) { + gp_log (GP_LOG_ERROR, "st2205", + "delete file beyond end of FAT"); + return GP_ERROR_BAD_PARAMETERS; + } + + /* Calculate new file count after the delete operation */ + for (i = 0; i < count; i++) { + if (i == idx) + continue; + + present = st2205_file_present (camera, i); + if (present < 0) return present; + if (present) + new_count = i + 1; + } + + CHECK (st2205_write_mem (camera, ST2205_FILE_OFFSET (idx), &c, 1)) + CHECK (st2205_write_file_count (camera, new_count)) + CHECK (st2205_update_fat_checksum (camera)) + CHECK (st2205_copy_fat (camera)) + + return GP_OK; +} + +int +st2205_delete_all(Camera *camera) +{ + CHECK (st2205_check_block_present(camera, 0)) + memset (camera->pl->mem + ST2205_FILE_OFFSET (0), 0, + ST2205_FAT_SIZE - ST2205_FILE_OFFSET (0)); + /* Mark the memory block we've directly manipulated dirty. */ + camera->pl->block_dirty[0] = 1; + + CHECK (st2205_write_file_count (camera, 0)) + CHECK (st2205_update_fat_checksum (camera)) + CHECK (st2205_copy_fat (camera)) + + return GP_OK; +} + +int +st2205_set_time_and_date(Camera *camera, struct tm *t) +{ + uint8_t *buf = (uint8_t *)camera->pl->buf; + + /* We cannot do this when operating on a dump */ + if (camera->pl->mem_dump) + return GP_OK; + + memset(buf, 0, 512); + buf[0] = 6; /* cmd 6 set time */ + htobe16a (buf + 1, t->tm_year + 1900); + buf[3] = t->tm_mon + 1; + buf[4] = t->tm_mday; + buf[5] = t->tm_hour; + buf[6] = t->tm_min; + /* The st2205 does not allow one to set seconds, instead the + seconds end up being whatever they were when the set time + command is send :( */ + + if (gp_port_seek (camera->port, ST2205_CMD_OFFSET, SEEK_SET) + != ST2205_CMD_OFFSET) + return GP_ERROR_IO; + + if (gp_port_write (camera->port, camera->pl->buf, 512) != 512) + return GP_ERROR_IO_WRITE; + + /* HACK, the st2205 does not like it if this is the last command + send to it, so force re-reading of block 0 */ + camera->pl->block_is_present[0] = 0; + CHECK (st2205_check_block_present(camera, 0)) + + return GP_OK; +} + +int +st2205_commit(Camera *camera) +{ + int i, j; + int mem_block_size = (camera->pl->mem_size - camera->pl->firmware_size) + / ST2205_BLOCK_SIZE; + int erase_block_size = ST2205_ERASE_BLOCK_SIZE / ST2205_BLOCK_SIZE; + + for (i = 0; i < mem_block_size; i += erase_block_size) { + for (j = 0; j < erase_block_size; j++) + if (camera->pl->block_dirty[i + j]) + break; + + /* If we have no dirty blocks in this erase block continue */ + if (j == erase_block_size) + continue; + + /* Make sure all data blocks in this erase block have been + read before erasing the block! */ + for (j = 0; j < erase_block_size; j++) + CHECK (st2205_check_block_present (camera, i + j)) + + /* Re-write all the data blocks in this erase block! */ + for (j = 0; j < erase_block_size; j++) { + CHECK (st2205_write_block (camera, i + j, + camera->pl->mem + + (i + j) * + ST2205_BLOCK_SIZE)) + camera->pl->block_dirty[i + j] = 0; + } + } + return GP_OK; +} + +static int +st2205_init(Camera *camera) +{ + const uint8_t *shuffle_src; + int x, y, i, j, shuffle_size, checksum; + int is240x320 = 0; + const struct { + int width, height, no_tables, usable_tables; + unsigned char unknown3[8]; + } shuffle_info[] = { + { 128, 160, 8, 7, /* Last shuffle table does not work ?? */ + { 0xff, 0xff, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02 }, }, + { 128, 128, 7, 7, + { 0xff, 0xff, 0x01, 0x01, 0x01, 0x01, 0x01 }, }, + { 120, 160, 7, 7, + { 0xff, 0xff, 0x04, 0x04, 0x04, 0x04, 0x04 }, }, + { 96, 64, 7, 7, + { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }, }, + { 0, 0, 0 } + }; + const int uncompressed_firmware_checksums[] = { + 0x00ab02fc, /* Frame 96x64 from blokker (Netherlands) */ + 0x00aa8060, /* Blokker frame with picframe hacked firmware */ + 0 }; + + GP_DEBUG ("st2205_init called"); + + CHECK (st2205_detect_mem_size(camera)) + + if ((camera->pl->width % 8) || (camera->pl->height % 8)) { + gp_log (GP_LOG_ERROR, "st2205", + "lcd width and height must be a multiple of 8"); + return GP_ERROR_IO; + } + + /* Some 240x320 models report a screen resolution of 320x240, + but their file headers are for 240x320, swap. */ + if (camera->pl->width == 320 && camera->pl->height == 240) + { + camera->pl->width = 240; + camera->pl->height = 320; + } + + if (camera->pl->width == 240 && camera->pl->height == 320) + is240x320 = 1; + + shuffle_size = (camera->pl->width / 8) * (camera->pl->height / 8); + if (shuffle_size > ST2205_SHUFFLE_SIZE) { + gp_log (GP_LOG_ERROR, "st2205", + "shuffle table size too small!"); + return GP_ERROR_FIXED_LIMIT_EXCEEDED; + } + + camera->pl->mem = st2205_malloc_page_aligned(camera->pl->mem_size); + if (!camera->pl->mem) + return GP_ERROR_NO_MEMORY; + + /* There are 3 known versions of st2205 devices / firmware: + * Version 1 devices show up as a single disk. These have: + * -4 copies of the "FAT" + * -lookup tables directly followed by shuffle tables at 0x8477 + * -pictures starting at 0x10000 + * -64k of firmware at the end of memory + * Version 2 devices show up as 2 disks, with the second second disk + * containing a msdos filesystem with the windows software. These have: + * -1 copy of the "FAT" + * -lookup tables as part of the firmware at memory-end - 0x27b89 bytes + * -pictures starting at 0x2000 + * -256k of firmware at the end of memory + * Version 3 devices are identical to version 2 devices, except they + * don't have the lookup / shuffle tables in a recognizable form. + */ + + /* First check for V2/V3 devices by checking for a msdos filesystem + * at memory-end - 0x20000 */ + x = camera->pl->mem_size - 0x20000; + CHECK (st2205_check_block_present(camera, x / ST2205_BLOCK_SIZE)) + if (!strcmp(camera->pl->mem + x, "\xeb\x3c\x90MSDOS5.0")) { + camera->pl->firmware_size = ST2205_V2_FIRMWARE_SIZE; + camera->pl->picture_start = ST2205_V2_PICTURE_START; + camera->pl->no_fats = 1; + GP_DEBUG ("Detected V2/V3 picframe"); + } else { + /* Not a V2/V3 verify it is a V1 */ + x = ST2205_V1_LOOKUP_OFFSET; + CHECK (st2205_check_block_present(camera, + x / ST2205_BLOCK_SIZE)) + if (memcmp(camera->pl->mem + x, + "\xd0\xff\xcd\xff\xcb\xff\xcb\xff\xcb\xff\xcc\xff", + 12)) { + gp_log (GP_LOG_ERROR, "st2205", + "Could not determine picframe version"); + return GP_ERROR_MODEL_NOT_FOUND; + } + camera->pl->firmware_size = ST2205_V1_FIRMWARE_SIZE; + camera->pl->picture_start = ST2205_V1_PICTURE_START; + camera->pl->no_fats = 4; + GP_DEBUG ("Detected V1 picframe"); + } + + /* Generate shuffle tables 0 and 1 */ + for (y = 0, i = 0; y < camera->pl->height; y += 8) + for (x = 0; x < camera->pl->width; x += 8, i++) { + camera->pl->shuffle[0][i].x = x; + camera->pl->shuffle[0][i].y = y; + } + + for (x = 0, i = 0; x < camera->pl->width; x += 8) + for (y = 0; y < camera->pl->height; y += 8, i++) { + camera->pl->shuffle[1][i].x = x; + camera->pl->shuffle[1][i].y = y; + } + + /* For the other tables, skip to the tables for the right resolution */ + shuffle_src = st2205_shuffle_data; + for (i = 0; shuffle_info[i].no_tables; i++) { + if (camera->pl->width == shuffle_info[i].width && + camera->pl->height == shuffle_info[i].height) + break; + if (is240x320 && shuffle_info[i].width == 120 && + shuffle_info[i].height == 160) + break; + shuffle_src += (shuffle_info[i].width * + shuffle_info[i].height * 2 / 64) * + (shuffle_info[i].no_tables - 2); + } + if (!shuffle_info[i].no_tables) { + gp_log (GP_LOG_ERROR, "st2205", + "unknown display resolution: %dx%d", + camera->pl->width, camera->pl->height); + return GP_ERROR_MODEL_NOT_FOUND; + } + + memcpy (camera->pl->unknown3, shuffle_info[i].unknown3, + sizeof(camera->pl->unknown3)); + camera->pl->no_shuffles = shuffle_info[i].usable_tables; + for (j = 2; j < camera->pl->no_shuffles; j++) + for (i = 0; i < shuffle_size; i++) { + camera->pl->shuffle[j][i].x = *shuffle_src++; + camera->pl->shuffle[j][i].y = *shuffle_src++; + if (is240x320) { + camera->pl->shuffle[j][i].x *= 2; + camera->pl->shuffle[j][i].y *= 2; + camera->pl->shuffle[j][i + 1].x = + camera->pl->shuffle[j][i].x + 8; + camera->pl->shuffle[j][i + 1].y = + camera->pl->shuffle[j][i].y; + camera->pl->shuffle[j][i + 2].x = + camera->pl->shuffle[j][i].x; + camera->pl->shuffle[j][i + 2].y = + camera->pl->shuffle[j][i].y + 8; + camera->pl->shuffle[j][i + 3].x = + camera->pl->shuffle[j][i].x + 8; + camera->pl->shuffle[j][i + 3].y = + camera->pl->shuffle[j][i].y + 8; + i += 3; + } + } + + CHECK (st2205_check_fat_checksum (camera)) + + camera->pl->rand_seed = time(NULL); + + /* Some 96x64 models don't use compression, unfortunately I've found + no way to detect if this is the case, so we keep a list of firmware + checksums to identify these. */ + for (i = camera->pl->mem_size - camera->pl->firmware_size; + i < camera->pl->mem_size; i += ST2205_BLOCK_SIZE) + CHECK (st2205_check_block_present (camera, + i / ST2205_BLOCK_SIZE)) + checksum = 0; + for (i = camera->pl->mem_size - camera->pl->firmware_size; + i < camera->pl->mem_size; i++) + checksum += (uint8_t)camera->pl->mem[i]; + + GP_DEBUG ("firmware checksum: 0x%08x", checksum); + + for (i = 0; uncompressed_firmware_checksums[i]; i++) + if (uncompressed_firmware_checksums[i] == checksum) + break; + + if (!uncompressed_firmware_checksums[i]) + camera->pl->compressed = 1; + else + camera->pl->compressed = 0; + + return GP_OK; +} + +static void +st2205_exit(Camera *camera) +{ + st2205_free_page_aligned(camera->pl->mem, camera->pl->mem_size); + camera->pl->mem = NULL; +} + +int +st2205_open_device(Camera *camera) +{ + camera->pl->buf = st2205_malloc_page_aligned(512); + if (!camera->pl->buf) + return GP_ERROR_NO_MEMORY; + + /* Check this is a Sitronix frame */ + CHECK (gp_port_seek (camera->port, 0, SEEK_SET)) + if (gp_port_read (camera->port, camera->pl->buf, 512) != 512) + return GP_ERROR_IO_READ; + if (strcmp (camera->pl->buf, "SITRONIX CORP.")) + return GP_ERROR_MODEL_NOT_FOUND; + + /* Read LCD size from the device */ + CHECK (st2205_send_command (camera, 5, 0 ,0)) + + if (gp_port_seek (camera->port, ST2205_READ_OFFSET, SEEK_SET) != + ST2205_READ_OFFSET) + return GP_ERROR_IO; + + if (gp_port_read (camera->port, camera->pl->buf, 512) != 512) + return GP_ERROR_IO_READ; + + camera->pl->width = be16atoh ((uint8_t *)camera->pl->buf); + camera->pl->height = be16atoh ((uint8_t *)camera->pl->buf + 2); + + GP_DEBUG ("Sitronix picframe of %dx%d detected.", + camera->pl->width, camera->pl->height); + + return st2205_init (camera); +} + +int +st2205_open_dump(Camera *camera, const char *dump, + int width, int height) +{ + camera->pl->mem_dump = fopen(dump, "r+"); + if (!camera->pl->mem_dump) { + gp_log (GP_LOG_ERROR, "st2205", "opening memdump file: %s: %s", + dump, strerror(errno)); + return GP_ERROR_IO_INIT; + } + + camera->pl->width = width; + camera->pl->height = height; + + return st2205_init (camera); +} + +void st2205_close(Camera *camera) +{ + st2205_exit (camera); + if (camera->pl->mem_dump) { + fclose (camera->pl->mem_dump); + camera->pl->mem_dump = NULL; + } + st2205_free_page_aligned(camera->pl->buf, 512); + camera->pl->buf = NULL; +} + +int +st2205_get_mem_size(Camera *camera) +{ + return camera->pl->mem_size; +} + +int +st2205_get_free_mem_size(Camera *camera) +{ + struct image_table_entry entry; + struct st2205_image_header header; + int i, count, start, end, hole_start = 0, free = 0; + + count = st2205_read_file_count (camera); + if (count < 0) return count; + + /* Find all holes in the memory and add their sizes together */ + end = camera->pl->picture_start; + for (i = 0; i <= count; i++) { + /* Fake a present entry at the end of picture mem */ + if (i == count) { + entry.present = 1; + start = camera->pl->mem_size - + camera->pl->firmware_size; + /* If the last entry in the "FAT" was present, we need + to set hole_start to the end of the last picture */ + if (!hole_start) + hole_start = end; + } else { + CHECK (st2205_read_mem (camera, ST2205_FILE_OFFSET (i), + &entry, sizeof(entry))) + + start = entry.address; + if (entry.present) { + if (camera->pl->compressed) { + CHECK (st2205_read_mem (camera, start, + &header, + sizeof(header))) + + BE16TOH(header.length); + end = start + sizeof(header) + + header.length; + } else { + end = start + + camera->pl->width * + camera->pl->height * 2; + } + } + } + + /* If we have a hole start address look for present entries (so + a hole end address), else look for non present entries */ + if (hole_start) { + if (entry.present) { + free += start - hole_start; + hole_start = 0; + } + } else { + if (!entry.present) + hole_start = end; + } + } + + return free; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205.h new file mode 100644 index 00000000..6f4f08d4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205.h @@ -0,0 +1,187 @@ +/* Sitronix st2205 picframe access library + * + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#ifndef __ST2205_H__ +#define __ST2205_H__ +#include "config.h" + +#include +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) +#include +#endif + +#include +#include + +#define GP_MODULE "st2205" + +#define ST2205_CMD_OFFSET 0x6200 +#define ST2205_WRITE_OFFSET 0x6600 +#define ST2205_READ_OFFSET 0xb000 +/* 2 block sizes, first is bytes per transfer, second is bytes per erase / + program cycle */ +#define ST2205_BLOCK_SIZE 32768 +#define ST2205_ERASE_BLOCK_SIZE 65536 +#define ST2205_FAT_SIZE 8192 +#define ST2205_COUNT_OFFSET 0x6 +/* 16 bytes info per file + a 16 bytes header */ +#define ST2205_FILE_OFFSET(x) (((x) + 1) * 16) +#define ST2205_LOOKUP_SIZE (0x8000 - 0x0477) +#define ST2205_V1_LOOKUP_OFFSET 0x8477 +#define ST2205_V2_LOOKUP_OFFSET 0xd8477 +#define ST2205_V1_FIRMWARE_SIZE 65536 +#define ST2205_V2_FIRMWARE_SIZE 262144 +#define ST2205_V1_PICTURE_START 65536 +#define ST2205_V2_PICTURE_START 8192 +#define ST2205_LOOKUP_CHECKSUM 0x0016206f +#define ST2205_SHUFFLE_SIZE (240 * 320 / 64) +#define ST2205_HEADER_MARKER 0xf5 +/* The "FAT" cannot contain more then 510 entries */ +#define ST2205_MAX_NO_FILES 510 +#define ST2205_FILENAME_LENGTH 10 + +enum { + ORIENTATION_AUTO, + ORIENTATION_LANDSCAPE, + ORIENTATION_PORTRAIT, +}; + +/* We prefix all names with there idx in the FAT table, to make sure they are + all unique and don't change when files with the same name (after converting + to ascii and truncating) are added / deleted. */ +#define ST2205_SET_FILENAME(dest, name, idx) \ + snprintf(dest, sizeof(st2205_filename), "%04d-%s.png", (idx) + 1, name) + +struct st2205_coord { + uint16_t x; + uint16_t y; +}; + +struct st2205_image_header { + uint8_t marker; /* Always 0xF5 */ + uint16_t width; /* big endian */ + uint16_t height; /* big endian */ + uint16_t blocks; /* number of 8x8 blocks in the image, big endian */ + uint8_t shuffle_table; /* shuffle table idx (for transition effects) */ + uint8_t unknown2; /* Unknown usually 0x04 */ + uint8_t unknown3; /* shuffle related, must have a special value depend + on the pattern see the table in st2205_init */ + uint16_t length; /* length of the data *following* the header (be) */ + uint8_t unknown4[4]; /* Always 4x 0x00 (padding ?) */ +} __attribute__((packed)); + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +/* The + 5 is space for the "####-" prefix we add, + 4 for .png postfix. */ +typedef char st2205_filename[ST2205_FILENAME_LENGTH + 5 + 4 + 1]; +typedef int16_t st2205_lookup_row[8]; + +struct _CameraPrivateLibrary { + /* Used by library.c glue code */ +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + iconv_t cd; +#endif + st2205_filename filenames[ST2205_MAX_NO_FILES]; + + /* Driver configuration settings */ + int syncdatetime; + int orientation; + + /* Used by st2205.c / st2205_decode.c */ + int width; + int height; + int compressed; /* Is the image data compressed or rgb565 ? */ + FILE *mem_dump; + char *mem; + char *buf; /* 512 bytes aligned buffer (for sending / reading cmds) */ + int mem_size; + int firmware_size; + int picture_start; + int no_fats; + int block_is_present[2097152 / ST2205_BLOCK_SIZE]; + int block_dirty[2097152 / ST2205_BLOCK_SIZE]; + struct st2205_coord shuffle[8][ST2205_SHUFFLE_SIZE]; + int no_shuffles; + unsigned char unknown3[8]; + unsigned int rand_seed; +}; + +/* tables in st2205_tables.c */ +extern const st2205_lookup_row st2205_lookup[3][256]; +extern const uint8_t st2205_shuffle_data[10360]; + +/* functions in st2205.c */ +int +st2205_open_device(Camera *camera); + +int +st2205_open_dump(Camera *camera, const char *dump, + int width, int height); + +void st2205_close(Camera *camera); + +int +st2205_get_filenames(Camera *camera, st2205_filename *names); + +int +st2205_read_file(Camera *camera, int idx, int **rgb24); + +int +st2205_read_raw_file(Camera *camera, int idx, unsigned char **raw); + +int +st2205_set_time_and_date(Camera *camera, struct tm *t); + +/* This function returns the index used to save the file at on success */ +int +st2205_write_file(Camera *camera, + const char *filename, int **rgb24); + +int +st2205_delete_file(Camera *camera, int idx); + +int +st2205_delete_all(Camera *camera); + +int +st2205_commit(Camera *camera); + +int +st2205_get_mem_size(Camera *camera); + +int +st2205_get_free_mem_size(Camera *camera); + +/* functions in st2205_decode.c */ +int +st2205_decode_image(CameraPrivateLibrary *pl, unsigned char *src, int **dest); + +int +st2205_code_image(CameraPrivateLibrary *pl, int **src, + unsigned char *dest, uint8_t shuffle_pattern, int allow_uv_corr); + +int +st2205_rgb565_to_rgb24(CameraPrivateLibrary *pl, unsigned char *src, + int **dest); + +int +st2205_rgb24_to_rgb565(CameraPrivateLibrary *pl, int **src, + unsigned char *dest); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205_decode.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205_decode.c new file mode 100644 index 00000000..3590b74a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205_decode.c @@ -0,0 +1,449 @@ +/* Sitronix st2205 picframe decompression and compression code + * + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include +#ifdef HAVE_LIBGD +# include +#endif + +#include "st2205.h" + +#ifdef HAVE_LIBGD +#define CLAMP256(x) (((x) > 255) ? 255 : (((x) < 0) ? 0 : (x))) +#define CLAMP64S(x) (((x) > 63) ? 63 : (((x) < -64) ? -64 : (x))) + +static const int16_t st2205_corr_table[16] = { + -26,-22,-18,-14,-11,-7,-4,-1,1,4,7,11,14,18,22,26 +}; + +static int +st2205_decode_block(CameraPrivateLibrary *pl, unsigned char *src, + int src_length, int **dest, int dest_x, int dest_y) +{ + const st2205_lookup_row *luma_table, *chroma_table; + int y_base, uv_base[2], uv_corr[2]; + int16_t Y[64], UV[2][16]; + int x, y, r, g, b, uv; + if (src_length < 4) { + gp_log (GP_LOG_ERROR, "st2205", "short image block"); + return GP_ERROR_CORRUPTED_DATA; + } + + if (src[0] & 0x80) { + gp_log (GP_LOG_ERROR, "st2205", + "2 luma bits per pixel pictures are not supported"); + return GP_ERROR_CORRUPTED_DATA; + } + y_base = src[1] & 0x7f; + luma_table = st2205_lookup[src[1] >> 7]; + chroma_table = st2205_lookup[2]; + + uv_base[0] = src[2] & 0x7f; + uv_corr[0] = src[2] & 0x80; + uv_base[1] = src[3] & 0x7f; + uv_corr[1] = src[3] & 0x80; + + if (src_length != (4 + (uv_corr[0]? 10:2) + (uv_corr[1]? 10:2) + 40)) { + GP_DEBUG ("src_length: %d, u_corr: %x v_corr: %x\n", + src_length, uv_corr[0], uv_corr[1]); + gp_log (GP_LOG_ERROR, "st2205", "invalid block length"); + return GP_ERROR_CORRUPTED_DATA; + } + + src += 4; + + for (uv = 0; uv < 2; uv++) { + for (y = 0; y < 4; y++) + for (x = 0; x < 4; x++) + UV[uv][y * 4 + x] = uv_base[uv] - 64 + + chroma_table[src[y / 2]][(y & 1) * 4 + x]; + src += 2; + + if (uv_corr[uv]) { + for (x = 0; x < 16; x+= 2) { + uint8_t corr = src[x / 2]; + UV[uv][x ] += st2205_corr_table[corr >> 4]; + UV[uv][x + 1] += st2205_corr_table[corr & 0x0f]; + } + src += 8; + } + } + + for (y = 0; y < 8; y++) { + memcpy(Y + y * 8, luma_table[src[y]], 8 * sizeof(uint16_t)); + for (x = 0; x < 8; x+= 2) { + uint8_t corr = src[8 + y * 4 + x / 2]; + Y[y * 8 + x ] += + y_base + st2205_corr_table[corr >> 4]; + Y[y * 8 + x + 1] += + y_base + st2205_corr_table[corr & 0x0f]; + } + } + + for (y = 0; y < 8; y++) { + for (x = 0; x < 8; x++) { + r = Y[y * 8 + x] + UV[1][(y / 2) * 4 + x / 2]; + g = Y[y * 8 + x] - UV[0][(y / 2) * 4 + x / 2] - + UV[1][(y / 2) * 4 + x / 2]; + b = Y[y * 8 + x] + UV[0][(y / 2) * 4 + x / 2]; + dest[dest_y + y][dest_x + x] = + gdTrueColor (CLAMP256(2 * r), + CLAMP256(2 * g), + CLAMP256(2 * b)); + } + } + + return 0; +} + +int +st2205_decode_image(CameraPrivateLibrary *pl, unsigned char *src, int **dest) +{ + int ret, block = 0, block_length; + struct st2205_coord *shuffle_table; + struct st2205_image_header *header = (struct st2205_image_header*)src; + uint8_t shuffle_pattern = header->shuffle_table; + int src_length = be16toh (header->length); + + /* Skip the header */ + src += sizeof(*header); + + if (shuffle_pattern >= pl->no_shuffles) { + gp_log (GP_LOG_ERROR, "st2205", "invalid shuffle pattern"); + return GP_ERROR_CORRUPTED_DATA; + } + shuffle_table = pl->shuffle[shuffle_pattern]; + + while (src_length && block < (pl->width * pl->height / 64)) { + block_length = (src[0] & 0x7f) + 1; + if (block_length > src_length) { + gp_log (GP_LOG_ERROR, "st2205", "block %d goes outside of image buffer", block); + return GP_ERROR_CORRUPTED_DATA; + } + + ret = st2205_decode_block(pl, src, block_length, dest, + shuffle_table[block].x, + shuffle_table[block].y); + if (ret < 0) + return ret; + src += block_length; + src_length -= block_length; + block++; + } + + if (src_length) { + gp_log (GP_LOG_ERROR, "st2205", "data remaining after decoding %d blocks", block); + return GP_ERROR_CORRUPTED_DATA; + } + + if (block != (pl->width * pl->height / 64)) { + gp_log (GP_LOG_ERROR, "st2205", + "image only contained %d of %d blocks", + block, pl->width * pl->height / 64); + return GP_ERROR_CORRUPTED_DATA; + } + + return 0; +} + +static uint8_t st2205_find_closest_match(const st2205_lookup_row *table, + int16_t *row, int *smallest_diff_ret) +{ + int i, j; + uint8_t closest_match = 0; + unsigned int diff, smallest_diff = -1; + + for (i = 0; i < 256; i++) { + diff = 0; + for (j = 0; j < 8; j++) + diff += (row[j] - table[i][j]) * (row[j] - table[i][j]); + if (diff < smallest_diff) { + smallest_diff = diff; + closest_match = i; + } + } + + if (smallest_diff_ret) + *smallest_diff_ret = smallest_diff; + + return closest_match; +} + +static uint8_t st2205_closest_correction(int16_t corr) +{ + int i, diff, smallest_diff; + uint8_t closest = 0; + + smallest_diff = abs(st2205_corr_table[0] - corr); + for (i = 1; i < 16; i++) { + diff = abs(st2205_corr_table[i] - corr); + if (diff < smallest_diff) { + smallest_diff = diff; + closest = i; + } + } + + return closest; +} + +static int +st2205_code_block(CameraPrivateLibrary *pl, int **src, + int src_x, int src_y, unsigned char *dest, int allow_uv_corr) +{ + const st2205_lookup_row *luma_table; + int y_base, uv_base[2]; + int16_t Y[64], UV[2][16]; + uint8_t corr1, corr2, *pattern; + int x, y, r, g, b, uv, diff1, diff2, used = 0; + + /* Step 1 convert to "YUV" */ + for (y = 0; y < 8; y++) { + for (x = 0; x < 8; x++) { + int p = src[src_y + y][src_x + x]; + Y[y * 8 + x] = (gdTrueColorGetRed(p) + + gdTrueColorGetGreen(p) + + gdTrueColorGetBlue(p)) / 6; + } + } + + for (y = 0; y < 4; y++) { + for (x = 0; x < 4; x++) { + int p1 = src[src_y + y ][src_x + x ]; + int p2 = src[src_y + y ][src_x + x + 1]; + int p3 = src[src_y + y + 1][src_x + x ]; + int p4 = src[src_y + y + 1][src_x + x + 1]; + + r = gdTrueColorGetRed(p1) + gdTrueColorGetRed(p2) + + gdTrueColorGetRed(p3) + gdTrueColorGetRed(p4); + g = gdTrueColorGetGreen(p1) + gdTrueColorGetGreen(p2) + + gdTrueColorGetGreen(p3) + gdTrueColorGetGreen(p4); + b = gdTrueColorGetBlue(p1) + gdTrueColorGetBlue(p2) + + gdTrueColorGetBlue(p3) + gdTrueColorGetBlue(p4); + uv = (b * 3 - (r + g + b)) / 24; + UV[0][y * 4 + x] = CLAMP64S(uv); + uv = (r * 3 - (r + g + b)) / 24; + UV[1][y * 4 + x] = CLAMP64S(uv); + } + } + + /* Step 2a calculate base values */ + y_base = 0; + for (x = 0; x < 64; x++) + y_base += Y[x]; + y_base = y_base / 64; + + for (uv = 0; uv < 2; uv++) { + uv_base[uv] = 0; + for (x = 0; x < 16; x++) + uv_base[uv] += UV[uv][x]; + uv_base[uv] = uv_base[uv] / 16; + } + + dest[1] = y_base; + dest[2] = uv_base[0] + 64; + dest[3] = uv_base[1] + 64; + used = 4; + + /* Step 2b adjust values for base values and normalize */ + for (x = 0; x < 64; x++) + Y[x] -= y_base; + + for (uv = 0; uv < 2; uv++) + for (x = 0; x < 16; x++) + UV[uv][x] -= uv_base[uv]; + + /* Step 3 encode chroma values */ + for (uv = 0; uv < 2; uv++) { + pattern = dest + used; + dest[used++] = st2205_find_closest_match (st2205_lookup[2], + &UV[uv][0], &diff1); + dest[used++] = st2205_find_closest_match (st2205_lookup[2], + &UV[uv][8], &diff2); + if ((diff1 > 64 || diff2 > 64) && allow_uv_corr) { + dest[2 + uv] |= 0x80; + for (x = 0; x < 16; x+= 2) { + corr1 = st2205_closest_correction(UV[uv][x] - + st2205_lookup[2][pattern[x / 8]][x % 8]); + corr2 = st2205_closest_correction(UV[uv][x + 1] - + - st2205_lookup[2][pattern[x / 8]][x % 8 + 1]); + dest[used++] = (corr1 << 4) | corr2; + } + } + } + + /* Step 4a encode luma values, choose luma table */ + diff1 = 0; + diff2 = 0; + for (y = 0; y < 8; y++) { + st2205_find_closest_match(st2205_lookup[0], &Y[y * 8], &x); + diff1 += x; + st2205_find_closest_match(st2205_lookup[1], &Y[y * 8], &x); + diff2 += x; + } + + if (diff1 <= diff2) { + luma_table = st2205_lookup[0]; + dest[1] |= 0x00; + } else { + luma_table = st2205_lookup[1]; + dest[1] |= 0x80; + } + + /* Step 4b encode luma values, choose luma patterns */ + pattern = dest + used; + for (y = 0; y < 8; y++) + dest[used++] = st2205_find_closest_match (luma_table, + &Y[y * 8], NULL); + + /* Step 4c encode luma values, add luma correction values */ + for (y = 0; y < 8; y++) { + for (x = 0; x < 8; x += 2) { + corr1 = st2205_closest_correction (Y[y * 8 + x] - + luma_table[pattern[y]][x]); + corr2 = st2205_closest_correction(Y[y * 8 + x + 1] - + luma_table[pattern[y]][x + 1]); + dest[used++] = (corr1 << 4) | corr2; + } + } + + dest[0] = used - 1; + + return used; +} + +int +st2205_code_image(CameraPrivateLibrary *pl, int **src, + unsigned char *dest, uint8_t shuffle_pattern, int allow_uv_corr) +{ + int block = 0, used = 0, ret; + struct st2205_coord *shuffle_table; + struct st2205_image_header *header = (struct st2205_image_header*)dest; + + /* Make room for the header */ + dest += sizeof(*header); + + if (shuffle_pattern >= pl->no_shuffles) { + gp_log (GP_LOG_ERROR, "st2205", "invalid shuffle pattern"); + return GP_ERROR_BAD_PARAMETERS; + } + + shuffle_table = pl->shuffle[shuffle_pattern]; + + while (block < (pl->width * pl->height / 64)) { + ret = st2205_code_block (pl, src, shuffle_table[block].x, + shuffle_table[block].y, + dest + used, allow_uv_corr); + if (ret < 0) + return ret; + used += ret; + block++; + } + + /* Write the header now that we know the size */ + memset(header, 0, sizeof(*header)); + header->marker = ST2205_HEADER_MARKER; + header->width = htobe16(pl->width); + header->height = htobe16(pl->height); + header->blocks = htobe16((pl->width * pl->height) / 64); + header->shuffle_table = shuffle_pattern; + header->unknown2 = 0x04; + header->unknown3 = pl->unknown3[shuffle_pattern]; + header->length = htobe16(used); + + return used + sizeof(*header); +} + +int +st2205_rgb565_to_rgb24(CameraPrivateLibrary *pl, unsigned char *src, + int **dest) +{ + int x,y; + + for (y = 0; y < pl->height; y++) { + for (x = 0; x < pl->width; x++) { + unsigned short w = src[0] << 8 | src[1]; + + dest[y][x] = gdTrueColor ((w >> 8) & 0xf8, + (w >> 3) & 0xfb, + (w << 3) & 0xf8); + src += 2; + } + } + + return GP_OK; +} + +int +st2205_rgb24_to_rgb565(CameraPrivateLibrary *pl, int **src, + unsigned char *dest) +{ + int x,y; + + for (y = 0; y < pl->height; y++) { + for (x = 0; x < pl->width; x++) { + unsigned short w; + + int r = gdTrueColorGetRed(src[y][x]); + int g = gdTrueColorGetGreen(src[y][x]); + int b = gdTrueColorGetBlue(src[y][x]); + + w = ((r << 8) & 0xf100) | + ((g << 3) & 0x07e0) | + ((b >> 3) & 0x001f); + + *dest++ = w >> 8; + *dest++ = w & 0xff; + } + } + + return pl->height * pl->width * 2; +} + +#else +int +st2205_decode_image(CameraPrivateLibrary *pl, unsigned char *src, int **dest) +{ + return GP_ERROR_NOT_SUPPORTED; +} + +int +st2205_code_image(CameraPrivateLibrary *pl, int **src, + unsigned char *dest, uint8_t shuffle_pattern, int allow_uv_corr) +{ + return GP_ERROR_NOT_SUPPORTED; +} + +int +st2205_rgb565_to_rgb24(CameraPrivateLibrary *pl, unsigned char *src, + int **dest) +{ + return GP_ERROR_NOT_SUPPORTED; +} + +int +st2205_rgb24_to_rgb565(CameraPrivateLibrary *pl, int **src, + unsigned char *dest) +{ + return GP_ERROR_NOT_SUPPORTED; +} + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205_tables.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205_tables.c new file mode 100644 index 00000000..83b31aca --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/st2205/st2205_tables.c @@ -0,0 +1,1438 @@ +/* Sitronix st2205 picframe decompression and compression lookup tables + * + * The st2205 picframe decompression and compression uses 2 fixed + * lookup tables. These tables are copied from the st2205 firmware. + * + * As these are pure lists of fixed numbers, these are believed to not be + * creative expressions, and as such are believed to not be under copyright. + */ + +#include "config.h" + +#include "st2205.h" + +const st2205_lookup_row st2205_lookup[3][256] = { + { + { -48, -51, -53, -53, -53, -52, -52, -49 }, + { -57, -57, -55, -50, -35, 2, 27, 29 }, + { -47, -47, -44, -21, 28, 47, 49, 49 }, + { -72, -55, 8, 24, 26, 27, 26, 24 }, + { 76, 76, 76, 76, 75, 72, 70, 67 }, + { 59, 58, 46, -2, -35, -43, -43, -43 }, + { -66, -67, -54, 22, 39, 41, 41, 40 }, + { -20, -19, -14, -1, 28, 56, 65, 66 }, + { 35, 35, 34, 22, -19, -35, -36, -33 }, + { 25, 28, 26, 5, -42, -63, -68, -69 }, + { 64, 65, 59, 34, -5, -22, -27, -29 }, + { -36, -36, -36, -34, -16, 39, 64, 66 }, + { 72, 62, -5, -25, -28, -27, -27, -27 }, + { -34, -37, -38, -39, -39, -38, -39, -38 }, + { 46, 49, 50, 50, 51, 51, 50, 49 }, + { 46, 47, 46, 39, -5, -49, -58, -58 }, + { -56, -29, 38, 37, 22, 9, 1, -2 }, + { -53, -55, -50, -30, 9, 22, 25, 26 }, + { -45, -43, -34, 13, 26, 28, 30, 30 }, + { 36, 38, 37, 34, 17, -26, -43, -43 }, + { 66, 61, 35, -2, -14, -15, -17, -16 }, + { -24, -25, -26, -24, -20, 4, 62, 75 }, + { 33, 35, 36, 36, 36, 36, 37, 37 }, + { 11, -2, -22, -39, -47, -52, -52, -48 }, + { 27, -8, -32, -35, -28, 16, 39, 41 }, + { -22, -21, -21, -21, -9, 29, 45, 48 }, + { 50, 53, 53, 51, 41, 12, -20, -31 }, + { 35, 35, 30, 2, -38, -36, -12, 3 }, + { -9, 2, 26, 46, 55, 58, 60, 59 }, + { -30, -32, -31, -30, -28, -28, -27, -26 }, + { 60, 46, -9, -20, -17, -13, -10, -8 }, + { 21, 23, 23, 23, 20, 1, -54, -71 }, + { 27, 28, 28, 28, 28, 27, 27, 25 }, + { -4, 20, 36, 13, -8, -13, -12, -9 }, + { 46, 49, 44, 31, 7, -5, -7, -6 }, + { 26, 25, 28, 18, -18, -24, -23, -22 }, + { -5, -33, -39, 5, 15, 15, 17, 18 }, + { -29, -31, -30, -21, 15, 32, 36, 37 }, + { 1, -3, 0, 13, 28, 36, -20, -45 }, + { -12, -14, -19, -24, -29, -34, -36, -34 }, + { -16, 13, 16, -14, -12, 13, 10, -14 }, + { -34, -28, 7, 33, 34, 25, -1, -23 }, + { 73, 8, -9, -10, -10, -11, -12, -12 }, + { 16, 17, 18, 17, 14, -4, -37, -46 }, + { 29, 8, -8, -3, 22, 38, 41, 37 }, + { -46, -48, -48, -46, -41, -30, -14, 0 }, + { 25, 28, 29, 28, 27, 18, -22, -51 }, + { 44, 41, 23, -20, -34, -36, -38, -37 }, + { -25, -27, -29, -29, -28, -17, 24, 52 }, + { -44, -41, -34, -25, -15, -8, -3, 0 }, + { 39, 36, 20, -12, -23, -22, -21, -20 }, + { 20, 20, 20, 20, 6, -29, -32, -24 }, + { -10, 12, 30, 35, 34, 35, 36, 34 }, + { -32, -34, -36, -33, -17, 12, 26, 29 }, + { 9, 12, 15, 14, 12, 9, -18, -67 }, + { -28, -27, -25, -24, -23, -20, -15, -10 }, + { -44, -27, 14, 34, 37, 37, 39, 38 }, + { -42, -32, -9, 9, 17, 23, 27, 27 }, + { 24, -12, -16, 24, 17, -18, -9, 25 }, + { 20, 22, 22, 20, 5, -43, -68, -71 }, + { -14, -14, -15, -16, -16, -2, 39, 51 }, + { 40, 21, -15, -26, -27, -17, 9, 28 }, + { 47, 51, 51, 48, 45, 41, 26, 3 }, + { -26, -29, -18, 14, 37, 40, 24, -6 }, + { -20, -20, -19, -15, 4, 24, 30, 32 }, + { 4, -7, -24, -37, -41, -30, -6, 10 }, + { 47, 25, -5, -13, -14, -15, -18, -19 }, + { 18, 16, 11, -6, -32, -43, -45, -42 }, + { 1, 4, 11, 20, 29, 35, 40, 39 }, + { -23, -23, -20, 2, 22, 25, 23, 21 }, + { -13, 7, 32, 33, 8, -20, -27, -26 }, + { -19, -20, -20, -21, -20, -21, -22, -22 }, + { -59, -31, 6, 13, 14, 14, 14, 12 }, + { 1, -24, -39, -33, -9, 6, 11, 10 }, + { 31, 33, 32, 29, 18, -8, -23, -24 }, + { 22, 18, 12, 4, -8, -25, -36, -42 }, + { 9, 9, 7, 1, -15, -24, -3, 28 }, + { -35, -34, -27, -11, 5, 13, 16, 17 }, + { 33, 8, -24, -6, 29, 0, -22, -12 }, + { 43, 22, -17, -31, -33, -32, -33, -32 }, + { -25, -24, -15, 12, 35, 42, 43, 42 }, + { -38, -29, -13, 3, 2, -11, -27, -33 }, + { 32, 32, 32, 31, 29, 22, 8, -10 }, + { 13, 13, 14, 15, 12, -9, -25, -25 }, + { -33, -12, 15, 24, 24, 23, 24, 21 }, + { -24, -27, -30, -32, -30, -18, 0, 15 }, + { 26, 23, 15, -3, -13, -16, -16, -16 }, + { -26, -24, -20, -16, -11, -5, -5, -8 }, + { -10, -10, -11, -12, -10, -6, 12, 59 }, + { -55, -51, -24, 5, 14, 15, 14, 12 }, + { -6, 18, 38, 45, 42, 25, -2, -14 }, + { 47, 5, -6, -7, -7, -8, -8, -7 }, + { -10, -8, -6, -4, 3, 22, 50, 61 }, + { -26, -25, -23, -21, -14, 0, 11, 16 }, + { 30, 31, 20, -4, -16, -2, 19, 25 }, + { 15, 10, 0, -16, -27, -30, -29, -26 }, + { -17, -18, -18, -15, 9, 33, 21, 4 }, + { 21, 19, 6, -25, -35, -22, -2, 7 }, + { 11, 10, 11, 12, 6, -17, -26, 1 }, + { 1, -1, -2, -1, 14, 13, -8, -7 }, + { 19, 21, 21, 21, 22, 22, 22, 21 }, + { -14, -15, -15, -16, -15, -15, -15, -14 }, + { 20, 20, 20, 20, 19, 12, -9, -30 }, + { 37, 26, -1, -10, -10, -7, -6, -3 }, + { -15, -15, -17, -21, -17, 13, 32, 30 }, + { -33, -23, -3, 8, 14, 16, 18, 19 }, + { 2, 30, 0, -16, 18, 30, -12, -4 }, + { 2, 1, -1, -2, -8, -31, -50, -55 }, + { -50, -4, 9, 9, 9, 10, 9, 8 }, + { 8, 7, 1, -12, -21, -10, 26, 41 }, + { 46, 41, 22, 1, -7, -8, -9, -10 }, + { 7, 6, 5, 5, 3, -3, -27, -46 }, + { -16, 10, 21, 22, 21, 21, 20, 17 }, + { -44, -32, -12, -1, 1, 2, 3, 4 }, + { 30, 26, 19, 11, 0, -12, -23, -30 }, + { -4, -4, -2, -2, -3, -3, 3, 33 }, + { 0, -12, -22, -18, 3, 16, 17, 16 }, + { 9, 9, 8, 3, -11, -23, -25, -24 }, + { 31, 30, 27, 21, 15, 11, 10, 13 }, + { -19, -17, -13, -7, 0, 12, 20, 25 }, + { -17, 2, 17, 19, 18, 12, -16, -37 }, + { 7, -10, -21, -23, -18, -9, -3, -2 }, + { 14, 7, -10, -23, -10, 17, 25, 24 }, + { -6, -9, 5, 29, 30, 1, -12, -12 }, + { -13, -11, -2, 10, 21, 28, 30, 29 }, + { 16, -18, -24, -6, 4, 3, 1, -1 }, + { 16, 16, 16, 11, -3, -14, -16, -15 }, + { 11, -12, -26, -28, -27, -26, -26, -24 }, + { -31, -19, 3, 15, 17, 12, 1, -10 }, + { -14, -15, -14, -16, -16, -15, 2, 32 }, + { 28, 27, 25, 20, 11, 1, -6, -10 }, + { 35, 4, -18, -19, -17, -16, -15, -13 }, + { -23, -17, 24, 20, -19, -13, 27, 17 }, + { -19, -26, -27, -8, 23, 18, -8, -17 }, + { 4, 8, 13, 16, 19, 22, 23, 23 }, + { 15, 14, 12, 2, -17, -25, -13, 6 }, + { 7, 7, 8, 8, 8, 4, -16, -27 }, + { -12, -8, 3, 8, 3, -10, -21, -25 }, + { -27, -17, -1, 5, 7, 9, 10, 10 }, + { -10, -10, -10, -10, -10, -11, -11, -12 }, + { 53, 27, 1, -1, 11, 25, 14, 10 }, + { -13, -13, -11, -5, 4, 10, 12, 13 }, + { 6, 7, 15, 25, 30, 32, 22, -2 }, + { 22, 19, 6, -4, -6, -7, -8, -10 }, + { -10, -9, -9, -9, -8, -1, 21, 32 }, + { -22, -22, -18, -9, -1, 3, 5, 7 }, + { -2, 1, 10, 17, 2, -6, -9, -8 }, + { 10, 11, 11, 10, 9, 9, -2, -46 }, + { -11, -10, -9, 1, 18, 19, 8, -2 }, + { -3, -4, -6, -8, -13, -20, -27, -29 }, + { 16, 16, 16, 16, 16, 16, 15, 15 }, + { 5, -21, 7, 15, -6, -11, 7, 14 }, + { -23, 6, 27, 21, 4, -11, 0, 11 }, + { 8, 8, 7, 6, 3, -4, -12, -15 }, + { 28, 4, -3, -4, -3, -4, -4, -3 }, + { 3, -3, -10, -17, -19, -19, -18, -16 }, + { -16, -6, 7, 15, 17, 17, 16, 14 }, + { -20, -24, -14, 6, 12, 13, 13, 12 }, + { 26, 25, 18, 4, -6, -7, -3, 0 }, + { 17, 13, -1, -13, -15, -15, -14, -14 }, + { -5, -5, -6, -8, -4, 10, 19, 19 }, + { -19, 4, 13, -7, -24, -22, -14, -11 }, + { 14, 17, 19, 20, 19, 15, 6, -4 }, + { 8, -6, -15, -20, -21, -8, 14, 23 }, + { 23, 10, -17, -30, -14, 2, 8, 10 }, + { 18, 13, 7, 2, -2, -7, -16, -25 }, + { 10, 11, 11, 12, 12, 13, 12, 12 }, + { -16, -17, -17, -18, -18, -16, -8, 6 }, + { 14, 7, -12, -20, -4, 11, 1, -15 }, + { -14, -10, -2, 3, 6, 7, 8, 8 }, + { -27, -1, 7, 7, 7, 6, 5, 5 }, + { 4, 3, 4, 4, 4, 5, -1, -29 }, + { 19, 16, 12, 10, 7, 1, -7, -14 }, + { 12, 7, -13, -2, 9, 6, -16, 10 }, + { -6, -6, -6, -6, 1, 19, 32, 36 }, + { -27, -13, -3, -1, -1, -1, 1, 2 }, + { -15, 0, 13, 15, 14, 9, -4, -12 }, + { 16, -3, -9, -9, -9, -10, -11, -10 }, + { -11, 1, 11, 2, -18, 8, 15, 5 }, + { -6, -5, -5, -6, -6, -3, 9, 21 }, + { -11, -8, -4, 3, 11, 15, 18, 20 }, + { -12, -12, -12, -11, -9, -7, -4, -2 }, + { 15, 11, 1, -5, -5, -5, -4, -4 }, + { -22, -22, -8, 19, 8, -12, -6, 15 }, + { 22, -3, -23, -2, 18, 19, 16, 13 }, + { 6, 7, -4, -13, -2, 8, 9, 7 }, + { 20, 19, 16, 13, 10, 6, 5, 3 }, + { 6, 5, 3, 0, -2, -2, -2, -2 }, + { -12, -11, 1, 11, 11, 7, 2, -1 }, + { 4, 3, 1, -1, -6, -13, -18, -17 }, + { 15, 12, 10, 6, 4, 12, 24, 32 }, + { -2, -2, -1, -1, -1, 0, 4, 11 }, + { 6, 11, 15, 17, 13, 3, -8, -12 }, + { 11, 11, 8, 1, -7, -10, -10, -9 }, + { -7, 7, 14, 15, 13, 11, 10, 7 }, + { -10, -12, -14, -14, -10, -1, 9, 12 }, + { 23, 15, 3, -1, 4, 9, 9, 5 }, + { 2, 4, -7, 4, 9, -20, 8, 3 }, + { 11, 11, 11, 10, 8, 7, 6, 6 }, + { -15, -16, -11, -1, 6, 3, -8, -14 }, + { -6, -6, -6, -5, -1, 5, 8, 10 }, + { 1, -1, -7, -15, -18, -18, -8, 8 }, + { 3, 4, 4, 4, 4, 3, -2, -14 }, + { -6, 8, 12, 4, -5, -10, -10, -9 }, + { 1, 3, 4, 7, 12, 16, 17, 18 }, + { 0, -2, -5, -8, -10, -11, -11, -11 }, + { -6, -5, -2, 1, 5, 5, 6, 6 }, + { 14, -1, -11, -11, -8, -1, 7, 12 }, + { 15, 15, 12, 8, 1, -3, -4, -3 }, + { 1, 0, -1, -1, -2, -3, -10, -18 }, + { 10, 10, 9, 12, 13, 13, 7, -21 }, + { -13, -12, -9, -5, -1, 1, 3, 4 }, + { 13, 14, 6, -11, -17, -8, 4, 8 }, + { 4, -13, -10, 4, 8, 8, 7, 8 }, + { 6, 7, 7, 7, 8, 9, 9, 8 }, + { -7, -6, -5, -5, -6, -10, -7, 17 }, + { 8, 8, 6, 4, 2, -2, -4, -6 }, + { -6, -6, -6, -6, -6, -6, -6, -6 }, + { -2, -2, -1, 1, 4, 9, 12, 14 }, + { -1, -4, -1, 8, 10, 2, -5, -8 }, + { 14, 2, -3, -2, -1, 0, -1, -1 }, + { -4, -6, -7, -8, -7, -3, 3, 7 }, + { -13, -1, 3, 3, 2, 3, 3, 3 }, + { 6, 1, -5, -9, -9, -6, -3, -1 }, + { 7, 6, 4, 1, -1, 1, 10, 18 }, + { -6, -5, -3, -1, 0, 1, 2, 3 }, + { 9, 9, 9, 9, 9, 7, 2, -5 }, + { 7, 5, 3, 0, -3, -5, -7, -8 }, + { -3, -3, -3, -3, 1, 13, 14, -5 }, + { 5, 4, 3, 4, 1, -10, -9, 4 }, + { 2, 6, 9, 3, -11, -11, 1, 7 }, + { -3, -7, -11, -9, 0, 5, 1, -4 }, + { 2, 2, 2, 2, 1, -1, -4, -5 }, + { 5, 4, 2, -3, -5, -2, 3, 6 }, + { -4, 0, 4, 8, 9, 9, 9, 8 }, + { -11, -7, 0, 3, 2, -3, -7, -8 }, + { 10, 10, 8, 4, 2, 2, 2, 1 }, + { -1, -1, 0, 0, 1, 1, 2, 3 }, + { -4, -2, 0, 3, 4, 3, 1, 0 }, + { 1, 0, -2, -3, -5, -6, -7, -7 }, + { 2, 2, 1, 1, 0, 0, 0, -1 }, + { -4, 1, 6, 5, 1, -2, -2, 0 }, + { 5, 5, 5, 5, 5, 5, 5, 5 }, + { -6, -5, -5, -4, -4, -3, -2, -2 }, + { -2, 4, 8, 9, 8, 5, 1, -2 }, + { 4, 1, -1, -1, -2, -2, -2, -1 }, + { 2, -1, -4, -4, 0, 4, 5, 4 }, + { -1, -2, -2, -2, -3, -3, 0, 4 }, + { 5, 5, 4, 4, 3, 1, 0, -1 }, + { -2, -2, -2, -2, -2, -3, -3, -4 }, + { -1, 0, 2, 3, 4, 5, 5, 6 }, + { -2, -1, -1, -1, -1, -1, -1, -1 }, + { 2, 1, 2, 2, 4, 3, 1, -3 }, + { 0, 0, 0, 0, 0, 0, 0, 0 }, + { 3, 3, 2, 2, 2, 2, 3, 3 }, + { 1, 1, 1, 1, 1, 1, 1, 1 }, + } , { + { -51, -52, -52, -53, -53, -53, -52, -50 }, + { -30, -31, -28, -28, -19, 26, 45, 46 }, + { -39, -41, -42, -42, -43, -42, -42, -40 }, + { 45, 46, 45, 38, -13, -47, -48, -48 }, + { 57, 60, 61, 63, 63, 61, 61, 57 }, + { -41, -42, -40, -13, 32, 39, 39, 38 }, + { 4, -10, -27, -41, -49, -51, -50, -48 }, + { 46, 48, 49, 49, 47, 47, 48, 47 }, + { 21, 23, 23, 23, 21, -3, -52, -60 }, + { -23, -15, 13, 40, 45, 9, -28, -30 }, + { -59, -59, -57, -53, -44, -34, -23, 0 }, + { -32, -32, -32, -32, -32, -33, -32, -32 }, + { 40, 38, 19, -23, -43, -44, -42, -38 }, + { -51, -49, -30, 17, 29, 29, 29, 27 }, + { -13, -13, -14, -10, 4, 44, 61, 60 }, + { -33, -9, 22, 27, 8, -24, -39, -39 }, + { -17, -16, -12, 9, 46, 61, 62, 63 }, + { 36, 37, 34, 35, 37, 38, 39, 39 }, + { -53, -54, -51, -33, 0, 17, 19, 17 }, + { -9, -13, -12, 4, 29, 40, 40, 32 }, + { 6, 8, 6, -2, -21, -43, -53, -54 }, + { -25, -26, -26, -24, -24, -24, -23, -23 }, + { 58, 64, 63, 59, 28, -5, -23, -16 }, + { -20, -19, -9, 25, 45, 45, 22, -10 }, + { -15, -16, -13, -12, -12, -1, 45, 62 }, + { 20, 2, -29, -40, -37, -10, 17, 21 }, + { -12, 9, 42, 51, 49, 52, 50, 41 }, + { 61, 50, 12, -9, -9, -8, -9, -10 }, + { -28, -27, -14, 11, 30, 13, -17, -31 }, + { 10, 9, 9, 11, 11, 1, -30, -47 }, + { 29, 30, 31, 30, 31, 30, 28, 26 }, + { -18, -26, -33, -34, -35, -30, -13, 8 }, + { 49, 51, 46, 26, -5, -18, -22, -22 }, + { 44, 45, 31, -6, -23, -26, -28, -27 }, + { -31, -19, 9, 35, 39, 39, 40, 37 }, + { 8, 32, 45, 47, 28, 1, -11, -11 }, + { 18, 18, 17, 19, 21, 17, -8, -39 }, + { 34, 8, -21, -31, -32, -33, -33, -31 }, + { 20, -6, -32, -26, 8, 30, 32, 28 }, + { -32, -30, -24, -13, 12, 30, 35, 36 }, + { 50, 46, 27, 1, -2, 9, 20, 14 }, + { -5, -4, 10, 38, 35, 2, -7, -5 }, + { 7, 6, 11, 21, 30, 38, 44, 46 }, + { -17, -18, -19, -19, -19, -20, -19, -19 }, + { 52, 51, 49, 48, 43, 36, 16, -5 }, + { 22, 24, 15, -12, -26, -27, -26, -24 }, + { -7, -6, -6, -4, 4, 24, 41, 42 }, + { -55, -37, 7, 19, 19, 19, 20, 21 }, + { 28, 29, 29, 23, -5, -34, -39, -43 }, + { 69, 1, -10, -10, -11, -13, -14, -14 }, + { 1, 23, 42, 50, 52, 44, 18, -8 }, + { -44, -44, -38, -31, -22, -14, -14, -15 }, + { 31, 31, 9, -28, -39, -33, -6, 13 }, + { -24, -20, -8, 3, -14, -25, -25, -23 }, + { 24, 24, 23, 22, 23, 23, 23, 22 }, + { -26, -27, -24, -22, -19, -14, -7, 1 }, + { 32, 32, 31, 32, 22, -8, -26, -30 }, + { -14, -16, -20, -24, -29, -32, -34, -33 }, + { -22, -19, -8, 9, 20, 24, 26, 28 }, + { -14, -15, -17, -13, -11, -6, 9, 52 }, + { 38, 42, 37, 31, 20, 7, 7, 7 }, + { 10, 7, 3, 0, -10, -24, -32, -32 }, + { -10, -10, -8, -10, -1, 31, 30, 8 }, + { 2, -21, -34, -33, -18, -1, 5, 4 }, + { 34, 37, 33, 19, 1, -7, -7, -10 }, + { -6, 24, 43, 29, -7, -21, -22, -24 }, + { -1, 17, 26, 28, 31, 29, 29, 27 }, + { -31, -32, -22, 10, 20, 21, 18, 11 }, + { 24, 25, 25, 16, -13, -24, -22, -18 }, + { 50, 33, -9, -16, -16, -16, -16, -14 }, + { 11, -1, -14, -21, -17, -1, 31, 40 }, + { -40, -42, -42, -39, -33, -9, 20, 27 }, + { 17, 18, 18, 18, 18, 18, 18, 18 }, + { 29, 26, 19, 12, 2, -10, -24, -32 }, + { -10, -3, 19, 36, 42, 35, 13, -2 }, + { -11, -12, -13, -13, -14, -16, -17, -16 }, + { 47, 10, -2, 2, 1, -2, -4, -6 }, + { 37, 32, 19, -2, -12, -16, -16, -16 }, + { -43, 1, 18, 19, 19, 19, 21, 19 }, + { 8, 12, -2, -24, -22, 1, 12, 9 }, + { 24, 24, 24, 22, 19, 6, -8, -13 }, + { 12, -14, -26, -27, -27, -25, -20, -15 }, + { 17, 3, 3, 8, 26, 45, 31, 3 }, + { -54, -46, -21, -2, 2, 3, 6, 7 }, + { 26, 27, 20, 6, -11, -10, 18, 30 }, + { 8, 10, 7, -7, -30, -37, -18, 7 }, + { -17, -17, -18, -17, -8, 15, 30, 33 }, + { -34, -34, -29, -16, 0, 14, 20, 22 }, + { 25, 29, 30, 31, 29, 22, 10, -4 }, + { 3, 0, -6, -18, -26, -30, -29, -27 }, + { 2, 4, 9, 13, 17, 24, 30, 32 }, + { -38, -24, -5, 3, 8, 11, 13, 13 }, + { 22, 19, 3, -10, -3, 19, 28, 28 }, + { -6, 17, 23, 23, 22, 4, -16, -21 }, + { -11, -15, -17, -8, 23, 32, 13, -11 }, + { -18, -21, -22, -18, -3, 3, -12, -20 }, + { 14, 14, 14, 14, 13, 13, 12, 13 }, + { 39, -3, -13, -12, -11, -11, -9, -9 }, + { -4, -4, -3, -1, -1, 1, 18, 48 }, + { 20, 5, -16, -13, 8, 8, -14, -21 }, + { 34, 31, 15, 3, -1, -2, -2, -4 }, + { -10, -11, -10, -8, -2, -11, -31, -41 }, + { -14, -9, 10, 25, 26, 25, 24, 20 }, + { -22, -22, -23, -22, -20, -4, 15, 20 }, + { -13, 0, 34, 36, 4, -7, -7, -3 }, + { 3, -3, -15, -23, -23, -18, -8, 3 }, + { -9, -7, -4, -2, -1, 13, 25, 29 }, + { -35, -24, -8, -3, -5, -5, -4, -5 }, + { 30, 26, 18, 14, 14, 12, 9, 8 }, + { 10, 13, 16, 15, 7, -19, -28, -25 }, + { -2, 32, 36, 21, 0, 12, 40, 48 }, + { -13, -9, -8, -12, -8, 12, 12, -13 }, + { -29, -7, 14, 21, 23, 17, 1, -18 }, + { -13, 4, 20, 6, -12, -17, -19, -19 }, + { 12, -23, -33, -6, 13, 8, 12, 13 }, + { 29, 18, -10, -20, -18, -12, -1, 17 }, + { 4, 28, 30, 3, -11, -10, -6, -7 }, + { -18, -18, -18, -16, -14, -13, -11, -8 }, + { -2, -6, -4, 12, 32, 23, 2, -3 }, + { -15, -17, -16, -16, -17, -17, -5, 24 }, + { 13, 17, 18, 19, 20, 21, 13, -9 }, + { 20, 11, -7, -16, -18, -18, -18, -18 }, + { -18, -20, -19, -8, 9, 17, 21, 20 }, + { 1, -2, 0, 11, 19, 1, -8, -8 }, + { 22, 19, 13, 6, -3, -10, -14, -16 }, + { 11, -1, -17, -18, 0, 12, 15, 14 }, + { 7, 6, 5, 3, 0, 0, 12, 29 }, + { -14, -15, -9, 3, 10, -2, -13, -14 }, + { 32, 6, -6, -3, 1, 4, 14, 18 }, + { 4, 4, 4, 3, 4, 7, -1, -30 }, + { -20, -20, -3, 24, 19, 4, 1, 1 }, + { -21, -23, -17, 0, 9, 7, 6, 7 }, + { 16, 17, 14, 15, 2, -20, -13, 19 }, + { 3, 3, 1, -1, -2, -9, -22, -28 }, + { 20, 13, -1, -1, 13, 20, 9, -4 }, + { -4, -1, 2, 2, 12, 26, 11, -4 }, + { 22, 0, -3, -3, -3, -3, -3, -3 }, + { -15, 1, 7, -14, -20, -6, 5, 2 }, + { 2, 6, 10, 15, 18, 18, 18, 17 }, + { -27, -31, -28, -18, -3, 4, 5, 4 }, + { -6, -7, -9, -12, -13, -8, 19, 29 }, + { 11, 12, 9, -1, -13, -16, -17, -16 }, + { -1, 13, 25, 25, 22, 13, 8, 10 }, + { -12, -9, 7, 23, 11, -10, -19, -19 }, + { 18, 21, 21, 14, 5, 2, 1, 2 }, + { 9, -8, -14, -14, -13, -11, -12, -14 }, + { -24, -14, 1, 9, 12, 13, 14, 14 }, + { -16, -16, -12, -9, -5, 3, 13, 21 }, + { 11, 11, 10, 10, 9, 1, -16, -24 }, + { -11, -11, -11, -11, -11, -10, -9, -9 }, + { 8, 9, 9, 10, 11, 11, 11, 11 }, + { -19, -17, -15, -12, -6, -1, 4, 5 }, + { 30, 23, 3, -9, -13, -12, -12, -10 }, + { 5, 3, 5, 9, 3, -12, -17, -13 }, + { -28, 4, 9, 8, 8, 5, 4, 5 }, + { 3, -10, -11, 7, -2, -14, -9, 5 }, + { 1, -2, 7, 26, 4, -2, 0, 0 }, + { -8, 8, 2, -9, -4, 12, -8, -11 }, + { -16, 1, 22, 17, 0, -10, 11, 25 }, + { -1, 1, -4, -13, -18, -19, -18, -17 }, + { 10, 15, 21, 23, 7, -9, -10, -7 }, + { -4, -5, -4, -5, -5, -4, 0, 26 }, + { 9, 4, -7, -3, 14, 20, 21, 18 }, + { -15, -8, 2, 3, -8, -12, -11, -8 }, + { 15, 14, 13, 12, 10, 4, -5, -11 }, + { 11, -4, -11, -12, -12, -8, 3, 17 }, + { -7, -7, -4, 5, 14, 19, 19, 17 }, + { -5, -6, -7, -9, -9, -11, -12, -12 }, + { 25, 17, 4, -2, -3, -3, -3, -3 }, + { 4, 28, 3, -4, -3, -4, -3, -2 }, + { -11, -1, 11, 15, 14, 13, 13, 11 }, + { -1, -12, -20, -13, 0, 4, 2, 1 }, + { -9, 15, 19, 2, 2, 14, 14, 6 }, + { 16, 10, 1, -3, -6, -9, -11, -13 }, + { -13, -14, -9, 4, 15, 14, 6, -5 }, + { -8, -11, -13, -13, -13, -10, -3, 5 }, + { 15, 16, 10, 3, 0, 4, 10, 13 }, + { -13, -6, 7, 10, 8, 6, -1, -10 }, + { 11, 12, 13, 7, -3, -9, -9, -8 }, + { -2, -2, -4, -2, -3, 5, 29, 2 }, + { -14, -11, -9, -5, 5, 12, 14, 15 }, + { 4, 2, -1, -4, -8, -12, -14, -14 }, + { 9, -6, -10, 2, 10, 7, 6, 5 }, + { 7, 7, 5, 4, 2, -2, -10, -14 }, + { -5, 5, 25, 7, -4, -3, -4, -2 }, + { -21, -14, -1, 3, 2, 2, 3, 3 }, + { 2, 3, 4, 5, 8, 13, 17, 18 }, + { 0, 2, 3, -1, -12, -18, -7, 6 }, + { 13, 13, 11, 1, -15, -14, 3, 11 }, + { -14, -14, -10, -6, -4, -4, -4, -4 }, + { -8, -10, -1, 11, 7, 0, 0, 7 }, + { -6, -8, -13, -15, -11, 8, 16, 12 }, + { 2, 6, 11, 16, 17, 12, 2, -3 }, + { -4, -2, -6, -6, 10, -4, -8, 3 }, + { -2, -3, -3, -3, -2, 4, 15, 18 }, + { -7, -7, -7, -7, -7, -7, -7, -6 }, + { 14, 13, 10, 5, 1, -1, -2, -3 }, + { 11, -2, -7, -7, -7, -7, -7, -7 }, + { 14, 14, 13, 11, 10, 9, 5, 2 }, + { -11, -10, -7, -3, 1, 4, 7, 10 }, + { -3, -2, 0, 1, 2, 2, 2, 1 }, + { 9, 11, 1, -12, -16, -12, -7, -3 }, + { 9, 6, 4, 6, 9, -3, -11, 8 }, + { -10, -9, -8, -7, -7, -3, 3, 7 }, + { -12, -7, 0, 5, 7, 9, 11, 11 }, + { -2, -3, -2, -1, 1, -2, -11, -17 }, + { 15, 10, -7, -13, -8, 4, 4, -5 }, + { -1, 0, -1, -1, -1, -2, 3, 15 }, + { -5, 4, 12, 13, 6, -5, -9, -7 }, + { 1, 1, -2, -5, -7, -8, -8, -7 }, + { -3, -4, -4, -3, 4, 13, 11, 8 }, + { -13, -3, 4, 2, 1, 3, 3, 2 }, + { 11, 9, 2, -2, -4, -5, -5, -4 }, + { -4, 8, 10, 0, -6, -6, -5, -6 }, + { 7, 8, 8, 7, 7, 7, 7, 7 }, + { -2, -5, -7, -6, 0, 19, 0, -8 }, + { -7, 2, 10, 4, -8, -2, 10, 14 }, + { -7, -7, -6, -5, -4, -3, -3, -2 }, + { -4, -3, -1, 6, 11, 11, 5, 0 }, + { -3, -4, -5, -6, -4, 2, 8, 7 }, + { 16, 9, 3, 2, 3, 4, 4, 4 }, + { -1, -2, 0, 3, 7, 3, -3, -5 }, + { 1, 8, 1, -10, 0, 8, 7, 6 }, + { 3, 1, -5, -9, -10, -5, 0, 2 }, + { 4, 5, 7, 6, 7, 8, -1, -13 }, + { -8, -9, -7, -2, 4, 5, 2, -2 }, + { -1, 1, 4, 5, 7, 8, 10, 10 }, + { 4, 2, 1, 0, -1, -3, -6, -7 }, + { 5, 6, 6, 5, 2, -2, -4, -5 }, + { -4, -3, -2, -3, -5, -6, -3, 6 }, + { -5, -4, -2, 0, 3, 5, 6, 7 }, + { -3, -4, -4, -4, -4, -5, -5, -6 }, + { 7, 9, 9, 7, 6, 3, 1, 0 }, + { -1, -4, 1, 6, -8, -6, 7, -4 }, + { 7, 8, 6, -2, -7, -3, 4, 6 }, + { 4, -5, -9, -5, 0, 1, -1, -2 }, + { 5, 4, 5, 5, 5, 6, 6, 6 }, + { 8, 2, -2, -2, -2, -1, -1, 0 }, + { -4, 3, 8, 9, 7, 4, 2, 1 }, + { -5, -5, -4, -3, -2, 0, 1, 2 }, + { 8, 2, -3, -2, -1, 2, 7, 9 }, + { 3, 4, 3, -1, -3, -3, -2, -1 }, + { 7, 6, 4, 1, 1, 1, 0, -1 }, + { -1, -1, -1, -2, -1, 1, 3, 5 }, + { 0, 0, 1, 2, 3, 4, 5, 5 }, + { -7, -3, 1, 3, 1, -2, -5, -5 }, + { 2, 2, 2, 2, 1, 0, -1, -2 }, + { 1, 0, 0, -1, -1, -2, -2, -3 }, + { 4, 4, 4, 4, 3, 3, 3, 3 }, + { -2, -2, -2, -3, -3, -3, -3, -3 }, + { 2, 2, -2, -2, 4, 8, 4, -5 }, + { -2, -2, -1, -1, -1, -1, 0, 0 }, + { -1, 2, 6, 7, 0, -6, -1, 5 }, + { 0, 0, 0, 0, 0, 0, 0, 0 }, + { 2, 2, 2, 2, 2, 2, 2, 2 }, + { 1, 1, 1, 1, 1, 1, 1, 1 }, + } , { + { -33, -33, -33, -33, -11, -11, -11, -11 }, + { -14, -7, 2, 9, -13, -5, 3, 10 }, + { 15, 3, -12, -25, 15, 3, -12, -24 }, + { 7, 2, -4, -10, 8, 3, -4, -10 }, + { -22, -11, 2, 13, -35, -26, -14, -1 }, + { -22, -11, 3, 15, -21, -9, 4, 16 }, + { 23, 12, -2, -14, 21, 9, -5, -17 }, + { 3, 0, -3, -4, 4, 0, -3, -3 }, + { 28, 28, 27, 27, 10, 9, 8, 8 }, + { -5, -8, -12, -15, -20, -23, -26, -28 }, + { 13, 4, -6, -14, 12, 3, -7, -15 }, + { -9, -4, 2, 6, -12, -7, -1, 4 }, + { -15, -2, 12, 24, -11, 2, 16, 27 }, + { -12, -16, -19, -22, 0, -4, -8, -11 }, + { 10, 12, 15, 17, 31, 34, 37, 38 }, + { -6, -4, 1, 7, -6, -4, 0, 6 }, + { 21, 17, 12, 6, 13, 8, 2, -4 }, + { -6, -5, -5, -4, -15, -15, -15, -15 }, + { -12, -4, 7, 16, -11, -2, 8, 16 }, + { 5, 1, -3, -7, 5, 1, -3, -6 }, + { -9, -3, 4, 11, -8, -3, 5, 12 }, + { -4, -4, -3, -2, -10, -10, -9, -8 }, + { 11, 6, -2, -10, 11, 5, -2, -10 }, + { -23, -19, -14, -9, -13, -8, -2, 3 }, + { 15, 11, 4, -2, 11, 5, -1, -7 }, + { -15, -8, 1, 10, -20, -13, -4, 6 }, + { 17, 8, -2, -10, 26, 18, 8, -2 }, + { 2, -3, -8, -13, 5, 1, -4, -9 }, + { -5, -1, 2, 3, -5, -1, 2, 4 }, + { 1, -7, -14, -19, 7, 0, -8, -13 }, + { 12, 13, 14, 14, 4, 5, 6, 7 }, + { -11, -11, -10, -10, -5, -5, -4, -4 }, + { -4, 2, 8, 12, 6, 12, 17, 21 }, + { -17, -13, -8, -2, -11, -6, 0, 5 }, + { 7, 15, 21, 26, -6, 3, 11, 18 }, + { 5, -1, -7, -12, -2, -9, -15, -20 }, + { 7, 8, 9, 9, 2, 3, 4, 4 }, + { -1, -1, -1, -1, -3, -3, -3, -3 }, + { -5, -1, 5, 10, -1, 5, 10, 15 }, + { 2, -1, -4, -7, 4, 1, -2, -6 }, + { -3, -1, 1, 3, -3, -1, 1, 3 }, + { 1, 1, 1, 0, -3, -3, -3, -4 }, + { 8, 5, 1, -3, 13, 10, 7, 2 }, + { 2, 4, 4, 5, 10, 12, 12, 13 }, + { 1, -3, -5, -7, -5, -8, -10, -11 }, + { 3, 1, -1, -3, 4, 1, -1, -3 }, + { 7, 1, -5, -10, 3, -3, -9, -14 }, + { -6, -9, -11, -13, 1, -2, -5, -7 }, + { -5, -5, -5, -5, 0, 0, 0, 0 }, + { 0, 6, 13, 19, -6, -1, 5, 12 }, + { -9, -2, 3, 7, -9, -2, 3, 7 }, + { -8, -8, -8, -7, -2, -2, -2, -2 }, + { 12, 10, 8, 5, 7, 5, 2, -1 }, + { -11, -8, -4, 1, -8, -4, 0, 5 }, + { 10, 7, 4, 2, 19, 17, 16, 14 }, + { 8, 3, -2, -6, 8, 2, -3, -6 }, + { -5, -2, 3, 6, -5, -2, 3, 6 }, + { -4, -3, -3, -2, -6, -6, -6, -5 }, + { 3, 1, -2, -5, 3, 1, -2, -5 }, + { -5, -1, 4, 7, -4, 1, 5, 9 }, + { 1, 0, 0, -1, 1, 0, -1, -1 }, + { 6, 4, -1, -6, 6, 4, -1, -7 }, + { 0, 0, 0, -1, -7, -7, -7, -7 }, + { -1, 0, 0, 0, 4, 4, 5, 5 }, + { -9, -5, -1, 3, -15, -12, -7, -3 }, + { -4, -1, 1, 2, -5, -2, 0, 1 }, + { -3, -3, -3, -3, -1, -1, -1, -1 }, + { 4, 4, 3, 2, 8, 8, 8, 7 }, + { -8, -4, 0, 4, -7, -2, 2, 5 }, + { 9, 6, 1, -3, 7, 3, -1, -5 }, + { -6, -3, 0, 2, -10, -8, -5, -2 }, + { -5, -3, -2, -1, -3, -2, 0, 1 }, + { -3, -3, -3, -2, -2, -2, -1, 0 }, + { 3, 0, -2, -5, 2, -1, -4, -6 }, + { -6, -4, -1, 2, -5, -2, 1, 3 }, + { 0, 2, 4, 5, 4, 7, 9, 10 }, + { -4, -2, 1, 4, -4, -2, 1, 4 }, + { 1, -1, -1, -1, 1, -1, -1, -1 }, + { -2, -1, 0, 0, -2, -1, 0, 0 }, + { 4, 3, 3, 3, 1, 1, 1, 1 }, + { 5, 1, -4, -7, 4, -1, -5, -9 }, + { -3, -1, 2, 5, -3, -1, 2, 5 }, + { -6, -2, 1, 4, -8, -4, -1, 3 }, + { 6, 2, -2, -4, 6, 2, -2, -4 }, + { 0, -3, -7, -9, 3, 0, -3, -6 }, + { -2, -1, -1, 0, -2, -2, -1, -1 }, + { -1, -1, -2, -2, 1, 1, 0, 0 }, + { 2, 0, -2, -5, 2, 1, -1, -4 }, + { 0, 0, -1, -1, 0, 0, -1, -1 }, + { 1, 1, 1, 2, 6, 6, 6, 6 }, + { 3, 0, -3, -6, 0, -4, -7, -10 }, + { -5, 1, 6, 10, -7, -2, 4, 9 }, + { 2, 1, -1, -3, 2, 1, -1, -3 }, + { -2, -1, 2, 4, -1, 1, 4, 6 }, + { 1, -1, -2, -3, 1, 0, -1, -2 }, + { -2, -4, -1, 6, -2, -4, -1, 7 }, + { -6, -6, -5, -4, -4, -3, -2, -1 }, + { -2, -2, -2, -2, -1, -1, -1, -1 }, + { -11, -9, -7, -4, -6, -4, -2, 1 }, + { 2, 2, 2, 2, 1, 1, 1, 1 }, + { 9, 4, -1, -7, 12, 7, 1, -4 }, + { 0, 0, -1, -2, 0, 0, -1, -2 }, + { -1, -1, -1, -1, -1, -1, -2, -2 }, + { 2, 0, -2, -3, 1, 0, -2, -3 }, + { -3, 0, 4, 5, -3, 1, 4, 5 }, + { -1, -1, 1, 4, -1, -1, 1, 4 }, + { 6, 6, 6, 6, 1, 1, 1, 1 }, + { 2, 2, 2, 3, 0, 0, 0, 0 }, + { -2, -3, -5, -7, 1, 0, -2, -4 }, + { 2, 2, 2, 1, 3, 3, 3, 3 }, + { -1, -1, -1, -1, -2, -2, -2, -2 }, + { 0, -1, -1, 0, 0, -1, -1, 0 }, + { -4, -2, 0, 2, -6, -4, -2, 0 }, + { 1, 6, 9, 11, -3, 1, 5, 7 }, + { 3, 2, 0, -2, 3, 2, 0, -3 }, + { 6, 3, -1, -4, 8, 5, 1, -2 }, + { 0, 0, 0, 0, -2, -2, -2, -2 }, + { 0, -1, -2, -2, -2, -3, -4, -5 }, + { 1, 0, -1, -1, 0, -1, -2, -2 }, + { -1, -1, 0, 0, -1, -1, 0, 0 }, + { -4, -6, -7, -8, 0, -2, -3, -4 }, + { 3, 5, 6, 7, -1, 1, 3, 4 }, + { -8, -6, -3, -1, -5, -2, 0, 2 }, + { 5, 3, 1, -2, 9, 7, 5, 2 }, + { -1, -2, -3, -4, 1, 0, -1, -2 }, + { -5, -5, -3, 1, -5, -5, -4, 0 }, + { -3, -2, -2, -1, -2, -1, -1, 0 }, + { 4, 2, 0, -2, 6, 4, 1, -1 }, + { -3, -2, 0, 3, -3, -2, 0, 3 }, + { 2, 0, -2, -4, -1, -3, -5, -7 }, + { -1, -1, -2, -2, 0, -1, -1, -2 }, + { 0, -2, -3, -3, -4, -5, -6, -7 }, + { 2, -3, -4, -2, 1, -4, -5, -1 }, + { 2, 2, 1, -2, 2, 2, 1, -2 }, + { 1, -2, -4, -5, 2, 0, -2, -4 }, + { -1, -1, 1, 2, 0, 1, 2, 3 }, + { -1, 0, 1, 2, -1, 0, 1, 1 }, + { 4, 3, 0, -4, 4, 3, 0, -4 }, + { -3, 0, 3, 6, 0, 3, 6, 8 }, + { 3, 2, 1, 0, 6, 5, 4, 2 }, + { -3, -2, -2, -2, 0, 0, 1, 1 }, + { 1, 0, -1, -3, 0, -1, -3, -5 }, + { -3, -2, -1, 0, -7, -6, -4, -3 }, + { -3, 0, 1, 2, -3, 0, 1, 2 }, + { 0, -1, -2, -2, 0, -1, -2, -2 }, + { -1, 2, 5, 8, -3, -1, 3, 6 }, + { -2, -1, 0, 1, -1, 0, 1, 2 }, + { 6, 4, 1, -1, 4, 2, 0, -2 }, + { -2, -1, 0, 1, -2, -1, 0, 1 }, + { -4, -2, -1, 1, -2, -1, 1, 2 }, + { 5, 5, 5, 5, 3, 3, 3, 3 }, + { 1, 1, 0, 0, 1, 1, 1, 1 }, + { 8, 6, 4, 2, 5, 3, 1, -2 }, + { -1, 0, 0, 0, -1, 0, 0, 0 }, + { 1, 1, 1, 0, 1, 1, 1, 0 }, + { 1, 0, -1, -2, 3, 2, 1, -1 }, + { 3, 3, 3, 3, 4, 5, 5, 5 }, + { 2, 1, 0, -1, 2, 1, 0, -1 }, + { 0, 0, 0, 0, 1, 1, 1, 1 }, + { -4, -4, -5, -5, -1, -2, -3, -3 }, + { -2, -1, 0, 1, -4, -3, -2, -1 }, + { -1, 1, 3, 6, -2, -1, 1, 4 }, + { 1, 0, -1, -2, 1, 0, -1, -2 }, + { 5, 4, 3, 2, 3, 2, 1, 0 }, + { -2, 0, 2, 3, -2, 0, 2, 3 }, + { 3, 2, 0, -1, 2, 0, -1, -2 }, + { -3, -2, -1, 1, -3, -2, -1, 1 }, + { 0, 0, 0, 0, 0, 0, 0, 0 }, + { -1, 1, 3, 4, 2, 4, 6, 6 }, + { -2, -1, -1, 0, -1, -1, 0, 0 }, + { -1, -2, -3, -4, 0, -1, -2, -3 }, + { 0, 0, 0, 1, 0, 0, 0, 1 }, + { 1, 1, 1, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 2, 2, 2, 2 }, + { 3, 4, 4, 4, 2, 2, 2, 2 }, + { 1, 1, 1, 1, 0, 1, 1, 1 }, + { 0, 0, 1, 2, 0, 0, 1, 2 }, + { -3, 2, 3, 0, -3, 2, 2, 0 }, + { 3, 1, 0, -1, 3, 2, 0, -1 }, + { 2, 0, 0, 0, 5, 3, 3, 2 }, + { 0, 0, -1, -2, -1, -2, -3, -3 }, + { -1, 0, 1, 2, -1, -1, 0, 2 }, + { 0, 1, 1, 1, 0, 1, 1, 1 }, + { -1, 0, 2, 3, 1, 2, 3, 5 }, + { -5, -5, -4, -3, -3, -2, -1, 0 }, + { 3, 0, -1, -1, 3, 0, -1, -1 }, + { 0, 0, 0, -1, 0, 0, 0, -1 }, + { -1, 0, 0, 0, 0, 0, 1, 1 }, + { -2, -2, -2, -2, -4, -4, -5, -4 }, + { 3, 3, 4, 6, -1, 0, 1, 2 }, + { -1, 1, 2, 2, -1, 1, 2, 2 }, + { 3, 2, 1, -1, 4, 3, 2, 1 }, + { -1, -1, 1, 1, -3, -2, -1, 0 }, + { -1, 1, 2, 3, -2, -1, 1, 2 }, + { 0, 0, 0, 0, -1, -1, -1, -1 }, + { -1, -1, -2, -2, 0, -1, -1, -1 }, + { -1, -2, -1, 2, -1, -2, -1, 2 }, + { 4, 3, 2, 1, 3, 1, 0, -1 }, + { -1, -1, -1, 0, -2, -2, -2, 0 }, + { 0, 1, 3, 4, -1, 0, 1, 3 }, + { 0, -1, -1, -1, -1, -2, -2, -2 }, + { 1, 2, 0, -4, 1, 2, 0, -5 }, + { -2, -1, -1, -1, -1, -1, -1, -1 }, + { -1, -1, 0, 0, -1, -1, -1, -1 }, + { 2, 2, 1, 0, 2, 1, 1, 0 }, + { 0, 0, 1, 1, 1, 1, 2, 2 }, + { 1, -1, -2, -4, 0, -2, -3, -4 }, + { 0, 0, 0, 1, 1, 1, 1, 2 }, + { -3, -3, -2, 0, -4, -4, -3, -2 }, + { 2, -1, -1, 2, 2, -1, -1, 2 }, + { 2, 1, 0, 0, 2, 1, 0, 0 }, + { 0, 1, 1, 0, 0, 1, 1, 0 }, + { -1, -1, -1, -1, 0, 0, 0, 0 }, + { 2, 2, 1, 1, 1, 1, 1, 0 }, + { 0, -1, -1, -2, 0, 0, -1, -1 }, + { 3, 5, 3, -1, 3, 4, 2, -3 }, + { 1, 1, 1, 1, 1, 0, 0, 0 }, + { 1, 1, 2, 2, 0, 0, 1, 1 }, + { -1, -1, -1, -1, -2, -2, -1, -1 }, + { 0, 1, 1, 2, 0, 0, 0, 1 }, + { 3, 2, 2, 2, 2, 2, 2, 1 }, + { 1, 1, 1, 1, 2, 2, 2, 2 }, + { 2, 1, 1, 0, 1, 0, 0, -1 }, + { 2, 1, 0, -1, 3, 2, 1, 0 }, + { 1, 0, 0, 0, 1, 0, 0, 0 }, + { 1, 1, 2, 2, 3, 3, 4, 4 }, + { -1, -1, 0, 0, -1, -1, -1, 0 }, + { 1, 1, 1, 1, 1, 1, 2, 2 }, + { 1, 0, -1, -1, 1, 1, 0, -1 }, + { 0, 3, 4, 5, -1, 1, 3, 4 }, + { -2, -2, -1, 0, -3, -3, -2, -2 }, + { 1, 1, 1, 2, 1, 1, 1, 1 }, + { 0, -1, -1, -1, -1, -2, -2, -1 }, + { 1, 1, 0, -2, 1, 1, 0, -2 }, + { 0, 0, 1, 1, 0, 0, 1, 1 }, + { 2, 1, 1, 0, 2, 2, 2, 1 }, + { -1, -2, -2, -2, 0, -1, -1, -1 }, + { 2, 1, 1, 1, 2, 1, 1, 1 }, + { 1, 1, 2, 2, 0, 0, 1, 2 }, + { 1, 1, 1, 1, 2, 2, 1, 1 }, + { 2, 2, 3, 3, 0, 1, 2, 2 }, + { 1, 1, 1, 1, 1, 1, 1, 1 }, + { 1, 1, 0, 0, 1, 1, 1, 0 }, + { 2, 3, 3, 1, 1, 2, 2, 1 }, + { -3, -3, -3, -3, -2, -2, -2, -2 }, + { 0, 1, 2, 2, 1, 2, 3, 3 }, + { -1, -2, -2, -2, -2, -3, -3, -3 }, + { 1, 2, 2, 1, 0, 1, 1, 0 }, + { -2, -2, -3, -3, -1, -1, -2, -2 }, + { 1, 1, 1, 1, 1, 1, 1, 2 }, + { -2, -2, -2, -2, -2, -2, -2, -2 }, + { 1, 2, 1, 0, 1, 2, 2, 0 }, + { -1, -1, -1, -1, -1, -1, -1, -1 }, + { 1, 2, 2, 2, 1, 1, 1, 2 }, + { -1, -1, -1, -2, -1, -1, -1, -1 }, + { 0, 1, 1, 1, 1, 2, 2, 1 }, + } +}; + +const uint8_t st2205_shuffle_data[10360] = { + 0, 0, 0, 8, 8, 0, 0, 16, 8, 8, 16, 0, 0, 24, 8, 16, + 16, 8, 24, 0, 0, 32, 8, 24, 16, 16, 24, 8, 32, 0, 0, 40, + 8, 32, 16, 24, 24, 16, 32, 8, 40, 0, 0, 48, 8, 40, 16, 32, + 24, 24, 32, 16, 40, 8, 48, 0, 0, 56, 8, 48, 16, 40, 24, 32, + 32, 24, 40, 16, 48, 8, 56, 0, 0, 64, 8, 56, 16, 48, 24, 40, + 32, 32, 40, 24, 48, 16, 56, 8, 64, 0, 0, 72, 8, 64, 16, 56, + 24, 48, 32, 40, 40, 32, 48, 24, 56, 16, 64, 8, 72, 0, 0, 80, + 8, 72, 16, 64, 24, 56, 32, 48, 40, 40, 48, 32, 56, 24, 64, 16, + 72, 8, 80, 0, 0, 88, 8, 80, 16, 72, 24, 64, 32, 56, 40, 48, + 48, 40, 56, 32, 64, 24, 72, 16, 80, 8, 88, 0, 0, 96, 8, 88, + 16, 80, 24, 72, 32, 64, 40, 56, 48, 48, 56, 40, 64, 32, 72, 24, + 80, 16, 88, 8, 96, 0, 0, 104, 8, 96, 16, 88, 24, 80, 32, 72, + 40, 64, 48, 56, 56, 48, 64, 40, 72, 32, 80, 24, 88, 16, 96, 8, +104, 0, 0, 112, 8, 104, 16, 96, 24, 88, 32, 80, 40, 72, 48, 64, + 56, 56, 64, 48, 72, 40, 80, 32, 88, 24, 96, 16, 104, 8, 112, 0, + 0, 120, 8, 112, 16, 104, 24, 96, 32, 88, 40, 80, 48, 72, 56, 64, + 64, 56, 72, 48, 80, 40, 88, 32, 96, 24, 104, 16, 112, 8, 120, 0, + 0, 128, 8, 120, 16, 112, 24, 104, 32, 96, 40, 88, 48, 80, 56, 72, + 64, 64, 72, 56, 80, 48, 88, 40, 96, 32, 104, 24, 112, 16, 120, 8, + 0, 136, 8, 128, 16, 120, 24, 112, 32, 104, 40, 96, 48, 88, 56, 80, + 64, 72, 72, 64, 80, 56, 88, 48, 96, 40, 104, 32, 112, 24, 120, 16, + 0, 144, 8, 136, 16, 128, 24, 120, 32, 112, 40, 104, 48, 96, 56, 88, + 64, 80, 72, 72, 80, 64, 88, 56, 96, 48, 104, 40, 112, 32, 120, 24, + 0, 152, 8, 144, 16, 136, 24, 128, 32, 120, 40, 112, 48, 104, 56, 96, + 64, 88, 72, 80, 80, 72, 88, 64, 96, 56, 104, 48, 112, 40, 120, 32, + 8, 152, 16, 144, 24, 136, 32, 128, 40, 120, 48, 112, 56, 104, 64, 96, + 72, 88, 80, 80, 88, 72, 96, 64, 104, 56, 112, 48, 120, 40, 16, 152, + 24, 144, 32, 136, 40, 128, 48, 120, 56, 112, 64, 104, 72, 96, 80, 88, + 88, 80, 96, 72, 104, 64, 112, 56, 120, 48, 24, 152, 32, 144, 40, 136, + 48, 128, 56, 120, 64, 112, 72, 104, 80, 96, 88, 88, 96, 80, 104, 72, +112, 64, 120, 56, 32, 152, 40, 144, 48, 136, 56, 128, 64, 120, 72, 112, + 80, 104, 88, 96, 96, 88, 104, 80, 112, 72, 120, 64, 40, 152, 48, 144, + 56, 136, 64, 128, 72, 120, 80, 112, 88, 104, 96, 96, 104, 88, 112, 80, +120, 72, 48, 152, 56, 144, 64, 136, 72, 128, 80, 120, 88, 112, 96, 104, +104, 96, 112, 88, 120, 80, 56, 152, 64, 144, 72, 136, 80, 128, 88, 120, + 96, 112, 104, 104, 112, 96, 120, 88, 64, 152, 72, 144, 80, 136, 88, 128, + 96, 120, 104, 112, 112, 104, 120, 96, 72, 152, 80, 144, 88, 136, 96, 128, +104, 120, 112, 112, 120, 104, 80, 152, 88, 144, 96, 136, 104, 128, 112, 120, +120, 112, 88, 152, 96, 144, 104, 136, 112, 128, 120, 120, 96, 152, 104, 144, +112, 136, 120, 128, 104, 152, 112, 144, 120, 136, 112, 152, 120, 144, 120, 152, + 56, 80, 64, 80, 64, 72, 56, 72, 48, 72, 48, 80, 48, 88, 56, 88, + 64, 88, 72, 88, 72, 80, 72, 72, 72, 64, 64, 64, 56, 64, 48, 64, + 40, 64, 40, 72, 40, 80, 40, 88, 40, 96, 48, 96, 56, 96, 64, 96, + 72, 96, 80, 96, 80, 88, 80, 80, 80, 72, 80, 64, 80, 56, 72, 56, + 64, 56, 56, 56, 48, 56, 40, 56, 32, 56, 32, 64, 32, 72, 32, 80, + 32, 88, 32, 96, 32, 104, 40, 104, 48, 104, 56, 104, 64, 104, 72, 104, + 80, 104, 88, 104, 88, 96, 88, 88, 88, 80, 88, 72, 88, 64, 88, 56, + 88, 48, 80, 48, 72, 48, 64, 48, 56, 48, 48, 48, 40, 48, 32, 48, + 24, 48, 24, 56, 24, 64, 24, 72, 24, 80, 24, 88, 24, 96, 24, 104, + 24, 112, 32, 112, 40, 112, 48, 112, 56, 112, 64, 112, 72, 112, 80, 112, + 88, 112, 96, 112, 96, 104, 96, 96, 96, 88, 96, 80, 96, 72, 96, 64, + 96, 56, 96, 48, 96, 40, 88, 40, 80, 40, 72, 40, 64, 40, 56, 40, + 48, 40, 40, 40, 32, 40, 24, 40, 16, 40, 16, 48, 16, 56, 16, 64, + 16, 72, 16, 80, 16, 88, 16, 96, 16, 104, 16, 112, 16, 120, 24, 120, + 32, 120, 40, 120, 48, 120, 56, 120, 64, 120, 72, 120, 80, 120, 88, 120, + 96, 120, 104, 120, 104, 112, 104, 104, 104, 96, 104, 88, 104, 80, 104, 72, +104, 64, 104, 56, 104, 48, 104, 40, 104, 32, 96, 32, 88, 32, 80, 32, + 72, 32, 64, 32, 56, 32, 48, 32, 40, 32, 32, 32, 24, 32, 16, 32, + 8, 32, 8, 40, 8, 48, 8, 56, 8, 64, 8, 72, 8, 80, 8, 88, + 8, 96, 8, 104, 8, 112, 8, 120, 8, 128, 16, 128, 24, 128, 32, 128, + 40, 128, 48, 128, 56, 128, 64, 128, 72, 128, 80, 128, 88, 128, 96, 128, +104, 128, 112, 128, 112, 120, 112, 112, 112, 104, 112, 96, 112, 88, 112, 80, +112, 72, 112, 64, 112, 56, 112, 48, 112, 40, 112, 32, 112, 24, 104, 24, + 96, 24, 88, 24, 80, 24, 72, 24, 64, 24, 56, 24, 48, 24, 40, 24, + 32, 24, 24, 24, 16, 24, 8, 24, 0, 24, 0, 32, 0, 40, 0, 48, + 0, 56, 0, 64, 0, 72, 0, 80, 0, 88, 0, 96, 0, 104, 0, 112, + 0, 120, 0, 128, 0, 136, 8, 136, 16, 136, 24, 136, 32, 136, 40, 136, + 48, 136, 56, 136, 64, 136, 72, 136, 80, 136, 88, 136, 96, 136, 104, 136, +112, 136, 120, 136, 120, 128, 120, 120, 120, 112, 120, 104, 120, 96, 120, 88, +120, 80, 120, 72, 120, 64, 120, 56, 120, 48, 120, 40, 120, 32, 120, 24, +120, 16, 112, 16, 104, 16, 96, 16, 88, 16, 80, 16, 72, 16, 64, 16, + 56, 16, 48, 16, 40, 16, 32, 16, 24, 16, 16, 16, 8, 16, 0, 16, + 0, 144, 8, 144, 16, 144, 24, 144, 32, 144, 40, 144, 48, 144, 56, 144, + 64, 144, 72, 144, 80, 144, 88, 144, 96, 144, 104, 144, 112, 144, 120, 144, +120, 8, 112, 8, 104, 8, 96, 8, 88, 8, 80, 8, 72, 8, 64, 8, + 56, 8, 48, 8, 40, 8, 32, 8, 24, 8, 16, 8, 8, 8, 0, 8, + 0, 152, 8, 152, 16, 152, 24, 152, 32, 152, 40, 152, 48, 152, 56, 152, + 64, 152, 72, 152, 80, 152, 88, 152, 96, 152, 104, 152, 112, 152, 120, 152, +120, 0, 112, 0, 104, 0, 96, 0, 88, 0, 80, 0, 72, 0, 64, 0, + 56, 0, 48, 0, 40, 0, 32, 0, 24, 0, 16, 0, 8, 0, 0, 0, + 0, 0, 0, 8, 8, 0, 8, 8, 32, 0, 32, 8, 40, 0, 40, 8, + 64, 0, 64, 8, 72, 0, 72, 8, 96, 0, 96, 8, 104, 0, 104, 8, + 16, 16, 16, 24, 24, 16, 24, 24, 48, 16, 48, 24, 56, 16, 56, 24, + 80, 16, 80, 24, 88, 16, 88, 24, 112, 16, 112, 24, 120, 16, 120, 24, + 0, 32, 0, 40, 8, 32, 8, 40, 32, 32, 32, 40, 40, 32, 40, 40, + 64, 32, 64, 40, 72, 32, 72, 40, 96, 32, 96, 40, 104, 32, 104, 40, + 16, 48, 16, 56, 24, 48, 24, 56, 48, 48, 48, 56, 56, 48, 56, 56, + 80, 48, 80, 56, 88, 48, 88, 56, 112, 48, 112, 56, 120, 48, 120, 56, + 0, 64, 0, 72, 8, 64, 8, 72, 32, 64, 32, 72, 40, 64, 40, 72, + 64, 64, 64, 72, 72, 64, 72, 72, 96, 64, 96, 72, 104, 64, 104, 72, + 16, 80, 16, 88, 24, 80, 24, 88, 48, 80, 48, 88, 56, 80, 56, 88, + 80, 80, 80, 88, 88, 80, 88, 88, 112, 80, 112, 88, 120, 80, 120, 88, + 0, 96, 0, 104, 8, 96, 8, 104, 32, 96, 32, 104, 40, 96, 40, 104, + 64, 96, 64, 104, 72, 96, 72, 104, 96, 96, 96, 104, 104, 96, 104, 104, + 16, 112, 16, 120, 24, 112, 24, 120, 48, 112, 48, 120, 56, 112, 56, 120, + 80, 112, 80, 120, 88, 112, 88, 120, 112, 112, 112, 120, 120, 112, 120, 120, + 0, 128, 0, 136, 8, 128, 8, 136, 32, 128, 32, 136, 40, 128, 40, 136, + 64, 128, 64, 136, 72, 128, 72, 136, 96, 128, 96, 136, 104, 128, 104, 136, + 16, 144, 16, 152, 24, 144, 24, 152, 48, 144, 48, 152, 56, 144, 56, 152, + 80, 144, 80, 152, 88, 144, 88, 152, 112, 144, 112, 152, 120, 144, 120, 152, + 16, 0, 16, 8, 24, 0, 24, 8, 48, 0, 48, 8, 56, 0, 56, 8, + 80, 0, 80, 8, 88, 0, 88, 8, 112, 0, 112, 8, 120, 0, 120, 8, + 0, 16, 0, 24, 8, 16, 8, 24, 32, 16, 32, 24, 40, 16, 40, 24, + 64, 16, 64, 24, 72, 16, 72, 24, 96, 16, 96, 24, 104, 16, 104, 24, + 16, 32, 16, 40, 24, 32, 24, 40, 48, 32, 48, 40, 56, 32, 56, 40, + 80, 32, 80, 40, 88, 32, 88, 40, 112, 32, 112, 40, 120, 32, 120, 40, + 0, 48, 0, 56, 8, 48, 8, 56, 32, 48, 32, 56, 40, 48, 40, 56, + 64, 48, 64, 56, 72, 48, 72, 56, 96, 48, 96, 56, 104, 48, 104, 56, + 16, 64, 16, 72, 24, 64, 24, 72, 48, 64, 48, 72, 56, 64, 56, 72, + 80, 64, 80, 72, 88, 64, 88, 72, 112, 64, 112, 72, 120, 64, 120, 72, + 0, 80, 0, 88, 8, 80, 8, 88, 32, 80, 32, 88, 40, 80, 40, 88, + 64, 80, 64, 88, 72, 80, 72, 88, 96, 80, 96, 88, 104, 80, 104, 88, + 16, 96, 16, 104, 24, 96, 24, 104, 48, 96, 48, 104, 56, 96, 56, 104, + 80, 96, 80, 104, 88, 96, 88, 104, 112, 96, 112, 104, 120, 96, 120, 104, + 0, 112, 0, 120, 8, 112, 8, 120, 32, 112, 32, 120, 40, 112, 40, 120, + 64, 112, 64, 120, 72, 112, 72, 120, 96, 112, 96, 120, 104, 112, 104, 120, + 16, 128, 16, 136, 24, 128, 24, 136, 48, 128, 48, 136, 56, 128, 56, 136, + 80, 128, 80, 136, 88, 128, 88, 136, 112, 128, 112, 136, 120, 128, 120, 136, + 0, 144, 0, 152, 8, 144, 8, 152, 32, 144, 32, 152, 40, 144, 40, 152, + 64, 144, 64, 152, 72, 144, 72, 152, 96, 144, 96, 152, 104, 144, 104, 152, + 72, 56, 8, 72, 104, 88, 104, 72, 32, 80, 72, 96, 64, 128, 0, 24, + 8, 136, 72, 88, 56, 104, 24, 0, 64, 16, 24, 56, 72, 128, 112, 32, + 0, 144, 80, 144, 72, 8, 88, 24, 24, 136, 48, 104, 16, 16, 96, 64, + 56, 128, 112, 40, 8, 152, 48, 120, 16, 24, 112, 0, 40, 88, 40, 0, + 40, 48, 120, 56, 72, 80, 48, 80, 16, 40, 120, 24, 56, 56, 88, 88, + 32, 0, 48, 72, 72, 32, 96, 104, 0, 64, 72, 72, 112, 104, 112, 8, + 80, 56, 24, 48, 120, 120, 56, 48, 64, 88, 72, 0, 112, 112, 32, 128, +120, 80, 48, 24, 40, 56, 0, 80, 56, 136, 56, 0, 24, 32, 104, 96, + 32, 88, 88, 96, 120, 72, 88, 32, 24, 128, 80, 0, 8, 88, 120, 8, + 16, 56, 120, 152, 40, 72, 96, 56, 112, 16, 16, 48, 32, 96, 48, 112, + 80, 72, 112, 72, 88, 8, 16, 128, 8, 32, 16, 104, 56, 40, 80, 120, + 48, 56, 40, 80, 88, 64, 32, 8, 0, 96, 8, 48, 8, 0, 120, 16, + 16, 80, 80, 112, 120, 112, 72, 24, 112, 80, 48, 96, 64, 80, 120, 32, + 48, 48, 0, 112, 8, 128, 64, 8, 56, 112, 96, 0, 72, 64, 56, 88, +112, 144, 88, 56, 80, 48, 104, 40, 56, 72, 96, 96, 0, 0, 64, 56, + 96, 48, 104, 104, 88, 144, 120, 48, 104, 152, 24, 104, 56, 144, 0, 32, + 32, 24, 16, 72, 112, 136, 24, 152, 104, 0, 88, 120, 72, 144, 96, 136, + 96, 40, 112, 128, 0, 152, 80, 96, 56, 120, 72, 48, 88, 112, 24, 96, + 24, 24, 8, 112, 48, 8, 64, 64, 88, 72, 112, 88, 40, 16, 64, 112, + 32, 16, 112, 56, 88, 0, 16, 152, 48, 0, 0, 88, 48, 40, 104, 120, + 0, 16, 104, 144, 24, 16, 80, 128, 32, 152, 24, 80, 96, 128, 24, 40, + 64, 32, 32, 48, 96, 152, 112, 48, 0, 40, 40, 152, 24, 72, 56, 16, + 80, 16, 40, 8, 64, 96, 120, 136, 56, 80, 32, 40, 104, 80, 40, 24, +112, 120, 32, 144, 16, 64, 88, 152, 40, 112, 112, 96, 16, 8, 96, 72, + 64, 40, 64, 24, 0, 128, 16, 112, 48, 152, 40, 136, 16, 88, 120, 64, + 96, 112, 120, 128, 8, 120, 24, 144, 80, 32, 0, 136, 40, 32, 120, 0, + 48, 144, 112, 152, 56, 8, 32, 72, 80, 80, 64, 136, 96, 120, 32, 136, + 8, 16, 40, 128, 120, 40, 48, 136, 8, 144, 120, 104, 8, 24, 0, 56, +120, 144, 96, 32, 80, 24, 8, 96, 48, 128, 16, 136, 88, 48, 24, 64, + 56, 64, 24, 112, 112, 24, 8, 56, 88, 136, 16, 120, 80, 88, 40, 40, + 0, 8, 40, 104, 64, 0, 48, 88, 64, 104, 80, 136, 80, 152, 48, 32, + 0, 120, 40, 96, 16, 96, 40, 144, 8, 40, 80, 40, 32, 56, 56, 152, + 0, 104, 80, 104, 88, 104, 72, 112, 112, 64, 0, 72, 40, 120, 120, 88, + 8, 80, 64, 48, 88, 40, 32, 64, 8, 104, 104, 8, 24, 8, 56, 32, + 40, 64, 56, 96, 72, 136, 88, 16, 104, 128, 72, 104, 88, 128, 48, 64, + 80, 8, 104, 56, 104, 136, 72, 152, 32, 32, 32, 120, 64, 144, 32, 112, + 64, 120, 64, 72, 104, 16, 104, 24, 104, 112, 96, 24, 48, 16, 88, 80, + 56, 24, 72, 120, 0, 48, 104, 64, 16, 144, 96, 88, 96, 16, 32, 104, + 80, 64, 96, 80, 16, 0, 24, 88, 72, 16, 72, 40, 8, 8, 8, 64, + 96, 144, 24, 120, 120, 96, 104, 48, 64, 152, 104, 32, 96, 8, 16, 32, + 0, 0, 8, 0, 16, 0, 24, 0, 32, 0, 40, 0, 48, 0, 56, 0, + 64, 0, 72, 0, 80, 0, 88, 0, 96, 0, 104, 0, 112, 0, 120, 0, + 0, 32, 8, 32, 16, 32, 24, 32, 32, 32, 40, 32, 48, 32, 56, 32, + 64, 32, 72, 32, 80, 32, 88, 32, 96, 32, 104, 32, 112, 32, 120, 32, + 0, 64, 8, 64, 16, 64, 24, 64, 32, 64, 40, 64, 48, 64, 56, 64, + 64, 64, 72, 64, 80, 64, 88, 64, 96, 64, 104, 64, 112, 64, 120, 64, + 0, 96, 8, 96, 16, 96, 24, 96, 32, 96, 40, 96, 48, 96, 56, 96, + 64, 96, 72, 96, 80, 96, 88, 96, 96, 96, 104, 96, 112, 96, 120, 96, + 0, 128, 8, 128, 16, 128, 24, 128, 32, 128, 40, 128, 48, 128, 56, 128, + 64, 128, 72, 128, 80, 128, 88, 128, 96, 128, 104, 128, 112, 128, 120, 128, + 0, 8, 8, 8, 16, 8, 24, 8, 32, 8, 40, 8, 48, 8, 56, 8, + 64, 8, 72, 8, 80, 8, 88, 8, 96, 8, 104, 8, 112, 8, 120, 8, + 0, 40, 8, 40, 16, 40, 24, 40, 32, 40, 40, 40, 48, 40, 56, 40, + 64, 40, 72, 40, 80, 40, 88, 40, 96, 40, 104, 40, 112, 40, 120, 40, + 0, 72, 8, 72, 16, 72, 24, 72, 32, 72, 40, 72, 48, 72, 56, 72, + 64, 72, 72, 72, 80, 72, 88, 72, 96, 72, 104, 72, 112, 72, 120, 72, + 0, 104, 8, 104, 16, 104, 24, 104, 32, 104, 40, 104, 48, 104, 56, 104, + 64, 104, 72, 104, 80, 104, 88, 104, 96, 104, 104, 104, 112, 104, 120, 104, + 0, 136, 8, 136, 16, 136, 24, 136, 32, 136, 40, 136, 48, 136, 56, 136, + 64, 136, 72, 136, 80, 136, 88, 136, 96, 136, 104, 136, 112, 136, 120, 136, + 0, 16, 8, 16, 16, 16, 24, 16, 32, 16, 40, 16, 48, 16, 56, 16, + 64, 16, 72, 16, 80, 16, 88, 16, 96, 16, 104, 16, 112, 16, 120, 16, + 0, 48, 8, 48, 16, 48, 24, 48, 32, 48, 40, 48, 48, 48, 56, 48, + 64, 48, 72, 48, 80, 48, 88, 48, 96, 48, 104, 48, 112, 48, 120, 48, + 0, 80, 8, 80, 16, 80, 24, 80, 32, 80, 40, 80, 48, 80, 56, 80, + 64, 80, 72, 80, 80, 80, 88, 80, 96, 80, 104, 80, 112, 80, 120, 80, + 0, 112, 8, 112, 16, 112, 24, 112, 32, 112, 40, 112, 48, 112, 56, 112, + 64, 112, 72, 112, 80, 112, 88, 112, 96, 112, 104, 112, 112, 112, 120, 112, + 0, 144, 8, 144, 16, 144, 24, 144, 32, 144, 40, 144, 48, 144, 56, 144, + 64, 144, 72, 144, 80, 144, 88, 144, 96, 144, 104, 144, 112, 144, 120, 144, + 0, 24, 8, 24, 16, 24, 24, 24, 32, 24, 40, 24, 48, 24, 56, 24, + 64, 24, 72, 24, 80, 24, 88, 24, 96, 24, 104, 24, 112, 24, 120, 24, + 0, 56, 8, 56, 16, 56, 24, 56, 32, 56, 40, 56, 48, 56, 56, 56, + 64, 56, 72, 56, 80, 56, 88, 56, 96, 56, 104, 56, 112, 56, 120, 56, + 0, 88, 8, 88, 16, 88, 24, 88, 32, 88, 40, 88, 48, 88, 56, 88, + 64, 88, 72, 88, 80, 88, 88, 88, 96, 88, 104, 88, 112, 88, 120, 88, + 0, 120, 8, 120, 16, 120, 24, 120, 32, 120, 40, 120, 48, 120, 56, 120, + 64, 120, 72, 120, 80, 120, 88, 120, 96, 120, 104, 120, 112, 120, 120, 120, + 0, 152, 8, 152, 16, 152, 24, 152, 32, 152, 40, 152, 48, 152, 56, 152, + 64, 152, 72, 152, 80, 152, 88, 152, 96, 152, 104, 152, 112, 152, 120, 152, + 0, 0, 0, 8, 0, 16, 0, 24, 0, 32, 0, 40, 0, 48, 0, 56, + 0, 64, 0, 72, 0, 80, 0, 88, 0, 96, 0, 104, 0, 112, 0, 120, + 0, 128, 0, 136, 0, 144, 0, 152, 32, 0, 32, 8, 32, 16, 32, 24, + 32, 32, 32, 40, 32, 48, 32, 56, 32, 64, 32, 72, 32, 80, 32, 88, + 32, 96, 32, 104, 32, 112, 32, 120, 32, 128, 32, 136, 32, 144, 32, 152, + 64, 0, 64, 8, 64, 16, 64, 24, 64, 32, 64, 40, 64, 48, 64, 56, + 64, 64, 64, 72, 64, 80, 64, 88, 64, 96, 64, 104, 64, 112, 64, 120, + 64, 128, 64, 136, 64, 144, 64, 152, 96, 0, 96, 8, 96, 16, 96, 24, + 96, 32, 96, 40, 96, 48, 96, 56, 96, 64, 96, 72, 96, 80, 96, 88, + 96, 96, 96, 104, 96, 112, 96, 120, 96, 128, 96, 136, 96, 144, 96, 152, + 8, 0, 8, 8, 8, 16, 8, 24, 8, 32, 8, 40, 8, 48, 8, 56, + 8, 64, 8, 72, 8, 80, 8, 88, 8, 96, 8, 104, 8, 112, 8, 120, + 8, 128, 8, 136, 8, 144, 8, 152, 40, 0, 40, 8, 40, 16, 40, 24, + 40, 32, 40, 40, 40, 48, 40, 56, 40, 64, 40, 72, 40, 80, 40, 88, + 40, 96, 40, 104, 40, 112, 40, 120, 40, 128, 40, 136, 40, 144, 40, 152, + 72, 0, 72, 8, 72, 16, 72, 24, 72, 32, 72, 40, 72, 48, 72, 56, + 72, 64, 72, 72, 72, 80, 72, 88, 72, 96, 72, 104, 72, 112, 72, 120, + 72, 128, 72, 136, 72, 144, 72, 152, 104, 0, 104, 8, 104, 16, 104, 24, +104, 32, 104, 40, 104, 48, 104, 56, 104, 64, 104, 72, 104, 80, 104, 88, +104, 96, 104, 104, 104, 112, 104, 120, 104, 128, 104, 136, 104, 144, 104, 152, + 16, 0, 16, 8, 16, 16, 16, 24, 16, 32, 16, 40, 16, 48, 16, 56, + 16, 64, 16, 72, 16, 80, 16, 88, 16, 96, 16, 104, 16, 112, 16, 120, + 16, 128, 16, 136, 16, 144, 16, 152, 48, 0, 48, 8, 48, 16, 48, 24, + 48, 32, 48, 40, 48, 48, 48, 56, 48, 64, 48, 72, 48, 80, 48, 88, + 48, 96, 48, 104, 48, 112, 48, 120, 48, 128, 48, 136, 48, 144, 48, 152, + 80, 0, 80, 8, 80, 16, 80, 24, 80, 32, 80, 40, 80, 48, 80, 56, + 80, 64, 80, 72, 80, 80, 80, 88, 80, 96, 80, 104, 80, 112, 80, 120, + 80, 128, 80, 136, 80, 144, 80, 152, 112, 0, 112, 8, 112, 16, 112, 24, +112, 32, 112, 40, 112, 48, 112, 56, 112, 64, 112, 72, 112, 80, 112, 88, +112, 96, 112, 104, 112, 112, 112, 120, 112, 128, 112, 136, 112, 144, 112, 152, + 24, 0, 24, 8, 24, 16, 24, 24, 24, 32, 24, 40, 24, 48, 24, 56, + 24, 64, 24, 72, 24, 80, 24, 88, 24, 96, 24, 104, 24, 112, 24, 120, + 24, 128, 24, 136, 24, 144, 24, 152, 56, 0, 56, 8, 56, 16, 56, 24, + 56, 32, 56, 40, 56, 48, 56, 56, 56, 64, 56, 72, 56, 80, 56, 88, + 56, 96, 56, 104, 56, 112, 56, 120, 56, 128, 56, 136, 56, 144, 56, 152, + 88, 0, 88, 8, 88, 16, 88, 24, 88, 32, 88, 40, 88, 48, 88, 56, + 88, 64, 88, 72, 88, 80, 88, 88, 88, 96, 88, 104, 88, 112, 88, 120, + 88, 128, 88, 136, 88, 144, 88, 152, 120, 0, 120, 8, 120, 16, 120, 24, +120, 32, 120, 40, 120, 48, 120, 56, 120, 64, 120, 72, 120, 80, 120, 88, +120, 96, 120, 104, 120, 112, 120, 120, 120, 128, 120, 136, 120, 144, 120, 152, + 0, 0, 8, 0, 0, 8, 16, 0, 8, 8, 0, 16, 24, 0, 16, 8, + 8, 16, 0, 24, 32, 0, 24, 8, 16, 16, 8, 24, 0, 32, 40, 0, + 32, 8, 24, 16, 16, 24, 8, 32, 0, 40, 48, 0, 40, 8, 32, 16, + 24, 24, 16, 32, 8, 40, 0, 48, 56, 0, 48, 8, 40, 16, 32, 24, + 24, 32, 16, 40, 8, 48, 0, 56, 64, 0, 56, 8, 48, 16, 40, 24, + 32, 32, 24, 40, 16, 48, 8, 56, 0, 64, 72, 0, 64, 8, 56, 16, + 48, 24, 40, 32, 32, 40, 24, 48, 16, 56, 8, 64, 0, 72, 80, 0, + 72, 8, 64, 16, 56, 24, 48, 32, 40, 40, 32, 48, 24, 56, 16, 64, + 8, 72, 0, 80, 88, 0, 80, 8, 72, 16, 64, 24, 56, 32, 48, 40, + 40, 48, 32, 56, 24, 64, 16, 72, 8, 80, 0, 88, 96, 0, 88, 8, + 80, 16, 72, 24, 64, 32, 56, 40, 48, 48, 40, 56, 32, 64, 24, 72, + 16, 80, 8, 88, 0, 96, 104, 0, 96, 8, 88, 16, 80, 24, 72, 32, + 64, 40, 56, 48, 48, 56, 40, 64, 32, 72, 24, 80, 16, 88, 8, 96, + 0, 104, 112, 0, 104, 8, 96, 16, 88, 24, 80, 32, 72, 40, 64, 48, + 56, 56, 48, 64, 40, 72, 32, 80, 24, 88, 16, 96, 8, 104, 0, 112, +120, 0, 112, 8, 104, 16, 96, 24, 88, 32, 80, 40, 72, 48, 64, 56, + 56, 64, 48, 72, 40, 80, 32, 88, 24, 96, 16, 104, 8, 112, 0, 120, +120, 8, 112, 16, 104, 24, 96, 32, 88, 40, 80, 48, 72, 56, 64, 64, + 56, 72, 48, 80, 40, 88, 32, 96, 24, 104, 16, 112, 8, 120, 120, 16, +112, 24, 104, 32, 96, 40, 88, 48, 80, 56, 72, 64, 64, 72, 56, 80, + 48, 88, 40, 96, 32, 104, 24, 112, 16, 120, 120, 24, 112, 32, 104, 40, + 96, 48, 88, 56, 80, 64, 72, 72, 64, 80, 56, 88, 48, 96, 40, 104, + 32, 112, 24, 120, 120, 32, 112, 40, 104, 48, 96, 56, 88, 64, 80, 72, + 72, 80, 64, 88, 56, 96, 48, 104, 40, 112, 32, 120, 120, 40, 112, 48, +104, 56, 96, 64, 88, 72, 80, 80, 72, 88, 64, 96, 56, 104, 48, 112, + 40, 120, 120, 48, 112, 56, 104, 64, 96, 72, 88, 80, 80, 88, 72, 96, + 64, 104, 56, 112, 48, 120, 120, 56, 112, 64, 104, 72, 96, 80, 88, 88, + 80, 96, 72, 104, 64, 112, 56, 120, 120, 64, 112, 72, 104, 80, 96, 88, + 88, 96, 80, 104, 72, 112, 64, 120, 120, 72, 112, 80, 104, 88, 96, 96, + 88, 104, 80, 112, 72, 120, 120, 80, 112, 88, 104, 96, 96, 104, 88, 112, + 80, 120, 120, 88, 112, 96, 104, 104, 96, 112, 88, 120, 120, 96, 112, 104, +104, 112, 96, 120, 120, 104, 112, 112, 104, 120, 120, 112, 112, 120, 120, 120, + 64, 56, 64, 64, 56, 64, 56, 56, 56, 48, 64, 48, 72, 48, 72, 56, + 72, 64, 72, 72, 64, 72, 56, 72, 48, 72, 48, 64, 48, 56, 48, 48, + 48, 40, 56, 40, 64, 40, 72, 40, 80, 40, 80, 48, 80, 56, 80, 64, + 80, 72, 80, 80, 72, 80, 64, 80, 56, 80, 48, 80, 40, 80, 40, 72, + 40, 64, 40, 56, 40, 48, 40, 40, 40, 32, 48, 32, 56, 32, 64, 32, + 72, 32, 80, 32, 88, 32, 88, 40, 88, 48, 88, 56, 88, 64, 88, 72, + 88, 80, 88, 88, 80, 88, 72, 88, 64, 88, 56, 88, 48, 88, 40, 88, + 32, 88, 32, 80, 32, 72, 32, 64, 32, 56, 32, 48, 32, 40, 32, 32, + 32, 24, 40, 24, 48, 24, 56, 24, 64, 24, 72, 24, 80, 24, 88, 24, + 96, 24, 96, 32, 96, 40, 96, 48, 96, 56, 96, 64, 96, 72, 96, 80, + 96, 88, 96, 96, 88, 96, 80, 96, 72, 96, 64, 96, 56, 96, 48, 96, + 40, 96, 32, 96, 24, 96, 24, 88, 24, 80, 24, 72, 24, 64, 24, 56, + 24, 48, 24, 40, 24, 32, 24, 24, 24, 16, 32, 16, 40, 16, 48, 16, + 56, 16, 64, 16, 72, 16, 80, 16, 88, 16, 96, 16, 104, 16, 104, 24, +104, 32, 104, 40, 104, 48, 104, 56, 104, 64, 104, 72, 104, 80, 104, 88, +104, 96, 104, 104, 96, 104, 88, 104, 80, 104, 72, 104, 64, 104, 56, 104, + 48, 104, 40, 104, 32, 104, 24, 104, 16, 104, 16, 96, 16, 88, 16, 80, + 16, 72, 16, 64, 16, 56, 16, 48, 16, 40, 16, 32, 16, 24, 16, 16, + 16, 8, 24, 8, 32, 8, 40, 8, 48, 8, 56, 8, 64, 8, 72, 8, + 80, 8, 88, 8, 96, 8, 104, 8, 112, 8, 112, 16, 112, 24, 112, 32, +112, 40, 112, 48, 112, 56, 112, 64, 112, 72, 112, 80, 112, 88, 112, 96, +112, 104, 112, 112, 104, 112, 96, 112, 88, 112, 80, 112, 72, 112, 64, 112, + 56, 112, 48, 112, 40, 112, 32, 112, 24, 112, 16, 112, 8, 112, 8, 104, + 8, 96, 8, 88, 8, 80, 8, 72, 8, 64, 8, 56, 8, 48, 8, 40, + 8, 32, 8, 24, 8, 16, 8, 8, 8, 0, 16, 0, 24, 0, 32, 0, + 40, 0, 48, 0, 56, 0, 64, 0, 72, 0, 80, 0, 88, 0, 96, 0, +104, 0, 112, 0, 120, 0, 120, 8, 120, 16, 120, 24, 120, 32, 120, 40, +120, 48, 120, 56, 120, 64, 120, 72, 120, 80, 120, 88, 120, 96, 120, 104, +120, 112, 120, 120, 112, 120, 104, 120, 96, 120, 88, 120, 80, 120, 72, 120, + 64, 120, 56, 120, 48, 120, 40, 120, 32, 120, 24, 120, 16, 120, 8, 120, + 0, 120, 0, 112, 0, 104, 0, 96, 0, 88, 0, 80, 0, 72, 0, 64, + 0, 56, 0, 48, 0, 40, 0, 32, 0, 24, 0, 16, 0, 8, 0, 0, + 0, 0, 8, 0, 0, 8, 8, 8, 0, 32, 8, 32, 0, 40, 8, 40, + 0, 64, 8, 64, 0, 72, 8, 72, 0, 96, 8, 96, 0, 104, 8, 104, + 16, 16, 24, 16, 16, 24, 24, 24, 16, 48, 24, 48, 16, 56, 24, 56, + 16, 80, 24, 80, 16, 88, 24, 88, 16, 112, 24, 112, 16, 120, 24, 120, + 32, 0, 40, 0, 32, 8, 40, 8, 32, 32, 40, 32, 32, 40, 40, 40, + 32, 64, 40, 64, 32, 72, 40, 72, 32, 96, 40, 96, 32, 104, 40, 104, + 48, 16, 56, 16, 48, 24, 56, 24, 48, 48, 56, 48, 48, 56, 56, 56, + 48, 80, 56, 80, 48, 88, 56, 88, 48, 112, 56, 112, 48, 120, 56, 120, + 64, 0, 72, 0, 64, 8, 72, 8, 64, 32, 72, 32, 64, 40, 72, 40, + 64, 64, 72, 64, 64, 72, 72, 72, 64, 96, 72, 96, 64, 104, 72, 104, + 80, 16, 88, 16, 80, 24, 88, 24, 80, 48, 88, 48, 80, 56, 88, 56, + 80, 80, 88, 80, 80, 88, 88, 88, 80, 112, 88, 112, 80, 120, 88, 120, + 96, 0, 104, 0, 96, 8, 104, 8, 96, 32, 104, 32, 96, 40, 104, 40, + 96, 64, 104, 64, 96, 72, 104, 72, 96, 96, 104, 96, 96, 104, 104, 104, +112, 16, 120, 16, 112, 24, 120, 24, 112, 48, 120, 48, 112, 56, 120, 56, +112, 80, 120, 80, 112, 88, 120, 88, 112, 112, 120, 112, 112, 120, 120, 120, + 0, 16, 8, 16, 0, 24, 8, 24, 0, 48, 8, 48, 0, 56, 8, 56, + 0, 80, 8, 80, 0, 88, 8, 88, 0, 112, 8, 112, 0, 120, 8, 120, + 16, 0, 24, 0, 16, 8, 24, 8, 16, 32, 24, 32, 16, 40, 24, 40, + 16, 64, 24, 64, 16, 72, 24, 72, 16, 96, 24, 96, 16, 104, 24, 104, + 32, 16, 40, 16, 32, 24, 40, 24, 32, 48, 40, 48, 32, 56, 40, 56, + 32, 80, 40, 80, 32, 88, 40, 88, 32, 112, 40, 112, 32, 120, 40, 120, + 48, 0, 56, 0, 48, 8, 56, 8, 48, 32, 56, 32, 48, 40, 56, 40, + 48, 64, 56, 64, 48, 72, 56, 72, 48, 96, 56, 96, 48, 104, 56, 104, + 64, 16, 72, 16, 64, 24, 72, 24, 64, 48, 72, 48, 64, 56, 72, 56, + 64, 80, 72, 80, 64, 88, 72, 88, 64, 112, 72, 112, 64, 120, 72, 120, + 80, 0, 88, 0, 80, 8, 88, 8, 80, 32, 88, 32, 80, 40, 88, 40, + 80, 64, 88, 64, 80, 72, 88, 72, 80, 96, 88, 96, 80, 104, 88, 104, + 96, 16, 104, 16, 96, 24, 104, 24, 96, 48, 104, 48, 96, 56, 104, 56, + 96, 80, 104, 80, 96, 88, 104, 88, 96, 112, 104, 112, 96, 120, 104, 120, +112, 0, 120, 0, 112, 8, 120, 8, 112, 32, 120, 32, 112, 40, 120, 40, +112, 64, 120, 64, 112, 72, 120, 72, 112, 96, 120, 96, 112, 104, 120, 104, + 8, 88, 96, 120, 56, 96, 32, 56, 96, 56, 104, 0, 96, 48, 16, 8, + 88, 64, 0, 32, 80, 104, 56, 16, 88, 72, 0, 80, 32, 72, 104, 96, + 80, 0, 16, 72, 112, 96, 40, 56, 48, 56, 120, 112, 0, 56, 0, 64, + 16, 48, 24, 32, 88, 112, 72, 120, 0, 72, 8, 80, 16, 16, 24, 48, + 48, 48, 8, 96, 112, 0, 24, 40, 120, 56, 56, 0, 80, 96, 8, 56, + 40, 16, 96, 16, 24, 104, 88, 88, 0, 24, 96, 104, 56, 120, 0, 40, + 40, 72, 104, 48, 72, 80, 16, 0, 96, 32, 16, 64, 64, 120, 64, 96, +112, 88, 88, 24, 120, 40, 32, 8, 80, 16, 32, 88, 40, 32, 96, 8, + 8, 32, 8, 16, 32, 104, 16, 88, 56, 88, 104, 16, 112, 64, 120, 96, + 88, 80, 64, 64, 16, 80, 24, 112, 120, 32, 32, 64, 104, 104, 96, 96, + 96, 112, 104, 32, 64, 8, 72, 64, 104, 72, 88, 16, 72, 112, 48, 112, + 64, 72, 40, 88, 16, 32, 64, 88, 112, 112, 8, 64, 80, 80, 24, 8, + 0, 0, 24, 16, 48, 80, 104, 8, 56, 48, 32, 96, 8, 104, 72, 72, + 24, 64, 104, 56, 64, 104, 120, 72, 56, 72, 88, 32, 8, 72, 72, 48, +112, 16, 8, 112, 40, 104, 56, 24, 56, 112, 80, 112, 104, 112, 48, 16, + 64, 0, 72, 40, 48, 88, 112, 56, 8, 40, 40, 40, 80, 56, 8, 8, +120, 48, 104, 40, 40, 24, 64, 56, 80, 48, 8, 0, 16, 120, 0, 112, + 16, 56, 32, 32, 72, 16, 24, 56, 112, 24, 80, 72, 48, 40, 16, 24, + 72, 0, 24, 0, 88, 104, 80, 120, 40, 120, 24, 120, 32, 80, 112, 48, + 80, 40, 32, 120, 0, 16, 56, 32, 64, 112, 88, 96, 0, 8, 32, 40, +120, 104, 80, 32, 56, 64, 112, 32, 0, 120, 64, 32, 56, 80, 88, 40, + 8, 24, 64, 16, 48, 96, 80, 64, 112, 120, 56, 104, 64, 48, 64, 40, + 72, 56, 96, 0, 16, 40, 8, 48, 104, 80, 0, 48, 48, 0, 112, 40, + 40, 8, 104, 120, 120, 16, 32, 112, 80, 8, 64, 24, 88, 120, 56, 56, + 72, 8, 88, 48, 48, 72, 24, 80, 48, 32, 48, 120, 72, 24, 120, 64, + 48, 64, 96, 72, 120, 80, 72, 88, 0, 104, 32, 0, 40, 96, 24, 24, + 8, 120, 16, 112, 120, 24, 112, 80, 104, 64, 80, 88, 56, 40, 72, 32, +104, 24, 40, 80, 24, 96, 32, 48, 104, 88, 24, 72, 48, 104, 56, 8, + 96, 24, 40, 112, 112, 72, 40, 48, 40, 64, 24, 88, 120, 0, 96, 88, + 0, 96, 96, 40, 16, 104, 96, 80, 48, 8, 88, 8, 96, 64, 64, 80, + 72, 104, 0, 88, 120, 8, 112, 8, 120, 88, 32, 24, 120, 120, 88, 56, + 48, 24, 40, 0, 112, 104, 88, 0, 72, 96, 80, 24, 32, 16, 16, 96, + 0, 0, 8, 0, 16, 0, 24, 0, 32, 0, 40, 0, 48, 0, 56, 0, + 64, 0, 72, 0, 80, 0, 88, 0, 96, 0, 104, 0, 112, 0, 120, 0, + 0, 32, 8, 32, 16, 32, 24, 32, 32, 32, 40, 32, 48, 32, 56, 32, + 64, 32, 72, 32, 80, 32, 88, 32, 96, 32, 104, 32, 112, 32, 120, 32, + 0, 64, 8, 64, 16, 64, 24, 64, 32, 64, 40, 64, 48, 64, 56, 64, + 64, 64, 72, 64, 80, 64, 88, 64, 96, 64, 104, 64, 112, 64, 120, 64, + 0, 96, 8, 96, 16, 96, 24, 96, 32, 96, 40, 96, 48, 96, 56, 96, + 64, 96, 72, 96, 80, 96, 88, 96, 96, 96, 104, 96, 112, 96, 120, 96, + 0, 8, 8, 8, 16, 8, 24, 8, 32, 8, 40, 8, 48, 8, 56, 8, + 64, 8, 72, 8, 80, 8, 88, 8, 96, 8, 104, 8, 112, 8, 120, 8, + 0, 40, 8, 40, 16, 40, 24, 40, 32, 40, 40, 40, 48, 40, 56, 40, + 64, 40, 72, 40, 80, 40, 88, 40, 96, 40, 104, 40, 112, 40, 120, 40, + 0, 72, 8, 72, 16, 72, 24, 72, 32, 72, 40, 72, 48, 72, 56, 72, + 64, 72, 72, 72, 80, 72, 88, 72, 96, 72, 104, 72, 112, 72, 120, 72, + 0, 104, 8, 104, 16, 104, 24, 104, 32, 104, 40, 104, 48, 104, 56, 104, + 64, 104, 72, 104, 80, 104, 88, 104, 96, 104, 104, 104, 112, 104, 120, 104, + 0, 16, 8, 16, 16, 16, 24, 16, 32, 16, 40, 16, 48, 16, 56, 16, + 64, 16, 72, 16, 80, 16, 88, 16, 96, 16, 104, 16, 112, 16, 120, 16, + 0, 48, 8, 48, 16, 48, 24, 48, 32, 48, 40, 48, 48, 48, 56, 48, + 64, 48, 72, 48, 80, 48, 88, 48, 96, 48, 104, 48, 112, 48, 120, 48, + 0, 80, 8, 80, 16, 80, 24, 80, 32, 80, 40, 80, 48, 80, 56, 80, + 64, 80, 72, 80, 80, 80, 88, 80, 96, 80, 104, 80, 112, 80, 120, 80, + 0, 112, 8, 112, 16, 112, 24, 112, 32, 112, 40, 112, 48, 112, 56, 112, + 64, 112, 72, 112, 80, 112, 88, 112, 96, 112, 104, 112, 112, 112, 120, 112, + 0, 24, 8, 24, 16, 24, 24, 24, 32, 24, 40, 24, 48, 24, 56, 24, + 64, 24, 72, 24, 80, 24, 88, 24, 96, 24, 104, 24, 112, 24, 120, 24, + 0, 56, 8, 56, 16, 56, 24, 56, 32, 56, 40, 56, 48, 56, 56, 56, + 64, 56, 72, 56, 80, 56, 88, 56, 96, 56, 104, 56, 112, 56, 120, 56, + 0, 88, 8, 88, 16, 88, 24, 88, 32, 88, 40, 88, 48, 88, 56, 88, + 64, 88, 72, 88, 80, 88, 88, 88, 96, 88, 104, 88, 112, 88, 120, 88, + 0, 120, 8, 120, 16, 120, 24, 120, 32, 120, 40, 120, 48, 120, 56, 120, + 64, 120, 72, 120, 80, 120, 88, 120, 96, 120, 104, 120, 112, 120, 120, 120, + 0, 0, 8, 0, 0, 8, 16, 0, 8, 8, 0, 16, 24, 0, 16, 8, + 8, 16, 0, 24, 32, 0, 24, 8, 16, 16, 8, 24, 0, 32, 40, 0, + 32, 8, 24, 16, 16, 24, 8, 32, 0, 40, 48, 0, 40, 8, 32, 16, + 24, 24, 16, 32, 8, 40, 0, 48, 56, 0, 48, 8, 40, 16, 32, 24, + 24, 32, 16, 40, 8, 48, 0, 56, 64, 0, 56, 8, 48, 16, 40, 24, + 32, 32, 24, 40, 16, 48, 8, 56, 0, 64, 72, 0, 64, 8, 56, 16, + 48, 24, 40, 32, 32, 40, 24, 48, 16, 56, 8, 64, 0, 72, 80, 0, + 72, 8, 64, 16, 56, 24, 48, 32, 40, 40, 32, 48, 24, 56, 16, 64, + 8, 72, 0, 80, 88, 0, 80, 8, 72, 16, 64, 24, 56, 32, 48, 40, + 40, 48, 32, 56, 24, 64, 16, 72, 8, 80, 0, 88, 96, 0, 88, 8, + 80, 16, 72, 24, 64, 32, 56, 40, 48, 48, 40, 56, 32, 64, 24, 72, + 16, 80, 8, 88, 0, 96, 104, 0, 96, 8, 88, 16, 80, 24, 72, 32, + 64, 40, 56, 48, 48, 56, 40, 64, 32, 72, 24, 80, 16, 88, 8, 96, + 0, 104, 112, 0, 104, 8, 96, 16, 88, 24, 80, 32, 72, 40, 64, 48, + 56, 56, 48, 64, 40, 72, 32, 80, 24, 88, 16, 96, 8, 104, 0, 112, +112, 8, 104, 16, 96, 24, 88, 32, 80, 40, 72, 48, 64, 56, 56, 64, + 48, 72, 40, 80, 32, 88, 24, 96, 16, 104, 8, 112, 0, 120, 112, 16, +104, 24, 96, 32, 88, 40, 80, 48, 72, 56, 64, 64, 56, 72, 48, 80, + 40, 88, 32, 96, 24, 104, 16, 112, 8, 120, 0, 128, 112, 24, 104, 32, + 96, 40, 88, 48, 80, 56, 72, 64, 64, 72, 56, 80, 48, 88, 40, 96, + 32, 104, 24, 112, 16, 120, 8, 128, 0, 136, 112, 32, 104, 40, 96, 48, + 88, 56, 80, 64, 72, 72, 64, 80, 56, 88, 48, 96, 40, 104, 32, 112, + 24, 120, 16, 128, 8, 136, 0, 144, 112, 40, 104, 48, 96, 56, 88, 64, + 80, 72, 72, 80, 64, 88, 56, 96, 48, 104, 40, 112, 32, 120, 24, 128, + 16, 136, 8, 144, 0, 152, 112, 48, 104, 56, 96, 64, 88, 72, 80, 80, + 72, 88, 64, 96, 56, 104, 48, 112, 40, 120, 32, 128, 24, 136, 16, 144, + 8, 152, 112, 56, 104, 64, 96, 72, 88, 80, 80, 88, 72, 96, 64, 104, + 56, 112, 48, 120, 40, 128, 32, 136, 24, 144, 16, 152, 112, 64, 104, 72, + 96, 80, 88, 88, 80, 96, 72, 104, 64, 112, 56, 120, 48, 128, 40, 136, + 32, 144, 24, 152, 112, 72, 104, 80, 96, 88, 88, 96, 80, 104, 72, 112, + 64, 120, 56, 128, 48, 136, 40, 144, 32, 152, 112, 80, 104, 88, 96, 96, + 88, 104, 80, 112, 72, 120, 64, 128, 56, 136, 48, 144, 40, 152, 112, 88, +104, 96, 96, 104, 88, 112, 80, 120, 72, 128, 64, 136, 56, 144, 48, 152, +112, 96, 104, 104, 96, 112, 88, 120, 80, 128, 72, 136, 64, 144, 56, 152, +112, 104, 104, 112, 96, 120, 88, 128, 80, 136, 72, 144, 64, 152, 112, 112, +104, 120, 96, 128, 88, 136, 80, 144, 72, 152, 112, 120, 104, 128, 96, 136, + 88, 144, 80, 152, 112, 128, 104, 136, 96, 144, 88, 152, 112, 136, 104, 144, + 96, 152, 112, 144, 104, 152, 112, 152, 56, 72, 56, 80, 48, 80, 48, 72, + 48, 64, 56, 64, 64, 64, 64, 72, 64, 80, 64, 88, 56, 88, 48, 88, + 40, 88, 40, 80, 40, 72, 40, 64, 40, 56, 48, 56, 56, 56, 64, 56, + 72, 56, 72, 64, 72, 72, 72, 80, 72, 88, 72, 96, 64, 96, 56, 96, + 48, 96, 40, 96, 32, 96, 32, 88, 32, 80, 32, 72, 32, 64, 32, 56, + 32, 48, 40, 48, 48, 48, 56, 48, 64, 48, 72, 48, 80, 48, 80, 56, + 80, 64, 80, 72, 80, 80, 80, 88, 80, 96, 80, 104, 72, 104, 64, 104, + 56, 104, 48, 104, 40, 104, 32, 104, 24, 104, 24, 96, 24, 88, 24, 80, + 24, 72, 24, 64, 24, 56, 24, 48, 24, 40, 32, 40, 40, 40, 48, 40, + 56, 40, 64, 40, 72, 40, 80, 40, 88, 40, 88, 48, 88, 56, 88, 64, + 88, 72, 88, 80, 88, 88, 88, 96, 88, 104, 88, 112, 80, 112, 72, 112, + 64, 112, 56, 112, 48, 112, 40, 112, 32, 112, 24, 112, 16, 112, 16, 104, + 16, 96, 16, 88, 16, 80, 16, 72, 16, 64, 16, 56, 16, 48, 16, 40, + 16, 32, 24, 32, 32, 32, 40, 32, 48, 32, 56, 32, 64, 32, 72, 32, + 80, 32, 88, 32, 96, 32, 96, 40, 96, 48, 96, 56, 96, 64, 96, 72, + 96, 80, 96, 88, 96, 96, 96, 104, 96, 112, 96, 120, 88, 120, 80, 120, + 72, 120, 64, 120, 56, 120, 48, 120, 40, 120, 32, 120, 24, 120, 16, 120, + 8, 120, 8, 112, 8, 104, 8, 96, 8, 88, 8, 80, 8, 72, 8, 64, + 8, 56, 8, 48, 8, 40, 8, 32, 8, 24, 16, 24, 24, 24, 32, 24, + 40, 24, 48, 24, 56, 24, 64, 24, 72, 24, 80, 24, 88, 24, 96, 24, +104, 24, 104, 32, 104, 40, 104, 48, 104, 56, 104, 64, 104, 72, 104, 80, +104, 88, 104, 96, 104, 104, 104, 112, 104, 120, 104, 128, 96, 128, 88, 128, + 80, 128, 72, 128, 64, 128, 56, 128, 48, 128, 40, 128, 32, 128, 24, 128, + 16, 128, 8, 128, 0, 128, 0, 120, 0, 112, 0, 104, 0, 96, 0, 88, + 0, 80, 0, 72, 0, 64, 0, 56, 0, 48, 0, 40, 0, 32, 0, 24, + 0, 16, 8, 16, 16, 16, 24, 16, 32, 16, 40, 16, 48, 16, 56, 16, + 64, 16, 72, 16, 80, 16, 88, 16, 96, 16, 104, 16, 112, 16, 112, 24, +112, 32, 112, 40, 112, 48, 112, 56, 112, 64, 112, 72, 112, 80, 112, 88, +112, 96, 112, 104, 112, 112, 112, 120, 112, 128, 112, 136, 104, 136, 96, 136, + 88, 136, 80, 136, 72, 136, 64, 136, 56, 136, 48, 136, 40, 136, 32, 136, + 24, 136, 16, 136, 8, 136, 0, 136, 0, 8, 8, 8, 16, 8, 24, 8, + 32, 8, 40, 8, 48, 8, 56, 8, 64, 8, 72, 8, 80, 8, 88, 8, + 96, 8, 104, 8, 112, 8, 112, 144, 104, 144, 96, 144, 88, 144, 80, 144, + 72, 144, 64, 144, 56, 144, 48, 144, 40, 144, 32, 144, 24, 144, 16, 144, + 8, 144, 0, 144, 0, 0, 8, 0, 16, 0, 24, 0, 32, 0, 40, 0, + 48, 0, 56, 0, 64, 0, 72, 0, 80, 0, 88, 0, 96, 0, 104, 0, +112, 0, 112, 152, 104, 152, 96, 152, 88, 152, 80, 152, 72, 152, 64, 152, + 56, 152, 48, 152, 40, 152, 32, 152, 24, 152, 16, 152, 8, 152, 0, 152, + 0, 0, 8, 0, 16, 0, 0, 8, 8, 8, 16, 8, 0, 32, 8, 32, + 16, 32, 0, 40, 8, 40, 16, 40, 0, 64, 8, 64, 16, 64, 0, 72, + 8, 72, 16, 72, 0, 96, 8, 96, 16, 96, 0, 104, 8, 104, 16, 104, + 0, 128, 8, 128, 16, 128, 0, 136, 8, 136, 16, 136, 24, 16, 32, 16, + 40, 16, 24, 24, 32, 24, 40, 24, 24, 48, 32, 48, 40, 48, 24, 56, + 32, 56, 40, 56, 24, 80, 32, 80, 40, 80, 24, 88, 32, 88, 40, 88, + 24, 112, 32, 112, 40, 112, 24, 120, 32, 120, 40, 120, 24, 144, 32, 144, + 40, 144, 24, 152, 32, 152, 40, 152, 48, 0, 56, 0, 64, 0, 48, 8, + 56, 8, 64, 8, 48, 32, 56, 32, 64, 32, 48, 40, 56, 40, 64, 40, + 48, 64, 56, 64, 64, 64, 48, 72, 56, 72, 64, 72, 48, 96, 56, 96, + 64, 96, 48, 104, 56, 104, 64, 104, 48, 128, 56, 128, 64, 128, 48, 136, + 56, 136, 64, 136, 72, 16, 80, 16, 88, 16, 72, 24, 80, 24, 88, 24, + 72, 48, 80, 48, 88, 48, 72, 56, 80, 56, 88, 56, 72, 80, 80, 80, + 88, 80, 72, 88, 80, 88, 88, 88, 72, 112, 80, 112, 88, 112, 72, 120, + 80, 120, 88, 120, 72, 144, 80, 144, 88, 144, 72, 152, 80, 152, 88, 152, + 96, 0, 104, 0, 112, 0, 96, 8, 104, 8, 112, 8, 96, 32, 104, 32, +112, 32, 96, 40, 104, 40, 112, 40, 96, 64, 104, 64, 112, 64, 96, 72, +104, 72, 112, 72, 96, 96, 104, 96, 112, 96, 96, 104, 104, 104, 112, 104, + 96, 128, 104, 128, 112, 128, 96, 136, 104, 136, 112, 136, 0, 16, 8, 16, + 16, 16, 0, 24, 8, 24, 16, 24, 0, 48, 8, 48, 16, 48, 0, 56, + 8, 56, 16, 56, 0, 80, 8, 80, 16, 80, 0, 88, 8, 88, 16, 88, + 0, 112, 8, 112, 16, 112, 0, 120, 8, 120, 16, 120, 0, 144, 8, 144, + 16, 144, 0, 152, 8, 152, 16, 152, 24, 0, 32, 0, 40, 0, 24, 8, + 32, 8, 40, 8, 24, 32, 32, 32, 40, 32, 24, 40, 32, 40, 40, 40, + 24, 64, 32, 64, 40, 64, 24, 72, 32, 72, 40, 72, 24, 96, 32, 96, + 40, 96, 24, 104, 32, 104, 40, 104, 24, 128, 32, 128, 40, 128, 24, 136, + 32, 136, 40, 136, 48, 16, 56, 16, 64, 16, 48, 24, 56, 24, 64, 24, + 48, 48, 56, 48, 64, 48, 48, 56, 56, 56, 64, 56, 48, 80, 56, 80, + 64, 80, 48, 88, 56, 88, 64, 88, 48, 112, 56, 112, 64, 112, 48, 120, + 56, 120, 64, 120, 48, 144, 56, 144, 64, 144, 48, 152, 56, 152, 64, 152, + 72, 0, 80, 0, 88, 0, 72, 8, 80, 8, 88, 8, 72, 32, 80, 32, + 88, 32, 72, 40, 80, 40, 88, 40, 72, 64, 80, 64, 88, 64, 72, 72, + 80, 72, 88, 72, 72, 96, 80, 96, 88, 96, 72, 104, 80, 104, 88, 104, + 72, 128, 80, 128, 88, 128, 72, 136, 80, 136, 88, 136, 96, 16, 104, 16, +112, 16, 96, 24, 104, 24, 112, 24, 96, 48, 104, 48, 112, 48, 96, 56, +104, 56, 112, 56, 96, 80, 104, 80, 112, 80, 96, 88, 104, 88, 112, 88, + 96, 112, 104, 112, 112, 112, 96, 120, 104, 120, 112, 120, 96, 144, 104, 144, +112, 144, 96, 152, 104, 152, 112, 152, 48, 152, 40, 128, 8, 16, 16, 0, +112, 112, 104, 72, 16, 144, 16, 88, 24, 144, 40, 80, 32, 64, 88, 136, + 48, 88, 32, 152, 104, 112, 16, 24, 88, 32, 104, 120, 80, 144, 96, 144, +104, 88, 40, 40, 80, 136, 16, 8, 80, 16, 104, 80, 16, 96, 88, 64, + 72, 104, 104, 128, 112, 144, 96, 88, 0, 16, 16, 136, 40, 64, 80, 104, +104, 24, 0, 56, 88, 120, 32, 16, 72, 40, 104, 32, 32, 72, 56, 152, +104, 152, 16, 16, 112, 0, 72, 8, 56, 136, 32, 88, 72, 56, 104, 144, + 80, 40, 96, 48, 72, 120, 32, 112, 32, 80, 64, 96, 104, 56, 64, 56, + 48, 32, 64, 88, 56, 8, 0, 80, 104, 16, 104, 136, 48, 112, 96, 24, + 24, 152, 32, 48, 88, 40, 0, 120, 8, 40, 0, 72, 0, 8, 112, 64, + 96, 80, 24, 80, 56, 80, 8, 24, 88, 56, 96, 64, 64, 24, 80, 128, + 80, 8, 16, 112, 88, 8, 8, 96, 24, 48, 88, 72, 48, 96, 112, 8, + 88, 144, 0, 64, 8, 104, 96, 112, 72, 88, 0, 128, 48, 0, 48, 24, + 88, 152, 64, 112, 72, 64, 72, 24, 96, 152, 32, 144, 56, 56, 64, 144, + 24, 136, 48, 16, 104, 96, 72, 72, 104, 48, 64, 136, 8, 144, 56, 48, + 24, 56, 96, 56, 96, 128, 24, 0, 72, 152, 80, 80, 64, 80, 96, 0, + 40, 152, 112, 32, 72, 32, 104, 0, 48, 120, 0, 152, 112, 72, 24, 120, + 96, 40, 112, 16, 48, 64, 56, 72, 80, 24, 64, 152, 56, 96, 56, 40, + 24, 40, 80, 64, 96, 16, 48, 80, 0, 96, 88, 16, 16, 152, 32, 96, + 16, 104, 24, 96, 8, 80, 80, 120, 8, 8, 0, 88, 112, 120, 24, 32, + 96, 72, 72, 48, 104, 64, 56, 32, 0, 144, 56, 144, 0, 40, 80, 72, + 64, 8, 56, 88, 72, 16, 56, 16, 40, 88, 48, 136, 48, 128, 40, 0, + 8, 120, 24, 104, 64, 0, 80, 152, 96, 8, 16, 128, 88, 112, 64, 120, + 32, 104, 24, 16, 40, 32, 104, 8, 16, 40, 64, 32, 32, 120, 8, 136, + 88, 88, 112, 80, 0, 104, 56, 24, 16, 32, 32, 128, 32, 24, 88, 24, + 16, 48, 80, 0, 72, 80, 72, 112, 64, 48, 40, 120, 64, 64, 24, 88, + 80, 32, 112, 104, 40, 112, 48, 48, 24, 24, 64, 40, 88, 0, 32, 40, + 56, 112, 48, 40, 96, 120, 40, 8, 32, 8, 40, 72, 32, 136, 72, 144, + 0, 136, 112, 152, 80, 48, 8, 72, 0, 48, 112, 96, 104, 40, 8, 152, + 56, 64, 40, 48, 0, 32, 32, 32, 40, 56, 80, 56, 32, 0, 88, 104, + 56, 0, 88, 128, 24, 128, 72, 136, 0, 0, 0, 24, 24, 8, 8, 32, +112, 128, 48, 104, 56, 104, 88, 96, 64, 16, 80, 88, 112, 24, 16, 80, + 96, 136, 112, 136, 72, 128, 8, 112, 48, 72, 32, 56, 8, 128, 96, 32, + 48, 56, 88, 48, 16, 72, 64, 128, 40, 144, 112, 88, 80, 112, 8, 48, + 40, 96, 16, 56, 64, 72, 80, 96, 112, 56, 8, 88, 40, 136, 56, 120, + 8, 56, 112, 48, 48, 8, 16, 64, 112, 40, 40, 104, 96, 96, 24, 64, + 40, 16, 8, 0, 72, 0, 48, 144, 56, 128, 24, 72, 64, 104, 88, 80, + 40, 24, 96, 104, 8, 64, 24, 112, 16, 120, 72, 96, 0, 112, 104, 104, + 0, 0, 8, 0, 16, 0, 24, 0, 32, 0, 40, 0, 48, 0, 56, 0, + 64, 0, 72, 0, 80, 0, 88, 0, 96, 0, 104, 0, 112, 0, 0, 32, + 8, 32, 16, 32, 24, 32, 32, 32, 40, 32, 48, 32, 56, 32, 64, 32, + 72, 32, 80, 32, 88, 32, 96, 32, 104, 32, 112, 32, 0, 64, 8, 64, + 16, 64, 24, 64, 32, 64, 40, 64, 48, 64, 56, 64, 64, 64, 72, 64, + 80, 64, 88, 64, 96, 64, 104, 64, 112, 64, 0, 96, 8, 96, 16, 96, + 24, 96, 32, 96, 40, 96, 48, 96, 56, 96, 64, 96, 72, 96, 80, 96, + 88, 96, 96, 96, 104, 96, 112, 96, 0, 128, 8, 128, 16, 128, 24, 128, + 32, 128, 40, 128, 48, 128, 56, 128, 64, 128, 72, 128, 80, 128, 88, 128, + 96, 128, 104, 128, 112, 128, 0, 8, 8, 8, 16, 8, 24, 8, 32, 8, + 40, 8, 48, 8, 56, 8, 64, 8, 72, 8, 80, 8, 88, 8, 96, 8, +104, 8, 112, 8, 0, 40, 8, 40, 16, 40, 24, 40, 32, 40, 40, 40, + 48, 40, 56, 40, 64, 40, 72, 40, 80, 40, 88, 40, 96, 40, 104, 40, +112, 40, 0, 72, 8, 72, 16, 72, 24, 72, 32, 72, 40, 72, 48, 72, + 56, 72, 64, 72, 72, 72, 80, 72, 88, 72, 96, 72, 104, 72, 112, 72, + 0, 104, 8, 104, 16, 104, 24, 104, 32, 104, 40, 104, 48, 104, 56, 104, + 64, 104, 72, 104, 80, 104, 88, 104, 96, 104, 104, 104, 112, 104, 0, 136, + 8, 136, 16, 136, 24, 136, 32, 136, 40, 136, 48, 136, 56, 136, 64, 136, + 72, 136, 80, 136, 88, 136, 96, 136, 104, 136, 112, 136, 0, 16, 8, 16, + 16, 16, 24, 16, 32, 16, 40, 16, 48, 16, 56, 16, 64, 16, 72, 16, + 80, 16, 88, 16, 96, 16, 104, 16, 112, 16, 0, 48, 8, 48, 16, 48, + 24, 48, 32, 48, 40, 48, 48, 48, 56, 48, 64, 48, 72, 48, 80, 48, + 88, 48, 96, 48, 104, 48, 112, 48, 0, 80, 8, 80, 16, 80, 24, 80, + 32, 80, 40, 80, 48, 80, 56, 80, 64, 80, 72, 80, 80, 80, 88, 80, + 96, 80, 104, 80, 112, 80, 0, 112, 8, 112, 16, 112, 24, 112, 32, 112, + 40, 112, 48, 112, 56, 112, 64, 112, 72, 112, 80, 112, 88, 112, 96, 112, +104, 112, 112, 112, 0, 144, 8, 144, 16, 144, 24, 144, 32, 144, 40, 144, + 48, 144, 56, 144, 64, 144, 72, 144, 80, 144, 88, 144, 96, 144, 104, 144, +112, 144, 0, 24, 8, 24, 16, 24, 24, 24, 32, 24, 40, 24, 48, 24, + 56, 24, 64, 24, 72, 24, 80, 24, 88, 24, 96, 24, 104, 24, 112, 24, + 0, 56, 8, 56, 16, 56, 24, 56, 32, 56, 40, 56, 48, 56, 56, 56, + 64, 56, 72, 56, 80, 56, 88, 56, 96, 56, 104, 56, 112, 56, 0, 88, + 8, 88, 16, 88, 24, 88, 32, 88, 40, 88, 48, 88, 56, 88, 64, 88, + 72, 88, 80, 88, 88, 88, 96, 88, 104, 88, 112, 88, 0, 120, 8, 120, + 16, 120, 24, 120, 32, 120, 40, 120, 48, 120, 56, 120, 64, 120, 72, 120, + 80, 120, 88, 120, 96, 120, 104, 120, 112, 120, 0, 152, 8, 152, 16, 152, + 24, 152, 32, 152, 40, 152, 48, 152, 56, 152, 64, 152, 72, 152, 80, 152, + 88, 152, 96, 152, 104, 152, 112, 152, 0, 0, 8, 0, 0, 8, 16, 0, + 8, 8, 0, 16, 24, 0, 16, 8, 8, 16, 0, 24, 32, 0, 24, 8, + 16, 16, 8, 24, 0, 32, 40, 0, 32, 8, 24, 16, 16, 24, 8, 32, + 0, 40, 48, 0, 40, 8, 32, 16, 24, 24, 16, 32, 8, 40, 0, 48, + 56, 0, 48, 8, 40, 16, 32, 24, 24, 32, 16, 40, 8, 48, 0, 56, + 64, 0, 56, 8, 48, 16, 40, 24, 32, 32, 24, 40, 16, 48, 8, 56, + 72, 0, 64, 8, 56, 16, 48, 24, 40, 32, 32, 40, 24, 48, 16, 56, + 80, 0, 72, 8, 64, 16, 56, 24, 48, 32, 40, 40, 32, 48, 24, 56, + 88, 0, 80, 8, 72, 16, 64, 24, 56, 32, 48, 40, 40, 48, 32, 56, + 88, 8, 80, 16, 72, 24, 64, 32, 56, 40, 48, 48, 40, 56, 88, 16, + 80, 24, 72, 32, 64, 40, 56, 48, 48, 56, 88, 24, 80, 32, 72, 40, + 64, 48, 56, 56, 88, 32, 80, 40, 72, 48, 64, 56, 88, 40, 80, 48, + 72, 56, 88, 48, 80, 56, 88, 56, 48, 24, 48, 32, 40, 32, 40, 24, + 40, 16, 48, 16, 56, 16, 56, 24, 56, 32, 56, 40, 48, 40, 40, 40, + 32, 40, 32, 32, 32, 24, 32, 16, 32, 8, 40, 8, 48, 8, 56, 8, + 64, 8, 64, 16, 64, 24, 64, 32, 64, 40, 64, 48, 56, 48, 48, 48, + 40, 48, 32, 48, 24, 48, 24, 40, 24, 32, 24, 24, 24, 16, 24, 8, + 24, 0, 32, 0, 40, 0, 48, 0, 56, 0, 64, 0, 72, 0, 72, 8, + 72, 16, 72, 24, 72, 32, 72, 40, 72, 48, 72, 56, 64, 56, 56, 56, + 48, 56, 40, 56, 32, 56, 24, 56, 16, 56, 16, 48, 16, 40, 16, 32, + 16, 24, 16, 16, 16, 8, 16, 0, 80, 0, 80, 8, 80, 16, 80, 24, + 80, 32, 80, 40, 80, 48, 80, 56, 8, 56, 8, 48, 8, 40, 8, 32, + 8, 24, 8, 16, 8, 8, 8, 0, 88, 0, 88, 8, 88, 16, 88, 24, + 88, 32, 88, 40, 88, 48, 88, 56, 0, 56, 0, 48, 0, 40, 0, 32, + 0, 24, 0, 16, 0, 8, 0, 0, 0, 0, 8, 0, 0, 8, 8, 8, + 0, 32, 8, 32, 0, 40, 8, 40, 16, 16, 24, 16, 16, 24, 24, 24, + 16, 48, 24, 48, 16, 56, 24, 56, 32, 0, 40, 0, 32, 8, 40, 8, + 32, 32, 40, 32, 32, 40, 40, 40, 48, 16, 56, 16, 48, 24, 56, 24, + 48, 48, 56, 48, 48, 56, 56, 56, 64, 0, 72, 0, 64, 8, 72, 8, + 64, 32, 72, 32, 64, 40, 72, 40, 80, 16, 88, 16, 80, 24, 88, 24, + 80, 48, 88, 48, 80, 56, 88, 56, 0, 16, 8, 16, 0, 24, 8, 24, + 0, 48, 8, 48, 0, 56, 8, 56, 16, 0, 24, 0, 16, 8, 24, 8, + 16, 32, 24, 32, 16, 40, 24, 40, 32, 16, 40, 16, 32, 24, 40, 24, + 32, 48, 40, 48, 32, 56, 40, 56, 48, 0, 56, 0, 48, 8, 56, 8, + 48, 32, 56, 32, 48, 40, 56, 40, 64, 16, 72, 16, 64, 24, 72, 24, + 64, 48, 72, 48, 64, 56, 72, 56, 80, 0, 88, 0, 80, 8, 88, 8, + 80, 32, 88, 32, 80, 40, 88, 40, 32, 56, 16, 40, 64, 8, 40, 40, + 24, 16, 72, 40, 48, 16, 48, 8, 0, 0, 48, 40, 0, 56, 72, 32, + 56, 24, 72, 24, 40, 48, 56, 32, 8, 56, 16, 48, 56, 0, 88, 48, + 0, 40, 32, 24, 72, 16, 72, 56, 16, 56, 16, 0, 0, 48, 16, 24, + 64, 0, 72, 8, 40, 32, 48, 48, 8, 24, 80, 0, 24, 32, 32, 16, + 0, 32, 24, 40, 72, 0, 48, 32, 80, 24, 88, 16, 8, 8, 48, 24, + 80, 32, 40, 8, 88, 32, 80, 56, 64, 24, 64, 48, 24, 56, 88, 24, + 80, 48, 8, 32, 24, 24, 72, 48, 16, 16, 16, 8, 16, 32, 40, 0, + 0, 16, 56, 48, 32, 8, 64, 40, 48, 56, 8, 48, 80, 16, 88, 8, + 0, 8, 56, 8, 32, 48, 88, 40, 8, 16, 8, 40, 88, 56, 24, 0, + 40, 56, 64, 56, 64, 16, 40, 16, 32, 0, 32, 32, 32, 40, 56, 40, + 24, 8, 88, 0, 40, 24, 80, 8, 56, 16, 0, 24, 24, 48, 56, 56, + 48, 0, 64, 32, 80, 40, 8, 0, 0, 0, 8, 0, 16, 0, 24, 0, + 32, 0, 40, 0, 48, 0, 56, 0, 64, 0, 72, 0, 80, 0, 88, 0, + 0, 32, 8, 32, 16, 32, 24, 32, 32, 32, 40, 32, 48, 32, 56, 32, + 64, 32, 72, 32, 80, 32, 88, 32, 0, 8, 8, 8, 16, 8, 24, 8, + 32, 8, 40, 8, 48, 8, 56, 8, 64, 8, 72, 8, 80, 8, 88, 8, + 0, 40, 8, 40, 16, 40, 24, 40, 32, 40, 40, 40, 48, 40, 56, 40, + 64, 40, 72, 40, 80, 40, 88, 40, 0, 16, 8, 16, 16, 16, 24, 16, + 32, 16, 40, 16, 48, 16, 56, 16, 64, 16, 72, 16, 80, 16, 88, 16, + 0, 48, 8, 48, 16, 48, 24, 48, 32, 48, 40, 48, 48, 48, 56, 48, + 64, 48, 72, 48, 80, 48, 88, 48, 0, 24, 8, 24, 16, 24, 24, 24, + 32, 24, 40, 24, 48, 24, 56, 24, 64, 24, 72, 24, 80, 24, 88, 24, + 0, 56, 8, 56, 16, 56, 24, 56, 32, 56, 40, 56, 48, 56, 56, 56, + 64, 56, 72, 56, 80, 56, 88, 56, +}; diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/Changelog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/Changelog new file mode 100644 index 00000000..d0b77ae7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/Changelog @@ -0,0 +1,12 @@ +2004-01-21 Marcus Meissner + + * stv0674.c: Added che-ez! snap + +2002-12-03 Marcus Meissner + + * License changed to LGPL v2 (with Vincents agreement) + +2002-12-03 Marcus Meissner + + * Initial import of camlib driver written by + Vincent Sanders diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/Makefile-files new file mode 100644 index 00000000..ac6d099d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/Makefile-files @@ -0,0 +1,12 @@ +# -*- Makefile -*- + +EXTRA_DIST += stv0674/Protocol stv0674/Changelog + +EXTRA_LTLIBRARIES += stv0674.la + +stv0674_la_SOURCES = \ + stv0674/stv0674.c stv0674/stv0674.h \ + stv0674/library.c stv0674/library.h +stv0674_la_LDFLAGS = $(camlib_ldflags) +stv0674_la_DEPENDENCIES = $(camlib_dependencies) +stv0674_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/Protocol b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/Protocol new file mode 100644 index 00000000..faa157c1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/Protocol @@ -0,0 +1,154 @@ +This is a quick and dirty reverse engineer of the ST microelectronics STV0674 +*NOTE* this is *not* the STV0680 that is a completely separate device! + +the current web page for this device is +http://www.vvl.co.uk/products/co-processors/674/674.htm + +As is becoming increasingly more common the chip vendors are being +right pains in the bum and forcing me to reverse engineer their +protocols from snoops rather than giving me the data sheet. If your in +a position to get the datasheet for this product please please do +improve this driver! + +So far this driver has only been tested on a l'espion xtra other +cameras may need more tweaks. + +The device has a single interface with several alternate configs, +alternate 1 has 3 endpoints :bulk in, bulk out and an interrupt. + +The driver selects alternate one and uses the bulk in endpoint for +data. Several control transactions are used to control the data +available on the bulk in pipe. + + +Most transactions are associated with an image number this is a 4 +byte MSB value which appears to start at *2* ie the first image is 00 +00 00 02. + +The image "header" is a block of data which is not associated with the +jpeg data at all but contains several pieces of information, some +important bits are: + + - image length (bytes 0x47(MSB) and 0x48) + - x size (0x49 (MSB) 0x4a) + - y size (0x4b (MSB) 0x4c + + +Control transactions +-------------------- + +Ping +---- +I assume this transaction is a "ping" as the windows driver seems to +perform this transaction like a nervous twitch, its done all over for +no good reason I can see, always with the same result + +The host reads a control transaction with 1 byte URB +bRequest = 0x80 +wValue=0x0000 +wIndex=0x0000 +wLength=0x0001 + +the returned URB: +byte 0 is always 0x00 + +Get header +---------- +This obtains a block of data which contains the image "header" + +The host writes a control transaction with 6 byte buffer + +bRequest = 0x0A +wValue=0x0000 +wIndex=0x0000 +wLength=0x0006 + +the data buffer has: +bytes 0-3 are image number +bytes 4-5 are length (MSB) this is always 0x56 in the doze driver + +the client may then read the "length" bytes from the bulk in pipe + +Set Image Number +---------------- +I believe this is used to select the image for some transactions that +don't explicitly set the image number themselves +This and the following are done immediately before each image download + +The host writes a control transaction with 4 byte buffer + +bRequest = 0x03 +wValue=0x0000 +wIndex=0x0000 +wLength=0x0004 + +the data buffer has: +bytes 0-3 are image number + +Unknown +------- +This *always* follows the above + +The host reads a control transaction with 2 byte buffer +bRequest = 0x86 +wValue=0x0000 +wIndex=0x0000 +wLength=0x0004 + +the data buffer has: +byte 0 is always 0x03 +byte 0 is always 0x01 + +Image header read +----------------- +This is performed before each image is read, its just a repeat of the +header obtained with the other request but its useful here for getting +the image size, the doze driver always does it here and if you don't it +breaks ;-) + +The host writes a control transaction with 8 byte buffer + +bRequest = 0x05 +wValue=0x00ff +wIndex=0x0000 +wLength=0x0008 + +the written URB contains: +bytes 0-3 are image number +bytes 4-7 are the length of data to read (always 0x200 for the header read) + +0x200 bytes are then read from the bulk in pipe, this seems to be an +extended header? + +Image read +---------- +This is identical to the image header read above except the wValue has +changed from 0xff to 0x08. The windows driver writes a series of these +commands asking for 0x1000 bytes of data a time, larger seems to +fail... so reading blocks of 0x1000 and a fragment of smaller seems to +be the best way to go. + +The host writes a control transaction with 8 byte buffer + +bRequest = 0x05 +wValue=0x0008 +wIndex=0x0000 +wLength=0x0008 + +the written URB contains: +bytes 0-3 are image number +bytes 4-7 are the length of data to read (0x1000 or less) + +read close +---------- +This transaction is performed at the end of the image read. + +The host writes a control transaction with 4 byte buffer + +bRequest = 0x09 +wValue=0x0000 +wIndex=0x0000 +wLength=0x0004 + +the data buffer has: +bytes 0-3 are image number diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/library.c new file mode 100644 index 00000000..d668c1c0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/library.c @@ -0,0 +1,227 @@ +/* + * STV0674 Vision Camera Chipset Driver + * Copyright 2000 Adam Harrison + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include + +#include +#include + +#include "stv0674.h" +#include "library.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + + +int stv0674_ping(GPPort *port) +{ + int ret; + unsigned char reply[4]; + + ret = gp_port_usb_msg_read (port, CMDID_PING, 0, 0, (char *)reply, 1); + if (ret < GP_OK) + return ret; + + if(reply[0] != 0) + { + printf("CMDID_PING successful, but returned bad values?\n"); + return GP_ERROR_IO; + } + + return GP_OK; + +} + +int stv0674_file_count(GPPort *port, int *count) +{ + int ret; + unsigned char reply[4]; + + ret = gp_port_usb_msg_read (port, CMDID_ENUMERATE_IMAGES, 0, 0, (char *)reply, 4); + if (ret < GP_OK) + return ret; + + + *count= ((reply[3]) | (reply[2]<<8) | (reply[1]<<16) | (reply[0]<<24)); + + return GP_OK; +} + +/** + * Get image + */ +int stv0674_get_image_raw(GPPort *port, int image_no, CameraFile *file) +{ + return GP_OK; +} + +static int setval(unsigned char* where,unsigned long val) +{ + where[3]=(val & 0xff); + where[2]=((val >> 8) & 0xff); + where[1]=((val >> 16) & 0xff); + where[0]=((val >> 24) & 0xff); + return 0; +} + + +int stv0674_get_image(GPPort *port, int image_no, CameraFile *file) +{ + unsigned char header[0x200];/*block for header */ + int size; + + int whole,remain; + + int current; + + int ret; + unsigned char imagno[8]; + unsigned char reply[4]; + unsigned char * data; + + memset(imagno,0,8); + + image_no+=2; + + setval(imagno,image_no); + + + ret = gp_port_usb_msg_write (port, CMDID_SET_IMAGE, 0, 0, (char *)imagno, 4); + if (ret < GP_OK) + return ret; + + ret = gp_port_usb_msg_read (port, CMDID_IHAVENOIDEA, 0, 0, (char *)reply, 2); + if (ret < GP_OK) + return ret; + + setval(&imagno[4],0x200);/* we want 512 bytes */ + + ret = gp_port_usb_msg_write (port, + CMDID_READ_IMAGE, + READ_IMAGE_VALUE_RESET, + 0, + (char *)imagno, + 8); + if (ret < GP_OK) + return ret; + + gp_port_read(port, (char *)header, 0x200); + + size=(header[0x47]<<8) | header[0x48]; + + /*create data block */ + data=malloc(size); + if (!data) + return GP_ERROR_NO_MEMORY; + + setval(&imagno[4],0x1000);/* we want 4096 bytes */ + + whole=size / 0x1000; + remain=size % 0x1000; + + + for(current=0;current + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef LIBRARY_H +#define LIBRARY_H + +#include + +int stv0674_ping (GPPort *); +int stv0674_summary (GPPort *, char*); +int stv0674_file_count (GPPort *, int *count); +int stv0674_get_image (GPPort *, int image_no, CameraFile *file); +int stv0674_get_image_raw (GPPort *, int image_no, CameraFile *file); +int stv0674_get_image_preview (GPPort *, int image_no, CameraFile *file); + +int stv0674_capture_preview (GPPort *device, char **data, int *size); +int stv0674_capture (GPPort *port); +int stv0674_delete_all (GPPort *port); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/stv0674.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/stv0674.c new file mode 100644 index 00000000..398ed5af --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/stv0674.c @@ -0,0 +1,262 @@ +/* + * STV0674 Camera Chipset Driver + * Copyright 2002 Vincent Sanders + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "stv0674.h" +#include "library.h" + +#define GP_MODULE "stv0674" + +static const struct camera_to_usb { + char *name; + unsigned short idVendor; + unsigned short idProduct; +} camera_to_usb[] = { + /* http://www.digitaldreamco.com/shop/xtra.htm, SVGA */ + { "DigitalDream:l'espion xtra", 0x05DA, 0x1020 }, + { "Che-ez!:Splash", 0x0553, 0x1002 } + +}; + +int camera_id (CameraText *id) +{ + strcpy(id->text, "STV0674"); + + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + unsigned int i; + + for(i = 0; + i < (sizeof(camera_to_usb) / sizeof(struct camera_to_usb)); + i++) + { + + memset(&a, 0, sizeof(a)); + strcpy(a.model, camera_to_usb[i].name); + + a.port = GP_PORT_USB; + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.operations = GP_OPERATION_CAPTURE_IMAGE | + GP_OPERATION_CAPTURE_PREVIEW; + a.file_operations = GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + + a.usb_vendor = camera_to_usb[i].idVendor; + a.usb_product = camera_to_usb[i].idProduct; + + gp_abilities_list_append(list, a); + } + + return (GP_OK); +} + + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + int count, result; + + + result = stv0674_file_count(camera->port, &count); + if (result < GP_OK) + { + GP_DEBUG("file count returned %d\n",result); + return result; + } + if (count > 10000) { /* arbitrary limit to avoid resource exhaustion by malicious USB */ + GP_DEBUG("count %d is over 10000 arbitrary limit. Increase if needed.\n", count); + return GP_ERROR_CORRUPTED_DATA; + } + + GP_DEBUG("count is %x\n",count); + + gp_list_populate(list, "image%03i.jpg", count); + + return (GP_OK); +} + + + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + int image_no, result; + + image_no = gp_filesystem_number(camera->fs, folder, filename, context); + if(image_no < 0) + return image_no; + + gp_file_set_mime_type (file, GP_MIME_JPEG); + switch (type) { + case GP_FILE_TYPE_NORMAL: + result = stv0674_get_image (camera->port, image_no, file); + break; + case GP_FILE_TYPE_RAW: + result = stv0674_get_image_raw (camera->port, image_no, file); + break; + case GP_FILE_TYPE_PREVIEW: + result = stv0674_get_image_preview (camera->port, image_no, file); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + return result; +} + +static int camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) +{ + int result; + int count,oldcount; + + if (type != GP_CAPTURE_IMAGE) + return (GP_ERROR_NOT_SUPPORTED); + result = stv0674_file_count(camera->port,&oldcount); + + result = stv0674_capture(camera->port); + if (result < 0) + return result; + + /* Just added a new picture... */ + result = stv0674_file_count(camera->port,&count); + if (count == oldcount) + return GP_ERROR; /* unclear what went wrong ... hmm */ + strcpy(path->folder,"/"); + sprintf(path->name,"image%03i.jpg",count); + + /* Tell the filesystem about it */ + result = gp_filesystem_append (camera->fs, path->folder, path->name, + context); + if (result < 0) + return (result); + + return (GP_OK); +} + +static int camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + char *data; + int size, result; + + result = stv0674_capture_preview (camera->port, &data, &size); + if (result < 0) + return result; + gp_file_set_mime_type (file, GP_MIME_JPEG); + return gp_file_set_data_and_size (file, data, size); +} + +static int camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + stv0674_summary(camera->port,summary->text); + return (GP_OK); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _("STV0674\n" + "Vincent Sanders \n" + "Driver for cameras using the STV0674 processor ASIC.\n" + "Protocol reverse engineered using SnoopyPro\n")); + + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char* folder, void *data, + GPContext *context) +{ + Camera *camera = data; + if (strcmp (folder, "/")) + return (GP_ERROR_DIRECTORY_NOT_FOUND); + return stv0674_delete_all(camera->port); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .delete_all_func = delete_all_func +}; + +int camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + int ret; + + /* First, set up all the function pointers */ + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->capture = camera_capture; + + gp_port_get_settings(camera->port, &settings); + switch(camera->port->type) { + case GP_PORT_USB: + /* Modify the default settings the core parsed */ + settings.usb.altsetting=1;/* we need to use interface 0 setting 1 */ + settings.usb.inep=2; + settings.usb.intep=3; + settings.usb.outep=5; + + /* Use the defaults the core parsed */ + break; + default: + return (GP_ERROR_UNKNOWN_PORT); + break; + } + + ret = gp_port_set_settings (camera->port, settings); + if (ret != GP_OK) { + gp_context_error (context, _("Could not apply USB settings")); + return ret; + } + /* Set up the filesystem */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + /* test camera */ + return stv0674_ping(camera->port); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/stv0674.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/stv0674.h new file mode 100644 index 00000000..bbc55dac --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0674/stv0674.h @@ -0,0 +1,37 @@ +/* + * STV0674 Camera Chipset Driver + * Copyright 2000 Vince Sanders + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef STV0674_H +#define STV0674_H + +#define CMDID_SET_IMAGE 0x3 +#define CMDID_READ_IMAGE 0x5 +#define READ_IMAGE_VALUE_RESET 0xff +#define READ_IMAGE_VALUE_READ 0x08 + +#define CMDID_FINISH_READ 0x9 + +#define CMDID_PING 0x80 + +#define CMDID_ENUMERATE_IMAGES 0x83 + +#define CMDID_IHAVENOIDEA 0x86 + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/680_commands_and_communication_sdk.pdf.gz b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/680_commands_and_communication_sdk.pdf.gz new file mode 100644 index 00000000..9e815136 Binary files /dev/null and b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/680_commands_and_communication_sdk.pdf.gz differ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/CREDITS b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/CREDITS new file mode 100644 index 00000000..7b817bb1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/CREDITS @@ -0,0 +1,21 @@ +Adam Harrison +Protocol reverse engineering +Driver implementation + +Eric Brombaugh +Pattern recognition based bayer->RGB demosaic routine + +Thanks to: + +Realtime Control, Inc for making their CommLite serial port analysis +software freely available. + +Eric Brombaugh, for his kind permission to redistribute his bayer->RGB +implementation under the GPL. + +The authors of the barbiecam camlib, whose code was relied on heavily +in writing this driver. + +Steve Miller (of STM) for providing the usb command information. + +Kevin Sisson for his pencam/pensnap work, especially for the image filters. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/ChangeLog new file mode 100644 index 00000000..014c1ed0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/ChangeLog @@ -0,0 +1,127 @@ +2008-09-20 Marcus Meissner + + * stv0680.c: Added storage information function. + +2005-02-01 Marcus Meissner + + * stv0680.c: Added Creative Go Mini as reported. + +2004-09-03 Hubert Figuiere + + * stv0680.c: Added DigitalDream l'espion XS + +2004-01-21 Marcus Meissner + + * stv0680.c: Added Che-ez! BABE and SPYZ as reported + by shoota oohara - a4door at sourceforge. + +2003-02-28 Marcus Meissner + + * stv0680.c: For USB consider this driver production ready. + For serial still experimental, since no testresults appeared :/ + +2002-11-17 Marcus Meissner + + * stv0680.c: Fixed long*/int* cast and some warnings. + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-09-06 Marcus Meissner + + * stv680.c: Added Yahoo!Cam. + +2002-08-27 Christophe Barbe + + * stv680: Added "Aiptek Palm Cam Trio" IDs + reported by Klaus-M. Klingsporn + +2002-08-02 Marcus Meissner + + * stv680.c: Added Konica e-Mini id. + +2002-07-30 Lutz Müller + + * library.c: Change "!= GP_OK" to "< GP_OK". + +2001-07-08 Marcus Meissner + + * stv680.c: Added SpyPen Cleo, Axys, Xion, Memo, as reported + by Andrei Boros . + +2001-04-12 Marcus Meissner + + * stv0680.c: Use GP_MIME_PNM instead of (wrong) image/pnm. + +2001-04-10 Marcus Meissner + + * stv0680.c: Some of those cameras (especially the generic ones + and the Argus DC-1500) are USB and serial at the same time. + +2001-04-10 Marcus Meissner + + * stv0680.c: Set the speed on camera_init for serial cameras. + +2001-04-05 Marcus Meissner + + * library.[ch], stv680.c: Store image data directly in CameraFile, + instead of passing it around unnecessary. (we should add progress + for serial too). + +2001-01-23 Kurt Garloff + + * library.c, bayer.c: Enhanced the light + processing even more. + +2001-01-23 Kurt Garloff + + * sharpen.c: Fixed off by one error. + +2001-01-15 Kurt Garloff + + * demosaic_sharpen.c: + Add demosaicing which uses adaptive weighted interpolation + rather than the simplistic bilinear one. + Results in sharper and less noisy pictures. + Further reduce traditional sharpening. + +2001-01-09 Dan Fandrich + + * sharpen.c: Added include of string.h to get memcpy prototype + +2001-01-08 Marcus Meissner + + * bayer.c, saturate.c, library.c: + + From Kurt Garloff: + + * The sharpening seems to be overdone a bit -- for darker images, + the noise gets amplified too much and the picutre gets too + snowy/grainy. + * The colour correction sometimes also seems to go too far and + a compormise between the original and the processed image would + seem best. + + +2001-01-06 Marcus Meissner + + * bayer.c, library.c: Integrated a speedup of the + preview debayer/scaler routine from Kurt Garloff. + +2001-12-29 Marcus Meissner + + * saturate.[ch]: Merged from pencam-0.50, which got it from GIMP. + Adapted to not use global variables. + * library.c: Use saturation filter. + + (Done by Kevin, merged by me) + +2001-12-21 Lutz Müller + + * stv0680.c (camera_capture): Tell the filesystem about the new + file. + +2001-12-05 Lutz Müller + + * library.c: Fix includes diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/LICENCE b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/LICENCE new file mode 100644 index 00000000..68f1b30b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/LICENCE @@ -0,0 +1,280 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright © 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/Makefile-files new file mode 100644 index 00000000..bd0cba04 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/Makefile-files @@ -0,0 +1,19 @@ +# -*- Makefile -*- + +EXTRA_DIST += \ + stv0680/CREDITS stv0680/ChangeLog stv0680/LICENCE \ + stv0680/README.pdf \ + stv0680/680_commands_and_communication_sdk.pdf.gz + +EXTRA_LTLIBRARIES += stv0680.la + +stv0680_la_SOURCES = \ + stv0680/stv0680.c stv0680/stv0680.h \ + stv0680/library.c stv0680/library.h \ + stv0680/bayer.c stv0680/bayer.h \ + stv0680/sharpen.c stv0680/sharpen.h \ + stv0680/saturate.c stv0680/saturate.h \ + stv0680/demosaic_sharpen.h stv0680/demosaic_sharpen.c +stv0680_la_LDFLAGS = $(camlib_ldflags) +stv0680_la_DEPENDENCIES = $(camlib_dependencies) +stv0680_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/README.pdf b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/README.pdf new file mode 100644 index 00000000..d129a256 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/README.pdf @@ -0,0 +1,6 @@ +The documentation found in the PDF file is part of the STV 0680 SDK. + +It was provided by STM without NDA for 'use by interested developers' and +contains the important parts of the USB command set. + +It was provided 'as is' and does not imply any official support from STM. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/bayer.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/bayer.c new file mode 100644 index 00000000..4db006db --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/bayer.c @@ -0,0 +1,201 @@ +/* + * STV0680 Vision Camera Chipset Driver + * Copyright 2000 Adam Harrison + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include +#include +#include +#include "bayer.h" + +/* Enhanced by Kurt Garloff to do scaling and debayering at the same time. */ +void bayer_unshuffle_preview(int w, int h, int scale, unsigned char *raw, unsigned char *output) +{ + + int x, y, nx, ny; + int colour; int rgb[3]; + int nw = w >> scale; + int nh = h >> scale; + int incr = 1<>1) + ((x&1)? 0: (w>>1))]; + } + } + output[0] = rgb[0]>>(2*scale-2); + output[1] = rgb[1]>>(2*scale-1); + output[2] = rgb[2]>>(2*scale-2); + } + } +} + +/****** gamma correction from trans[], plus hardcoded white balance */ +/* Thanks to Alexander Schwartx for this code. + Gamma correction (trans[] values generated by (pow((i-17)/239, GAMMA)*254) + where GAMMA=0.5x, 11) multiple colours to max, + * which would be a loss of information. + * - The gamma mainly determines how fast values increase after ZERO1. + * Influence on the highlights is small; therefore the description + * with amplifiaction and gamma seems not very appropriate; a better + * correction function would allow to influence the slope for small + * and for large values indepentently without incurring loss of + * accuracy/information. It should not be hard to construct such a + * thing. (Splines or Bézier or Triginometric/Hyperbolic functions + * could be used, e.g.) + * - The below parameters have been found by lots of experiments with + * pictures taken at different light levels. They're optimized for + * my PenCam (and my screens), of course. No theory behind this; + * I don't have insight into the physics of the imaging sensor. + * CCDs are linear, basically; but higher order effects may play + * a role as well as the electronics that controls the shutter + * and the one doing the readout. + */ +static const rgbgamma gampar[6][3] = { + { { 1.02, 0.56 }, { 1.00, 0.61 }, { 0.99, 0.65 } }, /* cold */ + { { 1.01, 0.56 }, { 1.00, 0.58 }, { 1.00, 0.61 } }, /* coldish */ + { { 1.00, 0.55 }, { 1.00, 0.57 }, { 1.00, 0.59 } }, /* mid */ + { { 1.00, 0.55 }, { 1.00, 0.56 }, { 1.01, 0.55 } }, /* warmish */ + { { 1.01, 0.56 }, { 0.99, 0.57 }, { 1.03, 0.50 } }, /* warm */ + { { 1.03, 0.52 }, { 0.97, 0.57 }, { 1.04, 0.49 } } /* warm bright */ +}; + +void light_enhance(int vw, int vh, int coarse, int fine, + unsigned char avg_pix, unsigned char *output) +{ + unsigned long int i; + int lt=3; /* 3 is auto */ + /* float wb[3][3]; */ + unsigned char trans[3][256]; + unsigned char col; + /* int tmp1, tmp2, tmp3, whitex=20, whitey=20, j, k; */ + + double brightness = 1.00; /* FIXME: configurable? */ + + /* fprintf(stderr, "(FineExp=%i CoarseExp=%i => filter=", fine, coarse); */ + +#if 0 + if (fine >= (coarse<<1)) { + lt = 0; + /* fprintf(stderr, "natural)\n"); */ + } else if (((fine<<1) < coarse) && (coarse < 400)) { + lt = 2; + /* fprintf(stderr, "incandescent)\n"); */ + } else { + lt = 1; + /* fprintf(stderr, "fluorescent)\n"); */ + } + wb[0][0] = 1.08 * x; wb[0][1] = 1.00 * x; wb[0][2] = 0.95 * x; /* natural */ + wb[1][0] = 1.00 * x; wb[1][1] = 1.00 * x; wb[1][2] = 1.00 * x; /* fluorescent */ + wb[2][0] = 0.90 * x; wb[2][1] = 1.00 * x; wb[2][2] = 1.11 * x; /* incandescent */ +#else + if (fine > coarse) { + lt = 0; /* fprintf (stderr, "cold)\n"); */ + } else if (coarse < 100) { + lt = 1; /* fprintf (stderr, "coldish)\n"); */ + } else if (coarse < 200) { + lt = 2; /* fprintf (stderr, "mid)\n"); */ + } else if (coarse < 400) { + lt = 3; /* fprintf (stderr, "warmish)\n"); */ + } else if (avg_pix < 94) { + lt = 4; /* fprintf (stderr, "warm)\n"); */ + } else { + lt = 5; /* fprintf (stderr, "warm, bright)\n"); */ + } +#endif + +#if 0 + /* find white pixel */ + for (j=0;j=160)) { + whitex = k; whitey = j; + break; + } + } + } +#endif + + for (col = 0; col < 3; col++) { + double y; + const rgbgamma *gp = gampar[lt] + col; + for(i=0; i<256; ++i) { + if (i < ZERO0) + y = 0; + else if (i < ZERO1) + y = 1; + else + y = brightness * gp->ampl * (2 + pow((i-ZERO1)/((double)254-ZERO1),gp->gamma) * 253.5); + if (y > 255.0) + y = 255.0; + trans[col][i] = (unsigned char) y; + } + } + + for (i=0;i<(vw*vh*3);i+=3) + { + int r,g,b; + r = *(output+i); + g = *(output+i+1); + b = *(output+i+2); + /* this (adjusting white) isn't quite right yet, so I turned it off */ + if ( 0 && (abs(r-g) < 8) && + (abs(r-b) < 8) && + (abs(b-g) < 8)) { + int v = trans[1][(r+b+g+1)/3]; + *(output+i) = (unsigned char) (v); + *(output+i+1) = (unsigned char) (v); + *(output+i+2) = (unsigned char) (v); + fprintf(stderr,"Adjusting white\n"); + } else { /* this is OK */ + *(output+i) = trans[0][r]; + *(output+i+1) = trans[1][g]; + *(output+i+2) = trans[2][b]; + } + } /* for */ + +} /* light_enhance */ + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/bayer.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/bayer.h new file mode 100644 index 00000000..a3cdf951 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/bayer.h @@ -0,0 +1,30 @@ +/* + * STV0680 Vision Camera Chipset Driver + * Copyright 2000 Adam Harrison + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef BAYER_H +#define BAYER_H + +void bayer_unshuffle_preview(int w, int h, int scale, + unsigned char *raw, unsigned char *output); +void light_enhance(int vw, int vh, int coarse, int fine, + unsigned char avg_pix_val, unsigned char *output); + +#endif + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/demosaic_sharpen.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/demosaic_sharpen.c new file mode 100644 index 00000000..c7f00a0f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/demosaic_sharpen.c @@ -0,0 +1,351 @@ +/** demosaic_sharpen.c + * when demosaicing the unbayered image, + * don't just use bilinear interpolation, but weigh + * the to be guessed values according to the differences + * of the known value. + * Of course, smaller differences mean higher weights. + * + * Copyright Kurt Garloff , 2002/01/15 + * License: GNU GPL + * + * Note: Interpolation techniques more intelligent than + * bilinear inerpolation have been subject to investigations. + * Those two links came from Jérôme Fenal: + * http://ise.stanford.edu/class/psych221/99/dixiedog/vision.htm + * http://www-ise.stanford.edu/~tingchen/main.htm + * + * From the evaluation, it seems that we should strive to do something like + * "Linear Interpolation with Laplacian 2nd order color correction terms I". + * + * Here; I went my own way. + * The reason for this is twofold: + * - Avoid all possible patent issues + * (If I would be American, I would probably want to patent this algo) + * - Be conservative: By using an interpolation method (with weights bound + * below 1), we avoid the risk to get artefacts, like e.g. seen in the + * smooth hue algorithms, as our interpolated values are always in between + * those from the neighbours, just a little closer to the ones we think + * fits better. + * + * Our algorithm: + * Trying to predict the known value based on the next neighbours with + * the same colour component will yield weights. To achieve this: + * - Measure the difference |dv| of the known colour component + * - Choose a function f(|dv|) which prefers points with smaller |dv| + * - Function should be monotonic and ]0;1[ + * - Sum of weights must be 1, of course + * + * We choose f(|dv|) = N / (ALPHA + |dv|) + * and scale with the reciprocal total sum, so we fulfill the conditions. + * The algorithm is integer only (unless you enable DEBUG) + * and therefore suitable for FPU-less machines and/or the kernel. + * + * I've chosen ALPHA = 2 and the results look really good. + * + * ToDo: + * - A similar algorithm in HSI space might be slightly better. + * - Different weighing functions might do better + * - Do rigorous performance analysis (quality and computation cost) + * in comparison to other algos as in papers cited above. + * - There's the bilinear interpolation included for reference + * (debugging purposes). Use it or get rid of it for slightly better + * performance. + * + * I've implemented this algo here as a testbed. It's only tested for + * BAYER_TILE_GBRG_INTERLACED, though it's been designed to be general + * for all BAYERs in gphoto2. (Hence all those tables ...) + * It should be moved to the gphoto2 infrastructure to help all + * cameras, not just mine. It includes the demosaicing, so it should + * be merged with the gp_bayer_decode (or the bilinear demosaicing + * could be removed from the latter) to avoid double work. + * + * History: + * 2001-01-15, 0.90, KG, + * working for inner points (2,2)-(width-3,height-3) + * 2001-01-15, 1.00, KG, + * handle boundary points + * + */ + +#include "config.h" +#include +#include "demosaic_sharpen.h" + +/* we define bayer as + * +---> x + * | 0 1 + * v 2 3 + * y +*/ + +typedef enum { + RED = 0, GREEN = 1, BLUE = 2 +} col; + +/* Don't get confused reading this code; there's lots of + * indirection through the tables to avoid branches in the code; + * maybe I love long pipelines too much. + * If I look at the code long enough, I get confused myself. + * The boundary special cases unfortunately do introduce some extra + * branching. (KG) + */ + +/* relative postition */ +typedef struct _off { + signed char dx, dy; +} off; + +typedef enum { + NB_DIAG = 0, NB_TLRB, NB_LR, NB_TB, NB_TLRB2 +} nb_pat; +/* locations of neighbour points with the same colour */ +typedef struct _neighbours { + unsigned char num; + off nb_pts[4]; +} neighbours; + +/* possible locations */ +static const neighbours n_pos[8] = { + { /* NB_DIAG */ + 4, { + {-1,-1}, + { 1,-1}, + {-1, 1}, + { 1, 1} + } + },{ /* NB_TLRB */ + 4, { + { 0,-1}, + {-1, 0}, + { 1, 0}, + { 0, 1} + } + },{ /* NB_LR */ + 2, { + {-1, 0}, + { 1, 0}, + { 0, 0}, + { 0, 0} + } + },{ /* NB_TB */ + 2, { + { 0,-1}, + { 0, 1}, + { 0, 0}, + { 0, 0} + } + },{ /* NB_TLRB2 */ + 4, { + { 0,-2}, + {-2, 0}, + { 2, 0}, + { 0, 2}, + } + } +}; + +typedef struct _t_coeff { + unsigned char cf[4][4]; + unsigned char num; +} t_coeff; + +typedef enum { + DIAG_TO_LR = 0, DIAG_TO_TB, TLRB2_TO_DIAG, TLRB2_TO_TLRB, PATCONV_NONE +} patconv; + + +/* Transfer matrix pattern to pattern */ +static const t_coeff pat_to_pat[4] = { + { /* DIAG_TO_LR */ + { + {2, 0, 2, 0}, + {0, 2, 0, 2}, + {0, 0, 0, 0}, + {0, 0, 0, 0} + }, 2 + },{ /* DIAG_TO_TB */ + { + { 2, 2, 0, 0}, + { 0, 0, 2, 2}, + { 0, 0, 0, 0}, + { 0, 0, 0, 0}, + }, 2 + },{ /* TLRB2_TO_DIAG */ + { + {1, 1, 0, 0}, + {1, 0, 1, 0}, + {0, 1, 0, 1}, + {0, 0, 1, 1} + }, 4 + },{ /* TLRB2_TO_TLRB (trivial) */ + { + {2, 0, 0, 0}, + {0, 2, 0, 0}, + {0, 0, 2, 0}, + {0, 0, 0, 2} + }, 4 + } +}; + +static const patconv pconvmap[5][5] = { + { PATCONV_NONE, PATCONV_NONE, DIAG_TO_LR, DIAG_TO_TB, PATCONV_NONE }, + { PATCONV_NONE, PATCONV_NONE, PATCONV_NONE, PATCONV_NONE, PATCONV_NONE }, + { PATCONV_NONE, PATCONV_NONE, PATCONV_NONE, PATCONV_NONE, PATCONV_NONE }, + { PATCONV_NONE, PATCONV_NONE, PATCONV_NONE, PATCONV_NONE, PATCONV_NONE }, + { TLRB2_TO_DIAG, TLRB2_TO_TLRB, PATCONV_NONE, PATCONV_NONE, PATCONV_NONE } +}; + + +/* Next mapping: col of pixel (0,1,2 = RGB & + * index into n_pos for own, own+1, own+2 */ +typedef struct _bayer_desc { + col colour; + nb_pat idx_pts[3]; +} bayer_desc; + +/* T = Bayer Tile, P = Bayer point no + * T P */ +static const bayer_desc bayers[4][4] = { + { /* TILE_RGGB */ + { RED, {NB_TLRB2, NB_TLRB, NB_DIAG} }, + { GREEN, {NB_DIAG, NB_TB, NB_LR} }, + { GREEN, {NB_DIAG, NB_LR, NB_TB} }, + { BLUE, {NB_TLRB2, NB_DIAG, NB_TLRB} }, + },{ /* TILE_GRBG */ + { GREEN, {NB_DIAG, NB_TB, NB_LR} }, + { RED, {NB_TLRB2, NB_TLRB, NB_DIAG} }, + { BLUE, {NB_TLRB2, NB_DIAG, NB_TLRB} }, + { GREEN, {NB_DIAG, NB_LR, NB_TB} }, + },{ /* TILE_BGGR */ + { BLUE, {NB_TLRB2, NB_DIAG, NB_TLRB} }, + { GREEN, {NB_DIAG, NB_LR, NB_TB} }, + { GREEN, {NB_DIAG, NB_TB, NB_LR} }, + { RED, {NB_TLRB2, NB_TLRB, NB_DIAG} }, + },{ /* TILE_GBRG */ + { GREEN, {NB_DIAG, NB_LR, NB_TB} }, + { BLUE, {NB_TLRB2, NB_DIAG, NB_TLRB} }, + { RED, {NB_TLRB2, NB_TLRB, NB_DIAG} }, + { GREEN, {NB_DIAG, NB_TB, NB_LR} } + } +}; + +/* Use integer arithmetic. Accuracy is 10^-6, which is good enough */ +#define SHIFT 20 +static inline int weight (const unsigned char dx, const int alpha) +{ + return (1<= 0 && nx < width && ny >= 0 && ny < height) { + thisval = src_ptr[addr_off+colour]; + coeff = weight (abs ((int)colval - thisval), myalpha); + } else if (nbpts[0] == NB_TLRB2 && x > 0 && x < width-1 && y > 0 && y < height-1) { + coeff = weight (128, myalpha); /* assign some small weight */ + } + /*DPRINTF(" (%i,%i)(%p): val %i, diff %i, weight %i\n", nx, ny, src_ptr+addr_off, thisval, abs ((int)colval - thisval), coeff);*/ + predcol += thisval * coeff; + weights[nbs] = coeff; + sum_weights += coeff; + }; +#ifdef DEBUG + printf(" Coeffs:"); + for (nbs = 0; nbs < 4; nbs++) + printf (" %6.4f", (double)weights[nbs]/sum_weights); + printf (" -> pred %i\n", predcol/sum_weights); +#endif + /* Now calculate other colours */ + ncol = (colour+1)%3; + pconv = pconvmap[nbpts[0]][nbpts[1]]; + if (pconv == PATCONV_NONE) + abort (); + othcol = 0; predcol = 0; nsumw = 0; skno = 0; + /*DPRINTF(" Col %i: pat %i pconv %i\n", ncol, nbpts[1], pconv);*/ + for (nbs = 0; nbs < n_pos[nbpts[1]].num; nbs++) { + off offset = n_pos[nbpts[1]].nb_pts[nbs]; + const int nx = x + offset.dx; + const int ny = y + offset.dy; + const signed long addr_off = 3 * (offset.dx + width * offset.dy); + int eff_weight = 0; unsigned char thisval; + for (i = 0; i < 4; i++) + eff_weight += pat_to_pat[pconv].cf[nbs][i] * weights[i]; + if (nx >= 0 && nx < width && ny >= 0 && ny < height) { + thisval = src_ptr[addr_off+ncol]; + nsumw += eff_weight; + /*DPRINTF(" (%i,%i): val %i, eff_w %6.4f\n", nx, ny, thisval, (double)(eff_weight>>1)/sum_weights);*/ + othcol += thisval * eff_weight; + predcol += thisval; + } else { + skno++; + } + }; + dst_ptr[ncol] = othcol/nsumw; + /*DPRINTF( " -> val %i (bilin: %i)\n", dst_ptr[ncol], predcol/(n_pos[nbpts[1]].num-skno));*/ + /* Third colour */ + ncol = (colour+2)%3; + pconv = pconvmap[nbpts[0]][nbpts[2]]; + if (pconv == PATCONV_NONE) + abort (); + othcol = 0; predcol = 0; nsumw = 0; skno = 0; + /*DPRINTF(" Col %i: pat %i pconv %i\n", ncol, nbpts[2], pconv);*/ + for (nbs = 0; nbs < n_pos[nbpts[2]].num; nbs++) { + off offset = n_pos[nbpts[2]].nb_pts[nbs]; + const int nx = x + offset.dx; + const int ny = y + offset.dy; + const signed long addr_off = 3 * (offset.dx + width * offset.dy); + int eff_weight = 0; unsigned char thisval; + for (i = 0; i < 4; i++) + eff_weight += pat_to_pat[pconv].cf[nbs][i] * weights[i]; + if (nx >= 0 && nx < width && ny >= 0 && ny < height) { + thisval = src_ptr[addr_off+ncol]; + nsumw += eff_weight; + /*DPRINTF(" (%i,%i): val %i, eff_w %6.4f\n", nx, ny, thisval, (double)(eff_weight>>1)/sum_weights);*/ + othcol += thisval * eff_weight; + predcol += thisval; + } else { + skno++; + } + }; + dst_ptr[ncol] = othcol/nsumw; + /*DPRINTF( " -> val %i (bilin: %i)\n", dst_ptr[ncol], predcol/(n_pos[nbpts[1]].num-skno));*/ + } + } +} + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/demosaic_sharpen.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/demosaic_sharpen.h new file mode 100644 index 00000000..923a7c2f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/demosaic_sharpen.h @@ -0,0 +1,22 @@ +/** Decl of demosaic_sharpen */ +#ifndef __STV680_DEMOSAIC_SHARPEN_H +#define __STV680_DEMOSAIC_SHARPEN_H + +#ifndef __BAYER_H__ +typedef enum _BayerTile{ + BAYER_TILE_RGGB = 0, + BAYER_TILE_GRBG = 1, + BAYER_TILE_BGGR = 2, + BAYER_TILE_GBRG = 3, + BAYER_TILE_RGGB_INTERLACED = 4, /* scanline order: R1,G1,R2,G2,...,G1,B1,G2,B2,... */ + BAYER_TILE_GRBG_INTERLACED = 5, + BAYER_TILE_BGGR_INTERLACED = 6, + BAYER_TILE_GBRG_INTERLACED = 7 +} BayerTile; +#endif + +void demosaic_sharpen (const int width, const int height, + const unsigned char * const src_region, + unsigned char * const dest_region, + const int alpha, const BayerTile bt); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/library.c new file mode 100644 index 00000000..0f347faf --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/library.c @@ -0,0 +1,617 @@ +/* + * STV0680 Vision Camera Chipset Driver + * Copyright 2000 Adam Harrison + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include + +#include +#include + +#include "stv0680.h" +#include "library.h" +#include "sharpen.h" +#include "bayer.h" +#include "saturate.h" +#include "../../libgphoto2/bayer.h" +#include "demosaic_sharpen.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CMD_RETRIES 0x03 + +#define STV0680_QCIF_WIDTH 178 +#define STV0680_QCIF_HEIGHT 146 +#define STV0680_CIF_WIDTH 356 +#define STV0680_CIF_HEIGHT 292 +#define STV0680_QVGA_WIDTH 324 +#define STV0680_QVGA_HEIGHT 244 +#define STV0680_VGA_WIDTH 644 +#define STV0680_VGA_HEIGHT 484 + +static unsigned char +stv0680_checksum(const unsigned char *data, int start, int end) +{ + unsigned char sum = 0; + int i; + + for(i = start; i <= end; ++i) { + sum += data[i]; + sum &= 0xff; + } + return sum; +} + +static int stv0680_cmd(GPPort *port, unsigned char cmd, + unsigned char data1, unsigned char data2, unsigned char data3, + unsigned char *response, unsigned char response_len) +{ + unsigned char packet[] = { 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x03 }; + unsigned char rhdr[6]; + int ret; + + /* build command packet */ + packet[1] = cmd; + packet[2] = response_len; + packet[3] = data1; + packet[4] = data2; + packet[5] = data3; + packet[6] = stv0680_checksum(packet, 1, 5); + + /* write to port */ + printf("Writing packet to port\n"); + if((ret = gp_port_write(port, (char *)packet, 8)) < GP_OK) + return ret; + + printf("Reading response header\n"); + /* read response header */ + if((ret = gp_port_read(port, (char *)rhdr, 6)) != 6) + return ret; + + printf("Read response\n"); + /* read response */ + if((ret = gp_port_read(port, (char *)response, response_len)) != response_len) + return ret; + + printf("Validating packet [0x%X,0x%X,0x%X,0x%X,0x%X,0x%X]\n", + rhdr[0], rhdr[1], rhdr[2], rhdr[3], rhdr[4], rhdr[5]); + /* validate response */ + if(rhdr[0] != 0x02 || rhdr[1] != cmd || + rhdr[2] != response_len || + rhdr[3] != stv0680_checksum(response, 0, response_len - 1) || + rhdr[4] != stv0680_checksum(rhdr, 1, 3) || + rhdr[5] != 0x03) + return GP_ERROR_BAD_PARAMETERS; + + printf("Packet OK\n"); + return GP_OK; +} + +int stv0680_try_cmd(GPPort *port, unsigned char cmd, + unsigned short data, + unsigned char *response, unsigned char response_len +) { + int ret; + switch (port->type) { + case GP_PORT_USB: + /* Most significant bit set, data flows from camera->host */ + if (cmd & 0x80) + ret=gp_port_usb_msg_read(port,cmd,data,0,(char *)response,response_len); + else + ret=gp_port_usb_msg_write(port,cmd,data,0,(char *)response,response_len); + + if (ret == response_len) + return GP_OK; + return ret; + break; + case GP_PORT_SERIAL: { + int retries = CMD_RETRIES; + while(retries--) { + /* data3 was always 0 */ + switch(ret=stv0680_cmd(port,cmd,(data>>8)&0xff,data&0xff,0,response,response_len)) { + case GP_ERROR_TIMEOUT: + case GP_ERROR_BAD_PARAMETERS: + break; + default: + return ret; + } + } + } + default: + return GP_ERROR_NOT_SUPPORTED; + } + return GP_ERROR_IO; +} + +static int +stv0680_last_error(GPPort *port, struct stv680_error_info *errinf) { + int ret; + + ret = stv0680_try_cmd(port, CMDID_CLEAR_COMMS_ERROR, 0, + (void*)errinf, sizeof(*errinf)); + if (ret != GP_OK) + return ret; + return GP_OK; +} + +int stv0680_ping(GPPort *port) +{ + unsigned char pong[2]; + int ret; + + ret=stv0680_try_cmd(port, CMDID_PING, 0x55AA, pong, sizeof(pong)); + if (ret != GP_OK) + return ret; + if ((pong[0]!=0x55) || (pong[1]!=0xAA)) { + printf("CMDID_PING successful, but returned bad values?\n"); + return GP_ERROR_IO; + } + return GP_OK; +} + +int stv0680_file_count(GPPort *port, int *count) +{ + struct stv680_image_info imginfo; + int ret; + + ret = stv0680_try_cmd(port,CMDID_GET_IMAGE_INFO,0, + (void*)&imginfo,sizeof(imginfo)); + if (ret != GP_OK) + return ret; + *count = (imginfo.index[0]<<8)|imginfo.index[1]; + return GP_OK; +} + +/** + * Get image, with just bayer applied. + */ +int stv0680_get_image_raw(GPPort *port, int image_no, CameraFile *file) +{ + struct stv680_image_header imghdr; + char header[80]; + unsigned char *raw, *data; + int h,w,ret,size; + + ret = stv0680_try_cmd(port, CMDID_UPLOAD_IMAGE, image_no, + (void*)&imghdr, sizeof(imghdr)); + if(ret != GP_OK) + return ret; + + w = (imghdr.width[0] << 8) | imghdr.width[1]; + h = (imghdr.height[0] << 8) | imghdr.height[1]; + size = (imghdr.size[0] << 24) | (imghdr.size[1] << 16) | + (imghdr.size[2]<<8) | imghdr.size[3]; + raw = malloc(size); + if (!raw) + return GP_ERROR_NO_MEMORY; + if ((ret=gp_port_read(port, (char *)raw, size))<0) { + free (raw); + return ret; + } + + sprintf(header, "P6\n# gPhoto2 stv0680 image\n%d %d\n255\n", w, h); + gp_file_append(file, header, strlen(header)); + data = malloc(size * 3); + if (!data) { + free (raw); + return GP_ERROR_NO_MEMORY; + } + gp_bayer_decode(raw,w,h,data,BAYER_TILE_GBRG_INTERLACED); + free(raw); + gp_file_append(file, (char *)data, size*3); + free(data); + return GP_OK; +} + +int stv0680_get_image(GPPort *port, int image_no, CameraFile *file) +{ + struct stv680_image_header imghdr; + char header[200]; + unsigned char buf[16]; + unsigned char *raw, *tmpdata1, *tmpdata2, *data; + int h,w,ret,coarse,fine,size; + + /* Despite the documentation saying so, CMDID_UPLOAD_IMAGE does not + * return an image_header. The first 8 byte are correct, but the + * next 8 appear strange. So we call CMDID_GET_IMAGE_HEADER before. + */ + ret = stv0680_try_cmd(port, CMDID_GET_IMAGE_HEADER, image_no, + (void*)&imghdr, sizeof(imghdr)); + if(ret != GP_OK) + return ret; + ret = stv0680_try_cmd(port, CMDID_UPLOAD_IMAGE, image_no, + (void*)buf, sizeof(buf)); + if(ret != GP_OK) + return ret; + w = (imghdr.width[0] << 8) | imghdr.width[1]; + h = (imghdr.height[0] << 8) | imghdr.height[1]; + size = (imghdr.size[0] << 24) | (imghdr.size[1] << 16) | + (imghdr.size[2]<<8) | imghdr.size[3]; + fine = (imghdr.fine_exposure[0]<<8)|imghdr.fine_exposure[1]; + coarse = (imghdr.coarse_exposure[0]<<8)|imghdr.coarse_exposure[1]; + raw = malloc(size); + if (!raw) + return GP_ERROR_NO_MEMORY; + sprintf(header, "P6\n# gPhoto2 stv0680 image\n#flags %x sgain %d sclkdiv %d avgpix %d fine %d coarse %d\n%d %d\n255\n", imghdr.flags, imghdr.sensor_gain, imghdr.sensor_clkdiv, imghdr.avg_pixel_value, fine, coarse , w, h); + + gp_file_append(file, header, strlen(header)); + if ((ret=gp_port_read(port, (char *)raw, size))<0) { + free (raw); + return ret; + } + + data = malloc(size * 3); + if (!data) { + free (raw); + return GP_ERROR_NO_MEMORY; + } + tmpdata1 = malloc(size * 3); + if (!tmpdata1) { + free (raw); + free (data); + return GP_ERROR_NO_MEMORY; + } + tmpdata2 = malloc(size * 3); + if (!tmpdata2) { + free (raw); + free (data); + free (tmpdata1); + return GP_ERROR_NO_MEMORY; + } + gp_bayer_expand (raw, w, h, tmpdata1, BAYER_TILE_GBRG_INTERLACED); + light_enhance(w,h,coarse,imghdr.avg_pixel_value,fine,tmpdata1); + /* gp_bayer_interpolate (tmpdata1, w, h, BAYER_TILE_GBRG_INTERLACED); */ + stv680_hue_saturation (w, h, tmpdata1, tmpdata2 ); + demosaic_sharpen (w, h, tmpdata2, tmpdata1, 2, BAYER_TILE_GBRG_INTERLACED); + sharpen (w, h, tmpdata1, data, 16); + free(tmpdata2); + free(tmpdata1); + free(raw); + gp_file_append(file, (char *)data, 3*size); + free(data); + return GP_OK; +} + +int stv0680_get_image_preview(GPPort *port, int image_no, CameraFile *file) +{ + struct stv680_image_header imghdr; + char header[64]; + unsigned char *raw, *data; + int h,w,rh,rw,scale,rsize,size; + int ret; + + switch (port->type) { + case GP_PORT_USB: + if ((ret = stv0680_try_cmd(port, CMDID_UPLOAD_IMAGE, + image_no, (void*)&imghdr, sizeof(imghdr)) < 0)) { + return ret; + } + rw = (imghdr.width[0] << 8) | imghdr.width[1]; + rh = (imghdr.height[0] << 8) | imghdr.height[1]; + rsize = (imghdr.size[0] << 24) | (imghdr.size[1] << 16) | + (imghdr.size[2]<<8) | imghdr.size[3]; + scale = (rw>>8)+1; + break; + default: + case GP_PORT_SERIAL: + ret = stv0680_try_cmd(port, CMDID_UPLOAD_THUMBNAIL, image_no, + (void*)&imghdr, sizeof(imghdr)); + if(ret != GP_OK) + return ret; + rw = (imghdr.width[0] << 8) | imghdr.width[1]; + rh = (imghdr.height[0] << 8) | imghdr.height[1]; + rsize = (imghdr.size[0] << 24) | (imghdr.size[1] << 16) | + (imghdr.size[2]<<8) | imghdr.size[3]; + scale = 0; + break; + } + raw = calloc(1, rsize); + if (!raw) return GP_ERROR_NO_MEMORY; + if ((ret=gp_port_read(port, (char *)raw, rsize))<0) { + free(raw); + return ret; + } + w = rw >> scale; + h = rh >> scale; + size = w * h; + + sprintf(header, "P6\n# gPhoto2 stv0680 image\n%d %d\n255\n", w, h); + gp_file_append(file, header, strlen(header)); + data = calloc(1,size * 3); + + if (!scale) + gp_bayer_decode(raw, rw, rh, data, BAYER_TILE_GBRG_INTERLACED); + else + bayer_unshuffle_preview(rw, rh, scale, raw, data); + free(raw); + gp_file_append(file, (char *)data, size*3); + free(data); + return GP_OK; +} + +int stv0680_capture(GPPort *port) +{ + int ret; + struct stv680_error_info errinf; + + ret = stv0680_try_cmd(port, CMDID_GRAB_IMAGE, GRAB_UPDATE_INDEX|GRAB_USE_CAMERA_INDEX, NULL, 0); + if (ret!=GP_OK) + return ret; + /* wait until it is done */ + do { + ret = stv0680_last_error(port, &errinf); + if (ret != GP_OK) + return ret; + if (errinf.error == CAMERR_BAD_EXPOSURE) { + gp_port_set_error(port,_("Bad exposure (not enough light probably)")); + return GP_ERROR; + } + if (errinf.error != CAMERR_BUSY) + fprintf(stderr,"stv680_capture: error was %d.%d\n",errinf.error,errinf.info); + } while (errinf.error == CAMERR_BUSY); + return GP_OK; +} + +#if 0 +/* this somehow terminates after some images. timeouts due to low exposure? + * I haven't found out yet. But this would be the right way to do it. + */ +int stv0680_capture_preview(GPPort *port, char **data, int *size) +{ + struct stv680_image_header imghdr; + struct stv680_image_info imginfo; + struct stv680_error_info errinf; + char header[64]; + unsigned char *raw, *bayerpre; + int fine,coarse,h,w,ret; + + ret = stv0680_last_error(port, &errinf); + if (ret != GP_OK) + return ret; + + ret = stv0680_try_cmd(port, CMDID_GRAB_IMAGE, GRAB_USE_CAMERA_INDEX, NULL,0); + if(ret != GP_OK) + return ret; + do { + ret = stv0680_try_cmd(port, CMDID_CLEAR_COMMS_ERROR, 0, (void*)&errinf, sizeof(errinf)); + if (ret != GP_OK) + return ret; + if (errinf.error == CAMERR_BAD_EXPOSURE) { + gp_port_set_error(port,_("Bad exposure (not enough light probably)")); + return GP_ERROR; + } + if (errinf.error != CAMERR_BUSY) + fprintf(stderr,"stv680_capture: error was %d.%d\n",errinf.error,errinf.info); + } while (errinf.error == CAMERR_BUSY); + +#if 0 + fprintf(stderr,"image flag %x\n",imghdr.flags); + fprintf(stderr,"sensor gain %d\n",imghdr.sensor_gain); + fprintf(stderr,"sensor clkdiv %d\n",imghdr.sensor_clkdiv); + fprintf(stderr,"avg pixel value %d\n",imghdr.avg_pixel_value); +#endif + ret = stv0680_try_cmd(port, CMDID_GET_IMAGE_INFO, 0, (void*)&imginfo, sizeof(imginfo)); + if (ret!=GP_OK) + return ret; + ret = stv0680_try_cmd(port, CMDID_UPLOAD_IMAGE, (imginfo.index[0]<<8)|imginfo.index[1], (void*)&imghdr, sizeof(imghdr)); + if(ret != GP_OK) + return ret; + fine = (imghdr.fine_exposure[0]<<8)|imghdr.fine_exposure[1]; + coarse = (imghdr.coarse_exposure[0]<<8)|imghdr.coarse_exposure[1]; + w = (imghdr.width[0] << 8) | imghdr.width[1]; + h = (imghdr.height[0] << 8) | imghdr.height[1]; + *size = (imghdr.size[0] << 24) | (imghdr.size[1] << 16) | + (imghdr.size[2]<<8) | imghdr.size[3]; + + raw = malloc(*size); + if ((ret=gp_port_read(port, raw, *size))<0) + return ret; + + sprintf(header, "P6\n# gPhoto2 stv0680 image\n%d %d\n255\n", w, h); + *data = malloc(((*size) * 3) + strlen(header)); + strcpy(*data, header); + bayerpre = malloc(((*size)*3)); + gp_bayer_expand (raw, w, h, bayerpre, BAYER_TILE_GBRG_INTERLACED); + light_enhance(w,h,coarse,fine,imghdr.avg_pixel_value,bayerpre); + /* gp_bayer_interpolate (bayerpre, w, h, BAYER_TILE_GBRG_INTERLACED); */ + demosaic_sharpen (w, h, bayerpre, *data + strlen(header), 2, BAYER_TILE_GBRG_INTERLACED); + /* sharpen (w, h, bayerpre,*data + strlen(header), 20); */ + free(bayerpre); + free(raw); + *size *= 3; + *size += strlen(header); + return GP_OK; +} +#endif + +int stv0680_capture_preview(GPPort *port, char **data, int *size) +{ + char header[64]; + struct stv680_camera_info caminfo; + unsigned char *raw,*bayerpre; + int xsize,h,w,i; + int ret; + struct capmode { + int mask,w,h,mode; + } capmodes[4] = { + { 1, STV0680_CIF_WIDTH, STV0680_CIF_HEIGHT, 0x000 }, + { 2, STV0680_VGA_WIDTH, STV0680_VGA_HEIGHT, 0x100 }, + { 4, STV0680_QCIF_WIDTH, STV0680_QCIF_HEIGHT, 0x200 }, + { 8, STV0680_QVGA_WIDTH, STV0680_QVGA_HEIGHT, 0x300 }, + }; + + /* Get Camera Information */ + if ((ret = stv0680_try_cmd(port, CMDID_GET_CAMERA_INFO, 0, + (void*)&caminfo, sizeof(caminfo)) < 0)) + return ret; + + /* serial cameras don't have video... Too slow. */ + if (!(caminfo.hardware_config & HWCONFIG_HAS_VIDEO)) + return GP_ERROR_NOT_SUPPORTED; + + /* Look for the first supported mode, with decreasing size */ + for (i=0;i<4;i++) + if (caminfo.capabilities & capmodes[i].mask) + break; + if (i==4) { + fprintf(stderr,"Neither CIF, QCIF, QVGA nor VGA supported?\n"); + return GP_ERROR; + } + w = capmodes[i].w; + h = capmodes[i].h; + + xsize = (w+2)*(h+2); + + /* Send parameter according to mode */ + ret = stv0680_try_cmd(port,CMDID_START_VIDEO,capmodes[i].mode,NULL,0x0); + + if (ret!=GP_OK) + return ret; + + *size= xsize; + raw = malloc(*size); + switch(gp_port_read(port, (char *)raw, *size)) { + case GP_ERROR_TIMEOUT: + printf("read timeout\n"); + break; + case GP_ERROR: + printf("IO error\n"); + break; + default:break; + } + if ((ret = stv0680_try_cmd(port, CMDID_STOP_VIDEO, 0, NULL, 0)!=GP_OK)) { + free (raw); + return ret; + } + sprintf(header, "P6\n# gPhoto2 stv0680 image\n%d %d\n255\n", w, h); + *data = malloc((*size * 3) + strlen(header)); + strcpy(*data, header); + bayerpre = malloc(((*size)*3)); + /* no light enhancement here, we do not get the exposure values? */ + gp_bayer_decode (raw, w, h, bayerpre, BAYER_TILE_GBRG_INTERLACED); + demosaic_sharpen (w, h, bayerpre, (unsigned char *)*data + strlen(header), 2, BAYER_TILE_GBRG_INTERLACED); + /* sharpen (w, h, bayerpre,*data + strlen(header), 20); */ + free(raw); + free(bayerpre); + *size *= 3; + *size += strlen(header); + return GP_OK; +} + + +int stv0680_delete_all(GPPort *port) { + return stv0680_try_cmd(port,CMDID_SET_IMAGE_INDEX,0,NULL,0); +} + +int stv0680_summary(GPPort *port, char *txt) +{ + struct stv680_camera_info caminfo; + struct stv680_image_info imginfo; + int ret; + + strcpy(txt,_("Information on STV0680-based camera:\n")); + /* Get Camera Information */ + if ((ret = stv0680_try_cmd(port, CMDID_GET_CAMERA_INFO, + 0, (void*)&caminfo, sizeof(caminfo)) < 0)) + return ret; + sprintf(txt+strlen(txt),_("Firmware Revision: %d.%d\n"), + caminfo.firmware_revision[0], + caminfo.firmware_revision[1] + ); + sprintf(txt+strlen(txt),_("ASIC Revision: %d.%d\n"), + caminfo.asic_revision[0], + caminfo.asic_revision[1] + ); + sprintf(txt+strlen(txt),_("Sensor ID: %d.%d\n"), + caminfo.sensor_id[0], + caminfo.sensor_id[1] + ); + /* HWCONFIG_COMMSLINK_MASK ... not really needed, the user knows, he + * plugged it in. */ + sprintf(txt+strlen(txt),_("Camera is configured for lights flickering by %dHz.\n"), + (caminfo.hardware_config & HWCONFIG_FLICKERFREQ_60HZ)?60:50 + ); + sprintf(txt+strlen(txt),_("Memory in camera: %d Mbit.\n"), + (caminfo.hardware_config & HWCONFIG_MEMSIZE_16MBIT)?16:64 + ); + if (caminfo.hardware_config & HWCONFIG_HAS_THUMBNAILS) + strcat(txt,_("Camera supports Thumbnails.\n")); + if (caminfo.hardware_config & HWCONFIG_HAS_VIDEO) + strcat(txt,_("Camera supports Video.\n")); + /* HWCONFIG_STARTUP_COMPLETED ... Would the camera even answer if not ? */ + if (caminfo.hardware_config & HWCONFIG_IS_MONOCHROME) + strcat(txt,_("Camera pictures are monochrome.\n")); + if (caminfo.hardware_config & HWCONFIG_MEM_FITTED) /* Is this useful? */ + strcat(txt,_("Camera has memory.\n")); + + strcat(txt,_("Camera supports videoformats: ")); + if (caminfo.capabilities & CAP_CIF) strcat(txt,"CIF "); + if (caminfo.capabilities & CAP_VGA) strcat(txt,"VGA "); + if (caminfo.capabilities & CAP_QCIF) strcat(txt,"QCIF "); + if (caminfo.capabilities & CAP_QVGA) strcat(txt,"QVGA "); + strcat(txt,"\n"); + sprintf(txt+strlen(txt),_("Vendor ID: %02x%02x\n"), + caminfo.vendor_id[0], + caminfo.vendor_id[1] + ); + sprintf(txt+strlen(txt),_("Product ID: %02x%02x\n"), + caminfo.product_id[0], + caminfo.product_id[1] + ); + if ((ret = stv0680_try_cmd(port, CMDID_GET_IMAGE_INFO, 0, + (void*)&imginfo, sizeof(imginfo))!=GP_OK)) + return ret; + sprintf(txt+strlen(txt),_("Number of Images: %d\n"), + (imginfo.index[0]<<8)|imginfo.index[1] + ); + sprintf(txt+strlen(txt),_("Maximum number of Images: %d\n"), + (imginfo.maximages[0]<<8)|imginfo.maximages[1] + ); + sprintf(txt+strlen(txt),_("Image width: %d\n"), + (imginfo.width[0]<<8)|imginfo.width[1] + ); + sprintf(txt+strlen(txt),_("Image height: %d\n"), + (imginfo.height[0]<<8)|imginfo.height[1] + ); + sprintf(txt+strlen(txt),_("Image size: %d\n"), + (imginfo.size[0]<<24)|(imginfo.size[1]<<16)|(imginfo.size[2]<<8)| + imginfo.size[3] + ); + sprintf(txt+strlen(txt),_("Thumbnail width: %d\n"),imginfo.thumb_width); + sprintf(txt+strlen(txt),_("Thumbnail height: %d\n"),imginfo.thumb_height); + sprintf(txt+strlen(txt),_("Thumbnail size: %d\n"), + (imginfo.thumb_size[0]<<8)|imginfo.thumb_size[1] + ); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/library.h new file mode 100644 index 00000000..a785e371 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/library.h @@ -0,0 +1,37 @@ +/* + * STV0680 Vision Camera Chipset Driver + * Copyright 2000 Adam Harrison + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef LIBRARY_H +#define LIBRARY_H + +#include + +int stv0680_ping (GPPort *); +int stv0680_summary (GPPort *, char*); +int stv0680_file_count (GPPort *, int *count); +int stv0680_get_image (GPPort *, int image_no, CameraFile *file); +int stv0680_get_image_raw (GPPort *, int image_no, CameraFile *file); +int stv0680_get_image_preview (GPPort *, int image_no, CameraFile *file); + +int stv0680_capture_preview (GPPort *device, char **data, int *size); +int stv0680_capture (GPPort *port); +int stv0680_delete_all (GPPort *port); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/saturate.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/saturate.c new file mode 100644 index 00000000..b1546004 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/saturate.c @@ -0,0 +1,302 @@ +/* The GIMP -- an image manipulation program + * Copyright 1995 Spencer Kimball and Peter Mattis + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * Simplified and modified by Kevin Sisson for use + * in the pencam program, December, 2001 + * + * Integrated into gphoto2 by Marcus Meissner , Dec 2001 + */ + +#include +#include "saturate.h" + +/* FIXME: should be variable, and user configurable. Which is problematic in + * gphoto2 :/ */ +#define HUE_DATA 40 +#define LIGHTNESS_DATA 40 +#define SATURATION_DATA 40 + +static const int default_colors[6][3] = +{ + { 255, 0, 0 }, + { 255, 255, 0 }, + { 0, 255, 0 }, + { 0, 255, 255 }, + { 0, 0, 255 }, + { 255, 0, 255 } +}; + + +/********************************* + * color conversion routines * + *********************************/ + +static void +gimp_rgb_to_hls (int *red, int *green, int *blue) +{ + int r, g, b; + double h, l, s; + int min, max; + int delta; + + r = *red; + g = *green; + b = *blue; + + if (r > g) + { + max = MAX (r, b); + min = MIN (g, b); + } + else + { + max = MAX (g, b); + min = MIN (r, b); + } + + l = (max + min) / 2.0; + + if (max == min) + { + s = 0.0; + h = 0.0; + } + else + { + delta = (max - min); + + if (l < 128) + s = 255 * (double) delta / (double) (max + min); + else + s = 255 * (double) delta / (double) (511 - max - min); + + if (r == max) + h = (g - b) / (double) delta; + else if (g == max) + h = 2 + (b - r) / (double) delta; + else + h = 4 + (r - g) / (double) delta; + + h = h * 42.5; + + if (h < 0) + h += 255; + else if (h > 255) + h -= 255; + } + + *red = h; + *green = l; + *blue = s; +} + +static int gimp_hls_value (double n1, double n2, double hue) +{ + double value; + + if (hue > 255) + hue -= 255; + else if (hue < 0) + hue += 255; + if (hue < 42.5) + value = n1 + (n2 - n1) * (hue / 42.5); + else if (hue < 127.5) + value = n2; + else if (hue < 170) + value = n1 + (n2 - n1) * ((170 - hue) / 42.5); + else + value = n1; + + return (int) (value * 255); +} + +static void gimp_hls_to_rgb (int *hue, int *lightness, int *saturation) +{ + double h, l, s; + double m1, m2; + + h = *hue; + l = *lightness; + s = *saturation; + + if (s == 0) + { + /* achromatic case */ + *hue = l; + *lightness = l; + *saturation = l; + } + else + { + if (l < 128) + m2 = (l * (255 + s)) / 65025.0; + else + m2 = (l + s - (l * s) / 255.0) / 255.0; + + m1 = (l / 127.5) - m2; + + /* chromatic case */ + *hue = gimp_hls_value (m1, m2, h + 85); + *lightness = gimp_hls_value (m1, m2, h); + *saturation = gimp_hls_value (m1, m2, h - 85); + } +} + + +/* hue saturation machinery */ + +static void hue_saturation_initialize (HueSaturationDialog *hsd) +{ + int i; + + for (i = 0; i < 7; i++) + { + hsd->hue[i] = 0.0; + hsd->lightness[i] = 0.0; + hsd->saturation[i] = (double) (hsd->saturation_data)/2; + } +} + +static void hue_saturation_calculate_transfers (HueSaturationDialog *hsd) +{ + int value; + int hue; + int i; + + /* Calculate transfers */ + for (hue = 0; hue < 6; hue++) + for (i = 0; i < 256; i++) + { + value = (hsd->hue[0] + hsd->hue[hue + 1]) * 255.0 / 360.0; + if ((i + value) < 0) + hsd->hue_transfer[hue][i] = 255 + (i + value); + else if ((i + value) > 255) + hsd->hue_transfer[hue][i] = i + value - 255; + else + hsd->hue_transfer[hue][i] = i + value; + + /* Lightness */ + value = (hsd->lightness[0] + hsd->lightness[hue + 1]) * 127.0 / 100.0; + value = CLAMP (value, -255, 255); + if (value < 0) + hsd->lightness_transfer[hue][i] = (unsigned char) ((i * (255 + value)) / 255); + else + hsd->lightness_transfer[hue][i] = (unsigned char) (i + ((255 - i) * value) / 255); + + /* Saturation */ + value = (hsd->saturation[0] + hsd->saturation[hue + 1]) * 255.0 / 100.0; + value = CLAMP (value, -255, 255); + + hsd->saturation_transfer[hue][i] = CLAMP ((i * (255 + value)) / 255, 0, 255); + } +} + +static void hue_saturation_update (HueSaturationDialog *hsd) +{ + int i; + int rgb[3]; + + hue_saturation_calculate_transfers (hsd); + + for (i = 0; i < 6; i++) + { + rgb[RED_PIX] = default_colors[i][RED_PIX]; + rgb[GREEN_PIX] = default_colors[i][GREEN_PIX]; + rgb[BLUE_PIX] = default_colors[i][BLUE_PIX]; + + gimp_rgb_to_hls (rgb, rgb + 1, rgb + 2); + + rgb[RED_PIX] = hsd->hue_transfer[i][rgb[RED_PIX]]; + rgb[GREEN_PIX] = hsd->lightness_transfer[i][rgb[GREEN_PIX]]; + rgb[BLUE_PIX] = hsd->saturation_transfer[i][rgb[BLUE_PIX]]; + + gimp_hls_to_rgb (rgb, rgb + 1, rgb + 2); + + } +} + +/******************************** */ +void stv680_hue_saturation( + int width, int height, unsigned char *srcPR, unsigned char *destPR +) { + unsigned char *src, *s; + unsigned char *dest, *d; + int w, h; + int r, g, b; + int hue; + + /* the hue-saturation tool dialog */ + HueSaturationDialog hsd; + + memset(&hsd, 0, sizeof(hsd)); + + hsd.saturation_data = SATURATION_DATA; + hsd.lightness_data = LIGHTNESS_DATA; + hsd.hue_data = HUE_DATA; + + hue_saturation_initialize(&hsd); + hue_saturation_update(&hsd); + + /* Set the transfer arrays (for speed) */ + h = height; + src = srcPR; + dest = destPR; + + while (h--) + { + w = width; + s = src; + d = dest; + while (w--) + { + r = s[RED_PIX]; + g = s[GREEN_PIX]; + b = s[BLUE_PIX]; + + gimp_rgb_to_hls (&r, &g, &b); + + if (r < 43) + hue = 0; + else if (r < 85) + hue = 1; + else if (r < 128) + hue = 2; + else if (r < 171) + hue = 3; + else if (r < 213) + hue = 4; + else + hue = 5; + + r = hsd.hue_transfer[hue][r]; + g = hsd.lightness_transfer[hue][g]; + b = hsd.saturation_transfer[hue][b]; + + gimp_hls_to_rgb (&r, &g, &b); + + d[RED_PIX] = r; + d[GREEN_PIX] = g; + d[BLUE_PIX] = b; + + s += 3; /* bytes/pixel = 3 */ + d += 3; + } + src += 3*width; + dest += 3*width; + } +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/saturate.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/saturate.h new file mode 100644 index 00000000..5c2f2d7d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/saturate.h @@ -0,0 +1,67 @@ +#ifndef _SATURATE_H +#define _SATURATE_H +/* The GIMP -- an image manipulation program + * Copyright 1995 Spencer Kimball and Peter Mattis + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define RED_PIX 0 +#define GREEN_PIX 1 +#define BLUE_PIX 2 + +#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) + +#ifndef MAX +# define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif +#ifndef MIN +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + + +typedef enum +{ + ALL_HUES, + RED_HUES, + YELLOW_HUES, + GREEN_HUES, + CYAN_HUES, + BLUE_HUES, + MAGENTA_HUES +} HueRange; + +typedef struct _HueSaturationDialog HueSaturationDialog; + +struct _HueSaturationDialog +{ + int hue_data; + int lightness_data; + int saturation_data; + + double hue[7]; + double lightness[7]; + double saturation[7]; + + HueRange hue_partition; + + int hue_transfer[6][256]; + int lightness_transfer[6][256]; + int saturation_transfer[6][256]; +}; + +extern void stv680_hue_saturation( int width, int height, unsigned char *srcPR, unsigned char *destPR); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/sharpen.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/sharpen.c new file mode 100644 index 00000000..02317f03 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/sharpen.c @@ -0,0 +1,216 @@ +/* + * GIMP CVS: "|Id: sharpen.c,v 1.23.2.1 2001/01/12 13:15:10 neo Exp |" + * + * Sharpen filters for The GIMP -- an image manipulation program + * + * Copyright 1997-1998 Michael Sweet (mike@easysw.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * Contents: + * + * sharpen() - Sharpen an image using a median filter. + * rgb_filter() - Sharpen RGB pixels. + * + * Revision History: + * + * See GIMP ChangeLog + */ + +#include +#include + +#include "sharpen.h" + +#define new(ctype, ccount) calloc(ccount, sizeof(ctype)) + +static void +compute_luts (int sharpen_percent, int *pos_lut, int *neg_lut ) +{ + int i; /* Looping var */ + int fact; /* 1 - sharpness */ + + fact = 100 - sharpen_percent; + if (fact < 1) + fact = 1; + + for (i = 0; i < 256; i ++) + { + pos_lut[i] = (800 * i) / fact; + neg_lut[i] = (4 + pos_lut[i] - (i << 3)) >> 3; + }; +} + +/** 'rgb_filter()' - Sharpen RGB pixels. **/ + +static void rgb_filter (int width, /* I - Width of line in pixels */ + int *pos_lut, + int *neg_lut, + unsigned char *src, /* I - Source line */ + unsigned char *dst, /* O - Destination line */ + long int *neg0, /* I - Top negative coefficient line */ + long int *neg1, /* I - Middle negative coefficient line */ + long int *neg2) /* I - Bottom negative coefficient line */ +{ + long int pixel; /* New pixel value */ + + *dst++ = *src++; + *dst++ = *src++; + *dst++ = *src++; + width -= 2; + + while (width > 0) + { + pixel = (pos_lut[*src++] - neg0[-3] - neg0[0] - neg0[3] - + neg1[-3] - neg1[3] - + neg2[-3] - neg2[0] - neg2[3]); + pixel = (pixel + 4) >> 3; + if (pixel < 0) + *dst++ = 0; + else if (pixel < 255) + *dst++ = pixel; + else + *dst++ = 255; + + pixel = (pos_lut[*src++] - neg0[-2] - neg0[1] - neg0[4] - + neg1[-2] - neg1[4] - + neg2[-2] - neg2[1] - neg2[4]); + pixel = (pixel + 4) >> 3; + if (pixel < 0) + *dst++ = 0; + else if (pixel < 255) + *dst++ = pixel; + else + *dst++ = 255; + + pixel = (pos_lut[*src++] - neg0[-1] - neg0[2] - neg0[5] - + neg1[-1] - neg1[5] - + neg2[-1] - neg2[2] - neg2[5]); + pixel = (pixel + 4) >> 3; + if (pixel < 0) + *dst++ = 0; + else if (pixel < 255) + *dst++ = pixel; + else + *dst++ = 255; + + neg0 += 3; + neg1 += 3; + neg2 += 3; + width --; + }; + + *dst++ = *src++; + *dst++ = *src++; + *dst++ = *src++; +} + +/** 'sharpen()' - Sharpen an image using a convolution filter. **/ +void sharpen(int width, int height, + unsigned char *src_region, unsigned char *dest_region, + int sharpen_percent +) { + unsigned char *src_rows[4], /* Source pixel rows */ + *src_ptr, /* Current source pixel */ + *dst_row; /* Destination pixel row */ + long int *neg_rows[4], /* Negative coefficient rows */ + *neg_ptr; /* Current negative coefficient */ + int i, /* Looping vars */ + y, /* Current location in image */ + row, /* Current row in src_rows */ + count, /* Current number of filled src_rows */ + pitch; /* Byte width of the image */ + int img_bpp=3; /* Bytes-per-pixel in image */ + int neg_lut[256]; /* Negative coefficient LUT */ + int pos_lut[256]; /* Positive coefficient LUT */ + + compute_luts (sharpen_percent,pos_lut,neg_lut); + pitch = width * img_bpp; + + for (row = 0; row < 4; row ++) + { + src_rows[row] = new (unsigned char, pitch); + neg_rows[row] = new (long int, pitch); + } + + dst_row = new (unsigned char, pitch); + + /** Pre-load the first row for the filter... **/ + memcpy(src_rows[0], src_region, pitch); + + for (i = pitch, src_ptr = src_rows[0], neg_ptr = neg_rows[0]; + i > 0; i --, src_ptr ++, neg_ptr ++) + *neg_ptr = neg_lut[*src_ptr]; + + row = 1; + count = 1; + + /** Sharpen... **/ + + for (y = 0; y < height; y ++) + { + /** Load the next pixel row... **/ + if ((y + 1) < height) + { + /** Check to see if our src_rows[] array is overflowing yet... **/ + if (count >= 3) + count --; + + /** Grab the next row... **/ + memcpy(src_rows[row], (src_region + pitch*(y+1)), pitch); + + for (i = pitch, src_ptr = src_rows[row], neg_ptr = neg_rows[row]; + i > 0; i --, src_ptr ++, neg_ptr ++) + *neg_ptr = neg_lut[*src_ptr]; + count ++; + row = (row + 1) & 3; + } + else + { + /** No more pixels at the bottom... Drop the oldest samples... **/ + count --; + } + + /** Now sharpen pixels and save the results... **/ + + if (count == 3) + { + rgb_filter(width, pos_lut, neg_lut, + src_rows[(row + 2) & 3], dst_row, + neg_rows[(row + 1) & 3] + img_bpp, + neg_rows[(row + 2) & 3] + img_bpp, + neg_rows[(row + 3) & 3] + img_bpp); + + /** Set the row... **/ + memcpy((dest_region + pitch*y), dst_row, pitch); + } + else if (count == 2) + { + if (y == 0) /* first row */ + memcpy((dest_region), src_rows[0], pitch); + else /* last row */ + memcpy((dest_region + pitch*(y)), src_rows[(height-1)&3], pitch); + } + } /* for */ + + /** OK, we're done. Free all memory used... **/ + for (row = 0; row < 4; row ++) + { + free (src_rows[row]); + free (neg_rows[row]); + } + free (dst_row); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/sharpen.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/sharpen.h new file mode 100644 index 00000000..1a31f891 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/sharpen.h @@ -0,0 +1,7 @@ +#ifndef __STV680_SHARPEN_H +#define __STV680_SHARPEN_H +void sharpen(int width, int height, + unsigned char *src_region, unsigned char *dest_region, + int sharpen_percent +); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/stv0680.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/stv0680.c new file mode 100644 index 00000000..39229a72 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/stv0680.c @@ -0,0 +1,382 @@ +/* + * STV0680 Vision Camera Chipset Driver + * Copyright 2000 Adam Harrison + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include +#include +#include +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include "stv0680.h" +#include "library.h" + +#define GP_MODULE "stv0680" + +static const struct camera_to_usb { + char *name; + unsigned short idVendor; + unsigned short idProduct; + int serial; +} camera_to_usb[] = { + /* http://www.vvl.co.uk/products/co-processors/680/680.htm */ + { "STM:USB Dual-mode camera", 0x0553, 0x0202, 1 }, + { "STV0680", 0x0553, 0x0202, 1 }, + + /* You can search in google for them, using either: + * AAA 80 CIF + * or + * AAA 26 VGA + * It has been rebranded and rereleased dozens of times. + */ + + /* According to: http://www.bazelet.com/generic74.html */ + { "SpyPen:Axys", 0x0553, 0x0202, 0 }, + { "SpyPen:Cleo", 0x0553, 0x0202, 0 }, + { "SpyPen:Xion", 0x0553, 0x0202, 0 }, + { "SpyPen:Memo", 0x0553, 0x0202, 0 }, + + /* Tested by Priit Laes */ + { "SpyPen:Luxo", 0x0553, 0x0202, 0 }, + + /* http://www.iomagic.com/support/digitalcameras/magicimage400/magicimage400manual.htm */ + { "IOMagic:MagicImage 400", 0x0553, 0x0202, 0 }, + /* http://www.pctekonline.com/phoebsmardig.html */ + { "Phoebe:Smartcam", 0x0553, 0x0202, 0 }, + { "QuickPix:QP1", 0x0553, 0x0202, 0 }, + { "Hawking:DC120 Pocketcam", 0x0553, 0x0202, 0 }, + { "Aiptek:PenCam Trio", 0x0553, 0x0202, 0 }, + /* reported by Klaus-M. Klingsporn */ + { "Aiptek:PalmCam Trio", 0x0553, 0x0202, 0 }, + /* Made by Medion (ALDI hw reseller). Their homepage is broken, so + * no URL. This is the camera I have -Marcus. CIF */ + { "Micromaxx:Digital Camera", 0x0553, 0x0202, 0 }, + + /* http://www.digitaldreamco.com/shop/elegante.htm, VGA */ + { "DigitalDream:l'elegante", 0x0553, 0x0202, 0 }, + /* http://www.digitaldreamco.com/shop/espion.htm, CIF */ + { "DigitalDream:l'espion", 0x0553, 0x0202, 0 }, + /* http://www.digitaldreamco.com/shop/lesprit.html, CIF */ + { "DigitalDream:l'esprit", 0x0553, 0x0202, 0 }, + /* http://www.digitaldreamco.com/shop/laronde.htm, VGA */ + { "DigitalDream:la ronde", 0x0553, 0x0202, 0 }, + /* https://sf.net/tracker/index.php?func=detail&aid=1000498&group_id=8874&atid=358874 */ + { "DigitalDream:l'espion XS", 0x1183, 0x0001, 0 }, + + + /* reported by jerry white */ + { "Argus:DC-1500", 0x0553, 0x0202, 1 }, + /* reported by Philippe Libat , + * serial only. */ + { "Yahoo!Cam", 0x0 , 0x0 , 1 }, + + { "AEG:Snap 300", 0x0553, 0x0202, 0 }, + + /* ALDI (german discounter) version */ + { "Pencam:TEVION MD 9456", 0x0553, 0x0202, 0 }, + + /* http://www.umax.de/digicam/AstraPen_SL.htm. + * There is an additional 100K (CIF), 300K (VGA) tag after the name. */ + { "UMAX:AstraPen", 0x0553, 0x0202, 0 }, /* SV and SL */ + + { "Fuji:IX-1", 0x0553, 0x0202, 0 }, /* Unconfirmed */ + /* Added for the konica e-mini by Roland Marcus Rutschmann*/ + { "Konica:e-mini", 0x04c8, 0x0722, 0 }, + + { "Che-ez!:Babe", 0x0553, 0x0202, 0 }, + { "Che-ez!:SPYZ", 0x0553, 0x0202, 0 }, + + /* According to Sonic Tsunami */ + /* http://www.timlex.com/cif.html */ + { "Timlex:CP075", 0x0553, 0x0202, 1 }, + + { "Creative:Go Mini", 0x041e, 0x4007, 1 } +}; + +int camera_id (CameraText *id) +{ + strcpy(id->text, "STV0680"); + + return (GP_OK); +} + +int camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + unsigned int i; + + /* 10/11/01/cw rewritten to add cameras via array */ + + for (i = 0; i < sizeof(camera_to_usb) / sizeof(struct camera_to_usb); i++) { + + memset(&a, 0, sizeof(a)); + strcpy(a.model, camera_to_usb[i].name); + + a.port = 0; + /* serial status is experimental, usb status is testing */ + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.file_operations = GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_DELETE_ALL; + + if (camera_to_usb[i].idVendor) { + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port |= GP_PORT_USB; + a.operations |= GP_OPERATION_CAPTURE_PREVIEW; + a.usb_vendor = camera_to_usb[i].idVendor; + a.usb_product = camera_to_usb[i].idProduct; + } + if (camera_to_usb[i].serial) { + a.port |= GP_PORT_SERIAL; + a.speed[0] = 115200; + a.speed[1] = 0; + } + gp_abilities_list_append(list, a); + } + + return (GP_OK); +} + +static int file_list_func (CameraFilesystem *fs, const char *folder, + CameraList *list, void *data, GPContext *context) +{ + Camera *camera = data; + int count, result; + + result = stv0680_file_count(camera->port, &count); + if (result != GP_OK) + return result; + + gp_list_populate(list, "image%03i.pnm", count); + + return (GP_OK); +} + + + +static int get_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, void *user_data, GPContext *context) +{ + Camera *camera = user_data; + int image_no, result; + + image_no = gp_filesystem_number(camera->fs, folder, filename, context); + if(image_no < 0) + return image_no; + + gp_file_set_mime_type (file, GP_MIME_PNM); + switch (type) { + case GP_FILE_TYPE_NORMAL: + result = stv0680_get_image (camera->port, image_no, file); + break; + case GP_FILE_TYPE_RAW: + result = stv0680_get_image_raw (camera->port, image_no, file); + break; + case GP_FILE_TYPE_PREVIEW: + result = stv0680_get_image_preview (camera->port, image_no, file); + break; + default: + return (GP_ERROR_NOT_SUPPORTED); + } + return result; +} + +static int camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context) +{ + int result; + int count,oldcount; + + if (type != GP_CAPTURE_IMAGE) + return (GP_ERROR_NOT_SUPPORTED); + result = stv0680_file_count(camera->port,&oldcount); + + result = stv0680_capture(camera->port); + if (result < 0) + return result; + + /* Just added a new picture... */ + result = stv0680_file_count(camera->port,&count); + if (count == oldcount) + return GP_ERROR; /* unclear what went wrong ... hmm */ + strcpy(path->folder,"/"); + sprintf(path->name,"image%03i.pnm",count); + + /* Tell the filesystem about it */ + result = gp_filesystem_append (camera->fs, path->folder, path->name, + context); + if (result < 0) + return (result); + + return (GP_OK); +} + +static int camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + char *data; + int size, result; + + result = stv0680_capture_preview (camera->port, &data, &size); + if (result < 0) + return result; + + gp_file_set_mime_type (file, GP_MIME_PNM); + gp_file_set_data_and_size (file, data, size); + return (GP_OK); +} + +static int camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + stv0680_summary(camera->port,summary->text); + return (GP_OK); +} + +static int camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _("STV0680\n" + "Adam Harrison \n" + "Driver for cameras using the STV0680 processor ASIC.\n" + "Protocol reverse engineered using CommLite Beta 5\n" + "Carsten Weinholz \n" + "Extended for Aiptek PenCam and other STM USB Dual-mode cameras.")); + + return (GP_OK); +} + +static int +delete_all_func (CameraFilesystem *fs, const char* folder, void *data, + GPContext *context) +{ + Camera *camera = data; + if (strcmp (folder, "/")) + return (GP_ERROR_DIRECTORY_NOT_FOUND); + return stv0680_delete_all(camera->port); +} + +static int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **sinfos, + int *nrofsinfos, + void *data, GPContext *context +) { + Camera *camera = (Camera*)data; + GPPort *port = camera->port; + struct stv680_camera_info caminfo; + struct stv680_image_info imginfo; + int ret; + CameraStorageInformation *sinfo; + + /* Get Camera Information */ + if ((ret = stv0680_try_cmd(port, CMDID_GET_CAMERA_INFO, + 0, (void*)&caminfo, sizeof(caminfo)) < 0)) + return ret; + + sinfo = malloc(sizeof(CameraStorageInformation)); + if (!sinfo) return GP_ERROR_NO_MEMORY; + + *sinfos = sinfo; + *nrofsinfos = 1; + + sinfo->fields = GP_STORAGEINFO_BASE; + strcpy(sinfo->basedir, "/"); + + sinfo->fields |= GP_STORAGEINFO_ACCESS; + sinfo->access = GP_STORAGEINFO_AC_READONLY_WITH_DELETE; + sinfo->fields |= GP_STORAGEINFO_STORAGETYPE; + sinfo->type = GP_STORAGEINFO_ST_FIXED_RAM; + sinfo->fields |= GP_STORAGEINFO_FILESYSTEMTYPE; + sinfo->fstype = GP_STORAGEINFO_FST_GENERICFLAT; + + sinfo->fields |= GP_STORAGEINFO_MAXCAPACITY; + if (caminfo.hardware_config & HWCONFIG_MEMSIZE_16MBIT) + sinfo->capacitykbytes = 16*1024/8; + else + sinfo->capacitykbytes = 64*1024/8; + + if ((ret = stv0680_try_cmd(port, CMDID_GET_IMAGE_INFO, 0, + (void*)&imginfo, sizeof(imginfo))!=GP_OK)) + return ret; + + sinfo->fields |= GP_STORAGEINFO_FREESPACEIMAGES; + sinfo->freeimages = + ((imginfo.maximages[0]<<8)|imginfo.maximages[1]) - + ((imginfo.index[0]<<8)|imginfo.index[1]); + return GP_OK; +} + + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .delete_all_func = delete_all_func, + .storage_info_func = storage_info_func +}; + +int camera_init (Camera *camera, GPContext *context) +{ + GPPortSettings settings; + + /* First, set up all the function pointers */ + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->capture = camera_capture; + + gp_port_get_settings(camera->port, &settings); + switch(camera->port->type) { + case GP_PORT_SERIAL: + gp_port_set_timeout(camera->port, 1000); + settings.serial.speed = 115200; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + break; + case GP_PORT_USB: + /* Use the defaults the core parsed */ + break; + default: + return (GP_ERROR_UNKNOWN_PORT); + break; + } + gp_port_set_settings(camera->port, settings); + + /* Set up the filesystem */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + /* test camera */ + return stv0680_ping(camera->port); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/stv0680.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/stv0680.h new file mode 100644 index 00000000..86a39627 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/stv0680/stv0680.h @@ -0,0 +1,174 @@ +/* + * STV0680 Vision Camera Chipset Driver + * Copyright 2000 Adam Harrison + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef STV0680_H +#define STV0680_H + +#define CMDID_CLEAR_COMMS_ERROR 0x80 +struct stv680_error_info { + unsigned char error; +#define CAMERR_OK 0 +#define CAMERR_BUSY 1 +#define CAMERR_TIMEOUT 2 +#define CAMERR_V2W_ERROR 3 +#define CAMERR_COMMS_ERROR 4 +#define CAMERR_BAD_EXPOSURE 5 +#define CAMERR_BAD_INDEX 6 +#define CAMERR_CAMERA_FULL 7 +#define CAMERR_BAD_COMMAND 8 +#define CAMERR_BAD_PARAM 9 +#define CAMERR_BAD_DATALEN 10 +#define CAMERR_TASK_FAILED 11 +#define CAMERR_FLASH_PROGRAM_FAILED 12 +#define CAMERR_BAD_ADDRESS 13 +#define CAMERR_BAD_PAGE 14 +#define CAMERR_EXISTING_IMAGE_SMALLER 15 +#define CAMERR_COMMAND_NOT_ALLOWED 16 +#define CAMERR_NO_SENSOR_DETECTED 17 +#define CAMERR_COLOUR_MATRIX_UNAVAILABLE 18 + unsigned char info; +}; + +#define CMDID_PING 0x88 + +#define CMDID_GET_CAMERA_INFO 0x85 +struct stv680_camera_info { + unsigned char firmware_revision[2]; + unsigned char asic_revision[2]; + unsigned char sensor_id[2]; + unsigned char hardware_config; + +#define HWCONFIG_COMMSLINK_MASK 0x01 +#define HWCONFIG_COMMSLINK_USB 0x00 +#define HWCONFIG_COMMSLINK_SERIAL 0x01 + +#define HWCONFIG_FLICKERFREQ_MASK 0x02 +#define HWCONFIG_FLICKERFREQ_50HZ 0x00 +#define HWCONFIG_FLICKERFREQ_60HZ 0x02 + +#define HWCONFIG_MEMSIZE_MASK 0x04 +#define HWCONFIG_MEMSIZE_64MBIT 0x00 +#define HWCONFIG_MEMSIZE_16MBIT 0x04 + +#define HWCONFIG_HAS_THUMBNAILS 0x08 +#define HWCONFIG_HAS_VIDEO 0x10 +#define HWCONFIG_STARTUP_COMPLETED 0x20 +#define HWCONFIG_IS_MONOCHROME 0x40 +#define HWCONFIG_MEM_FITTED 0x80 + + unsigned char capabilities; +#define CAP_CIF 1 +#define CAP_VGA 2 +#define CAP_QCIF 4 +#define CAP_QVGA 8 + + unsigned char vendor_id[2]; + unsigned char product_id[2]; + + unsigned char reserved[4]; + +}; + +#define CMDID_GET_CAMERA_MODE 0x87 +struct stv680_camera_mode { + unsigned char format; +#define FORMAT_CIF 0 +#define FORMAT_VGA 1 +#define FORMAT_QCIF 2 +#define FORMAT_QVGA 3 + unsigned char reserved[7]; +}; + +#define CMDID_GET_IMAGE_INFO 0x86 +struct stv680_image_info { + unsigned char index[2]; + unsigned char maximages[2]; + unsigned char width[2]; + unsigned char height[2]; + unsigned char size[4]; + unsigned char thumb_width; + unsigned char thumb_height; + unsigned char thumb_size[2]; +}; + +#define CMDID_UPLOAD_IMAGE 0x83 +#define CMDID_UPLOAD_THUMBNAIL 0x84 +#define CMDID_GET_IMAGE_HEADER 0x8f +struct stv680_image_header { /* For all upload and get image header */ + unsigned char size[4]; + unsigned char width[2]; + unsigned char height[2]; + unsigned char fine_exposure[2]; + unsigned char coarse_exposure[2]; + unsigned char sensor_gain; + unsigned char sensor_clkdiv; + unsigned char avg_pixel_value; + unsigned char flags; +#define IMAGE_IS_VALID 0x01 +#define IMAGE_FROM_STREAM 0x04 +#define IMAGE_FIRST_OF_MOVIE 0x10 +}; + +#define CMDID_GRAB_UPLOAD 0x89 +struct stv680_image_header_small { + unsigned char size[4]; + unsigned char width[2]; + unsigned char height[2]; +}; + +#define CMDID_GRAB_IMAGE 0x05 +#define GRAB_UPDATE_INDEX 0x1000 +#define GRAB_TO_LAST_LOCATION 0x2000 +#define GRAB_SUPPRESS_BEEP 0x4000 +#define GRAB_USE_CAMERA_INDEX 0x8000 + +#define CMDID_SET_IMAGE_INDEX 0x06 +#define CMDID_START_VIDEO 0x09 +#define CMDID_STOP_VIDEO 0x0a + +#define CMDID_GET_USER_INFO 0x8d +struct stv680_user_info { + unsigned char buttonmask; + unsigned char camera_mode; +#define CAMERA_MODE_START 1 +#define CAMERA_MODE_VIDEO 2 +#define CAMERA_MODE_BUSY 4 +#define CAMERA_MODE_IDLE 8 + unsigned char index[2]; + unsigned char maximages[2]; + unsigned char current_format; + unsigned char reserved; +}; + +#define STV0680_QCIF_WIDTH 178 +#define STV0680_QCIF_HEIGHT 146 +#define STV0680_CIF_WIDTH 356 +#define STV0680_CIF_HEIGHT 292 +#define STV0680_QVGA_WIDTH 324 +#define STV0680_QVGA_HEIGHT 244 +#define STV0680_VGA_WIDTH 644 +#define STV0680_VGA_HEIGHT 484 + +int stv0680_try_cmd(GPPort *port, unsigned char cmd, + unsigned short data, + unsigned char *response, unsigned char response_len); + + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/ChangeLog new file mode 100644 index 00000000..d275ab08 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/ChangeLog @@ -0,0 +1,44 @@ +2005-01-21 Hubert Figuiere + + * library.c: Added Lifetec LT 5995 + +2004-01-07 Hubert Figuiere + + * library.c: Added Maginon SX-410z (reported by style(at)wtal.de) + +2003-06-02 Dominik Kuhlen + * Fixed endianness problems (for BE platforms) + +2003-02-09 Dominik Kuhlen + + * Thumbnailhandling for MD6000 (and MD9700) fixed + * Changelog: Date fixed :-) (2002-01-15 -> 2003-01-15) + +2003-01-15 Marcus Meissner + + * Added Medion MD 6000 (same as JD 4100z3) and Jenoptik JD 4100z3 + (verified usb ids by downloading driver). + +2003-01-10 Marcus Meissner + + * Added Concord EyeQ 4330 (has same id as Traveller 410z), reported by + Christian Boltz . + +2002-10-03 Lutz Müller + + * Makefile.am: -I$(top_builddir)/libgphoto2 + +2002-09-12 Marcus Meissner + + * Added Medion 9700 as submitted by Arjan van de Ven + +2002-07-05 Lutz Müller + + Checked into CVS. + + * library.c: Fixed compile warnings, fixed file_list_func. + +2002-06-23 Dominik Kuhlen + + * sx330z.[c,h]: started. + * Experimental: Please send reports. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/Makefile-files new file mode 100644 index 00000000..462ba0ec --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/Makefile-files @@ -0,0 +1,9 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += sx330z.la +EXTRA_DIST += sx330z/ChangeLog + +sx330z_la_SOURCES = sx330z/library.c sx330z/sx330z.c sx330z/sx330z.h +sx330z_la_LDFLAGS = $(camlib_ldflags) +sx330z_la_DEPENDENCIES = $(camlib_dependencies) +sx330z_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/library.c new file mode 100644 index 00000000..bea83e2b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/library.c @@ -0,0 +1,304 @@ +/* library.c * + * Copyright 2002 Dominik Kuhlen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include +#include + +#include +#include + +#include "sx330z.h" + + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + + + +#define GP_MODULE "sx330z" + + +#define TIMEOUT 2000 + +#define SX330Z_VERSION "0.1" +#define SX330Z_LAST_MOD "02.07.2002" + + +#define CR(res) { int r=(res);if (r<0) return (r);} + +/* + * supported cameras : + * - Traveler SX330z (Aldi cam) + * - Other SX330z / SX3300z Models ? + * please report if you have others that are working + */ + +static const struct +{ + char *model; + int usb_vendor; + int usb_product; +} models[]= { + {"Traveler:SX330z",USB_VENDOR_TRAVELER,USB_PRODUCT_SX330Z}, + {"Maginon:SX330z",USB_VENDOR_TRAVELER,USB_PRODUCT_SX330Z}, + {"Skanhex:SX-330z",USB_VENDOR_TRAVELER,USB_PRODUCT_SX330Z}, + {"Medion:MD 9700",USB_VENDOR_TRAVELER,USB_PRODUCT_MD9700}, + {"Jenoptik:JD-3300z3",USB_VENDOR_TRAVELER,USB_PRODUCT_SX330Z}, + + {"Traveler:SX410z",USB_VENDOR_TRAVELER,USB_PRODUCT_SX410Z}, + {"Concord:EyeQ 4330",USB_VENDOR_TRAVELER,USB_PRODUCT_SX410Z}, + {"Jenoptik:JD-4100z3",USB_VENDOR_TRAVELER,USB_PRODUCT_SX410Z}, + {"Medion:MD 6000",USB_VENDOR_TRAVELER,USB_PRODUCT_SX410Z}, + {"Maginon SX-410z",USB_VENDOR_TRAVELER,USB_PRODUCT_SX410Z}, + {"Lifetec:LT 5995",USB_VENDOR_TRAVELER,USB_PRODUCT_SX410Z}, + {NULL,0,0} +}; + + +/* + * camera abilities + */ +int +camera_abilities (CameraAbilitiesList *list) +{ + int i; + CameraAbilities a; + for(i=0;models[i].model;i++) + { + memset(&a,0,sizeof(CameraAbilities)); + strcpy(a.model,models[i].model); + a.usb_vendor = models[i].usb_vendor; + a.usb_product = models[i].usb_product; + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_PREVIEW| + GP_FILE_OPERATION_DELETE| + GP_FILE_OPERATION_EXIF; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + CR(gp_abilities_list_append(list,a)); + } /* all models... */ + return(GP_OK); +} /* camera_abilities */ + + + + +/* + * file list function + */ +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + CameraFileInfo info; + int32_t tpages=0; + int pcnt,ecnt; /* pagecounter, entrycounter*/ + struct traveler_toc_page toc; + int id; + + /* get number of TOC pages */ + CR (sx330z_get_toc_num_pages (camera, context, &tpages)); + /* Read the TOC pages */ + id = gp_context_progress_start (context, tpages, _("Getting " + "information on %i files..."), tpages); + for (pcnt = 0; pcnt < tpages; pcnt++) { + CR (sx330z_get_toc_page (camera, context, &toc, pcnt)); + for (ecnt = 0; ecnt < toc.numEntries; ecnt++) { + char fn[20]; + + info.audio.fields = GP_FILE_INFO_NONE; + info.preview.fields = GP_FILE_INFO_TYPE; + strcpy (info.preview.type, GP_MIME_EXIF); + info.file.fields = GP_FILE_INFO_SIZE | + GP_FILE_INFO_TYPE | + GP_FILE_INFO_PERMISSIONS; + info.file.size = toc.entries[ecnt].size; + info.file.permissions = GP_FILE_PERM_READ | + GP_FILE_PERM_DELETE; + strcpy (info.file.type,GP_MIME_JPEG); + sprintf (fn, "%.12s", toc.entries[ecnt].name); + + /* + * Append directly to the filesystem instead of to + * the list, because we have additional information. + */ + gp_filesystem_append (camera->fs, folder, fn, context); + gp_filesystem_set_info_noop (camera->fs, folder, fn, + info, context); + } + gp_context_progress_update (context, id, pcnt); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) + return (GP_ERROR_CANCEL); + } + + gp_context_progress_stop (context, id); + + return (GP_OK); +} + + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *user_data, + GPContext *context) +{ + Camera *camera = user_data; + char *data = NULL; + unsigned long int size = 0; + + switch (type) { + case GP_FILE_TYPE_EXIF: + gp_file_set_mime_type (file, GP_MIME_RAW); + CR (sx330z_get_data (camera, context, filename, &data, + &size, SX_THUMBNAIL)); + break; + case GP_FILE_TYPE_RAW: + case GP_FILE_TYPE_NORMAL: + gp_file_set_mime_type (file, GP_MIME_JPEG); + CR (sx330z_get_data (camera, context, filename, &data, + &size, SX_IMAGE)); + break; + case GP_FILE_TYPE_PREVIEW: + default: + return (GP_ERROR_NOT_SUPPORTED); + } + gp_file_set_data_and_size (file, data, size); + + return (GP_OK); +} + + +/* + * Delete file function (working ..) + */ +static int +del_file_func(CameraFilesystem *fs,const char *folder,const char *filename, + void *user_data,GPContext *context) +{ + Camera *camera=user_data; + /*int id;*/ + if (strcmp(folder,"/")) return(GP_ERROR_DIRECTORY_NOT_FOUND); + GP_DEBUG("Deleting : %s",filename); + return(sx330z_delete_file(camera,context,filename)); +} /* delete file func */ + + +/* + * Camera ID + */ +int +camera_id(CameraText *id) +{ + strcpy(id->text,"Traveler SX330z"); + return (GP_OK); +} /* camera id */ + + + + +/* + * Camera about + */ +static int +camera_about(Camera *camera,CameraText *about,GPContext *context) +{ + strcpy(about->text,_("(Traveler) SX330z Library (And other Aldi-cams).\n" + "Even other Vendors like Jenoptik, Skanhex, Maginon should work.\n" + "Please send bugreports and comments.\n" + "Dominik Kuhlen \n")); + return(GP_OK); +} /* camera about */ + + +/* + * camera_exit + * release allocated memory + */ +int +camera_exit(Camera *camera, GPContext *context) +{ + if (camera->pl) + free(camera->pl); + return(GP_OK); +} + + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = del_file_func +}; + +/* + * OK, lets get serious ! + */ +int +camera_init(Camera *camera,GPContext *context) +{ + GPPortSettings settings; + CameraAbilities abilities; + /* try to contact the camera ...*/ + /*CR(gp_port_get_settings(camera->port,&settings));*/ + + camera->functions->about=camera_about; + camera->functions->exit=camera_exit; + gp_port_get_settings(camera->port,&settings); + if (camera->port->type!=GP_PORT_USB) + { + gp_context_error(context,_("sx330z is USB only")); + return(GP_ERROR_UNKNOWN_PORT); + } +/* GP_DEBUG("camera_init : in = %x",camera->port->settings.usb.inep);*/ + CR(gp_port_set_settings(camera->port,settings)); + CR(gp_port_set_timeout(camera->port,TIMEOUT)); + + CR(gp_filesystem_set_funcs(camera->fs, &fsfuncs, camera)); + + camera->pl=malloc(sizeof(CameraPrivateLibrary)); + if (!camera->pl) + return(GP_ERROR_NO_MEMORY); + + CR(gp_camera_get_abilities(camera, &abilities)); + camera->pl->usb_product=abilities.usb_product; /* some models differ in Thumbnail size */ +/* GP_DEBUG("sx330z Camera_init : sx init %04x",camera->pl->usb_product); */ + return(sx330z_init(camera,context)); + +} /* camera init */ + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/sx330z.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/sx330z.c new file mode 100644 index 00000000..1ecb237c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/sx330z.c @@ -0,0 +1,282 @@ +/* sx330z.c + * + * Copyright 2002 Dominik Kuhlen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "sx330z.h" + +/* sprintf */ +#include "stdio.h" + +/* malloc */ +#include + +/* strncmp */ +#include + +#include "gphoto2-endian.h" + +/*convert to correct endianness */ +static int +sx330z_fill_req(uint8_t *buf, struct traveler_req *req) +{ + *((int16_t*)buf) = htole16(req->always1); buf += 2; + *((int16_t*)buf) = htole16(req->requesttype); buf += 2; + *((int32_t*)buf) = htole32(req->data); buf += 4; + *((int32_t*)buf) = htole32(req->timestamp); buf += 4; + *((int32_t*)buf) = htole32(req->offset); buf += 4; + *((int32_t*)buf) = htole32(req->size); buf += 4; + memcpy(buf, req->filename, 0x0c); + return(GP_OK); +} /* sx330z_fill_req */ + +/*convert to correct endianness */ +static int +sx330z_fill_ack(uint8_t *buf, struct traveler_ack *ack) +{ + ack->always3 = le32toh(*(int32_t*)buf); buf += 4; + ack->timestamp = le32toh(*(int32_t*)buf); buf += 4; + ack->size = le32toh(*(uint32_t*)buf); buf += 4; + ack->dontknow = le32toh(*(int32_t*)buf); buf += 4; + return(GP_OK); +} /* sx330z_fill_ack */ + +/*convert to correct endianness */ +static int +sx330z_fill_toc_page(uint8_t *buf, struct traveler_toc_page *toc) +{ + int cnt; + toc->data0 = le32toh(*(int32_t*)buf); buf += 4; + toc->data1 = le32toh(*(int32_t*)buf); buf += 4; + toc->always1 = le16toh(*(int16_t*)buf); buf += 2; + toc->numEntries = le16toh(*(int16_t*)buf); buf += 2; + for (cnt = 0;cnt < 25;cnt++) + { + memcpy(toc->entries[cnt].name,buf,12); buf += 12; + toc->entries[cnt].time = le32toh(*(int32_t*)buf); buf += 4; + toc->entries[cnt].size = le32toh(*(int32_t*)buf); buf += 4; + } + return(GP_OK); +} /* sx330z_fill_toc_page */ + +/* + * SX330z initialization + * (not really an initialization, but lets check if we have contact ) + */ +int +sx330z_init(Camera *camera, GPContext *context) +{ +/* struct traveler_ack ack;*/ + uint8_t trxbuf[0x10]; + int ret; + ret = gp_port_usb_msg_read(camera->port, USB_REQ_RESERVED, SX330Z_REQUEST_INIT, 0, (char *)trxbuf, 0x10); + if (ret != 0x10) return(GP_ERROR); /* more specific about error ? */ + return(GP_OK); +} /* sx330z_init */ + + +/* + * Read block described by req + */ +static int +sx330z_read_block(Camera *camera, GPContext *context, struct traveler_req *req, uint8_t *buf) +{ + int ret; + uint8_t trxbuf[0x20]; + /* 1. send request */ + sx330z_fill_req(trxbuf, req); + ret = gp_port_usb_msg_write(camera->port, + USB_REQ_RESERVED, req->requesttype, 0, (char *)trxbuf, 0x20); + if (ret != 0x20) return(GP_ERROR_IO_WRITE); + /* 2. read data */ + ret = gp_port_read(camera->port, (char *)buf, req->size); + if (ret != req->size)return(GP_ERROR_IO_READ); + /* 3. read Ack */ + ret = gp_port_read(camera->port, (char *)trxbuf, 0x10); + if (ret != 0x10) return(GP_ERROR); + /* FIXME : Security check ???*/ + return(GP_OK); +} /* read block */ + + +/* + * Get TOC size + */ +int +sx330z_get_toc_num_pages(Camera *camera, GPContext *context, int32_t *pages) +{ + struct traveler_ack ack; + uint8_t trxbuf[0x10]; + int ret; + + ret=gp_port_usb_msg_read(camera->port, + USB_REQ_RESERVED,SX330Z_REQUEST_TOC_SIZE, 0, (char *)trxbuf, 0x10); + if (ret != 0x10) return(GP_ERROR); + + sx330z_fill_ack(trxbuf, &ack); /* convert endianness */ + + *pages = ack.size / 0x200 + 1; /* TOC Pages */ + + /* bug in camera ??*/ + if (ack.size == 0x200) (*pages)--; + if ((ack.size > 0x200)&& + (((ack.size - 0xc) % 0x200) == 0)) (*pages)--; + + return(GP_OK); +} /* get toc size */ + +/* + * Get TOC + * Read a single TOC page + * specified by "page" + */ +int +sx330z_get_toc_page(Camera *camera, GPContext *context, struct traveler_toc_page *TOC, int page) +{ + int ret; + struct traveler_req req; + uint8_t tocbuf[0x200]; + + req.always1 = 1; + req.requesttype = SX330Z_REQUEST_TOC; /* 0x03 */ + req.offset = 0x200 * page; /* offset */ + req.timestamp = 0x123; /* ? */ + req.size = 0x200; /* 512 Bytes / tocpage*/ + req.data = 0; /* ? */ + memset(req.filename, 0, 12); /* ? */ + + ret=sx330z_read_block(camera,context,&req,tocbuf); + if (ret<0) return(ret); + + sx330z_fill_toc_page(tocbuf,TOC); /* convert */ + + /* TOC sanity check */ + if ((TOC->numEntries < 0) || (TOC->numEntries > 25)) return(GP_ERROR_CORRUPTED_DATA); + return(GP_OK); +} /* get toc */ + + +/* + * get data + * could be Image / Thumbnail + */ +int +sx330z_get_data(Camera *camera, GPContext *context, const char *filename, + char **data, unsigned long int *size, int thumbnail) +{ + uint8_t *dptr; + int pages, cnt, ret; + struct traveler_req req; + int found; + int tocpages, tcnt, ecnt; + struct traveler_toc_page toc; + int id;/* progress ? */ + pages = 0; + found = 0; + memcpy(req.filename, filename, 12); + + if (thumbnail == SX_THUMBNAIL) + { + if (camera->pl->usb_product == USB_PRODUCT_MD9700) + pages = 7; /* first 28k only*/ + else + pages = 5; /* first 20k only */ + req.filename[0] = 'T'; /* 'T'humbnail indicator ?*/ + id = gp_context_progress_start(context, 0x1000 * pages, "Thumbnail %.4s _", &filename[4]); + } else + { + /* I don't like this solution ... */ + ret = sx330z_get_toc_num_pages(camera, context, &tocpages); /* number of toc pages */ + if (ret != GP_OK) return(ret); + for (tcnt = 0;(tcnt < tocpages) && (!found);tcnt++) + { + ret = sx330z_get_toc_page(camera, context, &toc, tcnt); + for (ecnt = 0;ecnt < toc.numEntries;ecnt++) + { + if (strncmp(toc.entries[ecnt].name, filename,8) == 0) + { + found = 1; + *size = toc.entries[ecnt].size; + break; + } + } /* */ + } /* load all toc pages */ + /*return(GP_ERROR);*/ + if (!found) return(GP_ERROR); + if (((*size % 4096) != 0) || (*size == 0)) return(GP_ERROR); /* sanity check */ + pages = *size / 0x1000; + id = gp_context_progress_start(context, *size, "Picture %.4s _", &filename[4]); + } /* real image */ + + *size = 4096 * pages; + *data = malloc(*size); + dptr = (uint8_t *)*data; + /* load all parts */ + for (cnt = 0;cnt < pages;cnt++) + { + req.always1 = 1; + req.requesttype = SX330Z_REQUEST_IMAGE; /* Imagedata */ + req.offset = cnt * 0x1000; + req.size = 0x1000; + req.timestamp = 0x0 + cnt * 0x41; /* timestamp (doesn't matter)?*/ + req.data = 0; + gp_context_progress_update(context, id, (cnt + 1) * 0x1000); + sx330z_read_block(camera,context,&req,dptr); /* read data */ + dptr += 4096; + }/* download imageparts */ + gp_context_progress_stop(context,id); + return(GP_OK); +} /* sx330z_get_data */ + + + +/* + * delete file + */ +int +sx330z_delete_file(Camera *camera, GPContext *context, const char *filename) +{ + struct traveler_req req; +/* struct traveler_ack ack;*/ + uint8_t trxbuf[0x20]; + int ret, id; + req.always1 = 1; + req.requesttype = SX330Z_REQUEST_DELETE; /* Delete */ + req.offset = 0x0; + req.size = 0x000; + req.timestamp = 0x0; /* timestamp (doesn't matter)?*/ + req.data = 0; + sprintf(req.filename, "%.8s", filename); + sprintf(&req.filename[8], "jpg"); /* discard . */ + id = gp_context_progress_start(context, 2, "Deleting %s", filename); /* start context */ + /* send delete request */ + sx330z_fill_req(trxbuf,&req); + ret = gp_port_usb_msg_write(camera->port, + USB_REQ_RESERVED, SX330Z_REQUEST_DELETE, 0, (char *)trxbuf, 0x20); + if (ret != 0x20) return(GP_ERROR); /* simple error handling */ + gp_context_progress_update(context, id, 1); /* update context */ + /* read 16 Byte acknowledge packet */ + ret = gp_port_usb_msg_read(camera->port, + USB_REQ_RESERVED, SX330Z_REQUEST_DELETE, 0, (char *)trxbuf, 0x10); + if (ret != 0x10) return(GP_ERROR); + + gp_context_progress_stop(context, id); /* stop context */ + return(GP_OK); +} /* sx330z delete file */ + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/sx330z.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/sx330z.h new file mode 100644 index 00000000..5f16a18b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/sx330z/sx330z.h @@ -0,0 +1,137 @@ +/* sx330z.h + * + * Copyright 2002 Dominik Kuhlen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +/* + * GPhoto library for sx330z camera .... + * first try 6/2002 by Dominik Kuhlen + */ + + +#include +#include + + +/* USB spec violating ! */ +#define USB_REQ_RESERVED 0x04 + +/* is this correct ? */ +#define USB_VENDOR_TRAVELER 0x0d96 + +/* this one should work */ +#define USB_PRODUCT_SX330Z 0x3300 + +/* very experimental !!! + * Please report if this works + */ +#define USB_PRODUCT_SX410Z 0x4100 +/* same as MD6000 */ +#define USB_PRODUCT_MD9700 0x4102 + +/* different requests (are there more ?) */ +#define SX330Z_REQUEST_INIT 0x0001 /* not sure */ +#define SX330Z_REQUEST_TOC_SIZE 0x0002 +#define SX330Z_REQUEST_TOC 0x0003 +#define SX330Z_REQUEST_IMAGE 0x0004 +#define SX330Z_REQUEST_DELETE 0x0010 + +#define SX_THUMBNAIL 1 +#define SX_IMAGE 0 + + +/* 0x14 Bytes TOC entry */ +struct traveler_toc_entry +{ + char name[12]; /* SIMGxxxx.jpg (not 0 terminated) */ + int32_t time; /* ? */ + int32_t size; /* in bytes (%4096 is 0)*/ +}; + +/* 0x200 Bytes TOC Page */ +struct traveler_toc_page +{ + int32_t data0; /* don't know ? (0) */ + int32_t data1; /* don't know ? (0) */ + int16_t always1; /* 1 ? */ + int16_t numEntries; /* number of entries in TOC page (0 .. 25)*/ + struct traveler_toc_entry entries[25]; /* entries */ +}; + +struct _CameraPrivateLibrary +{ + int usb_product; /* different Thumbnail size */ +}; + + +/* 0x20 Bytes Request */ +struct traveler_req +{ + int16_t always1; /* 0x01 */ + int16_t requesttype; /* 0x0003 : TOC , 0x0004 Data */ + int32_t data; /* dontknow */ + int32_t timestamp; /* counter? only 24 bit */ + int32_t offset; /* fileoffset */ + int32_t size; /* transfer bolcksize */ + char filename[12]; /* SIMG????jpg for Real image */ /* TIMG????jpg for Thumbnail */ +}; + +/* 0x10 Bytes Acknowledge */ +struct traveler_ack +{ + int32_t always3; /* 3 */ + int32_t timestamp; /* not sure */ + int32_t size; /* for TOC and other transfers */ + int32_t dontknow; /* always 0 */ +}; + + +/* + * There's not a real initialization, + * but ... + */ +int sx330z_init(Camera *camera,GPContext *context); + + +/* + * Get number of TOC pages + */ +int sx330z_get_toc_num_pages(Camera *camera,GPContext *context, int32_t *pages); + + +/* + * Get TOC + */ +int sx330z_get_toc_page(Camera *camera,GPContext *context,struct traveler_toc_page *toc,int page); + +/* + * Load image data (thumbnail(exif) / image) + */ +int sx330z_get_data(Camera *camera,GPContext *context, const char* filename, + char **,unsigned long int *size,int thumbnail); + + + +/* + * Delete image + */ +int sx330z_delete_file(Camera *camera,GPContext *context,const char *filename); + +/* + * Exit camera + */ +int camera_exit(Camera *camera, GPContext *context); diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/ChangeLog new file mode 100644 index 00000000..a458022b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/ChangeLog @@ -0,0 +1,4 @@ +2005-12-25 Hubert Figuiere + + * template.c: cleanup and some warning fixed. + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/Makefile-files new file mode 100644 index 00000000..3ba9028d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/Makefile-files @@ -0,0 +1,27 @@ +# -*- Makefile -*- + +# If you use this as template for a real camlib (say 'foobar.la'), +# make sure to change the "noinst_" at the beginning of the following +# lines: +# * "noinst_DATA" into "camlibdoc_DATA" +# * "noinst_LTLIBRARIES" into "EXTRA_LTLIBRARIES" +# +# Additionally, you must add add an include line to the Makefile-files +# of the new camlib to camlibs/Makefile.am: +# * "include my-new-camlib/Makefile-files" +# +# And as the last step, you need to add it to configure.ac: +# * GP_CAMLIB([foobar])dnl + +EXTRA_DIST += template/ChangeLog + +EXTRA_DIST += template/README.template +noinst_DATA += template/README.template + +noinst_LTLIBRARIES += template.la + +template_la_SOURCES = template/template.c +template_la_CFLAGS = $(AM_CFLAGS) $(NO_UNUSED_CFLAGS) $(CFLAGS) +template_la_LDFLAGS = $(camlib_ldflags) +template_la_DEPENDENCIES = $(camlib_dependencies) +template_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/README.template b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/README.template new file mode 100644 index 00000000..f5d93583 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/README.template @@ -0,0 +1 @@ +This is a template for a camera library. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/template.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/template.c new file mode 100644 index 00000000..54d8366d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/template/template.c @@ -0,0 +1,567 @@ +/** \file template.c + * \brief Documented source code template for a camera driver (camlib). + * + * \author Copyright 2001 Lutz Mueller + * \author Copyright 2005 Hans Ulrich Niedermann + * + * \par + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * \section intro Introduction to camera drivers (camlibs) + * + * Every camlib must implement the following three function groups: + * + * - Camera object member functions + * - CameraFilesystem object member functions + * - camlib API functions + * + * We implement the camlib API functions last in this file because + * camera_init() must reference all the object member functions and by + * making camera_init() the last function in this file, we can avoid + * the need for forward declarations of the object member functions. + * + * \section linknote Note about "static" functions and exporting symbols + * + * The build system uses libtool to explicitly specify the list of + * exported symbols. Only the three functions of the camlib API + * (camera_init(), camera_id(), and camera_abilities()) are exported. + * + * Therefore it doesn't matter whether you declare your other + * functions static or not - regardless of whether they are object + * member functions or internal camlib functions. + * + * We do not define the object member functions as static in this + * template in order to have autogenerated documentation about them. + * + */ +#include "config.h" + +#include + +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +/** + * This define is the string translation macro used in + * libgphoto2. It will resolve to a dcgettext() function call and + * does both the translation itself and also marks up the string + * for the collector (xgettext). + */ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +/** + * This is the noop translation macro, which does not translate the + * string, but marks it up for the extraction of translatable strings. + */ +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + + +/**********************************************************************/ +/** + * @name Camera object member functions + * + * The prototypes for these functions are defined in gphoto2-camera.h + * + * @{ + */ +/**********************************************************************/ + + +/** + * Finish up the camera communication and free + * private data. You do not need to close the port. + * + * This function is a method of the Camera object. + */ +int camera_exit (Camera *camera, GPContext *context); +int +camera_exit (Camera *camera, GPContext *context) +{ + return GP_OK; +} + + +/** + * Get the full configuration tree of the camera. + * + * This function is a method of the Camera object. + */ +int camera_config_get (Camera *camera, CameraWidget **window, GPContext *context); +int +camera_config_get (Camera *camera, CameraWidget **window, GPContext *context) +{ + gp_widget_new (GP_WIDGET_WINDOW, "Camera Configuration", window); + + /* Append your sections and widgets here. */ + + return GP_OK; +} + + +/** + * Set parts of the configuration tree. Note that you get + * back the whole tree, but should only set the modified + * values. + * + * This function is a method of the Camera object. + */ +int camera_config_set (Camera *camera, CameraWidget *window, GPContext *context); +int +camera_config_set (Camera *camera, CameraWidget *window, GPContext *context) +{ + /* + * Check if the widgets' values have changed. If yes, tell the camera. + */ + + return GP_OK; +} + + +/** + * Capture a preview and return the data in the given file (again, + * use gp_file_set_data_and_size, gp_file_set_mime_type, etc.). + * libgphoto2 assumes that previews are NOT stored on the camera's + * disk. If your camera does, please delete it from the camera. + * + * This function is a method of the Camera object. + */ +int camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context); +int +camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + return GP_OK; +} + + +/** + * Capture an image and tell libgphoto2 where to find it by filling + * out the path. + * + * This function is a method of the Camera object. + */ +int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context); +int +camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, + GPContext *context) +{ + return GP_OK; +} + + +/** + * Fill out the summary with textual information about the current + * state of the camera (like pictures taken, etc.). + * + * This function is a method of the Camera object. + */ +int +camera_summary (Camera *camera, CameraText *summary, GPContext *context); +int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + return GP_OK; +} + + +/** + * Return the camera drivers manual. + * If you would like to tell the user some information about how + * to use the camera or the driver, this is the place to do. + * + * This function is a method of the Camera object. + */ +int +camera_manual (Camera *camera, CameraText *manual, GPContext *context); +int +camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + return GP_OK; +} + + +/** + * Return "About" content as textual description. + * Will be translated. + * + * This function is a method of the Camera object. + */ +int +camera_about (Camera *camera, CameraText *about, GPContext *context); +int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Library Name\n" + "YOUR NAME \n" + "Quick description of the library.\n" + "No more than 5 lines if possible.")); + + return GP_OK; +} + +/*@}*/ + + +/**********************************************************************/ +/** + * @name CameraFilesystem member functions + * + * @{ + */ +/**********************************************************************/ + + +/** + * Get the file from the camera. + * + * This function is a CameraFilesystem method. + */ +int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context); +int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + /*Camera *camera = data;*/ + + /* + * Get the file from the camera. Use gp_file_set_mime_type, + * gp_file_set_data_and_size, etc. + */ + + return GP_OK; +} + + +/** + * Put a file onto the camera. + * + * This function is a CameraFilesystem method. + */ +int +put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *data, GPContext *context); +int +put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *data, GPContext *context) +{ + /*Camera *camera = data;*/ + + /* + * Upload the file to the camera. Use gp_file_get_data_and_size, etc + */ + + return GP_OK; +} + + +/** + * Delete a file from the camera. + * + * This function is a CameraFilesystem method. + */ +int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context); +int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + /*Camera *camera = data;*/ + + /* Delete the file from the camera. */ + + return GP_OK; +} + + +/** + * Delete all files from the camera. + * + * This function is a CameraFilesystem method. + */ +int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context); +int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + /*Camera *camera = data;*/ + + /* + * Delete all files in the given folder. If your camera doesn't have + * such a functionality, just don't implement this function. + */ + + return GP_OK; +} + + +/** + * Get the file info here and write it to space provided by caller. + * + * \param info Space provided by caller in which file info is written. + * + * This function is a CameraFilesystem method. + */ +int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context); +int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + /*Camera *camera = data;*/ + + return GP_OK; +} + + +/** + * FIXME. + * + * This function is a CameraFilesystem method. + */ +int +set_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo info, void *data, GPContext *context); +int +set_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo info, void *data, GPContext *context) +{ + /*Camera *camera = data;*/ + + /* Set the file info here from */ + + return GP_OK; +} + + +/** + * List available folders in the specified folder. + * + * This function is a CameraFilesystem method. + */ +int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context); +int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + /*Camera *camera = data;*/ + + /* List your folders here */ + + return GP_OK; +} + + +/** + * List available files in the specified folder. + * + * This function is a CameraFilesystem method. + */ +int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context); +int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + /*Camera *camera = data;*/ + + /* List your files here */ + + return GP_OK; +} + +/** + * Get information on all available storages in the camera. + * + * This function is a CameraFilesystem method. + */ +int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **storageinformations, + int *nrofstorageinformations, void *data, + GPContext *context); +int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **storageinformations, + int *nrofstorageinformations, void *data, + GPContext *context) +{ + /*Camera *camera = data;*/ + + /* List your storages here */ + + return GP_ERROR_NOT_SUPPORTED; +} + +/*@}*/ + + +/**********************************************************************/ +/** + * @name camlib API functions + * + * @{ + */ +/**********************************************************************/ + + +/** + * Set library ID string. + * + * Probably redundant and to be removed shortly, being replaced + * by the libtool module name defined in the build system. + * + * This is a camlib API function. + */ +int +camera_id (CameraText *id) +{ + strcpy(id->text, "REPLACE WITH UNIQUE LIBRARY ID"); + + return GP_OK; +} + + +/** + * Fill list with abilities of the cameras supported by this camlib. + * + * For each camera, fill a CameraAbilities structure with data about + * that camera and append it to the list. + * + * The job of this function is basically to extract data from a + * camlib specific database and insert it into the libgphoto2 camera + * database. Due to redundant data and other issues, we may decide to + * revise that database mechanism and replace it by something more + * flexible and efficient. + * + * This is a camlib API function. + */ +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "CAMERA VENDOR:CAMERA MODEL"); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL | GP_PORT_USB; + a.speed[0] = 0; + a.operations = GP_OPERATION_CAPTURE_PREVIEW | + GP_CAPTURE_IMAGE; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + gp_abilities_list_append(list, a); + + return GP_OK; +} + +/** + * All filesystem accessor functions. + * + * This should contain all filesystem accessor functions + * available in the camera library. Non-present fields + * are NULL. + * + */ +CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_info_func = get_info_func, + .set_info_func = set_info_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .put_file_func = put_file_func, + .delete_all_func = delete_all_func, + .storage_info_func = storage_info_func +}; + +/** + * Initialize a Camera object. + * + * Sets up all the proper object function pointers, initialize camlib + * internal data structures, and probably establish a connection to + * the camera. + * + * This is a camlib API function. + */ +int +camera_init (Camera *camera, GPContext *context) +{ + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->get_config = camera_config_get; + camera->functions->set_config = camera_config_set; + camera->functions->capture = camera_capture; + camera->functions->capture_preview = camera_capture_preview; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + + /* Now, tell the filesystem where to get lists, files and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + /* + * The port is already provided with camera->port (and + * already open). You just have to use functions like + * gp_port_timeout_set, gp_port_settings_get, gp_port_settings_set. + */ + + /* + * Once you have configured the port, you should check if a + * connection to the camera can be established. + */ + + return GP_OK; +} + +/*@}*/ + + +/********************************************************************* + * End of camlib template. + *********************************************************************/ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/ChangeLog new file mode 100644 index 00000000..7d97dd37 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/ChangeLog @@ -0,0 +1,24 @@ +2008-06-22 Marcus Meissner + + * puppy.c: Make TURBO mode configurable. + + * puppy.c: Send READY request to make communication + startup a bit more stable. + +2008-05-18 Marcus Meissner + + * puppy.c: Implemented get_info_func. + + * puppy.c: Use TURBO mode during download. + Escape "/" in filenames by "-". + +2008-03-12 Marcus Meissner + + * puppy.c: Convert from ISO-8859-1 to current locale + for filenames using iconv. + Store mapped names internally, since the movies have 0x5 + character in front. + +2008-03-05 Marcus Meissner + + * *.[ch]: Ported puppy 1.11 by Peter Urbanek to libgphoto2. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/Makefile-files new file mode 100644 index 00000000..34d7c79f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/Makefile-files @@ -0,0 +1,9 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += topfield.la +EXTRA_DIST += topfield/ChangeLog +topfield_la_SOURCES = topfield/crc16.c topfield/crc16.h topfield/tf_bytes.c topfield/tf_bytes.h topfield/mjd.c topfield/mjd.h \ + topfield/puppy.c topfield/usb_io.h topfield/usb_io.c +topfield_la_LDFLAGS = $(camlib_ldflags) +topfield_la_DEPENDENCIES = $(camlib_dependencies) +topfield_la_LIBADD = $(camlib_libadd) $(LTLIBICONV) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/crc16.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/crc16.c new file mode 100644 index 00000000..877dab05 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/crc16.c @@ -0,0 +1,75 @@ + +/* $Id: crc16.c,v 1.2 2005/01/18 14:00:46 purbanec Exp $ */ + +/* + + Copyright (C) 2004 Peter Urbanec + + This file is part of puppy. + + puppy is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + puppy is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with puppy; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + +*/ + +#include "crc16.h" + +static unsigned short crc_16_table[256] = { + 0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280, 0xc241, + 0xc601, 0x06c0, 0x0780, 0xc741, 0x0500, 0xc5c1, 0xc481, 0x0440, + 0xcc01, 0x0cc0, 0x0d80, 0xcd41, 0x0f00, 0xcfc1, 0xce81, 0x0e40, + 0x0a00, 0xcac1, 0xcb81, 0x0b40, 0xc901, 0x09c0, 0x0880, 0xc841, + 0xd801, 0x18c0, 0x1980, 0xd941, 0x1b00, 0xdbc1, 0xda81, 0x1a40, + 0x1e00, 0xdec1, 0xdf81, 0x1f40, 0xdd01, 0x1dc0, 0x1c80, 0xdc41, + 0x1400, 0xd4c1, 0xd581, 0x1540, 0xd701, 0x17c0, 0x1680, 0xd641, + 0xd201, 0x12c0, 0x1380, 0xd341, 0x1100, 0xd1c1, 0xd081, 0x1040, + 0xf001, 0x30c0, 0x3180, 0xf141, 0x3300, 0xf3c1, 0xf281, 0x3240, + 0x3600, 0xf6c1, 0xf781, 0x3740, 0xf501, 0x35c0, 0x3480, 0xf441, + 0x3c00, 0xfcc1, 0xfd81, 0x3d40, 0xff01, 0x3fc0, 0x3e80, 0xfe41, + 0xfa01, 0x3ac0, 0x3b80, 0xfb41, 0x3900, 0xf9c1, 0xf881, 0x3840, + 0x2800, 0xe8c1, 0xe981, 0x2940, 0xeb01, 0x2bc0, 0x2a80, 0xea41, + 0xee01, 0x2ec0, 0x2f80, 0xef41, 0x2d00, 0xedc1, 0xec81, 0x2c40, + 0xe401, 0x24c0, 0x2580, 0xe541, 0x2700, 0xe7c1, 0xe681, 0x2640, + 0x2200, 0xe2c1, 0xe381, 0x2340, 0xe101, 0x21c0, 0x2080, 0xe041, + 0xa001, 0x60c0, 0x6180, 0xa141, 0x6300, 0xa3c1, 0xa281, 0x6240, + 0x6600, 0xa6c1, 0xa781, 0x6740, 0xa501, 0x65c0, 0x6480, 0xa441, + 0x6c00, 0xacc1, 0xad81, 0x6d40, 0xaf01, 0x6fc0, 0x6e80, 0xae41, + 0xaa01, 0x6ac0, 0x6b80, 0xab41, 0x6900, 0xa9c1, 0xa881, 0x6840, + 0x7800, 0xb8c1, 0xb981, 0x7940, 0xbb01, 0x7bc0, 0x7a80, 0xba41, + 0xbe01, 0x7ec0, 0x7f80, 0xbf41, 0x7d00, 0xbdc1, 0xbc81, 0x7c40, + 0xb401, 0x74c0, 0x7580, 0xb541, 0x7700, 0xb7c1, 0xb681, 0x7640, + 0x7200, 0xb2c1, 0xb381, 0x7340, 0xb101, 0x71c0, 0x7080, 0xb041, + 0x5000, 0x90c1, 0x9181, 0x5140, 0x9301, 0x53c0, 0x5280, 0x9241, + 0x9601, 0x56c0, 0x5780, 0x9741, 0x5500, 0x95c1, 0x9481, 0x5440, + 0x9c01, 0x5cc0, 0x5d80, 0x9d41, 0x5f00, 0x9fc1, 0x9e81, 0x5e40, + 0x5a00, 0x9ac1, 0x9b81, 0x5b40, 0x9901, 0x59c0, 0x5880, 0x9841, + 0x8801, 0x48c0, 0x4980, 0x8941, 0x4b00, 0x8bc1, 0x8a81, 0x4a40, + 0x4e00, 0x8ec1, 0x8f81, 0x4f40, 0x8d01, 0x4dc0, 0x4c80, 0x8c41, + 0x4400, 0x84c1, 0x8581, 0x4540, 0x8701, 0x47c0, 0x4680, 0x8641, + 0x8201, 0x42c0, 0x4380, 0x8341, 0x4100, 0x81c1, 0x8081, 0x4040 +}; + +unsigned short crc16_ansi(const void *data, size_t size) +{ + unsigned short crc = 0; + const unsigned char *d = data; + + while(size--) + { + crc = crc_16_table[(crc ^ *d++) & 0xff] ^ (crc >> 8); + } + + return crc; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/crc16.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/crc16.h new file mode 100644 index 00000000..3bdb4a58 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/crc16.h @@ -0,0 +1,28 @@ +/* $Id: crc16.h,v 1.2 2005/01/18 14:00:46 purbanec Exp $ */ + +/* + + Copyright (C) 2004 Peter Urbanec + + This file is part of puppy. + + puppy is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + puppy is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with puppy; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + +*/ + +#include + +unsigned short crc16_ansi(const void *data, size_t size); diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/mjd.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/mjd.c new file mode 100644 index 00000000..d1cff068 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/mjd.c @@ -0,0 +1,90 @@ +/* + + Copyright (C) 2004 Peter Urbanec + + This file is part of puppy. + + puppy is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + puppy is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with puppy; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + +*/ + +/* MJD conversions as per Annex C of ETSI EN 300 468 */ + +#include "mjd.h" +#include "tf_bytes.h" + +/* Convert Topfield MJD date and time structure to time_t */ +time_t tfdt_to_time(struct tf_datetime * dt) +{ + int mjd = get_u16(&dt->mjd); + int y, m, d, k; + struct tm tm; + time_t result; + + y = (int) ((mjd - 15078.2) / 365.25); + m = (int) ((mjd - 14956.1 - ((int) (y * 365.25))) / 30.6001); + d = mjd - 14956 - ((int) (y * 365.25)) - ((int) (m * 30.6001)); + if((m == 14) || (m == 15)) + { + k = 1; + } + else + { + k = 0; + } + y += k; + m = m - 1 - k * 12; + + tm.tm_sec = dt->second; + tm.tm_min = dt->minute; + tm.tm_hour = dt->hour; + tm.tm_mday = d; + tm.tm_mon = m - 1; + tm.tm_year = y; + tm.tm_wday = 0; + tm.tm_yday = 0; + tm.tm_isdst = -1; + + result = mktime(&tm); + return result; +} + +/* Convert itime_t to Topfield MJD date and time structure */ +void time_to_tfdt(time_t t, struct tf_datetime *dt) +{ + int y, m, d, k, mjd; + struct tm *tm = localtime(&t); + + y = tm->tm_year; + m = tm->tm_mon + 1; + d = tm->tm_mday; + + if((m == 1) || (m == 2)) + { + k = 1; + } + else + { + k = 0; + } + + mjd = 14956 + d + + ((int) ((y - k) * 365.25)) + ((int) ((m + 1 + k * 12) * 30.6001)); + put_u16(&dt->mjd, mjd); + dt->hour = tm->tm_hour; + dt->minute = tm->tm_min; + dt->second = tm->tm_sec; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/mjd.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/mjd.h new file mode 100644 index 00000000..eeb4715c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/mjd.h @@ -0,0 +1,44 @@ +/* + + Copyright (C) 2004 Peter Urbanec + + This file is part of puppy. + + puppy is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + puppy is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with puppy; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + +*/ + +#ifndef _MJD_H +#define _MJD_H 1 + +#include +#include + +/* Encapsulation of MJD date and h:m:s timestamp */ +#pragma pack(1) +struct tf_datetime +{ + unsigned short mjd; + unsigned char hour; + unsigned char minute; + unsigned char second; +}; +#pragma pack() + +time_t tfdt_to_time(struct tf_datetime *dt); +void time_to_tfdt(time_t t, struct tf_datetime *dt); + +#endif /* _MJD_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/puppy.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/puppy.c new file mode 100644 index 00000000..35f0d3b2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/puppy.c @@ -0,0 +1,1241 @@ +/* + + Copyright (C) 2004 Peter Urbanec + Copyright (C) 2008 Marcus Meissner + + This file is part of puppy. + + puppy is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + puppy is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with puppy; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + +*/ +#define _DEFAULT_SOURCE + +#include "config.h" + +#include + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) +# include +# include +#endif + +#include "usb_io.h" +#include "tf_bytes.h" + +#define PUT 0 +#define GET 1 + +#if 0 +static int quiet = 0; +#endif +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) +static iconv_t cd_locale_to_latin1; +static iconv_t cd_latin1_to_locale; +#endif + +struct _mapnames { + char *tfname; + char *lgname; +}; +struct _CameraPrivateLibrary { + struct _mapnames *names; + int nrofnames; +}; + +static void +backslash(char *path) { + char *s = path; + + while ((s = strchr (s, '/'))) + *s='\\'; +} + +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) +static char* +strdup_to_latin1 (const char *str) { + size_t ret, srclen, dstlen, ndstlen; + char *src, *dst, *dest = NULL; + + ndstlen = strlen(str)*2; + while (1) { + srclen = strlen(str)+1; + src = (char*)str; + dstlen = ndstlen; + free (dest); + dst = dest = calloc (dstlen,1); + if (!dst) return NULL; + ret = iconv (cd_locale_to_latin1, &src, &srclen, &dst, &dstlen); + if ((ret == -1) && (errno == E2BIG)) { + ndstlen *= 2; + continue; + } + if (ret == -1) { + perror("iconv"); + free (dest); + dest = NULL; + } + break; + } + return dest; +} + +static char* +strdup_to_locale (char *str) { + size_t ret, srclen, dstlen, ndstlen; + char *dst, *dest = NULL, *src; + + if (str[0] == 5) /* Special Movie Marker on Topfield */ + str++; + ndstlen = strlen(str)*2+1; + while (1) { + srclen = strlen(str)+1; /* +1 ? */ + src = str; + dstlen = ndstlen; + free (dest); + dst = dest = malloc (dstlen); + if (!dst) return NULL; + ret = iconv (cd_latin1_to_locale, &src, &srclen, &dst, &dstlen); + if ((ret == -1) && (errno == E2BIG)) { + ndstlen *= 2; + continue; + } + if (ret == -1) { + perror("iconv"); + free (dest); + return NULL; + } + break; + } + src= dest; + while (1) { + src = strchr (src, '/'); + if (!src) break; + *src='-'; /* FIXME: find better replacement char */ + src++; + } + return dest; +} +#else +# define strdup_to_latin1 strdup +# define strdup_to_locale strdup +#endif + +static char* +_convert_and_logname(Camera *camera, char *tfname) { + int i; + struct _mapnames *map; + + /* search for it in list */ + for (i=0;ipl->nrofnames;i++) { + if (!strcmp(tfname, camera->pl->names[i].tfname)) + return camera->pl->names[i].lgname; + } + camera->pl->names = realloc (camera->pl->names, (camera->pl->nrofnames+1)*sizeof(camera->pl->names[0])); + map = &camera->pl->names[camera->pl->nrofnames]; + map->tfname = strdup(tfname); + map->lgname = strdup_to_locale(tfname); + camera->pl->nrofnames++; + return map->lgname; +} + +static char* +_convert_for_device(Camera *camera, const char *lgname) { + int i; + + /* search for it in list */ + for (i=0;ipl->nrofnames;i++) { + if (!strcmp(lgname, camera->pl->names[i].lgname)) + return camera->pl->names[i].tfname; + } + /* should be here ... */ + return NULL; +} + + + +static char * +get_path (Camera *camera, const char *folder, const char *filename) { + char *path; + char *xfolder, *xfilename; + + xfolder = strdup_to_latin1 (folder); + if (!xfolder) + return NULL; + xfilename = _convert_for_device (camera, filename); + if (!xfilename) { + free (xfolder); + return NULL; + } + path = malloc(strlen(xfolder)+1+strlen(xfilename)+1); + if (!path) { + free (xfolder); + return NULL; + } + strcpy (path, xfolder); + strcat (path, "/"); + backslash (path); + strcat (path, xfilename); + free (xfolder); + free (xfilename); + return path; +} + + +static char * +decode_error(struct tf_packet *packet) +{ + uint32_t ecode = get_u32(packet->data); + switch (ecode) { + case 1: return "CRC error"; + break; + + case 2: + case 4: return "Unknown command"; + break; + + case 3: return "Invalid command"; + break; + + case 5: return "Invalid block size"; + break; + + case 6: return "Unknown error while running"; + break; + + case 7: return "Memory is full"; + break; + + default: return "Unknown error or all your base are belong to us"; + } +} + +static int +do_cmd_turbo(Camera *camera, char *state, GPContext *context) +{ + int r; + int turbo_on = atoi(state); + struct tf_packet reply; + char buf[1024]; + + /* check if we want to use turbo mode. Default is YES */ + if (GP_OK == gp_setting_get("topfield","turbo", buf)) + if (!strcmp(buf,"no")) + return GP_OK; + + if(0 == strcasecmp("ON", state)) + turbo_on = 1; + + r = send_cmd_turbo(camera, turbo_on, context); + if(r < 0) + return r; + + r = get_tf_packet(camera, &reply, context); + if(r < 0) + return r; + + switch (get_u32(&reply.cmd)) { + case SUCCESS: + gp_log (GP_LOG_DEBUG, "topfield", "Turbo mode: %s\n", turbo_on ? "ON" : "OFF"); + return GP_OK; + break; + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", decode_error(&reply)); + break; + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + } + return GP_ERROR_IO; +} + +#if 0 +static int +do_cmd_reset(Camera *camera, GPContext *context) +{ + int r; + struct tf_packet reply; + + r = send_cmd_reset(camera,context); + if(r < 0) + return r; + + r = get_tf_packet(camera, &reply, context); + if(r < 0) + return r; + + switch (get_u32(&reply.cmd)) { + case SUCCESS: + gp_log (GP_LOG_DEBUG, "topfield", "TF5000PVRt should now reboot\n"); + return GP_OK; + break; + + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", decode_error(&reply)); + break; + + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + break; + } + return GP_ERROR_IO; +} +#endif + +static int +do_cmd_ready(Camera *camera, GPContext *context) +{ + int r; + struct tf_packet reply; + + r = send_cmd_ready(camera,context); + if(r < 0) + return r; + + r = get_tf_packet(camera, &reply, context); + if(r < 0) + return r; + + switch (get_u32(&reply.cmd)) { + case SUCCESS: + gp_log (GP_LOG_DEBUG, "topfield", "Device reports ready.\n"); + return GP_OK; + + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", decode_error(&reply)); + break; + + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + return GP_ERROR_IO; + } + return GP_OK; +} + +#if 0 +static int +do_cancel(Camera *camera, GPContext *context) +{ + int r; + struct tf_packet reply; + + r = send_cancel(camera,context); + if(r < 0) + return r; + + r = get_tf_packet(camera, &reply, context); + if(r < 0) + return r; + + switch (get_u32(&reply.cmd)) { + case SUCCESS: + gp_log (GP_LOG_DEBUG, "topfield", "In progress operation cancelled\n"); + return GP_OK; + break; + + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", decode_error(&reply)); + break; + + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + break; + } + return GP_ERROR_IO; +} +#endif + +static void +decode_dir(Camera *camera, struct tf_packet *p, int listdirs, CameraList *list) +{ + unsigned short count = (get_u16(&p->length) - PACKET_HEAD_SIZE) / sizeof(struct typefile); + struct typefile *entries = (struct typefile *) p->data; + int i; + char *name; + + for(i = 0; i < count; i++) { + switch (entries[i].filetype) { + case 1: + if (listdirs) { + if (!strcmp ((char*)entries[i].name, "..")) + continue; + gp_list_append (list, (char*)entries[i].name, NULL); + } + break; + case 2: + if (!listdirs) { + name = _convert_and_logname (camera, (char*)entries[i].name); + gp_list_append (list, name, NULL); + } + break; + default: + break; + } + +#if 0 + /* This makes the assumption that the timezone of the Toppy and the system + * that puppy runs on are the same. Given the limitations on the length of + * USB cables, this condition is likely to be satisfied. */ + timestamp = tfdt_to_time(&entries[i].stamp); + printf("%c %20llu %24.24s %s\n", type, get_u64(&entries[i].size), + ctime(×tamp), entries[i].name); +#endif + } +} + +static void +decode_and_get_info(Camera *camera, const char *folder, struct tf_packet *p, const char *fn, + CameraFileInfo *info, GPContext *context) +{ + unsigned short count = (get_u16(&p->length) - PACKET_HEAD_SIZE) / sizeof(struct typefile); + struct typefile *entries = (struct typefile *) p->data; + int i; + char *name; + + for(i = 0; i < count; i++) { + switch (entries[i].filetype) { + case 1: break;/*dir*/ + case 2: /* file */ + name = _convert_and_logname (camera, (char*)entries[i].name); + if (!strcmp (name, fn)) { /* the wanted current one */ + memset (info, 0, sizeof (*info)); + info->file.fields = GP_FILE_INFO_SIZE|GP_FILE_INFO_MTIME; + if (strstr (name, ".rec")) { + info->file.fields |= GP_FILE_INFO_TYPE; + strcpy (info->file.type, GP_MIME_MPEG); + } + info->file.size = get_u64(&entries[i].size); + info->file.mtime = tfdt_to_time(&entries[i].stamp); + } else { /* cache the others to avoid further turnarounds */ + CameraFileInfo xinfo; + + memset (&xinfo, 0, sizeof (xinfo)); + xinfo.file.fields = GP_FILE_INFO_TYPE|GP_FILE_INFO_SIZE|GP_FILE_INFO_MTIME; + strcpy (xinfo.file.type, GP_MIME_MPEG); + xinfo.file.size = get_u64(&entries[i].size); + xinfo.file.mtime = tfdt_to_time(&entries[i].stamp); + gp_filesystem_append (camera->fs, folder, name, context); /* FIXME: might fail if exist? */ + gp_filesystem_set_info_noop (camera->fs, folder, name, xinfo, context); + } + break; + default: + break; + } +#if 0 + /* This makes the assumption that the timezone of the Toppy and the system + * that puppy runs on are the same. Given the limitations on the length of + * USB cables, this condition is likely to be satisfied. */ + timestamp = tfdt_to_time(&entries[i].stamp); + printf("%c %20llu %24.24s %s\n", type, get_u64(&entries[i].size), + ctime(×tamp), entries[i].name); +#endif + } +} + +#if 0 +static int +do_hdd_rename(Camera *camera, char *srcPath, char *dstPath, GPContext *context) +{ + int r; + struct tf_packet reply; + + r = send_cmd_hdd_rename(camera, srcPath, dstPath, context); + if(r < 0) + return r; + + r = get_tf_packet(camera, &reply, context); + if(r < 0) + return r; + switch (get_u32(&reply.cmd)) { + case SUCCESS: + return GP_OK; + break; + + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", decode_error(&reply)); + break; + + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + break; + } + return GP_ERROR_IO; +} + +static void progressStats(uint64_t totalSize, uint64_t bytes, time_t startTime) +{ + int delta = time(NULL) - startTime; + + if(quiet) + return; + + if(delta > 0) + { + double rate = bytes / delta; + int eta = (totalSize - bytes) / rate; + + fprintf(stderr, + "\r%6.2f%%, %5.2f Mbits/s, %02d:%02d:%02d elapsed, %02d:%02d:%02d remaining", + 100.0 * ((double) (bytes) / (double) totalSize), + ((bytes * 8.0) / delta) / (1000 * 1000), delta / (60 * 60), + (delta / 60) % 60, delta % 60, eta / (60 * 60), + (eta / 60) % 60, eta % 60); + } +} + +static void finalStats(uint64_t bytes, time_t startTime) +{ + int delta = time(NULL) - startTime; + + if(quiet) + return; + + if(delta > 0) + { + fprintf(stderr, "\n%.2f Mbytes in %02d:%02d:%02d (%.2f Mbits/s)\n", + (double) bytes / (1000.0 * 1000.0), + delta / (60 * 60), (delta / 60) % 60, delta % 60, + ((bytes * 8.0) / delta) / (1000.0 * 1000.0)); + } +} +#endif + +static int +camera_config_get (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *section, *turbo; + char buf[1024]; + int val; + + gp_widget_new (GP_WIDGET_WINDOW, _("Camera Configuration"), window); + gp_widget_set_name (*window, "config"); + + gp_widget_new (GP_WIDGET_SECTION, _("Driver Settings"), §ion); + gp_widget_set_name (section, "driver"); + gp_widget_append (*window, section); + + gp_widget_new (GP_WIDGET_RADIO, _("Turbo mode"), &turbo); + gp_widget_set_name (turbo, "turbo"); + gp_widget_add_choice (turbo,_("On")); + gp_widget_add_choice (turbo,_("Off")); + gp_widget_append (section, turbo); + + if (GP_OK == gp_setting_get("topfield","turbo", buf)) { + if (!strcmp(buf,"no")) + val = 0; + else + val = 1; + } else { + val = 1; /* enabled by default */ + } + gp_widget_set_value ( turbo, val?_("On"):_("Off")); + return GP_OK; +} + + +static int +camera_config_set (Camera *camera, CameraWidget *window, GPContext *context) +{ + int ret; + CameraWidget *turbo; + + ret = gp_widget_get_child_by_name (window, "turbo", &turbo); + if (ret != GP_OK) { + gp_log (GP_LOG_ERROR, "camera_config_set", "did not find turbo menu entry?\n"); + return GP_OK; + } + if (gp_widget_changed (turbo)) { + const char* val; + int ival; + + gp_widget_set_changed (turbo, FALSE); + ret = gp_widget_get_value (turbo, &val); + if (ret == GP_OK) { + ival = !strcmp (val, _("On")); + gp_log (GP_LOG_DEBUG, "camera_config_set", "val %s, ival %d\n", val, ival); + gp_setting_set ("topfield", "turbo", ival?"yes":"no"); + } + } + return GP_OK; +} + + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + return GP_OK; +} + + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Topfield TF5000PVR\n" + "Marcus Meissner \n" + "Library to download / upload files from a Topfield PVR.\n" + "Ported from puppy (c) Peter Urbanec \n" + )); + return GP_OK; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + int result = GP_ERROR_IO; + enum { + START, + DATA, + ABORT + } state; + int r, pid = 0, update = 0; + uint64_t byteCount = 0; + struct utimbuf mod_utime_buf = { 0, 0 }; + char *path; + struct tf_packet reply; + + if (type != GP_FILE_TYPE_NORMAL) + return GP_ERROR_NOT_SUPPORTED; + + do_cmd_turbo (camera, "ON", context); + + path = get_path(camera, folder, filename); + r = send_cmd_hdd_file_send(camera, GET, path, context); + free (path); + if(r < 0) + goto out; + + state = START; + while(0 < (r = get_tf_packet(camera, &reply, context))) + { + update = (update + 1) % 4; + switch (get_u32(&reply.cmd)) { + case DATA_HDD_FILE_START: + if(state == START) { + struct typefile *tf = (struct typefile *) reply.data; + + byteCount = get_u64(&tf->size); + pid = gp_context_progress_start (context, byteCount, _("Downloading %s..."), filename); + mod_utime_buf.actime = mod_utime_buf.modtime = + tfdt_to_time(&tf->stamp); + + send_success(camera,context); + state = DATA; + } else { + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unexpected DATA_HDD_FILE_START packet in state %d\n", state); + send_cancel(camera,context); + state = ABORT; + } + break; + + case DATA_HDD_FILE_DATA: + if(state == DATA) { + uint64_t offset = get_u64(reply.data); + uint16_t dataLen = get_u16(&reply.length) - (PACKET_HEAD_SIZE + 8); + int w; + + if (!update) { /* avoid doing it too often */ + gp_context_progress_update (context, pid, offset + dataLen); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + send_cancel(camera,context); + state = ABORT; + } + } + + if(r < get_u16(&reply.length)) { + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Short packet %d instead of %d\n", r, get_u16(&reply.length)); + /* TODO: Fetch the rest of the packet */ + } + + w = gp_file_append (file, (char*)&reply.data[8], dataLen); + + if(w < GP_OK) { + /* Can't write data - abort transfer */ + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Can not write data: %d\n", w); + send_cancel(camera,context); + state = ABORT; + } + } else { + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unexpected DATA_HDD_FILE_DATA packet in state %d\n", state); + send_cancel(camera,context); + state = ABORT; + } + break; + + case DATA_HDD_FILE_END: + send_success(camera,context); + result = GP_OK; + goto out; + break; + + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", decode_error(&reply)); + send_cancel(camera,context); + state = ABORT; + break; + + case SUCCESS: + goto out; + break; + + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet (cmd 0x%x)\n", get_u32(&reply.cmd)); + break; + } + } + if (pid) gp_context_progress_stop (context, pid); +out: + do_cmd_turbo (camera, "OFF", context); + return result; +} + +#if 0 +static int +put_file_func (CameraFilesystem *fs, const char *folder, const char *filename, CameraFile *file, + void *data, GPContext *context) +{ + Camera *camera = data; + + /* + * Upload the file to the camera. Use gp_file_get_data_and_size etc. + */ + int result = -EPROTO; + time_t startTime = time(NULL); + enum { + START, + DATA, + END, + FINISHED + } state; + int src = -1; + int r; + int update = 0; + struct stat srcStat; + __u64 fileSize; + __u64 byteCount = 0; + const char *filename; + char *path; + struct tf_packet reply; + + if(0 != fstat(src, &srcStat)) + { + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Can not examine source file: %s\n", + strerror(errno)); + result = errno; + goto out; + } + + fileSize = srcStat.st_size; + if(fileSize == 0) + { + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Source file is empty - not transfering.\n"); + result = -ENODATA; + goto out; + } + + path = get_path (camera, folder, filename); + r = send_cmd_hdd_file_send(camera, PUT, path, context); + if(r < 0) + goto out; + + state = START; + while(0 < get_tf_packet(camera, &reply, context)) { + update = (update + 1) % 16; + switch (get_u32(&reply.cmd)) { + case SUCCESS: + switch (state) { + case START: { + /* Send start */ + struct typefile *tf = (struct typefile *) packet.data; + + put_u16(&packet.length, PACKET_HEAD_SIZE + 114); + put_u32(&packet.cmd, DATA_HDD_FILE_START); + time_to_tfdt(srcStat.st_mtime, &tf->stamp); + tf->filetype = 2; + put_u64(&tf->size, srcStat.st_size); + strncpy((char *) tf->name, path, 94); + tf->name[94] = '\0'; + tf->unused = 0; + tf->attrib = 0; + gp_log (GP_LOG_DEBUG, "topfield", "%s: DATA_HDD_FILE_START\n", __func__); + r = send_tf_packet(camera, &packet, context); + if(r < 0) + { + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Incomplete send.\n"); + goto out; + } + state = DATA; + break; + } + + case DATA: { + int payloadSize = sizeof(packet.data) - 9; + ssize_t w = read(src, &packet.data[8], payloadSize); + + /* Detect a Topfield protcol bug and prevent the sending of packets + that are a multiple of 512 bytes. */ + if((w > 4) && (((((PACKET_HEAD_SIZE + 8 + w) + 1) & ~1) % 0x200) == 0)) { + lseek(src, -4, SEEK_CUR); + w -= 4; + payloadSize -= 4; + } + + put_u16(&packet.length, PACKET_HEAD_SIZE + 8 + w); + put_u32(&packet.cmd, DATA_HDD_FILE_DATA); + put_u64(packet.data, byteCount); + byteCount += w; + + /* Detect EOF and transition to END */ + if((w < 0) || (byteCount >= fileSize)) { + state = END; + } + + if(w > 0) { + gp_log (GP_LOG_DEBUG, "topfield", "%s: DATA_HDD_FILE_DATA\n", __func__); + r = send_tf_packet(camera, &packet, context); + if(r < w) { + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Incomplete send.\n"); + goto out; + } + } + + if(!update && !quiet) { + progressStats(fileSize, byteCount, startTime); + } + break; + } + + case END: + /* Send end */ + put_u16(&packet.length, PACKET_HEAD_SIZE); + put_u32(&packet.cmd, DATA_HDD_FILE_END); + gp_log (GP_LOG_DEBUG, "topfield", "%s: DATA_HDD_FILE_END\n", __func__); + r = send_tf_packet(camera, &packet, context); + if(r < 0) { + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Incomplete send.\n"); + goto out; + } + state = FINISHED; + break; + + case FINISHED: + result = 0; + goto out; + break; + } + break; + + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", decode_error(&reply)); + goto out; + break; + + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet (%d)\n", get_u32(&reply.cmd)); + break; + } + } + finalStats(byteCount, startTime); +out: + close(src); + return result; +} +#endif + + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int r; + char *path = get_path (camera, folder, filename); + struct tf_packet reply; + + r = send_cmd_hdd_del(camera, path, context); + free (path); + if(r < 0) + return r; + + r = get_tf_packet(camera, &reply, context); + if(r < 0) + return r; + switch (get_u32(&reply.cmd)) { + case SUCCESS: + return GP_OK; + break; + + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", decode_error(&reply)); + break; + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + break; + } + return GP_ERROR_IO; +} + + +#if 0 +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + /*Camera *camera = data;*/ + + /* + * Delete all files in the given folder. If your camera doesn't have + * such a functionality, just don't implement this function. + */ + + return GP_OK; +} +#endif + + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + Camera *camera = data; + int r; + struct tf_packet reply; + char *xfolder = strdup (folder); + + backslash (xfolder); + + r = send_cmd_hdd_dir(camera, xfolder, context); + free (xfolder); + if(r < GP_OK) + return r; + + while(0 < get_tf_packet(camera, &reply, context)) { + switch (get_u32(&reply.cmd)) { + case DATA_HDD_DIR: + decode_and_get_info(camera, folder, &reply, filename, info, context); + send_success(camera,context); + break; + case DATA_HDD_DIR_END: + return GP_OK; + break; + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", + decode_error(&reply)); + return GP_ERROR_IO; + break; + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + return GP_ERROR_IO; + } + } + return GP_OK; +} + + +#if 0 +static int +set_info_func (CameraFilesystem *fs, const char *folder, const char *file, + CameraFileInfo info, void *data, GPContext *context) +{ + /*Camera *camera = data;*/ + + /* Set the file info here from */ + + return GP_OK; +} +#endif + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int r; + struct tf_packet reply; + char *xfolder = strdup (folder); + + backslash (xfolder); + r = send_cmd_hdd_dir(camera, xfolder, context); + free (xfolder); + if(r < GP_OK) + return r; + + while(0 < get_tf_packet (camera, &reply, context)) { + switch (get_u32 (&reply.cmd)) { + case DATA_HDD_DIR: + decode_dir (camera, &reply, 1, list); + send_success (camera,context); + break; + case DATA_HDD_DIR_END: + return GP_OK; + break; + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", + decode_error(&reply)); + return GP_ERROR_IO; + break; + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + return GP_ERROR_IO; + } + } + return GP_OK; +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int r; + struct tf_packet reply; + char *xfolder = strdup (folder); + + backslash (xfolder); + + r = send_cmd_hdd_dir(camera, xfolder, context); + free (xfolder); + if(r < GP_OK) + return r; + + while(0 < get_tf_packet (camera, &reply, context)) { + switch (get_u32 (&reply.cmd)) { + case DATA_HDD_DIR: + decode_dir (camera, &reply, 0, list); + send_success (camera,context); + break; + case DATA_HDD_DIR_END: + return GP_OK; + break; + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", + decode_error(&reply)); + return GP_ERROR_IO; + break; + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + return GP_ERROR_IO; + } + } + return GP_OK; +} + +static int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **storageinformations, + int *nrofstorageinformations, void *data, + GPContext *context) +{ + Camera *camera = data; + int r; + struct tf_packet reply; + CameraStorageInformation *sif; + + /* List your storages here */ + gp_log (GP_LOG_ERROR, "topfield", __func__); + + r = send_cmd_hdd_size(camera,context); + if(r < 0) + return r; + + r = get_tf_packet(camera, &reply, context); + if(r < 0) + return r; + + switch (get_u32(&reply.cmd)) { + case DATA_HDD_SIZE: { + unsigned int totalk = get_u32(&reply.data); + unsigned int freek = get_u32(&reply.data[4]); + + sif = *storageinformations = calloc(sizeof(CameraStorageInformation),1); + *nrofstorageinformations = 1; + + sif->fields |= GP_STORAGEINFO_BASE; + strcpy (sif->basedir,"/"); + sif->fields |= GP_STORAGEINFO_STORAGETYPE; + sif->type = GP_STORAGEINFO_ST_FIXED_RAM; + sif->fields |= GP_STORAGEINFO_ACCESS; + sif->access = GP_STORAGEINFO_AC_READWRITE; + sif->fields |= GP_STORAGEINFO_FILESYSTEMTYPE; + sif->fstype = GP_STORAGEINFO_FST_GENERICHIERARCHICAL; + sif->fields |= GP_STORAGEINFO_MAXCAPACITY; + sif->capacitykbytes = totalk / 1024; + sif->fields |= GP_STORAGEINFO_FREESPACEKBYTES; + sif->freekbytes = freek / 1024; + return GP_OK; + break; + } + + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", decode_error(&reply)); + break; + + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + break; + } + return GP_ERROR_IO; +} + +static int +make_dir_func (CameraFilesystem *fs, const char *folder, const char *foldername, + void *data, GPContext *context) +{ + Camera *camera = data; + char *path = get_path (camera, folder, foldername); + struct tf_packet reply; + int r; + + r = send_cmd_hdd_create_dir(camera, path, context); + free (path); + if(r < 0) + return r; + + r = get_tf_packet(camera, &reply, context); + if(r < 0) + return r; + switch (get_u32(&reply.cmd)) { + case SUCCESS: + return GP_OK; + break; + + case FAIL: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Device reports %s\n", + decode_error(&reply)); + break; + + default: + gp_log (GP_LOG_ERROR, "topfield", "ERROR: Unhandled packet\n"); + } + return GP_ERROR_IO; +} + + +/**********************************************************************/ +int +camera_id (CameraText *id) +{ + strcpy(id->text, "Topfield 5000 PVR"); + return GP_OK; +} + + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "Topfield:TF5000PVR"); + a.status = GP_DRIVER_STATUS_EXPERIMENTAL; + a.port = GP_PORT_USB; + a.usb_vendor = 0x11db; + a.usb_product = 0x1000; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + return gp_abilities_list_append(list, a); +} + +CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_info_func = get_info_func, +#if 0 + .set_info_func = set_info_func, +#endif + .get_file_func = get_file_func, + .del_file_func = delete_file_func, +#if 0 + .put_file_func = put_file_func, + .delete_all_func = delete_all_func, +#endif + .storage_info_func = storage_info_func, + .make_dir_func = make_dir_func +}; + +static int +camera_exit (Camera *camera, GPContext *context) +{ +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + iconv_close (cd_latin1_to_locale); + iconv_close (cd_locale_to_latin1); +#endif + free (camera->pl->names); + free (camera->pl); + return GP_OK; +} + +int +camera_init (Camera *camera, GPContext *context) +{ + char *curloc; + /* First, set up all the function pointers */ + camera->functions->get_config = camera_config_get; + camera->functions->set_config = camera_config_set; + camera->functions->summary = camera_summary; + camera->functions->about = camera_about; + camera->functions->exit = camera_exit; + + /* Now, tell the filesystem where to get lists, files and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + gp_port_set_timeout (camera->port, TF_PROTOCOL_TIMEOUT); + gp_port_usb_clear_halt (camera->port, GP_PORT_USB_ENDPOINT_IN); + + camera->pl = calloc (sizeof (CameraPrivateLibrary),1); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + +#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_H) + curloc = nl_langinfo (CODESET); + if (!curloc) curloc="UTF-8"; + cd_latin1_to_locale = iconv_open(curloc, "iso-8859-1"); + if (!cd_latin1_to_locale) return GP_ERROR_NO_MEMORY; + cd_locale_to_latin1 = iconv_open("iso-8859-1", curloc); + if (!cd_locale_to_latin1) return GP_ERROR_NO_MEMORY; +#endif + + do_cmd_ready (camera, context); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/tf_bytes.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/tf_bytes.c new file mode 100644 index 00000000..b39b4bb4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/tf_bytes.c @@ -0,0 +1,114 @@ +/* + + Copyright (C) 2004 Peter Urbanec + + This file is part of puppy. + + puppy is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + puppy is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with puppy; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + +*/ + +#include +#include "tf_bytes.h" + +/* The Topfield packet handling is a bit unusual. All data is stored in + * memory in big endian order, however, just prior to transmission all + * data is byte swapped. + * + * We try to handle this in here in a some kind of a portable manner. + * + * We provide functions to read and write the memory version of packets + * under the name get_X() and put_X(). + * + * The USB I/O layer then takes care of CRC generation and byte swapping. + */ + +unsigned short get_u16(void *addr) +{ + unsigned char *b = addr; + + return ((b[0] << 8) | (b[1] << 0)); +} + +/* Retrieve a 16-bit integer from the raw buffer (prior to byteswapping) */ +unsigned short get_u16_raw(void *addr) +{ + unsigned char *b = addr; + + return ((b[1] << 8) | (b[0] << 0)); +} + +void put_u16(void *addr, unsigned short val) +{ + unsigned char *b = addr; + + b[0] = (val >> 8) & 0xFF; + b[1] = (val & 0xFF); +} + +unsigned int get_u32(void *addr) +{ + unsigned char *b = addr; + + return (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | (b[3]); +} + +/* Retrieve a 32-bit integer from the raw buffer (prior to byteswapping) */ +unsigned int get_u32_raw(void *addr) +{ + unsigned char *b = addr; + + return (b[1] << 24) | (b[0] << 16) | (b[3] << 8) | (b[2]); +} + +void put_u32(void *addr, unsigned int val) +{ + unsigned char *b = addr; + + b[0] = (val >> 24) & 0xFF; + b[1] = (val >> 16) & 0xFF; + b[2] = (val >> 8) & 0xFF; + b[3] = (val & 0xFF); +} + +uint64_t get_u64(void *addr) +{ + unsigned char *b = addr; + uint64_t r = b[0]; + + r = (r << 8) | b[1]; + r = (r << 8) | b[2]; + r = (r << 8) | b[3]; + r = (r << 8) | b[4]; + r = (r << 8) | b[5]; + r = (r << 8) | b[6]; + r = (r << 8) | b[7]; + return r; +} + +void put_u64(void *addr, uint64_t val) +{ + unsigned char *b = addr; + + b[0] = (val >> 56) & 0xFF; + b[1] = (val >> 48) & 0xFF; + b[2] = (val >> 40) & 0xFF; + b[3] = (val >> 32) & 0xFF; + b[4] = (val >> 24) & 0xFF; + b[5] = (val >> 16) & 0xFF; + b[6] = (val >> 8) & 0xFF; + b[7] = (val & 0xFF); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/tf_bytes.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/tf_bytes.h new file mode 100644 index 00000000..f5859b6e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/tf_bytes.h @@ -0,0 +1,39 @@ +/* + + Copyright (C) 2004 Peter Urbanec + + This file is part of puppy. + + puppy is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + puppy is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with puppy; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + +*/ + +#ifndef _TF_BYTES_H +#define _TF_BYTES_H 1 + +#include <_stdint.h> + +unsigned short get_u16(void *addr); +unsigned short get_u16_raw(void *addr); +unsigned int get_u32(void *addr); +unsigned int get_u32_raw(void *addr); +uint64_t get_u64(void *addr); + +void put_u16(void *addr, unsigned short val); +void put_u32(void *addr, unsigned int val); +void put_u64(void *addr, uint64_t val); + +#endif /* _TF_BYTES_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/usb_io.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/usb_io.c new file mode 100644 index 00000000..87356d36 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/usb_io.c @@ -0,0 +1,316 @@ +/* + + Copyright (C) 2004 Peter Urbanec + + This file is part of puppy. + + puppy is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + puppy is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with puppy; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + +*/ + +#include +#include +#include +#include +#include +#include "usb_io.h" +#include "tf_bytes.h" +#include "crc16.h" + +/* The Topfield packet handling is a bit unusual. All data is stored in + * memory in big endian order, however, just prior to transmission all + * data is byte swapped. + * + * Functions to read and write the memory version of packets are provided + * in tf_bytes.c + * + * Routines here take care of CRC generation, byte swapping and packet + * transmission. + */ + +/* Swap the odd and even bytes in the buffer, up to count bytes. + * If count is odd, the last byte remains unafected. + */ +static void byte_swap(unsigned char * d, int count) +{ + int i; + + for(i = 0; i < (count & ~1); i += 2) + { + unsigned char t = d[i]; + + d[i] = d[i + 1]; + d[i + 1] = t; + } +} + +/* Byte swap an incoming packet. */ +static void swap_in_packet(struct tf_packet *packet) +{ + int size = (get_u16_raw(packet) + 1) & ~1; + + if(size > MAXIMUM_PACKET_SIZE) + { + size = MAXIMUM_PACKET_SIZE; + }; + + byte_swap((unsigned char *) packet, size); +} + +/* Byte swap an outgoing packet. */ +static void swap_out_packet(struct tf_packet *packet) +{ + int size = (get_u16(packet) + 1) & ~1; + + byte_swap((unsigned char *) packet, size); +} + +static const unsigned char cancel_packet[8] = { + 0x08, 0x00, 0x40, 0x01, 0x00, 0x00, 0x03, 0x00 +}; + +static const unsigned char success_packet[8] = { + 0x08, 0x00, 0x81, 0xc1, 0x00, 0x00, 0x02, 0x00 +}; + +/* Optimised packet handling to reduce overhead during bulk file transfers. */ +ssize_t send_cancel(Camera *camera,GPContext *context) +{ + gp_log (GP_LOG_DEBUG, "topfield", __func__); + return gp_port_write (camera->port, (char *)cancel_packet, 8); +} + +ssize_t send_success(Camera *camera, GPContext *context) +{ + gp_log (GP_LOG_DEBUG, "topfield", __func__); + return gp_port_write (camera->port, (char *)success_packet, 8); +} + +ssize_t send_cmd_ready(Camera *camera, GPContext *context) +{ + struct tf_packet req; + + gp_log (GP_LOG_DEBUG, "topfield", __func__); + put_u16(&req.length, 8); + put_u32(&req.cmd, CMD_READY); + return send_tf_packet(camera, &req, context); +} + +ssize_t send_cmd_reset(Camera *camera, GPContext *context) +{ + struct tf_packet req; + + gp_log (GP_LOG_DEBUG, "topfield", __func__); + put_u16(&req.length, 8); + put_u32(&req.cmd, CMD_RESET); + return send_tf_packet(camera, &req, context); +} + +ssize_t send_cmd_turbo(Camera *camera, int turbo_on, GPContext *context) +{ + struct tf_packet req; + + gp_log (GP_LOG_DEBUG, "topfield", __func__); + put_u16(&req.length, 12); + put_u32(&req.cmd, CMD_TURBO); + put_u32(&req.data, turbo_on); + return send_tf_packet(camera, &req, context); +} + +ssize_t send_cmd_hdd_size(Camera *camera, GPContext *context) +{ + struct tf_packet req; + + gp_log (GP_LOG_DEBUG, "topfield", __func__); + put_u16(&req.length, 8); + put_u32(&req.cmd, CMD_HDD_SIZE); + return send_tf_packet(camera, &req, context); +} + +static unsigned short get_crc(struct tf_packet * packet) +{ + return crc16_ansi(&(packet->cmd), get_u16(&packet->length) - 4); +} + +ssize_t send_cmd_hdd_dir(Camera *camera, char *path, GPContext *context) +{ + struct tf_packet req; + unsigned short packetSize; + int pathLen = strlen(path) + 1; + + gp_log (GP_LOG_DEBUG, "topfield", __func__); + + if((PACKET_HEAD_SIZE + pathLen) >= MAXIMUM_PACKET_SIZE) + { + fprintf(stderr, "ERROR: Path is too long.\n"); + return -1; + } + + packetSize = PACKET_HEAD_SIZE + pathLen; + packetSize = (packetSize + 1) & ~1; + put_u16(&req.length, packetSize); + put_u32(&req.cmd, CMD_HDD_DIR); + strcpy((char *) req.data, path); + return send_tf_packet(camera, &req,context); +} + +ssize_t send_cmd_hdd_file_send(Camera *camera, unsigned char dir, char *path, GPContext *context) +{ + struct tf_packet req; + unsigned short packetSize; + int pathLen = strlen(path) + 1; + + gp_log (GP_LOG_DEBUG, "topfield", "send_cmd_hdd_file_send(dir = %d, path = %s)", dir, path); + if((PACKET_HEAD_SIZE + 1 + 2 + pathLen) >= MAXIMUM_PACKET_SIZE) { + fprintf(stderr, "ERROR: Path is too long.\n"); + return -1; + } + + packetSize = PACKET_HEAD_SIZE + 1 + 2 + pathLen; + packetSize = (packetSize + 1) & ~1; + put_u16(&req.length, packetSize); + put_u32(&req.cmd, CMD_HDD_FILE_SEND); + req.data[0] = dir; + put_u16(&req.data[1], pathLen); + strcpy((char *) &req.data[3], path); + return send_tf_packet(camera, &req, context); +} + +ssize_t send_cmd_hdd_del(Camera *camera, char *path, GPContext *context) +{ + struct tf_packet req; + unsigned short packetSize; + int pathLen = strlen(path) + 1; + + gp_log (GP_LOG_DEBUG, "topfield", __func__); + if((PACKET_HEAD_SIZE + pathLen) >= MAXIMUM_PACKET_SIZE) + { + fprintf(stderr, "ERROR: Path is too long.\n"); + return -1; + } + + packetSize = PACKET_HEAD_SIZE + pathLen; + packetSize = (packetSize + 1) & ~1; + put_u16(&req.length, packetSize); + put_u32(&req.cmd, CMD_HDD_DEL); + strcpy((char *) req.data, path); + return send_tf_packet(camera, &req, context); +} + +ssize_t send_cmd_hdd_rename(Camera *camera, char *src, char *dst, GPContext *context) +{ + struct tf_packet req; + unsigned short packetSize; + unsigned short srcLen = strlen(src) + 1; + unsigned short dstLen = strlen(dst) + 1; + + gp_log (GP_LOG_DEBUG, "topfield", __func__); + if((PACKET_HEAD_SIZE + 2 + srcLen + 2 + dstLen) >= MAXIMUM_PACKET_SIZE) + { + fprintf(stderr, + "ERROR: Combination of source and destination paths is too long.\n"); + return -1; + } + + packetSize = PACKET_HEAD_SIZE + 2 + srcLen + 2 + dstLen; + packetSize = (packetSize + 1) & ~1; + put_u16(&req.length, packetSize); + put_u32(&req.cmd, CMD_HDD_RENAME); + put_u16(&req.data[0], srcLen); + strcpy((char *) &req.data[2], src); + put_u16(&req.data[2 + srcLen], dstLen); + strcpy((char *) &req.data[2 + srcLen + 2], dst); + return send_tf_packet(camera, &req, context); +} + +ssize_t send_cmd_hdd_create_dir(Camera *camera, char *path, GPContext *context) +{ + struct tf_packet req; + unsigned short packetSize; + unsigned short pathLen = strlen(path) + 1; + + gp_log (GP_LOG_DEBUG, "topfield", __func__); + if((PACKET_HEAD_SIZE + 2 + pathLen) >= MAXIMUM_PACKET_SIZE) + { + fprintf(stderr, "ERROR: Path is too long.\n"); + return -1; + } + + packetSize = PACKET_HEAD_SIZE + 2 + pathLen; + packetSize = (packetSize + 1) & ~1; + put_u16(&req.length, packetSize); + put_u32(&req.cmd, CMD_HDD_CREATE_DIR); + put_u16(&req.data[0], pathLen); + strcpy((char *) &req.data[2], path); + return send_tf_packet(camera, &req, context); +} + +/* Given a Topfield protocol packet, this function will calculate the required + * CRC and send the packet out over a bulk pipe. */ +ssize_t send_tf_packet(Camera *camera, struct tf_packet *packet, GPContext *context) +{ + unsigned int pl = get_u16(&packet->length); + ssize_t byte_count = (pl + 1) & ~1; + + gp_log (GP_LOG_DEBUG, "topfield", __func__); + put_u16(&packet->crc, get_crc(packet)); + swap_out_packet(packet); + return gp_port_write (camera->port, (char *) packet, byte_count); +} + +/* Receive a Topfield protocol packet. + * Returns a negative number if the packet read failed for some reason. + */ +ssize_t get_tf_packet(Camera *camera, struct tf_packet * packet, GPContext *context) +{ + unsigned char *buf = (unsigned char *) packet; + int r; + + gp_log (GP_LOG_DEBUG, "topfield", __func__); + r = gp_port_read (camera->port, (char *)buf, MAXIMUM_PACKET_SIZE); + if(r < 0) + return r; + + if(r < PACKET_HEAD_SIZE) { + gp_log (GP_LOG_DEBUG, "topfield", "Short read. %d bytes\n", r); + return -1; + } + + /* Send SUCCESS as soon as we see a data transfer packet */ + if(DATA_HDD_FILE_DATA == get_u32_raw(&packet->cmd)) + send_success(camera,context); + + swap_in_packet(packet); + + { + unsigned short crc; + unsigned short calc_crc; + unsigned short len = get_u16(&packet->length); + + if(len < PACKET_HEAD_SIZE) { + gp_log (GP_LOG_DEBUG, "topfield", "Invalid packet length %04x\n", len); + return -1; + } + + crc = get_u16(&packet->crc); + calc_crc = get_crc(packet); + + /* Complain about CRC mismatch */ + if(crc != calc_crc) + gp_log (GP_LOG_ERROR, "topfield", "WARNING: Packet CRC %04x, expected %04x\n", crc, calc_crc); + } + return r; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/usb_io.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/usb_io.h new file mode 100644 index 00000000..ffa99660 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/topfield/usb_io.h @@ -0,0 +1,114 @@ + +/* $Id: usb_io.h,v 1.14 2005/08/26 16:25:34 purbanec Exp $ */ + +/* + + Copyright (C) 2004 Peter Urbanec + + This file is part of puppy. + + puppy is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + puppy is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with puppy; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + +*/ + +#ifndef _USB_IO_H +#define _USB_IO_H 1 + +#include +#include + +#define BITS_PER_LONG sizeof(long)*8 + +#include "mjd.h" +#include "tf_bytes.h" + +/* Topfield command codes */ +#define FAIL (0x0001L) +#define SUCCESS (0x0002L) +#define CANCEL (0x0003L) + +#define CMD_READY (0x0100L) +#define CMD_RESET (0x0101L) +#define CMD_TURBO (0x0102L) + +#define CMD_HDD_SIZE (0x1000L) +#define DATA_HDD_SIZE (0x1001L) + +#define CMD_HDD_DIR (0x1002L) +#define DATA_HDD_DIR (0x1003L) +#define DATA_HDD_DIR_END (0x1004L) + +#define CMD_HDD_DEL (0x1005L) +#define CMD_HDD_RENAME (0x1006L) +#define CMD_HDD_CREATE_DIR (0x1007L) + +#define CMD_HDD_FILE_SEND (0x1008L) +#define DATA_HDD_FILE_START (0x1009L) +#define DATA_HDD_FILE_DATA (0x100aL) +#define DATA_HDD_FILE_END (0x100bL) + +/* Number of milliseconds to wait for a packet transfer to complete. */ + +/* This is intentionally large enough to allow for a HDD spin up. */ +#define TF_PROTOCOL_TIMEOUT 11000 + +/* The maximum packet size used by the Toppy. */ +#define MAXIMUM_PACKET_SIZE 0xFFFFL + +/* The size of every packet header. */ +#define PACKET_HEAD_SIZE 8 + +/* Format of a Topfield protocol packet */ +#pragma pack(1) +struct tf_packet +{ + uint16_t length; + uint16_t crc; + uint32_t cmd; + uint8_t data[MAXIMUM_PACKET_SIZE - PACKET_HEAD_SIZE]; +}; +#pragma pack() + +/* Topfield file descriptor data structure. */ +#pragma pack(1) +struct typefile +{ + struct tf_datetime stamp; + uint8_t filetype; + uint64_t size; + uint8_t name[95]; + uint8_t unused; + uint32_t attrib; +}; +#pragma pack() + + +ssize_t send_success(Camera *camera, GPContext *context); +ssize_t send_cancel(Camera *camera, GPContext *context); +ssize_t send_cmd_ready(Camera *camera, GPContext *context); +ssize_t send_cmd_reset(Camera *camera, GPContext *context); +ssize_t send_cmd_turbo(Camera *camera, int turbo_on, GPContext *context); +ssize_t send_cmd_hdd_size(Camera *camera, GPContext *context); +ssize_t send_cmd_hdd_dir(Camera *camera, char *path, GPContext *context); +ssize_t send_cmd_hdd_file_send(Camera *camera, uint8_t dir, char *path, GPContext *context); +ssize_t send_cmd_hdd_del(Camera *camera, char *path, GPContext *context); +ssize_t send_cmd_hdd_rename(Camera *camera, char *src, char *dst, GPContext *context); +ssize_t send_cmd_hdd_create_dir(Camera *camera, char *path, GPContext *context); + +ssize_t get_tf_packet(Camera *camera, struct tf_packet *packet, GPContext *context); +ssize_t send_tf_packet(Camera *camera, struct tf_packet *packet, GPContext *context); + +#endif /* _USB_IO_H */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/Makefile-files new file mode 100644 index 00000000..af1b1abd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/Makefile-files @@ -0,0 +1,13 @@ +# -*- Makefile -*- + +EXTRA_DIST += toshiba/pdrm11/README.toshiba-pdrm11 +camlibdoc_DATA += toshiba/pdrm11/README.toshiba-pdrm11 + +EXTRA_LTLIBRARIES += toshiba_pdrm11.la + +toshiba_pdrm11_la_SOURCES = \ + toshiba/pdrm11/library.c \ + toshiba/pdrm11/pdrm11.c toshiba/pdrm11/pdrm11.h +toshiba_pdrm11_la_LDFLAGS = $(camlib_ldflags) +toshiba_pdrm11_la_DEPENDENCIES = $(camlib_dependencies) +toshiba_pdrm11_la_LIBADD = $(camlib_libadd) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/README.toshiba-pdrm11 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/README.toshiba-pdrm11 new file mode 100644 index 00000000..5287cbee --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/README.toshiba-pdrm11 @@ -0,0 +1,36 @@ +This is the driver for the toshiba pdr-m11 camera. It's not the greatest +camera, but it is enough for me. + +What works: +I can get a list of filenames, download jpeg thumbnails, and download all files + +What doesn't work: +Tiff thumbnails don't work. Deleting a file only works sometimes. + + +The camera appears to be a 16bit little-endian processor (based on guesses from the data it sends back.) + +--------SIGNALS-------------------- + +-signal-----length-----read/write---------data---------------- + +1f40 0 w (used in init) +1f30 0 w (used in init) + +9300 0 w (sent right before retrieving a picture) +9b00 0 w (sent right before retrieving a thumbnail) + +ad00 8 r 30 01 <2picNum> 00 00 00 + +ae00 2 w 01 00 (always follows a b200) +b200 2 w <2picNum> (select a picture) + +b600 10 r 00 00 00 ?? ?? ?? ?? +b900 26 r 00 00 <12filename> 20 00 20 00 <4LengthOfPic> 64 46 3f 2e +ba40 2 r 00 00 (used in delete) +bf01 2 r 00 00 +d000 4 r 01 30 00 25 (check if camera is ready? (30 and 00 don't change 01 and 25 signal ready) +e600 14 r ?? ?? ?? ?? ?? ?? ?? <2ThumbSize> ?? ?? ?? ?? ?? +d700 0 w ping +d800 0 w ping (there is a d800 followed by a d701) +d701 0 w (ping?) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/library.c new file mode 100644 index 00000000..6169c490 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/library.c @@ -0,0 +1,151 @@ +/* library.c -- copied from the template + * + * Copyright 2003 David Hogue + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "pdrm11.h" + +#include <_stdint.h> +#include + +#include + + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + + +#define GP_MODULE "Toshiba" + +int +camera_id (CameraText *id) +{ + strcpy(id->text, "toshiba-pdrm11"); + + return (GP_OK); +} + + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + + memset(&a, 0, sizeof(a)); + strcpy(a.model, "Toshiba:PDR-M11"); + a.status = GP_DRIVER_STATUS_TESTING; + a.port = GP_PORT_USB; + a.speed[0] = 0; + a.usb_vendor = 0x1132; + a.usb_product = 0x4337; + a.operations = GP_OPERATION_NONE; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; + + gp_abilities_list_append(list, a); + + return (GP_OK); +} + + +static int +camera_exit (Camera *camera, GPContext *context) +{ + return (GP_OK); +} + + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + int picNum; + Camera *camera = data; + + switch(type){ + case GP_FILE_TYPE_PREVIEW: + case GP_FILE_TYPE_NORMAL: + picNum = gp_filesystem_number(fs, folder, filename, context) + 1; + return pdrm11_get_file (fs, filename, type, file, camera->port, picNum); + default: + return GP_ERROR_NOT_SUPPORTED; + } +} + + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + int picNum; + Camera *camera = data; + + picNum = gp_filesystem_number(fs, folder, filename, context) + 1; + return pdrm11_delete_file(camera->port, picNum); +} + + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, _("Toshiba\n" + "David Hogue \n" + "Toshiba pdr-m11 driver.\n")); + + return (GP_OK); +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + + return pdrm11_get_filenames(camera->port, list); +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func +}; + +int +camera_init (Camera *camera, GPContext *context) +{ + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->about = camera_about; + /* Now, tell the filesystem where to get lists, files and info */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + return pdrm11_init(camera->port); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/pdrm11.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/pdrm11.c new file mode 100644 index 00000000..8fb7f2a5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/toshiba/pdrm11/pdrm11.c @@ -0,0 +1,257 @@ +/* pdrm11.c -- interfaces directly with the camera + * + * Copyright 2003 David Hogue + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "pdrm11.h" + +#include +#include + +#include +#include "gphoto2-endian.h" + +#define GP_MODULE "pdrm11" +#define ETIMEDOUT 110 + +/* do not sleep during fuzzing */ +#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION +# define usleep(x) +#endif + +static int pdrm11_select_file(GPPort *port, uint16_t file); + +int pdrm11_init(GPPort *port) +{ + unsigned char buf[20]; + int timeout = 50; + + gp_port_set_timeout(port,1000); + + /* exactly what windows driver does */ + gp_port_usb_msg_read (port, 0x01, PDRM11_CMD_READY, 0, (char *)buf, 4); + gp_port_usb_msg_write(port, 0x01, PDRM11_CMD_PING3, 0, NULL, 0); + gp_port_usb_msg_read (port, 0x01, PDRM11_CMD_READY, 0, (char *)buf, 4); + gp_port_usb_msg_write(port, 0x01, PDRM11_CMD_INIT1, 0, NULL, 0); + gp_port_usb_msg_read (port, 0x01, PDRM11_CMD_READY, 0, (char *)buf, 4); + gp_port_usb_msg_write(port, 0x01, PDRM11_CMD_INIT2, 0, NULL, 0); + gp_port_usb_msg_read (port, 0x01, PDRM11_CMD_READY, 0, (char *)buf, 4); + + gp_port_usb_msg_read (port, 0x01, PDRM11_CMD_ZERO, 0, (char *)buf, 2); + if(buf[0] || buf[1]) { + /* I haven't seen anything other than 00 00 yet + * unless the connection is bad */ + GP_DEBUG("PDRM11_CMD_ZERO: %x %x", buf[0], buf[1]); + return(GP_ERROR); + } + + + /* wait til the camera is ready */ + do { + usleep(200000); + GP_DEBUG("waiting..."); + + timeout--; + if( gp_port_usb_msg_read(port, 0x01, PDRM11_CMD_READY, 0, (char *)buf, 4) == -ETIMEDOUT ) + timeout = 0; + } while( !((buf[3] == 0x25) && (buf[0] == 1)) && timeout ); + + /* what good is this? */ + usleep(400000); + + if(!timeout) + return(GP_ERROR_TIMEOUT); + else + return(GP_OK); +} + + + +int pdrm11_get_filenames(GPPort *port, CameraList *list) +{ + int i, j; + uint32_t numPics; + char name[20]; + char buf[30]; + + + gp_port_set_timeout(port, 10000); + CHECK(gp_port_usb_msg_read(port, 0x01, PDRM11_CMD_GET_NUMPICS, 0, buf, 10)); + /* trying to remain endian friendly */ + numPics = le16atoh(&buf[2]) + (le16atoh(&buf[0]) * 1024); + GP_DEBUG("found %d pictures", numPics); + + + + for(i=1; i + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __PDRM11_H__ +#define __PDRM11_H__ + +#include "config.h" +#include +#include <_stdint.h> + +/* once in a while a gp_port command will fail and then work on a + * second try this tries to run the command twice and returns the + * error code if it fails the second time */ +#define CHECK(result) { \ + int res; \ + res = result; \ + if (res < 0) { \ + res = result; \ + if (res < 0) { \ + GP_DEBUG("%s--%d: %s returned 0x%x", __FILE__, __LINE__, #result, res); \ + return res; \ + } \ + } \ +} + +#define CHECK_AND_FREE(result, buf) { \ + int res; \ + res = result; \ + if (res < 0) { \ + res = result; \ + if (res < 0) { \ + GP_DEBUG("%s--%d: %s returned 0x%x", __FILE__, __LINE__, #result, res); \ + free (buf); \ + return res; \ + } \ + } \ +} + + +#define PDRM11_CMD_INIT1 htole16( 0x1f40 ) +#define PDRM11_CMD_INIT2 htole16( 0x1f30 ) +#define PDRM11_CMD_GET_PIC htole16( 0x9300 ) +#define PDRM11_CMD_GET_THUMB htole16( 0x9b00 ) +#define PDRM11_CMD_GET_INFO htole16( 0xad00 ) +#define PDRM11_CMD_SELECT_PIC2 htole16( 0xae00 ) +#define PDRM11_CMD_SELECT_PIC1 htole16( 0xb200 ) +#define PDRM11_CMD_GET_NUMPICS htole16( 0xb600 ) +#define PDRM11_CMD_GET_FILENAME htole16( 0xb900 ) +#define PDRM11_CMD_GET_FILESIZE htole16( 0xb900 ) +#define PDRM11_CMD_DELETE htole16( 0xba40 ) +#define PDRM11_CMD_ZERO htole16( 0xbf01 ) /* not sure what this is, but it almost always returns 00 00 */ +#define PDRM11_CMD_READY htole16( 0xd000 ) +#define PDRM11_CMD_GET_THUMBSIZE htole16( 0xe600 ) +#define PDRM11_CMD_PING1 htole16( 0xd700 ) +#define PDRM11_CMD_PING2 htole16( 0xd800 ) +#define PDRM11_CMD_PING3 htole16( 0xd701 ) +#define PDRM11_TYPE_JPEG 1 +#define PDRM11_TYPE_TIFF 2 + + +int pdrm11_init(GPPort *port); +int pdrm11_get_file(CameraFilesystem *fs, const char *filename, CameraFileType type, + CameraFile *file, GPPort *port, uint16_t picNum); +int pdrm11_get_filenames(GPPort *port, CameraList *list); +int pdrm11_delete_file(GPPort *port, int picNum); + + + +#endif /* __PDRM11_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/Makefile-files new file mode 100644 index 00000000..fa5260d6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/Makefile-files @@ -0,0 +1,12 @@ +# -*- Makefile -*- + +EXTRA_DIST += tp6801/README.tp6801 tp6801/tp6801-dump.c +camlibdoc_DATA += tp6801/README.tp6801 + +EXTRA_LTLIBRARIES += tp6801.la + +tp6801_la_SOURCES = tp6801/library.c tp6801/tp6801.c tp6801/tp6801.h +tp6801_la_LDFLAGS = $(camlib_ldflags) +tp6801_la_DEPENDENCIES = $(camlib_dependencies) +tp6801_la_LIBADD = $(camlib_libadd) @LIBGD_LIBS@ +tp6801_la_CFLAGS = @LIBGD_CFLAGS@ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/README.tp6801 b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/README.tp6801 new file mode 100644 index 00000000..e26aac9c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/README.tp6801 @@ -0,0 +1,65 @@ +About this driver +================= + +This driver allows you to upload / download and delete pictures from +Tenx TP6801 based picture frames. This are small, cheap picture frames with a +1.1, 1.5 or 1.8 inch display. Currently this driver only supports the following +models: + +Insignia NS-KEYXX10 (0168:3011) + +I would very much like to extend the list of supported models, if you've +a picture frame which you think is Tenx TP68xx based please drop me a mail +at hdegoede@redhat.com + +TP6801 based frames present themselves as a usb mass storage cdrom, which +contains the windows software. Communication with the device happens by +issuing special (custom) scsi commands. This driver uses the special +"usbscsi" port driver, which allows sending the custom scsi commands. + + +About the TP6801 access protocol +================================ + +Accessing the pictures uses scsi opcodes, in the vendor specific range, +for accessing the onboard flash memory the following 3 opcodes are used: +0xc1 Read +0xc6 Erase Block (64k) +0xcb Program page (256 bytes) + +Each opcode is followed by the magic sequence 0x11 0x31 0x0f 0x30 0x01 and +then the number of bytes to read / write (0 for erase block) in 16bit BE +format, followed by the (start)address for the operation in 24bit BE format. +The SCB is further padded out with 0-s to 16 bytes. + +There also is an opcode for setting the time of the photo frame, 0xca, +this opcode is followed by the same magic sequence 0x11 0x31 0x0f 0x30 0x01 +and then 1 byte each for hour, minute, seconds, year (no centuries), month +and day of month, and again further padding to 16 bytes with 0-s. + + +TP6810 memory map +================= + +All addresses are in hex! + +000000-001dff Looks font-ish, may be the battery charging icon +001e00-001e3f Picture Allocation Table, each byte refers to the location in + the picture memory at the same index (multiplied by imagesize). + A value between 1 and max-pictures indicates the corresponding + location contains picture nr value, 0xfe means it contains a + deleted picture, 0xff means it contains pre-erased memory + (this allows uploading a new picture without needing an erase). +001e40-001e7f Unknown, maybe settings (text color, etc). +001e80-001ebf "Tnex TP6801 Image File System Signature" but then reversed +007c00-007fff Website url the windows app automatically opens on insert +008000-00dfff Font +010000-19ffff Pictures in rgb565 format +1a0000-1a0003 USB vid:pid first pid then vid +1a0020-1a003f SCSI model string +1a0100-1f5fff ISO img for emulated cdrom, minus first 32k (which is all 0). +1f6000-1fffff Power on logo in rgb565 format (same as pictures) + + +Hans de Goede +13 June 2011 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/library.c new file mode 100644 index 00000000..3eb78b1d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/library.c @@ -0,0 +1,541 @@ +/* Tenx tp6801 picframe access library + * + * Copyright (c) 2011 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE +#include "config.h" + +#include +#include +#ifdef HAVE_LIBGD +#include +#endif + +#include +#include +#include +#include +#include "tp6801.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +static const struct tp6801_devinfo tp6801_devinfo[] = { + { 0x0168, 0x3011 }, + {} +}; + +int +camera_id (CameraText *id) +{ + strcpy (id->text, "TP6801 USB picture frame"); + + return GP_OK; +} + + +int +camera_abilities (CameraAbilitiesList *list) +{ + CameraAbilities a; + int i; + + for (i = 0; tp6801_devinfo[i].vendor_id; i++) { + memset (&a, 0, sizeof(a)); + snprintf(a.model, sizeof (a.model), + "TP6801 USB picture frame"); + a.status = GP_DRIVER_STATUS_TESTING; + a.port = GP_PORT_USB_SCSI; + a.speed[0] = 0; + a.usb_vendor = tp6801_devinfo[i].vendor_id; + a.usb_product= tp6801_devinfo[i].product_id; + a.operations = GP_OPERATION_NONE; + a.folder_operations = GP_FOLDER_OPERATION_PUT_FILE | + GP_FOLDER_OPERATION_DELETE_ALL; + a.file_operations = GP_FILE_OPERATION_DELETE | + GP_FILE_OPERATION_RAW; + gp_abilities_list_append (list, a); + } + + return GP_OK; +} + +static int +camera_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + sprintf (summary->text, + _("Your USB picture frame has a TP6801 chipset\n")); + return GP_OK; +} + +static int +camera_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + strcpy(manual->text, + _( + "TP6801 based picture frames come with a variety of resolutions.\n" + "The gphoto driver for these devices allows you to download,\n" + "upload and delete pictures from the picture frame." + )); + + return GP_OK; +} + +static int +camera_about (Camera *camera, CameraText *about, GPContext *context) +{ + strcpy (about->text, + _( + "TP6801 USB picture frame driver\n" + "Hans de Goede \n" + "This driver allows you to download, upload and delete pictures\n" + "from the picture frame." + )); + + return GP_OK; +} + +static int get_file_idx(Camera *camera, const char *folder, + const char *filename) +{ + int idx, count, present; + char *c; + + if (strcmp (folder, "/")) + return GP_ERROR_DIRECTORY_NOT_FOUND; + + if (strlen (filename) != 12 || + strncmp (filename, "pict", 4) || + strcmp (filename + 8, ".png")) + return GP_ERROR_FILE_NOT_FOUND; + + idx = strtoul(filename + 4, &c, 10); + if (*c != '.') + return GP_ERROR_FILE_NOT_FOUND; + idx--; + + count = tp6801_max_filecount (camera); + if (count < 0) return count; + + if (idx < 0 || idx >= count) + return GP_ERROR_FILE_NOT_FOUND; + + present = tp6801_file_present (camera, idx); + if (present < 0) return present; + if (!present) + return GP_ERROR_FILE_NOT_FOUND; + + return idx; +} + +static int +get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, void *data, + GPContext *context) +{ + Camera *camera = data; + int idx, size; +#ifdef HAVE_LIBGD + int ret; + gdImagePtr im; + void *gdpng; +#endif + + idx = get_file_idx(camera, folder, filename); + if (idx < 0) + return idx; + + if (type == GP_FILE_TYPE_RAW) { + char *raw; + + CHECK (tp6801_read_raw_file (camera, idx, &raw)) + gp_file_set_mime_type (file, GP_MIME_RAW); + gp_file_set_name (file, filename); + gp_file_set_data_and_size (file, raw, + tp6801_filesize (camera)); + + return GP_OK; + } + +#ifdef HAVE_LIBGD + if (type != GP_FILE_TYPE_NORMAL) + return GP_ERROR_NOT_SUPPORTED; + + im = gdImageCreateTrueColor(camera->pl->width, camera->pl->height); + if (im == NULL) + return GP_ERROR_NO_MEMORY; + + ret = tp6801_read_file(camera, idx, im->tpixels); + if (ret < 0) { + gdImageDestroy (im); + return ret; + } + + gdpng = gdImagePngPtr(im, &size); + gdImageDestroy (im); + if (gdpng == NULL) + return GP_ERROR_NO_MEMORY; + + ret = gp_file_set_mime_type (file, GP_MIME_PNG); + if (ret < 0) { gdFree (gdpng); return ret; } + + ret = gp_file_set_name (file, filename); + if (ret < 0) { gdFree (gdpng); return ret; } + + ret = gp_file_append (file, gdpng, size); + gdFree (gdpng); + return ret; +#else + gp_log(GP_LOG_ERROR,"tp6801", "GD decompression not supported - no libGD present during build"); + return GP_ERROR_NOT_SUPPORTED; +#endif +} + +static int +put_file_func (CameraFilesystem *fs, const char *folder, const char *name, + CameraFileType type, CameraFile *file, void *data, GPContext *context) +{ +#ifdef HAVE_LIBGD + Camera *camera = data; + char *filedata = NULL; + int ret, in_width, in_height, in_x, in_y; + double aspect_in, aspect_out; + unsigned long filesize = 0; + gdImagePtr im_out, im_in = NULL; + + if (strcmp (folder, "/")) + return GP_ERROR_DIRECTORY_NOT_FOUND; + + CHECK (gp_file_get_data_and_size (file, (const char **)&filedata, + &filesize)) + + /* Try loading the file using gd, starting with the most often + used types first */ + + /* gdImageCreateFromJpegPtr is chatty on error, don't call it on + non JPEG files */ + if (filesize > 2 && + (uint8_t)filedata[0] == 0xff && (uint8_t)filedata[1] == 0xd8) + im_in = gdImageCreateFromJpegPtr(filesize, filedata); + if (im_in == NULL) + im_in = gdImageCreateFromPngPtr(filesize, filedata); + if (im_in == NULL) + im_in = gdImageCreateFromGifPtr(filesize, filedata); + if (im_in == NULL) + im_in = gdImageCreateFromWBMPPtr(filesize, filedata); + if (im_in == NULL) { + gp_log (GP_LOG_ERROR, "tp6801", + "Unrecognized file format for file: %s%s", + folder, name); + return GP_ERROR_BAD_PARAMETERS; + } + + im_out = gdImageCreateTrueColor(camera->pl->width, camera->pl->height); + if (im_out == NULL) { + gdImageDestroy (im_in); + return GP_ERROR_NO_MEMORY; + } + + /* Keep aspect */ + aspect_in = (double)im_in->sx / im_in->sy; + aspect_out = (double)im_out->sx / im_out->sy; + if (aspect_in > aspect_out) { + /* Reduce in width (crop left and right) */ + in_width = (im_in->sx / aspect_in) * aspect_out; + in_x = (im_in->sx - in_width) / 2; + in_height = im_in->sy; + in_y = 0; + } else { + /* Reduce in height (crop top and bottom) */ + in_width = im_in->sx; + in_x = 0; + in_height = (im_in->sy * aspect_in) / aspect_out; + in_y = (im_in->sy - in_height) / 2; + } + + gdImageCopyResampled (im_out, im_in, 0, 0, in_x, in_y, + im_out->sx, im_out->sy, + in_width, in_height); + + if (im_in->sx != im_out->sx || + im_in->sy != im_out->sy) + gdImageSharpen(im_out, 100); + + ret = tp6801_write_file (camera, im_out->tpixels); + if (ret >= 0) { + /* Commit the changes to the device */ + ret = tp6801_commit(camera); + } + + gdImageDestroy (im_in); + gdImageDestroy (im_out); + return ret; +#else + gp_log(GP_LOG_ERROR,"tp6801", "GD compression not supported - no libGD present during build"); + return GP_ERROR_NOT_SUPPORTED; +#endif +} + +static int +delete_file_func (CameraFilesystem *fs, const char *folder, + const char *filename, void *data, GPContext *context) +{ + Camera *camera = data; + int idx; + + idx = get_file_idx(camera, folder, filename); + if (idx < 0) + return idx; + + CHECK (tp6801_delete_file(camera, idx)) + + return tp6801_commit(camera); +} + +static int +delete_all_func (CameraFilesystem *fs, const char *folder, void *data, + GPContext *context) +{ + Camera *camera = data; + + CHECK (tp6801_delete_all (camera)) + + return tp6801_commit(camera); +} + +static int +get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileInfo *info, void *data, GPContext *context) +{ + memset (info, 0, sizeof(CameraFileInfo)); + /* FIXME: fill in some stuff? */ + return GP_OK; +} + +static int +folder_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + if (strcmp(folder, "/")) + return GP_ERROR_DIRECTORY_NOT_FOUND; + + /* Subfolders not supported */ + return GP_OK; +} + +static int +file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list, + void *data, GPContext *context) +{ + Camera *camera = data; + int i, count, present; + char buf[30]; + + count = tp6801_max_filecount (camera); + if (count < 0) return count; + + for (i = 0; i < count; i++) { + present = tp6801_file_present (camera, i); + if (present < 0) return present; + if (present) { + snprintf(buf, sizeof(buf), "pict%04d.png", i + 1); + CHECK (gp_list_append (list, buf, NULL)) + } + } + + return GP_OK; +} + +static int +storage_info_func (CameraFilesystem *fs, + CameraStorageInformation **sinfos, + int *nrofsinfos, + void *data, GPContext *context) +{ + Camera *camera = (Camera*)data; + CameraStorageInformation *sinfo; + int free, imagesize; + + free = tp6801_get_free_mem_size (camera); + if (free < 0) return free; + + sinfo = malloc(sizeof(CameraStorageInformation)); + if (!sinfo) return GP_ERROR_NO_MEMORY; + + *sinfos = sinfo; + *nrofsinfos = 1; + + sinfo->fields = GP_STORAGEINFO_BASE; + strcpy(sinfo->basedir, "/"); + + sinfo->fields |= GP_STORAGEINFO_ACCESS; + sinfo->access = GP_STORAGEINFO_AC_READWRITE; + sinfo->fields |= GP_STORAGEINFO_STORAGETYPE; + sinfo->type = GP_STORAGEINFO_ST_FIXED_RAM; + sinfo->fields |= GP_STORAGEINFO_FILESYSTEMTYPE; + sinfo->fstype = GP_STORAGEINFO_FST_GENERICFLAT; + sinfo->fields |= GP_STORAGEINFO_MAXCAPACITY; + sinfo->capacitykbytes = tp6801_get_mem_size (camera) / 1024; + sinfo->fields |= GP_STORAGEINFO_FREESPACEKBYTES; + sinfo->freekbytes = free / 1024; + + imagesize = tp6801_filesize (camera); + if (imagesize) { + sinfo->fields |= GP_STORAGEINFO_FREESPACEIMAGES; + sinfo->freeimages = free / imagesize; + } + + return GP_OK; +} + +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .folder_list_func = folder_list_func, + .get_info_func = get_info_func, + .get_file_func = get_file_func, + .del_file_func = delete_file_func, + .put_file_func = put_file_func, + .delete_all_func = delete_all_func, + .storage_info_func = storage_info_func +}; + +static int +camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) +{ + CameraWidget *child; + + GP_DEBUG ("*** camera_get_config"); + + gp_widget_new (GP_WIDGET_WINDOW, + _("Picture Frame Configuration"), window); + + gp_widget_new (GP_WIDGET_TOGGLE, + _("Synchronize frame data and time with PC"), &child); + gp_widget_set_value (child, &camera->pl->syncdatetime); + gp_widget_append (*window, child); + + return GP_OK; +} + +static int +camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + CameraWidget *child; + int ret; + + GP_DEBUG ("*** camera_set_config"); + + ret = gp_widget_get_child_by_label (window, + _("Synchronize frame data and time with PC"), &child); + if (ret == GP_OK) + gp_widget_get_value (child, &camera->pl->syncdatetime); + + return GP_OK; +} + +static int +camera_exit (Camera *camera, GPContext *context) +{ + char buf[2]; + + if (camera->pl != NULL) { + buf[0] = '0' + camera->pl->syncdatetime; + buf[1] = 0; + gp_setting_set("tp6801", "syncdatetime", buf); + tp6801_close (camera); + free (camera->pl); + camera->pl = NULL; + } + return GP_OK; +} + +int +camera_init (Camera *camera, GPContext *context) +{ + CameraAbilities a; + int ret; + char *dump, buf[256]; + + /* First, set up all the function pointers */ + camera->functions->exit = camera_exit; + camera->functions->summary = camera_summary; + camera->functions->manual = camera_manual; + camera->functions->about = camera_about; + camera->functions->get_config = camera_get_config; + camera->functions->set_config = camera_set_config; + + /* Tell the CameraFilesystem where to get lists from */ + gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); + + camera->pl = calloc (1, sizeof(CameraPrivateLibrary)); + if (!camera->pl) return GP_ERROR_NO_MEMORY; + + ret = gp_setting_get("tp6801", "syncdatetime", buf); + if (ret == GP_OK) + camera->pl->syncdatetime = buf[0] == '1'; + else + camera->pl->syncdatetime = 1; + + CHECK (gp_camera_get_abilities(camera, &a)) + + dump = getenv("GP_TP6801_DUMP"); + if (dump) + ret = tp6801_open_dump (camera, dump); + else + ret = tp6801_open_device (camera); + + if (ret != GP_OK) { + camera_exit (camera, context); + return ret; + } + + if (camera->pl->syncdatetime) { +#ifdef HAVE_LOCALTIME_R + struct tm tm; +#endif + struct tm *xtm; + time_t t; + + t = time (NULL); +#ifdef HAVE_LOCALTIME_R + if ((xtm = localtime_r (&t , &tm))) { +#else + if ((xtm = localtime (&t))) { +#endif + ret = tp6801_set_time_and_date (camera, xtm); + if (ret != GP_OK) { + camera_exit (camera, context); + return ret; + } + } + } + + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/tp6801-dump.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/tp6801-dump.c new file mode 100644 index 00000000..663108db --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/tp6801-dump.c @@ -0,0 +1,125 @@ +/* Tenx tp6801 picframe memory dump tool + * + * Copyright (c) 2011 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include +#include +#include +#include +#include +#include +#include + +#define READ 0 +#define WRITE 1 + +void tp6801_send_cmd(int fd, int rw, int cmd, int offset, unsigned char *data, int data_size) +{ + int i; + sg_io_hdr_t io_hdr; + unsigned char sense_buffer[32]; + unsigned char cmd_buffer[16]; + + memset(cmd_buffer, 0, sizeof(cmd_buffer)); + cmd_buffer[0] = cmd; + cmd_buffer[1] = 0x11; + cmd_buffer[2] = 0x31; + cmd_buffer[3] = 0x0f; + cmd_buffer[4] = 0x30; + cmd_buffer[5] = 0x01; /* cmd 0xca hour not bcd! */ + cmd_buffer[6] = data_size >> 8; /* cmd 0xca min */ + cmd_buffer[7] = data_size & 0xff; /* cmd 0xca sec */ + cmd_buffer[8] = (offset >> 16) & 0xff; + cmd_buffer[9] = (offset >> 8) & 0xff; + cmd_buffer[10] = offset & 0xff; + + memset(&io_hdr, 0, sizeof(sg_io_hdr_t)); + if (rw == READ) + io_hdr.dxfer_direction = SG_DXFER_FROM_DEV; + else + io_hdr.dxfer_direction = SG_DXFER_TO_DEV; + io_hdr.interface_id = 'S'; + io_hdr.dxfer_len = data_size; + io_hdr.dxferp = (unsigned char *)data; + io_hdr.cmdp = cmd_buffer; + io_hdr.cmd_len = sizeof(cmd_buffer); + io_hdr.sbp = sense_buffer; + io_hdr.mx_sb_len = sizeof(sense_buffer); + io_hdr.timeout = 1000; + + if(ioctl(fd, SG_IO, &io_hdr) < 0) + { + printf("error status: %d, errno: %s\n", io_hdr.status, strerror(errno)); + exit (1); + } +} + +void eeprom_read(int fd, int offset, unsigned char *data, int data_size) +{ + tp6801_send_cmd(fd, READ, 0xc1, offset, data, data_size); +} + +void eeprom_erase_block(int fd, int offset) +{ + tp6801_send_cmd(fd, READ, 0xc6, offset, NULL, 0); +} + +void eeprom_program_page(int fd, int offset, unsigned char *data) +{ + tp6801_send_cmd(fd, WRITE, 0xcb, offset, data, 256); +} + +int main(int argc, char* argv[]) +{ + int i, j, fd; + FILE* f; + unsigned char data[0x10000]; /* 64k */ + + fd = open(argv[1], O_RDWR); + if(fd < 0) + { + printf("Cannot open %s: %s\n", argv[1], strerror(errno)); + exit(-1); + } + +#if 1 + f = fopen("dump.bin", "w"); + /* We can read max 32k at a time */ + for(i = 0; i < (4160*1024); i += 0x8000) + { + eeprom_read(fd, i, data, 0x8000); + fwrite(data, 1, 0x8000, f); + } +#else + f = fopen("dump.bin", "r"); + /* programming is done in blocks of 64k */ + /* Note this is only restores the 64k block as that often gets + mangled during development */ + for(i = 0; i < 0x10000; i += 0x10000) + { + fread(data, 1, 0x10000, f); + eeprom_erase_block(fd, i); + for (j = 0; j < 0x10000; j += 256) + eeprom_program_page(fd, i + j, data + j); + } +#endif + fclose(f); + close(fd); + + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/tp6801.c b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/tp6801.c new file mode 100644 index 00000000..f7315479 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/tp6801.c @@ -0,0 +1,847 @@ +/* Tenx tp6801 picframe access library + * + * Copyright (c) 2011 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include <_stdint.h> +#include +#include +#include +#include +#include +#ifdef HAVE_LIBGD +#include +#endif + +#include +#include "tp6801.h" + +static int +tp6801_send_cmd(Camera *camera, int to_dev, unsigned char cmd, int offset, + char *data, int data_size) +{ + char cmd_buffer[16]; + char sense_buffer[32]; + + /* The device firmware does not seem to wait for the last cmd to + finish when going from PP to READ, do this for it */ + if (camera->pl->last_cmd == TP6801_PROGRAM_PAGE && + cmd == TP6801_READ) { + usleep(5000); /* Max page program time for most spi flash */ + } + camera->pl->last_cmd = cmd; + + memset (cmd_buffer, 0, sizeof (cmd_buffer)); + cmd_buffer[0] = cmd; + cmd_buffer[1] = 0x11; + cmd_buffer[2] = 0x31; + cmd_buffer[3] = 0x0f; + cmd_buffer[4] = 0x30; + cmd_buffer[5] = 0x01; + cmd_buffer[6] = (data_size >> 8) & 0xff; + cmd_buffer[7] = data_size & 0xff; + cmd_buffer[8] = (offset >> 16) & 0xff; + cmd_buffer[9] = (offset >> 8) & 0xff; + cmd_buffer[10] = offset & 0xff; + + return gp_port_send_scsi_cmd (camera->port, to_dev, + cmd_buffer, sizeof(cmd_buffer), + sense_buffer, sizeof(sense_buffer), + data, data_size); +} + +int +tp6801_set_time_and_date(Camera *camera, struct tm *t) +{ + char cmd_buffer[16]; + char sense_buffer[32]; + + memset (cmd_buffer, 0, sizeof (cmd_buffer)); + + cmd_buffer[0] = TP6801_SET_TIME; + cmd_buffer[1] = 0x11; + cmd_buffer[2] = 0x31; + cmd_buffer[3] = 0x0f; + cmd_buffer[4] = 0x30; + cmd_buffer[5] = 0x01; + cmd_buffer[6] = t->tm_hour; + cmd_buffer[7] = t->tm_min; + cmd_buffer[8] = t->tm_sec; + cmd_buffer[9] = t->tm_year % 100; + cmd_buffer[10] = t->tm_mon + 1; + cmd_buffer[11] = t->tm_mday; + + return gp_port_send_scsi_cmd (camera->port, 0, + cmd_buffer, sizeof(cmd_buffer), + sense_buffer, sizeof(sense_buffer), + NULL, 0); +} + +static int +tp6801_read(Camera *camera, int offset, char *buf, int size) +{ + int ret; + if (camera->pl->mem_dump) { + ret = fseek (camera->pl->mem_dump, offset, SEEK_SET); + if (ret) { + gp_log (GP_LOG_ERROR, "tp6801", + "seeking in memdump: %s", strerror(errno)); + return GP_ERROR_IO_READ; + } + ret = fread (buf, 1, size, camera->pl->mem_dump); + if (ret != size) { + if (ret < 0) + gp_log (GP_LOG_ERROR, "tp6801", + "reading memdump: %s", + strerror(errno)); + else + gp_log (GP_LOG_ERROR, "tp6801", + "short read reading from memdump"); + return GP_ERROR_IO_READ; + } + } else { + CHECK (tp6801_send_cmd (camera, 0, TP6801_READ, offset, + buf, size)) + } + return GP_OK; +} + +static int +tp6801_program_page(Camera *camera, int offset, char *buf) +{ + int ret; + + if (camera->pl->mem_dump) { + ret = fseek (camera->pl->mem_dump, offset, SEEK_SET); + if (ret) { + gp_log (GP_LOG_ERROR, "tp6801", + "seeking in memdump: %s", strerror(errno)); + return GP_ERROR_IO_WRITE; + } + ret = fwrite (buf, 1, TP6801_PAGE_SIZE, camera->pl->mem_dump); + if (ret != TP6801_PAGE_SIZE) { + gp_log (GP_LOG_ERROR, "tp6801", + "writing memdump: %s", strerror(errno)); + return GP_ERROR_IO_WRITE; + } + } else { + CHECK (tp6801_send_cmd (camera, 1, TP6801_PROGRAM_PAGE, + offset, buf, TP6801_PAGE_SIZE)) + } + return GP_OK; +} + +static int +tp6801_erase_block(Camera *camera, int offset) +{ + int ret; + char *buf; + + if (camera->pl->mem_dump) { + buf = camera->pl->mem + offset; + memset(buf, 0xff, TP6801_BLOCK_SIZE); + ret = fseek (camera->pl->mem_dump, offset, SEEK_SET); + if (ret) { + gp_log (GP_LOG_ERROR, "tp6801", + "seeking in memdump: %s", strerror(errno)); + return GP_ERROR_IO_WRITE; + } + ret = fwrite (buf, 1, TP6801_BLOCK_SIZE, camera->pl->mem_dump); + if (ret != TP6801_BLOCK_SIZE) { + gp_log (GP_LOG_ERROR, "tp6801", + "writing memdump: %s", strerror(errno)); + return GP_ERROR_IO_WRITE; + } + return GP_OK; + } else { + CHECK (tp6801_send_cmd (camera, 0, TP6801_ERASE_BLOCK, offset, + NULL, 0)) + } + + return GP_OK; +} + +static int +tp6801_check_offset_len(Camera *camera, int offset, int len) +{ + if (offset < 0 || len < 0) { + gp_log (GP_LOG_ERROR, "tp6801", "negative offset or len"); + return GP_ERROR_CORRUPTED_DATA; + } + + if (offset + len > camera->pl->mem_size) { + gp_log (GP_LOG_ERROR, "tp6801", "access beyond end of memory"); + return GP_ERROR_CORRUPTED_DATA; + } + return GP_OK; +} + +static int +tp6801_read_mem(Camera *camera, int offset, int len) +{ + int i, to_read, page = offset / TP6801_PAGE_SIZE; + + CHECK (tp6801_check_offset_len (camera, offset, len)) + + /* Adjust len for us reading 1 page at a time */ + len += offset % TP6801_PAGE_SIZE; + + while (len > 0) { + /* Skip already read pages */ + if (camera->pl->page_state[page] & TP6801_PAGE_READ) { + len -= TP6801_PAGE_SIZE; + page++; + continue; + } + + /* Try to read as much as possible in one go */ + to_read = 0; + while (len > 0 && to_read < TP6801_MAX_READ && + !(camera->pl->page_state[page + to_read] & + TP6801_PAGE_READ)) { + len -= TP6801_PAGE_SIZE; + to_read++; + } + + offset = page * TP6801_PAGE_SIZE; + CHECK (tp6801_read (camera, offset, camera->pl->mem + offset, + to_read * TP6801_PAGE_SIZE)) + for (i = 0; i < to_read; i++, page++) + camera->pl->page_state[page] |= TP6801_PAGE_READ; + } + return GP_OK; +} + +static int +tp6801_write_mem(Camera *camera, int offset, + void *buf, int len) +{ + int i, first, last; + + CHECK (tp6801_check_offset_len (camera, offset, len)) + + first = offset / TP6801_PAGE_SIZE; + last = (offset + len - 1) / TP6801_PAGE_SIZE; + + /* If we're not going to completely fill the first page, first read + it to ensure it is present in our device memory copy */ + if ((offset % TP6801_PAGE_SIZE || len < TP6801_PAGE_SIZE) && + (camera->pl->page_state[first] & TP6801_PAGE_CONTAINS_DATA) && + !(camera->pl->page_state[first] & TP6801_PAGE_READ)) { + int o = first * TP6801_PAGE_SIZE; + CHECK (tp6801_read (camera, o, camera->pl->mem + o, + TP6801_PAGE_SIZE)) + camera->pl->page_state[first] |= TP6801_PAGE_READ; + } + + /* Likewise for the last page */ + if ((offset + len) % TP6801_PAGE_SIZE && + (camera->pl->page_state[last] & TP6801_PAGE_CONTAINS_DATA) && + !(camera->pl->page_state[last] & TP6801_PAGE_READ)) { + int o = last * TP6801_PAGE_SIZE; + CHECK (tp6801_read (camera, o, camera->pl->mem + o, + TP6801_PAGE_SIZE)) + camera->pl->page_state[last] |= TP6801_PAGE_READ; + } + + memcpy(camera->pl->mem + offset, buf, len); + for (i = first; i <= last; i++) { + /* Note we mark the written pages as read too, to avoid + them getting overwritten by a read from the device later */ + camera->pl->page_state[i] |= TP6801_PAGE_DIRTY | + TP6801_PAGE_CONTAINS_DATA | + TP6801_PAGE_READ; + } + return GP_OK; +} + +static int +tp6801_detect_mem(Camera *camera) +{ + int i; + char *m; + + camera->pl->mem = malloc(TP6801_MAX_MEM_SIZE); + if (!camera->pl->mem) + return GP_ERROR_NO_MEMORY; + camera->pl->mem_size = TP6801_MAX_MEM_SIZE; + + /* Note we read the PAT instead of some mem at offset 0, because: + 1) This saves a read when reading the PAT later + 2) The PAT contains reasonably unique data */ + CHECK (tp6801_read_mem (camera, TP6801_PAT_OFFSET, TP6801_PAT_SIZE)) + + for (i = 0; (1048576 << i) != TP6801_MAX_MEM_SIZE; i++) { + int offset = (1048576 << i) + TP6801_PAT_OFFSET; + CHECK (tp6801_read_mem (camera, offset, TP6801_PAT_SIZE)) + if (memcmp(camera->pl->mem + TP6801_PAT_OFFSET, + camera->pl->mem + offset, + TP6801_PAT_SIZE) == 0) + break; + } + + camera->pl->mem_size = 1048576 << i; + GP_DEBUG ("tp6801 detected %d bytes of memory", camera->pl->mem_size); + + m = realloc(camera->pl->mem, camera->pl->mem_size); + if (!m) + return GP_ERROR_NO_MEMORY; + + camera->pl->mem = m; + return GP_OK; +} + +int +tp6801_filesize(Camera *camera) +{ + /* The pictures are stored as rgb565be, so 2 bytes / pixel */ + return camera->pl->width * camera->pl->height * 2; +} + +int +tp6801_max_filecount(Camera *camera) +{ + int free_mem, size; + + size = tp6801_filesize (camera); + free_mem = camera->pl->mem_size - TP6801_PICTURE_OFFSET(0, size); + free_mem -= TP6801_CONST_DATA_SIZE; + + return free_mem / size; +} + +int +tp6801_file_present(Camera *camera, int idx) +{ + if (idx < 0) { + gp_log (GP_LOG_ERROR, "tp6801", + "file index < 0"); + return GP_ERROR_BAD_PARAMETERS; + } + + if (idx >= tp6801_max_filecount (camera)) { + gp_log (GP_LOG_ERROR, "tp6801", + "file index beyond end of ABFS"); + return GP_ERROR_BAD_PARAMETERS; + } + + if (camera->pl->pat[idx] >= 1 && + camera->pl->pat[idx] <= camera->pl->picture_count) + return 1; + else switch (camera->pl->pat[idx]) { + case TP6801_PAT_ENTRY_DELETED_FRAME: + case TP6801_PAT_ENTRY_DELETED_WIN: + case TP6801_PAT_ENTRY_PRE_ERASED: + return 0; + default: + return GP_ERROR_CORRUPTED_DATA; + } +} + +static int +tp6801_check_file_present(Camera *camera, int idx) +{ + int r = tp6801_file_present (camera, idx); + if (r < 0) + return r; + if (r == 0) + return GP_ERROR_BAD_PARAMETERS; + return GP_OK; +} + +static int +tp6801_decode_image(Camera *camera, char *_src, int **dest) +{ +#ifdef HAVE_LIBGD + int x, y; + unsigned char *src = (unsigned char *)_src; + + for (y = 0; y < camera->pl->height; y++) { + for (x = 0; x < camera->pl->width; x++) { + int r, g, b, rgb565; + + rgb565 = (src[0] << 8) | src[1]; + r = (rgb565 & 0xf800) >> 8; + g = (rgb565 & 0x07e0) >> 3; + b = (rgb565 & 0x001f) << 3; + + dest[y][x] = gdTrueColor (r, g, b); + src += 2; + } + } + return GP_OK; +#else + gp_log(GP_LOG_ERROR,"tp6801", "GD decompression not supported - no libGD present during build"); + /* Never reached */ + return GP_ERROR_NOT_SUPPORTED; +#endif +} + +static int +tp6801_encode_image(Camera *camera, int **src, char *dest) +{ +#ifdef HAVE_LIBGD + int x, y; + + for (y = 0; y < camera->pl->height; y++) { + for (x = 0; x < camera->pl->width; x++) { + int r, g, b, rgb565; + int p = src[y][x]; + + r = gdTrueColorGetRed(p); + g = gdTrueColorGetGreen(p); + b = gdTrueColorGetBlue(p); + rgb565 = ((r & 0xf8) << 8) | + ((g & 0xfc) << 3) | + ((b & 0xf8) >> 3); + dest[0] = (rgb565 >> 8) & 0xff; + dest[1] = (rgb565 >> 0) & 0xff; + dest += 2; + } + } + return GP_OK; +#else + gp_log(GP_LOG_ERROR,"tp6801", "GD compression not supported - no libGD present during build"); + return GP_ERROR_NOT_SUPPORTED; +#endif +} + +int +tp6801_read_raw_file(Camera *camera, int idx, char **raw) +{ + int size; + + *raw = NULL; + size = tp6801_filesize (camera); + + CHECK (tp6801_check_file_present (camera, idx)) + CHECK (tp6801_read_mem (camera, TP6801_PICTURE_OFFSET(idx, size), + size)) + + *raw = malloc (size); + if (!*raw) { + gp_log (GP_LOG_ERROR, "tp6801", "allocating memory"); + return GP_ERROR_NO_MEMORY; + } + + memcpy(*raw, camera->pl->mem + TP6801_PICTURE_OFFSET(idx, size), size); + return GP_OK; +} + +int +tp6801_read_file(Camera *camera, int idx, int **rgb24) +{ + int size = tp6801_filesize (camera); + + CHECK (tp6801_check_file_present (camera, idx)) + CHECK (tp6801_read_mem (camera, TP6801_PICTURE_OFFSET(idx, size), + size)) + CHECK (tp6801_decode_image (camera, + camera->pl->mem + TP6801_PICTURE_OFFSET(idx, size), + rgb24)) + return GP_OK; +} + +int +tp6801_write_file(Camera *camera, int **rgb24) +{ + const int size = tp6801_filesize (camera); + int i, count = tp6801_max_filecount (camera); + char buf[size]; + + /* Pass 1 try to find a pre-erased slot in the PAT */ + for (i = 0; i < count; i++) + if (camera->pl->pat[i] == TP6801_PAT_ENTRY_PRE_ERASED) + break; + + if (i == count) { + /* Pass 2 try to find a deleted slot in the PAT */ + for (i = 0; i < count; i++) + if (TP6801_PAT_ENTRY_DELETED(camera->pl->pat[i])) + break; + } + + if (i == count) { + gp_log (GP_LOG_ERROR, "tp6801", + "not enough freespace to add file"); + return GP_ERROR_NO_SPACE; + } + + CHECK (tp6801_encode_image (camera, rgb24, buf)) + CHECK (tp6801_write_mem (camera, TP6801_PICTURE_OFFSET(i, size), + buf, size)) + camera->pl->picture_count++; + camera->pl->pat[i] = camera->pl->picture_count; + camera->pl->page_state[TP6801_PAT_PAGE] |= TP6801_PAGE_DIRTY; + + return GP_OK; +} + +int +tp6801_delete_file(Camera *camera, int idx) +{ + CHECK (tp6801_check_file_present (camera, idx)) + + camera->pl->pat[idx] = TP6801_PAT_ENTRY_DELETED_WIN; + camera->pl->page_state[TP6801_PAT_PAGE] |= TP6801_PAGE_DIRTY; + + return GP_OK; +} + +int +tp6801_delete_all(Camera *camera) +{ + int i, start, end; + + /* Erase the entire picture memory */ + start = TP6801_PICTURE_OFFSET(0, 0); + end = camera->pl->mem_size - TP6801_CONST_DATA_SIZE; + for (i = start; i < end; i += TP6801_BLOCK_SIZE) + CHECK (tp6801_erase_block (camera, i)) + + /* Update state of all picture memory pages */ + start /= TP6801_PAGE_SIZE; + end /= TP6801_PAGE_SIZE; + for (i = start; i < end; i++) + camera->pl->page_state[i] = 0; + + /* Update PAT */ + end = tp6801_max_filecount (camera); + for (i = 0; i < end; i++) + camera->pl->pat[i] = TP6801_PAT_ENTRY_PRE_ERASED; + camera->pl->picture_count = 0; + camera->pl->page_state[TP6801_PAT_PAGE] |= TP6801_PAGE_DIRTY; + + return GP_OK; +} + +/* bsp = block start page */ +static int +tp6801_program_block(Camera *camera, int bsp, char prog_flags) +{ + const int block_page_size = TP6801_BLOCK_SIZE / TP6801_PAGE_SIZE; + int i, offset; + + for (i = 0, offset = bsp * TP6801_PAGE_SIZE; + i < block_page_size; + i++, offset += TP6801_PAGE_SIZE) { + if (!(camera->pl->page_state[bsp + i] & prog_flags)) + continue; + + CHECK (tp6801_program_page (camera, offset, + camera->pl->mem + offset)) + camera->pl->page_state[bsp + i] &= ~TP6801_PAGE_DIRTY; + camera->pl->page_state[bsp + i] |= TP6801_PAGE_NEEDS_ERASE; + } + return GP_OK; +} + +static int +tp6801_read_erase_program_block(Camera *camera, int bsp) +{ + const int block_page_size = TP6801_BLOCK_SIZE / TP6801_PAGE_SIZE; + int i, offset, to_read; + + /* Step 1 read in any pages which contain data before erasing! */ + i = 0; + while (i < block_page_size) { + /* Skip unused pages */ + if (!(camera->pl->page_state[bsp + i] & + TP6801_PAGE_CONTAINS_DATA)) { + i++; + continue; + } + + /* Read as many pages in one go as possible */ + to_read = 0; + while ((i + to_read) < block_page_size && + (camera->pl->page_state[bsp + i + to_read] & + TP6801_PAGE_CONTAINS_DATA)) { + to_read++; + } + offset = (bsp + i) * TP6801_PAGE_SIZE; + CHECK (tp6801_read_mem (camera, offset, + to_read * TP6801_PAGE_SIZE)) + i += to_read; + } + + /* Step 2 erase the block */ + CHECK (tp6801_erase_block (camera, bsp * TP6801_PAGE_SIZE)) + for (i = 0; i < block_page_size; i++) { + camera->pl->page_state[bsp + i] &= + ~TP6801_PAGE_NEEDS_ERASE; + } + + /* Step 3 program all pages which are dirty or contain data */ + CHECK (tp6801_program_block (camera, bsp, + TP6801_PAGE_DIRTY | TP6801_PAGE_CONTAINS_DATA)) + + return GP_OK; +} + +static int +tp6801_commit_block(Camera *camera, int bsp) +{ + const int block_page_size = TP6801_BLOCK_SIZE / TP6801_PAGE_SIZE; + int i, dirty_pages = 0, needs_erase = 0; + + for (i = 0; i < block_page_size; i++) { + char page_state = camera->pl->page_state[bsp + i]; + if (page_state & TP6801_PAGE_DIRTY) { + dirty_pages++; + if (page_state & TP6801_PAGE_NEEDS_ERASE) + needs_erase++; + } + } + + if (!dirty_pages) + return GP_OK; + + if (needs_erase) + CHECK (tp6801_read_erase_program_block (camera, bsp)) + else + /* No erase needed, just program dirty pages */ + CHECK (tp6801_program_block (camera, bsp, + TP6801_PAGE_DIRTY)) + + return GP_OK; +} + +int +tp6801_commit(Camera *camera) +{ + const int size = tp6801_filesize (camera); + const int block_page_size = TP6801_BLOCK_SIZE / TP6801_PAGE_SIZE; + int mem_page_size = camera->pl->mem_size / TP6801_PAGE_SIZE; + int i, j, begin, end, count = tp6801_max_filecount (camera); + + /* Skip the first block as that contains the PAT */ + for (i = block_page_size; + i < mem_page_size; + i += block_page_size) { + CHECK (tp6801_commit_block (camera, i)) + } + + /* Now see if we've completely erased the area of some deleted files + and if so mark there PAT entries as pre-erased, rather then just + deleted */ + for (i = 0; i < count; i++) { + if (!TP6801_PAT_ENTRY_DELETED(camera->pl->pat[i])) + continue; + + begin = TP6801_PICTURE_OFFSET(i, size) / TP6801_PAGE_SIZE; + end = TP6801_PICTURE_OFFSET(i + 1, size) / TP6801_PAGE_SIZE; + for (j = begin; j < end; j++) { + char page_state = camera->pl->page_state[j]; + if (page_state & TP6801_PAGE_NEEDS_ERASE) + break; + } + if (j == end) { /* No page needs erase -> mark pre-erased */ + camera->pl->pat[i] = TP6801_PAT_ENTRY_PRE_ERASED; + camera->pl->page_state[TP6801_PAT_PAGE] |= + TP6801_PAGE_DIRTY; + } + } + + /* The picture numbering in the PAT can contain holes from us + (or the frame which is why wo do this here) deleting pictures. + These holes are a problem as if we keep deleting all but the + highest numbered picture and adding new pictures the picture + number could reach 254 / 255 which have special meaning. + + So we renumber the pictures here to remove the holes */ + for (i = 1; i <= camera->pl->picture_count; i++) { + /* Step 1 see if this number exists in the PAT */ + for (j = 0; j < count; j++) + if (camera->pl->pat[j] == i) + break; + if (j != count) + continue; /* Number exists no renumber needed */ + + /* Step 2 decr. the number of all higher numbered picts */ + for (j = 0; j < count; j++) { + if (camera->pl->pat[j] >= 1 && + camera->pl->pat[j] <= camera->pl->picture_count && + camera->pl->pat[j] > i) { + camera->pl->pat[j]--; + } + } + camera->pl->picture_count--; + camera->pl->page_state[TP6801_PAT_PAGE] |= TP6801_PAGE_DIRTY; + } + + /* And commit the block with the PAT */ + CHECK (tp6801_commit_block (camera, 0)) + + return GP_OK; +} + +static const struct tp6801_model_info { + int vid; + int pid; + char model[TP6801_SCSI_MODEL_LEN + 1]; + int width; + int height; +} tp6801_models[] = { + { 0x0168, 0x3011, "InsigniaNS-KEYXX09", 160, 128 }, /* Guessed */ + { 0x0168, 0x3011, "InsigniaNS-KEYXX10", 160, 128 }, + {} +}; + +int +tp6801_open_device(Camera *camera) +{ + int i, j, count, size, begin, end, offset, vid, pid; + char model[TP6801_SCSI_MODEL_LEN + 1]; + + CHECK (tp6801_detect_mem (camera)) + + /* Read the first 512 bytes of the const data area, this gives us + the usb id, scsi model and begin of the iso img */ + offset = camera->pl->mem_size - TP6801_CONST_DATA_SIZE; + CHECK (tp6801_read_mem (camera, offset, 512)) + + /* Sanity check, verify that the iso starts where we expect it, if it + does not we likely have the size of the const data wrong for this + model, and could overwrite part of the iso, not good! */ + offset += TP6801_ISO_OFFSET; + if (memcmp (camera->pl->mem + offset, "\001CD001", 6)) { + gp_log (GP_LOG_ERROR, "tp6801", "Could not find ISO header"); + return GP_ERROR_MODEL_NOT_FOUND; + } + offset -= TP6801_ISO_OFFSET; + + /* The 4st 4 bytes of the const data are pid:vid */ + pid = (camera->pl->mem[offset + 0] << 8) | camera->pl->mem[offset + 1]; + vid = (camera->pl->mem[offset + 2] << 8) | camera->pl->mem[offset + 3]; + + offset += TP6801_SCSI_MODEL_OFFSET; + CHECK (tp6801_read_mem (camera, offset, TP6801_SCSI_MODEL_LEN)) + memcpy (model, camera->pl->mem + offset, TP6801_SCSI_MODEL_LEN); + model[TP6801_SCSI_MODEL_LEN] = 0; + + for (i = 0; tp6801_models[i].pid; i++) { + if (tp6801_models[i].pid == pid && + tp6801_models[i].vid == vid && + strcmp(tp6801_models[i].model, model) == 0) + break; + } + if (!tp6801_models[i].pid) { + gp_log (GP_LOG_ERROR, "tp6801", + "unknown model %04x:%04x %s", vid, pid, model); + return GP_ERROR_MODEL_NOT_FOUND; + } + camera->pl->width = tp6801_models[i].width; + camera->pl->height = tp6801_models[i].height; + GP_DEBUG("tp6801 detect %s model (%dx%d)", model, + camera->pl->width, camera->pl->height); + + /* One more sanity check */ + size = tp6801_filesize (camera); + if (size % TP6801_PAGE_SIZE) { + gp_log (GP_LOG_ERROR, "tp6801", "image size not page aligned"); + return GP_ERROR_MODEL_NOT_FOUND; + } + + /* Read PAT, verify signature */ + CHECK (tp6801_read_mem (camera, TP6801_PAT_OFFSET, TP6801_PAT_SIZE)) + if (memcmp (camera->pl->mem + TP6801_PAT_MAGIC_OFFSET, + TP6801_PAT_MAGIC, strlen(TP6801_PAT_MAGIC))) { + gp_log (GP_LOG_ERROR, "tp6801", "invalid pat magic"); + return GP_ERROR_MODEL_NOT_FOUND; + } + camera->pl->pat = (unsigned char *)camera->pl->mem + TP6801_PAT_OFFSET; + + /* Set initial page state for all pages */ + for (i = 0; i < camera->pl->mem_size / TP6801_PAGE_SIZE; i++) + camera->pl->page_state[i] |= TP6801_PAGE_CONTAINS_DATA | + TP6801_PAGE_NEEDS_ERASE; + + /* Parse and verify PAT and update page_state based on it */ + count = tp6801_max_filecount(camera); + for (i = 0; i < count; i++) { + int clear_flags = 0; + + if (camera->pl->pat[i] >= 1 && + camera->pl->pat[i] <= count) { + if (camera->pl->pat[i] > camera->pl->picture_count) + camera->pl->picture_count = camera->pl->pat[i]; + continue; + } else switch (camera->pl->pat[i]) { + case TP6801_PAT_ENTRY_PRE_ERASED: + clear_flags |= TP6801_PAGE_NEEDS_ERASE; + /* fall through */ + case TP6801_PAT_ENTRY_DELETED_FRAME: + case TP6801_PAT_ENTRY_DELETED_WIN: + clear_flags |= TP6801_PAGE_CONTAINS_DATA; + break; + default: + gp_log (GP_LOG_ERROR, "tp6801", "invalid pat entry"); + return GP_ERROR_CORRUPTED_DATA; + } + + begin = TP6801_PICTURE_OFFSET(i, size) / TP6801_PAGE_SIZE; + end = TP6801_PICTURE_OFFSET(i + 1, size) / TP6801_PAGE_SIZE; + for (j = begin; j < end; j++) + camera->pl->page_state[j] &= ~clear_flags; + } + + return GP_OK; +} + +int +tp6801_open_dump(Camera *camera, const char *dump) +{ + camera->pl->mem_dump = fopen(dump, "r+"); + if (!camera->pl->mem_dump) { + gp_log (GP_LOG_ERROR, "tp6801", "opening memdump file: %s: %s", + dump, strerror(errno)); + return GP_ERROR_IO_INIT; + } + + return tp6801_open_device (camera); +} + +void tp6801_close(Camera *camera) +{ + free (camera->pl->mem); + camera->pl->mem = NULL; + if (camera->pl->mem_dump) { + fclose (camera->pl->mem_dump); + camera->pl->mem_dump = NULL; + } +} + +int +tp6801_get_mem_size(Camera *camera) +{ + return camera->pl->mem_size; +} + +int +tp6801_get_free_mem_size(Camera *camera) +{ + return (tp6801_max_filecount (camera) - camera->pl->picture_count) * + tp6801_filesize (camera); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/tp6801.h b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/tp6801.h new file mode 100644 index 00000000..b6210a87 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/camlibs/tp6801/tp6801.h @@ -0,0 +1,129 @@ +/* Tenx tp6801 picframe access library + * + * Copyright (c) 2011 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#ifndef __TP6801_H__ +#define __TP6801_H__ +#include "config.h" + +#include + +#include +#include + +#define GP_MODULE "tp6801" + +#define TP6801_PAT_MAGIC "erutangiS metsyS eliF egamI 1086PT xneT" +#define TP6801_PAT_MAGIC_OFFSET 0x1e80 +#define TP6801_PAT_OFFSET 0x1e00 +#define TP6801_PAT_PAGE (TP6801_PAT_OFFSET / TP6801_PAGE_SIZE) +#define TP6801_PAT_SIZE 256 /* Including the magic */ +#define TP6801_PAT_ENTRY_PRE_ERASED 0xff +/* Windows software uses 0xfe to mark as deleted, the frame itself 0x00 */ +#define TP6801_PAT_ENTRY_DELETED_FRAME 0x00 +#define TP6801_PAT_ENTRY_DELETED_WIN 0xfe +#define TP6801_PAT_ENTRY_DELETED(x) ((x) == 0xfe || (x) == 0x00) +#define TP6801_PICTURE_OFFSET(i, size) (0x10000 + (i) * (size)) +#define TP6801_READ 0xC1 +#define TP6801_ERASE_BLOCK 0xC6 +#define TP6801_SET_TIME 0xCA +#define TP6801_PROGRAM_PAGE 0xCB +#define TP6801_BLOCK_SIZE 65536 +#define TP6801_PAGE_SIZE 256 +/* USB bulk transfers are 32k max */ +#define TP6801_MAX_READ (32768 / TP6801_PAGE_SIZE) +#define TP6801_MAX_MEM_SIZE 4194304 +#define TP6801_CONST_DATA_SIZE 393216 +#define TP6801_SCSI_MODEL_OFFSET 32 +#define TP6801_SCSI_MODEL_LEN 32 +#define TP6801_ISO_OFFSET 256 +/* page_state flags */ +#define TP6801_PAGE_READ 0x01 +#define TP6801_PAGE_DIRTY 0x02 +#define TP6801_PAGE_CONTAINS_DATA 0x04 +#define TP6801_PAGE_NEEDS_ERASE 0x08 + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +struct _CameraPrivateLibrary { + FILE *mem_dump; + char *mem; + unsigned char *pat; + char page_state[TP6801_MAX_MEM_SIZE / TP6801_PAGE_SIZE]; + unsigned char last_cmd; + int picture_count; + /* LCD display attributes */ + int width; + int height; + /* EEPROM attributes */ + int mem_size; + /* Driver configuration settings */ + int syncdatetime; +}; + +struct tp6801_devinfo { + unsigned short vendor_id; + unsigned short product_id; +}; + +/* functions in tp6801.c */ +int +tp6801_open_device(Camera *camera); + +int +tp6801_open_dump(Camera *camera, const char *dump); + +void tp6801_close(Camera *camera); + +int +tp6801_max_filecount(Camera *camera); + +int +tp6801_file_present(Camera *camera, int idx); + +int +tp6801_read_raw_file(Camera *camera, int idx, char **raw); + +int +tp6801_read_file(Camera *camera, int idx, int **rgb24); + +int +tp6801_write_file(Camera *camera, int **rgb24); + +int +tp6801_delete_file(Camera *camera, int idx); + +int +tp6801_delete_all(Camera *camera); + +int +tp6801_commit(Camera *camera); + +int +tp6801_get_mem_size(Camera *camera); + +int +tp6801_get_free_mem_size(Camera *camera); + +int +tp6801_set_time_and_date(Camera *camera, struct tm *t); + +int +tp6801_filesize(Camera *camera); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/configure.ac b/lib/hardware/sensors/gphoto/libgphoto2-master/configure.ac new file mode 100644 index 00000000..eb1ebd81 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/configure.ac @@ -0,0 +1,700 @@ +dnl Process this file with autoreconf to produce a configure script. +AC_PREREQ(2.59) + +dnl NOTE: Be version style _higher_ than the last release. +dnl So lastversion.X.trunk for instance. Bump X if necessary. + +dnl ******* THE NEXT RELEASE VERSION MUST BE 2.5.24 at least or higher! +AC_INIT([libgphoto2 photo camera library], [2.5.23.1], [gphoto-devel@lists.sourceforge.net], [libgphoto2]) + +AC_CONFIG_SRCDIR([libgphoto2/gphoto2-version.c]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([auto-m4]) +AC_CONFIG_AUX_DIR([auto-aux]) +dnl Working around bug in automake <= 1.9.6: +dnl - Please do not add filename-length-max=99 here. +dnl - Otherwise "make distdir" will fail in gphoto-suite +dnl The generated Makefile rule fails to remove the absolute part at +dnl the beginning of the /path/to/buildroot/PACKAGE-VERSION/foo/bar +dnl before determining the string length. However, the only relevant +dnl string to determine the length of would be PACKAGE-VERSION/foo/bar +AM_INIT_AUTOMAKE([-Wall foreign 1.9 dist-bzip2 check-news subdir-objects]) + + +# Use the silent-rules feature when possible. +m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])]) +AM_SILENT_RULES([no]) + +GP_CHECK_SHELL_ENVIRONMENT +GP_CONFIG_MSG([Build]) +GP_CONFIG_MSG([Source code location],[${srcdir}]) + +dnl --------------------------------------------------------------------------- +dnl Advanced information about versioning: +dnl * "Writing shared libraries" by Mike Hearn +dnl http://navi.cx/~mike/writing-shared-libraries.html +dnl * libtool.info chapter "Versioning" +dnl * libtool.info chapter "Updating library version information" +dnl --------------------------------------------------------------------------- +dnl Versioning: +dnl - AGE (Micro): Increment if any interfaces have been added; set to 0 +dnl if any interfaces have been removed. Removal has +dnl precedence over adding, so set to 0 if both happened. +dnl It denotes upward compatibility. +dnl - REVISION (Minor): Increment any time the source changes; set to +dnl 0 if you incremented CURRENT. +dnl - CURRENT (Major): Increment if the interface has changes. AGE is always +dnl *changed* at the same time. +dnl +dnl To summarize. Any interface *change* increment CURRENT. If that interface +dnl change does not break upward compatibility (ie it is an addition), +dnl increment AGE, Otherwise AGE is reset to 0. If CURRENT has changed, +dnl REVISION is set to 0, otherwise REVISION is incremented. +dnl --------------------------------------------------------------------------- +dnl A:R:C=1:1:3 libgphoto2-2.2 +dnl A:R:C=2:0:4 libgphoto2-2.3 (since libgphoto2-2.2.1.5.trunk) +dnl A:R:C=2:1:4 libgphoto2-2.3.1 (since libgphoto2-2.3.0.1.trunk) +dnl A:R:C=3:0:5 libgphoto2-2.3.0.3.trunk (new gp_file_new_from_fd() function) +dnl libgphoto2-2.3.1.1.trunk (new gp_file_slurp() function) +dnl libgphoto2-2.3.1.2.trunk (new gp_camera_get_storageinfo() function + enums + struct) +dnl A:R:C=0:0:6 libgphoto2-2.5.0 (fixed CameraList API, ... ) +AC_SUBST([LIBGPHOTO2_AGE], [1]) +AC_SUBST([LIBGPHOTO2_REVISION], [0]) +AC_SUBST([LIBGPHOTO2_CURRENT], [7]) +AC_SUBST([LIBGPHOTO2_CURRENT_MIN], + [`expr $LIBGPHOTO2_CURRENT - $LIBGPHOTO2_AGE`]) +AC_SUBST([LIBGPHOTO2_VERSION_INFO], + [$LIBGPHOTO2_CURRENT:$LIBGPHOTO2_REVISION:$LIBGPHOTO2_AGE]) + + +dnl --------------------------------------------------------------------------- +dnl Checks for programs. +dnl --------------------------------------------------------------------------- + +AC_PROG_CC +AC_PROG_CPP +AC_PROG_CXX +AC_PROG_INSTALL +AM_PROG_CC_C_O +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + +dnl Something with the sequences is not quite alright yet. +dnl SED is supposed to be set in AC_LIBTOOL_SETUP, but the +dnl sequence seems to get mixed up. +SED=${SED-sed} + +dnl --------------------------------------------------------------------------- +dnl Turn on (almost) all warnings when using gcc +dnl --------------------------------------------------------------------------- +if test "x$GCC" = "xyes"; then + # CFLAGS="$CFLAGS --std=c99 -Wall -Wextra -Werror -pedantic" + CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wmissing-prototypes" + LDFLAGS="$LDFLAGS" + AC_SUBST([NO_UNUSED_CFLAGS], [-Wno-unused]) +fi +AM_CONDITIONAL([HAVE_GCC], [test "x$GCC" = "xyes"]) + +# Activate internal code +AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_INTERNAL_CODE" + +# CPPFLAGS: C PreProcessor flags +AC_SUBST([AM_CPPFLAGS]) +# CFLAGS: C compiler flags +AC_SUBST([AM_CFLAGS]) +# CXXFLAGS: C++ compiler flags +AC_SUBST([AM_CXXFLAGS]) +# LDFLAGS: Linker flags +AC_SUBST([AM_LDFLAGS]) + +# Check for va_copy() +GP_VA_COPY + +# Note: Do NOT add specific libraries and stuff to the generic _FLAGS. +# Put these into LIBFOO_CFLAGS and LIBFOO_LIBS instead. + + +try_gp2ddb=false +msg_gp2ddb="" +gp_msg_dp2ddb="no" + +AC_ARG_ENABLE([gp2ddb], +[AS_HELP_STRING([--enable-gp2ddb], + [enable EXPERIMENTAL PRE-ALPHA gphoto2 device database code])],[ + if test "x$enableval" = "xyes"; then + try_gp2ddb=true + msg_dp2ddb="(--enable-gp2ddb detected)" + elif test "x$enableval" = "xno"; then + try_gp2ddb=false + msg_dp2ddb="(--disable-gp2ddb detected)" + fi +]) + +AC_PATH_PROG([FLEX], [flex]) +AC_SUBST([FLEX]) +AC_PATH_PROG([BISON], [bison]) +AC_SUBST([BISON]) + +AC_MSG_CHECKING([whether to enable GP2DDB]) +if "$try_gp2ddb"; then + if test -x "$FLEX" && test -x "$BISON"; then + gp_msg_dp2ddb="yes $msg_dp2ddb" + else + AC_MSG_ERROR([Fatal: GP2DDB support requires flex and bison! + +Aborting configuration. + +Install flex and bison into your PATH or run configure with --disable-gp2ddb +to disable GP2DDB support. +]) + fi +else + gp_msg_dp2ddb="no $msg_dp2ddb" +fi +AC_MSG_RESULT([${gp_msg_gp2ddb}]) + +AM_CONDITIONAL([ENABLED_GP2DDB], ["$try_gp2ddb" && test -x "$FLEX" && test -x "$BISON"]) + +if "$try_gp2ddb" && test -x "$FLEX" && test -x "$BISON"; then + gp_msg_gp2ddb="yes $msg_gp2ddb" + AC_DEFINE([ENABLED_GP2DDB], [1], [Whether we have flex and bison for GP2DDB]) +else + gp_msg_gp2ddb="no $msg_gp2ddb" +fi +GP_CONFIG_MSG([GP2DDB support], [${gp_msg_gp2ddb} (EXPERIMENTAL)]) + +dnl check for/set up libtool and libltdl +dnl AC_DISABLE_STATIC +dnl AC_DISABLE_SHARED +dnl AC_LIBLTDL_CONVENIENCE([libltdl]) +dnl AC_WITH_LTDL +dnl AC_LIB_LTDL +AC_DISABLE_STATIC +AC_LIBTOOL_WIN32_DLL +AC_LIBTOOL_DLOPEN +AC_PROG_LIBTOOL + +dnl We are using our own libltdl checks instead of AC_WITH_LTDL +dnl because we do not want to ship our own copy of libltdl any more. +dnl Not shipping libltdl makes it possible to ditch our own autogen.sh +dnl and relying on standard autoconf's "autoreconf". +GP_LIB_LTDL + + +# report on compiler/libtool setup +GP_CONFIG_MSG([Compiler],[${CC}]) +GP_CONFIG_MSG([libltdl includes],[$LTDLINCL]) +GP_CONFIG_MSG([libltdl library],[$LIBLTDL]) + +AC_DEFINE_UNQUOTED(HAVE_CC,"$CC",[The C compiler we're using]) + + +dnl --------------------------------------------------------------------------- +dnl Reference definitions +dnl required before we do the Makevars hack! +dnl --------------------------------------------------------------------------- + +GP_REFERENCES()dnl + + +GP_CONFIG_MSG([Features]) + +dnl --------------------------------------------------------------------------- +dnl i18n support (including some hacks) +dnl --------------------------------------------------------------------------- + +ALL_LINGUAS="cs da de es eu fr hu it ja nl pl ru sv uk vi zh_CN" +GP_GETTEXT_HACK([${PACKAGE}-${LIBGPHOTO2_CURRENT_MIN}],[The gPhoto Team],[${MAIL_GPHOTO_TRANSLATION}]) +AM_GNU_GETTEXT_VERSION([0.14.1]) +AM_GNU_GETTEXT([external]) +AM_PO_SUBDIRS() +AM_ICONV() +GP_GETTEXT_FLAGS() + +dnl FIXME: We have to make sure this works first +dnl AC_CHECK_FUNC(gettext, gettext_without_libintl=true) +# same trick as with libdl: +# if gettext() doesn't require linking against libintl, +# we don't have to check for gettext in libintl. Otherwise +# we may even require libintl. +dnl if test "$gettext_without_libintl" != "true" -a "$USE_NLS" = "yes"; then +dnl AC_CHECK_LIB([intl], [gettext], [INTLLIBS="$INTLLIBS -lintl"]) +dnl fi + +AC_SUBST([localedir],["\$(datadir)/locale"]) +AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\"" + +AC_SYS_LARGEFILE + +AC_MSG_CHECKING([for asm .symver support]) +AC_COMPILE_IFELSE([dnl + AC_LANG_PROGRAM([[]],[[ + int f1() { } + int f2() { } + asm(".symver f1, f@VER1"); + asm(".symver f2, f@@VER2"); + int main(int argc, char **argv) { } + ]])dnl +],[ + AC_DEFINE([HAVE_ASM_SYMVERS],1,[Define if there is asm .symver support.]) + VERSIONMAPLDFLAGS="-Wl,--version-script=\$(srcdir)/libgphoto2.ver" + AC_MSG_RESULT(yes) +],[ + VERSIONMAPLDFLAGS="" + AC_MSG_RESULT(no) +]) +AC_SUBST(VERSIONMAPLDFLAGS) + +dnl --------------------------------------------------------------------------- +dnl FIXME: What is this good for? +dnl Replace `main' with a function in -libs: +dnl --------------------------------------------------------------------------- +AC_CHECK_LIB(ibs, main) + +dnl we use some libm functions in some drivers, so just add -lm +AC_CHECK_LIB(m, sqrt) + + +dnl --------------------------------------------------------------------------- +dnl check for libjpeg +dnl --------------------------------------------------------------------------- +LIBJPEG="" +libjpeg_msg="no" +AC_SUBST(LIBJPEG) +AC_ARG_WITH([jpeg], AS_HELP_STRING([--without-jpeg], [Build without jpeg library (default: no)])) +AS_IF([test "x$with_jpeg" != "xno"], [ + AC_CHECK_LIB(jpeg,jpeg_start_decompress,[ + AC_CHECK_HEADER(jpeglib.h,[ + AC_DEFINE(HAVE_LIBJPEG,1,[define if we found LIBJPEG and its headers]) + LIBJPEG="-ljpeg" + libjpeg_msg="yes" + ]) + ]) +]) +GP_CONFIG_MSG([JPEG mangling support],[${libjpeg_msg}]) + +dnl --------------------------------------------------------------------------- +dnl check for libxml2 +dnl --------------------------------------------------------------------------- +GP_CHECK_LIBRARY([LIBXML2],[libxml-2.0],[>= 2.0], + [libxml/parser.h],[xmlFirstElementChild],[],[], + [default-on], + [http://xmlsoft.org] +) +GP_CONFIG_MSG([XML support for Olympus E series],[${have_LIBXML2}]) + +GP_CHECK_LIBRARY([LIBCURL],[libcurl],[>= 7.1], + [curl/curl.h],[curl_easy_init],[],[], + [default-on], + [https://www.curl.org] +) +GP_CONFIG_MSG([CURL support for Lumix Wifi],[${have_LIBCURL}]) + +AM_CONDITIONAL([BUILD_LUMIX], [test -n "$have_LIBCURL" && test "X$have_LIBCURL" != "Xno" && test -n "$have_LIBXML2" && test "X$have_LIBXML2" != "Xno"]) + +dnl --------------------------------------------------------------------------- +dnl check for libgd +dnl they call it "gdlib" ... confusing. +dnl --------------------------------------------------------------------------- +GP_CHECK_LIBRARY([LIBGD],[gdlib],[>= 2.0],[gd.h],[gdImageCreateTrueColor],[ + # gdlib-config --libs upstream does not include -lgd, but only the dependencies + LIBGD_LIBS="-lgd $LIBGD_LIBS" + +],[],[default-on],[http://www.libgd.org/]) +GP_CONFIG_MSG([libGD conversion support],[${have_LIBGD}]) + +dnl --------------------------------------------------------------------------- +dnl Checks for header files. +dnl --------------------------------------------------------------------------- +AC_HEADER_DIRENT +# before _HEADER_STDC +AC_HEADER_STDC +# after _HEADER_STDC +AC_CHECK_HEADERS([sys/param.h sys/mman.h sys/select.h locale.h memory.h getopt.h unistd.h mcheck.h limits.h sys/time.h langinfo.h]) +AC_C_INLINE([]) +AC_C_CONST([]) +dnl FIXME: AC_STRUCT_TIMEZONE + + +dnl --------------------------------------------------------------------------- +dnl more header/function/def checks +dnl --------------------------------------------------------------------------- + +dnl Checks for typedefs, structures, and compiler characteristics. +AC_TYPE_SIZE_T + +dnl Checks for library functions. +AC_CHECK_FUNCS([getenv getopt getopt_long mkdir setenv strdup strncpy strcpy snprintf sprintf vsnprintf gmtime_r statfs localtime_r lstat inet_aton rand_r]) + +dnl Find out how to get struct tm +AC_STRUCT_TM + +dnl Check for tm_gmtoff in struct tm +AC_MSG_CHECKING([for tm_gmtoff in struct tm]) +AC_COMPILE_IFELSE([dnl +AC_LANG_PROGRAM([[ +#include +#include <$ac_cv_struct_tm> +]], [[ +struct tm tm; +tm.tm_gmtoff; +]])dnl +],[ +AC_DEFINE(HAVE_TM_GMTOFF,1,whether struct tm has tm_gmtoff field) +AC_MSG_RESULT(yes) +],[ +AC_MSG_RESULT(no) +]) + +AC_CHECK_HEADERS([sys/mount.h sys/statfs.h sys/user.h sys/vfs.h],,,[ +#include +#if HAVE_SYS_PARAM_H +# include +#endif +]) + +dnl Check for statfs members +AC_CHECK_MEMBERS([struct statfs.f_bfree, struct statfs.f_bavail, struct statfs.f_favail],,,[ +#include +#ifdef HAVE_SYS_PARAM_H +# include +#endif +#ifdef HAVE_SYS_MOUNT_H +# include +#endif +#ifdef HAVE_SYS_VFS_H +# include +#endif +#ifdef HAVE_SYS_STATFS_H +# include +#endif +]) + +AC_CHECK_MEMBERS([struct statvfs.f_blocks],,,[ +#ifdef HAVE_SYS_STATVFS_H +# include +#endif +]) + + +dnl --------------------------------------------------------------------------- +dnl Checks for integer types. +dnl --------------------------------------------------------------------------- +dnl +dnl FIXME: Test AC_TYPE_UINT32_T & Co and check whether that could work for us. +dnl Potential problem: The required autoconf version. +dnl Note: We are already using AC_TYPE_SIZE_T somewhere else in here. + + +dnl Create a stdint.h-like file containing size-specific integer definitions +dnl that will always be available +AX_NEED_STDINT_H([libgphoto2/_stdint.h]) + +dnl Create a header file containing NetBSD-style byte swapping macros +AC_NEED_BYTEORDER_H([libgphoto2/gphoto2-endian.h]) + + +dnl --------------------------------------------------------------------------- +dnl Old libtool stuff left here for reference purposes. For now. +dnl dnl --------------------------------------------------------------------------- +dnl dnl Check for libtool: lt_dlforeachfile has been introduced in +dnl dnl libtool-1.4. However, there are still systems out +dnl dnl there running libtool-1.3. For those, we will need +dnl dnl dlopen. Note that on some systems (e.g. FreeBSD) +dnl dnl -ldl isn't needed. +dnl dnl --------------------------------------------------------------------------- +dnl AC_PROG_LIBTOOL +dnl have_ltdl=false +dnl ltdl_msg="no" +dnl try_ltdl=false +dnl AC_ARG_WITH(ltdl, [ --with-ltdl Use ltdl],[ +dnl if test x$withval = xyes; then +dnl try_ltdl=true +dnl fi]) +dnl if $try_ltdl; then +dnl AC_CHECK_LIB(ltdl, lt_dlforeachfile,[ +dnl AC_CHECK_HEADER(ltdl.h,[ +dnl AC_DEFINE(HAVE_LTDL,1,[whether we use libltdl]) +dnl LTDL_LIBS="-lltdl" +dnl ltdl_msg="yes" +dnl have_ltdl=true])]) +dnl fi +dnl if ! $have_ltdl; then +dnl AC_CHECK_FUNC(dlopen,,[ +dnl AC_CHECK_LIB(dl, dlopen,[LTDL_LIBS="-ldl"],[AC_ERROR([ +dnl *** Could not determine how to handle +dnl *** shared libraries!])])]) +dnl fi +dnl AC_SUBST(LTDL_LIBS) + + +dnl should be obsolete (we're not using grep and tr any more) +dnl dnl Solaris hack for grep and tr +dnl [ +dnl if test -n "`echo $host_os | grep '[sS]olaris'`"; then +dnl TR=/usr/xpg4/bin/tr +dnl GREP=/usr/xpg4/bin/grep +dnl else +dnl TR=tr +dnl GREP=grep +dnl fi +dnl ] + + +dnl --------------------------------------------------------------------------- +dnl utility installation directory +dnl +dnl If your system wants utilities installed into ${libexecdir} instead, then +dnl run configure with 'utilsdir=${libexecdir}/${PACKAGE_TARNAME}'. +dnl --------------------------------------------------------------------------- + +AC_SUBST([PACKAGE_TARNAME]) + +if test "x${utilsdir}" = "x"; then utilsdir="\${libdir}/\${PACKAGE_TARNAME}"; fi +AC_ARG_VAR([utilsdir],[Directory where utilities like print-camera-list will be installed]) +AC_SUBST([utilsdir]) + +GP_UDEV([true]) + + +dnl --------------------------------------------------------------------------- +dnl camlib installation directory +dnl --------------------------------------------------------------------------- +AC_MSG_CHECKING([where to install camlibs]) +AC_ARG_WITH([camlibdir],[AS_HELP_STRING( + [--with-camlibdir=], + [install camlibs in directory ])dnl +],[ + camlibdir="$withval" +],[ + camlibdir="\${libdir}/${PACKAGE_TARNAME}/${PACKAGE_VERSION}" +]) +AC_MSG_RESULT([${camlibdir}]) +AC_SUBST([camlibdir]) +AM_CPPFLAGS="$AM_CPPFLAGS -DCAMLIBS=\\\"\$(camlibdir)\\\"" + + +dnl --------------------------------------------------------------------------- +dnl Camera drivers (camlibs) +dnl --------------------------------------------------------------------------- +dnl * See m4m/gp-camlibs.m4 for usage details, e.g. for marking camlibs as +dnl unlisted. +dnl * Please add new camlibs in alphabetical order. +dnl * Selective build: +dnl $ make -C camlibs canon.la ptp2.la +dnl * Selective install: +dnl $ make CAMLIBS="canon.la ptp2.la" install-camlibs +GP_CAMLIB([adc65],[outdated])dnl very old serial camera +GP_CAMLIB([agfa_cl20],[outdated])dnl +GP_CAMLIB([aox],[outdated])dnl +GP_CAMLIB([ax203])dnl +GP_CAMLIB([barbie],[outdated])dnl +GP_CAMLIB([canon])dnl +GP_CAMLIB([casio_qv],[outdated])dnl +GP_CAMLIB([clicksmart310],[outdated])dnl +GP_CAMLIB([digigr8])dnl +GP_CAMLIB([digita],[outdated])dnl +GP_CAMLIB([dimera3500],[outdated])dnl +GP_CAMLIB([directory])dnl +GP_CAMLIB([enigma13],[outdated])dnl +GP_CAMLIB([fuji],[outdated])dnl +GP_CAMLIB([gsmart300],[outdated])dnl +GP_CAMLIB([hp215],[outdated])dnl +GP_CAMLIB([iclick],[outdated])dnl +GP_CAMLIB([jamcam],[outdated])dnl +GP_CAMLIB([jd11],[outdated])dnl +GP_CAMLIB([jl2005a])dnl +GP_CAMLIB([jl2005c])dnl +GP_CAMLIB([kodak_dc120],[outdated])dnl +GP_CAMLIB([kodak_dc210],[outdated])dnl +GP_CAMLIB([kodak_dc240])dnl +GP_CAMLIB([kodak_dc3200],[outdated])dnl +GP_CAMLIB([kodak_ez200],[outdated])dnl +GP_CAMLIB([konica],[outdated])dnl +GP_CAMLIB([konica_qm150],[outdated])dnl +GP_CAMLIB([largan],[outdated])dnl +GP_CAMLIB([lg_gsm],[outdated])dnl +GP_CAMLIB([lumix])dnl +GP_CAMLIB([mars])dnl +GP_CAMLIB([dimagev])dnl +GP_CAMLIB([mustek],[outdated])dnl +GP_CAMLIB([panasonic_coolshot],[outdated])dnl +GP_CAMLIB([panasonic_l859],[outdated])dnl +GP_CAMLIB([panasonic_dc1000],[outdated])dnl +GP_CAMLIB([panasonic_dc1580],[outdated])dnl +GP_CAMLIB([pccam300],[outdated])dnl +GP_CAMLIB([pccam600],[outdated])dnl +GP_CAMLIB([pentax])dnl +GP_CAMLIB([polaroid_pdc320],[outdated])dnl +GP_CAMLIB([polaroid_pdc640],[outdated])dnl +GP_CAMLIB([polaroid_pdc700],[outdated])dnl +GP_CAMLIB([ptp2])dnl +GP_CAMLIB([ricoh],[outdated])dnl +GP_CAMLIB([ricoh_g3])dnl +GP_CAMLIB([samsung],[outdated])dnl +GP_CAMLIB([sierra])dnl +GP_CAMLIB([sipix_blink], [unlisted])dnl did not find out the correct decompressor, unfinished +GP_CAMLIB([sipix_blink2],[outdated])dnl +GP_CAMLIB([sipix_web2],[outdated])dnl +GP_CAMLIB([smal],[outdated])dnl +GP_CAMLIB([sonix])dnl +GP_CAMLIB([sony_dscf1],[outdated])dnl +GP_CAMLIB([sony_dscf55],[outdated])dnl +GP_CAMLIB([soundvision],[outdated])dnl +GP_CAMLIB([spca50x],[outdated])dnl +GP_CAMLIB([sq905])dnl +GP_CAMLIB([st2205])dnl +GP_CAMLIB([stv0674],[outdated])dnl +GP_CAMLIB([stv0680],[outdated])dnl +GP_CAMLIB([sx330z],[outdated])dnl +GP_CAMLIB([template], [unlisted])dnl +GP_CAMLIB([topfield])dnl +GP_CAMLIB([toshiba_pdrm11],[outdated])dnl +GP_CAMLIB([tp6801])dnl +dnl +GP_CAMLIBS_DEFINE()dnl +GP_CONFIG_MSG([Camlibs],[${camlibs}]) + + +dnl -------------------------------------------------------------------- +dnl documentation +dnl -------------------------------------------------------------------- +GP_CHECK_DOC_DIR()dnl +GP_CHECK_DOXYGEN()dnl +GP_INTERNAL_DOCS()dnl +GP_BUILD_GTK_DOCS()dnl +AC_SUBST([camlibdocdir], ['${docdir}/camlibs']) + + +dnl -------------------------------------------------------------------- +dnl initialize convenience packaging +dnl -------------------------------------------------------------------- +GPKG_CHECK_RPM()dnl Check wether to package for a system using RPM +GPKG_CHECK_LINUX()dnl Check wether to package for a linux system + + +dnl -------------------------------------------------------------------- +dnl guess directory to install *.pc into +dnl -------------------------------------------------------------------- +pkgconfigdir='${libdir}/pkgconfig' +AC_SUBST([pkgconfigdir]) + + +dnl --------------------------------------------------------------------------- +dnl libexif: The CameraFilesystem can use libexif for extracting thumbnails +dnl out of EXIF data. Similarly, it can extract the mtime of +dnl a file. +dnl libexif is available from +dnl http://www.sourceforge.net/projects/libexif +dnl --------------------------------------------------------------------------- +GP_CHECK_LIBRARY([LIBEXIF],[libexif],[>= 0.6.13], + [libexif/exif-data.h],[exif_data_new],[ +AC_MSG_CHECKING([whether we use a version of libexif with ExifData.ifd[[]]]) +# Check for libexif version +dnl FIXME: Use AC_CHECK_MEMBER? +CPPFLAGS_save="$CPPFLAGS" +CPPFLAGS="$LIBEXIF_CFLAGS" +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ +/* CC=$CC */ +/* CPPFLAGS=${CPPFLAGS} */ +/* LDFLAGS=${LDFLAGS} */ +#include +#include +]],[[ + ExifData ed; + ExifContent *ec0, *ec1; + ec0 = &ed.ifd[0]; + ec1 = &ed.ifd[1]; +]])], [ + AC_DEFINE([HAVE_LIBEXIF_IFD],1, + [whether we use a version of libexif with ExifData.ifd[[]]]) + AC_MSG_RESULT([yes]) +], [ + AC_MSG_RESULT([no]) +]) +CPPFLAGS="$CPPFLAGS_save" +],[],[default-on],[http://www.sourceforge.net/projects/libexif])dnl + + +dnl FIXME: Is this accurate? +AM_CONDITIONAL([HAVE_CXX], [test -n "$CXX" && test "X$CXX" != "Xno"]) + + +dnl --------------------------------------------------------------------------- +dnl Configure subprojects +dnl --------------------------------------------------------------------------- +if test -d "$srcdir/libgphoto2_port"; then + AC_CONFIG_SUBDIRS([libgphoto2_port]) +else + AC_MSG_ERROR([ +*** Hey, where have you hidden my libgphoto2_port? +*** I needed that! +]) +fi + + +# --------------------------------------------------------------------------- +# Create output files +# --------------------------------------------------------------------------- +AC_CONFIG_FILES([ +Makefile +gphoto2-config +camlibs/Makefile +camlibs/canon/doc/Makefile +camlibs/konica/localization/Makefile +gphoto-m4/Makefile +libgphoto2/Makefile +libgphoto2.pc +libgphoto2-uninstalled.pc +examples/Makefile +tests/Makefile +tests/ddb/Makefile +tests/ddb/check-ddb.sh +packaging/Makefile +packaging/linux-hotplug/Makefile +packaging/generic/Makefile +packaging/rpm/Makefile +packaging/rpm/package.spec +po/Makefile.in +doc/Makefile +doc/Doxyfile +doc/Doxyfile-internals +doc/api/Makefile +],[ +dnl This relies on this code being called for each of the above files +dnl with ac_file set to the filename. + if echo "$ac_file" | grep '.sh$' > /dev/null; then + if test -f "$ac_file"; then + chmod +x "$ac_file" + fi + fi +]) +AC_OUTPUT + +if test "x$CDPATH" != "x" +then + echo + echo "***********************************************************" + echo "* You have CDPATH set. You may have to run \"unset CDPATH\" *" + echo "* before running \"make dist\" or \"make rpm\". *" + echo "***********************************************************" +fi + +GP_CONFIG_OUTPUT + +dnl Catch the Gentoo folks about to shoot themselves in the foot. +dnl Just enabling "foo" often does not make a camera made by +dnl manufacturer "Foo" work. +if test "x$camlibs" = "xall"; then + : +else + GP_CAMLIBS_WARNING +fi + +echo "Please check whether the configuration I detected matches what you +would like to have. E.g. make sure that USB support is there if you +intend to use USB cameras with $PACKAGE_NAME. + +Please also check that PKG_CONFIG_PATH contains + ${pkgconfigdir} +before compiling any libgphoto2 frontend. +" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/coverity-model.c b/lib/hardware/sensors/gphoto/libgphoto2-master/coverity-model.c new file mode 100644 index 00000000..9874ed3f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/coverity-model.c @@ -0,0 +1,71 @@ +/* This pseudo-C file is uploaded to Coverity for modeling. */ +/* from ptp2 */ + +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +typedef unsigned long long uint64_t; + +typedef void *PTPParams; +typedef void *PTPContainer; + +uint16_t htod16p (PTPParams *params, uint16_t var) { __coverity_tainted_data_return__(); } +uint16_t dtoh16p (PTPParams *params, uint16_t var) { __coverity_tainted_data_return__(); } +uint16_t htole16(uint16_t var) { __coverity_tainted_data_return__(); } +uint16_t htobe16(uint16_t var) { __coverity_tainted_data_return__(); } +void htod16ap (PTPParams *params, unsigned char *a, uint16_t val) { __coverity_tainted_data_argument__(a); } +void dtoh16ap (PTPParams *params, unsigned char *a, uint16_t val) { __coverity_tainted_data_argument__(a); } + +uint32_t htod32p (PTPParams *params, uint32_t var) { __coverity_tainted_data_return__(); } +uint32_t dtoh32p (PTPParams *params, uint32_t var) { __coverity_tainted_data_return__(); } +uint32_t htole32 (uint32_t var) { __coverity_tainted_data_return__(); } +uint32_t htobe32 (uint32_t var) { __coverity_tainted_data_return__(); } +void htod32ap (PTPParams *params, unsigned char *a, uint32_t val) { __coverity_tainted_data_argument__(a); } +void dtoh32ap (PTPParams *params, unsigned char *a, uint32_t val) { __coverity_tainted_data_argument__(a); } + +uint64_t dtoh64p (PTPParams *params, uint64_t var) { __coverity_tainted_data_return__(); } +uint64_t htod64p (PTPParams *params, uint64_t var) { __coverity_tainted_data_return__(); } + +void htod64ap (PTPParams *params, unsigned char *a, uint64_t val) { __coverity_tainted_data_argument__(a); } +void dtoh64ap (PTPParams *params, unsigned char *a, uint64_t val) { __coverity_tainted_data_argument__(a); } + +/* gphoto port reading from devices */ +typedef void *GPPort; +int gp_port_read (GPPort *port, char *data, int size) { + __coverity_tainted_data_argument__(data); +} + +int gp_port_usb_msg_read (GPPort *port, int request, int value, int index, char *bytes, int size) { + __coverity_tainted_data_argument__(bytes); +} + +int gp_port_usb_msg_interface_read (GPPort *port, int request, int value, int index, char *bytes, int size) { + __coverity_tainted_data_argument__(bytes); +} + +int gp_port_usb_msg_class_read (GPPort *port, int request, int value, int index, char *bytes, int size) { + __coverity_tainted_data_argument__(bytes); +} + +int gp_port_send_scsi_cmd (GPPort *port, int to_dev, + char *cmd, int cmd_size, + char *sense, int sense_size, + char *data, int data_size) { + if (!to_dev) { + __coverity_tainted_data_argument__(data); + __coverity_tainted_data_argument__(sense); + } +} + +void gp_log_data (const char *domain, const char *data, unsigned int size, const char* format, ...) { + /* considered a tainted sink ... but is not one. */ +} + +uint16_t +ptp_transaction (PTPParams* params, PTPContainer* ptp, + uint16_t flags, uint64_t sendlen, + unsigned char **data, unsigned int *recvlen) { + if ((flags & 0xff) == 0x2) { + __coverity_tainted_data_argument__(data); + __coverity_tainted_data_argument__(recvlen); + } +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/DAEMON b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/DAEMON new file mode 100644 index 00000000..a19a8cba --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/DAEMON @@ -0,0 +1,372 @@ +gPhoto Daemon +-------------------------------------------------------------------- + +(note: this is a specification. it is not implemented!) + +The gPhoto daemon uses the following protocol description. It provides an +interactive way for program to talk and use gPhoto without needing to +have any sort of C bindings. + +This document needs better formatting (color syntax highlighting, structure) + +Overview +-------------------------------------------------------------------- +- The program provides gPhoto with a series of commands. gPhoto can + also send message to the program through 4 notification commands. + +- The arguments to a command are either a number or a string. + If it's a string, you must put double-quotes around it. + +- All commands to gPhoto are answered by an "OK" or "ERROR", possibly + followed by additional data. + +- Designed around simplicity and flexibility. + +- Picture numbering begins at ZERO! + +- Notification will come after issuing a command. + +Example +-------------------------------------------------------------------- + +'>' indicates commands from the program to gPhoto +'<' indicates commands from gPhoto to the program + +To put gphoto2 into a daemon mode, you must run it as "gphoto2 -S". +You can open a pipe and then read/write to that file descriptor. + +here is a session: + +> notification_set 1 +< OK +> camera_list +< OK +< 3 +< Olympus D-220L +< Kodak DC210+ +< Epson 650Z +> camera_Set "Epson 650Z" +< OK +> folder_list "/" +< OK +< 5 +< birthday/ +< PIC0001.JPG +< PIC0002.JPG +< PIC0003.JPG +< PIC0004.JPG +> folder_set "/" +< OK +> file_count +< OK +< 4 +> file_get 0 "/home/scottf" "file0.jpg" +< confirm "Files exists. Overwrite?" +> confirm 1 +< OK +< /home/scottf/file0.jpg +> file_get 1 "/home/scottf" "file1.jpg" +< OK +< /home/scottf/file1.jpg +> file_get 2 "/home/scottf" "file2.jpg" +< confirm "File exists. Overwrite?" +> confirm 0 +< ERROR "Did not save /home/scottf/file2.jpg" + +Commands to the gPhoto daemon +-------------------------------------------------------------------- +setting_set key value + Description: Saves the value of "key" as "value" + Outputs: OK or ERROR + + Example: > setting_set "foo" "bar" + < OK + +setting_get key + Description: Retrieves the value of "key" + Outputs: OK or ERROR + if OK, followed by the value of the key + + Example: > setting_get "foo" + < OK + < bar + +notification_set number + Description: Turns on (value = 1) or off (value = 0) notification + Default: 0 + Outputs: OK or ERROR + + Example: > debug_set 1 + < OK + + +debug_set number + Description: Turns on (value = 1) or off (value = 0) debugging + Default: 0 + Outputs: OK or ERROR + + Example: > debug_set 1 + < OK + +camera_list + Description: Lists the number of cameras and all the camera model names + Outputs: OK or ERROR + if OK, followed by number of cameras, followed by camera models + + Example: > camera_count + < OK + < 3 + < Olympus D-220L + < Kodak DC210+ + < Epson 650Z +camera_set name + Description: Sets the camera name as the chosen camera model + Outputs: OK or ERROR + + Example: > camera_set "Canon S10" + < OK + +camera_abilities [name] + Description: Determines the camera's abilities. The camera name is optional. + If not specified, uses currently set camera. + Please reference gphoto2-datatypes.h for available abilities and + descriptions. + Outputs: OK or ERROR + if OK, followed by number of abilities, followed by abilities + + Example: > camera_abilities "Olympus 3030Z" + < OK + < 13 + < "usb"=1 + < "parallel"=0 + < "ieee1394"=0 + < "serial"=1 + < "speed"=9600 + < "speed"=19200 + < "speed"=38400 + < "speed"=57600 + < "speed"=115200 + < "file_delete"=1 + < "file_preview"=1 + < "file_put"=0 + < "file_capture"=1 + < "config"=1 + +folder_list path + Description: Display the contents of the folder path on the camera. + Outputs: OK or ERROR + if OK, followed by number of entries, followed by the list. + an entry in the list has a trailing '/' if it is a folder. + + Example: > folder_list "/" + < OK + < 4 + < birthday/ + < mountains/ + < PIC001.JPG + < PIC002.JPG + +folder_set path + Description: Sets the current folder. + Outputs: OK or ERROR + + Example: > folder_set "/" + < OK + +file_count + Description: Determines the number of files (pictures, sounds, etc.) in the + current folder. + Outputs: OK or ERROR + if OK, followed by number of files + + Example: > file_count + < OK + < 12 + +file_get number [directory] [filename] + Description: Downloads picture #number from the current folder + * if directory is specified, picture is saved to that directory using + the camera-recommended filename. + * if directory and filename is specified, picture is saved as filename + in the directory. + Outputs: OK or ERROR + if OK: + if just number is specified: + followed by mime-type, size of picture, and picture data + if directory and/or filename is specified: + followed by path and filename of picture + + Example: > file_get 12 + < OK + < image/jpeg + < 98012 + < image data ... . . . .... + or + > file_get 12 "/home/scottf/" + < OK + < /home/scottf/PIC0012.JPG + or + > file_get 12 "/home/scottf/" "picture12.jpg" + < OK + < /home/scottf/picture12.jpg + +file_get_preview number [directory] [filename] + Description: Downloads preview (thumbnail) #number from the current folder + * if directory is specified, preview is saved to that directory using + the camera-recommended filename. + * if directory and filename is specified, picture is saved as filename + in the directory. + Outputs: OK or ERROR + if OK: + if just number is specified: + followed by mime-type, size of preview, and preview data + if directory and/or filename is specified: + followed by path and filename of preview + + Example: > file_get_preview 12 + < OK + < image/jpeg + < 12453 + < image data ... . . . .... + or + > file_get_preview 12 "/home/scottf/" + < OK + < /home/scottf/THUMB0012.JPG + or + > file_get_preview 12 "/home/scottf/" "thumbnail12.jpg" + < OK + < /home/scottf/thumbnail12.jpg + +file_put filename + Description: Uploads the file specified by filename to the camera into the current folder + Outputs: OK or ERROR + + Example: > file_put /home/scottf/picture02.jpg + < OK + +file_delete number + Description: Deletes the file #number in the current folder + Outputs: OK or ERROR + + Example: > file_delete 12 + < OK +config_get + Description: Gets a set of meta-widgets that describe camera configuration options. + (needs explanation on structure) + widget-type "label" value [min max step | choice] + * WINDOW and PAGE are containers. any widget coming after that is put into + the container. + * value is a number, except for TEXT (then value requires double-quotes) + Outputs: OK or ERROR + if OK, followed by number of lines, followed by the meta-widgets + + Example: > config_get + < OK + < 15 + < WINDOW "Olympus Configuration" + < PAGE "Quality" + < RADIO "Resolution" 0 "Standard" + < RADIO "Resolution" 1 "High" + < RADIO "Resolution" 0 "Best" + < RADIO "Compression" 0 "None" + < RADIO "Compression" 0 "Low" + < RADIO "Compression" 1 "High" + < PAGE "Miscellaneous" + < RANGE "Zoom" 3.00 + < TEXT "Camera Name" "Scott's Olympus D-220L" + < MENU "Flash Setting" 0 "Red-eye reduction" + < MENU "Flash Setting" 1 "Auto" + < MENU "Flash Setting" 0 "Forced" + < MENU "Flash Setting" 0 "Blind me" + +config_set "label"=[choice|value] "label"=[choice|value] "label"=[choice|value] ... + Description: Sets the camera configuration + * if RADIO or MENU, "label"="choice" + * for others, "label"=value + Outputs: OK + + Example: > config_set "Resolution"="Best" "Compression"="None" "Zoom"=0.00 + < OK + +capture_to_disk path [filename] + Description: Causes camera to press the shutter, then download and save to disk. + filename is optional + Outputs: OK or ERROR + if OK, followed by picture filename + + Example: > capture_to_disk "/home/scottf" + < OK + < /home/scottf/PIC00012.JPG + or + > capture_to_disk "/home/scottf" "livepicture.jpg" + < OK + < /home/scottflivepicture.jpg + +about + Description: Displays information about the camera library + Outputs: OK or ERROR + if OK, followed by number of lines, then camera library information + + Example: > about + < OK + < 3 + < Scott + < Camera library for foo-bar cameras + < These cameras are kinda silly. + +manual + Description: Displays the camera library manual + Outputs: OK or ERROR + if OK, followed by number of lines, then camera library manual + + Example: > manual + < OK + < 5 + < This camera library is a good library. + < It does not support capturing image though. + < The company that make the camera helped + < by providing information about the communication + < protocol. + +summary + Description: Displays the camera summary + Outputs: OK or ERROR + if OK, followed by number of lines, then camera summary + + Example: > summary + < OK + < 3 + < Battery Percent = 65% + < Free memory is 31Meg + < My height is around 6'4" + +gPhoto notifications +-------------------------------------------------------------------- +These depend on whether or not "notification_set" has been called. +By default, they are turned off. Use "notification_set 1" to turn them +on. + +progress number + Description: Should display the percent done in the current operation + Response: none + Example: < progress 50 + +message "string" + Description: Should display a message to the user (pop-up window) + Response: none + + Example: < message "Don't you want to be a pepper too?" + +status "string" + Description: Should display the status to the user (status bar) + Response: none + + Example: < status "Done with current operation." + +confirm "string" + Description: Should display a "yes" or "no" confirmation box to the user. + Response: confirm 0 (no), confirm 1 (yes), or ERROR + + Example: < confirm "Do you want to delete that file?" + > confirm 1 + (gPhoto will not answer this). diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/Doxyfile-internals.in b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/Doxyfile-internals.in new file mode 100644 index 00000000..b3887701 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/Doxyfile-internals.in @@ -0,0 +1,1218 @@ +# Doxyfile 1.4.2 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = "@PACKAGE_NAME@ (@PACKAGE_TARNAME@) Internals" + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = "@PACKAGE_VERSION@" + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = @DOXYGEN_OUTPUT_DIR@ + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, +# Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese, +# Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian, +# Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, +# Swedish, and Ukrainian. + +OUTPUT_LANGUAGE = English + +# This tag can be used to specify the encoding used in the generated output. +# The encoding is not always determined by the language that is chosen, +# but also whether or not the output is meant for Windows or non-Windows users. +# In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES +# forces the Windows encoding (this is the default for the Windows binary), +# whereas setting the tag to NO uses a Unix-style encoding (the default for +# all platforms other than Windows). + +USE_WINDOWS_ENCODING = NO + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = @top_srcdir@ + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like the Qt-style comments (thus requiring an +# explicit @brief command for a brief description. + +JAVADOC_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the DETAILS_AT_TOP tag is set to YES then Doxygen +# will output the detailed description near the top, like JavaDoc. +# If set to NO, the detailed description appears after the member +# documentation. + +DETAILS_AT_TOP = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = YES + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources +# only. Doxygen will then generate output that is more tailored for Java. +# For instance, namespaces will be presented as packages, qualified scopes +# will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = YES + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = YES + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = YES + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. + +SHOW_DIRECTORIES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from the +# version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the progam writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = YES + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = @top_srcdir@/libgphoto2 @top_srcdir@/gphoto2 @top_srcdir@/libgphoto2_port/gphoto2 @top_srcdir@/libgphoto2_port/libgphoto2_port @top_srcdir@/camlibs/template + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm + +FILE_PATTERNS = *.h *.c + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. + +EXCLUDE_PATTERNS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES (the default) +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES (the default) +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = @HTML_APIDOC_INTERNALS_DIR@ + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compressed HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be +# generated containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, +# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are +# probably better off using the HTML help feature. + +GENERATE_TREEVIEW = YES + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. This is useful +# if you want to understand what is going on. On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_PREDEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = @HAVE_DOT@ + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will +# generate a call dependency graph for every global function or class method. +# Note that enabling this option will significantly increase the time of a run. +# So in most cases it will be better to enable call graphs for selected +# functions only using the \callgraph command. + +CALL_GRAPH = YES + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width +# (in pixels) of the graphs generated by dot. If a graph becomes larger than +# this value, doxygen will try to truncate the graph, so that it fits within +# the specified constraint. Beware that most browsers cannot cope with very +# large images. + +MAX_DOT_GRAPH_WIDTH = 1024 + +# The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height +# (in pixels) of the graphs generated by dot. If a graph becomes larger than +# this value, doxygen will try to truncate the graph, so that it fits within +# the specified constraint. Beware that most browsers cannot cope with very +# large images. + +MAX_DOT_GRAPH_HEIGHT = 1024 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that a graph may be further truncated if the graph's +# image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH +# and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default), +# the graph is not depth-constrained. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, which results in a white background. +# Warning: Depending on the platform used, enabling this option may lead to +# badly anti-aliased labels on the edges of a graph (i.e. they become hard to +# read). + +DOT_TRANSPARENT = YES + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = YES + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- + +# The SEARCHENGINE tag specifies whether or not a search engine should be +# used. If set to NO the values of all tags below this one will be ignored. + +SEARCHENGINE = NO diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/Doxyfile.in b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/Doxyfile.in new file mode 100644 index 00000000..b7031fe1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/Doxyfile.in @@ -0,0 +1,1218 @@ +# Doxyfile 1.4.2 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = "@PACKAGE_NAME@ (@PACKAGE_TARNAME@) API" + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = "@PACKAGE_VERSION@" + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = @DOXYGEN_OUTPUT_DIR@ + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, +# Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese, +# Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian, +# Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, +# Swedish, and Ukrainian. + +OUTPUT_LANGUAGE = English + +# This tag can be used to specify the encoding used in the generated output. +# The encoding is not always determined by the language that is chosen, +# but also whether or not the output is meant for Windows or non-Windows users. +# In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES +# forces the Windows encoding (this is the default for the Windows binary), +# whereas setting the tag to NO uses a Unix-style encoding (the default for +# all platforms other than Windows). + +USE_WINDOWS_ENCODING = NO + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = @top_srcdir@ + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like the Qt-style comments (thus requiring an +# explicit @brief command for a brief description. + +JAVADOC_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the DETAILS_AT_TOP tag is set to YES then Doxygen +# will output the detailed description near the top, like JavaDoc. +# If set to NO, the detailed description appears after the member +# documentation. + +DETAILS_AT_TOP = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = YES + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources +# only. Doxygen will then generate output that is more tailored for Java. +# For instance, namespaces will be presented as packages, qualified scopes +# will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. + +SHOW_DIRECTORIES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from the +# version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the progam writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = YES + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = @top_srcdir@/libgphoto2 @top_srcdir@/gphoto2 @top_srcdir@/libgphoto2_port/gphoto2 @top_srcdir@/libgphoto2_port/libgphoto2_port @top_srcdir@/camlibs/template + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm + +FILE_PATTERNS = *.h *.c + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. + +EXCLUDE_PATTERNS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES (the default) +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES (the default) +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = @HTML_APIDOC_DIR@ + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compressed HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be +# generated containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, +# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are +# probably better off using the HTML help feature. + +GENERATE_TREEVIEW = YES + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. This is useful +# if you want to understand what is going on. On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_PREDEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = @HAVE_DOT@ + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will +# generate a call dependency graph for every global function or class method. +# Note that enabling this option will significantly increase the time of a run. +# So in most cases it will be better to enable call graphs for selected +# functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width +# (in pixels) of the graphs generated by dot. If a graph becomes larger than +# this value, doxygen will try to truncate the graph, so that it fits within +# the specified constraint. Beware that most browsers cannot cope with very +# large images. + +MAX_DOT_GRAPH_WIDTH = 1024 + +# The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height +# (in pixels) of the graphs generated by dot. If a graph becomes larger than +# this value, doxygen will try to truncate the graph, so that it fits within +# the specified constraint. Beware that most browsers cannot cope with very +# large images. + +MAX_DOT_GRAPH_HEIGHT = 1024 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that a graph may be further truncated if the graph's +# image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH +# and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default), +# the graph is not depth-constrained. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, which results in a white background. +# Warning: Depending on the platform used, enabling this option may lead to +# badly anti-aliased labels on the edges of a graph (i.e. they become hard to +# read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- + +# The SEARCHENGINE tag specifies whether or not a search engine should be +# used. If set to NO the values of all tags below this one will be ignored. + +SEARCHENGINE = NO diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/Makefile.am new file mode 100644 index 00000000..343d3da8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/Makefile.am @@ -0,0 +1,107 @@ +SUBDIRS = api + +old_EXTRA_DIST = DAEMON build_OS2.txt \ + camlib_devel.lyx \ + camlib_devel-portmon.eps camlib_devel-repeater.eps \ + camlib_devel.sgml camlib_devel.txt camlib_devel-y.eps \ + frontend_devel.lyx frontend_devel.sgml frontend_devel.txt \ + libgphoto2.3 libgphoto2_port.3 + +man_MANS = libgphoto2.3 libgphoto2_port.3 + +# doc_DATA = FAQ faq.xml +######################################################################## +# Conditional rules, depending on tool availability +######################################################################## + +if HAVE_DOXYGEN + +DOXYGEN_STAMPS = +LOCAL_INSTALL = +LOCAL_UNINSTALL = +LOCAL_CLEAN = + + +# FIXME: Depend on source files. +DOXYGEN_STAMPS += $(HTML_APIDOC_DIR).stamp +$(HTML_APIDOC_DIR).stamp: Doxyfile + doxygen Doxyfile + echo > $@ + +$(HTML_APIDOC_DIR).tar.gz: $(HTML_APIDOC_DIR).stamp + (cd $(DOXYGEN_OUTPUT_DIR) && $(AMTAR) chof - $(HTML_APIDOC_DIR) | GZIP=--best gzip -c) > $@ + +$(HTML_APIDOC_INTERNALS_DIR).tar.gz: $(HTML_APIDOC_INTERNALS_DIR).stamp + (cd $(DOXYGEN_OUTPUT_DIR) && $(AMTAR) chof - $(HTML_APIDOC_INTERNALS_DIR) | GZIP=--best gzip -c) > $@ + +LOCAL_INSTALL += install-apidocs +install-apidocs: $(HTML_APIDOC_DIR).stamp + mkdir -p "$(DESTDIR)$(docdir)" + find "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_DIR)" \ + \( -type d -exec chmod 0755 {} \; \) -or \ + \( -type f -exec chmod 0644 {} \; \) + (unset CDPATH; cd "$(DOXYGEN_OUTPUT_DIR)" && tar cpf - "$(HTML_APIDOC_DIR)") \ + | (cd "$(DESTDIR)$(docdir)" && tar xpf -) + +LOCAL_UNINSTALL += uninstall-apidocs +uninstall-apidocs: + rm -rf "$(DESTDIR)$(docdir)/$(HTML_APIDOC_DIR)" + +LOCAL_CLEAN += clean-apidocs +clean-apidocs: + rm -rf "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_DIR)" + rm -f $(HTML_APIDOC_DIR).stamp + rm -f $(HTML_APIDOC_DIR).tar.gz + +if ENABLE_INTERNAL_DOCS + +DOXYGEN_STAMPS += $(HTML_APIDOC_INTERNALS_DIR).stamp +# FIXME: Depend on source files. +$(HTML_APIDOC_INTERNALS_DIR).stamp: Doxyfile-internals + doxygen Doxyfile-internals + echo > $@ + +LOCAL_INSTALL += install-apidocs-internals +install-apidocs-internals: $(HTML_APIDOC_INTERNALS_DIR).stamp + mkdir -p "$(DESTDIR)$(docdir)" + find "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_INTERNALS_DIR)" \ + \( -type d -exec chmod 0755 {} \; \) -or \ + \( -type f -exec chmod 0644 {} \; \) + (unset CDPATH; cd "$(DOXYGEN_OUTPUT_DIR)" && tar cpf - "$(HTML_APIDOC_INTERNALS_DIR)") \ + | (cd "$(DESTDIR)$(docdir)" && tar xpf -) + +LOCAL_UNINSTALL += uninstall-apidocs-internals +uninstall-apidocs-internals: + rm -rf "$(DESTDIR)$(docdir)/$(HTML_APIDOC_INTERNALS_DIR)" + +LOCAL_CLEAN += clean-apidocs-internals +clean-apidocs-internals: + rm -rf "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_INTERNALS_DIR)" + rm -f $(HTML_APIDOC_INTERNALS_DIR).stamp + rm -f $(HTML_APIDOC_INTERNALS_DIR).tar.gz + +endif + +all-local: $(DOXYGEN_STAMPS) + +install-data-local: $(LOCAL_INSTALL) + +uninstall-local: $(LOCAL_UNINSTALL) + +clean-local: $(LOCAL_CLEAN) + rm -rf $(DOXYGEN_OUTPUT_DIR) + +doc_EXTRA_DIST = $(HTML_APIDOC_DIR).tar.gz + +doc_DATA = README.apidocs + +CLEANFILES = $(DOXYGEN_STAMPS) + +endif + + +######################################################################## +# Common part +######################################################################## + +EXTRA_DIST = $(doc_EXTRA_DIST) Doxyfile.in README.apidocs $(old_EXTRA_DIST) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/README.apidocs b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/README.apidocs new file mode 100644 index 00000000..0d78f7b1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/README.apidocs @@ -0,0 +1,8 @@ +Rules for the API docs: + + 1. DO NOT DOCUMENT ANYTHING YET + 2. If you know a method to keep API docs and internal docs apart, with + doxygen, please tell us. + 3. If this has been solved, start documenting the external interface. + +Thank you. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/Makefile.am new file mode 100644 index 00000000..86015b87 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/Makefile.am @@ -0,0 +1,10 @@ +## Process this file with automake to produce Makefile.in + +# The name of the module. +DOC_MODULE=gphoto2 + +# The directory containing the source code (if it contains documentation). +DOC_SOURCE_DIR=../../libgphoto2 + +# include common doc generation rules +include $(top_srcdir)/libgphoto2_port/doc/DocRules.am diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/gphoto2-api.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/gphoto2-api.sgml new file mode 100644 index 00000000..26c93092 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/gphoto2-api.sgml @@ -0,0 +1,159 @@ + + + + + + + + + +]> + + + + GPhoto2 API Reference Manual + + + Lutz + Müller + +
+ lutz@users.sf.net +
+
+
+
+ + + 2000 + The Free Software Foundation + + + + + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free + Documentation License, Version 1.1 or any later + version published by the Free Software Foundation with no + Invariant Sections, no Front-Cover Texts, and no Back-Cover + Texts. You may obtain a copy of the GNU Free + Documentation License from the Free Software + Foundation by visiting their Web site or by writing + to: + +
+ The Free Software Foundation, Inc., + 59 Temple Place - Suite 330, + Boston, MA 02111-1307, + USA +
+
+
+
+ + GPhoto2 Overview + +GPhoto2 is a library for accessing a wide range of digital cameras. +It works on many UNIX-like platforms. GPhoto2 is released under the GNU +Library General Public License (GNU LGPL), which allows for flexible +licensing of client applications. GPhoto2 is written entirely in C and +has an object-oriented architecture that makes it easy for other +programming languages to access GPhoto2. + + +GPhoto2 doesn't depend on any external library. However, it is +strongly recommended that you have some library installed that handles +locking of serial ports. GPhoto2 currently supports + + + ttylock.h + + + ttyLock, a header file provided by several locking libraries + (i.e. LockDev), and + + + + + lockdev.h + + + LockDev, a library available for several systems including + Red-Hat and Debian + + + + + + + + + + GPhoto2 Utilities + + GPhoto2's core provides some utility functions and general + datatypes. In contrast to the + objects presented later, they + cannot be classified as objects, and are therefore presented upfront. + + +&gphoto2-result; +&gphoto2-library; + + + + + GPhoto2 Objects + + In order to simplify programming with GPhoto2, an object oriented + approach has been used. The different objects are presented in + the following sections. + + +&gphoto2-camera; +&gphoto2-filesys; +&gphoto2-widget; +&gphoto2-list; +&gphoto2-abilities-list; +&gphoto2-file; + + + + + License + + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General + Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) + any later version. + + + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Library General Public License for + more details. + + + + You may obtain a copy of the GNU Library General + Public License from the Free Software Foundation by + visiting their Web + site or by writing to: + +
+ Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307 + USA +
+
+
+ +
diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/gphoto2-sections.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/gphoto2-sections.txt new file mode 100644 index 00000000..533fcd78 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/gphoto2-sections.txt @@ -0,0 +1,303 @@ +
+gphoto2-library +CameraLibrary +CameraLibraryIdFunc +CameraLibraryAbilitiesFunc +CameraLibraryInitFunc + +camera_id +camera_abilities +camera_init + +
+ +
+gphoto2-abilities-list +CameraAbilitiesList +CameraDriverStatus +CameraOperation +CameraFileOperation +CameraFolderOperation +CameraAbilities +CameraAbilitiesList + +gp_abilities_list_new +gp_abilities_list_free + +gp_abilities_list_load +gp_abilities_list_detect +gp_abilities_list_count +gp_abilities_list_lookup_model +gp_abilities_list_get_abilities +gp_abilities_list_append + +
+ +
+gphoto2-camera +Camera + +CameraExitFunc + +CameraGetConfigFunc +CameraSetConfigFunc + +CameraCaptureFunc +CameraCapturePreviewFunc + +CameraSummaryFunc +CameraManualFunc +CameraAboutFunc + +CameraPrePostFunc + +CameraPrivateLibrary +CameraPrivateCore + +CameraText +CameraFunctions +Camera + +gp_camera_new +gp_camera_ref +gp_camera_unref +gp_camera_free + +CameraStatusFunc +gp_camera_set_status_func + +CameraProgressFunc +gp_camera_set_progress_func + +CameraMessageFunc +gp_camera_set_message_func + +gp_camera_set_error +gp_camera_get_error + +gp_camera_status +gp_camera_progress +gp_camera_message + +gp_camera_set_abilities +gp_camera_get_abilities + +gp_camera_set_port_info +gp_camera_get_port_info + +gp_camera_get_port_speed +gp_camera_set_port_speed + +gp_camera_init +gp_camera_exit + +CameraFilePath +CameraCaptureType +gp_camera_capture +gp_camera_capture_preview + +gp_camera_get_config +gp_camera_set_config + +gp_camera_folder_list_files +gp_camera_folder_list_folders +gp_camera_folder_put_file +gp_camera_folder_delete_all +gp_camera_folder_make_dir +gp_camera_folder_remove_dir + +gp_camera_file_get +gp_camera_file_delete + +gp_camera_file_get_info +gp_camera_file_set_info + +gp_camera_get_manual +gp_camera_get_summary +gp_camera_get_about + +
+ +
+gphoto2-widget +CameraWidget +CameraWidget +gp_widget_new +gp_widget_free +gp_widget_ref +gp_widget_unref +gp_widget_append +gp_widget_prepend +gp_widget_count_children +gp_widget_get_child +gp_widget_get_child_by_label +gp_widget_get_child_by_id +gp_widget_get_root +gp_widget_set_info +gp_widget_get_info +gp_widget_get_id +gp_widget_get_type +gp_widget_get_label +gp_widget_set_value +gp_widget_get_value +gp_widget_get_range +gp_widget_add_choice +gp_widget_count_choices +gp_widget_get_choice +gp_widget_changed +
+ +
+gphoto2-result +GPhoto2 error codes +GP_ERROR_CORRUPTED_DATA +GP_ERROR_PATH_NOT_ABSOLUTE +GP_ERROR_DIRECTORY_EXISTS +GP_ERROR_FILE_EXISTS +GP_ERROR_FILE_NOT_FOUND +GP_ERROR_DIRECTORY_NOT_FOUND +GP_ERROR_MODEL_NOT_FOUND + +gp_result_as_string + +
+ +
+gphoto2-list +CameraList +CameraList + +gp_list_new +gp_list_ref +gp_list_unref +gp_list_free + +gp_list_count + +gp_list_set_name +gp_list_set_value + +gp_list_get_name +gp_list_get_value + +gp_list_append +gp_list_populate +gp_list_reset +gp_list_sort + +
+ +
+gphoto2-file +CameraFile +CameraFile + +gp_file_new +gp_file_ref +gp_file_unref +gp_file_free + +gp_file_append + +gp_file_open +gp_file_save +gp_file_clean + +gp_file_get_name +gp_file_set_name + +CameraFileType +gp_file_get_type +gp_file_set_type + +GP_MIME_AVI +GP_MIME_BMP +GP_MIME_CRW +GP_MIME_JPEG +GP_MIME_PGM +GP_MIME_PNG +GP_MIME_PPM +GP_MIME_QUICKTIME +GP_MIME_RAW +GP_MIME_TIFF +GP_MIME_UNKNOWN +GP_MIME_WAV + +gp_file_get_mime_type +gp_file_set_mime_type +gp_file_detect_mime_type +gp_file_adjust_name_for_mime_type + +gp_file_convert +gp_file_copy +gp_file_get_last_chunk +gp_file_set_color_table +gp_file_set_conversion_method +gp_file_set_header +gp_file_set_width_and_height + +gp_file_get_data_and_size +gp_file_set_data_and_size + +
+ +
+gphoto2-filesys +CameraFilesystem +CameraFilesystem + +CameraFilePermissions +CameraFileStatus + +CameraFileInfoFields +CameraFileInfoAudio +CameraFileInfoPreview +CameraFileInfoFile +CameraFileInfo + +gp_filesystem_new +gp_filesystem_free + +CameraFilesystemGetFileFunc +CameraFilesystemDeleteFileFunc +gp_filesystem_set_file_funcs + +CameraFilesystemGetInfoFunc +CameraFilesystemSetInfoFunc +gp_filesystem_set_info_funcs + +CameraFilesystemPutFileFunc +CameraFilesystemDeleteAllFunc +CameraFilesystemDirFunc +gp_filesystem_set_folder_funcs + +CameraFilesystemListFunc +gp_filesystem_set_list_funcs + +gp_filesystem_list_files +gp_filesystem_list_folders + +gp_filesystem_get_file +gp_filesystem_put_file +gp_filesystem_delete_file +gp_filesystem_delete_all +gp_filesystem_make_dir +gp_filesystem_remove_dir + +gp_filesystem_get_info +gp_filesystem_set_info +gp_filesystem_set_info_noop + +gp_filesystem_number +gp_filesystem_name +gp_filesystem_get_folder +gp_filesystem_count + +gp_filesystem_reset +gp_filesystem_append +gp_filesystem_set_file_noop + +gp_filesystem_dump + +
+ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-abilities-list.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-abilities-list.sgml new file mode 100644 index 00000000..ea7184ed --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-abilities-list.sgml @@ -0,0 +1,225 @@ + +CameraAbilitiesList + + +A list containing supported cameras and the features of those + + + +A #CameraAbilitiesList contains every camera model that is supported by gphoto2 together with the features of those camera models. + + + +Camera drivers will get in contact with a #CameraAbilitiesList when the #CameraLibraryAbilitiesFunc is called. + + + +Frontends will use the #CameraAbilitiesList as an entry point to gphoto2. In +order to set up a #Camera, you need to call #gp_camera_set_abilities. The +#CameraAbilities you pass to that function can be retreived from a +#CameraAbilitiesList. + + Using the #CameraAbilitiesList + + #CameraAbilitiesList *list; + #CameraAbilities abilities; + int n; + + /* Create a new list */ + #gp_abilities_list_new (&list); + + /* Scan the system for camera drivers */ + #gp_abilities_list_load (list); + + /* Retreive the abilities of a specific model */ + n = #gp_abilities_list_lookup_model (list, "HP PhotoSmart C30"); + #gp_abilities_list_get_abilities (list, n, &abilities); + #gp_abilities_list_free (list); + + + + + + +#CameraLibraryAbilitiesFunc + + + + + + + + This flag indicates the stability of the driver. + #GP_DRIVER_STATUS_EXPERIMENTAL is set initially. Once the driver is ready + for testing, the flag #GP_DRIVER_STATUS_TESTING is set. Finally, if testing + has shown that the driver is usable and no bugs can be found any longer, + the flag is set to #GP_DRIVER_STATUS_PRODUCTION. + + +@GP_DRIVER_STATUS_PRODUCTION: Driver is functional, there are no apparent bugs. +@GP_DRIVER_STATUS_TESTING: Driver is functional, but needs testing. +@GP_DRIVER_STATUS_EXPERIMENTAL: Driver is experimental and does not yet + work properly. +@GP_DRIVER_STATUS_DEPRECATED: + + + + This flag indicates what operations a camera supports. It is useful in case + a frontend want to determine what operations a camera supports in order to + adjust the GUI for this model. Get the abilities for a specific model + from the #CameraAbilitiesList using #gp_abilities_list_get_abilities + or from a #Camera using #gp_camera_get_abilities. + + +@GP_OPERATION_NONE: No operation is supported. +@GP_OPERATION_CAPTURE_IMAGE: The camera can capture images. +@GP_OPERATION_CAPTURE_VIDEO: The camera can capture videos. +@GP_OPERATION_CAPTURE_AUDIO: The camera can capture audio data. +@GP_OPERATION_CAPTURE_PREVIEW: The camera can capture live previews +@GP_OPERATION_CONFIG: The camera offers some configuration options. + + + + Similarly to #CameraOperations, this flag indicates what file operations + a specific camera model supports. + + +@GP_FILE_OPERATION_NONE: No file operation supported. +@GP_FILE_OPERATION_DELETE: The camera can delete files. +@GP_FILE_OPERATION_PREVIEW: The camera can supply previews of files. +@GP_FILE_OPERATION_RAW: The camera can supply raw data. +@GP_FILE_OPERATION_AUDIO: The camera supports audio annotations. +@GP_FILE_OPERATION_EXIF: + + + + Similarly to #CameraFolderOperations, this flag indicates what folder + operations a specific camera model supports. + + +@GP_FOLDER_OPERATION_NONE: No operation supported. +@GP_FOLDER_OPERATION_DELETE_ALL: The camera can delete all pictures of a folder + at once. +@GP_FOLDER_OPERATION_PUT_FILE: It is possible to upload files. +@GP_FOLDER_OPERATION_MAKE_DIR: The camera can create directories. +@GP_FOLDER_OPERATION_REMOVE_DIR: The camera can remove directories. + + + + This structure is used to inform frontends about what abilities a + specific camera model has. In addition, it is used by gphoto2 to + determine what library to load on #gp_camera_set_abilities. + For retreiving abilities of a specific model, create a + #CameraAbilitiesList and use #gp_abilities_list_load in order to scan + the system for drivers. Then, retreive the #CameraAbilities from this list. + + +@model: +@status: +@port: +@speed: +@operations: +@file_operations: +@folder_operations: +@usb_vendor: +@usb_product: +@usb_class: +@usb_subclass: +@usb_protocol: +@library: +@id: +@reserved1: +@reserved2: +@reserved3: +@reserved4: +@reserved5: +@reserved6: +@reserved7: +@reserved8: + + + + + + + + + + + + +@list: +@Returns: + + + + + + + +@list: +@Returns: + + + + + + + +@list: +@context: +@Returns: + + + + + + + +@list: +@info_list: +@l: +@context: +@Returns: + + + + + + + +@list: +@Returns: + + + + + + + +@list: +@model: +@Returns: + + + + + + + +@list: +@index: +@abilities: +@Returns: + + + + + + + +@list: +@abilities: +@Returns: + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-camera.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-camera.sgml new file mode 100644 index 00000000..3f4861aa --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-camera.sgml @@ -0,0 +1,575 @@ + +Camera + + +The structure giving you access to your camera + + + +This section describes the operations that you can perform on a #Camera. + + + +Error reporting can be performed using #gp_camera_set_error and #gp_camera_get_error. Before a camera driver generates any error, it should use #gp_camera_set_error to explain why the error occurred and how it can be resolved. + + Error reporting + + char c; + int result; + + /* + *If any error occurs here, just pass it along because + * the error hasn't been generated here. + */ + result = #gp_port_read (camera->port, &c, 1); + if (result < 0) + return (result); + + if (c != 0x05) { + + /* Unrecoverable error. Generate an error. */ + #gp_camera_set_error (camera, _("'0x%x' has been received, but " + "0x05 has been expected. Error recovery is not possible in " + "this situation. Please reset your camera.")); + return (#GP_ERROR_CORRUPTED_DATA); + } + + + + The frontend can now query the error using #gp_camera_get_error. Note that, + in the following example, we explicitly clear the error before calling + the function that could generate an error. + + + Querying errors + + int result; + #CameraText text; + + #gp_camera_set_error (camera, NULL); + result = gp_camera_get_about (camera, &text); + if (result < 0) + printf ("Error ('%s'): '%s'", #gp_result_as_string (result), + #gp_camera_get_error (camera)); + + + + + + +#CameraFilesystem, #GPPort + + + + + + + + Implement this function in camera drivers if you need to clean up on + exit. You need this function for example if you use camera->pl and + allocated memory for that on #camera_init. Then, you would free the + memory here. + + +@camera: a #Camera +@context: +@Returns: a GPhoto2 error code + + + + + Implement this function if your camera supports some configuration + operations (like adjusting exposure). + + +@camera: a #Camera +@widget: +@context: +@Returns: a GPhoto2 error code + + + + + If you implement the #CameraGetConfigFunc, you should also implement this + function in order to make it possible for frontends to actually adjust + configuration options. Parse the @widget tree and check for each item + if the value has been changed (using #gp_widget_changed). If this is the + case, adjust this configuration option on the camera. + + +@camera: a #Camera +@widget: a #CameraWidget created by #gp_camera_get_config +@context: +@Returns: a GPhoto2 error code + + + + + Implement this function if your camera supports remote capturing of images. + When capturing an image, this image needs to be saved on the camera. The + location of the image on the camera should then be written into + supplied @path so that the frontend will know where to get the + newly captured image from. Don't forget to tell the #CameraFilesystem + (camera->fs) that a new picture is on the camera using + #gp_filesystem_append. + + +@camera: a #Camera +@type: a #CameraCaptureType +@path: a #CameraFilePath +@context: +@Returns: a GPhoto2 error code + + + + + Implement this function if your camera supports capturing + previews of low resolution. Those previews must not be stored on the camera. + They need to be written to the supplied @file (using for example + #gp_file_set_data_and_size). + + +@camera: a #Camera +@file: a #CameraFile +@context: +@Returns: a GPhoto2 error code + + + + + Implement this function if your camera provides static information and + non-configurable data like serial number or number of pictures taken. All + configurable data should be displayed through #CameraGetConfigFunc + instead. + + +@camera: a #Camera +@text: a #CameraText +@context: +@Returns: a GPhoto2 error code + + + + + Implement this function if you need to give the user instructions on + how to use his camera. Here, you can for example inform the user about known + limitations of the protocol. + + +@camera: a #Camera +@text: a #CameraText +@context: +@Returns: a GPhoto2 error code + + + + + Implement this function if you want to give frontends the possibility to + inform users who wrote this driver or who contributed to it. + + +@camera: a #Camera +@text: a #CameraText +@context: +@Returns: a GPhoto2 error code + + + + + + + +@camera: +@context: +@Returns: + + + + + + + + + + + + + + + + + + + +@text: + + + + Those functions are optionally. Depending on the features of the protocol, + you would implement some functions and leave others out. Tell gphoto2 + what functions you provide on #camera_init. + + +@pre_func: +@post_func: +@exit: +@get_config: +@set_config: +@capture: +@capture_preview: +@summary: +@manual: +@about: +@wait_for_event: +@reserved1: +@reserved2: +@reserved3: +@reserved4: +@reserved5: +@reserved6: +@reserved7: + + + + + + +@port: +@fs: +@functions: +@pl: +@pc: + + + + + + +@camera: +@Returns: + + + + + + + +@camera: +@Returns: + + + + + + + +@camera: +@Returns: + + + + + + + +@camera: +@Returns: + + + + + + + +@camera: +@abilities: +@Returns: + + + + + + + +@camera: +@abilities: +@Returns: + + + + + + + +@camera: +@info: +@Returns: + + + + + + + +@camera: +@info: +@Returns: + + + + + + + +@camera: +@Returns: + + + + + + + +@camera: +@speed: +@Returns: + + + + + + + +@camera: +@context: +@Returns: + + + + + + + +@camera: +@context: +@Returns: + + + + + + + +@name: +@folder: + + + + + + +@GP_CAPTURE_IMAGE: +@GP_CAPTURE_MOVIE: +@GP_CAPTURE_SOUND: + + + + + + +@camera: +@type: +@path: +@context: +@Returns: + + + + + + + +@camera: +@file: +@context: +@Returns: + + + + + + + +@camera: +@window: +@context: +@Returns: + + + + + + + +@camera: +@window: +@context: +@Returns: + + + + + + + +@camera: +@folder: +@list: +@context: +@Returns: + + + + + + + +@camera: +@folder: +@list: +@context: +@Returns: + + + + + + + +@camera: +@folder: +@file: +@context: +@Returns: + + + + + + + +@camera: +@folder: +@context: +@Returns: + + + + + + + +@camera: +@folder: +@name: +@context: +@Returns: + + + + + + + +@camera: +@folder: +@name: +@context: +@Returns: + + + + + + + +@camera: +@folder: +@file: +@type: +@camera_file: +@context: +@Returns: + + + + + + + +@camera: +@folder: +@file: +@context: +@Returns: + + + + + + + +@camera: +@folder: +@file: +@info: +@context: +@Returns: + + + + + + + +@camera: +@folder: +@file: +@info: +@context: +@Returns: + + + + + + + +@camera: +@manual: +@context: +@Returns: + + + + + + + +@camera: +@summary: +@context: +@Returns: + + + + + + + +@camera: +@about: +@context: +@Returns: + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-context.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-context.sgml new file mode 100644 index 00000000..ce94eb5a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-context.sgml @@ -0,0 +1,216 @@ + +GPContext + + +The structure giving you control over operations + + + + This section describes how to monitor and control operations. + + + + Operations that involve communication with digital cameras can + take some time. For example, downloading an image over a slow serial + line can take several minutes. In order to be able to keep the frontend + responsive, to give the user the possibility to cancel operations, and in + order to be able to + report detailed error messages, #GPContext has been introduced. + + + + + + + + + + + + + + + + + + +@Returns: + + + + + + + +@context: + + + + + + + +@context: + + + + + + + +@context: +@start_func: +@update_func: +@stop_func: +@data: + + + + + + + +@context: +@func: +@data: + + + + + + + +@context: +@func: +@data: + + + + + + + +@context: +@func: +@data: + + + + + + + +@context: +@func: +@data: + + + + + + + +@context: +@func: +@data: + + + + + + + +@context: +@func: +@data: + + + + + + + +@context: +@target: +@format: +@Varargs: +@Returns: + + + + + + + +@context: +@id: +@current: + + + + + + + +@context: +@id: + + + + + + + +@context: +@format: +@Varargs: + + + + + + + +@context: +@format: +@Varargs: + + + + + + + +@context: +@format: +@Varargs: +@Returns: + + + + + + + +@context: +@format: +@Varargs: + + + + + + + +@context: + + + + + + + +@context: +@Returns: + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-file.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-file.sgml new file mode 100644 index 00000000..bb0870f2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-file.sgml @@ -0,0 +1,378 @@ + +CameraFile + + +An abstraction of files + + + + Files on cameras are somewhat different from traditional files. For example, + cameras can often provide a thumbnail of a file. Some cameras even + provide audio data that is connected to a file. + + + + + #CameraFileSystem + + + + + + + + + + + + + + + + +@file: +@Returns: + + + + + + + +@file: +@Returns: + + + + + + + +@file: +@Returns: + + + + + + + +@file: +@Returns: + + + + + + + +@Param1: +@data: +@size: +@Returns: + + + + + + + +@file: +@filename: +@Returns: + + + + + + + +@file: +@filename: +@Returns: + + + + + + + +@file: +@Returns: + + + + + + + +@file: +@name: +@Returns: + + + + + + + +@file: +@name: +@Returns: + + + + + For gphoto2, there are several facets of a file. A file is something that + you can create and delete, but not split apart. However, you can look at + it from different directions. + + +@GP_FILE_TYPE_PREVIEW: A file of this type is a preview of another file. +@GP_FILE_TYPE_NORMAL: A file of this type is a normal file, i.e. one that + can be read with standard applications. +@GP_FILE_TYPE_RAW: A file of this type contains raw data. No processing + has been done. Those files typically cannot be + interpreted by standard applications. You need to have + detailed knowledge about the camera model and its raw + data format in order to be able to process the data. +@GP_FILE_TYPE_AUDIO: A file of this type contains audio data that is + connected to another file. +@GP_FILE_TYPE_EXIF: +@GP_FILE_TYPE_METADATA: + + + + + + +@file: +@type: +@Returns: + + + + + + + +@file: +@type: +@Returns: + + + + + + + + + + + + + + + + + + + Canon cameras store files in a special format, the Canon RaW file format. + See http://www.shore.net/~dcoffin/powershot/ or + http://www2.primushost.com/~dcoffin/powershot/ for details on this + format. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + For files that are not recognized by our driver yet. + DO NOT use this when you're just too lazy to use the proper MIME + type, or we will feed you to Crud Puppy. + + + + + + + + + + + + + + + + +@file: +@mime_type: +@Returns: + + + + + + + +@file: +@mime_type: +@Returns: + + + + + + + +@file: +@Returns: + + + + + + + +@file: +@Returns: + + + + + + + +@file: +@mime_type: +@Returns: + + + + + + + +@destination: +@source: +@Returns: + + + + + + + +@file: +@red_table: +@red_size: +@green_table: +@green_size: +@blue_table: +@blue_size: +@Returns: + + + + + + + +@file: +@method: +@Returns: + + + + + + + +@file: +@header: +@Returns: + + + + + + + +@file: +@width: +@height: +@Returns: + + + + + + + +@Param1: +@data: +@size: +@Returns: + + + + + + + +@Param1: +@data: +@size: +@Returns: + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-filesys.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-filesys.sgml new file mode 100644 index 00000000..ff4bd4a6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-filesys.sgml @@ -0,0 +1,549 @@ + +CameraFilesystem + + +A virtual filesystem used for caching filesystem information + + + +This is a virtual filesystem. It is used as a proxy between the frontends and +the camera drivers in order to avoid unnecessary communication overhead and +prevent synchronization errors. + + + +Camera drivers need to set up the #CameraFilesystem on #camera_init in order +to make the #CameraFilesystem capable of getting file or folder listings, +retreiving information about a file, etc. + + Setting up the #CameraFilesystem + + int + file_list_func (#CameraFilesystem *fs, const char *folder, + #CameraList *list, void *data) + { + #Camera *camera = data; + + #gp_list_append (list, "file1.jpeg", NULL); + #gp_list_append (list, "file2.jpeg", NULL); + + return (#GP_OK); + } + + int + #camera_init (#Camera *camera) + { + #gp_filesystem_set_list_funcs (camera->fs, file_list_func, + NULL, camera); + + return (#GP_OK); + } + + + + + + +#CameraLibraryInitFunc + + + + + + + + + + + + + + There are three levels of access permissions: #GP_FILE_PERM_NONE, + #GP_FILE_PERM_READ and + #GP_FILE_PERM_DELETE. As of now, there is no camera (driver) that + supports first. If #GP_FILE_PERM_DELETE is set, users cannot + delete a file using #gp_camera_file_delete or #gp_camera_folder_delete_all. + + +@GP_FILE_PERM_NONE: Neither read nor write access allowed. +@GP_FILE_PERM_READ: Users can read (download) the file. +@GP_FILE_PERM_DELETE: Users can delete the file +@GP_FILE_PERM_ALL: + + + + The #CameraFileStatus tells frontends if a file has already been downloaded + (#GP_FILE_STATUS_DOWNLOADED) or not (GP_FILE_STATUS_NOT_DOWNLOADED). + + +@GP_FILE_STATUS_NOT_DOWNLOADED: The file has not yet been downloaded from + the camera. +@GP_FILE_STATUS_DOWNLOADED: The file has been downloaded from the camera + at least once. + + + + Use this variable to determine which fields of a #CameraFileInfoFile, a + #CameraFileInfoPreview, or a #CameraFileInfoAudio are valid. + + +@GP_FILE_INFO_NONE: If set to this value, no field is valid. You would want + to use this for example if there are no audio annotations of a picture. +@GP_FILE_INFO_TYPE: Indicates if there is information about the mime type + of a file, the preview, or the audio annotation available. +@GP_FILE_INFO_NAME: +@GP_FILE_INFO_SIZE: Indicates if the size field is valid. +@GP_FILE_INFO_WIDTH: Indicates if there is information about the width of + the file, the preview, or the audio annotation available. +@GP_FILE_INFO_HEIGHT: Indicates if height field is valid. +@GP_FILE_INFO_PERMISSIONS: Indicates if the permissions field is valid. +@GP_FILE_INFO_STATUS: Indicates if the status field is valid. +@GP_FILE_INFO_MTIME: +@GP_FILE_INFO_ALL: + + + + + + +@fields: +@status: +@size: +@type: + + + + + + +@fields: +@status: +@size: +@type: +@width: +@height: + + + + + + +@fields: +@status: +@size: +@type: +@width: +@height: +@name: +@permissions: +@mtime: + + + + + + +@preview: +@file: +@audio: + + + + + + +@fs: +@Returns: + + + + + + + +@fs: +@Returns: + + + + + + + +@fs: +@folder: +@filename: +@type: +@file: +@data: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@filename: +@data: +@context: +@Returns: + + + + + + + +@fs: +@get_file_func: +@del_file_func: +@data: +@Returns: + + + + + + + +@fs: +@folder: +@filename: +@info: +@data: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@filename: +@info: +@data: +@context: +@Returns: + + + + + + + +@fs: +@get_info_func: +@set_info_func: +@data: +@Returns: + + + + + + + +@fs: +@folder: +@file: +@data: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@data: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@name: +@data: +@context: +@Returns: + + + + + + + +@fs: +@put_file_func: +@delete_all_func: +@make_dir_func: +@remove_dir_func: +@data: +@Returns: + + + + + + + +@fs: +@folder: +@list: +@data: +@context: +@Returns: + + + + + + + +@fs: +@file_list_func: +@folder_list_func: +@data: +@Returns: + + + + + + + +@fs: +@folder: +@list: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@list: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@filename: +@type: +@file: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@file: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@filename: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@name: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@name: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@filename: +@info: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@filename: +@info: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@info: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@filename: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@filenumber: +@filename: +@context: +@Returns: + + + + + + + +@fs: +@filename: +@folder: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@context: +@Returns: + + + + + + + +@fs: +@Returns: + + + + + + + +@fs: +@folder: +@filename: +@context: +@Returns: + + + + + + + +@fs: +@folder: +@file: +@context: +@Returns: + + + + + + + +@fs: +@Returns: + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-library.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-library.sgml new file mode 100644 index 00000000..a33e0eb0 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-library.sgml @@ -0,0 +1,120 @@ + +CameraLibrary + + +Functions implemented by camera drivers + + + +This section contains functions that have to be implemented by camera drivers. + + + + + A minimal camera driver + + int + #camera_id (#CameraText *id) + { + strncpy (id->text, sizeof (id->text), "Minimal driver"); + return (#GP_OK); + } + + int + #camera_abilities (#CameraAbilitiesList *list) + { + #CameraAbilities a; + + strncpy (a.model, sizeof (a.model), "Minimal model"); + a.status = #GP_DRIVER_STATUS_PRODUCTION; + a.port = #GP_PORT_NONE; + a.operations = #GP_OPERATION_NONE; + a.file_operations = #GP_FILE_OPERATION_NONE; + a.folder_operations = #GP_FOLDER_OPERATION_NONE; + #gp_abilities_list_append (list, a); + + return (#GP_OK); + } + + int + #camera_init (Camera *camera) + { + return (#GP_OK); + } + + + Above driver will get loaded correctly. In order to fill it with life, you + would have to call additional functions in #camera_init like + #gp_filesystem_set_list_funcs. + + + + +#CameraFilesystem, #CameraAbilitiesList + + + + + + + + + + +@id: +@Returns: + +@Param1: + + + + + + + +@list: +@Returns: + +@Param1: + + + + + + + +@camera: +@context: +@Returns: + +@Param1: + + + + + + + +@id: +@Returns: + + + + + + + +@list: +@Returns: + + + + + + + +@camera: +@context: +@Returns: + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-list.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-list.sgml new file mode 100644 index 00000000..10f46b38 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-list.sgml @@ -0,0 +1,156 @@ + +CameraList + + + + + + + + + + + + + + + + + + + + + + +@count: +@ref_count: + + + + + + +@list: +@Returns: + + + + + + + +@list: +@Returns: + + + + + + + +@list: +@Returns: + + + + + + + +@list: +@Returns: + + + + + + + +@list: +@Returns: + + + + + + + +@list: +@index: +@name: +@Returns: + + + + + + + +@list: +@index: +@value: +@Returns: + + + + + + + +@list: +@index: +@name: +@Returns: + + + + + + + +@list: +@index: +@value: +@Returns: + + + + + + + +@list: +@name: +@value: +@Returns: + + + + + + + +@list: +@format: +@count: +@Returns: + + + + + + + +@list: +@Returns: + + + + + + + +@list: +@Returns: + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-result.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-result.sgml new file mode 100644 index 00000000..64875ba6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-result.sgml @@ -0,0 +1,120 @@ + +GPhoto2 error codes + + +GPhoto2 error codes and error reporting + + + +This section covers gphoto2 error codes and a function to get a string +representation of those. Note that those error codes are supplementary to +the ones defined in gphoto2-port. + + + + + Checking error codes + + #CameraAbilitiesList *list; + int result; + const char *model = "Unknown model"; + + /* Create a new abilities list */ + result = #gp_abilities_list_new (&list); + if (result < 0) { + printf ("An error occurred: %s\n", #gp_result_as_string (result)); + return (result); + } + + /* Fill it */ + result = #gp_abilities_list_load (list); + if (result < 0) { + printf ("An error occurred: %s\n", #gp_result_as_string (result)); + return (result); + } + + /* Look for a camera model */ + result = #gp_abilities_list_lookup_model (list, model); + if (result < 0) { + switch (result) { + case #GP_ERROR_MODEL_NOT_FOUND: + printf ("Could not find model '%s'\n", model); + default: + printf ("An error occurred: %s\n", #gp_result_as_string (result)); + } + return (result); + } + + + + In your code, you would probably use predefined macros for quick and easy + checking return codes. + + + + + +#gp_port_result_as_string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@result: +@Returns: + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-unused.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-unused.sgml new file mode 100644 index 00000000..11ecc559 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-unused.sgml @@ -0,0 +1,465 @@ + + + + + + + + + + + + + + + + + +CameraAbilities + + + + + + + + + + + + + + + + + + + +CameraAbilities + + + + + This section describes how to monitor and control operations. + + + + Operations that involve communication with digital cameras can + take some time. For example, downloading an image over a slow serial + line can take several minutes. In order to be able to keep the frontend + responsive, to give the user the possibility to cancel operations, and in + order to be able to + report detailed error messages, #GPContext has been introduced. + + + + + + + + + + +The structure giving you control over operations + + + +GPContext + + + + + + + +@camera: +@folder: +@file: +@widget: +@Returns: + + + + + + +@camera: +@folder: +@file: +@widget: +@Returns: + + + + + + +@fs: +@folder: +@filename: +@info: +@data: +@Returns: + + + + + + +@camera: +@folder: +@widget: +@Returns: + + + + + + +@camera: +@folder: +@widget: +@Returns: + + + + + + +@Param1: +@msg: +@data: + + + + + + +@Param1: +@percentage: +@data: + + + + + + +@camera: +@result: +@Returns: + + + + + + +@Param1: +@status: +@data: + + + + + + + + + + + + + + + + + + +@camera: +@folder: +@file: +@window: +@Returns: + + + + + + +@camera: +@folder: +@file: +@window: +@Returns: + + + + + + +@camera: +@folder: +@window: +@Returns: + + + + + + +@camera: +@folder: +@window: +@Returns: + + + + + + +@camera: +@Returns: + + + + + + +@camera: +@format: +@Varargs: +@Returns: + + + + + + +@camera: +@percentage: +@Returns: + + + + + + +@camera: +@format: +@Varargs: +@Returns: + + + + + + +@camera: +@func: +@data: +@Returns: + + + + + + +@camera: +@func: +@data: +@Returns: + + + + + + +@camera: +@func: +@data: +@Returns: + + + + + + +@camera: +@format: +@Varargs: +@Returns: + + + + + + +@context: +@Returns: + + + + + + +@context: +@format: +@Varargs: + + + + + + +@context: + + + + + + +@context: +@format: +@Varargs: + + + + + + +@Returns: + + + + + + +@context: +@target: +@format: +@Varargs: +@Returns: + + + + + + +@context: +@id: + + + + + + +@context: +@id: +@current: + + + + + + +@context: +@format: +@Varargs: +@Returns: + + + + + + +@context: + + + + + + +@context: +@func: +@data: + + + + + + +@context: +@func: +@data: + + + + + + +@context: +@func: +@data: + + + + + + +@context: +@func: +@data: + + + + + + +@context: +@start_func: +@update_func: +@stop_func: +@data: + + + + + + +@context: +@func: +@data: + + + + + + +@context: +@func: +@data: + + + + + + +@context: +@format: +@Varargs: + + + + + + +@context: + + + + + + +@Param1: +@data: +@Returns: + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-widget.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-widget.sgml new file mode 100644 index 00000000..93ab646e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/api/tmpl/gphoto2-widget.sgml @@ -0,0 +1,256 @@ + +CameraWidget + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@type: +@label: +@widget: +@Returns: + + + + + + + +@widget: +@Returns: + + + + + + + +@widget: +@Returns: + + + + + + + +@widget: +@Returns: + + + + + + + +@widget: +@child: +@Returns: + + + + + + + +@widget: +@child: +@Returns: + + + + + + + +@widget: +@Returns: + + + + + + + +@widget: +@child_number: +@child: +@Returns: + + + + + + + +@widget: +@label: +@child: +@Returns: + + + + + + + +@widget: +@id: +@child: +@Returns: + + + + + + + +@widget: +@root: +@Returns: + + + + + + + +@widget: +@info: +@Returns: + + + + + + + +@widget: +@info: +@Returns: + + + + + + + +@widget: +@id: +@Returns: + + + + + + + +@widget: +@type: +@Returns: + + + + + + + +@widget: +@label: +@Returns: + + + + + + + +@widget: +@value: +@Returns: + + + + + + + +@widget: +@value: +@Returns: + + + + + + + +@range: +@min: +@max: +@increment: +@Returns: + + + + + + + +@widget: +@choice: +@Returns: + + + + + + + +@widget: +@Returns: + + + + + + + +@widget: +@choice_number: +@choice: +@Returns: + + + + + + + +@widget: +@Returns: + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/build_OS2.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/build_OS2.txt new file mode 100644 index 00000000..2afb2b4c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/build_OS2.txt @@ -0,0 +1,19 @@ +30-7-2000 +bvl: initial release +about this Document: + +This document is a summary of what is needed to build gphoto2 on OS/2 + +make : nmake v3 available on hobbes, + http://hobbes.nmsu.edu/pub/os2/dev/util/nmakew.zip + +compile : gcc version 2.8.1 + http://hobbes.nmsu.edu/cgi-bin/h-browse?sh=1&dir=/pub/os2/dev/emx/v0.9d + +libraries : pthreads + unfortunatly I don't know whih version I use here but the one from netlabs should be working + ftp://ftp.netlabs.org/pub/pthreads/ + +make sure the emx\lib directory is added to your lib environment 'SET LIB=x:\EMX\LIB' +alse the pthreads DLL's and LIB's should be in the EMX tree + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel-portmon.eps b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel-portmon.eps new file mode 100644 index 00000000..c2ce6532 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel-portmon.eps @@ -0,0 +1,458 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: Untitled-1 +%%Creator: Dia v0.83 +%%CreationDate: Thu Apr 13 18:39:05 2000 +%%For: a user +%%Magnification: 1.0000 +%%Orientation: Portrait +%%BoundingBox: 0 0 320 208 +%%Pages: 1 +%%BeginSetup +%%EndSetup +%%EndComments +[ /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quoteright +/parenleft /parenright /asterisk /plus /comma /hyphen /period /slash /zero /one +/two /three /four /five /six /seven /eight /nine /colon /semicolon +/less /equal /greater /question /at /A /B /C /D /E +/F /G /H /I /J /K /L /M /N /O +/P /Q /R /S /T /U /V /W /X /Y +/Z /bracketleft /backslash /bracketright /asciicircum /underscore /quoteleft /a /b /c +/d /e /f /g /h /i /j /k /l /m +/n /o /p /q /r /s /t /u /v /w +/x /y /z /braceleft /bar /braceright /asciitilde /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/space /exclamdown /cent /sterling /currency /yen /brokenbar /section /dieresis /copyright +/ordfeminine /guillemotleft /logicalnot /hyphen /registered /macron /degree /plusminus /twosuperior /threesuperior +/acute /mu /paragraph /periodcentered /cedilla /onesuperior /ordmasculine /guillemotright /onequarter /onehalf +/threequarters /questiondown /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla +/Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis /Eth /Ntilde +/Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply /Oslash /Ugrave /Uacute /Ucircumflex +/Udieresis /Yacute /Thorn /germandbls /agrave /aacute /acircumflex /atilde /adieresis /aring +/ae /ccedilla /egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis +/eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide /oslash /ugrave +/uacute /ucircumflex /udieresis /yacute /thorn /ydieresis] /isolatin1encoding exch def +/Times-Roman-latin1 + /Times-Roman findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Times-Italic-latin1 + /Times-Italic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Times-Bold-latin1 + /Times-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Times-BoldItalic-latin1 + /Times-BoldItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-Book-latin1 + /AvantGarde-Book findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-BookOblique-latin1 + /AvantGarde-BookOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-Demi-latin1 + /AvantGarde-Demi findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-DemiOblique-latin1 + /AvantGarde-DemiOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-Light-latin1 + /Bookman-Light findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-LightItalic-latin1 + /Bookman-LightItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-Demi-latin1 + /Bookman-Demi findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-DemiItalic-latin1 + /Bookman-DemiItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-latin1 + /Courier findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-Oblique-latin1 + /Courier-Oblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-Bold-latin1 + /Courier-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-BoldOblique-latin1 + /Courier-BoldOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-latin1 + /Helvetica findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Oblique-latin1 + /Helvetica-Oblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Bold-latin1 + /Helvetica-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-BoldOblique-latin1 + /Helvetica-BoldOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-latin1 + /Helvetica-Narrow findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-Oblique-latin1 + /Helvetica-Narrow-Oblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-Bold-latin1 + /Helvetica-Narrow-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-BoldOblique-latin1 + /Helvetica-Narrow-BoldOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-Roman-latin1 + /NewCenturySchoolbook-Roman findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-Italic-latin1 + /NewCenturySchoolbook-Italic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-Bold-latin1 + /NewCenturySchoolbook-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-BoldItalic-latin1 + /NewCenturySchoolbook-BoldItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-Roman-latin1 + /Palatino-Roman findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-Italic-latin1 + /Palatino-Italic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-Bold-latin1 + /Palatino-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-BoldItalic-latin1 + /Palatino-BoldItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Symbol-latin1 + /Symbol findfont +definefont pop +/ZapfChancery-MediumItalic-latin1 + /ZapfChancery-MediumItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/ZapfDingbats-latin1 + /ZapfDingbats findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/cp {closepath} bind def +/c {curveto} bind def +/f {fill} bind def +/a {arc} bind def +/ef {eofill} bind def +/ex {exch} bind def +/gr {grestore} bind def +/gs {gsave} bind def +/sa {save} bind def +/rs {restore} bind def +/l {lineto} bind def +/m {moveto} bind def +/rm {rmoveto} bind def +/n {newpath} bind def +/s {stroke} bind def +/sh {show} bind def +/slc {setlinecap} bind def +/slj {setlinejoin} bind def +/slw {setlinewidth} bind def +/srgb {setrgbcolor} bind def +/rot {rotate} bind def +/sc {scale} bind def +/sd {setdash} bind def +/ff {findfont} bind def +/sf {setfont} bind def +/scf {scalefont} bind def +/sw {stringwidth pop} bind def +/tr {translate} bind def + +/ellipsedict 8 dict def +ellipsedict /mtrx matrix put +/ellipse +{ ellipsedict begin + /endangle exch def + /startangle exch def + /yrad exch def + /xrad exch def + /y exch def + /x exch def /savematrix mtrx currentmatrix def + x y tr xrad yrad sc + 0 0 1 startangle endangle arc + savematrix setmatrix + end +} def + +/colortogray { +/rgbdata exch store +rgbdata length 3 idiv +/npixls exch store +/rgbindx 0 store +0 1 npixls 1 sub { +grays exch +rgbdata rgbindx get 20 mul +rgbdata rgbindx 1 add get 32 mul +rgbdata rgbindx 2 add get 12 mul +add add 64 idiv +put +/rgbindx rgbindx 3 add store +} for +grays 0 npixls getinterval +} bind def +/mergeprocs { +dup length +3 -1 roll +dup +length +dup +5 1 roll +3 -1 roll +add +array cvx +dup +3 -1 roll +0 exch +putinterval +dup +4 2 roll +putinterval +} bind def +/colorimage { +pop pop +{colortogray} mergeprocs +image +} bind def + +28.346000 -28.346000 scale +-5.950000 -11.256637 translate +%%EndProlog + + +1.000000 1.000000 1.000000 srgb +n 6.000000 4.000000 m 6.000000 6.000000 l 10.000000 6.000000 l 10.000000 4.000000 l f +0.100000 slw +[] 0 sd +[] 0 sd +0 slj +0.000000 0.000000 0.000000 srgb +n 6.000000 4.000000 m 6.000000 6.000000 l 10.000000 6.000000 l 10.000000 4.000000 l cp s +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 6.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +(Camera) dup sw 2 div 8.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 8.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 7.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 10.000000 ex sub 7.000000 m gs 1 -1 sc sh gr +0.100000 slw +[] 0 sd +[] 0 sd +0 slc +0.000000 0.000000 0.000000 srgb +n 10.000000 5.000000 m 14.000000 5.000000 l s +0 slj +0.000000 0.000000 0.000000 srgb +n 10.800000 4.600000 m 10.000000 5.000000 l 10.800000 5.400000 l f +0 slj +0.000000 0.000000 0.000000 srgb +n 13.200000 5.400000 m 14.000000 5.000000 l 13.200000 4.600000 l f +0.080000 slw +0 slj +[] 0 sd +0.700000 0.700000 0.700000 srgb +n 14.250000 4.200000 m 14.250000 7.700000 l 15.750000 7.700000 l 15.750000 4.200000 l f +0.000000 0.000000 0.000000 srgb +n 14.250000 4.200000 m 14.250000 7.700000 l 15.750000 7.700000 l 15.750000 4.200000 l cp s +0.010000 slw +0.000000 0.000000 0.000000 srgb +n 14.400000 4.410000 m 14.400000 4.810000 l 15.600000 4.810000 l 15.600000 4.410000 l cp s +0.000000 0.000000 0.000000 srgb +n 14.400000 4.810000 m 14.400000 5.210000 l 15.600000 5.210000 l 15.600000 4.810000 l cp s +0.000000 0.000000 0.000000 srgb +n 14.400000 5.210000 m 14.400000 5.610000 l 15.600000 5.610000 l 15.600000 5.210000 l cp s +0.000000 0.000000 0.000000 srgb +n 14.400000 5.610000 m 14.400000 6.010000 l 15.600000 6.010000 l 15.600000 5.610000 l cp s +0.000000 0.000000 0.000000 srgb +n 14.400000 6.090000 m 14.400000 6.330000 l 15.150000 6.330000 l 15.150000 6.090000 l cp s +0.000000 1.000000 0.000000 srgb +n 15.525000 6.130000 0.052500 0.052500 0 360 ellipse f +0.000000 0.000000 0.000000 srgb +n 15.525000 6.130000 0.052500 0.052500 0 360 ellipse cp s +1.000000 1.000000 0.000000 srgb +n 15.525000 6.290000 0.052500 0.052500 0 360 ellipse f +0.000000 0.000000 0.000000 srgb +n 15.525000 6.290000 0.052500 0.052500 0 360 ellipse cp s +1.000000 1.000000 1.000000 srgb +n 15.225000 6.170000 m 15.225000 6.330000 l 15.405000 6.330000 l 15.405000 6.170000 l f +0.000000 0.000000 0.000000 srgb +n 15.225000 6.170000 m 15.225000 6.330000 l 15.405000 6.330000 l 15.405000 6.170000 l cp s +0.080000 slw +0 slc +0.000000 0.000000 0.000000 srgb +n 14.500000 6.650000 m 14.500000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 14.750000 6.650000 m 14.750000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 15.000000 6.650000 m 15.000000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 15.250000 6.650000 m 15.250000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 15.500000 6.650000 m 15.500000 7.525000 l s +0.600000 0.600000 0.600000 srgb +n 13.950000 8.000000 m 14.250000 7.400000 l 14.250000 7.700000 l 15.750000 7.700000 l 15.750000 7.400000 l 16.050000 8.000000 l f +0.000000 0.000000 0.000000 srgb +n 13.950000 8.000000 m 14.250000 7.400000 l 14.250000 7.700000 l 15.750000 7.700000 l 15.750000 7.400000 l 16.050000 8.000000 l cp s +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +(Host) dup sw 2 div 15.000000 ex sub 9.000000 m gs 1 -1 sc sh gr +0.000000 0.000000 0.000000 srgb +(running) dup sw 2 div 15.000000 ex sub 10.000000 m gs 1 -1 sc sh gr +0.000000 0.000000 0.000000 srgb +(PortMon) dup sw 2 div 15.000000 ex sub 11.000000 m gs 1 -1 sc sh gr +showpage diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel-repeater.eps b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel-repeater.eps new file mode 100644 index 00000000..efe1e3d5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel-repeater.eps @@ -0,0 +1,515 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: Untitled-1 +%%Creator: Dia v0.83 +%%CreationDate: Thu Apr 13 18:17:06 2000 +%%For: a user +%%Magnification: 1.0000 +%%Orientation: Portrait +%%BoundingBox: 0 0 408 151 +%%Pages: 1 +%%BeginSetup +%%EndSetup +%%EndComments +[ /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quoteright +/parenleft /parenright /asterisk /plus /comma /hyphen /period /slash /zero /one +/two /three /four /five /six /seven /eight /nine /colon /semicolon +/less /equal /greater /question /at /A /B /C /D /E +/F /G /H /I /J /K /L /M /N /O +/P /Q /R /S /T /U /V /W /X /Y +/Z /bracketleft /backslash /bracketright /asciicircum /underscore /quoteleft /a /b /c +/d /e /f /g /h /i /j /k /l /m +/n /o /p /q /r /s /t /u /v /w +/x /y /z /braceleft /bar /braceright /asciitilde /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/space /exclamdown /cent /sterling /currency /yen /brokenbar /section /dieresis /copyright +/ordfeminine /guillemotleft /logicalnot /hyphen /registered /macron /degree /plusminus /twosuperior /threesuperior +/acute /mu /paragraph /periodcentered /cedilla /onesuperior /ordmasculine /guillemotright /onequarter /onehalf +/threequarters /questiondown /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla +/Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis /Eth /Ntilde +/Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply /Oslash /Ugrave /Uacute /Ucircumflex +/Udieresis /Yacute /Thorn /germandbls /agrave /aacute /acircumflex /atilde /adieresis /aring +/ae /ccedilla /egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis +/eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide /oslash /ugrave +/uacute /ucircumflex /udieresis /yacute /thorn /ydieresis] /isolatin1encoding exch def +/Times-Roman-latin1 + /Times-Roman findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Times-Italic-latin1 + /Times-Italic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Times-Bold-latin1 + /Times-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Times-BoldItalic-latin1 + /Times-BoldItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-Book-latin1 + /AvantGarde-Book findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-BookOblique-latin1 + /AvantGarde-BookOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-Demi-latin1 + /AvantGarde-Demi findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-DemiOblique-latin1 + /AvantGarde-DemiOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-Light-latin1 + /Bookman-Light findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-LightItalic-latin1 + /Bookman-LightItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-Demi-latin1 + /Bookman-Demi findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-DemiItalic-latin1 + /Bookman-DemiItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-latin1 + /Courier findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-Oblique-latin1 + /Courier-Oblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-Bold-latin1 + /Courier-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-BoldOblique-latin1 + /Courier-BoldOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-latin1 + /Helvetica findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Oblique-latin1 + /Helvetica-Oblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Bold-latin1 + /Helvetica-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-BoldOblique-latin1 + /Helvetica-BoldOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-latin1 + /Helvetica-Narrow findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-Oblique-latin1 + /Helvetica-Narrow-Oblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-Bold-latin1 + /Helvetica-Narrow-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-BoldOblique-latin1 + /Helvetica-Narrow-BoldOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-Roman-latin1 + /NewCenturySchoolbook-Roman findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-Italic-latin1 + /NewCenturySchoolbook-Italic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-Bold-latin1 + /NewCenturySchoolbook-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-BoldItalic-latin1 + /NewCenturySchoolbook-BoldItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-Roman-latin1 + /Palatino-Roman findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-Italic-latin1 + /Palatino-Italic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-Bold-latin1 + /Palatino-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-BoldItalic-latin1 + /Palatino-BoldItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Symbol-latin1 + /Symbol findfont +definefont pop +/ZapfChancery-MediumItalic-latin1 + /ZapfChancery-MediumItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/ZapfDingbats-latin1 + /ZapfDingbats findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/cp {closepath} bind def +/c {curveto} bind def +/f {fill} bind def +/a {arc} bind def +/ef {eofill} bind def +/ex {exch} bind def +/gr {grestore} bind def +/gs {gsave} bind def +/sa {save} bind def +/rs {restore} bind def +/l {lineto} bind def +/m {moveto} bind def +/rm {rmoveto} bind def +/n {newpath} bind def +/s {stroke} bind def +/sh {show} bind def +/slc {setlinecap} bind def +/slj {setlinejoin} bind def +/slw {setlinewidth} bind def +/srgb {setrgbcolor} bind def +/rot {rotate} bind def +/sc {scale} bind def +/sd {setdash} bind def +/ff {findfont} bind def +/sf {setfont} bind def +/scf {scalefont} bind def +/sw {stringwidth pop} bind def +/tr {translate} bind def + +/ellipsedict 8 dict def +ellipsedict /mtrx matrix put +/ellipse +{ ellipsedict begin + /endangle exch def + /startangle exch def + /yrad exch def + /xrad exch def + /y exch def + /x exch def /savematrix mtrx currentmatrix def + x y tr xrad yrad sc + 0 0 1 startangle endangle arc + savematrix setmatrix + end +} def + +/colortogray { +/rgbdata exch store +rgbdata length 3 idiv +/npixls exch store +/rgbindx 0 store +0 1 npixls 1 sub { +grays exch +rgbdata rgbindx get 20 mul +rgbdata rgbindx 1 add get 32 mul +rgbdata rgbindx 2 add get 12 mul +add add 64 idiv +put +/rgbindx rgbindx 3 add store +} for +grays 0 npixls getinterval +} bind def +/mergeprocs { +dup length +3 -1 roll +dup +length +dup +5 1 roll +3 -1 roll +add +array cvx +dup +3 -1 roll +0 exch +putinterval +dup +4 2 roll +putinterval +} bind def +/colorimage { +pop pop +{colortogray} mergeprocs +image +} bind def + +28.346000 -28.346000 scale +-5.950000 -9.256637 translate +%%EndProlog + + +1.000000 1.000000 1.000000 srgb +n 6.000000 4.000000 m 6.000000 6.000000 l 10.000000 6.000000 l 10.000000 4.000000 l f +0.100000 slw +[] 0 sd +[] 0 sd +0 slj +0.000000 0.000000 0.000000 srgb +n 6.000000 4.000000 m 6.000000 6.000000 l 10.000000 6.000000 l 10.000000 4.000000 l cp s +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 6.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +(Camera) dup sw 2 div 8.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 8.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 7.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 10.000000 ex sub 7.000000 m gs 1 -1 sc sh gr +0.100000 slw +[] 0 sd +[] 0 sd +0 slc +0.000000 0.000000 0.000000 srgb +n 10.000000 5.000000 m 13.000000 5.000000 l s +0 slj +0.000000 0.000000 0.000000 srgb +n 10.800000 4.600000 m 10.000000 5.000000 l 10.800000 5.400000 l f +0 slj +0.000000 0.000000 0.000000 srgb +n 12.200000 5.400000 m 13.000000 5.000000 l 12.200000 4.600000 l f +0.080000 slw +0 slj +[] 0 sd +0.700000 0.700000 0.700000 srgb +n 13.250000 4.200000 m 13.250000 7.700000 l 14.750000 7.700000 l 14.750000 4.200000 l f +0.000000 0.000000 0.000000 srgb +n 13.250000 4.200000 m 13.250000 7.700000 l 14.750000 7.700000 l 14.750000 4.200000 l cp s +0.010000 slw +0.000000 0.000000 0.000000 srgb +n 13.400000 4.410000 m 13.400000 4.810000 l 14.600000 4.810000 l 14.600000 4.410000 l cp s +0.000000 0.000000 0.000000 srgb +n 13.400000 4.810000 m 13.400000 5.210000 l 14.600000 5.210000 l 14.600000 4.810000 l cp s +0.000000 0.000000 0.000000 srgb +n 13.400000 5.210000 m 13.400000 5.610000 l 14.600000 5.610000 l 14.600000 5.210000 l cp s +0.000000 0.000000 0.000000 srgb +n 13.400000 5.610000 m 13.400000 6.010000 l 14.600000 6.010000 l 14.600000 5.610000 l cp s +0.000000 0.000000 0.000000 srgb +n 13.400000 6.090000 m 13.400000 6.330000 l 14.150000 6.330000 l 14.150000 6.090000 l cp s +0.000000 1.000000 0.000000 srgb +n 14.525000 6.130000 0.052500 0.052500 0 360 ellipse f +0.000000 0.000000 0.000000 srgb +n 14.525000 6.130000 0.052500 0.052500 0 360 ellipse cp s +1.000000 1.000000 0.000000 srgb +n 14.525000 6.290000 0.052500 0.052500 0 360 ellipse f +0.000000 0.000000 0.000000 srgb +n 14.525000 6.290000 0.052500 0.052500 0 360 ellipse cp s +1.000000 1.000000 1.000000 srgb +n 14.225000 6.170000 m 14.225000 6.330000 l 14.405000 6.330000 l 14.405000 6.170000 l f +0.000000 0.000000 0.000000 srgb +n 14.225000 6.170000 m 14.225000 6.330000 l 14.405000 6.330000 l 14.405000 6.170000 l cp s +0.080000 slw +0 slc +0.000000 0.000000 0.000000 srgb +n 13.500000 6.650000 m 13.500000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 13.750000 6.650000 m 13.750000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 14.000000 6.650000 m 14.000000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 14.250000 6.650000 m 14.250000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 14.500000 6.650000 m 14.500000 7.525000 l s +0.600000 0.600000 0.600000 srgb +n 12.950000 8.000000 m 13.250000 7.400000 l 13.250000 7.700000 l 14.750000 7.700000 l 14.750000 7.400000 l 15.050000 8.000000 l f +0.000000 0.000000 0.000000 srgb +n 12.950000 8.000000 m 13.250000 7.400000 l 13.250000 7.700000 l 14.750000 7.700000 l 14.750000 7.400000 l 15.050000 8.000000 l cp s +0.100000 slw +[] 0 sd +[] 0 sd +0 slc +0.000000 0.000000 0.000000 srgb +n 15.000000 5.000000 m 18.000000 5.000000 l s +0 slj +0.000000 0.000000 0.000000 srgb +n 15.800000 4.600000 m 15.000000 5.000000 l 15.800000 5.400000 l f +0 slj +0.000000 0.000000 0.000000 srgb +n 17.200000 5.400000 m 18.000000 5.000000 l 17.200000 4.600000 l f +0.080000 slw +0 slj +[] 0 sd +0.700000 0.700000 0.700000 srgb +n 18.250000 4.200000 m 18.250000 7.700000 l 19.750000 7.700000 l 19.750000 4.200000 l f +0.000000 0.000000 0.000000 srgb +n 18.250000 4.200000 m 18.250000 7.700000 l 19.750000 7.700000 l 19.750000 4.200000 l cp s +0.010000 slw +0.000000 0.000000 0.000000 srgb +n 18.400000 4.410000 m 18.400000 4.810000 l 19.600000 4.810000 l 19.600000 4.410000 l cp s +0.000000 0.000000 0.000000 srgb +n 18.400000 4.810000 m 18.400000 5.210000 l 19.600000 5.210000 l 19.600000 4.810000 l cp s +0.000000 0.000000 0.000000 srgb +n 18.400000 5.210000 m 18.400000 5.610000 l 19.600000 5.610000 l 19.600000 5.210000 l cp s +0.000000 0.000000 0.000000 srgb +n 18.400000 5.610000 m 18.400000 6.010000 l 19.600000 6.010000 l 19.600000 5.610000 l cp s +0.000000 0.000000 0.000000 srgb +n 18.400000 6.090000 m 18.400000 6.330000 l 19.150000 6.330000 l 19.150000 6.090000 l cp s +0.000000 1.000000 0.000000 srgb +n 19.525000 6.130000 0.052500 0.052500 0 360 ellipse f +0.000000 0.000000 0.000000 srgb +n 19.525000 6.130000 0.052500 0.052500 0 360 ellipse cp s +1.000000 1.000000 0.000000 srgb +n 19.525000 6.290000 0.052500 0.052500 0 360 ellipse f +0.000000 0.000000 0.000000 srgb +n 19.525000 6.290000 0.052500 0.052500 0 360 ellipse cp s +1.000000 1.000000 1.000000 srgb +n 19.225000 6.170000 m 19.225000 6.330000 l 19.405000 6.330000 l 19.405000 6.170000 l f +0.000000 0.000000 0.000000 srgb +n 19.225000 6.170000 m 19.225000 6.330000 l 19.405000 6.330000 l 19.405000 6.170000 l cp s +0.080000 slw +0 slc +0.000000 0.000000 0.000000 srgb +n 18.500000 6.650000 m 18.500000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 18.750000 6.650000 m 18.750000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 19.000000 6.650000 m 19.000000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 19.250000 6.650000 m 19.250000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 19.500000 6.650000 m 19.500000 7.525000 l s +0.600000 0.600000 0.600000 srgb +n 17.950000 8.000000 m 18.250000 7.400000 l 18.250000 7.700000 l 19.750000 7.700000 l 19.750000 7.400000 l 20.050000 8.000000 l f +0.000000 0.000000 0.000000 srgb +n 17.950000 8.000000 m 18.250000 7.400000 l 18.250000 7.700000 l 19.750000 7.700000 l 19.750000 7.400000 l 20.050000 8.000000 l cp s +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +(Repeater) dup sw 2 div 14.000000 ex sub 9.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +(Host) dup sw 2 div 19.000000 ex sub 9.000000 m gs 1 -1 sc sh gr +showpage diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel-y.eps b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel-y.eps new file mode 100644 index 00000000..ff3760ae --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel-y.eps @@ -0,0 +1,464 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: Untitled-1 +%%Creator: Dia v0.83 +%%CreationDate: Thu Apr 13 18:51:15 2000 +%%For: a user +%%Magnification: 1.0000 +%%Orientation: Portrait +%%BoundingBox: 0 0 294 151 +%%Pages: 1 +%%BeginSetup +%%EndSetup +%%EndComments +[ /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quoteright +/parenleft /parenright /asterisk /plus /comma /hyphen /period /slash /zero /one +/two /three /four /five /six /seven /eight /nine /colon /semicolon +/less /equal /greater /question /at /A /B /C /D /E +/F /G /H /I /J /K /L /M /N /O +/P /Q /R /S /T /U /V /W /X /Y +/Z /bracketleft /backslash /bracketright /asciicircum /underscore /quoteleft /a /b /c +/d /e /f /g /h /i /j /k /l /m +/n /o /p /q /r /s /t /u /v /w +/x /y /z /braceleft /bar /braceright /asciitilde /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef +/space /exclamdown /cent /sterling /currency /yen /brokenbar /section /dieresis /copyright +/ordfeminine /guillemotleft /logicalnot /hyphen /registered /macron /degree /plusminus /twosuperior /threesuperior +/acute /mu /paragraph /periodcentered /cedilla /onesuperior /ordmasculine /guillemotright /onequarter /onehalf +/threequarters /questiondown /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla +/Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis /Eth /Ntilde +/Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply /Oslash /Ugrave /Uacute /Ucircumflex +/Udieresis /Yacute /Thorn /germandbls /agrave /aacute /acircumflex /atilde /adieresis /aring +/ae /ccedilla /egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis +/eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide /oslash /ugrave +/uacute /ucircumflex /udieresis /yacute /thorn /ydieresis] /isolatin1encoding exch def +/Times-Roman-latin1 + /Times-Roman findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Times-Italic-latin1 + /Times-Italic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Times-Bold-latin1 + /Times-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Times-BoldItalic-latin1 + /Times-BoldItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-Book-latin1 + /AvantGarde-Book findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-BookOblique-latin1 + /AvantGarde-BookOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-Demi-latin1 + /AvantGarde-Demi findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/AvantGarde-DemiOblique-latin1 + /AvantGarde-DemiOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-Light-latin1 + /Bookman-Light findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-LightItalic-latin1 + /Bookman-LightItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-Demi-latin1 + /Bookman-Demi findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Bookman-DemiItalic-latin1 + /Bookman-DemiItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-latin1 + /Courier findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-Oblique-latin1 + /Courier-Oblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-Bold-latin1 + /Courier-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Courier-BoldOblique-latin1 + /Courier-BoldOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-latin1 + /Helvetica findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Oblique-latin1 + /Helvetica-Oblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Bold-latin1 + /Helvetica-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-BoldOblique-latin1 + /Helvetica-BoldOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-latin1 + /Helvetica-Narrow findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-Oblique-latin1 + /Helvetica-Narrow-Oblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-Bold-latin1 + /Helvetica-Narrow-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Helvetica-Narrow-BoldOblique-latin1 + /Helvetica-Narrow-BoldOblique findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-Roman-latin1 + /NewCenturySchoolbook-Roman findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-Italic-latin1 + /NewCenturySchoolbook-Italic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-Bold-latin1 + /NewCenturySchoolbook-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/NewCenturySchoolbook-BoldItalic-latin1 + /NewCenturySchoolbook-BoldItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-Roman-latin1 + /Palatino-Roman findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-Italic-latin1 + /Palatino-Italic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-Bold-latin1 + /Palatino-Bold findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Palatino-BoldItalic-latin1 + /Palatino-BoldItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/Symbol-latin1 + /Symbol findfont +definefont pop +/ZapfChancery-MediumItalic-latin1 + /ZapfChancery-MediumItalic findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/ZapfDingbats-latin1 + /ZapfDingbats findfont + dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding isolatin1encoding def + currentdict end +definefont pop +/cp {closepath} bind def +/c {curveto} bind def +/f {fill} bind def +/a {arc} bind def +/ef {eofill} bind def +/ex {exch} bind def +/gr {grestore} bind def +/gs {gsave} bind def +/sa {save} bind def +/rs {restore} bind def +/l {lineto} bind def +/m {moveto} bind def +/rm {rmoveto} bind def +/n {newpath} bind def +/s {stroke} bind def +/sh {show} bind def +/slc {setlinecap} bind def +/slj {setlinejoin} bind def +/slw {setlinewidth} bind def +/srgb {setrgbcolor} bind def +/rot {rotate} bind def +/sc {scale} bind def +/sd {setdash} bind def +/ff {findfont} bind def +/sf {setfont} bind def +/scf {scalefont} bind def +/sw {stringwidth pop} bind def +/tr {translate} bind def + +/ellipsedict 8 dict def +ellipsedict /mtrx matrix put +/ellipse +{ ellipsedict begin + /endangle exch def + /startangle exch def + /yrad exch def + /xrad exch def + /y exch def + /x exch def /savematrix mtrx currentmatrix def + x y tr xrad yrad sc + 0 0 1 startangle endangle arc + savematrix setmatrix + end +} def + +/colortogray { +/rgbdata exch store +rgbdata length 3 idiv +/npixls exch store +/rgbindx 0 store +0 1 npixls 1 sub { +grays exch +rgbdata rgbindx get 20 mul +rgbdata rgbindx 1 add get 32 mul +rgbdata rgbindx 2 add get 12 mul +add add 64 idiv +put +/rgbindx rgbindx 3 add store +} for +grays 0 npixls getinterval +} bind def +/mergeprocs { +dup length +3 -1 roll +dup +length +dup +5 1 roll +3 -1 roll +add +array cvx +dup +3 -1 roll +0 exch +putinterval +dup +4 2 roll +putinterval +} bind def +/colorimage { +pop pop +{colortogray} mergeprocs +image +} bind def + +28.346000 -28.346000 scale +-5.950000 -9.256637 translate +%%EndProlog + + +1.000000 1.000000 1.000000 srgb +n 6.000000 4.000000 m 6.000000 6.000000 l 10.000000 6.000000 l 10.000000 4.000000 l f +0.100000 slw +[] 0 sd +[] 0 sd +0 slj +0.000000 0.000000 0.000000 srgb +n 6.000000 4.000000 m 6.000000 6.000000 l 10.000000 6.000000 l 10.000000 4.000000 l cp s +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 6.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +(Camera) dup sw 2 div 8.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 8.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 7.000000 ex sub 5.000000 m gs 1 -1 sc sh gr +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +() dup sw 2 div 10.000000 ex sub 7.000000 m gs 1 -1 sc sh gr +0.100000 slw +[] 0 sd +[] 0 sd +0 slc +0.000000 0.000000 0.000000 srgb +n 10.000000 5.000000 m 14.000000 5.000000 l s +0 slj +0.000000 0.000000 0.000000 srgb +n 10.800000 4.600000 m 10.000000 5.000000 l 10.800000 5.400000 l f +0 slj +0.000000 0.000000 0.000000 srgb +n 13.200000 5.400000 m 14.000000 5.000000 l 13.200000 4.600000 l f +0.080000 slw +0 slj +[] 0 sd +0.700000 0.700000 0.700000 srgb +n 14.250000 4.200000 m 14.250000 7.700000 l 15.750000 7.700000 l 15.750000 4.200000 l f +0.000000 0.000000 0.000000 srgb +n 14.250000 4.200000 m 14.250000 7.700000 l 15.750000 7.700000 l 15.750000 4.200000 l cp s +0.010000 slw +0.000000 0.000000 0.000000 srgb +n 14.400000 4.410000 m 14.400000 4.810000 l 15.600000 4.810000 l 15.600000 4.410000 l cp s +0.000000 0.000000 0.000000 srgb +n 14.400000 4.810000 m 14.400000 5.210000 l 15.600000 5.210000 l 15.600000 4.810000 l cp s +0.000000 0.000000 0.000000 srgb +n 14.400000 5.210000 m 14.400000 5.610000 l 15.600000 5.610000 l 15.600000 5.210000 l cp s +0.000000 0.000000 0.000000 srgb +n 14.400000 5.610000 m 14.400000 6.010000 l 15.600000 6.010000 l 15.600000 5.610000 l cp s +0.000000 0.000000 0.000000 srgb +n 14.400000 6.090000 m 14.400000 6.330000 l 15.150000 6.330000 l 15.150000 6.090000 l cp s +0.000000 1.000000 0.000000 srgb +n 15.525000 6.130000 0.052500 0.052500 0 360 ellipse f +0.000000 0.000000 0.000000 srgb +n 15.525000 6.130000 0.052500 0.052500 0 360 ellipse cp s +1.000000 1.000000 0.000000 srgb +n 15.525000 6.290000 0.052500 0.052500 0 360 ellipse f +0.000000 0.000000 0.000000 srgb +n 15.525000 6.290000 0.052500 0.052500 0 360 ellipse cp s +1.000000 1.000000 1.000000 srgb +n 15.225000 6.170000 m 15.225000 6.330000 l 15.405000 6.330000 l 15.405000 6.170000 l f +0.000000 0.000000 0.000000 srgb +n 15.225000 6.170000 m 15.225000 6.330000 l 15.405000 6.330000 l 15.405000 6.170000 l cp s +0.080000 slw +0 slc +0.000000 0.000000 0.000000 srgb +n 14.500000 6.650000 m 14.500000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 14.750000 6.650000 m 14.750000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 15.000000 6.650000 m 15.000000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 15.250000 6.650000 m 15.250000 7.525000 l s +0.000000 0.000000 0.000000 srgb +n 15.500000 6.650000 m 15.500000 7.525000 l s +0.600000 0.600000 0.600000 srgb +n 13.950000 8.000000 m 14.250000 7.400000 l 14.250000 7.700000 l 15.750000 7.700000 l 15.750000 7.400000 l 16.050000 8.000000 l f +0.000000 0.000000 0.000000 srgb +n 13.950000 8.000000 m 14.250000 7.400000 l 14.250000 7.700000 l 15.750000 7.700000 l 15.750000 7.400000 l 16.050000 8.000000 l cp s +/Courier-latin1 ff 1.000000 scf sf +0.000000 0.000000 0.000000 srgb +(Host) dup sw 2 div 15.000000 ex sub 9.000000 m gs 1 -1 sc sh gr +0.100000 slw +[] 0 sd +[] 0 sd +0 slj +0 slc +0.000000 0.000000 0.000000 srgb +n 12.000000 5.000000 m 12.000000 6.000000 l 14.000000 6.000000 l 14.000000 6.000000 l s +0 slj +0.000000 0.000000 0.000000 srgb +n 13.200000 6.400000 m 14.000000 6.000000 l 13.200000 5.600000 l f +showpage diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel.lyx b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel.lyx new file mode 100644 index 00000000..95e1cfd1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel.lyx @@ -0,0 +1,1096 @@ +#LyX 1.1 created this file. For more info see http://www.lyx.org/ +\lyxformat 2.15 +\textclass linuxdoc +\language default +\inputencoding latin1 +\fontscheme default +\graphics default +\paperfontsize default +\spacing single +\papersize Default +\paperpackage a4 +\use_geometry 0 +\use_amsmath 0 +\paperorientation portrait +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\defskip medskip +\quotes_language english +\quotes_times 2 +\papercolumns 1 +\papersides 1 +\paperpagestyle default + +\layout Title +\added_space_top vfill \added_space_bottom vfill +gPhoto2 Camera Library Developer's Guide +\layout Author + +Scott Fritzinger +\newline +2000-07-26 +\newline +Revision 1 +\layout Standard + + +\begin_inset LatexCommand \tableofcontents{} + +\end_inset + + +\layout Section + +Reverse Engineering the Camera Protocol +\layout Standard + +The most difficult part for most developers is obtaining the transfer protocol. + If the OEM's are lucky enough, they will simply provide us with the protocol + specifications for their cameras and the drivers will be written at no + cost to them. + Most OEM's refuse to do so though, citing trade secrets or company policy; + this is truly unfortunate in that they have effectively told their own + customers who use operating systems other than Windows and the Mac that + they don't want their future business and that they aren't valued customer + to begin with. +\layout Standard + +When OEM's do not cooperate, the developer is left to determine the protocol + him/herself through reverse engineering. + +\layout Subsection + +Sniffing the Protocol +\layout Standard + +What follows are the most common setups for sniffing camera protocol traffic. + In all setups, a host computer runs the native camera drivers.; typically, + the Windows serial port drivers are used for reverse engineering. + The drivers are run through a series of functions that include getting + a picture index, downloading thumbnails, download full images, deleting + images, camera configuration options, in addition to any other features + a camera might have. + During these operations, one or more of the following methods are used + to capture the communication between the host computer and the camera. +\layout Subsubsection + +Serial Repeater +\layout Standard + +A serial repeater consists of the host computer, a computer used as a repeater, + and the camera. + The setup is shown in figure . +\layout Standard + +The repeater runs special software which reads data from one serial port, + logs the communication, and then outputs the data to the other serial port. + Data that is from the host computer to the camera and from the camera to + the host computer is logged sequentially in a single log file. + Information logged includes hexadecimal data values, direction of the communica +tion, as well as time stamps for synchronization. + An example sniffer to use for this configuration is +\begin_inset Quotes eld +\end_inset + +sersniff +\begin_inset Quotes erd +\end_inset + +. +\layout Subsubsection + + +\begin_inset Quotes eld +\end_inset + +Y +\begin_inset Quotes erd +\end_inset + + Serial Cable +\layout Standard + +To avoid using two computers, a Y serial cable can be used. + The +\begin_inset Quotes eld +\end_inset + +trunk +\begin_inset Quotes erd +\end_inset + + end of the serial cable attaches to the camera's serial transfer cable, + while the two +\begin_inset Quotes eld +\end_inset + +branches +\begin_inset Quotes erd +\end_inset + + plug in to two serial ports on the host computer. + Figure shows this setup. +\layout Standard + +The camera drivers use one of the serial ports on the host computer, while + the other port is opened with a hexadecimal monitor application that dumps + all communications on the port to a file. + The downside to this approach is the developer would have to determine + which sets of data was generated by the camera or the host computer. + Also, a Y cable would have to be either built or purchased from an electronics + supply store. +\layout Subsubsection + +Virtual Device Driver Hooks +\layout Standard + +The Windows platform allows virtual device drivers to +\begin_inset Quotes eld +\end_inset + +hook +\begin_inset Quotes erd +\end_inset + + into other drivers to provide additional functionality or feature enhancements. + A combination GUI and device driver named PortMon by Systems Internals + is a communications debugging utility that hooks into the existing Windows + serial device driver (vcomm.vxd) and logs communications. + Figure shows this equipment arrangement. +\layout Standard + +This setup allows the developer to not use any extra hardware by simply + relying on software. + This is perhaps the easiest method for capturing camera data. +\layout Subsection + +Making Sense Out of the Protocol +\layout Standard + +What follows are some pointers on decoding camera protocols. + It uses a protocol that isn't really any camera protocol in particular, + but should demonstrate some commonalities between most camera protocols. +\layout Enumerate + +Cameras like to ping. + This is the in the form of an "ACK"" command that is different for different + cameras. + Basically, it is usually a short packet (probably 1 byte) that is sent + both ways in order for the camera to know the computer is there or vice + versa. + It is also sometimes used to wake up a camera that has gone into power-save + mode. + It usually starts out the communications, as well as confirms each packet + in any sort of "mass" transfer. + The opposite, a "NAK", is sent to basically say the last packet was not + received, or an error has occurred. + Again, this is usually just a single byte as well. +\newline + +\newline +Example: +\newline +Computer: 01 +\newline +Camera : 01 +\newline + +\newline +The Camera sent an ACK ("01") and the Computer responded with an ACK as + well. +\layout Enumerate + +Transfers are usually in "reverse network order", meaning least significant + bytes come before most significant bytes. + For example, +\begin_inset Quotes eld +\end_inset + +00 08 +\begin_inset Quotes erd +\end_inset + + should actually be reassembled as +\begin_inset Quotes eld +\end_inset + +08 00 +\begin_inset Quotes erd +\end_inset + +. + +\layout Enumerate + +Most protocols use starting and stopping bytes. + +\newline + +\newline +Example: +\newline +Computer: 03 50 00 0f e0 04 +\newline +Camera : 03 03 00 3f 03 04 +\newline +Computer: 01 +\newline + +\newline +For this example, notice the packets begin with "03" and end with "04" (don't + pay attention to what is between them). + Also notice the Computer sent an "ACK" to confirm it got the packet. +\layout Enumerate + +Packets usually have a "command" byte, which tells either the computer or + the camera what to do. + Let's say you told the software to retrieve the number of pictures, which + at the time happened to be "8", and you got the following: +\newline + +\newline +Computer: 03 01 00 00 00 04 +\newline +Camera : 03 01 00 00 08 04 +\newline +Computer: 01 +\newline + +\newline +In this example, you notice the "03" and "04" specifying the start and stop + of the packet. + Also, you notice the second byte in the Computer packet is "01". + The camera responds with the above packet, and low and behold, you see + the number 8 in the same packet. + It would appear, initially, that the second byte is used as a command byte, + and that "01" specifies the camera to return the number of pictures. + This may very well be right, but don't jump into it yet. + Make sure you look at a bunch of similar situations to confirm this. + (Again, notice the "ACK" sent by the computer). +\layout Enumerate + +Most protocols have a "data size" byte(s) in data packets. + Let's say that you told the camera to retrieve thumbnail 8 and you get + the following: +\newline + +\newline +Computer: 03 02 00 00 08 04 +\newline +Camera : 03 02 00 0F (15 bytes) 04 +\newline +Computer: 01 +\newline + +\newline +OK, here's a brief breakdown of this transaction: +\newline + +\newline +-Looks like the command to retrieve a thumbnail is "02" (2nd byte in the + computer packet), and that the byte that is "08" specifies which thumbnail + to return. +\newline +-The camera responds with a "02" in the command field, specifying it is + returning a thumbnail, and then sends "0F", and 15 bytes of data. + +\newline +-It looks like the byte "0F" specifies how many bytes are after it in the + same packet. + This is a data size byte. + +\newline +(Note: this is a simplistic example. + No thumbnail will only be 15 bytes :) this leads up to the next thing to + consider) +\layout Enumerate + +Most protocols have an "order" or "counter" byte. + This is used so that, in large data transfers where the picture may be + split up into several different packets, the computer knows how to reassemble + all the data. + The entire thumbnail more than likely will not be contained in a single + packet for logistical reasons, so they break up the data into many different + packets and give each packet a unique number (or +\begin_inset Quotes eld +\end_inset + +order +\begin_inset Quotes erd +\end_inset + + byte). + Let's say you told your camera to return thumbnail 8 (which is, as mentioned, + pretty big), and you get the following: +\newline + +\newline +Computer: 02 03 00 00 08 03 +\newline +Camera : 02 03 00 0F (15 bytes) 03 +\newline +Computer: 01 +\newline +Camera : 02 03 01 0F (15 bytes) 03 +\newline +Computer: 01 +\newline +Camera : 02 03 02 0F (15 bytes) 03 +\newline +Computer: 01 +\newline +... + 5 more packets and ACKs ... +\newline +Camera : 02 03 08 09 (9 bytes) 03 +\newline +Computer: 01 +\newline + +\newline +You notice that the 3rd byte of each of the camera packets increments with + each packet sent from the camera. + This looks like it is an order (counter) byte. + the computer can then reassemble the data from all the packets in order + to reproduce the image. +\layout Enumerate + +Most protocols have some sort of error detection byte(s) at the end of the + packet. + This is usually a simple checksum (summation of bytes), or a CRC (a somewhat + complex algorithm that reduces the probability of mis-diagnosing a packet + with errors by magnitudes). + These bytes can take into account only the data, or maybe the entire packet + excluding those error detection bytes. + If this isn't a known scheme, this winds up being the hardest part of reimpleme +nting the protocol. + Lets take the above example again, this time we'll add a couple bytes on + the end for error detection: +\newline + +\newline +Computer: 02 03 00 00 08 03 +\newline +Camera : 02 03 00 0F (15 bytes) 0f 02 03 +\newline +Computer: 01 +\newline +Camera : 02 03 01 0F (15 bytes) 0e 00 03 +\newline +Computer: 02 +\newline +Camera : 02 03 01 0F (15 bytes) fa d0 03 +\newline +Computer: 01 +\newline +Camera : 02 03 02 0F (15 bytes) fa d0 03 +\newline +Computer: 01 +\newline +... + 5 more packets and ACKs +\newline +Camera : 02 03 08 09 (9 bytes) d7 38 03 +\newline +Computer: 01 +\newline + +\newline +Notice how the error detection bytes are usually different for each packet. + These may be checksums, or CRC's, or something else. + Only way to find out really is to try each one, on different combinations + of packet parts (data, order byte, command byte, etc...) and see if you get + the same thing. + Try this on the shorter packets to make life easier. +\newline + +\newline +Look at one more thing that sticks out in this transaction: for packet with + order byte +\begin_inset Quotes eld +\end_inset + +01 +\begin_inset Quotes erd +\end_inset + +, the Computer responded with a "02 +\begin_inset Quotes erd +\end_inset + +. + and the Camera then resent the same packet it just did. + This shows that the NAK byte is "02", and this could happen because maybe + the error detection bytes didn't match with the data, or maybe something + else happened. + either way, the camera resent the last packet, and now you know how the + camera can recover from transfer errors. + If you didn't get the packet you were expecting, send the camera a NAK + and it will resend the same packet again. +\layout Section + +Understanding the gPhoto2 Design +\layout Standard + +The gPhoto2 design is the same three-tiered structure that has worked extremely + well in the past with other software packages. + Here is a listing of the 3 tiers: +\layout Itemize + +the camera library +\layout Itemize + +the I/O library +\layout Itemize + +the front-end +\layout Itemize + +the +\begin_inset Quotes eld +\end_inset + +core +\begin_inset Quotes erd +\end_inset + + +\layout Subsection + +Role of the Camera Library +\layout Standard + +The camera library is in charge of talking directly with the camera. + The library uses the gPhoto2 Camera API in order to provide a common access-met +hod for the library itself. + Being dynamically linked, the libraries are loaded at run-time depending + on the camera model the end-user would like to access. + +\layout Standard + +In order to provide flexilibity with variations in camera design, there + are camera +\begin_inset Quotes eld +\end_inset + +abilities +\begin_inset Quotes erd +\end_inset + + which list, well, the abilities of each camera model. + Some camera may support serial port connections only, while others may + be able to use USB and a serial port. + We've run into cameras that don't support thumbnailing on the camera so + there is an +\begin_inset Quotes eld +\end_inset + +abilities +\begin_inset Quotes erd +\end_inset + + field to specify whether or not the camera supports thumbnailing. + The +\begin_inset Quotes eld +\end_inset + +abilities +\begin_inset Quotes erd +\end_inset + + also list other things such as supported serial transfer speeds, file deletion, + and other functionality. +\layout Standard + +The camera libraries only make functions calls to the I/O library and to + the gPhoto2 core. +\layout Standard + +There is more information on the specifics of the camera library in section + 3 of this document. +\layout Subsection + +Role of the I/O Library +\layout Standard + +The gPhoto2 I/O library is a platform-independent communications library + that support serial, parallel, USB, firewire, and network connections. + It is a work-in-progress with a constantly expanding list of supported + platforms. + This library uses the gPhoto2 I/O library API for accessing communications + devices. + It enumerates the devices available on a system, and provides read/write + access. +\layout Standard + +The camera libraries all use the I/O library for communications with the + cameras. + By doing having all communications go through a single library, the camera + libraries become as portable as the I/O library. + Porting gPhoto2 to other platforms become extremely easy. +\layout Standard + +There is more information on the specifics of the I/O library in section + 3 of this document. +\layout Subsection + +Role of the Front-end +\layout Standard + +The front-end is the application that the user interacts with. + It is usually a command-line program, or a graphical point-and-click interface. + The front-end talks only with the gPhoto2 core in order to retrieve pictures + and perform other functions with the camera. +\layout Subsection + +Role of the gPhoto2 Core +\layout Standard + +The gPhoto2 +\begin_inset Quotes eld +\end_inset + +core +\begin_inset Quotes erd +\end_inset + + is the heart of gPhoto2. + It provides services to both the camera libraries and the front-ends. + Most of the services deal with error-checking and enumeration of devices + (cameras, I/O devices, etc...). + The core performs validity checking on data passed to/from the front-end + or the camera library. +\layout Standard + +You could consider the core a translator/interpreter/spell-checker/army-general + in the +\begin_inset Quotes eld +\end_inset + +big picture +\begin_inset Quotes erd +\end_inset + + of gPhoto2. + It does the grunt-work and performs the coordination of the other parts. +\layout Section + +Implementing the Library +\layout Standard + +gPhoto2 camera libraries use the gPhoto2 Camera API (CAPI) for implementation. + Here is a listing of the CAPI functions: +\layout Standard + +camera_id +\layout Standard + +camera_abilities +\layout Standard + +camera_init +\layout Standard + +camera_exit +\layout Standard + +camera_folder_list +\layout Standard + +camera_file_list +\protected_separator + +\layout Standard + +camera_file_get +\layout Standard + +camera_file_get_preview +\layout Standard + +camera_file_put +\layout Standard + +camera_file_delete +\layout Standard + +camera_config_get +\layout Standard + +camera_config_set +\layout Standard + +camera_capture +\layout Standard + +camera_summary +\layout Standard + +camera_manual +\layout Standard + +camera_about +\newline + +\layout Standard + +Section 3.1 details the purpose of each of these functions, while Section + 3.2 discusses how to use the I/O library. +\layout Subsection + +Camera API +\layout Standard + +The CAPI provides the full set of functions for doing various tasks with + the camera. + All CAPI functions return either GP_OK for succesful execution , or GP_ERROR + for a failure of execution +\layout Standard + +What follows is a listing of the functions, including prototypes and data + exchange: +\layout Subsubsection + +camera_id +\layout Standard + + +\series bold +Purpose: +\series default +Retrieve the unique id for the camera library. +\layout Standard + + +\series bold +Prototype: +\series default +int camera_id (CameraText *id); +\layout Standard + + +\series bold +Arguments: +\layout Standard + +CameraText *id : unique string to represent the camera library +\newline + +\layout Standard + +In order to guarantee that only once instance of the camera library is loaded + for each instance of the core, the camera library must copy a unique string + into the +\begin_inset Quotes eld +\end_inset + +id +\begin_inset Quotes erd +\end_inset + +. + Please consult the gPhoto developers to determine which string you should + use. +\newline + +\layout Standard + + +\series bold +Example: +\layout Standard + +int camera_id(CameraText *id) { +\layout Standard + +strcpy(id->text, +\begin_inset Quotes eld +\end_inset + +my-unique-string +\begin_inset Quotes erd +\end_inset + +); +\layout Standard + +return (GP_OK); +\layout Standard + +} +\layout Subsubsection + +camera_abilities +\layout Standard + + +\series bold +Purpose: +\series default +Retrieve the list of supported cameras and the abilities for each camera +\layout Standard + + +\series bold +Prototype: +\series default +int camera_abilities (CameraAbilitiesList *list); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Standard + +CameraAbilities *abilities : the list of abilities for the supported cameras +\layout Standard + +int *count : the number of +\layout Subsubsection + +camera_init +\layout Standard + + +\series bold +Purpose: +\series default +Initialize the camera +\layout Standard + + +\series bold +Prototype: +\series default +int camera_init (Camera *camera, CameraInit *init); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_exit +\layout Standard + + +\series bold +Purpose: +\series default +Close the camera +\layout Standard + + +\series bold +Prototype: +\series default +int camera_exit (Camera *camera); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_file_list +\layout Standard + + +\series bold +Purpose: +\series default +List the files in a particular folder on the camera +\layout Standard + + +\series bold +Prototype: +\series default +int camera_file_list(Camera *camera, CameraList *list, char *folder); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_folder_list +\layout Standard + + +\series bold +Purpose: +\series default +List the subfolders in a particular folder on the camera +\layout Standard + + +\series bold +Prototype: +\series default +int camera_folder_list(Camera *camera, CameraList *list, char *folder); + +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_file_get +\layout Standard + + +\series bold +Purpose: +\series default +Retrieve a file from the camera +\layout Standard + + +\series bold +Prototype: +\series default +int camera_file_get (Camera *camera, CameraFile *file, char *folder, char + *filename); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_file_get_preview +\layout Standard + + +\series bold +Purpose: +\series default +Retrieve a file's preview from the camera +\layout Standard + + +\series bold +Prototype: +\series default +int camera_file_get_preview (Camera *camera, CameraFile *file, char *folder, + char *filename); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_file_put +\layout Standard + + +\series bold +Purpose: +\series default +Place (upload) a file to the camera +\layout Standard + + +\series bold +Prototype: +\series default +int camera_file_put (Camera *camera, CameraFile *file, char *folder); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_file_delete +\layout Standard + + +\series bold +Purpose: +\series default +Delete a file from the camera +\layout Standard + + +\series bold +Prototype: +\series default +int camera_file_delete (Camera *camera, char *folder, char *filename); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_config_get +\layout Standard + + +\series bold +Purpose: +\series default +Retrieve the configuration window. +\layout Standard + + +\series bold +Prototype: +\series default +int camera_config_get (Camera *camera, CameraWidget *window); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_config_set +\layout Standard + + +\series bold +Purpose: +\series default +Set camera configuration +\layout Standard + + +\series bold +Prototype: +\series default +int camera_config_set (Camera *camera, CameraSetting *setting, int count); + +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_capture +\layout Standard + + +\series bold +Purpose: +\series default +Retrieve live data from the camera +\layout Standard + + +\series bold +Prototype: +\series default +int camera_capture (Camera *camera, CameraFile *file, CameraCaptureInfo + *info); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_summary +\layout Standard + + +\series bold +Purpose: +\series default +Retrieve the camera summary information +\layout Standard + + +\series bold +Prototype: +\series default +int camera_summary (Camera *camera, CameraText *summary); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_manual +\layout Standard + + +\series bold +Purpose: +\series default +Retrieve the camera user's guide (manual) +\layout Standard + + +\series bold +Prototype: +\series default +int camera_manual (Camera *camera, CameraText *manual); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsubsection + +camera_about +\layout Standard + + +\series bold +Purpose: +\series default +Retrieve information about the camera library +\layout Standard + + +\series bold +Prototype: +\series default +int camera_about (Camera *camera, CameraText *about); +\layout Standard + + +\series bold +Arguments: +\series default +d +\layout Subsection + +The gPhoto2 I/O Library +\the_end diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel.sgml new file mode 100644 index 00000000..505f1935 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel.sgml @@ -0,0 +1,620 @@ + + + +
+ +gPhoto2 Camera Library Developer's Guide + + +Scott Fritzinger +2000-07-26 +Revision 1 + + + +Reverse Engineering the Camera Protocol +

+The most difficult part for most developers is obtaining the transfer protocol. + If the OEM's are lucky enough, they will simply provide us with the protocol + specifications for their cameras and the drivers will be written at no cost + to them. Most OEM's refuse to do so though, citing trade secrets or company + policy; this is truly unfortunate in that they have effectively told their + own customers who use operating systems other than Windows and the Mac that + they don't want their future business and that they aren't valued customer + to begin with. +

+

+When OEM's do not cooperate, the developer is left to determine the protocol + him/herself through reverse engineering. +

+ +Sniffing the Protocol +

+What follows are the most common setups for sniffing camera protocol traffic. + In all setups, a host computer runs the native camera drivers.; typically, + the Windows serial port drivers are used for reverse engineering. The drivers + are run through a series of functions that include getting a picture index, + downloading thumbnails, download full images, deleting images, camera configuration + options, in addition to any other features a camera might have. During these + operations, one or more of the following methods are used to capture the communication + between the host computer and the camera. +

+ +Serial Repeater +

+A serial repeater consists of the host computer, a computer used as a repeater, + and the camera. The setup is shown in figure . +

+

+The repeater runs special software which reads data from one serial port, + logs the communication, and then outputs the data to the other serial port. + Data that is from the host computer to the camera and from the camera to the + host computer is logged sequentially in a single log file. Information logged + includes hexadecimal data values, direction of the communication, as well as + time stamps for synchronization. An example sniffer to use for this configuration + is "sersniff". +

+ +"Y" Serial Cable +

+To avoid using two computers, a Y serial cable can be used. The "trunk" end + of the serial cable attaches to the camera's serial transfer cable, while the + two "branches" plug in to two serial ports on the host computer. Figure shows + this setup. +

+

+The camera drivers use one of the serial ports on the host computer, while + the other port is opened with a hexadecimal monitor application that dumps + all communications on the port to a file. The downside to this approach is + the developer would have to determine which sets of data was generated by the + camera or the host computer. Also, a Y cable would have to be either built + or purchased from an electronics supply store. +

+ +Virtual Device Driver Hooks +

+The Windows platform allows virtual device drivers to "hook" into other drivers + to provide additional functionality or feature enhancements. A combination + GUI and device driver named PortMon by Systems Internals is a communications + debugging utility that hooks into the existing Windows serial device driver + (vcomm.vxd) and logs communications. Figure shows this equipment arrangement. +

+

+This setup allows the developer to not use any extra hardware by simply + relying on software. This is perhaps the easiest method for capturing camera + data. +

+ +Making Sense Out of the Protocol +

+What follows are some pointers on decoding camera protocols. It uses a + protocol that isn't really any camera protocol in particular, but should demonstrate + some commonalities between most camera protocols. +

+

+ + +Cameras like to ping. This is the in the form of an "ACK"" + command that is different for different cameras. Basically, it is usually a + short packet (probably 1 byte) that is sent both ways in order for the camera + to know the computer is there or vice versa. It is also sometimes used to wake + up a camera that has gone into power-save mode. It usually starts out the communications, + as well as confirms each packet in any sort of "mass" transfer. The + opposite, a "NAK", is sent to basically say the last packet was not + received, or an error has occured. Again, this is usually just a single byte + as well. + +Example: +Computer: 01 +Camera : 01 + +The Camera sent an ACK ("01") + and the Computer responded with an ACK as well. + +Transfers are usually in "reverse network order", meaning least + significant bytes come before most significant bytes. For example, "00 08" should + actually be reassembled as "08 00". + +Most protocols use starting and stopping bytes. + +Example: +Computer: 03 + 50 00 0f e0 04 +Camera : 03 03 00 3f 03 04 +Computer: 01 + +For this example, + notice the packets begin with "03" and end with "04" (don't + pay attention to what is between them). Also notice the Computer sent an "ACK" + to confirm it got the packet. + +Packets usually have a "command" byte, which tells either the + computer or the camera what to do. Let's say you told the software to retrieve + the number of pictures, which at the time happened to be "8", and + you got the following: + +Computer: 03 01 00 00 00 04 +Camera : 03 01 00 00 08 + 04 +Computer: 01 + +In this example, you notice the "03" and "04" + specifying the start and stop of the packet. Also, you notice the second byte + in the Computer packet is "01". The camera responds with the above + packet, and low and behold, you see the number 8 in the same packet. It would + appear, initially, that the second byte is used as a command byte, and that + "01" specifies the camera to return the number of pictures. This + may very well be right, but don't jump into it yet. Make sure you look at a + bunch of similar situations to confirm this. (Again, notice the "ACK" + sent by the computer). + +Most protocols have a "data size" byte(s) in data packets. Let's + say that you told the camera to retrieve thumbnail 8 and you get the following: + +Computer: + 03 02 00 00 08 04 +Camera : 03 02 00 0F (15 bytes) 04 +Computer: 01 + +OK, here's + a brief breakdown of this transaction: + +-Looks like the command to retrieve + a thumbnail is "02" (2nd byte in the computer packet), and that the + byte that is "08" specifies which thumbnail to return. +-The camera + responds with a "02" in the command field, specifying it is returning + a thumbnail, and then sends "0F", and 15 bytes of data. +-It looks + like the byte "0F" specifies how many bytes are after it in the same + packet. This is a data size byte. +(Note: this is a simplistic example. No + thumbnail will only be 15 bytes :) this leads up to the next thing to consider) + +Most protocols have an "order" or "counter" byte. This + is used so that, in large data transfers where the picture may be split up + into several different packets, the computer knows how to reassemble all the + data. The entire thumbnail more than likely will not be contained in a single + packet for logistical reasons, so they break up the data into many different + packets and give each packet a unique number (or "order" byte). Let's say you + told your camera to return thumbnail 8 (which is, as mentioned, pretty big), + and you get the following: + +Computer: 02 03 00 00 08 03 +Camera : 02 03 00 + 0F (15 bytes) 03 +Computer: 01 +Camera : 02 03 01 0F (15 bytes) 03 +Computer: + 01 +Camera : 02 03 02 0F (15 bytes) 03 +Computer: 01 +... 5 more packets and ACKs + ... +Camera : 02 03 08 09 (9 bytes) 03 +Computer: 01 + +You notice that the 3rd + byte of each of the camera packets increments with each packet sent from the + camera. This looks like it is an order (counter) byte. the computer can then + reassemble the data from all the packets in order to reproduce the image. + +Most protocols have some sort of error detection byte(s) at the end of + the packet. This is usually a simple checksum (summation of bytes), or a CRC + (a somewhat complex algorithm that reduces the probability of mis-diagnosing + a packet with errors by magnitudes). These bytes can take into account only + the data, or maybe the entire packet excluding those error detection bytes. + If this isn't a known scheme, this winds up being the hardest part of reimplementing + the protocol. Lets take the above example again, this time we'll add a couple + bytes on the end for error detection: + +Computer: 02 03 00 00 08 03 +Camera : + 02 03 00 0F (15 bytes) 0f 02 03 +Computer: 01 +Camera : 02 03 01 0F (15 bytes) + 0e 00 03 +Computer: 02 +Camera : 02 03 01 0F (15 bytes) fa d0 03 +Computer: 01 +Camera + : 02 03 02 0F (15 bytes) fa d0 03 +Computer: 01 +... 5 more packets and ACKs +Camera + : 02 03 08 09 (9 bytes) d7 38 03 +Computer: 01 + +Notice how the error detection + bytes are usually different for each packet. These may be checksums, or CRC's, + or something else. Only way to find out really is to try each one, on different + combinations of packet parts (data, order byte, command byte, etc...) and see + if you get the same thing. Try this on the shorter packets to make life easier. + +Look + at one more thing that sticks out in this transaction: for packet with order + byte "01", the Computer responded with a "02". and the Camera then resent + the same packet it just did. This shows that the NAK byte is "02", + and this could happen because maybe the error detection bytes didn't match + with the data, or maybe something else happened. either way, the camera resent + the last packet, and now you know how the camera can recover from transfer + errors. If you didn't get the packet you were expecting, send the camera a + NAK and it will resend the same packet again. + +

+Understanding the gPhoto2 Design +

+The gPhoto2 design is the same three-tiered structure that has worked extremely + well in the past with other software packages. Here is a listing of the 3 tiers: +

+

+ + +the camera library + +the I/O library + +the front-end + +the "core" + +

+Role of the Camera Library +

+The camera library is in charge of talking directly with the camera. The + library uses the gPhoto2 Camera API in order to provide a common access-method + for the library itself. Being dynamically linked, the libraries are loaded + at run-time depending on the camera model the end-user would like to access. + +

+

+In order to provide flexilibity with variations in camera design, there + are camera "abilities" which list, well, the abilities of each camera model. + Some camera may support serial port connections only, while others may be able + to use USB and a serial port. We've run into cameras that don't support thumbnailing + on the camera so there is an "abilities" field to specify whether or not the + camera supports thumbnailing. The "abilities" also list other things such as + supported serial transfer speeds, file deletion, and other functionality. +

+

+The camera libraries only make functions calls to the I/O library and to + the gPhoto2 core. +

+

+There is more information on the specifics of the camera library in section + 3 of this document. +

+ +Role of the I/O Library +

+The gPhoto2 I/O library is a platform-independent communications library + that support serial, parallel, USB, firewire, and network connections. It is + a work-in-progress with a constantly expanding list of supported platforms. + This library uses the gPhoto2 I/O library API for accessing communications + devices. It enumerates the devices available on a system, and provides read/write + access. +

+

+The camera libraries all use the I/O library for communications with the + cameras. By doing having all communications go through a single library, the + camera libraries become as portable as the I/O library. Porting gPhoto2 to + other platforms become extremely easy. +

+

+There is more information on the specifics of the I/O library in section + 3 of this document. +

+ +Role of the Front-end +

+The front-end is the application that the user interacts with. It is usually + a command-line program, or a graphical point-and-click interface. The front-end + talks only with the gPhoto2 core in order to retrieve pictures and perform + other functions with the camera. +

+ +Role of the gPhoto2 Core +

+The gPhoto2 "core" is the heart of gPhoto2. It provides services to both + the camera libraries and the front-ends. Most of the services deal with error-checking + and enumeration of devices (cameras, I/O devices, etc...). The core performs + validity checking on data passed to/from the front-end or the camera library. +

+

+You could consider the core a translator/interpreter/spell-checker/army-general + in the "big picture" of gPhoto2. It does the grunt-work and performs the coordination + of the other parts. +

+ +Implementing the Library +

+gPhoto2 camera libraries use the gPhoto2 Camera API (CAPI) for implementation. + Here is a listing of the CAPI functions: +

+

+camera_id +

+

+camera_abilities +

+

+camera_init +

+

+camera_exit +

+

+camera_folder_list +

+

+camera_file_list +

+

+camera_file_get +

+

+camera_file_get_preview +

+

+camera_file_put +

+

+camera_file_delete +

+

+camera_config_get +

+

+camera_config_set +

+

+camera_capture +

+

+camera_summary +

+

+camera_manual +

+

+camera_about + +

+

+Section 3.1 details the purpose of each of these functions, while Section + 3.2 discusses how to use the I/O library. +

+ +Camera API +

+The CAPI provides the full set of functions for doing various tasks with + the camera. All CAPI functions return either GP_OK for succesful execution + , or GP_ERROR for a failure of execution +

+

+What follows is a listing of the functions, including prototypes and data + exchange: +

+ +camera_id +

+Purpose: Retrieve the unique id for the camera library. +

+

+Prototype: int camera_id (CameraText *id); +

+

+Arguments: +

+

+CameraText *id : unique string to represent the camera library + +

+

+In order to guarantee that only once instance of the camera library is + loaded for each instance of the core, the camera library must copy a unique + string into the "id". Please consult the gPhoto developers to determine which + string you should use. + +

+

+Example: +

+

+int camera_id(CameraText *id) { +

+

+strcpy(id->text, "my-unique-string"); +

+

+return (GP_OK); +

+

+} +

+ +camera_abilities +

+Purpose: Retrieve the list of supported cameras and the abilities for each + camera +

+

+Prototype: int camera_abilities (CameraAbilitiesList *list); +

+

+Arguments: d +

+

+CameraAbilities *abilities : the list of abilities for the supported cameras +

+

+int *count : the number of +

+ +camera_init +

+Purpose: Initialize the camera +

+

+Prototype: int camera_init (Camera *camera, CameraInit *init); +

+

+Arguments: d +

+ +camera_exit +

+Purpose: Close the camera +

+

+Prototype: int camera_exit (Camera *camera); +

+

+Arguments: d +

+ +camera_file_list +

+Purpose: List the files in a particular folder on the camera +

+

+Prototype: int camera_file_list(Camera *camera, CameraList *list, char + *folder); +

+

+Arguments: d +

+ +camera_folder_list +

+Purpose: List the subfolders in a particular folder on the camera +

+

+Prototype: int camera_folder_list(Camera *camera, CameraList *list, char + *folder); +

+

+Arguments: d +

+ +camera_file_get +

+Purpose: Retrieve a file from the camera +

+

+Prototype: int camera_file_get (Camera *camera, CameraFile *file, char + *folder, char *filename); +

+

+Arguments: d +

+ +camera_file_get_preview +

+Purpose: Retrieve a file's preview from the camera +

+

+Prototype: int camera_file_get_preview (Camera *camera, CameraFile *file, + char *folder, char *filename); +

+

+Arguments: d +

+ +camera_file_put +

+Purpose: Place (upload) a file to the camera +

+

+Prototype: int camera_file_put (Camera *camera, CameraFile *file, char + *folder); +

+

+Arguments: d +

+ +camera_file_delete +

+Purpose: Delete a file from the camera +

+

+Prototype: int camera_file_delete (Camera *camera, char *folder, char *filename); + +

+

+Arguments: d +

+ +camera_config_get +

+Purpose: Retrieve the configuration window. +

+

+Prototype: int camera_config_get (Camera *camera, CameraWidget *window); + +

+

+Arguments: d +

+ +camera_config_set +

+Purpose: Set camera configuration +

+

+Prototype: int camera_config_set (Camera *camera, CameraSetting *setting, + int count); +

+

+Arguments: d +

+ +camera_capture +

+Purpose: Retrieve live data from the camera +

+

+Prototype: int camera_capture (Camera *camera, CameraFile *file, CameraCaptureInfo + *info); +

+

+Arguments: d +

+ +camera_summary +

+Purpose: Retrieve the camera summary information +

+

+Prototype: int camera_summary (Camera *camera, CameraText *summary); +

+

+Arguments: d +

+ +camera_manual +

+Purpose: Retrieve the camera user's guide (manual) +

+

+Prototype: int camera_manual (Camera *camera, CameraText *manual); +

+

+Arguments: d +

+ +camera_about +

+Purpose: Retrieve information about the camera library +

+

+Prototype: int camera_about (Camera *camera, CameraText *about); +

+

+Arguments: d +

+ +The gPhoto2 I/O Library + + +
diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel.txt new file mode 100644 index 00000000..e875d03e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/camlib_devel.txt @@ -0,0 +1,507 @@ + + +gPhoto2 Camera Library Developer's Guide + +Scott Fritzinger +2000-07-26 +Revision 1 + +\tableofcontents{} + +1 Reverse Engineering the Camera Protocol + +The most difficult part for most developers is obtaining the transfer +protocol. If the OEM's are lucky enough, they will simply provide +us with the protocol specifications for their cameras and the drivers +will be written at no cost to them. Most OEM's refuse to do so though, +citing trade secrets or company policy; this is truly unfortunate +in that they have effectively told their own customers who use operating +systems other than Windows and the Mac that they don't want their +future business and that they aren't valued customer to begin with. + +When OEM's do not cooperate, the developer is left to determine the +protocol him/herself through reverse engineering. + +1.1 Sniffing the Protocol + +What follows are the most common setups for sniffing camera protocol +traffic. In all setups, a host computer runs the native camera drivers.; +typically, the Windows serial port drivers are used for reverse engineering. +The drivers are run through a series of functions that include getting +a picture index, downloading thumbnails, download full images, deleting +images, camera configuration options, in addition to any other features +a camera might have. During these operations, one or more of the following +methods are used to capture the communication between the host computer +and the camera. + +1.1.1 Serial Repeater + +A serial repeater consists of the host computer, a computer used as +a repeater, and the camera. The setup is shown in figure . + +The repeater runs special software which reads data from one serial +port, logs the communication, and then outputs the data to the other +serial port. Data that is from the host computer to the camera and +from the camera to the host computer is logged sequentially in a single +log file. Information logged includes hexadecimal data values, direction +of the communication, as well as time stamps for synchronization. +An example sniffer to use for this configuration is ``sersniff''. + +1.1.2 ``Y'' Serial Cable + +To avoid using two computers, a Y serial cable can be used. The ``trunk'' +end of the serial cable attaches to the camera's serial transfer cable, +while the two ``branches'' plug in to two serial ports on the host +computer. Figure shows this setup. + +The camera drivers use one of the serial ports on the host computer, +while the other port is opened with a hexadecimal monitor application +that dumps all communications on the port to a file. The downside +to this approach is the developer would have to determine which sets +of data was generated by the camera or the host computer. Also, a +Y cable would have to be either built or purchased from an electronics +supply store. + +1.1.3 Virtual Device Driver Hooks + +The Windows platform allows virtual device drivers to ``hook'' into +other drivers to provide additional functionality or feature enhancements. +A combination GUI and device driver named PortMon by Systems Internals +is a communications debugging utility that hooks into the existing +Windows serial device driver (vcomm.vxd) and logs communications. +Figure shows this equipment arrangement. + +This setup allows the developer to not use any extra hardware by simply +relying on software. This is perhaps the easiest method for capturing +camera data. + +1.2 Making Sense Out of the Protocol + +What follows are some pointers on decoding camera protocols. It uses +a protocol that isn't really any camera protocol in particular, but +should demonstrate some commonalities between most camera protocols. + +1. Cameras like to ping. This is the in the form of an "ACK"" command + that is different for different cameras. Basically, it is usually + a short packet (probably 1 byte) that is sent both ways in order + for the camera to know the computer is there or vice versa. It is + also sometimes used to wake up a camera that has gone into power-save + mode. It usually starts out the communications, as well as confirms + each packet in any sort of "mass" transfer. The opposite, a "NAK", + is sent to basically say the last packet was not received, or an + error has occured. Again, this is usually just a single byte as + well. + + Example: + Computer: 01 + Camera : 01 + + The Camera sent an ACK ("01") and the Computer responded with an + ACK as well. + +2. Transfers are usually in "reverse network order", meaning least significant + bytes come before most significant bytes. For example, ``00 08'' + should actually be reassembled as ``08 00''. + +3. Most protocols use starting and stopping bytes. + + Example: + Computer: 03 50 00 0f e0 04 + Camera : 03 03 00 3f 03 04 + Computer: 01 + + For this example, notice the packets begin with "03" and end with + "04" (don't pay attention to what is between them). Also notice + the Computer sent an "ACK" to confirm it got the packet. + +4. Packets usually have a "command" byte, which tells either the computer + or the camera what to do. Let's say you told the software to retrieve + the number of pictures, which at the time happened to be "8", and + you got the following: + + Computer: 03 01 00 00 00 04 + Camera : 03 01 00 00 08 04 + Computer: 01 + + In this example, you notice the "03" and "04" specifying the start + and stop of the packet. Also, you notice the second byte in the + Computer packet is "01". The camera responds with the above packet, + and low and behold, you see the number 8 in the same packet. It + would appear, initially, that the second byte is used as a command + byte, and that "01" specifies the camera to return the number of + pictures. This may very well be right, but don't jump into it yet. + Make sure you look at a bunch of similar situations to confirm this. + (Again, notice the "ACK" sent by the computer). + +5. Most protocols have a "data size" byte(s) in data packets. Let's + say that you told the camera to retrieve thumbnail 8 and you get + the following: + + Computer: 03 02 00 00 08 04 + Camera : 03 02 00 0F (15 bytes) 04 + Computer: 01 + + OK, here's a brief breakdown of this transaction: + + -Looks like the command to retrieve a thumbnail is "02" (2nd byte + in the computer packet), and that the byte that is "08" specifies + which thumbnail to return. + -The camera responds with a "02" in the command field, specifying + it is returning a thumbnail, and then sends "0F", and 15 bytes of + data. + -It looks like the byte "0F" specifies how many bytes are after it + in the same packet. This is a data size byte. + (Note: this is a simplistic example. No thumbnail will only be 15 + bytes :) this leads up to the next thing to consider) + +6. Most protocols have an "order" or "counter" byte. This is used so + that, in large data transfers where the picture may be split up + into several different packets, the computer knows how to reassemble + all the data. The entire thumbnail more than likely will not be + contained in a single packet for logistical reasons, so they break + up the data into many different packets and give each packet a unique + number (or ``order'' byte). Let's say you told your camera to return + thumbnail 8 (which is, as mentioned, pretty big), and you get the + following: + + Computer: 02 03 00 00 08 03 + Camera : 02 03 00 0F (15 bytes) 03 + Computer: 01 + Camera : 02 03 01 0F (15 bytes) 03 + Computer: 01 + Camera : 02 03 02 0F (15 bytes) 03 + Computer: 01 + ... 5 more packets and ACKs ... + Camera : 02 03 08 09 (9 bytes) 03 + Computer: 01 + + You notice that the 3rd byte of each of the camera packets increments + with each packet sent from the camera. This looks like it is an + order (counter) byte. the computer can then reassemble the data + from all the packets in order to reproduce the image. + +7. Most protocols have some sort of error detection byte(s) at the end + of the packet. This is usually a simple checksum (summation of bytes), + or a CRC (a somewhat complex algorithm that reduces the probability + of mis-diagnosing a packet with errors by magnitudes). These bytes + can take into account only the data, or maybe the entire packet + excluding those error detection bytes. If this isn't a known scheme, + this winds up being the hardest part of reimplementing the protocol. + Lets take the above example again, this time we'll add a couple + bytes on the end for error detection: + + Computer: 02 03 00 00 08 03 + Camera : 02 03 00 0F (15 bytes) 0f 02 03 + Computer: 01 + Camera : 02 03 01 0F (15 bytes) 0e 00 03 + Computer: 02 + Camera : 02 03 01 0F (15 bytes) fa d0 03 + Computer: 01 + Camera : 02 03 02 0F (15 bytes) fa d0 03 + Computer: 01 + ... 5 more packets and ACKs + Camera : 02 03 08 09 (9 bytes) d7 38 03 + Computer: 01 + + Notice how the error detection bytes are usually different for each + packet. These may be checksums, or CRC's, or something else. Only + way to find out really is to try each one, on different combinations + of packet parts (data, order byte, command byte, etc...) and see + if you get the same thing. Try this on the shorter packets to make + life easier. + + Look at one more thing that sticks out in this transaction: for packet + with order byte ``01'', the Computer responded with a "02''. and + the Camera then resent the same packet it just did. This shows that + the NAK byte is "02", and this could happen because maybe the error + detection bytes didn't match with the data, or maybe something else + happened. either way, the camera resent the last packet, and now + you know how the camera can recover from transfer errors. If you + didn't get the packet you were expecting, send the camera a NAK + and it will resend the same packet again. + +2 Understanding the gPhoto2 Design + +The gPhoto2 design is the same three-tiered structure that has worked +extremely well in the past with other software packages. Here is a +listing of the 3 tiers: + +* the camera library + +* the I/O library + +* the front-end + +* the ``core'' + +2.1 Role of the Camera Library + +The camera library is in charge of talking directly with the camera. +The library uses the gPhoto2 Camera API in order to provide a common +access-method for the library itself. Being dynamically linked, the +libraries are loaded at run-time depending on the camera model the +end-user would like to access. + +In order to provide flexilibity with variations in camera design, there +are camera ``abilities'' which list, well, the abilities of each camera +model. Some camera may support serial port connections only, while +others may be able to use USB and a serial port. We've run into cameras +that don't support thumbnailing on the camera so there is an ``abilities'' +field to specify whether or not the camera supports thumbnailing. +The ``abilities'' also list other things such as supported serial +transfer speeds, file deletion, and other functionality. + +The camera libraries only make functions calls to the I/O library and +to the gPhoto2 core. + +There is more information on the specifics of the camera library in +section 3 of this document. + +2.2 Role of the I/O Library + +The gPhoto2 I/O library is a platform-independent communications library +that support serial, parallel, USB, firewire, and network connections. +It is a work-in-progress with a constantly expanding list of supported +platforms. This library uses the gPhoto2 I/O library API for accessing +communications devices. It enumerates the devices available on a system, +and provides read/write access. + +The camera libraries all use the I/O library for communications with +the cameras. By doing having all communications go through a single +library, the camera libraries become as portable as the I/O library. +Porting gPhoto2 to other platforms become extremely easy. + +There is more information on the specifics of the I/O library in section +3 of this document. + +2.3 Role of the Front-end + +The front-end is the application that the user interacts with. It is +usually a command-line program, or a graphical point-and-click interface. +The front-end talks only with the gPhoto2 core in order to retrieve +pictures and perform other functions with the camera. + +2.4 Role of the gPhoto2 Core + +The gPhoto2 ``core'' is the heart of gPhoto2. It provides services +to both the camera libraries and the front-ends. Most of the services +deal with error-checking and enumeration of devices (cameras, I/O +devices, etc...). The core performs validity checking on data passed +to/from the front-end or the camera library. + +You could consider the core a translator/interpreter/spell-checker/army-general +in the ``big picture'' of gPhoto2. It does the grunt-work and performs +the coordination of the other parts. + +3 Implementing the Library + +gPhoto2 camera libraries use the gPhoto2 Camera API (CAPI) for implementation. +Here is a listing of the CAPI functions: + +camera_id + +camera_abilities + +camera_init + +camera_exit + +camera_folder_list + +camera_file_list + +camera_file_get + +camera_file_get_preview + +camera_file_put + +camera_file_delete + +camera_config_get + +camera_config_set + +camera_capture + +camera_summary + +camera_manual + +camera_about + + +Section 3.1 details the purpose of each of these functions, while Section +3.2 discusses how to use the I/O library. + +3.1 Camera API + +The CAPI provides the full set of functions for doing various tasks +with the camera. All CAPI functions return either GP_OK for succesful +execution , or GP_ERROR for a failure of execution + +What follows is a listing of the functions, including prototypes and +data exchange: + +3.1.1 camera_id + +Purpose: Retrieve the unique id for the camera library. + +Prototype: int camera_id (CameraText *id); + +Arguments: + +CameraText *id : unique string to represent the camera library + + +In order to guarantee that only once instance of the camera library +is loaded for each instance of the core, the camera library must copy +a unique string into the ``id''. Please consult the gPhoto developers +to determine which string you should use. + + +Example: + +int camera_id(CameraText *id) { + +strcpy(id->text, ``my-unique-string''); + +return (GP_OK); + +} + +3.1.2 camera_abilities + +Purpose: Retrieve the list of supported cameras and the abilities for +each camera + +Prototype: int camera_abilities (CameraAbilitiesList *list); + +Arguments: d + +CameraAbilities *abilities : the list of abilities for the supported +cameras + +int *count : the number of + +3.1.3 camera_init + +Purpose: Initialize the camera + +Prototype: int camera_init (Camera *camera, CameraInit *init); + +Arguments: d + +3.1.4 camera_exit + +Purpose: Close the camera + +Prototype: int camera_exit (Camera *camera); + +Arguments: d + +3.1.5 camera_file_list + +Purpose: List the files in a particular folder on the camera + +Prototype: int camera_file_list(Camera *camera, CameraList *list, char +*folder); + +Arguments: d + +3.1.6 camera_folder_list + +Purpose: List the subfolders in a particular folder on the camera + +Prototype: int camera_folder_list(Camera *camera, CameraList *list, +char *folder); + +Arguments: d + +3.1.7 camera_file_get + +Purpose: Retrieve a file from the camera + +Prototype: int camera_file_get (Camera *camera, CameraFile *file, char +*folder, char *filename); + +Arguments: d + +3.1.8 camera_file_get_preview + +Purpose: Retrieve a file's preview from the camera + +Prototype: int camera_file_get_preview (Camera *camera, CameraFile +*file, char *folder, char *filename); + +Arguments: d + +3.1.9 camera_file_put + +Purpose: Place (upload) a file to the camera + +Prototype: int camera_file_put (Camera *camera, CameraFile *file, char +*folder); + +Arguments: d + +3.1.10 camera_file_delete + +Purpose: Delete a file from the camera + +Prototype: int camera_file_delete (Camera *camera, char *folder, char +*filename); + +Arguments: d + +3.1.11 camera_config_get + +Purpose: Retrieve the configuration window. + +Prototype: int camera_config_get (Camera *camera, CameraWidget *window); + +Arguments: d + +3.1.12 camera_config_set + +Purpose: Set camera configuration + +Prototype: int camera_config_set (Camera *camera, CameraSetting *setting, +int count); + +Arguments: d + +3.1.13 camera_capture + +Purpose: Retrieve live data from the camera + +Prototype: int camera_capture (Camera *camera, CameraFile *file, CameraCaptureInfo +*info); + +Arguments: d + +3.1.14 camera_summary + +Purpose: Retrieve the camera summary information + +Prototype: int camera_summary (Camera *camera, CameraText *summary); + +Arguments: d + +3.1.15 camera_manual + +Purpose: Retrieve the camera user's guide (manual) + +Prototype: int camera_manual (Camera *camera, CameraText *manual); + +Arguments: d + +3.1.16 camera_about + +Purpose: Retrieve information about the camera library + +Prototype: int camera_about (Camera *camera, CameraText *about); + +Arguments: d + +3.2 The gPhoto2 I/O Library diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/docbook-xml.css b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/docbook-xml.css new file mode 100644 index 00000000..ed888527 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/docbook-xml.css @@ -0,0 +1,754 @@ +/* + * Some CSS styles for DocBook V4. + * (Not exhaustive. Has enough styles to render the LDP Author Guide.) + * + * If you improve it, please send me (hussein@xmlmind.com) a copy. + */ + +abstract, +ackno, +address, +affiliation, +alt, +answer, +appendix, +areaspec, +arg, +article, +attribution, +audioobject, +author, +authorblurb, +authorgroup, +beginpage, +bibliodiv, +biblioentry, +bibliography, +bibliomixed, +bibliomset, +biblioset, +blockquote, +book, +bookbiblio, +bridgehead, +callout, +calloutlist, +caption, +caution, +chapter, +city, +cmdsynopsis, +collab, +colophon, +comment, +confdates, +confgroup, +confnum, +confsponsor, +conftitle, +contractnum, +contractsponsor, +contrib, +copyright, +corpauthor, +corpname, +country, +dedication, +edition, +editor, +epigraph, +equation, +example, +figure, +firstname, +footnote, +formalpara, +funcprototype, +funcsynopsis, +funcsynopsisinfo, +glossary, +glossdef, +glossentry, +glosslist, +glosssee, +glossseealso, +graphic, +graphicco, +group, +highlights, +holder, +honorific, +imageobject, +imageobjectco, +important, +index, +indexdiv, +indexentry, +informalequation, +informalexample, +informalfigure, +issuenum, +itemizedlist, +itermset, +jobtitle, +keywordset, +legalnotice, +lineage, +listitem, +literallayout, +lot, +lotentry, +mediaobject, +mediaobjectco, +member, +msg, +msgaud, +msgentry, +msgexplan, +msginfo, +msglevel, +msgmain, +msgorig, +msgrel, +msgset, +msgsub, +msgtext, +note, +orderedlist, +otheraddr, +othercredit, +othername, +para, +part, +partintro, +phone, +pob, +postcode, +preface, +primaryie, +printhistory, +procedure, +programlisting, +programlistingco, +publisher, +publishername, +qandadiv, +qandaentry, +qandaset, +question, +refclass, +refdescriptor, +refentry, +refentrytitle, +reference, +refmiscinfo, +refname, +refnamediv, +refsect1, +refsect2, +refsect3, +refsynopsisdiv, +releaseinfo, +revhistory, +revision, +revremark, +sbr, +screen, +screenco, +screenshot, +secondaryie, +sect1, +sect2, +sect3, +sect4, +sect5, +section, +seealsoie, +seeie, +seglistitem, +segmentedlist, +set, +setindex, +shortaffil, +sidebar, +simpara, +simplelist, +simplesect, +state, +step, +street, +subject, +subjectset, +subjectterm, +substeps, +subtitle, +surname, +synopfragment, +synopfragmentref, +synopsis, +term, +tertiaryie, +textobject, +tip, +title, +toc, +tocback, +tocchap, +tocentry, +tocfront, +toclevel1, +toclevel2, +toclevel3, +toclevel4, +toclevel5, +tocpart, +variablelist, +varlistentry, +videoobject, +warning { + display: block; +} + +/* It is not really useful to style meta-information. */ +articleinfo, +bookinfo, +docinfo, +objectinfo, +refmeta, +refsect1info, +refsect2info, +refsect3info, +refsynopsisdivinfo, +screeninfo, +sect1info, +sect2info, +sect3info, +sect4info, +sect5info, +sectioninfo, +setinfo, +titleabbrev, +indexterm { + display: tree; +} + +/* + * Title styles + */ + +chapter > title, +glossary > title, +appendix > title, +reference > title { + font-size: 2em; + font-weight: bold; + color: maroon; + margin-top: .67ex; + margin-bottom: .67ex; +} + +chapter > title:before { + content: "Chapter " counter(n-, upper-roman) "\A"; +} + +article > title { + font-size: 2em; + margin-top: .67ex; + margin-bottom: .67ex; + text-align: center; +} + +subtitle { + font-weight: bold; + color: maroon; + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +article > subtitle { + text-align: center; +} + +refsynopsisdiv:before { + font-size: 1.17em; + font-weight: bold; + color: maroon; + content: "Synopsis"; +} + +refsynopsisdiv { + margin-top: .83ex; + margin-bottom: .83ex; +} + +sect1 > title, sect2 > title, sect3 > title, sect4 > title, sect5 > title, +section > title, refsect1 > title { + font-weight: bold; + color: maroon; +} +sect1 > title, +refnamediv > refname, +section > title { + font-size: 1.5em; + margin-top: .83ex; + margin-bottom: .83ex; +} +sect2 > title, +refsect1 > title, +section section > title { + font-size: 1.17em; + margin-top: 1ex; + margin-bottom: 1ex; +} +sect3 > title, sect4 > title, sect5 > title, +section section section > title, +section section * section > title { + font-size: 1em; + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +sect1 > title:before, +section > title:before { + content: counter(n-) " "; +} +sect2 > title:before, +section section > title:before { + content: counter(nn-) " "; +} +sect3 > title:before, +section section section > title:before { + content: counter(nnn-) " "; +} +sect4 > title:before, +section section section section > title:before { + content: counter(nnnn-) " "; +} +/* No counters for sect5 and up */ +section section section * section > title:before { + content: ""; +} + +/* + * Table style + */ + +table, +informaltable { + display: block; + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +table > title { + font-style: italic; + text-align: center; + margin-left: 2ex; + margin-right: 2ex; + margin-bottom: 2; +} +tgroup { + display: table; + border: 1 outset gray; + text-align: eval(attr(align)); +} +colspec, spanspec { + display: table-column; +} +thead, tbody, tfoot { + display: table-row-group; + vertical-align: eval(attr(valign)); +} +row { + display: table-row; + vertical-align: eval(attr(valign)); +} +entry { + display: table-cell; + text-align: eval(attr(align)); + vertical-align: eval(attr(valign)); + border: 1 inset gray; + padding: 2; +} +entry > *:first-child { + margin-top: 0; + margin-bottom: 0; +} +entrytbl { + display: table; + border: 1 inset gray; + padding: 2; +} + +/* + * Block styles + */ + +para, +simpara, +formalpara { + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} + +formalpara > * { + margin-top: 0; + margin-bottom: 0; +} +formalpara > title { + font-weight: bold; +} + +listitem > *:first-child { + margin-top: 0; + margin-bottom: 0; +} + +itemizedlist { + margin-left: 2ex; + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +itemizedlist > listitem { + margin-left: 2.5ex; +} +itemizedlist > listitem:before { + display: marker; + content: disc; +} +itemizedlist > listitem itemizedlist > listitem:before { + display: marker; + content: square; +} +itemizedlist > listitem itemizedlist > listitem +itemizedlist > listitem:before { + display: marker; + content: icon(diamond); +} +itemizedlist > listitem itemizedlist > listitem itemizedlist > listitem +itemizedlist > listitem:before { + display: marker; + content: circle; +} + +orderedlist { + margin-left: 2ex; + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +orderedlist > listitem { + margin-left: 6ex; +} +orderedlist > listitem:before { + display: marker; + content: counter(n, decimal); + font-weight: bold; +} +orderedlist[numeration=loweralpha] > listitem:before { + display: marker; + content: counter(n, lower-alpha); +} +orderedlist[numeration=upperalpha] > listitem:before { + display: marker; + content: counter(n, upper-alpha); +} +orderedlist[numeration=lowerroman] > listitem:before { + display: marker; + content: counter(n, lower-roman); +} +orderedlist[numeration=upperroman] > listitem:before { + display: marker; + content: counter(n, upper-roman); +} + +variablelist { + margin-left: 2ex; + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +varlistentry > term { + font-weight: bold; +} +varlistentry > listitem { + margin-left: 4ex; +} + +glossentry { + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +glossentry > glossterm { + display: block; + font-style: italic; +} +glossdef { + margin-left: 4ex; +} +glossdef > *:first-child { + margin-top: 0; + margin-bottom: 0; +} + +qandaentry { + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +question { + font-style: italic; +} +question, +answer { + margin-left: 4ex; +} +question:before { + content: "Q:"; + display: marker; + color: olive; + font-weight: bold; + font-style: normal; +} +answer:before { + content: "A:"; + display: marker; + color: olive; + font-weight: bold; +} +question > *:first-child, +answer > *:first-child { + margin-top: 0; + margin-bottom: 0; +} + +simplelist { + margin-left: 4ex; +} +member { + margin-left: 2.5ex; +} + +note { + margin-left: 10ex; +} +note:before { + content: "note "; + display: marker; + color: olive; +} + +tip { + margin-left: 10ex; +} +tip:before { + content: "tip "; + display: marker; + color: olive; +} + +footnote { + font-size: .83em; + margin-left: 15ex; + margin-right: 5ex; +} +footnote:before { + content: "footnote "; + display: marker; + color: olive; +} + +programlisting, +screen { + white-space: pre; + background-color: #E0E0E0; + border: thin solid gray; + font-family: monospace; + font-size: .83em; + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} + +programlistingco { + border: 1 solid gray; + padding: 1ex; + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +programlistingco programlisting { + border-style: none; +} +areaspec:before { + content: "areas "; + color: olive; +} +area, +co { + content: icon(left-half-disc) counter(n) icon(right-half-disc); + color: olive; +} +callout { + margin-left: 6ex; +} +callout > *:first-child { + margin-top: 0; + margin-bottom: 0; +} +calloutlist > callout:before { + display: marker; + content: icon(left-half-disc) counter(n) icon(right-half-disc); + color: olive; +} + +figure, +mediaobject { + text-align: center; + margin-left: auto; + margin-right: auto; + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +figure > title, +caption { + font-style: italic; +} +caption > *:first-child { + margin-top: 0; + margin-bottom: 0; +} +/* + * Showing a 400x200 thumbnail is sufficient. + * If you don't like that, replace the content property by a more traditional: + * content: image(attr(fileref)); + */ +graphic, +imagedata { + content: image(attr(fileref), -400, -200); +} +graphic { + margin-left: auto; + margin-right: auto; +} + +blockquote { + margin-left: 10ex; + margin-right: 10ex; + margin-top: 1.33ex; + margin-bottom: 1.33ex; +} +blockquote > title, +attribution { + font-style: italic; +} +attribution { + text-align: right; +} +attribution:before { + content: "-- " +} + +/* + * Inline styles + */ + +emphasis { + font-style: italic; +} +emphasis[role=bold] { + font-style: normal; + font-weight: bold; +} + +literal, +filename, +command, +synopsis, +envar, +parameter { + font-family: monospace; + font-size: .83em; +} +parameter, +replaceable { + font-style: italic; +} + +anchor:after { + content: icon(left-target); + vertical-align: text-top; + color: olive; +} +link, +ulink, +email { + color: navy; + text-decoration: underline; +} +xref { + content: icon(right-link); + vertical-align: text-top; + color: navy; +} + +foreignphrase { + font-style: italic; +} + +sgmltag { + color: red; +} +sgmltag[class="starttag"]:before { + content: "<"; +} +sgmltag[class="endtag"]:before { + content: ""; +} + +quote:before { + content: open-quote; +} +quote:after { + content: close-quote; +} + +@media print { + articleinfo, + bookinfo, + docinfo, + objectinfo, + refmeta, + refsect1info, + refsect2info, + refsect3info, + refsynopsisdivinfo, + screeninfo, + sect1info, + sect2info, + sect3info, + sect4info, + sect5info, + sectioninfo, + setinfo, + titleabbrev, + indexterm { + display: none; + } + + colspec, spanspec { + display: none; + } + + * { + background-color: transparent; + line-height: 1.2; + } + + programlisting, + screen { + background-color: #FFFFE0; + border: 1 solid #E0E0A0; + } + + graphic, + imagedata { + content: image(attr(fileref), -500, -700, smooth); + } +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/frontend_devel.lyx b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/frontend_devel.lyx new file mode 100644 index 00000000..dbbb6068 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/frontend_devel.lyx @@ -0,0 +1,64 @@ +#LyX 1.1 created this file. For more info see http://www.lyx.org/ +\lyxformat 2.15 +\textclass linuxdoc +\language default +\inputencoding latin1 +\fontscheme default +\graphics default +\paperfontsize default +\spacing single +\papersize Default +\paperpackage a4 +\use_geometry 0 +\use_amsmath 0 +\paperorientation portrait +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\defskip medskip +\quotes_language english +\quotes_times 2 +\papercolumns 1 +\papersides 1 +\paperpagestyle default + +\layout Title +\added_space_top vfill \added_space_bottom vfill +gPhoto Front-end Developer's Guide +\layout Author + +Scott Fritzinger +\newline +2000-07-26 +\newline +Revision 1 +\layout Standard + + +\begin_inset LatexCommand \tableofcontents{} + +\end_inset + + +\layout Section + +Understanding the gPhoto2 Structure +\layout Subsection + +Role of the gPhoto2 Core +\layout Subsection + +Role of the Camera Library +\layout Subsection + +Role of the Front-end +\layout Section + +Implementing the Front-end +\layout Subsection + +gPhoto2 Core API +\layout Subsection + +Functions Required By the Front-end +\the_end diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/frontend_devel.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/frontend_devel.sgml new file mode 100644 index 00000000..554f4cb1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/frontend_devel.sgml @@ -0,0 +1,30 @@ + + + +
+ +gPhoto Front-end Developer's Guide + + +Scott Fritzinger +2000-07-26 +Revision 1 + + + +Understanding the gPhoto2 Structure + +Role of the gPhoto2 Core + +Role of the Camera Library + +Role of the Front-end + +Implementing the Front-end + +gPhoto2 Core API + +Functions Required By the Front-end + + +
diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/frontend_devel.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/frontend_devel.txt new file mode 100644 index 00000000..bf336973 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/frontend_devel.txt @@ -0,0 +1,23 @@ + + +gPhoto Front-end Developer's Guide + +Scott Fritzinger +2000-07-26 +Revision 1 + +\tableofcontents{} + +1 Understanding the gPhoto2 Structure + +1.1 Role of the gPhoto2 Core + +1.2 Role of the Camera Library + +1.3 Role of the Front-end + +2 Implementing the Front-end + +2.1 gPhoto2 Core API + +2.2 Functions Required By the Front-end diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/libgphoto2.3 b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/libgphoto2.3 new file mode 100644 index 00000000..ffa08b9b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/libgphoto2.3 @@ -0,0 +1,79 @@ +.\" ** You probably do not want to edit this file directly ** +.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). +.\" Instead of manually editing it, you probably should edit the DocBook XML +.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. +.TH "LIBGPHOTO2" "3" "08/16/2006" "" "The gPhoto2 Reference (the man" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +libgphoto2 \- cross\-platform digital camera library +.SH "SYNOPSIS" +.sp +.nf +#include +.fi +.SH "DESCRIPTION" +.PP +The +gphoto2 +library provides applications with access to a variety of cameras. +.PP +This man page will be extended with autogenerated documentation of the interface types and methods used for communication between the +gphoto2 +library and a frontend. +.SH "FILES" +.TP +\fI~/.gphoto/settings\fR +Here +gphoto2 +applications may store their configuration used to access +gphoto2. +.PP +To track down errors, you can add the +\fB\-\-debug\fR +parameter to the +\fBgphoto2\fR +command line and, if dealing with USB problems, setting the environment variable +\fBUSB_DEBUG\fR\fI=1\fR. +.SH "ENVIRONMENT VARIABLES" +.TP +\fBCAMLIBS\fR +If set, defines the directory where the +libgphoto2 +library looks for its camera drivers (camlibs). You only need to set this on OS/2 systems and broken/test installations. +.TP +\fBIOLIBS\fR +If set, defines the directory where the +libgphoto2_port +library looks for its I/O drivers (iolibs). You only need to set this on OS/2 systems and broken/test installations. +.TP +\fBLD_DEBUG\fR +Set this to +\fIall\fR +to receive lots of debug information regarding library loading on +\fBld\fR +based systems. +.TP +\fBUSB_DEBUG\fR +If set, defines the numeric debug level with which the +libusb +library will print messages. In order to get some debug output, set it to +\fI1\fR. +.SH "SEE ALSO" +.PP +gphoto2(1), +libgphoto2_port(3), The gPhoto2 Manual, automatically generated +API +docs, +[1]\&\fIgphoto website\fR +. +.SH "AUTHOR" +The gPhoto2 Team. +.br +Hans Ulrich Niedermann . (man page) +.SH "REFERENCES" +.TP 3 +1.\ gphoto website +\%http://www.gphoto.org/ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/doc/libgphoto2_port.3 b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/libgphoto2_port.3 new file mode 100644 index 00000000..2e96a06a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/doc/libgphoto2_port.3 @@ -0,0 +1,77 @@ +.\" ** You probably do not want to edit this file directly ** +.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). +.\" Instead of manually editing it, you probably should edit the DocBook XML +.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. +.TH "LIBGPHOTO2_PORT" "3" "08/16/2006" "" "The gPhoto2 Reference (the man" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +libgphoto2_port \- cross\-platform port access library +.SH "SYNOPSIS" +.sp +.nf +#include +.fi +.SH "DESCRIPTION" +.PP +The +libgphoto2_port +library was written to provide +libgphoto2(3) +with a generic way of accessing ports. In this function, +libgphoto2_port +is the successor of the +libgpio +library. +.PP +Currently, +libgphoto2_port +supports serial (RS\-232) and +USB +connections, the latter requiring +libusb +to be installed. +.PP +The autogenerated +API +docs will be added here in the future. +.SH "ENVIRONMENT VARIABLES" +.TP +\fBIOLIBS\fR +If set, defines the directory where the +libgphoto2_port +library looks for its I/O drivers (iolibs). You only need to set this on OS/2 systems and broken/test installations. +.TP +\fBLD_DEBUG\fR +Set this to +\fIall\fR +to receive lots of debug information regarding library loading on +\fBld\fR +based systems. +.TP +\fBUSB_DEBUG\fR +If set, defines the numeric debug level with which the +libusb +library will print messages. In order to get some debug output, set it to +\fI1\fR. +.SH "SEE ALSO" +.PP +libgphoto2(3), The gPhoto2 Manual, +[1]\&\fIgphoto website\fR, automatically generated +API +docs, +[2]\&\fIlibusb website\fR +. +.SH "AUTHOR" +The gPhoto2 Team. +.br +Hans Ulrich Niedermann . (man page) +.SH "REFERENCES" +.TP 3 +1.\ gphoto website +\%http://www.gphoto.org/ +.TP 3 +2.\ libusb website +\%http://libusb.sourceforge.net/ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/Makefile.am new file mode 100644 index 00000000..86d7626f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/Makefile.am @@ -0,0 +1,123 @@ +EXTRA_DIST = README +EXTRA_PROGRAMS = +check_PROGRAMS = +check_SCRIPTS = +TESTS = +INSTALL_TESTS = +noinst_PROGRAMS = + + +# Now that we build all the camlibs in one directory, we can run our checks +# with CAMLIBS set to the camlib build directory. +TESTS_ENVIRONMENT = env \ + CAMLIBS="$(top_builddir)/camlibs" + +# After installation, this will be CAMLIBS = $(DESTDIR)$(camlibdir) +INSTALL_TESTS_ENVIRONMENT = env \ + CAMLIBS="$(DESTDIR)$(camlibdir)" \ + LD_LIBRARY_PATH="$(DESTDIR)$(libdir)$${LD_LIBRARY_PATH+:$${LD_LIBRARY_PATH}}" + +AM_CPPFLAGS += -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/libgphoto2_port -I$(top_srcdir)/libgphoto2 -I$(top_builddir)/libgphoto2 + +CLEANFILES = $(check_SCRIPTS) + + +noinst_PROGRAMS += \ + sample-autodetect sample-multi-detect \ + lunkwill-canon-capture \ + sample-owner \ + sample-photobooth \ + sample-preview \ + sample-tether \ + sample-afl \ + best-iso \ + sample-capture sample-trigger-capture sample-justfocus + +sample_afl_SOURCES = sample-afl.c samples.h context.c autodetect.c +sample_autodetect_SOURCES = sample-autodetect.c samples.h context.c config.c +sample_owner_SOURCES = sample-owner.c samples.h context.c config.c +sample_multi_detect_SOURCES = sample-multi-detect.c samples.h autodetect.c context.c config.c +lunkwill_canon_capture_SOURCES = lunkwill-canon-capture.c context.c samples.h config.c +sample_capture_SOURCES = sample-capture.c context.c samples.h config.c focus.c +sample_trigger_capture_SOURCES = sample-trigger-capture.c context.c samples.h config.c +sample_photobooth_SOURCES = sample-photobooth.c samples.h context.c config.c +sample_preview_SOURCES = preview.c samples.h context.c config.c focus.c +sample_tether_SOURCES = samples.h sample-tether.c context.c config.c +best_iso_SOURCES = best-iso.c +sample_justfocus_SOURCES = samples.h sample-justfocus.c context.c focus.c + +LDADD = $(top_builddir)/libgphoto2/libgphoto2.la \ + $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \ + $(LIBLTDL) \ + $(LIBEXIF_LIBS) \ + $(INTLLIBS) + +#noinst_PROGRAMS += test-filesys +#test_filesys_SOURCE = test-filesys.c +#test_filesys_LDADD = \ +# $(top_builddir)/libgphoto2/libgphoto2.la \ +# $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \ +# $(LIBLTDL) \ +# $(LIBEXIF_LIBS) \ +# $(INTLLIBS) + + + +#TESTS += test-camera-list +#INSTALL_TESTS += test-camera-list +#check_PROGRAMS += test-camera-list +#test_camera_list_SOURCE = test-camera-list.c +#test_camera_list_LDADD = \ +# $(top_builddir)/libgphoto2/libgphoto2.la \ +# $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \ +# $(LIBLTDL) \ +# $(LIBEXIF_LIBS) \ +# $(INTLLIBS) + + +#if HAVE_GCC +#PEDANTIC_CFLAGS = -std=c99 -pedantic-errors -W -Wall -Wextra -Werror +#PEDANTIC_CXXFLAGS = -std=c++98 -pedantic-errors -W -Wall -Wextra -Werror +#else +#PEDANTIC_CFLAGS = +#PEDANTIC_CXXFLAGS = +#endif +# +#TESTS += test-pedantic-c +#check_PROGRAMS += test-pedantic-c +#test_pedantic_c_SOURCES = test-pedantic-compilation.c +#test_pedantic_c_CPPFLAGS = \ +# $(AM_CPPFLAGS) $(CPPFLAGS) \ +# -U_GPHOTO2_INTERNAL_CODE +#test_pedantic_c_CFLAGS = \ +# $(AM_CFLAGS) $(PEDANTIC_CFLAGS) $(CFLAGS) \ +# -U_GPHOTO2_INTERNAL_CODE +#test_pedantic_c_LDADD = \ +# $(top_builddir)/libgphoto2/libgphoto2.la \ +# $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \ +# $(LIBLTDL) \ +# $(LIBEXIF_LIBS) \ +# $(INTLLIBS) + + +#if HAVE_CXX +#check_PROGRAMS += test-pedantic-cxx +#TESTS += test-pedantic-cxx +#else +#EXTRA_PROGRAMS += test-pedantic-cxx +#endif +#test_pedantic_cxx_SOURCES = test-pedantic-compilation.cxx +#test_pedantic_cxx_CPPFLAGS = \ +# $(AM_CPPFLAGS) $(CPPFLAGS) \ +# -U_GPHOTO2_INTERNAL_CODE +#test_pedantic_cxx_CXXFLAGS = \ +# $(AM_CXXFLAGS) $(PEDANTIC_CXXFLAGS) $(CXXFLAGS) \ +# -U_GPHOTO2_INTERNAL_CODE +#test_pedantic_cxx_LDADD = \ +# $(top_builddir)/libgphoto2/libgphoto2.la \ +# $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \ +# $(LIBLTDL) \ +# $(LIBEXIF_LIBS) \ +# $(INTLLIBS) + +include $(top_srcdir)/installcheck.mk diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/autodetect.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/autodetect.c new file mode 100644 index 00000000..fbf6d6fe --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/autodetect.c @@ -0,0 +1,83 @@ +#include +#include + +#include + +#include "samples.h" + +static GPPortInfoList *portinfolist = NULL; +static CameraAbilitiesList *abilities = NULL; + +/* + * This detects all currently attached cameras and returns + * them in a list. It avoids the generic usb: entry. + * + * This function does not open nor initialize the cameras yet. + */ +int +sample_autodetect (CameraList *list, GPContext *context) { + gp_list_reset (list); + return gp_camera_autodetect (list, context); +} + +/* + * This function opens a camera depending on the specified model and port. + */ +int +sample_open_camera (Camera ** camera, const char *model, const char *port, GPContext *context) { + int ret, m, p; + CameraAbilities a; + GPPortInfo pi; + + ret = gp_camera_new (camera); + if (ret < GP_OK) return ret; + + if (!abilities) { + /* Load all the camera drivers we have... */ + ret = gp_abilities_list_new (&abilities); + if (ret < GP_OK) return ret; + ret = gp_abilities_list_load (abilities, context); + if (ret < GP_OK) return ret; + } + + /* First lookup the model / driver */ + m = gp_abilities_list_lookup_model (abilities, model); + if (m < GP_OK) return ret; + ret = gp_abilities_list_get_abilities (abilities, m, &a); + if (ret < GP_OK) return ret; + ret = gp_camera_set_abilities (*camera, a); + if (ret < GP_OK) return ret; + + if (!portinfolist) { + /* Load all the port drivers we have... */ + ret = gp_port_info_list_new (&portinfolist); + if (ret < GP_OK) return ret; + ret = gp_port_info_list_load (portinfolist); + if (ret < 0) return ret; + ret = gp_port_info_list_count (portinfolist); + if (ret < 0) return ret; + } + + /* Then associate the camera with the specified port */ + p = gp_port_info_list_lookup_path (portinfolist, port); + switch (p) { + case GP_ERROR_UNKNOWN_PORT: + fprintf (stderr, "The port you specified " + "('%s') can not be found. Please " + "specify one of the ports found by " + "'gphoto2 --list-ports' and make " + "sure the spelling is correct " + "(i.e. with prefix 'serial:' or 'usb:').", + port); + break; + default: + break; + } + if (p < GP_OK) return p; + + ret = gp_port_info_list_get_info (portinfolist, p, &pi); + if (ret < GP_OK) return ret; + ret = gp_camera_set_port_info (*camera, pi); + if (ret < GP_OK) return ret; + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/best-iso.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/best-iso.c new file mode 100644 index 00000000..84f96367 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/best-iso.c @@ -0,0 +1,476 @@ +/* + * This program tries various ISOs for best ISO with a shutterspeed limit + * + * compile with: gcc -Wall -o best-iso best-iso.c -lgphoto2 -lgphoto2_port + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#if !defined (O_BINARY) + /*To have portable binary open() on *nix and on Windows */ + #define O_BINARY 0 +#endif + +#define DEBUG + +static int aperture; +static float shutterspeed; + +static void errordumper(GPLogLevel level, const char *domain, const char *str, + void *data) { + fprintf(stdout, "%s\n", str); +} + +static void +ctx_error_func (GPContext *context, const char *str, void *data) +{ + fprintf (stderr, "\n*** Contexterror *** \n%s\n",str); + fflush (stderr); +} + +static void +ctx_status_func (GPContext *context, const char *str, void *data) +{ + fprintf (stderr, "%s\n", str); + fflush (stderr); +} + +static +GPContext* sample_create_context() { + GPContext *context; + + /* This is the mandatory part */ + context = gp_context_new(); + + /* All the parts below are optional! */ + gp_context_set_error_func (context, ctx_error_func, NULL); + gp_context_set_status_func (context, ctx_status_func, NULL); + + /* also: + gp_context_set_cancel_func (p->context, ctx_cancel_func, p); + gp_context_set_message_func (p->context, ctx_message_func, p); + if (isatty (STDOUT_FILENO)) + gp_context_set_progress_funcs (p->context, + ctx_progress_start_func, ctx_progress_update_func, + ctx_progress_stop_func, p); + */ + return context; +} +/* + * This function looks up a label or key entry of + * a configuration widget. + * The functions descend recursively, so you can just + * specify the last component. + */ + +static int +_lookup_widget(CameraWidget*widget, const char *key, CameraWidget **child) { + int ret; + ret = gp_widget_get_child_by_name (widget, key, child); + if (ret < GP_OK) + ret = gp_widget_get_child_by_label (widget, key, child); + return ret; +} + +/* Gets a string configuration value. + * This can be: + * - A Text widget + * - The current selection of a Radio Button choice + * - The current selection of a Menu choice + * + * Sample (for Canons eg): + * get_config_value_string (camera, "owner", &ownerstr, context); + */ +static int +get_config_value_string (Camera *camera, const char *key, char **str, GPContext *context) { + CameraWidget *widget = NULL, *child = NULL; + CameraWidgetType type; + int ret; + char *val; + + ret = gp_camera_get_config (camera, &widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_get_config failed: %d\n", ret); + return ret; + } + ret = _lookup_widget (widget, key, &child); + if (ret < GP_OK) { + fprintf (stderr, "lookup widget failed: %d\n", ret); + goto out; + } + + /* This type check is optional, if you know what type the label + * has already. If you are not sure, better check. */ + ret = gp_widget_get_type (child, &type); + if (ret < GP_OK) { + fprintf (stderr, "widget get type failed: %d\n", ret); + goto out; + } + switch (type) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + case GP_WIDGET_TEXT: + break; + default: + fprintf (stderr, "widget has bad type %d\n", type); + ret = GP_ERROR_BAD_PARAMETERS; + goto out; + } + + /* This is the actual query call. Note that we just + * a pointer reference to the string, not a copy... */ + ret = gp_widget_get_value (child, &val); + if (ret < GP_OK) { + fprintf (stderr, "could not query widget value: %d\n", ret); + goto out; + } + /* Create a new copy for our caller. */ + *str = strdup (val); +out: + gp_widget_free (widget); + return ret; +} + + +/* Sets a string configuration value. + * This can set for: + * - A Text widget + * - The current selection of a Radio Button choice + * - The current selection of a Menu choice + * + * Sample (for Canons eg): + * get_config_value_string (camera, "owner", &ownerstr, context); + */ +static int +set_config_value_string (Camera *camera, const char *key, const char *val, GPContext *context) { + CameraWidget *widget = NULL, *child = NULL; + CameraWidgetType type; + int ret; + + ret = gp_camera_get_config (camera, &widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_get_config failed: %d\n", ret); + return ret; + } + ret = _lookup_widget (widget, key, &child); + if (ret < GP_OK) { + fprintf (stderr, "lookup widget failed: %d\n", ret); + goto out; + } + + /* This type check is optional, if you know what type the label + * has already. If you are not sure, better check. */ + ret = gp_widget_get_type (child, &type); + if (ret < GP_OK) { + fprintf (stderr, "widget get type failed: %d\n", ret); + goto out; + } + switch (type) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + case GP_WIDGET_TEXT: + /* This is the actual set call. Note that we keep + * ownership of the string and have to free it if necessary. + */ + ret = gp_widget_set_value (child, val); + if (ret < GP_OK) { + fprintf (stderr, "could not set widget value: %d\n", ret); + goto out; + } + break; + case GP_WIDGET_TOGGLE: { + int ival; + + sscanf(val,"%d",&ival); + ret = gp_widget_set_value (child, &ival); + if (ret < GP_OK) { + fprintf (stderr, "could not set widget value: %d\n", ret); + goto out; + } + break; + } + default: + fprintf (stderr, "widget has bad type %d\n", type); + ret = GP_ERROR_BAD_PARAMETERS; + goto out; + } + + /* This stores it on the camera again */ + ret = gp_camera_set_config (camera, widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_set_config failed: %d\n", ret); + return ret; + } +out: + gp_widget_free (widget); + return ret; +} + + +static int +camera_tether(Camera *camera, GPContext *context) { + int fd, retval; + CameraFile *file; + CameraEventType evttype; + CameraFilePath *path; + void *evtdata; + + printf("Tethering...\n"); + + while (1) { + retval = gp_camera_wait_for_event (camera, 2000, &evttype, &evtdata, context); + if (retval != GP_OK) + return retval; + switch (evttype) { + case GP_EVENT_FILE_ADDED: + path = (CameraFilePath*)evtdata; + printf("File added on the camera: %s/%s\n", path->folder, path->name); + + fd = open(path->name, O_CREAT | O_WRONLY | O_BINARY, 0644); + retval = gp_file_new_from_fd(&file, fd); + printf(" Downloading %s...\n", path->name); + retval = gp_camera_file_get(camera, path->folder, path->name, + GP_FILE_TYPE_NORMAL, file, context); + + printf(" Deleting %s on camera...\n", path->name); + retval = gp_camera_file_delete(camera, path->folder, path->name, context); + gp_file_free(file); + free(path); + break; + case GP_EVENT_FOLDER_ADDED: + path = (CameraFilePath*)evtdata; + printf("Folder added on camera: %s / %s\n", path->folder, path->name); + free(path); + break; + case GP_EVENT_FILE_CHANGED: + path = (CameraFilePath*)evtdata; + printf("File changed on camera: %s / %s\n", path->folder, path->name); + free(path); + break; + case GP_EVENT_CAPTURE_COMPLETE: + printf("Capture Complete.\n"); + break; + case GP_EVENT_TIMEOUT: + printf("Timeout.\n"); + return GP_OK; + case GP_EVENT_UNKNOWN: + if (evtdata) { + char *val; + int ret; + + /* printf("Unknown event: %s.\n", (char*)evtdata); */ + + /* 3 eos properties hardcoded */ + if (strstr(evtdata,"d103")) { + ret = get_config_value_string(camera,"iso",&val,context); + if (ret == GP_OK) { + printf("ISO is %s\n", val); + free(val); + } + } + if (strstr(evtdata,"d102")) { + ret = get_config_value_string(camera,"shutterspeed",&val,context); + if (ret == GP_OK) { + if (strchr(val,'/')) { + int zaehler,nenner; + sscanf(val,"%d/%d",&zaehler,&nenner); + shutterspeed = 1.0*zaehler/nenner; + } else { + if (!sscanf(val,"%g",&shutterspeed)) + shutterspeed = 0.0; + } + printf("Shutterspeed is %s (%g)\n", val, shutterspeed); + free(val); + } + } + if (strstr(evtdata,"d101")) { + ret = get_config_value_string(camera,"aperture",&val,context); + if (ret == GP_OK) { + float ap; + + sscanf(val,"%g",&ap); + aperture = 10*ap; + printf("Aperture is %s (%d)\n", val, aperture); + free (val); + } + } + } else { + printf("Unknown event.\n"); + } + break; + default: + printf("Type %d?\n", evttype); + break; + } + } +} + +int +main(int argc, char **argv) { + Camera *camera; + int retval, iso, tries; + char buf[20]; + GPContext *context = sample_create_context(); + int fd; + CameraFile *file; + CameraFilePath camera_file_path; + + gp_log_add_func(GP_LOG_ERROR, errordumper, NULL); + gp_camera_new(&camera); + + retval = gp_camera_init(camera, context); + if (retval != GP_OK) { + printf(" camera failed to initialize: %d\n", retval); + exit (1); + } + + retval = camera_tether(camera, context); + if (retval != GP_OK) { + printf("Tether error: %d\n", retval); + exit (1); + } + + iso = 100; + + shutterspeed = 0.0; + aperture = 0; + +#if 1 + gp_file_new (&file); + retval = gp_camera_capture_preview (camera, file, context); + if (retval != GP_OK) { + printf("Preview capture error: %d\n", retval); + exit (1); + } +#endif + + while (1) { + sprintf(buf,"%d",iso); + printf("Setting ISO to %d\n",iso); + + retval = set_config_value_string(camera, "iso", buf, context); + if (retval != GP_OK) { + printf(" failed setting ISO to %d: %d\n", iso, retval); + + /* usually also happens if too dark */ + exit (1); + } + + printf("eosremoterelease half press\n"); + retval = set_config_value_string(camera,"eosremoterelease", "Press Half", context); + if (retval != GP_OK) { + printf(" failed pressing shutter to half: %d\n", retval); + exit (1); + } + + retval = camera_tether(camera, context); + if (retval != GP_OK) { + printf("Tether error: %d\n", retval); + exit (1); + } + + if (shutterspeed < 0.000000001) { + printf("Camera did not report shutterspeed?\n"); + } + + printf("eosremoterelease release\n"); + retval = set_config_value_string(camera,"eosremoterelease", "Release Half", context); + if (retval != GP_OK) { + printf(" failed releasing shutter button from half: %d\n", retval); + exit (1); + } + + if (shutterspeed < 30.0) { + + printf("ISO %d gets Aperture %g and Shutterspeed %g\n", iso, aperture/10.0, shutterspeed); + + break; + } + /* ISO always goes up in 2 multiplicator steps */ + iso = iso*2; + } + + /* we can take the picture now */ + +#if 0 + + printf("Capturing.\n"); + + retval = gp_camera_capture(camera, GP_CAPTURE_IMAGE, &camera_file_path, context); + if (retval != GP_OK) { + printf(" capture failed: %d\n", retval); + exit(1); + } + + printf("Pathname on the camera: %s/%s\n", camera_file_path.folder, camera_file_path.name); + + fd = open("capture.jpg", O_CREAT | O_WRONLY | O_BINARY, 0644); + + retval = gp_file_new_from_fd(&file, fd); + if (retval != GP_OK) printf(" gp_file_new failed: %d\n", retval); + + retval = gp_camera_file_get(camera, camera_file_path.folder, camera_file_path.name, + GP_FILE_TYPE_NORMAL, file, context); + if (retval != GP_OK) printf(" file_get failed: %d\n", retval); + + printf("Deleting downloaded image.\n"); + retval = gp_camera_file_delete(camera, camera_file_path.folder, camera_file_path.name, + context); + if (retval != GP_OK) printf(" Retval: %d\n", retval); + + gp_file_free(file); + +#endif +#if 1 + /* SAMPLE Capture code with eosremoterelease ... normal gp_camera_capture_image also works. */ + printf("eosremoterelease release\n"); + retval = set_config_value_string(camera,"eosremoterelease", "Immediate", context); + + if (retval != GP_OK) { + printf(" failed pressing shutter button full: %d\n", retval); + exit (1); + } + + retval = set_config_value_string(camera,"eosremoterelease", "Release Full", context); + + if (retval != GP_OK) { + printf(" failed releasing shutter button full: %d\n", retval); + exit (1); + } + + + retval = camera_tether(camera, context); + if (retval != GP_OK) { + printf("Tether error: %d\n", retval); + exit (1); + } +#endif + + tries = 30; /* seconds at most, discounting events. */ + while (tries--) { + retval = camera_tether(camera, context); + if (retval != GP_OK) { + printf("Tether error: %d\n", retval); + exit (1); + } + } + +#if 1 + retval = set_config_value_string(camera,"eosviewfinder", "0", context); + if (retval != GP_OK) { + printf("setting eosviewfinder off error: %d\n", retval); + exit (1); + } +#endif + + gp_camera_exit(camera, context); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/config.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/config.c new file mode 100644 index 00000000..e3ff63e3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/config.c @@ -0,0 +1,202 @@ +#include "samples.h" + +#include +#include +#include + +/* + * This function looks up a label or key entry of + * a configuration widget. + * The functions descend recursively, so you can just + * specify the last component. + */ + +static int +_lookup_widget(CameraWidget*widget, const char *key, CameraWidget **child) { + int ret; + ret = gp_widget_get_child_by_name (widget, key, child); + if (ret < GP_OK) + ret = gp_widget_get_child_by_label (widget, key, child); + return ret; +} + +/* Gets a string configuration value. + * This can be: + * - A Text widget + * - The current selection of a Radio Button choice + * - The current selection of a Menu choice + * + * Sample (for Canons eg): + * get_config_value_string (camera, "owner", &ownerstr, context); + */ +int +get_config_value_string (Camera *camera, const char *key, char **str, GPContext *context) { + CameraWidget *widget = NULL, *child = NULL; + CameraWidgetType type; + int ret; + char *val; + + ret = gp_camera_get_single_config (camera, key, &child, context); + if (ret == GP_OK) { + if (!child) fprintf(stderr,"child is NULL?\n"); + widget = child; + } else { + ret = gp_camera_get_config (camera, &widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_get_config failed: %d\n", ret); + return ret; + } + ret = _lookup_widget (widget, key, &child); + if (ret < GP_OK) { + fprintf (stderr, "lookup widget failed: %d\n", ret); + goto out; + } + } + + /* This type check is optional, if you know what type the label + * has already. If you are not sure, better check. */ + ret = gp_widget_get_type (child, &type); + if (ret < GP_OK) { + fprintf (stderr, "widget get type failed: %d\n", ret); + goto out; + } + switch (type) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + case GP_WIDGET_TEXT: + break; + default: + fprintf (stderr, "widget has bad type %d\n", type); + ret = GP_ERROR_BAD_PARAMETERS; + goto out; + } + + /* This is the actual query call. Note that we just + * a pointer reference to the string, not a copy... */ + ret = gp_widget_get_value (child, &val); + if (ret < GP_OK) { + fprintf (stderr, "could not query widget value: %d\n", ret); + goto out; + } + /* Create a new copy for our caller. */ + *str = strdup (val); +out: + gp_widget_free (widget); + return ret; +} + + +/* Sets a string configuration value. + * This can set for: + * - A Text widget + * - The current selection of a Radio Button choice + * - The current selection of a Menu choice + * + * Sample (for Canons eg): + * get_config_value_string (camera, "owner", &ownerstr, context); + */ +int +set_config_value_string (Camera *camera, const char *key, const char *val, GPContext *context) { + CameraWidget *widget = NULL, *child = NULL; + CameraWidgetType type; + int ret; + + ret = gp_camera_get_config (camera, &widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_get_config failed: %d\n", ret); + return ret; + } + ret = _lookup_widget (widget, key, &child); + if (ret < GP_OK) { + fprintf (stderr, "lookup widget failed: %d\n", ret); + goto out; + } + + /* This type check is optional, if you know what type the label + * has already. If you are not sure, better check. */ + ret = gp_widget_get_type (child, &type); + if (ret < GP_OK) { + fprintf (stderr, "widget get type failed: %d\n", ret); + goto out; + } + switch (type) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + case GP_WIDGET_TEXT: + break; + default: + fprintf (stderr, "widget has bad type %d\n", type); + ret = GP_ERROR_BAD_PARAMETERS; + goto out; + } + + /* This is the actual set call. Note that we keep + * ownership of the string and have to free it if necessary. + */ + ret = gp_widget_set_value (child, val); + if (ret < GP_OK) { + fprintf (stderr, "could not set widget value: %d\n", ret); + goto out; + } + ret = gp_camera_set_single_config (camera, key, child, context); + if (ret != GP_OK) { + /* This stores it on the camera again */ + ret = gp_camera_set_config (camera, widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_set_config failed: %d\n", ret); + return ret; + } + } +out: + gp_widget_free (widget); + return ret; +} + + +/* + * This enables/disables the specific canon capture mode. + * + * For non canons this is not required, and will just return + * with an error (but without negative effects). + */ +int +canon_enable_capture (Camera *camera, int onoff, GPContext *context) { + CameraWidget *widget = NULL, *child = NULL; + CameraWidgetType type; + int ret; + + ret = gp_camera_get_single_config (camera, "capture", &widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_get_config failed: %d\n", ret); + return ret; + } + + ret = gp_widget_get_type (child, &type); + if (ret < GP_OK) { + fprintf (stderr, "widget get type failed: %d\n", ret); + goto out; + } + switch (type) { + case GP_WIDGET_TOGGLE: + break; + default: + fprintf (stderr, "widget has bad type %d\n", type); + ret = GP_ERROR_BAD_PARAMETERS; + goto out; + } + /* Now set the toggle to the wanted value */ + ret = gp_widget_set_value (child, &onoff); + if (ret < GP_OK) { + fprintf (stderr, "toggling Canon capture to %d failed with %d\n", onoff, ret); + goto out; + } + /* OK */ + ret = gp_camera_set_single_config (camera, "capture", widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_set_config failed: %d\n", ret); + return ret; + } +out: + gp_widget_free (widget); + return ret; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/context.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/context.c new file mode 100644 index 00000000..3a7d419f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/context.c @@ -0,0 +1,37 @@ +#include +#include "samples.h" + +static void +ctx_error_func (GPContext *context, const char *str, void *data) +{ + fprintf (stderr, "\n*** Contexterror *** \n%s\n",str); + fflush (stderr); +} + +static void +ctx_status_func (GPContext *context, const char *str, void *data) +{ + fprintf (stderr, "%s\n", str); + fflush (stderr); +} + +GPContext* sample_create_context() { + GPContext *context; + + /* This is the mandatory part */ + context = gp_context_new(); + + /* All the parts below are optional! */ + gp_context_set_error_func (context, ctx_error_func, NULL); + gp_context_set_status_func (context, ctx_status_func, NULL); + + /* also: + gp_context_set_cancel_func (p->context, ctx_cancel_func, p); + gp_context_set_message_func (p->context, ctx_message_func, p); + if (isatty (STDOUT_FILENO)) + gp_context_set_progress_funcs (p->context, + ctx_progress_start_func, ctx_progress_update_func, + ctx_progress_stop_func, p); + */ + return context; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/focus.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/focus.c new file mode 100644 index 00000000..d7ae3f6f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/focus.c @@ -0,0 +1,229 @@ +#include "samples.h" + +#include +#include +#include + +/* + * This function looks up a label or key entry of + * a configuration widget. + * The functions descend recursively, so you can just + * specify the last component. + */ + +static int +_lookup_widget(CameraWidget*widget, const char *key, CameraWidget **child) { + int ret; + ret = gp_widget_get_child_by_name (widget, key, child); + if (ret < GP_OK) + ret = gp_widget_get_child_by_label (widget, key, child); + return ret; +} + +/* calls the Nikon DSLR or Canon DSLR autofocus method. */ +int +camera_eosviewfinder(Camera *camera, GPContext *context, int onoff) { + CameraWidget *widget = NULL, *child = NULL; + CameraWidgetType type; + int ret,val; + + ret = gp_camera_get_config (camera, &widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_get_config failed: %d\n", ret); + return ret; + } + ret = _lookup_widget (widget, "eosviewfinder", &child); + if (ret < GP_OK) { + fprintf (stderr, "lookup 'eosviewfinder' failed: %d\n", ret); + goto out; + } + + /* check that this is a toggle */ + ret = gp_widget_get_type (child, &type); + if (ret < GP_OK) { + fprintf (stderr, "widget get type failed: %d\n", ret); + goto out; + } + switch (type) { + case GP_WIDGET_TOGGLE: + break; + default: + fprintf (stderr, "widget has bad type %d\n", type); + ret = GP_ERROR_BAD_PARAMETERS; + goto out; + } + + ret = gp_widget_get_value (child, &val); + if (ret < GP_OK) { + fprintf (stderr, "could not get widget value: %d\n", ret); + goto out; + } + val = onoff; + ret = gp_widget_set_value (child, &val); + if (ret < GP_OK) { + fprintf (stderr, "could not set widget value to 1: %d\n", ret); + goto out; + } + + ret = gp_camera_set_config (camera, widget, context); + if (ret < GP_OK) { + fprintf (stderr, "could not set config tree to eosviewfinder: %d\n", ret); + goto out; + } +out: + gp_widget_free (widget); + return ret; +} + +int +camera_auto_focus(Camera *camera, GPContext *context, int onoff) { + CameraWidget *widget = NULL, *child = NULL; + CameraWidgetType type; + int ret,val; + + ret = gp_camera_get_config (camera, &widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_get_config failed: %d\n", ret); + return ret; + } + ret = _lookup_widget (widget, "autofocusdrive", &child); + if (ret < GP_OK) { + fprintf (stderr, "lookup 'autofocusdrive' failed: %d\n", ret); + goto out; + } + + /* check that this is a toggle */ + ret = gp_widget_get_type (child, &type); + if (ret < GP_OK) { + fprintf (stderr, "widget get type failed: %d\n", ret); + goto out; + } + switch (type) { + case GP_WIDGET_TOGGLE: + break; + default: + fprintf (stderr, "widget has bad type %d\n", type); + ret = GP_ERROR_BAD_PARAMETERS; + goto out; + } + + ret = gp_widget_get_value (child, &val); + if (ret < GP_OK) { + fprintf (stderr, "could not get widget value: %d\n", ret); + goto out; + } + + val = onoff; + + ret = gp_widget_set_value (child, &val); + if (ret < GP_OK) { + fprintf (stderr, "could not set widget value to 1: %d\n", ret); + goto out; + } + + ret = gp_camera_set_config (camera, widget, context); + if (ret < GP_OK) { + fprintf (stderr, "could not set config tree to autofocus: %d\n", ret); + goto out; + } +out: + gp_widget_free (widget); + return ret; +} + + +/* Manual focusing a camera... + * xx is -3 / -2 / -1 / 0 / 1 / 2 / 3 + */ +int +camera_manual_focus (Camera *camera, int xx, GPContext *context) { + CameraWidget *widget = NULL, *child = NULL; + CameraWidgetType type; + int ret; + float rval; + char *mval; + + ret = gp_camera_get_config (camera, &widget, context); + if (ret < GP_OK) { + fprintf (stderr, "camera_get_config failed: %d\n", ret); + return ret; + } + ret = _lookup_widget (widget, "manualfocusdrive", &child); + if (ret < GP_OK) { + fprintf (stderr, "lookup 'manualfocusdrive' failed: %d\n", ret); + goto out; + } + + /* check that this is a toggle */ + ret = gp_widget_get_type (child, &type); + if (ret < GP_OK) { + fprintf (stderr, "widget get type failed: %d\n", ret); + goto out; + } + switch (type) { + case GP_WIDGET_RADIO: { + int choices = gp_widget_count_choices (child); + + ret = gp_widget_get_value (child, &mval); + if (ret < GP_OK) { + fprintf (stderr, "could not get widget value: %d\n", ret); + goto out; + } + if (choices == 7) { /* see what Canon has in EOS_MFDrive */ + ret = gp_widget_get_choice (child, xx+4, (const char**)&mval); + if (ret < GP_OK) { + fprintf (stderr, "could not get widget choice %d: %d\n", xx+2, ret); + goto out; + } + fprintf(stderr,"manual focus %d -> %s\n", xx, mval); + } + ret = gp_widget_set_value (child, mval); + if (ret < GP_OK) { + fprintf (stderr, "could not set widget value to 1: %d\n", ret); + goto out; + } + break; + } + case GP_WIDGET_RANGE: + ret = gp_widget_get_value (child, &rval); + if (ret < GP_OK) { + fprintf (stderr, "could not get widget value: %d\n", ret); + goto out; + } + + switch (xx) { /* Range is on Nikon from -32768 <-> 32768 */ + case -3: rval = -1024;break; + case -2: rval = -512;break; + case -1: rval = -128;break; + case 0: rval = 0;break; + case 1: rval = 128;break; + case 2: rval = 512;break; + case 3: rval = 1024;break; + + default: rval = xx; break; /* hack */ + } + + fprintf(stderr,"manual focus %d -> %f\n", xx, rval); + + ret = gp_widget_set_value (child, &rval); + if (ret < GP_OK) { + fprintf (stderr, "could not set widget value to 1: %d\n", ret); + goto out; + } + break; + default: + fprintf (stderr, "widget has bad type %d\n", type); + ret = GP_ERROR_BAD_PARAMETERS; + goto out; + } + + + ret = gp_camera_set_config (camera, widget, context); + if (ret < GP_OK) { + fprintf (stderr, "could not set config tree to autofocus: %d\n", ret); + goto out; + } +out: + gp_widget_free (widget); + return ret; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/foo.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/foo.c new file mode 100644 index 00000000..c9b22b52 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/foo.c @@ -0,0 +1,63 @@ +/* + + My Preview Trying to capture preview images with libgphoto2 + +*/ + +// block of includes from preview.c +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "samples.h" +#include // there's a gettimeofday somewhere + + +Camera *canon; +GPContext *canoncontext; + +void get_one(void) { // capture 1 preview image + CameraFile *file; + char jpgname[] = "test2.jpg"; + int rslt; + rslt = gp_file_new(&file); + if (rslt) { + printf("Error creating new CameraFile %i\n",rslt); + exit(1); + } + // skipping focus for now but do it here + // skipping zoom also + rslt = gp_camera_capture_preview(canon, file, canoncontext); + if (rslt) { + printf("error capturing preview %i\n",rslt); + exit(1); + } + rslt = gp_file_save(file, jpgname); + if (rslt) { + printf("Error saving file (in gp_file_save) %i\n",rslt); + exit(1); + } +} + +int main(void) { + int rslt; + // skip this for now +// gp_log_add_func(GP_LOG_ERROR, errordumper, NULL); + gp_camera_new(&canon); + canoncontext = sample_create_context(); + printf("Camera init. Takes about 10 seconds.\n"); + rslt = gp_camera_init(canon, canoncontext); + if (rslt) { + printf("Error initializing camera %i\n",rslt); + exit(1); + } + //canon_enable_capture(canon, TRUE, canoncontext); // in config.c + get_one(); + gp_camera_exit(canon, canoncontext); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/lunkwill-canon-capture.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/lunkwill-canon-capture.c new file mode 100644 index 00000000..f7f4280e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/lunkwill-canon-capture.c @@ -0,0 +1,156 @@ +/* compile with gcc -Wall -o canon-capture -lgphoto2 canon-capture.c + * This code released into the public domain 21 July 2008 + * + * This program does the equivalent of: + * gphoto2 --shell + * > set-config capture=1 + * > capture-image-and-download + * compile with gcc -Wall -o canon-capture -lgphoto2 canon-capture.c + * + * Taken from: http://credentiality2.blogspot.com/2008/07/linux-libgphoto2-image-capture-from.html + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "samples.h" + +static void errordumper(GPLogLevel level, const char *domain, const char *str, + void *data) { + struct timeval tv; + + gettimeofday (&tv, NULL); + fprintf(stdout, "%d.%d: %s\n", (int)tv.tv_sec, (int)tv.tv_usec, str); +} + +/* This seems to have no effect on where images go +void set_capturetarget(Camera *canon, GPContext *canoncontext) { + int retval; + printf("Get root config.\n"); + CameraWidget *rootconfig; // okay, not really + CameraWidget *actualrootconfig; + + retval = gp_camera_get_config(canon, &rootconfig, canoncontext); + actualrootconfig = rootconfig; + printf(" Retval: %d\n", retval); + + printf("Get main config.\n"); + CameraWidget *child; + retval = gp_widget_get_child_by_name(rootconfig, "main", &child); + printf(" Retval: %d\n", retval); + + printf("Get settings config.\n"); + rootconfig = child; + retval = gp_widget_get_child_by_name(rootconfig, "settings", &child); + printf(" Retval: %d\n", retval); + + printf("Get capturetarget.\n"); + rootconfig = child; + retval = gp_widget_get_child_by_name(rootconfig, "capturetarget", &child); + printf(" Retval: %d\n", retval); + + + CameraWidget *capture = child; + + const char *widgetinfo; + gp_widget_get_name(capture, &widgetinfo); + printf("config name: %s\n", widgetinfo ); + + const char *widgetlabel; + gp_widget_get_label(capture, &widgetlabel); + printf("config label: %s\n", widgetlabel); + + int widgetid; + gp_widget_get_id(capture, &widgetid); + printf("config id: %d\n", widgetid); + + CameraWidgetType widgettype; + gp_widget_get_type(capture, &widgettype); + printf("config type: %d == %d \n", widgettype, GP_WIDGET_RADIO); + + + printf("Set value.\n"); + + // capture to ram should be 0, although I think the filename also plays into + // it + int one=1; + retval = gp_widget_set_value(capture, &one); + printf(" Retval: %d\n", retval); + + printf("Enabling capture to CF.\n"); + retval = gp_camera_set_config(canon, actualrootconfig, canoncontext); + printf(" Retval: %d\n", retval); +} +*/ + +static void +capture_to_file(Camera *canon, GPContext *canoncontext, char *fn) { + int fd, retval; + CameraFile *canonfile; + CameraFilePath camera_file_path; + + printf("Capturing.\n"); + + /* NOP: This gets overridden in the library to /capt0000.jpg */ + strcpy(camera_file_path.folder, "/"); + strcpy(camera_file_path.name, "foo.jpg"); + + retval = gp_camera_capture(canon, GP_CAPTURE_IMAGE, &camera_file_path, canoncontext); + printf(" Retval: %d\n", retval); + + printf("Pathname on the camera: %s/%s\n", camera_file_path.folder, camera_file_path.name); + + fd = open(fn, O_CREAT | O_WRONLY | O_BINARY, 0644); + retval = gp_file_new_from_fd(&canonfile, fd); + printf(" Retval: %d\n", retval); + retval = gp_camera_file_get(canon, camera_file_path.folder, camera_file_path.name, + GP_FILE_TYPE_NORMAL, canonfile, canoncontext); + printf(" Retval: %d\n", retval); + + printf("Deleting.\n"); + retval = gp_camera_file_delete(canon, camera_file_path.folder, camera_file_path.name, + canoncontext); + printf(" Retval: %d\n", retval); + + gp_file_free(canonfile); +} + +int +main(int argc, char **argv) { + Camera *canon; + int retval; + GPContext *canoncontext = sample_create_context(); + + gp_log_add_func(GP_LOG_DEBUG, errordumper, NULL); + gp_camera_new(&canon); + + /* When I set GP_LOG_DEBUG instead of GP_LOG_ERROR above, I noticed that the + * init function seems to traverse the entire filesystem on the camera. This + * is partly why it takes so long. + * (Marcus: the ptp2 driver does this by default currently.) + */ + printf("Camera init. Takes about 10 seconds.\n"); + retval = gp_camera_init(canon, canoncontext); + if (retval != GP_OK) { + printf(" Retval: %d\n", retval); + exit (1); + } + canon_enable_capture(canon, TRUE, canoncontext); + /*set_capturetarget(canon, canoncontext);*/ + capture_to_file(canon, canoncontext, "foo.jpg"); + capture_to_file(canon, canoncontext, "foo1.jpg"); + capture_to_file(canon, canoncontext, "foo2.jpg"); + capture_to_file(canon, canoncontext, "foo3.jpg"); + capture_to_file(canon, canoncontext, "foo4.jpg"); + capture_to_file(canon, canoncontext, "foo5.jpg"); + capture_to_file(canon, canoncontext, "foo6.jpg"); + gp_camera_exit(canon, canoncontext); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/preview.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/preview.c new file mode 100644 index 00000000..162e5966 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/preview.c @@ -0,0 +1,201 @@ +/* compile with gcc -Wall -o canon-capture -lgphoto2 canon-capture.c + * This code released into the public domain 21 July 2008 + * + * This program does the equivalent of: + * gphoto2 --shell + * > set-config capture=1 + * > capture-image-and-download + * compile with gcc -Wall -o canon-capture -lgphoto2 canon-capture.c + * + * Taken from: http://credentiality2.blogspot.com/2008/07/linux-libgphoto2-image-capture-from.html + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "samples.h" + +static void errordumper(GPLogLevel level, const char *domain, const char *str, + void *data) { + printf("%s (data %p)\n", str,data); +} + +/* This seems to have no effect on where images go +void set_capturetarget(Camera *canon, GPContext *canoncontext) { + int retval; + printf("Get root config.\n"); + CameraWidget *rootconfig; // okay, not really + CameraWidget *actualrootconfig; + + retval = gp_camera_get_config(canon, &rootconfig, canoncontext); + actualrootconfig = rootconfig; + printf(" Retval: %d\n", retval); + + printf("Get main config.\n"); + CameraWidget *child; + retval = gp_widget_get_child_by_name(rootconfig, "main", &child); + printf(" Retval: %d\n", retval); + + printf("Get settings config.\n"); + rootconfig = child; + retval = gp_widget_get_child_by_name(rootconfig, "settings", &child); + printf(" Retval: %d\n", retval); + + printf("Get capturetarget.\n"); + rootconfig = child; + retval = gp_widget_get_child_by_name(rootconfig, "capturetarget", &child); + printf(" Retval: %d\n", retval); + + + CameraWidget *capture = child; + + const char *widgetinfo; + gp_widget_get_name(capture, &widgetinfo); + printf("config name: %s\n", widgetinfo ); + + const char *widgetlabel; + gp_widget_get_label(capture, &widgetlabel); + printf("config label: %s\n", widgetlabel); + + int widgetid; + gp_widget_get_id(capture, &widgetid); + printf("config id: %d\n", widgetid); + + CameraWidgetType widgettype; + gp_widget_get_type(capture, &widgettype); + printf("config type: %d == %d \n", widgettype, GP_WIDGET_RADIO); + + + printf("Set value.\n"); + + // capture to ram should be 0, although I think the filename also plays into + // it + int one=1; + retval = gp_widget_set_value(capture, &one); + printf(" Retval: %d\n", retval); + + printf("Enabling capture to CF.\n"); + retval = gp_camera_set_config(canon, actualrootconfig, canoncontext); + printf(" Retval: %d\n", retval); +} +*/ + +#if 0 +static void +capture_to_file(Camera *canon, GPContext *canoncontext, char *fn) { + int fd, retval; + CameraFile *canonfile; + CameraFilePath camera_file_path; + + printf("Capturing.\n"); + + retval = gp_camera_capture(canon, GP_CAPTURE_IMAGE, &camera_file_path, canoncontext); + printf(" Retval: %d\n", retval); + + printf("Pathname on the camera: %s/%s\n", camera_file_path.folder, camera_file_path.name); + + fd = open(fn, O_CREAT | O_WRONLY | O_BINARY, 0644); + retval = gp_file_new_from_fd(&canonfile, fd); + printf(" Retval: %d\n", retval); + retval = gp_camera_file_get(canon, camera_file_path.folder, camera_file_path.name, + GP_FILE_TYPE_NORMAL, canonfile, canoncontext); + printf(" Retval: %d\n", retval); + + printf("Deleting.\n"); + retval = gp_camera_file_delete(canon, camera_file_path.folder, camera_file_path.name, + canoncontext); + printf(" Retval: %d\n", retval); + + gp_file_free(canonfile); +} +#endif + +int +main(int argc, char **argv) { + Camera *canon; + int i, retval; + GPContext *canoncontext = sample_create_context(); + + gp_log_add_func(GP_LOG_ERROR, errordumper, 0); + gp_camera_new(&canon); + + /* When I set GP_LOG_DEBUG instead of GP_LOG_ERROR above, I noticed that the + * init function seems to traverse the entire filesystem on the camera. This + * is partly why it takes so long. + * (Marcus: the ptp2 driver does this by default currently.) + */ + printf("Camera init. Takes about 10 seconds.\n"); + retval = gp_camera_init(canon, canoncontext); + if (retval != GP_OK) { + printf(" Retval: %d\n", retval); + exit (1); + } + canon_enable_capture(canon, TRUE, canoncontext); + retval = camera_eosviewfinder(canon,canoncontext,1); + if (retval != GP_OK) { + fprintf(stderr,"camera_eosviewfinder(1): %d\n", retval); + exit(1); + } + /*set_capturetarget(canon, canoncontext);*/ + printf("Taking 100 previews and saving them to snapshot-XXX.jpg ...\n"); + for (i=0;i<100;i++) { + CameraFile *file; + char output_file[32]; + + fprintf(stderr,"preview %d\n", i); + retval = gp_file_new(&file); + if (retval != GP_OK) { + fprintf(stderr,"gp_file_new: %d\n", retval); + exit(1); + } + + /* autofocus every 10 shots */ + if (i%10 == 9) { + camera_auto_focus (canon, canoncontext, 1); + /* FIXME: wait a bit and/or poll events ? */ + camera_auto_focus (canon, canoncontext, 0); + } else { + camera_manual_focus (canon, (i/10-5)/2, canoncontext); + } +#if 0 /* testcase for EOS zooming */ + { + char buf[20]; + if (i<10) set_config_value_string (canon, "eoszoom", "5", canoncontext); + sprintf(buf,"%d,%d",(i&0x1f)*64,(i>>5)*64); + fprintf(stderr, "%d - %s\n", i, buf); + set_config_value_string (canon, "eoszoomposition", buf, canoncontext); + } +#endif + retval = gp_camera_capture_preview(canon, file, canoncontext); + if (retval != GP_OK) { + fprintf(stderr,"gp_camera_capture_preview(%d): %d\n", i, retval); + exit(1); + } + sprintf(output_file, "snapshot-%03d.jpg", i); + retval = gp_file_save(file, output_file); + if (retval != GP_OK) { + fprintf(stderr,"gp_camera_capture_preview(%d): %d\n", i, retval); + exit(1); + } + gp_file_unref(file); + /* + sprintf(output_file, "image-%03d.jpg", i); + capture_to_file(canon, canoncontext, output_file); + */ + } + retval = camera_eosviewfinder(canon,canoncontext,0); + if (retval != GP_OK) { + fprintf(stderr,"camera_eosviewfinder(0): %d\n", retval); + exit(1); + } + + sleep(10); + gp_camera_exit(canon, canoncontext); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-afl.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-afl.c new file mode 100644 index 00000000..d3520c5f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-afl.c @@ -0,0 +1,265 @@ +#include +#include +#include + +#include + +#include "samples.h" + +/* Sample for AFL usage. + * + */ + +static void errordumper(GPLogLevel level, const char *domain, const char *str, + void *data) { + /* Do not log ... but let it appear here so we discover debug paths */ + fprintf(stderr, "%s:%s\n", domain, str); +} + +static int +recursive_directory(Camera *camera, const char *folder, GPContext *context, int *foundfile) { + int i, ret; + CameraList *list; + const char *newfile; + CameraFileInfo fileinfo; + CameraFile *file; + + ret = gp_list_new (&list); + if (ret < GP_OK) { + printf ("Could not allocate list.\n"); + return ret; + } + + ret = gp_camera_folder_list_folders (camera, folder, list, context); + if (ret < GP_OK) { + printf ("Could not list folders.\n"); + gp_list_free (list); + return ret; + } + gp_list_sort (list); + + for (i = 0; i < gp_list_count (list); i++) { + const char *newfolder; + char *buf; + int havefile = 0; + + gp_list_get_name (list, i, &newfolder); + + if (!strlen(newfolder)) continue; + + buf = malloc (strlen(folder) + 1 + strlen(newfolder) + 1); + strcpy(buf, folder); + if (strcmp(folder,"/")) /* avoid double / */ + strcat(buf, "/"); + strcat(buf, newfolder); + + fprintf(stderr,"newfolder=%s\n", newfolder); + + ret = recursive_directory (camera, buf, context, &havefile); + free (buf); + if (ret != GP_OK) { + gp_list_free (list); + printf ("Failed to recursively list folders.\n"); + return ret; + } + if (havefile) /* only look for the first directory with a file */ + break; + } + gp_list_reset (list); + + ret = gp_camera_folder_list_files (camera, folder, list, context); + if (ret < GP_OK) { + gp_list_free (list); + printf ("Could not list files.\n"); + return ret; + } + gp_list_sort (list); + if (gp_list_count (list) <= 0) { + gp_list_free (list); + return GP_OK; + } + + gp_list_get_name (list, 0, &newfile); /* only entry 0 needed */ + ret = gp_camera_file_get_info (camera, folder, newfile, &fileinfo, context); + if (ret != GP_OK) { + gp_list_free (list); + printf ("Could not get file info.\n"); + return ret; + } + + /* get file */ + gp_file_new (&file); + ret = gp_camera_file_get (camera, folder, newfile, GP_FILE_TYPE_NORMAL, file, context); + if ((ret != GP_OK) && (ret != GP_ERROR_NOT_SUPPORTED)) { + gp_list_free (list); + printf ("Could not get file.\n"); + return ret; + } + gp_file_unref (file); + /* get preview */ + gp_file_new (&file); + ret = gp_camera_file_get (camera, folder, newfile, GP_FILE_TYPE_PREVIEW, file, context); + if ((ret != GP_OK) && (ret != GP_ERROR_NOT_SUPPORTED)) { + gp_list_free (list); + printf ("Could not get file preview.\n"); + return ret; + } + gp_file_unref (file); + /* get exif */ + gp_file_new (&file); + ret = gp_camera_file_get (camera, folder, newfile, GP_FILE_TYPE_EXIF, file, context); + if ((ret != GP_OK) && (ret != GP_ERROR_NOT_SUPPORTED)) { + gp_list_free (list); + printf ("Could not get file preview.\n"); + return ret; + } + gp_file_unref (file); + /* Trigger the ptp things */ + gp_file_new (&file); + ret = gp_camera_file_get (camera, folder, newfile, GP_FILE_TYPE_METADATA, file, context); + if ((ret != GP_OK) && (ret != GP_ERROR_NOT_SUPPORTED)) { + gp_list_free (list); + printf ("Could not get file metadata.\n"); + return ret; + } + gp_file_unref (file); + if (foundfile) *foundfile = 1; + gp_list_free (list); + return GP_OK; +} + + +int main(int argc, char **argv) { + Camera *camera = NULL; + int count, ret, storagecnt; + CameraStorageInformation *storageinfo; + GPPortInfo gpinfo; + GPPortInfoList *gpinfolist; + GPContext *context; + CameraWidget *rootwidget; + char buf[200]; + const char *name; + CameraText summary; + CameraFile *file; + CameraFilePath path; + CameraList *list; + CameraAbilitiesList *abilities = NULL; + + + gp_log_add_func(GP_LOG_DEBUG, errordumper, NULL); + + context = sample_create_context (); /* see context.c */ + + strcpy(buf,"usb:"); + if (argc > 1) + strcat (buf, argv[1]); + + fprintf(stderr,"setting path %s.\n", buf); + + gp_port_info_list_new (&gpinfolist); + ret = gp_port_info_list_load (gpinfolist); + if (ret < GP_OK) return ret; + + ret = gp_port_info_list_lookup_path (gpinfolist, buf); + if (ret < GP_OK) return ret; + + /* Detect all the cameras that can be autodetected... */ + ret = gp_list_new (&list); + if (ret < GP_OK) return 1; + + /* Load all the camera drivers we have... */ + ret = gp_abilities_list_new (&abilities); + if (ret < GP_OK) return ret; + ret = gp_abilities_list_load (abilities, context); + if (ret < GP_OK) return ret; + ret = gp_abilities_list_detect (abilities, gpinfolist, list, context); + if (ret < GP_OK) return ret; + + fprintf(stderr, "detect list has count %d\n", gp_list_count(list)); + + ret = gp_list_get_name(list, 0, &name); + if (ret < GP_OK) goto out; + + ret = sample_open_camera (&camera, name, buf, context); + if (ret < GP_OK) { + fprintf(stderr,"camera %s at %s not found.\n", name, buf); + goto out; + } + + ret = gp_camera_init (camera, context); + if (ret < GP_OK) { + fprintf(stderr,"No camera auto detected.\n"); + goto out; + } + + /* AFL PART STARTS HERE */ + + ret = recursive_directory(camera, "/", context, NULL); + if (ret < GP_OK) { + printf ("Could not recursive list files.\n"); + goto out; + } + + ret = gp_camera_get_summary (camera, &summary, context); + if ((ret != GP_OK) && (ret != GP_ERROR_NOT_SUPPORTED)) { + printf ("Could not get summary.\n"); + goto out; + } + +#if 1 + ret = gp_camera_get_config (camera, &rootwidget, context); + if (ret < GP_OK) { + fprintf (stderr,"Could not get config.\n"); + goto out; + } +#endif + printf ("OK, %s\n", summary.text); + + ret = gp_camera_get_storageinfo (camera, &storageinfo, &storagecnt, context); + if ((ret != GP_OK) && (ret != GP_ERROR_NOT_SUPPORTED)) { + printf ("Could not get storage info.\n"); + goto out; + } + + + ret = gp_camera_trigger_capture (camera, context); + if ((ret != GP_OK) && (ret != GP_ERROR_NOT_SUPPORTED)) { + printf ("Could not trigger capture.\n"); + goto out; + } + + while (1) { + CameraEventType evttype; + void *data = NULL; + + ret = gp_camera_wait_for_event(camera, 1, &evttype, &data, context); + if (ret < GP_OK) break; + if (data) free (data); + if (evttype == GP_EVENT_TIMEOUT) break; + } + + gp_file_new (&file); + ret = gp_camera_capture_preview (camera, file, context); + if ((ret != GP_OK) && (ret != GP_ERROR_NOT_SUPPORTED)) { + gp_file_free (file); + printf ("Could not capture preview.\n"); + goto out; + } + gp_file_free (file); + +#if 0 + /* this gives endless event check loops occasionaly ... need review how to do this best */ + ret = gp_camera_capture (camera, GP_CAPTURE_IMAGE, &path, context); + if ((ret != GP_OK) && (ret != GP_ERROR_NOT_SUPPORTED)) { + printf ("Could not capture preview.\n"); + goto out; + } +#endif + + /* AFL PART ENDS HERE */ +out: + gp_camera_exit (camera, context); + gp_context_unref (context); + gp_camera_free (camera); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-autodetect.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-autodetect.c new file mode 100644 index 00000000..bc390005 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-autodetect.c @@ -0,0 +1,56 @@ +#include +#include +#include + +#include + +#include "samples.h" + +/* Sample autodetection program. + * + * This program can autodetect a single camera and then calls a + * simple function in it (summary). + */ + +int main(int argc, char **argv) { + Camera *camera; + int ret; + char *owner; + GPContext *context; + CameraText text; + + context = sample_create_context (); /* see context.c */ + gp_camera_new (&camera); + + /* This call will autodetect cameras, take the + * first one from the list and use it. It will ignore + * any others... See the *multi* examples on how to + * detect and use more than the first one. + */ + ret = gp_camera_init (camera, context); + if (ret < GP_OK) { + printf("No camera auto detected.\n"); + gp_camera_free (camera); + return 0; + } + + /* Simple query the camera summary text */ + ret = gp_camera_get_summary (camera, &text, context); + if (ret < GP_OK) { + printf("Camera failed retrieving summary.\n"); + gp_camera_free (camera); + return 0; + } + printf("Summary:\n%s\n", text.text); + + /* Simple query of a string configuration variable. */ + ret = get_config_value_string (camera, "owner", &owner, context); + if (ret >= GP_OK) { + printf("Owner: %s\n", owner); + free (owner); + } + gp_camera_exit (camera, context); + gp_camera_free (camera); + gp_context_unref (context); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-capture.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-capture.c new file mode 100644 index 00000000..17d9ec6e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-capture.c @@ -0,0 +1,133 @@ +/* + * This code released into the public domain 21 July 2008 + * + * This program does the equivalent of: + * gphoto2 --shell + * > set-config capture=1 + * > capture-image-and-download + * compile with gcc -Wall -o canon-capture -lgphoto2 canon-capture.c + * + * Taken from: http://credentiality2.blogspot.com/2008/07/linux-libgphoto2-image-capture-from.html + * + * and condensed into simple capture sample + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "samples.h" + +static void errordumper(GPLogLevel level, const char *domain, const char *str, + void *data) { + fprintf(stdout, "%s\n", str); +} + +static void +capture_to_memory(Camera *camera, GPContext *context, const char **ptr, unsigned long int *size) { + int retval; + CameraFile *file; + CameraFilePath camera_file_path; + + printf("Capturing.\n"); + + /* NOP: This gets overridden in the library to /capt0000.jpg */ + strcpy(camera_file_path.folder, "/"); + strcpy(camera_file_path.name, "foo.jpg"); + + retval = gp_camera_capture(camera, GP_CAPTURE_IMAGE, &camera_file_path, context); + printf(" Retval: %d\n", retval); + + printf("Pathname on the camera: %s/%s\n", camera_file_path.folder, camera_file_path.name); + + retval = gp_file_new(&file); + printf(" Retval: %d\n", retval); + retval = gp_camera_file_get(camera, camera_file_path.folder, camera_file_path.name, + GP_FILE_TYPE_NORMAL, file, context); + printf(" Retval: %d\n", retval); + + gp_file_get_data_and_size (file, ptr, size); + + printf("Deleting.\n"); + retval = gp_camera_file_delete(camera, camera_file_path.folder, camera_file_path.name, + context); + printf(" Retval: %d\n", retval); + /*gp_file_free(file); */ +} + +static void +capture_to_file(Camera *camera, GPContext *context, char *fn) { + int fd, retval; + CameraFile *file; + CameraFilePath camera_file_path; + + printf("Capturing.\n"); + + /* NOP: This gets overridden in the library to /capt0000.jpg */ + strcpy(camera_file_path.folder, "/"); + strcpy(camera_file_path.name, "foo.jpg"); + + retval = gp_camera_capture(camera, GP_CAPTURE_IMAGE, &camera_file_path, context); + printf(" Retval: %d\n", retval); + + printf("Pathname on the camera: %s/%s\n", camera_file_path.folder, camera_file_path.name); + + fd = open(fn, O_CREAT | O_WRONLY | O_BINARY, 0644); + retval = gp_file_new_from_fd(&file, fd); + printf(" Retval: %d\n", retval); + retval = gp_camera_file_get(camera, camera_file_path.folder, camera_file_path.name, + GP_FILE_TYPE_NORMAL, file, context); + printf(" Retval: %d\n", retval); + + gp_file_free(file); + + printf("Deleting.\n"); + retval = gp_camera_file_delete(camera, camera_file_path.folder, camera_file_path.name, + context); + printf(" Retval: %d\n", retval); +} + +int +main(int argc, char **argv) { + Camera *camera; + int retval; + GPContext *context = sample_create_context(); + FILE *f; + char *data; + unsigned long size; + + gp_log_add_func(GP_LOG_ERROR, errordumper, NULL); + gp_camera_new(&camera); + + /* When I set GP_LOG_DEBUG instead of GP_LOG_ERROR above, I noticed that the + * init function seems to traverse the entire filesystem on the camera. This + * is partly why it takes so long. + * (Marcus: the ptp2 driver does this by default currently.) + */ + printf("Camera init. Takes about 10 seconds.\n"); + retval = gp_camera_init(camera, context); + if (retval != GP_OK) { + printf(" Retval of capture_to_file: %d\n", retval); + exit (1); + } + capture_to_file(camera, context, "foo.jpg"); + + capture_to_memory(camera, context, (const char**)&data, &size); + + f = fopen("foo2.jpg", "wb"); + if (f) { + retval = fwrite (data, size, 1, f); + if (retval != size) { + printf(" fwrite size %ld, written %d\n", size, retval); + } + fclose(f); + } else + printf(" fopen foo2.jpg failed.\n"); + gp_camera_exit(camera, context); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-justfocus.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-justfocus.c new file mode 100644 index 00000000..3b5b06be --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-justfocus.c @@ -0,0 +1,73 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +#include "samples.h" + +int main(int argc, char *argv[]){ + Camera *camera; + GPContext *context = gp_context_new(); + int retval; + CameraEventType evttype; + void *evtdata; + CameraFile *file; + + gp_camera_new(&camera); + retval = gp_camera_init(camera, context); + if(retval != GP_OK) + { + printf("Error: %s\n", gp_result_as_string(retval)); + return 1; + } + + do { + retval = gp_camera_wait_for_event (camera, 10, &evttype, &evtdata, context); + } while ((retval == GP_OK) && (evttype != GP_EVENT_TIMEOUT)); + + retval = gp_file_new(&file); + if (retval != GP_OK) { + printf("gp_file_new: %d\n", retval); + return 1; + } + /*retval = gp_camera_capture_preview(camera, file, context); */ + if (retval != GP_OK) { + printf("gp_camera_capture_preview: %d\n", retval); + return 1; + } + gp_file_free (file); + + if(argc == 1) + { + retval = camera_auto_focus(camera, context, 1); + if(retval != GP_OK) { + printf("Error: %s\n", gp_result_as_string(retval)); + return 1; + } + } + else if(argc == 2) + { + int value = atoi(argv[1]); + retval = camera_manual_focus(camera, value, context); + if(retval != GP_OK) { + printf("Error: %s\n", gp_result_as_string(retval)); + return 1; + } + } + do { + retval = gp_camera_wait_for_event (camera, 10, &evttype, &evtdata, context); + } while ((retval == GP_OK) && (evttype != GP_EVENT_TIMEOUT)); + + retval = camera_auto_focus(camera, context, 0); + if(retval != GP_OK) { + printf("Error: %s\n", gp_result_as_string(retval)); + return 1; + } + + gp_camera_exit(camera, context); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-multi-detect.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-multi-detect.c new file mode 100644 index 00000000..2099b8cf --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-multi-detect.c @@ -0,0 +1,68 @@ +#include +#include +#include + +#include + +#include "samples.h" + +/* Sample autodetection program. + * + * This program can autodetect multiple cameras and then calls a + * simple function in each of them (summary). + */ + +int main(int argc, char **argv) { + CameraList *list; + Camera **cams; + int ret, i, count; + const char *name, *value; + GPContext *context; + + context = sample_create_context (); /* see context.c */ + + /* Detect all the cameras that can be autodetected... */ + ret = gp_list_new (&list); + if (ret < GP_OK) return 1; + count = sample_autodetect (list, context); + if (count < GP_OK) { + printf("No cameras detected.\n"); + return 1; + } + + /* Now open all cameras we autodected for usage */ + printf("Number of cameras: %d\n", count); + cams = calloc (sizeof (Camera*),count); + for (i = 0; i < count; i++) { + gp_list_get_name (list, i, &name); + gp_list_get_value (list, i, &value); + ret = sample_open_camera (&cams[i], name, value, context); + if (ret < GP_OK) fprintf(stderr,"Camera %s on port %s failed to open\n", name, value); + } + /* Now call a simple function in each of those cameras. */ + for (i = 0; i < count; i++) { + CameraText text; + char *owner; + ret = gp_camera_get_summary (cams[i], &text, context); + if (ret < GP_OK) { + fprintf (stderr, "Failed to get summary.\n"); + continue; + } + + gp_list_get_name (list, i, &name); + gp_list_get_value (list, i, &value); + printf("%-30s %-16s\n", name, value); + printf("Summary:\n%s\n", text.text); + + /* Query a simple string configuration variable. */ + ret = get_config_value_string (cams[i], "owner", &owner, context); + if (ret >= GP_OK) { + printf("Owner: %s\n", owner); + free (owner); + } else { + printf("Owner: No owner found.\n"); + } + + } + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-owner.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-owner.c new file mode 100644 index 00000000..063caa99 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-owner.c @@ -0,0 +1,57 @@ +#include +#include +#include + +#include + +#include "samples.h" + +/* Set the owner of the first camera. + * + * This program can autodetect a single camera and then sets its + * owner to the string passed on the cmdline. + * + * Same as: + * gphoto2 --get-config ownername + * gphoto2 --set-config ownername="Owner Name" + */ + +int main(int argc, char **argv) { + Camera *camera; + int ret; + char *owner; + GPContext *context; + + context = sample_create_context (); /* see context.c */ + gp_camera_new (&camera); + + /* This call will autodetect cameras, take the + * first one from the list and use it. It will ignore + * any others... See the *multi* examples on how to + * detect and use more than the first one. + */ + ret = gp_camera_init (camera, context); + if (ret < GP_OK) { + printf("No camera auto detected.\n"); + gp_camera_free (camera); + return 0; + } + + ret = get_config_value_string (camera, "artist", &owner, context); + if (ret < GP_OK) { + printf ("Could not query owner.\n"); + goto out; + } + printf("Current owner: %s\n", owner); + if (argc > 1) { + ret = set_config_value_string (camera, "artist", argv[1], context); + if (ret < GP_OK) { + fprintf (stderr, "Failed to set camera owner to %s; %d\n", argv[1], ret); + } else + printf("New owner: %s\n", argv[1]); + } +out: + gp_camera_exit (camera, context); + gp_camera_free (camera); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-photobooth.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-photobooth.c new file mode 100644 index 00000000..53271fc7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-photobooth.c @@ -0,0 +1,257 @@ +/* compile with gcc -Wall -o sample-photobooth -lgphoto2 sample-photobooth.c + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "samples.h" + +#define CONFIG_FILE "config.txt" +#define PREVIEW "preview.jpg" + +static void errordumper(GPLogLevel level, const char *domain, const char *str, void *data) { +/* printf("%s (data %p)\n", str,data);*/ +} + +/* set by signal handler */ +static int capture_now = 0; +static int read_config = 0; + +static int +capture_to_file(Camera *camera, GPContext *context, char *fn) { + int fd, retval; + CameraFile *file; + CameraFilePath camera_file_path; + char *s, *t; + + retval = gp_camera_capture(camera, GP_CAPTURE_IMAGE, &camera_file_path, context); + if (retval < GP_OK) return retval; + + s = strrchr (fn, '.'); + t = strrchr (camera_file_path.name, '.'); + /* replace the suffix by the one sent by the camera .. for RAW capture */ + if (t && s && (strlen(t+1) == 3) && (strlen(s+1) == 3)) { + strcpy (s+1, t+1); + } + + fd = open (fn, O_CREAT | O_WRONLY | O_BINARY, 0644); + if (fd == -1) + return GP_ERROR; + + retval = gp_file_new_from_fd(&file, fd); + if (retval < GP_OK) { + close(fd); + unlink(fn); + return retval; + } + + retval = gp_camera_file_get(camera, camera_file_path.folder, camera_file_path.name, + GP_FILE_TYPE_NORMAL, file, context); + if (retval < GP_OK) { + gp_file_free(file); + unlink(fn); + return retval; + } + + retval = gp_camera_file_delete(camera, camera_file_path.folder, camera_file_path.name, context); + gp_file_free(file); + return GP_OK; +} + +static void +sig_handler_capture_now (int sig_num) +{ +#if !defined (WIN32) + signal (SIGUSR1, sig_handler_capture_now); +#endif + capture_now = 1; +} + +static void +sig_handler_read_config (int sig_num) +{ +#if !defined (WIN32) + signal (SIGUSR2, sig_handler_read_config); +#endif + read_config = 1; +} + +int +main(int argc, char **argv) { + Camera *camera; + int retval; + int capturecnt = 0; + GPContext *context = sample_create_context(); + + printf("Sample photobooth.\n"); + printf("Continously stores previews in 'preview.jpg'.\n"); + printf("kill -USR1 %d to take a capture.\n", getpid()); + printf("kill -USR2 %d to read the 'config.txt'.\n", getpid()); + printf("kill -TERM %d to finish.\n", getpid()); + +#if !defined (WIN32) + signal (SIGUSR1, sig_handler_capture_now); + signal (SIGUSR2, sig_handler_read_config); +#endif + + gp_log_add_func(GP_LOG_ERROR, errordumper, 0); + gp_camera_new(&camera); + + retval = gp_camera_init(camera, context); + if (retval != GP_OK) { + printf(" Retval: %d\n", retval); + exit (1); + } + + while (1) { + CameraFile *file; + char output_file[32]; + + /* + * Capture a full picture on demand. Use unique filenames. + */ + if (capture_now) { + capture_now = 0; + sprintf(output_file, "image-%04d.jpg", capturecnt++); + retval = capture_to_file(camera, context, output_file); + if (retval == GP_OK) + fprintf (stderr, "captured to %s\n", output_file); + } + + /* + * Read configuration changes from "config.txt". + * Expected are key=value pairs where value is the value seen in "--get-config key", e.g. + * iso=Auto + * iso=200 + * shutterspeed=1/200 + */ + if (read_config) { + FILE *config; + char buf[512]; + + read_config = 0; + + config = fopen (CONFIG_FILE, "r"); + while (fgets (buf, sizeof(buf), config)) { + char *s; + + /* kill linefeeds */ + s = strchr(buf,'\r'); + if (s) + *s=0; + s = strchr(buf,'\n'); + if (s) + *s=0; + + s = strchr(buf,'='); + if (!s) continue; + + *s=0; + retval = set_config_value_string (camera, buf, s+1, context); + if (retval < GP_OK) + fprintf (stderr, "setting configuration '%s' to '%s' failed with %d.\n", buf, s+1, retval); + else + fprintf (stderr, "changed configuration '%s' to '%s'\n", buf, s+1); + } + fclose (config); + } + + /* + * Capture a preview on every loop. Save as preview.jpg. + */ + retval = gp_file_new(&file); + if (retval != GP_OK) { + fprintf(stderr,"gp_file_new: %d\n", retval); + exit(1); + } + + retval = gp_camera_capture_preview(camera, file, context); + if (retval != GP_OK) { + fprintf(stderr,"gp_camera_capture_preview failed: %d\n", retval); + exit(1); + } + retval = gp_file_save(file, PREVIEW); + if (retval != GP_OK) { + fprintf(stderr,"saving preview failed: %d\n", retval); + exit(1); + } + gp_file_unref(file); + /* + * Check and drain the event queue. + * Download newly captured images. + * Ignore the rest events. + */ + while (1) { + CameraEventType evttype; + CameraFilePath *path; + void *evtdata; + int fd; + + evtdata = NULL; + retval = gp_camera_wait_for_event (camera, 1, &evttype, &evtdata, context); + if (retval != GP_OK) break; + switch (evttype) { + case GP_EVENT_FILE_ADDED: { + char *t; + + path = (CameraFilePath*)evtdata; + t = strrchr (path->name, '.'); + if (t && (strlen(t+1) == 3)) { + sprintf(output_file, "image-%04d.%s", capturecnt++, t+1); + } else { + sprintf(output_file, "image-%04d.jpg", capturecnt++); + } + + fd = open (output_file, O_CREAT | O_WRONLY | O_BINARY, 0644); + retval = gp_file_new_from_fd(&file, fd); + retval = gp_camera_file_get(camera, path->folder, path->name, + GP_FILE_TYPE_NORMAL, file, context); + + retval = gp_camera_file_delete(camera, path->folder, path->name, context); + gp_file_free(file); + free (evtdata); + fprintf (stderr, "saved to %s\n", output_file); + break; + } + case GP_EVENT_FILE_CHANGED: + path = (CameraFilePath*)evtdata; + printf("File changed on camera: %s / %s\n", path->folder, path->name); + free (evtdata); + break; + case GP_EVENT_FOLDER_ADDED: + path = (CameraFilePath*)evtdata; + printf("Folder added on camera: %s / %s\n", path->folder, path->name); + free (evtdata); + break; + case GP_EVENT_CAPTURE_COMPLETE: + printf("Capture Complete.\n"); + break; + case GP_EVENT_TIMEOUT: + break; + case GP_EVENT_UNKNOWN: + if (evtdata) { + printf("Unknown event: %s.\n", (char*)evtdata); + free (evtdata); + } else { + printf("Unknown event.\n"); + } + break; + default: + printf("Type %d?\n", evttype); + break; + } + if (evttype == GP_EVENT_TIMEOUT) + break; + } + } + gp_camera_exit(camera, context); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-tether.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-tether.c new file mode 100644 index 00000000..92232066 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-tether.c @@ -0,0 +1,110 @@ +/* + * This program does the equivalent of: + * gphoto2 --wait-event-and-download + * + * compile with: gcc -Wall -o sample-tether sample-tether.c context.c -lgphoto2 + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "samples.h" + +static void errordumper(GPLogLevel level, const char *domain, const char *str, + void *data) { + fprintf(stdout, "%s\n", str); +} + +static void +camera_tether(Camera *camera, GPContext *context) { + int fd, retval; + CameraFile *file; + CameraEventType evttype; + CameraFilePath *path; + void *evtdata; + + printf("Tethering...\n"); + + while (1) { + retval = gp_camera_wait_for_event (camera, 1000, &evttype, &evtdata, context); + if (retval != GP_OK) + break; + switch (evttype) { + case GP_EVENT_FILE_ADDED: + path = (CameraFilePath*)evtdata; + printf("File added on the camera: %s/%s\n", path->folder, path->name); + + fd = open (path->name, O_CREAT | O_WRONLY | O_BINARY, 0644); + retval = gp_file_new_from_fd(&file, fd); + printf(" Downloading %s...\n", path->name); + retval = gp_camera_file_get(camera, path->folder, path->name, + GP_FILE_TYPE_NORMAL, file, context); + + printf(" Deleting %s on camera...\n", path->name); + retval = gp_camera_file_delete(camera, path->folder, path->name, context); + gp_file_free(file); + free(evtdata); + break; + case GP_EVENT_FOLDER_ADDED: + path = (CameraFilePath*)evtdata; + printf("Folder added on camera: %s / %s\n", path->folder, path->name); + free(evtdata); + break; + case GP_EVENT_FILE_CHANGED: + path = (CameraFilePath*)evtdata; + printf("File changed on camera: %s / %s\n", path->folder, path->name); + free(evtdata); + break; + case GP_EVENT_CAPTURE_COMPLETE: + printf("Capture Complete.\n"); + break; + case GP_EVENT_TIMEOUT: + printf("Timeout.\n"); + break; + case GP_EVENT_UNKNOWN: + if (evtdata) { + printf("Unknown event: %s.\n", (char*)evtdata); + } else { + printf("Unknown event.\n"); + } + break; + default: + printf("Type %d?\n", evttype); + break; + } + } +} + +int +main(int argc, char **argv) { + Camera *camera; + int retval; + GPContext *context = sample_create_context(); + + gp_log_add_func(GP_LOG_ERROR, errordumper, NULL); + gp_camera_new(&camera); + + /* When I set GP_LOG_DEBUG instead of GP_LOG_ERROR above, I noticed that the + * init function seems to traverse the entire filesystem on the camera. This + * is partly why it takes so long. + * (Marcus: the ptp2 driver does this by default currently.) + */ + printf("Camera init. Takes about 10 seconds.\n"); + retval = gp_camera_init(camera, context); + if (retval != GP_OK) { + printf(" Retval: %d\n", retval); + exit (1); + } + + camera_tether(camera, context); + + gp_camera_exit(camera, context); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-trigger-capture.c b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-trigger-capture.c new file mode 100644 index 00000000..b54ccf7d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/sample-trigger-capture.c @@ -0,0 +1,180 @@ +/* + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "samples.h" + +static void +errordumper(GPLogLevel level, const char *domain, const char *str, void *data) { + fprintf(stderr, "%s\n", str); +} + +static struct queue_entry { + CameraFilePath path; + int offset; +} *queue = NULL; +static int nrofqueue=0; +static int nrdownloads=0; + +static const char *buffer; + +static int +wait_event_and_download (Camera *camera, int waittime, GPContext *context) { + CameraEventType evtype; + CameraFilePath *path; + void *data; + int retval; + struct timeval start, curtime; + + gettimeofday (&start, NULL); + data = NULL; + if (nrofqueue) + waittime = 10; /* just drain the event queue */ + + while (1) { + unsigned int timediff; + + gettimeofday (&curtime, NULL); + + timediff = ((curtime.tv_sec - start.tv_sec)*1000)+((curtime.tv_usec - start.tv_usec)/1000); + if (timediff >= waittime) + break; + + retval = gp_camera_wait_for_event(camera, waittime - timediff, &evtype, &data, context); + if (retval != GP_OK) { + fprintf (stderr, "return from waitevent in trigger sample with %d\n", retval); + return retval; + } + path = data; + switch (evtype) { + case GP_EVENT_CAPTURE_COMPLETE: + fprintf (stderr, "wait for event CAPTURE_COMPLETE\n"); + break; + case GP_EVENT_UNKNOWN: + case GP_EVENT_TIMEOUT: + break; + case GP_EVENT_FOLDER_ADDED: + fprintf (stderr, "wait for event FOLDER_ADDED\n"); + free(data); + break; + case GP_EVENT_FILE_CHANGED: + fprintf (stderr, "wait for event FILE_CHANGED\n"); + free(data); + break; + case GP_EVENT_FILE_ADDED: + fprintf (stderr, "File %s / %s added to queue.\n", path->folder, path->name); + if (nrofqueue) { + struct queue_entry *q; + q = realloc(queue, sizeof(struct queue_entry)*(nrofqueue+1)); + if (!q) return GP_ERROR_NO_MEMORY; + queue = q; + } else { + queue = malloc (sizeof(struct queue_entry)); + if (!queue) return GP_ERROR_NO_MEMORY; + } + memcpy (&queue[nrofqueue].path, path, sizeof(CameraFilePath)); + queue[nrofqueue].offset = 0; + nrofqueue++; + free(data); + break; + } + } + if (nrofqueue) { + unsigned long size; + int fd; + struct stat stbuf; + CameraFile *file; + + retval = gp_file_new(&file); + + fprintf(stderr,"camera getfile of %s / %s\n", + queue[0].path.folder, + queue[0].path.name + ); + retval = gp_camera_file_get(camera, queue[0].path.folder, queue[0].path.name, + GP_FILE_TYPE_NORMAL, file, context); + if (retval != GP_OK) { + fprintf (stderr,"gp_camera_file_get failed: %d\n", retval); + gp_file_free (file); + return retval; + } + + /* buffer is returned as pointer, not as a copy */ + retval = gp_file_get_data_and_size (file, &buffer, &size); + + if (retval != GP_OK) { + fprintf (stderr,"gp_file_get_data_and_size failed: %d\n", retval); + gp_file_free (file); + return retval; + } + if (-1 == stat(queue[0].path.name, &stbuf)) + fd = creat(queue[0].path.name, 0644); + else + fd = open(queue[0].path.name, O_RDWR | O_BINARY, 0644); + if (fd == -1) { + perror(queue[0].path.name); + return GP_ERROR; + } + if (-1 == lseek(fd, 0, SEEK_SET)) + perror("lseek"); + if (-1 == write (fd, buffer, size)) + perror("write"); + close (fd); + + gp_file_free (file); /* Note: this invalidates buffer. */ + + fprintf(stderr,"ending download %d, deleting file.\n", nrdownloads); + retval = gp_camera_file_delete(camera, queue[0].path.folder, queue[0].path.name, context); + memmove(&queue[0],&queue[1],sizeof(queue[0])*(nrofqueue-1)); + nrofqueue--; + } + return GP_OK; +} + +int +main(int argc, char **argv) { + Camera *camera; + int retval, nrcapture = 0; + struct timeval tval; + GPContext *context = sample_create_context(); + + gp_log_add_func(GP_LOG_ERROR, errordumper, NULL); + /*gp_log_add_func(GP_LOG_DATA, errordumper, NULL); */ + gp_camera_new(&camera); + + retval = gp_camera_init(camera, context); + if (retval != GP_OK) { + printf("gp_camera_init: %d\n", retval); + exit (1); + } + while (1) { + if ((time(NULL) & 1) == 1) { + fprintf(stderr,"triggering capture %d\n", ++nrcapture); + retval = gp_camera_trigger_capture (camera, context); + if ((retval != GP_OK) && (retval != GP_ERROR) && (retval != GP_ERROR_CAMERA_BUSY)) { + fprintf(stderr,"triggering capture had error %d\n", retval); + break; + } + fprintf (stderr, "done triggering\n"); + } + /*fprintf(stderr,"waiting for events\n");*/ + retval = wait_event_and_download(camera, 100, context); + if (retval != GP_OK) + break; + /*fprintf(stderr,"end waiting for events\n");*/ + gettimeofday (&tval, NULL); + fprintf(stderr,"loop is at %d.%06d\n", (int)tval.tv_sec,(int)tval.tv_usec); + } + gp_camera_exit(camera, context); + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/examples/samples.h b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/samples.h new file mode 100644 index 00000000..391be513 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/examples/samples.h @@ -0,0 +1,30 @@ +#ifndef __SAMPLES_H +#define __SAMPLES_H +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern int sample_autodetect (CameraList *list, GPContext *context); +extern int sample_open_camera (Camera ** camera, const char *model, const char *port, GPContext *context); +extern GPContext* sample_create_context(void); + +extern int get_config_value_string (Camera *, const char *, char **, GPContext *); +extern int set_config_value_string (Camera *, const char *, const char *, GPContext *); +int canon_enable_capture (Camera *camera, int onoff, GPContext *context); + +extern int camera_auto_focus (Camera *list, GPContext *context, int onoff); +extern int camera_eosviewfinder (Camera *list, GPContext *context, int onoff); +extern int camera_manual_focus (Camera *list, int tgt, GPContext *context); + +#if !defined (O_BINARY) + /*To have portable binary open() on *nix and on Windows */ + #define O_BINARY 0 +#endif + +#ifdef __cplusplus +}; +#endif + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/Makefile-files new file mode 100644 index 00000000..03c9d78e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/Makefile-files @@ -0,0 +1,30 @@ +# -*- Makefile -*- + +EXTRA_DIST += %reldir%/README.md +EXTRA_DIST += %reldir%/gphoto-m4-sync + +EXTRA_DIST += %reldir%/gp-byteorder.m4 +EXTRA_DIST += %reldir%/gp-camlibs.m4 +EXTRA_DIST += %reldir%/gp-check-doxygen.m4 +EXTRA_DIST += %reldir%/gp-check-library.m4 +EXTRA_DIST += %reldir%/gp-check-popt.m4 +EXTRA_DIST += %reldir%/gp-check-shell-environment.m4 +EXTRA_DIST += %reldir%/gp-config-msg.m4 +EXTRA_DIST += %reldir%/gp-documentation.m4 +EXTRA_DIST += %reldir%/gp-dynamic-libraries.m4 +EXTRA_DIST += %reldir%/gp-gettext-hack.m4 +EXTRA_DIST += %reldir%/gp-internal-docs.m4 +EXTRA_DIST += %reldir%/gp-libltdl.m4 +EXTRA_DIST += %reldir%/gp-manual-docbook-xml.m4 +EXTRA_DIST += %reldir%/gp-manual-documentation.m4 +EXTRA_DIST += %reldir%/gp-manual-fig2dev.m4 +EXTRA_DIST += %reldir%/gp-manual-graphviz.m4 +EXTRA_DIST += %reldir%/gp-manual-gtk-doc.m4 +EXTRA_DIST += %reldir%/gp-manual-pstoimg.m4 +EXTRA_DIST += %reldir%/gp-manual-w3m.m4 +EXTRA_DIST += %reldir%/gp-packaging.m4 +EXTRA_DIST += %reldir%/gp-references.m4 +EXTRA_DIST += %reldir%/gp-stdint.m4 +EXTRA_DIST += %reldir%/gp-subpackage.m4 +EXTRA_DIST += %reldir%/gp-udev.m4 +EXTRA_DIST += %reldir%/gp-va-copy.m4 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/Makefile.am new file mode 100644 index 00000000..b69097e7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/Makefile.am @@ -0,0 +1,7 @@ +# This is the compatibility Makefile.am - you are probably better off +# just including the Makefile-files directly from your top-level +# Makefile.am. + +EXTRA_DIST = + +include Makefile-files diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/README.md b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/README.md new file mode 100644 index 00000000..b756b23f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/README.md @@ -0,0 +1,140 @@ +gphoto-m4 +========= + +`gphoto-m4` is the gPhoto projects' collection of m4 macros for use +with the autoconf/automake based build systems. + +It has been designed to be used in + + * `gphoto2` + * `libgphoto2` + * `libgphoto2_port` (located in `libgphoto2/`) + * `gtkam` + +Some macros are re-used ones from `libexif`. + +Since the gPhoto project moved from SVN to git, we have not figured +out yet how to properly include the `gphoto-m4` files into the +respective software's `gphoto-m4/` subdirectory (either `git subtree` +or `git submodule` come to mind). + +So for the time being, we manually update and synchronize the files. + + +Use of `gphoto-m4` after the switch to git from SVN +--------------------------------------------------- + +Since the gPhoto project moved from SVN to git, we have not figured +out yet how to properly include the `gphoto-m4` files into the +respective software's `gphoto-m4/` subdirectory. The options are: + + 1. Manually update (and hopefully synchronize) the files. + + Advantages: + + * No special commands needed for users or developers. + + Disadvantages: + + * The manual work for the maintainers is exhausting and error + prone. + + 2. Use `git submodule`. + + Advantages: + + * Defined mechanism for syncing and updating the `gphoto-m4/*` + files. + + Disadvantages: + + * Requires special git commands from everybody (users, + developers, and maintainers) all the time (e.g. `git clone + --recursive` instead of `git clone`). + + This is the showstopper for `git submodule`. + + 3. Use `git subtree`. + + Advantages: + + * Defined mechanism for syncing and updating the `gphoto-m4/*` + files. + + * Requires no special git commands from users or developers. + + * Not even people actually messing with the files in + `gphoto-m4/*` strictly need special commands. + + Only the maintainers who do the syncing and updating of the + `gphoto-m4/*` files need the special commands. + + Disadvantages: + + * Requires special knowledge of special commands instead of + just copying files around. The concept is less complex than + copying files round, but it does require special commands. + + * No rebasing possible across pulls to `gphoto-m4/`. Not really + necessary anyway, though. + + * Pushes of changes to from, say, `gphoto2/gphoto-m4` to + upstream `gphoto-m4` create a lot of commit history noise in + the `gphoto-m4` repository by including the complete history + of the `gphoto2` repository. + + Note this cannot be avoided by using `git subtree split`: + That is executed internally by `git subtree push`. + + So it appears that using `git subtree push` will push all + projects' commit history into the `gphoto-m4` repo. + + That is if not a showstopper, then at least very ugly. + +For the time being, we manually update and synchronize the files. + + +Manually syncing and updating files +----------------------------------- + +This section has not been written yet. + + +Using `git submodule` +--------------------- + +This section has not been written yet. + + +Using `git subtree` +------------------- + + +### Using `gphoto-m4` as git subtree ### + +This section describes how to use `gphoto-m4` when it has been set up +as a `git subtree` (e.g. in `gphoto2` and `libgphoto2`). + +Add a remote for `gphoto-m4`: + + git remote add origin-gphoto-m4 git@github.com:gphoto/gphoto-m4.git + +Pull changes to origin-gphoto-m4 into local `gphoto-m4`: + + git subtree pull --prefix gphoto-m4 origin-gphoto-m4 master --squash + +Now we can push local changes to 'gphoto-m4/*' back to +`origin-gphoto-m4` as follows: + + git subtree push --prefix gphoto-m4 origin-gphoto-m4 master + +FIXME: Add more typical uses cases. + + +### Setting up `gphoto-m4` as git subtree ### + +This section describes how we initially set up `gphoto-m4` as a git +subtree for `gphoto2`. This is only required once by one person, then +never needs to be done by anybody else ever again. + + git subtree add --prefix gphoto-m4 origin-gphoto-m4 master --squash diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-byteorder.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-byteorder.m4 new file mode 100644 index 00000000..bf90bc70 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-byteorder.m4 @@ -0,0 +1,450 @@ +dnl AC_NEED_BYTEORDER_H ( HEADER-TO-GENERATE ) +dnl Originally written by Dan Fandrich +dnl My contribution is hereby placed into the public domain. +dnl No warranty is expressed or implied. +dnl +dnl Create a header file that guarantees that byte swapping macros of the +dnl ntohl variety as well as the extended types included in OpenBSD and +dnl NetBSD such as le32toh are defined. If possible, the standard ntohl +dnl are overloaded as they are optimized for the given platform, but when +dnl this is not possible (e.g. on a big-endian machine) they are defined +dnl in this file. + +dnl Look for a symbol in a header file +dnl AC_HAVE_SYMBOL ( IDENTIFIER, HEADER-FILE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND ) +AC_DEFUN([AC_HAVE_SYMBOL], +[ +AC_MSG_CHECKING(for $1 in $2) +AC_EGREP_CPP([symbol is present|\<$1\>],[ +#include <$2> +#ifdef $1 + symbol is present +#endif + ], +[AC_MSG_RESULT(yes) +$3 +], +[AC_MSG_RESULT(no) +$4 +])]) + + +dnl Create a header file that defines extended byte swapping macros +AC_DEFUN([AC_NEED_BYTEORDER_H], +[ +ac_dir=`AS_DIRNAME(["$1"])` +if test "$ac_dir" != "$1" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && AS_MKDIR_P(["$ac_dir"]) +fi + +# We're only interested in the target CPU, but it's not always set +effective_target="$target" +if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then + effective_target="$host" +fi +AC_SUBST(effective_target) + +cat > "$1" << EOF +/* This file is generated automatically by configure */ +/* It is valid only for the system type ${effective_target} */ + +#ifndef __BYTEORDER_H +#define __BYTEORDER_H + +EOF + +dnl First, do an endian check +AC_C_BIGENDIAN + +dnl Look for NetBSD-style extended byte swapping macros +AC_HAVE_SYMBOL(le32toh,machine/endian.h, + [HAVE_LE32TOH=1 + cat >> "$1" << EOF +/* extended byte swapping macros are already available */ +#include + +EOF], + +[ + +dnl Look for standard byte swapping macros +AC_HAVE_SYMBOL(ntohl,arpa/inet.h, + [cat >> "$1" << EOF +/* ntohl and relatives live here */ +#include +#define __HAVE_NTOHL + +EOF], + + [AC_HAVE_SYMBOL(ntohl,netinet/in.h, + [cat >> "$1" << EOF +/* ntohl and relatives live here */ +#include +#define __HAVE_NTOHL + +EOF],true)]) +]) + +dnl Look for generic byte swapping macros + +dnl OpenBSD +AC_HAVE_SYMBOL(swap32,machine/endian.h, + [cat >> "$1" << EOF +/* swap32 and swap16 are defined in machine/endian.h */ + +EOF], + + [ +dnl Linux GLIBC + AC_HAVE_SYMBOL(bswap_32,byteswap.h, + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +#include +#define swap16(x) bswap_16(x) +#define swap32(x) bswap_32(x) +#define swap64(x) bswap_64(x) + +EOF], + + [ +dnl NetBSD + AC_HAVE_SYMBOL(bswap32,machine/endian.h, + dnl We're already including machine/endian.h if this test succeeds + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +EOF + if test "$HAVE_LE32TOH" != "1"; then + echo '#include '>> "$1" + fi +cat >> "$1" << EOF +#define swap16(x) bswap16(x) +#define swap32(x) bswap32(x) +#define swap64(x) bswap64(x) + +EOF], + + [ +dnl FreeBSD + AC_HAVE_SYMBOL(__byte_swap_long,sys/types.h, + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +#include +#define swap16(x) __byte_swap_word(x) +#define swap32(x) __byte_swap_long(x) +/* No optimized 64 bit byte swapping macro is available */ +#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ + ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ + ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ + ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\ + ((x) >> 8) & 0x00000000ff000000ULL | \\ + ((x) >> 24) & 0x0000000000ff0000ULL | \\ + ((x) >> 40) & 0x000000000000ff00ULL | \\ + ((x) >> 56) & 0x00000000000000ffULL)) + +EOF], + + [ +dnl OS X + AC_HAVE_SYMBOL(NXSwapLong,machine/byte_order.h, + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +#include +#define swap16(x) NXSwapShort(x) +#define swap32(x) NXSwapLong(x) +#define swap64(x) NXSwapLongLong(x) + +EOF], + [ + if test $ac_cv_c_bigendian = yes; then + cat >> "$1" << EOF +/* No other byte swapping functions are available on this big-endian system */ +#define swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) +#define swap32(x) ((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\ + ((uint32_t)(x) << 8) & 0x00ff0000UL | \\ + ((x) >> 8) & 0x0000ff00UL | \\ + ((x) >> 24) & 0x000000ffUL)) +#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ + ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ + ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ + ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\ + ((x) >> 8) & 0x00000000ff000000ULL | \\ + ((x) >> 24) & 0x0000000000ff0000ULL | \\ + ((x) >> 40) & 0x000000000000ff00ULL | \\ + ((x) >> 56) & 0x00000000000000ffULL)) + +EOF + else + cat >> "$1" << EOF +/* Use these as generic byteswapping macros on this little endian system */ +/* on windows we might not have ntohs / ntohl without including winsock.dll, + * so use generic macros */ +#ifdef __HAVE_NTOHL +# define swap16(x) htons(x) +# define swap32(x) htonl(x) +#else +# define swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) +# define swap32(x) ((uint32_t)((((uint32_t)(x) << 24) & 0xff000000UL) | \\ + (((uint32_t)(x) << 8) & 0x00ff0000UL) | \\ + (((x) >> 8) & 0x0000ff00UL) | \\ + (((x) >> 24) & 0x000000ffUL))) +#endif +/* No optimized 64 bit byte swapping macro is available */ +#define swap64(x) ((uint64_t)((((uint64_t)(x) << 56) & 0xff00000000000000ULL) | \\ + (((uint64_t)(x) << 40) & 0x00ff000000000000ULL) | \\ + (((uint64_t)(x) << 24) & 0x0000ff0000000000ULL) | \\ + (((uint64_t)(x) << 8) & 0x000000ff00000000ULL) | \\ + (((x) >> 8) & 0x00000000ff000000ULL) | \\ + (((x) >> 24) & 0x0000000000ff0000ULL) | \\ + (((x) >> 40) & 0x000000000000ff00ULL) | \\ + (((x) >> 56) & 0x00000000000000ffULL))) + +EOF + fi +]) + ]) + ]) + ]) +]) + + +[ +if test "$HAVE_LE32TOH" != "1"; then + cat >> "$1" << EOF +/* The byte swapping macros have the form: */ +/* EENN[a]toh or htoEENN[a] where EE is be (big endian) or */ +/* le (little-endian), NN is 16 or 32 (number of bits) and a, */ +/* if present, indicates that the endian side is a pointer to an */ +/* array of uint8_t bytes instead of an integer of the specified length. */ +/* h refers to the host's ordering method. */ + +/* So, to convert a 32-bit integer stored in a buffer in little-endian */ +/* format into a uint32_t usable on this machine, you could use: */ +/* uint32_t value = le32atoh(&buf[3]); */ +/* To put that value back into the buffer, you could use: */ +/* htole32a(&buf[3], value); */ + +/* Define aliases for the standard byte swapping macros */ +/* Arguments to these macros must be properly aligned on natural word */ +/* boundaries in order to work properly on all architectures */ +#ifndef htobe16 +# ifdef __HAVE_NTOHL +# define htobe16(x) htons(x) +# else +# ifdef WORDS_BIGENDIAN +# define htobe16(x) (x) +# else +# define htobe16(x) swap16(x) +# endif +# endif +#endif +#ifndef htobe32 +# ifdef __HAVE_NTOHL +# define htobe32(x) htonl(x) +# else +# ifdef WORDS_BIGENDIAN +# define htobe32(x) (x) +# else +# define htobe32(x) swap32(x) +# endif +# endif +#endif +#ifndef be16toh +# define be16toh(x) htobe16(x) +#endif +#ifndef be32toh +# define be32toh(x) htobe32(x) +#endif + +#define HTOBE16(x) (x) = htobe16(x) +#define HTOBE32(x) (x) = htobe32(x) +#define BE32TOH(x) (x) = be32toh(x) +#define BE16TOH(x) (x) = be16toh(x) + +EOF + + if test $ac_cv_c_bigendian = yes; then + cat >> "$1" << EOF +/* Define our own extended byte swapping macros for big-endian machines */ +#ifndef htole16 +# define htole16(x) swap16(x) +#endif +#ifndef htole32 +# define htole32(x) swap32(x) +#endif +#ifndef htole64 +# define htole64(x) swap64(x) +#endif +#ifndef le16toh +# define le16toh(x) swap16(x) +#endif +#ifndef le32toh +# define le32toh(x) swap32(x) +#endif +#ifndef le64toh +# define le64toh(x) swap64(x) +#endif + +#ifndef htobe64 +# define htobe64(x) (x) +#endif +#ifndef be64toh +# define be64toh(x) (x) +#endif + +#define HTOLE16(x) (x) = htole16(x) +#define HTOLE32(x) (x) = htole32(x) +#define HTOLE64(x) (x) = htole64(x) +#define LE16TOH(x) (x) = le16toh(x) +#define LE32TOH(x) (x) = le32toh(x) +#define LE64TOH(x) (x) = le64toh(x) + +#define HTOBE64(x) (void) (x) +#define BE64TOH(x) (void) (x) + +EOF + else + cat >> "$1" << EOF +/* On little endian machines, these macros are null */ +#ifndef htole16 +# define htole16(x) (x) +#endif +#ifndef htole32 +# define htole32(x) (x) +#endif +#ifndef htole64 +# define htole64(x) (x) +#endif +#ifndef le16toh +# define le16toh(x) (x) +#endif +#ifndef le32toh +# define le32toh(x) (x) +#endif +#ifndef le64toh +# define le64toh(x) (x) +#endif + +#define HTOLE16(x) (void) (x) +#define HTOLE32(x) (void) (x) +#define HTOLE64(x) (void) (x) +#define LE16TOH(x) (void) (x) +#define LE32TOH(x) (void) (x) +#define LE64TOH(x) (void) (x) + +/* These don't have standard aliases */ +#ifndef htobe64 +# define htobe64(x) swap64(x) +#endif +#ifndef be64toh +# define be64toh(x) swap64(x) +#endif + +#define HTOBE64(x) (x) = htobe64(x) +#define BE64TOH(x) (x) = be64toh(x) + +EOF + fi +fi + +cat >> "$1" << EOF +/* Define the C99 standard length-specific integer types */ +#include <_stdint.h> + +EOF + +case "${effective_target}" in + i[3456]86-*) + cat >> "$1" << EOF +/* Here are some macros to create integers from a byte array */ +/* These are used to get and put integers from/into a uint8_t array */ +/* with a specific endianness. This is the most portable way to generate */ +/* and read messages to a network or serial device. Each member of a */ +/* packet structure must be handled separately. */ + +/* The i386 and compatibles can handle unaligned memory access, */ +/* so use the optimized macros above to do this job */ +#ifndef be16atoh +# define be16atoh(x) be16toh(*(uint16_t*)(x)) +#endif +#ifndef be32atoh +# define be32atoh(x) be32toh(*(uint32_t*)(x)) +#endif +#ifndef be64atoh +# define be64atoh(x) be64toh(*(uint64_t*)(x)) +#endif +#ifndef le16atoh +# define le16atoh(x) le16toh(*(uint16_t*)(x)) +#endif +#ifndef le32atoh +# define le32atoh(x) le32toh(*(uint32_t*)(x)) +#endif +#ifndef le64atoh +# define le64atoh(x) le64toh(*(uint64_t*)(x)) +#endif + +#ifndef htob16a +# define htobe16a(a,x) *(uint16_t*)(a) = htobe16(x) +#endif +#ifndef htobe32a +# define htobe32a(a,x) *(uint32_t*)(a) = htobe32(x) +#endif +#ifndef htobe64a +# define htobe64a(a,x) *(uint64_t*)(a) = htobe64(x) +#endif +#ifndef htole16a +# define htole16a(a,x) *(uint16_t*)(a) = htole16(x) +#endif +#ifndef htole32a +# define htole32a(a,x) *(uint32_t*)(a) = htole32(x) +#endif +#ifndef htole64a +# define htole64a(a,x) *(uint64_t*)(a) = htole64(x) +#endif + +EOF + ;; + + *) + cat >> "$1" << EOF +/* Here are some macros to create integers from a byte array */ +/* These are used to get and put integers from/into a uint8_t array */ +/* with a specific endianness. This is the most portable way to generate */ +/* and read messages to a network or serial device. Each member of a */ +/* packet structure must be handled separately. */ + +/* Non-optimized but portable macros */ +#define be16atoh(x) ((uint16_t)(((x)[0]<<8)|(x)[1])) +#define be32atoh(x) ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3])) +#define be64atoh_x(x,off,shift) (((uint64_t)((x)[off]))<>8), (a)[1]=(uint8_t)(x) +#define htobe32a(a,x) (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\ + (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x) +#define htobe64a(a,x) (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\ + (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\ + (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\ + (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x) +#define htole16a(a,x) (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) +#define htole32a(a,x) (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ + (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) +#define htole64a(a,x) (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\ + (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\ + (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ + (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) + +EOF + ;; +esac +] + +cat >> "$1" << EOF +#endif /*__BYTEORDER_H*/ +EOF]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-camlibs.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-camlibs.m4 new file mode 100644 index 00000000..a7c82fe9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-camlibs.m4 @@ -0,0 +1,193 @@ +dnl GP_CAMLIB & Co. +dnl +dnl Redundancy free definition of libgphoto2 camlibs. +dnl +dnl Removes the redundany from the camlib lists, and executes +dnl additional consistency checks, e.g. to ensure that subdirectories +dnl actually exist. +dnl +dnl You can mark camlibs as unlisted, i.e. they won't be listed +dnl explicitly but still be recognized. +dnl +dnl Example usage: +dnl +dnl GP_CAMLIB([canon]) +dnl GP_CAMLIB([casio]) +dnl [...] +dnl GP_CAMLIB([ptp],[unlisted]) +dnl GP_CAMLIB([ptp2]) +dnl [...] +dnl GP_CAMLIB([toshiba]) +dnl GP_CAMLIBS_DEFINE([camlibs]) +dnl +dnl The camlibs basedir parameter of GP_CAMLIBS_DEFINE is optional. +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIBS_INIT],[dnl +AC_BEFORE([$0],[GP_CAMLIB])dnl +m4_define_default([gp_camlib_srcdir], [camlibs])dnl +m4_define_default([gp_camlibs], [])dnl +m4_define_default([gp_camlibs_unlisted], [])dnl +m4_define_default([gp_camlibs_outdated], [])dnl +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIB],[dnl +AC_REQUIRE([GP_CAMLIBS_INIT])dnl +AC_BEFORE([$0],[GP_CAMLIBS_DEFINE])dnl +m4_if([$2],[unlisted],[dnl +# $0($1,$2) +m4_append([gp_camlibs_unlisted], [$1], [ ])dnl +], +[$2],[outdated],[dnl +# $0($1,$2) +m4_append([gp_camlibs_outdated], [$1], [ ])dnl +], +[$#],[1],[dnl +# $0($1) +m4_append([gp_camlibs], [$1], [ ])dnl +],[dnl +m4_errprint(__file__:__line__:[ Error: +*** Illegal parameter 2 to $0: `$2' +*** Valid values are: undefined, [unlisted] or [outdated] +])dnl +m4_exit(1)dnl +])dnl +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIBS_WARNING],[dnl +AC_MSG_WARN([ + +# Caution: You have chosen to build a non-standard set of camlibs. +# You may have disabled the camlib required for your camera, or +# enabled a camlib that does *not* work, and overrides the camlib +# that does work. Consequently, +# YOUR CAMERA MAY NOT WORK! +# +# Many cameras of several brands are supported by a camlib with a +# name different from the name of the camera brand or model. If you +# are unsure, please +# * enable at least the "ptp2" camlib +# * or even better, just build "all" camlibs. +]) +sleep 2 +]) +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIBS_DEFINE],[dnl +AC_REQUIRE([GP_CAMLIBS_INIT])dnl +m4_pattern_allow([m4_strip])dnl +m4_ifval([$1],[m4_define([gp_camlib_srcdir],[$1])])dnl +dnl for camlib in m4_strip(gp_camlibs) m4_strip(gp_camlibs_unlisted) +dnl do +dnl if test -d "$srcdir/m4_strip(gp_camlib_srcdir)/$camlib"; then :; else +dnl AC_MSG_ERROR([ +dnl * Fatal: +dnl * Source subdirectory for camlib \`$camlib' not found in +dnl * directory \`$srcdir/m4_strip(gp_camlib_srcdir)/' +dnl ]) +dnl fi +dnl done +AC_MSG_CHECKING([which camlibs to compile]) +dnl Yes, that help output won't be all that pretty, but we at least +dnl do not have to edit it by hand. +AC_ARG_WITH([camlibs],[AS_HELP_STRING( + [--with-camlibs=], + [Compile camera drivers (camlibs) in . ]dnl + [Drivers may be separated with commas. ]dnl + [CAUTION: DRIVER NAMES AND CAMERA NAMES MAY DIFFER. ]dnl + ['all' is the default and compiles all camlibs, ]dnl + ['outdated' compiles additional camlibs for very old cameras. ]dnl + [Possible camlibs to specify are: ]dnl + m4_strip(gp_camlibs) + [Camlibs for very old (>10 years) cameras: ]dnl + m4_strip(gp_camlibs_outdated))]dnl +, + [camlibs="$withval"], + [camlibs="all"])dnl +dnl +ALL_DEFINED_CAMLIBS="m4_strip(gp_camlibs) m4_strip(gp_camlibs_outdated) m4_strip(gp_camlibs_unlisted)" +ALL_DEFAULT_CAMLIBS="m4_strip(gp_camlibs)" +BUILD_THESE_CAMLIBS_BASE="" +INSTALL_THESE_CAMLIBS_BASE="" +if test "$camlibs" = "all"; then + INSTALL_THESE_CAMLIBS_BASE="$ALL_DEFAULT_CAMLIBS" + AC_MSG_RESULT([all]) +else + # If the string starts with "all,", we start with the default list + # and add the explicitly defined ones later + if echo "$camlibs" | grep "^all," > /dev/null; then + INSTALL_THESE_CAMLIBS_BASE="$ALL_DEFAULT_CAMLIBS" + camlibs="$(echo "$camlibs" | sed 's/^all,//')" + fi + if echo "$camlibs" | grep "outdated" > /dev/null; then + INSTALL_THESE_CAMLIBS_BASE="$INSTALL_THESE_CAMLIBS_BASE m4_strip(gp_camlibs_outdated)" + camlibs="$(echo "$camlibs" | sed 's/outdated[,]*//')" + fi + + # camlibs=$(echo $camlibs | sed 's/,/ /g') + IFS_save="$IFS" + IFS=",$IFS" + # Walk through enumeration of camlibs given by user and add them to list + # of camlibs to build if we know them. + for camlib in ${camlibs}; do + IFS="$IFS_save" + found=false + for from_all_camlib in ${ALL_DEFINED_CAMLIBS}; do + if test "$camlib" = "$from_all_camlib"; then + if test "x$INSTALL_THESE_CAMLIBS_BASE" = "x"; then + INSTALL_THESE_CAMLIBS_BASE="$camlib" + else + INSTALL_THESE_CAMLIBS_BASE="$INSTALL_THESE_CAMLIBS_BASE $camlib" + fi + found=: + break + fi + done + if $found; then :; else + AC_MSG_ERROR([Unknown camlib $camlib!]) + fi + done + if test "x$INSTALL_THESE_CAMLIBS_BASE" = "xcanon" ; then + # Gentoo mode... if user just said "canon", add "ptp2" ... should save support requests. + INSTALL_THESE_CAMLIBS_BASE="$INSTALL_THESE_CAMLIBS_BASE ptp2" + camlibs="$camlibs ptp2" + AC_MSG_WARN([ + "You have just selected the old canon driver. However most current Canons\n" + "are supported by the PTP2 driver.\n" + "Autoselecting ptp2 driver too to avoid support requests.\n" + ]) + fi + IFS="$IFS_save" + AC_MSG_RESULT([$camlibs]) + GP_CAMLIBS_WARNING + AC_DEFINE_UNQUOTED([INCOMPLETE_CAMLIB_SET], ["$INSTALL_THESE_CAMLIBS_BASE"], + [Whether the set of camlibs built is incomplete]) +fi +BUILD_THESE_CAMLIBS="" +for f in $ALL_DEFINED_CAMLIBS +do + BUILD_THESE_CAMLIBS="${BUILD_THESE_CAMLIBS}${BUILD_THESE_CAMLIBS+ }${f}.la" +done + +INSTALL_THESE_CAMLIBS="" +for f in $INSTALL_THESE_CAMLIBS_BASE +do + INSTALL_THESE_CAMLIBS="${INSTALL_THESE_CAMLIBS}${INSTALL_THESE_CAMLIBS+ }${f}.la" +done +AC_SUBST([BUILD_THESE_CAMLIBS]) +AC_SUBST([INSTALL_THESE_CAMLIBS]) +AC_SUBST([ALL_DEFINED_CAMLIBS]) +AC_SUBST([ALL_DEFAULT_CAMLIBS]) +])dnl +dnl +dnl #################################################################### +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-doxygen.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-doxygen.m4 new file mode 100644 index 00000000..482ba1e6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-doxygen.m4 @@ -0,0 +1,21 @@ +dnl doxygen related stuff +dnl look for tools +dnl define substitutions for Doxyfile.in +AC_DEFUN([GP_CHECK_DOXYGEN],[dnl +AC_REQUIRE([GP_CHECK_DOC_DIR])dnl +AC_PATH_PROG([DOT], [dot], [false]) +AC_PATH_PROG([DOXYGEN], [doxygen], [false]) +AM_CONDITIONAL([HAVE_DOXYGEN], [test "x$DOXYGEN" != "xfalse"]) +AM_CONDITIONAL([HAVE_DOT], [test "x$DOT" != "xfalse"]) +if test "x$DOT" != "xfalse"; then + AC_SUBST([HAVE_DOT],[YES]) +else + AC_SUBST([HAVE_DOT],[NO]) +fi +AC_SUBST([HTML_APIDOC_DIR], ["${PACKAGE_TARNAME}-api.html"]) +AC_SUBST([DOXYGEN_OUTPUT_DIR], [doxygen-output]) +AC_SUBST([HTML_APIDOC_INTERNALS_DIR], ["${PACKAGE_TARNAME}-internals.html"]) +])dnl + + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-library.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-library.m4 new file mode 100644 index 00000000..2737d8d2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-library.m4 @@ -0,0 +1,456 @@ +dnl @synopsis GP_CHECK_LIBRARY([VARNAMEPART],[libname],[VERSION-REQUIREMENT], +dnl [headername],[functionname], +dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], +dnl [OPTIONAL-REQUIRED-ETC],[WHERE-TO-GET-IT]) +dnl +dnl Checks for the presence of a certain library. +dnl +dnl Parameters: +dnl +dnl VARNAMEPART partial variable name for variable definitions +dnl libname name of library +dnl VERSION-REQUIREMENT check for the version using pkg-config. +dnl default: [] +dnl headername name of header file +dnl default: [] +dnl functionname name of function name in library +dnl default: [] +dnl ACTION-IF-FOUND shell action to execute if found +dnl default: [] +dnl ACTION-IF-NOT-FOUND shell action to execute if not found +dnl default: [] +dnl OPTIONAL-REQUIRED-ETC one of "mandatory", "default-on", "default-off" +dnl "disable-explicitly" +dnl default: [mandatory] +dnl WHERE-TO-GET-IT place where to find the library, e.g. a URL +dnl default: [] +dnl +dnl What the ACTION-IFs can do: +dnl +dnl * change the variable have_[$1] to "yes" or "no" and thus change +dnl the outcome of the test +dnl * execute additional checks to define more specific variables, e.g. +dnl for different API versions +dnl +dnl What the OPTIONAL-REQUIRED-ETC options mean: +dnl +dnl mandatory Absolute requirement, cannot be disabled. +dnl default-on If found, it is used. If not found, it is not used. +dnl default-off In case of --with-libfoo, detect it. Without +dnl --with-libfoo, do not look for and use it. +dnl disable-explicitly Required by default, but can be disabled by +dnl explicitly giving --without-libfoo. +dnl +dnl These results have happened after calling GP_CHECK_LIBRARY: +dnl +dnl AM_CONDITIONAL([HAVE_VARPREFIX],[ if found ]) +dnl AM_SUBST([have_VARPREFIX], [ "yes" if found, "no" if not found ]) +dnl AM_SUBST([VARPREFIX_CFLAGS],[ -I, -D and stuff ]) +dnl AM_SUBST([VARPREFIX_LIBS], [ /path/to/libname.la -L/path -lfoo ]) +dnl +dnl Parameters to ./configure which influence the GP_CHECK_LIBRARY results: +dnl +dnl * VARNAMEPART_LIBS=/foobar/arm-palmos/lib/libname.la +dnl VARNAMEPART_CFLAGS=-I/foobar/include +dnl * --without-libfoo +dnl * --with-libfoo=/usr/local +dnl * --with-libfoo-include-dir=/foobar/include +dnl * --with-libfoo-lib=/foobar/arm-palmos/lib +dnl * --with-libfoo=autodetect +dnl +dnl Examples: +dnl GP_CHECK_LIBRARY([LIBEXIF], [libexif])dnl +dnl GP_CHECK_LIBRARY([LIBEXIF], [libexif-gtk], [>= 0.3.3])dnl +dnl note the space! ^ +dnl +dnl Possible enhancements: +dnl +dnl * Derive VAR_PREFIX directly from libname +dnl This will change the calling conventions, so be aware of that. +dnl * Give names of a header file and function name and to a test +dnl compilation. +dnl +AC_DEFUN([_GP_CHECK_LIBRARY_SOEXT],[dnl +AC_MSG_CHECKING([for dynamic library extension]) +soext="" +case "$host" in + *linux*) soext=".so" ;; + *sunos*) soext=".so" ;; + *solaris*) soext=".so" ;; + *bsd*) soext=".so" ;; + *darwin*) soext=".dylib" ;; + *w32*) soext=".dll" ;; +esac +case "$host_os" in + gnu*) soext=".so" ;; +esac +if test "x$soext" = "x"; then + soext=".so" + AC_MSG_RESULT([${soext}]) + AC_MSG_WARN([ +Host system "${host}" not recognized, defaulting to "${soext}". +]) +else + AC_MSG_RESULT([${soext}]) +fi +])dnl +dnl +AC_DEFUN([_GP_CHECK_LIBRARY],[ +# ---------------------------------------------------------------------- +# [GP_CHECK_LIBRARY]([$1],[$2],[$3], +# [$4],[$5], +# [...],[...],[$8]) +m4_ifval([$9],[dnl +# $9 +])dnl +# ---------------------------------------------------------------------- +dnl +AC_REQUIRE([GP_CONFIG_MSG])dnl +AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_REQUIRE([_GP_CHECK_LIBRARY_SOEXT])dnl +# Use _CFLAGS and _LIBS given to configure. +# This makes it possible to set these vars in a configure script +# and AC_CONFIG_SUBDIRS this configure. +AC_ARG_VAR([$1][_CFLAGS], [CFLAGS for compiling with ][$2])dnl +AC_ARG_VAR([$1][_LIBS], [LIBS to add for linking against ][$2])dnl +dnl +AC_MSG_CHECKING([for ][$2][ to use]) +m4_ifval([$3],[REQUIREMENTS_FOR_][$1][="][$2][ $3]["], + [REQUIREMENTS_FOR_][$1][="][$2]["]) +userdef_[$1]=no +have_[$1]=no +if test "x${[$1][_LIBS]}" = "x" && test "x${[$1][_CFLAGS]}" = "x"; then + # define --with/--without argument + m4_if([$8], [default-off], + [m4_pushdef([gp_lib_arg],[--without-][$2])dnl + try_[$1]=no + ], + [m4_pushdef([gp_lib_arg],[--with-][$2])dnl + try_[$1]=auto + ])dnl + AC_ARG_WITH([$2],[AS_HELP_STRING([gp_lib_arg][=PREFIX],[where to find ][$2][, "no" or "auto"])],[try_][$1][="$withval"]) + if test "x${[try_][$1]}" = "xno"; then + [REQUIREMENTS_FOR_][$1][=] + fi + if test "x${[try_][$1]}" = "xauto"; then [try_][$1]=autodetect; fi + AC_MSG_RESULT([${try_][$1][}]) + m4_popdef([gp_lib_arg])dnl + if test "x${[try_][$1]}" = "xautodetect"; then + # OK, we have to autodetect. + # We start autodetection with the cleanest known method: pkg-config + if test "x${[have_][$1]}" = "xno"; then + # we need that line break after the PKG_CHECK_MODULES + m4_ifval([$3], + [PKG_CHECK_MODULES([$1],[$2][ $3],[have_][$1][=yes],[:])], + [PKG_CHECK_MODULES([$1],[$2], [have_][$1][=yes],[:])] + ) + fi + # If pkg-config didn't find anything, try the libfoo-config program + # certain known libraries ship with. + if test "x${[have_][$1]}" = "xno"; then + AC_MSG_CHECKING([$2][ config program]) + m4_pushdef([gp_lib_config],[m4_if([$2],[libusb],[libusb-config], + [$2],[libgphoto2],[gphoto2-config], + [$2],[libgphoto2_port],[gphoto2-port-config], + [$2],[gdlib],[gdlib-config], + [$2],[libxml-2.0],[xml2-config], + [none])])dnl + AC_MSG_RESULT([gp_lib_config]) + AC_PATH_PROG([$1][_CONFIG_PROG],[gp_lib_config]) + if test -n "${[$1][_CONFIG_PROG]}" && + test "${[$1][_CONFIG_PROG]}" != "none"; then + m4_ifval([$3],[ + AC_MSG_CHECKING([for ][$2][ version according to ][gp_lib_config]) + m4_pushdef([gp_lib_compop],[regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*.*], [\1])])dnl comparison operator + m4_if( gp_lib_compop,[>=],[_][$1][_COMPN="-lt"], + gp_lib_compop,[>], [_][$1][_COMPN="-le"], + gp_lib_compop,[<], [_][$1][_COMPN="-ge"], + gp_lib_compop,[<=],[_][$1][_COMPN="-gt"], + gp_lib_compop,[=], [_][$1][_COMPN="-ne"], + [m4_errprint(__file__:__line__:[ Error: +Illegal version comparison operator: `gp_lib_compop' +It must be one of ">=", ">", "<", "<=", "=". +])m4_exit(1)]) + m4_popdef([gp_lib_compop])dnl + # split requested version number using m4 regexps + _[$1]_REQ_1="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\).*], [\2])" + _[$1]_REQ_2="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\)\.\([0-9]+\).*], [\3])" + _[$1]_REQ_3="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\)\.\([0-9]+\)\.\([0-9]+\).*], [\4])" + _[$1]_REQ_4="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\)\.\([0-9]+\)\.\([0-9]+\)\(.*\)], [\5])" + # split installed version number via shell and sed + _[$1]_VERSION="$("${[$1][_CONFIG_PROG]}" --version | sed 's/^.* //')" + _[$1]_VER_1="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\).*/\1/g')" + _[$1]_VER_2="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/g')" + _[$1]_VER_3="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/g')" + _[$1]_VER_4="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)\(.*\)/\4/g')" + AC_MSG_RESULT([${_][$1][_VERSION}]) + _tmp=false + if test "${_[$1]_VER_1}" "${_[$1]_COMPN}" "${_[$1]_REQ_1}"; then _tmp=true; + elif test "${_[$1]_VER_2}" "${_[$1]_COMPN}" "${_[$1]_REQ_2}"; then _tmp=true; + elif test "${_[$1]_VER_3}" "${_[$1]_COMPN}" "${_[$1]_REQ_3}"; then _tmp=true; + elif test "x${_[$1]_VER_4}" = "x" && test "x${_[$1]_REQ_4}" != "x"; then _tmp=true; + elif test "${_[$1]_VER_4}" "${_[$1]_COMPN}" "${_[$1]_REQ_4}"; then _tmp=true; + fi + AC_MSG_CHECKING([if ][$2][ version is matching requirement ][$3]) + if "${_tmp}"; then + AC_MSG_RESULT([no]) + AC_MSG_ERROR([Version requirement ][$2][ ][$3][ not met. Found: ${_][$1][_VERSION}]) + else + AC_MSG_RESULT([yes]) + fi + ])dnl if version requirement given + AC_MSG_CHECKING([for ][$2][ parameters from ][gp_lib_config]) + [$1]_LIBS="$(${[$1][_CONFIG_PROG]} --libs || echo "*error*")" + [$1]_CFLAGS="$(${[$1][_CONFIG_PROG]} --cflags || echo "*error*")" + if test "x${[$1]_LIBS}" = "*error*" || + test "x${[$1]_CFLAGS}" = "*error*"; then + AC_MSG_RESULT([error]) + else + have_[$1]=yes + AC_MSG_RESULT([ok]) + fi + fi + m4_popdef([gp_lib_config])dnl + fi + m4_ifval([$3],[# Version requirement given, so we do not rely on probing.],[ + # Neither pkg-config, nor the libfoo-config program have found anything. + # So let's just probe the system. + AC_MSG_WARN([The `$2' library could not be found using pkg-config or its known config program. +No version checks will be performed if it is found using any other method.]) + if test "x${[have_][$1]}" = "xno"; then + ifs="$IFS" + IFS=":" # FIXME: for W32 and OS/2 we may need ";" here + for _libdir_ in \ + ${LD_LIBRARY_PATH} \ + "${libdir}" \ + "${prefix}/lib64" "${prefix}/lib" \ + /usr/lib64 /usr/lib \ + /usr/local/lib64 /usr/local/lib \ + /opt/lib64 /opt/lib + do + IFS="$ifs" + for _soext_ in .la ${soext} .a; do + if test -f "${_libdir_}/[$2]${_soext_}" + then + if test "x${_soext_}" = "x.la" || + test "x${_soext_}" = "x.a"; then + [$1]_LIBS="${_libdir_}/[$2]${_soext_}" + else + [$1]_LIBS="-L${_libdir_} -l$(echo "$2" | sed 's/^lib//')" + fi + break + fi + done + if test "x${[$1][_LIBS]}" != "x"; then + break + fi + done + IFS="$ifs" + if test "x${[$1][_LIBS]}" != "x"; then + have_[$1]=yes + fi + fi + ]) + elif test "x${[try_][$1]}" = "xno"; then + : + else + # We've been given a prefix to look in for library $2. + # We start looking for $2.la files first. + AC_MSG_CHECKING([for ][$2][.la file in ${[try_][$1]}]) + if test -f "${[try_][$1]}/lib/[$2].la"; then + [$1][_LIBS]="${[try_][$1]}/lib/[$2].la" + [$1][_CFLAGS]="-I${[try_][$1]}/include" + AC_MSG_RESULT([libtool file $][$1][_LIBS (good)]) + have_[$1]=yes + elif test -f "${[try_][$1]}/lib64/[$2].la"; then # HACK + [$1][_LIBS]="${[try_][$1]}/lib64/[$2].la" + [$1][_CFLAGS]="-I${[try_][$1]}/include" + AC_MSG_RESULT([libtool file $][$1][_LIBS (good)]) + have_[$1]=yes + else + AC_MSG_RESULT([wild guess that something is in $try_][$1]) + [$1][_LIBS]="-L${[try_][$1]}/lib -l$(echo "$2" | sed 's/^lib//')" + [$1][_CFLAGS]="-I${[try_][$1]}/include" + have_[$1]=yes + AC_MSG_WARN([ +* Warning: +* libtool file $2.la could not be found. +* We may be linking against the WRONG library. +]) + fi + fi +elif test "x${[$1][_LIBS]}" != "x" && test "x${[$1][_CFLAGS]}" != "x"; then + AC_MSG_RESULT([user-defined]) + userdef_[$1]=yes + have_[$1]=yes +else + AC_MSG_RESULT([broken call]) + AC_MSG_ERROR([ +* Fatal: +* When calling configure for ${PACKAGE_TARNAME} +* ${PACKAGE_NAME} +* either set both [$1][_LIBS] *and* [$1][_CFLAGS] +* or neither. +]) +fi +AC_SUBST([REQUIREMENTS_FOR_][$1]) +dnl +dnl ACTION-IF-FOUND +dnl +m4_ifval([$6],[dnl +if test "x${[have_][$1]}" = "xyes"; then +# ACTION-IF-FOUND +$6 +fi +])dnl +dnl +dnl ACTION-IF-NOT-FOUND +dnl +m4_ifval([$7],[dnl +if test "x${[have_][$1]}" = "xno"; then +# ACTION-IF-NOT-FOUND +$7 +fi +])dnl +dnl +dnl Run our own test compilation +dnl +m4_ifval([$4],[dnl +if test "x${[have_][$1]}" = "xyes"; then +dnl AC_MSG_CHECKING([whether ][$2][ test compile succeeds]) +dnl AC_MSG_RESULT([${[have_][$1]}]) +CPPFLAGS_save="$CPPFLAGS" +CPPFLAGS="${[$1]_CFLAGS}" +AC_CHECK_HEADER([$4],[have_][$1][=yes],[have_][$1][=no]) +CPPFLAGS="$CPPFLAGS_save" +fi +])dnl +dnl +dnl Run our own test link +dnl Does not work for libraries which be built after configure time, +dnl so we deactivate it for them (userdef_). +dnl +m4_ifval([$5],[dnl +if test "x${[userdef_][$1]}" = "xno" && test "x${[have_][$1]}" = "xyes"; then + AC_MSG_CHECKING([for function ][$5][ in ][$2]) + LIBS_save="$LIBS" + LIBS="${[$1]_LIBS}" + AC_TRY_LINK_FUNC([$5],[],[have_][$1][=no]) + LIBS="$LIBS_save" + AC_MSG_RESULT([${[have_][$1]}]) +fi +])dnl +dnl +dnl Abort configure script if mandatory, but not found +dnl +m4_if([$8],[mandatory],[ +if test "x${[have_][$1]}" = "xno"; then + AC_MSG_ERROR([ +PKG_CONFIG_PATH=${PKG_CONFIG_PATH} +[$1][_LIBS]=${[$1][_LIBS]} +[$1][_CFLAGS]=${[$1][_CFLAGS]} + +* Fatal: ${PACKAGE_NAME} requires $2 $3 to build. +* +* Possible solutions: +* - set PKG_CONFIG_PATH to adequate value +* - call configure with [$1][_LIBS]=.. and [$1][_CFLAGS]=.. +* - call configure with one of the --with-$2 parameters +][m4_ifval([$9],[dnl +* - get $2 and install it: +* $9],[dnl +* - get $2 and install it])]) +fi +])dnl +dnl +dnl Abort configure script if not found and not explicitly disabled +dnl +m4_if([$8],[disable-explicitly],[ +if test "x${[try_][$1]}" != "xno" && test "x${[have_][$1]}" = "xno"; then + AC_MSG_ERROR([ +PKG_CONFIG_PATH=${PKG_CONFIG_PATH} +[$1][_LIBS]=${[$1][_LIBS]} +[$1][_CFLAGS]=${[$1][_CFLAGS]} + +* Fatal: ${PACKAGE_NAME} by default requires $2 $3 to build. +* You must explicitly disable $2 to build ${PACKAGE_TARNAME} without it. +* +* Possible solutions: +* - call configure with --with-$2=no or --without-$2 +* - set PKG_CONFIG_PATH to adequate value +* - call configure with [$1][_LIBS]=.. and [$1][_CFLAGS]=.. +* - call configure with one of the --with-$2 parameters +][m4_ifval([$9],[dnl +* - get $2 and install it: +* $9],[dnl +* - get $2 and install it +])][m4_if([$2],[libusb],[dnl +* - if you have libusb >= 1.0 installed, you must also install +* either the libusb0 compat library or a libusb 0.x version +])]) +fi +])dnl +AM_CONDITIONAL([HAVE_][$1], [test "x$have_[$1]" = "xyes"]) +if test "x$have_[$1]" = "xyes"; then + AC_DEFINE([HAVE_][$1], 1, [whether we compile with ][$2][ support]) + GP_CONFIG_MSG([$2],[yes])dnl + AC_MSG_CHECKING([$2][ library flags]) + AC_MSG_RESULT(["${[$1][_LIBS]}"]) + AC_MSG_CHECKING([$2][ cpp flags]) + AC_MSG_RESULT(["${[$1][_CFLAGS]}"]) +else + [REQUIREMENTS_FOR_][$1][=] + GP_CONFIG_MSG([$2],[no])dnl +fi +dnl AC_SUBST is done implicitly by AC_ARG_VAR above. +dnl AC_SUBST([$1][_LIBS]) +dnl AC_SUBST([$1][_CFLAGS]) +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([_GP_CHECK_LIBRARY_SYNTAX_ERROR],[dnl +m4_errprint(__file__:__line__:[ Error: +*** Calling $0 macro with old syntax +*** Aborting. +])dnl +m4_exit(1)dnl +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CHECK_LIBRARY],[dnl +m4_if([$4], [mandatory], [_GP_CHECK_LIBRARY_SYNTAX_ERROR($0)], + [$4], [default-enabled], [_GP_CHECK_LIBRARY_SYNTAX_ERROR($0)], + [$4], [default-disabled], [_GP_CHECK_LIBRARY_SYNTAX_ERROR($0)])dnl +m4_if([$8], [], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[mandatory],[$9])], + [$8], [default-on], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [$8], [disable-explicitly], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [$8], [default-off], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [$8], [mandatory], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [m4_errprint(__file__:__line__:[ Error: +Illegal argument 6 to $0: `$6' +It must be one of "default-on", "default-off", "mandatory". +])m4_exit(1)])dnl +])dnl +dnl +m4_pattern_disallow([GP_CHECK_LIBRARY]) +m4_pattern_disallow([_GP_CHECK_LIBRARY]) +m4_pattern_disallow([_GP_CHECK_LIBRARY_SYNTAX_ERROR]) +m4_pattern_disallow([_GP_CHECK_LIBRARY_SOEXT]) +dnl +dnl #################################################################### +dnl +dnl Please do not remove this: +dnl filetype: 6e60b4f0-acb2-4cd5-8258-42014f92bd2c +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-popt.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-popt.m4 new file mode 100644 index 00000000..f88f8695 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-popt.m4 @@ -0,0 +1,241 @@ +dnl @synopsis GP_CHECK_POPT(FLAG) +dnl +dnl Check whether libpopt is available. +dnl FLAG must be one of +dnl "mandatory" +dnl "default-enabled" +dnl "default-disabled" +dnl +AC_DEFUN([GP_CHECK_POPT],[ +# +# [GP_CHECK_POPT] +# +AC_REQUIRE([GP_CONFIG_MSG])dnl +m4_if([$1],[mandatory], [_GP_CHECK_POPT([mandatory])], + [$1],[default-enabled], [_GP_CHECK_POPT([disable])], + [$1],[default-disabled], [_GP_CHECK_POPT([enable])], + [m4_errprint(__file__:__line__:[ Error: +Illegal argument to $0: `$1' +Valid values are: mandatory, default-enabled, default-disabled +])m4_exit(1)])dnl +])dnl +dnl +AC_DEFUN([_GP_CHECK_POPT],[ +m4_if([$1],[mandatory],[ +try_popt=yes +require_popt=yes +],[ +try_popt=auto +require_popt=no +AC_ARG_ENABLE([popt], +[AS_HELP_STRING([--$1-popt],[Do not use popt])], +[ if test "x$enableval" = xno \ + || test "x$enableval" = xoff \ + || test "x$enableval" = xfalse; + then + try_popt=no + require_popt=no + elif test "x$enableval" = xyes \ + || test "x$enableval" = xon \ + || test "x$enableval" = xtrue + then + try_popt=yes + require_popt=yes + fi +])dnl +])dnl + +AC_MSG_CHECKING([whether popt is required]) +AC_MSG_RESULT([${require_popt}]) + +if test "$require_popt" != yes; then + AC_MSG_CHECKING([whether popt is requested]) + AC_MSG_RESULT([${try_popt}]) +fi + +dnl Implicit AC_SUBST +AC_ARG_VAR([POPT_CFLAGS],[cppflags to compile with libpopt])dnl +AC_ARG_VAR([POPT_LIBS],[location of libpopt to link against])dnl + +have_popt=no + +if test "x$POPT_CFLAGS" = "x" && test "x$POPT_LIBS" = "x"; then + + # try to find options to compile popt.h + CPPFLAGS_save="$CPPFLAGS" + popth_found=no + case "$MSYSTEM" in + MINGW32) + if test -n "/mingw32"; then + : + elif test -d "/mingw32/include"; then + CPPFLAGS="-I/mingw32/include ${CPPFLAGS}" + else + continue + fi + ac_cv_header_popt_h="" + unset ac_cv_header_popt_h + AC_CHECK_HEADER([popt.h], [popth_found=yes]) + ;; + MINGW64) + if test -n "${popt_prefix}"; then + : + elif test -d "/mingw64/include"; then + CPPFLAGS="-I/mingw64/include ${CPPFLAGS}" + else + continue + fi + ac_cv_header_popt_h="" + unset ac_cv_header_popt_h + AC_CHECK_HEADER([popt.h], [popth_found=yes]) + ;; + *) + for popt_prefix in "" /usr /usr/local + do + if test -n "${popt_prefix}"; then + : + elif test -d "${popt_prefix}/include"; then + CPPFLAGS="-I${popt_prefix}/include ${CPPFLAGS}" + else + continue + fi + ac_cv_header_popt_h="" + unset ac_cv_header_popt_h + AC_CHECK_HEADER([popt.h], [popth_found=yes]) + if test "$popth_found" = yes; then break; fi + done + ;; + esac + CPPFLAGS="$CPPFLAGS_save" + if test "$popth_found" = "yes"; then + if test "$popt_prefix" = ""; then + POPT_CFLAGS="" + else + POPT_CFLAGS="-I${popt_prefix}/include" + fi + elif test "$require_popt" = "yes"; then + AC_MSG_ERROR([ +* Cannot autodetect popt.h +* +* Set POPT_CFLAGS and POPT_LIBS correctly. +]) + fi + + # try to find options to link against popt + LDFLAGS_save="$LDFLAGS" + popt_links=no + case "$MSYSTEM" in + MINGW32) +# for ldir in "" lib; do + popt_libdir="/mingw32/lib" + if test "${popt_libdir}" = "/"; then + popt_libdir="" + elif test -d "${popt_libdir}"; then + LDFLAGS="-L${popt_libdir} ${LDFLAGS}" + else + continue + fi + # Avoid caching of results + ac_cv_lib_popt_poptStuffArgs="" + unset ac_cv_lib_popt_poptStuffArgs + AC_CHECK_LIB([popt], [poptStuffArgs], [popt_links=yes]) + ;; + MINGW64) + popt_libdir="/mingw64/lib" + if test "${popt_libdir}" = "/"; then + popt_libdir="" + elif test -d "${popt_libdir}"; then + LDFLAGS="-L${popt_libdir} ${LDFLAGS}" + else + continue + fi + # Avoid caching of results + ac_cv_lib_popt_poptStuffArgs="" + unset ac_cv_lib_popt_poptStuffArgs + AC_CHECK_LIB([popt], [poptStuffArgs], [popt_links=yes]) + ;; + *) + for popt_prefix in /usr "" /usr/local; do + # We could have "/usr" and "lib64" at the beginning of the + # lists. Then the first tested location would + # incidentally be the right one on 64bit systems, and + # thus work around a bug in libtool on 32bit systems: + # + # 32bit libtool doesn't know about 64bit systems, and so the + # compilation will fail when linking a 32bit library from + # /usr/lib to a 64bit binary. + # + # This hack has been confirmed to workwith a + # 32bit Debian Sarge and 64bit Fedora Core 3 system. + for ldir in lib64 "" lib; do + popt_libdir="${popt_prefix}/${ldir}" + if test "${popt_libdir}" = "/"; then + popt_libdir="" + elif test -d "${popt_libdir}"; then + LDFLAGS="-L${popt_libdir} ${LDFLAGS}" + else + continue + fi + # Avoid caching of results + ac_cv_lib_popt_poptStuffArgs="" + unset ac_cv_lib_popt_poptStuffArgs + AC_CHECK_LIB([popt], [poptStuffArgs], [popt_links=yes]) + if test "$popt_links" = yes; then break; fi + done + if test "$popt_links" = yes; then break; fi + done + ;; + esac + LDFLAGS="$LDFLAGS_save" + if test "$popt_links" = "yes"; then + if test "$popt_libdir" = ""; then + POPT_LIBS="-lpopt" + else + POPT_LIBS="-L${popt_libdir} -lpopt" + fi + have_popt=yes + elif test "$require_popt" = "yes"; then + AC_MSG_ERROR([ +* Cannot autodetect library directory containing popt +* +* Set POPT_CFLAGS and POPT_LIBS correctly. +]) + fi +elif test "x$POPT_CFLAGS" != "x" && test "x$POPT_LIBS" != "x"; then + # just use the user specivied option + popt_msg="yes (user specified)" + have_popt=yes +else + AC_MSG_ERROR([ +* Fatal: Either set both POPT_CFLAGS and POPT_LIBS or neither. +]) +fi + +AC_MSG_CHECKING([if popt is functional]) +if test "$require_popt$have_popt" = "yesno"; then + AC_MSG_RESULT([no, but required]) + AC_MSG_ERROR([ +* popt library not found +* Fatal: ${PACKAGE_NAME} (${PACKAGE_TARNAME}) requires popt +* Please install it and/or set POPT_CFLAGS and POPT_LIBS. +]) +fi +AC_MSG_RESULT([${have_popt}]) + +GP_CONFIG_MSG([use popt library], [${have_popt}]) +if test "$have_popt" = "yes"; then + AC_DEFINE([HAVE_POPT],[1],[whether the popt library is available]) + GP_CONFIG_MSG([popt libs],[${POPT_LIBS}]) + GP_CONFIG_MSG([popt cppflags],[${POPT_CFLAGS}]) +fi +AM_CONDITIONAL([HAVE_POPT],[test "$have_popt" = "yes"]) +])dnl +dnl +dnl Please do not remove this: +dnl filetype: 7595380e-eff3-49e5-90ab-e40f1d544639 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-shell-environment.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-shell-environment.m4 new file mode 100644 index 00000000..b9850e7a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-check-shell-environment.m4 @@ -0,0 +1,48 @@ +dnl @synopsis GP_CHECK_SHELL_ENVIRONMENT([SHOW-LOCALE-VARS]) +dnl +dnl Check that the shell environment is sane. +dnl +dnl If SHOW-LOCALE-VARS is set to [true], print all LC_* and LANG* +dnl variables at configure time. (WARNING: This is not portable!) +dnl +dnl +AC_DEFUN([GP_CHECK_SHELL_ENVIRONMENT], +[ +# make sure "cd" doesn't print anything on stdout +if test x"${CDPATH+set}" = xset +then + CDPATH=: + export CDPATH +fi + +# make sure $() command substitution works +AC_MSG_CHECKING([for POSIX sh \$() command substitution]) +if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # '''' +then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) + uname=`uname 2>&1` # '' + uname_a=`uname -a 2>&1` # '' + AC_MSG_ERROR([ + +* POSIX sh \$() command substition does not work with this shell. +* +* You are running a very rare species of shell. Please report this +* sighting to <${PACKAGE_BUGREPORT}>: +* SHELL=${SHELL} +* uname=${uname} +* uname-a=${uname_a} +* Please also include your OS and version. +* +* Run this configure script using a better (i.e. POSIX compliant) shell. +]) +fi +dnl +m4_if([$1],[true],[dnl +printenv | grep -E '^(LC_|LANG)' +])dnl + +dnl +])dnl +dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-config-msg.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-config-msg.m4 new file mode 100644 index 00000000..cc193518 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-config-msg.m4 @@ -0,0 +1,102 @@ +dnl +dnl GP_CONFIG_INIT +dnl use default LHS width (called implicitly if not called explicitly) +dnl GP_CONFIG_INIT([WIDTH-OF-LHS]) +dnl explicitly set the LHS width to the given value +dnl +dnl GP_CONFIG_MSG +dnl empty output line +dnl GP_CONFIG_MSG([LHS],[RHS]) +dnl formatted output line "LHS: RHS" +dnl +dnl GP_CONFIG_OUTPUT +dnl print all the output messages we collected in the mean time +dnl +dnl Simple way to print a configuration summary at the end of ./configure. +dnl +dnl Example usage: +dnl +dnl GP_CONFIG_INIT +dnl GP_CONFIG_MSG([Source code location],[${srcdir}]) +dnl GP_CONFIG_MSG([Compiler],[${CC}]) +dnl GP_CONFIG_MSG +dnl GP_CONFIG_MSG([Feature foo],[${foo}]) +dnl GP_CONFIG_MSG([Location of bar],[${bar}]) +dnl [...] +dnl AC_OUTPUT +dnl GP_CONFIG_OUTPUT +dnl +dnl +AC_DEFUN([GP_CONFIG_INIT], +[dnl +AC_REQUIRE([GP_CHECK_SHELL_ENVIRONMENT]) +dnl the empty string must contain at least as many spaces as the substr length +dnl FIXME: let m4 determine that length +dnl (collect left parts in array and choose largest length) +m4_if([$1],[],[gp_config_len="30"],[gp_config_len="$1"]) +gp_config_empty="" +gp_config_len3="$(expr "$gp_config_len" - 3)" +n="$gp_config_len" +while test "$n" -gt 0; do + gp_config_empty="${gp_config_empty} " + n="$(expr "$n" - 1)" +done +gp_config_msg=" +Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}): +" +])dnl +dnl +dnl +AC_DEFUN([GP_CONFIG_MSG], +[AC_REQUIRE([GP_CONFIG_INIT])dnl +m4_if([$1],[],[ +gp_config_msg="${gp_config_msg} +" +],[$2],[],[ +gp_config_msg="${gp_config_msg} + [$1] +" +],[ +gp_config_msg_len="$(expr "[$1]" : '.*')" +if test "$gp_config_msg_len" -ge "$gp_config_len"; then + gp_config_msg_lhs="$(expr "[$1]" : "\(.\{0,${gp_config_len3}\}\)")..:" +else + gp_config_msg_lhs="$(expr "[$1]:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")" +fi +gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} [$2] +" +])])dnl +dnl +AC_DEFUN([GP_CONFIG_MSG_SUBDIRS],[dnl +# Message about configured subprojects +if test "x$subdirs" != "x"; then + GP_CONFIG_MSG()dnl + _subdirs="" + for sd in $subdirs; do + ssd="$(basename "$sd")" + if test "x$_subdirs" = "x"; then + _subdirs="$ssd"; + else + _subdirs="$_subdirs $ssd" + fi + done + GP_CONFIG_MSG([Subprojects],[${_subdirs}])dnl +fi +])dnl +dnl +AC_DEFUN([GP_CONFIG_OUTPUT], +[AC_REQUIRE([GP_CONFIG_INIT])dnl +AC_REQUIRE([GP_CONFIG_MSG])dnl +AC_REQUIRE([GP_CONFIG_MSG_SUBDIRS])dnl +echo "${gp_config_msg} +You may run \"make\" and \"make install\" now." +])dnl +dnl +dnl Please do not remove this: +dnl filetype: de774af3-dc3b-4b1d-b6f2-4aca35d3da16 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-documentation.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-documentation.m4 new file mode 100644 index 00000000..a73301b6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-documentation.m4 @@ -0,0 +1,113 @@ +dnl +dnl check where to install documentation +dnl +dnl determines documentation "root directory", i.e. the directory +dnl where all documentation will be placed in +dnl + +AC_DEFUN([GP_CHECK_DOC_DIR], +[ +AC_BEFORE([$0], [GP_BUILD_GTK_DOCS])dnl +AC_BEFORE([$0], [GP_CHECK_DOXYGEN])dnl + +AC_ARG_WITH([doc-dir], +[AS_HELP_STRING([--with-doc-dir=PATH], +[Where to install docs [default=autodetect]])]) + +# check for the main ("root") documentation directory +AC_MSG_CHECKING([main docdir]) + +if test "x${with_doc_dir}" != "x" +then # docdir is given as parameter + docdir="${with_doc_dir}" + AC_MSG_RESULT([${docdir} (from parameter)]) +else # otherwise invent a docdir hopefully compatible with system policy + if test -d "/usr/share/doc" + then + maindocdir='${prefix}/share/doc' + AC_MSG_RESULT([${maindocdir} (FHS style)]) + elif test -d "/usr/doc" + then + maindocdir='${prefix}/doc' + AC_MSG_RESULT([${maindocdir} (old style)]) + else + maindocdir='${datadir}/doc' + AC_MSG_RESULT([${maindocdir} (default value)]) + fi + AC_MSG_CHECKING([package docdir]) + # check whether to include package version into documentation path + # FIXME: doesn't work properly. + if ls -d /usr/{share/,}doc/make-[0-9]* > /dev/null 2>&1 + then + docdir="${maindocdir}/${PACKAGE}-${VERSION}" + AC_MSG_RESULT([${docdir} (redhat style)]) + else + docdir="${maindocdir}/${PACKAGE}" + AC_MSG_RESULT([${docdir} (default style)]) + fi +fi + +AC_SUBST([docdir]) +])dnl + +dnl +dnl check whether to build docs and where to: +dnl +dnl * determine presence of prerequisites (only gtk-doc for now) +dnl * determine destination directory for HTML files +dnl + +AC_DEFUN([GP_BUILD_GTK_DOCS], +[ +# docdir has to be determined in advance +AC_REQUIRE([GP_CHECK_DOC_DIR]) + +# --------------------------------------------------------------------------- +# gtk-doc: We use gtk-doc for building our documentation. However, we +# require the user to explicitely request the build. +# --------------------------------------------------------------------------- +try_gtkdoc=false +gtkdoc_msg="no (not requested)" +have_gtkdoc=false +AC_ARG_ENABLE([docs], +[AS_HELP_STRING([--enable-docs], +[Use gtk-doc to build documentation [default=no]])],[ + if test x$enableval = xyes; then + try_gtkdoc=true + fi +]) +if $try_gtkdoc; then + AC_PATH_PROG([GTKDOC],[gtkdoc-mkdb]) + if test -n "${GTKDOC}"; then + have_gtkdoc=true + gtkdoc_msg="yes" + else + gtkdoc_msg="no (http://www.gtk.org/rdp/download.html)" + fi +fi +AM_CONDITIONAL([ENABLE_GTK_DOC], [$have_gtkdoc]) +GP_CONFIG_MSG([build API docs with gtk-doc],[$gtkdoc_msg]) + + +# --------------------------------------------------------------------------- +# Give the user the possibility to install html documentation in a +# user-defined location. +# --------------------------------------------------------------------------- +AC_ARG_WITH([html-dir], +[AS_HELP_STRING([--with-html-dir=PATH], +[Where to install html docs [default=autodetect]])]) + +AC_MSG_CHECKING([for html dir]) +if test "x${with_html_dir}" = "x" ; then + htmldir="${docdir}/html" + AC_MSG_RESULT([${htmldir} (default)]) +else + htmldir="${with_html_dir}" + AC_MSG_RESULT([${htmldir} (from parameter)]) +fi +AC_SUBST([htmldir]) +apidocdir="${htmldir}/api" +AC_SUBST([apidocdir]) + +])dnl + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-dynamic-libraries.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-dynamic-libraries.m4 new file mode 100644 index 00000000..a83fc0f7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-dynamic-libraries.m4 @@ -0,0 +1,60 @@ +AC_DEFUN([GP_DYNAMIC_LIBRARIES],[dnl +dnl We require either of those +dnl AC_REQUIRE([AC_LIBTTDL_INSTALLABLE])dnl +dnl AC_REQUIRE([AC_LIBLTDL_CONVENIENCE])dnl +AC_REQUIRE([AC_LIBTOOL_DLOPEN])dnl +AC_REQUIRE([AC_PROG_LIBTOOL])dnl +dnl --------------------------------------------------------------------------- +dnl Check for libltdl: +dnl - lt_dlforeachfile has been introduced in libtool-1.4. +dnl - However, there are still systems out there running libtool-1.3. +dnl For those, we will use our shipped libltdl. This has the welcome +dnl side effect that we don't have to distinguish between libltdl 1.3 with +dnl and without the notorious segfault bug. +dnl - FIXME: In case we're using our own version, we have to check whether +dnl -ldl is required? +dnl --------------------------------------------------------------------------- +# $0 +ltdl_msg="no (not found or too old)" +have_ltdl=false +LIBS_save="$LIBS" +LIBS="$LIBLTDL" +AC_CHECK_LIB([ltdl], [lt_dlforeachfile],[ + CPPFLAGS_save="$CPPFLAGS" + CPPFLAGS="$LTDLINCL" + AC_CHECK_HEADER([ltdl.h],[ + AC_DEFINE([HAVE_LTDL],1,[whether we use libltdl]) + ltdl_msg="yes (from system)" + have_ltdl=: + ]) + CPPFLAGS="$CPPFLAGS_save" +]) +LIBS="$LIBS_save" +if "$have_ltdl"; then :; else + AC_MSG_CHECKING([for included libltdl]) + if test -d "$srcdir/libltdl"; then + LIBLTDL="\$(top_builddir)/libltdl/libltdlc.la" + LTDLINCL="-I\$(top_srcdir)/libltdl" + have_ltdl=: + ltdl_msg="yes (included)" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + AC_MSG_ERROR([ +*** Could not detect or configure libltdl. +]) + fi +fi +GP_CONFIG_MSG([libltdl],["${ltdl_msg}"]) +])dnl +dnl +dnl #################################################################### +dnl +dnl Please do not remove this: +dnl filetype: 2b993145-3256-47b4-84fd-ec4dcdf4fdf9 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-gettext-hack.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-gettext-hack.m4 new file mode 100644 index 00000000..3f5dbb72 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-gettext-hack.m4 @@ -0,0 +1,78 @@ +dnl +dnl GP_GETTEXT_HACK +dnl +dnl gettext hack, originally designed for libexif, libgphoto2, and Co. +dnl This creates a po/Makevars file with adequate values if the +dnl po/Makevars.template is present. +dnl +dnl Example usage: +dnl GP_GETTEXT_HACK([${PACKAGE_TARNAME}-${LIBFOO_CURRENT}], +dnl [Copyright Holder], +dnl [foo-translation@example.org]) +dnl ALL_LINGUAS="de es fr" +dnl AM_GNU_GETTEXT_VERSION([0.14.1]) +dnl AM_GNU_GETTEXT([external]) +dnl AM_PO_SUBDIRS() +dnl AM_ICONV() +dnl GP_GETTEXT_FLAGS +dnl +dnl You can leave out the GP_GETTEXT_HACK parameters if you want to, +dnl GP_GETTEXT_HACK will try fall back to sensible values in that case: +dnl + +AC_DEFUN([GP_GETTEXT_HACK], +[ +AC_BEFORE([$0], [AM_GNU_GETTEXT])dnl +AC_BEFORE([$0], [AM_GNU_GETTEXT_VERSION])dnl +m4_if([$1],[],[GETTEXT_PACKAGE="${PACKAGE_TARNAME}"],[GETTEXT_PACKAGE="$1"]) +AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], + [The gettext domain we're using]) +AC_SUBST([GETTEXT_PACKAGE]) +sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|" +m4_if([$2],[],[],[sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = $2|"]) +m4_ifval([$3],[ +if test -n "$PACKAGE_BUGREPORT"; then + sed_mb="${PACKAGE_BUGREPORT}" +else + AC_MSG_ERROR([ +*** Your configure.{ac,in} is wrong. +*** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax) +*** or give [GP_GETTEXT_HACK] the third parameter. +*** +]) +fi +],[ +sed_mb="$3" +]) +sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|" +# Not so sure whether this hack is all *that* evil... +AC_MSG_CHECKING([for po/Makevars requiring hack]) +if test -f "${srcdir}/po/Makevars.template"; then + sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars" + AC_MSG_RESULT([yes, done.]) +else + AC_MSG_RESULT([no]) +fi +]) + +AC_DEFUN([GP_GETTEXT_FLAGS], +[ +AC_REQUIRE([AM_GNU_GETTEXT]) +AC_REQUIRE([GP_CONFIG_INIT]) +if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then + AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl" +fi +GP_CONFIG_MSG([Use translations],[${USE_NLS}]) +if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then + GP_CONFIG_MSG([Use included libintl],[${BUILD_INCLUDED_LIBINTL}]) +fi +]) + +dnl Please do not remove this: +dnl filetype: 71ff3941-a5ae-4677-a369-d7cb01f92c81 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. + +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-internal-docs.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-internal-docs.m4 new file mode 100644 index 00000000..8593620a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-internal-docs.m4 @@ -0,0 +1,29 @@ +dnl +dnl +dnl +AC_DEFUN([GP_INTERNAL_DOCS],[dnl +# Whether to enable the internal docs build. +# +# This takes quite some time due to the generation of lots of call +# graphs, so it is disabled by default. +set_enable_internal_docs=no +AC_ARG_ENABLE([internal-docs], [dnl +AS_HELP_STRING([--enable-internal-docs], +[Build internal code docs if doxygen available])], [dnl +dnl If either --enable-foo nor --disable-foo were given, execute this. + if test "x$enableval" = xno \ + || test "x$enableval" = xoff \ + || test "x$enableval" = xfalse; + then + set_enable_internal_docs=no + elif test "x$enableval" = xyes \ + || test "x$enableval" = xon \ + || test "x$enableval" = xtrue + then + set_enable_internal_docs=yes + fi +]) +AC_MSG_CHECKING([whether to create internal code docs]) +AC_MSG_RESULT([${set_enable_internal_docs}]) +AM_CONDITIONAL([ENABLE_INTERNAL_DOCS], [test "x${set_enable_internal_docs}" = "xyes"]) +])dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-libltdl.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-libltdl.m4 new file mode 100644 index 00000000..2a37c930 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-libltdl.m4 @@ -0,0 +1,59 @@ +dnl Written by Hans Ulrich Niedermann +dnl LDFLAGS vs LIBS fix by Dan Nicholson +dnl +dnl We are using our own libltdl checks instead of AC_WITH_LTDL +dnl because we do not want to ship our own copy of libltdl any more. +dnl Not shipping libltdl makes it possible to ditch our own autogen.sh +dnl and relying on standard autoconf's "autoreconf". +dnl +dnl Look for external libltdl, not shipping internal libltdl. +AC_DEFUN([GP_LIB_LTDL],[dnl +AC_ARG_VAR([LTDLINCL],[CFLAGS for compiling with libltdl]) +AC_ARG_VAR([LIBLTDL],[LIBS to add for linking against libltdl]) +if test "x${LTDLINCL}${LIBLTDL}" = "x"; then +AC_CHECK_HEADER([ltdl.h], +[dnl +AC_CHECK_LIB([ltdl], [lt_dlinit],[dnl +LTDLINCL="" +LIBLTDL="-lltdl" +AC_DEFINE([HAVE_LTDL],[1],[Whether libltdl (of libtool fame) is present]) +],[dnl +AC_MSG_ERROR([ +$PACKAGE requires the ltdl library, included with libtool + +Please make sure that the proper development package is installed +(libltdl-dev, libtool-ltdl-devel, etc.) +])[]dnl +])dnl +]) +else + AC_MSG_CHECKING([for libltdl flags]) + AC_MSG_RESULT([set explicitly: ${LTDLINCL} ${LIBLTDL}]) +fi +AC_SUBST([LTDLINCL]) +AC_SUBST([LIBLTDL]) +dnl +dnl Make sure we can actually compile and link against libltdl +AC_LANG_PUSH([C]) +AC_MSG_CHECKING([that we can compile and link with libltdl]) +saved_CPPFLAGS="$CPPFLAGS" +saved_LIBS="$LIBS" +CPPFLAGS="$CPPFLAGS $LTDLINCL" +LIBS="$LIBS $LIBLTDL" +AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl +#include /* for NULL */ +#include /* for lt_* */ +],[dnl +int ret = lt_dlforeachfile("/usr/lib:/usr/local/lib", NULL, NULL); +])], [AC_MSG_RESULT([yes])], [dnl +AC_MSG_RESULT([no]) +AC_MSG_ERROR([cannot compile and link against libltdl +${PACKAGE_TARNAME} requires libltdl (the libtool dl* library), +but cannot compile and link against it. +Aborting. +]) +]) +CPPFLAGS="$saved_CPPFLAGS" +LIBS="$saved_LIBS" +AC_LANG_POP +])dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-docbook-xml.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-docbook-xml.m4 new file mode 100644 index 00000000..bec00c7f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-docbook-xml.m4 @@ -0,0 +1,46 @@ +dnl ------------------------------------------------------------------------ +dnl try to find xmlto (required for generation of man pages and html docs) +dnl ------------------------------------------------------------------------ +AC_DEFUN([GP_CHECK_DOCBOOK_XML], +[ + +AC_MSG_CHECKING([for XML catalogs]) +XML_CATALOG_FILES="`find /etc/xml /usr/share/xml /usr/share/sgml -type f \( -iname 'catalog.xml' -or -iname 'catalog' \) -print 2> /dev/null | while read file; do echo -n "$file "; done`" +if test "x$XML_CATALOG_FILES" = "x" +then + AC_MSG_RESULT([none found.]) +else + AC_MSG_RESULT([found ${XML_CATALOG_FILES}]) +fi +AC_SUBST(XML_CATALOG_FILES) + +#XML_DEBUG_CATALOG=0 +#AC_SUBST(XML_DEBUG_CATALOG) + +manual_msg="no (http://cyberelk.net/tim/xmlto/)" +try_xmlto=true +have_xmlto=false +AC_ARG_WITH(xmlto, [ --without-xmlto Don't use xmlto],[ + if test x$withval = xno; then + try_xmlto=false + fi]) +if $try_xmlto; then + AC_PATH_PROG(XMLTO,xmlto) + if test -n "${XMLTO}"; then + have_xmlto=true + manual_msg="yes" + PURE_XMLTO="$XMLTO" + if true || test "x$XML_CATALOG_FILES" = "x"; then + unset XML_CATALOG_FILES + XMLTO="${XMLTO} -m \$(top_srcdir)/src/xsl/custom.xsl" + else + XMLTO="env XML_CATALOG_FILES=\"${XML_CATALOG_FILES}\" ${XMLTO} -m ${top_srcdir}/src/xsl/custom.xsl" + fi + else + # in case anybody runs $(XMLTO) somewhere, we return false + XMLTO=false + fi +fi + +AM_CONDITIONAL(XMLTO, $have_xmlto) +]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-documentation.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-documentation.m4 new file mode 100644 index 00000000..cb7b4e86 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-documentation.m4 @@ -0,0 +1,329 @@ +dnl +dnl check where to install documentation +dnl +dnl determines documentation "root directory", i.e. the directory +dnl where all documentation will be placed in +dnl + +AC_DEFUN([GP_CHECK_DOCDIR], +[ + +AC_ARG_WITH(doc-dir, [ --with-doc-dir=PATH Where to install docs [default=autodetect]])dnl + +# check for the main ("root") documentation directory +AC_MSG_CHECKING([main docdir]) + +if test "x${with_doc_dir}" != "x" +then # docdir is given as parameter + docdir="${with_doc_dir}" + AC_MSG_RESULT([${docdir} (from parameter)]) +else # otherwise invent a docdir hopefully compatible with system policy + if test -d "/usr/share/doc" + then + maindocdir='${prefix}/share/doc' + AC_MSG_RESULT([${maindocdir} (FHS style)]) + elif test -d "/usr/doc" + then + maindocdir='${prefix}/doc' + AC_MSG_RESULT([${maindocdir} (old style)]) + else + maindocdir='${datadir}/doc' + AC_MSG_RESULT([${maindocdir} (default value)]) + fi + AC_MSG_CHECKING(package docdir) + # check whether to include package version into documentation path + # FIXME: doesn't work properly. + if ls -d /usr/{share/,}doc/*-[[]0-9[]]* > /dev/null 2>&1 + then + docdir="${maindocdir}/${PACKAGE}-${VERSION}" + AC_MSG_RESULT([${docdir} (redhat style)]) + else + docdir="${maindocdir}/${PACKAGE}" + AC_MSG_RESULT([${docdir} (default style)]) + fi +fi + +AC_SUBST(docdir) + +])dnl + +dnl Solaris hack for grep and tr +AC_DEFUN([GP_CHECK_TR], +[ +if test -n "`echo $host_os | grep '[sS]olaris'`"; then + TR=/usr/xpg4/bin/tr + GREP=/usr/xpg4/bin/grep +else + TR=tr + GREP=grep +fi +]) + +dnl +dnl check whether to build docs and where to: +dnl +dnl * determine presence of prerequisites (only gtk-doc for now) +dnl * determine destination directory for HTML files +dnl + +AC_DEFUN([GP_BUILD_DOCS], +[ +# doc dir has to be determined in advance +AC_REQUIRE([GP_CHECK_DOCDIR]) +AC_REQUIRE([GP_CHECK_GTK_DOC]) +AC_REQUIRE([GP_CHECK_FIG2DEV]) +AC_REQUIRE([GP_CHECK_DOCBOOK_XML]) +AC_REQUIRE([GP_CHECK_TR]) +AC_REQUIRE([GP_CHECK_PSTOIMG]) +AC_REQUIRE([GP_CHECK_DOT]) +AC_REQUIRE([GP_CHECK_W3M]) + +gphoto2xml='$(top_srcdir)/src/gphoto2.xml' +AC_SUBST(gphoto2xml) + +dnl --------------------------------------------------------------------------- +dnl Give the user the possibility to install documentation in +dnl user-defined locations. +dnl --------------------------------------------------------------------------- +AC_ARG_WITH(html-dir, [ --with-html-dir=PATH Where to install html docs [default=autodetect]]) +AC_MSG_CHECKING([for html dir]) +if test "x${with_html_dir}" = "x" ; then + htmldir="${docdir}/html" + AC_MSG_RESULT([${htmldir} (default)]) +else + htmldir="${with_html_dir}" + AC_MSG_RESULT([${htmldir} (from parameter)]) +fi +AC_SUBST(htmldir) + +AC_ARG_WITH(xhtml-dir, [ --with-xhtml-dir=PATH Where to install xhtml docs [default=autodetect]]) +AC_MSG_CHECKING([for xhtml dir]) +if test "x${with_xhtml_dir}" = "x" ; then + xhtmldir="${docdir}/xhtml" + AC_MSG_RESULT([${xhtmldir} (default)]) +else + xhtmldir="${with_xhtml_dir}" + AC_MSG_RESULT([${xhtmldir} (from parameter)]) +fi +AC_SUBST(xhtmldir) + +AC_ARG_WITH(html-nochunks-dir, [ --with-html-nochunks-dir=PATH Where to install html-nochunks docs [default=autodetect]]) +AC_MSG_CHECKING([for html-nochunks dir]) +if test "x${with_html_nochunks_dir}" = "x" ; then + htmlnochunksdir="${docdir}/html-nochunks" + AC_MSG_RESULT([${htmlnochunksdir} (default)]) +else + htmlnochunksdir="${with_html_nochunks_dir}" + AC_MSG_RESULT([${htmlnochunksdir} (from parameter)]) +fi +AC_SUBST(htmlnochunksdir) + +AC_ARG_WITH(xhtml-nochunks-dir, [ --with-xhtml-nochunks-dir=PATH Where to install xhtml-nochunks docs [default=autodetect]]) +AC_MSG_CHECKING([for xhtml-nochunks dir]) +if test "x${with_xhtml_nochunks_dir}" = "x" ; then + xhtmlnochunksdir="${docdir}/xhtml-nochunks" + AC_MSG_RESULT([${xhtmlnochunksdir} (default)]) +else + xhtmlnochunksdir="${with_xhtml_nochunks_dir}" + AC_MSG_RESULT([${xhtmlnochunksdir} (from parameter)]) +fi +AC_SUBST(xhtmlnochunksdir) + +AC_ARG_WITH(xml-dir, [ --with-xml-dir=PATH Where to install xml docs [default=autodetect]]) +AC_MSG_CHECKING([for xml dir]) +if test "x${with_xml_dir}" = "x" ; then + xmldir="${docdir}/xml" + AC_MSG_RESULT([${xmldir} (default)]) +else + xmldir="${with_xml_dir}" + AC_MSG_RESULT([${xmldir} (from parameter)]) +fi +AC_SUBST(xmldir) +xmlcssdir="${xmldir}/css" +AC_SUBST(xmlcssdir) + +AC_ARG_WITH(txt-dir, [ --with-txt-dir=PATH Where to install txt docs [default=autodetect]]) +AC_MSG_CHECKING([for txt dir]) +if test "x${with_txt_dir}" = "x" ; then + txtdir="${docdir}/txt" + AC_MSG_RESULT([${txtdir} (default)]) +else + txtdir="${with_txt_dir}" + AC_MSG_RESULT([${txtdir} (from parameter)]) +fi +AC_SUBST(txtdir) + +AC_ARG_WITH(man-dir, [ --with-man-dir=PATH Where to install man docs [default=autodetect]]) +AC_MSG_CHECKING([for man dir]) +if test "x${with_man_dir}" = "x" ; then + manmandir="${docdir}/man" + AC_MSG_RESULT([${manmandir} (default)]) +else + manmandir="${with_man_dir}" + AC_MSG_RESULT([${manmandir} (from parameter)]) +fi +AC_SUBST(manmandir) + +AC_ARG_WITH(pdf-dir, [ --with-pdf-dir=PATH Where to install pdf docs [default=autodetect]]) +AC_MSG_CHECKING([for pdf dir]) +if test "x${with_pdf_dir}" = "x" ; then + pdfdir="${docdir}/pdf" + AC_MSG_RESULT([${pdfdir} (default)]) +else + pdfdir="${with_pdf_dir}" + AC_MSG_RESULT([${pdfdir} (from parameter)]) +fi +AC_SUBST(pdfdir) + +AC_ARG_WITH(ps-dir, [ --with-ps-dir=PATH Where to install ps docs [default=autodetect]]) +AC_MSG_CHECKING([for ps dir]) +if test "x${with_ps_dir}" = "x" ; then + psdir="${docdir}/ps" + AC_MSG_RESULT([${psdir} (default)]) +else + psdir="${with_ps_dir}" + AC_MSG_RESULT([${psdir} (from parameter)]) +fi +AC_SUBST(psdir) + +AC_ARG_WITH(figure-dir, [ --with-figure-dir=PATH Where to install figures [default=autodetect]]) +AC_MSG_CHECKING([for figure dir]) +if test "x${with_figure_dir}" = "x" ; then + figuredir="${docdir}/figures" + AC_MSG_RESULT([${figuredir} (default)]) +else + figuredir="${with_figure_dir}" + AC_MSG_RESULT([${figuredir} (from parameter)]) +fi +AC_SUBST(figuredir) + +AC_ARG_WITH(screenshots-dir, [ --with-screenshots-dir=PATH Where to install screenshotss [default=autodetect]]) +AC_MSG_CHECKING([for screenshots dir]) +if test "x${with_screenshots_dir}" = "x" ; then + screenshotsdir="${docdir}/screenshots" + AC_MSG_RESULT([${screenshotsdir} (default)]) +else + screenshotsdir="${with_screenshots_dir}" + AC_MSG_RESULT([${screenshotsdir} (from parameter)]) +fi +AC_SUBST(screenshotsdir) +screenshotsgtkamdir="${screenshotsdir}/gtkam" +AC_SUBST(screenshotsgtkamdir) + +doc_formats_list='man html txt ps pdf' + +# initialize have_xmlto* to false +for i in $doc_formats_list; do + d=`echo $i | $TR A-Z a-z` + eval "have_xmlto$d=false" +done + +AC_MSG_CHECKING(checking doc formats) +AC_ARG_WITH(doc_formats, + [ --with-doc-formats= create doc with format in ; ] + [ 'all' build all doc formats; ] + [ possible formats are: ] + [ man, html, ps, pdf ], + doc_formats="$withval", doc_formats="man html txt") + +if test "$doc_formats" = "all"; then + doc_formats=$doc_formats_list +else + doc_formats=`echo $doc_formats | sed 's/,/ /g'` +fi + +# set have_xmlto* to true if requested and possible +if $have_xmlto; then + for i in $doc_formats; do + if test -n "`echo $doc_formats_list | $GREP -E \"(^| )$i( |\$)\"`"; then + eval "have_xmlto$i=true" + else + AC_ERROR(Unknown doc format $i!) + fi + done + AC_MSG_RESULT($doc_formats) +else + AC_MSG_RESULT([deactivated (requires xmlto)]) +fi + +# Make sure that xmltopdf actually works +if $have_xmltopdf; then + AC_MSG_CHECKING([whether pdf creation works]) + oldcwd="$(pwd)" + top_srcdir() { echo "$srcdir"; } + mkdir test-pdf + cd test-pdf + cat>test-db.xml< + + + Foo Title + + + Foo Chapter + + Foo bar blah blah + . + + + +EOF + ${PURE_XMLTO} pdf -o . test-db.xml --searchpath .. + if test -s test-db.pdf; then + AC_MSG_RESULT([yes, look at $(pwd)/test-db.pdf to verify]) + else + if $have_xmltopdf; then + AC_MSG_ERROR([PDF creation requested, but failed. See $(pwd) ...]) + else + AC_MSG_RESULT([no, but not requested]) + fi + fi + cd "$oldcwd" + unset top_srcdir +fi + +AM_CONDITIONAL(XMLTOHTML,$have_xmltohtml) +AM_CONDITIONAL(XMLTOMAN,$have_xmltoman) +AM_CONDITIONAL(XMLTOTXT,$have_xmltotxt) +AM_CONDITIONAL(XMLTOTXT2,$have_xmltotxt && $have_w3m) +AM_CONDITIONAL(XMLTOPDF,$have_xmltopdf) +AM_CONDITIONAL(XMLTOPS,$have_xmltops) + +# create list of supported formats +AC_MSG_CHECKING([for manual formats to re­create]) +xxx="" +manual_html="" +manual_pdf="" +manual_ps="" +if $have_xmltohtml; then + xxx="${xxx} html" +fi +if $have_xmltoman; then + xxx="${xxx} man" +fi +if $have_xmltopdf; then + xxx="${xxx} pdf" +fi +if $have_xmltops; then + xxx="${xxx} ps" +fi +if $have_xmltotxt; then + xxx="${xxx} txt" +fi +AC_SUBST(manual_html) +AC_SUBST(manual_pdf) +AC_SUBST(manual_ps) +AC_MSG_RESULT($xxx) + +if test "x$xxx" != "x" +then + if $have_fig2dev; then + fig_out="" + else + fig_out="out" + fi + manual_msg="in (${xxx} ) formats with${fig_out} figures" +fi + +])dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-fig2dev.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-fig2dev.m4 new file mode 100644 index 00000000..c61f2b7f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-fig2dev.m4 @@ -0,0 +1,40 @@ +dnl --------------------------------------------------------------------------- +dnl fig2dev: This program is needed for processing images. If not found, +dnl documentation can still be built, but without figures. +dnl --------------------------------------------------------------------------- +AC_DEFUN([GP_CHECK_FIG2DEV], +[ + +try_fig2dev=true +have_fig2dev=false +AC_ARG_WITH(fig2dev, [ --without-fig2dev Don't use fig2dev],[ + if test "x$withval" = "xno"; then + try_fig2dev=false + fi]) +if $try_fig2dev; then + AC_PATH_PROG(FIG2DEV,fig2dev) + if test -n "${FIG2DEV}"; then + have_fig2dev=true + fi +fi +if $have_fig2dev; then + AC_SUBST(FIG2DEV) + ${FIG2DEV} -L ps > /dev/null < /dev/null < /dev/null + if test $? != 0 || test ! -f tesseract.png; then + have_pstoimg=false + AC_MSG_RESULT(no) + else + AC_MSG_RESULT(yes) + fi + rm -f tesseract.png +fi +AM_CONDITIONAL(ENABLE_PSTOIMG, $have_pstoimg) + +]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-w3m.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-w3m.m4 new file mode 100644 index 00000000..e563d7b9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-manual-w3m.m4 @@ -0,0 +1,45 @@ +dnl --------------------------------------------------------------------------- +dnl w3m: This program is needed for converting HTML to text. +dnl --------------------------------------------------------------------------- +AC_DEFUN([GP_CHECK_W3M], +[ + +try_w3m=true +have_w3m=false +AC_ARG_WITH(w3m, [ --without-w3m Don't use w3m],[ + if test "x$withval" = "xno"; then + try_w3m=false + fi]) +if $try_w3m; then + AC_PATH_PROG(W3M,w3m) + if test -n "${W3M}"; then + have_w3m=true + fi +fi +if $have_w3m; then + AC_MSG_CHECKING([whether ${W3M} works]) + cat > html2text-test.xxxhtml 2> /dev/null < + +<h1>HTML2TEXT Test</h1> + + +

This is a test.

+ + +EOF + ${W3M} -T text/html -cols 78 -dump html2text-test.xxxhtml > html2text-test.txt + if test $? != 0 || test ! -f html2text-test.txt || test ! -s html2text-test.txt + then + have_w3m=false + AC_MSG_RESULT([no (see http://www.w3m.org/ or http://w3m.sourceforge.net/ ...)]) + W3M=false + AC_SUBST(W3M) + else + AC_MSG_RESULT([yes]) + AC_SUBST(W3M) + fi +fi +AM_CONDITIONAL([HAVE_W3M], [$have_w3m]) + +]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-packaging.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-packaging.m4 new file mode 100644 index 00000000..d85b418a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-packaging.m4 @@ -0,0 +1,81 @@ +AC_DEFUN([GPKG_CHECK_RPM], +[ +AC_ARG_WITH([rpmbuild], +[AS_HELP_STRING([--with-rpmbuild=PATH], +[Program to use for building RPMs])]) + +AC_MSG_CHECKING([for rpmbuild or rpm]) +if test -x "${with_rpmbuild}" +then + RPMBUILD="${with_rpmbuild}" + AC_MSG_RESULT([${RPMBUILD} (from parameter)]) +else + AC_MSG_RESULT([using autodetection]) + AC_CHECK_PROGS(RPMBUILD, [rpmbuild rpm], false) + AC_MSG_CHECKING([for rpmbuild or rpm]) + AC_MSG_RESULT([${RPMBUILD} (autodetected)]) +fi +AC_SUBST([RPMBUILD]) +AM_CONDITIONAL([ENABLE_RPM], [test "$RPMBUILD" != "false"]) + +]) + +AC_DEFUN([GPKG_CHECK_LINUX], +[ + # effective_target has to be determined in advance + AC_REQUIRE([AC_NEED_BYTEORDER_H]) + + is_linux=false + case "$effective_target" in + *linux*) + is_linux=true + ;; + esac + AM_CONDITIONAL([HAVE_LINUX], ["$is_linux"]) + + # required for docdir + # FIXME: Implicit dependency + # AC_REQUIRE(GP_CHECK_DOC_DIR) + + AC_ARG_WITH([hotplug-doc-dir], + [AS_HELP_STRING([--with-hotplug-doc-dir=PATH], + [Where to install hotplug scripts as docs [default=autodetect]])]) + + if "$is_linux"; then + AC_MSG_CHECKING([for hotplug doc dir]) + if test "x${with_hotplug_doc_dir}" != "x" + then # given as parameter + hotplugdocdir="${with_hotplug_doc_dir}" + AC_MSG_RESULT([${hotplugdocdir} (from parameter)]) + else # start at docdir + hotplugdocdir="${docdir}/linux-hotplug" + AC_MSG_RESULT([${hotplugdocdir} (default)]) + fi + else + hotplugdocdir="" + fi + + AC_ARG_WITH([hotplug-usermap-dir], + [AS_HELP_STRING([--with-hotplug-usermap-dir=PATH], + [Where to install hotplug scripts as docs [default=autodetect]])]) + + if "$is_linux"; then + AC_MSG_CHECKING([for hotplug usermap dir]) + if test "x${with_hotplug_usermap_dir}" != "x" + then # given as parameter + hotplugusermapdir="${with_hotplug_usermap_dir}" + AC_MSG_RESULT([${hotplugusermapdir} (from parameter)]) + else # start at docdir + hotplugusermapdir="${docdir}/linux-hotplug" + AC_MSG_RESULT([${hotplugusermapdir} (default)]) + fi + else + hotplugusermapdir="" + fi + + # Let us hope that automake does not create "" directories + # on non-Linux systems now. + AC_SUBST([hotplugdocdir]) + AC_SUBST([hotplugusermapdir]) +]) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-references.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-references.m4 new file mode 100644 index 00000000..71ff4477 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-references.m4 @@ -0,0 +1,48 @@ +dnl +dnl Define external references +dnl +dnl Define once, use many times. +dnl No more URLs and Mail addresses in translated strings and stuff. +dnl + +AC_DEFUN([GP_REF],[ +AC_SUBST([$1],["$2"]) +AC_DEFINE_UNQUOTED([$1],["$2"],[$3]) +]) + +AC_DEFUN([GP_REFERENCES], +[ + +GP_REF( [URL_GPHOTO_HOME], + [http://www.gphoto.org/], + [gphoto project home page])dnl + +GP_REF( [URL_GPHOTO_PROJECT], + [https://github.com/gphoto], + [gphoto github project page]) + +GP_REF( [URL_DIGICAM_LIST], + [http://www.teaser.fr/~hfiguiere/linux/digicam.html], + [camera list with support status]) + +GP_REF( [URL_JPHOTO_HOME], + [http://jphoto.sourceforge.net/], + [jphoto home page]) + +GP_REF( [URL_USB_MASSSTORAGE], + [http://www.linux-usb.org/USB-guide/x498.html], + [information about using USB mass storage]) + +GP_REF( [MAIL_GPHOTO_DEVEL], + [], + [gphoto development mailing list]) + +GP_REF( [MAIL_GPHOTO_USER], + [], + [gphoto user mailing list]) + +GP_REF( [MAIL_GPHOTO_TRANSLATION], + [], + [gphoto translation mailing list]) + +]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-stdint.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-stdint.m4 new file mode 100644 index 00000000..d3e59249 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-stdint.m4 @@ -0,0 +1,732 @@ +dnl AC_NEED_STDINT_H ( HEADER-TO-GENERATE ) +dnl Originally written 2001 by Dan Fandrich +dnl My contribution is hereby placed into the public domain. +dnl No warranty is expressed or implied. +dnl +dnl Look for a header file that defines size-specific integer types like the +dnl ones recommended to be in stdint.h in the C99 standard (e.g. uint32_t). +dnl This is a dumbed-down version of the macro of the same name in the file +dnl ac_need_stdint_h.m4 which is part of the ac-archive, available at +dnl (also, another macro +dnl AC_CREATE_STDINT_H by the same author). This version is not as smart, +dnl but works on older autoconf versions and has a different license. + +dnl AX_CHECK_DEFINED_TYPE ( TYPE, FILE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND ) +dnl This is similar to _AC_CHECK_TYPE_NEW (a.k.a. new syntax version of +dnl AC_CHECK_TYPE) in autoconf 2.50 but works on older versions +AC_DEFUN([AX_CHECK_DEFINED_TYPE], +[AC_MSG_CHECKING([for $1 in $2]) +AC_EGREP_CPP(changequote(<<,>>)dnl +<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl +changequote([,]), [#include <$2>], +ac_cv_type_$1=yes, ac_cv_type_$1=no)dnl +AC_MSG_RESULT($ac_cv_type_$1) +if test $ac_cv_type_$1 = yes; then + $3 +else + $4 +fi +]) + +dnl Look for a header file that defines size-specific integer types +AC_DEFUN([AX_NEED_STDINT_H], +[ +ac_dir=`AS_DIRNAME(["$1"])` +if test "$ac_dir" != "$1" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && AS_MKDIR_P(["$ac_dir"]) +fi + +AX_CHECK_DEFINED_TYPE(uint8_t, +stdint.h, +[ +cat > "$1" < +EOF], +[AX_CHECK_DEFINED_TYPE(uint8_t, +inttypes.h, +[cat > "$1" < +EOF], +[AX_CHECK_DEFINED_TYPE(uint8_t, +sys/types.h, +[cat > "$1" < +EOF], +[AX_CHECK_DEFINED_TYPE(u_int8_t, +sys/types.h, +[cat > "$1" < +typedef u_int8_t uint8_t; +typedef u_int16_t uint16_t; +typedef u_int32_t uint32_t; +EOF + +AX_CHECK_DEFINED_TYPE(u_int64_t, +sys/types.h, +[cat >> "$1" <> "$1" <]) + AC_CHECK_TYPE(uint64_t,[and64="/uint64_t"],[and64=""],[#include<$i>]) + m4_ifvaln([$1],[$1]) break + done + AC_MSG_CHECKING([for stdint uintptr_t]) + ]) +]) + +AC_DEFUN([AX_CHECK_HEADER_STDINT_O],[ +AC_CACHE_CHECK([for stdint uint32_t], [ac_cv_header_stdint_o],[ + ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) + AC_MSG_RESULT([(..)]) + for i in m4_ifval([$1],[$1],[inttypes.h sys/inttypes.h stdint.h]) ; do + unset ac_cv_type_uint32_t + unset ac_cv_type_uint64_t + AC_CHECK_TYPE(uint32_t,[ac_cv_header_stdint_o=$i],continue,[#include <$i>]) + AC_CHECK_TYPE(uint64_t,[and64="/uint64_t"],[and64=""],[#include<$i>]) + m4_ifvaln([$1],[$1]) break + break; + done + AC_MSG_CHECKING([for stdint uint32_t]) + ]) +]) + +AC_DEFUN([AX_CHECK_HEADER_STDINT_U],[ +AC_CACHE_CHECK([for stdint u_int32_t], [ac_cv_header_stdint_u],[ + ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) + AC_MSG_RESULT([(..)]) + for i in m4_ifval([$1],[$1],[sys/types.h inttypes.h sys/inttypes.h]) ; do + unset ac_cv_type_u_int32_t + unset ac_cv_type_u_int64_t + AC_CHECK_TYPE(u_int32_t,[ac_cv_header_stdint_u=$i],continue,[#include <$i>]) + AC_CHECK_TYPE(u_int64_t,[and64="/u_int64_t"],[and64=""],[#include<$i>]) + m4_ifvaln([$1],[$1]) break + break; + done + AC_MSG_CHECKING([for stdint u_int32_t]) + ]) +]) + +AC_DEFUN([AX_CREATE_STDINT_H], +[# ------ AX CREATE STDINT H ------------------------------------- +AC_MSG_CHECKING([for stdint types]) +ac_stdint_h=`echo ifelse($1, , _stdint.h, $1)` +# try to shortcircuit - if the default include path of the compiler +# can find a "stdint.h" header then we assume that all compilers can. +AC_CACHE_VAL([ac_cv_header_stdint_t],[ +old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" +old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" +old_CFLAGS="$CFLAGS" ; CFLAGS="" +AC_TRY_COMPILE([#include ],[int_least32_t v = 0;], +[ac_cv_stdint_result="(assuming C99 compatible system)" + ac_cv_header_stdint_t="stdint.h"; ], +[ac_cv_header_stdint_t=""]) +CXXFLAGS="$old_CXXFLAGS" +CPPFLAGS="$old_CPPFLAGS" +CFLAGS="$old_CFLAGS" ]) + +v="... $ac_cv_header_stdint_h" +if test "$ac_stdint_h" = "stdint.h" ; then + AC_MSG_RESULT([(are you sure you want them in ./stdint.h?)]) +elif test "$ac_stdint_h" = "inttypes.h" ; then + AC_MSG_RESULT([(are you sure you want them in ./inttypes.h?)]) +elif test "_$ac_cv_header_stdint_t" = "_" ; then + AC_MSG_RESULT([(putting them into $ac_stdint_h)$v]) +else + ac_cv_header_stdint="$ac_cv_header_stdint_t" + AC_MSG_RESULT([$ac_cv_header_stdint (shortcircuit)]) +fi + +if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. + +dnl .....intro message done, now do a few system checks..... +dnl btw, all old CHECK_TYPE macros do automatically "DEFINE" a type, +dnl therefore we use the autoconf implementation detail CHECK_TYPE_NEW +dnl instead that is triggered with 3 or more arguments (see types.m4) + +inttype_headers=`echo $2 | sed -e 's/,/ /g'` + +ac_cv_stdint_result="(no helpful system typedefs seen)" +AX_CHECK_HEADER_STDINT_X(dnl + stdint.h inttypes.h sys/inttypes.h $inttype_headers, + ac_cv_stdint_result="(seen uintptr_t$and64 in $i)") + +if test "_$ac_cv_header_stdint_x" = "_" ; then +AX_CHECK_HEADER_STDINT_O(dnl, + inttypes.h sys/inttypes.h stdint.h $inttype_headers, + ac_cv_stdint_result="(seen uint32_t$and64 in $i)") +fi + +if test "_$ac_cv_header_stdint_x" = "_" ; then +if test "_$ac_cv_header_stdint_o" = "_" ; then +AX_CHECK_HEADER_STDINT_U(dnl, + sys/types.h inttypes.h sys/inttypes.h $inttype_headers, + ac_cv_stdint_result="(seen u_int32_t$and64 in $i)") +fi fi + +dnl if there was no good C99 header file, do some typedef checks... +if test "_$ac_cv_header_stdint_x" = "_" ; then + AC_MSG_CHECKING([for stdint datatype model]) + AC_MSG_RESULT([(..)]) + AX_CHECK_DATA_MODEL +fi + +if test "_$ac_cv_header_stdint_x" != "_" ; then + ac_cv_header_stdint="$ac_cv_header_stdint_x" +elif test "_$ac_cv_header_stdint_o" != "_" ; then + ac_cv_header_stdint="$ac_cv_header_stdint_o" +elif test "_$ac_cv_header_stdint_u" != "_" ; then + ac_cv_header_stdint="$ac_cv_header_stdint_u" +else + ac_cv_header_stdint="stddef.h" +fi + +AC_MSG_CHECKING([for extra inttypes in chosen header]) +AC_MSG_RESULT([($ac_cv_header_stdint)]) +dnl see if int_least and int_fast types are present in _this_ header. +unset ac_cv_type_int_least32_t +unset ac_cv_type_int_fast32_t +AC_CHECK_TYPE(int_least32_t,,,[#include <$ac_cv_header_stdint>]) +AC_CHECK_TYPE(int_fast32_t,,,[#include<$ac_cv_header_stdint>]) +AC_CHECK_TYPE(intmax_t,,,[#include <$ac_cv_header_stdint>]) + +fi # shortcircut to system "stdint.h" +# ------------------ PREPARE VARIABLES ------------------------------ +if test "$GCC" = "yes" ; then +ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` +else +ac_cv_stdint_message="using $CC" +fi + +AC_MSG_RESULT([make use of $ac_cv_header_stdint in $ac_stdint_h dnl +$ac_cv_stdint_result]) + +dnl ----------------------------------------------------------------- +# ----------------- DONE inttypes.h checks START header ------------- +AC_CONFIG_COMMANDS([$ac_stdint_h],[ +AC_MSG_NOTICE(creating $ac_stdint_h : $_ac_stdint_h) +ac_stdint=$tmp/_stdint.h + +echo "#ifndef" $_ac_stdint_h >$ac_stdint +echo "#define" $_ac_stdint_h "1" >>$ac_stdint +echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint +echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint +echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint +if test "_$ac_cv_header_stdint_t" != "_" ; then +echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint +echo "#include " >>$ac_stdint +echo "#endif" >>$ac_stdint +echo "#endif" >>$ac_stdint +else + +cat >>$ac_stdint < +#else +#include + +/* .................... configured part ............................ */ + +STDINT_EOF + +echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint +if test "_$ac_cv_header_stdint_x" != "_" ; then + ac_header="$ac_cv_header_stdint_x" + echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint +else + echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint +fi + +echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint +if test "_$ac_cv_header_stdint_o" != "_" ; then + ac_header="$ac_cv_header_stdint_o" + echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint +else + echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint +fi + +echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint +if test "_$ac_cv_header_stdint_u" != "_" ; then + ac_header="$ac_cv_header_stdint_u" + echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint +else + echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint +fi + +echo "" >>$ac_stdint + +if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then + echo "#include <$ac_header>" >>$ac_stdint + echo "" >>$ac_stdint +fi fi + +echo "/* which 64bit typedef has been found */" >>$ac_stdint +if test "$ac_cv_type_uint64_t" = "yes" ; then +echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint +fi +if test "$ac_cv_type_u_int64_t" = "yes" ; then +echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint +fi +echo "" >>$ac_stdint + +echo "/* which type model has been detected */" >>$ac_stdint +if test "_$ac_cv_char_data_model" != "_" ; then +echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint +echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint +else +echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint +echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint +fi +echo "" >>$ac_stdint + +echo "/* whether int_least types were detected */" >>$ac_stdint +if test "$ac_cv_type_int_least32_t" = "yes"; then +echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint +fi +echo "/* whether int_fast types were detected */" >>$ac_stdint +if test "$ac_cv_type_int_fast32_t" = "yes"; then +echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint +fi +echo "/* whether intmax_t type was detected */" >>$ac_stdint +if test "$ac_cv_type_intmax_t" = "yes"; then +echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint +fi +echo "" >>$ac_stdint + + cat >>$ac_stdint <= 199901L +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef long long int64_t; +typedef unsigned long long uint64_t; + +#elif !defined __STRICT_ANSI__ +#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ +#define _HAVE_UINT64_T +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; + +#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ +/* note: all ELF-systems seem to have loff-support which needs 64-bit */ +#if !defined _NO_LONGLONG +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef long long int64_t; +typedef unsigned long long uint64_t; +#endif + +#elif defined __alpha || (defined __mips && defined _ABIN32) +#if !defined _NO_LONGLONG +typedef long int64_t; +typedef unsigned long uint64_t; +#endif + /* compiler/cpu type to define int64_t */ +#endif +#endif +#endif + +#if defined _STDINT_HAVE_U_INT_TYPES +/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ +typedef u_int8_t uint8_t; +typedef u_int16_t uint16_t; +typedef u_int32_t uint32_t; + +/* glibc compatibility */ +#ifndef __int8_t_defined +#define __int8_t_defined +#endif +#endif + +#ifdef _STDINT_NEED_INT_MODEL_T +/* we must guess all the basic types. Apart from byte-adressable system, */ +/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ +/* (btw, those nibble-addressable systems are way off, or so we assume) */ + +dnl /* have a look at "64bit and data size neutrality" at */ +dnl /* http://unix.org/version2/whatsnew/login_64bit.html */ +dnl /* (the shorthand "ILP" types always have a "P" part) */ + +#if defined _STDINT_BYTE_MODEL +#if _STDINT_LONG_MODEL+0 == 242 +/* 2:4:2 = IP16 = a normal 16-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned long uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef long int32_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 +/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */ +/* 4:4:4 = ILP32 = a normal 32-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef int int32_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 +/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */ +/* 4:8:8 = LP64 = a normal 64-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef int int32_t; +#endif +/* this system has a "long" of 64bit */ +#ifndef _HAVE_UINT64_T +#define _HAVE_UINT64_T +typedef unsigned long uint64_t; +typedef long int64_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 448 +/* LLP64 a 64-bit system derived from a 32-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef int int32_t; +#endif +/* assuming the system has a "long long" */ +#ifndef _HAVE_UINT64_T +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef unsigned long long uint64_t; +typedef long long int64_t; +#endif +#else +#define _STDINT_NO_INT32_T +#endif +#else +#define _STDINT_NO_INT8_T +#define _STDINT_NO_INT32_T +#endif +#endif + +/* + * quote from SunOS-5.8 sys/inttypes.h: + * Use at your own risk. As of February 1996, the committee is squarely + * behind the fixed sized types; the "least" and "fast" types are still being + * discussed. The probability that the "fast" types may be removed before + * the standard is finalized is high enough that they are not currently + * implemented. + */ + +#if defined _STDINT_NEED_INT_LEAST_T +typedef int8_t int_least8_t; +typedef int16_t int_least16_t; +typedef int32_t int_least32_t; +#ifdef _HAVE_UINT64_T +typedef int64_t int_least64_t; +#endif + +typedef uint8_t uint_least8_t; +typedef uint16_t uint_least16_t; +typedef uint32_t uint_least32_t; +#ifdef _HAVE_UINT64_T +typedef uint64_t uint_least64_t; +#endif + /* least types */ +#endif + +#if defined _STDINT_NEED_INT_FAST_T +typedef int8_t int_fast8_t; +typedef int int_fast16_t; +typedef int32_t int_fast32_t; +#ifdef _HAVE_UINT64_T +typedef int64_t int_fast64_t; +#endif + +typedef uint8_t uint_fast8_t; +typedef unsigned uint_fast16_t; +typedef uint32_t uint_fast32_t; +#ifdef _HAVE_UINT64_T +typedef uint64_t uint_fast64_t; +#endif + /* fast types */ +#endif + +#ifdef _STDINT_NEED_INTMAX_T +#ifdef _HAVE_UINT64_T +typedef int64_t intmax_t; +typedef uint64_t uintmax_t; +#else +typedef long intmax_t; +typedef unsigned long uintmax_t; +#endif +#endif + +#ifdef _STDINT_NEED_INTPTR_T +#ifndef __intptr_t_defined +#define __intptr_t_defined +/* we encourage using "long" to store pointer values, never use "int" ! */ +#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 +typedef unsinged int uintptr_t; +typedef int intptr_t; +#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 +typedef unsigned long uintptr_t; +typedef long intptr_t; +#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T +typedef uint64_t uintptr_t; +typedef int64_t intptr_t; +#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ +typedef unsigned long uintptr_t; +typedef long intptr_t; +#endif +#endif +#endif + +/* The ISO C99 standard specifies that in C++ implementations these + should only be defined if explicitly requested. */ +#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS +#ifndef UINT32_C + +/* Signed. */ +# define INT8_C(c) c +# define INT16_C(c) c +# define INT32_C(c) c +# ifdef _HAVE_LONGLONG_UINT64_T +# define INT64_C(c) c ## L +# else +# define INT64_C(c) c ## LL +# endif + +/* Unsigned. */ +# define UINT8_C(c) c ## U +# define UINT16_C(c) c ## U +# define UINT32_C(c) c ## U +# ifdef _HAVE_LONGLONG_UINT64_T +# define UINT64_C(c) c ## UL +# else +# define UINT64_C(c) c ## ULL +# endif + +/* Maximal type. */ +# ifdef _HAVE_LONGLONG_UINT64_T +# define INTMAX_C(c) c ## L +# define UINTMAX_C(c) c ## UL +# else +# define INTMAX_C(c) c ## LL +# define UINTMAX_C(c) c ## ULL +# endif + + /* literalnumbers */ +#endif +#endif + +/* These limits are merily those of a two complement byte-oriented system */ + +/* Minimum of signed integral types. */ +# define INT8_MIN (-128) +# define INT16_MIN (-32767-1) +# define INT32_MIN (-2147483647-1) +# define INT64_MIN (-__INT64_C(9223372036854775807)-1) +/* Maximum of signed integral types. */ +# define INT8_MAX (127) +# define INT16_MAX (32767) +# define INT32_MAX (2147483647) +# define INT64_MAX (__INT64_C(9223372036854775807)) + +/* Maximum of unsigned integral types. */ +# define UINT8_MAX (255) +# define UINT16_MAX (65535) +# define UINT32_MAX (4294967295U) +# define UINT64_MAX (__UINT64_C(18446744073709551615)) + +/* Minimum of signed integral types having a minimum size. */ +# define INT_LEAST8_MIN INT8_MIN +# define INT_LEAST16_MIN INT16_MIN +# define INT_LEAST32_MIN INT32_MIN +# define INT_LEAST64_MIN INT64_MIN +/* Maximum of signed integral types having a minimum size. */ +# define INT_LEAST8_MAX INT8_MAX +# define INT_LEAST16_MAX INT16_MAX +# define INT_LEAST32_MAX INT32_MAX +# define INT_LEAST64_MAX INT64_MAX + +/* Maximum of unsigned integral types having a minimum size. */ +# define UINT_LEAST8_MAX UINT8_MAX +# define UINT_LEAST16_MAX UINT16_MAX +# define UINT_LEAST32_MAX UINT32_MAX +# define UINT_LEAST64_MAX UINT64_MAX + + /* shortcircuit*/ +#endif + /* once */ +#endif +#endif +STDINT_EOF +fi + if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then + AC_MSG_NOTICE([$ac_stdint_h is unchanged]) + else + ac_dir=`AS_DIRNAME(["$ac_stdint_h"])` + AS_MKDIR_P(["$ac_dir"]) + rm -f $ac_stdint_h + mv $ac_stdint $ac_stdint_h + fi +],[# variables for create stdint.h replacement +PACKAGE="$PACKAGE" +VERSION="$VERSION" +ac_stdint_h="$ac_stdint_h" +_ac_stdint_h=AS_TR_CPP(_$PACKAGE-$ac_stdint_h) +ac_cv_stdint_message="$ac_cv_stdint_message" +ac_cv_header_stdint_t="$ac_cv_header_stdint_t" +ac_cv_header_stdint_x="$ac_cv_header_stdint_x" +ac_cv_header_stdint_o="$ac_cv_header_stdint_o" +ac_cv_header_stdint_u="$ac_cv_header_stdint_u" +ac_cv_type_uint64_t="$ac_cv_type_uint64_t" +ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" +ac_cv_char_data_model="$ac_cv_char_data_model" +ac_cv_long_data_model="$ac_cv_long_data_model" +ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" +ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" +ac_cv_type_intmax_t="$ac_cv_type_intmax_t" +]) +]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-subpackage.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-subpackage.m4 new file mode 100644 index 00000000..afabd8b1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-subpackage.m4 @@ -0,0 +1,5 @@ +AC_DEFUN([GP_SUBPACKAGE], +[ +AC_ARG_VAR([enable_subpackage_][$1], [enable subpackage ][$1][ (true or false)]) +test "x${[enable_subpackage_][$1]}" = "x" && [enable_subpackage_][$1]=true +])dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-udev.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-udev.m4 new file mode 100644 index 00000000..ef5ecb52 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-udev.m4 @@ -0,0 +1,9 @@ +dnl Determines whether UDEV code should be compiled. +dnl $1 contains shell code that returns 0 if all other prerequisites (like +dnl libusb) are available. +AC_DEFUN([GP_UDEV],[dnl +if test "x${udevscriptdir}" = "x"; then udevscriptdir="\${libdir}/udev"; fi +AC_ARG_VAR([udevscriptdir],[Directory where udev scripts like check-ptp-camera will be installed]) +AC_SUBST([udevscriptdir]) +AM_CONDITIONAL([HAVE_UDEV],[if echo "$host"|grep -i linux >/dev/null ; then $1; fi ]) +])dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-va-copy.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-va-copy.m4 new file mode 100644 index 00000000..8b1ac85c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gp-va-copy.m4 @@ -0,0 +1,57 @@ +dnl @synopsis GP_VA_COPY +dnl +dnl Checks whether one of these compiles and links: +dnl 1. va_copy() +dnl 2. __va_copy() +dnl 3. fallback +dnl +dnl In case of 1 or 2, AC_DEFINE(HAVE_VA_COPY). +dnl In case of 2, AC_DEFINE(va_copy,__va_copy) +dnl +dnl In code, use it like this +dnl #ifdef HAVE_VA_COPY +dnl ... code with va_copy ... +dnl #else +dnl ... code without va_copy or with error ... +dnl #endif +dnl +AC_DEFUN([GP_VA_COPY],[dnl +dnl +AC_CHECK_HEADER([stdarg.h],[],[ + AC_MSG_ERROR([ +Building $PACKAGE_NAME requires . +]) +]) +dnl +have_va_copy=no +AC_TRY_LINK([ + #include +],[ + va_list a,b; + va_copy(a,b); +],[ + have_va_copy="va_copy" +],[ + AC_TRY_LINK([ + #include + ],[ + va_list a,b; + __va_copy(a,b); + ],[ + have_va_copy="__va_copy" + AC_DEFINE([va_copy],[__va_copy],[__va_copy() was the originally proposed name]) + ]) +]) +dnl +AC_MSG_CHECKING([for va_copy() or replacement]) +AC_MSG_RESULT([$have_va_copy]) +dnl +if test "x$have_va_copy" != "xno"; then + AC_DEFINE([HAVE_VA_COPY],1,[Whether we have the va_copy() function]) +fi +])dnl +dnl +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gphoto-m4-sync b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gphoto-m4-sync new file mode 100644 index 00000000..f324d4df --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto-m4/gphoto-m4-sync @@ -0,0 +1,551 @@ +#!/usr/bin/env python3 +# +# Usage: gphoto-m4-sync [--diff] ... +# gphoto-m4-sync --help +# +# The gphoto-m4-sync script helps with keeping track of which files in +# which gphoto-m4 tree copy differ from the original gphoto-m4 tree. +# +# In normal operation, gphoto-m4-sync will search for gphoto-m4 +# directories anywhere in the directory trees given on the command +# line and compare the gphoto-m4 tree from which gphoto-m4-sync was +# started to those other trees. +# +# When not given a --diff options, gphoto-m4-sync will print a human +# readable report on which files are different in which gphoto-m4 +# tree. +# +# Options: +# +# --diff Print a list of 'diff' command lines to compare +# the different files instead. Pipe into something like +# "| sh | less" to execute. +# +# --help Print this help message. +# +# Exit code: +# +# 0 when no differences have been found among the gphoto-m4 trees +# 1 when any differences have been found among the gphoto-m4 trees +# 2 any other error + + +######################################################################## + + +import hashlib +import os +import sys + + +######################################################################## + + +class File(object): + + def __init__(self, tree, fname): + self.tree = tree + self.fname = fname + self.fpath = os.path.join(tree.top, fname) + + self.statinfo = os.stat(self.fpath) + + m = hashlib.sha1() + m.update(open(self.fpath, 'rb').read()) + self.digest = m.hexdigest() + + def __repr__(self): + return 'File(%s,%s)' % (repr(self.fname), repr(self.digest)) + + def __str__(self): + return '%s %s' % (self.digest, self.fname) + + +######################################################################## + + +class BaseTree(object): + + def __init__(self, top): + self.top = os.path.abspath(top) + self._files = self.__scan_files() + + def __repr__(self): + return '%s(%s)[%s]' % (self.__class__.__name__, self.top, self._files) + + def __iter__(self): + return sorted(self._files).__iter__() + + def __getitem__(self, key): + return self._files[key] + + def __scan_files(self): + files = {} + for dirpath, dirnames, filenames in os.walk(self.top, topdown=True): + try: # do not descend into these directories + dirnames.remove('.git') + except ValueError: + pass + + for fname in filenames: + # Ignore a bunch of files + if fname[-1] == '~': + continue + if fname.startswith('.git'): + continue + if fname in ['Makefile.in', 'Makefile']: + continue + + abs_fname = os.path.join(dirpath, fname) + rel_fname = os.path.relpath(abs_fname, start=self.top) + + files[rel_fname] = File(self, rel_fname) + return files + + +######################################################################## + + +class GitTree(BaseTree): + + def __init__(self, top): + path = os.path.join(top, '.git') + if not os.path.exists(path): + raise AssertionError("File or directory does not exist: %s" % + repr(path)) + super(GitTree, self).__init__(top) + + +######################################################################## + + +class NotGitTree(BaseTree): + + def __init__(self, top): + path = os.path.join(top, '.git') + if os.path.exists(path): + raise AssertionError("File or directory does exist: %s" % + repr(path)) + super(NotGitTree, self).__init__(top) + + +######################################################################## + + +def scan_tree(top): + for dirpath, dirnames, filenames in os.walk(top): + if os.path.basename(dirpath) == 'gphoto-m4': + if 'gp-camlibs.m4' not in filenames: + continue + yield (dirpath, NotGitTree(dirpath)) + + +######################################################################## + + +def print_help(): + skip_line = True + skip_lines = ['#', '# '] + for line in open(__file__, 'r'): + if line[-1] == '\n': + line = line[:-1] + + if line.startswith('#!'): + continue + elif skip_line and (line in skip_lines): + continue + elif skip_line and (line not in skip_lines): + skip_line = False + elif line == '': + break + + if not skip_line: + print(line[2:]) + + +######################################################################## + + +class ResultTable(object): + + def __init__(self): + self.lines = {} + self.files_with_differences = 0 + self.differences = 0 + + def __setitem__(self, key, value): + assert(key not in self.lines) + self.lines[key] = value + if value.file_versions > 0: + self.files_with_differences += 1 + self.differences += value.file_versions + + def __getitem__(self, key): + assert(self.files_with_differences != None) + return self.lines[key] + + def items(self): + for k in sorted(self.lines.keys()): + v = self.lines[k] + yield k,v + + def close(self): + pass + + +######################################################################## + + +class ResultLine(object): + + def __init__(self, fname): + self.fname = fname + + self.__digest_map = {} + self.__digests = {} + self.__digest_list = None + + self.__flags = {} + + self.__fpaths = {} + + def set_digest(self, index, digest): + self.__digest_map[index] = digest + self.__digests[digest] = True + + def close(self, file_versions): + self.file_versions = file_versions + self.__digest_list = sorted(self.__digests.keys()) + assert(len(self.__digest_list) > 0) + if file_versions == 0: + # All files are equal, so we do not need different characters + # to distinguish different digest values - a space will do as + # well. + self.__digest_map = {} + + def get_digest(self, index): + if self.__digest_list == None: + raise RuntimeError("You need to call ResultLine.close() before Result_Line.get_digest()") + if index in self.__digest_map: + dig = self.__digest_map[index] + idx = self.__digest_list.index(dig) + return 'abcdefghijklmnopqrstuvwxyz'[idx] + else: + return ' ' + + def set_flag(self, index, flag, fpath): + self.__flags[index] = flag + self.__fpaths[index] = fpath + + def get_flag(self, index): + return self.__flags[index] + + def get_fpath(self, index): + return self.__fpaths[index] + + +######################################################################## + + +def cmd_print_report(result_table, all_files, treelist, trees): + # Enumerate list of trees + print("Trees (0 is the original tree):") + for i, tree in enumerate(treelist): + print(" %d. %s" % (i,tree)) + print() + + # Determine maximum length of file name + fn_maxlen = 0 + for fn in all_files: + if len(fn) > fn_maxlen: + fn_maxlen = len(fn) + + fmt = " %%-%ds " % fn_maxlen + print("File table:") + + # print table head + print(fmt % '', end='') + print((' {0:-^%d}' % (3*len(treelist)-1)).format('Tree')) + print(fmt % 'file name', end='') + for i, tree in enumerate(treelist): + print(' %2d' % i, end='') + print(' file diffs') + sep_line = (' ' + + '-' * (fn_maxlen + 1 + 3*len(treelist) + 2 + len('file diffs'))) + print(sep_line) + + # print table body + for fname in sorted(all_files): + result_line = result_table[fname] + print(fmt % fname, end='') + print(" %s%s" % (result_line.get_flag(0), + result_line.get_digest(0)), end='') + + for tree_idx, tree_top in enumerate(sorted(trees.keys()), start=1): + tree = trees[tree_top] + print(" %s%s" % (result_line.get_flag(tree_idx), + result_line.get_digest(tree_idx)), end='') + + if result_line.file_versions > 0: + print(' %3d' % result_line.file_versions) + else: + print(' ok') + print(sep_line) + print() + + print("Legend:") + legend = [ + ('N', 'new file'), + ('O', 'original file'), + ('/', 'no such file'), + ('=', 'same content as the original file'), + ('<', 'file with different content is younger than original file'), + ('>', 'file with different content is older than original file'), + ] + for ch, descr in legend: + print(" %s %s" % (ch, descr)) + print(" ") + print(" Small letters identify file contents: Same letter means same content.") + print() + + # Determine exit code + exit_code = 0 + if result_table.differences > 0: + exit_code = 1 + + # Print summary + print("Summary:") + if result_table.differences > 0: + print(" About %d difference(s) found in %d file(s)." % + (result_table.differences, result_table.files_with_differences)) + print(" ") + print(" Diff commands for comparing differing files can be obtained with the") + print(" '--diff' option.") + else: + print(" All gphoto-m4 trees are equal.") + + # Finally exit. + sys.exit(exit_code) + + +######################################################################## + + +def print_diff_commands(diff_commands): + print("#!/bin/sh") + print("#") + print("# This file has been autogenerated by %s" % __file__) + print("#") + print("# List of diff commands. You can pipe these into") + print("# | sh | colordiff | less -r '+/comparing '") + print("# or") + print("# | sh | less '+/^comparing '") + print("# or") + print("# | less") + for fname, orig_dig, other_dig, orig_fpath, other_fpath in diff_commands: + if orig_fpath: + orig_label = "%s (digest '%s')" % (orig_fpath, orig_dig) + else: + orig_fpath = '/dev/null' + orig_label = '(no such file)' + + if other_dig: + other_label = "%s (digest '%s')" % (other_fpath, other_dig) + else: + other_label = other_fpath + + print() + print("""echo 'comparing fname %s'""" % fname) + print("""diff -u --label "%s" %s --label "%s" %s""" + % (orig_label, orig_fpath, + other_label, other_fpath)) + + +######################################################################## + + +def gphoto_m4_sync(dir_list, print_diffs): + + # List all files in this clone of the `gphoto-m4` repository + orig_top = os.path.dirname(os.path.abspath(__file__)) + orig_tree = GitTree(orig_top) + + # For each `gphoto-m4` directory given on the command line, find + # all files. + trees = {} + for top in dir_list: + for dirpath, tree in scan_tree(os.path.abspath(top)): + trees[dirpath] = tree + + if len(trees) == 0: + print("No gphoto-m4 trees found in directories given on command line.") + sys.exit(2) + + + # Make a list of all files within all `gphoto-m4` trees + all_files = {} + for i in orig_tree: + all_files[i] = True + for tree in trees.values(): + for i in tree: + all_files[i] = True + all_files = sorted(all_files.keys()) + + # calculate table values + diff_params = [] + result_table = ResultTable() + for fname in sorted(all_files): + result_line = ResultLine(fname) + file_diffs = 0 + if fname in orig_tree: + result_line.set_flag(0, 'O', orig_tree[fname].fpath) + orig_dig = orig_tree[fname].digest + result_line.set_digest(0, orig_dig) + else: + result_line.set_flag(0, '/', None) + orig_dig = None + + comp_digs = {} + for tree_idx, tree_top in enumerate(sorted(trees.keys()), start=1): + tree = trees[tree_top] + if fname in tree: + dig = tree[fname].digest + flag = 'N' + if orig_dig == dig: + flag = '=' + elif orig_dig: + if tree[fname].statinfo.st_mtime > orig_tree[fname].statinfo.st_mtime: + flag = '>' + elif tree[fname].statinfo.st_mtime < orig_tree[fname].statinfo.st_mtime: + flag = '<' + result_line.set_digest(tree_idx, dig) + else: + flag = '/' + + if fname in tree: + _fpath = tree[fname].fpath + else: + _fpath = None + result_line.set_flag(tree_idx, flag, _fpath) + + if orig_dig: + if result_line.get_flag(tree_idx) != '=': + file_diffs += 1 + else: + if result_line.get_flag(tree_idx) != '/': + file_diffs += 1 + + result_line.close(file_diffs) + del file_diffs + result_table[fname] = result_line + result_table.close() + + if False: + # Diff all files - (some comparisons are unnecessary) + for fname in sorted(all_files): + result_line = result_table[fname] + orig_dig = result_line.get_digest(0) + orig_fpath = result_line.get_fpath(0) + for tree_idx, tree_top in enumerate(sorted(trees.keys()), start=1): + tree = trees[tree_top] + if result_line.get_flag(0) == 'O': + if result_line.get_flag(tree_idx) not in ['=', '/']: + diff_params.append((fname, + orig_fpath, orig_dig, + result_line.get_fpath(tree_idx), + result_line.get_digest(tree_idx))) + else: + if result_line.get_flag(tree_idx) != '/': + diff_params.append((fname, + None, None, + result_line.get_fpath(tree_idx), + None)) + + # Print report + if not print_diffs: + cmd_print_report(result_table, all_files, + [orig_top] + sorted(trees.keys()), + trees) + + # Print diffs + if print_diffs: + # print("# Calculate minimum set of diff commands:") + diff_commands = [] + for fname, result_line in result_table.items(): + line_flags = [] + if result_line.file_versions > 0: + # print("# -", fname) + all_trees = [orig_tree] + [ trees[k] for k in sorted(trees.keys()) ] + for idx_a in range(len(all_trees)): + tree_a = all_trees[idx_a] + dig_a = result_line.get_digest(idx_a) + if dig_a == ' ': + continue + # print("# tree_a", tree_a) + for idx_b in range(len(all_trees)): + tree_b = all_trees[idx_b] + dig_b = result_line.get_digest(idx_b) + if dig_a == dig_b: + continue + if dig_b == ' ': + continue + # print("# tree_b", tree_b) + flag = (fname, dig_a, dig_b) + rev_flag = (fname, dig_b, dig_a) + if flag in line_flags: + pass + elif rev_flag in line_flags: + pass + else: + line_flags.append(flag) + cmd = (fname, dig_a, dig_b, + tree_a[fname].fpath, tree_b[fname].fpath) + diff_commands.append(cmd) + break + del line_flags + # print("#") + + print_diff_commands(diff_commands) + sys.exit(0) + + +####################################################################### + + +def main(args): + if (args == []): + print_help() + sys.exit(0) + + arg_diff = False + for i, arg in enumerate(args): + if arg == '--': + i += 1 + break + elif arg == '--help': + print_help() + sys.exit(0) + elif arg == '--diff': + arg_diff = True + elif arg.startswith('--'): + raise ValueError("Unhandled command line option '%s'" % arg) + else: + assert(arg[:2] != '--') + break + + dir_list = args[i:] + if False: + print("Arguments:", dir_list) + print() + + gphoto_m4_sync(dir_list, arg_diff) + + +######################################################################## + + +if __name__ == '__main__': + main(sys.argv[1:]) + + +######################################################################## diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2-config.in b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2-config.in new file mode 100644 index 00000000..b2f254d7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2-config.in @@ -0,0 +1,73 @@ +#! /bin/sh + +# leave these definitions here +# they are required for correct interpolation of +# @libdir@ and @includedir@ later on +prefix="@prefix@" +exec_prefix="@exec_prefix@" + +usage() +{ + cat < +#include +#include + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * Current implementation status of the camera driver. + */ +typedef enum { + GP_DRIVER_STATUS_PRODUCTION, /**< Driver is production ready. */ + GP_DRIVER_STATUS_TESTING, /**< Driver is beta quality. */ + GP_DRIVER_STATUS_EXPERIMENTAL, /**< Driver is alpha quality and might even not work. */ + GP_DRIVER_STATUS_DEPRECATED /**< Driver is no longer recommended to use and will be removed. */ +} CameraDriverStatus; + +/** + * Type of the device represented. Currently we have Still Cameras + * and MTP Audio Players. + */ +typedef enum { + GP_DEVICE_STILL_CAMERA = 0, /**< Traditional still camera */ + GP_DEVICE_AUDIO_PLAYER = 1 << 0 /**< Audio player */ +} GphotoDeviceType; + +/** + * A bitmask of remote control related operations of the device. + * Some drivers might support additional dynamic capabilities (like the PTP driver). + */ +typedef enum { + GP_OPERATION_NONE = 0, /**< No remote control operation supported. */ + GP_OPERATION_CAPTURE_IMAGE = 1 << 0, /**< Capturing images supported. */ + GP_OPERATION_CAPTURE_VIDEO = 1 << 1, /**< Capturing videos supported. */ + GP_OPERATION_CAPTURE_AUDIO = 1 << 2, /**< Capturing audio supported. */ + GP_OPERATION_CAPTURE_PREVIEW = 1 << 3, /**< Capturing image previews supported. */ + GP_OPERATION_CONFIG = 1 << 4, /**< Camera and Driver configuration supported. */ + GP_OPERATION_TRIGGER_CAPTURE = 1 << 5 /**< Camera can trigger capture and wait for events. */ +} CameraOperation; + +/** + * A bitmask of image related operations of the device. + */ +typedef enum { + GP_FILE_OPERATION_NONE = 0, /**< No special file operations, just download. */ + GP_FILE_OPERATION_DELETE = 1 << 1, /**< Deletion of files is possible. */ + GP_FILE_OPERATION_PREVIEW = 1 << 3, /**< Previewing viewfinder content is possible. */ + GP_FILE_OPERATION_RAW = 1 << 4, /**< Raw retrieval is possible (used by non-JPEG cameras) */ + GP_FILE_OPERATION_AUDIO = 1 << 5, /**< Audio retrieval is possible. */ + GP_FILE_OPERATION_EXIF = 1 << 6 /**< EXIF retrieval is possible. */ +} CameraFileOperation; + +/** + * A bitmask of filesystem related operations of the device. + */ +typedef enum { + GP_FOLDER_OPERATION_NONE = 0, /**< No special filesystem operation. */ + GP_FOLDER_OPERATION_DELETE_ALL = 1 << 0, /**< Deletion of all files on the device. */ + GP_FOLDER_OPERATION_PUT_FILE = 1 << 1, /**< Upload of files to the device possible. */ + GP_FOLDER_OPERATION_MAKE_DIR = 1 << 2, /**< Making directories on the device possible. */ + GP_FOLDER_OPERATION_REMOVE_DIR = 1 << 3 /**< Removing directories from the device possible. */ +} CameraFolderOperation; + +#ifdef _GPHOTO2_INTERNAL_CODE + + /* enum CameraOperation */ + extern const StringFlagItem gpi_camera_operation_map[]; + + /* enum CameraFileOperation */ + extern const StringFlagItem gpi_file_operation_map[]; + + /* enum CameraFolderOperation */ + extern const StringFlagItem gpi_folder_operation_map[]; + + /* enum GphotoDeviceType */ + extern const StringFlagItem gpi_gphoto_device_type_map[]; + + /* enum CameraDriverStatus */ + extern const StringFlagItem gpi_camera_driver_status_map[]; + +#endif /* _GPHOTO2_INTERNAL_CODE */ + + +/** + * \brief Describes the properties of a specific camera. + * + * The internals of this structures are used extensively by the + * camlibs, but the status regarding use by frontends is questionable. + */ +typedef struct { + char model [128]; /**< \brief name of camera model */ + CameraDriverStatus status; /**< \brief driver quality */ + + /** \brief Supported port types. */ + GPPortType port; + /** \brief Supported serial port speeds (terminated with a value of 0). */ + int speed [64]; + + /* Supported operations */ + CameraOperation operations; /**< \brief Camera operation funcs */ + CameraFileOperation file_operations; /**< \brief Camera file op funcs */ + CameraFolderOperation folder_operations;/**< \brief Camera folder op funcs */ + + int usb_vendor; /**< \brief USB Vendor D */ + int usb_product; /**< \brief USB Product ID */ + int usb_class; /**< \brief USB device class */ + int usb_subclass; /**< \brief USB device subclass */ + int usb_protocol; /**< \brief USB device protocol */ + + /* For core use */ + char library [1024]; /**< \brief (Internal) library filename */ + char id [1024]; /**< \brief (Internal) camera ID name */ + + GphotoDeviceType device_type; /**< \brief Device type. */ + /** Reserved space to use in the future w/out changing the + * struct size */ + int reserved2; /**< reserved space \internal */ + int reserved3; /**< reserved space \internal */ + int reserved4; /**< reserved space \internal */ + int reserved5; /**< reserved space \internal */ + int reserved6; /**< reserved space \internal */ + int reserved7; /**< reserved space \internal */ + int reserved8; /**< reserved space \internal */ +} CameraAbilities; + + +/** + * \brief List of supported camera models including their abilities + * + * The internals of this list are hidden - use the access functions. + */ +typedef struct _CameraAbilitiesList CameraAbilitiesList; + + +int gp_abilities_list_new (CameraAbilitiesList **list); +int gp_abilities_list_free (CameraAbilitiesList *list); + +int gp_abilities_list_load (CameraAbilitiesList *list, GPContext *context); +int gp_abilities_list_load_dir (CameraAbilitiesList *list, const char *dir, GPContext *context); +int gp_abilities_list_reset (CameraAbilitiesList *list); + +int gp_abilities_list_detect (CameraAbilitiesList *list, + GPPortInfoList *info_list, CameraList *l, + GPContext *context); + +int gp_abilities_list_append (CameraAbilitiesList *list, + CameraAbilities abilities); + +int gp_abilities_list_count (CameraAbilitiesList *list); + +int gp_abilities_list_lookup_model (CameraAbilitiesList *list, + const char *model); + +int gp_abilities_list_get_abilities (CameraAbilitiesList *list, int index, + CameraAbilities *abilities); + +const char *gp_message_codeset (const char *); + + +/** + * Name of the environment variable which may contain the path where + * to look for the camlibs. If this environment variable is not defined, + * use the compiled-in default constant. + * + * \internal Internal use only. + */ +#ifdef _GPHOTO2_INTERNAL_CODE +#define CAMLIBDIR_ENV "CAMLIBS" +#endif /* _GPHOTO2_INTERNAL_CODE */ + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_ABILITIES_LIST_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-camera.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-camera.h new file mode 100644 index 00000000..8f204745 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-camera.h @@ -0,0 +1,484 @@ +/** \file + * + * \brief Implement Camera object representing a camera attached to the system. + * + * \author Copyright 2000 Scott Fritzinger + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_CAMERA_H__ +#define __GPHOTO2_CAMERA_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * \brief Object representing a camera attached to the system. + * + * A Camera object represents a specific instance of a (physical of + * virtual) camera attached to the system. + * + * The abilities of this type of camera are stored in a CameraAbility + * object. + * + * The details of the Camera object are internal. + */ +typedef struct _Camera Camera; +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#include +#include + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * \brief CameraText structure used in various functions. + * + * A text structure containing translated text returned + * by various functions (about, manual, summary). You should + * not assume a size. + */ +typedef struct { + char text [32 * 1024]; /**< \brief Character string containing the translated text. */ +} CameraText; + +/** + * \brief A structure created by the capture operation. + * + * A structure containing the folder and filename of an object + * after a successful capture and is passed as reference to the + * gp_camera_capture() function. + */ +typedef struct { + char name [128]; /**< \brief Name of the captured file. */ + char folder [1024]; /**< \brief Name of the folder of the captured file. */ +} CameraFilePath; + +/** + * \brief Type of the capture to do. + * + * Specifies the type of capture the user wants to do with the + * gp_camera_capture() function. + */ +typedef enum { + GP_CAPTURE_IMAGE, /**< \brief Capture an image. */ + GP_CAPTURE_MOVIE, /**< \brief Capture a movie. */ + GP_CAPTURE_SOUND /**< \brief Capture audio. */ +} CameraCaptureType; + +/** + * \brief Specify what event we received from the camera. + * + * Used by gp_camera_wait_for_event() to specify what + * event happened on the camera. + * + */ +typedef enum { + GP_EVENT_UNKNOWN, /**< unknown and unhandled event. argument is a char* or NULL */ + GP_EVENT_TIMEOUT, /**< timeout, no arguments */ + GP_EVENT_FILE_ADDED, /**< CameraFilePath* = file path on camfs */ + GP_EVENT_FOLDER_ADDED, /**< CameraFilePath* = folder on camfs */ + GP_EVENT_CAPTURE_COMPLETE, /**< last capture is complete */ + GP_EVENT_FILE_CHANGED /**< CameraFilePath* = file path on camfs */ +} CameraEventType; + +/** + * \name Camera object member functions + * + * These functions must be implemented by a camlib and the camlib's + * camera_init() function will add them to a Camera object. + * + * @{ + */ +/** + * \brief The camera exit function + * + * \param camera the current camera + * \param context a #GPContext + * + * This functions is called in the camera driver for closing the camera + * connection. It should do the necessary cleanups of the internal camera + * state, free allocated private structures and similar. + * + * The driver does not need to close the #GPPort, this is done by libgphoto2 + * itself. + * + * Implement this function if you need to any of this stuff, otherwise leave + * it out. + * + * \returns a gphoto error code + */ +typedef int (*CameraExitFunc) (Camera *camera, GPContext *context); + +/** + * \brief Get a configuration tree for the camera and its driver + * + * \param camera the current camera + * \param widget pointer to store the toplevel widget of the tree + * \param context the active #GPContext + * + * A camera driver can support configuration of either its own behaviour + * or the camera device itself. To allow a flexible driver framework, + * the camera driver provides a generic configuration widget tree to the + * frontend, which then renders it, allows user input and sends it back + * via the #CameraSetConfigFunc function to have the driver configure itself + * or the camera. + * + * If you do not have configuration ability, there is no need to specify this + * function. + * + * \returns a gphoto error code + */ +typedef int (*CameraGetConfigFunc) (Camera *camera, CameraWidget **widget, + GPContext *context); +/** + * \brief Get a configuration widget for a specific configuration + * + * \param camera the current camera + * \param name the name of the widget + * \param widget pointer to store the toplevel widget of the tree + * \param context the active #GPContext + * + * A camera driver can support configuration of either its own behaviour + * or the camera device itself. To allow a flexible driver framework, + * the camera driver provides a generic configuration widget tree to the + * frontend, which then renders it, allows user input and sends it back + * via the #CameraSetConfigFunc function to have the driver configure itself + * or the camera. + * + * This specific function retrieves one specific named entry, and not the full + * tree to allow for querying specific settings faster. + * + * If you do not have configuration ability, there is no need to specify this + * function. + * + * \returns a gphoto error code + */ +typedef int (*CameraGetSingleConfigFunc) (Camera *camera, const char *name, CameraWidget **widget, + GPContext *context); +/** + * \brief List all configuration widgets for a specific configuration + * + * \param camera the current camera + * \param list the list of widgets available + * \param context the active #GPContext + * + * A camera driver can support configuration of either its own behaviour + * or the camera device itself. To allow a flexible driver framework, + * the camera driver provides a generic configuration widget tree to the + * frontend, which then renders it, allows user input and sends it back + * via the #CameraSetConfigFunc function to have the driver configure itself + * or the camera. + * + * This specific function retrieves all the available configuration values in a flat list. + * + * This is different than the GetConfigFunc, which returns a configuration tree. + * + * If you do not have configuration ability, there is no need to specify this + * function. + * + * \returns a gphoto error code + */ +typedef int (*CameraListConfigFunc) (Camera *camera, CameraList *list, GPContext *context); +/** + * \brief Set the configuration in the camera + * + * \param camera the current camera + * \param widget the configuration widget tree that was changed + * \param context the active #GPContext + * + * This function is called in the driver after the configuration is set. + * It is called directly after setting the value and might called multiple + * times (or never) after just one #CameraGetConfigFunc. + * + * \returns a gphoto error code + */ +typedef int (*CameraSetConfigFunc) (Camera *camera, CameraWidget *widget, + GPContext *context); +/** + * \brief Set a single configuration variable in the camera + * + * \param camera the current camera + * \param name the widget to set + * \param widget the configuration widget tree that was changed + * \param context the active #GPContext + * + * This function is called in the driver after the configuration value is set. + * + * \returns a gphoto error code + */ +typedef int (*CameraSetSingleConfigFunc) (Camera *camera, const char *name, CameraWidget *widget, + GPContext *context); + +typedef int (*CameraCaptureFunc) (Camera *camera, CameraCaptureType type, + CameraFilePath *path, GPContext *context); +typedef int (*CameraTriggerCaptureFunc) (Camera *camera, GPContext *context); +typedef int (*CameraCapturePreviewFunc) (Camera *camera, CameraFile *file, + GPContext *context); +typedef int (*CameraSummaryFunc) (Camera *camera, CameraText *text, + GPContext *context); +typedef int (*CameraManualFunc) (Camera *camera, CameraText *text, + GPContext *context); +typedef int (*CameraAboutFunc) (Camera *camera, CameraText *text, + GPContext *context); +typedef int (*CameraWaitForEvent) (Camera *camera, int timeout, + CameraEventType *eventtype, void **eventdata, + GPContext *context); +/**@}*/ + + +/** + * \param camera a \ref Camera object + * \param context a \ref GPContext object + * \return a gphoto2 error code + * + * Implement this function in the camera driver if the camera needs to + * be initialized before or reset the after each access from + * libgphoto2. + * + * For example, you would probably set the speed to the highest one + * right before downloading an image, and reset it to the default speed + * afterwards so that other programs will not be affected by this speed + * change. + */ +typedef int (*CameraPrePostFunc) (Camera *camera, GPContext *context); + +/** + * \brief Various camera specific functions. + * + * This structure contains various pointers to functions that apply to + * the camera itself, and not the filesystem (which is handled by the + * filesystem functions). Set the ones you want to provide, leave the rest + * unset. + * + * This structure should only used by the driver itself, the frontend + * should use the gp_camera_xxx wrapper functions for it, who handle + * opening and locking around those hooks. + */ +typedef struct _CameraFunctions { + CameraPrePostFunc pre_func; /**< \brief Function called before each camera operation. */ + CameraPrePostFunc post_func; /**< \brief Function called after each camera operation. */ + + CameraExitFunc exit; /**< \brief Function called on closing the camera. */ + + /* Configuration */ + CameraGetConfigFunc get_config; /**< \brief Called for requesting the configuration widgets. */ + CameraSetConfigFunc set_config; /**< \brief Called after a configuration was changed */ + + CameraListConfigFunc list_config; /**< \brief Called for listing the available configuration widgets. */ + CameraGetSingleConfigFunc get_single_config; /**< \brief Called for requesteing a single widget. */ + CameraSetSingleConfigFunc set_single_config; /**< \brief Called for setting a single configuration widget. */ + + /* Capturing */ + CameraCaptureFunc capture; /**< \brief Remote control the camera to capture */ + CameraTriggerCaptureFunc trigger_capture;/**< \brief Remote control the camera to trigger capture */ + CameraCapturePreviewFunc capture_preview;/**< \brief Preview viewfinder content. */ + + /* Textual information */ + CameraSummaryFunc summary; /**< \brief Give a summary about the current camera status, translated. */ + CameraManualFunc manual; /**< \brief Give a brief manual about any specific items a user has to know, translated. */ + CameraAboutFunc about; /**< \brief A little About text, including authors and credits. */ + + /* Event Interface */ + CameraWaitForEvent wait_for_event; /**< \brief Wait for a specific event from the camera */ + /* Reserved space to use in the future without changing the struct size */ + void *reserved1; /**< \brief reserved for future use */ + void *reserved2; /**< \brief reserved for future use */ + void *reserved3; /**< \brief reserved for future use */ + void *reserved4; /**< \brief reserved for future use */ + void *reserved5; /**< \brief reserved for future use */ + void *reserved6; /**< \brief reserved for future use */ + void *reserved7; /**< \brief reserved for future use */ + void *reserved8; /**< \brief reserved for future use */ +} CameraFunctions; + +typedef struct _CameraPrivateLibrary CameraPrivateLibrary; +typedef struct _CameraPrivateCore CameraPrivateCore; + +struct _Camera { + + /** \name Those should be accessed only by the camera driver. + * @{ */ + GPPort *port; + CameraFilesystem *fs; + CameraFunctions *functions; + /**@}*/ + + CameraPrivateLibrary *pl; /**< Private data of camera libraries. */ + CameraPrivateCore *pc; /**< Private data of the core of gphoto2. */ +}; + + +/** Create a new camera device. */ +int gp_camera_new (Camera **camera); + + +/** \name Preparing initialization + * @{ + */ +int gp_camera_set_abilities (Camera *camera, CameraAbilities abilities); +int gp_camera_get_abilities (Camera *camera, CameraAbilities *abilities); +int gp_camera_set_port_info (Camera *camera, GPPortInfo info); +int gp_camera_get_port_info (Camera *camera, GPPortInfo *info); + +/**@}*/ + + +/** + * \name camera speed + * + * You normally don't use that. If you do, you prevent the camera driver + * from selecting the optimal speed. + * + * @{ + */ +int gp_camera_set_port_speed (Camera *camera, int speed); +int gp_camera_get_port_speed (Camera *camera); + +/**@}*/ + + +/** \name Initialization + * @{ + */ +int gp_camera_autodetect (CameraList *list, GPContext *context); +int gp_camera_init (Camera *camera, GPContext *context); +int gp_camera_exit (Camera *camera, GPContext *context); + +/**@}*/ + + + +/** \name Operations on cameras + * @{ + */ +int gp_camera_ref (Camera *camera); +int gp_camera_unref (Camera *camera); +int gp_camera_free (Camera *camera); + +int gp_camera_get_config (Camera *camera, CameraWidget **window, + GPContext *context); +int gp_camera_list_config (Camera *camera, CameraList *list, + GPContext *context); +int gp_camera_get_single_config (Camera *camera, const char *name, CameraWidget **widget, + GPContext *context); +int gp_camera_set_config (Camera *camera, CameraWidget *window, + GPContext *context); +int gp_camera_set_single_config (Camera *camera, const char *name, CameraWidget *widget, + GPContext *context); +int gp_camera_get_summary (Camera *camera, CameraText *summary, + GPContext *context); +int gp_camera_get_manual (Camera *camera, CameraText *manual, + GPContext *context); +int gp_camera_get_about (Camera *camera, CameraText *about, + GPContext *context); +int gp_camera_capture (Camera *camera, CameraCaptureType type, + CameraFilePath *path, GPContext *context); +int gp_camera_trigger_capture (Camera *camera, GPContext *context); +int gp_camera_capture_preview (Camera *camera, CameraFile *file, + GPContext *context); +int gp_camera_wait_for_event (Camera *camera, int timeout, + CameraEventType *eventtype, void **eventdata, + GPContext *context); + +int gp_camera_get_storageinfo (Camera *camera, CameraStorageInformation**, + int *, GPContext *context); + +/**@}*/ + + +/** \name Operations on folders + * @{ + */ +int gp_camera_folder_list_files (Camera *camera, const char *folder, + CameraList *list, GPContext *context); +int gp_camera_folder_list_folders (Camera *camera, const char *folder, + CameraList *list, GPContext *context); +int gp_camera_folder_delete_all (Camera *camera, const char *folder, + GPContext *context); +int gp_camera_folder_put_file (Camera *camera, + const char *folder, const char *filename, + CameraFileType type, + CameraFile *file, GPContext *context); +int gp_camera_folder_make_dir (Camera *camera, const char *folder, + const char *name, GPContext *context); +int gp_camera_folder_remove_dir (Camera *camera, const char *folder, + const char *name, GPContext *context); +/**@}*/ + + +/** \name Operations on files + * @{ + */ +int gp_camera_file_get_info (Camera *camera, const char *folder, + const char *file, CameraFileInfo *info, + GPContext *context); +int gp_camera_file_set_info (Camera *camera, const char *folder, + const char *file, CameraFileInfo info, + GPContext *context); +int gp_camera_file_get (Camera *camera, const char *folder, + const char *file, CameraFileType type, + CameraFile *camera_file, GPContext *context); +int gp_camera_file_read (Camera *camera, const char *folder, const char *file, + CameraFileType type, + uint64_t offset, char *buf, uint64_t *size, + GPContext *context); +int gp_camera_file_delete (Camera *camera, const char *folder, + const char *file, GPContext *context); +/**@}*/ + + +/** + * \name Some cameras need 'keep-alive-messages'. + * @{ + */ +typedef int (* CameraTimeoutFunc) (Camera *camera, + GPContext *context); +typedef unsigned int (* CameraTimeoutStartFunc) (Camera *camera, + unsigned int timeout, + CameraTimeoutFunc func, + void *data); +typedef void (* CameraTimeoutStopFunc) (Camera *camera, + unsigned int id, void *data); +void gp_camera_set_timeout_funcs (Camera *camera, + CameraTimeoutStartFunc start_func, + CameraTimeoutStopFunc stop_func, + void *data); +int gp_camera_start_timeout (Camera *camera, unsigned int timeout, + CameraTimeoutFunc func); +void gp_camera_stop_timeout (Camera *camera, unsigned int id); + +/**@}*/ +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __GPHOTO2_CAMERA_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-context.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-context.h new file mode 100644 index 00000000..37fba15c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-context.h @@ -0,0 +1,138 @@ +/** \file + * \brief Context callback operation functions. + * + * \author Copyright 2001 Lutz Mueller + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_CONTEXT_H__ +#define __GPHOTO2_CONTEXT_H__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * \brief The gphoto context structure. + * + * This structure allows callback handling, passing error contexts back, + * progress handling and download cancellation and similar things. + * It is usually passed around the functions. + */ +typedef struct _GPContext GPContext; + +GPContext *gp_context_new (void); + +void gp_context_ref (GPContext *context); +void gp_context_unref (GPContext *context); + +/** + * \brief Return codes that can be returned by progress handling. + * + * An application can return special values back to the libgphoto2 + * progress callback handling functions. If "Cancel" is selected, + * libgphoto2 and the camera driver will try to cancel transfer. + */ +typedef enum _GPContextFeedback { + GP_CONTEXT_FEEDBACK_OK, /**< Everything ok... proceed. */ + GP_CONTEXT_FEEDBACK_CANCEL /**< Please cancel the current transfer if possible. */ +} GPContextFeedback; + +/* Functions */ +typedef void (* GPContextIdleFunc) (GPContext *context, void *data); +typedef void (* GPContextErrorFunc) (GPContext *context, const char *text, void *data); +typedef void (* GPContextStatusFunc) (GPContext *context, const char *text, void *data); +typedef void (* GPContextMessageFunc) (GPContext *context, const char *text, void *data); +typedef GPContextFeedback (* GPContextQuestionFunc) (GPContext *context, + const char *text, void *data); +typedef GPContextFeedback (* GPContextCancelFunc) (GPContext *context, + void *data); +typedef unsigned int (* GPContextProgressStartFunc) (GPContext *context, + float target, + const char *text, + void *data); +typedef void (* GPContextProgressUpdateFunc) (GPContext *context, + unsigned int id, + float current, + void *data); +typedef void (* GPContextProgressStopFunc) (GPContext *context, + unsigned int id, + void *data); + +/* Setting those functions (frontends) */ +void gp_context_set_idle_func (GPContext *context, + GPContextIdleFunc func, void *data); +void gp_context_set_progress_funcs (GPContext *context, + GPContextProgressStartFunc start_func, + GPContextProgressUpdateFunc update_func, + GPContextProgressStopFunc stop_func, + void *data); +void gp_context_set_error_func (GPContext *context, + GPContextErrorFunc func, void *data); +void gp_context_set_status_func (GPContext *context, + GPContextStatusFunc func, void *data); +void gp_context_set_question_func (GPContext *context, + GPContextQuestionFunc func, void *data); +void gp_context_set_cancel_func (GPContext *context, + GPContextCancelFunc func, void *data); +void gp_context_set_message_func (GPContext *context, + GPContextMessageFunc func, void *data); + +/* Calling those functions (backends) */ +void gp_context_idle (GPContext *context); +void gp_context_error (GPContext *context, const char *format, ...) +#ifdef __GNUC__ + __attribute__((__format__(printf,2,3))) +#endif +; +void gp_context_status (GPContext *context, const char *format, ...) +#ifdef __GNUC__ + __attribute__((__format__(printf,2,3))) +#endif +; +void gp_context_message (GPContext *context, const char *format, ...) +#ifdef __GNUC__ + __attribute__((__format__(printf,2,3))) +#endif +; +GPContextFeedback gp_context_question (GPContext *context, const char *format, + ...) +#ifdef __GNUC__ + __attribute__((__format__(printf,2,3))) +#endif +; +GPContextFeedback gp_context_cancel (GPContext *context); +unsigned int gp_context_progress_start (GPContext *context, float target, + const char *format, ...) +#ifdef __GNUC__ + __attribute__((__format__(printf,3,4))) +#endif +; +void gp_context_progress_update (GPContext *context, unsigned int id, + float current); +void gp_context_progress_stop (GPContext *context, unsigned int id); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_CONTEXT_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-file.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-file.h new file mode 100644 index 00000000..1fb50d7a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-file.h @@ -0,0 +1,177 @@ +/** \file + * \brief Abstracted gphoto2 file operations. + * + * \author Copyright 2000 Scott Fritzinger + * \author Copyright 2008-2009 Marcus Meissner + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_FILE_H__ +#define __GPHOTO2_FILE_H__ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define GP_MIME_TXT "text/plain" +#define GP_MIME_WAV "audio/wav" +#define GP_MIME_RAW "image/x-raw" +#define GP_MIME_PNG "image/png" +#define GP_MIME_PGM "image/x-portable-graymap" +#define GP_MIME_PPM "image/x-portable-pixmap" +#define GP_MIME_PNM "image/x-portable-anymap" +#define GP_MIME_JPEG "image/jpeg" +#define GP_MIME_TIFF "image/tiff" +#define GP_MIME_BMP "image/bmp" +#define GP_MIME_QUICKTIME "video/quicktime" +#define GP_MIME_AVI "video/x-msvideo" +#define GP_MIME_CRW "image/x-canon-raw" +#define GP_MIME_CR2 "image/x-canon-cr2" +#define GP_MIME_CR3 "image/x-canon-cr3" +#define GP_MIME_NEF "image/x-nikon-nef" +#define GP_MIME_UNKNOWN "application/octet-stream" +#define GP_MIME_EXIF "application/x-exif" +#define GP_MIME_MP3 "audio/mpeg" +#define GP_MIME_OGG "application/ogg" +#define GP_MIME_WMA "audio/x-wma" +#define GP_MIME_ASF "audio/x-asf" +#define GP_MIME_MPEG "video/mpeg" +#define GP_MIME_AVCHD "video/mp2t" +#define GP_MIME_RW2 "image/x-panasonic-raw2" +#define GP_MIME_ARW "image/x-sony-arw" + +/** + * \brief The type of view on the specified file. + * + * Specifies the file of the current file, usually passed + * to the gp_camera_file_get() and gp_camera_file_put() + * functions. This is useful for multiple views of one + * file, like that an single image file has "raw", "normal", + * "exif" and "preview" views, or a media file has "normal" + * and "metadata" file views. + */ +typedef enum { + GP_FILE_TYPE_PREVIEW, /**< A preview of an image. */ + GP_FILE_TYPE_NORMAL, /**< The regular normal data of a file. */ + GP_FILE_TYPE_RAW, /**< The raw mode of a file, for instance the raw bayer data for cameras + * where postprocessing is done in the driver. The RAW files of modern + * DSLRs are GP_FILE_TYPE_NORMAL usually. */ + GP_FILE_TYPE_AUDIO, /**< The audio view of a file. Perhaps an embedded comment or similar. */ + GP_FILE_TYPE_EXIF, /**< The embedded EXIF data of an image. */ + GP_FILE_TYPE_METADATA /**< The metadata of a file, like Metadata of files on MTP devices. */ +} CameraFileType; + +/** + * \brief File storage type. + * + * The file storage type. Only used internally for now, but might + * be exposed later on. See gp_file_new() and gp_file_new_from_fd(). + */ +typedef enum { + GP_FILE_ACCESSTYPE_MEMORY, /**< File is in system memory. */ + GP_FILE_ACCESSTYPE_FD, /**< File is associated with a UNIX filedescriptor. */ + GP_FILE_ACCESSTYPE_HANDLER /**< File is associated with a programmatic handler. */ +} CameraFileAccessType; + +/* FIXME: api might be unstable. function return gphoto results codes. */ +typedef struct _CameraFileHandler { + int (*size) (void*priv, uint64_t *size); /* only for read? */ + int (*read) (void*priv, unsigned char *data, uint64_t *len); + int (*write) (void*priv, unsigned char *data, uint64_t *len); + /* FIXME: should we have both read/write methods? */ + /* FIXME: how to finish method, due to LRU it might be longlived. */ +} CameraFileHandler; + +/*! \struct CameraFile + * \brief File structure. + * + * The internals of the CameraFile struct are private, please use + * the accessor functions. + */ +typedef struct _CameraFile CameraFile; + +int gp_file_new (CameraFile **file); +int gp_file_new_from_fd (CameraFile **file, int fd); +int gp_file_new_from_handler (CameraFile **file, CameraFileHandler *handler, void*priv); +int gp_file_ref (CameraFile *file); +int gp_file_unref (CameraFile *file); +int gp_file_free (CameraFile *file); + +int gp_file_set_name (CameraFile *file, const char *name); +int gp_file_get_name (CameraFile *file, const char **name); + +int gp_file_set_mime_type (CameraFile *file, const char *mime_type); +int gp_file_get_mime_type (CameraFile *file, const char **mime_type); + +int gp_file_set_mtime (CameraFile *file, time_t mtime); +int gp_file_get_mtime (CameraFile *file, time_t *mtime); + +int gp_file_detect_mime_type (CameraFile *file); +int gp_file_adjust_name_for_mime_type (CameraFile *file); +int gp_file_get_name_by_type (CameraFile *file, const char *basename, CameraFileType type, char **newname); + +int gp_file_set_data_and_size (CameraFile*, char *data, + unsigned long int size); +int gp_file_get_data_and_size (CameraFile*, const char **data, + unsigned long int *size); +/* "Do not use those" + * + * These functions probably were originally intended for internal use only. + * However, due to + * - the lack of good documentation + * - this being the obvious way to save a file + * - the fact that libgphoto2 has been exporting all its internal + * symbols for years (until 2005-06) + * - our in-house frontends gphoto2 and gtkam using them + * a number of external frontends started to use these functions, as + * of 2005-06: + * - digikam + * - f-spot + * - gthumb + * But a few frontends can live without it (and thus are likely to + * use the correct API): + * - flphoto + * - kamera + * + * So we're going to phase these functions out over the next year or + * so, going the GTK way of keeping the ABI but breaking the API. So + * we'll continue to export functionally equivalent functions, but the + * header files will not contain definitions for you to use any more. + */ +int gp_file_open (CameraFile *file, const char *filename); +int gp_file_save (CameraFile *file, const char *filename); +int gp_file_clean (CameraFile *file); +int gp_file_copy (CameraFile *destination, CameraFile *source); + + +/* These are for use by camera drivers only */ +int gp_file_append (CameraFile*, const char *data, + unsigned long int size); +int gp_file_slurp (CameraFile*, char *data, + size_t size, size_t *readlen); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_FILE_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-filesys.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-filesys.h new file mode 100644 index 00000000..1bd736bd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-filesys.h @@ -0,0 +1,384 @@ +/** \file + * \brief Filesystem related operations and declarations. + * + * \author Copyright 2000 Scott Fritzinger + * \author Copyright 2008-2009 Marcus Meissner + * + * \note + * Contributions: + * Lutz Mueller (2001) + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_FILESYS_H__ +#define __GPHOTO2_FILESYS_H__ + +#include +#include + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * \brief Bitmask on what fields are set in the CameraFileInfo structure. + * + * Bitmask to mark up which fields are set in the CameraFileInfo + * structure. The other fields might be uninitialized. + * If you set information via gp_camera_file_set_info() you + * need to set those flags. If you retrieve information via + * gp_camera_file_get_info() you need to check those flags. + * They are seperate for both "normal" and "preview" parts + * and are mostly image related. + */ +typedef enum { + GP_FILE_INFO_NONE = 0, /**< \brief No fields set. */ + GP_FILE_INFO_TYPE = 1 << 0, /**< \brief The MIME type is set. */ + GP_FILE_INFO_SIZE = 1 << 2, /**< \brief The filesize is set. */ + GP_FILE_INFO_WIDTH = 1 << 3, /**< \brief The width is set. */ + GP_FILE_INFO_HEIGHT = 1 << 4, /**< \brief The height is set. */ + GP_FILE_INFO_PERMISSIONS = 1 << 5, /**< \brief The access permissions are set. */ + GP_FILE_INFO_STATUS = 1 << 6, /**< \brief The status is set (downloaded). */ + GP_FILE_INFO_MTIME = 1 << 7, /**< \brief The modification time is set. */ + GP_FILE_INFO_ALL = 0xFF /**< \brief All possible fields set. Internal. */ +} CameraFileInfoFields; + +/** + * \brief Bitmask containing the file permission flags. + * + * Possible flag values of the permission entry in the file information. + */ +typedef enum { + GP_FILE_PERM_NONE = 0, /**< \brief No permissions. */ + GP_FILE_PERM_READ = 1 << 0, /**< \brief Read permissions. */ + GP_FILE_PERM_DELETE = 1 << 1, /**< \brief Write permissions */ + GP_FILE_PERM_ALL = 0xFF /**< \brief Internal. */ +} CameraFilePermissions; + +/** + * \brief Possible status values. + * + * Bitmask of possible stati. Currently only download is supported. + */ +typedef enum { + GP_FILE_STATUS_NOT_DOWNLOADED, /**< File is not downloaded. */ + GP_FILE_STATUS_DOWNLOADED /**< File is already downloaded. */ +} CameraFileStatus; + +/** + * \brief File information of a regular file. + * + * Contains information a regular file with fields being + * set depending on the bitmask in the fields member. + */ +typedef struct _CameraFileInfoFile { + CameraFileInfoFields fields; /**< \brief Bitmask containing the set members. */ + CameraFileStatus status; /**< \brief Status of the file. */ + uint64_t size; /**< \brief Size of the file. */ + char type[64]; /**< \brief MIME type of the file. */ + uint32_t width; /**< \brief Height of the file. */ + uint32_t height; /**< \brief Width of the file. */ + CameraFilePermissions permissions;/**< \brief Permissions of the file. */ + time_t mtime; /**< \brief Modification time of the file. */ +} CameraFileInfoFile; + +/** + * \brief File information of a preview file. + * + * Contains information of a preview file with fields being + * set depending on the bitmask in the fields member. + */ +typedef struct _CameraFileInfoPreview { + CameraFileInfoFields fields; /**< \brief Bitmask containing the set members. */ + CameraFileStatus status; /**< \brief Status of the preview. */ + uint64_t size; /**< \brief Size of the preview. */ + char type[64]; /**< \brief MIME type of the preview. */ + + uint32_t width; /**< \brief Width of the preview. */ + uint32_t height; /**< \brief Height of the preview. */ +} CameraFileInfoPreview; + +/** + * \brief File information of an audio file. + * + * Contains information of an audio file with fields being + * set depending on the bitmask in the fields member. + */ +typedef struct _CameraFileInfoAudio { + CameraFileInfoFields fields; /**< \brief Bitmask containing the set members. */ + CameraFileStatus status; /**< \brief Status of the preview file. */ + uint64_t size; /**< \brief Size of the audio file. */ + char type[64]; /**< \brief MIME type of the audio file. */ +} CameraFileInfoAudio; + +/** + * \brief File information structure. + * + * Contains the normal, preview and audio file information structures + * for a specific file. + */ +typedef struct _CameraFileInfo { + CameraFileInfoPreview preview; + CameraFileInfoFile file; + CameraFileInfoAudio audio; +} CameraFileInfo; + +/** + * \brief Storage information flags. + * + * Bitmask to specify which entries of the filesystem + * storage information is set. + */ +typedef enum { + GP_STORAGEINFO_BASE = (1<<0), /**< \brief The base directory. + * Usually / if just 1 storage is attached. + */ + GP_STORAGEINFO_LABEL = (1<<1), /**< \brief Label of the filesystem. + * Could also be a DOS label. + */ + GP_STORAGEINFO_DESCRIPTION = (1<<2), /**< \brief More verbose description. */ + GP_STORAGEINFO_ACCESS = (1<<3), /**< \brief Access permissions. */ + GP_STORAGEINFO_STORAGETYPE = (1<<4), /**< \brief Hardware type. */ + GP_STORAGEINFO_FILESYSTEMTYPE = (1<<5), /**< \brief Filesystem type. */ + GP_STORAGEINFO_MAXCAPACITY = (1<<6), /**< \brief Maximum capacity in kbytes */ + GP_STORAGEINFO_FREESPACEKBYTES = (1<<7), /**< \brief Free space in kbytes. */ + GP_STORAGEINFO_FREESPACEIMAGES = (1<<8) /**< \brief Free space in images. */ +} CameraStorageInfoFields; + +/** + * \brief Hardware storage types. + * + * Type of hardware this storage is on. The types and values + * are the same as the PTP standard uses (PTP_ST_xxx). + */ +typedef enum { + GP_STORAGEINFO_ST_UNKNOWN = 0, /**< \brief Unknown storage type. */ + GP_STORAGEINFO_ST_FIXED_ROM = 1, /**< \brief A fixed ROM storage. */ + GP_STORAGEINFO_ST_REMOVABLE_ROM = 2, /**< \brief A removable ROM storage. */ + GP_STORAGEINFO_ST_FIXED_RAM = 3, /**< \brief A fixed RAM storage. (e.g. SDRAM) */ + GP_STORAGEINFO_ST_REMOVABLE_RAM = 4 /**< \brief A removable RAM storage. (any kind of cards etc) */ +} CameraStorageType; + +/** + * \brief Storage access modes. + * + * The modes we can access the storage with. Uses the same + * types and values as the PTP standard (PTP_AC_xxx). + */ +typedef enum { + GP_STORAGEINFO_AC_READWRITE = 0, /**< \brief Storage is Read / Write. */ + GP_STORAGEINFO_AC_READONLY = 1, /**< \brief Storage is Ready Only. */ + GP_STORAGEINFO_AC_READONLY_WITH_DELETE = 2 /**< \brief Storage is Ready Only, but allows Delete.*/ +} CameraStorageAccessType; + +/** + * \brief Filesystem hierarchy types. + * + * The type of the filesystem hierarchy the devices uses. + * Same types and values as the PTP standard defines (PTP_FST_xxx). + */ +typedef enum { + GP_STORAGEINFO_FST_UNDEFINED = 0, /**< \brief Undefined or unknown filesystem hierarchy. */ + GP_STORAGEINFO_FST_GENERICFLAT = 1, /**< \brief Generic flat storage (all in 1 directory). */ + GP_STORAGEINFO_FST_GENERICHIERARCHICAL = 2, /**< \brief Generic tree hierarchy. */ + GP_STORAGEINFO_FST_DCF = 3 /**< \brief DCIM style storage. */ +} CameraStorageFilesystemType; + +/** + * \brief Storage information structue. + * + * This structure contains the information of a specific camera storage. + * Only the members as specified by the \a fields member are valid. + */ +typedef struct _CameraStorageInformation { + CameraStorageInfoFields fields; /**< \brief Bitmask of struct members that are specified. */ + char basedir[256]; /**< \brief Basedirectory of the storage. Will be "/" if just 1 storage on the camera. */ + char label[256]; /**< \brief Label of the storage. Similar to DOS label. */ + char description[256];/**< \brief Description of the storage. */ + CameraStorageType type; /**< \brief Hardware type of the storage. */ + CameraStorageFilesystemType fstype; /**< \brief Hierarchy type of the filesystem. */ + CameraStorageAccessType access; /**< \brief Access permissions. */ + uint64_t capacitykbytes; /**< \brief Total capacity in kbytes. */ + uint64_t freekbytes; /**< \brief Free space in kbytes. */ + uint64_t freeimages; /**< \brief Free space in images (guessed by camera). */ +} CameraStorageInformation; + +/** + * \brief Filesystem structure, only exposed to camera drivers. + * + * Internal structure, contents not exposed to frontends. Camera + * drivers get these passed to filesystem related functions and + * are supposed to use it only via the accessor functions. + */ +typedef struct _CameraFilesystem CameraFilesystem; + +int gp_filesystem_new (CameraFilesystem **fs); +int gp_filesystem_free (CameraFilesystem *fs); + +/* Manual editing */ +int gp_filesystem_append (CameraFilesystem *fs, const char *folder, + const char *filename, GPContext *context); +int gp_filesystem_set_info_noop (CameraFilesystem *fs, + const char *folder, const char *filename, + CameraFileInfo info, GPContext *context); +int gp_filesystem_set_file_noop (CameraFilesystem *fs, + const char *folder, const char *filename, + CameraFileType type, + CameraFile *file, GPContext *context); +int gp_filesystem_delete_file_noop (CameraFilesystem *fs, const char *folder, + const char *filename, GPContext *context); +int gp_filesystem_reset (CameraFilesystem *fs); + +/* Information retrieval */ +int gp_filesystem_count (CameraFilesystem *fs, const char *folder, + GPContext *context); +int gp_filesystem_name (CameraFilesystem *fs, const char *folder, + int filenumber, const char **filename, + GPContext *context); +int gp_filesystem_get_folder (CameraFilesystem *fs, const char *filename, + char **folder, GPContext *context); +int gp_filesystem_number (CameraFilesystem *fs, const char *folder, + const char *filename, GPContext *context); + +/* Listings */ +typedef int (*CameraFilesystemListFunc) (CameraFilesystem *fs, + const char *folder, CameraList *list, + void *data, GPContext *context); +int gp_filesystem_list_files (CameraFilesystem *fs, const char *folder, + CameraList *list, GPContext *context); +int gp_filesystem_list_folders (CameraFilesystem *fs, const char *folder, + CameraList *list, GPContext *context); + +/* File information */ +typedef int (*CameraFilesystemSetInfoFunc) (CameraFilesystem *fs, + const char *folder, + const char *filename, + CameraFileInfo info, void *data, + GPContext *context); +typedef int (*CameraFilesystemGetInfoFunc) (CameraFilesystem *fs, + const char *folder, + const char *filename, + CameraFileInfo *info, void *data, + GPContext *context); +int gp_filesystem_get_info (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, + GPContext *context); +int gp_filesystem_set_info (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo info, + GPContext *context); + +/* Files */ +typedef int (*CameraFilesystemGetFileFunc) (CameraFilesystem *fs, + const char *folder, + const char *filename, + CameraFileType type, + CameraFile *file, void *data, + GPContext *context); +typedef int (*CameraFilesystemReadFileFunc) (CameraFilesystem *fs, + const char *folder, + const char *filename, + CameraFileType type, + uint64_t offset, + char *buf, + uint64_t *size, + void *data, + GPContext *context); +typedef int (*CameraFilesystemDeleteFileFunc) (CameraFilesystem *fs, + const char *folder, + const char *filename, + void *data, GPContext *context); +int gp_filesystem_get_file (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, GPContext *context); +int gp_filesystem_read_file (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + uint64_t offset, char *buf, uint64_t *size, + GPContext *context); +int gp_filesystem_delete_file (CameraFilesystem *fs, const char *folder, + const char *filename, GPContext *context); + +/* Folders */ +typedef int (*CameraFilesystemPutFileFunc) (CameraFilesystem *fs, + const char *folder, + const char *filename, + CameraFileType type, + CameraFile *file, + void *data, + GPContext *context); +typedef int (*CameraFilesystemDeleteAllFunc) (CameraFilesystem *fs, + const char *folder, void *data, + GPContext *context); +typedef int (*CameraFilesystemDirFunc) (CameraFilesystem *fs, + const char *folder, + const char *name, void *data, + GPContext *context); + +typedef int (*CameraFilesystemStorageInfoFunc) (CameraFilesystem *fs, + CameraStorageInformation **, + int *nrofstorageinformations, + void *data, GPContext *context); + +int gp_filesystem_get_storageinfo (CameraFilesystem *fs, + CameraStorageInformation **, + int *nrofstorageinformations, + GPContext *context); + +typedef struct _CameraFilesystemFuncs CameraFilesystemFuncs; +struct _CameraFilesystemFuncs { + CameraFilesystemListFunc file_list_func; + CameraFilesystemListFunc folder_list_func; + CameraFilesystemPutFileFunc put_file_func; + CameraFilesystemDeleteAllFunc delete_all_func; + CameraFilesystemGetInfoFunc get_info_func; + CameraFilesystemSetInfoFunc set_info_func; + CameraFilesystemDirFunc make_dir_func; + CameraFilesystemDirFunc remove_dir_func; + CameraFilesystemGetFileFunc get_file_func; + CameraFilesystemReadFileFunc read_file_func; + CameraFilesystemDeleteFileFunc del_file_func; + CameraFilesystemStorageInfoFunc storage_info_func; + + /* for later use. Remove one if you add a new function */ + void *unused[31]; +}; +int gp_filesystem_set_funcs (CameraFilesystem *fs, + CameraFilesystemFuncs *funcs, + void *data); +int gp_filesystem_put_file (CameraFilesystem *fs, const char *folder, const char *filename, + CameraFileType type, CameraFile *file, GPContext *context); +int gp_filesystem_delete_all (CameraFilesystem *fs, const char *folder, + GPContext *context); +int gp_filesystem_make_dir (CameraFilesystem *fs, const char *folder, + const char *name, GPContext *context); +int gp_filesystem_remove_dir (CameraFilesystem *fs, const char *folder, + const char *name, GPContext *context); + +/* For debugging */ +int gp_filesystem_dump (CameraFilesystem *fs); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_FILESYS_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-library.h new file mode 100644 index 00000000..5009238c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-library.h @@ -0,0 +1,80 @@ +/** \file + * \brief Camery driver header. + * + * \author Copyright 2000 Scott Fritzinger + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_LIBRARY_H__ +#define __GPHOTO2_LIBRARY_H__ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * \brief Returns a unique id for the camera driver. + * + * \param id a #CameraText + * \return a gphoto2 error code + * + **/ +typedef int (* CameraLibraryIdFunc) (CameraText *id); + +/** + * \brief Adds the abilities of the supported models to the supplied list. + * + * \param list a #CameraAbilitiesList + * \return a gphoto2 error code + * + **/ +typedef int (* CameraLibraryAbilitiesFunc) (CameraAbilitiesList *list); + +/** + * \brief Initializes the camera. + * + * \param camera a #Camera + * \param context a #GPContext + * \return a gphoto2 error code + * + * The camera driver will establish a first connection + * to the camera and configure the camera variable (i.e. using + * #gp_filesystem_set_list_funcs or #gp_port_get_settings). + * + **/ +typedef int (* CameraLibraryInitFunc) (Camera *camera, GPContext *context); + +/* + * If you want to write a camera library, you need to implement + * the following three functions. Everything else should be declared + * as static. + */ +int camera_id (CameraText *id); +int camera_abilities (CameraAbilitiesList *list); +int camera_init (Camera *camera, GPContext *context); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_LIBRARY_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-list.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-list.h new file mode 100644 index 00000000..7dc6f950 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-list.h @@ -0,0 +1,93 @@ +/** \file gphoto2-list.h + * + * Lists of files, folders, cameras, etc. + * + * \author Copyright 2001 Scott Fritzinger + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_LIST_H__ +#define __GPHOTO2_LIST_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * \brief A generic list + * + * This structure provides a list with \a name:value pairs that is used in various + * parts of libgphoto2. Its details are internal, please use the + * gp_list_xxx accessor functions. + * + * Usage pattern for CameraList for users external of + * libgphoto2, such as libgphoto2 frontends: + * + * \code + * CameraList *list; + * gp_list_new (&list); + * init_list_somehow (list); + * for (i=0; i < gp_list_count(list); i++) { + * char *name, *value; + * gp_list_get_name (list, i, &name); + * gp_list_get_name (list, i, &value); + * do_something_with (name, value); + * } + * gp_list_free (list); + * \endcode + * + * Please do NOT directly instantiate a CameraList object like this: + * \code + * CameraList foo; // DO NOT DO THIS + * \endcode + * + * Please do NOT directly access the structure members like this: + * \code + * list->entry[i].name // DO NOT DO THIS + * \endcode + */ +typedef struct _CameraList CameraList; + +int gp_list_new (CameraList **list); +int gp_list_ref (CameraList *list); +int gp_list_unref (CameraList *list); +int gp_list_free (CameraList *list); + +int gp_list_count (CameraList *list); +int gp_list_append (CameraList *list, + const char *name, const char *value); +int gp_list_reset (CameraList *list); +int gp_list_sort (CameraList *list); + +int gp_list_find_by_name (CameraList *list, int *index, const char *name); + +int gp_list_get_name (CameraList *list, int index, const char **name); +int gp_list_get_value (CameraList *list, int index, const char **value); + +int gp_list_set_name (CameraList *list, int index, const char *name); +int gp_list_set_value (CameraList *list, int index, const char *value); + +int gp_list_populate (CameraList *list, const char *format, int count); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_LIST_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-result.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-result.h new file mode 100644 index 00000000..79b95384 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-result.h @@ -0,0 +1,141 @@ +/** \file + * + * \author Copyright 2000 Scott Fritzinger + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_RESULT_H__ +#define __GPHOTO2_RESULT_H__ + +/* Additional error codes are defined here */ +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * \brief Corrupted data received + * + * Data is corrupt. This error is reported by camera drivers if corrupted + * data has been received that can not be automatically handled. Normally, + * drivers will do everything possible to automatically recover from this + * error. + **/ +#define GP_ERROR_CORRUPTED_DATA -102 /* Corrupted data */ + +/** + * \brief File already exists + * + * An operation failed because a file existed. This error is reported for + * example when the user tries to create a file that already exists. + **/ +#define GP_ERROR_FILE_EXISTS -103 + +/** + * \brief Specified camera model was not found + * + * The specified model could not be found. This error is reported when + * the user specified a model that does not seem to be supported by + * any driver. + **/ +#define GP_ERROR_MODEL_NOT_FOUND -105 + +/** + * \brief Specified directory was not found + * + * The specified directory could not be found. This error is reported when + * the user specified a directory that is non-existent. + **/ +#define GP_ERROR_DIRECTORY_NOT_FOUND -107 + +/** + * \brief Specified file was not found + * + * The specified file could not be found. This error is reported when + * the user wants to access a file that is non-existent. + **/ +#define GP_ERROR_FILE_NOT_FOUND -108 + +/** + * \brief Specified directory already exists + * + * The specified directory already exists. This error is reported for example + * when the user wants to create a directory that already exists. + **/ +#define GP_ERROR_DIRECTORY_EXISTS -109 + +/** + * \brief The camera is already busy + * + * Camera I/O or a command is in progress. + **/ +#define GP_ERROR_CAMERA_BUSY -110 + +/** + * \brief Path is not absolute + * + * The specified path is not absolute. This error is reported when the user + * specifies paths that are not absolute, i.e. paths like "path/to/directory". + * As a rule of thumb, in gphoto2, there is nothing like relative paths. + **/ +#define GP_ERROR_PATH_NOT_ABSOLUTE -111 + +/** + * \brief Cancellation successful. + * + * A cancellation requestion by the frontend via progress callback and + * GP_CONTEXT_FEEDBACK_CANCEL was successful and the transfer has been aborted. + */ +#define GP_ERROR_CANCEL -112 + +/** + * \brief Unspecified camera error + * + * The camera reported some kind of error. This can be either a + * photographic error, such as failure to autofocus, underexposure, or + * violating storage permission, anything else that stops the camera + * from performing the operation. + */ +#define GP_ERROR_CAMERA_ERROR -113 + +/** + * \brief Unspecified failure of the operating system + * + * There was some sort of OS error in communicating with the camera, + * e.g. lack of permission for an operation. + */ +#define GP_ERROR_OS_FAILURE -114 + +/** + * \brief Not enough space + * + * There was not enough free space when uploading a file. + */ +#define GP_ERROR_NO_SPACE -115 + + +const char *gp_result_as_string (int result); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_RESULT_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-setting.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-setting.h new file mode 100644 index 00000000..15a74a87 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-setting.h @@ -0,0 +1,38 @@ +/** \file + * + * \author Copyright 2000 Scott Fritzinger + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_SETTING_H__ +#define __GPHOTO2_SETTING_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +int gp_setting_set (char *id, char *key, char *value); +int gp_setting_get (char *id, char *key, char *value); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_SETTING_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-version.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-version.h new file mode 100644 index 00000000..0de10a26 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-version.h @@ -0,0 +1,38 @@ +/** \file + * + * \author Copyright 2002 Hans Ulrich Niedermann + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#ifndef __GPHOTO2_VERSION_H__ +#define __GPHOTO2_VERSION_H__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +const char **gp_library_version(GPVersionVerbosity verbose); + +#ifdef __cplusplus +} +#endif + +#endif /* __GPHOTO2_VERSION_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-widget.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-widget.h new file mode 100644 index 00000000..126f7e25 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2-widget.h @@ -0,0 +1,133 @@ +/** \file + * + * \author Copyright 2000 Scott Fritzinger + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_WIDGET_H__ +#define __GPHOTO2_WIDGET_H__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** \brief internal structure please use the accessors. */ +typedef struct _CameraWidget CameraWidget; + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * \brief Type of the widget to be created. + * + * The actual widget type we want to create. The type of the value + * it supports depends on this type. + */ +typedef enum { /* Value (get/set): */ + GP_WIDGET_WINDOW, /**< \brief Window widget + * This is the toplevel configuration widget. It should likely contain multiple #GP_WIDGET_SECTION entries. + */ + GP_WIDGET_SECTION, /**< \brief Section widget (think Tab) */ + GP_WIDGET_TEXT, /**< \brief Text widget. */ /* char * */ + GP_WIDGET_RANGE, /**< \brief Slider widget. */ /* float */ + GP_WIDGET_TOGGLE, /**< \brief Toggle widget (think check box) */ /* int */ + GP_WIDGET_RADIO, /**< \brief Radio button widget. */ /* char * */ + GP_WIDGET_MENU, /**< \brief Menu widget (same as RADIO). */ /* char * */ + GP_WIDGET_BUTTON, /**< \brief Button press widget. */ /* CameraWidgetCallback */ + GP_WIDGET_DATE /**< \brief Date entering widget. */ /* int */ +} CameraWidgetType; + +/** + * \brief Callback handler for Button widgets. + */ +typedef int (* CameraWidgetCallback) (Camera *, CameraWidget *, GPContext *); + +int gp_widget_new (CameraWidgetType type, const char *label, + CameraWidget **widget); +int gp_widget_free (CameraWidget *widget); +int gp_widget_ref (CameraWidget *widget); +int gp_widget_unref (CameraWidget *widget); + +int gp_widget_append (CameraWidget *widget, CameraWidget *child); +int gp_widget_prepend (CameraWidget *widget, CameraWidget *child); + +int gp_widget_count_children (CameraWidget *widget); +int gp_widget_get_child (CameraWidget *widget, int child_number, + CameraWidget **child); + +/* Retrieve Widgets */ +int gp_widget_get_child_by_label (CameraWidget *widget, + const char *label, + CameraWidget **child); +int gp_widget_get_child_by_id (CameraWidget *widget, int id, + CameraWidget **child); +int gp_widget_get_child_by_name (CameraWidget *widget, + const char *name, + CameraWidget **child); +int gp_widget_get_root (CameraWidget *widget, + CameraWidget **root); +int gp_widget_get_parent (CameraWidget *widget, + CameraWidget **parent); + +int gp_widget_set_value (CameraWidget *widget, const void *value); +int gp_widget_get_value (CameraWidget *widget, void *value); + +int gp_widget_set_name (CameraWidget *widget, const char *name); +int gp_widget_get_name (CameraWidget *widget, const char **name); + +int gp_widget_set_info (CameraWidget *widget, const char *info); +int gp_widget_get_info (CameraWidget *widget, const char **info); + +int gp_widget_get_id (CameraWidget *widget, int *id); +int gp_widget_get_type (CameraWidget *widget, CameraWidgetType *type); +int gp_widget_get_label (CameraWidget *widget, const char **label); + +int gp_widget_set_range (CameraWidget *range, + float low, float high, float increment); +int gp_widget_get_range (CameraWidget *range, + float *min, float *max, float *increment); + +int gp_widget_add_choice (CameraWidget *widget, const char *choice); +int gp_widget_count_choices (CameraWidget *widget); +int gp_widget_get_choice (CameraWidget *widget, int choice_number, + const char **choice); + +int gp_widget_changed (CameraWidget *widget); +int gp_widget_set_changed (CameraWidget *widget, int changed); + +int gp_widget_set_readonly (CameraWidget *widget, int readonly); +int gp_widget_get_readonly (CameraWidget *widget, int *readonly); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_WIDGET_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2.h b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2.h new file mode 100644 index 00000000..ac95a835 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/gphoto2/gphoto2.h @@ -0,0 +1,58 @@ +/** \file + * \brief Convenience header for gphoto2 + * + * \author Copyright 2001 Lutz Mueller + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#ifndef __GPHOTO2_H__ +#define __GPHOTO2_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef OS2 +# include +# include +# define CAMLIBS getenv("CAMLIBS") +# define RTLD_LAZY 0x001 +# define VERSION "2" +# define usleep(t) _sleep2(((t)+500)/ 1000) +#endif + +#ifdef WIN32 +#ifndef CAMLIBS +#define CAMLIBS "." +#endif +#endif + +#include +#include +#include + +#include +#include +#include + +#ifdef __cplusplus +} +#endif + +#endif /* __GPHOTO2_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/installcheck.mk b/lib/hardware/sensors/gphoto/libgphoto2-master/installcheck.mk new file mode 100644 index 00000000..62ae7db5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/installcheck.mk @@ -0,0 +1,30 @@ +# FIXME: Only run this if not cross-compiling +installcheck-local: $(INSTALL_TESTS) $(INSTALLCHECK_DEPS) + @total=0; failed=0; success=0; ignored=0; \ + echo "Running \"installcheck\" test cases..."; \ + for script in $(INSTALL_TESTS); do \ + echo "Test case: $$script"; \ + total="$$(expr $$total + 1)"; \ + if test -f "./$$script"; then dir="./"; \ + elif test -f "$$script"; then dir=""; \ + else dir="$(srcdir)/"; fi; \ + if $(INSTALL_TESTS_ENVIRONMENT) "$$dir/$$script"; then \ + echo "SUCCEEDED: $$script"; \ + success="$$(expr $$success + 1)"; \ + else \ + s="$$?"; \ + if test "$$s" = "77"; then \ + echo "FAILURE IGNORED (return code $$s): $$script"; \ + ignored="$$(expr $$ignored + 1)"; \ + else \ + echo "FAILED (return code $$s): $$script"; \ + failed="$$(expr $$failed + 1)"; \ + fi; \ + fi; \ + done; \ + echo "Test summary: $$success succeeded, $$failed failed, $$ignored failures ignored, $$total tests in total."; \ + if test "$$failed" -gt 0; then \ + echo "Error: One or more \"installcheck\" testcases have failed."; \ + exit 1; \ + fi + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2-uninstalled.pc.in b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2-uninstalled.pc.in new file mode 100644 index 00000000..b3c6fc93 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2-uninstalled.pc.in @@ -0,0 +1,27 @@ +# Note: As this file is sitting in ${top_builddir}, +# ${top_builddir} ~= ${pcfiledir} +# and ${top_srcdir} ~= ${pcfiledir}/@srcdir@ +# Note: This refers to directory matches, not to string matches. +# Note: ${pcfiledir} already is an absolute path name, so there is +# not much sense prepending a ${pc_top_builddir} before it. + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +VERSION=@VERSION@ +abs_top_builddir=@abs_top_builddir@ +driverdir=${abs_top_builddir}/camlibs + +Name: libgphoto2 +Description: Library for easy access to digital cameras +URL: http://gphoto.org/proj/libgphoto2/ +Version: ${VERSION} +Requires: libgphoto2_port >= 0.7.2 +Requires.private: @REQUIREMENTS_FOR_LIBEXIF@ +# This is what works for gphoto-suite +Libs: ${pcfiledir}/libgphoto2/libgphoto2.la -lm +Cflags: -I${pcfiledir}/@srcdir@ +# This is what Sun wants (and does not work with gphoto-suite) +# Libs: ${pc_top_builddir}/${pcfiledir}/libgphoto2/libgphoto2.la -lm +# Cflags: -I${pc_top_builddir}/${pcfiledir} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2.pc.in b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2.pc.in new file mode 100644 index 00000000..8a70c571 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2.pc.in @@ -0,0 +1,15 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +VERSION=@VERSION@ +driverdir=@camlibdir@ + +Name: libgphoto2 +Description: Library for easy access to digital cameras +URL: http://gphoto.org/proj/libgphoto2/ +Version: @VERSION@ +Requires: libgphoto2_port >= 0.10.0 +Requires.private: @REQUIREMENTS_FOR_LIBEXIF@ +Libs: -L${libdir} -lgphoto2 -lm +Cflags: -I${includedir}/gphoto2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/Makefile.am new file mode 100644 index 00000000..705413f8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/Makefile.am @@ -0,0 +1,59 @@ +lib_LTLIBRARIES = libgphoto2.la + +# Notes about the list of exported symbols: +# gp_* also contains internal symbols which are intended for +# INTERNAL USE ONLY and should be converted into gpi_* symbols +# gpi_* are for libgphoto2/camlib internal use only +# NEVER USE gpi_* in frontends! +# gp_* gphoto2 API, used in +# - frontends +# BE AWARE that NOT ALL gp_* FUNCTIONS ARE CONSIDERED PUBLIC. +# +# Yes, this is messy, but we are going to clean this up. + +libgphoto2_la_CPPFLAGS = \ + -I$(top_srcdir) -I$(top_builddir) \ + -I$(top_srcdir)/libgphoto2_port -I$(top_builddir)/libgphoto2_port \ + $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(LTDLINCL) \ + $(LIBEXIF_CFLAGS) + +libgphoto2_la_LDFLAGS = \ + -no-undefined \ + -export-symbols $(srcdir)/libgphoto2.sym \ + -version-info @LIBGPHOTO2_VERSION_INFO@ + +libgphoto2_la_SOURCES = \ + gphoto2-abilities-list.c\ + ahd_bayer.c \ + bayer.c bayer.h \ + gphoto2-camera.c \ + gphoto2-context.c \ + exif.c exif.h \ + gphoto2-file.c \ + gphoto2-filesys.c \ + gamma.c gamma.h \ + jpeg.c jpeg.h \ + gphoto2-list.c \ + gphoto2-result.c \ + gphoto2-version.c \ + gphoto2-setting.c \ + gphoto2-widget.c + +libgphoto2_la_LIBADD = \ + $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \ + $(LIBLTDL) \ + $(LIBEXIF_LIBS) \ + -lm $(INTLLIBS) +# The libtool docs describe these params, but they don't build. +# "-dlopen" self \ +# "-dlopen" $(top_builddir)/camlibs/canon/....la \ +# "-dlopen" $(top_builddir)/camlibs/ptp2/....la + +libgphoto2_la_DEPENDENCIES = \ + $(top_srcdir)/gphoto2/gphoto2-version.h \ + $(srcdir)/libgphoto2.sym + +EXTRA_DIST = gphoto2-library.c libgphoto2.sym + +DISTCLEANFILES = _stdint.h diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/ahd_bayer.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/ahd_bayer.c new file mode 100644 index 00000000..5254d28d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/ahd_bayer.c @@ -0,0 +1,646 @@ +/** \file ahd_bayer.c + * + * \brief Adaptive Homogeneity-Directed Bayer array conversion routine. + * + * \author Copyright March 12, 2008 Theodore Kilgore + * + * \par + * gp_ahd_interpolate() from Eero Salminen + * and Theodore Kilgore. The work of Eero Salminen is for partial completion + * of a Diploma in Information and Computer Science, + * Helsinki University of Technology, Finland. + * + * \par + * The algorithm is based upon the paper + * + * \par + * Adaptive Homogeneity-Directed Democsaicing Algoritm, + * Keigo Hirakawa and Thomas W. Parks, presented in the + * IEEE Transactions on Image Processing, vol. 14, no. 3, March 2005. + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + + + +#include +#include +#include +#include +#include + +#include "config.h" +#include "bayer.h" +#include +#include + +#define MAX(x,y) ((x < y) ? (y) : (x)) +#define MIN(x,y) ((x > y) ? (y) : (x)) +#define CLAMP(x) MAX(MIN(x,0xff),0) +#define RED 0 +#define GREEN 1 +#define BLUE 2 + +static +int dRGB(int i1, int i2, unsigned char *RGB); +static +int do_rb_ctr_row(unsigned char *image_h, unsigned char *image_v, int w, + int h, int y, int *pos_code); +static +int do_green_ctr_row(unsigned char *image, unsigned char *image_h, + unsigned char *image_v, int w, int h, int y, int *pos_code); +static +int get_diffs_row2(unsigned char * hom_buffer_h, unsigned char *hom_buffer_v, + unsigned char * buffer_h, unsigned char *buffer_v, int w); + +#define AD(x, y, w) ((y)*(w)*3+3*(x)) +/** + * \brief This function computes distance^2 between two sets of pixel data. + * \param i1 location of a pixel + * \param i2 location of another pixel + * \param RGB some RGB data. + */ +static +int dRGB(int i1, int i2, unsigned char *RGB) { + int dR,dG,dB; + dR=RGB[i1+RED]-RGB[i2+RED]; + dG=RGB[i1+GREEN]-RGB[i2+GREEN]; + dB=RGB[i1+BLUE]-RGB[i2+BLUE]; + return dR*dR+dG*dG+dB*dB; +} +/** + * \brief Missing reds and/or blues are reconstructed on a single row + * \param image_h three-row window, horizontal interpolation of row 1 is done + * \param image_v three-row window, vertical interpolation of row 1 is done + * \param w width of image + * \param h height of image. + * \param y row number from image which is under construction + * \param pos_code position code related to Bayer tiling in use + */ +static +int do_rb_ctr_row(unsigned char *image_h, unsigned char *image_v, int w, + int h, int y, int *pos_code) +{ + int x, bayer; + int value,value2,div,color; + /* + * pos_code[0] = red. green lrtb, blue diagonals + * pos_code[1] = green. red lr, blue tb + * pos_code[2] = green. blue lr, red tb + * pos_code[3] = blue. green lrtb, red diagonals + * + * The Red channel reconstruction is R=G+L(Rs-Gs), in which + * G = interpolated & known Green + * Rs = known Red + * Gs = values of G at the positions of Rs + * L()= should be a 2D lowpass filter, now we'll check + * them from a 3x3 square + * L-functions' convolution matrix is + * [1/4 1/2 1/4;1/2 1 1/2; 1/4 1/2 1/4] + * + * The Blue channel reconstruction uses exactly the same methods. + */ + for (x = 0; x < w; x++) + { + bayer = (x&1?0:1) + (y&1?0:2); + for (color=0; color < 3; color+=2) { + if ((color==RED && bayer == pos_code[3]) + || (color==BLUE + && bayer == pos_code[0])) { + value=value2=div=0; + if (x > 0 && y > 0) { + value += image_h[AD(x-1,0,w)+color] + -image_h[AD(x-1,0,w)+GREEN]; + value2+= image_v[AD(x-1,0,w)+color] + -image_v[AD(x-1,0,w)+GREEN]; + div++; + } + if (x > 0 && y < h-1) { + value += image_h[AD(x-1,2,w)+color] + -image_h[AD(x-1,2,w)+GREEN]; + value2+= image_v[AD(x-1,2,w)+color] + -image_v[AD(x-1,2,w)+GREEN]; + div++; + } + if (x < w-1 && y > 0) { + value += image_h[AD(x+1,0,w)+color] + -image_h[AD(x+1,0,w)+GREEN]; + value2+= image_v[AD(x+1,0,w)+color] + -image_v[AD(x+1,0,w)+GREEN]; + div++; + } + if (x < w-1 && y < h-1) { + value += image_h[AD(x+1,2,w)+color] + -image_h[AD(x+1,2,w)+GREEN]; + value2+= image_v[AD(x+1,2,w)+color] + -image_v[AD(x+1,2,w)+GREEN]; + div++; + } + image_h[AD(x,1,w)+color]= + CLAMP( + image_h[AD(x,1,w)+GREEN] + +value/div); + image_v[AD(x,1,w)+color]= + CLAMP(image_v[AD(x,1,w)+GREEN] + +value2/div); + } else if ((color==RED && bayer == pos_code[2]) + || (color==BLUE + && bayer == pos_code[1])) { + value=value2=div=0; + if (y > 0) { + value += image_h[AD(x,0,w)+color] + -image_h[AD(x,0,w)+GREEN]; + value2+= image_v[AD(x,0,w)+color] + -image_v[AD(x,0,w)+GREEN]; + div++; + } + if (y < h-1) { + value += image_h[AD(x,2,w)+color] + -image_h[AD(x,2,w)+GREEN]; + value2+= image_v[AD(x,2,w)+color] + -image_v[AD(x,2,w)+GREEN]; + div++; + } + image_h[AD(x,1,w)+color]= + CLAMP( + image_h[AD(x,1,w)+GREEN] + +value/div); + image_v[AD(x,1,w)+color]= + CLAMP( + image_v[AD(x,1,w)+GREEN] + +value2/div); + } else if ((color==RED && bayer == pos_code[1]) + || (color==BLUE + && bayer == pos_code[2])) { + value=value2=div=0; + if (x > 0) { + value += image_h[AD(x-1,1,w)+color] + -image_h[AD(x-1,1,w)+GREEN]; + value2+= image_v[AD(x-1,1,w)+color] + -image_v[AD(x-1,1,w)+GREEN]; + div++; + } + if (x < w-1) { + value += image_h[AD(x+1,1,w)+color] + -image_h[AD(x+1,1,w)+GREEN]; + value2+= image_v[AD(x+1,1,w)+color] + -image_v[AD(x+1,1,w)+GREEN]; + div++; + } + image_h[AD(x,1,w)+color]= + CLAMP( + image_h[AD(x,1,w)+GREEN] + +value/div); + image_v[AD(x,1,w)+color]= + CLAMP( + image_v[AD(x,1,w)+GREEN] + +value2/div); + } + } + } + return GP_OK; +} + + +/** + * \brief Missing greens are reconstructed on a single row + * \param image the image which is being reconstructed + * \param image_h three-row window, horizontal interpolation of row 1 is done + * \param image_v three-row window, vertical interpolation of row 1 is done + * \param w width of image + * \param h height of image. + * \param y row number from image which is under construction + * \param pos_code position code related to Bayer tiling in use + */ + +static +int do_green_ctr_row(unsigned char *image, unsigned char *image_h, + unsigned char *image_v, int w, int h, int y, int *pos_code) +{ + int x, bayer; + int value,div; + /* + * The horizontal green estimation on a red-green row is + * G(x) = (2*R(x)+2*G(x+1)+2*G(x-1)-R(x-2)-R(x+2))/4 + * The estimation on a green-blue row works in the same + * way. + */ + for (x = 0; x < w; x++) { + bayer = (x&1?0:1) + (y&1?0:2); + /* pos_code[0] = red. green lrtb, blue diagonals */ + /* pos_code[3] = blue. green lrtb, red diagonals */ + if ( bayer == pos_code[0] || bayer == pos_code[3]) { + div=value=0; + if (bayer==pos_code[0]) + value += 2*image[AD(x,y,w)+RED]; + else + value += 2*image[AD(x,y,w)+BLUE]; + div+=2; + if (x < (w-1)) { + value += 2*image[AD(x+1,y,w)+GREEN]; + div+=2; + } + if (x < (w-2)) { + if (bayer==pos_code[0]) + value -= image[AD(x+2,y,w)+RED]; + else + value -= image[AD(x+2,y,w)+BLUE]; + div--; + } + if (x > 0) { + value += 2*image[AD(x-1,y,w)+GREEN]; + div+=2; + } + if (x > 1) { + if (bayer==pos_code[0]) + value -= image[AD(x-2,y,w)+RED]; + else + value -= image[AD(x-2,y,w)+BLUE]; + div--; + } + image_h[AD(x,1,w)+GREEN] = CLAMP(value / div); + /* The method for vertical estimation is just like + * what is done for horizontal estimation, with only + * the obvious difference that it is done vertically. + */ + div=value=0; + if (bayer==pos_code[0]) + value += 2*image[AD(x,y,w)+RED]; + else + value += 2*image[AD(x,y,w)+BLUE]; + div+=2; + if (y < (h-1)) { + value += 2*image[AD(x,y+1,w)+GREEN]; + div+=2; + } + if (y < (h-2)) { + if (bayer==pos_code[0]) + value -= image[AD(x,y+2,w)+RED]; + else + value -= image[AD(x,y+2,w)+BLUE]; + div--; + } + if (y > 0) { + value += 2*image[AD(x,y-1,w)+GREEN]; + div+=2; + } + if (y > 1) { + if (bayer==pos_code[0]) + value -= image[AD(x,y-2,w)+RED]; + else + value -= image[AD(x,y-2,w)+BLUE]; + div--; + } + image_v[AD(x,1,w)+GREEN] = CLAMP(value / div); + + } + } + return GP_OK; +} + +/** + * \brief Differences are assigned scores across row 2 of buffer_v, buffer_h + * \param hom_buffer_h tabulation of scores for buffer_h + * \param hom_buffer_v tabulation of scores for buffer_v + * \param buffer_h three-row window, scores assigned for pixels in row 2 + * \param buffer_v three-row window, scores assigned for pixels in row 2 + * \param w pixel width of image and buffers + */ + +static +int get_diffs_row2(unsigned char * hom_buffer_h, unsigned char *hom_buffer_v, + unsigned char * buffer_h, unsigned char *buffer_v, int w) +{ + int i,j; + int RGBeps; + unsigned char Usize_h, Usize_v; + + for (j = 1; j < w-1; j++) { + i=3*j+9*w; + Usize_h=0; + Usize_v=0; + + /* + * Data collected here for adaptive estimates. First we take + * at the given pixel vertical diffs if working in window_v; + * left and right diffs if working in window_h. We then choose + * of these two diffs as a permissible epsilon-radius within + * which to work. Checking within this radius, we will + * compute scores for the various possibilities. The score + * added in each step is either 1, if the directional change + * is within the prescribed epsilon, or 0 if it is not. + */ + + RGBeps=MIN( + MAX(dRGB(i,i-3,buffer_h),dRGB(i,i+3,buffer_h)), + MAX(dRGB(i,i-3*w,buffer_v),dRGB(i,i+3*w,buffer_v)) + ); + /* + * The scores for the homogeneity mapping. These will be used + * in the choice algorithm to choose the best value. + */ + + if (dRGB(i,i-3,buffer_h) <= RGBeps) + Usize_h++; + if (dRGB(i,i-3,buffer_v) <= RGBeps) + Usize_v++; + if (dRGB(i,i+3,buffer_h) <= RGBeps) + Usize_h++; + if (dRGB(i,i+3,buffer_v) <= RGBeps) + Usize_v++; + if (dRGB(i,i-3*w,buffer_h)<= RGBeps) + Usize_h++; + if (dRGB(i,i-3*w,buffer_v) <= RGBeps) + Usize_v++; + if (dRGB(i,i+3*w,buffer_h) <= RGBeps) + Usize_h++; + if (dRGB(i,i+3*w,buffer_v) <= RGBeps) + Usize_v++; + hom_buffer_h[j+2*w]=Usize_h; + hom_buffer_v[j+2*w]=Usize_v; + } + return GP_OK; +} + +/** + * \brief Interpolate a expanded bayer array into an RGB image. + * + * \param image the linear RGB array as both input and output + * \param w width of the above array + * \param h height of the above array + * \param tile how the 2x2 bayer array is layed out + * + * This function interpolates a bayer array which has been pre-expanded + * by gp_bayer_expand() to an RGB image. It applies the method of adaptive + * homogeneity-directed demosaicing. + * + * \return a gphoto error code + * + * \par + * In outline, the interpolation algorithm used here does the + * following: + * + * \par + * In principle, the first thing which is done is to split off from the + * image two copies. In one of these, interpolation will be done in the + * vertical direction only, and in the other copy only in the + * horizontal direction. "Cross-color" data is used throughout, on the + * principle that it can be used as a corrector for brightness even if it is + * derived from the "wrong" color. Finally, at each pixel there is a choice + * criterion to decide whether to use the result of the vertical + * interpolation, the horizontal interpolation, or an average of the two. + * + * \par + * Memory use and speed are optimized by using two sliding windows, one + * for the vertical interpolation and the other for the horizontal + * interpolation instead of using two copies of the entire input image. The + * nterpolation and the choice algorithm are then implemented entirely within + * these windows, too. When this has been done, a completed row is written back + * to the image. Then the windows are moved, and the process repeats. + */ + +int gp_ahd_interpolate (unsigned char *image, int w, int h, BayerTile tile) +{ + int i, j, k, x, y; + int p[4]; + int color; + unsigned char *window_h, *window_v, *cur_window_h, *cur_window_v; + unsigned char *homo_h, *homo_v; + unsigned char *homo_ch, *homo_cv; + + window_h = calloc (w * 18, 1); + window_v = calloc (w * 18, 1); + homo_h = calloc (w*3, 1); + homo_v = calloc (w*3, 1); + homo_ch = calloc (w, 1); + homo_cv = calloc (w, 1); + if (!window_h || !window_v || !homo_h || !homo_v || !homo_ch || !homo_cv) { + free (window_h); + free (window_v); + free (homo_h); + free (homo_v); + free (homo_ch); + free (homo_cv); + GP_LOG_E ("Out of memory"); + return GP_ERROR_NO_MEMORY; + } + switch (tile) { + default: + case BAYER_TILE_RGGB: + case BAYER_TILE_RGGB_INTERLACED: + p[0] = 0; p[1] = 1; p[2] = 2; p[3] = 3; + break; + case BAYER_TILE_GRBG: + case BAYER_TILE_GRBG_INTERLACED: + p[0] = 1; p[1] = 0; p[2] = 3; p[3] = 2; + break; + case BAYER_TILE_BGGR: + case BAYER_TILE_BGGR_INTERLACED: + p[0] = 3; p[1] = 2; p[2] = 1; p[3] = 0; + break; + case BAYER_TILE_GBRG: + case BAYER_TILE_GBRG_INTERLACED: + p[0] = 2; p[1] = 3; p[2] = 0; p[3] = 1; + break; + } + + /* + * Once the algorithm is initialized and running, one cycle of the + * algorithm can be described thus: + * + * Step 1 + * Write from row y+3 of the image to row 5 in window_v and in + * window_h. + * + * Step 2 + * Interpolate missing green data on row 5 in each window. Data from + * the image only is needed for this, not data from the windows. + * + * Step 3 + * Now interpolate the missing red or blue data on row 4 in both + * windows. We need to do this inside the windows; what is required + * is the real or interpolated green data from rows 3 and 5, and the + * real data on rows 3 and 5 about the color being interpolated on + * row 4, so all of this information is available in the two windows. + * Note that for this operation we are interpolating the center row + * of cur_window_v and cur_window_h. + * + * Step 4 + * Now we have five completed rows in each window, 0 through 4 (rows + * 0 - 3 having been done in previous cycles). Completed rows 0 - 4 + * are what is required in order to run the choice algorithm at + * each pixel location across row 2, to decide whether to choose the + * data for that pixel from window_v or from window_h. We run the + * choice algorithm, sending the data from row 2 over to row y of the + * image, pixel by pixel. + * + * Step 5 + * Move the windows down (or the data in them up) by one row. + * Increment y, the row counter for the image. Go to Step 1. + * + * Initialization of the algorithm clearly requires some special + * steps, which are described below as they occur. + */ + cur_window_h = window_h+9*w; + cur_window_v = window_v+9*w; + /* + * Getting started. Copy row 0 from image to line 4 of windows + * and row 1 from image to line 5 of windows. + */ + memcpy (window_h+12*w, image, 6*w); + memcpy (window_v+12*w, image, 6*w); + /* + * Now do the green interpolation in row 4 of the windows, the + * "center" row of cur_window_v and _h, with the help of image row 0 + * and image row 1. + */ + do_green_ctr_row(image, cur_window_h, cur_window_v, w, h, 0, p); + /* this does the green interpolation in row 5 of the windows */ + do_green_ctr_row(image, cur_window_h+3*w, cur_window_v+3*w, w, h, 1, p); + /* + * we are now ready to do the rb interpolation on row 4 of the + * windows, which relates to row 0 of the image. + */ + do_rb_ctr_row(cur_window_h, cur_window_v, w, h, 0, p); + /* + * Row row 4, which will be mapped to image row 0, is finished in both + * windows. Row 5 has had only the green interpolation. + */ + memmove(window_h, window_h+3*w,15*w); + memmove(window_v, window_v+3*w,15*w); + memcpy (window_h+15*w, image+6*w, 3*w); + memcpy (window_v+15*w, image+6*w, 3*w); + /* + * now we have shifted backwards and we have row 0 of the image in + * row 3 of the windows. Row 4 of the window contains row 1 of image + * and needs the rb interpolation. We have copied row 2 of the image + * into row 5 of the windows and need to do green interpolation. + */ + do_green_ctr_row(image, cur_window_h+3*w, cur_window_v+3*w, w, h, 2, p); + do_rb_ctr_row(cur_window_h, cur_window_v, w, h, 1, p); + memmove (window_h, window_h+3*w, 15*w); + memmove(window_v, window_v+3*w,15*w); + /* + * We have shifted one more time. Row 2 of the two windows is + * the original row 0 of the image, now fully interpolated. Rows 3 + * and 4 of the windows contain the original rows 1 and 2 of the + * image, also fully interpolated. They will be used while applying + * the choice algorithm on row 2, in order to write it back to row + * 0 of the image. The algorithm is now fully initialized. We enter + * the loop which will complete the algorithm for the whole image. + */ + + for (y = 0; y < h; y++) { + if(y= 0) && ( j < w*3)) { + homo_ch[x]+=homo_h[j]; + homo_cv[x]+=homo_v[j]; + } + } + } + for (color=0; color < 3; color++) { + if (homo_ch[x] > homo_cv[x]) + image[3*y*w+3*x+color] + = window_h[3*x+6*w+color]; + else if (homo_ch[x] < homo_cv[x]) + image[3*y*w+3*x+color] + = window_v[3*x+6*w+color]; + else + image[3*y*w+3*x+color] + = (window_v[3*x+6*w+color]+ + window_h[3*x+6*w+color])/2; + } + } + /* Move the windows; loop back if not finished. */ + memmove(window_v, window_v+3*w, 15*w); + memmove(window_h, window_h+3*w, 15*w); + memmove (homo_h,homo_h+w,2*w); + memmove (homo_v,homo_v+w,2*w); + } + free(window_v); + free(window_h); + free(homo_h); + free(homo_v); + free(homo_ch); + free(homo_cv); + return GP_OK; +} + +/** + * \brief Convert a bayer raster style image to a RGB raster. + * + * \param input the bayer CCD array as linear input + * \param w width of the above array + * \param h height of the above array + * \param output RGB output array (linear, 3 bytes of R,G,B for every pixel) + * \param tile how the 2x2 bayer array is layed out + * + * A regular CCD uses a raster of 2 green, 1 blue and 1 red components to + * cover a 2x2 pixel area. The camera or the driver then interpolates a + * 2x2 RGB pixel set out of this data. + * + * This function expands and interpolates the bayer array to 3 times larger + * bitmap with RGB values interpolated. It does the same job as + * gp_bayer_decode() but it calls gp_ahd_interpolate() instead of calling + * gp_bayer_interpolate(). Use this instead of gp_bayer_decode() if you + * want to use or to test AHD interpolation in a camera library. + * \return a gphoto error code + */ + +int +gp_ahd_decode (unsigned char *input, int w, int h, unsigned char *output, + BayerTile tile) +{ + gp_bayer_expand (input, w, h, output, tile); + gp_ahd_interpolate (output, w, h, tile); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/bayer.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/bayer.c new file mode 100644 index 00000000..36414017 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/bayer.c @@ -0,0 +1,378 @@ +/** \file bayer.c + * \brief Bayer array conversion routines. + * + * \author Copyright 2001 Lutz Mueller + * \author Copyright 2007 Theodore Kilgore + * + * \par + * gp_bayer_accrue() from Theodore Kilgore + * contains suggestions by B. R. Harris (e-mail address disappeared) and + * Werner Eugster + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "bayer.h" + +#include +#include + +static const int tile_colours[8][4] = { + {0, 1, 1, 2}, + {1, 0, 2, 1}, + {2, 1, 1, 0}, + {1, 2, 0, 1}, + {0, 1, 1, 2}, + {1, 0, 2, 1}, + {2, 1, 1, 0}, + {1, 2, 0, 1}}; + +#define RED 0 +#define GREEN 1 +#define BLUE 2 + +static int +gp_bayer_accrue (unsigned char *image, int w, int h, int x0, int y0, + int x1, int y1, int x2, int y2, int x3, int y3, int colour); + +/** + * \brief Expand a bayer raster style image to a RGB raster. + * + * \param input the bayer CCD array as linear input + * \param w width of the above array + * \param h height of the above array + * \param output RGB output array (linear, 3 bytes of R,G,B for every pixel) + * \param tile how the 2x2 bayer array is layed out + * + * A regular CCD uses a raster of 2 green, 1 blue and 1 red components to + * cover a 2x2 pixel area. The camera or the driver then interpolates a + * 2x2 RGB pixel set out of this data. + * + * This function expands the bayer array to 3 times larger bitmap with + * RGB values copied as-is. Pixels were no sensor was there are 0. + * The data is supposed to be processed further by for instance gp_bayer_interpolate(). + * + * \return a gphoto error code + */ +int +gp_bayer_expand (unsigned char *input, int w, int h, unsigned char *output, + BayerTile tile) +{ + int x, y, i; + int colour, bayer; + unsigned char *ptr = input; + + gp_log (GP_LOG_DEBUG, "bayer", "w=%d, h=%d\n", w, h); + switch (tile) { + + case BAYER_TILE_RGGB: + case BAYER_TILE_GRBG: + case BAYER_TILE_BGGR: + case BAYER_TILE_GBRG: + + for (y = 0; y < h; ++y) + for (x = 0; x < w; ++x, ++ptr) { + bayer = (x&1?0:1) + (y&1?0:2); + + colour = tile_colours[tile][bayer]; + + i = (y * w + x) * 3; + + output[i+RED] = 0; + output[i+GREEN] = 0; + output[i+BLUE] = 0; + output[i+colour] = *ptr; + } + break; + + case BAYER_TILE_RGGB_INTERLACED: + case BAYER_TILE_GRBG_INTERLACED: + case BAYER_TILE_BGGR_INTERLACED: + case BAYER_TILE_GBRG_INTERLACED: + + + for (y = 0; y < h; ++y, ptr+=w) + for (x = 0; x < w; ++x) { + bayer = (x&1?0:1) + (y&1?0:2); + + colour = tile_colours[tile][bayer]; + + i = (y * w + x) * 3; + + output[i+RED] = 0; + output[i+GREEN] = 0; + output[i+BLUE] = 0; + output[i+colour] = (x&1)? ptr[x>>1]:ptr[(w>>1)+(x>>1)]; + } + break; + } + + return (GP_OK); +} + +#define AD(x, y, w) ((y)*(w)*3+3*(x)) + +/** + * \brief Interpolate a expanded bayer array into an RGB image. + * + * \param image the linear RGB array as both input and output + * \param w width of the above array + * \param h height of the above array + * \param tile how the 2x2 bayer array is layed out + * + * This function interpolates a bayer array which has been pre-expanded + * by gp_bayer_expand() to an RGB image. It uses various interpolation + * methods, also see gp_bayer_accrue(). + * + * \return a gphoto error code + */ +int +gp_bayer_interpolate (unsigned char *image, int w, int h, BayerTile tile) +{ + int x, y, bayer; + int p0, p1, p2; + int value, div ; + + if (w < 2 || h < 2) return GP_ERROR; + + switch (tile) { + default: + case BAYER_TILE_RGGB: + case BAYER_TILE_RGGB_INTERLACED: + p0 = 0; p1 = 1; p2 = 2; + break; + case BAYER_TILE_GRBG: + case BAYER_TILE_GRBG_INTERLACED: + p0 = 1; p1 = 0; p2 = 3; + break; + case BAYER_TILE_BGGR: + case BAYER_TILE_BGGR_INTERLACED: + p0 = 3; p1 = 2; p2 = 1; + break; + case BAYER_TILE_GBRG: + case BAYER_TILE_GBRG_INTERLACED: + p0 = 2; p1 = 3; p2 = 0; + break; + } + + for (y = 0; y < h; y++) + for (x = 0; x < w; x++) { + bayer = (x&1?0:1) + (y&1?0:2); + + if ( bayer == p0 ) { + + /* red. green lrtb, blue diagonals */ + image[AD(x,y,w)+GREEN] = + gp_bayer_accrue(image, w, h, x-1, y, x+1, y, x, y-1, x, y+1, GREEN) ; + + image[AD(x,y,w)+BLUE] = + gp_bayer_accrue(image, w, h, x+1, y+1, x-1, y-1, x-1, y+1, x+1, y-1, BLUE) ; + + } else if (bayer == p1) { + + /* green. red lr, blue tb */ + div = value = 0; + if (x < (w - 1)) { + value += image[AD(x+1,y,w)+RED]; + div++; + } + if (x) { + value += image[AD(x-1,y,w)+RED]; + div++; + } + image[AD(x,y,w)+RED] = value / div; + + div = value = 0; + if (y < (h - 1)) { + value += image[AD(x,y+1,w)+BLUE]; + div++; + } + if (y) { + value += image[AD(x,y-1,w)+BLUE]; + div++; + } + image[AD(x,y,w)+BLUE] = value / div; + + } else if ( bayer == p2 ) { + + /* green. blue lr, red tb */ + div = value = 0; + + if (x < (w - 1)) { + value += image[AD(x+1,y,w)+BLUE]; + div++; + } + if (x) { + value += image[AD(x-1,y,w)+BLUE]; + div++; + } + image[AD(x,y,w)+BLUE] = value / div; + + div = value = 0; + if (y < (h - 1)) { + value += image[AD(x,y+1,w)+RED]; + div++; + } + if (y) { + value += image[AD(x,y-1,w)+RED]; + div++; + } + image[AD(x,y,w)+RED] = value / div; + + } else { + + /* blue. green lrtb, red diagonals */ + image[AD(x,y,w)+GREEN] = + gp_bayer_accrue (image, w, h, x-1, y, x+1, y, x, y-1, x, y+1, GREEN) ; + + image[AD(x,y,w)+RED] = + gp_bayer_accrue (image, w, h, x+1, y+1, x-1, y-1, x-1, y+1, x+1, y-1, RED) ; + } + } + + return (GP_OK); +} +/** + * \brief interpolate one pixel from a bayer 2x2 raster + * + * For red and blue data, compare the four surrounding values. If three + * values are all one side of the mean value, the fourth value is ignored. + * This will sharpen boundaries. Treatment of green data looks for vertical and + * horizontal edges. Any such which are discovered get special treatment. + * Otherwise, the same comparison test is applied which is applied for red + * and blue. Standard algorithm is applied without change at edges of the image. + */ +static int +gp_bayer_accrue (unsigned char *image, int w, int h, int x0, int y0, + int x1, int y1, int x2, int y2, int x3, int y3, int colour) +{ int x [4] ; + int y [4] ; + int value [4] ; + int above [4] ; + int counter ; + int sum_of_values; + int average ; + int i ; + x[0] = x0 ; x[1] = x1 ; x[2] = x2 ; x[3] = x3 ; + y[0] = y0 ; y[1] = y1 ; y[2] = y2 ; y[3] = y3 ; + + /* special treatment for green */ + counter = sum_of_values = 0 ; + if(colour == GREEN) + { + /* We need to make sure that horizontal or vertical lines + * become horizontal and vertical lines even in this + * interpolation procedure. Therefore, we determine whether + * we might have such a line structure. + */ + + for (i = 0 ; i < 4 ; i++) + { if ((x[i] >= 0) && (x[i] < w) && (y[i] >= 0) && (y[i] < h)) + { + value [i] = image[AD(x[i],y[i],w) + colour] ; + counter++; + } + else + { + value [i] = -1 ; + } + } + if(counter == 4) + { + /* It is assumed that x0,y0 and x1,y1 are on a + * horizontal line and + * x2,y2 and x3,y3 are on a vertical line + */ + int hdiff ; + int vdiff ; + hdiff = value [1] - value [0] ; + hdiff *= hdiff ; /* Make value positive by squaring */ + vdiff = value [3] - value [2] ; + vdiff *= vdiff ; /* Make value positive by squaring */ + if(hdiff > 2*vdiff) + { + /* We might have a vertical structure here */ + return (value [3] + value [2])/2 ; + } + if(vdiff > 2*hdiff) + { + /* we might have a horizontal structure here */ + return (value [1] + value [0])/2 ; + } + /* else we proceed as with blue and red */ + } + /* if we do not have four points then we proceed as we do for + * blue and red */ + } + + /* for blue and red */ + counter = sum_of_values = 0 ; + for (i = 0 ; i < 4 ; i++) + { if ((x[i] >= 0) && (x[i] < w) && (y[i] >= 0) && (y[i] < h)) + { value [i] = image[AD(x[i],y[i],w) + colour] ; + sum_of_values += value [i] ; + counter++ ; + } + } + average = sum_of_values / counter ; + if (counter < 4) return average ; + /* Less than four surrounding - just take average */ + counter = 0 ; + for (i = 0 ; i < 4 ; i++) + { above[i] = value[i] > average ; + if (above[i]) counter++ ; + } + /* Note: counter == 0 indicates all values the same */ + if ((counter == 2) || (counter == 0)) return average ; + sum_of_values = 0 ; + for (i = 0 ; i < 4 ; i++) + { if ((counter == 3) == above[i]) + { sum_of_values += value[i] ; } + } + return sum_of_values / 3 ; +} + +/** + * \brief Convert a bayer raster style image to a RGB raster. + * + * \param input the bayer CCD array as linear input + * \param w width of the above array + * \param h height of the above array + * \param output RGB output array (linear, 3 bytes of R,G,B for every pixel) + * \param tile how the 2x2 bayer array is layed out + * + * A regular CCD uses a raster of 2 green, 1 blue and 1 red components to + * cover a 2x2 pixel area. The camera or the driver then interpolates a + * 2x2 RGB pixel set out of this data. + * + * This function expands and interpolates the bayer array to 3 times larger + * bitmap with RGB values interpolated. + * + * \return a gphoto error code + */ +int +gp_bayer_decode (unsigned char *input, int w, int h, unsigned char *output, + BayerTile tile) +{ + gp_bayer_expand (input, w, h, output, tile); + gp_bayer_interpolate (output, w, h, tile); + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/bayer.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/bayer.h new file mode 100644 index 00000000..bfef7b05 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/bayer.h @@ -0,0 +1,61 @@ +/** \file + * + * \author Copyright 2001 Lutz Mueller + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __BAYER_H__ +#define __BAYER_H__ + +/** + * \brief how the bayer CCD array is layed out + * + * This enumeration defines how the CCD bayer array is laid out. + */ +typedef enum { + BAYER_TILE_RGGB = 0, /**< \brief raster is RG,GN */ + BAYER_TILE_GRBG = 1, /**< \brief raster is GR,BG */ + BAYER_TILE_BGGR = 2, /**< \brief raster is BG,GR */ + BAYER_TILE_GBRG = 3, /**< \brief raster is RG,GB */ + BAYER_TILE_RGGB_INTERLACED = 4, /**< \brief scanline order: R1,G1,R2,G2,...,G1,B1,G2,B2,... */ + BAYER_TILE_GRBG_INTERLACED = 5, /**< \brief scanline order: G1,R1,R2,G2,...,B1,G1,B2,G2,... */ + BAYER_TILE_BGGR_INTERLACED = 6, /**< \brief scanline order: B1,G1,R2,G2,...,G1,R1,G2,R2,... */ + BAYER_TILE_GBRG_INTERLACED = 7, /**< \brief scanline order: G1,B1,G2,B2,...,R1,G1,R2,G2,... */ +} BayerTile; + +int gp_bayer_expand (unsigned char *input, int w, int h, unsigned char *output, + BayerTile tile); +int gp_bayer_decode (unsigned char *input, int w, int h, unsigned char *output, + BayerTile tile); +int gp_bayer_interpolate (unsigned char *image, int w, int h, BayerTile tile); +/* + * The following two functions use an alternative procedure called Adaptive + * Homogeneity-directed demosaicing instead of the standard bilinear + * interpolation with basic edge-detection method used in the previous two + * functions. To use or test this method of Bayer interpolation, just use + * gp_ahd_decode() in the same way and in the same place as gp_bayer_decode() + * is used. + */ + +int gp_ahd_decode (unsigned char *input, int w, int h, unsigned char *output, + BayerTile tile); +int gp_ahd_interpolate (unsigned char *image, int w, int h, BayerTile tile); + +#endif /* __BAYER_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/exif.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/exif.c new file mode 100644 index 00000000..cd579590 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/exif.c @@ -0,0 +1,40 @@ +/** \file + * \brief Old EXIF file library for GPHOTO package + + * \author Copyright 2017 Marcus Meissner + + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA +*/ + +/* Contained some EXIF functions previously. We now defer to libexif usage. */ + +#include "exif.h" + +#include + +/* + * Gets the thumbnail of an EXIF image. + * The thumbnail size is provided + * + * No longer provided, use libexif directly please. + */ +unsigned char *gpi_exif_get_thumbnail_and_size(void *exifdat, long *size) { return NULL; } + +/* No longer provided */ +int gpi_exif_stat(void *exifdata) { return -1; } diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/exif.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/exif.h new file mode 100644 index 00000000..ac8587e7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/exif.h @@ -0,0 +1,26 @@ +/** \file + * + * EXIF file format support library. This API allows to parse, read and + * modify EXIF data structures. It provides a low-level API which allows + * to manipulate EXIF tags in a generic way, and a higher-level API which + * provides more advanced functions such as comment editing, thumbnail + * extraction, etc. + * + * In the future, vendor-proprietary exif extensions might be supported. + */ + +#ifndef _gphoto_exif_ +#define _gphoto_exif_ + +/* + * Not used anymore, use libexif if necessary. + */ +unsigned char *gpi_exif_get_thumbnail_and_size(void *exifdat, long *size); + +/* + * Not used anymore, use libexif if necessary. + */ +int gpi_exif_stat(void *exifdata); + + +#endif /* _gphoto_exif_ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gamma.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gamma.c new file mode 100644 index 00000000..a3607f8c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gamma.c @@ -0,0 +1,86 @@ +/** \file gamma.c + * + * \author Copyright 2001 Lutz Mueller + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "gamma.h" + +#include + +#include + +static int +gp_gamma_correct_triple (unsigned char *table_red, + unsigned char *table_green, + unsigned char *table_blue, + unsigned char *data, unsigned int size) +{ + unsigned int x; + + for (x = 0; x < (size * 3); x += 3) { + data[x + 0] = table_red [data[x + 0]]; + data[x + 1] = table_green[data[x + 1]]; + data[x + 2] = table_blue [data[x + 2]]; + } + + return (GP_OK); +} + +/** + * \brief Gamma correction + * + * Corrects size pixels within the table with a given Gamma + * correction table. + * + * \param table the gamma correction table as generated by gp_gamma_fill_table() + * \param data the data do process, both input and output + * \param size in number of pixels (RGB byte pairs) + * + * \returns a gphoto error code + */ +int +gp_gamma_correct_single (unsigned char *table, unsigned char *data, + unsigned int size) +{ + return (gp_gamma_correct_triple (table, table, table, data, size)); +} + +/** + * \brief Initialize a Gamma conversion table + * + * Initializes the gamma conversion table for later use by gp_gamma_correct_single(). + * Requires a 256 byte array as table. + * \param table a 256 byte array of unsigned char + * \param g gamma correction value + * + * \returns a gphoto error code + */ +int +gp_gamma_fill_table (unsigned char *table, double g) +{ + unsigned int x; + + for (x = 0; x < 256; x++) + table[x] = 255 * pow ((double) x/255., g); + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gamma.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gamma.h new file mode 100644 index 00000000..b03a97dd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gamma.h @@ -0,0 +1,31 @@ +/** \file + * + * \author Copyright 2001 Lutz Mueller + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GAMMA_H__ +#define __GAMMA_H__ + +int gp_gamma_fill_table (unsigned char *table, double g); +int gp_gamma_correct_single (unsigned char *table, unsigned char *data, + unsigned int data_size); + +#endif /* __GAMMA_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-abilities-list.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-abilities-list.c new file mode 100644 index 00000000..67249a19 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-abilities-list.c @@ -0,0 +1,706 @@ +/** \file gphoto2-abilities-list.c + * \brief List of supported camera models including their abilities. + * + * \author Copyright 2000 Scott Fritzinger + * + * \par + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include + +#include +#include +#include + +#include + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define bind_textdomain_codeset(Domain,Charset) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +/** \internal */ +#define CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} + +/** \internal */ +struct _CameraAbilitiesList { + int count; + int maxcount; + CameraAbilities *abilities; +}; + +/** \internal */ +static int gp_abilities_list_lookup_id (CameraAbilitiesList *, const char *); +/** \internal */ +static int gp_abilities_list_sort (CameraAbilitiesList *); + +/** + * \brief Set the current character codeset libgphoto2 is operating in. + * + * Set the codeset for all messages returned by libgphoto2. + * \param codeset New codeset for the messages. For instance "utf-8". + * \return old codeset as returned from bind_textdomain_codeset(). + * + * You would then call gp_abilities_list_load() in order to + * populate it. + */ +const char* +gp_message_codeset (const char *codeset) +{ + gp_port_message_codeset (codeset); + return bind_textdomain_codeset (GETTEXT_PACKAGE, codeset); +} + +/** + * \brief Allocate the memory for a new abilities list. + * + * Function to allocate the memory for a new abilities list. + * \param list CameraAbilitiesList object to initialize + * \return gphoto2 error code + * + * You would then call gp_abilities_list_load() in order to + * populate it. + */ +int +gp_abilities_list_new (CameraAbilitiesList **list) +{ + C_PARAMS (list); + + /* + * We do this here because everybody needs to call this function + * first before accessing a camera. Pretty ugly, but I don't know + * an other way without introducing a global initialization + * function... + */ + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); + + C_MEM (*list = calloc (1, sizeof (CameraAbilitiesList))); + + return (GP_OK); +} + +/** + * \brief Free the given CameraAbilitiesList object. + * + * \param list a CameraAbilitiesList + * \return a gphoto2 error code + */ +int +gp_abilities_list_free (CameraAbilitiesList *list) +{ + C_PARAMS (list); + + CHECK_RESULT (gp_abilities_list_reset (list)); + + free (list); + + return (GP_OK); +} + + +typedef struct { + CameraList *list; + int result; +} foreach_data_t; + + +static int +foreach_func (const char *filename, lt_ptr data) +{ + foreach_data_t *fd = data; + CameraList *list = fd->list; + + GP_LOG_D ("Found '%s'.", filename); + fd->result = gp_list_append (list, filename, NULL); + + return ((fd->result == GP_OK)?0:1); +} + + +int +gp_abilities_list_load_dir (CameraAbilitiesList *list, const char *dir, + GPContext *context) +{ + CameraLibraryIdFunc id; + CameraLibraryAbilitiesFunc ab; + CameraText text; + int ret, x, old_count, new_count; + int i, p; + const char *filename; + CameraList *flist; + int count; + lt_dlhandle lh; + + C_PARAMS (list && dir); + + GP_LOG_D ("Using ltdl to load camera libraries from '%s'...", dir); + CHECK_RESULT (gp_list_new (&flist)); + ret = gp_list_reset (flist); + if (ret < GP_OK) { + gp_list_free (flist); + return ret; + } + if (1) { /* a new block in which we can define a temporary variable */ + foreach_data_t foreach_data = { NULL, GP_OK }; + foreach_data.list = flist; + lt_dlinit (); + lt_dladdsearchdir (dir); + ret = lt_dlforeachfile (dir, foreach_func, &foreach_data); + lt_dlexit (); + if (ret != 0) { + gp_list_free (flist); + GP_LOG_E ("Internal error looking for camlibs (%d)", ret); + gp_context_error (context, + _("Internal error looking for camlibs. " + "(path names too long?)")); + return (foreach_data.result!=GP_OK)?foreach_data.result:GP_ERROR; + } + } + count = gp_list_count (flist); + if (count < GP_OK) { + gp_list_free (flist); + return ret; + } + GP_LOG_D ("Found %i camera drivers.", count); + lt_dlinit (); + p = gp_context_progress_start (context, count, + _("Loading camera drivers from '%s'..."), dir); + for (i = 0; i < count; i++) { + ret = gp_list_get_name (flist, i, &filename); + if (ret < GP_OK) { + gp_list_free (flist); + return ret; + } + lh = lt_dlopenext (filename); + if (!lh) { + GP_LOG_D ("Failed to load '%s': %s.", filename, + lt_dlerror ()); + continue; + } + + /* camera_id */ + id = lt_dlsym (lh, "camera_id"); + if (!id) { + GP_LOG_D ("Library '%s' does not seem to " + "contain a camera_id function: %s", + filename, lt_dlerror ()); + lt_dlclose (lh); + continue; + } + + /* + * Make sure the camera driver hasn't been + * loaded yet. + */ + if (id (&text) != GP_OK) { + lt_dlclose (lh); + continue; + } + if (gp_abilities_list_lookup_id (list, text.text) >= 0) { + lt_dlclose (lh); + continue; + } + + /* camera_abilities */ + ab = lt_dlsym (lh, "camera_abilities"); + if (!ab) { + GP_LOG_D ("Library '%s' does not seem to " + "contain a camera_abilities function: " + "%s", filename, lt_dlerror ()); + lt_dlclose (lh); + continue; + } + + old_count = gp_abilities_list_count (list); + if (old_count < 0) { + lt_dlclose (lh); + continue; + } + + if (ab (list) != GP_OK) { + lt_dlclose (lh); + continue; + } + + /* do not free the library in valgrind mode */ +#if !defined(VALGRIND) + lt_dlclose (lh); +#endif + + new_count = gp_abilities_list_count (list); + if (new_count < 0) + continue; + + /* Copy in the core-specific information */ + for (x = old_count; x < new_count; x++) { + strcpy (list->abilities[x].id, text.text); + strcpy (list->abilities[x].library, filename); + } + + gp_context_progress_update (context, p, i); + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) { + lt_dlexit (); + gp_list_free (flist); + return (GP_ERROR_CANCEL); + } + } + gp_context_progress_stop (context, p); + lt_dlexit (); + gp_list_free (flist); + + return (GP_OK); +} + + +/** + * \brief Scans the system for camera drivers. + * + * \param list a CameraAbilitiesList + * \param context a GPContext + * \return a gphoto2 error code + * + * All supported camera models will then be added to the list. + * + */ +int +gp_abilities_list_load (CameraAbilitiesList *list, GPContext *context) +{ + const char *camlib_env = getenv(CAMLIBDIR_ENV); + const char *camlibs = (camlib_env != NULL)?camlib_env:CAMLIBS; + C_PARAMS (list); + + CHECK_RESULT (gp_abilities_list_load_dir (list, camlibs, context)); + CHECK_RESULT (gp_abilities_list_sort (list)); + + return (GP_OK); +} + + +static int +gp_abilities_list_detect_usb (CameraAbilitiesList *list, + int *ability, GPPort *port) +{ + int i, count, res = GP_ERROR_IO_USB_FIND; + + CHECK_RESULT (count = gp_abilities_list_count (list)); + + /* Detect USB cameras */ + GP_LOG_D ("Auto-detecting USB cameras..."); + *ability = -1; + for (i = 0; i < count; i++) { + int v, p, c, s; + + if (!(list->abilities[i].port & port->type)) + continue; + + v = list->abilities[i].usb_vendor; + p = list->abilities[i].usb_product; + if (v) { + res = gp_port_usb_find_device(port, v, p); + if (res == GP_OK) { + GP_LOG_D ("Found '%s' (0x%x,0x%x)", + list->abilities[i].model, v, p); + *ability = i; + } else if (res < 0 && res != GP_ERROR_IO_USB_FIND) { + /* another error occurred. + * perhaps we should better + * report this to the calling + * method? + */ + GP_LOG_D ( + "gp_port_usb_find_device(vendor=0x%x, " + "product=0x%x) returned %i, clearing " + "error message on port", v, p, res); + } + + if (res != GP_ERROR_IO_USB_FIND) + return res; + } + + c = list->abilities[i].usb_class; + s = list->abilities[i].usb_subclass; + p = list->abilities[i].usb_protocol; + if (c) { + res = gp_port_usb_find_device_by_class(port, c, s, p); + if (res == GP_OK) { + GP_LOG_D ("Found '%s' (0x%x,0x%x,0x%x)", + list->abilities[i].model, c, s, p); + *ability = i; + } else if (res < 0 && res != GP_ERROR_IO_USB_FIND) { + /* another error occurred. + * perhaps we should better + * report this to the calling + * method? + */ + GP_LOG_D ( + "gp_port_usb_find_device_by_class(" + "class=0x%x, subclass=0x%x, " + "protocol=0x%x) returned %i, " + "clearing error message on port", + c, s, p, res); + } + + if (res != GP_ERROR_IO_USB_FIND) + return res; + } + } + + return res; +} + + +/** + * \param list a CameraAbilitiesList + * \param info_list the GPPortInfoList of ports to use for detection + * \param l a #CameraList that contains the autodetected cameras after the call + * \param context a #GPContext + * + * Tries to detect any camera connected to the computer using the supplied + * list of supported cameras and the supplied info_list of ports. + * + * \return a gphoto2 error code + */ +int +gp_abilities_list_detect (CameraAbilitiesList *list, + GPPortInfoList *info_list, CameraList *l, + GPContext *context) +{ + GPPortInfo info; + GPPort *port; + int i, info_count; + + C_PARAMS (list && info_list && l); + + gp_list_reset (l); + + CHECK_RESULT (info_count = gp_port_info_list_count (info_list)); + + CHECK_RESULT (gp_port_new (&port)); + for (i = 0; i < info_count; i++) { + int res; + char *xpath; + GPPortType type; + + CHECK_RESULT (gp_port_info_list_get_info (info_list, i, &info)); + CHECK_RESULT (gp_port_set_info (port, info)); + gp_port_info_get_type (info, &type); + res = gp_port_info_get_path (info, &xpath); + if (res abilities[ability].model, + xpath); + } else if (res < 0) + gp_port_set_error (port, NULL); + + break; + } + case GP_PORT_DISK: { + char *s, path[1024]; + struct stat stbuf; + + s = strchr (xpath, ':'); + if (!s) + break; + s++; + snprintf (path, sizeof(path), "%s/DCIM", s); + if (-1 == stat(path, &stbuf)) { + snprintf (path, sizeof(path), "%s/dcim", s); + if (-1 == stat(path, &stbuf)) + continue; + } + gp_list_append (l, "Mass Storage Camera", xpath); + break; + } + case GP_PORT_PTPIP: { + char *s; + + s = strchr (xpath, ':'); + if (!s) break; + s++; + if (!strlen(s)) break; + gp_list_append (l, "PTP/IP Camera", xpath); + break; + } + default: + /* + * We currently cannot detect any cameras on this + * port + */ + break; + } + } + + gp_port_free (port); + + return (GP_OK); +} + + +/** + * \brief Remove first colon from string, if any. Replace it by a space. + * \param str a char * string + */ +static void +remove_colon_from_string (char *str) +{ + char *ch; + ch = strchr(str, ':'); + if (ch) { + *ch = ' '; + } +} + + +/** + * \brief Append the abilities to the list. + * \param list CameraAbilitiesList + * \param abilities CameraAbilities + * \return a gphoto2 error code + * + * This function is called by a camera library on camera_abilities() + * in order to inform libgphoto2 about a supported camera model. + * + */ +int +gp_abilities_list_append (CameraAbilitiesList *list, CameraAbilities abilities) +{ + C_PARAMS (list); + + if (list->count == list->maxcount) { + C_MEM (list->abilities = realloc (list->abilities, + sizeof (CameraAbilities) * (list->maxcount + 100))); + list->maxcount += 100; + } + + memcpy (&(list->abilities [list->count]), &abilities, + sizeof (CameraAbilities)); + + /* FIXME: We replace the colon by a space in the model string + * This keeps backward compatibility until we have + * thought of and implemented something better. + */ + remove_colon_from_string(list->abilities[list->count].model); + + list->count++; + + return (GP_OK); +} + + +/** + * \brief Reset the list. + * \param list a CameraAbilitiesList + * \return a gphoto2 error code + */ +int +gp_abilities_list_reset (CameraAbilitiesList *list) +{ + C_PARAMS (list); + + free (list->abilities); + list->abilities = NULL; + list->count = 0; + list->maxcount = 0; + + return (GP_OK); +} + + +/** + * \brief Count the entries in the supplied list. + * \param list a #CameraAbilitiesList + * \returns The number of entries or a gphoto2 error code + */ +int +gp_abilities_list_count (CameraAbilitiesList *list) +{ + C_PARAMS (list); + + return (list->count); +} + +static int +cmp_abilities (const void *a, const void *b) { + const CameraAbilities *ca = a; + const CameraAbilities *cb = b; + + return strcasecmp (ca->model, cb->model); +} + +static int +gp_abilities_list_sort (CameraAbilitiesList *list) +{ + C_PARAMS (list); + + qsort (list->abilities, list->count, sizeof(CameraAbilities), cmp_abilities); + return (GP_OK); +} + + +static int +gp_abilities_list_lookup_id (CameraAbilitiesList *list, const char *id) +{ + int x; + + C_PARAMS (list && id); + + for (x = 0; x < list->count; x++) + if (!strcmp (list->abilities[x].id, id)) + return (x); + + return (GP_ERROR); +} + + +/** + * \brief Search the list for an entry of given model name + * \param list a #CameraAbilitiesList + * \param model a camera model name + * \return Index of entry or gphoto2 error code + */ +int +gp_abilities_list_lookup_model (CameraAbilitiesList *list, const char *model) +{ + int x; + + C_PARAMS (list && model); + + for (x = 0; x < list->count; x++) { + if (!strcasecmp (list->abilities[x].model, model)) + return (x); + } + + GP_LOG_E ("Could not find any driver for '%s'", model); + return (GP_ERROR_MODEL_NOT_FOUND); +} + + +/** + * \brief Retrieve the camera abilities of entry with supplied index number. + * + * \param list a CameraAbilitiesList + * \param index index + * \param abilities pointer to CameraAbilities for returned data. + * \return a gphoto2 error code + * + * Retrieves the camera abilities of entry with supplied + * index number. Typically, you would call gp_camera_set_abilities() + * afterwards in order to prepare the initialization of a camera. + */ +int +gp_abilities_list_get_abilities (CameraAbilitiesList *list, int index, + CameraAbilities *abilities) +{ + C_PARAMS (list && abilities); + C_PARAMS (0 <= index && index < list->count); + + memcpy (abilities, &list->abilities[index], sizeof (CameraAbilities)); + + return (GP_OK); +} + + +#ifdef _GPHOTO2_INTERNAL_CODE + +/* enum CameraOperation */ +const StringFlagItem gpi_camera_operation_map[] = { + { "none", GP_OPERATION_NONE }, + { "capture_image", GP_OPERATION_CAPTURE_IMAGE }, + { "capture_video", GP_OPERATION_CAPTURE_VIDEO }, + { "capture_audio", GP_OPERATION_CAPTURE_AUDIO }, + { "capture_preview", GP_OPERATION_CAPTURE_PREVIEW }, + { "config", GP_OPERATION_CONFIG }, + { NULL, 0 }, +}; + +/* enum CameraFileOperation */ +const StringFlagItem gpi_file_operation_map[] = { + { "none", GP_FILE_OPERATION_NONE }, + { "delete", GP_FILE_OPERATION_DELETE }, + { "preview", GP_FILE_OPERATION_PREVIEW }, + { "raw", GP_FILE_OPERATION_RAW }, + { "audio", GP_FILE_OPERATION_AUDIO }, + { "exif", GP_FILE_OPERATION_EXIF }, + { NULL, 0 }, +}; + +/* enum CameraFolderOperation */ +const StringFlagItem gpi_folder_operation_map[] = { + { "none", GP_FOLDER_OPERATION_NONE }, + { "delete_all", GP_FOLDER_OPERATION_DELETE_ALL }, + { "put_file", GP_FOLDER_OPERATION_PUT_FILE }, + { "make_dir", GP_FOLDER_OPERATION_MAKE_DIR }, + { "remove_dir", GP_FOLDER_OPERATION_REMOVE_DIR }, + { NULL, 0 }, +}; + +/* enum GphotoDeviceType */ +const StringFlagItem gpi_gphoto_device_type_map[] = { + { "still_camera", GP_DEVICE_STILL_CAMERA }, + { "audio_player", GP_DEVICE_AUDIO_PLAYER }, + { NULL, 0 }, +}; + +/* enum CameraDriverStatus */ +const StringFlagItem gpi_camera_driver_status_map[] = { + { "production", GP_DRIVER_STATUS_PRODUCTION }, + { "testing", GP_DRIVER_STATUS_TESTING }, + { "experimental", GP_DRIVER_STATUS_EXPERIMENTAL }, + { "deprecated", GP_DRIVER_STATUS_DEPRECATED }, + { NULL, 0 }, +}; + +#endif /* _GPHOTO2_INTERNAL_CODE */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-camera.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-camera.c new file mode 100644 index 00000000..e190c365 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-camera.c @@ -0,0 +1,1957 @@ +/** \file + * + * Implement Camera object representing a camera attached to the system. + * + * \author Copyright 2000 Scott Fritzinger + * \author Copyright 2001-2002 Lutz Mueller + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include + +#include +#include +#include +#include + +#include + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CAMERA_UNUSED(c,ctx) \ +{ \ + (c)->pc->used--; \ + if (!(c)->pc->used) { \ + if ((c)->pc->exit_requested) \ + gp_camera_exit ((c), (ctx)); \ + if (!(c)->pc->ref_count) \ + gp_camera_free (c); \ + } \ +} + +#define CR(c,result,ctx) \ +{ \ + int r1 = (result); \ + \ + if (r1 < 0) { \ + /* libgphoto2_port doesn't have a GPContext */ \ + gp_context_error ((ctx), _("An error occurred " \ + "in the io-library ('%s'): %s"), \ + gp_port_result_as_string (r1), \ + gp_port_get_error ((c) ? (c)->port : NULL)); \ + if (c) \ + CAMERA_UNUSED (c,ctx); \ + return (r1); \ + } \ +} + +/* + * HAVE_MULTI + * ---------- + * + * The problem: Several different programs (gtkam, gphoto2, gimp) accessing + * one camera. + * The solutions: + * (1) gp_port_open before each operation, gp_port_close after. This has + * shown to not work with some drivers (digita/dc240) for serial ports, + * because the camera will notice that [1], + * reset itself and will therefore need to be reinitialized. If you want + * this behaviour, #define HAVE_MULTI. + * (2) Leave it up to the frontend to release the camera by calling + * gp_camera_exit after camera operations. This is what is implemented + * right now. The drawback is that re-initialization takes more time than + * just reopening the port. However, it works for all camera drivers. + * + * [1] Marr writes: + * + * With the Digita-OS cameras at least, one of the RS-232 lines is tied + * to a 'Reset' signal on the camera. I quote from the Digita 'Host + * Interface Specification' document: + * + * "The Reset signal is a pulse on the Reset/Att line (which cooresponds + * [sic] to pin 2 at the camera side) sent from the host computer to the + * camera. This pulse must be at least 50us." + */ + +#ifdef HAVE_MULTI +#define CHECK_OPEN(c,ctx) \ +{ \ + int r2; \ + \ + if (strcmp ((c)->pc->a.model,"Directory Browse")) { \ + r2 = gp_port_open ((c)->port); \ + if (r2 < 0) { \ + CAMERA_UNUSED (c,ctx); \ + return (r2); \ + } \ + } \ + if ((c)->functions->pre_func) { \ + r2 = (c)->functions->pre_func (c,ctx); \ + if (r2 < 0) { \ + CAMERA_UNUSED (c,ctx); \ + return (r2); \ + } \ + } \ +} +#else +#define CHECK_OPEN(c,ctx) \ +{ \ + if ((c)->functions->pre_func) { \ + int r2 = (c)->functions->pre_func (c,ctx); \ + if (r2 < 0) { \ + CAMERA_UNUSED (c,ctx); \ + return (r2); \ + } \ + } \ +} +#endif + +#ifdef HAVE_MULTI +#define CHECK_CLOSE(c,ctx) \ +{ \ + if (strcmp ((c)->pc->a.model,"Directory Browse")) \ + gp_port_close ((c)->port); \ + if ((c)->functions->post_func) { \ + int r3 = (c)->functions->post_func (c,ctx); \ + if (r3 < 0) { \ + CAMERA_UNUSED (c,ctx); \ + return (r3); \ + } \ + } \ +} +#else +#define CHECK_CLOSE(c,ctx) \ +{ \ + if ((c)->functions->post_func) { \ + int r3 = (c)->functions->post_func (c,ctx); \ + if (r3 < 0) { \ + CAMERA_UNUSED (c,ctx); \ + return (r3); \ + } \ + } \ +} +#endif + +#define CRS(c,res,ctx) \ +{ \ + int r4 = (res); \ + \ + if (r4 < 0) { \ + CAMERA_UNUSED (c,ctx); \ + return (r4); \ + } \ +} + +#define CRSL(c,res,ctx,list) \ +{ \ + int r5 = (res); \ + \ + if (r5 < 0) { \ + CAMERA_UNUSED (c,ctx); \ + gp_list_free (list); \ + return (r5); \ + } \ +} + +#define CHECK_RESULT_OPEN_CLOSE(c,result,ctx) \ +{ \ + int r6; \ + \ + CHECK_OPEN (c,ctx); \ + r6 = (result); \ + if (r6 < 0) { \ + GP_LOG_E ("'%s' failed: %d", #result, r6); \ + CHECK_CLOSE (c,ctx); \ + CAMERA_UNUSED (c,ctx); \ + return (r6); \ + } \ + CHECK_CLOSE (c,ctx); \ +} + +#define CHECK_INIT(c,ctx) \ +{ \ + if ((c)->pc->used) \ + return (GP_ERROR_CAMERA_BUSY); \ + (c)->pc->used++; \ + if (!(c)->pc->lh) \ + CR((c), gp_camera_init (c, ctx), ctx); \ +} + +struct _CameraPrivateCore { + + /* Some information about the port */ + unsigned int speed; + + /* The abilities of this camera */ + CameraAbilities a; + + /* Library handle */ + lt_dlhandle lh; + + char error[2048]; + + unsigned int ref_count; + unsigned char used; + unsigned char exit_requested; + + int initialized; + + /* Timeout functions */ + CameraTimeoutStartFunc timeout_start_func; + CameraTimeoutStopFunc timeout_stop_func; + void *timeout_data; + unsigned int *timeout_ids; + unsigned int timeout_ids_len; +}; + + +/** + * Close connection to camera. + * + * @param camera a #Camera object + * @param context a #GPContext object + * @return a gphoto2 error code. + * + * Closes a connection to the camera and therefore gives other application + * the possibility to access the camera, too. + * + * It is recommended that you + * call this function when you currently don't need the camera. The camera + * will get reinitialized by gp_camera_init() automatically if you try to + * access the camera again. + * + */ +int +gp_camera_exit (Camera *camera, GPContext *context) +{ + C_PARAMS (camera); + + GP_LOG_D ("Exiting camera ('%s')...", camera->pc->a.model); + + /* + * We have to postpone this operation if the camera is currently + * in use. gp_camera_exit will be called again if the + * camera->pc->used will drop to zero. + */ + if (camera->pc->used) { + camera->pc->exit_requested = 1; + return (GP_OK); + } + + /* Remove every timeout that is still pending */ + while (camera->pc->timeout_ids_len) + gp_camera_stop_timeout (camera, camera->pc->timeout_ids[0]); + free (camera->pc->timeout_ids); + camera->pc->timeout_ids = NULL; + + if (camera->functions->exit) { +#ifdef HAVE_MULTI + gp_port_open (camera->port); +#endif + camera->functions->exit (camera, context); + } + gp_port_close (camera->port); + memset (camera->functions, 0, sizeof (CameraFunctions)); + + if (camera->pc->lh) { +#if !defined(VALGRIND) + lt_dlclose (camera->pc->lh); + lt_dlexit (); +#endif + camera->pc->lh = NULL; + } + + gp_filesystem_reset (camera->fs); + + return (GP_OK); +} + + +/** + * Allocates the memory for a #Camera. + * + * @param camera the #Camera object to initialize. + * @return a gphoto2 error code + * + */ +int +gp_camera_new (Camera **camera) +{ + int result; + + C_PARAMS (camera); + + C_MEM (*camera = calloc (1, sizeof (Camera))); + + (*camera)->functions = calloc (1, sizeof (CameraFunctions)); + (*camera)->pc = calloc (1, sizeof (CameraPrivateCore)); + if (!(*camera)->functions || !(*camera)->pc) { + result = GP_ERROR_NO_MEMORY; + goto error; + } + + (*camera)->pc->ref_count = 1; + + /* Create the filesystem */ + result = gp_filesystem_new (&(*camera)->fs); + if (result < GP_OK) + goto error; + + /* Create the port */ + result = gp_port_new (&(*camera)->port); + if (result < GP_OK) + goto error; + + return(GP_OK); + +error: + gp_camera_free (*camera); + return result; +} + + +/** + * \brief Sets the camera abilities. + * + * @param camera a #Camera + * @param abilities the #CameraAbilities to be set + * @return a gphoto2 error code + * + * You need to call this function before calling #gp_camera_init the + * first time unless you want gphoto2 to autodetect cameras and choose + * the first detected one. By setting the \c abilities, you + * tell gphoto2 what model the \c camera is and what camera driver should + * be used for accessing the \c camera. You can get \c abilities by calling + * #gp_abilities_list_get_abilities. + * + */ +int +gp_camera_set_abilities (Camera *camera, CameraAbilities abilities) +{ + GP_LOG_D ("Setting abilities ('%s')...", abilities.model); + + C_PARAMS (camera); + + /* + * If the camera is currently initialized, terminate that connection. + * We don't care if we are successful or not. + */ + if (camera->pc->lh) + gp_camera_exit (camera, NULL); + + memcpy (&camera->pc->a, &abilities, sizeof (CameraAbilities)); + + return (GP_OK); +} + + +/** + * Retrieve the \c abilities of the \c camera. + * + * @param camera a #Camera + * @param abilities + * @return a gphoto2 error code + * + */ +int +gp_camera_get_abilities (Camera *camera, CameraAbilities *abilities) +{ + C_PARAMS (camera && abilities); + + memcpy (abilities, &camera->pc->a, sizeof (CameraAbilities)); + + return (GP_OK); +} + + +int +gp_camera_get_port_info (Camera *camera, GPPortInfo *info) +{ + C_PARAMS (camera && info); + + CR (camera, gp_port_get_info (camera->port, info), NULL); + + return (GP_OK); +} + + +int +gp_camera_set_port_info (Camera *camera, GPPortInfo info) +{ + char *name, *path; + C_PARAMS (camera); + + /* + * If the camera is currently initialized, terminate that connection. + * We don't care if we are successful or not. + */ + if (camera->pc->lh) + gp_camera_exit (camera, NULL); + + gp_port_info_get_name (info, &name); + gp_port_info_get_path (info, &path); + GP_LOG_D ("Setting port info for port '%s' at '%s'...", name, path); + CR (camera, gp_port_set_info (camera->port, info), NULL); + + return (GP_OK); +} + + +/** + * Set the camera speed. + * + * @param camera a #Camera + * @param speed the speed + * @return a gphoto2 error code + * + * This function is typically used prior first initialization + * using #gp_camera_init for debugging purposes. Normally, a camera driver + * will try to figure out the current speed of the camera and set the speed + * to the optimal one automatically. Note that this function only works with + * serial ports. In other words, you have to set the camera's port to a + * serial one (using #gp_camera_set_port_path or #gp_camera_set_port_name) + * prior calling this function. + * + */ +int +gp_camera_set_port_speed (Camera *camera, int speed) +{ + GPPortSettings settings; + + C_PARAMS (camera); + + C_PARAMS_MSG (camera->port, + "You need to set a port prior trying to set the speed"); + C_PARAMS_MSG (camera->port->type == GP_PORT_SERIAL, + "You can specify a speed only with serial ports"); + + /* + * If the camera is currently initialized, terminate that connection. + * We don't care if we are successful or not. + */ + if (camera->pc->lh) + gp_camera_exit (camera, NULL); + + CR (camera, gp_port_get_settings (camera->port, &settings), NULL); + settings.serial.speed = speed; + CR (camera, gp_port_set_settings (camera->port, settings), NULL); + camera->pc->speed = speed; + + return (GP_OK); +} + + +/** + * Retrieve the current speed. + * + * @param camera a #Camera + * @return The current speed or a gphoto2 error code + * + */ +int +gp_camera_get_port_speed (Camera *camera) +{ + C_PARAMS (camera); + + return (camera->pc->speed); +} + + +/** + * Increment the reference count of a \c camera. + * + * @param camera a #Camera + * @return a gphoto2 error code + * + */ +int +gp_camera_ref (Camera *camera) +{ + C_PARAMS (camera); + + camera->pc->ref_count += 1; + + return (GP_OK); +} + + +/** + * Decrements the reference count of a #Camera. + * + * @param camera a #Camera + * @return a gphoto2 error code + * + * If the reference count reaches %0, the \c camera will be freed + * automatically. + * + */ +int +gp_camera_unref (Camera *camera) +{ + C_PARAMS (camera); + + if (!camera->pc->ref_count) { + GP_LOG_E ("gp_camera_unref on a camera with ref_count == 0 " + "should not happen at all"); + return (GP_ERROR); + } + + camera->pc->ref_count -= 1; + + if (!camera->pc->ref_count) { + + /* We cannot free a camera that is currently in use */ + if (!camera->pc->used) + gp_camera_free (camera); + } + + return (GP_OK); +} + + +/** + * Free the \c camera. + * + * @param camera a #Camera + * @return a gphoto2 error code + * + * \deprecated + * This function should never be used. Please use #gp_camera_unref instead. + * + */ +int +gp_camera_free (Camera *camera) +{ + C_PARAMS (camera); + + GP_LOG_D ("Freeing camera..."); + + /* + * If the camera is currently initialized, close the connection. + * We don't care if we are successful or not. + */ + if (camera->port && camera->pc && camera->pc->lh) + gp_camera_exit (camera, NULL); + + /* We don't care if anything goes wrong */ + if (camera->port) { + gp_port_free (camera->port); + camera->port = NULL; + } + + if (camera->pc) { + free (camera->pc->timeout_ids); + free (camera->pc); + camera->pc = NULL; + } + + if (camera->fs) { + gp_filesystem_free (camera->fs); + camera->fs = NULL; + } + + if (camera->functions) { + free (camera->functions); + camera->functions = NULL; + } + + free (camera); + + return (GP_OK); +} + +/** + * Autodetect all detectable camera + * + * @param list a #CameraList that receives the autodetected cameras + * @param context a #GPContext + * @return the number of cameras detected (0 to n) or a gphoto2 error code (<0) + * + * This camera will autodetected all cameras that can be autodetected. + * This will for instance detect all USB cameras. + * + * CameraList *list; + * gp_list_new (&list); + * gp_camera_autodetect (list, context); + * ... done! ... + */ +int +gp_camera_autodetect (CameraList *list, GPContext *context) +{ + CameraAbilitiesList *al = NULL; + GPPortInfoList *il = NULL; + int ret, i; + CameraList *xlist = NULL; + + ret = gp_list_new (&xlist); + if (ret < GP_OK) goto out; + if (!il) { + /* Load all the port drivers we have... */ + ret = gp_port_info_list_new (&il); + if (ret < GP_OK) goto out; + ret = gp_port_info_list_load (il); + if (ret < 0) goto out; + ret = gp_port_info_list_count (il); + if (ret < 0) goto out; + } + /* Load all the camera drivers we have... */ + ret = gp_abilities_list_new (&al); + if (ret < GP_OK) goto out; + ret = gp_abilities_list_load (al, context); + if (ret < GP_OK) goto out; + + /* ... and autodetect the currently attached cameras. */ + ret = gp_abilities_list_detect (al, il, xlist, context); + if (ret < GP_OK) goto out; + + /* Filter out the "usb:" entry */ + ret = gp_list_count (xlist); + if (ret < GP_OK) goto out; + for (i=0;ipc->exit_requested = 0; + + /* + * If the model hasn't been indicated, try to + * figure it out (USB only). Beware of "Directory Browse". + */ + if (strcasecmp (camera->pc->a.model, "Directory Browse") && + !strcmp ("", camera->pc->a.model)) { + CameraAbilitiesList *al; + GPPortInfoList *il; + int m, p; + char *ppath; + GPPortType ptype; + GPPortInfo info; + CameraList *list; + + result = gp_list_new (&list); + if (result < GP_OK) + return result; + + GP_LOG_D ("Neither port nor model set. Trying auto-detection..."); + + /* Call auto-detect and choose the first camera */ + CRSL (camera, gp_abilities_list_new (&al), context, list); + CRSL (camera, gp_abilities_list_load (al, context), context, list); + CRSL (camera, gp_port_info_list_new (&il), context, list); + CRSL (camera, gp_port_info_list_load (il), context, list); + CRSL (camera, gp_abilities_list_detect (al, il, list, context), context, list); + if (!gp_list_count (list)) { + gp_abilities_list_free (al); + gp_port_info_list_free (il); + gp_context_error (context, _("Could not detect " + "any camera")); + gp_list_free (list); + return (GP_ERROR_MODEL_NOT_FOUND); + } + p = 0; + CRSL (camera, gp_port_get_info (camera->port, &info), context, list); + CRSL (camera, gp_port_info_get_path (info, &ppath), context, list); + CRSL (camera, gp_port_info_get_type (info, &ptype), context, list); + /* if the port was set before, then use that entry, but not if it is "usb:" */ + if ((ptype == GP_PORT_USB) && strlen(ppath) && strcmp(ppath, "usb:")) { + for (p = gp_list_count (list);p--;) { + const char *xp; + + gp_list_get_value (list, p, &xp); + if (!strcmp (xp, ppath)) + break; + } + if (p<0) { + gp_abilities_list_free (al); + gp_port_info_list_free (il); + gp_context_error (context, _("Could not detect any camera at port %s"), ppath); + gp_list_free (list); + return (GP_ERROR_FILE_NOT_FOUND); + } + } + + CRSL (camera, gp_list_get_name (list, p, &model), context, list); + m = gp_abilities_list_lookup_model (al, model); + CRSL (camera, m, context, list); + CRSL (camera, gp_abilities_list_get_abilities (al, m, &a), context, list); + gp_abilities_list_free (al); + CRSL (camera, gp_camera_set_abilities (camera, a), context, list); + CRSL (camera, gp_list_get_value (list, p, &port), context, list); + p = gp_port_info_list_lookup_path (il, port); + CRSL (camera, p, context, list); + CRSL (camera, gp_port_info_list_get_info (il, p, &info), context, list); + CRSL (camera, gp_camera_set_port_info (camera, info), context, list); + gp_port_info_list_free (il); + gp_list_free (list); + } + + if (strcasecmp (camera->pc->a.model, "Directory Browse")) { + switch (camera->port->type) { + case GP_PORT_NONE: + gp_context_error (context, _("You have to set the " + "port prior to initialization of the camera.")); + return (GP_ERROR_UNKNOWN_PORT); + case GP_PORT_USB: + if (gp_port_usb_find_device (camera->port, + camera->pc->a.usb_vendor, + camera->pc->a.usb_product) != GP_OK) { + CRS (camera, gp_port_usb_find_device_by_class + (camera->port, + camera->pc->a.usb_class, + camera->pc->a.usb_subclass, + camera->pc->a.usb_protocol), context); + } + break; + default: + break; + } + } + + /* Load the library. */ + GP_LOG_D ("Loading '%s'...", camera->pc->a.library); + lt_dlinit (); + camera->pc->lh = lt_dlopenext (camera->pc->a.library); + if (!camera->pc->lh) { + gp_context_error (context, _("Could not load required " + "camera driver '%s' (%s)."), camera->pc->a.library, + lt_dlerror ()); + lt_dlexit (); + return (GP_ERROR_LIBRARY); + } + + /* Initialize the camera */ + init_func = lt_dlsym (camera->pc->lh, "camera_init"); + if (!init_func) { + lt_dlclose (camera->pc->lh); + lt_dlexit (); + camera->pc->lh = NULL; + gp_context_error (context, _("Camera driver '%s' is " + "missing the 'camera_init' function."), + camera->pc->a.library); + return (GP_ERROR_LIBRARY); + } + + if (strcasecmp (camera->pc->a.model, "Directory Browse")) { + result = gp_port_open (camera->port); + if (result < 0) { + lt_dlclose (camera->pc->lh); + lt_dlexit (); + camera->pc->lh = NULL; + return (result); + } + } + + result = init_func (camera, context); + if (result < 0) { + gp_port_close (camera->port); + lt_dlclose (camera->pc->lh); + lt_dlexit (); + camera->pc->lh = NULL; + memset (camera->functions, 0, sizeof (CameraFunctions)); + return (result); + } + + /* We don't care if that goes wrong */ +#ifdef HAVE_MULTI + gp_port_close (camera->port); +#endif + + return (GP_OK); +} + + +/** + * Retrieve a configuration \c window for the \c camera. + * + * @param camera a #Camera + * @param window a #CameraWidget + * @param context a #GPContext + * @return gphoto2 error code + * + * This \c window can be used for construction of a configuration dialog. + * + */ +int +gp_camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) +{ + C_PARAMS (camera); + CHECK_INIT (camera, context); + + if (!camera->functions->get_config) { + gp_context_error (context, _("This camera does " + "not provide any configuration options.")); + CAMERA_UNUSED (camera, context); + return (GP_ERROR_NOT_SUPPORTED); + } + + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->get_config ( + camera, window, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + + +/** + * Retrieve a single configuration \c widget for the \c camera. + * + * @param camera a #Camera + * @param name the name of a configuration widget + * @param widget a #CameraWidget + * @param context a #GPContext + * @return gphoto2 error code + * + * This \c widget will then contain the current and the possible values and the type. + * + */ +int +gp_camera_get_single_config (Camera *camera, const char *name, CameraWidget **widget, GPContext *context) +{ + CameraWidget *rootwidget, *child; + CameraWidgetType type; + const char *label; + int ret, ro; + + C_PARAMS (camera); + CHECK_INIT (camera, context); + + if (camera->functions->get_single_config) { + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->get_single_config ( + camera, name, widget, context), context); + + CAMERA_UNUSED (camera, context); + return GP_OK; + } + + if (!camera->functions->get_config) { + gp_context_error (context, _("This camera does not provide any configuration options.")); + CAMERA_UNUSED (camera, context); + return GP_ERROR_NOT_SUPPORTED; + } + /* emulate it ... */ + CHECK_OPEN (camera, context); + + ret = camera->functions->get_config ( camera, &rootwidget, context); + if (ret != GP_OK) { + CHECK_CLOSE (camera, context); + CAMERA_UNUSED (camera, context); + return ret; + } + ret = gp_widget_get_child_by_name (rootwidget, name, &child); + if (ret != GP_OK) { + gp_widget_free (rootwidget); + CHECK_CLOSE (camera, context); + CAMERA_UNUSED (camera, context); + return ret; + } + + /* We need to duplicate the widget, as we will free the widgettree */ + gp_widget_get_type (child, &type); + gp_widget_get_label (child, &label); + gp_widget_get_readonly (child, &ro); + + ret = gp_widget_new (type, label, widget); + if (ret != GP_OK) + goto out; + gp_widget_set_name (*widget, name); + gp_widget_set_readonly (*widget, ro); + + switch (type) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: { + char *value; + int i, nrofchoices; + + nrofchoices = gp_widget_count_choices (child); + for (i = 0; i < nrofchoices; i++) { + const char *choice; + + gp_widget_get_choice (child, i, &choice); + gp_widget_add_choice (*widget, choice); + } + gp_widget_get_value (child, &value); + gp_widget_set_value (*widget, value); + break; + } + case GP_WIDGET_TEXT: { + char *value; + + gp_widget_get_value (child, &value); + gp_widget_set_value (*widget, value); + break; + } + case GP_WIDGET_RANGE: { + float value, rmin, rmax, rstep; + + gp_widget_get_range (child, &rmin, &rmax, &rstep); + gp_widget_set_range (*widget, rmin, rmax, rstep); + gp_widget_get_value (child, &value); + gp_widget_set_value (*widget, &value); + break; + } + case GP_WIDGET_TOGGLE: + case GP_WIDGET_DATE: { + int value; + + gp_widget_get_value (child, &value); + gp_widget_set_value (*widget, &value); + break; + } + case GP_WIDGET_BUTTON: + case GP_WIDGET_SECTION: + case GP_WIDGET_WINDOW: + default: + ret = GP_ERROR_BAD_PARAMETERS; + break; + } +out: + gp_widget_free (rootwidget); + CHECK_CLOSE (camera, context); + CAMERA_UNUSED (camera, context); + return ret; +} + + +/** + * Retrieve a configuration \c list for the \c camera. + * + * @param camera a #Camera + * @param list a #CameraList + * @param context a #GPContext + * @return gphoto2 error code + * + * The names in list can be used for the single set and get configuration calls. + * + */ + +static void +_get_widget_names (CameraWidget *widget, CameraList *list) +{ + CameraWidgetType type; + + gp_widget_get_type (widget, &type); + switch (type) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + case GP_WIDGET_TEXT: + case GP_WIDGET_RANGE: + case GP_WIDGET_TOGGLE: + case GP_WIDGET_DATE: { + const char *name; + + gp_widget_get_name (widget, &name); + gp_list_append (list, name, NULL); + break; + } + case GP_WIDGET_SECTION: + case GP_WIDGET_WINDOW: { + int i, nrofchildren; + + nrofchildren = gp_widget_count_children (widget); + for (i = 0; i < nrofchildren; i++) { + CameraWidget *child; + + gp_widget_get_child (widget, i, &child); + _get_widget_names (child, list); + } + break; + } + case GP_WIDGET_BUTTON: + default: + break; + } + +} + +int +gp_camera_list_config (Camera *camera, CameraList *list, GPContext *context) +{ + CameraWidget *rootwidget; + int ret; + C_PARAMS (camera); + CHECK_INIT (camera, context); + + if (camera->functions->list_config) { + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->list_config ( + camera, list, context), context); + + CAMERA_UNUSED (camera, context); + return GP_OK; + } + if (!camera->functions->get_config) { + gp_context_error (context, _("This camera does not provide any configuration options.")); + CAMERA_UNUSED (camera, context); + return GP_ERROR_NOT_SUPPORTED; + } + /* emulate it ... */ + CHECK_OPEN (camera, context); + + ret = camera->functions->get_config ( camera, &rootwidget, context); + if (ret != GP_OK) { + CHECK_CLOSE (camera, context); + CAMERA_UNUSED (camera, context); + return ret; + } + + _get_widget_names (rootwidget, list); + + + gp_widget_free (rootwidget); + CHECK_CLOSE (camera, context); + CAMERA_UNUSED (camera, context); + return ret; +} + + +/** + * Sets the configuration. + * + * @param camera a #Camera + * @param window a #CameraWidget + * @param context a #GPContext + * @return a gphoto2 error code + * + * Typically, a \c window is retrieved using #gp_camera_get_config and passed + * to this function in order to adjust the settings on the camera. + * + **/ +int +gp_camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) +{ + C_PARAMS (camera && window); + CHECK_INIT (camera, context); + + if (!camera->functions->set_config) { + gp_context_error (context, _("This camera does " + "not support setting configuration options.")); + CAMERA_UNUSED (camera, context); + return (GP_ERROR_NOT_SUPPORTED); + } + + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->set_config (camera, + window, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Set a single configuration \c widget for the \c camera. + * + * @param camera a #Camera + * @param name the name of a configuration widget + * @param widget a #CameraWidget + * @param context a #GPContext + * @return gphoto2 error code + * + * This \c widget contains the new value of the widget to set. + * + */ +int +gp_camera_set_single_config (Camera *camera, const char *name, CameraWidget *widget, GPContext *context) +{ + CameraWidget *rootwidget, *child; + CameraWidgetType type; + int ret; + + C_PARAMS (camera); + CHECK_INIT (camera, context); + + if (camera->functions->set_single_config) { + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->set_single_config ( + camera, name, widget, context), context); + + CAMERA_UNUSED (camera, context); + return GP_OK; + } + + if (!camera->functions->set_config) { + gp_context_error (context, _("This camera does not provide any configuration options.")); + CAMERA_UNUSED (camera, context); + return GP_ERROR_NOT_SUPPORTED; + } + /* emulate single config with the full tree */ + CHECK_OPEN (camera, context); + + ret = camera->functions->get_config ( camera, &rootwidget, context); + if (ret != GP_OK) { + CHECK_CLOSE (camera, context); + CAMERA_UNUSED (camera, context); + return ret; + } + ret = gp_widget_get_child_by_name (rootwidget, name, &child); + if (ret != GP_OK) { + gp_widget_free (rootwidget); + CHECK_CLOSE (camera, context); + CAMERA_UNUSED (camera, context); + return ret; + } + + gp_widget_get_type (child, &type); + ret = GP_OK; + switch (type) { + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + case GP_WIDGET_TEXT: { + char *value; + + gp_widget_get_value (widget, &value); + gp_widget_set_value (child, value); + break; + } + case GP_WIDGET_RANGE: { + float value; + + gp_widget_get_value (widget, &value); + gp_widget_set_value (child, &value); + break; + } + case GP_WIDGET_TOGGLE: + case GP_WIDGET_DATE: { + int value; + + gp_widget_get_value (widget, &value); + gp_widget_set_value (child, &value); + break; + } + case GP_WIDGET_BUTTON: + case GP_WIDGET_SECTION: + case GP_WIDGET_WINDOW: + default: + ret = GP_ERROR_BAD_PARAMETERS; + break; + } + gp_widget_set_changed (child, 1); + + if (ret == GP_OK) + ret = camera->functions->set_config (camera, rootwidget, context); + gp_widget_free (rootwidget); + CHECK_CLOSE (camera, context); + CAMERA_UNUSED (camera, context); + return ret; +} + + +/** + * Retrieves a camera summary. + * + * @param camera a #Camera + * @param summary a #CameraText + * @param context a #GPContext + * @return a gphoto2 error code + * + * This summary typically contains information like manufacturer, pictures + * taken, or generally information that is not configurable. + * + **/ +int +gp_camera_get_summary (Camera *camera, CameraText *summary, GPContext *context) +{ + C_PARAMS (camera && summary); + CHECK_INIT (camera, context); + + if (!camera->functions->summary) { + gp_context_error (context, _("This camera does " + "not support summaries.")); + CAMERA_UNUSED (camera, context); + return (GP_ERROR_NOT_SUPPORTED); + } + + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->summary (camera, + summary, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Retrieves the \c manual for given \c camera. + * + * @param camera a #Camera + * @param manual a #CameraText + * @param context a #GPContext + * @return a gphoto2 error code + * + * This manual typically contains information about using the camera. + * + **/ +int +gp_camera_get_manual (Camera *camera, CameraText *manual, GPContext *context) +{ + C_PARAMS (camera && manual); + CHECK_INIT (camera, context); + + if (!camera->functions->manual) { + gp_context_error (context, _("This camera " + "does not provide a manual.")); + CAMERA_UNUSED (camera, context); + return (GP_ERROR_NOT_SUPPORTED); + } + + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->manual (camera, + manual, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Retrieves information about the camera driver. + * + * @param camera a #Camera + * @param about a #CameraText + * @param context a #GPContext + * @return a gphoto2 error code + * + * Typically, this information contains name and address of the author, + * acknowledgements, etc. + * + **/ +int +gp_camera_get_about (Camera *camera, CameraText *about, GPContext *context) +{ + C_PARAMS (camera && about); + CHECK_INIT (camera, context); + + if (!camera->functions->about) { + gp_context_error (context, _("This camera does " + "not provide information about the driver.")); + CAMERA_UNUSED (camera, context); + return (GP_ERROR_NOT_SUPPORTED); + } + + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->about (camera, + about, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Captures an image, movie, or sound clip depending on the given \c type. + * + * @param camera a #Camera + * @param type a #CameraCaptureType + * @param path a #CameraFilePath + * @param context a #GPContext + * @return a gphoto2 error code + * + * The resulting file will be stored on the camera. The location gets stored + * in \c path. The file can then be downloaded using #gp_camera_file_get. + * + **/ +int +gp_camera_capture (Camera *camera, CameraCaptureType type, + CameraFilePath *path, GPContext *context) +{ + C_PARAMS (camera); + CHECK_INIT (camera, context); + + if (!camera->functions->capture) { + gp_context_error (context, _("This camera can not capture.")); + CAMERA_UNUSED (camera, context); + return (GP_ERROR_NOT_SUPPORTED); + } + + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->capture (camera, + type, path, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Triggers capture of one or more images. + * + * @param camera a #Camera + * @param context a #GPContext + * @return a gphoto2 error code + * + * This functions just remotely causes the shutter release and returns + * immediately. You will want to run #gp_camera_wait_event until a image + * is added which can be downloaded using #gp_camera_file_get. + **/ +int +gp_camera_trigger_capture (Camera *camera, GPContext *context) +{ + C_PARAMS (camera); + CHECK_INIT (camera, context); + + if (!camera->functions->trigger_capture) { + gp_context_error (context, _("This camera can not trigger capture.")); + CAMERA_UNUSED (camera, context); + return (GP_ERROR_NOT_SUPPORTED); + } + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->trigger_capture (camera, + context), context); + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Captures a preview that won't be stored on the camera but returned in + * supplied file. + * + * @param camera a #Camera + * @param file a #CameraFile + * @param context a #GPContext + * @return a gphoto2 error code + * + * For example, you could use gp_capture_preview() for taking some sample + * pictures before calling gp_capture(). + * + **/ +int +gp_camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context) +{ + char *xname; + C_PARAMS (camera && file); + CHECK_INIT (camera, context); + + CR (camera, gp_file_clean (file), context); + + if (!camera->functions->capture_preview) { + gp_context_error (context, _("This camera can " + "not capture previews.")); + CAMERA_UNUSED (camera, context); + return (GP_ERROR_NOT_SUPPORTED); + } + + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->capture_preview ( + camera, file, context), context); + gp_file_get_name_by_type (file, "capture_preview", GP_FILE_TYPE_NORMAL, &xname); + /* FIXME: Marcus ... will go away, just keep compatible now. */ + gp_file_set_name (file, xname); + free (xname); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + + +/** + * Wait and retrieve an event from the camera. + * + * @param camera a Camera + * @param timeout amount of time to wait in 1/1000 seconds + * @param eventtype received CameraEventType [out] + * @param eventdata received event specific data [out] + * @param context a GPContext + * @return gphoto2 error code + * + * This function blocks and waits for an event to come from the camera. If + * a timeout occurs before an event is received then + * eventtype will be GP_EVENT_TIMEOUT and eventdata is left unchanged. + * + * If an event is received then eventtype is set to the type of event, and + * eventdata is set to event specific data. See the CameraEventType enum + * to see which eventtypes match to which types of eventdata. + * + * Note that this function will return one event after each other, you need + * to be able to call it multiple times, e.g. in a loop, when waiting for specific + * events. + */ +int +gp_camera_wait_for_event (Camera *camera, int timeout, + CameraEventType *eventtype, void **eventdata, + GPContext *context) +{ + C_PARAMS (camera); + CHECK_INIT (camera, context); + + if (!camera->functions->wait_for_event) { + CAMERA_UNUSED (camera, context); + return (GP_ERROR_NOT_SUPPORTED); + } + CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->wait_for_event ( + camera, timeout, eventtype, eventdata, + context), context); + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Lists the files in supplied \c folder. + * + * @param camera a #Camera + * @param folder a folder + * @param list a #CameraList + * @param context a #GPContext + * @return a gphoto2 error code + * + **/ +int +gp_camera_folder_list_files (Camera *camera, const char *folder, + CameraList *list, GPContext *context) +{ + GP_LOG_D ("Listing files in '%s'...", folder); + + C_PARAMS (camera && folder && list); + CHECK_INIT (camera, context); + CR (camera, gp_list_reset (list), context); + + CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_list_files (camera->fs, + folder, list, context), context); + + CR (camera, gp_list_sort (list), context); + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Lists the folders in supplied \c folder. + * + * @param camera a #Camera + * @param folder a folder + * @param list a #CameraList + * @param context a #GPContext + * @return a gphoto2 error code + * + **/ +int +gp_camera_folder_list_folders (Camera *camera, const char* folder, + CameraList *list, GPContext *context) +{ + GP_LOG_D ("Listing folders in '%s'...", folder); + + C_PARAMS (camera && folder && list); + CHECK_INIT (camera, context); + CR (camera, gp_list_reset (list), context); + + CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_list_folders ( + camera->fs, folder, list, context), context); + + CR (camera, gp_list_sort (list), context); + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Deletes all files in a given \c folder. + * + * @param camera a #Camera + * @param folder a folder + * @param context a #GPContext + * @return a gphoto2 error code + * + **/ +int +gp_camera_folder_delete_all (Camera *camera, const char *folder, + GPContext *context) +{ + GP_LOG_D ("Deleting all files in '%s'...", folder); + + C_PARAMS (camera && folder); + CHECK_INIT (camera, context); + + CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_delete_all (camera->fs, + folder, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Uploads a file into given \c folder. + * + * @param camera a #Camera + * @param folder a folder + * @param file a #CameraFile + * @param context a #GPContext + * @return a gphoto2 error code + * + **/ +int +gp_camera_folder_put_file (Camera *camera, + const char *folder, const char *filename, + CameraFileType type, + CameraFile *file, GPContext *context) +{ + GP_LOG_D ("Uploading file into '%s'...", + folder); + + C_PARAMS (camera && folder && file); + CHECK_INIT (camera, context); + + CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_put_file (camera->fs, + folder, filename, type, file, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Retrieves information about a file. + * + * @param camera a #Camera + * @param folder a folder + * @param file the name of the file + * @param info + * @param context a #GPContext + * @return a gphoto2 error code + * + **/ +int +gp_camera_file_get_info (Camera *camera, const char *folder, + const char *file, CameraFileInfo *info, + GPContext *context) +{ + int result = GP_OK; + const char *mime_type; + const char *data; + /* long int size; */ + CameraFile *cfile; + + GP_LOG_D ("Getting file info for '%s' in '%s'...", file, folder); + + C_PARAMS (camera && folder && file && info); + CHECK_INIT (camera, context); + + memset (info, 0, sizeof (CameraFileInfo)); + + /* Check first if the camera driver supports the filesystem */ + CHECK_OPEN (camera, context); + result = gp_filesystem_get_info (camera->fs, folder, file, info, + context); + CHECK_CLOSE (camera, context); + if (result != GP_ERROR_NOT_SUPPORTED) { + CAMERA_UNUSED (camera, context); + return (result); + } + + /* + * The CameraFilesystem doesn't support file info. We simply get + * the preview and the file and look for ourselves... + */ + + /* It takes too long to get the file */ + info->file.fields = GP_FILE_INFO_NONE; + + /* Get the preview */ + info->preview.fields = GP_FILE_INFO_NONE; + CRS (camera, gp_file_new (&cfile), context); + if (gp_camera_file_get (camera, folder, file, GP_FILE_TYPE_PREVIEW, + cfile, context) == GP_OK) { + unsigned long size; + info->preview.fields |= GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + gp_file_get_data_and_size (cfile, &data, &size); + info->preview.size = size; + gp_file_get_mime_type (cfile, &mime_type); + strncpy (info->preview.type, mime_type, + sizeof (info->preview.type)); + } + gp_file_unref (cfile); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Sets some file properties like name or permissions. + * + * @param camera a #Camera + * @param folder a folder + * @param file the name of a file + * @param info the #CameraFileInfo + * @param context a #GPContext + * @return a gphoto2 error code + * + **/ +int +gp_camera_file_set_info (Camera *camera, const char *folder, + const char *file, CameraFileInfo info, + GPContext *context) +{ + C_PARAMS (camera && folder && file); + CHECK_INIT (camera, context); + + CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_set_info (camera->fs, + folder, file, info, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Retrieves a file from the #Camera. + * + * @param camera a #Camera + * @param folder a folder + * @param file the name of a file + * @param type the #CameraFileType + * @param camera_file a #CameraFile + * @param context a #GPContext + * @return a gphoto2 error code + * + **/ +int +gp_camera_file_get (Camera *camera, const char *folder, const char *file, + CameraFileType type, CameraFile *camera_file, + GPContext *context) +{ + GP_LOG_D ("Getting file '%s' in folder '%s'...", file, folder); + + C_PARAMS (camera && folder && file && camera_file); + CHECK_INIT (camera, context); + + CR (camera, gp_file_clean (camera_file), context); + + /* Did we get reasonable foldername/filename? */ + if (strlen (folder) == 0) { + CAMERA_UNUSED (camera, context); + return (GP_ERROR_DIRECTORY_NOT_FOUND); + } + if (strlen (file) == 0) { + CAMERA_UNUSED (camera, context); + return (GP_ERROR_FILE_NOT_FOUND); + } + + CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_get_file (camera->fs, + folder, file, type, camera_file, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Reads a file partially from the #Camera. + * + * @param camera a #Camera + * @param folder a folder + * @param file the name of a file + * @param type the #CameraFileType + * @param offset the offset into the camera file + * @param data the buffer receiving the data + * @param size the size to be read and that was read. (Note: size should not exceed 32 bits) + * @param context a #GPContext + * @return a gphoto2 error code + * + **/ +int +gp_camera_file_read (Camera *camera, const char *folder, const char *file, + CameraFileType type, + uint64_t offset, char *buf, uint64_t *size, + GPContext *context) +{ + GP_LOG_D ("Getting file '%s' in folder '%s'...", file, folder); + + C_PARAMS (camera && folder && file && buf && size); + CHECK_INIT (camera, context); + + /* Did we get reasonable foldername/filename? */ + if (strlen (folder) == 0) { + CAMERA_UNUSED (camera, context); + return (GP_ERROR_DIRECTORY_NOT_FOUND); + } + if (strlen (file) == 0) { + CAMERA_UNUSED (camera, context); + return (GP_ERROR_FILE_NOT_FOUND); + } + + CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_read_file (camera->fs, + folder, file, type, offset, buf, size, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Deletes the file from \c folder. + * + * \param camera a #Camera + * \param folder a folder + * \param file the name of a file + * \param context a #GPContext + * \return a gphoto2 error code + * + **/ +int +gp_camera_file_delete (Camera *camera, const char *folder, const char *file, + GPContext *context) +{ + GP_LOG_D ("Deleting file '%s' in folder '%s'...", file, folder); + + C_PARAMS (camera && folder && file); + CHECK_INIT (camera, context); + + CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_delete_file ( + camera->fs, folder, file, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Creates a new directory called \c name in the given \c folder. + * + * @param camera a #Camera + * @param folder the location where to create the new directory + * @param name the name of the directory to be created + * @param context a #GPContext + * @return a gphoto2 error code + * + **/ +int +gp_camera_folder_make_dir (Camera *camera, const char *folder, + const char *name, GPContext *context) +{ + C_PARAMS (camera && folder && name); + CHECK_INIT (camera, context); + + CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_make_dir (camera->fs, + folder, name, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * Removes an (empty) directory called \c name from the given \c folder. + * + * @param camera a #Camera + * @param folder the folder from which to remove the directory + * @param name the name of the directory to be removed + * @param context a #GPContext + * @return a gphoto2 error code + * + */ +int +gp_camera_folder_remove_dir (Camera *camera, const char *folder, + const char *name, GPContext *context) +{ + C_PARAMS (camera && folder && name); + CHECK_INIT (camera, context); + + CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_remove_dir (camera->fs, + folder, name, context), context); + + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * \brief Gets information on the camera attached storage. + * + * \param camera a #Camera + * \param sifs Pointer to receive a pointer to/array of storage info items + * \param nrofsifs Pointer to receive number of array entries + * \param context a #GPContext + * \return a gphoto2 error code + * + * Retrieves the storage information, like maximum and free space, for + * the specified filesystem, if supported by the device. The storage + * information is returned in an newly allocated array of + * #CameraStorageInformation objects, to which the pointer pointed to + * by #sifs will be set. + * + * The variable pointed to by #nrofsifs will be set to the number of + * elements in that array. + * + * It is the caller's responsibility to free the memory of the array. + * + **/ +int +gp_camera_get_storageinfo ( + Camera *camera, CameraStorageInformation **sifs, + int *nrofsifs, GPContext *context) +{ + C_PARAMS (camera && sifs && nrofsifs); + CHECK_INIT (camera, context); + + CHECK_RESULT_OPEN_CLOSE (camera, + gp_filesystem_get_storageinfo ( + camera->fs, sifs, nrofsifs, context + ), + context + ); + CAMERA_UNUSED (camera, context); + return (GP_OK); +} + +/** + * @param camera a Camera + * @param start_func + * @param stop_func + * @param data + * @return a gphoto2 error code + * + * If your frontend has something like idle loops, it is recommended you + * use #gp_camera_set_timeout_funcs in order to give the camera driver the + * possibility to keep up the connection to the camera. + * + */ +void +gp_camera_set_timeout_funcs (Camera *camera, CameraTimeoutStartFunc start_func, + CameraTimeoutStopFunc stop_func, + void *data) +{ + if (!camera || !camera->pc) + return; + + camera->pc->timeout_start_func = start_func; + camera->pc->timeout_stop_func = stop_func; + camera->pc->timeout_data = data; +} + + +/** + * @param camera a #Camera + * @param timeout number of seconds that should pass between each call to + * \c func + * @param func the function that should be called each \c timeout seconds + * @return The id of the background process or a gphoto2 error code + * + * This function should be called by the camera driver during camera_init() + * if the camera needs to be sent messages periodically in order to prevent + * it from shutting down. + * + */ +int +gp_camera_start_timeout (Camera *camera, unsigned int timeout, + CameraTimeoutFunc func) +{ + int id; + + C_PARAMS (camera && camera->pc); + + if (!camera->pc->timeout_start_func) + return (GP_ERROR_NOT_SUPPORTED); + + /* + * We remember the id here in order to automatically remove + * the timeout on gp_camera_exit. + */ + C_MEM (camera->pc->timeout_ids = + realloc (camera->pc->timeout_ids, sizeof (int) * + (camera->pc->timeout_ids_len + 1))); + + id = camera->pc->timeout_start_func (camera, timeout, func, + camera->pc->timeout_data); + if (id < 0) + return (id); + camera->pc->timeout_ids[camera->pc->timeout_ids_len] = id; + camera->pc->timeout_ids_len++; + + return (id); +} + + +/** + * Stop periodic calls to keepalive function. + * + * @param camera a #Camera + * @param id the id of the background process previously returned by + * #gp_camera_start_timeout + * + * Call this function in the camera driver if you want to stop a periodic + * call to a function that has been started using #gp_camera_start_timeout. + * + */ +void +gp_camera_stop_timeout (Camera *camera, unsigned int id) +{ + unsigned int i; + + if (!camera || !camera->pc) + return; + + if (!camera->pc->timeout_stop_func) + return; + + /* Check if we know this id. If yes, remove it. */ + for (i = 0; i < camera->pc->timeout_ids_len; i++) + if (camera->pc->timeout_ids[i] == id) + break; + if (i == camera->pc->timeout_ids_len) + return; + memmove (camera->pc->timeout_ids + i, camera->pc->timeout_ids + i + 1, + sizeof (int) * (camera->pc->timeout_ids_len - i - 1)); + camera->pc->timeout_ids_len--; + camera->pc->timeout_ids = realloc (camera->pc->timeout_ids, + sizeof (int) * camera->pc->timeout_ids_len); + + camera->pc->timeout_stop_func (camera, id, camera->pc->timeout_data); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-context.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-context.c new file mode 100644 index 00000000..bcd0785b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-context.c @@ -0,0 +1,415 @@ +/** \file gphoto2-context.c + * + * \author Copyright 2001 Lutz Mueller + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" +#include + +#include +#include +#include + +#include + +/** + * \internal + **/ +struct _GPContext +{ + GPContextIdleFunc idle_func; + void *idle_func_data; + + GPContextProgressStartFunc progress_start_func; + GPContextProgressUpdateFunc progress_update_func; + GPContextProgressStopFunc progress_stop_func; + void *progress_func_data; + + GPContextErrorFunc error_func; + void *error_func_data; + + GPContextQuestionFunc question_func; + void *question_func_data; + + GPContextCancelFunc cancel_func; + void *cancel_func_data; + + GPContextStatusFunc status_func; + void *status_func_data; + + GPContextMessageFunc message_func; + void *message_func_data; + + unsigned int ref_count; +}; + +/** + * \brief Creates a new context. + * + * To be used by the frontend. + * + * \return a GPContext. + **/ +GPContext * +gp_context_new (void) +{ + GPContext *context; + + context = calloc (1, sizeof (GPContext)); + if (!context) + return (NULL); + + context->ref_count = 1; + + return (context); +} + +/** + * Increments the reference count of the context. + * + * \param context The context to bump the reference + **/ +void +gp_context_ref (GPContext *context) +{ + if (!context) + return; + + context->ref_count++; +} + +static void +gp_context_free (GPContext *context) +{ + free (context); +} + +/** + * \brief Decrements reference count of a context. + * + * Decrement the reference count of a context and free if it goes to 0. + * + * \param context The context to drop the reference count. + **/ +void +gp_context_unref (GPContext *context) +{ + if (!context) + return; + + context->ref_count--; + if (!context->ref_count) + gp_context_free (context); +} + +/** + * \brief Notify frontend of a brief idle time. + * + * Tells the frontend that it can do other processing at this moment, like refresh + * the UI. Backends should call this function every time when an + * interruption of the transfer is possible. + * + * \param context a GPContext + **/ +void +gp_context_idle (GPContext *context) +{ + if (!context) + return; + + if (context->idle_func) + context->idle_func (context, context->idle_func_data); +} + +/** + * \brief Start progress tracking. + * + * This function starts up a new progress tracking for a specified context. + * Several nested progress reports can happen at once, depending on the backend. + * + * \param context The context in which to start the progress. + * \param target The 100% value. + * \param format A sprintf style string to print out, including the following variable arguments. + */ +unsigned int +gp_context_progress_start (GPContext *context, float target, + const char *format, ...) +{ + va_list args; + char *str; + unsigned int id; + + if (!context) + return (0); + if (!context->progress_start_func) + return (0); + + va_start (args, format); + str = gpi_vsnprintf(format, args); + va_end (args); + + if (!str) + return 0; + + id = context->progress_start_func (context, target, str, + context->progress_func_data); + free (str); + return (id); +} + +void +gp_context_progress_update (GPContext *context, unsigned int id, float current) +{ + if (!context) + return; + + if (context->progress_update_func) + context->progress_update_func (context, id, current, + context->progress_func_data); +} + +void +gp_context_progress_stop (GPContext *context, unsigned int id) +{ + if (!context) + return; + + if (context->progress_stop_func) + context->progress_stop_func (context, id, + context->progress_func_data); +} + +void +gp_context_error (GPContext *context, const char *format, ...) +{ + va_list args; + char *str; + + va_start (args, format); + str = gpi_vsnprintf(format, args); + va_end (args); + + if (!str) + return; + + /* Log the error message */ + gp_log( GP_LOG_ERROR, __func__, "%s", str); + + if (context && context->error_func) + context->error_func (context, str, context->error_func_data); + free (str); +} + +void +gp_context_status (GPContext *context, const char *format, ...) +{ + va_list args; + char *str; + + va_start (args, format); + str = gpi_vsnprintf(format, args); + va_end (args); + + if (!str) + return; + + /* Log the status message */ + GP_LOG_D ("%s", str); + + if (context && context->status_func) + context->status_func (context, str, context->status_func_data); + free (str); +} + +/** + * \brief Print a message to the context + * + * This sends a message to the passed context, to be printed by + * it in some kind of way, but do no other action. + * + * To be used by camera drivers. + * + * \param context A GPContext + * \param format A sprintf style format string + * \param ... variable argument list depending on format string + */ +void +gp_context_message (GPContext *context, const char *format, ...) +{ + va_list args; + char *str; + + va_start (args, format); + str = gpi_vsnprintf(format, args); + va_end (args); + + if (!str) + return; + + /* Log the message */ + GP_LOG_D ("%s", str); + + if (context && context->message_func) + context->message_func (context, str, context->message_func_data); + free (str); +} + +/** + * \brief Ask frontend user a question + * + * Asks the user a question that he must answer either with "Ok" or "Cancel". + * + * To be used by a camera driver. (So far no camera driver is using it, + * but this might change later.) + * + * \param context a GPContext + * \param format a sprintf format string + * \param ... variable arguments for format string + * \return The user's answer in form of a GPContextFeedback. + **/ +GPContextFeedback +gp_context_question (GPContext *context, const char *format, ...) +{ + GPContextFeedback feedback; + va_list args; + char *str; + + va_start (args, format); + str = gpi_vsnprintf(format, args); + va_end (args); + + if (!str) + return GP_CONTEXT_FEEDBACK_OK; + + feedback = GP_CONTEXT_FEEDBACK_OK; + if (context && context->question_func) + feedback = context->question_func (context, str, context->question_func_data); + + free (str); + + return feedback; +} + +/** + * gp_context_cancel: + * @context: a #GPContext + * + * Gives the frontend the possibility to cancel the current operation that is + * executed in this @context. + * + * Return value: a #GPContextFeedback. + **/ +GPContextFeedback +gp_context_cancel (GPContext *context) +{ + if (!context) + return (GP_CONTEXT_FEEDBACK_OK); + + if (context->cancel_func) + return (context->cancel_func (context, + context->cancel_func_data)); + else + return (GP_CONTEXT_FEEDBACK_OK); +} + +void +gp_context_set_idle_func (GPContext *context, GPContextIdleFunc func, + void *data) +{ + if (!context) + return; + + context->idle_func = func; + context->idle_func_data = data; +} + +void +gp_context_set_progress_funcs (GPContext *context, + GPContextProgressStartFunc start_func, + GPContextProgressUpdateFunc update_func, + GPContextProgressStopFunc stop_func, + void *data) +{ + if (!context) + return; + + context->progress_start_func = start_func; + context->progress_update_func = update_func; + context->progress_stop_func = stop_func; + context->progress_func_data = data; +} + +void +gp_context_set_error_func (GPContext *context, GPContextErrorFunc func, + void *data) +{ + if (!context) + return; + + context->error_func = func; + context->error_func_data = data; +} + +void +gp_context_set_question_func (GPContext *context, GPContextQuestionFunc func, + void *data) +{ + if (!context) + return; + + context->question_func = func; + context->question_func_data = data; +} + +void +gp_context_set_status_func (GPContext *context, GPContextStatusFunc func, + void *data) +{ + if (!context) + return; + + context->status_func = func; + context->status_func_data = data; +} + +void +gp_context_set_cancel_func (GPContext *context, GPContextCancelFunc func, + void *data) +{ + if (!context) + return; + + context->cancel_func = func; + context->cancel_func_data = data; +} + +void +gp_context_set_message_func (GPContext *context, GPContextMessageFunc func, + void *data) +{ + if (!context) + return; + + context->message_func = func; + context->message_func_data = data; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-file.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-file.c new file mode 100644 index 00000000..af237241 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-file.c @@ -0,0 +1,1154 @@ +/** \file + * + * \author Copyright 2000 Scott Fritzinger + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * \note + * This file contains internal functions. Use of these functions from + * external software modules is considered deprecated. + */ +#define _POSIX_SOURCE +#define _DEFAULT_SOURCE + +#include "config.h" +#include + +#include +#include +#include +#include +#include +#include + +#include +#include + +#include + +#define CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} + +/* lengt of one path component */ +#ifndef MAX_PATH +# define MAX_PATH 256 +#endif + +/*! The internals of the CameraFile struct are private. + * \internal + */ +struct _CameraFile { + char mime_type [64]; + char name [MAX_PATH]; + int ref_count; + time_t mtime; + + CameraFileAccessType accesstype; + + /* for GP_FILE_ACCESSTYPE_MEMORY files */ + unsigned long size; + unsigned char *data; + unsigned long offset; /* read pointer */ + + /* for GP_FILE_ACCESSTYPE_FD files */ + int fd; + + /* for GP_FILE_ACCESSTYPE_HANDLER files */ + CameraFileHandler*handler; + void *private; +}; + + +/*! Create new #CameraFile object. + * + * \param file a pointer to a #CameraFile + * \return a gphoto2 error code. + */ +int +gp_file_new (CameraFile **file) +{ + C_PARAMS (file); + + C_MEM (*file = calloc (1, sizeof (CameraFile))); + + strcpy ((*file)->mime_type, "unknown/unknown"); + (*file)->ref_count = 1; + (*file)->accesstype = GP_FILE_ACCESSTYPE_MEMORY; + return (GP_OK); +} + + +/*! Create new #CameraFile object from a UNIX filedescriptor. + * + * This function takes ownership of the filedescriptor and will close it when closing the CameraFile. + * + * \param file a pointer to a #CameraFile + * \param fd a UNIX filedescriptor + * \return a gphoto2 error code. + */ +int +gp_file_new_from_fd (CameraFile **file, int fd) +{ + C_PARAMS (file); + + C_MEM (*file = calloc (1, sizeof (CameraFile))); + + strcpy ((*file)->mime_type, "unknown/unknown"); + (*file)->ref_count = 1; + (*file)->accesstype = GP_FILE_ACCESSTYPE_FD; + (*file)->fd = fd; + return (GP_OK); +} + +/*! Create new #CameraFile object using a programmatic handler. + * + * \param file a pointer to a #CameraFile + * \param handler a #CameraFileHandler + * \param private a private pointer for frontend use + * \return a gphoto2 error code. + */ +int +gp_file_new_from_handler (CameraFile **file, CameraFileHandler* handler, void*private) +{ + C_PARAMS (file); + + C_MEM (*file = calloc (1, sizeof (CameraFile))); + + strcpy ((*file)->mime_type, "unknown/unknown"); + (*file)->ref_count = 1; + (*file)->accesstype = GP_FILE_ACCESSTYPE_HANDLER; + (*file)->handler = handler; + (*file)->private = private; + return (GP_OK); +} + + + +/*! \brief descruct a #CameraFile object. + * @param file a #CameraFile + * @return a gphoto2 error code. + * + **/ +int gp_file_free (CameraFile *file) +{ + C_PARAMS (file); + + CHECK_RESULT (gp_file_clean (file)); + + if (file->accesstype == GP_FILE_ACCESSTYPE_FD) + close (file->fd); + + free (file); + return (GP_OK); +} + + +/*! \brief Increase reference counter for #CameraFile object + * + * \param file a #CameraFile + * \return a gphoto2 error code. + */ +int +gp_file_ref (CameraFile *file) +{ + C_PARAMS (file); + + file->ref_count += 1; + + return (GP_OK); +} + + +/*! \brief Decrease reference counter for #CameraFile object + * + * \param file a #CameraFile + * \return a gphoto2 error code. + * + **/ +int +gp_file_unref (CameraFile *file) +{ + C_PARAMS (file); + + file->ref_count -= 1; + + if (file->ref_count == 0) + CHECK_RESULT (gp_file_free (file)); + + return (GP_OK); +} + + +/** + * @param file a #CameraFile + * @param data + * @param size + * @return a gphoto2 error code. + * + **/ +int +gp_file_append (CameraFile *file, const char *data, + unsigned long int size) +{ + C_PARAMS (file); + + switch (file->accesstype) { + case GP_FILE_ACCESSTYPE_MEMORY: + C_MEM (file->data = realloc (file->data, sizeof (char) * (file->size + size))); + memcpy (&file->data[file->size], data, size); + file->size += size; + break; + case GP_FILE_ACCESSTYPE_FD: { + unsigned long int curwritten = 0; + while (curwritten < size) { + ssize_t res = write (file->fd, data+curwritten, size-curwritten); + if (res == -1) { + GP_LOG_E ("Encountered error %d writing to fd.", errno); + return GP_ERROR_IO_WRITE; + } + if (!res) { /* no progress is bad too */ + GP_LOG_E ("Encountered 0 bytes written to fd."); + return GP_ERROR_IO_WRITE; + } + curwritten += res; + } + break; + } + case GP_FILE_ACCESSTYPE_HANDLER: { + uint64_t xsize = size; + /* FIXME: assume we write one blob */ + C_PARAMS (file->handler->write); + return file->handler->write (file->private, (unsigned char*)data, &xsize); + } + default: + GP_LOG_E ("Unknown file access type %d", file->accesstype); + return GP_ERROR; + } + return (GP_OK); +} + +/** + * @param file a #CameraFile + * @param data + * @param size + * @return a gphoto2 error code. + * + * Internal. + **/ +int +gp_file_slurp (CameraFile *file, char *data, + size_t size, size_t *readlen +) { + C_PARAMS (file); + + switch (file->accesstype) { + case GP_FILE_ACCESSTYPE_MEMORY: + if (size > file->size-file->offset) + size = file->size - file->offset; + memcpy (data, &file->data[file->offset], size); + file->offset += size; + if (readlen) *readlen = size; + break; + case GP_FILE_ACCESSTYPE_FD: { + unsigned long int curread = 0; + while (curread < size) { + ssize_t res = read (file->fd, data+curread, size-curread); + if (res == -1) { + GP_LOG_E ("Encountered error %d reading from fd.", errno); + return GP_ERROR_IO_READ; + } + if (!res) { /* no progress is bad too */ + GP_LOG_E ("Encountered 0 bytes reading from fd."); + return GP_ERROR_IO_READ; + } + curread += res; + if (readlen) + *readlen = curread; + } + break; + } + case GP_FILE_ACCESSTYPE_HANDLER: { + uint64_t xsize = size; + int ret; + + C_PARAMS (file->handler->read); + ret = file->handler->read (file->private, (unsigned char*)data, &xsize); + *readlen = xsize; + if (ret != GP_OK) + GP_LOG_E ("File handler read returned %d", ret); + return ret; + } + default: + GP_LOG_E ("Unknown file access type %d", file->accesstype); + return GP_ERROR; + } + return (GP_OK); +} + + + +/** + * @param file a #CameraFile + * @param data + * @param size + * @return a gphoto2 error code. + * + **/ +int +gp_file_set_data_and_size (CameraFile *file, char *data, + unsigned long int size) +{ + C_PARAMS (file); + + switch (file->accesstype) { + case GP_FILE_ACCESSTYPE_MEMORY: + free (file->data); + file->data = (unsigned char*)data; + file->size = size; + break; + case GP_FILE_ACCESSTYPE_FD: { + unsigned int curwritten = 0; + + /* truncate */ + if (-1 == lseek (file->fd, 0, SEEK_SET)) { + GP_LOG_E ("Encountered error %d lseeking to 0.", errno); + /* might happen on pipes ... just ignore it */ + } + if (-1 == ftruncate (file->fd, 0)) { + GP_LOG_E ("Encountered error %d ftruncating to 0.", errno); + /* might happen on pipes ... just ignore it */ + } + while (curwritten < size) { + ssize_t res = write (file->fd, data+curwritten, size-curwritten); + if (res == -1) { + GP_LOG_E ("Encountered error %d writing to fd.", errno); + return GP_ERROR_IO_WRITE; + } + if (!res) { /* no progress is bad too */ + GP_LOG_E ("Encountered 0 bytes written to fd."); + return GP_ERROR_IO_WRITE; + } + curwritten += res; + } + /* This function takes over the responsibility for "data", aka + * it has to free it. So we do. + */ + free (data); + break; + } + case GP_FILE_ACCESSTYPE_HANDLER: { + uint64_t xsize = size; + int ret; + + C_PARAMS (file->handler->write); + /* FIXME: handle multiple blob writes */ + ret = file->handler->write (file->private, (unsigned char*)data, &xsize); + if (ret != GP_OK) { + GP_LOG_E ("Handler data() returned %d", ret); + return ret; + } + /* This function takes over the responsibility for "data", aka + * it has to free it. So we do. + */ + free (data); + return GP_OK; + } + default: + GP_LOG_E ("Unknown file access type %d", file->accesstype); + return GP_ERROR; + } + return (GP_OK); +} + + +/** + * Get a pointer to the data and the file's size. + * + * @param file a #CameraFile + * @param data + * @param size + * @return a gphoto2 error code. + * + * Both data and size can be NULL and will then be ignored. + * + * For regular CameraFiles, the pointer to data that is returned is + * still owned by libgphoto2 and its lifetime is the same as the #file. + * + * For filedescriptor or handler based CameraFile types, the returned + * data pointer is owned by the caller and needs to be free()d to avoid + * memory leaks. + * + **/ +int +gp_file_get_data_and_size (CameraFile *file, const char **data, + unsigned long int *size) +{ + C_PARAMS (file); + + switch (file->accesstype) { + case GP_FILE_ACCESSTYPE_MEMORY: + if (data) + *data = (char*)file->data; + if (size) + *size = file->size; + break; + case GP_FILE_ACCESSTYPE_FD: { + off_t offset; + unsigned long int curread = 0; + + if (-1 == lseek (file->fd, 0, SEEK_END)) { + if (errno == EBADF) return GP_ERROR_IO; + /* Might happen for pipes or sockets. Umm. Hard. */ + /* FIXME */ + } + if (-1 == (offset = lseek (file->fd, 0, SEEK_CUR))) { + /* should not happen if we passed the above case */ + GP_LOG_E ("Encountered error %d lseekin to CUR.", errno); + return GP_ERROR_IO_READ; + } + if (-1 == lseek (file->fd, 0, SEEK_SET)) { + /* should not happen if we passed the above cases */ + GP_LOG_E ("Encountered error %d lseekin to CUR.", errno); + return GP_ERROR_IO_READ; + } + if (size) *size = offset; + if (!data) /* just the size... */ + return GP_OK; + C_MEM (*data = malloc (offset)); + while (curread < offset) { + ssize_t res = read (file->fd, (char*)((*data)+curread), offset-curread); + if (res == -1) { + free ((char*)*data); + GP_LOG_E ("Encountered error %d reading.", errno); + return GP_ERROR_IO_READ; + } + if (res == 0) { + free ((char*)*data); + GP_LOG_E ("No progress during reading."); + return GP_ERROR_IO_READ; + } + curread += res; + } + break; + } + case GP_FILE_ACCESSTYPE_HANDLER: { + uint64_t xsize = 0; + int ret; + + C_PARAMS (file->handler->read); + ret = file->handler->size (file->private, &xsize); + if (ret != GP_OK) { + GP_LOG_E ("Encountered error %d querying size().", ret); + return ret; + } + if (size) *size = xsize; + if (!data) /* just the size... */ + return GP_OK; + C_MEM (*data = malloc (xsize)); + ret = file->handler->read (file->private, (unsigned char*)*data, &xsize); + if (ret != GP_OK) { + GP_LOG_E ("Encountered error %d getting data().", ret); + free ((char*)*data); + *data = NULL; + } + return ret; + } + default: + GP_LOG_E ("Unknown file access type %d", file->accesstype); + return GP_ERROR; + } + return (GP_OK); +} + + +/** + * @param file a #CameraFile + * @param filename + * @return a gphoto2 error code. + * + **/ +int +gp_file_save (CameraFile *file, const char *filename) +{ + FILE *fp; + struct utimbuf u; + + C_PARAMS (file && filename); + + switch (file->accesstype) { + case GP_FILE_ACCESSTYPE_MEMORY: + if (!(fp = fopen (filename, "wb"))) + return GP_ERROR; + if (fwrite (file->data, (size_t)sizeof(char), (size_t)file->size, fp) != (size_t)file->size) { + GP_LOG_E ("Not enough space on device in order to save '%s'.", filename); + fclose (fp); + unlink (filename); + return GP_ERROR; + } + fclose (fp); + break; + case GP_FILE_ACCESSTYPE_FD: { + char *data; + unsigned long int curread = 0; + off_t offset; + + if (-1 == lseek (file->fd, 0, SEEK_END)) + return GP_ERROR_IO; + if (-1 == (offset = lseek (file->fd, 0, SEEK_CUR))) { + /* should not happen if we passed the above case */ + GP_LOG_E ("Encountered error %d lseekin to CUR.", errno); + return GP_ERROR_IO_READ; + } + if (-1 == lseek (file->fd, 0, SEEK_SET)) { + /* should not happen if we passed the above case */ + GP_LOG_E ("Encountered error %d lseekin to BEGIN.", errno); + return GP_ERROR_IO_READ; + } + C_MEM (data = malloc(65536)); + if (!(fp = fopen (filename, "wb"))) { + free (data); + return GP_ERROR; + } + while (curread < offset) { + int toread, res; + + toread = 65536; + if (toread > (offset-curread)) + toread = offset-curread; + res = read (file->fd, data, toread); + if (res <= 0) { + free (data); + fclose (fp); + unlink (filename); + return GP_ERROR_IO_READ; + } + if (fwrite (data, 1, res, fp) != res) { + GP_LOG_E ("Not enough space on device in order to save '%s'.", filename); + free (data); + fclose (fp); + unlink (filename); + return GP_ERROR; + } + curread += res; + } + free (data); + fclose (fp); + break; + } + default: + GP_LOG_E ("Unknown file access type %d", file->accesstype); + return GP_ERROR; + } + + if (file->mtime) { + u.actime = file->mtime; + u.modtime = file->mtime; + utime (filename, &u); + } + + return (GP_OK); +} + + +/* + * mime types that cannot be determined by the filename + * extension. Better hack would be to use library that examine + * file content instead, like gnome-vfs mime handling, or + * gnome-mime, whatever. + * See also the GP_MIME_* definitions. + */ +static const char *mime_table[] = { + "bmp", GP_MIME_BMP, + "jpg", GP_MIME_JPEG, + "tif", GP_MIME_TIFF, + "ppm", GP_MIME_PPM, + "pgm", GP_MIME_PGM, + "pnm", GP_MIME_PNM, + "png", GP_MIME_PNG, + "wav", GP_MIME_WAV, + "avi", GP_MIME_AVI, + "mp3", GP_MIME_MP3, + "wma", GP_MIME_WMA, + "asf", GP_MIME_ASF, + "ogg", GP_MIME_OGG, + "mpg", GP_MIME_MPEG, + "raw", GP_MIME_RAW, + "mts", GP_MIME_AVCHD, + "m2ts", GP_MIME_AVCHD, + "arw", GP_MIME_ARW, + "txt", GP_MIME_TXT, + NULL}; +/** + * @param file a #CameraFile + * @param filename + * @return a gphoto2 error code. + * + **/ +int +gp_file_open (CameraFile *file, const char *filename) +{ + FILE *fp; + char *name, *dot; + long size, size_read; + int i; + struct stat s; + + + C_PARAMS (file && filename); + + CHECK_RESULT (gp_file_clean (file)); + + fp = fopen(filename, "r"); + if (!fp) + return (GP_ERROR); + fseek (fp, 0, SEEK_END); + size = ftell (fp); + rewind (fp); + + switch (file->accesstype) { + case GP_FILE_ACCESSTYPE_MEMORY: + file->data = malloc (sizeof(char)*(size + 1)); + if (!file->data) { + fclose (fp); + return (GP_ERROR_NO_MEMORY); + } + size_read = fread (file->data, (size_t)sizeof(char), (size_t)size, fp); + if (ferror(fp)) { + gp_file_clean (file); + fclose (fp); + return (GP_ERROR); + } + fclose(fp); + file->size = size_read; + file->data[size_read] = 0; + break; + case GP_FILE_ACCESSTYPE_FD: { + if (file->fd == -1) { + file->fd = dup(fileno(fp)); + fclose (fp); + break; + } + GP_LOG_E ("Needs to be initialized with fd=-1 to work"); + fclose (fp); + return GP_ERROR; + } + default: + break; + } + + name = strrchr (filename, '/'); + if (name) + strncpy (file->name, name + 1, sizeof (file->name)); + else + strncpy (file->name, filename, sizeof (file->name)); + + /* MIME lookup */ + dot = strrchr (filename, '.'); + if (dot) { + for (i = 0; mime_table[i] ; i+=2) + if (!strcasecmp (mime_table[i], dot+1)) { + strncpy (file->mime_type, mime_table[i+1], sizeof(file->mime_type)); + break; + } + if (!mime_table[i]) + /* + * We did not found the type in the lookup table, + * so we use the file suffix as mime type. + * Note: This should probably use GP_MIME_UNKNOWN instead + * of returning a non-standard type. + */ + sprintf(file->mime_type, "image/%s", dot + 1); + } else + /* + * Damn, no filename suffix... + */ + strncpy (file->mime_type, GP_MIME_UNKNOWN, + sizeof (file->mime_type)); + + if (stat (filename, &s) != -1) { + file->mtime = s.st_mtime; + } else { + file->mtime = time (NULL); + } + + return (GP_OK); +} + + +/** + * @param file a #CameraFile + * @return a gphoto2 error code. + * + **/ +int +gp_file_clean (CameraFile *file) +{ + /* + * Frees a CameraFile's components, not the CameraFile itself. + * This is used to prep a CameraFile struct to be filled. + */ + + C_PARAMS (file); + + switch (file->accesstype) { + case GP_FILE_ACCESSTYPE_MEMORY: + free (file->data); + file->data = NULL; + file->size = 0; + break; + case GP_FILE_ACCESSTYPE_FD: + break; + default:break; + } + strcpy (file->name, ""); + return (GP_OK); +} + +/** + * @param destination a #CameraFile + * @param source a #CameraFile + * @return a gphoto2 error code. + * + **/ +int +gp_file_copy (CameraFile *destination, CameraFile *source) +{ + C_PARAMS (destination && source); + + GP_LOG_D ("Copying '%s' onto '%s'...", source->name, destination->name); + + /* struct members we can just copy. All generic ones, but not refcount. */ + memcpy (destination->name, source->name, sizeof (source->name)); + memcpy (destination->mime_type, source->mime_type, sizeof (source->mime_type)); + destination->mtime = source->mtime; + + if ((destination->accesstype == GP_FILE_ACCESSTYPE_MEMORY) && + (source->accesstype == GP_FILE_ACCESSTYPE_MEMORY)) { + free (destination->data); + destination->data = NULL; + destination->size = source->size; + C_MEM (destination->data = malloc (sizeof (char) * source->size)); + memcpy (destination->data, source->data, source->size); + return (GP_OK); + } + if ( (destination->accesstype == GP_FILE_ACCESSTYPE_MEMORY) && + (source->accesstype == GP_FILE_ACCESSTYPE_FD) + ) { + off_t offset; + unsigned long int curread = 0; + + free (destination->data); + destination->data = NULL; + + if (-1 == lseek (source->fd, 0, SEEK_END)) { + if (errno == EBADF) return GP_ERROR_IO; + /* Might happen for pipes or sockets. Umm. Hard. */ + /* FIXME */ + } + if (-1 == (offset = lseek (source->fd, 0, SEEK_CUR))) { + /* should not happen if we passed the above case */ + GP_LOG_E ("Encountered error %d lseekin to CUR.", errno); + return GP_ERROR_IO_READ; + } + if (-1 == lseek (source->fd, 0, SEEK_SET)) { + /* should not happen if we passed the above cases */ + GP_LOG_E ("Encountered error %d lseekin to CUR.", errno); + return GP_ERROR_IO_READ; + } + destination->size = offset; + C_MEM (destination->data = malloc (offset)); + while (curread < offset) { + ssize_t res = read (source->fd, destination->data+curread, offset-curread); + if (res == -1) { + free (destination->data); + GP_LOG_E ("Encountered error %d reading.", errno); + return GP_ERROR_IO_READ; + } + if (res == 0) { + free (destination->data); + GP_LOG_E ("No progress during reading."); + return GP_ERROR_IO_READ; + } + curread += res; + } + return GP_OK; + } + if ( (destination->accesstype == GP_FILE_ACCESSTYPE_FD) && + (source->accesstype == GP_FILE_ACCESSTYPE_FD) + ) { + char *data; + + lseek (destination->fd, 0, SEEK_SET); + if (-1 == ftruncate (destination->fd, 0)) + perror("ftruncate"); + lseek (source->fd, 0, SEEK_SET); + C_MEM (data = malloc (65536)); + while (1) { + unsigned long curwritten = 0; + ssize_t res; + + res = read (source->fd, data, 65536); + if (res == -1) { + free (data); + return GP_ERROR_IO_READ; + } + if (res == 0) + break; + while (curwritten < res) { + ssize_t res2 = write (destination->fd, data+curwritten, res-curwritten); + if (res2 == -1) { + free (data); + return GP_ERROR_IO_WRITE; + } + if (res2 == 0) + break; + curwritten += res2; + } + if (res < 65536) /* end of file */ + break; + } + free (data); + return GP_OK; + } + if ( (destination->accesstype == GP_FILE_ACCESSTYPE_FD) && + (source->accesstype == GP_FILE_ACCESSTYPE_MEMORY) + ) { + unsigned long curwritten = 0; + while (curwritten < source->size) { + int res = write (destination->fd, source->data+curwritten, source->size-curwritten); + + if (res == -1) + return GP_ERROR_IO_WRITE; + if (!res) /* no progress? */ + return GP_ERROR_IO_WRITE; + curwritten += res; + } + return GP_OK; + } + if ( (destination->accesstype == GP_FILE_ACCESSTYPE_HANDLER) && + (source->accesstype == GP_FILE_ACCESSTYPE_MEMORY) + ) { + uint64_t xsize = source->size; + unsigned long curwritten = 0; + + destination->handler->size (destination->private, &xsize); + while (curwritten < source->size) { + uint64_t tmpsize = source->size - curwritten; + int res = destination->handler->write (destination->private, source->data+curwritten, &tmpsize); + + if (res < GP_OK) + return res; + if (!tmpsize) /* no progress? */ + return GP_ERROR_IO_WRITE; + curwritten += tmpsize; + } + return GP_OK; + } + GP_LOG_E ("Unhandled cases in gp_copy_file. Bad!"); + return GP_ERROR; +} + +/** + * @param file a #CameraFile + * @param name a pointer to a name string + * @return a gphoto2 error code. + * + **/ +int +gp_file_get_name (CameraFile *file, const char **name) +{ + C_PARAMS (file && name); + + *name = file->name; + + return (GP_OK); +} + +/** + * @param file a #CameraFile + * @param basename the basename of the file + * @param type the gphoto type of the file + * @param newname the new name generated + * @return a gphoto2 error code. + * + * This function takes the basename and generates a filename out of + * it depending on the gphoto filetype and the mime type in the file. + * The gphoto filetype will be converted to a prefix, like + * thumb_ or raw_, the mimetype will replace the current suffix by + * a different one (if necessary). + * + * This can be used so that saving thumbnails or metadata will not + * overwrite the normal files. + **/ +int +gp_file_get_name_by_type (CameraFile *file, const char *basename, CameraFileType type, char **newname) +{ + char *prefix = NULL, *s, *new, *slash = NULL; + const char *suffix = NULL; + int i; + + C_PARAMS (file && basename && newname); + *newname = NULL; + + /* the easy case, always map 1:1, if it has a suffix already. */ + if ((type == GP_FILE_TYPE_NORMAL) && strchr(basename,'.')) { + C_MEM (*newname = strdup (basename)); + return GP_OK; + } + + for (i=0;mime_table[i];i+=2) { + if (!strcmp (mime_table[i+1],file->mime_type)) { + suffix = mime_table[i]; + break; + } + } + s = strrchr(basename,'.'); + slash = strrchr(basename,'/'); + if (slash > s) /* --filename foo.bar/foo */ + s = NULL; + switch (type) { + case GP_FILE_TYPE_RAW: prefix = "raw_";break; + case GP_FILE_TYPE_EXIF: prefix = "exif_";break; + case GP_FILE_TYPE_PREVIEW: prefix = "thumb_";break; + case GP_FILE_TYPE_METADATA: prefix = "meta_";break; + case GP_FILE_TYPE_AUDIO: prefix = "audio_";break; + default: prefix = ""; break; + } + if (s) { + int xlen; + + if (!suffix) + suffix = s+1; + + C_MEM (new = calloc (strlen(prefix) + (s-basename+1) + strlen (suffix) + 1, 1)); + + xlen = strlen (prefix); + if (slash) { + memcpy (new, basename, slash-basename+1); + strcat (new, prefix); + memcpy (new + strlen (new), slash+1, s-slash+1); + } else { + strcpy (new, prefix); + memcpy (new + strlen (new), basename, s-basename+1); + } + new[xlen+(s-basename)+1]='\0'; + strcat (new, suffix); + } else { /* no dot in basename? */ + if (!suffix) suffix = ""; + C_MEM (new = calloc (strlen(prefix) + strlen(basename) + 1 + strlen (suffix) + 1, 1)); + if (slash) { + memcpy (new, basename, slash-basename+1); /* with / */ + strcat (new, prefix); + strcat (new, slash+1); + } else { + strcpy (new, prefix); + strcat (new, basename); + } + if (strlen(suffix)) { + strcat (new, "."); + strcat (new, suffix); + } + } + *newname = new; + return (GP_OK); +} + + +/** + * @param file a #CameraFile + * @param mime_type a pointer to a MIME type string + * @return a gphoto2 error code. + * + **/ +int +gp_file_get_mime_type (CameraFile *file, const char **mime_type) +{ + C_PARAMS (file && mime_type); + + *mime_type = file->mime_type; + + return (GP_OK); +} + + +/** + * @param file a #CameraFile + * @param name a pointer to a MIME type string + * @return a gphoto2 error code. + * + **/ +int +gp_file_set_name (CameraFile *file, const char *name) +{ + C_PARAMS (file && name); + + strncpy (file->name, name, sizeof (file->name)); + + return (GP_OK); +} + + +/** + * @param file a #CameraFile + * @param mime_type a MIME type string + * @return a gphoto2 error code. + * + **/ +int +gp_file_set_mime_type (CameraFile *file, const char *mime_type) +{ + C_PARAMS (file && mime_type); + + strncpy (file->mime_type, mime_type, sizeof (file->mime_type)); + + return (GP_OK); +} + + +/** + * @param file a #CameraFile + * @return a gphoto2 error code. + * + **/ +int +gp_file_detect_mime_type (CameraFile *file) +{ + const char TIFF_SOI_MARKER[] = {(char) 0x49, (char) 0x49, (char) 0x2A, + (char) 0x00, (char) 0x08, '\0' }; + const char JPEG_SOI_MARKER[] = {(char) 0xFF, (char) 0xD8, '\0' }; + + C_PARAMS (file); + + switch (file->accesstype) { + case GP_FILE_ACCESSTYPE_MEMORY: + /* image/tiff */ + if ((file->size >= 5) && !memcmp (file->data, TIFF_SOI_MARKER, 5)) + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_TIFF)) + + /* image/jpeg */ + else if ((file->size >= 2) && !memcmp (file->data, JPEG_SOI_MARKER, 2)) + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_JPEG)) + else + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_RAW)); + return GP_OK; + case GP_FILE_ACCESSTYPE_FD: { + char data[5]; + off_t offset; + int res; + + offset = lseek (file->fd, 0, SEEK_SET); + res = read (file->fd, data, sizeof(data)); + if (res == -1) + return GP_ERROR_IO_READ; + /* image/tiff */ + if ((res >= 5) && !memcmp (data, TIFF_SOI_MARKER, 5)) + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_TIFF)) + + /* image/jpeg */ + else if ((res >= 2) && !memcmp (data, JPEG_SOI_MARKER, 2)) + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_JPEG)) + else + CHECK_RESULT (gp_file_set_mime_type (file, GP_MIME_RAW)); + lseek (file->fd, offset, SEEK_SET); + break; + } + default: + break; + } + return GP_OK; +} + + +/** + * @param file a #CameraFile + * @return a gphoto2 error code. + * + **/ +int +gp_file_adjust_name_for_mime_type (CameraFile *file) +{ + int x; + char *suffix; + const char *table[] = { + GP_MIME_RAW, "raw", + GP_MIME_JPEG, "jpg", + GP_MIME_PNG, "png", + GP_MIME_PPM, "ppm", + GP_MIME_PGM, "pgm", + GP_MIME_PNM, "pnm", + GP_MIME_TIFF, "tif", + GP_MIME_WAV, "wav", + GP_MIME_BMP, "bmp", + GP_MIME_AVI, "avi", + GP_MIME_CRW, "crw", + GP_MIME_CR2, "cr2", + GP_MIME_NEF, "nef", + GP_MIME_TXT, "txt", + NULL}; + + C_PARAMS (file); + + GP_LOG_D ("Adjusting file name for mime type '%s'...", file->mime_type); + for (x = 0; table[x]; x += 2) + if (!strcmp (file->mime_type, table[x])) { + + /* Search the current suffix and erase it */ + suffix = strrchr (file->name, '.'); + if (suffix++) + *suffix = '\0'; + strcat (file->name, table[x + 1]); + break; + } + GP_LOG_D ("Name adjusted to '%s'.", file->name); + + return (GP_OK); +} + + +/** + * @param file a #CameraFile + * @param mtime + * @return a gphoto2 error code. + * + **/ +int +gp_file_get_mtime (CameraFile *file, time_t *mtime) +{ + C_PARAMS (file && mtime); + + *mtime = file->mtime; + + return (GP_OK); +} + + +/** + * @param file a #CameraFile + * @param mtime + * @return a gphoto2 error code. + * + **/ +int +gp_file_set_mtime (CameraFile *file, time_t mtime) +{ + C_PARAMS (file); + + file->mtime = mtime; + + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-filesys.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-filesys.c new file mode 100644 index 00000000..8726e9de --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-filesys.c @@ -0,0 +1,2468 @@ +/** \file + * + * \author Copyright 2000 Scott Fritzinger + * \author Contributions Lutz Mueller (2001) + * \author Copyright 2009 Marcus Meissner + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" +#include + +#include +#include +#include + +#include +#include +#include + +#include + +#ifdef HAVE_LIBEXIF +# include +#endif + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#ifndef PATH_MAX +# define PATH_MAX 4096 +#endif + +typedef struct _CameraFilesystemFile { + char *name; + + int info_dirty; + + CameraFileInfo info; + + struct _CameraFilesystemFile *lru_prev; + struct _CameraFilesystemFile *lru_next; + CameraFile *preview; + CameraFile *normal; + CameraFile *raw; + CameraFile *audio; + CameraFile *exif; + CameraFile *metadata; + + struct _CameraFilesystemFile *next; /* in folder */ +} CameraFilesystemFile; + +typedef struct _CameraFilesystemFolder { + char *name; + + int files_dirty; + int folders_dirty; + + struct _CameraFilesystemFolder *next; /* chain in same folder */ + struct _CameraFilesystemFolder *folders; /* childchain of this folder */ + struct _CameraFilesystemFile *files; /* of this folder */ +} CameraFilesystemFolder; + +/** + * The default number of pictures to keep in the internal cache, + * can be overriden by settings. + */ +#define PICTURES_TO_KEEP 2 +/** + * The current number of pictures to keep in the internal cache, + * either from #PICTURES_TO_KEEP or from the settings. + */ +static int pictures_to_keep = -1; + +static int gp_filesystem_lru_clear (CameraFilesystem *fs); +static int gp_filesystem_lru_remove_one (CameraFilesystem *fs, CameraFilesystemFile *item); +static int gp_filesystem_lru_update (CameraFilesystem *fs, + const char *folder, const char *filename, + CameraFileType type, + CameraFile *file, GPContext *context); + +#ifdef HAVE_LIBEXIF + +static int gp_filesystem_get_file_impl (CameraFilesystem *, const char *, + const char *, CameraFileType, CameraFile *, GPContext *); + +static time_t +get_time_from_exif_tag(ExifEntry *e) { + struct tm ts; + + e->data[4] = e->data[ 7] = e->data[10] = e->data[13] = e->data[16] = 0; + ts.tm_year = atoi ((char*)e->data) - 1900; + ts.tm_mon = atoi ((char*)(e->data + 5)) - 1; + ts.tm_mday = atoi ((char*)(e->data + 8)); + ts.tm_hour = atoi ((char*)(e->data + 11)); + ts.tm_min = atoi ((char*)(e->data + 14)); + ts.tm_sec = atoi ((char*)(e->data + 17)); + + return mktime (&ts); +} + +static time_t +get_exif_mtime (const unsigned char *data, unsigned long size) +{ + ExifData *ed; + ExifEntry *e; + time_t t, t1 = 0, t2 = 0, t3 = 0; + + ed = exif_data_new_from_data (data, size); + if (!ed) { + GP_LOG_E ("Could not parse data for EXIF information."); + return 0; + } + + /* + * HP PhotoSmart C30 has the date and time in ifd_exif. + */ +#ifdef HAVE_LIBEXIF_IFD + e = exif_content_get_entry (ed->ifd[EXIF_IFD_0], EXIF_TAG_DATE_TIME); + if (e) + t1 = get_time_from_exif_tag(e); + e = exif_content_get_entry (ed->ifd[EXIF_IFD_EXIF], + EXIF_TAG_DATE_TIME_ORIGINAL); + if (e) + t2 = get_time_from_exif_tag(e); + e = exif_content_get_entry (ed->ifd[EXIF_IFD_EXIF], + EXIF_TAG_DATE_TIME_DIGITIZED); + if (e) + t3 = get_time_from_exif_tag(e); +#else + e = exif_content_get_entry (ed->ifd0, EXIF_TAG_DATE_TIME); + if (e) { + t1 = get_time_from_exif_tag(e); + exif_data_unref (e); + } + e = exif_content_get_entry (ed->ifd_exif, + EXIF_TAG_DATE_TIME_ORIGINAL); + if (e) { + t2 = get_time_from_exif_tag(e); + exif_data_unref (e); + } + e = exif_content_get_entry (ed->ifd_exif, + EXIF_TAG_DATE_TIME_DIGITIZED); + if (e) { + t3 = get_time_from_exif_tag(e); + exif_data_unref (e); + } +#endif + exif_data_unref (ed); + if (!t1 && !t2 && !t3) { + GP_LOG_D ("EXIF data has not date/time tags."); + return 0; + } + + /* Perform some sanity checking on those tags */ + t = t1; /* "last modified" */ + + if (t2 > t) /* "image taken" > "last modified" ? can not be */ + t = t2; + if (t3 > t) /* "image digitized" > max(last two) ? can not be */ + t = t3; + + GP_LOG_D ("Found time in EXIF data: '%s'.", asctime (localtime (&t))); + return (t); +} + +static time_t +gp_filesystem_get_exif_mtime (CameraFilesystem *fs, const char *folder, + const char *filename) +{ + CameraFile *file; + const char *data = NULL; + unsigned long int size = 0; + time_t t; + + if (!fs) + return 0; + + /* This is only useful for JPEGs. Avoid querying it for other types. */ + if ( !strstr(filename,"jpg") && !strstr(filename,"JPG") && + !strstr(filename,"jpeg") && !strstr(filename,"JPEG") + ) + return 0; + + gp_file_new (&file); + if (gp_filesystem_get_file (fs, folder, filename, + GP_FILE_TYPE_EXIF, file, NULL) != GP_OK) { + GP_LOG_E ("Could not get EXIF data of '%s' in folder '%s'.", + filename, folder); + gp_file_unref (file); + return 0; + } + + gp_file_get_data_and_size (file, &data, &size); + t = get_exif_mtime ((unsigned char*)data, size); + gp_file_unref (file); + + return (t); +} +#endif + +/** + * \brief The internal camera filesystem structure + * + * The internals of the #CameraFilesystem are only visible to gphoto2. You + * can only access them using the functions provided by gphoto2. + **/ +struct _CameraFilesystem { + CameraFilesystemFolder *rootfolder; + + CameraFilesystemFile *lru_first; + CameraFilesystemFile *lru_last; + unsigned long int lru_size; + + CameraFilesystemGetInfoFunc get_info_func; + CameraFilesystemSetInfoFunc set_info_func; + CameraFilesystemListFunc file_list_func; + CameraFilesystemListFunc folder_list_func; + CameraFilesystemGetFileFunc get_file_func; + CameraFilesystemReadFileFunc read_file_func; + CameraFilesystemDeleteFileFunc delete_file_func; + CameraFilesystemPutFileFunc put_file_func; + CameraFilesystemDeleteAllFunc delete_all_func; + CameraFilesystemDirFunc make_dir_func; + CameraFilesystemDirFunc remove_dir_func; + CameraFilesystemStorageInfoFunc storage_info_func; + + void *data; +}; + +#undef MIN +#define MIN(a, b) (((a) < (b)) ? (a) : (b)) + +#define CR(result) {int __r = (result); if (__r < 0) return (__r);} + +#define CL(result,list) \ +{ \ + int __r = (result); \ + \ + if (__r < 0) { \ + gp_list_free (list); \ + return (__r); \ + } \ +} + +#define CU(result,file) \ +{ \ + int __r = (result); \ + \ + if (__r < 0) { \ + gp_file_unref (file); \ + return (__r); \ + } \ +} + +#define CC(context) \ +{ \ + if (gp_context_cancel (context) == GP_CONTEXT_FEEDBACK_CANCEL) \ + return GP_ERROR_CANCEL; \ +} + +#define CA(f,c) \ +{ \ + if ((f)[0] != '/') { \ + gp_context_error ((c), \ + _("The path '%s' is not absolute."), (f)); \ + return (GP_ERROR_PATH_NOT_ABSOLUTE); \ + } \ +} + +static int +delete_all_files (CameraFilesystem *fs, CameraFilesystemFolder *folder) +{ + CameraFilesystemFile *file; + + C_PARAMS (folder); + GP_LOG_D ("Delete all files in folder %p/%s", folder, folder->name); + + file = folder->files; + while (file) { + CameraFilesystemFile *next; + /* Get rid of cached files */ + gp_filesystem_lru_remove_one (fs, file); + if (file->preview) { + gp_file_unref (file->preview); + file->preview = NULL; + } + if (file->normal) { + gp_file_unref (file->normal); + file->normal = NULL; + } + if (file->raw) { + gp_file_unref (file->raw); + file->raw = NULL; + } + if (file->audio) { + gp_file_unref (file->audio); + file->audio = NULL; + } + if (file->exif) { + gp_file_unref (file->exif); + file->exif = NULL; + } + if (file->metadata) { + gp_file_unref (file->metadata); + file->metadata = NULL; + } + next = file->next; + free (file->name); + free (file); + file = next; + } + folder->files = NULL; + return (GP_OK); +} + +static int +delete_folder (CameraFilesystem *fs, CameraFilesystemFolder **folder) +{ + CameraFilesystemFolder *next; + C_PARAMS (folder); + + GP_LOG_D ("Delete one folder %p/%s", *folder, (*folder)->name); + next = (*folder)->next; + delete_all_files (fs, *folder); + free ((*folder)->name); + free (*folder); + *folder = next; + return (GP_OK); +} + +static CameraFilesystemFolder* +lookup_folder ( + CameraFilesystem *fs, + CameraFilesystemFolder *folder, const char *foldername, + GPContext *context +) { + CameraFilesystemFolder *f; + const char *curpt = foldername; + const char *s; + + GP_LOG_D ("Lookup folder '%s'...", foldername); + while (folder) { + /* handle multiple slashes, and slashes at the end */ + while (curpt[0]=='/') + curpt++; + if (!curpt[0]) { + GP_LOG_D ("Found! %s is %p", foldername, folder); + return folder; + } + + s = strchr(curpt,'/'); + /* Check if we need to load the folder ... */ + if (folder->folders_dirty) { + CameraList *list; + char *copy = strdup (foldername); + int ret; + /* + * The parent folder is dirty. List the folders in the parent + * folder to make it clean. + */ + /* the character _before_ curpt is a /, overwrite it temporary with \0 */ + copy[curpt-foldername] = '\0'; + GP_LOG_D ("Folder %s is dirty. " + "Listing folders in there to make folder clean...", copy); + ret = gp_list_new (&list); + if (ret == GP_OK) { + ret = gp_filesystem_list_folders (fs, copy, list, context); + gp_list_free (list); + GP_LOG_D ("Done making folder %s clean...", copy); + } else { + GP_LOG_D ("Making folder %s clean failed: %d", copy, ret); + } + free (copy); + } + f = folder->folders; + while (f) { + if (s) { + if (!strncmp(f->name,curpt, (s-curpt)) && + (strlen(f->name) == (s-curpt)) + ) { + folder = f; + curpt = s; + break; + } + } else { + if (!strcmp(f->name,curpt)) + return f; + } + f = f->next; + } + folder = f; + } + return NULL; +} + +static int +lookup_folder_file ( + CameraFilesystem *fs, + const char *folder, const char *filename, + CameraFilesystemFolder **xfolder, CameraFilesystemFile **xfile, + GPContext *context +) { + CameraFilesystemFolder* xf; + CameraFilesystemFile* f; + + GP_LOG_D ("Lookup folder %s file %s", folder, filename); + xf = lookup_folder (fs, fs->rootfolder, folder, context); + if (!xf) return GP_ERROR_DIRECTORY_NOT_FOUND; + /* Check if we need to load the filelist of the folder ... */ + if (xf->files_dirty) { + CameraList *list; + int ret; + /* + * The folder is dirty. List the files in it to make it clean. + */ + GP_LOG_D ("Folder %s is dirty. " + "Listing files in there to make folder clean...", folder); + ret = gp_list_new (&list); + if (ret == GP_OK) { + ret = gp_filesystem_list_files (fs, folder, list, context); + gp_list_free (list); + GP_LOG_D ("Done making folder %s clean...", folder); + } + if (ret != GP_OK) + GP_LOG_D ("Making folder %s clean failed: %d", folder, ret); + } + + f = xf->files; + while (f) { + if (!strcmp (f->name, filename)) { + *xfile = f; + *xfolder = xf; + return GP_OK; + } + f = f->next; + } + return GP_ERROR_FILE_NOT_FOUND; +} + +/* delete all folder content */ +static int +recurse_delete_folder (CameraFilesystem *fs, CameraFilesystemFolder *folder) { + CameraFilesystemFolder **f; + + GP_LOG_D ("Recurse delete folder %p/%s", folder, folder->name); + f = &folder->folders; + while (*f) { + recurse_delete_folder (fs, *f); + delete_folder (fs, f); /* will also advance to next */ + } + return GP_OK; +} + +static int +delete_all_folders (CameraFilesystem *fs, const char *foldername, + GPContext *context) +{ + CameraFilesystemFolder *folder; + + GP_LOG_D ("Internally deleting " + "all folders from '%s'...", foldername); + + C_PARAMS (fs && foldername); + CC (context); + CA (foldername, context); + + folder = lookup_folder (fs, fs->rootfolder, foldername, context); + if (!folder) return GP_OK; + return recurse_delete_folder (fs, folder); +} + +/* create and append 1 new folder entry to the current folder */ +static int +append_folder_one ( + CameraFilesystemFolder *folder, + const char *name, + CameraFilesystemFolder **newfolder +) { + CameraFilesystemFolder *f; + + GP_LOG_D ("Append one folder %s", name); + C_MEM (f = calloc(1, sizeof(CameraFilesystemFolder))); + f->name = strdup (name); + if (!f->name) { + free (f); + return GP_ERROR_NO_MEMORY; + } + f->files_dirty = 1; + f->folders_dirty = 1; + + /* Link into the current chain... perhaps later alphabetically? */ + f->next = folder->folders; + folder->folders = f; + if (newfolder) *newfolder = f; + return (GP_OK); +} + +/* This is a mix between lookup and folder creator */ +static int +append_to_folder (CameraFilesystemFolder *folder, + const char *foldername, + CameraFilesystemFolder **newfolder +) { + CameraFilesystemFolder *f; + char *s; + + GP_LOG_D ("Append to folder %p/%s - %s", folder, folder->name, foldername); + /* Handle multiple slashes, and slashes at the end */ + while (foldername[0]=='/') + foldername++; + if (!foldername[0]) { + if (newfolder) *newfolder = folder; + return (GP_OK); + } + + s = strchr(foldername,'/'); + f = folder->folders; + while (f) { + if (s) { + if (!strncmp(f->name,foldername, (s-foldername)) && + (strlen(f->name) == (s-foldername)) + ) + return append_to_folder (f, s+1, newfolder); + } else { + if (!strcmp(f->name,foldername)) { + if (newfolder) *newfolder = f; + return (GP_OK); + } + } + f = f->next; + } + /* Not found ... create new folder */ + if (s) { + char *x; + C_MEM (x = calloc ((s-foldername)+1,1)); + memcpy (x, foldername, (s-foldername)); + x[s-foldername] = 0; + CR (append_folder_one (folder, x, newfolder)); + free (x); + } else { + CR (append_folder_one (folder, foldername, newfolder)); + } + return (GP_OK); +} + +static int +append_folder (CameraFilesystem *fs, + const char *folder, + CameraFilesystemFolder **newfolder, + GPContext *context +) { + GP_LOG_D ("Appending folder %s...", folder); + C_PARAMS (fs); + C_PARAMS (folder); + CC (context); + CA (folder, context); + return append_to_folder (fs->rootfolder, folder, newfolder); +} + +static int +append_file (CameraFilesystem *fs, CameraFilesystemFolder *folder, const char *name, CameraFile *file, GPContext *context) +{ + CameraFilesystemFile **new; + + C_PARAMS (fs && file); + GP_LOG_D ("Appending file %s...", name); + + new = &folder->files; + while (*new) { + if (!strcmp((*new)->name, name)) { + GP_LOG_E ("File %s already exists!", name); + return (GP_ERROR); + } + new = &((*new)->next); + } + /* new now points to the location of the last ->next pointer, + * if we write to it, we set last->next */ + C_MEM ((*new) = calloc (1, sizeof (CameraFilesystemFile))); + C_MEM ((*new)->name = strdup (name)); + (*new)->info_dirty = 1; + (*new)->normal = file; + gp_file_ref (file); + return (GP_OK); +} + +/** + * \brief Clear the filesystem + * \param fs the filesystem to be cleared + * + * Resets the filesystem. All cached information including the folder tree + * will get lost and will be queried again on demand. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_reset (CameraFilesystem *fs) +{ + GP_LOG_D ("resetting filesystem"); + CR (gp_filesystem_lru_clear (fs)); + CR (delete_all_folders (fs, "/", NULL)); + + /* the recurse delete will not delete the files in /, only in subdirs */ + delete_all_files (fs, fs->rootfolder); + + if (fs->rootfolder) { + fs->rootfolder->files_dirty = 1; + fs->rootfolder->folders_dirty = 1; + } else { + GP_LOG_E ("root folder is gone?"); + } + return (GP_OK); +} + +/** + * \brief Create a new filesystem struct + * + * \param fs a pointer to a #CameraFilesystem + * + * Creates a new empty #CameraFilesystem + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_new (CameraFilesystem **fs) +{ + C_PARAMS (fs); + + C_MEM (*fs = calloc (1, sizeof (CameraFilesystem))); + + (*fs)->rootfolder = calloc (sizeof (CameraFilesystemFolder), 1); + if (!(*fs)->rootfolder) { + free (*fs); + return (GP_ERROR_NO_MEMORY); + } + (*fs)->rootfolder->name = strdup("/"); + if (!(*fs)->rootfolder->name) { + free ((*fs)->rootfolder); + free (*fs); + return (GP_ERROR_NO_MEMORY); + } + (*fs)->rootfolder->files_dirty = 1; + (*fs)->rootfolder->folders_dirty = 1; + return (GP_OK); +} + +/** + * \brief Free filesystem struct + * \param fs a #CameraFilesystem + * + * Frees the #CameraFilesystem + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_free (CameraFilesystem *fs) +{ + /* We don't care for success or failure */ + gp_filesystem_reset (fs); + + /* Now, we've only got left over the root folder. Free that and + * the filesystem. */ + free (fs->rootfolder->name); + free (fs->rootfolder); + free (fs); + return (GP_OK); +} + +/** + * \brief Append a file to a folder in a filesystem + * \param fs a #CameraFilesystem + * \param folder the folder where to put the file in + * \param filename filename of the file + * \param context a #GPContext + * + * Tells the fs that there is a file called filename in folder + * called folder. Usually camera drivers will call this function after + * capturing an image in order to tell the fs about the new file. + * A front-end should not use this function. + * + * \return a gphoto2 error code. + **/ +static int +internal_append (CameraFilesystem *fs, CameraFilesystemFolder *f, + const char *filename, GPContext *context) +{ + CameraFilesystemFile **new; + + C_PARAMS (fs && f); + + GP_LOG_D ("Internal append %s to folder %s", filename, f->name); + /* Check folder for existence, if not, create it. */ + new = &f->files; + while (*new) { + if (!strcmp((*new)->name, filename)) break; + new = &((*new)->next); + } + if (*new) + return (GP_ERROR_FILE_EXISTS); + + C_MEM ((*new) = calloc (sizeof (CameraFilesystemFile), 1)); + (*new)->name = strdup (filename); + if (!(*new)->name) { + free (*new); + *new = NULL; + return (GP_ERROR_NO_MEMORY); + } + (*new)->info_dirty = 1; + return (GP_OK); +} + +int +gp_filesystem_append (CameraFilesystem *fs, const char *folder, + const char *filename, GPContext *context) +{ + CameraFilesystemFolder *f; + int ret; + + C_PARAMS (fs && folder); + CC (context); + CA (folder, context); + + GP_LOG_D ("Append %s/%s to filesystem", folder, filename); + /* Check folder for existence, if not, create it. */ + f = lookup_folder (fs, fs->rootfolder, folder, context); + if (!f) + CR (append_folder (fs, folder, &f, context)); + if (f->files_dirty) { /* Need to load folder from driver first ... capture case */ + CameraList *xlist; + int ret; + + ret = gp_list_new (&xlist); + if (ret != GP_OK) return ret; + ret = gp_filesystem_list_files (fs, folder, xlist, context); + gp_list_free (xlist); + if (ret != GP_OK) return ret; + } + ret = internal_append (fs, f, filename, context); + if (ret == GP_ERROR_FILE_EXISTS) /* not an error here ... just in case we add files twice to the list */ + ret = GP_OK; + return ret; +} + + +static void +recursive_fs_dump (CameraFilesystemFolder *folder, int depth) { + CameraFilesystemFolder *f; + CameraFilesystemFile *xfile; + + GP_LOG_D ("%*sFolder %s", depth, " ", folder->name); + + xfile = folder->files; + while (xfile) { + GP_LOG_D ("%*s %s", depth, " ", xfile->name); + xfile = xfile->next; + } + + f = folder->folders; + while (f) { + recursive_fs_dump (f, depth+4); + f = f->next; + } +} +/** + * \brief Dump the current filesystem. + * \param fs the #CameraFilesystem + * \return a gphoto error code + * + * Internal function to dump the current filesystem. + */ +int +gp_filesystem_dump (CameraFilesystem *fs) +{ + GP_LOG_D ("Dumping Filesystem:"); + recursive_fs_dump (fs->rootfolder, 0); + return (GP_OK); +} + +static int +delete_file (CameraFilesystem *fs, CameraFilesystemFolder *folder, CameraFilesystemFile *file) +{ + CameraFilesystemFile **prev; + + gp_filesystem_lru_remove_one (fs, file); + /* Get rid of cached files */ + if (file->preview) { + gp_file_unref (file->preview); + file->preview = NULL; + } + if (file->normal) { + gp_file_unref (file->normal); + file->normal = NULL; + } + if (file->raw) { + gp_file_unref (file->raw); + file->raw = NULL; + } + if (file->audio) { + gp_file_unref (file->audio); + file->audio = NULL; + } + if (file->exif) { + gp_file_unref (file->exif); + file->exif = NULL; + } + if (file->metadata) { + gp_file_unref (file->metadata); + file->metadata = NULL; + } + + prev = &(folder->files); + while ((*prev) && ((*prev) != file)) + prev = &((*prev)->next); + if (!*prev) + return GP_ERROR; + *prev = file->next; + file->next = NULL; + free (file->name); + free (file); + return (GP_OK); +} + +static int +gp_filesystem_delete_all_one_by_one (CameraFilesystem *fs, const char *folder, + GPContext *context) +{ + CameraList *list; + int count, x; + const char *name; + + GP_LOG_D ("Deleting all 1 by 1 from %s", folder); + CR (gp_list_new (&list)); + CL (gp_filesystem_list_files (fs, folder, list, context), list); + CL (count = gp_list_count (list), list); + for (x = count ; x--; ) { + CL (gp_list_get_name (list, x, &name), list); + CL (gp_filesystem_delete_file (fs, folder, name, context),list); + } + gp_list_free(list); + return (GP_OK); +} + +/** + * \brief Delete all files in specified folder. + * + * \param fs a #CameraFilesystem + * \param folder the folder in which to delete all files + * \param context a #GPContext + * + * Deletes all files in the given folder from the fs. If the fs has not + * been supplied with a delete_all_func, it tries to delete the files + * one by one using the delete_file_func. If that function has not been + * supplied neither, an error is returned. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_delete_all (CameraFilesystem *fs, const char *folder, + GPContext *context) +{ + int r; + CameraFilesystemFolder *f; + + C_PARAMS (fs && folder); + CC (context); + CA (folder, context); + + GP_LOG_D ("Deleting all from %s", folder); + /* Make sure this folder exists */ + f = lookup_folder (fs, fs->rootfolder, folder, context); + if (!f) return (GP_ERROR_DIRECTORY_NOT_FOUND); + + if (!fs->delete_all_func) + return gp_filesystem_delete_all_one_by_one (fs, folder, context); + /* + * Mark the folder dirty - it could be that an error + * happens, and then we don't know which files have been + * deleted and which not. + */ + f->files_dirty = 1; + /* + * First try to use the delete_all function. If that fails, + * fall back to deletion one-by-one. + */ + r = fs->delete_all_func (fs, folder, fs->data, context); + if (r < 0) { + GP_LOG_D ( + "delete_all failed (%s). Falling back to " + "deletion one-by-one.", + gp_result_as_string (r)); + CR (gp_filesystem_delete_all_one_by_one (fs, folder, + context)); + } else { + /* delete from filesystem view too now */ + CR (delete_all_files (fs, f)); + } + /* + * No error happened. We can be sure that all files have been + * deleted. + */ + f->files_dirty = 0; + return (GP_OK); +} + +/** + * \brief Get the list of files in a folder + * \param fs a #CameraFilesystem + * \param folder a folder of which a file list should be generated + * \param list a #CameraList where to put the list of files into + * \param context a #GPContext + * + * Lists the files in folder using either cached values or (if there + * aren't any) the file_list_func which (hopefully) has been previously + * supplied. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_list_files (CameraFilesystem *fs, const char *folder, + CameraList *list, GPContext *context) +{ + int count, y; + const char *name; + CameraFilesystemFolder *f; + CameraFilesystemFile *file; + + GP_LOG_D ("Listing files in %s", folder); + + C_PARAMS (fs && list && folder); + CC (context); + CA (folder, context); + + gp_list_reset (list); + + /* Search the folder */ + f = lookup_folder (fs, fs->rootfolder, folder, context); + if (!f) return (GP_ERROR_DIRECTORY_NOT_FOUND); + + /* If the folder is dirty, delete the contents and query the camera */ + if (f->files_dirty && fs->file_list_func) { + GP_LOG_D ("Querying folder %s...", folder); + CR (delete_all_files (fs, f)); + + /* set it to non-dirty now, so we do not recurse via _append. */ + f->files_dirty = 0; + CR (fs->file_list_func (fs, folder, list, + fs->data, context)); + + CR (count = gp_list_count (list)); + for (y = 0; y < count; y++) { + CR (gp_list_get_name (list, y, &name)); + GP_LOG_D ("Added '%s'", name); + CR (internal_append (fs, f, name, context)); + } + gp_list_reset (list); + } + /* The folder is clean now */ + f->files_dirty = 0; + + file = f->files; + while (file) { + GP_LOG_D ( + "Listed '%s'", file->name); + CR (gp_list_append (list, file->name, NULL)); + file = file->next; + } + return (GP_OK); +} + +/** + * \brief List all subfolders within a filesystem folder + * \param fs a #CameraFilesystem + * \param folder a folder + * \param list a #CameraList where subfolders should be listed + * \param context a #GPContext + * + * Generates a list of subfolders of the supplied folder either using + * cached values (if there are any) or the folder_list_func if it has been + * supplied previously. If not, it is assumed that only a root folder + * exists (which is the case for many cameras). + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_list_folders (CameraFilesystem *fs, const char *folder, + CameraList *list, GPContext *context) +{ + int y, count; + const char *name; + CameraFilesystemFolder *f, *new; + + GP_LOG_D ("Listing folders in %s", folder); + + C_PARAMS (fs && folder && list); + CC (context); + CA (folder, context); + + gp_list_reset (list); + + /* Search the folder */ + f = lookup_folder (fs, fs->rootfolder, folder, context); + if (!f) return (GP_ERROR_DIRECTORY_NOT_FOUND); + + + /* If the folder is dirty, query the contents. */ + if (f->folders_dirty && fs->folder_list_func) { + GP_LOG_D ("... is dirty, getting from camera"); + CR (fs->folder_list_func (fs, folder, list, + fs->data, context)); + CR (delete_all_folders (fs, folder, context)); + + CR (count = gp_list_count (list)); + for (y = 0; y < count; y++) { + CR (gp_list_get_name (list, y, &name)); + CR (append_folder_one (f, name, NULL)); + } + /* FIXME: why not just return (GP_OK); ? the list should be fine */ + gp_list_reset (list); + } + + new = f->folders; + while (new) { + CR (gp_list_append (list, new->name, NULL)); + new = new->next; + } + /* The folder is clean now */ + f->folders_dirty = 0; + GP_LOG_D ("Folder %s contains %i subfolders.", folder, gp_list_count (list)); + return (GP_OK); +} + +/** + * \brief Count files a folder of a filesystem. + * \param fs a #CameraFilesystem + * \param folder a folder in which to count the files + * \param context a #GPContext + * + * Counts the files in the folder. + * + * \return The number of files in the folder or a gphoto2 error code. + **/ +int +gp_filesystem_count (CameraFilesystem *fs, const char *folder, + GPContext *context) +{ + int x; + CameraFilesystemFolder *f; + CameraFilesystemFile *file; + + C_PARAMS (fs && folder); + CC (context); + CA (folder, context); + + f = lookup_folder (fs, fs->rootfolder, folder, context); + if (!f) return (GP_ERROR_DIRECTORY_NOT_FOUND); + + x = 0; + file = f->files; + while (file) { + x++; + file = file->next; + } + return x; +} + +/** + * \brief Delete a file from a folder. + * \param fs a #CameraFilesystem + * \param folder a folder in which to delete the file + * \param filename the name of the file to delete + * \param context a #GPContext + * + * If a delete_file_func has been supplied to the fs, this function will + * be called and, if this function returns without error, the file will be + * removed from the fs. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_delete_file (CameraFilesystem *fs, const char *folder, + const char *filename, GPContext *context) +{ + CameraFilesystemFolder *f; + CameraFilesystemFile *file; + + C_PARAMS (fs && folder && filename); + CC (context); + CA (folder, context); + + /* First of all, do we support file deletion? */ + if (!fs->delete_file_func) { + gp_context_error (context, _("You have been trying to delete " + "'%s' from folder '%s', but the filesystem does not " + "support deletion of files."), filename, folder); + return (GP_ERROR_NOT_SUPPORTED); + } + + /* Search the folder and the file */ + CR (lookup_folder_file (fs, folder, filename, &f, &file, context)); + + GP_LOG_D ("Deleting '%s' from folder '%s'...", filename, folder); + + /* Delete the file */ + CR (fs->delete_file_func (fs, folder, filename, + fs->data, context)); + CR (delete_file (fs, f, file)); + return (GP_OK); +} + +/** + * \brief Delete a virtal file from a folder in the filesystem + * \param fs a #CameraFilesystem + * \param folder a folder in which to delete the file + * \param filename the name of the file to delete + * \param context a #GPContext + * + * Remove a file from the filesystem. Compared to gp_filesystem_delete_file() + * this just removes the file from the libgphoto2 view of the filesystem, but + * does not call the camera driver to delete it from the physical device. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_delete_file_noop (CameraFilesystem *fs, const char *folder, + const char *filename, GPContext *context) +{ + CameraFilesystemFolder *f; + CameraFilesystemFile *file; + + C_PARAMS (fs && folder && filename); + CC (context); + CA (folder, context); + /* Search the folder and the file */ + CR (lookup_folder_file (fs, folder, filename, &f, &file, context)); + return delete_file (fs, f, file); +} + +/** + * \brief Create a subfolder within a folder + * \param fs a #CameraFilesystem + * \param folder the folder in which the directory should be created + * \param name the name of the directory to be created + * \param context a #GPContext + * + * Creates a new directory called name in given folder. + * + * \return a gphoto2 error code + **/ +int +gp_filesystem_make_dir (CameraFilesystem *fs, const char *folder, + const char *name, GPContext *context) +{ + CameraFilesystemFolder *f; + + C_PARAMS (fs && folder && name); + CC (context); + CA (folder, context); + + if (!fs->make_dir_func) + return (GP_ERROR_NOT_SUPPORTED); + + /* Search the folder */ + f = lookup_folder (fs, fs->rootfolder, folder, context); + if (!f) return (GP_ERROR_DIRECTORY_NOT_FOUND); + + /* Create the directory */ + CR (fs->make_dir_func (fs, folder, name, fs->data, context)); + /* and append to internal fs */ + return append_folder_one (f, name, NULL); +} + +/** + * \brief Remove a subfolder from within a folder + * \param fs a #CameraFilesystem + * \param folder the folder in which the directory should be created + * \param name the name of the directory to be created + * \param context a #GPContext + * + * Removes a directory called name from the given folder. + * + * \return a gphoto2 error code + **/ +int +gp_filesystem_remove_dir (CameraFilesystem *fs, const char *folder, + const char *name, GPContext *context) +{ + CameraFilesystemFolder *f; + CameraFilesystemFolder **prev; + + C_PARAMS (fs && folder && name); + CC (context); + CA (folder, context); + + if (!fs->remove_dir_func) + return (GP_ERROR_NOT_SUPPORTED); + + /* + * Make sure there are neither files nor folders in the folder + * that is to be removed. + */ + f = lookup_folder (fs, fs->rootfolder, folder, context); + if (!f) return (GP_ERROR_DIRECTORY_NOT_FOUND); + /* Check if we need to load the folder ... */ + if (f->folders_dirty) { + CameraList *list; + int ret; + /* + * The owning folder is dirty. List the folders in it + * to make it clean. + */ + GP_LOG_D ("Folder %s is dirty. " + "Listing folders in there to make folder clean...", folder); + ret = gp_list_new (&list); + if (ret == GP_OK) { + ret = gp_filesystem_list_folders (fs, folder, list, context); + gp_list_free (list); + GP_LOG_D ("Done making folder %s clean...", folder); + } + } + prev = &(f->folders); + while (*prev) { + if (!strcmp (name, (*prev)->name)) + break; + prev = &((*prev)->next); + } + if (!*prev) return (GP_ERROR_DIRECTORY_NOT_FOUND); + + if ((*prev)->folders) { + gp_context_error (context, _("There are still subfolders in " + "folder '%s/%s' that you are trying to remove."), folder, name); + return (GP_ERROR_DIRECTORY_EXISTS); + } + if ((*prev)->files) { + gp_context_error (context, _("There are still files in " + "folder '%s/%s' that you are trying to remove."), folder,name); + return (GP_ERROR_FILE_EXISTS); + } + + /* Remove the directory */ + CR (fs->remove_dir_func (fs, folder, name, fs->data, context)); + CR (delete_folder (fs, prev)); + return (GP_OK); +} + +/** + * \brief Upload a file to a folder on the device filesystem + * \param fs a #CameraFilesystem + * \param folder the folder where to put the file into + * \param file the file + * \param context a #GPContext + * + * Uploads a file to the camera if a put_file_func has been previously + * supplied to the fs. If the upload is successful, the file will get + * cached in the fs. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_put_file (CameraFilesystem *fs, + const char *folder, const char *filename, + CameraFileType type, + CameraFile *file, GPContext *context) +{ + CameraFilesystemFolder *f; + int ret; + + C_PARAMS (fs && folder && file); + CC (context); + CA (folder, context); + + /* Do we support file upload? */ + if (!fs->put_file_func) { + gp_context_error (context, _("The filesystem does not support " + "upload of files.")); + return (GP_ERROR_NOT_SUPPORTED); + } + + /* Search the folder */ + f = lookup_folder (fs, fs->rootfolder, folder, context); + if (!f) return (GP_ERROR_DIRECTORY_NOT_FOUND); + + /* Upload the file */ + CR (fs->put_file_func (fs, folder, filename, type, file, fs->data, context)); + /* And upload it to internal structure too */ + ret = append_file (fs, f, filename, file, context); + if (type != GP_FILE_TYPE_NORMAL) /* FIXME perhaps check before append_file? */ + return GP_OK; + return ret; +} + +/** + * \brief Lookup the filename of an indexed file within a folder. + * \param fs a #CameraFilesystem + * \param folder the folder where to look up the file with the filenumber + * \param filenumber the number of the file + * \param filename pointer to a filename where the result is stored + * \param context a #GPContext + * + * Looks up the filename of file with given filenumber in given folder. + * See gp_filesystem_number for exactly the opposite functionality. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_name (CameraFilesystem *fs, const char *folder, int filenumber, + const char **filename, GPContext *context) +{ + CameraFilesystemFolder *f; + CameraFilesystemFile *file; + int count; + C_PARAMS (fs && folder); + CC (context); + CA (folder, context); + + f = lookup_folder (fs, fs->rootfolder, folder, context); + if (!f) return (GP_ERROR_DIRECTORY_NOT_FOUND); + + file = f->files; + count = 0; + while (file) { + if (filenumber == 0) + break; + filenumber--; + count++; + file = file->next; + } + + if (!file) { + gp_context_error (context, _("Folder '%s' only contains " + "%i files, but you requested a file with number %i."), + folder, count, filenumber); + return (GP_ERROR_FILE_NOT_FOUND); + } + *filename = file->name; + return (GP_OK); +} + +/** + * \brief Get the index of a file in specified folder + * \param fs a #CameraFilesystem + * \param folder the folder where to look for file called filename + * \param filename the file to look for + * \param context a #GPContext + * + * Looks for a file called filename in the given folder. See + * gp_filesystem_name for exactly the opposite functionality. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_number (CameraFilesystem *fs, const char *folder, + const char *filename, GPContext *context) +{ + CameraFilesystemFolder *f; + CameraFilesystemFile *file; + CameraList *list; + int num; + + C_PARAMS (fs && folder && filename); + CC (context); + CA (folder, context); + + f = lookup_folder (fs, fs->rootfolder, folder, context); + if (!f) return (GP_ERROR_DIRECTORY_NOT_FOUND); + + file = f->files; + num = 0; + while (file) { + if (!strcmp (file->name, filename)) + return num; + num++; + file = file->next; + } + + /* Ok, we didn't find the file. Is the folder dirty? */ + if (!f->files_dirty) { + gp_context_error (context, _("File '%s' could not be found " + "in folder '%s'."), filename, folder); + return (GP_ERROR_FILE_NOT_FOUND); + } + /* The folder is dirty. List all files to make it clean */ + CR (gp_list_new(&list)); + CL (gp_filesystem_list_files (fs, folder, list, context), list); + gp_list_free(list); + return (gp_filesystem_number (fs, folder, filename, context)); +} + +static int +gp_filesystem_scan (CameraFilesystem *fs, const char *folder, + const char *filename, GPContext *context) +{ + int count, x; + CameraList *list; + const char *name; + char path[128]; + + GP_LOG_D ("Scanning %s for %s...", folder, filename); + + C_PARAMS (fs && folder && filename); + CC (context); + CA (folder, context); + + CR (gp_list_new (&list)); + CL (gp_filesystem_list_files (fs, folder, list, context), list); + CL (count = gp_list_count (list), list); + for (x = 0; x < count; x++) { + CL (gp_list_get_name (list, x, &name), list); + if (!strcmp (filename, name)) { + gp_list_free (list); + return (GP_OK); + } + } + + CL (gp_filesystem_list_folders (fs, folder, list, context), list); + CL (count = gp_list_count (list), list); + for (x = 0; x < count; x++) { + CL (gp_list_get_name (list, x, &name), list); + strncpy (path, folder, sizeof (path)); + if (path[strlen (path) - 1] != '/') + strncat (path, "/", sizeof (path) - strlen (path) - 1); + strncat (path, name, sizeof (path) - strlen (path) - 1); + CL (gp_filesystem_scan (fs, path, filename, context), list); + } + gp_list_free (list); + return (GP_OK); +} + +static int +recursive_folder_scan ( + CameraFilesystemFolder *folder, const char *lookforfile, + char **foldername +) { + CameraFilesystemFile *file; + CameraFilesystemFolder *f; + int ret; + + file = folder->files; + while (file) { + if (!strcmp(file->name, lookforfile)) { + *foldername = strdup (folder->name); + return GP_OK; + } + file = file->next; + } + f = folder->folders; + while (f) { + char *xfolder; + ret = recursive_folder_scan (f, lookforfile, &xfolder); + if (ret == GP_OK) { + C_MEM ((*foldername) = malloc (strlen (folder->name) + 1 + strlen (xfolder) + 1)); + strcpy ((*foldername),folder->name); + strcat ((*foldername),"/"); + strcat ((*foldername),xfolder); + free (xfolder); + return GP_OK; + } + f = f->next; + } + /* thorugh all subfoilders */ + return GP_ERROR_FILE_NOT_FOUND; +} +/** + * \brief Search a folder that contains a given filename + * \param fs a #CameraFilesystem + * \param filename the name of the file to search in the fs + * \param folder pointer to value where the string is stored in + * \param context a #GPContext + * + * Searches a file called filename in the fs and returns the first + * occurrency. This functionality is needed for camera drivers that cannot + * figure out where a file gets created after capturing an image although the + * name of the image is known. Usually, those drivers will call + * gp_filesystem_reset in order to tell the fs that something has + * changed and then gp_filesystem_get_folder in order to find the file. + * + * Note that you get a reference to the string stored in the filesystem structure, + * so do not free it yourself. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_get_folder (CameraFilesystem *fs, const char *filename, + char **folder, GPContext *context) +{ + int ret; + + C_PARAMS (fs && filename && folder); + CC (context); + + CR (gp_filesystem_scan (fs, "/", filename, context)); + + ret = recursive_folder_scan ( fs->rootfolder, filename, folder); + if (ret == GP_OK) return ret; + gp_context_error (context, _("Could not find file '%s'."), filename); + return (GP_ERROR_FILE_NOT_FOUND); +} + +static int +gp_filesystem_get_file_impl (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, GPContext *context) +{ + CameraFilesystemFolder *xfolder; + CameraFilesystemFile *xfile; + int ret; + + C_PARAMS (fs && folder && file && filename); + CC (context); + CA (folder, context); + + GP_LOG_D ("Getting file '%s' from folder '%s' (type %i)...", + filename, folder, type); + + CR (gp_file_set_name (file, filename)); + + if (!fs->get_file_func) { + gp_context_error (context, + _("The filesystem doesn't support getting files")); + return (GP_ERROR_NOT_SUPPORTED); + } + + /* Search folder and file */ + CR( lookup_folder_file (fs, folder, filename, &xfolder, &xfile, context)); + + ret = GP_ERROR; + switch (type) { + case GP_FILE_TYPE_PREVIEW: + if (xfile->preview) + ret = gp_file_copy (file, xfile->preview); + break; + case GP_FILE_TYPE_NORMAL: + if (xfile->normal) + ret = gp_file_copy (file, xfile->normal); + break; + case GP_FILE_TYPE_RAW: + if (xfile->raw) + ret = gp_file_copy (file, xfile->raw); + break; + case GP_FILE_TYPE_AUDIO: + if (xfile->audio) + ret = gp_file_copy (file, xfile->audio); + break; + case GP_FILE_TYPE_EXIF: + if (xfile->exif) + ret = gp_file_copy (file, xfile->exif); + break; + case GP_FILE_TYPE_METADATA: + if (xfile->metadata) + ret = gp_file_copy (file, xfile->metadata); + break; + default: + gp_context_error (context, _("Unknown file type %i."), type); + return (GP_ERROR); + } + if (ret == GP_OK) { + GP_LOG_D ("LRU cache used for type %d!", type); + return GP_OK; + } + + GP_LOG_D ("Downloading '%s' from folder '%s'...", filename, folder); + + CR (fs->get_file_func (fs, folder, filename, type, file, + fs->data, context)); + + /* We don't trust the camera drivers */ + CR (gp_file_set_name (file, filename)); + +#if 0 + /* this disables LRU completely. */ + /* Cache this file */ + CR (gp_filesystem_set_file_noop (fs, folder, filename, type, file, context)); +#endif + + /* + * Often, thumbnails are of a different mime type than the normal + * picture. In this case, we should rename the file. + */ + if (type != GP_FILE_TYPE_NORMAL) + CR (gp_file_adjust_name_for_mime_type (file)); + + return (GP_OK); +} + +/** + * \brief Get file data from the filesystem + * \param fs a #CameraFilesystem + * \param folder the folder in which the file can be found + * \param filename the name of the file to download + * \param type the type of the file + * \param file the file that receives the data + * \param context a #GPContext + * + * Downloads the file called filename from the folder using the + * get_file_func if such a function has been previously supplied. If the + * file has been previously downloaded, the file is retrieved from cache. + * The result is stored in the passed file structure. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_get_file (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + CameraFile *file, GPContext *context) +{ + int r; +#ifdef HAVE_LIBEXIF + CameraFile *efile; + const char *data = NULL; + unsigned char *buf; + unsigned int buf_size; + unsigned long int size = 0; + ExifData *ed; +#endif + + r = gp_filesystem_get_file_impl (fs, folder, filename, type, + file, context); + + if ((r == GP_ERROR_NOT_SUPPORTED) && + (type == GP_FILE_TYPE_PREVIEW)) { + + /* + * Could not get preview (unsupported operation). Some + * cameras hide the thumbnail in EXIF data. Check it out. + */ +#ifdef HAVE_LIBEXIF + GP_LOG_D ("Getting previews is not supported. Trying EXIF data..."); + CR (gp_file_new (&efile)); + CU (gp_filesystem_get_file_impl (fs, folder, filename, + GP_FILE_TYPE_EXIF, efile, context), efile); + CU (gp_file_get_data_and_size (efile, &data, &size), efile); + ed = exif_data_new_from_data ((unsigned char*)data, size); + gp_file_unref (efile); + if (!ed) { + GP_LOG_E ("Could not parse EXIF data of '%s' in folder '%s'.", filename, folder); + return (GP_ERROR_CORRUPTED_DATA); + } + if (!ed->data) { + GP_LOG_E ("EXIF data does not contain a thumbnail."); + exif_data_unref (ed); + return (r); + } + + /* + * We found a thumbnail in EXIF data! Those + * thumbnails are always JPEG. Set up the file. + */ + r = gp_file_set_data_and_size (file, (char*)ed->data, ed->size); + if (r < 0) { + exif_data_unref (ed); + return (r); + } + ed->data = NULL; + ed->size = 0; + exif_data_unref (ed); + CR (gp_file_set_name (file, filename)); + CR (gp_file_set_mime_type (file, GP_MIME_JPEG)); + CR (gp_filesystem_set_file_noop (fs, folder, filename, GP_FILE_TYPE_PREVIEW, file, context)); + CR (gp_file_adjust_name_for_mime_type (file)); +#else + GP_LOG_D ("Getting previews is not supported and " + "libgphoto2 has been compiled without exif " + "support. "); + return (r); +#endif + } else if ((r == GP_ERROR_NOT_SUPPORTED) && + (type == GP_FILE_TYPE_EXIF)) { + + /* + * Some cameras hide EXIF data in thumbnails (!). Check it + * out. + */ +#ifdef HAVE_LIBEXIF + GP_LOG_D ("Getting EXIF data is not supported. Trying thumbnail..."); + CR (gp_file_new (&efile)); + CU (gp_filesystem_get_file_impl (fs, folder, filename, + GP_FILE_TYPE_PREVIEW, efile, context), efile); + CU (gp_file_get_data_and_size (efile, &data, &size), efile); + ed = exif_data_new_from_data ((unsigned char*)data, size); + gp_file_unref (efile); + if (!ed) { + GP_LOG_D ("Could not parse EXIF data of thumbnail of " + "'%s' in folder '%s'.", filename, folder); + return (GP_ERROR_CORRUPTED_DATA); + } + exif_data_save_data (ed, &buf, &buf_size); + exif_data_unref (ed); + r = gp_file_set_data_and_size (file, (char*)buf, buf_size); + if (r < 0) { + free (buf); + return (r); + } + CR (gp_file_set_name (file, filename)); + CR (gp_file_set_mime_type (file, GP_MIME_EXIF)); + CR (gp_filesystem_set_file_noop (fs, folder, filename, GP_FILE_TYPE_EXIF, file, context)); + CR (gp_file_adjust_name_for_mime_type (file)); +#else + GP_LOG_D ("Getting EXIF data is not supported and libgphoto2 " + "has been compiled without EXIF support."); + return (r); +#endif + } else if (r < 0) { + GP_LOG_D ("Download of '%s' from '%s' (type %i) failed. " + "Reason: '%s'", filename, folder, type, + gp_result_as_string (r)); + return (r); + } + + return (GP_OK); +} + +/** + * \brief Get partial file data from the filesystem + * \param fs a #CameraFilesystem + * \param folder the folder in which the file can be found + * \param filename the name of the file to download + * \param type the type of the file + * \param offset the offset where the data starts + * \param buf the targetbuffer where the data will be put + * \param size the size to read and that was read into the buffer + * \param context a #GPContext + * + * Downloads the file called filename from the folder using the + * read_file_func if such a function has been previously supplied. If the + * file has been previously downloaded, the file is retrieved from cache. + * + * The file is read partially into the passed buffer. The read starts + * at offset on the device and goes for at most size bytes. + * Reading over the end of the file might give errors, so get the maximum + * file size via an info function before. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_read_file (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileType type, + uint64_t offset, char *buf, uint64_t *size, + GPContext *context) +{ + int r; + const char *xdata; + unsigned long xsize; + CameraFile *file; + + C_PARAMS (fs && folder && filename && buf && size); + CC (context); + CA (folder, context); + + if (fs->read_file_func) { + r = fs->read_file_func (fs, folder, filename, type, + offset, buf, size, fs->data, context); + if (r == GP_OK) + return r; + } else { + return GP_ERROR_NOT_SUPPORTED; + } + return r; + /* fallback code */ + CR (gp_file_new (&file)); + CR (gp_filesystem_get_file (fs, folder, filename, type, + file, context)); + CR (gp_file_get_data_and_size (file, &xdata, &xsize)); + if (offset > *size) { /* EOF */ + gp_file_unref (file); + *size = 0; + return GP_OK; + } + if ((offset != 0) || (offset + *size != xsize)) { + /* Cache this file in the LRU, but only if the user just + * hasn't read all of it at once. + */ + CR (gp_filesystem_set_file_noop (fs, folder, filename, type, file, context)); + } + if (offset + (*size) > xsize) + *size = xsize-offset; + memcpy (buf, xdata+offset, *size); + gp_file_unref (file); + return GP_OK; +} +/** + * \brief Set all filesystem related function pointers + * \param fs a #CameraFilesystem + * \param funcs pointer to a struct of filesystem functions + * \param data private data + * + * Tells the filesystem which functions to call for camera/filesystem specific + * functions, like listing, retrieving, uploading files and so on. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_set_funcs (CameraFilesystem *fs, + CameraFilesystemFuncs *funcs, + void *data) +{ + C_PARAMS (fs); + + fs->get_info_func = funcs->get_info_func; + fs->set_info_func = funcs->set_info_func; + fs->put_file_func = funcs->put_file_func; + fs->delete_all_func = funcs->delete_all_func; + fs->make_dir_func = funcs->make_dir_func; + fs->remove_dir_func = funcs->remove_dir_func; + fs->file_list_func = funcs->file_list_func; + fs->folder_list_func = funcs->folder_list_func; + fs->delete_file_func = funcs->del_file_func; + fs->get_file_func = funcs->get_file_func; + fs->read_file_func = funcs->read_file_func; + fs->storage_info_func = funcs->storage_info_func; + fs->data = data; + return (GP_OK); +} + +/** + * \brief Get information about the specified file + * \param fs a #CameraFilesystem + * \param folder the folder that contains the file + * \param filename the filename + * \param info pointer to #CameraFileInfo that receives the information + * \param context a #GPContext + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_get_info (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo *info, + GPContext *context) +{ + CameraFilesystemFolder *f; + CameraFilesystemFile *file; +#ifdef HAVE_LIBEXIF + time_t t; +#endif + + C_PARAMS (fs && folder && filename && info); + CC (context); + CA (folder, context); + + GP_LOG_D ("Getting information about '%s' in '%s'...", filename, + folder); + + if (!fs->get_info_func) { + gp_context_error (context, + _("The filesystem doesn't support getting file " + "information")); + return (GP_ERROR_NOT_SUPPORTED); + } + + /* Search folder and file and get info if needed */ + CR ( lookup_folder_file (fs, folder, filename, &f, &file, context)); + + if (file->info_dirty) { + CR (fs->get_info_func (fs, folder, filename, + &file->info, + fs->data, context)); + file->info_dirty = 0; + } + + /* + * If we didn't get GP_FILE_INFO_MTIME, we'll have a look if we + * can get it from EXIF data. + */ +#ifdef HAVE_LIBEXIF + if (!(file->info.file.fields & GP_FILE_INFO_MTIME)) { + GP_LOG_D ("Did not get mtime. Trying EXIF information..."); + t = gp_filesystem_get_exif_mtime (fs, folder, filename); + if (t) { + file->info.file.mtime = t; + file->info.file.fields |= GP_FILE_INFO_MTIME; + } + } +#endif + memcpy (info, &file->info, sizeof (CameraFileInfo)); + return (GP_OK); +} + +static int +gp_filesystem_lru_clear (CameraFilesystem *fs) +{ + int n = 0; + CameraFilesystemFile *ptr, *prev; + + GP_LOG_D ("Clearing fscache LRU list..."); + + if (fs->lru_first == NULL) { + GP_LOG_D ("fscache LRU list already empty"); + return (GP_OK); + } + + ptr = prev = fs->lru_first; + while (ptr != NULL) { + n++; + if (ptr->lru_prev != prev) { + GP_LOG_D ("fscache LRU list corrupted (%i)", n); + return (GP_ERROR); + } + prev = ptr; + ptr = ptr->lru_next; + + prev->lru_prev = NULL; + prev->lru_next = NULL; + } + + fs->lru_first = NULL; + fs->lru_last = NULL; + fs->lru_size = 0; + + GP_LOG_D ("fscache LRU list cleared (removed %i items)", n); + + return (GP_OK); +} + +static int +gp_filesystem_lru_remove_one (CameraFilesystem *fs, CameraFilesystemFile *item) +{ + if (item->lru_prev == NULL) + return (GP_ERROR); + + /* Update the prev and next pointers. */ + if (item->lru_prev) item->lru_prev->lru_next = item->lru_next; + if (item->lru_next) item->lru_next->lru_prev = item->lru_prev; + if (fs->lru_last == item) { + if (fs->lru_first == item) { + + /* + * Case 1: ITEM is the only one in the list. We'll + * remove it, and the list will be empty afterwards. + */ + fs->lru_last = NULL; + fs->lru_first = NULL; + } else { + + /* Case 2: ITEM is the last in the list. */ + fs->lru_last = item->lru_prev; + } + } else if (fs->lru_first == item) { + + /* Case 3: ITEM is the first in the list. */ + fs->lru_first = item->lru_next; + /* the first item prev links back to itself */ + fs->lru_first->lru_prev = fs->lru_first; + } + + /* Clear the pointers */ + item->lru_prev = NULL; + item->lru_next = NULL; + + return (GP_OK); +} + +static int +gp_filesystem_lru_free (CameraFilesystem *fs) +{ + CameraFilesystemFile *ptr; + unsigned long int size; + + C_PARAMS (fs && fs->lru_first); + + ptr = fs->lru_first; + + GP_LOG_D ("Freeing cached data for file '%s'...", ptr->name); + + /* Remove it from the list. */ + fs->lru_first = ptr->lru_next; + if (fs->lru_first) + fs->lru_first->lru_prev = fs->lru_first; + else + fs->lru_last = NULL; + + /* Free its content. */ + if (ptr->normal) { + CR( gp_file_get_data_and_size (ptr->normal, NULL, &size)); + fs->lru_size -= size; + gp_file_unref (ptr->normal); + ptr->normal = NULL; + } + if (ptr->raw) { + CR( gp_file_get_data_and_size (ptr->raw, NULL, &size)); + fs->lru_size -= size; + gp_file_unref (ptr->raw); + ptr->raw = NULL; + } + if (ptr->audio) { + CR( gp_file_get_data_and_size (ptr->audio, NULL, &size)); + fs->lru_size -= size; + gp_file_unref (ptr->audio); + ptr->audio = NULL; + } + ptr->lru_next = ptr->lru_prev = NULL; + return (GP_OK); +} + +static int +gp_filesystem_lru_count (CameraFilesystem *fs) +{ + CameraFilesystemFile *ptr; + int count = 0; + + if (!fs) return 0; + ptr = fs->lru_first; + while (ptr) { + if (ptr->normal || ptr->raw || ptr->audio) + count++; + ptr = ptr->lru_next; + } + return count; +} + +static int +gp_filesystem_lru_update (CameraFilesystem *fs, + const char *folder, const char *filename, + CameraFileType type, + CameraFile *file, GPContext *context) +{ + CameraFilesystemFolder *f; + CameraFilesystemFile *xfile; + CameraFile *oldfile = NULL; + unsigned long int size; + int x; + char cached_images[1024]; + + C_PARAMS (fs && folder && file); + + CR (gp_file_get_data_and_size (file, NULL, &size)); + + /* + * The following is a very simple case which is used to prune + * the LRU. We keep PICTURES_TO_KEEP pictures in the LRU. + * + * We have 2 main scenarios: + * - query all thumbnails (repeatedly) ... they are cached and + * are not pruned by lru free. + * - download all images, linear. no real need for caching. + * - skip back 1 image (in viewers) (really? I don't know.) + * + * So lets just keep 2 pictures in memory. + */ + if (pictures_to_keep == -1) { + if (gp_setting_get ("libgphoto", "cached-images", cached_images) == GP_OK) { + pictures_to_keep = atoi(cached_images); + } else { + /* store a default setting */ + sprintf (cached_images, "%d", PICTURES_TO_KEEP); + gp_setting_set ("libgphoto", "cached-images", cached_images); + } + } + + if (pictures_to_keep < 0) /* also sanity check, but no upper limit. */ + pictures_to_keep = PICTURES_TO_KEEP; + + x = gp_filesystem_lru_count (fs); + while (x > pictures_to_keep) { + CR (gp_filesystem_lru_free (fs)); + x = gp_filesystem_lru_count (fs); + } + + GP_LOG_D ("Adding file '%s' from folder '%s' to the fscache LRU list " + "(type %i)...", filename, folder, type); + + /* Search folder and file */ + CR (lookup_folder_file (fs, folder, filename, &f, &xfile, context)); + + /* + * If the file is already in the lru, we first remove it. Note that + * we will only remove 'normal', 'raw' and 'audio' from cache. + * See gp_filesystem_lru_free. + */ + if (xfile->lru_prev != NULL) { + switch (type) { + case GP_FILE_TYPE_NORMAL: + oldfile = xfile->normal; + break; + case GP_FILE_TYPE_RAW: + oldfile = xfile->raw; + break; + case GP_FILE_TYPE_AUDIO: + oldfile = xfile->audio; + break; + case GP_FILE_TYPE_PREVIEW: + case GP_FILE_TYPE_EXIF: + case GP_FILE_TYPE_METADATA: + break; + default: + gp_context_error (context, _("Unknown file type %i."), + type); + return (GP_ERROR); + } + if (oldfile) { + CR( gp_file_get_data_and_size (oldfile, NULL, &size)); + fs->lru_size -= size; + } + + CR (gp_filesystem_lru_remove_one (fs, xfile)); + } + + /* Then add the file at the end of the LRU. */ + if (fs->lru_first == NULL) { + fs->lru_first = xfile; + fs->lru_last = xfile; + + /* + * For the first item, prev point it itself to show that the + * item is in the list. + */ + xfile->lru_prev = xfile; + + } else { + xfile->lru_next = NULL; + xfile->lru_prev = fs->lru_last; + fs->lru_last->lru_next = xfile; + fs->lru_last = xfile; + } + + CR( gp_file_get_data_and_size (file, NULL, &size)); + fs->lru_size += size; + + GP_LOG_D ("File '%s' from folder '%s' added in fscache LRU list.", + filename, folder); + + return (GP_OK); +} + +static int +gp_filesystem_lru_check (CameraFilesystem *fs) +{ + int n = 0; + CameraFilesystemFile *ptr, *prev; + + GP_LOG_D ("Checking fscache LRU list integrity..."); + + if (fs->lru_first == NULL) { + GP_LOG_D ("fscache LRU list empty"); + return (GP_OK); + } + + ptr = prev = fs->lru_first; + while (ptr != NULL) { + n++; + if (ptr->lru_prev != prev) { + GP_LOG_E ("fscache LRU list corrupted (%i)", n); + return (GP_ERROR); + } + prev = ptr; + ptr = ptr->lru_next; + } + + GP_LOG_D ("fscache LRU list ok with %i items (%ld bytes)", n, + fs->lru_size); + + return (GP_OK); +} + +/** + * \brief Attach file content to a specified file. + * + * \param fs a #CameraFilesystem + * \param folder a folder in the filesystem + * \param file a #CameraFile + * \param context: a #GPContext + * + * Tells the fs about a file. Typically, camera drivers will call this + * function in case they get information about a file (i.e. preview) "for free" + * on gp_camera_capture() or gp_camera_folder_list_files(). + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_set_file_noop (CameraFilesystem *fs, + const char *folder, const char *filename, + CameraFileType type, + CameraFile *file, GPContext *context) +{ + CameraFileInfo info; + CameraFilesystemFolder *f; + CameraFilesystemFile *xfile; + int r; + time_t t; + + C_PARAMS (fs && folder && file); + CC (context); + CA (folder, context); + + GP_LOG_D ("Adding file '%s' to folder '%s' (type %i)...", + filename, folder, type); + + /* Search folder and file */ + CR (lookup_folder_file (fs, folder, filename, &f, &xfile, context)); + + /* + * If we add a significant amount of data in the cache, we put (or + * move) a reference to this file in the LRU linked list. We + * assume that only GP_FILE_TYPE_[RAW,NORMAL,EXIF] will contain a + * significant amount of data. + */ + if ((type == GP_FILE_TYPE_RAW) || (type == GP_FILE_TYPE_NORMAL) || + (type == GP_FILE_TYPE_AUDIO)) + CR (gp_filesystem_lru_update (fs, folder, filename, type, file, context)); + + /* Redundant sanity check. */ + CR (gp_filesystem_lru_check (fs)); + + switch (type) { + case GP_FILE_TYPE_PREVIEW: + if (xfile->preview) + gp_file_unref (xfile->preview); + xfile->preview = file; + gp_file_ref (file); + break; + case GP_FILE_TYPE_NORMAL: + if (xfile->normal) + gp_file_unref (xfile->normal); + xfile->normal = file; + gp_file_ref (file); + break; + case GP_FILE_TYPE_RAW: + if (xfile->raw) + gp_file_unref (xfile->raw); + xfile->raw = file; + gp_file_ref (file); + break; + case GP_FILE_TYPE_AUDIO: + if (xfile->audio) + gp_file_unref (xfile->audio); + xfile->audio = file; + gp_file_ref (file); + break; + case GP_FILE_TYPE_EXIF: + if (xfile->exif) + gp_file_unref (xfile->exif); + xfile->exif = file; + gp_file_ref (file); + break; + case GP_FILE_TYPE_METADATA: + if (xfile->metadata) + gp_file_unref (xfile->metadata); + xfile->metadata = file; + gp_file_ref (file); + break; + default: + gp_context_error (context, _("Unknown file type %i."), type); + return (GP_ERROR); + } + + /* + * If we didn't get a mtime, try to get it from the CameraFileInfo. + */ + CR (gp_file_get_mtime (file, &t)); + if (!t) { + GP_LOG_D ("File does not contain mtime. Trying information on the file..."); + r = gp_filesystem_get_info (fs, folder, filename, &info, NULL); + if ((r == GP_OK) && (info.file.fields & GP_FILE_INFO_MTIME)) + t = info.file.mtime; + } + + /* + * If we still don't have the mtime and this is a normal + * file, check if there is EXIF data in the file that contains + * information on the mtime. + */ +#ifdef HAVE_LIBEXIF + if (!t && (type == GP_FILE_TYPE_NORMAL)) { + unsigned long int size; + const char *data; + + GP_LOG_D ("Searching data for mtime..."); + CR (gp_file_get_data_and_size (file, NULL, &size)); + if (size < 32*1024*1024) { /* just assume stuff above 32MB is not EXIF capable */ + CR (gp_file_get_data_and_size (file, &data, &size)); + t = get_exif_mtime ((unsigned char*)data, size); + } + } + /* + * Still no mtime? Let's see if the camera offers us data of type + * GP_FILE_TYPE_EXIF that includes information on the mtime. + */ + if (!t) { + GP_LOG_D ("Trying EXIF information..."); + t = gp_filesystem_get_exif_mtime (fs, folder, filename); + } +#endif + + if (t) + CR (gp_file_set_mtime (file, t)); + + return (GP_OK); +} + +/** + * \brief Store the file information in the virtual fs + * \param fs a #CameraFilesystem + * \param folder the foldername + * \param info the #CameraFileInfo to store + * \param context a #GPContext + * + * In contrast to #gp_filesystem_set_info, #gp_filesystem_set_info_noop + * will only change the file information in the fs. Typically, camera + * drivers will use this function in case they get file information "for free" + * on #gp_camera_capture or #gp_camera_folder_list_files. + * + * \return a gphoto2 error code + **/ +int +gp_filesystem_set_info_noop (CameraFilesystem *fs, + const char *folder, const char *filename, + CameraFileInfo info, GPContext *context) +{ + CameraFilesystemFolder *f; + CameraFilesystemFile *xfile; + + C_PARAMS (fs && folder); + CC (context); + CA (folder, context); + + /* Search folder and file */ + CR (lookup_folder_file (fs, folder, filename, &f, &xfile, context)); + + memcpy (&xfile->info, &info, sizeof (CameraFileInfo)); + xfile->info_dirty = 0; + return (GP_OK); +} + +/** + * \brief Set information about a file + * \param fs a #CameraFilesystem + * \param folder foldername where the file resides + * \param filename the files name + * \param info the #CameraFileInfo to set + * \param context a #GPContext + * + * Sets information about a file in the camera. + * + * \return a gphoto2 error code. + **/ +int +gp_filesystem_set_info (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFileInfo info, + GPContext *context) +{ + int result; + CameraFilesystemFolder *f; + CameraFilesystemFile *xfile; + + C_PARAMS (fs && folder && filename); + CC (context); + CA (folder, context); + + if (!fs->set_info_func) { + gp_context_error (context, + _("The filesystem doesn't support setting file " + "information")); + return (GP_ERROR_NOT_SUPPORTED); + } + + /* Search folder and file */ + CR (lookup_folder_file (fs, folder, filename, &f, &xfile, context)); + + /* Check if people want to set read-only attributes */ + if ((info.file.fields & GP_FILE_INFO_TYPE) || + (info.file.fields & GP_FILE_INFO_SIZE) || + (info.file.fields & GP_FILE_INFO_WIDTH) || + (info.file.fields & GP_FILE_INFO_HEIGHT) || + (info.file.fields & GP_FILE_INFO_STATUS) || + (info.preview.fields & GP_FILE_INFO_TYPE) || + (info.preview.fields & GP_FILE_INFO_SIZE) || + (info.preview.fields & GP_FILE_INFO_WIDTH) || + (info.preview.fields & GP_FILE_INFO_HEIGHT) || + (info.preview.fields & GP_FILE_INFO_STATUS) || + (info.audio.fields & GP_FILE_INFO_TYPE) || + (info.audio.fields & GP_FILE_INFO_SIZE) || + (info.audio.fields & GP_FILE_INFO_STATUS)) { + gp_context_error (context, _("Read-only file attributes " + "like width and height can not be changed.")); + return (GP_ERROR_BAD_PARAMETERS); + } + + /* + * Set the info. If anything goes wrong, mark info as dirty, + * because the operation could have been partially successful. + */ + result = fs->set_info_func (fs, folder, filename, info, fs->data, + context); + if (result < 0) { + xfile->info_dirty = 1; + return (result); + } + if (info.file.fields & GP_FILE_INFO_PERMISSIONS) + xfile->info.file.permissions = info.file.permissions; + + return (GP_OK); +} + +/** + * \brief Get the storage information about this filesystem + * \param fs the filesystem + * \param storageinfo Pointer to receive a pointer to/array of storage info items + * \param nrofstorageinfos Pointer to receive number of array entries + * \param context a #GPContext + * + * This function is only called from gp_camera_get_storageinfo(). You may + * want to make sure this information is consistent with the information on + * gp_camera_get_storageinfo(). + * + * Retrieves the storage information, like maximum and free space, for + * the specified filesystem, if supported by the device. The storage + * information is returned in an newly allocated array of + * #CameraStorageInformation objects, to which the pointer pointed to + * by #storageinfo will be set. + * + * The variable pointed to by #nrofstorageinfos will be set to the + * number of elements in that array. + * + * It is the caller's responsibility to free the memory of the array. + * + * \return a gphoto error code + **/ +int +gp_filesystem_get_storageinfo ( + CameraFilesystem *fs, + CameraStorageInformation **storageinfo, + int *nrofstorageinfos, + GPContext *context +) { + C_PARAMS (fs && storageinfo && nrofstorageinfos); + CC (context); + + if (!fs->storage_info_func) { + gp_context_error (context, + _("The filesystem doesn't support getting storage " + "information")); + return (GP_ERROR_NOT_SUPPORTED); + } + return fs->storage_info_func (fs, + storageinfo, nrofstorageinfos, + fs->data, context); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-library.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-library.c new file mode 100644 index 00000000..4e51412a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-library.c @@ -0,0 +1,88 @@ +/** \file + * + * \author Copyright 2001 Lutz Mueller + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include + +/** + * \brief Get a unique camera id + * \param id a #CameraText that receives the id string + * + * This function should write a unique id into id and return #GP_OK. That is, + * choose a unique id, use strncpy in order to copy it into the id, and + * return #GP_OK. The driver name should suffice. + * + * \returns a gphoto2 error code + **/ +int +camera_id (CameraText *id) +{ + strcpy (id->text, "sample driver"); + return (GP_OK); +} + +/** + * \brief Get a list of abilities of all supported cameras + * \param list a #CameraAbilitiesList + * + * This function should use #gp_abilities_list_append as many times as the + * number of models the camera driver supports. That is, fill out (in a loop) + * the #CameraAbilities for each model and append each of those to the + * supplied list using gp_abilities_list_append(). Then, return #GP_OK. + * + * \returns a gphoto2 error code + **/ +int +camera_abilities (CameraAbilitiesList *list) +{ + /* Dummy implementation */ + return (GP_OK); +} + +/** + * \brief Initialize the camera + * \param camera a #Camera + * + * This is the most interesting function in your library. Here, you tell + * gphoto2 what operations your camera supports and you try to connect + * to the camera. That is, access camera->functions directly and set them + * to your implementation (if you have any). Then, tell the #CameraFilesystem + * (available in #camera->fs) how to retrieve lists + * (gp_filesystem_set_list_funcs()), how to retrieve or set file information + * (gp_filesystem_set_info_funcs()), how to get or delete files + * (gp_filesystem_set_file_funcs()), or how to put files or delete all files + * in a folder (#gp_filesystem_set_folder_funcs). After that, configure + * the port (#camera->port) which is already opened by gphoto2. You just have + * to call gp_port_settings_get(), adjust the settings, call + * gp_port_settings_set(), and try to write to and read from the port. + * If the camera responds, return #GP_OK. If not, return some + * meaningful error code. + * + * \returns a gphoto2 error code + **/ +int +camera_init (Camera *camera) +{ + /* Dummy implementation */ + return (GP_OK); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-list.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-list.c new file mode 100644 index 00000000..dc12ad4c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-list.c @@ -0,0 +1,397 @@ +/** \file gphoto2-list.c + * + * \author Copyright 2000 Scott Fritzinger + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" +#include +#include + +#include +#include +#include + +#include + +#define CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} + +/** + * Internal _CameraList data structure + **/ + +struct _entry { + char *name; + char *value; +}; + +struct _CameraList { + int used; /* used entries */ + int max; /* allocated entries */ + struct _entry *entry; + int ref_count; +}; + + +/** + * \brief Creates a new #CameraList. + * + * \param list + * \return a gphoto2 error code + * + **/ +int +gp_list_new (CameraList **list) +{ + C_PARAMS (list); + + C_MEM (*list = calloc (1, sizeof (CameraList))); + + (*list)->ref_count = 1; + + return (GP_OK); +} + +/** + * \brief Increments the reference count of the list. + * + * \param list a #CameraList + * \return a gphoto2 error code. + * + **/ +int +gp_list_ref (CameraList *list) +{ + C_PARAMS (list && list->ref_count); + + list->ref_count++; + + return (GP_OK); +} + +/** + * \brief Decrements the reference count of the \c list. + * + * \param list a #CameraList + * \return a gphoto2 error code + * + * If there are no references left, the \c list will be freed. + * + **/ +int +gp_list_unref (CameraList *list) +{ + C_PARAMS (list && list->ref_count); + + if (list->ref_count == 1) /* time to free */ + gp_list_free (list); + else + list->ref_count--; + return (GP_OK); +} + +/** + * Frees the \c list. It is recommended to use #gp_list_unref instead. + * + * \param list the #CameraList to be freed + * \return a gphoto2 error code + * + **/ +int +gp_list_free (CameraList *list) +{ + int i; + C_PARAMS (list && list->ref_count); + + for (i=0;iused;i++) { + free (list->entry[i].name); + list->entry[i].name = NULL; + free (list->entry[i].value); + list->entry[i].value = NULL; + } + free (list->entry); + /* Mark this list as having been freed. That may help us + * prevent access to already freed lists. + */ + list->ref_count = 0; + free (list); + return (GP_OK); +} + +/** + * Resets the \c list and removes all entries. + * + * \param list a #CameraList + * \return a gphoto2 error code + * + **/ +int +gp_list_reset (CameraList *list) +{ + int i; + C_PARAMS (list && list->ref_count); + + for (i=0;iused;i++) { + free (list->entry[i].name); + list->entry[i].name = NULL; + free (list->entry[i].value); + list->entry[i].value = NULL; + } + /* keeps -> entry allocated for reuse. */ + list->used = 0; + return (GP_OK); +} + +/** + * Appends \c name and \c value to the \c list. + * + * \param list a #CameraList + * \param name the name of the entry to append + * \param value the value of the entry to append + * \return a gphoto2 error code + * + **/ +int +gp_list_append (CameraList *list, const char *name, const char *value) +{ + C_PARAMS (list && list->ref_count); + + if (list->used == list->max) { + C_MEM (list->entry = realloc(list->entry,(list->max+100)*sizeof(struct _entry))); + list->max += 100; + } + + if (name) { + C_MEM (list->entry[list->used].name = strdup (name)); + } else { + list->entry[list->used].name = NULL; + } + if (value) { + C_MEM (list->entry[list->used].value = strdup (value)); + } else { + list->entry[list->used].value = NULL; + } + list->used++; + return (GP_OK); +} + +static int +cmp_list (const void *a, const void *b) { + const struct _entry *ca = a; + const struct _entry *cb = b; + + return strcmp (ca->name, cb->name); +} + +/** + * Sorts the \c list entries with respect to the names. + * + * \param list a #CameraList + * \return a gphoto2 error code + * + **/ +int +gp_list_sort (CameraList *list) +{ + C_PARAMS (list && list->ref_count); + + qsort (list->entry, list->used, sizeof(list->entry[0]), cmp_list); + return GP_OK; +} + +/** + * Counts the entries in the \c list. + * + * \param list a #CameraList + * \return a gphoto2 error code + * + **/ +int +gp_list_count (CameraList *list) +{ + C_PARAMS (list && list->ref_count); + + return (list->used); +} + +/** + * Retrieves the \c index of an arbitrary entry with \c name. + * + * \param list a #CameraList + * \param index pointer to the result index (may be NULL, only set if found) + * \param name name of the entry + * \return a gphoto2 error code: GP_OK if found. + * + * No guarantees as to the speed of the search, or in what sequence + * the list is searched. + * + **/ +int +gp_list_find_by_name (CameraList *list, int *index, const char *name) +{ + int i; + C_PARAMS (list && list->ref_count); + C_PARAMS (name); + + /* We search backwards because our only known user + * camlibs/ptp2/library.c thinks this is faster + */ + for (i=list->used-1; i >= 0; i--) { + if (0==strcmp(list->entry[i].name, name)) { + if (index) { + (*index) = i; + } + return (GP_OK); + } + } + + return (GP_ERROR); +} + +/** + * Retrieves the \c name of entry with \c index. + * + * \param list a #CameraList + * \param index index of the entry + * \param name + * \return a gphoto2 error code. + * + **/ +int +gp_list_get_name (CameraList *list, int index, const char **name) +{ + C_PARAMS (list && list->ref_count); + C_PARAMS (name); + C_PARAMS (0 <= index && index < list->used); + + *name = list->entry[index].name; + + return (GP_OK); +} + +/** + * Retrieves the value of entry with \c index. + * + * \param list a #CameraList + * \param index index of the entry + * \param value + * \return a gphoto2 error code + * + **/ +int +gp_list_get_value (CameraList *list, int index, const char **value) +{ + C_PARAMS (list && list->ref_count); + C_PARAMS (value); + C_PARAMS (0 <= index && index < list->used); + + *value = list->entry[index].value; + + return (GP_OK); +} + +/** + * Sets the \c value of an entry. + * + * \param list a #CameraList + * \param index index of the entry + * \param value the value to be set + * \return a gphoto2 error code + * + **/ +int +gp_list_set_value (CameraList *list, int index, const char *value) +{ + char *newval; + C_PARAMS (list && list->ref_count); + C_PARAMS (value); + C_PARAMS (0 <= index && index < list->used); + + C_MEM (newval = strdup(value)); + free (list->entry[index].value); + list->entry[index].value = newval; + return (GP_OK); +} + +/** + * Sets the name of an entry. + * + * \param list a #CameraList + * \param index index of entry + * \param name name to be set + * \return a gphoto2 error code + * + **/ +int +gp_list_set_name (CameraList *list, int index, const char *name) +{ + char *newname; + C_PARAMS (list && list->ref_count); + C_PARAMS (name); + C_PARAMS (0 <= index && index < list->used); + + C_MEM (newname = strdup(name)); + free (list->entry[index].name); + list->entry[index].name = newname; + return (GP_OK); +} + +/** + * Adds \c count entries to the list. + * + * \param list a #CameraList + * \param format the format + * \param count number of entries to be added to the list + * return a gphoto2 error code + * + * Typically, this function is called by a camera driver when there is no way + * of retrieving the real name of a picture. In this case, when asked for a + * file list (see #CameraFilesystemListFunc), the list is populated with dummy + * names generated by this function. + * + **/ +int +gp_list_populate (CameraList *list, const char *format, int count) +{ + int x; + char buf[1024]; + + C_PARAMS (list && list->ref_count); + C_PARAMS (format); + + gp_list_reset (list); + for (x = 0; x < count; x++) { + snprintf (buf, sizeof (buf), format, x + 1); + CHECK_RESULT (gp_list_append (list, buf, NULL)); + } + + return (GP_OK); +} + + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:nil + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-result.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-result.c new file mode 100644 index 00000000..f62a83c2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-result.c @@ -0,0 +1,90 @@ +/** \file + * + * \author Copyright 2000 Scott Fritzinger + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +static struct { + int result; + const char *description; +} result_descriptions[] = { + {GP_ERROR_CORRUPTED_DATA, N_("Corrupted data")}, + {GP_ERROR_FILE_EXISTS, N_("File exists")}, + {GP_ERROR_MODEL_NOT_FOUND, N_("Unknown model")}, + {GP_ERROR_DIRECTORY_NOT_FOUND, N_("Directory not found")}, + {GP_ERROR_FILE_NOT_FOUND, N_("File not found")}, + {GP_ERROR_DIRECTORY_EXISTS, N_("Directory exists")}, + {GP_ERROR_CAMERA_BUSY, N_("I/O in progress")}, + {GP_ERROR_PATH_NOT_ABSOLUTE, N_("Path not absolute")}, + {GP_ERROR_CANCEL, N_("Operation cancelled")}, + {GP_ERROR_CAMERA_ERROR, N_("Camera could not complete operation")}, + {GP_ERROR_OS_FAILURE, N_("OS error in camera communication")}, + {GP_ERROR_NO_SPACE, N_("Not enough free space")}, + {0, NULL} +}; + +/** + * \brief Translate a gphoto error code into a localized string + * \param result a gphoto2 error code + * + * Translates a gphoto2 error code into a human readable string. If the + * error occurred in combination with a camera, + * gp_camera_get_result_as_string() should be used instead. + * + * \return A string representation of a gphoto2 error code + **/ +const char * +gp_result_as_string (int result) +{ + unsigned int i; + + /* IOlib error? Pass through. */ + if ((result <= 0) && (result >= -99)) + return gp_port_result_as_string (result); + + /* Camlib error? */ + if (result <= -1000) + return (N_("Unknown camera library error")); + + for (i = 0; result_descriptions[i].description; i++) + if (result_descriptions[i].result == result) + return _(result_descriptions[i].description); + + return (N_("Unknown error")); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-setting.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-setting.c new file mode 100644 index 00000000..7410938e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-setting.c @@ -0,0 +1,279 @@ +/** \file + * + * \author Copyright 2000 Scott Fritzinger + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" +#include + +#include +#include +#include + +#include +#include +#include + +#ifdef WIN32 +/* Win32 headers may use interface as a define; temporarily correct this */ +#define interface struct +#include +#undef interface +#endif + +/** + * Internal struct to store settings. + */ +typedef struct { + /* key = value settings */ + char id[256]; + char key[256]; + char value[256]; +} Setting; + +/* Currently loaded settings */ +static int glob_setting_count = 0; +static Setting glob_setting[512]; + +static int save_settings (void); + +#define CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} + +static int load_settings (void); + +/** + * \brief Retrieve a specific gphoto setting. + * \param id the frontend id of the caller + * \param key the key the frontend queries + * \param value changed value + * \return GPhoto error code + * + * This function retrieves the setting key for a specific frontend + * id and copies the value into the passed value pointer. + */ +int +gp_setting_get (char *id, char *key, char *value) +{ + int x; + + C_PARAMS (id && key); + + if (!glob_setting_count) + load_settings (); + + for (x=0; x2) { + equals = 0; + for (x=0; x2) { + buf[strlen(buf)-1] = '\0'; + id = strtok(buf, "="); + strcpy(glob_setting[glob_setting_count].id,id); + key = strtok(NULL, "="); + strcpy(glob_setting[glob_setting_count].key,key); + value = strtok(NULL, "\0"); + if (value) + strcpy(glob_setting[glob_setting_count++].value, value); + else + strcpy(glob_setting[glob_setting_count++].value, ""); + } + } + fclose (f); + return (GP_OK); +} + + +static int +save_settings (void) +{ + FILE *f; + char buf[1024]; + int x=0; + +#ifdef WIN32 + SHGetFolderPath(NULL, CSIDL_PROFILE, NULL, 0, buf); + strcat(buf, "\\.gphoto\\settings"); +#else + snprintf (buf, sizeof(buf), "%s/.gphoto/settings", getenv ("HOME")); +#endif + + + GP_LOG_D ("Saving %i setting(s) to file \"%s\"", glob_setting_count, buf); + + if ((f=fopen(buf, "w+"))==NULL) { + GP_LOG_E ("Can't open settings file for writing."); + return(0); + } + rewind(f); + while (x < glob_setting_count) { + fwrite(glob_setting[x].id, strlen(glob_setting[x].id),1,f); + fputc('=', f); + fwrite(glob_setting[x].key, strlen(glob_setting[x].key),1,f); + fputc('=', f); + fwrite(glob_setting[x].value, strlen(glob_setting[x].value),1,f); + fputc('\n', f); + x++; + } + fclose(f); + + return (GP_OK); +} + +#if 0 +static int dump_settings (void) +{ + int x; + + gp_debug_printf(GP_DEBUG_LOW, "core", "All settings:"); + for (x=0; x + +#include + +const char **gp_library_version(GPVersionVerbosity verbose) +{ + /* we could also compute/parse the short strings from the long + ones, but the current method is easier for now :-) */ + static const char *shrt[] = + { + PACKAGE_VERSION, +#ifdef INCOMPLETE_CAMLIB_SET + "INCOMPLETE CAMLIB SET (" + INCOMPLETE_CAMLIB_SET + ")", +#else + "all camlibs", +#endif +#ifdef HAVE_CC + HAVE_CC, +#else + "unknown cc", +#endif +#ifdef HAVE_LTDL + "ltdl", +#else + "no ltdl", +#endif +#ifdef HAVE_LIBEXIF + "EXIF", +#else + "no EXIF", +#endif + NULL + }; + static const char *verb[] = + { + PACKAGE_VERSION, +#ifdef INCOMPLETE_CAMLIB_SET + "INCOMPLETE CAMLIB SET (" + INCOMPLETE_CAMLIB_SET + ")", +#else + "all camlibs", +#endif +#ifdef HAVE_CC + HAVE_CC " (C compiler used)", +#else + "unknown (C compiler used)", +#endif +#ifdef HAVE_LTDL + "ltdl (for portable loading of camlibs)", +#else + "no ltdl (for portable loading of camlibs)", +#endif +#ifdef HAVE_LIBEXIF + "EXIF (for special handling of EXIF files)", +#else + "no EXIF (for special handling of EXIF files)", +#endif + NULL + }; + return((verbose == GP_VERSION_VERBOSE)?verb:shrt); +} + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-widget.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-widget.c new file mode 100644 index 00000000..af0acccc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/gphoto2-widget.c @@ -0,0 +1,828 @@ +/** \file + * + * \author Copyright 2000 Scott Fritzinger + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" +#include + +#include +#include + +#include +#include + +/** + * CameraWidget: + * + * The internals of the #CameraWidget are only visible to gphoto2. You can + * only access them using the functions provided by gphoto2. + **/ +struct _CameraWidget { + CameraWidgetType type; + char label [256]; + char info [1024]; + char name [256]; + + CameraWidget *parent; + + /* Current value of the widget */ + char *value_string; + int value_int; + float value_float; + + /* For Radio and Menu */ + char **choice; + int choice_count; + + /* For Range */ + float min; + float max; + float increment; + + /* Child info */ + CameraWidget **children; + int children_count; + + /* Widget was changed */ + int changed; + + /* Widget is read only */ + int readonly; + + /* Reference count */ + int ref_count; + + /* Unique identifier */ + int id; + + /* Callback */ + CameraWidgetCallback callback; +}; + +/** + * \brief Create a new widget. + * + * The function creates a new #CameraWidget of specified type and with + * given label. + * + * @param type the type + * @param label the label + * @param widget + * @return a gphoto2 error code. + * + **/ +int +gp_widget_new (CameraWidgetType type, const char *label, + CameraWidget **widget) +{ + static int i = 0; + + C_PARAMS (label && widget); + + C_MEM (*widget = calloc (1, sizeof (CameraWidget))); + + (*widget)->type = type; + strcpy ((*widget)->label, label); + + /* set the value to nothing */ + (*widget)->value_int = 0; + (*widget)->value_float = 0.0; + (*widget)->value_string = NULL; + + (*widget)->ref_count = 1; + (*widget)->choice_count = 0; + (*widget)->choice = NULL; + (*widget)->readonly = 0; + (*widget)->id = i++; + + /* Clear all children pointers */ + free ((*widget)->children); + (*widget)->children = NULL; + (*widget)->children_count = 0; + + return (GP_OK); +} + +/** + * \brief Frees a CameraWidget + * + * @param widget the #CameraWidget to be freed + * @return a gphoto2 error code. + * + **/ +int +gp_widget_free (CameraWidget *widget) +{ + int x; + C_PARAMS (widget); + + /* Free children recursively */ + if ((widget->type == GP_WIDGET_WINDOW) || + (widget->type == GP_WIDGET_SECTION)) { + for (x = 0; x < gp_widget_count_children (widget); x++) + gp_widget_free (widget->children[x]); + free (widget->children); + } + for (x = 0; x < widget->choice_count; x++) + free (widget->choice[x]); + free (widget->choice); + free (widget->value_string); + free (widget); + return (GP_OK); +} + +/** + * \brief Increments the reference count for the CameraWidget + * + * @param widget a #CameraWidget you want to ref-count + * @return a gphoto2 error code. + * + **/ +int +gp_widget_ref (CameraWidget *widget) +{ + C_PARAMS (widget); + + widget->ref_count += 1; + + return (GP_OK); +} + +/** + * \brief Decrements the reference count for the CameraWidget + * + * @param widget a CameraWidget you want to unref + * @return a gphoto2 error code. + * + **/ +int +gp_widget_unref (CameraWidget *widget) +{ + C_PARAMS (widget); + + widget->ref_count -= 1; + + if (widget->ref_count == 0) + gp_widget_free (widget); + + return (GP_OK); +} + +/** + * \brief Retrieves the information about the widget + * + * @param widget a #CameraWidget + * @param info + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_info (CameraWidget *widget, const char **info) +{ + C_PARAMS (widget && info); + + *info = widget->info; + return (GP_OK); +} + + +/** + * \brief Sets the information about the widget + * + * @param widget a #CameraWidget + * @param info Information about above widget + * @return a gphoto2 error code. + * + **/ +int +gp_widget_set_info (CameraWidget *widget, const char *info) +{ + C_PARAMS (widget && info); + + strcpy (widget->info, info); + return (GP_OK); +} + +/** + * \brief Gets the name of the widget + * + * @param widget a #CameraWidget + * @param name Name of above widget + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_name (CameraWidget *widget, const char **name) +{ + C_PARAMS (widget && name); + + *name = widget->name; + return (GP_OK); +} + +/** + * \brief Sets the name of the widget + * + * @param widget a #CameraWidget + * @param name Name of above widget + * @return a gphoto2 error code. + * + **/ +int +gp_widget_set_name (CameraWidget *widget, const char *name) +{ + C_PARAMS (widget && name); + + strcpy (widget->name, name); + return (GP_OK); +} + + + +/** + * \brief Retrieves the unique id of the #CameraWidget + * + * @param widget a #CameraWidget + * @param id + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_id (CameraWidget *widget, int *id) +{ + C_PARAMS (widget && id); + + *id = widget->id; + return (GP_OK); +} + +/** + * \brief Tells that the widget has been changed + * + * @param widget a #CameraWidget + * @param changed a boolean whether we changed or not + * @return a gphoto2 error code + * + * Sets the changed of the CameraWidget depending on + * the changed parameter. + * + **/ +int +gp_widget_set_changed (CameraWidget *widget, int changed) +{ + C_PARAMS (widget); + + widget->changed = changed; + return (GP_OK); +} + +/** + * \brief Tells that the widget is readonly + * + * @param widget a #CameraWidget + * @param changed a boolean whether we are readonly or not + * @return a gphoto2 error code + * + * Sets the readonly of the CameraWidget depending on + * the changed parameter. + * + * Only useful when called from the camera driver. + **/ +int +gp_widget_set_readonly (CameraWidget *widget, int readonly) +{ + C_PARAMS (widget); + + widget->readonly = readonly; + return (GP_OK); +} + +/** + * \brief Retrieves the readonly state of the #CameraWidget + * + * @param widget a #CameraWidget + * @param readonly + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_readonly (CameraWidget *widget, int *readonly) +{ + C_PARAMS (widget && readonly); + + *readonly = widget->readonly; + return (GP_OK); +} + +/** + * \brief Retrieves the type of the #CameraWidget + * + * @param widget a #CameraWidget + * @param type + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_type (CameraWidget *widget, CameraWidgetType *type) +{ + C_PARAMS (widget && type); + + *type = widget->type; + return (GP_OK); +} + +/** + * \brief Retrieves the label of the #CameraWidget + * + * @param widget a #CameraWidget + * @param label + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_label (CameraWidget *widget, const char **label) +{ + C_PARAMS (widget && label); + + *label = widget->label; + return (GP_OK); +} + +/** + * \brief Sets the value of the widget + * + * @param widget a #CameraWidget + * @param value + * @return a gphoto2 error code. + * + * Please pass + * (char*) for GP_WIDGET_MENU, GP_WIDGET_TEXT, GP_WIDGET_RADIO, + * (float) for GP_WIDGET_RANGE, + * (int) for GP_WIDGET_DATE, GP_WIDGET_TOGGLE, and + * (CameraWidgetCallback) for GP_WIDGET_BUTTON. + * + **/ +int +gp_widget_set_value (CameraWidget *widget, const void *value) +{ + C_PARAMS (widget && value); + + switch (widget->type) { + case GP_WIDGET_BUTTON: + widget->callback = (CameraWidgetCallback) value; + return (GP_OK); + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + case GP_WIDGET_TEXT: + GP_LOG_D ("Setting value of widget '%s' to '%s'...", + widget->label, (char*) value); + if (widget->value_string) { + if (strcmp (widget->value_string, (char*) value)) + widget->changed = 1; + free (widget->value_string); + } else + widget->changed = 1; + widget->value_string = strdup ((char*)value); + return (GP_OK); + case GP_WIDGET_RANGE: + if (widget->value_float != *((float*)value)) { + widget->value_float = *((float*)value); + widget->changed = 1; + } + return (GP_OK); + case GP_WIDGET_DATE: + case GP_WIDGET_TOGGLE: + if (widget->value_int != *((int*)value)) { + widget->value_int = *((int*)value); + widget->changed = 1; + } + return (GP_OK); + case GP_WIDGET_WINDOW: + case GP_WIDGET_SECTION: + default: + return (GP_ERROR_BAD_PARAMETERS); + } +} + +/** + * \brief Retrieves the value of the #CameraWidget + * + * @param widget a #CameraWidget + * @param value + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_value (CameraWidget *widget, void *value) +{ + C_PARAMS (widget && value); + + switch (widget->type) { + case GP_WIDGET_BUTTON: + *(CameraWidgetCallback*)value = widget->callback; + return (GP_OK); + case GP_WIDGET_MENU: + case GP_WIDGET_RADIO: + case GP_WIDGET_TEXT: + *((char**)value) = widget->value_string; + return (GP_OK); + case GP_WIDGET_RANGE: + *((float*)value) = widget->value_float; + return (GP_OK); + case GP_WIDGET_TOGGLE: + case GP_WIDGET_DATE: + *((int*)value) = widget->value_int; + return (GP_OK); + case GP_WIDGET_SECTION: + case GP_WIDGET_WINDOW: + default: + return (GP_ERROR_BAD_PARAMETERS); + } +} + +/** + * \brief Appends a #CameraWidget to a #CameraWidget + * + * @param widget a #CameraWidget + * @param child the #CameraWidget you would like to append to above + * @return a gphoto2 error code. + * + **/ +int +gp_widget_append (CameraWidget *widget, CameraWidget *child) +{ + C_PARAMS (widget && child); + + /* Return if they can't have any children */ + C_PARAMS ((widget->type == GP_WIDGET_WINDOW) || + (widget->type == GP_WIDGET_SECTION)); + + C_MEM (widget->children = realloc(widget->children, sizeof(CameraWidget*)*(widget->children_count+1))); + widget->children[widget->children_count] = child; + widget->children_count += 1; + child->parent = widget; + child->changed = 0; + + return (GP_OK); +} + +/** + * \brief Prepends a #CameraWidget to a #CameraWidget + * + * @param widget a #CameraWidget + * @param child the #CameraWidget you would like to prepend to above + * @return a gphoto2 error code. + * + **/ +int +gp_widget_prepend (CameraWidget *widget, CameraWidget *child) +{ + int x; + + C_PARAMS (widget && child); + + /* Return if they can't have any children */ + C_PARAMS ((widget->type == GP_WIDGET_WINDOW) || + (widget->type == GP_WIDGET_SECTION)); + + C_MEM (widget->children = realloc(widget->children, sizeof(CameraWidget*)*(widget->children_count+1))); + + /* Shift down 1 */ + for (x = widget->children_count; x > 0; x--) + widget->children[x] = widget->children[x - 1]; + + /* Prepend the child */ + widget->children[0] = child; + widget->children_count += 1; + child->parent = widget; + child->changed = 0; + + return (GP_OK); +} + +/** + * \brief Counts the children of the #CameraWidget + * + * @param widget a #CameraWidget + * @return a gphoto2 error code or number of children + * + **/ +int +gp_widget_count_children (CameraWidget *widget) +{ + C_PARAMS (widget); + + return (widget->children_count); +} + +/** + * \brief Retrieves the child number \c child_number of the parent + * + * @param widget a #CameraWidget + * @param child_number the number of the child + * @param child + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_child (CameraWidget *widget, int child_number, + CameraWidget **child) +{ + C_PARAMS (widget && child); + C_PARAMS (child_number < widget->children_count); + + *child = widget->children[child_number]; + return (GP_OK); +} + +/** + * \brief Retrieves the child with label \c label of the #CameraWidget + * + * @param widget a #CameraWidget + * @param label the label of the child + * @param child + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_child_by_label (CameraWidget *widget, const char *label, + CameraWidget **child) +{ + int x; + + C_PARAMS (widget && label && child); + + if (strcmp (widget->label, label) == 0) { + *child = widget; + return (GP_OK); + } + + for (x = 0; x < widget->children_count; x++) { + int result; + CameraWidget *child_rec; + + result = gp_widget_get_child_by_label (widget->children[x], + label, &child_rec); + if (result == GP_OK) { + *child = child_rec; + return (GP_OK); + } + } + + return (GP_ERROR_BAD_PARAMETERS); +} + +/** + * \brief Retrieves the child with id \c id of the widget + * + * @param widget a #CameraWidget + * @param id the id of the child + * @param child + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_child_by_id (CameraWidget *widget, int id, CameraWidget **child) +{ + int x; + + C_PARAMS (widget && child); + + if (widget->id == id) { + *child = widget; + return (GP_OK); + } + + for (x = 0; x < widget->children_count; x++) { + int result; + CameraWidget *child_rec; + + result = gp_widget_get_child_by_id (widget->children[x], id, + &child_rec); + if (result == GP_OK) { + *child = child_rec; + return (GP_OK); + } + } + + return (GP_ERROR_BAD_PARAMETERS); +} + +/** + * \brief Retrieves the child with name \c name of the widget + * + * @param widget a #CameraWidget + * @param name the name of the child + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_child_by_name (CameraWidget *widget, const char *name, + CameraWidget **child) +{ + int x; + + C_PARAMS (widget && child); + + if (!strcmp (widget->name, name)) { + *child = widget; + return (GP_OK); + } + + for (x = 0; x < widget->children_count; x++) { + int result; + CameraWidget *child_rec; + + result = gp_widget_get_child_by_name (widget->children[x], name, + &child_rec); + if (result == GP_OK) { + *child = child_rec; + return (GP_OK); + } + } + + return (GP_ERROR_BAD_PARAMETERS); +} + +/** + * \brief Retrieves the parent of a CameraWidget + * + * @param widget a #CameraWidget + * @param parent the pointer to the parent to return + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_parent (CameraWidget *widget, CameraWidget **parent) +{ + C_PARAMS (widget && parent); + + *parent = widget->parent; + + return (GP_OK); +} + +/** + * \brief Retrieves the root of the #CameraWidget + * + * @param widget a #CameraWidget + * @param root + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_root (CameraWidget *widget, CameraWidget **root) +{ + C_PARAMS (widget && root); + + if (widget->parent) + return (gp_widget_get_root (widget->parent, root)); + else { + *root = widget; + return (GP_OK); + } +} + +/** + * \brief Sets some range parameters of the #CameraWidget + * + * @param range a #CameraWidget of type GP_WIDGET_RANGE + * @param min + * @param max + * @param increment + * @return a gphoto2 error code. + * + **/ +int +gp_widget_set_range (CameraWidget *range, float min, float max, float increment) +{ + C_PARAMS (range); + C_PARAMS (range->type == GP_WIDGET_RANGE); + + range->min = min; + range->max = max; + range->increment = increment; + + return (GP_OK); +} + +/** + * \brief Retrieves some range parameters of the #CameraWidget + * + * @param range a #CameraWidget of type GP_WIDGET_RANGE + * @param min + * @param max + * @param increment + * @return a gphoto2 error code. + * + **/ +int +gp_widget_get_range (CameraWidget *range, float *min, float *max, + float *increment) +{ + C_PARAMS (range && min && max && increment); + C_PARAMS (range->type == GP_WIDGET_RANGE); + + *min = range->min; + *max = range->max; + *increment = range->increment; + + return (GP_OK); +} + +/** + * \brief Adds a choice to the #CameraWidget + * + * @param widget a #CameraWidget of type GP_WIDGET_RADIO or GP_WIDGET_MENU + * @param choice + * @return a gphoto2 error code. + * + **/ +int +gp_widget_add_choice (CameraWidget *widget, const char *choice) +{ + C_PARAMS (widget && choice); + C_PARAMS ((widget->type == GP_WIDGET_RADIO) || + (widget->type == GP_WIDGET_MENU)); + + C_MEM (widget->choice = realloc (widget->choice, sizeof(char*)*(widget->choice_count+1))); + widget->choice[widget->choice_count] = strdup(choice); + widget->choice_count += 1; + return (GP_OK); +} + +/** + * \brief Counts the choices of the #CameraWidget + * + * @param widget a #CameraWidget of type GP_WIDGET_RADIO or GP_WIDGET_MENU + * @return a gphoto2 error code or number of choices. + * + **/ +int +gp_widget_count_choices (CameraWidget *widget) +{ + C_PARAMS (widget); + C_PARAMS ((widget->type == GP_WIDGET_RADIO) || + (widget->type == GP_WIDGET_MENU)); + + return (widget->choice_count); +} + +/** + * \brief Retrieves the choice number \c choice_number + * + * @param widget a #CameraWidget of type GP_WIDGET_RADIO or GP_WIDGET_MENU + * @param choice_number + * @param choice + * @return a gphoto2 error code + * + **/ +int +gp_widget_get_choice (CameraWidget *widget, int choice_number, + const char **choice) +{ + C_PARAMS (widget && choice); + C_PARAMS ((widget->type == GP_WIDGET_RADIO) || + (widget->type == GP_WIDGET_MENU)); + C_PARAMS (choice_number < widget->choice_count); + + *choice = widget->choice[choice_number]; + return (GP_OK); +} + +/** + * \brief Tells if the widget has been changed + * + * @param widget a #CameraWidget + * @return a gphoto2 error code or changed flag. + * + * Returns 1 if the state of the #CameraWidget has been changed or 0 if not. + * + * Note: this formerly cleared the changed state. It no longer does with 2.5.11. + * + **/ +int +gp_widget_changed (CameraWidget *widget) +{ + C_PARAMS (widget); + + return widget->changed; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/jpeg.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/jpeg.c new file mode 100644 index 00000000..05f67f18 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/jpeg.c @@ -0,0 +1,424 @@ +/** \file + * \author This code was written by Nathan Stenzel for gphoto + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "jpeg.h" +#include +#include +#include +#include + +/* call example:nullpictureabort(picture,"Picture",0); */ +#define nullpointerabort(pointer,name,val) \ + if (pointer==NULL) { printf(name " does not exist\n"); return val; } + +/* call example:nullpictureabortvoid(picture,"Picture"); */ +#define nullpointerabortvoid(pointer,name) \ + if (pointer==NULL) { printf(name " does not exist\n"); return; } + +#define CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} + +/* Determine the number of elements in an array. */ +#define countof(array) (sizeof(array) / sizeof((array)[0])) + +const jpegmarker JPEG_MARKERS[] = { + JPEG_START, JPEG_COMMENT, JPEG_APPO, + JPEG_QUANTIZATION, JPEG_HUFFMAN, JPEG_SOFC0, + JPEG_SSSEAHAL, JPEG_EOI +}; + +const char *JPEG_MARKERNAMES[] = { + "Start", "Comment", "APPO", + "Quantization table", "Huffman table", "SOFC0", + "SsSeAhAl", "End of image" +}; + +chunk *gpi_jpeg_chunk_new(int length) +{ + chunk *mychunk; + printf("Entered gpi_jpeg_chunk_new\n"); + mychunk = (chunk *) malloc(sizeof(chunk)); + if (mychunk==NULL) { + printf("Failed to allocate new chunk!\n"); + return NULL; + } + mychunk->size=length; +/* printf("New chunk of size %i\n", mychunk->size); */ + mychunk->data = malloc(length); + return mychunk; +} + +chunk *gpi_jpeg_chunk_new_filled(int length, char *data) +{ + chunk *mychunk; + printf("Entered gpi_jpeg_chunk_new_filled\n"); + mychunk = gpi_jpeg_chunk_new(length); + if (!mychunk) + return NULL; + printf("Filling the chunk data via chunk_new_filled\n"); + memcpy(mychunk->data, data, length); + return mychunk; +} + +void gpi_jpeg_chunk_destroy(chunk *mychunk) +{ + nullpointerabortvoid(mychunk, "Chunk"); + mychunk->size=0; + free(mychunk->data); + free(mychunk); +} + + +void gpi_jpeg_chunk_print(chunk *mychunk) +{ + int x; +/* printf("Size=%i\n", mychunk->size); */ + nullpointerabortvoid(mychunk, "Chunk"); + for (x=0; xsize; x++) + printf("%hhX ", mychunk->data[x]); + printf("\n"); +} + +char gpi_jpeg_findff(int *location, chunk *picture) +{ +/* printf("Entered jpeg_findamarker!!!!!!\n"); */ + nullpointerabort(picture, "Picture",0); + while(*locationsize) + { +/* printf("%hX ",picture->data[*location]); */ + if (picture->data[*location]==0xff) + { +/* printf("return success!\n"); */ + return 1; + } + (*location)++; + } +/* printf("return failure!\n"); */ + return 0; +} + +char gpi_jpeg_findactivemarker(char *id, int *location, chunk *picture) +{ +/* printf("Entered gpi_jpeg_findactivemarker!!!!!!!!\n"); */ + nullpointerabort(picture, "Picture",0); + while(gpi_jpeg_findff(location, picture) && ((*location+1)size)) + if (picture->data[*location+1]) { + *id=picture->data[*location+1]; + return 1; + } + return 0; +} + +char *gpi_jpeg_markername(unsigned int c) +{ + unsigned int x; +/* printf("searching for marker %X in list\n",c); */ +/* printf("%i\n", sizeof(markers)); */ + for (x=0; xcount=0; + return temp; +} + +void gpi_jpeg_destroy(jpeg *myjpeg) +{ + int count; + for (count=0; countcount; count++) + gpi_jpeg_chunk_destroy(myjpeg->marker[count]); + myjpeg->count=0; + free(myjpeg); +} + +void gpi_jpeg_add_marker(jpeg *myjpeg, chunk *picture, int start, int end) +{ + int length; + nullpointerabortvoid(picture, "Picture"); + length=(int)(end-start+1); +/* printf("Add marker #%i starting from %i and ending at %i for a length of %i\n", myjpeg->count, start, end, length); */ + myjpeg->marker[myjpeg->count] = gpi_jpeg_chunk_new(length); + if (!myjpeg->marker[myjpeg->count]) + return; +/* printf("Read length is: %i\n", myjpeg->marker[myjpeg->count].size); */ + memcpy(myjpeg->marker[myjpeg->count]->data, picture->data+start, length); + gpi_jpeg_chunk_print(myjpeg->marker[myjpeg->count]); + myjpeg->count++; +} + +void gpi_jpeg_add_chunk(jpeg *myjpeg, chunk *source) +{ /* Warning! This points to the added chunk instead of deleting it! */ + printf("Entered gpi_jpeg_add_chunk\n"); + nullpointerabortvoid(source, "Chunk to add"); + myjpeg->marker[myjpeg->count]=source; + myjpeg->count++; +} + +void gpi_jpeg_parse(jpeg *myjpeg, chunk *picture) +{ + int position=0; + int lastposition; + char id; + nullpointerabortvoid(picture,"Picture"); + if (picture->data[0]!=0xff) + { + gpi_jpeg_findactivemarker(&id, &position, picture); + gpi_jpeg_add_marker(myjpeg,picture,0,position-1); + lastposition=position; + position++; + } + else + { + lastposition=position; + position+=2; + gpi_jpeg_findactivemarker(&id, &position, picture); + gpi_jpeg_add_marker(myjpeg,picture,0,position-1); + lastposition=position; + position+=2; + } + while (positionsize) + { + gpi_jpeg_findactivemarker(&id, &position, picture); + gpi_jpeg_add_marker(myjpeg,picture,lastposition,position-1); + lastposition=position; + position+=2; + } + position-=2; + if (positionsize) + gpi_jpeg_add_marker(myjpeg,picture,lastposition,picture->size-1); +} + +void gpi_jpeg_print(jpeg *myjpeg) +{ + int c; + printf("There are %i markers\n", myjpeg->count); + for (c=0; c < myjpeg->count; c++) + { + printf("%s:\n",gpi_jpeg_markername(myjpeg->marker[c]->data[1])); + gpi_jpeg_chunk_print(myjpeg->marker[c]); + } +} + +chunk *gpi_jpeg_make_start() /* also makes the JFIF marker */ +{ + chunk *temp; + /* Start marker and + JFIF APPO Marker:Version 1.01, density 1x2 (the 00 01 00 02) */ + temp = gpi_jpeg_chunk_new_filled(20, "\xFF\xD8" + "\xFF\xE0\x00\x10\x4A\x46\x49\x46" "\x00\x01\x01\x00\x00\x01\x00\x02" "\x00\x00"); + return temp; +} + +chunk *gpi_jpeg_make_SOFC (int width, int height, char vh1, char vh2, char vh3, char q1, char q2, char q3) +{ + chunk *target; + + char sofc_data[]={ + 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x00, 0x80, 0x01, + 0x40, 0x03, 0x01, 0x11, 0x00, 0x02, 0x21, 0x01, 0x03, 0x11, 0x00 + }; + target = gpi_jpeg_chunk_new(sizeof(sofc_data)); + if (target==NULL) { printf("New SOFC failed allocation\n"); return target; } + memcpy(target->data, sofc_data, sizeof(sofc_data)); + target->data[5] = (height&0xff00) >> 8; + target->data[6] = height&0xff; + target->data[7] = (width&0xff00) >> 8; + target->data[8] = width&0xff; + target->data[11]= vh1; + target->data[12]= q1; + target->data[14]= vh2; + target->data[15]= q2; + target->data[17]= vh3; + target->data[18]= q3; + return target; +} + +chunk *gpi_jpeg_makeSsSeAhAl(int huffset1, int huffset2, int huffset3) +{ + chunk *target; + printf("About to call gpi_jpeg_chunk_new_filled\n"); + target= gpi_jpeg_chunk_new_filled(14, "\xFF\xDA\x00\x0C\x03\x01\x00\x02" + "\x00\x03\x00\x00\x3F\x00"); + if (!target) return NULL; + target->data[6] = huffset1; + target->data[8] = huffset2; + target->data[10] = huffset3; + return target; +} + +void gpi_jpeg_print_quantization_table(jpeg_quantization_table *table) +{ + int x; + nullpointerabortvoid(table, "Quantization table"); + for (x=0; x<64; x++) + { + if (x && ((x%8)==0)) + { + printf("\n"); + } + printf("%3i ", (*table)[x]); + } + printf("\n"); +} + + +chunk *gpi_jpeg_make_quantization(const jpeg_quantization_table *table, char number) +{ + chunk *temp; + char x,y,z,c; + temp = gpi_jpeg_chunk_new(5+64); + if (!temp) return NULL; + memcpy(temp->data, "\xFF\xDB\x00\x43\x01", 5); + temp->data[4]=number; + for (c=z=0; z<8; z++) + if (z%2) + for (y=0,x=z; y<=z; x--,y++) + { + temp->data[5+c] = (*table)[x+y*8]; + temp->data[5+63-c++] = (*table)[63-x-y*8]; + } + else + for (x=0,y=z; x<=z; x++,y--) + { + temp->data[5+c] = (*table)[x+y*8]; + temp->data[5+63-c++] = (*table)[63-x-y*8]; + } + return temp; +} + +jpeg_quantization_table *gpi_jpeg_quantization2table(chunk *qmarker) +{ + char x,y,z,c; + jpeg_quantization_table *table; + table = (jpeg_quantization_table *)malloc(64); + for (c=z=0; z<8; z++) + if (z%2) + for (y=0,x=z; y<=z; x--,y++) + { + (*table)[63-x-y*8] = qmarker->data[5+63-c]; + (*table)[x+y*8] = qmarker->data[5+c++]; + } + else + for (x=0,y=z; x<=z; x++,y--) + { + (*table)[63-x-y*8] = qmarker->data[5+63-c]; + (*table)[x+y*8] = qmarker->data[5+c++]; + } + return table; +} + + +jpeg *gpi_jpeg_header(int width, int height, + char vh1, char vh2, char vh3, + char q1, char q2, char q3, + const jpeg_quantization_table *quant1, const jpeg_quantization_table *quant2, + char huffset1, char huffset2, char huffset3, + chunk *huff1, chunk *huff2, chunk *huff3, chunk *huff4) +{ + jpeg *temp; + temp = gpi_jpeg_new(); + gpi_jpeg_add_chunk(temp, gpi_jpeg_make_start()); + gpi_jpeg_add_chunk(temp, gpi_jpeg_make_quantization(quant1, 0)); + gpi_jpeg_add_chunk(temp, gpi_jpeg_make_quantization(quant2, 1)); + gpi_jpeg_add_chunk(temp, gpi_jpeg_make_SOFC(width,height, vh1,vh2,vh3, q1,q2,q3)); + gpi_jpeg_add_chunk(temp, huff1); + gpi_jpeg_add_chunk(temp, huff2); + gpi_jpeg_add_chunk(temp, huff3); + gpi_jpeg_add_chunk(temp, huff4); + printf("About to make and add the SsSeAhAl marker\n"); + gpi_jpeg_add_chunk(temp, gpi_jpeg_makeSsSeAhAl(huffset1, huffset2, huffset3)); + return temp; +} + +/*#define TESTING_JPEG_C */ + +#ifndef TESTING_JPEG_C +char gpi_jpeg_write(CameraFile *file, const char *filename, jpeg *myjpeg) +{ + int x; + CHECK_RESULT (gp_file_set_name (file, filename)); + CHECK_RESULT (gp_file_set_mime_type(file, GP_MIME_JPEG)); + for (x=0; xcount; x++) + CHECK_RESULT (gp_file_append(file, (char*)myjpeg->marker[x]->data, myjpeg->marker[x]->size)); + return 1; +} +#endif + +#ifdef TESTING_JPEG_C +/* TEST CODE SECTION */ +char testdata[] ={ + 0xFF,0xD8, 0xFF,0xE0, 0xff,0xDB, 0xFF,0xC4, 0xFF,0xDA, + 0xFF,0xC0, 0xff,0xff}; + +jpeg_quantization_table mytable = { + 2, 3, 4, 5, 6, 7, 8, 9, + 3, 4, 5, 6, 7, 8, 9, 10, + 4, 5, 6, 7, 8, 9, 10, 11, + 5, 6, 7, 8, 9, 10, 11, 12, + 6, 7, 8, 9, 10, 11, 12, 13, + 7, 8, 9, 10, 11, 12, 13, 14, + 8, 9, 10, 11, 12, 13, 14, 15, + 9, 10, 11, 12, 13, 14, 15, 16}; + +int main() +{ +chunk *picture; +jpeg *myjpeg; +char id; +int location=0,x; +printf("Print the test quantization table\n"); +gpi_jpeg_print_quantization_table(&mytable); +myjpeg = gpi_jpeg_new(); +picture = gpi_jpeg_chunk_new(sizeof(testdata)); +picture->data=testdata; +picture->size=sizeof(testdata); +printf("testdata size is %i\n",picture->size); +gpi_jpeg_chunk_print(picture); +printf("Call jpeg_parse!!!!!!!!!!!!!!!!!!!!!!!\n"); +gpi_jpeg_parse(myjpeg,picture); + +printf("\nPrint the jpeg table\n"); +gpi_jpeg_print(myjpeg); +printf("\nCall gpi_jpeg_destroy\n"); +gpi_jpeg_destroy(myjpeg); +/* You can't call gpi_jpeg_chunk_destroy because testdata is a constant. + * Since picture->data points to it, it would segfault. + */ +free(picture); +printf("gpi_jpeg_chunk_new and gpi_jpeg_chunk_destroy tests\n"); +picture = gpi_jpeg_chunk_new(10); +for (x=0; x<10; x++) picture->data[x]=x; +for (x=0; x<10; x++) printf("%hX ",picture->data[x]); +gpi_jpeg_chunk_destroy(picture); +printf("\n"); +} +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/jpeg.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/jpeg.h new file mode 100644 index 00000000..cedff437 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/jpeg.h @@ -0,0 +1,81 @@ +/** \file + * + * \author This code was written by Nathan Stenzel for gphoto + * + * \note + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \note + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \note + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_JPEG_H__ +#define __GPHOTO2_JPEG_H__ + +#include + +typedef enum { + JPEG_START=0xD8, JPEG_COMMENT=0xFE, JPEG_APPO=0xE0, + JPEG_QUANTIZATION=0xDB, JPEG_HUFFMAN=0xC4, JPEG_SOFC0=0xC0, + JPEG_SSSEAHAL=0xDA, JPEG_EOI=0xD9 +} jpegmarker; + +typedef struct chunk{ + int size; + unsigned char *data; +} chunk; + +typedef char jpeg_quantization_table[64]; + +typedef struct jpeg { + int count; + struct chunk *marker[20]; /* I think this should be big enough */ +}jpeg; + +chunk *gpi_jpeg_chunk_new(int length); +chunk *gpi_jpeg_chunk_new_filled(int length, char *data); +void gpi_jpeg_chunk_destroy(chunk *mychunk); +void gpi_jpeg_chunk_print(chunk *mychunk); + +char gpi_jpeg_findff(int *location, chunk *picture); +char gpi_jpeg_findactivemarker(char *id, int *location, chunk *picture); +char *gpi_jpeg_markername(unsigned int c); + +jpeg *gpi_jpeg_new (void); +void gpi_jpeg_destroy (jpeg *myjpeg); +void gpi_jpeg_add_marker (jpeg *myjpeg, chunk *picture, int start, int end); +void gpi_jpeg_add_chunk (jpeg *myjpeg, chunk *source); +void gpi_jpeg_parse (jpeg *myjpeg, chunk *picture); +void gpi_jpeg_print (jpeg *myjpeg); + +chunk *gpi_jpeg_make_start (void); +chunk *gpi_jpeg_make_SOFC (int width, int height, + char vh1, char vh2, char vh3, + char q1, char q2, char q3); +chunk *gpi_jpeg_makeSsSeAhAl (int huffset1, int huffset2, int huffset3); + +void gpi_jpeg_print_quantization_table(jpeg_quantization_table *table); +chunk *gpi_jpeg_make_quantization(const jpeg_quantization_table * table, char number); +jpeg_quantization_table *gpi_jpeg_quantization2table(chunk *qmarker); + +jpeg *gpi_jpeg_header(int width, int height, + char vh1, char vh2, char vh3, + char q1, char q2, char q3, + const jpeg_quantization_table *quant1, const jpeg_quantization_table *quant2, + char huffset1, char huffset2, char huffset3, + chunk *huff1, chunk *huff2, chunk *huff3, chunk *huff4); + +char gpi_jpeg_write(CameraFile *file, const char *name, jpeg *myjpeg); +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/libgphoto2.sym b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/libgphoto2.sym new file mode 100644 index 00000000..3f706734 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2/libgphoto2.sym @@ -0,0 +1,188 @@ +gp_abilities_list_append +gp_abilities_list_count +gp_abilities_list_detect +gp_abilities_list_free +gp_abilities_list_get_abilities +gp_abilities_list_load +gp_abilities_list_load_dir +gp_abilities_list_lookup_model +gp_abilities_list_new +gp_abilities_list_reset +gp_ahd_decode +gp_ahd_interpolate +gp_bayer_decode +gp_bayer_expand +gp_bayer_interpolate +gp_camera_autodetect +gp_camera_capture +gp_camera_capture_preview +gp_camera_exit +gp_camera_file_delete +gp_camera_file_get +gp_camera_file_get_info +gp_camera_file_read +gp_camera_file_set_info +gp_camera_folder_delete_all +gp_camera_folder_list_files +gp_camera_folder_list_folders +gp_camera_folder_make_dir +gp_camera_folder_put_file +gp_camera_folder_remove_dir +gp_camera_free +gp_camera_get_abilities +gp_camera_get_about +gp_camera_get_config +gp_camera_get_single_config +gp_camera_get_manual +gp_camera_get_port_info +gp_camera_get_port_speed +gp_camera_get_summary +gp_camera_init +gp_camera_list_config +gp_camera_new +gp_camera_ref +gp_camera_set_abilities +gp_camera_set_config +gp_camera_set_single_config +gp_camera_set_port_info +gp_camera_set_port_speed +gp_camera_set_timeout_funcs +gp_camera_start_timeout +gp_camera_stop_timeout +gp_camera_trigger_capture +gp_camera_unref +gp_camera_wait_for_event +gp_camera_get_storageinfo +gp_context_cancel +gp_context_error +gp_context_idle +gp_context_message +gp_context_new +gp_context_progress_start +gp_context_progress_stop +gp_context_progress_update +gp_context_question +gp_context_ref +gp_context_set_cancel_func +gp_context_set_error_func +gp_context_set_idle_func +gp_context_set_message_func +gp_context_set_progress_funcs +gp_context_set_question_func +gp_context_set_status_func +gp_context_status +gp_context_unref +gp_file_adjust_name_for_mime_type +gp_file_append +gp_file_slurp +gp_file_clean +gp_file_copy +gp_file_detect_mime_type +gp_file_free +gp_file_get_data_and_size +gp_file_get_mime_type +gp_file_get_mtime +gp_file_get_name +gp_file_get_name_by_type +gp_file_new +gp_file_new_from_fd +gp_file_new_from_handler +gp_file_open +gp_file_ref +gp_file_save +gp_file_set_data_and_size +gp_file_set_mime_type +gp_file_set_mtime +gp_file_set_name +gp_filesystem_append +gp_filesystem_count +gp_filesystem_delete_all +gp_filesystem_delete_file +gp_filesystem_delete_file_noop +gp_filesystem_dump +gp_filesystem_free +gp_filesystem_get_file +gp_filesystem_read_file +gp_filesystem_get_folder +gp_filesystem_get_info +gp_filesystem_list_files +gp_filesystem_list_folders +gp_filesystem_make_dir +gp_filesystem_name +gp_filesystem_new +gp_filesystem_number +gp_filesystem_put_file +gp_filesystem_remove_dir +gp_filesystem_reset +gp_filesystem_set_file_noop +gp_filesystem_set_info +gp_filesystem_set_info_noop +gp_filesystem_set_funcs +gp_file_unref +gp_gamma_correct_single +gp_gamma_fill_table +gp_library_version +gp_list_append +gp_list_count +gp_list_free +gp_list_find_by_name +gp_list_get_name +gp_list_get_value +gp_list_new +gp_list_populate +gp_list_ref +gp_list_reset +gp_list_set_name +gp_list_set_value +gp_list_sort +gp_list_unref +gp_message_codeset +gp_result_as_string +gp_setting_get +gp_setting_set +gp_widget_add_choice +gp_widget_append +gp_widget_changed +gp_widget_count_children +gp_widget_count_choices +gp_widget_free +gp_widget_get_child +gp_widget_get_child_by_id +gp_widget_get_child_by_label +gp_widget_get_child_by_name +gp_widget_get_choice +gp_widget_get_id +gp_widget_get_info +gp_widget_get_label +gp_widget_get_name +gp_widget_get_parent +gp_widget_get_range +gp_widget_get_readonly +gp_widget_get_root +gp_widget_get_type +gp_widget_get_value +gp_widget_new +gp_widget_prepend +gp_widget_ref +gp_widget_set_changed +gp_widget_set_info +gp_widget_set_name +gp_widget_set_range +gp_widget_set_readonly +gp_widget_set_value +gp_widget_unref +gpi_exif_get_thumbnail_and_size +gpi_exif_stat +gpi_jpeg_header +gpi_jpeg_chunk_destroy +gpi_jpeg_chunk_new +gpi_jpeg_chunk_new_filled +gpi_jpeg_chunk_print +gpi_jpeg_add_marker +gpi_jpeg_write +gpi_jpeg_destroy +gpi_camera_operation_map +gpi_file_operation_map +gpi_folder_operation_map +gpi_gphoto_device_type_map +gpi_camera_driver_status_map diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/AUTHORS b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/AUTHORS new file mode 100644 index 00000000..89e6db8d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/AUTHORS @@ -0,0 +1,5 @@ +Scott Fritzinger +Johannes Erdfelt (USB support) + +Based on work by: +Beat Christen diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/COPYING.LIB b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/COPYING.LIB new file mode 100644 index 00000000..533ba01e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/COPYING.LIB @@ -0,0 +1,481 @@ + GNU LIBRARY GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright © 1991 Free Software Foundation, Inc. + 675 Mass Ave, Cambridge, MA 02139, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the library GPL. It is + numbered 2 because it goes with version 2 of the ordinary GPL.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Library General Public License, applies to some +specially designated Free Software Foundation software, and to any +other libraries whose authors decide to use it. You can use it for +your libraries, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if +you distribute copies of the library, or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link a program with the library, you must provide +complete object files to the recipients so that they can relink them +with the library, after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + Our method of protecting your rights has two steps: (1) copyright +the library, and (2) offer you this license which gives you legal +permission to copy, distribute and/or modify the library. + + Also, for each distributor's protection, we want to make certain +that everyone understands that there is no warranty for this free +library. If the library is modified by someone else and passed on, we +want its recipients to know that what they have is not the original +version, so that any problems introduced by others will not reflect on +the original authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that companies distributing free +software will individually obtain patent licenses, thus in effect +transforming the program into proprietary software. To prevent this, +we have made it clear that any patent must be licensed for everyone's +free use or not licensed at all. + + Most GNU software, including some libraries, is covered by the ordinary +GNU General Public License, which was designed for utility programs. This +license, the GNU Library General Public License, applies to certain +designated libraries. This license is quite different from the ordinary +one; be sure to read it in full, and don't assume that anything in it is +the same as in the ordinary license. + + The reason we have a separate public license for some libraries is that +they blur the distinction we usually make between modifying or adding to a +program and simply using it. Linking a program with a library, without +changing the library, is in some sense simply using the library, and is +analogous to running a utility program or application program. However, in +a textual and legal sense, the linked executable is a combined work, a +derivative of the original library, and the ordinary General Public License +treats it as such. + + Because of this blurred distinction, using the ordinary General +Public License for libraries did not effectively promote software +sharing, because most developers did not use the libraries. We +concluded that weaker conditions might promote sharing better. + + However, unrestricted linking of non-free programs would deprive the +users of those programs of all benefit from the free status of the +libraries themselves. This Library General Public License is intended to +permit developers of non-free programs to use free libraries, while +preserving your freedom as a user of such programs to change the free +libraries that are incorporated in them. (We have not seen how to achieve +this as regards changes in header files, but we have achieved it as regards +changes in the actual functions of the Library.) The hope is that this +will lead to faster development of free libraries. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, while the latter only +works together with the library. + + Note that it is possible for a library to be covered by the ordinary +General Public License rather than by this special one. + + GNU LIBRARY GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library which +contains a notice placed by the copyright holder or other authorized +party saying it may be distributed under the terms of this Library +General Public License (also called "this License"). Each licensee is +addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also compile or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + c) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + d) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the source code distributed need not include anything that is normally +distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Library General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + Appendix: How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright © + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/ChangeLog new file mode 100644 index 00000000..211c0d1a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/ChangeLog @@ -0,0 +1,1154 @@ +2010-04-01 Marcus Meissner + + * disk driver: Get rid of HAL, upstream unmaintained + and the team strongly recommends we do not use it anymore. + +2009-10-03 Marcus Meissner + + * gphoto2/gphoto2-port-log.h, libgphoto2_port/gphoto2-port-log.c: + Add gp_log_simple_add_func, gp_log_simple_remove_func that + get passed simple strings to print. + +2009-07-23 Marcus Meissner + + * configure.ac: resmgr is no longer existing. + +2008-03-15 Marcus Meissner + + * libgphoto2_port/gphoto2-port-info.h: The internal GPPortInfo + structure definition. Only shared within libgphoto2_port/ + + * libgphoto2_port/gphoto2-port-info-list.c: Added new abstract + GPPortInfo implementation, with accessor functions. + + * removed DiskSettings, let it get handled in directory using + the GPPortInfo (as it should have been done before). + + * libgphoto2_port/libgphoto2_port.ver: mark some symbols INTERNAL + through symbolversions. + + * Do not start symbol versions with 2.0.0, but with this release. + + +2008-02-13 Marcus Meissner + + * disk/disk.c: Do not check "gphotofs" filesystems, to avoid + recursion in gphotofs. + +2007-12-28 Marcus Meissner + + * Migrated libgphoto2_port to use symbol versions. + + This allows reverting the major version change. + +2007-10-28 Dan Fandrich + * libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c: Be + more resiliant in case of errors enumerating a port library. + +2007-10-28 Marcus Meissner + + * gphoto2/gphoto2-port-info-list.c: GPPortInfo.path + increased to 4096, since disk: for instance can take + paths. + + This breaks libgphoto2_port binary compatibility, + so bumping interface. + +2007-06-09 Marcus Meissner + + * usb/libusb.c: Reset the USB port before close. + + This will help the notorious "Canon hang on init" problem. + +2007-05-09 Marcus Meissner + + * gphoto2/gphoto2-port.h, gphoto2/gphoto2-port-library.h, + libgphoto2_port/gphoto2-port.c, libgphoto2_port/libgphoto2_port.sym, + usb/libusb.c: + + Added USB class based control read and write (for PTP driver). + +2007-02-12 Marcus Meissner + + * ptpip/ptpip.c: mDNS auto discovery disabled, + since the mDNS compat module of avahi crashes autodetect + if used incorrectly. + +2007-01-20 Marcus Meissner + + * usb/libusb.c: Use usb_interrupt_read instead + of usb_bulk_read. + +2006-09-09 Marcus Meissner + + * disk: Merged Solaris mount entry handling from + SF tracker +http://sourceforge.net/tracker/download.php?group_id=8874&atid=108874&file_id=171553&aid=1427300 + + (but pretty modified). + +2006-02-19 Marcus Meissner + + * Regular expression support added for: + + usb: (currently supported: usb:XXX,YYY, + can get easily more) + + disk: (disk:/full/path/) + ptpip: (ptpip:ipnr:port) + +2006-02-17 Marcus Meissner + + * libgphoto2_port/gphoto2-port-info-list.c: Fixed + various problems in regular expression based ports + handling. + +2006-02-16 Marcus Meissner + + * ptpip/: New directory for PTP/IP support. + * configure.in: added ptpip directory + autodetect mDNSresponder (UNIX version of Bonjour) + +2006-01-04 Hubert Figuiere + + * configure.in: buumped .so version. Bumped + package version. + +2005-08-17 Marcus Meissner + + * usb/libusb.c: Recurse into the interfaces to see + HID devices and similar so we can skip them. + + This avoids unnecessary listing of some + non camera devices and usb:XXX,YYY confusion. + +2005-08-14 Marcus Meissner + + * configure.in: Use "disk" unconditional. + When we detect HAL , define HAVE_HAL. + + * disk/disk.c: Read /etc/fstab and /etc/mtab and look + for digital camera mounts. + +2005-06-12 Hubert Figuiere + + * libgphoto2_port/gphoto2-port.h: new disk settings struct. + + * libgphoto2_port/gphoto2-port.c (gp_port_set_info): copy + disk port settings + + * libgphoto2_port/gphoto2-port-result.[ch]: + added GP_HAL_ERROR + + * disk/Makefile.am: added HAL flags + + * disk/disk.c (gp_port_library_list): list mounted filesystems + using libhal. + + * configure.in (HAL_CFLAGS): detect libhal + +2005-06-11 Hans Ulrich Niedermann + + * libgphoto2_port/Makefile.am: link libgphoto2_port + with explicit symbol list + +2005-06-11 Hubert Figuiere + + * disk/*: + * configure.in: added disk/ subdir + * libgphoto2_port/gphoto2-port-info-list.h: added GP_PORT_DISK. + +2005-06-08 Theodore Kilgota + + * usb/libusb.c: added gp_port_usb_msg_interface_write_lib and + gp_port_usb_msg_interface_read_lib functions, and corresponding + entries in "ops" list, in order to support 0x41 and 0xc1 request + types needed by Sonix sn9c2028 cameras. + * libgphoto2_port/gphoto2_port_library.h: msg_interface_write and + msg_interface_read declared + * libgphoto2_port/gphoto2_port.h: gp_port_usb_msg_interface_write and + gp_port_usb_msg_interface_read functions declared + * libgphoto2_port/gphoto2_port.c: gp_port_usb_msg_interface_write and + gp_port_usb_msg_interface_read functions added + +2005-03-04 Marcus Meissner + + * serial/unix.c: make IUCLC check more generic. + (from Robert Millan) + +2005-02-16 Marcus Meissner + + * usb/libusb.c: also detach the usb-storage driver + when we open a USB device. We can support those + cameras. + +2005-02-12 Hans Ulrich Niedermann + + * configure.in: fix shell syntax error I introduced + in 2002-11 and no one noticed except for the Debian + packagers + +2005-01-17 Colin Marquardt + + * po/ja.po: Update thanks to Takeshi AIHANA. + +2005-01-04 Marcus Meissner + + * libpghoto2_port/gphoto2-port.c, gphoto2-port-info-list.c: + Marked up debug strings for translation too. + Removed translation markup from function names. + + * po/*.po: make update-po + + * po/ru.po: Merged new russian translations from Vyacheslav Dikonov. + +2004-10-28 Hubert Figuiere + + * libgphoto2_port/gphoto2-port-log.h: Fix build for gcc 2.95 + (bug #1055868) + +2004-08-22 Marcus Meissner + + * libgphoto_port/gphoto-port.h, gphoto-port-log.h: + + Added attributes so gcc knows gp_log* are varargs + using printf style functions and can warn on bad + format strings. + +2004-08-22 Marcus Meissner + + * Detach USB kernel drivers (unless storage or usbfs) + before claiming interface. This should help stv680 + and spca504x cameras (dc2xx driver should be gone + from kernel). + +2004-01-06 Marcus Meissner + + * Multiple USB Devices at once support. + +2003-12-11 Lutz Mueller + + Patch by Andreas Burmester : + + * serial/unix.c: Do not verify the speed change if we set the + speed to 0. + +2003-08-16 Patrick Mansfield + + * usb/libusb.c: change the mass storage check to output a debug + message and not prevent the camera from being used, as reported + by Marcus Meissner, at the least the olympus 5050z shows up as a + mass storage device, but works fine with gphoto2. + +2003-08-10 Patrick Mansfield + + * usb/libusb.c: Fix the check for mass storage devices. + +2003-08-10 Patrick Mansfield + + * usb/libusb.c: Check for and do not allow USB mass + storage devices. + +2003-05-04 Lutz Mueller + + * libgphoto2_port/gphoto2-port-portability.h: Patch by + Mike Petullo for OpenBSD. + +2003-01-23 Hubert Figuiere + + * libgphoto2_port/gphoto2-port-info-list.c (gp_port_info_list_free): actually + free the list. It was simply leaked. (reported by DigiKam author on IRC). + +2002-11-29 Marcus Meissner + + * serial/unix.c, configure.in: Added support for libresmgr style locking. + +2002-11-12 Lutz Mueller + + * libgphoto2_port/gphoto2-port-version.c: Use HAVE_CC only if defined. + +2002-11-08 Hans Ulrich Niedermann + + * configure.in: increased AGE to 1, define HAVE_USB and HAVE_SERIAL + * libgphoto2-port/gphoto2-port-version.[ch]: added + * libgphoto2-port/Makefile.am: added gphoto2-version.[ch] + +2002-09-12 Marcus Meissner + + * configure.in, serial/Makefile.am: Do not use xx_LDFLAGS, + automake is unhappy about that. + +2002-07-25 Christophe Barbé + + po files from Stefan Bj|rnelund + + * libgphoto2_port/po/sv.po: Update Swedish translation. + +2002-07-14 Hans Ulrich Niedermann + + * ABOUT-NLS: Remove this file, it is generated by gettextize. + +2002-07-12 Lutz Müller + + * configure.in: Use ltdl if available. + +2002-06-27 Lutz Müller + + * autogen.sh: We don't need this file. + +2002-06-21 Christophe Barbé + + po files from Takeshi AIHANA + + * libgphoto2_port/po/ja.po: Update Japan translation. + +2002-06-18 Christophe Barbé + + po file from Fabian Mandelbaum + + * libgphoto2_port/po/es.po: Spanish translation. + +2002-06-17 Lutz Müller + + * configure.in: Fix indentation. + +2002-06-17 Lutz Müller + + Patch by Arnaud Launay , slightly modified: + + * configure.in: Check for usb_busses in -lusb. + +2002-06-17 Lutz Müller + + * Makefile.am: Remove 'autogen.sh' from EXTRA_DIST - people + that compile our tarballs don't need it. + +2002-06-14 Lutz Müller + + * libgphoto2_port/gphoto2-port-info-list.c: Cleanup the ltdl-specific + part. + +2002-06-14 Lutz Müller + + * libgphoto2_port/Makefile.am: + * configure.in: Fix (?) -version-info + +2002-06-14 Lutz Müller + + * configure.in: Don't use ltdl.h - libtool is just too broken + (or I am too stupid to use it). + +2002-06-13 Hans Ulrich Niedermann + + * m4/documentation.m4: + - set XMLTO to either xmlto (if present) or false (if not) + - set have_xmltohtml and stuff instead of have_xmltoHTML and stuff + - only set have_xmlto* to true if have_xmlto + - output which formats we will create under which file/dir name + +2002-06-12 Lutz Müller + + * configure.in: + * libgphoto2_port/gphoto2-port-info-list.c: Make libgphoto2_port + use ltdl.h. I needed to introduce a global variable - code is + marked as UGLY_HACK. If you know how to fix it, please tell me. + +2002-06-12 Lutz Müller + + * serial/unix.c: Substitute some '#if's by '#ifdef's. + +2002-06-12 Lutz Müller + + * m4/documentation.m4: People reported problems with AC_CHECK_PROG. + Let's try AC_PATH_PROG instead. + +2002-06-11 Lutz Müller + + * m4/documentation.m4: Fix checks for xmlto-[html,pdf,man,ps]. + +2002-06-11 Hans Ulrich Niedermann + + * m4/packaging.m4: package dependency on libusb only if required + +2002-06-06 Lutz Müller + + Patch by Patrick Mansfield : + + * libgphoto2_port/gphoto2-port-info-list.c: #ifdef instead of #if + +2002-06-06 Lutz Müller + + * m4/documentation.m4: Fix this ugly output all over the place. + +2002-06-06 Lutz Müller + + * intl: Remove these files - they should be generated by gettextize. + * autogen.sh: Check for and run gettextize. + +2002-06-06 Lutz Müller + + * acconfig.h: According to + http://www.gnu.org/manual/autoconf-2.53/html_mono/autoconf.html, + this file is obsolete. + * configure.in: Adapt to above. + +2002-06-04 Hans Ulrich Niedermann + + * m4/documentation.m4: build HTML, PDF, PS manual only if possible + * usb/libusb.c: added note about stv680 kernel driver + +2002-05-30 Hans Ulrich Niedermann + + * m4/documentation.m4: fixed fig2dev test, + hack: assume xmlto cannot do pdf and ps even if it claims to, + added output message + +2002-05-28 Hans Ulrich Niedermann + + * doc/DocRules.am: API docs belong to API_DIR + +2002-05-26 Hans Ulrich Niedermann + + * m4/documentation.m4: test for xmlto, define API_DIR + +2002-05-25 Hans Ulrich Niedermann + + * m4/documentation.m4: use AC_BEFORE where sensible + * serial/unix.c: the locking problems only concern RS232 cams + +2002-05-25 Lutz Müller + + Patch by Dave Woodman , slightly modified: + + * serial/unix.c: Make sure speed changes have been successful. + +2002-05-23 Lutz Müller + + * test/test-gp-port.c: More tests. + * libgphoto2_port/gphoto2-port.c: Nicer debugging output. + +2002-04-22 Marcus Meissner + + * serial/unix.c: Unescape 0xff/0xXX parity framing sequences here. + +2002-04-19 Mariusz Woloszyn + + * libgphoto2_port/gphoto2-port-library.h: changed definition of + GPPortOperations.check_int. + * libgphoto2_port/gphoto2-port.[ch]: added gp_port_check_int_fast(). + * usb/libusb.c: changed definition of gp_port_usb_check_int. + +2002-04-16 Marcus Meissner + + * libgphoto_port/gphoto2-port.h, serial/unix.c: + Handle parity, introduced new enum GPPortSerialParity, + switched one element of the structure from int to enum + (enums are ints, so it should remain binary compatible). + +2002-03-23 Dan Fandrich + + * m4/byteorder.m4: Added support for cross-compilation. + Changed to look for machine/endian.h instead of sys/endian.h on *BSD. + +2003-03-22 Lutz Müller + + * libgphoto2_port/Makefile.am: Remove "-g" from [C,LD]FLAGS. If you + need it, please add it again in configure.in. + +2002-03-21 Marcus Meissner + + * usb/libusb.c: gp_port_usb_find_bulk no exists, replaced with _ep. + Also look for intep in class based matching. + Dump intep in debugoutput. + interrupt endpoints are *input* endpoints, not output. + Remember we did the altsetting after we did change it. + +2002-03-19 Marcus Meissner + + * configure.in, acconfig.h: Fixed some warnings newer autoconf + versions generate. Use AM_PROG_LIBTOOL. + +2002-03-14 Dan Fandrich + + * m4/byteorder.m4 + * m4/stdint.m4: Changed to allow building in non-source directory. + Added support for 64 bit integers. + +2002-03-13 Hans Ulrich Niedermann + + * configure.in: more verbose (and hopefully more + user-understandable) libusb error message and configuration + information, fixed typo + +2002-03-12 Mariusz Woloszyn + + * changed all _event, eventep to _int and intep as it describes usb + inerrupt endpoint + +2002-03-11 Lutz Müller + + * configure.in: Fix versionning. + +2002-03-11 Mariusz Woloszyn + + * libgphoto2_port/gphoto2-port-library.h: added + check_event to GPPortOperationsl + * libgphoto2_port/gphoto2-port.h: added eventep to + GPPortSettingsUSB + * usb/libusb.c: added gp_port_usb_check_event(), + changed gp_port_usb_find_bulk to gp_port_usb_find_ep(), + added setting of eventsep to gp_port_usb_find_device_lib() + * libgphoto2_port/gphoto2-port.[ch]: added gp_port_check_event() + +2002-02-23 Dan Fandrich + + * libgphoto2_port/gphoto2-port-info-list.c: Fixed error test for + non-GNU regex. + +2002-02-23 Lutz Müller + + * [serial,usb]/Makefile.am: LIBADD libgphoto2_port. + +2002-02-22 Lutz Müller + + * serial/unix.c: Improved IRIX fix to set the speed exactly once after + opening the device. + +2002-02-21 Lutz Müller + + * serial/unix.c: IRIX fixes. + +2002-02-19 Lutz Müller + + * serial/unix.c (gp_port_library_list): Don't check for return + value when adding generic ports. Fixes #518616. + +2002-02-18 Colin Marquardt + + * configure.in: Added zh_CN.GB2312 to ALL_LINGUAS. + +2002-02-16 Hans Ulrich Niedermann + + * usb/Makefile.am: Added usb-os2.c to EXTRA_DIST + +2002-02-13 Marcus Meissner + + * gphoto2-port.h: placed typedefs after the enums (GPPin and GPLevel) + since g++ does not like it. + +2002-02-11 Lutz Müller + + * doc/DocRules.am: Fix building docs when $(builddir) == $(srcdir). + +2002-02-09 Dan Fandrich + + * serial/unix.c: Added serial ports for Tru64 UNIX + +2002-02-06 Lutz Müller + + * m4/documentation.m4: Fix #510543. + +2002-02-06 Lutz Müller + + * libgphoto2_port/gphoto2-port.h: extern C. + +2002-01-13 Hans Ulrich Niedermann + + * configure.in: Added "ja" to ALL_LINGUAS to fix broken "make dist" + +2002-01-31 Lutz Müller + + * libgphoto2_port/gphoto-port.[c,h]: The buffer that is sent using + gp_port_write is "const". + +2002-01-24 Dan Fandrich + + * gphoto2-port-log.h + * gphoto2-port.h: Removed config.h include (should be done in .c files) + * usb/usb-os2.c + * test/test-gp-port.c + * gphoto2-port-portability.c: Added include of config.h + +2002-01-19 Dan Fandrich + + * configure.in: Replaced AC_TRY_RUN with AC_TRY_LINK in ttylock test + so cross-compiling is possible. + +2002-01-13 Dan Fandrich + + * libgphoto2_port/gphoto2-port-log.h + * libgphoto2_port/gphoto2-port.h: Put #ifdef HAVE_CONFIG_H around + include + +2002-01-13 Hans Ulrich Niedermann + + * libgphoto2_port/gphoto2-port.[ch]: renamed "class" parameter to "mainclass" + to allow for compilation of C++ programs with libgphoto2_port + +2002-01-09 Dan Fandrich + + * m4/byteorder.m4: Added support for NetBSD swap macros. + * m4/Makefile.am: Added byteorder.m4 to file list + +2002-01-09 Dan Fandrich + + * libgphoto2_port/gphoto2-port-log.h: Conditionally use C99 variadic + macros + +2002-01-09 Dan Fandrich + + * libgphoto2_port/gphoto2-port.h: Moved typedefs after the definitions + of the dependent types. + +2002-01-08 Lutz Müller + + * configure.in: Substitute AM_PROG_LIBTOOL by AC_PROG_LIBTOOL (first + is deprecated). + +2002-01-04 Dan Fandrich + + * configure.in: Only add gcc-specific CFLAGS if we're running gcc. + * Minor changes to other files to improve portability. + +2002-01-04 Hans Ulrich Niedermann + + * usb/libusb.c: fixed error message to contain something to report + +2002-01-04 Colin Marquardt + + * po/de.po: Update. + +2002-01-02 Lutz Müller + + * libgphoto2_port/Makefile.am: + * usb/Makefile.am: + * serial/Makefile.am: Install io-drivers into versioned + subdirectories. + +2001-12-20 Lutz Müller + + Patch from Tim Waugh : + + * usb/libusb.c: "I think this makes it clearer exactly which kernel + module to unload when dc2xx is loaded." + +2001-12-14 Lutz Müller + + * configure.in: Comment out check for ltdl.h. See comment in there. + +2001-12-14 Lutz Müller + + * gphoto2-port-config.in: Added missing -lgphoto2_port + +2001-12-13 Lutz Müller + + * configure.in: Check if ltdl.h is available and ... + * libgphoto2_port: ... use it. + +2001-12-12 Lutz Müller + + Remove some error codes, and move some variable names into the + gp-namespace. + +2001-12-11 Lutz Müller + + * libgphoto2_port/gphoto2-port-result.[c,h]: Remove + GP_ERROR_IO_TIMEOUT - we already have GP_ERROR_TIMEOUT. + +2001-12-07 Hans Ulrich Niedermann + + * libgphoto2_port/gphoto2-port-log.c: ENABLE_DEBUGGING -> DISABLE_DEBUGGING + * doc/gphoto2-port-sections.txt: added lots of constants, a few macros and + created new sections about serial and usb specific stuff + +2001-12-07 Lutz Müller + + * configure.in: You won't believe how much dead code there is... + +2001-12-07 Hans Ulrich Niedermann + + * gphoto2-port-config.in: made it work again + +2001-12-01 Hans Ulrich Niedermann + + * configure.in: help cosmetics + * m4/documentation.m4: help cosmetics, + added check for transfig and AM_CONDITIONAL BUILD_FIGURES, + simplified mechanism that determines whether to build docs or not + * m4/packaging.m4: help cosmetics, renamed PGK_* to GPKG_*, + improved messages + +2001-11-29 Lutz Müller + + * libgphoto2_port/gphoto2-port-info-list.c: The logic was still + broken... + +2001-11-29 Lutz Müller + + * libgphoto2_port/gphoto2-port-info-list.c: Oh god, I checked in a + #if 0 that I used for debugging purposes. Sorry, guys.... + +2001-11-29 Fredrik + + * libgphoto2_port/gphoto2-port-portability.h: OpenBSD also prepends + underscores to symbols. + +2001-11-29 Lutz Müller + + * libgphoto2_port/gphoto2-port-info-list.c: Fix regex stuff + (at least for HAVE_GNU_REGEX). + +2001-11-29 Lutz Müller + + * configure.in: Check for GNU regex + * acconfig.h: HAVE_GNU_REGEX + * serial: + * libgphoto2_port: First try to implement a regex match. Doesn't work + yet. + +2001-11-29 Hans Ulrich Niedermann + + * libgphoto2_port/m4/packaging.m4: added packaging macro + +2001-11-27 Hans Ulrich Niedermann + + * po/libgphoto2_port.pot: I'm sick of all the diffs + * po/de.po: I'm still sick of all the diffs + +2001-11-27 Lutz Müller + + * serial/unix.c (gp_port_library_list): Lock device here before + trying to access a port, too. + +2001-11-26 Lutz Müller + + * configure.in: Fix typo (USB_LIBS, not USB_LDFLAGS) *sigh* + * usb/Makefile.am: libgphoto2-port-usb.so needs -lusb, therefore add + it using LIBADD (ldopen is not clever enough to figure that out). + +2001-11-25 Lutz Müller + + * gphoto2-port-config.in: Remove another reference to IOLIB_CFLAGS... + +2001-11-25 Lutz Müller + + * serial/unix.c: Always set the speed at the beginning - don't assume + it to be at 9600. + +2001-11-25 Lutz Müller + + * serial/unix.c: For flush and break, check that the device is open + and at the right speed. + +2001-11-24 Lutz Müller + + * serial/unix.c: Try to fix logic of speed setting: Now check before + each read/write operation if the current speed is the requested one. + If not, change it and remember it in dev->pl->baudrate. + +2001-11-24 Lutz Müller + + * libgphoto2_port/Makefile.am: @IOLIB_CFLAGS@ doesn't exist any more. + +2001-11-23 Lutz Müller + + * serial/unix.c: Only set the baudrate if the device is open. If you + set parameters on device 0, you mess up the console... + +2001-11-23 Lutz Müller + + * configure.in: + * serial/Makefile.am + * usb/Makefile.am: Clean up Makefiles. Avoid version on io-drivers + (we don't check it anyways) + +2001-11-22 Lutz Müller + + Patch from Marr : + + * libgphoto2/gphoto2-port.c: Fix bug whereby hexadecimal output is + erroneously shown in decimal format. + * serial/unix.c (gp_port_serial_update): Don't open/close the port + here (does this break anything?) + +2001-11-17 Colin Marquardt + + * configure.in (Module): Added 'de' to ALL_LINGUAS. + +2001-11-11 Lutz Müller + + * configure.in: Look for usb.h in locations specified by + libusb-config. + +2001-10-29 Lutz Müller + + * usb/libusb.c: memset port->pl to 0 so that we can later detect + errors + +2001-10-28 Lutz Müller + + * libgphoto2_port/gphoto2-port-portability.[c,h] (GP_SYSTEM_RMDIR): + New + +2001-10-27 Lutz Müller + + * libgphoto2: Updated documentation + +2001-10-26 Lutz Müller + + * include: Move everything from here to ... + * libgphoto2_port: ... here. + +2001-10-26 Lutz Müller + + * configure.in: Give users the possibility _not_ to compile in USB + support. Same with SERIAL. + +2001-10-26 Lutz Müller + + * include/gphoto2-port.h: Changed the syntax of gp_port_new to + be consistent with gp_camera_new. + +2001-10-26 Lutz Müller + + * network + * parallel + * ieee1394: Removed. Once someone wants to implement those, they can + be easily resurrected. + +2001-10-25 Lutz Müller + + * usb/libusb.c: + * include/gphoto2-port.h: Cleanup. + +2001-10-25 Fredrik + + * libgphoto2_port/gp_port.c: Write number of bytes we are going + to read in debug message as this was not shown when the read + failed. + Fix bug when logging data in gp_port_usb_msg_read(). + +2001-10-25 Lutz Müller + + * libgphoto2_port/gphoto2-port-core.[c,h]: Replaced by ... + * libgphoto2_port/gphoto2-port-info-list.[c,h]: ... this file. + +2001-10-23 Lutz Müller + + * libgphoto2_port/gphoto2-port-log.[c,h]: Remove the history stuff. + * libgphoto2_port/gp_port.c (gp_port_set_error), (gp_port_get_error): + New. + * serial/unix.c: Use gp_port_set_error + +2001-10-22 Lutz Müller + + * libgphoto2_port/gphoto2-port-log.[c,h]: Use va_list instead of + a buffers. That means, no more incomplete data dumps. + +2001-10-20 Lutz Müller + + * libgphoto2_port/gp_port.c: Forot to set default speed to 0 + +2001-10-20 Lutz Müller + + * configure.in: Add some more warning flags + * include/gphoto2-port.h: More cleanup in preparation of documentation + * libgphoto2_port/gp_port.c: Move internals into port->pc + * serial/unix.c: Move internals into port->pl. If speed in settings + is 0, set to 9600 (default). + +2001-10-17 Lutz Müller + + * libgphoto2_port/gphoto2-port-log.[c,h]: Added GP_LOG_DATA + +2001-10-17 Lutz Müller + + * include/gphoto2-port-debug.h + * libgphoto2_port/debug.c: Removed + +2001-10-16 Lutz Müller + + * libgphoto2_port/result.c: + * include/gphoto2-port-result.h: #define GP_ERROR_NOT_SUPPORTED + * libgphoto2_port/gp_port.c: Clean up in preparation of documentation + +2001-10-16 Lutz Müller + + * ieee1394/Makefile.am: + * serial/Makefile.am: + * parallel/Makefile.am: + * usb/Makefile.am: + * network/Makefile.am: -I$(top_srcdir)/libgphoto2_port + * include/gphoto2-port-result.h: GP_ERROR_UNKNOWN_PORT instead of + GP_ERROR_IO_UNKNOWN_PORT. + * include/gphoto2-port.h: GPPortType, GPPortOperations, GPPort + * libgphoto2_port/gphoto2-port-core.[c,h]: New. + +2001-10-16 Lutz Müller + + * doc: Create framework for documentation. + * libgphoto2_port/gphoto2-port-log.[c,h]: Updated + +2001-10-14 Lutz Müller + + * include/gphoto2-port-result.h: GP_ERROR_NO_MEMORY + * libgphoto2_port/result.c: GP_ERROR_NO_MEMORY + +2001-10-12 Lutz Müller + + Patch from Fredrik : + + * libgphoto2_port/gp_port.c: + * usb/libusb.c: Better error checking + +2001-10-07 Lutz Müller + + Patch from David Faure + + * libgphoto2_port/library.c: Fix logic + +2001-10-06 Lutz Müller + + Suggestions from Hans Ulrich Niedermann : + + * libgphoto2_port/debug.c: #warn the user #ifndef HAVE_VSNPRINTF and + use a #define at the beginning instead of #ifdefs in the code. + +2001-10-06 Lutz Müller + + * include/gphoto2-port-debug.h + * libgphoto2_port/debug.c (gp_port_debug_history_get_size): New. + (gp_port_debug_printf): Append the msg to the history after calling + the debugging function. + (gp_port_history_append): Don't try to remove full messages, just + remove as many bytes as needed. + +2001-10-06 Lutz Müller + + * include/gphoto2-port-debug.h + * libgphoto2/debug.c (gp_port_debug_get_level): New. In addition, + remove port-dependent debug levels as frontends are not able to + change them dynamically. Just use the global one. + * include/gphoto2-port.h + * libgphoto2_port/gp_port.c: gp_port_init without debug level. That + can and should be done separately. + * libgphoto2_port/library.c + * test/test-gp-port.c + * serial/unix.c: Adjust to above changes + * usb/libusb.c: Use gp_port_debug_printf instead of fprintf + +2001-10-06 Lutz Müller + + Chris Byrne found this bug: + + * libgphoto2_port/debug.c: Use "%s" because the string we print can + contain characters like "%%%%i%s&%i". + +2001-10-05 Lutz Müller + + * libgphoto2_port/gp_port.c: Print what we received only if we received + something... + +2001-10-05 Lutz Müller + + Patch from Hans Ulrich Niedermann , slightly + adapted: + + * include/gphoto2-port-debug.h + * libgphoto2_port/debug.c (gp_port_debug_print_data): New + * libgphoto2_port/gp_port.c: Use the new function. + +2001-10-05 Lutz Müller + + * libgphoto2_port/debug.c: #include + +2001-10-05 Lutz Müller + + Suggestion from Fredrik : + + * configure.in: Check for vsnprintf + * libgphoto2_port/debug.c: Use vsnprintf if available + +2001-10-05 Lutz Müller + + Patch based on suggestions from Fredrik : + + * libgphoto2_port/debug.c: Make sure we memset the same number of + bytes we malloc. + +2001-10-04 Lutz Müller + + * serial/unix.c: + * usb/libusb.c: Fix includes + +2001-10-04 Lutz Müller + + * include/Makefile.am + * include/gphoto2-port-result.h + * libgphoto2_port/Makefile.am + * libgphoto2_port/result.c: New + * include/gphoto2-port-debug.h: Define debug levels here + * include/gphoto2-port.h: Clean up + * libgphoto2_port/debug.c: Check if history is big enough for message + +2001-10-04 Lutz Müller + + * include/Makefile.am + * include/gphoto2-port-debug.h + * libgphoto2_port/Makefile.am + * libgphoto2_port/debug.c: New files + * libgphoto2_port/gp_port.c: Move debugging stuff out of here. + +2001-10-04 Lutz Müller + + * include/gphoto2-port.h: + * libgphoto2_port/gp_port.c: Revert the result_as_description thing + +2001-10-04 Lutz Müller + + * acconfig.h: + * configure.in: + * serial/unix.c: Use baudboy.h if available (Red Hat) + +2001-10-04 Lutz Müller + + Thanks to Bill Richardson : + + * test/Makefile.am: Oops, don't use -lgphoto_port + +2001-10-03 Lutz Müller + + * acconfig.h: #undef HAVE_TTYLOCK + * configure.in: Improved checks for locking headers/libs + * serial/unix.c: Yet another locking lib: ttylock.h + +2001-10-03 Lutz Müller + + * include/gphoto2-port.h: + * libgphoto2_port/gp_port.c: Explain to the users why claiming an + interface could fail. + +2001-10-03 Lutz Müller + + * include/gphoto2-port.h: + * libgphoto2_port/gp_port.c (gp_port_result_as_description): New + +2001-10-03 Lutz Müller + + * serial/unix.c: Correctly interpret the return value of dev_[un]lock + +2001-10-03 Lutz Müller + + * test/gphoto2-port-test.c: Renamed into + * test/test-gp-port.c + * test/Makefile.am: New + * Makefile.am: Add test to SUBDIRS + * acconfig.h: #undef HAVE_LOCKDEV + * configure.in: Check for lockdev and use it if available + * serial/Makefile.am: -llockdev if that is available + * serial/unix.c: Use lockdev if available + +2001-09-24 Lutz Müller + + * libgphoto2_port/gp_port.c (gp_port_count): Make sure + libgphoto2_port is initialized. + +2001-09-22 Lutz Müller + + Patch from Fredrik + + * include/gphoto2-port.h: + * libgphoto2_port/gp_port.c: + * serial/unix.c: + * usb/libusb.c: Clean up settings code. + +2001-09-22 Lutz Müller + + Patch from Carsten Pfeiffer + + * libgphoto2_port/library.c: + * libgphoto2_port/portability.c: char *whatever -> const char *whatever + +2001-09-18 Chris PInkham + + * include/gphoto2-port.h + libgphoto2_port/gp_port.c + usb/libusb.c: changed *usb_msg_read* and *usb_msg_write* functions + to allow passing in of request and index values. + +2001-09-14 Lutz Müller + + Patch from Fredrik : + + * usb/libusb.c: Only set configuration stuff on gp_port_usb_update + (instead of gp_port_usb_open). + +2001-09-14 Lutz Müller + + * libgphoto2_port/gp_port.c: Set some default settings in case of + GP_PORT_USB, too. + +2001-09-02 Lutz Müller + + * include/gphoto2-portability.h: + * include/libgphoto2_port/portability.c: const *char + +2001-08-30 Lutz Müller + + * include/gphoto2-port.h: GP_ERROR_IO_LOCK + * libgphoto2_port/gp_port.c: Better error reporting. + * serial/unix.c: Implement locking of serial ports + +2001-08-29 Lutz Müller + + All work from Fabrice Bellet : + + * libgphoto2_port/library.c (gp_port_library_list): Don't try to + open .* + * usb/libusb.c (gp_port_usb_close): Release the interface here. + +2001-08-29 Lutz Müller + + * libgphoto2_port/gp_port.c: if (!dev) return (GP_OK) instead of + accessing dev->whatever... Plus, set the timeout on gp_port_open. + +2001-08-27 Lutz Müller + + Suggestion from Fabrice Bellet : + + * include/gphoto2-port.h: + * usb/libusb.c (gp_port_usb_close): Don't report an error if the + device has already been closed. Correctly reuse the devices on + gp_port_open after gp_port_close. + + * parallel/Makefile.am: Remove some references to libgpio. + +2001-03-16 Lutz Müller + + * gphoto2-port-test.c: Applied patch from Michael + which brings the file + in sync with current API. + +2000-07-15 Fabrice Bellet + + * gpio-usb.c : removed useless call to usb_release_interface() + because the usbdev close ioctl already does the job for us. + Compilation warning fix. + +2000-07-09 Fabrice Bellet + + * Makefile.am : fixed typo. + * gpio-usb.c : cosmetic namespace changes. + * gpio.c : fixed compilation warnings. + +2000-01-07 Ole Aamot + + * Added USB patch from Johannes Erdfelt + +1999-12-28 Ole Aamot + + * libgpio.spec.in: added + +1999-12-27 Ole Aamot + + * Added auto* build scripts. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/Makefile.am new file mode 100644 index 00000000..c1a4cade --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/Makefile.am @@ -0,0 +1,93 @@ +######################################################################## +# Usage instructions +######################################################################## +# If you only want to build a single iolib (say usb.la), run +# gmake usb.la +# or make usb.la +# +# If you only want to install a single iolib or two, run +# make IOLIB_LTLIST="usb.la ptpip.la" install-iolibLTLIBRARIES +######################################################################## + + +CLEANFILES = +EXTRA_DIST = +EXTRA_LTLIBRARIES = +udevscript_PROGRAMS = + + +## These two definitions look obsolete: +## Specify some includes and versioning +#AM_CPPFLAGS = -I@srcdir@ $(VERSION_FLAGS) +#VERSION_FLAGS = -DLIBGPPORT_VERSION=\"@LIBGPPORT_VERSION@\" -DHAVE_TERMIOS_H + +## Executable files +bin_SCRIPTS = gphoto2-port-config + +# The . stands for the current dir, i.e. the iolibs to build. +SUBDIRS = po libgphoto2_port test . doc gphoto-m4 + + +######################################################################## +# All iolibs are defined as EXTRA_LTLIBRARIES. This requires that +# all iolibs have -rpath set explicitly in foobar_la_LDFLAGS. +# You're probably best off by using the iolib_* variables defined +# below. +iolib_LTLIBRARIES = $(IOLIB_LTLIST) + + +######################################################################## +# Define the compile/link/etc. flags common to all iolibs in one place, +# i.e. here. +iolib_dependencies = $(top_srcdir)/iolib.sym +iolib_ldflags = -module -no-undefined -avoid-version \ + -export-dynamic \ + -export-symbols $(top_srcdir)/iolib.sym \ + -rpath '$(iolibdir)' +iolib_libadd = $(top_builddir)/libgphoto2_port/libgphoto2_port.la + +AM_CPPFLAGS += -I$(top_srcdir) + +include disk/Makefile-files +include ptpip/Makefile-files +include serial/Makefile-files +include usb/Makefile-files +include libusb1/Makefile-files +include usbdiskdirect/Makefile-files +include usbscsi/Makefile-files +include vusb/Makefile-files + + +######################################################################## +# Miscellaneous stuff + +EXTRA_DIST += \ + AUTHORS \ + ChangeLog \ + COPYING.LIB \ + NEWS \ + README \ + iolib.sym \ + gphoto2-port-config.in + +doc_DATA = AUTHORS README NEWS + +ACLOCAL_AMFLAGS = -I auto-m4 -I gphoto-m4 + +EXTRA_DIST += libgphoto2_port.pc.in +pkgconfig_DATA = libgphoto2_port.pc + +EXTRA_DIST += libgphoto2_port-uninstalled.pc.in +noinst_DATA = libgphoto2_port-uninstalled.pc + + +# ship headers +nobase_include_HEADERS = \ + gphoto2/gphoto2-port.h \ + gphoto2/gphoto2-port-info-list.h \ + gphoto2/gphoto2-port-log.h \ + gphoto2/gphoto2-port-version.h \ + gphoto2/gphoto2-port-portability.h \ + gphoto2/gphoto2-port-result.h + +EXTRA_DIST += gphoto2/gphoto2-port-library.h diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/NEWS b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/NEWS new file mode 100644 index 00000000..24a28502 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/NEWS @@ -0,0 +1,97 @@ +libgphoto2_port 0.12.0 + +API: +gp_log_data was changed to +void gp_log_data (const char *domain, const char *data, unsigned int size, const char *format, ...) +to enable more compact debug logging. + + +libgphoto2_port 0.10.1 + +API: +gp_port_reset(GPPort*) added for a usb reset of the device. + +libgphoto2_port 0.10.0 + +API: + * GPPortInfo is now abstract, and a pointer in the background. + + Use gp_port_info_get_* functions to access variables. + + info.type -> gp_port_info_get_path(info, &type); + info.path -> gp_port_info_get_path(info, &path); + info.name -> gp_port_info_get_name(info, &name); + + (gp_port_info_get_type(), gp_port_info_get_name() and + gp_port_info_get_path() should be the only ones necessary, + if at all.) + + The gp_port_info_set_* and gp_port_info_new are internal to + libgphoto2_port. + +Build: + * Switch build to use ELF symbol versions to avoid + major version bumps. Introduced LIBGPHOTO2_0_0 + and LIBGPHOTO2_5_0 ELF versions. + + libgphoto2_port.sym is now libgphoto2_port.ver + but with similar tasks. + +Library Loader: + * Bumped the GPPortInfo path size to 4096, since 64byte + is not sufficient for paths on UNIX systems when using + disk: + +libgphoto2_port 0.8.1 + +Build: + * Non-recursive iolib build: Makes "make -j2" useful, and dynamic + load checks without install possible. + Selective iolib rebuild is "make usb.la" now. + Selective iolib install is + "make DRIVERS='usb.la disk.la' install-iolibLTLIBRARIES". + +Library Loader: + * Return error if not a single iolib can be found and loaded. + +Tests: + * "make check" makes sure that loading iolibs from build tree works. + * "make installcheck" makes sure that loading installed iolibs works. + +------------------------------------------------------------------------ + +libgphoto2_port 0.8.0 + + * various bug fixes and doxygenation + +USB: + * reset the USB device on close. This cures the infamous "Canon hang + on second init" problem. + +Disk: + * handle automounter properly. + +------------------------------------------------------------------------ + +libgphoto2_port 0.7.2 + +Build: + * Put auto* files into auto-aux/ and auto-m4/. + * Introduce libgphoto2_port-uninstalled.pc pkgconfig file (#1643245). + +USB: + * Reported wMaxPacketsize of the IN endpoint to the camlib + via GPPortSettings. + +------------------------------------------------------------------------ + +libgphoto2_port 0.7.1 + +Build: + * Fix usb, disk and ptpip iolibs to not pick up old gphoto2 headers. + +------------------------------------------------------------------------ + +libgphoto2_port 0.7.0 + + * Added a few internal functions. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/configure.ac b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/configure.ac new file mode 100644 index 00000000..6af8bd91 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/configure.ac @@ -0,0 +1,545 @@ +dnl Process this file with autoreconf to produce a configure script. +AC_PREREQ(2.59) +AC_INIT([libgphoto2 port access library], [0.12.0], [gphoto-devel@lists.sourceforge.net], [libgphoto2_port]) +AC_CONFIG_SRCDIR([libgphoto2_port/gphoto2-port-version.c]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([auto-m4]) +AC_CONFIG_AUX_DIR([auto-aux]) +dnl Working around bug in automake <= 1.9.6: +dnl - Please do not add filename-length-max=99 here. +dnl - Otherwise "make distdir" will fail in libgphoto2 +dnl The generated Makefile rule fails to remove the absolute part at +dnl the beginning of the /path/to/buildroot/PACKAGE-VERSION/foo/bar +dnl before determining the string length. However, the only relevant +dnl string to determine the length of would be PACKAGE-VERSION/foo/bar +AM_INIT_AUTOMAKE([-Wall gnu 1.9 dist-bzip2 check-news subdir-objects]) + +AC_LANG(C) + +# Use the silent-rules feature when possible. +m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])]) +AM_SILENT_RULES([no]) + +dnl --------------------------------------------------------------------------- +dnl Advanced information about versioning: +dnl * "Writing shared libraries" by Mike Hearn +dnl http://navi.cx/~mike/writing-shared-libraries.html +dnl * libtool.info chapter "Versioning" +dnl * libtool.info chapter "Updating library version information" +dnl --------------------------------------------------------------------------- +dnl Versioning: +dnl - AGE (Micro): Increment if any interfaces have been added; set to 0 +dnl if any interfaces have been removed. Removal has +dnl precedence over adding, so set to 0 if both happened. +dnl It denotes upward compatibility. +dnl - REVISION (Minor): Increment any time the source changes; set to +dnl 0 if you incremented CURRENT. +dnl - CURRENT (Major): Increment if the interface has changes. AGE is always +dnl *changed* at the same time. +dnl +dnl To summarize. Any interface *change* increment CURRENT. If that interface +dnl change does not break upward compatibility (ie it is an addition), +dnl increment AGE, Otherwise AGE is reset to 0. If CURRENT has changed, +dnl REVISION is set to 0, otherwise REVISION is incremented. +dnl --------------------------------------------------------------------------- +dnl A:R:C=6:1:6 libgphoto2_port-0.6.1 libgphoto2-2.2.1 +dnl A:R:C=7:0:7 libgphoto2_port-0.7.0 libgphoto2-2.3 +dnl A:R:C=7:1:7 libgphoto2_port-0.7.1 libgphoto2-2.3.x +dnl A:R:C=8:0:8 libgphoto2_port-0.8.0 libgphoto2-2.4.x +dnl A:R:C=9:1:9 libgphoto2_port-0.10.0 libgphoto2-2.5.x +AC_SUBST([LIBGPHOTO2_PORT_AGE], [0]) +AC_SUBST([LIBGPHOTO2_PORT_REVISION], [0]) +AC_SUBST([LIBGPHOTO2_PORT_CURRENT], [12]) +AC_SUBST([LIBGPHOTO2_PORT_CURRENT_MIN], + [`expr $LIBGPHOTO2_PORT_CURRENT - $LIBGPHOTO2_PORT_AGE`]) +AC_SUBST([LIBGPHOTO2_PORT_VERSION_INFO], + [$LIBGPHOTO2_PORT_CURRENT:$LIBGPHOTO2_PORT_REVISION:$LIBGPHOTO2_PORT_AGE]) + + +dnl --------------------------------------------------------------------------- +dnl Checks for programs. +dnl --------------------------------------------------------------------------- +AC_PROG_CC +AC_PROG_CPP +AC_PROG_INSTALL +AM_PROG_CC_C_O +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + + +dnl Something with the sequences is not quite alright yet. +dnl SED is supposed to be set in AC_LIBTOOL_SETUP, but the +dnl sequence seems to get mixed up. +SED=${SED-sed} + +dnl check for/set up libtool and libltdl +dnl AC_DISABLE_STATIC +dnl AC_DISABLE_SHARED +dnl AC_LIBLTDL_CONVENIENCE([libltdl]) +dnl AC_WITH_LTDL +dnl AC_LIB_LTDL +dnl Disable building static library, as no one uses it anyway. +AC_DISABLE_STATIC +AC_LIBTOOL_WIN32_DLL +AC_LIBTOOL_DLOPEN +AC_PROG_LIBTOOL + +dnl We are using our own libltdl checks instead of AC_WITH_LTDL +dnl because we do not want to ship our own copy of libltdl any more. +dnl Not shipping libltdl makes it possible to ditch our own autogen.sh +dnl and relying on standard autoconf's "autoreconf". +GP_LIB_LTDL + + +# report on compiler/libtool setup +GP_CONFIG_MSG([Build]) +GP_CONFIG_MSG([Source directory],[${srcdir}]) +GP_CONFIG_MSG([Compiler],[${CC}]) +GP_CONFIG_MSG([libltdl includes],[$LTDLINCL]) +GP_CONFIG_MSG([libltdl library],[$LIBLTDL]) + +AC_DEFINE_UNQUOTED(HAVE_CC,"$CC",[The C compiler we're using]) + +AM_CPPFLAGS="" + +# ---------------------------------------------------------------------- +# References to external resources (web sites, mailing listes, etc.) +# ---------------------------------------------------------------------- + +GP_REFERENCES()dnl + + +dnl --------------------------------------------------------------------------- +dnl i18n support +dnl --------------------------------------------------------------------------- + +dnl The following is a hack to get gphoto2 to build on gettext-0.10.35 +dnl systems - BUILD_INCLUDED_LIBINTL is set only in gettext-0.10.37 which is +dnl the gettext version provided with gphoto2. +dnl BUILD_INCLUDED_LIBINTL=no +dnl AC_SUBST(BUILD_INCLUDED_LIBINTL) +dnl USE_INCLUDED_LIBINTL=no +dnl AC_SUBST(USE_INCLUDED_LIBINTL) + +GP_GETTEXT_HACK([${PACKAGE}-${LIBGPHOTO2_PORT_CURRENT_MIN}],[Lutz Mueller and others],[${MAIL_GPHOTO_TRANSLATION}]) +ALL_LINGUAS="cs da de es eu fi fr it ja nl pl pt_BR ru sk sr sv uk vi zh_CN zh_TW" +AM_GNU_GETTEXT_VERSION([0.14.1]) +AM_GNU_GETTEXT([external]) +AM_PO_SUBDIRS() +AM_ICONV() +GP_GETTEXT_FLAGS() + +AC_SUBST([localedir],["\$(datadir)/locale"]) +AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\"" + +AC_CHECK_FUNC(gettext, gettext_without_libintl=true) +# same trick as with libdl in libgphoto2: +# if gettext() doesn't require linking against libintl, +# we don't have to check for gettext in libintl. Otherwise +# we may even require libintl. +dnl AC_CHECK_LIB(intl, gettext, [LIBS="$LIBS -lintl"]) +if test "$gettext_without_libintl" != "true" -a "$USE_NLS" = "yes"; then + AC_CHECK_LIB(intl, gettext, [INTLLIBS="$INTLLIBS -lintl"]) +fi + + +dnl --------------------------------------------------------------------------- +dnl Checks for header files. +dnl --------------------------------------------------------------------------- +AC_HEADER_DIRENT +AC_HEADER_STDC + +AC_C_INLINE([]) +AC_C_CONST([]) + +AC_CHECK_HEADERS(stdlib.h unistd.h stdio.h fcntl.h errno.h sys/time.h \ + sys/param.h sys/select.h termios.h sgetty.h ttold.h ioctl-types.h \ + fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h unistd.h \ + endian.h byteswap.h asm/io.h mntent.h sys/mntent.h sys/mnttab.h \ + scsi/sg.h limits.h sys/file.h) + +dnl FIXME: Provide regex.h with the corresponding object code for +dnl platforms which do not have it, e.g. Windows. +AC_CHECK_HEADER([regex.h], + [AC_DEFINE([HAVE_REGEX],1,[whether we have regex.h])],[]) +AC_CHECK_LIB([regex],[regexec]) + +AC_MSG_CHECKING([for asm .symver support]) +AC_COMPILE_IFELSE([dnl + AC_LANG_PROGRAM([[]],[[ + int f1() { } + int f2() { } + asm(".symver f1, f@VER1"); + asm(".symver f2, f@@VER2"); + int main(int argc, char **argv) { } + ]])dnl +],[ + AC_DEFINE([HAVE_ASM_SYMVERS],1,[Define if there is asm .symver support.]) + VERSIONMAPLDFLAGS="-Wl,--version-script=\$(srcdir)/libgphoto2_port.ver" + AC_MSG_RESULT(yes) +],[ + VERSIONMAPLDFLAGS="" + AC_MSG_RESULT(no) +]) +AC_SUBST(VERSIONMAPLDFLAGS) + +dnl Check for mnt_mountp in struct mnttab +AC_MSG_CHECKING([for mnt_mountp in struct mnttab]) +AC_COMPILE_IFELSE([dnl +AC_LANG_PROGRAM([[ +#if defined(HAVE_SYS_MNTENT_H) && defined(HAVE_SYS_MNTTAB_H) +# include +# include +#endif +]], [[ +struct mnttab mt; +mt.mnt_mountp; +]])dnl +],[ +AC_DEFINE(HAVE_MNTTAB,1,whether struct mnttag has mnt_mountp field) +AC_MSG_RESULT(yes) +],[ +AC_MSG_RESULT(no) +]) + + + +dnl Checks for library functions. +AC_CHECK_FUNCS(setmntent endmntent strerror snprintf vsnprintf flock) + +dnl Check if TIOCM_RTS is included in one of several possible files +AC_TRY_COMPILE([#include ], [int foo = TIOCM_RTS;], + AC_DEFINE(HAVE_RTS_IOCTL,1,[Define if you have TIOCM_RTS.])) +AC_TRY_COMPILE([#include ], [int foo = TIOCM_RTS;], + AC_DEFINE(HAVE_RTS_IOCTL,1,[Define if you have TIOCM_RTS.])) +AC_TRY_COMPILE([#include ], [int foo = TIOCM_RTS;], + AC_DEFINE(HAVE_RTS_IOCTL,1,[Define if you have TIOCM_TRS.])) +AC_TRY_COMPILE([#include ], [int foo = TIOCM_RTS;], + AC_DEFINE(HAVE_RTS_IOCTL,1,[Define if you have TIOCM_TRS.])) + +# Check for va_copy() +GP_VA_COPY + +dnl --------------------------------------------------------------------------- +dnl libexif: The virtual usb camera driver can use libexif for extracting thumbnails +dnl out of EXIF data. Similarly, it can extract the mtime of +dnl a file. +dnl libexif is available from +dnl http://www.sourceforge.net/projects/libexif +dnl --------------------------------------------------------------------------- +GP_CHECK_LIBRARY([LIBEXIF],[libexif],[>= 0.6.13], + [libexif/exif-data.h],[exif_data_new],[ +AC_MSG_CHECKING([whether we use a version of libexif with ExifData.ifd[[]]]) +# Check for libexif version +dnl FIXME: Use AC_CHECK_MEMBER? +CPPFLAGS_save="$CPPFLAGS" +CPPFLAGS="$LIBEXIF_CFLAGS" +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ +/* CC=$CC */ +/* CPPFLAGS=${CPPFLAGS} */ +/* LDFLAGS=${LDFLAGS} */ +#include +#include +]],[[ + ExifData ed; + ExifContent *ec0, *ec1; + ec0 = &ed.ifd[0]; + ec1 = &ed.ifd[1]; +]])], [ + AC_DEFINE([HAVE_LIBEXIF_IFD],1, + [whether we use a version of libexif with ExifData.ifd[[]]]) + AC_MSG_RESULT([yes]) +], [ + AC_MSG_RESULT([no]) +]) +CPPFLAGS="$CPPFLAGS_save" +],[],[default-on],[http://www.sourceforge.net/projects/libexif])dnl + + + +dnl --------------------------------------------------------------------------- +dnl serial +dnl --------------------------------------------------------------------------- +serial_msg=yes +have_serial=true +try_ttylock=true +try_lockdev=true +try_resmgr=true + +if test "$ac_cv_header_sgtty_h" = "no" +then + have_serial=false + serial_msg=no +fi + +AC_ARG_ENABLE([serial], + [AS_HELP_STRING([--disable-serial], + [do not compile in SERIAL support])], +[ + if test x$enableval = xno; then + have_serial=false + serial_msg=no + try_ttylock=false + try_lockdev=false + try_resmgr=false + fi +]) +if $have_serial; then + IOLIB_LIST="$IOLIB_LIST serial" + AC_DEFINE([HAVE_SERIAL],1,[Whether you have serial support enabled]) +fi +GP_CONFIG_MSG([Serial ports]) +GP_CONFIG_MSG([Serial support],[$serial_msg]) + +SERIAL_LIBS="" +if $have_serial; then + +dnl ----------------------------------------- +dnl Serial port locking: We try to use either +dnl (1) ttylock.h +dnl (2) lockdev.h +dnl ----------------------------------------- +AC_DEFUN([GP_SERLOCK],[dnl +# $0([$1]) +AC_ARG_ENABLE([$1], +[AS_HELP_STRING([--disable-][$1], + [do not use ][$1][ library]) +],[ + if test x$enableval = xno; then + try_[$1]=false + fi +]) +])dnl +GP_SERLOCK([ttylock])dnl +GP_SERLOCK([lockdev])dnl + +ttylock_msg=no +if $try_ttylock; then + AC_CHECK_HEADER([lockdev.h]) + AC_CHECK_HEADER([ttylock.h],[ + lockdev_result="no" + AC_TRY_LINK([#include ],[ttylocked ("/dev/foo");],[ + lockdev_result="no" + AC_DEFINE(HAVE_TTYLOCK,1,[Define if you have ttylock based tty locking.]) + ttylock_msg=yes + try_lockdev=false, + save_LIBS="$LIBS" + LIBS="$LIBS -llockdev" + AC_TRY_LINK([#include ],[ttylocked ("/dev/foo");],[ + lockdev_result="yes" + AC_DEFINE(HAVE_TTYLOCK,1,[Define if you have ttylock based tty locking.]) + ttylock_msg=yes + try_lockdev=false + SERIAL_LIBS=-llockdev + ]) + LIBS="$save_LIBS" + ]) + AC_MSG_CHECKING([if ttylock needs lockdev]) + AC_MSG_RESULT([${lockdev_result}]) + ],[],[#ifdef HAVE_LOCKDEV_H +# include +#endif + ]) +fi +GP_CONFIG_MSG([ttylock locking],[${ttylock_msg}]) + +lockdev_msg=no +if $try_lockdev; then + AC_CHECK_LIB(lockdev, dev_lock,[ + AC_CHECK_HEADER(lockdev.h,[ + AC_DEFINE(HAVE_LOCKDEV,1,[Define if you have dev_lock/lockdev based locking.]) + lockdev_msg=yes + SERIAL_LIBS=-llockdev + ]) + ]) +fi +GP_CONFIG_MSG([lockdev locking],[${lockdev_msg}]) + +fi # have_serial + +AC_SUBST([SERIAL_LIBS]) + + +dnl --------------------------------------------------------------------------- +dnl libusb +dnl --------------------------------------------------------------------------- + +dnl libpthread is dynamically linked by libusb, which is dynamically loaded +dnl but newer Linux systems need it on startup, not later. So link libgphoto2_port +dnl against libpthread +AC_CHECK_LIB(pthread, pthread_create) + +dnl --------------------------------------------------------------------------- +dnl libusb1 +dnl --------------------------------------------------------------------------- +GP_CONFIG_MSG([USB ports]) +GP_CHECK_LIBRARY([LIBUSB1],[libusb-1.0],[>= 1.0.0], + [libusb.h],[libusb_init],[ + case "$host" in + *-*-mingw* | *-*-cygwin* | *-*-msvc* ) + IOLIB_LIST="$IOLIB_LIST usb1" + ;; + *) + IOLIB_LIST="$IOLIB_LIST usb1 usbdiskdirect usbscsi" + ;; + esac + + # only in libusbx? but not in traditional libusb 1.0 + # note that the library is not always named libusb-1.0.so , e.g. on freebsd it is not. + save_LIBS="$LIBS" + LIBS="$LIBS $LIBUSB1_LIBS" + AC_CHECK_FUNC(libusb_strerror, [ + AC_DEFINE(HAVE_LIBUSB_STRERROR,1,[Define if libusb-1.0 has libusb_strerror]) + ]) + LIBS="$save_LIBS" + +],[], + [default-on], + [http://libusb.sourceforge.net/] +) +# We select the old libusb 0 only if we are not doing libusb1 +GP_CHECK_LIBRARY([LIBUSB],[libusb],[>= 0.1.5], + [usb.h],[usb_open],[ + case "$host" in + *-*-mingw* | *-*-cygwin* | *-*-msvc* ) + dnl Windows itself has usb.h we mis-detect, in that case remove access to the other usb.h + IOLIB_LIST="$IOLIB_LIST usb" + ;; + *) + if test "x$have_LIBUSB1" != xyes; then + IOLIB_LIST="$IOLIB_LIST usb usbdiskdirect usbscsi" + else + GP_CONFIG_MSG([libusb0 support],[detected, but disabled (libusb1 support is enabled)]) + fi + ;; + esac +],[], + [default-on], + [http://libusb.sourceforge.net/] +) +dnl depends on libusb's availability +GP_UDEV([test "x$have_LIBUSB" = xyes -o "x$have_LIBUSB1" = xyes]) + + +AC_ARG_ENABLE([disk], + AS_HELP_STRING([--disable-disk], [disable the 'disk' port driver]), + ,enable_disk=yes) + +dnl disk port also works everywhere, but it's not really necessary +if test "x$enable_disk" = "xyes"; then + IOLIB_LIST="$IOLIB_LIST disk" +fi + +AC_ARG_ENABLE([vusb], + AS_HELP_STRING([--enable-vusb], [enable the 'vusb' virtual USB port driver]), + ,[ + enable_vusb=no + GP_CONFIG_MSG([virtual USB support],[disabled, no virtual PTP test camera]) + ] +) + +dnl disk port also works everywhere, but it's not really necessary +if test "x$enable_vusb" = "xyes"; then + IOLIB_LIST="$IOLIB_LIST vusb" +fi + +AC_ARG_ENABLE([ptpip], + AS_HELP_STRING([--disable-ptpip], [disable the 'ptpip' port driver for TCP/IP connected PTP cameras]), + ,enable_ptpip=yes) +dnl ptpip - works 'everywhere' with TCP/IP stack. +if test "x$enable_ptpip" = "xyes"; then + IOLIB_LIST="$IOLIB_LIST ptpip" +fi + +# ---------------------------------------------------------------------- +# Define IOLIB stuff +# ---------------------------------------------------------------------- + +AC_SUBST(IOLIB_LIST) +for x in ${IOLIB_LIST}; do + IOLIB_LTLIST="${IOLIB_LTLIST} ${x}.la" +done +AC_SUBST(IOLIB_LTLIST) +AC_SUBST([iolibdir],["\$(libdir)/\$(PACKAGE_TARNAME)/\$(VERSION)"]) +AM_CPPFLAGS="$AM_CPPFLAGS -DIOLIBS=\\\"${iolibdir}\\\"" + +sorted_iolib_list="$(echo "${IOLIB_LIST}" | tr ' ' '\n' | sort | ${SED} '/^$/d' | tr '\n' ' ' | ${SED} 's/ $//')" +AC_DEFINE_UNQUOTED([IOLIB_LIST], ["${sorted_iolib_list}"], [Define as string containing a list of the iolibs]) +GP_CONFIG_MSG([General]) +GP_CONFIG_MSG([IOLIBs], [${sorted_iolib_list}]) + + +dnl -------------------------------------------------------------------- +dnl guess directory to install *.pc into +dnl -------------------------------------------------------------------- +pkgconfigdir='${libdir}/pkgconfig' +AC_SUBST([pkgconfigdir]) + + +dnl ---------------------------------------------------------------------- +dnl GNU regex? +dnl ---------------------------------------------------------------------- +AC_CHECK_FUNC(re_compile_pattern, + AC_DEFINE(HAVE_GNU_REGEX,1,[Define if you have GNU regex.]) +) + + +dnl ---------------------------------------------------------------------- +dnl disable debugging if requested +dnl ---------------------------------------------------------------------- +AC_ARG_ENABLE([debug], + AS_HELP_STRING([--disable-debug],[do not include debugging code]), +[ + if test "$enableval" = "no"; then + AC_DEFINE(DISABLE_DEBUGGING,1,[Define if you want to disabled debugging.]) + fi +]) + + +# ---------------------------------------------------------------------- +# gtk-doc? +# ---------------------------------------------------------------------- +GP_CONFIG_MSG([Documentation]) +GP_CHECK_DOC_DIR()dnl +GP_BUILD_GTK_DOCS()dnl + + +dnl --------------------------------------------------------------------------- +dnl Turn on all warnings when using gcc +dnl --------------------------------------------------------------------------- +if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -Wall" + CFLAGS="$CFLAGS -Wmissing-declarations -Wmissing-prototypes" +fi + +# Activate internal code +AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_INTERNAL_CODE" + +# CPPFLAGS: C PreProcessor flags +AC_SUBST([AM_CPPFLAGS]) +# CFLAGS: C compiler flags +AC_SUBST([AM_CFLAGS]) +# CXXFLAGS: C++ compiler flags +AC_SUBST([AM_CXXFLAGS]) +# LDFLAGS: Linker flags +AC_SUBST([AM_LDFLAGS]) + + +# --------------------------------------------------------------------------- +# Create output files +# --------------------------------------------------------------------------- +AC_CONFIG_FILES([ +Makefile +po/Makefile.in +libgphoto2_port/Makefile +libgphoto2_port.pc +libgphoto2_port-uninstalled.pc +gphoto2-port-config +test/Makefile +doc/Makefile +gphoto-m4/Makefile +]) +AC_OUTPUT + +GP_CONFIG_OUTPUT + +# End of file. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/disk/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/disk/ChangeLog new file mode 100644 index 00000000..43941877 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/disk/ChangeLog @@ -0,0 +1,9 @@ +2006-09-19 Hubert Figuiere + + * disk.c (gp_port_library_list): ignore FUSE filesystem + entries. + +2005-06-15 Hubert Figuiere + + * disk.c (gp_port_library_list): unref the dbus connection + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/disk/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/disk/Makefile-files new file mode 100644 index 00000000..4625ee1e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/disk/Makefile-files @@ -0,0 +1,14 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += disk.la + +disk_la_LDFLAGS = $(iolib_ldflags) +disk_la_CPPFLAGS = \ + $(AM_CPPFLAGS) \ + $(INTL_CFLAGS) \ + $(LIBUSB_CFLAGS) \ + $(CPPFLAGS) +disk_la_DEPENDENCIES = $(iolib_dependencies) +disk_la_LIBADD = $(iolib_libadd) +disk_la_LIBADD += $(INTLLIBS) +disk_la_SOURCES = disk/disk.c diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/disk/disk.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/disk/disk.c new file mode 100644 index 00000000..a35c66f3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/disk/disk.c @@ -0,0 +1,368 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* gphoto2-port-usb.c + * + * Copyright (c) 2001 Lutz Mueller + * Copyright (c) 1999-2000 Johannes Erdfelt + * Copyright (c) 2005, 2007 Hubert Figuiere + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include + +#include +#include +#include +#include +#include +#ifdef HAVE_MNTENT_H +# include +#endif +#ifdef HAVE_SYS_MNTENT_H +# include +#endif +#ifdef HAVE_SYS_MNTTAB_H +# include +#endif + +/* on Solaris */ +#ifndef HAVE_SETMNTENT +#define setmntent(f,m) fopen(f,m) +#endif +#ifndef HAVE_ENDMNTENT +#define endmntent(f) fclose(f) +#endif + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +struct _GPPortPrivateLibrary { + char *mount_point; +}; + +GPPortType +gp_port_library_type (void) +{ + return GP_PORT_DISK; +} + +int +gp_port_library_list (GPPortInfoList *list) +{ + GPPortInfo info; +# ifdef HAVE_MNTENT_H + FILE *mnt; + struct mntent *mntent; + char path[1024]; + char *s; + struct stat stbuf; + + mnt = setmntent ("/etc/fstab", "r"); + if (mnt) { + while ((mntent = getmntent (mnt))) { + /* detect floppies so we don't access them with the stat() below */ + GP_LOG_D ("found fstab fsname %s", mntent->mnt_fsname); + + if ((NULL != strstr(mntent->mnt_fsname,"fd")) || + (NULL != strstr(mntent->mnt_fsname,"floppy")) || + (NULL != strstr(mntent->mnt_fsname,"fuse")) || + (NULL != strstr(mntent->mnt_fsname,"nfs")) || + (NULL != strstr(mntent->mnt_fsname,"cifs")) || + (NULL != strstr(mntent->mnt_fsname,"smbfs"))|| + (NULL != strstr(mntent->mnt_fsname,"afs")) || + (NULL != strstr(mntent->mnt_fsname,"davfs"))|| + (NULL != strstr(mntent->mnt_fsname,"autofs"))|| + (NULL != strstr(mntent->mnt_fsname,"cgroup"))|| + (NULL != strstr(mntent->mnt_fsname,"systemd"))|| + (NULL != strstr(mntent->mnt_fsname,"mqueue"))|| + (NULL != strstr(mntent->mnt_fsname,"securityfs"))|| + (NULL != strstr(mntent->mnt_fsname,"proc"))|| + (NULL != strstr(mntent->mnt_fsname,"devtmpfs"))|| + (NULL != strstr(mntent->mnt_fsname,"devpts"))|| + (NULL != strstr(mntent->mnt_fsname,"sysfs"))|| + (NULL != strstr(mntent->mnt_fsname,"gphotofs"))|| + /* fstype based */ + (NULL != strstr(mntent->mnt_type,"autofs")) || + (NULL != strstr(mntent->mnt_type,"davfs")) || + (NULL != strstr(mntent->mnt_type,"nfs")) || + (NULL != strstr(mntent->mnt_type,"smbfs"))|| + (NULL != strstr(mntent->mnt_type,"proc"))|| + (NULL != strstr(mntent->mnt_type,"sysfs"))|| + (NULL != strstr(mntent->mnt_type,"cifs"))|| + (NULL != strstr(mntent->mnt_type,"afs")) || + /* mount options */ + /* x-systemd.automount or similar */ + (NULL != strstr(mntent->mnt_opts,"automount")) + ) { + continue; + } + + /* Whitelist some fuse based filesystems, e.g. to help exfat mounts */ + /* In general, if we are backed by a device, it is probably good(tm) */ + if (NULL != strstr(mntent->mnt_type,"fuse")) { + if (!strstr(mntent->mnt_fsname,"/dev/")) + continue; + } + + snprintf (path, sizeof(path), "%s/DCIM", mntent->mnt_dir); + if (-1 == stat(path, &stbuf)) { + snprintf (path, sizeof(path), "%s/dcim", mntent->mnt_dir); + if (-1 == stat(path, &stbuf)) + continue; + } + s = malloc (strlen(_("Media '%s'"))+strlen(mntent->mnt_fsname)+1); + sprintf (s, _("Media '%s'"), mntent->mnt_fsname); + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_DISK); + gp_port_info_set_name (info, s); + free (s); + + s = malloc (strlen("disk:")+strlen(mntent->mnt_dir)+1); + sprintf (s, "disk:%s", mntent->mnt_dir); + gp_port_info_set_path (info, s); + if (gp_port_info_list_lookup_path (list, s) >= GP_OK) { + free (s); + continue; + } + free(s); + CHECK (gp_port_info_list_append (list, info)); + } + endmntent(mnt); + } + mnt = setmntent ("/etc/mtab", "r"); + if (mnt) { + while ((mntent = getmntent (mnt))) { + /* detect floppies so we don't access them with the stat() below */ + GP_LOG_D ("found mtab fsname %s", mntent->mnt_fsname); + + if ((NULL != strstr(mntent->mnt_fsname,"fd")) || + (NULL != strstr(mntent->mnt_fsname,"floppy")) || + (NULL != strstr(mntent->mnt_fsname,"fuse")) || + (NULL != strstr(mntent->mnt_fsname,"nfs")) || + (NULL != strstr(mntent->mnt_fsname,"cifs")) || + (NULL != strstr(mntent->mnt_fsname,"smbfs"))|| + (NULL != strstr(mntent->mnt_fsname,"afs")) || + (NULL != strstr(mntent->mnt_fsname,"autofs"))|| + (NULL != strstr(mntent->mnt_fsname,"davfs"))|| + (NULL != strstr(mntent->mnt_fsname,"cgroup"))|| + (NULL != strstr(mntent->mnt_fsname,"systemd"))|| + (NULL != strstr(mntent->mnt_fsname,"mqueue"))|| + (NULL != strstr(mntent->mnt_fsname,"securityfs"))|| + (NULL != strstr(mntent->mnt_fsname,"proc"))|| + (NULL != strstr(mntent->mnt_fsname,"devtmpfs"))|| + (NULL != strstr(mntent->mnt_fsname,"devpts"))|| + (NULL != strstr(mntent->mnt_fsname,"sysfs"))|| + (NULL != strstr(mntent->mnt_fsname,"gphotofs"))|| + /* fstype based */ + (NULL != strstr(mntent->mnt_type,"autofs")) || + (NULL != strstr(mntent->mnt_type,"davfs")) || + (NULL != strstr(mntent->mnt_type,"nfs")) || + (NULL != strstr(mntent->mnt_type,"smbfs"))|| + (NULL != strstr(mntent->mnt_type,"proc"))|| + (NULL != strstr(mntent->mnt_type,"sysfs"))|| + (NULL != strstr(mntent->mnt_type,"cifs"))|| + (NULL != strstr(mntent->mnt_type,"afs")) || + /* options */ + (NULL != strstr(mntent->mnt_opts,"automount")) + ) { + continue; + } + /* Whitelist some fuse based filesystems, e.g. to help exfat mounts */ + /* In general, if we are backed by a device, it is probably good(tm) */ + if (NULL != strstr(mntent->mnt_type,"fuse")) { + if (!strstr(mntent->mnt_fsname,"/dev/")) + continue; + } + + snprintf (path, sizeof(path), "%s/DCIM", mntent->mnt_dir); + if (-1 == stat(path, &stbuf)) { + snprintf (path, sizeof(path), "%s/dcim", mntent->mnt_dir); + if (-1 == stat(path, &stbuf)) + continue; + } + /* automount should be blacklist here, but we still need + * to look it up first otherwise the automounted camera + * won't appear. + */ + if (NULL != strstr(mntent->mnt_fsname, "automount")) { + continue; + } + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_DISK); + s = malloc (strlen(_("Media '%s'"))+strlen(mntent->mnt_fsname)+1); + sprintf (s, _("Media '%s'"), mntent->mnt_fsname); + gp_port_info_set_name (info, s); + free (s); + + s = malloc (strlen("disk:")+strlen(mntent->mnt_dir)+1); + sprintf (s, "disk:%s", mntent->mnt_dir); + gp_port_info_set_path (info, s); + if (gp_port_info_list_lookup_path (list, s) >= GP_OK) { + free (s); + continue; + } + free (s); + CHECK (gp_port_info_list_append (list, info)); + } + endmntent(mnt); + } +# else +# ifdef HAVE_MNTTAB + FILE *mnt; + struct mnttab mnttab; + char path[1024]; + struct stat stbuf; + + info.type = GP_PORT_DISK; + + mnt = fopen ("/etc/fstab", "r"); + if (mnt) { + while (! getmntent (mnt, &mntent)) { + /* detect floppies so we don't access them with the stat() below */ + if ( (NULL != strstr(mnttab.mnt_special,"fd")) || + (NULL != strstr(mnttab.mnt_special,"floppy")) + ) + continue; + + snprintf (path, sizeof(path), "%s/DCIM", mnttab.mnt_mountp); + if (-1 == stat(path, &stbuf)) { + snprintf (path, sizeof(path), "%s/dcim", mnttab.mnt_mountp); + if (-1 == stat(path, &stbuf)) + continue; + } + snprintf (info.name, sizeof(info.name), _("Media '%s'"), mntent.mnt_special), + snprintf (info.path, sizeof(info.path), "disk:%s", mntent.mnt_mountp); + if (gp_port_info_list_lookup_path (list, info.path) >= GP_OK) + continue; + CHECK (gp_port_info_list_append (list, info)); + } + fclose(mnt); + } + mnt = fopen ("/etc/mtab", "r"); + if (mnt) { + while (! getmntent (mnt, &mntent)) { + /* detect floppies so we don't access them with the stat() below */ + if ( (NULL != strstr(mnttab.mnt_special,"fd")) || + (NULL != strstr(mnttab.mnt_special,"floppy")) + ) + continue; + + snprintf (path, sizeof(path), "%s/DCIM", mnttab.mnt_mountp); + if (-1 == stat(path, &stbuf)) { + snprintf (path, sizeof(path), "%s/dcim", mnttab.mnt_mountp); + if (-1 == stat(path, &stbuf)) + continue; + } + snprintf (info.name, sizeof(info.name), _("Media '%s'"), mntent.mnt_special), + snprintf (info.path, sizeof(info.path), "disk:%s", mntent.mnt_mountp); + if (gp_port_info_list_lookup_path (list, info.path) >= GP_OK) + continue; + CHECK (gp_port_info_list_append (list, info)); + } + fclose(mnt); + } +# endif +# endif + /* generic disk:/xxx/ matcher */ + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_DISK); + gp_port_info_set_name (info, ""); + gp_port_info_set_path (info, "^disk:"); + gp_port_info_list_append (list, info); /* do not check return */ + return GP_OK; +} + +static int gp_port_disk_init (GPPort *dev) +{ + C_MEM (dev->pl = calloc (1, sizeof (GPPortPrivateLibrary))); + + return GP_OK; +} + +static int +gp_port_disk_exit (GPPort *port) +{ + free (port->pl); + port->pl = NULL; + + return GP_OK; +} + +static int +gp_port_disk_open (GPPort *port) +{ + return GP_OK; +} + +static int +gp_port_disk_close (GPPort *port) +{ + return GP_OK; +} + +static int +gp_port_disk_write (GPPort *port, const char *bytes, int size) +{ + return GP_OK; +} + +static int +gp_port_disk_read(GPPort *port, char *bytes, int size) +{ + return GP_OK; +} + +GPPortOperations * +gp_port_library_operations (void) +{ + GPPortOperations *ops; + + ops = calloc (1, sizeof (GPPortOperations)); + if (!ops) + return NULL; + + ops->init = gp_port_disk_init; + ops->exit = gp_port_disk_exit; + ops->open = gp_port_disk_open; + ops->close = gp_port_disk_close; + ops->read = gp_port_disk_read; + ops->write = gp_port_disk_write; + + return ops; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/DocRules.am b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/DocRules.am new file mode 100644 index 00000000..ea6a432c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/DocRules.am @@ -0,0 +1,60 @@ + +# The top-level SGML file. +DOC_MAIN_SGML_FILE=$(DOC_MODULE)-api.sgml + +EXTRA_DIST = $(DOC_MODULE)-api.sgml $(DOC_MODULE)-sections.txt + +clean-local: + rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt + +maintainer-clean-local: clean + rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt + +if ENABLE_GTK_DOC + +TARGET_DIR=$(apidocdir)/$(DOC_MODULE) + +all-local: templates sgml html + +scan: + cd $(srcdir) && gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) + +templates: scan + cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) + +sgml: templates + cd $(srcdir) && gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) + +html: sgml + if ! test -d html ; then mkdir html ; fi + cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(srcdir)/$(DOC_MAIN_SGML_FILE) + +install-data-local: + $(INSTALL) -d -m 0755 $(DESTDIR)$(TARGET_DIR) + $(INSTALL_DATA) ./html/*.html $(DESTDIR)$(TARGET_DIR) + $(INSTALL_DATA) ./html/index.sgml $(DESTDIR)$(TARGET_DIR) + gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(DESTDIR)$(apidocdir) + +dist-hook: + (cd $(srcdir) ; tar cvf - html) | (cd $(distdir); tar xf -) + +.PHONY : html sgml templates scan + +else + +all-local: + @echo "Dummy target $@." + +dist-hook: + @echo "Dummy target $@." + @echo "Re-run configure with adequate parameters and run make again to build docs." + +install-data-local: + @echo "Dummy target $@" + @echo "Re-run configure with adequate parameters and run make again to build docs." + +endif + +# Local Variables: +# mode: makefile +# End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/Makefile.am new file mode 100644 index 00000000..c7c82734 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/Makefile.am @@ -0,0 +1,13 @@ +## Process this file with automake to produce Makefile.in + +# The name of the module. +DOC_MODULE=gphoto2-port + + +# The directory containing the source code (if it contains documentation). +DOC_SOURCE_DIR=../libgphoto2_port + +# include common doc generation rules +include DocRules.am + +EXTRA_DIST += DocRules.am diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/gphoto2-port-api.sgml b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/gphoto2-port-api.sgml new file mode 100644 index 00000000..3f524a9c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/gphoto2-port-api.sgml @@ -0,0 +1,97 @@ + + + + + + +]> + + + + GPhoto2-Port API Reference Manual + + + + Lutz + Müller + +
+ lutz@users.sf.net +
+
+
+
+ + + 2000 + The Free Software Foundation + + + + + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free + Documentation License, Version 1.1 or any later + version published by the Free Software Foundation with no + Invariant Sections, no Front-Cover Texts, and no Back-Cover + Texts. You may obtain a copy of the GNU Free + Documentation License from the Free Software + Foundation by visiting their Web site or by writing + to: + +
+ The Free Software Foundation, Inc., + 59 Temple Place - Suite 330, + Boston, MA 02111-1307, + USA +
+
+
+ + + + This manual documents the GPhoto2-Port library. + It gives an overview of GPhoto2-Port, discusses examples that + come with GPhoto2-Port and includes detailed documentation of + the GPhoto2-Port API. + + +
+ + + GPhoto2-Port Overview + + + GPhoto2-Port is the GPhoto2 I/O library. + + + + The benefit to using this library would be that all communications can be + done quickly and without worry for device specific functions; all devices + are abstracted to a point, allowing you to read/write to a device using + the same interface. For example, you can set all the options on the + serial port easily, and then read/write to that device. Additionally, + you could easily switch over to a USB device, and read/write without + having to learn the USB internals. + + + + The whole idea behind this is simplicity. It should be easy to write a + program that uses any sort of serial-based device. This will take the + hassle out of playing with low-level configurations and actually just + get on to writing the core of the application. + + + + + + GPhoto2-Port Core Reference + &gphoto2-port-log; + &gphoto2-port-result; + &gphoto2-port-info-list; + &gphoto2-port; + &gphoto2-port-library; + +
diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/gphoto2-port-sections.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/gphoto2-port-sections.txt new file mode 100644 index 00000000..8e535e72 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/doc/gphoto2-port-sections.txt @@ -0,0 +1,171 @@ +
+gphoto2-port +GPhoto2-Port +GPPortPrivateLibrary +GPPortPrivateCore +GPPortSettingsSerial +GPPortSettingsUSB +GPPortSettings +GPPort + +gp_port_new +gp_port_free + +gp_port_set_info +gp_port_get_info + +gp_port_open +gp_port_close + +gp_port_read +gp_port_write + +gp_port_get_settings +gp_port_set_settings + +gp_port_get_timeout +gp_port_set_timeout + +gp_port_get_pin +gp_port_set_pin + +gp_port_get_error +gp_port_set_error +
+ +
+gphoto2-port-info-list +GPhoto2-Port-Info-List +GPPortType +GPPortInfo +GPPortInfoList + +gp_port_info_list_new +gp_port_info_list_free + +gp_port_info_list_load +gp_port_info_list_count + +gp_port_info_list_get_info + +gp_port_info_list_lookup_path +gp_port_info_list_lookup_name + +gp_port_info_list_append +
+ +
+gphoto2-port-result +GPhoto2-Port-Result +GP_OK +GP_ERROR_NOT_SUPPORTED +GP_ERROR_BAD_PARAMETERS +GP_ERROR_NO_MEMORY +GP_ERROR_TIMEOUT +GP_ERROR_LIBRARY +GP_ERROR_IO +GP_ERROR_IO_CLOSE +GP_ERROR_IO_INIT +GP_ERROR_IO_LOCK +GP_ERROR_IO_OPEN +GP_ERROR_IO_PIN +GP_ERROR_IO_READ +GP_ERROR_IO_SERIAL_BREAK +GP_ERROR_IO_SERIAL_FLUSH +GP_ERROR_IO_SERIAL_SPEED +GP_ERROR_IO_SUPPORTED_SERIAL +GP_ERROR_IO_SUPPORTED_USB +GP_ERROR_IO_TIMEOUT +GP_ERROR_IO_UPDATE +GP_ERROR_IO_USB_CLAIM +GP_ERROR_IO_USB_CLEAR_HALT +GP_ERROR_IO_USB_FIND +GP_ERROR_IO_WRITE +GP_ERROR_UNKNOWN_PORT +gp_port_result_as_string +
+ +
+gphoto2-port-log +GPhoto2-Port-Log +GPLogLevel +GPLogFunc +gp_log_add_func +gp_log_remove_func +gp_log +gp_logv +gp_log_data +GP_LOG +GP_DEBUG +
+ +
+gphoto2-port-usb +GPhoto2-Port-USB</FILE> +gp_port_usb_find_device +gp_port_usb_clear_halt +gp_port_usb_msg_read +gp_port_usb_msg_write +</SECTION> + +<SECTION> +<FILE>gphoto2-port-library</FILE> +<TITLE>GPhoto2-Port-Library +GPPortOperations + +GPPortLibraryType +GPPortLibraryList +GPPortLibraryOperations + +gp_port_library_type +gp_port_library_list +gp_port_library_operations +
+ +
+gphoto2-port-serial +GPhoto2-Port-Serial</FILE> +B0 +B1000000 +B110 +B115200 +B1152000 +B1200 +B134 +B150 +B1500000 +B153600 +B1800 +B19200 +B200 +B2000000 +B230400 +B2400 +B300 +B307200 +B38400 +B460800 +B4800 +B50 +B500000 +B57600 +B576000 +B600 +B614400 +B75 +B76800 +B921600 +B9600 +CBAUD +CBAUDEX +CIBAUD +CLOCAL +CMSPAR +CREAD +CS5 +CS6 +CS7 +CS8 +CSIZE +CSTOPB +</SECTION> diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/Makefile-files new file mode 100644 index 00000000..bc7ce8eb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/Makefile-files @@ -0,0 +1,31 @@ +# -*- Makefile -*- + +EXTRA_DIST += %reldir%/README.md +EXTRA_DIST += %reldir%/gphoto-m4-sync + +EXTRA_DIST += %reldir%/gp-byteorder.m4 +EXTRA_DIST += %reldir%/gp-camlibs.m4 +EXTRA_DIST += %reldir%/gp-check-doxygen.m4 +EXTRA_DIST += %reldir%/gp-check-library.m4 +EXTRA_DIST += %reldir%/gp-check-popt.m4 +EXTRA_DIST += %reldir%/gp-check-shell-environment.m4 +EXTRA_DIST += %reldir%/gp-config-msg.m4 +EXTRA_DIST += %reldir%/gp-documentation.m4 +EXTRA_DIST += %reldir%/gp-dynamic-libraries.m4 +EXTRA_DIST += %reldir%/gp-gettext-hack.m4 +EXTRA_DIST += %reldir%/gp-internal-docs.m4 +EXTRA_DIST += %reldir%/gp-libltdl.m4 +EXTRA_DIST += %reldir%/gp-manual-docbook-xml.m4 +EXTRA_DIST += %reldir%/gp-manual-documentation.m4 +EXTRA_DIST += %reldir%/gp-manual-fig2dev.m4 +EXTRA_DIST += %reldir%/gp-manual-graphviz.m4 +EXTRA_DIST += %reldir%/gp-manual-gtk-doc.m4 +EXTRA_DIST += %reldir%/gp-manual-pstoimg.m4 +EXTRA_DIST += %reldir%/gp-manual-w3m.m4 +EXTRA_DIST += %reldir%/gp-packaging.m4 +EXTRA_DIST += %reldir%/gp-pkg-config.m4 +EXTRA_DIST += %reldir%/gp-references.m4 +EXTRA_DIST += %reldir%/gp-stdint.m4 +EXTRA_DIST += %reldir%/gp-subpackage.m4 +EXTRA_DIST += %reldir%/gp-udev.m4 +EXTRA_DIST += %reldir%/gp-va-copy.m4 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/Makefile.am new file mode 100644 index 00000000..b69097e7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/Makefile.am @@ -0,0 +1,7 @@ +# This is the compatibility Makefile.am - you are probably better off +# just including the Makefile-files directly from your top-level +# Makefile.am. + +EXTRA_DIST = + +include Makefile-files diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/README.md b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/README.md new file mode 100644 index 00000000..b756b23f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/README.md @@ -0,0 +1,140 @@ +gphoto-m4 +========= + +`gphoto-m4` is the gPhoto projects' collection of m4 macros for use +with the autoconf/automake based build systems. + +It has been designed to be used in + + * `gphoto2` + * `libgphoto2` + * `libgphoto2_port` (located in `libgphoto2/`) + * `gtkam` + +Some macros are re-used ones from `libexif`. + +Since the gPhoto project moved from SVN to git, we have not figured +out yet how to properly include the `gphoto-m4` files into the +respective software's `gphoto-m4/` subdirectory (either `git subtree` +or `git submodule` come to mind). + +So for the time being, we manually update and synchronize the files. + + +Use of `gphoto-m4` after the switch to git from SVN +--------------------------------------------------- + +Since the gPhoto project moved from SVN to git, we have not figured +out yet how to properly include the `gphoto-m4` files into the +respective software's `gphoto-m4/` subdirectory. The options are: + + 1. Manually update (and hopefully synchronize) the files. + + Advantages: + + * No special commands needed for users or developers. + + Disadvantages: + + * The manual work for the maintainers is exhausting and error + prone. + + 2. Use `git submodule`. + + Advantages: + + * Defined mechanism for syncing and updating the `gphoto-m4/*` + files. + + Disadvantages: + + * Requires special git commands from everybody (users, + developers, and maintainers) all the time (e.g. `git clone + --recursive` instead of `git clone`). + + This is the showstopper for `git submodule`. + + 3. Use `git subtree`. + + Advantages: + + * Defined mechanism for syncing and updating the `gphoto-m4/*` + files. + + * Requires no special git commands from users or developers. + + * Not even people actually messing with the files in + `gphoto-m4/*` strictly need special commands. + + Only the maintainers who do the syncing and updating of the + `gphoto-m4/*` files need the special commands. + + Disadvantages: + + * Requires special knowledge of special commands instead of + just copying files around. The concept is less complex than + copying files round, but it does require special commands. + + * No rebasing possible across pulls to `gphoto-m4/`. Not really + necessary anyway, though. + + * Pushes of changes to from, say, `gphoto2/gphoto-m4` to + upstream `gphoto-m4` create a lot of commit history noise in + the `gphoto-m4` repository by including the complete history + of the `gphoto2` repository. + + Note this cannot be avoided by using `git subtree split`: + That is executed internally by `git subtree push`. + + So it appears that using `git subtree push` will push all + projects' commit history into the `gphoto-m4` repo. + + That is if not a showstopper, then at least very ugly. + +For the time being, we manually update and synchronize the files. + + +Manually syncing and updating files +----------------------------------- + +This section has not been written yet. + + +Using `git submodule` +--------------------- + +This section has not been written yet. + + +Using `git subtree` +------------------- + + +### Using `gphoto-m4` as git subtree ### + +This section describes how to use `gphoto-m4` when it has been set up +as a `git subtree` (e.g. in `gphoto2` and `libgphoto2`). + +Add a remote for `gphoto-m4`: + + git remote add origin-gphoto-m4 git@github.com:gphoto/gphoto-m4.git + +Pull changes to origin-gphoto-m4 into local `gphoto-m4`: + + git subtree pull --prefix gphoto-m4 origin-gphoto-m4 master --squash + +Now we can push local changes to 'gphoto-m4/*' back to +`origin-gphoto-m4` as follows: + + git subtree push --prefix gphoto-m4 origin-gphoto-m4 master + +FIXME: Add more typical uses cases. + + +### Setting up `gphoto-m4` as git subtree ### + +This section describes how we initially set up `gphoto-m4` as a git +subtree for `gphoto2`. This is only required once by one person, then +never needs to be done by anybody else ever again. + + git subtree add --prefix gphoto-m4 origin-gphoto-m4 master --squash diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-byteorder.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-byteorder.m4 new file mode 100644 index 00000000..cd4ed0d3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-byteorder.m4 @@ -0,0 +1,446 @@ +dnl AC_NEED_BYTEORDER_H ( HEADER-TO-GENERATE ) +dnl Originally written by Dan Fandrich <dan@coneharvesters.com> +dnl My contribution is hereby placed into the public domain. +dnl No warranty is expressed or implied. +dnl +dnl Create a header file that guarantees that byte swapping macros of the +dnl ntohl variety as well as the extended types included in OpenBSD and +dnl NetBSD such as le32toh are defined. If possible, the standard ntohl +dnl are overloaded as they are optimized for the given platform, but when +dnl this is not possible (e.g. on a big-endian machine) they are defined +dnl in this file. + +dnl Look for a symbol in a header file +dnl AC_HAVE_SYMBOL ( IDENTIFIER, HEADER-FILE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND ) +AC_DEFUN([AC_HAVE_SYMBOL], +[ +AC_MSG_CHECKING(for $1 in $2) +AC_EGREP_CPP([symbol is present|\<$1\>],[ +#include <$2> +#ifdef $1 + symbol is present +#endif + ], +[AC_MSG_RESULT(yes) +$3 +], +[AC_MSG_RESULT(no) +$4 +])]) + + +dnl Create a header file that defines extended byte swapping macros +AC_DEFUN([AC_NEED_BYTEORDER_H], +[ +ac_dir=`AS_DIRNAME(["$1"])` +if test "$ac_dir" != "$1" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && AS_MKDIR_P(["$ac_dir"]) +fi + +# We're only interested in the target CPU, but it's not always set +effective_target="$target" +if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then + effective_target="$host" +fi +AC_SUBST(effective_target) + +cat > "$1" << EOF +/* This file is generated automatically by configure */ +/* It is valid only for the system type ${effective_target} */ + +#ifndef __BYTEORDER_H +#define __BYTEORDER_H + +EOF + +dnl First, do an endian check +AC_C_BIGENDIAN + +dnl Look for NetBSD-style extended byte swapping macros +AC_HAVE_SYMBOL(le32toh,machine/endian.h, + [HAVE_LE32TOH=1 + cat >> "$1" << EOF +/* extended byte swapping macros are already available */ +#include <machine/endian.h> + +EOF], + +[ + +dnl Look for standard byte swapping macros +AC_HAVE_SYMBOL(ntohl,arpa/inet.h, + [cat >> "$1" << EOF +/* ntohl and relatives live here */ +#include <arpa/inet.h> +#define __HAVE_NTOHL + +EOF], + + [AC_HAVE_SYMBOL(ntohl,netinet/in.h, + [cat >> "$1" << EOF +/* ntohl and relatives live here */ +#include <netinet/in.h> +#define __HAVE_NTOHL + +EOF],true)]) +]) + +dnl Look for generic byte swapping macros + +dnl OpenBSD +AC_HAVE_SYMBOL(swap32,machine/endian.h, + [cat >> "$1" << EOF +/* swap32 and swap16 are defined in machine/endian.h */ + +EOF], + + [ +dnl Linux GLIBC + AC_HAVE_SYMBOL(bswap_32,byteswap.h, + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +#include <byteswap.h> +#define swap16(x) bswap_16(x) +#define swap32(x) bswap_32(x) +#define swap64(x) bswap_64(x) + +EOF], + + [ +dnl NetBSD + AC_HAVE_SYMBOL(bswap32,machine/endian.h, + dnl We're already including machine/endian.h if this test succeeds + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +EOF + if test "$HAVE_LE32TOH" != "1"; then + echo '#include <machine/endian.h>'>> "$1" + fi +cat >> "$1" << EOF +#define swap16(x) bswap16(x) +#define swap32(x) bswap32(x) +#define swap64(x) bswap64(x) + +EOF], + + [ +dnl FreeBSD + AC_HAVE_SYMBOL(__byte_swap_long,sys/types.h, + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +#include <sys/types.h> +#define swap16(x) __byte_swap_word(x) +#define swap32(x) __byte_swap_long(x) +/* No optimized 64 bit byte swapping macro is available */ +#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ + ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ + ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ + ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\ + ((x) >> 8) & 0x00000000ff000000ULL | \\ + ((x) >> 24) & 0x0000000000ff0000ULL | \\ + ((x) >> 40) & 0x000000000000ff00ULL | \\ + ((x) >> 56) & 0x00000000000000ffULL)) + +EOF], + + [ +dnl OS X + AC_HAVE_SYMBOL(NXSwapLong,machine/byte_order.h, + [cat >> "$1" << EOF +/* Define generic byte swapping functions */ +#include <machine/byte_order.h> +#define swap16(x) NXSwapShort(x) +#define swap32(x) NXSwapLong(x) +#define swap64(x) NXSwapLongLong(x) + +EOF], + [ + if test $ac_cv_c_bigendian = yes; then + cat >> "$1" << EOF +/* No other byte swapping functions are available on this big-endian system */ +#define swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) +#define swap32(x) ((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\ + ((uint32_t)(x) << 8) & 0x00ff0000UL | \\ + ((x) >> 8) & 0x0000ff00UL | \\ + ((x) >> 24) & 0x000000ffUL)) +#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ + ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ + ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ + ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\ + ((x) >> 8) & 0x00000000ff000000ULL | \\ + ((x) >> 24) & 0x0000000000ff0000ULL | \\ + ((x) >> 40) & 0x000000000000ff00ULL | \\ + ((x) >> 56) & 0x00000000000000ffULL)) + +EOF + else + cat >> "$1" << EOF +/* Use these as generic byteswapping macros on this little endian system */ +/* on windows we might not have ntohs / ntohl without including winsock.dll, + * so use generic macros */ +#ifdef __HAVE_NTOHL +# define swap16(x) htons(x) +# define swap32(x) htonl(x) +#else +# define swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) +# define swap32(x) ((uint32_t)((((uint32_t)(x) << 24) & 0xff000000UL) | \\ + (((uint32_t)(x) << 8) & 0x00ff0000UL) | \\ + (((x) >> 8) & 0x0000ff00UL) | \\ + (((x) >> 24) & 0x000000ffUL))) +#endif +/* No optimized 64 bit byte swapping macro is available */ +#define swap64(x) ((uint64_t)((((uint64_t)(x) << 56) & 0xff00000000000000ULL) | \\ + (((uint64_t)(x) << 40) & 0x00ff000000000000ULL) | \\ + (((uint64_t)(x) << 24) & 0x0000ff0000000000ULL) | \\ + (((uint64_t)(x) << 8) & 0x000000ff00000000ULL) | \\ + (((x) >> 8) & 0x00000000ff000000ULL) | \\ + (((x) >> 24) & 0x0000000000ff0000ULL) | \\ + (((x) >> 40) & 0x000000000000ff00ULL) | \\ + (((x) >> 56) & 0x00000000000000ffULL))) + +EOF + fi +]) + ]) + ]) + ]) +]) + + +[ +if test "$HAVE_LE32TOH" != "1"; then + cat >> "$1" << EOF +/* The byte swapping macros have the form: */ +/* EENN[a]toh or htoEENN[a] where EE is be (big endian) or */ +/* le (little-endian), NN is 16 or 32 (number of bits) and a, */ +/* if present, indicates that the endian side is a pointer to an */ +/* array of uint8_t bytes instead of an integer of the specified length. */ +/* h refers to the host's ordering method. */ + +/* So, to convert a 32-bit integer stored in a buffer in little-endian */ +/* format into a uint32_t usable on this machine, you could use: */ +/* uint32_t value = le32atoh(&buf[3]); */ +/* To put that value back into the buffer, you could use: */ +/* htole32a(&buf[3], value); */ + +/* Define aliases for the standard byte swapping macros */ +/* Arguments to these macros must be properly aligned on natural word */ +/* boundaries in order to work properly on all architectures */ +#ifndef htobe16 +# ifdef __HAVE_NTOHL +# define htobe16(x) htons(x) +# else +# ifdef WORDS_BIGENDIAN +# define htobe16(x) (x) +# else +# define htobe16(x) swap16(x) +# endif +# endif +#endif +#ifndef htobe32 +# ifdef __HAVE_NTOHL +# define htobe32(x) htonl(x) +# else +# ifdef WORDS_BIGENDIAN +# define htobe32(x) (x) +# else +# define htobe32(x) swap32(x) +# endif +# endif +#endif +#ifndef be16toh +# define be16toh(x) htobe16(x) +#endif +#ifndef be32toh +# define be32toh(x) htobe32(x) +#endif + +#define HTOBE16(x) (x) = htobe16(x) +#define HTOBE32(x) (x) = htobe32(x) +#define BE32TOH(x) (x) = be32toh(x) +#define BE16TOH(x) (x) = be16toh(x) + +EOF + + if test $ac_cv_c_bigendian = yes; then + cat >> "$1" << EOF +/* Define our own extended byte swapping macros for big-endian machines */ +#ifndef htole16 +# define htole16(x) swap16(x) +#endif +#ifndef htole32 +# define htole32(x) swap32(x) +#endif +#ifndef le16toh +# define le16toh(x) swap16(x) +#endif +#ifndef le32toh +# define le32toh(x) swap32(x) +#endif +#ifndef le64toh +# define le64toh(x) swap64(x) +#endif + +#ifndef htobe64 +# define htobe64(x) (x) +#endif +#ifndef be64toh +# define be64toh(x) (x) +#endif + +#define HTOLE16(x) (x) = htole16(x) +#define HTOLE32(x) (x) = htole32(x) +#define LE16TOH(x) (x) = le16toh(x) +#define LE32TOH(x) (x) = le32toh(x) +#define LE64TOH(x) (x) = le64toh(x) + +#define HTOBE64(x) (void) (x) +#define BE64TOH(x) (void) (x) + +EOF + else + cat >> "$1" << EOF +/* On little endian machines, these macros are null */ +#ifndef htole16 +# define htole16(x) (x) +#endif +#ifndef htole32 +# define htole32(x) (x) +#endif +#ifndef htole64 +# define htole64(x) (x) +#endif +#ifndef le16toh +# define le16toh(x) (x) +#endif +#ifndef le32toh +# define le32toh(x) (x) +#endif +#ifndef le64toh +# define le64toh(x) (x) +#endif + +#define HTOLE16(x) (void) (x) +#define HTOLE32(x) (void) (x) +#define HTOLE64(x) (void) (x) +#define LE16TOH(x) (void) (x) +#define LE32TOH(x) (void) (x) +#define LE64TOH(x) (void) (x) + +/* These don't have standard aliases */ +#ifndef htobe64 +# define htobe64(x) swap64(x) +#endif +#ifndef be64toh +# define be64toh(x) swap64(x) +#endif + +#define HTOBE64(x) (x) = htobe64(x) +#define BE64TOH(x) (x) = be64toh(x) + +EOF + fi +fi + +cat >> "$1" << EOF +/* Define the C99 standard length-specific integer types */ +#include <_stdint.h> + +EOF + +case "${effective_target}" in + i[3456]86-*) + cat >> "$1" << EOF +/* Here are some macros to create integers from a byte array */ +/* These are used to get and put integers from/into a uint8_t array */ +/* with a specific endianness. This is the most portable way to generate */ +/* and read messages to a network or serial device. Each member of a */ +/* packet structure must be handled separately. */ + +/* The i386 and compatibles can handle unaligned memory access, */ +/* so use the optimized macros above to do this job */ +#ifndef be16atoh +# define be16atoh(x) be16toh(*(uint16_t*)(x)) +#endif +#ifndef be32atoh +# define be32atoh(x) be32toh(*(uint32_t*)(x)) +#endif +#ifndef be64atoh +# define be64atoh(x) be64toh(*(uint64_t*)(x)) +#endif +#ifndef le16atoh +# define le16atoh(x) le16toh(*(uint16_t*)(x)) +#endif +#ifndef le32atoh +# define le32atoh(x) le32toh(*(uint32_t*)(x)) +#endif +#ifndef le64atoh +# define le64atoh(x) le64toh(*(uint64_t*)(x)) +#endif + +#ifndef htob16a +# define htobe16a(a,x) *(uint16_t*)(a) = htobe16(x) +#endif +#ifndef htobe32a +# define htobe32a(a,x) *(uint32_t*)(a) = htobe32(x) +#endif +#ifndef htobe64a +# define htobe64a(a,x) *(uint64_t*)(a) = htobe64(x) +#endif +#ifndef htole16a +# define htole16a(a,x) *(uint16_t*)(a) = htole16(x) +#endif +#ifndef htole32a +# define htole32a(a,x) *(uint32_t*)(a) = htole32(x) +#endif +#ifndef htole64a +# define htole64a(a,x) *(uint64_t*)(a) = htole64(x) +#endif + +EOF + ;; + + *) + cat >> "$1" << EOF +/* Here are some macros to create integers from a byte array */ +/* These are used to get and put integers from/into a uint8_t array */ +/* with a specific endianness. This is the most portable way to generate */ +/* and read messages to a network or serial device. Each member of a */ +/* packet structure must be handled separately. */ + +/* Non-optimized but portable macros */ +#define be16atoh(x) ((uint16_t)(((x)[0]<<8)|(x)[1])) +#define be32atoh(x) ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3])) +#define be64atoh_x(x,off,shift) (((uint64_t)((x)[off]))<<shift) +#define be64atoh(x) ((uint64_t)(be64atoh_x(x,0,56)|be64atoh_x(x,1,48)|be64atoh_x(x,2,40)| \\ + be64atoh_x(x,3,32)|be64atoh_x(x,4,24)|be64atoh_x(x,5,16)|be64atoh_x(x,6,8)|((x)[7]))) +#define le16atoh(x) ((uint16_t)(((x)[1]<<8)|(x)[0])) +#define le32atoh(x) ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0])) +#define le64atoh_x(x,off,shift) (((uint64_t)(x)[off])<<shift) +#define le64atoh(x) ((uint64_t)(le64atoh_x(x,7,56)|le64atoh_x(x,6,48)|le64atoh_x(x,5,40)| \\ + le64atoh_x(x,4,32)|le64atoh_x(x,3,24)|le64atoh_x(x,2,16)|le64atoh_x(x,1,8)|((x)[0]))) + +#define htobe16a(a,x) (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x) +#define htobe32a(a,x) (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\ + (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x) +#define htobe64a(a,x) (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\ + (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\ + (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\ + (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x) +#define htole16a(a,x) (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) +#define htole32a(a,x) (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ + (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) +#define htole64a(a,x) (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\ + (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\ + (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ + (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) + +EOF + ;; +esac +] + +cat >> "$1" << EOF +#endif /*__BYTEORDER_H*/ +EOF]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-camlibs.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-camlibs.m4 new file mode 100644 index 00000000..3dbb70db --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-camlibs.m4 @@ -0,0 +1,170 @@ +dnl GP_CAMLIB & Co. +dnl +dnl Redundancy free definition of libgphoto2 camlibs. +dnl +dnl Removes the redundany from the camlib lists, and executes +dnl additional consistency checks, e.g. to ensure that subdirectories +dnl actually exist. +dnl +dnl You can mark camlibs as unlisted, i.e. they won't be listed +dnl explicitly but still be recognized. +dnl +dnl Example usage: +dnl +dnl GP_CAMLIB([canon]) +dnl GP_CAMLIB([casio]) +dnl [...] +dnl GP_CAMLIB([ptp],[unlisted]) +dnl GP_CAMLIB([ptp2]) +dnl [...] +dnl GP_CAMLIB([toshiba]) +dnl GP_CAMLIBS_DEFINE([camlibs]) +dnl +dnl The camlibs basedir parameter of GP_CAMLIBS_DEFINE is optional. +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIBS_INIT],[dnl +AC_BEFORE([$0],[GP_CAMLIB])dnl +m4_define_default([gp_camlib_srcdir], [camlibs])dnl +m4_define_default([gp_camlibs], [])dnl +m4_define_default([gp_camlibs_unlisted], [])dnl +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIB],[dnl +AC_REQUIRE([GP_CAMLIBS_INIT])dnl +AC_BEFORE([$0],[GP_CAMLIBS_DEFINE])dnl +m4_if([$2],[unlisted],[dnl +# $0($1,$2) +m4_append([gp_camlibs_unlisted], [$1], [ ])dnl +],[$#],[1],[dnl +# $0($1) +m4_append([gp_camlibs], [$1], [ ])dnl +],[dnl +m4_errprint(__file__:__line__:[ Error: +*** Illegal parameter 2 to $0: `$2' +*** Valid values are: undefined or [unlisted] +])dnl +m4_exit(1)dnl +])dnl +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIBS_WARNING],[dnl +AC_MSG_WARN([ + +# Caution: You have chosen to build a non-standard set of camlibs. +# You may have disabled the camlib required for your camera, or +# enabled a camlib that does *not* work, and overrides the camlib +# that does work. Consequently, +# YOUR CAMERA MAY NOT WORK! +# +# Many cameras of several brands are supported by a camlib with a +# name different from the name of the camera brand or model. If you +# are unsure, please +# * enable at least the "ptp2" camlib +# * or even better, just build "all" camlibs. +]) +sleep 2 +]) +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CAMLIBS_DEFINE],[dnl +AC_REQUIRE([GP_CAMLIBS_INIT])dnl +m4_pattern_allow([m4_strip])dnl +m4_ifval([$1],[m4_define([gp_camlib_srcdir],[$1])])dnl +dnl for camlib in m4_strip(gp_camlibs) m4_strip(gp_camlibs_unlisted) +dnl do +dnl if test -d "$srcdir/m4_strip(gp_camlib_srcdir)/$camlib"; then :; else +dnl AC_MSG_ERROR([ +dnl * Fatal: +dnl * Source subdirectory for camlib \`$camlib' not found in +dnl * directory \`$srcdir/m4_strip(gp_camlib_srcdir)/' +dnl ]) +dnl fi +dnl done +AC_MSG_CHECKING([which camlibs to compile]) +dnl Yes, that help output won't be all that pretty, but we at least +dnl do not have to edit it by hand. +AC_ARG_WITH([camlibs],[AS_HELP_STRING( + [--with-camlibs=<list>], + [Compile camera drivers (camlibs) in <list>. ]dnl + [Drivers may be separated with commas. ]dnl + [CAUTION: DRIVER NAMES AND CAMERA NAMES MAY DIFFER. ]dnl + ['all' is the default and compiles all camlibs. ]dnl + [Possible camlibs are: ]dnl + m4_strip(gp_camlibs))], + [camlibs="$withval"], + [camlibs="all"])dnl +dnl +ALL_DEFINED_CAMLIBS="m4_strip(gp_camlibs) m4_strip(gp_camlibs_unlisted)" +ALL_DEFAULT_CAMLIBS="m4_strip(gp_camlibs)" +BUILD_THESE_CAMLIBS_BASE="" +if test "$camlibs" = "all"; then + BUILD_THESE_CAMLIBS_BASE="$ALL_DEFAULT_CAMLIBS" + AC_MSG_RESULT([all]) +else + # If the string starts with "all,", we start with the default list + # and add the explicitly defined ones later + if echo "$camlibs" | grep "^all," > /dev/null; then + BUILD_THESE_CAMLIBS_BASE="$ALL_DEFAULT_CAMLIBS" + camlibs="$(echo "$camlibs" | sed 's/^all,//')" + fi + # camlibs=$(echo $camlibs | sed 's/,/ /g') + IFS_save="$IFS" + IFS=",$IFS" + # Walk through enumeration of camlibs given by user and add them to list + # of camlibs to build if we know them. + for camlib in ${camlibs}; do + IFS="$IFS_save" + found=false + for from_all_camlib in ${ALL_DEFINED_CAMLIBS}; do + if test "$camlib" = "$from_all_camlib"; then + if test "x$BUILD_THESE_CAMLIBS_BASE" = "x"; then + BUILD_THESE_CAMLIBS_BASE="$camlib" + else + BUILD_THESE_CAMLIBS_BASE="$BUILD_THESE_CAMLIBS_BASE $camlib" + fi + found=: + break + fi + done + if $found; then :; else + AC_MSG_ERROR([Unknown camlib $camlib!]) + fi + done + if test "x$BUILD_THESE_CAMLIBS_BASE" = "xcanon" ; then + # Gentoo mode... if user just said "canon", add "ptp2" ... should save support requests. + BUILD_THESE_CAMLIBS_BASE="$BUILD_THESE_CAMLIBS_BASE ptp2" + camlibs="$camlibs ptp2" + AC_MSG_WARN([ + "You have just selected the old canon driver. However most current Canons\n" + "are supported by the PTP2 driver.\n" + "Autoselecting ptp2 driver too to avoid support requests.\n" + ]) + fi + IFS="$IFS_save" + AC_MSG_RESULT([$camlibs]) + GP_CAMLIBS_WARNING + AC_DEFINE_UNQUOTED([INCOMPLETE_CAMLIB_SET], ["$BUILD_THESE_CAMLIBS_BASE"], + [Whether the set of camlibs built is incomplete]) +fi +BUILD_THESE_CAMLIBS="" +for f in $BUILD_THESE_CAMLIBS_BASE +do + BUILD_THESE_CAMLIBS="${BUILD_THESE_CAMLIBS}${BUILD_THESE_CAMLIBS+ }${f}.la" +done +AC_SUBST([BUILD_THESE_CAMLIBS]) +AC_SUBST([ALL_DEFINED_CAMLIBS]) +AC_SUBST([ALL_DEFAULT_CAMLIBS]) +])dnl +dnl +dnl #################################################################### +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-doxygen.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-doxygen.m4 new file mode 100644 index 00000000..482ba1e6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-doxygen.m4 @@ -0,0 +1,21 @@ +dnl doxygen related stuff +dnl look for tools +dnl define substitutions for Doxyfile.in +AC_DEFUN([GP_CHECK_DOXYGEN],[dnl +AC_REQUIRE([GP_CHECK_DOC_DIR])dnl +AC_PATH_PROG([DOT], [dot], [false]) +AC_PATH_PROG([DOXYGEN], [doxygen], [false]) +AM_CONDITIONAL([HAVE_DOXYGEN], [test "x$DOXYGEN" != "xfalse"]) +AM_CONDITIONAL([HAVE_DOT], [test "x$DOT" != "xfalse"]) +if test "x$DOT" != "xfalse"; then + AC_SUBST([HAVE_DOT],[YES]) +else + AC_SUBST([HAVE_DOT],[NO]) +fi +AC_SUBST([HTML_APIDOC_DIR], ["${PACKAGE_TARNAME}-api.html"]) +AC_SUBST([DOXYGEN_OUTPUT_DIR], [doxygen-output]) +AC_SUBST([HTML_APIDOC_INTERNALS_DIR], ["${PACKAGE_TARNAME}-internals.html"]) +])dnl + + + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-library.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-library.m4 new file mode 100644 index 00000000..bc97e19b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-library.m4 @@ -0,0 +1,456 @@ +dnl @synopsis GP_CHECK_LIBRARY([VARNAMEPART],[libname],[VERSION-REQUIREMENT], +dnl [headername],[functionname], +dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], +dnl [OPTIONAL-REQUIRED-ETC],[WHERE-TO-GET-IT]) +dnl +dnl Checks for the presence of a certain library. +dnl +dnl Parameters: +dnl +dnl VARNAMEPART partial variable name for variable definitions +dnl libname name of library +dnl VERSION-REQUIREMENT check for the version using pkg-config. +dnl default: [] +dnl headername name of header file +dnl default: [] +dnl functionname name of function name in library +dnl default: [] +dnl ACTION-IF-FOUND shell action to execute if found +dnl default: [] +dnl ACTION-IF-NOT-FOUND shell action to execute if not found +dnl default: [] +dnl OPTIONAL-REQUIRED-ETC one of "mandatory", "default-on", "default-off" +dnl "disable-explicitly" +dnl default: [mandatory] +dnl WHERE-TO-GET-IT place where to find the library, e.g. a URL +dnl default: [] +dnl +dnl What the ACTION-IFs can do: +dnl +dnl * change the variable have_[$1] to "yes" or "no" and thus change +dnl the outcome of the test +dnl * execute additional checks to define more specific variables, e.g. +dnl for different API versions +dnl +dnl What the OPTIONAL-REQUIRED-ETC options mean: +dnl +dnl mandatory Absolute requirement, cannot be disabled. +dnl default-on If found, it is used. If not found, it is not used. +dnl default-off In case of --with-libfoo, detect it. Without +dnl --with-libfoo, do not look for and use it. +dnl disable-explicitly Required by default, but can be disabled by +dnl explicitly giving --without-libfoo. +dnl +dnl These results have happened after calling GP_CHECK_LIBRARY: +dnl +dnl AM_CONDITIONAL([HAVE_VARPREFIX],[ if found ]) +dnl AM_SUBST([have_VARPREFIX], [ "yes" if found, "no" if not found ]) +dnl AM_SUBST([VARPREFIX_CFLAGS],[ -I, -D and stuff ]) +dnl AM_SUBST([VARPREFIX_LIBS], [ /path/to/libname.la -L/path -lfoo ]) +dnl +dnl Parameters to ./configure which influence the GP_CHECK_LIBRARY results: +dnl +dnl * VARNAMEPART_LIBS=/foobar/arm-palmos/lib/libname.la +dnl VARNAMEPART_CFLAGS=-I/foobar/include +dnl * --without-libfoo +dnl * --with-libfoo=/usr/local +dnl * --with-libfoo-include-dir=/foobar/include +dnl * --with-libfoo-lib=/foobar/arm-palmos/lib +dnl * --with-libfoo=autodetect +dnl +dnl Examples: +dnl GP_CHECK_LIBRARY([LIBEXIF], [libexif])dnl +dnl GP_CHECK_LIBRARY([LIBEXIF], [libexif-gtk], [>= 0.3.3])dnl +dnl note the space! ^ +dnl +dnl Possible enhancements: +dnl +dnl * Derive VAR_PREFIX directly from libname +dnl This will change the calling conventions, so be aware of that. +dnl * Give names of a header file and function name and to a test +dnl compilation. +dnl +AC_DEFUN([_GP_CHECK_LIBRARY_SOEXT],[dnl +AC_MSG_CHECKING([for dynamic library extension]) +soext="" +case "$host" in + *linux*) soext=".so" ;; + *sunos*) soext=".so" ;; + *solaris*) soext=".so" ;; + *bsd*) soext=".so" ;; + *darwin*) soext=".dylib" ;; + *w32*) soext=".dll" ;; +esac +case "$host_os" in + gnu*) soext=".so" ;; +esac +if test "x$soext" = "x"; then + soext=".so" + AC_MSG_RESULT([${soext}]) + AC_MSG_WARN([ +Host system "${host}" not recognized, defaulting to "${soext}". +]) +else + AC_MSG_RESULT([${soext}]) +fi +])dnl +dnl +AC_DEFUN([_GP_CHECK_LIBRARY],[ +# ---------------------------------------------------------------------- +# [GP_CHECK_LIBRARY]([$1],[$2],[$3], +# [$4],[$5], +# [...],[...],[$8]) +m4_ifval([$9],[dnl +# $9 +])dnl +# ---------------------------------------------------------------------- +dnl +AC_REQUIRE([GP_CONFIG_MSG])dnl +AC_REQUIRE([GP_PKG_CONFIG])dnl +AC_REQUIRE([_GP_CHECK_LIBRARY_SOEXT])dnl +# Use _CFLAGS and _LIBS given to configure. +# This makes it possible to set these vars in a configure script +# and AC_CONFIG_SUBDIRS this configure. +AC_ARG_VAR([$1][_CFLAGS], [CFLAGS for compiling with ][$2])dnl +AC_ARG_VAR([$1][_LIBS], [LIBS to add for linking against ][$2])dnl +dnl +AC_MSG_CHECKING([for ][$2][ to use]) +m4_ifval([$3],[REQUIREMENTS_FOR_][$1][="][$2][ $3]["], + [REQUIREMENTS_FOR_][$1][="][$2]["]) +userdef_[$1]=no +have_[$1]=no +if test "x${[$1][_LIBS]}" = "x" && test "x${[$1][_CFLAGS]}" = "x"; then + # define --with/--without argument + m4_if([$8], [default-off], + [m4_pushdef([gp_lib_arg],[--without-][$2])dnl + try_[$1]=no + ], + [m4_pushdef([gp_lib_arg],[--with-][$2])dnl + try_[$1]=auto + ])dnl + AC_ARG_WITH([$2],[AS_HELP_STRING([gp_lib_arg][=PREFIX],[where to find ][$2][, "no" or "auto"])],[try_][$1][="$withval"]) + if test "x${[try_][$1]}" = "xno"; then + [REQUIREMENTS_FOR_][$1][=] + fi + if test "x${[try_][$1]}" = "xauto"; then [try_][$1]=autodetect; fi + AC_MSG_RESULT([${try_][$1][}]) + m4_popdef([gp_lib_arg])dnl + if test "x${[try_][$1]}" = "xautodetect"; then + # OK, we have to autodetect. + # We start autodetection with the cleanest known method: pkg-config + if test "x${[have_][$1]}" = "xno"; then + # we need that line break after the PKG_CHECK_MODULES + m4_ifval([$3], + [PKG_CHECK_MODULES([$1],[$2][ $3],[have_][$1][=yes],[:])], + [PKG_CHECK_MODULES([$1],[$2], [have_][$1][=yes],[:])] + ) + fi + # If pkg-config didn't find anything, try the libfoo-config program + # certain known libraries ship with. + if test "x${[have_][$1]}" = "xno"; then + AC_MSG_CHECKING([$2][ config program]) + m4_pushdef([gp_lib_config],[m4_if([$2],[libusb],[libusb-config], + [$2],[libgphoto2],[gphoto2-config], + [$2],[libgphoto2_port],[gphoto2-port-config], + [$2],[gdlib],[gdlib-config], + [$2],[libxml-2.0],[xml2-config], + [none])])dnl + AC_MSG_RESULT([gp_lib_config]) + AC_PATH_PROG([$1][_CONFIG_PROG],[gp_lib_config]) + if test -n "${[$1][_CONFIG_PROG]}" && + test "${[$1][_CONFIG_PROG]}" != "none"; then + m4_ifval([$3],[ + AC_MSG_CHECKING([for ][$2][ version according to ][gp_lib_config]) + m4_pushdef([gp_lib_compop],[regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*.*], [\1])])dnl comparison operator + m4_if( gp_lib_compop,[>=],[_][$1][_COMPN="-lt"], + gp_lib_compop,[>], [_][$1][_COMPN="-le"], + gp_lib_compop,[<], [_][$1][_COMPN="-ge"], + gp_lib_compop,[<=],[_][$1][_COMPN="-gt"], + gp_lib_compop,[=], [_][$1][_COMPN="-ne"], + [m4_errprint(__file__:__line__:[ Error: +Illegal version comparison operator: `gp_lib_compop' +It must be one of ">=", ">", "<", "<=", "=". +])m4_exit(1)]) + m4_popdef([gp_lib_compop])dnl + # split requested version number using m4 regexps + _[$1]_REQ_1="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\).*], [\2])" + _[$1]_REQ_2="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\)\.\([0-9]+\).*], [\3])" + _[$1]_REQ_3="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\)\.\([0-9]+\)\.\([0-9]+\).*], [\4])" + _[$1]_REQ_4="regexp([$3], [\(>=\|>\|<\|<=\|=\)[ \t]*\([0-9]+\)\.\([0-9]+\)\.\([0-9]+\)\(.*\)], [\5])" + # split installed version number via shell and sed + _[$1]_VERSION="$("${[$1][_CONFIG_PROG]}" --version | sed 's/^.* //')" + _[$1]_VER_1="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\).*/\1/g')" + _[$1]_VER_2="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/g')" + _[$1]_VER_3="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/g')" + _[$1]_VER_4="$(echo "${_[$1]_VERSION}" | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)\(.*\)/\4/g')" + AC_MSG_RESULT([${_][$1][_VERSION}]) + _tmp=false + if test "${_[$1]_VER_1}" "${_[$1]_COMPN}" "${_[$1]_REQ_1}"; then _tmp=true; + elif test "${_[$1]_VER_2}" "${_[$1]_COMPN}" "${_[$1]_REQ_2}"; then _tmp=true; + elif test "${_[$1]_VER_3}" "${_[$1]_COMPN}" "${_[$1]_REQ_3}"; then _tmp=true; + elif test "x${_[$1]_VER_4}" = "x" && test "x${_[$1]_REQ_4}" != "x"; then _tmp=true; + elif test "${_[$1]_VER_4}" "${_[$1]_COMPN}" "${_[$1]_REQ_4}"; then _tmp=true; + fi + AC_MSG_CHECKING([if ][$2][ version is matching requirement ][$3]) + if "${_tmp}"; then + AC_MSG_RESULT([no]) + AC_MSG_ERROR([Version requirement ][$2][ ][$3][ not met. Found: ${_][$1][_VERSION}]) + else + AC_MSG_RESULT([yes]) + fi + ])dnl if version requirement given + AC_MSG_CHECKING([for ][$2][ parameters from ][gp_lib_config]) + [$1]_LIBS="$(${[$1][_CONFIG_PROG]} --libs || echo "*error*")" + [$1]_CFLAGS="$(${[$1][_CONFIG_PROG]} --cflags || echo "*error*")" + if test "x${[$1]_LIBS}" = "*error*" || + test "x${[$1]_CFLAGS}" = "*error*"; then + AC_MSG_RESULT([error]) + else + have_[$1]=yes + AC_MSG_RESULT([ok]) + fi + fi + m4_popdef([gp_lib_config])dnl + fi + m4_ifval([$3],[# Version requirement given, so we do not rely on probing.],[ + # Neither pkg-config, nor the libfoo-config program have found anything. + # So let's just probe the system. + AC_MSG_WARN([The `$2' library could not be found using pkg-config or its known config program. +No version checks will be performed if it is found using any other method.]) + if test "x${[have_][$1]}" = "xno"; then + ifs="$IFS" + IFS=":" # FIXME: for W32 and OS/2 we may need ";" here + for _libdir_ in \ + ${LD_LIBRARY_PATH} \ + "${libdir}" \ + "${prefix}/lib64" "${prefix}/lib" \ + /usr/lib64 /usr/lib \ + /usr/local/lib64 /usr/local/lib \ + /opt/lib64 /opt/lib + do + IFS="$ifs" + for _soext_ in .la ${soext} .a; do + if test -f "${_libdir_}/[$2]${_soext_}" + then + if test "x${_soext_}" = "x.la" || + test "x${_soext_}" = "x.a"; then + [$1]_LIBS="${_libdir_}/[$2]${_soext_}" + else + [$1]_LIBS="-L${_libdir_} -l$(echo "$2" | sed 's/^lib//')" + fi + break + fi + done + if test "x${[$1][_LIBS]}" != "x"; then + break + fi + done + IFS="$ifs" + if test "x${[$1][_LIBS]}" != "x"; then + have_[$1]=yes + fi + fi + ]) + elif test "x${[try_][$1]}" = "xno"; then + : + else + # We've been given a prefix to look in for library $2. + # We start looking for $2.la files first. + AC_MSG_CHECKING([for ][$2][.la file in ${[try_][$1]}]) + if test -f "${[try_][$1]}/lib/[$2].la"; then + [$1][_LIBS]="${[try_][$1]}/lib/[$2].la" + [$1][_CFLAGS]="-I${[try_][$1]}/include" + AC_MSG_RESULT([libtool file $][$1][_LIBS (good)]) + have_[$1]=yes + elif test -f "${[try_][$1]}/lib64/[$2].la"; then # HACK + [$1][_LIBS]="${[try_][$1]}/lib64/[$2].la" + [$1][_CFLAGS]="-I${[try_][$1]}/include" + AC_MSG_RESULT([libtool file $][$1][_LIBS (good)]) + have_[$1]=yes + else + AC_MSG_RESULT([wild guess that something is in $try_][$1]) + [$1][_LIBS]="-L${[try_][$1]}/lib -l$(echo "$2" | sed 's/^lib//')" + [$1][_CFLAGS]="-I${[try_][$1]}/include" + have_[$1]=yes + AC_MSG_WARN([ +* Warning: +* libtool file $2.la could not be found. +* We may be linking against the WRONG library. +]) + fi + fi +elif test "x${[$1][_LIBS]}" != "x" && test "x${[$1][_CFLAGS]}" != "x"; then + AC_MSG_RESULT([user-defined]) + userdef_[$1]=yes + have_[$1]=yes +else + AC_MSG_RESULT([broken call]) + AC_MSG_ERROR([ +* Fatal: +* When calling configure for ${PACKAGE_TARNAME} +* ${PACKAGE_NAME} +* either set both [$1][_LIBS] *and* [$1][_CFLAGS] +* or neither. +]) +fi +AC_SUBST([REQUIREMENTS_FOR_][$1]) +dnl +dnl ACTION-IF-FOUND +dnl +m4_ifval([$6],[dnl +if test "x${[have_][$1]}" = "xyes"; then +# ACTION-IF-FOUND +$6 +fi +])dnl +dnl +dnl ACTION-IF-NOT-FOUND +dnl +m4_ifval([$7],[dnl +if test "x${[have_][$1]}" = "xno"; then +# ACTION-IF-NOT-FOUND +$7 +fi +])dnl +dnl +dnl Run our own test compilation +dnl +m4_ifval([$4],[dnl +if test "x${[have_][$1]}" = "xyes"; then +dnl AC_MSG_CHECKING([whether ][$2][ test compile succeeds]) +dnl AC_MSG_RESULT([${[have_][$1]}]) +CPPFLAGS_save="$CPPFLAGS" +CPPFLAGS="${[$1]_CFLAGS}" +AC_CHECK_HEADER([$4],[have_][$1][=yes],[have_][$1][=no]) +CPPFLAGS="$CPPFLAGS_save" +fi +])dnl +dnl +dnl Run our own test link +dnl Does not work for libraries which be built after configure time, +dnl so we deactivate it for them (userdef_). +dnl +m4_ifval([$5],[dnl +if test "x${[userdef_][$1]}" = "xno" && test "x${[have_][$1]}" = "xyes"; then + AC_MSG_CHECKING([for function ][$5][ in ][$2]) + LIBS_save="$LIBS" + LIBS="${[$1]_LIBS}" + AC_TRY_LINK_FUNC([$5],[],[have_][$1][=no]) + LIBS="$LIBS_save" + AC_MSG_RESULT([${[have_][$1]}]) +fi +])dnl +dnl +dnl Abort configure script if mandatory, but not found +dnl +m4_if([$8],[mandatory],[ +if test "x${[have_][$1]}" = "xno"; then + AC_MSG_ERROR([ +PKG_CONFIG_PATH=${PKG_CONFIG_PATH} +[$1][_LIBS]=${[$1][_LIBS]} +[$1][_CFLAGS]=${[$1][_CFLAGS]} + +* Fatal: ${PACKAGE_NAME} requires $2 $3 to build. +* +* Possible solutions: +* - set PKG_CONFIG_PATH to adequate value +* - call configure with [$1][_LIBS]=.. and [$1][_CFLAGS]=.. +* - call configure with one of the --with-$2 parameters +][m4_ifval([$9],[dnl +* - get $2 and install it: +* $9],[dnl +* - get $2 and install it])]) +fi +])dnl +dnl +dnl Abort configure script if not found and not explicitly disabled +dnl +m4_if([$8],[disable-explicitly],[ +if test "x${[try_][$1]}" != "xno" && test "x${[have_][$1]}" = "xno"; then + AC_MSG_ERROR([ +PKG_CONFIG_PATH=${PKG_CONFIG_PATH} +[$1][_LIBS]=${[$1][_LIBS]} +[$1][_CFLAGS]=${[$1][_CFLAGS]} + +* Fatal: ${PACKAGE_NAME} by default requires $2 $3 to build. +* You must explicitly disable $2 to build ${PACKAGE_TARNAME} without it. +* +* Possible solutions: +* - call configure with --with-$2=no or --without-$2 +* - set PKG_CONFIG_PATH to adequate value +* - call configure with [$1][_LIBS]=.. and [$1][_CFLAGS]=.. +* - call configure with one of the --with-$2 parameters +][m4_ifval([$9],[dnl +* - get $2 and install it: +* $9],[dnl +* - get $2 and install it +])][m4_if([$2],[libusb],[dnl +* - if you have libusb >= 1.0 installed, you must also install +* either the libusb0 compat library or a libusb 0.x version +])]) +fi +])dnl +AM_CONDITIONAL([HAVE_][$1], [test "x$have_[$1]" = "xyes"]) +if test "x$have_[$1]" = "xyes"; then + AC_DEFINE([HAVE_][$1], 1, [whether we compile with ][$2][ support]) + GP_CONFIG_MSG([$2],[yes])dnl + AC_MSG_CHECKING([$2][ library flags]) + AC_MSG_RESULT(["${[$1][_LIBS]}"]) + AC_MSG_CHECKING([$2][ cpp flags]) + AC_MSG_RESULT(["${[$1][_CFLAGS]}"]) +else + [REQUIREMENTS_FOR_][$1][=] + GP_CONFIG_MSG([$2],[no])dnl +fi +dnl AC_SUBST is done implicitly by AC_ARG_VAR above. +dnl AC_SUBST([$1][_LIBS]) +dnl AC_SUBST([$1][_CFLAGS]) +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([_GP_CHECK_LIBRARY_SYNTAX_ERROR],[dnl +m4_errprint(__file__:__line__:[ Error: +*** Calling $0 macro with old syntax +*** Aborting. +])dnl +m4_exit(1)dnl +])dnl +dnl +dnl #################################################################### +dnl +AC_DEFUN([GP_CHECK_LIBRARY],[dnl +m4_if([$4], [mandatory], [_GP_CHECK_LIBRARY_SYNTAX_ERROR($0)], + [$4], [default-enabled], [_GP_CHECK_LIBRARY_SYNTAX_ERROR($0)], + [$4], [default-disabled], [_GP_CHECK_LIBRARY_SYNTAX_ERROR($0)])dnl +m4_if([$8], [], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[mandatory],[$9])], + [$8], [default-on], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [$8], [disable-explicitly], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [$8], [default-off], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [$8], [mandatory], [dnl + _GP_CHECK_LIBRARY([$1],[$2],[$3],[$4],[$5],[$6],[$7],[$8],[$9])], + [m4_errprint(__file__:__line__:[ Error: +Illegal argument 6 to $0: `$6' +It must be one of "default-on", "default-off", "mandatory". +])m4_exit(1)])dnl +])dnl +dnl +m4_pattern_disallow([GP_CHECK_LIBRARY]) +m4_pattern_disallow([_GP_CHECK_LIBRARY]) +m4_pattern_disallow([_GP_CHECK_LIBRARY_SYNTAX_ERROR]) +m4_pattern_disallow([_GP_CHECK_LIBRARY_SOEXT]) +dnl +dnl #################################################################### +dnl +dnl Please do not remove this: +dnl filetype: 6e60b4f0-acb2-4cd5-8258-42014f92bd2c +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-popt.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-popt.m4 new file mode 100644 index 00000000..f88f8695 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-popt.m4 @@ -0,0 +1,241 @@ +dnl @synopsis GP_CHECK_POPT(FLAG) +dnl +dnl Check whether libpopt is available. +dnl FLAG must be one of +dnl "mandatory" +dnl "default-enabled" +dnl "default-disabled" +dnl +AC_DEFUN([GP_CHECK_POPT],[ +# +# [GP_CHECK_POPT] +# +AC_REQUIRE([GP_CONFIG_MSG])dnl +m4_if([$1],[mandatory], [_GP_CHECK_POPT([mandatory])], + [$1],[default-enabled], [_GP_CHECK_POPT([disable])], + [$1],[default-disabled], [_GP_CHECK_POPT([enable])], + [m4_errprint(__file__:__line__:[ Error: +Illegal argument to $0: `$1' +Valid values are: mandatory, default-enabled, default-disabled +])m4_exit(1)])dnl +])dnl +dnl +AC_DEFUN([_GP_CHECK_POPT],[ +m4_if([$1],[mandatory],[ +try_popt=yes +require_popt=yes +],[ +try_popt=auto +require_popt=no +AC_ARG_ENABLE([popt], +[AS_HELP_STRING([--$1-popt],[Do not use popt])], +[ if test "x$enableval" = xno \ + || test "x$enableval" = xoff \ + || test "x$enableval" = xfalse; + then + try_popt=no + require_popt=no + elif test "x$enableval" = xyes \ + || test "x$enableval" = xon \ + || test "x$enableval" = xtrue + then + try_popt=yes + require_popt=yes + fi +])dnl +])dnl + +AC_MSG_CHECKING([whether popt is required]) +AC_MSG_RESULT([${require_popt}]) + +if test "$require_popt" != yes; then + AC_MSG_CHECKING([whether popt is requested]) + AC_MSG_RESULT([${try_popt}]) +fi + +dnl Implicit AC_SUBST +AC_ARG_VAR([POPT_CFLAGS],[cppflags to compile with libpopt])dnl +AC_ARG_VAR([POPT_LIBS],[location of libpopt to link against])dnl + +have_popt=no + +if test "x$POPT_CFLAGS" = "x" && test "x$POPT_LIBS" = "x"; then + + # try to find options to compile popt.h + CPPFLAGS_save="$CPPFLAGS" + popth_found=no + case "$MSYSTEM" in + MINGW32) + if test -n "/mingw32"; then + : + elif test -d "/mingw32/include"; then + CPPFLAGS="-I/mingw32/include ${CPPFLAGS}" + else + continue + fi + ac_cv_header_popt_h="" + unset ac_cv_header_popt_h + AC_CHECK_HEADER([popt.h], [popth_found=yes]) + ;; + MINGW64) + if test -n "${popt_prefix}"; then + : + elif test -d "/mingw64/include"; then + CPPFLAGS="-I/mingw64/include ${CPPFLAGS}" + else + continue + fi + ac_cv_header_popt_h="" + unset ac_cv_header_popt_h + AC_CHECK_HEADER([popt.h], [popth_found=yes]) + ;; + *) + for popt_prefix in "" /usr /usr/local + do + if test -n "${popt_prefix}"; then + : + elif test -d "${popt_prefix}/include"; then + CPPFLAGS="-I${popt_prefix}/include ${CPPFLAGS}" + else + continue + fi + ac_cv_header_popt_h="" + unset ac_cv_header_popt_h + AC_CHECK_HEADER([popt.h], [popth_found=yes]) + if test "$popth_found" = yes; then break; fi + done + ;; + esac + CPPFLAGS="$CPPFLAGS_save" + if test "$popth_found" = "yes"; then + if test "$popt_prefix" = ""; then + POPT_CFLAGS="" + else + POPT_CFLAGS="-I${popt_prefix}/include" + fi + elif test "$require_popt" = "yes"; then + AC_MSG_ERROR([ +* Cannot autodetect popt.h +* +* Set POPT_CFLAGS and POPT_LIBS correctly. +]) + fi + + # try to find options to link against popt + LDFLAGS_save="$LDFLAGS" + popt_links=no + case "$MSYSTEM" in + MINGW32) +# for ldir in "" lib; do + popt_libdir="/mingw32/lib" + if test "${popt_libdir}" = "/"; then + popt_libdir="" + elif test -d "${popt_libdir}"; then + LDFLAGS="-L${popt_libdir} ${LDFLAGS}" + else + continue + fi + # Avoid caching of results + ac_cv_lib_popt_poptStuffArgs="" + unset ac_cv_lib_popt_poptStuffArgs + AC_CHECK_LIB([popt], [poptStuffArgs], [popt_links=yes]) + ;; + MINGW64) + popt_libdir="/mingw64/lib" + if test "${popt_libdir}" = "/"; then + popt_libdir="" + elif test -d "${popt_libdir}"; then + LDFLAGS="-L${popt_libdir} ${LDFLAGS}" + else + continue + fi + # Avoid caching of results + ac_cv_lib_popt_poptStuffArgs="" + unset ac_cv_lib_popt_poptStuffArgs + AC_CHECK_LIB([popt], [poptStuffArgs], [popt_links=yes]) + ;; + *) + for popt_prefix in /usr "" /usr/local; do + # We could have "/usr" and "lib64" at the beginning of the + # lists. Then the first tested location would + # incidentally be the right one on 64bit systems, and + # thus work around a bug in libtool on 32bit systems: + # + # 32bit libtool doesn't know about 64bit systems, and so the + # compilation will fail when linking a 32bit library from + # /usr/lib to a 64bit binary. + # + # This hack has been confirmed to workwith a + # 32bit Debian Sarge and 64bit Fedora Core 3 system. + for ldir in lib64 "" lib; do + popt_libdir="${popt_prefix}/${ldir}" + if test "${popt_libdir}" = "/"; then + popt_libdir="" + elif test -d "${popt_libdir}"; then + LDFLAGS="-L${popt_libdir} ${LDFLAGS}" + else + continue + fi + # Avoid caching of results + ac_cv_lib_popt_poptStuffArgs="" + unset ac_cv_lib_popt_poptStuffArgs + AC_CHECK_LIB([popt], [poptStuffArgs], [popt_links=yes]) + if test "$popt_links" = yes; then break; fi + done + if test "$popt_links" = yes; then break; fi + done + ;; + esac + LDFLAGS="$LDFLAGS_save" + if test "$popt_links" = "yes"; then + if test "$popt_libdir" = ""; then + POPT_LIBS="-lpopt" + else + POPT_LIBS="-L${popt_libdir} -lpopt" + fi + have_popt=yes + elif test "$require_popt" = "yes"; then + AC_MSG_ERROR([ +* Cannot autodetect library directory containing popt +* +* Set POPT_CFLAGS and POPT_LIBS correctly. +]) + fi +elif test "x$POPT_CFLAGS" != "x" && test "x$POPT_LIBS" != "x"; then + # just use the user specivied option + popt_msg="yes (user specified)" + have_popt=yes +else + AC_MSG_ERROR([ +* Fatal: Either set both POPT_CFLAGS and POPT_LIBS or neither. +]) +fi + +AC_MSG_CHECKING([if popt is functional]) +if test "$require_popt$have_popt" = "yesno"; then + AC_MSG_RESULT([no, but required]) + AC_MSG_ERROR([ +* popt library not found +* Fatal: ${PACKAGE_NAME} (${PACKAGE_TARNAME}) requires popt +* Please install it and/or set POPT_CFLAGS and POPT_LIBS. +]) +fi +AC_MSG_RESULT([${have_popt}]) + +GP_CONFIG_MSG([use popt library], [${have_popt}]) +if test "$have_popt" = "yes"; then + AC_DEFINE([HAVE_POPT],[1],[whether the popt library is available]) + GP_CONFIG_MSG([popt libs],[${POPT_LIBS}]) + GP_CONFIG_MSG([popt cppflags],[${POPT_CFLAGS}]) +fi +AM_CONDITIONAL([HAVE_POPT],[test "$have_popt" = "yes"]) +])dnl +dnl +dnl Please do not remove this: +dnl filetype: 7595380e-eff3-49e5-90ab-e40f1d544639 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-shell-environment.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-shell-environment.m4 new file mode 100644 index 00000000..b9850e7a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-check-shell-environment.m4 @@ -0,0 +1,48 @@ +dnl @synopsis GP_CHECK_SHELL_ENVIRONMENT([SHOW-LOCALE-VARS]) +dnl +dnl Check that the shell environment is sane. +dnl +dnl If SHOW-LOCALE-VARS is set to [true], print all LC_* and LANG* +dnl variables at configure time. (WARNING: This is not portable!) +dnl +dnl +AC_DEFUN([GP_CHECK_SHELL_ENVIRONMENT], +[ +# make sure "cd" doesn't print anything on stdout +if test x"${CDPATH+set}" = xset +then + CDPATH=: + export CDPATH +fi + +# make sure $() command substitution works +AC_MSG_CHECKING([for POSIX sh \$() command substitution]) +if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # '''' +then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) + uname=`uname 2>&1` # '' + uname_a=`uname -a 2>&1` # '' + AC_MSG_ERROR([ + +* POSIX sh \$() command substition does not work with this shell. +* +* You are running a very rare species of shell. Please report this +* sighting to <${PACKAGE_BUGREPORT}>: +* SHELL=${SHELL} +* uname=${uname} +* uname-a=${uname_a} +* Please also include your OS and version. +* +* Run this configure script using a better (i.e. POSIX compliant) shell. +]) +fi +dnl +m4_if([$1],[true],[dnl +printenv | grep -E '^(LC_|LANG)' +])dnl + +dnl +])dnl +dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-config-msg.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-config-msg.m4 new file mode 100644 index 00000000..cc193518 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-config-msg.m4 @@ -0,0 +1,102 @@ +dnl +dnl GP_CONFIG_INIT +dnl use default LHS width (called implicitly if not called explicitly) +dnl GP_CONFIG_INIT([WIDTH-OF-LHS]) +dnl explicitly set the LHS width to the given value +dnl +dnl GP_CONFIG_MSG +dnl empty output line +dnl GP_CONFIG_MSG([LHS],[RHS]) +dnl formatted output line "LHS: RHS" +dnl +dnl GP_CONFIG_OUTPUT +dnl print all the output messages we collected in the mean time +dnl +dnl Simple way to print a configuration summary at the end of ./configure. +dnl +dnl Example usage: +dnl +dnl GP_CONFIG_INIT +dnl GP_CONFIG_MSG([Source code location],[${srcdir}]) +dnl GP_CONFIG_MSG([Compiler],[${CC}]) +dnl GP_CONFIG_MSG +dnl GP_CONFIG_MSG([Feature foo],[${foo}]) +dnl GP_CONFIG_MSG([Location of bar],[${bar}]) +dnl [...] +dnl AC_OUTPUT +dnl GP_CONFIG_OUTPUT +dnl +dnl +AC_DEFUN([GP_CONFIG_INIT], +[dnl +AC_REQUIRE([GP_CHECK_SHELL_ENVIRONMENT]) +dnl the empty string must contain at least as many spaces as the substr length +dnl FIXME: let m4 determine that length +dnl (collect left parts in array and choose largest length) +m4_if([$1],[],[gp_config_len="30"],[gp_config_len="$1"]) +gp_config_empty="" +gp_config_len3="$(expr "$gp_config_len" - 3)" +n="$gp_config_len" +while test "$n" -gt 0; do + gp_config_empty="${gp_config_empty} " + n="$(expr "$n" - 1)" +done +gp_config_msg=" +Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}): +" +])dnl +dnl +dnl +AC_DEFUN([GP_CONFIG_MSG], +[AC_REQUIRE([GP_CONFIG_INIT])dnl +m4_if([$1],[],[ +gp_config_msg="${gp_config_msg} +" +],[$2],[],[ +gp_config_msg="${gp_config_msg} + [$1] +" +],[ +gp_config_msg_len="$(expr "[$1]" : '.*')" +if test "$gp_config_msg_len" -ge "$gp_config_len"; then + gp_config_msg_lhs="$(expr "[$1]" : "\(.\{0,${gp_config_len3}\}\)")..:" +else + gp_config_msg_lhs="$(expr "[$1]:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")" +fi +gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} [$2] +" +])])dnl +dnl +AC_DEFUN([GP_CONFIG_MSG_SUBDIRS],[dnl +# Message about configured subprojects +if test "x$subdirs" != "x"; then + GP_CONFIG_MSG()dnl + _subdirs="" + for sd in $subdirs; do + ssd="$(basename "$sd")" + if test "x$_subdirs" = "x"; then + _subdirs="$ssd"; + else + _subdirs="$_subdirs $ssd" + fi + done + GP_CONFIG_MSG([Subprojects],[${_subdirs}])dnl +fi +])dnl +dnl +AC_DEFUN([GP_CONFIG_OUTPUT], +[AC_REQUIRE([GP_CONFIG_INIT])dnl +AC_REQUIRE([GP_CONFIG_MSG])dnl +AC_REQUIRE([GP_CONFIG_MSG_SUBDIRS])dnl +echo "${gp_config_msg} +You may run \"make\" and \"make install\" now." +])dnl +dnl +dnl Please do not remove this: +dnl filetype: de774af3-dc3b-4b1d-b6f2-4aca35d3da16 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-documentation.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-documentation.m4 new file mode 100644 index 00000000..a73301b6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-documentation.m4 @@ -0,0 +1,113 @@ +dnl +dnl check where to install documentation +dnl +dnl determines documentation "root directory", i.e. the directory +dnl where all documentation will be placed in +dnl + +AC_DEFUN([GP_CHECK_DOC_DIR], +[ +AC_BEFORE([$0], [GP_BUILD_GTK_DOCS])dnl +AC_BEFORE([$0], [GP_CHECK_DOXYGEN])dnl + +AC_ARG_WITH([doc-dir], +[AS_HELP_STRING([--with-doc-dir=PATH], +[Where to install docs [default=autodetect]])]) + +# check for the main ("root") documentation directory +AC_MSG_CHECKING([main docdir]) + +if test "x${with_doc_dir}" != "x" +then # docdir is given as parameter + docdir="${with_doc_dir}" + AC_MSG_RESULT([${docdir} (from parameter)]) +else # otherwise invent a docdir hopefully compatible with system policy + if test -d "/usr/share/doc" + then + maindocdir='${prefix}/share/doc' + AC_MSG_RESULT([${maindocdir} (FHS style)]) + elif test -d "/usr/doc" + then + maindocdir='${prefix}/doc' + AC_MSG_RESULT([${maindocdir} (old style)]) + else + maindocdir='${datadir}/doc' + AC_MSG_RESULT([${maindocdir} (default value)]) + fi + AC_MSG_CHECKING([package docdir]) + # check whether to include package version into documentation path + # FIXME: doesn't work properly. + if ls -d /usr/{share/,}doc/make-[0-9]* > /dev/null 2>&1 + then + docdir="${maindocdir}/${PACKAGE}-${VERSION}" + AC_MSG_RESULT([${docdir} (redhat style)]) + else + docdir="${maindocdir}/${PACKAGE}" + AC_MSG_RESULT([${docdir} (default style)]) + fi +fi + +AC_SUBST([docdir]) +])dnl + +dnl +dnl check whether to build docs and where to: +dnl +dnl * determine presence of prerequisites (only gtk-doc for now) +dnl * determine destination directory for HTML files +dnl + +AC_DEFUN([GP_BUILD_GTK_DOCS], +[ +# docdir has to be determined in advance +AC_REQUIRE([GP_CHECK_DOC_DIR]) + +# --------------------------------------------------------------------------- +# gtk-doc: We use gtk-doc for building our documentation. However, we +# require the user to explicitely request the build. +# --------------------------------------------------------------------------- +try_gtkdoc=false +gtkdoc_msg="no (not requested)" +have_gtkdoc=false +AC_ARG_ENABLE([docs], +[AS_HELP_STRING([--enable-docs], +[Use gtk-doc to build documentation [default=no]])],[ + if test x$enableval = xyes; then + try_gtkdoc=true + fi +]) +if $try_gtkdoc; then + AC_PATH_PROG([GTKDOC],[gtkdoc-mkdb]) + if test -n "${GTKDOC}"; then + have_gtkdoc=true + gtkdoc_msg="yes" + else + gtkdoc_msg="no (http://www.gtk.org/rdp/download.html)" + fi +fi +AM_CONDITIONAL([ENABLE_GTK_DOC], [$have_gtkdoc]) +GP_CONFIG_MSG([build API docs with gtk-doc],[$gtkdoc_msg]) + + +# --------------------------------------------------------------------------- +# Give the user the possibility to install html documentation in a +# user-defined location. +# --------------------------------------------------------------------------- +AC_ARG_WITH([html-dir], +[AS_HELP_STRING([--with-html-dir=PATH], +[Where to install html docs [default=autodetect]])]) + +AC_MSG_CHECKING([for html dir]) +if test "x${with_html_dir}" = "x" ; then + htmldir="${docdir}/html" + AC_MSG_RESULT([${htmldir} (default)]) +else + htmldir="${with_html_dir}" + AC_MSG_RESULT([${htmldir} (from parameter)]) +fi +AC_SUBST([htmldir]) +apidocdir="${htmldir}/api" +AC_SUBST([apidocdir]) + +])dnl + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-dynamic-libraries.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-dynamic-libraries.m4 new file mode 100644 index 00000000..a83fc0f7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-dynamic-libraries.m4 @@ -0,0 +1,60 @@ +AC_DEFUN([GP_DYNAMIC_LIBRARIES],[dnl +dnl We require either of those +dnl AC_REQUIRE([AC_LIBTTDL_INSTALLABLE])dnl +dnl AC_REQUIRE([AC_LIBLTDL_CONVENIENCE])dnl +AC_REQUIRE([AC_LIBTOOL_DLOPEN])dnl +AC_REQUIRE([AC_PROG_LIBTOOL])dnl +dnl --------------------------------------------------------------------------- +dnl Check for libltdl: +dnl - lt_dlforeachfile has been introduced in libtool-1.4. +dnl - However, there are still systems out there running libtool-1.3. +dnl For those, we will use our shipped libltdl. This has the welcome +dnl side effect that we don't have to distinguish between libltdl 1.3 with +dnl and without the notorious segfault bug. +dnl - FIXME: In case we're using our own version, we have to check whether +dnl -ldl is required? +dnl --------------------------------------------------------------------------- +# $0 +ltdl_msg="no (not found or too old)" +have_ltdl=false +LIBS_save="$LIBS" +LIBS="$LIBLTDL" +AC_CHECK_LIB([ltdl], [lt_dlforeachfile],[ + CPPFLAGS_save="$CPPFLAGS" + CPPFLAGS="$LTDLINCL" + AC_CHECK_HEADER([ltdl.h],[ + AC_DEFINE([HAVE_LTDL],1,[whether we use libltdl]) + ltdl_msg="yes (from system)" + have_ltdl=: + ]) + CPPFLAGS="$CPPFLAGS_save" +]) +LIBS="$LIBS_save" +if "$have_ltdl"; then :; else + AC_MSG_CHECKING([for included libltdl]) + if test -d "$srcdir/libltdl"; then + LIBLTDL="\$(top_builddir)/libltdl/libltdlc.la" + LTDLINCL="-I\$(top_srcdir)/libltdl" + have_ltdl=: + ltdl_msg="yes (included)" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + AC_MSG_ERROR([ +*** Could not detect or configure libltdl. +]) + fi +fi +GP_CONFIG_MSG([libltdl],["${ltdl_msg}"]) +])dnl +dnl +dnl #################################################################### +dnl +dnl Please do not remove this: +dnl filetype: 2b993145-3256-47b4-84fd-ec4dcdf4fdf9 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-gettext-hack.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-gettext-hack.m4 new file mode 100644 index 00000000..3f5dbb72 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-gettext-hack.m4 @@ -0,0 +1,78 @@ +dnl +dnl GP_GETTEXT_HACK +dnl +dnl gettext hack, originally designed for libexif, libgphoto2, and Co. +dnl This creates a po/Makevars file with adequate values if the +dnl po/Makevars.template is present. +dnl +dnl Example usage: +dnl GP_GETTEXT_HACK([${PACKAGE_TARNAME}-${LIBFOO_CURRENT}], +dnl [Copyright Holder], +dnl [foo-translation@example.org]) +dnl ALL_LINGUAS="de es fr" +dnl AM_GNU_GETTEXT_VERSION([0.14.1]) +dnl AM_GNU_GETTEXT([external]) +dnl AM_PO_SUBDIRS() +dnl AM_ICONV() +dnl GP_GETTEXT_FLAGS +dnl +dnl You can leave out the GP_GETTEXT_HACK parameters if you want to, +dnl GP_GETTEXT_HACK will try fall back to sensible values in that case: +dnl + +AC_DEFUN([GP_GETTEXT_HACK], +[ +AC_BEFORE([$0], [AM_GNU_GETTEXT])dnl +AC_BEFORE([$0], [AM_GNU_GETTEXT_VERSION])dnl +m4_if([$1],[],[GETTEXT_PACKAGE="${PACKAGE_TARNAME}"],[GETTEXT_PACKAGE="$1"]) +AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], + [The gettext domain we're using]) +AC_SUBST([GETTEXT_PACKAGE]) +sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|" +m4_if([$2],[],[],[sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = $2|"]) +m4_ifval([$3],[ +if test -n "$PACKAGE_BUGREPORT"; then + sed_mb="${PACKAGE_BUGREPORT}" +else + AC_MSG_ERROR([ +*** Your configure.{ac,in} is wrong. +*** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax) +*** or give [GP_GETTEXT_HACK] the third parameter. +*** +]) +fi +],[ +sed_mb="$3" +]) +sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|" +# Not so sure whether this hack is all *that* evil... +AC_MSG_CHECKING([for po/Makevars requiring hack]) +if test -f "${srcdir}/po/Makevars.template"; then + sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars" + AC_MSG_RESULT([yes, done.]) +else + AC_MSG_RESULT([no]) +fi +]) + +AC_DEFUN([GP_GETTEXT_FLAGS], +[ +AC_REQUIRE([AM_GNU_GETTEXT]) +AC_REQUIRE([GP_CONFIG_INIT]) +if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then + AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl" +fi +GP_CONFIG_MSG([Use translations],[${USE_NLS}]) +if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then + GP_CONFIG_MSG([Use included libintl],[${BUILD_INCLUDED_LIBINTL}]) +fi +]) + +dnl Please do not remove this: +dnl filetype: 71ff3941-a5ae-4677-a369-d7cb01f92c81 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. + +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-internal-docs.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-internal-docs.m4 new file mode 100644 index 00000000..8593620a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-internal-docs.m4 @@ -0,0 +1,29 @@ +dnl +dnl +dnl +AC_DEFUN([GP_INTERNAL_DOCS],[dnl +# Whether to enable the internal docs build. +# +# This takes quite some time due to the generation of lots of call +# graphs, so it is disabled by default. +set_enable_internal_docs=no +AC_ARG_ENABLE([internal-docs], [dnl +AS_HELP_STRING([--enable-internal-docs], +[Build internal code docs if doxygen available])], [dnl +dnl If either --enable-foo nor --disable-foo were given, execute this. + if test "x$enableval" = xno \ + || test "x$enableval" = xoff \ + || test "x$enableval" = xfalse; + then + set_enable_internal_docs=no + elif test "x$enableval" = xyes \ + || test "x$enableval" = xon \ + || test "x$enableval" = xtrue + then + set_enable_internal_docs=yes + fi +]) +AC_MSG_CHECKING([whether to create internal code docs]) +AC_MSG_RESULT([${set_enable_internal_docs}]) +AM_CONDITIONAL([ENABLE_INTERNAL_DOCS], [test "x${set_enable_internal_docs}" = "xyes"]) +])dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-libltdl.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-libltdl.m4 new file mode 100644 index 00000000..2a37c930 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-libltdl.m4 @@ -0,0 +1,59 @@ +dnl Written by Hans Ulrich Niedermann +dnl LDFLAGS vs LIBS fix by Dan Nicholson +dnl +dnl We are using our own libltdl checks instead of AC_WITH_LTDL +dnl because we do not want to ship our own copy of libltdl any more. +dnl Not shipping libltdl makes it possible to ditch our own autogen.sh +dnl and relying on standard autoconf's "autoreconf". +dnl +dnl Look for external libltdl, not shipping internal libltdl. +AC_DEFUN([GP_LIB_LTDL],[dnl +AC_ARG_VAR([LTDLINCL],[CFLAGS for compiling with libltdl]) +AC_ARG_VAR([LIBLTDL],[LIBS to add for linking against libltdl]) +if test "x${LTDLINCL}${LIBLTDL}" = "x"; then +AC_CHECK_HEADER([ltdl.h], +[dnl +AC_CHECK_LIB([ltdl], [lt_dlinit],[dnl +LTDLINCL="" +LIBLTDL="-lltdl" +AC_DEFINE([HAVE_LTDL],[1],[Whether libltdl (of libtool fame) is present]) +],[dnl +AC_MSG_ERROR([ +$PACKAGE requires the ltdl library, included with libtool + +Please make sure that the proper development package is installed +(libltdl-dev, libtool-ltdl-devel, etc.) +])[]dnl +])dnl +]) +else + AC_MSG_CHECKING([for libltdl flags]) + AC_MSG_RESULT([set explicitly: ${LTDLINCL} ${LIBLTDL}]) +fi +AC_SUBST([LTDLINCL]) +AC_SUBST([LIBLTDL]) +dnl +dnl Make sure we can actually compile and link against libltdl +AC_LANG_PUSH([C]) +AC_MSG_CHECKING([that we can compile and link with libltdl]) +saved_CPPFLAGS="$CPPFLAGS" +saved_LIBS="$LIBS" +CPPFLAGS="$CPPFLAGS $LTDLINCL" +LIBS="$LIBS $LIBLTDL" +AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl +#include <stdlib.h> /* for NULL */ +#include <ltdl.h> /* for lt_* */ +],[dnl +int ret = lt_dlforeachfile("/usr/lib:/usr/local/lib", NULL, NULL); +])], [AC_MSG_RESULT([yes])], [dnl +AC_MSG_RESULT([no]) +AC_MSG_ERROR([cannot compile and link against libltdl +${PACKAGE_TARNAME} requires libltdl (the libtool dl* library), +but cannot compile and link against it. +Aborting. +]) +]) +CPPFLAGS="$saved_CPPFLAGS" +LIBS="$saved_LIBS" +AC_LANG_POP +])dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-docbook-xml.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-docbook-xml.m4 new file mode 100644 index 00000000..bec00c7f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-docbook-xml.m4 @@ -0,0 +1,46 @@ +dnl ------------------------------------------------------------------------ +dnl try to find xmlto (required for generation of man pages and html docs) +dnl ------------------------------------------------------------------------ +AC_DEFUN([GP_CHECK_DOCBOOK_XML], +[ + +AC_MSG_CHECKING([for XML catalogs]) +XML_CATALOG_FILES="`find /etc/xml /usr/share/xml /usr/share/sgml -type f \( -iname 'catalog.xml' -or -iname 'catalog' \) -print 2> /dev/null | while read file; do echo -n "$file "; done`" +if test "x$XML_CATALOG_FILES" = "x" +then + AC_MSG_RESULT([none found.]) +else + AC_MSG_RESULT([found ${XML_CATALOG_FILES}]) +fi +AC_SUBST(XML_CATALOG_FILES) + +#XML_DEBUG_CATALOG=0 +#AC_SUBST(XML_DEBUG_CATALOG) + +manual_msg="no (http://cyberelk.net/tim/xmlto/)" +try_xmlto=true +have_xmlto=false +AC_ARG_WITH(xmlto, [ --without-xmlto Don't use xmlto],[ + if test x$withval = xno; then + try_xmlto=false + fi]) +if $try_xmlto; then + AC_PATH_PROG(XMLTO,xmlto) + if test -n "${XMLTO}"; then + have_xmlto=true + manual_msg="yes" + PURE_XMLTO="$XMLTO" + if true || test "x$XML_CATALOG_FILES" = "x"; then + unset XML_CATALOG_FILES + XMLTO="${XMLTO} -m \$(top_srcdir)/src/xsl/custom.xsl" + else + XMLTO="env XML_CATALOG_FILES=\"${XML_CATALOG_FILES}\" ${XMLTO} -m ${top_srcdir}/src/xsl/custom.xsl" + fi + else + # in case anybody runs $(XMLTO) somewhere, we return false + XMLTO=false + fi +fi + +AM_CONDITIONAL(XMLTO, $have_xmlto) +]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-documentation.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-documentation.m4 new file mode 100644 index 00000000..cb7b4e86 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-documentation.m4 @@ -0,0 +1,329 @@ +dnl +dnl check where to install documentation +dnl +dnl determines documentation "root directory", i.e. the directory +dnl where all documentation will be placed in +dnl + +AC_DEFUN([GP_CHECK_DOCDIR], +[ + +AC_ARG_WITH(doc-dir, [ --with-doc-dir=PATH Where to install docs [default=autodetect]])dnl + +# check for the main ("root") documentation directory +AC_MSG_CHECKING([main docdir]) + +if test "x${with_doc_dir}" != "x" +then # docdir is given as parameter + docdir="${with_doc_dir}" + AC_MSG_RESULT([${docdir} (from parameter)]) +else # otherwise invent a docdir hopefully compatible with system policy + if test -d "/usr/share/doc" + then + maindocdir='${prefix}/share/doc' + AC_MSG_RESULT([${maindocdir} (FHS style)]) + elif test -d "/usr/doc" + then + maindocdir='${prefix}/doc' + AC_MSG_RESULT([${maindocdir} (old style)]) + else + maindocdir='${datadir}/doc' + AC_MSG_RESULT([${maindocdir} (default value)]) + fi + AC_MSG_CHECKING(package docdir) + # check whether to include package version into documentation path + # FIXME: doesn't work properly. + if ls -d /usr/{share/,}doc/*-[[]0-9[]]* > /dev/null 2>&1 + then + docdir="${maindocdir}/${PACKAGE}-${VERSION}" + AC_MSG_RESULT([${docdir} (redhat style)]) + else + docdir="${maindocdir}/${PACKAGE}" + AC_MSG_RESULT([${docdir} (default style)]) + fi +fi + +AC_SUBST(docdir) + +])dnl + +dnl Solaris hack for grep and tr +AC_DEFUN([GP_CHECK_TR], +[ +if test -n "`echo $host_os | grep '[sS]olaris'`"; then + TR=/usr/xpg4/bin/tr + GREP=/usr/xpg4/bin/grep +else + TR=tr + GREP=grep +fi +]) + +dnl +dnl check whether to build docs and where to: +dnl +dnl * determine presence of prerequisites (only gtk-doc for now) +dnl * determine destination directory for HTML files +dnl + +AC_DEFUN([GP_BUILD_DOCS], +[ +# doc dir has to be determined in advance +AC_REQUIRE([GP_CHECK_DOCDIR]) +AC_REQUIRE([GP_CHECK_GTK_DOC]) +AC_REQUIRE([GP_CHECK_FIG2DEV]) +AC_REQUIRE([GP_CHECK_DOCBOOK_XML]) +AC_REQUIRE([GP_CHECK_TR]) +AC_REQUIRE([GP_CHECK_PSTOIMG]) +AC_REQUIRE([GP_CHECK_DOT]) +AC_REQUIRE([GP_CHECK_W3M]) + +gphoto2xml='$(top_srcdir)/src/gphoto2.xml' +AC_SUBST(gphoto2xml) + +dnl --------------------------------------------------------------------------- +dnl Give the user the possibility to install documentation in +dnl user-defined locations. +dnl --------------------------------------------------------------------------- +AC_ARG_WITH(html-dir, [ --with-html-dir=PATH Where to install html docs [default=autodetect]]) +AC_MSG_CHECKING([for html dir]) +if test "x${with_html_dir}" = "x" ; then + htmldir="${docdir}/html" + AC_MSG_RESULT([${htmldir} (default)]) +else + htmldir="${with_html_dir}" + AC_MSG_RESULT([${htmldir} (from parameter)]) +fi +AC_SUBST(htmldir) + +AC_ARG_WITH(xhtml-dir, [ --with-xhtml-dir=PATH Where to install xhtml docs [default=autodetect]]) +AC_MSG_CHECKING([for xhtml dir]) +if test "x${with_xhtml_dir}" = "x" ; then + xhtmldir="${docdir}/xhtml" + AC_MSG_RESULT([${xhtmldir} (default)]) +else + xhtmldir="${with_xhtml_dir}" + AC_MSG_RESULT([${xhtmldir} (from parameter)]) +fi +AC_SUBST(xhtmldir) + +AC_ARG_WITH(html-nochunks-dir, [ --with-html-nochunks-dir=PATH Where to install html-nochunks docs [default=autodetect]]) +AC_MSG_CHECKING([for html-nochunks dir]) +if test "x${with_html_nochunks_dir}" = "x" ; then + htmlnochunksdir="${docdir}/html-nochunks" + AC_MSG_RESULT([${htmlnochunksdir} (default)]) +else + htmlnochunksdir="${with_html_nochunks_dir}" + AC_MSG_RESULT([${htmlnochunksdir} (from parameter)]) +fi +AC_SUBST(htmlnochunksdir) + +AC_ARG_WITH(xhtml-nochunks-dir, [ --with-xhtml-nochunks-dir=PATH Where to install xhtml-nochunks docs [default=autodetect]]) +AC_MSG_CHECKING([for xhtml-nochunks dir]) +if test "x${with_xhtml_nochunks_dir}" = "x" ; then + xhtmlnochunksdir="${docdir}/xhtml-nochunks" + AC_MSG_RESULT([${xhtmlnochunksdir} (default)]) +else + xhtmlnochunksdir="${with_xhtml_nochunks_dir}" + AC_MSG_RESULT([${xhtmlnochunksdir} (from parameter)]) +fi +AC_SUBST(xhtmlnochunksdir) + +AC_ARG_WITH(xml-dir, [ --with-xml-dir=PATH Where to install xml docs [default=autodetect]]) +AC_MSG_CHECKING([for xml dir]) +if test "x${with_xml_dir}" = "x" ; then + xmldir="${docdir}/xml" + AC_MSG_RESULT([${xmldir} (default)]) +else + xmldir="${with_xml_dir}" + AC_MSG_RESULT([${xmldir} (from parameter)]) +fi +AC_SUBST(xmldir) +xmlcssdir="${xmldir}/css" +AC_SUBST(xmlcssdir) + +AC_ARG_WITH(txt-dir, [ --with-txt-dir=PATH Where to install txt docs [default=autodetect]]) +AC_MSG_CHECKING([for txt dir]) +if test "x${with_txt_dir}" = "x" ; then + txtdir="${docdir}/txt" + AC_MSG_RESULT([${txtdir} (default)]) +else + txtdir="${with_txt_dir}" + AC_MSG_RESULT([${txtdir} (from parameter)]) +fi +AC_SUBST(txtdir) + +AC_ARG_WITH(man-dir, [ --with-man-dir=PATH Where to install man docs [default=autodetect]]) +AC_MSG_CHECKING([for man dir]) +if test "x${with_man_dir}" = "x" ; then + manmandir="${docdir}/man" + AC_MSG_RESULT([${manmandir} (default)]) +else + manmandir="${with_man_dir}" + AC_MSG_RESULT([${manmandir} (from parameter)]) +fi +AC_SUBST(manmandir) + +AC_ARG_WITH(pdf-dir, [ --with-pdf-dir=PATH Where to install pdf docs [default=autodetect]]) +AC_MSG_CHECKING([for pdf dir]) +if test "x${with_pdf_dir}" = "x" ; then + pdfdir="${docdir}/pdf" + AC_MSG_RESULT([${pdfdir} (default)]) +else + pdfdir="${with_pdf_dir}" + AC_MSG_RESULT([${pdfdir} (from parameter)]) +fi +AC_SUBST(pdfdir) + +AC_ARG_WITH(ps-dir, [ --with-ps-dir=PATH Where to install ps docs [default=autodetect]]) +AC_MSG_CHECKING([for ps dir]) +if test "x${with_ps_dir}" = "x" ; then + psdir="${docdir}/ps" + AC_MSG_RESULT([${psdir} (default)]) +else + psdir="${with_ps_dir}" + AC_MSG_RESULT([${psdir} (from parameter)]) +fi +AC_SUBST(psdir) + +AC_ARG_WITH(figure-dir, [ --with-figure-dir=PATH Where to install figures [default=autodetect]]) +AC_MSG_CHECKING([for figure dir]) +if test "x${with_figure_dir}" = "x" ; then + figuredir="${docdir}/figures" + AC_MSG_RESULT([${figuredir} (default)]) +else + figuredir="${with_figure_dir}" + AC_MSG_RESULT([${figuredir} (from parameter)]) +fi +AC_SUBST(figuredir) + +AC_ARG_WITH(screenshots-dir, [ --with-screenshots-dir=PATH Where to install screenshotss [default=autodetect]]) +AC_MSG_CHECKING([for screenshots dir]) +if test "x${with_screenshots_dir}" = "x" ; then + screenshotsdir="${docdir}/screenshots" + AC_MSG_RESULT([${screenshotsdir} (default)]) +else + screenshotsdir="${with_screenshots_dir}" + AC_MSG_RESULT([${screenshotsdir} (from parameter)]) +fi +AC_SUBST(screenshotsdir) +screenshotsgtkamdir="${screenshotsdir}/gtkam" +AC_SUBST(screenshotsgtkamdir) + +doc_formats_list='man html txt ps pdf' + +# initialize have_xmlto* to false +for i in $doc_formats_list; do + d=`echo $i | $TR A-Z a-z` + eval "have_xmlto$d=false" +done + +AC_MSG_CHECKING(checking doc formats) +AC_ARG_WITH(doc_formats, + [ --with-doc-formats=<list> create doc with format in <list>; ] + [ 'all' build all doc formats; ] + [ possible formats are: ] + [ man, html, ps, pdf ], + doc_formats="$withval", doc_formats="man html txt") + +if test "$doc_formats" = "all"; then + doc_formats=$doc_formats_list +else + doc_formats=`echo $doc_formats | sed 's/,/ /g'` +fi + +# set have_xmlto* to true if requested and possible +if $have_xmlto; then + for i in $doc_formats; do + if test -n "`echo $doc_formats_list | $GREP -E \"(^| )$i( |\$)\"`"; then + eval "have_xmlto$i=true" + else + AC_ERROR(Unknown doc format $i!) + fi + done + AC_MSG_RESULT($doc_formats) +else + AC_MSG_RESULT([deactivated (requires xmlto)]) +fi + +# Make sure that xmltopdf actually works +if $have_xmltopdf; then + AC_MSG_CHECKING([whether pdf creation works]) + oldcwd="$(pwd)" + top_srcdir() { echo "$srcdir"; } + mkdir test-pdf + cd test-pdf + cat>test-db.xml<<EOF +<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> +<book id="foobook"> + <bookinfo> + <title>Foo Title + + + Foo Chapter + + Foo bar blah blah + . + + + +EOF + ${PURE_XMLTO} pdf -o . test-db.xml --searchpath .. + if test -s test-db.pdf; then + AC_MSG_RESULT([yes, look at $(pwd)/test-db.pdf to verify]) + else + if $have_xmltopdf; then + AC_MSG_ERROR([PDF creation requested, but failed. See $(pwd) ...]) + else + AC_MSG_RESULT([no, but not requested]) + fi + fi + cd "$oldcwd" + unset top_srcdir +fi + +AM_CONDITIONAL(XMLTOHTML,$have_xmltohtml) +AM_CONDITIONAL(XMLTOMAN,$have_xmltoman) +AM_CONDITIONAL(XMLTOTXT,$have_xmltotxt) +AM_CONDITIONAL(XMLTOTXT2,$have_xmltotxt && $have_w3m) +AM_CONDITIONAL(XMLTOPDF,$have_xmltopdf) +AM_CONDITIONAL(XMLTOPS,$have_xmltops) + +# create list of supported formats +AC_MSG_CHECKING([for manual formats to re­create]) +xxx="" +manual_html="" +manual_pdf="" +manual_ps="" +if $have_xmltohtml; then + xxx="${xxx} html" +fi +if $have_xmltoman; then + xxx="${xxx} man" +fi +if $have_xmltopdf; then + xxx="${xxx} pdf" +fi +if $have_xmltops; then + xxx="${xxx} ps" +fi +if $have_xmltotxt; then + xxx="${xxx} txt" +fi +AC_SUBST(manual_html) +AC_SUBST(manual_pdf) +AC_SUBST(manual_ps) +AC_MSG_RESULT($xxx) + +if test "x$xxx" != "x" +then + if $have_fig2dev; then + fig_out="" + else + fig_out="out" + fi + manual_msg="in (${xxx} ) formats with${fig_out} figures" +fi + +])dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-fig2dev.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-fig2dev.m4 new file mode 100644 index 00000000..c61f2b7f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-fig2dev.m4 @@ -0,0 +1,40 @@ +dnl --------------------------------------------------------------------------- +dnl fig2dev: This program is needed for processing images. If not found, +dnl documentation can still be built, but without figures. +dnl --------------------------------------------------------------------------- +AC_DEFUN([GP_CHECK_FIG2DEV], +[ + +try_fig2dev=true +have_fig2dev=false +AC_ARG_WITH(fig2dev, [ --without-fig2dev Don't use fig2dev],[ + if test "x$withval" = "xno"; then + try_fig2dev=false + fi]) +if $try_fig2dev; then + AC_PATH_PROG(FIG2DEV,fig2dev) + if test -n "${FIG2DEV}"; then + have_fig2dev=true + fi +fi +if $have_fig2dev; then + AC_SUBST(FIG2DEV) + ${FIG2DEV} -L ps > /dev/null < /dev/null < /dev/null + if test $? != 0 || test ! -f tesseract.png; then + have_pstoimg=false + AC_MSG_RESULT(no) + else + AC_MSG_RESULT(yes) + fi + rm -f tesseract.png +fi +AM_CONDITIONAL(ENABLE_PSTOIMG, $have_pstoimg) + +]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-w3m.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-w3m.m4 new file mode 100644 index 00000000..e563d7b9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-manual-w3m.m4 @@ -0,0 +1,45 @@ +dnl --------------------------------------------------------------------------- +dnl w3m: This program is needed for converting HTML to text. +dnl --------------------------------------------------------------------------- +AC_DEFUN([GP_CHECK_W3M], +[ + +try_w3m=true +have_w3m=false +AC_ARG_WITH(w3m, [ --without-w3m Don't use w3m],[ + if test "x$withval" = "xno"; then + try_w3m=false + fi]) +if $try_w3m; then + AC_PATH_PROG(W3M,w3m) + if test -n "${W3M}"; then + have_w3m=true + fi +fi +if $have_w3m; then + AC_MSG_CHECKING([whether ${W3M} works]) + cat > html2text-test.xxxhtml 2> /dev/null < + +<h1>HTML2TEXT Test</h1> + + +

This is a test.

+ + +EOF + ${W3M} -T text/html -cols 78 -dump html2text-test.xxxhtml > html2text-test.txt + if test $? != 0 || test ! -f html2text-test.txt || test ! -s html2text-test.txt + then + have_w3m=false + AC_MSG_RESULT([no (see http://www.w3m.org/ or http://w3m.sourceforge.net/ ...)]) + W3M=false + AC_SUBST(W3M) + else + AC_MSG_RESULT([yes]) + AC_SUBST(W3M) + fi +fi +AM_CONDITIONAL([HAVE_W3M], [$have_w3m]) + +]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-packaging.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-packaging.m4 new file mode 100644 index 00000000..d85b418a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-packaging.m4 @@ -0,0 +1,81 @@ +AC_DEFUN([GPKG_CHECK_RPM], +[ +AC_ARG_WITH([rpmbuild], +[AS_HELP_STRING([--with-rpmbuild=PATH], +[Program to use for building RPMs])]) + +AC_MSG_CHECKING([for rpmbuild or rpm]) +if test -x "${with_rpmbuild}" +then + RPMBUILD="${with_rpmbuild}" + AC_MSG_RESULT([${RPMBUILD} (from parameter)]) +else + AC_MSG_RESULT([using autodetection]) + AC_CHECK_PROGS(RPMBUILD, [rpmbuild rpm], false) + AC_MSG_CHECKING([for rpmbuild or rpm]) + AC_MSG_RESULT([${RPMBUILD} (autodetected)]) +fi +AC_SUBST([RPMBUILD]) +AM_CONDITIONAL([ENABLE_RPM], [test "$RPMBUILD" != "false"]) + +]) + +AC_DEFUN([GPKG_CHECK_LINUX], +[ + # effective_target has to be determined in advance + AC_REQUIRE([AC_NEED_BYTEORDER_H]) + + is_linux=false + case "$effective_target" in + *linux*) + is_linux=true + ;; + esac + AM_CONDITIONAL([HAVE_LINUX], ["$is_linux"]) + + # required for docdir + # FIXME: Implicit dependency + # AC_REQUIRE(GP_CHECK_DOC_DIR) + + AC_ARG_WITH([hotplug-doc-dir], + [AS_HELP_STRING([--with-hotplug-doc-dir=PATH], + [Where to install hotplug scripts as docs [default=autodetect]])]) + + if "$is_linux"; then + AC_MSG_CHECKING([for hotplug doc dir]) + if test "x${with_hotplug_doc_dir}" != "x" + then # given as parameter + hotplugdocdir="${with_hotplug_doc_dir}" + AC_MSG_RESULT([${hotplugdocdir} (from parameter)]) + else # start at docdir + hotplugdocdir="${docdir}/linux-hotplug" + AC_MSG_RESULT([${hotplugdocdir} (default)]) + fi + else + hotplugdocdir="" + fi + + AC_ARG_WITH([hotplug-usermap-dir], + [AS_HELP_STRING([--with-hotplug-usermap-dir=PATH], + [Where to install hotplug scripts as docs [default=autodetect]])]) + + if "$is_linux"; then + AC_MSG_CHECKING([for hotplug usermap dir]) + if test "x${with_hotplug_usermap_dir}" != "x" + then # given as parameter + hotplugusermapdir="${with_hotplug_usermap_dir}" + AC_MSG_RESULT([${hotplugusermapdir} (from parameter)]) + else # start at docdir + hotplugusermapdir="${docdir}/linux-hotplug" + AC_MSG_RESULT([${hotplugusermapdir} (default)]) + fi + else + hotplugusermapdir="" + fi + + # Let us hope that automake does not create "" directories + # on non-Linux systems now. + AC_SUBST([hotplugdocdir]) + AC_SUBST([hotplugusermapdir]) +]) + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-pkg-config.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-pkg-config.m4 new file mode 100644 index 00000000..531bfe47 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-pkg-config.m4 @@ -0,0 +1,42 @@ +dnl @synopsis GP_PKG_CONFIG +dnl +dnl If you want to set the PKG_CONFIG_PATH, best do so before +dnl calling GP_PKG_CONFIG +AC_DEFUN([GP_PKG_CONFIG],[ +# +# [GP_PKG_CONFIG] +# +AC_ARG_VAR([PKG_CONFIG],[pkg-config package config utility]) +export PKG_CONFIG +AC_ARG_VAR([PKG_CONFIG_PATH],[directory where pkg-config looks for *.pc files]) +export PKG_CONFIG_PATH + +AC_MSG_CHECKING([PKG_CONFIG_PATH]) +if test "x${PKG_CONFIG_PATH}" = "x"; then + AC_MSG_RESULT([empty]) +else + AC_MSG_RESULT([${PKG_CONFIG_PATH}]) +fi + +dnl AC_REQUIRE([PKG_CHECK_MODULES]) +AC_PATH_PROG([PKG_CONFIG],[pkg-config],[false]) +if test "$PKG_CONFIG" = "false"; then +AC_MSG_ERROR([ +*** Build requires pkg-config +*** +*** Possible solutions: +*** - set PKG_CONFIG to where your pkg-config is located +*** - set PATH to include the directory where pkg-config is installed +*** - get it from http://freedesktop.org/software/pkgconfig/ and install it +]) +fi +])dnl + +dnl Please do not remove this: +dnl filetype: d87b877b-80ec-447c-b042-21ec4a27c6f0 +dnl I use this to find all the different instances of this file which +dnl are supposed to be synchronized. + +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-references.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-references.m4 new file mode 100644 index 00000000..71ff4477 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-references.m4 @@ -0,0 +1,48 @@ +dnl +dnl Define external references +dnl +dnl Define once, use many times. +dnl No more URLs and Mail addresses in translated strings and stuff. +dnl + +AC_DEFUN([GP_REF],[ +AC_SUBST([$1],["$2"]) +AC_DEFINE_UNQUOTED([$1],["$2"],[$3]) +]) + +AC_DEFUN([GP_REFERENCES], +[ + +GP_REF( [URL_GPHOTO_HOME], + [http://www.gphoto.org/], + [gphoto project home page])dnl + +GP_REF( [URL_GPHOTO_PROJECT], + [https://github.com/gphoto], + [gphoto github project page]) + +GP_REF( [URL_DIGICAM_LIST], + [http://www.teaser.fr/~hfiguiere/linux/digicam.html], + [camera list with support status]) + +GP_REF( [URL_JPHOTO_HOME], + [http://jphoto.sourceforge.net/], + [jphoto home page]) + +GP_REF( [URL_USB_MASSSTORAGE], + [http://www.linux-usb.org/USB-guide/x498.html], + [information about using USB mass storage]) + +GP_REF( [MAIL_GPHOTO_DEVEL], + [], + [gphoto development mailing list]) + +GP_REF( [MAIL_GPHOTO_USER], + [], + [gphoto user mailing list]) + +GP_REF( [MAIL_GPHOTO_TRANSLATION], + [], + [gphoto translation mailing list]) + +]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-stdint.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-stdint.m4 new file mode 100644 index 00000000..d3e59249 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-stdint.m4 @@ -0,0 +1,732 @@ +dnl AC_NEED_STDINT_H ( HEADER-TO-GENERATE ) +dnl Originally written 2001 by Dan Fandrich +dnl My contribution is hereby placed into the public domain. +dnl No warranty is expressed or implied. +dnl +dnl Look for a header file that defines size-specific integer types like the +dnl ones recommended to be in stdint.h in the C99 standard (e.g. uint32_t). +dnl This is a dumbed-down version of the macro of the same name in the file +dnl ac_need_stdint_h.m4 which is part of the ac-archive, available at +dnl (also, another macro +dnl AC_CREATE_STDINT_H by the same author). This version is not as smart, +dnl but works on older autoconf versions and has a different license. + +dnl AX_CHECK_DEFINED_TYPE ( TYPE, FILE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND ) +dnl This is similar to _AC_CHECK_TYPE_NEW (a.k.a. new syntax version of +dnl AC_CHECK_TYPE) in autoconf 2.50 but works on older versions +AC_DEFUN([AX_CHECK_DEFINED_TYPE], +[AC_MSG_CHECKING([for $1 in $2]) +AC_EGREP_CPP(changequote(<<,>>)dnl +<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl +changequote([,]), [#include <$2>], +ac_cv_type_$1=yes, ac_cv_type_$1=no)dnl +AC_MSG_RESULT($ac_cv_type_$1) +if test $ac_cv_type_$1 = yes; then + $3 +else + $4 +fi +]) + +dnl Look for a header file that defines size-specific integer types +AC_DEFUN([AX_NEED_STDINT_H], +[ +ac_dir=`AS_DIRNAME(["$1"])` +if test "$ac_dir" != "$1" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && AS_MKDIR_P(["$ac_dir"]) +fi + +AX_CHECK_DEFINED_TYPE(uint8_t, +stdint.h, +[ +cat > "$1" < +EOF], +[AX_CHECK_DEFINED_TYPE(uint8_t, +inttypes.h, +[cat > "$1" < +EOF], +[AX_CHECK_DEFINED_TYPE(uint8_t, +sys/types.h, +[cat > "$1" < +EOF], +[AX_CHECK_DEFINED_TYPE(u_int8_t, +sys/types.h, +[cat > "$1" < +typedef u_int8_t uint8_t; +typedef u_int16_t uint16_t; +typedef u_int32_t uint32_t; +EOF + +AX_CHECK_DEFINED_TYPE(u_int64_t, +sys/types.h, +[cat >> "$1" <> "$1" <]) + AC_CHECK_TYPE(uint64_t,[and64="/uint64_t"],[and64=""],[#include<$i>]) + m4_ifvaln([$1],[$1]) break + done + AC_MSG_CHECKING([for stdint uintptr_t]) + ]) +]) + +AC_DEFUN([AX_CHECK_HEADER_STDINT_O],[ +AC_CACHE_CHECK([for stdint uint32_t], [ac_cv_header_stdint_o],[ + ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) + AC_MSG_RESULT([(..)]) + for i in m4_ifval([$1],[$1],[inttypes.h sys/inttypes.h stdint.h]) ; do + unset ac_cv_type_uint32_t + unset ac_cv_type_uint64_t + AC_CHECK_TYPE(uint32_t,[ac_cv_header_stdint_o=$i],continue,[#include <$i>]) + AC_CHECK_TYPE(uint64_t,[and64="/uint64_t"],[and64=""],[#include<$i>]) + m4_ifvaln([$1],[$1]) break + break; + done + AC_MSG_CHECKING([for stdint uint32_t]) + ]) +]) + +AC_DEFUN([AX_CHECK_HEADER_STDINT_U],[ +AC_CACHE_CHECK([for stdint u_int32_t], [ac_cv_header_stdint_u],[ + ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) + AC_MSG_RESULT([(..)]) + for i in m4_ifval([$1],[$1],[sys/types.h inttypes.h sys/inttypes.h]) ; do + unset ac_cv_type_u_int32_t + unset ac_cv_type_u_int64_t + AC_CHECK_TYPE(u_int32_t,[ac_cv_header_stdint_u=$i],continue,[#include <$i>]) + AC_CHECK_TYPE(u_int64_t,[and64="/u_int64_t"],[and64=""],[#include<$i>]) + m4_ifvaln([$1],[$1]) break + break; + done + AC_MSG_CHECKING([for stdint u_int32_t]) + ]) +]) + +AC_DEFUN([AX_CREATE_STDINT_H], +[# ------ AX CREATE STDINT H ------------------------------------- +AC_MSG_CHECKING([for stdint types]) +ac_stdint_h=`echo ifelse($1, , _stdint.h, $1)` +# try to shortcircuit - if the default include path of the compiler +# can find a "stdint.h" header then we assume that all compilers can. +AC_CACHE_VAL([ac_cv_header_stdint_t],[ +old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" +old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" +old_CFLAGS="$CFLAGS" ; CFLAGS="" +AC_TRY_COMPILE([#include ],[int_least32_t v = 0;], +[ac_cv_stdint_result="(assuming C99 compatible system)" + ac_cv_header_stdint_t="stdint.h"; ], +[ac_cv_header_stdint_t=""]) +CXXFLAGS="$old_CXXFLAGS" +CPPFLAGS="$old_CPPFLAGS" +CFLAGS="$old_CFLAGS" ]) + +v="... $ac_cv_header_stdint_h" +if test "$ac_stdint_h" = "stdint.h" ; then + AC_MSG_RESULT([(are you sure you want them in ./stdint.h?)]) +elif test "$ac_stdint_h" = "inttypes.h" ; then + AC_MSG_RESULT([(are you sure you want them in ./inttypes.h?)]) +elif test "_$ac_cv_header_stdint_t" = "_" ; then + AC_MSG_RESULT([(putting them into $ac_stdint_h)$v]) +else + ac_cv_header_stdint="$ac_cv_header_stdint_t" + AC_MSG_RESULT([$ac_cv_header_stdint (shortcircuit)]) +fi + +if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. + +dnl .....intro message done, now do a few system checks..... +dnl btw, all old CHECK_TYPE macros do automatically "DEFINE" a type, +dnl therefore we use the autoconf implementation detail CHECK_TYPE_NEW +dnl instead that is triggered with 3 or more arguments (see types.m4) + +inttype_headers=`echo $2 | sed -e 's/,/ /g'` + +ac_cv_stdint_result="(no helpful system typedefs seen)" +AX_CHECK_HEADER_STDINT_X(dnl + stdint.h inttypes.h sys/inttypes.h $inttype_headers, + ac_cv_stdint_result="(seen uintptr_t$and64 in $i)") + +if test "_$ac_cv_header_stdint_x" = "_" ; then +AX_CHECK_HEADER_STDINT_O(dnl, + inttypes.h sys/inttypes.h stdint.h $inttype_headers, + ac_cv_stdint_result="(seen uint32_t$and64 in $i)") +fi + +if test "_$ac_cv_header_stdint_x" = "_" ; then +if test "_$ac_cv_header_stdint_o" = "_" ; then +AX_CHECK_HEADER_STDINT_U(dnl, + sys/types.h inttypes.h sys/inttypes.h $inttype_headers, + ac_cv_stdint_result="(seen u_int32_t$and64 in $i)") +fi fi + +dnl if there was no good C99 header file, do some typedef checks... +if test "_$ac_cv_header_stdint_x" = "_" ; then + AC_MSG_CHECKING([for stdint datatype model]) + AC_MSG_RESULT([(..)]) + AX_CHECK_DATA_MODEL +fi + +if test "_$ac_cv_header_stdint_x" != "_" ; then + ac_cv_header_stdint="$ac_cv_header_stdint_x" +elif test "_$ac_cv_header_stdint_o" != "_" ; then + ac_cv_header_stdint="$ac_cv_header_stdint_o" +elif test "_$ac_cv_header_stdint_u" != "_" ; then + ac_cv_header_stdint="$ac_cv_header_stdint_u" +else + ac_cv_header_stdint="stddef.h" +fi + +AC_MSG_CHECKING([for extra inttypes in chosen header]) +AC_MSG_RESULT([($ac_cv_header_stdint)]) +dnl see if int_least and int_fast types are present in _this_ header. +unset ac_cv_type_int_least32_t +unset ac_cv_type_int_fast32_t +AC_CHECK_TYPE(int_least32_t,,,[#include <$ac_cv_header_stdint>]) +AC_CHECK_TYPE(int_fast32_t,,,[#include<$ac_cv_header_stdint>]) +AC_CHECK_TYPE(intmax_t,,,[#include <$ac_cv_header_stdint>]) + +fi # shortcircut to system "stdint.h" +# ------------------ PREPARE VARIABLES ------------------------------ +if test "$GCC" = "yes" ; then +ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` +else +ac_cv_stdint_message="using $CC" +fi + +AC_MSG_RESULT([make use of $ac_cv_header_stdint in $ac_stdint_h dnl +$ac_cv_stdint_result]) + +dnl ----------------------------------------------------------------- +# ----------------- DONE inttypes.h checks START header ------------- +AC_CONFIG_COMMANDS([$ac_stdint_h],[ +AC_MSG_NOTICE(creating $ac_stdint_h : $_ac_stdint_h) +ac_stdint=$tmp/_stdint.h + +echo "#ifndef" $_ac_stdint_h >$ac_stdint +echo "#define" $_ac_stdint_h "1" >>$ac_stdint +echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint +echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint +echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint +if test "_$ac_cv_header_stdint_t" != "_" ; then +echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint +echo "#include " >>$ac_stdint +echo "#endif" >>$ac_stdint +echo "#endif" >>$ac_stdint +else + +cat >>$ac_stdint < +#else +#include + +/* .................... configured part ............................ */ + +STDINT_EOF + +echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint +if test "_$ac_cv_header_stdint_x" != "_" ; then + ac_header="$ac_cv_header_stdint_x" + echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint +else + echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint +fi + +echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint +if test "_$ac_cv_header_stdint_o" != "_" ; then + ac_header="$ac_cv_header_stdint_o" + echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint +else + echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint +fi + +echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint +if test "_$ac_cv_header_stdint_u" != "_" ; then + ac_header="$ac_cv_header_stdint_u" + echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint +else + echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint +fi + +echo "" >>$ac_stdint + +if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then + echo "#include <$ac_header>" >>$ac_stdint + echo "" >>$ac_stdint +fi fi + +echo "/* which 64bit typedef has been found */" >>$ac_stdint +if test "$ac_cv_type_uint64_t" = "yes" ; then +echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint +fi +if test "$ac_cv_type_u_int64_t" = "yes" ; then +echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint +fi +echo "" >>$ac_stdint + +echo "/* which type model has been detected */" >>$ac_stdint +if test "_$ac_cv_char_data_model" != "_" ; then +echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint +echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint +else +echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint +echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint +fi +echo "" >>$ac_stdint + +echo "/* whether int_least types were detected */" >>$ac_stdint +if test "$ac_cv_type_int_least32_t" = "yes"; then +echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint +fi +echo "/* whether int_fast types were detected */" >>$ac_stdint +if test "$ac_cv_type_int_fast32_t" = "yes"; then +echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint +fi +echo "/* whether intmax_t type was detected */" >>$ac_stdint +if test "$ac_cv_type_intmax_t" = "yes"; then +echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint +fi +echo "" >>$ac_stdint + + cat >>$ac_stdint <= 199901L +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef long long int64_t; +typedef unsigned long long uint64_t; + +#elif !defined __STRICT_ANSI__ +#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ +#define _HAVE_UINT64_T +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; + +#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ +/* note: all ELF-systems seem to have loff-support which needs 64-bit */ +#if !defined _NO_LONGLONG +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef long long int64_t; +typedef unsigned long long uint64_t; +#endif + +#elif defined __alpha || (defined __mips && defined _ABIN32) +#if !defined _NO_LONGLONG +typedef long int64_t; +typedef unsigned long uint64_t; +#endif + /* compiler/cpu type to define int64_t */ +#endif +#endif +#endif + +#if defined _STDINT_HAVE_U_INT_TYPES +/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ +typedef u_int8_t uint8_t; +typedef u_int16_t uint16_t; +typedef u_int32_t uint32_t; + +/* glibc compatibility */ +#ifndef __int8_t_defined +#define __int8_t_defined +#endif +#endif + +#ifdef _STDINT_NEED_INT_MODEL_T +/* we must guess all the basic types. Apart from byte-adressable system, */ +/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ +/* (btw, those nibble-addressable systems are way off, or so we assume) */ + +dnl /* have a look at "64bit and data size neutrality" at */ +dnl /* http://unix.org/version2/whatsnew/login_64bit.html */ +dnl /* (the shorthand "ILP" types always have a "P" part) */ + +#if defined _STDINT_BYTE_MODEL +#if _STDINT_LONG_MODEL+0 == 242 +/* 2:4:2 = IP16 = a normal 16-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned long uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef long int32_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 +/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */ +/* 4:4:4 = ILP32 = a normal 32-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef int int32_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 +/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */ +/* 4:8:8 = LP64 = a normal 64-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef int int32_t; +#endif +/* this system has a "long" of 64bit */ +#ifndef _HAVE_UINT64_T +#define _HAVE_UINT64_T +typedef unsigned long uint64_t; +typedef long int64_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 448 +/* LLP64 a 64-bit system derived from a 32-bit system */ +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int16_t; +typedef int int32_t; +#endif +/* assuming the system has a "long long" */ +#ifndef _HAVE_UINT64_T +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef unsigned long long uint64_t; +typedef long long int64_t; +#endif +#else +#define _STDINT_NO_INT32_T +#endif +#else +#define _STDINT_NO_INT8_T +#define _STDINT_NO_INT32_T +#endif +#endif + +/* + * quote from SunOS-5.8 sys/inttypes.h: + * Use at your own risk. As of February 1996, the committee is squarely + * behind the fixed sized types; the "least" and "fast" types are still being + * discussed. The probability that the "fast" types may be removed before + * the standard is finalized is high enough that they are not currently + * implemented. + */ + +#if defined _STDINT_NEED_INT_LEAST_T +typedef int8_t int_least8_t; +typedef int16_t int_least16_t; +typedef int32_t int_least32_t; +#ifdef _HAVE_UINT64_T +typedef int64_t int_least64_t; +#endif + +typedef uint8_t uint_least8_t; +typedef uint16_t uint_least16_t; +typedef uint32_t uint_least32_t; +#ifdef _HAVE_UINT64_T +typedef uint64_t uint_least64_t; +#endif + /* least types */ +#endif + +#if defined _STDINT_NEED_INT_FAST_T +typedef int8_t int_fast8_t; +typedef int int_fast16_t; +typedef int32_t int_fast32_t; +#ifdef _HAVE_UINT64_T +typedef int64_t int_fast64_t; +#endif + +typedef uint8_t uint_fast8_t; +typedef unsigned uint_fast16_t; +typedef uint32_t uint_fast32_t; +#ifdef _HAVE_UINT64_T +typedef uint64_t uint_fast64_t; +#endif + /* fast types */ +#endif + +#ifdef _STDINT_NEED_INTMAX_T +#ifdef _HAVE_UINT64_T +typedef int64_t intmax_t; +typedef uint64_t uintmax_t; +#else +typedef long intmax_t; +typedef unsigned long uintmax_t; +#endif +#endif + +#ifdef _STDINT_NEED_INTPTR_T +#ifndef __intptr_t_defined +#define __intptr_t_defined +/* we encourage using "long" to store pointer values, never use "int" ! */ +#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 +typedef unsinged int uintptr_t; +typedef int intptr_t; +#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 +typedef unsigned long uintptr_t; +typedef long intptr_t; +#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T +typedef uint64_t uintptr_t; +typedef int64_t intptr_t; +#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ +typedef unsigned long uintptr_t; +typedef long intptr_t; +#endif +#endif +#endif + +/* The ISO C99 standard specifies that in C++ implementations these + should only be defined if explicitly requested. */ +#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS +#ifndef UINT32_C + +/* Signed. */ +# define INT8_C(c) c +# define INT16_C(c) c +# define INT32_C(c) c +# ifdef _HAVE_LONGLONG_UINT64_T +# define INT64_C(c) c ## L +# else +# define INT64_C(c) c ## LL +# endif + +/* Unsigned. */ +# define UINT8_C(c) c ## U +# define UINT16_C(c) c ## U +# define UINT32_C(c) c ## U +# ifdef _HAVE_LONGLONG_UINT64_T +# define UINT64_C(c) c ## UL +# else +# define UINT64_C(c) c ## ULL +# endif + +/* Maximal type. */ +# ifdef _HAVE_LONGLONG_UINT64_T +# define INTMAX_C(c) c ## L +# define UINTMAX_C(c) c ## UL +# else +# define INTMAX_C(c) c ## LL +# define UINTMAX_C(c) c ## ULL +# endif + + /* literalnumbers */ +#endif +#endif + +/* These limits are merily those of a two complement byte-oriented system */ + +/* Minimum of signed integral types. */ +# define INT8_MIN (-128) +# define INT16_MIN (-32767-1) +# define INT32_MIN (-2147483647-1) +# define INT64_MIN (-__INT64_C(9223372036854775807)-1) +/* Maximum of signed integral types. */ +# define INT8_MAX (127) +# define INT16_MAX (32767) +# define INT32_MAX (2147483647) +# define INT64_MAX (__INT64_C(9223372036854775807)) + +/* Maximum of unsigned integral types. */ +# define UINT8_MAX (255) +# define UINT16_MAX (65535) +# define UINT32_MAX (4294967295U) +# define UINT64_MAX (__UINT64_C(18446744073709551615)) + +/* Minimum of signed integral types having a minimum size. */ +# define INT_LEAST8_MIN INT8_MIN +# define INT_LEAST16_MIN INT16_MIN +# define INT_LEAST32_MIN INT32_MIN +# define INT_LEAST64_MIN INT64_MIN +/* Maximum of signed integral types having a minimum size. */ +# define INT_LEAST8_MAX INT8_MAX +# define INT_LEAST16_MAX INT16_MAX +# define INT_LEAST32_MAX INT32_MAX +# define INT_LEAST64_MAX INT64_MAX + +/* Maximum of unsigned integral types having a minimum size. */ +# define UINT_LEAST8_MAX UINT8_MAX +# define UINT_LEAST16_MAX UINT16_MAX +# define UINT_LEAST32_MAX UINT32_MAX +# define UINT_LEAST64_MAX UINT64_MAX + + /* shortcircuit*/ +#endif + /* once */ +#endif +#endif +STDINT_EOF +fi + if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then + AC_MSG_NOTICE([$ac_stdint_h is unchanged]) + else + ac_dir=`AS_DIRNAME(["$ac_stdint_h"])` + AS_MKDIR_P(["$ac_dir"]) + rm -f $ac_stdint_h + mv $ac_stdint $ac_stdint_h + fi +],[# variables for create stdint.h replacement +PACKAGE="$PACKAGE" +VERSION="$VERSION" +ac_stdint_h="$ac_stdint_h" +_ac_stdint_h=AS_TR_CPP(_$PACKAGE-$ac_stdint_h) +ac_cv_stdint_message="$ac_cv_stdint_message" +ac_cv_header_stdint_t="$ac_cv_header_stdint_t" +ac_cv_header_stdint_x="$ac_cv_header_stdint_x" +ac_cv_header_stdint_o="$ac_cv_header_stdint_o" +ac_cv_header_stdint_u="$ac_cv_header_stdint_u" +ac_cv_type_uint64_t="$ac_cv_type_uint64_t" +ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" +ac_cv_char_data_model="$ac_cv_char_data_model" +ac_cv_long_data_model="$ac_cv_long_data_model" +ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" +ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" +ac_cv_type_intmax_t="$ac_cv_type_intmax_t" +]) +]) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-subpackage.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-subpackage.m4 new file mode 100644 index 00000000..afabd8b1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-subpackage.m4 @@ -0,0 +1,5 @@ +AC_DEFUN([GP_SUBPACKAGE], +[ +AC_ARG_VAR([enable_subpackage_][$1], [enable subpackage ][$1][ (true or false)]) +test "x${[enable_subpackage_][$1]}" = "x" && [enable_subpackage_][$1]=true +])dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-udev.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-udev.m4 new file mode 100644 index 00000000..ef5ecb52 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-udev.m4 @@ -0,0 +1,9 @@ +dnl Determines whether UDEV code should be compiled. +dnl $1 contains shell code that returns 0 if all other prerequisites (like +dnl libusb) are available. +AC_DEFUN([GP_UDEV],[dnl +if test "x${udevscriptdir}" = "x"; then udevscriptdir="\${libdir}/udev"; fi +AC_ARG_VAR([udevscriptdir],[Directory where udev scripts like check-ptp-camera will be installed]) +AC_SUBST([udevscriptdir]) +AM_CONDITIONAL([HAVE_UDEV],[if echo "$host"|grep -i linux >/dev/null ; then $1; fi ]) +])dnl diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-va-copy.m4 b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-va-copy.m4 new file mode 100644 index 00000000..8b1ac85c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gp-va-copy.m4 @@ -0,0 +1,57 @@ +dnl @synopsis GP_VA_COPY +dnl +dnl Checks whether one of these compiles and links: +dnl 1. va_copy() +dnl 2. __va_copy() +dnl 3. fallback +dnl +dnl In case of 1 or 2, AC_DEFINE(HAVE_VA_COPY). +dnl In case of 2, AC_DEFINE(va_copy,__va_copy) +dnl +dnl In code, use it like this +dnl #ifdef HAVE_VA_COPY +dnl ... code with va_copy ... +dnl #else +dnl ... code without va_copy or with error ... +dnl #endif +dnl +AC_DEFUN([GP_VA_COPY],[dnl +dnl +AC_CHECK_HEADER([stdarg.h],[],[ + AC_MSG_ERROR([ +Building $PACKAGE_NAME requires . +]) +]) +dnl +have_va_copy=no +AC_TRY_LINK([ + #include +],[ + va_list a,b; + va_copy(a,b); +],[ + have_va_copy="va_copy" +],[ + AC_TRY_LINK([ + #include + ],[ + va_list a,b; + __va_copy(a,b); + ],[ + have_va_copy="__va_copy" + AC_DEFINE([va_copy],[__va_copy],[__va_copy() was the originally proposed name]) + ]) +]) +dnl +AC_MSG_CHECKING([for va_copy() or replacement]) +AC_MSG_RESULT([$have_va_copy]) +dnl +if test "x$have_va_copy" != "xno"; then + AC_DEFINE([HAVE_VA_COPY],1,[Whether we have the va_copy() function]) +fi +])dnl +dnl +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gphoto-m4-sync b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gphoto-m4-sync new file mode 100644 index 00000000..f324d4df --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto-m4/gphoto-m4-sync @@ -0,0 +1,551 @@ +#!/usr/bin/env python3 +# +# Usage: gphoto-m4-sync [--diff] ... +# gphoto-m4-sync --help +# +# The gphoto-m4-sync script helps with keeping track of which files in +# which gphoto-m4 tree copy differ from the original gphoto-m4 tree. +# +# In normal operation, gphoto-m4-sync will search for gphoto-m4 +# directories anywhere in the directory trees given on the command +# line and compare the gphoto-m4 tree from which gphoto-m4-sync was +# started to those other trees. +# +# When not given a --diff options, gphoto-m4-sync will print a human +# readable report on which files are different in which gphoto-m4 +# tree. +# +# Options: +# +# --diff Print a list of 'diff' command lines to compare +# the different files instead. Pipe into something like +# "| sh | less" to execute. +# +# --help Print this help message. +# +# Exit code: +# +# 0 when no differences have been found among the gphoto-m4 trees +# 1 when any differences have been found among the gphoto-m4 trees +# 2 any other error + + +######################################################################## + + +import hashlib +import os +import sys + + +######################################################################## + + +class File(object): + + def __init__(self, tree, fname): + self.tree = tree + self.fname = fname + self.fpath = os.path.join(tree.top, fname) + + self.statinfo = os.stat(self.fpath) + + m = hashlib.sha1() + m.update(open(self.fpath, 'rb').read()) + self.digest = m.hexdigest() + + def __repr__(self): + return 'File(%s,%s)' % (repr(self.fname), repr(self.digest)) + + def __str__(self): + return '%s %s' % (self.digest, self.fname) + + +######################################################################## + + +class BaseTree(object): + + def __init__(self, top): + self.top = os.path.abspath(top) + self._files = self.__scan_files() + + def __repr__(self): + return '%s(%s)[%s]' % (self.__class__.__name__, self.top, self._files) + + def __iter__(self): + return sorted(self._files).__iter__() + + def __getitem__(self, key): + return self._files[key] + + def __scan_files(self): + files = {} + for dirpath, dirnames, filenames in os.walk(self.top, topdown=True): + try: # do not descend into these directories + dirnames.remove('.git') + except ValueError: + pass + + for fname in filenames: + # Ignore a bunch of files + if fname[-1] == '~': + continue + if fname.startswith('.git'): + continue + if fname in ['Makefile.in', 'Makefile']: + continue + + abs_fname = os.path.join(dirpath, fname) + rel_fname = os.path.relpath(abs_fname, start=self.top) + + files[rel_fname] = File(self, rel_fname) + return files + + +######################################################################## + + +class GitTree(BaseTree): + + def __init__(self, top): + path = os.path.join(top, '.git') + if not os.path.exists(path): + raise AssertionError("File or directory does not exist: %s" % + repr(path)) + super(GitTree, self).__init__(top) + + +######################################################################## + + +class NotGitTree(BaseTree): + + def __init__(self, top): + path = os.path.join(top, '.git') + if os.path.exists(path): + raise AssertionError("File or directory does exist: %s" % + repr(path)) + super(NotGitTree, self).__init__(top) + + +######################################################################## + + +def scan_tree(top): + for dirpath, dirnames, filenames in os.walk(top): + if os.path.basename(dirpath) == 'gphoto-m4': + if 'gp-camlibs.m4' not in filenames: + continue + yield (dirpath, NotGitTree(dirpath)) + + +######################################################################## + + +def print_help(): + skip_line = True + skip_lines = ['#', '# '] + for line in open(__file__, 'r'): + if line[-1] == '\n': + line = line[:-1] + + if line.startswith('#!'): + continue + elif skip_line and (line in skip_lines): + continue + elif skip_line and (line not in skip_lines): + skip_line = False + elif line == '': + break + + if not skip_line: + print(line[2:]) + + +######################################################################## + + +class ResultTable(object): + + def __init__(self): + self.lines = {} + self.files_with_differences = 0 + self.differences = 0 + + def __setitem__(self, key, value): + assert(key not in self.lines) + self.lines[key] = value + if value.file_versions > 0: + self.files_with_differences += 1 + self.differences += value.file_versions + + def __getitem__(self, key): + assert(self.files_with_differences != None) + return self.lines[key] + + def items(self): + for k in sorted(self.lines.keys()): + v = self.lines[k] + yield k,v + + def close(self): + pass + + +######################################################################## + + +class ResultLine(object): + + def __init__(self, fname): + self.fname = fname + + self.__digest_map = {} + self.__digests = {} + self.__digest_list = None + + self.__flags = {} + + self.__fpaths = {} + + def set_digest(self, index, digest): + self.__digest_map[index] = digest + self.__digests[digest] = True + + def close(self, file_versions): + self.file_versions = file_versions + self.__digest_list = sorted(self.__digests.keys()) + assert(len(self.__digest_list) > 0) + if file_versions == 0: + # All files are equal, so we do not need different characters + # to distinguish different digest values - a space will do as + # well. + self.__digest_map = {} + + def get_digest(self, index): + if self.__digest_list == None: + raise RuntimeError("You need to call ResultLine.close() before Result_Line.get_digest()") + if index in self.__digest_map: + dig = self.__digest_map[index] + idx = self.__digest_list.index(dig) + return 'abcdefghijklmnopqrstuvwxyz'[idx] + else: + return ' ' + + def set_flag(self, index, flag, fpath): + self.__flags[index] = flag + self.__fpaths[index] = fpath + + def get_flag(self, index): + return self.__flags[index] + + def get_fpath(self, index): + return self.__fpaths[index] + + +######################################################################## + + +def cmd_print_report(result_table, all_files, treelist, trees): + # Enumerate list of trees + print("Trees (0 is the original tree):") + for i, tree in enumerate(treelist): + print(" %d. %s" % (i,tree)) + print() + + # Determine maximum length of file name + fn_maxlen = 0 + for fn in all_files: + if len(fn) > fn_maxlen: + fn_maxlen = len(fn) + + fmt = " %%-%ds " % fn_maxlen + print("File table:") + + # print table head + print(fmt % '', end='') + print((' {0:-^%d}' % (3*len(treelist)-1)).format('Tree')) + print(fmt % 'file name', end='') + for i, tree in enumerate(treelist): + print(' %2d' % i, end='') + print(' file diffs') + sep_line = (' ' + + '-' * (fn_maxlen + 1 + 3*len(treelist) + 2 + len('file diffs'))) + print(sep_line) + + # print table body + for fname in sorted(all_files): + result_line = result_table[fname] + print(fmt % fname, end='') + print(" %s%s" % (result_line.get_flag(0), + result_line.get_digest(0)), end='') + + for tree_idx, tree_top in enumerate(sorted(trees.keys()), start=1): + tree = trees[tree_top] + print(" %s%s" % (result_line.get_flag(tree_idx), + result_line.get_digest(tree_idx)), end='') + + if result_line.file_versions > 0: + print(' %3d' % result_line.file_versions) + else: + print(' ok') + print(sep_line) + print() + + print("Legend:") + legend = [ + ('N', 'new file'), + ('O', 'original file'), + ('/', 'no such file'), + ('=', 'same content as the original file'), + ('<', 'file with different content is younger than original file'), + ('>', 'file with different content is older than original file'), + ] + for ch, descr in legend: + print(" %s %s" % (ch, descr)) + print(" ") + print(" Small letters identify file contents: Same letter means same content.") + print() + + # Determine exit code + exit_code = 0 + if result_table.differences > 0: + exit_code = 1 + + # Print summary + print("Summary:") + if result_table.differences > 0: + print(" About %d difference(s) found in %d file(s)." % + (result_table.differences, result_table.files_with_differences)) + print(" ") + print(" Diff commands for comparing differing files can be obtained with the") + print(" '--diff' option.") + else: + print(" All gphoto-m4 trees are equal.") + + # Finally exit. + sys.exit(exit_code) + + +######################################################################## + + +def print_diff_commands(diff_commands): + print("#!/bin/sh") + print("#") + print("# This file has been autogenerated by %s" % __file__) + print("#") + print("# List of diff commands. You can pipe these into") + print("# | sh | colordiff | less -r '+/comparing '") + print("# or") + print("# | sh | less '+/^comparing '") + print("# or") + print("# | less") + for fname, orig_dig, other_dig, orig_fpath, other_fpath in diff_commands: + if orig_fpath: + orig_label = "%s (digest '%s')" % (orig_fpath, orig_dig) + else: + orig_fpath = '/dev/null' + orig_label = '(no such file)' + + if other_dig: + other_label = "%s (digest '%s')" % (other_fpath, other_dig) + else: + other_label = other_fpath + + print() + print("""echo 'comparing fname %s'""" % fname) + print("""diff -u --label "%s" %s --label "%s" %s""" + % (orig_label, orig_fpath, + other_label, other_fpath)) + + +######################################################################## + + +def gphoto_m4_sync(dir_list, print_diffs): + + # List all files in this clone of the `gphoto-m4` repository + orig_top = os.path.dirname(os.path.abspath(__file__)) + orig_tree = GitTree(orig_top) + + # For each `gphoto-m4` directory given on the command line, find + # all files. + trees = {} + for top in dir_list: + for dirpath, tree in scan_tree(os.path.abspath(top)): + trees[dirpath] = tree + + if len(trees) == 0: + print("No gphoto-m4 trees found in directories given on command line.") + sys.exit(2) + + + # Make a list of all files within all `gphoto-m4` trees + all_files = {} + for i in orig_tree: + all_files[i] = True + for tree in trees.values(): + for i in tree: + all_files[i] = True + all_files = sorted(all_files.keys()) + + # calculate table values + diff_params = [] + result_table = ResultTable() + for fname in sorted(all_files): + result_line = ResultLine(fname) + file_diffs = 0 + if fname in orig_tree: + result_line.set_flag(0, 'O', orig_tree[fname].fpath) + orig_dig = orig_tree[fname].digest + result_line.set_digest(0, orig_dig) + else: + result_line.set_flag(0, '/', None) + orig_dig = None + + comp_digs = {} + for tree_idx, tree_top in enumerate(sorted(trees.keys()), start=1): + tree = trees[tree_top] + if fname in tree: + dig = tree[fname].digest + flag = 'N' + if orig_dig == dig: + flag = '=' + elif orig_dig: + if tree[fname].statinfo.st_mtime > orig_tree[fname].statinfo.st_mtime: + flag = '>' + elif tree[fname].statinfo.st_mtime < orig_tree[fname].statinfo.st_mtime: + flag = '<' + result_line.set_digest(tree_idx, dig) + else: + flag = '/' + + if fname in tree: + _fpath = tree[fname].fpath + else: + _fpath = None + result_line.set_flag(tree_idx, flag, _fpath) + + if orig_dig: + if result_line.get_flag(tree_idx) != '=': + file_diffs += 1 + else: + if result_line.get_flag(tree_idx) != '/': + file_diffs += 1 + + result_line.close(file_diffs) + del file_diffs + result_table[fname] = result_line + result_table.close() + + if False: + # Diff all files - (some comparisons are unnecessary) + for fname in sorted(all_files): + result_line = result_table[fname] + orig_dig = result_line.get_digest(0) + orig_fpath = result_line.get_fpath(0) + for tree_idx, tree_top in enumerate(sorted(trees.keys()), start=1): + tree = trees[tree_top] + if result_line.get_flag(0) == 'O': + if result_line.get_flag(tree_idx) not in ['=', '/']: + diff_params.append((fname, + orig_fpath, orig_dig, + result_line.get_fpath(tree_idx), + result_line.get_digest(tree_idx))) + else: + if result_line.get_flag(tree_idx) != '/': + diff_params.append((fname, + None, None, + result_line.get_fpath(tree_idx), + None)) + + # Print report + if not print_diffs: + cmd_print_report(result_table, all_files, + [orig_top] + sorted(trees.keys()), + trees) + + # Print diffs + if print_diffs: + # print("# Calculate minimum set of diff commands:") + diff_commands = [] + for fname, result_line in result_table.items(): + line_flags = [] + if result_line.file_versions > 0: + # print("# -", fname) + all_trees = [orig_tree] + [ trees[k] for k in sorted(trees.keys()) ] + for idx_a in range(len(all_trees)): + tree_a = all_trees[idx_a] + dig_a = result_line.get_digest(idx_a) + if dig_a == ' ': + continue + # print("# tree_a", tree_a) + for idx_b in range(len(all_trees)): + tree_b = all_trees[idx_b] + dig_b = result_line.get_digest(idx_b) + if dig_a == dig_b: + continue + if dig_b == ' ': + continue + # print("# tree_b", tree_b) + flag = (fname, dig_a, dig_b) + rev_flag = (fname, dig_b, dig_a) + if flag in line_flags: + pass + elif rev_flag in line_flags: + pass + else: + line_flags.append(flag) + cmd = (fname, dig_a, dig_b, + tree_a[fname].fpath, tree_b[fname].fpath) + diff_commands.append(cmd) + break + del line_flags + # print("#") + + print_diff_commands(diff_commands) + sys.exit(0) + + +####################################################################### + + +def main(args): + if (args == []): + print_help() + sys.exit(0) + + arg_diff = False + for i, arg in enumerate(args): + if arg == '--': + i += 1 + break + elif arg == '--help': + print_help() + sys.exit(0) + elif arg == '--diff': + arg_diff = True + elif arg.startswith('--'): + raise ValueError("Unhandled command line option '%s'" % arg) + else: + assert(arg[:2] != '--') + break + + dir_list = args[i:] + if False: + print("Arguments:", dir_list) + print() + + gphoto_m4_sync(dir_list, arg_diff) + + +######################################################################## + + +if __name__ == '__main__': + main(sys.argv[1:]) + + +######################################################################## diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2-port-config.in b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2-port-config.in new file mode 100644 index 00000000..e49b22ef --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2-port-config.in @@ -0,0 +1,73 @@ +#! /bin/sh + +# leave these definitions here +# they are required for correct interpolation of +# @libdir@ and @includedir@ later on +prefix="@prefix@" +exec_prefix="@exec_prefix@" + +usage() +{ + cat < + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_PORT_INFO_LIST_H__ +#define __GPHOTO2_PORT_INFO_LIST_H__ + +/** + * \brief The gphoto port type. + * + * Enumeration specifying the port type. + * The enum is providing bitmasks, but most code uses it as + * just the one specific values. + */ +typedef enum { + GP_PORT_NONE = 0, /**< \brief No specific type associated. */ + GP_PORT_SERIAL = 1 << 0, /**< \brief Serial port. */ + GP_PORT_USB = 1 << 2, /**< \brief USB port. */ + GP_PORT_DISK = 1 << 3, /**< \brief Disk / local mountpoint port. */ + GP_PORT_PTPIP = 1 << 4, /**< \brief PTP/IP port. */ + GP_PORT_USB_DISK_DIRECT = 1 << 5, /**< \brief Direct IO to an usb mass storage device. */ + GP_PORT_USB_SCSI = 1 << 6, /**< \brief USB Mass Storage raw SCSI port. */ + GP_PORT_IP = 1 << 7 /**< \brief generic IP address port. */ +} GPPortType; + +/** + * \brief Information about the current port. + * + * Specific information about the current port. Usually taken from the + * "--port=XXXX" setting from the frontend. + * + * This is not to be confused with the driver configurable port settings + * in \ref GPPortSettings. + */ +struct _GPPortInfo; +typedef struct _GPPortInfo *GPPortInfo; + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#ifdef _GPHOTO2_INTERNAL_CODE +#include +extern const StringFlagItem gpi_gphoto_port_type_map[]; +#endif + +int gp_port_info_new (GPPortInfo *info); +int gp_port_info_get_name (GPPortInfo info, char **name); +int gp_port_info_set_name (GPPortInfo info, const char *name); +int gp_port_info_get_path (GPPortInfo info, char **path); +int gp_port_info_set_path (GPPortInfo info, const char *path); +int gp_port_info_get_type (GPPortInfo info, GPPortType *type); +int gp_port_info_set_type (GPPortInfo info, const GPPortType type); +int gp_port_info_get_library_filename (GPPortInfo info, char **lib); +int gp_port_info_set_library_filename (GPPortInfo info, char *lib); + +/* Internals are private */ +typedef struct _GPPortInfoList GPPortInfoList; + +int gp_port_info_list_new (GPPortInfoList **list); +int gp_port_info_list_free (GPPortInfoList *list); + +int gp_port_info_list_append (GPPortInfoList *list, GPPortInfo info); + +int gp_port_info_list_load (GPPortInfoList *list); + +int gp_port_info_list_count (GPPortInfoList *list); + +int gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path); +int gp_port_info_list_lookup_name (GPPortInfoList *list, const char *name); + +int gp_port_info_list_get_info (GPPortInfoList *list, int n, GPPortInfo *info); + +const char *gp_port_message_codeset (const char*); + +/** + * Name of the environment variable which may contain the path where + * to look for the IO libs. If this environment variable is not defined, + * use the compiled-in default constant. + * + * \internal Internal use only. + */ +#ifdef _GPHOTO2_INTERNAL_CODE +#define IOLIBDIR_ENV "IOLIBS" +#endif /* _GPHOTO2_INTERNAL_CODE */ + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_PORT_INFO_LIST_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-library.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-library.h new file mode 100644 index 00000000..1193f22d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-library.h @@ -0,0 +1,103 @@ +/** \file gphoto2-port-library.h + * + * \author Copyright 2001 Lutz Mueller + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_PORT_LIBRARY_H__ +#define __GPHOTO2_PORT_LIBRARY_H__ + +#include +#include + +/** + * \brief The port operations + * + * These operations are to be implemented and set by the port library, + * which drives the lowlevel protocol (serial, usb, etc.). + * + * They are acessed using the accessor functions, like gp_port_open(), + * gp_port_read() and gp_port_write(). + */ +typedef struct _GPPortOperations { + int (*init) (GPPort *); + int (*exit) (GPPort *); + int (*open) (GPPort *); + int (*close) (GPPort *); + int (*read) (GPPort *, char *, int); + int (*check_int)(GPPort *, char *, int, int); + int (*write) (GPPort *, const char *, int); + int (*update) (GPPort *); + + /* Pointers to devices. Please note these are stubbed so there is + no need to #ifdef GP_PORT_* anymore. */ + + /* for serial devices */ + int (*get_pin) (GPPort *, GPPin, GPLevel*); + int (*set_pin) (GPPort *, GPPin, GPLevel); + int (*send_break)(GPPort *, int); + int (*flush) (GPPort *, int); + + /* for USB devices */ + int (*find_device)(GPPort * dev, int idvendor, int idproduct); + int (*find_device_by_class)(GPPort * dev, int class, int subclass, int protocol); + int (*clear_halt) (GPPort * dev, int ep); + int (*msg_write) (GPPort * dev, int request, int value, int index, + char *bytes, int size); + int (*msg_read) (GPPort * dev, int request, int value, int index, + char *bytes, int size); + int (*msg_interface_write) (GPPort * dev, int request, + int value, int index, char *bytes, int size); + int (*msg_interface_read) (GPPort * dev, int request, + int value, int index, char *bytes, int size); + int (*msg_class_write) (GPPort * dev, int request, + int value, int index, char *bytes, int size); + int (*msg_class_read) (GPPort * dev, int request, + int value, int index, char *bytes, int size); + + /* For USB disk direct IO devices */ + int (*seek) (GPPort * dev, int offset, int whence); + + /* For USB Mass Storage raw SCSI ports */ + int (*send_scsi_cmd) (GPPort *port, int to_dev, + char *cmd, int cmd_size, + char *sense, int sense_size, + char *data, int data_size); + + int (*reset) (GPPort *); + +} GPPortOperations; + +typedef GPPortType (* GPPortLibraryType) (void); +typedef int (* GPPortLibraryList) (GPPortInfoList *list); + +typedef GPPortOperations *(* GPPortLibraryOperations) (void); + +/* + * If you want to write an io library, you need to implement the following + * functions. Everything else in your io library should be declared static. + */ + +GPPortType gp_port_library_type (void); +int gp_port_library_list (GPPortInfoList *list); + +GPPortOperations *gp_port_library_operations (void); + +#endif /* __GPHOTO2_PORT_LIBRARY_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-log.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-log.h new file mode 100644 index 00000000..96c2139f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-log.h @@ -0,0 +1,240 @@ +/** \file gphoto2-port-log.h + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_PORT_LOG_H__ +#define __GPHOTO2_PORT_LOG_H__ + +#include + +/** + * \brief Logging level + * Specifies the logging severity level. + */ +typedef enum { + GP_LOG_ERROR = 0, /**< \brief Log message is an error infomation. */ + GP_LOG_VERBOSE = 1, /**< \brief Log message is an verbose debug infomation. */ + GP_LOG_DEBUG = 2, /**< \brief Log message is an debug infomation. */ + GP_LOG_DATA = 3 /**< \brief Log message is a data hex dump. */ +} GPLogLevel; + +/** + * GP_LOG_ALL: + * + * Used by frontends if they want to be sure their + * callback function receives all messages. Defined + * as the highest debug level. Can make frontend code + * more understandable and extension of log levels + * easier. + **/ +#define GP_LOG_ALL GP_LOG_DATA + +/** + * \brief Logging function hook + * + * This is the function frontends can use to receive logging information + * from the libgphoto2 framework. It is set using gp_log_add_func() and + * removed using gp_log_remove_func() and will then receive the logging + * messages of the level specified. + * + * \param level the log level of the passed message, as set by the camera driver or libgphoto2 + * \param domain the logging domain as set by the camera driver, or libgphoto2 function + * \param str the logmessage, without linefeed + * \param data the caller private data that was passed to gp_log_add_func() + */ +typedef void (* GPLogFunc) (GPLogLevel level, const char *domain, const char *str, void *data); + +#ifndef DISABLE_DEBUGGING + +int gp_log_add_func (GPLogLevel level, GPLogFunc func, void *data); +int gp_log_remove_func (int id); + +/* Logging */ +void gp_log (GPLogLevel level, const char *domain, + const char *format, ...) +#ifdef __GNUC__ + __attribute__((__format__(printf,3,4))) +#endif +; +void gp_log_with_source_location( + GPLogLevel level, const char *file, int line, const char *func, + const char *format, ...) +#ifdef __GNUC__ + __attribute__((__format__(printf,5,6))) +#endif +; +void gp_logv (GPLogLevel level, const char *domain, const char *format, + va_list args) +#ifdef __GNUC__ + __attribute__((__format__(printf,3,0))) +#endif +; +void gp_log_data (const char *domain, const char *data, unsigned int size, + const char *format, ...) +#ifdef __GNUC__ +__attribute__((__format__(printf,4,5))) +#endif +; + +/* + * GP_DEBUG: + * msg: message to log + * params: params to message + * + * Logs message at log level #GP_LOG_DEBUG by calling #gp_log() with + * an automatically generated domain + * You have to define GP_MODULE as "mymod" for your module + * mymod before using #GP_DEBUG(). + */ + +#ifdef _GPHOTO2_INTERNAL_CODE +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#define GP_DEBUG(...) \ + gp_log(GP_LOG_DEBUG, GP_MODULE "/" __FILE__, __VA_ARGS__) + +/* + * GP_LOG_D/E: + * simple helper macros for convenient and consistent logging of error + * and debug messages including information about the source location. + */ +#define GP_LOG_D(...) gp_log(GP_LOG_DEBUG, __func__, __VA_ARGS__) +#define GP_LOG_E(...) gp_log_with_source_location(GP_LOG_ERROR, __FILE__, __LINE__, __func__, __VA_ARGS__) +#define GP_LOG_DATA(DATA, SIZE, MSG, ...) gp_log_data(__func__, DATA, SIZE, MSG, ##__VA_ARGS__) + +#elif defined(__GNUC__) && __GNUC__ >= 2 +#define GP_DEBUG(msg, params...) \ + gp_log(GP_LOG_DEBUG, GP_MODULE "/" __FILE__, msg, ##params) +/* + * GP_LOG_D/E: + * simple helper macros for convenient and consistent logging of error + * and debug messages including information about the source location. + */ +#define GP_LOG_D(...) gp_log(GP_LOG_DEBUG, __func__, __VA_ARGS__) +#define GP_LOG_E(...) gp_log_with_source_location(GP_LOG_ERROR, __FILE__, __LINE__, __func__, __VA_ARGS__) +#define GP_LOG_DATA(DATA, SIZE, MSG, ...) gp_log_data(__func__, DATA, SIZE, MSG, ##__VA_ARGS__) + +#else +# ifdef __GNUC__ +# warning Disabling GP_DEBUG because variadic macros are not allowed +# endif +#define GP_DEBUG (void) +#define GP_LOG_D(...) /* no-op */ +#define GP_LOG_E(...) /* no-op */ +#define GP_LOG_DATA(DATA, SIZE, ...) /* no-op */ +#endif +#endif /* _GPHOTO2_INTERNAL_CODE */ + +#else /* DISABLE_DEBUGGING */ + +/* Stub these functions out if debugging is disabled */ +#define gp_log_add_func(level, func, data) (0) +#define gp_log_remove_func(id) (0) +#define gp_log(level, domain, format, args...) /**/ +#define gp_log_with_source_location(level, file, line, func, format, ...) +#define gp_logv(level, domain, format, args) /**/ +#define gp_log_data(domain, data, size) /**/ + +#ifdef _GPHOTO2_INTERNAL_CODE +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#define GP_DEBUG(...) /* no-op */ +#define GP_LOG_D(...) /* no-op */ +#define GP_LOG_E(...) /* no-op */ +#define GP_LOG_DATA(DATA, SIZE, ...) /* no-op */ + +#elif defined(__GNUC__) +#define GP_DEBUG(msg, params...) /* no-op */ +#define GP_LOG_D(...) /* no-op */ +#define GP_LOG_E(...) /* no-op */ +#define GP_LOG_DATA(DATA, SIZE, ...) /* no-op */ +#else +#define GP_DEBUG (void) +#define GP_LOG_D (void /* no-op */ +#define GP_LOG_E (void) /* no-op */ +#define GP_LOG_DATA(void) /* no-op */ +#endif +#endif /* _GPHOTO2_INTERNAL_CODE */ + +#endif /* DISABLE_DEBUGGING */ + +#ifdef _GPHOTO2_INTERNAL_CODE + + typedef struct StringFlagItem { + char *str; + unsigned int flag; + } StringFlagItem; + + typedef void (*string_item_func) (const char *str, void *data); + + const char * + gpi_enum_to_string(const unsigned int _enum, + const StringFlagItem *map); + + int + gpi_string_to_enum(const char *str, + unsigned int *result, + const StringFlagItem *map); + + void + gpi_flags_to_string_list(const unsigned int flags, + const StringFlagItem *map, + string_item_func func, void *data); + + int + gpi_string_or_to_flags(const char *str, + unsigned int *flags, + const StringFlagItem *map); + + unsigned int + gpi_string_to_flag(const char *str, + const StringFlagItem *map); + + unsigned int + gpi_string_list_to_flags(const char *str[], + const StringFlagItem *map); + + /* Allocates a sufficiently large buffer and interpolates the format + * string with the proveded va_list args. The returned memory has to + * be freed by the caller. */ + char* + gpi_vsnprintf (const char* format, va_list args); + +#define C_MEM(MEM) do {\ + if ((MEM) == NULL) {\ + GP_LOG_E ("Out of memory: '%s' failed.", #MEM);\ + return GP_ERROR_NO_MEMORY;\ + }\ +} while(0) + +#define C_PARAMS(PARAMS) do {\ + if (!(PARAMS)) {\ + GP_LOG_E ("Invalid parameters: '%s' is NULL/FALSE.", #PARAMS);\ + return GP_ERROR_BAD_PARAMETERS;\ + }\ +} while(0) + +#define C_PARAMS_MSG(PARAMS, MSG, ...) do {\ + if (!(PARAMS)) {\ + GP_LOG_E ("Invalid parameters: " #MSG " ('%s' is NULL/FALSE.)", ##__VA_ARGS__, #PARAMS);\ + return GP_ERROR_BAD_PARAMETERS;\ + }\ +} while(0) + +#endif /* _GPHOTO2_INTERNAL_CODE */ + +#endif /* __GPHOTO2_PORT_LOG_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-portability.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-portability.h new file mode 100644 index 00000000..3d06efb5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-portability.h @@ -0,0 +1,242 @@ +/** \file gphoto2-port-log.h + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#ifndef __GPHOTO2_PORT_PORTABILITY_H__ +#define __GPHOTO2_PORT_PORTABILITY_H__ + +#ifdef _GPHOTO2_INTERNAL_CODE + +#if defined(WIN32) && !defined(__WINESRC__) + +/************************************************************************ + * Begin Windows definitions (but not during WINE compilation) + ************************************************************************/ + +# include +/* done by mingw/wine headers ... defined to struct ... tsaes*/ +#undef interface +# include +# include +# include +# include +# include + +# ifndef IOLIBS +# define IOLIBS "." +# endif +# define strcasecmp _stricmp +# ifndef snprintf +# define snprintf _snprintf +# endif + +#define __func__ __FUNCTION__ + +typedef SSIZE_T ssize_t; + +/* Work-around for readdir() */ +typedef struct { + HANDLE handle; + int got_first; + WIN32_FIND_DATA search; + char dir[1024]; + char drive[32][2]; + int drive_count; + int drive_index; +} GPPORTWINDIR; + + +/* Directory-oriented functions */ +# define gp_system_dir GPPORTWINDIR * +# define gp_system_dirent WIN32_FIND_DATA * +# define gp_system_dir_delim '\\' + +# define sleep(x) usleep((x) * 1000 * 1000) + + + +/************************************************************************ + * End WIN32 definitions + ************************************************************************/ + +#elif defined(__SOME_OS2_MAGIC_HERE__) + +/************************************************************************ + * Begin OS/2 definitions + ************************************************************************/ + +# define strcasecmp(foo,bar) stricmp(foo,bar) +# define gp_system_dir_delim '\\' + +# ifndef GPIO_OS2_INCLUDED +# define GPIO_OS2_INCLUDED +# define IOLIBS getenv("IOLIBS") +/*#define IOLIBS "./libgphoto2_port"*/ +# define RTLD_LAZY 0x001 + + +# ifndef HAVE_TERMIOS_H +# define INCL_DOSDEVIOCTL /* DosDevIOCtl values */ +# define IOCTL_ASYNC 0x0001 +# define ASYNC_SETBAUDRATE 0x0041 +/* c_cflag bit meaning */ +# define CBAUD 0x0000100f +# define B0 0x00000000 /* hang up */ +# define B50 0x00000001 +# define B75 0x00000002 +# define B110 0x00000003 +# define B134 0x00000004 +# define B150 0x00000005 +# define B200 0x00000006 +# define B300 0x00000007 +# define B600 0x00000008 +# define B1200 0x00000009 +# define B1800 0x0000000a +# define B2400 0x0000000b +# define B4800 0x0000000c +# define B9600 0x0000000d +# define B19200 0x0000000e +# define B38400 0x0000000f +# define EXTA B19200 +# define EXTB B38400 +# define CSIZE 0x00000030 +# define CS5 0x00000000 +# define CS6 0x00000010 +# define CS7 0x00000020 +# define CS8 0x00000030 +# define CSTOPB 0x00000040 +# define CREAD 0x00000080 +# define PARENB 0x00000100 +# define PARODD 0x00000200 +# define HUPCL 0x00000400 +# define CLOCAL 0x00000800 +# define CBAUDEX 0x00001000 +# define B57600 0x00001001 +# define B115200 0x00001002 +# define B230400 0x00001003 +# define B460800 0x00001004 +# define B76800 0x00001005 +# define B153600 0x00001006 +# define B307200 0x00001007 +# define B614400 0x00001008 +# define B921600 0x00001009 +# define B500000 0x0000100a +# define B576000 0x0000100b +# define B1000000 0x0000100c +# define B1152000 0x0000100d +# define B1500000 0x0000100e +# define B2000000 0x0000100f + +# endif /* HAVE_TERMIOS_H */ + +# define CIBAUD 0x100f0000 /* input baud rate (not used) */ +# define CMSPAR 0x40000000 /* mark or space (stick) parity */ +/* #define CRTSCTS 0x80000000 */ /* flow control */ + +/* modem lines */ +# define TIOCM_LE 0x001 +# define TIOCM_DTR 0x002 +# define TIOCM_RTS 0x004 +# define TIOCM_ST 0x008 +# define TIOCM_SR 0x010 +# define TIOCM_CTS 0x020 +# define TIOCM_CAR 0x040 +# define TIOCM_RNG 0x080 +# define TIOCM_DSR 0x100 +# define TIOCM_CD TIOCM_CAR +# define TIOCM_RI TIOCM_RNG + +# define TIOCMBIC 0x06C +# define TIOCMBIS 0x06B +# define TIOCMGET 0x06E + +# endif /* GPIO_OS2_INCLUDED */ + +/************************************************************************ + * End OS/2 definitions + ************************************************************************/ + +#else + +/************************************************************************ + * Begin POSIX/XOPEN definitions + ************************************************************************/ + +/* yummy. :) */ + +/* XOPEN needed for usleep */ +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE 500 +#else +# if ((_XOPEN_SOURCE - 0) < 500) +# undef _XOPEN_SOURCE +# define _XOPEN_SOURCE 500 +# endif +#endif + +/* for nanosleep */ +# ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 199309 +# endif +# include + +# include +# include +# include +#ifdef HAVE_SYS_PARAM_H +# include +#endif +# include +# include + + +/* Directory-oriented functions */ +/** A system directory handle */ +# define gp_system_dir DIR * +/** A system directory entry */ +# define gp_system_dirent struct dirent * +/** The directory delimiter character on this platform. */ +# define gp_system_dir_delim '/' + +/************************************************************************ + * End POSIX/XOPEN definitions + ************************************************************************/ + +#endif /* else */ + + +/************************************************************************ + * Begin platform independent portability functions + ************************************************************************/ + +int gp_system_mkdir (const char *dirname); +int gp_system_rmdir (const char *dirname); +gp_system_dir gp_system_opendir (const char *dirname); +gp_system_dirent gp_system_readdir (gp_system_dir d); +const char* gp_system_filename (gp_system_dirent de); +int gp_system_closedir (gp_system_dir dir); +int gp_system_is_file (const char *filename); +int gp_system_is_dir (const char *dirname); + +/************************************************************************ + * End platform independent portability functions + ************************************************************************/ +#endif /* _GPHOTO2_INTERNAL_CODE */ + +#endif /* ifndef __GPHOTO2_PORT_PORTABILITY_H__ */ +/* end of file */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-result.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-result.h new file mode 100644 index 00000000..021460fd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-result.h @@ -0,0 +1,133 @@ +/** \file gphoto2-port-result.h + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_PORT_RESULT_H__ +#define __GPHOTO2_PORT_RESULT_H__ + +/* Return values. gphoto2-port should only return values from 0 to -99 */ +/** + * \brief Everything is OK + * + * Note that this is also the value 0, and every error is negative (lower). + */ +#define GP_OK 0 +/** + * \brief Generic Error + */ +#define GP_ERROR -1 +/** + * \brief Bad parameters passed + */ +#define GP_ERROR_BAD_PARAMETERS -2 +/** + * \brief Out of memory + */ +#define GP_ERROR_NO_MEMORY -3 +/** + * \brief Error in the camera driver + */ +#define GP_ERROR_LIBRARY -4 +/** + * \brief Unknown libgphoto2 port passed + */ +#define GP_ERROR_UNKNOWN_PORT -5 +/** + * \brief Functionality not supported + */ +#define GP_ERROR_NOT_SUPPORTED -6 +/** + * \brief Generic I/O error + */ +#define GP_ERROR_IO -7 +/** + * \brief Buffer overflow of internal structure + */ +#define GP_ERROR_FIXED_LIMIT_EXCEEDED -8 +/** + * \brief Operation timed out + */ +#define GP_ERROR_TIMEOUT -10 + +/** + * \brief Serial ports not supported + */ +#define GP_ERROR_IO_SUPPORTED_SERIAL -20 +/** + * \brief USB ports not supported + */ +#define GP_ERROR_IO_SUPPORTED_USB -21 + +/** + * \brief Error initialising I/O + */ +#define GP_ERROR_IO_INIT -31 +/** + * \brief I/O during read + */ +#define GP_ERROR_IO_READ -34 +/** + * \brief I/O during write + */ +#define GP_ERROR_IO_WRITE -35 +/** + * \brief I/O during update of settings + */ +#define GP_ERROR_IO_UPDATE -37 + +/** + * \brief Specified serial speed not possible. + */ +#define GP_ERROR_IO_SERIAL_SPEED -41 + +/** + * \brief Error during USB Clear HALT + */ +#define GP_ERROR_IO_USB_CLEAR_HALT -51 +/** + * \brief Error when trying to find USB device + */ +#define GP_ERROR_IO_USB_FIND -52 +/** + * \brief Error when trying to claim the USB device + */ +#define GP_ERROR_IO_USB_CLAIM -53 + +/** + * \brief Error when trying to lock the device + */ +#define GP_ERROR_IO_LOCK -60 + +/** + * \brief Unspecified error when talking to HAL + */ +#define GP_ERROR_HAL -70 + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +const char *gp_port_result_as_string (int result); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_PORT_RESULT_H__ */ + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-version.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-version.h new file mode 100644 index 00000000..25160408 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port-version.h @@ -0,0 +1,48 @@ +/** \file gphoto2-port-version.h + * + * Copyright 2002 Hans Ulrich Niedermann + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_PORT_VERSION_H__ +#define __GPHOTO2_PORT_VERSION_H__ + +typedef enum { + GP_VERSION_SHORT = 0, + GP_VERSION_VERBOSE = 1 +} GPVersionVerbosity; + + +#ifdef __cplusplus +extern "C" { +#endif + +typedef const char **(*GPVersionFunc)(GPVersionVerbosity verbose); +const char **gp_port_library_version(GPVersionVerbosity verbose); + +#ifdef __cplusplus +} +#endif + +#endif /* __GPHOTO2_PORT_VERSION_H__ */ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port.h new file mode 100644 index 00000000..d1336cc3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/gphoto2/gphoto2-port.h @@ -0,0 +1,252 @@ +/** \file + * + * \author Copyright 2001 Lutz Mueller + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __GPHOTO2_PORT_H__ +#define __GPHOTO2_PORT_H__ + +#include + +/* For portability */ +#include +#ifdef OS2 +#include +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#ifndef TRUE +#define TRUE (0==0) +#endif + +#ifndef FALSE +#define FALSE (1==0) +#endif + +/** + * \brief Serial parity + * + * Parity of the serial port. + */ +typedef enum _GPPortSerialParity +{ + GP_PORT_SERIAL_PARITY_OFF = 0, /**< \brief Parity is off (disabled) */ + GP_PORT_SERIAL_PARITY_EVEN, /**< \brief Parity is even. */ + GP_PORT_SERIAL_PARITY_ODD /**< \brief Parity is odd. */ +} GPPortSerialParity; + +/** \brief Maximum length of receive buffer */ +#define GP_PORT_MAX_BUF_LEN 4096 + +/** + * \brief Port settings for serial ports. + */ +typedef struct _GPPortSettingsSerial { + char port[128]; /**< The portname (/dev/ttyX)*/ + int speed; /**< The baudrate of the device. */ + int bits; /**< How many bits data. */ + GPPortSerialParity parity; /**< parity data, see GP_PORT_SERIAL_PARITY_ + defines */ + int stopbits; /**< How many stop bits are used. */ +} GPPortSettingsSerial; + +/** + * \brief Port settings for USB ports. + */ +typedef struct _GPPortSettingsUSB { + int inep; /**< \brief Bulk IN endpoint used. */ + int outep; /**< \brief Bulk OUT endpoint used. */ + int intep; /**< \brief Interrupt endpoint used. */ + int config; /**< \brief USB bConfigurationValue used. */ + int interface; /**< \brief USB Interface number used. */ + int altsetting; /**< \brief USB Alternative Setting used. */ + + int maxpacketsize; /**< \brief Maximum USB packetsize of the IN endpoint. (r/o) */ + + /* must be last to avoid binary incompatibility. + * luckily we just need to make sure this struct does not + * get larger than _GPPortSettingsSerial. */ + char port[64]; /**< \brief USB Portname. Specific to lowlevel USB. */ +} GPPortSettingsUSB; + +/** + * \brief Port settings for USB mass storage direct IO ports. + */ +typedef struct _GPPortSettingsUsbDiskDirect { + char path[128]; /**< /brief The ports device node path (/dev/sdX)*/ +} GPPortSettingsUsbDiskDirect; + +/** + * \brief Port settings for USB Mass Storage raw SCSI ports. + */ +typedef struct _GPPortSettingsUsbScsi { + char path[128]; /**< /brief The ports device node path (/dev/sg#)*/ +} GPPortSettingsUsbScsi; + +/** + * \brief Union of port settings. + * + * This contains a shared union of possible settings for ports needing + * them. + */ +typedef union _GPPortSettings { + GPPortSettingsSerial serial; /**< \brief Serial specific settings */ + GPPortSettingsUSB usb; /**< \brief USB specific settings */ + GPPortSettingsUsbDiskDirect usbdiskdirect; /**< \brief usb disk direct port specific settings */ + GPPortSettingsUsbScsi usbscsi; /**< \brief usb scsi port specific settings */ +} GPPortSettings; + +enum { + GP_PORT_USB_ENDPOINT_IN, /**< \brief USB bulk IN ep */ + GP_PORT_USB_ENDPOINT_OUT, /**< \brief USB bulk OUT ep */ + GP_PORT_USB_ENDPOINT_INT /**< \brief USB Interrupt ep */ +}; + +typedef struct _GPPortPrivateLibrary GPPortPrivateLibrary; +typedef struct _GPPortPrivateCore GPPortPrivateCore; + +/** + * \brief The GPhoto port structure. + * + * This structure tracks the physical connection of the device. + * It can correspond the various methods of lowlevel access, serial + * usb and others and abstracts them as much as possible. + * + * Frontends should consider this structure opaque and only use accessor + * functions. + * + * Camera drivers should only access the type and pl members directly, + * and use accessor functions for the rest. + */ +typedef struct _GPPort { + /* For your convenience */ + GPPortType type; /**< \brief Actual type of this port */ + + GPPortSettings settings; /**< \brief Current port settings. */ + GPPortSettings settings_pending;/**< \brief Settings to be committed. */ + + int timeout; /**< \brief Port timeout in milliseconds. */ + + GPPortPrivateLibrary *pl; /**< \brief Camera driver private data pointer. */ + GPPortPrivateCore *pc; /**< \brief Port library private data pointer. */ +} GPPort; + +int gp_port_new (GPPort **port); +int gp_port_free (GPPort *port); + +int gp_port_set_info (GPPort *port, GPPortInfo info); +int gp_port_get_info (GPPort *port, GPPortInfo *info); + +int gp_port_open (GPPort *port); +int gp_port_close (GPPort *port); + +int gp_port_reset (GPPort *port); + +int gp_port_write (GPPort *port, const char *data, int size); +int gp_port_read (GPPort *port, char *data, int size); +int gp_port_check_int (GPPort *port, char *data, int size); +int gp_port_check_int_fast (GPPort *port, char *data, int size); + +int gp_port_get_timeout (GPPort *port, int *timeout); +int gp_port_set_timeout (GPPort *port, int timeout); + +int gp_port_set_settings (GPPort *port, GPPortSettings settings); +int gp_port_get_settings (GPPort *port, GPPortSettings *settings); + +/** + * \brief Serial pins. + * + * A number of serial pins to trigger and pull. This is necessary + * for some devices that have more than just the regular 3 or 4 wires. + */ +typedef enum _GPPin { + GP_PIN_RTS, /**< \brief RTS line */ + GP_PIN_DTR, /**< \brief DTR line */ + GP_PIN_CTS, /**< \brief CTS line */ + GP_PIN_DSR, /**< \brief DSR line */ + GP_PIN_CD, /**< \brief Carrier Detect line */ + GP_PIN_RING /**< \brief RING (Modem) line */ +} GPPin; + +/** + * \brief Level to pull specific lines. + * + * The level on which to pull some of the serial lines. + */ +typedef enum _GPLevel { + GP_LEVEL_LOW = 0, /**< \brief Pull to low (0V) */ + GP_LEVEL_HIGH = 1 /**< \brief Pull to high (nV) */ +} GPLevel; + +int gp_port_get_pin (GPPort *port, GPPin pin, GPLevel *level); +int gp_port_set_pin (GPPort *port, GPPin pin, GPLevel level); + +int gp_port_send_break (GPPort *port, int duration); +int gp_port_flush (GPPort *port, int direction); + +int gp_port_usb_find_device (GPPort *port, int idvendor, int idproduct); +int gp_port_usb_find_device_by_class (GPPort *port, int mainclass, int subclass, int protocol); +int gp_port_usb_clear_halt (GPPort *port, int ep); +int gp_port_usb_msg_write (GPPort *port, int request, int value, + int index, char *bytes, int size); +int gp_port_usb_msg_read (GPPort *port, int request, int value, + int index, char *bytes, int size); +int gp_port_usb_msg_interface_write (GPPort *port, int request, + int value, int index, char *bytes, int size); +int gp_port_usb_msg_interface_read (GPPort *port, int request, + int value, int index, char *bytes, int size); +int gp_port_usb_msg_class_write (GPPort *port, int request, + int value, int index, char *bytes, int size); +int gp_port_usb_msg_class_read (GPPort *port, int request, + int value, int index, char *bytes, int size); + +int gp_port_seek (GPPort *port, int offset, int whence); + +int gp_port_send_scsi_cmd (GPPort *port, int to_dev, + char *cmd, int cmd_size, + char *sense, int sense_size, + char *data, int data_size); + +/* Error reporting */ +int gp_port_set_error (GPPort *port, const char *format, ...) +#ifdef __GNUC__ + __attribute__((__format__(printf,2,3))) +#endif +; +const char *gp_port_get_error (GPPort *port); + +/* DEPRECATED */ +/** \deprecated internal typedef */ +typedef GPPort gp_port; +/** \deprecated internal typedef */ +typedef GPPortSettings gp_port_settings; +/** \deprecated internal define */ +#define PIN_CTS GP_PIN_CTS + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GPHOTO2_PORT_H__ */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/installcheck.mk b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/installcheck.mk new file mode 100644 index 00000000..62ae7db5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/installcheck.mk @@ -0,0 +1,30 @@ +# FIXME: Only run this if not cross-compiling +installcheck-local: $(INSTALL_TESTS) $(INSTALLCHECK_DEPS) + @total=0; failed=0; success=0; ignored=0; \ + echo "Running \"installcheck\" test cases..."; \ + for script in $(INSTALL_TESTS); do \ + echo "Test case: $$script"; \ + total="$$(expr $$total + 1)"; \ + if test -f "./$$script"; then dir="./"; \ + elif test -f "$$script"; then dir=""; \ + else dir="$(srcdir)/"; fi; \ + if $(INSTALL_TESTS_ENVIRONMENT) "$$dir/$$script"; then \ + echo "SUCCEEDED: $$script"; \ + success="$$(expr $$success + 1)"; \ + else \ + s="$$?"; \ + if test "$$s" = "77"; then \ + echo "FAILURE IGNORED (return code $$s): $$script"; \ + ignored="$$(expr $$ignored + 1)"; \ + else \ + echo "FAILED (return code $$s): $$script"; \ + failed="$$(expr $$failed + 1)"; \ + fi; \ + fi; \ + done; \ + echo "Test summary: $$success succeeded, $$failed failed, $$ignored failures ignored, $$total tests in total."; \ + if test "$$failed" -gt 0; then \ + echo "Error: One or more \"installcheck\" testcases have failed."; \ + exit 1; \ + fi + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/iolib.sym b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/iolib.sym new file mode 100644 index 00000000..59140a28 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/iolib.sym @@ -0,0 +1,3 @@ +gp_port_library_list +gp_port_library_operations +gp_port_library_type diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port-uninstalled.pc.in b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port-uninstalled.pc.in new file mode 100644 index 00000000..7dc6fe98 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port-uninstalled.pc.in @@ -0,0 +1,25 @@ +# Note: As this file is sitting in ${top_builddir}, +# ${top_builddir} ~= ${pcfiledir} +# and ${top_srcdir} ~= ${pcfiledir}/@srcdir@ +# Note: This refers to directory matches, not to string matches. +# Note: ${pcfiledir} already is an absolute path name, so there is +# no much sense prepending a ${pc_top_builddir} before it. + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +VERSION=@VERSION@ +abs_top_builddir=@abs_top_builddir@ +driverdir=${abs_top_builddir} + +Name: libgphoto2_port +Description: Library for easy access to digital cameras +URL: http://gphoto.org/proj/libgphoto2/ +Version: @VERSION@ +# This is what works for gphoto-suite +Libs: ${pcfiledir}/libgphoto2_port/libgphoto2_port.la -lm +Cflags: -I${pcfiledir}/@srcdir@ +# This is what Sun wants (and does not work with gphoto-suite) +# Libs: ${pc_top_builddir}/${pcfiledir}/libgphoto2_port/libgphoto2_port.la -lm +# Cflags: -I${pc_top_builddir}/${pcfiledir} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port.pc.in b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port.pc.in new file mode 100644 index 00000000..a8c2bb0a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +VERSION=@VERSION@ +driverdir=@iolibdir@ + +Name: libgphoto2_port +Description: Device-independent access to serial, USB, and other ports +URL: http://gphoto.org/proj/libgphoto2/ +Version: @VERSION@ +Libs: -L${libdir} -lgphoto2_port -lm +Cflags: -I${includedir}/gphoto2 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port.spec.in b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port.spec.in new file mode 100644 index 00000000..494305a7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port.spec.in @@ -0,0 +1,67 @@ +# -*- rpm-spec -*- + +%define ver @VERSION@ +%define rel 1 +%define prefix /usr + +Summary: Portable I/O library +Name: libgphoto2-port +Version: %ver +Release: %rel +Copyright: LGPL +Group: System Environment/Libraries +BuildRoot: /var/tmp/libgphoto2-port-%{PACKAGE_VERSION}-root +URL: @URL_GPHOTO_HOME@ +Docdir: %{prefix}/doc +Requires: libusb + +%description +The benefit to using this library would be that all communications can be +done quickly and without worry for device specific functions; all devices +are abstracted to a point, allowing you to read/write to a device using +the same interface. For example, you can set all the options on the serial +port easily, and then read/write to that device. Additionally, you could +easily switch over to a USB device, and read/write without having to learn +the USB internals. + +%package devel +Summary: Libraries, includes, etc to develop applications using libgpio +Group: System Environment/Libraries +Requires: libgphoto2-port + +%description devel +Libraries, include files, etc you need to develop applications with libgphoto2-port + +%prep +%setup + +%build +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix +make + +%install +rm -rf $RPM_BUILD_ROOT + +make prefix=$RPM_BUILD_ROOT%{prefix} install + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-, root, root) + +%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO +%{prefix}/lib/lib*.so.* +%{prefix}/bin/gpio-config + +%files devel +%defattr(-, root, root) + +%{prefix}/lib/lib*.so +%{prefix}/lib/*a +%{prefix}/lib/*.sh +%{prefix}/include/* diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/Makefile.am new file mode 100644 index 00000000..70fd0fdf --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/Makefile.am @@ -0,0 +1,63 @@ +lib_LTLIBRARIES = libgphoto2_port.la + +libgphoto2_port_la_CPPFLAGS = \ + -I$(srcdir) -I$(top_srcdir) \ + $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(LTDLINCL) + +# Notes about the list of exported symbols: +# gp_* also contains internal symbols which are intended for +# INTERNAL USE ONLY and should be converted into gpi_* symbols +# gp_log_* is the gphoto2 logging API for use by +# - libgphoto2_port and iolibs +# - libgphoto2 and camlibs +# - frontends (optional) +# gp_system_* is a portable interface to a few filesystem functions +# Used by +# - libgphoto2_port and iolibs +# - libgphoto2 and camlibs +# - the gphoto2 frontend (NOT for other frontends) +# Other frontends use their respective toolkit (glib, Qt, ...) +# gp_port_* is the "real" gphoto2_port API for use by +# - libgphoto2 and camlibs +# - frontends +# +# Yes, this is messy, but we are going to clean this up. + +libgphoto2_port_la_LDFLAGS = \ + -no-undefined \ + @VERSIONMAPLDFLAGS@ \ + -version-info @LIBGPHOTO2_PORT_VERSION_INFO@ + +libgphoto2_port_la_LIBADD = \ + $(LIBLTDL) \ + $(INTLLIBS) +# The libtool docs describe these params, but they don't build. +# "-dlopen" self \ +# "-dlopen" $(top_builddir)/serial/....la \ +# "-dlopen" $(top_builddir)/usb/....la + +libgphoto2_port_la_SOURCES = \ + gphoto2-port-info-list.c \ + gphoto2-port-info.h \ + gphoto2-port-log.c \ + gphoto2-port-version.c \ + gphoto2-port.c \ + gphoto2-port-portability.c \ + gphoto2-port-result.c + +libgphoto2_port_la_DEPENDENCIES = \ + $(top_srcdir)/gphoto2/gphoto2-port-version.h \ + $(top_srcdir)/gphoto2/gphoto2-port-library.h \ + $(srcdir)/libgphoto2_port.ver + +# Note: If you have problem with this file not being put into +# the source tarball correctly at "make dist", this may +# be the result of tar not creating archives with >99 +# characters of path length. +EXTRA_DIST = \ + libgphoto2_port.ver + +../libltdl/libltdlc.la: + cd ../libltdl && $(MAKE) $(AM_MAKEFLAGS) libltdlc.la + diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c new file mode 100644 index 00000000..743cd564 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c @@ -0,0 +1,588 @@ +/** \file + * + * \author Copyright 2001 Lutz Mueller + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#define _GNU_SOURCE + +#include "config.h" + +#include + +#include +#include +#include +#ifdef HAVE_REGEX +#include +#elif defined(_MSC_VER) +#pragma message("We need regex.h, but it has not been detected.") +#else +#warning We need regex.h, but it has not been detected. +#endif + +#include + +#include +#include +#include + +#include "gphoto2-port-info.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define bind_textdomain_codeset(Domain,codeset) (codeset) +# define ngettext(String1,String2,Count) ((Count==1)?String1:String2) +# define _(String) (String) +# define N_(String) (String) +#endif + +/** + * \internal GPPortInfoList: + * + * The internals of this list are private. + **/ +struct _GPPortInfoList { + GPPortInfo *info; + unsigned int count; + unsigned int iolib_count; +}; + +#define CR(x) {int r=(x);if (r<0) return (r);} + + +/** + * \brief Specify codeset for translations + * + * This function specifies the codeset that are used for the translated + * strings that are passed back by the libgphoto2_port functions. + * + * This function is called by the gp_message_codeset() function, there is + * no need to call it yourself. + * + * \param codeset new codeset to use + * \return the previous codeset + */ +const char* +gp_port_message_codeset (const char *codeset) { + return bind_textdomain_codeset (GETTEXT_PACKAGE, codeset); +} + +/** + * \brief Create a new GPPortInfoList + * + * \param list pointer to a GPPortInfoList* which is allocated + * + * Creates a new list which can later be filled with port infos (#GPPortInfo) + * using #gp_port_info_list_load. + * + * \return a gphoto2 error code + **/ +int +gp_port_info_list_new (GPPortInfoList **list) +{ + C_PARAMS (list); + + /* + * We put this in here because everybody needs to call this function + * before accessing ports... + */ + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); + + C_MEM (*list = calloc (1, sizeof (GPPortInfoList))); + + return (GP_OK); +} + +/** + * \brief Free a GPPortInfo list + * \param list a #GPPortInfoList + * + * Frees a GPPortInfoList structure and its internal data structures. + * + * \return a gphoto2 error code + **/ +int +gp_port_info_list_free (GPPortInfoList *list) +{ + C_PARAMS (list); + + if (list->info) { + unsigned int i; + + for (i=0;icount;i++) { + free (list->info[i]->name); + list->info[i]->name = NULL; + free (list->info[i]->path); + list->info[i]->path = NULL; + free (list->info[i]->library_filename); + list->info[i]->library_filename = NULL; + free (list->info[i]); + } + free (list->info); + list->info = NULL; + } + list->count = 0; + + free (list); + + return (GP_OK); +} + +/** + * \brief Append a portinfo to the port information list + * + * \param list a #GPPortInfoList + * \param info the info to append + * + * Appends an entry to the list. This function is typically called by + * an io-driver during #gp_port_library_list. If you leave info.name blank, + * #gp_port_info_list_lookup_path will try to match non-existent paths + * against info.path and - if successfull - will append this entry to the + * list. + * + * \return A gphoto2 error code, or an index into the port list (excluding generic entries). + * which can be used for gp_port_info_list_get_info. + **/ +int +gp_port_info_list_append (GPPortInfoList *list, GPPortInfo info) +{ + int generic, i; + + C_PARAMS (list); + + C_MEM (list->info = realloc (list->info, sizeof (GPPortInfo) * (list->count + 1))); + list->count++; + list->info[list->count - 1] = info; + + /* Ignore generic entries */ + for (generic = i = 0; i < list->count; i++) + if (!strlen (list->info[i]->name)) + generic++; + return (list->count - 1 - generic); +} + + +static int +foreach_func (const char *filename, lt_ptr data) +{ + GPPortInfoList *list = data; + lt_dlhandle lh; + GPPortLibraryType lib_type; + GPPortLibraryList lib_list; + GPPortType type; + unsigned int j, old_size = list->count; + int result; + + GP_LOG_D ("Called for filename '%s'.", filename ); + + lh = lt_dlopenext (filename); + if (!lh) { + GP_LOG_D ("Could not load '%s': '%s'.", filename, lt_dlerror ()); + return (0); + } + + lib_type = lt_dlsym (lh, "gp_port_library_type"); + lib_list = lt_dlsym (lh, "gp_port_library_list"); + if (!lib_type || !lib_list) { + GP_LOG_D ("Could not find some functions in '%s': '%s'.", + filename, lt_dlerror ()); + lt_dlclose (lh); + return (0); + } + + type = lib_type (); + for (j = 0; j < list->count; j++) + if (list->info[j]->type == type) + break; + if (j != list->count) { + GP_LOG_D ("'%s' already loaded", filename); + lt_dlclose (lh); + return (0); + } + + result = lib_list (list); +#if !defined(VALGRIND) + lt_dlclose (lh); +#endif + if (result < 0) { + GP_LOG_E ("Error during assembling of port list: '%s' (%d).", + gp_port_result_as_string (result), result); + } + + if (old_size != list->count) { + /* + * It doesn't matter if lib_list returned a failure code, + * at least some entries were added + */ + list->iolib_count++; + + for (j = old_size; j < list->count; j++){ + GP_LOG_D ("Loaded '%s' ('%s') from '%s'.", + list->info[j]->name, list->info[j]->path, + filename); + list->info[j]->library_filename = strdup (filename); + } + } + + return (0); +} + + +/** + * \brief Load system ports + * + * \param list a #GPPortInfoList + * + * Searches the system for io-drivers and appends them to the list. You would + * normally call this function once after #gp_port_info_list_new and then + * use this list in order to supply #gp_port_set_info with parameters or to do + * autodetection. + * + * \return a gphoto2 error code + **/ +int +gp_port_info_list_load (GPPortInfoList *list) +{ + const char *iolibs_env = getenv(IOLIBDIR_ENV); + const char *iolibs = (iolibs_env != NULL)?iolibs_env:IOLIBS; + int result; + + C_PARAMS (list); + + GP_LOG_D ("Using ltdl to load io-drivers from '%s'...", iolibs); + lt_dlinit (); + lt_dladdsearchdir (iolibs); + result = lt_dlforeachfile (iolibs, foreach_func, list); + lt_dlexit (); + if (result < 0) + return (result); + if (list->iolib_count == 0) { + GP_LOG_E ("No iolibs found in '%s'", iolibs); + return GP_ERROR_LIBRARY; + } + return (GP_OK); +} + +/** + * \brief Number of ports in the list + * \param list a #GPPortInfoList + * + * Returns the number of entries in the passed list. + * + * \return The number of entries or a gphoto2 error code + **/ +int +gp_port_info_list_count (GPPortInfoList *list) +{ + unsigned int count, i; + + C_PARAMS (list); + + GP_LOG_D ("Counting entries (%i available)...", list->count); + + /* Ignore generic entries */ + count = list->count; + for (i = 0; i < list->count; i++) + if (!strlen (list->info[i]->name)) + count--; + + GP_LOG_D ("%i regular entries available.", count); + return count; +} + +/** + * \brief Lookup a specific path in the list + * + * \param list a #GPPortInfoList + * \param path a path + * + * Looks for an entry in the list with the supplied path. If no exact match + * can be found, a regex search will be performed in the hope some driver + * claimed ports like "serial:*". + * + * \return The index of the entry or a gphoto2 error code + **/ +int +gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path) +{ + unsigned int i; + int result, generic; +#ifdef HAVE_REGEX + regex_t pattern; +#ifdef HAVE_GNU_REGEX + const char *rv; +#else + regmatch_t match; +#endif +#endif + + C_PARAMS (list && path); + + GP_LOG_D ("Looking for path '%s' (%i entries available)...", path, list->count); + + /* Exact match? */ + for (generic = i = 0; i < list->count; i++) + if (!strlen (list->info[i]->name)) + generic++; + else if (!strcmp (list->info[i]->path, path)) + return (i - generic); + +#ifdef HAVE_REGEX + /* Regex match? */ + GP_LOG_D ("Starting regex search for '%s'...", path); + for (i = 0; i < list->count; i++) { + GPPortInfo newinfo; + + if (strlen (list->info[i]->name)) + continue; + + GP_LOG_D ("Trying '%s'...", list->info[i]->path); + + /* Compile the pattern */ +#ifdef HAVE_GNU_REGEX + memset (&pattern, 0, sizeof (pattern)); + rv = re_compile_pattern (list->info[i]->path, + strlen (list->info[i]->path), &pattern); + if (rv) { + GP_LOG_D ("%s", rv); + continue; + } +#else + result = regcomp (&pattern, list->info[i]->path, REG_ICASE); + if (result) { + char buf[1024]; + if (regerror (result, &pattern, buf, sizeof (buf))) + GP_LOG_E ("%s", buf); + else + GP_LOG_E ("regcomp failed"); + return (GP_ERROR_UNKNOWN_PORT); + } +#endif + + /* Try to match */ +#ifdef HAVE_GNU_REGEX + result = re_match (&pattern, path, strlen (path), 0, NULL); + regfree (&pattern); + if (result < 0) { + GP_LOG_D ("re_match failed (%i)", result); + continue; + } +#else + result = regexec (&pattern, path, 1, &match, 0); + regfree (&pattern); + if (result) { + GP_LOG_D ("regexec failed"); + continue; + } +#endif + gp_port_info_new (&newinfo); + gp_port_info_set_type (newinfo, list->info[i]->type); + newinfo->library_filename = strdup(list->info[i]->library_filename); + gp_port_info_set_name (newinfo, _("Generic Port")); + gp_port_info_set_path (newinfo, path); + CR (result = gp_port_info_list_append (list, newinfo)); + return result; + } +#endif /* HAVE_REGEX */ + + return (GP_ERROR_UNKNOWN_PORT); +} + +/** + * \brief Look up a name in the list + * \param list a #GPPortInfoList + * \param name a name + * + * Looks for an entry in the list with the exact given name. + * + * \return The index of the entry or a gphoto2 error code + **/ +int +gp_port_info_list_lookup_name (GPPortInfoList *list, const char *name) +{ + unsigned int i, generic; + + C_PARAMS (list && name); + + GP_LOG_D ("Looking up entry '%s'...", name); + + /* Ignore generic entries */ + for (generic = i = 0; i < list->count; i++) + if (!strlen (list->info[i]->name)) + generic++; + else if (!strcmp (list->info[i]->name, name)) + return (i - generic); + + return (GP_ERROR_UNKNOWN_PORT); +} + +/** + * \brief Get port information of specific entry + * \param list a #GPPortInfoList + * \param n the index of the entry + * \param info the returned information + * + * Returns a pointer to the current port entry. + * + * \return a gphoto2 error code + **/ +int +gp_port_info_list_get_info (GPPortInfoList *list, int n, GPPortInfo *info) +{ + int i; + + C_PARAMS (list && info); + + GP_LOG_D ("Getting info of entry %i (%i available)...", n, list->count); + + C_PARAMS (n >= 0 && n < list->count); + + /* Ignore generic entries */ + for (i = 0; i <= n; i++) + if (!strlen (list->info[i]->name)) { + n++; + C_PARAMS (n < list->count); + } + + *info = list->info[n]; + return GP_OK; +} + + +/** + * \brief Get name of a specific port entry + * \param info a #GPPortInfo + * \param name a pointer to a char* which will receive the name + * + * Retreives the name of the passed in GPPortInfo, by reference. + * + * \return a gphoto2 error code + **/ +int +gp_port_info_get_name (GPPortInfo info, char **name) { + *name = info->name; + return GP_OK; +} + +/** + * \brief Set name of a specific port entry + * \param info a #GPPortInfo + * \param name a char* pointer which will receive the name + * + * Sets the name of the passed in GPPortInfo + * This is a libgphoto2_port internal function. + * + * \return a gphoto2 error code + **/ +int +gp_port_info_set_name (GPPortInfo info, const char *name) { + C_MEM (info->name = strdup (name)); + return GP_OK; +} + +/** + * \brief Get path of a specific port entry + * \param info a #GPPortInfo + * \param path a pointer to a char* which will receive the path + * + * Retreives the path of the passed in GPPortInfo, by reference. + * + * \return a gphoto2 error code + **/ +int +gp_port_info_get_path (GPPortInfo info, char **path) { + *path = info->path; + return GP_OK; +} + +/** + * \brief Set path of a specific port entry + * \param info a #GPPortInfo + * \param path a char* pointer which will receive the path + * + * Sets the path of the passed in GPPortInfo + * This is a libgphoto2_port internal function. + * + * \return a gphoto2 error code + **/ +int +gp_port_info_set_path (GPPortInfo info, const char *path) { + C_MEM (info->path = strdup (path)); + return GP_OK; +} + +/** + * \brief Get type of a specific port entry + * \param info a #GPPortInfo + * \param type a pointer to a GPPortType variable which will receive the type + * + * Retreives the type of the passed in GPPortInfo + * + * \return a gphoto2 error code + **/ +int +gp_port_info_get_type (GPPortInfo info, GPPortType *type) { + *type = info->type; + return GP_OK; +} + +/** + * \brief Set type of a specific port entry + * \param info a #GPPortInfo + * \param type a GPPortType variable which will has the type + * + * Sets the type of the passed in GPPortInfo + * This is a libgphoto2_port internal function. + * + * \return a gphoto2 error code + **/ +int +gp_port_info_set_type (GPPortInfo info, GPPortType type) { + info->type = type; + return GP_OK; +} + +/** + * \brief Create a new portinfo + * \param info pointer to a #GPPortInfo + * + * Allocates and initializes a GPPortInfo structure. + * This is a libgphoto2_port internal function. + * + * \return a gphoto2 error code + **/ +int +gp_port_info_new (GPPortInfo *info) { + C_MEM (*info = calloc (1, sizeof(struct _GPPortInfo))); + return GP_OK; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-info.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-info.h new file mode 100644 index 00000000..a0db54b7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-info.h @@ -0,0 +1,40 @@ +/** \file + * + * \author Copyright 2001 Lutz Mueller + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef GPHOTO_PORT_INFO_H +#define GPHOTO_PORT_INFO_H + +/** + * \internal GPPortInfo: + * + * The internals of this list are private. + **/ +struct _GPPortInfo { + GPPortType type; /**< \brief The type of this port. */ + char *name; /**< \brief The name of this port (usb:) */ + char *path; /**< \brief The path of this port (usb:001,023) */ + + /* Private */ + char *library_filename; /**< \brief Internal pathname of the port driver. Do not use outside of the port library. */ +}; +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c new file mode 100644 index 00000000..6bf15f6c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c @@ -0,0 +1,523 @@ +/** \file + * + * \author Copyright 2001 Lutz Mueller + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" +#include + +#include +#include +#include +#include + +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +#endif + +#ifndef DISABLE_DEBUGGING +/** + * \brief Internal logging function entry. + * + * Internal structure to remember the logging functions. + * Use gp_log_add_func() and gp_log_remove_func() to access it. + */ +typedef struct { + unsigned int id; /**< Internal id */ + GPLogLevel level; /**< Internal loglevel */ + GPLogFunc func; /**< Internal function pointer to call */ + void *data; /**< Private data supplied by caller */ +} LogFunc; + +static LogFunc *log_funcs = NULL; +static unsigned int log_funcs_count = 0; + +/** + * \brief Add a function to get logging information + * + * \param level the maximum level of logging it will get, up to and including the passed value + * \param func a #GPLogFunc + * \param data data + * + * Adds a log function that will be called for each log message that is flagged + * with a log level that appears in given log level. This function returns + * an id that you can use for removing the log function again (using + * #gp_log_remove_func). + * + * \return an id or a gphoto2 error code + **/ +int +gp_log_add_func (GPLogLevel level, GPLogFunc func, void *data) +{ + static int logfuncid = 0; + + C_PARAMS (func); + C_MEM (log_funcs = realloc (log_funcs, sizeof (LogFunc) * + (log_funcs_count + 1))); + log_funcs_count++; + + log_funcs[log_funcs_count - 1].id = ++logfuncid; + log_funcs[log_funcs_count - 1].level = level; + log_funcs[log_funcs_count - 1].func = func; + log_funcs[log_funcs_count - 1].data = data; + + return logfuncid; +} + + +char* +gpi_vsnprintf (const char* format, va_list args) +{ + va_list xargs; + int strsize; + char *str; + +#ifdef HAVE_VA_COPY + va_copy (xargs, args); +#else + /* according to 'the web', the only interesting compiler without va_copy is MSVC + * and there a simple assignment is the way to go */ + xargs = args; +#endif + + /* query the size necessary for the string, add the terminating '\0' */ + strsize = vsnprintf (NULL, 0, format, xargs) + 1; + va_end (xargs); + + str = malloc(strsize); + if (!str) + return NULL; + + /* actually print the string into the buffer */ + vsnprintf (str, strsize, format, args); + + return str; +} + +/** + * \brief Remove a logging receiving function + * \param id an id (return value of #gp_log_add_func) + * + * Removes the log function with given id. + * + * \return a gphoto2 error code + **/ +int +gp_log_remove_func (int id) +{ + int i; + + for (i=0;i> 12) & 0xf]; \ + curline[HEXDUMP_OFFSET_WIDTH - 3] = hexchars[(index >> 8) & 0xf]; \ + curline[HEXDUMP_OFFSET_WIDTH - 2] = hexchars[(index >> 4) & 0xf]; \ + curline[HEXDUMP_OFFSET_WIDTH - 1] = '0'; \ + curline[HEXDUMP_OFFSET_WIDTH + 0] = ' '; \ + curline[HEXDUMP_OFFSET_WIDTH + 1] = ' '; \ + curline[HEXDUMP_MIDDLE] = '-'; \ + curline[HEXDUMP_INIT_Y-2] = ' '; \ + curline[HEXDUMP_INIT_Y-1] = ' '; \ + curline[HEXDUMP_LINE_WIDTH] = '\n'; \ + curline = curline + (HEXDUMP_LINE_WIDTH + 1);} + +/** + * \brief Log data + * \brief domain the domain + * \brief data the data to be logged + * \brief size the size of the data + * + * Takes the data and creates a formatted hexdump string. If you would like + * to log text messages, use #gp_log instead. + **/ +/* coverity[-tainted_sink] */ +void +gp_log_data (const char *domain, const char *data, unsigned int size, const char *format, ...) +{ + va_list args; + static const char hexchars[16] = "0123456789abcdef"; + char *curline, *result = 0, *msg = 0; + int x = HEXDUMP_INIT_X; + int y = HEXDUMP_INIT_Y; + unsigned int index, original_size = size; + unsigned char value; + + va_start (args, format); + msg = gpi_vsnprintf(format, args); + va_end (args); + if (!msg) { + GP_LOG_E ("Malloc for expanding format string '%s' failed.", format); + goto exit; + } + + if (!data) { + gp_log (GP_LOG_DATA, domain, "%s (no hexdump, NULL buffer)", msg); + goto exit; + } + + if (!size) { + gp_log (GP_LOG_DATA, domain, "%s (empty hexdump of empty buffer)", msg); + goto exit; + } + + if (size > 1024*1024) { + /* Does not make sense for 200 MB movies */ + size = 1024*1024; + } + + curline = result = malloc ((HEXDUMP_LINE_WIDTH+1)*(((size-1)/16)+1)+1); + if (!result) { + GP_LOG_E ("Malloc for %i bytes failed", (HEXDUMP_LINE_WIDTH+1)*(((size-1)/16)+1)+1); + goto exit; + } + + for (index = 0; index < size; ++index) { + value = (unsigned char)data[index]; + curline[x] = hexchars[value >> 4]; + curline[x+1] = hexchars[value & 0xf]; + curline[x+2] = ' '; + curline[y++] = ((value>=32)&&(value<127))?value:'.'; + x += 3; + if ((index & 0xf) == 0xf) { /* end of line */ + x = HEXDUMP_INIT_X; + y = HEXDUMP_INIT_Y; + HEXDUMP_COMPLETE_LINE; + } + } + if ((index & 0xf) != 0) { /* not at end of line yet? */ + /* if so, complete this line */ + while (y < HEXDUMP_INIT_Y + 16) { + curline[x+0] = ' '; + curline[x+1] = ' '; + curline[x+2] = ' '; + curline[y++] = ' '; + x += 3; + } + HEXDUMP_COMPLETE_LINE; + } + curline[0] = '\0'; + + if (size == original_size) + gp_log (GP_LOG_DATA, domain, "%s (hexdump of %d bytes)\n%s", msg, size, result); + else + gp_log (GP_LOG_DATA, domain, "%s (hexdump of the first %d of %d bytes)\n%s", msg, size, original_size, result); + +exit: + free (msg); + free (result); +} + +#undef HEXDUMP_COMPLETE_LINE +#undef HEXDUMP_MIDDLE +#undef HEXDUMP_LINE_WIDTH +#undef HEXDUMP_INIT_Y +#undef HEXDUMP_INIT_X +#undef HEXDUMP_BLOCK_DISTANCE +#undef HEXDUMP_OFFSET_WIDTH + +/** + * \brief Log a debug or error message with va_list + * \param level gphoto2 log level + * \param domain the domain + * \param format the format + * \param args the va_list corresponding to format + * + * Logs a message at the given log level. You would normally use this + * function to log as yet unformatted strings. + **/ +void +gp_logv (GPLogLevel level, const char *domain, const char *format, + va_list args) +{ + unsigned int i; + char *str = 0; + + if (!log_funcs_count) + return; + + str = gpi_vsnprintf(format, args); + if (!str) { + GP_LOG_E ("Malloc for expanding format string '%s' failed.", format); + return; + } + + for (i = 0; i < log_funcs_count; i++) + if (log_funcs[i].level >= level) + log_funcs[i].func (level, domain, str, log_funcs[i].data); + free (str); +} + +/** + * \brief Log a debug or error message + * \param level gphoto2 log level + * \param domain the log domain + * \param format a printf style format string + * \param ... the variable argumentlist for above format string + * + * Logs a message at the given log level. You would normally use this + * function to log general debug output in a printf way. + **/ +void +gp_log (GPLogLevel level, const char *domain, const char *format, ...) +{ + va_list args; + + va_start (args, format); + gp_logv (level, domain, format, args); + va_end (args); +} + +void +gp_log_with_source_location(GPLogLevel level, const char *file, int line, const char *func, const char *format, ...) +{ + va_list args; + char domain[100]; + + /* Only display filename without any path/directory part */ + file = strrchr(file, '/') ? strrchr(file, '/') + 1 : file; + snprintf(domain, sizeof(domain), "%s [%s:%d]", func, file, line); + + va_start (args, format); + gp_logv (level, domain, format, args); + va_end (args); +} + +#else /* DISABLE_DEBUGGING */ + +/* + * Even if debugging is disabled, we must keep stubs to these functions + * around so that programs dynamically linked to this library will still run. + */ + +/* Remove these macros so we can compile functions with these names */ +#ifdef gp_log_add_func +#undef gp_log_add_func +#endif +#ifdef gp_log_remove_func +#undef gp_log_remove_func +#endif +#ifdef gp_log_data +#undef gp_log_data +#endif +#ifdef gp_logv +#undef gp_logv +#endif +#ifdef gp_log +#undef gp_log +#endif +#ifdef gp_log_with_source_location +#undef gp_log_with_source_location +#endif + +int +gp_log_add_func (GPLogLevel level, GPLogFunc func, void *data) +{ + return 0; +} + +int +gp_log_remove_func (int id) +{ + return 0; +} + +void +gp_log_data (const char *domain, const char *data, unsigned int size, const char *format, ...) +{ +} + +void +gp_logv (GPLogLevel level, const char *domain, const char *format, + va_list args) +{ +} + +void +gp_log (GPLogLevel level, const char *domain, const char *format, ...) +{ +} + +void +gp_log_with_source_location(GPLogLevel level, const char *file, int line, const char *func, const char *format, ...) +{ +} +#endif /* DISABLE_DEBUGGING */ + + +#ifdef _GPHOTO2_INTERNAL_CODE + +/** + * \brief (Internal) translate a enumeration code to a string + */ +const char * +gpi_enum_to_string(unsigned int _enum, + const StringFlagItem *map) +{ + int i; + for (i=0; map[i].str != NULL; i++) { + if (_enum == map[i].flag) { + return(map[i].str); + break; + } + } + return NULL; +} + +/** + * \brief (Internal) translate a string to an enumeration code + */ +int +gpi_string_to_enum(const char *str, + unsigned int *result, + const StringFlagItem *map) +{ + int i; + for (i=0; map[i].str != NULL; i++) { + if (0==strcmp(map[i].str, str)) { + (*result) = map[i].flag; + return 0; + } + } + return 1; +} + +void +gpi_flags_to_string_list(unsigned int flags, + const StringFlagItem *map, + string_item_func func, void *data) +{ + int i; + for (i=0; map[i].str != NULL; i++) { + if ((flags == 0) && (map[i].flag == 0)) { + func(map[i].str, data); + break; + } else if (0 != (flags & map[i].flag)) { + func(map[i].str, data); + } + } +} + +unsigned int +gpi_string_to_flag(const char *str, + const StringFlagItem *map) +{ + int i; + for (i=0; map[i].str != NULL; i++) { + if (0==strcmp(map[i].str, str)) { + return map[i].flag; + } + } + return 0; +} + +int +gpi_string_or_to_flags(const char *str, + unsigned int *flags, + const StringFlagItem *map) +{ + int i; + int found = 0; + for (i=0; map[i].str != NULL; i++) { + if (0==strcmp(map[i].str, str)) { + (*flags) |= map[i].flag; + found = 1; + } + } + if (found) { + return 0; + } else { + return 1; + } +} + +unsigned int +gpi_string_list_to_flags(const char *str[], + const StringFlagItem *map) +{ + int i; + unsigned int flags = 0; + for (i=0; str[i] != NULL; i++) { + flags |= gpi_string_to_flag(str[i], map); + } + return flags; +} + +#endif /* _GPHOTO2_INTERNAL_CODE */ + + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c new file mode 100644 index 00000000..7787a78b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c @@ -0,0 +1,287 @@ +/** \file + * + * \author Copyright 2001 Lutz Mueller + * \author Copyright 1999 Scott Fritzinger + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * This file contains various portability functions that + * make non UNIX (Windows) ports easier. + */ + +#include "config.h" +#include +#include +#include +#include + +/* Windows Portability + ------------------------------------------------------------------ */ +#ifdef WIN32 + + +void gp_port_win_convert_path (char *path) { + + int x; + + if (strchr(path, '\\')) + /* already converted */ + return; + + if (path[0] != '.') { + path[0] = path[1]; + path[1] = ':'; + path[2] = '\\'; + } + + for (x=0; xhandle = INVALID_HANDLE_VALUE; + d->got_first = 0; + strcpy(d->dir, dirname); + d->drive_count = 0; + d->drive_index = 0; + + dr = GetLogicalDrives(); + + for (x=0; x<32; x++) { + if ((dr >> x) & 0x0001) { + sprintf(d->drive[d->drive_count], "%c", 'A' + x); + d->drive_count += 1; + } + } + + return (d); +} + +gp_system_dirent gp_system_readdir (gp_system_dir d) { + + char dirn[1024]; + + if (strcmp(d->dir, "/")==0) { + if (d->drive_index == d->drive_count) + return (NULL); + strcpy(d->search.cFileName, d->drive[d->drive_index]); + d->drive_index += 1; + return (&(d->search)); + } + + + /* Append the wildcard */ + + strcpy(dirn, d->dir); + gp_port_win_convert_path(dirn); + + if (dirn[strlen(dirn)-1] != '\\') + strcat(dirn, "\\"); + strcat(dirn, "*"); + + + if (d->handle == INVALID_HANDLE_VALUE) { + d->handle = FindFirstFile(dirn, &(d->search)); + if (d->handle == INVALID_HANDLE_VALUE) + return NULL; + } else { + if (!FindNextFile(d->handle, &(d->search))) + return NULL; + } + + return (&(d->search)); +} + +const char *gp_system_filename (gp_system_dirent de) { + + return (de->cFileName); +} + +int gp_system_closedir (gp_system_dir d) { + FindClose(d->handle); + free(d); + return (1); +} + +int gp_system_is_file (const char *filename) { + + struct stat st; + + gp_port_win_convert_path(filename); + + if (stat(filename, &st)!=0) + return 0; + return (st.st_mode & _S_IFREG); +} + +int gp_system_is_dir (const char *dirname) { + + struct stat st; + + if (strlen(dirname) <= 3) + return 1; + + gp_port_win_convert_path(dirname); + + if (stat(dirname, &st)!=0) + return 0; + return (st.st_mode & _S_IFDIR); +} + + +#else + +/** + * \brief mkdir UNIX functionality + * \param dirname directory to create + * + * Creates a new directory. + * + * \return a gphoto error code + */ +int gp_system_mkdir (const char *dirname) { + if (mkdir(dirname, 0777)<0) + return (GP_ERROR); + return (GP_OK); +} + +/** + * \brief rmdir UNIX functionality + * \param dirname directory to remove + * + * Removes a empty directory. + * + * \return a gphoto error code + */ +int gp_system_rmdir (const char *dirname) { + + if (rmdir (dirname) < 0) + return (GP_ERROR); + + return (GP_OK); +} + +/** + * \brief opendir UNIX functionality + * \param dirname directory to open + * + * Opens a directory for readdir and later closedir operations, + * to enumerate its contents. + * + * \return a directory handle for use in gp_system_readdir() and gp_system_closedir() + */ +gp_system_dir gp_system_opendir (const char *dirname) { + return (opendir(dirname)); +} + +/** + * \brief readdir UNIX functionality + * \param d directory to enumerate + * + * Reads one directory entry from the specified directory handle + * as returned from gp_system_opendir(). Use gp_system_filename() + * to extract the filename from the returned value. + * + * \return a new gp_system_dirent or NULL + */ +gp_system_dirent gp_system_readdir (gp_system_dir d) { + return (readdir(d)); +} + +/** + * \brief retrieve UNIX filename out of a directory entry + * \param de directory entry as returned from gp_system_readdir() + * + * Extracts a filename out of the passed directory entry. + * + * \return the filename of the directory entry + */ +const char *gp_system_filename (gp_system_dirent de) { + return (de->d_name); +} + +/** + * \brief closedir UNIX functionality + * \param dir directory to close + * + * Closes a directory after readdir operations. + * + * \return a gphoto error code + */ +int gp_system_closedir (gp_system_dir dir) { + closedir(dir); + return (GP_OK); +} + +/** + * \brief check if passed filename is a file + * \param filename file name to check + * + * Checks whether the passed in filename is + * a file and returns this as boolean. + * + * \return boolean flag whether passed filename is a file. + */ +int gp_system_is_file (const char *filename) { + struct stat st; + + if (stat(filename, &st)!=0) + return 0; + return (!S_ISDIR(st.st_mode)); +} + +/** + * \brief check if passed filename is a directory + * \param dirname file name to check + * + * Checks whether the passed in dirname is + * a directory and returns this as boolean. + * + * \return boolean flag whether passed filename is a directory. + */ +int gp_system_is_dir (const char *dirname) { + struct stat st; + + if (stat(dirname, &st)!=0) + return 0; + return (S_ISDIR(st.st_mode)); +} +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-result.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-result.c new file mode 100644 index 00000000..65317693 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-result.c @@ -0,0 +1,104 @@ +/** \file + * + * Copyright 2001 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +/** + * gp_port_result_as_string: + * @result: a gphoto2 error code + * + * Returns a string representation of a gphoto2 error code. Those are static + * error descriptions. You can get dynamic ones that explain the error more + * in depth using #gp_port_get_error. + * + * Return value: a string representation of a gphoto2 error code + **/ +const char * +gp_port_result_as_string (int result) +{ + switch (result) { + case GP_OK: + return _("No error"); + case GP_ERROR: + return _("Unspecified error"); + case GP_ERROR_IO: + return _("I/O problem"); + case GP_ERROR_BAD_PARAMETERS: + return _("Bad parameters"); + case GP_ERROR_NOT_SUPPORTED: + return _("Unsupported operation"); + case GP_ERROR_FIXED_LIMIT_EXCEEDED: + return _("Fixed limit exceeded"); + case GP_ERROR_TIMEOUT: + return _("Timeout reading from or writing to the port"); + case GP_ERROR_IO_SUPPORTED_SERIAL: + return _("Serial port not supported"); + case GP_ERROR_IO_SUPPORTED_USB: + return _("USB port not supported"); + case GP_ERROR_UNKNOWN_PORT: + return _("Unknown port"); + case GP_ERROR_NO_MEMORY: + return _("Out of memory"); + case GP_ERROR_LIBRARY: + return _("Error loading a library"); + case GP_ERROR_IO_INIT: + return _("Error initializing the port"); + case GP_ERROR_IO_READ: + return _("Error reading from the port"); + case GP_ERROR_IO_WRITE: + return _("Error writing to the port"); + case GP_ERROR_IO_UPDATE: + return _("Error updating the port settings"); + case GP_ERROR_IO_SERIAL_SPEED: + return _("Error setting the serial port speed"); + case GP_ERROR_IO_USB_CLEAR_HALT: + return _("Error clearing a halt condition on the USB port"); + case GP_ERROR_IO_USB_FIND: + return _("Could not find the requested device on the USB port"); + case GP_ERROR_IO_USB_CLAIM: + return _("Could not claim the USB device"); + case GP_ERROR_IO_LOCK: + return _("Could not lock the device"); + case GP_ERROR_HAL: + return _("libhal error"); + default: + return _("Unknown error"); + } +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-version.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-version.c new file mode 100644 index 00000000..5943adcc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port-version.c @@ -0,0 +1,128 @@ +/** \file + * + * Copyright 2002 Hans Ulrich Niedermann + +#include + +const char **gp_port_library_version(GPVersionVerbosity verbose) +{ + /* we could also compute/parse the short strings from the long + ones, but the current method is easier for now :-) */ + static const char *shrt[] = + { + PACKAGE_VERSION, + "iolibs: " IOLIB_LIST, +#ifdef HAVE_CC + HAVE_CC, +#else + "unknown cc", +#endif +#ifdef HAVE_LTDL + "ltdl", +#else + "no ltdl", +#endif +#if defined(HAVE_LIBUSB) || defined(HAVE_LIBUSB1) || defined(HAVE_LIBUSB_WIN32) + "USB", +#else + "no USB", +#endif +#ifdef HAVE_SERIAL + "serial " + +#ifdef HAVE_RESMGR + "resmgr locking", +#elif HAVE_TTYLOCK + "ttylock locking", +#elif HAVE_LOCKDEV + "lockdev locking", +#else + "without locking", +#endif + +#else + "no serial", +#endif + NULL + }; + static const char *verb[] = + { + PACKAGE_VERSION, + "iolibs: " IOLIB_LIST, +#ifdef HAVE_CC + HAVE_CC " (C compiler used)", +#else + "unknown (C compiler used)", +#endif +#ifdef HAVE_LTDL + "ltdl (for portable loading of iolibs)", +#else + "no ltdl (for portable loading of iolibs)", +#endif +#ifdef HAVE_LIBUSB_WIN32 + "USB (libusb-win32, for USB cameras)", +#elif defined(HAVE_LIBUSB1) + "USB (libusb1, for USB cameras)", +#elif defined(HAVE_LIBUSB) + "USB (libusb0, for USB cameras)", +#else + "no USB (for USB cameras)", +#endif +#ifdef HAVE_SERIAL + "serial (for serial cameras)", +#else + "no serial (for serial cameras)", +#endif +#ifdef HAVE_RESMGR + "resmgr (serial port access and locking)", +#else + "no resmgr (serial port access and locking)", +#endif +#ifdef HAVE_TTYLOCK + "ttylock (serial port locking)", +#else + "no ttylock (serial port locking)", +#endif +#ifdef HAVE_LOCKDEV + "lockdev (serial port locking)", +#else + "no lockdev (serial port locking)", +#endif + NULL + }; + return((verbose == GP_VERSION_VERBOSE)?verb:shrt); +} + +/* +static void foobar() { + GPVersionFunc gp_port_lib_ver_func = NULL; + gp_port_lib_ver_func = gp_port_library_version; + gp_port_lib_ver_func(GP_VERSION_VERBOSE); +} +*/ + +/* + * Local Variables: + * c-file-style:"linux" + * indent-tabs-mode:t + * End: + */ diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port.c new file mode 100644 index 00000000..8f84482a --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/gphoto2-port.c @@ -0,0 +1,1216 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/** \file + * + * \author Copyright 2001 Lutz Mueller + * \author Copyright 1999 Scott Fritzinger + * + * \par License + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * \par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * \par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" + +#include +#include +#include +#include + +#include + +#include +#include +#include + +#include "gphoto2-port-info.h" + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define _(String) (String) +# define N_(String) (String) +# define ngettext(String1,String2,Count) ((Count==1)?String1:String2) +#endif + +#define CHECK_RESULT(result) {int r=(result); if (r<0) return (r);} +#define CHECK_SUPP(p,t,o) {if (!(o)) {gp_port_set_error ((p), _("The operation '%s' is not supported by this device"), (t)); return (GP_ERROR_NOT_SUPPORTED);}} +#define CHECK_INIT(p) {if (!(p)->pc->ops) {gp_port_set_error ((p), _("The port has not yet been initialized")); return (GP_ERROR_BAD_PARAMETERS);}} + +#define LOG_DATA(DATA, SIZE, EXPECTED, MSG_PRE, MSG_POST, ...) \ + if (SIZE != EXPECTED) \ + GP_LOG_DATA (DATA, SIZE, MSG_PRE " %i = 0x%x out of %i bytes " MSG_POST, SIZE, SIZE, EXPECTED, ##__VA_ARGS__); \ + else \ + GP_LOG_DATA (DATA, SIZE, MSG_PRE " %i = 0x%x bytes " MSG_POST, SIZE, SIZE, ##__VA_ARGS__) + + +/** + * \brief Internal private libgphoto2_port data. + * This structure contains private data. + **/ +struct _GPPortPrivateCore { + char error[2048]; /**< Internal kept error message. */ + + struct _GPPortInfo info; /**< Internal port information of this port. */ + GPPortOperations *ops; /**< Internal port operations. */ + lt_dlhandle lh; /**< Internal libtool library handle. */ +}; + +/** + * \brief Create new GPPort + * + * Allocate and initialize the memory for a new #GPPort. + * + * After you called this function, + * you probably want to call #gp_port_set_info in order to make the newly + * created port functional. + * + * \param port Pointer the #GPPort* pointer + * \return a gphoto2 error code + **/ +int +gp_port_new (GPPort **port) +{ + C_PARAMS (port); + + GP_LOG_D ("Creating new device..."); + + C_MEM (*port = calloc (1, sizeof (GPPort))); + + (*port)->pc = calloc (1, sizeof (GPPortPrivateCore)); + if (!(*port)->pc) { + gp_port_free (*port); + return (GP_ERROR_NO_MEMORY); + } + + return (GP_OK); +} + +static int +gp_port_init (GPPort *port) +{ + C_PARAMS (port); + CHECK_INIT (port); + + if (port->pc->ops->init) + CHECK_RESULT (port->pc->ops->init (port)); + + return (GP_OK); +} + +static int +gp_port_exit (GPPort *port) +{ + C_PARAMS (port); + CHECK_INIT (port); + + if (port->pc->ops->exit) + CHECK_RESULT (port->pc->ops->exit (port)); + + return (GP_OK); +} + +/** + * \brief Configure a port + * + * Makes a port functional by passing in the necessary path + * information (from the serial:/dev/ttyS0 or similar variables). + * After calling this function, you can access the port using for + * example gp_port_open(). + * + * \param port a GPPort + * \param info the GPPortInfo to set + * + * \return a gphoto2 error code + **/ +int +gp_port_set_info (GPPort *port, GPPortInfo info) +{ + int ret; + + GPPortLibraryOperations ops_func; + + C_PARAMS (port); + + free (port->pc->info.name); + C_MEM (port->pc->info.name = strdup (info->name)); + free (port->pc->info.path); + C_MEM (port->pc->info.path = strdup (info->path)); + port->pc->info.type = info->type; + free (port->pc->info.library_filename); + C_MEM (port->pc->info.library_filename = strdup (info->library_filename)); + + port->type = info->type; + + /* Clean up */ + if (port->pc->ops) { + gp_port_exit (port); + free (port->pc->ops); + port->pc->ops = NULL; + } + if (port->pc->lh) { +#if !defined(VALGRIND) + lt_dlclose (port->pc->lh); + lt_dlexit (); +#endif + } + + lt_dlinit (); + port->pc->lh = lt_dlopenext (info->library_filename); + if (!port->pc->lh) { + GP_LOG_E ("Could not load '%s' ('%s').", info->library_filename, lt_dlerror ()); + lt_dlexit (); + return (GP_ERROR_LIBRARY); + } + + /* Load the operations */ + ops_func = lt_dlsym (port->pc->lh, "gp_port_library_operations"); + if (!ops_func) { + GP_LOG_E ("Could not find 'gp_port_library_operations' in '%s' ('%s')", + info->library_filename, lt_dlerror ()); + lt_dlclose (port->pc->lh); + lt_dlexit (); + port->pc->lh = NULL; + return (GP_ERROR_LIBRARY); + } + port->pc->ops = ops_func (); + gp_port_init (port); + + /* Initialize the settings to some default ones */ + switch (info->type) { + case GP_PORT_SERIAL: + port->settings.serial.speed = 0; + port->settings.serial.bits = 8; + port->settings.serial.parity = 0; + port->settings.serial.stopbits = 1; + gp_port_set_timeout (port, 500); + break; + case GP_PORT_USB: + if (sizeof (port->settings.usb.port) <= strlen(info->path)) { + GP_LOG_E ("Path is too long for static buffer '%s'.", info->path); + return GP_ERROR_LIBRARY; + } + strncpy (port->settings.usb.port, info->path, + sizeof (port->settings.usb.port)); + port->settings.usb.inep = -1; + port->settings.usb.outep = -1; + port->settings.usb.config = -1; + port->settings.usb.interface = 0; + port->settings.usb.altsetting = -1; + gp_port_set_timeout (port, 5000); + break; + case GP_PORT_USB_DISK_DIRECT: + snprintf(port->settings.usbdiskdirect.path, + sizeof(port->settings.usbdiskdirect.path), "%s", + strchr(info->path, ':') + 1); + break; + case GP_PORT_USB_SCSI: + snprintf(port->settings.usbscsi.path, + sizeof(port->settings.usbscsi.path), "%s", + strchr(info->path, ':') + 1); + break; + default: + /* Nothing in here */ + break; + } + ret = gp_port_set_settings (port, port->settings); + if (ret != GP_ERROR_NOT_SUPPORTED) + CHECK_RESULT (ret); + + return GP_OK; +} + +/** + * \brief Retreives information about the port. + * + * Retrieves the informations set by gp_port_set_info(). + * + * \param port a GPPort + * \param info GPPortInfo + * \return a gphoto2 error code + **/ +int +gp_port_get_info (GPPort *port, GPPortInfo *info) +{ + C_PARAMS (port && info); + + *info = &port->pc->info; + return (GP_OK); +} + +/** + * \brief Open a port. + * \param port a #GPPort + * + * Opens a port which should have been created with #gp_port_new and + * configured with #gp_port_set_info and #gp_port_set_settings + * + * \return a gphoto2 error code + **/ +int +gp_port_open (GPPort *port) +{ + C_PARAMS (port); + CHECK_INIT (port); + + GP_LOG_D ("Opening %s port...", + port->type == GP_PORT_SERIAL ? "SERIAL" : (port->type == GP_PORT_USB ? "USB" : "")); + + CHECK_SUPP (port, "open", port->pc->ops->open); + CHECK_RESULT (port->pc->ops->open (port)); + + return GP_OK; +} + +/** + * \brief Close a port. + * \param port a #GPPort + * + * Closes a port temporarily. It can afterwards be reopened using + * #gp_port_open. + * + * \return a gphoto2 error code + **/ +int +gp_port_close (GPPort *port) +{ + GP_LOG_D ("Closing port..."); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "close", port->pc->ops->close); + CHECK_RESULT (port->pc->ops->close(port)); + + return (GP_OK); +} + +/** + * \brief Reset a port. + * \param port a #GPPort + * + * Resets a port. Device will likely reconnect and appear under a new id. + * + * \return a gphoto2 error code + **/ +int +gp_port_reset (GPPort *port) +{ + GP_LOG_D ("Resetting port..."); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "reset", port->pc->ops->reset); + CHECK_RESULT (port->pc->ops->reset(port)); + + return (GP_OK); +} + +/** + * \brief Free the port structure + * \param port a #GPPort + * + * Closes the port and frees the memory. + * + * \return a gphoto2 error code + **/ +int +gp_port_free (GPPort *port) +{ + GP_LOG_D ("Freeing port..."); + + C_PARAMS (port); + + if (port->pc) { + if (port->pc->ops) { + + /* We don't care for return values */ + gp_port_close (port); + gp_port_exit (port); + + free (port->pc->ops); + port->pc->ops = NULL; + } + + if (port->pc->lh) { +#if !defined(VALGRIND) + lt_dlclose (port->pc->lh); + lt_dlexit (); +#endif + port->pc->lh = NULL; + } + + free (port->pc->info.name); + free (port->pc->info.path); + free (port->pc->info.library_filename); + + free (port->pc); + port->pc = NULL; + } + + free (port); + + return GP_OK; +} + +/** + * \brief Writes a specified amount of data to a port. + + * \param port a #GPPort + * \param data the data to write to the port + * \param size the number of bytes to write to the port + * + * Writes data to the port. On non-serial ports the amount of data + * written is returned (and not just GP_OK). + * + * \return a negative gphoto2 error code or the amount of data written. + **/ +int +gp_port_write (GPPort *port, const char *data, int size) +{ + int retval; + + gp_log (GP_LOG_DATA, __func__, "Writing %i = 0x%x bytes to port...", size, size); + + C_PARAMS (port && data); + CHECK_INIT (port); + + /* Check if we wrote all bytes */ + CHECK_SUPP (port, "write", port->pc->ops->write); + retval = port->pc->ops->write (port, data, size); + if (retval < 0) { + GP_LOG_E ("Writing %i = 0x%x bytes to port failed: %s (%d)", + size, size, gp_port_result_as_string(retval), retval); + return retval; + } + LOG_DATA (data, retval, size, "Wrote ", "to port:"); + + return (retval); +} + +/** + * \brief Read data from port + * + * \param port a #GPPort + * \param data a pointer to an allocated buffer + * \param size the number of bytes that should be read + * + * Reads a specified number of bytes from the port into the supplied buffer. + * It returns the number of bytes read or a negative error code. + * + * \return a gphoto2 error code or the amount of data read + **/ +int +gp_port_read (GPPort *port, char *data, int size) +{ + int retval; + + gp_log (GP_LOG_DATA, __func__, "Reading %i = 0x%x bytes from port...", size, size); + + C_PARAMS (port); + CHECK_INIT (port); + + /* Check if we read as many bytes as expected */ + CHECK_SUPP (port, "read", port->pc->ops->read); + retval = port->pc->ops->read (port, data, size); + if (retval < 0) { + GP_LOG_E ("Reading %i = 0x%x bytes from port failed: %s (%d)", + size, size, gp_port_result_as_string(retval), retval); + return retval; + } + LOG_DATA (data, retval, size, "Read ", "from port:"); + + return (retval); +} + +/** + * \brief Check for intterupt. + * + * \param port a GPPort + * \param data a pointer to an allocated buffer + * \param size the number of bytes that should be read + * + * Reads a specified number of bytes from the interrupt endpoint + * into the supplied buffer. + * Function waits port->timeout miliseconds for data on interrupt endpoint. + * + * \return a gphoto2 error code + **/ +int +gp_port_check_int (GPPort *port, char *data, int size) +{ + int retval; + + gp_log (GP_LOG_DATA, __func__, "Reading %i = 0x%x bytes from interrupt endpoint...", size, size); + + C_PARAMS (port); + CHECK_INIT (port); + + /* Check if we read as many bytes as expected */ + CHECK_SUPP (port, "check_int", port->pc->ops->check_int); + retval = port->pc->ops->check_int (port, data, size, port->timeout); + CHECK_RESULT (retval); + LOG_DATA (data, retval, size, "Read ", "from interrupt endpoint:"); + + return (retval); +} + +/** The timeout in milliseconds for fast interrupt reads. */ +#define FAST_TIMEOUT 50 +/** + * \brief Check for interrupt without wait + * \param port a GPPort + * \param data a pointer to an allocated buffer + * \param size the number of bytes that should be read + * + * Reads a specified number of bytes from the inerrupt endpoint + * into the supplied buffer. + * Function waits 50 miliseconds for data on interrupt endpoint. + * + * \return a gphoto2 error code + **/ +int +gp_port_check_int_fast (GPPort *port, char *data, int size) +{ + int retval; + + gp_log (GP_LOG_DATA, __func__, "Reading %i = 0x%x bytes from interrupt endpoint...", size, size); + + C_PARAMS (port); + CHECK_INIT (port); + + /* Check if we read as many bytes as expected */ + CHECK_SUPP (port, "check_int", port->pc->ops->check_int); + retval = port->pc->ops->check_int (port, data, size, FAST_TIMEOUT); + CHECK_RESULT (retval); + +#ifdef IGNORE_EMPTY_INTR_READS + /* For Canon cameras, we will make lots of + reads that will return zero length. Don't + bother to log them as errors. */ + if (retval != 0 ) +#endif + LOG_DATA (data, retval, size, "Read ", "from interrupt endpoint (fast):"); + + return (retval); +} + + +/** + * \brief Set timeout of port + * \param port a #GPPort + * \param timeout the timeout + * + * Sets the timeout of a port. #gp_port_read will wait timeout milliseconds + * for data. If no data will be received in that period, %GP_ERROR_TIMEOUT + * will be returned. + * + * \return a gphoto2 error code + **/ +int +gp_port_set_timeout (GPPort *port, int timeout) +{ + C_PARAMS (port); + + GP_LOG_D ("Setting port timeout to %i milliseconds.", timeout); + port->timeout = timeout; + + return GP_OK; +} + +/** Deprecated */ +int gp_port_timeout_set (GPPort *, int); +int gp_port_timeout_set (GPPort *port, int timeout) +{ + return (gp_port_set_timeout (port, timeout)); +} + +/** Deprecated */ +int gp_port_timeout_get (GPPort *, int *); +int gp_port_timeout_get (GPPort *port, int *timeout) +{ + return (gp_port_get_timeout (port, timeout)); +} + +/** + * \brief Get the current port timeout. + * \param port a #GPPort + * \param timeout pointer to timeout + * + * Retreives the current timeout of the port. + * + * \return a gphoto2 error code + **/ +int +gp_port_get_timeout (GPPort *port, int *timeout) +{ + C_PARAMS (port); + + GP_LOG_D ("Current port timeout is %i milliseconds.", port->timeout); + *timeout = port->timeout; + + return GP_OK; +} + +/** + * \brief Set port settings + * \param port a #GPPort + * \param settings the #GPPortSettings to be set + * + * Adjusts the settings of a port. You should always call + * #gp_port_get_settings, adjust the values depending on the type of the port, + * and then call #gp_port_set_settings. + * + * \return a gphoto2 error code + **/ +int +gp_port_set_settings (GPPort *port, GPPortSettings settings) +{ + GP_LOG_D ("Setting settings..."); + + C_PARAMS (port); + CHECK_INIT (port); + + /* + * We copy the settings to settings_pending and call update on the + * port. + */ + memcpy (&port->settings_pending, &settings, + sizeof (port->settings_pending)); + CHECK_SUPP (port, "update", port->pc->ops->update); + CHECK_RESULT (port->pc->ops->update (port)); + + return (GP_OK); +} + +/** Deprecated */ +int gp_port_settings_get (GPPort *, GPPortSettings *); +int gp_port_settings_get (GPPort *port, GPPortSettings *settings) +{ + return (gp_port_get_settings (port, settings)); +} +/** Deprecated */ +int gp_port_settings_set (GPPort *, GPPortSettings); +int gp_port_settings_set (GPPort *port, GPPortSettings settings) +{ + return (gp_port_set_settings (port, settings)); +} + +/** + * \brief Get the current port settings. + * \param port a #GPPort + * \param settings pointer to the retrieved settings + * + * Retreives the current settings of a port. + * + * \return a gphoto2 error code + **/ +int +gp_port_get_settings (GPPort *port, GPPortSettings *settings) +{ + C_PARAMS (port); + + memcpy (settings, &(port->settings), sizeof (gp_port_settings)); + + return GP_OK; +} + +/** + * \brief Get setting of specific serial PIN + * + * \param port a GPPort + * \param pin the serial pin to be retrieved + * \param level the setting of the pin + * + * \return a gphoto2 error code + */ +int +gp_port_get_pin (GPPort *port, GPPin pin, GPLevel *level) +{ + GP_LOG_D ("Getting level of pin %i...", pin); + + C_PARAMS (port && level); + CHECK_INIT (port); + + CHECK_SUPP (port, "get_pin", port->pc->ops->get_pin); + CHECK_RESULT (port->pc->ops->get_pin (port, pin, level)); + + GP_LOG_D ("Level of pin %i: %i", pin, *level); + + return (GP_OK); +} + +static struct { + GPPin pin; + unsigned char number; + const char *description_short; + const char *description_long; +} PinTable[] = { + /* we do not translate these technical terms ... for now */ + {GP_PIN_RTS , 7, "RTS" , "Request To Send" }, + {GP_PIN_DTR , 4, "DTR" , "Data Terminal Ready"}, + {GP_PIN_CTS , 8, "CTS" , "Clear To Send" }, + {GP_PIN_DSR , 6, "DSR" , "Data Set Ready" }, + {GP_PIN_CD , 1, "CD" , "Carrier Detect" }, + {GP_PIN_RING, 9, "RING", "Ring Indicator" }, + {0, 0, NULL, NULL} +}; + +static struct { + GPLevel level; + const char *description; +} LevelTable[] = { + {GP_LEVEL_LOW, N_("low")}, + {GP_LEVEL_HIGH, N_("high")}, + {0, NULL} +}; + +/** + * \brief Set specified serial PIN to value + * + * \param port a GPPort + * \param pin the serial pin to be retrieved + * \param level the setting of the pin + * + * Pulls the specified pin of a serial port to the specified level. + * + * \return a gphoto2 error code + */ +int +gp_port_set_pin (GPPort *port, GPPin pin, GPLevel level) +{ + unsigned int i, j; + + for (i = 0; PinTable[i].description_short; i++) + if (PinTable[i].pin == pin) + break; + for (j = 0; LevelTable[j].description; j++) + if (LevelTable[j].level == level) + break; + GP_LOG_D ("Setting pin %i (%s: '%s') to '%s'...", + PinTable[i].number, PinTable[i].description_short, + PinTable[i].description_long, _(LevelTable[j].description)); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "set_pin", port->pc->ops->set_pin); + CHECK_RESULT (port->pc->ops->set_pin (port, pin, level)); + + return (GP_OK); +} + +/** + * \brief Send a break over a serial port + * + * \param port a GPPort + * \param duration duration of break in milliseconds + * + * Sends a break with the specified duration in milliseconds. + * + * \return a gphoto2 error code + */ +int +gp_port_send_break (GPPort *port, int duration) +{ + GP_LOG_D ("Sending break (%i milliseconds)...", duration); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "send_break", port->pc->ops->send_break); + CHECK_RESULT (port->pc->ops->send_break (port, duration)); + + return (GP_OK); +} + +/** + * \brief Flush data on serial port + * + * \param port a GPPort + * \param direction the direction of the flush + * + * Flushes the serial output or input (depending on direction) + * of the serial port. + * + * \return a gphoto2 error code + */ +int +gp_port_flush (GPPort *port, int direction) +{ + GP_LOG_D ("Flushing port..."); + + C_PARAMS (port); + + CHECK_SUPP (port, "flush", port->pc->ops->flush); + CHECK_RESULT (port->pc->ops->flush (port, direction)); + + return (GP_OK); +} + + +/* USB-specific functions */ +/* ------------------------------------------------------------------ */ + +/** + * \brief Find USB device by vendor/product + * + * \param port a GPPort + * \param idvendor USB vendor id + * \param idproduct USB product id + * + * Find the USB device with the specified vendor:product id pair. + * + * \return a gphoto2 error code + */ +int +gp_port_usb_find_device (GPPort *port, int idvendor, int idproduct) +{ + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "find_device", port->pc->ops->find_device); + CHECK_RESULT (port->pc->ops->find_device (port, idvendor, idproduct)); + + return (GP_OK); +} + +/** + * \brief Find USB device by interface class + * + * \param port a GPPort + * \param mainclass the USB interface class + * \param subclass the USB interface subclass + * \param protocol the USB interface protocol + * + * Find the USB device with the specified vendor:product id pair. + * + * \return a gphoto2 error code + */ +int +gp_port_usb_find_device_by_class (GPPort *port, int mainclass, int subclass, int protocol) +{ + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "find_device_by_class", port->pc->ops->find_device_by_class); + CHECK_RESULT (port->pc->ops->find_device_by_class (port, mainclass, subclass, protocol)); + + return (GP_OK); +} + +/** + * \brief Clear USB endpoint HALT condition + * + * \param port a GPPort + * \param ep endpoint to clear HALT + * + * Clears the HALT (stall?) endpoint condition of the specified endpoint. + * + * \return a gphoto2 error code + */ +int +gp_port_usb_clear_halt (GPPort *port, int ep) +{ + GP_LOG_D ("Clear USB halt..."); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "clear_halt", port->pc->ops->clear_halt); + CHECK_RESULT (port->pc->ops->clear_halt (port, ep)); + + return (GP_OK); +} + +/** + * \brief Send a USB control message with output data + * + * \param port a GPPort + * \param request control request code + * \param value control value + * \param index control index + * \param bytes pointer to data + * \param size size of the data + * + * Sends a specific USB control command and write associated data. + * + * \return a gphoto2 error code + */ +int +gp_port_usb_msg_write (GPPort *port, int request, int value, int index, + char *bytes, int size) +{ + int retval; + + GP_LOG_DATA (bytes, size, "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x):", + request, value, index, size, size); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "msg_write", port->pc->ops->msg_write); + retval = port->pc->ops->msg_write(port, request, value, index, bytes, size); + CHECK_RESULT (retval); + + return (retval); +} + +/** + * \brief Send a USB control message with input data + * + * \param port a GPPort + * \param request control request code + * \param value control value + * \param index control index + * \param bytes pointer to data + * \param size size of the data + * + * Sends a specific USB interface control command and read associated data. + * + * \return a gphoto2 error code + */ +int +gp_port_usb_msg_read (GPPort *port, int request, int value, int index, + char *bytes, int size) +{ + int retval; + + gp_log (GP_LOG_DATA, __func__, "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)...", + request, value, index, size, size); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "msg_read", port->pc->ops->msg_read); + retval = port->pc->ops->msg_read (port, request, value, index, bytes, size); + CHECK_RESULT (retval); + + LOG_DATA (bytes, retval, size, "Read", "USB message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)", + request, value, index, size, size); + + return (retval); +} + +/* + * The next two functions handle the request types 0x41 for write + * and 0xc1 for read. + */ +/** + * \brief Send a USB interface control message with output data + * + * \param port a GPPort + * \param request control request code + * \param value control value + * \param index control index + * \param bytes pointer to data + * \param size size of the data + * + * Sends a specific USB interface control command and write associated data. + * + * \return a gphoto2 error code + */ +int +gp_port_usb_msg_interface_write (GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + int retval; + + GP_LOG_DATA (bytes, size, "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)...", + request, value, index, size, size); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "msg_build", port->pc->ops->msg_interface_write); + retval = port->pc->ops->msg_interface_write(port, request, + value, index, bytes, size); + CHECK_RESULT (retval); + + return (retval); +} + + +/** + * \brief Send a USB interface control message with input data + * + * \param port a GPPort + * \param request control request code + * \param value control value + * \param index control index + * \param bytes pointer to data + * \param size size of the data + * + * Sends a specific USB control command and read associated data. + * + * \return a gphoto2 error code + */ +int +gp_port_usb_msg_interface_read (GPPort *port, int request, int value, int index, + char *bytes, int size) +{ + int retval; + + gp_log (GP_LOG_DATA, __func__, "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)...", + request, value, index, size, size); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "msg_read", port->pc->ops->msg_interface_read); + retval = port->pc->ops->msg_interface_read (port, request, + value, index, bytes, size); + CHECK_RESULT (retval); + + LOG_DATA (bytes, retval, size, "Read", "USB message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)", + request, value, index, size, size); + + return (retval); +} + + +/* + * The next two functions handle the request types 0x21 for write + * and 0xa1 for read. + */ + +/** + * \brief Send a USB class control message with output data + * + * \param port a GPPort + * \param request control request code + * \param value control value + * \param index control index + * \param bytes pointer to data + * \param size size of the data + * + * Sends a specific USB class control command and write associated data. + * + * \return a gphoto2 error code + */ +int +gp_port_usb_msg_class_write (GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + int retval; + + GP_LOG_DATA (bytes, size, "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x):", + request, value, index, size, size); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "msg_build", port->pc->ops->msg_class_write); + retval = port->pc->ops->msg_class_write(port, request, + value, index, bytes, size); + CHECK_RESULT (retval); + + return (retval); +} + + +/** + * \brief Send a USB class control message with input data + * + * \param port a GPPort + * \param request control request code + * \param value control value + * \param index control index + * \param bytes pointer to data + * \param size size of the data + * + * Sends a specific USB class control command and read associated data. + * + * \return a gphoto2 error code + */ +int +gp_port_usb_msg_class_read (GPPort *port, int request, int value, int index, + char *bytes, int size) +{ + int retval; + + gp_log (GP_LOG_DATA, __func__, "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)...", + request, value, index, size, size); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "msg_read", port->pc->ops->msg_class_read); + retval = port->pc->ops->msg_class_read (port, request, + value, index, bytes, size); + CHECK_RESULT (retval); + + LOG_DATA (bytes, retval, size, "Read", "USB message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)", + request, value, index, size, size); + + return (retval); +} + +/** + * \brief Seek on a port (for usb disk direct ports) + * + * \param port a #GPPort + * \param offset offset to seek to + * \param whence the underlying lseek call whence parameter + * + * Seeks to a specific offset on the usb disk + * + * \return a gphoto2 error code + **/ +int +gp_port_seek (GPPort *port, int offset, int whence) +{ + int retval; + + GP_LOG_D ("Seeking to: %d whence: %d", offset, whence); + + C_PARAMS (port); + CHECK_INIT (port); + + CHECK_SUPP (port, "seek", port->pc->ops->seek); + retval = port->pc->ops->seek (port, offset, whence); + + GP_LOG_D ("Seek result: %d", retval); + + return retval; +} + +/** + * \brief Send a SCSI command to a port (for usb scsi ports) + * + * \param port a #GPPort + * \param to_dev data direction, set to 1 for a scsi cmd which sends + * data to the device, set to 0 for cmds which read data from the dev. + * \param cmd buffer holding the command to send + * \param cmd_size sizeof cmd buffer + * \param sense buffer for returning scsi sense information + * \param sense_size sizeof sense buffer + * \param data buffer containing informatino to write to the device + * (to_dev is 1), or to store data read from the device (to_dev 0). + * + * Send a SCSI command to a usb scsi port attached device. + * + * \return a gphoto2 error code + **/ +int gp_port_send_scsi_cmd (GPPort *port, int to_dev, + char *cmd, int cmd_size, + char *sense, int sense_size, + char *data, int data_size) +{ + int retval; + + GP_LOG_DATA (cmd, cmd_size, "Sending scsi cmd:"); + if (to_dev && data_size) + GP_LOG_DATA (data, data_size, "with scsi cmd data:"); + + C_PARAMS (port); + CHECK_INIT (port); + + memset (sense, 0, sense_size); + CHECK_SUPP (port, "send_scsi_cmd", port->pc->ops->send_scsi_cmd); + retval = port->pc->ops->send_scsi_cmd (port, to_dev, cmd, cmd_size, + sense, sense_size, data, data_size); + + GP_LOG_D ("scsi cmd result: %d", retval); + + if (sense[0] != 0) { + GP_LOG_DATA (sense, sense_size, "sense data:"); + /* https://secure.wikimedia.org/wikipedia/en/wiki/Key_Code_Qualifier */ + GP_LOG_D ("sense decided:"); + if ((sense[0]&0x7f)!=0x70) { + GP_LOG_D ("\tInvalid header."); + } + GP_LOG_D ("\tCurrent command read filemark: %s",(sense[2]&0x80)?"yes":"no"); + GP_LOG_D ("\tEarly warning passed: %s",(sense[2]&0x40)?"yes":"no"); + GP_LOG_D ("\tIncorrect blocklengt: %s",(sense[2]&0x20)?"yes":"no"); + GP_LOG_D ("\tSense Key: %d",sense[2]&0xf); + if (sense[0]&0x80) + GP_LOG_D ("\tResidual Length: %d",sense[3]*0x1000000+sense[4]*0x10000+sense[5]*0x100+sense[6]); + GP_LOG_D ("\tAdditional Sense Length: %d",sense[7]); + GP_LOG_D ("\tAdditional Sense Code: %d",sense[12]); + GP_LOG_D ("\tAdditional Sense Code Qualifier: %d",sense[13]); + if (sense[15]&0x80) { + GP_LOG_D ("\tIllegal Param is in %s",(sense[15]&0x40)?"the CDB":"the Data Out Phase"); + if (sense[15]&0x8) { + GP_LOG_D ("Pointer at %d, bit %d",sense[16]*256+sense[17],sense[15]&0x7); + } + } + } + + if (!to_dev && data_size) + GP_LOG_DATA (data, data_size, "scsi cmd data:"); + + return retval; +} + +/** + * \brief Set verbose port error message + * \param port a #GPPort + * \param format printf style format string + * \param ... variable arguments depending on format string + * + * Sets an error message that can later be retrieved using #gp_port_get_error. + * + * \return a gphoto2 error code + **/ +int +gp_port_set_error (GPPort *port, const char *format, ...) +{ + va_list args; + + C_PARAMS (port); + + if (format) { + va_start (args, format); + vsnprintf (port->pc->error, sizeof (port->pc->error), + _(format), args); + GP_LOG_E ("%s", port->pc->error); + va_end (args); + } else + port->pc->error[0] = '\0'; + + return (GP_OK); +} + +/** + * \brief Get verbose port error message + * \param port a #GPPort + * + * Retrieves an error message from a port. If you want to make sure that + * you get correct error messages, you need to call #gp_port_set_error with + * an error message of %NULL each time before calling another port-related + * function of which you want to check the return value. + * + * \return a translated error message + **/ +const char * +gp_port_get_error (GPPort *port) +{ + if (port && port->pc && strlen (port->pc->error)) + return (port->pc->error); + + return _("No error description available"); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/libgphoto2_port.ver b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/libgphoto2_port.ver new file mode 100644 index 00000000..0aaa61e6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libgphoto2_port/libgphoto2_port.ver @@ -0,0 +1,99 @@ +LIBGPHOTO2_5_0 { + global: + gp_log; + gp_log_add_func; + gp_log_data; + gp_log_remove_func; + gp_log_with_source_location; + gp_logv; + gp_port_check_int; + gp_port_check_int_fast; + gp_port_close; + gp_port_flush; + gp_port_free; + gp_port_get_error; + gp_port_get_info; + gp_port_get_pin; + gp_port_get_settings; + gp_port_get_timeout; + gp_port_info_get_name; + gp_port_info_get_path; + gp_port_info_get_type; + gp_port_info_list_append; + gp_port_info_list_count; + gp_port_info_list_free; + gp_port_info_list_get_info; + gp_port_info_list_load; + gp_port_info_list_lookup_name; + gp_port_info_list_lookup_path; + gp_port_info_list_new; + gp_port_library_version; + gp_port_message_codeset; + gp_port_new; + gp_port_open; + gp_port_read; + gp_port_result_as_string; + gp_port_reset; + gp_port_seek; + gp_port_send_break; + gp_port_send_scsi_cmd; + gp_port_set_error; + gp_port_set_info; + gp_port_set_pin; + gp_port_set_settings; + gp_port_set_timeout; + gp_port_settings_get; + gp_port_settings_set; + gp_port_timeout_get; + gp_port_timeout_set; + gp_port_usb_clear_halt; + gp_port_usb_find_device; + gp_port_usb_find_device_by_class; + gp_port_usb_msg_class_read; + gp_port_usb_msg_class_write; + gp_port_usb_msg_interface_read; + gp_port_usb_msg_interface_write; + gp_port_usb_msg_read; + gp_port_usb_msg_write; + gp_port_write; + gp_system_closedir; + gp_system_filename; + gp_system_is_dir; + gp_system_is_file; + gp_system_mkdir; + gp_system_opendir; + gp_system_readdir; + gp_system_rmdir; + local: + *; +}; + +# These are only supposed to be used by libgphoto2 internally. +LIBGPHOTO2_INTERNAL { + gpi_gphoto_port_type_map; + gpi_enum_to_string; + gpi_string_to_enum; + gpi_string_to_flag; + gpi_string_or_to_flags; + gpi_string_list_to_flags; + gpi_flags_to_string_list; + gpi_vsnprintf; + + gp_port_info_new; + gp_port_info_set_name; + gp_port_info_set_path; + gp_port_info_set_type; +}; + +#LIBGPHOTO2_6_0 { +# global: +# # The asm(".symver ...") constructs will put stuff into this node, +# # it needs to stay. +# # Currently used by: +# # gp_port_set_info, gp_port_get_info, +# # gp_port_info_list_append, gp_port_info_list_get_info +# +# # Add new exported functions here too! +#} LIBGPHOTO2_5_0; + +# here comes the next version... diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libusb1/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libusb1/Makefile-files new file mode 100644 index 00000000..8834973f --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libusb1/Makefile-files @@ -0,0 +1,14 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += usb1.la + +usb1_la_LDFLAGS = $(iolib_ldflags) +usb1_la_CPPFLAGS = \ + $(AM_CPPFLAGS) \ + $(INTL_CFLAGS) \ + $(LIBUSB1_CFLAGS) \ + $(CPPFLAGS) +usb1_la_DEPENDENCIES = $(iolib_dependencies) +usb1_la_LIBADD = $(iolib_libadd) +usb1_la_LIBADD += $(LIBUSB1_LIBS) $(INTLLIBS) +usb1_la_SOURCES = libusb1/libusb1.c diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libusb1/libusb1.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libusb1/libusb1.c new file mode 100644 index 00000000..df42486d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/libusb1/libusb1.c @@ -0,0 +1,1551 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* gphoto2-port-usb.c + * + * Copyright 2001 Lutz Mueller + * Copyright 1999-2000 Johannes Erdfelt + * Copyright 2011,2015 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" +#include + +#include +#include +#include +#include +#include + +#include + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define C_GP(RESULT) do {\ + int _r=(RESULT);\ + if (_rdevslastchecked) { + if (pl->nrofdevs) + libusb_free_device_list (pl->devs, 1); + free (pl->descs); + pl->nrofdevs = 0; + pl->devs = NULL; + pl->descs = NULL; + } + if (!pl->nrofdevs) { + int i; + + pl->nrofdevs = libusb_get_device_list (pl->ctx, &pl->devs); + C_MEM (pl->descs = calloc (pl->nrofdevs, sizeof(pl->descs[0]))); + for (i=0;inrofdevs;i++) + LOG_ON_LIBUSB_E (libusb_get_device_descriptor(pl->devs[i], &pl->descs[i])); + } + time (&pl->devslastchecked); + return pl->nrofdevs; +} + +int +gp_port_library_list (GPPortInfoList *list) +{ + GPPortInfo info; + int nrofdevices = 0; + int d, i, i1, i2, unknownint; + libusb_context *ctx; + libusb_device **devs = NULL; + int nrofdevs = 0; + struct libusb_device_descriptor *descs; + + C_LIBUSB (libusb_init (&ctx), GP_ERROR_IO); + + /* TODO: make sure libusb_exit gets called in all error paths inside this function */ + + /* generic matcher. This will catch passed XXX,YYY entries for instance. */ + C_GP (gp_port_info_new (&info)); + gp_port_info_set_type (info, GP_PORT_USB); + gp_port_info_set_name (info, ""); + gp_port_info_set_path (info, "^usb:"); + gp_port_info_list_append (list, info); /* do not check return value, it might be -1 */ + + nrofdevs = libusb_get_device_list (ctx, &devs); + if (!nrofdevs) { + libusb_exit (ctx); /* should free all stuff above */ + goto nodevices; + } + + C_MEM (descs = calloc (nrofdevs, sizeof(descs[0]))); + for (i=0;ibNumInterfaces; i1++) + for (i2 = 0; i2 < config->interface[i1].num_altsetting; i2++) { + const struct libusb_interface_descriptor *intf = &config->interface[i1].altsetting[i2]; + if ( (intf->bInterfaceClass == LIBUSB_CLASS_HID) || + (intf->bInterfaceClass == LIBUSB_CLASS_PRINTER) || + (intf->bInterfaceClass == LIBUSB_CLASS_COMM) || + (intf->bInterfaceClass == 0xe0) /* wireless/bluetooth*/ + ) + continue; + unknownint++; + } + libusb_free_config_descriptor (config); + } + /* when we find only hids, printer or comm ifaces ... skip this */ + if (!unknownint) + continue; + /* Note: We do not skip USB storage. Some devices can support both, + * and the Ricoh erronously reports it. + */ + nrofdevices++; + } + +#if 0 + /* If we already added usb:, and have 0 or 1 devices we have nothing to do. + * This should be the standard use case. + */ + /* We never want to return just "usb:" ... also return "usb:XXX,YYY", and + * let upper layers filter out the usb: */ + if (nrofdevices <= 1) + return (GP_OK); +#endif + + /* Redo the same bus/device walk, but now add the ports with usb:x,y notation, + * so we can address all USB devices. + */ + for (d = 0; d < nrofdevs; d++) { + char path[200]; + + /* Devices which are definitely not cameras. */ + if ( (descs[d].bDeviceClass == LIBUSB_CLASS_HUB) || + (descs[d].bDeviceClass == LIBUSB_CLASS_HID) || + (descs[d].bDeviceClass == LIBUSB_CLASS_PRINTER) || + (descs[d].bDeviceClass == LIBUSB_CLASS_COMM) + ) + continue; + /* excepts HUBs, usually the interfaces have the classes, not + * the device */ + unknownint = 0; + for (i = 0; i < descs[d].bNumConfigurations; i++) { + struct libusb_config_descriptor *config; + + if (LOG_ON_LIBUSB_E (libusb_get_config_descriptor (devs[d], i, &config))) { + unknownint++; + continue; + } + for (i1 = 0; i1 < config->bNumInterfaces; i1++) + for (i2 = 0; i2 < config->interface[i1].num_altsetting; i2++) { + const struct libusb_interface_descriptor *intf = &config->interface[i1].altsetting[i2]; + if ( (intf->bInterfaceClass == LIBUSB_CLASS_HID) || + (intf->bInterfaceClass == LIBUSB_CLASS_PRINTER) || + (intf->bInterfaceClass == LIBUSB_CLASS_COMM)) + continue; + unknownint++; + } + libusb_free_config_descriptor (config); + } + /* when we find only hids, printer or comm ifaces ... skip this */ + if (!unknownint) + continue; + /* Note: We do not skip USB storage. Some devices can support both, + * and the Ricoh erronously reports it. + */ + C_GP (gp_port_info_new (&info)); + gp_port_info_set_type (info, GP_PORT_USB); + gp_port_info_set_name (info, "Universal Serial Bus"); + snprintf (path,sizeof(path), "usb:%03d,%03d", + libusb_get_bus_number (devs[d]), + libusb_get_device_address (devs[d]) + ); + gp_port_info_set_path (info, path); + C_GP (gp_port_info_list_append (list, info)); + } + + libusb_free_device_list (devs, 1); + libusb_exit (ctx); /* should free all stuff above */ + free (descs); + +nodevices: + /* This will only be added if no other device was ever added. + * Users doing "usb:" usage will enter the regular expression matcher case. */ + if (nrofdevices == 0) { + C_GP (gp_port_info_new (&info)); + gp_port_info_set_type (info, GP_PORT_USB); + gp_port_info_set_name (info, "Universal Serial Bus"); + gp_port_info_set_path (info, "usb:"); + C_GP (gp_port_info_list_append (list, info)); + } + return (GP_OK); +} + +static int gp_libusb1_init (GPPort *port) +{ + C_MEM (port->pl = malloc (sizeof (GPPortPrivateLibrary))); + memset (port->pl, 0, sizeof (GPPortPrivateLibrary)); + + port->pl->config = port->pl->interface = port->pl->altsetting = -1; + + if (LOG_ON_LIBUSB_E (libusb_init (&port->pl->ctx))) { + free (port->pl); + port->pl = NULL; + return GP_ERROR_IO; + } +#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + unlink("usblog.raw"); + port->pl->logfd = open("usblog.raw",O_CREAT|O_WRONLY,0644); +#endif +#if 0 + libusb_set_debug (port->pl->ctx, 255); +#endif + return GP_OK; +} + +static int +gp_libusb1_exit (GPPort *port) +{ + if (port->pl) { + free (port->pl->descs); +#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + if (port->pl->logfd >=0 ) close (port->pl->logfd); +#endif + if (port->pl->nrofdevs) + libusb_free_device_list (port->pl->devs, 1); + libusb_exit (port->pl->ctx); + free (port->pl); + port->pl = NULL; + } + return GP_OK; +} + +static int gp_libusb1_find_path_lib(GPPort *port); +static int gp_libusb1_queue_interrupt_urbs (GPPort *port); +static int +gp_libusb1_open (GPPort *port) +{ + int ret; + + GP_LOG_D ("()"); + C_PARAMS (port); + + if (!port->pl->d) { + gp_libusb1_find_path_lib(port); + C_PARAMS (port->pl->d); + } + + C_LIBUSB (libusb_open (port->pl->d, &port->pl->dh), GP_ERROR_IO); + if (!port->pl->dh) { + int saved_errno = errno; + gp_port_set_error (port, _("Could not open USB device (%s)."), + strerror(saved_errno)); + return GP_ERROR_IO; + } + ret = libusb_kernel_driver_active (port->pl->dh, port->settings.usb.interface); + +#if 0 + if (strstr(name,"usbfs") || strstr(name,"storage")) { + /* other gphoto instance most likely */ + gp_port_set_error (port, _("Camera is already in use.")); + return GP_ERROR_IO_LOCK; + } +#endif + + switch (ret) { + case 1: GP_LOG_D ("Device has a kernel driver attached (%d), detaching it now.", ret); + ret = libusb_detach_kernel_driver (port->pl->dh, port->settings.usb.interface); + if (ret < 0) + gp_port_set_error (port, _("Could not detach kernel driver of camera device.")); + else + port->pl->detached = 1; + case 0: /* not detached */ + break; + default: + gp_port_set_error (port, _("Could not query kernel driver of device.")); + break; + } + + GP_LOG_D ("claiming interface %d", port->settings.usb.interface); + if (LOG_ON_LIBUSB_E (libusb_claim_interface (port->pl->dh, port->settings.usb.interface))) { + int saved_errno = errno; + gp_port_set_error (port, _("Could not claim interface %d (%s). " + "Make sure no other program (%s) " + "or kernel module (such as %s) " + "is using the device and you have " + "read/write access to the device."), + port->settings.usb.interface, + strerror(saved_errno), +#ifdef __linux__ + "gvfs-gphoto2-volume-monitor", +#else +#if defined(__APPLE__) + _("MacOS PTPCamera service"), +#else + _("unknown libgphoto2 using program"), +#endif +#endif + "sdc2xx, stv680, spca50x"); + return GP_ERROR_IO_USB_CLAIM; + } + + ret = gp_libusb1_queue_interrupt_urbs (port); + if (ret) + return ret; + + return GP_OK; +} + +static int +_close_async_interrupts(GPPort *port) +{ + int i, haveone; + struct timeval tv; + + C_PARAMS (port); + + if (port->pl->dh == NULL) + return GP_OK; + + /* Catch up on pending ones */ + tv.tv_sec = 0; + tv.tv_usec = 1000; + LOG_ON_LIBUSB_E (libusb_handle_events_timeout(port->pl->ctx, &tv)); + /* Now cancel and free the async transfers */ + for (i = 0; i < sizeof(port->pl->transfers)/sizeof(port->pl->transfers[0]); i++) { + if (port->pl->transfers[i]) { + GP_LOG_D("canceling transfer %d:%p (status %d)",i, port->pl->transfers[i], port->pl->transfers[i]->status); + /* this happens if the transfer is completed for instance, but not reaped. we cannot cancel it. */ + if (LOG_ON_LIBUSB_E(libusb_cancel_transfer(port->pl->transfers[i])) < 0) { + /* do not libusb_free_transfer (port->pl->transfers[i]); causes crashes */ + port->pl->transfers[i] = NULL; + } + } + } + tv.tv_sec = 0; + tv.tv_usec = 0; + LOG_ON_LIBUSB_E (libusb_handle_events_timeout(port->pl->ctx, &tv)); + /* Do just one round ... this should be sufficient and avoids endless loops. */ + haveone = 0; + for (i = 0; i < sizeof(port->pl->transfers)/sizeof(port->pl->transfers[0]); i++) { + if (port->pl->transfers[i]) { + GP_LOG_D("checking: transfer %d:%p status %d",i, port->pl->transfers[i], port->pl->transfers[i]->status); + haveone = 1; + } + } + if (haveone) + LOG_ON_LIBUSB_E (libusb_handle_events(port->pl->ctx)); + return GP_OK; +} + +static int +gp_libusb1_close (GPPort *port) +{ + C_PARAMS (port); + + if (port->pl->dh == NULL) + return GP_OK; + + _close_async_interrupts(port); + + if (libusb_release_interface (port->pl->dh, + port->settings.usb.interface) < 0) { + int saved_errno = errno; + gp_port_set_error (port, _("Could not release interface %d (%s)."), + port->settings.usb.interface, + strerror(saved_errno)); + return GP_ERROR_IO; + } + +#if 0 + /* This confuses the EOS 5d camera and possible other EOSs. *sigh* */ + /* This is only for our very special Canon cameras which need a good + * whack after close, otherwise they get timeouts on reconnect. + */ + if (port->pl->d->descriptor.idVendor == 0x04a9) { + if (usb_reset (port->pl->dh) < 0) { + int saved_errno = errno; + gp_port_set_error (port, _("Could not reset " + "USB port (%s)."), + strerror(saved_errno)); + return (GP_ERROR_IO); + } + } +#endif + if (port->pl->detached) { + if (LOG_ON_LIBUSB_E (libusb_attach_kernel_driver (port->pl->dh, port->settings.usb.interface))) + gp_port_set_error (port, _("Could not reattach kernel driver of camera device.")); + } + + libusb_close (port->pl->dh); + + struct _PrivateIrqCompleted *irq_iter; + struct _PrivateIrqCompleted *irq_next; + + irq_iter=port->pl->irqs_head; + while (irq_iter != NULL) { + if (irq_iter->data) + free(irq_iter->data); + irq_next = irq_iter->next; + free(irq_iter); + irq_iter = irq_next; + } + port->pl->irqs_head = NULL; + port->pl->irqs_tail = NULL; + port->pl->dh = NULL; + return GP_OK; +} + +static int +gp_libusb1_clear_halt_lib(GPPort *port, int ep) +{ + unsigned char internal_ep; + + C_PARAMS (port && port->pl->dh); + + switch (ep) { + case GP_PORT_USB_ENDPOINT_IN : + internal_ep = port->settings.usb.inep; + break; + case GP_PORT_USB_ENDPOINT_OUT : + internal_ep = port->settings.usb.outep; + break; + case GP_PORT_USB_ENDPOINT_INT : + internal_ep = port->settings.usb.intep; + break; + default: + gp_port_set_error (port, "bad EndPoint argument 0x%x", ep); + return GP_ERROR_BAD_PARAMETERS; + } + + C_LIBUSB (libusb_clear_halt(port->pl->dh, internal_ep), GP_ERROR_IO_USB_CLEAR_HALT); + + return GP_OK; +} + +static int +gp_libusb1_write (GPPort *port, const char *bytes, int size) +{ + int curwritten; + + C_PARAMS (port && port->pl->dh); + + C_LIBUSB (libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, + (unsigned char*)bytes, size, &curwritten, port->timeout), + GP_ERROR_IO_WRITE); + + return curwritten; +} + +static int +gp_libusb1_read(GPPort *port, char *bytes, int size) +{ + int curread; + + C_PARAMS (port && port->pl->dh); + + C_LIBUSB (libusb_bulk_transfer (port->pl->dh, port->settings.usb.inep, + (unsigned char*)bytes, size, &curread, port->timeout), + GP_ERROR_IO_READ ); + +#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + write(port->pl->logfd, bytes, curread); +#endif + return curread; +} + +static int +gp_libusb1_reset(GPPort *port) +{ + C_PARAMS (port && port->pl->dh); + + /* earlier libusb 1 versions get crashes otherwise */ + _close_async_interrupts(port); + + C_LIBUSB (libusb_reset_device (port->pl->dh), GP_ERROR_IO); + + return GP_OK; +} + +static void LIBUSB_CALL +_cb_irq(struct libusb_transfer *transfer) +{ + struct _PrivateIrqCompleted *irq_new = NULL; + struct _GPPortPrivateLibrary *pl = transfer->user_data; + int i; + int ret; + + GP_LOG_D("%p with status %d", transfer, transfer->status); + + if ((transfer->status != LIBUSB_TRANSFER_CANCELLED) && + (transfer->status != LIBUSB_TRANSFER_TIMED_OUT) + ) { + irq_new = (struct _PrivateIrqCompleted *) calloc(1, sizeof (struct _PrivateIrqCompleted)); + irq_new->status = transfer->status; + + /* Add the irq to the list */ + if (pl->irqs_tail) + pl->irqs_tail->next = irq_new; + pl->irqs_tail = irq_new; + if (!pl->irqs_head) + pl->irqs_head = irq_new; + } + + if ( (transfer->status == LIBUSB_TRANSFER_CANCELLED) || + (transfer->status == LIBUSB_TRANSFER_TIMED_OUT) || /* on close */ + (transfer->status == LIBUSB_TRANSFER_NO_DEVICE) || /* on removing camera */ + (transfer->status != LIBUSB_TRANSFER_COMPLETED) /* any error */ + ) { + if (transfer->status != LIBUSB_TRANSFER_COMPLETED) { + /* So far we don't requeue for any error, previous behavior, maybe we should? + * Note: some times in case of device removed, libusb encounter an + * errno == -71, that results in a LIBUSB_TRANSFER_ERROR (1) + */ + GP_LOG_D("Transfer %p should be in LIBUSB_TRANSFER_COMPLETED, but is %d!", transfer, transfer->status); + } + /* Only requeue the global transfers, not temporary ones */ + for (i = 0; i < sizeof(pl->transfers)/sizeof(pl->transfers[0]); i++) { + if (pl->transfers[i] == transfer) { + libusb_free_transfer (transfer); + pl->transfers[i] = NULL; + pl->nrofactiveinttransfers--; + return; + } + } + return; + } + + if (transfer->actual_length) { + GP_LOG_DATA ((char*)transfer->buffer, transfer->actual_length, "interrupt"); + + irq_new->data_len = transfer->actual_length; + // Steal the transfer buffer and replace it with a new one for reusing the transfer + irq_new->data = transfer->buffer; + transfer->buffer = malloc(INTERRUPT_BUFFER_SIZE); + transfer->length = INTERRUPT_BUFFER_SIZE; + } + + GP_LOG_D("Requeuing completed transfer %p", transfer); + ret = LOG_ON_LIBUSB_E(libusb_submit_transfer (transfer)); + if (ret < LIBUSB_SUCCESS) { + pl->nrofactiveinttransfers--; + } + return; +} + +static int +gp_libusb1_queue_interrupt_urbs (GPPort *port) +{ + unsigned int i; + int ret = 0; + + /* no interrupt endpoint */ + if (port->settings.usb.intep == -1) + return GP_OK; + + + for (i = 0; i < sizeof(port->pl->transfers)/sizeof(port->pl->transfers[0]); i++) { + unsigned char *buf; + if (port->pl->transfers[i] != NULL) + continue; + port->pl->transfers[i] = libusb_alloc_transfer(0); + buf = malloc(INTERRUPT_BUFFER_SIZE); + libusb_fill_interrupt_transfer(port->pl->transfers[i], port->pl->dh, port->settings.usb.intep, + buf, INTERRUPT_BUFFER_SIZE, _cb_irq, port->pl, 0 + ); + port->pl->transfers[i]->flags |= LIBUSB_TRANSFER_FREE_BUFFER; + ret = LOG_ON_LIBUSB_E(libusb_submit_transfer (port->pl->transfers[i])); + if (ret < LIBUSB_SUCCESS) { + libusb_free_transfer (port->pl->transfers[i]); + port->pl->transfers[i] = NULL; + return translate_libusb_error(ret, GP_ERROR_IO); + } + port->pl->nrofactiveinttransfers++; + } + return GP_OK; +} + +static int +gp_libusb1_check_int (GPPort *port, char *bytes, int size, int timeout) +{ + int ret; + struct timeval tv; + struct _PrivateIrqCompleted *irq_cur = NULL; + + C_PARAMS (port && port->pl->dh && timeout >= 0); + + if (port->pl->irqs_head != NULL) + goto handleirq; + + if (!timeout) + return GP_ERROR_TIMEOUT; + + /* If we have lost all the queued transfers, we should probably restart them + * if there are long running error, like "no more device". That would be + * reported upstream, so upstream can take care of that. + */ + if (port->pl->nrofactiveinttransfers < NB_INTERRUPT_TRANSFERS) { + ret = gp_libusb1_queue_interrupt_urbs(port); + if (ret != GP_OK) + return ret; + } + + tv.tv_sec = timeout/1000; + tv.tv_usec = (timeout%1000)*1000; + + ret = LOG_ON_LIBUSB_E (libusb_handle_events_timeout(port->pl->ctx, &tv)); + + if (port->pl->irqs_head != NULL) + goto handleirq; + + if (ret < LIBUSB_SUCCESS) + return translate_libusb_error(ret, GP_ERROR_IO_READ); + + return GP_ERROR_TIMEOUT; + +handleirq: + irq_cur = port->pl->irqs_head; + + switch (irq_cur->status) { + case LIBUSB_TRANSFER_COMPLETED: + ret = GP_OK; + break; + case LIBUSB_TRANSFER_NO_DEVICE: + ret = GP_ERROR_IO_USB_FIND; + /* Agglomerate similar errors to only report once. */ + while ((irq_cur->next) && + (irq_cur->next->status == LIBUSB_TRANSFER_NO_DEVICE) + ) { + port->pl->irqs_head = irq_cur->next; + if (irq_cur->data) + free(irq_cur->data); + free(irq_cur); + irq_cur = port->pl->irqs_head; + } + break; + default: + ret = GP_ERROR_IO; + /* Agglomerate similar errors to only report once. */ + while ((irq_cur->next) && + (irq_cur->next->status != LIBUSB_TRANSFER_COMPLETED) && + (irq_cur->next->status != LIBUSB_TRANSFER_NO_DEVICE) + ) { + port->pl->irqs_head = irq_cur->next; + if (irq_cur->data) + free(irq_cur->data); + free(irq_cur); + irq_cur = port->pl->irqs_head; + } + break; + } + + if (size > irq_cur->data_len) + size = irq_cur->data_len; + if (irq_cur->data) { + if (size > 0) + memcpy(bytes, irq_cur->data, size); + free(irq_cur->data); + } + port->pl->irqs_head = irq_cur->next; + if (port->pl->irqs_head == NULL) + port->pl->irqs_tail = NULL; + free(irq_cur); + + if (ret != GP_OK) + return ret; + + return size; +} + +static int +gp_libusb1_msg(GPPort *port, int request, int value, int index, char *bytes, int size, int flags, int default_error) +{ + int handled = 0; + C_PARAMS (port && port->pl->dh); + + C_LIBUSB (handled = libusb_control_transfer (port->pl->dh, flags, request, value, index, + (unsigned char*)bytes, size, port->timeout), + default_error); + + return handled; +} + +static int +gp_libusb1_msg_write_lib(GPPort *port, int request, int value, int index, + char *bytes, int size) +{ + return gp_libusb1_msg (port, request, value, index, bytes, size, + LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE, + GP_ERROR_IO_WRITE); +} + +static int +gp_libusb1_msg_read_lib(GPPort *port, int request, int value, int index, + char *bytes, int size) +{ + return gp_libusb1_msg (port, request, value, index, bytes, size, + LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE | LIBUSB_ENDPOINT_IN, + GP_ERROR_IO_READ); +} + +/* The next two functions support the nonstandard request types 0x41 (write) + * and 0xc1 (read), which are occasionally needed. + */ + +static int +gp_libusb1_msg_interface_write_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + return gp_libusb1_msg (port, request, value, index, bytes, size, + LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_INTERFACE, + GP_ERROR_IO_WRITE); +} + + +static int +gp_libusb1_msg_interface_read_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + return gp_libusb1_msg (port, request, value, index, bytes, size, + LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_INTERFACE | LIBUSB_ENDPOINT_IN, + GP_ERROR_IO_READ); +} + + +/* The next two functions support the nonstandard request types 0x21 (write) + * and 0xa1 (read), which are occasionally needed. + */ + +static int +gp_libusb1_msg_class_write_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + return gp_libusb1_msg (port, request, value, index, bytes, size, + LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_RECIPIENT_INTERFACE, + GP_ERROR_IO_WRITE); +} + + +static int +gp_libusb1_msg_class_read_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + return gp_libusb1_msg (port, request, value, index, bytes, size, + LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_RECIPIENT_INTERFACE | LIBUSB_ENDPOINT_IN, + GP_ERROR_IO_READ); +} + +/* + * This function applys changes to the device. + * + * New settings are in port->settings_pending and the old ones + * are in port->settings. Compare them first and only call + * usb_set_configuration() and usb_set_altinterface() if needed + * since some USB devices does not like it if this is done + * more than necessary (Canon Digital IXUS 300 for one). + * + */ +static int +gp_libusb1_update (GPPort *port) +{ + int ifacereleased = FALSE, changedone = FALSE; + + C_PARAMS (port && port->pl && port->pl->ctx); + + GP_LOG_D ("(old int=%d, conf=%d, alt=%d) port %s, (new int=%d, conf=%d, alt=%d) port %s", + port->settings.usb.interface, + port->settings.usb.config, + port->settings.usb.altsetting, + port->settings.usb.port, + port->settings_pending.usb.interface, + port->settings_pending.usb.config, + port->settings_pending.usb.altsetting, + port->settings_pending.usb.port + ); + +/* do not overwrite it ... we need to set it. + if (port->pl->interface == -1) port->pl->interface = port->settings.usb.interface; + if (port->pl->config == -1) port->pl->config = port->settings.usb.config; + if (port->pl->altsetting == -1) port->pl->altsetting = port->settings.usb.altsetting; +*/ + + /* The portname can also be changed with the device still fully closed. */ + memcpy(&port->settings.usb.port, &port->settings_pending.usb.port, + sizeof(port->settings.usb.port)); + + if (!port->pl->dh) { + GP_LOG_D("lowlevel libusb1 port not yet opened, no need for libusb changes"); + return GP_OK; /* the port might not be opened, yet. that is ok */ + } + + memcpy(&port->settings.usb, &port->settings_pending.usb, + sizeof(port->settings.usb)); + + /* The interface changed. release the old, claim the new ... */ + if (port->settings.usb.interface != port->pl->interface) { + GP_LOG_D ("changing interface %d -> %d", port->pl->interface, port->settings.usb.interface); + if (LOG_ON_LIBUSB_E (libusb_release_interface (port->pl->dh, port->pl->interface))) { + /* Not a hard error for now. -Marcus */ + } else { + GP_LOG_D ("claiming interface %d", port->settings.usb.interface); + C_LIBUSB (libusb_claim_interface (port->pl->dh, port->settings.usb.interface), + GP_ERROR_IO_USB_CLAIM); + port->pl->interface = port->settings.usb.interface; + } + changedone = TRUE; + } + if (port->settings.usb.config != port->pl->config) { + GP_LOG_D ("changing config %d -> %d", port->pl->config, port->settings.usb.config); + /* This can only be changed with the interface released. + * This is a hard requirement since 2.6.12. + */ + if (LOG_ON_LIBUSB_E (libusb_release_interface (port->pl->dh, port->settings.usb.interface))) { + ifacereleased = FALSE; + } else { + ifacereleased = TRUE; + } + if (LOG_ON_LIBUSB_E (libusb_set_configuration(port->pl->dh, port->settings.usb.config))) { +#if 0 /* setting the configuration failure is not fatal */ + int saved_errno = errno; + gp_port_set_error (port, + _("Could not set config %d/%d (%s)"), + port->settings.usb.interface, + port->settings.usb.config, + strerror(saved_errno)); + return GP_ERROR_IO_UPDATE; +#endif + GP_LOG_E ("setting configuration from %d to %d failed, but continuing...", port->pl->config, port->settings.usb.config); + } + + GP_LOG_D ("Changed usb.config from %d to %d", port->pl->config, port->settings.usb.config); + + if (ifacereleased) { + GP_LOG_D ("claiming interface %d", port->settings.usb.interface); + LOG_ON_LIBUSB_E (libusb_claim_interface (port->pl->dh, port->settings.usb.interface)); + } + /* + * Copy at once if something else fails so that this + * does not get re-applied + */ + port->pl->config = port->settings.usb.config; + changedone = TRUE; + } + + /* This can be changed with interface claimed. (And I think it must be claimed.) */ + if (port->settings.usb.altsetting != port->pl->altsetting) { + if (LOG_ON_LIBUSB_E (libusb_set_interface_alt_setting (port->pl->dh, + port->settings.usb.interface, port->settings.usb.altsetting))) { + int saved_errno = errno; + gp_port_set_error (port, + _("Could not set altsetting from %d " + "to %d (%s)"), + port->pl->altsetting, + port->settings.usb.altsetting, + strerror(saved_errno)); + return GP_ERROR_IO_UPDATE; + } + + GP_LOG_D ("Changed usb.altsetting from %d to %d", port->pl->altsetting, port->settings.usb.altsetting); + port->pl->altsetting = port->settings.usb.altsetting; + changedone = TRUE; + } + + /* requeue the interrupts */ + if (changedone) + gp_libusb1_queue_interrupt_urbs (port); + return GP_OK; +} + +static int +gp_libusb1_find_ep(libusb_device *dev, int config, int interface, int altsetting, int direction, int type) +{ + const struct libusb_interface_descriptor *intf; + struct libusb_config_descriptor *confdesc; + int i; + + if (LOG_ON_LIBUSB_E (libusb_get_config_descriptor (dev, config, &confdesc))) + return -1; + + intf = &confdesc->interface[interface].altsetting[altsetting]; + for (i = 0; i < intf->bNumEndpoints; i++) { + if (((intf->endpoint[i].bEndpointAddress & LIBUSB_ENDPOINT_DIR_MASK) == direction) && + ((intf->endpoint[i].bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) == type)) { + unsigned char ret; + ret = intf->endpoint[i].bEndpointAddress; /* intf is cleared after next line, copy epaddr! */ + libusb_free_config_descriptor (confdesc); + return ret; + } + } + libusb_free_config_descriptor (confdesc); + return -1; +} + +static int +gp_libusb1_find_first_altsetting(struct libusb_device *dev, int *config, int *interface, int *altsetting) +{ + int i, i1, i2; + struct libusb_device_descriptor desc; + + if (LOG_ON_LIBUSB_E (libusb_get_device_descriptor (dev, &desc))) + return -1; + + for (i = 0; i < desc.bNumConfigurations; i++) { + struct libusb_config_descriptor *confdesc; + + if (LOG_ON_LIBUSB_E (libusb_get_config_descriptor (dev, i, &confdesc))) + return -1; + + for (i1 = 0; i1 < confdesc->bNumInterfaces; i1++) + for (i2 = 0; i2 < confdesc->interface[i1].num_altsetting; i2++) + if (confdesc->interface[i1].altsetting[i2].bNumEndpoints) { + *config = i; + *interface = i1; + *altsetting = i2; + libusb_free_config_descriptor (confdesc); + + return 0; + } + libusb_free_config_descriptor (confdesc); + } + return -1; +} + +static int +gp_libusb1_find_path_lib(GPPort *port) +{ + char *s; + int d, busnr = 0, devnr = 0; + GPPortPrivateLibrary *pl; + + C_PARAMS (port); + + pl = port->pl; + + s = strchr (port->settings.usb.port,':'); + C_PARAMS (s && (s[1] != '\0')); + C_PARAMS (sscanf (s+1, "%d,%d", &busnr, &devnr) == 2); /* usb:%d,%d */ + + pl->nrofdevs = load_devicelist (port->pl); + + for (d = 0; d < pl->nrofdevs; d++) { + struct libusb_config_descriptor *confdesc; + int config = -1, interface = -1, altsetting = -1; + + if (busnr != libusb_get_bus_number (pl->devs[d])) + continue; + if (devnr != libusb_get_device_address (pl->devs[d])) + continue; + + port->pl->d = pl->devs[d]; + + GP_LOG_D ("Found path %s", port->settings.usb.port); + + /* Use the first config, interface and altsetting we find */ + gp_libusb1_find_first_altsetting(pl->devs[d], &config, &interface, &altsetting); + + if (LOG_ON_LIBUSB_E (libusb_get_config_descriptor (pl->devs[d], config, &confdesc))) + continue; + + /* Set the defaults */ + port->settings.usb.config = confdesc->bConfigurationValue; + port->settings.usb.interface = confdesc->interface[interface].altsetting[altsetting].bInterfaceNumber; + port->settings.usb.altsetting = confdesc->interface[interface].altsetting[altsetting].bAlternateSetting; + + port->settings.usb.inep = gp_libusb1_find_ep(pl->devs[d], config, interface, altsetting, LIBUSB_ENDPOINT_IN, LIBUSB_TRANSFER_TYPE_BULK); + port->settings.usb.outep = gp_libusb1_find_ep(pl->devs[d], config, interface, altsetting, LIBUSB_ENDPOINT_OUT, LIBUSB_TRANSFER_TYPE_BULK); + port->settings.usb.intep = gp_libusb1_find_ep(pl->devs[d], config, interface, altsetting, LIBUSB_ENDPOINT_IN, LIBUSB_TRANSFER_TYPE_INTERRUPT); + + port->settings.usb.maxpacketsize = libusb_get_max_packet_size (pl->devs[d], port->settings.usb.inep); + GP_LOG_D ("Detected defaults: config %d, interface %d, altsetting %d, " + "inep %02x, outep %02x, intep %02x, class %02x, subclass %02x", + port->settings.usb.config, + port->settings.usb.interface, + port->settings.usb.altsetting, + port->settings.usb.inep, + port->settings.usb.outep, + port->settings.usb.intep, + confdesc->interface[interface].altsetting[altsetting].bInterfaceClass, + confdesc->interface[interface].altsetting[altsetting].bInterfaceSubClass + ); + libusb_free_config_descriptor (confdesc); + return GP_OK; + } +#if 0 + gp_port_set_error (port, _("Could not find USB device " + "(vendor 0x%x, product 0x%x). Make sure this device " + "is connected to the computer."), idvendor, idproduct); +#endif + return GP_ERROR_IO_USB_FIND; +} +static int +gp_libusb1_find_device_lib(GPPort *port, int idvendor, int idproduct) +{ + char *s; + int d, busnr = 0, devnr = 0; + GPPortPrivateLibrary *pl; + + C_PARAMS (port); + + pl = port->pl; + + s = strchr (port->settings.usb.port,':'); + if (s && (s[1] != '\0')) { /* usb:%d,%d */ + if (sscanf (s+1, "%d,%d", &busnr, &devnr) != 2) { + devnr = 0; + sscanf (s+1, "%d", &busnr); + } + } + /* + * 0x0000 idvendor is not valid. + * 0x0000 idproduct is ok. + * Should the USB layer report that ? I don't know. + * Better to check here. + */ + if (!idvendor) { + gp_port_set_error (port, _("The supplied vendor or product " + "id (0x%x,0x%x) is not valid."), idvendor, idproduct); + return GP_ERROR_BAD_PARAMETERS; + } + + pl->nrofdevs = load_devicelist (port->pl); + + for (d = 0; d < pl->nrofdevs; d++) { + struct libusb_config_descriptor *confdesc; + int config = -1, interface = -1, altsetting = -1; + + if ((pl->descs[d].idVendor != idvendor) || + (pl->descs[d].idProduct != idproduct)) + continue; + + if (busnr && (busnr != libusb_get_bus_number (pl->devs[d]))) + continue; + if (devnr && (devnr != libusb_get_device_address (pl->devs[d]))) + continue; + + port->pl->d = pl->devs[d]; + + GP_LOG_D ("Looking for USB device (vendor 0x%x, product 0x%x)... found.", idvendor, idproduct); + + /* Use the first config, interface and altsetting we find */ + gp_libusb1_find_first_altsetting(pl->devs[d], &config, &interface, &altsetting); + + if (LOG_ON_LIBUSB_E (libusb_get_config_descriptor (pl->devs[d], config, &confdesc))) + continue; + + /* Set the defaults */ + if (confdesc->interface[interface].altsetting[altsetting].bInterfaceClass + == LIBUSB_CLASS_MASS_STORAGE) { + GP_LOG_D ("USB device (vendor 0x%x, product 0x%x) is a mass" + " storage device, and might not function with gphoto2." + " Reference: %s", idvendor, idproduct, URL_USB_MASSSTORAGE); + } + port->settings.usb.config = confdesc->bConfigurationValue; + port->settings.usb.interface = confdesc->interface[interface].altsetting[altsetting].bInterfaceNumber; + port->settings.usb.altsetting = confdesc->interface[interface].altsetting[altsetting].bAlternateSetting; + + port->settings.usb.inep = gp_libusb1_find_ep(pl->devs[d], config, interface, altsetting, LIBUSB_ENDPOINT_IN, LIBUSB_TRANSFER_TYPE_BULK); + port->settings.usb.outep = gp_libusb1_find_ep(pl->devs[d], config, interface, altsetting, LIBUSB_ENDPOINT_OUT, LIBUSB_TRANSFER_TYPE_BULK); + port->settings.usb.intep = gp_libusb1_find_ep(pl->devs[d], config, interface, altsetting, LIBUSB_ENDPOINT_IN, LIBUSB_TRANSFER_TYPE_INTERRUPT); + + port->settings.usb.maxpacketsize = libusb_get_max_packet_size (pl->devs[d], port->settings.usb.inep); + GP_LOG_D ("Detected defaults: config %d, interface %d, altsetting %d, " + "inep %02x, outep %02x, intep %02x, class %02x, subclass %02x", + port->settings.usb.config, + port->settings.usb.interface, + port->settings.usb.altsetting, + port->settings.usb.inep, + port->settings.usb.outep, + port->settings.usb.intep, + confdesc->interface[interface].altsetting[altsetting].bInterfaceClass, + confdesc->interface[interface].altsetting[altsetting].bInterfaceSubClass + ); + libusb_free_config_descriptor (confdesc); + return GP_OK; + } +#if 0 + gp_port_set_error (port, _("Could not find USB device " + "(vendor 0x%x, product 0x%x). Make sure this device " + "is connected to the computer."), idvendor, idproduct); +#endif + return GP_ERROR_IO_USB_FIND; +} + +/* This function reads the Microsoft OS Descriptor and looks inside to + * find if it is a MTP device. This is the similar to the way that + * Windows Media Player 10 uses. + * It is documented to some degree on various internet pages. + */ +static int +gp_libusb1_match_mtp_device(struct libusb_device *dev,int *configno, int *interfaceno, int *altsettingno) +{ + /* Marcus: Avoid this probing altogether, its too unstable on some devices */ + return 0; + +#if 0 + char buf[1000], cmd; + int ret,i,i1,i2, xifaces,xnocamifaces; + usb_dev_handle *devh; + + /* All of them are "vendor specific" device class */ +#if 0 + if ((desc.bDeviceClass!=0xff) && (desc.bDeviceClass!=0)) + return 0; +#endif + if (dev->config) { + xifaces = xnocamifaces = 0; + for (i = 0; i < desc.bNumConfigurations; i++) { + unsigned int j; + + for (j = 0; j < dev->config[i].bNumInterfaces; j++) { + int k; + xifaces++; + + for (k = 0; k < dev->config[i].interface[j].num_altsetting; k++) { + struct usb_interface_descriptor *intf = &dev->config[i].interface[j].altsetting[k]; + if ( (intf->bInterfaceClass == LIBUSB_CLASS_HID) || + (intf->bInterfaceClass == LIBUSB_CLASS_PRINTER) || + (intf->bInterfaceClass == LIBUSB_CLASS_AUDIO) || + (intf->bInterfaceClass == LIBUSB_CLASS_HUB) || + (intf->bInterfaceClass == LIBUSB_CLASS_COMM) || + (intf->bInterfaceClass == 0xe0) /* wireless/bluetooth*/ + ) + xnocamifaces++; + } + } + } + } + if (xifaces == xnocamifaces) /* only non-camera ifaces */ + return 0; + + devh = usb_open (dev); + if (!devh) + return 0; + + /* + * Loop over the device configurations and interfaces. Nokia MTP-capable + * handsets (possibly others) typically have the string "MTP" in their + * MTP interface descriptions, that's how they can be detected, before + * we try the more esoteric "OS descriptors" (below). + */ + if (dev->config) { + for (i = 0; i < desc.bNumConfigurations; i++) { + unsigned int j; + + for (j = 0; j < dev->config[i].bNumInterfaces; j++) { + int k; + for (k = 0; k < dev->config[i].interface[j].num_altsetting; k++) { + buf[0] = '\0'; + ret = usb_get_string_simple(devh, + dev->config[i].interface[j].altsetting[k].iInterface, + (char *) buf, + 1024); + if (ret < 3) + continue; + if (strcmp((char *) buf, "MTP") == 0) { + GP_LOG_D ("Configuration %d, interface %d, altsetting %d:\n", i, j, k); + GP_LOG_D (" Interface description contains the string \"MTP\"\n"); + GP_LOG_D (" Device recognized as MTP, no further probing.\n"); + goto found; + } + } + } + } + } + /* get string descriptor at 0xEE */ + ret = usb_get_descriptor (devh, 0x03, 0xee, buf, sizeof(buf)); + if (ret > 0) GP_LOG_DATA (buf, ret, "get_MS_OSD"); + if (ret < 10) goto errout; + if (!((buf[2] == 'M') && (buf[4]=='S') && (buf[6]=='F') && (buf[8]=='T'))) + goto errout; + cmd = buf[16]; + ret = usb_control_msg (devh, USB_ENDPOINT_IN|USB_RECIP_DEVICE|LIBUSB_REQUEST_TYPE_VENDOR, cmd, 0, 4, buf, sizeof(buf), 1000); + if (ret == -1) { + GP_LOG_E ("control message says %d\n", ret); + goto errout; + } + if (buf[0] != 0x28) { + GP_LOG_E ("ret is %d, buf[0] is %x\n", ret, buf[0]); + goto errout; + } + if (ret > 0) GP_LOG_DATA (buf, ret, "get_MS_ExtDesc"); + if ((buf[0x12] != 'M') || (buf[0x13] != 'T') || (buf[0x14] != 'P')) { + GP_LOG_E ("buf at 0x12 is %02x%02x%02x\n", buf[0x12], buf[0x13], buf[0x14]); + goto errout; + } + ret = usb_control_msg (devh, USB_ENDPOINT_IN|USB_RECIP_DEVICE|LIBUSB_REQUEST_TYPE_VENDOR, cmd, 0, 5, buf, sizeof(buf), 1000); + if (ret == -1) goto errout; + if (buf[0] != 0x28) { + GP_LOG_E ("ret is %d, buf[0] is %x\n", ret, buf[0]); + goto errout; + } + if (ret > 0) GP_LOG_DATA (buf, ret, "get_MS_ExtProp"); + if ((buf[0x12] != 'M') || (buf[0x13] != 'T') || (buf[0x14] != 'P')) { + GP_LOG_E ("buf at 0x12 is %02x%02x%02x\n", buf[0x12], buf[0x13], buf[0x14]); + goto errout; + } + +found: + usb_close (devh); + + /* Now chose a nice interface for us to use ... Just take the first. */ + + if (desc.bNumConfigurations > 1) + GP_LOG_E ("The device has %d configurations!\n", desc.bNumConfigurations); + for (i = 0; i < desc.bNumConfigurations; i++) { + struct usb_config_descriptor *config = + &dev->config[i]; + + if (config->bNumInterfaces > 1) + GP_LOG_E ("The configuration has %d interfaces!\n", config->bNumInterfaces); + for (i1 = 0; i1 < config->bNumInterfaces; i1++) { + struct usb_interface *interface = + &config->interface[i1]; + + if (interface->num_altsetting > 1) + GP_LOG_E ("The interface has %d altsettings!\n", interface->num_altsetting); + for (i2 = 0; i2 < interface->num_altsetting; i2++) { + *configno = i; + *interfaceno = i1; + *altsettingno = i2; + return 1; + } + } + } + return 1; +errout: + usb_close (devh); + return 0; +#endif +} + +static int +gp_libusb1_match_device_by_class(struct libusb_device *dev, int class, int subclass, int protocol, int *configno, int *interfaceno, int *altsettingno) +{ + int i, i1, i2; + struct libusb_device_descriptor desc; + + if (class == 666) /* Special hack for MTP devices with MS OS descriptors. */ + return gp_libusb1_match_mtp_device (dev, configno, interfaceno, altsettingno); + + if (LOG_ON_LIBUSB_E (libusb_get_device_descriptor(dev, &desc))) + return 0; + + if (desc.bDeviceClass == class && + (subclass == -1 || + desc.bDeviceSubClass == subclass) && + (protocol == -1 || + desc.bDeviceProtocol == protocol)) + return 1; + + + for (i = 0; i < desc.bNumConfigurations; i++) { + struct libusb_config_descriptor *config; + + if (LOG_ON_LIBUSB_E (libusb_get_config_descriptor (dev, i, &config))) + continue; + + for (i1 = 0; i1 < config->bNumInterfaces; i1++) { + const struct libusb_interface *interface = + &config->interface[i1]; + + for (i2 = 0; i2 < interface->num_altsetting; i2++) { + const struct libusb_interface_descriptor *altsetting = + &interface->altsetting[i2]; + + if (altsetting->bInterfaceClass == class && + (subclass == -1 || + altsetting->bInterfaceSubClass == subclass) && + (protocol == -1 || + altsetting->bInterfaceProtocol == protocol)) { + *configno = i; + *interfaceno = i1; + *altsettingno = i2; + + libusb_free_config_descriptor (config); + return 2; + } + } + } + libusb_free_config_descriptor (config); + } + return 0; +} + +static int +gp_libusb1_find_device_by_class_lib(GPPort *port, int class, int subclass, int protocol) +{ + char *s; + int d, busnr = 0, devnr = 0; + GPPortPrivateLibrary *pl; + + C_PARAMS (port); + + pl = port->pl; + + s = strchr (port->settings.usb.port,':'); + if (s && (s[1] != '\0')) { /* usb:%d,%d */ + if (sscanf (s+1, "%d,%d", &busnr, &devnr) != 2) { + devnr = 0; + sscanf (s+1, "%d", &busnr); + } + } + /* + * 0x00 class is not valid. + * 0x00 subclass and protocol is ok. + * Should the USB layer report that ? I don't know. + * Better to check here. + */ + C_PARAMS (class); + + pl->nrofdevs = load_devicelist (port->pl); + for (d = 0; d < pl->nrofdevs; d++) { + struct libusb_config_descriptor *confdesc; + int i, ret, config = -1, interface = -1, altsetting = -1; + + if (busnr && (busnr != libusb_get_bus_number (pl->devs[d]))) + continue; + if (devnr && (devnr != libusb_get_device_address (pl->devs[d]))) + continue; + + GP_LOG_D ("Looking for USB device (class 0x%x, subclass, 0x%x, protocol 0x%x)...", + class, subclass, protocol); + + ret = gp_libusb1_match_device_by_class(pl->devs[d], class, subclass, protocol, &config, &interface, &altsetting); + if (!ret) + continue; + + port->pl->d = pl->devs[d]; + GP_LOG_D ("Found USB class device (class 0x%x, subclass, 0x%x, protocol 0x%x)", + class, subclass, protocol); + + if (LOG_ON_LIBUSB_E (libusb_get_config_descriptor (pl->devs[d], config, &confdesc))) + continue; + + /* Set the defaults */ + port->settings.usb.config = confdesc->bConfigurationValue; + port->settings.usb.interface = confdesc->interface[interface].altsetting[altsetting].bInterfaceNumber; + port->settings.usb.altsetting = confdesc->interface[interface].altsetting[altsetting].bAlternateSetting; + + port->settings.usb.inep = gp_libusb1_find_ep(pl->devs[d], config, interface, altsetting, LIBUSB_ENDPOINT_IN, LIBUSB_TRANSFER_TYPE_BULK); + port->settings.usb.outep = gp_libusb1_find_ep(pl->devs[d], config, interface, altsetting, LIBUSB_ENDPOINT_OUT, LIBUSB_TRANSFER_TYPE_BULK); + port->settings.usb.intep = gp_libusb1_find_ep(pl->devs[d], config, interface, altsetting, LIBUSB_ENDPOINT_IN, LIBUSB_TRANSFER_TYPE_INTERRUPT); + port->settings.usb.maxpacketsize = 0; + GP_LOG_D ("inep to look for is %02x", port->settings.usb.inep); + for (i=0;iinterface[interface].altsetting[altsetting].bNumEndpoints;i++) { + if (port->settings.usb.inep == confdesc->interface[interface].altsetting[altsetting].endpoint[i].bEndpointAddress) { + port->settings.usb.maxpacketsize = confdesc->interface[interface].altsetting[altsetting].endpoint[i].wMaxPacketSize; + break; + } + } + GP_LOG_D ("Detected defaults: config %d, interface %d, altsetting %d, " + "idVendor ID %04x, idProduct %04x, inep %02x, outep %02x, intep %02x", + port->settings.usb.config, + port->settings.usb.interface, + port->settings.usb.altsetting, + pl->descs[d].idVendor, + pl->descs[d].idProduct, + port->settings.usb.inep, + port->settings.usb.outep, + port->settings.usb.intep + ); + libusb_free_config_descriptor (confdesc); + return GP_OK; + } +#if 0 + gp_port_set_error (port, _("Could not find USB device " + "(class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device " + "is connected to the computer."), class, subclass, protocol); +#endif + return GP_ERROR_IO_USB_FIND; +} + +GPPortOperations * +gp_port_library_operations (void) +{ + GPPortOperations *ops; + + ops = calloc (1, sizeof (GPPortOperations)); + if (!ops) + return (NULL); + + ops->init = gp_libusb1_init; + ops->exit = gp_libusb1_exit; + ops->open = gp_libusb1_open; + ops->close = gp_libusb1_close; + ops->read = gp_libusb1_read; + ops->reset = gp_libusb1_reset; + ops->write = gp_libusb1_write; + ops->check_int = gp_libusb1_check_int; + ops->update = gp_libusb1_update; + ops->clear_halt = gp_libusb1_clear_halt_lib; + ops->msg_write = gp_libusb1_msg_write_lib; + ops->msg_read = gp_libusb1_msg_read_lib; + ops->msg_interface_write = gp_libusb1_msg_interface_write_lib; + ops->msg_interface_read = gp_libusb1_msg_interface_read_lib; + ops->msg_class_write = gp_libusb1_msg_class_write_lib; + ops->msg_class_read = gp_libusb1_msg_class_read_lib; + ops->find_device = gp_libusb1_find_device_lib; + ops->find_device_by_class = gp_libusb1_find_device_by_class_lib; + + return (ops); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/POTFILES.in b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/POTFILES.in new file mode 100644 index 00000000..e1e6d9c3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/POTFILES.in @@ -0,0 +1,9 @@ +libgphoto2_port/gphoto2-port-info-list.c +libgphoto2_port/gphoto2-port-result.c +libgphoto2_port/gphoto2-port.c +disk/disk.c +serial/unix.c +usbdiskdirect/linux.c +usb/libusb.c +libusb1/libusb1.c +usbscsi/linux.c diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/cs.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/cs.po new file mode 100644 index 00000000..8812f9d1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/cs.po @@ -0,0 +1,614 @@ +# Czech translation of libgphoto2_port +# This file is distributed under the same license as the libgphoto2 package. +# +# Miloslav Trmac , 2003. +# Marek Černocký , 2011, 2012, 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.3\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2014-01-06 14:47+0100\n" +"PO-Revision-Date: 2014-03-09 13:57+0100\n" +"Last-Translator: Marek Černocký \n" +"Language-Team: Czech \n" +"Language: cs\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:220 +#, c-format +msgid "Called for filename '%s'." +msgstr "Požadován soubor „%s“." + +#: libgphoto2_port/gphoto2-port-info-list.c:225 +#, c-format +msgid "Could not load '%s': '%s'." +msgstr "Nelze načíst „%s“: „%s“" + +#: libgphoto2_port/gphoto2-port-info-list.c:233 +#, c-format +msgid "Could not find some functions in '%s': '%s'." +msgstr "Nelze najít některé funkce v „%s“: „%s“." + +#: libgphoto2_port/gphoto2-port-info-list.c:245 +#, c-format +msgid "'%s' already loaded" +msgstr "Soubor „%s“ je již načten" + +#: libgphoto2_port/gphoto2-port-info-list.c:254 +#, c-format +msgid "Could not load port driver list: '%s'." +msgstr "Nelze načíst seznam ovladačů portů: „%s“." + +#: libgphoto2_port/gphoto2-port-info-list.c:267 +#, c-format +msgid "Loaded '%s' ('%s') from '%s'." +msgstr "Načten „%s“ („%s“) ze souboru „%s“." + +#: libgphoto2_port/gphoto2-port-info-list.c:300 +#, c-format +msgid "Using ltdl to load io-drivers from '%s'..." +msgstr "Používá se ltdl k načtení V/V ovladačů z „%s“…" + +#: libgphoto2_port/gphoto2-port-info-list.c:333 +#, c-format +msgid "Counting entries (%i available)..." +msgid_plural "Counting entries (%i available)..." +msgstr[0] "Počítají se záznamy (%i dostupný)…" +msgstr[1] "Počítají se záznamy (%i dostupné)…" +msgstr[2] "Počítají se záznamy (%i dostupných)…" + +#: libgphoto2_port/gphoto2-port-info-list.c:346 +#, c-format +msgid "%i regular entry available." +msgid_plural "%i regular entries available." +msgstr[0] "Dostupný je %i běžný záznam." +msgstr[1] "Dostupné jsou %i běžné záznamy." +msgstr[2] "Dostupných je %i běžných záznamů." + +#: libgphoto2_port/gphoto2-port-info-list.c:381 +#, c-format +msgid "Looking for path '%s' (%i entry available)..." +msgid_plural "Looking for path '%s' (%i entries available)..." +msgstr[0] "Hledá se cesta „%s“ (%i dostupný záznam)…" +msgstr[1] "Hledá se cesta „%s“ (%i dostupné záznamy)…" +msgstr[2] "Hledá se cesta „%s“ (%i dostupných záznamů)…" + +#: libgphoto2_port/gphoto2-port-info-list.c:395 +#, c-format +msgid "Starting regex search for '%s'..." +msgstr "Začíná se vyhledávat „%s“ pomocí regulárního výrazu…" + +#: libgphoto2_port/gphoto2-port-info-list.c:403 +#, c-format +msgid "Trying '%s'..." +msgstr "Zkouší se „%s“…" + +#: libgphoto2_port/gphoto2-port-info-list.c:424 +msgid "regcomp failed" +msgstr "kompilace regulárního výrazu selhala" + +#: libgphoto2_port/gphoto2-port-info-list.c:435 +#, c-format +msgid "re_match failed (%i)" +msgstr "porovnání regulárním výrazem selhalo (%i)" + +#: libgphoto2_port/gphoto2-port-info-list.c:443 +msgid "regexec failed" +msgstr "spuštění regulárního výrazu selhalo" + +#: libgphoto2_port/gphoto2-port-info-list.c:450 +msgid "Generic Port" +msgstr "Obecný port" + +#: libgphoto2_port/gphoto2-port-info-list.c:475 +#, c-format +msgid "Looking up entry '%s'..." +msgstr "Vyhledává se záznam „%s“…" + +#: libgphoto2_port/gphoto2-port-info-list.c:507 +#, c-format +msgid "Getting info of entry %i (%i available)..." +msgid_plural "Getting info of entry %i (%i available)..." +msgstr[0] "Získávají se informace o záznamu %i (k dispozici je %i)…" +msgstr[1] "Získávají se informace o záznamu %i (k dispozici jsou %i)…" +msgstr[2] "Získávají se informace o záznamu %i (k dispozici je %i)…" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Žádná chyba" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Neurčená chyba" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Problém V/V" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Špatné parametry" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Nepodporovaná operace" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Bylo dosaženo pevného omezení" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Při čtení z nebo zápisu na port vypršelo časové omezení" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Sériový port není podporován" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "Port USB není podporován" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Neznámý port" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Nedostatek paměti" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Chyba při načítání knihovny" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Chyba při inicializaci portu" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Chyba při čtení z portu" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Chyba při zápisu na port" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Chyba při aktualizaci nastavení portu" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Chyba při nastavování rychlosti sériového portu" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Chyba při nulování stavu zastavení na portu USB" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Nelze najít požadované zařízení na portu USB" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Nelze přidělit USB zařízení" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Nelze zamknout zařízení" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "Chyba knihovny libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Neznámá chyba" + +#: libgphoto2_port/gphoto2-port.c:60 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Operace „%s“ není tímto zařízením podporována" + +#: libgphoto2_port/gphoto2-port.c:61 +msgid "The port has not yet been initialized" +msgstr "Port ještě nebyl inicializován" + +#: libgphoto2_port/gphoto2-port.c:92 +msgid "Creating new device..." +msgstr "Vytváří se nové zařízení…" + +#: libgphoto2_port/gphoto2-port.c:177 +#, c-format +msgid "Could not load '%s' ('%s')." +msgstr "Nelze načíst „%s“ („%s“)." + +#: libgphoto2_port/gphoto2-port.c:187 +#, c-format +msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +msgstr "Nelze najít funkci „gp_port_library_operation“ v „%s“ („%s“)" + +#: libgphoto2_port/gphoto2-port.c:269 +#, c-format +msgid "Opening %s port..." +msgstr "Otevírá se port %s…" + +#: libgphoto2_port/gphoto2-port.c:291 +msgid "Closing port..." +msgstr "Zavírá se port…" + +#: libgphoto2_port/gphoto2-port.c:313 +msgid "Resetting port..." +msgstr "Resetuje se port…" + +#: libgphoto2_port/gphoto2-port.c:335 +msgid "Freeing port..." +msgstr "Uvolňuje se port…" + +#: libgphoto2_port/gphoto2-port.c:386 +#, c-format +msgid "Writing %i=0x%x byte(s) to port..." +msgstr "Zapisuje se %i=0x%x bajtů na port…" + +#: libgphoto2_port/gphoto2-port.c:399 +#, c-format +msgid "Could only write %i out of %i byte" +msgid_plural "Could only write %i out of %i bytes" +msgstr[0] "Je možné zapsat pouze %i z %i bajtu" +msgstr[1] "Je možné zapsat pouze %i z %i bajtů" +msgstr[2] "Je možné zapsat pouze %i z %i bajtů" + +#: libgphoto2_port/gphoto2-port.c:421 +#, c-format +msgid "Reading %i=0x%x byte from port..." +msgid_plural "Reading %i=0x%x bytes from port..." +msgstr[0] "Čte se %i=0x%x bajt z portu…" +msgstr[1] "Čtou se %i=0x%x bajty z portu…" +msgstr[2] "Čte se %i=0x%x bajtů z portu…" + +#: libgphoto2_port/gphoto2-port.c:433 libgphoto2_port/gphoto2-port.c:514 +#: libgphoto2_port/gphoto2-port.c:946 libgphoto2_port/gphoto2-port.c:1030 +#: libgphoto2_port/gphoto2-port.c:1116 +#, c-format +msgid "Could only read %i out of %i byte" +msgid_plural "Could only read %i out of %i byte(s)" +msgstr[0] "Je možné přečíst pouze %i z %i bajtu" +msgstr[1] "Je možné přečíst pouze %i z %i bajtů" +msgstr[2] "Je možné přečíst pouze %i z %i bajtů" + +#: libgphoto2_port/gphoto2-port.c:461 +#, c-format +msgid "Reading %i=0x%x byte from interrupt endpoint..." +msgid_plural "Reading %i=0x%x bytes from interrupt endpoint..." +msgstr[0] "Čte se %i=0x%x bajt z koncového bodu přerušení…" +msgstr[1] "Čtou se %i=0x%x bajty z koncového bodu přerušení…" +msgstr[2] "Čte se %i=0x%x bajtů z koncového bodu přerušení…" + +#: libgphoto2_port/gphoto2-port.c:473 +#, c-format +msgid "Could only read %i out of %i byte(s)" +msgstr "Je možné přečíst pouze %i z %i bajtů" + +#: libgphoto2_port/gphoto2-port.c:527 +#, c-format +msgid "Reading %i=0x%x byte from interrupt endpoint (fast)..." +msgid_plural "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +msgstr[0] "Čte se %i=0x%x bajt z koncového bodu přerušení (zrychleně)…" +msgstr[1] "Čtou se %i=0x%x bajty z koncového bodu přerušení (zrychleně)…" +msgstr[2] "Čte se %i=0x%x bajtů z koncového bodu přerušení (zrychleně)…" + +#: libgphoto2_port/gphoto2-port.c:555 +#, c-format +msgid "Setting timeout to %i millisecond(s)..." +msgstr "Nastavuje se časové omezení na %i ms…" + +#: libgphoto2_port/gphoto2-port.c:591 +msgid "Getting timeout..." +msgstr "Zjišťuje se časové omezení…" + +#: libgphoto2_port/gphoto2-port.c:595 +#, c-format +msgid "Current timeout: %i milliseconds" +msgstr "Současné časové omezení: %i milisekund" + +#: libgphoto2_port/gphoto2-port.c:617 +msgid "Setting settings..." +msgstr "Nastavuje se nastavení…" + +#: libgphoto2_port/gphoto2-port.c:678 +#, c-format +msgid "Getting level of pin %i..." +msgstr "Získává se úroveň vývodu %i…" + +#: libgphoto2_port/gphoto2-port.c:687 +#, c-format +msgid "Level of pin %i: %i" +msgstr "Úroveň vývodu %i: %i" + +#: libgphoto2_port/gphoto2-port.c:713 +msgid "low" +msgstr "nizká" + +#: libgphoto2_port/gphoto2-port.c:714 +msgid "high" +msgstr "vysoká" + +#: libgphoto2_port/gphoto2-port.c:740 +#, c-format +msgid "Setting pin %i (%s: '%s') to '%s'..." +msgstr "Nastavuje se vývod %i (%s: „%s“) na „%s“…" + +#: libgphoto2_port/gphoto2-port.c:767 +#, c-format +msgid "Sending break (%i milliseconds)..." +msgstr "Posílá se přerušení (%i ms)…" + +#: libgphoto2_port/gphoto2-port.c:793 +msgid "Flushing port..." +msgstr "Vyprazdňuje se port…" + +#: libgphoto2_port/gphoto2-port.c:867 +msgid "Clear halt..." +msgstr "Nulování stavu zastavení…" + +#: libgphoto2_port/gphoto2-port.c:898 +#, c-format +msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +msgstr "Zapisuje se zpráva (požadavek=0x%x hodnota=0x%x index=0x%x velikost=%i=0x%x)…" + +#: libgphoto2_port/gphoto2-port.c:933 +#, c-format +msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +msgstr "Čte se zpráva (požadavek=0x%x hodnota=0x%x index=0x%x velikost=%i=0x%x)…" + +#: libgphoto2_port/gphoto2-port.c:1277 +msgid "No error description available" +msgstr "Není k dispozici popis chyby" + +#: disk/disk.c:145 disk/disk.c:146 disk/disk.c:216 disk/disk.c:217 +#: disk/disk.c:257 disk/disk.c:280 +#, c-format +msgid "Media '%s'" +msgstr "Média „%s“" + +#: serial/unix.c:229 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Nelze zamknout zařízení „%s“" + +#: serial/unix.c:239 usbdiskdirect/linux.c:97 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Zařízení „%s“ je zamčeno od pid %d" + +#: serial/unix.c:242 usbdiskdirect/linux.c:100 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Zařízení „%s“ nemohlo být zamčeno (funkce dev_lock vrátila %d)" + +#: serial/unix.c:271 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Zařízení „%s“ nemohlo být odemčeno." + +#: serial/unix.c:283 usbdiskdirect/linux.c:129 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Zařízení „%s“ nemohlo být odemčeno, protože je zamčeno od pid %d." + +#: serial/unix.c:287 usbdiskdirect/linux.c:133 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Zařízení „%s“ nemohlo být odemčeno (funkce dev_unlock vrátila %d)" + +#: serial/unix.c:364 +#, c-format +msgid "Serial Port %i" +msgstr "Sériový port %i" + +#: serial/unix.c:460 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Nelze otevřít „%s“ (%s)." + +#: serial/unix.c:480 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Nelze zavřít „%s“ (%s)." + +#: serial/unix.c:537 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Nelze zapisovat na port (%s)" + +#: serial/unix.c:615 +msgid "Parity error." +msgstr "Chyba parity." + +#: serial/unix.c:619 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Neočekávaná sekvence odpovědi na paritu 0xff 0x%02x." + +#: serial/unix.c:662 +#, c-format +msgid "Unknown pin %i." +msgstr "Neznámý vývod %i." + +#: serial/unix.c:685 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Nelze získat úroveň vývodu %i (%s)." + +#: serial/unix.c:722 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Nelze nastavit úroveň vývodu %i na %i (%s)." + +#: serial/unix.c:749 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Nelze vyprázdnit „%s“ (%s)." + +#: serial/unix.c:863 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Nelze nastavit rychlost přenosu na %d" + +#: usbdiskdirect/linux.c:236 +msgid "USB Mass Storage direct IO" +msgstr "USB rozhraní typu „Mass Storage direct IO“" + +#: usbdiskdirect/linux.c:293 usbscsi/linux.c:277 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Nelze otevřít „%s“ (%m)." + +#: usbdiskdirect/linux.c:307 usbscsi/linux.c:306 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Nelze zavřít „%s“ (%m)." + +#: usbdiskdirect/linux.c:332 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Nelze se přesunout na pozici: %x na „%s“ (%m)." + +#: usbdiskdirect/linux.c:355 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Nelze zapisovat do „%s“ (%m)." + +#: usbdiskdirect/linux.c:377 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Nelze číst z „%s“ (%m)." + +#: usb/libusb.c:268 libusb1/libusb1.c:323 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Nelze otevřít zařízení USB (%s)." + +#: usb/libusb.c:278 +#, c-format +msgid "Device has driver '%s' attached." +msgstr "Zařízení má připojeno ovladač „%s“." + +#: usb/libusb.c:281 libusb1/libusb1.c:332 +msgid "Camera is already in use." +msgstr "Fotoaparát je již používán." + +#: usb/libusb.c:286 +#, c-format +msgid "Device has driver '%s' attached, detaching it now." +msgstr "Zařízení má připojeno ovladač „%s“, nyní se odpojuje." + +#: usb/libusb.c:289 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Nelze odpojit jaderný ovladač „%s“ zařízení fotoaparátu." + +#: usb/libusb.c:294 libusb1/libusb1.c:348 +msgid "Could not query kernel driver of device." +msgstr "Nelze se dotázat jaderného ovladače zařízení." + +#: usb/libusb.c:303 libusb1/libusb1.c:356 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Nelze přidělit rozhraní %d (%s). Zkontrolujte, že žádný jiný program (%s) nebo jaderný modul (např. %s) zařízení nepoužívá a že máte k zařízení přístup pro čtení a pro zápis." + +#: usb/libusb.c:315 libusb1/libusb1.c:367 +msgid "MacOS PTPCamera service" +msgstr "Služba MacOS PTPCamera" + +#: usb/libusb.c:317 libusb1/libusb1.c:369 +msgid "unknown libgphoto2 using program" +msgstr "neznámý program používaný libgphoto2" + +#: usb/libusb.c:335 libusb1/libusb1.c:387 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Nelze uvolnit rozhraní %d (%s)." + +#: usb/libusb.c:350 libusb1/libusb1.c:402 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Nelze resetovat port USB (%s)." + +#: usb/libusb.c:380 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Nelze zavřít port USB (%s)." + +#: usb/libusb.c:653 libusb1/libusb1.c:688 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Nelze provést nastavení %d/%d (%s)" + +#: usb/libusb.c:688 libusb1/libusb1.c:727 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Nelze provést změnu nastavení %d na %d (%s)" + +#: usb/libusb.c:781 libusb1/libusb1.c:905 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "Poskytnuté ID dodavatele nebo produktu (0x%x,0x%x) není platné." + +#: usb/libusb.c:817 libusb1/libusb1.c:944 +#, c-format +msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +msgstr "Zařízení USB (výrobce 0x%x, výrobek 0x%x) je zařízení typu „master storage“ a možná nebude s gphoto2 fungovat. Příručka: %s" + +#: usb/libusb.c:860 usb/libusb.c:955 libusb1/libusb1.c:873 +#: libusb1/libusb1.c:976 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Nelze najít zařízení USB (dodavatel 0x%x, produkt 0x%x). Zkontrolujte, že je toto zařízení připojeno k počítači." + +#: usb/libusb.c:1259 libusb1/libusb1.c:1274 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Nelze najít zařízení USB (třída 0x%x, podtřída 0x%x, protokol 0x%x). Zkontrolujte, že je toto zařízení připojeno k počítači." + +#: libusb1/libusb1.c:338 +#, c-format +msgid "Device has a kernel driver attached (%d), detaching it now." +msgstr "Zařízení má připojeno jaderný ovladač (%d), nyní se odpojuje." + +#: libusb1/libusb1.c:341 +msgid "Could not detach kernel driver of camera device." +msgstr "Nelze odpojit jaderný ovladač zařízení fotoaparátu." + +#: libusb1/libusb1.c:413 +msgid "Could not reattach kernel driver of camera device." +msgstr "Nelze odpojit jaderný ovladač zařízení fotoaparátu." + +#: usbscsi/linux.c:110 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Zařízení „%s“ je zamčeno jinou aplikací." + +#: usbscsi/linux.c:115 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Nelze zamknout „%s“ (%m)." + +#: usbscsi/linux.c:132 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Nelze odemknout „%s“ (%m)." + +#: usbscsi/linux.c:233 +msgid "USB Mass Storage raw SCSI" +msgstr "USB rozhraní typu „Mass Storage raw SCSI“" + +#: usbscsi/linux.c:351 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Nelze odeslat příkaz SCSI na: „%s“ (%m)." diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/da.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/da.po new file mode 100644 index 00000000..1d5413cb --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/da.po @@ -0,0 +1,365 @@ +# Danish translation for libgphoto2_port. +# This file is distributed under the same license as the libgphoto2 package. +# Copyright (C) 2016 Free Software Foundation, Inc. +# Mogens Jaeger , 2005, 2007, 2012, 2013, 2014. +# Joe Hansen , 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.10\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-02-22 21:02+0100\n" +"PO-Revision-Date: 2016-04-28 15:15+0100\n" +"Last-Translator: Joe Hansen \n" +"Language-Team: Danish \n" +"Language: da\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Almindelig port" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Ingen fejl" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Ikke-specificeret fejl" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "I/O problem" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Forkerte parametre" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Ikke understøttet proces" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Fast grænseværdi overskredet" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Tidsudløb ved læsning/skrivning til porten" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Seriel-port ikke understøttet" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "USB-port ikke understøttet" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Ukendt port" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Ikke mere hukommelse" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Fejl ved indlæsning af bibliotek" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Fejl ved initialisering af porten" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Fejl ved læsning fra porten" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Fejl ved skrivning til porten" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Fejl ved opdatering af portindstillinger" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Fejl ved indstilling af den serielle porthastighed" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Fejl ved nulstilling af en stop-tilstand på USB-porten" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Kunne ikke finde den efterspurgte enhed på USB-porten" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Kunne ikke kræve USB enheden" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Kunne ikke låse enheden" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "libhal fejl" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Ukendt fejl" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Processen '%s' er ikke understøttet af denne enhed" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "Porten er endnu ikke blevet initialiseret" + +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "lav" + +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "høj" + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "Ingen fejlbeskrivelse tilgængelig" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "Medie '%s'" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Kunne ikke låse enhed '%s'" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Enheden '%s' er låst af pid %d" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Enheden '%s' kunne ikke låses (dev_lock returnerede %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Enheden '%s' kunne ikke låses op." + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Enheden '%s' kunne ikke låses op da den er låst af pid %d." + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Enheden '%s' kunne ikke låses op (dev_unlock returnerede %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "Seriel-port %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "Enhed for serielport" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Åbning af '%s' (%s) fejlede." + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Kunne ikke lukke '%s' (%s)." + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Kunne ikke skrive til port (%s)" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "Paritetsfejl." + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Uventet paritetssvar-sekvens 0xff 0x%02x." + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "Ukendt pin %i." + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Kunne ikke hente niveau af pin %i (%s)." + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Kunne ikke sætte niveau af pin %i til %i (%s)." + +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Kunne ikke tømme '%s' (%s)." + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Kunne ikke sætte baudrate til %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "USB masselagerenhed direkte IO" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Åbning af '%s' (%m) fejlede." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Kunne ikke lukke '%s' (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Kunne ikke søge efter offset: %x på '%s' (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Kunne ikke skrive til '%s' (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Kunne ikke læse fra '%s' (%m)." + +#: usb/libusb.c:260 libusb1/libusb1.c:373 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Kunne ikke åbne USB enheden (%s)." + +#: usb/libusb.c:273 libusb1/libusb1.c:382 +msgid "Camera is already in use." +msgstr "Kameraet er allerede i brug." + +#: usb/libusb.c:281 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Kunne ikke frigøre kernedriver '%s' fra kameraenheden." + +#: usb/libusb.c:286 libusb1/libusb1.c:397 +msgid "Could not query kernel driver of device." +msgstr "Kunne ikke forespørge kernedriver fra enheden." + +#: usb/libusb.c:295 libusb1/libusb1.c:404 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Kunne ikke kræve grænseflade %d (%s). Sikr dig at ingen andre programmer (%s) eller kernemoduler (som f.eks. %s) bruger enheden, og at du har læse/skrive adgang til enheden." + +#: usb/libusb.c:307 libusb1/libusb1.c:415 +msgid "MacOS PTPCamera service" +msgstr "MacOS PTPCamera-tjeneste" + +#: usb/libusb.c:309 libusb1/libusb1.c:417 +msgid "unknown libgphoto2 using program" +msgstr "andet ukendt program bruger enheden" + +#: usb/libusb.c:326 libusb1/libusb1.c:484 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Kunne ikke frigøre grænseflade %d (%s)." + +#: usb/libusb.c:341 libusb1/libusb1.c:498 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Kunne ikke nulstille USB-port (%s)." + +#: usb/libusb.c:371 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Kunne ikke lukke USB-port (%s)." + +#: usb/libusb.c:632 libusb1/libusb1.c:839 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Kunne ikke sætte konfiguration %d/%d (%s)" + +#: usb/libusb.c:663 libusb1/libusb1.c:868 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Kunne ikke sætte alt-indstillinger %d til /%d (%s)" + +#: usb/libusb.c:752 libusb1/libusb1.c:1033 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "Det leverede fremstiller- eller produkt-id (0x%x,0x%x) er ikke gyldigt." + +#: usb/libusb.c:823 usb/libusb.c:909 libusb1/libusb1.c:1002 +#: libusb1/libusb1.c:1094 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Kunne ikke finde USB-enheden (fremstiller 0x%x, produkt 0x%x). Sikr dig at enheden er tilsluttet computeren." + +#: usb/libusb.c:1202 libusb1/libusb1.c:1383 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Kunne ikke finde USB-enheden (class 0x%x, subclass 0x%x, protokol0x%x). Sikr dig at enheden er tilsluttet computeren." + +#: libusb1/libusb1.c:391 +msgid "Could not detach kernel driver of camera device." +msgstr "Kunne ikke frigøre kernedriver fra kameraenheden." + +#: libusb1/libusb1.c:507 +msgid "Could not reattach kernel driver of camera device." +msgstr "Kunne ikke frigøre kernedriver fra kameraenheden." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Enheden '%s' er låst af en anden app." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Låsning af '%s' (%m) fejlede." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Oplåsning af '%s' (%m) fejlede." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "USB masselagerenhed rå SCSI" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Kunne ikke sende SCSI kommando til: '%s' (%m)." diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/de.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/de.po new file mode 100644 index 00000000..0727b7bc --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/de.po @@ -0,0 +1,562 @@ +# translation of de.po to +# German Translation. +# Copyright © 2000-2002 Scott Fritzinger et al. +# +# [Please leave these here: öäüßÖÄÜ] +# Colin Marquardt , 2001, 2002. +# Marcus Meissner , 2003, 2005, 2013 +# +msgid "" +msgstr "" +"Project-Id-Version: de\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2019-01-13 21:41+0100\n" +"PO-Revision-Date: 2007-05-10 11:07+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:411 +msgid "Generic Port" +msgstr "Generischer Port" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Kein Fehler" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Unspezifizierter Fehler" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "I/O-Problem" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Falsche Parameter" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Nicht unterstützte Funktion" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Festes Limit überschritten." + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Zeitüberschreitung beim Lesen oder Schreiben des Ports" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Serieller Port nicht unterstützt" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "USB-Port nicht unterstützt" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Unbekannter Port" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Speicher voll" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Fehler beim Laden einer Bibliothek" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Fehler beim Initialisieren des Ports" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Fehler beim Lesen des Ports" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Fehler beim Schreiben des Ports" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Fehler beim Aktualisieren der Port-Einstellungen" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Fehler beim Setzen der Port-Geschwindigkeit" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Fehler beim Löschen einer »halt condition« auf dem USB-Port" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Konnte das angeforderte Gerät nicht am USB-Port finden" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Konnte das USB-Gerät nicht beanspruchen" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Konnte das Gerät nicht alleinig reservieren" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "Fehler in libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Unbekannter Fehler" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Die Funktion »%s« wird von diesem Gerät nicht unterstützt." + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "Der Port wurde noch nicht initialisiert." + +#: libgphoto2_port/gphoto2-port.c:686 +msgid "low" +msgstr "niedrig" + +#: libgphoto2_port/gphoto2-port.c:687 +msgid "high" +msgstr "hoch" + +#: libgphoto2_port/gphoto2-port.c:1215 +msgid "No error description available" +msgstr "Keine Fehlerbeschreibung verfügbar." + +#: disk/disk.c:149 disk/disk.c:150 disk/disk.c:228 disk/disk.c:229 +#: disk/disk.c:269 disk/disk.c:292 +#, c-format +msgid "Media '%s'" +msgstr "Medium »%s«" + +#: serial/unix.c:230 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Konnte Gerät »%s« nicht reservieren" + +#: serial/unix.c:240 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Gerät »%s« ist von PID %d reserviert" + +#: serial/unix.c:243 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Gerät »%s« konnte nicht reserviert werden (dev_lock lieferte %d)" + +#: serial/unix.c:272 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Reservierung von Gerät »%s« konnte nicht freigegeben werden" + +#: serial/unix.c:284 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "" +"Reservierung von Gerät »%s« konnte nicht freigegeben werden, da es von PID " +"%d reserviert ist." + +#: serial/unix.c:288 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "" +"Reservierung von Gerät »%s« konnte nicht freigegeben werden (dev_unlock " +"lieferte %d)" + +#: serial/unix.c:346 +#, c-format +msgid "Serial Port %i" +msgstr "Serieller Port %i" + +#: serial/unix.c:359 +msgid "Serial Port Device" +msgstr "Serieller Port Device" + +#: serial/unix.c:441 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Konnte »%s« nicht öffnen (%s)." + +#: serial/unix.c:461 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Konnte »%s« nicht schließen (%s)." + +#: serial/unix.c:517 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Konnte nicht auf Port schreiben (%s)" + +#: serial/unix.c:594 +msgid "Parity error." +msgstr "Paritätsfehler." + +#: serial/unix.c:598 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Unerwartete Paritätsantwort, Sequenz 0xff 0x%02x." + +#: serial/unix.c:641 +#, c-format +msgid "Unknown pin %i." +msgstr "Unbekannter Pin %i." + +#: serial/unix.c:663 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Konnte Level von Pin %i nicht holen (%s)." + +#: serial/unix.c:699 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Konnte Level von Pin %i nicht auf %i setzen (%s)." + +#: serial/unix.c:726 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Konnte »%s« nicht leeren (%s)." + +#: serial/unix.c:838 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Konnte Baudrate nicht auf %d setzen" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "USB Mass Storage direkter IO" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Konnte »%s« nicht öffnen (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Konnte »%s« nicht schließen (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Konnte nicht auf Offset %x auf »%s« vorspulen (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Konnte nicht auf »%s« schreiben (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Konnte nicht von »%s« lesen (%m)." + +#: usb/libusb.c:264 libusb1/libusb1.c:395 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Konnte USB-Gerät nicht öffnen (%s)." + +#: usb/libusb.c:277 libusb1/libusb1.c:404 +msgid "Camera is already in use." +msgstr "Kamera ist bereits in Benutzung." + +#: usb/libusb.c:285 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Konnte Kerneltreiber '%s' nicht vom Kamera Device lösen." + +#: usb/libusb.c:290 libusb1/libusb1.c:419 +msgid "Could not query kernel driver of device." +msgstr "Konnte den Kerneltreiber des Gerätes nicht abfragen." + +#: usb/libusb.c:299 libusb1/libusb1.c:426 +#, c-format +msgid "" +"Could not claim interface %d (%s). Make sure no other program (%s) or kernel " +"module (such as %s) is using the device and you have read/write access to " +"the device." +msgstr "" +"Konnte Schnittstelle %d nicht reservieren (%s). Stellen Sie sicher, dass " +"kein\n" +"anderes Programm (%s) oder Kernelmodul (z.B. %s) das Gerät verwendet und " +"Sie \n" +"Lese- und Schreibrechte für das Gerät haben." + +#: usb/libusb.c:311 libusb1/libusb1.c:437 +msgid "MacOS PTPCamera service" +msgstr "MacOS PTPCamera Dienst" + +#: usb/libusb.c:313 libusb1/libusb1.c:439 +msgid "unknown libgphoto2 using program" +msgstr "unbekanntes anderes libgphoto2 Programm" + +#: usb/libusb.c:330 libusb1/libusb1.c:508 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Konnte Schnittstelle %d nicht freigeben (%s)." + +#: usb/libusb.c:345 libusb1/libusb1.c:522 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Konnte USB-Port nicht resetten (%s)." + +#: usb/libusb.c:375 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Konnte USB-Port nicht schließen (%s)." + +#: usb/libusb.c:637 libusb1/libusb1.c:965 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Konnte Konfiguration %d/%d nicht setzen (%s)" + +#: usb/libusb.c:668 libusb1/libusb1.c:994 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Konnte Alternativ-Setting %d/%d nicht setzen (%s)" + +#: usb/libusb.c:757 libusb1/libusb1.c:1159 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "" +"Die angegebene Hersteller- oder Produkt-ID (0x%x,0x%x) ist nicht gültig." + +#: usb/libusb.c:828 usb/libusb.c:914 libusb1/libusb1.c:1128 +#: libusb1/libusb1.c:1220 +#, c-format +msgid "" +"Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device " +"is connected to the computer." +msgstr "" +"Konnte USB-Gerät (Hersteller 0x%x, Produkt 0x%x) nicht finden. \n" +"Stellen Sie sicher, dass das Gerät ordnungsgemäß an den Computer " +"angeschlossen ist." + +#: usb/libusb.c:1207 libusb1/libusb1.c:1509 +#, c-format +msgid "" +"Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make " +"sure this device is connected to the computer." +msgstr "" +"Konnte USB-Gerät (Klasse 0x%x, Subklasse 0x%x, Protokoll 0x%x) nicht " +"finden. \n" +"Stellen Sie sicher, dass das Gerät ordnungsgemäß an den Computer " +"angeschlossen ist." + +#: libusb1/libusb1.c:413 +msgid "Could not detach kernel driver of camera device." +msgstr "Konnte Kerneltreiber nicht vom Kamera Device lösen." + +#: libusb1/libusb1.c:531 +msgid "Could not reattach kernel driver of camera device." +msgstr "Konnte Kerneltreiber nicht an Kamera Device reattachen." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Gerät »%s« ist von einer anderen app reserviert." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Konnte »%s« nicht reservieren (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Konnte »%s« nicht freigeben (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "USB Mass Storage raw SCSI" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Konnte SCSI Kommando nicht an »%s« senden (%m)" + +#~ msgid "Called for filename '%s'." +#~ msgstr "Aufgerufen für »%s«." + +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "Konnte »%s« nicht laden (%s)." + +#~ msgid "Could not find some functions in '%s': '%s'." +#~ msgstr "Konnte einige Funktionen nicht in '%s' finden: '%s'." + +#~ msgid "'%s' already loaded" +#~ msgstr "'%s' bereits geladen" + +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "Konnte Port Treiberliste»%s« nicht laden." + +#~ msgid "Loaded '%s' ('%s') from '%s'." +#~ msgstr "Habe '%s' ('%s') von '%s' geladen." + +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "Benutze ltdl um I/O Treiber von '%s' zu laden..." + +#~ msgid "Counting entries (%i available)..." +#~ msgid_plural "Counting entries (%i available)..." +#~ msgstr[0] "Zähle Eintrage (%i vorhanden)..." +#~ msgstr[1] "Zähle Eintrage (%i vorhanden)..." + +#~ msgid "%i regular entry available." +#~ msgid_plural "%i regular entries available." +#~ msgstr[0] "%i regulärer Eintrag verfügbar." +#~ msgstr[1] "%i reguläre Einträge verfügbar." + +#~ msgid "Looking for path '%s' (%i entry available)..." +#~ msgid_plural "Looking for path '%s' (%i entries available)..." +#~ msgstr[0] "Suche Pfad '%s' (%i Eintrag vorhanden)..." +#~ msgstr[1] "Suche Pfad '%s' (%i Einträge vorhanden)..." + +#~ msgid "Starting regex search for '%s'..." +#~ msgstr "Starte Suche mit regulärem Ausdruck '%s'..." + +#~ msgid "Trying '%s'..." +#~ msgstr "Versuche '%s'..." + +#~ msgid "regcomp failed" +#~ msgstr "regcomp fehlgeschlagen" + +#~ msgid "re_match failed (%i)" +#~ msgstr "re_match fehlgeschlagen (%i)" + +#~ msgid "regexec failed" +#~ msgstr "regexec fehlgeschlagen" + +#~ msgid "Looking up entry '%s'..." +#~ msgstr "Suche Eintrag '%s'..." + +#~ msgid "Getting info of entry %i (%i available)..." +#~ msgid_plural "Getting info of entry %i (%i available)..." +#~ msgstr[0] "Hole Informationen von Eintrag %i (%i vorhanden)..." +#~ msgstr[1] "Hole Informationen von Eintrag %i (%i vorhanden)..." + +#~ msgid "Creating new device..." +#~ msgstr "Lege neues Gerät an..." + +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "Konnte »%s« nicht laden (%s)." + +#~ msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +#~ msgstr "Konnte 'gp_port_library_operations' in '%s' nicht finden ('%s')" + +#~ msgid "Opening %s port..." +#~ msgstr "Öffne Port %s..." + +#~ msgid "Closing port..." +#~ msgstr "Schließe Port..." + +#~ msgid "Resetting port..." +#~ msgstr "Resette Port..." + +#~ msgid "Freeing port..." +#~ msgstr "Lösche Port..." + +#~ msgid "Writing %i=0x%x byte(s) to port..." +#~ msgstr "Schreibe %i=0x%x Byte(s) auf den Port..." + +#~ msgid "Could only write %i out of %i byte" +#~ msgid_plural "Could only write %i out of %i bytes" +#~ msgstr[0] "Konnte nur %i von %i Byte schreiben" +#~ msgstr[1] "Konnte nur %i von %i Bytes schreiben" + +#~ msgid "Reading %i=0x%x byte from port..." +#~ msgid_plural "Reading %i=0x%x bytes from port..." +#~ msgstr[0] "Lese %i=0x%x byte vom Port..." +#~ msgstr[1] "Lese %i=0x%x bytes vom Port..." + +#~ msgid "Could only read %i out of %i byte" +#~ msgid_plural "Could only read %i out of %i byte(s)" +#~ msgstr[0] "Konnte nur %i von %i Byte lesen" +#~ msgstr[1] "Konnte nur %i von %i Bytes lesen" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint..." +#~ msgstr[0] "Lese %i=0x%x Byte vom Interrupt Endpoint" +#~ msgstr[1] "Lese %i=0x%x Bytes vom Interrupt Endpoint" + +#~ msgid "Could only read %i out of %i byte(s)" +#~ msgstr "Konnte nur %i von %i Byte(s) lesen" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint (fast)..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +#~ msgstr[0] "Lese %i=0x%x Byte vom Interrupt Endpoint (schnell)..." +#~ msgstr[1] "Lese %i=0x%x Bytes vom Interrupt Endpoint (schnell)..." + +#~ msgid "Setting timeout to %i millisecond(s)..." +#~ msgstr "Setze Timeout auf %i Millisekunden..." + +#~ msgid "Getting timeout..." +#~ msgstr "Hole Timeout..." + +#~ msgid "Current timeout: %i milliseconds" +#~ msgstr "Derzeitiger Timeout: %i Millisekunden" + +#~ msgid "Setting settings..." +#~ msgstr "Setze Einstellungen..." + +#~ msgid "Getting level of pin %i..." +#~ msgstr "Hole Level von Pin %i..." + +#~ msgid "Level of pin %i: %i" +#~ msgstr "Level von Pin %i: %i" + +#~ msgid "Setting pin %i (%s: '%s') to '%s'..." +#~ msgstr "Setze Pin %i (%s: '%s') auf '%s'..." + +#~ msgid "Sending break (%i milliseconds)..." +#~ msgstr "Sende Break (%i Millisekunden)..." + +#~ msgid "Flushing port..." +#~ msgstr "Leere Port..." + +#~ msgid "Clear halt..." +#~ msgstr "Lösche Halt..." + +#~ msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "" +#~ "Schreibe Nachricht (request=0x%x, Wert=0x%x, Index=0x%x, Größe=%i=0x%x)..." + +#~ msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "" +#~ "Lese Nachricht (request=0x%x, Wert=0x%x, Index=0x%x, Größe=%i=0x%x)..." + +#~ msgid "Device has driver '%s' attached." +#~ msgstr "Gerät hat Kerneltreiber »%s« zugewiesen." + +#~ msgid "Device has driver '%s' attached, detaching it now." +#~ msgstr "Gerät hat Kerneltreiber '%s' zugewiesen, löse Treiber jetzt." + +#~ msgid "" +#~ "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and " +#~ "might not function with gphoto2. Reference: %s" +#~ msgstr "" +#~ "Das USB-Gerät (Hersteller 0x%x, Produkt 0x%x) ist ein USB Mass Storage " +#~ "Gerät und wird von System direkt unterstützt (und deshalb nicht von " +#~ "gphoto2). Lesen Sie hierzu bitte %s" + +#~ msgid "Device has a kernel driver attached (%d), detaching it now." +#~ msgstr "Gerät hat Kerneltreiber »%d« zugewiesen, löse Treiber jetzt." + +#~ msgid "msg_read" +#~ msgstr "msg_read" + +#~ msgid "(unknown)" +#~ msgstr "(unbekannt)" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/es.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/es.po new file mode 100644 index 00000000..6eae3460 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/es.po @@ -0,0 +1,459 @@ +# Spanish Translation for libgphoto2_port +# Copyright (C) 2018, 2019 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# Fabian Mandelbaum , 2002. +# Francisco Javier Serrador , 2018. +# Antonio Ceballos Roa , 2019. +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.23\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2019-05-04 15:58+0200\n" +"PO-Revision-Date: 2019-06-04 01:43+0200\n" +"Last-Translator: Antonio Ceballos Roa \n" +"Language-Team: Spanish \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.0.4\n" +"X-Poedit-SourceCharset: UTF-8\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:411 +msgid "Generic Port" +msgstr "Puerto Genérico" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Sin error" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Error no especificado" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Problema de E/S" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Parámetros incorrectos" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Operación no soportada" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Límite fijado excedido" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Tiempo de espera agotado leyendo de, o escribiendo en, el puerto" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Puerto serie no soportado" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "Puerto USB no soportado" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Puerto desconocido" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Sin memoria" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Error cargando una biblioteca" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Error inicializando el puerto" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Error leyendo desde el puerto" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Error escribiendo en el puerto" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Error actualizando las configuraciones del puerto" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Error configurando la velocidad del puerto serie" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Error borrando una condición de parada en el puerto USB" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "No se pudo encontrar el dispositivo pedido en el puerto USB" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "No se pudo reclamar el dispositivo USB" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "No se pudo bloquear el dispositivo" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "error libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Error desconocido" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Esta operación '%s' no está soportada por este dispositivo" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "Todavía no se ha inicializado el puerto" + +#: libgphoto2_port/gphoto2-port.c:686 +msgid "low" +msgstr "bajo" + +#: libgphoto2_port/gphoto2-port.c:687 +msgid "high" +msgstr "alto" + +#: libgphoto2_port/gphoto2-port.c:1215 +msgid "No error description available" +msgstr "No está disponible la descripción del error" + +#: disk/disk.c:149 disk/disk.c:150 disk/disk.c:228 disk/disk.c:229 +#: disk/disk.c:269 disk/disk.c:292 +#, c-format +msgid "Media '%s'" +msgstr "Medio «%s»" + +#: serial/unix.c:230 +#, c-format +msgid "Could not lock device '%s'" +msgstr "No se pudo bloquear el dispositivo '%s'" + +#: serial/unix.c:240 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "El dispositivo '%s' está bloqueado por el pid %d" + +#: serial/unix.c:243 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "No se pudo bloquear el dispositivo '%s' (dev_lock devolvió %d)" + +#: serial/unix.c:272 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "No se pudo desbloquear el dispositivo '%s'." + +#: serial/unix.c:284 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "No se pudo desbloquear el dispositivo '%s' ya que está trabado por el pid %d." + +#: serial/unix.c:288 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "No se pudo desbloquear el dispositivo '%s' (dev_unlock devolvió %d)" + +#: serial/unix.c:346 +#, c-format +msgid "Serial Port %i" +msgstr "Puerto serie %i" + +#: serial/unix.c:359 +msgid "Serial Port Device" +msgstr "Dispositivo de Puerto Serie" + +#: serial/unix.c:441 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Fallo al abrir '%s' (%s)." + +#: serial/unix.c:461 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "No se pudo cerrar '%s' (%s)." + +#: serial/unix.c:517 +#, c-format +msgid "Could not write to port (%s)" +msgstr "No se pudo escribir al puerto (%s)" + +#: serial/unix.c:594 +msgid "Parity error." +msgstr "Error de paridad." + +#: serial/unix.c:598 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Secuencia de respuesta de paridad 0xff, 0x%02x no esperada." + +#: serial/unix.c:641 +#, c-format +msgid "Unknown pin %i." +msgstr "Pin %i desconocido." + +#: serial/unix.c:663 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "No se pudo obtener el nivel de pin %i (%s)." + +#: serial/unix.c:699 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "No se pudo establecer el nivel de pin %i como %i (%s)." + +#: serial/unix.c:726 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "No se pudo vaciar '%s' (%s)." + +#: serial/unix.c:838 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "No se pudo configurar la tasa de baudio en %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "Almacenamiento Masivo USB directo E/S" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "No se pudo abrir '%s' (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "No se pudo cerrar '%s' (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "No se pudo continuar al desplazamiento: %x en '%s' (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "No se pudo escribir al «%s» (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "No se pudo leer '%s' (%m)." + +#: usb/libusb.c:264 libusb1/libusb1.c:401 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "No se pudo abrir el dispositivo USB (%s)." + +#: usb/libusb.c:277 libusb1/libusb1.c:410 +msgid "Camera is already in use." +msgstr "La cámara está ya en uso." + +#: usb/libusb.c:285 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "No se pudo desconectar el controlador «%s» del dispositivo de cámara." + +#: usb/libusb.c:290 libusb1/libusb1.c:425 +msgid "Could not query kernel driver of device." +msgstr "No se pudo consultar el controlador del dispositivo." + +#: usb/libusb.c:299 libusb1/libusb1.c:432 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "No se pudo reclamar la interfaz %d (%s). Debe asegurarse de que ningún otro programa (%s) o módulo del núcleo (como %s) esté utilizando el dispositivo y de que usted tenga acceso de lectura/escritura al dispositivo." + +#: usb/libusb.c:311 libusb1/libusb1.c:443 +msgid "MacOS PTPCamera service" +msgstr "Servicio PTPCamara de MacOS" + +#: usb/libusb.c:313 libusb1/libusb1.c:445 +msgid "unknown libgphoto2 using program" +msgstr "programa usando libgphoto2 desconocido" + +#: usb/libusb.c:330 libusb1/libusb1.c:514 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "No se pudo liberar la interfaz %d (%s)." + +#: usb/libusb.c:345 libusb1/libusb1.c:528 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "No se pudo reiniciar el puerto USB (%s)." + +#: usb/libusb.c:375 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "No se pudo cerrar el puerto USB (%s)." + +#: usb/libusb.c:637 libusb1/libusb1.c:971 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "No se pudo establecer la configuración %d/%d (%s)" + +#: usb/libusb.c:668 libusb1/libusb1.c:1000 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "No se pudo establecer configuración alternativa desde %d a %d (%s)" + +#: usb/libusb.c:757 libusb1/libusb1.c:1165 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "El ID de fabricante o de producto que se ha especificado (0x%x, 0x%x) no es válido." + +#: usb/libusb.c:828 usb/libusb.c:914 libusb1/libusb1.c:1134 +#: libusb1/libusb1.c:1226 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "No se pudo encontrar el dispositivo USB (fabricante 0x%x, producto 0x%x). Debe asegurarse de que este dispositivo esté conectado a la computadora." + +#: usb/libusb.c:1207 libusb1/libusb1.c:1515 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "No se pudo encontrar el dispositivo USB (clase 0x%x, subclase 0x%x, protocolo 0x%x). Debe asegurarse de que este dispositivo esté conectado a la computadora." + +#: libusb1/libusb1.c:419 +msgid "Could not detach kernel driver of camera device." +msgstr "No se pudo desconectar el controlador del dispositivo de cámara." + +#: libusb1/libusb1.c:537 +msgid "Could not reattach kernel driver of camera device." +msgstr "No se pudo volver a conectar controlador del dispositivo de cámara." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "El dispositivo '%s' está trabado por otra app." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Fallo al bloquear '%s' (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Fallo al desbloquear '%s' (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "Almacenamiento USB Masivo Crudo SCSI" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "No se pudo enviar orden scsi a: '%s' (%m)." + +#, fuzzy +#~ msgid "Called for filename '%s'." +#~ msgstr "No se pudo abrir '%s' (%m)." + +#, fuzzy +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "No se pudo cerrar '%s' (%m)." + +#, fuzzy +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "No se pudo trabar el dispositivo '%s'" + +#, fuzzy +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "No se pudo trabar el dispositivo '%s'" + +#~ msgid "Could not load any io-library because '%s' could not be opened (%m)" +#~ msgstr "No se pudo cargar biblioteca de entrada/salida alguna porque '%s' no se pudo abrir (%m)" + +#, fuzzy +#~ msgid "Could not find some functions in '%s' (%s)" +#~ msgstr "No se pudo cerrar '%s' (%m)." + +#, fuzzy +#~ msgid "Could not load list (%s)" +#~ msgstr "No se pudo cerrar '%s' (%m)." + +#, fuzzy +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "No se pudo cerrar '%s' (%m)." + +#, fuzzy +#~ msgid "Could not load '%s' ('%s')" +#~ msgstr "No se pudo cerrar '%s' (%m)." + +#, fuzzy +#~ msgid "Could only write %i out of %i byte(s)" +#~ msgstr "No se pudo escribir en el puerto (%m)" + +#, fuzzy +#~ msgid "Getting level of pin %i..." +#~ msgstr "No se pudo obtener el nivel de pin %i (%m)." + +#, fuzzy +#~ msgid "Clear halt..." +#~ msgstr "clear_halt" + +#~ msgid "msg_read" +#~ msgstr "msg_read" + +#, fuzzy +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "No se pudo encontrar el dispositivo USB (fabricante 0x%x, producto 0x%x). Debe asegurarse que este dispositivo está conectado a la computadora." + +#~ msgid "open" +#~ msgstr "abrir" + +#~ msgid "close" +#~ msgstr "cerrar" + +#~ msgid "write" +#~ msgstr "escribir" + +#~ msgid "read" +#~ msgstr "leer" + +#~ msgid "check_int" +#~ msgstr "check_int" + +#~ msgid "update" +#~ msgstr "actualizar" + +#~ msgid "get_pin" +#~ msgstr "get_pin" + +#~ msgid "set_pin" +#~ msgstr "set_pin" + +#~ msgid "send_break" +#~ msgstr "send_break" + +#~ msgid "flush" +#~ msgstr "vaciar" + +#~ msgid "find_device" +#~ msgstr "find_device" + +#~ msgid "find_device_by_class" +#~ msgstr "find_device_by_class" + +#~ msgid "msg_write" +#~ msgstr "msg_write" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/eu.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/eu.po new file mode 100644 index 00000000..fe6199f2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/eu.po @@ -0,0 +1,570 @@ +# translation of libgphoto2_port.po to Basque +# Basque Translation. +# Copyright © 2005 Iñaki Larrañaga. +# Iñaki Larrañaga , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: eu\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2008-03-28 20:37+0100\n" +"PO-Revision-Date: 2005-05-14 13:32+0200\n" +"Last-Translator: Iñaki Larrañaga \n" +"Language-Team: \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.9.1\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:211 +#, fuzzy, c-format +msgid "Called for filename '%s'." +msgstr "Huts egin du '%s' irekitzean (%m)." + +#: libgphoto2_port/gphoto2-port-info-list.c:216 +#, fuzzy, c-format +msgid "Could not load '%s': '%s'." +msgstr "Ezin izan da '%s' itxi (%m)." + +#: libgphoto2_port/gphoto2-port-info-list.c:224 +#, fuzzy, c-format +msgid "Could not find some functions in '%s': '%s'." +msgstr "Ezin izan da '%s' hustu (%m)." + +#: libgphoto2_port/gphoto2-port-info-list.c:236 +#, c-format +msgid "'%s' already loaded" +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:245 +#, fuzzy, c-format +msgid "Could not load port driver list: '%s'." +msgstr "Ezin izan da '%s' gailua blokeatu" + +#: libgphoto2_port/gphoto2-port-info-list.c:252 +#, c-format +msgid "Loaded '%s' ('%s') from '%s'." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:284 +#, c-format +msgid "Using ltdl to load io-drivers from '%s'..." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:310 +#, c-format +msgid "Counting entries (%i available)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:319 +#, c-format +msgid "%i regular entries available." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:349 +#, c-format +msgid "Looking for path '%s' (%i entries available)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:361 +#, c-format +msgid "Starting regex search for '%s'..." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:369 +#, c-format +msgid "Trying '%s'..." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:390 +msgid "regcomp failed" +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:401 +#, c-format +msgid "re_match failed (%i)" +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "regexec failed" +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:415 +msgid "Generic Port" +msgstr "Ataka generikoa" + +#: libgphoto2_port/gphoto2-port-info-list.c:439 +#, c-format +msgid "Looking up entry '%s'..." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:469 +#, c-format +msgid "Getting info of entry %i (%i available)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Errorerik gabe" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Zehaztu gabeko errorea" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "S/I-ko arazoa" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Parametro okerrak" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Eragiketa ez dago onartuta" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Denbora-muga irungitu da atakan irakurtzean/idaztean" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Serieko ataka ez dago onartuta" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "USB ataka ez dago onartuta" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Ataka ezezaguna" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Memoriarik gabe" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Errorea liburutegia kargatzean" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Errorea ataka hasieratzean" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Errorea atakatik irakurtzean" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Errorea atakan idaztean" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Errorea atakako konfigurazioa eguneratzean" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Errorea serieko atakaren abiadura ezartzean" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Errorea USB atakako itzaltze-baldintza ezabatzean" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Ezin izan da eskatutako gailua USB atakan aurkitu" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Ezin izan da USB gailua aldarrikatu" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Ezin izan da gailua blokeatu" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Errore ezezaguna" + +#: libgphoto2_port/gphoto2-port.c:55 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Gailu honek ez du '%s' eragiketa onartzen" + +#: libgphoto2_port/gphoto2-port.c:56 +msgid "The port has not yet been initialized" +msgstr "Ez da ataka hasieratu oraindik" + +#: libgphoto2_port/gphoto2-port.c:87 +msgid "Creating new device..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:165 +#, fuzzy, c-format +msgid "Could not load '%s' ('%s')." +msgstr "Ezin izan da '%s' itxi (%m)." + +#: libgphoto2_port/gphoto2-port.c:175 +#, c-format +msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:255 +#, c-format +msgid "Opening %s port..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:277 +msgid "Closing port..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:299 +msgid "Freeing port..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:346 +#, c-format +msgid "Writing %i=0x%x byte(s) to port..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:359 +#, fuzzy, c-format +msgid "Could only write %i out of %i byte(s)" +msgstr "Ezin izan da atakan idatzi (%m)" + +#: libgphoto2_port/gphoto2-port.c:382 +#, c-format +msgid "Reading %i=0x%x bytes from port..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:393 libgphoto2_port/gphoto2-port.c:430 +#: libgphoto2_port/gphoto2-port.c:470 libgphoto2_port/gphoto2-port.c:895 +#, c-format +msgid "Could only read %i out of %i byte(s)" +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:419 +#, c-format +msgid "Reading %i=0x%x bytes from interrupt endpoint..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:480 +#, c-format +msgid "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:505 +#, c-format +msgid "Setting timeout to %i millisecond(s)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:541 +msgid "Getting timeout..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:545 +#, c-format +msgid "Current timeout: %i milliseconds" +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:567 +msgid "Setting settings..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:628 +#, fuzzy, c-format +msgid "Getting level of pin %i..." +msgstr "Ezin izan da %i pin-aren maila lortu (%m)." + +#: libgphoto2_port/gphoto2-port.c:637 +#, c-format +msgid "Level of pin %i: %i" +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:663 +msgid "low" +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:664 +msgid "high" +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:690 +#, c-format +msgid "Setting pin %i (%s: '%s') to '%s'..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:717 +#, c-format +msgid "Sending break (%i milliseconds)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:743 +msgid "Flushing port..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:817 +#, fuzzy +msgid "Clear halt..." +msgstr "clear_halt" + +#: libgphoto2_port/gphoto2-port.c:848 +#, c-format +msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:883 +#, c-format +msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:890 +msgid "msg_read" +msgstr "msg_read" + +#: libgphoto2_port/gphoto2-port.c:1117 +msgid "No error description available" +msgstr "Errorearen azalpena ez dago eskuragarri" + +#: serial/unix.c:233 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Ezin izan da '%s' gailua blokeatu" + +#: serial/unix.c:243 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "'%s' gailua %d pid-ek blokeatuta dauka" + +#: serial/unix.c:246 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Ezin izan da '%s' gailua blokeatu (dev_lock-ek %d itzuli du)" + +#: serial/unix.c:280 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Ezin izan da '%s' gailua desblokeatu." + +#: serial/unix.c:292 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Ezin izan da '%s' gailua desblokeatu, %d pid-ak blokeatuta baitauka." + +#: serial/unix.c:296 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Ezin izan da '%s' desblokeatu (dev_unlock-ek %d itzuli du)" + +#: serial/unix.c:374 +#, c-format +msgid "Serial Port %i" +msgstr "Serieko ataka: %i" + +#: serial/unix.c:465 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Huts egin du '%s' irekitzean (%m)." + +#: serial/unix.c:483 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Ezin izan da '%s' itxi (%m)." + +#: serial/unix.c:537 +#, c-format +msgid "Could not write to port (%m)" +msgstr "Ezin izan da atakan idatzi (%m)" + +#: serial/unix.c:614 +msgid "Parity error." +msgstr "Paritate-errorea." + +#: serial/unix.c:618 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Ustegabeko 0xff 0x%02x paritate-erantzuna sekuentzia." + +#: serial/unix.c:661 +#, c-format +msgid "Unknown pin %i." +msgstr "%i PIN ezezaguna." + +#: serial/unix.c:683 +#, c-format +msgid "Could not get level of pin %i (%m)." +msgstr "Ezin izan da %i pin-aren maila lortu (%m)." + +#: serial/unix.c:718 +#, c-format +msgid "Could not set level of pin %i to %i (%m)." +msgstr "Ezin izan da %i pin-aren maila %i gisa ezarri (%m)." + +#: serial/unix.c:743 +#, c-format +msgid "Could not flush '%s' (%m)." +msgstr "Ezin izan da '%s' hustu (%m)." + +#: serial/unix.c:856 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Ezin izan da %d(r)en baudio-tasa ezarri" + +#: usb/libusb.c:240 +#, c-format +msgid "Could not open USB device (%m)." +msgstr "Ezin izan da USB gailua ireki (%m)." + +#: usb/libusb.c:250 +msgid "Camera is already in use." +msgstr "Kamera jadanik erabiltzen ari da" + +#: usb/libusb.c:255 +#, c-format +msgid "Device has driver '%s' attached, detaching it now." +msgstr "Gailuak '%s' kontrolatzailea erantsita du, askatu orain." + +#: usb/libusb.c:258 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Ezin izan da kamera gailuaren kerneleko '%s' kontrolatzailea askatu" + +#: usb/libusb.c:261 +msgid "Could not query kernel driver of device." +msgstr "Ezin izan da gailuaren kontrolatzailea kernelari eskatu" + +#: usb/libusb.c:269 +#, c-format +msgid "" +"Could not claim interface %d (%m). Make sure no other program or kernel " +"module (such as %s) is using the device and you have read/write access to " +"the device." +msgstr "" +"Ezin izan da %d interfazea aldarrikatu (%m). Ziurta zaitez beste programa " +"batek edo kerneleko modulo batek (%s bezalakoak) gailua erabiltzen ari ez " +"dela, eta gailuan irakurtzeko/idazteko baimenak dituzula." + +#: usb/libusb.c:287 +#, c-format +msgid "Could not release interface %d (%m)." +msgstr "Ezin izan da %d interfazea askatu (%m)." + +#: usb/libusb.c:300 +#, fuzzy, c-format +msgid "Could not reset USB port (%m)." +msgstr "Ezin izan da USB ataka itxi (%m)." + +#: usb/libusb.c:306 +#, c-format +msgid "Could not close USB port (%m)." +msgstr "Ezin izan da USB ataka itxi (%m)." + +#: usb/libusb.c:555 +#, c-format +msgid "Could not set config %d/%d (%m)" +msgstr "Ezin izan da %d/%d konfigurazioa ezarri (%m)." + +#: usb/libusb.c:588 +#, fuzzy, c-format +msgid "Could not set altsetting from %d to %d (%m)" +msgstr "Ezin izan da %d/%d aukerazko konfigurazioa ezarri (%m)" + +#: usb/libusb.c:680 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "" +"Zehaztutako hornitzailearen edo produktuaren IDa (0x%x,0x%x) ez da baliozkoa." + +#: usb/libusb.c:716 +#, c-format +msgid "" +"USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might " +"not function with gphoto2. Reference: %s" +msgstr "" +"USB gailua (0x%x hornitzailea, 0x%x produktua) biltegiratze-gailua da, eta " +"ez du gphoto2-rekin funtzionatuko. Erreferentzia: %s" + +#: usb/libusb.c:758 +#, c-format +msgid "" +"Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device " +"is connected to the computer." +msgstr "" +"Ezin izan da USB gailua (0x%x hornitzailea, 0x%x produktua) aurkitu. Ziurta " +"zaitez gailua ordenagailuari konektatuta dagoela." + +#: usb/libusb.c:988 +#, c-format +msgid "" +"Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make " +"sure this device is connected to the computer." +msgstr "" +"Ezin izan da USB gailua aurkitu (0x%x klasea, 0x%x azpiklasea, 0x%x " +"protokoloa). Ziurta zaitez gailua ordenagailura konektatuta dagoela." + +#: disk/disk.c:177 disk/disk.c:227 disk/disk.c:268 disk/disk.c:300 +#: disk/disk.c:323 +#, c-format +msgid "Media '%s'" +msgstr "" + +#: disk/disk.c:178 +msgid "(unknown)" +msgstr "" + +#~ msgid "Could not load any io-library because '%s' could not be opened (%m)" +#~ msgstr "" +#~ "Ezin izan da sarrerako/irteerako liburutegia kargatu, '%s' ezin izan " +#~ "delako ireki (%m)" + +#~ msgid "open" +#~ msgstr "ireki" + +#~ msgid "close" +#~ msgstr "itxi" + +#~ msgid "write" +#~ msgstr "idatzi" + +#~ msgid "read" +#~ msgstr "irakurri" + +#~ msgid "check_int" +#~ msgstr "check_int" + +#~ msgid "update" +#~ msgstr "eguneratu" + +#~ msgid "get_pin" +#~ msgstr "get_pin" + +#~ msgid "set_pin" +#~ msgstr "set_pin" + +#~ msgid "send_break" +#~ msgstr "send_break" + +#~ msgid "flush" +#~ msgstr "hustu" + +#~ msgid "find_device" +#~ msgstr "find_device" + +#~ msgid "find_device_by_class" +#~ msgstr "find_device_by_class" + +#~ msgid "msg_write" +#~ msgstr "msg_write" + +#~ msgid "Camera is supported by USB Storage driver." +#~ msgstr "USB biltegi kontrolatzaileak kamera onartzen du" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/fi.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/fi.po new file mode 100644 index 00000000..1225b114 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/fi.po @@ -0,0 +1,560 @@ +# Finnish messages for libgphoto2_port. +# Copyright © 2012, 2016 Free Software Foundation, Inc. +# Copyright © 2012, 2016 Lutz Mueller and others +# This file is distributed under the same license as the libgphoto2 package. +# Jorma Karvonen , 2012-2014, 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.10\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-02-22 21:02+0100\n" +"PO-Revision-Date: 2016-03-25 16:35+0200\n" +"Last-Translator: Jorma Karvonen \n" +"Language-Team: Finnish \n" +"Language: fi\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Geneerinen portti" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Ei virhettä" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Määrittelemätön virhe" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Siirräntäpulma" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Virheelliset parametrit" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Tukematon toiminto" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Kiinteä raja ylitetty" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Aikakatkaisu portin lukemisessa tai kirjoittamisessa" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Sarjaporttia ei tueta" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "USB-porttia ei tueta" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Tuntematon portti" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Muisti loppui" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Virhe ladattaessa kirjastoa" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Virhe alustettaessa porttia" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Virhe luettaessa portista" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Virhe kirjoitettaessa porttiin" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Virhe päivitettäessä portin asetuksia" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Virhe asetettaessa sarjaportin nopeutta" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Virhe nollatessa halt-tilaa USB-portissa" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Pyydetyn laitteen löytäminen USB-portista epäonnistui" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "USB-laitteen vaatiminen omaan käyttöön epäonnistui" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Laitteen lukitus epäonnistui" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "libhal-virhe" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Tuntematon virhe" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Tämä laite ei tue ’%s’-toimintoa" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "Porttia ei ole vielä alustettu" + +# low ja high ovat mikropiirin tai sarjaportin nastojen binaaritiloja. +# Mikropiireissä low on looginen nolla (maan potentiaali) ja high on +# looginen ykkönen (esimerkiksi +5V). Sarjaporteissa looginen ykkönen +# on yleensä -5...-12V ja looginen nolla +5...+12 V, mutta Gphotossa +# näytetään noudattavan mikropiirilogiikkaa. +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "looginen nolla" + +# low ja high ovat mikropiirin tai sarjaportin nastojen binaaritiloja. +# Mikropiireissä low on looginen nolla (maan potentiaali) ja high on +# looginen ykkönen (esimerkiksi +5V). Sarjaporteissa looginen ykkönen +# on yleensä -5...-12V ja looginen nolla +5...+12 V, mutta Gphotossa +# näytetään noudattavan mikropiirilogiikkaa. +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "looginen ykkönen" + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "Virhekuvausta ei ole saatavilla" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "Media ’%s’" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Laitteen ’%s’ lukitus epäonnistui" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Laitteen ’%s’ on lukinnut pid %d" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Laitteen ’%s’ lukitus epäonnistui (dev_lock palautti %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Laitteen ’%s’ lukituksen avaus epäonnistui." + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Laitteen ’%s’ lukituksen avaus epäonnistui, koska sen on lukinnut pid %d." + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Laitteen ’%s’ lukituksen avaus epäonnistui (dev_unlock palautti %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "Sarjaportti %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "Sarjaporttilaite" + +# Ensimmäinen parametri on portti +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Portin ’%s’ avaaminen epäonnistui (%s)." + +# Ensimmäinen parametri on sarjaportti +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Sarjaportin ’%s’ (%s) sulkeminen epäonnistui." + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Kirjoittaminen porttiin (%s) epäonnistui" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "Pariteettivirhe." + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Odottamaton pariteettivastaussekvenssi 0xff 0x%02x." + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "Tuntematon nasta %i." + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Nastan %i (%s) tason hakeminen epäonnistui." + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Nastan %i tason asettaminen arvoon %i (%s) epäonnistui." + +# Ensimmäinen parametri on sarjaportti +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Sarjaportin ’%s’ (%s) puhdistaminen epäonnistui." + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Siirtonopeuden asettaminen arvoon %d epäonnistui" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "USB-massatallennuksen suora liitäntä" + +# Ensimmäinen parametri on polku +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Polun ’%s’ avaaminen epäonnistui (%m)." + +# Ensimmäinen parametri on polku +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Polun ’%s’ (%m) sulkeminen epäonnistui." + +# Toinen parametri on polku +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Siirrososoitteen: %x etsintä polussa ’%s’ (%m) epäonnistui." + +# Ensimmäinen parametri on polku +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Polkuun ’%s’ (%m) kirjoittaminen epäonnistui." + +# Ensimmäinen parametri on polku +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Polusta ’%s’ (%m) lukeminen epäonnistui." + +#: usb/libusb.c:260 libusb1/libusb1.c:373 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "USB-laitteen (%s) avaaminen epäonnistui." + +#: usb/libusb.c:273 libusb1/libusb1.c:382 +msgid "Camera is already in use." +msgstr "Kamera on jo käytössä." + +#: usb/libusb.c:281 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Kameralaitteen käyttöjärjestelmäajuria ’%s’ ei voitu irrottaa." + +#: usb/libusb.c:286 libusb1/libusb1.c:397 +msgid "Could not query kernel driver of device." +msgstr "Laitteen käyttöjärjestelmäajurin kyseleminen epäonnistui." + +#: usb/libusb.c:295 libusb1/libusb1.c:404 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Liitännän %d (%s) vaatiminen epäonnistui. Varmista, että mikään toinen ohjelma (%s) tai käyttöjärjestelmämoduuli (sellainen kuin %s) ei käytä laitetta ja sinulla on laitteeseen luku- tai kirjoitusoikeus." + +#: usb/libusb.c:307 libusb1/libusb1.c:415 +msgid "MacOS PTPCamera service" +msgstr "MacOS PTPCamera-palvelu" + +#: usb/libusb.c:309 libusb1/libusb1.c:417 +msgid "unknown libgphoto2 using program" +msgstr "tuntematon libgphoto2-kirjastoa käyttävä ohjelma" + +#: usb/libusb.c:326 libusb1/libusb1.c:484 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Liitännän %d (%s) vapauttaminen epäonnistui." + +#: usb/libusb.c:341 libusb1/libusb1.c:498 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "USB-portin (%s) nollaus epäonnistui." + +#: usb/libusb.c:371 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "USB-portin (%s) sulkeminen epäonnistui." + +#: usb/libusb.c:632 libusb1/libusb1.c:839 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Asetuksen %d/%d (%s) asettaminen epäonnistui" + +#: usb/libusb.c:663 libusb1/libusb1.c:868 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Asetuksen altsetting asetus arvosta %d arvoon %d (%s) epäonnistui" + +#: usb/libusb.c:752 libusb1/libusb1.c:1033 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "Tarjottu toimittaja- tai tuotetunniste (0x%x,0x%x) ei ole kelvollinen." + +#: usb/libusb.c:823 usb/libusb.c:909 libusb1/libusb1.c:1002 +#: libusb1/libusb1.c:1094 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "USB-laitetta (toimittaja 0x%x, tuote 0x%x) ei löydetty. Varmista, että laite on liitetty tietokoneeseen." + +#: usb/libusb.c:1202 libusb1/libusb1.c:1383 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "USB-laitetta (luokka 0x%x, aliluokka 0x%x, yhteyskäytäntö 0x%x) ei löydetty. Varmista, että laite on liitetty tietokoneeseen." + +#: libusb1/libusb1.c:391 +msgid "Could not detach kernel driver of camera device." +msgstr "Kameralaitteen käyttöjärjestelmäajurin irrottaminen epäonnistui." + +#: libusb1/libusb1.c:507 +msgid "Could not reattach kernel driver of camera device." +msgstr "Kameralaitteen käyttöjärjestelmäajurin liittäminen uudelleen epäonnistui." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Toinen sovellus on lukinnut laitteen ’%s’." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Kohteen ’%s’ lukitseminen epäonnistui (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Toiminto unlock ’%s’ epäonnistui (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "USB-massatallennuksen raaka-SCSI" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Scsi-komennon lähettäminen kohteeseen: ’%s’ (%m) epäonnistui." + +# Tässä tulostetaan jokainen tiedostonimi, jonka funktio +# foreach_func kutsuu. +#~ msgid "Called for filename '%s'." +#~ msgstr "Kutsuttu tiedostonimellä ’%s’." + +# Tämä virheilmoitus seuraa, jos edellisen lataus edellisen kohdan +# tiedostonimellä epäonnistuu. +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "Lataus tiedostonimellä ’%s’ epäonnistui: ’%s’." + +# Ensimmäinen parametri on edelleen tiedostonimi +#~ msgid "Could not find some functions in '%s': '%s'." +#~ msgstr "Tiedostonimestä ’%s’ ei löydetty mitään funktioita: ’%s’." + +# Ensimmäinen parametri on edelleen tiedostonimi +#~ msgid "'%s' already loaded" +#~ msgstr "’%s’ on jo ladattu" + +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "Porttiajuriluettelon lataus epäonnistui: ’%s’." + +# 1. parametri on GPPortInfoList-tietueen nimikenttä +# 2. parametri on polku +# 3. parametri on edelleen edellä mainittu tiedostonimi +#~ msgid "Loaded '%s' ('%s') from '%s'." +#~ msgstr "Ladattu ’%s’ (’%s’) tiedostonimestä ’%s’." + +# Parametri on iolibs +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "Käytetään ltdl:ää lataamaan siirtoajurit siirtokirjastoista ’%s’..." + +# Lasketaan porttien lukumäärää luettelossa +#~ msgid "Counting entries (%i available)..." +#~ msgid_plural "Counting entries (%i available)..." +#~ msgstr[0] "Lasketaan portteja (%i saatavilla)..." +#~ msgstr[1] "Lasketaan portteja (%i saatavilla)..." + +# Porttien lukumäärästä on vähennetty geneeriset portit +#~ msgid "%i regular entry available." +#~ msgid_plural "%i regular entries available." +#~ msgstr[0] "%i tavallinen portti saatavilla." +#~ msgstr[1] "%i tavallista porttia saatavilla." + +# Etsitään luettelon portit ja kerrotaan, kuinka monta polkuun täsmäävää +# porttia löytyy. +#~ msgid "Looking for path '%s' (%i entry available)..." +#~ msgid_plural "Looking for path '%s' (%i entries available)..." +#~ msgstr[0] "Etsitään polkua ’%s’ (%i portti saatavilla)..." +#~ msgstr[1] "Etsitään polkua ’%s’ (%i porttia saatavilla)..." + +# Käytetään säännöllistä lauseketta polkuetsinnässä +#~ msgid "Starting regex search for '%s'..." +#~ msgstr "Aloitetaan säännöllisen lausekkeen etsintä polulle ’%s’..." + +# Kokeillaan vuorotellen eri polkuja +#~ msgid "Trying '%s'..." +#~ msgstr "Yritetään polkua ’%s’..." + +#~ msgid "regcomp failed" +#~ msgstr "funktio regcomp epäonnistui" + +#~ msgid "re_match failed (%i)" +#~ msgstr "funktio re_match epäonnistui (%i)" + +#~ msgid "regexec failed" +#~ msgstr "funktio regexec epäonnistui" + +# Parametrina on portin nimi, listalta etsitään tätä nimeä +#~ msgid "Looking up entry '%s'..." +#~ msgstr "Etsitään porttia ’%s’..." + +#~ msgid "Getting info of entry %i (%i available)..." +#~ msgid_plural "Getting info of entry %i (%i available)..." +#~ msgstr[0] "Haetaan portin %i tietoja (%i saatavilla)..." +#~ msgstr[1] "Haetaan portin %i tietoja (%i saatavilla)..." + +#~ msgid "Creating new device..." +#~ msgstr "Luodaan uusi laite..." + +# Parametri on info->library_filename +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "Kirjastotiedostonimen ’%s’ (’%s’) lataus epäonnistui." + +#~ msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +#~ msgstr "Ei löydetty ’gp_port_library_operations’ kirjastotiedostonimestä ’%s’ (’%s’)" + +# Parametrina on SERIAL tai USB +#~ msgid "Opening %s port..." +#~ msgstr "Avataan %s-portti..." + +#~ msgid "Closing port..." +#~ msgstr "Suljetaan portti..." + +#~ msgid "Resetting port..." +#~ msgstr "Nollataan portti..." + +#~ msgid "Freeing port..." +#~ msgstr "Vapautetaan portti..." + +#~ msgid "Writing %i=0x%x byte(s) to port..." +#~ msgstr "Kirjoitetaan %i=0x%x tavua porttiin..." + +#~ msgid "Could only write %i out of %i byte" +#~ msgid_plural "Could only write %i out of %i bytes" +#~ msgstr[0] "Voitiin kirjoittaa vain %i / %i tavu" +#~ msgstr[1] "Voitiin kirjoittaa vain %i / %i tavua" + +#~ msgid "Reading %i=0x%x byte from port..." +#~ msgid_plural "Reading %i=0x%x bytes from port..." +#~ msgstr[0] "Luetaan %i=0x%x tavu portista..." +#~ msgstr[1] "Luetaan %i=0x%x tavua portista..." + +#~ msgid "Could only read %i out of %i byte" +#~ msgid_plural "Could only read %i out of %i byte(s)" +#~ msgstr[0] "Voitiin lukea vain %i / %i tavu" +#~ msgstr[1] "Voitiin lukea vain %i / %i tavua" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint..." +#~ msgstr[0] "Luetaan %i=0x%x tavu keskeytyspäätepisteestä..." +#~ msgstr[1] "Luetaan %i=0x%x tavua keskeytyspäätepisteestä..." + +#~ msgid "Could only read %i out of %i byte(s)" +#~ msgstr "Ei voitu lukea %i / %i tavua" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint (fast)..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +#~ msgstr[0] "Luetaan %i=0x%x tavu keskeytyspäätepisteestä (nopea)..." +#~ msgstr[1] "Luetaan %i=0x%x tavua keskeytyspäätepisteestä (nopea)..." + +#~ msgid "Setting timeout to %i millisecond(s)..." +#~ msgstr "Asetetaan aikakatkaisuksi %i millisekuntia..." + +#~ msgid "Getting timeout..." +#~ msgstr "Haetaan aikakatkaisu..." + +#~ msgid "Current timeout: %i milliseconds" +#~ msgstr "Nykyinen aikakatkaisu: %i millisekuntia" + +#~ msgid "Setting settings..." +#~ msgstr "Tee asetukset..." + +#~ msgid "Getting level of pin %i..." +#~ msgstr "Haetaan nastan %i taso..." + +#~ msgid "Level of pin %i: %i" +#~ msgstr "Nastan %i taso: %i" + +#~ msgid "Setting pin %i (%s: '%s') to '%s'..." +#~ msgstr "Asetetaan nastan %i (%s: ’%s’) arvoksi ’%s’..." + +#~ msgid "Sending break (%i milliseconds)..." +#~ msgstr "Lähetetään katkos (%i millisekuntia)..." + +#~ msgid "Flushing port..." +#~ msgstr "Puhdistetaan portti..." + +#~ msgid "Clear halt..." +#~ msgstr "Nollaa halt-tila..." + +#~ msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Kirjoitetaan viesti (pyyntö=0x%x arvo=0x%x indeksi=0x%x koko=%i=0x%x)..." + +#~ msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Luetaan viesti (pyyntö=0x%x arvo=0x%x indeksi=0x%x koko=%i=0x%x)..." + +#~ msgid "Device has driver '%s' attached." +#~ msgstr "Laitteeseen on liitetty ajuri ’%s’." + +#~ msgid "Device has driver '%s' attached, detaching it now." +#~ msgstr "Laitteeseen on liitetty ajuri ’%s’, irrotetaan se nyt." + +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "USB-laite (toimittaja 0x%x, tuote 0x%x) on massatallennuslaite, ja ei ehkä toimi gphoto2:n kanssa. Viite: %s" + +#~ msgid "Device has a kernel driver attached (%d), detaching it now." +#~ msgstr "Laitteen käyttöjärjestelmäajuri on liitetty (%d), irrota se nyt." diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/fr.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/fr.po new file mode 100644 index 00000000..252d8c21 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/fr.po @@ -0,0 +1,588 @@ +# gPhoto French translation +# Copyright © 2001 Jérôme Fenal +# Copyright © 2011-2014 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# +# Jérôme Fenal , 2001. +# Dimitri Duc , 2011. +# David Prévot , 2012-2014. +# Stéphane Aulery , 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.10\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-02-22 21:02+0100\n" +"PO-Revision-Date: 2016-12-23 22:19+0100\n" +"Last-Translator: David Prévot \n" +"Language-Team: French \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Lokalize 1.5\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Port générique" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Pas d'erreur" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Erreur indéfinie" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Problème d'E/S" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Mauvais paramètres" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Opération non prise en charge" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Limite déterminée dépassée" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Délai d'attente dépassé en lecture ou écriture sur le port" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Port série non pris en charge" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "Port USB non pris en charge" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Port inconnu" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Mémoire épuisée" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Erreur au chargement de la bibliothèque" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Erreur d'initialisation du port" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Erreur de lecture du port" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Erreur d'écriture sur le port" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Erreur de modification de la configuration du port" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Erreur de configuration de la vitesse du port série" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Erreur de réinitialisation d'une condition d'arrêt sur le port USB" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Impossible de trouver l'appareil demandé sur le port USB" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Impossible de communiquer avec le périphérique USB" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Impossible de verrouiller le périphérique" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "Erreur de libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Erreur inconnue" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "L'opération « %s » n'est pas possible avec ce périphérique" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "Le port n'a pas encore été initialisé" + +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "bas" + +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "haut" + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "Description d'erreur non disponible" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "Media « %s »" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Impossible de verrouiller le périphérique « %s »" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Le périphérique « %s » est verrouillé par le processus %d." + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Le périphérique « %s » n'a pas pu être verrouillé (dev_lock a renvoyé %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Le périphérique « %s » n'a pas pu être déverrouillé." + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Le périphérique « %s » n'a pas pu être déverrouillé car il est verrouillé par le processus %d." + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Le périphérique « %s » n'a pas pu être déverrouillé (dev_unlock a renvoyé %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "Port série %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "Port série" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Échec d'ouverture de « %s » (%s)." + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Impossible de fermer « %s » (%s)." + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Impossible d'écrire sur le port (%s)" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "Erreur de parité." + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Séquence de réponse de parité 0xff 0x%02x inattendue." + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "Broche %i inconnue." + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Impossible d'obtenir le niveau de la broche %i (%s)." + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Impossible de configurer le niveau de la broche %i à %i (%s)." + +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Impossible de vider « %s » (%s)." + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Impossible de configurer le débit à %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "E/S directes de stockage de masse USB" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Impossible d'ouvrir « %s » (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Impossible de fermer « %s » (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Impossible de rechercher une position : %x dans « %s » (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Impossible d'écrire dans « %s » (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Impossible de lire dans « %s » (%m)." + +#: usb/libusb.c:260 libusb1/libusb1.c:373 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Impossible d'ouvrir le périphérique USB (%s)." + +#: usb/libusb.c:273 libusb1/libusb1.c:382 +msgid "Camera is already in use." +msgstr "L'appareil photographique est déjà utilisé." + +#: usb/libusb.c:281 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Impossible de détacher le pilote « %s » du noyau pour l'appareil photographique." + +#: usb/libusb.c:286 libusb1/libusb1.c:397 +msgid "Could not query kernel driver of device." +msgstr "Impossible de recevoir le pilote pour ce périphérique." + +#: usb/libusb.c:295 libusb1/libusb1.c:404 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Impossible d'utiliser l'interface %d (%s). Assurez-vous qu'aucun autre programme (%s) ou module du noyau (comme %s) n'utilisent le périphérique et que vous y avez accès en lecture et écriture." + +#: usb/libusb.c:307 libusb1/libusb1.c:415 +msgid "MacOS PTPCamera service" +msgstr "service PTPCamera de MacOS" + +#: usb/libusb.c:309 libusb1/libusb1.c:417 +msgid "unknown libgphoto2 using program" +msgstr "programme utilisant libgphoto2 inconnu" + +#: usb/libusb.c:326 libusb1/libusb1.c:484 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Impossible de libérer l'interface %d (%s)." + +#: usb/libusb.c:341 libusb1/libusb1.c:498 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Impossible de réinitialiser le port USB (%s)." + +#: usb/libusb.c:371 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Impossible de fermer le port USB (%s)." + +#: usb/libusb.c:632 libusb1/libusb1.c:839 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Impossible de configurer %d/%d (%s)" + +#: usb/libusb.c:663 libusb1/libusb1.c:868 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Impossible de définir un paramètre alternatif (altsetting) de %d à %d (%s)" + +#: usb/libusb.c:752 libusb1/libusb1.c:1033 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "L'identifiant de fabricant ou produit (0x%x,0x%x) est incorrect." + +#: usb/libusb.c:823 usb/libusb.c:909 libusb1/libusb1.c:1002 +#: libusb1/libusb1.c:1094 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Impossible de trouver le périphérique USB (fabricant 0x%x, produit 0x%x). Assurez-vous qu'il est bien connecté à l'ordinateur." + +#: usb/libusb.c:1202 libusb1/libusb1.c:1383 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Impossible de trouver le périphérique USB (fabricant 0x%x, sous-classe 0x%x, produit 0x%x). Assurez-vous qu'il est bien connecté à l'ordinateur." + +#: libusb1/libusb1.c:391 +msgid "Could not detach kernel driver of camera device." +msgstr "Impossible de détacher le pilote de noyau de l'appareil." + +#: libusb1/libusb1.c:507 +msgid "Could not reattach kernel driver of camera device." +msgstr "Impossible de rattacher le pilote de noyau de l'appareil." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Le périphérique « %s » est verrouillé par une autre application." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Impossible de verrouiller « %s » (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Impossible de déverrouiller « %s » (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "Stockage de masse USB contenant des données brutes SCSI " + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Impossible d'envoyer une commande scsi à : « %s » (%m)." + +#~ msgid "Called for filename '%s'." +#~ msgstr "Appel du fichier « %s »." + +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "Impossible de charger « %s » : « %s »." + +#~ msgid "Could not find some functions in '%s': '%s'." +#~ msgstr "Impossible de trouver certaines fonctions dans « %s » : « %s »." + +#~ msgid "'%s' already loaded" +#~ msgstr "« %s » déjà chargé" + +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "Impossible de charger la liste des pilotes de port : « %s »." + +#~ msgid "Loaded '%s' ('%s') from '%s'." +#~ msgstr "Charger « %s » (« %s ») à partir de « %s »." + +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "Utilisation de ltdl pour charger les pilotes d'entrées et sorties à partir de « %s »…" + +#~ msgid "Counting entries (%i available)..." +#~ msgid_plural "Counting entries (%i available)..." +#~ msgstr[0] "Compte des entrées (%i disponible)…" +#~ msgstr[1] "Compte des entrées (%i disponibles)…" + +#~ msgid "%i regular entry available." +#~ msgid_plural "%i regular entries available." +#~ msgstr[0] "%i entrée normale disponible." +#~ msgstr[1] "%i entrées normales disponibles." + +#~ msgid "Looking for path '%s' (%i entry available)..." +#~ msgid_plural "Looking for path '%s' (%i entries available)..." +#~ msgstr[0] "Recherche du chemin « %s » (%i entrée disponible)…" +#~ msgstr[1] "Recherche du chemin « %s » (%i entrées disponibles)…" + +#~ msgid "Starting regex search for '%s'..." +#~ msgstr "Recherche d'après l'expression rationnelle pour « %s »…" + +#~ msgid "Trying '%s'..." +#~ msgstr "Tentative dans « %s »…" + +#~ msgid "regcomp failed" +#~ msgstr "Erreur de regcomp" + +#~ msgid "re_match failed (%i)" +#~ msgstr "Erreur de re_match (%i)" + +#~ msgid "regexec failed" +#~ msgstr "Erreur de regexec" + +#~ msgid "Looking up entry '%s'..." +#~ msgstr "Recherche de l'entrée « %s »…" + +#~ msgid "Getting info of entry %i (%i available)..." +#~ msgid_plural "Getting info of entry %i (%i available)..." +#~ msgstr[0] "Obtention de renseignements sur l'entrée %i (%i disponible)…" +#~ msgstr[1] "Obtention de renseignements sur l'entrée %i (%i disponibles)…" + +#~ msgid "Creating new device..." +#~ msgstr "Création de nouveau périphérique…" + +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "Impossible de charger « %s » (« %s »)." + +#~ msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +#~ msgstr "Impossible de trouver « gp_port_library_operations » dans « %s » (« %s »)" + +#~ msgid "Opening %s port..." +#~ msgstr "Ouverture du port %s…" + +#~ msgid "Closing port..." +#~ msgstr "Fermeture du port…" + +#~ msgid "Resetting port..." +#~ msgstr "Réinitialisation du port…" + +#~ msgid "Freeing port..." +#~ msgstr "Libération du port…" + +#~ msgid "Writing %i=0x%x byte(s) to port..." +#~ msgstr "Écriture de %i=0x%x octet(s) sur le port…" + +#~ msgid "Could only write %i out of %i byte" +#~ msgid_plural "Could only write %i out of %i bytes" +#~ msgstr[0] "Écriture de seulement %i sur %i octet" +#~ msgstr[1] "Écriture de seulement %i sur %i octets" + +#~ msgid "Reading %i=0x%x byte from port..." +#~ msgid_plural "Reading %i=0x%x bytes from port..." +#~ msgstr[0] "Lecture de %i=0x%x octet du port…" +#~ msgstr[1] "Lecture de %i=0x%x octets du port…" + +#~ msgid "Could only read %i out of %i byte" +#~ msgid_plural "Could only read %i out of %i byte(s)" +#~ msgstr[0] "Lecture de seulement %i sur %i octet" +#~ msgstr[1] "Lecture de seulement %i sur %i octets" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint..." +#~ msgstr[0] "Lecture de %i=0x%x octet depuis le signal d'interruption de la terminaison…" +#~ msgstr[1] "Lecture de %i=0x%x octets depuis le signal d'interruption de la terminaison…" + +#~ msgid "Could only read %i out of %i byte(s)" +#~ msgstr "Lecture de seulement %i sur %i octet(s)" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint (fast)..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +#~ msgstr[0] "Lecture de %i=0x%x octet depuis le signal d'interruption de la terminaison (rapide)…" +#~ msgstr[1] "Lecture de %i=0x%x octets depuis le signal d'interruption de la terminaison (rapide)…" + +#~ msgid "Setting timeout to %i millisecond(s)..." +#~ msgstr "Réglage du délai à %i milliseconde(s)…" + +#~ msgid "Getting timeout..." +#~ msgstr "Obtention du délai…" + +#~ msgid "Current timeout: %i milliseconds" +#~ msgstr "Délai actuel : %i millisecondes" + +#~ msgid "Setting settings..." +#~ msgstr "Réglage des paramètres…" + +#~ msgid "Getting level of pin %i..." +#~ msgstr "Obtention du niveau de la broche %i…" + +#~ msgid "Level of pin %i: %i" +#~ msgstr "Niveau de la broche %i : %i" + +#~ msgid "Setting pin %i (%s: '%s') to '%s'..." +#~ msgstr "Réglage de broche %i (%s : « %s ») à « %s »…" + +#~ msgid "Sending break (%i milliseconds)..." +#~ msgstr "Envoi du signal d'interruption (%i millisecondes)…" + +#~ msgid "Flushing port..." +#~ msgstr "Vidage des données du port…" + +#~ msgid "Clear halt..." +#~ msgstr "Réinitialiser l'arrêt…" + +#~ msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Écriture du message (requête=0x%x valeur=0x%x indice=0x%x taille=%i=0x%x)…" + +#~ msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Lecture du message (requête=0x%x valeur=0x%x indice=0x%x taille=%i=0x%x)…" + +#~ msgid "Device has driver '%s' attached." +#~ msgstr "Le périphérique a le pilote « %s » attaché." + +#~ msgid "Device has driver '%s' attached, detaching it now." +#~ msgstr "Le périphérique a le pilote « %s » attaché, détachement immédiat." + +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "Le périphérique USB (fabricant 0x%x, produit 0x%x) est un périphérique de stockage de masse, et pourrait ne pas fonctionner avec gPhoto2. Référence : %s" + +#~ msgid "Device has a kernel driver attached (%d), detaching it now." +#~ msgstr "Le périphérique a un pilote de noyau attaché (%d), détachement immédiat." + +#~ msgid "msg_read" +#~ msgstr "Lecture du message" + +#~ msgid "(unknown)" +#~ msgstr "(inconnu)" + +#~ msgid "Could not load any io-library because '%s' could not be opened (%m)" +#~ msgstr "Ne peut charger aucune bibliothèque d'E/S car '%s' ne peut être ouvert (%m)" + +#, fuzzy +#~ msgid "Could not find some functions in '%s' (%s)" +#~ msgstr "Impossible de fermer '%s' (%m)." + +#, fuzzy +#~ msgid "Could not load list (%s)" +#~ msgstr "Impossible de fermer '%s' (%m)." + +#, fuzzy +#~ msgid "Could not load '%s' ('%s')" +#~ msgstr "Impossible de fermer '%s' (%m)." + +#~ msgid "open" +#~ msgstr "ouvrir" + +#~ msgid "close" +#~ msgstr "fermer" + +#~ msgid "write" +#~ msgstr "écrire" + +#~ msgid "read" +#~ msgstr "lire" + +#~ msgid "check_int" +#~ msgstr "check_int" + +#~ msgid "update" +#~ msgstr "mettre à jour" + +#~ msgid "get_pin" +#~ msgstr "get_pin" + +#~ msgid "set_pin" +#~ msgstr "set_pin" + +#~ msgid "send_break" +#~ msgstr "send_break" + +#~ msgid "flush" +#~ msgstr "flush" + +#~ msgid "find_device" +#~ msgstr "find_device" + +#~ msgid "find_device_by_class" +#~ msgstr "find_device_by_class" + +#~ msgid "msg_write" +#~ msgstr "msg_write" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/it.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/it.po new file mode 100644 index 00000000..e6a3fd8e --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/it.po @@ -0,0 +1,363 @@ +# Italian messages for libgphoto2_port. +# Copyright (C) 2000, 2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# Marco Colombo , 2005, 2006, 2007, 2009, 2010, 2015 +# Daniele Medri , 2000. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.8\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2015-06-17 23:53+0200\n" +"PO-Revision-Date: 2015-08-05 13:07+0100\n" +"Last-Translator: Marco Colombo \n" +"Language-Team: Italian \n" +"Language: it\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8-bit\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Porta generica" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Nessun errore" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Errore non specificato" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Problema di I/O" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Parametri non corretti" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Operazione non gestita" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Limite fisso superato" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Timeout durante la lettura o la scrittura sulla porta" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Porta seriale non gestita" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "Porta USB non gestita" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Porta sconosciuta" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Memoria esaurita" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Errore durante il caricamento di una libreria" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Errore durante l'inizializzazione della porta" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Errore durante la lettura dalla porta" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Errore durante la scrittura sulla porta" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Errore durante l'aggiornamento delle impostazioni della porta" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Errore durante l'impostazione della velocità della porta seriale" + +# FIXME +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Errore nella rimozione di una condizione di halt sulla porta USB" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Impossibile trovare il dispositivo richiesto sulla porta USB" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Impossibile reclamare il dispositivo USB" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Impossibile bloccare il dispositivo" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "errore in libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Errore sconosciuto" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "L'operazione \"%s\" non è gestita da questo dispositivo" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "La porta non è ancora stata inizializzata" + +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "basso" + +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "alto" + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "Nessuna descrizione dell'errore disponibile" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:219 disk/disk.c:220 +#: disk/disk.c:260 disk/disk.c:283 +#, c-format +msgid "Media '%s'" +msgstr "Media \"%s\"" + +#: serial/unix.c:226 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Impossibile bloccare il device \"%s\"" + +#: serial/unix.c:236 usbdiskdirect/linux.c:96 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Il device \"%s\" è bloccato dal pid %d" + +#: serial/unix.c:239 usbdiskdirect/linux.c:99 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Non è stato possibile bloccare il device \"%s\" (dev_lock ha restituito %d)" + +#: serial/unix.c:268 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Non è stato possibile sbloccare il device \"%s\"." + +#: serial/unix.c:280 usbdiskdirect/linux.c:128 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Non è stato possibile sbloccare il device \"%s\" perché bloccato dal pid %d." + +#: serial/unix.c:284 usbdiskdirect/linux.c:132 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Non è stato possibile sbloccare il device \"%s\" (dev_unlock ha restituito %d)" + +#: serial/unix.c:342 +#, c-format +msgid "Serial Port %i" +msgstr "Porta seriale %i" + +#: serial/unix.c:430 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Impossibile aprire \"%s\" (%s)." + +#: serial/unix.c:450 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Impossibile chiudere \"%s\" (%s)." + +#: serial/unix.c:506 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Impossibile scrivere sulla porta (%s)" + +#: serial/unix.c:583 +msgid "Parity error." +msgstr "Errore di parità." + +# FIXME +#: serial/unix.c:587 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Sequenza di risposta di parità 0xff 0x%02x inattesa." + +#: serial/unix.c:630 +#, c-format +msgid "Unknown pin %i." +msgstr "Pin %i sconosciuto." + +#: serial/unix.c:652 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Impossibile ottenere il livello del pin %i (%s)." + +#: serial/unix.c:688 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Impossibile impostare il livello del pin %i a %i (%s)." + +#: serial/unix.c:715 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Impossibile svuotare \"%s\" (%s)." + +#: serial/unix.c:827 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Impossibile impostare la velocità di trasmissione a %d" + +#: usbdiskdirect/linux.c:235 +msgid "USB Mass Storage direct IO" +msgstr "Archiviazione di massa USB con IO direct" + +#: usbdiskdirect/linux.c:286 usbscsi/linux.c:270 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Impossibile aprire \"%s\" (%m)." + +#: usbdiskdirect/linux.c:300 usbscsi/linux.c:298 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Impossibile chiudere \"%s\" (%m)." + +#: usbdiskdirect/linux.c:324 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Impossibile fare il seek all'offset: %x su \"%s\" (%m)." + +#: usbdiskdirect/linux.c:346 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Impossibile scrivere sul \"%s\" (%m)." + +#: usbdiskdirect/linux.c:367 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Impossibile leggere da \"%s\" (%m)." + +#: usb/libusb.c:261 libusb1/libusb1.c:378 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Impossibile aprire il dispositivo USB (%s)." + +#: usb/libusb.c:274 libusb1/libusb1.c:387 +msgid "Camera is already in use." +msgstr "La fotocamera è già in uso." + +#: usb/libusb.c:282 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Impossibile scollegare il driver \"%s\" del kernel per il dispositivo." + +#: usb/libusb.c:287 libusb1/libusb1.c:402 +msgid "Could not query kernel driver of device." +msgstr "Impossibile interrogare il driver del kernel per il dispositivo." + +#: usb/libusb.c:296 libusb1/libusb1.c:409 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Impossibile reclamare l'interfaccia %d (%s). Assicurarsi che nessun altro programma (%s) o un modulo del kernel (come %s) stia usando il device e che si abbia accesso in lettura e scrittura al device." + +#: usb/libusb.c:308 libusb1/libusb1.c:420 +msgid "MacOS PTPCamera service" +msgstr "servizio MacOS PTPCamera" + +#: usb/libusb.c:310 libusb1/libusb1.c:422 +msgid "unknown libgphoto2 using program" +msgstr "programma sconosciuto che usa libgphoto2" + +#: usb/libusb.c:327 libusb1/libusb1.c:475 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Impossibile rilasciare l'interfaccia %d (%s)." + +# FIXME +#: usb/libusb.c:342 libusb1/libusb1.c:489 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Impossibile reimpostare la porta USB (%s)." + +#: usb/libusb.c:372 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Impossibile chiudere la porta USB (%s)." + +#: usb/libusb.c:633 libusb1/libusb1.c:824 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Impossibile impostare la configurazione %d/%d (%s)" + +# FIXME +#: usb/libusb.c:664 libusb1/libusb1.c:853 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Impossibile impostare altsetting da %d a %d (%s)" + +#: usb/libusb.c:753 libusb1/libusb1.c:1018 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "L'id del vendor o del prodotto (0x%x,0x%x) fornito non è valido." + +#: usb/libusb.c:824 usb/libusb.c:910 libusb1/libusb1.c:987 +#: libusb1/libusb1.c:1079 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Impossibile trovare il dispositivo USB (vendor 0x%x, prodotto 0x%x). Assicurarsi che il dispositivo sia connesso al computer." + +#: usb/libusb.c:1203 libusb1/libusb1.c:1368 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Impossibile trovare il dispositivo USB (classe 0x%x, sottoclasse 0x%x, protocollo 0x%x). Assicurarsi che il dispositivo sia connesso al computer." + +#: libusb1/libusb1.c:396 +msgid "Could not detach kernel driver of camera device." +msgstr "Impossibile scollegare il driver del kernel per il dispositivo." + +#: libusb1/libusb1.c:498 +msgid "Could not reattach kernel driver of camera device." +msgstr "Impossibile riattaccare il driver del kernel per il dispositivo." + +#: usbscsi/linux.c:109 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Il dispositivo \"%s\" è bloccato da un'altra applicazione." + +#: usbscsi/linux.c:114 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Impossibile fare il lock di \"%s\" (%m)." + +#: usbscsi/linux.c:130 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Impossibile fare l'unlock di \"%s\" (%m)." + +#: usbscsi/linux.c:231 +msgid "USB Mass Storage raw SCSI" +msgstr "Archiviazione di massa USB con raw SCSI" + +#: usbscsi/linux.c:342 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Impossibile mandare il comando scsi a: \"%s\" (%m)." diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/ja.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/ja.po new file mode 100644 index 00000000..0d12e81b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/ja.po @@ -0,0 +1,561 @@ +# ja.po for libgphoto2_port. +# This file is distributed under the same license as the libgphoto2 package. +# +# Takeshi Aihana , 2001-2002, 2004. +# AMANO Kazuhiro , 2002. +# Tadashi Jokagi , 2008-2009. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.4.7\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2009-08-02 21:11+0200\n" +"PO-Revision-Date: 2009-09-23 04:04+0900\n" +"Last-Translator: Tadashi Jokagi \n" +"Language-Team: Japanese \n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:213 +#, c-format +msgid "Called for filename '%s'." +msgstr "ファイル「%s」を呼び出せませんでした。" + +#: libgphoto2_port/gphoto2-port-info-list.c:218 +#, c-format +msgid "Could not load '%s': '%s'." +msgstr "「%s」を読み込むことができません: '%s'。" + +#: libgphoto2_port/gphoto2-port-info-list.c:226 +#, c-format +msgid "Could not find some functions in '%s': '%s'." +msgstr "'%s' のいくつかの機能を見つけることができません: '%s'" + +#: libgphoto2_port/gphoto2-port-info-list.c:238 +#, c-format +msgid "'%s' already loaded" +msgstr "「%s」はすでに読み込まれました" + +#: libgphoto2_port/gphoto2-port-info-list.c:247 +#, fuzzy, c-format +msgid "Could not load port driver list: '%s'." +msgstr "デバイス '%s' をロックすることが出来ませんでした" + +#: libgphoto2_port/gphoto2-port-info-list.c:254 +#, c-format +msgid "Loaded '%s' ('%s') from '%s'." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:286 +#, fuzzy, c-format +msgid "Using ltdl to load io-drivers from '%s'..." +msgstr "デバイス '%s' をロックすることが出来ませんでした" + +#: libgphoto2_port/gphoto2-port-info-list.c:312 +#, c-format +msgid "Counting entries (%i available)..." +msgstr "エントリの算出中 (%i 件利用可能)..." + +#: libgphoto2_port/gphoto2-port-info-list.c:321 +#, c-format +msgid "%i regular entries available." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:351 +#, c-format +msgid "Looking for path '%s' (%i entries available)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:363 +#, c-format +msgid "Starting regex search for '%s'..." +msgstr "「%s」の正規表現検索を開始しています..." + +#: libgphoto2_port/gphoto2-port-info-list.c:371 +#, c-format +msgid "Trying '%s'..." +msgstr "「%s」を試しています..." + +#: libgphoto2_port/gphoto2-port-info-list.c:392 +msgid "regcomp failed" +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:403 +#, c-format +msgid "re_match failed (%i)" +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:411 +msgid "regexec failed" +msgstr "" + +#: libgphoto2_port/gphoto2-port-info-list.c:417 +msgid "Generic Port" +msgstr "Generic ポート" + +#: libgphoto2_port/gphoto2-port-info-list.c:441 +#, c-format +msgid "Looking up entry '%s'..." +msgstr "エントリ「%s」を検索しています..." + +#: libgphoto2_port/gphoto2-port-info-list.c:471 +#, c-format +msgid "Getting info of entry %i (%i available)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "エラーなし" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "不明なエラー" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "I/O 問題" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "おかしなパラメータ" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "サポートしていない操作" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "ポートからの読み込み/書き込みでタイムアウト" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "シリアルポートはサポートしていません" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "USB ポートはサポートしていません" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "不明なポート" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "メモリが足りません" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "ライブラリの読み込みエラー" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "ポートの初期化エラー" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "ポートの読み込みエラー" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "ポートへの書き込みエラー" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "ポート設定の更新エラー" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "シリアルポートのスピードの設定エラー" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "USB ポート上で Halt 状態のクリアエラー" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "USB ポート上に指定したデバイスが見つかりませんでした" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "USB デバイスと断定できませんでした" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "デバイスをロックすることが出来ませんでした" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "libhal エラー" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "不明なエラー" + +#: libgphoto2_port/gphoto2-port.c:55 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "その操作 '%s' はこのデバイスではサポートしていません" + +#: libgphoto2_port/gphoto2-port.c:56 +msgid "The port has not yet been initialized" +msgstr "ポートが未だ初期化されていません" + +#: libgphoto2_port/gphoto2-port.c:87 +msgid "Creating new device..." +msgstr "新しいデバイスを作成しています..." + +#: libgphoto2_port/gphoto2-port.c:165 +#, c-format +msgid "Could not load '%s' ('%s')." +msgstr "'%s' ('%s')を読み込むことができませんでした。" + +#: libgphoto2_port/gphoto2-port.c:175 +#, c-format +msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +msgstr "'%s' ('%s') で 'gp_port_library_operations' を見つけることができません" + +#: libgphoto2_port/gphoto2-port.c:255 +#, c-format +msgid "Opening %s port..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:277 +msgid "Closing port..." +msgstr "ポートを閉じています..." + +#: libgphoto2_port/gphoto2-port.c:299 +msgid "Freeing port..." +msgstr "ポートを開放しています..." + +#: libgphoto2_port/gphoto2-port.c:346 +#, c-format +msgid "Writing %i=0x%x byte(s) to port..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:359 +#, c-format +msgid "Could only write %i out of %i byte(s)" +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:382 +#, c-format +msgid "Reading %i=0x%x bytes from port..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:393 libgphoto2_port/gphoto2-port.c:430 +#: libgphoto2_port/gphoto2-port.c:470 libgphoto2_port/gphoto2-port.c:895 +#, c-format +msgid "Could only read %i out of %i byte(s)" +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:419 +#, c-format +msgid "Reading %i=0x%x bytes from interrupt endpoint..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:480 +#, c-format +msgid "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:505 +#, c-format +msgid "Setting timeout to %i millisecond(s)..." +msgstr "タイムアウトを %i ミリ秒に設定しています..." + +#: libgphoto2_port/gphoto2-port.c:541 +msgid "Getting timeout..." +msgstr "タイムアウトを取得しています..." + +#: libgphoto2_port/gphoto2-port.c:545 +#, c-format +msgid "Current timeout: %i milliseconds" +msgstr "現在のタイムアウト: %i ミリ秒" + +#: libgphoto2_port/gphoto2-port.c:567 +msgid "Setting settings..." +msgstr "設定のセッティングをしています..." + +#: libgphoto2_port/gphoto2-port.c:628 +#, c-format +msgid "Getting level of pin %i..." +msgstr "ピン %i のレベルを取得しています..." + +#: libgphoto2_port/gphoto2-port.c:637 +#, c-format +msgid "Level of pin %i: %i" +msgstr "ピン %i のレベル: %i" + +#: libgphoto2_port/gphoto2-port.c:663 +msgid "low" +msgstr "低" + +#: libgphoto2_port/gphoto2-port.c:664 +msgid "high" +msgstr "高" + +#: libgphoto2_port/gphoto2-port.c:690 +#, c-format +msgid "Setting pin %i (%s: '%s') to '%s'..." +msgstr "ピン %i (%s: 「%s」) を「%s」に設定しています..." + +#: libgphoto2_port/gphoto2-port.c:717 +#, c-format +msgid "Sending break (%i milliseconds)..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:743 +msgid "Flushing port..." +msgstr "ポートをフラッシュしています..." + +#: libgphoto2_port/gphoto2-port.c:817 +msgid "Clear halt..." +msgstr "" + +#: libgphoto2_port/gphoto2-port.c:848 +#, c-format +msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +msgstr "メッセージを書き込んでいます (リクエスト=0x%x 値=0x%x インデックス=0x%x サイズ=%i=0x%x)..." + +#: libgphoto2_port/gphoto2-port.c:883 +#, c-format +msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +msgstr "メッセージを読み込んでいます (リクエスト=0x%x 値=0x%x インデックス=0x%x サイズ=%i=0x%x)..." + +#: libgphoto2_port/gphoto2-port.c:890 +msgid "msg_read" +msgstr "msg_read" + +#: libgphoto2_port/gphoto2-port.c:1117 +msgid "No error description available" +msgstr "有効なエラーメッセージがありません" + +#: serial/unix.c:241 +#, c-format +msgid "Could not lock device '%s'" +msgstr "デバイス '%s' をロックすることが出来ませんでした" + +#: serial/unix.c:251 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "デバイス '%s' は他のプロセス (PID:%d) がロックしています" + +#: serial/unix.c:254 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "デバイス '%s' がロックできません (dev_lock の返り値 %d)" + +#: serial/unix.c:288 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "デバイス '%s' のロックを解放することが出来ませんでした。" + +#: serial/unix.c:300 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "デバイス '%s' が他のプロセス (PID:%d) がロックしているので解放することが出来ませんでした。" + +#: serial/unix.c:304 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "デバイス '%s' のロックを解放することが出来ませんでした (dev_unlock の返り値 %d)" + +#: serial/unix.c:385 +#, c-format +msgid "Serial Port %i" +msgstr "シリアルポート %i" + +#: serial/unix.c:476 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "'%s' のオープンに失敗しました (%m)。" + +#: serial/unix.c:494 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "'%s' を閉じることが出来ませんでした (%m)。" + +#: serial/unix.c:548 +#, c-format +msgid "Could not write to port (%m)" +msgstr "ポートへ書き込めませんでした (%m)" + +#: serial/unix.c:625 +msgid "Parity error." +msgstr "パリティ・エラーです。" + +#: serial/unix.c:629 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "予期しないパリティ応答シーケンス 0xff 0x%02x です。" + +#: serial/unix.c:672 +#, c-format +msgid "Unknown pin %i." +msgstr "不明なピン %i" + +#: serial/unix.c:694 +#, c-format +msgid "Could not get level of pin %i (%m)." +msgstr "ピン %i のレベルを取得することが出来ませんでした (%m)。" + +#: serial/unix.c:729 +#, c-format +msgid "Could not set level of pin %i to %i (%m)." +msgstr "ピン %i から %i のレベルを設定することが出来ませんでした (%m)。" + +#: serial/unix.c:754 +#, c-format +msgid "Could not flush '%s' (%m)." +msgstr "フラッシュ '%s' できませんでした (%m)。" + +#: serial/unix.c:867 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "ボーレートを %d にセットできませんでした。" + +#: usb/libusb.c:242 +#, c-format +msgid "Could not open USB device (%m)." +msgstr "USB デバイスを開くことが出来ませんでした (%m)。" + +#: usb/libusb.c:254 +msgid "Camera is already in use." +msgstr "既にカメラは使用中です。" + +#: usb/libusb.c:259 +#, c-format +msgid "Device has driver '%s' attached, detaching it now." +msgstr "ドライバ '%s' がデバイスを使用しています。今すぐ解放します。" + +#: usb/libusb.c:262 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Kernel ドライバ '%s' を解放できませんでした。" + +#: usb/libusb.c:267 +msgid "Could not query kernel driver of device." +msgstr "Kernel のデバイス・ドライバを照会できませんでした。" + +#: usb/libusb.c:275 +#, c-format +msgid "Could not claim interface %d (%m). Make sure no other program or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "インタフェース %d (%m) と断定できませんでした。他のプログラムまたは (接頭子が %s のような) Kernel モジュールがこのデバイスを使用していないか確認して、そのデバイスの読み込み/書き込みをしてみて下さい。" + +#: usb/libusb.c:293 +#, c-format +msgid "Could not release interface %d (%m)." +msgstr "インタフェース %d を解放することが出来ませんでした (%m)。" + +#: usb/libusb.c:306 +#, c-format +msgid "Could not reset USB port (%m)." +msgstr "USB ポートをリセットすることが出来ませんでした (%m)。" + +#: usb/libusb.c:333 +#, c-format +msgid "Could not close USB port (%m)." +msgstr "USB ポートを閉じることが出来ませんでした (%m)。" + +#: usb/libusb.c:582 +#, c-format +msgid "Could not set config %d/%d (%m)" +msgstr "設定 %d/%d を反映することが出来ませんでした (%m)。" + +#: usb/libusb.c:615 +#, fuzzy, c-format +msgid "Could not set altsetting from %d to %d (%m)" +msgstr "設定 %d/%d を反映することが出来ませんでした (%m)。" + +#: usb/libusb.c:707 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "提供ベンダーまたは製品 ID (0x%x,0x%x) は正しくありません。" + +#: usb/libusb.c:743 +#, c-format +msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +msgstr "USB デバイス (ベンダー:0x%x 製品: 0x%x) はマス・ストレージ用デバイスで、gphoto2 では取り扱えません。参考情報: %s" + +#: usb/libusb.c:786 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "USB デバイス (ベンダー:0x%x 製品: 0x%x) が見つかりませんでした。このデバイスがコンピュータに接続されているか確認して下さい。" + +#: usb/libusb.c:1019 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "USB デバイス (Class: 0x%x, SubClass: 0x%x, プロトコル: 0x%x) が見つかりませんでした。このデバイスがコンピュータに接続されているか確認して下さい。" + +#: disk/disk.c:179 disk/disk.c:229 disk/disk.c:270 disk/disk.c:302 +#: disk/disk.c:325 +#, c-format +msgid "Media '%s'" +msgstr "メディア「%s」" + +#: disk/disk.c:180 +msgid "(unknown)" +msgstr "(不明)" + +#~ msgid "Could not load any io-library because '%s' could not be opened (%m)" +#~ msgstr "'%s' を開くことができないのでいくつかの I/O ライブラリを読み込めませんでした (%m)" + +#, fuzzy +#~ msgid "Could not find some functions in '%s' (%s)" +#~ msgstr "'%s' を閉じることが出来ませんでした (%m)。" + +#, fuzzy +#~ msgid "Could not load list (%s)" +#~ msgstr "'%s' を閉じることが出来ませんでした (%m)。" + +#, fuzzy +#~ msgid "Could not load '%s' ('%s')" +#~ msgstr "'%s' を閉じることが出来ませんでした (%m)。" + +#~ msgid "Camera is supported by USB Storage driver." +#~ msgstr "USB ストレージ・ドライバでサポートしているカメラです。" + +#~ msgid "open" +#~ msgstr "open" + +#~ msgid "close" +#~ msgstr "close" + +#~ msgid "write" +#~ msgstr "write" + +#~ msgid "read" +#~ msgstr "read" + +#~ msgid "check_int" +#~ msgstr "check_int" + +#~ msgid "update" +#~ msgstr "update" + +#~ msgid "get_pin" +#~ msgstr "get_pin" + +#~ msgid "set_pin" +#~ msgstr "set_pin" + +#~ msgid "send_break" +#~ msgstr "send_break" + +#~ msgid "flush" +#~ msgstr "flush" + +#~ msgid "find_device" +#~ msgstr "find_device" + +#~ msgid "find_device_by_class" +#~ msgstr "find_device_by_class" + +#~ msgid "msg_write" +#~ msgstr "msg_write" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/nl.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/nl.po new file mode 100644 index 00000000..75b530e6 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/nl.po @@ -0,0 +1,546 @@ +# Dutch translations for libgphoto2_port. +# This file is distributed under the same license as the libgphoto2 package. +# +# "To noč sem jo videl!" +# +# Kurt De Bree , 2006. +# Benno Schulenberg , 2008, 2012, 2013, 2014, 2016. +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port-2.5.10\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-02-22 21:02+0100\n" +"PO-Revision-Date: 2016-09-05 11:35+0100\n" +"Last-Translator: Benno Schulenberg \n" +"Language-Team: Dutch \n" +"Language: nl\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Lokalize 1.0\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Algemene poort" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Geen fout" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Ongespecificeerde fout" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Invoer-/uitvoerprobleem" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Ongeldige parameters" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Niet-ondersteunde actie" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Vaste limiet is overschreden" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Tijdsoverschrijding tijdens lezen van of schrijven naar de poort" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Seriële poort wordt niet ondersteund" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "USB-poort wordt niet ondersteund" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Onbekende poort" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Onvoldoende geheugen beschikbaar" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Fout bij het laden van een bibliotheek" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Fout bij het initialiseren van de poort" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Fout bij het lezen van de poort" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Fout bij het schrijven naar de poort" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Fout tijdens het bijwerken van de poortinstellingen" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Fout tijdens het instellen van de poortsnelheid" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Fout tijdens het wissen van de 'halt'-toestand op de USB-poort" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Kan op de USB-poort het gevraagde apparaat niet vinden" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Kan het USB-apparaat niet claimen" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Kan het apparaat niet vergrendelen" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "'libhal'-fout" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Onbekende fout" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Actie '%s' wordt niet ondersteund door dit apparaat" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "De poort is nog niet geïnitialiseerd" + +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "laag" + +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "hoog" + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "Geen foutbeschrijving beschikbaar" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "Media '%s'" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Kan apparaat '%s' niet vergrendelen" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Apparaat '%s' is vergrendeld door PID %d" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Apparaat '%s' kan niet worden vergrendeld (dev_lock gaf %d terug)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Apparaat '%s' kan niet worden ontgrendeld." + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Apparaat '%s' kan niet worden ontgrendeld aangezien het vergrendeld is door PID %d." + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Apparaat '%s' kan niet worden ontgrendeld (dev_unlock gaf %d terug)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "Seriële poort %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "Seriëlepoortapparaat" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Kan '%s' niet openen (%s)." + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Kan '%s' niet sluiten (%s)." + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Kan niet naar poort schrijven (%s)." + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "Pariteitsfout." + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Onverwachte pariteitsantwoordvolgorde 0xff 0x%02x." + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "Onbekende pin %i." + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Kan het niveau van pin %i niet bepalen (%s)." + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Kan het niveau van pin %i niet op %i instellen (%s)." + +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Kan '%s' niet leegmaken (%s)." + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Kan de baudrate niet instellen op %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "USB-massaopslag, directe invoer/uitvoer" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Kan '%s' niet openen (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Kan '%s' niet sluiten (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Kan niet springen naar positie %x in '%s' (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Kan niet naar '%s' schrijven (%m)" + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Kan niet uit '%s' lezen (%m)." + +#: usb/libusb.c:260 libusb1/libusb1.c:373 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Kan USB-apparaat niet openen (%s)." + +#: usb/libusb.c:273 libusb1/libusb1.c:382 +msgid "Camera is already in use." +msgstr "Camera is reeds in gebruik." + +#: usb/libusb.c:281 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Kan het kernelstuurprogramma '%s' van het camera-apparaat niet onthechten." + +#: usb/libusb.c:286 libusb1/libusb1.c:397 +msgid "Could not query kernel driver of device." +msgstr "Kan het kernelstuurprogramma van het apparaat niet ondervragen." + +#: usb/libusb.c:295 libusb1/libusb1.c:404 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Kan interface %d niet claimen (%s). Zorg ervoor dat geen ander programma (%s) of kernelmodule (zoals %s) het apparaat gebruikt en dat u lees- en schrijfrechten voor dit apparaat hebt." + +#: usb/libusb.c:307 libusb1/libusb1.c:415 +msgid "MacOS PTPCamera service" +msgstr "MacOS PTP-camera-service" + +#: usb/libusb.c:309 libusb1/libusb1.c:417 +msgid "unknown libgphoto2 using program" +msgstr "onbekende 'libgphoto2' gebruikt programma" + +#: usb/libusb.c:326 libusb1/libusb1.c:484 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Kan interface %d niet vrijgeven (%s)." + +#: usb/libusb.c:341 libusb1/libusb1.c:498 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Kan USB-poort niet resetten (%s)." + +#: usb/libusb.c:371 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Kan USB-poort niet sluiten (%s)." + +#: usb/libusb.c:632 libusb1/libusb1.c:839 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Kan configuratie %d/%d niet instellen (%s)" + +#: usb/libusb.c:663 libusb1/libusb1.c:868 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Kan 'alt'-instelling niet wijzigen van %d naar %d (%s)" + +#: usb/libusb.c:752 libusb1/libusb1.c:1033 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "Het opgegeven leveranciers- of product-ID (0x%x,0x%x) is ongeldig." + +#: usb/libusb.c:823 usb/libusb.c:909 libusb1/libusb1.c:1002 +#: libusb1/libusb1.c:1094 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Kan USB-apparaat (leverancier 0x%x, product 0x%x) niet vinden. Zorg ervoor dat het apparaat aan de computer aangesloten is." + +#: usb/libusb.c:1202 libusb1/libusb1.c:1383 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Kan USB-apparaat (klasse 0x%x, subklasse 0x%x, protocol 0x%x) niet vinden. Zorg ervoor dat het apparaat aan de computer aangesloten is." + +#: libusb1/libusb1.c:391 +msgid "Could not detach kernel driver of camera device." +msgstr "Kan het kernelstuurprogramma van het camera-apparaat niet onthechten." + +#: libusb1/libusb1.c:507 +msgid "Could not reattach kernel driver of camera device." +msgstr "Kan het kernelstuurprogramma van het camera-apparaat niet opnieuw aanhechten." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Apparaat '%s' is vergrendeld door een ander programma." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Kan '%s' niet vergrendelen (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Kan '%s' niet ontgrendelen (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "USB-massaopslag, rauwe SCSI-toegang" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Kan SCSI-commando niet verzenden naar '%s' (%m)." + +#~ msgid "Called for filename '%s'." +#~ msgstr "Gevraagde bestandsnaam is '%s'." + +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "Kan '%s' niet laden: '%s'." + +#~ msgid "Could not find some functions in '%s': '%s'." +#~ msgstr "Kan sommige functies in '%s' niet vinden: '%s'." + +#~ msgid "'%s' already loaded" +#~ msgstr "'%s' is al geladen" + +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "Kan poortstuurprogrammalijst niet laden: '%s'." + +#~ msgid "Loaded '%s' ('%s') from '%s'." +#~ msgstr "'%s' ('%s') is geladen uit '%s'." + +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "Laden (met 'ltdl') van invoer-/uitvoerstuurprogramma's uit '%s'..." + +#~ msgid "Counting entries (%i available)..." +#~ msgid_plural "Counting entries (%i available)..." +#~ msgstr[0] "Tellen van items (%i beschikbaar)..." +#~ msgstr[1] "Tellen van items (%i beschikbaar)..." + +#~ msgid "%i regular entry available." +#~ msgid_plural "%i regular entries available." +#~ msgstr[0] "%i normaal item is beschikbaar." +#~ msgstr[1] "%i normale items zijn beschikbaar." + +#~ msgid "Looking for path '%s' (%i entry available)..." +#~ msgid_plural "Looking for path '%s' (%i entries available)..." +#~ msgstr[0] "Zoeken naar pad '%s' (%i item beschikbaar)..." +#~ msgstr[1] "Zoeken naar pad '%s' (%i items beschikbaar)..." + +#~ msgid "Starting regex search for '%s'..." +#~ msgstr "Begin van zoeken (met reguliere expressie) naar '%s'..." + +#~ msgid "Trying '%s'..." +#~ msgstr "Proberen van '%s'..." + +#~ msgid "regcomp failed" +#~ msgstr "regcomp() is mislukt" + +#~ msgid "re_match failed (%i)" +#~ msgstr "re_match() is mislukt (%i)" + +#~ msgid "regexec failed" +#~ msgstr "regexec() is mislukt" + +#~ msgid "Looking up entry '%s'..." +#~ msgstr "Zoeken van item '%s'..." + +#~ msgid "Getting info of entry %i (%i available)..." +#~ msgid_plural "Getting info of entry %i (%i available)..." +#~ msgstr[0] "Ontvangen van info over item %i (%i beschikbaar)..." +#~ msgstr[1] "Ontvangen van info over item %i (%i beschikbaar)..." + +#~ msgid "Creating new device..." +#~ msgstr "Aanmaken van nieuw apparaat..." + +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "Kan '%s' niet laden ('%s')." + +#~ msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +#~ msgstr "Kan 'gp_port_library_operations' niet vinden in '%s' ('%s')" + +#~ msgid "Opening %s port..." +#~ msgstr "Openen van de %s-poort..." + +#~ msgid "Closing port..." +#~ msgstr "Sluiten van poort..." + +#~ msgid "Resetting port..." +#~ msgstr "Resetten van poort..." + +#~ msgid "Freeing port..." +#~ msgstr "Vrijmaken van poort..." + +#~ msgid "Writing %i=0x%x byte(s) to port..." +#~ msgstr "Schrijven van %i=0x%x byte(s) naar de poort..." + +#~ msgid "Could only write %i out of %i byte" +#~ msgid_plural "Could only write %i out of %i bytes" +#~ msgstr[0] "Kon slechts %i van %i byte schrijven" +#~ msgstr[1] "Kon slechts %i van %i bytes schrijven" + +#~ msgid "Reading %i=0x%x byte from port..." +#~ msgid_plural "Reading %i=0x%x bytes from port..." +#~ msgstr[0] "Lezen van %i=0x%x byte van de poort..." +#~ msgstr[1] "Lezen van %i=0x%x bytes van de poort..." + +#~ msgid "Could only read %i out of %i byte" +#~ msgid_plural "Could only read %i out of %i byte(s)" +#~ msgstr[0] "Kon slechts %i van %i byte lezen" +#~ msgstr[1] "Kon slechts %i van %i bytes lezen" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint..." +#~ msgstr[0] "Lezen van %i=0x%x byte van interrupt-eindpunt..." +#~ msgstr[1] "Lezen van %i=0x%x bytes van interrupt-eindpunt..." + +#~ msgid "Could only read %i out of %i byte(s)" +#~ msgstr "Kon slechts %i van %i byte(s) lezen" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint (fast)..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +#~ msgstr[0] "Lezen van %i=0x%x byte van interrupt-eindpunt (snel)..." +#~ msgstr[1] "Lezen van %i=0x%x bytes van interrupt-eindpunt (snel)..." + +#~ msgid "Setting timeout to %i millisecond(s)..." +#~ msgstr "Instellen van tijdslimiet op %i milliseconde(n)..." + +#~ msgid "Getting timeout..." +#~ msgstr "Bepalen van tijdslimiet..." + +#~ msgid "Current timeout: %i milliseconds" +#~ msgstr "Huidige tijdslimiet: %i milliseconden" + +#~ msgid "Setting settings..." +#~ msgstr "Doorvoeren van instellingen..." + +#~ msgid "Getting level of pin %i..." +#~ msgstr "Bepalen van het niveau van pin %i..." + +#~ msgid "Level of pin %i: %i" +#~ msgstr "Niveau van pin %i: %i" + +#~ msgid "Setting pin %i (%s: '%s') to '%s'..." +#~ msgstr "Instellen van pin %i (%s: '%s') op '%s'..." + +#~ msgid "Sending break (%i milliseconds)..." +#~ msgstr "Verzenden van 'break' (%i milliseconden)..." + +#~ msgid "Flushing port..." +#~ msgstr "Leegmaken van poort..." + +#~ msgid "Clear halt..." +#~ msgstr "Wissen van 'halt'-toestand..." + +#~ msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Schrijven van bericht (verzoek=0x%x waarde=0x%x index=0x%x omvang=%i=0x%x)..." + +#~ msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Lezen van bericht (verzoek=0x%x waarde=0x%x index=0x%x omvang=%i=0x%x)..." + +#~ msgid "Device has driver '%s' attached." +#~ msgstr "Het apparaat heeft als stuurprogramma '%s' aangehecht." + +#~ msgid "Device has driver '%s' attached, detaching it now." +#~ msgstr "Het apparaat heeft als stuurprogramma '%s' aangehecht; dit wordt nu onthecht." + +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "Het USB-apparaat (leverancier 0x%x, product 0x%x) is een massa-opslagmedium en zal misschien niet werken met gphoto2. Referentie: %s" + +#~ msgid "Device has a kernel driver attached (%d), detaching it now." +#~ msgstr "Het apparaat heeft een stuurprogramma aangehecht (%d); deze wordt nu onthecht." + +#~ msgid "Could not open USB device (%m)." +#~ msgstr "Kan USB-apparaat niet openen (%m)." + +#~ msgid "Could not claim interface %d (%m). Make sure no other program or kernel module (such as %s) is using the device and you have read/write access to the device." +#~ msgstr "Kan interface %d niet claimen (%m). Zorg ervoor dat geen ander programma of kernelmodule (zoals %s) het apparaat gebruikt en dat u lees- en schrijfrechten voor dit apparaat hebt." + +#~ msgid "Could not release interface %d (%m)." +#~ msgstr "Kan interface %d niet vrijgeven (%m)." + +#~ msgid "Could not reset USB port (%m)." +#~ msgstr "Kan USB-poort niet resetten (%m)." + +#~ msgid "Could not set config %d/%d (%m)" +#~ msgstr "Kan configuratie %d/%d niet instellen (%m)" + +#~ msgid "Could not set altsetting from %d to %d (%m)" +#~ msgstr "Kan 'alt'-instelling niet wijzigen van %d naar %d (%m)" + +#~ msgid "(unknown)" +#~ msgstr "(onbekend)" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/pl.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/pl.po new file mode 100644 index 00000000..b8a18388 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/pl.po @@ -0,0 +1,363 @@ +# Polish translation for libgphoto2_port. +# Copyright (C) 2005, 2006, 2007, 2010, 2012, 2013, 2014, 2016 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# Jakub Bogusz , 2005-2016. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.10\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-02-22 21:02+0100\n" +"PO-Revision-Date: 2016-03-24 22:19+0100\n" +"Last-Translator: Jakub Bogusz \n" +"Language-Team: Polish \n" +"Language: pl\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Ogólny port" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Brak błędu" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Nieokreślony błąd" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Problem we/wy" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Złe parametry" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Nieobsługiwana operacja" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Przekroczony ustalony limit" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Przekroczony limit czasu przy odczycie lub zapisie do portu" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Port szeregowy nie jest obsługiwany" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "Port USB nie jest obsługiwany" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Nieznany port" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Brak pamięci" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Błąd podczas ładowania biblioteki" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Błąd podczas inicjalizacji portu" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Błąd podczas odczytu z portu" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Błąd podczas zapisu do portu" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Błąd podczas uaktualniania ustawień portu" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Błąd podczas ustawiania prędkości portu szeregowego" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Błąd podczas zerowania warunku stopu na pocie USB" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Nie udało się odnaleźć żądanego urządzenia na porcie USB" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Nie udało się zawłaszczyć urządzenia USB" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Nie udało się zablokować urządzenia" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "Błąd libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Nieznany błąd" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Operacja '%s' nie jest obsługiwana przez to urządzenie" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "Port nie został jeszcze zainicjowany" + +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "niski" + +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "wysoki" + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "Opis błędu niedostępny" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "Nośnik '%s'" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Nie udało się zablokować urządzenia '%s'" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Urządzenie '%s' jest zablokowane przez pid %d" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Urządzenie '%s' nie może zostać zablokowane (dev_lock zwróciło %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Urządzenie '%s' nie może zostać odblokowane." + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Urządzenie '%s' nie może zostać odblokowane, bo jest zablokowane przez pid %d." + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Urządzenie '%s' nie może zostać odblokowane (dev_unlock zwróciło %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "Port szeregowy %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "Urządzenei portu szeregowego" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Nie udało się otworzyć '%s' (%s)." + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Nie udało się zamknąć '%s' (%s)." + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Nie udał się zapis do portu (%s)" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "Błąd parzystości." + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Nieoczekiwana sekwencja odpowiedzi parzystości 0xff 0x%02x." + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "Nieznany pin %i." + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Nie udało się pobrać poziomu pinu %i (%s)." + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Nie udało się ustawić poziomu pinu %i na %i (%s)." + +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Nie udało się opróżnić '%s' (%s)." + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Nie udało się ustawić liczby bodów na %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "Bezpośrednie we/wy urządzeń USB Mass Storage" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Nie udało się otworzyć '%s' (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Nie udało się zamknąć '%s' (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Nie udało się zmienić położenia na %x w '%s' (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Nie udał się zapis do '%s' (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Nie udał się odczyt z '%s' (%m)." + +#: usb/libusb.c:260 libusb1/libusb1.c:373 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Nie udało się otworzyć urządzenia USB (%s)." + +#: usb/libusb.c:273 libusb1/libusb1.c:382 +msgid "Camera is already in use." +msgstr "Aparat jest już w użyciu." + +#: usb/libusb.c:281 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Nie udało się odłączyć sterownika jądra '%s' od aparatu." + +#: usb/libusb.c:286 libusb1/libusb1.c:397 +msgid "Could not query kernel driver of device." +msgstr "Nie udało się zapytać jądra o sterownik urządzenia." + +#: usb/libusb.c:295 libusb1/libusb1.c:404 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Nie udało się zawłaszczyć interfejsu %d (%s). Należy upewnić się, czy żaden inny program (%s) lub moduł jądra (taki jak %s) nie używa tego urządzenia i mamy prawa odczytu/zapisu do urządzenia." + +#: usb/libusb.c:307 libusb1/libusb1.c:415 +msgid "MacOS PTPCamera service" +msgstr "Usługa MacOS PTPCamera" + +#: usb/libusb.c:309 libusb1/libusb1.c:417 +msgid "unknown libgphoto2 using program" +msgstr "nieznany program korzystający z libgphoto2" + +#: usb/libusb.c:326 libusb1/libusb1.c:484 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Nie udało się oddać interfejsu %d (%s)." + +#: usb/libusb.c:341 libusb1/libusb1.c:498 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Nie udało się zresetować portu USB (%s)." + +#: usb/libusb.c:371 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Nie udało się zamknąć portu USB (%s)." + +#: usb/libusb.c:632 libusb1/libusb1.c:839 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Nie udało się ustawić konfiguracji %d/%d (%s)" + +#: usb/libusb.c:663 libusb1/libusb1.c:868 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Nie udało się przestawić altsetting z %d na %d (%s)" + +#: usb/libusb.c:752 libusb1/libusb1.c:1033 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "Podany identyfikator producenta lub produktu (0x%x,0x%x) nie jest poprawny." + +#: usb/libusb.c:823 usb/libusb.c:909 libusb1/libusb1.c:1002 +#: libusb1/libusb1.c:1094 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Nie udało się odnaleźć urządzenia USB (producent 0x%x, produkt 0x%x). Należy upewnić się, że to urządzenie jest podłączone do komputera." + +#: usb/libusb.c:1202 libusb1/libusb1.c:1383 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Nie udało się odnaleźć urządzenia USB (klasa 0x%x, podklasa 0x%x, protokół 0x%x). Należy upewnić się, że to urządzenie jest podłączone do komputera)." + +#: libusb1/libusb1.c:391 +msgid "Could not detach kernel driver of camera device." +msgstr "Nie udało się odłączyć sterownika jądra od aparatu." + +#: libusb1/libusb1.c:507 +msgid "Could not reattach kernel driver of camera device." +msgstr "Nie udało się ponownie podłączyć sterownika jądra do aparatu." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Urządzenie '%s' jest zablokowane przez inną aplikację." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Nie udało się zablokować '%s' (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Nie udało się odblokować '%s' (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "Bezpośrednie operacje SCSI urządzeń USB Mass Storage" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Nie udało się wysłać polecenia SCSI do '%s' (%m)." diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/pt_BR.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/pt_BR.po new file mode 100644 index 00000000..ae761b7d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/pt_BR.po @@ -0,0 +1,520 @@ +# Brazilian Portuguese translation of libgphoto2. +# Copyright (C) 2002-2019 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# Evandro Gardenali , 2002. +# Fabrício Godoy , 2010, 2016, 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.23\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2019-05-04 15:58+0200\n" +"PO-Revision-Date: 2019-12-24 20:20-0300\n" +"Last-Translator: Fabrício Godoy \n" +"Language-Team: Brazilian Portuguese \n" +"Language: pt_BR\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:411 +msgid "Generic Port" +msgstr "Porta genérica" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Sem erro" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Erro não especificado" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Problema de E/S" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Parâmetros incorretos" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Operação sem suporte" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "O limite definido foi excedido" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Tempo esgotado ao ler ou gravar da/para a porta" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Porta serial sem suporte" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "Porta USB sem suporte" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Porta desconhecida" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Memória cheia" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Erro ao carregar uma biblioteca" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Erro ao inicializar a porta" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Erro ao ler da porta" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Erro ao escrever na porta" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Erro ao atualizar as configurações da porta" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Erro ao ajustar a velocidade da porta serial" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Erro ao apagar uma condição de desligamento na porta USB" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Não foi possível localizar o dispositivo especificado na porta USB" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Não foi possível contactar o dispositivo USB" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Não foi possível travar o dispositivo" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "erro no libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Erro desconhecido" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Não há suporte a operação \"%s\" por esse dispositivo" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "A porta ainda não foi inicializada" + +#: libgphoto2_port/gphoto2-port.c:686 +msgid "low" +msgstr "baixo" + +#: libgphoto2_port/gphoto2-port.c:687 +msgid "high" +msgstr "alto" + +#: libgphoto2_port/gphoto2-port.c:1215 +msgid "No error description available" +msgstr "Descrição do erro não disponível" + +#: disk/disk.c:149 disk/disk.c:150 disk/disk.c:228 disk/disk.c:229 +#: disk/disk.c:269 disk/disk.c:292 +#, c-format +msgid "Media '%s'" +msgstr "Mídia \"%s\"" + +#: serial/unix.c:230 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Não foi possível travar o dispositivo \"%s\"" + +#: serial/unix.c:240 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "O dispositivo \"%s\" está travado pelo PID %d" + +#: serial/unix.c:243 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "O dispositivo \"%s\" não pôde ser travado (dev_lock retornou %d)" + +#: serial/unix.c:272 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "O dispositivo \"%s\" não pôde ser destravado." + +#: serial/unix.c:284 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "O dispositivo \"%s\" não pôde ser destravado pois está travado pelo PID %d." + +#: serial/unix.c:288 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "O dispositivo \"%s\" não pôde ser destravado (dev_unlock retornou %d)" + +#: serial/unix.c:346 +#, c-format +msgid "Serial Port %i" +msgstr "Porta serial %i" + +#: serial/unix.c:359 +msgid "Serial Port Device" +msgstr "Dispositivo de porta serial" + +#: serial/unix.c:441 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Falha ao abrir \"%s\" (%s)." + +#: serial/unix.c:461 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Não foi possível fechar \"%s\" (%s)." + +#: serial/unix.c:517 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Não foi possível gravar na porta (%s)" + +#: serial/unix.c:594 +msgid "Parity error." +msgstr "Erro de paridade." + +#: serial/unix.c:598 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Sequência de resposta de paridade inesperada 0xff 0x%02x." + +#: serial/unix.c:641 +#, c-format +msgid "Unknown pin %i." +msgstr "Pino desconhecido %i." + +#: serial/unix.c:663 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Não foi possível obter o nível do pino %i (%s)." + +#: serial/unix.c:699 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Não foi possível ajustar o nível do pino %i para %i (%s)." + +#: serial/unix.c:726 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Não foi possível descarregar \"%s\" (%s)." + +#: serial/unix.c:838 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Não foi possível ajustar a taxa de baud para %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "E/S direta para armazenamento em massa USB" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Falhou ao abrir \"%s\" (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Não foi possível fechar \"%s\" (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Não foi possível buscar até a posição %x em \"%s\" (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Não foi possível escrever para \"%s\" (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Não foi possível ler de \"%s\" (%m)." + +#: usb/libusb.c:264 libusb1/libusb1.c:401 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Não foi possível abrir o dispositivo USB (%s)." + +#: usb/libusb.c:277 libusb1/libusb1.c:410 +msgid "Camera is already in use." +msgstr "A câmera já está em uso." + +#: usb/libusb.c:285 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Não foi possível desanexar o driver de kernel \"%s\" do dispositivo de câmera." + +#: usb/libusb.c:290 libusb1/libusb1.c:425 +msgid "Could not query kernel driver of device." +msgstr "Não foi possível examinar o driver de kernel do dispositivo." + +#: usb/libusb.c:299 libusb1/libusb1.c:432 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Não foi possível chamar a interface %d (%s). Tenha certeza de que nenhum outro programa (%s) ou módulo do kernel (como %s) está usando o dispositivo, e que você tem acesso de leitura e escrita para o dispositivo." + +#: usb/libusb.c:311 libusb1/libusb1.c:443 +msgid "MacOS PTPCamera service" +msgstr "Serviço PTPCamera MacOS" + +#: usb/libusb.c:313 libusb1/libusb1.c:445 +msgid "unknown libgphoto2 using program" +msgstr "O programa está usando uma libgphoto2 desconhecida" + +#: usb/libusb.c:330 libusb1/libusb1.c:514 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Não foi possível liberar a interface %d (%s)." + +#: usb/libusb.c:345 libusb1/libusb1.c:528 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Não foi possível reiniciar a porta USB (%s)." + +#: usb/libusb.c:375 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Não foi possível fechar a porta USB (%s)." + +#: usb/libusb.c:637 libusb1/libusb1.c:971 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Não foi possível definir a configuração %d/%d (%s)" + +#: usb/libusb.c:668 libusb1/libusb1.c:1000 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Não foi possível definir a configuração alternativa de %d para %d (%s)" + +#: usb/libusb.c:757 libusb1/libusb1.c:1165 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "O fabricante ou o ID do produto (0x%x,0x%x) não é válido." + +#: usb/libusb.c:828 usb/libusb.c:914 libusb1/libusb1.c:1134 +#: libusb1/libusb1.c:1226 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Não foi possível localizar o dispositivo USB (fabricante 0x%x, produto 0x%x). Tenha certeza de que esse dispositivo está conectado ao computador." + +#: usb/libusb.c:1207 libusb1/libusb1.c:1515 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Não foi possível localizar o dispositivo USB (classe 0x%x, subclasse 0x%x, protocolo 0x%x). Tenha certeza de que esse dispositivo está conectado ao computador." + +#: libusb1/libusb1.c:419 +msgid "Could not detach kernel driver of camera device." +msgstr "Não foi possível desanexar o driver de kernel do dispositivo de câmera." + +#: libusb1/libusb1.c:537 +msgid "Could not reattach kernel driver of camera device." +msgstr "Não foi possível reanexar o driver de kernel do dispositivo de câmera." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "O dispositivo \"%s\" está bloqueado por outro aplicativo." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Falha ao bloquear \"%s\" (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Falha ao desbloquear \"%s\" (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "Armazenamento em massa USB bruto SCSI" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Não foi possível enviar um comando SCSI para \"%s\" (%m)." + +#~ msgid "Called for filename '%s'." +#~ msgstr "Chamou pelo arquivo \"%s\"." + +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "Não foi possível carregar \"%s\": \"%s\"." + +#~ msgid "Could not find some functions in '%s': '%s'." +#~ msgstr "Não foi possível localizar algumas funções em \"%s\": \"%s\"." + +#~ msgid "'%s' already loaded" +#~ msgstr "\"%s\" já está carregado" + +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "Não foi possível carregar a lista de drivers porta: \"%s\"." + +#~ msgid "Loaded '%s' ('%s') from '%s'." +#~ msgstr "Carregado \"%s\" (\"%s\") de \"%s\"." + +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "Usando LTDL para carregar drivers de E/S de \"%s\"..." + +#~ msgid "Counting entries (%i available)..." +#~ msgstr "Contando entradas (%i disponível)..." + +#~ msgid "%i regular entries available." +#~ msgstr "%i entradas regulares disponíveis." + +#~ msgid "Looking for path '%s' (%i entries available)..." +#~ msgstr "Procurando pelo caminho \"%s\" (%i entradas disponíveis)..." + +#~ msgid "Starting regex search for '%s'..." +#~ msgstr "Iniciando busca, por REGEX, por \"%s\"..." + +#~ msgid "Trying '%s'..." +#~ msgstr "Tentando \"%s\"..." + +#~ msgid "regcomp failed" +#~ msgstr "falha ao computar expressão" + +#~ msgid "re_match failed (%i)" +#~ msgstr "falha ao comparar expressão (%i)" + +#~ msgid "regexec failed" +#~ msgstr "falha ao executar expressão" + +#~ msgid "Looking up entry '%s'..." +#~ msgstr "Procurando entrada \"%s\"..." + +#~ msgid "Getting info of entry %i (%i available)..." +#~ msgstr "Obtendo informações da entrada %i (%i disponíveis)..." + +#~ msgid "Creating new device..." +#~ msgstr "Criando novo dispositivo..." + +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "Não foi possível carregar \"%s\" (\"%s\")." + +#~ msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +#~ msgstr "Não foi possível localizar \"gp_port_library_operations\" em \"%s\" (\"%s\")" + +#~ msgid "Opening %s port..." +#~ msgstr "Abrindo a porta %s..." + +#~ msgid "Closing port..." +#~ msgstr "Fechando porta..." + +#~ msgid "Freeing port..." +#~ msgstr "Liberando porta..." + +#~ msgid "Writing %i=0x%x byte(s) to port..." +#~ msgstr "Escrevendo %i=0x%x byte(s) para a porta..." + +#~ msgid "Could only write %i out of %i byte(s)" +#~ msgstr "Foi possível escrever apenas %i de %i byte(s)" + +#~ msgid "Reading %i=0x%x bytes from port..." +#~ msgstr "Lendo %i=0x%x bytes da porta..." + +#~ msgid "Could only read %i out of %i byte(s)" +#~ msgstr "Foi possível apenas ler %i de %i byte(s)" + +#~ msgid "Reading %i=0x%x bytes from interrupt endpoint..." +#~ msgstr "Lendo %i=0x%x bytes da ponta de interrupção..." + +#~ msgid "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +#~ msgstr "Lendo %i=0x%x bytes da ponta de interrupção (rápido)..." + +#~ msgid "Setting timeout to %i millisecond(s)..." +#~ msgstr "Definindo o tempo limite para %i milisegundo(s)..." + +#~ msgid "Getting timeout..." +#~ msgstr "Obtendo tempo limite..." + +#~ msgid "Current timeout: %i milliseconds" +#~ msgstr "Tempo limite atual: %i milisegundos" + +#~ msgid "Setting settings..." +#~ msgstr "Definindo configurações..." + +#~ msgid "Getting level of pin %i..." +#~ msgstr "Obtendo nível do pino %i..." + +#~ msgid "Level of pin %i: %i" +#~ msgstr "Nível do pino %i: %i" + +#~ msgid "Setting pin %i (%s: '%s') to '%s'..." +#~ msgstr "Definindo pino %i (%s: \"%s\") para \"%s\"..." + +#~ msgid "Sending break (%i milliseconds)..." +#~ msgstr "Enviando interrupção (%i milisegundos)..." + +#~ msgid "Flushing port..." +#~ msgstr "Descarregando porta..." + +#~ msgid "Clear halt..." +#~ msgstr "Limpar desligamento..." + +#~ msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Escrevendo mensagem (requisição=0x%x valor=0x%x índice=0x%x tamanho=%i=0x%x)..." + +#~ msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Lendo mensagem (requisição=0x%x valor=0x%x índice=0x%x tamanho=%i=0x%x)..." + +#~ msgid "msg_read" +#~ msgstr "ler mensagem" + +#~ msgid "Device has driver '%s' attached, detaching it now." +#~ msgstr "O dispositivo está com o driver \"%s\" anexado, desanexando agora." + +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "O dispositivo USB (fabricante 0x%x, produto 0x%x) é um dispositivo de armazenamento em massa, e pode não funcionar com o gphoto2. Referência: %s" + +#~ msgid "(unknown)" +#~ msgstr "(desconhecido)" + +#~ msgid "Loading io-drivers from '%s' without ltdl..." +#~ msgstr "Carregando drivers de E/S de \"%s\" sem LTDL..." + +#~ msgid "Could not load any io-library because '%s' could not be opened (%m)" +#~ msgstr "Não foi possível carregar nenhuma biblioteca de E/S porque \"%s\" não pôde ser aberto (%m)" + +#~ msgid "'%s' is not a library (%s)" +#~ msgstr "\"%s\" não é uma biblioteca (%s)" + +#~ msgid "Could not find some functions in '%s' (%s)" +#~ msgstr "Não foi possível localizar algumas funções em \"%s\" (%s)" + +#~ msgid "Could not load list (%s)" +#~ msgstr "Não foi possível carregar lista (%s)." + +#~ msgid "Loaded '%s' (%s) from '%s'" +#~ msgstr "Carregado \"%s\" (%s) de \"%s\"" + +#~ msgid "Could not load '%s' ('%s')" +#~ msgstr "Não foi possível carregar \"%s\" (\"%s\")" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/ru.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/ru.po new file mode 100644 index 00000000..329a16a8 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/ru.po @@ -0,0 +1,622 @@ +# translation of gphoto2-2.4.9.ru.po to Russian +# Russian translations for libgphoto2 +# This file is distributed under the same license as the libgphoto2 package. +# +# Valek Filippov , 2005. +# Вячеслав Диконов (Vyacheslav Dikonov) , 2005. +# Yuri Kozlov , 2010, 2012, 2013, 2014, 2016. +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.10\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-02-22 21:02+0100\n" +"PO-Revision-Date: 2016-03-25 18:26+0300\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"Language: ru\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.5\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Обычный порт" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Ошибок нет" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Неуказанная ошибка" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Проблема ввода/вывода" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Неверные аргументы" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Неподдерживаемое действие" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Превышен фиксированный предел" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Истекло время ожидания ответа при чтении или записи данных в порт" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Нет поддержки последовательного порта" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "Нет поддержки порта USB" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Неизвестный порт" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Недостаточно памяти" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Ошибка загрузки библиотеки функций" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Ошибка инициализации порта" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Ошибка чтения из порта" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Ошибка записи в порт" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Ошибка обновления настроек порта" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Ошибка установки скорости передачи через последовательный порт" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Ошибка устранения halt-условия на порту USB" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Не найдено запрошенное устройство на порту USB" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Невозможно получить контроль над устройством USB" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Невозможно заблокировать устройство" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "ошибка libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Неизвестная ошибка" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Действие «%s» не поддерживается этим устройством" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "Порт ещё не был инициализирован" + +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "низк." + +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "высок." + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "Описание ошибки недоступно" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "Носитель «%s»" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Невозможно заблокировать устройство «%s»" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Устройство «%s» заблокировано процессом с pid %d" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Устройство «%s» невозможно заблокировать (функция dev_lock вернула значение %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Устройство «%s» невозможно разблокировать." + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Устройство «%s» невозможно разблокировать, так как оно заблокировано процессом с pid %d." + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Устройство «%s» невозможно разблокировать (функция dev_unlock вернула значение %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "Последовательный порт %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "Устройство последовательного порта" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Не удалось открыть «%s» (%s)." + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Не удалось закрыть «%s» (%s)." + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Не удалось записать в порт (%s)" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "Ошибка чётности." + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Неверная последовательность контроля чётности — 0xff 0x%02x" + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "Неизвестный pin %i." + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Невозможно получить уровень pin %i (%s)." + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Невозможно установить уровень pin %i в %i (%s)." + +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Невозможно сбросить буферы устройства «%s» (%s)." + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Невозможно установить скорость %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "Прямой ввод-вывод USB Mass Storage" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Не удалось открыть «%s» (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Не удалось закрыть «%s» (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Не удалось перейти к смещению: %x на «%s» (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Не удалось записать в «%s» (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Не удалось прочитать «%s» (%m)." + +#: usb/libusb.c:260 libusb1/libusb1.c:373 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Невозможно открыть USB-устройство (%s)." + +#: usb/libusb.c:273 libusb1/libusb1.c:382 +msgid "Camera is already in use." +msgstr "Фотоаппарат уже занят." + +#: usb/libusb.c:281 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Невозможно отключить драйвер ядра «%s» для устройства фотоаппарата." + +#: usb/libusb.c:286 libusb1/libusb1.c:397 +msgid "Could not query kernel driver of device." +msgstr "Невозможно опросить драйвер ядра для устройства." + +#: usb/libusb.c:295 libusb1/libusb1.c:404 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Невозможно захватить интерфейс %d (%s). Убедитесь, что устройство не занято другой программой (%s) или модулем ядра (таким как %s), и что у вас есть право на чтение/запись устройства." + +#: usb/libusb.c:307 libusb1/libusb1.c:415 +msgid "MacOS PTPCamera service" +msgstr "Служба MacOS PTPCamera" + +#: usb/libusb.c:309 libusb1/libusb1.c:417 +msgid "unknown libgphoto2 using program" +msgstr "неизвестная программа, использующая libgphoto2" + +#: usb/libusb.c:326 libusb1/libusb1.c:484 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Невозможно освободить интерфейс %d (%s)." + +#: usb/libusb.c:341 libusb1/libusb1.c:498 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Невозможно вернуть в исходное состояние порт USB (%s)." + +#: usb/libusb.c:371 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Невозможно закрыть порт USB (%s)." + +#: usb/libusb.c:632 libusb1/libusb1.c:839 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Невозможно изменить конфигурацию %d/%d (%s)" + +#: usb/libusb.c:663 libusb1/libusb1.c:868 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Невозможно установить альтернативную конфигурацию из %d в %d (%s)" + +#: usb/libusb.c:752 libusb1/libusb1.c:1033 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "Неверный идентификатор производителя или продукта (0x%x,0x%x)." + +#: usb/libusb.c:823 usb/libusb.c:909 libusb1/libusb1.c:1002 +#: libusb1/libusb1.c:1094 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Не найдено устройство USB (производитель 0x%x, продукт 0x%x). Убедитесь, что устройство подключено к компьютеру." + +#: usb/libusb.c:1202 libusb1/libusb1.c:1383 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Не найдено устройство USB (класс 0x%x, подкласс 0x%x, протокол 0x%x). Убедитесь, что устройство подключено к компьютеру." + +#: libusb1/libusb1.c:391 +msgid "Could not detach kernel driver of camera device." +msgstr "Невозможно отключить драйвер ядра устройства фотоаппарата." + +#: libusb1/libusb1.c:507 +msgid "Could not reattach kernel driver of camera device." +msgstr "Невозможно отключить драйвер ядра устройства фотоаппарата." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Устройство «%s» заблокировано другим приложением." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Не удалось заблокировать «%s» (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Не удалось разблокировать «%s» (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "USB Mass Storage raw SCSI" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Не удалось послать команду scsi: «%s» (%m)." + +#~ msgid "Called for filename '%s'." +#~ msgstr "Вызвано для файла «%s»." + +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "Невозможно загрузить «%s»: «%s»." + +#~ msgid "Could not find some functions in '%s': '%s'." +#~ msgstr "Не найдены некоторые функции в «%s»: «%s»." + +#~ msgid "'%s' already loaded" +#~ msgstr "«%s» уже загружен" + +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "Невозможно загрузить список драйверов портов: «%s»." + +#~ msgid "Loaded '%s' ('%s') from '%s'." +#~ msgstr "Загружено «%s» («%s») из «%s»." + +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "Используется ltdl для загрузки драйверов ввода/вывода из «%s»…" + +#~ msgid "Counting entries (%i available)..." +#~ msgid_plural "Counting entries (%i available)..." +#~ msgstr[0] "Подсчитываются записи (%i доступна)…" +#~ msgstr[1] "Подсчитываются записи (%i доступны)…" +#~ msgstr[2] "Подсчитываются записи (%i доступно)…" + +#~ msgid "%i regular entry available." +#~ msgid_plural "%i regular entries available." +#~ msgstr[0] "доступна %i обычная запись." +#~ msgstr[1] "доступно %i обычных записи." +#~ msgstr[2] "доступно %i обычных записей." + +#~ msgid "Looking for path '%s' (%i entry available)..." +#~ msgid_plural "Looking for path '%s' (%i entries available)..." +#~ msgstr[0] "Поиск пути «%s» (доступна %i запись)…" +#~ msgstr[1] "Поиск пути «%s» (доступно %i записи)…" +#~ msgstr[2] "Поиск пути «%s» (доступно %i записей)…" + +#~ msgid "Starting regex search for '%s'..." +#~ msgstr "Начало поиска «%s» c использованием регулярного выражения…" + +#~ msgid "Trying '%s'..." +#~ msgstr "Проверяется «%s»…" + +#~ msgid "regcomp failed" +#~ msgstr "сбой regcomp" + +#~ msgid "re_match failed (%i)" +#~ msgstr "сбой re_match (%i)" + +#~ msgid "regexec failed" +#~ msgstr "сбой regexec" + +#~ msgid "Looking up entry '%s'..." +#~ msgstr "Поиск записи «%s»…" + +#~ msgid "Getting info of entry %i (%i available)..." +#~ msgid_plural "Getting info of entry %i (%i available)..." +#~ msgstr[0] "Получение информации о записи %i (%i доступна)…" +#~ msgstr[1] "Получение информации о записи %i (%i доступны)…" +#~ msgstr[2] "Получение информации о записи %i (%i доступно)…" + +#~ msgid "Creating new device..." +#~ msgstr "Создаётся новое устройство…" + +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "Невозможно загрузить «%s» («%s»)." + +#~ msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +#~ msgstr "Не найден «gp_port_library_operations» в «%s» («%s»)" + +#~ msgid "Opening %s port..." +#~ msgstr "Открытие порта %s…" + +#~ msgid "Closing port..." +#~ msgstr "Закрытие порта…" + +#~ msgid "Resetting port..." +#~ msgstr "Сброс порта…" + +#~ msgid "Freeing port..." +#~ msgstr "Освобождение порта…" + +#~ msgid "Writing %i=0x%x byte(s) to port..." +#~ msgstr "Записывается %i=0x%x байт в порт…" + +#~ msgid "Could only write %i out of %i byte" +#~ msgid_plural "Could only write %i out of %i bytes" +#~ msgstr[0] "Возможно записать только %i байт из %i" +#~ msgstr[1] "Возможно записать только %i байта из %i" +#~ msgstr[2] "Возможно записать только %i байтов из %i" + +#~ msgid "Reading %i=0x%x byte from port..." +#~ msgid_plural "Reading %i=0x%x bytes from port..." +#~ msgstr[0] "Считывается %i=0x%x байт из порта…" +#~ msgstr[1] "Считывается %i=0x%x байта из порта…" +#~ msgstr[2] "Считывается %i=0x%x байтов из порта…" + +#~ msgid "Could only read %i out of %i byte" +#~ msgid_plural "Could only read %i out of %i byte(s)" +#~ msgstr[0] "Можно прочитать только %i из %i байта" +#~ msgstr[1] "Можно прочитать только %i из %i байтов" +#~ msgstr[2] "Можно прочитать только %i из %i байтов" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint..." +#~ msgstr[0] "Считывается %i=0x%x байт из конечной точки прерывания…" +#~ msgstr[1] "Считывается %i=0x%x байта из конечной точки прерывания…" +#~ msgstr[2] "Считывается %i=0x%x байтов из конечной точки прерывания…" + +#~ msgid "Could only read %i out of %i byte(s)" +#~ msgstr "Можно прочитать только %i из %i байт" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint (fast)..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +#~ msgstr[0] "Считывается %i=0x%x байт из конечной точки прерывания (ускоренно)…" +#~ msgstr[1] "Считывается %i=0x%x байта из конечной точки прерывания (ускоренно)…" +#~ msgstr[2] "Считывается %i=0x%x байтов из конечной точки прерывания (ускоренно)…" + +#~ msgid "Setting timeout to %i millisecond(s)..." +#~ msgstr "Установка времени задержки равного %i·миллисекунд…" + +#~ msgid "Getting timeout..." +#~ msgstr "Определение времени задержки…" + +#~ msgid "Current timeout: %i milliseconds" +#~ msgstr "Текущее время задержки: %i·(в миллисекундах)" + +#~ msgid "Setting settings..." +#~ msgstr "Установка конфигурации…" + +#~ msgid "Getting level of pin %i..." +#~ msgstr "Получение уровня pin %i…" + +#~ msgid "Level of pin %i: %i" +#~ msgstr "Уровень pin %i: %i" + +#~ msgid "Setting pin %i (%s: '%s') to '%s'..." +#~ msgstr "Установка pin %i (%s: «%s») в «%s»…" + +#~ msgid "Sending break (%i milliseconds)..." +#~ msgstr "Посылка сигнала break (%i миллисекунд)…" + +#~ msgid "Flushing port..." +#~ msgstr "Сброс буферов порта…" + +#~ msgid "Clear halt..." +#~ msgstr "Очистка признака halt…" + +#~ msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Запись сообщения (запрос=0x%x значение=0x%x индекс=0x%x размер=%i=0x%x)…" + +#~ msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Чтение сообщения (запрос=0x%x значение=0x%x индекс=0x%x размер=%i=0x%x)…" + +#~ msgid "Device has driver '%s' attached." +#~ msgstr "Подключено устройство с драйвером «%s»." + +#~ msgid "Device has driver '%s' attached, detaching it now." +#~ msgstr "Подключён драйвер «%s». Производится отключение драйвера." + +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "USB устройство (производитель 0x%x, продукт 0x%x) работает как устройство хранения данных.Программа gphoto2 не может его использовать. Смотрите: %s" + +#~ msgid "Device has a kernel driver attached (%d), detaching it now." +#~ msgstr "Подключён драйвер ядра «%d». Производится отключение драйвера." + +#~ msgid "Could not open USB device (%m)." +#~ msgstr "Невозможно открыть USB-устройство (%m)." + +#~ msgid "Could not claim interface %d (%m). Make sure no other program or kernel module (such as %s) is using the device and you have read/write access to the device." +#~ msgstr "Невозможно захватить интерфейс %d (%m). Убедитесь, что устройство не занято другой программой или модулем ядра (таким как %s), и что у вас есть доступ к устройству по чтению и записи." + +#~ msgid "Could not release interface %d (%m)." +#~ msgstr "Невозможно освободить интерфейс %d (%m)." + +#~ msgid "Could not reset USB port (%m)." +#~ msgstr "Невозможно вернуть в исходное состояние порт USB (%m)." + +#~ msgid "Could not set config %d/%d (%m)" +#~ msgstr "Невозможно изменить конфигурацию %d/%d (%m)" + +#~ msgid "Could not set altsetting from %d to %d (%m)" +#~ msgstr "Невозможно установить альтернативную конфигурацию из %d в %d (%m)" + +#~ msgid "(unknown)" +#~ msgstr "(неизвестно)" + +#~ msgid "msg_read" +#~ msgstr "прочесть_сообщение" + +#, fuzzy +#~ msgid "Loading io-drivers from '%s' without ltdl..." +#~ msgstr "Загрузка драйверов ввода/вывода из '%s'..." + +#~ msgid "Could not load any io-library because '%s' could not be opened (%m)" +#~ msgstr "Невозможно загрузить библиотеку функций ввода/вывода, потому что невозможно открыть '%s'(%m) " + +#~ msgid "'%s' is not a library (%s)" +#~ msgstr "'%s' не является библиотекой (%s)" + +#~ msgid "Could not find some functions in '%s' (%s)" +#~ msgstr "Не найдены некоторые функции в '%s' (%s)" + +#~ msgid "Could not load list (%s)" +#~ msgstr "Невозможно загрузить список (%s)" + +#~ msgid "Loaded '%s' (%s) from '%s'" +#~ msgstr "Загружено '%s' (%s) из '%s'" + +#~ msgid "Could not load '%s' ('%s')" +#~ msgstr "Невозможно загрузить '%s' (%s)." + +#~ msgid "Camera is supported by USB Storage driver." +#~ msgstr "Фотоаппарат поддерживается драйвером устройств хранения данных 'USB Storage'" + +#~ msgid "open" +#~ msgstr "открыть" + +#~ msgid "close" +#~ msgstr "закрыть" + +#~ msgid "write" +#~ msgstr "записать" + +#~ msgid "read" +#~ msgstr "прочитать" + +#~ msgid "check_int" +#~ msgstr "проверить_прерывание" + +#~ msgid "update" +#~ msgstr "обновить" + +#~ msgid "get_pin" +#~ msgstr "получить_pin" + +#~ msgid "set_pin" +#~ msgstr "установить_pin" + +#~ msgid "send_break" +#~ msgstr "послать_сигнал_break" + +#~ msgid "flush" +#~ msgstr "сбросить_буферы" + +#~ msgid "find_device" +#~ msgstr "найти_устройство" + +#~ msgid "find_device_by_class" +#~ msgstr "найти_устройство_в_классе" + +#~ msgid "msg_write" +#~ msgstr "записать_сообщение" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/sk.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/sk.po new file mode 100644 index 00000000..ad07f53d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/sk.po @@ -0,0 +1,609 @@ +# Slovak translation of libgphoto2 +# Copyright (C) 2008 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# Ivan Masár , 2008, 2010, 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.0\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2012-07-10 07:57+0200\n" +"PO-Revision-Date: 2012-07-31 00:34+0100\n" +"Last-Translator: Ivan Masár \n" +"Language-Team: Slovak \n" +"Language: sk\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:220 +#, c-format +msgid "Called for filename '%s'." +msgstr "Bol požadovaný názov súboru „%s“." + +#: libgphoto2_port/gphoto2-port-info-list.c:225 +#, c-format +msgid "Could not load '%s': '%s'." +msgstr "Nebolo možné načítať „%s“: „%s“." + +#: libgphoto2_port/gphoto2-port-info-list.c:233 +#, c-format +msgid "Could not find some functions in '%s': '%s'." +msgstr "Nebolo možné nájsť niektoré funkcie v „%s“: „%s“." + +#: libgphoto2_port/gphoto2-port-info-list.c:245 +#, c-format +msgid "'%s' already loaded" +msgstr "„%s“ je už načítané" + +#: libgphoto2_port/gphoto2-port-info-list.c:254 +#, c-format +msgid "Could not load port driver list: '%s'." +msgstr "Nebolo možné načítať zoznam ovládačov portov: „%s“." + +#: libgphoto2_port/gphoto2-port-info-list.c:267 +#, c-format +msgid "Loaded '%s' ('%s') from '%s'." +msgstr "Bol načítaný „%s“ („%s“) z „%s“." + +#: libgphoto2_port/gphoto2-port-info-list.c:300 +#, c-format +msgid "Using ltdl to load io-drivers from '%s'..." +msgstr "Na načítanie io-drivers „%s“ sa používa ltdl..." + +#: libgphoto2_port/gphoto2-port-info-list.c:332 +#, c-format +msgid "Counting entries (%i available)..." +msgid_plural "Counting entries (%i available)..." +msgstr[0] "Počítajú sa položky (%i dostupná)..." +msgstr[1] "Počítajú sa položky (%i dostupné)..." +msgstr[2] "Počítajú sa položky (%i dostupných)..." + +#: libgphoto2_port/gphoto2-port-info-list.c:345 +#, c-format +msgid "%i regular entry available." +msgid_plural "%i regular entries available." +msgstr[0] "%i dostupná obyčajná položka." +msgstr[1] "%i dostupné obyčajné položky." +msgstr[2] "%i dostupných obyčajných položiek." + +#: libgphoto2_port/gphoto2-port-info-list.c:379 +#, c-format +msgid "Looking for path '%s' (%i entry available)..." +msgid_plural "Looking for path '%s' (%i entries available)..." +msgstr[0] "Hľadá sa cesta „%s“ (%i dostupná položka)..." +msgstr[1] "Hľadá sa cesta „%s“ (%i dostupné položky)..." +msgstr[2] "Hľadá sa cesta „%s“ (%i dostupných položiek)..." + +#: libgphoto2_port/gphoto2-port-info-list.c:393 +#, c-format +msgid "Starting regex search for '%s'..." +msgstr "Začína sa hľadanie regulárneho výrazu „%s“..." + +#: libgphoto2_port/gphoto2-port-info-list.c:401 +#, c-format +msgid "Trying '%s'..." +msgstr "Skúša sa „%s“..." + +#: libgphoto2_port/gphoto2-port-info-list.c:422 +msgid "regcomp failed" +msgstr "regcomp zlyhal" + +#: libgphoto2_port/gphoto2-port-info-list.c:433 +#, c-format +msgid "re_match failed (%i)" +msgstr "re_match zlyhal (%i)" + +#: libgphoto2_port/gphoto2-port-info-list.c:441 +msgid "regexec failed" +msgstr "regexec zlyhal" + +#: libgphoto2_port/gphoto2-port-info-list.c:448 +msgid "Generic Port" +msgstr "Všeobecný port" + +#: libgphoto2_port/gphoto2-port-info-list.c:473 +#, c-format +msgid "Looking up entry '%s'..." +msgstr "Vyhľadáva sa položka „%s“..." + +#: libgphoto2_port/gphoto2-port-info-list.c:505 +#, c-format +msgid "Getting info of entry %i (%i available)..." +msgid_plural "Getting info of entry %i (%i available)..." +msgstr[0] "Získavajú sa informácie o položke %i (%i dostupná)..." +msgstr[1] "Získavajú sa informácie o položke %i (%i dostupné)..." +msgstr[2] "Získavajú sa informácie o položke %i (%i dostupných)..." + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Žiadna chyba" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Neurčená chyba" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "V/V problém" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Chybné parametre" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Nepodporovaná operácia" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Pevný limit bol prekročený" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Vyhradený časový interval vypšal počas čítania alebo zapisovania do portu" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Sériový port nie je podporovaný" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "USB port nie je podporovaný" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Neznámy port" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Nedostatok pamäte" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Chyba pri načítavaná knižnice" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Chyba pri inicializácii portu" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Chyba pri čítaní z portu" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Chyba pri zapisovaní do portu" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Chyba pri aktualizácii nastavení portu" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Chyba pri nastavovaní rýchlosti sériového portu" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Chyba pri rušení stavu blokovania portu USB" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Nebolo možné nájsť požadované zariadenie na porte USB" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Nebolo možné prevziať kontrolu nad USB zariadením" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Nebolo možné zamknúť zariadenie" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "chyba libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Neznáma chyba" + +#: libgphoto2_port/gphoto2-port.c:58 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Toto zariadenie nepodporuje operáciu „%s“" + +#: libgphoto2_port/gphoto2-port.c:59 +msgid "The port has not yet been initialized" +msgstr "Port zatiaľ nebol inicializovaný" + +#: libgphoto2_port/gphoto2-port.c:90 +msgid "Creating new device..." +msgstr "Vytvára sa nové zariadenie..." + +#: libgphoto2_port/gphoto2-port.c:175 +#, c-format +msgid "Could not load '%s' ('%s')." +msgstr "Nebolo možné načítať „%s“ („%s“)." + +#: libgphoto2_port/gphoto2-port.c:185 +#, c-format +msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +msgstr "Nebolo možné nájsť 'gp_port_library_operations' v „%s“ („%s“)" + +#: libgphoto2_port/gphoto2-port.c:267 +#, c-format +msgid "Opening %s port..." +msgstr "Otvára sa port %s..." + +#: libgphoto2_port/gphoto2-port.c:289 +msgid "Closing port..." +msgstr "Zatvára sa port..." + +#: libgphoto2_port/gphoto2-port.c:311 +msgid "Freeing port..." +msgstr "Uvoľnuje sa port..." + +#: libgphoto2_port/gphoto2-port.c:362 +#, c-format +msgid "Writing %i=0x%x byte(s) to port..." +msgstr "Zapisujú sa bajty %i=0x%x do portu..." + +#: libgphoto2_port/gphoto2-port.c:375 +#, c-format +msgid "Could only write %i out of %i byte" +msgid_plural "Could only write %i out of %i bytes" +msgstr[0] "Bolo možné zapísať iba %i z %i bajtu" +msgstr[1] "Bolo možné zapísať iba %i z %i bajtov" +msgstr[2] "Bolo možné zapísať iba %i z %i bajtov" + +#: libgphoto2_port/gphoto2-port.c:397 +#, c-format +msgid "Reading %i=0x%x byte from port..." +msgid_plural "Reading %i=0x%x bytes from port..." +msgstr[0] "Číta sa %i=0x%x bajt z portu..." +msgstr[1] "Číta sa %i=0x%x bajty z portu..." +msgstr[2] "Číta sa %i=0x%x bajtov z portu..." + +#: libgphoto2_port/gphoto2-port.c:409 libgphoto2_port/gphoto2-port.c:490 +#: libgphoto2_port/gphoto2-port.c:922 libgphoto2_port/gphoto2-port.c:1006 +#: libgphoto2_port/gphoto2-port.c:1092 +#, c-format +msgid "Could only read %i out of %i byte" +msgid_plural "Could only read %i out of %i byte(s)" +msgstr[0] "Bolo možné prečítať iba %i z %i bajtu" +msgstr[1] "Bolo možné prečítať iba %i z %i bajtov" +msgstr[2] "Bolo možné prečítať iba %i z %i bajtov" + +#: libgphoto2_port/gphoto2-port.c:437 +#, c-format +msgid "Reading %i=0x%x byte from interrupt endpoint..." +msgid_plural "Reading %i=0x%x bytes from interrupt endpoint..." +msgstr[0] "Číta sa %i=0x%x bajt z konca prerušenia..." +msgstr[1] "Číta sa %i=0x%x bajty z konca prerušenia..." +msgstr[2] "Číta sa %i=0x%x bajtov z konca prerušenia..." + +#: libgphoto2_port/gphoto2-port.c:449 +#, c-format +msgid "Could only read %i out of %i byte(s)" +msgstr "Bolo možné prečítať iba %i z %i bajtov" + +#: libgphoto2_port/gphoto2-port.c:503 +#, c-format +msgid "Reading %i=0x%x byte from interrupt endpoint (fast)..." +msgid_plural "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +msgstr[0] "Číta sa %i=0x%x bajt z konca prerušenia (rýchlo)..." +msgstr[1] "Číta sa %i=0x%x bajty z konca prerušenia (rýchlo)..." +msgstr[2] "Číta sa %i=0x%x bajtov z konca prerušenia (rýchlo)..." + +#: libgphoto2_port/gphoto2-port.c:531 +#, c-format +msgid "Setting timeout to %i millisecond(s)..." +msgstr "Nastavuje sa interval expirácie na %i millisekúnd..." + +#: libgphoto2_port/gphoto2-port.c:567 +msgid "Getting timeout..." +msgstr "Zisťuje sa interval expirácie..." + +#: libgphoto2_port/gphoto2-port.c:571 +#, c-format +msgid "Current timeout: %i milliseconds" +msgstr "Aktuálny interval expirácie: %i millisekúnd" + +#: libgphoto2_port/gphoto2-port.c:593 +msgid "Setting settings..." +msgstr "Nastavuje sa..." + +#: libgphoto2_port/gphoto2-port.c:654 +#, c-format +msgid "Getting level of pin %i..." +msgstr "Zisťuje sa úroveň kolíka %i..." + +#: libgphoto2_port/gphoto2-port.c:663 +#, c-format +msgid "Level of pin %i: %i" +msgstr "Úroveň kolíka %i: %i" + +#: libgphoto2_port/gphoto2-port.c:689 +msgid "low" +msgstr "nízka" + +#: libgphoto2_port/gphoto2-port.c:690 +msgid "high" +msgstr "vysoká" + +#: libgphoto2_port/gphoto2-port.c:716 +#, c-format +msgid "Setting pin %i (%s: '%s') to '%s'..." +msgstr "Nastavuje sa kolík %i (%s: „%s“) na „%s“..." + +#: libgphoto2_port/gphoto2-port.c:743 +#, c-format +msgid "Sending break (%i milliseconds)..." +msgstr "Posiela sa prerušenie (%i millisekúnd)..." + +#: libgphoto2_port/gphoto2-port.c:769 +msgid "Flushing port..." +msgstr "Čistí sa port..." + +#: libgphoto2_port/gphoto2-port.c:843 +msgid "Clear halt..." +msgstr "Čistí sa blokovanie..." + +#: libgphoto2_port/gphoto2-port.c:874 +#, c-format +msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +msgstr "Zapisuje sa správa (požiadavka=0x%x hodnota=0x%x index=0x%x veľkosť=%i=0x%x)..." + +#: libgphoto2_port/gphoto2-port.c:909 +#, c-format +msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +msgstr "Číta sa správa (požiadavka=0x%x hodnota=0x%x index=0x%x veľkosť=%i=0x%x)..." + +#: libgphoto2_port/gphoto2-port.c:1253 +msgid "No error description available" +msgstr "Nie je dostupný popis chyby" + +#: disk/disk.c:135 disk/disk.c:136 disk/disk.c:197 disk/disk.c:198 +#: disk/disk.c:238 disk/disk.c:261 +#, c-format +msgid "Media '%s'" +msgstr "Nosič „%s“" + +#: serial/unix.c:227 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Nebolo možné zamknúť zariadenie „%s“" + +#: serial/unix.c:237 usbdiskdirect/linux.c:94 usbscsi/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Zariadenie „%s“ zamkol proces s PID %d" + +#: serial/unix.c:240 usbdiskdirect/linux.c:97 usbscsi/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Zariadenie „%s“ nebolo možné zamknúť (dev_lock returned %d)" + +#: serial/unix.c:269 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Zariadenie „%s“ nebolo možné odomknúť." + +#: serial/unix.c:281 usbdiskdirect/linux.c:126 usbscsi/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Zariadenie „%s“ nebolo možné odomknúť, pretože ho zamkol proces s PID %d." + +#: serial/unix.c:285 usbdiskdirect/linux.c:130 usbscsi/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Zariadenie „%s“ nebolo možné odomknúť (dev_unlock vrátil %d)." + +#: serial/unix.c:362 +#, c-format +msgid "Serial Port %i" +msgstr "Sériový port %i" + +#: serial/unix.c:459 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Nebolo možné otvoriť „%s“ (%s)." + +#: serial/unix.c:479 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Nebolo možné zatvoriť „%s“ (%s)." + +#: serial/unix.c:536 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Nebolo možné zapísať do portu (%s)" + +#: serial/unix.c:614 +msgid "Parity error." +msgstr "Chyba parity." + +#: serial/unix.c:618 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Neočakávaná odpoveď parity 0xff 0x%02x." + +#: serial/unix.c:661 +#, c-format +msgid "Unknown pin %i." +msgstr "Neznámy kolík %i." + +#: serial/unix.c:684 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Nebolo možné zistiť úroveň kontaktu %i (%s)." + +#: serial/unix.c:721 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Nebolo možné nastaviť úroveň kontaktu %i na %i (%s)." + +#: serial/unix.c:748 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "nebolo možné vyčistiť „%s“ (%s)." + +#: serial/unix.c:862 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Nebolo možné nastaviť rýchlosť na %d" + +#: usbdiskdirect/linux.c:232 +msgid "USB Mass Storage direct IO" +msgstr "Hromadné úložisko USB priamy V/V" + +#: usbdiskdirect/linux.c:287 usbscsi/linux.c:289 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Nepodarilo sa otvoriť „%s“ (%m)." + +#: usbdiskdirect/linux.c:301 usbscsi/linux.c:303 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Nebolo možné zatvoriť „%s“ (%m)." + +#: usbdiskdirect/linux.c:326 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Nebolo možné presunúť sa na pozíciu %x v „%s“ (%m)." + +#: usbdiskdirect/linux.c:349 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Nebolo možné zapísať do „%s“ (%m)." + +#: usbdiskdirect/linux.c:371 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Nebolo možné čítať z „%s“ (%m)." + +#: usb/libusb.c:258 libusb1/libusb1.c:297 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Nebolo možné otvoriť zariadenie USB (%s)." + +#: usb/libusb.c:268 +#, c-format +msgid "Device has driver '%s' attached." +msgstr "Zariadenie má pripojený ovládač „%s“." + +#: usb/libusb.c:271 libusb1/libusb1.c:306 +msgid "Camera is already in use." +msgstr "Kamera sa už používa." + +#: usb/libusb.c:276 +#, c-format +msgid "Device has driver '%s' attached, detaching it now." +msgstr "Zariadenie má pripojený ovládač „%s“, teraz sa odpája." + +#: usb/libusb.c:279 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Nebolo možné odpojiť ovládač zariadenia fotoaparátu „%s“." + +#: usb/libusb.c:284 libusb1/libusb1.c:322 +msgid "Could not query kernel driver of device." +msgstr "Nepodarilo sa spojiť s ovládačom zariadenia v jadre." + +#: usb/libusb.c:293 libusb1/libusb1.c:330 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Nepodarilo sa prevziať kontrolu nad rozhraním %d (%s). Uistite sa, že žiadny iný program alebo modul jadra (ako %s) nepoužíva zariadenie a že k zariadeniu máte prístup na čítanie aj zápis." + +#: usb/libusb.c:315 libusb1/libusb1.c:352 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Nebolo možné uvoľniť rozhranie %d (%s)." + +#: usb/libusb.c:330 libusb1/libusb1.c:367 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Nebolo možné reštartovať port USB (%s)." + +#: usb/libusb.c:360 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Nebolo možné zatvoriť port USB (%s)." + +#: usb/libusb.c:614 libusb1/libusb1.c:633 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Nebolo možné nastaviť konfiguráciu %d/%d (%s)" + +#: usb/libusb.c:649 libusb1/libusb1.c:672 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Nebolo možné nastaviť alternatívne nastavenie z %d na %d (%s)" + +#: usb/libusb.c:742 libusb1/libusb1.c:770 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "Zadaný ID dodávateľa alebo produktu (0x%x,0x%x) nie je platný." + +#: usb/libusb.c:778 libusb1/libusb1.c:809 +#, c-format +msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +msgstr "Zariadenie USB (dodávateľ 0x%x, produkt 0x%x) je hromadné úložné zariadenie a nemusí s gphoto2 fungovať. Odkaz: %s" + +#: usb/libusb.c:821 libusb1/libusb1.c:841 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Nebolo možné nájsť USB zariadenie (dodávateľ 0x%x, produkt 0x%x). Uistite sa, že je toto zariadenie pripojené k počítaču." + +#: usb/libusb.c:1121 libusb1/libusb1.c:1135 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Nebolo možné nájsť USB zariadenie (trieda 0x%x, podtrieda 0x%x, protocol 0x%x). Uistite sa, že je toto zariadenie pripojené k počítaču." + +#: libusb1/libusb1.c:312 +#, c-format +msgid "Device has a kernel driver attached (%d), detaching it now." +msgstr "Zariadenie má pripojený ovládač jadra (%d), teraz sa odpája." + +#: libusb1/libusb1.c:315 +msgid "Could not detach kernel driver of camera device." +msgstr "Nebolo možné odpojiť ovládač zariadenia fotoaparátu." + +#: libusb1/libusb1.c:378 +msgid "Could not reattach kernel driver of camera device." +msgstr "Nebolo možné odpojiť ovládač zariadenia fotoaparátu." + +#: usbscsi/linux.c:234 +msgid "USB Mass Storage raw SCSI" +msgstr "Hromadné úložisko USB pomocou SCSI" + +#: usbscsi/linux.c:347 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Nebolo možné poslať príkaz SCSI pre „%s“ (%m)." + +#~ msgid "Could not open USB device (%m)." +#~ msgstr "Nebolo možné otvoriť zariadenie USB (%m)." + +#~ msgid "Could not claim interface %d (%m). Make sure no other program or kernel module (such as %s) is using the device and you have read/write access to the device." +#~ msgstr "nepodarilo sa prevziať kontrolu nad rozhraním %d (%m). Uistite sa, že žiadny iný program alebo modul jadra (ako %s) nepoužíva zariadenie a že k zariadeniu máte prístup na čítanie aj zápis." + +#~ msgid "Could not release interface %d (%m)." +#~ msgstr "Nebolo možné uvoľniť rozhranie %d (%m)." + +#~ msgid "Could not reset USB port (%m)." +#~ msgstr "Nebolo možné reštartovať port USB (%m)." + +#~ msgid "Could not set config %d/%d (%m)" +#~ msgstr "Nebolo možné nastaviť konfiguráciu %d/%d (%m)" + +#~ msgid "Could not set altsetting from %d to %d (%m)" +#~ msgstr "Nebolo možné nastaviť alternatívne nastavenie z %d na %d (%m)" + +#~ msgid "(unknown)" +#~ msgstr "(neznámy)" + +#~ msgid "msg_read" +#~ msgstr "msg_read" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/sr.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/sr.po new file mode 100644 index 00000000..01b72058 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/sr.po @@ -0,0 +1,530 @@ +# Serbian translation of libgphoto2_port. +# Copyright (C) 2012 Lutz Mueller and others +# This file is distributed under the same license as the libgphoto2 package. +# Мирослав Николић , 2012—2016. +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port-2.5.10\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-02-22 21:02+0100\n" +"PO-Revision-Date: 2016-05-29 20:27+0200\n" +"Last-Translator: Мирослав Николић \n" +"Language-Team: Serbian <(nothing)>\n" +"Language: sr\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Општи прикључак" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Нема грешке" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Непозната грешка" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "У/И проблем" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Лоши параметри" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Неподржана радња" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Премашено је стално ограничење" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Истекло је време за читање или уписивање на прикључак" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Серијски прикључак није подржан" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "УСБ прикључак није подржан" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Непознат прикључак" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Нема више меморије" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Грешка учитавања библиотеке" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Грешка покретања прикључка" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Грешка читања са прикључка" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Грешка писања на прикључак" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Грешка освежавања подешавања прикључка" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Грешка подешавања брзине серијског прикључка" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Грешка чишћења услова заустављања на УСБ прикључку" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Не могу да пронађем захтевани уређај на УСБ прикључку" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Не могу да остварим право на УСБ уређај" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Не могу да закључам уређај" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "грешка хал библиотеке" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Непозната грешка" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Радња „%s“ није подржана овим уређајем" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "Прикључак још увек није покренут" + +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "низак" + +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "висок" + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "Опис грешке није доступан" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "Медиј „%s“" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Не могу да закључам уређај „%s“" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Уређај „%s“ је закључан пидом %d" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Уређај „%s“ не може бити закључан (закљ_уређ је вратио %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Уређај „%s“ не може бити откључан." + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Уређај „%s“ не може бити откључан јер је закључан пидом %d." + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Уређај „%s“ не може бити откључан (откљ_уређ је вратио %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "Серијски прикључак %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "Уређај серијског прикључка" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Нисам успео да отворим „%s“ (%s)." + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Не могу да затворим „%s“ (%s)." + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Не могу да пишем на прикључку (%s)" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "Грешка једнакости." + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Неочекиван низ одговора једнакости 0xff 0x%02x." + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "Непознат пин %i." + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Не могу да добавим ниво пина %i (%s)." + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Не могу да подесим ниво пина %i на %i (%s)." + +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Не могу да преточим „%s“ (%s)." + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Не могу да подесим брзину преноса података на %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "Непосредни УИ УСБ масовног складишта" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Нисам успео да отворим „%s“ (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Не могу да затворим „%s“ (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Не могу да премотам на померај: %x на „%s“ (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Не могу да запишем у „%s“ (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Не могу да читам са „%s“ (%m)." + +#: usb/libusb.c:260 libusb1/libusb1.c:373 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Не могу да отворим УСБ уређај (%s)." + +#: usb/libusb.c:273 libusb1/libusb1.c:382 +msgid "Camera is already in use." +msgstr "Фото-апарат је већ у употреби." + +#: usb/libusb.c:281 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Не могу да откачим управљачки програм језгра „%s“ фото-апарата." + +#: usb/libusb.c:286 libusb1/libusb1.c:397 +msgid "Could not query kernel driver of device." +msgstr "Не могу да пропитам управљачки програм језгра за уређај." + +#: usb/libusb.c:295 libusb1/libusb1.c:404 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Не могу да придобијем сучеље %d (%s). Уверите се да ниједан други програм (%s) или модул језгра (као што је %s) не користи уређај и да ви имате право на читање/писање на уређају." + +#: usb/libusb.c:307 libusb1/libusb1.c:415 +msgid "MacOS PTPCamera service" +msgstr "Услуга ПТП фото-апарата МекОС-а" + +#: usb/libusb.c:309 libusb1/libusb1.c:417 +msgid "unknown libgphoto2 using program" +msgstr "непозната библгфото2 користи програм" + +#: usb/libusb.c:326 libusb1/libusb1.c:484 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Не могу да отпустим сучеље %d (%s)." + +#: usb/libusb.c:341 libusb1/libusb1.c:498 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Не могу поново да подесим УСБ прикључак (%s)." + +#: usb/libusb.c:371 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Не могу да затворим УСБ прикључак (%s)." + +#: usb/libusb.c:632 libusb1/libusb1.c:839 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Не могу да подесим подешавања %d/%d (%s)" + +#: usb/libusb.c:663 libusb1/libusb1.c:868 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Не могу да подесим подешавање заустављања са %d на %d (%s)" + +#: usb/libusb.c:752 libusb1/libusb1.c:1033 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "Достављени ид продавца или производа (0x%x,0x%x) није исправан." + +#: usb/libusb.c:823 usb/libusb.c:909 libusb1/libusb1.c:1002 +#: libusb1/libusb1.c:1094 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Не могу да пронађем УСБ уређај (продавац 0x%x, производ 0x%x). Уверите се да је тај уређај прикључен на рачунар." + +#: usb/libusb.c:1202 libusb1/libusb1.c:1383 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Не могу да пронађем УСБ уређај (разред 0x%x, подразред 0x%x, протокол 0x%x). Уверите се да је тај уређај прикључен на рачунар." + +#: libusb1/libusb1.c:391 +msgid "Could not detach kernel driver of camera device." +msgstr "Не могу да откачим управљачки програм језгра фото-апарата." + +#: libusb1/libusb1.c:507 +msgid "Could not reattach kernel driver of camera device." +msgstr "Не могу поново да прикачим управљачки програм језгра фото-апарата." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Уређај „%s“ је закључан неким другим програмом." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Нисам успео да закључам „%s“ (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Нисам успео да откључам „%s“ (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "Сирови СЦСИ УСБ масовног складишта" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Не могу да пошаљем сцси наредбу на: „%s“ (%m)." + +#~ msgid "Called for filename '%s'." +#~ msgstr "Позвах назив датотеке „%s“." + +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "Не могу да учитам „%s“: „%s“." + +#~ msgid "Could not find some functions in '%s': '%s'." +#~ msgstr "Не могу да пронађем неке функције у „%s“: „%s“." + +#~ msgid "'%s' already loaded" +#~ msgstr "„%s“ је већ учитан" + +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "Не могу да учитам списак управљачких програма прикључка: „%s“." + +#~ msgid "Loaded '%s' ('%s') from '%s'." +#~ msgstr "Учитан је „%s“ („%s“) из „%s“." + +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "Користим лтдл да учитам уи управљачке програме из „%s“..." + +#~ msgid "Counting entries (%i available)..." +#~ msgid_plural "Counting entries (%i available)..." +#~ msgstr[0] "Бројим уносе (%i доступан)..." +#~ msgstr[1] "Бројим уносе (%i доступна)..." +#~ msgstr[2] "Бројим уносе (%i доступних)..." + +#~ msgid "%i regular entry available." +#~ msgid_plural "%i regular entries available." +#~ msgstr[0] "Доступан је %i редован унос." +#~ msgstr[1] "Доступна су %i редовна уноса." +#~ msgstr[2] "Доступно је %i редовних уноса." + +#~ msgid "Looking for path '%s' (%i entry available)..." +#~ msgid_plural "Looking for path '%s' (%i entries available)..." +#~ msgstr[0] "Тражим путању „%s“ (%i унос је доступан)..." +#~ msgstr[1] "Тражим путању „%s“ (%i уноса су доступна)..." +#~ msgstr[2] "Тражим путању „%s“ (%i уноса је доступно)..." + +#~ msgid "Starting regex search for '%s'..." +#~ msgstr "Покрећем претрагу регуларног израза за „%s“..." + +#~ msgid "Trying '%s'..." +#~ msgstr "Покушавам „%s“..." + +#~ msgid "regcomp failed" +#~ msgstr "није успело „regcomp“" + +#~ msgid "re_match failed (%i)" +#~ msgstr "није успело „re_match“ (%i)" + +#~ msgid "regexec failed" +#~ msgstr "није успело „regexec“" + +#~ msgid "Looking up entry '%s'..." +#~ msgstr "Тражим ставку „%s“..." + +#~ msgid "Getting info of entry %i (%i available)..." +#~ msgid_plural "Getting info of entry %i (%i available)..." +#~ msgstr[0] "Добављам податке ставке „%i“ (%i доступна)..." +#~ msgstr[1] "Добављам податке ставке „%i“ (%i доступне)..." +#~ msgstr[2] "Добављам податке ставке „%i“ (%i доступних)..." + +#~ msgid "Creating new device..." +#~ msgstr "Стварам нови уређај..." + +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "Не могу да учитам „%s“ („%s“)." + +#~ msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +#~ msgstr "Не могу да пронађем „gp_port_library_operations“ у „%s“ („%s“)" + +#~ msgid "Opening %s port..." +#~ msgstr "Отварам %s прикључак..." + +#~ msgid "Closing port..." +#~ msgstr "Затварам прикључак..." + +#~ msgid "Resetting port..." +#~ msgstr "Поништавам прикључак..." + +#~ msgid "Freeing port..." +#~ msgstr "Ослобађам прикључак..." + +#~ msgid "Writing %i=0x%x byte(s) to port..." +#~ msgstr "Записујем %i=0x%x бајт(а) на прикључак..." + +#~ msgid "Could only write %i out of %i byte" +#~ msgid_plural "Could only write %i out of %i bytes" +#~ msgstr[0] "Не могу да запишем %i од %i бајта" +#~ msgstr[1] "Не могу да запишем %i од %i бајта" +#~ msgstr[2] "Не могу да запишем %i од %i бајтова" + +#~ msgid "Reading %i=0x%x byte from port..." +#~ msgid_plural "Reading %i=0x%x bytes from port..." +#~ msgstr[0] "Читам %i=0x%x бајт са прикључка..." +#~ msgstr[1] "Читам %i=0x%x бајта са прикључка..." +#~ msgstr[2] "Читам %i=0x%x бајтова са прикључка..." + +#~ msgid "Could only read %i out of %i byte" +#~ msgid_plural "Could only read %i out of %i byte(s)" +#~ msgstr[0] "Не могу да прочитам %i од %i бајта" +#~ msgstr[1] "Не могу да прочитам %i од %i бајта" +#~ msgstr[2] "Не могу да прочитам %i од %i бајтова" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint..." +#~ msgstr[0] "Читам %i=0x%x бајт са крајње тачке прекида..." +#~ msgstr[1] "Читам %i=0x%x бајта са крајње тачке прекида..." +#~ msgstr[2] "Читам %i=0x%x бајтова са крајње тачке прекида..." + +#~ msgid "Could only read %i out of %i byte(s)" +#~ msgstr "Могу да прочитам само %i од %i бајта" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint (fast)..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +#~ msgstr[0] "Читам %i=0x%x бајт са крајње тачке прекида (брзо)..." +#~ msgstr[1] "Читам %i=0x%x бајта са крајње тачке прекида (брзо)..." +#~ msgstr[2] "Читам %i=0x%x бајтова са крајње тачке прекида (брзо)..." + +#~ msgid "Setting timeout to %i millisecond(s)..." +#~ msgstr "Подешавам време истека на %i милисекунду(е)..." + +#~ msgid "Getting timeout..." +#~ msgstr "Добављам време истека..." + +#~ msgid "Current timeout: %i milliseconds" +#~ msgstr "Текуће време истека: %i милисекунде" + +#~ msgid "Setting settings..." +#~ msgstr "Подешавам подешавања..." + +#~ msgid "Getting level of pin %i..." +#~ msgstr "Добављам ниво пина %i..." + +#~ msgid "Level of pin %i: %i" +#~ msgstr "Ниво пина %i: %i" + +#~ msgid "Setting pin %i (%s: '%s') to '%s'..." +#~ msgstr "Подешавам пин %i (%s: „%s“) на „%s“..." + +#~ msgid "Sending break (%i milliseconds)..." +#~ msgstr "Шаљем прекид (%i милисекунде)..." + +#~ msgid "Flushing port..." +#~ msgstr "Претачем прикључак..." + +#~ msgid "Clear halt..." +#~ msgstr "Чистим застој..." + +#~ msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Порука записивања (захтев=0x%x вредност=0x%x индекс=0x%x величина=%i=0x%x)..." + +#~ msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Порука читања (захтев=0x%x вредност=0x%x индекс=0x%x величина=%i=0x%x)..." + +#~ msgid "Device has driver '%s' attached." +#~ msgstr "Уређај има прикачен управљачки програм „%s“." + +#~ msgid "Device has driver '%s' attached, detaching it now." +#~ msgstr "Уређај има прикачен управљачки програм „%s“, откачињем га." + +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "УСБ уређај (продавац 0x%x, производ 0x%x) је уређај за масовно складиштење, и можда неће радити са гфото-ом2. Упуте: %s" + +#~ msgid "Device has a kernel driver attached (%d), detaching it now." +#~ msgstr "Уређај има прикачен управљачки програм језгра (%d), откачињем га." diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/sv.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/sv.po new file mode 100644 index 00000000..dd131b3d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/sv.po @@ -0,0 +1,559 @@ +# Swedish translation of libgphoto2_port +# Copyright © 2000-2016 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# Daniel Nylander , 2006, 2007. +# Andreas Hyden 2000. +# Stefan Björnelund , 2002. +# Sverker Wiberg , 2002. +# Sebastian Rasmussen , 2015, 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.10\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-02-22 21:02+0100\n" +"PO-Revision-Date: 2016-03-24 19:38+0100\n" +"Last-Translator: Sebastian Rasmussen \n" +"Language-Team: Swedish \n" +"Language: sv\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.7.1\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Allmän port" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Inget fel" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Ospecificerat fel" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "In-/ut-problem" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Felaktiga parametrar" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Operationen stöds inte" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Fast gräns överstigen" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Timeout vid läsning från eller skrivning till porten" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Serieporten stöds inte" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "USB-porten stöds inte" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Okänd port" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Slut på minne" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Fel vid inläsning av ett bibliotek" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Fel vid initiering av porten" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Fel vid läsning från porten" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Fel vid skrivning till porten" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Fel vid uppdatering av portinställningarna" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Fel vid inställning av serieportens hastighet" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Fel vid rensning av stopptillstånd på USB-porten" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Kunde inte finna den begärda enheten på USB-porten" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Kunde inte göra anspråk på USB-enheten" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Kunde inte låsa enheten" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "libhal-fel" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Okänt fel" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Operationen ”%s” stöds inte av denna enhet" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "Porten har ännu inte blivit initierad" + +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "låg" + +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "hög" + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "Ingen felbeskrivning tillgänglig" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "Media ”%s”" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Kunde inte låsa enheten ”%s”" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Enheten ”%s” är låst av pid %d" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Enheten ”%s” kunde inte låsas (dev_unlock returnerade %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Enheten ”%s” kunde inte låsas upp." + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Enheten ”%s” kunde inte låsas upp eftersom den är låst av pid %d." + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Enheten ”%s” kunde inte låsas upp (dev_lock returnerade %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "Serieport %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "Serieportsenhet" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Misslyckades med att öppna ”%s” (%s)." + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Kunde inte stänga ”%s” (%s)." + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Kunde inte skriva till porten (%s)" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "Paritetsfel." + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Oväntad paritetsvarsekvens 0xff 0x%02x." + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "Okänd pinne %i." + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Kunde inte hämta nivån för pinne %i (%s)." + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Kunde inte ställa in nivån för pinne %i till %i (%s)." + +# Hmm +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Kunde inte tömma ut ”%s” (%s)." + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Kunde inte ställa in bithastigheten till %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "USB-masslagring direkt I/O" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Misslyckades med att öppna ”%s” (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Kunde inte stänga ”%s” (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Kunde inte söka till position: %x på ”%s” (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Kunde inte skriva till ”%s” (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Kunde inte läsa från ”%s” (%m)." + +#: usb/libusb.c:260 libusb1/libusb1.c:373 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Kunde inte öppna USB-enhet (%s)." + +#: usb/libusb.c:273 libusb1/libusb1.c:382 +msgid "Camera is already in use." +msgstr "Kameran används redan." + +#: usb/libusb.c:281 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Kunde inte koppla loss kärndrivrutinen ”%s” från kameraenhet." + +#: usb/libusb.c:286 libusb1/libusb1.c:397 +msgid "Could not query kernel driver of device." +msgstr "Kunde inte fråga kärndrivrutinen efter enheten." + +#: usb/libusb.c:295 libusb1/libusb1.c:404 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Kunde inte göra anspråk på gränssnittet %d (%s). Kontrollera att inget annat program (%s) eller kärnmodul (såsom %s) använder enheten och att du har skriv-/läsrättigheter för enheten." + +#: usb/libusb.c:307 libusb1/libusb1.c:415 +msgid "MacOS PTPCamera service" +msgstr "MacOS-tjänst för PTPCamera" + +#: usb/libusb.c:309 libusb1/libusb1.c:417 +msgid "unknown libgphoto2 using program" +msgstr "okänt program som använder libgphoto2" + +#: usb/libusb.c:326 libusb1/libusb1.c:484 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Kunde inte släppa gränssnittet %d (%s)." + +#: usb/libusb.c:341 libusb1/libusb1.c:498 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Kunde inte återställa USB-porten (%s)." + +#: usb/libusb.c:371 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Kunde inte stänga USB-porten (%s)." + +#: usb/libusb.c:632 libusb1/libusb1.c:839 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Kunde inte ställa in konfiguration %d/%d (%s)" + +#: usb/libusb.c:663 libusb1/libusb1.c:868 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Kunde inte ställa in alternativinställning från %d till %d (%s)" + +#: usb/libusb.c:752 libusb1/libusb1.c:1033 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "Den angivna tillverkar- eller produktidentiteten (0x%x,0x%x) är inte giltig." + +#: usb/libusb.c:823 usb/libusb.c:909 libusb1/libusb1.c:1002 +#: libusb1/libusb1.c:1094 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Kunde inte finna USB-enheten (tillverkare 0x%x, produkt 0x%x). Kontrollera att enheten är ansluten till datorn." + +#: usb/libusb.c:1202 libusb1/libusb1.c:1383 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Kunde inte finna USB-enheten (klass 0x%x, underklass 0x%x, protokoll 0x%x). Kontrollera att enheten är ansluten till datorn." + +#: libusb1/libusb1.c:391 +msgid "Could not detach kernel driver of camera device." +msgstr "Kunde inte koppla loss kärndrivrutinen från kameraenhet." + +#: libusb1/libusb1.c:507 +msgid "Could not reattach kernel driver of camera device." +msgstr "Kunde inte återkoppla kärndrivrutinen från kameraenhet." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Enheten ”%s” är låst av ett annat program." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Misslyckades med att låsa ”%s” (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Misslyckades med att låsa upp ”%s” (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "USB-masslagring rå SCSI" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Kunde inte skicka scsi-kommando till: ”%s” (%m)." + +#~ msgid "Called for filename '%s'." +#~ msgstr "Frågade efter filnamnet \"%s\"." + +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "Kunde inte läsa in \"%s\": \"%s\"." + +#~ msgid "Could not find some functions in '%s': '%s'." +#~ msgstr "Kunde inte hitta vissa funktioner i \"%s\": \"%s\"." + +#~ msgid "'%s' already loaded" +#~ msgstr "\"%s\" redan inläst" + +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "Kunde inte läsa in lista av portdrivrutiner: \"%s\"." + +#~ msgid "Loaded '%s' ('%s') from '%s'." +#~ msgstr "Läste in \"%s\" (\"%s\") från \"%s\"." + +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "Använder ltdl för att läsa in io-drivrutiner från \"%s\"..." + +#~ msgid "Counting entries (%i available)..." +#~ msgstr "Räknar poster (%i tillgängliga)..." + +#~ msgid "%i regular entries available." +#~ msgstr "%i vanliga poster tillgängliga." + +#~ msgid "Looking for path '%s' (%i entries available)..." +#~ msgstr "Letar efter sökvägen \"%s\" (%i poster tillgängliga)..." + +#~ msgid "Starting regex search for '%s'..." +#~ msgstr "Startar sökning med reguljärt uttryck efter \"%s\"..." + +#~ msgid "Trying '%s'..." +#~ msgstr "Provar \"%s\"..." + +#~ msgid "regcomp failed" +#~ msgstr "regcomp misslyckades" + +#~ msgid "re_match failed (%i)" +#~ msgstr "re_match misslyckades (%i)" + +#~ msgid "regexec failed" +#~ msgstr "regexec misslyckades" + +#~ msgid "Looking up entry '%s'..." +#~ msgstr "Slår upp posten \"%s\"..." + +#~ msgid "Getting info of entry %i (%i available)..." +#~ msgstr "Får information om posten %i (%i tillgängliga)..." + +#~ msgid "Creating new device..." +#~ msgstr "Skapar ny enhet..." + +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "Kunde inte läsa in \"%s\" (\"%s)\"." + +#~ msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +#~ msgstr "Kunde inte finna \"gp_port_library_operations\" i \"%s\" (\"%s\")" + +#~ msgid "Opening %s port..." +#~ msgstr "Öppnar porten %s..." + +#~ msgid "Closing port..." +#~ msgstr "Stänger port..." + +#~ msgid "Freeing port..." +#~ msgstr "Frigör port..." + +#~ msgid "Writing %i=0x%x byte(s) to port..." +#~ msgstr "Skriver %i=0x%x byte till port..." + +#~ msgid "Could only write %i out of %i byte(s)" +#~ msgstr "Kunde endast skriva %i av totalt %i byte" + +#~ msgid "Reading %i=0x%x bytes from port..." +#~ msgstr "Läser %i=0x%x byte från port..." + +#~ msgid "Could only read %i out of %i byte(s)" +#~ msgstr "Kunde endast läsa %i ut av totalt %i byte" + +# Intressant engelska. Vad menas? +#~ msgid "Reading %i=0x%x bytes from interrupt endpoint..." +#~ msgstr "Läser %i=0x%x byte från avbruten ändpunkt..." + +# Intressant engelska igen.. +#~ msgid "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +#~ msgstr "Läser %i=0x%x byte från avbruten ändpunkt (snabbt)..." + +#~ msgid "Setting timeout to %i millisecond(s)..." +#~ msgstr "Ställer in timeout till %i millisekund(er)..." + +#~ msgid "Getting timeout..." +#~ msgstr "Får timeout..." + +#~ msgid "Current timeout: %i milliseconds" +#~ msgstr "Aktuell timeout: %i millisekunder" + +#~ msgid "Setting settings..." +#~ msgstr "Ställer in inställningar..." + +#~ msgid "Getting level of pin %i..." +#~ msgstr "Hämtar nivån av pin %i..." + +#~ msgid "Level of pin %i: %i" +#~ msgstr "Nivå av pin %i: %i" + +#~ msgid "Setting pin %i (%s: '%s') to '%s'..." +#~ msgstr "Ställer in pin %i (%s: \"%s\") till \"%s\"..." + +#~ msgid "Sending break (%i milliseconds)..." +#~ msgstr "Skickar avbrott (%i millisekunder)..." + +#~ msgid "Flushing port..." +#~ msgstr "Spolar port..." + +#~ msgid "Clear halt..." +#~ msgstr "Rensa stopp" + +#~ msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Skriver meddelande (begäran=0x%x värde=0x%x index=0x%x storlek=%i=0x%x)..." + +#~ msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Läser meddelande (begäran=0x%x värde=0x%x index=0x%x storlek=%i=0x%x)..." + +#~ msgid "msg_read" +#~ msgstr "medd_läs" + +#~ msgid "Device has driver '%s' attached, detaching it now." +#~ msgstr "Enheten har drivrutinen \"%s\" ansluten, kopplar loss den nu." + +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "USB-enheten (tillverkare 0x%x, produkt 0x%x) är en masslagringsenhet och kanske inte fungerar med gphoto2. Referens: %s" + +#~ msgid "(unknown)" +#~ msgstr "(okänt)" + +#~ msgid "Could not load any io-library because '%s' could not be opened (%m)" +#~ msgstr "Kunde inte ladda något io-bibliotek eftersom '%s' inte kunde öppnas (%m)" + +#, fuzzy +#~ msgid "Could not find some functions in '%s' (%s)" +#~ msgstr "Kunde inte stänga '%s' (%m)." + +#, fuzzy +#~ msgid "Could not load list (%s)" +#~ msgstr "Kunde inte stänga '%s' (%m)." + +#, fuzzy +#~ msgid "Could not load '%s' ('%s')" +#~ msgstr "Kunde inte stänga '%s' (%m)." + +#~ msgid "open" +#~ msgstr "öppna" + +#~ msgid "close" +#~ msgstr "stäng" + +#~ msgid "write" +#~ msgstr "skriv" + +#~ msgid "read" +#~ msgstr "läs" + +#~ msgid "check_int" +#~ msgstr "check_int" + +#~ msgid "update" +#~ msgstr "uppdatera" + +#~ msgid "get_pin" +#~ msgstr "hämta_pin" + +#~ msgid "set_pin" +#~ msgstr "sätt_pin" + +#~ msgid "send_break" +#~ msgstr "sänd_avbrott" + +#~ msgid "flush" +#~ msgstr "spola_ut" + +#~ msgid "find_device" +#~ msgstr "hitta_enhet" + +#~ msgid "find_device_by_class" +#~ msgstr "hitta_enhet_efter_klass" + +#~ msgid "msg_write" +#~ msgstr "medd_skriv" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/uk.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/uk.po new file mode 100644 index 00000000..10a80ff2 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/uk.po @@ -0,0 +1,566 @@ +# Ukrainian translation of libgphoto2_port. +# Copyright (C) 2000 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# +# Maxim V. Dziumanenko , 2006-2007. +# Yuri Chornoivan , 2012, 2013, 2014, 2016. +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port-2.5.10\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-02-22 21:02+0100\n" +"PO-Revision-Date: 2016-03-24 21:19+0200\n" +"Last-Translator: Yuri Chornoivan \n" +"Language-Team: Ukrainian \n" +"Language: uk\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.5\n" +"Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Звичайний порт" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Помилок немає" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Невизначена помилка" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Помилка вводу/виводу" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Неправильні аргументи" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Непідтримувана дія" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Перевищено визначене обмеження" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Вийшов час очікування відповіді при читанні або записі у порт" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Немає підтримки послідовного порту" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "Немає підтримки порту USB" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Невідомий порт" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Недостатньо пам'яті" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Помилка завантаження бібліотеки" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Помилка ініціалізації порту" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Помилка читання з порту" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Помилка запису у порт" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Помилка оновлення параметрів порту" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Помилка встановлення швидкості передачі через послідовний порт" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Помилка усунення halt-умови на порту USB" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Не вдалося знайти запитаний пристрій на порту USB" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Не вдалося отримати контроль на д пристроєм USB" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Не вдалося заблокувати пристрій" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "помилка libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Невідома помилка" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Цей пристрій не підтримує операцію «%s»" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "порт ще не був ініціалізований" + +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "низьк." + +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "висок." + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "Опис помилки недоступний" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "Носій «%s»" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Не вдалося заблокувати пристрій «%s»" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Пристрій «%s» заблоковано процесом з pid %d" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Неможливо заблокувати пристрій «%s» (функція dev_lock повернула %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Пристрій «%s» неможливо розблокувати." + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Пристрій «%s» неможливо розблокувати, оскільки він заблокований процесом %d." + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "пристрій «%s» неможливо розблокувати (функція dev_unlock повернула значення %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "Послідовний порт %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "Пристрій послідовного порту" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Не вдалося відкрити «%s» (%s)." + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Не вдалося закрити «%s» (%s)." + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Не вдалося записати у порт (%s)" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "Помилка парності" + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Неочікувана послідовність контролю парності 0xff 0x%02x." + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "Невідомий pin %i." + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Не вдалося отримати рівень pin %i (%s)." + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Не вдалося встановити рівень pin %i у %i (%s)." + +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Не вдалося скинути буфери пристрою «%s» (%s)." + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Неможливо встановити швидкість %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "Безпосереднє введення-виведення на пристрої USB" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Не вдалося відкрити «%s» (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Не вдалося закрити «%s» (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Не вдалося встановити позицію з відступом %x на «%s» (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Не вдалося виконати запис до «%s» (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Не вдалося виконати читання з «%s» (%m)." + +#: usb/libusb.c:260 libusb1/libusb1.c:373 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Не вдалося відкрити пристрій USB (%s)." + +#: usb/libusb.c:273 libusb1/libusb1.c:382 +msgid "Camera is already in use." +msgstr "Фотоапарат вже зайнятий." + +#: usb/libusb.c:281 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Не вдалося відключити драйвера ядра «%s» для пристрою фотоапарата." + +#: usb/libusb.c:286 libusb1/libusb1.c:397 +msgid "Could not query kernel driver of device." +msgstr "Не вдалося опитати драйвер ядра для пристрою." + +#: usb/libusb.c:295 libusb1/libusb1.c:404 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Не вдалося захопити інтерфейс %d (%s). Перевірте, що пристрій не зайнятий іншою програмою (%s) або модулем ядра (таким як %s), та що у вас є доступ читання та запису до пристрою." + +#: usb/libusb.c:307 libusb1/libusb1.c:415 +msgid "MacOS PTPCamera service" +msgstr "Служба PTPCamera MacOS" + +#: usb/libusb.c:309 libusb1/libusb1.c:417 +msgid "unknown libgphoto2 using program" +msgstr "невідома програма, що використовує libgphoto2" + +#: usb/libusb.c:326 libusb1/libusb1.c:484 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Не вдалося звільнити інтерфейс %d (%s)." + +#: usb/libusb.c:341 libusb1/libusb1.c:498 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Не вдалося відновити початковий стан порту USB (%s)." + +#: usb/libusb.c:371 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Не вдалося зарити порт USB (%s)." + +#: usb/libusb.c:632 libusb1/libusb1.c:839 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Не вдалося встановити налаштування %d/%d (%s)" + +#: usb/libusb.c:663 libusb1/libusb1.c:868 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Не вдалося встановити альтернативне значення з %d на %d (%s)" + +#: usb/libusb.c:752 libusb1/libusb1.c:1033 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "неправильний ідентифікатор виробника та продукту (0x%x,0x%x)." + +#: usb/libusb.c:823 usb/libusb.c:909 libusb1/libusb1.c:1002 +#: libusb1/libusb1.c:1094 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Не вдалося знайти пристрій USB (виробник 0x%x, продукт 0x%x). Перевірте, що пристрій з'єднаний з комп'ютером." + +#: usb/libusb.c:1202 libusb1/libusb1.c:1383 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Не вдалося знайти пристрій USB (клас 0x%x, підклас 0x%x, протокол 0x%x). Перевірте, що пристрій з'єднаний з комп'ютером." + +#: libusb1/libusb1.c:391 +msgid "Could not detach kernel driver of camera device." +msgstr "Не вдалося відключити драйвера ядра для пристрою фотоапарата." + +#: libusb1/libusb1.c:507 +msgid "Could not reattach kernel driver of camera device." +msgstr "Не вдалося повторно з’єднати драйвер ядра для пристрою фотоапарата." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Пристрій «%s» заблоковано іншою програмою." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Не вдалося заблокувати «%s» (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Не вдалося розблокувати «%s» (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "SCSI без обробки для пристроїв USB" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Не вдалося надіслати команду scsi до «%s» (%m)." + +#~ msgid "Called for filename '%s'." +#~ msgstr "Виклик для файла «%s»." + +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "Не вдалося завантажити «%s»: «%s»." + +#~ msgid "Could not find some functions in '%s': '%s'." +#~ msgstr "Не знайдені деякі функції у «%s»: «%s»." + +#~ msgid "'%s' already loaded" +#~ msgstr "«%s» вже завантажено" + +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "Не вдалося завантажити список драйверів портів: «%s»." + +#~ msgid "Loaded '%s' ('%s') from '%s'." +#~ msgstr "Завантажено «%s» («%s») з «%s»." + +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "Використовується ltdl для завантаження драйверів портів з «%s»…" + +#~ msgid "Counting entries (%i available)..." +#~ msgid_plural "Counting entries (%i available)..." +#~ msgstr[0] "Підрахунок кількості записів (доступно %i)…" +#~ msgstr[1] "Підрахунок кількості записів (доступно %i)…" +#~ msgstr[2] "Підрахунок кількості записів (доступно %i)…" +#~ msgstr[3] "Підрахунок кількості записів (доступно %i)…" + +#~ msgid "%i regular entry available." +#~ msgid_plural "%i regular entries available." +#~ msgstr[0] "доступний %i звичайний запис." +#~ msgstr[1] "доступні %i звичайних записи." +#~ msgstr[2] "доступні %i звичайних записів." +#~ msgstr[3] "доступний %i звичайний запис." + +#~ msgid "Looking for path '%s' (%i entry available)..." +#~ msgid_plural "Looking for path '%s' (%i entries available)..." +#~ msgstr[0] "Пошук шляху «%s» (доступний %i запис)…" +#~ msgstr[1] "Пошук шляху «%s» (доступні %i записи)…" +#~ msgstr[2] "Пошук шляху «%s» (доступні %i записів)…" +#~ msgstr[3] "Пошук шляху «%s» (доступний %i запис)…" + +#~ msgid "Starting regex search for '%s'..." +#~ msgstr "Початок пошуку «%s» з використанням регулярних виразів…" + +#~ msgid "Trying '%s'..." +#~ msgstr "перевіряється «%s»…" + +#~ msgid "regcomp failed" +#~ msgstr "помилка regcomp" + +#~ msgid "re_match failed (%i)" +#~ msgstr "помилка re_match (%i)" + +#~ msgid "regexec failed" +#~ msgstr "помилка regexec" + +#~ msgid "Looking up entry '%s'..." +#~ msgstr "Пошук запису «%s»…" + +#~ msgid "Getting info of entry %i (%i available)..." +#~ msgid_plural "Getting info of entry %i (%i available)..." +#~ msgstr[0] "Отримання інформації про запис %i (доступно %i)…" +#~ msgstr[1] "Отримання інформації про запис %i (доступно %i)…" +#~ msgstr[2] "Отримання інформації про запис %i (доступно %i)…" +#~ msgstr[3] "Отримання інформації про запис %i (доступно %i)…" + +#~ msgid "Creating new device..." +#~ msgstr "Створюється новий пристрій…" + +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "Не вдалося завантажити «%s» («%s»)." + +#~ msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +#~ msgstr "Не вдалося знайти 'gp_port_library_operations' у «%s» («%s»)" + +#~ msgid "Opening %s port..." +#~ msgstr "Відкривання %s порту…" + +#~ msgid "Closing port..." +#~ msgstr "Закривання порту…" + +#~ msgid "Resetting port..." +#~ msgstr "Звільняємо порт…" + +#~ msgid "Freeing port..." +#~ msgstr "Звільнення порту…" + +#~ msgid "Writing %i=0x%x byte(s) to port..." +#~ msgstr "Запис %i=0x%x байтів до порту…" + +#~ msgid "Could only write %i out of %i byte" +#~ msgid_plural "Could only write %i out of %i bytes" +#~ msgstr[0] "Записано лише %i з %i байта" +#~ msgstr[1] "Записано лише %i з %i байтів" +#~ msgstr[2] "Записано лише %i з %i байтів" +#~ msgstr[3] "Записано лише %i з %i байта" + +#~ msgid "Reading %i=0x%x byte from port..." +#~ msgid_plural "Reading %i=0x%x bytes from port..." +#~ msgstr[0] "Читання %i=0x%x байта з порту…" +#~ msgstr[1] "Читання %i=0x%x байтів з порту…" +#~ msgstr[2] "Читання %i=0x%x байтів з порту…" +#~ msgstr[3] "Читання %i=0x%x байта з порту…" + +#~ msgid "Could only read %i out of %i byte" +#~ msgid_plural "Could only read %i out of %i byte(s)" +#~ msgstr[0] "Вдалося прочитати лише %i з %i байта" +#~ msgstr[1] "Вдалося прочитати лише %i з %i байтів" +#~ msgstr[2] "Вдалося прочитати лише %i з %i байтів" +#~ msgstr[3] "Вдалося прочитати лише %i з %i байта" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint..." +#~ msgstr[0] "Читання %i=0x%x байта з кінцевої точки переривання…" +#~ msgstr[1] "Читання %i=0x%x байтів з кінцевої точки переривання…" +#~ msgstr[2] "Читання %i=0x%x байтів з кінцевої точки переривання…" +#~ msgstr[3] "Читання %i=0x%x байта з кінцевої точки переривання…" + +#~ msgid "Could only read %i out of %i byte(s)" +#~ msgstr "Вдалося прочитати лише %i з %i байта" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint (fast)..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +#~ msgstr[0] "Читання %i=0x%x байта з кінцевої точки переривання (прискорене)…" +#~ msgstr[1] "Читання %i=0x%x байтів з кінцевої точки переривання (прискорене)…" +#~ msgstr[2] "Читання %i=0x%x байтів з кінцевої точки переривання (прискорене)…" +#~ msgstr[3] "Читання %i=0x%x байта з кінцевої точки переривання (прискорене)…" + +#~ msgid "Setting timeout to %i millisecond(s)..." +#~ msgstr "Встановлення часу очікування у %i мілісекунду…" + +#~ msgid "Getting timeout..." +#~ msgstr "Визначення часу затримки…" + +#~ msgid "Current timeout: %i milliseconds" +#~ msgstr "Поточний час затримки: %i мілісекунд" + +#~ msgid "Setting settings..." +#~ msgstr "Встановлення параметрів…" + +#~ msgid "Getting level of pin %i..." +#~ msgstr "Отримання рівня pin %i…" + +#~ msgid "Level of pin %i: %i" +#~ msgstr "Рівень pin %i: %i" + +#~ msgid "Setting pin %i (%s: '%s') to '%s'..." +#~ msgstr "Встановлення pin %i (%s: «%s») у «%s»…" + +#~ msgid "Sending break (%i milliseconds)..." +#~ msgstr "Надсилання сигналу переривання (%i мілісекунда)…" + +#~ msgid "Flushing port..." +#~ msgstr "Скидання буферів порту…" + +#~ msgid "Clear halt..." +#~ msgstr "Очистити ознаку halt…" + +#~ msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Запис повідомлення (запит=0x%x значення=0x%x індекс=0x%x розмір=%i=0x%x)…" + +#~ msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Читання повідомлення (запит=0x%x значення=0x%x індекс=0x%x розмір=%i=0x%x)…" + +#~ msgid "Device has driver '%s' attached." +#~ msgstr "З пристроєм з’єднано драйвер «%s»." + +#~ msgid "Device has driver '%s' attached, detaching it now." +#~ msgstr "Підключено драйвер «%s». Виконується відключення драйвера." + +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "Пристрій USB (виробник 0x%x, продукт 0x%x) працює як пристрій зберігання даних. Програма gphoto2 не може його використовувати: %s" + +#~ msgid "Device has a kernel driver attached (%d), detaching it now." +#~ msgstr "Для пристрою використано драйвер ядра (%d), від’єднуємо драйвер." + +#~ msgid "Could not open USB device (%m)." +#~ msgstr "Не вдалося відкрити пристрій USB (%m)." + +#~ msgid "Could not claim interface %d (%m). Make sure no other program or kernel module (such as %s) is using the device and you have read/write access to the device." +#~ msgstr "Не вдалося захопити інтерфейс %d (%m). Перевірте, що пристрій не зайнятий іншою програмою або модулем ядра (таким як %s), та що у вас є доступ читання та запису до пристрою." + +#~ msgid "Could not release interface %d (%m)." +#~ msgstr "Не вдалося звільнити інтерфейс %d (%m)." + +#~ msgid "Could not reset USB port (%m)." +#~ msgstr "Не вдалося відновити початковий стан порту USB (%m)." + +#~ msgid "Could not set config %d/%d (%m)" +#~ msgstr "Не вдалося змінити конфігурацію %d/%d (%m)" + +#~ msgid "Could not set altsetting from %d to %d (%m)" +#~ msgstr "Не вдалося встановити альтернативне значення з %d на %d (%m)" + +#~ msgid "(unknown)" +#~ msgstr "(невідомий)" + +#~ msgid "msg_read" +#~ msgstr "msg_read" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/vi.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/vi.po new file mode 100644 index 00000000..2c661a86 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/vi.po @@ -0,0 +1,543 @@ +# Vietnamese translation for Lib GPhoto Port. +# Bản dịch tiếng Việt dành cho libgphoto2-port. +# Copyright © 2014 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# Ngô Trần Thủy , 2005. +# Clytie Siddall , 2008, 2009, 2010. +# Trần Ngọc Quân , 2012-2014, 2017. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.13\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2017-04-08 17:08+0200\n" +"PO-Revision-Date: 2017-04-11 08:02+0700\n" +"Last-Translator: Trần Ngọc Quân \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Language-Team-Website: \n" +"X-Generator: Gtranslator 2.91.7\n" +"X-Poedit-SourceCharset: UTF-8\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "Cổng chung" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "Không có lỗi" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "Lỗi không xác định" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "Vấn đề V/R" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "Tham số sai" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "Thao tác không được hỗ trợ" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "Giới hạn cứng đã bị vượt quá" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "Quá hạn khi đọc từ hoặc khi ghi vào cổng đó" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "Cổng song song không được hỗ trợ" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "Cổng USB không được hỗ trợ" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "Không rõ cổng" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "Hết bộ nhớ" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "Gặp lỗi khi tải thư viện" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "Gặp lỗi khi khởi tạo cổng" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "Gặp lỗi khi đọc từ cổng" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "Gặp lỗi khi ghi vào cổng" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "Gặp lỗi khi cập nhật các cài đặt cổng" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "Gặp lỗi khi đặt tốc độ của cổng song song" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "Gặp lỗi khi thoát khỏi trạng thái bị ngừng của cổng USB" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "Không tìm thấy thiết bị yêu cầu trên cổng USB" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "Không thể quyền đòi thiết bị USB" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "Không thể khóa thiết bị" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "Lỗi libhal" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "Lỗi không rõ" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "Thao tác “%s” không được hỗ trợ bởi thiết bị này" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "Cổng còn chưa được khởi tạo" + +#: libgphoto2_port/gphoto2-port.c:686 +msgid "low" +msgstr "thấp" + +#: libgphoto2_port/gphoto2-port.c:687 +msgid "high" +msgstr "cao" + +#: libgphoto2_port/gphoto2-port.c:1215 +msgid "No error description available" +msgstr "Không có sẵn mô tả lỗi" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "Đa phương tiện “%s”" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "Không thể khóa thiết bị “%s”" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "Thiết bị “%s” bị khóa bởi tiến trình có mã số (PID) %d" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "Không thể khóa thiết bị “%s” (dev_lock [khóa thiết bị] đã trả về %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "Không thể mở khóa thiết bị “%s”" + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "Không thể mở khóa thiết bị “%s” bởi vì nó bị PID %d khóa." + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "Không thể mở khóa thiết bị “%s” (dev_unlock [mở khóa thiết bị] đã trả về %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "Cổng nối tiếp %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "Thiết bị cổng nối tiếp" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "Gặp lỗi khi mở “%s” (%s)." + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "Không thể đóng “%s” (%s)." + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "Không thể ghi vào cổng (%s)" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "Lỗi chẵn lẻ." + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "Gặp dãy đáp ứng chẵn lẻ bất thường 0xff 0x%02x." + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "Không hiểu chân %i." + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "Không thể lấy được mức chân %i (%s)." + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "Không thể đặt mức chân từ %i thành %i (%s)." + +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "Không thể đẩy dữ liệu lên đĩa (flush) “%s” (%s)." + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "Không thể đặt tốc độ truyền thành %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "V/R trực tiếp Lưu trữ Hàng loạt USB" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "Gặp lỗi khi mở “%s” (%m)." + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "Không thể đóng “%s” (%m)." + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "Không thể di chuyển vị trí đọc đến vị trí bù: %x trên “%s” (%m)." + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "Không thể ghi vào “%s” (%m)." + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "Không thể đọc từ “%s” (%m)." + +#: usb/libusb.c:264 libusb1/libusb1.c:385 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "Không thể mở thiết bị USB (%s)." + +#: usb/libusb.c:277 libusb1/libusb1.c:394 +msgid "Camera is already in use." +msgstr "Máy ảnh đã được được dùng rồi." + +#: usb/libusb.c:285 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "Không thể gỡ ra trình điều khiển hạt nhân “%s” của thiết bị máy ảnh." + +#: usb/libusb.c:290 libusb1/libusb1.c:409 +msgid "Could not query kernel driver of device." +msgstr "Không thể truy vấn trình điều khiển hạt nhân của thiết bị." + +#: usb/libusb.c:299 libusb1/libusb1.c:416 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "Không thể yêu cầu giao diện %d (%s). Kiểm tra xem không có chương trình khác (%s) hoặc mô-đun hạt nhân (v.d. %s) đang sử dụng thiết bị và bạn có quyền đọc/ghi vào thiết bị này." + +#: usb/libusb.c:311 libusb1/libusb1.c:427 +msgid "MacOS PTPCamera service" +msgstr "Dịch vụ MacOS PTPCamera" + +#: usb/libusb.c:313 libusb1/libusb1.c:429 +msgid "unknown libgphoto2 using program" +msgstr "không hiểu chương trình dùng libgphoto2" + +#: usb/libusb.c:330 libusb1/libusb1.c:496 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "Không thể thả giao diện %d (%s)." + +#: usb/libusb.c:345 libusb1/libusb1.c:510 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "Không thể đặt lại cổng USB (%s)." + +#: usb/libusb.c:375 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "Không thể đóng cổng USB (%s)." + +#: usb/libusb.c:637 libusb1/libusb1.c:857 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "Không thể đặt cấu hình %d/%d (%s)" + +#: usb/libusb.c:668 libusb1/libusb1.c:886 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "Không thể đặt altsetting (cài đặt xen kẽ) từ %d thành %d (%s)" + +#: usb/libusb.c:757 libusb1/libusb1.c:1051 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "Mã sản phẩm hay mã nhà sản xuất (0x%x, 0x%x) không phải hợp lệ." + +#: usb/libusb.c:828 usb/libusb.c:914 libusb1/libusb1.c:1020 +#: libusb1/libusb1.c:1112 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "Không tìm thấy thiết bị USB (nhà sản xuất 0x%x, sản phẩm 0x%x). Kiểm tra xem thiết bị này được kết nối đến máy tính." + +#: usb/libusb.c:1207 libusb1/libusb1.c:1401 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "Không tìm thấy thiết bị USB (hạng 0x%x, lớp con 0x%x, giao thức 0x%x). Kiểm tra xem thiết bị này được kết nối đến máy tính." + +#: libusb1/libusb1.c:403 +msgid "Could not detach kernel driver of camera device." +msgstr "Không thể gỡ ra trình điều khiển hạt nhân của thiết bị máy ảnh." + +#: libusb1/libusb1.c:519 +msgid "Could not reattach kernel driver of camera device." +msgstr "Không thể gỡ kết nối lại trình điều khiển hạt nhân của thiết bị máy ảnh." + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "Thiết bị “%s” bị khóa bởi ứng dụng khác." + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "Gặp lỗi khi khóa “%s” (%m)." + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "Gặp lỗi khi mở khóa “%s” (%m)." + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "SCSI thô Lưu trữ Hàng loạt USB" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "Không thể gửi câu lệnh scsi đến: “%s” (%m)." + +#~ msgid "Called for filename '%s'." +#~ msgstr "Đã gọi cho tên tập tin “%s”." + +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "Không thể tải “%s”: “%s”." + +#~ msgid "Could not find some functions in '%s': '%s'." +#~ msgstr "Không thể tìm thấy một số chức năng trong “%s”: ”%s”." + +#~ msgid "'%s' already loaded" +#~ msgstr "“%s” đã được tải sẵn" + +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "Không thể tải được danh sách trình điều khiển thiết bị cổng: “%s”." + +#~ msgid "Loaded '%s' ('%s') from '%s'." +#~ msgstr "Đã tải “%s” (“%s”) từ “%s”." + +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "Đang dùng ltdl để tải các trình điều khiển V/R từ “%s”…" + +#~ msgid "Counting entries (%i available)..." +#~ msgid_plural "Counting entries (%i available)..." +#~ msgstr[0] "Đang đếm số lượng mục tin (có %i sẵn sàng)…" + +#~ msgid "%i regular entry available." +#~ msgid_plural "%i regular entries available." +#~ msgstr[0] "%i mục tin thông thường sẵn dùng." + +#~ msgid "Looking for path '%s' (%i entry available)..." +#~ msgid_plural "Looking for path '%s' (%i entries available)..." +#~ msgstr[0] "Đang tìm cho đường đẫn “%s” (%i mục sẵn sàng)…" + +#~ msgid "Starting regex search for '%s'..." +#~ msgstr "Đang bắt đầu quá trình tìm kiếm bằng biểu thức chính quy cho “%s”…" + +#~ msgid "Trying '%s'..." +#~ msgstr "Đang thử “%s”…" + +#~ msgid "regcomp failed" +#~ msgstr "regcomp gặp lỗi" + +#~ msgid "re_match failed (%i)" +#~ msgstr "re_match (khớp lại) gặp lỗi (%i)" + +#~ msgid "regexec failed" +#~ msgstr "regexec (thực hiện biểu thức chính quy) gặp lỗi" + +#~ msgid "Looking up entry '%s'..." +#~ msgstr "Tìm kiếm mục “%s”… " + +#~ msgid "Getting info of entry %i (%i available)..." +#~ msgid_plural "Getting info of entry %i (%i available)..." +#~ msgstr[0] "Đang lấy dữ liệu của mục %i (có %i sẵn sàng)…" + +#~ msgid "Creating new device..." +#~ msgstr "Đang tạo thiết bị mới…" + +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "Không thể tải “%s” (“%s”)." + +#~ msgid "Could not find 'gp_port_library_operations' in '%s' ('%s')" +#~ msgstr "Không tìm thấy “gp_port_library_operations” (các thao tác thư viện cổng gp) tại “%s” (”%s”)" + +#~ msgid "Opening %s port..." +#~ msgstr "Đang mở cổng %s…" + +#~ msgid "Closing port..." +#~ msgstr "Đang đóng cổng…" + +#~ msgid "Resetting port..." +#~ msgstr "Đang đặt lại cổng…" + +#~ msgid "Freeing port..." +#~ msgstr "Đang giải phóng cổng…" + +#~ msgid "Writing %i=0x%x byte(s) to port..." +#~ msgstr "Đang ghi %i=0x%x byte ra cổng…" + +#~ msgid "Could only write %i out of %i byte" +#~ msgid_plural "Could only write %i out of %i bytes" +#~ msgstr[0] "Chỉ ghi được %i từ %i byte" + +#~ msgid "Reading %i=0x%x byte from port..." +#~ msgid_plural "Reading %i=0x%x bytes from port..." +#~ msgstr[0] "Đang đọc %i=0x%x byte từ cổng…" + +#~ msgid "Could only read %i out of %i byte" +#~ msgid_plural "Could only read %i out of %i byte(s)" +#~ msgstr[0] "Chỉ đọc được %i trong số %i byte" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint..." +#~ msgstr[0] "Đang đọc %i=0x%x byte từ thời điểm cuối cùng bị ngắt…" + +#~ msgid "Could only read %i out of %i byte(s)" +#~ msgstr "Chỉ đọc được %i trong số %i byte" + +#~ msgid "Reading %i=0x%x byte from interrupt endpoint (fast)..." +#~ msgid_plural "Reading %i=0x%x bytes from interrupt endpoint (fast)..." +#~ msgstr[0] "Đang đọc %i=0x%x byte từ thời điểm cuối cùng bị ngắt (nhanh)…" + +#~ msgid "Setting timeout to %i millisecond(s)..." +#~ msgstr "Đang đặt thời gian chờ tối đa thành %i mi-li-giây…" + +#~ msgid "Getting timeout..." +#~ msgstr "Đang lấy thời gian chờ tối đa…" + +#~ msgid "Current timeout: %i milliseconds" +#~ msgstr "Thời gian chờ tối đa hiện thời: %i mi-li-giây" + +#~ msgid "Setting settings..." +#~ msgstr "Đang cài đặt các cài đặt…." + +#~ msgid "Getting level of pin %i..." +#~ msgstr "Đang lấy mức của chân %i…" + +#~ msgid "Level of pin %i: %i" +#~ msgstr "Mức của chân %i: %i" + +#~ msgid "Setting pin %i (%s: '%s') to '%s'..." +#~ msgstr "Đăng đặt chân %i (%s: “%s”) thành “%s”… " + +#~ msgid "Sending break (%i milliseconds)..." +#~ msgstr "Đang gửi lệnh ngắt (%i mi-li-giây)…" + +#~ msgid "Flushing port..." +#~ msgstr "Đang đẩy dữ liệu lên cổng…" + +#~ msgid "Clear halt..." +#~ msgstr "Thoát khỏi trạng thái bị ngừng…" + +#~ msgid "Writing message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Đang ghi thông điệp (yêu cầu=0x%x giá trị=0x%x chỉ mục=0x%x kích cỡ=%i=0x%x)…" + +#~ msgid "Reading message (request=0x%x value=0x%x index=0x%x size=%i=0x%x)..." +#~ msgstr "Đang đọc thông điệp (yêu cầu=0x%x giá trị=0x%x chỉ mục=0x%x kích cỡ=%i=0x%x)…" + +#~ msgid "Device has driver '%s' attached." +#~ msgstr "Trình điều khiển “%s” được gắn nối." + +#~ msgid "Device has driver '%s' attached, detaching it now." +#~ msgstr "Thiết bị có trình điều khiển đính kèm “%s” nên gỡ ra ngay bây giờ." + +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "Thiết bị USB (nhà sản xuất 0x%x, sản phẩm 0x%x) là một thiết bị lưu trữ hàng loạt, và có thể không hoạt động được với trình gphoto2. Tham khảo : %s" + +#~ msgid "Device has a kernel driver attached (%d), detaching it now." +#~ msgstr "Thiết bị có trình điều khiển nhân đính kèm (%d), đang gỡ ra ngay bây giờ." + +#~ msgid "Could not open USB device (%m)." +#~ msgstr "Không thể mở thiết bị USB (%m)." + +#~ msgid "Could not claim interface %d (%m). Make sure no other program or kernel module (such as %s) is using the device and you have read/write access to the device." +#~ msgstr "Không thể quyền đòi giao diện %d (%m). Kiểm tra xem không có chương trình khác hoặc môđ-đun hạt nhân (v.d. %s) đang sử dụng thiết bị, và bạn có quyền đọc từ và ghi vào thiết bị này." + +#~ msgid "Could not release interface %d (%m)." +#~ msgstr "Không thể nhả giao diện %d (%m)." + +#~ msgid "Could not reset USB port (%m)." +#~ msgstr "Không thể đặt lại cổng USB (%m)." + +#~ msgid "Could not set config %d/%d (%m)" +#~ msgstr "Không thể đặt cấu hình %d/%d (%m)" + +#~ msgid "Could not set altsetting from %d to %d (%m)" +#~ msgstr "Không thể đặt altsetting (cài đặt xen kẽ) từ %d thành %d (%m)" + +#~ msgid "(unknown)" +#~ msgstr "(không rõ)" + +#~ msgid "msg_read" +#~ msgstr "msg_read (đọc thông điệp)" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/zh_CN.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/zh_CN.po new file mode 100644 index 00000000..75079450 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/zh_CN.po @@ -0,0 +1,457 @@ +# Simplified Chinese Translation. +# Copyright (C) 2002, 05 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# Wang Li , 2002 +# Mingye Wang (Arthur2e5) , 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.10\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2016-02-22 21:02+0100\n" +"PO-Revision-Date: 2016-10-16 16:31-0400\n" +"Last-Translator: Mingye Wang (Arthur2e5) \n" +"Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"X-Generator: Poedit 1.8.7\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "通用端口" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "无错误" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "未指明的错误" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "I/O 问题" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "错误的参数" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "不支持的操作" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "超出了固定限制" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "读取或写入端口超时" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "不支持串口" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "不支持 USB 接口" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "未知端口" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "内存耗尽" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "装入库出错" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "初始化端口出错" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "读端口出错" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "写端口出错" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "更新端口设置出错" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "设置串口速度出错" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "清除 USB 端口的一个中止条件出错" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "无法在 USB 端口找到请求的设备" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "无法请求 USB 设备" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "无法锁定设备" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "libhal 错误" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "未知的错误" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "该设备不支持操作‘%s’" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "端口尚未初始化" + +#: libgphoto2_port/gphoto2-port.c:682 +msgid "low" +msgstr "低" + +#: libgphoto2_port/gphoto2-port.c:683 +msgid "high" +msgstr "高" + +#: libgphoto2_port/gphoto2-port.c:1211 +msgid "No error description available" +msgstr "没有可用的错误描述" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "介质 %s" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "无法锁定设备‘%s’" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "设备‘%s’已经被进行号为 %d 的进程锁定" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "无法锁定设备‘%s’(dev_lock 返回 %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "无法解锁设备‘%s’。" + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "由于设备‘%s’已被进程号为 %d 的进程锁定,所以无法锁定。" + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "无法解锁设备‘%s’(dev_unlock 返回 %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "串口 %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "串口设备" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "打开 %s 时失败 (%s)。" + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "无法关闭 %s (%s)。" + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "无法写入端口 (%s)" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "奇偶错误。" + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "意外的奇偶应答序列 0xff 0x%02x。" + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "未知插脚 %i。" + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "无法获取针脚 %i 的级别 (%s)。" + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "无法将针脚 %i 的级别设置为 %i (%s)。" + +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "无法刷新 %s (%s)。" + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "无法设置将波特率设置为 %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "USB 大容量存储器直接 IO" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "打开‘%s’(%m)失败。" + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "无法关闭‘%s’(%m)。" + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "无法寻址到偏移:%x 于 %s (%m)。" + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "无法写入 %s (%m)。" + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "无法读取 %s (%m)。" + +#: usb/libusb.c:260 libusb1/libusb1.c:373 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "无法打开 USB 设备 (%s)。" + +#: usb/libusb.c:273 libusb1/libusb1.c:382 +msgid "Camera is already in use." +msgstr "照相机在使用中。" + +#: usb/libusb.c:281 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "无法卸除照相机设备的内核驱动程序 %s。" + +#: usb/libusb.c:286 libusb1/libusb1.c:397 +msgid "Could not query kernel driver of device." +msgstr "无法查询设备的内核驱动程序。" + +#: usb/libusb.c:295 libusb1/libusb1.c:404 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "无法请求接口 %d (%s)。请确认没有其它程序 (%s) 或内核模块 (例如 %s) 正在使用这个设备,并且您有对这个设备的读/写权。" + +#: usb/libusb.c:307 libusb1/libusb1.c:415 +msgid "MacOS PTPCamera service" +msgstr "MacOS PTPCamera 服务" + +#: usb/libusb.c:309 libusb1/libusb1.c:417 +msgid "unknown libgphoto2 using program" +msgstr "未知的 libgphoto2 正使用程序" + +#: usb/libusb.c:326 libusb1/libusb1.c:484 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "无法释放接口 %d (%s)。" + +#: usb/libusb.c:341 libusb1/libusb1.c:498 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "无法重置 USB 端口 (%s)。" + +#: usb/libusb.c:371 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "无法关闭 USB 端口 (%s)。" + +#: usb/libusb.c:632 libusb1/libusb1.c:839 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "无法设置配置 %d/%d (%s)" + +#: usb/libusb.c:663 libusb1/libusb1.c:868 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "无法设置从 %d 到 %d 的替代设置 (%s)" + +#: usb/libusb.c:752 libusb1/libusb1.c:1033 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "给出的供应商或产品 id (0x%x、0x%x) 不合法。" + +#: usb/libusb.c:823 usb/libusb.c:909 libusb1/libusb1.c:1002 +#: libusb1/libusb1.c:1094 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "无法找到 USB 设备 (供应商 0x%x、产品 0x%x)。确信该设备已连接到计算机。" + +#: usb/libusb.c:1202 libusb1/libusb1.c:1383 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "无法找到 USB 设备 (类 0x%x、子类 0x%x、协议 0x%x)。确信该设备已连接到计算机。" + +#: libusb1/libusb1.c:391 +msgid "Could not detach kernel driver of camera device." +msgstr "无法卸除照相机设备的内核驱动程序。" + +#: libusb1/libusb1.c:507 +msgid "Could not reattach kernel driver of camera device." +msgstr "无法重新装载照相机设备的内核驱动程序。" + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "设备 %s 已被另一个应用程序锁定。" + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "锁定 %s 时失败 (%m)。" + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "解锁 %s 时失败 (%m)。" + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "USB 大容量存储器原始 SCSI" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "无法发送 scsi 命令给:%s (%m)。" + +#, fuzzy +#~ msgid "Called for filename '%s'." +#~ msgstr "打开‘%s’(%m)失败。" + +#, fuzzy +#~ msgid "Could not load '%s': '%s'." +#~ msgstr "无法关闭‘%s’(%m)。" + +#, fuzzy +#~ msgid "Could not load port driver list: '%s'." +#~ msgstr "无法锁定设备‘%s’" + +#, fuzzy +#~ msgid "Using ltdl to load io-drivers from '%s'..." +#~ msgstr "无法锁定设备‘%s’" + +#~ msgid "Could not load any io-library because '%s' could not be opened (%m)" +#~ msgstr "由于无法打开‘%s’(%m)所以无法装入任何 io 库" + +#, fuzzy +#~ msgid "Could not find some functions in '%s' (%s)" +#~ msgstr "无法关闭‘%s’(%m)。" + +#, fuzzy +#~ msgid "Could not load list (%s)" +#~ msgstr "无法关闭‘%s’(%m)。" + +#, fuzzy +#~ msgid "Could not load '%s' ('%s')." +#~ msgstr "无法关闭‘%s’(%m)。" + +#, fuzzy +#~ msgid "Could not load '%s' ('%s')" +#~ msgstr "无法关闭‘%s’(%m)。" + +#, fuzzy +#~ msgid "Could only write %i out of %i byte(s)" +#~ msgstr "无法写端口 (%m)" + +#, fuzzy +#~ msgid "Getting level of pin %i..." +#~ msgstr "无法获取插脚 %i 的级别 (%m)。" + +#, fuzzy +#~ msgid "Clear halt..." +#~ msgstr "清除中止" + +#~ msgid "msg_read" +#~ msgstr "读消息" + +#, fuzzy +#~ msgid "USB device (vendor 0x%x, product 0x%x) is a mass storage device, and might not function with gphoto2. Reference: %s" +#~ msgstr "无法找到 USB 设备 (供应商 0x%x、产品 0x%x)。确信该设备已连接到计算机。" + +#~ msgid "open" +#~ msgstr "打开" + +#~ msgid "close" +#~ msgstr "关闭" + +#~ msgid "write" +#~ msgstr "写入" + +#~ msgid "read" +#~ msgstr "读出" + +#~ msgid "check_int" +#~ msgstr "完整性检查" + +#~ msgid "update" +#~ msgstr "更新" + +#~ msgid "get_pin" +#~ msgstr "获取插脚" + +#~ msgid "set_pin" +#~ msgstr "设置插脚" + +#~ msgid "send_break" +#~ msgstr "发送中断" + +#~ msgid "flush" +#~ msgstr "刷新" + +#~ msgid "find_device" +#~ msgstr "寻找设备" + +#~ msgid "find_device_by_class" +#~ msgstr "按类别寻找设备" + +#~ msgid "msg_write" +#~ msgstr "写消息" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/zh_TW.po b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/zh_TW.po new file mode 100644 index 00000000..322f113d --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/po/zh_TW.po @@ -0,0 +1,365 @@ +# Traditional Chinese Messages for libgphoto2_port. +# Copyright (C) 2002, 05 Free Software Foundation, Inc. +# This file is distributed under the same license as the libgphoto2 package. +# Wang Li , 2002. +# Wei-Lun Chao , 2005, 2013, 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: libgphoto2_port 2.5.13\n" +"Report-Msgid-Bugs-To: gphoto-devel@lists.sourceforge.net\n" +"POT-Creation-Date: 2017-04-08 17:08+0200\n" +"PO-Revision-Date: 2018-06-16 17:19+0800\n" +"Last-Translator: pan93412 \n" +"Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Bugs: Report translation errors to the Language-Team address.\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 2.0.8\n" + +#: libgphoto2_port/gphoto2-port-info-list.c:409 +msgid "Generic Port" +msgstr "通用通訊埠" + +#: libgphoto2_port/gphoto2-port-result.c:58 +msgid "No error" +msgstr "無錯誤" + +#: libgphoto2_port/gphoto2-port-result.c:60 +msgid "Unspecified error" +msgstr "未指明的錯誤" + +#: libgphoto2_port/gphoto2-port-result.c:62 +msgid "I/O problem" +msgstr "I/O 問題" + +#: libgphoto2_port/gphoto2-port-result.c:64 +msgid "Bad parameters" +msgstr "不當的參數" + +#: libgphoto2_port/gphoto2-port-result.c:66 +msgid "Unsupported operation" +msgstr "不支援的操作" + +#: libgphoto2_port/gphoto2-port-result.c:68 +msgid "Fixed limit exceeded" +msgstr "超出了固定限制" + +#: libgphoto2_port/gphoto2-port-result.c:70 +msgid "Timeout reading from or writing to the port" +msgstr "讀取或寫入通訊埠逾時" + +#: libgphoto2_port/gphoto2-port-result.c:72 +msgid "Serial port not supported" +msgstr "不支援序列埠" + +#: libgphoto2_port/gphoto2-port-result.c:74 +msgid "USB port not supported" +msgstr "不支援 USB 介面" + +#: libgphoto2_port/gphoto2-port-result.c:76 +msgid "Unknown port" +msgstr "不明通訊埠" + +#: libgphoto2_port/gphoto2-port-result.c:78 +msgid "Out of memory" +msgstr "記憶體耗盡" + +#: libgphoto2_port/gphoto2-port-result.c:80 +msgid "Error loading a library" +msgstr "載入函式庫時錯誤" + +#: libgphoto2_port/gphoto2-port-result.c:82 +msgid "Error initializing the port" +msgstr "初始化通訊埠時錯誤" + +#: libgphoto2_port/gphoto2-port-result.c:84 +msgid "Error reading from the port" +msgstr "讀取通訊埠時錯誤" + +#: libgphoto2_port/gphoto2-port-result.c:86 +msgid "Error writing to the port" +msgstr "寫入通訊埠時錯誤" + +#: libgphoto2_port/gphoto2-port-result.c:88 +msgid "Error updating the port settings" +msgstr "更新通訊埠設定時錯誤" + +#: libgphoto2_port/gphoto2-port-result.c:90 +msgid "Error setting the serial port speed" +msgstr "設定序列埠速度時錯誤" + +#: libgphoto2_port/gphoto2-port-result.c:92 +msgid "Error clearing a halt condition on the USB port" +msgstr "清除 USB 通訊埠的一個中止條件時錯誤" + +#: libgphoto2_port/gphoto2-port-result.c:94 +msgid "Could not find the requested device on the USB port" +msgstr "無法在 USB 通訊埠找到要求的裝置" + +#: libgphoto2_port/gphoto2-port-result.c:96 +msgid "Could not claim the USB device" +msgstr "無法要求 USB 裝置" + +#: libgphoto2_port/gphoto2-port-result.c:98 +msgid "Could not lock the device" +msgstr "無法鎖定裝置" + +#: libgphoto2_port/gphoto2-port-result.c:100 +msgid "libhal error" +msgstr "libhal 錯誤" + +#: libgphoto2_port/gphoto2-port-result.c:102 +msgid "Unknown error" +msgstr "不明的錯誤" + +#: libgphoto2_port/gphoto2-port.c:59 +#, c-format +msgid "The operation '%s' is not supported by this device" +msgstr "這個裝置不支援 %s 操作" + +#: libgphoto2_port/gphoto2-port.c:60 +msgid "The port has not yet been initialized" +msgstr "通訊埠尚未初始化" + +#: libgphoto2_port/gphoto2-port.c:686 +msgid "low" +msgstr "低" + +#: libgphoto2_port/gphoto2-port.c:687 +msgid "high" +msgstr "高" + +#: libgphoto2_port/gphoto2-port.c:1215 +msgid "No error description available" +msgstr "沒有可用的錯誤描述" + +#: disk/disk.c:147 disk/disk.c:148 disk/disk.c:224 disk/disk.c:225 +#: disk/disk.c:265 disk/disk.c:288 +#, c-format +msgid "Media '%s'" +msgstr "媒體 %s" + +#: serial/unix.c:223 +#, c-format +msgid "Could not lock device '%s'" +msgstr "無法鎖定裝置 %s" + +#: serial/unix.c:233 usbdiskdirect/linux.c:95 +#, c-format +msgid "Device '%s' is locked by pid %d" +msgstr "裝置 %s 已經被行程編號為 %d 的行程鎖定" + +#: serial/unix.c:236 usbdiskdirect/linux.c:98 +#, c-format +msgid "Device '%s' could not be locked (dev_lock returned %d)" +msgstr "無法鎖定裝置 %s (dev_lock 回傳 %d)" + +#: serial/unix.c:265 +#, c-format +msgid "Device '%s' could not be unlocked." +msgstr "無法解鎖裝置 %s。" + +#: serial/unix.c:277 usbdiskdirect/linux.c:127 +#, c-format +msgid "Device '%s' could not be unlocked as it is locked by pid %d." +msgstr "由於裝置 %s 已被行程編號為 %d 的行程鎖定,所以無法解鎖。" + +#: serial/unix.c:281 usbdiskdirect/linux.c:131 +#, c-format +msgid "Device '%s' could not be unlocked (dev_unlock returned %d)" +msgstr "無法解鎖裝置 %s (dev_unlock 回傳 %d)" + +#: serial/unix.c:339 +#, c-format +msgid "Serial Port %i" +msgstr "序列埠 %i" + +#: serial/unix.c:352 +msgid "Serial Port Device" +msgstr "序列埠裝置" + +#: serial/unix.c:434 +#, c-format +msgid "Failed to open '%s' (%s)." +msgstr "開啟 %s (%s) 時失敗。" + +#: serial/unix.c:454 +#, c-format +msgid "Could not close '%s' (%s)." +msgstr "無法關閉 %s (%s)。" + +#: serial/unix.c:510 +#, c-format +msgid "Could not write to port (%s)" +msgstr "無法寫入通訊埠 (%s)" + +#: serial/unix.c:587 +msgid "Parity error." +msgstr "奇偶檢查錯誤。" + +#: serial/unix.c:591 +#, c-format +msgid "Unexpected parity response sequence 0xff 0x%02x." +msgstr "意外的奇偶應答序列 0xff 0x%02x。" + +#: serial/unix.c:634 +#, c-format +msgid "Unknown pin %i." +msgstr "不明針腳 %i。" + +#: serial/unix.c:656 +#, c-format +msgid "Could not get level of pin %i (%s)." +msgstr "無法獲取針腳 %i 的層級 (%s)。" + +#: serial/unix.c:692 +#, c-format +msgid "Could not set level of pin %i to %i (%s)." +msgstr "無法將針腳 %i 的層級設定為 %i (%s)。" + +#: serial/unix.c:719 +#, c-format +msgid "Could not flush '%s' (%s)." +msgstr "無法清理 %s (%s)。" + +#: serial/unix.c:831 +#, c-format +msgid "Could not set the baudrate to %d" +msgstr "無法將鮑率設定為 %d" + +#: usbdiskdirect/linux.c:234 +msgid "USB Mass Storage direct IO" +msgstr "USB 大量貯藏體直接 IO" + +#: usbdiskdirect/linux.c:285 usbscsi/linux.c:269 +#, c-format +msgid "Failed to open '%s' (%m)." +msgstr "開啟 %s (%m)失敗。" + +#: usbdiskdirect/linux.c:299 usbscsi/linux.c:297 +#, c-format +msgid "Could not close '%s' (%m)." +msgstr "無法關閉 %s (%m)。" + +#: usbdiskdirect/linux.c:323 +#, c-format +msgid "Could not seek to offset: %x on '%s' (%m)." +msgstr "無法尋指到偏移:%x 於 %s (%m)。" + +#: usbdiskdirect/linux.c:345 +#, c-format +msgid "Could not write to '%s' (%m)." +msgstr "無法寫入 %s (%m)。" + +#: usbdiskdirect/linux.c:366 +#, c-format +msgid "Could not read from '%s' (%m)." +msgstr "無法讀取自 %s (%m)。" + +#: usb/libusb.c:264 libusb1/libusb1.c:385 +#, c-format +msgid "Could not open USB device (%s)." +msgstr "無法開啟 USB 裝置 (%s)。" + +#: usb/libusb.c:277 libusb1/libusb1.c:394 +msgid "Camera is already in use." +msgstr "照相機在使用中。" + +#: usb/libusb.c:285 +#, c-format +msgid "Could not detach kernel driver '%s' of camera device." +msgstr "無法卸掛照相機裝置的核心驅動程式 %s。" + +#: usb/libusb.c:290 libusb1/libusb1.c:409 +msgid "Could not query kernel driver of device." +msgstr "無法查詢裝置的核心驅動程式。" + +#: usb/libusb.c:299 libusb1/libusb1.c:416 +#, c-format +msgid "Could not claim interface %d (%s). Make sure no other program (%s) or kernel module (such as %s) is using the device and you have read/write access to the device." +msgstr "無法請求介面 %d (%s)。請確認沒有其它程式 (%s) 或核心模組 (例如 %s) 正在使用這個裝置,並且您有對這個裝置的讀/寫權。" + +#: usb/libusb.c:311 libusb1/libusb1.c:427 +msgid "MacOS PTPCamera service" +msgstr "MacOS PTPCamera 服務" + +#: usb/libusb.c:313 libusb1/libusb1.c:429 +msgid "unknown libgphoto2 using program" +msgstr "不明的 libgphoto2 正使用程式" + +#: usb/libusb.c:330 libusb1/libusb1.c:496 +#, c-format +msgid "Could not release interface %d (%s)." +msgstr "無法釋放介面 %d (%s)。" + +#: usb/libusb.c:345 libusb1/libusb1.c:510 +#, c-format +msgid "Could not reset USB port (%s)." +msgstr "無法重置 USB 通訊埠 (%s)。" + +#: usb/libusb.c:375 +#, c-format +msgid "Could not close USB port (%s)." +msgstr "無法關閉 USB 通訊埠 (%s)。" + +#: usb/libusb.c:637 libusb1/libusb1.c:857 +#, c-format +msgid "Could not set config %d/%d (%s)" +msgstr "無法設定配置 %d/%d (%s)" + +#: usb/libusb.c:668 libusb1/libusb1.c:886 +#, c-format +msgid "Could not set altsetting from %d to %d (%s)" +msgstr "無法設定從 %d 到 %d 的補充設定 (%s)" + +#: usb/libusb.c:757 libusb1/libusb1.c:1051 +#, c-format +msgid "The supplied vendor or product id (0x%x,0x%x) is not valid." +msgstr "提供的廠商或產品 id (0x%x、0x%x) 不正確。" + +#: usb/libusb.c:828 usb/libusb.c:914 libusb1/libusb1.c:1020 +#: libusb1/libusb1.c:1112 +#, c-format +msgid "Could not find USB device (vendor 0x%x, product 0x%x). Make sure this device is connected to the computer." +msgstr "無法找到 USB 裝置 (廠商 0x%x、產品 0x%x)。請確認這個裝置已連接到電腦。" + +#: usb/libusb.c:1207 libusb1/libusb1.c:1401 +#, c-format +msgid "Could not find USB device (class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device is connected to the computer." +msgstr "無法找到 USB 裝置 (類別 0x%x、子類 0x%x、協定 0x%x)。請確認這個裝置已連接到電腦。" + +#: libusb1/libusb1.c:403 +msgid "Could not detach kernel driver of camera device." +msgstr "無法卸離照相機裝置的內核驅動程式。" + +#: libusb1/libusb1.c:519 +msgid "Could not reattach kernel driver of camera device." +msgstr "無法重新附接照相機裝置的內核驅動程式。" + +#: usbscsi/linux.c:108 +#, c-format +msgid "Device '%s' is locked by another app." +msgstr "裝置 %s 已被另一個應用程式鎖定。" + +#: usbscsi/linux.c:113 +#, c-format +msgid "Failed to lock '%s' (%m)." +msgstr "鎖定 %s (%m) 時失敗。" + +#: usbscsi/linux.c:129 +#, c-format +msgid "Failed to unlock '%s' (%m)." +msgstr "解除鎖定 %s (%m) 時失敗。" + +#: usbscsi/linux.c:230 +msgid "USB Mass Storage raw SCSI" +msgstr "USB 大量貯藏體原始 SCSI" + +#: usbscsi/linux.c:341 +#, c-format +msgid "Could not send scsi command to: '%s' (%m)." +msgstr "無法發送 scsi 命令給:%s (%m)。" diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/ptpip/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/ptpip/Makefile-files new file mode 100644 index 00000000..37f32178 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/ptpip/Makefile-files @@ -0,0 +1,12 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += ptpip.la + +ptpip_la_LDFLAGS = $(iolib_ldflags) +ptpip_la_CPPFLAGS = \ + $(AM_CPPFLAGS) \ + $(INTL_CFLAGS) \ + $(CPPFLAGS) +ptpip_la_DEPENDENCIES = $(iolib_dependencies) +ptpip_la_LIBADD = $(iolib_libadd) $(INTLLIBS) +ptpip_la_SOURCES = ptpip/ptpip.c diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/ptpip/ptpip.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/ptpip/ptpip.c new file mode 100644 index 00000000..20947d80 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/ptpip/ptpip.c @@ -0,0 +1,288 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* ptpip.c + * + * Copyright (c) 2006 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include + +#include +#include +#ifdef HAVE_FCNTL_H +# include +#endif +#include +#ifdef HAVE_SYS_TIME_H +# include +#endif +#ifdef HAVE_SYS_PARAM_H +# include +#endif +#include + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +struct _GPPortPrivateLibrary { + int dummy; /* unused yet */ +}; + +GPPortType +gp_port_library_type (void) +{ + return GP_PORT_PTPIP; +} + +/* thanks to Avahi this makes more trouble than its worth */ +#undef HAVE_MDNS_BONJOUR +#ifdef HAVE_MDNS_BONJOUR + +#include +#include +#include +#include + +struct mdnsinfo +{ + GPPortInfoList* list; + const char* name; +}; + +static void +_ptpip_resolved ( + DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, + DNSServiceErrorType errorCode, + const char *fullname, const char *hosttarget, uint16_t port, + uint16_t txtLen, const char *txtRecord, void *context +) { + struct hostent* hent; + struct in_addr inaddr; + GPPortInfo *info; + int i, cnt; + struct mdnsinfo *mdnsi = context; + char path[200]; + + if (errorCode != kDNSServiceErr_NoError) { + GP_LOG_E ("Error on 2nd level query."); + return; + } + GP_LOG_D ("fullname %s, hosttarget %s, port %d", fullname, hosttarget, htons(port)); + cnt = TXTRecordGetCount (txtLen, txtRecord); + for (i=0;ih_addr_list[0],hent->h_length); + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_PTPIP); + gp_port_info_set_name (info, mdnsi->name); + snprintf (path, sizeof(path), "ptpip:%s:%d", inet_ntoa(inaddr), htons(port)); + gp_port_info_set_path (info, path); + gp_port_info_list_append (mdnsi->list, info); +} + +static void +_ptpip_enumerate ( + DNSServiceRef sdRef, DNSServiceFlags flags, + uint32_t interfaceIndex, DNSServiceErrorType errorCode, + const char *serviceName, const char *regtype, const char *replyDomain, + void *context +) { + struct mdnsinfo mdnsi; + DNSServiceRef sd; + + if (errorCode != kDNSServiceErr_NoError) { + GP_LOG_E ("Error on _ptp._tcp query."); + return; + } + GP_LOG_D ("found %s, %s, %s", serviceName, regtype, replyDomain); + mdnsi.list = context; + mdnsi.name = serviceName; + DNSServiceResolve (&sd, + 0, + interfaceIndex, + serviceName, + regtype, + replyDomain, + _ptpip_resolved, + &mdnsi + ); + DNSServiceProcessResult (sd); + DNSServiceRefDeallocate (sd); +} +#endif + +int +gp_port_library_list (GPPortInfoList *list) +{ + GPPortInfo info; +#ifdef HAVE_MDNS_BONJOUR + DNSServiceRef sd; + DNSServiceErrorType ret; + int fd; + fd_set infds; + struct timeval tv; +#endif + + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_PTPIP); + gp_port_info_set_name (info, _("PTP/IP Connection")); + gp_port_info_set_path (info, "ptpip:"); + CHECK (gp_port_info_list_append (list, info)); + + /* Generic matcher so you can pass any IP address */ + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_PTPIP); + gp_port_info_set_name (info, ""); + gp_port_info_set_path (info, "^ptpip:"); + gp_port_info_list_append (list, info); /* do not check return */ + + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_IP); + gp_port_info_set_name (info, _("IP Connection")); + gp_port_info_set_path (info, "ip:"); + CHECK (gp_port_info_list_append (list, info)); + + /* Generic matcher so you can pass any IP address */ + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_IP); + gp_port_info_set_name (info, ""); + gp_port_info_set_path (info, "^ip:"); + gp_port_info_list_append (list, info); /* do not check return */ +#ifdef HAVE_MDNS_BONJOUR + ret = DNSServiceBrowse ( + &sd, + 0, /* unused flags */ + 0, /* all ifaces */ + "_ptp._tcp", + NULL, + _ptpip_enumerate, + list + ); + /* We need to make it a non-blocking query */ + fd = DNSServiceRefSockFD(sd); + if (fd != -1) { + FD_ZERO (&infds); FD_SET (fd, &infds); + tv.tv_sec = 0; tv.tv_usec = 1; + /* If we have input, we can try to process a result */ + if (1 == select (fd+1, &infds, NULL, NULL, &tv)) + DNSServiceProcessResult (sd); + } + DNSServiceRefDeallocate (sd); +#endif + return GP_OK; +} + +static int gp_port_ptpip_init (GPPort *dev) +{ + C_MEM (dev->pl = calloc (1, sizeof (GPPortPrivateLibrary))); + + return GP_OK; +} + +static int +gp_port_ptpip_exit (GPPort *port) +{ + free (port->pl); + port->pl = NULL; + + return GP_OK; +} + +static int +gp_port_ptpip_open (GPPort *port) +{ + return GP_OK; +} + +static int +gp_port_ptpip_close (GPPort *port) +{ + return GP_OK; +} + +static int +gp_port_ptpip_write (GPPort *port, const char *bytes, int size) +{ + return GP_OK; +} + +static int +gp_port_ptpip_read(GPPort *port, char *bytes, int size) +{ + return GP_OK; +} + +static int +gp_port_ptpip_update (GPPort *port) +{ + return GP_OK; +} + + +GPPortOperations * +gp_port_library_operations (void) +{ + GPPortOperations *ops; + + ops = calloc (1, sizeof (GPPortOperations)); + if (!ops) + return NULL; + + ops->init = gp_port_ptpip_init; + ops->exit = gp_port_ptpip_exit; + ops->open = gp_port_ptpip_open; + ops->close = gp_port_ptpip_close; + ops->read = gp_port_ptpip_read; + ops->write = gp_port_ptpip_write; + ops->update = gp_port_ptpip_update; + return ops; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/serial/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/serial/Makefile-files new file mode 100644 index 00000000..cdb9e5df --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/serial/Makefile-files @@ -0,0 +1,13 @@ +# -*- Makefile -*- + +EXTRA_LTLIBRARIES += serial.la + +serial_la_LDFLAGS = $(iolib_ldflags) +serial_la_CPPFLAGS = \ + $(AM_CPPFLAGS) \ + $(INTL_CFLAGS) \ + $(CPPFLAGS) +serial_la_DEPENDENCIES = $(iolib_dependencies) +serial_la_LIBADD = $(iolib_libadd) +serial_la_LIBADD += $(SERIAL_LIBS) $(INTLLIBS) +serial_la_SOURCES = serial/unix.c diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/serial/unix.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/serial/unix.c new file mode 100644 index 00000000..d47d7ba4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/serial/unix.c @@ -0,0 +1,978 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* + * Copyright 2001 Lutz Mueller + * Copyright 2000 Philippe Marzouk + * Copyright 2000 Edouard Lafargue + * Copyright 1999 Johannes Erdfelt + * Copyright 1999 Scott Fritzinger + * + * Based on work by: + * Copyright 1999 Beat Christen + * for the toshiba gPhoto library. + * + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE +/* Solaris needs this */ +#define __EXTENSIONS__ + +#include "config.h" +#include + + +#include +#include +#ifdef HAVE_FCNTL_H +#include +#endif +#ifdef HAVE_ERRNO_H +#include +#endif +#include +#include +#include +#include +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_SYS_IOCTL_H +#include +#endif +#ifdef HAVE_SYS_SELECT_H +# include +#endif + +#ifdef HAVE_TERMIOS_H +# include +# ifndef CRTSCTS +# define CRTSCTS 020000000000 +# endif +#else +# include +#endif + +#ifdef HAVE_TTYLOCK +# include +#elif defined(HAVE_LOCKDEV) +# include +#endif + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +/* Linux */ +#ifdef __linux__ +/* devfs is accounted for in the implementation */ +#define GP_PORT_SERIAL_PREFIX "/dev/ttyS%i" +#define GP_PORT_SERIAL_RANGE_LOW 0 +#define GP_PORT_SERIAL_RANGE_HIGH 32 + +#ifndef IXANY +#define IXANY 0004000 +#endif + +#endif + +/* FreeBSD */ +#ifdef __FreeBSD__ +#if __FreeBSD_version < 600000 +#define GP_PORT_SERIAL_PREFIX "/dev/cuaa%x" +#else +#define GP_PORT_SERIAL_PREFIX "/dev/cuad%x" +#endif +#define GP_PORT_SERIAL_RANGE_LOW 0 +#define GP_PORT_SERIAL_RANGE_HIGH (0xf) +#endif + +/* OpenBSD */ +/* devices appear to go up to /dev/cuac7, but we just list the first 4 */ +#ifdef __OpenBSD__ +# define GP_PORT_SERIAL_PREFIX "/dev/cua%02x" +# define GP_PORT_SERIAL_RANGE_LOW 0 +# define GP_PORT_SERIAL_RANGE_HIGH 3 +#endif + +/* NetBSD */ +#ifdef __NetBSD__ +#define GP_PORT_SERIAL_PREFIX "/dev/tty0%i" +#define GP_PORT_SERIAL_RANGE_LOW 0 +#define GP_PORT_SERIAL_RANGE_HIGH 32 +#endif + +/* Tru64 UNIX */ +#ifdef __osf__ +#define GP_PORT_SERIAL_PREFIX "/dev/tty%02i" +#define GP_PORT_SERIAL_RANGE_LOW 0 +#define GP_PORT_SERIAL_RANGE_HIGH 4 +#endif + +/* Darwin */ +#ifdef __APPLE__ +/* This is the Keyspan USB serial adapter device (UNTESTED) */ +#define GP_PORT_SERIAL_PREFIX "/dev/tty.KeyUSA28X%i" +#define GP_PORT_SERIAL_RANGE_LOW 111 +#define GP_PORT_SERIAL_RANGE_HIGH 1112 +#endif + +/* Solaris */ +#ifdef sun +#define GP_PORT_SERIAL_PREFIX "/dev/tty%c" +#define GP_PORT_SERIAL_RANGE_LOW 'a' +#define GP_PORT_SERIAL_RANGE_HIGH 'z' +#endif + +/* BeOS */ +#ifdef beos +/* ????????????? */ +#define GP_PORT_SERIAL_PREFIX NULL +#define GP_PORT_SERIAL_RANGE_LOW 0 +#define GP_PORT_SERIAL_RANGE_HIGH 0 +#endif + +/* Windows */ +#ifdef WIN32 +#define GP_PORT_SERIAL_PREFIX "COM%i:" +#define GP_PORT_SERIAL_RANGE_LOW 1 +#define GP_PORT_SERIAL_RANGE_HIGH 4 +#endif + +#ifdef OS2 +#define GP_PORT_SERIAL_PREFIX "COM%i" +#define GP_PORT_SERIAL_RANGE_LOW 1 +#define GP_PORT_SERIAL_RANGE_HIGH 4 +#endif + +/* IRIX */ +#if defined(__sgi) +#define GP_PORT_SERIAL_PREFIX "/dev/ttyd%i" +#define GP_PORT_SERIAL_RANGE_LOW 1 +#define GP_PORT_SERIAL_RANGE_HIGH 11 +#endif + +/* MidnightBSD */ +#ifdef __MidnightBSD__ +#define GP_PORT_SERIAL_PREFIX "/dev/cuad%x" +#define GP_PORT_SERIAL_RANGE_LOW 0 +#define GP_PORT_SERIAL_RANGE_HIGH (0xf) +#endif + +/* Others? */ + +/* Default */ +#ifndef GP_PORT_SERIAL_PREFIX +#define GP_PORT_SERIAL_PREFIX "/dev/cua%i" +#define GP_PORT_SERIAL_RANGE_LOW 0 +#define GP_PORT_SERIAL_RANGE_HIGH 0 +#endif + +struct _GPPortPrivateLibrary { + int fd; /* Device handle */ + int baudrate; /* Current speed */ +}; + +static int gp_port_serial_check_speed (GPPort *dev); + +GPPortType +gp_port_library_type () +{ + return (GP_PORT_SERIAL); +} + +static int +gp_port_serial_lock (GPPort *dev, const char *path) +{ +#if defined(HAVE_LOCKDEV) + int pid; +#endif + + GP_LOG_D ("Trying to lock '%s'...", path); + +#if defined(HAVE_TTYLOCK) + if (ttylock ((char*) path)) { + if (dev) + gp_port_set_error (dev, _("Could not lock device " + "'%s'"), path); + return (GP_ERROR_IO_LOCK); + } +#define __HAVE_LOCKING +#elif defined(HAVE_LOCKDEV) + pid = dev_lock (path); + if (pid) { + if (dev) { + if (pid > 0) + gp_port_set_error (dev, _("Device '%s' is " + "locked by pid %d"), path, pid); + else + gp_port_set_error (dev, _("Device '%s' could " + "not be locked (dev_lock returned " + "%d)"), path, pid); + } + return (GP_ERROR_IO_LOCK); + } +#define __HAVE_LOCKING +#endif + +#ifndef __HAVE_LOCKING +# ifdef __GCC__ +# warning No locking library found. +# warning You will run into problems if you use +# warning gphoto2 with a serial (RS232) camera in +# warning combination with Konqueror (KDE) or Nautilus (GNOME). +# warning This will *not* concern USB cameras. +# endif +#endif + + return (GP_OK); +} + +static int +gp_port_serial_unlock (GPPort *dev, const char *path) +{ + +#if defined(HAVE_TTYLOCK) + if (ttyunlock ((char*) path)) { + if (dev) + gp_port_set_error (dev, _("Device '%s' could not be " + "unlocked."), path); + return (GP_ERROR_IO_LOCK); + } +#elif defined(HAVE_LOCKDEV) + + int pid; + + pid = dev_unlock (path, 0); + if (pid) { + if (dev) { + if (pid > 0) + gp_port_set_error (dev, _("Device '%s' could " + "not be unlocked as it is locked by " + "pid %d."), path, pid); + else + gp_port_set_error (dev, _("Device '%s' could " + "not be unlocked (dev_unlock " + "returned %d)"), path, pid); + } + return (GP_ERROR_IO_LOCK); + } +#endif /* !HAVE_LOCKDEV */ + + return (GP_OK); +} + +int +gp_port_library_list (GPPortInfoList *list) +{ + GPPortInfo info; + char path[1024], prefix[1024]; + int x; + struct stat s; +#ifdef OS2 + int r, fh, option; +#endif + + /* Copy in the serial port prefix */ + strcpy (prefix, GP_PORT_SERIAL_PREFIX); + + /* On Linux systems, check for devfs */ +#ifdef __linux + if (!stat ("/dev/tts", &s)) + strcpy (prefix, "/dev/tts/%i"); +#endif + + for (x=GP_PORT_SERIAL_RANGE_LOW; x<=GP_PORT_SERIAL_RANGE_HIGH; x++) { + char *xname; + + sprintf (path, prefix, x); + + /* OS/2 seems to need an additional check */ +#ifdef OS2 + r = DosOpen (path, &fh, &option, 0, 0, 1, + OPEN_FLAGS_FAIL_ON_ERROR | + OPEN_SHARE_DENYREADWRITE, 0); + DosClose(fh); + if (r) + continue; +#endif + /* Very first of all, if the device node is not there, + * there is no need to try locking. */ + if ((stat (path, &s) == -1) && ((errno == ENOENT) || (errno == ENODEV))) + continue; + + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_SERIAL); + C_MEM (xname = malloc (strlen("serial:")+strlen(path)+1)); + strcpy (xname, "serial:"); + strcat (xname, path); + gp_port_info_set_path (info, xname); + free (xname); + C_MEM (xname = malloc (100)); + snprintf (xname, 100, _("Serial Port %i"), x); + gp_port_info_set_name (info, xname); + free (xname); + CHECK (gp_port_info_list_append (list, info)); + } + + /* + * Generic support. Append it to the list without checking for + * return values, because this entry will not be counted. + */ + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_SERIAL); + gp_port_info_set_path (info, "serial:"); + gp_port_info_set_name (info, _("Serial Port Device")); + CHECK (gp_port_info_list_append (list, info)); + + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_SERIAL); + gp_port_info_set_path (info, "^serial:"); + gp_port_info_set_name (info, ""); + gp_port_info_list_append (list, info); /* do not check */ + return GP_OK; +} + +static int +gp_port_serial_init (GPPort *dev) +{ + C_PARAMS (dev); + + C_MEM (dev->pl = calloc (1, sizeof (GPPortPrivateLibrary))); + + /* There is no default speed. */ + dev->pl->baudrate = -1; + + return GP_OK; +} + +static int +gp_port_serial_exit (GPPort *dev) +{ + C_PARAMS (dev); + + free (dev->pl); + dev->pl = NULL; + + return GP_OK; +} + +static int +gp_port_serial_open (GPPort *dev) +{ + int result, max_tries = 5, i; +#ifdef OS2 + int fd; +#endif + char *port; + GPPortInfo info; + + result = gp_port_get_info (dev, &info); + if (result < GP_OK) return result; + result = gp_port_info_get_path (info, &port); + if (result < GP_OK) return result; + GP_LOG_D ("opening %s", port); + + /* Ports are named "serial:/dev/whatever/port" */ + port = strchr (port, ':'); + if (!port) + return GP_ERROR_UNKNOWN_PORT; + port++; + + result = gp_port_serial_lock (dev, port); + if (result != GP_OK) { + for (i = 0; i < max_tries; i++) { + result = gp_port_serial_lock (dev, port); + if (result == GP_OK) + break; + GP_LOG_D ("Failed to get a lock, trying again..."); + sleep (1); + } + CHECK (result); + } + dev->pl->fd = -1; + +#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__MidnightBSD__) + dev->pl->fd = open (port, O_RDWR | O_NOCTTY | O_NONBLOCK); +#elif OS2 + fd = open (port, O_RDWR | O_BINARY); + dev->pl->fd = open (port, O_RDWR | O_BINARY); + close(fd); +#else + if (dev->pl->fd == -1) + dev->pl->fd = open (port, O_RDWR | O_NOCTTY | O_SYNC | O_NONBLOCK); +#endif + if (dev->pl->fd == -1) { + int saved_errno = errno; + gp_port_set_error (dev, _("Failed to open '%s' (%s)."), + port, strerror(saved_errno)); + dev->pl->fd = 0; + return GP_ERROR_IO; + } + + return GP_OK; +} + +static int +gp_port_serial_close (GPPort *dev) +{ + const char *path; + + if (!dev) + return (GP_OK); + + if (dev->pl->fd) { + if (close (dev->pl->fd) == -1) { + int saved_errno = errno; + gp_port_set_error (dev, _("Could not close " + "'%s' (%s)."), + dev->settings.serial.port, + strerror(saved_errno)); + return GP_ERROR_IO; + } + dev->pl->fd = 0; + } + + /* Unlock the port */ + path = strchr (dev->settings.serial.port, ':'); + C_PARAMS (path); + path++; + CHECK (gp_port_serial_unlock (dev, path)); + +#if defined(__sgi) + /* + * On IRIX, we need to set the baudrate each time after opening + * the port. + */ + dev->pl->baudrate = 0; +#endif + + return GP_OK; +} + +static int +gp_port_serial_write (GPPort *dev, const char *bytes, int size) +{ + int len, ret; + + C_PARAMS (dev); + + /* The device needs to be opened for that operation */ + if (!dev->pl->fd) + CHECK (gp_port_serial_open (dev)); + + /* Make sure we are operating at the specified speed */ + CHECK (gp_port_serial_check_speed (dev)); + + len = 0; + while (len < size) { + + /* + * Make sure we write all data while handling + * the harmless errors + */ + ret = write (dev->pl->fd, bytes, size - len); + if (ret == -1) { + int saved_errno = errno; + switch (saved_errno) { + case EAGAIN: + case EINTR: + ret = 0; + break; + default: + gp_port_set_error (dev, _("Could not write " + "to port (%s)"), + strerror(saved_errno)); + return GP_ERROR_IO_WRITE; + } + } + len += ret; + } + + /* wait till all bytes are really sent */ +#ifndef OS2 +#ifdef HAVE_TERMIOS_H + tcdrain (dev->pl->fd); +#else + ioctl (dev->pl->fd, TCDRAIN, 0); +#endif +#endif + return GP_OK; +} + + +static int +gp_port_serial_read (GPPort *dev, char *bytes, int size) +{ + struct timeval timeout; + fd_set readfs; /* file descriptor set */ + int readen = 0, now; + + C_PARAMS (dev); + + /* The device needs to be opened for that operation */ + if (!dev->pl->fd) + CHECK (gp_port_serial_open (dev)); + + /* Make sure we are operating at the specified speed */ + CHECK (gp_port_serial_check_speed (dev)); + + FD_ZERO (&readfs); + FD_SET (dev->pl->fd, &readfs); + + while (readen < size) { + + /* Set timeout value within input loop */ + timeout.tv_usec = (dev->timeout % 1000) * 1000; + timeout.tv_sec = (dev->timeout / 1000); + + /* Any data available? */ + if (!select (dev->pl->fd + 1, &readfs, NULL, NULL, &timeout)) + return GP_ERROR_TIMEOUT; + if (!FD_ISSET (dev->pl->fd, &readfs)) + return (GP_ERROR_TIMEOUT); + + if (dev->settings.serial.parity != GP_PORT_SERIAL_PARITY_OFF) { + unsigned char ffchar[1]; + unsigned char nullchar[1]; + + ffchar[0] = 0xff; + nullchar[0] = 0; + now = read (dev->pl->fd, bytes, 1); + if (now < 0) + return GP_ERROR_IO_READ; + if (!memcmp(bytes,ffchar,1)) { + now = read (dev->pl->fd, bytes, 1); + if (now < 0) + return GP_ERROR_IO_READ; + + /* Parity errors are signaled by the serial layer + * as 0xff 0x00 sequence. + * + * 0xff sent by the camera are escaped as + * 0xff 0xff sequence. + * + * All other 0xff 0xXX sequences are errors. + * + * cf. man tcsetattr, description of PARMRK. + */ + if (!memcmp(bytes,nullchar,1)) { + gp_port_set_error (dev, _("Parity error.")); + return GP_ERROR_IO_READ; + } + if (!memcmp(bytes,ffchar,1)) { + gp_port_set_error (dev, _("Unexpected parity response sequence 0xff 0x%02x."), ((unsigned char*)bytes)[0]); + return GP_ERROR_IO_READ; + } + /* Ok, we read 1 byte and it is 0xff */ + /* FALLTHROUGH */ + } + } else { + /* Just read the bytes */ + now = read (dev->pl->fd, bytes, size - readen); + if (now < 0) + return GP_ERROR_IO_READ; + } + bytes += now; + readen += now; + } + + return readen; +} + +#ifdef HAVE_TERMIOS_H +static int +get_termios_bit (GPPort *dev, GPPin pin, int *bit) +{ + switch (pin) { + case GP_PIN_RTS: + *bit = TIOCM_RTS; + break; + case GP_PIN_DTR: + *bit = TIOCM_DTR; + break; + case GP_PIN_CTS: + *bit = TIOCM_CTS; + break; + case GP_PIN_DSR: + *bit = TIOCM_DSR; + break; + case GP_PIN_CD: + *bit = TIOCM_CD; + break; + case GP_PIN_RING: + *bit = TIOCM_RNG; + break; + default: + gp_port_set_error (dev, _("Unknown pin %i."), pin); + return GP_ERROR_IO; + } + return (GP_OK); +} +#endif + +static int +gp_port_serial_get_pin (GPPort *dev, GPPin pin, GPLevel *level) +{ +#ifdef HAVE_TERMIOS_H + int j, bit; +#endif + + C_PARAMS (dev && level); + + *level = 0; + +#ifdef HAVE_TERMIOS_H + CHECK (get_termios_bit (dev, pin, &bit)); + if (ioctl (dev->pl->fd, TIOCMGET, &j) < 0) { + int saved_errno = errno; + gp_port_set_error (dev, _("Could not get level of pin %i " + "(%s)."), + pin, strerror(saved_errno)); + return GP_ERROR_IO; + } + *level = j & bit; +#else +# ifdef __GCC__ +# warning ACCESSING PINS IS NOT IMPLEMENTED FOR NON-TERMIOS SYSTEMS! +# endif +#endif + + return (GP_OK); +} + +static int +gp_port_serial_set_pin (GPPort *dev, GPPin pin, GPLevel level) +{ +#ifdef HAVE_TERMIOS_H + int bit, request; +#endif + + C_PARAMS (dev); + +#ifdef HAVE_TERMIOS_H + CHECK (get_termios_bit (dev, pin, &bit)); + switch (level) { + case GP_LEVEL_LOW: + request = TIOCMBIS; + break; + default: + request = TIOCMBIC; + break; + } + if (ioctl (dev->pl->fd, request, &bit) < 0) { + int saved_errno = errno; + gp_port_set_error (dev, _("Could not set level of pin %i to " + "%i (%s)."), + pin, level, strerror(saved_errno)); + return GP_ERROR_IO; + } +#else +# ifdef __GCC__ +# warning ACCESSING PINS IS NOT IMPLEMENTED FOR NON-TERMIOS SYSTEMS! +# endif +#endif + + return GP_OK; +} + +static int +gp_port_serial_flush (GPPort *dev, int direction) +{ + /* The device needs to be opened for that operation */ + if (!dev->pl->fd) + CHECK (gp_port_serial_open (dev)); + + /* Make sure we are operating at the specified speed */ + CHECK (gp_port_serial_check_speed (dev)); + +#ifdef HAVE_TERMIOS_H + if (tcflush (dev->pl->fd, direction ? TCOFLUSH : TCIFLUSH) < 0) { + int saved_errno = errno; + gp_port_set_error (dev, _("Could not flush '%s' (%s)."), + dev->settings.serial.port, + strerror(saved_errno)); + return (GP_ERROR_IO); + } +#else +# ifdef __GCC__ +# warning SERIAL FLUSH NOT IMPLEMENTED FOR NON TERMIOS SYSTEMS! +# endif +#endif + + return (GP_OK); +} + +static speed_t +gp_port_serial_baudconv (int baudrate) +{ +#define BAUDCASE(x) case (x): { ret = B##x; break; } + speed_t ret; + + switch (baudrate) { + + /* POSIX defined baudrates */ + BAUDCASE(0); + BAUDCASE(50); + BAUDCASE(75); + BAUDCASE(110); + BAUDCASE(134); + BAUDCASE(150); + BAUDCASE(200); + BAUDCASE(300); + BAUDCASE(600); + BAUDCASE(1200); + BAUDCASE(1800); + BAUDCASE(2400); + BAUDCASE(4800); + BAUDCASE(9600); + BAUDCASE(19200); + BAUDCASE(38400); + + /* non POSIX values */ +#ifdef B7200 + BAUDCASE(7200); +#endif +#ifdef B14400 + BAUDCASE(14400); +#endif +#ifdef B28800 + BAUDCASE(28800); +#endif +#ifdef B57600 + BAUDCASE(57600); +#endif +#ifdef B115200 + BAUDCASE(115200); +#endif +#ifdef B230400 + BAUDCASE(230400); +#endif + default: + ret = (speed_t) baudrate; + GP_LOG_D ("Baudrate %d unknown - using as is", baudrate); + } + + return ret; +#undef BAUDCASE +} + +static int +gp_port_serial_check_speed (GPPort *dev) +{ + speed_t speed; +#ifdef OS2 + ULONG rc; + ULONG ulParmLen = 2; /* Maximum size of the parameter packet */ +#else +#ifdef HAVE_TERMIOS_H + struct termios tio; +#else + struct sgttyb ttyb; +#endif +#endif + + /* + * We need an open device in order to set the speed. If there is no + * open device, postpone setting of speed. + */ + if (!dev->pl->fd) + return (GP_OK); + + /* If baudrate is up to date, do nothing */ + if (dev->pl->baudrate == dev->settings.serial.speed) + return (GP_OK); + + GP_LOG_D ("Setting baudrate to %d...", dev->settings.serial.speed); + speed = gp_port_serial_baudconv (dev->settings.serial.speed); + +#ifdef OS2 + rc = DosDevIOCtl (dev->pl->fd, /* Device handle */ + 0x0001, /* Serial-device control */ + 0x0043, /* Sets bit rate */ + (PULONG) &(dev->settings.serial.speed), + sizeof(baudrate), /* Max. size of parameter list */ + &ulParmLen, /* Size of parameter packet */ + NULL, /* No data packet */ + 0, /* Maximum size of data packet */ + NULL); /* Size of data packet */ + if(rc != 0) + printf("DosDevIOCtl baudrate error:%d\n",rc); +#else /* !OS2 */ +#ifdef HAVE_TERMIOS_H + if (tcgetattr(dev->pl->fd, &tio) < 0) { + gp_port_set_error (dev, _("Could not set the baudrate to %d"), + dev->settings.serial.speed); + return GP_ERROR_IO_SERIAL_SPEED; + } + tio.c_cflag = (tio.c_cflag & ~CSIZE) | CS8; + + /* Set into raw, no echo mode */ + tio.c_iflag &= ~(IGNBRK | IGNCR | INLCR | ICRNL | + IXANY | IXON | IXOFF | INPCK | ISTRIP); +#ifdef IUCLC + tio.c_iflag &= ~IUCLC; +#endif + tio.c_iflag |= (BRKINT | IGNPAR); + tio.c_oflag &= ~OPOST; + tio.c_lflag &= ~(ICANON | ISIG | ECHO | ECHONL | ECHOE | + ECHOK | IEXTEN); + tio.c_cflag &= ~(CRTSCTS | PARENB | PARODD); + tio.c_cflag |= CLOCAL | CREAD; + + tio.c_cc[VMIN] = 1; + tio.c_cc[VTIME] = 0; + + if (dev->settings.serial.parity != GP_PORT_SERIAL_PARITY_OFF) { + tio.c_iflag &= ~IGNPAR; + tio.c_iflag |= INPCK | PARMRK ; + tio.c_cflag |= PARENB; + if (dev->settings.serial.parity == GP_PORT_SERIAL_PARITY_ODD) + tio.c_cflag |= PARODD; + } + + /* Set the new speed. */ + cfsetispeed (&tio, speed); + cfsetospeed (&tio, speed); + if (tcsetattr (dev->pl->fd, TCSANOW, &tio) < 0) { + GP_LOG_E ("Error on 'tcsetattr'."); + return GP_ERROR_IO_SERIAL_SPEED; + } + + /* Clear O_NONBLOCK. */ + if (fcntl (dev->pl->fd, F_SETFL, 0) < 0) { + GP_LOG_E ("Error on 'fcntl'."); + return GP_ERROR_IO_SERIAL_SPEED; + } + + /* + * Verify if the speed change has been successful. + * This is needed because some Solaris systems just ignore unsupported + * speeds (like 115200) instead of complaining. + * + * Only perform the check if we really changed to some speed. + */ + if (speed != B0) { + if (tcgetattr (dev->pl->fd, &tio)) { + GP_LOG_E ("Error on 'tcgetattr'."); + return (GP_ERROR_IO_SERIAL_SPEED); + } + if ((cfgetispeed (&tio) != speed) || + (cfgetospeed (&tio) != speed)) { + GP_LOG_E ("Cannot set baudrate to %d...", + dev->settings.serial.speed); + return (GP_ERROR_NOT_SUPPORTED); + } + } + +#else /* !HAVE_TERMIOS_H */ + if (ioctl (dev->pl->fd, TIOCGETP, &ttyb) < 0) { + perror("ioctl(TIOCGETP)"); + return GP_ERROR_IO_SERIAL_SPEED; + } + ttyb.sg_ispeed = dev->settings.serial.speed; + ttyb.sg_ospeed = dev->settings.serial.speed; + ttyb.sg_flags = 0; + + if (ioctl (dev->pl->fd, TIOCSETP, &ttyb) < 0) { + perror("ioctl(TIOCSETP)"); + return GP_ERROR_IO_SERIAL_SPEED; + } +#endif +#endif + + dev->pl->baudrate = dev->settings.serial.speed; + return GP_OK; +} + +static int +gp_port_serial_update (GPPort *dev) +{ + memcpy (&dev->settings, &dev->settings_pending, sizeof (dev->settings)); + + CHECK (gp_port_serial_check_speed (dev)); + + return GP_OK; +} + +static int +gp_port_serial_send_break (GPPort *dev, int duration) +{ + /* The device needs to be opened for that operation */ + if (!dev->pl->fd) + CHECK (gp_port_serial_open (dev)); + + /* Make sure we are operating at the specified speed */ + CHECK (gp_port_serial_check_speed (dev)); + + /* Duration is in milliseconds */ +#ifdef HAVE_TERMIOS_H + tcsendbreak (dev->pl->fd, duration / 310); + tcdrain (dev->pl->fd); +#else +# ifdef __GCC__ +# warning SEND BREAK NOT IMPLEMENTED FOR NON TERMIOS SYSTEMS! +# endif +#endif + + return GP_OK; +} + +GPPortOperations * +gp_port_library_operations () +{ + GPPortOperations *ops; + + ops = malloc (sizeof (GPPortOperations)); + if (!ops) + return (NULL); + memset (ops, 0, sizeof (GPPortOperations)); + + ops->init = gp_port_serial_init; + ops->exit = gp_port_serial_exit; + ops->open = gp_port_serial_open; + ops->close = gp_port_serial_close; + ops->read = gp_port_serial_read; + ops->write = gp_port_serial_write; + ops->update = gp_port_serial_update; + ops->get_pin = gp_port_serial_get_pin; + ops->set_pin = gp_port_serial_set_pin; + ops->send_break = gp_port_serial_send_break; + ops->flush = gp_port_serial_flush; + + return (ops); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/test/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/test/Makefile.am new file mode 100644 index 00000000..fd3d2286 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/test/Makefile.am @@ -0,0 +1,33 @@ +TESTS = +INSTALL_TESTS = +check_PROGRAMS = +noinst_PROGRAMS = + +# When we build all our iolibs in one directory, we can run our checks +# with IOLIBS set to the iolib build directory. +TESTS_ENVIRONMENT = env \ + IOLIBS="$(top_builddir)" + +# After installation, this will be IOLIBS = $(DESTDIR)$(iolibdir) +INSTALL_TESTS_ENVIRONMENT = env \ + IOLIBS="$(DESTDIR)$(iolibdir)" \ + LD_LIBRARY_PATH="$(DESTDIR)$(libdir)$${LD_LIBRARY_PATH+:$${LD_LIBRARY_PATH}}" + +AM_CPPFLAGS += -I$(top_srcdir) + +noinst_PROGRAMS += test-gp-port test-port-list +test_gp_port_CPPFLAGS = $(AM_CPPFLAGS) $(LTDLINCL) $(CPPFLAGS) +test_gp_port_SOURCE = test-gp-port.c +test_gp_port_LDFLAGS = $(top_builddir)/libgphoto2_port/libgphoto2_port.la $(LIBLTDL) $(INTLLIBS) + +TESTS += test-port-list +INSTALL_TESTS += test-port-list +check_PROGRAMS += test-port-list +test_port_list_CPPFLAGS = $(AM_CPPFLAGS) $(LTDLINCL) $(CPPFLAGS) +test_port_list_SOURCE = test-gp-port.c +test_port_list_LDFLAGS = \ + $(top_builddir)/libgphoto2_port/libgphoto2_port.la \ + $(LIBLTDL) \ + $(INTLLIBS) + +include $(top_srcdir)/installcheck.mk diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/test/test-gp-port.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/test/test-gp-port.c new file mode 100644 index 00000000..91d4eef5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/test/test-gp-port.c @@ -0,0 +1,177 @@ +/* test-gp-port.c + * + * Copyright 2002 Lutz Mueller + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include +#include + +#include +#include +#include +#include + +static void +log_func (GPLogLevel level, const char *domain, + const char *str, void *data) +{ + fprintf (stdout, "%s\n", str); +} + +int +main (int argc, char **argv) +{ + GPPort *dev; + GPPortSettings settings; + char buf[32]; + int ret; + GPPortInfoList *il; + GPPortInfo info; + GPLevel level; + unsigned int i; + int id1,id2,id3; + + /* test https://github.com/gphoto/libgphoto2/issues/45 */ + id1 = gp_log_add_func (GP_LOG_DATA, log_func, NULL); + id2 = gp_log_add_func (GP_LOG_DATA, log_func, NULL); + if (GP_OK != gp_log_remove_func (id1)) { + printf ("id1 not found?\n"); + return 1; + } + id3 = gp_log_add_func (GP_LOG_DATA, log_func, NULL); + if (GP_OK != gp_log_remove_func (id2)) { + printf ("id2 not found?\n"); + return 1; + } + if (GP_OK != gp_log_remove_func (id3)) { + printf ("id3 not found?\n"); + return 1; + } + if (GP_ERROR_BAD_PARAMETERS != gp_log_remove_func (id3)) { + printf ("id3 was found?\n"); + return 1; + } + + gp_log_add_func (GP_LOG_DATA, log_func, NULL); + + for (i = 0; i < 2; i++) { + + ret = gp_port_info_list_new (&il); + if (ret < 0) { + printf ("Could not create list of ports: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + ret = gp_port_info_list_load (il); + if (ret < 0) { + printf ("Could not load list of ports: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + printf ("############\n"); + printf ("############ There are %i IO-drivers " + "installed on your system.\n", + gp_port_info_list_count (il)); + printf ("############\n"); + + ret = gp_port_info_list_get_info (il, 0, &info); + if (ret < 0) { + printf ("Could not get info of first port in " + "list: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + ret = gp_port_new (&dev); + if (ret < 0) { + printf ("Could not create device: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + ret = gp_port_set_info (dev, info); + if (ret < 0) { + printf ("Could not set port info: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + gp_port_info_list_free (il); + + ret = gp_port_set_timeout (dev, 500); + if (ret < 0) { + printf ("Could not set timeout: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + strcpy (settings.serial.port, "serial:/dev/ttyS0"); + settings.serial.speed = 19200; + settings.serial.bits = 8; + settings.serial.parity = 0; + settings.serial.stopbits = 1; + + ret = gp_port_set_settings (dev, settings); + if (ret < 0) { + printf ("Could not set settings: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + ret = gp_port_open (dev); + if (ret < 0) { + printf ("Could not open device: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + gp_port_get_settings(dev, &settings); + settings.serial.speed = 57600; + gp_port_set_settings(dev, settings); + + ret = gp_port_get_pin (dev, GP_PIN_DTR, &level); + if (ret < 0) { + printf ("Could not get level of pin DTR: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + ret = gp_port_set_pin (dev, GP_PIN_CTS, GP_LEVEL_HIGH); + if (ret < 0) { + printf ("Could not set level of pin CTS: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + gp_port_write (dev, "AT\n", 3); + + gp_port_read (dev, buf, 3); + buf[3] = 0; + printf("recv: %s\n", buf); + + gp_port_close (dev); + + gp_port_free (dev); + } + + return 0; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/test/test-port-list.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/test/test-port-list.c new file mode 100644 index 00000000..4da17af5 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/test/test-port-list.c @@ -0,0 +1,135 @@ +/* test-port-list.c + * + * Copyright (C) 2002 Lutz Mueller + * Copyright (C) 2007 Hans Ulrich Niedermann + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#include "config.h" + +#include +#include +#include + +#include +#include +#include +#include + + +#ifdef __GNUC__ +#define __unused__ __attribute__((unused)) +#else +#define __unused__ +#endif + + +static void +log_func (GPLogLevel level, const char *domain __unused__, + const char *str, void *data __unused__) +{ + if (level <= GP_LOG_ERROR) { + fprintf (stdout, "%s\n", str); + fflush (stdout); + } +} + + +static int +run_test () +{ + int i; + int ret; + GPPortInfoList *il; + + int count; + + ret = gp_port_info_list_new (&il); + if (ret < 0) { + printf ("Could not create list of ports: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + + ret = gp_port_info_list_load (il); + if (ret < 0) { + printf ("Could not load list of ports: %s\n", + gp_port_result_as_string (ret)); + return (2); + } + + count = gp_port_info_list_count (il); + if (count < 0) { + printf("gp_port_info_list_count error: %d\n", count); + return 1; + } else if (count == 0) { + /* Unlike gphoto2-abilities-list, + * gphoto2-port-info-list.c does not just load + * the driver libs, but also scans for + * ports. Thus 0 ports are a valid results. + */ + } + /* Non-empty list */ + printf ("%i ports found on your system.\n", count); + + for (i = 0; i < count; i++) { + const char *port_type_str; + char *name, *path; + GPPortInfo info; + GPPortType type; + ret = gp_port_info_list_get_info (il, i, &info); + if (ret < 0) { + printf ("ERROR getting iolib info: %s\n", + gp_port_result_as_string (ret)); + return (1); + } + gp_port_info_get_type (info, &type); + gp_port_info_get_name (info, &name); + gp_port_info_get_path (info, &path); + switch (type) { + case GP_PORT_NONE: port_type_str = "NONE"; break; + case GP_PORT_SERIAL: port_type_str = "SERIAL"; break; + case GP_PORT_USB: port_type_str = "USB"; break; + case GP_PORT_USB_DISK_DIRECT: port_type_str = "USBDISKDIRECT"; break; + case GP_PORT_USB_SCSI: port_type_str = "USBSCSI"; break; + case GP_PORT_DISK: port_type_str = "DISK"; break; + case GP_PORT_PTPIP: port_type_str = "PTPIP"; break; + case GP_PORT_IP: port_type_str = "IP"; break; + default: port_type_str = "UNKNOWN"; return 3; break; + } + printf ("No: %d\n" + "Type: %s\n" + "Name: %s\n" + "Path: %s\n", + i, + port_type_str, + name, + path + ); + } + + + gp_port_info_list_free (il); + return 0; +} + + +int +main () +{ + gp_log_add_func (GP_LOG_DATA, log_func, NULL); + return run_test(); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usb/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usb/Makefile-files new file mode 100644 index 00000000..9cfde9e9 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usb/Makefile-files @@ -0,0 +1,16 @@ +# -*- Makefile -*- + +EXTRA_DIST += usb/usb-os2.c + +EXTRA_LTLIBRARIES += usb.la + +usb_la_LDFLAGS = $(iolib_ldflags) +usb_la_CPPFLAGS = \ + $(AM_CPPFLAGS) \ + $(INTL_CFLAGS) \ + $(LIBUSB_CFLAGS) \ + $(CPPFLAGS) +usb_la_DEPENDENCIES = $(iolib_dependencies) +usb_la_LIBADD = $(iolib_libadd) +usb_la_LIBADD += $(LIBUSB_LIBS) $(INTLLIBS) +usb_la_SOURCES = usb/libusb.c diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usb/libusb.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usb/libusb.c new file mode 100644 index 00000000..6d6f6e94 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usb/libusb.c @@ -0,0 +1,1243 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* gphoto2-port-usb.c + * + * Copyright 2001 Lutz Mueller + * Copyright 1999-2000 Johannes Erdfelt + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE + +#include "config.h" +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#ifndef ENODATA +# define ENODATA 120 /* No data available */ +#endif + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +struct _GPPortPrivateLibrary { + void *dh; + struct usb_device *d; + + int config; + int interface; + int altsetting; + + int detached; +}; + +GPPortType +gp_port_library_type (void) +{ + return (GP_PORT_USB); +} + +int +gp_port_library_list (GPPortInfoList *list) +{ + GPPortInfo info; + struct usb_bus *bus; + struct usb_device *dev; + int nrofdevices = 0, i, i1, i2, unknownint; + + /* generic matcher. This will catch passed XXX,YYY entries for instance. */ + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_USB); + gp_port_info_set_name (info, ""); + gp_port_info_set_path (info, "^usb:"); + gp_port_info_list_append (list, info); /* do not check here */ + + usb_init (); + usb_find_busses (); + usb_find_devices (); + + bus = usb_get_busses(); + + /* Look and enumerate all USB ports. */ + while (bus) { + for (dev = bus->devices; dev; dev = dev->next) { + /* Devices which are definitely not cameras. */ + if ( (dev->descriptor.bDeviceClass == USB_CLASS_HUB) || + (dev->descriptor.bDeviceClass == USB_CLASS_HID) || + (dev->descriptor.bDeviceClass == USB_CLASS_PRINTER) || + (dev->descriptor.bDeviceClass == USB_CLASS_COMM) || + (dev->descriptor.bDeviceClass == 0xe0) /* wireless / bluetooth */ + ) + continue; + /* excepts HUBs, usually the interfaces have the classes, not + * the device */ + unknownint = 0; + for (i = 0; i < dev->descriptor.bNumConfigurations; i++) { + if (!dev->config) { + unknownint++; + continue; + } + for (i1 = 0; i1 < dev->config[i].bNumInterfaces; i1++) + for (i2 = 0; i2 < dev->config[i].interface[i1].num_altsetting; i2++) { + struct usb_interface_descriptor *intf = &dev->config[i].interface[i1].altsetting[i2]; + if ( (intf->bInterfaceClass == USB_CLASS_HID) || + (intf->bInterfaceClass == USB_CLASS_PRINTER) || + (intf->bInterfaceClass == USB_CLASS_COMM) || + (intf->bInterfaceClass == 0xe0) /* wireless/bluetooth*/ + ) + continue; + unknownint++; + } + } + /* when we find only hids, printer or comm ifaces ... skip this */ + if (!unknownint) + continue; + /* Note: We do not skip USB storage. Some devices can support both, + * and the Ricoh erronously reports it. + */ + nrofdevices++; + } + bus = bus->next; + } + +#if 0 + /* If we already added usb:, and have 0 or 1 devices we have nothing to do. + * This should be the standard use case. + */ + /* We never want to return just "usb:" ... also return "usb:XXX,YYY", and + * let upper layers filter out the usb: */ + if (nrofdevices <= 1) + return (GP_OK); +#endif + + /* Redo the same bus/device walk, but now add the ports with usb:x,y notation, + * so we can address all USB devices. + */ + bus = usb_get_busses(); + while (bus) { + for (dev = bus->devices; dev; dev = dev->next) { + char *s; + char path[200]; + /* Devices which are definitely not cameras. */ + if ( (dev->descriptor.bDeviceClass == USB_CLASS_HUB) || + (dev->descriptor.bDeviceClass == USB_CLASS_HID) || + (dev->descriptor.bDeviceClass == USB_CLASS_PRINTER) || + (dev->descriptor.bDeviceClass == USB_CLASS_COMM) + ) + continue; + /* excepts HUBs, usually the interfaces have the classes, not + * the device */ + unknownint = 0; + for (i = 0; i < dev->descriptor.bNumConfigurations; i++) { + if (!dev->config) { + unknownint++; + continue; + } + for (i1 = 0; i1 < dev->config[i].bNumInterfaces; i1++) + for (i2 = 0; i2 < dev->config[i].interface[i1].num_altsetting; i2++) { + struct usb_interface_descriptor *intf = &dev->config[i].interface[i1].altsetting[i2]; + if ( (intf->bInterfaceClass == USB_CLASS_HID) || + (intf->bInterfaceClass == USB_CLASS_PRINTER) || + (intf->bInterfaceClass == USB_CLASS_COMM)) + continue; + unknownint++; + } + } + /* when we find only hids, printer or comm ifaces ... skip this */ + if (!unknownint) + continue; + /* Note: We do not skip USB storage. Some devices can support both, + * and the Ricoh erronously reports it. + */ + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_USB); + gp_port_info_set_name (info, "Universal Serial Bus"); + snprintf (path,sizeof(path), "usb:%s,%s", bus->dirname, dev->filename); + /* On MacOS X we might get usb:006,002-04a9-3139-00-00. */ + s = strchr(path, '-');if (s) *s='\0'; + gp_port_info_set_path (info, path); + CHECK (gp_port_info_list_append (list, info)); + } + bus = bus->next; + } + /* This will only be added if no other device was ever added. + * Users doing "usb:" usage will enter the regular expression matcher case. */ + if (nrofdevices == 0) { + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_USB); + gp_port_info_set_name (info, "Universal Serial Bus"); + gp_port_info_set_path (info, "usb:"); + CHECK (gp_port_info_list_append (list, info)); + } + return (GP_OK); +} + +static int gp_port_usb_init (GPPort *port) +{ + C_MEM (port->pl = calloc (1, sizeof (GPPortPrivateLibrary))); + + port->pl->config = port->pl->interface = port->pl->altsetting = -1; + + usb_init (); + usb_find_busses (); + usb_find_devices (); + + return (GP_OK); +} + +static int +gp_port_usb_exit (GPPort *port) +{ + free (port->pl); + port->pl = NULL; + + return (GP_OK); +} + +static int gp_port_usb_find_path_lib(GPPort *); + +static int +gp_port_usb_open (GPPort *port) +{ + int ret; + char name[64]; + + GP_LOG_D ("gp_port_usb_open(%p)", port); + C_PARAMS (port); + if (!port->pl->d) { + ret = gp_port_usb_find_path_lib(port); + C_PARAMS (port->pl->d); + } + + /* + * Open the device using the previous usb_handle returned by + * find_device + */ + port->pl->dh = usb_open (port->pl->d); + if (!port->pl->dh) { + int saved_errno = errno; + gp_port_set_error (port, _("Could not open USB device (%s)."), + strerror(saved_errno)); + return GP_ERROR_IO; + } +#if defined(LIBUSB_HAS_GET_DRIVER_NP) && defined(LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP) + memset(name,0,sizeof(name)); + ret = usb_get_driver_np (port->pl->dh, port->settings.usb.interface, + name, sizeof(name) + ); + if (name[0] != 0) + GP_LOG_D ("Device has driver '%s' attached.", name); + if (strstr(name,"usbfs") || strstr(name,"storage")) { + /* other gphoto instance most likely */ + gp_port_set_error (port, _("Camera is already in use.")); + return GP_ERROR_IO_LOCK; + } + + if (ret >= 0) { + GP_LOG_D ("Device has driver '%s' attached, detaching it now.", name); + ret = usb_detach_kernel_driver_np (port->pl->dh, port->settings.usb.interface); + if (ret < 0) + gp_port_set_error (port, _("Could not detach kernel driver '%s' of camera device."),name); + else + port->pl->detached = 1; + } else { + if (errno != ENODATA) /* ENODATA - just no driver there */ + gp_port_set_error (port, _("Could not query kernel driver of device.")); + } +#endif + + GP_LOG_D ("claiming interface %d", port->settings.usb.interface); + ret = usb_claim_interface (port->pl->dh, + port->settings.usb.interface); + if (ret < 0) { + int saved_errno = errno; + gp_port_set_error (port, _("Could not claim interface %d (%s). " + "Make sure no other program (%s) " + "or kernel module (such as %s) " + "is using the device and you have " + "read/write access to the device." + ), + port->settings.usb.interface, + strerror(saved_errno), +#ifdef __linux__ + "gvfs-gphoto2-volume-monitor", +#else +#if defined(__APPLE__) + N_("MacOS PTPCamera service"), +#else + N_("unknown libgphoto2 using program"), +#endif +#endif + "sdc2xx, stv680, spca50x"); + return GP_ERROR_IO_USB_CLAIM; + } + return GP_OK; +} + +static int +gp_port_usb_close (GPPort *port) +{ + C_PARAMS (port && port->pl->dh); + + if (usb_release_interface (port->pl->dh, + port->settings.usb.interface) < 0) { + int saved_errno = errno; + gp_port_set_error (port, _("Could not release " + "interface %d (%s)."), + port->settings.usb.interface, + strerror(saved_errno)); + return (GP_ERROR_IO); + } + +#if 0 + /* This confuses the EOS 5d camera and possible other EOSs. *sigh* */ + /* This is only for our very special Canon cameras which need a good + * whack after close, otherwise they get timeouts on reconnect. + */ + if (port->pl->d->descriptor.idVendor == 0x04a9) { + if (usb_reset (port->pl->dh) < 0) { + int saved_errno = errno; + gp_port_set_error (port, _("Could not reset " + "USB port (%s)."), + strerror(saved_errno)); + return (GP_ERROR_IO); + } + } +#endif +#if defined(LIBUSB_HAS_GET_DRIVER_NP) && defined(LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP) && defined(USBDEVFS_CONNECT) + if (port->pl->detached) { + char filename[PATH_MAX + 1]; + int fd; + + /* FIXME shouldn't be a fixed path to usb root */ + snprintf(filename, sizeof(filename) - 1, "%s/%s/%s", "/dev/bus/usb", port->pl->d->bus->dirname, port->pl->d->filename); + fd = open(filename, O_RDWR); + + if (fd >= 0) { + struct usbdevfs_ioctl command; + command.ifno = 0; + command.ioctl_code = USBDEVFS_CONNECT; + command.data = NULL; + if (ioctl(fd, USBDEVFS_IOCTL, &command)) + GP_LOG_D ("reattach kernel driver failed"); + close(fd); + } + } +#endif + + if (usb_close (port->pl->dh) < 0) { + int saved_errno = errno; + gp_port_set_error (port, _("Could not close USB port (%s)."), + strerror(saved_errno)); + return (GP_ERROR_IO); + } + + port->pl->dh = NULL; + + return GP_OK; +} + +static int +gp_port_usb_clear_halt_lib(GPPort *port, int ep) +{ + int ret=0; + + C_PARAMS (port && port->pl->dh); + + switch (ep) { + case GP_PORT_USB_ENDPOINT_IN : + ret=usb_clear_halt(port->pl->dh, port->settings.usb.inep); + break; + case GP_PORT_USB_ENDPOINT_OUT : + ret=usb_clear_halt(port->pl->dh, port->settings.usb.outep); + break; + case GP_PORT_USB_ENDPOINT_INT : + ret=usb_clear_halt(port->pl->dh, port->settings.usb.intep); + break; + default: + gp_port_set_error (port, "gp_port_usb_clear_halt: " + "bad EndPoint argument"); + return GP_ERROR_BAD_PARAMETERS; + } + return (ret ? GP_ERROR_IO_USB_CLEAR_HALT : GP_OK); +} + +static int +gp_port_usb_write (GPPort *port, const char *bytes, int size) +{ + int ret; + + C_PARAMS (port && port->pl->dh); + + ret = usb_bulk_write (port->pl->dh, port->settings.usb.outep, + (char *) bytes, size, port->timeout); + if (ret < 0) + return (GP_ERROR_IO_WRITE); + + return (ret); +} + +static int +gp_port_usb_read(GPPort *port, char *bytes, int size) +{ + int ret; + + C_PARAMS (port && port->pl->dh); + + ret = usb_bulk_read(port->pl->dh, port->settings.usb.inep, + bytes, size, port->timeout); + if (ret < 0) + return GP_ERROR_IO_READ; + + return ret; +} + +static int +gp_port_usb_reset(GPPort *port) +{ + int ret; + + GP_LOG_D ("Reseting port"); + C_PARAMS (port && port->pl->dh); + + ret = usb_reset(port->pl->dh); + if (ret < 0) { + GP_LOG_E ("gp_port_reset: %d", ret); + return GP_ERROR_IO_READ; + } + return GP_OK; +} + +static int +gp_port_usb_check_int (GPPort *port, char *bytes, int size, int timeout) +{ + int ret; + + C_PARAMS (port && port->pl->dh && timeout >= 0); + + /* 0 timeout is okish ... libusb 0.x it will do 1 poll though */ + ret = usb_interrupt_read(port->pl->dh, port->settings.usb.intep, + bytes, size, timeout); + if (ret < 0) { + if ((errno == EAGAIN) || (errno == ETIMEDOUT)) + return GP_ERROR_TIMEOUT; + return GP_ERROR_IO_READ; + } + return ret; +} + +static int +gp_port_usb_msg_write_lib(GPPort *port, int request, int value, int index, + char *bytes, int size) +{ + C_PARAMS (port && port->pl->dh); + + return usb_control_msg(port->pl->dh, + USB_TYPE_VENDOR | USB_RECIP_DEVICE, + request, value, index, bytes, size, port->timeout); +} + +static int +gp_port_usb_msg_read_lib(GPPort *port, int request, int value, int index, + char *bytes, int size) +{ + C_PARAMS (port && port->pl->dh); + + return usb_control_msg(port->pl->dh, + USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN, + request, value, index, bytes, size, port->timeout); +} + +/* The next two functions support the nonstandard request types 0x41 (write) + * and 0xc1 (read), which are occasionally needed. + */ + +static int +gp_port_usb_msg_interface_write_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + C_PARAMS (port && port->pl->dh); + + return usb_control_msg(port->pl->dh, + USB_TYPE_VENDOR | USB_RECIP_INTERFACE, + request, value, index, bytes, size, port->timeout); +} + + +static int +gp_port_usb_msg_interface_read_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + C_PARAMS (port && port->pl->dh); + + return usb_control_msg(port->pl->dh, + USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_ENDPOINT_IN, + request, value, index, bytes, size, port->timeout); +} + + +/* The next two functions support the nonstandard request types 0x21 (write) + * and 0xa1 (read), which are occasionally needed. + */ + +static int +gp_port_usb_msg_class_write_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + C_PARAMS (port && port->pl->dh); + + return usb_control_msg(port->pl->dh, + USB_TYPE_CLASS | USB_RECIP_INTERFACE, + request, value, index, bytes, size, port->timeout); +} + + +static int +gp_port_usb_msg_class_read_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + C_PARAMS (port && port->pl->dh); + + return usb_control_msg(port->pl->dh, + USB_TYPE_CLASS | USB_RECIP_INTERFACE | USB_ENDPOINT_IN, + request, value, index, bytes, size, port->timeout); +} + +/* + * This function applys changes to the device. + * + * New settings are in port->settings_pending and the old ones + * are in port->settings. Compare them first and only call + * usb_set_configuration() and usb_set_altinterface() if needed + * since some USB devices does not like it if this is done + * more than necessary (Canon Digital IXUS 300 for one). + * + */ +static int +gp_port_usb_update (GPPort *port) +{ + int ret, ifacereleased = FALSE; + + C_PARAMS (port); + + GP_LOG_D ("gp_port_usb_update(old int=%d, conf=%d, alt=%d) port %s, (new int=%d, conf=%d, alt=%d), port %s", + port->settings.usb.interface, + port->settings.usb.config, + port->settings.usb.altsetting, + port->settings.usb.port, + port->settings_pending.usb.interface, + port->settings_pending.usb.config, + port->settings_pending.usb.altsetting, + port->settings_pending.usb.port + ); + +#if 0 + if (port->pl->interface == -1) port->pl->interface = port->settings.usb.interface; + if (port->pl->config == -1) port->pl->config = port->settings.usb.config; + if (port->pl->altsetting == -1) port->pl->altsetting = port->settings.usb.altsetting; +#endif + + /* The portname can also be changed with the device still fully closed. */ + memcpy(&port->settings.usb.port, &port->settings_pending.usb.port, + sizeof(port->settings.usb.port)); + + if (!port->pl->dh) + return GP_OK; /* the port might not be opened, yet. that is ok */ + + memcpy(&port->settings.usb, &port->settings_pending.usb, + sizeof(port->settings.usb)); + + /* The interface changed. release the old, claim the new ... */ + if (port->settings.usb.interface != port->pl->interface) { + GP_LOG_D ("changing interface %d -> %d", + port->pl->interface, + port->settings.usb.interface + ); + if (usb_release_interface (port->pl->dh, + port->pl->interface) < 0) { + GP_LOG_D ("releasing the iface for config failed."); + /* Not a hard error for now. -Marcus */ + } else { + GP_LOG_D ("claiming interface %d", port->settings.usb.interface); + ret = usb_claim_interface (port->pl->dh, + port->settings.usb.interface); + if (ret < 0) { + GP_LOG_D ("reclaiming the iface for config failed."); + return GP_ERROR_IO_UPDATE; + } + port->pl->interface = port->settings.usb.interface; + } + } + if (port->settings.usb.config != port->pl->config) { + GP_LOG_D ("changing config %d -> %d", + port->pl->config, + port->settings.usb.config + ); + /* This can only be changed with the interface released. + * This is a hard requirement since 2.6.12. + */ + if (usb_release_interface (port->pl->dh, + port->settings.usb.interface) < 0) { + GP_LOG_D ("releasing the iface for config failed."); + ifacereleased = FALSE; + } else { + ifacereleased = TRUE; + } + ret = usb_set_configuration(port->pl->dh, + port->settings.usb.config); + if (ret < 0) { +#if 0 /* setting the configuration failure is not fatal */ + int saved_errno = errno; + gp_port_set_error (port, + _("Could not set config %d/%d (%s)"), + port->settings.usb.interface, + port->settings.usb.config, + strerror(saved_errno)); + return GP_ERROR_IO_UPDATE; +#endif + GP_LOG_E ("setting configuration from %d to %d failed with ret = %d, but continue...", port->pl->config, port->settings.usb.config, ret); + } + + GP_LOG_D ("Changed usb.config from %d to %d", port->pl->config, port->settings.usb.config); + + if (ifacereleased) { + GP_LOG_D ("claiming interface %d", port->settings.usb.interface); + ret = usb_claim_interface (port->pl->dh, + port->settings.usb.interface); + if (ret < 0) + GP_LOG_D ("reclaiming the iface for config failed."); + } + /* + * Copy at once if something else fails so that this + * does not get re-applied + */ + port->pl->config = port->settings.usb.config; + } + + /* This can be changed with interface claimed. (And I think it must be claimed.) */ + if (port->settings.usb.altsetting != port->pl->altsetting) { + ret = usb_set_altinterface(port->pl->dh, port->settings.usb.altsetting); + if (ret < 0) { + int saved_errno = errno; + gp_port_set_error (port, + _("Could not set altsetting from %d " + "to %d (%s)"), + port->pl->altsetting, + port->settings.usb.altsetting, + strerror(saved_errno)); + return GP_ERROR_IO_UPDATE; + } + + GP_LOG_D ("Changed usb.altsetting from %d to %d", port->pl->altsetting, port->settings.usb.altsetting); + port->pl->altsetting = port->settings.usb.altsetting; + } + + return GP_OK; +} + +static int +gp_port_usb_find_ep(struct usb_device *dev, int config, int interface, int altsetting, int direction, int type) +{ + struct usb_interface_descriptor *intf; + int i; + + if (!dev->config) + return -1; + + intf = &dev->config[config].interface[interface].altsetting[altsetting]; + + for (i = 0; i < intf->bNumEndpoints; i++) { + if ((intf->endpoint[i].bEndpointAddress & USB_ENDPOINT_DIR_MASK) == direction && + (intf->endpoint[i].bmAttributes & USB_ENDPOINT_TYPE_MASK) == type) + return intf->endpoint[i].bEndpointAddress; + } + + return -1; +} + +static int +gp_port_usb_find_first_altsetting(struct usb_device *dev, int *config, int *interface, int *altsetting) +{ + int i, i1, i2; + + if (!dev->config) + return -1; + + for (i = 0; i < dev->descriptor.bNumConfigurations; i++) + for (i1 = 0; i1 < dev->config[i].bNumInterfaces; i1++) + for (i2 = 0; i2 < dev->config[i].interface[i1].num_altsetting; i2++) + if (dev->config[i].interface[i1].altsetting[i2].bNumEndpoints) { + *config = i; + *interface = i1; + *altsetting = i2; + + return 0; + } + + return -1; +} + +static int +gp_port_usb_find_device_lib(GPPort *port, int idvendor, int idproduct) +{ + struct usb_bus *bus; + struct usb_device *dev; + char *s; + char busname[64], devname[64]; + + C_PARAMS (port); + + s = strchr (port->settings.usb.port,':'); + busname[0] = devname[0] = '\0'; + if (s && (s[1] != '\0')) { /* usb:%d,%d */ + strncpy(busname,s+1,sizeof(busname)); + busname[sizeof(busname)-1] = '\0'; + + s = strchr(busname,','); + if (s) { + strncpy(devname, s+1,sizeof(devname)); + devname[sizeof(devname)-1] = '\0'; + *s = '\0'; + } else { + busname[0] = '\0'; + } + } + /* + * NULL idvendor is not valid. + * NULL idproduct is ok. + * Should the USB layer report that ? I don't know. + * Better to check here. + */ + if (!idvendor) { + gp_port_set_error (port, _("The supplied vendor or product " + "id (0x%x,0x%x) is not valid."), idvendor, idproduct); + return GP_ERROR_BAD_PARAMETERS; + } + + for (bus = usb_busses; bus; bus = bus->next) { + if ((busname[0] != '\0') && strcmp(busname, bus->dirname)) + continue; + + for (dev = bus->devices; dev; dev = dev->next) { + if ( (devname[0] != '\0') && + (dev->filename != strstr(dev->filename, devname)) + ) + continue; + + if ((dev->descriptor.idVendor == idvendor) && + (dev->descriptor.idProduct == idproduct)) { + int config = -1, interface = -1, altsetting = -1; + + port->pl->d = dev; + + GP_LOG_D ("Looking for USB device (vendor 0x%x, product 0x%x)... found.", idvendor, idproduct); + + /* Use the first config, interface and altsetting we find */ + gp_port_usb_find_first_altsetting(dev, &config, &interface, &altsetting); + + /* Set the defaults */ + if (dev->config) { + int i; + + if (dev->config[config].interface[interface].altsetting[altsetting].bInterfaceClass + == USB_CLASS_MASS_STORAGE) { + GP_LOG_D ("USB device (vendor 0x%x, product 0x%x) is a mass" + " storage device, and might not function with gphoto2." + " Reference: %s", idvendor, idproduct, URL_USB_MASSSTORAGE); + } + port->settings.usb.config = dev->config[config].bConfigurationValue; + port->settings.usb.interface = dev->config[config].interface[interface].altsetting[altsetting].bInterfaceNumber; + port->settings.usb.altsetting = dev->config[config].interface[interface].altsetting[altsetting].bAlternateSetting; + + port->settings.usb.inep = gp_port_usb_find_ep(dev, config, interface, altsetting, USB_ENDPOINT_IN, USB_ENDPOINT_TYPE_BULK); + port->settings.usb.outep = gp_port_usb_find_ep(dev, config, interface, altsetting, USB_ENDPOINT_OUT, USB_ENDPOINT_TYPE_BULK); + port->settings.usb.intep = gp_port_usb_find_ep(dev, config, interface, altsetting, USB_ENDPOINT_IN, USB_ENDPOINT_TYPE_INTERRUPT); + + port->settings.usb.maxpacketsize = 0; + GP_LOG_D ("inep to look for is %02x", port->settings.usb.inep); + for (i=0;iconfig[config].interface[interface].altsetting[altsetting].bNumEndpoints;i++) { + if (port->settings.usb.inep == dev->config[config].interface[interface].altsetting[altsetting].endpoint[i].bEndpointAddress) { + port->settings.usb.maxpacketsize = dev->config[config].interface[interface].altsetting[altsetting].endpoint[i].wMaxPacketSize; + break; + } + } + GP_LOG_D ("Detected defaults: config %d, interface %d, altsetting %d, " + "inep %02x, outep %02x, intep %02x, class %02x, subclass %02x", + port->settings.usb.config, + port->settings.usb.interface, + port->settings.usb.altsetting, + port->settings.usb.inep, + port->settings.usb.outep, + port->settings.usb.intep, + dev->config[config].interface[interface].altsetting[altsetting].bInterfaceClass, + dev->config[config].interface[interface].altsetting[altsetting].bInterfaceSubClass + ); + } + + return GP_OK; + } + } + } + +#if 0 + gp_port_set_error (port, _("Could not find USB device " + "(vendor 0x%x, product 0x%x). Make sure this device " + "is connected to the computer."), idvendor, idproduct); +#endif + return GP_ERROR_IO_USB_FIND; +} + +static int +gp_port_usb_find_path_lib(GPPort *port) +{ + struct usb_bus *bus; + struct usb_device *dev; + char *s; + char busname[64], devname[64]; + + C_PARAMS (port); + + s = strchr (port->settings.usb.port,':'); + busname[0] = devname[0] = '\0'; + C_PARAMS (s && s[1] != '\0'); /* generic usb: match ... can't do */ + + if (s && (s[1] != '\0')) { /* usb:%d,%d */ + strncpy(busname,s+1,sizeof(busname)); + busname[sizeof(busname)-1] = '\0'; + + s = strchr(busname,','); + C_PARAMS (s); /* generic usb: match ... can't do */ + + strncpy(devname, s+1,sizeof(devname)); + devname[sizeof(devname)-1] = '\0'; + *s = '\0'; + } + for (bus = usb_busses; bus; bus = bus->next) { + if (strcmp(busname, bus->dirname)) + continue; + + for (dev = bus->devices; dev; dev = dev->next) { + int config = -1, interface = -1, altsetting = -1; + + if ((dev->filename != strstr(dev->filename, devname))) + continue; + + port->pl->d = dev; + + GP_LOG_D ("Found device for path %s", port->settings.usb.port); + + /* Use the first config, interface and altsetting we find */ + gp_port_usb_find_first_altsetting(dev, &config, &interface, &altsetting); + + /* Set the defaults */ + if (dev->config) { + int i; + + port->settings.usb.config = dev->config[config].bConfigurationValue; + port->settings.usb.interface = dev->config[config].interface[interface].altsetting[altsetting].bInterfaceNumber; + port->settings.usb.altsetting = dev->config[config].interface[interface].altsetting[altsetting].bAlternateSetting; + + port->settings.usb.inep = gp_port_usb_find_ep(dev, config, interface, altsetting, USB_ENDPOINT_IN, USB_ENDPOINT_TYPE_BULK); + port->settings.usb.outep = gp_port_usb_find_ep(dev, config, interface, altsetting, USB_ENDPOINT_OUT, USB_ENDPOINT_TYPE_BULK); + port->settings.usb.intep = gp_port_usb_find_ep(dev, config, interface, altsetting, USB_ENDPOINT_IN, USB_ENDPOINT_TYPE_INTERRUPT); + + port->settings.usb.maxpacketsize = 0; + GP_LOG_D ("inep to look for is %02x", port->settings.usb.inep); + for (i=0;iconfig[config].interface[interface].altsetting[altsetting].bNumEndpoints;i++) { + if (port->settings.usb.inep == dev->config[config].interface[interface].altsetting[altsetting].endpoint[i].bEndpointAddress) { + port->settings.usb.maxpacketsize = dev->config[config].interface[interface].altsetting[altsetting].endpoint[i].wMaxPacketSize; + break; + } + } + GP_LOG_D ("Detected defaults: config %d, interface %d, altsetting %d, " + "inep %02x, outep %02x, intep %02x, class %02x, subclass %02x", + port->settings.usb.config, + port->settings.usb.interface, + port->settings.usb.altsetting, + port->settings.usb.inep, + port->settings.usb.outep, + port->settings.usb.intep, + dev->config[config].interface[interface].altsetting[altsetting].bInterfaceClass, + dev->config[config].interface[interface].altsetting[altsetting].bInterfaceSubClass + ); + } + return GP_OK; + } + } + +#if 0 + gp_port_set_error (port, _("Could not find USB device " + "(vendor 0x%x, product 0x%x). Make sure this device " + "is connected to the computer."), idvendor, idproduct); +#endif + return GP_ERROR_IO_USB_FIND; +} + +/* This function reads the Microsoft OS Descriptor and looks inside to + * find if it is a MTP device. This is the similar to the way that + * Windows Media Player 10 uses. + * It is documented to some degree on various internet pages. + */ +#if 0 +static int +gp_port_usb_match_mtp_device(struct usb_device *dev,int *configno, int *interfaceno, int *altsettingno) +{ + char buf[1000], cmd; + int ret,i,i1,i2, xifaces,xnocamifaces; + usb_dev_handle *devh; + + /* All of them are "vendor specific" device class */ +#if 0 + if ((dev->descriptor.bDeviceClass!=0xff) && (dev->descriptor.bDeviceClass!=0)) + return 0; +#endif + xifaces = xnocamifaces = 0; + if (dev->config) { + for (i = 0; i < dev->descriptor.bNumConfigurations; i++) { + unsigned int j; + + for (j = 0; j < dev->config[i].bNumInterfaces; j++) { + int k; + xifaces++; + + for (k = 0; k < dev->config[i].interface[j].num_altsetting; k++) { + struct usb_interface_descriptor *intf = &dev->config[i].interface[j].altsetting[k]; + if ( (intf->bInterfaceClass == USB_CLASS_HID) || + (intf->bInterfaceClass == USB_CLASS_PRINTER) || + (intf->bInterfaceClass == USB_CLASS_AUDIO) || + (intf->bInterfaceClass == USB_CLASS_HUB) || + (intf->bInterfaceClass == USB_CLASS_COMM) || + (intf->bInterfaceClass == 0xe0) /* wireless/bluetooth*/ + ) + xnocamifaces++; + } + } + } + } + if (xifaces == xnocamifaces) /* only non-camera ifaces */ + return 0; + + /* Marcus: Avoid this probing altogether, its too unstable on some devices */ + return 0; + +#if 0 + devh = usb_open (dev); + if (!devh) + return 0; + + /* + * Loop over the device configurations and interfaces. Nokia MTP-capable + * handsets (possibly others) typically have the string "MTP" in their + * MTP interface descriptions, that's how they can be detected, before + * we try the more esoteric "OS descriptors" (below). + */ + if (dev->config) { + for (i = 0; i < dev->descriptor.bNumConfigurations; i++) { + unsigned int j; + + for (j = 0; j < dev->config[i].bNumInterfaces; j++) { + int k; + for (k = 0; k < dev->config[i].interface[j].num_altsetting; k++) { + buf[0] = '\0'; + ret = usb_get_string_simple(devh, + dev->config[i].interface[j].altsetting[k].iInterface, + (char *) buf, + 1024); + if (ret < 3) + continue; + if (strcmp((char *) buf, "MTP") == 0) { + GP_LOG_D ("Configuration %d, interface %d, altsetting %d:\n", i, j, k); + GP_LOG_D (" Interface description contains the string \"MTP\"\n"); + GP_LOG_D (" Device recognized as MTP, no further probing.\n"); + goto found; + } + } + } + } + } + /* get string descriptor at 0xEE */ + ret = usb_get_descriptor (devh, 0x03, 0xee, buf, sizeof(buf)); + if (ret > 0) GP_LOG_DATA (buf, ret, "get_MS_OSD"); + if (ret < 10) goto errout; + if (!((buf[2] == 'M') && (buf[4]=='S') && (buf[6]=='F') && (buf[8]=='T'))) + goto errout; + cmd = buf[16]; + ret = usb_control_msg (devh, USB_ENDPOINT_IN|USB_RECIP_DEVICE|USB_TYPE_VENDOR, cmd, 0, 4, buf, sizeof(buf), 1000); + if (ret == -1) { + GP_LOG_E ("control message says %d\n", ret); + goto errout; + } + if (buf[0] != 0x28) { + GP_LOG_E ("ret is %d, buf[0] is %x\n", ret, buf[0]); + goto errout; + } + if (ret > 0) GP_LOG_DATA (buf, ret, "get_MS_ExtDesc"); + if ((buf[0x12] != 'M') || (buf[0x13] != 'T') || (buf[0x14] != 'P')) { + GP_LOG_E ("buf at 0x12 is %02x%02x%02x\n", buf[0x12], buf[0x13], buf[0x14]); + goto errout; + } + ret = usb_control_msg (devh, USB_ENDPOINT_IN|USB_RECIP_DEVICE|USB_TYPE_VENDOR, cmd, 0, 5, buf, sizeof(buf), 1000); + if (ret == -1) goto errout; + if (buf[0] != 0x28) { + GP_LOG_E ("ret is %d, buf[0] is %x\n", ret, buf[0]); + goto errout; + } + if (ret > 0) GP_LOG_DATA (buf, ret, "get_MS_ExtProp"); + if ((buf[0x12] != 'M') || (buf[0x13] != 'T') || (buf[0x14] != 'P')) { + GP_LOG_E ("buf at 0x12 is %02x%02x%02x\n", buf[0x12], buf[0x13], buf[0x14]); + goto errout; + } + +found: + usb_close (devh); + + /* Now chose a nice interface for us to use ... Just take the first. */ + + if (dev->descriptor.bNumConfigurations > 1) + GP_LOG_E ("The device has %d configurations!\n", dev->descriptor.bNumConfigurations); + for (i = 0; i < dev->descriptor.bNumConfigurations; i++) { + struct usb_config_descriptor *config = + &dev->config[i]; + + if (config->bNumInterfaces > 1) + GP_LOG_E ("The configuration has %d interfaces!\n", config->bNumInterfaces); + for (i1 = 0; i1 < config->bNumInterfaces; i1++) { + struct usb_interface *interface = + &config->interface[i1]; + + if (interface->num_altsetting > 1) + GP_LOG_E ("The interface has %d altsettings!\n", interface->num_altsetting); + for (i2 = 0; i2 < interface->num_altsetting; i2++) { + *configno = i; + *interfaceno = i1; + *altsettingno = i2; + return 1; + } + } + } + return 1; +errout: + usb_close (devh); + return 0; +#endif +} +#endif + +static int +gp_port_usb_match_device_by_class(struct usb_device *dev, int class, int subclass, int protocol, int *configno, int *interfaceno, int *altsettingno) +{ + int i, i1, i2; + +#if 0 + if (class == 666) /* Special hack for MTP devices with MS OS descriptors. */ + return gp_port_usb_match_mtp_device (dev, configno, interfaceno, altsettingno); +#endif + + if (dev->descriptor.bDeviceClass == class && + (subclass == -1 || + dev->descriptor.bDeviceSubClass == subclass) && + (protocol == -1 || + dev->descriptor.bDeviceProtocol == protocol)) + return 1; + + if (!dev->config) + return 0; + + for (i = 0; i < dev->descriptor.bNumConfigurations; i++) { + struct usb_config_descriptor *config = + &dev->config[i]; + + for (i1 = 0; i1 < config->bNumInterfaces; i1++) { + struct usb_interface *interface = + &config->interface[i1]; + + for (i2 = 0; i2 < interface->num_altsetting; i2++) { + struct usb_interface_descriptor *altsetting = + &interface->altsetting[i2]; + + if (altsetting->bInterfaceClass == class && + (subclass == -1 || + altsetting->bInterfaceSubClass == subclass) && + (protocol == -1 || + altsetting->bInterfaceProtocol == protocol)) { + *configno = i; + *interfaceno = i1; + *altsettingno = i2; + + return 2; + } + } + } + } + + return 0; +} + +static int +gp_port_usb_find_device_by_class_lib(GPPort *port, int class, int subclass, int protocol) +{ + struct usb_bus *bus; + struct usb_device *dev; + char *s; + char busname[64], devname[64]; + + C_PARAMS (port); + + busname[0] = devname[0] = '\0'; + s = strchr (port->settings.usb.port,':'); + if (s && (s[1] != '\0')) { /* usb:%d,%d */ + strncpy(busname,s+1,sizeof(busname)); + busname[sizeof(busname)-1] = '\0'; + + s = strchr(busname,','); + if (s) { + strncpy(devname, s+1,sizeof(devname)); + devname[sizeof(devname)-1] = '\0'; + *s = '\0'; + } else { + busname[0] = '\0'; + } + } + /* + * NULL class is not valid. + * NULL subclass and protocol is ok. + * Should the USB layer report that ? I don't know. + * Better to check here. + */ + C_PARAMS (class); + + for (bus = usb_busses; bus; bus = bus->next) { + if ((busname[0] != '\0') && strcmp(busname, bus->dirname)) + continue; + + for (dev = bus->devices; dev; dev = dev->next) { + int ret, config = -1, interface = -1, altsetting = -1; + + if ((devname[0] != '\0') && strcmp(devname, dev->filename)) + continue; + GP_LOG_D ("Looking for USB device (class 0x%x, subclass, 0x%x, protocol 0x%x)...", class, subclass, protocol); + + ret = gp_port_usb_match_device_by_class(dev, class, subclass, protocol, &config, &interface, &altsetting); + if (!ret) + continue; + + port->pl->d = dev; + GP_LOG_D ("Found USB class device (class 0x%x, subclass, 0x%x, protocol 0x%x)", class, subclass, protocol); + /* Set the defaults */ + if (dev->config) { + int i; + + port->settings.usb.config = dev->config[config].bConfigurationValue; + port->settings.usb.interface = dev->config[config].interface[interface].altsetting[altsetting].bInterfaceNumber; + port->settings.usb.altsetting = dev->config[config].interface[interface].altsetting[altsetting].bAlternateSetting; + + port->settings.usb.inep = gp_port_usb_find_ep(dev, config, interface, altsetting, USB_ENDPOINT_IN, USB_ENDPOINT_TYPE_BULK); + port->settings.usb.outep = gp_port_usb_find_ep(dev, config, interface, altsetting, USB_ENDPOINT_OUT, USB_ENDPOINT_TYPE_BULK); + port->settings.usb.intep = gp_port_usb_find_ep(dev, config, interface, altsetting, USB_ENDPOINT_IN, USB_ENDPOINT_TYPE_INTERRUPT); + port->settings.usb.maxpacketsize = 0; + GP_LOG_D ("inep to look for is %02x", port->settings.usb.inep); + for (i=0;iconfig[config].interface[interface].altsetting[altsetting].bNumEndpoints;i++) { + if (port->settings.usb.inep == dev->config[config].interface[interface].altsetting[altsetting].endpoint[i].bEndpointAddress) { + port->settings.usb.maxpacketsize = dev->config[config].interface[interface].altsetting[altsetting].endpoint[i].wMaxPacketSize; + break; + } + } + GP_LOG_D ("Detected defaults: config %d, interface %d, altsetting %d, " + "idVendor ID %04x, idProduct %04x, inep %02x, outep %02x, intep %02x", + port->settings.usb.config, + port->settings.usb.interface, + port->settings.usb.altsetting, + dev->descriptor.idVendor, + dev->descriptor.idProduct, + port->settings.usb.inep, + port->settings.usb.outep, + port->settings.usb.intep + ); + } + + return GP_OK; + } + } +#if 0 + gp_port_set_error (port, _("Could not find USB device " + "(class 0x%x, subclass 0x%x, protocol 0x%x). Make sure this device " + "is connected to the computer."), class, subclass, protocol); +#endif + return GP_ERROR_IO_USB_FIND; +} + +GPPortOperations * +gp_port_library_operations (void) +{ + GPPortOperations *ops; + + ops = calloc (1, sizeof (GPPortOperations)); + if (!ops) + return (NULL); + + ops->init = gp_port_usb_init; + ops->exit = gp_port_usb_exit; + ops->open = gp_port_usb_open; + ops->close = gp_port_usb_close; + ops->read = gp_port_usb_read; + ops->reset = gp_port_usb_reset; + ops->write = gp_port_usb_write; + ops->check_int = gp_port_usb_check_int; + ops->update = gp_port_usb_update; + ops->clear_halt = gp_port_usb_clear_halt_lib; + ops->msg_write = gp_port_usb_msg_write_lib; + ops->msg_read = gp_port_usb_msg_read_lib; + ops->msg_interface_write = gp_port_usb_msg_interface_write_lib; + ops->msg_interface_read = gp_port_usb_msg_interface_read_lib; + ops->msg_class_write = gp_port_usb_msg_class_write_lib; + ops->msg_class_read = gp_port_usb_msg_class_read_lib; + ops->find_device = gp_port_usb_find_device_lib; + ops->find_device_by_class = gp_port_usb_find_device_by_class_lib; + + return (ops); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usb/usb-os2.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usb/usb-os2.c new file mode 100644 index 00000000..ec7a86cd --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usb/usb-os2.c @@ -0,0 +1,271 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* gphoto2-port-usb.c - USB transport functions + + Copyright 1999-2000 Johannes Erdfelt + + The GPIO Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GPIO Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GPIO Library; see the file COPYING.LIB. If not, + write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include +#include +#include +#include +#include +#include +#include +#include + +/*#include */ +#include + + +int gp_port_usb_list(gp_port_info *list, int *count); +int gp_port_usb_init(gp_port *dev); +int gp_port_usb_exit(gp_port *dev); +int gp_port_usb_open(gp_port *dev); +int gp_port_usb_close(gp_port *dev); +int gp_port_usb_reset(gp_port *dev); +int gp_port_usb_write(gp_port * dev, char *bytes, int size); +int gp_port_usb_read(gp_port * dev, char *bytes, int size); +int gp_port_usb_update(gp_port * dev); + +int gp_port_usb_clear_halt_lib(gp_port * dev, int ep); +int gp_port_usb_msg_read_lib(gp_port * dev, int value, char *bytes, int size); +int gp_port_usb_msg_write_lib(gp_port * dev, int value, char *bytes, int size); +int gp_port_usb_find_device_lib(gp_port *dev, int idvendor, int idproduct); + +/* Dynamic library functions + --------------------------------------------------------------------- */ + +gp_port_type gp_port_library_type () { + + return (GP_PORT_USB); +} + +gp_port_operations *gp_port_library_operations () { + + gp_port_operations *ops; + + ops = calloc(1, sizeof(gp_port_operations)); + if (!ops) + return NULL; + + ops->init = gp_port_usb_init; + ops->exit = gp_port_usb_exit; + ops->open = gp_port_usb_open; + ops->close = gp_port_usb_close; + ops->read = gp_port_usb_read; + ops->write = gp_port_usb_write; + ops->update = gp_port_usb_update; + ops->clear_halt = gp_port_usb_clear_halt_lib; + ops->msg_write = gp_port_usb_msg_write_lib; + ops->msg_read = gp_port_usb_msg_read_lib; + ops->find_device = gp_port_usb_find_device_lib; + + return (ops); +} + +int gp_port_library_list(gp_port_info *list, int *count) +{ + + list[*count].type = GP_PORT_USB; + strcpy(list[*count].name, "Universal Serial Bus"); + strcpy(list[*count].path, "usb:"); + /* list[*count].argument_needed = 0; */ + *count += 1; + + return GP_OK; +} + +int gp_port_usb_init(gp_port *dev) +{ +/* usb_init(); + usb_find_busses(); + usb_find_devices();*/ + return (GP_OK); +} + +int gp_port_usb_exit(gp_port *dev) +{ + return (GP_OK); +} + +int gp_port_usb_open(gp_port *dev) +{ + int ret; + void *udev; + + if (dev->debug_level) + printf ("gp_port_usb_open() called\n"); + + /* Open the device using the previous usb_handle returned by find_device */ + udev = dev->device_handle; + /*dev->device_handle = usb_open(udev);*/ + if (!dev->device_handle) + return GP_ERROR_IO_OPEN; + + /*ret = usb_set_configuration(dev->device_handle, dev->settings.usb.config);*/ + if (ret < 0) { + fprintf(stderr, "gp_port_usb_open: could not set config %d: %s\n", + dev->settings.usb.config, strerror(errno)); + return GP_ERROR_IO_OPEN; + } + + /*ret = usb_claim_interface(dev->device_handle, dev->settings.usb.interface);*/ + if (ret < 0) { + fprintf(stderr, "gp_port_usb_open: could not claim intf %d: %s\n", + dev->settings.usb.interface, strerror(errno)); + return GP_ERROR_IO_OPEN; + } + + /*ret = usb_set_altinterface(dev->device_handle, dev->settings.usb.altsetting);*/ + if (ret < 0) { + fprintf(stderr, "gp_port_usb_open: could not set intf %d/%d: %s\n", + dev->settings.usb.interface, + dev->settings.usb.altsetting, strerror(errno)); + return GP_ERROR_IO_OPEN; + } + + return GP_OK; +} + +int gp_port_usb_close(gp_port *dev) +{ + if (dev->debug_level) + printf ("gp_port_usb_close() called\n"); + + /*if (usb_close(dev->device_handle) < 0) + fprintf(stderr, "gp_port_usb_close: %s\n", + strerror(errno)); */ + + dev->device_handle = NULL; + + return GP_OK; +} + +int gp_port_usb_reset(gp_port *dev) +{ + /*gp_port_usb_close(dev); + return gp_port_usb_open(dev);*/ +} + +int gp_port_usb_clear_halt_lib(gp_port * dev, int ep) +{ + int ret=0; + + switch (ep) { + case GP_PORT_USB_ENDPOINT_IN : + /*ret=usb_clear_halt(dev->device_handle, dev->settings.usb.inep);*/ + break; + case GP_PORT_USB_ENDPOINT_OUT : + /*ret=usb_clear_halt(dev->device_handle, dev->settings.usb.outep);*/ + case GP_PORT_USB_ENDPOINT_INT : + /*ret=usb_clear_halt(dev->device_handle, dev->settings.usb.intep);*/ + break; + default: + fprintf(stderr,"gp_port_usb_clear_halt: bad EndPoint argument\n"); + return GP_ERROR_IO_USB_CLEAR_HALT; + } + return (ret ? GP_ERROR_IO_USB_CLEAR_HALT : GP_OK); +} + +int gp_port_usb_write(gp_port * dev, char *bytes, int size) +{ + int ret; +/* + if (dev->debug_level) { + int i; + + printf("gp_port_usb_write(): "); + for (i = 0; i < size; i++) + printf("%02x ",(unsigned char)bytes[i]); + printf("\n"); + } +*/ + /*ret = usb_bulk_write(dev->device_handle, dev->settings.usb.outep, + bytes, size, dev->timeout);*/ + if (ret < 0) + return (GP_ERROR_IO_WRITE); + return (ret); +} + +int gp_port_usb_read(gp_port * dev, char *bytes, int size) +{ + int ret; + + /*ret = usb_bulk_read(dev->device_handle, dev->settings.usb.inep, + bytes, size, dev->timeout);*/ + if (ret < 0) + return GP_ERROR_IO_READ; + +/* + if (dev->debug_level) { + int i; + + printf("gp_port_usb_read(timeout=%d): ", dev->timeout); + for (i = 0; i < ret; i++) + printf("%02x ",(unsigned char)(bytes[i])); + printf("\n"); + } +*/ + + return ret; +} + +int gp_port_usb_msg_write_lib(gp_port * dev, int value, char *bytes, int size) +{ + /*return usb_control_msg(dev->device_handle, + USB_TYPE_VENDOR | USB_RECIP_DEVICE, + size > 1 ? 0x04 : 0x0c, value, 0, bytes, size, dev->timeout);*/ +} + +int gp_port_usb_msg_read_lib(gp_port * dev, int value, char *bytes, int size) +{ + /*return usb_control_msg(dev->device_handle, + USB_TYPE_VENDOR | USB_RECIP_DEVICE | 0x80, + size > 1 ? 0x04 : 0x0c, value, 0, bytes, size, dev->timeout);*/ +} + +/* + * This function applys changes to the device + * (At this time it does nothing) + */ +int gp_port_usb_update(gp_port * dev) +{ + memcpy(&dev->settings, &dev->settings_pending, sizeof(dev->settings)); + + return GP_OK; +} + +int gp_port_usb_find_device_lib(gp_port * d, int idvendor, int idproduct) +{ + /*struct usb_bus *bus; + struct usb_device *dev; + for (bus = usb_busses; bus; bus = bus->next) { + for (dev = bus->devices; dev; dev = dev->next) { + if ((dev->descriptor.idVendor == idvendor) && + (dev->descriptor.idProduct == idproduct)) { + if (d) + d->device_handle = dev; + return GP_OK; + } + } + } */ + + return GP_ERROR_IO_USB_FIND; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbdiskdirect/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbdiskdirect/Makefile-files new file mode 100644 index 00000000..8195c7e7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbdiskdirect/Makefile-files @@ -0,0 +1,10 @@ +# -*- Makefile -*- + +## Compile the IO library into a libtool module shared library +EXTRA_LTLIBRARIES += usbdiskdirect.la + +usbdiskdirect_la_LDFLAGS = $(iolib_ldflags) +usbdiskdirect_la_CPPFLAGS = $(AM_CPPFLAGS) $(INTL_CFLAGS) $(CPPFLAGS) +usbdiskdirect_la_DEPENDENCIES = $(iolib_dependencies) +usbdiskdirect_la_LIBADD = $(iolib_libadd) $(INTLLIBS) $(SERIAL_LIBS) +usbdiskdirect_la_SOURCES = usbdiskdirect/linux.c diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbdiskdirect/linux.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbdiskdirect/linux.c new file mode 100644 index 00000000..a5de0b01 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbdiskdirect/linux.c @@ -0,0 +1,425 @@ +/* Direct IO to USB Mass storage devices port library for Linux + * + * Copyright (c) 2010 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +#define _DEFAULT_SOURCE + +#include "config.h" +#include + +#include +#include +#include +#ifdef HAVE_FCNTL_H +# include +#endif +#ifdef HAVE_LIMITS_H +# include +#endif +#include +#include +#ifdef HAVE_SYS_PARAM_H +# include +#endif +#ifdef HAVE_LOCKDEV +# include +#endif + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +/* From Linux asm/fcntl.h */ +#ifndef O_DIRECT +#define O_DIRECT 00040000 /* direct disk access hint */ +#endif + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +struct _GPPortPrivateLibrary { + int fd; /* Device handle */ +}; + +GPPortType +gp_port_library_type () +{ + return GP_PORT_USB_DISK_DIRECT; +} + +static int +gp_port_usbdiskdirect_lock (GPPort *port, const char *path) +{ +#ifdef HAVE_LOCKDEV + int pid; + + GP_LOG_D ("Trying to lock '%s'...", path); + + pid = dev_lock (path); + if (pid) { + if (port) { + if (pid > 0) + gp_port_set_error (port, _("Device '%s' is " + "locked by pid %d"), path, pid); + else + gp_port_set_error (port, _("Device '%s' could " + "not be locked (dev_lock returned " + "%d)"), path, pid); + } + return GP_ERROR_IO_LOCK; + } +#else +# ifdef __GCC__ +# warning No locking library found. +# warning You will run into problems if you use +# warning gphoto2 with a usbdiskdirect picframe in +# warning combination with Konqueror (KDE) or Nautilus (GNOME). +# warning This will *not* concern USB cameras. +# endif +#endif + + return GP_OK; +} + +static int +gp_port_usbdiskdirect_unlock (GPPort *port, const char *path) +{ +#ifdef HAVE_LOCKDEV + int pid; + + pid = dev_unlock (path, 0); + if (pid) { + if (port) { + if (pid > 0) + gp_port_set_error (port, _("Device '%s' could " + "not be unlocked as it is locked by " + "pid %d."), path, pid); + else + gp_port_set_error (port, _("Device '%s' could " + "not be unlocked (dev_unlock " + "returned %d)"), path, pid); + } + return GP_ERROR_IO_LOCK; + } +#endif /* !HAVE_LOCKDEV */ + + return GP_OK; +} + +static const char * +gp_port_usbdiskdirect_resolve_symlink (const char *link) +{ + ssize_t ret; + static char path[PATH_MAX + 1]; + char *slash, buf[PATH_MAX + 1]; + struct stat st; + int len; + + snprintf (path, sizeof(path), "%s", link); + + do { + ret = readlink (path, buf, PATH_MAX); + if (ret < 0) + return NULL; + buf[ret] = 0; + + slash = strrchr (path, '/'); + if (buf[0] == '/' || slash == NULL) { + snprintf (path, sizeof(path), "%s", buf); + } else { + *slash = 0; + len = strlen (path); + snprintf (path + len, sizeof (path) - len, "/%s", buf); + } + + if (stat (path, &st)) + return NULL; + } while (S_ISLNK(st.st_mode)); + + return path; +} + +static int +gp_port_usbdiskdirect_get_usb_id (const char *disk, + unsigned short *vendor_id, unsigned short *product_id) +{ + FILE *f; + char c, *s, buf[32], path[PATH_MAX + 1]; + + snprintf (path, sizeof (path), "/sys/block/%s", disk); + snprintf (path, sizeof (path), "%s/../../../../../modalias", + gp_port_usbdiskdirect_resolve_symlink(path)); + + f = fopen (path, "r"); + if (!f) + return GP_ERROR_IO_SUPPORTED_USB; + + s = fgets (buf, sizeof(buf), f); + fclose (f); + + if (!s) + return GP_ERROR_IO_SUPPORTED_USB; + + if (sscanf (s, "usb:v%4hxp%4hx%c", vendor_id, product_id, &c) != 3 || + c != 'd') + return GP_ERROR_IO_SUPPORTED_USB; + + return GP_OK; +} + +int +gp_port_library_list (GPPortInfoList *list) +{ + gp_system_dir dir; + gp_system_dirent dirent; + GPPortInfo info; + int ret; + unsigned short vendor_id, product_id; + + dir = gp_system_opendir ("/sys/block"); + if (dir == NULL) + return GP_OK; + + while ((dirent = gp_system_readdir (dir))) { + char path[4096]; + if (dirent->d_name[0] != 's' || + dirent->d_name[1] != 'd' || + dirent->d_name[2] < 'a' || + dirent->d_name[2] > 'z') + continue; + + if (gp_port_usbdiskdirect_get_usb_id (dirent->d_name, + &vendor_id, &product_id) != GP_OK) + continue; /* Not a usb device */ + + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_USB_DISK_DIRECT); + snprintf (path, sizeof (path), + "usbdiskdirect:/dev/%s", + dirent->d_name); + gp_port_info_set_path (info, path); + gp_port_info_set_name (info, _("USB Mass Storage direct IO")); + ret = gp_port_info_list_append (list, info); + if (ret < GP_OK) + break; + } + gp_system_closedir (dir); + return GP_OK; +} + +static int +gp_port_usbdiskdirect_init (GPPort *port) +{ + C_MEM (port->pl = calloc (1, sizeof (GPPortPrivateLibrary))); + + port->pl->fd = -1; + + return GP_OK; +} + +static int +gp_port_usbdiskdirect_exit (GPPort *port) +{ + C_PARAMS (port); + + free (port->pl); + port->pl = NULL; + + return GP_OK; +} + +static int +gp_port_usbdiskdirect_open (GPPort *port) +{ + int result, i; + const int max_tries = 5; + const char *path = port->settings.usbdiskdirect.path; + + result = gp_port_usbdiskdirect_lock (port, path); + if (result != GP_OK) { + for (i = 0; i < max_tries; i++) { + result = gp_port_usbdiskdirect_lock (port, path); + if (result == GP_OK) + break; + GP_LOG_D ("Failed to get a lock, trying again..."); + sleep (1); + } + CHECK (result) + } + port->pl->fd = open (path, O_RDWR|O_DIRECT|O_SYNC); + if (port->pl->fd == -1) { + gp_port_usbdiskdirect_unlock (port, path); + gp_port_set_error (port, _("Failed to open '%s' (%m)."), path); + return GP_ERROR_IO; + } + + return GP_OK; +} + +static int +gp_port_usbdiskdirect_close (GPPort *port) +{ + if (!port || port->pl->fd == -1) + return GP_OK; + + if (close (port->pl->fd) == -1) { + gp_port_set_error (port, _("Could not close " + "'%s' (%m)."), port->settings.usbdiskdirect.path); + return GP_ERROR_IO; + } + port->pl->fd = -1; + + CHECK (gp_port_usbdiskdirect_unlock (port, + port->settings.usbdiskdirect.path)) + + return GP_OK; +} + +static int gp_port_usbdiskdirect_seek (GPPort *port, int offset, int whence) +{ + off_t ret; + + C_PARAMS (port); + + /* The device needs to be opened for that operation */ + if (port->pl->fd == -1) + CHECK (gp_port_usbdiskdirect_open (port)) + + ret = lseek (port->pl->fd, offset, whence); + if (ret == -1) { + gp_port_set_error (port, _("Could not seek to offset: %x on " + "'%s' (%m)."), offset, + port->settings.usbdiskdirect.path); + return GP_ERROR_IO; + } + + return ret; +} + +static int +gp_port_usbdiskdirect_write (GPPort *port, const char *bytes, int size) +{ + int ret; + + C_PARAMS (port); + + /* The device needs to be opened for that operation */ + if (port->pl->fd == -1) + CHECK (gp_port_usbdiskdirect_open (port)) + + ret = write (port->pl->fd, bytes, size); + if (ret < 0) { + gp_port_set_error (port, _("Could not write to '%s' (%m)."), + port->settings.usbdiskdirect.path); + return GP_ERROR_IO; + } + + return ret; +} + +static int +gp_port_usbdiskdirect_read (GPPort *port, char *bytes, int size) +{ + int ret; + + C_PARAMS (port); + + /* The device needs to be opened for that operation */ + if (port->pl->fd == -1) + CHECK (gp_port_usbdiskdirect_open (port)) + + ret = read (port->pl->fd, bytes, size); + if (ret < 0) { + gp_port_set_error (port, _("Could not read from '%s' (%m)."), + port->settings.usbdiskdirect.path); + return GP_ERROR_IO; + } + + return ret; +} + +static int +gp_port_usbdiskdirect_update (GPPort *port) +{ + C_PARAMS (port); + + memcpy (&port->settings, &port->settings_pending, + sizeof (port->settings)); + + return GP_OK; +} + +static int +gp_port_usbdiskdirect_find_device(GPPort *port, int idvendor, int idproduct) +{ + unsigned short vendor_id, product_id; + const char *disk; + + C_PARAMS (port); + + disk = strrchr (port->settings.usbdiskdirect.path, '/'); + C_PARAMS (disk); + disk++; + + CHECK (gp_port_usbdiskdirect_get_usb_id (disk, + &vendor_id, &product_id)) + if (vendor_id != idvendor || product_id != idproduct) + return GP_ERROR_IO_USB_FIND; + + return GP_OK; +} + +GPPortOperations * +gp_port_library_operations () +{ + GPPortOperations *ops; + + ops = calloc (1, sizeof (GPPortOperations)); + if (!ops) + return (NULL); + + ops->init = gp_port_usbdiskdirect_init; + ops->exit = gp_port_usbdiskdirect_exit; + ops->open = gp_port_usbdiskdirect_open; + ops->close = gp_port_usbdiskdirect_close; + ops->seek = gp_port_usbdiskdirect_seek; + ops->read = gp_port_usbdiskdirect_read; + ops->write = gp_port_usbdiskdirect_write; + ops->update = gp_port_usbdiskdirect_update; + ops->find_device = gp_port_usbdiskdirect_find_device; + + return (ops); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbscsi/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbscsi/Makefile-files new file mode 100644 index 00000000..8f1c44ee --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbscsi/Makefile-files @@ -0,0 +1,10 @@ +# -*- Makefile -*- + +## Compile the IO library into a libtool module shared library +EXTRA_LTLIBRARIES += usbscsi.la + +usbscsi_la_LDFLAGS = $(iolib_ldflags) +usbscsi_la_CPPFLAGS = $(AM_CPPFLAGS) $(INTL_CFLAGS) $(CPPFLAGS) +usbscsi_la_DEPENDENCIES = $(iolib_dependencies) +usbscsi_la_LIBADD = $(iolib_libadd) $(INTLLIBS) +usbscsi_la_SOURCES = usbscsi/linux.c diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbscsi/linux.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbscsi/linux.c new file mode 100644 index 00000000..1d22acf1 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/usbscsi/linux.c @@ -0,0 +1,399 @@ +/* SCSI commands to USB Mass storage devices port library for Linux + * + * Copyright (c) 2010-2012 Hans de Goede + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#define _DEFAULT_SOURCE /* for flock */ + +#include "config.h" +#include + +#include +#include +#include +#include +#ifdef HAVE_FCNTL_H +# include +#endif +#ifdef HAVE_LIMITS_H +# include +#endif +#ifdef HAVE_SYS_FILE_H +# include +# ifndef LOCK_SH +# define LOCK_SH 1 +# endif +# ifndef LOCK_EX +# define LOCK_EX 2 +# endif +# ifndef LOCK_NB +# define LOCK_NB 4 +# endif +# ifndef LOCK_UN +# define LOCK_UN 4 +# endif +#endif +#include +#include +#ifdef HAVE_SYS_PARAM_H +# include +#endif +#ifdef HAVE_SYS_IOCTL_H +# include +#endif +#ifdef HAVE_SCSI_SG_H +# include +#endif + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +struct _GPPortPrivateLibrary { + int fd; /* Device handle */ +}; + +GPPortType +gp_port_library_type () +{ + return GP_PORT_USB_SCSI; +} + +static int +gp_port_usbscsi_lock (GPPort *port) +{ +#if HAVE_FLOCK + GP_LOG_D ("Trying to lock '%s'...", port->settings.usbscsi.path); + + if (flock(port->pl->fd, LOCK_EX | LOCK_NB) != 0) { + switch (errno) { + case EWOULDBLOCK: + gp_port_set_error (port, + _("Device '%s' is locked by another app."), + port->settings.usbscsi.path); + return GP_ERROR_IO_LOCK; + default: + gp_port_set_error (port, + _("Failed to lock '%s' (%m)."), + port->settings.usbscsi.path); + return GP_ERROR_IO; + } + } +#else + GP_LOG_D ("Locking '%s' not possible, flock not availbale.", port->settings.usbscsi.path); +#endif + return GP_OK; +} + +static int +gp_port_usbscsi_unlock (GPPort *port) +{ +#ifdef HAVE_FLOCK + if (flock(port->pl->fd, LOCK_UN) != 0) { + gp_port_set_error (port, _("Failed to unlock '%s' (%m)."), + port->settings.usbscsi.path); + return GP_ERROR_IO; + } +#endif + return GP_OK; +} + +static const char * +gp_port_usbscsi_resolve_symlink (const char *link) +{ + ssize_t ret; + static char path[PATH_MAX + 1]; + char *slash, buf[PATH_MAX + 1]; + struct stat st; + int len; + + snprintf (path, sizeof(path), "%s", link); + + do { + ret = readlink (path, buf, PATH_MAX); + if (ret < 0) + return NULL; + buf[ret] = 0; + + slash = strrchr (path, '/'); + if (buf[0] == '/' || slash == NULL) { + snprintf (path, sizeof(path), "%s", buf); + } else { + *slash = 0; + len = strlen (path); + snprintf (path + len, sizeof (path) - len, "/%s", buf); + } + + if (stat (path, &st)) + return NULL; + } while (S_ISLNK(st.st_mode)); + + return path; +} + +static int +gp_port_usbscsi_get_usb_id (const char *sg, + unsigned short *vendor_id, unsigned short *product_id) +{ + FILE *f; + char c, *s, buf[32], path[PATH_MAX + 1]; + const char *xpath; + + snprintf (path, sizeof (path), "/sys/class/scsi_generic/%s", sg); + xpath = gp_port_usbscsi_resolve_symlink(path); + if (xpath) { + snprintf (path, sizeof (path), "%s/../../../../../modalias", + gp_port_usbscsi_resolve_symlink(path)); + } else { + /* older kernels, perhaps also works on newer ones */ + snprintf (path, sizeof (path), "/sys/class/scsi_generic/%s/device/../../../modalias", sg); + } + + f = fopen (path, "r"); + if (!f) + return GP_ERROR_IO_SUPPORTED_USB; + + s = fgets (buf, sizeof(buf), f); + fclose (f); + + if (!s) + return GP_ERROR_IO_SUPPORTED_USB; + + if (sscanf (s, "usb:v%4hxp%4hx%c", vendor_id, product_id, &c) != 3 || + c != 'd') + return GP_ERROR_IO_SUPPORTED_USB; + + return GP_OK; +} + +int +gp_port_library_list (GPPortInfoList *list) +{ + gp_system_dir dir; + gp_system_dirent dirent; + int ret; + GPPortInfo info; + unsigned short vendor_id, product_id; + + dir = gp_system_opendir ("/sys/class/scsi_generic"); + if (dir == NULL) + return GP_OK; + + while ((dirent = gp_system_readdir (dir))) { + char path[4096]; + if (gp_port_usbscsi_get_usb_id (dirent->d_name, + &vendor_id, &product_id) != GP_OK) + continue; /* Not a usb device */ + + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_USB_SCSI); + snprintf (path, sizeof (path), + "usbscsi:/dev/%s", + dirent->d_name); + gp_port_info_set_path (info, path); + gp_port_info_set_name (info, _("USB Mass Storage raw SCSI")); + ret = gp_port_info_list_append (list, info); + if (ret < GP_OK) /* can only be out of memory */ + break; + } + gp_system_closedir (dir); + return GP_OK; +} + +static int +gp_port_usbscsi_init (GPPort *port) +{ + C_MEM (port->pl = calloc (1, sizeof (GPPortPrivateLibrary))); + + port->pl->fd = -1; + + return GP_OK; +} + +static int +gp_port_usbscsi_exit (GPPort *port) +{ + C_PARAMS (port); + + free (port->pl); + port->pl = NULL; + + return GP_OK; +} + +static int +gp_port_usbscsi_open (GPPort *port) +{ + int result, i; + const int max_tries = 5; + const char *path = port->settings.usbscsi.path; + + port->pl->fd = open (path, O_RDWR); + if (port->pl->fd == -1) { + gp_port_set_error (port, _("Failed to open '%s' (%m)."), path); + return GP_ERROR_IO; + } + + result = gp_port_usbscsi_lock (port); + for (i = 0; i < max_tries && result == GP_ERROR_IO_LOCK; i++) { + GP_LOG_D ("Failed to get a lock, trying again..."); + sleep (1); + result = gp_port_usbscsi_lock (port); + } + if (result != GP_OK) { + close (port->pl->fd); + port->pl->fd = -1; + } + return result; +} + +static int +gp_port_usbscsi_close (GPPort *port) +{ + int result; + + if (!port || port->pl->fd == -1) + return GP_OK; + + result = gp_port_usbscsi_unlock (port); + + if (close (port->pl->fd) == -1) { + gp_port_set_error (port, _("Could not close " + "'%s' (%m)."), port->settings.usbscsi.path); + return GP_ERROR_IO; + } + port->pl->fd = -1; + + return result; +} + +static int gp_port_usbscsi_send_scsi_cmd (GPPort *port, int to_dev, char *cmd, + int cmd_size, char *sense, int sense_size, char *data, int data_size) +{ +#ifdef HAVE_SCSI_SG_H + sg_io_hdr_t io_hdr; + + C_PARAMS (port); + + /* The device needs to be opened for that operation */ + if (port->pl->fd == -1) + CHECK (gp_port_usbscsi_open (port)) + + memset(sense, 0, sense_size); + memset(&io_hdr, 0, sizeof(sg_io_hdr_t)); + if (to_dev) { + io_hdr.dxfer_direction = SG_DXFER_TO_DEV; + } else { + memset (data, 0, data_size); + io_hdr.dxfer_direction = SG_DXFER_FROM_DEV; + } + io_hdr.interface_id = 'S'; + io_hdr.cmdp = (unsigned char *)cmd; + io_hdr.cmd_len = cmd_size; + io_hdr.sbp = (unsigned char *)sense; + io_hdr.mx_sb_len = sense_size; + io_hdr.dxferp = (unsigned char *)data; + io_hdr.dxfer_len = data_size; + /*io_hdr.timeout = 1500;*/ + io_hdr.timeout = port->timeout; + GP_LOG_D ("setting scsi command timeout to %d", port->timeout); + if (io_hdr.timeout < 1500) + io_hdr.timeout = 1500; + + if (ioctl (port->pl->fd, SG_IO, &io_hdr) < 0) + { + gp_port_set_error (port, _("Could not send scsi command to: " + "'%s' (%m)."), port->settings.usbscsi.path); + return GP_ERROR_IO; + } + return GP_OK; +#else + return GP_ERROR_NOT_SUPPORTED; +#endif +} + +static int +gp_port_usbscsi_update (GPPort *port) +{ + C_PARAMS (port); + + memcpy (&port->settings, &port->settings_pending, + sizeof (port->settings)); + + return GP_OK; +} + +static int +gp_port_usbscsi_find_device(GPPort *port, int idvendor, int idproduct) +{ + unsigned short vendor_id, product_id; + const char *sg; + + C_PARAMS (port); + + sg = strrchr (port->settings.usbscsi.path, '/'); + C_PARAMS (sg); + sg++; + + CHECK (gp_port_usbscsi_get_usb_id (sg, &vendor_id, &product_id)) + if (vendor_id != idvendor || product_id != idproduct) + return GP_ERROR_IO_USB_FIND; + + return GP_OK; +} + +GPPortOperations * +gp_port_library_operations () +{ + GPPortOperations *ops; + + ops = calloc (1, sizeof (GPPortOperations)); + if (!ops) + return (NULL); + + ops->init = gp_port_usbscsi_init; + ops->exit = gp_port_usbscsi_exit; + ops->open = gp_port_usbscsi_open; + ops->close = gp_port_usbscsi_close; + ops->send_scsi_cmd = gp_port_usbscsi_send_scsi_cmd; + ops->update = gp_port_usbscsi_update; + ops->find_device = gp_port_usbscsi_find_device; + + return (ops); +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/Makefile-files b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/Makefile-files new file mode 100644 index 00000000..5dc394da --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/Makefile-files @@ -0,0 +1,20 @@ +# -*- Makefile -*- + +vcameradir = $(datadir)/$(PACKAGE)/$(VERSION)/vcamera +vcamera_DATA = vusb/README.txt +EXTRA_DIST += vusb/README.txt + +EXTRA_LTLIBRARIES += vusb.la + +vusb_la_LDFLAGS = $(iolib_ldflags) +vusb_la_CPPFLAGS = \ + -DVCAMERADIR=\"$(vcameradir)\" \ + $(AM_CPPFLAGS) \ + $(INTL_CFLAGS) \ + $(LIBEXIF_CFLAGS) \ + $(CPPFLAGS) +vusb_la_DEPENDENCIES = $(iolib_dependencies) +vusb_la_LIBADD = $(iolib_libadd) +vusb_la_LIBADD += $(INTLLIBS) $(LIBEXIF_LIBS) + +vusb_la_SOURCES = vusb/vusb.c vusb/vcamera.c vusb/vcamera.h diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/README.txt b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/README.txt new file mode 100644 index 00000000..c5abb23c --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/README.txt @@ -0,0 +1,28 @@ +This is a virtual PTP camera embedded in a USB port driver. + +It is meant for libgphoto2 test purposes. + +If you are seeing this file on a regular system, you likely +did not build any other USB driver. + +In that case you should probably install libusb development headers +and libraries and recompile. + +If you want to use it, copy JPG and other files into the directory +of this README (standard location is: /usr/share/libgphoto2_port// ) + +Special functions: + +Doing an image capture will duplicate an existing JPEG and report it as +being captured. + +Doing a deletion is virtual and does not affect the filesystem content. + +PTP Opcode 0x9999 can be used to emit PTP Events +First argment is the type, second argument is the delay of the interrupt in 1/1000 seconds + + 0x0 objectadded - will use a random existing jpg and virtually duplicate it + 0x1 objectremoved - will virtually delete the first existing jpg it finds + 0x2 capturecompleted - emits a capturecompleted event + +Author: Marcus Meissner diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/vcamera.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/vcamera.c new file mode 100644 index 00000000..536e09b7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/vcamera.c @@ -0,0 +1,2151 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* camera.c + * + * Copyright (c) 2015-2017 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include +#include + +#ifdef HAVE_LIBEXIF +# include +#endif + +#include +#include +#include +#include +#include +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#include +#include + +#include "vcamera.h" + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +static int ptp_inject_interrupt(vcamera*cam, int when, uint16_t code, int nparams, uint32_t param1, uint32_t transid); + +static uint32_t get_32bit_le(unsigned char *data) { + return data[0] | (data[1] << 8) | (data[2] << 16) | (data[3] << 24); +} + +static uint16_t get_16bit_le(unsigned char *data) { + return data[0] | (data[1] << 8); +} + +static uint8_t get_8bit_le(unsigned char *data) { + return data[0]; +} + +static int8_t get_i8bit_le(unsigned char *data) { + return data[0]; +} + + +static int put_64bit_le(unsigned char *data, uint64_t x) { + data[0] = x & 0xff; + data[1] = (x>>8) & 0xff; + data[2] = (x>>16) & 0xff; + data[3] = (x>>24) & 0xff; + data[4] = (x>>32) & 0xff; + data[5] = (x>>40) & 0xff; + data[6] = (x>>48) & 0xff; + data[7] = (x>>56) & 0xff; + return 8; +} + +static int put_32bit_le(unsigned char *data, uint32_t x) { + data[0] = x & 0xff; + data[1] = (x>>8) & 0xff; + data[2] = (x>>16) & 0xff; + data[3] = (x>>24) & 0xff; + return 4; +} + +static int put_16bit_le(unsigned char *data, uint16_t x) { + data[0] = x & 0xff; + data[1] = (x>>8) & 0xff; + return 2; +} + +static int put_8bit_le(unsigned char *data, uint8_t x) { + data[0] = x; + return 1; +} + +static int put_string(unsigned char *data, char *str) { + int i; + + if (!str) { /* empty string, just has length 0 */ + data[0] = 0; + return 1; + } + if (strlen(str)+1>255) + gp_log (GP_LOG_ERROR, "put_string", "string length is longer than 255 characters"); + + data[0] = strlen (str)+1; + for (i=0;iinbulk) { + cam->inbulk = malloc(size); + } else { + cam->inbulk = realloc(cam->inbulk,cam->nrinbulk+size); + } + offset = cam->inbulk + cam->nrinbulk; + cam->nrinbulk += size; + + put_32bit_le(offset,size); + put_16bit_le(offset+4,0x2); + put_16bit_le(offset+6,code); + put_32bit_le(offset+8,cam->seqnr); + memcpy(offset+12,data,bytes); +} + +static void +ptp_response(vcamera *cam, uint16_t code, int nparams, ...) { + unsigned char *offset; + int i, x = 0; + va_list args; + + if (!cam->inbulk) { + cam->inbulk = malloc(12 + nparams*4); + } else { + cam->inbulk = realloc(cam->inbulk,cam->nrinbulk+12+nparams*4); + } + offset = cam->inbulk + cam->nrinbulk; + cam->nrinbulk += 12+nparams*4; + x += put_32bit_le(offset+x,12+nparams*4); + x += put_16bit_le(offset+x,0x3); + x += put_16bit_le(offset+x,code); + x += put_32bit_le(offset+x,cam->seqnr); + + va_start(args, nparams); + for (i=0;iseqnr++; +} + +#define PTP_RC_OK 0x2001 +#define PTP_RC_GeneralError 0x2002 +#define PTP_RC_SessionNotOpen 0x2003 +#define PTP_RC_OperationNotSupported 0x2005 +#define PTP_RC_InvalidStorageId 0x2008 +#define PTP_RC_InvalidObjectHandle 0x2009 +#define PTP_RC_DevicePropNotSupported 0x200A +#define PTP_RC_InvalidObjectFormatCode 0x200B +#define PTP_RC_StoreFull 0x200C +#define PTP_RC_ObjectWriteProtected 0x200D +#define PTP_RC_AccessDenied 0x200F +#define PTP_RC_NoThumbnailPresent 0x2010 +#define PTP_RC_StoreNotAvailable 0x2013 +#define PTP_RC_SpecificationByFormatUnsupported 0x2014 +#define PTP_RC_InvalidParentObject 0x201A +#define PTP_RC_InvalidDevicePropFormat 0x201B +#define PTP_RC_InvalidParameter 0x201D +#define PTP_RC_SessionAlreadyOpened 0x201E + +#define CHECK_PARAM_COUNT(x) \ + if (ptp->nparams != x) { \ + gp_log (GP_LOG_ERROR, __FUNCTION__,"params should be %d, but is %d", x, ptp->nparams); \ + ptp_response (cam, PTP_RC_GeneralError, 0); \ + return 1; \ + } + +#define CHECK_SEQUENCE_NUMBER() \ + if (ptp->seqnr != cam->seqnr) { \ + /* not clear if normal cameras react like this */ \ + gp_log (GP_LOG_ERROR, __FUNCTION__, "seqnr %d was sent, expected was %d", ptp->seqnr, cam->seqnr);\ + ptp_response (cam,PTP_RC_GeneralError,0); \ + return 1; \ + } + +#define CHECK_SESSION() \ + if (!cam->session) { \ + gp_log (GP_LOG_ERROR,__FUNCTION__,"session is not open"); \ + ptp_response(cam, PTP_RC_SessionNotOpen, 0); \ + return 1; \ + } + +static int ptp_opensession_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_closesession_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_deviceinfo_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_getnumobjects_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_getobjecthandles_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_getstorageids_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_getstorageinfo_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_getobjectinfo_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_getobject_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_getthumb_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_deleteobject_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_getdevicepropdesc_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_getdevicepropvalue_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_setdevicepropvalue_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_setdevicepropvalue_write_data(vcamera *cam, ptpcontainer *ptp, unsigned char*data, unsigned int len); +static int ptp_initiatecapture_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_vusb_write(vcamera *cam, ptpcontainer *ptp); +static int ptp_nikon_setcontrolmode_write(vcamera *cam, ptpcontainer *ptp); + +static struct ptp_function { + int code; + int (*write)(vcamera *cam, ptpcontainer *ptp); + int (*write_data)(vcamera *cam, ptpcontainer *ptp, unsigned char *data, unsigned int size); +} ptp_functions_generic[] = { + {0x1001, ptp_deviceinfo_write, NULL }, + {0x1002, ptp_opensession_write, NULL }, + {0x1003, ptp_closesession_write, NULL }, + {0x1004, ptp_getstorageids_write, NULL }, + {0x1005, ptp_getstorageinfo_write, NULL }, + {0x1006, ptp_getnumobjects_write, NULL }, + {0x1007, ptp_getobjecthandles_write, NULL }, + {0x1008, ptp_getobjectinfo_write, NULL }, + {0x1009, ptp_getobject_write, NULL }, + {0x100A, ptp_getthumb_write, NULL }, + {0x100B, ptp_deleteobject_write, NULL }, + {0x100E, ptp_initiatecapture_write, NULL }, + {0x1014, ptp_getdevicepropdesc_write, NULL }, + {0x1015, ptp_getdevicepropvalue_write, NULL }, + {0x1016, ptp_setdevicepropvalue_write, ptp_setdevicepropvalue_write_data }, + {0x9999, ptp_vusb_write, NULL }, +}; + +static struct ptp_function ptp_functions_nikon_dslr[] = { + {0x90c2, ptp_nikon_setcontrolmode_write, NULL }, +}; + +static struct ptp_map_functions { + vcameratype type; + struct ptp_function *functions; + unsigned int nroffunctions; +} ptp_functions[] = { + {GENERIC_PTP, ptp_functions_generic, sizeof(ptp_functions_generic)/sizeof(ptp_functions_generic[0])}, + {NIKON_D750, ptp_functions_nikon_dslr, sizeof(ptp_functions_nikon_dslr)/sizeof(ptp_functions_nikon_dslr[0])}, +}; + +typedef union _PTPPropertyValue { + char *str; /* common string, malloced */ + uint8_t u8; + int8_t i8; + uint16_t u16; + int16_t i16; + uint32_t u32; + int32_t i32; + uint64_t u64; + int64_t i64; + /* XXXX: 128 bit signed and unsigned missing */ + struct array { + uint32_t count; + union _PTPPropertyValue *v; /* malloced, count elements */ + } a; +} PTPPropertyValue; + +struct _PTPPropDescRangeForm { + PTPPropertyValue MinimumValue; + PTPPropertyValue MaximumValue; + PTPPropertyValue StepSize; +}; +typedef struct _PTPPropDescRangeForm PTPPropDescRangeForm; + +/* Property Describing Dataset, Enum Form */ + +struct _PTPPropDescEnumForm { + uint16_t NumberOfValues; + PTPPropertyValue *SupportedValue; /* malloced */ +}; +typedef struct _PTPPropDescEnumForm PTPPropDescEnumForm; + +/* Device Property Describing Dataset (DevicePropDesc) */ + +struct _PTPDevicePropDesc { + uint16_t DevicePropertyCode; + uint16_t DataType; + uint8_t GetSet; + PTPPropertyValue FactoryDefaultValue; + PTPPropertyValue CurrentValue; + uint8_t FormFlag; + union { + PTPPropDescEnumForm Enum; + PTPPropDescRangeForm Range; + } FORM; +}; +typedef struct _PTPDevicePropDesc PTPDevicePropDesc; + +static int ptp_battery_getdesc(vcamera*,PTPDevicePropDesc*); +static int ptp_battery_getvalue(vcamera*,PTPPropertyValue*); +static int ptp_imagesize_getdesc(vcamera*,PTPDevicePropDesc*); +static int ptp_imagesize_getvalue(vcamera*,PTPPropertyValue*); +static int ptp_datetime_getdesc(vcamera*,PTPDevicePropDesc*); +static int ptp_datetime_getvalue(vcamera*,PTPPropertyValue*); +static int ptp_datetime_setvalue(vcamera*,PTPPropertyValue*); +static int ptp_shutterspeed_getdesc(vcamera*,PTPDevicePropDesc*); +static int ptp_shutterspeed_getvalue(vcamera*,PTPPropertyValue*); +static int ptp_shutterspeed_setvalue(vcamera*,PTPPropertyValue*); +static int ptp_fnumber_getdesc(vcamera*,PTPDevicePropDesc*); +static int ptp_fnumber_getvalue(vcamera*,PTPPropertyValue*); +static int ptp_fnumber_setvalue(vcamera*,PTPPropertyValue*); +static int ptp_exposurebias_getdesc(vcamera*,PTPDevicePropDesc*); +static int ptp_exposurebias_getvalue(vcamera*,PTPPropertyValue*); +static int ptp_exposurebias_setvalue(vcamera*,PTPPropertyValue*); + +static struct ptp_property { + int code; + int (*getdesc )(vcamera *cam, PTPDevicePropDesc*); + int (*getvalue)(vcamera *cam, PTPPropertyValue*); + int (*setvalue)(vcamera *cam, PTPPropertyValue*); +} ptp_properties[] = { + {0x5001, ptp_battery_getdesc, ptp_battery_getvalue, NULL }, + {0x5003, ptp_imagesize_getdesc, ptp_imagesize_getvalue, NULL }, + {0x5007, ptp_fnumber_getdesc, ptp_fnumber_getvalue, ptp_fnumber_setvalue }, + {0x5010, ptp_exposurebias_getdesc, ptp_exposurebias_getvalue, ptp_exposurebias_setvalue }, + {0x500d, ptp_shutterspeed_getdesc, ptp_shutterspeed_getvalue, ptp_shutterspeed_setvalue }, + {0x5011, ptp_datetime_getdesc, ptp_datetime_getvalue, ptp_datetime_setvalue }, +}; + +struct ptp_dirent { + uint32_t id; + char *name; + char *fsname; + struct stat stbuf; + struct ptp_dirent *parent; + struct ptp_dirent *next; +}; + +static struct ptp_dirent *first_dirent = NULL; +static uint32_t ptp_objectid = 0; + +static void +read_directories(char *path, struct ptp_dirent *parent) { + struct ptp_dirent *cur; + gp_system_dir dir; + gp_system_dirent de; + + dir = gp_system_opendir(path); + if (!dir) return; + while ((de=gp_system_readdir(dir))) { + if (!strcmp(gp_system_filename(de),".")) continue; + if (!strcmp(gp_system_filename(de),"..")) continue; + + cur = malloc(sizeof(struct ptp_dirent)); + if (!cur) break; + cur->name = strdup(gp_system_filename(de)); + cur->fsname = malloc(strlen(path)+1+strlen(gp_system_filename(de))+1); + strcpy(cur->fsname,path); + strcat(cur->fsname,"/"); + strcat(cur->fsname,gp_system_filename(de)); + cur->id = ptp_objectid++; + cur->next = first_dirent; + cur->parent = parent; + first_dirent = cur; + if (-1 == stat(cur->fsname, &cur->stbuf)) + continue; + if (S_ISDIR(cur->stbuf.st_mode)) + read_directories(cur->fsname, cur); /* recurse! */ + } + gp_system_closedir(dir); +} + +static void +free_dirent(struct ptp_dirent *ent) { + free (ent->name); + free (ent->fsname); + free (ent); +} + +static void +read_tree(char *path) { + struct ptp_dirent *root = NULL, *dir, *dcim = NULL; + + if (first_dirent) + return; + + first_dirent = malloc(sizeof(struct ptp_dirent)); + first_dirent->name = strdup(""); + first_dirent->fsname = strdup(path); + first_dirent->id = ptp_objectid++; + first_dirent->next = NULL; + stat(first_dirent->fsname, &first_dirent->stbuf); /* assuming it works */ + root = first_dirent; + read_directories(path,first_dirent); + + /* See if we have a DCIM directory, if not, create one. */ + dir = first_dirent; + while (dir) { + if (!strcmp(dir->name,"DCIM") && dir->parent && !dir->parent->id) + dcim = dir; + dir = dir->next; + } + if (!dcim) { + dcim = malloc(sizeof(struct ptp_dirent)); + dcim->name = strdup(""); + dcim->fsname = strdup(path); + dcim->id = ptp_objectid++; + dcim->next = first_dirent; + dcim->parent = root; + stat(dcim->fsname, &dcim->stbuf); /* assuming it works */ + first_dirent = dcim; + } +} + +static int +ptp_nikon_setcontrolmode_write(vcamera *cam, ptpcontainer *ptp) { + CHECK_PARAM_COUNT(1); + + if ((ptp->params[0] != 0) && (ptp->params[0] != 1)) { + gp_log (GP_LOG_ERROR,__FUNCTION__,"controlmode must not be 0 or 1, is %d", ptp->params[0]); + ptp_response (cam, PTP_RC_InvalidParameter, 0); + return 1; + } + ptp_response (cam,PTP_RC_OK,0); + return 1; +} + +static int +ptp_opensession_write(vcamera *cam, ptpcontainer *ptp) { + CHECK_PARAM_COUNT(1); + + if (ptp->params[0] == 0) { + gp_log (GP_LOG_ERROR,__FUNCTION__,"session must not be 0, is %d", ptp->params[0]); + ptp_response (cam, PTP_RC_InvalidParameter, 0); + return 1; + } + if (cam->session) { + gp_log (GP_LOG_ERROR,__FUNCTION__,"session is already open"); + ptp_response (cam, PTP_RC_SessionAlreadyOpened, 0); + return 1; + } + cam->session = ptp->params[0]; + ptp_response (cam,PTP_RC_OK,0); + return 1; +} + +static int +ptp_closesession_write(vcamera *cam, ptpcontainer *ptp) { + CHECK_PARAM_COUNT(0); + CHECK_SEQUENCE_NUMBER(); + + if (!cam->session) { + gp_log (GP_LOG_ERROR,__FUNCTION__,"session is not open"); + ptp_response(cam, PTP_RC_SessionAlreadyOpened, 0); + return 1; + } + cam->session = 0; + ptp_response(cam,PTP_RC_OK,0); + return 1; +} + +static int +ptp_deviceinfo_write(vcamera *cam, ptpcontainer *ptp) { + unsigned char *data; + int x = 0, i, cnt, vendor; + uint16_t *opcodes, *devprops; + uint16_t imageformats[1]; + uint16_t events[5]; + + CHECK_PARAM_COUNT(0); + + /* Session does not need to be open for GetDeviceInfo */ + + /* Getdeviceinfo is special. it can be called with transid 0 outside of the session. */ + if ((ptp->seqnr != 0) && (ptp->seqnr != cam->seqnr)) { + /* not clear if normal cameras react like this */ \ + gp_log (GP_LOG_ERROR, __FUNCTION__, "seqnr %d was sent, expected was %d", ptp->seqnr, cam->seqnr);\ + ptp_response(cam,PTP_RC_GeneralError,0); \ + return 1; + } + data = malloc(2000); + + x += put_16bit_le(data+x,100); /* StandardVersion */ + switch (cam->type) { + case NIKON_D750: + x += put_32bit_le(data+x,0xa); /* VendorExtensionID */ + x += put_16bit_le(data+x,100); /* VendorExtensionVersion */ + break; + default: + x += put_32bit_le(data+x,0); /* VendorExtensionID */ + x += put_16bit_le(data+x,0); /* VendorExtensionVersion */ + break; + } + x += put_string(data+x,"G-V: 1.0;"); /* VendorExtensionDesc */ + x += put_16bit_le(data+x,0); /* FunctionalMode */ + + cnt = 0; + for (i = 0;itype) { + vendor = i; + cnt += ptp_functions[i].nroffunctions; + } + } + opcodes = malloc(cnt*sizeof(uint16_t)); + + for (i=0;itype != GENERIC_PTP) { + for (i=0;inparams < 1) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "parameter count %d", ptp->nparams); + ptp_response (cam, PTP_RC_InvalidParameter, 0); + return 1; + } + if ((ptp->params[0] != 0xffffffff) && (ptp->params[0] != 0x00010001)) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "storage id 0x%08x unknown", ptp->params[0]); + ptp_response (cam, PTP_RC_InvalidStorageId, 0); + return 1; + } + if (ptp->nparams >= 2) { + if (ptp->params[1] != 0) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "currently can not handle OFC selection (0x%04x)", ptp->params[1]); + ptp_response (cam, PTP_RC_SpecificationByFormatUnsupported, 0); + return 1; + } + } + if (ptp->nparams >= 3) { + mode = ptp->params[2]; + if ((mode != 0) && (mode != 0xffffffff)) { + cur = first_dirent; + while (cur) { + if (cur->id == mode) break; + cur = cur->next; + } + if (!cur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "requested subtree of (0x%08x), but no such handle", mode); + ptp_response (cam, PTP_RC_InvalidObjectHandle, 0); + return 1; + } + if (!S_ISDIR(cur->stbuf.st_mode)) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "requested subtree of (0x%08x), but this is no asssocation", mode); + ptp_response (cam, PTP_RC_InvalidParentObject, 0); + return 1; + } + } + } + + cnt = 0; cur = first_dirent; + while (cur) { + if (cur->id) { /* do not include 0 entry */ + switch (mode) { + case 0: /* all objects recursive on device */ + cnt++; + break; + case 0xffffffff: /* only root dir */ + if (cur->parent->id == 0) + cnt++; + break; + default: /* single level directory below this handle */ + if (cur->parent->id == mode) + cnt++; + break; + } + } + cur = cur->next; + } + + ptp_response (cam, PTP_RC_OK, 1, cnt); + return 1; +} + +static int +ptp_getobjecthandles_write(vcamera *cam, ptpcontainer *ptp) { + unsigned char *data; + int x = 0, cnt; + struct ptp_dirent *cur; + uint32_t mode = 0; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + + if (ptp->nparams < 1) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "parameter count %d", ptp->nparams); + ptp_response (cam, PTP_RC_InvalidParameter, 0); + return 1; + } + if ((ptp->params[0] != 0xffffffff) && (ptp->params[0] != 0x00010001)) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "storage id 0x%08x unknown", ptp->params[0]); + ptp_response (cam, PTP_RC_InvalidStorageId, 0); + return 1; + } + if (ptp->nparams >= 2) { + if (ptp->params[1] != 0) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "currently can not handle OFC selection (0x%04x)", ptp->params[1]); + ptp_response (cam, PTP_RC_SpecificationByFormatUnsupported, 0); + return 1; + } + } + if (ptp->nparams >= 3) { + mode = ptp->params[2]; + if ((mode != 0) && (mode != 0xffffffff)) { + cur = first_dirent; + while (cur) { + if (cur->id == mode) break; + cur = cur->next; + } + if (!cur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "requested subtree of (0x%08x), but no such handle", mode); + ptp_response (cam, PTP_RC_InvalidObjectHandle, 0); + return 1; + } + if (!S_ISDIR(cur->stbuf.st_mode)) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "requested subtree of (0x%08x), but this is no asssocation", mode); + ptp_response (cam, PTP_RC_InvalidParentObject, 0); + return 1; + } + } + } + + cnt = 0; cur = first_dirent; + while (cur) { + if (cur->id) { /* do not include 0 entry */ + switch (mode) { + case 0: /* all objects recursive on device */ + cnt++; + break; + case 0xffffffff: /* only root dir */ + if (cur->parent->id == 0) + cnt++; + break; + default: /* single level directory below this handle */ + if (cur->parent->id == mode) + cnt++; + break; + } + } + cur = cur->next; + } + + data = malloc(4+4*cnt); + x = put_32bit_le(data + x,cnt); + cur = first_dirent; + while (cur) { + if (cur->id) { /* do not include 0 entry */ + switch (mode) { + case 0: /* all objects recursive on device */ + x += put_32bit_le(data+x, cur->id); + break; + case 0xffffffff: /* only root dir */ + if (cur->parent->id == 0) + x += put_32bit_le(data+x, cur->id); + break; + default: /* single level directory below this handle */ + if (cur->parent->id == mode) + x += put_32bit_le(data+x, cur->id); + break; + } + } + cur = cur->next; + } + ptp_senddata(cam,0x1007,data,x); + free (data); + ptp_response(cam,PTP_RC_OK,0); + return 1; +} + +static int +ptp_getstorageids_write(vcamera *cam, ptpcontainer *ptp) { + unsigned char *data; + int x = 0; + uint32_t sids[1]; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + CHECK_PARAM_COUNT(0); + + data = malloc(200); + + sids[0] = 0x00010001; + x = put_32bit_le_array (data, sids, 1); + + ptp_senddata (cam, 0x1004, data, x); + free (data); + ptp_response(cam,PTP_RC_OK,0); + return 1; +} + +static int +ptp_getstorageinfo_write(vcamera *cam, ptpcontainer *ptp) { + unsigned char *data; + int x = 0; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + CHECK_PARAM_COUNT(1); + + if (ptp->params[0] != 0x00010001) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "invalid storage id 0x%08x", ptp->params[0]); + ptp_response(cam,PTP_RC_InvalidStorageId,0); + return 1; + } + + data = malloc(200); + x += put_16bit_le (data+x, 3); /* StorageType: Fixed RAM */ + x += put_16bit_le (data+x, 3); /* FileSystemType: Generic Hierarchical */ + x += put_16bit_le (data+x, 2); /* AccessCapability: R/O with object deletion */ + x += put_64bit_le (data+x, 0x42424242); /* MaxCapacity */ + x += put_64bit_le (data+x, 0x21212121); /* FreeSpaceInBytes */ + x += put_32bit_le (data+x, 150); /* FreeSpaceInImages ... around 150 */ + x += put_string (data+x, "GPVC Storage"); /* StorageDescription */ + x += put_string (data+x, "GPVCS Label"); /* VolumeLabel */ + + ptp_senddata (cam, 0x1005, data, x); + free (data); + ptp_response(cam, PTP_RC_OK, 0); + return 1; +} + +static int +ptp_getobjectinfo_write(vcamera *cam, ptpcontainer *ptp) { + struct ptp_dirent *cur; + unsigned char *data; + int x = 0; + uint16_t ofc, thumbofc = 0; + int thumbwidth = 0, thumbheight = 0, thumbsize = 0; + int imagewidth = 0, imageheight = 0, imagebitdepth = 0; + struct tm *tm; + time_t xtime; + char xdate[40]; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + CHECK_PARAM_COUNT(1); + + cur = first_dirent; + while (cur) { + if (cur->id == ptp->params[0]) + break; + cur = cur->next; + } + if (!cur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "invalid object id 0x%08x", ptp->params[0]); + ptp_response(cam,PTP_RC_InvalidObjectHandle,0); + return 1; + } + data = malloc(2000); + x += put_32bit_le (data+x, 0x00010001); /* StorageID */ + /* ObjectFormatCode */ + ofc = 0x3000; + if (S_ISDIR(cur->stbuf.st_mode)) { + ofc = 0x3001; + } else { + if (strstr(cur->name,".JPG") || strstr(cur->name,".jpg")) + ofc = 0x3801; + if (strstr(cur->name,".GIF") || strstr(cur->name,".gif")) + ofc = 0x3807; + if (strstr(cur->name,".PNG") || strstr(cur->name,".png")) + ofc = 0x380B; + if (strstr(cur->name,".DNG") || strstr(cur->name,".dng")) + ofc = 0x3811; + if (strstr(cur->name,".TXT") || strstr(cur->name,".txt")) + ofc = 0x3004; + if (strstr(cur->name,".HTML") || strstr(cur->name,".html")) + ofc = 0x3005; + if (strstr(cur->name,".MP3") || strstr(cur->name,".mp3")) + ofc = 0x3009; + if (strstr(cur->name,".AVI") || strstr(cur->name,".avi")) + ofc = 0x300A; + if ( strstr(cur->name,".MPG") || strstr(cur->name,".mpg") || + strstr(cur->name,".MPEG") || strstr(cur->name,".mpeg") + ) + ofc = 0x300B; + } + +#ifdef HAVE_LIBEXIF + if (ofc == 0x3801) { /* We are jpeg ... look into the exif data */ + ExifData *ed; + ExifEntry *e; + int fd; + unsigned char *filedata; + + filedata = malloc(cur->stbuf.st_size); + fd = open(cur->fsname,O_RDONLY); + if (fd == -1) { + free (filedata); + free (data); + gp_log (GP_LOG_ERROR,__FUNCTION__, "could not open %s", cur->fsname); + ptp_response(cam,PTP_RC_GeneralError,0); + return 1; + } + if (cur->stbuf.st_size != read(fd, filedata, cur->stbuf.st_size)) { + free (filedata); + free (data); + close (fd); + gp_log (GP_LOG_ERROR,__FUNCTION__, "could not read data of %s", cur->fsname); + ptp_response(cam,PTP_RC_GeneralError,0); + return 1; + } + close (fd); + + ed = exif_data_new_from_data ((unsigned char*)filedata, cur->stbuf.st_size); + if (ed) { + if (ed->data) { + thumbofc = 0x3808; + thumbsize = ed->size; + } + e = exif_data_get_entry (ed, EXIF_TAG_PIXEL_X_DIMENSION); + if (e) { + gp_log (GP_LOG_DEBUG, __FUNCTION__ , "pixel x dim format is %d", e->format); + if (e->format == EXIF_FORMAT_SHORT) { + imagewidth = exif_get_short (e->data, exif_data_get_byte_order (ed)); + } + } + e = exif_data_get_entry (ed, EXIF_TAG_PIXEL_Y_DIMENSION); + if (e) { + gp_log (GP_LOG_DEBUG, __FUNCTION__ , "pixel y dim format is %d", e->format); + if (e->format == EXIF_FORMAT_SHORT) { + imageheight = exif_get_short (e->data, exif_data_get_byte_order (ed)); + } + } + /* FIXME: potentially could find out more about thumbnail too */ + } + exif_data_unref (ed); + free (filedata); + } +#endif + x += put_16bit_le (data+x, ofc); + x += put_16bit_le (data+x, 0); /* ProtectionStatus, no protection */ + x += put_32bit_le (data+x, cur->stbuf.st_size); /* ObjectCompressedSize */ + x += put_16bit_le (data+x, thumbofc); /* ThumbFormat */ + x += put_32bit_le (data+x, thumbsize); /* ThumbCompressedSize */ + x += put_32bit_le (data+x, thumbwidth); /* ThumbPixWidth */ + x += put_32bit_le (data+x, thumbheight); /* ThumbPixHeight */ + x += put_32bit_le (data+x, imagewidth); /* ImagePixWidth */ + x += put_32bit_le (data+x, imageheight); /* ImagePixHeight */ + x += put_32bit_le (data+x, imagebitdepth); /* ImageBitDepth */ + x += put_32bit_le (data+x, cur->parent->id); /* ParentObject */ + /* AssociationType */ + if (S_ISDIR(cur->stbuf.st_mode)) { + x += put_16bit_le (data+x, 1); /* GenericFolder */ + x += put_32bit_le (data+x, 0); /* unused */ + } else { + x += put_16bit_le (data+x, 0); /* Undefined */ + x += put_32bit_le (data+x, 0); /* Undefined */ + } + x += put_32bit_le (data+x, 0); /* SequenceNumber */ + x += put_string (data+x, cur->name); /* Filename */ + + xtime = cur->stbuf.st_ctime; + tm = gmtime(&xtime); + sprintf(xdate,"%04d%02d%02dT%02d%02d%02d",tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,tm->tm_hour,tm->tm_min,tm->tm_sec); + x += put_string (data+x, xdate); /* CreationDate */ + xtime = cur->stbuf.st_mtime; + tm = gmtime(&xtime); + sprintf(xdate,"%04d%02d%02dT%02d%02d%02d",tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,tm->tm_hour,tm->tm_min,tm->tm_sec); + x += put_string (data+x, xdate); /* ModificatioDate */ + + x += put_string (data+x, "keyword"); /* Keywords */ + + ptp_senddata (cam, 0x1008, data, x); + free (data); + ptp_response(cam, PTP_RC_OK, 0); + return 1; +} + +static int +ptp_getobject_write(vcamera *cam, ptpcontainer *ptp) { + unsigned char *data; + struct ptp_dirent *cur; + int fd; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + CHECK_PARAM_COUNT(1); + + cur = first_dirent; + while (cur) { + if (cur->id == ptp->params[0]) break; + cur = cur->next; + } + if (!cur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "invalid object id 0x%08x", ptp->params[0]); + ptp_response(cam,PTP_RC_InvalidObjectHandle,0); + return 1; + } + data = malloc(cur->stbuf.st_size); + fd = open(cur->fsname,O_RDONLY); + if (fd == -1) { + free (data); + gp_log (GP_LOG_ERROR,__FUNCTION__, "could not open %s", cur->fsname); + ptp_response(cam,PTP_RC_GeneralError,0); + return 1; + } + if (cur->stbuf.st_size != read(fd, data, cur->stbuf.st_size)) { + free (data); + close (fd); + gp_log (GP_LOG_ERROR,__FUNCTION__, "could not read data of %s", cur->fsname); + ptp_response(cam,PTP_RC_GeneralError,0); + return 1; + } + close (fd); + + ptp_senddata (cam, 0x1009, data, cur->stbuf.st_size); + free (data); + ptp_response (cam, PTP_RC_OK, 0); + return 1; +} + +static int +ptp_getthumb_write(vcamera *cam, ptpcontainer *ptp) { + unsigned char *data; + struct ptp_dirent *cur; + int fd; +#ifdef HAVE_LIBEXIF + ExifData *ed; +#endif + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + CHECK_PARAM_COUNT(1); + + cur = first_dirent; + while (cur) { + if (cur->id == ptp->params[0]) break; + cur = cur->next; + } + if (!cur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "invalid object id 0x%08x", ptp->params[0]); + ptp_response(cam,PTP_RC_InvalidObjectHandle,0); + return 1; + } + data = malloc(cur->stbuf.st_size); + fd = open(cur->fsname,O_RDONLY); + if (fd == -1) { + free (data); + gp_log (GP_LOG_ERROR,__FUNCTION__, "could not open %s", cur->fsname); + ptp_response(cam,PTP_RC_GeneralError,0); + return 1; + } + if (cur->stbuf.st_size != read(fd, data, cur->stbuf.st_size)) { + free (data); + close (fd); + gp_log (GP_LOG_ERROR,__FUNCTION__, "could not read data of %s", cur->fsname); + ptp_response(cam,PTP_RC_GeneralError,0); + return 1; + } + close (fd); + +#ifdef HAVE_LIBEXIF + ed = exif_data_new_from_data ((unsigned char*)data, cur->stbuf.st_size); + if (!ed) { + gp_log (GP_LOG_ERROR, __FUNCTION__, "Could not parse EXIF data"); + free (data); + ptp_response(cam,PTP_RC_NoThumbnailPresent,0); + return 1; + } + if (!ed->data) { + gp_log (GP_LOG_ERROR, __FUNCTION__, "EXIF data does not contain a thumbnail"); + free (data); + ptp_response(cam,PTP_RC_NoThumbnailPresent,0); + exif_data_unref (ed); + return 1; + } + /* + * We found a thumbnail in EXIF data! Those + * thumbnails are always JPEG. Set up the file. + */ + ptp_senddata (cam, 0x100A, ed->data, ed->size); + exif_data_unref (ed); + + ptp_response (cam, PTP_RC_OK, 0); +#else + gp_log (GP_LOG_ERROR, __FUNCTION__, "Cannot get thumbnail without libexif, lying about missing thumbnail"); + ptp_response(cam,PTP_RC_NoThumbnailPresent,0); +#endif + free (data); + return 1; +} + +static int +ptp_initiatecapture_write(vcamera *cam, ptpcontainer *ptp) { + struct ptp_dirent *cur, *newcur, *dir, *dcim = NULL; + static int capcnt = 98; + char buf[10]; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + CHECK_PARAM_COUNT(2); + + if ((ptp->params[0] != 0) && (ptp->params[0] != 0x00010001)) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "invalid storage id 0x%08x", ptp->params[0]); + ptp_response (cam, PTP_RC_StoreNotAvailable, 0); + return 1; + } + if ((ptp->params[1] != 0) && (ptp->params[1] != 0x3801)) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "invalid objectformat code id 0x%04x", ptp->params[1]); + ptp_response (cam, PTP_RC_InvalidObjectFormatCode, 0); + return 1; + } + if (capcnt > 150) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "Declaring store full at picture 151"); + ptp_response (cam, PTP_RC_StoreFull, 0); + return 1; + } + + cur = first_dirent; + while (cur) { + if (strstr (cur->name, ".jpg") || strstr (cur->name, ".JPG")) + break; + cur = cur->next; + } + if (!cur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "I do not have a JPG file in the store, can not proceed"); + ptp_response (cam, PTP_RC_GeneralError, 0); + return 1; + } + dir = first_dirent; + while (dir) { + if (!strcmp(dir->name,"DCIM") && dir->parent && !dir->parent->id) + dcim = dir; + dir = dir->next; + } + + cur = first_dirent; + while (cur) { + if (strstr (cur->name, ".jpg") || strstr (cur->name, ".JPG")) + break; + cur = cur->next; + } + if (!cur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "I do not have a JPG file in the store, can not proceed"); + ptp_response (cam, PTP_RC_GeneralError, 0); + return 1; + } + dir = first_dirent; + while (dir) { + if (!strcmp(dir->name,"DCIM") && dir->parent && !dir->parent->id) + dcim = dir; + dir = dir->next; + } + /* nnnGPHOT directories, where nnn is 100-999. (See DCIM standard.) */ + sprintf(buf, "%03dGPHOT", 100 + ((capcnt / 100) % 900)); + dir = first_dirent; + while (dir) { + if (!strcmp (dir->name, buf) && (dir->parent == dcim)) + break; + dir = dir->next; + } + if (!dir) { + dir = malloc (sizeof(struct ptp_dirent)); + dir->id = ++ptp_objectid; + dir->fsname = "virtual"; + dir->stbuf = dcim->stbuf; /* only the S_ISDIR flag is used */ + dir->parent = dcim; + dir->next = first_dirent; + dir->name = strdup (buf); + first_dirent = dir; + /* Emit ObjectAdded event for the created folder */ + ptp_inject_interrupt (cam, 80, 0x4002, 1, ptp_objectid, cam->seqnr); /* objectadded */ + } + if (capcnt++ == 150) { + /* The start of the operation succeeds, but the memory runs full during it. */ + ptp_inject_interrupt (cam, 100, 0x400A, 1, ptp_objectid, cam->seqnr); /* storefull */ + ptp_response (cam, PTP_RC_OK, 0); + return 1; + } + + newcur = malloc (sizeof(struct ptp_dirent)); + newcur->id = ++ptp_objectid; + newcur->fsname = strdup(cur->fsname); + newcur->stbuf = cur->stbuf; + newcur->parent = dir; + newcur->next = first_dirent; + newcur->name = malloc(8+3+1+1); + sprintf(newcur->name,"GPH_%04d.JPG", capcnt++); + first_dirent = newcur; + + ptp_inject_interrupt (cam, 100, 0x4002, 1, ptp_objectid, cam->seqnr); /* objectadded */ + ptp_inject_interrupt (cam, 120, 0x400d, 0, 0, cam->seqnr); /* capturecomplete */ + ptp_response (cam, PTP_RC_OK, 0); + return 1; +} + +static int +ptp_deleteobject_write(vcamera *cam, ptpcontainer *ptp) { + struct ptp_dirent *cur, *xcur; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + + if (ptp->nparams < 1) { + gp_log (GP_LOG_ERROR, __FUNCTION__, "parameter count %d", ptp->nparams); + ptp_response (cam, PTP_RC_InvalidParameter, 0); + return 1; + } + if (ptp->params[0] == 0xffffffff) { /* delete all mode */ + gp_log (GP_LOG_DEBUG, __FUNCTION__, "delete all"); + cur = first_dirent; + + while (cur) { + xcur = cur->next; + free_dirent(cur); + cur = xcur; + } + first_dirent = NULL; + ptp_response (cam, PTP_RC_OK, 0); + return 1; + } + + if ((ptp->nparams == 2) && (ptp->params[1] != 0)) { + gp_log (GP_LOG_ERROR, __FUNCTION__, "single object delete, but ofc is 0x%08x", ptp->params[1]); + ptp_response (cam, PTP_RC_InvalidParameter, 0); + return 1; + } + /* for associations this even means recursive deletion */ + + cur = first_dirent; + while (cur) { + if (cur->id == ptp->params[0]) break; + cur = cur->next; + } + if (!cur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "invalid object id 0x%08x", ptp->params[0]); + ptp_response(cam,PTP_RC_InvalidObjectHandle,0); + return 1; + } + if (S_ISDIR(cur->stbuf.st_mode)) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "FIXME: not yet deleting directories"); + ptp_response(cam,PTP_RC_ObjectWriteProtected,0); + return 1; + } + if (cur == first_dirent) { + first_dirent = cur->next; + free_dirent (cur); + } else { + xcur = first_dirent; + while (xcur) { + if (xcur->next == cur) { + xcur->next = xcur->next->next; + free_dirent (cur); + break; + } + xcur = xcur->next; + } + } + ptp_response (cam, PTP_RC_OK, 0); + return 1; +} + + +static int +put_propval (unsigned char *data, uint16_t type, PTPPropertyValue *val) { + switch (type) { + case 0x1: return put_8bit_le (data, val->i8); + case 0x2: return put_8bit_le (data, val->u8); + case 0x3: return put_16bit_le (data, val->i16); + case 0x4: return put_16bit_le (data, val->u16); + case 0x6: return put_32bit_le (data, val->u32); + case 0xffff: return put_string (data, val->str); + default: gp_log (GP_LOG_ERROR, __FUNCTION__, "unhandled datatype %d", type); + return 0; + } + return 0; +} + +static int +get_propval (unsigned char *data, unsigned int len, uint16_t type, PTPPropertyValue *val) { +#define CHECK_SIZE(x) if (len < x) return 0; + switch (type) { + case 0x1: CHECK_SIZE(1); + val->i8 = get_i8bit_le (data); + return 1; + case 0x2: CHECK_SIZE(1); + val->u8 = get_8bit_le (data); + return 1; + case 0x3: CHECK_SIZE(2); + val->i16 = get_16bit_le (data); + return 1; + case 0x4: CHECK_SIZE(2); + val->u16 = get_16bit_le (data); + return 1; + case 0x6: CHECK_SIZE(4); + val->u32 = get_32bit_le (data); + return 1; + case 0xffff: { + int slen; + CHECK_SIZE(1); + slen = get_8bit_le (data); + CHECK_SIZE(1+slen*2); + val->str = get_string (data); + return 1+slen*2; + } + default: gp_log (GP_LOG_ERROR, __FUNCTION__, "unhandled datatype %d", type); + return 0; + } + return 0; +#undef CHECK_SIZE +} + +static int +ptp_getdevicepropdesc_write(vcamera *cam, ptpcontainer *ptp) { + int i, x = 0; + unsigned char *data; + PTPDevicePropDesc desc; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + CHECK_PARAM_COUNT(1); + + for (i=0;iparams[0]) + break; + } + if (i == sizeof (ptp_properties)/sizeof (ptp_properties[0])) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "deviceprop 0x%04x not found", ptp->params[0]); + ptp_response (cam, PTP_RC_DevicePropNotSupported, 0); + return 1; + } + data = malloc(2000); + ptp_properties[i].getdesc (cam, &desc); + + x += put_16bit_le (data+x, desc.DevicePropertyCode); + x += put_16bit_le (data+x, desc.DataType); + x += put_8bit_le (data+x, desc.GetSet); + x += put_propval (data+x, desc.DataType, &desc.FactoryDefaultValue); + x += put_propval (data+x, desc.DataType, &desc.CurrentValue); + x += put_8bit_le (data+x, desc.FormFlag); + switch (desc.FormFlag) { + case 0: break; + case 1: /* range */ + x += put_propval (data+x, desc.DataType, &desc.FORM.Range.MinimumValue); + x += put_propval (data+x, desc.DataType, &desc.FORM.Range.MaximumValue); + x += put_propval (data+x, desc.DataType, &desc.FORM.Range.StepSize); + break; + case 2: /* ENUM */ + x += put_16bit_le (data+x, desc.FORM.Enum.NumberOfValues); + for (i=0;iparams[0]) + break; + } + if (i == sizeof (ptp_properties)/sizeof (ptp_properties[0])) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "deviceprop 0x%04x not found", ptp->params[0]); + ptp_response (cam, PTP_RC_DevicePropNotSupported, 0); + return 1; + } + data = malloc(2000); + ptp_properties[i].getdesc (cam, &desc); + ptp_properties[i].getvalue (cam, &val); + x = put_propval (data+x, desc.DataType, &val); + + ptp_senddata (cam, 0x1015, data, x); + free (data); + + ptp_response (cam, PTP_RC_OK, 0); + return 1; +} + +static int +ptp_setdevicepropvalue_write(vcamera *cam, ptpcontainer *ptp) { + int i; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + CHECK_PARAM_COUNT(1); + + for (i=0;iparams[0]) + break; + } + if (i == sizeof (ptp_properties)/sizeof (ptp_properties[0])) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "deviceprop 0x%04x not found", ptp->params[0]); + ptp_response (cam, PTP_RC_DevicePropNotSupported, 0); + return 1; + } + /* so ... we wait for the data phase */ + return 1; +} + +/* magic opcode for our driver, to inject commands */ +static int +ptp_vusb_write(vcamera *cam, ptpcontainer *ptp) { + static int capcnt = 98; + static int timeout = 1; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + if (ptp->nparams < 1) { + gp_log (GP_LOG_ERROR, __FUNCTION__, "parameter count %d", ptp->nparams); + ptp_response (cam, PTP_RC_InvalidParameter, 0); + return 1; + } + if (ptp->nparams >= 2) { + timeout = ptp->params[1]; + gp_log (GP_LOG_DEBUG, __FUNCTION__, "new timeout %d", timeout); + } else + timeout++; + + switch (ptp->params[0]) { + case 0: {/* add a new image after 1 second */ + struct ptp_dirent *cur, *newcur, *dir, *dcim = NULL; + char buf[10]; + + cur = first_dirent; + while (cur) { + if (strstr (cur->name, ".jpg") || strstr (cur->name, ".JPG")) + break; + cur = cur->next; + } + if (!cur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "I do not have a JPG file in the store, can not proceed"); + ptp_response (cam, PTP_RC_GeneralError, 0); + return 1; + } + dir = first_dirent; + while (dir) { + if (!strcmp(dir->name,"DCIM") && dir->parent && !dir->parent->id) + dcim = dir; + dir = dir->next; + } + + cur = first_dirent; + while (cur) { + if (strstr (cur->name, ".jpg") || strstr (cur->name, ".JPG")) + break; + cur = cur->next; + } + if (!cur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "I do not have a JPG file in the store, can not proceed"); + ptp_response (cam, PTP_RC_GeneralError, 0); + return 1; + } + dir = first_dirent; + while (dir) { + if (!strcmp(dir->name,"DCIM") && dir->parent && !dir->parent->id) + dcim = dir; + dir = dir->next; + } + /* nnnGPHOT directories, where nnn is 100-999. (See DCIM standard.) */ + sprintf(buf, "%03dGPHOT", 100 + ((capcnt / 100) % 900)); + dir = first_dirent; + while (dir) { + if (!strcmp (dir->name, buf) && (dir->parent == dcim)) + break; + dir = dir->next; + } + if (!dir) { + dir = malloc (sizeof(struct ptp_dirent)); + dir->id = ++ptp_objectid; + dir->fsname = "virtual"; + dir->stbuf = dcim->stbuf; /* only the S_ISDIR flag is used */ + dir->parent = dcim; + dir->next = first_dirent; + dir->name = strdup (buf); + first_dirent = dir; + /* Emit ObjectAdded event for the created folder */ + ptp_inject_interrupt (cam, 80, 0x4002, 1, ptp_objectid, cam->seqnr); /* objectadded */ + } + + newcur = malloc (sizeof(struct ptp_dirent)); + newcur->id = ++ptp_objectid; + newcur->fsname = strdup(cur->fsname); + newcur->stbuf = cur->stbuf; + newcur->parent = dir; + newcur->next = first_dirent; + newcur->name = malloc(8+3+1+1); + sprintf(newcur->name,"GPH_%04d.JPG", capcnt++); + first_dirent = newcur; + + ptp_inject_interrupt (cam, timeout, 0x4002, 1, ptp_objectid, cam->seqnr); /* objectadded */ + ptp_response (cam, PTP_RC_OK, 0); + break; + } + case 1: {/* remove 1 image from directory */ + struct ptp_dirent **pcur, *cur; + + pcur = &first_dirent; + while (*pcur) { + if (strstr ((*pcur)->name, ".jpg") || strstr ((*pcur)->name, ".JPG")) + break; + pcur = &((*pcur)->next); + } + if (!*pcur) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "I do not have a JPG file in the store, can not proceed"); + ptp_response (cam, PTP_RC_GeneralError, 0); + return 1; + } + ptp_inject_interrupt (cam, timeout, 0x4003, 1, (*pcur)->id, cam->seqnr); /* objectremoved */ + cur = *pcur; + *pcur = (*pcur)->next; + free (cur->name); + free (cur->fsname); + free (cur); + ptp_response (cam, PTP_RC_OK, 0); + break; + } + case 2: /* capture complete */ + ptp_inject_interrupt (cam, timeout, 0x400d, 0, 0, cam->seqnr); /* capturecomplete */ + ptp_response (cam, PTP_RC_OK, 0); + break; + default: + gp_log (GP_LOG_ERROR, __FUNCTION__, "unknown action %d", ptp->params[0]); + ptp_response (cam, PTP_RC_OK, 0); + break; + } + return 1; +} + +static int +ptp_setdevicepropvalue_write_data(vcamera *cam, ptpcontainer *ptp, unsigned char *data, unsigned int len) { + int i; + PTPPropertyValue val; + PTPDevicePropDesc desc; + + CHECK_SEQUENCE_NUMBER(); + CHECK_SESSION(); + CHECK_PARAM_COUNT(1); + + for (i=0;iparams[0]) + break; + } + if (i == sizeof (ptp_properties)/sizeof (ptp_properties[0])) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "deviceprop 0x%04x not found", ptp->params[0]); + /* we emitted the response already in _write */ + return 1; + } + if (!ptp_properties[i].setvalue) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "deviceprop 0x%04x is not settable", ptp->params[0]); + ptp_response (cam, PTP_RC_AccessDenied, 0); + return 1; + } + ptp_properties[i].getdesc(cam, &desc); + if (!get_propval (data, len, desc.DataType, &val)) { + gp_log (GP_LOG_ERROR,__FUNCTION__, "deviceprop 0x%04x is not retrievable", ptp->params[0]); + ptp_response (cam, PTP_RC_InvalidDevicePropFormat, 0); + return 1; + } + ptp_properties[i].setvalue (cam, &val); + ptp_response (cam, PTP_RC_OK, 0); + return 1; +} + + +/************************** Properties *****************************************************/ +static int +ptp_battery_getdesc (vcamera* cam, PTPDevicePropDesc *desc) { + desc->DevicePropertyCode = 0x5001; + desc->DataType = 2; /* uint8 */ + desc->GetSet = 0; /* Get only */ + desc->FactoryDefaultValue.u8 = 50; + desc->CurrentValue.u8 = 50; + desc->FormFlag = 0x01; /* range */ + desc->FORM.Range.MinimumValue.u8= 0; + desc->FORM.Range.MaximumValue.u8= 100; + desc->FORM.Range.StepSize.u8 = 1; + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5001, 0xffffffff); + return 1; +} + +static int +ptp_battery_getvalue (vcamera* cam, PTPPropertyValue *val) { + val->u8 = 50; + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5001, 0xffffffff); + return 1; +} + +static int +ptp_imagesize_getdesc (vcamera* cam, PTPDevicePropDesc *desc) { + desc->DevicePropertyCode = 0x5003; + desc->DataType = 0xffff; /* STR */ + desc->GetSet = 0; /* Get only */ + desc->FactoryDefaultValue.str = strdup("640x480"); + desc->CurrentValue.str = strdup("640x480"); + desc->FormFlag = 0x02; /* enum */ + desc->FORM.Enum.NumberOfValues = 3; + desc->FORM.Enum.SupportedValue = malloc(3*sizeof(desc->FORM.Enum.SupportedValue[0])); + desc->FORM.Enum.SupportedValue[0].str = strdup("640x480"); + desc->FORM.Enum.SupportedValue[1].str = strdup("1024x768"); + desc->FORM.Enum.SupportedValue[2].str = strdup("2048x1536"); + + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5003, 0xffffffff); + return 1; +} + +static int +ptp_imagesize_getvalue (vcamera* cam, PTPPropertyValue *val) { + val->str = strdup("640x480"); + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5003, 0xffffffff); + return 1; +} + +static int +ptp_shutterspeed_getdesc (vcamera* cam, PTPDevicePropDesc *desc) { + desc->DevicePropertyCode = 0x500D; + desc->DataType = 0x0006; /* UINT32 */ + desc->GetSet = 1; /* Get/Set */ + if (!cam->shutterspeed) cam->shutterspeed = 100; /* 1/100 * 10000 */ + desc->FactoryDefaultValue.u32 = cam->shutterspeed; + desc->CurrentValue.u32 = cam->shutterspeed; + desc->FormFlag = 0x02; /* enum */ + desc->FORM.Enum.NumberOfValues = 9; + desc->FORM.Enum.SupportedValue = malloc(desc->FORM.Enum.NumberOfValues*sizeof(desc->FORM.Enum.SupportedValue[0])); + desc->FORM.Enum.SupportedValue[0].u32 = 10000; + desc->FORM.Enum.SupportedValue[1].u32 = 1000; + desc->FORM.Enum.SupportedValue[2].u32 = 500; + desc->FORM.Enum.SupportedValue[3].u32 = 200; + desc->FORM.Enum.SupportedValue[4].u32 = 100; + desc->FORM.Enum.SupportedValue[5].u32 = 50; + desc->FORM.Enum.SupportedValue[6].u32 = 25; + desc->FORM.Enum.SupportedValue[7].u32 = 12; + desc->FORM.Enum.SupportedValue[8].u32 = 1; + + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x500D, 0xffffffff); + return 1; +} + +static int +ptp_shutterspeed_getvalue (vcamera* cam, PTPPropertyValue *val) { + val->u32 = cam->shutterspeed; + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x500d, 0xffffffff); + return 1; +} + +static int +ptp_shutterspeed_setvalue (vcamera* cam, PTPPropertyValue *val) { + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x500d, 0xffffffff); + gp_log (GP_LOG_DEBUG, __FUNCTION__, "got %d as value", val->u32); + cam->shutterspeed = val->u32; + return 1; +} + +static int +ptp_fnumber_getdesc (vcamera* cam, PTPDevicePropDesc *desc) { + desc->DevicePropertyCode = 0x5007; + desc->DataType = 0x0004; /* UINT16 */ + desc->GetSet = 1; /* Get/Set */ + if (!cam->fnumber) cam->fnumber = 280; /* 2.8 * 100 */ + desc->FactoryDefaultValue.u16 = cam->fnumber; + desc->CurrentValue.u16 = cam->fnumber; + desc->FormFlag = 0x02; /* enum */ + desc->FORM.Enum.NumberOfValues = 18; + desc->FORM.Enum.SupportedValue = malloc(desc->FORM.Enum.NumberOfValues*sizeof(desc->FORM.Enum.SupportedValue[0])); + desc->FORM.Enum.SupportedValue[0].u16 = 280; + desc->FORM.Enum.SupportedValue[1].u16 = 350; + desc->FORM.Enum.SupportedValue[2].u16 = 400; + desc->FORM.Enum.SupportedValue[3].u16 = 450; + desc->FORM.Enum.SupportedValue[4].u16 = 500; + desc->FORM.Enum.SupportedValue[5].u16 = 560; + desc->FORM.Enum.SupportedValue[6].u16 = 630; + desc->FORM.Enum.SupportedValue[7].u16 = 710; + desc->FORM.Enum.SupportedValue[8].u16 = 800; + desc->FORM.Enum.SupportedValue[9].u16 = 900; + desc->FORM.Enum.SupportedValue[10].u16 = 1000; + desc->FORM.Enum.SupportedValue[11].u16 = 1100; + desc->FORM.Enum.SupportedValue[12].u16 = 1300; + desc->FORM.Enum.SupportedValue[13].u16 = 1400; + desc->FORM.Enum.SupportedValue[14].u16 = 1600; + desc->FORM.Enum.SupportedValue[15].u16 = 1800; + desc->FORM.Enum.SupportedValue[16].u16 = 2000; + desc->FORM.Enum.SupportedValue[17].u16 = 2200; + + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5007, 0xffffffff); + return 1; +} + +static int +ptp_fnumber_getvalue (vcamera* cam, PTPPropertyValue *val) { + val->u16 = cam->fnumber; + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5007, 0xffffffff); + return 1; +} + +static int +ptp_fnumber_setvalue (vcamera* cam, PTPPropertyValue *val) { + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5007, 0xffffffff); + gp_log (GP_LOG_DEBUG, __FUNCTION__, "got %d as value", val->u16); + cam->fnumber = val->u16; + return 1; +} + +static int +ptp_exposurebias_getdesc (vcamera* cam, PTPDevicePropDesc *desc) { + desc->DevicePropertyCode = 0x5010; + desc->DataType = 0x0003; /* INT16 */ + desc->GetSet = 1; /* Get/Set */ + if (!cam->exposurebias) cam->exposurebias = 0; /* 0.0 */ + desc->FactoryDefaultValue.i16 = cam->exposurebias; + desc->CurrentValue.i16 = cam->exposurebias; + desc->FormFlag = 0x02; /* enum */ + desc->FORM.Enum.NumberOfValues = 13; + desc->FORM.Enum.SupportedValue = malloc(desc->FORM.Enum.NumberOfValues*sizeof(desc->FORM.Enum.SupportedValue[0])); + desc->FORM.Enum.SupportedValue[0].i16 = -3000; + desc->FORM.Enum.SupportedValue[1].i16 = -2500; + desc->FORM.Enum.SupportedValue[2].i16 = -2000; + desc->FORM.Enum.SupportedValue[3].i16 = -1500; + desc->FORM.Enum.SupportedValue[4].i16 = -1000; + desc->FORM.Enum.SupportedValue[5].i16 = -500; + desc->FORM.Enum.SupportedValue[6].i16 = 0; + desc->FORM.Enum.SupportedValue[7].i16 = 500; + desc->FORM.Enum.SupportedValue[8].i16 = 1000; + desc->FORM.Enum.SupportedValue[9].i16 = 1500; + desc->FORM.Enum.SupportedValue[10].i16 = 2000; + desc->FORM.Enum.SupportedValue[11].i16 = 2500; + desc->FORM.Enum.SupportedValue[12].i16 = 3000; + + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5010, 0xffffffff); + return 1; +} + +static int +ptp_exposurebias_getvalue (vcamera* cam, PTPPropertyValue *val) { + val->i16 = cam->exposurebias; + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5010, 0xffffffff); + return 1; +} + +static int +ptp_exposurebias_setvalue (vcamera* cam, PTPPropertyValue *val) { + ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5010, 0xffffffff); + gp_log (GP_LOG_DEBUG, __FUNCTION__, "got %d as value", val->i16); + cam->exposurebias = val->i16; + return 1; +} + + +static int +ptp_datetime_getdesc (vcamera* cam, PTPDevicePropDesc *desc) { + struct tm *tm; + time_t xtime; + char xdate[40]; + + desc->DevicePropertyCode = 0x5011; + desc->DataType = 0xffff; /* string */ + desc->GetSet = 1; /* get only */ + time(&xtime); + tm = gmtime(&xtime); + sprintf(xdate,"%04d%02d%02dT%02d%02d%02d",tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,tm->tm_hour,tm->tm_min,tm->tm_sec); + desc->FactoryDefaultValue.str = strdup (xdate); + desc->CurrentValue.str = strdup (xdate); + desc->FormFlag = 0; /* no form */ + /*ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5011, 0xffffffff);*/ + return 1; +} + +static int +ptp_datetime_getvalue (vcamera* cam, PTPPropertyValue *val) { + struct tm *tm; + time_t xtime; + char xdate[40]; + + time(&xtime); + tm = gmtime(&xtime); + sprintf(xdate,"%04d%02d%02dT%02d%02d%02d",tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,tm->tm_hour,tm->tm_min,tm->tm_sec); + val->str = strdup (xdate); + /*ptp_inject_interrupt (cam, 1000, 0x4006, 1, 0x5011, 0xffffffff);*/ + return 1; +} + + +static int +ptp_datetime_setvalue (vcamera* cam, PTPPropertyValue *val) { + gp_log (GP_LOG_DEBUG, __FUNCTION__, "got %s as value", val->str); + return 1; +} + + +/********************************************************************************************/ + +static int vcam_init(vcamera* cam) { + return GP_OK; +} + +static int vcam_exit(vcamera* cam) { + return GP_OK; +} + +static int vcam_open(vcamera* cam, const char *port) { + char *s = strchr(port,':'); + + if (s) { + if (s[1] == '>') { /* record mode */ + cam->fuzzf = fopen(s+2,"wb"); + cam->fuzzmode = FUZZMODE_PROTOCOL; + } else { + cam->fuzzf = fopen(s+1,"rb"); +#ifndef FUZZ_PTP + /* first 4 byte are vendor and product USB id */ + if (cam->fuzzf) + fseek (cam->fuzzf, 4, SEEK_SET); +#endif + cam->fuzzpending = 0; + cam->fuzzmode = FUZZMODE_NORMAL; + } + if (cam->fuzzf == NULL) perror(s+1); + } + return GP_OK; +} + +static int vcam_close(vcamera* cam) { + if (cam->fuzzf) { + fclose (cam->fuzzf); + cam->fuzzf = NULL; + cam->fuzzpending = 0; + } + return GP_OK; +} + +static void +vcam_process_output(vcamera *cam) { + ptpcontainer ptp; + int i, j; + + if (cam->nroutbulk < 4) + return; /* wait for more data */ + + ptp.size = get_32bit_le (cam->outbulk); + if (ptp.size > cam->nroutbulk) + return; /* wait for more data */ + + if (ptp.size < 12) { /* No ptp command can be less than 12 bytes */ + /* not clear if normal cameras react like this */ + gp_log (GP_LOG_ERROR, __FUNCTION__, "input size was %d, minimum is 12", ptp.size); + ptp_response (cam, PTP_RC_GeneralError, 0); + memmove (cam->outbulk, cam->outbulk+ptp.size, cam->nroutbulk-ptp.size); + cam->nroutbulk -= ptp.size; + return; + } + /* ptp: 4 byte size, 2 byte opcode, 2 byte type, 4 byte serial number */ + ptp.type = get_16bit_le (cam->outbulk+4); + ptp.code = get_16bit_le (cam->outbulk+6); + ptp.seqnr = get_32bit_le (cam->outbulk+8); + + if ((ptp.type != 1) && (ptp.type != 2)) { /* We want either CMD or DATA phase. */ + /* not clear if normal cameras react like this */ + gp_log (GP_LOG_ERROR, __FUNCTION__, "expected CMD or DATA, but type was %d", ptp.type); + ptp_response (cam, PTP_RC_GeneralError, 0); + memmove (cam->outbulk, cam->outbulk+ptp.size, cam->nroutbulk-ptp.size); + cam->nroutbulk -= ptp.size; + return; + } + if ((ptp.code & 0x7000) != 0x1000) { + /* not clear if normal cameras react like this */ + gp_log (GP_LOG_ERROR, __FUNCTION__, "OPCODE 0x%04x does not start with 0x1 or 0x9", ptp.code); + ptp_response (cam, PTP_RC_GeneralError, 0); + memmove (cam->outbulk, cam->outbulk+ptp.size, cam->nroutbulk-ptp.size); + cam->nroutbulk -= ptp.size; + return; + } + if (ptp.type == 1) { + if ((ptp.size - 12) % 4) { + /* not clear if normal cameras react like this */ + gp_log (GP_LOG_ERROR, __FUNCTION__, "SIZE-12 is not divisible by 4, but is %d", ptp.size-12); + ptp_response (cam, PTP_RC_GeneralError, 0); + memmove (cam->outbulk, cam->outbulk+ptp.size, cam->nroutbulk-ptp.size); + cam->nroutbulk -= ptp.size; + return; + } + if ((ptp.size - 12) / 4 >= 6) { + /* not clear if normal cameras react like this */ + gp_log (GP_LOG_ERROR, __FUNCTION__, "(SIZE-12)/4 is %d, exceeds maximum arguments", (ptp.size-12)/4); + ptp_response (cam, PTP_RC_GeneralError, 0); + memmove (cam->outbulk, cam->outbulk+ptp.size, cam->nroutbulk-ptp.size); + cam->nroutbulk -= ptp.size; + return; + } + ptp.nparams = (ptp.size - 12)/4; + for (i=0;ioutbulk+12+i*4); + } + + cam->nroutbulk -= ptp.size; + + /* call the opcode handler */ + for (j=0;jtype)) + continue; + + for (i=0;iptpcmd, &ptp, sizeof(ptp)); + } else { + if (funcs[i].write_data == NULL) { + gp_log (GP_LOG_ERROR, __FUNCTION__, "opcode 0x%04x received with dataphase, but no dataphase expected", ptp.code); + ptp_response (cam, PTP_RC_GeneralError, 0); + } else { + funcs[i].write_data (cam, &cam->ptpcmd, cam->outbulk+12, ptp.size-12); + } + } + return; + } + } + } + gp_log (GP_LOG_ERROR,__FUNCTION__,"received an unsupported opcode 0x%04x", ptp.code); +#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + /* in fuzzing mode, be less strict with unknown opcodes */ + ptp_response (cam, PTP_RC_OperationNotSupported, 0); +#else + ptp_response (cam, PTP_RC_OK, 0); +#endif +} + +static int +vcam_read(vcamera*cam, int ep, unsigned char *data, int bytes) { + unsigned int toread = bytes; + + if (cam->fuzzf) { + unsigned int hasread; + + memset(data,0,toread); + if (cam->fuzzmode == FUZZMODE_PROTOCOL) { + fwrite(cam->inbulk, 1, toread, cam->fuzzf); + /* fallthrough */ + } else { +#ifdef FUZZ_PTP + /* for reading fuzzer data */ + if (cam->fuzzpending) { + toread = cam->fuzzpending; + if (toread > bytes) toread = bytes; + cam->fuzzpending -= toread; + hasread = fread (data, 1, toread, cam->fuzzf); + } else { + hasread = fread (data, 1, 4, cam->fuzzf); + if (hasread != 4) + return GP_ERROR_IO_READ; + + toread = data[0] | (data[1]<<8) | (data[2]<<16) | (data[3]<<24); + + if (toread > bytes) { + cam->fuzzpending = toread - bytes; + toread = bytes; + } + if (toread <= 4) + return toread; + + toread -= 4; + + hasread = fread(data + 4, 1, toread, cam->fuzzf); + + hasread += 4; /* readd size */ + } +#else + /* just return a blob of data in generic fuzzing */ + hasread = fread (data, 1, bytes, cam->fuzzf); + if (!hasread && feof(cam->fuzzf)) + return GP_ERROR_IO_READ; +#endif +#if 0 + for (i=0;iinbulk[i]; +#endif + toread = hasread; + + return toread; + } + } + + /* Emulated PTP camera stuff */ + + if (toread > cam->nrinbulk) + toread = cam->nrinbulk; + + memcpy (data, cam->inbulk, toread); + memmove (cam->inbulk, cam->inbulk + toread, (cam->nrinbulk - toread)); + cam->nrinbulk -= toread; + return toread; +} + +static int vcam_write(vcamera*cam, int ep, const unsigned char *data, int bytes) { + /*gp_log_data("vusb", data, bytes, "data, vcam_write");*/ + if (!cam->outbulk) { + cam->outbulk = malloc(bytes); + } else { + cam->outbulk = realloc(cam->outbulk,cam->nroutbulk + bytes); + } + memcpy(cam->outbulk + cam->nroutbulk, data, bytes); + cam->nroutbulk += bytes; + + vcam_process_output(cam); + + return bytes; +} + +struct ptp_interrupt { + unsigned char *data; + int size; + struct timeval triggertime; + struct ptp_interrupt *next; +}; + +static struct ptp_interrupt *first_interrupt; + +static int +ptp_inject_interrupt(vcamera*cam, int when, uint16_t code, int nparams, uint32_t param1, uint32_t transid) { + struct ptp_interrupt *interrupt, **pint; + struct timeval now; + unsigned char *data; + int x = 0; + + gp_log (GP_LOG_DEBUG, __FUNCTION__, "generate interrupt 0x%04x, %d params, param1 0x%08x, timeout=%d", code, nparams, param1, when); + + gettimeofday (&now, NULL); + now.tv_usec += (when % 1000)*1000; + now.tv_sec += when / 1000; + if (now.tv_usec > 1000000) { + now.tv_usec -= 1000000; + now.tv_sec++; + } + + data = malloc (0x10); + x += put_32bit_le (data+x, 0x10); + x += put_16bit_le (data+x, 4); + x += put_16bit_le (data+x, code); + x += put_32bit_le (data+x, transid); + x += put_32bit_le (data+x, param1); + + interrupt = malloc (sizeof(struct ptp_interrupt)); + interrupt->data = data; + interrupt->size = x; + interrupt->triggertime = now; + interrupt->next = NULL; + + /* Insert into list, sorted by trigger time, next triggering one first */ + pint = &first_interrupt; + while (*pint) { + if (now.tv_sec > (*pint)->triggertime.tv_sec) { + pint = &((*pint)->next); + continue; + } + if ( (now.tv_sec == (*pint)->triggertime.tv_sec) && + (now.tv_usec > (*pint)->triggertime.tv_usec)) { + pint = &((*pint)->next); + continue; + } + interrupt->next = *pint; + *pint = interrupt; + break; + } + if (!*pint) /* single entry */ + *pint = interrupt; + return 1; +} + +static int +vcam_readint(vcamera*cam, unsigned char *data, int bytes, int timeout) { + struct timeval now, end; + int newtimeout, tocopy; + struct ptp_interrupt *pint; + + if (!first_interrupt) { +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + usleep (timeout*1000); +#endif + if (cam->fuzzf && feof(cam->fuzzf)) + return GP_ERROR_IO; + return GP_ERROR_TIMEOUT; + } + gettimeofday (&now, NULL); + end = now; + end.tv_usec += (timeout % 1000)*1000; + end.tv_sec += timeout / 1000; + if (end.tv_usec > 1000000) { + end.tv_usec -= 1000000; + end.tv_sec++; + } + if (first_interrupt->triggertime.tv_sec > end.tv_sec) { +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + usleep (1000*timeout); +#endif + return GP_ERROR_TIMEOUT; + } + if ( (first_interrupt->triggertime.tv_sec == end.tv_sec) && + (first_interrupt->triggertime.tv_usec > end.tv_usec) + ) { +#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION + usleep (1000*timeout); +#endif + return GP_ERROR_TIMEOUT; + } + newtimeout = (first_interrupt->triggertime.tv_sec - now.tv_sec)*1000 + (first_interrupt->triggertime.tv_usec - now.tv_usec)/1000; + if (newtimeout > timeout) + gp_log (GP_LOG_ERROR, __FUNCTION__, "miscalculated? %d vs %d", timeout, newtimeout); + tocopy = first_interrupt->size; + if (tocopy > bytes) + tocopy = bytes; + memcpy (data, first_interrupt->data, tocopy); + pint = first_interrupt; + first_interrupt = first_interrupt->next; + free (pint->data); + free (pint); + return tocopy; +} + +vcamera* +vcamera_new(vcameratype type) { + vcamera *cam; + + cam = calloc(1,sizeof(vcamera)); + if (!cam) return NULL; + + read_tree(VCAMERADIR); + + cam->init = vcam_init; + cam->exit = vcam_exit; + cam->open = vcam_open; + cam->close = vcam_close; + + cam->read = vcam_read; + cam->readint = vcam_readint; + cam->write = vcam_write; + + cam->type = type; + cam->seqnr = 0; + + return cam; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/vcamera.h b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/vcamera.h new file mode 100644 index 00000000..b6fe4ae3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/vcamera.h @@ -0,0 +1,79 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* vcamera.h + * + * Copyright (c) 2015,2016 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef __VCAMERA_H__ +#define __VCAMERA_H__ + +#undef FUZZ_PTP + +#include + +typedef struct ptpcontainer { + unsigned int size; + unsigned int type; + unsigned int code; + unsigned int seqnr; + unsigned int nparams; + unsigned int params[6]; +} ptpcontainer; + +typedef enum vcameratype { + GENERIC_PTP, + NIKON_D750 +} vcameratype; + +typedef struct vcamera { + int (*init)(struct vcamera*); + int (*exit)(struct vcamera*); + int (*open)(struct vcamera*, const char*port); + int (*close)(struct vcamera*); + + int (*read)(struct vcamera*, int ep, unsigned char *data, int bytes); + int (*readint)(struct vcamera*, unsigned char *data, int bytes, int timeout); + int (*write)(struct vcamera*, int ep, const unsigned char *data, int bytes); + + unsigned short vendor, product; /* for generic fuzzing */ + + vcameratype type; + unsigned char *inbulk; + int nrinbulk; + unsigned char *outbulk; + int nroutbulk; + + unsigned int seqnr; + + unsigned int session; + ptpcontainer ptpcmd; + + int exposurebias; + unsigned int shutterspeed; + unsigned int fnumber; + + int fuzzmode; +#define FUZZMODE_PROTOCOL 0 +#define FUZZMODE_NORMAL 1 + FILE* fuzzf; + unsigned int fuzzpending; +} vcamera; + +vcamera *vcamera_new(vcameratype); + +#endif diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/vusb.c b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/vusb.c new file mode 100644 index 00000000..87e8c541 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/libgphoto2_port/vusb/vusb.c @@ -0,0 +1,374 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* vusb.c + * + * Copyright (c) 2015,2016 Marcus Meissner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include + +#include "vcamera.h" + +#include +#include +#include +#include +#include +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#include + +#include +#include +#include + +#ifdef ENABLE_NLS +# include +# undef _ +# define _(String) dgettext (GETTEXT_PACKAGE, String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + +#define CHECK(result) {int r=(result); if (r<0) return (r);} + +struct _GPPortPrivateLibrary { + int isopen; + vcamera *vcamera; +}; + +GPPortType +gp_port_library_type (void) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + return GP_PORT_USB; +} + +int +gp_port_library_list (GPPortInfoList *list) +{ + GPPortInfo info; + + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + + CHECK (gp_port_info_new (&info)); + gp_port_info_set_type (info, GP_PORT_USB); + gp_port_info_set_name (info, ""); + gp_port_info_set_path (info, "^usb:"); + gp_port_info_list_append (list, info); /* do not check, might be -1 */ + + gp_port_info_new (&info); + gp_port_info_set_type (info, GP_PORT_USB); + gp_port_info_set_name (info, "Universal Serial Bus"); + gp_port_info_set_path (info, "usb:001,001"); + CHECK (gp_port_info_list_append (list, info)); + return GP_OK; +} + +static int gp_port_vusb_init (GPPort *dev) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + C_MEM (dev->pl = calloc (1, sizeof (GPPortPrivateLibrary))); + + dev->pl->vcamera = vcamera_new(NIKON_D750); + dev->pl->vcamera->init(dev->pl->vcamera); + + return GP_OK; +} + +static int +gp_port_vusb_exit (GPPort *port) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + port->pl->vcamera->exit(port->pl->vcamera); + free (port->pl->vcamera); + port->pl->vcamera = NULL; + free (port->pl); + port->pl = NULL; + + + return GP_OK; +} + +static int +gp_port_vusb_open (GPPort *port) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"(%s)", port->settings.usb.port); + if (port->pl->isopen) + return GP_ERROR; + port->pl->vcamera->open(port->pl->vcamera, port->settings.usb.port); + port->pl->isopen = 1; + return GP_OK; +} + +static int +gp_port_vusb_close (GPPort *port) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + if (!port->pl->isopen) + return GP_ERROR; + port->pl->vcamera->close(port->pl->vcamera); + port->pl->isopen = 0; + return GP_OK; +} + +static int +gp_port_vusb_write (GPPort *port, const char *bytes, int size) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + + C_PARAMS (port && port->pl && port->pl->vcamera); + return port->pl->vcamera->write(port->pl->vcamera, 0x02, (unsigned char*)bytes, size); +} + +static int +gp_port_vusb_read(GPPort *port, char *bytes, int size) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + return port->pl->vcamera->read(port->pl->vcamera, 0x81, (unsigned char*)bytes, size); +} + +static int +gp_port_vusb_reset(GPPort *port) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + C_PARAMS (port && port->pl); + + return GP_OK; +} + +static int +gp_port_vusb_check_int (GPPort *port, char *bytes, int size, int timeout) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + C_PARAMS (port && port->pl && timeout >= 0); + + return port->pl->vcamera->readint(port->pl->vcamera, (unsigned char*)bytes, size, timeout); +} + +static int +gp_port_vusb_update (GPPort *port) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + return GP_OK; +} + +static int +gp_port_vusb_clear_halt_lib(GPPort *port, int ep) +{ + unsigned char internal_ep; + + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + C_PARAMS (port && port->pl); + + switch (ep) { + case GP_PORT_USB_ENDPOINT_IN : + internal_ep = port->settings.usb.inep; + break; + case GP_PORT_USB_ENDPOINT_OUT : + internal_ep = port->settings.usb.outep; + break; + case GP_PORT_USB_ENDPOINT_INT : + internal_ep = port->settings.usb.intep; + break; + default: + gp_port_set_error (port, "Bad EndPoint argument 0x%x", ep); + return GP_ERROR_BAD_PARAMETERS; + } + gp_log(GP_LOG_DEBUG,"gp_port_vusb_clear_halt_lib","clearing halt on ep 0x%x", internal_ep); + /* now clear halt */ + return GP_OK; +} + +/* The next two functions support the nonstandard request types 0x41 (write) + * and 0xc1 (read), which are occasionally needed. + */ +static int +gp_port_vusb_msg_interface_write_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + return GP_OK; +} + + +static int +gp_port_vusb_msg_interface_read_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"(req=%x, value=%x, index=%d, size=%d)", request, value, index, size); + return port->pl->vcamera->read(port->pl->vcamera, 0x81, (unsigned char*)bytes, size); +} + + +/* The next two functions support the nonstandard request types 0x21 (write) + * and 0xa1 (read), which are occasionally needed. + */ +static int +gp_port_vusb_msg_class_write_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + return GP_OK; +} + + + +static int +gp_port_vusb_msg_class_read_lib(GPPort *port, int request, + int value, int index, char *bytes, int size) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + return GP_OK; /* or bytes */ +} + + +static int +gp_port_vusb_msg_write_lib(GPPort *port, int request, int value, int index, + char *bytes, int size) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + return GP_OK; +} + +static int +gp_port_vusb_msg_read_lib(GPPort *port, int request, int value, int index, + char *bytes, int size) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"(req=%x, value=%x, index=%x, size=%d)", request, value, index, size); + return port->pl->vcamera->read(port->pl->vcamera, index, (unsigned char*)bytes, size); +} + +static int +gp_port_vusb_find_device_lib(GPPort *port, int idvendor, int idproduct) +{ +#ifdef FUZZ_PTP + if ((idvendor == 0x04b0) && (idproduct == 0x0437)) { /* Nikon D750 */ +#else + GPPortInfo info; + char *path, *s; + static unsigned short vendor, product; + int fd; + + static char *lastpath = NULL; + + gp_port_get_info (port, &info); + gp_port_info_get_path (info, &path); + + if (!lastpath || strcmp(path, lastpath)) { + gp_log(GP_LOG_DEBUG,__FUNCTION__,"(path=%s)", path); + if (lastpath) { + free(lastpath); + } + lastpath = strdup(path); + + s = strchr(path, ':')+1; + fd = open(s, O_RDONLY); + vendor = product = 0; + if (fd != -1) { + if (-1 == read( fd, &vendor, 2)) + gp_log(GP_LOG_DEBUG,__FUNCTION__,"could not read vendor"); + if (-1 == read( fd, &product, 2)) + gp_log(GP_LOG_DEBUG,__FUNCTION__,"could not read product"); + close(fd); + } + } + + if ((idvendor == vendor) && (idproduct == product)) { +#endif + port->settings.usb.config = 1; + port->settings.usb.interface = 1; + port->settings.usb.altsetting = 1; + + port->settings.usb.inep = 0x81; + port->settings.usb.outep = 0x02; + port->settings.usb.intep = 0x83; + port->settings.usb.maxpacketsize = 512; + return GP_OK; + } + gp_log(GP_LOG_DEBUG,__FUNCTION__,"(0x%04x,0x%04x)", idvendor, idproduct); + return GP_ERROR_IO_USB_FIND; +} + +static int +gp_port_vusb_find_device_by_class_lib(GPPort *port, int class, int subclass, int protocol) +{ + gp_log(GP_LOG_DEBUG,__FUNCTION__,"(0x%02x,0x%02x,0x%02x)", class, subclass, protocol); + +#ifdef FUZZ_PTP + if ((class == 6) && (subclass == 1) && (protocol == 1)) { + port->settings.usb.config = 1; + port->settings.usb.interface = 1; + port->settings.usb.altsetting = 1; + + port->settings.usb.inep = 0x81; + port->settings.usb.outep = 0x02; + port->settings.usb.intep = 0x83; + port->settings.usb.maxpacketsize = 512; + return GP_OK; + } +#endif + return GP_ERROR_IO_USB_FIND; +} + + + +GPPortOperations * +gp_port_library_operations (void) +{ + GPPortOperations *ops; + + gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + ops = calloc (1, sizeof (GPPortOperations)); + if (!ops) + return NULL; + + ops->init = gp_port_vusb_init; + ops->exit = gp_port_vusb_exit; + ops->open = gp_port_vusb_open; + ops->close = gp_port_vusb_close; + ops->read = gp_port_vusb_read; + ops->write = gp_port_vusb_write; + ops->reset = gp_port_vusb_reset; + + ops->check_int = gp_port_vusb_check_int; + ops->update = gp_port_vusb_update; + ops->clear_halt = gp_port_vusb_clear_halt_lib; + ops->msg_write = gp_port_vusb_msg_write_lib; + ops->msg_read = gp_port_vusb_msg_read_lib; + + ops->msg_interface_write = gp_port_vusb_msg_interface_write_lib; + ops->msg_interface_read = gp_port_vusb_msg_interface_read_lib; + ops->msg_class_write = gp_port_vusb_msg_class_write_lib; + ops->msg_class_read = gp_port_vusb_msg_class_read_lib; + ops->find_device = gp_port_vusb_find_device_lib; + ops->find_device_by_class = gp_port_vusb_find_device_by_class_lib; + return ops; +} diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/ChangeLog b/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/ChangeLog new file mode 100644 index 00000000..34cf93f4 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/ChangeLog @@ -0,0 +1,24 @@ +2006-09-01 Marcus Meissner + + * generic/print-camera-list.c: + + Generator for udev newstyles output. (udev-rules-0.98) + +2002-11-01 Hans Ulrich Niedermann + + * linux-hotplug/Makefile.am: install print-usb-usermap on target + system (for cross-compilation) + +2002-10-13 Hans Ulrich Niedermann + + * linux-hotplug/Makefile.am: made hotplug stuff installation location configurable + +2002-09-14 Marcus Meissner + + * print-usb-usermap.c: usb_product can be 0 (for instance + with the Jenoptik JD350v). + +2002-08-08 Lutz Müller + + * linux-hotplug/Makefile.am: Point to the right correction of + libgphoto2.la. diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/Makefile.am new file mode 100644 index 00000000..76f880d7 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = linux-hotplug generic rpm diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/generic/Makefile.am b/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/generic/Makefile.am new file mode 100644 index 00000000..c9582e04 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/generic/Makefile.am @@ -0,0 +1,14 @@ +utils_PROGRAMS = print-camera-list +if HAVE_UDEV +udevscript_SCRIPTS = check-ptp-camera +endif +EXTRA_DIST = check-ptp-camera + +AM_CPPFLAGS += -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/libgphoto2_port -I$(top_srcdir)/libgphoto2 -I$(top_builddir)/libgphoto2 + +print_camera_list_SOURCE = print-camera-list.c +print_camera_list_LDADD = \ + $(top_builddir)/libgphoto2/libgphoto2.la \ + $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \ + $(LIBLTDL) \ + $(LIBEXIF_LIBS) diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/generic/check-ptp-camera b/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/generic/check-ptp-camera new file mode 100644 index 00000000..bc3c6ac3 --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/generic/check-ptp-camera @@ -0,0 +1,35 @@ +#!/bin/sh +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301 USA +# +# +# check if any interface of this device is a PTP camera interface (06) +INTERFACE="${1:-06/01/01}" + +BASENAME=${DEVPATH##*/} +for d in /sys/${DEVPATH}/${BASENAME}:*; do + [ -d "${d}" ] || continue + INTERFACEID="$(cat "${d}"/bInterfaceClass)" + INTERFACEID="${INTERFACEID}/$(cat "${d}"/bInterfaceSubClass)" + INTERFACEID="${INTERFACEID}/$(cat "${d}"/bInterfaceProtocol)" + + #echo ${d}: ${INTERFACEID} + if [ "${INTERFACE}" = "${INTERFACEID}" ]; then + # Found interface + exit 0 + fi +done + +exit 1 diff --git a/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/generic/print-camera-list.c b/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/generic/print-camera-list.c new file mode 100644 index 00000000..9057278b --- /dev/null +++ b/lib/hardware/sensors/gphoto/libgphoto2-master/packaging/generic/print-camera-list.c @@ -0,0 +1,1747 @@ +/* print-camera-list - print libgphoto2 camera list in different formats + * + * Copyright 2002,2005 Hans Ulrich Niedermann + * Portions Copyright 2002 Lutz Mueller + * Portions Copyright 2005 Julien BLACHE + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + + +#define GP_USB_HOTPLUG_SCRIPT "usbcam" + +/* Not sure whether this is the best possible name */ +#define ARGV0 "print-camera-list" + +#define HELP_TEXT \ +ARGV0 " - print libgphoto2 camera list in different formats" \ +"\n" \ +"Syntax:\n" \ +" " ARGV0 " [] []\n" \ +"\n" \ +"Options:\n" \ +" --debug print all debug output\n" \ +" --help print this help message\n" \ +" --verbose also print comments with camera model names\n" \ +"\n" \ +ARGV0 " prints the camera list in the specified format FORMAT on stdout.\n" \ +"\n" \ +"All other messages are printed on stderr. In case of any error, the \n" \ +"program aborts regardless of data printed on stdout and returns a non-zero\n" \ +"status code.\n" + + +#include +#include +#include +#include +#include + +#include +#include + +/* for detailed version message */ +#include + +#include "config.h" + +#ifndef TRUE +#define TRUE (0==0) +#endif +#ifndef FALSE +#define FALSE (0!=0) +#endif + +typedef struct { + char *name; + GPVersionFunc version_func; +} module_version; + +const module_version module_versions[] = { + { "libgphoto2", gp_library_version }, + { "libgphoto2_port", gp_port_library_version }, + { NULL, NULL } +}; + +typedef char *string_array_t[]; + +typedef string_array_t *string_array_p; + +typedef struct { + int number_of_cameras; + int add_comments; + int argc; + string_array_p argv; +} func_params_t; + + +typedef int (* begin_func_t) (const func_params_t *params, + void **data); +typedef int (* middle_func_t) (const func_params_t *params, + void **data); +typedef int (* camera_func_t) (const func_params_t *params, + const int i, + const int total, + const CameraAbilities *ca, + void *data); +typedef int (* end_func_t) (const func_params_t *params, + void *data); + + +#define GP_USB_HOTPLUG_MATCH_VENDOR_ID 0x0001 +#define GP_USB_HOTPLUG_MATCH_PRODUCT_ID 0x0002 + +#define GP_USB_HOTPLUG_MATCH_INT_CLASS 0x0080 +#define GP_USB_HOTPLUG_MATCH_INT_SUBCLASS 0x0100 +#define GP_USB_HOTPLUG_MATCH_INT_PROTOCOL 0x0200 + + +#ifdef __GNUC__ +#define CR(result) \ + do { \ + int r = (result); \ + if (r < 0) { \ + fprintf(stderr, ARGV0 ": " \ + "Fatal error running `%s'.\n" \ + "Aborting.\n", #result ); \ + return (r); \ + } \ + } while (0) +#else /* !__GNUC__ */ +#define CR(result) \ + do { \ + int r = (result); \ + if (r < 0) { \ + fprintf(stderr, ARGV0 ": " \ + "Fatal error detected, aborting.\n"); \ + return (r); \ + } \ + } while (0) +#endif /* __GNUC__ */ + +#define FATAL(msg...) \ + do { \ + fprintf(stderr, ARGV0 ": Fatal: " msg); \ + fprintf(stderr, "\n"); \ + exit(13); \ + } while (0) + +#define ASSERT(cond) \ + do { \ + if (!(cond)) { \ + FATAL("Assertion failed: %s", #cond); \ + } \ + } while (0) + + +/* print_version_comment + * Print comment to output containing information on library versions + * + * out the file to write the comment to + * startline printed at the start of each line, e.g. "# " or " | " + * endline printed as the end of each line, e.g. "\n" or "\n" + * firstline printed before first line, e.g. NULL or "\n" + */ + +static void +print_version_comment(FILE *out, + const char *startline, const char *endline, + const char *firstline, const char *lastline) +{ + unsigned int n; + if (out == NULL) { FATAL("Internal error: NULL out in print_version_comment()"); } + if (firstline != NULL) { fputs(firstline, out); } + if (startline != NULL) { fputs(startline, out); } + fputs("Created from this library:", out); + if (endline != NULL) { fputs(endline, out); } + for (n=0; (module_versions[n].name != NULL) && (module_versions[n].version_func != NULL); n++) { + const char *name = module_versions[n].name; + GPVersionFunc func = module_versions[n].version_func; + const char **v = func(GP_VERSION_SHORT); + unsigned int i; + if (!v) { continue; } + if (!v[0]) { continue; } + if (startline != NULL) { fputs(startline, out); } + fputs(" ", out); + fprintf(out,"%-15s %-14s ", name, v[0]); + for (i=1; v[i] != NULL; i++) { + fputs(v[i], out); + if (v[i+1] != NULL) { + fputs(", ", out); + } + } + if (endline != NULL) { fputs(endline, out); } + } + if (lastline != NULL) { fputs(lastline, out); } +} + + +static int +hotplug_begin_func (const func_params_t *params, void **data) +{ + if (params->add_comments) { + printf("# linux-hotplug configuration file " + "for libgphoto2 supported devices\n"); + print_version_comment(stdout, "# ", "\n", NULL, "#\n"); + } + return 0; +} + + +/* print_usb_usermap + * + * Print out lines that can be included into usb.usermap + * - for all cams supported by our instance of libgphoto2. + * + * usb.usermap is a file used by + * Linux Hotplug http://linux-hotplug.sourceforge.net/ + */ + +static int +hotplug_camera_func (const func_params_t *params, + const int i, + const int total, + const CameraAbilities *a, + void *data) +{ + int flags = 0; + int class = 0, subclass = 0, proto = 0; + const char *usermap_script = + ((*params->argv)[0] != NULL) + ?((*params->argv)[0]) + :(GP_USB_HOTPLUG_SCRIPT); + + if (a->port & GP_PORT_USB) { + if (a->usb_vendor) { /* usb product id may be zero! */ + class = 0; + subclass = 0; + proto = 0; + flags = (GP_USB_HOTPLUG_MATCH_VENDOR_ID + | GP_USB_HOTPLUG_MATCH_PRODUCT_ID); + } else if ((a->usb_class) && (a->usb_class != 666)) { + class = a->usb_class; + subclass = a->usb_subclass; + proto = a->usb_protocol; + flags = GP_USB_HOTPLUG_MATCH_INT_CLASS; + if (subclass != -1) + flags |= GP_USB_HOTPLUG_MATCH_INT_SUBCLASS; + else + subclass = 0; + if (proto != -1) + flags |= GP_USB_HOTPLUG_MATCH_INT_PROTOCOL; + else + proto = 0; + } + } else { + /* not a USB camera */ + return 0; + } + + if (params->add_comments) { + printf ("# %s\n", + a->model); + } + /* The first 3 lone bytes are the device class. + * the second 3 lone bytes are the interface class. + * for PTP we want the interface class. + */ + printf ("%-20s " + "0x%04x 0x%04x 0x%04x 0x0000 " + "0x0000 0x00 0x00 " + "0x00 0x%02x 0x%02x " + "0x%02x 0x00000000\n", + usermap_script, flags, + a->usb_vendor, a->usb_product, + class, subclass, proto); + return 0; +} + + +static void +print_headline (void) +{ + printf("No.|%-20s|%-20s|%s\n", + "camlib", + "driver name", + "camera model"); +} + + +static void +print_hline (void) +{ + printf("---+%-20s+%-20s+%s\n", + "--------------------", + "--------------------", + "-------------------------------------------"); +} + + +static int +human_begin_func (const func_params_t *params, void **data) +{ + print_hline(); + print_headline(); + print_hline(); + return 0; +} + + +static int +human_end_func (const func_params_t *params, void *data) +{ + print_hline(); + print_headline(); + return 0; +} + + +/** C equivalent of basename(1) */ +static const char * +path_basename (const char *pathname) +{ + char *result, *tmp; + /* remove path part from camlib name */ + for (result=tmp=(char *)pathname; (*tmp!='\0'); tmp++) { + if ((*tmp == gp_system_dir_delim) + && (*(tmp+1) != '\0')) { + result = tmp+1; + } + } + return (const char *)result; +} + + +static int +human_camera_func (const func_params_t *params, + const int i, + const int total, + const CameraAbilities *a, + void *data) +{ + const char *camlib_basename; + camlib_basename = path_basename(a->library); + printf("%3d|%-20s|%-20s|%s\n", + i+1, + camlib_basename, + a->id, + a->model); + return 0; +} + + +static int +idlist_camera_func (const func_params_t *params, + const int i, + const int total, + const CameraAbilities *a, + void *data) +{ + if (a->usb_vendor) { /* usb product id may be zero! */ + printf("%04x:%04x %s\n", + a->usb_vendor, + a->usb_product, + a->model); + } + return 0; +} + + +typedef enum { + UDEV_PRE_0_98 = 0, + UDEV_0_98 = 1, + UDEV_136 = 2, + UDEV_175 = 3, + UDEV_201 = 4 +} udev_version_t; + +static const StringFlagItem udev_version_t_map[] = { + { "pre-0.98", UDEV_PRE_0_98 }, + { "0.98", UDEV_0_98 }, + { "136", UDEV_136 }, + { "175", UDEV_175 }, + { "201", UDEV_201 }, + { NULL, 0 } +}; + + +typedef struct { + udev_version_t version; + char *mode; + char *owner; + char *group; + char *script; + const char *begin_string; + const char *usbcam_string; + const char *usbdisk_string; +} udev_persistent_data_t; + + +static void +udev_parse_params (const func_params_t *params, void **data) +{ + /* Note: 2 lines because we need to use || ... having them on the same + * line would mean &&. + */ + static const char * const begin_strings[] = { + /* UDEV_PRE_0_98 */ + "ACTION!=\"add|bind\", GOTO=\"libgphoto2_rules_end\"\n" + "BUS!=\"usb_device\", GOTO=\"libgphoto2_usb_end\"\n\n", + /* UDEV_0_98 */ + "ACTION!=\"add|bind\", GOTO=\"libgphoto2_rules_end\"\n" + "SUBSYSTEM!=\"usb|usb_device\", GOTO=\"libgphoto2_usb_end\"\n\n", + /* UDEV_136 */ + "ACTION!=\"add|bind\", GOTO=\"libgphoto2_rules_end\"\n" + "SUBSYSTEM!=\"usb\", GOTO=\"libgphoto2_usb_end\"\n" + "ENV{DEVTYPE}!=\"usb_device\", GOTO=\"libgphoto2_usb_end\"\n\n" + "ENV{ID_USB_INTERFACES}==\"\", IMPORT{program}=\"usb_id --export %%p\"\n" + /* ignore mass storage class having devices in mark-up */ + "ENV{ID_USB_INTERFACES}==\"*:08*:*\", GOTO=\"libgphoto2_usb_end\"\n" + /* shortcut the most common camera driver, ptp class, so we avoid parsing 1000 + * more rules . It will be completed in udev_begin_func() */ + "ENV{ID_USB_INTERFACES}==\"*:060101:*\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"PTP\", ", + /* UDEV_175 */ + "ACTION!=\"add|bind\", GOTO=\"libgphoto2_rules_end\"\n" + "SUBSYSTEM!=\"usb\", GOTO=\"libgphoto2_usb_end\"\n" + "ENV{DEVTYPE}!=\"usb_device\", GOTO=\"libgphoto2_usb_end\"\n\n" + "ENV{ID_USB_INTERFACES}==\"\", IMPORT{builtin}=\"usb_id\"\n" + /* ignore mass storage class having devices in mark-up */ + "ENV{ID_USB_INTERFACES}==\"*:08*:*\", GOTO=\"libgphoto2_usb_end\"\n" + /* shortcut the most common camera driver, ptp class, so we avoid parsing 1000 + * more rules . It will be completed in udev_begin_func() */ + "ENV{ID_USB_INTERFACES}==\"*:060101:*\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"PTP\", ", + + /* UDEV_201 ... regular stuff is done via hwdb, only scsi generic here. */ + "ACTION!=\"add|bind\", GOTO=\"libgphoto2_rules_end\"\n" + "SUBSYSTEM!=\"usb\", GOTO=\"libgphoto2_usb_end\"\n" + "ENV{ID_USB_INTERFACES}==\"\", IMPORT{builtin}=\"usb_id\"\n" + /* shortcut the most common camera driver, ptp class, so we avoid parsing 1000 + * more rules . It will be completed in udev_begin_func() */ + "ENV{ID_USB_INTERFACES}==\"*:060101:*\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"PTP\", ", + }; + static const char * const usbcam_strings[] = { + /* UDEV_PRE_0_98 */ + "SYSFS{idVendor}==\"%04x\", SYSFS{idProduct}==\"%04x\"", + /* UDEV_0_98 */ + "ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\"", + /* UDEV_136 */ + "ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"proprietary\"", + /* UDEV_175 */ + "ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"proprietary\"", + /* UDEV_201 */ + "" + }; + static const char * const usbdisk_strings[] = { + /* UDEV_PRE_0_98 */ + "KERNEL==\"%s\", SYSFS{idVendor}==\"%04x\", SYSFS{idProduct}==\"%04x\"", + /* UDEV_0_98 */ + "KERNEL==\"%s\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\"", + /* UDEV_136 */ + "KERNEL==\"%s\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"proprietary\"", + /* UDEV_175 */ + "KERNEL==\"%s\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"proprietary\"", + /* UDEV_201 */ + "KERNEL==\"%s\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"proprietary\"" + }; + udev_persistent_data_t *pdata; + pdata = calloc(1, sizeof(udev_persistent_data_t)); + pdata->version = UDEV_0_98; + ASSERT(data != NULL); + *data = (void *) pdata; + if (1) { + int i; + char *key = NULL, *val = NULL; + for (i=0; ((key=(*params->argv)[i]) != NULL) && + ((val=(*params->argv)[i+1]) != NULL); i+=2) { + if (0) { + /* nothing */ + } else if (strcmp("script", key)==0) { + pdata->script = val; + } else if (strcmp("owner", key)==0) { + pdata->owner = val; + } else if (strcmp("group", key)==0) { + pdata->group = val; + } else if (strcmp("version", key)==0) { + unsigned int *ver = &pdata->version; + if (gpi_string_to_enum(val, ver, + udev_version_t_map)) { + FATAL("Unrecognized udev version: \"%s\"", val); + } + } else if (strcmp("mode", key)==0) { + pdata->mode = val; + } else { + FATAL("Unknown key argument: %s", key); + } + } + if ((key != NULL) && (val == NULL)) { + FATAL("Single argument remaining; need pairs of key and value"); + } + } + if ((0==0) + && (pdata->mode == NULL) + && (pdata->group == NULL) + && (pdata->owner == NULL) + && (pdata->script == NULL) + && (pdata->version <= UDEV_0_98)) { + FATAL("Either